@yitom/acp-client 0.1.3 → 0.1.4

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/index.cjs CHANGED
@@ -39,6 +39,7 @@ var __export = (target, all) => {
39
39
  // src/index.ts
40
40
  var exports_src = {};
41
41
  __export(exports_src, {
42
+ ACP_CLIENT_VERSION: () => ACP_CLIENT_VERSION,
42
43
  ACP_EARLY_EXIT_STDERR_TAIL_LINES: () => ACP_EARLY_EXIT_STDERR_TAIL_LINES,
43
44
  ACP_EARLY_EXIT_WINDOW_MS: () => ACP_EARLY_EXIT_WINDOW_MS,
44
45
  ACP_SDK_REQUEST_TIMEOUT_MS: () => ACP_SDK_REQUEST_TIMEOUT_MS,
@@ -316,6 +317,8 @@ var BUILTIN_ACP_RUNTIMES = [
316
317
  function findBuiltinAcpRuntime(id) {
317
318
  return BUILTIN_ACP_RUNTIMES.find((item) => item.id === id);
318
319
  }
320
+ // src/version.ts
321
+ var ACP_CLIENT_VERSION = "0.1.4";
319
322
  // src/session/available-commands.ts
320
323
  function normalizeCommand(raw) {
321
324
  if (!raw || typeof raw !== "object")
package/dist/index.d.ts CHANGED
@@ -11,6 +11,7 @@
11
11
  * - transport: stdio 缓冲与终端输出处理
12
12
  */
13
13
  export * from "./contracts";
14
+ export { ACP_CLIENT_VERSION } from "./version";
14
15
  export * from "./client/acp-client";
15
16
  export * from "./client/sdk-client";
16
17
  export * from "./client/session-open";
package/dist/index.js CHANGED
@@ -148,6 +148,8 @@ var BUILTIN_ACP_RUNTIMES = [
148
148
  function findBuiltinAcpRuntime(id) {
149
149
  return BUILTIN_ACP_RUNTIMES.find((item) => item.id === id);
150
150
  }
151
+ // src/version.ts
152
+ var ACP_CLIENT_VERSION = "0.1.4";
151
153
  // src/session/available-commands.ts
152
154
  function normalizeCommand(raw) {
153
155
  if (!raw || typeof raw !== "object")
@@ -3232,6 +3234,7 @@ async function handleInkdownMcpRpc(message, context, tools = INKDOWN_MCP_TOOLS,
3232
3234
  }
3233
3235
  }
3234
3236
  export {
3237
+ ACP_CLIENT_VERSION,
3235
3238
  ACP_EARLY_EXIT_STDERR_TAIL_LINES,
3236
3239
  ACP_EARLY_EXIT_WINDOW_MS,
3237
3240
  ACP_SDK_REQUEST_TIMEOUT_MS,
package/dist/sidecar.cjs CHANGED
@@ -35,6 +35,9 @@ var __toESM = (mod, isNodeMode, target) => {
35
35
  // src/sidecar/main.ts
36
36
  var readline = __toESM(require("node:readline"), 1);
37
37
 
38
+ // src/version.ts
39
+ var ACP_CLIENT_VERSION = "0.1.4";
40
+
38
41
  // src/contracts/index.ts
39
42
  function ok(value) {
40
43
  return { ok: true, value };
@@ -12760,7 +12763,7 @@ function startSidecar() {
12760
12763
  process.exit(0);
12761
12764
  });
12762
12765
  sendNotification("ready", {
12763
- version: "0.1.2",
12766
+ version: ACP_CLIENT_VERSION,
12764
12767
  platform: process.platform,
12765
12768
  pid: process.pid
12766
12769
  });
@@ -0,0 +1 @@
1
+ export declare const ACP_CLIENT_VERSION = "0.1.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yitom/acp-client",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Headless ACP (Agent Client Protocol) SDK for connecting to Codex, Claude, Cursor, DeepSeek and more",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -31,9 +31,10 @@
31
31
  },
32
32
  "homepage": "https://github.com/yitom486/acp-client#readme",
33
33
  "scripts": {
34
- "build": "bun build ./src/index.ts --outdir ./dist --format esm --target node --external @agentclientprotocol/sdk && bun build ./src/index.ts --outfile ./dist/index.cjs --format cjs --target node --external @agentclientprotocol/sdk && bun build ./src/sidecar/main.ts --outfile ./dist/sidecar.cjs --format cjs --target node && tsc -p tsconfig.json",
34
+ "build": "node scripts/sync-version.mjs && bun build ./src/index.ts --outdir ./dist --format esm --target node --external @agentclientprotocol/sdk && bun build ./src/index.ts --outfile ./dist/index.cjs --format cjs --target node --external @agentclientprotocol/sdk && bun build ./src/sidecar/main.ts --outfile ./dist/sidecar.cjs --format cjs --target node && tsc -p tsconfig.json",
35
35
  "test": "bun test",
36
- "prepublishOnly": "bun run build"
36
+ "prepublishOnly": "bun run build",
37
+ "version": "node scripts/sync-version.mjs && git add src/version.ts"
37
38
  },
38
39
  "dependencies": {
39
40
  "@agentclientprotocol/sdk": "^1.0.0"