khala-cli 0.4.12 → 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.
- package/dist/{chunk-YLEJQZFS.mjs → chunk-2ZT7TFV5.mjs} +10 -10
- package/dist/{chunk-CKLFGEDW.mjs → chunk-4THILKJ5.mjs} +6 -6
- package/dist/{chunk-56GZYKLK.mjs → chunk-4YHVAWZF.mjs} +3 -3
- package/dist/chunk-6CDTY2EG.mjs +20 -0
- package/dist/{chunk-RL7VBTAR.mjs → chunk-BSB77FJG.mjs} +2 -2
- package/dist/{chunk-C53OOWTD.mjs → chunk-FOCBFFH5.mjs} +2 -2
- package/dist/{chunk-WWFOB6XW.mjs → chunk-G2TAYBYB.mjs} +1 -1
- package/dist/{chunk-374APJUQ.mjs → chunk-H3XIRV2S.mjs} +1 -1
- package/dist/{chunk-CYJZXNTH.mjs → chunk-HPZY6LHL.mjs} +2 -2
- package/dist/{chunk-G2RJ4C3T.mjs → chunk-KZO6BSPQ.mjs} +5 -5
- package/dist/{chunk-R3TTOYPJ.mjs → chunk-N7B2VPDU.mjs} +1 -1
- package/dist/{chunk-XMNU4QC5.mjs → chunk-O2NDYSYF.mjs} +6 -6
- package/dist/{chunk-5HDFP7EB.mjs → chunk-OPBOWFBB.mjs} +130 -38
- package/dist/{chunk-IV5R3D2G.mjs → chunk-P2S3OAZ5.mjs} +6 -6
- package/dist/{chunk-2MEWZ7PJ.mjs → chunk-PFWYYXR5.mjs} +2 -2
- package/dist/{chunk-7GMBN2XQ.mjs → chunk-PISWOM3Q.mjs} +14 -13
- package/dist/{chunk-QXL6ALYP.mjs → chunk-PIYD4WCN.mjs} +1 -1
- package/dist/{chunk-JDKPAIJX.mjs → chunk-PYVAMHAG.mjs} +2 -2
- package/dist/{chunk-25N4V2LE.mjs → chunk-QEIYPWN4.mjs} +13 -13
- package/dist/{chunk-ZK6QVJ5Q.mjs → chunk-QH5WZEIG.mjs} +23 -17
- package/dist/{chunk-7YXXLBQW.mjs → chunk-RHAAMCRD.mjs} +7 -7
- package/dist/{chunk-757A5TML.mjs → chunk-RXM47OGD.mjs} +26 -5
- package/dist/{chunk-MNN5BRU5.mjs → chunk-T3BRQFVF.mjs} +1 -1
- package/dist/chunk-TMOAMJMV.mjs +19 -0
- package/dist/{chunk-ZOUDN7LE.mjs → chunk-TVWBZD24.mjs} +32 -29
- package/dist/{chunk-6H34GNLY.mjs → chunk-U2OUPWUW.mjs} +2 -2
- package/dist/{chunk-TBQNSDP7.mjs → chunk-UBDI4XFO.mjs} +32 -12
- package/dist/chunk-UQJHB4AH.mjs +27 -0
- package/dist/{chunk-LPJQCFRQ.mjs → chunk-VQDIOGV7.mjs} +27 -14
- package/dist/chunk-VXHWS7JD.mjs +47 -0
- package/dist/{chunk-PAFNLPIE.mjs → chunk-W3LLNKEB.mjs} +3 -3
- package/dist/{chunk-SPGPUO3H.mjs → chunk-WMZ7YE6H.mjs} +3 -3
- package/dist/{chunk-YK3LMWRB.mjs → chunk-YXMJJAMH.mjs} +9 -9
- package/dist/{chunk-KI2MRAEE.mjs → chunk-ZWDINIQJ.mjs} +1 -1
- package/dist/khala.mjs +11 -11
- package/dist/web/assets/local-DLmpMMaF.css +1 -0
- package/dist/web/assets/local-EzltpNwn.js +11 -0
- package/dist/web/index.html +2 -2
- package/package.json +1 -1
- package/dist/chunk-7CKX3Q7L.mjs +0 -27
- package/dist/chunk-EGMBLNRJ.mjs +0 -132
- package/dist/chunk-RGQPDR53.mjs +0 -19
- package/dist/chunk-SICAKRPY.mjs +0 -20
- package/dist/web/assets/local-CLw1_1-V.js +0 -11
- package/dist/web/assets/local-qpo5wk6U.css +0 -1
package/dist/web/index.html
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
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-
|
|
14
|
-
<link rel="stylesheet" crossorigin href="/assets/local-
|
|
13
|
+
<script type="module" crossorigin src="/assets/local-EzltpNwn.js"></script>
|
|
14
|
+
<link rel="stylesheet" crossorigin href="/assets/local-DLmpMMaF.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
|
17
17
|
<div id="app"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "khala-cli",
|
|
3
|
-
"version": "0.4.
|
|
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",
|
package/dist/chunk-7CKX3Q7L.mjs
DELETED
|
@@ -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-CKLFGEDW.mjs";
|
|
10
|
-
import "./chunk-XMNU4QC5.mjs";
|
|
11
|
-
import "./chunk-ZOUDN7LE.mjs";
|
|
12
|
-
import "./chunk-C53OOWTD.mjs";
|
|
13
|
-
import "./chunk-LPJQCFRQ.mjs";
|
|
14
|
-
import "./chunk-EGMBLNRJ.mjs";
|
|
15
|
-
import "./chunk-757A5TML.mjs";
|
|
16
|
-
import "./chunk-2MEWZ7PJ.mjs";
|
|
17
|
-
import "./chunk-R3TTOYPJ.mjs";
|
|
18
|
-
import "./chunk-WWFOB6XW.mjs";
|
|
19
|
-
import "./chunk-374APJUQ.mjs";
|
|
20
|
-
export {
|
|
21
|
-
WAKE_USAGE,
|
|
22
|
-
consentLine,
|
|
23
|
-
cli_default as default,
|
|
24
|
-
runWake,
|
|
25
|
-
sessionIds,
|
|
26
|
-
setWake
|
|
27
|
-
};
|
package/dist/chunk-EGMBLNRJ.mjs
DELETED
|
@@ -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-R3TTOYPJ.mjs";
|
|
9
|
-
import {
|
|
10
|
-
init_define_KHALA_BUNDLE
|
|
11
|
-
} from "./chunk-374APJUQ.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
|
-
};
|
package/dist/chunk-RGQPDR53.mjs
DELETED
|
@@ -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-ZOUDN7LE.mjs";
|
|
7
|
-
import "./chunk-C53OOWTD.mjs";
|
|
8
|
-
import "./chunk-LPJQCFRQ.mjs";
|
|
9
|
-
import "./chunk-EGMBLNRJ.mjs";
|
|
10
|
-
import "./chunk-757A5TML.mjs";
|
|
11
|
-
import "./chunk-2MEWZ7PJ.mjs";
|
|
12
|
-
import "./chunk-R3TTOYPJ.mjs";
|
|
13
|
-
import "./chunk-WWFOB6XW.mjs";
|
|
14
|
-
import "./chunk-374APJUQ.mjs";
|
|
15
|
-
export {
|
|
16
|
-
ADAPTERS,
|
|
17
|
-
adapterFor,
|
|
18
|
-
createAdapterRegistry
|
|
19
|
-
};
|
package/dist/chunk-SICAKRPY.mjs
DELETED
|
@@ -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-JDKPAIJX.mjs";
|
|
7
|
-
import "./chunk-ZOUDN7LE.mjs";
|
|
8
|
-
import "./chunk-C53OOWTD.mjs";
|
|
9
|
-
import "./chunk-LPJQCFRQ.mjs";
|
|
10
|
-
import "./chunk-EGMBLNRJ.mjs";
|
|
11
|
-
import "./chunk-757A5TML.mjs";
|
|
12
|
-
import "./chunk-2MEWZ7PJ.mjs";
|
|
13
|
-
import "./chunk-R3TTOYPJ.mjs";
|
|
14
|
-
import "./chunk-WWFOB6XW.mjs";
|
|
15
|
-
import "./chunk-374APJUQ.mjs";
|
|
16
|
-
export {
|
|
17
|
-
resolveHarness,
|
|
18
|
-
resolveSession,
|
|
19
|
-
resolveSessionId
|
|
20
|
-
};
|