khala-cli 0.4.15 → 0.4.16

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 (44) hide show
  1. package/dist/{chunk-5B2GYFBD.mjs → chunk-3AOD6N2X.mjs} +28 -26
  2. package/dist/{chunk-YG6KJFZW.mjs → chunk-3BMYI3II.mjs} +12 -12
  3. package/dist/{chunk-657MHRGF.mjs → chunk-4GVGGDP3.mjs} +3 -3
  4. package/dist/{chunk-4PZFWER6.mjs → chunk-4XN4FXQN.mjs} +10 -10
  5. package/dist/{chunk-XZN4X37N.mjs → chunk-7DAJUPE7.mjs} +9 -9
  6. package/dist/{chunk-3IHM2SW7.mjs → chunk-AU75ZQGN.mjs} +1 -1
  7. package/dist/{chunk-BCEKWOVJ.mjs → chunk-AYG5S5CG.mjs} +6 -6
  8. package/dist/{chunk-ZUGJJGF4.mjs → chunk-DVNUQCCY.mjs} +3 -3
  9. package/dist/{chunk-MHHNDW4A.mjs → chunk-E3IVG3BK.mjs} +2 -2
  10. package/dist/{chunk-5WXVNFMV.mjs → chunk-EY27N2BY.mjs} +3 -3
  11. package/dist/{chunk-LYLDUHUX.mjs → chunk-FEJE7ZOF.mjs} +2 -2
  12. package/dist/{chunk-RYJJVZMQ.mjs → chunk-G323ZXDL.mjs} +2 -2
  13. package/dist/{chunk-Q7MJTMRR.mjs → chunk-GS7FTTHW.mjs} +9 -9
  14. package/dist/{chunk-26TDBFRB.mjs → chunk-H27WKQYQ.mjs} +2 -2
  15. package/dist/{chunk-EBDML25F.mjs → chunk-JKBHRHSY.mjs} +8 -8
  16. package/dist/{chunk-M2CLLH63.mjs → chunk-K7UICTRQ.mjs} +2 -2
  17. package/dist/chunk-M5II3E5T.mjs +19 -0
  18. package/dist/chunk-NEJRSW7R.mjs +20 -0
  19. package/dist/{chunk-MEI5RBK5.mjs → chunk-NXEQEY3M.mjs} +1 -1
  20. package/dist/{chunk-LS5EHLCO.mjs → chunk-ODMW45B6.mjs} +1 -1
  21. package/dist/{chunk-WE3JID2S.mjs → chunk-OSSYXQKY.mjs} +1 -1
  22. package/dist/{chunk-5XZKEFRD.mjs → chunk-PC7MEL4R.mjs} +1 -1
  23. package/dist/{chunk-5W73XTCG.mjs → chunk-QSIO26HF.mjs} +6 -6
  24. package/dist/{chunk-EEPFMGHU.mjs → chunk-RXQJ7W3V.mjs} +6 -6
  25. package/dist/{chunk-IECJZUSO.mjs → chunk-T5EJ7PRO.mjs} +5 -5
  26. package/dist/{chunk-BI2TKRL3.mjs → chunk-THOO43JY.mjs} +1 -1
  27. package/dist/{chunk-CXIAXZAE.mjs → chunk-TYHET72S.mjs} +3 -3
  28. package/dist/{chunk-SBJ33DW7.mjs → chunk-UWRWWFN5.mjs} +2 -2
  29. package/dist/{chunk-FQPHAPKV.mjs → chunk-W33R7NQS.mjs} +16 -16
  30. package/dist/chunk-WFRW2X2S.mjs +27 -0
  31. package/dist/{chunk-WLUNHB2O.mjs → chunk-XD2AELOT.mjs} +7 -7
  32. package/dist/{chunk-4OFZP46T.mjs → chunk-YAIJB4FT.mjs} +7 -7
  33. package/dist/{chunk-C7PNUX5Y.mjs → chunk-YMH6MKJJ.mjs} +2 -2
  34. package/dist/{chunk-UJQI2AKH.mjs → chunk-ZKVCL3WP.mjs} +10 -10
  35. package/dist/khala.mjs +11 -11
  36. package/dist/web/assets/local-d0y_F2g5.js +13 -0
  37. package/dist/web/assets/local-rpKMAzbU.css +1 -0
  38. package/dist/web/index.html +2 -2
  39. package/package.json +1 -1
  40. package/dist/chunk-QT5ZMQHY.mjs +0 -27
  41. package/dist/chunk-WF6GBYGH.mjs +0 -20
  42. package/dist/chunk-XS66DEGZ.mjs +0 -19
  43. package/dist/web/assets/local-Bnba1v1f.js +0 -13
  44. package/dist/web/assets/local-CVtKWAts.css +0 -1
@@ -11,40 +11,40 @@ import {
11
11
  sniffImage,
12
12
  startChannelSession,
13
13
  stripJpegMetadata
14
- } from "./chunk-SBJ33DW7.mjs";
14
+ } from "./chunk-UWRWWFN5.mjs";
15
15
  import {
16
16
  hostedUsernameFromAgentName,
17
17
  pollJoin,
18
18
  reportReady,
19
19
  requestJoin,
20
20
  saveHostedUsername
21
- } from "./chunk-CXIAXZAE.mjs";
21
+ } from "./chunk-TYHET72S.mjs";
22
22
  import {
23
23
  KhalaClientError,
24
24
  LOCAL_OWNER_USER_ID
25
- } from "./chunk-IECJZUSO.mjs";
26
- import "./chunk-BI2TKRL3.mjs";
25
+ } from "./chunk-T5EJ7PRO.mjs";
26
+ import "./chunk-THOO43JY.mjs";
27
27
  import {
28
28
  KHALA_AGENT_VERSION
29
- } from "./chunk-MHHNDW4A.mjs";
29
+ } from "./chunk-E3IVG3BK.mjs";
30
30
  import {
31
31
  resolveHarness,
32
32
  resolveSession
33
- } from "./chunk-M2CLLH63.mjs";
34
- import "./chunk-LS5EHLCO.mjs";
33
+ } from "./chunk-K7UICTRQ.mjs";
34
+ import "./chunk-ODMW45B6.mjs";
35
35
  import {
36
36
  antigravityRegisterHint,
37
37
  selectedWakeStatus,
38
38
  wakeDisableNotice,
39
39
  wakeStatus,
40
40
  wakeStatusText
41
- } from "./chunk-5W73XTCG.mjs";
41
+ } from "./chunk-QSIO26HF.mjs";
42
42
  import {
43
43
  SESSION_UNKNOWN_HINT,
44
44
  adapterFor,
45
45
  createWakeLadder
46
- } from "./chunk-FQPHAPKV.mjs";
47
- import "./chunk-RYJJVZMQ.mjs";
46
+ } from "./chunk-W33R7NQS.mjs";
47
+ import "./chunk-G323ZXDL.mjs";
48
48
  import {
49
49
  ATTENTION,
50
50
  applyArchived,
@@ -58,11 +58,11 @@ import {
58
58
  qwenInboundAllowed,
59
59
  readModeState,
60
60
  readWakeSettings
61
- } from "./chunk-4OFZP46T.mjs";
61
+ } from "./chunk-YAIJB4FT.mjs";
62
62
  import {
63
63
  LISTENING_MODES,
64
64
  decodeListeningModeCommand
65
- } from "./chunk-LYLDUHUX.mjs";
65
+ } from "./chunk-FEJE7ZOF.mjs";
66
66
  import {
67
67
  advanceCursor,
68
68
  appendInbox,
@@ -81,7 +81,7 @@ import {
81
81
  unreadCount,
82
82
  usageLimited,
83
83
  wakesAgent
84
- } from "./chunk-657MHRGF.mjs";
84
+ } from "./chunk-4GVGGDP3.mjs";
85
85
  import {
86
86
  CHANNEL_EVENT_TYPE,
87
87
  encodeChannelEvent,
@@ -89,7 +89,7 @@ import {
89
89
  formatChannelEventLine,
90
90
  memberRenameContent,
91
91
  statusFor
92
- } from "./chunk-C7PNUX5Y.mjs";
92
+ } from "./chunk-YMH6MKJJ.mjs";
93
93
  import {
94
94
  SESSION_ID_PATTERN,
95
95
  StateError,
@@ -114,11 +114,11 @@ import {
114
114
  validAgentRejoinSecret,
115
115
  writeJoinFile,
116
116
  writeStateFile
117
- } from "./chunk-WE3JID2S.mjs";
118
- import "./chunk-5XZKEFRD.mjs";
117
+ } from "./chunk-OSSYXQKY.mjs";
118
+ import "./chunk-PC7MEL4R.mjs";
119
119
  import {
120
120
  init_define_KHALA_BUNDLE
121
- } from "./chunk-3IHM2SW7.mjs";
121
+ } from "./chunk-AU75ZQGN.mjs";
122
122
 
123
123
  // src/mcp/main.ts
124
124
  init_define_KHALA_BUNDLE();
@@ -1121,7 +1121,7 @@ function createKhalaAgentClient(options) {
1121
1121
  await removeStateFile(attempt.files.dir, "session.json");
1122
1122
  if (discardResume) await removeStateFile(attempt.files.dir, "resume.json");
1123
1123
  if (discardResume && attempt.credentials?.transport !== "local" && !attempt.restore?.localCredentials) {
1124
- await (await import("./chunk-ZUGJJGF4.mjs")).wipeCryptoStore(attempt.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1124
+ await (await import("./chunk-DVNUQCCY.mjs")).wipeCryptoStore(attempt.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1125
1125
  }
1126
1126
  }
1127
1127
  }
@@ -1228,11 +1228,11 @@ function createKhalaAgentClient(options) {
1228
1228
  let credentials = issuedCredentials;
1229
1229
  if (attempt.restore && credentials.roomId !== attempt.restore.roomId) {
1230
1230
  await removeStateFile(attempt.files.dir, "resume.json");
1231
- await (await import("./chunk-ZUGJJGF4.mjs")).wipeCryptoStore(attempt.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1231
+ await (await import("./chunk-DVNUQCCY.mjs")).wipeCryptoStore(attempt.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1232
1232
  throw new KhalaClientError("not_connected", "unauthorized");
1233
1233
  }
1234
1234
  if (attempt.restore && !attempt.restore.localCredentials) {
1235
- const cryptoStore = await import("./chunk-ZUGJJGF4.mjs");
1235
+ const cryptoStore = await import("./chunk-DVNUQCCY.mjs");
1236
1236
  try {
1237
1237
  credentials = await cryptoStore.restoredCredentials(attempt.files.dir, credentials);
1238
1238
  } catch (error) {
@@ -1298,7 +1298,7 @@ function createKhalaAgentClient(options) {
1298
1298
  try {
1299
1299
  session = await wait(start());
1300
1300
  } catch (error) {
1301
- const cryptoStore = await import("./chunk-ZUGJJGF4.mjs");
1301
+ const cryptoStore = await import("./chunk-DVNUQCCY.mjs");
1302
1302
  if (!(error instanceof cryptoStore.CryptoStoreCorruptError) || credentials.accessToken === issuedCredentials.accessToken) throw error;
1303
1303
  await cryptoStore.wipeCryptoStore(channelDir, stateRoot(options.env), options.fetch ?? fetch);
1304
1304
  credentials = issuedCredentials;
@@ -1519,9 +1519,9 @@ function createKhalaAgentClient(options) {
1519
1519
  }
1520
1520
  try {
1521
1521
  if (restore && !restore.localCredentials) {
1522
- const state = await (await import("./chunk-ZUGJJGF4.mjs")).validateCryptoToken(attempt.files.dir, options.fetch ?? fetch);
1522
+ const state = await (await import("./chunk-DVNUQCCY.mjs")).validateCryptoToken(attempt.files.dir, options.fetch ?? fetch);
1523
1523
  if (state === "corrupt") {
1524
- await (await import("./chunk-ZUGJJGF4.mjs")).wipeCryptoStore(attempt.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1524
+ await (await import("./chunk-DVNUQCCY.mjs")).wipeCryptoStore(attempt.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1525
1525
  attempt.cryptoReset = true;
1526
1526
  }
1527
1527
  if (state === "revoked") throw new KhalaClientError("not_connected", "unauthorized");
@@ -1552,7 +1552,7 @@ function createKhalaAgentClient(options) {
1552
1552
  } catch (error) {
1553
1553
  if (restore && terminal.includes(safeError(error).message)) {
1554
1554
  await removeStateFile(attempt.files.dir, "resume.json");
1555
- if (!restore.localCredentials) await (await import("./chunk-ZUGJJGF4.mjs")).wipeCryptoStore(attempt.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1555
+ if (!restore.localCredentials) await (await import("./chunk-DVNUQCCY.mjs")).wipeCryptoStore(attempt.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1556
1556
  }
1557
1557
  if (restore && !closed && !attempt.controller.signal.aborted) await setStatus(attempt, "disconnected", safeError(error).message);
1558
1558
  attempts.delete(link);
@@ -1625,12 +1625,12 @@ function createKhalaAgentClient(options) {
1625
1625
  const previous = priorStatuses.get(ref.key);
1626
1626
  if (terminal.includes(previous?.detail ?? "")) {
1627
1627
  await removeStateFile(ref.files.dir, "resume.json");
1628
- await (await import("./chunk-ZUGJJGF4.mjs")).wipeCryptoStore(ref.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1628
+ await (await import("./chunk-DVNUQCCY.mjs")).wipeCryptoStore(ref.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1629
1629
  return;
1630
1630
  }
1631
1631
  if (!savedSecret || authorization.secretHash !== secretHash() || authorization.workspace !== workspace || authorization.roomId !== ref.roomId || authorization.localCredentials && (authorization.localCredentials.transport !== "local" || authorization.localCredentials.roomId !== ref.roomId) || typeof authorization.link !== "string" || typeof authorization.label !== "string") {
1632
1632
  await removeStateFile(ref.files.dir, "resume.json");
1633
- await (await import("./chunk-ZUGJJGF4.mjs")).wipeCryptoStore(ref.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1633
+ await (await import("./chunk-DVNUQCCY.mjs")).wipeCryptoStore(ref.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1634
1634
  return;
1635
1635
  }
1636
1636
  const restoring = join(authorization.link, authorization.label, authorization).catch(() => {
@@ -2211,6 +2211,7 @@ async function main(argv) {
2211
2211
  };
2212
2212
  process.once("SIGTERM", onSignal);
2213
2213
  process.once("SIGINT", onSignal);
2214
+ process.once("SIGHUP", onSignal);
2214
2215
  try {
2215
2216
  const code = await runMcpCommand(argv, { createClient, signal: stop.signal });
2216
2217
  exitCode = cleanupFailed ? 1 : code;
@@ -2218,6 +2219,7 @@ async function main(argv) {
2218
2219
  } finally {
2219
2220
  process.off("SIGTERM", onSignal);
2220
2221
  process.off("SIGINT", onSignal);
2222
+ process.off("SIGHUP", onSignal);
2221
2223
  process.stdin.destroy();
2222
2224
  setImmediate(() => process.exit(exitCode));
2223
2225
  }
@@ -1,19 +1,19 @@
1
1
  import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
2
2
  import {
3
3
  bundle
4
- } from "./chunk-LS5EHLCO.mjs";
4
+ } from "./chunk-ODMW45B6.mjs";
5
5
  import {
6
6
  consentLine,
7
7
  setWake
8
- } from "./chunk-EEPFMGHU.mjs";
8
+ } from "./chunk-RXQJ7W3V.mjs";
9
9
  import {
10
10
  antigravityRegisterHint,
11
11
  wakeDrivers
12
- } from "./chunk-5W73XTCG.mjs";
12
+ } from "./chunk-QSIO26HF.mjs";
13
13
  import {
14
14
  adapterFor
15
- } from "./chunk-FQPHAPKV.mjs";
16
- import "./chunk-RYJJVZMQ.mjs";
15
+ } from "./chunk-W33R7NQS.mjs";
16
+ import "./chunk-G323ZXDL.mjs";
17
17
  import {
18
18
  ManagedFiles,
19
19
  cursorPaths,
@@ -29,19 +29,19 @@ import {
29
29
  qwenHome,
30
30
  readManaged,
31
31
  textFormat
32
- } from "./chunk-4OFZP46T.mjs";
33
- import "./chunk-LYLDUHUX.mjs";
34
- import "./chunk-657MHRGF.mjs";
35
- import "./chunk-C7PNUX5Y.mjs";
32
+ } from "./chunk-YAIJB4FT.mjs";
33
+ import "./chunk-FEJE7ZOF.mjs";
34
+ import "./chunk-4GVGGDP3.mjs";
35
+ import "./chunk-YMH6MKJJ.mjs";
36
36
  import {
37
37
  ensureStateDir,
38
38
  isHarnessId,
39
39
  stateRoot
40
- } from "./chunk-WE3JID2S.mjs";
41
- import "./chunk-5XZKEFRD.mjs";
40
+ } from "./chunk-OSSYXQKY.mjs";
41
+ import "./chunk-PC7MEL4R.mjs";
42
42
  import {
43
43
  init_define_KHALA_BUNDLE
44
- } from "./chunk-3IHM2SW7.mjs";
44
+ } from "./chunk-AU75ZQGN.mjs";
45
45
 
46
46
  // src/install/main.ts
47
47
  init_define_KHALA_BUNDLE();
@@ -2,7 +2,7 @@ import { createRequire as __khalaCreateRequire } from 'node:module'; const requi
2
2
  import {
3
3
  decodeChannelEvent,
4
4
  formatChannelEventLine
5
- } from "./chunk-C7PNUX5Y.mjs";
5
+ } from "./chunk-YMH6MKJJ.mjs";
6
6
  import {
7
7
  StateError,
8
8
  channelFiles,
@@ -14,10 +14,10 @@ import {
14
14
  stateKey,
15
15
  writeJsonAtomic,
16
16
  writeStateFile
17
- } from "./chunk-WE3JID2S.mjs";
17
+ } from "./chunk-OSSYXQKY.mjs";
18
18
  import {
19
19
  init_define_KHALA_BUNDLE
20
- } from "./chunk-3IHM2SW7.mjs";
20
+ } from "./chunk-AU75ZQGN.mjs";
21
21
 
22
22
  // src/events/receive.ts
23
23
  init_define_KHALA_BUNDLE();
@@ -1,31 +1,31 @@
1
1
  import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
2
2
  import {
3
3
  sessionStartWakeChannels
4
- } from "./chunk-5WXVNFMV.mjs";
4
+ } from "./chunk-EY27N2BY.mjs";
5
5
  import {
6
6
  adapterFor
7
- } from "./chunk-FQPHAPKV.mjs";
8
- import "./chunk-RYJJVZMQ.mjs";
7
+ } from "./chunk-W33R7NQS.mjs";
8
+ import "./chunk-G323ZXDL.mjs";
9
9
  import {
10
10
  driverAllowed,
11
11
  readListeningMode
12
- } from "./chunk-4OFZP46T.mjs";
13
- import "./chunk-LYLDUHUX.mjs";
12
+ } from "./chunk-YAIJB4FT.mjs";
13
+ import "./chunk-FEJE7ZOF.mjs";
14
14
  import {
15
15
  wakeStart,
16
16
  wakesAgent
17
- } from "./chunk-657MHRGF.mjs";
18
- import "./chunk-C7PNUX5Y.mjs";
17
+ } from "./chunk-4GVGGDP3.mjs";
18
+ import "./chunk-YMH6MKJJ.mjs";
19
19
  import {
20
20
  filesForDir,
21
21
  readJson,
22
22
  resolveStateDir,
23
23
  stateRoot
24
- } from "./chunk-WE3JID2S.mjs";
25
- import "./chunk-5XZKEFRD.mjs";
24
+ } from "./chunk-OSSYXQKY.mjs";
25
+ import "./chunk-PC7MEL4R.mjs";
26
26
  import {
27
27
  init_define_KHALA_BUNDLE
28
- } from "./chunk-3IHM2SW7.mjs";
28
+ } from "./chunk-AU75ZQGN.mjs";
29
29
 
30
30
  // hooks/claude-wake.ts
31
31
  init_define_KHALA_BUNDLE();
@@ -1,28 +1,28 @@
1
1
  import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
2
2
  import {
3
3
  retryUnexpired
4
- } from "./chunk-MEI5RBK5.mjs";
4
+ } from "./chunk-NXEQEY3M.mjs";
5
5
  import {
6
6
  IMAGE_MAX_BYTES,
7
7
  RESTORE_HISTORY_MAX_PAGES
8
- } from "./chunk-SBJ33DW7.mjs";
9
- import "./chunk-BI2TKRL3.mjs";
8
+ } from "./chunk-UWRWWFN5.mjs";
9
+ import "./chunk-THOO43JY.mjs";
10
10
  import {
11
11
  LISTENING_MODE_COMMAND_TYPE,
12
12
  LISTENING_MODE_MEMBER_KEY,
13
13
  memberListeningMode
14
- } from "./chunk-LYLDUHUX.mjs";
14
+ } from "./chunk-FEJE7ZOF.mjs";
15
15
  import {
16
16
  CHANNEL_EVENT_TYPE,
17
17
  encodeChannelEvent,
18
18
  memberRenameContent
19
- } from "./chunk-C7PNUX5Y.mjs";
19
+ } from "./chunk-YMH6MKJJ.mjs";
20
20
  import {
21
21
  StateError
22
- } from "./chunk-WE3JID2S.mjs";
22
+ } from "./chunk-OSSYXQKY.mjs";
23
23
  import {
24
24
  init_define_KHALA_BUNDLE
25
- } from "./chunk-3IHM2SW7.mjs";
25
+ } from "./chunk-AU75ZQGN.mjs";
26
26
 
27
27
  // src/matrix/session.ts
28
28
  init_define_KHALA_BUNDLE();
@@ -60,7 +60,7 @@ async function createAgentMatrixSession(creds, opts) {
60
60
  const started = Date.now();
61
61
  const rejoinTxnId = `khala.rejoin.${randomUUID()}`;
62
62
  const log = (line) => opts?.log?.(line);
63
- const persistent = opts?.cryptoStore ? await (await import("./chunk-ZUGJJGF4.mjs")).openCryptoStore(opts.cryptoStore.dir, opts.cryptoStore.root, creds) : void 0;
63
+ const persistent = opts?.cryptoStore ? await (await import("./chunk-DVNUQCCY.mjs")).openCryptoStore(opts.cryptoStore.dir, opts.cryptoStore.root, creds) : void 0;
64
64
  const client = createClient({ ...persistent ? { store: persistent.sync } : {}, baseUrl: creds.homeserver, userId: creds.userId, accessToken: creds.accessToken, deviceId: creds.deviceId });
65
65
  const handlers = /* @__PURE__ */ new Set();
66
66
  const ended = /* @__PURE__ */ new Set();
@@ -316,7 +316,7 @@ async function createAgentMatrixSession(creds, opts) {
316
316
  await client.initRustCrypto(persistent ? { useIndexedDB: true, cryptoDatabasePrefix: persistent.prefix } : { useIndexedDB: false });
317
317
  } catch (error) {
318
318
  if (!persistent?.restored || error instanceof StateError && error.code === "unsafe_state_dir") throw error;
319
- throw new (await import("./chunk-ZUGJJGF4.mjs")).CryptoStoreCorruptError();
319
+ throw new (await import("./chunk-DVNUQCCY.mjs")).CryptoStoreCorruptError();
320
320
  }
321
321
  const crypto = client.getCrypto();
322
322
  if (!crypto) throw new Error("crypto_unavailable");
@@ -45,7 +45,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
45
45
  var define_KHALA_BUNDLE_default;
46
46
  var init_define_KHALA_BUNDLE = __esm({
47
47
  "<define:__KHALA_BUNDLE__>"() {
48
- define_KHALA_BUNDLE_default = { name: "khala-cli", version: "0.4.15" };
48
+ define_KHALA_BUNDLE_default = { name: "khala-cli", version: "0.4.16" };
49
49
  }
50
50
  });
51
51
 
@@ -1,23 +1,23 @@
1
1
  import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
2
2
  import {
3
3
  sessionStartWakeChannels
4
- } from "./chunk-5WXVNFMV.mjs";
4
+ } from "./chunk-EY27N2BY.mjs";
5
5
  import {
6
6
  capturePane
7
- } from "./chunk-RYJJVZMQ.mjs";
7
+ } from "./chunk-G323ZXDL.mjs";
8
8
  import {
9
9
  listChannels,
10
10
  writeActivity
11
- } from "./chunk-657MHRGF.mjs";
12
- import "./chunk-C7PNUX5Y.mjs";
11
+ } from "./chunk-4GVGGDP3.mjs";
12
+ import "./chunk-YMH6MKJJ.mjs";
13
13
  import {
14
14
  TERMINAL_SESSION_DETAILS,
15
15
  openSessionDir,
16
16
  readJson
17
- } from "./chunk-WE3JID2S.mjs";
17
+ } from "./chunk-OSSYXQKY.mjs";
18
18
  import {
19
19
  init_define_KHALA_BUNDLE
20
- } from "./chunk-3IHM2SW7.mjs";
20
+ } from "./chunk-AU75ZQGN.mjs";
21
21
 
22
22
  // hooks/session-start.ts
23
23
  init_define_KHALA_BUNDLE();
@@ -1,18 +1,18 @@
1
1
  import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
2
2
  import {
3
3
  retryUnexpired
4
- } from "./chunk-MEI5RBK5.mjs";
4
+ } from "./chunk-NXEQEY3M.mjs";
5
5
  import {
6
6
  StateError,
7
7
  ensureStateDir,
8
8
  writeJsonAtomic
9
- } from "./chunk-WE3JID2S.mjs";
9
+ } from "./chunk-OSSYXQKY.mjs";
10
10
  import {
11
11
  __commonJS,
12
12
  __export,
13
13
  __toESM,
14
14
  init_define_KHALA_BUNDLE
15
- } from "./chunk-3IHM2SW7.mjs";
15
+ } from "./chunk-AU75ZQGN.mjs";
16
16
 
17
17
  // ../../node_modules/.pnpm/immediate@3.3.0/node_modules/immediate/lib/nextTick.js
18
18
  var require_nextTick = __commonJS({
@@ -1,10 +1,10 @@
1
1
  import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
2
2
  import {
3
3
  bundle
4
- } from "./chunk-LS5EHLCO.mjs";
4
+ } from "./chunk-ODMW45B6.mjs";
5
5
  import {
6
6
  init_define_KHALA_BUNDLE
7
- } from "./chunk-3IHM2SW7.mjs";
7
+ } from "./chunk-AU75ZQGN.mjs";
8
8
 
9
9
  // src/version.ts
10
10
  init_define_KHALA_BUNDLE();
@@ -1,17 +1,17 @@
1
1
  import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
2
2
  import {
3
3
  listChannels
4
- } from "./chunk-657MHRGF.mjs";
4
+ } from "./chunk-4GVGGDP3.mjs";
5
5
  import {
6
6
  TERMINAL_SESSION_DETAILS,
7
7
  cachedProcessReader,
8
8
  readStateFile,
9
9
  readStatus,
10
10
  validAgentRejoinSecret
11
- } from "./chunk-WE3JID2S.mjs";
11
+ } from "./chunk-OSSYXQKY.mjs";
12
12
  import {
13
13
  init_define_KHALA_BUNDLE
14
- } from "./chunk-3IHM2SW7.mjs";
14
+ } from "./chunk-AU75ZQGN.mjs";
15
15
 
16
16
  // src/session-start-wake.ts
17
17
  init_define_KHALA_BUNDLE();
@@ -5,10 +5,10 @@ import {
5
5
  object,
6
6
  readMatrixUserId,
7
7
  version
8
- } from "./chunk-WE3JID2S.mjs";
8
+ } from "./chunk-OSSYXQKY.mjs";
9
9
  import {
10
10
  init_define_KHALA_BUNDLE
11
- } from "./chunk-3IHM2SW7.mjs";
11
+ } from "./chunk-AU75ZQGN.mjs";
12
12
 
13
13
  // ../contracts/src/m1/listening-mode.ts
14
14
  init_define_KHALA_BUNDLE();
@@ -4,10 +4,10 @@ import {
4
4
  readJson,
5
5
  readProcess,
6
6
  writeJsonAtomic
7
- } from "./chunk-WE3JID2S.mjs";
7
+ } from "./chunk-OSSYXQKY.mjs";
8
8
  import {
9
9
  init_define_KHALA_BUNDLE
10
- } from "./chunk-3IHM2SW7.mjs";
10
+ } from "./chunk-AU75ZQGN.mjs";
11
11
 
12
12
  // src/wake/terminal/capture.ts
13
13
  init_define_KHALA_BUNDLE();
@@ -2,7 +2,7 @@ import { createRequire as __khalaCreateRequire } from 'node:module'; const requi
2
2
  import {
3
3
  parseChannelLink,
4
4
  resolveLocalOwnerName
5
- } from "./chunk-CXIAXZAE.mjs";
5
+ } from "./chunk-TYHET72S.mjs";
6
6
  import {
7
7
  LOCAL_AGENT_DEVICE_PREFIX,
8
8
  LOCAL_IDLE_EXIT_MS,
@@ -32,14 +32,14 @@ import {
32
32
  normalizeInitials,
33
33
  olderHelperVersion,
34
34
  readHelperFile
35
- } from "./chunk-IECJZUSO.mjs";
36
- import "./chunk-BI2TKRL3.mjs";
35
+ } from "./chunk-T5EJ7PRO.mjs";
36
+ import "./chunk-THOO43JY.mjs";
37
37
  import {
38
38
  KHALA_AGENT_VERSION
39
- } from "./chunk-MHHNDW4A.mjs";
39
+ } from "./chunk-E3IVG3BK.mjs";
40
40
  import {
41
41
  bundle
42
- } from "./chunk-LS5EHLCO.mjs";
42
+ } from "./chunk-ODMW45B6.mjs";
43
43
  import {
44
44
  DEFAULT_LISTENING_MODE,
45
45
  LISTENING_MODE_COMMAND_TYPE,
@@ -47,13 +47,13 @@ import {
47
47
  decodeListeningMode,
48
48
  decodeListeningModeCommand,
49
49
  memberListeningMode
50
- } from "./chunk-LYLDUHUX.mjs";
50
+ } from "./chunk-FEJE7ZOF.mjs";
51
51
  import {
52
52
  CHANNEL_EVENT_TYPE,
53
53
  decodeChannelEvent,
54
54
  encodeChannelEvent,
55
55
  memberRenameContent
56
- } from "./chunk-C7PNUX5Y.mjs";
56
+ } from "./chunk-YMH6MKJJ.mjs";
57
57
  import {
58
58
  LEGACY_HARNESSES,
59
59
  StateError,
@@ -67,10 +67,10 @@ import {
67
67
  validAgentRejoinSecret,
68
68
  validAgentSessionId,
69
69
  writeJsonAtomic
70
- } from "./chunk-WE3JID2S.mjs";
70
+ } from "./chunk-OSSYXQKY.mjs";
71
71
  import {
72
72
  init_define_KHALA_BUNDLE
73
- } from "./chunk-3IHM2SW7.mjs";
73
+ } from "./chunk-AU75ZQGN.mjs";
74
74
 
75
75
  // src/local/cli.ts
76
76
  init_define_KHALA_BUNDLE();
@@ -8,8 +8,8 @@ import {
8
8
  resetWakeDriver,
9
9
  settleAttempts,
10
10
  takeWakeDisableNotices
11
- } from "./chunk-5XZKEFRD.mjs";
12
- import "./chunk-3IHM2SW7.mjs";
11
+ } from "./chunk-PC7MEL4R.mjs";
12
+ import "./chunk-AU75ZQGN.mjs";
13
13
  export {
14
14
  cancelAttempt,
15
15
  confirmWakeText,
@@ -14,21 +14,21 @@ import {
14
14
  decodeLocalSendResult,
15
15
  ensureHelper,
16
16
  localRoomPath
17
- } from "./chunk-IECJZUSO.mjs";
18
- import "./chunk-BI2TKRL3.mjs";
19
- import "./chunk-MHHNDW4A.mjs";
20
- import "./chunk-LS5EHLCO.mjs";
17
+ } from "./chunk-T5EJ7PRO.mjs";
18
+ import "./chunk-THOO43JY.mjs";
19
+ import "./chunk-E3IVG3BK.mjs";
20
+ import "./chunk-ODMW45B6.mjs";
21
21
  import {
22
22
  LISTENING_MODE_COMMAND_TYPE
23
- } from "./chunk-LYLDUHUX.mjs";
23
+ } from "./chunk-FEJE7ZOF.mjs";
24
24
  import {
25
25
  CHANNEL_EVENT_TYPE,
26
26
  memberRenameContent
27
- } from "./chunk-C7PNUX5Y.mjs";
28
- import "./chunk-WE3JID2S.mjs";
27
+ } from "./chunk-YMH6MKJJ.mjs";
28
+ import "./chunk-OSSYXQKY.mjs";
29
29
  import {
30
30
  init_define_KHALA_BUNDLE
31
- } from "./chunk-3IHM2SW7.mjs";
31
+ } from "./chunk-AU75ZQGN.mjs";
32
32
 
33
33
  // src/local/session.ts
34
34
  init_define_KHALA_BUNDLE();
@@ -2,10 +2,10 @@ import { createRequire as __khalaCreateRequire } from 'node:module'; const requi
2
2
  import {
3
3
  adapterFor,
4
4
  resolveSources
5
- } from "./chunk-FQPHAPKV.mjs";
5
+ } from "./chunk-W33R7NQS.mjs";
6
6
  import {
7
7
  init_define_KHALA_BUNDLE
8
- } from "./chunk-3IHM2SW7.mjs";
8
+ } from "./chunk-AU75ZQGN.mjs";
9
9
 
10
10
  // src/mcp/session-id.ts
11
11
  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-W33R7NQS.mjs";
7
+ import "./chunk-G323ZXDL.mjs";
8
+ import "./chunk-YAIJB4FT.mjs";
9
+ import "./chunk-FEJE7ZOF.mjs";
10
+ import "./chunk-4GVGGDP3.mjs";
11
+ import "./chunk-YMH6MKJJ.mjs";
12
+ import "./chunk-OSSYXQKY.mjs";
13
+ import "./chunk-PC7MEL4R.mjs";
14
+ import "./chunk-AU75ZQGN.mjs";
15
+ export {
16
+ ADAPTERS,
17
+ adapterFor,
18
+ createAdapterRegistry
19
+ };
@@ -0,0 +1,20 @@
1
+ import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
2
+ import {
3
+ resolveHarness,
4
+ resolveSession,
5
+ resolveSessionId
6
+ } from "./chunk-K7UICTRQ.mjs";
7
+ import "./chunk-W33R7NQS.mjs";
8
+ import "./chunk-G323ZXDL.mjs";
9
+ import "./chunk-YAIJB4FT.mjs";
10
+ import "./chunk-FEJE7ZOF.mjs";
11
+ import "./chunk-4GVGGDP3.mjs";
12
+ import "./chunk-YMH6MKJJ.mjs";
13
+ import "./chunk-OSSYXQKY.mjs";
14
+ import "./chunk-PC7MEL4R.mjs";
15
+ import "./chunk-AU75ZQGN.mjs";
16
+ export {
17
+ resolveHarness,
18
+ resolveSession,
19
+ resolveSessionId
20
+ };
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
2
2
  import {
3
3
  init_define_KHALA_BUNDLE
4
- } from "./chunk-3IHM2SW7.mjs";
4
+ } from "./chunk-AU75ZQGN.mjs";
5
5
 
6
6
  // src/matrix/decryption-retry.ts
7
7
  init_define_KHALA_BUNDLE();
@@ -2,7 +2,7 @@ import { createRequire as __khalaCreateRequire } from 'node:module'; const requi
2
2
  import {
3
3
  define_KHALA_BUNDLE_default,
4
4
  init_define_KHALA_BUNDLE
5
- } from "./chunk-3IHM2SW7.mjs";
5
+ } from "./chunk-AU75ZQGN.mjs";
6
6
 
7
7
  // src/bundle.ts
8
8
  init_define_KHALA_BUNDLE();
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
2
2
  import {
3
3
  init_define_KHALA_BUNDLE
4
- } from "./chunk-3IHM2SW7.mjs";
4
+ } from "./chunk-AU75ZQGN.mjs";
5
5
 
6
6
  // ../contracts/src/m1/harness.ts
7
7
  init_define_KHALA_BUNDLE();