@github/copilot-sdk-linuxmusl-arm64 1.0.15-preview.0 → 1.0.15-preview.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/copilot-sdk/cliVersion.d.ts +1 -1
- package/copilot-sdk/client.d.ts +2 -0
- package/copilot-sdk/docs/extensions.md +1 -0
- package/copilot-sdk/docs/workflows.md +257 -0
- package/copilot-sdk/extension.d.ts +22 -8
- package/copilot-sdk/extension.js +1845 -230
- package/copilot-sdk/generated/rpc.d.ts +3141 -302
- package/copilot-sdk/generated/session-events.d.ts +762 -31
- package/copilot-sdk/index.d.ts +3 -1
- package/copilot-sdk/index.js +1839 -228
- package/copilot-sdk/schema.d.ts +4 -0
- package/copilot-sdk/session.d.ts +26 -3
- package/copilot-sdk/types.d.ts +37 -5
- package/copilot-sdk/workflow.d.ts +364 -0
- package/package.json +1 -1
- package/prebuilds/linuxmusl-arm64/copilot-runtime +0 -0
- package/prebuilds/linuxmusl-arm64/runtime.node +2 -2
- package/preloads/extension_bootstrap.mjs +3 -4
- package/schemas/api.schema.json +1117 -55
- package/schemas/session-events.schema.json +130 -1
- package/tgrep/bin/linux-x64/tgrep +0 -0
- package/tgrep/bin/linuxmusl-arm64/tgrep +0 -0
- package/sdk/index.js +0 -1465
|
@@ -8432,6 +8432,11 @@
|
|
|
8432
8432
|
"$ref": "#/definitions/FusionPattern",
|
|
8433
8433
|
"description": "Validated orchestration pattern selected for the turn."
|
|
8434
8434
|
},
|
|
8435
|
+
"hint": {
|
|
8436
|
+
"type": "string",
|
|
8437
|
+
"description": "Short human-readable summary of the selected workflow, suitable for immediate client display after routing. May be absent in older durable events; omit the explanation or derive one from pattern and phasePlan. Display text, not a stable machine-readable value.",
|
|
8438
|
+
"stability": "experimental"
|
|
8439
|
+
},
|
|
8435
8440
|
"phasePlan": {
|
|
8436
8441
|
"type": "array",
|
|
8437
8442
|
"items": {
|
|
@@ -12048,6 +12053,91 @@
|
|
|
12048
12053
|
"sdk": "An SDK or RPC caller selected the model."
|
|
12049
12054
|
}
|
|
12050
12055
|
},
|
|
12056
|
+
"ModelDeselectedData": {
|
|
12057
|
+
"type": "object",
|
|
12058
|
+
"properties": {
|
|
12059
|
+
"previousModel": {
|
|
12060
|
+
"type": "string",
|
|
12061
|
+
"description": "Model that was selected before the host withdrew it."
|
|
12062
|
+
},
|
|
12063
|
+
"reason": {
|
|
12064
|
+
"$ref": "#/definitions/ModelDeselectedReason",
|
|
12065
|
+
"description": "Low-cardinality reason the selection was cleared."
|
|
12066
|
+
}
|
|
12067
|
+
},
|
|
12068
|
+
"required": [
|
|
12069
|
+
"previousModel",
|
|
12070
|
+
"reason"
|
|
12071
|
+
],
|
|
12072
|
+
"additionalProperties": false,
|
|
12073
|
+
"description": "The model the user had explicitly selected is no longer available, because the host that published it withdrew it, so the session no longer has an explicit selection. The next turn resolves a default as though the user had never chosen a model. Clients should stop presenting the previous model as selected. This event is durable because resume rebuilds the selected model from the event log; without it a resumed session would restore a model its provider no longer serves. Reasoning effort, verbosity, and other session-level preferences are deliberately unchanged, because they belong to the session rather than to the model.",
|
|
12074
|
+
"title": "ModelDeselectedData"
|
|
12075
|
+
},
|
|
12076
|
+
"ModelDeselectedEvent": {
|
|
12077
|
+
"type": "object",
|
|
12078
|
+
"properties": {
|
|
12079
|
+
"id": {
|
|
12080
|
+
"type": "string",
|
|
12081
|
+
"format": "uuid",
|
|
12082
|
+
"description": "Unique event identifier (UUID v4), generated when the event is emitted"
|
|
12083
|
+
},
|
|
12084
|
+
"timestamp": {
|
|
12085
|
+
"type": "string",
|
|
12086
|
+
"format": "date-time",
|
|
12087
|
+
"description": "ISO 8601 timestamp when the event was created"
|
|
12088
|
+
},
|
|
12089
|
+
"parentId": {
|
|
12090
|
+
"anyOf": [
|
|
12091
|
+
{
|
|
12092
|
+
"type": "string",
|
|
12093
|
+
"format": "uuid"
|
|
12094
|
+
},
|
|
12095
|
+
{
|
|
12096
|
+
"type": "null"
|
|
12097
|
+
}
|
|
12098
|
+
],
|
|
12099
|
+
"description": "ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event."
|
|
12100
|
+
},
|
|
12101
|
+
"ephemeral": {
|
|
12102
|
+
"type": "boolean",
|
|
12103
|
+
"description": "When true, the event is transient and not persisted to the session event log on disk"
|
|
12104
|
+
},
|
|
12105
|
+
"agentId": {
|
|
12106
|
+
"type": "string",
|
|
12107
|
+
"description": "Sub-agent instance identifier. Absent for events from the root/main agent and session-level events."
|
|
12108
|
+
},
|
|
12109
|
+
"type": {
|
|
12110
|
+
"type": "string",
|
|
12111
|
+
"const": "session.model_deselected",
|
|
12112
|
+
"description": "Type discriminator. Always \"session.model_deselected\"."
|
|
12113
|
+
},
|
|
12114
|
+
"data": {
|
|
12115
|
+
"$ref": "#/definitions/ModelDeselectedData",
|
|
12116
|
+
"description": "The model the user had explicitly selected is no longer available, because the host that published it withdrew it, so the session no longer has an explicit selection. The next turn resolves a default as though the user had never chosen a model. Clients should stop presenting the previous model as selected. This event is durable because resume rebuilds the selected model from the event log; without it a resumed session would restore a model its provider no longer serves. Reasoning effort, verbosity, and other session-level preferences are deliberately unchanged, because they belong to the session rather than to the model."
|
|
12117
|
+
}
|
|
12118
|
+
},
|
|
12119
|
+
"required": [
|
|
12120
|
+
"id",
|
|
12121
|
+
"timestamp",
|
|
12122
|
+
"parentId",
|
|
12123
|
+
"type",
|
|
12124
|
+
"data"
|
|
12125
|
+
],
|
|
12126
|
+
"additionalProperties": false,
|
|
12127
|
+
"description": "Session event \"session.model_deselected\". The model the user had explicitly selected is no longer available, because the host that published it withdrew it, so the session no longer has an explicit selection. The next turn resolves a default as though the user had never chosen a model. Clients should stop presenting the previous model as selected. This event is durable because resume rebuilds the selected model from the event log; without it a resumed session would restore a model its provider no longer serves. Reasoning effort, verbosity, and other session-level preferences are deliberately unchanged, because they belong to the session rather than to the model.",
|
|
12128
|
+
"title": "ModelDeselectedEvent"
|
|
12129
|
+
},
|
|
12130
|
+
"ModelDeselectedReason": {
|
|
12131
|
+
"type": "string",
|
|
12132
|
+
"enum": [
|
|
12133
|
+
"provider_withdrawn"
|
|
12134
|
+
],
|
|
12135
|
+
"description": "Why the session no longer has an explicitly selected model.",
|
|
12136
|
+
"title": "ModelDeselectedReason",
|
|
12137
|
+
"x-enumDescriptions": {
|
|
12138
|
+
"provider_withdrawn": "A host-managed provider snapshot no longer publishes the selected model."
|
|
12139
|
+
}
|
|
12140
|
+
},
|
|
12051
12141
|
"ModeNoticeDeliveredData": {
|
|
12052
12142
|
"type": "object",
|
|
12053
12143
|
"properties": {
|
|
@@ -17396,6 +17486,10 @@
|
|
|
17396
17486
|
"$ref": "#/definitions/ModelChangeEvent",
|
|
17397
17487
|
"description": "Session event \"session.model_change\". Model change details including previous and new model identifiers"
|
|
17398
17488
|
},
|
|
17489
|
+
{
|
|
17490
|
+
"$ref": "#/definitions/ModelDeselectedEvent",
|
|
17491
|
+
"description": "Session event \"session.model_deselected\". The model the user had explicitly selected is no longer available, because the host that published it withdrew it, so the session no longer has an explicit selection. The next turn resolves a default as though the user had never chosen a model. Clients should stop presenting the previous model as selected. This event is durable because resume rebuilds the selected model from the event log; without it a resumed session would restore a model its provider no longer serves. Reasoning effort, verbosity, and other session-level preferences are deliberately unchanged, because they belong to the session rather than to the model."
|
|
17492
|
+
},
|
|
17399
17493
|
{
|
|
17400
17494
|
"$ref": "#/definitions/AutoTierRecommendationEvent",
|
|
17401
17495
|
"description": "Session event \"session.auto_tier_recommendation\". Live-only Auto preference recommendation from Copilot API after a successful Auto model call."
|
|
@@ -20080,6 +20174,29 @@
|
|
|
20080
20174
|
"unset": "Neither the task call, the per-sub-agent settings entry, nor a custom agent definition supplied a model."
|
|
20081
20175
|
}
|
|
20082
20176
|
},
|
|
20177
|
+
"SystemMessageContentBlock": {
|
|
20178
|
+
"type": "object",
|
|
20179
|
+
"properties": {
|
|
20180
|
+
"content": {
|
|
20181
|
+
"type": "string",
|
|
20182
|
+
"description": "Text content for this system-message block."
|
|
20183
|
+
},
|
|
20184
|
+
"isStatic": {
|
|
20185
|
+
"type": "boolean",
|
|
20186
|
+
"description": "Diagnostic classification indicating whether the block is stable across equivalent sessions."
|
|
20187
|
+
},
|
|
20188
|
+
"cacheBreakpoint": {
|
|
20189
|
+
"type": "boolean",
|
|
20190
|
+
"description": "Explicit prompt-cache intent. True places a breakpoint after this block, false suppresses one, and absence preserves the provider's legacy default."
|
|
20191
|
+
}
|
|
20192
|
+
},
|
|
20193
|
+
"required": [
|
|
20194
|
+
"content"
|
|
20195
|
+
],
|
|
20196
|
+
"additionalProperties": false,
|
|
20197
|
+
"description": "One persisted structured system-message block and its cache intent",
|
|
20198
|
+
"title": "SystemMessageContentBlock"
|
|
20199
|
+
},
|
|
20083
20200
|
"SystemMessageData": {
|
|
20084
20201
|
"type": "object",
|
|
20085
20202
|
"properties": {
|
|
@@ -20087,6 +20204,14 @@
|
|
|
20087
20204
|
"type": "string",
|
|
20088
20205
|
"description": "The system or developer prompt text sent as model input"
|
|
20089
20206
|
},
|
|
20207
|
+
"contentBlocks": {
|
|
20208
|
+
"type": "array",
|
|
20209
|
+
"items": {
|
|
20210
|
+
"$ref": "#/definitions/SystemMessageContentBlock",
|
|
20211
|
+
"description": "One persisted structured system-message block and its cache intent"
|
|
20212
|
+
},
|
|
20213
|
+
"description": "Optional ordered structured blocks corresponding to content, retained for prompt-cache layout restoration."
|
|
20214
|
+
},
|
|
20090
20215
|
"interactionId": {
|
|
20091
20216
|
"type": "string",
|
|
20092
20217
|
"description": "Logical interaction identifier for the model run receiving this prompt"
|
|
@@ -20171,7 +20296,7 @@
|
|
|
20171
20296
|
"properties": {
|
|
20172
20297
|
"promptVersion": {
|
|
20173
20298
|
"type": "string",
|
|
20174
|
-
"description": "Version identifier of the prompt template used"
|
|
20299
|
+
"description": "Version identifier of the prompt template or structured prompt layout used"
|
|
20175
20300
|
},
|
|
20176
20301
|
"variables": {
|
|
20177
20302
|
"type": "object",
|
|
@@ -21881,6 +22006,10 @@
|
|
|
21881
22006
|
"type": "string",
|
|
21882
22007
|
"description": "Name of the tool being executed"
|
|
21883
22008
|
},
|
|
22009
|
+
"toolTitle": {
|
|
22010
|
+
"type": "string",
|
|
22011
|
+
"description": "Human-readable display title for the tool, when the selected tool descriptor has a non-empty title."
|
|
22012
|
+
},
|
|
21884
22013
|
"arguments": {
|
|
21885
22014
|
"description": "Arguments passed to the tool",
|
|
21886
22015
|
"x-opaque-json": true
|
|
Binary file
|
|
Binary file
|