@cotal-ai/manager 0.176.2 → 0.176.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/boot.d.ts +2 -15
- package/dist/boot.d.ts.map +1 -1
- package/dist/boot.js +7 -19
- package/dist/boot.js.map +1 -1
- package/dist/broker-transport.d.ts +2 -3
- package/dist/broker-transport.d.ts.map +1 -1
- package/dist/broker-transport.js +1 -2
- package/dist/broker-transport.js.map +1 -1
- package/dist/command-dispatch.d.ts +2 -13
- package/dist/command-dispatch.d.ts.map +1 -1
- package/dist/command-dispatch.js +6 -17
- package/dist/command-dispatch.js.map +1 -1
- package/dist/credential-renewal.d.ts +2 -5
- package/dist/credential-renewal.d.ts.map +1 -1
- package/dist/credential-renewal.js +2 -5
- package/dist/credential-renewal.js.map +1 -1
- package/dist/goal-writer.d.ts +2 -5
- package/dist/goal-writer.d.ts.map +1 -1
- package/dist/goal-writer.js +2 -5
- package/dist/goal-writer.js.map +1 -1
- package/dist/lease-keeper.d.ts +4 -3
- package/dist/lease-keeper.d.ts.map +1 -1
- package/dist/lease-keeper.js +4 -3
- package/dist/lease-keeper.js.map +1 -1
- package/dist/managed-static-lifecycle.d.ts +7 -14
- package/dist/managed-static-lifecycle.d.ts.map +1 -1
- package/dist/managed-static-lifecycle.js +14 -14
- package/dist/managed-static-lifecycle.js.map +1 -1
- package/dist/manager-parts.d.ts +12 -0
- package/dist/manager-parts.d.ts.map +1 -1
- package/dist/{manager-auth-state.d.ts → manager-start-state.d.ts} +5 -3
- package/dist/manager-start-state.d.ts.map +1 -0
- package/dist/manager-start-state.js +2 -0
- package/dist/manager-start-state.js.map +1 -0
- package/dist/manager.d.ts +14 -64
- package/dist/manager.d.ts.map +1 -1
- package/dist/manager.js +48 -89
- package/dist/manager.js.map +1 -1
- package/dist/names-capacity.d.ts +5 -4
- package/dist/names-capacity.d.ts.map +1 -1
- package/dist/names-capacity.js +6 -5
- package/dist/names-capacity.js.map +1 -1
- package/dist/persona-catalog.d.ts +4 -4
- package/dist/persona-catalog.d.ts.map +1 -1
- package/dist/persona-catalog.js +4 -4
- package/dist/persona-catalog.js.map +1 -1
- package/dist/preservation.d.ts +4 -5
- package/dist/preservation.d.ts.map +1 -1
- package/dist/preservation.js +5 -6
- package/dist/preservation.js.map +1 -1
- package/dist/preserved-resume.d.ts +4 -11
- package/dist/preserved-resume.d.ts.map +1 -1
- package/dist/preserved-resume.js +17 -17
- package/dist/preserved-resume.js.map +1 -1
- package/dist/retirement.d.ts +2 -3
- package/dist/retirement.d.ts.map +1 -1
- package/dist/retirement.js +1 -2
- package/dist/retirement.js.map +1 -1
- package/dist/seat-custody.d.ts +4 -2
- package/dist/seat-custody.d.ts.map +1 -1
- package/dist/seat-custody.js +7 -5
- package/dist/seat-custody.js.map +1 -1
- package/dist/seat-launch.d.ts +3 -7
- package/dist/seat-launch.d.ts.map +1 -1
- package/dist/seat-launch.js +14 -17
- package/dist/seat-launch.js.map +1 -1
- package/dist/seat-start.d.ts +2 -6
- package/dist/seat-start.d.ts.map +1 -1
- package/dist/seat-start.js +5 -9
- package/dist/seat-start.js.map +1 -1
- package/dist/seat-stop.d.ts +2 -5
- package/dist/seat-stop.d.ts.map +1 -1
- package/dist/seat-stop.js +2 -5
- package/dist/seat-stop.js.map +1 -1
- package/dist/serve-plane.d.ts +2 -6
- package/dist/serve-plane.d.ts.map +1 -1
- package/dist/serve-plane.js +6 -10
- package/dist/serve-plane.js.map +1 -1
- package/dist/session-recovery.d.ts +6 -3
- package/dist/session-recovery.d.ts.map +1 -1
- package/dist/session-recovery.js +8 -5
- package/dist/session-recovery.js.map +1 -1
- package/dist/spawn-goal.d.ts +2 -3
- package/dist/spawn-goal.d.ts.map +1 -1
- package/dist/spawn-goal.js +1 -2
- package/dist/spawn-goal.js.map +1 -1
- package/dist/start-doors.d.ts +2 -2
- package/dist/start-doors.d.ts.map +1 -1
- package/dist/start-doors.js.map +1 -1
- package/dist/status-and-models.d.ts +3 -11
- package/dist/status-and-models.d.ts.map +1 -1
- package/dist/status-and-models.js +6 -13
- package/dist/status-and-models.js.map +1 -1
- package/dist/terminal-input.d.ts +2 -2
- package/dist/terminal-input.d.ts.map +1 -1
- package/dist/terminal-input.js.map +1 -1
- package/dist/user-provision.d.ts +3 -2
- package/dist/user-provision.d.ts.map +1 -1
- package/dist/user-provision.js +6 -5
- package/dist/user-provision.js.map +1 -1
- package/package.json +12 -12
- package/dist/manager-auth-state.d.ts.map +0 -1
- package/dist/manager-auth-state.js +0 -2
- package/dist/manager-auth-state.js.map +0 -1
package/dist/manager.js
CHANGED
|
@@ -144,13 +144,6 @@ export class Manager {
|
|
|
144
144
|
/** Lifecycle UIDs already handed to `Runtime.spawnDelegated`: a lifecycle is handed off at most
|
|
145
145
|
* once, so a lost create acknowledgement can never become a second create. */
|
|
146
146
|
delegatedLaunched = new Set();
|
|
147
|
-
/** The persisted LOGICAL instance id (SPEC 13.6 item 7): STABLE across restart, so a
|
|
148
|
-
* restart re-registers the SAME id with an ADVANCED epoch through the §13.1 gate (the successor
|
|
149
|
-
* fences the predecessor's epoch — the (i) fence bites on a real restart). It is the registration
|
|
150
|
-
* instanceId, the served-status id, the goal spec's executor.instanceId, the epe route, and the
|
|
151
|
-
* resolveExecutorEpoch key — DISTINCT from {@link ManagerConfig.managerLifecycleUid} (per-process: the presence
|
|
152
|
-
* node uid + the managerInstance audit coordinate every static activation records). Set in start(). */
|
|
153
|
-
managerInstanceId;
|
|
154
147
|
/** The persisted serve nkey identity: reusing the SAME principal across restart keeps
|
|
155
148
|
* {@link provisionEndpointGateOpen} idempotent (no core barrier change) and gives verified
|
|
156
149
|
* eviction a stable target (the predecessor's connections under this principal). Set in start(). */
|
|
@@ -159,7 +152,7 @@ export class Manager {
|
|
|
159
152
|
* adopts it instead of reading the same record again. */
|
|
160
153
|
admittedLocalIdentity;
|
|
161
154
|
/** #1577: dedicated connections (serve, goal-writer, session-ledger) whose transport is down while
|
|
162
|
-
* the client reconnects them, tracked by {@link trackTransport}. Such a connection is open
|
|
155
|
+
* the client reconnects them, tracked by {@link BrokerTransport.trackTransport}. Such a connection is open
|
|
163
156
|
* (`isClosed()` is false under unbounded reconnects) yet the broker holds none of its rails, so
|
|
164
157
|
* the liveness responder must not grade the serve connection `bound`, and a stop closes rather
|
|
165
158
|
* than drains it ({@link retireConnection}). Keyed by the connection, so a re-dial that swaps in a
|
|
@@ -216,15 +209,23 @@ export class Manager {
|
|
|
216
209
|
attach;
|
|
217
210
|
ep;
|
|
218
211
|
/** Written by ManagerBoot.start; declared ahead of the parts so each one built below receives it. */
|
|
219
|
-
|
|
220
|
-
/** {@link
|
|
221
|
-
get auth() { return this.
|
|
222
|
-
set auth(value) { this.
|
|
223
|
-
/** {@link
|
|
224
|
-
get userMode() { return this.
|
|
225
|
-
set userMode(value) { this.
|
|
226
|
-
|
|
227
|
-
|
|
212
|
+
startState = { userMode: false };
|
|
213
|
+
/** {@link ManagerStartState.auth}. */
|
|
214
|
+
get auth() { return this.startState.auth; }
|
|
215
|
+
set auth(value) { this.startState.auth = value; }
|
|
216
|
+
/** {@link ManagerStartState.userMode}. */
|
|
217
|
+
get userMode() { return this.startState.userMode; }
|
|
218
|
+
set userMode(value) { this.startState.userMode = value; }
|
|
219
|
+
/** The persisted LOGICAL instance id (SPEC 13.6 item 7): STABLE across restart, so a
|
|
220
|
+
* restart re-registers the SAME id with an ADVANCED epoch through the §13.1 gate (the successor
|
|
221
|
+
* fences the predecessor's epoch — the (i) fence bites on a real restart). It is the registration
|
|
222
|
+
* instanceId, the served-status id, the goal spec's executor.instanceId, the epe route, and the
|
|
223
|
+
* resolveExecutorEpoch key — DISTINCT from {@link ManagerConfig.managerLifecycleUid} (per-process: the presence
|
|
224
|
+
* node uid + the managerInstance audit coordinate every static activation records). Set in start(); undefined before. */
|
|
225
|
+
get managerInstanceId() { return this.startState.managerInstanceId; }
|
|
226
|
+
set managerInstanceId(value) { this.startState.managerInstanceId = value; }
|
|
227
|
+
namesCapacity = new NamesCapacity(this.config, namesCapacityDeps(this), this.startState, this.parts);
|
|
228
|
+
servePlane = new ServePlane(this.config, servePlaneDeps(this), this.parts, this.startState);
|
|
228
229
|
resolveServeTarget(t) {
|
|
229
230
|
if (this.config.remoteAuthority) {
|
|
230
231
|
const key = principalKey(t.owner, t.actor).key;
|
|
@@ -246,8 +247,8 @@ export class Manager {
|
|
|
246
247
|
return { lifecycleUid: a.lifecycleUid, mappingRevision: 0 };
|
|
247
248
|
return undefined;
|
|
248
249
|
}
|
|
249
|
-
retirement = new Retirement(this.config, retirementDeps(this), this.
|
|
250
|
-
lease = new LeaseKeeper(this.config, leaseKeeperDeps(this));
|
|
250
|
+
retirement = new Retirement(this.config, retirementDeps(this), this.startState);
|
|
251
|
+
lease = new LeaseKeeper(this.config, leaseKeeperDeps(this), this.startState);
|
|
251
252
|
/** Set at the top of `stop()`. `renewLease` returns at once once this is set, and its `gone` arm
|
|
252
253
|
* does not re-acquire: a manager that is stopping never puts its own key back. It also closes the
|
|
253
254
|
* lifecycle fence ({@link beginLifecycle}), so no spawn can launch a seat the stop never sees. */
|
|
@@ -269,47 +270,47 @@ export class Manager {
|
|
|
269
270
|
dial(...args) { return this.brokerTransportComponent.dial(...args); }
|
|
270
271
|
/** {@link BrokerTransport.dialRemoteStanding}. */
|
|
271
272
|
dialRemoteStanding(...args) { return this.brokerTransportComponent.dialRemoteStanding(...args); }
|
|
272
|
-
seatCustody = new SeatCustody(this.config, seatCustodyDeps(this));
|
|
273
|
-
sessionRecovery = new SessionRecovery(this.config, sessionRecoveryDeps(this));
|
|
273
|
+
seatCustody = new SeatCustody(this.config, seatCustodyDeps(this), this.startState);
|
|
274
|
+
sessionRecovery = new SessionRecovery(this.config, sessionRecoveryDeps(this), this.startState, this.parts);
|
|
274
275
|
get staticReconcileLastSweepResources() { return this.staticLifecycle.resources(); }
|
|
275
276
|
set staticReconcileLastSweepResources(value) { this.staticLifecycle.setResources(value); }
|
|
276
|
-
staticLifecycle = new ManagedStaticLifecycle(this.config, managedStaticLifecycleDeps(this), this.
|
|
277
|
+
staticLifecycle = new ManagedStaticLifecycle(this.config, managedStaticLifecycleDeps(this), this.startState, this.parts);
|
|
277
278
|
/** User-mode provisioning owns no manager state: each dependency reads through at its use. */
|
|
278
|
-
userProvision = new UserProvision(this.config, userProvisionDeps(this));
|
|
279
|
+
userProvision = new UserProvision(this.config, userProvisionDeps(this), this.startState);
|
|
279
280
|
/** Seat stop, exit, recursive reap and named despawn. Every dependency reads through at its use. */
|
|
280
|
-
seatStopComponent = new SeatStop(this.config, seatStopDeps(this), this.parts, this.
|
|
281
|
+
seatStopComponent = new SeatStop(this.config, seatStopDeps(this), this.parts, this.startState);
|
|
281
282
|
/** The typed command table and its admission. Every dependency reads through at its use. */
|
|
282
|
-
commandDispatch = new CommandDispatch(this.config, commandDispatchDeps(this), this.parts, this.
|
|
283
|
+
commandDispatch = new CommandDispatch(this.config, commandDispatchDeps(this), this.parts, this.startState);
|
|
283
284
|
/** The spawn and launch goal path. Every dependency reads through at its use. */
|
|
284
|
-
spawnGoalComponent = new SpawnGoal(this.config, spawnGoalDeps(this), this.parts, this.
|
|
285
|
+
spawnGoalComponent = new SpawnGoal(this.config, spawnGoalDeps(this), this.parts, this.startState);
|
|
285
286
|
/** The persona catalog doors. Every dependency reads through at its use. */
|
|
286
|
-
personaCatalogComponent = new PersonaCatalog(this.config, personaCatalogDeps(this), this.
|
|
287
|
+
personaCatalogComponent = new PersonaCatalog(this.config, personaCatalogDeps(this), this.startState, this.parts);
|
|
287
288
|
/** Seat terminal input and attach sessions. Every dependency reads through at its use. */
|
|
288
|
-
terminalInputComponent = new TerminalInput(this.config, terminalInputDeps(this), this.parts, this.
|
|
289
|
+
terminalInputComponent = new TerminalInput(this.config, terminalInputDeps(this), this.parts, this.startState);
|
|
289
290
|
/** Status, seat list and model catalog reads. Every dependency reads through at its use. */
|
|
290
|
-
statusAndModelsComponent = new StatusAndModels(this.config, statusAndModelsDeps(this), this.parts, this.
|
|
291
|
+
statusAndModelsComponent = new StatusAndModels(this.config, statusAndModelsDeps(this), this.parts, this.startState);
|
|
291
292
|
/** The launch readiness race and exit watch. Every dependency reads through at its use. */
|
|
292
293
|
readinessWaitComponent = new ReadinessWait(this.config, readinessWaitDeps(this));
|
|
293
294
|
/** Broker dials and scoped executor connections. Every dependency reads through at its use. */
|
|
294
|
-
brokerTransportComponent = new BrokerTransport(this.config, brokerTransportDeps(this), this.parts, this.
|
|
295
|
+
brokerTransportComponent = new BrokerTransport(this.config, brokerTransportDeps(this), this.parts, this.startState);
|
|
295
296
|
/** The start and launch control doors. Every dependency reads through at its use. */
|
|
296
|
-
startDoorsComponent = new StartDoors(this.config, startDoorsDeps(this), this.
|
|
297
|
+
startDoorsComponent = new StartDoors(this.config, startDoorsDeps(this), this.startState);
|
|
297
298
|
/** Connector and harness resolution for a launch. Every dependency reads through at its use. */
|
|
298
299
|
harnessResolutionComponent = new HarnessResolution(this.config, harnessResolutionDeps(this), this.parts);
|
|
299
300
|
/** The connector inventory. It owns the connector rows and the boot notes. */
|
|
300
301
|
connectorInventory;
|
|
301
302
|
/** Manager preservation and released-seat adoption. Every dependency reads through at its use. */
|
|
302
|
-
preservationComponent = new Preservation(this.config, preservationDeps(this), this.
|
|
303
|
+
preservationComponent = new Preservation(this.config, preservationDeps(this), this.startState, this.parts);
|
|
303
304
|
/** Preserved-manager resume and its control doors. Every dependency reads through at its use. */
|
|
304
|
-
preservedResumeComponent = new PreservedResume(this.config, preservedResumeDeps(this), this.parts, this.
|
|
305
|
+
preservedResumeComponent = new PreservedResume(this.config, preservedResumeDeps(this), this.parts, this.startState);
|
|
305
306
|
/** The goal-writer connection and the goal index it reconciles. Every dependency reads through at its use. */
|
|
306
|
-
goalWriterComponent = new GoalWriter(this.config, goalWriterDeps(this), this.parts, this.
|
|
307
|
+
goalWriterComponent = new GoalWriter(this.config, goalWriterDeps(this), this.parts, this.startState);
|
|
307
308
|
/** Renewal of the manager's standing credentials. Every dependency reads through at its use. */
|
|
308
|
-
credentialRenewal = new CredentialRenewal(this.config, credentialRenewalDeps(this), this.parts, this.
|
|
309
|
+
credentialRenewal = new CredentialRenewal(this.config, credentialRenewalDeps(this), this.parts, this.startState);
|
|
309
310
|
/** The launch pipeline's leaf steps. Every dependency reads through at its use. */
|
|
310
|
-
seatLaunch = new SeatLaunch(this.config, seatLaunchDeps(this), this.parts, this.
|
|
311
|
+
seatLaunch = new SeatLaunch(this.config, seatLaunchDeps(this), this.parts, this.startState);
|
|
311
312
|
/** Manager boot: execution admission, connect, registration and lease. Every dependency reads through at its use. */
|
|
312
|
-
bootComponent = new ManagerBoot(this.config, bootDeps(this), this.parts, this.
|
|
313
|
+
bootComponent = new ManagerBoot(this.config, bootDeps(this), this.parts, this.startState);
|
|
313
314
|
constructor(opts) {
|
|
314
315
|
const config = this.config;
|
|
315
316
|
if (opts.expectedConnectorGeneration !== undefined && opts.expectedConnectorGeneration !== MANAGER_VERSION)
|
|
@@ -399,13 +400,19 @@ export class Manager {
|
|
|
399
400
|
opts.attachHost ?? "127.0.0.1");
|
|
400
401
|
this.connectorInventory = new ConnectorInventory({ execution: this.execution, installedExtensions: this.installedExtensions, machineSetupCommand: this.config.machineSetupCommand, expectedConnectorGeneration: this.config.expectedConnectorGeneration }, this.parts, (resumeOperation) => this.beginLifecycle(resumeOperation));
|
|
401
402
|
Object.assign(this.parts, {
|
|
403
|
+
brokerTransport: this.brokerTransportComponent,
|
|
402
404
|
connectorInventory: this.connectorInventory,
|
|
403
405
|
credentialRenewal: this.credentialRenewal,
|
|
406
|
+
goalWriter: this.goalWriterComponent,
|
|
404
407
|
harnessResolution: this.harnessResolutionComponent,
|
|
405
408
|
lease: this.lease,
|
|
406
|
-
|
|
409
|
+
namesCapacity: this.namesCapacity,
|
|
410
|
+
personaCatalog: this.personaCatalogComponent,
|
|
411
|
+
preservation: this.preservationComponent,
|
|
407
412
|
seatLaunch: this.seatLaunch,
|
|
413
|
+
seatStop: this.seatStopComponent,
|
|
408
414
|
servePlane: this.servePlane,
|
|
415
|
+
spawnGoal: this.spawnGoalComponent,
|
|
409
416
|
});
|
|
410
417
|
}
|
|
411
418
|
get runtimeKind() {
|
|
@@ -602,12 +609,8 @@ export class Manager {
|
|
|
602
609
|
static DELIVERY_SHARD = 0;
|
|
603
610
|
/** {@link CredentialRenewal.absentByLeaseRow}. */
|
|
604
611
|
absentByLeaseRow(...args) { return this.credentialRenewal.absentByLeaseRow(...args); }
|
|
605
|
-
/** {@link CredentialRenewal.keepDaemonRenewalLease}. */
|
|
606
|
-
keepDaemonRenewalLease(...args) { return this.credentialRenewal.keepDaemonRenewalLease(...args); }
|
|
607
612
|
/** {@link CredentialRenewal.claimDaemonRenewalOwnership}. */
|
|
608
613
|
claimDaemonRenewalOwnership(...args) { return this.credentialRenewal.claimDaemonRenewalOwnership(...args); }
|
|
609
|
-
/** {@link CredentialRenewal.scheduleServeRenewal}. */
|
|
610
|
-
scheduleServeRenewal(...args) { return this.credentialRenewal.scheduleServeRenewal(...args); }
|
|
611
614
|
/** {@link CredentialRenewal.boundedReconnect}. */
|
|
612
615
|
boundedReconnect(...args) { return this.credentialRenewal.boundedReconnect(...args); }
|
|
613
616
|
/** {@link CredentialRenewal.renewDaemonCreds}. */
|
|
@@ -669,8 +672,6 @@ export class Manager {
|
|
|
669
672
|
/** {@link Preservation.inventoryReferenceError}. */
|
|
670
673
|
inventoryReferenceError(...args) { return this.preservationComponent.inventoryReferenceError(...args); }
|
|
671
674
|
fileDigest(path) { return fileDigest(path); }
|
|
672
|
-
/** {@link Preservation.fileDigestOrEmpty}. */
|
|
673
|
-
fileDigestOrEmpty(...args) { return this.preservationComponent.fileDigestOrEmpty(...args); }
|
|
674
675
|
/** {@link PreservedResume.resumeEntry}. */
|
|
675
676
|
resumeEntry(...args) { return this.preservedResumeComponent.resumeEntry(...args); }
|
|
676
677
|
/** {@link PreservedResume.resumeEntryOf}. */
|
|
@@ -679,8 +680,6 @@ export class Manager {
|
|
|
679
680
|
teardownManagedAgents(...args) { return this.preservationComponent.teardownManagedAgents(...args); }
|
|
680
681
|
/** {@link Preservation.isProcessBoundSeat}. */
|
|
681
682
|
isProcessBoundSeat(...args) { return this.preservationComponent.isProcessBoundSeat(...args); }
|
|
682
|
-
/** {@link Preservation.adoptReleasedSeats}. */
|
|
683
|
-
adoptReleasedSeats(...args) { return this.preservationComponent.adoptReleasedSeats(...args); }
|
|
684
683
|
async stopRetainedAgentsOnExit() {
|
|
685
684
|
const managed = [...this.agents.values()];
|
|
686
685
|
for (const a of managed)
|
|
@@ -690,7 +689,7 @@ export class Manager {
|
|
|
690
689
|
try {
|
|
691
690
|
// No cut holds a delegated seat (runPreparation refuses one), so stopping it is its retirement.
|
|
692
691
|
if (a.handedOff)
|
|
693
|
-
await this.deprovision(this.teardownTarget(a));
|
|
692
|
+
await this.deprovision(this.seatStopComponent.teardownTarget(a));
|
|
694
693
|
else
|
|
695
694
|
a.handle.stop({ graceful: false });
|
|
696
695
|
}
|
|
@@ -881,10 +880,6 @@ export class Manager {
|
|
|
881
880
|
}
|
|
882
881
|
/** {@link BrokerTransport.retireConnection}. */
|
|
883
882
|
retireConnection(...args) { return this.brokerTransportComponent.retireConnection(...args); }
|
|
884
|
-
/** {@link BrokerTransport.discardServeCandidate}. */
|
|
885
|
-
discardServeCandidate(...args) { return this.brokerTransportComponent.discardServeCandidate(...args); }
|
|
886
|
-
/** {@link BrokerTransport.trackTransport}. */
|
|
887
|
-
trackTransport(...args) { return this.brokerTransportComponent.trackTransport(...args); }
|
|
888
883
|
/** {@link PreservedResume.opFinalizeResume}. */
|
|
889
884
|
opFinalizeResume(...args) { return this.preservedResumeComponent.opFinalizeResume(...args); }
|
|
890
885
|
/** {@link PreservedResume.opCommitResume}. */
|
|
@@ -1129,8 +1124,6 @@ export class Manager {
|
|
|
1129
1124
|
stopHandle(...args) { return this.seatStopComponent.stopHandle(...args); }
|
|
1130
1125
|
/** {@link SeatStop.stopWindowsSeat}. */
|
|
1131
1126
|
stopWindowsSeat(...args) { return this.seatStopComponent.stopWindowsSeat(...args); }
|
|
1132
|
-
/** {@link SeatStop.trackStoppedHandle}. */
|
|
1133
|
-
trackStoppedHandle(...args) { return this.seatStopComponent.trackStoppedHandle(...args); }
|
|
1134
1127
|
provisionUserAgent(name, opts) { return this.userProvision.provisionUserAgent(name, opts); }
|
|
1135
1128
|
/** Shred a user agent's secret family from the store and from disk. Every removal is attempted,
|
|
1136
1129
|
* and each failure joins `unshredded`, so one fault cannot leave the rest of the family behind. */
|
|
@@ -1146,13 +1139,9 @@ export class Manager {
|
|
|
1146
1139
|
logSeatReaped(...args) { return this.seatStopComponent.logSeatReaped(...args); }
|
|
1147
1140
|
/** {@link SeatStop.logSeatMeshTransitions}. */
|
|
1148
1141
|
logSeatMeshTransitions(...args) { return this.seatStopComponent.logSeatMeshTransitions(...args); }
|
|
1149
|
-
/** {@link SeatStop.isOwnPresence}. */
|
|
1150
|
-
isOwnPresence(a, p) { return this.seatStopComponent.isOwnPresence(a, p); }
|
|
1151
1142
|
freeSlot(a, floor, cause, acceptedBeforeFence = false) { this.namesCapacity.freeSlot(a, floor, cause, acceptedBeforeFence); }
|
|
1152
1143
|
/** {@link SeatStop.dropInlineSnapshot}. */
|
|
1153
1144
|
dropInlineSnapshot(...args) { return this.seatStopComponent.dropInlineSnapshot(...args); }
|
|
1154
|
-
/** {@link SeatStop.teardownTarget}. */
|
|
1155
|
-
teardownTarget(...args) { return this.seatStopComponent.teardownTarget(...args); }
|
|
1156
1145
|
deprovision(a) { return this.retirement.deprovision(a); }
|
|
1157
1146
|
/** Run one retirement in a {@link RETIREMENT_CONCURRENCY} slot, oldest first: a seat's deprovision, a
|
|
1158
1147
|
* chat session's terminal and a static reconcile's terminal all take one. No retirement awaits
|
|
@@ -1252,18 +1241,11 @@ export class Manager {
|
|
|
1252
1241
|
}
|
|
1253
1242
|
/** {@link StartDoors.opStart}. */
|
|
1254
1243
|
opStart(...args) { return this.startDoorsComponent.opStart(...args); }
|
|
1255
|
-
listSpawnDirectory(args) { return this.seatLaunch.listSpawnDirectory(args); }
|
|
1256
|
-
/** {@link SeatLaunch.resolveSpawnCwd}. */
|
|
1257
|
-
resolveSpawnCwd(value) { return this.seatLaunch.resolveSpawnCwd(value); }
|
|
1258
1244
|
/** {@link HarnessResolution.resolveConnector}. */
|
|
1259
1245
|
resolveConnector(...args) { return this.harnessResolutionComponent.resolveConnector(...args); }
|
|
1260
|
-
/** {@link SeatLaunch.connectorNames}. */
|
|
1261
|
-
connectorNames() { return this.seatLaunch.connectorNames(); }
|
|
1262
1246
|
/** {@link SeatLaunch.classSpawnEnabled}. */
|
|
1263
1247
|
classSpawnEnabled() { return this.seatLaunch.classSpawnEnabled(); }
|
|
1264
1248
|
omitClassCommands() { return this.seatLaunch.omitClassCommands(); }
|
|
1265
|
-
/** {@link HarnessResolution.launchHarness}. */
|
|
1266
|
-
launchHarness(...args) { return this.harnessResolutionComponent.launchHarness(...args); }
|
|
1267
1249
|
/** {@link HarnessResolution.hostLaunchFields}. */
|
|
1268
1250
|
hostLaunchFields(...args) { return this.harnessResolutionComponent.hostLaunchFields(...args); }
|
|
1269
1251
|
/** {@link HarnessResolution.capabilityRefusal}. */
|
|
@@ -1303,10 +1285,6 @@ export class Manager {
|
|
|
1303
1285
|
spawnRun(caller, runId) { return this.seatLaunch.spawnRun(caller, runId); }
|
|
1304
1286
|
/** {@link SeatLaunch.staticSpawnBound}. */
|
|
1305
1287
|
staticSpawnBound(caller, run) { return this.seatLaunch.staticSpawnBound(caller, run); }
|
|
1306
|
-
/** {@link SeatLaunch.spawnBoundRefusal}. */
|
|
1307
|
-
spawnBoundRefusal(bound, grant, armsEvents, door = "spawn") { return this.seatLaunch.spawnBoundRefusal(bound, grant, armsEvents, door); }
|
|
1308
|
-
/** {@link SeatLaunch.managedStaticInstanceReads}. */
|
|
1309
|
-
managedStaticInstanceReads(capabilities) { return this.seatLaunch.managedStaticInstanceReads(capabilities); }
|
|
1310
1288
|
/** {@link PreservedResume.resumePreserved}. */
|
|
1311
1289
|
resumePreserved(...args) { return this.preservedResumeComponent.resumePreserved(...args); }
|
|
1312
1290
|
/** {@link PreservedResume.validateRetainedAuthority}. */
|
|
@@ -1323,12 +1301,8 @@ export class Manager {
|
|
|
1323
1301
|
/** {@link ReadinessWait.watchExit}. */
|
|
1324
1302
|
watchExit(...args) { return this.readinessWaitComponent.watchExit(...args); }
|
|
1325
1303
|
occupancy() { return this.namesCapacity.occupancy(); }
|
|
1326
|
-
occupancyText(o) { return this.namesCapacity.occupancyText(o); }
|
|
1327
|
-
capacityRefusal(o) { return this.namesCapacity.capacityRefusal(o); }
|
|
1328
1304
|
/** The owner a launch belongs to: {@link NamesCapacity.launchOwner}. */
|
|
1329
1305
|
launchOwner(opts, spawner) { return this.namesCapacity.launchOwner(opts, spawner); }
|
|
1330
|
-
/** The per-owner ceiling at accept: {@link NamesCapacity.seatCapRefusal}. */
|
|
1331
|
-
seatCapRefusal(owner) { return this.namesCapacity.seatCapRefusal(owner); }
|
|
1332
1306
|
/** {@link SeatStop.opStop}. */
|
|
1333
1307
|
// @ts-expect-error TS6133: retained fixtures call this private adapter through structural views.
|
|
1334
1308
|
opStop(...args) { return this.seatStopComponent.opStop(...args); }
|
|
@@ -1342,8 +1316,6 @@ export class Manager {
|
|
|
1342
1316
|
withLifecycleExecutor(pin, fn) { return this.brokerTransportComponent.withLifecycleExecutor(pin, fn); }
|
|
1343
1317
|
/** {@link BrokerTransport.withIssuer}. */
|
|
1344
1318
|
withIssuer(fn) { return this.brokerTransportComponent.withIssuer(fn); }
|
|
1345
|
-
/** {@link BrokerTransport.issuanceSeam}. */
|
|
1346
|
-
issuanceSeam(...args) { return this.brokerTransportComponent.issuanceSeam(...args); }
|
|
1347
1319
|
/** {@link BrokerTransport.withEndpointServeExecutor}. */
|
|
1348
1320
|
withEndpointServeExecutor(fn) { return this.brokerTransportComponent.withEndpointServeExecutor(fn); }
|
|
1349
1321
|
/** {@link BrokerTransport.withOpenServeConnection}. */
|
|
@@ -1363,10 +1335,7 @@ export class Manager {
|
|
|
1363
1335
|
registerManagerService() { return this.servePlane.registerManagerService(); }
|
|
1364
1336
|
/** {@link GoalWriter.mintAndStageGoalWriter}. */
|
|
1365
1337
|
mintAndStageGoalWriter(...args) { return this.goalWriterComponent.mintAndStageGoalWriter(...args); }
|
|
1366
|
-
/** {@link GoalWriter.startGoalWriter}. */
|
|
1367
|
-
startGoalWriter(...args) { return this.goalWriterComponent.startGoalWriter(...args); }
|
|
1368
1338
|
mintAndStageSessionLedger(authKv) { return this.servePlane.mintAndStageSessionLedger(authKv); }
|
|
1369
|
-
startSessionPlane() { return this.servePlane.startSessionPlane(); }
|
|
1370
1339
|
/** {@link GoalWriter.reconcileGoalIndex}. */
|
|
1371
1340
|
reconcileGoalIndex(...args) { return this.goalWriterComponent.reconcileGoalIndex(...args); }
|
|
1372
1341
|
/** {@link GoalWriter.emitGoalProgress}. */
|
|
@@ -1377,8 +1346,6 @@ export class Manager {
|
|
|
1377
1346
|
loggedSpawnRefusal(ctx, serve) { return this.spawnGoalComponent.loggedSpawnRefusal(ctx, serve); }
|
|
1378
1347
|
/** {@link SpawnGoal.serveSpawnGoal}. */
|
|
1379
1348
|
serveSpawnGoal(...args) { return this.spawnGoalComponent.serveSpawnGoal(...args); }
|
|
1380
|
-
/** {@link SpawnGoal.expireGoalAcceptance}. */
|
|
1381
|
-
expireGoalAcceptance(...args) { return this.spawnGoalComponent.expireGoalAcceptance(...args); }
|
|
1382
1349
|
// ---- the turn relay (§8 durable actions) ------------------------------------------------------
|
|
1383
1350
|
//
|
|
1384
1351
|
// A seat is NOT an endpoint: a run's `turn(agent, payload)` rides the manager, which accepts it
|
|
@@ -1490,14 +1457,14 @@ export class Manager {
|
|
|
1490
1457
|
this.reapChildrenOf(this.managedPrincipal(a));
|
|
1491
1458
|
const cause = { kind: "stopped-once", reason };
|
|
1492
1459
|
this.stopHandle(a, true, cause);
|
|
1493
|
-
this.trackStoppedHandle(a, false, cause);
|
|
1460
|
+
this.seatStopComponent.trackStoppedHandle(a, false, cause);
|
|
1494
1461
|
void this.seatStopComponent.cancelAgentGoal(a.name, "graceful");
|
|
1495
1462
|
}
|
|
1496
1463
|
/** Stop a seat this spawn just placed and track its exit: the stop first, so the terminalizing
|
|
1497
1464
|
* latch is set before anything awaits, then the exit tracking. Both are synchronous. */
|
|
1498
1465
|
stopAndTrack(a, cause) {
|
|
1499
1466
|
this.stopHandle(a, false, cause);
|
|
1500
|
-
this.trackStoppedHandle(a, true, cause);
|
|
1467
|
+
this.seatStopComponent.trackStoppedHandle(a, true, cause);
|
|
1501
1468
|
}
|
|
1502
1469
|
/** End a once seat before its task is served: let go of the spawn goal, record why it stopped if
|
|
1503
1470
|
* `stopReason` is given and none is recorded yet, then stop the seat. Synchronous, in that order. */
|
|
@@ -1605,22 +1572,14 @@ export class Manager {
|
|
|
1605
1572
|
lifecycleMembershipRefusal(...args) { return this.seatStopComponent.lifecycleMembershipRefusal(...args); }
|
|
1606
1573
|
/** {@link BrokerTransport.withProvisioner}. */
|
|
1607
1574
|
withProvisioner(fn) { return this.brokerTransportComponent.withProvisioner(fn); }
|
|
1608
|
-
/** {@link BrokerTransport.withTransferReader}. */
|
|
1609
|
-
withTransferReader(fn) { return this.brokerTransportComponent.withTransferReader(fn); }
|
|
1610
1575
|
/** {@link SeatStop.opPurge}. */
|
|
1611
1576
|
opPurge(...args) { return this.seatStopComponent.opPurge(...args); }
|
|
1612
1577
|
/** {@link PersonaCatalog.opDefinePersona}. */
|
|
1613
1578
|
opDefinePersona(...args) { return this.personaCatalogComponent.opDefinePersona(...args); }
|
|
1614
1579
|
/** {@link PersonaCatalog.opRemovePersona}. */
|
|
1615
1580
|
opRemovePersona(...args) { return this.personaCatalogComponent.opRemovePersona(...args); }
|
|
1616
|
-
/** {@link PersonaCatalog.personaOwner}. */
|
|
1617
|
-
personaOwner(...args) { return this.personaCatalogComponent.personaOwner(...args); }
|
|
1618
1581
|
/** {@link PersonaCatalog.canReadPersona}. */
|
|
1619
1582
|
canReadPersona(...args) { return this.personaCatalogComponent.canReadPersona(...args); }
|
|
1620
|
-
/** {@link PersonaCatalog.opListPersonas}. */
|
|
1621
|
-
opListPersonas(...args) { return this.personaCatalogComponent.opListPersonas(...args); }
|
|
1622
|
-
/** {@link PersonaCatalog.opShowPersona}. */
|
|
1623
|
-
opShowPersona(...args) { return this.personaCatalogComponent.opShowPersona(...args); }
|
|
1624
1583
|
/** {@link TerminalInput.inputAuthorized}. */
|
|
1625
1584
|
inputAuthorized(...args) { return this.terminalInputComponent.inputAuthorized(...args); }
|
|
1626
1585
|
/** {@link TerminalInput.attachAuthorized}. */
|