@cotal-ai/manager 0.132.1 → 0.132.3
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 +25 -2
- package/dist/remote-register.d.ts.map +1 -1
- package/dist/remote-register.js +2 -2
- package/dist/remote-register.js.map +1 -1
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -38,8 +38,31 @@ the observer connection remains open during it. RSS includes shared pages and mu
|
|
|
38
38
|
to PSS or USS.
|
|
39
39
|
|
|
40
40
|
`--ram` retains the separate heap-profiling mode and cannot be combined with `--process-memory`.
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
Real-seat mode does not start the shared stub-seat host. Its connected count, CPU and memory
|
|
42
|
+
columns are `n/a`, not zero measurements; JSON records include `stubHostStarted: false`.
|
|
43
|
+
Stub mode still starts and measures that host. Real connector readiness comes from the
|
|
44
|
+
authenticated observations, not a stub-connected count. The fixture parent still runs real
|
|
45
|
+
Plane-3 delivery and lifecycle handling. Broker CPU uses the helper's owned broker PID.
|
|
46
|
+
|
|
47
|
+
### Shared broker control
|
|
48
|
+
|
|
49
|
+
Add `--spaces 2` to the dist, real, stock-entry process-memory invocation to start one Manager
|
|
50
|
+
and one data account per space on a single owned broker. `--steps` is the seat count per Manager;
|
|
51
|
+
JSON names both `requestedPerSpace` and `requestedTotal`. Other shared-mode combinations refuse.
|
|
52
|
+
The default single-space path is unchanged.
|
|
53
|
+
|
|
54
|
+
Every space has a private HOME and compile cache. Managers read their named account from one
|
|
55
|
+
host-owned secret store; the broker's system signer stays in the trusted fixture parent's memory.
|
|
56
|
+
Account-scoped native connection observations verify the Manager and connector user identities
|
|
57
|
+
on the same server, excluding sibling cohorts. The existing authenticated `ps`, lifecycle,
|
|
58
|
+
presence and PID checks still apply. Missing or truncated account observations fail the run.
|
|
59
|
+
|
|
60
|
+
Shared `MSL_RESULT` rows report each space plus one broker sample and one parent sample. Totals
|
|
61
|
+
count each distinct process once; the parent holds all Plane-3 contexts. Source/runtime hashes
|
|
62
|
+
identify the measured files. `MSL_TEARDOWN` reports verified process exit and directory removal;
|
|
63
|
+
`MSL_DONE` follows successful teardown. Cleanup uses recorded process identities, not process-name
|
|
64
|
+
sweeps. This is a synthetic static-auth, trusted same-UID fixture, not hostile-tenant isolation,
|
|
65
|
+
Cloud or model-session coverage. A small control does not establish a density limit.
|
|
43
66
|
|
|
44
67
|
## Remote authority clients
|
|
45
68
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-register.d.ts","sourceRoot":"","sources":["../src/remote-register.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"remote-register.d.ts","sourceRoot":"","sources":["../src/remote-register.ts"],"names":[],"mappings":"AAEA,OAAO,EAiBL,KAAK,YAAY,EAElB,MAAM,gBAAgB,CAAC;AAGxB;;;;GAIG;AACH,wBAAsB,8BAA8B,CAAC,IAAI,EAAE;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB;;kGAE8F;IAC9F,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,KAAK,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAC7D,4FAA4F;IAC5F,4BAA4B,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACtE,GAAG,OAAO,CAAC;IAAE,oBAAoB,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,YAAY,CAAA;CAAE,CAAC,CA6D5F"}
|
package/dist/remote-register.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jetstreamManager } from "@nats-io/jetstream";
|
|
2
2
|
import { Kvm } from "@nats-io/kv";
|
|
3
|
-
import { contractArtifactCanonicalBytes, contractRefToHex, contractStoreContext, dialerFor, endpointRegistrationBarrier, epAuthBucket, fetchContractArtifact, foreignSlotHeldFrom, provisionEndpointGateOpen, publishContractArtifact, readEndpointGateGeneration, recordsBucket, registerServingInstance, serveIssuanceGateKv, standaloneConnectOpts, } from "@cotal-ai/core";
|
|
3
|
+
import { contractArtifactCanonicalBytes, contractRefToHex, contractStoreContext, dialerFor, endpointRegistrationBarrier, epAuthBucket, fetchContractArtifact, foreignSlotHeldFrom, principalKey, provisionEndpointGateOpen, publishContractArtifact, readEndpointGateGeneration, recordsBucket, registerServingInstance, serveIssuanceGateKv, standaloneConnectOpts, } from "@cotal-ai/core";
|
|
4
4
|
import { MANAGER_ENDPOINT, managerAuthorityContractSource, managerClusterArtifacts } from "./manager-service-contract.js";
|
|
5
5
|
/**
|
|
6
6
|
* Run the registration half with the host-issued prepare credential. The credential is pinned to
|
|
@@ -29,7 +29,7 @@ export async function registerRemoteManagerAuthority(args) {
|
|
|
29
29
|
const bytes = await fetchContractArtifact(store, contractRefToHex(digest));
|
|
30
30
|
return bytes ? JSON.parse(new TextDecoder().decode(bytes)) : undefined;
|
|
31
31
|
};
|
|
32
|
-
const principal =
|
|
32
|
+
const principal = principalKey(args.owner, args.serveActor).key;
|
|
33
33
|
if ((await serveIssuanceGateKv(authKv, args.space, { endpoint: MANAGER_ENDPOINT, instanceId: args.instanceId }).observe()) === null)
|
|
34
34
|
await provisionEndpointGateOpen(authKv, { endpoint: MANAGER_ENDPOINT, instanceId: args.instanceId, principal });
|
|
35
35
|
const authority = { authorize: (endpoint, owner) => ({ authorized: endpoint === MANAGER_ENDPOINT && owner === args.owner, revision: 0 }) };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-register.js","sourceRoot":"","sources":["../src/remote-register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oB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A6F;YAC7F,wFAAwF;YACxF,mCAAmC;YACnC,uBAAuB,EAAE,CAAC,gBAAgB,EAAE,EAAE,CAC5C,0BAA0B,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC;SACnG,CAAC,CAAC;QACH,IAAI,UAAgD,CAAC;QACrD,IAAI,CAAC;YACH,UAAU,GAAG,MAAM,QAAQ,EAAE,CAAC;QAChC,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,4FAA4F;YAC5F,mFAAmF;YACnF,MAAM,IAAI,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;YACxC,IAAI,IAAI,EAAE,SAAS,KAAK,WAAW,IAAI,CAAC,IAAI,CAAC,4BAA4B;gBAAE,MAAM,KAAK,CAAC;YACvF,MAAM,IAAI,CAAC,4BAA4B,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;YAC/D,UAAU,GAAG,MAAM,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,MAAM,EAAE,oBAAoB,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC;QACjE,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;IACnE,CAAC;YAAS,CAAC;QACT,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC;IAC3C,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cotal-ai/manager",
|
|
3
3
|
"description": "Cotal agent supervisor: spawns and manages mesh nodes via a pluggable runtime (pty/tmux/cmux/orca/herdr).",
|
|
4
|
-
"version": "0.132.
|
|
4
|
+
"version": "0.132.3",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@clack/prompts": "^1.0.0",
|
|
22
|
-
"@cotal-ai/core": "0.132.
|
|
23
|
-
"@cotal-ai/seat": "0.132.
|
|
24
|
-
"@cotal-ai/workspace": "0.132.
|
|
22
|
+
"@cotal-ai/core": "0.132.3",
|
|
23
|
+
"@cotal-ai/seat": "0.132.3",
|
|
24
|
+
"@cotal-ai/workspace": "0.132.3",
|
|
25
25
|
"@lydell/node-pty": "1.2.0-beta.12",
|
|
26
26
|
"@nats-io/jetstream": "^3.4.0",
|
|
27
27
|
"@nats-io/kv": "^3.4.0",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"zod": "^4.4.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@cotal-ai/auth": "0.132.
|
|
40
|
-
"@cotal-ai/connector-claude-code": "0.132.
|
|
41
|
-
"@cotal-ai/connector-codex": "0.132.
|
|
39
|
+
"@cotal-ai/auth": "0.132.3",
|
|
40
|
+
"@cotal-ai/connector-claude-code": "0.132.3",
|
|
41
|
+
"@cotal-ai/connector-codex": "0.132.3",
|
|
42
42
|
"@cotal-ai/smoke-kit": "0.0.0",
|
|
43
|
-
"@cotal-ai/connector-core": "0.132.
|
|
44
|
-
"@cotal-ai/connector-hermes": "0.132.
|
|
45
|
-
"@cotal-ai/connector-opencode": "0.132.
|
|
46
|
-
"@cotal-ai/delivery": "0.132.
|
|
47
|
-
"@cotal-ai/runtime": "0.132.
|
|
43
|
+
"@cotal-ai/connector-core": "0.132.3",
|
|
44
|
+
"@cotal-ai/connector-hermes": "0.132.3",
|
|
45
|
+
"@cotal-ai/connector-opencode": "0.132.3",
|
|
46
|
+
"@cotal-ai/delivery": "0.132.3",
|
|
47
|
+
"@cotal-ai/runtime": "0.132.3",
|
|
48
48
|
"@nats-io/nats-core": "^3.4.0",
|
|
49
49
|
"@types/ws": "^8.18.1",
|
|
50
50
|
"esbuild": "^0.28.1"
|