@cotal-ai/cli 0.68.0 → 0.69.0
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/describe.d.ts.map +1 -1
- package/dist/commands/describe.js +2 -2
- package/dist/commands/describe.js.map +1 -1
- package/dist/commands/down.d.ts +0 -23
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +8 -217
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/endpoints.js +2 -2
- package/dist/commands/endpoints.js.map +1 -1
- package/dist/commands/meshes.d.ts.map +1 -1
- package/dist/commands/meshes.js +5 -3
- package/dist/commands/meshes.js.map +1 -1
- package/dist/commands/mint.d.ts.map +1 -1
- package/dist/commands/mint.js +8 -2
- package/dist/commands/mint.js.map +1 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +4 -4
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/spawn.d.ts.map +1 -1
- package/dist/commands/spawn.js +98 -64
- package/dist/commands/spawn.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +3 -4
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +31 -25
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/up.d.ts +0 -2
- package/dist/commands/up.d.ts.map +1 -1
- package/dist/commands/up.js +139 -199
- package/dist/commands/up.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -9
- package/dist/index.js.map +1 -1
- package/dist/lib/control.d.ts +1 -13
- package/dist/lib/control.d.ts.map +1 -1
- package/dist/lib/control.js +1 -30
- package/dist/lib/control.js.map +1 -1
- package/dist/lib/delivery-proc.d.ts +1 -2
- package/dist/lib/delivery-proc.d.ts.map +1 -1
- package/dist/lib/delivery-proc.js +10 -9
- package/dist/lib/delivery-proc.js.map +1 -1
- package/dist/lib/local-process-stop.d.ts +29 -0
- package/dist/lib/local-process-stop.d.ts.map +1 -0
- package/dist/lib/local-process-stop.js +196 -0
- package/dist/lib/local-process-stop.js.map +1 -0
- package/dist/lib/manager-proc.d.ts +17 -17
- package/dist/lib/manager-proc.d.ts.map +1 -1
- package/dist/lib/manager-proc.js +57 -107
- package/dist/lib/manager-proc.js.map +1 -1
- package/dist/lib/manifest/ledger.js +1 -1
- package/dist/lib/manifest/prepare.d.ts.map +1 -1
- package/dist/lib/manifest/prepare.js +2 -2
- package/dist/lib/manifest/prepare.js.map +1 -1
- package/dist/lib/self-exec.d.ts +1 -1
- package/dist/lib/self-exec.js +1 -1
- package/dist/lib/status.d.ts +0 -1
- package/dist/lib/status.d.ts.map +1 -1
- package/dist/lib/status.js +2 -25
- package/dist/lib/status.js.map +1 -1
- package/dist/lib/teardown-spare.js +3 -3
- package/dist/lib/teardown-spare.js.map +1 -1
- package/dist/ui.d.ts +9 -9
- package/dist/ui.d.ts.map +1 -1
- package/dist/ui.js +16 -18
- package/dist/ui.js.map +1 -1
- package/package.json +4 -4
package/dist/ui.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { formatAge, presenceAges } from "@cotal-ai/core";
|
|
1
2
|
import { c } from "@cotal-ai/workspace";
|
|
2
3
|
// The ANSI helpers moved into `@cotal-ai/workspace` (stage 4), shared with @cotal-ai/web.
|
|
3
4
|
// Re-exported so the CLI's many importers keep resolving them from here.
|
|
@@ -14,26 +15,23 @@ export function statusBadge(status) {
|
|
|
14
15
|
return c.dim("⨯ offline");
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
|
-
/** Compact age: `12s`, `47m`, `3h`, `2d`. */
|
|
18
|
-
export function fmtAge(ms) {
|
|
19
|
-
const s = Math.max(0, Math.floor(ms / 1000));
|
|
20
|
-
if (s < 60)
|
|
21
|
-
return `${s}s`;
|
|
22
|
-
if (s < 3600)
|
|
23
|
-
return `${Math.floor(s / 60)}m`;
|
|
24
|
-
if (s < 86_400)
|
|
25
|
-
return `${Math.floor(s / 3600)}h`;
|
|
26
|
-
return `${Math.floor(s / 86_400)}d`;
|
|
27
|
-
}
|
|
28
18
|
/** The facts a status word needs beside it (#618): the harness-reported condition and how long it has
|
|
29
|
-
* held, then the age of the seat's last harness-reported work
|
|
30
|
-
* and one 40m old, or a turn that stopped advancing and one that
|
|
31
|
-
* alike. The seat reports `activeAt` itself, so the status word keeps
|
|
19
|
+
* held, how long the status has stood (#578), then the age of the seat's last harness-reported work
|
|
20
|
+
* event (`activeAt`). A failure 3s old and one 40m old, or a turn that stopped advancing and one that
|
|
21
|
+
* is advancing, no longer render alike. The seat reports `activeAt` itself, so the status word keeps
|
|
22
|
+
* its own progress wording. */
|
|
32
23
|
export function presenceDetail(p, now = Date.now()) {
|
|
33
|
-
const
|
|
34
|
-
const condition = p.condition ? ` (${p.condition.code}${
|
|
35
|
-
const
|
|
36
|
-
|
|
24
|
+
const age = presenceAges(p, now);
|
|
25
|
+
const condition = p.condition ? ` (${p.condition.code}${age.conditionSince === undefined ? "" : ` for ${formatAge(age.conditionSince)}`})` : "";
|
|
26
|
+
const unchanged = age.statusSince === undefined ? "" : c.dim(` · unchanged for ${formatAge(age.statusSince)}`);
|
|
27
|
+
const active = age.activeAt === undefined ? "" : c.dim(` · active ${formatAge(age.activeAt)} ago`);
|
|
28
|
+
return condition + unchanged + active;
|
|
29
|
+
}
|
|
30
|
+
/** The age that follows an activity (#544): a hook flips the status every turn and leaves the
|
|
31
|
+
* activity alone, so the status age cannot date it. */
|
|
32
|
+
export function activityAge(p, now = Date.now()) {
|
|
33
|
+
const age = presenceAges(p, now).activitySince;
|
|
34
|
+
return age === undefined ? "" : ` (set ${formatAge(age)} ago)`;
|
|
37
35
|
}
|
|
38
36
|
/** A follow-up hint for failures whose signature is stale on-disk broker state: streams/durable
|
|
39
37
|
* consumers minted by an older, incompatible Cotal generation survive every down/up cycle, and
|
package/dist/ui.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.js","sourceRoot":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AG,CAAC,oBAAoB,SAAS,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;IAC/G,MAAM,MAAM,GAAG,GAAG,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,aAAa,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IACnG,OAAO,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AACxC,CAAC;AAED;wDACwD;AACxD,MAAM,UAAU,WAAW,CAAC,CAAiB,EAAE,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE;IAC7D,MAAM,GAAG,GAAG,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,aAAa,CAAC;IAC/C,OAAO,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC;AACjE,CAAC;AAED;;;qFAGqF;AACrF,MAAM,UAAU,cAAc,CAAC,GAAW;IACxC,+FAA+F;IAC/F,8FAA8F;IAC9F,2EAA2E;IAC3E,OAAO,gDAAgD,CAAC,IAAI,CAAC,GAAG,CAAC;QAC/D,CAAC,CAAC,mLAAmL;QACrL,CAAC,CAAC,SAAS,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cotal-ai/cli",
|
|
3
3
|
"description": "Cotal mesh CLI: up, join, watch, console, spawn, mint, channels, history, ext.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.69.0",
|
|
5
5
|
"homepage": "https://cotal.ai",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"repository": {
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@cotal-ai/core": "0.
|
|
23
|
-
"@cotal-ai/workspace": "0.
|
|
22
|
+
"@cotal-ai/core": "0.69.0",
|
|
23
|
+
"@cotal-ai/workspace": "0.69.0",
|
|
24
24
|
"@nats-io/jetstream": "^3.4.0",
|
|
25
25
|
"@nats-io/kv": "^3.4.0",
|
|
26
26
|
"@nats-io/obj": "^3.4.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@eplightning/nats-server-win32-x64": "^2.14.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@cotal-ai/auth": "0.
|
|
44
|
+
"@cotal-ai/auth": "0.69.0",
|
|
45
45
|
"@cotal-ai/smoke-kit": "0.0.0",
|
|
46
46
|
"@types/react": "^19.0.0",
|
|
47
47
|
"@types/ws": "^8.18.1"
|