benignswarm 0.12.63 → 0.12.64
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/commands/codex-start.js +6 -0
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ import { requireInstall } from "../install.js";
|
|
|
9
9
|
import { bindSession, codexArchivedRollout, codexRollout } from "../sessions.js";
|
|
10
10
|
import { codexHooksPath } from "./codex.js";
|
|
11
11
|
import { CODEX_MANAGED_MARK } from "../harness.js";
|
|
12
|
+
import { readState, writeState } from "../state.js";
|
|
12
13
|
import { join } from "./join.js";
|
|
13
14
|
import { installWatcherService } from "./watch.js";
|
|
14
15
|
const SANDBOXES = ["read-only", "workspace-write", "danger-full-access"];
|
|
@@ -88,6 +89,11 @@ export async function codexStart(p, out) {
|
|
|
88
89
|
}
|
|
89
90
|
// 3. Bind it, so the hooks in that thread deliver to this agent and nobody else.
|
|
90
91
|
bindSession("codex", thread, ref);
|
|
92
|
+
// A thread adopted here may end in a usage-limit error from the machine it came from, written in
|
|
93
|
+
// that machine's local time ("3:32 PM" Central read as UTC on ronald: six hours off). Only errors
|
|
94
|
+
// from turns on this machine pause it; if the account is still limited, the next turn says so here.
|
|
95
|
+
if (adopt)
|
|
96
|
+
writeState(ref, { ...readState(ref), turn_unpaused_at: Date.now() });
|
|
91
97
|
// 4. The watcher, in turn mode: it runs each later turn itself.
|
|
92
98
|
const exec = [codexBin, "exec", "resume", thread, ...settings].map(shq).join(" ") + " {text}";
|
|
93
99
|
const watcherOut = [];
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const CLI_VERSION = "0.12.
|
|
1
|
+
export const CLI_VERSION = "0.12.64";
|