agent-dag 1.34.0 → 1.34.2
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/bin/deck.js +11 -4
- package/dist/web/assets/{index-BpDHqfOL.js → index-CLdlWxJO.js} +18 -18
- package/dist/web/assets/{index-C9im4KPT.css → index-CV3aF__6.css} +1 -1
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/src/server/ccusage.mjs +24 -2
- package/src/server/codex-auth.mjs +55 -2
- package/src/server/codex-quota.mjs +28 -1
- package/src/server/cswap-admin.mjs +47 -1
- package/src/server/exec.mjs +53 -4
- package/src/server/index.mjs +50 -3
- package/src/server/installer.mjs +30 -3
- package/src/server/quota.mjs +78 -51
- package/src/server/sound-hook.mjs +20 -2
package/bin/deck.js
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
// was already done once this session is skipped — that is what makes a restart
|
|
6
6
|
// take about a second instead of the better part of ten.
|
|
7
7
|
import { resolve, dirname, join } from "node:path";
|
|
8
|
-
import { homedir } from "node:os";
|
|
9
8
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
10
9
|
import { existsSync, readFileSync } from "node:fs";
|
|
11
10
|
import { dieOfSignal } from "../src/server/supervisor.mjs";
|
|
@@ -96,7 +95,11 @@ const persist = flags.noPersist
|
|
|
96
95
|
|
|
97
96
|
const { installHooks, keepDiscovery, removeDiscovery, hasCodexInstalled } =
|
|
98
97
|
await import(pathToFileURL(join(PKG_ROOT, "src/server/installer.mjs")).href);
|
|
99
|
-
|
|
98
|
+
// CODEX_SESSIONS_DIR comes along because the banner below names the directory
|
|
99
|
+
// the watcher tails, and the watcher lives in that module. Recomputing the path
|
|
100
|
+
// here is how the banner came to print ~/.codex/sessions on machines whose
|
|
101
|
+
// sessions are somewhere else entirely — see the row further down.
|
|
102
|
+
const { startServer, hookToken, releaseRestart, CODEX_SESSIONS_DIR } =
|
|
100
103
|
await import(pathToFileURL(join(PKG_ROOT, "src/server/index.mjs")).href);
|
|
101
104
|
|
|
102
105
|
// Whether the server starts the Codex rollout watcher. Nothing is installed
|
|
@@ -291,8 +294,12 @@ async function reportStartup(jobs) {
|
|
|
291
294
|
// there's nothing to install and no /hooks trust step. We just confirm Codex
|
|
292
295
|
// is present and let the watcher pick up sessions.
|
|
293
296
|
if (wantCodex) {
|
|
294
|
-
|
|
295
|
-
|
|
297
|
+
// The directory the watcher actually tails, imported from the module that
|
|
298
|
+
// owns it rather than rebuilt from homedir() here. CODEX_HOME relocates the
|
|
299
|
+
// whole tree, and this row is the only diagnostic the deck prints about
|
|
300
|
+
// Codex — so when sessions do not show up, a path computed a second way
|
|
301
|
+
// sends the user to inspect a directory the deck never opened.
|
|
302
|
+
write(row({ mark: G.ok, label: "Codex sessions", detail: `watching ${fileLink(CODEX_SESSIONS_DIR)}` }));
|
|
296
303
|
} else {
|
|
297
304
|
write(row({ label: "Codex sessions", detail: `skipped ${G.dash} no ~/.codex/, or --no-codex` }));
|
|
298
305
|
}
|