khala-cli 0.4.7 → 0.4.8
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 +18 -1
- package/dist/{chunk-25AX7UMF.mjs → chunk-2DHIAFEV.mjs} +5 -5
- package/dist/{chunk-OAFYPBCP.mjs → chunk-2VCAW4GH.mjs} +1 -1
- package/dist/{chunk-LNG3ZZBK.mjs → chunk-54XFVSEC.mjs} +1 -1
- package/dist/{chunk-JEI32DEA.mjs → chunk-5BQTYU66.mjs} +285 -33
- package/dist/{chunk-YIHRHD7W.mjs → chunk-5LIE5GUU.mjs} +1 -1
- package/dist/{chunk-S3FX7VCY.mjs → chunk-5PUQT3YS.mjs} +200 -17
- package/dist/{chunk-APIWKRKG.mjs → chunk-7HBRFY3Z.mjs} +1 -1
- package/dist/{chunk-SU6362YU.mjs → chunk-APMWDF6B.mjs} +1 -1
- package/dist/{chunk-C5SMOUTO.mjs → chunk-BKLW2SPG.mjs} +27 -9
- package/dist/{chunk-WNOIHCCC.mjs → chunk-CBPLCCRZ.mjs} +1 -1
- package/dist/{chunk-IG2NU5J6.mjs → chunk-CJTCU755.mjs} +4 -4
- package/dist/{chunk-4LSCOWWN.mjs → chunk-FH34B3I3.mjs} +6 -8
- package/dist/chunk-FV32AQTC.mjs +40 -0
- package/dist/{chunk-L7L6UNXN.mjs → chunk-H3K4GA2P.mjs} +9 -9
- package/dist/{chunk-3OFKVYOX.mjs → chunk-IQJQ4RF5.mjs} +1 -1
- package/dist/{chunk-TOBQUAPD.mjs → chunk-RNDUFTBF.mjs} +56 -32
- package/dist/{chunk-ODTSGEID.mjs → chunk-VAI7IUI4.mjs} +3 -3
- package/dist/{chunk-OP2HZ7EM.mjs → chunk-VKQ3KUYO.mjs} +16 -2
- package/dist/{chunk-K6EJSZYO.mjs → chunk-VUSV2ADL.mjs} +13 -15
- package/dist/{chunk-7V2YQIRI.mjs → chunk-W6R4UJUQ.mjs} +12 -5
- package/dist/{chunk-6YEYXZZB.mjs → chunk-Z4JF2M5C.mjs} +7 -8
- package/dist/{chunk-W5HS2PQO.mjs → chunk-ZJ4W7P33.mjs} +8 -8
- package/dist/khala.mjs +11 -11
- package/package.json +1 -1
- package/dist/chunk-5RGEO5HN.mjs +0 -142
- package/dist/{chunk-U3MKSPRO.mjs → chunk-NKX3SLS7.mjs} +37 -37
|
@@ -1,38 +1,5 @@
|
|
|
1
1
|
import { createRequire as __khalaCreateRequire } from 'node:module'; const require = __khalaCreateRequire(import.meta.url);
|
|
2
2
|
|
|
3
|
-
// ../contracts/src/m1/harness.ts
|
|
4
|
-
var HARNESS_ID = /^[a-z][a-z0-9-]{1,23}$/;
|
|
5
|
-
function isHarnessId(input) {
|
|
6
|
-
return typeof input === "string" && HARNESS_ID.exec(input)?.[0] === input;
|
|
7
|
-
}
|
|
8
|
-
var LEGACY_HARNESSES = ["claude", "codex", "cursor"];
|
|
9
|
-
var HARNESS_REGISTRY = [
|
|
10
|
-
{ id: "claude", displayName: "Claude Code", modelName: "Claude", logoKey: "claude", steer: true, sync: true, idleWake: "default", registered: true },
|
|
11
|
-
{ id: "codex", displayName: "Codex", modelName: "Codex", logoKey: "codex", steer: true, sync: true, idleWake: "default", registered: true },
|
|
12
|
-
{ id: "cursor", displayName: "Cursor", modelName: "Cursor", logoKey: "cursor", steer: true, sync: true, idleWake: "none", registered: true },
|
|
13
|
-
{ id: "opencode", displayName: "OpenCode", modelName: "OpenCode", logoKey: "opencode", steer: true, sync: true, idleWake: "default", registered: true },
|
|
14
|
-
{ id: "copilot", displayName: "Copilot CLI", modelName: "Copilot", logoKey: "copilot", steer: true, sync: true, idleWake: "opt-in", registered: true },
|
|
15
|
-
{ id: "vscode", displayName: "Copilot (VS Code)", modelName: "VSCode", logoKey: "copilot", steer: true, sync: true, idleWake: "opt-in", registered: true },
|
|
16
|
-
{ id: "gemini", displayName: "Gemini CLI", modelName: "Gemini", logoKey: "gemini", steer: true, sync: true, idleWake: "opt-in", registered: true },
|
|
17
|
-
// U29 and U33 establish these capabilities after their spikes.
|
|
18
|
-
{ id: "antigravity", displayName: "Antigravity CLI", modelName: "Antigravity", logoKey: null, steer: false, sync: false, idleWake: "none", registered: true },
|
|
19
|
-
{ id: "qwen", displayName: "Qwen Code", modelName: "Qwen", logoKey: "qwen", steer: true, sync: true, idleWake: "default", registered: true },
|
|
20
|
-
{ id: "muse", displayName: "Muse Code", modelName: "Muse", logoKey: null, steer: false, sync: false, idleWake: "none", registered: true },
|
|
21
|
-
{ id: "generic", displayName: "MCP agent", modelName: "Agent", logoKey: null, steer: false, sync: false, idleWake: "none", registered: true }
|
|
22
|
-
];
|
|
23
|
-
function harnessInfo(id) {
|
|
24
|
-
return HARNESS_REGISTRY.find((row) => row.id === id) ?? {
|
|
25
|
-
id,
|
|
26
|
-
displayName: id.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" "),
|
|
27
|
-
modelName: "Agent",
|
|
28
|
-
logoKey: null,
|
|
29
|
-
steer: false,
|
|
30
|
-
sync: false,
|
|
31
|
-
idleWake: "none",
|
|
32
|
-
registered: false
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
|
|
36
3
|
// ../contracts/src/messaging/decode.ts
|
|
37
4
|
var MAX_IDENTIFIER_BYTES = 512;
|
|
38
5
|
var DecodeFailure = class extends Error {
|
|
@@ -147,6 +114,39 @@ function utcTimestamp(input, path) {
|
|
|
147
114
|
return input;
|
|
148
115
|
}
|
|
149
116
|
|
|
117
|
+
// ../contracts/src/m1/harness.ts
|
|
118
|
+
var HARNESS_ID = /^[a-z][a-z0-9-]{1,23}$/;
|
|
119
|
+
function isHarnessId(input) {
|
|
120
|
+
return typeof input === "string" && HARNESS_ID.exec(input)?.[0] === input;
|
|
121
|
+
}
|
|
122
|
+
var LEGACY_HARNESSES = ["claude", "codex", "cursor"];
|
|
123
|
+
var HARNESS_REGISTRY = [
|
|
124
|
+
{ id: "claude", displayName: "Claude Code", modelName: "Claude", logoKey: "claude", steer: true, sync: true, idleWake: "default", registered: true },
|
|
125
|
+
{ id: "codex", displayName: "Codex", modelName: "Codex", logoKey: "codex", steer: true, sync: true, idleWake: "default", registered: true },
|
|
126
|
+
{ id: "cursor", displayName: "Cursor", modelName: "Cursor", logoKey: "cursor", steer: true, sync: true, idleWake: "none", registered: true },
|
|
127
|
+
{ id: "opencode", displayName: "OpenCode", modelName: "OpenCode", logoKey: "opencode", steer: true, sync: true, idleWake: "default", registered: true },
|
|
128
|
+
{ id: "copilot", displayName: "Copilot CLI", modelName: "Copilot", logoKey: "copilot", steer: true, sync: true, idleWake: "opt-in", registered: true },
|
|
129
|
+
{ id: "vscode", displayName: "Copilot (VS Code)", modelName: "VSCode", logoKey: "copilot", steer: true, sync: true, idleWake: "opt-in", registered: true },
|
|
130
|
+
{ id: "gemini", displayName: "Gemini CLI", modelName: "Gemini", logoKey: "gemini", steer: true, sync: true, idleWake: "opt-in", registered: true },
|
|
131
|
+
// U29 and U33 establish these capabilities after their spikes.
|
|
132
|
+
{ id: "antigravity", displayName: "Antigravity CLI", modelName: "Antigravity", logoKey: null, steer: false, sync: false, idleWake: "none", registered: true },
|
|
133
|
+
{ id: "qwen", displayName: "Qwen Code", modelName: "Qwen", logoKey: "qwen", steer: true, sync: true, idleWake: "default", registered: true },
|
|
134
|
+
{ id: "muse", displayName: "Muse Code", modelName: "Muse", logoKey: null, steer: false, sync: false, idleWake: "none", registered: true },
|
|
135
|
+
{ id: "generic", displayName: "MCP agent", modelName: "Agent", logoKey: null, steer: false, sync: false, idleWake: "none", registered: true }
|
|
136
|
+
];
|
|
137
|
+
function harnessInfo(id) {
|
|
138
|
+
return HARNESS_REGISTRY.find((row) => row.id === id) ?? {
|
|
139
|
+
id,
|
|
140
|
+
displayName: id.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" "),
|
|
141
|
+
modelName: "Agent",
|
|
142
|
+
logoKey: null,
|
|
143
|
+
steer: false,
|
|
144
|
+
sync: false,
|
|
145
|
+
idleWake: "none",
|
|
146
|
+
registered: false
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
150
|
// ../contracts/src/messaging/agent-names.ts
|
|
151
151
|
var MAX_AGENT_NAME_BYTES = 80;
|
|
152
152
|
var unsafe = /[\u0000-\u001f\u007f-\u009f\u061c\u200b-\u200f\u2028-\u202e\u2060-\u2069\ufeff]/u;
|
|
@@ -194,10 +194,6 @@ var validAgentSessionId = (value) => typeof value === "string" && /^[A-Za-z0-9][
|
|
|
194
194
|
var validAgentRejoinSecret = (value) => typeof value === "string" && /^[A-Za-z0-9_-]{43}$/u.test(value);
|
|
195
195
|
|
|
196
196
|
export {
|
|
197
|
-
isHarnessId,
|
|
198
|
-
LEGACY_HARNESSES,
|
|
199
|
-
HARNESS_REGISTRY,
|
|
200
|
-
harnessInfo,
|
|
201
197
|
fail,
|
|
202
198
|
decodeWith,
|
|
203
199
|
object,
|
|
@@ -216,6 +212,10 @@ export {
|
|
|
216
212
|
utcTimestamp,
|
|
217
213
|
reserved,
|
|
218
214
|
validateAgentName,
|
|
215
|
+
isHarnessId,
|
|
216
|
+
LEGACY_HARNESSES,
|
|
217
|
+
HARNESS_REGISTRY,
|
|
218
|
+
harnessInfo,
|
|
219
219
|
M1_LABEL_MAX_BYTES,
|
|
220
220
|
agentConfirmPagePath,
|
|
221
221
|
readHarness,
|