@github/copilot-sdk 0.1.13 → 0.1.15-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.
- package/dist/client.js +1 -1
- package/dist/generated/session-events.d.ts +14 -1
- package/package.json +2 -2
package/dist/client.js
CHANGED
|
@@ -545,7 +545,7 @@ class CopilotClient {
|
|
|
545
545
|
spawnArgs = [this.options.cliPath, ...args];
|
|
546
546
|
} else if (process.platform === "win32" && !isAbsolutePath) {
|
|
547
547
|
command = "cmd";
|
|
548
|
-
spawnArgs = ["/c",
|
|
548
|
+
spawnArgs = ["/c", `${this.options.cliPath}`, ...args];
|
|
549
549
|
} else {
|
|
550
550
|
command = this.options.cliPath;
|
|
551
551
|
spawnArgs = args;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generated from: @github/copilot/session-events.schema.json
|
|
5
5
|
* Generated by: scripts/generate-session-types.ts
|
|
6
|
-
* Generated at: 2026-01-
|
|
6
|
+
* Generated at: 2026-01-20T04:18:06.227Z
|
|
7
7
|
*
|
|
8
8
|
* To update these types:
|
|
9
9
|
* 1. Update the schema in copilot-agent-runtime
|
|
@@ -22,6 +22,12 @@ export type SessionEvent = {
|
|
|
22
22
|
copilotVersion: string;
|
|
23
23
|
startTime: string;
|
|
24
24
|
selectedModel?: string;
|
|
25
|
+
context?: {
|
|
26
|
+
cwd: string;
|
|
27
|
+
gitRoot?: string;
|
|
28
|
+
repository?: string;
|
|
29
|
+
branch?: string;
|
|
30
|
+
};
|
|
25
31
|
};
|
|
26
32
|
} | {
|
|
27
33
|
id: string;
|
|
@@ -32,6 +38,12 @@ export type SessionEvent = {
|
|
|
32
38
|
data: {
|
|
33
39
|
resumeTime: string;
|
|
34
40
|
eventCount: number;
|
|
41
|
+
context?: {
|
|
42
|
+
cwd: string;
|
|
43
|
+
gitRoot?: string;
|
|
44
|
+
repository?: string;
|
|
45
|
+
branch?: string;
|
|
46
|
+
};
|
|
35
47
|
};
|
|
36
48
|
} | {
|
|
37
49
|
id: string;
|
|
@@ -218,6 +230,7 @@ export type SessionEvent = {
|
|
|
218
230
|
toolCallId: string;
|
|
219
231
|
name: string;
|
|
220
232
|
arguments?: unknown;
|
|
233
|
+
type?: "function" | "custom";
|
|
221
234
|
}[];
|
|
222
235
|
parentToolCallId?: string;
|
|
223
236
|
};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/github/copilot-sdk.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.1.
|
|
7
|
+
"version": "0.1.15-preview.0",
|
|
8
8
|
"description": "TypeScript SDK for programmatic control of GitHub Copilot CLI via JSON-RPC",
|
|
9
9
|
"main": "./dist/index.js",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"author": "GitHub",
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@github/copilot": "^0.0.
|
|
43
|
+
"@github/copilot": "^0.0.387",
|
|
44
44
|
"vscode-jsonrpc": "^8.2.1",
|
|
45
45
|
"zod": "^4.3.5"
|
|
46
46
|
},
|