@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 CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  "use strict";
2
3
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
4
  return (mod && mod.__esModule) ? mod : { "default": mod };
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smart-tinker/kayla",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Telegram -> Claude Code CLI orchestrator (Z.AI backend configured in Claude Code).",
5
5
  "license": "MIT",
6
6
  "repository": {