@github/copilot-sdk 0.1.33-unstable.1 → 0.2.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.
@@ -39,11 +39,9 @@ Extensions add custom tools, hooks, and behaviors to the Copilot CLI. They run a
39
39
  Extensions use `@github/copilot-sdk` for all interactions with the CLI:
40
40
 
41
41
  ```js
42
- import { approveAll } from "@github/copilot-sdk";
43
42
  import { joinSession } from "@github/copilot-sdk/extension";
44
43
 
45
44
  const session = await joinSession({
46
- onPermissionRequest: approveAll,
47
45
  tools: [
48
46
  /* ... */
49
47
  ],
package/package.json CHANGED
@@ -4,18 +4,30 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/github/copilot-sdk.git"
6
6
  },
7
- "version": "0.1.33-unstable.1",
7
+ "version": "0.2.0",
8
8
  "description": "TypeScript SDK for programmatic control of GitHub Copilot CLI via JSON-RPC",
9
- "main": "./dist/index.js",
9
+ "main": "./dist/cjs/index.js",
10
10
  "types": "./dist/index.d.ts",
11
11
  "exports": {
12
12
  ".": {
13
- "import": "./dist/index.js",
14
- "types": "./dist/index.d.ts"
13
+ "import": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ },
17
+ "require": {
18
+ "types": "./dist/index.d.ts",
19
+ "default": "./dist/cjs/index.js"
20
+ }
15
21
  },
16
22
  "./extension": {
17
- "import": "./dist/extension.js",
18
- "types": "./dist/extension.d.ts"
23
+ "import": {
24
+ "types": "./dist/extension.d.ts",
25
+ "default": "./dist/extension.js"
26
+ },
27
+ "require": {
28
+ "types": "./dist/extension.d.ts",
29
+ "default": "./dist/cjs/extension.js"
30
+ }
19
31
  }
20
32
  },
21
33
  "type": "module",
@@ -44,7 +56,7 @@
44
56
  "author": "GitHub",
45
57
  "license": "MIT",
46
58
  "dependencies": {
47
- "@github/copilot": "^1.0.2",
59
+ "@github/copilot": "^1.0.10",
48
60
  "vscode-jsonrpc": "^8.2.1",
49
61
  "zod": "^4.3.6"
50
62
  },