@github/copilot-sdk 1.0.18-preview.3 → 1.0.18-preview.4

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.
@@ -2682,6 +2682,12 @@ function createSessionRpc(connection, sessionId) {
2682
2682
  * @returns Indicates whether the external tool call result was handled successfully.
2683
2683
  */
2684
2684
  handlePendingToolCall: async (params) => connection.sendRequest("session.tools.handlePendingToolCall", { ...params, sessionId }),
2685
+ /**
2686
+ * Lists the external tool calls of the session and its sub-agents that are still waiting for session.tools.handlePendingToolCall.
2687
+ *
2688
+ * @returns External tool calls still waiting for a result.
2689
+ */
2690
+ listPendingRequests: async () => connection.sendRequest("session.tools.listPendingRequests", { sessionId }),
2685
2691
  /**
2686
2692
  * Resolves, builds, and validates the runtime tool list for the session.
2687
2693
  *
@@ -3371,6 +3377,27 @@ function createSessionRpc(connection, sessionId) {
3371
3377
  getMetrics: async () => connection.sendRequest("session.usage.getMetrics", { sessionId })
3372
3378
  },
3373
3379
  /** @experimental */
3380
+ quota: {
3381
+ /**
3382
+ * Gets the session's current quota and account projection without making a network request.
3383
+ *
3384
+ * @returns The incumbent session-owned quota and account projection.
3385
+ */
3386
+ get: async () => connection.sendRequest("session.quota.get", { sessionId }),
3387
+ /**
3388
+ * Refreshes the session's provider model catalog bypassing its cache, folds quota snapshots into session state, and returns the updated projection. Failures leave the last known quota intact.
3389
+ *
3390
+ * @returns The incumbent session-owned quota and account projection.
3391
+ */
3392
+ refresh: async () => connection.sendRequest("session.quota.refresh", { sessionId }),
3393
+ /**
3394
+ * Returns and clears the session's pending quota warnings. Reading or refreshing quota does not drain warnings.
3395
+ *
3396
+ * @returns Pending warnings returned and cleared by session.quota.takeWarnings.
3397
+ */
3398
+ takeWarnings: async () => connection.sendRequest("session.quota.takeWarnings", { sessionId })
3399
+ },
3400
+ /** @experimental */
3374
3401
  limitPrediction: {
3375
3402
  /**
3376
3403
  * Predicts an AI-credit session limit for the session's resolved model. Returns an unavailable result instead of falling back when the current model is unresolved auto.
@@ -3557,7 +3584,11 @@ function createInternalSessionRpc(connection, sessionId) {
3557
3584
  *
3558
3585
  * @returns The model identifier active on the session after the switch.
3559
3586
  */
3560
- applyStartupOverlay: async (params) => connection.sendRequest("session.model.applyStartupOverlay", { ...params, sessionId })
3587
+ applyStartupOverlay: async (params) => connection.sendRequest("session.model.applyStartupOverlay", { ...params, sessionId }),
3588
+ /**
3589
+ * Clears an unchanged startup model/provider seed before default-model resolution. Never clears a resumed or user-selected model.
3590
+ */
3591
+ clearStartupSeed: async (params) => connection.sendRequest("session.model.clearStartupSeed", { ...params, sessionId })
3561
3592
  },
3562
3593
  /** @experimental */
3563
3594
  mcp: {
@@ -3724,6 +3755,15 @@ function createInternalSessionRpc(connection, sessionId) {
3724
3755
  process: async () => connection.sendRequest("session.queue.process", { sessionId })
3725
3756
  },
3726
3757
  /** @experimental */
3758
+ usage: {
3759
+ /**
3760
+ * Internal host-only replacement of absolute code-change totals reported by a relay host.
3761
+ *
3762
+ * @param params Internal absolute code-change totals reported by the owning host.
3763
+ */
3764
+ setCodeChanges: async (params) => connection.sendRequest("session.usage.setCodeChanges", { ...params, sessionId })
3765
+ },
3766
+ /** @experimental */
3727
3767
  schedule: {
3728
3768
  /**
3729
3769
  * Hydrates the native schedule registry from persisted session events.