@github/copilot-sdk 1.0.26 → 1.0.27-preview.1
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/dist/cjs/cliVersion.js +1 -1
- package/dist/cjs/client.js +5 -1
- package/dist/cliVersion.d.ts +1 -1
- package/dist/cliVersion.js +1 -1
- package/dist/client.js +5 -1
- package/dist/generated/rpc.d.ts +8 -0
- package/dist/host.d.ts +5 -0
- package/dist/types.d.ts +14 -0
- package/package.json +12 -12
package/dist/cjs/cliVersion.js
CHANGED
|
@@ -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.
|
|
25
|
+
const COPILOT_CLI_VERSION = "1.0.104-1";
|
|
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 = {
|
package/dist/cjs/client.js
CHANGED
|
@@ -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,
|
|
@@ -2895,7 +2899,7 @@ stderr: ${stderrOutput}` : ""}`
|
|
|
2895
2899
|
this.connectionClosed = true;
|
|
2896
2900
|
if (messageWriter) messageWriter.suppressWriteErrors = true;
|
|
2897
2901
|
exitFallback = setTimeout(disconnectAfterDrain, RUNTIME_SHUTDOWN_TIMEOUT_MS);
|
|
2898
|
-
exitFallback.unref();
|
|
2902
|
+
exitFallback.unref?.();
|
|
2899
2903
|
});
|
|
2900
2904
|
}
|
|
2901
2905
|
this.connection.onError(() => {
|
package/dist/cliVersion.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const COPILOT_CLI_VERSION = "1.0.
|
|
1
|
+
export declare const COPILOT_CLI_VERSION = "1.0.104-1";
|
|
2
2
|
export declare const COPILOT_CLI_USE_NPM_PACKAGE = false;
|
package/dist/cliVersion.js
CHANGED
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,
|
|
@@ -2877,7 +2881,7 @@ stderr: ${stderrOutput}` : ""}`
|
|
|
2877
2881
|
this.connectionClosed = true;
|
|
2878
2882
|
if (messageWriter) messageWriter.suppressWriteErrors = true;
|
|
2879
2883
|
exitFallback = setTimeout(disconnectAfterDrain, RUNTIME_SHUTDOWN_TIMEOUT_MS);
|
|
2880
|
-
exitFallback.unref();
|
|
2884
|
+
exitFallback.unref?.();
|
|
2881
2885
|
});
|
|
2882
2886
|
}
|
|
2883
2887
|
this.connection.onError(() => {
|
package/dist/generated/rpc.d.ts
CHANGED
|
@@ -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.
|
|
9
|
-
"copilotCliVersion": "1.0.
|
|
8
|
+
"version": "1.0.27-preview.1",
|
|
9
|
+
"copilotCliVersion": "1.0.104-1",
|
|
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": "
|
|
118
|
-
"version": "1.0.
|
|
117
|
+
"sourceSha": "b96e4a56fbda848877bf10f95ba26738438cd34d",
|
|
118
|
+
"version": "1.0.104-1",
|
|
119
119
|
"visibility": "public"
|
|
120
120
|
},
|
|
121
121
|
"optionalDependencies": {
|
|
122
|
-
"@github/copilot-sdk-darwin-arm64": "1.0.
|
|
123
|
-
"@github/copilot-sdk-darwin-x64": "1.0.
|
|
124
|
-
"@github/copilot-sdk-linux-arm64": "1.0.
|
|
125
|
-
"@github/copilot-sdk-linux-x64": "1.0.
|
|
126
|
-
"@github/copilot-sdk-linuxmusl-arm64": "1.0.
|
|
127
|
-
"@github/copilot-sdk-linuxmusl-x64": "1.0.
|
|
128
|
-
"@github/copilot-sdk-win32-arm64": "1.0.
|
|
129
|
-
"@github/copilot-sdk-win32-x64": "1.0.
|
|
122
|
+
"@github/copilot-sdk-darwin-arm64": "1.0.27-preview.1",
|
|
123
|
+
"@github/copilot-sdk-darwin-x64": "1.0.27-preview.1",
|
|
124
|
+
"@github/copilot-sdk-linux-arm64": "1.0.27-preview.1",
|
|
125
|
+
"@github/copilot-sdk-linux-x64": "1.0.27-preview.1",
|
|
126
|
+
"@github/copilot-sdk-linuxmusl-arm64": "1.0.27-preview.1",
|
|
127
|
+
"@github/copilot-sdk-linuxmusl-x64": "1.0.27-preview.1",
|
|
128
|
+
"@github/copilot-sdk-win32-arm64": "1.0.27-preview.1",
|
|
129
|
+
"@github/copilot-sdk-win32-x64": "1.0.27-preview.1"
|
|
130
130
|
}
|
|
131
131
|
}
|