@github/copilot-sdk-linuxmusl-x64 1.0.14-preview.1 → 1.0.14
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/copilot-sdk/cliVersion.d.ts +2 -0
- package/copilot-sdk/client.d.ts +5 -1
- package/copilot-sdk/docs/factories.md +36 -19
- package/copilot-sdk/extension.js +906 -185
- package/copilot-sdk/factory.d.ts +42 -16
- package/copilot-sdk/ffiRuntimeHost.d.ts +8 -2
- package/copilot-sdk/generated/rpc.d.ts +1683 -84
- package/copilot-sdk/generated/session-events.d.ts +987 -93
- package/copilot-sdk/index.d.ts +2 -2
- package/copilot-sdk/index.js +905 -184
- package/copilot-sdk/runtimeArtifacts.d.ts +13 -1
- package/copilot-sdk/session.d.ts +53 -1
- package/copilot-sdk/types.d.ts +78 -3
- package/package.json +1 -1
- package/prebuilds/linuxmusl-x64/runtime.node +0 -0
- package/schemas/api.schema.json +669 -107
- package/schemas/session-events.schema.json +560 -11
- package/sdk/index.js +256 -254
- package/tgrep/bin/linux-x64/tgrep +0 -0
- package/tgrep/bin/linuxmusl-x64/tgrep +0 -0
|
@@ -637,6 +637,10 @@
|
|
|
637
637
|
"type": "string",
|
|
638
638
|
"description": "Unique identifier for this assistant message"
|
|
639
639
|
},
|
|
640
|
+
"originatingMessageId": {
|
|
641
|
+
"type": "string",
|
|
642
|
+
"description": "Logical ID of the primary user message that initiated this run, matching the messageId returned by session.send (or the last messageId of session.sendMessages). Stable across model/tool iterations, steering messages, and stop-hook corrections. Subagent runs use their own initiating message ID, not the parent's. Absent for runs without an associated initiating message, such as empty batches."
|
|
643
|
+
},
|
|
640
644
|
"model": {
|
|
641
645
|
"type": "string",
|
|
642
646
|
"description": "Model that produced this assistant message, if known"
|
|
@@ -9010,7 +9014,7 @@
|
|
|
9010
9014
|
"description": "Type of hook that was invoked (e.g., \"preToolUse\", \"postToolUse\", \"sessionStart\")"
|
|
9011
9015
|
},
|
|
9012
9016
|
"output": {
|
|
9013
|
-
"description": "Output data produced by the hook",
|
|
9017
|
+
"description": "Output data produced by the hook. Durable and resumed postToolUse receipts may omit messages owned by a successful skill invocation and replace an unchanged skill sessionLog copy with an elision marker; hook-modified or re-sourced values are preserved, and the authoritative body remains in the skill invocation event.",
|
|
9014
9018
|
"x-opaque-json": true
|
|
9015
9019
|
},
|
|
9016
9020
|
"success": {
|
|
@@ -9199,7 +9203,7 @@
|
|
|
9199
9203
|
"description": "Type of hook being invoked (e.g., \"preToolUse\", \"postToolUse\", \"sessionStart\")"
|
|
9200
9204
|
},
|
|
9201
9205
|
"input": {
|
|
9202
|
-
"description": "Input data passed to the hook. For postToolUse hooks the retained copy served by session.eventLog.read (and by a resumed session)
|
|
9206
|
+
"description": "Input data passed to the hook. For postToolUse hooks the retained copy served by session.eventLog.read (and by a resumed session) drops the tool result's inline `contents`/`uiResource`/`skillInvocation` and replaces duplicated text result fields with a `[copilot:elided ...]` marker; the live subscription stream still delivers the full value. Canonical tool output remains in the adjacent tool.execution_complete event, while an invoked skill's authoritative body remains in its skill invocation event.",
|
|
9203
9207
|
"x-opaque-json": true
|
|
9204
9208
|
},
|
|
9205
9209
|
"parentToolCallId": {
|
|
@@ -9922,6 +9926,7 @@
|
|
|
9922
9926
|
"enum": [
|
|
9923
9927
|
"headers",
|
|
9924
9928
|
"none",
|
|
9929
|
+
"error",
|
|
9925
9930
|
"timeout"
|
|
9926
9931
|
],
|
|
9927
9932
|
"description": "How the pending MCP headers refresh request resolved.",
|
|
@@ -9929,6 +9934,7 @@
|
|
|
9929
9934
|
"x-enumDescriptions": {
|
|
9930
9935
|
"headers": "The host supplied dynamic headers.",
|
|
9931
9936
|
"none": "The host responded with no dynamic headers.",
|
|
9937
|
+
"error": "The host credential broker rejected or failed the refresh.",
|
|
9932
9938
|
"timeout": "No response arrived within the bounded window."
|
|
9933
9939
|
}
|
|
9934
9940
|
},
|
|
@@ -10694,7 +10700,11 @@
|
|
|
10694
10700
|
},
|
|
10695
10701
|
"source": {
|
|
10696
10702
|
"$ref": "#/definitions/McpServerSource",
|
|
10697
|
-
"description": "Configuration source: user, workspace, plugin, or
|
|
10703
|
+
"description": "Configuration source: user, workspace, plugin, builtin, or managed"
|
|
10704
|
+
},
|
|
10705
|
+
"displayName": {
|
|
10706
|
+
"type": "string",
|
|
10707
|
+
"description": "Human-readable display name supplied by a managed server catalog."
|
|
10698
10708
|
},
|
|
10699
10709
|
"error": {
|
|
10700
10710
|
"type": "string",
|
|
@@ -10731,15 +10741,17 @@
|
|
|
10731
10741
|
"user",
|
|
10732
10742
|
"workspace",
|
|
10733
10743
|
"plugin",
|
|
10734
|
-
"builtin"
|
|
10744
|
+
"builtin",
|
|
10745
|
+
"managed"
|
|
10735
10746
|
],
|
|
10736
|
-
"description": "Configuration source: user, workspace, plugin, or
|
|
10747
|
+
"description": "Configuration source: user, workspace, plugin, builtin, or managed",
|
|
10737
10748
|
"title": "McpServerSource",
|
|
10738
10749
|
"x-enumDescriptions": {
|
|
10739
10750
|
"user": "Server configured in the user's global MCP configuration.",
|
|
10740
10751
|
"workspace": "Server configured by the current workspace.",
|
|
10741
10752
|
"plugin": "Server contributed by an installed plugin.",
|
|
10742
|
-
"builtin": "Server bundled with the runtime."
|
|
10753
|
+
"builtin": "Server bundled with the runtime.",
|
|
10754
|
+
"managed": "Server supplied by a trusted host-managed catalog."
|
|
10743
10755
|
}
|
|
10744
10756
|
},
|
|
10745
10757
|
"McpServerStatus": {
|
|
@@ -11987,6 +11999,85 @@
|
|
|
11987
11999
|
"description": "Permission response variant that approves a request and remembers the provided approval for the rest of the session.",
|
|
11988
12000
|
"title": "PermissionApprovedForSession"
|
|
11989
12001
|
},
|
|
12002
|
+
"PermissionAssentDetectedData": {
|
|
12003
|
+
"type": "object",
|
|
12004
|
+
"properties": {
|
|
12005
|
+
"requestId": {
|
|
12006
|
+
"type": "string",
|
|
12007
|
+
"description": "Permission request the likely assent may refer to. The runtime derives this from the preceding durable blocker; the human message and extraction model do not choose it.",
|
|
12008
|
+
"stability": "experimental"
|
|
12009
|
+
},
|
|
12010
|
+
"turnIndex": {
|
|
12011
|
+
"type": "integer",
|
|
12012
|
+
"minimum": 0,
|
|
12013
|
+
"description": "Human turn whose text triggered the deterministic assent recognizer.",
|
|
12014
|
+
"stability": "experimental"
|
|
12015
|
+
}
|
|
12016
|
+
},
|
|
12017
|
+
"required": [
|
|
12018
|
+
"requestId",
|
|
12019
|
+
"turnIndex"
|
|
12020
|
+
],
|
|
12021
|
+
"additionalProperties": false,
|
|
12022
|
+
"description": "Records that deterministic text recognition found likely assent in the human turn immediately following a root Autopilot permission request that was blocked because no interactive response was available. This event grants no authority; its model-facing projection only suggests retrying the unchanged operation.",
|
|
12023
|
+
"title": "PermissionAssentDetectedData",
|
|
12024
|
+
"stability": "experimental"
|
|
12025
|
+
},
|
|
12026
|
+
"PermissionAssentDetectedEvent": {
|
|
12027
|
+
"type": "object",
|
|
12028
|
+
"properties": {
|
|
12029
|
+
"id": {
|
|
12030
|
+
"type": "string",
|
|
12031
|
+
"format": "uuid",
|
|
12032
|
+
"description": "Unique event identifier (UUID v4), generated when the event is emitted"
|
|
12033
|
+
},
|
|
12034
|
+
"timestamp": {
|
|
12035
|
+
"type": "string",
|
|
12036
|
+
"format": "date-time",
|
|
12037
|
+
"description": "ISO 8601 timestamp when the event was created"
|
|
12038
|
+
},
|
|
12039
|
+
"parentId": {
|
|
12040
|
+
"anyOf": [
|
|
12041
|
+
{
|
|
12042
|
+
"type": "string",
|
|
12043
|
+
"format": "uuid"
|
|
12044
|
+
},
|
|
12045
|
+
{
|
|
12046
|
+
"type": "null"
|
|
12047
|
+
}
|
|
12048
|
+
],
|
|
12049
|
+
"description": "ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event."
|
|
12050
|
+
},
|
|
12051
|
+
"ephemeral": {
|
|
12052
|
+
"type": "boolean",
|
|
12053
|
+
"description": "When true, the event is transient and not persisted to the session event log on disk"
|
|
12054
|
+
},
|
|
12055
|
+
"agentId": {
|
|
12056
|
+
"type": "string",
|
|
12057
|
+
"description": "Sub-agent instance identifier. Absent for events from the root/main agent and session-level events."
|
|
12058
|
+
},
|
|
12059
|
+
"type": {
|
|
12060
|
+
"type": "string",
|
|
12061
|
+
"const": "permission.assentDetected",
|
|
12062
|
+
"description": "Type discriminator. Always \"permission.assentDetected\"."
|
|
12063
|
+
},
|
|
12064
|
+
"data": {
|
|
12065
|
+
"$ref": "#/definitions/PermissionAssentDetectedData",
|
|
12066
|
+
"description": "Records that deterministic text recognition found likely assent in the human turn immediately following a root Autopilot permission request that was blocked because no interactive response was available. This event grants no authority; its model-facing projection only suggests retrying the unchanged operation."
|
|
12067
|
+
}
|
|
12068
|
+
},
|
|
12069
|
+
"required": [
|
|
12070
|
+
"id",
|
|
12071
|
+
"timestamp",
|
|
12072
|
+
"parentId",
|
|
12073
|
+
"type",
|
|
12074
|
+
"data"
|
|
12075
|
+
],
|
|
12076
|
+
"additionalProperties": false,
|
|
12077
|
+
"description": "Session event \"permission.assentDetected\". Records that deterministic text recognition found likely assent in the human turn immediately following a root Autopilot permission request that was blocked because no interactive response was available. This event grants no authority; its model-facing projection only suggests retrying the unchanged operation.",
|
|
12078
|
+
"title": "PermissionAssentDetectedEvent",
|
|
12079
|
+
"stability": "experimental"
|
|
12080
|
+
},
|
|
11990
12081
|
"PermissionAssistedApproval": {
|
|
11991
12082
|
"type": "object",
|
|
11992
12083
|
"properties": {
|
|
@@ -12208,6 +12299,111 @@
|
|
|
12208
12299
|
"description": "Session event \"permission.completed\". Permission request completion notification signaling UI dismissal",
|
|
12209
12300
|
"title": "PermissionCompletedEvent"
|
|
12210
12301
|
},
|
|
12302
|
+
"PermissionContextualAuthorizationData": {
|
|
12303
|
+
"type": "object",
|
|
12304
|
+
"properties": {
|
|
12305
|
+
"recordId": {
|
|
12306
|
+
"type": "string",
|
|
12307
|
+
"description": "Deterministic identity of the contextual message grant.",
|
|
12308
|
+
"stability": "experimental"
|
|
12309
|
+
},
|
|
12310
|
+
"requestId": {
|
|
12311
|
+
"type": "string",
|
|
12312
|
+
"description": "Original blocked permission request selected by deterministic event ordering, never by the extraction model.",
|
|
12313
|
+
"stability": "experimental"
|
|
12314
|
+
},
|
|
12315
|
+
"turnIndex": {
|
|
12316
|
+
"type": "integer",
|
|
12317
|
+
"minimum": 0,
|
|
12318
|
+
"description": "Human turn containing the contextual decision.",
|
|
12319
|
+
"stability": "experimental"
|
|
12320
|
+
},
|
|
12321
|
+
"polarity": {
|
|
12322
|
+
"$ref": "#/definitions/PermissionMessageAuthorizationPolarity",
|
|
12323
|
+
"description": "Whether the contextual human span granted or denied authority.",
|
|
12324
|
+
"stability": "experimental"
|
|
12325
|
+
},
|
|
12326
|
+
"spanStart": {
|
|
12327
|
+
"type": "integer",
|
|
12328
|
+
"minimum": 0,
|
|
12329
|
+
"description": "Start byte offset of the contextual decision span within the turn.",
|
|
12330
|
+
"stability": "experimental"
|
|
12331
|
+
},
|
|
12332
|
+
"spanEnd": {
|
|
12333
|
+
"type": "integer",
|
|
12334
|
+
"minimum": 0,
|
|
12335
|
+
"description": "End byte offset of the contextual decision span within the turn.",
|
|
12336
|
+
"stability": "experimental"
|
|
12337
|
+
}
|
|
12338
|
+
},
|
|
12339
|
+
"required": [
|
|
12340
|
+
"recordId",
|
|
12341
|
+
"requestId",
|
|
12342
|
+
"turnIndex",
|
|
12343
|
+
"polarity",
|
|
12344
|
+
"spanStart",
|
|
12345
|
+
"spanEnd"
|
|
12346
|
+
],
|
|
12347
|
+
"additionalProperties": false,
|
|
12348
|
+
"description": "Freezes a blinded contextual authorization proposal whose verbatim human span was deterministically bound to the immediately preceding blocked permission request. The event carries no action fields; replay re-derives the exact action from the earlier permission request and mints a one-shot message grant only when the binding and span still verify.",
|
|
12349
|
+
"title": "PermissionContextualAuthorizationData",
|
|
12350
|
+
"stability": "experimental"
|
|
12351
|
+
},
|
|
12352
|
+
"PermissionContextualAuthorizationEvent": {
|
|
12353
|
+
"type": "object",
|
|
12354
|
+
"properties": {
|
|
12355
|
+
"id": {
|
|
12356
|
+
"type": "string",
|
|
12357
|
+
"format": "uuid",
|
|
12358
|
+
"description": "Unique event identifier (UUID v4), generated when the event is emitted"
|
|
12359
|
+
},
|
|
12360
|
+
"timestamp": {
|
|
12361
|
+
"type": "string",
|
|
12362
|
+
"format": "date-time",
|
|
12363
|
+
"description": "ISO 8601 timestamp when the event was created"
|
|
12364
|
+
},
|
|
12365
|
+
"parentId": {
|
|
12366
|
+
"anyOf": [
|
|
12367
|
+
{
|
|
12368
|
+
"type": "string",
|
|
12369
|
+
"format": "uuid"
|
|
12370
|
+
},
|
|
12371
|
+
{
|
|
12372
|
+
"type": "null"
|
|
12373
|
+
}
|
|
12374
|
+
],
|
|
12375
|
+
"description": "ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event."
|
|
12376
|
+
},
|
|
12377
|
+
"ephemeral": {
|
|
12378
|
+
"type": "boolean",
|
|
12379
|
+
"description": "When true, the event is transient and not persisted to the session event log on disk"
|
|
12380
|
+
},
|
|
12381
|
+
"agentId": {
|
|
12382
|
+
"type": "string",
|
|
12383
|
+
"description": "Sub-agent instance identifier. Absent for events from the root/main agent and session-level events."
|
|
12384
|
+
},
|
|
12385
|
+
"type": {
|
|
12386
|
+
"type": "string",
|
|
12387
|
+
"const": "permission.contextualAuthorization",
|
|
12388
|
+
"description": "Type discriminator. Always \"permission.contextualAuthorization\"."
|
|
12389
|
+
},
|
|
12390
|
+
"data": {
|
|
12391
|
+
"$ref": "#/definitions/PermissionContextualAuthorizationData",
|
|
12392
|
+
"description": "Freezes a blinded contextual authorization proposal whose verbatim human span was deterministically bound to the immediately preceding blocked permission request. The event carries no action fields; replay re-derives the exact action from the earlier permission request and mints a one-shot message grant only when the binding and span still verify."
|
|
12393
|
+
}
|
|
12394
|
+
},
|
|
12395
|
+
"required": [
|
|
12396
|
+
"id",
|
|
12397
|
+
"timestamp",
|
|
12398
|
+
"parentId",
|
|
12399
|
+
"type",
|
|
12400
|
+
"data"
|
|
12401
|
+
],
|
|
12402
|
+
"additionalProperties": false,
|
|
12403
|
+
"description": "Session event \"permission.contextualAuthorization\". Freezes a blinded contextual authorization proposal whose verbatim human span was deterministically bound to the immediately preceding blocked permission request. The event carries no action fields; replay re-derives the exact action from the earlier permission request and mints a one-shot message grant only when the binding and span still verify.",
|
|
12404
|
+
"title": "PermissionContextualAuthorizationEvent",
|
|
12405
|
+
"stability": "experimental"
|
|
12406
|
+
},
|
|
12211
12407
|
"PermissionDecisionSource": {
|
|
12212
12408
|
"type": "string",
|
|
12213
12409
|
"enum": [
|
|
@@ -12561,13 +12757,18 @@
|
|
|
12561
12757
|
"minimum": 0,
|
|
12562
12758
|
"description": "The human turn that was read by the proposer.",
|
|
12563
12759
|
"stability": "experimental"
|
|
12760
|
+
},
|
|
12761
|
+
"activatesExtraction": {
|
|
12762
|
+
"type": "boolean",
|
|
12763
|
+
"description": "Whether this read activates ongoing message-backed extraction. False for a contextual-assent-only pass while auto-approval is off, so unrelated future messages remain outside extraction.",
|
|
12764
|
+
"stability": "experimental"
|
|
12564
12765
|
}
|
|
12565
12766
|
},
|
|
12566
12767
|
"required": [
|
|
12567
12768
|
"turnIndex"
|
|
12568
12769
|
],
|
|
12569
12770
|
"additionalProperties": false,
|
|
12570
|
-
"description": "Records that one human turn has been read by the blinded authorization proposer, whether or not it minted anything, so a resumed session does not re-run the extraction model on a turn the live session already read.
|
|
12771
|
+
"description": "Records that one human turn has been read by the blinded authorization proposer, whether or not it minted anything, so a resumed session does not re-run the extraction model on a turn the live session already read. Also records whether that pass activates ongoing extraction; contextual-assent-only passes do not, so unrelated future messages remain outside extraction.",
|
|
12571
12772
|
"title": "PermissionMessageAuthorizationReadData",
|
|
12572
12773
|
"stability": "experimental"
|
|
12573
12774
|
},
|
|
@@ -12611,7 +12812,7 @@
|
|
|
12611
12812
|
},
|
|
12612
12813
|
"data": {
|
|
12613
12814
|
"$ref": "#/definitions/PermissionMessageAuthorizationReadData",
|
|
12614
|
-
"description": "Records that one human turn has been read by the blinded authorization proposer, whether or not it minted anything, so a resumed session does not re-run the extraction model on a turn the live session already read.
|
|
12815
|
+
"description": "Records that one human turn has been read by the blinded authorization proposer, whether or not it minted anything, so a resumed session does not re-run the extraction model on a turn the live session already read. Also records whether that pass activates ongoing extraction; contextual-assent-only passes do not, so unrelated future messages remain outside extraction."
|
|
12615
12816
|
}
|
|
12616
12817
|
},
|
|
12617
12818
|
"required": [
|
|
@@ -12622,7 +12823,7 @@
|
|
|
12622
12823
|
"data"
|
|
12623
12824
|
],
|
|
12624
12825
|
"additionalProperties": false,
|
|
12625
|
-
"description": "Session event \"permission.messageAuthorizationRead\". Records that one human turn has been read by the blinded authorization proposer, whether or not it minted anything, so a resumed session does not re-run the extraction model on a turn the live session already read.
|
|
12826
|
+
"description": "Session event \"permission.messageAuthorizationRead\". Records that one human turn has been read by the blinded authorization proposer, whether or not it minted anything, so a resumed session does not re-run the extraction model on a turn the live session already read. Also records whether that pass activates ongoing extraction; contextual-assent-only passes do not, so unrelated future messages remain outside extraction.",
|
|
12626
12827
|
"title": "PermissionMessageAuthorizationReadEvent",
|
|
12627
12828
|
"stability": "experimental"
|
|
12628
12829
|
},
|
|
@@ -15956,6 +16157,7 @@
|
|
|
15956
16157
|
"service_access",
|
|
15957
16158
|
"network_outbound",
|
|
15958
16159
|
"network_local",
|
|
16160
|
+
"network_host",
|
|
15959
16161
|
"other_access"
|
|
15960
16162
|
],
|
|
15961
16163
|
"description": "Bounded class of access an enforcement check refused. Raw resources, commands, and process names accompany it only when content capture is enabled; diagnostic text and matched rules are never exported.",
|
|
@@ -15972,6 +16174,7 @@
|
|
|
15972
16174
|
"service_access": "Windows service-control-manager access was refused and correlated with capture evidence.",
|
|
15973
16175
|
"network_outbound": "An outbound connection was refused by `network.allowOutbound`.",
|
|
15974
16176
|
"network_local": "A connection to a local or loopback destination was refused by `network.allowLocalNetwork`.",
|
|
16177
|
+
"network_host": "A destination was refused by the sandbox host allow/deny rules.",
|
|
15975
16178
|
"other_access": "The sandbox's denial capture recorded a refusal its record does not attribute to a more specific control: an unclassified resource (registry, COM, section object) or an AppContainer capability with no network meaning. Deliberately generic — the capture proves the denial happened, and naming a narrower class than the record supports would be a guess."
|
|
15976
16179
|
}
|
|
15977
16180
|
},
|
|
@@ -16693,6 +16896,21 @@
|
|
|
16693
16896
|
"$ref": "#/definitions/SkillInvokedEvent",
|
|
16694
16897
|
"description": "Session event \"skill.invoked\". Skill invocation details including content, allowed tools, and plugin metadata"
|
|
16695
16898
|
},
|
|
16899
|
+
{
|
|
16900
|
+
"$ref": "#/definitions/SkillInvokedRefEvent",
|
|
16901
|
+
"description": "Session event \"skill.invoked_ref\". Internal durable skill invocation receipt whose content resolves from an earlier inline skill event in the same session.",
|
|
16902
|
+
"visibility": "internal"
|
|
16903
|
+
},
|
|
16904
|
+
{
|
|
16905
|
+
"$ref": "#/definitions/SkillContextDeliveredEvent",
|
|
16906
|
+
"description": "Session event \"skill.context_delivered\". Exact skill context delivered to the model during a tool phase. This is not a user submission or another skill invocation.",
|
|
16907
|
+
"visibility": "internal"
|
|
16908
|
+
},
|
|
16909
|
+
{
|
|
16910
|
+
"$ref": "#/definitions/SkillContextDeliveredRefEvent",
|
|
16911
|
+
"description": "Session event \"skill.context_delivered_ref\". Internal durable receipt that reconstructs exact model-visible skill context from earlier session content.",
|
|
16912
|
+
"visibility": "internal"
|
|
16913
|
+
},
|
|
16696
16914
|
{
|
|
16697
16915
|
"$ref": "#/definitions/SandboxDecisionEvent",
|
|
16698
16916
|
"description": "Session event \"sandbox.decision\". Payload of `sandbox.decision`, a bounded governance record of what the process sandbox was configured to do and whether it took effect. Discriminated by `kind`.",
|
|
@@ -16764,12 +16982,20 @@
|
|
|
16764
16982
|
},
|
|
16765
16983
|
{
|
|
16766
16984
|
"$ref": "#/definitions/PermissionMessageAuthorizationReadEvent",
|
|
16767
|
-
"description": "Session event \"permission.messageAuthorizationRead\". Records that one human turn has been read by the blinded authorization proposer, whether or not it minted anything, so a resumed session does not re-run the extraction model on a turn the live session already read.
|
|
16985
|
+
"description": "Session event \"permission.messageAuthorizationRead\". Records that one human turn has been read by the blinded authorization proposer, whether or not it minted anything, so a resumed session does not re-run the extraction model on a turn the live session already read. Also records whether that pass activates ongoing extraction; contextual-assent-only passes do not, so unrelated future messages remain outside extraction."
|
|
16768
16986
|
},
|
|
16769
16987
|
{
|
|
16770
16988
|
"$ref": "#/definitions/PermissionMessageAuthorizationDegradedEvent",
|
|
16771
16989
|
"description": "Session event \"permission.messageAuthorizationDegraded\". Records that message-backed authorization could not safely represent one human turn before compaction. The runtime may compact the original message after this marker is durable, but message-derived carry-forward and assisted auto-approval remain disabled for the rest of the session so subsequent commands continue through the ordinary permission prompt."
|
|
16772
16990
|
},
|
|
16991
|
+
{
|
|
16992
|
+
"$ref": "#/definitions/PermissionAssentDetectedEvent",
|
|
16993
|
+
"description": "Session event \"permission.assentDetected\". Records that deterministic text recognition found likely assent in the human turn immediately following a root Autopilot permission request that was blocked because no interactive response was available. This event grants no authority; its model-facing projection only suggests retrying the unchanged operation."
|
|
16994
|
+
},
|
|
16995
|
+
{
|
|
16996
|
+
"$ref": "#/definitions/PermissionContextualAuthorizationEvent",
|
|
16997
|
+
"description": "Session event \"permission.contextualAuthorization\". Freezes a blinded contextual authorization proposal whose verbatim human span was deterministically bound to the immediately preceding blocked permission request. The event carries no action fields; replay re-derives the exact action from the earlier permission request and mints a one-shot message grant only when the binding and span still verify."
|
|
16998
|
+
},
|
|
16773
16999
|
{
|
|
16774
17000
|
"$ref": "#/definitions/UserInputRequestedEvent",
|
|
16775
17001
|
"description": "Session event \"user_input.requested\". User input request notification with question and optional predefined choices"
|
|
@@ -17647,6 +17873,174 @@
|
|
|
17647
17873
|
"error": "The session ended because of a crash or fatal error."
|
|
17648
17874
|
}
|
|
17649
17875
|
},
|
|
17876
|
+
"SkillContextDeliveredData": {
|
|
17877
|
+
"type": "object",
|
|
17878
|
+
"properties": {
|
|
17879
|
+
"content": {
|
|
17880
|
+
"type": "string",
|
|
17881
|
+
"description": "Exact model-facing skill wrapper, including its invocation-time file context"
|
|
17882
|
+
},
|
|
17883
|
+
"source": {
|
|
17884
|
+
"type": "string",
|
|
17885
|
+
"description": "Unmodified injection provenance, in the form skill-<invocation-name>"
|
|
17886
|
+
},
|
|
17887
|
+
"interactionId": {
|
|
17888
|
+
"type": "string",
|
|
17889
|
+
"description": "Interaction that delivered this context, when known"
|
|
17890
|
+
}
|
|
17891
|
+
},
|
|
17892
|
+
"required": [
|
|
17893
|
+
"content",
|
|
17894
|
+
"source"
|
|
17895
|
+
],
|
|
17896
|
+
"additionalProperties": false,
|
|
17897
|
+
"description": "Exact skill context delivered to the model during a tool phase. This is not a user submission or another skill invocation.",
|
|
17898
|
+
"title": "SkillContextDeliveredData"
|
|
17899
|
+
},
|
|
17900
|
+
"SkillContextDeliveredEvent": {
|
|
17901
|
+
"type": "object",
|
|
17902
|
+
"properties": {
|
|
17903
|
+
"id": {
|
|
17904
|
+
"type": "string",
|
|
17905
|
+
"format": "uuid",
|
|
17906
|
+
"description": "Unique event identifier (UUID v4), generated when the event is emitted"
|
|
17907
|
+
},
|
|
17908
|
+
"timestamp": {
|
|
17909
|
+
"type": "string",
|
|
17910
|
+
"format": "date-time",
|
|
17911
|
+
"description": "ISO 8601 timestamp when the event was created"
|
|
17912
|
+
},
|
|
17913
|
+
"parentId": {
|
|
17914
|
+
"anyOf": [
|
|
17915
|
+
{
|
|
17916
|
+
"type": "string",
|
|
17917
|
+
"format": "uuid"
|
|
17918
|
+
},
|
|
17919
|
+
{
|
|
17920
|
+
"type": "null"
|
|
17921
|
+
}
|
|
17922
|
+
],
|
|
17923
|
+
"description": "ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event."
|
|
17924
|
+
},
|
|
17925
|
+
"ephemeral": {
|
|
17926
|
+
"type": "boolean",
|
|
17927
|
+
"description": "When true, the event is transient and not persisted to the session event log on disk"
|
|
17928
|
+
},
|
|
17929
|
+
"agentId": {
|
|
17930
|
+
"type": "string",
|
|
17931
|
+
"description": "Sub-agent instance identifier. Absent for events from the root/main agent and session-level events."
|
|
17932
|
+
},
|
|
17933
|
+
"type": {
|
|
17934
|
+
"type": "string",
|
|
17935
|
+
"const": "skill.context_delivered",
|
|
17936
|
+
"description": "Type discriminator. Always \"skill.context_delivered\"."
|
|
17937
|
+
},
|
|
17938
|
+
"data": {
|
|
17939
|
+
"$ref": "#/definitions/SkillContextDeliveredData",
|
|
17940
|
+
"description": "Exact skill context delivered to the model during a tool phase. This is not a user submission or another skill invocation."
|
|
17941
|
+
}
|
|
17942
|
+
},
|
|
17943
|
+
"required": [
|
|
17944
|
+
"id",
|
|
17945
|
+
"timestamp",
|
|
17946
|
+
"parentId",
|
|
17947
|
+
"type",
|
|
17948
|
+
"data"
|
|
17949
|
+
],
|
|
17950
|
+
"additionalProperties": false,
|
|
17951
|
+
"description": "Session event \"skill.context_delivered\". Exact skill context delivered to the model during a tool phase. This is not a user submission or another skill invocation.",
|
|
17952
|
+
"title": "SkillContextDeliveredEvent",
|
|
17953
|
+
"visibility": "internal",
|
|
17954
|
+
"stability": "experimental"
|
|
17955
|
+
},
|
|
17956
|
+
"SkillContextDeliveredRefData": {
|
|
17957
|
+
"type": "object",
|
|
17958
|
+
"properties": {
|
|
17959
|
+
"contentId": {
|
|
17960
|
+
"type": "string",
|
|
17961
|
+
"description": "Content identifier of an earlier inline skill event in this session, in the prefixed form `sha256:<lowercase hex digest>` over the UTF-8 bytes of that event's `content`"
|
|
17962
|
+
},
|
|
17963
|
+
"prefix": {
|
|
17964
|
+
"type": "string",
|
|
17965
|
+
"description": "Exact text preceding the referenced content in the delivered wrapper"
|
|
17966
|
+
},
|
|
17967
|
+
"suffix": {
|
|
17968
|
+
"type": "string",
|
|
17969
|
+
"description": "Exact text following the referenced content in the delivered wrapper"
|
|
17970
|
+
},
|
|
17971
|
+
"source": {
|
|
17972
|
+
"type": "string",
|
|
17973
|
+
"description": "Unmodified injection provenance, in the form skill-<invocation-name>"
|
|
17974
|
+
},
|
|
17975
|
+
"interactionId": {
|
|
17976
|
+
"type": "string",
|
|
17977
|
+
"description": "Interaction that delivered this context, when known"
|
|
17978
|
+
}
|
|
17979
|
+
},
|
|
17980
|
+
"required": [
|
|
17981
|
+
"contentId",
|
|
17982
|
+
"source"
|
|
17983
|
+
],
|
|
17984
|
+
"additionalProperties": false,
|
|
17985
|
+
"description": "Internal durable receipt that reconstructs exact model-visible skill context from earlier session content.",
|
|
17986
|
+
"title": "SkillContextDeliveredRefData"
|
|
17987
|
+
},
|
|
17988
|
+
"SkillContextDeliveredRefEvent": {
|
|
17989
|
+
"type": "object",
|
|
17990
|
+
"properties": {
|
|
17991
|
+
"id": {
|
|
17992
|
+
"type": "string",
|
|
17993
|
+
"format": "uuid",
|
|
17994
|
+
"description": "Unique event identifier (UUID v4), generated when the event is emitted"
|
|
17995
|
+
},
|
|
17996
|
+
"timestamp": {
|
|
17997
|
+
"type": "string",
|
|
17998
|
+
"format": "date-time",
|
|
17999
|
+
"description": "ISO 8601 timestamp when the event was created"
|
|
18000
|
+
},
|
|
18001
|
+
"parentId": {
|
|
18002
|
+
"anyOf": [
|
|
18003
|
+
{
|
|
18004
|
+
"type": "string",
|
|
18005
|
+
"format": "uuid"
|
|
18006
|
+
},
|
|
18007
|
+
{
|
|
18008
|
+
"type": "null"
|
|
18009
|
+
}
|
|
18010
|
+
],
|
|
18011
|
+
"description": "ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event."
|
|
18012
|
+
},
|
|
18013
|
+
"ephemeral": {
|
|
18014
|
+
"type": "boolean",
|
|
18015
|
+
"description": "When true, the event is transient and not persisted to the session event log on disk"
|
|
18016
|
+
},
|
|
18017
|
+
"agentId": {
|
|
18018
|
+
"type": "string",
|
|
18019
|
+
"description": "Sub-agent instance identifier. Absent for events from the root/main agent and session-level events."
|
|
18020
|
+
},
|
|
18021
|
+
"type": {
|
|
18022
|
+
"type": "string",
|
|
18023
|
+
"const": "skill.context_delivered_ref",
|
|
18024
|
+
"description": "Type discriminator. Always \"skill.context_delivered_ref\"."
|
|
18025
|
+
},
|
|
18026
|
+
"data": {
|
|
18027
|
+
"$ref": "#/definitions/SkillContextDeliveredRefData",
|
|
18028
|
+
"description": "Internal durable receipt that reconstructs exact model-visible skill context from earlier session content."
|
|
18029
|
+
}
|
|
18030
|
+
},
|
|
18031
|
+
"required": [
|
|
18032
|
+
"id",
|
|
18033
|
+
"timestamp",
|
|
18034
|
+
"parentId",
|
|
18035
|
+
"type",
|
|
18036
|
+
"data"
|
|
18037
|
+
],
|
|
18038
|
+
"additionalProperties": false,
|
|
18039
|
+
"description": "Session event \"skill.context_delivered_ref\". Internal durable receipt that reconstructs exact model-visible skill context from earlier session content.",
|
|
18040
|
+
"title": "SkillContextDeliveredRefEvent",
|
|
18041
|
+
"visibility": "internal",
|
|
18042
|
+
"stability": "experimental"
|
|
18043
|
+
},
|
|
17650
18044
|
"SkillInvokedData": {
|
|
17651
18045
|
"type": "object",
|
|
17652
18046
|
"properties": {
|
|
@@ -17761,6 +18155,128 @@
|
|
|
17761
18155
|
"description": "Session event \"skill.invoked\". Skill invocation details including content, allowed tools, and plugin metadata",
|
|
17762
18156
|
"title": "SkillInvokedEvent"
|
|
17763
18157
|
},
|
|
18158
|
+
"SkillInvokedRefData": {
|
|
18159
|
+
"type": "object",
|
|
18160
|
+
"properties": {
|
|
18161
|
+
"name": {
|
|
18162
|
+
"type": "string",
|
|
18163
|
+
"description": "Name of the invoked skill"
|
|
18164
|
+
},
|
|
18165
|
+
"model": {
|
|
18166
|
+
"type": "string",
|
|
18167
|
+
"description": "Model identifier active when the skill was invoked, when known"
|
|
18168
|
+
},
|
|
18169
|
+
"path": {
|
|
18170
|
+
"type": "string",
|
|
18171
|
+
"description": "File path to the SKILL.md definition, or an empty string for an SDK-provided skill without a filesystem identity"
|
|
18172
|
+
},
|
|
18173
|
+
"contentId": {
|
|
18174
|
+
"type": "string",
|
|
18175
|
+
"description": "Content identifier of an earlier inline skill event in this session, in the prefixed form `sha256:<lowercase hex digest>` over the UTF-8 bytes of that event's `content`"
|
|
18176
|
+
},
|
|
18177
|
+
"contentLength": {
|
|
18178
|
+
"type": "integer",
|
|
18179
|
+
"minimum": 0,
|
|
18180
|
+
"description": "UTF-16 code unit length of the referenced skill content. Derived from the referenced body and validated against it when the reference is expanded; a reference whose length disagrees with the body it names is rejected instead of expanded"
|
|
18181
|
+
},
|
|
18182
|
+
"allowedTools": {
|
|
18183
|
+
"type": "array",
|
|
18184
|
+
"items": {
|
|
18185
|
+
"type": "string"
|
|
18186
|
+
},
|
|
18187
|
+
"description": "Tool names that should be auto-approved when this skill is active"
|
|
18188
|
+
},
|
|
18189
|
+
"disableModelInvocation": {
|
|
18190
|
+
"type": "boolean",
|
|
18191
|
+
"description": "Whether model invocation is disabled for this skill"
|
|
18192
|
+
},
|
|
18193
|
+
"source": {
|
|
18194
|
+
"type": "string",
|
|
18195
|
+
"description": "Source identifier for where the skill was discovered"
|
|
18196
|
+
},
|
|
18197
|
+
"pluginName": {
|
|
18198
|
+
"type": "string",
|
|
18199
|
+
"description": "Name of the plugin this skill originated from, when applicable"
|
|
18200
|
+
},
|
|
18201
|
+
"pluginVersion": {
|
|
18202
|
+
"type": "string",
|
|
18203
|
+
"description": "Version of the plugin this skill originated from, when applicable"
|
|
18204
|
+
},
|
|
18205
|
+
"description": {
|
|
18206
|
+
"type": "string",
|
|
18207
|
+
"description": "Description of the skill from its SKILL.md frontmatter"
|
|
18208
|
+
},
|
|
18209
|
+
"trigger": {
|
|
18210
|
+
"$ref": "#/definitions/SkillInvokedTrigger",
|
|
18211
|
+
"description": "What triggered the skill invocation"
|
|
18212
|
+
}
|
|
18213
|
+
},
|
|
18214
|
+
"required": [
|
|
18215
|
+
"name",
|
|
18216
|
+
"path",
|
|
18217
|
+
"contentId",
|
|
18218
|
+
"contentLength"
|
|
18219
|
+
],
|
|
18220
|
+
"additionalProperties": false,
|
|
18221
|
+
"description": "Internal durable skill invocation receipt whose content resolves from an earlier inline skill event in the same session.",
|
|
18222
|
+
"title": "SkillInvokedRefData"
|
|
18223
|
+
},
|
|
18224
|
+
"SkillInvokedRefEvent": {
|
|
18225
|
+
"type": "object",
|
|
18226
|
+
"properties": {
|
|
18227
|
+
"id": {
|
|
18228
|
+
"type": "string",
|
|
18229
|
+
"format": "uuid",
|
|
18230
|
+
"description": "Unique event identifier (UUID v4), generated when the event is emitted"
|
|
18231
|
+
},
|
|
18232
|
+
"timestamp": {
|
|
18233
|
+
"type": "string",
|
|
18234
|
+
"format": "date-time",
|
|
18235
|
+
"description": "ISO 8601 timestamp when the event was created"
|
|
18236
|
+
},
|
|
18237
|
+
"parentId": {
|
|
18238
|
+
"anyOf": [
|
|
18239
|
+
{
|
|
18240
|
+
"type": "string",
|
|
18241
|
+
"format": "uuid"
|
|
18242
|
+
},
|
|
18243
|
+
{
|
|
18244
|
+
"type": "null"
|
|
18245
|
+
}
|
|
18246
|
+
],
|
|
18247
|
+
"description": "ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event."
|
|
18248
|
+
},
|
|
18249
|
+
"ephemeral": {
|
|
18250
|
+
"type": "boolean",
|
|
18251
|
+
"description": "When true, the event is transient and not persisted to the session event log on disk"
|
|
18252
|
+
},
|
|
18253
|
+
"agentId": {
|
|
18254
|
+
"type": "string",
|
|
18255
|
+
"description": "Sub-agent instance identifier. Absent for events from the root/main agent and session-level events."
|
|
18256
|
+
},
|
|
18257
|
+
"type": {
|
|
18258
|
+
"type": "string",
|
|
18259
|
+
"const": "skill.invoked_ref",
|
|
18260
|
+
"description": "Type discriminator. Always \"skill.invoked_ref\"."
|
|
18261
|
+
},
|
|
18262
|
+
"data": {
|
|
18263
|
+
"$ref": "#/definitions/SkillInvokedRefData",
|
|
18264
|
+
"description": "Internal durable skill invocation receipt whose content resolves from an earlier inline skill event in the same session."
|
|
18265
|
+
}
|
|
18266
|
+
},
|
|
18267
|
+
"required": [
|
|
18268
|
+
"id",
|
|
18269
|
+
"timestamp",
|
|
18270
|
+
"parentId",
|
|
18271
|
+
"type",
|
|
18272
|
+
"data"
|
|
18273
|
+
],
|
|
18274
|
+
"additionalProperties": false,
|
|
18275
|
+
"description": "Session event \"skill.invoked_ref\". Internal durable skill invocation receipt whose content resolves from an earlier inline skill event in the same session.",
|
|
18276
|
+
"title": "SkillInvokedRefEvent",
|
|
18277
|
+
"visibility": "internal",
|
|
18278
|
+
"stability": "experimental"
|
|
18279
|
+
},
|
|
17764
18280
|
"SkillInvokedTrigger": {
|
|
17765
18281
|
"type": "string",
|
|
17766
18282
|
"enum": [
|
|
@@ -18691,6 +19207,10 @@
|
|
|
18691
19207
|
"$ref": "#/definitions/SubagentTaskModelSource",
|
|
18692
19208
|
"description": "Where the model input for this sub-agent came from. Present when the task planner resolved the launch (the task tool and factory agents); absent for sub-agents created through other runtime paths."
|
|
18693
19209
|
},
|
|
19210
|
+
"modelSelectionSource": {
|
|
19211
|
+
"$ref": "#/definitions/SubagentModelSelectionSource",
|
|
19212
|
+
"description": "Authority or runtime mechanism responsible for sub-agent model selection, when known at start."
|
|
19213
|
+
},
|
|
18694
19214
|
"factoryRunId": {
|
|
18695
19215
|
"type": "string",
|
|
18696
19216
|
"description": "Root id of the factory run that spawned this sub-agent, when it was spawned by one."
|
|
@@ -19987,6 +20507,11 @@
|
|
|
19987
20507
|
"type": "boolean",
|
|
19988
20508
|
"description": "Whether this tool execution ran inside a sandbox container"
|
|
19989
20509
|
},
|
|
20510
|
+
"shellExecution": {
|
|
20511
|
+
"$ref": "#/definitions/ToolExecutionCompleteShellExecution",
|
|
20512
|
+
"description": "Experimental shell completion facts captured before the persisted result contents are stripped.",
|
|
20513
|
+
"stability": "experimental"
|
|
20514
|
+
},
|
|
19990
20515
|
"parentToolCallId": {
|
|
19991
20516
|
"type": "string",
|
|
19992
20517
|
"description": "Tool call ID of the parent tool invocation when this event originates from a sub-agent",
|
|
@@ -20092,7 +20617,7 @@
|
|
|
20092
20617
|
},
|
|
20093
20618
|
"detailedContent": {
|
|
20094
20619
|
"type": "string",
|
|
20095
|
-
"description": "
|
|
20620
|
+
"description": "Detailed tool result for UI/timeline display, preserving complete content such as diffs for most tools. Successful skill invocations intentionally use the concise model-facing content here; the authoritative skill body is carried by the corresponding skill invocation event. Falls back to content when absent."
|
|
20096
20621
|
},
|
|
20097
20622
|
"contents": {
|
|
20098
20623
|
"type": "array",
|
|
@@ -20141,6 +20666,22 @@
|
|
|
20141
20666
|
"description": "Tool execution result on success",
|
|
20142
20667
|
"title": "ToolExecutionCompleteResult"
|
|
20143
20668
|
},
|
|
20669
|
+
"ToolExecutionCompleteShellExecution": {
|
|
20670
|
+
"type": "object",
|
|
20671
|
+
"properties": {
|
|
20672
|
+
"exitCode": {
|
|
20673
|
+
"type": "integer",
|
|
20674
|
+
"description": "Process exit code reported by the shell driver."
|
|
20675
|
+
}
|
|
20676
|
+
},
|
|
20677
|
+
"required": [
|
|
20678
|
+
"exitCode"
|
|
20679
|
+
],
|
|
20680
|
+
"additionalProperties": false,
|
|
20681
|
+
"description": "Experimental shell completion facts retained independently of the full tool result.",
|
|
20682
|
+
"title": "ToolExecutionCompleteShellExecution",
|
|
20683
|
+
"stability": "experimental"
|
|
20684
|
+
},
|
|
20144
20685
|
"ToolExecutionCompleteToolDescription": {
|
|
20145
20686
|
"type": "object",
|
|
20146
20687
|
"properties": {
|
|
@@ -20543,6 +21084,10 @@
|
|
|
20543
21084
|
"type": "string",
|
|
20544
21085
|
"description": "Name of the MCP server hosting this tool, when the tool is an MCP tool"
|
|
20545
21086
|
},
|
|
21087
|
+
"mcpConfigServerName": {
|
|
21088
|
+
"type": "string",
|
|
21089
|
+
"description": "Preferred lookup name for the MCP server hosting this tool: the configured (namespaced) config-map key when the tool carries one, otherwise the display name from `mcpServerName`. Present when the tool is an MCP tool; this is the name unrestricted provenance telemetry hashes so it joins with `mcp_server_setup`, which keys off the configured name too."
|
|
21090
|
+
},
|
|
20546
21091
|
"mcpToolName": {
|
|
20547
21092
|
"type": "string",
|
|
20548
21093
|
"description": "Original tool name on the MCP server, when the tool is an MCP tool"
|
|
@@ -20551,6 +21096,10 @@
|
|
|
20551
21096
|
"$ref": "#/definitions/McpServerTransport",
|
|
20552
21097
|
"description": "Transport the MCP server hosting this tool is connected over, when the tool is an MCP tool and the server is configured"
|
|
20553
21098
|
},
|
|
21099
|
+
"mcpConfigSource": {
|
|
21100
|
+
"$ref": "#/definitions/McpServerSource",
|
|
21101
|
+
"description": "Where the MCP server's configuration came from (`user`, `workspace`, `plugin`, or `builtin`), when the tool is an MCP tool and the server is configured"
|
|
21102
|
+
},
|
|
20554
21103
|
"turnId": {
|
|
20555
21104
|
"type": "string",
|
|
20556
21105
|
"description": "Identifier for the agent loop turn this tool was invoked in, matching the corresponding assistant.turn_start event"
|