@smart-tinker/kayla 0.1.0 → 0.1.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/cli.js +1 -0
- package/dist/core/runner.js +5 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
package/dist/core/runner.js
CHANGED
|
@@ -21,6 +21,9 @@ function buildClaudeArgs(cfg, prompt, chatSettings) {
|
|
|
21
21
|
const args = [];
|
|
22
22
|
args.push("-c", "-p");
|
|
23
23
|
const outputFormat = cfg.claude.streaming ? "stream-json" : "json";
|
|
24
|
+
// Claude Code CLI requires --verbose for --output-format=stream-json.
|
|
25
|
+
if (outputFormat === "stream-json")
|
|
26
|
+
args.push("--verbose");
|
|
24
27
|
args.push("--output-format", outputFormat);
|
|
25
28
|
// Chat-level overrides (optional).
|
|
26
29
|
const tools = chatSettings?.tools ?? cfg.claude.tools;
|
|
@@ -41,6 +44,8 @@ function buildClaudeArgs(cfg, prompt, chatSettings) {
|
|
|
41
44
|
const agentsJson = node_fs_1.default.readFileSync(cfg.claude.agents_file, "utf8");
|
|
42
45
|
args.push("--agents", agentsJson);
|
|
43
46
|
}
|
|
47
|
+
// `--tools <tools...>` is variadic in Claude Code CLI. Use `--` to ensure the prompt isn't consumed as a tool.
|
|
48
|
+
args.push("--");
|
|
44
49
|
args.push(prompt);
|
|
45
50
|
return args;
|
|
46
51
|
}
|