khala-cli 0.4.20 → 0.4.21

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 (37) hide show
  1. package/dist/{chunk-ISDL5A5F.mjs → chunk-5XRUETVG.mjs} +2 -2
  2. package/dist/{chunk-JVAABYLJ.mjs → chunk-64JYDP5T.mjs} +1 -1
  3. package/dist/{chunk-ETDBDXF7.mjs → chunk-7JAJG5TN.mjs} +7 -7
  4. package/dist/{chunk-3FE4RPWL.mjs → chunk-7WWBE3AQ.mjs} +3 -3
  5. package/dist/{chunk-UEGSIZ4N.mjs → chunk-7X66PVD5.mjs} +1 -1
  6. package/dist/{chunk-7W2T2NMP.mjs → chunk-7XFH5ERD.mjs} +7 -7
  7. package/dist/{chunk-PVNW7ZNL.mjs → chunk-AK6THYO7.mjs} +9 -9
  8. package/dist/{chunk-B6XLPIBP.mjs → chunk-B43LWXTB.mjs} +8 -8
  9. package/dist/{chunk-QRZ6OXXP.mjs → chunk-BM2NUSJL.mjs} +9 -9
  10. package/dist/{chunk-M6ALNS6W.mjs → chunk-BTLK6G2Y.mjs} +1 -1
  11. package/dist/{chunk-3QGEQ5O3.mjs → chunk-CJ4MWHDV.mjs} +5 -5
  12. package/dist/{chunk-5LYU3EBH.mjs → chunk-HDEWZQQK.mjs} +16 -16
  13. package/dist/{chunk-VTEE4QUB.mjs → chunk-HTFT2NNO.mjs} +1 -1
  14. package/dist/{chunk-WM3RISV5.mjs → chunk-IOPS26AL.mjs} +3 -3
  15. package/dist/{chunk-SZY4CAHX.mjs → chunk-J6VGUQVS.mjs} +5 -5
  16. package/dist/{chunk-G5LBKJ6U.mjs → chunk-KO6ELBEH.mjs} +2 -2
  17. package/dist/{chunk-DXN26TW6.mjs → chunk-MKVKBQPG.mjs} +6 -6
  18. package/dist/{chunk-7ZXUEYBO.mjs → chunk-O2NDTB6V.mjs} +2 -2
  19. package/dist/{chunk-XXEYRJSF.mjs → chunk-OIKH7GE2.mjs} +6 -6
  20. package/dist/{chunk-MM3IW62G.mjs → chunk-Q77ZLEJK.mjs} +8 -8
  21. package/dist/{chunk-TRLHWJAV.mjs → chunk-QPBTWI3Z.mjs} +9 -9
  22. package/dist/{chunk-3T4IW4UK.mjs → chunk-QSIRZV7T.mjs} +1 -1
  23. package/dist/{chunk-5RVB6IGF.mjs → chunk-SINQUTDK.mjs} +2 -2
  24. package/dist/{chunk-7XMZMPOS.mjs → chunk-THKFNFXH.mjs} +7 -7
  25. package/dist/{chunk-EPDG2YED.mjs → chunk-TIUK4M34.mjs} +8 -8
  26. package/dist/{chunk-OTCVNFPR.mjs → chunk-VAJ3RNE5.mjs} +2 -2
  27. package/dist/{chunk-OFRG3VRT.mjs → chunk-VXEAWRGL.mjs} +2 -2
  28. package/dist/{chunk-BLFHQ3UR.mjs → chunk-WFRXUERK.mjs} +1 -1
  29. package/dist/{chunk-JRYM36PH.mjs → chunk-WSXDLNEM.mjs} +6 -6
  30. package/dist/{chunk-SPKLSGNX.mjs → chunk-XHA3GHIV.mjs} +10 -10
  31. package/dist/{chunk-67OAHOGN.mjs → chunk-XLT6PBYY.mjs} +3 -3
  32. package/dist/{chunk-TFWEBW7T.mjs → chunk-XT3LBUHB.mjs} +24 -24
  33. package/dist/{chunk-ZYGP76PU.mjs → chunk-ZWZT7XLE.mjs} +1 -1
  34. package/dist/khala.mjs +11 -11
  35. package/dist/web/assets/{local-SRORuW7r.js → local-B7VyGpEx.js} +7 -7
  36. package/dist/web/index.html +1 -1
  37. package/package.json +1 -1
@@ -1,25 +1,25 @@
1
1
  import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
2
2
  import {
3
3
  sessionStartWakeChannels
4
- } from "./chunk-67OAHOGN.mjs";
4
+ } from "./chunk-XLT6PBYY.mjs";
5
5
  import {
6
6
  capturePane
7
- } from "./chunk-7ZXUEYBO.mjs";
7
+ } from "./chunk-O2NDTB6V.mjs";
8
8
  import {
9
9
  claudeWatchCommand,
10
10
  listChannels,
11
11
  writeActivity
12
- } from "./chunk-JRYM36PH.mjs";
13
- import "./chunk-5RVB6IGF.mjs";
12
+ } from "./chunk-WSXDLNEM.mjs";
13
+ import "./chunk-SINQUTDK.mjs";
14
14
  import {
15
15
  TERMINAL_SESSION_DETAILS,
16
16
  openSessionDir,
17
17
  readJson
18
- } from "./chunk-VTEE4QUB.mjs";
19
- import "./chunk-UEGSIZ4N.mjs";
18
+ } from "./chunk-HTFT2NNO.mjs";
19
+ import "./chunk-7X66PVD5.mjs";
20
20
  import {
21
21
  init_define_KHALA_BUNDLE
22
- } from "./chunk-3T4IW4UK.mjs";
22
+ } from "./chunk-QSIRZV7T.mjs";
23
23
 
24
24
  // hooks/session-start.ts
25
25
  init_define_KHALA_BUNDLE();
@@ -1,12 +1,12 @@
1
1
  import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
2
2
  import {
3
3
  retryUnexpired
4
- } from "./chunk-BLFHQ3UR.mjs";
4
+ } from "./chunk-WFRXUERK.mjs";
5
5
  import {
6
6
  IMAGE_MAX_BYTES,
7
7
  RESTORE_HISTORY_MAX_PAGES
8
- } from "./chunk-OTCVNFPR.mjs";
9
- import "./chunk-ZYGP76PU.mjs";
8
+ } from "./chunk-VAJ3RNE5.mjs";
9
+ import "./chunk-ZWZT7XLE.mjs";
10
10
  import {
11
11
  CHANNEL_EVENT_TYPE,
12
12
  LISTENING_MODE_COMMAND_TYPE,
@@ -14,13 +14,13 @@ import {
14
14
  encodeChannelEvent,
15
15
  memberListeningMode,
16
16
  memberRenameContent
17
- } from "./chunk-5RVB6IGF.mjs";
17
+ } from "./chunk-SINQUTDK.mjs";
18
18
  import {
19
19
  StateError
20
- } from "./chunk-VTEE4QUB.mjs";
20
+ } from "./chunk-HTFT2NNO.mjs";
21
21
  import {
22
22
  init_define_KHALA_BUNDLE
23
- } from "./chunk-3T4IW4UK.mjs";
23
+ } from "./chunk-QSIRZV7T.mjs";
24
24
 
25
25
  // src/matrix/session.ts
26
26
  init_define_KHALA_BUNDLE();
@@ -59,7 +59,7 @@ async function createAgentMatrixSession(creds, opts) {
59
59
  const started = Date.now();
60
60
  const rejoinTxnId = `khala.rejoin.${randomUUID()}`;
61
61
  const log = (line) => opts?.log?.(line);
62
- const persistent = opts?.cryptoStore ? await (await import("./chunk-3FE4RPWL.mjs")).openCryptoStore(opts.cryptoStore.dir, opts.cryptoStore.root, creds) : void 0;
62
+ const persistent = opts?.cryptoStore ? await (await import("./chunk-7WWBE3AQ.mjs")).openCryptoStore(opts.cryptoStore.dir, opts.cryptoStore.root, creds) : void 0;
63
63
  const client = createClient({ ...persistent ? { store: persistent.sync } : {}, baseUrl: creds.homeserver, userId: creds.userId, accessToken: creds.accessToken, deviceId: creds.deviceId });
64
64
  const handlers = /* @__PURE__ */ new Set();
65
65
  const ended = /* @__PURE__ */ new Set();
@@ -318,7 +318,7 @@ async function createAgentMatrixSession(creds, opts) {
318
318
  await client.initRustCrypto(persistent ? { useIndexedDB: true, cryptoDatabasePrefix: persistent.prefix } : { useIndexedDB: false });
319
319
  } catch (error) {
320
320
  if (!persistent?.restored || error instanceof StateError && error.code === "unsafe_state_dir") throw error;
321
- throw new (await import("./chunk-3FE4RPWL.mjs")).CryptoStoreCorruptError();
321
+ throw new (await import("./chunk-7WWBE3AQ.mjs")).CryptoStoreCorruptError();
322
322
  }
323
323
  const crypto = client.getCrypto();
324
324
  if (!crypto) throw new Error("crypto_unavailable");
@@ -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-3T4IW4UK.mjs";
4
+ } from "./chunk-QSIRZV7T.mjs";
5
5
 
6
6
  // ../contracts/src/m1/image.ts
7
7
  init_define_KHALA_BUNDLE();
@@ -190,7 +190,7 @@ function imageLabel(image) {
190
190
  // src/transport.ts
191
191
  init_define_KHALA_BUNDLE();
192
192
  var RESTORE_HISTORY_MAX_PAGES = 20;
193
- var startChannelSession = async (creds, options) => creds.transport === "local" ? (await import("./chunk-7W2T2NMP.mjs")).createLocalSession(creds) : (await import("./chunk-EPDG2YED.mjs")).createAgentMatrixSession(creds, options);
193
+ var startChannelSession = async (creds, options) => creds.transport === "local" ? (await import("./chunk-7XFH5ERD.mjs")).createLocalSession(creds) : (await import("./chunk-TIUK4M34.mjs")).createAgentMatrixSession(creds, options);
194
194
 
195
195
  export {
196
196
  IMAGE_MAX_BYTES,
@@ -8,8 +8,8 @@ import {
8
8
  resetWakeDriver,
9
9
  settleAttempts,
10
10
  takeWakeDisableNotices
11
- } from "./chunk-UEGSIZ4N.mjs";
12
- import "./chunk-3T4IW4UK.mjs";
11
+ } from "./chunk-7X66PVD5.mjs";
12
+ import "./chunk-QSIRZV7T.mjs";
13
13
  export {
14
14
  cancelAttempt,
15
15
  confirmWakeText,
@@ -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-3T4IW4UK.mjs";
4
+ } from "./chunk-QSIRZV7T.mjs";
5
5
 
6
6
  // src/matrix/decryption-retry.ts
7
7
  init_define_KHALA_BUNDLE();
@@ -5,7 +5,7 @@ import {
5
5
  decodeListeningMode,
6
6
  formatChannelEventLine,
7
7
  wakesOn
8
- } from "./chunk-5RVB6IGF.mjs";
8
+ } from "./chunk-SINQUTDK.mjs";
9
9
  import {
10
10
  SESSION_ID_PATTERN,
11
11
  StateError,
@@ -21,7 +21,7 @@ import {
21
21
  stateRoot,
22
22
  writeJsonAtomic,
23
23
  writeStateFile
24
- } from "./chunk-VTEE4QUB.mjs";
24
+ } from "./chunk-HTFT2NNO.mjs";
25
25
  import {
26
26
  cancelAttempt,
27
27
  confirmWakeText,
@@ -30,10 +30,10 @@ import {
30
30
  settleAttempts,
31
31
  wakeLine,
32
32
  withWakeLock
33
- } from "./chunk-UEGSIZ4N.mjs";
33
+ } from "./chunk-7X66PVD5.mjs";
34
34
  import {
35
35
  init_define_KHALA_BUNDLE
36
- } from "./chunk-3T4IW4UK.mjs";
36
+ } from "./chunk-QSIRZV7T.mjs";
37
37
 
38
38
  // src/watch.ts
39
39
  init_define_KHALA_BUNDLE();
@@ -1377,8 +1377,8 @@ ${WATCH_USAGE}`);
1377
1377
  return 1;
1378
1378
  };
1379
1379
  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");
1380
- const { resolveHarness, resolveSessionId } = await import("./chunk-MM3IW62G.mjs");
1381
- const { adapterFor } = await import("./chunk-ETDBDXF7.mjs");
1380
+ const { resolveHarness, resolveSessionId } = await import("./chunk-Q77ZLEJK.mjs");
1381
+ const { adapterFor } = await import("./chunk-7JAJG5TN.mjs");
1382
1382
  const harness = resolveHarness(argv, process.env);
1383
1383
  if (harness === "invalid" || !adapterFor(harness)?.codec) return invalid("invalid_harness");
1384
1384
  const index = argv.indexOf("--session");
@@ -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-JVAABYLJ.mjs";
4
+ } from "./chunk-64JYDP5T.mjs";
5
5
  import {
6
6
  consentLine,
7
7
  setWake
8
- } from "./chunk-XXEYRJSF.mjs";
8
+ } from "./chunk-OIKH7GE2.mjs";
9
9
  import {
10
10
  antigravityRegisterHint,
11
11
  wakeDrivers
12
- } from "./chunk-DXN26TW6.mjs";
12
+ } from "./chunk-MKVKBQPG.mjs";
13
13
  import {
14
14
  adapterFor
15
- } from "./chunk-5LYU3EBH.mjs";
16
- import "./chunk-7ZXUEYBO.mjs";
15
+ } from "./chunk-HDEWZQQK.mjs";
16
+ import "./chunk-O2NDTB6V.mjs";
17
17
  import {
18
18
  ManagedFiles,
19
19
  cursorPaths,
@@ -29,17 +29,17 @@ import {
29
29
  qwenHome,
30
30
  readManaged,
31
31
  textFormat
32
- } from "./chunk-JRYM36PH.mjs";
33
- import "./chunk-5RVB6IGF.mjs";
32
+ } from "./chunk-WSXDLNEM.mjs";
33
+ import "./chunk-SINQUTDK.mjs";
34
34
  import {
35
35
  ensureStateDir,
36
36
  isHarnessId,
37
37
  stateRoot
38
- } from "./chunk-VTEE4QUB.mjs";
39
- import "./chunk-UEGSIZ4N.mjs";
38
+ } from "./chunk-HTFT2NNO.mjs";
39
+ import "./chunk-7X66PVD5.mjs";
40
40
  import {
41
41
  init_define_KHALA_BUNDLE
42
- } from "./chunk-3T4IW4UK.mjs";
42
+ } from "./chunk-QSIRZV7T.mjs";
43
43
 
44
44
  // src/install/main.ts
45
45
  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-JRYM36PH.mjs";
4
+ } from "./chunk-WSXDLNEM.mjs";
5
5
  import {
6
6
  TERMINAL_SESSION_DETAILS,
7
7
  cachedProcessReader,
8
8
  readStateFile,
9
9
  readStatus,
10
10
  validAgentRejoinSecret
11
- } from "./chunk-VTEE4QUB.mjs";
11
+ } from "./chunk-HTFT2NNO.mjs";
12
12
  import {
13
13
  init_define_KHALA_BUNDLE
14
- } from "./chunk-3T4IW4UK.mjs";
14
+ } from "./chunk-QSIRZV7T.mjs";
15
15
 
16
16
  // src/session-start-wake.ts
17
17
  init_define_KHALA_BUNDLE();
@@ -11,41 +11,41 @@ import {
11
11
  sniffImage,
12
12
  startChannelSession,
13
13
  stripImageMetadata
14
- } from "./chunk-OTCVNFPR.mjs";
14
+ } from "./chunk-VAJ3RNE5.mjs";
15
15
  import {
16
16
  hostedUsernameFromAgentName,
17
17
  pollJoin,
18
18
  reportReady,
19
19
  requestJoin,
20
20
  saveHostedUsername
21
- } from "./chunk-WM3RISV5.mjs";
21
+ } from "./chunk-IOPS26AL.mjs";
22
22
  import {
23
23
  KhalaClientError,
24
24
  LOCAL_OWNER_USER_ID,
25
25
  agentNameFromTitle
26
- } from "./chunk-SZY4CAHX.mjs";
27
- import "./chunk-ZYGP76PU.mjs";
26
+ } from "./chunk-J6VGUQVS.mjs";
27
+ import "./chunk-ZWZT7XLE.mjs";
28
28
  import {
29
29
  KHALA_AGENT_VERSION
30
- } from "./chunk-ISDL5A5F.mjs";
31
- import "./chunk-JVAABYLJ.mjs";
30
+ } from "./chunk-5XRUETVG.mjs";
31
+ import "./chunk-64JYDP5T.mjs";
32
32
  import {
33
33
  antigravityRegisterHint,
34
34
  selectedWakeStatus,
35
35
  wakeDisableNotice,
36
36
  wakeStatus,
37
37
  wakeStatusText
38
- } from "./chunk-DXN26TW6.mjs";
38
+ } from "./chunk-MKVKBQPG.mjs";
39
39
  import {
40
40
  resolveHarness,
41
41
  resolveSession
42
- } from "./chunk-G5LBKJ6U.mjs";
42
+ } from "./chunk-KO6ELBEH.mjs";
43
43
  import {
44
44
  SESSION_UNKNOWN_HINT,
45
45
  adapterFor,
46
46
  createWakeLadder
47
- } from "./chunk-5LYU3EBH.mjs";
48
- import "./chunk-7ZXUEYBO.mjs";
47
+ } from "./chunk-HDEWZQQK.mjs";
48
+ import "./chunk-O2NDTB6V.mjs";
49
49
  import {
50
50
  ATTENTION,
51
51
  advanceCursor,
@@ -77,7 +77,7 @@ import {
77
77
  unreadCount,
78
78
  usageLimited,
79
79
  wakesAgent
80
- } from "./chunk-JRYM36PH.mjs";
80
+ } from "./chunk-WSXDLNEM.mjs";
81
81
  import {
82
82
  CHANNEL_EVENT_TYPE,
83
83
  LISTENING_MODES,
@@ -87,7 +87,7 @@ import {
87
87
  formatChannelEventLine,
88
88
  memberRenameContent,
89
89
  statusFor
90
- } from "./chunk-5RVB6IGF.mjs";
90
+ } from "./chunk-SINQUTDK.mjs";
91
91
  import {
92
92
  SESSION_ID_PATTERN,
93
93
  StateError,
@@ -112,11 +112,11 @@ import {
112
112
  validAgentRejoinSecret,
113
113
  writeJoinFile,
114
114
  writeStateFile
115
- } from "./chunk-VTEE4QUB.mjs";
116
- import "./chunk-UEGSIZ4N.mjs";
115
+ } from "./chunk-HTFT2NNO.mjs";
116
+ import "./chunk-7X66PVD5.mjs";
117
117
  import {
118
118
  init_define_KHALA_BUNDLE
119
- } from "./chunk-3T4IW4UK.mjs";
119
+ } from "./chunk-QSIRZV7T.mjs";
120
120
 
121
121
  // src/mcp/main.ts
122
122
  init_define_KHALA_BUNDLE();
@@ -1172,7 +1172,7 @@ function createKhalaAgentClient(options) {
1172
1172
  await removeStateFile(attempt.files.dir, "session.json");
1173
1173
  if (discardResume) await removeStateFile(attempt.files.dir, "resume.json");
1174
1174
  if (discardResume && attempt.credentials?.transport !== "local" && !attempt.restore?.localCredentials) {
1175
- await (await import("./chunk-3FE4RPWL.mjs")).wipeCryptoStore(attempt.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1175
+ await (await import("./chunk-7WWBE3AQ.mjs")).wipeCryptoStore(attempt.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1176
1176
  }
1177
1177
  }
1178
1178
  }
@@ -1279,11 +1279,11 @@ function createKhalaAgentClient(options) {
1279
1279
  let credentials = issuedCredentials;
1280
1280
  if (attempt.restore && credentials.roomId !== attempt.restore.roomId) {
1281
1281
  await removeStateFile(attempt.files.dir, "resume.json");
1282
- await (await import("./chunk-3FE4RPWL.mjs")).wipeCryptoStore(attempt.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1282
+ await (await import("./chunk-7WWBE3AQ.mjs")).wipeCryptoStore(attempt.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1283
1283
  throw new KhalaClientError("not_connected", "unauthorized");
1284
1284
  }
1285
1285
  if (attempt.restore && !attempt.restore.localCredentials) {
1286
- const cryptoStore = await import("./chunk-3FE4RPWL.mjs");
1286
+ const cryptoStore = await import("./chunk-7WWBE3AQ.mjs");
1287
1287
  try {
1288
1288
  credentials = await cryptoStore.restoredCredentials(attempt.files.dir, credentials);
1289
1289
  } catch (error) {
@@ -1349,7 +1349,7 @@ function createKhalaAgentClient(options) {
1349
1349
  try {
1350
1350
  session = await wait(start());
1351
1351
  } catch (error) {
1352
- const cryptoStore = await import("./chunk-3FE4RPWL.mjs");
1352
+ const cryptoStore = await import("./chunk-7WWBE3AQ.mjs");
1353
1353
  if (!(error instanceof cryptoStore.CryptoStoreCorruptError) || credentials.accessToken === issuedCredentials.accessToken) throw error;
1354
1354
  await cryptoStore.wipeCryptoStore(channelDir, stateRoot(options.env), options.fetch ?? fetch);
1355
1355
  credentials = issuedCredentials;
@@ -1575,9 +1575,9 @@ function createKhalaAgentClient(options) {
1575
1575
  }
1576
1576
  try {
1577
1577
  if (restore && !restore.localCredentials) {
1578
- const state = await (await import("./chunk-3FE4RPWL.mjs")).validateCryptoToken(attempt.files.dir, options.fetch ?? fetch);
1578
+ const state = await (await import("./chunk-7WWBE3AQ.mjs")).validateCryptoToken(attempt.files.dir, options.fetch ?? fetch);
1579
1579
  if (state === "corrupt") {
1580
- await (await import("./chunk-3FE4RPWL.mjs")).wipeCryptoStore(attempt.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1580
+ await (await import("./chunk-7WWBE3AQ.mjs")).wipeCryptoStore(attempt.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1581
1581
  attempt.cryptoReset = true;
1582
1582
  }
1583
1583
  if (state === "revoked") throw new KhalaClientError("not_connected", "unauthorized");
@@ -1608,7 +1608,7 @@ function createKhalaAgentClient(options) {
1608
1608
  } catch (error) {
1609
1609
  if (restore && terminal.includes(safeError(error).message)) {
1610
1610
  await removeStateFile(attempt.files.dir, "resume.json");
1611
- if (!restore.localCredentials) await (await import("./chunk-3FE4RPWL.mjs")).wipeCryptoStore(attempt.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1611
+ if (!restore.localCredentials) await (await import("./chunk-7WWBE3AQ.mjs")).wipeCryptoStore(attempt.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1612
1612
  }
1613
1613
  if (restore && !closed && !attempt.controller.signal.aborted) await setStatus(attempt, "disconnected", safeError(error).message);
1614
1614
  attempts.delete(link);
@@ -1703,12 +1703,12 @@ function createKhalaAgentClient(options) {
1703
1703
  const previous = priorStatuses.get(ref.key);
1704
1704
  if (terminal.includes(previous?.detail ?? "")) {
1705
1705
  await removeStateFile(ref.files.dir, "resume.json");
1706
- await (await import("./chunk-3FE4RPWL.mjs")).wipeCryptoStore(ref.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1706
+ await (await import("./chunk-7WWBE3AQ.mjs")).wipeCryptoStore(ref.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1707
1707
  return;
1708
1708
  }
1709
1709
  if (!savedSecret || authorization.secretHash !== secretHash() || authorization.roomId !== ref.roomId || authorization.localCredentials && (authorization.localCredentials.transport !== "local" || authorization.localCredentials.roomId !== ref.roomId) || typeof authorization.link !== "string" || typeof authorization.label !== "string") {
1710
1710
  await removeStateFile(ref.files.dir, "resume.json");
1711
- await (await import("./chunk-3FE4RPWL.mjs")).wipeCryptoStore(ref.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1711
+ await (await import("./chunk-7WWBE3AQ.mjs")).wipeCryptoStore(ref.files.dir, stateRoot(options.env), options.fetch ?? fetch);
1712
1712
  return;
1713
1713
  }
1714
1714
  if (authorization.workspace !== workspace) return;
@@ -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-3T4IW4UK.mjs";
4
+ } from "./chunk-QSIRZV7T.mjs";
5
5
 
6
6
  // src/events/member-rename.ts
7
7
  init_define_KHALA_BUNDLE();
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-ISDL5A5F.mjs";
6
- import "./chunk-JVAABYLJ.mjs";
5
+ } from "./chunk-5XRUETVG.mjs";
6
+ import "./chunk-64JYDP5T.mjs";
7
7
  import {
8
8
  init_define_KHALA_BUNDLE
9
- } from "./chunk-3T4IW4UK.mjs";
9
+ } from "./chunk-QSIRZV7T.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-7XMZMPOS.mjs"),
88
- deliver: () => import("./chunk-TRLHWJAV.mjs"),
89
- "claude-wake": () => import("./chunk-QRZ6OXXP.mjs")
87
+ "session-start": () => import("./chunk-THKFNFXH.mjs"),
88
+ deliver: () => import("./chunk-QPBTWI3Z.mjs"),
89
+ "claude-wake": () => import("./chunk-BM2NUSJL.mjs")
90
90
  };
91
91
  process.exitCode = await runCli(process.argv.slice(2), {
92
- mcp: () => () => import("./chunk-TFWEBW7T.mjs"),
93
- watch: () => () => import("./chunk-3QGEQ5O3.mjs"),
94
- local: () => () => import("./chunk-B6XLPIBP.mjs"),
95
- install: () => () => import("./chunk-SPKLSGNX.mjs"),
96
- wake: () => () => import("./chunk-PVNW7ZNL.mjs"),
92
+ mcp: () => () => import("./chunk-XT3LBUHB.mjs"),
93
+ watch: () => () => import("./chunk-CJ4MWHDV.mjs"),
94
+ local: () => () => import("./chunk-B43LWXTB.mjs"),
95
+ install: () => () => import("./chunk-XHA3GHIV.mjs"),
96
+ wake: () => () => import("./chunk-AK6THYO7.mjs"),
97
97
  hook: (name) => Object.hasOwn(hooks, name) ? hooks[name] : void 0
98
98
  });