@soleur/opencode 3.380.3 → 3.380.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -216,10 +216,11 @@ change" trigger never fired when Fable 5 shipped. The cron files an issue, never
|
|
|
216
216
|
(`err = null`) for the no-text-block case so a silent fallback becomes visible.
|
|
217
217
|
- **A carve-out for consumers that resolve models through a bundled CLI must name the pin whose
|
|
218
218
|
bump retires it, and a test must expire it.** The Agent SDK scripts stayed on `claude-haiku-4-5`
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
219
|
+
while the pinned `claude-agent-sdk` bundle did not know the new id; the exemption listed EXACT paths
|
|
220
|
+
(a directory would hide a genuinely stale sibling) and `model-launch-review.test.ts` failed once the
|
|
221
|
+
SDK pin reached the first release that knew the id. It was retired with the 0.3.311 bump (#12026): the
|
|
222
|
+
exemption, its tests and the two scripts' stale ids went in one change, so the exemption cannot outlive
|
|
223
|
+
its reason. Reintroduce the pattern the same way (exact paths, a named retiring pin, an expiring test).
|
|
223
224
|
- **When the launch migration bumps the Anthropic SDK toolchain in
|
|
224
225
|
`apps/web-platform/package.json` (`@anthropic-ai/claude-code`,
|
|
225
226
|
`@anthropic-ai/claude-agent-sdk`, `@anthropic-ai/sdk`), regenerate
|
|
@@ -32,12 +32,11 @@ if [[ -z "$ROOT" ]]; then
|
|
|
32
32
|
ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
|
|
33
33
|
fi
|
|
34
34
|
ROOT="${ROOT%/}" # normalize: trailing slash breaks rel() prefix-strip
|
|
35
|
-
# A newline in ROOT would split the
|
|
36
|
-
#
|
|
37
|
-
# --detect would print a clean verdict over a scan that excluded nothing. Refuse it up front.
|
|
35
|
+
# A newline in ROOT would split the newline-delimited file lists this script builds from it
|
|
36
|
+
# (the scan hits and every rel() path), so a path could be read back as two. Refuse it up front.
|
|
38
37
|
case "$ROOT" in
|
|
39
38
|
*$'\n'*)
|
|
40
|
-
echo "audit-models: refusing a --root containing a newline (it would
|
|
39
|
+
echo "audit-models: refusing a --root containing a newline (it would split the file lists)" >&2
|
|
41
40
|
exit 64
|
|
42
41
|
;;
|
|
43
42
|
esac
|
|
@@ -135,35 +134,7 @@ DELETION_GUARD=20 # abort --fix if any file would lose more than this many lin
|
|
|
135
134
|
# generator that reads the TS registry (eval-harness/scripts/gen-models.sh), and
|
|
136
135
|
# a blind sed here would make the generator no longer the sole writer — exactly
|
|
137
136
|
# the second-SSOT the generator's own header promises does not exist.
|
|
138
|
-
|
|
139
|
-
# Agent SDK `query()`, whose model resolution lives in the SDK's BUNDLED CLI — pinned at
|
|
140
|
-
# @anthropic-ai/claude-agent-sdk 0.3.284, which does not know `claude-haiku-5-5` (an
|
|
141
|
-
# unknown id silently halves max_tokens, #6934). Auto-fixing them to the new id would
|
|
142
|
-
# break two paid scripts, and leaving them selectable would make `--detect` exit 10
|
|
143
|
-
# forever. They stay on `claude-haiku-4-5` until the SDK pin reaches 0.3.293, the first
|
|
144
|
-
# release whose bundle carries the id. EXACT paths, never a directory: widening this to
|
|
145
|
-
# apps/web-platform/scripts/ would hide a genuinely stale sibling. The exemption is per FILE
|
|
146
|
-
# (every stale id, not only Haiku): these scripts run on the SDK-bundled CLI. It is SELF-EXPIRING:
|
|
147
|
-
# model-launch-review.test.ts fails once the SDK pin reaches 0.3.293 and says to delete
|
|
148
|
-
# this array and swap the two scripts.
|
|
149
|
-
SDK_PATH_CARVEOUT=(
|
|
150
|
-
"apps/web-platform/scripts/sandbox-canary.mjs"
|
|
151
|
-
"apps/web-platform/scripts/plugin-root-sandbox-propagation-probe.mjs"
|
|
152
|
-
)
|
|
153
|
-
sdk_carveout_re() {
|
|
154
|
-
# ANCHORED at both ends: `^<root>/<path>$`. The left anchor matters because candidate
|
|
155
|
-
# paths are absolute under $ROOT, so an unanchored `/apps/…/x.mjs$` also exempts the same
|
|
156
|
-
# relative path nested under another prefix (vendor/…, .worktrees/…). $ROOT is escaped so
|
|
157
|
-
# a root containing regex metacharacters cannot alter the pattern.
|
|
158
|
-
local p out="" root_re
|
|
159
|
-
root_re="$(printf '%s' "$ROOT" | sed 's/[][\\.*^$+?(){}|]/\\&/g')"
|
|
160
|
-
for p in "${SDK_PATH_CARVEOUT[@]}"; do
|
|
161
|
-
p="${p//./\\.}"
|
|
162
|
-
out="${out:+$out|}^${root_re}/${p}\$"
|
|
163
|
-
done
|
|
164
|
-
printf '%s' "$out"
|
|
165
|
-
}
|
|
166
|
-
EXCLUDE_RE='(/node_modules/|/\.git/|/\.next/|/test/|/__tests__/|/spike/|/archive/|knowledge-base/|/community/|\.test\.|\.spec\.|\.generated\.|/model-launch-review/|'"$(sdk_carveout_re)"')'
|
|
137
|
+
EXCLUDE_RE='(/node_modules/|/\.git/|/\.next/|/test/|/__tests__/|/spike/|/archive/|knowledge-base/|/community/|\.test\.|\.spec\.|\.generated\.|/model-launch-review/)'
|
|
167
138
|
|
|
168
139
|
# Collect config-class files containing any auto-fixable stale ID.
|
|
169
140
|
# Returns 2 (and prints to stderr) if the scan itself failed. That distinction
|