khala-cli 0.4.8 → 0.4.10
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 +4 -4
- package/dist/THIRD_PARTY_NOTICES.txt +809 -0
- package/dist/chunk-2AMWQ7RB.mjs +1127 -0
- package/dist/chunk-3E5DH3Y6.mjs +9864 -0
- package/dist/{chunk-IQJQ4RF5.mjs → chunk-4BP7V3OP.mjs} +12 -1
- package/dist/{chunk-FV32AQTC.mjs → chunk-4BZQ4GVW.mjs} +10 -6
- package/dist/chunk-5JSGA6OB.mjs +1483 -0
- package/dist/chunk-6AQVW5W7.mjs +60 -0
- package/dist/{chunk-W6R4UJUQ.mjs → chunk-6J2PUM7L.mjs} +16 -9
- package/dist/chunk-6SUV3EW6.mjs +27 -0
- package/dist/{chunk-RNDUFTBF.mjs → chunk-ARIDZOTI.mjs} +499 -115
- package/dist/chunk-C2WEDMAF.mjs +15 -0
- package/dist/{chunk-Z4JF2M5C.mjs → chunk-CHC4VZF5.mjs} +9 -9
- package/dist/chunk-CKLCR5G4.mjs +1369 -0
- package/dist/chunk-EVT2DWNZ.mjs +58 -0
- package/dist/chunk-FJVVSKZ3.mjs +22 -0
- package/dist/{chunk-APMWDF6B.mjs → chunk-G3NMB4PY.mjs} +4 -2
- package/dist/chunk-HHEZVPRR.mjs +7 -0
- package/dist/{chunk-54XFVSEC.mjs → chunk-JKOJQTFT.mjs} +103 -5
- package/dist/{chunk-ZJ4W7P33.mjs → chunk-NDMFD5IM.mjs} +15 -10
- package/dist/{chunk-VKQ3KUYO.mjs → chunk-OEV5DFLW.mjs} +77 -7
- package/dist/chunk-OIZ4R5H7.mjs +173 -0
- package/dist/{chunk-CJTCU755.mjs → chunk-PJKI7SRI.mjs} +256 -26
- package/dist/chunk-PN25BUQ4.mjs +599 -0
- package/dist/chunk-QDPJ4VT2.mjs +432 -0
- package/dist/{chunk-2DHIAFEV.mjs → chunk-SRZTHCXP.mjs} +24 -10
- package/dist/chunk-TSK3HJEG.mjs +20 -0
- package/dist/chunk-UX34IVN5.mjs +33 -0
- package/dist/{chunk-BKLW2SPG.mjs → chunk-VAC3JTAV.mjs} +34 -17
- package/dist/{chunk-VAI7IUI4.mjs → chunk-VDZK4LW3.mjs} +30 -12
- package/dist/chunk-W6HM6F2U.mjs +901 -0
- package/dist/{chunk-H3K4GA2P.mjs → chunk-WPNMWNCL.mjs} +33 -21
- package/dist/chunk-WUDXHF2Q.mjs +14 -0
- package/dist/chunk-WZJ6DQJV.mjs +19 -0
- package/dist/{chunk-5LIE5GUU.mjs → chunk-XR625T3I.mjs} +5 -1
- package/dist/chunk-ZSKLNZWZ.mjs +224 -0
- package/dist/iterm2_send.py +56 -0
- package/dist/khala.mjs +20 -13
- package/dist/web/assets/local-CSPuGnH2.css +1 -0
- package/dist/web/assets/local-Dtyxaacx.js +9 -0
- package/dist/web/index.html +2 -2
- package/package.json +5 -3
- package/dist/chunk-2VCAW4GH.mjs +0 -34
- package/dist/chunk-5BQTYU66.mjs +0 -886
- package/dist/chunk-5GLTKWJ5.mjs +0 -1
- package/dist/chunk-5PUQT3YS.mjs +0 -569
- package/dist/chunk-7HBRFY3Z.mjs +0 -8
- package/dist/chunk-CBPLCCRZ.mjs +0 -191
- package/dist/chunk-FH34B3I3.mjs +0 -235
- package/dist/chunk-NKX3SLS7.mjs +0 -227
- package/dist/chunk-VUSV2ADL.mjs +0 -267
- package/dist/web/assets/local-BQl2KrE1.js +0 -9
- package/dist/web/assets/local-OwDq47O4.css +0 -1
|
@@ -5,9 +5,19 @@ import {
|
|
|
5
5
|
object,
|
|
6
6
|
readMatrixUserId,
|
|
7
7
|
version
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PN25BUQ4.mjs";
|
|
9
|
+
import {
|
|
10
|
+
init_define_KHALA_BUNDLE
|
|
11
|
+
} from "./chunk-EVT2DWNZ.mjs";
|
|
12
|
+
|
|
13
|
+
// ../contracts/src/m1/listening-mode.ts
|
|
14
|
+
init_define_KHALA_BUNDLE();
|
|
15
|
+
|
|
16
|
+
// ../contracts/src/delivery/listening-mode.ts
|
|
17
|
+
init_define_KHALA_BUNDLE();
|
|
9
18
|
|
|
10
19
|
// ../contracts/src/delivery/decode.ts
|
|
20
|
+
init_define_KHALA_BUNDLE();
|
|
11
21
|
var MAX_IDENTIFIER_BYTES = 512;
|
|
12
22
|
var DecodeFailure = class extends Error {
|
|
13
23
|
code;
|
|
@@ -67,6 +77,7 @@ function literal2(input, field, allowed) {
|
|
|
67
77
|
}
|
|
68
78
|
|
|
69
79
|
// ../contracts/src/delivery/ids.ts
|
|
80
|
+
init_define_KHALA_BUNDLE();
|
|
70
81
|
function readId(input, field) {
|
|
71
82
|
return identifier(input, field);
|
|
72
83
|
}
|
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
listChannels
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OEV5DFLW.mjs";
|
|
5
5
|
import {
|
|
6
6
|
TERMINAL_SESSION_DETAILS,
|
|
7
|
+
cachedProcessReader,
|
|
7
8
|
readStateFile,
|
|
8
|
-
readStatus
|
|
9
|
-
} from "./chunk-CBPLCCRZ.mjs";
|
|
10
|
-
import {
|
|
9
|
+
readStatus,
|
|
11
10
|
validAgentRejoinSecret
|
|
12
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-PN25BUQ4.mjs";
|
|
12
|
+
import {
|
|
13
|
+
init_define_KHALA_BUNDLE
|
|
14
|
+
} from "./chunk-EVT2DWNZ.mjs";
|
|
13
15
|
|
|
14
16
|
// src/session-start-wake.ts
|
|
17
|
+
init_define_KHALA_BUNDLE();
|
|
15
18
|
import { createHash } from "node:crypto";
|
|
16
19
|
import path from "node:path";
|
|
17
20
|
async function sessionStartWakeChannels(files, env) {
|
|
21
|
+
const read = cachedProcessReader();
|
|
18
22
|
const channels = await listChannels(files);
|
|
19
23
|
const secret = (await readStateFile(files.dir, "rejoin.json"))?.secret;
|
|
20
24
|
const hash = validAgentRejoinSecret(secret) ? createHash("sha256").update(secret).digest("hex") : void 0;
|
|
21
25
|
const candidates = channels.length ? channels : [{ files, roomId: void 0 }];
|
|
22
26
|
const result = [];
|
|
23
27
|
for (const channel of candidates) {
|
|
24
|
-
const status = await readStatus(channel.files);
|
|
28
|
+
const status = await readStatus(channel.files, read);
|
|
25
29
|
if (TERMINAL_SESSION_DETAILS.some((detail) => detail === status?.detail)) continue;
|
|
26
30
|
if (status?.state === "connected" || status?.state === "send_failed") {
|
|
27
31
|
result.push({ files: channel.files, connected: true });
|