@cotal-ai/workspace 0.11.6 → 0.13.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/auth-paths.d.ts +52 -2
- package/dist/auth-paths.d.ts.map +1 -1
- package/dist/auth-paths.js +107 -4
- package/dist/auth-paths.js.map +1 -1
- package/dist/connect.d.ts.map +1 -1
- package/dist/connect.js +4 -1
- package/dist/connect.js.map +1 -1
- package/dist/flags.d.ts +2 -2
- package/dist/flags.d.ts.map +1 -1
- package/dist/flags.js +2 -2
- package/dist/flags.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/maintenance.d.ts +517 -0
- package/dist/maintenance.d.ts.map +1 -0
- package/dist/maintenance.js +2551 -0
- package/dist/maintenance.js.map +1 -0
- package/dist/mesh-registry.d.ts +11 -7
- package/dist/mesh-registry.d.ts.map +1 -1
- package/dist/mesh-registry.js +26 -17
- package/dist/mesh-registry.js.map +1 -1
- package/dist/mesh-target.d.ts +3 -2
- package/dist/mesh-target.d.ts.map +1 -1
- package/dist/mesh-target.js +11 -10
- package/dist/mesh-target.js.map +1 -1
- package/dist/renewal.d.ts +20 -4
- package/dist/renewal.d.ts.map +1 -1
- package/dist/renewal.js +28 -11
- package/dist/renewal.js.map +1 -1
- package/dist/secret-store-fs.d.ts +39 -0
- package/dist/secret-store-fs.d.ts.map +1 -0
- package/dist/secret-store-fs.js +80 -0
- package/dist/secret-store-fs.js.map +1 -0
- package/package.json +3 -3
package/dist/auth-paths.d.ts
CHANGED
|
@@ -1,11 +1,61 @@
|
|
|
1
|
-
import { type SpaceAuth } from "@cotal-ai/core";
|
|
1
|
+
import { type SecretStore, type SpaceAuth } from "@cotal-ai/core";
|
|
2
2
|
export declare function authDir(root: string): string;
|
|
3
|
+
/** THE per-space path/key segment — the single guarded encoder every space-keyed surface consumes
|
|
4
|
+
* (this state dir AND the auth secret-store key builders). `encodeURIComponent` keeps any real
|
|
5
|
+
* name one flat segment (`a/b` → `a%2Fb`) but leaves dots alone, so `.`/`..`/empty would alias a
|
|
6
|
+
* parent (`auth/..` normalizes OUT of the space's own segment) — refused HERE, before any path is
|
|
7
|
+
* built or state touched. Two independently-guarded encoders were the defect generator (one gains
|
|
8
|
+
* a rule the other doesn't); keep exactly one. */
|
|
9
|
+
export declare function spaceSegment(space: string): string;
|
|
3
10
|
/** The SPACE-SCOPED user-auth state dir (`<root>/.cotal/auth/<space>`) — the one layout fact the
|
|
4
11
|
* workstation layer owns about user auth: the auth provider persists its material under this dir
|
|
5
12
|
* (opaque to us), and its EXISTENCE marks the space as user-auth-enabled on disk. Space-keyed now
|
|
6
13
|
* so multi-space-per-root is a caller change, never an on-disk migration; a (broker, space) key
|
|
7
|
-
* later extends the same shape.
|
|
14
|
+
* later extends the same shape. Fails loud on a degenerate space (see {@link spaceSegment}) —
|
|
15
|
+
* BEFORE any caller can mutate at an aliased path. */
|
|
8
16
|
export declare function userAuthStateDir(root: string, space: string): string;
|
|
17
|
+
/** The dir every per-agent standing secret materializes under (`<root>/.cotal/auth/creds`) —
|
|
18
|
+
* space-INDEPENDENT today (one root serves one space); multi-space-per-root re-keys this layout
|
|
19
|
+
* as a caller change, same as {@link userAuthStateDir}'s note. */
|
|
20
|
+
export declare function agentCredsDir(root: string): string;
|
|
21
|
+
/** THE per-agent file segment — the single guarded encoder under every agent-secret key AND path
|
|
22
|
+
* (the {@link spaceSegment} posture: one encoder, guarded before any key or path exists). The
|
|
23
|
+
* alphabet is the manager's spawn-name discipline (`manager.nameError`); the CLI's `--name`
|
|
24
|
+
* override historically had no such guard, so a path-hostile name is refused HERE, before it can
|
|
25
|
+
* address a key or file outside the creds dir. */
|
|
26
|
+
export declare function agentSecretSegment(name: string): string;
|
|
27
|
+
/** Canonical {@link SecretStore} keys of the per-agent standing secrets, mirroring today's
|
|
28
|
+
* `.cotal/auth/creds/<name>.<kind>` layout byte-for-byte under the workspace FS composition.
|
|
29
|
+
* `<name>.creds` is the static-auth scoped cred; the actor token + sentinel cred are the
|
|
30
|
+
* user-mode pair a spawn mints. The transient `<name>.auth-health.json` is runtime state, NOT a
|
|
31
|
+
* secret kind — it stays plain-file. */
|
|
32
|
+
export declare const agentCredsKey: (name: string) => string;
|
|
33
|
+
export declare const agentActorTokenKey: (name: string) => string;
|
|
34
|
+
export declare const agentSentinelCredsKey: (name: string) => string;
|
|
35
|
+
/** The FS materialization paths of one agent's secret family (plus its non-secret health file) —
|
|
36
|
+
* built from the SAME filename source as the key builders. These are the paths subprocesses read
|
|
37
|
+
* (the bearer re-exec's `--token-file`, a launch's creds handoff), never an alternate source of
|
|
38
|
+
* truth: under the local FS composition each path IS its key's storage location. */
|
|
39
|
+
export declare function agentSecretFilePaths(root: string, name: string): {
|
|
40
|
+
creds: string;
|
|
41
|
+
actorToken: string;
|
|
42
|
+
sentinelCreds: string;
|
|
43
|
+
health: string;
|
|
44
|
+
};
|
|
45
|
+
/** Enumerate the store keys of every per-agent standing secret currently materialized under this
|
|
46
|
+
* root — the reset/backstop sweep (`clean all`; despawn owns the primary delete). Deliberately
|
|
47
|
+
* filename-driven over the LOCAL creds dir: this surface is the FS composition (a hosted reset
|
|
48
|
+
* rides its own store), and a file only maps to a key if a valid spawn could have written it —
|
|
49
|
+
* health files and strays are left to the caller's raw cleanup. */
|
|
50
|
+
export declare function agentSecretKeysUnder(root: string): string[];
|
|
51
|
+
/** Materialize a store secret into a 0600 file for a process that can only read files — the
|
|
52
|
+
* agent-bearer re-exec (`--token-file`) and the launch-time creds handoff. The STORE is the
|
|
53
|
+
* source of truth; the file is a caller-owned projection at an explicit path (under the local FS
|
|
54
|
+
* composition, a byte-identical rewrite of the key's own location). An absent key fails loud:
|
|
55
|
+
* materializing nothing would hand the subprocess an empty credential. Lives here, OUTSIDE core,
|
|
56
|
+
* by decision — core's seam stays get/put/delete; where a projection lands on THIS machine is a
|
|
57
|
+
* workstation concern. */
|
|
58
|
+
export declare function materializeSecretToFile(store: SecretStore, key: string, path: string): Promise<void>;
|
|
9
59
|
/** Find the project's `.cotal/` by walking up from `start` (like git finds `.git`), returning the
|
|
10
60
|
* directory that *contains* `.cotal/`. Falls back to `start` when none is found up the tree (a
|
|
11
61
|
* fresh setup creates `.cotal/` there). Lets `cotal` run from any subdirectory of a project. */
|
package/dist/auth-paths.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-paths.d.ts","sourceRoot":"","sources":["../src/auth-paths.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"auth-paths.d.ts","sourceRoot":"","sources":["../src/auth-paths.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuD,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAevH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5C;AAED;;;;;mDAKmD;AACnD,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMlD;AAED;;;;;uDAKuD;AACvD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAEpE;AAID;;mEAEmE;AACnE,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAElD;AAED;;;;mDAImD;AACnD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIvD;AAUD;;;;yCAIyC;AACzC,eAAO,MAAM,aAAa,GAAI,MAAM,MAAM,KAAG,MAA+C,CAAC;AAC7F,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,KAAG,MAAoD,CAAC;AACvG,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,KAAG,MAAuD,CAAC;AAE7G;;;qFAGqF;AACrF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG;IAChE,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;CAC1E,CAQA;AAED;;;;oEAIoE;AACpE,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAmB3D;AAED;;;;;;2BAM2B;AAC3B,wBAAsB,uBAAuB,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAM1G;AAED;;iGAEiG;AACjG,wBAAgB,aAAa,CAAC,KAAK,GAAE,MAAsB,GAAG,MAAM,CAQnE;AAED;;iGAEiG;AACjG,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,CAIhE;AAED,iFAAiF;AACjF,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAIhE"}
|
package/dist/auth-paths.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { existsSync, readFileSync } from "node:fs";
|
|
1
|
+
import { existsSync, readFileSync, readdirSync } from "node:fs";
|
|
2
2
|
import { join, dirname, resolve } from "node:path";
|
|
3
|
-
import { mkSecretDir, writeSecretFile } from "@cotal-ai/core";
|
|
3
|
+
import { mkSecretDir, writeSecretFile, writeSecretFileAtomic } from "@cotal-ai/core";
|
|
4
4
|
/**
|
|
5
5
|
* On-disk auth-material I/O for a local checkout's `.cotal/` — machine-local path resolution plus
|
|
6
6
|
* reading/writing the space trust material. Lives in `@cotal-ai/workspace` (not core) because it's a
|
|
@@ -15,13 +15,116 @@ const AUTH_FILE = "auth.json";
|
|
|
15
15
|
export function authDir(root) {
|
|
16
16
|
return join(root, ".cotal", "auth");
|
|
17
17
|
}
|
|
18
|
+
/** THE per-space path/key segment — the single guarded encoder every space-keyed surface consumes
|
|
19
|
+
* (this state dir AND the auth secret-store key builders). `encodeURIComponent` keeps any real
|
|
20
|
+
* name one flat segment (`a/b` → `a%2Fb`) but leaves dots alone, so `.`/`..`/empty would alias a
|
|
21
|
+
* parent (`auth/..` normalizes OUT of the space's own segment) — refused HERE, before any path is
|
|
22
|
+
* built or state touched. Two independently-guarded encoders were the defect generator (one gains
|
|
23
|
+
* a rule the other doesn't); keep exactly one. */
|
|
24
|
+
export function spaceSegment(space) {
|
|
25
|
+
if (!space)
|
|
26
|
+
throw new Error("a space name is required");
|
|
27
|
+
const enc = encodeURIComponent(space);
|
|
28
|
+
if (enc === "." || enc === "..")
|
|
29
|
+
throw new Error(`"${space}" cannot name a space - its state would escape the space's own segment`);
|
|
30
|
+
return enc;
|
|
31
|
+
}
|
|
18
32
|
/** The SPACE-SCOPED user-auth state dir (`<root>/.cotal/auth/<space>`) — the one layout fact the
|
|
19
33
|
* workstation layer owns about user auth: the auth provider persists its material under this dir
|
|
20
34
|
* (opaque to us), and its EXISTENCE marks the space as user-auth-enabled on disk. Space-keyed now
|
|
21
35
|
* so multi-space-per-root is a caller change, never an on-disk migration; a (broker, space) key
|
|
22
|
-
* later extends the same shape.
|
|
36
|
+
* later extends the same shape. Fails loud on a degenerate space (see {@link spaceSegment}) —
|
|
37
|
+
* BEFORE any caller can mutate at an aliased path. */
|
|
23
38
|
export function userAuthStateDir(root, space) {
|
|
24
|
-
return join(authDir(root),
|
|
39
|
+
return join(authDir(root), spaceSegment(space));
|
|
40
|
+
}
|
|
41
|
+
// ---- per-agent standing secrets (static creds / actor token / sentinel creds) ----
|
|
42
|
+
/** The dir every per-agent standing secret materializes under (`<root>/.cotal/auth/creds`) —
|
|
43
|
+
* space-INDEPENDENT today (one root serves one space); multi-space-per-root re-keys this layout
|
|
44
|
+
* as a caller change, same as {@link userAuthStateDir}'s note. */
|
|
45
|
+
export function agentCredsDir(root) {
|
|
46
|
+
return join(authDir(root), "creds");
|
|
47
|
+
}
|
|
48
|
+
/** THE per-agent file segment — the single guarded encoder under every agent-secret key AND path
|
|
49
|
+
* (the {@link spaceSegment} posture: one encoder, guarded before any key or path exists). The
|
|
50
|
+
* alphabet is the manager's spawn-name discipline (`manager.nameError`); the CLI's `--name`
|
|
51
|
+
* override historically had no such guard, so a path-hostile name is refused HERE, before it can
|
|
52
|
+
* address a key or file outside the creds dir. */
|
|
53
|
+
export function agentSecretSegment(name) {
|
|
54
|
+
if (!/^[A-Za-z0-9_-]+$/.test(name))
|
|
55
|
+
throw new Error(`unsafe agent name ${JSON.stringify(name)} for secret material (allowed: letters, digits, _ -)`);
|
|
56
|
+
return name;
|
|
57
|
+
}
|
|
58
|
+
// One filename source per kind — the store key and the materialized path project the SAME name,
|
|
59
|
+
// so the two can never drift apart (the `DELIVERY_CREDS_KEY` lesson, per kind).
|
|
60
|
+
const agentFile = {
|
|
61
|
+
creds: (name) => `${agentSecretSegment(name)}.creds`,
|
|
62
|
+
actorToken: (name) => `${agentSecretSegment(name)}.actor-token`,
|
|
63
|
+
sentinelCreds: (name) => `${agentSecretSegment(name)}.sentinel.creds`,
|
|
64
|
+
};
|
|
65
|
+
/** Canonical {@link SecretStore} keys of the per-agent standing secrets, mirroring today's
|
|
66
|
+
* `.cotal/auth/creds/<name>.<kind>` layout byte-for-byte under the workspace FS composition.
|
|
67
|
+
* `<name>.creds` is the static-auth scoped cred; the actor token + sentinel cred are the
|
|
68
|
+
* user-mode pair a spawn mints. The transient `<name>.auth-health.json` is runtime state, NOT a
|
|
69
|
+
* secret kind — it stays plain-file. */
|
|
70
|
+
export const agentCredsKey = (name) => `auth/creds/${agentFile.creds(name)}`;
|
|
71
|
+
export const agentActorTokenKey = (name) => `auth/creds/${agentFile.actorToken(name)}`;
|
|
72
|
+
export const agentSentinelCredsKey = (name) => `auth/creds/${agentFile.sentinelCreds(name)}`;
|
|
73
|
+
/** The FS materialization paths of one agent's secret family (plus its non-secret health file) —
|
|
74
|
+
* built from the SAME filename source as the key builders. These are the paths subprocesses read
|
|
75
|
+
* (the bearer re-exec's `--token-file`, a launch's creds handoff), never an alternate source of
|
|
76
|
+
* truth: under the local FS composition each path IS its key's storage location. */
|
|
77
|
+
export function agentSecretFilePaths(root, name) {
|
|
78
|
+
const dir = agentCredsDir(root);
|
|
79
|
+
return {
|
|
80
|
+
creds: join(dir, agentFile.creds(name)),
|
|
81
|
+
actorToken: join(dir, agentFile.actorToken(name)),
|
|
82
|
+
sentinelCreds: join(dir, agentFile.sentinelCreds(name)),
|
|
83
|
+
health: join(dir, `${agentSecretSegment(name)}.auth-health.json`),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/** Enumerate the store keys of every per-agent standing secret currently materialized under this
|
|
87
|
+
* root — the reset/backstop sweep (`clean all`; despawn owns the primary delete). Deliberately
|
|
88
|
+
* filename-driven over the LOCAL creds dir: this surface is the FS composition (a hosted reset
|
|
89
|
+
* rides its own store), and a file only maps to a key if a valid spawn could have written it —
|
|
90
|
+
* health files and strays are left to the caller's raw cleanup. */
|
|
91
|
+
export function agentSecretKeysUnder(root) {
|
|
92
|
+
let entries;
|
|
93
|
+
try {
|
|
94
|
+
entries = readdirSync(agentCredsDir(root));
|
|
95
|
+
}
|
|
96
|
+
catch (e) {
|
|
97
|
+
if (e.code === "ENOENT")
|
|
98
|
+
return []; // no creds dir → nothing minted
|
|
99
|
+
throw e;
|
|
100
|
+
}
|
|
101
|
+
const keys = [];
|
|
102
|
+
// Longest suffix first: `<name>.sentinel.creds` must never parse as `<name>.sentinel` + `.creds`.
|
|
103
|
+
for (const file of entries) {
|
|
104
|
+
for (const suffix of [".sentinel.creds", ".actor-token", ".creds"]) {
|
|
105
|
+
if (!file.endsWith(suffix))
|
|
106
|
+
continue;
|
|
107
|
+
const base = file.slice(0, -suffix.length);
|
|
108
|
+
if (/^[A-Za-z0-9_-]+$/.test(base))
|
|
109
|
+
keys.push(`auth/creds/${file}`);
|
|
110
|
+
break; // longest match decides; a rejected base is a stray either way
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return keys;
|
|
114
|
+
}
|
|
115
|
+
/** Materialize a store secret into a 0600 file for a process that can only read files — the
|
|
116
|
+
* agent-bearer re-exec (`--token-file`) and the launch-time creds handoff. The STORE is the
|
|
117
|
+
* source of truth; the file is a caller-owned projection at an explicit path (under the local FS
|
|
118
|
+
* composition, a byte-identical rewrite of the key's own location). An absent key fails loud:
|
|
119
|
+
* materializing nothing would hand the subprocess an empty credential. Lives here, OUTSIDE core,
|
|
120
|
+
* by decision — core's seam stays get/put/delete; where a projection lands on THIS machine is a
|
|
121
|
+
* workstation concern. */
|
|
122
|
+
export async function materializeSecretToFile(store, key, path) {
|
|
123
|
+
const value = await store.get(key);
|
|
124
|
+
if (value === undefined)
|
|
125
|
+
throw new Error(`secret "${key}" is not in the store - cannot materialize it at ${path}`);
|
|
126
|
+
mkSecretDir(dirname(path)); // harden the parent BEFORE the secret lands
|
|
127
|
+
writeSecretFileAtomic(path, value);
|
|
25
128
|
}
|
|
26
129
|
/** Find the project's `.cotal/` by walking up from `start` (like git finds `.git`), returning the
|
|
27
130
|
* directory that *contains* `.cotal/`. Falls back to `start` when none is found up the tree (a
|
package/dist/auth-paths.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-paths.js","sourceRoot":"","sources":["../src/auth-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"auth-paths.js","sourceRoot":"","sources":["../src/auth-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,qBAAqB,EAAoC,MAAM,gBAAgB,CAAC;AAEvH;;;;;;;;;GAS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AC;QACR,IAAI,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;YAAE,OAAO,GAAG,CAAC;QAChD,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAI,MAAM,KAAK,GAAG;YAAE,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC;QAC1C,GAAG,GAAG,MAAM,CAAC;IACf,CAAC;AACH,CAAC;AAED;;iGAEiG;AACjG,MAAM,UAAU,aAAa,CAAC,GAAW,EAAE,IAAe;IACxD,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,iFAAiF;IACnG,MAAM,MAAM,GAAc,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC;IACrF,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACzE,CAAC;AAED,iFAAiF;AACjF,MAAM,UAAU,aAAa,CAAC,GAAW;IACvC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IAC/B,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;QAAE,OAAO,SAAS,CAAC;IACrC,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC,CAAc,CAAC;AAC1D,CAAC"}
|
package/dist/connect.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../src/connect.ts"],"names":[],"mappings":"AACA,OAAO,EASL,KAAK,OAAO,EACZ,KAAK,SAAS,EACf,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["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ect.js
CHANGED
|
@@ -2,6 +2,7 @@ import { existsSync, readFileSync } from "node:fs";
|
|
|
2
2
|
import { DEFAULT_SERVER, DEFAULT_SPACE, isReachable, mintCreds, newIdentity, probeConnect, registry, } from "@cotal-ai/core";
|
|
3
3
|
import { c } from "./colors.js";
|
|
4
4
|
import { findCotalRoot, userAuthStateDir } from "./auth-paths.js";
|
|
5
|
+
import { workspaceSecretStore } from "./secret-store-fs.js";
|
|
5
6
|
import { findMesh, getCurrent, removeMesh } from "./mesh-registry.js";
|
|
6
7
|
import { isWorkspaceTargetError, resolveMeshTarget } from "./mesh-target.js";
|
|
7
8
|
import { preflightTarget, pruneStaleMeshes } from "./preflight.js";
|
|
@@ -36,7 +37,8 @@ export async function userViewAuth(conn, view) {
|
|
|
36
37
|
throw new Error(`space "${conn.space}" uses the "${ua.provider}" auth provider, which this build does not register - user-auth spaces need it (the official cotal binary includes @cotal-ai/auth)`);
|
|
37
38
|
}
|
|
38
39
|
const dir = userAuthStateDir(conn.root, conn.space);
|
|
39
|
-
const
|
|
40
|
+
const store = workspaceSecretStore(conn.root);
|
|
41
|
+
const mint = () => provider.userCredentials({ store, dir, space: conn.space, actor: CLI_USER_ACTOR, view });
|
|
40
42
|
const { bearer, sentinelCreds } = await mint();
|
|
41
43
|
const { owner, actor } = principalFromBearer(bearer);
|
|
42
44
|
return { bearer, sentinelCreds, owner, actor, source: () => mint().then((r) => r.bearer) };
|
|
@@ -152,6 +154,7 @@ async function userConnectOrExit(target) {
|
|
|
152
154
|
}
|
|
153
155
|
try {
|
|
154
156
|
const { bearer, sentinelCreds } = await provider.userCredentials({
|
|
157
|
+
store: workspaceSecretStore(target.root),
|
|
155
158
|
dir: userAuthStateDir(target.root, target.space),
|
|
156
159
|
space: target.space,
|
|
157
160
|
actor: CLI_USER_ACTOR,
|
package/dist/connect.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../src/connect.ts"],"names":[],"m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;;0BAK0B;AAC1B,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,MAAkB,EAAE,UAAmB;IAC3E,2FAA2F;IAC3F,0FAA0F;IAC1F,4FAA4F;IAC5F,2FAA2F;IAC3F,oDAAoD;IACpD,IAAI,MAAM,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;QAC3B,IAAI,MAAM,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC;YAAE,OAAO;QAC7C,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,MAAM,CAAC,KAAK,QAAQ,MAAM,CAAC,MAAM,wEAAwE,CAAC,CAAC,CAAC;QAC3I,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IACD,MAAM,CAAC,GAAG,MAAM,eAAe,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACpD,IAAI,CAAC,CAAC,EAAE;QAAE,OAAO;IACjB,IAAI,CAAC,CAAC,KAAK;QAAE,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACtC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC;IAC5G,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC"}
|
package/dist/flags.d.ts
CHANGED
|
@@ -24,8 +24,8 @@ export declare const credsFlag: {
|
|
|
24
24
|
readonly description: "creds file for an off-registry connection";
|
|
25
25
|
};
|
|
26
26
|
/** The mesh-target bundle: which space, which broker, and (off-registry) which credential.
|
|
27
|
-
* Resolution order is `resolveMeshTarget`'s: explicit flags > the
|
|
28
|
-
* registry
|
|
27
|
+
* Resolution order is `resolveMeshTarget`'s: explicit flags > the selected `current` mesh > the
|
|
28
|
+
* folder's project > the registry. */
|
|
29
29
|
export declare const targetFlags: readonly [{
|
|
30
30
|
readonly name: "space";
|
|
31
31
|
readonly type: "string";
|
package/dist/flags.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../src/flags.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS;;;;;CAAwI,CAAC;AAC/J,eAAO,MAAM,UAAU;;;;;CAAgJ,CAAC;AACxK,eAAO,MAAM,SAAS;;;;;CAA2I,CAAC;AAElK
|
|
1
|
+
{"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../src/flags.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS;;;;;CAAwI,CAAC;AAC/J,eAAO,MAAM,UAAU;;;;;CAAgJ,CAAC;AACxK,eAAO,MAAM,SAAS;;;;;CAA2I,CAAC;AAElK;;uCAEuC;AACvC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;EAA4E,CAAC;AAErG;;;;;;GAMG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBgB,CAAC;AAEzC;;;iGAGiG;AACjG,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAYlG;AAED;;kGAEkG;AAClG,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EACzC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAC5C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAIrC"}
|
package/dist/flags.js
CHANGED
|
@@ -9,8 +9,8 @@ export const spaceFlag = { name: "space", type: "string", value: "<s>", descript
|
|
|
9
9
|
export const serverFlag = { name: "server", type: "string", value: "<url>", description: "broker URL (overrides the mesh registry entry)" };
|
|
10
10
|
export const credsFlag = { name: "creds", type: "string", value: "<path>", description: "creds file for an off-registry connection" };
|
|
11
11
|
/** The mesh-target bundle: which space, which broker, and (off-registry) which credential.
|
|
12
|
-
* Resolution order is `resolveMeshTarget`'s: explicit flags > the
|
|
13
|
-
* registry
|
|
12
|
+
* Resolution order is `resolveMeshTarget`'s: explicit flags > the selected `current` mesh > the
|
|
13
|
+
* folder's project > the registry. */
|
|
14
14
|
export const targetFlags = [spaceFlag, serverFlag, credsFlag];
|
|
15
15
|
/**
|
|
16
16
|
* The launch grammar: every knob for bringing an agent onto the mesh, shared verbatim by the
|
package/dist/flags.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flags.js","sourceRoot":"","sources":["../src/flags.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,2CAA2C,EAA8B,CAAC;AAC/J,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,gDAAgD,EAA8B,CAAC;AACxK,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,2CAA2C,EAA8B,CAAC;AAElK
|
|
1
|
+
{"version":3,"file":"flags.js","sourceRoot":"","sources":["../src/flags.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,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2B,EAAE,CAAC;IACvC,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE,CAAC;QACxB,MAAM,EAAE,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAI,EAAE,KAAK,CAAC,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,iCAAiC,GAAG,IAAI,CAAC,CAAC;QACzE,MAAM,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;QACpC,IAAI,CAAC,GAAG;YAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,GAAG,IAAI,CAAC,CAAC;QACnE,IAAI,GAAG,IAAI,GAAG;YAAE,MAAM,IAAI,KAAK,CAAC,UAAU,GAAG,wBAAwB,CAAC,CAAC;QACvE,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IAC/B,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC;AAED;;kGAEkG;AAClG,MAAM,UAAU,kBAAkB,CAChC,IAAyC,EACzC,QAA6C;IAE7C,IAAI,CAAC,IAAI,IAAI,CAAC,QAAQ;QAAE,OAAO,SAAS,CAAC;IACzC,MAAM,MAAM,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,QAAQ,EAAE,CAAC;IACxC,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACzD,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./official-connectors.js";
|
|
|
9
9
|
export * from "./extensions.js";
|
|
10
10
|
export * from "./materialize.js";
|
|
11
11
|
export * from "./local-process.js";
|
|
12
|
+
export * from "./maintenance.js";
|
|
12
13
|
export * from "./flags.js";
|
|
13
14
|
export * from "./provenance.js";
|
|
14
15
|
export * from "./mesh-registry.js";
|
|
@@ -16,6 +17,7 @@ export * from "./mesh-target.js";
|
|
|
16
17
|
export * from "./preflight.js";
|
|
17
18
|
export * from "./render.js";
|
|
18
19
|
export * from "./renewal.js";
|
|
20
|
+
export * from "./secret-store-fs.js";
|
|
19
21
|
export * from "./space.js";
|
|
20
22
|
export * from "./win-cmd.js";
|
|
21
23
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./official-connectors.js";
|
|
|
9
9
|
export * from "./extensions.js";
|
|
10
10
|
export * from "./materialize.js";
|
|
11
11
|
export * from "./local-process.js";
|
|
12
|
+
export * from "./maintenance.js";
|
|
12
13
|
export * from "./flags.js";
|
|
13
14
|
export * from "./provenance.js";
|
|
14
15
|
export * from "./mesh-registry.js";
|
|
@@ -16,6 +17,7 @@ export * from "./mesh-target.js";
|
|
|
16
17
|
export * from "./preflight.js";
|
|
17
18
|
export * from "./render.js";
|
|
18
19
|
export * from "./renewal.js";
|
|
20
|
+
export * from "./secret-store-fs.js";
|
|
19
21
|
export * from "./space.js";
|
|
20
22
|
export * from "./win-cmd.js";
|
|
21
23
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC"}
|