khala-cli 0.4.13 → 0.4.14

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-QPYXV4BQ.mjs → chunk-2ZT7TFV5.mjs} +10 -10
  2. package/dist/{chunk-SDBMJPIA.mjs → chunk-4THILKJ5.mjs} +6 -6
  3. package/dist/{chunk-O4QJ3ZT6.mjs → chunk-4YHVAWZF.mjs} +3 -3
  4. package/dist/chunk-6CDTY2EG.mjs +20 -0
  5. package/dist/{chunk-QZUBLJW7.mjs → chunk-BSB77FJG.mjs} +2 -2
  6. package/dist/{chunk-ZWWTVM6R.mjs → chunk-FOCBFFH5.mjs} +2 -2
  7. package/dist/{chunk-SUUEWCY5.mjs → chunk-G2TAYBYB.mjs} +1 -1
  8. package/dist/{chunk-3JA3Q5MK.mjs → chunk-H3XIRV2S.mjs} +1 -1
  9. package/dist/{chunk-JZZNVQKH.mjs → chunk-HPZY6LHL.mjs} +2 -2
  10. package/dist/{chunk-6P4PKPJW.mjs → chunk-KZO6BSPQ.mjs} +5 -5
  11. package/dist/{chunk-NHW62KEB.mjs → chunk-N7B2VPDU.mjs} +1 -1
  12. package/dist/{chunk-2AIADANH.mjs → chunk-O2NDYSYF.mjs} +6 -6
  13. package/dist/{chunk-JLENHMKE.mjs → chunk-OPBOWFBB.mjs} +33 -32
  14. package/dist/{chunk-SUT7AKNZ.mjs → chunk-P2S3OAZ5.mjs} +6 -6
  15. package/dist/{chunk-XI5FPUNN.mjs → chunk-PFWYYXR5.mjs} +2 -2
  16. package/dist/{chunk-SKJ6YV3G.mjs → chunk-PISWOM3Q.mjs} +14 -13
  17. package/dist/{chunk-P3XZEYZF.mjs → chunk-PIYD4WCN.mjs} +1 -1
  18. package/dist/{chunk-KMDLTHDW.mjs → chunk-PYVAMHAG.mjs} +2 -2
  19. package/dist/{chunk-BWVC3EKG.mjs → chunk-QEIYPWN4.mjs} +13 -13
  20. package/dist/{chunk-3GUVMXTM.mjs → chunk-QH5WZEIG.mjs} +23 -17
  21. package/dist/{chunk-OIYAR2ND.mjs → chunk-RHAAMCRD.mjs} +7 -7
  22. package/dist/{chunk-72W7IC2O.mjs → chunk-RXM47OGD.mjs} +26 -5
  23. package/dist/{chunk-RUQDE5DI.mjs → chunk-T3BRQFVF.mjs} +1 -1
  24. package/dist/chunk-TMOAMJMV.mjs +19 -0
  25. package/dist/{chunk-BJVJ5WJS.mjs → chunk-TVWBZD24.mjs} +32 -29
  26. package/dist/{chunk-32SGUUP5.mjs → chunk-U2OUPWUW.mjs} +2 -2
  27. package/dist/{chunk-6DE4V756.mjs → chunk-UBDI4XFO.mjs} +32 -12
  28. package/dist/chunk-UQJHB4AH.mjs +27 -0
  29. package/dist/{chunk-XR3JSUPF.mjs → chunk-VQDIOGV7.mjs} +24 -14
  30. package/dist/chunk-VXHWS7JD.mjs +47 -0
  31. package/dist/{chunk-XRV5GUSI.mjs → chunk-W3LLNKEB.mjs} +3 -3
  32. package/dist/{chunk-ICTAFDO6.mjs → chunk-WMZ7YE6H.mjs} +3 -3
  33. package/dist/{chunk-ONAZVGVO.mjs → chunk-YXMJJAMH.mjs} +9 -9
  34. package/dist/{chunk-MRSZOWFU.mjs → chunk-ZWDINIQJ.mjs} +1 -1
  35. package/dist/khala.mjs +11 -11
  36. package/dist/web/assets/{local-mElTRGcH.js → local-EzltpNwn.js} +4 -4
  37. package/dist/web/index.html +1 -1
  38. package/package.json +1 -1
  39. package/dist/chunk-2BNIPJVW.mjs +0 -27
  40. package/dist/chunk-I4POSYHZ.mjs +0 -132
  41. package/dist/chunk-TVQ5NHFX.mjs +0 -20
  42. package/dist/chunk-WZD4JAG6.mjs +0 -19
@@ -10,7 +10,7 @@
10
10
  <link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32-B9Ubw1Dx.png" />
11
11
  <link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16-D5waNSZD.png" />
12
12
  <link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon-Du9V6qit.png" />
13
- <script type="module" crossorigin src="/assets/local-mElTRGcH.js"></script>
13
+ <script type="module" crossorigin src="/assets/local-EzltpNwn.js"></script>
14
14
  <link rel="stylesheet" crossorigin href="/assets/local-DLmpMMaF.css">
15
15
  </head>
16
16
  <body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "khala-cli",
3
- "version": "0.4.13",
3
+ "version": "0.4.14",
4
4
  "description": "Khala channels for Claude Code, Codex and Cursor sessions: the khala MCP server, delivery hooks and local channels.",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/aiur-team/khala/tree/main/packages/agent#readme",
@@ -1,27 +0,0 @@
1
- import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
2
- import {
3
- WAKE_USAGE,
4
- cli_default,
5
- consentLine,
6
- runWake,
7
- sessionIds,
8
- setWake
9
- } from "./chunk-SDBMJPIA.mjs";
10
- import "./chunk-2AIADANH.mjs";
11
- import "./chunk-BJVJ5WJS.mjs";
12
- import "./chunk-ZWWTVM6R.mjs";
13
- import "./chunk-XR3JSUPF.mjs";
14
- import "./chunk-I4POSYHZ.mjs";
15
- import "./chunk-72W7IC2O.mjs";
16
- import "./chunk-XI5FPUNN.mjs";
17
- import "./chunk-NHW62KEB.mjs";
18
- import "./chunk-SUUEWCY5.mjs";
19
- import "./chunk-3JA3Q5MK.mjs";
20
- export {
21
- WAKE_USAGE,
22
- consentLine,
23
- cli_default as default,
24
- runWake,
25
- sessionIds,
26
- setWake
27
- };
@@ -1,132 +0,0 @@
1
- import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
2
- import {
3
- decodeWith,
4
- literal,
5
- object,
6
- readMatrixUserId,
7
- version
8
- } from "./chunk-NHW62KEB.mjs";
9
- import {
10
- init_define_KHALA_BUNDLE
11
- } from "./chunk-3JA3Q5MK.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();
18
-
19
- // ../contracts/src/delivery/decode.ts
20
- init_define_KHALA_BUNDLE();
21
- var MAX_IDENTIFIER_BYTES = 512;
22
- var DecodeFailure = class extends Error {
23
- code;
24
- field;
25
- constructor(field, code) {
26
- super(`${field || "<root>"}: ${code}`);
27
- this.name = "DecodeFailure";
28
- this.code = code;
29
- this.field = field;
30
- }
31
- };
32
- function fail(field, code) {
33
- throw new DecodeFailure(field, code);
34
- }
35
- function decodeWith2(read) {
36
- try {
37
- return { ok: true, value: read() };
38
- } catch (error) {
39
- if (error instanceof DecodeFailure) return { ok: false, code: error.code, field: error.field };
40
- return { ok: false, code: "invalid_field", field: "" };
41
- }
42
- }
43
- function utf8Length(value) {
44
- let bytes = 0;
45
- for (const character of value) {
46
- const codePoint = character.codePointAt(0) ?? 0;
47
- if (codePoint < 128) bytes += 1;
48
- else if (codePoint < 2048) bytes += 2;
49
- else if (codePoint < 65536) bytes += 3;
50
- else bytes += 4;
51
- }
52
- return bytes;
53
- }
54
- function isWellFormed(value) {
55
- for (let index = 0; index < value.length; index += 1) {
56
- const unit = value.charCodeAt(index);
57
- if (unit >= 55296 && unit <= 56319) {
58
- const next = value.charCodeAt(index + 1);
59
- if (!(next >= 56320 && next <= 57343)) return false;
60
- index += 1;
61
- } else if (unit >= 56320 && unit <= 57343) {
62
- return false;
63
- }
64
- }
65
- return true;
66
- }
67
- var CONTROL = /[\u0000-\u001f\u007f-\u009f]/;
68
- function identifier(input, field) {
69
- if (typeof input !== "string") fail(field, "invalid_field");
70
- if (!isWellFormed(input) || input.length === 0 || CONTROL.test(input)) fail(field, "invalid_field");
71
- if (utf8Length(input) > MAX_IDENTIFIER_BYTES) fail(field, "limit_exceeded");
72
- return input;
73
- }
74
- function literal2(input, field, allowed) {
75
- if (!allowed.includes(input)) fail(field, "invalid_field");
76
- return input;
77
- }
78
-
79
- // ../contracts/src/delivery/ids.ts
80
- init_define_KHALA_BUNDLE();
81
- function readId(input, field) {
82
- return identifier(input, field);
83
- }
84
- var idDecoder = () => (input) => decodeWith2(() => readId(input, ""));
85
- var decodeOwnerId = idDecoder();
86
- var decodeParticipantId = idDecoder();
87
- var decodeDeviceId = idDecoder();
88
- var decodeBindingId = idDecoder();
89
- var decodeRoomId = idDecoder();
90
- var decodeEventId = idDecoder();
91
- var decodeCommandId = idDecoder();
92
- var decodeReleaseId = idDecoder();
93
- var decodeReceiptId = idDecoder();
94
- var decodeAuthorizationId = idDecoder();
95
- var decodeOperationId = idDecoder();
96
- var decodeCausalRootId = idDecoder();
97
-
98
- // ../contracts/src/delivery/listening-mode.ts
99
- var LISTENING_MODES = ["steer", "sync", "async"];
100
- function decodeListeningMode(input) {
101
- return decodeWith2(() => literal2(input, "", LISTENING_MODES));
102
- }
103
-
104
- // ../contracts/src/m1/listening-mode.ts
105
- var LISTENING_MODE_COMMAND_TYPE = "com.khala.listening_mode.v1";
106
- var LISTENING_MODE_MEMBER_KEY = "com.khala.listening_mode";
107
- var DEFAULT_LISTENING_MODE = "sync";
108
- function decodeListeningModeCommand(input) {
109
- return decodeWith(() => {
110
- const r = object(input, "", ["v", "agent", "mode"]);
111
- return {
112
- v: version(r.field("v"), r.at("v")),
113
- agent: readMatrixUserId(r.field("agent"), r.at("agent")),
114
- mode: literal(r.field("mode"), r.at("mode"), LISTENING_MODES)
115
- };
116
- });
117
- }
118
- function memberListeningMode(content) {
119
- const value = typeof content === "object" && content !== null ? content[LISTENING_MODE_MEMBER_KEY] : void 0;
120
- const decoded = decodeListeningMode(value);
121
- return decoded.ok ? decoded.value : DEFAULT_LISTENING_MODE;
122
- }
123
-
124
- export {
125
- LISTENING_MODES,
126
- decodeListeningMode,
127
- LISTENING_MODE_COMMAND_TYPE,
128
- LISTENING_MODE_MEMBER_KEY,
129
- DEFAULT_LISTENING_MODE,
130
- decodeListeningModeCommand,
131
- memberListeningMode
132
- };
@@ -1,20 +0,0 @@
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-KMDLTHDW.mjs";
7
- import "./chunk-BJVJ5WJS.mjs";
8
- import "./chunk-ZWWTVM6R.mjs";
9
- import "./chunk-XR3JSUPF.mjs";
10
- import "./chunk-I4POSYHZ.mjs";
11
- import "./chunk-72W7IC2O.mjs";
12
- import "./chunk-XI5FPUNN.mjs";
13
- import "./chunk-NHW62KEB.mjs";
14
- import "./chunk-SUUEWCY5.mjs";
15
- import "./chunk-3JA3Q5MK.mjs";
16
- export {
17
- resolveHarness,
18
- resolveSession,
19
- resolveSessionId
20
- };
@@ -1,19 +0,0 @@
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-BJVJ5WJS.mjs";
7
- import "./chunk-ZWWTVM6R.mjs";
8
- import "./chunk-XR3JSUPF.mjs";
9
- import "./chunk-I4POSYHZ.mjs";
10
- import "./chunk-72W7IC2O.mjs";
11
- import "./chunk-XI5FPUNN.mjs";
12
- import "./chunk-NHW62KEB.mjs";
13
- import "./chunk-SUUEWCY5.mjs";
14
- import "./chunk-3JA3Q5MK.mjs";
15
- export {
16
- ADAPTERS,
17
- adapterFor,
18
- createAdapterRegistry
19
- };