benignswarm 0.12.125 → 0.12.126
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/dist/antigravity.js +9 -0
- package/dist/commands/machine.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/antigravity.js
CHANGED
|
@@ -40,6 +40,15 @@ export function antigravitySandboxPermissions(apiHost, b9sHome, b9sBin, nodeBin
|
|
|
40
40
|
`read_file(${b9sBin})`, `read_file(${realpathSync(b9sBin)})`, `read_file(${nodeBin})`, `read_file(${packageRoot})`,
|
|
41
41
|
`write_file(${b9sHome})`,
|
|
42
42
|
];
|
|
43
|
+
// The Node installation's commands, read-only. Granting only the node binary hid npm and npx,
|
|
44
|
+
// which sit beside it as links into lib/node_modules: a sandboxed agent could not install
|
|
45
|
+
// dependencies or run a project's scripts (verified with agy on Linux: `which npm` found nothing;
|
|
46
|
+
// with these two folders npm and npx run and the installation stays read-only).
|
|
47
|
+
const nodeBinDir = dirname(nodeBin);
|
|
48
|
+
const nodeModules = join(dirname(nodeBinDir), "lib", "node_modules");
|
|
49
|
+
allow.push(`read_file(${nodeBinDir})`);
|
|
50
|
+
if (existsSync(nodeModules))
|
|
51
|
+
allow.push(`read_file(${nodeModules})`);
|
|
43
52
|
if (skillRoot) {
|
|
44
53
|
allow.push(`read_file(${join(skillRoot, "identity.json")})`);
|
|
45
54
|
for (const file of ["SKILL.md", "references/api.md", "references/watchers.md", "references/process.md", "references/continuity.md"]) {
|
package/dist/commands/machine.js
CHANGED
|
@@ -68,7 +68,7 @@ function writeMachineState(s) {
|
|
|
68
68
|
* again once with them. 2: the agent's own worktree git folder is writable under workspace-write.
|
|
69
69
|
* 3: turns get TMPDIR beside the checkout instead of the system's /tmp.
|
|
70
70
|
*/
|
|
71
|
-
const START_REV =
|
|
71
|
+
const START_REV = 9;
|
|
72
72
|
export const sessionFingerprint = (s, writable = [], imageDigest = null) => JSON.stringify([s.id, s.harness, ...(s.provider && s.provider !== "anthropic" ? [s.provider] : []), s.dir, s.sandbox, s.model, s.effort, s.turn_timeout, s.turns_per_hour ?? DEFAULT_TURNS_PER_HOUR, s.unproductive_per_hour ?? DEFAULT_UNPRODUCTIVE_PER_HOUR, s.turn_coalesce_seconds ?? 180, s.thread, ...(writable.length ? [writable] : []), ...(imageDigest ? [imageDigest] : []), ...(START_REV > 1 ? [`rev${START_REV}`] : [])]);
|
|
73
73
|
/** A server thread update must restart the watcher even if a stored fingerprint is unexpectedly stale. */
|
|
74
74
|
export function sessionConfigChanged(s, local, fingerprint) {
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const CLI_VERSION = "0.12.
|
|
1
|
+
export const CLI_VERSION = "0.12.126";
|