@cotal-ai/cli 0.120.0 → 0.120.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.
@@ -0,0 +1,4 @@
1
+ import { type OutputWarning } from "@cotal-ai/workspace";
2
+ /** A broker-only start has no local signer process renewing its standing daemon credentials. */
3
+ export declare function noManagerCredentialWarning(root: string, space: string): Promise<OutputWarning>;
4
+ //# sourceMappingURL=daemon-credential-warning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daemon-credential-warning.d.ts","sourceRoot":"","sources":["../../src/lib/daemon-credential-warning.ts"],"names":[],"mappings":"AACA,OAAO,EAAiD,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAExG,gGAAgG;AAChG,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAuBpG"}
@@ -0,0 +1,30 @@
1
+ import { credsClaims } from "@cotal-ai/core";
2
+ import { REMINTABLE_DAEMON_CREDS, workspaceSecretStore } from "@cotal-ai/workspace";
3
+ /** A broker-only start has no local signer process renewing its standing daemon credentials. */
4
+ export async function noManagerCredentialWarning(root, space) {
5
+ const store = workspaceSecretStore(root);
6
+ const windows = [];
7
+ for (const { kind, key } of REMINTABLE_DAEMON_CREDS) {
8
+ const name = kind;
9
+ try {
10
+ const bytes = await store.get(key(space));
11
+ if (bytes === undefined)
12
+ windows.push(`${name}: missing`);
13
+ else {
14
+ const exp = credsClaims(bytes).exp;
15
+ windows.push(typeof exp === "number" && Number.isFinite(exp)
16
+ ? `${name}: expires ${new Date(exp * 1000).toISOString()}`
17
+ : `${name}: no bounded expiry`);
18
+ }
19
+ }
20
+ catch {
21
+ windows.push(`${name}: expiry could not be read`);
22
+ }
23
+ }
24
+ return {
25
+ code: "DAEMON_CREDENTIAL_RENEWAL_UNOWNED",
26
+ target: { root, space },
27
+ message: `--no-manager starts no local daemon-credential renewal owner. Unless a manager renews this same secret store, the daemon credentials expire without being re-signed (${windows.join("; ")}). The daemon only adopts re-signed credentials. Run \`cotal doctor auth\` to inspect them.`,
28
+ };
29
+ }
30
+ //# sourceMappingURL=daemon-credential-warning.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daemon-credential-warning.js","sourceRoot":"","sources":["../../src/lib/daemon-credential-warning.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAsB,MAAM,qBAAqB,CAAC;AAExG,gGAAgG;AAChG,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAAC,IAAY,EAAE,KAAa;IAC1E,MAAM,KAAK,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACzC,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,uBAAuB,EAAE,CAAC;QACpD,MAAM,IAAI,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC;YACH,MAAM,KAAK,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;YAC1C,IAAI,KAAK,KAAK,SAAS;gBAAE,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,WAAW,CAAC,CAAC;iBACrD,CAAC;gBACJ,MAAM,GAAG,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC;gBACnC,OAAO,CAAC,IAAI,CAAC,OAAO,GAAG,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC;oBAC1D,CAAC,CAAC,GAAG,IAAI,aAAa,IAAI,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC,WAAW,EAAE,EAAE;oBAC1D,CAAC,CAAC,GAAG,IAAI,qBAAqB,CAAC,CAAC;YACpC,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,4BAA4B,CAAC,CAAC;QACpD,CAAC;IACH,CAAC;IACD,OAAO;QACL,IAAI,EAAE,mCAAmC;QACzC,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;QACvB,OAAO,EAAE,wKAAwK,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,6FAA6F;KACjS,CAAC;AACJ,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.120.0",
4
+ "version": "0.120.2",
5
5
  "homepage": "https://cotal.ai",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -27,8 +27,8 @@
27
27
  }
28
28
  },
29
29
  "dependencies": {
30
- "@cotal-ai/core": "0.120.0",
31
- "@cotal-ai/workspace": "0.120.0",
30
+ "@cotal-ai/core": "0.120.2",
31
+ "@cotal-ai/workspace": "0.120.2",
32
32
  "@nats-io/jetstream": "^3.4.0",
33
33
  "@nats-io/kv": "^3.4.0",
34
34
  "@nats-io/obj": "^3.4.0",
@@ -49,7 +49,7 @@
49
49
  "@eplightning/nats-server-win32-x64": "^2.14.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@cotal-ai/auth": "0.120.0",
52
+ "@cotal-ai/auth": "0.120.2",
53
53
  "@cotal-ai/smoke-kit": "0.0.0",
54
54
  "@types/react": "^19.0.0",
55
55
  "@types/ws": "^8.18.1"