khala-cli 0.4.16 → 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.
- package/README.md +2 -2
- package/dist/{chunk-T5EJ7PRO.mjs → chunk-2AP7E7SS.mjs} +5 -5
- package/dist/{chunk-7DAJUPE7.mjs → chunk-2XSE7NIJ.mjs} +9 -9
- package/dist/{chunk-K7UICTRQ.mjs → chunk-3J6GKPIV.mjs} +2 -2
- package/dist/{chunk-UWRWWFN5.mjs → chunk-4FHEEYBQ.mjs} +2 -2
- package/dist/{chunk-RXQJ7W3V.mjs → chunk-5TVMOFQN.mjs} +6 -6
- package/dist/{chunk-ZKVCL3WP.mjs → chunk-AIMS2KTW.mjs} +51 -50
- package/dist/{chunk-QSIO26HF.mjs → chunk-AXJRW3YA.mjs} +9 -9
- package/dist/{chunk-4XN4FXQN.mjs → chunk-BL6XGS7X.mjs} +10 -10
- package/dist/{chunk-E3IVG3BK.mjs → chunk-BOVWVPZ4.mjs} +2 -2
- package/dist/{chunk-H27WKQYQ.mjs → chunk-DRQSMMA3.mjs} +2 -2
- package/dist/{chunk-PC7MEL4R.mjs → chunk-F33TZMSA.mjs} +1 -1
- package/dist/{chunk-JKBHRHSY.mjs → chunk-FUFXUHYJ.mjs} +8 -8
- package/dist/{chunk-AU75ZQGN.mjs → chunk-H3B7UAJM.mjs} +1 -1
- package/dist/{chunk-W33R7NQS.mjs → chunk-HA3NHQ2V.mjs} +36 -60
- package/dist/chunk-HKDKE7LO.mjs +138 -0
- package/dist/{chunk-4GVGGDP3.mjs → chunk-HNTESR25.mjs} +3 -3
- package/dist/{chunk-3AOD6N2X.mjs → chunk-JHBYHSZZ.mjs} +39 -38
- package/dist/{chunk-AYG5S5CG.mjs → chunk-JNJIEPTE.mjs} +7 -7
- package/dist/{chunk-DVNUQCCY.mjs → chunk-JSWOO4QR.mjs} +3 -3
- package/dist/{chunk-OSSYXQKY.mjs → chunk-KPGNHSRB.mjs} +1 -1
- package/dist/{chunk-TYHET72S.mjs → chunk-M4J4H3IJ.mjs} +3 -3
- package/dist/{chunk-ODMW45B6.mjs → chunk-MBGNVMCW.mjs} +1 -1
- package/dist/{chunk-THOO43JY.mjs → chunk-MEN4C4E4.mjs} +1 -1
- package/dist/chunk-MQ2SOR5R.mjs +27 -0
- package/dist/{chunk-NXEQEY3M.mjs → chunk-OMTRW7ZJ.mjs} +1 -1
- package/dist/{chunk-3BMYI3II.mjs → chunk-QLXFYQJT.mjs} +17 -17
- package/dist/chunk-QTK3UCD5.mjs +20 -0
- package/dist/{chunk-GS7FTTHW.mjs → chunk-S2DVXLX5.mjs} +9 -9
- package/dist/{chunk-EY27N2BY.mjs → chunk-SRJIIZYI.mjs} +3 -3
- package/dist/{chunk-XD2AELOT.mjs → chunk-TZJA43Q5.mjs} +7 -7
- package/dist/{chunk-YMH6MKJJ.mjs → chunk-WGVVAKZL.mjs} +2 -2
- package/dist/{chunk-YAIJB4FT.mjs → chunk-WLXW2EJZ.mjs} +9 -9
- package/dist/{chunk-G323ZXDL.mjs → chunk-XM6NMJGJ.mjs} +2 -2
- package/dist/chunk-ZW4COOHQ.mjs +19 -0
- package/dist/khala.mjs +11 -11
- package/dist/web/assets/{local-d0y_F2g5.js → local-DfWzk9Rp.js} +2 -2
- package/dist/web/index.html +1 -1
- package/package.json +1 -1
- package/dist/chunk-FEJE7ZOF.mjs +0 -47
- package/dist/chunk-M5II3E5T.mjs +0 -19
- package/dist/chunk-NEJRSW7R.mjs +0 -20
- package/dist/chunk-WFRW2X2S.mjs +0 -27
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
37
|
+
} from "./chunk-F33TZMSA.mjs";
|
|
38
38
|
import {
|
|
39
39
|
init_define_KHALA_BUNDLE
|
|
40
|
-
} from "./chunk-
|
|
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
|
|
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
|
|
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-
|
|
1101
|
-
const { adapterFor } = await import("./chunk-
|
|
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-
|
|
7
|
+
} from "./chunk-KPGNHSRB.mjs";
|
|
8
8
|
import {
|
|
9
9
|
init_define_KHALA_BUNDLE
|
|
10
|
-
} from "./chunk-
|
|
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-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-BOVWVPZ4.mjs";
|
|
6
|
+
import "./chunk-MBGNVMCW.mjs";
|
|
7
7
|
import {
|
|
8
8
|
init_define_KHALA_BUNDLE
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
88
|
-
deliver: () => import("./chunk-
|
|
89
|
-
"claude-wake": () => import("./chunk-
|
|
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-
|
|
93
|
-
watch: () => () => import("./chunk-
|
|
94
|
-
local: () => () => import("./chunk-
|
|
95
|
-
install: () => () => import("./chunk-
|
|
96
|
-
wake: () => () => import("./chunk-
|
|
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
|
});
|