@github/copilot-sdk 0.1.11 → 0.1.13-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.
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The SDK protocol version.
3
+ * This must match the version expected by the copilot-agent-runtime server.
4
+ */
5
+ export declare const SDK_PROTOCOL_VERSION = 1;
6
+ /**
7
+ * Gets the SDK protocol version.
8
+ * @returns The protocol version number
9
+ */
10
+ export declare function getSdkProtocolVersion(): number;
@@ -1,7 +1,8 @@
1
- import sdkProtocolVersion from "../../sdk-protocol-version.json";
1
+ const SDK_PROTOCOL_VERSION = 1;
2
2
  function getSdkProtocolVersion() {
3
- return sdkProtocolVersion.version;
3
+ return SDK_PROTOCOL_VERSION;
4
4
  }
5
5
  export {
6
+ SDK_PROTOCOL_VERSION,
6
7
  getSdkProtocolVersion
7
8
  };
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.11",
7
+ "version": "0.1.13-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",
@@ -26,7 +26,7 @@
26
26
  "lint:fix": "eslint --fix \"src/**/*.ts\" \"test/**/*.ts\"",
27
27
  "typecheck": "tsc --noEmit",
28
28
  "generate:session-types": "tsx scripts/generate-session-types.ts",
29
- "update:protocol-version": "tsx scripts/generate-protocol-version.ts",
29
+ "update:protocol-version": "tsx scripts/update-protocol-version.ts",
30
30
  "prepublishOnly": "npm run build",
31
31
  "package": "npm run clean && npm run build && node scripts/set-version.js && npm pack && npm version 0.1.0 --no-git-tag-version --allow-same-version"
32
32
  },
@@ -1,5 +0,0 @@
1
- /**
2
- * Gets the SDK protocol version from sdk-protocol-version.json.
3
- * @returns The protocol version number
4
- */
5
- export declare function getSdkProtocolVersion(): number;
File without changes
File without changes
File without changes
File without changes