@commonlyai/cli 0.1.303 → 0.1.305
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 +1 -1
- package/src/lib/adapters/goose.js +13 -1
- package/src/lib/adapters/pi.js +6 -2
package/package.json
CHANGED
|
@@ -24,6 +24,14 @@ import { brokerBridgeEntry } from './broker-bridge-entry.js';
|
|
|
24
24
|
import { BRIDGE_PATH } from './codex-broker-bridge.mjs';
|
|
25
25
|
|
|
26
26
|
// A version enters this list only after a real headless turn with that binary.
|
|
27
|
+
// Each version here is proven by the real-binary smoke test on macOS and Linux
|
|
28
|
+
// (.github/workflows/goose-public-proof.yml carries one pinned row per version).
|
|
29
|
+
// 1.56.0 is NOT admitted (11-04, F113c): its state-machine agent loop offers the
|
|
30
|
+
// model a `load_skill` operation on every turn that the extension allowlist
|
|
31
|
+
// cannot remove, so a stranger could read any skill under the seat's working
|
|
32
|
+
// directory (.agents/.goose/.claude skills) and Goose's builtin skills. The
|
|
33
|
+
// proof failed on both hosts at the allowlist check. Re-admit a version only
|
|
34
|
+
// once skills can be switched off for public turns and the proof is green.
|
|
27
35
|
export const TESTED_GOOSE_VERSIONS = Object.freeze(['1.54.0']);
|
|
28
36
|
const DEFAULT_TIMEOUT_MS = 15 * 60 * 1000;
|
|
29
37
|
const TERMINATION_GRACE_MS = 5000;
|
|
@@ -88,7 +96,11 @@ export const assertSandboxSupported = (environment = {}) => {
|
|
|
88
96
|
}
|
|
89
97
|
};
|
|
90
98
|
|
|
91
|
-
|
|
99
|
+
// The version is read whole or not at all. A prerelease is kept (`1.54.0-rc.1` is not the tested 1.54.0), and a
|
|
100
|
+
// version touching a letter, digit, `.`, `+` or `-` on either side (`1.54.0rc1`, `1.54.0.1`, `2.1.54.0`, `v1.54.0`,
|
|
101
|
+
// `1.54.0+build`) reads as unknown, so the public gate never admits part of a longer string.
|
|
102
|
+
const versionOf = (value) => String(value || '').trim()
|
|
103
|
+
.match(/(?<![\w.+-])(\d+\.\d+\.\d+(?:-[0-9A-Za-z]+(?:\.[0-9A-Za-z]+)*)?)(?![\w.+-])/)?.[1] || null;
|
|
92
104
|
|
|
93
105
|
/** Goose splits this string itself; reject quotes it cannot represent safely. */
|
|
94
106
|
const gooseWord = (value) => {
|
package/src/lib/adapters/pi.js
CHANGED
|
@@ -499,8 +499,12 @@ export const piPackageRoot = (binary) => {
|
|
|
499
499
|
}
|
|
500
500
|
};
|
|
501
501
|
|
|
502
|
-
// The prerelease
|
|
503
|
-
|
|
502
|
+
// The version is read whole or not at all, as goose.js does. A prerelease is kept (`0.84.1-rc.1` is not the tested
|
|
503
|
+
// 0.84.1), and a version touching a letter, digit, `.`, `+`, `-` or `~` on either side (`0.84.1rc1`, `0.84.1.1`,
|
|
504
|
+
// `1.0.84.1`, `v0.84.1`, `0.84.1+build`, the Debian-style `0.84.1~rc1`) reads as unknown, so the public gate never
|
|
505
|
+
// admits part of a longer string.
|
|
506
|
+
const versionOf = (value) => String(value || '').trim()
|
|
507
|
+
.match(/(?<![\w.+~-])(\d+\.\d+\.\d+(?:-[0-9A-Za-z]+(?:\.[0-9A-Za-z]+)*)?)(?![\w.+~-])/)?.[1] || null;
|
|
504
508
|
|
|
505
509
|
export const buildArgs = ({
|
|
506
510
|
prompt, provider, model, thinking, sessionId, isResume, sessionDir, bridge, publicSeat = false, ownerWoken = false,
|