@github/copilot-sdk 1.0.26-preview.0 → 1.0.27-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.
@@ -22,7 +22,7 @@ __export(cliVersion_exports, {
22
22
  COPILOT_CLI_VERSION: () => COPILOT_CLI_VERSION
23
23
  });
24
24
  module.exports = __toCommonJS(cliVersion_exports);
25
- const COPILOT_CLI_VERSION = "1.0.103-0";
25
+ const COPILOT_CLI_VERSION = "1.0.104-0";
26
26
  const COPILOT_CLI_USE_NPM_PACKAGE = false;
27
27
  // Annotate the CommonJS export names for ESM import in node:
28
28
  0 && (module.exports = {
@@ -1425,6 +1425,7 @@ class CopilotClient {
1425
1425
  featureFlags: config.featureFlags,
1426
1426
  expAssignments: config.expAssignments,
1427
1427
  enableManagedSettings: config.enableManagedSettings,
1428
+ excludedManagedSettings: config.excludedManagedSettings,
1428
1429
  enforceManagedModelDefaults: config.enforceManagedModelDefaults,
1429
1430
  interactiveUser: config.interactiveUser,
1430
1431
  managedSettings: config.managedSettings
@@ -1700,6 +1701,7 @@ class CopilotClient {
1700
1701
  featureFlags: config.featureFlags,
1701
1702
  expAssignments: config.expAssignments,
1702
1703
  enableManagedSettings: config.enableManagedSettings,
1704
+ excludedManagedSettings: config.excludedManagedSettings,
1703
1705
  enforceManagedModelDefaults: config.enforceManagedModelDefaults,
1704
1706
  interactiveUser: config.interactiveUser,
1705
1707
  managedSettings: config.managedSettings,
@@ -1790,6 +1792,7 @@ class CopilotClient {
1790
1792
  }
1791
1793
  const {
1792
1794
  computeId,
1795
+ workspace,
1793
1796
  allowCreatingNewSessions,
1794
1797
  localServer,
1795
1798
  githubEnvironment,
@@ -1817,6 +1820,7 @@ class CopilotClient {
1817
1820
  hostId,
1818
1821
  authentication: authentication.mode === "custom" ? { mode: "custom", requireIdentity: authentication.requireIdentity } : { mode: authentication.mode },
1819
1822
  computeId,
1823
+ workspace,
1820
1824
  localServer,
1821
1825
  githubEnvironment,
1822
1826
  sessionFactory: createSession ? true : void 0,
@@ -1,2 +1,2 @@
1
- export declare const COPILOT_CLI_VERSION = "1.0.103-0";
1
+ export declare const COPILOT_CLI_VERSION = "1.0.104-0";
2
2
  export declare const COPILOT_CLI_USE_NPM_PACKAGE = false;
@@ -1,4 +1,4 @@
1
- const COPILOT_CLI_VERSION = "1.0.103-0";
1
+ const COPILOT_CLI_VERSION = "1.0.104-0";
2
2
  const COPILOT_CLI_USE_NPM_PACKAGE = false;
3
3
  export {
4
4
  COPILOT_CLI_USE_NPM_PACKAGE,
package/dist/client.js CHANGED
@@ -1407,6 +1407,7 @@ class CopilotClient {
1407
1407
  featureFlags: config.featureFlags,
1408
1408
  expAssignments: config.expAssignments,
1409
1409
  enableManagedSettings: config.enableManagedSettings,
1410
+ excludedManagedSettings: config.excludedManagedSettings,
1410
1411
  enforceManagedModelDefaults: config.enforceManagedModelDefaults,
1411
1412
  interactiveUser: config.interactiveUser,
1412
1413
  managedSettings: config.managedSettings
@@ -1682,6 +1683,7 @@ class CopilotClient {
1682
1683
  featureFlags: config.featureFlags,
1683
1684
  expAssignments: config.expAssignments,
1684
1685
  enableManagedSettings: config.enableManagedSettings,
1686
+ excludedManagedSettings: config.excludedManagedSettings,
1685
1687
  enforceManagedModelDefaults: config.enforceManagedModelDefaults,
1686
1688
  interactiveUser: config.interactiveUser,
1687
1689
  managedSettings: config.managedSettings,
@@ -1772,6 +1774,7 @@ class CopilotClient {
1772
1774
  }
1773
1775
  const {
1774
1776
  computeId,
1777
+ workspace,
1775
1778
  allowCreatingNewSessions,
1776
1779
  localServer,
1777
1780
  githubEnvironment,
@@ -1799,6 +1802,7 @@ class CopilotClient {
1799
1802
  hostId,
1800
1803
  authentication: authentication.mode === "custom" ? { mode: "custom", requireIdentity: authentication.requireIdentity } : { mode: authentication.mode },
1801
1804
  computeId,
1805
+ workspace,
1802
1806
  localServer,
1803
1807
  githubEnvironment,
1804
1808
  sessionFactory: createSession ? true : void 0,
@@ -14692,6 +14692,10 @@ export interface HostStartRequest {
14692
14692
  * Stable application identity selecting its durable host catalog. Defaults to the persisted runtime compute GUID; must agree with githubEnvironment.computeId when both are supplied.
14693
14693
  */
14694
14694
  computeId?: string;
14695
+ /**
14696
+ * Absolute directory on the runtime host to serve through AHP. Defaults to the runtime's configured working directory. Does not change process or session working directories.
14697
+ */
14698
+ workspace?: string;
14695
14699
  localServer?: HostLocalServerOptions;
14696
14700
  githubEnvironment?: HostGitHubEnvironmentOptions;
14697
14701
  /**
@@ -26322,6 +26326,10 @@ export interface SessionOpenOptions {
26322
26326
  * Opt-in: self-fetch and enforce enterprise managed settings, including managed hook policies, at session bootstrap.
26323
26327
  */
26324
26328
  enableManagedSettings?: boolean;
26329
+ /**
26330
+ * Managed-setting paths this trusted SDK host enforces externally or does not support, excluded from fetched, device, and policy-helper policy for this session. Exact dotted paths exclude a setting and its descendants (for example sandbox or permissions.disableBypassPermissionsMode); wildcards and array indices are not supported. Host-injected managedSettings and policy availability checks are not excluded. Not persisted; re-supply on resume, where omission restores full enforcement. Requires enableManagedSettings to self-fetch policy.
26331
+ */
26332
+ excludedManagedSettings?: string[];
26325
26333
  /**
26326
26334
  * Opt in to enforcing non-overridable managed model controls on session model, Auto-tier, reasoning-effort, and context-tier changes. Managed defaults still apply when omitted; this option only turns conflicting changes into errors.
26327
26335
  */
package/dist/host.d.ts CHANGED
@@ -67,6 +67,11 @@ export interface AhpHostOptions {
67
67
  authentication: AhpHostAuthentication;
68
68
  /** Stable catalog identity; must agree with githubEnvironment.computeId when both are supplied. */
69
69
  computeId?: string;
70
+ /**
71
+ * Absolute directory on the runtime host to serve through AHP.
72
+ * Defaults to the runtime's configured working directory; does not change process or session working directories.
73
+ */
74
+ workspace?: string;
70
75
  /** Enable a local WebSocket listener; an empty object selects loopback defaults. */
71
76
  localServer?: HostLocalServerOptions;
72
77
  /** Register a Mission Control environment and enable remote WPS connections; requires github authentication. */
package/dist/types.d.ts CHANGED
@@ -2643,6 +2643,20 @@ export interface SessionConfigBase {
2643
2643
  * if omitted, the runtime is expected to reject session creation (fail-closed).
2644
2644
  */
2645
2645
  enableManagedSettings?: boolean;
2646
+ /**
2647
+ * Managed-setting paths this trusted host handles externally or does not
2648
+ * support. Exact dotted paths exclude a setting and its descendants from
2649
+ * fetched, device, and policy-helper policy (for example `"sandbox"` or
2650
+ * `"permissions.disableBypassPermissionsMode"`). MCP allow/deny controls
2651
+ * are `"allowedMcpServers"` and `"deniedMcpServers"`, not an `"mcp"` subtree.
2652
+ * Wildcards and array indices are unsupported. Unknown paths are accepted
2653
+ * for forward compatibility. Host-injected `managedSettings` and policy
2654
+ * availability checks are unaffected.
2655
+ *
2656
+ * Not persisted: re-supply on resume; omission restores full enforcement.
2657
+ * This does not enable self-fetching; use `enableManagedSettings: true`.
2658
+ */
2659
+ excludedManagedSettings?: string[];
2646
2660
  /**
2647
2661
  * When true, locked managed model controls are enforced for this session.
2648
2662
  * Conflicting model changes are rejected, and locked startup values replace
package/package.json CHANGED
@@ -5,8 +5,8 @@
5
5
  "url": "https://github.com/github/copilot-agent-runtime.git",
6
6
  "directory": "src/sdk/nodejs"
7
7
  },
8
- "version": "1.0.26-preview.0",
9
- "copilotCliVersion": "1.0.103-0",
8
+ "version": "1.0.27-preview.0",
9
+ "copilotCliVersion": "1.0.104-0",
10
10
  "description": "TypeScript SDK for programmatic control of GitHub Copilot CLI via JSON-RPC",
11
11
  "main": "./dist/cjs/index.js",
12
12
  "types": "./dist/index.d.ts",
@@ -114,18 +114,18 @@
114
114
  "README.md"
115
115
  ],
116
116
  "copilotRuntime": {
117
- "sourceSha": "131fc866123af5df4451497f183cadef4ddf20f2",
118
- "version": "1.0.103-0",
117
+ "sourceSha": "0bb4d7ca89df2885b6e071fe24f146c0e3049592",
118
+ "version": "1.0.104-0",
119
119
  "visibility": "public"
120
120
  },
121
121
  "optionalDependencies": {
122
- "@github/copilot-sdk-darwin-arm64": "1.0.26-preview.0",
123
- "@github/copilot-sdk-darwin-x64": "1.0.26-preview.0",
124
- "@github/copilot-sdk-linux-arm64": "1.0.26-preview.0",
125
- "@github/copilot-sdk-linux-x64": "1.0.26-preview.0",
126
- "@github/copilot-sdk-linuxmusl-arm64": "1.0.26-preview.0",
127
- "@github/copilot-sdk-linuxmusl-x64": "1.0.26-preview.0",
128
- "@github/copilot-sdk-win32-arm64": "1.0.26-preview.0",
129
- "@github/copilot-sdk-win32-x64": "1.0.26-preview.0"
122
+ "@github/copilot-sdk-darwin-arm64": "1.0.27-preview.0",
123
+ "@github/copilot-sdk-darwin-x64": "1.0.27-preview.0",
124
+ "@github/copilot-sdk-linux-arm64": "1.0.27-preview.0",
125
+ "@github/copilot-sdk-linux-x64": "1.0.27-preview.0",
126
+ "@github/copilot-sdk-linuxmusl-arm64": "1.0.27-preview.0",
127
+ "@github/copilot-sdk-linuxmusl-x64": "1.0.27-preview.0",
128
+ "@github/copilot-sdk-win32-arm64": "1.0.27-preview.0",
129
+ "@github/copilot-sdk-win32-x64": "1.0.27-preview.0"
130
130
  }
131
131
  }