agl 43.3.0 → 43.3.2
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 +19 -0
- package/dist_serve/bundle.js +2 -2
- package/dist_serve/bundle.js.map +2 -2
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/classes.authstore.d.ts +7 -0
- package/dist_ts/classes.authstore.js +9 -1
- package/dist_ts/classes.claudeharness.d.ts +13 -2
- package/dist_ts/classes.claudeharness.js +12 -5
- package/dist_ts/classes.controller.d.ts +38 -10
- package/dist_ts/classes.controller.js +160 -91
- package/dist_ts/classes.flexservice.d.ts +12 -1
- package/dist_ts/classes.flexservice.js +44 -13
- package/dist_ts/classes.flexstore.d.ts +20 -0
- package/dist_ts/classes.flexstore.js +30 -1
- package/dist_ts/classes.mcpcontrollerhost.js +4 -1
- package/dist_ts/classes.mcptools.js +6 -1
- package/dist_ts/classes.nativesessions.d.ts +12 -0
- package/dist_ts/classes.nativesessions.js +1 -1
- package/dist_ts/classes.workercallers.js +4 -2
- package/dist_ts/driver/classes.directreports.js +19 -19
- package/dist_ts/driver/classes.directreportstore.d.ts +8 -1
- package/dist_ts/driver/classes.directreportstore.js +20 -10
- package/dist_ts/fleet/classes.workers.d.ts +16 -0
- package/dist_ts/fleet/classes.workers.js +73 -39
- package/dist_ts/fleet/classes.workerstore.js +14 -8
- package/dist_ts/fleet/functions.workervalidation.js +10 -3
- package/dist_ts/fleet/interfaces.workers.d.ts +6 -2
- package/dist_ts/fleet/interfaces.workers.js +8 -4
- package/dist_ts/functions.deviceapi.d.ts +50 -3
- package/dist_ts/functions.deviceapi.js +174 -7
- package/dist_ts/functions.exactpersistence.d.ts +3 -0
- package/dist_ts/functions.exactpersistence.js +4 -0
- package/dist_ts/functions.mcpfleetworkertools.js +2 -2
- package/dist_ts/functions.ticketactor.d.ts +17 -1
- package/dist_ts/functions.ticketactor.js +55 -15
- package/dist_ts/interfaces.flexipc.d.ts +17 -9
- package/dist_ts/interfaces.flexipc.js +19 -20
- package/dist_ts_interfaces/devices.d.ts +17 -4
- package/dist_ts_interfaces/devices.js +1 -1
- package/dist_ts_interfaces/fleetworkers.d.ts +32 -7
- package/dist_ts_interfaces/fleetworkers.js +19 -8
- package/dist_ts_interfaces/workercallers.d.ts +2 -0
- package/dist_ts_migration/classes.documentmigrationrunner.d.ts +14 -0
- package/dist_ts_migration/classes.documentmigrationrunner.js +20 -1
- package/dist_ts_migration/index.d.ts +1 -0
- package/dist_ts_migration/index.js +2 -1
- package/dist_ts_migration/v43_ticketactornames.d.ts +32 -0
- package/dist_ts_migration/v43_ticketactornames.js +236 -0
- package/package.json +5 -5
- package/readme.md +35 -4
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/classes.authstore.ts +10 -0
- package/ts/classes.claudeharness.ts +18 -4
- package/ts/classes.controller.ts +169 -96
- package/ts/classes.flexservice.ts +57 -14
- package/ts/classes.flexstore.ts +40 -0
- package/ts/classes.mcpcontrollerhost.ts +3 -0
- package/ts/classes.mcptools.ts +5 -0
- package/ts/classes.nativesessions.ts +13 -0
- package/ts/classes.workercallers.ts +3 -1
- package/ts/driver/classes.directreports.ts +18 -18
- package/ts/driver/classes.directreportstore.ts +20 -9
- package/ts/fleet/classes.workers.ts +66 -39
- package/ts/fleet/classes.workerstore.ts +11 -7
- package/ts/fleet/functions.workervalidation.ts +7 -2
- package/ts/fleet/interfaces.workers.ts +6 -2
- package/ts/functions.deviceapi.ts +227 -6
- package/ts/functions.exactpersistence.ts +5 -0
- package/ts/functions.mcpfleetworkertools.ts +1 -1
- package/ts/functions.ticketactor.ts +58 -14
- package/ts/interfaces.flexipc.ts +43 -27
- package/ts_interfaces/devices.schema.json +5 -2
- package/ts_interfaces/devices.ts +20 -4
- package/ts_interfaces/fleetworkers.ts +33 -7
- package/ts_interfaces/workercallers.ts +2 -0
- package/ts_migration/classes.documentmigrationrunner.ts +21 -0
- package/ts_migration/index.ts +1 -0
- package/ts_migration/v43_ticketactornames.ts +225 -0
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/elements.fleetworker.ts +4 -2
|
@@ -15,7 +15,7 @@ const descriptions = {
|
|
|
15
15
|
list: 'List this owner\'s fleet workers as summaries, newest first, in pages of limit (1-100, default 50): identity, ticket, state, native id, cwd, the native status, newest turn outcome and native wait last observed, and fence flags (an unresolved dispatch with its action and since, a lost or reconfirmed dispatch, a recorded error). total, fenced and failed (recorded errors and failed turn outcomes) count the whole filtered set, so a page never hides a fence. Continue with nextCursor and the same filter (archived, ticketKey, state, harness); a cursor of another filter or one after a worker no longer held as it was is refused. view full returns every full record unpaged; fleet_worker_get returns one worker whole.',
|
|
16
16
|
get: 'Read one of this owner\'s fleet workers, archived ones included, by name or id: its full record (dispatch fence, lost, reconfirmed and re-bind resolutions with their attribution and proof, error) and the native status, turn outcome and start, native wait and excerpt the controller last observed.',
|
|
17
17
|
status: 'Read a fleet operation job (the handle a fleet_worker_* action returns), not a host job. Jobs are transient; bindings and unresolved dispatches survive restart. Inspect unknown native outcomes before retrying.',
|
|
18
|
-
'job-wait': 'Wait until a fleet operation job (the handle a fleet_worker_* action returns, not a host job) succeeds or fails, or timeoutMs (at most 240000) passes; timedOut tells which. Waiting, a timeout or an abandoned wait never cancels the job. A job the controller no longer holds (jobs end with a controller restart or eviction) is JOB_UNAVAILABLE, not failed: read the worker with fleet_worker_get.',
|
|
18
|
+
'job-wait': 'Wait until a fleet operation job (the handle a fleet_worker_* action returns, not a host job) succeeds or fails, or timeoutMs (at most 240000) passes; timedOut tells which. Waiting, a timeout or an abandoned wait never cancels the job. A job the controller no longer holds (jobs end with a controller restart or eviction) is JOB_UNAVAILABLE, not failed: read the worker with fleet_worker_get. A failed job\'s errorOutcome is refused when nothing reached a native session, unknown when it may have (a steer may have been delivered): never repeat an unknown one before reading the worker.',
|
|
19
19
|
'native-message': 'Reach a Claude Code background job that no fleet worker binds with an attributed message, through Claude Code itself, as the browser\'s native session send does: a settled (done, blocked or stopped) job is woken with it (`claude --bg --resume <id> <text>`), a running one takes it in its inbox through Claude Code\'s own SendMessage, accepted and queued there, not yet read. nativeId is the full session id or a unique prefix of at least 8 characters; an ambiguous prefix is refused. A running job without a session name of its own (none, or one another running session shares), a failed or held job, a fleet worker\'s session and a project conversation are refused with their reason. The message arrives behind the same attribution header as session_message, naming the sender label and the local owner capability, never as the job\'s user. It holds no dispatch fence, writes no ticket comment and does not observe the turn that reads it; the receipt (delivery native-wake or native-inbox) names the command that adopts the job as a fleet worker. Returns a job handle; an unknown outcome is never retried.',
|
|
20
20
|
watch: 'Read the one bounded fleet event stream: worker turn endings, reports during turns, reaped Claude worker observations, release outcomes, and host load. Continue with the returned epoch/cursor; reset explicitly signals restart or retained-history gaps.',
|
|
21
21
|
};
|
|
@@ -47,4 +47,4 @@ export const waitForFleetWorkerJob = async (slice, timeoutMs, monotonicNow = ()
|
|
|
47
47
|
return result;
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVuY3Rpb25zLm1jcGZsZWV0d29ya2VydG9vbHMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9mdW5jdGlvbnMubWNwZmxlZXR3b3JrZXJ0b29scy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssT0FBTyxNQUFNLGNBQWMsQ0FBQztBQUN4QyxPQUFPLEVBQUUseUJBQXlCLEVBQUUsTUFBTSx1Q0FBdUMsQ0FBQztBQUNsRixPQUFPLEVBQUUsc0JBQXNCLEVBQXNELE1BQU0sa0NBQWtDLENBQUM7QUFFOUgsTUFBTSxZQUFZLEdBQXVDO0lBQ3ZELEtBQUssRUFBRSw0SkFBNEo7SUFDbkssS0FBSyxFQUFFLHExQkFBcTFCO0lBQzUxQixjQUFjLEVBQUUsK1JB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
|
1
|
+
import type { TControllerSessionHarnessId } from '../dist_ts_interfaces/interfaces.js';
|
|
1
2
|
import type { IControllerMcpCaller } from '../dist_ts_interfaces/mcprequests.js';
|
|
2
3
|
import { type ITicketActor } from '../dist_ts_interfaces/tickets.js';
|
|
3
|
-
|
|
4
|
+
/**
|
|
5
|
+
* What a ticket calls a session no direct report or fleet worker names: its harness's label, never its session id. A
|
|
6
|
+
* new harness does not compile until it has one.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ticketSessionLabels: Readonly<Record<TControllerSessionHarnessId, string>>;
|
|
9
|
+
/** What a ticket calls the OpenCode runtime's caller: one server per controller, never one session (AGL-1686). */
|
|
10
|
+
export declare const ticketOpenCodeRuntimeName = "OpenCode";
|
|
11
|
+
/** The native session an MCP caller acts in, as tickets name it (`harness:nativeId`); none for a caller without one. */
|
|
12
|
+
export declare const ticketCallerSessionId: (callerArg: IControllerMcpCaller) => string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The actor a ticket records for an MCP caller. It is named by its role, never by a session id (AGL-1686): the active
|
|
15
|
+
* direct report whose session the caller acts in (`reportNameArg`, which the caller resolves once through
|
|
16
|
+
* `DirectReports.reportOf` with `ticketCallerSessionId`), else the fleet worker's name, else its harness's label; the
|
|
17
|
+
* OpenCode runtime is "OpenCode". `id` and `sessionId` identify the actor; the name is display only.
|
|
18
|
+
*/
|
|
19
|
+
export declare const ticketActorFromCaller: (callerArg: IControllerMcpCaller, reportNameArg?: string) => ITicketActor;
|
|
@@ -1,21 +1,61 @@
|
|
|
1
1
|
import { ticketErrorMessages } from '../dist_ts_interfaces/tickets.js';
|
|
2
2
|
import { TicketError } from './classes.ticketstore.js';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* What a ticket calls a session no direct report or fleet worker names: its harness's label, never its session id. A
|
|
5
|
+
* new harness does not compile until it has one.
|
|
6
|
+
*/
|
|
7
|
+
export const ticketSessionLabels = {
|
|
8
|
+
claude: 'Claude Code session',
|
|
9
|
+
codex: 'Codex session',
|
|
10
|
+
opencode: 'OpenCode session',
|
|
11
|
+
flex: 'Flex session',
|
|
12
|
+
};
|
|
13
|
+
/** What a ticket calls the OpenCode runtime's caller: one server per controller, never one session (AGL-1686). */
|
|
14
|
+
export const ticketOpenCodeRuntimeName = 'OpenCode';
|
|
15
|
+
/** The native session an MCP caller acts in, as tickets name it (`harness:nativeId`); none for a caller without one. */
|
|
16
|
+
export const ticketCallerSessionId = (callerArg) => {
|
|
4
17
|
const subject = callerArg.subject;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
18
|
+
switch (subject.kind) {
|
|
19
|
+
case 'worker_launch': return subject.ticketSessionId;
|
|
20
|
+
case 'session': return `${subject.sessionId.harnessId}:${subject.sessionId.nativeId}`;
|
|
21
|
+
case 'terminal': return subject.agentSessionId === undefined ? undefined : `claude:${subject.agentSessionId}`;
|
|
22
|
+
case 'runtime':
|
|
23
|
+
case 'anonymous': return undefined;
|
|
24
|
+
default: {
|
|
25
|
+
const exhaustive = subject;
|
|
26
|
+
throw new Error(`Unknown MCP caller subject ${exhaustive.kind}.`);
|
|
27
|
+
}
|
|
14
28
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* The actor a ticket records for an MCP caller. It is named by its role, never by a session id (AGL-1686): the active
|
|
32
|
+
* direct report whose session the caller acts in (`reportNameArg`, which the caller resolves once through
|
|
33
|
+
* `DirectReports.reportOf` with `ticketCallerSessionId`), else the fleet worker's name, else its harness's label; the
|
|
34
|
+
* OpenCode runtime is "OpenCode". `id` and `sessionId` identify the actor; the name is display only.
|
|
35
|
+
*/
|
|
36
|
+
export const ticketActorFromCaller = (callerArg, reportNameArg) => {
|
|
37
|
+
const subject = callerArg.subject;
|
|
38
|
+
switch (subject.kind) {
|
|
39
|
+
case 'anonymous': throw new TicketError('ticket_identity_required', ticketErrorMessages.ticket_identity_required);
|
|
40
|
+
case 'worker_launch': return { id: subject.sessionIdentityId, name: reportNameArg ?? subject.workerName,
|
|
41
|
+
sessionId: subject.ticketSessionId, kind: subject.harnessId, role: 'worker' };
|
|
42
|
+
case 'session': {
|
|
43
|
+
const sessionId = `${subject.sessionId.harnessId}:${subject.sessionId.nativeId}`;
|
|
44
|
+
return { id: subject.sessionIdentityId, name: reportNameArg ?? ticketSessionLabels[subject.sessionId.harnessId], sessionId,
|
|
45
|
+
kind: subject.sessionId.harnessId === 'codex' ? 'codex' : 'worker', role: 'worker' };
|
|
46
|
+
}
|
|
47
|
+
case 'terminal': {
|
|
48
|
+
// A terminal without an agent session acts in no session.
|
|
49
|
+
if (subject.agentSessionId === undefined)
|
|
50
|
+
return { id: callerArg.auditPeerId, name: 'terminal', kind: 'worker', role: 'worker' };
|
|
51
|
+
const sessionId = `claude:${subject.agentSessionId}`;
|
|
52
|
+
return { id: sessionId, name: reportNameArg ?? ticketSessionLabels.claude, sessionId, kind: 'claude', role: 'worker' };
|
|
53
|
+
}
|
|
54
|
+
case 'runtime': return { id: callerArg.auditPeerId, name: ticketOpenCodeRuntimeName, kind: 'worker', role: 'worker' };
|
|
55
|
+
default: {
|
|
56
|
+
const exhaustive = subject;
|
|
57
|
+
throw new Error(`Unknown MCP caller subject ${exhaustive.kind}.`);
|
|
58
|
+
}
|
|
18
59
|
}
|
|
19
|
-
return { id: callerArg.auditPeerId, name: subject.kind, kind: 'worker', role: 'worker' };
|
|
20
60
|
};
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVuY3Rpb25zLnRpY2tldGFjdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vdHMvZnVuY3Rpb25zLnRpY2tldGFjdG9yLnRzIl0sIm5hbWVzIjpbXSwibW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DLENBQUMifQ==
|
|
@@ -49,7 +49,11 @@ export type TFlexSessionReversionInfo = plugins.flexharness.IFlexSessionReversio
|
|
|
49
49
|
export type TFlexTurnReversionFinalizedOutcome = plugins.flexharness.TFlexTurnReversionFinalizedOutcome;
|
|
50
50
|
export type TFlexTurnReversionCaptureInspectionV2 = plugins.flexharness.TFlexTurnReversionCaptureInspectionV2;
|
|
51
51
|
export type TFlexTurnReversionApplyInspection = plugins.flexharness.IFlexTurnReversionApplyInspection;
|
|
52
|
-
|
|
52
|
+
/** A session's identity as its project's metadata holds it, read without loading its history. */
|
|
53
|
+
export type TFlexSessionIdentity = plugins.flexharness.IFlexSessionIdentity;
|
|
54
|
+
/** What one FlexHarness load of a project's sessions took. */
|
|
55
|
+
export type TFlexScopeLoadMetrics = plugins.flexharness.IFlexScopeLoadMetrics;
|
|
56
|
+
export declare const flexIpcProtocolVersion: 40;
|
|
53
57
|
/**
|
|
54
58
|
* The installation's own Flex runs, which belong to no project: the configuration projection's adapting run, and
|
|
55
59
|
* Session Intelligence over a session outside every project.
|
|
@@ -74,6 +78,8 @@ export declare const flexIpcMaximumPromptPayloadBytes: number;
|
|
|
74
78
|
export declare const flexIpcMaximumPromptQueueEntries = 128;
|
|
75
79
|
export declare const flexIpcMaximumQueuedSessionChanges = 256;
|
|
76
80
|
export declare const flexIpcMaximumQueuedSessionChangeBytes: number;
|
|
81
|
+
/** The most sessions one project's `session.identities` answer names; more is refused, never cut. */
|
|
82
|
+
export declare const flexIpcMaximumSessionIdentities = 2048;
|
|
77
83
|
export declare const flexGenerationLeaseCleanupTimeoutMs = 30000;
|
|
78
84
|
export declare const flexIpcControlTimeoutMs = 35000;
|
|
79
85
|
export declare const flexIpcMaximumHostTimeoutMs: number;
|
|
@@ -688,10 +694,9 @@ export interface IFlexModelChoice {
|
|
|
688
694
|
export interface IFlexJobAdmission {
|
|
689
695
|
jobId: string;
|
|
690
696
|
}
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
truncated: boolean;
|
|
697
|
+
/** Every session of a project, ordered by `sessionId` (UTF-16 code units), in one answer. */
|
|
698
|
+
export interface IFlexSessionIdentitiesResult {
|
|
699
|
+
sessions: TFlexSessionIdentity[];
|
|
695
700
|
}
|
|
696
701
|
export type TFlexSlashExecutionResult = plugins.flexharness.IFlexSlashCommandNotCommandResult | plugins.flexharness.IFlexSlashCommandMalformedResult | plugins.flexharness.IFlexSlashCommandUnknownResult | plugins.flexharness.IFlexSlashCommandOperationResult | plugins.flexharness.IFlexSlashCommandHandlerResult | {
|
|
697
702
|
type: 'prompt-admission';
|
|
@@ -773,13 +778,16 @@ export interface IFlexRequestMap {
|
|
|
773
778
|
request: IFlexConfigurationAdaptationRequest;
|
|
774
779
|
response: IFlexConfigurationAdaptationResult;
|
|
775
780
|
};
|
|
776
|
-
|
|
781
|
+
/**
|
|
782
|
+
* The identities of a project's sessions, from its metadata: never waits for a load of their
|
|
783
|
+
* histories, so the controller's identity reconciliation after `project.register` stays within
|
|
784
|
+
* its control budget however long the project's history is (AGL-1713).
|
|
785
|
+
*/
|
|
786
|
+
'session.identities': {
|
|
777
787
|
request: {
|
|
778
788
|
scopeId: string;
|
|
779
|
-
offset?: number;
|
|
780
|
-
limit?: number;
|
|
781
789
|
};
|
|
782
|
-
response:
|
|
790
|
+
response: IFlexSessionIdentitiesResult;
|
|
783
791
|
};
|
|
784
792
|
'session.create': {
|
|
785
793
|
request: {
|