khala-cli 0.4.18 → 0.4.20

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 (42) hide show
  1. package/dist/{chunk-H2X64ISL.mjs → chunk-3FE4RPWL.mjs} +3 -3
  2. package/dist/{chunk-43THPTMD.mjs → chunk-3QGEQ5O3.mjs} +7 -7
  3. package/dist/{chunk-QYVSNP2P.mjs → chunk-3T4IW4UK.mjs} +1 -1
  4. package/dist/{chunk-RWT4I2XJ.mjs → chunk-5LYU3EBH.mjs} +23 -25
  5. package/dist/{chunk-3RCRNCG3.mjs → chunk-5RVB6IGF.mjs} +140 -5
  6. package/dist/{chunk-RJZ6FAFC.mjs → chunk-67OAHOGN.mjs} +3 -3
  7. package/dist/{chunk-KCWHDC7S.mjs → chunk-7W2T2NMP.mjs} +8 -10
  8. package/dist/{chunk-4WHRO5ZU.mjs → chunk-7XMZMPOS.mjs} +9 -7
  9. package/dist/{chunk-HOKMRMNP.mjs → chunk-7ZXUEYBO.mjs} +2 -2
  10. package/dist/{chunk-SRUPGV2G.mjs → chunk-B6XLPIBP.mjs} +11 -13
  11. package/dist/{chunk-UA6DEWBA.mjs → chunk-BLFHQ3UR.mjs} +1 -1
  12. package/dist/{chunk-VK7ZSKQZ.mjs → chunk-DXN26TW6.mjs} +8 -7
  13. package/dist/{chunk-OZ5C2ZMB.mjs → chunk-EPDG2YED.mjs} +10 -12
  14. package/dist/chunk-ETDBDXF7.mjs +17 -0
  15. package/dist/{chunk-BG4JGKQG.mjs → chunk-G5LBKJ6U.mjs} +2 -2
  16. package/dist/{chunk-XXKDMHR2.mjs → chunk-ISDL5A5F.mjs} +2 -2
  17. package/dist/{chunk-JXV5S7FC.mjs → chunk-JRYM36PH.mjs} +433 -129
  18. package/dist/{chunk-IESMCVXV.mjs → chunk-JVAABYLJ.mjs} +1 -1
  19. package/dist/chunk-M6ALNS6W.mjs +72 -0
  20. package/dist/chunk-MM3IW62G.mjs +18 -0
  21. package/dist/{chunk-YAXWRS5U.mjs → chunk-OFRG3VRT.mjs} +2 -2
  22. package/dist/{chunk-TYRNBET6.mjs → chunk-OTCVNFPR.mjs} +2 -2
  23. package/dist/chunk-PVNW7ZNL.mjs +25 -0
  24. package/dist/{chunk-FDSHLUCQ.mjs → chunk-QRZ6OXXP.mjs} +44 -22
  25. package/dist/{chunk-FCOL5HBH.mjs → chunk-SPKLSGNX.mjs} +10 -12
  26. package/dist/{chunk-6ZL6OFW4.mjs → chunk-SZY4CAHX.mjs} +5 -5
  27. package/dist/{chunk-5IZ3WN3S.mjs → chunk-TFWEBW7T.mjs} +57 -55
  28. package/dist/{chunk-ELI3YCFF.mjs → chunk-TRLHWJAV.mjs} +19 -81
  29. package/dist/{chunk-LOGBYBPA.mjs → chunk-UEGSIZ4N.mjs} +1 -1
  30. package/dist/{chunk-4IOLQB34.mjs → chunk-VTEE4QUB.mjs} +1 -1
  31. package/dist/{chunk-GVIPYERE.mjs → chunk-WM3RISV5.mjs} +3 -3
  32. package/dist/{chunk-WM75XLND.mjs → chunk-XXEYRJSF.mjs} +6 -6
  33. package/dist/{chunk-MTDLNIUY.mjs → chunk-ZYGP76PU.mjs} +1 -1
  34. package/dist/khala.mjs +11 -11
  35. package/dist/web/assets/{local-3eMi9596.js → local-SRORuW7r.js} +2 -2
  36. package/dist/web/index.html +1 -1
  37. package/package.json +1 -1
  38. package/dist/chunk-4FUYRD3G.mjs +0 -27
  39. package/dist/chunk-AU2FBBUY.mjs +0 -20
  40. package/dist/chunk-EBKZETYL.mjs +0 -142
  41. package/dist/chunk-KXLGRISD.mjs +0 -19
  42. package/dist/chunk-LNDZI73C.mjs +0 -323
@@ -1,28 +1,26 @@
1
1
  import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
2
2
  import {
3
3
  retryUnexpired
4
- } from "./chunk-UA6DEWBA.mjs";
4
+ } from "./chunk-BLFHQ3UR.mjs";
5
5
  import {
6
6
  IMAGE_MAX_BYTES,
7
7
  RESTORE_HISTORY_MAX_PAGES
8
- } from "./chunk-TYRNBET6.mjs";
9
- import "./chunk-MTDLNIUY.mjs";
8
+ } from "./chunk-OTCVNFPR.mjs";
9
+ import "./chunk-ZYGP76PU.mjs";
10
10
  import {
11
+ CHANNEL_EVENT_TYPE,
11
12
  LISTENING_MODE_COMMAND_TYPE,
12
13
  LISTENING_MODE_MEMBER_KEY,
13
- memberListeningMode
14
- } from "./chunk-EBKZETYL.mjs";
15
- import {
16
- CHANNEL_EVENT_TYPE,
17
14
  encodeChannelEvent,
15
+ memberListeningMode,
18
16
  memberRenameContent
19
- } from "./chunk-3RCRNCG3.mjs";
17
+ } from "./chunk-5RVB6IGF.mjs";
20
18
  import {
21
19
  StateError
22
- } from "./chunk-4IOLQB34.mjs";
20
+ } from "./chunk-VTEE4QUB.mjs";
23
21
  import {
24
22
  init_define_KHALA_BUNDLE
25
- } from "./chunk-QYVSNP2P.mjs";
23
+ } from "./chunk-3T4IW4UK.mjs";
26
24
 
27
25
  // src/matrix/session.ts
28
26
  init_define_KHALA_BUNDLE();
@@ -61,7 +59,7 @@ async function createAgentMatrixSession(creds, opts) {
61
59
  const started = Date.now();
62
60
  const rejoinTxnId = `khala.rejoin.${randomUUID()}`;
63
61
  const log = (line) => opts?.log?.(line);
64
- const persistent = opts?.cryptoStore ? await (await import("./chunk-H2X64ISL.mjs")).openCryptoStore(opts.cryptoStore.dir, opts.cryptoStore.root, creds) : void 0;
62
+ const persistent = opts?.cryptoStore ? await (await import("./chunk-3FE4RPWL.mjs")).openCryptoStore(opts.cryptoStore.dir, opts.cryptoStore.root, creds) : void 0;
65
63
  const client = createClient({ ...persistent ? { store: persistent.sync } : {}, baseUrl: creds.homeserver, userId: creds.userId, accessToken: creds.accessToken, deviceId: creds.deviceId });
66
64
  const handlers = /* @__PURE__ */ new Set();
67
65
  const ended = /* @__PURE__ */ new Set();
@@ -320,7 +318,7 @@ async function createAgentMatrixSession(creds, opts) {
320
318
  await client.initRustCrypto(persistent ? { useIndexedDB: true, cryptoDatabasePrefix: persistent.prefix } : { useIndexedDB: false });
321
319
  } catch (error) {
322
320
  if (!persistent?.restored || error instanceof StateError && error.code === "unsafe_state_dir") throw error;
323
- throw new (await import("./chunk-H2X64ISL.mjs")).CryptoStoreCorruptError();
321
+ throw new (await import("./chunk-3FE4RPWL.mjs")).CryptoStoreCorruptError();
324
322
  }
325
323
  const crypto = client.getCrypto();
326
324
  if (!crypto) throw new Error("crypto_unavailable");
@@ -0,0 +1,17 @@
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-5LYU3EBH.mjs";
7
+ import "./chunk-7ZXUEYBO.mjs";
8
+ import "./chunk-JRYM36PH.mjs";
9
+ import "./chunk-5RVB6IGF.mjs";
10
+ import "./chunk-VTEE4QUB.mjs";
11
+ import "./chunk-UEGSIZ4N.mjs";
12
+ import "./chunk-3T4IW4UK.mjs";
13
+ export {
14
+ ADAPTERS,
15
+ adapterFor,
16
+ createAdapterRegistry
17
+ };
@@ -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-RWT4I2XJ.mjs";
5
+ } from "./chunk-5LYU3EBH.mjs";
6
6
  import {
7
7
  init_define_KHALA_BUNDLE
8
- } from "./chunk-QYVSNP2P.mjs";
8
+ } from "./chunk-3T4IW4UK.mjs";
9
9
 
10
10
  // src/mcp/session-id.ts
11
11
  init_define_KHALA_BUNDLE();
@@ -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-IESMCVXV.mjs";
4
+ } from "./chunk-JVAABYLJ.mjs";
5
5
  import {
6
6
  init_define_KHALA_BUNDLE
7
- } from "./chunk-QYVSNP2P.mjs";
7
+ } from "./chunk-3T4IW4UK.mjs";
8
8
 
9
9
  // src/version.ts
10
10
  init_define_KHALA_BUNDLE();