@paradow/ledge 0.31.0 → 0.32.0
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/cli/{action-CFYJM2A2.js → action-HUKZUHQ7.js} +4 -4
- package/dist/cli/{attach-23PTEIAA.js → attach-ILMHKRUI.js} +9 -9
- package/dist/cli/{bridge-UJKWEKA5.js → bridge-LFKUCKQP.js} +1 -1
- package/dist/cli/{chunk-MYIBYAZC.js → chunk-2BLPGRLO.js} +8 -2
- package/dist/cli/{chunk-MIPE2FWL.js → chunk-5FKHISVK.js} +1 -1
- package/dist/cli/{chunk-NXNIRIGI.js → chunk-5JNJFBKZ.js} +5 -5
- package/dist/cli/{chunk-6YBIZZQG.js → chunk-CXZETRPA.js} +1 -1
- package/dist/cli/{chunk-GMG3ROBU.js → chunk-EGXOBQZI.js} +38 -12
- package/dist/cli/{chunk-TLFKLMBN.js → chunk-IE52REEI.js} +1 -1
- package/dist/cli/chunk-M7364G3S.js +6 -0
- package/dist/cli/{chunk-QXH2L4UH.js → chunk-OPUIV6PR.js} +3 -3
- package/dist/cli/{chunk-HEYHVOD6.js → chunk-Q6RMLRPI.js} +2 -2
- package/dist/cli/{chunk-HUY4CFMX.js → chunk-QQVWFOPU.js} +2 -2
- package/dist/cli/{chunk-HNC5Q5PV.js → chunk-SUBKKCGA.js} +3 -3
- package/dist/cli/{chunk-YI4V7YVW.js → chunk-U7J2AN3F.js} +3 -3
- package/dist/cli/{chunk-TCJG3EHB.js → chunk-VGAPV4DC.js} +2 -2
- package/dist/cli/{chunk-WF27BASF.js → chunk-YHZIHIGI.js} +2 -2
- package/dist/cli/{daemon-WW2P7RDV.js → daemon-UJTMG3D4.js} +7 -7
- package/dist/cli/{decide-HLRD37PW.js → decide-3B6LGVNN.js} +4 -4
- package/dist/cli/{handover-56M4LIOP.js → handover-IX7EFDIP.js} +4 -4
- package/dist/cli/{hook-UJVKYSQ5.js → hook-G7UA6MB6.js} +9 -9
- package/dist/cli/index.js +16 -16
- package/dist/cli/{launch-GIPQDPAC.js → launch-2GZIRF3A.js} +9 -9
- package/dist/cli/{send-HWZHE65N.js → send-55RWY4LZ.js} +4 -4
- package/dist/cli/{status-V6ITP7VT.js → status-NT5ZUYM6.js} +2 -2
- package/dist/cli/{task-N53TM34B.js → task-GABQ4SKY.js} +4 -4
- package/dist/cli/{team-CZFZ24P6.js → team-IK2RYXW2.js} +6 -6
- package/dist/cli/{tui-K32C34XI.js → tui-AMW2XAH5.js} +9 -9
- package/dist/cli/{version-QIFJVKAQ.js → version-35XLTEMX.js} +1 -1
- package/dist/cli/{who-NIOLHHB3.js → who-4FRIGYVT.js} +3 -3
- package/package.json +1 -1
- package/dist/cli/chunk-WY5WSK2D.js +0 -6
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
resultLine,
|
|
9
9
|
runClose,
|
|
10
10
|
runOnClient
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-OPUIV6PR.js";
|
|
12
|
+
import "./chunk-IE52REEI.js";
|
|
13
|
+
import "./chunk-CXZETRPA.js";
|
|
14
|
+
import "./chunk-2BLPGRLO.js";
|
|
15
15
|
import "./chunk-HOOHS3MX.js";
|
|
16
16
|
import "./chunk-U67V476Y.js";
|
|
17
17
|
export {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
attachEnv
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-5JNJFBKZ.js";
|
|
4
|
+
import "./chunk-EGXOBQZI.js";
|
|
5
5
|
import "./chunk-OLLQBK6N.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-QQVWFOPU.js";
|
|
7
|
+
import "./chunk-VGAPV4DC.js";
|
|
8
|
+
import "./chunk-5FKHISVK.js";
|
|
9
|
+
import "./chunk-IE52REEI.js";
|
|
10
10
|
import {
|
|
11
11
|
connect
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CXZETRPA.js";
|
|
13
13
|
import {
|
|
14
14
|
PROTOCOL_PORT,
|
|
15
15
|
backendOf
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-2BLPGRLO.js";
|
|
17
|
+
import "./chunk-M7364G3S.js";
|
|
18
18
|
import {
|
|
19
19
|
realTmux
|
|
20
20
|
} from "./chunk-NLL2EQJ2.js";
|
|
@@ -968,7 +968,9 @@ var ChatRelaySchema = z13.object({
|
|
|
968
968
|
text: z13.string().min(1),
|
|
969
969
|
status: z13.enum(["queued", "sent"]).optional(),
|
|
970
970
|
sentAt: z13.string().datetime().optional(),
|
|
971
|
-
error: z13.string().optional()
|
|
971
|
+
error: z13.string().optional(),
|
|
972
|
+
/** Why it failed, as a code a front words itself (a RefusalCode, `ended`, or `failed` for the machinery); goes with `error`. */
|
|
973
|
+
code: z13.string().max(40).optional()
|
|
972
974
|
});
|
|
973
975
|
var ChatCloseSchema = z13.object({
|
|
974
976
|
id: z13.string().min(1),
|
|
@@ -2033,7 +2035,9 @@ var PhoneChatRelaySchema = z26.object({
|
|
|
2033
2035
|
text: z26.string().max(TOOL_TEXT_MAX),
|
|
2034
2036
|
status: z26.enum(["queued", "sent"]).optional(),
|
|
2035
2037
|
sentAt: z26.string().datetime().optional(),
|
|
2036
|
-
failed: z26.literal(true).optional()
|
|
2038
|
+
failed: z26.literal(true).optional(),
|
|
2039
|
+
/** With `failed`: why, as the PC's code (never its text). */
|
|
2040
|
+
code: z26.string().max(40).optional()
|
|
2037
2041
|
}).strict();
|
|
2038
2042
|
var CloseHowSchema = z26.enum(["exit", "killed"]);
|
|
2039
2043
|
var PhoneChatCloseSchema = z26.object({
|
|
@@ -2221,6 +2225,8 @@ var PhoneClientMessageSchema = z26.discriminatedUnion("type", [
|
|
|
2221
2225
|
AttachmentPutSchema.pick({ type: true, requestId: true }).extend({ image: ImageUploadSchema.extend({ data: z26.string().min(1).max(b64Max(ATTACHMENT_MAX)) }) }),
|
|
2222
2226
|
AttachmentGetSchema.pick({ type: true, requestId: true, attachment: true, preview: true }),
|
|
2223
2227
|
z26.object({ type: z26.literal("chat.relay"), op: OperationIdSchema, qid: OperationIdSchema }),
|
|
2228
|
+
/** Takes the card's queued instruction back out of the queue, as the local `session.relay.cancel`. */
|
|
2229
|
+
z26.object({ type: z26.literal("chat.relay.cancel"), op: OperationIdSchema, qid: OperationIdSchema }),
|
|
2224
2230
|
z26.object({ type: z26.literal("chat.launch"), op: OperationIdSchema, qid: OperationIdSchema, rows: CardRowsSchema.optional(), assertion: AssertionSchema.optional() }),
|
|
2225
2231
|
z26.object({ type: z26.literal("chat.close"), op: OperationIdSchema, qid: OperationIdSchema, rows: CardRowsSchema.optional(), assertion: AssertionSchema.optional() }),
|
|
2226
2232
|
/** The turn's team card (roles spec §3.8): launched like a session card, with the device check (purpose `launch`, the turn). */
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
EFFORT_ARGS,
|
|
3
3
|
MODEL_ARGS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EGXOBQZI.js";
|
|
5
5
|
import {
|
|
6
6
|
findRole
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5FKHISVK.js";
|
|
8
8
|
import {
|
|
9
9
|
exitFile,
|
|
10
10
|
spawnSession
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-IE52REEI.js";
|
|
12
12
|
import {
|
|
13
13
|
DaemonRefusedError,
|
|
14
14
|
connect
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CXZETRPA.js";
|
|
16
16
|
import {
|
|
17
17
|
PROTOCOL_PORT,
|
|
18
18
|
autonomyArgs
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-2BLPGRLO.js";
|
|
20
20
|
import {
|
|
21
21
|
realTmux
|
|
22
22
|
} from "./chunk-NLL2EQJ2.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
templateId,
|
|
16
16
|
templateText,
|
|
17
17
|
writeDefinition
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-QQVWFOPU.js";
|
|
19
19
|
import {
|
|
20
20
|
NO_ALWAYS,
|
|
21
21
|
NO_NOTE,
|
|
@@ -47,12 +47,12 @@ import {
|
|
|
47
47
|
shownCommand,
|
|
48
48
|
teammates,
|
|
49
49
|
withImages
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-VGAPV4DC.js";
|
|
51
51
|
import {
|
|
52
52
|
findRole,
|
|
53
53
|
frontMatter,
|
|
54
54
|
loadRole
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-5FKHISVK.js";
|
|
56
56
|
import {
|
|
57
57
|
PARENT_AGENT_VARS,
|
|
58
58
|
agentEnv,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
labelTranscript,
|
|
63
63
|
resumeLabel,
|
|
64
64
|
spawnSession
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-IE52REEI.js";
|
|
66
66
|
import {
|
|
67
67
|
ACTIONS,
|
|
68
68
|
ATTACHMENT_ID,
|
|
@@ -161,10 +161,10 @@ import {
|
|
|
161
161
|
teamsPurpose,
|
|
162
162
|
tokenEquals,
|
|
163
163
|
transmissions
|
|
164
|
-
} from "./chunk-
|
|
164
|
+
} from "./chunk-2BLPGRLO.js";
|
|
165
165
|
import {
|
|
166
166
|
LEDGE_VERSION
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-M7364G3S.js";
|
|
168
168
|
import {
|
|
169
169
|
log
|
|
170
170
|
} from "./chunk-6IYPRUQG.js";
|
|
@@ -1637,6 +1637,11 @@ function startPoller(opts) {
|
|
|
1637
1637
|
// src/daemon/relay.ts
|
|
1638
1638
|
var free = (s) => !!s && (s.state === "idle" || s.state === "error") && !s.pending;
|
|
1639
1639
|
var stopped = (name) => `${name} stopped before it got the instruction`;
|
|
1640
|
+
var STOPPED_CODE = "ended";
|
|
1641
|
+
var codeOf = (e) => {
|
|
1642
|
+
const c = e?.code;
|
|
1643
|
+
return typeof c === "string" && c.length <= 40 ? c : "failed";
|
|
1644
|
+
};
|
|
1640
1645
|
function createRelay(d) {
|
|
1641
1646
|
const now = d.now ?? (() => (/* @__PURE__ */ new Date()).toISOString());
|
|
1642
1647
|
const typing = d.typing ?? /* @__PURE__ */ new Set();
|
|
@@ -1661,14 +1666,21 @@ function createRelay(d) {
|
|
|
1661
1666
|
sending.add(qid);
|
|
1662
1667
|
try {
|
|
1663
1668
|
let refused;
|
|
1669
|
+
let code = "failed";
|
|
1664
1670
|
try {
|
|
1665
|
-
|
|
1671
|
+
const answer = await d.replyTo(r.id, r.text);
|
|
1672
|
+
if (answer === null || typeof answer === "string") refused = answer;
|
|
1673
|
+
else {
|
|
1674
|
+
refused = answer.message;
|
|
1675
|
+
code = answer.code ?? "failed";
|
|
1676
|
+
}
|
|
1666
1677
|
} catch (e) {
|
|
1667
1678
|
refused = e.message;
|
|
1679
|
+
code = codeOf(e);
|
|
1668
1680
|
}
|
|
1669
1681
|
if (refused) {
|
|
1670
1682
|
log(`relay ${qid} to ${r.id} failed: ${refused}`);
|
|
1671
|
-
mark(thread, qid, { error: refused });
|
|
1683
|
+
mark(thread, qid, { error: refused, code });
|
|
1672
1684
|
} else mark(thread, qid, { status: "sent", sentAt: now() });
|
|
1673
1685
|
return refused;
|
|
1674
1686
|
} finally {
|
|
@@ -1698,7 +1710,7 @@ function createRelay(d) {
|
|
|
1698
1710
|
const s = c.type === "updated" ? c.session : void 0;
|
|
1699
1711
|
if (!s || s.state === "exited") {
|
|
1700
1712
|
for (const x of q) if (!sending.has(x.qid)) {
|
|
1701
|
-
mark(x.thread, x.qid, { error: stopped(x.relay.name) });
|
|
1713
|
+
mark(x.thread, x.qid, { error: stopped(x.relay.name), code: STOPPED_CODE });
|
|
1702
1714
|
}
|
|
1703
1715
|
return;
|
|
1704
1716
|
}
|
|
@@ -1717,7 +1729,7 @@ function createRelay(d) {
|
|
|
1717
1729
|
const s = d.store.get(r.id);
|
|
1718
1730
|
if (!s || s.state === "exited") {
|
|
1719
1731
|
const m = stopped(r.name);
|
|
1720
|
-
mark(thread, qid, { error: m });
|
|
1732
|
+
mark(thread, qid, { error: m, code: STOPPED_CODE });
|
|
1721
1733
|
throw new Error(m);
|
|
1722
1734
|
}
|
|
1723
1735
|
if (open5(r.id)) {
|
|
@@ -5881,7 +5893,7 @@ function toPhoneTurn(t) {
|
|
|
5881
5893
|
if (proposals.length > 0) out.proposals = proposals;
|
|
5882
5894
|
if (t.relay && t.relay.text.length <= TOOL_TEXT_MAX) {
|
|
5883
5895
|
const r = t.relay;
|
|
5884
|
-
out.relay = { id: r.id, name: r.name, tool: r.tool, text: r.text, ...r.status ? { status: r.status } : {}, ...r.sentAt ? { sentAt: r.sentAt } : {}, ...r.error !== void 0 ? { failed: true } : {} };
|
|
5896
|
+
out.relay = { id: r.id, name: r.name, tool: r.tool, text: r.text, ...r.status ? { status: r.status } : {}, ...r.sentAt ? { sentAt: r.sentAt } : {}, ...r.error !== void 0 ? { failed: true, ...r.code ? { code: r.code } : {} } : {} };
|
|
5885
5897
|
}
|
|
5886
5898
|
if (t.team) {
|
|
5887
5899
|
const tm = t.team;
|
|
@@ -7197,6 +7209,16 @@ function createPhoneGateway(deps) {
|
|
|
7197
7209
|
}
|
|
7198
7210
|
return { status: "applied" };
|
|
7199
7211
|
};
|
|
7212
|
+
const chatRelayCancel = (deviceId, msg) => {
|
|
7213
|
+
const turn = ownTurn(deviceId, msg.qid);
|
|
7214
|
+
if (!turn?.relay || !deps.relay) return { status: "rejected", reason: "unknown_session" };
|
|
7215
|
+
try {
|
|
7216
|
+
deps.relay.cancel(msg.qid);
|
|
7217
|
+
} catch {
|
|
7218
|
+
return { status: "rejected", reason: "stale" };
|
|
7219
|
+
}
|
|
7220
|
+
return { status: "applied" };
|
|
7221
|
+
};
|
|
7200
7222
|
const chatLaunch = async (deviceId, msg) => {
|
|
7201
7223
|
const turn = ownTurn(deviceId, msg.qid);
|
|
7202
7224
|
if (!turn || !deps.launchChat) return { status: "rejected", reason: "unknown_session" };
|
|
@@ -7415,6 +7437,7 @@ function createPhoneGateway(deps) {
|
|
|
7415
7437
|
return { status: "applied" };
|
|
7416
7438
|
}
|
|
7417
7439
|
if (msg.type === "chat.relay") return chatRelay(deviceId, msg);
|
|
7440
|
+
if (msg.type === "chat.relay.cancel") return chatRelayCancel(deviceId, msg);
|
|
7418
7441
|
if (msg.type === "chat.launch") return chatLaunch(deviceId, msg);
|
|
7419
7442
|
if (msg.type === "chat.close") return chatClose(deviceId, msg);
|
|
7420
7443
|
if (msg.type === "chat.act") return chatAct(deviceId, msg);
|
|
@@ -8152,7 +8175,10 @@ async function startServer(opts) {
|
|
|
8152
8175
|
history?.recordSent(id, m);
|
|
8153
8176
|
}, mark: (id, rid, status) => history?.markSent(id, rid, status) }
|
|
8154
8177
|
});
|
|
8155
|
-
const relay = createRelay({ threads: cardThreads, store, replyTo:
|
|
8178
|
+
const relay = createRelay({ threads: cardThreads, store, replyTo: async (id, text) => {
|
|
8179
|
+
const r = await replyTo(id, text);
|
|
8180
|
+
return r && { message: r.message, code: r.code };
|
|
8181
|
+
}, now, typing, closing, next: (id) => mailbox.kick(id) });
|
|
8156
8182
|
const teams = createTeamsLive({ store, now, onLeft: toldOfLeaving, onPurged: (t) => tasks.forgetTeam(t.id), ...opts.teams ? { journal: opts.teams } : {} });
|
|
8157
8183
|
function toldOfLeaving(id, t, why, to) {
|
|
8158
8184
|
const s = store.get(id);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CODEX_HOOK_VAR
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IE52REEI.js";
|
|
4
4
|
import {
|
|
5
5
|
connect
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CXZETRPA.js";
|
|
7
7
|
import {
|
|
8
8
|
SESSION_KEY_VAR,
|
|
9
9
|
actionById
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2BLPGRLO.js";
|
|
11
11
|
|
|
12
12
|
// src/cli/action.ts
|
|
13
13
|
import { randomUUID } from "crypto";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CODEX_HOOK_VAR
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IE52REEI.js";
|
|
4
4
|
import {
|
|
5
5
|
connect,
|
|
6
6
|
sendMessageAndAwaitAck
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CXZETRPA.js";
|
|
8
8
|
|
|
9
9
|
// src/cli/send.ts
|
|
10
10
|
import { randomUUID } from "crypto";
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
readSmall,
|
|
9
9
|
repoRoot,
|
|
10
10
|
scalarValue
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5FKHISVK.js";
|
|
12
12
|
import {
|
|
13
13
|
SeatsSchema,
|
|
14
14
|
TeamNameSchema,
|
|
15
15
|
TemplateIdSchema
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2BLPGRLO.js";
|
|
17
17
|
import {
|
|
18
18
|
log
|
|
19
19
|
} from "./chunk-6IYPRUQG.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CODEX_HOOK_VAR
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IE52REEI.js";
|
|
4
4
|
import {
|
|
5
5
|
connect
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CXZETRPA.js";
|
|
7
7
|
import {
|
|
8
8
|
BRIEF_MAX
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2BLPGRLO.js";
|
|
10
10
|
|
|
11
11
|
// src/cli/handover.ts
|
|
12
12
|
import { randomUUID } from "crypto";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CODEX_HOOK_VAR
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IE52REEI.js";
|
|
4
4
|
import {
|
|
5
5
|
connect
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CXZETRPA.js";
|
|
7
7
|
import {
|
|
8
8
|
LEDGE_GIVER,
|
|
9
9
|
TASK_TEXT_MAX,
|
|
10
10
|
TASK_TITLE_MAX
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2BLPGRLO.js";
|
|
12
12
|
|
|
13
13
|
// src/cli/task.ts
|
|
14
14
|
import { randomUUID } from "crypto";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ledgeTitleRest
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IE52REEI.js";
|
|
4
4
|
import {
|
|
5
5
|
cleanTopic,
|
|
6
6
|
isArchived,
|
|
7
7
|
sessionTitle
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2BLPGRLO.js";
|
|
9
9
|
|
|
10
10
|
// src/daemon/seat.ts
|
|
11
11
|
function teammates(team, sessions) {
|
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
startServer,
|
|
10
10
|
tasksJournal,
|
|
11
11
|
teamsJournal
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EGXOBQZI.js";
|
|
13
13
|
import "./chunk-OLLQBK6N.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-QQVWFOPU.js";
|
|
15
15
|
import {
|
|
16
16
|
QUESTION_TOOLS,
|
|
17
17
|
crossSession,
|
|
@@ -26,11 +26,11 @@ import {
|
|
|
26
26
|
readPeers,
|
|
27
27
|
reduce,
|
|
28
28
|
stripNote
|
|
29
|
-
} from "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
} from "./chunk-VGAPV4DC.js";
|
|
30
|
+
import "./chunk-5FKHISVK.js";
|
|
31
31
|
import {
|
|
32
32
|
agentMessages
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-IE52REEI.js";
|
|
34
34
|
import {
|
|
35
35
|
DEFAULT_RELAY_URL,
|
|
36
36
|
DevicePollResponseSchema,
|
|
@@ -44,10 +44,10 @@ import {
|
|
|
44
44
|
SealedFrameSchema,
|
|
45
45
|
SessionSchema,
|
|
46
46
|
backendOf
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-2BLPGRLO.js";
|
|
48
48
|
import {
|
|
49
49
|
LEDGE_VERSION
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-M7364G3S.js";
|
|
51
51
|
import {
|
|
52
52
|
SERVICE,
|
|
53
53
|
inDaemonService,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runOnClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OPUIV6PR.js";
|
|
4
4
|
import {
|
|
5
5
|
CODEX_HOOK_VAR
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IE52REEI.js";
|
|
7
7
|
import {
|
|
8
8
|
connect
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-CXZETRPA.js";
|
|
10
10
|
import {
|
|
11
11
|
LEDGE_GIVER,
|
|
12
12
|
TASK_TEXT_MAX
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2BLPGRLO.js";
|
|
14
14
|
import "./chunk-HOOHS3MX.js";
|
|
15
15
|
import "./chunk-U67V476Y.js";
|
|
16
16
|
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
handoverArgs,
|
|
4
4
|
handoverOnClient,
|
|
5
5
|
runHandover
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-SUBKKCGA.js";
|
|
7
|
+
import "./chunk-IE52REEI.js";
|
|
8
|
+
import "./chunk-CXZETRPA.js";
|
|
9
|
+
import "./chunk-2BLPGRLO.js";
|
|
10
10
|
import "./chunk-HOOHS3MX.js";
|
|
11
11
|
import "./chunk-U67V476Y.js";
|
|
12
12
|
export {
|
|
@@ -11,37 +11,37 @@ import {
|
|
|
11
11
|
takeImages,
|
|
12
12
|
teamChangeLine,
|
|
13
13
|
teammates
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-VGAPV4DC.js";
|
|
15
15
|
import {
|
|
16
16
|
findRole
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5FKHISVK.js";
|
|
18
18
|
import {
|
|
19
19
|
parseLedgeCommand,
|
|
20
20
|
readOnClient,
|
|
21
21
|
sendOnClient
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Q6RMLRPI.js";
|
|
23
23
|
import {
|
|
24
24
|
taskOnClient
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-U7J2AN3F.js";
|
|
26
26
|
import {
|
|
27
27
|
handoverOnClient
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-SUBKKCGA.js";
|
|
29
29
|
import {
|
|
30
30
|
CODEX_ENV_VAR,
|
|
31
31
|
CODEX_HOOK_VAR,
|
|
32
32
|
codexPlan
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-IE52REEI.js";
|
|
34
34
|
import {
|
|
35
35
|
formatWho
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-YHZIHIGI.js";
|
|
37
37
|
import {
|
|
38
38
|
connect,
|
|
39
39
|
sendMessageAndAwaitAck
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-CXZETRPA.js";
|
|
41
41
|
import {
|
|
42
42
|
MESSAGE_MAX,
|
|
43
43
|
taskClosed
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-2BLPGRLO.js";
|
|
45
45
|
import {
|
|
46
46
|
log
|
|
47
47
|
} from "./chunk-6IYPRUQG.js";
|
package/dist/cli/index.js
CHANGED
|
@@ -25,7 +25,7 @@ async function hookMain(args) {
|
|
|
25
25
|
try {
|
|
26
26
|
const chunks = [];
|
|
27
27
|
for await (const c of process.stdin) chunks.push(c);
|
|
28
|
-
const { runHook } = await import("./hook-
|
|
28
|
+
const { runHook } = await import("./hook-G7UA6MB6.js");
|
|
29
29
|
const out = await runHook(event, Buffer.concat(chunks).toString("utf8"), { tool });
|
|
30
30
|
if (out) process.stdout.write(`${out}
|
|
31
31
|
`);
|
|
@@ -37,7 +37,7 @@ async function main(argv) {
|
|
|
37
37
|
const [cmd, ...rest] = argv;
|
|
38
38
|
switch (cmd) {
|
|
39
39
|
case "daemon": {
|
|
40
|
-
const { startDaemon } = await import("./daemon-
|
|
40
|
+
const { startDaemon } = await import("./daemon-UJTMG3D4.js");
|
|
41
41
|
await startDaemon();
|
|
42
42
|
await new Promise(() => {
|
|
43
43
|
});
|
|
@@ -45,7 +45,7 @@ async function main(argv) {
|
|
|
45
45
|
}
|
|
46
46
|
case "--version":
|
|
47
47
|
case "version": {
|
|
48
|
-
const { LEDGE_VERSION } = await import("./version-
|
|
48
|
+
const { LEDGE_VERSION } = await import("./version-35XLTEMX.js");
|
|
49
49
|
console.log(LEDGE_VERSION);
|
|
50
50
|
return 0;
|
|
51
51
|
}
|
|
@@ -66,74 +66,74 @@ async function main(argv) {
|
|
|
66
66
|
return r.ok ? 0 : 1;
|
|
67
67
|
}
|
|
68
68
|
case "status": {
|
|
69
|
-
const { printStatus } = await import("./status-
|
|
69
|
+
const { printStatus } = await import("./status-NT5ZUYM6.js");
|
|
70
70
|
console.log(await printStatus());
|
|
71
71
|
return 0;
|
|
72
72
|
}
|
|
73
73
|
case "who": {
|
|
74
|
-
const { printWho } = await import("./who-
|
|
74
|
+
const { printWho } = await import("./who-4FRIGYVT.js");
|
|
75
75
|
console.log(await printWho());
|
|
76
76
|
return 0;
|
|
77
77
|
}
|
|
78
78
|
case "send": {
|
|
79
|
-
const { sendMessage } = await import("./send-
|
|
79
|
+
const { sendMessage } = await import("./send-55RWY4LZ.js");
|
|
80
80
|
const r = await sendMessage(rest);
|
|
81
81
|
console.log(r.line);
|
|
82
82
|
return r.code;
|
|
83
83
|
}
|
|
84
84
|
case "read": {
|
|
85
|
-
const { readMessage } = await import("./send-
|
|
85
|
+
const { readMessage } = await import("./send-55RWY4LZ.js");
|
|
86
86
|
const r = await readMessage(rest);
|
|
87
87
|
console.log(r.line);
|
|
88
88
|
return r.code;
|
|
89
89
|
}
|
|
90
90
|
case "task": {
|
|
91
|
-
const { runTask } = await import("./task-
|
|
91
|
+
const { runTask } = await import("./task-GABQ4SKY.js");
|
|
92
92
|
const r = await runTask(rest);
|
|
93
93
|
console.log(r.line);
|
|
94
94
|
return r.code;
|
|
95
95
|
}
|
|
96
96
|
case "decide": {
|
|
97
|
-
const { runDecide } = await import("./decide-
|
|
97
|
+
const { runDecide } = await import("./decide-3B6LGVNN.js");
|
|
98
98
|
const r = await runDecide(rest);
|
|
99
99
|
console.log(r.line);
|
|
100
100
|
return r.code;
|
|
101
101
|
}
|
|
102
102
|
case "handover": {
|
|
103
|
-
const { runHandover } = await import("./handover-
|
|
103
|
+
const { runHandover } = await import("./handover-IX7EFDIP.js");
|
|
104
104
|
const r = await runHandover(rest);
|
|
105
105
|
console.log(r.line);
|
|
106
106
|
return r.code;
|
|
107
107
|
}
|
|
108
108
|
case "close": {
|
|
109
|
-
const { runClose } = await import("./action-
|
|
109
|
+
const { runClose } = await import("./action-HUKZUHQ7.js");
|
|
110
110
|
const r = await runClose(rest);
|
|
111
111
|
console.log(r.line);
|
|
112
112
|
return r.code;
|
|
113
113
|
}
|
|
114
114
|
case "team": {
|
|
115
|
-
const { runTeam } = await import("./team-
|
|
115
|
+
const { runTeam } = await import("./team-IK2RYXW2.js");
|
|
116
116
|
const r = await runTeam(rest);
|
|
117
117
|
console.log(r.line);
|
|
118
118
|
return r.code;
|
|
119
119
|
}
|
|
120
120
|
case "tui": {
|
|
121
|
-
const { runTui } = await import("./tui-
|
|
121
|
+
const { runTui } = await import("./tui-AMW2XAH5.js");
|
|
122
122
|
return runTui(rest);
|
|
123
123
|
}
|
|
124
124
|
case "bridge": {
|
|
125
|
-
const { bridge } = await import("./bridge-
|
|
125
|
+
const { bridge } = await import("./bridge-LFKUCKQP.js");
|
|
126
126
|
await bridge();
|
|
127
127
|
return 0;
|
|
128
128
|
}
|
|
129
129
|
case "claude":
|
|
130
130
|
case "codex":
|
|
131
131
|
case "cursor": {
|
|
132
|
-
const { launch } = await import("./launch-
|
|
132
|
+
const { launch } = await import("./launch-2GZIRF3A.js");
|
|
133
133
|
return launch(cmd, rest);
|
|
134
134
|
}
|
|
135
135
|
case "attach": {
|
|
136
|
-
const { attach } = await import("./attach-
|
|
136
|
+
const { attach } = await import("./attach-ILMHKRUI.js");
|
|
137
137
|
return attach(rest.find((a) => !a.startsWith("--")) ?? "", { readOnly: rest.includes("--read-only") });
|
|
138
138
|
}
|
|
139
139
|
default:
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
launch,
|
|
7
7
|
parseLaunchArgs,
|
|
8
8
|
roleArgs
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-5JNJFBKZ.js";
|
|
10
|
+
import "./chunk-EGXOBQZI.js";
|
|
11
11
|
import "./chunk-OLLQBK6N.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-QQVWFOPU.js";
|
|
13
|
+
import "./chunk-VGAPV4DC.js";
|
|
14
|
+
import "./chunk-5FKHISVK.js";
|
|
15
15
|
import {
|
|
16
16
|
agentEnv,
|
|
17
17
|
exitFile
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-IE52REEI.js";
|
|
19
|
+
import "./chunk-CXZETRPA.js";
|
|
20
|
+
import "./chunk-2BLPGRLO.js";
|
|
21
|
+
import "./chunk-M7364G3S.js";
|
|
22
22
|
import "./chunk-NLL2EQJ2.js";
|
|
23
23
|
import "./chunk-6IYPRUQG.js";
|
|
24
24
|
import "./chunk-HOOHS3MX.js";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
readOnClient,
|
|
5
5
|
sendMessage,
|
|
6
6
|
sendOnClient
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-Q6RMLRPI.js";
|
|
8
|
+
import "./chunk-IE52REEI.js";
|
|
9
|
+
import "./chunk-CXZETRPA.js";
|
|
10
|
+
import "./chunk-2BLPGRLO.js";
|
|
11
11
|
import "./chunk-HOOHS3MX.js";
|
|
12
12
|
import "./chunk-U67V476Y.js";
|
|
13
13
|
export {
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
runTask,
|
|
5
5
|
taskArgs,
|
|
6
6
|
taskOnClient
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-U7J2AN3F.js";
|
|
8
|
+
import "./chunk-IE52REEI.js";
|
|
9
|
+
import "./chunk-CXZETRPA.js";
|
|
10
|
+
import "./chunk-2BLPGRLO.js";
|
|
11
11
|
import "./chunk-HOOHS3MX.js";
|
|
12
12
|
import "./chunk-U67V476Y.js";
|
|
13
13
|
export {
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
callerOf,
|
|
5
5
|
resultLine,
|
|
6
6
|
runOnClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OPUIV6PR.js";
|
|
8
8
|
import {
|
|
9
9
|
listDefinitions
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-QQVWFOPU.js";
|
|
11
|
+
import "./chunk-5FKHISVK.js";
|
|
12
|
+
import "./chunk-IE52REEI.js";
|
|
13
13
|
import {
|
|
14
14
|
connect
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CXZETRPA.js";
|
|
16
16
|
import {
|
|
17
17
|
RoleIdSchema,
|
|
18
18
|
SeatsSchema,
|
|
19
19
|
ToolSchema
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2BLPGRLO.js";
|
|
21
21
|
import "./chunk-6IYPRUQG.js";
|
|
22
22
|
import "./chunk-HOOHS3MX.js";
|
|
23
23
|
import "./chunk-U67V476Y.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
attachEnv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5JNJFBKZ.js";
|
|
4
4
|
import {
|
|
5
5
|
imageInfo
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EGXOBQZI.js";
|
|
7
7
|
import {
|
|
8
8
|
MAX_FRAME
|
|
9
9
|
} from "./chunk-OLLQBK6N.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-QQVWFOPU.js";
|
|
11
|
+
import "./chunk-VGAPV4DC.js";
|
|
12
|
+
import "./chunk-5FKHISVK.js";
|
|
13
|
+
import "./chunk-IE52REEI.js";
|
|
14
|
+
import "./chunk-CXZETRPA.js";
|
|
15
15
|
import {
|
|
16
16
|
ACTION_ERROR_CODES,
|
|
17
17
|
ATTACHMENTS_MAX,
|
|
@@ -44,8 +44,8 @@ import {
|
|
|
44
44
|
readDaemonToken,
|
|
45
45
|
taskClosed,
|
|
46
46
|
transmissions
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-2BLPGRLO.js";
|
|
48
|
+
import "./chunk-M7364G3S.js";
|
|
49
49
|
import "./chunk-NLL2EQJ2.js";
|
|
50
50
|
import "./chunk-6IYPRUQG.js";
|
|
51
51
|
import {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatWho,
|
|
3
3
|
printWho
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-YHZIHIGI.js";
|
|
5
|
+
import "./chunk-CXZETRPA.js";
|
|
6
|
+
import "./chunk-2BLPGRLO.js";
|
|
7
7
|
import "./chunk-HOOHS3MX.js";
|
|
8
8
|
import "./chunk-U67V476Y.js";
|
|
9
9
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paradow/ledge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.0",
|
|
4
4
|
"description": "Follow and answer your WSL agent sessions (Claude Code, Codex, Cursor Agent) from the Ledge island on Windows.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": { "ledge": "dist/cli/index.js" },
|