claude-code-acp-ts 0.16.1 → 0.24.2

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/utils.js CHANGED
@@ -98,66 +98,3 @@ export function applyEnvironmentSettings(settings) {
98
98
  }
99
99
  }
100
100
  }
101
- /**
102
- * Extracts lines from file content with byte limit enforcement.
103
- *
104
- * @param fullContent - The complete file content
105
- * @param maxContentLength - Maximum number of UTF-16 Code Units to return
106
- * @returns Object containing extracted content and metadata
107
- */
108
- export function extractLinesWithByteLimit(fullContent, maxContentLength) {
109
- if (fullContent === "") {
110
- return {
111
- content: "",
112
- wasLimited: false,
113
- linesRead: 1,
114
- };
115
- }
116
- let linesSeen = 0;
117
- let index = 0;
118
- linesSeen = 0;
119
- let contentLength = 0;
120
- let wasLimited = false;
121
- while (true) {
122
- const nextIndex = fullContent.indexOf("\n", index);
123
- if (nextIndex < 0) {
124
- // Last line in file (no trailing newline)
125
- if (linesSeen > 0 && fullContent.length > maxContentLength) {
126
- wasLimited = true;
127
- break;
128
- }
129
- linesSeen += 1;
130
- contentLength = fullContent.length;
131
- break;
132
- }
133
- else {
134
- // Line with newline - include up to the newline
135
- const newContentLength = nextIndex + 1;
136
- if (linesSeen > 0 && newContentLength > maxContentLength) {
137
- wasLimited = true;
138
- break;
139
- }
140
- linesSeen += 1;
141
- contentLength = newContentLength;
142
- index = newContentLength;
143
- }
144
- }
145
- return {
146
- content: fullContent.slice(0, contentLength),
147
- wasLimited,
148
- linesRead: linesSeen,
149
- };
150
- }
151
- // Helper to encode a path like Claude does:
152
- // - Unix: "/Users/test" -> "-Users-test"
153
- // - Windows: "C:\Users\test" -> "C-Users-test"
154
- export function encodeProjectPath(cwd) {
155
- const windowsPathMatch = cwd.match(/^([A-Za-z]):[\\/]/);
156
- if (windowsPathMatch) {
157
- const driveLetter = windowsPathMatch[1];
158
- const rest = cwd.slice(2);
159
- return `${driveLetter}${rest.replace(/[\\/]/g, "-")}`;
160
- }
161
- // Unix paths
162
- return cwd.replace(/\//g, "-");
163
- }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.16.1",
6
+ "version": "0.24.2",
7
7
  "description": "An ACP-compatible coding agent powered by the Claude Code SDK (TypeScript)",
8
8
  "main": "dist/lib.js",
9
9
  "types": "dist/lib.d.ts",
@@ -60,23 +60,22 @@
60
60
  "author": "Zed Industries",
61
61
  "license": "Apache-2.0",
62
62
  "dependencies": {
63
- "@agentclientprotocol/sdk": "0.14.1",
64
- "@anthropic-ai/claude-agent-sdk": "0.2.34",
65
- "@modelcontextprotocol/sdk": "1.26.0",
66
- "diff": "8.0.3",
67
- "minimatch": "10.1.2"
63
+ "@agentclientprotocol/sdk": "0.17.0",
64
+ "@anthropic-ai/claude-agent-sdk": "0.2.84",
65
+ "zod": "^3.25.0 || ^4.0.0"
68
66
  },
69
67
  "devDependencies": {
70
- "@anthropic-ai/sdk": "0.73.0",
71
- "@types/node": "25.2.1",
72
- "@typescript-eslint/eslint-plugin": "8.54.0",
73
- "@typescript-eslint/parser": "8.54.0",
74
- "eslint": "9.39.2",
68
+ "@anthropic-ai/sdk": "0.81.0",
69
+ "@eslint/js": "10.0.1",
70
+ "@types/node": "25.5.0",
71
+ "@typescript-eslint/eslint-plugin": "8.57.2",
72
+ "@typescript-eslint/parser": "8.57.2",
73
+ "eslint": "10.1.0",
75
74
  "eslint-config-prettier": "10.1.8",
76
- "globals": "17.3.0",
75
+ "globals": "17.4.0",
77
76
  "prettier": "3.8.1",
78
77
  "ts-node": "10.9.2",
79
78
  "typescript": "5.9.3",
80
- "vitest": "4.0.18"
79
+ "vitest": "4.1.1"
81
80
  }
82
81
  }