@github/copilot-sdk 1.0.13-preview.1 → 1.0.13-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.
@@ -2373,8 +2373,24 @@ export type PermissionDecisionSurface =
2373
2373
  | "prompt_mode"
2374
2374
  /** The Copilot App client. */
2375
2375
  | "copilot_app"
2376
+ /** An Agent Client Protocol host. */
2377
+ | "acp"
2376
2378
  /** A generic Copilot SDK client. */
2377
2379
  | "sdk";
2380
+ /**
2381
+ * Response capability available to the client when it settled a permission request.
2382
+ *
2383
+ * This interface was referenced by `_RpcSchemaRoot`'s JSON-Schema
2384
+ * via the `definition` "PermissionResponseCapability".
2385
+ */
2386
+ /** @experimental */
2387
+ export type PermissionResponseCapability =
2388
+ /** The client could ask a user for this decision. */
2389
+ "interactive"
2390
+ /** The client could return an automated response but could not ask a user. */
2391
+ | "headless"
2392
+ /** The client had no response path available. */
2393
+ | "none";
2378
2394
  /**
2379
2395
  * Tool approval to persist and apply
2380
2396
  *
@@ -6856,6 +6872,10 @@ export interface ExternalToolTextResultForLlmContentShellExit {
6856
6872
  * Whether outputPreview is known to be incomplete or truncated
6857
6873
  */
6858
6874
  outputTruncated?: boolean;
6875
+ /**
6876
+ * Path reported in the shell session's filesystem namespace when shell output exceeded the configured large-output threshold.
6877
+ */
6878
+ outputFilePath?: string;
6859
6879
  }
6860
6880
  /**
6861
6881
  * Image content block with base64-encoded data
@@ -7676,6 +7696,14 @@ export interface FactoryResumeRequest {
7676
7696
  */
7677
7697
  runId: string;
7678
7698
  limits?: FactoryRunLimits;
7699
+ /**
7700
+ * Whether to notify the originating session when the factory completes.
7701
+ */
7702
+ notifyOnComplete?: boolean;
7703
+ /**
7704
+ * Whether to emit factory phase names to the session transcript.
7705
+ */
7706
+ logPhaseNames?: boolean;
7679
7707
  }
7680
7708
  /**
7681
7709
  * Wire-only per-invocation factory resource ceiling overrides.
@@ -7859,6 +7887,14 @@ export interface FactoryRunRequest {
7859
7887
  /** @experimental */
7860
7888
  export interface RunOptions {
7861
7889
  limits?: FactoryRunLimits;
7890
+ /**
7891
+ * Whether to notify the originating session when the factory completes.
7892
+ */
7893
+ notifyOnComplete?: boolean;
7894
+ /**
7895
+ * Whether to emit factory phase names to the session transcript.
7896
+ */
7897
+ logPhaseNames?: boolean;
7862
7898
  /**
7863
7899
  * Run identifier whose journal and progress should seed this resumed run.
7864
7900
  */
@@ -7977,6 +8013,14 @@ export interface GitHubTelemetryClientInfo {
7977
8013
  * Stable machine identifier for the device.
7978
8014
  */
7979
8015
  dev_device_id?: string;
8016
+ /**
8017
+ * Distinct CPU model names for the host, comma-separated.
8018
+ */
8019
+ cpu_model?: string;
8020
+ /**
8021
+ * Number of logical CPU cores on the host.
8022
+ */
8023
+ cpu_count?: number;
7980
8024
  }
7981
8025
  /**
7982
8026
  * A single telemetry event in the runtime's native GitHub-shaped telemetry format, forwarded verbatim to opted-in hosts. The `restricted` flag on the enclosing GitHubTelemetryNotification distinguishes standard from restricted events; the payload shape is identical for both.
@@ -12900,6 +12944,7 @@ export interface PermissionDecisionContext {
12900
12944
  outcome: PermissionDecisionOutcome;
12901
12945
  source: PermissionDecisionSource;
12902
12946
  surface: PermissionDecisionSurface;
12947
+ responseCapability?: PermissionResponseCapability;
12903
12948
  }
12904
12949
  /**
12905
12950
  * Pending permission request ID and the decision to apply (approve/reject and scope).
@@ -15698,7 +15743,7 @@ export interface SandboxConfig {
15698
15743
  addCurrentWorkingDirectory?: boolean;
15699
15744
  auth?: SandboxConfigAuth;
15700
15745
  /**
15701
- * Whether to auto-grant read access to the tool directories discovered on PATH and in toolchain environment variables (GOROOT, CARGO_HOME, JAVA_HOME, VIRTUAL_ENV, and similar), and to common developer-tool caches, registries, and toolchains in their default home locations (cargo, go, npm, Maven, and more), plus read-write access to (and up-front creation of) the scratch caches builds write on every run (go-build, ccache, sccache, Gradle caches, Cargo lock/tracker files), so builds work without extra configuration; a relocated CARGO_HOME additionally gets its Cargo lock files granted read-write. Set to false to disable every grant listed above: user-installed toolchains (rustup, nvm, pyenv, conda, pipx) then need explicit userPolicy.filesystem entries — readonlyPaths to read them, plus readwriteFiles for a relocated CARGO_HOME's .package-cache and .global-cache, which Cargo locks on every build. Only these developer-tool grants are affected: the working directory (see addCurrentWorkingDirectory), temporary storage, session log paths, and system locations follow their own rules and stay granted, so commands still run. Default: true (enabled by default; set to false to opt out).
15746
+ * Whether to auto-grant read access to tool directories discovered on PATH and in toolchain environment variables (GOROOT, JAVA_HOME, VIRTUAL_ENV, and similar), and to common developer-tool caches, config, and toolchains. Writable grants cover scratch caches, the Unix GitHub CLI cache, and Cargo's registry, git store, and lock/tracker files. A relocated CARGO_HOME gets the same narrow split: registry and git are read-write; bin is read-only; the home root, config.toml, and credentials.toml stay ungranted. Set to false to disable every grant listed above; user-installed toolchains and caches then need explicit userPolicy.filesystem readonlyPaths and readwritePaths entries. The working directory (see addCurrentWorkingDirectory), temporary storage, session log paths, and system locations follow their own rules and stay granted. Default: true (enabled by default; set to false to opt out).
15702
15747
  */
15703
15748
  allowDevToolAccess?: boolean;
15704
15749
  }
@@ -20263,10 +20308,6 @@ export interface ToolsExecuteRequest {
20263
20308
  */
20264
20309
  /** @experimental */
20265
20310
  export interface ToolsGetBuiltinDescriptorsRequest {
20266
- /**
20267
- * Whether line numbers should be omitted from the view tool descriptor.
20268
- */
20269
- noViewLineNumbers?: boolean;
20270
20311
  /**
20271
20312
  * Whether descriptors should favor fewer user-intervention prompts.
20272
20313
  */
@@ -20280,10 +20321,6 @@ export interface ToolsGetBuiltinDescriptorsRequest {
20280
20321
  */
20281
20322
  skillEmbeddingEnabled?: boolean;
20282
20323
  shellConfig?: ToolsShellDescriptorConfig;
20283
- /**
20284
- * Whether shell commands may only run asynchronously.
20285
- */
20286
- shellAsyncOnlyEnabled?: boolean;
20287
20324
  /**
20288
20325
  * Whether the configured shell supports PowerShell 7 syntax.
20289
20326
  */
@@ -2512,6 +2512,25 @@ function createInternalSessionRpc(connection, sessionId) {
2512
2512
  }
2513
2513
  },
2514
2514
  /** @experimental */
2515
+ factory: {
2516
+ /**
2517
+ * Internal tool-originated factory invocation.
2518
+ *
2519
+ * @param params Internal parameters for invoking a registered factory from a tool.
2520
+ *
2521
+ * @returns Complete current or terminal factory run envelope.
2522
+ */
2523
+ runFromTool: async (params) => connection.sendRequest("session.factory.runFromTool", { sessionId, ...params }),
2524
+ /**
2525
+ * Internal tool-originated factory resume.
2526
+ *
2527
+ * @param params Internal parameters for resuming a factory run from a tool.
2528
+ *
2529
+ * @returns Resolved persisted factory identity and resumed run envelope.
2530
+ */
2531
+ resumeFromTool: async (params) => connection.sendRequest("session.factory.resumeFromTool", { sessionId, ...params })
2532
+ },
2533
+ /** @experimental */
2515
2534
  model: {
2516
2535
  /**
2517
2536
  * Resolves and applies organization-managed and repository model overlays.