@kodizm/acp 0.5.1 → 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.
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29194,9 +29194,10 @@ 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.
|
|
29200
|
+
agentInfo: { version: "0.5.2" },
|
|
29200
29201
|
sdk: {
|
|
29201
29202
|
async* query(args) {
|
|
29202
29203
|
const optsIn = args.options;
|
|
@@ -29204,7 +29205,8 @@ async function buildClaudeBackend() {
|
|
|
29204
29205
|
prompt: args.prompt,
|
|
29205
29206
|
options: {
|
|
29206
29207
|
...optsIn ?? {},
|
|
29207
|
-
settingSources: []
|
|
29208
|
+
settingSources: [],
|
|
29209
|
+
pathToClaudeCodeExecutable: claudePath
|
|
29208
29210
|
}
|
|
29209
29211
|
};
|
|
29210
29212
|
for await (const message of sdk.query(isolated)) {
|