agent-dag 1.35.28 → 1.35.29
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/README.md +3 -0
- package/bin/deck.js +6 -0
- package/dist/web/assets/{index-zdN41Mgx.js → index-yGg2Xb4o.js} +23 -23
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
- package/src/server/ccusage.mjs +157 -18
- package/src/server/exec.mjs +62 -10
package/README.md
CHANGED
|
@@ -144,8 +144,11 @@ Environment:
|
|
|
144
144
|
| `AGENTS_DECK_NO_FRESHEN=1` | Never nudge claude-swap to collect usage early |
|
|
145
145
|
| `AGENTS_DECK_CSWAP` | Full path to `cswap`, when it lives somewhere unusual |
|
|
146
146
|
| `AGENTS_DECK_CLAUDE` | Full path to the `claude` CLI |
|
|
147
|
+
| `AGENTS_DECK_CCUSAGE` | Full path to your own `ccusage`, used ahead of everything else |
|
|
147
148
|
| `CLAUDE_SWAP_BACKUP` | Override the claude-swap store root the Accounts panel reads |
|
|
148
149
|
|
|
150
|
+
Usage history is read with `ccusage`, and the deck takes the first of these that answers: `AGENTS_DECK_CCUSAGE` if you set it, then the copy it installed for itself under `~/.agents-deck/ccusage`, then a `ccusage` on your PATH, then `npx -y ccusage@latest`. So installing ccusage yourself is enough — the deck will not fetch a second copy, and it works under `AGENTS_DECK_NO_INSTALL=1`, which is the combination that variable is for. When something fails, the modal names which of those four it was.
|
|
151
|
+
|
|
149
152
|
Being told to restart after an upgrade is local only — no network involved — and cannot be turned off, because a deck running superseded code is a bug you cannot see any other way.
|
|
150
153
|
|
|
151
154
|
## Uninstall
|
package/bin/deck.js
CHANGED
|
@@ -396,6 +396,12 @@ async function reportStartup(jobs) {
|
|
|
396
396
|
const cu = await jobs.ccusage;
|
|
397
397
|
if (cu?.state === "present") write(row({ mark: G.ok, label: "ccusage", detail: `v${cu.version}` }));
|
|
398
398
|
else if (cu?.state === "updating") write(row({ mark: G.ok, label: "ccusage", detail: `v${cu.version}, checking for update` }));
|
|
399
|
+
// A ccusage the user provided, named rather than versioned — reading a
|
|
400
|
+
// version out of it means running it, and a status row is not worth a spawn.
|
|
401
|
+
// Naming the file is the more useful half anyway: it is the answer to "which
|
|
402
|
+
// ccusage is this deck actually going to run", which is a question a machine
|
|
403
|
+
// with a managed install AND a PATH copy could not answer before #433.
|
|
404
|
+
else if (cu?.state === "user") write(row({ mark: G.ok, label: "ccusage", detail: `your own copy ${G.dash} ${cu.bin}` }));
|
|
399
405
|
else if (cu?.state === "installing") write(row({ mark: G.ok, label: "ccusage", detail: "installing in background" }));
|
|
400
406
|
|
|
401
407
|
const upgrade = await jobs.update;
|