@kodizm/acp 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. package/dist/index.js +12 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -29194,12 +29194,22 @@ function pickClaudeCredentials(env) {
29194
29194
  async function buildClaudeBackend() {
29195
29195
  const { ClaudeDriver: ClaudeDriver2 } = await Promise.resolve().then(() => (init_driver(), exports_driver));
29196
29196
  const sdk = await Promise.resolve().then(() => (init_sdk(), exports_sdk));
29197
+ const claudePath = process.env.CLAUDE_CODE_PATH ?? "/usr/local/bin/claude";
29197
29198
  const driver = new ClaudeDriver2({
29198
29199
  credentials: pickClaudeCredentials(process.env),
29199
- agentInfo: { version: "0.5.0" },
29200
+ agentInfo: { version: "0.5.2" },
29200
29201
  sdk: {
29201
29202
  async* query(args) {
29202
- for await (const message of sdk.query(args)) {
29203
+ const optsIn = args.options;
29204
+ const isolated = {
29205
+ prompt: args.prompt,
29206
+ options: {
29207
+ ...optsIn ?? {},
29208
+ settingSources: [],
29209
+ pathToClaudeCodeExecutable: claudePath
29210
+ }
29211
+ };
29212
+ for await (const message of sdk.query(isolated)) {
29203
29213
  yield message;
29204
29214
  }
29205
29215
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kodizm/acp",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Custom ACP server bridging Claude Code, codex, and opencode CLIs through a single Kodizm-flavored protocol surface.",
5
5
  "type": "module",
6
6
  "bin": {