@cotal-ai/manager 0.171.2 → 0.171.4
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/broker-transport.d.ts +126 -0
- package/dist/broker-transport.d.ts.map +1 -0
- package/dist/broker-transport.js +263 -0
- package/dist/broker-transport.js.map +1 -0
- package/dist/command-dispatch.d.ts +206 -0
- package/dist/command-dispatch.d.ts.map +1 -0
- package/dist/command-dispatch.js +471 -0
- package/dist/command-dispatch.js.map +1 -0
- package/dist/connector-inventory.d.ts +37 -0
- package/dist/connector-inventory.d.ts.map +1 -0
- package/dist/connector-inventory.js +73 -0
- package/dist/connector-inventory.js.map +1 -0
- package/dist/harness-resolution.d.ts +71 -0
- package/dist/harness-resolution.d.ts.map +1 -0
- package/dist/harness-resolution.js +111 -0
- package/dist/harness-resolution.js.map +1 -0
- package/dist/manager.d.ts +91 -375
- package/dist/manager.d.ts.map +1 -1
- package/dist/manager.js +400 -2811
- package/dist/manager.js.map +1 -1
- package/dist/persona-catalog.d.ts +86 -0
- package/dist/persona-catalog.d.ts.map +1 -0
- package/dist/persona-catalog.js +325 -0
- package/dist/persona-catalog.js.map +1 -0
- package/dist/preservation.d.ts +157 -0
- package/dist/preservation.d.ts.map +1 -0
- package/dist/preservation.js +583 -0
- package/dist/preservation.js.map +1 -0
- package/dist/readiness-wait.d.ts +64 -0
- package/dist/readiness-wait.d.ts.map +1 -0
- package/dist/readiness-wait.js +244 -0
- package/dist/readiness-wait.js.map +1 -0
- package/dist/runtime/index.d.ts +2 -0
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +22 -0
- package/dist/runtime/index.js.map +1 -1
- package/dist/service-adapter.d.ts.map +1 -1
- package/dist/service-adapter.js +6 -0
- package/dist/service-adapter.js.map +1 -1
- package/dist/spawn-goal.d.ts +77 -0
- package/dist/spawn-goal.d.ts.map +1 -0
- package/dist/spawn-goal.js +357 -0
- package/dist/spawn-goal.js.map +1 -0
- package/dist/start-doors.d.ts +51 -0
- package/dist/start-doors.d.ts.map +1 -0
- package/dist/start-doors.js +187 -0
- package/dist/start-doors.js.map +1 -0
- package/dist/status-and-models.d.ts +155 -0
- package/dist/status-and-models.d.ts.map +1 -0
- package/dist/status-and-models.js +290 -0
- package/dist/status-and-models.js.map +1 -0
- package/dist/terminal-input.d.ts +82 -0
- package/dist/terminal-input.d.ts.map +1 -0
- package/dist/terminal-input.js +266 -0
- package/dist/terminal-input.js.map +1 -0
- package/package.json +12 -12
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { MAX_SCHEDULE_MS, parsePrincipalKey, rejectionText } from "@cotal-ai/core";
|
|
2
|
+
import { authorizeLaunch } from "./authorize.js";
|
|
3
|
+
import { launchAgentToStartOpts, launchSpecForRun, materializePersona, parseLaunchSpec, persistLaunchSpec } from "./launch.js";
|
|
4
|
+
/** A `once` spawn's task deadline when the caller names none: one hour from the spawn's accept. */
|
|
5
|
+
const ONCE_DEFAULT_DEADLINE_MS = 60 * 60_000;
|
|
6
|
+
/** The `start` and `launch` control doors: argument checks and the hand-off to `startAgent`. */
|
|
7
|
+
export class StartDoors {
|
|
8
|
+
deps;
|
|
9
|
+
constructor(deps) {
|
|
10
|
+
this.deps = deps;
|
|
11
|
+
}
|
|
12
|
+
// The Manager members these bodies read, under their Manager names. Each reads through its dep at
|
|
13
|
+
// use, so a field the Manager assigns later is current and a method a test replaces on the Manager
|
|
14
|
+
// is the one that runs.
|
|
15
|
+
get eventsRequired() { return this.deps.eventsRequired(); }
|
|
16
|
+
get execution() { return this.deps.execution(); }
|
|
17
|
+
get remoteAuthority() { return this.deps.remoteAuthority(); }
|
|
18
|
+
get space() { return this.deps.space(); }
|
|
19
|
+
get userMode() { return this.deps.userMode(); }
|
|
20
|
+
get workspaceRoot() { return this.deps.workspaceRoot(); }
|
|
21
|
+
executionRefusal(...args) { return this.deps.executionRefusal(...args); }
|
|
22
|
+
startAgent(...args) { return this.deps.startAgent(...args); }
|
|
23
|
+
/** Parse a served `spawn` request into {@link StartAgentOpts}. The compiled spawn input contract
|
|
24
|
+
* is the shape check: it already refused a non-mapping `launchOptions`, a `supervise` that is not
|
|
25
|
+
* the closed `{ restarts, windowMs }` pair, and a list on `subscribe`, `allowSubscribe`,
|
|
26
|
+
* `allowPublish`, `shareTools`, `join` or `callerAcl` that is not an array of strings. This reads
|
|
27
|
+
* those fields as admitted, the way it reads the string fields. The connector still validates the
|
|
28
|
+
* launch-option keys, and `startAgent` still refuses a supervise budget the seat record would not
|
|
29
|
+
* take. `once` is shape-checked by that same contract. Its omitted `deadlineMs` takes the default
|
|
30
|
+
* here, and a deadline past the scheduler's last instant is refused here, which the schema does
|
|
31
|
+
* not express. */
|
|
32
|
+
opStart(args, caller, admin, hooks, route = "inst", authenticatedCaller, served) {
|
|
33
|
+
const supervise = args.supervise;
|
|
34
|
+
let once;
|
|
35
|
+
if (args.once !== undefined) {
|
|
36
|
+
const rec = args.once;
|
|
37
|
+
// The default is applied here, so every caller of the wire gets the same one.
|
|
38
|
+
const d = rec.deadlineMs ?? ONCE_DEFAULT_DEADLINE_MS;
|
|
39
|
+
if (d !== -1 && (typeof d !== "number" || !Number.isSafeInteger(d) || d < 1 || Date.now() + d > MAX_SCHEDULE_MS))
|
|
40
|
+
return Promise.resolve({ ok: false, error: "once.deadlineMs: expected -1 (no deadline) or a positive whole number of milliseconds that ends by the deadline scheduler's last instant (the end of year 9999)" });
|
|
41
|
+
once = { deadlineMs: d === -1 ? undefined : d };
|
|
42
|
+
}
|
|
43
|
+
const callerAcl = args.callerAcl;
|
|
44
|
+
// #373: the event-plane admission gate. `startAgent` resolves `eventsRequired || opts.events
|
|
45
|
+
// !== false`, so omission ARMS the plane — a gate on the explicit bit alone is bypassed by
|
|
46
|
+
// omitting it. The gate is on the DECISION, and it runs before connector resolution and
|
|
47
|
+
// before `startAgent` (which mints credentials), so a refusal provisions nothing.
|
|
48
|
+
if (args.eventPayloads !== undefined && typeof args.eventPayloads !== "boolean")
|
|
49
|
+
return Promise.resolve({ ok: false, error: "eventPayloads must be a boolean" });
|
|
50
|
+
const requestedEvents = typeof args.events === "boolean" ? args.events : undefined;
|
|
51
|
+
let eventsNotice;
|
|
52
|
+
let events = requestedEvents;
|
|
53
|
+
// Imperative spawns have no payload-selected owner. Local provisioning derives it from
|
|
54
|
+
// the authenticated u_-owner caller; hosted enrollment fixes it to the manager's owner.
|
|
55
|
+
// Match the same owner-domain boundary as authorizeNamed, without treating the spawn's
|
|
56
|
+
// spawner relation as authority over a different owner's session.
|
|
57
|
+
const callerOwner = parsePrincipalKey(caller)?.owner;
|
|
58
|
+
const childOwner = this.remoteAuthority?.owner ?? (callerOwner?.startsWith("u_") ? callerOwner : undefined);
|
|
59
|
+
const ownsChild = this.userMode && callerOwner !== undefined && callerOwner === childOwner;
|
|
60
|
+
if (!admin && !ownsChild) {
|
|
61
|
+
if (requestedEvents === true)
|
|
62
|
+
return Promise.resolve({
|
|
63
|
+
ok: false,
|
|
64
|
+
error: `spawn is operator reach; the caller's current ledger grant does not carry "admin" (SPEC 13.2): events: arming the event plane needs the admin tier`,
|
|
65
|
+
});
|
|
66
|
+
if (this.eventsRequired)
|
|
67
|
+
return Promise.resolve({
|
|
68
|
+
ok: false,
|
|
69
|
+
error: `spawn is operator reach; the caller's current ledger grant does not carry "admin" (SPEC 13.2): space "${this.space}" requires the event plane by registration policy, which cannot be met without the admin tier`,
|
|
70
|
+
});
|
|
71
|
+
// Omission arms by default in startAgent; serve it DISARMED and say so (never a silent
|
|
72
|
+
// downgrade). An explicit `false` is already the opt-out — served as-is, no notice.
|
|
73
|
+
if (requestedEvents === undefined) {
|
|
74
|
+
events = false;
|
|
75
|
+
eventsNotice = `event plane not armed: arming it on spawn needs the admin tier; the spawn was served with events: false`;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return this.startAgent({
|
|
79
|
+
name: String(args.name ?? "").trim(),
|
|
80
|
+
agent: args.agent,
|
|
81
|
+
defaultAgent: args.defaultAgent,
|
|
82
|
+
role: args.role,
|
|
83
|
+
config: args.config,
|
|
84
|
+
identity: args.identity,
|
|
85
|
+
// Passed as sent: spawnPersona validates the record, the one place every door reads it.
|
|
86
|
+
persona: args.persona,
|
|
87
|
+
...(typeof args.runId === "string" ? { runId: args.runId } : {}),
|
|
88
|
+
model: args.model,
|
|
89
|
+
variant: args.variant,
|
|
90
|
+
launchOptions: args.launchOptions,
|
|
91
|
+
resume: args.resume,
|
|
92
|
+
resumeClaim: args.resumeClaim,
|
|
93
|
+
resumeAgent: args.resumeAgent,
|
|
94
|
+
events,
|
|
95
|
+
eventPayloads: args.eventPayloads,
|
|
96
|
+
eventsNotice,
|
|
97
|
+
cwd: args.cwd,
|
|
98
|
+
prompt: args.prompt,
|
|
99
|
+
subscribe: args.subscribe,
|
|
100
|
+
allowSubscribe: args.allowSubscribe,
|
|
101
|
+
allowPublish: args.allowPublish,
|
|
102
|
+
join: args.join,
|
|
103
|
+
callerAcl,
|
|
104
|
+
shareTools: args.shareTools,
|
|
105
|
+
...(supervise !== undefined ? { supervise } : {}),
|
|
106
|
+
...(once !== undefined ? { once } : {}),
|
|
107
|
+
...(typeof args.runtime === "string" ? { runtime: args.runtime.trim() } : {}),
|
|
108
|
+
route,
|
|
109
|
+
...(served !== undefined ? { served } : {}),
|
|
110
|
+
}, caller, hooks, authenticatedCaller);
|
|
111
|
+
}
|
|
112
|
+
/** Boot one resolved agent from a mesh-manifest launch spec, for `cotal spawn -f` onto a RUNNING
|
|
113
|
+
* manager. The request carries `{ runId, name }` — plus, for a deploy from another checkout or
|
|
114
|
+
* host, the resolved `spec` itself inline (validated as untrusted input and persisted under THIS
|
|
115
|
+
* manager's `.cotal/run/` first) — NEVER a path: the manager derives + validates
|
|
116
|
+
* `.cotal/run/<runId>.json` itself ({@link launchSpecForRun} — token-safe id, no-follow,
|
|
117
|
+
* `loadLaunchSpec`'s untrusted-input + `validateLaunchPolicy` contract), materializes the named
|
|
118
|
+
* agent's transient persona, and spawns via the same `startAgent({ resolved })` path as
|
|
119
|
+
* `supervise --launch`. The reply is enriched for the ownership ledger: the SPAWNED
|
|
120
|
+
* (collision-numbered) name + nkey id creds are filed under, plus the manifest `requested` name,
|
|
121
|
+
* `runId`, and resolved `hash`. USER mesh: a privileged-tier launch is owner-equality-authorized
|
|
122
|
+
* (spec owner === caller owner) before any side effect; the admin tier keeps operator behavior. */
|
|
123
|
+
async opLaunch(args, caller, admin, hooks, route = "inst") {
|
|
124
|
+
if (this.execution === "none")
|
|
125
|
+
return { ok: false, error: this.executionRefusal() };
|
|
126
|
+
const runId = String(args.runId ?? "").trim();
|
|
127
|
+
const name = String(args.name ?? "").trim();
|
|
128
|
+
if (!runId || !name)
|
|
129
|
+
return { ok: false, error: "launch requires runId + name" };
|
|
130
|
+
let spec;
|
|
131
|
+
if (args.spec !== undefined) {
|
|
132
|
+
// REMOTE deploy: the caller pushes the resolved spec inline over the control plane instead of
|
|
133
|
+
// sharing this checkout's disk. Same untrusted-input contract as the file path (strict schema,
|
|
134
|
+
// safe names, policy re-validation), then persisted under OUR `.cotal/run/<runId>.json` so
|
|
135
|
+
// stale-restart and retained resume read the same on-disk source either way. Still never a
|
|
136
|
+
// path: the payload is the spec itself, and where it lands is derived here.
|
|
137
|
+
try {
|
|
138
|
+
spec = parseLaunchSpec(args.spec, `inline launch spec (run ${runId})`);
|
|
139
|
+
if (spec.runId !== runId)
|
|
140
|
+
return { ok: false, error: `inline launch spec runId "${spec.runId}" does not match requested "${runId}"` };
|
|
141
|
+
hooks?.onEffect?.();
|
|
142
|
+
persistLaunchSpec(this.workspaceRoot, spec);
|
|
143
|
+
}
|
|
144
|
+
catch (e) {
|
|
145
|
+
return { ok: false, error: rejectionText(e) };
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
try {
|
|
150
|
+
spec = launchSpecForRun(this.workspaceRoot, runId);
|
|
151
|
+
}
|
|
152
|
+
catch (e) {
|
|
153
|
+
return { ok: false, error: rejectionText(e) };
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
const la = spec.agents.find((a) => a.name === name);
|
|
157
|
+
if (!la)
|
|
158
|
+
return { ok: false, error: `no agent "${name}" in launch spec for run ${runId}` };
|
|
159
|
+
// USER mesh: a manifest launch runs under the spec's apply-time owner, never the ctl caller —
|
|
160
|
+
// fail loud on a spec without one rather than guess (core `MeshLaunchSpec.owner`).
|
|
161
|
+
if (this.userMode && !spec.owner)
|
|
162
|
+
return { ok: false, error: `user-auth space "${this.space}": launch spec for run ${runId} carries no owner - re-apply the manifest as a logged-in operator` };
|
|
163
|
+
if (this.userMode) {
|
|
164
|
+
// Privileged-tier user-mode launch: owner-equality (spec owner === caller owner), decided by
|
|
165
|
+
// the pure policy BEFORE materializePersona or any other side effect, so a denied
|
|
166
|
+
// cross-owner launch writes nothing. Admin tier passes through it unchanged.
|
|
167
|
+
const denied = authorizeLaunch({ specOwner: spec.owner, caller, admin, runId });
|
|
168
|
+
if (denied)
|
|
169
|
+
return { ok: false, error: denied };
|
|
170
|
+
}
|
|
171
|
+
let configPath;
|
|
172
|
+
try {
|
|
173
|
+
hooks?.onEffect?.();
|
|
174
|
+
configPath = materializePersona(this.workspaceRoot, runId, la);
|
|
175
|
+
}
|
|
176
|
+
catch (e) {
|
|
177
|
+
return { ok: false, error: rejectionText(e) };
|
|
178
|
+
}
|
|
179
|
+
const reply = await this.startAgent({ ...launchAgentToStartOpts(la, configPath, spec.owner, runId), route }, caller, hooks);
|
|
180
|
+
if (reply.ok)
|
|
181
|
+
// `data.name` stays the spawned (numbered) identity — what creds are filed under and the ledger
|
|
182
|
+
// keys on; `requested`/`runId`/`hash` give the CLI the manifest name + drift hash for the ledger.
|
|
183
|
+
reply.data = { ...reply.data, requested: la.name, runId, hash: la.hash, newlyStarted: true };
|
|
184
|
+
return reply;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
//# sourceMappingURL=start-doors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
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D,CAAC;QACD,IAAI,UAAkB,CAAC;QACvB,IAAI,CAAC;YACH,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC;YACpB,UAAU,GAAG,kBAAkB,CAAC,IAAI,CAAC,aAAa,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QACjE,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC;QAChD,CAAC;QACD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,EAAE,GAAG,sBAAsB,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;QAC5H,IAAI,KAAK,CAAC,EAAE;YACV,gGAAgG;YAChG,kGAAkG;YAClG,KAAK,CAAC,IAAI,GAAG,EAAE,GAAI,KAAK,CAAC,IAAe,EAAE,SAAS,EAAE,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;QAC3G,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import type { ControlReply, EpCaller, Presence } from "@cotal-ai/core";
|
|
2
|
+
import type { ManagerStatus } from "./manager-service-contract.js";
|
|
3
|
+
import type { Manager } from "./manager.js";
|
|
4
|
+
import type { ManagedAgent } from "./seat-types.js";
|
|
5
|
+
export declare const MANAGER_VERSION: string;
|
|
6
|
+
/** What {@link StatusAndModels} reads from the Manager. Every entry is read at use, so a field the Manager
|
|
7
|
+
* assigns after construction is always current, and a Manager method a test replaces is the one that runs. */
|
|
8
|
+
export interface StatusAndModelsDeps {
|
|
9
|
+
agents: () => Manager["agents"];
|
|
10
|
+
auth: () => Manager["auth"];
|
|
11
|
+
connectorStatuses: () => Manager["connectorStatuses"];
|
|
12
|
+
ep: () => Manager["ep"];
|
|
13
|
+
execution: () => Manager["execution"];
|
|
14
|
+
leaseStopping: () => Manager["leaseStopping"];
|
|
15
|
+
lifecycleInFlight: () => Manager["lifecycleInFlight"];
|
|
16
|
+
maintenanceState: () => Manager["maintenanceState"];
|
|
17
|
+
managerInstanceId: () => Manager["managerInstanceId"];
|
|
18
|
+
managerLifecycleUid: () => Manager["managerLifecycleUid"];
|
|
19
|
+
namesCapacity: () => Manager["namesCapacity"];
|
|
20
|
+
preservationAttemptId: () => Manager["preservationAttemptId"];
|
|
21
|
+
preservationInventory: () => Manager["preservationInventory"];
|
|
22
|
+
remoteAuthority: () => Manager["remoteAuthority"];
|
|
23
|
+
requiredRuntime: () => Manager["requiredRuntime"];
|
|
24
|
+
resumeRequired: () => Manager["resumeRequired"];
|
|
25
|
+
retirement: () => Manager["retirement"];
|
|
26
|
+
runtimeKind: () => Manager["runtimeKind"];
|
|
27
|
+
space: () => Manager["space"];
|
|
28
|
+
startedAtMs: () => Manager["startedAtMs"];
|
|
29
|
+
staticLifecycle: () => Manager["staticLifecycle"];
|
|
30
|
+
userMode: () => Manager["userMode"];
|
|
31
|
+
workspaceRoot: () => Manager["workspaceRoot"];
|
|
32
|
+
classSpawnEnabled: (...args: Parameters<Manager["classSpawnEnabled"]>) => ReturnType<Manager["classSpawnEnabled"]>;
|
|
33
|
+
connectorNames: (...args: Parameters<Manager["connectorNames"]>) => ReturnType<Manager["connectorNames"]>;
|
|
34
|
+
epAdminReach: (...args: Parameters<Manager["epAdminReach"]>) => ReturnType<Manager["epAdminReach"]>;
|
|
35
|
+
executionRefusal: (...args: Parameters<Manager["executionRefusal"]>) => ReturnType<Manager["executionRefusal"]>;
|
|
36
|
+
forkProvenance: (...args: Parameters<Manager["forkProvenance"]>) => ReturnType<Manager["forkProvenance"]>;
|
|
37
|
+
isOwnPresence: (a: ManagedAgent, p: Presence | undefined) => p is Presence;
|
|
38
|
+
isProcessBoundSeat: (...args: Parameters<Manager["isProcessBoundSeat"]>) => ReturnType<Manager["isProcessBoundSeat"]>;
|
|
39
|
+
launchHarness: (...args: Parameters<Manager["launchHarness"]>) => ReturnType<Manager["launchHarness"]>;
|
|
40
|
+
refreshUnavailableConnectors: (...args: Parameters<Manager["refreshUnavailableConnectors"]>) => ReturnType<Manager["refreshUnavailableConnectors"]>;
|
|
41
|
+
resolveConnector: (...args: Parameters<Manager["resolveConnector"]>) => ReturnType<Manager["resolveConnector"]>;
|
|
42
|
+
staticReconciliationStatus: (...args: Parameters<Manager["staticReconciliationStatus"]>) => ReturnType<Manager["staticReconciliationStatus"]>;
|
|
43
|
+
}
|
|
44
|
+
/** What the manager reports about itself: status, the seat list and its owner filter, local seat facts, and the model catalog. */
|
|
45
|
+
export declare class StatusAndModels {
|
|
46
|
+
private readonly deps;
|
|
47
|
+
constructor(deps: StatusAndModelsDeps);
|
|
48
|
+
private get agents();
|
|
49
|
+
private get auth();
|
|
50
|
+
private get connectorStatuses();
|
|
51
|
+
private get ep();
|
|
52
|
+
private get execution();
|
|
53
|
+
private get leaseStopping();
|
|
54
|
+
private get lifecycleInFlight();
|
|
55
|
+
private get maintenanceState();
|
|
56
|
+
private get managerInstanceId();
|
|
57
|
+
private get managerLifecycleUid();
|
|
58
|
+
private get namesCapacity();
|
|
59
|
+
private get preservationAttemptId();
|
|
60
|
+
private get preservationInventory();
|
|
61
|
+
private get remoteAuthority();
|
|
62
|
+
private get requiredRuntime();
|
|
63
|
+
private get resumeRequired();
|
|
64
|
+
private get retirement();
|
|
65
|
+
private get runtimeKind();
|
|
66
|
+
private get space();
|
|
67
|
+
private get startedAtMs();
|
|
68
|
+
private get staticLifecycle();
|
|
69
|
+
private get userMode();
|
|
70
|
+
private get workspaceRoot();
|
|
71
|
+
private classSpawnEnabled;
|
|
72
|
+
private connectorNames;
|
|
73
|
+
private epAdminReach;
|
|
74
|
+
private executionRefusal;
|
|
75
|
+
private forkProvenance;
|
|
76
|
+
private isOwnPresence;
|
|
77
|
+
private isProcessBoundSeat;
|
|
78
|
+
private launchHarness;
|
|
79
|
+
private refreshUnavailableConnectors;
|
|
80
|
+
private resolveConnector;
|
|
81
|
+
private staticReconciliationStatus;
|
|
82
|
+
/** Return connector-provided model catalogs for selector UIs. Optional by connector: a host with no
|
|
83
|
+
* local model-list API reports `supported:false` rather than blocking the manager. A connector that
|
|
84
|
+
* fails to import shows an `error:` row (from manifest enumeration) and never blocks the others. */
|
|
85
|
+
opModels(args: Record<string, unknown>): Promise<ControlReply>;
|
|
86
|
+
/** The owner-domain bound on `ps`/`status` metadata: on a USER mesh, a privileged-tier caller
|
|
87
|
+
* sees only agents under its OWN subject-pinned owner. Two ways to see ALL owners: the admin
|
|
88
|
+
* TIER (operator), or a fresh ledger `admin` SCOPE on the caller's row — the SAME authority that
|
|
89
|
+
* lets `stop`/`attach` reach cross-owner agents ({@link authorizeNamedControl}). Without this the
|
|
90
|
+
* two surfaces disagree: an admin operator could cross-owner stop an agent it could not list.
|
|
91
|
+
* Read fresh so a revoked admin loses visibility on its next call; a read failure and an
|
|
92
|
+
* unparseable caller both fall closed (own-owner / matches-nothing). Static meshes are unbounded. */
|
|
93
|
+
psOwnerFilter(caller: EpCaller, admin: boolean): Promise<string | undefined>;
|
|
94
|
+
/** Parent-local inventory read. It does not enter maintenance or change admission. */
|
|
95
|
+
hostedSeatCount(): number;
|
|
96
|
+
/** Public local-seat facts for the owning machine daemon. No mesh or secret reads. */
|
|
97
|
+
hostedAgents(): {
|
|
98
|
+
name: string;
|
|
99
|
+
application: string;
|
|
100
|
+
model?: string;
|
|
101
|
+
cwd: string;
|
|
102
|
+
startedAt: string;
|
|
103
|
+
state: "running" | "exited";
|
|
104
|
+
}[];
|
|
105
|
+
/** The served manager-level health summary. Given an owner, `agentCount` counts only that owner's
|
|
106
|
+
* seats, as `ps` lists them ({@link psOwnerFilter}), so a person reading a shared Manager does not
|
|
107
|
+
* learn how many seats other owners hold on it. */
|
|
108
|
+
managerStatusData(ownerFilter: string | undefined, setupClaude?: boolean): ManagerStatus;
|
|
109
|
+
/** Managed agents cross-referenced with live presence (the manager sees the roster).
|
|
110
|
+
*
|
|
111
|
+
* `ownerFilter`: restrict to agents whose spawn-time stored `userOwner` equals it (the ps/status
|
|
112
|
+
* owner-domain bound); undefined = unbounded. {@link NO_OWNER_MATCHES} matches nothing. */
|
|
113
|
+
list(ownerFilter?: string): {
|
|
114
|
+
authHealth?: "auth-renewal-failed" | "auth-unknown" | "auth-stale" | undefined;
|
|
115
|
+
authReason?: string | undefined;
|
|
116
|
+
resume?: import("./manager.js").ForkProvenance | {
|
|
117
|
+
source: string;
|
|
118
|
+
} | undefined;
|
|
119
|
+
cwd: string;
|
|
120
|
+
pid: number | undefined;
|
|
121
|
+
spawner: string;
|
|
122
|
+
instanceId: string;
|
|
123
|
+
host: string;
|
|
124
|
+
provider?: string | undefined;
|
|
125
|
+
lifecycleUid: string;
|
|
126
|
+
model: string | undefined;
|
|
127
|
+
variant: string | undefined;
|
|
128
|
+
offlineSince?: number | undefined;
|
|
129
|
+
presenceObservedAt?: number | undefined;
|
|
130
|
+
meshView: "current" | "unpopulated" | "stale";
|
|
131
|
+
presenceIdentityVerified: boolean;
|
|
132
|
+
activeAt?: number | undefined;
|
|
133
|
+
startupNotice?: string | undefined;
|
|
134
|
+
condition?: {
|
|
135
|
+
since?: number | undefined;
|
|
136
|
+
message?: string | undefined;
|
|
137
|
+
source?: string | undefined;
|
|
138
|
+
code: import("@cotal-ai/core").PresenceConditionCode;
|
|
139
|
+
} | undefined;
|
|
140
|
+
joinHealth?: {
|
|
141
|
+
state: "degraded";
|
|
142
|
+
reason: string;
|
|
143
|
+
} | undefined;
|
|
144
|
+
name: string;
|
|
145
|
+
id: string;
|
|
146
|
+
role: string | undefined;
|
|
147
|
+
agent: string;
|
|
148
|
+
space: string;
|
|
149
|
+
mode: string;
|
|
150
|
+
status: "running" | "exited";
|
|
151
|
+
uptimeMs: number;
|
|
152
|
+
mesh: string;
|
|
153
|
+
}[];
|
|
154
|
+
}
|
|
155
|
+
//# sourceMappingURL=status-and-models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-and-models.d.ts","sourceRoot":"","sources":["../src/status-and-models.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAoC,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAKzG,OAAO,KAAK,EAAE,aAAa,EAAqB,MAAM,+BAA+B,CAAC;AACtF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,eAAO,MAAM,eAAe,QAAiH,CAAC;AAO9I;+GAC+G;AAC/G,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,OAAO,CAAC,QAAQ,CAAC,CAAC;IAChC,IAAI,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5B,iBAAiB,EAAE,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtD,EAAE,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACxB,SAAS,EAAE,MAAM,OAAO,CAAC,WAAW,CAAC,CAAC;IACtC,aAAa,EAAE,MAAM,OAAO,CAAC,eAAe,CAAC,CAAC;IAC9C,iBAAiB,EAAE,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtD,gBAAgB,EAAE,MAAM,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACpD,iBAAiB,EAAE,MAAM,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACtD,mBAAmB,EAAE,MAAM,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAC1D,aAAa,EAAE,MAAM,OAAO,CAAC,eAAe,CAAC,CAAC;IAC9C,qBAAqB,EAAE,MAAM,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC9D,qBAAqB,EAAE,MAA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