@github/copilot-sdk 0.1.28 → 0.1.29
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/generated/rpc.d.ts
CHANGED
|
@@ -41,11 +41,11 @@ export interface ModelsListResult {
|
|
|
41
41
|
*/
|
|
42
42
|
capabilities: {
|
|
43
43
|
supports: {
|
|
44
|
-
vision
|
|
44
|
+
vision?: boolean;
|
|
45
45
|
/**
|
|
46
46
|
* Whether this model supports reasoning effort configuration
|
|
47
47
|
*/
|
|
48
|
-
reasoningEffort
|
|
48
|
+
reasoningEffort?: boolean;
|
|
49
49
|
};
|
|
50
50
|
limits: {
|
|
51
51
|
max_prompt_tokens?: number;
|
|
@@ -309,9 +309,17 @@ export type SessionEvent = {
|
|
|
309
309
|
character: number;
|
|
310
310
|
};
|
|
311
311
|
};
|
|
312
|
+
} | {
|
|
313
|
+
type: "github_reference";
|
|
314
|
+
number: number;
|
|
315
|
+
title: string;
|
|
316
|
+
referenceType: "issue" | "pr" | "discussion";
|
|
317
|
+
state: string;
|
|
318
|
+
url: string;
|
|
312
319
|
})[];
|
|
313
320
|
source?: string;
|
|
314
321
|
agentMode?: "interactive" | "plan" | "autopilot" | "shell";
|
|
322
|
+
interactionId?: string;
|
|
315
323
|
};
|
|
316
324
|
} | {
|
|
317
325
|
id: string;
|
|
@@ -328,6 +336,7 @@ export type SessionEvent = {
|
|
|
328
336
|
type: "assistant.turn_start";
|
|
329
337
|
data: {
|
|
330
338
|
turnId: string;
|
|
339
|
+
interactionId?: string;
|
|
331
340
|
};
|
|
332
341
|
} | {
|
|
333
342
|
id: string;
|
|
@@ -386,6 +395,7 @@ export type SessionEvent = {
|
|
|
386
395
|
reasoningText?: string;
|
|
387
396
|
encryptedContent?: string;
|
|
388
397
|
phase?: string;
|
|
398
|
+
interactionId?: string;
|
|
389
399
|
parentToolCallId?: string;
|
|
390
400
|
};
|
|
391
401
|
} | {
|
|
@@ -438,6 +448,15 @@ export type SessionEvent = {
|
|
|
438
448
|
resetDate?: string;
|
|
439
449
|
};
|
|
440
450
|
};
|
|
451
|
+
copilotUsage?: {
|
|
452
|
+
tokenDetails: {
|
|
453
|
+
batchSize: number;
|
|
454
|
+
costPerBatch: number;
|
|
455
|
+
tokenCount: number;
|
|
456
|
+
tokenType: string;
|
|
457
|
+
}[];
|
|
458
|
+
totalNanoAiu: number;
|
|
459
|
+
};
|
|
441
460
|
};
|
|
442
461
|
} | {
|
|
443
462
|
id: string;
|
|
@@ -502,6 +521,8 @@ export type SessionEvent = {
|
|
|
502
521
|
data: {
|
|
503
522
|
toolCallId: string;
|
|
504
523
|
success: boolean;
|
|
524
|
+
model?: string;
|
|
525
|
+
interactionId?: string;
|
|
505
526
|
isUserRequested?: boolean;
|
|
506
527
|
result?: {
|
|
507
528
|
content: string;
|
|
@@ -569,6 +590,8 @@ export type SessionEvent = {
|
|
|
569
590
|
path: string;
|
|
570
591
|
content: string;
|
|
571
592
|
allowedTools?: string[];
|
|
593
|
+
pluginName?: string;
|
|
594
|
+
pluginVersion?: string;
|
|
572
595
|
};
|
|
573
596
|
} | {
|
|
574
597
|
id: string;
|
|
@@ -616,6 +639,13 @@ export type SessionEvent = {
|
|
|
616
639
|
agentDisplayName: string;
|
|
617
640
|
tools: string[] | null;
|
|
618
641
|
};
|
|
642
|
+
} | {
|
|
643
|
+
id: string;
|
|
644
|
+
timestamp: string;
|
|
645
|
+
parentId: string | null;
|
|
646
|
+
ephemeral?: boolean;
|
|
647
|
+
type: "subagent.deselected";
|
|
648
|
+
data: {};
|
|
619
649
|
} | {
|
|
620
650
|
id: string;
|
|
621
651
|
timestamp: string;
|
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.29",
|
|
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.420",
|
|
44
44
|
"vscode-jsonrpc": "^8.2.1",
|
|
45
45
|
"zod": "^4.3.6"
|
|
46
46
|
},
|