update-dependencies
Updates project dependencies, validates them, and then updates the reference repositories under reference/.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Updates project dependencies, validates them, and then updates the reference repositories under reference/.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | update-dependencies |
| description | Updates project dependencies, validates them, and then updates the reference repositories under reference/. |
| disable-model-invocation | true |
When this command is invoked, run the following two sections to make sure the project is up to date and ready for development.
NOTE: Bash should be (nearly) identical.
bun install --frozen-lockfile
bun run check
bun outdated
bun audit
bun update
bun add -E @opentui/core@<v> @opentui/keymap@<v> @opentui/react@<v>
bun add -d -E oxlint@<v>
bun add -d -E oxfmt@<v>
bun install --frozen-lockfile
bun run check
bun audit
Keeps reference/<repo> in sync with the upstream version this project depends on. Run all commands from the repo root. All clones are shallow (--depth 1 --single-branch).
Repos:
reference/opentui from https://github.com/anomalyco/opentui at tag v<version> of @opentui/core (read from package.json).reference/opencode from https://github.com/anomalyco/opencode at branch dev (the default; no main exists).reference/awesome-opentui from https://github.com/msmps/awesome-opentui at branch main.reference/agent-server from https://github.com/DavidKoleczek/agent-server at branch main.PowerShell:
# Read the installed @opentui/core version, stripping any leading ^ or ~ from the semver range.
$ver = (Get-Content package.json -Raw | ConvertFrom-Json).dependencies.'@opentui/core' -replace '^[\^~]',''
$tag = "v$ver"
$dst = "reference\opentui"
# Probe the existing checkout's pinned tag; null if missing or not a git repo (e.g. a plain snapshot).
$current = if (Test-Path "$dst\.git") { git -C $dst describe --tags --exact-match 2>$null } else { $null }
if ($current -ne $tag) {
# Wipe any existing directory so a non-git snapshot or a wrong-tag clone is replaced cleanly.
if (Test-Path $dst) { Remove-Item -Recurse -Force $dst }
git clone --depth 1 --branch $tag --single-branch https://github.com/anomalyco/opentui.git $dst
}
Bash:
ver=$(node -p "require('./package.json').dependencies['@opentui/core'].replace(/^[\^~]/, '')")
tag="v$ver"
dst="reference/opentui"
current=$(git -C "$dst" describe --tags --exact-match 2>/dev/null || true)
if [ "$current" != "$tag" ]; then
rm -rf "$dst"
git clone --depth 1 --branch "$tag" --single-branch https://github.com/anomalyco/opentui.git "$dst"
fi
PowerShell:
$url = "<repo URL>"
$branch = "<branch>"
$dst = "<dst path, e.g. reference\opencode>"
if (Test-Path "$dst\.git") {
git -C $dst fetch --depth 1 origin $branch
# Move HEAD to the freshly fetched tip; a shallow clone has no local branch ref to fast-forward.
git -C $dst reset --hard FETCH_HEAD
} else {
if (Test-Path $dst) { Remove-Item -Recurse -Force $dst }
git clone --depth 1 --branch $branch --single-branch $url $dst
}
Bash:
url="<repo URL>"
branch="<branch>"
dst="<dst path, e.g. reference/opencode>"
if [ -d "$dst/.git" ]; then
git -C "$dst" fetch --depth 1 origin "$branch"
git -C "$dst" reset --hard FETCH_HEAD
else
rm -rf "$dst"
git clone --depth 1 --branch "$branch" --single-branch "$url" "$dst"
fi