agl 43.9.0 → 43.10.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/changelog.md +12 -0
- package/dist_serve/bundle.js +997 -975
- package/dist_serve/bundle.js.map +2 -2
- package/dist_ts/00_commitinfo_data.js +2 -2
- package/dist_ts/aglapi/aglapisurface.document.js +3 -3
- package/dist_ts/classes.accountsactions.d.ts +3 -1
- package/dist_ts/classes.accountsactions.js +17 -1
- package/dist_ts/classes.controller.d.ts +1 -1
- package/dist_ts/classes.controller.js +21 -7
- package/dist_ts/classes.inferencegateway.js +7 -5
- package/dist_ts/classes.inferenceplacement.d.ts +1 -1
- package/dist_ts/classes.inferencerouter.d.ts +20 -3
- package/dist_ts/classes.inferencerouter.js +37 -10
- package/dist_ts/classes.inferenceservice.js +2 -2
- package/dist_ts/classes.ticketnotifier.d.ts +2 -2
- package/dist_ts/classes.ticketnotifier.js +6 -4
- package/dist_ts/classes.ticketstore.d.ts +33 -5
- package/dist_ts/classes.ticketstore.js +109 -26
- package/dist_ts/classes.workercallers.d.ts +35 -1
- package/dist_ts/classes.workercallers.js +139 -28
- package/dist_ts/fleet/classes.boardpump.d.ts +1 -1
- package/dist_ts/fleet/classes.boardpump.js +4 -2
- package/dist_ts/fleet/classes.ticketeffects.d.ts +11 -0
- package/dist_ts/fleet/classes.ticketeffects.js +28 -1
- package/dist_ts/fleet/classes.workers.d.ts +18 -1
- package/dist_ts/fleet/classes.workers.js +49 -8
- package/dist_ts/fleet/functions.workervalidation.js +7 -4
- package/dist_ts/functions.fleetworkercli.d.ts +3 -1
- package/dist_ts/functions.fleetworkercli.js +6 -2
- package/dist_ts/functions.inferencecli.js +4 -1
- package/dist_ts/functions.mcpfleetworkertools.js +3 -3
- package/dist_ts/functions.proxycapacity.d.ts +2 -1
- package/dist_ts/functions.proxycapacity.js +6 -3
- package/dist_ts/functions.proxycapacitycli.js +2 -2
- package/dist_ts/functions.workerprocessproof.d.ts +6 -0
- package/dist_ts/functions.workerprocessproof.js +8 -3
- package/dist_ts/interfaces.auth.d.ts +1 -1
- package/dist_ts/interfaces.auth.js +2 -1
- package/dist_ts/interfaces.flexipc.d.ts +3 -1
- package/dist_ts/interfaces.flexipc.js +1 -1
- package/dist_ts_authswitch/authority-contract.d.ts +25 -0
- package/dist_ts_authswitch/authority-contract.js +1 -1
- package/dist_ts_authswitch/authority-overview.d.ts +7 -0
- package/dist_ts_authswitch/authority-overview.js +10 -6
- package/dist_ts_authswitch/authority-placement.d.ts +5 -2
- package/dist_ts_authswitch/authority-placement.js +6 -3
- package/dist_ts_authswitch/classes.authoritybroker.d.ts +6 -0
- package/dist_ts_authswitch/classes.authoritybroker.js +26 -1
- package/dist_ts_authswitch/classes.authoritycli.d.ts +1 -0
- package/dist_ts_authswitch/classes.authoritycli.js +50 -4
- package/dist_ts_authswitch/classes.authorityclient.d.ts +3 -1
- package/dist_ts_authswitch/classes.authorityclient.js +9 -4
- package/dist_ts_authswitch/classes.authoritydaemon.js +7 -1
- package/dist_ts_authswitch/classes.authoritydatabase.js +5 -1
- package/dist_ts_authswitch/classes.authoritymodels.d.ts +7 -0
- package/dist_ts_authswitch/classes.authoritymodels.js +13 -6
- package/dist_ts_interfaces/fleetworkers.d.ts +26 -1
- package/dist_ts_interfaces/fleetworkers.js +1 -1
- package/dist_ts_interfaces/interfaces.d.ts +4 -2
- package/dist_ts_interfaces/interfaces.js +1 -1
- package/dist_ts_interfaces/proxycapacity.d.ts +1 -1
- package/dist_ts_interfaces/requests.accounts.d.ts +19 -0
- package/dist_ts_interfaces/requests.accounts.js +1 -1
- package/dist_ts_interfaces/requests.d.ts +2 -2
- package/dist_ts_interfaces/requests.fleetworkers.d.ts +3 -1
- package/dist_ts_interfaces/requests.js +1 -1
- package/dist_ts_migration/v41_ticketclosedcolumn.js +7 -3
- package/docs/authswitch.md +22 -0
- package/package.json +1 -1
- package/readme.md +54 -3
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/aglapi/aglapisurface.document.ts +2 -2
- package/ts/classes.accountsactions.ts +25 -0
- package/ts/classes.controller.ts +18 -3
- package/ts/classes.inferencegateway.ts +6 -4
- package/ts/classes.inferenceplacement.ts +1 -1
- package/ts/classes.inferencerouter.ts +49 -10
- package/ts/classes.inferenceservice.ts +1 -1
- package/ts/classes.ticketnotifier.ts +5 -3
- package/ts/classes.ticketstore.ts +103 -24
- package/ts/classes.workercallers.ts +165 -28
- package/ts/fleet/classes.boardpump.ts +3 -2
- package/ts/fleet/classes.ticketeffects.ts +25 -0
- package/ts/fleet/classes.workers.ts +47 -7
- package/ts/fleet/functions.workervalidation.ts +6 -3
- package/ts/functions.fleetworkercli.ts +5 -1
- package/ts/functions.inferencecli.ts +2 -0
- package/ts/functions.mcpfleetworkertools.ts +2 -2
- package/ts/functions.proxycapacity.ts +5 -2
- package/ts/functions.proxycapacitycli.ts +1 -1
- package/ts/functions.workerprocessproof.ts +10 -2
- package/ts/interfaces.auth.ts +1 -0
- package/ts/interfaces.flexipc.ts +3 -1
- package/ts_authswitch/authority-contract.ts +20 -0
- package/ts_authswitch/authority-overview.ts +17 -6
- package/ts_authswitch/authority-placement.ts +7 -3
- package/ts_authswitch/classes.authoritybroker.ts +24 -0
- package/ts_authswitch/classes.authoritycli.ts +58 -4
- package/ts_authswitch/classes.authorityclient.ts +11 -4
- package/ts_authswitch/classes.authoritydaemon.ts +8 -1
- package/ts_authswitch/classes.authoritydatabase.ts +3 -0
- package/ts_authswitch/classes.authoritymodels.ts +12 -4
- package/ts_interfaces/fleetworkers.ts +26 -1
- package/ts_interfaces/interfaces.ts +4 -2
- package/ts_interfaces/proxycapacity.ts +1 -1
- package/ts_interfaces/requests.accounts.ts +17 -0
- package/ts_interfaces/requests.fleetworkers.ts +3 -1
- package/ts_interfaces/requests.ts +2 -0
- package/ts_migration/v41_ticketclosedcolumn.ts +6 -2
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/accounts.templates.ts +12 -2
- package/ts_web/classes.accountsreadmodel.ts +42 -6
- package/ts_web/elements.accounts.ts +45 -3
- package/ts_web/elements.harnesscontrollerapp.ts +6 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IFleetWorkerCallerHooks, type TFleetWorkerCallerLaunch, type TFleetWorkerCallerBinding, type IWorkerCallerReadiness, type TWorkerCallerEnrollment, type IWorkerCallerEnrollmentResponse, type IConfigurationMaster, type IControllerMcpCaller, type IControllerMcpWireCaller, type IWorkerClaudeJobRequest, type TWorkerClaudeJobObservation, type IWorkerClaudeProcessRequest, type TWorkerClaudeProcessIdentification } from '../dist_ts_interfaces/index.js';
|
|
1
|
+
import { type IFleetWorkerCallerHooks, type TFleetWorkerCallerLaunch, type TFleetWorkerCallerBinding, type IWorkerCallerReadiness, type TWorkerCallerEnrollment, type IWorkerCallerEnrollmentResponse, type IConfigurationMaster, type IControllerMcpCaller, type IControllerMcpWireCaller, type IWorkerClaudeJobRequest, type TWorkerClaudeJobObservation, type IWorkerClaudeProcessRequest, type TWorkerClaudeProcessIdentification, type IFleetWorkerIdentity } from '../dist_ts_interfaces/index.js';
|
|
2
2
|
import { ControllerMcpCallerRegistry } from './classes.mcpcallerregistry.js';
|
|
3
3
|
import { resolveWorkerBridgeCommand, resolveClaudeWorkerExecutable, verifyClaudeWorkerProcess, verifyClaudeReleaseProcess, readWorkerBridge, verifyWorkerBridge, readWorkerProcessSnapshot, type IWorkerCallerConnection, type IWorkerProcessSnapshot } from './functions.workerprocessproof.js';
|
|
4
4
|
import { type IWorkerCallerBindingStore } from './classes.workercallerbindings.js';
|
|
@@ -24,6 +24,12 @@ export interface IWorkerProcessRefusal {
|
|
|
24
24
|
workerId?: string;
|
|
25
25
|
nativeSessionId?: string;
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Every reason a fleet worker shows as unverified for (`IFleetWorkerIdentity.reason`, AGL-1888): fixed phrases, so the
|
|
29
|
+
* views, the ticket notice and its key never carry error text, a path or an id, and one cause is one notice.
|
|
30
|
+
*/
|
|
31
|
+
export declare const workerUnverifiedReasons: readonly ['the process its bridge runs under runs a Claude Code release that is no longer installed', 'a fleet wake of its worker is in flight', 'its worker changed in the fleet while its process was identified', 'its caller record could not be bound', 'its worker\'s caller record changed while it was enrolled', 'the approved Claude Code release cannot be resolved', 'the process of its Claude job is not an installed Claude Code release', 'its bridge is not proved to be a direct child of the process of its Claude job'];
|
|
32
|
+
export type TWorkerUnverifiedReason = (typeof workerUnverifiedReasons)[number];
|
|
27
33
|
export interface IControllerWorkerCallerOptions {
|
|
28
34
|
controllerGeneration: string;
|
|
29
35
|
/** The port this controller is configured to serve: a bridge an upgrade re-executed in place names it (`aglMcpReexecArguments`). */
|
|
@@ -49,6 +55,12 @@ export interface IControllerWorkerCallerOptions {
|
|
|
49
55
|
identifyClaudeProcess?(request: IWorkerClaudeProcessRequest): Promise<TWorkerClaudeProcessIdentification>;
|
|
50
56
|
/** Where the reason a worker enrollment stays pending is written once; the controller log by default. */
|
|
51
57
|
log?(line: string): void;
|
|
58
|
+
/**
|
|
59
|
+
* Told when a fleet worker shows as unverified (`workerCallerIdentity`), each time the reason it shows changes, and
|
|
60
|
+
* when its next verified call or its revocation clears that (`undefined`): the fleet's views follow it, and the fleet
|
|
61
|
+
* notices the worker's ticket.
|
|
62
|
+
*/
|
|
63
|
+
workerIdentityChanged?(workerId: string, identity: IFleetWorkerIdentity | undefined): void;
|
|
52
64
|
}
|
|
53
65
|
export interface IWorkerCallerProcessProof {
|
|
54
66
|
resolveCommand: typeof resolveWorkerBridgeCommand;
|
|
@@ -88,6 +100,8 @@ export declare class ControllerWorkerCallers implements IFleetWorkerCallerHooks
|
|
|
88
100
|
* under it wait for that one read, until the fleet adopts or re-binds a worker.
|
|
89
101
|
*/
|
|
90
102
|
private readonly identifications;
|
|
103
|
+
/** Per fleet worker, its bridges' refused calls since its last verified one (`refusedWorker`), in memory only. */
|
|
104
|
+
private readonly refusedCalls;
|
|
91
105
|
private closed;
|
|
92
106
|
private readonly proof;
|
|
93
107
|
private readonly log;
|
|
@@ -98,6 +112,13 @@ export declare class ControllerWorkerCallers implements IFleetWorkerCallerHooks
|
|
|
98
112
|
revokeWorkerCaller(requestArg: Parameters<IFleetWorkerCallerHooks['revokeWorkerCaller']>[0]): Promise<void>;
|
|
99
113
|
enroll(requestArg: TWorkerCallerEnrollment, connectionArg?: IWorkerCallerConnection): Promise<IWorkerCallerEnrollmentResponse>;
|
|
100
114
|
admit(wireArg: IControllerMcpWireCaller | undefined, connectionArg?: IWorkerCallerConnection): Promise<IWorkerCallerLease>;
|
|
115
|
+
/**
|
|
116
|
+
* Whether the fleet worker `workerIdArg`'s MCP calls run without its identity (AGL-1888): shown once a bridge the
|
|
117
|
+
* fleet identified as the worker's was refused for good, or its refused calls since its last verified one spanned
|
|
118
|
+
* `unverifiedAfterMs`; cleared by its next verified call or its revocation (a stop, an archive, a re-bind). Derived
|
|
119
|
+
* from those calls alone: no timer and no sweep, so a worker that does not call never shows.
|
|
120
|
+
*/
|
|
121
|
+
workerCallerIdentity(workerIdArg: string): IFleetWorkerIdentity | undefined;
|
|
101
122
|
clearCallerRefusals(): void;
|
|
102
123
|
close(): Promise<void>;
|
|
103
124
|
/**
|
|
@@ -140,6 +161,19 @@ export declare class ControllerWorkerCallers implements IFleetWorkerCallerHooks
|
|
|
140
161
|
* for a bridge whose parent runs no Claude job of the inventory (an AGL terminal, a harness's own server).
|
|
141
162
|
*/
|
|
142
163
|
private noteProcessRefusal;
|
|
164
|
+
/**
|
|
165
|
+
* A refused call of a bridge the fleet identified as the worker `workerIdArg`'s (AGL-1888). The worker shows as
|
|
166
|
+
* unverified once a refusal holds for good, or once its refused calls since its last verified one span
|
|
167
|
+
* `unverifiedAfterMs`, and that is told (`workerIdentityChanged`). Once it shows, only a refusal for good for another
|
|
168
|
+
* reason changes the reason it shows and is told again: a refusal that may pass never is, so the owner's own steps
|
|
169
|
+
* (a stop, a wake) write no second notice.
|
|
170
|
+
*/
|
|
171
|
+
private refusedWorker;
|
|
172
|
+
/**
|
|
173
|
+
* A verified call of the fleet worker `workerIdArg`, or its revocation (a stop, an archive, a re-bind): its refused
|
|
174
|
+
* calls are forgotten, and it no longer shows as unverified.
|
|
175
|
+
*/
|
|
176
|
+
private clearRefusedCalls;
|
|
143
177
|
/**
|
|
144
178
|
* Proves the bridge's process to be the current process of the job the launch is bound to, from a fresh inventory the
|
|
145
179
|
* fleet reads, and binds the launch to it at the current revision. A bridge refused for good is remembered for its
|