@github/copilot-sdk-darwin-arm64 1.0.15 → 1.0.16-preview.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10959,6 +10959,14 @@
10959
10959
  "error": {
10960
10960
  "type": "string",
10961
10961
  "description": "Error message if the server entered a failed state"
10962
+ },
10963
+ "errorClassification": {
10964
+ "type": "string",
10965
+ "description": "Runtime-produced classification for the final failed connection; unclassified means no classification was supplied. Additional string values may be introduced."
10966
+ },
10967
+ "configSource": {
10968
+ "type": "string",
10969
+ "description": "Runtime configuration provenance for a failed connection, or unknown when unavailable. Additional string values may be introduced."
10962
10970
  }
10963
10971
  },
10964
10972
  "required": [
@@ -11525,6 +11533,112 @@
11525
11533
  "websocket": "WebSocket transport."
11526
11534
  }
11527
11535
  },
11536
+ "ModelCallFinalResult": {
11537
+ "type": "string",
11538
+ "enum": [
11539
+ "success",
11540
+ "http_400",
11541
+ "http_413",
11542
+ "http_429",
11543
+ "http_4xx",
11544
+ "http_5xx",
11545
+ "transport_error",
11546
+ "other_error"
11547
+ ],
11548
+ "description": "Final bounded result of one logical model operation after its internal retry loop settles",
11549
+ "title": "ModelCallFinalResult",
11550
+ "x-enumDescriptions": {
11551
+ "success": "The final attempt succeeded.",
11552
+ "http_400": "The final attempt failed with HTTP 400.",
11553
+ "http_413": "The final attempt failed with HTTP 413.",
11554
+ "http_429": "The final attempt failed with HTTP 429.",
11555
+ "http_4xx": "The final attempt failed with another HTTP 4xx status.",
11556
+ "http_5xx": "The final attempt failed with an HTTP 5xx status.",
11557
+ "transport_error": "The final attempt failed in the request transport.",
11558
+ "other_error": "The final attempt failed without another bounded classification."
11559
+ }
11560
+ },
11561
+ "ModelCallFinalResultData": {
11562
+ "type": "object",
11563
+ "properties": {
11564
+ "model": {
11565
+ "type": "string",
11566
+ "description": "Model identifier used by the final attempt"
11567
+ },
11568
+ "isByok": {
11569
+ "type": "boolean",
11570
+ "description": "Whether the final attempt used a bring-your-own-key provider"
11571
+ },
11572
+ "result": {
11573
+ "$ref": "#/definitions/ModelCallFinalResult",
11574
+ "description": "Bounded result of the final attempt"
11575
+ }
11576
+ },
11577
+ "required": [
11578
+ "model",
11579
+ "result"
11580
+ ],
11581
+ "additionalProperties": false,
11582
+ "description": "Internal telemetry result for one logical model operation after all orchestrator-owned retries settle",
11583
+ "title": "ModelCallFinalResultData"
11584
+ },
11585
+ "ModelCallFinalResultEvent": {
11586
+ "type": "object",
11587
+ "properties": {
11588
+ "id": {
11589
+ "type": "string",
11590
+ "format": "uuid",
11591
+ "description": "Unique event identifier (UUID v4), generated when the event is emitted"
11592
+ },
11593
+ "timestamp": {
11594
+ "type": "string",
11595
+ "format": "date-time",
11596
+ "description": "ISO 8601 timestamp when the event was created"
11597
+ },
11598
+ "parentId": {
11599
+ "anyOf": [
11600
+ {
11601
+ "type": "string",
11602
+ "format": "uuid"
11603
+ },
11604
+ {
11605
+ "type": "null"
11606
+ }
11607
+ ],
11608
+ "description": "ID of the chronologically preceding event in the session, forming a linked chain. Null for the first event."
11609
+ },
11610
+ "ephemeral": {
11611
+ "type": "boolean",
11612
+ "const": true,
11613
+ "description": "Always true for events that are transient and not persisted to the session event log on disk."
11614
+ },
11615
+ "agentId": {
11616
+ "type": "string",
11617
+ "description": "Sub-agent instance identifier. Absent for events from the root/main agent and session-level events."
11618
+ },
11619
+ "type": {
11620
+ "type": "string",
11621
+ "const": "model.call_final_result",
11622
+ "description": "Type discriminator. Always \"model.call_final_result\"."
11623
+ },
11624
+ "data": {
11625
+ "$ref": "#/definitions/ModelCallFinalResultData",
11626
+ "description": "Internal telemetry result for one logical model operation after all orchestrator-owned retries settle"
11627
+ }
11628
+ },
11629
+ "required": [
11630
+ "id",
11631
+ "timestamp",
11632
+ "parentId",
11633
+ "ephemeral",
11634
+ "type",
11635
+ "data"
11636
+ ],
11637
+ "additionalProperties": false,
11638
+ "description": "Session event \"model.call_final_result\". Internal telemetry result for one logical model operation after all orchestrator-owned retries settle",
11639
+ "title": "ModelCallFinalResultEvent",
11640
+ "visibility": "internal"
11641
+ },
11528
11642
  "ModelCallFinishedData": {
11529
11643
  "type": "object",
11530
11644
  "properties": {
@@ -12379,6 +12493,31 @@
12379
12493
  "description": "Permission response variant that approves a request and remembers the provided approval for the rest of the session.",
12380
12494
  "title": "PermissionApprovedForSession"
12381
12495
  },
12496
+ "PermissionApprovedReadOnlyForSession": {
12497
+ "type": "object",
12498
+ "properties": {
12499
+ "kind": {
12500
+ "type": "string",
12501
+ "const": "approved-read-only-for-session",
12502
+ "description": "Approved with read-only directory authority for this session"
12503
+ },
12504
+ "directories": {
12505
+ "type": "array",
12506
+ "items": {
12507
+ "type": "string"
12508
+ },
12509
+ "minItems": 1,
12510
+ "description": "Canonical directories covered by the session read-only grant"
12511
+ }
12512
+ },
12513
+ "required": [
12514
+ "kind",
12515
+ "directories"
12516
+ ],
12517
+ "additionalProperties": false,
12518
+ "description": "Permission response variant that approves a request and records file-tool read authority for specific directories in this logical session.",
12519
+ "title": "PermissionApprovedReadOnlyForSession"
12520
+ },
12382
12521
  "PermissionAssentDetectedData": {
12383
12522
  "type": "object",
12384
12523
  "properties": {
@@ -13348,6 +13487,11 @@
13348
13487
  "requestSandboxBypassReason": {
13349
13488
  "type": "string",
13350
13489
  "description": "Reason for the sandbox escalation request."
13490
+ },
13491
+ "sandboxPathGrant": {
13492
+ "$ref": "#/definitions/PermissionSandboxPathGrant",
13493
+ "description": "Sandbox policy edit that would let the command run inside the sandbox. Only present when requestSandboxBypass is true.",
13494
+ "stability": "experimental"
13351
13495
  }
13352
13496
  },
13353
13497
  "required": [
@@ -13675,6 +13819,14 @@
13675
13819
  },
13676
13820
  "description": "File paths that require explicit approval"
13677
13821
  },
13822
+ "readOnlyDirectories": {
13823
+ "type": "array",
13824
+ "items": {
13825
+ "type": "string"
13826
+ },
13827
+ "description": "Canonical directory candidates that can be granted for file-tool read access in this logical session. Present only for read path prompts.",
13828
+ "stability": "experimental"
13829
+ },
13678
13830
  "assistedApproval": {
13679
13831
  "$ref": "#/definitions/PermissionAssistedApproval",
13680
13832
  "description": "Assisted-approval judge information for this request; present only in assisted mode.",
@@ -14729,6 +14881,11 @@
14729
14881
  "requestSandboxBypassReason": {
14730
14882
  "type": "string",
14731
14883
  "description": "What the tool tells the user about the bypass on offer: which policy rule blocked the call, or why it cannot be sandboxed. Only meaningful when requestSandboxBypass is true."
14884
+ },
14885
+ "sandboxPathGrant": {
14886
+ "$ref": "#/definitions/PermissionSandboxPathGrant",
14887
+ "description": "Sandbox policy edit that would let the read run inside the sandbox. Only present when requestSandboxBypass is true.",
14888
+ "stability": "experimental"
14732
14889
  }
14733
14890
  },
14734
14891
  "required": [
@@ -14831,6 +14988,11 @@
14831
14988
  "requestSandboxBypassReason": {
14832
14989
  "type": "string",
14833
14990
  "description": "What the tool tells the user about the bypass on offer: which policy rule blocked the call, or why it cannot be sandboxed. Only meaningful when requestSandboxBypass is true."
14991
+ },
14992
+ "sandboxPathGrant": {
14993
+ "$ref": "#/definitions/PermissionSandboxPathGrant",
14994
+ "description": "Sandbox policy edit that would let the command run inside the sandbox. Only present when requestSandboxBypass is true.",
14995
+ "stability": "experimental"
14834
14996
  }
14835
14997
  },
14836
14998
  "required": [
@@ -15090,6 +15252,11 @@
15090
15252
  "requestSandboxBypassReason": {
15091
15253
  "type": "string",
15092
15254
  "description": "Justification for the sandbox-bypass request. Only meaningful when requestSandboxBypass is true."
15255
+ },
15256
+ "sandboxPathGrant": {
15257
+ "$ref": "#/definitions/PermissionSandboxPathGrant",
15258
+ "description": "Sandbox policy edit that would let the write run inside the sandbox. Only present when requestSandboxBypass is true.",
15259
+ "stability": "experimental"
15093
15260
  }
15094
15261
  },
15095
15262
  "required": [
@@ -15109,6 +15276,10 @@
15109
15276
  "$ref": "#/definitions/PermissionApproved",
15110
15277
  "description": "Permission response variant indicating the request was approved without persisting an approval rule."
15111
15278
  },
15279
+ {
15280
+ "$ref": "#/definitions/PermissionApprovedReadOnlyForSession",
15281
+ "description": "Permission response variant that approves a request and records file-tool read authority for specific directories in this logical session."
15282
+ },
15112
15283
  {
15113
15284
  "$ref": "#/definitions/PermissionApprovedForSession",
15114
15285
  "description": "Permission response variant that approves a request and remembers the provided approval for the rest of the session."
@@ -15168,6 +15339,51 @@
15168
15339
  "description": "A permission approval or denial rule matched against a tool request, identified by a rule kind with an optional argument value.",
15169
15340
  "title": "PermissionRule"
15170
15341
  },
15342
+ "PermissionSandboxPathGrant": {
15343
+ "type": "object",
15344
+ "properties": {
15345
+ "path": {
15346
+ "type": "string",
15347
+ "description": "Absolute path to add to the sandbox filesystem policy"
15348
+ },
15349
+ "deniedPath": {
15350
+ "type": "string",
15351
+ "description": "The path the sandbox refused, present only when it differs from path. That happens when a write under a read-only folder moves the folder to the read-write paths, when a path that does not exist yet is granted through its nearest existing folder, because the OS sandbox cannot grant a path before it exists, and when either is spelled through a symlink, because a grant covers its path as written, so path is then the resolved location. Hosts should then name path in the offer, since the denial names this one."
15352
+ },
15353
+ "access": {
15354
+ "$ref": "#/definitions/PermissionSandboxPathGrantAccess",
15355
+ "description": "Which access the grant confers, and so which policy list the path is added to"
15356
+ },
15357
+ "removedReadonlyPaths": {
15358
+ "type": "array",
15359
+ "items": {
15360
+ "type": "string"
15361
+ },
15362
+ "description": "readonlyPaths entries the grant removes, exactly as written in the policy, because a read-only entry for the same location would otherwise keep the path read-only. A host that persists the path must remove these entries from its stored readonlyPaths too."
15363
+ }
15364
+ },
15365
+ "required": [
15366
+ "path",
15367
+ "access"
15368
+ ],
15369
+ "additionalProperties": false,
15370
+ "description": "A sandbox filesystem policy edit that would let a blocked operation run inside the sandbox instead of outside it. Offered only on a sandbox escalation request whose denial adding this path lifts, and only when managed policy permits the grant. A host accepts it with session.sandbox.grantPathForRequest, which adds the path to the session's sandbox policy and re-runs the operation sandboxed; a host that persists sandbox settings may also save the path there.",
15371
+ "title": "PermissionSandboxPathGrant",
15372
+ "stability": "experimental"
15373
+ },
15374
+ "PermissionSandboxPathGrantAccess": {
15375
+ "type": "string",
15376
+ "enum": [
15377
+ "read",
15378
+ "readWrite"
15379
+ ],
15380
+ "description": "Access a sandbox path grant confers",
15381
+ "title": "PermissionSandboxPathGrantAccess",
15382
+ "x-enumDescriptions": {
15383
+ "read": "Read access: the path is added to readonlyPaths.",
15384
+ "readWrite": "Read and write access: the path is added to readwritePaths."
15385
+ }
15386
+ },
15171
15387
  "PermissionsChangedData": {
15172
15388
  "type": "object",
15173
15389
  "properties": {
@@ -16485,6 +16701,72 @@
16485
16701
  "additionalProperties": false,
16486
16702
  "description": "An enforcement check refused a specific access. Emitted per refusal with no deduplication, including when policy permits the caller to bypass the denial. Carries no backend: the built-in checks that produce this run in-process against the effective policy."
16487
16703
  },
16704
+ {
16705
+ "type": "object",
16706
+ "properties": {
16707
+ "control": {
16708
+ "$ref": "#/definitions/SandboxControl",
16709
+ "description": "Sandbox control the access belongs to. Follows from `denialClass`."
16710
+ },
16711
+ "outcome": {
16712
+ "$ref": "#/definitions/SandboxOutcome",
16713
+ "description": "Always `allowed`."
16714
+ },
16715
+ "toolCallId": {
16716
+ "type": [
16717
+ "string",
16718
+ "null"
16719
+ ],
16720
+ "description": "Tool call the access belongs to, for span correlation only. Never exported as a telemetry attribute or metric dimension."
16721
+ },
16722
+ "platform": {
16723
+ "$ref": "#/definitions/SandboxPlatform",
16724
+ "description": "Host operating-system family"
16725
+ },
16726
+ "enforcementPoint": {
16727
+ "$ref": "#/definitions/SandboxEnforcementPoint",
16728
+ "description": "Runtime subsystem that ran the command"
16729
+ },
16730
+ "denialClass": {
16731
+ "$ref": "#/definitions/SandboxDenialClass",
16732
+ "description": "Bounded class of the access the enforced policy would have refused."
16733
+ },
16734
+ "permissiveSource": {
16735
+ "$ref": "#/definitions/SandboxPermissiveSource",
16736
+ "description": "Why the run recorded and allowed instead of enforcing."
16737
+ },
16738
+ "deniedResource": {
16739
+ "type": [
16740
+ "string",
16741
+ "null"
16742
+ ],
16743
+ "description": "Resource the enforced policy would have refused. Populated only when content capture is enabled."
16744
+ },
16745
+ "command": {
16746
+ "type": [
16747
+ "string",
16748
+ "null"
16749
+ ],
16750
+ "description": "Command that made the access. Populated only when content capture is enabled."
16751
+ },
16752
+ "kind": {
16753
+ "type": "string",
16754
+ "const": "access_recorded",
16755
+ "description": "Sandbox decision variant discriminator."
16756
+ }
16757
+ },
16758
+ "required": [
16759
+ "kind",
16760
+ "control",
16761
+ "outcome",
16762
+ "platform",
16763
+ "enforcementPoint",
16764
+ "denialClass",
16765
+ "permissiveSource"
16766
+ ],
16767
+ "additionalProperties": false,
16768
+ "description": "Permissive learning mode (record and allow) recorded an access that the enforced policy would have refused, and allowed it. Emitted once per distinct recorded access of a record-and-allow run, bounded per command. The only per-access record of such a run: nothing was refused, so no `access_denied` is raised for it."
16769
+ },
16488
16770
  {
16489
16771
  "type": "object",
16490
16772
  "properties": {
@@ -16948,9 +17230,10 @@
16948
17230
  "degraded",
16949
17231
  "denied",
16950
17232
  "approved",
16951
- "declined"
17233
+ "declined",
17234
+ "allowed"
16952
17235
  ],
16953
- "description": "Finite result of a sandbox decision. Each `SandboxDecisionData` variant uses a disjoint subset: `policy_resolved` is `resolved | degraded`, `spawn_completed` and `permissive_retry_completed` are `succeeded | failed`, `enforcement_state` is `engaged | inactive | failed`, `access_denied` is `denied`, and escalation decisions are `approved | declined`.",
17236
+ "description": "Finite result of a sandbox decision. Each `SandboxDecisionData` variant uses a disjoint subset: `policy_resolved` is `resolved | degraded`, `spawn_completed` and `permissive_retry_completed` are `succeeded | failed`, `enforcement_state` is `engaged | inactive | failed`, `access_denied` is `denied`, `access_recorded` is `allowed`, and escalation decisions are `approved | declined`.",
16954
17237
  "title": "SandboxOutcome",
16955
17238
  "x-enumDescriptions": {
16956
17239
  "resolved": "The sandbox policy resolved successfully. Describes configuration only and makes no claim that a backend engaged.",
@@ -16961,7 +17244,21 @@
16961
17244
  "degraded": "The sandbox is active with one or more controls weakened by platform limitations or an explicitly selected relaxed mode.",
16962
17245
  "denied": "An enforcement check refused the requested access.",
16963
17246
  "approved": "A request to run outside the process sandbox was granted.",
16964
- "declined": "A request to run outside the process sandbox was not granted."
17247
+ "declined": "A request to run outside the process sandbox was not granted.",
17248
+ "allowed": "Permissive learning mode recorded an access the enforced policy would have refused, and allowed it."
17249
+ }
17250
+ },
17251
+ "SandboxPermissiveSource": {
17252
+ "type": "string",
17253
+ "enum": [
17254
+ "approved_retry",
17255
+ "policy"
17256
+ ],
17257
+ "description": "Why a sandboxed run recorded and allowed its process-container access checks instead of enforcing them.",
17258
+ "title": "SandboxPermissiveSource",
17259
+ "x-enumDescriptions": {
17260
+ "approved_retry": "A person approved the permissive retry for this command after a sandboxed attempt was blocked.",
17261
+ "policy": "Device-managed policy (`sandbox.learningMode: \"allow\"`) starts sandboxed shell commands in permissive learning mode."
16965
17262
  }
16966
17263
  },
16967
17264
  "SandboxPlatform": {
@@ -17559,6 +17856,11 @@
17559
17856
  "$ref": "#/definitions/ModelCallFailureEvent",
17560
17857
  "description": "Session event \"model.call_failure\". Failed LLM API call metadata for telemetry"
17561
17858
  },
17859
+ {
17860
+ "$ref": "#/definitions/ModelCallFinalResultEvent",
17861
+ "description": "Session event \"model.call_final_result\". Internal telemetry result for one logical model operation after all orchestrator-owned retries settle",
17862
+ "visibility": "internal"
17863
+ },
17562
17864
  {
17563
17865
  "$ref": "#/definitions/ModelCallFinishedEvent",
17564
17866
  "description": "Session event \"model.call_finished\". Final lifecycle outcome for one logical model dispatch. A logical dispatch may include internal reconnect or fallback work, so event count is not provider HTTP-request count."
Binary file