@halfwhey/claudraband 0.6.0 → 0.6.1
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/bin.js +8 -1
- package/dist/claude/index.d.ts +1 -1
- package/dist/claude/resolve.d.ts +1 -0
- package/dist/index.js +8 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -5285,6 +5285,13 @@ function resolveClaudeExecutable(explicitPath) {
|
|
|
5285
5285
|
throw new Error(`claudraband could not resolve bundled Claude Code @anthropic-ai/claude-code@2.1.96 (${reason}). ` + `Install dependencies or set ${ENV_OVERRIDE} or ClaudrabandOptions.claudeExecutable.`);
|
|
5286
5286
|
}
|
|
5287
5287
|
}
|
|
5288
|
+
function resolveClaudeLaunchCommand(explicitPath) {
|
|
5289
|
+
const executable = resolveClaudeExecutable(explicitPath);
|
|
5290
|
+
if (executable.endsWith(".js")) {
|
|
5291
|
+
return [process.execPath, executable];
|
|
5292
|
+
}
|
|
5293
|
+
return [executable];
|
|
5294
|
+
}
|
|
5288
5295
|
var require2, ENV_OVERRIDE = "CLAUDRABAND_CLAUDE_PATH";
|
|
5289
5296
|
var init_resolve = __esm(() => {
|
|
5290
5297
|
require2 = createRequire2(import.meta.url);
|
|
@@ -5392,7 +5399,7 @@ class ClaudeWrapper {
|
|
|
5392
5399
|
}
|
|
5393
5400
|
buildCmd(...extra) {
|
|
5394
5401
|
const cmd = [
|
|
5395
|
-
|
|
5402
|
+
...resolveClaudeLaunchCommand(this.cfg.claudeExecutable),
|
|
5396
5403
|
"--model",
|
|
5397
5404
|
this.cfg.model,
|
|
5398
5405
|
...this.cfg.claudeArgs
|
package/dist/claude/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export { ClaudeWrapper } from "./claude";
|
|
|
2
2
|
export { sessionPath } from "./claude";
|
|
3
3
|
export { parseClaudeArgs } from "./claude";
|
|
4
4
|
export type { ClaudeConfig } from "./claude";
|
|
5
|
-
export { resolveClaudeExecutable } from "./resolve";
|
|
5
|
+
export { resolveClaudeExecutable, resolveClaudeLaunchCommand } from "./resolve";
|
|
6
6
|
export { Tailer, parseLineEvents } from "./parser";
|
|
7
7
|
export { hasPendingNativePrompt, hasPendingQuestion, parseNativePermissionPrompt, } from "./inspect";
|
|
8
8
|
export { createTerminalHost, hasTmuxBinary, resolveTerminalBackend } from "../terminal";
|
package/dist/claude/resolve.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -5305,6 +5305,13 @@ function resolveClaudeExecutable(explicitPath) {
|
|
|
5305
5305
|
throw new Error(`claudraband could not resolve bundled Claude Code @anthropic-ai/claude-code@2.1.96 (${reason}). ` + `Install dependencies or set ${ENV_OVERRIDE} or ClaudrabandOptions.claudeExecutable.`);
|
|
5306
5306
|
}
|
|
5307
5307
|
}
|
|
5308
|
+
function resolveClaudeLaunchCommand(explicitPath) {
|
|
5309
|
+
const executable = resolveClaudeExecutable(explicitPath);
|
|
5310
|
+
if (executable.endsWith(".js")) {
|
|
5311
|
+
return [process.execPath, executable];
|
|
5312
|
+
}
|
|
5313
|
+
return [executable];
|
|
5314
|
+
}
|
|
5308
5315
|
|
|
5309
5316
|
// ../claudraband-core/src/claude/claude.ts
|
|
5310
5317
|
function sessionPath(cwd, sessionID) {
|
|
@@ -5404,7 +5411,7 @@ class ClaudeWrapper {
|
|
|
5404
5411
|
}
|
|
5405
5412
|
buildCmd(...extra) {
|
|
5406
5413
|
const cmd = [
|
|
5407
|
-
|
|
5414
|
+
...resolveClaudeLaunchCommand(this.cfg.claudeExecutable),
|
|
5408
5415
|
"--model",
|
|
5409
5416
|
this.cfg.model,
|
|
5410
5417
|
...this.cfg.claudeArgs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@halfwhey/claudraband",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Control the official Claude Code CLI programmatically. Use as a library, a direct CLI, an ACP server, or a persistent session daemon.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|