agl 43.0.5 → 43.2.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 +30 -0
- package/dist_serve/bundle.js +5996 -5280
- package/dist_serve/bundle.js.map +2 -2
- package/dist_serve/bundle.js.third-party-notices.json +30 -30
- package/dist_serve/bundle.js.third-party-notices.txt +30 -30
- package/dist_serve/third-party-notices.md +1 -1
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/aglapi/aglapisurface.document.js +805 -10
- package/dist_ts/aglapi/interfaces.d.ts +13 -0
- package/dist_ts/aglapi/interfaces.js +4 -1
- package/dist_ts/classes.authmodels.js +17 -4
- package/dist_ts/classes.authstore.js +16 -2
- package/dist_ts/classes.claudeharness.d.ts +14 -5
- package/dist_ts/classes.claudeharness.js +62 -2
- package/dist_ts/classes.cli.d.ts +4 -2
- package/dist_ts/classes.cli.js +6 -3
- package/dist_ts/classes.codexclientadapter.d.ts +7 -5
- package/dist_ts/classes.codexclientadapter.js +38 -3
- package/dist_ts/classes.controller.d.ts +19 -2
- package/dist_ts/classes.controller.js +234 -27
- package/dist_ts/classes.controllermanagement.d.ts +14 -4
- package/dist_ts/classes.controllermanagement.js +20 -2
- package/dist_ts/classes.gatewayclient.d.ts +115 -0
- package/dist_ts/classes.gatewayclient.js +336 -0
- package/dist_ts/classes.gatewayclientstore.d.ts +97 -0
- package/dist_ts/classes.gatewayclientstore.js +261 -0
- package/dist_ts/classes.inferencegateway.d.ts +8 -5
- package/dist_ts/classes.inferencegateway.js +62 -19
- package/dist_ts/classes.inferencerouter.d.ts +9 -0
- package/dist_ts/classes.inferencerouter.js +11 -1
- package/dist_ts/classes.inferenceservice.d.ts +9 -0
- package/dist_ts/classes.inferenceservice.js +27 -1
- package/dist_ts/classes.inferencespend.d.ts +9 -3
- package/dist_ts/classes.inferencespend.js +44 -16
- package/dist_ts/classes.mcpclient.d.ts +9 -4
- package/dist_ts/classes.mcpclient.js +24 -2
- package/dist_ts/classes.mcpcontrollerhost.d.ts +3 -1
- package/dist_ts/classes.mcpcontrollerhost.js +13 -1
- package/dist_ts/classes.mcptools.d.ts +3 -3
- package/dist_ts/classes.mcptools.js +42 -4
- package/dist_ts/classes.mcpvalidation.js +7 -1
- package/dist_ts/classes.opencodeclient.js +3 -1
- package/dist_ts/classes.proxycontrol.d.ts +33 -11
- package/dist_ts/classes.proxycontrol.js +12 -3
- package/dist_ts/classes.proxycontrolclient.d.ts +23 -5
- package/dist_ts/classes.proxycontrolclient.js +42 -6
- package/dist_ts/classes.proxydaemon.d.ts +8 -6
- package/dist_ts/classes.proxydaemon.js +42 -21
- package/dist_ts/classes.proxyleaseholder.d.ts +12 -4
- package/dist_ts/classes.proxyleaseholder.js +39 -9
- package/dist_ts/classes.proxymonitor.d.ts +7 -0
- package/dist_ts/classes.proxymonitor.js +13 -1
- package/dist_ts/classes.proxystore.d.ts +4 -3
- package/dist_ts/classes.proxystore.js +17 -7
- package/dist_ts/classes.sessionfeed.d.ts +1 -1
- package/dist_ts/classes.trustedproxysecrets.d.ts +2 -0
- package/dist_ts/classes.trustedproxysecrets.js +5 -1
- package/dist_ts/classes.validation.d.ts +7 -0
- package/dist_ts/classes.validation.js +49 -2
- package/dist_ts/driver/functions.drivertools.js +2 -2
- package/dist_ts/fleet/classes.codexworkers.d.ts +4 -11
- package/dist_ts/fleet/classes.codexworkers.js +6 -3
- package/dist_ts/fleet/classes.workers.d.ts +25 -13
- package/dist_ts/fleet/classes.workers.js +105 -9
- package/dist_ts/fleet/functions.workervalidation.d.ts +26 -1
- package/dist_ts/fleet/functions.workervalidation.js +40 -11
- package/dist_ts/fleet/interfaces.workers.d.ts +17 -11
- package/dist_ts/fleet/interfaces.workers.js +10 -1
- package/dist_ts/functions.confinedrelay.d.ts +21 -0
- package/dist_ts/functions.confinedrelay.js +65 -0
- package/dist_ts/functions.controllermanagementsurface.d.ts +4 -0
- package/dist_ts/functions.controllermanagementsurface.js +15 -1
- package/dist_ts/functions.deviceapi.d.ts +4 -2
- package/dist_ts/functions.deviceapi.js +20 -2
- package/dist_ts/functions.elicitation.d.ts +49 -0
- package/dist_ts/functions.elicitation.js +418 -0
- package/dist_ts/functions.gatewaycli.d.ts +24 -0
- package/dist_ts/functions.gatewaycli.js +395 -0
- package/dist_ts/functions.gatewayroute.d.ts +135 -0
- package/dist_ts/functions.gatewayroute.js +366 -0
- package/dist_ts/functions.inferencecli.d.ts +3 -3
- package/dist_ts/functions.inferencecli.js +62 -10
- package/dist_ts/functions.inferencecliarguments.d.ts +9 -2
- package/dist_ts/functions.inferencecliarguments.js +59 -10
- package/dist_ts/functions.inferencelaunch.d.ts +35 -7
- package/dist_ts/functions.inferencelaunch.js +143 -16
- package/dist_ts/functions.mcpfleetworkertools.d.ts +63 -70
- package/dist_ts/functions.mcpfleetworkertools.js +32 -4
- package/dist_ts/functions.proxycapacity.d.ts +50 -0
- package/dist_ts/functions.proxycapacity.js +142 -0
- package/dist_ts/functions.proxycapacitycli.d.ts +30 -0
- package/dist_ts/functions.proxycapacitycli.js +65 -0
- package/dist_ts/functions.proxycontract.d.ts +21 -4
- package/dist_ts/functions.proxycontract.js +12 -5
- package/dist_ts/functions.proxyharnessconfig.d.ts +7 -0
- package/dist_ts/functions.proxyharnessconfig.js +11 -1
- package/dist_ts/functions.remotecli.d.ts +30 -3
- package/dist_ts/functions.remotecli.js +44 -18
- package/dist_ts/interfaces.auth.d.ts +25 -4
- package/dist_ts/interfaces.auth.js +8 -1
- package/dist_ts/plugins.d.ts +2 -0
- package/dist_ts/plugins.js +4 -1
- package/dist_ts_authswitch/authority-placement.js +3 -17
- package/dist_ts_authswitch/authority-usagelimit.d.ts +29 -0
- package/dist_ts_authswitch/authority-usagelimit.js +66 -2
- package/dist_ts_authswitch/authority-usagewindows.d.ts +6 -0
- package/dist_ts_authswitch/authority-usagewindows.js +15 -1
- package/dist_ts_interfaces/devices.d.ts +133 -3
- package/dist_ts_interfaces/devices.js +3 -2
- package/dist_ts_interfaces/elicitations.d.ts +125 -0
- package/dist_ts_interfaces/elicitations.js +7 -0
- package/dist_ts_interfaces/fleetworkers.d.ts +119 -5
- package/dist_ts_interfaces/fleetworkers.js +14 -2
- package/dist_ts_interfaces/gateway.d.ts +151 -0
- package/dist_ts_interfaces/gateway.js +66 -0
- package/dist_ts_interfaces/index.d.ts +3 -0
- package/dist_ts_interfaces/index.js +4 -1
- package/dist_ts_interfaces/interfaces.d.ts +3 -1
- package/dist_ts_interfaces/interfaces.js +2 -2
- package/dist_ts_interfaces/management.d.ts +4 -4
- package/dist_ts_interfaces/management.js +3 -2
- package/dist_ts_interfaces/mcprequests.d.ts +18 -2
- package/dist_ts_interfaces/mcprequests.js +3 -1
- package/dist_ts_interfaces/nativesessions.d.ts +14 -0
- package/dist_ts_interfaces/proxycapacity.d.ts +99 -0
- package/dist_ts_interfaces/proxycapacity.js +74 -0
- package/dist_ts_interfaces/requests.d.ts +3 -3
- package/dist_ts_interfaces/requests.fleetworkers.js +2 -2
- package/dist_ts_interfaces/requests.js +1 -1
- package/dist_ts_interfaces/requests.promptreply.d.ts +18 -0
- package/dist_ts_interfaces/sessionfeed.d.ts +3 -2
- package/dist_ts_interfaces/sessionfeed.js +1 -1
- package/package.json +5 -4
- package/readme.md +267 -26
- package/third-party-notices.md +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/aglapi/aglapisurface.document.ts +804 -9
- package/ts/aglapi/interfaces.ts +3 -0
- package/ts/classes.authmodels.ts +22 -3
- package/ts/classes.authstore.ts +15 -1
- package/ts/classes.claudeharness.ts +80 -9
- package/ts/classes.cli.ts +7 -3
- package/ts/classes.codexclientadapter.ts +41 -5
- package/ts/classes.controller.ts +276 -32
- package/ts/classes.controllermanagement.ts +40 -7
- package/ts/classes.gatewayclient.ts +401 -0
- package/ts/classes.gatewayclientstore.ts +272 -0
- package/ts/classes.inferencegateway.ts +69 -23
- package/ts/classes.inferencerouter.ts +12 -0
- package/ts/classes.inferenceservice.ts +27 -0
- package/ts/classes.inferencespend.ts +46 -13
- package/ts/classes.mcpclient.ts +26 -4
- package/ts/classes.mcpcontrollerhost.ts +17 -0
- package/ts/classes.mcptools.ts +47 -5
- package/ts/classes.mcpvalidation.ts +5 -0
- package/ts/classes.opencodeclient.ts +2 -0
- package/ts/classes.proxycontrol.ts +43 -13
- package/ts/classes.proxycontrolclient.ts +39 -6
- package/ts/classes.proxydaemon.ts +57 -27
- package/ts/classes.proxyleaseholder.ts +43 -11
- package/ts/classes.proxymonitor.ts +12 -0
- package/ts/classes.proxystore.ts +21 -8
- package/ts/classes.sessionfeed.ts +1 -1
- package/ts/classes.trustedproxysecrets.ts +5 -0
- package/ts/classes.validation.ts +52 -0
- package/ts/driver/functions.drivertools.ts +1 -1
- package/ts/fleet/classes.codexworkers.ts +8 -6
- package/ts/fleet/classes.workers.ts +101 -17
- package/ts/fleet/functions.workervalidation.ts +35 -9
- package/ts/fleet/interfaces.workers.ts +11 -4
- package/ts/functions.confinedrelay.ts +65 -0
- package/ts/functions.controllermanagementsurface.ts +15 -0
- package/ts/functions.deviceapi.ts +24 -1
- package/ts/functions.elicitation.ts +443 -0
- package/ts/functions.gatewaycli.ts +436 -0
- package/ts/functions.gatewayroute.ts +429 -0
- package/ts/functions.inferencecli.ts +62 -13
- package/ts/functions.inferencecliarguments.ts +56 -9
- package/ts/functions.inferencelaunch.ts +143 -16
- package/ts/functions.mcpfleetworkertools.ts +34 -4
- package/ts/functions.proxycapacity.ts +191 -0
- package/ts/functions.proxycapacitycli.ts +104 -0
- package/ts/functions.proxycontract.ts +17 -4
- package/ts/functions.proxyharnessconfig.ts +11 -0
- package/ts/functions.remotecli.ts +56 -20
- package/ts/interfaces.auth.ts +29 -4
- package/ts/plugins.ts +5 -0
- package/ts_authswitch/authority-placement.ts +2 -15
- package/ts_authswitch/authority-usagelimit.ts +84 -1
- package/ts_authswitch/authority-usagewindows.ts +13 -0
- package/ts_interfaces/devices.schema.json +476 -2
- package/ts_interfaces/devices.ts +146 -2
- package/ts_interfaces/elicitations.ts +148 -0
- package/ts_interfaces/fleetworkers.ts +96 -4
- package/ts_interfaces/gateway.ts +242 -0
- package/ts_interfaces/index.ts +3 -0
- package/ts_interfaces/interfaces.ts +3 -1
- package/ts_interfaces/management.ts +6 -4
- package/ts_interfaces/mcprequests.ts +19 -0
- package/ts_interfaces/nativesessions.ts +16 -0
- package/ts_interfaces/proxycapacity.ts +162 -0
- package/ts_interfaces/requests.fleetworkers.ts +1 -1
- package/ts_interfaces/requests.promptreply.ts +22 -0
- package/ts_interfaces/requests.ts +4 -0
- package/ts_interfaces/sessionfeed.ts +3 -2
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/classes.browserpresentation.ts +13 -5
- package/ts_web/classes.elicitationcards.ts +106 -0
- package/ts_web/classes.nativesessionstate.ts +38 -1
- package/ts_web/elements.accounts.ts +40 -113
- package/ts_web/elements.configurationpane.ts +24 -37
- package/ts_web/elements.devices.ts +4 -17
- package/ts_web/elements.fleetworker.ts +27 -2
- package/ts_web/elements.flexlimitstrip.ts +21 -70
- package/ts_web/elements.harnesscontrollerapp.ts +159 -186
- package/ts_web/functions.sessionchat.ts +5 -0
|
@@ -478,6 +478,20 @@ export const AGL_API_SURFACE: plugins.flexTypedRequest.IFlexTypedRequestSurface
|
|
|
478
478
|
},
|
|
479
479
|
"declaration": "/**\n * Lists the projects registered with the running AGL controller.\n */\nfunction agl_mcp_projects_list(params?: Record<string, never>): Promise<{ projects: IControllerProject[] }>;"
|
|
480
480
|
},
|
|
481
|
+
{
|
|
482
|
+
"method": "agl.mcp.proxy.capacity",
|
|
483
|
+
"path": "agl.agl_mcp_proxy_capacity",
|
|
484
|
+
"summary": "A pool's room for new work in AGL's inference proxy, or both pools' when `provider` is absent: each counted account by …",
|
|
485
|
+
"description": "A pool's room for new work in AGL's inference proxy, or both pools' when `provider` is absent: each counted account by\nits id with its plan, state, headroom, binding window and when its headroom next grows, the newest provider 429 on\nthe pool, and an `open` or `wait` verdict against `minHeadroom` (15 unless given). The controller asks the proxy; the\nanswer names no account by label or email.",
|
|
486
|
+
"omitted": [],
|
|
487
|
+
"inputSchema": {
|
|
488
|
+
"$ref": "#/$defs/IProxyCapacityRequest"
|
|
489
|
+
},
|
|
490
|
+
"outputSchema": {
|
|
491
|
+
"$ref": "#/$defs/IProxyCapacityAnswer"
|
|
492
|
+
},
|
|
493
|
+
"declaration": "/**\n * A pool's room for new work in AGL's inference proxy, or both pools' when `provider` is absent: each counted account by\n * its id with its plan, state, headroom, binding window and when its headroom next grows, the newest provider 429 on\n * the pool, and an `open` or `wait` verdict against `minHeadroom` (15 unless given). The controller asks the proxy; the\n * answer names no account by label or email.\n */\nfunction agl_mcp_proxy_capacity(params?: IProxyCapacityRequest): Promise<IProxyCapacityAnswer>;"
|
|
494
|
+
},
|
|
481
495
|
{
|
|
482
496
|
"method": "agl.mcp.resource.attach",
|
|
483
497
|
"path": "agl.agl_mcp_resource_attach",
|
|
@@ -2375,13 +2389,421 @@ export const AGL_API_SURFACE: plugins.flexTypedRequest.IFlexTypedRequestSurface
|
|
|
2375
2389
|
"source"
|
|
2376
2390
|
],
|
|
2377
2391
|
"additionalProperties": false,
|
|
2378
|
-
"description": "The model a new conversation of one harness runs on when no model is chosen for it, as the controller resolves it against the harness's live model list. `settings`: the default stored in Settings, which the harness offers now. `harness`: the harness's own default (OpenCode's and Codex's configured model, or the catalog default of the Flex account placement chose), because no default is stored or the stored one is not offered; `unavailableSetting` then names the stored one. `model` is absent only beside `unavailableSetting`, while the harness offers no default AGL can name: a new conversation then runs on the harness's own default, sent unnamed."
|
|
2392
|
+
"description": "The model a new conversation of one harness runs on when no model is chosen for it, as the controller resolves it against the harness's live model list. `settings`: the default stored in Settings, which the harness offers now. `harness`: the harness's own default (OpenCode's and Codex's configured model, or the catalog default of the Flex account placement chose), because no default is stored or the stored one is not offered; `unavailableSetting` then names the stored one. `model` is absent only beside `unavailableSetting`, while the harness offers no default AGL can name: a new conversation then runs on the harness's own default, sent unnamed."
|
|
2393
|
+
},
|
|
2394
|
+
"declaration": "/**\n * The model a new conversation of one harness runs on when no model is chosen for it, as the\n * controller resolves it against the harness's live model list. `settings`: the default stored in\n * Settings, which the harness offers now. `harness`: the harness's own default (OpenCode's and\n * Codex's configured model, or the catalog default of the Flex account placement chose), because no\n * default is stored or the stored one is not offered; `unavailableSetting` then names the stored one.\n * `model` is absent only beside `unavailableSetting`, while the harness offers no default AGL can\n * name: a new conversation then runs on the harness's own default, sent unnamed.\n */\ninterface IControllerDefaultModel {\n model?: TControllerModelChoice;\n /** Flex: the account AGL's account placement chose for the model. */\n providerConnectionId?: string;\n source: 'settings' | 'harness';\n unavailableSetting?: TControllerModelChoice;\n}"
|
|
2395
|
+
},
|
|
2396
|
+
{
|
|
2397
|
+
"name": "IControllerDraftAttachment",
|
|
2398
|
+
"declaration": "interface IControllerDraftAttachment {\n id: string;\n name: string;\n mediaType: string;\n size: number;\n kind: 'image' | 'text' | 'binary';\n dataBase64: string;\n}"
|
|
2399
|
+
},
|
|
2400
|
+
{
|
|
2401
|
+
"name": "IControllerElicitationBase",
|
|
2402
|
+
"declaration": "/** What every elicitation card carries, whatever it asks for. */\ninterface IControllerElicitationBase {\n id: IControllerRuntimeId;\n sessionId: IControllerRuntimeId;\n /** The MCP server that asks, as the harness names it. */\n serverName: string;\n /** What the server asks, in its words. */\n message: string;\n createdAt: number;\n}"
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
"name": "IControllerElicitationBooleanField",
|
|
2406
|
+
"schema": {
|
|
2407
|
+
"type": "object",
|
|
2408
|
+
"properties": {
|
|
2409
|
+
"name": {
|
|
2410
|
+
"type": "string",
|
|
2411
|
+
"description": "The property name the answer carries the value under."
|
|
2412
|
+
},
|
|
2413
|
+
"title": {
|
|
2414
|
+
"type": "string"
|
|
2415
|
+
},
|
|
2416
|
+
"description": {
|
|
2417
|
+
"type": "string"
|
|
2418
|
+
},
|
|
2419
|
+
"required": {
|
|
2420
|
+
"type": "boolean",
|
|
2421
|
+
"description": "The answer must carry a value for it."
|
|
2422
|
+
},
|
|
2423
|
+
"kind": {
|
|
2424
|
+
"type": "string",
|
|
2425
|
+
"const": "boolean"
|
|
2426
|
+
},
|
|
2427
|
+
"default": {
|
|
2428
|
+
"type": "boolean"
|
|
2429
|
+
}
|
|
2430
|
+
},
|
|
2431
|
+
"required": [
|
|
2432
|
+
"kind",
|
|
2433
|
+
"name",
|
|
2434
|
+
"required"
|
|
2435
|
+
],
|
|
2436
|
+
"additionalProperties": false
|
|
2437
|
+
},
|
|
2438
|
+
"declaration": "interface IControllerElicitationBooleanField extends IControllerElicitationFieldBase {\n kind: 'boolean';\n default?: boolean;\n}"
|
|
2439
|
+
},
|
|
2440
|
+
{
|
|
2441
|
+
"name": "IControllerElicitationChoiceField",
|
|
2442
|
+
"schema": {
|
|
2443
|
+
"type": "object",
|
|
2444
|
+
"properties": {
|
|
2445
|
+
"name": {
|
|
2446
|
+
"type": "string",
|
|
2447
|
+
"description": "The property name the answer carries the value under."
|
|
2448
|
+
},
|
|
2449
|
+
"title": {
|
|
2450
|
+
"type": "string"
|
|
2451
|
+
},
|
|
2452
|
+
"description": {
|
|
2453
|
+
"type": "string"
|
|
2454
|
+
},
|
|
2455
|
+
"required": {
|
|
2456
|
+
"type": "boolean",
|
|
2457
|
+
"description": "The answer must carry a value for it."
|
|
2458
|
+
},
|
|
2459
|
+
"kind": {
|
|
2460
|
+
"type": "string",
|
|
2461
|
+
"const": "choice"
|
|
2462
|
+
},
|
|
2463
|
+
"options": {
|
|
2464
|
+
"type": "array",
|
|
2465
|
+
"items": {
|
|
2466
|
+
"$ref": "#/$defs/IControllerElicitationOption"
|
|
2467
|
+
}
|
|
2468
|
+
},
|
|
2469
|
+
"default": {
|
|
2470
|
+
"type": "string"
|
|
2471
|
+
}
|
|
2472
|
+
},
|
|
2473
|
+
"required": [
|
|
2474
|
+
"kind",
|
|
2475
|
+
"name",
|
|
2476
|
+
"options",
|
|
2477
|
+
"required"
|
|
2478
|
+
],
|
|
2479
|
+
"additionalProperties": false,
|
|
2480
|
+
"description": "A single choice among strings."
|
|
2481
|
+
},
|
|
2482
|
+
"declaration": "/** A single choice among strings. */\ninterface IControllerElicitationChoiceField extends IControllerElicitationFieldBase {\n kind: 'choice';\n options: IControllerElicitationOption[];\n default?: string;\n}"
|
|
2483
|
+
},
|
|
2484
|
+
{
|
|
2485
|
+
"name": "IControllerElicitationChoicesField",
|
|
2486
|
+
"schema": {
|
|
2487
|
+
"type": "object",
|
|
2488
|
+
"properties": {
|
|
2489
|
+
"name": {
|
|
2490
|
+
"type": "string",
|
|
2491
|
+
"description": "The property name the answer carries the value under."
|
|
2492
|
+
},
|
|
2493
|
+
"title": {
|
|
2494
|
+
"type": "string"
|
|
2495
|
+
},
|
|
2496
|
+
"description": {
|
|
2497
|
+
"type": "string"
|
|
2498
|
+
},
|
|
2499
|
+
"required": {
|
|
2500
|
+
"type": "boolean",
|
|
2501
|
+
"description": "The answer must carry a value for it."
|
|
2502
|
+
},
|
|
2503
|
+
"kind": {
|
|
2504
|
+
"type": "string",
|
|
2505
|
+
"const": "choices"
|
|
2506
|
+
},
|
|
2507
|
+
"options": {
|
|
2508
|
+
"type": "array",
|
|
2509
|
+
"items": {
|
|
2510
|
+
"$ref": "#/$defs/IControllerElicitationOption"
|
|
2511
|
+
}
|
|
2512
|
+
},
|
|
2513
|
+
"minItems": {
|
|
2514
|
+
"type": "number"
|
|
2515
|
+
},
|
|
2516
|
+
"maxItems": {
|
|
2517
|
+
"type": "number"
|
|
2518
|
+
},
|
|
2519
|
+
"default": {
|
|
2520
|
+
"type": "array",
|
|
2521
|
+
"items": {
|
|
2522
|
+
"type": "string"
|
|
2523
|
+
}
|
|
2524
|
+
}
|
|
2525
|
+
},
|
|
2526
|
+
"required": [
|
|
2527
|
+
"kind",
|
|
2528
|
+
"name",
|
|
2529
|
+
"options",
|
|
2530
|
+
"required"
|
|
2531
|
+
],
|
|
2532
|
+
"additionalProperties": false,
|
|
2533
|
+
"description": "Several choices among strings, each at most once."
|
|
2534
|
+
},
|
|
2535
|
+
"declaration": "/** Several choices among strings, each at most once. */\ninterface IControllerElicitationChoicesField extends IControllerElicitationFieldBase {\n kind: 'choices';\n options: IControllerElicitationOption[];\n minItems?: number;\n maxItems?: number;\n default?: string[];\n}"
|
|
2536
|
+
},
|
|
2537
|
+
{
|
|
2538
|
+
"name": "IControllerElicitationFieldBase",
|
|
2539
|
+
"declaration": "interface IControllerElicitationFieldBase {\n /** The property name the answer carries the value under. */\n name: string;\n title?: string;\n description?: string;\n /** The answer must carry a value for it. */\n required: boolean;\n}"
|
|
2540
|
+
},
|
|
2541
|
+
{
|
|
2542
|
+
"name": "IControllerElicitationForm",
|
|
2543
|
+
"schema": {
|
|
2544
|
+
"type": "object",
|
|
2545
|
+
"properties": {
|
|
2546
|
+
"id": {
|
|
2547
|
+
"$ref": "#/$defs/IControllerRuntimeId"
|
|
2548
|
+
},
|
|
2549
|
+
"sessionId": {
|
|
2550
|
+
"$ref": "#/$defs/IControllerRuntimeId"
|
|
2551
|
+
},
|
|
2552
|
+
"serverName": {
|
|
2553
|
+
"type": "string",
|
|
2554
|
+
"description": "The MCP server that asks, as the harness names it."
|
|
2555
|
+
},
|
|
2556
|
+
"message": {
|
|
2557
|
+
"type": "string",
|
|
2558
|
+
"description": "What the server asks, in its words."
|
|
2559
|
+
},
|
|
2560
|
+
"createdAt": {
|
|
2561
|
+
"type": "number"
|
|
2562
|
+
},
|
|
2563
|
+
"mode": {
|
|
2564
|
+
"type": "string",
|
|
2565
|
+
"const": "form"
|
|
2566
|
+
},
|
|
2567
|
+
"schema": {
|
|
2568
|
+
"$ref": "#/$defs/IControllerElicitationSchema"
|
|
2569
|
+
}
|
|
2570
|
+
},
|
|
2571
|
+
"required": [
|
|
2572
|
+
"createdAt",
|
|
2573
|
+
"id",
|
|
2574
|
+
"message",
|
|
2575
|
+
"mode",
|
|
2576
|
+
"schema",
|
|
2577
|
+
"serverName",
|
|
2578
|
+
"sessionId"
|
|
2579
|
+
],
|
|
2580
|
+
"additionalProperties": false,
|
|
2581
|
+
"description": "A form AGL collects on the card: every field the server asked for, in its order."
|
|
2582
|
+
},
|
|
2583
|
+
"declaration": "/** A form AGL collects on the card: every field the server asked for, in its order. */\ninterface IControllerElicitationForm extends IControllerElicitationBase {\n mode: 'form';\n schema: IControllerElicitationSchema;\n}"
|
|
2584
|
+
},
|
|
2585
|
+
{
|
|
2586
|
+
"name": "IControllerElicitationNumberField",
|
|
2587
|
+
"schema": {
|
|
2588
|
+
"type": "object",
|
|
2589
|
+
"properties": {
|
|
2590
|
+
"name": {
|
|
2591
|
+
"type": "string",
|
|
2592
|
+
"description": "The property name the answer carries the value under."
|
|
2593
|
+
},
|
|
2594
|
+
"title": {
|
|
2595
|
+
"type": "string"
|
|
2596
|
+
},
|
|
2597
|
+
"description": {
|
|
2598
|
+
"type": "string"
|
|
2599
|
+
},
|
|
2600
|
+
"required": {
|
|
2601
|
+
"type": "boolean",
|
|
2602
|
+
"description": "The answer must carry a value for it."
|
|
2603
|
+
},
|
|
2604
|
+
"kind": {
|
|
2605
|
+
"type": "string",
|
|
2606
|
+
"const": "number"
|
|
2607
|
+
},
|
|
2608
|
+
"integer": {
|
|
2609
|
+
"type": "boolean",
|
|
2610
|
+
"description": "Whole numbers only (JSON Schema `integer`)."
|
|
2611
|
+
},
|
|
2612
|
+
"minimum": {
|
|
2613
|
+
"type": "number",
|
|
2614
|
+
"description": "Inclusive bounds."
|
|
2615
|
+
},
|
|
2616
|
+
"maximum": {
|
|
2617
|
+
"type": "number"
|
|
2618
|
+
},
|
|
2619
|
+
"default": {
|
|
2620
|
+
"type": "number"
|
|
2621
|
+
}
|
|
2622
|
+
},
|
|
2623
|
+
"required": [
|
|
2624
|
+
"integer",
|
|
2625
|
+
"kind",
|
|
2626
|
+
"name",
|
|
2627
|
+
"required"
|
|
2628
|
+
],
|
|
2629
|
+
"additionalProperties": false
|
|
2630
|
+
},
|
|
2631
|
+
"declaration": "interface IControllerElicitationNumberField extends IControllerElicitationFieldBase {\n kind: 'number';\n /** Whole numbers only (JSON Schema `integer`). */\n integer: boolean;\n /** Inclusive bounds. */\n minimum?: number;\n maximum?: number;\n default?: number;\n}"
|
|
2632
|
+
},
|
|
2633
|
+
{
|
|
2634
|
+
"name": "IControllerElicitationOption",
|
|
2635
|
+
"schema": {
|
|
2636
|
+
"type": "object",
|
|
2637
|
+
"properties": {
|
|
2638
|
+
"value": {
|
|
2639
|
+
"type": "string"
|
|
2640
|
+
},
|
|
2641
|
+
"label": {
|
|
2642
|
+
"type": "string"
|
|
2643
|
+
}
|
|
2644
|
+
},
|
|
2645
|
+
"required": [
|
|
2646
|
+
"value",
|
|
2647
|
+
"label"
|
|
2648
|
+
],
|
|
2649
|
+
"additionalProperties": false,
|
|
2650
|
+
"description": "One choice: the value the answer carries, and the label the server gave it (its value when it gave none)."
|
|
2651
|
+
},
|
|
2652
|
+
"declaration": "/** One choice: the value the answer carries, and the label the server gave it (its value when it gave none). */\ninterface IControllerElicitationOption {\n value: string;\n label: string;\n}"
|
|
2653
|
+
},
|
|
2654
|
+
{
|
|
2655
|
+
"name": "IControllerElicitationSchema",
|
|
2656
|
+
"schema": {
|
|
2657
|
+
"type": "object",
|
|
2658
|
+
"properties": {
|
|
2659
|
+
"fields": {
|
|
2660
|
+
"type": "array",
|
|
2661
|
+
"items": {
|
|
2662
|
+
"$ref": "#/$defs/TControllerElicitationField"
|
|
2663
|
+
}
|
|
2664
|
+
}
|
|
2665
|
+
},
|
|
2666
|
+
"required": [
|
|
2667
|
+
"fields"
|
|
2668
|
+
],
|
|
2669
|
+
"additionalProperties": false,
|
|
2670
|
+
"description": "A form's fields in the order the server lists them."
|
|
2671
|
+
},
|
|
2672
|
+
"declaration": "/** A form's fields in the order the server lists them. */\ninterface IControllerElicitationSchema {\n fields: TControllerElicitationField[];\n}"
|
|
2673
|
+
},
|
|
2674
|
+
{
|
|
2675
|
+
"name": "IControllerElicitationTextField",
|
|
2676
|
+
"schema": {
|
|
2677
|
+
"type": "object",
|
|
2678
|
+
"properties": {
|
|
2679
|
+
"name": {
|
|
2680
|
+
"type": "string",
|
|
2681
|
+
"description": "The property name the answer carries the value under."
|
|
2682
|
+
},
|
|
2683
|
+
"title": {
|
|
2684
|
+
"type": "string"
|
|
2685
|
+
},
|
|
2686
|
+
"description": {
|
|
2687
|
+
"type": "string"
|
|
2688
|
+
},
|
|
2689
|
+
"required": {
|
|
2690
|
+
"type": "boolean",
|
|
2691
|
+
"description": "The answer must carry a value for it."
|
|
2692
|
+
},
|
|
2693
|
+
"kind": {
|
|
2694
|
+
"type": "string",
|
|
2695
|
+
"const": "text"
|
|
2696
|
+
},
|
|
2697
|
+
"format": {
|
|
2698
|
+
"$ref": "#/$defs/TControllerElicitationTextFormat"
|
|
2699
|
+
},
|
|
2700
|
+
"minLength": {
|
|
2701
|
+
"type": "number",
|
|
2702
|
+
"description": "In characters (Unicode code points), as JSON Schema counts them."
|
|
2703
|
+
},
|
|
2704
|
+
"maxLength": {
|
|
2705
|
+
"type": "number"
|
|
2706
|
+
},
|
|
2707
|
+
"default": {
|
|
2708
|
+
"type": "string"
|
|
2709
|
+
}
|
|
2710
|
+
},
|
|
2711
|
+
"required": [
|
|
2712
|
+
"kind",
|
|
2713
|
+
"name",
|
|
2714
|
+
"required"
|
|
2715
|
+
],
|
|
2716
|
+
"additionalProperties": false
|
|
2717
|
+
},
|
|
2718
|
+
"declaration": "interface IControllerElicitationTextField extends IControllerElicitationFieldBase {\n kind: 'text';\n format?: TControllerElicitationTextFormat;\n /** In characters (Unicode code points), as JSON Schema counts them. */\n minLength?: number;\n maxLength?: number;\n default?: string;\n}"
|
|
2719
|
+
},
|
|
2720
|
+
{
|
|
2721
|
+
"name": "IControllerElicitationUnsupported",
|
|
2722
|
+
"schema": {
|
|
2723
|
+
"type": "object",
|
|
2724
|
+
"properties": {
|
|
2725
|
+
"id": {
|
|
2726
|
+
"$ref": "#/$defs/IControllerRuntimeId"
|
|
2727
|
+
},
|
|
2728
|
+
"sessionId": {
|
|
2729
|
+
"$ref": "#/$defs/IControllerRuntimeId"
|
|
2730
|
+
},
|
|
2731
|
+
"serverName": {
|
|
2732
|
+
"type": "string",
|
|
2733
|
+
"description": "The MCP server that asks, as the harness names it."
|
|
2734
|
+
},
|
|
2735
|
+
"message": {
|
|
2736
|
+
"type": "string",
|
|
2737
|
+
"description": "What the server asks, in its words."
|
|
2738
|
+
},
|
|
2739
|
+
"createdAt": {
|
|
2740
|
+
"type": "number"
|
|
2741
|
+
},
|
|
2742
|
+
"mode": {
|
|
2743
|
+
"type": "string",
|
|
2744
|
+
"const": "unsupported"
|
|
2745
|
+
},
|
|
2746
|
+
"reason": {
|
|
2747
|
+
"type": "string"
|
|
2748
|
+
}
|
|
2749
|
+
},
|
|
2750
|
+
"required": [
|
|
2751
|
+
"createdAt",
|
|
2752
|
+
"id",
|
|
2753
|
+
"message",
|
|
2754
|
+
"mode",
|
|
2755
|
+
"reason",
|
|
2756
|
+
"serverName",
|
|
2757
|
+
"sessionId"
|
|
2758
|
+
],
|
|
2759
|
+
"additionalProperties": false,
|
|
2760
|
+
"description": "A request AGL cannot collect (another mode, a nested or otherwise unknown field, a form too large to show), with the reason in AGL's words. Only decline or cancel answer it; it is never answered for the owner."
|
|
2761
|
+
},
|
|
2762
|
+
"declaration": "/**\n * A request AGL cannot collect (another mode, a nested or otherwise unknown field, a form too large to show), with\n * the reason in AGL's words. Only decline or cancel answer it; it is never answered for the owner.\n */\ninterface IControllerElicitationUnsupported extends IControllerElicitationBase {\n mode: 'unsupported';\n reason: string;\n}"
|
|
2763
|
+
},
|
|
2764
|
+
{
|
|
2765
|
+
"name": "IControllerElicitationUrl",
|
|
2766
|
+
"schema": {
|
|
2767
|
+
"type": "object",
|
|
2768
|
+
"properties": {
|
|
2769
|
+
"id": {
|
|
2770
|
+
"$ref": "#/$defs/IControllerRuntimeId"
|
|
2771
|
+
},
|
|
2772
|
+
"sessionId": {
|
|
2773
|
+
"$ref": "#/$defs/IControllerRuntimeId"
|
|
2774
|
+
},
|
|
2775
|
+
"serverName": {
|
|
2776
|
+
"type": "string",
|
|
2777
|
+
"description": "The MCP server that asks, as the harness names it."
|
|
2778
|
+
},
|
|
2779
|
+
"message": {
|
|
2780
|
+
"type": "string",
|
|
2781
|
+
"description": "What the server asks, in its words."
|
|
2782
|
+
},
|
|
2783
|
+
"createdAt": {
|
|
2784
|
+
"type": "number"
|
|
2785
|
+
},
|
|
2786
|
+
"mode": {
|
|
2787
|
+
"type": "string",
|
|
2788
|
+
"const": "url"
|
|
2789
|
+
},
|
|
2790
|
+
"url": {
|
|
2791
|
+
"type": "string"
|
|
2792
|
+
}
|
|
2793
|
+
},
|
|
2794
|
+
"required": [
|
|
2795
|
+
"createdAt",
|
|
2796
|
+
"id",
|
|
2797
|
+
"message",
|
|
2798
|
+
"mode",
|
|
2799
|
+
"serverName",
|
|
2800
|
+
"sessionId",
|
|
2801
|
+
"url"
|
|
2802
|
+
],
|
|
2803
|
+
"additionalProperties": false,
|
|
2804
|
+
"description": "The server asks the owner to visit `url`, which AGL shows as plain text and never opens or fetches; accepting reports that the owner has done it and carries no content."
|
|
2379
2805
|
},
|
|
2380
|
-
"declaration": "/**\n * The
|
|
2381
|
-
},
|
|
2382
|
-
{
|
|
2383
|
-
"name": "IControllerDraftAttachment",
|
|
2384
|
-
"declaration": "interface IControllerDraftAttachment {\n id: string;\n name: string;\n mediaType: string;\n size: number;\n kind: 'image' | 'text' | 'binary';\n dataBase64: string;\n}"
|
|
2806
|
+
"declaration": "/**\n * The server asks the owner to visit `url`, which AGL shows as plain text and never opens or fetches; accepting\n * reports that the owner has done it and carries no content.\n */\ninterface IControllerElicitationUrl extends IControllerElicitationBase {\n mode: 'url';\n url: string;\n}"
|
|
2385
2807
|
},
|
|
2386
2808
|
{
|
|
2387
2809
|
"name": "IControllerFlexAccountLimits",
|
|
@@ -3637,7 +4059,7 @@ export const AGL_API_SURFACE: plugins.flexTypedRequest.IFlexTypedRequestSurface
|
|
|
3637
4059
|
},
|
|
3638
4060
|
{
|
|
3639
4061
|
"name": "IControllerSessionDetail",
|
|
3640
|
-
"declaration": "interface IControllerSessionDetail {\n /** Native Codex observations from this connection; modelChoice remains the user preference. */\n codexActivity?: IControllerCodexActivity;\n session: IControllerSession;\n messagePage: IControllerMessagePage;\n pendingPrompts: IControllerPendingPrompt[];\n permissions: IControllerPermission[];\n questions: IControllerQuestion[];\n todos: IControllerTodo[];\n scratchpad: IControllerSessionScratchpad;\n intelligenceExchanges: IControllerIntelligenceExchange[];\n /** Effective auto-accept state for this chat: its own yolo switch or the global setting. */\n autoAcceptPermissions?: boolean;\n /** Durable per-session choice; the harness default applies when absent. */\n modelChoice?: TControllerModelChoice;\n /** Exact Flex provider account selected for this session, separate from model identity. */\n providerConnectionId?: string;\n /** Durable per-session behaviour once a limit that holds its prompts resets (Flex). */\n limitResume?: IControllerLimitResumeOptions;\n /** Flex session override; absent means the model's catalog default. */\n contextCompaction?: TControllerContextCompaction;\n /**\n * The Flex provider account this session runs on, with the account limits the controller last read\n * for it from the accounts service.\n */\n flexAccountLimits?: IControllerFlexAccountLimits;\n /** \"providerID/modelID\" that answered most recently in this chat. */\n model?: string;\n /** Model variant (reasoning effort) of the most recent answer. */\n effort?: string;\n /** Latest live-tool cursor covered by this authoritative harness snapshot. */\n toolStreamCursor: IControllerToolStreamCursor;\n /** Latest live Assistant text/reasoning cursor covered by this snapshot. */\n messageStreamCursor: IControllerMessageStreamCursor;\n /** The runtime the conversation runs on; browser session reads only. */\n runtime?: IControllerSessionRuntime;\n /** Bounded direct-child requests requiring attention; browser session reads only. */\n childAttention?: IControllerChildAttention[];\n /** More direct-child attention existed than the browser transfer budget allowed. */\n childAttentionLimited?: true;\n}"
|
|
4062
|
+
"declaration": "interface IControllerSessionDetail {\n /** Native Codex observations from this connection; modelChoice remains the user preference. */\n codexActivity?: IControllerCodexActivity;\n session: IControllerSession;\n messagePage: IControllerMessagePage;\n pendingPrompts: IControllerPendingPrompt[];\n permissions: IControllerPermission[];\n questions: IControllerQuestion[];\n /** MCP elicitations of a Claude Code or Codex conversation; empty for every other harness. */\n elicitations: TControllerElicitation[];\n todos: IControllerTodo[];\n scratchpad: IControllerSessionScratchpad;\n intelligenceExchanges: IControllerIntelligenceExchange[];\n /** Effective auto-accept state for this chat: its own yolo switch or the global setting. */\n autoAcceptPermissions?: boolean;\n /** Durable per-session choice; the harness default applies when absent. */\n modelChoice?: TControllerModelChoice;\n /** Exact Flex provider account selected for this session, separate from model identity. */\n providerConnectionId?: string;\n /** Durable per-session behaviour once a limit that holds its prompts resets (Flex). */\n limitResume?: IControllerLimitResumeOptions;\n /** Flex session override; absent means the model's catalog default. */\n contextCompaction?: TControllerContextCompaction;\n /**\n * The Flex provider account this session runs on, with the account limits the controller last read\n * for it from the accounts service.\n */\n flexAccountLimits?: IControllerFlexAccountLimits;\n /** \"providerID/modelID\" that answered most recently in this chat. */\n model?: string;\n /** Model variant (reasoning effort) of the most recent answer. */\n effort?: string;\n /** Latest live-tool cursor covered by this authoritative harness snapshot. */\n toolStreamCursor: IControllerToolStreamCursor;\n /** Latest live Assistant text/reasoning cursor covered by this snapshot. */\n messageStreamCursor: IControllerMessageStreamCursor;\n /** The runtime the conversation runs on; browser session reads only. */\n runtime?: IControllerSessionRuntime;\n /** Bounded direct-child requests requiring attention; browser session reads only. */\n childAttention?: IControllerChildAttention[];\n /** More direct-child attention existed than the browser transfer budget allowed. */\n childAttentionLimited?: true;\n}"
|
|
3641
4063
|
},
|
|
3642
4064
|
{
|
|
3643
4065
|
"name": "IControllerSessionError",
|
|
@@ -3833,7 +4255,7 @@ export const AGL_API_SURFACE: plugins.flexTypedRequest.IFlexTypedRequestSurface
|
|
|
3833
4255
|
},
|
|
3834
4256
|
"protocolVersion": {
|
|
3835
4257
|
"type": "number",
|
|
3836
|
-
"const":
|
|
4258
|
+
"const": 52
|
|
3837
4259
|
},
|
|
3838
4260
|
"upgradeManagementVersion": {
|
|
3839
4261
|
"type": "number"
|
|
@@ -3959,7 +4381,7 @@ export const AGL_API_SURFACE: plugins.flexTypedRequest.IFlexTypedRequestSurface
|
|
|
3959
4381
|
],
|
|
3960
4382
|
"additionalProperties": false
|
|
3961
4383
|
},
|
|
3962
|
-
"declaration": "interface IControllerStatus {\n packageName: string;\n packageVersion: string;\n protocolVersion:
|
|
4384
|
+
"declaration": "interface IControllerStatus {\n packageName: string;\n packageVersion: string;\n protocolVersion: 52;\n upgradeManagementVersion: number;\n /**\n * The protocol of the controller's loopback management endpoint (`controllerManagementProtocolVersion`); absent\n * from a controller older than the endpoint, which this release refuses to manage.\n */\n managementProtocolVersion?: number;\n controllerPid: number;\n processGroupId: number;\n processFingerprint: string;\n processMode: TControllerProcessMode;\n lifecycleState: TControllerLifecycleState;\n startedAt: number;\n setupRequired: boolean;\n /** Present when the controller runs as the systemd user unit (`agl service install`); absent for a detached or foreground one. */\n serviceUnit?: \"agl-controller.service\";\n /** The TLS mode of the runtime configuration the controller runs with; absent until it is resolved. */\n tlsMode?: TControllerTlsMode;\n upgrade?: IControllerUpgradeStatus;\n /** AGL's inference proxy, by state only; details need a signed-in owner (`controller.proxy.status.get`). */\n proxy?: { state: TControllerProxyState };\n harnesses: Array<{\n harnessId: TControllerSessionHarnessId;\n pid?: number;\n state: TControllerHarnessLifecycleState;\n healthy: boolean;\n version?: string;\n supportsLocalAttachments?: boolean;\n connectionMode?: 'local' | 'shared' | 'remote';\n diagnostic?: IControllerCodexDiagnostic;\n /** Codex only: automatic reconnection of this entry's profile to the local shared app-server. */\n rejoin?: IControllerCodexRejoinStatus;\n /**\n * Codex only, on the controller status: every connected or required profile. The entry's\n * `healthy` is then true only when each of them is, apart from a profile on an account Codex\n * cannot run on now, listed `stopped` with an `account_unavailable` diagnostic that says why;\n * its other members describe the default profile.\n */\n profiles?: IControllerCodexProfileStatus[];\n }>;\n}"
|
|
3963
4385
|
},
|
|
3964
4386
|
{
|
|
3965
4387
|
"name": "IControllerTerminalResource",
|
|
@@ -4359,6 +4781,204 @@ export const AGL_API_SURFACE: plugins.flexTypedRequest.IFlexTypedRequestSurface
|
|
|
4359
4781
|
},
|
|
4360
4782
|
"declaration": "/**\n * A view of one project's working tree for the human: files, an editor and changes on disk. It owns\n * no process; the controller serves the tree on request, confined to the project directory.\n */\ninterface IControllerWorkspaceResource extends IControllerResourceBase {\n kind: 'workspace';\n /** Project-relative directory the workspace's tree starts at; the empty string is the project. */\n baseDir: string;\n /** Advanced by every base-directory switch; a switch names the revision it was based on. */\n baseRevision: number;\n}"
|
|
4361
4783
|
},
|
|
4784
|
+
{
|
|
4785
|
+
"name": "IProxyCapacityAnswer",
|
|
4786
|
+
"schema": {
|
|
4787
|
+
"type": "object",
|
|
4788
|
+
"properties": {
|
|
4789
|
+
"at": {
|
|
4790
|
+
"type": "string",
|
|
4791
|
+
"description": "When the proxy judged it, by its own clock."
|
|
4792
|
+
},
|
|
4793
|
+
"observedSince": {
|
|
4794
|
+
"type": "string",
|
|
4795
|
+
"description": "Since when the proxy observes its pools' provider 429s: its start."
|
|
4796
|
+
},
|
|
4797
|
+
"pools": {
|
|
4798
|
+
"type": "array",
|
|
4799
|
+
"items": {
|
|
4800
|
+
"$ref": "#/$defs/IProxyCapacityPool"
|
|
4801
|
+
}
|
|
4802
|
+
}
|
|
4803
|
+
},
|
|
4804
|
+
"required": [
|
|
4805
|
+
"at",
|
|
4806
|
+
"observedSince",
|
|
4807
|
+
"pools"
|
|
4808
|
+
],
|
|
4809
|
+
"additionalProperties": false
|
|
4810
|
+
},
|
|
4811
|
+
"declaration": "interface IProxyCapacityAnswer {\n /** When the proxy judged it, by its own clock. */\n at: string;\n /** Since when the proxy observes its pools' provider 429s: its start. */\n observedSince: string;\n pools: IProxyCapacityPool[];\n}"
|
|
4812
|
+
},
|
|
4813
|
+
{
|
|
4814
|
+
"name": "IProxyCapacityMember",
|
|
4815
|
+
"schema": {
|
|
4816
|
+
"type": "object",
|
|
4817
|
+
"properties": {
|
|
4818
|
+
"accountId": {
|
|
4819
|
+
"type": "string",
|
|
4820
|
+
"description": "The account's id (64 hex characters)."
|
|
4821
|
+
},
|
|
4822
|
+
"plan": {
|
|
4823
|
+
"type": "string",
|
|
4824
|
+
"description": "Its plan as its held reading states it, one the pool counts."
|
|
4825
|
+
},
|
|
4826
|
+
"state": {
|
|
4827
|
+
"$ref": "#/$defs/TProxyCapacityMemberState"
|
|
4828
|
+
},
|
|
4829
|
+
"headroom": {
|
|
4830
|
+
"type": "number",
|
|
4831
|
+
"description": "The headroom it adds to the room now: its headroom below its threshold while it takes new work, else 0."
|
|
4832
|
+
},
|
|
4833
|
+
"binding": {
|
|
4834
|
+
"anyOf": [
|
|
4835
|
+
{
|
|
4836
|
+
"$ref": "#/$defs/IProxyCapacityWindow"
|
|
4837
|
+
},
|
|
4838
|
+
{
|
|
4839
|
+
"type": "null"
|
|
4840
|
+
}
|
|
4841
|
+
],
|
|
4842
|
+
"description": "The window its headroom is bound by; `null` without a usable reading with a counted window."
|
|
4843
|
+
},
|
|
4844
|
+
"growsAt": {
|
|
4845
|
+
"type": [
|
|
4846
|
+
"string",
|
|
4847
|
+
"null"
|
|
4848
|
+
],
|
|
4849
|
+
"description": "When the headroom it adds next grows, from its reading alone: the binding window's reset, or the moment it takes work again (a provider 429's rest, a provider refusal, its windows' resets); `null` when it cannot grow or that moment is unknown (a stale reading, a sign-in or payment problem)."
|
|
4850
|
+
},
|
|
4851
|
+
"growsTo": {
|
|
4852
|
+
"type": [
|
|
4853
|
+
"number",
|
|
4854
|
+
"null"
|
|
4855
|
+
],
|
|
4856
|
+
"description": "The headroom it adds from `growsAt` on, at most; `null` with it."
|
|
4857
|
+
},
|
|
4858
|
+
"recheckAt": {
|
|
4859
|
+
"type": [
|
|
4860
|
+
"string",
|
|
4861
|
+
"null"
|
|
4862
|
+
],
|
|
4863
|
+
"description": "When the account service reads an account it cannot judge now again, when it says; `null` otherwise."
|
|
4864
|
+
}
|
|
4865
|
+
},
|
|
4866
|
+
"required": [
|
|
4867
|
+
"accountId",
|
|
4868
|
+
"plan",
|
|
4869
|
+
"state",
|
|
4870
|
+
"headroom",
|
|
4871
|
+
"binding",
|
|
4872
|
+
"growsAt",
|
|
4873
|
+
"growsTo",
|
|
4874
|
+
"recheckAt"
|
|
4875
|
+
],
|
|
4876
|
+
"additionalProperties": false,
|
|
4877
|
+
"description": "An account the pool counts: a subscription sign-in of a counted plan that has not lapsed."
|
|
4878
|
+
},
|
|
4879
|
+
"declaration": "/** An account the pool counts: a subscription sign-in of a counted plan that has not lapsed. */\ninterface IProxyCapacityMember {\n /** The account's id (64 hex characters). */\n accountId: string;\n /** Its plan as its held reading states it, one the pool counts. */\n plan: string;\n state: TProxyCapacityMemberState;\n /** The headroom it adds to the room now: its headroom below its threshold while it takes new work, else 0. */\n headroom: number;\n /** The window its headroom is bound by; `null` without a usable reading with a counted window. */\n binding: IProxyCapacityWindow | null;\n /**\n * When the headroom it adds next grows, from its reading alone: the binding window's reset, or the moment it takes\n * work again (a provider 429's rest, a provider refusal, its windows' resets); `null` when it cannot grow or that\n * moment is unknown (a stale reading, a sign-in or payment problem).\n */\n growsAt: string | null;\n /** The headroom it adds from `growsAt` on, at most; `null` with it. */\n growsTo: number | null;\n /** When the account service reads an account it cannot judge now again, when it says; `null` otherwise. */\n recheckAt: string | null;\n}"
|
|
4880
|
+
},
|
|
4881
|
+
{
|
|
4882
|
+
"name": "IProxyCapacityPool",
|
|
4883
|
+
"schema": {
|
|
4884
|
+
"type": "object",
|
|
4885
|
+
"properties": {
|
|
4886
|
+
"provider": {
|
|
4887
|
+
"$ref": "#/$defs/TProxyCapacityProvider"
|
|
4888
|
+
},
|
|
4889
|
+
"minHeadroom": {
|
|
4890
|
+
"type": "number"
|
|
4891
|
+
},
|
|
4892
|
+
"room": {
|
|
4893
|
+
"type": "number",
|
|
4894
|
+
"description": "The members' headroom summed, in percent."
|
|
4895
|
+
},
|
|
4896
|
+
"members": {
|
|
4897
|
+
"type": "array",
|
|
4898
|
+
"items": {
|
|
4899
|
+
"$ref": "#/$defs/IProxyCapacityMember"
|
|
4900
|
+
}
|
|
4901
|
+
},
|
|
4902
|
+
"last429At": {
|
|
4903
|
+
"type": [
|
|
4904
|
+
"string",
|
|
4905
|
+
"null"
|
|
4906
|
+
],
|
|
4907
|
+
"description": "The newest provider 429 on a member the proxy saw since `observedSince`, or `null`."
|
|
4908
|
+
},
|
|
4909
|
+
"verdict": {
|
|
4910
|
+
"$ref": "#/$defs/TProxyCapacityVerdict"
|
|
4911
|
+
}
|
|
4912
|
+
},
|
|
4913
|
+
"required": [
|
|
4914
|
+
"provider",
|
|
4915
|
+
"minHeadroom",
|
|
4916
|
+
"room",
|
|
4917
|
+
"members",
|
|
4918
|
+
"last429At",
|
|
4919
|
+
"verdict"
|
|
4920
|
+
],
|
|
4921
|
+
"additionalProperties": false
|
|
4922
|
+
},
|
|
4923
|
+
"declaration": "interface IProxyCapacityPool {\n provider: TProxyCapacityProvider;\n minHeadroom: number;\n /** The members' headroom summed, in percent. */\n room: number;\n members: IProxyCapacityMember[];\n /** The newest provider 429 on a member the proxy saw since `observedSince`, or `null`. */\n last429At: string | null;\n verdict: TProxyCapacityVerdict;\n}"
|
|
4924
|
+
},
|
|
4925
|
+
{
|
|
4926
|
+
"name": "IProxyCapacityRequest",
|
|
4927
|
+
"schema": {
|
|
4928
|
+
"type": "object",
|
|
4929
|
+
"properties": {
|
|
4930
|
+
"provider": {
|
|
4931
|
+
"$ref": "#/$defs/TProxyCapacityProvider"
|
|
4932
|
+
},
|
|
4933
|
+
"minHeadroom": {
|
|
4934
|
+
"type": "number"
|
|
4935
|
+
}
|
|
4936
|
+
},
|
|
4937
|
+
"additionalProperties": false,
|
|
4938
|
+
"description": "What is asked: one pool, or both when `provider` is absent, against `minHeadroom` (a non-negative integer)."
|
|
4939
|
+
},
|
|
4940
|
+
"declaration": "/** What is asked: one pool, or both when `provider` is absent, against `minHeadroom` (a non-negative integer). */\ninterface IProxyCapacityRequest {\n provider?: TProxyCapacityProvider;\n minHeadroom?: number;\n}"
|
|
4941
|
+
},
|
|
4942
|
+
{
|
|
4943
|
+
"name": "IProxyCapacityWindow",
|
|
4944
|
+
"schema": {
|
|
4945
|
+
"type": "object",
|
|
4946
|
+
"properties": {
|
|
4947
|
+
"name": {
|
|
4948
|
+
"type": "string",
|
|
4949
|
+
"description": "The provider's name for the window, or its length (`5h`, `7d`) for one without a name."
|
|
4950
|
+
},
|
|
4951
|
+
"durationSeconds": {
|
|
4952
|
+
"type": "number"
|
|
4953
|
+
},
|
|
4954
|
+
"usedPercent": {
|
|
4955
|
+
"type": "number",
|
|
4956
|
+
"description": "The percent its limit decides by: the account service's estimate between reads where it has one."
|
|
4957
|
+
},
|
|
4958
|
+
"estimated": {
|
|
4959
|
+
"type": "boolean",
|
|
4960
|
+
"description": "Whether `usedPercent` is that estimate."
|
|
4961
|
+
},
|
|
4962
|
+
"resetAt": {
|
|
4963
|
+
"type": [
|
|
4964
|
+
"string",
|
|
4965
|
+
"null"
|
|
4966
|
+
],
|
|
4967
|
+
"description": "When its current period ends, as the reading states it; `null` when it states none."
|
|
4968
|
+
}
|
|
4969
|
+
},
|
|
4970
|
+
"required": [
|
|
4971
|
+
"name",
|
|
4972
|
+
"durationSeconds",
|
|
4973
|
+
"usedPercent",
|
|
4974
|
+
"estimated",
|
|
4975
|
+
"resetAt"
|
|
4976
|
+
],
|
|
4977
|
+
"additionalProperties": false,
|
|
4978
|
+
"description": "A member's window, as its reading states it."
|
|
4979
|
+
},
|
|
4980
|
+
"declaration": "/** A member's window, as its reading states it. */\ninterface IProxyCapacityWindow {\n /** The provider's name for the window, or its length (`5h`, `7d`) for one without a name. */\n name: string;\n durationSeconds: number;\n /** The percent its limit decides by: the account service's estimate between reads where it has one. */\n usedPercent: number;\n /** Whether `usedPercent` is that estimate. */\n estimated: boolean;\n /** When its current period ends, as the reading states it; `null` when it states none. */\n resetAt: string | null;\n}"
|
|
4981
|
+
},
|
|
4362
4982
|
{
|
|
4363
4983
|
"name": "IReq_ControllerModelList",
|
|
4364
4984
|
"declaration": "interface IReq_ControllerModelList extends implementsTR<\n ITypedRequest,\n IReq_ControllerModelList\n> {\n method: 'controller.model.list';\n request: { projectId?: string; sessionId?: TControllerSessionId };\n response: {\n models: TControllerModelOption[];\n /**\n * Per harness, the model a new conversation runs on when none is chosen: what the controller\n * sends for it. A harness without one is absent; it then runs its own default unnamed.\n */\n defaults: IControllerDefaultModel[];\n /**\n * The usable Flex accounts in the order AGL's account placement takes a new conversation now:\n * a model chosen without an account runs on the first of them that offers it.\n */\n flexAccountPlacement: string[];\n codexContext?: IControllerCodexContext;\n };\n}"
|
|
@@ -5414,6 +6034,61 @@ export const AGL_API_SURFACE: plugins.flexTypedRequest.IFlexTypedRequestSurface
|
|
|
5414
6034
|
},
|
|
5415
6035
|
"declaration": "/** FlexHarness owns the effective budget and clamps token overrides to the model's ceiling. */\ntype TControllerContextCompaction = { tokens: number } | { percent: number } | false;"
|
|
5416
6036
|
},
|
|
6037
|
+
{
|
|
6038
|
+
"name": "TControllerElicitation",
|
|
6039
|
+
"schema": {
|
|
6040
|
+
"anyOf": [
|
|
6041
|
+
{
|
|
6042
|
+
"$ref": "#/$defs/IControllerElicitationForm"
|
|
6043
|
+
},
|
|
6044
|
+
{
|
|
6045
|
+
"$ref": "#/$defs/IControllerElicitationUrl"
|
|
6046
|
+
},
|
|
6047
|
+
{
|
|
6048
|
+
"$ref": "#/$defs/IControllerElicitationUnsupported"
|
|
6049
|
+
}
|
|
6050
|
+
],
|
|
6051
|
+
"description": "MCP elicitation (`elicitation/create`, MCP 2025-11-25): an MCP server of a Claude Code or Codex session asks the owner for input. AGL holds the request as a card beside the session's permissions and questions until the owner answers it; nothing answers one on the owner's behalf, auto-accept included. A form takes MCP's flat primitive subset only: text, numbers, a yes or no, and a single or multiple choice of strings; everything else is `unsupported`, never a form with a field left out."
|
|
6052
|
+
},
|
|
6053
|
+
"declaration": "/**\n * MCP elicitation (`elicitation/create`, MCP 2025-11-25): an MCP server of a Claude Code or Codex session asks the\n * owner for input. AGL holds the request as a card beside the session's permissions and questions until the owner\n * answers it; nothing answers one on the owner's behalf, auto-accept included. A form takes MCP's flat primitive\n * subset only: text, numbers, a yes or no, and a single or multiple choice of strings; everything else is\n * `unsupported`, never a form with a field left out.\n */\ntype TControllerElicitation = IControllerElicitationForm | IControllerElicitationUrl | IControllerElicitationUnsupported;"
|
|
6054
|
+
},
|
|
6055
|
+
{
|
|
6056
|
+
"name": "TControllerElicitationField",
|
|
6057
|
+
"schema": {
|
|
6058
|
+
"anyOf": [
|
|
6059
|
+
{
|
|
6060
|
+
"$ref": "#/$defs/IControllerElicitationTextField"
|
|
6061
|
+
},
|
|
6062
|
+
{
|
|
6063
|
+
"$ref": "#/$defs/IControllerElicitationNumberField"
|
|
6064
|
+
},
|
|
6065
|
+
{
|
|
6066
|
+
"$ref": "#/$defs/IControllerElicitationBooleanField"
|
|
6067
|
+
},
|
|
6068
|
+
{
|
|
6069
|
+
"$ref": "#/$defs/IControllerElicitationChoiceField"
|
|
6070
|
+
},
|
|
6071
|
+
{
|
|
6072
|
+
"$ref": "#/$defs/IControllerElicitationChoicesField"
|
|
6073
|
+
}
|
|
6074
|
+
]
|
|
6075
|
+
},
|
|
6076
|
+
"declaration": "type TControllerElicitationField =\n | IControllerElicitationTextField\n | IControllerElicitationNumberField\n | IControllerElicitationBooleanField\n | IControllerElicitationChoiceField\n | IControllerElicitationChoicesField;"
|
|
6077
|
+
},
|
|
6078
|
+
{
|
|
6079
|
+
"name": "TControllerElicitationTextFormat",
|
|
6080
|
+
"schema": {
|
|
6081
|
+
"type": "string",
|
|
6082
|
+
"enum": [
|
|
6083
|
+
"email",
|
|
6084
|
+
"uri",
|
|
6085
|
+
"date",
|
|
6086
|
+
"date-time"
|
|
6087
|
+
],
|
|
6088
|
+
"description": "The string formats MCP names; a value is checked against its format before it is sent."
|
|
6089
|
+
},
|
|
6090
|
+
"declaration": "/** The string formats MCP names; a value is checked against its format before it is sent. */\ntype TControllerElicitationTextFormat = 'email' | 'uri' | 'date' | 'date-time';"
|
|
6091
|
+
},
|
|
5417
6092
|
{
|
|
5418
6093
|
"name": "TControllerHarnessId",
|
|
5419
6094
|
"schema": {
|
|
@@ -5551,6 +6226,13 @@ export const AGL_API_SURFACE: plugins.flexTypedRequest.IFlexTypedRequestSurface
|
|
|
5551
6226
|
"$ref": "#/$defs/IControllerQuestion"
|
|
5552
6227
|
}
|
|
5553
6228
|
},
|
|
6229
|
+
"elicitations": {
|
|
6230
|
+
"type": "array",
|
|
6231
|
+
"items": {
|
|
6232
|
+
"$ref": "#/$defs/TControllerElicitation"
|
|
6233
|
+
},
|
|
6234
|
+
"description": "MCP elicitations of a Claude Code or Codex conversation; empty for every other harness."
|
|
6235
|
+
},
|
|
5554
6236
|
"todos": {
|
|
5555
6237
|
"type": "array",
|
|
5556
6238
|
"items": {
|
|
@@ -5613,6 +6295,7 @@ export const AGL_API_SURFACE: plugins.flexTypedRequest.IFlexTypedRequestSurface
|
|
|
5613
6295
|
"pendingPrompts",
|
|
5614
6296
|
"permissions",
|
|
5615
6297
|
"questions",
|
|
6298
|
+
"elicitations",
|
|
5616
6299
|
"todos",
|
|
5617
6300
|
"scratchpad",
|
|
5618
6301
|
"intelligenceExchanges",
|
|
@@ -6023,6 +6706,118 @@ export const AGL_API_SURFACE: plugins.flexTypedRequest.IFlexTypedRequestSurface
|
|
|
6023
6706
|
},
|
|
6024
6707
|
"declaration": "/** Why Paint is unavailable for an incarnation or for the runtime. */\ntype TPaintUnavailableReason = 'not-selected' | 'sandbox' | 'sandbox-helper' | 'artifact-download' | 'artifact-integrity' | 'capture';"
|
|
6025
6708
|
},
|
|
6709
|
+
{
|
|
6710
|
+
"name": "TProxyCapacityMemberState",
|
|
6711
|
+
"schema": {
|
|
6712
|
+
"type": "string",
|
|
6713
|
+
"enum": [
|
|
6714
|
+
"available",
|
|
6715
|
+
"reserved",
|
|
6716
|
+
"exhausted",
|
|
6717
|
+
"cooling",
|
|
6718
|
+
"unavailable"
|
|
6719
|
+
],
|
|
6720
|
+
"description": "Whether a member takes new work now, as `agl proxy status` judges it, or why not."
|
|
6721
|
+
},
|
|
6722
|
+
"declaration": "/** Whether a member takes new work now, as `agl proxy status` judges it, or why not. */\ntype TProxyCapacityMemberState = 'available' | 'reserved' | 'exhausted' | 'cooling' | 'unavailable';"
|
|
6723
|
+
},
|
|
6724
|
+
{
|
|
6725
|
+
"name": "TProxyCapacityProvider",
|
|
6726
|
+
"schema": {
|
|
6727
|
+
"type": "string",
|
|
6728
|
+
"enum": [
|
|
6729
|
+
"anthropic",
|
|
6730
|
+
"openai"
|
|
6731
|
+
],
|
|
6732
|
+
"description": "A pool: Claude accounts (`anthropic`) or ChatGPT accounts (`openai`)."
|
|
6733
|
+
},
|
|
6734
|
+
"declaration": "/** A pool: Claude accounts (`anthropic`) or ChatGPT accounts (`openai`). */\ntype TProxyCapacityProvider = 'anthropic' | 'openai';"
|
|
6735
|
+
},
|
|
6736
|
+
{
|
|
6737
|
+
"name": "TProxyCapacityVerdict",
|
|
6738
|
+
"schema": {
|
|
6739
|
+
"anyOf": [
|
|
6740
|
+
{
|
|
6741
|
+
"type": "object",
|
|
6742
|
+
"properties": {
|
|
6743
|
+
"state": {
|
|
6744
|
+
"type": "string",
|
|
6745
|
+
"const": "open"
|
|
6746
|
+
}
|
|
6747
|
+
},
|
|
6748
|
+
"required": [
|
|
6749
|
+
"state"
|
|
6750
|
+
],
|
|
6751
|
+
"additionalProperties": false
|
|
6752
|
+
},
|
|
6753
|
+
{
|
|
6754
|
+
"type": "object",
|
|
6755
|
+
"properties": {
|
|
6756
|
+
"state": {
|
|
6757
|
+
"type": "string",
|
|
6758
|
+
"const": "wait"
|
|
6759
|
+
},
|
|
6760
|
+
"reason": {
|
|
6761
|
+
"$ref": "#/$defs/TProxyCapacityWaitReason"
|
|
6762
|
+
},
|
|
6763
|
+
"until": {
|
|
6764
|
+
"type": "string"
|
|
6765
|
+
},
|
|
6766
|
+
"seconds": {
|
|
6767
|
+
"type": "number"
|
|
6768
|
+
}
|
|
6769
|
+
},
|
|
6770
|
+
"required": [
|
|
6771
|
+
"state",
|
|
6772
|
+
"reason",
|
|
6773
|
+
"until",
|
|
6774
|
+
"seconds"
|
|
6775
|
+
],
|
|
6776
|
+
"additionalProperties": false
|
|
6777
|
+
},
|
|
6778
|
+
{
|
|
6779
|
+
"type": "object",
|
|
6780
|
+
"properties": {
|
|
6781
|
+
"state": {
|
|
6782
|
+
"type": "string",
|
|
6783
|
+
"const": "wait"
|
|
6784
|
+
},
|
|
6785
|
+
"reason": {
|
|
6786
|
+
"$ref": "#/$defs/TProxyCapacityWaitReason"
|
|
6787
|
+
},
|
|
6788
|
+
"until": {
|
|
6789
|
+
"type": "null"
|
|
6790
|
+
},
|
|
6791
|
+
"seconds": {
|
|
6792
|
+
"type": "null"
|
|
6793
|
+
}
|
|
6794
|
+
},
|
|
6795
|
+
"required": [
|
|
6796
|
+
"state",
|
|
6797
|
+
"reason",
|
|
6798
|
+
"until",
|
|
6799
|
+
"seconds"
|
|
6800
|
+
],
|
|
6801
|
+
"additionalProperties": false
|
|
6802
|
+
}
|
|
6803
|
+
],
|
|
6804
|
+
"description": "`open`: the pool takes new work now. `wait`: not before `until`, `seconds` from the answer's `at`; both `null` when the members' readings foresee no moment the room reaches the minimum."
|
|
6805
|
+
},
|
|
6806
|
+
"declaration": "/**\n * `open`: the pool takes new work now. `wait`: not before `until`, `seconds` from the answer's `at`; both `null` when\n * the members' readings foresee no moment the room reaches the minimum.\n */\ntype TProxyCapacityVerdict =\n | { state: 'open' }\n | { state: 'wait'; reason: TProxyCapacityWaitReason; until: string; seconds: number }\n | { state: 'wait'; reason: TProxyCapacityWaitReason; until: null; seconds: null };"
|
|
6807
|
+
},
|
|
6808
|
+
{
|
|
6809
|
+
"name": "TProxyCapacityWaitReason",
|
|
6810
|
+
"schema": {
|
|
6811
|
+
"type": "string",
|
|
6812
|
+
"enum": [
|
|
6813
|
+
"room",
|
|
6814
|
+
"provider-429",
|
|
6815
|
+
"quiet-unobserved"
|
|
6816
|
+
],
|
|
6817
|
+
"description": "Why a pool waits: too little room, a provider 429 within the quiet period, or a proxy that has not observed it long enough."
|
|
6818
|
+
},
|
|
6819
|
+
"declaration": "/** Why a pool waits: too little room, a provider 429 within the quiet period, or a proxy that has not observed it long enough. */\ntype TProxyCapacityWaitReason = 'room' | 'provider-429' | 'quiet-unobserved';"
|
|
6820
|
+
},
|
|
6026
6821
|
{
|
|
6027
6822
|
"name": "TTicketAutoLabel",
|
|
6028
6823
|
"schema": {
|