@github/copilot-sdk-darwin-x64 1.0.13-preview.6 → 1.0.13
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/package.json +1 -1
- package/plugins/computer-use/.plugin/plugin.json +1 -1
- package/plugins/computer-use/Copilot Computer Use.app/Contents/CodeResources +0 -0
- package/plugins/computer-use/Copilot Computer Use.app/Contents/Info.plist +2 -2
- package/plugins/computer-use/Copilot Computer Use.app/Contents/MacOS/Copilot Computer Use +0 -0
- package/plugins/computer-use/computer-use-mcp +0 -0
- package/prebuilds/darwin-x64/copilot-runtime +0 -0
- package/prebuilds/darwin-x64/runtime.node +0 -0
- package/ripgrep/bin/darwin-arm64/rg +0 -0
- package/ripgrep/bin/darwin-x64/rg +0 -0
- package/schemas/api.schema.json +1244 -16
- package/schemas/session-events.schema.json +339 -11
- package/sdk/index.js +259 -259
- package/tgrep/bin/darwin-arm64/tgrep +0 -0
- package/tgrep/bin/darwin-x64/tgrep +0 -0
package/schemas/api.schema.json
CHANGED
|
@@ -666,6 +666,15 @@
|
|
|
666
666
|
"description": "Validated device-managed settings discovered before a session exists."
|
|
667
667
|
},
|
|
668
668
|
"stability": "experimental"
|
|
669
|
+
},
|
|
670
|
+
"clearCache": {
|
|
671
|
+
"rpcMethod": "managedSettings.clearCache",
|
|
672
|
+
"description": "Force-refreshes enterprise managed settings for every account: wipes the persistent server-policy cache (the whole `<cacheHome>/managed-settings` directory) and drops this runtime process's in-memory retained server policy. It does not itself fetch policy — the effect is that the next time a session resolves managed settings for an account, that resolution re-fetches the account's org policy from the network instead of serving a cached response. Note that `managedSettings.read` returns only device/MDM settings and never triggers the account server-policy fetch, so a host implementing \"sync account policy\" should start a fresh session resolution rather than treat a subsequent `managedSettings.read` as the refreshed org policy. Mirrors the invalidation a sign-out performs, broadened from the one signing-out account to all of them; device/MDM layers describe the machine, not the account, and are left untouched. Rejects if the on-disk cache cannot be removed.",
|
|
673
|
+
"params": null,
|
|
674
|
+
"result": {
|
|
675
|
+
"type": "null"
|
|
676
|
+
},
|
|
677
|
+
"stability": "experimental"
|
|
669
678
|
}
|
|
670
679
|
},
|
|
671
680
|
"runtime": {
|
|
@@ -2612,7 +2621,7 @@
|
|
|
2612
2621
|
"model": {
|
|
2613
2622
|
"getCurrent": {
|
|
2614
2623
|
"rpcMethod": "session.model.getCurrent",
|
|
2615
|
-
"description": "Gets the
|
|
2624
|
+
"description": "Gets the session's authoritative model snapshot, including the committed Auto preference and any newer unclaimed Auto preference waiting for a future user turn.",
|
|
2616
2625
|
"params": {
|
|
2617
2626
|
"type": "object",
|
|
2618
2627
|
"properties": {
|
|
@@ -2629,7 +2638,7 @@
|
|
|
2629
2638
|
},
|
|
2630
2639
|
"result": {
|
|
2631
2640
|
"$ref": "#/definitions/CurrentModel",
|
|
2632
|
-
"description": "The
|
|
2641
|
+
"description": "The session's authoritative model snapshot. Auto preference fields are configuration for the virtual `auto` model and do not change the selected model identifier. The context tier reflects `Session.getContextTier()`, restored from the session journal on resume."
|
|
2633
2642
|
},
|
|
2634
2643
|
"stability": "experimental"
|
|
2635
2644
|
},
|
|
@@ -2647,6 +2656,18 @@
|
|
|
2647
2656
|
"type": "string",
|
|
2648
2657
|
"description": "Model selection id to switch to, as returned by `list`. A bare id (e.g. `claude-sonnet-4.6`) names a Copilot (CAPI) model; a provider-qualified id (`provider/id`, e.g. `acme/claude-sonnet`) targets a registry BYOK model."
|
|
2649
2658
|
},
|
|
2659
|
+
"autoTier": {
|
|
2660
|
+
"anyOf": [
|
|
2661
|
+
{
|
|
2662
|
+
"$ref": "#/definitions/AutoTier",
|
|
2663
|
+
"description": "Routing preference used when the session model is `auto`."
|
|
2664
|
+
},
|
|
2665
|
+
{
|
|
2666
|
+
"type": "null"
|
|
2667
|
+
}
|
|
2668
|
+
],
|
|
2669
|
+
"description": "Optional Auto routing preference to stage atomically with selecting `auto`. Pass null to return to provider-default Auto routing. This field is rejected when `modelId` is not `auto`."
|
|
2670
|
+
},
|
|
2650
2671
|
"reasoningEffort": {
|
|
2651
2672
|
"type": "string",
|
|
2652
2673
|
"description": "Reasoning effort level to use for the model. CAPI values are model-defined and validated against the selected model; BYOK providers may define additional values. \"none\" disables reasoning. When omitted, no effort override is applied."
|
|
@@ -2715,6 +2736,48 @@
|
|
|
2715
2736
|
},
|
|
2716
2737
|
"stability": "experimental"
|
|
2717
2738
|
},
|
|
2739
|
+
"switchAutoTier": {
|
|
2740
|
+
"rpcMethod": "session.model.switchAutoTier",
|
|
2741
|
+
"description": "Requests an Auto preference change without changing the session's selected model. The latest unclaimed request wins; the runtime commits it only after a later prompt using the `auto` model mints a usable model and token pair. A `pending` response confirms that the request was accepted, not that it committed. Observe eventual success through `session.model_change`, failure through the ephemeral `session.auto_tier_switch_failed` event, or current unclaimed state through `session.model.getCurrent`.",
|
|
2742
|
+
"params": {
|
|
2743
|
+
"type": "object",
|
|
2744
|
+
"properties": {
|
|
2745
|
+
"sessionId": {
|
|
2746
|
+
"type": "string",
|
|
2747
|
+
"description": "Target session identifier"
|
|
2748
|
+
},
|
|
2749
|
+
"autoTier": {
|
|
2750
|
+
"anyOf": [
|
|
2751
|
+
{
|
|
2752
|
+
"$ref": "#/definitions/AutoTier",
|
|
2753
|
+
"description": "Routing preference used when the session model is `auto`."
|
|
2754
|
+
},
|
|
2755
|
+
{
|
|
2756
|
+
"type": "null"
|
|
2757
|
+
}
|
|
2758
|
+
],
|
|
2759
|
+
"description": "Auto preference to activate when a future user turn using the `auto` model safely mints a replacement model and token pair. Pass null to return to provider-default Auto routing."
|
|
2760
|
+
},
|
|
2761
|
+
"source": {
|
|
2762
|
+
"$ref": "#/definitions/ModelChangeSource",
|
|
2763
|
+
"description": "Origin to record on the effective `session.model_change` event. Defaults to `sdk` when omitted."
|
|
2764
|
+
}
|
|
2765
|
+
},
|
|
2766
|
+
"required": [
|
|
2767
|
+
"sessionId",
|
|
2768
|
+
"autoTier"
|
|
2769
|
+
],
|
|
2770
|
+
"additionalProperties": false,
|
|
2771
|
+
"description": "An Auto preference request for the session. This updates Auto configuration only; it does not change the selected model to `auto`.",
|
|
2772
|
+
"title": "ModelSwitchAutoTierRequest",
|
|
2773
|
+
"stability": "experimental"
|
|
2774
|
+
},
|
|
2775
|
+
"result": {
|
|
2776
|
+
"$ref": "#/definitions/ModelSwitchAutoTierResult",
|
|
2777
|
+
"description": "Immediate acknowledgement and Auto preference snapshot after a switch request. This result never implies that a pending preference committed."
|
|
2778
|
+
},
|
|
2779
|
+
"stability": "experimental"
|
|
2780
|
+
},
|
|
2718
2781
|
"applyStartupOverlay": {
|
|
2719
2782
|
"rpcMethod": "session.model.applyStartupOverlay",
|
|
2720
2783
|
"description": "Resolves and applies organization-managed and repository model overlays.",
|
|
@@ -3600,6 +3663,31 @@
|
|
|
3600
3663
|
"stability": "experimental"
|
|
3601
3664
|
}
|
|
3602
3665
|
},
|
|
3666
|
+
"autopilotObjective": {
|
|
3667
|
+
"getState": {
|
|
3668
|
+
"rpcMethod": "session.autopilotObjective.getState",
|
|
3669
|
+
"description": "Reads the current canonical autopilot objective state for this session.",
|
|
3670
|
+
"params": {
|
|
3671
|
+
"type": "object",
|
|
3672
|
+
"properties": {
|
|
3673
|
+
"sessionId": {
|
|
3674
|
+
"type": "string",
|
|
3675
|
+
"description": "Target session identifier"
|
|
3676
|
+
}
|
|
3677
|
+
},
|
|
3678
|
+
"required": [
|
|
3679
|
+
"sessionId"
|
|
3680
|
+
],
|
|
3681
|
+
"additionalProperties": false,
|
|
3682
|
+
"description": "Identifies the target session."
|
|
3683
|
+
},
|
|
3684
|
+
"result": {
|
|
3685
|
+
"$ref": "#/definitions/AutopilotObjectiveGetStateResult",
|
|
3686
|
+
"description": "Canonical runtime state for the session's current autopilot objective."
|
|
3687
|
+
},
|
|
3688
|
+
"stability": "experimental"
|
|
3689
|
+
}
|
|
3690
|
+
},
|
|
3603
3691
|
"completions": {
|
|
3604
3692
|
"getTriggerCharacters": {
|
|
3605
3693
|
"rpcMethod": "session.completions.getTriggerCharacters",
|
|
@@ -3963,6 +4051,102 @@
|
|
|
3963
4051
|
},
|
|
3964
4052
|
"stability": "experimental"
|
|
3965
4053
|
},
|
|
4054
|
+
"register": {
|
|
4055
|
+
"rpcMethod": "session.tasks.register",
|
|
4056
|
+
"description": "Registers a client-owned task, or reclaims an orphaned task belonging to the same extension principal.",
|
|
4057
|
+
"params": {
|
|
4058
|
+
"type": "object",
|
|
4059
|
+
"properties": {
|
|
4060
|
+
"sessionId": {
|
|
4061
|
+
"type": "string",
|
|
4062
|
+
"description": "Target session identifier"
|
|
4063
|
+
},
|
|
4064
|
+
"type": {
|
|
4065
|
+
"$ref": "#/definitions/TaskClientType",
|
|
4066
|
+
"const": "client",
|
|
4067
|
+
"description": "Task kind"
|
|
4068
|
+
},
|
|
4069
|
+
"clientTaskId": {
|
|
4070
|
+
"type": "string",
|
|
4071
|
+
"description": "Owner-scoped idempotency key used for registration and reclaim"
|
|
4072
|
+
},
|
|
4073
|
+
"description": {
|
|
4074
|
+
"type": "string",
|
|
4075
|
+
"description": "Human-readable description of the external work"
|
|
4076
|
+
},
|
|
4077
|
+
"displayName": {
|
|
4078
|
+
"type": "string",
|
|
4079
|
+
"description": "Optional short display name for the external work"
|
|
4080
|
+
},
|
|
4081
|
+
"cancellable": {
|
|
4082
|
+
"type": "boolean",
|
|
4083
|
+
"description": "Whether the owner supports runtime cancellation requests"
|
|
4084
|
+
},
|
|
4085
|
+
"expectedSequence": {
|
|
4086
|
+
"type": "integer",
|
|
4087
|
+
"minimum": 0,
|
|
4088
|
+
"description": "Expected current sequence for idempotent registration or orphan reclaim"
|
|
4089
|
+
}
|
|
4090
|
+
},
|
|
4091
|
+
"required": [
|
|
4092
|
+
"sessionId",
|
|
4093
|
+
"type",
|
|
4094
|
+
"clientTaskId",
|
|
4095
|
+
"description",
|
|
4096
|
+
"cancellable"
|
|
4097
|
+
],
|
|
4098
|
+
"additionalProperties": false,
|
|
4099
|
+
"description": "Registers or reclaims a client-owned task.",
|
|
4100
|
+
"title": "TasksRegisterRequest",
|
|
4101
|
+
"stability": "experimental"
|
|
4102
|
+
},
|
|
4103
|
+
"result": {
|
|
4104
|
+
"$ref": "#/definitions/TasksRegisterResult",
|
|
4105
|
+
"description": "Result of registering or reclaiming a client-owned task."
|
|
4106
|
+
},
|
|
4107
|
+
"stability": "experimental"
|
|
4108
|
+
},
|
|
4109
|
+
"update": {
|
|
4110
|
+
"rpcMethod": "session.tasks.update",
|
|
4111
|
+
"description": "Publishes generic progress or a terminal outcome for a client-owned task.",
|
|
4112
|
+
"params": {
|
|
4113
|
+
"type": "object",
|
|
4114
|
+
"properties": {
|
|
4115
|
+
"sessionId": {
|
|
4116
|
+
"type": "string",
|
|
4117
|
+
"description": "Target session identifier"
|
|
4118
|
+
},
|
|
4119
|
+
"id": {
|
|
4120
|
+
"type": "string",
|
|
4121
|
+
"description": "Canonical runtime-generated task identifier"
|
|
4122
|
+
},
|
|
4123
|
+
"sequence": {
|
|
4124
|
+
"type": "integer",
|
|
4125
|
+
"minimum": 0,
|
|
4126
|
+
"description": "Owner update sequence to apply"
|
|
4127
|
+
},
|
|
4128
|
+
"update": {
|
|
4129
|
+
"$ref": "#/definitions/TaskClientUpdate",
|
|
4130
|
+
"description": "Progress or terminal update payload"
|
|
4131
|
+
}
|
|
4132
|
+
},
|
|
4133
|
+
"required": [
|
|
4134
|
+
"sessionId",
|
|
4135
|
+
"id",
|
|
4136
|
+
"sequence",
|
|
4137
|
+
"update"
|
|
4138
|
+
],
|
|
4139
|
+
"additionalProperties": false,
|
|
4140
|
+
"description": "Updates a client-owned task.",
|
|
4141
|
+
"title": "TasksUpdateRequest",
|
|
4142
|
+
"stability": "experimental"
|
|
4143
|
+
},
|
|
4144
|
+
"result": {
|
|
4145
|
+
"$ref": "#/definitions/TasksUpdateResult",
|
|
4146
|
+
"description": "Result of publishing a client-owned task update."
|
|
4147
|
+
},
|
|
4148
|
+
"stability": "experimental"
|
|
4149
|
+
},
|
|
3966
4150
|
"refresh": {
|
|
3967
4151
|
"rpcMethod": "session.tasks.refresh",
|
|
3968
4152
|
"description": "Refreshes metadata for any detached background shells the runtime knows about.",
|
|
@@ -9972,6 +10156,53 @@
|
|
|
9972
10156
|
"stability": "experimental"
|
|
9973
10157
|
}
|
|
9974
10158
|
},
|
|
10159
|
+
"tasks": {
|
|
10160
|
+
"cancel": {
|
|
10161
|
+
"rpcMethod": "tasks.cancel",
|
|
10162
|
+
"description": "Asks the client currently bound to a client-owned session task to confirm that its external work stopped.",
|
|
10163
|
+
"params": {
|
|
10164
|
+
"type": "object",
|
|
10165
|
+
"properties": {
|
|
10166
|
+
"sessionId": {
|
|
10167
|
+
"type": "string",
|
|
10168
|
+
"description": "Session that owns the client task"
|
|
10169
|
+
},
|
|
10170
|
+
"id": {
|
|
10171
|
+
"type": "string",
|
|
10172
|
+
"description": "Canonical runtime-generated task identifier"
|
|
10173
|
+
},
|
|
10174
|
+
"clientTaskId": {
|
|
10175
|
+
"type": "string",
|
|
10176
|
+
"description": "Owner-scoped task key included for correlation"
|
|
10177
|
+
},
|
|
10178
|
+
"cancellationId": {
|
|
10179
|
+
"type": "string",
|
|
10180
|
+
"description": "Opaque identifier shared by coalesced cancellation callers"
|
|
10181
|
+
},
|
|
10182
|
+
"reason": {
|
|
10183
|
+
"$ref": "#/definitions/ClientTaskCancelReason",
|
|
10184
|
+
"description": "Reason the runtime requests cancellation"
|
|
10185
|
+
}
|
|
10186
|
+
},
|
|
10187
|
+
"required": [
|
|
10188
|
+
"sessionId",
|
|
10189
|
+
"id",
|
|
10190
|
+
"clientTaskId",
|
|
10191
|
+
"cancellationId",
|
|
10192
|
+
"reason"
|
|
10193
|
+
],
|
|
10194
|
+
"additionalProperties": false,
|
|
10195
|
+
"description": "Runtime-to-owner cancellation request for a client-owned task.",
|
|
10196
|
+
"title": "ClientTaskCancelRequest",
|
|
10197
|
+
"stability": "experimental"
|
|
10198
|
+
},
|
|
10199
|
+
"result": {
|
|
10200
|
+
"$ref": "#/definitions/ClientTaskCancelResult",
|
|
10201
|
+
"description": "Whether the client authoritatively confirmed its external work stopped."
|
|
10202
|
+
},
|
|
10203
|
+
"stability": "experimental"
|
|
10204
|
+
}
|
|
10205
|
+
},
|
|
9975
10206
|
"sessionFs": {
|
|
9976
10207
|
"readFile": {
|
|
9977
10208
|
"rpcMethod": "sessionFs.readFile",
|
|
@@ -12686,6 +12917,125 @@
|
|
|
12686
12917
|
"description": "Validation errors from the most recent authentication attempt.",
|
|
12687
12918
|
"title": "AuthValidationErrors"
|
|
12688
12919
|
},
|
|
12920
|
+
"AutopilotObjectiveCreditLimit": {
|
|
12921
|
+
"type": "object",
|
|
12922
|
+
"properties": {
|
|
12923
|
+
"credits": {
|
|
12924
|
+
"type": "number",
|
|
12925
|
+
"description": "Configured AI-credit cap, when one is set."
|
|
12926
|
+
},
|
|
12927
|
+
"creditsUsed": {
|
|
12928
|
+
"type": "number",
|
|
12929
|
+
"description": "Window consumption in fractional AI credits, for display."
|
|
12930
|
+
},
|
|
12931
|
+
"creditsUsedNanoAiu": {
|
|
12932
|
+
"type": "string",
|
|
12933
|
+
"pattern": "^[0-9]+$",
|
|
12934
|
+
"description": "Exact window consumption in non-negative integer nano-AIU, encoded as a decimal string."
|
|
12935
|
+
}
|
|
12936
|
+
},
|
|
12937
|
+
"required": [
|
|
12938
|
+
"creditsUsed",
|
|
12939
|
+
"creditsUsedNanoAiu"
|
|
12940
|
+
],
|
|
12941
|
+
"additionalProperties": false,
|
|
12942
|
+
"description": "Current per-window credit limit and consumption for an autopilot objective.",
|
|
12943
|
+
"title": "AutopilotObjectiveCreditLimit",
|
|
12944
|
+
"stability": "experimental"
|
|
12945
|
+
},
|
|
12946
|
+
"AutopilotObjectiveGetStateResult": {
|
|
12947
|
+
"type": "object",
|
|
12948
|
+
"properties": {
|
|
12949
|
+
"state": {
|
|
12950
|
+
"anyOf": [
|
|
12951
|
+
{
|
|
12952
|
+
"$ref": "#/definitions/AutopilotObjectiveState",
|
|
12953
|
+
"description": "Public, persistence-independent projection of an autopilot objective."
|
|
12954
|
+
},
|
|
12955
|
+
{
|
|
12956
|
+
"type": "null"
|
|
12957
|
+
}
|
|
12958
|
+
],
|
|
12959
|
+
"description": "Current objective state, or `null` when the session has no objective."
|
|
12960
|
+
}
|
|
12961
|
+
},
|
|
12962
|
+
"required": [
|
|
12963
|
+
"state"
|
|
12964
|
+
],
|
|
12965
|
+
"additionalProperties": false,
|
|
12966
|
+
"description": "Canonical runtime state for the session's current autopilot objective.",
|
|
12967
|
+
"title": "AutopilotObjectiveGetStateResult",
|
|
12968
|
+
"stability": "experimental"
|
|
12969
|
+
},
|
|
12970
|
+
"AutopilotObjectiveState": {
|
|
12971
|
+
"type": "object",
|
|
12972
|
+
"properties": {
|
|
12973
|
+
"id": {
|
|
12974
|
+
"type": "integer",
|
|
12975
|
+
"minimum": 1,
|
|
12976
|
+
"maximum": 9007199254740991,
|
|
12977
|
+
"description": "Session-local objective identifier."
|
|
12978
|
+
},
|
|
12979
|
+
"objective": {
|
|
12980
|
+
"type": "string",
|
|
12981
|
+
"description": "User-provided objective text."
|
|
12982
|
+
},
|
|
12983
|
+
"status": {
|
|
12984
|
+
"$ref": "#/definitions/AutopilotObjectiveStatus",
|
|
12985
|
+
"description": "Current normalized lifecycle status."
|
|
12986
|
+
},
|
|
12987
|
+
"turnCount": {
|
|
12988
|
+
"type": "integer",
|
|
12989
|
+
"minimum": 0,
|
|
12990
|
+
"maximum": 9007199254740991,
|
|
12991
|
+
"description": "Number of objective turns started."
|
|
12992
|
+
},
|
|
12993
|
+
"pauseReason": {
|
|
12994
|
+
"type": "string",
|
|
12995
|
+
"description": "Optional reason the objective is paused."
|
|
12996
|
+
},
|
|
12997
|
+
"completionSummary": {
|
|
12998
|
+
"type": "string",
|
|
12999
|
+
"description": "Optional summary recorded when the objective completed."
|
|
13000
|
+
},
|
|
13001
|
+
"creditCountNanoAiu": {
|
|
13002
|
+
"type": "string",
|
|
13003
|
+
"pattern": "^[0-9]+$",
|
|
13004
|
+
"description": "Exact lifetime AI-credit consumption in non-negative integer nano-AIU, encoded as a decimal string."
|
|
13005
|
+
},
|
|
13006
|
+
"creditLimit": {
|
|
13007
|
+
"$ref": "#/definitions/AutopilotObjectiveCreditLimit",
|
|
13008
|
+
"description": "Current per-window consumption and optional cap, when a credit-tracking window is present."
|
|
13009
|
+
}
|
|
13010
|
+
},
|
|
13011
|
+
"required": [
|
|
13012
|
+
"id",
|
|
13013
|
+
"objective",
|
|
13014
|
+
"status",
|
|
13015
|
+
"turnCount",
|
|
13016
|
+
"creditCountNanoAiu"
|
|
13017
|
+
],
|
|
13018
|
+
"additionalProperties": false,
|
|
13019
|
+
"description": "Public, persistence-independent projection of an autopilot objective.",
|
|
13020
|
+
"title": "AutopilotObjectiveState",
|
|
13021
|
+
"stability": "experimental"
|
|
13022
|
+
},
|
|
13023
|
+
"AutopilotObjectiveStatus": {
|
|
13024
|
+
"type": "string",
|
|
13025
|
+
"enum": [
|
|
13026
|
+
"active",
|
|
13027
|
+
"paused",
|
|
13028
|
+
"completed"
|
|
13029
|
+
],
|
|
13030
|
+
"description": "Current normalized autopilot objective lifecycle status.",
|
|
13031
|
+
"title": "AutopilotObjectiveStatus",
|
|
13032
|
+
"x-enumDescriptions": {
|
|
13033
|
+
"active": "The objective is actively running.",
|
|
13034
|
+
"paused": "The objective is paused and may be resumed.",
|
|
13035
|
+
"completed": "The objective completed."
|
|
13036
|
+
},
|
|
13037
|
+
"stability": "experimental"
|
|
13038
|
+
},
|
|
12689
13039
|
"AutoTier": {
|
|
12690
13040
|
"type": "string",
|
|
12691
13041
|
"enum": [
|
|
@@ -13311,7 +13661,7 @@
|
|
|
13311
13661
|
"properties": {
|
|
13312
13662
|
"autoTier": {
|
|
13313
13663
|
"$ref": "#/definitions/AutoTier",
|
|
13314
|
-
"description": "Routing preference
|
|
13664
|
+
"description": "Routing preference for sessions whose model is `auto`. On create or cold resume, this establishes the preference sent as `tier` on CAPI `/auto` requests; when omitted on cold resume, the runtime restores the last committed preference. On resident resume, a different value requests a safe switch after resume succeeds and cannot change an in-flight turn. Successful switches are persisted for later cold resume. When no preference is supplied or restored, CAPI default routing is used."
|
|
13315
13665
|
},
|
|
13316
13666
|
"enableWebSocketResponses": {
|
|
13317
13667
|
"type": "boolean",
|
|
@@ -14501,6 +14851,70 @@
|
|
|
14501
14851
|
"description": "The request asked for a candidate kind this runtime does not serve.",
|
|
14502
14852
|
"title": "CatalogUnsupportedKindError"
|
|
14503
14853
|
},
|
|
14854
|
+
"ClientTaskCancelReason": {
|
|
14855
|
+
"type": "string",
|
|
14856
|
+
"enum": [
|
|
14857
|
+
"cancel_requested",
|
|
14858
|
+
"session_shutdown"
|
|
14859
|
+
],
|
|
14860
|
+
"description": "Why the runtime requests client-task cancellation.",
|
|
14861
|
+
"title": "ClientTaskCancelReason",
|
|
14862
|
+
"x-enumDescriptions": {
|
|
14863
|
+
"cancel_requested": "A caller requested task cancellation.",
|
|
14864
|
+
"session_shutdown": "The session is shutting down."
|
|
14865
|
+
}
|
|
14866
|
+
},
|
|
14867
|
+
"ClientTaskCancelRequest": {
|
|
14868
|
+
"type": "object",
|
|
14869
|
+
"properties": {
|
|
14870
|
+
"sessionId": {
|
|
14871
|
+
"type": "string",
|
|
14872
|
+
"description": "Session that owns the client task"
|
|
14873
|
+
},
|
|
14874
|
+
"id": {
|
|
14875
|
+
"type": "string",
|
|
14876
|
+
"description": "Canonical runtime-generated task identifier"
|
|
14877
|
+
},
|
|
14878
|
+
"clientTaskId": {
|
|
14879
|
+
"type": "string",
|
|
14880
|
+
"description": "Owner-scoped task key included for correlation"
|
|
14881
|
+
},
|
|
14882
|
+
"cancellationId": {
|
|
14883
|
+
"type": "string",
|
|
14884
|
+
"description": "Opaque identifier shared by coalesced cancellation callers"
|
|
14885
|
+
},
|
|
14886
|
+
"reason": {
|
|
14887
|
+
"$ref": "#/definitions/ClientTaskCancelReason",
|
|
14888
|
+
"description": "Reason the runtime requests cancellation"
|
|
14889
|
+
}
|
|
14890
|
+
},
|
|
14891
|
+
"required": [
|
|
14892
|
+
"sessionId",
|
|
14893
|
+
"id",
|
|
14894
|
+
"clientTaskId",
|
|
14895
|
+
"cancellationId",
|
|
14896
|
+
"reason"
|
|
14897
|
+
],
|
|
14898
|
+
"additionalProperties": false,
|
|
14899
|
+
"description": "Runtime-to-owner cancellation request for a client-owned task.",
|
|
14900
|
+
"title": "ClientTaskCancelRequest",
|
|
14901
|
+
"stability": "experimental"
|
|
14902
|
+
},
|
|
14903
|
+
"ClientTaskCancelResult": {
|
|
14904
|
+
"type": "object",
|
|
14905
|
+
"properties": {
|
|
14906
|
+
"cancelled": {
|
|
14907
|
+
"type": "boolean",
|
|
14908
|
+
"description": "True only when the owner confirms that external work stopped before responding"
|
|
14909
|
+
}
|
|
14910
|
+
},
|
|
14911
|
+
"required": [
|
|
14912
|
+
"cancelled"
|
|
14913
|
+
],
|
|
14914
|
+
"additionalProperties": false,
|
|
14915
|
+
"description": "Whether the client authoritatively confirmed its external work stopped.",
|
|
14916
|
+
"title": "ClientTaskCancelResult"
|
|
14917
|
+
},
|
|
14504
14918
|
"CommandList": {
|
|
14505
14919
|
"type": "object",
|
|
14506
14920
|
"properties": {
|
|
@@ -14937,6 +15351,14 @@
|
|
|
14937
15351
|
"$ref": "#/definitions/ConnectClientInfo",
|
|
14938
15352
|
"description": "Identity of the integrating host. Optional; omit it to keep the default attribution."
|
|
14939
15353
|
},
|
|
15354
|
+
"supportedTaskKinds": {
|
|
15355
|
+
"type": "array",
|
|
15356
|
+
"items": {
|
|
15357
|
+
"$ref": "#/definitions/TaskKind",
|
|
15358
|
+
"description": "Closed set of public task kinds a connection can negotiate."
|
|
15359
|
+
},
|
|
15360
|
+
"description": "Task kinds this connection can decode when observing session tasks. Omit to retain agent and shell compatibility."
|
|
15361
|
+
},
|
|
14940
15362
|
"token": {
|
|
14941
15363
|
"type": "string",
|
|
14942
15364
|
"description": "Connection token; required when the server was started with COPILOT_CONNECTION_TOKEN"
|
|
@@ -14963,6 +15385,14 @@
|
|
|
14963
15385
|
"version": {
|
|
14964
15386
|
"type": "string",
|
|
14965
15387
|
"description": "Server package version"
|
|
15388
|
+
},
|
|
15389
|
+
"taskKinds": {
|
|
15390
|
+
"type": "array",
|
|
15391
|
+
"items": {
|
|
15392
|
+
"$ref": "#/definitions/TaskKind",
|
|
15393
|
+
"description": "Closed set of public task kinds a connection can negotiate."
|
|
15394
|
+
},
|
|
15395
|
+
"description": "Task kinds the server may return to this connection."
|
|
14966
15396
|
}
|
|
14967
15397
|
},
|
|
14968
15398
|
"required": [
|
|
@@ -15616,10 +16046,38 @@
|
|
|
15616
16046
|
"contextTier": {
|
|
15617
16047
|
"$ref": "#/definitions/ContextTier",
|
|
15618
16048
|
"description": "Context tier for models that support multiple context-window sizes."
|
|
16049
|
+
},
|
|
16050
|
+
"autoTier": {
|
|
16051
|
+
"$ref": "#/definitions/AutoTier",
|
|
16052
|
+
"description": "Auto preference currently committed for the session. This can remain available while another model is selected so a later switch to `auto` can reuse it."
|
|
16053
|
+
},
|
|
16054
|
+
"pendingAutoTier": {
|
|
16055
|
+
"anyOf": [
|
|
16056
|
+
{
|
|
16057
|
+
"$ref": "#/definitions/AutoTier",
|
|
16058
|
+
"description": "Routing preference used when the session model is `auto`."
|
|
16059
|
+
},
|
|
16060
|
+
{
|
|
16061
|
+
"type": "null"
|
|
16062
|
+
}
|
|
16063
|
+
],
|
|
16064
|
+
"description": "Latest unclaimed Auto preference waiting for a future user turn. Null means the pending request is returning to provider-default routing."
|
|
16065
|
+
},
|
|
16066
|
+
"activatingAutoTier": {
|
|
16067
|
+
"anyOf": [
|
|
16068
|
+
{
|
|
16069
|
+
"$ref": "#/definitions/AutoTier",
|
|
16070
|
+
"description": "Routing preference used when the session model is `auto`."
|
|
16071
|
+
},
|
|
16072
|
+
{
|
|
16073
|
+
"type": "null"
|
|
16074
|
+
}
|
|
16075
|
+
],
|
|
16076
|
+
"description": "Auto preference currently claimed by an in-progress activation. Null means the activation is returning to provider-default routing."
|
|
15619
16077
|
}
|
|
15620
16078
|
},
|
|
15621
16079
|
"additionalProperties": false,
|
|
15622
|
-
"description": "The
|
|
16080
|
+
"description": "The session's authoritative model snapshot. Auto preference fields are configuration for the virtual `auto` model and do not change the selected model identifier. The context tier reflects `Session.getContextTier()`, restored from the session journal on resume.",
|
|
15623
16081
|
"title": "CurrentModel"
|
|
15624
16082
|
},
|
|
15625
16083
|
"CurrentToolMetadata": {
|
|
@@ -21612,6 +22070,10 @@
|
|
|
21612
22070
|
"minLength": 1,
|
|
21613
22071
|
"pattern": "^[^\\x00-\\x1f/\\x7f-\\x9f}]+(?:\\/[^\\x00-\\x1f/\\x7f-\\x9f}]+)*$",
|
|
21614
22072
|
"description": "Name of the MCP server to remove"
|
|
22073
|
+
},
|
|
22074
|
+
"authClientIdMetadataUrl": {
|
|
22075
|
+
"type": "string",
|
|
22076
|
+
"description": "OAuth Client ID Metadata Document URL whose persisted credentials should also be removed."
|
|
21615
22077
|
}
|
|
21616
22078
|
},
|
|
21617
22079
|
"required": [
|
|
@@ -23899,6 +24361,10 @@
|
|
|
23899
24361
|
"error": {
|
|
23900
24362
|
"type": "string",
|
|
23901
24363
|
"description": "Error message if the server failed to connect"
|
|
24364
|
+
},
|
|
24365
|
+
"serverMetadata": {
|
|
24366
|
+
"$ref": "#/definitions/McpServerMetadata",
|
|
24367
|
+
"description": "Server-advertised metadata for a connected server. Omitted when no live connection metadata is available, including while pending or when failed, disabled, stopped, or not configured."
|
|
23902
24368
|
}
|
|
23903
24369
|
},
|
|
23904
24370
|
"required": [
|
|
@@ -24555,6 +25021,24 @@
|
|
|
24555
25021
|
"description": "MCP servers configured for the session, with their connection status and host-level state.",
|
|
24556
25022
|
"title": "McpServerList"
|
|
24557
25023
|
},
|
|
25024
|
+
"McpServerMetadata": {
|
|
25025
|
+
"type": "object",
|
|
25026
|
+
"properties": {
|
|
25027
|
+
"instructions": {
|
|
25028
|
+
"type": [
|
|
25029
|
+
"string",
|
|
25030
|
+
"null"
|
|
25031
|
+
],
|
|
25032
|
+
"description": "Non-empty natural-language guidance for using the server, or null when the server omitted instructions or advertised an empty string."
|
|
25033
|
+
}
|
|
25034
|
+
},
|
|
25035
|
+
"required": [
|
|
25036
|
+
"instructions"
|
|
25037
|
+
],
|
|
25038
|
+
"additionalProperties": false,
|
|
25039
|
+
"description": "Server-advertised metadata learned through modern discovery or legacy initialization.",
|
|
25040
|
+
"title": "McpServerMetadata"
|
|
25041
|
+
},
|
|
24558
25042
|
"McpServerNeedsAuthInfo": {
|
|
24559
25043
|
"type": "object",
|
|
24560
25044
|
"properties": {
|
|
@@ -25129,6 +25613,13 @@
|
|
|
25129
25613
|
"$ref": "#/definitions/ModelCapabilities",
|
|
25130
25614
|
"description": "Model capabilities and limits"
|
|
25131
25615
|
},
|
|
25616
|
+
"metadata": {
|
|
25617
|
+
"type": "object",
|
|
25618
|
+
"additionalProperties": {
|
|
25619
|
+
"x-opaque-json": true
|
|
25620
|
+
},
|
|
25621
|
+
"description": "Provider-supplied model metadata. Keys and JSON-compatible values are preserved unchanged. This is factual metadata published by the model provider; it carries no picker or UX semantics."
|
|
25622
|
+
},
|
|
25132
25623
|
"policy": {
|
|
25133
25624
|
"$ref": "#/definitions/ModelPolicy",
|
|
25134
25625
|
"description": "Policy state (if applicable)"
|
|
@@ -25832,6 +26323,104 @@
|
|
|
25832
26323
|
"description": "Optional opaque account selection or compatibility GitHub token used to list models.",
|
|
25833
26324
|
"title": "ModelsListRequest"
|
|
25834
26325
|
},
|
|
26326
|
+
"ModelSwitchAutoTierRequest": {
|
|
26327
|
+
"type": "object",
|
|
26328
|
+
"properties": {
|
|
26329
|
+
"autoTier": {
|
|
26330
|
+
"anyOf": [
|
|
26331
|
+
{
|
|
26332
|
+
"$ref": "#/definitions/AutoTier",
|
|
26333
|
+
"description": "Routing preference used when the session model is `auto`."
|
|
26334
|
+
},
|
|
26335
|
+
{
|
|
26336
|
+
"type": "null"
|
|
26337
|
+
}
|
|
26338
|
+
],
|
|
26339
|
+
"description": "Auto preference to activate when a future user turn using the `auto` model safely mints a replacement model and token pair. Pass null to return to provider-default Auto routing."
|
|
26340
|
+
},
|
|
26341
|
+
"source": {
|
|
26342
|
+
"$ref": "#/definitions/ModelChangeSource",
|
|
26343
|
+
"description": "Origin to record on the effective `session.model_change` event. Defaults to `sdk` when omitted."
|
|
26344
|
+
}
|
|
26345
|
+
},
|
|
26346
|
+
"required": [
|
|
26347
|
+
"autoTier"
|
|
26348
|
+
],
|
|
26349
|
+
"additionalProperties": false,
|
|
26350
|
+
"description": "An Auto preference request for the session. This updates Auto configuration only; it does not change the selected model to `auto`.",
|
|
26351
|
+
"title": "ModelSwitchAutoTierRequest",
|
|
26352
|
+
"stability": "experimental"
|
|
26353
|
+
},
|
|
26354
|
+
"ModelSwitchAutoTierResult": {
|
|
26355
|
+
"type": "object",
|
|
26356
|
+
"properties": {
|
|
26357
|
+
"status": {
|
|
26358
|
+
"$ref": "#/definitions/ModelSwitchAutoTierStatus",
|
|
26359
|
+
"description": "Immediate request status. `pending` means accepted but not committed."
|
|
26360
|
+
},
|
|
26361
|
+
"effectiveAutoTier": {
|
|
26362
|
+
"$ref": "#/definitions/AutoTier",
|
|
26363
|
+
"description": "Auto preference currently committed for the session."
|
|
26364
|
+
},
|
|
26365
|
+
"pendingAutoTier": {
|
|
26366
|
+
"anyOf": [
|
|
26367
|
+
{
|
|
26368
|
+
"$ref": "#/definitions/AutoTier",
|
|
26369
|
+
"description": "Routing preference used when the session model is `auto`."
|
|
26370
|
+
},
|
|
26371
|
+
{
|
|
26372
|
+
"type": "null"
|
|
26373
|
+
}
|
|
26374
|
+
],
|
|
26375
|
+
"description": "Latest unclaimed Auto preference waiting for a future user turn."
|
|
26376
|
+
},
|
|
26377
|
+
"activatingAutoTier": {
|
|
26378
|
+
"anyOf": [
|
|
26379
|
+
{
|
|
26380
|
+
"$ref": "#/definitions/AutoTier",
|
|
26381
|
+
"description": "Routing preference used when the session model is `auto`."
|
|
26382
|
+
},
|
|
26383
|
+
{
|
|
26384
|
+
"type": "null"
|
|
26385
|
+
}
|
|
26386
|
+
],
|
|
26387
|
+
"description": "Auto preference currently claimed by an in-progress activation. Null means the activation is returning to provider-default routing."
|
|
26388
|
+
},
|
|
26389
|
+
"supersededAutoTier": {
|
|
26390
|
+
"anyOf": [
|
|
26391
|
+
{
|
|
26392
|
+
"$ref": "#/definitions/AutoTier",
|
|
26393
|
+
"description": "Routing preference used when the session model is `auto`."
|
|
26394
|
+
},
|
|
26395
|
+
{
|
|
26396
|
+
"type": "null"
|
|
26397
|
+
}
|
|
26398
|
+
],
|
|
26399
|
+
"description": "Earlier unclaimed preference replaced by this request. This can be present with either status, including when selecting the effective preference cancels pending work."
|
|
26400
|
+
}
|
|
26401
|
+
},
|
|
26402
|
+
"required": [
|
|
26403
|
+
"status"
|
|
26404
|
+
],
|
|
26405
|
+
"additionalProperties": false,
|
|
26406
|
+
"description": "Immediate acknowledgement and Auto preference snapshot after a switch request. This result never implies that a pending preference committed.",
|
|
26407
|
+
"title": "ModelSwitchAutoTierResult",
|
|
26408
|
+
"stability": "experimental"
|
|
26409
|
+
},
|
|
26410
|
+
"ModelSwitchAutoTierStatus": {
|
|
26411
|
+
"type": "string",
|
|
26412
|
+
"enum": [
|
|
26413
|
+
"unchanged",
|
|
26414
|
+
"pending"
|
|
26415
|
+
],
|
|
26416
|
+
"description": "Whether the requested preference was already effective or was accepted for later transactional activation.",
|
|
26417
|
+
"title": "ModelSwitchAutoTierStatus",
|
|
26418
|
+
"x-enumDescriptions": {
|
|
26419
|
+
"unchanged": "The requested preference is already effective. No activation is pending for it, although this request may have cancelled an earlier unclaimed preference reported in `supersededAutoTier`.",
|
|
26420
|
+
"pending": "The request was accepted but has not committed. A later user turn using the `auto` model must mint and validate the replacement before it becomes effective."
|
|
26421
|
+
},
|
|
26422
|
+
"stability": "experimental"
|
|
26423
|
+
},
|
|
25835
26424
|
"ModelSwitchConfirmation": {
|
|
25836
26425
|
"type": "object",
|
|
25837
26426
|
"properties": {
|
|
@@ -25862,6 +26451,18 @@
|
|
|
25862
26451
|
"type": "string",
|
|
25863
26452
|
"description": "Model selection id to switch to, as returned by `list`. A bare id (e.g. `claude-sonnet-4.6`) names a Copilot (CAPI) model; a provider-qualified id (`provider/id`, e.g. `acme/claude-sonnet`) targets a registry BYOK model."
|
|
25864
26453
|
},
|
|
26454
|
+
"autoTier": {
|
|
26455
|
+
"anyOf": [
|
|
26456
|
+
{
|
|
26457
|
+
"$ref": "#/definitions/AutoTier",
|
|
26458
|
+
"description": "Routing preference used when the session model is `auto`."
|
|
26459
|
+
},
|
|
26460
|
+
{
|
|
26461
|
+
"type": "null"
|
|
26462
|
+
}
|
|
26463
|
+
],
|
|
26464
|
+
"description": "Optional Auto routing preference to stage atomically with selecting `auto`. Pass null to return to provider-default Auto routing. This field is rejected when `modelId` is not `auto`."
|
|
26465
|
+
},
|
|
25865
26466
|
"reasoningEffort": {
|
|
25866
26467
|
"type": "string",
|
|
25867
26468
|
"description": "Reasoning effort level to use for the model. CAPI values are model-defined and validated against the selected model; BYOK providers may define additional values. \"none\" disables reasoning. When omitted, no effort override is applied."
|
|
@@ -25960,6 +26561,10 @@
|
|
|
25960
26561
|
"type": "string"
|
|
25961
26562
|
},
|
|
25962
26563
|
"description": "Deprecation warnings associated with the selected model or options."
|
|
26564
|
+
},
|
|
26565
|
+
"modelState": {
|
|
26566
|
+
"$ref": "#/definitions/CurrentModel",
|
|
26567
|
+
"description": "Authoritative model and Auto preference state after an immediate switch. For deferred switches this remains the current state until the queued change drains."
|
|
25963
26568
|
}
|
|
25964
26569
|
},
|
|
25965
26570
|
"required": [],
|
|
@@ -28986,6 +29591,10 @@
|
|
|
28986
29591
|
"type": "integer",
|
|
28987
29592
|
"description": "Number of skills discovered and installed from the plugin"
|
|
28988
29593
|
},
|
|
29594
|
+
"stagingMode": {
|
|
29595
|
+
"$ref": "#/definitions/PluginInstallStagingMode",
|
|
29596
|
+
"description": "Where the completed plugin tree was staged before atomic promotion"
|
|
29597
|
+
},
|
|
28989
29598
|
"postInstallMessage": {
|
|
28990
29599
|
"type": "string",
|
|
28991
29600
|
"description": "Optional post-install message provided by the plugin (e.g. setup instructions)"
|
|
@@ -29003,6 +29612,19 @@
|
|
|
29003
29612
|
"description": "Result of installing a plugin.",
|
|
29004
29613
|
"title": "PluginInstallResult"
|
|
29005
29614
|
},
|
|
29615
|
+
"PluginInstallStagingMode": {
|
|
29616
|
+
"type": "string",
|
|
29617
|
+
"enum": [
|
|
29618
|
+
"external",
|
|
29619
|
+
"destination_sibling"
|
|
29620
|
+
],
|
|
29621
|
+
"description": "Where completed plugin content was staged before atomic promotion.",
|
|
29622
|
+
"title": "PluginInstallStagingMode",
|
|
29623
|
+
"x-enumDescriptions": {
|
|
29624
|
+
"external": "A sibling of the installed-plugins root, outside the recursively watched tree.",
|
|
29625
|
+
"destination_sibling": "A sibling of the destination plugin directory, used when external staging is unavailable."
|
|
29626
|
+
}
|
|
29627
|
+
},
|
|
29006
29628
|
"PluginList": {
|
|
29007
29629
|
"type": "object",
|
|
29008
29630
|
"properties": {
|
|
@@ -31227,6 +31849,25 @@
|
|
|
31227
31849
|
"title": "ReleaseEventInterestParams",
|
|
31228
31850
|
"stability": "experimental"
|
|
31229
31851
|
},
|
|
31852
|
+
"RemediationAction": {
|
|
31853
|
+
"type": "string",
|
|
31854
|
+
"enum": [
|
|
31855
|
+
"sign_in",
|
|
31856
|
+
"switch_account",
|
|
31857
|
+
"show_account",
|
|
31858
|
+
"review_sandbox_policy",
|
|
31859
|
+
"allow_sandbox_outbound"
|
|
31860
|
+
],
|
|
31861
|
+
"description": "What the user must do to recover from a failure, named as an action rather than as one client's affordance. The runtime cannot know which affordance a client offers — a slash command, a settings pane, a link — so the accompanying message stays host-agnostic and each client renders its own copy from this value. Absent when the runtime knows of no action the user can take.",
|
|
31862
|
+
"title": "RemediationAction",
|
|
31863
|
+
"x-enumDescriptions": {
|
|
31864
|
+
"sign_in": "Authenticate again with the Copilot backend. The current credential is absent, expired, or rejected.",
|
|
31865
|
+
"switch_account": "Authenticate as a different account. The current account exists but lacks access to the requested resource.",
|
|
31866
|
+
"show_account": "Inspect which account is currently authenticated before deciding what to change.",
|
|
31867
|
+
"review_sandbox_policy": "Review or widen the sandbox policy. The blocked path or host is named by the accompanying message or by the tool result the action arrived with.",
|
|
31868
|
+
"allow_sandbox_outbound": "Permit outbound network access in the sandbox policy."
|
|
31869
|
+
}
|
|
31870
|
+
},
|
|
31230
31871
|
"RemoteControlConfig": {
|
|
31231
31872
|
"type": "object",
|
|
31232
31873
|
"properties": {
|
|
@@ -31759,6 +32400,28 @@
|
|
|
31759
32400
|
"type": "boolean",
|
|
31760
32401
|
"description": "Whether to auto-add the current working directory to readwritePaths. Default: true."
|
|
31761
32402
|
},
|
|
32403
|
+
"sandboxMcpServers": {
|
|
32404
|
+
"type": "boolean",
|
|
32405
|
+
"description": "Whether MCP servers the session launches are confined by the sandbox. Only an explicit `false` opts out; doing so also lets remote-MCP egress leave the sandbox, so the flag and `enabled` are always read together. Ignored while `enabled` is false. Default: true (enabled by default; set to false to opt out)."
|
|
32406
|
+
},
|
|
32407
|
+
"sandboxLspServers": {
|
|
32408
|
+
"type": "boolean",
|
|
32409
|
+
"description": "Whether language servers the session launches are confined by the sandbox. Only an explicit `false` opts out. Ignored while `enabled` is false. Default: true (enabled by default; set to false to opt out)."
|
|
32410
|
+
},
|
|
32411
|
+
"allowBypass": {
|
|
32412
|
+
"type": "boolean",
|
|
32413
|
+
"description": "Whether the agent may request that an individual command run outside the sandbox, which the host then approves or denies through the usual permission flow. A host capability flag rather than part of the policy: it is stripped from the effective spawn policy and only has an effect while `enabled` is true. Fail-closed, unlike the opt-out flags on this object: omitting it offers no bypass. Default: false (opt-in)."
|
|
32414
|
+
},
|
|
32415
|
+
"managedMcpRoutingLocked": {
|
|
32416
|
+
"type": "boolean",
|
|
32417
|
+
"description": "Set by the runtime when a managed policy forced `sandboxMcpServers` on and took the local opt-out away. Provenance rather than policy: it lets a sandbox startup failure point at the administrator instead of a setting the next managed merge would override, and it is ignored when comparing two configs for change. Only the managed merge may set it; a caller-supplied value is stripped.",
|
|
32418
|
+
"visibility": "internal"
|
|
32419
|
+
},
|
|
32420
|
+
"managedLspRoutingLocked": {
|
|
32421
|
+
"type": "boolean",
|
|
32422
|
+
"description": "The `sandboxLspServers` counterpart of `managedMcpRoutingLocked`.",
|
|
32423
|
+
"visibility": "internal"
|
|
32424
|
+
},
|
|
31762
32425
|
"auth": {
|
|
31763
32426
|
"$ref": "#/definitions/SandboxConfigAuth",
|
|
31764
32427
|
"description": "Credential-injection capability flags."
|
|
@@ -34603,6 +35266,10 @@
|
|
|
34603
35266
|
"type": "string",
|
|
34604
35267
|
"description": "Identifier of the client driving the session."
|
|
34605
35268
|
},
|
|
35269
|
+
"authClientIdMetadataUrl": {
|
|
35270
|
+
"type": "string",
|
|
35271
|
+
"description": "OAuth Client ID Metadata Document URL used by this host for MCP authorization."
|
|
35272
|
+
},
|
|
34606
35273
|
"clientKind": {
|
|
34607
35274
|
"type": "string",
|
|
34608
35275
|
"description": "Structured client kind used for runtime behavior gates."
|
|
@@ -38198,6 +38865,10 @@
|
|
|
38198
38865
|
"url": {
|
|
38199
38866
|
"type": "string",
|
|
38200
38867
|
"description": "Optional URL associated with the timeline entry."
|
|
38868
|
+
},
|
|
38869
|
+
"remediation": {
|
|
38870
|
+
"$ref": "#/definitions/RemediationAction",
|
|
38871
|
+
"description": "What the user must do to recover, when the entry reports a failure the runtime knows an action for. The `text` never names a client affordance, so a client that offers one renders it from this value."
|
|
38201
38872
|
}
|
|
38202
38873
|
},
|
|
38203
38874
|
"required": [
|
|
@@ -38422,6 +39093,426 @@
|
|
|
38422
39093
|
"description": "Progress snapshot for an agent task, with recent activity lines and optional latest intent.",
|
|
38423
39094
|
"title": "TaskAgentProgress"
|
|
38424
39095
|
},
|
|
39096
|
+
"TaskClientActiveStatus": {
|
|
39097
|
+
"type": "string",
|
|
39098
|
+
"enum": [
|
|
39099
|
+
"running",
|
|
39100
|
+
"idle"
|
|
39101
|
+
],
|
|
39102
|
+
"description": "Active status a client owner may publish with a progress update.",
|
|
39103
|
+
"title": "TaskClientActiveStatus",
|
|
39104
|
+
"x-enumDescriptions": {
|
|
39105
|
+
"running": "The external owner is actively working.",
|
|
39106
|
+
"idle": "The external owner is connected but waiting."
|
|
39107
|
+
}
|
|
39108
|
+
},
|
|
39109
|
+
"TaskClientExecutionMode": {
|
|
39110
|
+
"type": "string",
|
|
39111
|
+
"enum": [
|
|
39112
|
+
"background"
|
|
39113
|
+
],
|
|
39114
|
+
"description": "Client-owned tasks always execute outside the runtime in background mode.",
|
|
39115
|
+
"title": "TaskClientExecutionMode"
|
|
39116
|
+
},
|
|
39117
|
+
"TaskClientInfo": {
|
|
39118
|
+
"type": "object",
|
|
39119
|
+
"properties": {
|
|
39120
|
+
"type": {
|
|
39121
|
+
"$ref": "#/definitions/TaskClientType",
|
|
39122
|
+
"const": "client",
|
|
39123
|
+
"description": "Task kind"
|
|
39124
|
+
},
|
|
39125
|
+
"id": {
|
|
39126
|
+
"type": "string",
|
|
39127
|
+
"description": "Canonical runtime-generated task identifier"
|
|
39128
|
+
},
|
|
39129
|
+
"clientTaskId": {
|
|
39130
|
+
"type": "string",
|
|
39131
|
+
"description": "Owner-scoped registration and reclaim key"
|
|
39132
|
+
},
|
|
39133
|
+
"displayName": {
|
|
39134
|
+
"type": "string",
|
|
39135
|
+
"description": "Optional task display name"
|
|
39136
|
+
},
|
|
39137
|
+
"description": {
|
|
39138
|
+
"type": "string",
|
|
39139
|
+
"description": "Task description"
|
|
39140
|
+
},
|
|
39141
|
+
"status": {
|
|
39142
|
+
"$ref": "#/definitions/TaskClientStatus",
|
|
39143
|
+
"description": "Client task lifecycle status"
|
|
39144
|
+
},
|
|
39145
|
+
"owner": {
|
|
39146
|
+
"$ref": "#/definitions/TaskClientOwner",
|
|
39147
|
+
"description": "Public attribution and presence for the task owner"
|
|
39148
|
+
},
|
|
39149
|
+
"startedAt": {
|
|
39150
|
+
"type": "string",
|
|
39151
|
+
"format": "date-time",
|
|
39152
|
+
"description": "ISO 8601 timestamp when the task started"
|
|
39153
|
+
},
|
|
39154
|
+
"updatedAt": {
|
|
39155
|
+
"type": "string",
|
|
39156
|
+
"format": "date-time",
|
|
39157
|
+
"description": "ISO 8601 timestamp of the latest accepted lifecycle change"
|
|
39158
|
+
},
|
|
39159
|
+
"completedAt": {
|
|
39160
|
+
"type": "string",
|
|
39161
|
+
"format": "date-time",
|
|
39162
|
+
"description": "ISO 8601 timestamp when the task reached a terminal status"
|
|
39163
|
+
},
|
|
39164
|
+
"activeTimeMs": {
|
|
39165
|
+
"type": "integer",
|
|
39166
|
+
"minimum": 0,
|
|
39167
|
+
"description": "Accumulated active execution time in milliseconds"
|
|
39168
|
+
},
|
|
39169
|
+
"activeStartedAt": {
|
|
39170
|
+
"type": "string",
|
|
39171
|
+
"format": "date-time",
|
|
39172
|
+
"description": "ISO 8601 timestamp when the current active segment started"
|
|
39173
|
+
},
|
|
39174
|
+
"idleSince": {
|
|
39175
|
+
"type": "string",
|
|
39176
|
+
"format": "date-time",
|
|
39177
|
+
"description": "ISO 8601 timestamp when the connected owner entered idle status"
|
|
39178
|
+
},
|
|
39179
|
+
"orphanedAt": {
|
|
39180
|
+
"type": "string",
|
|
39181
|
+
"format": "date-time",
|
|
39182
|
+
"description": "ISO 8601 timestamp of the most recent orphan transition"
|
|
39183
|
+
},
|
|
39184
|
+
"reclaimedAt": {
|
|
39185
|
+
"type": "string",
|
|
39186
|
+
"format": "date-time",
|
|
39187
|
+
"description": "ISO 8601 timestamp of the most recent successful reclaim"
|
|
39188
|
+
},
|
|
39189
|
+
"executionMode": {
|
|
39190
|
+
"$ref": "#/definitions/TaskClientExecutionMode",
|
|
39191
|
+
"description": "Execution mode, which is always background for client-owned tasks"
|
|
39192
|
+
},
|
|
39193
|
+
"canCancel": {
|
|
39194
|
+
"type": "boolean",
|
|
39195
|
+
"description": "Whether the currently bound owner can receive a cancellation request"
|
|
39196
|
+
},
|
|
39197
|
+
"sequence": {
|
|
39198
|
+
"type": "integer",
|
|
39199
|
+
"minimum": 0,
|
|
39200
|
+
"description": "Sequence number of the latest accepted owner update"
|
|
39201
|
+
},
|
|
39202
|
+
"result": {
|
|
39203
|
+
"description": "Opaque successful terminal result supplied by the task owner",
|
|
39204
|
+
"x-opaque-json": true
|
|
39205
|
+
},
|
|
39206
|
+
"error": {
|
|
39207
|
+
"type": "string",
|
|
39208
|
+
"description": "Human-readable terminal failure message"
|
|
39209
|
+
},
|
|
39210
|
+
"errorCode": {
|
|
39211
|
+
"type": "string",
|
|
39212
|
+
"description": "Optional owner-supplied terminal failure code"
|
|
39213
|
+
},
|
|
39214
|
+
"cancellationReason": {
|
|
39215
|
+
"type": "string",
|
|
39216
|
+
"description": "Human-readable reason for terminal cancellation"
|
|
39217
|
+
}
|
|
39218
|
+
},
|
|
39219
|
+
"required": [
|
|
39220
|
+
"type",
|
|
39221
|
+
"id",
|
|
39222
|
+
"clientTaskId",
|
|
39223
|
+
"description",
|
|
39224
|
+
"status",
|
|
39225
|
+
"owner",
|
|
39226
|
+
"startedAt",
|
|
39227
|
+
"updatedAt",
|
|
39228
|
+
"activeTimeMs",
|
|
39229
|
+
"executionMode",
|
|
39230
|
+
"canCancel",
|
|
39231
|
+
"sequence"
|
|
39232
|
+
],
|
|
39233
|
+
"additionalProperties": false,
|
|
39234
|
+
"description": "Tracked client-owned task metadata.",
|
|
39235
|
+
"title": "TaskClientInfo"
|
|
39236
|
+
},
|
|
39237
|
+
"TaskClientOwner": {
|
|
39238
|
+
"type": "object",
|
|
39239
|
+
"properties": {
|
|
39240
|
+
"participantId": {
|
|
39241
|
+
"type": "string",
|
|
39242
|
+
"description": "Opaque session-scoped participant identity"
|
|
39243
|
+
},
|
|
39244
|
+
"joinId": {
|
|
39245
|
+
"type": "string",
|
|
39246
|
+
"description": "Opaque identity of the currently or most recently bound session join"
|
|
39247
|
+
},
|
|
39248
|
+
"kind": {
|
|
39249
|
+
"$ref": "#/definitions/TaskClientOwnerKind",
|
|
39250
|
+
"description": "Class of the task owner"
|
|
39251
|
+
},
|
|
39252
|
+
"displayName": {
|
|
39253
|
+
"type": "string",
|
|
39254
|
+
"description": "Display-only owner name"
|
|
39255
|
+
},
|
|
39256
|
+
"source": {
|
|
39257
|
+
"type": "string",
|
|
39258
|
+
"description": "Display-only owner source"
|
|
39259
|
+
},
|
|
39260
|
+
"presence": {
|
|
39261
|
+
"$ref": "#/definitions/TaskClientOwnerPresence",
|
|
39262
|
+
"description": "Whether this task's bound join is currently connected"
|
|
39263
|
+
},
|
|
39264
|
+
"disconnectedAt": {
|
|
39265
|
+
"type": "string",
|
|
39266
|
+
"format": "date-time",
|
|
39267
|
+
"description": "ISO 8601 timestamp when the bound join disconnected"
|
|
39268
|
+
}
|
|
39269
|
+
},
|
|
39270
|
+
"required": [
|
|
39271
|
+
"participantId",
|
|
39272
|
+
"joinId",
|
|
39273
|
+
"kind",
|
|
39274
|
+
"presence"
|
|
39275
|
+
],
|
|
39276
|
+
"additionalProperties": false,
|
|
39277
|
+
"description": "Public owner attribution for a client-owned task. Identifiers are opaque and never authorize requests.",
|
|
39278
|
+
"title": "TaskClientOwner"
|
|
39279
|
+
},
|
|
39280
|
+
"TaskClientOwnerKind": {
|
|
39281
|
+
"type": "string",
|
|
39282
|
+
"enum": [
|
|
39283
|
+
"extension",
|
|
39284
|
+
"sdk"
|
|
39285
|
+
],
|
|
39286
|
+
"description": "Connection class owning a client task.",
|
|
39287
|
+
"title": "TaskClientOwnerKind",
|
|
39288
|
+
"x-enumDescriptions": {
|
|
39289
|
+
"extension": "A discovered extension connection owns the task.",
|
|
39290
|
+
"sdk": "A generic SDK connection owns the task."
|
|
39291
|
+
}
|
|
39292
|
+
},
|
|
39293
|
+
"TaskClientOwnerPresence": {
|
|
39294
|
+
"type": "string",
|
|
39295
|
+
"enum": [
|
|
39296
|
+
"connected",
|
|
39297
|
+
"disconnected"
|
|
39298
|
+
],
|
|
39299
|
+
"description": "Presence of the task's bound join.",
|
|
39300
|
+
"title": "TaskClientOwnerPresence",
|
|
39301
|
+
"x-enumDescriptions": {
|
|
39302
|
+
"connected": "The bound session join is connected.",
|
|
39303
|
+
"disconnected": "The bound session join is disconnected."
|
|
39304
|
+
}
|
|
39305
|
+
},
|
|
39306
|
+
"TaskClientProgress": {
|
|
39307
|
+
"type": "object",
|
|
39308
|
+
"properties": {
|
|
39309
|
+
"type": {
|
|
39310
|
+
"$ref": "#/definitions/TaskClientType",
|
|
39311
|
+
"const": "client",
|
|
39312
|
+
"description": "Progress kind"
|
|
39313
|
+
},
|
|
39314
|
+
"status": {
|
|
39315
|
+
"$ref": "#/definitions/TaskClientStatus",
|
|
39316
|
+
"description": "Current client task lifecycle status"
|
|
39317
|
+
},
|
|
39318
|
+
"sequence": {
|
|
39319
|
+
"type": "integer",
|
|
39320
|
+
"minimum": 0,
|
|
39321
|
+
"description": "Sequence number of the latest accepted owner update"
|
|
39322
|
+
},
|
|
39323
|
+
"updatedAt": {
|
|
39324
|
+
"type": "string",
|
|
39325
|
+
"format": "date-time",
|
|
39326
|
+
"description": "ISO 8601 timestamp of the latest accepted lifecycle change"
|
|
39327
|
+
},
|
|
39328
|
+
"phase": {
|
|
39329
|
+
"type": "string",
|
|
39330
|
+
"description": "Current owner-defined progress phase"
|
|
39331
|
+
},
|
|
39332
|
+
"percentage": {
|
|
39333
|
+
"type": "number",
|
|
39334
|
+
"minimum": 0,
|
|
39335
|
+
"maximum": 100,
|
|
39336
|
+
"description": "Current completion percentage from zero through one hundred"
|
|
39337
|
+
},
|
|
39338
|
+
"lastMessage": {
|
|
39339
|
+
"type": "string",
|
|
39340
|
+
"description": "Most recent nonempty progress message"
|
|
39341
|
+
},
|
|
39342
|
+
"recentActivity": {
|
|
39343
|
+
"type": "array",
|
|
39344
|
+
"items": {
|
|
39345
|
+
"$ref": "#/definitions/TaskProgressLine",
|
|
39346
|
+
"description": "Timestamped display line for task progress output or recent agent activity."
|
|
39347
|
+
},
|
|
39348
|
+
"description": "Recent server-timestamped progress messages"
|
|
39349
|
+
}
|
|
39350
|
+
},
|
|
39351
|
+
"required": [
|
|
39352
|
+
"type",
|
|
39353
|
+
"status",
|
|
39354
|
+
"sequence",
|
|
39355
|
+
"updatedAt",
|
|
39356
|
+
"recentActivity"
|
|
39357
|
+
],
|
|
39358
|
+
"additionalProperties": false,
|
|
39359
|
+
"description": "Generic progress for a client-owned task.",
|
|
39360
|
+
"title": "TaskClientProgress"
|
|
39361
|
+
},
|
|
39362
|
+
"TaskClientStatus": {
|
|
39363
|
+
"type": "string",
|
|
39364
|
+
"enum": [
|
|
39365
|
+
"running",
|
|
39366
|
+
"idle",
|
|
39367
|
+
"completed",
|
|
39368
|
+
"failed",
|
|
39369
|
+
"cancelled",
|
|
39370
|
+
"orphaned"
|
|
39371
|
+
],
|
|
39372
|
+
"description": "Lifecycle status of a client-owned task.",
|
|
39373
|
+
"title": "TaskClientStatus",
|
|
39374
|
+
"x-enumDescriptions": {
|
|
39375
|
+
"running": "The external owner is actively working.",
|
|
39376
|
+
"idle": "The external owner is connected but waiting.",
|
|
39377
|
+
"completed": "The owner reported successful completion.",
|
|
39378
|
+
"failed": "The owner reported failure.",
|
|
39379
|
+
"cancelled": "The owner reported or confirmed cancellation.",
|
|
39380
|
+
"orphaned": "The bound owner join disappeared; external executor state is unknown."
|
|
39381
|
+
}
|
|
39382
|
+
},
|
|
39383
|
+
"TaskClientType": {
|
|
39384
|
+
"type": "string",
|
|
39385
|
+
"enum": [
|
|
39386
|
+
"client"
|
|
39387
|
+
],
|
|
39388
|
+
"description": "Discriminator for a client-owned task.",
|
|
39389
|
+
"title": "TaskClientType"
|
|
39390
|
+
},
|
|
39391
|
+
"TaskClientUpdate": {
|
|
39392
|
+
"anyOf": [
|
|
39393
|
+
{
|
|
39394
|
+
"type": "object",
|
|
39395
|
+
"properties": {
|
|
39396
|
+
"status": {
|
|
39397
|
+
"$ref": "#/definitions/TaskClientActiveStatus",
|
|
39398
|
+
"description": "Optional active status transition"
|
|
39399
|
+
},
|
|
39400
|
+
"message": {
|
|
39401
|
+
"type": "string",
|
|
39402
|
+
"description": "Optional progress message appended to recent activity when nonempty"
|
|
39403
|
+
},
|
|
39404
|
+
"phase": {
|
|
39405
|
+
"anyOf": [
|
|
39406
|
+
{
|
|
39407
|
+
"type": "string"
|
|
39408
|
+
},
|
|
39409
|
+
{
|
|
39410
|
+
"type": "null"
|
|
39411
|
+
}
|
|
39412
|
+
],
|
|
39413
|
+
"description": "Optional progress phase; null clears the current phase"
|
|
39414
|
+
},
|
|
39415
|
+
"percentage": {
|
|
39416
|
+
"anyOf": [
|
|
39417
|
+
{
|
|
39418
|
+
"type": "number"
|
|
39419
|
+
},
|
|
39420
|
+
{
|
|
39421
|
+
"type": "null"
|
|
39422
|
+
}
|
|
39423
|
+
],
|
|
39424
|
+
"description": "Optional completion percentage; null clears the current percentage"
|
|
39425
|
+
},
|
|
39426
|
+
"kind": {
|
|
39427
|
+
"type": "string",
|
|
39428
|
+
"const": "progress",
|
|
39429
|
+
"description": "Client task update variant discriminator."
|
|
39430
|
+
}
|
|
39431
|
+
},
|
|
39432
|
+
"required": [
|
|
39433
|
+
"kind"
|
|
39434
|
+
],
|
|
39435
|
+
"additionalProperties": false,
|
|
39436
|
+
"description": "Publishes nonterminal progress for a running or idle client task."
|
|
39437
|
+
},
|
|
39438
|
+
{
|
|
39439
|
+
"type": "object",
|
|
39440
|
+
"properties": {
|
|
39441
|
+
"message": {
|
|
39442
|
+
"type": "string",
|
|
39443
|
+
"description": "Optional final progress message"
|
|
39444
|
+
},
|
|
39445
|
+
"result": {
|
|
39446
|
+
"description": "Optional opaque successful terminal result",
|
|
39447
|
+
"x-opaque-json": true
|
|
39448
|
+
},
|
|
39449
|
+
"kind": {
|
|
39450
|
+
"type": "string",
|
|
39451
|
+
"const": "completed",
|
|
39452
|
+
"description": "Client task update variant discriminator."
|
|
39453
|
+
}
|
|
39454
|
+
},
|
|
39455
|
+
"required": [
|
|
39456
|
+
"kind"
|
|
39457
|
+
],
|
|
39458
|
+
"additionalProperties": false,
|
|
39459
|
+
"description": "Reports successful terminal completion."
|
|
39460
|
+
},
|
|
39461
|
+
{
|
|
39462
|
+
"type": "object",
|
|
39463
|
+
"properties": {
|
|
39464
|
+
"message": {
|
|
39465
|
+
"type": "string",
|
|
39466
|
+
"description": "Optional final progress message"
|
|
39467
|
+
},
|
|
39468
|
+
"error": {
|
|
39469
|
+
"type": "string",
|
|
39470
|
+
"description": "Human-readable terminal failure message"
|
|
39471
|
+
},
|
|
39472
|
+
"code": {
|
|
39473
|
+
"type": "string",
|
|
39474
|
+
"description": "Optional owner-supplied terminal failure code"
|
|
39475
|
+
},
|
|
39476
|
+
"kind": {
|
|
39477
|
+
"type": "string",
|
|
39478
|
+
"const": "failed",
|
|
39479
|
+
"description": "Client task update variant discriminator."
|
|
39480
|
+
}
|
|
39481
|
+
},
|
|
39482
|
+
"required": [
|
|
39483
|
+
"kind",
|
|
39484
|
+
"error"
|
|
39485
|
+
],
|
|
39486
|
+
"additionalProperties": false,
|
|
39487
|
+
"description": "Reports terminal failure."
|
|
39488
|
+
},
|
|
39489
|
+
{
|
|
39490
|
+
"type": "object",
|
|
39491
|
+
"properties": {
|
|
39492
|
+
"message": {
|
|
39493
|
+
"type": "string",
|
|
39494
|
+
"description": "Optional final progress message"
|
|
39495
|
+
},
|
|
39496
|
+
"reason": {
|
|
39497
|
+
"type": "string",
|
|
39498
|
+
"description": "Optional human-readable cancellation reason"
|
|
39499
|
+
},
|
|
39500
|
+
"kind": {
|
|
39501
|
+
"type": "string",
|
|
39502
|
+
"const": "cancelled",
|
|
39503
|
+
"description": "Client task update variant discriminator."
|
|
39504
|
+
}
|
|
39505
|
+
},
|
|
39506
|
+
"required": [
|
|
39507
|
+
"kind"
|
|
39508
|
+
],
|
|
39509
|
+
"additionalProperties": false,
|
|
39510
|
+
"description": "Reports terminal cancellation after external work stopped."
|
|
39511
|
+
}
|
|
39512
|
+
],
|
|
39513
|
+
"description": "Progress or terminal update for a client-owned task.",
|
|
39514
|
+
"title": "TaskClientUpdate"
|
|
39515
|
+
},
|
|
38425
39516
|
"TaskCompleteData": {
|
|
38426
39517
|
"type": "object",
|
|
38427
39518
|
"properties": {
|
|
@@ -38522,14 +39613,33 @@
|
|
|
38522
39613
|
"$ref": "#/definitions/TaskAgentInfo",
|
|
38523
39614
|
"description": "Tracked background agent task metadata, including IDs, status, timing, agent type, prompt, model, result, and latest response."
|
|
38524
39615
|
},
|
|
39616
|
+
{
|
|
39617
|
+
"$ref": "#/definitions/TaskClientInfo",
|
|
39618
|
+
"description": "Tracked client-owned task metadata."
|
|
39619
|
+
},
|
|
38525
39620
|
{
|
|
38526
39621
|
"$ref": "#/definitions/TaskShellInfo",
|
|
38527
39622
|
"description": "Tracked shell task metadata, including ID, command, status, timing, attachment/execution mode, log path, and PID."
|
|
38528
39623
|
}
|
|
38529
39624
|
],
|
|
38530
|
-
"description": "Tracked task union returned by task APIs, containing
|
|
39625
|
+
"description": "Tracked task union returned by task APIs, containing an agent, client, or shell task.",
|
|
38531
39626
|
"title": "TaskInfo"
|
|
38532
39627
|
},
|
|
39628
|
+
"TaskKind": {
|
|
39629
|
+
"type": "string",
|
|
39630
|
+
"enum": [
|
|
39631
|
+
"agent",
|
|
39632
|
+
"shell",
|
|
39633
|
+
"client"
|
|
39634
|
+
],
|
|
39635
|
+
"description": "Closed set of public task kinds a connection can negotiate.",
|
|
39636
|
+
"title": "TaskKind",
|
|
39637
|
+
"x-enumDescriptions": {
|
|
39638
|
+
"agent": "Runtime-owned background agent task.",
|
|
39639
|
+
"shell": "Runtime-owned shell task.",
|
|
39640
|
+
"client": "Client-owned externally executed task."
|
|
39641
|
+
}
|
|
39642
|
+
},
|
|
38533
39643
|
"TaskList": {
|
|
38534
39644
|
"type": "object",
|
|
38535
39645
|
"properties": {
|
|
@@ -38537,7 +39647,7 @@
|
|
|
38537
39647
|
"type": "array",
|
|
38538
39648
|
"items": {
|
|
38539
39649
|
"$ref": "#/definitions/TaskInfo",
|
|
38540
|
-
"description": "Tracked task union returned by task APIs, containing
|
|
39650
|
+
"description": "Tracked task union returned by task APIs, containing an agent, client, or shell task."
|
|
38541
39651
|
},
|
|
38542
39652
|
"description": "Currently tracked tasks"
|
|
38543
39653
|
}
|
|
@@ -38552,16 +39662,16 @@
|
|
|
38552
39662
|
"TaskProgress": {
|
|
38553
39663
|
"anyOf": [
|
|
38554
39664
|
{
|
|
38555
|
-
"
|
|
38556
|
-
|
|
38557
|
-
|
|
38558
|
-
|
|
38559
|
-
|
|
38560
|
-
|
|
38561
|
-
|
|
38562
|
-
|
|
38563
|
-
|
|
38564
|
-
|
|
39665
|
+
"$ref": "#/definitions/TaskAgentProgress",
|
|
39666
|
+
"description": "Progress snapshot for an agent task, with recent activity lines and optional latest intent."
|
|
39667
|
+
},
|
|
39668
|
+
{
|
|
39669
|
+
"$ref": "#/definitions/TaskClientProgress",
|
|
39670
|
+
"description": "Generic progress for a client-owned task."
|
|
39671
|
+
},
|
|
39672
|
+
{
|
|
39673
|
+
"$ref": "#/definitions/TaskShellProgress",
|
|
39674
|
+
"description": "Progress snapshot for a shell task, with recent stdout/stderr output and optional process ID."
|
|
38565
39675
|
},
|
|
38566
39676
|
{
|
|
38567
39677
|
"type": "null"
|
|
@@ -38825,6 +39935,72 @@
|
|
|
38825
39935
|
"description": "Refresh metadata for any detached background shells the runtime knows about. Use after a long pause to pick up exit/output state for shells running outside the agent loop.",
|
|
38826
39936
|
"title": "TasksRefreshResult"
|
|
38827
39937
|
},
|
|
39938
|
+
"TasksRegisterRequest": {
|
|
39939
|
+
"type": "object",
|
|
39940
|
+
"properties": {
|
|
39941
|
+
"type": {
|
|
39942
|
+
"$ref": "#/definitions/TaskClientType",
|
|
39943
|
+
"const": "client",
|
|
39944
|
+
"description": "Task kind"
|
|
39945
|
+
},
|
|
39946
|
+
"clientTaskId": {
|
|
39947
|
+
"type": "string",
|
|
39948
|
+
"description": "Owner-scoped idempotency key used for registration and reclaim"
|
|
39949
|
+
},
|
|
39950
|
+
"description": {
|
|
39951
|
+
"type": "string",
|
|
39952
|
+
"description": "Human-readable description of the external work"
|
|
39953
|
+
},
|
|
39954
|
+
"displayName": {
|
|
39955
|
+
"type": "string",
|
|
39956
|
+
"description": "Optional short display name for the external work"
|
|
39957
|
+
},
|
|
39958
|
+
"cancellable": {
|
|
39959
|
+
"type": "boolean",
|
|
39960
|
+
"description": "Whether the owner supports runtime cancellation requests"
|
|
39961
|
+
},
|
|
39962
|
+
"expectedSequence": {
|
|
39963
|
+
"type": "integer",
|
|
39964
|
+
"minimum": 0,
|
|
39965
|
+
"description": "Expected current sequence for idempotent registration or orphan reclaim"
|
|
39966
|
+
}
|
|
39967
|
+
},
|
|
39968
|
+
"required": [
|
|
39969
|
+
"type",
|
|
39970
|
+
"clientTaskId",
|
|
39971
|
+
"description",
|
|
39972
|
+
"cancellable"
|
|
39973
|
+
],
|
|
39974
|
+
"additionalProperties": false,
|
|
39975
|
+
"description": "Registers or reclaims a client-owned task.",
|
|
39976
|
+
"title": "TasksRegisterRequest",
|
|
39977
|
+
"stability": "experimental"
|
|
39978
|
+
},
|
|
39979
|
+
"TasksRegisterResult": {
|
|
39980
|
+
"type": "object",
|
|
39981
|
+
"properties": {
|
|
39982
|
+
"task": {
|
|
39983
|
+
"$ref": "#/definitions/TaskClientInfo",
|
|
39984
|
+
"description": "Authoritative registered or reclaimed task"
|
|
39985
|
+
},
|
|
39986
|
+
"created": {
|
|
39987
|
+
"type": "boolean",
|
|
39988
|
+
"description": "True only when this invocation created a new task"
|
|
39989
|
+
},
|
|
39990
|
+
"reclaimed": {
|
|
39991
|
+
"type": "boolean",
|
|
39992
|
+
"description": "True only when this invocation reclaimed an orphaned task"
|
|
39993
|
+
}
|
|
39994
|
+
},
|
|
39995
|
+
"required": [
|
|
39996
|
+
"task",
|
|
39997
|
+
"created",
|
|
39998
|
+
"reclaimed"
|
|
39999
|
+
],
|
|
40000
|
+
"additionalProperties": false,
|
|
40001
|
+
"description": "Result of registering or reclaiming a client-owned task.",
|
|
40002
|
+
"title": "TasksRegisterResult"
|
|
40003
|
+
},
|
|
38828
40004
|
"TasksRemoveRequest": {
|
|
38829
40005
|
"type": "object",
|
|
38830
40006
|
"properties": {
|
|
@@ -38968,6 +40144,58 @@
|
|
|
38968
40144
|
"cancelled": "The task was cancelled before completion."
|
|
38969
40145
|
}
|
|
38970
40146
|
},
|
|
40147
|
+
"TasksUpdateRequest": {
|
|
40148
|
+
"type": "object",
|
|
40149
|
+
"properties": {
|
|
40150
|
+
"id": {
|
|
40151
|
+
"type": "string",
|
|
40152
|
+
"description": "Canonical runtime-generated task identifier"
|
|
40153
|
+
},
|
|
40154
|
+
"sequence": {
|
|
40155
|
+
"type": "integer",
|
|
40156
|
+
"minimum": 0,
|
|
40157
|
+
"description": "Owner update sequence to apply"
|
|
40158
|
+
},
|
|
40159
|
+
"update": {
|
|
40160
|
+
"$ref": "#/definitions/TaskClientUpdate",
|
|
40161
|
+
"description": "Progress or terminal update payload"
|
|
40162
|
+
}
|
|
40163
|
+
},
|
|
40164
|
+
"required": [
|
|
40165
|
+
"id",
|
|
40166
|
+
"sequence",
|
|
40167
|
+
"update"
|
|
40168
|
+
],
|
|
40169
|
+
"additionalProperties": false,
|
|
40170
|
+
"description": "Updates a client-owned task.",
|
|
40171
|
+
"title": "TasksUpdateRequest",
|
|
40172
|
+
"stability": "experimental"
|
|
40173
|
+
},
|
|
40174
|
+
"TasksUpdateResult": {
|
|
40175
|
+
"type": "object",
|
|
40176
|
+
"properties": {
|
|
40177
|
+
"task": {
|
|
40178
|
+
"$ref": "#/definitions/TaskClientInfo",
|
|
40179
|
+
"description": "Authoritative task after processing the update"
|
|
40180
|
+
},
|
|
40181
|
+
"applied": {
|
|
40182
|
+
"type": "boolean",
|
|
40183
|
+
"description": "Whether this invocation changed task state"
|
|
40184
|
+
},
|
|
40185
|
+
"duplicate": {
|
|
40186
|
+
"type": "boolean",
|
|
40187
|
+
"description": "Whether this invocation repeated the latest accepted update"
|
|
40188
|
+
}
|
|
40189
|
+
},
|
|
40190
|
+
"required": [
|
|
40191
|
+
"task",
|
|
40192
|
+
"applied",
|
|
40193
|
+
"duplicate"
|
|
40194
|
+
],
|
|
40195
|
+
"additionalProperties": false,
|
|
40196
|
+
"description": "Result of publishing a client-owned task update.",
|
|
40197
|
+
"title": "TasksUpdateResult"
|
|
40198
|
+
},
|
|
38971
40199
|
"TasksWaitForPendingResult": {
|
|
38972
40200
|
"type": "object",
|
|
38973
40201
|
"properties": {},
|