khala-cli 0.4.15 → 0.4.17

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 (46) hide show
  1. package/README.md +2 -2
  2. package/dist/{chunk-IECJZUSO.mjs → chunk-2AP7E7SS.mjs} +5 -5
  3. package/dist/{chunk-XZN4X37N.mjs → chunk-2XSE7NIJ.mjs} +9 -9
  4. package/dist/{chunk-M2CLLH63.mjs → chunk-3J6GKPIV.mjs} +2 -2
  5. package/dist/{chunk-SBJ33DW7.mjs → chunk-4FHEEYBQ.mjs} +2 -2
  6. package/dist/{chunk-EEPFMGHU.mjs → chunk-5TVMOFQN.mjs} +6 -6
  7. package/dist/{chunk-UJQI2AKH.mjs → chunk-AIMS2KTW.mjs} +51 -50
  8. package/dist/{chunk-5W73XTCG.mjs → chunk-AXJRW3YA.mjs} +9 -9
  9. package/dist/{chunk-4PZFWER6.mjs → chunk-BL6XGS7X.mjs} +10 -10
  10. package/dist/{chunk-MHHNDW4A.mjs → chunk-BOVWVPZ4.mjs} +2 -2
  11. package/dist/{chunk-26TDBFRB.mjs → chunk-DRQSMMA3.mjs} +2 -2
  12. package/dist/{chunk-5XZKEFRD.mjs → chunk-F33TZMSA.mjs} +1 -1
  13. package/dist/{chunk-EBDML25F.mjs → chunk-FUFXUHYJ.mjs} +8 -8
  14. package/dist/{chunk-3IHM2SW7.mjs → chunk-H3B7UAJM.mjs} +1 -1
  15. package/dist/{chunk-FQPHAPKV.mjs → chunk-HA3NHQ2V.mjs} +36 -60
  16. package/dist/chunk-HKDKE7LO.mjs +138 -0
  17. package/dist/{chunk-657MHRGF.mjs → chunk-HNTESR25.mjs} +3 -3
  18. package/dist/{chunk-5B2GYFBD.mjs → chunk-JHBYHSZZ.mjs} +41 -38
  19. package/dist/{chunk-BCEKWOVJ.mjs → chunk-JNJIEPTE.mjs} +7 -7
  20. package/dist/{chunk-ZUGJJGF4.mjs → chunk-JSWOO4QR.mjs} +3 -3
  21. package/dist/{chunk-WE3JID2S.mjs → chunk-KPGNHSRB.mjs} +1 -1
  22. package/dist/{chunk-CXIAXZAE.mjs → chunk-M4J4H3IJ.mjs} +3 -3
  23. package/dist/{chunk-LS5EHLCO.mjs → chunk-MBGNVMCW.mjs} +1 -1
  24. package/dist/{chunk-BI2TKRL3.mjs → chunk-MEN4C4E4.mjs} +1 -1
  25. package/dist/chunk-MQ2SOR5R.mjs +27 -0
  26. package/dist/{chunk-MEI5RBK5.mjs → chunk-OMTRW7ZJ.mjs} +1 -1
  27. package/dist/{chunk-YG6KJFZW.mjs → chunk-QLXFYQJT.mjs} +17 -17
  28. package/dist/chunk-QTK3UCD5.mjs +20 -0
  29. package/dist/{chunk-Q7MJTMRR.mjs → chunk-S2DVXLX5.mjs} +9 -9
  30. package/dist/{chunk-5WXVNFMV.mjs → chunk-SRJIIZYI.mjs} +3 -3
  31. package/dist/{chunk-WLUNHB2O.mjs → chunk-TZJA43Q5.mjs} +7 -7
  32. package/dist/{chunk-C7PNUX5Y.mjs → chunk-WGVVAKZL.mjs} +2 -2
  33. package/dist/{chunk-4OFZP46T.mjs → chunk-WLXW2EJZ.mjs} +9 -9
  34. package/dist/{chunk-RYJJVZMQ.mjs → chunk-XM6NMJGJ.mjs} +2 -2
  35. package/dist/chunk-ZW4COOHQ.mjs +19 -0
  36. package/dist/khala.mjs +11 -11
  37. package/dist/web/assets/local-DfWzk9Rp.js +13 -0
  38. package/dist/web/assets/local-rpKMAzbU.css +1 -0
  39. package/dist/web/index.html +2 -2
  40. package/package.json +1 -1
  41. package/dist/chunk-LYLDUHUX.mjs +0 -47
  42. package/dist/chunk-QT5ZMQHY.mjs +0 -27
  43. package/dist/chunk-WF6GBYGH.mjs +0 -20
  44. package/dist/chunk-XS66DEGZ.mjs +0 -19
  45. package/dist/web/assets/local-Bnba1v1f.js +0 -13
  46. package/dist/web/assets/local-CVtKWAts.css +0 -1
@@ -2,7 +2,7 @@ import { createRequire as __khalaCreateRequire } from 'node:module'; const requi
2
2
  import {
3
3
  DEFAULT_LISTENING_MODE,
4
4
  decodeListeningMode
5
- } from "./chunk-LYLDUHUX.mjs";
5
+ } from "./chunk-HKDKE7LO.mjs";
6
6
  import {
7
7
  advanceCursor,
8
8
  isWakeEntry,
@@ -15,7 +15,7 @@ import {
15
15
  unread,
16
16
  wakeStart,
17
17
  wakesAgent
18
- } from "./chunk-657MHRGF.mjs";
18
+ } from "./chunk-HNTESR25.mjs";
19
19
  import {
20
20
  SESSION_ID_PATTERN,
21
21
  StateError,
@@ -25,7 +25,7 @@ import {
25
25
  sessionFiles,
26
26
  stateRoot,
27
27
  writeJsonAtomic
28
- } from "./chunk-WE3JID2S.mjs";
28
+ } from "./chunk-KPGNHSRB.mjs";
29
29
  import {
30
30
  cancelAttempt,
31
31
  confirmWakeText,
@@ -34,10 +34,10 @@ import {
34
34
  settleAttempts,
35
35
  wakeLine,
36
36
  withWakeLock
37
- } from "./chunk-5XZKEFRD.mjs";
37
+ } from "./chunk-F33TZMSA.mjs";
38
38
  import {
39
39
  init_define_KHALA_BUNDLE
40
- } from "./chunk-3IHM2SW7.mjs";
40
+ } from "./chunk-H3B7UAJM.mjs";
41
41
 
42
42
  // src/watch.ts
43
43
  init_define_KHALA_BUNDLE();
@@ -519,10 +519,10 @@ function museCliPath(env = process.env) {
519
519
  }
520
520
  function museWatchCommand(sessionId, bin = museCliPath(), platform = process.platform) {
521
521
  const quote = platform === "win32" ? (value) => `'${value.replaceAll("'", "''")}'` : shellQuote;
522
- return `${platform === "win32" ? "& " : ""}${quote(bin)} watch --harness muse --session ${quote(sessionId ?? "<current session id from khala_status>")}`;
522
+ return `${platform === "win32" ? "& " : ""}${quote(bin)} watch --harness muse --session ${quote(sessionId ?? "<current session id from the Khala status tool>")}`;
523
523
  }
524
524
  function museMonitorInstruction(sessionId, command = museWatchCommand(sessionId)) {
525
- return `start Muse's monitor tool with command ${JSON.stringify(command)}, persistent: true, wake_delay_ms: 0, show_lines: true. Always pass the current session id explicitly; the monitor shell does not inherit MUSE_SESSION_ID. Keep one monitor per session; If it prints "Do not re-arm", report the reason and do not restart it. Notifications are wake notices, not channel messages. Do not call khala_read or reply to the wake notice; Khala hooks supply the <khala-channel-messages> frame. End the turn so the Stop hook can deliver the frame in sync mode; in steer mode it can arrive after a tool. Use khala_read only for history or owner-requested manual reads; if you already replied to a message from history, do not reply again when the same message appears in a hook frame. Never run the watcher as a foreground shell command.`;
525
+ return `start Muse's monitor tool with command ${JSON.stringify(command)}, persistent: true, wake_delay_ms: 0, show_lines: true. Always pass the current session id explicitly; the monitor shell does not inherit MUSE_SESSION_ID. Keep one monitor per session; If it prints "Do not re-arm", report the reason and do not restart it. Notifications are wake notices, not channel messages. Do not call the Khala read tool or reply to the wake notice; Khala hooks supply the <khala-channel-messages> frame. End the turn so the Stop hook can deliver the frame in sync mode; in steer mode it can arrive after a tool. Use the Khala read tool only for history or owner-requested manual reads; if you already replied to a message from history, do not reply again when the same message appears in a hook frame. Never run the watcher as a foreground shell command.`;
526
526
  }
527
527
  function createMuseMonitorDriver() {
528
528
  return {
@@ -1097,8 +1097,8 @@ ${WATCH_USAGE}`);
1097
1097
  return 1;
1098
1098
  };
1099
1099
  if (argv.length !== 0 && !(argv.length === 2 && ["--session", "--harness"].includes(argv[0])) && !(argv.length === 4 && argv[0] === "--harness" && argv[2] === "--session")) return invalid("invalid_arguments");
1100
- const { resolveHarness, resolveSessionId } = await import("./chunk-WF6GBYGH.mjs");
1101
- const { adapterFor } = await import("./chunk-XS66DEGZ.mjs");
1100
+ const { resolveHarness, resolveSessionId } = await import("./chunk-QTK3UCD5.mjs");
1101
+ const { adapterFor } = await import("./chunk-ZW4COOHQ.mjs");
1102
1102
  const harness = resolveHarness(argv, process.env);
1103
1103
  if (harness === "invalid" || !adapterFor(harness)?.codec) return invalid("invalid_harness");
1104
1104
  const index = argv.indexOf("--session");
@@ -4,10 +4,10 @@ import {
4
4
  readJson,
5
5
  readProcess,
6
6
  writeJsonAtomic
7
- } from "./chunk-WE3JID2S.mjs";
7
+ } from "./chunk-KPGNHSRB.mjs";
8
8
  import {
9
9
  init_define_KHALA_BUNDLE
10
- } from "./chunk-3IHM2SW7.mjs";
10
+ } from "./chunk-H3B7UAJM.mjs";
11
11
 
12
12
  // src/wake/terminal/capture.ts
13
13
  init_define_KHALA_BUNDLE();
@@ -0,0 +1,19 @@
1
+ import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
2
+ import {
3
+ ADAPTERS,
4
+ adapterFor,
5
+ createAdapterRegistry
6
+ } from "./chunk-HA3NHQ2V.mjs";
7
+ import "./chunk-XM6NMJGJ.mjs";
8
+ import "./chunk-WLXW2EJZ.mjs";
9
+ import "./chunk-HKDKE7LO.mjs";
10
+ import "./chunk-HNTESR25.mjs";
11
+ import "./chunk-WGVVAKZL.mjs";
12
+ import "./chunk-KPGNHSRB.mjs";
13
+ import "./chunk-F33TZMSA.mjs";
14
+ import "./chunk-H3B7UAJM.mjs";
15
+ export {
16
+ ADAPTERS,
17
+ adapterFor,
18
+ createAdapterRegistry
19
+ };
package/dist/khala.mjs CHANGED
@@ -2,11 +2,11 @@
2
2
  import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
3
3
  import {
4
4
  KHALA_AGENT_VERSION
5
- } from "./chunk-MHHNDW4A.mjs";
6
- import "./chunk-LS5EHLCO.mjs";
5
+ } from "./chunk-BOVWVPZ4.mjs";
6
+ import "./chunk-MBGNVMCW.mjs";
7
7
  import {
8
8
  init_define_KHALA_BUNDLE
9
- } from "./chunk-3IHM2SW7.mjs";
9
+ } from "./chunk-H3B7UAJM.mjs";
10
10
 
11
11
  // src/cli-bundle.ts
12
12
  init_define_KHALA_BUNDLE();
@@ -84,15 +84,15 @@ async function runCli(argv, modules) {
84
84
 
85
85
  // src/cli-bundle.ts
86
86
  var hooks = {
87
- "session-start": () => import("./chunk-BCEKWOVJ.mjs"),
88
- deliver: () => import("./chunk-UJQI2AKH.mjs"),
89
- "claude-wake": () => import("./chunk-4PZFWER6.mjs")
87
+ "session-start": () => import("./chunk-JNJIEPTE.mjs"),
88
+ deliver: () => import("./chunk-AIMS2KTW.mjs"),
89
+ "claude-wake": () => import("./chunk-BL6XGS7X.mjs")
90
90
  };
91
91
  process.exitCode = await runCli(process.argv.slice(2), {
92
- mcp: () => () => import("./chunk-5B2GYFBD.mjs"),
93
- watch: () => () => import("./chunk-WLUNHB2O.mjs"),
94
- local: () => () => import("./chunk-Q7MJTMRR.mjs"),
95
- install: () => () => import("./chunk-YG6KJFZW.mjs"),
96
- wake: () => () => import("./chunk-QT5ZMQHY.mjs"),
92
+ mcp: () => () => import("./chunk-JHBYHSZZ.mjs"),
93
+ watch: () => () => import("./chunk-TZJA43Q5.mjs"),
94
+ local: () => () => import("./chunk-S2DVXLX5.mjs"),
95
+ install: () => () => import("./chunk-QLXFYQJT.mjs"),
96
+ wake: () => () => import("./chunk-MQ2SOR5R.mjs"),
97
97
  hook: (name) => Object.hasOwn(hooks, name) ? hooks[name] : void 0
98
98
  });