agl 43.0.4 → 43.1.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 +25 -0
- package/dist_serve/bundle.js +5186 -4683
- package/dist_serve/bundle.js.map +2 -2
- package/dist_serve/bundle.js.third-party-notices.json +29 -29
- package/dist_serve/bundle.js.third-party-notices.txt +29 -29
- 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 +475 -4
- package/dist_ts/aglapi/interfaces.d.ts +10 -0
- package/dist_ts/aglapi/interfaces.js +3 -1
- package/dist_ts/classes.claudeharness.d.ts +14 -5
- package/dist_ts/classes.claudeharness.js +62 -2
- package/dist_ts/classes.codexclientadapter.d.ts +7 -5
- package/dist_ts/classes.codexclientadapter.js +38 -3
- package/dist_ts/classes.controller.d.ts +9 -2
- package/dist_ts/classes.controller.js +116 -24
- package/dist_ts/classes.flexservice.d.ts +6 -7
- package/dist_ts/classes.flexservice.js +12 -45
- package/dist_ts/classes.flexsupervisor.d.ts +37 -3
- package/dist_ts/classes.flexsupervisor.js +164 -37
- package/dist_ts/classes.inferencegateway.d.ts +8 -5
- package/dist_ts/classes.inferencegateway.js +62 -19
- package/dist_ts/classes.inferencespend.d.ts +9 -3
- package/dist_ts/classes.inferencespend.js +44 -16
- package/dist_ts/classes.mcpclient.d.ts +6 -4
- package/dist_ts/classes.mcpclient.js +6 -2
- package/dist_ts/classes.mcpcontrollerhost.js +5 -1
- package/dist_ts/classes.mcptools.d.ts +1 -1
- package/dist_ts/classes.mcptools.js +17 -4
- package/dist_ts/classes.opencodeclient.js +3 -1
- package/dist_ts/classes.proxycontrol.d.ts +22 -11
- package/dist_ts/classes.proxycontrol.js +6 -3
- package/dist_ts/classes.proxycontrolclient.d.ts +6 -5
- package/dist_ts/classes.proxycontrolclient.js +8 -6
- package/dist_ts/classes.proxydaemon.d.ts +8 -6
- package/dist_ts/classes.proxydaemon.js +35 -21
- package/dist_ts/classes.proxyleaseholder.d.ts +12 -4
- package/dist_ts/classes.proxyleaseholder.js +39 -9
- 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.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/flexharness.child.js +9 -4
- package/dist_ts/functions.confinedrelay.d.ts +21 -0
- package/dist_ts/functions.confinedrelay.js +65 -0
- 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.flexchildshutdown.d.ts +7 -0
- package/dist_ts/functions.flexchildshutdown.js +18 -1
- package/dist_ts/functions.inferencecli.d.ts +3 -3
- package/dist_ts/functions.inferencecli.js +33 -10
- package/dist_ts/functions.inferencecliarguments.d.ts +2 -1
- package/dist_ts/functions.inferencecliarguments.js +29 -8
- 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.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/interfaces.auth.d.ts +1 -1
- package/dist_ts/interfaces.auth.js +2 -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/index.d.ts +1 -0
- package/dist_ts_interfaces/index.js +2 -1
- package/dist_ts_interfaces/interfaces.d.ts +3 -1
- package/dist_ts_interfaces/interfaces.js +2 -2
- package/dist_ts_interfaces/mcprequests.d.ts +5 -1
- package/dist_ts_interfaces/mcprequests.js +2 -1
- package/dist_ts_interfaces/nativesessions.d.ts +14 -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/dist_ts_migration/index.d.ts +0 -2
- package/dist_ts_migration/index.js +1 -3
- package/dist_ts_migration/v43_flexpostharnessmigrationmarkers.d.ts +6 -17
- package/dist_ts_migration/v43_flexpostharnessmigrationmarkers.js +6 -36
- package/package.json +3 -3
- package/readme.md +191 -24
- package/third-party-notices.md +1 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/aglapi/aglapisurface.document.ts +474 -3
- package/ts/aglapi/interfaces.ts +2 -0
- package/ts/classes.claudeharness.ts +80 -9
- package/ts/classes.codexclientadapter.ts +41 -5
- package/ts/classes.controller.ts +142 -29
- package/ts/classes.flexservice.ts +10 -66
- package/ts/classes.flexsupervisor.ts +214 -37
- package/ts/classes.inferencegateway.ts +69 -23
- package/ts/classes.inferencespend.ts +46 -13
- package/ts/classes.mcpclient.ts +8 -4
- package/ts/classes.mcpcontrollerhost.ts +4 -0
- package/ts/classes.mcptools.ts +17 -3
- package/ts/classes.opencodeclient.ts +2 -0
- package/ts/classes.proxycontrol.ts +27 -13
- package/ts/classes.proxycontrolclient.ts +9 -6
- package/ts/classes.proxydaemon.ts +49 -27
- package/ts/classes.proxyleaseholder.ts +43 -11
- package/ts/classes.proxystore.ts +21 -8
- package/ts/classes.sessionfeed.ts +1 -1
- 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/flexharness.child.ts +8 -3
- package/ts/functions.confinedrelay.ts +65 -0
- package/ts/functions.deviceapi.ts +24 -1
- package/ts/functions.elicitation.ts +443 -0
- package/ts/functions.flexchildshutdown.ts +22 -0
- package/ts/functions.inferencecli.ts +38 -13
- package/ts/functions.inferencecliarguments.ts +26 -5
- package/ts/functions.inferencelaunch.ts +143 -16
- package/ts/functions.mcpfleetworkertools.ts +34 -4
- package/ts/functions.proxycontract.ts +17 -4
- package/ts/functions.proxyharnessconfig.ts +11 -0
- package/ts/interfaces.auth.ts +1 -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/index.ts +1 -0
- package/ts_interfaces/interfaces.ts +3 -1
- package/ts_interfaces/mcprequests.ts +1 -0
- package/ts_interfaces/nativesessions.ts +16 -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_migration/index.ts +0 -2
- package/ts_migration/v43_flexpostharnessmigrationmarkers.ts +6 -49
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/classes.elicitationcards.ts +106 -0
- package/ts_web/classes.nativesessionstate.ts +38 -1
- package/ts_web/elements.fleetworker.ts +27 -2
- package/ts_web/elements.harnesscontrollerapp.ts +68 -1
- package/ts_web/functions.sessionchat.ts +5 -0
- package/dist_ts_migration/classes.flexpostharnessmigrationrunner.d.ts +0 -19
- package/dist_ts_migration/classes.flexpostharnessmigrationrunner.js +0 -34
- package/dist_ts_migration/v19_flexprojectmanagement.d.ts +0 -14
- package/dist_ts_migration/v19_flexprojectmanagement.js +0 -23
- package/ts_migration/classes.flexpostharnessmigrationrunner.ts +0 -54
- package/ts_migration/v19_flexprojectmanagement.ts +0 -32
|
@@ -2383,6 +2383,414 @@ export const AGL_API_SURFACE: plugins.flexTypedRequest.IFlexTypedRequestSurface
|
|
|
2383
2383
|
"name": "IControllerDraftAttachment",
|
|
2384
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}"
|
|
2385
2385
|
},
|
|
2386
|
+
{
|
|
2387
|
+
"name": "IControllerElicitationBase",
|
|
2388
|
+
"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}"
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
"name": "IControllerElicitationBooleanField",
|
|
2392
|
+
"schema": {
|
|
2393
|
+
"type": "object",
|
|
2394
|
+
"properties": {
|
|
2395
|
+
"name": {
|
|
2396
|
+
"type": "string",
|
|
2397
|
+
"description": "The property name the answer carries the value under."
|
|
2398
|
+
},
|
|
2399
|
+
"title": {
|
|
2400
|
+
"type": "string"
|
|
2401
|
+
},
|
|
2402
|
+
"description": {
|
|
2403
|
+
"type": "string"
|
|
2404
|
+
},
|
|
2405
|
+
"required": {
|
|
2406
|
+
"type": "boolean",
|
|
2407
|
+
"description": "The answer must carry a value for it."
|
|
2408
|
+
},
|
|
2409
|
+
"kind": {
|
|
2410
|
+
"type": "string",
|
|
2411
|
+
"const": "boolean"
|
|
2412
|
+
},
|
|
2413
|
+
"default": {
|
|
2414
|
+
"type": "boolean"
|
|
2415
|
+
}
|
|
2416
|
+
},
|
|
2417
|
+
"required": [
|
|
2418
|
+
"kind",
|
|
2419
|
+
"name",
|
|
2420
|
+
"required"
|
|
2421
|
+
],
|
|
2422
|
+
"additionalProperties": false
|
|
2423
|
+
},
|
|
2424
|
+
"declaration": "interface IControllerElicitationBooleanField extends IControllerElicitationFieldBase {\n kind: 'boolean';\n default?: boolean;\n}"
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
"name": "IControllerElicitationChoiceField",
|
|
2428
|
+
"schema": {
|
|
2429
|
+
"type": "object",
|
|
2430
|
+
"properties": {
|
|
2431
|
+
"name": {
|
|
2432
|
+
"type": "string",
|
|
2433
|
+
"description": "The property name the answer carries the value under."
|
|
2434
|
+
},
|
|
2435
|
+
"title": {
|
|
2436
|
+
"type": "string"
|
|
2437
|
+
},
|
|
2438
|
+
"description": {
|
|
2439
|
+
"type": "string"
|
|
2440
|
+
},
|
|
2441
|
+
"required": {
|
|
2442
|
+
"type": "boolean",
|
|
2443
|
+
"description": "The answer must carry a value for it."
|
|
2444
|
+
},
|
|
2445
|
+
"kind": {
|
|
2446
|
+
"type": "string",
|
|
2447
|
+
"const": "choice"
|
|
2448
|
+
},
|
|
2449
|
+
"options": {
|
|
2450
|
+
"type": "array",
|
|
2451
|
+
"items": {
|
|
2452
|
+
"$ref": "#/$defs/IControllerElicitationOption"
|
|
2453
|
+
}
|
|
2454
|
+
},
|
|
2455
|
+
"default": {
|
|
2456
|
+
"type": "string"
|
|
2457
|
+
}
|
|
2458
|
+
},
|
|
2459
|
+
"required": [
|
|
2460
|
+
"kind",
|
|
2461
|
+
"name",
|
|
2462
|
+
"options",
|
|
2463
|
+
"required"
|
|
2464
|
+
],
|
|
2465
|
+
"additionalProperties": false,
|
|
2466
|
+
"description": "A single choice among strings."
|
|
2467
|
+
},
|
|
2468
|
+
"declaration": "/** A single choice among strings. */\ninterface IControllerElicitationChoiceField extends IControllerElicitationFieldBase {\n kind: 'choice';\n options: IControllerElicitationOption[];\n default?: string;\n}"
|
|
2469
|
+
},
|
|
2470
|
+
{
|
|
2471
|
+
"name": "IControllerElicitationChoicesField",
|
|
2472
|
+
"schema": {
|
|
2473
|
+
"type": "object",
|
|
2474
|
+
"properties": {
|
|
2475
|
+
"name": {
|
|
2476
|
+
"type": "string",
|
|
2477
|
+
"description": "The property name the answer carries the value under."
|
|
2478
|
+
},
|
|
2479
|
+
"title": {
|
|
2480
|
+
"type": "string"
|
|
2481
|
+
},
|
|
2482
|
+
"description": {
|
|
2483
|
+
"type": "string"
|
|
2484
|
+
},
|
|
2485
|
+
"required": {
|
|
2486
|
+
"type": "boolean",
|
|
2487
|
+
"description": "The answer must carry a value for it."
|
|
2488
|
+
},
|
|
2489
|
+
"kind": {
|
|
2490
|
+
"type": "string",
|
|
2491
|
+
"const": "choices"
|
|
2492
|
+
},
|
|
2493
|
+
"options": {
|
|
2494
|
+
"type": "array",
|
|
2495
|
+
"items": {
|
|
2496
|
+
"$ref": "#/$defs/IControllerElicitationOption"
|
|
2497
|
+
}
|
|
2498
|
+
},
|
|
2499
|
+
"minItems": {
|
|
2500
|
+
"type": "number"
|
|
2501
|
+
},
|
|
2502
|
+
"maxItems": {
|
|
2503
|
+
"type": "number"
|
|
2504
|
+
},
|
|
2505
|
+
"default": {
|
|
2506
|
+
"type": "array",
|
|
2507
|
+
"items": {
|
|
2508
|
+
"type": "string"
|
|
2509
|
+
}
|
|
2510
|
+
}
|
|
2511
|
+
},
|
|
2512
|
+
"required": [
|
|
2513
|
+
"kind",
|
|
2514
|
+
"name",
|
|
2515
|
+
"options",
|
|
2516
|
+
"required"
|
|
2517
|
+
],
|
|
2518
|
+
"additionalProperties": false,
|
|
2519
|
+
"description": "Several choices among strings, each at most once."
|
|
2520
|
+
},
|
|
2521
|
+
"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}"
|
|
2522
|
+
},
|
|
2523
|
+
{
|
|
2524
|
+
"name": "IControllerElicitationFieldBase",
|
|
2525
|
+
"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}"
|
|
2526
|
+
},
|
|
2527
|
+
{
|
|
2528
|
+
"name": "IControllerElicitationForm",
|
|
2529
|
+
"schema": {
|
|
2530
|
+
"type": "object",
|
|
2531
|
+
"properties": {
|
|
2532
|
+
"id": {
|
|
2533
|
+
"$ref": "#/$defs/IControllerRuntimeId"
|
|
2534
|
+
},
|
|
2535
|
+
"sessionId": {
|
|
2536
|
+
"$ref": "#/$defs/IControllerRuntimeId"
|
|
2537
|
+
},
|
|
2538
|
+
"serverName": {
|
|
2539
|
+
"type": "string",
|
|
2540
|
+
"description": "The MCP server that asks, as the harness names it."
|
|
2541
|
+
},
|
|
2542
|
+
"message": {
|
|
2543
|
+
"type": "string",
|
|
2544
|
+
"description": "What the server asks, in its words."
|
|
2545
|
+
},
|
|
2546
|
+
"createdAt": {
|
|
2547
|
+
"type": "number"
|
|
2548
|
+
},
|
|
2549
|
+
"mode": {
|
|
2550
|
+
"type": "string",
|
|
2551
|
+
"const": "form"
|
|
2552
|
+
},
|
|
2553
|
+
"schema": {
|
|
2554
|
+
"$ref": "#/$defs/IControllerElicitationSchema"
|
|
2555
|
+
}
|
|
2556
|
+
},
|
|
2557
|
+
"required": [
|
|
2558
|
+
"createdAt",
|
|
2559
|
+
"id",
|
|
2560
|
+
"message",
|
|
2561
|
+
"mode",
|
|
2562
|
+
"schema",
|
|
2563
|
+
"serverName",
|
|
2564
|
+
"sessionId"
|
|
2565
|
+
],
|
|
2566
|
+
"additionalProperties": false,
|
|
2567
|
+
"description": "A form AGL collects on the card: every field the server asked for, in its order."
|
|
2568
|
+
},
|
|
2569
|
+
"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}"
|
|
2570
|
+
},
|
|
2571
|
+
{
|
|
2572
|
+
"name": "IControllerElicitationNumberField",
|
|
2573
|
+
"schema": {
|
|
2574
|
+
"type": "object",
|
|
2575
|
+
"properties": {
|
|
2576
|
+
"name": {
|
|
2577
|
+
"type": "string",
|
|
2578
|
+
"description": "The property name the answer carries the value under."
|
|
2579
|
+
},
|
|
2580
|
+
"title": {
|
|
2581
|
+
"type": "string"
|
|
2582
|
+
},
|
|
2583
|
+
"description": {
|
|
2584
|
+
"type": "string"
|
|
2585
|
+
},
|
|
2586
|
+
"required": {
|
|
2587
|
+
"type": "boolean",
|
|
2588
|
+
"description": "The answer must carry a value for it."
|
|
2589
|
+
},
|
|
2590
|
+
"kind": {
|
|
2591
|
+
"type": "string",
|
|
2592
|
+
"const": "number"
|
|
2593
|
+
},
|
|
2594
|
+
"integer": {
|
|
2595
|
+
"type": "boolean",
|
|
2596
|
+
"description": "Whole numbers only (JSON Schema `integer`)."
|
|
2597
|
+
},
|
|
2598
|
+
"minimum": {
|
|
2599
|
+
"type": "number",
|
|
2600
|
+
"description": "Inclusive bounds."
|
|
2601
|
+
},
|
|
2602
|
+
"maximum": {
|
|
2603
|
+
"type": "number"
|
|
2604
|
+
},
|
|
2605
|
+
"default": {
|
|
2606
|
+
"type": "number"
|
|
2607
|
+
}
|
|
2608
|
+
},
|
|
2609
|
+
"required": [
|
|
2610
|
+
"integer",
|
|
2611
|
+
"kind",
|
|
2612
|
+
"name",
|
|
2613
|
+
"required"
|
|
2614
|
+
],
|
|
2615
|
+
"additionalProperties": false
|
|
2616
|
+
},
|
|
2617
|
+
"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}"
|
|
2618
|
+
},
|
|
2619
|
+
{
|
|
2620
|
+
"name": "IControllerElicitationOption",
|
|
2621
|
+
"schema": {
|
|
2622
|
+
"type": "object",
|
|
2623
|
+
"properties": {
|
|
2624
|
+
"value": {
|
|
2625
|
+
"type": "string"
|
|
2626
|
+
},
|
|
2627
|
+
"label": {
|
|
2628
|
+
"type": "string"
|
|
2629
|
+
}
|
|
2630
|
+
},
|
|
2631
|
+
"required": [
|
|
2632
|
+
"value",
|
|
2633
|
+
"label"
|
|
2634
|
+
],
|
|
2635
|
+
"additionalProperties": false,
|
|
2636
|
+
"description": "One choice: the value the answer carries, and the label the server gave it (its value when it gave none)."
|
|
2637
|
+
},
|
|
2638
|
+
"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}"
|
|
2639
|
+
},
|
|
2640
|
+
{
|
|
2641
|
+
"name": "IControllerElicitationSchema",
|
|
2642
|
+
"schema": {
|
|
2643
|
+
"type": "object",
|
|
2644
|
+
"properties": {
|
|
2645
|
+
"fields": {
|
|
2646
|
+
"type": "array",
|
|
2647
|
+
"items": {
|
|
2648
|
+
"$ref": "#/$defs/TControllerElicitationField"
|
|
2649
|
+
}
|
|
2650
|
+
}
|
|
2651
|
+
},
|
|
2652
|
+
"required": [
|
|
2653
|
+
"fields"
|
|
2654
|
+
],
|
|
2655
|
+
"additionalProperties": false,
|
|
2656
|
+
"description": "A form's fields in the order the server lists them."
|
|
2657
|
+
},
|
|
2658
|
+
"declaration": "/** A form's fields in the order the server lists them. */\ninterface IControllerElicitationSchema {\n fields: TControllerElicitationField[];\n}"
|
|
2659
|
+
},
|
|
2660
|
+
{
|
|
2661
|
+
"name": "IControllerElicitationTextField",
|
|
2662
|
+
"schema": {
|
|
2663
|
+
"type": "object",
|
|
2664
|
+
"properties": {
|
|
2665
|
+
"name": {
|
|
2666
|
+
"type": "string",
|
|
2667
|
+
"description": "The property name the answer carries the value under."
|
|
2668
|
+
},
|
|
2669
|
+
"title": {
|
|
2670
|
+
"type": "string"
|
|
2671
|
+
},
|
|
2672
|
+
"description": {
|
|
2673
|
+
"type": "string"
|
|
2674
|
+
},
|
|
2675
|
+
"required": {
|
|
2676
|
+
"type": "boolean",
|
|
2677
|
+
"description": "The answer must carry a value for it."
|
|
2678
|
+
},
|
|
2679
|
+
"kind": {
|
|
2680
|
+
"type": "string",
|
|
2681
|
+
"const": "text"
|
|
2682
|
+
},
|
|
2683
|
+
"format": {
|
|
2684
|
+
"$ref": "#/$defs/TControllerElicitationTextFormat"
|
|
2685
|
+
},
|
|
2686
|
+
"minLength": {
|
|
2687
|
+
"type": "number",
|
|
2688
|
+
"description": "In characters (Unicode code points), as JSON Schema counts them."
|
|
2689
|
+
},
|
|
2690
|
+
"maxLength": {
|
|
2691
|
+
"type": "number"
|
|
2692
|
+
},
|
|
2693
|
+
"default": {
|
|
2694
|
+
"type": "string"
|
|
2695
|
+
}
|
|
2696
|
+
},
|
|
2697
|
+
"required": [
|
|
2698
|
+
"kind",
|
|
2699
|
+
"name",
|
|
2700
|
+
"required"
|
|
2701
|
+
],
|
|
2702
|
+
"additionalProperties": false
|
|
2703
|
+
},
|
|
2704
|
+
"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}"
|
|
2705
|
+
},
|
|
2706
|
+
{
|
|
2707
|
+
"name": "IControllerElicitationUnsupported",
|
|
2708
|
+
"schema": {
|
|
2709
|
+
"type": "object",
|
|
2710
|
+
"properties": {
|
|
2711
|
+
"id": {
|
|
2712
|
+
"$ref": "#/$defs/IControllerRuntimeId"
|
|
2713
|
+
},
|
|
2714
|
+
"sessionId": {
|
|
2715
|
+
"$ref": "#/$defs/IControllerRuntimeId"
|
|
2716
|
+
},
|
|
2717
|
+
"serverName": {
|
|
2718
|
+
"type": "string",
|
|
2719
|
+
"description": "The MCP server that asks, as the harness names it."
|
|
2720
|
+
},
|
|
2721
|
+
"message": {
|
|
2722
|
+
"type": "string",
|
|
2723
|
+
"description": "What the server asks, in its words."
|
|
2724
|
+
},
|
|
2725
|
+
"createdAt": {
|
|
2726
|
+
"type": "number"
|
|
2727
|
+
},
|
|
2728
|
+
"mode": {
|
|
2729
|
+
"type": "string",
|
|
2730
|
+
"const": "unsupported"
|
|
2731
|
+
},
|
|
2732
|
+
"reason": {
|
|
2733
|
+
"type": "string"
|
|
2734
|
+
}
|
|
2735
|
+
},
|
|
2736
|
+
"required": [
|
|
2737
|
+
"createdAt",
|
|
2738
|
+
"id",
|
|
2739
|
+
"message",
|
|
2740
|
+
"mode",
|
|
2741
|
+
"reason",
|
|
2742
|
+
"serverName",
|
|
2743
|
+
"sessionId"
|
|
2744
|
+
],
|
|
2745
|
+
"additionalProperties": false,
|
|
2746
|
+
"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."
|
|
2747
|
+
},
|
|
2748
|
+
"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}"
|
|
2749
|
+
},
|
|
2750
|
+
{
|
|
2751
|
+
"name": "IControllerElicitationUrl",
|
|
2752
|
+
"schema": {
|
|
2753
|
+
"type": "object",
|
|
2754
|
+
"properties": {
|
|
2755
|
+
"id": {
|
|
2756
|
+
"$ref": "#/$defs/IControllerRuntimeId"
|
|
2757
|
+
},
|
|
2758
|
+
"sessionId": {
|
|
2759
|
+
"$ref": "#/$defs/IControllerRuntimeId"
|
|
2760
|
+
},
|
|
2761
|
+
"serverName": {
|
|
2762
|
+
"type": "string",
|
|
2763
|
+
"description": "The MCP server that asks, as the harness names it."
|
|
2764
|
+
},
|
|
2765
|
+
"message": {
|
|
2766
|
+
"type": "string",
|
|
2767
|
+
"description": "What the server asks, in its words."
|
|
2768
|
+
},
|
|
2769
|
+
"createdAt": {
|
|
2770
|
+
"type": "number"
|
|
2771
|
+
},
|
|
2772
|
+
"mode": {
|
|
2773
|
+
"type": "string",
|
|
2774
|
+
"const": "url"
|
|
2775
|
+
},
|
|
2776
|
+
"url": {
|
|
2777
|
+
"type": "string"
|
|
2778
|
+
}
|
|
2779
|
+
},
|
|
2780
|
+
"required": [
|
|
2781
|
+
"createdAt",
|
|
2782
|
+
"id",
|
|
2783
|
+
"message",
|
|
2784
|
+
"mode",
|
|
2785
|
+
"serverName",
|
|
2786
|
+
"sessionId",
|
|
2787
|
+
"url"
|
|
2788
|
+
],
|
|
2789
|
+
"additionalProperties": false,
|
|
2790
|
+
"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."
|
|
2791
|
+
},
|
|
2792
|
+
"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}"
|
|
2793
|
+
},
|
|
2386
2794
|
{
|
|
2387
2795
|
"name": "IControllerFlexAccountLimits",
|
|
2388
2796
|
"schema": {
|
|
@@ -3637,7 +4045,7 @@ export const AGL_API_SURFACE: plugins.flexTypedRequest.IFlexTypedRequestSurface
|
|
|
3637
4045
|
},
|
|
3638
4046
|
{
|
|
3639
4047
|
"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}"
|
|
4048
|
+
"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
4049
|
},
|
|
3642
4050
|
{
|
|
3643
4051
|
"name": "IControllerSessionError",
|
|
@@ -3833,7 +4241,7 @@ export const AGL_API_SURFACE: plugins.flexTypedRequest.IFlexTypedRequestSurface
|
|
|
3833
4241
|
},
|
|
3834
4242
|
"protocolVersion": {
|
|
3835
4243
|
"type": "number",
|
|
3836
|
-
"const":
|
|
4244
|
+
"const": 52
|
|
3837
4245
|
},
|
|
3838
4246
|
"upgradeManagementVersion": {
|
|
3839
4247
|
"type": "number"
|
|
@@ -3959,7 +4367,7 @@ export const AGL_API_SURFACE: plugins.flexTypedRequest.IFlexTypedRequestSurface
|
|
|
3959
4367
|
],
|
|
3960
4368
|
"additionalProperties": false
|
|
3961
4369
|
},
|
|
3962
|
-
"declaration": "interface IControllerStatus {\n packageName: string;\n packageVersion: string;\n protocolVersion:
|
|
4370
|
+
"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
4371
|
},
|
|
3964
4372
|
{
|
|
3965
4373
|
"name": "IControllerTerminalResource",
|
|
@@ -5414,6 +5822,61 @@ export const AGL_API_SURFACE: plugins.flexTypedRequest.IFlexTypedRequestSurface
|
|
|
5414
5822
|
},
|
|
5415
5823
|
"declaration": "/** FlexHarness owns the effective budget and clamps token overrides to the model's ceiling. */\ntype TControllerContextCompaction = { tokens: number } | { percent: number } | false;"
|
|
5416
5824
|
},
|
|
5825
|
+
{
|
|
5826
|
+
"name": "TControllerElicitation",
|
|
5827
|
+
"schema": {
|
|
5828
|
+
"anyOf": [
|
|
5829
|
+
{
|
|
5830
|
+
"$ref": "#/$defs/IControllerElicitationForm"
|
|
5831
|
+
},
|
|
5832
|
+
{
|
|
5833
|
+
"$ref": "#/$defs/IControllerElicitationUrl"
|
|
5834
|
+
},
|
|
5835
|
+
{
|
|
5836
|
+
"$ref": "#/$defs/IControllerElicitationUnsupported"
|
|
5837
|
+
}
|
|
5838
|
+
],
|
|
5839
|
+
"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."
|
|
5840
|
+
},
|
|
5841
|
+
"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;"
|
|
5842
|
+
},
|
|
5843
|
+
{
|
|
5844
|
+
"name": "TControllerElicitationField",
|
|
5845
|
+
"schema": {
|
|
5846
|
+
"anyOf": [
|
|
5847
|
+
{
|
|
5848
|
+
"$ref": "#/$defs/IControllerElicitationTextField"
|
|
5849
|
+
},
|
|
5850
|
+
{
|
|
5851
|
+
"$ref": "#/$defs/IControllerElicitationNumberField"
|
|
5852
|
+
},
|
|
5853
|
+
{
|
|
5854
|
+
"$ref": "#/$defs/IControllerElicitationBooleanField"
|
|
5855
|
+
},
|
|
5856
|
+
{
|
|
5857
|
+
"$ref": "#/$defs/IControllerElicitationChoiceField"
|
|
5858
|
+
},
|
|
5859
|
+
{
|
|
5860
|
+
"$ref": "#/$defs/IControllerElicitationChoicesField"
|
|
5861
|
+
}
|
|
5862
|
+
]
|
|
5863
|
+
},
|
|
5864
|
+
"declaration": "type TControllerElicitationField =\n | IControllerElicitationTextField\n | IControllerElicitationNumberField\n | IControllerElicitationBooleanField\n | IControllerElicitationChoiceField\n | IControllerElicitationChoicesField;"
|
|
5865
|
+
},
|
|
5866
|
+
{
|
|
5867
|
+
"name": "TControllerElicitationTextFormat",
|
|
5868
|
+
"schema": {
|
|
5869
|
+
"type": "string",
|
|
5870
|
+
"enum": [
|
|
5871
|
+
"email",
|
|
5872
|
+
"uri",
|
|
5873
|
+
"date",
|
|
5874
|
+
"date-time"
|
|
5875
|
+
],
|
|
5876
|
+
"description": "The string formats MCP names; a value is checked against its format before it is sent."
|
|
5877
|
+
},
|
|
5878
|
+
"declaration": "/** The string formats MCP names; a value is checked against its format before it is sent. */\ntype TControllerElicitationTextFormat = 'email' | 'uri' | 'date' | 'date-time';"
|
|
5879
|
+
},
|
|
5417
5880
|
{
|
|
5418
5881
|
"name": "TControllerHarnessId",
|
|
5419
5882
|
"schema": {
|
|
@@ -5551,6 +6014,13 @@ export const AGL_API_SURFACE: plugins.flexTypedRequest.IFlexTypedRequestSurface
|
|
|
5551
6014
|
"$ref": "#/$defs/IControllerQuestion"
|
|
5552
6015
|
}
|
|
5553
6016
|
},
|
|
6017
|
+
"elicitations": {
|
|
6018
|
+
"type": "array",
|
|
6019
|
+
"items": {
|
|
6020
|
+
"$ref": "#/$defs/TControllerElicitation"
|
|
6021
|
+
},
|
|
6022
|
+
"description": "MCP elicitations of a Claude Code or Codex conversation; empty for every other harness."
|
|
6023
|
+
},
|
|
5554
6024
|
"todos": {
|
|
5555
6025
|
"type": "array",
|
|
5556
6026
|
"items": {
|
|
@@ -5613,6 +6083,7 @@ export const AGL_API_SURFACE: plugins.flexTypedRequest.IFlexTypedRequestSurface
|
|
|
5613
6083
|
"pendingPrompts",
|
|
5614
6084
|
"permissions",
|
|
5615
6085
|
"questions",
|
|
6086
|
+
"elicitations",
|
|
5616
6087
|
"todos",
|
|
5617
6088
|
"scratchpad",
|
|
5618
6089
|
"intelligenceExchanges",
|
package/ts/aglapi/interfaces.ts
CHANGED
|
@@ -140,7 +140,9 @@ export const aglApiMethods = {
|
|
|
140
140
|
'agl.mcp.fleet.worker.refresh': { use: 'excluded', exclusion: 'person', reason: ownerToken },
|
|
141
141
|
'agl.mcp.fleet.worker.move': { use: 'excluded', exclusion: 'person', reason: ownerToken },
|
|
142
142
|
'agl.mcp.fleet.worker.list': { use: 'excluded', exclusion: 'person', reason: ownerToken },
|
|
143
|
+
'agl.mcp.fleet.worker.get': { use: 'excluded', exclusion: 'person', reason: ownerToken },
|
|
143
144
|
'agl.mcp.fleet.worker.status': { use: 'excluded', exclusion: 'person', reason: ownerToken },
|
|
145
|
+
'agl.mcp.fleet.worker.job-wait': { use: 'excluded', exclusion: 'person', reason: ownerToken },
|
|
144
146
|
'agl.mcp.fleet.worker.watch': { use: 'excluded', exclusion: 'person', reason: ownerToken },
|
|
145
147
|
'agl.mcp.fleet.worker.native-message': { use: 'excluded', exclusion: 'person', reason: ownerToken },
|
|
146
148
|
// A worker never hides its own failure: only a person acknowledges a failed session.
|