@conveno/cli 0.2.0-rc.3 → 0.2.0-rc.4
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/{acp-BD19nka6.js → acp-Bs2yS0Qg.js} +2 -2
- package/dist/bin.js +2 -2
- package/dist/daemon.js +35 -4
- package/dist/{dist-DIJhGLVn.js → dist-BmpWfYuM.js} +1 -1
- package/dist/{dist-B7znzc5U.js → dist-CfwMkSGH.js} +1 -1
- package/dist/{dist-B3mH66Y1.js → dist-CiE50AoI.js} +2 -1
- package/dist/{dist-BiAm0SS8.js → dist-CuStS_nO.js} +3 -3
- package/dist/{dist-M9Gs7e_K.js → dist-DUqXHTRg.js} +11 -0
- package/dist/{doctor-D1sP9gCl.js → doctor-Bckon1ju.js} +2 -2
- package/dist/{hook-W7tV131z.js → hook-DUMp43Xn.js} +1 -1
- package/dist/{hook-entry-CvmuMVWY.js → hook-entry-C-HTnddc.js} +4 -4
- package/dist/hook-entry-DP6eq6qr.js +1 -0
- package/dist/{main-Cf0q06gR.js → main-ByyF0srt.js} +8 -8
- package/dist/{run-BlRhoflZ.js → run-BEhIahUS.js} +2333 -660
- package/dist/{runtime-BPG36vYD.js → runtime-BS-SUGVR.js} +7 -7
- package/package.json +15 -15
- package/dist/hook-entry-B8Iiwe99.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
2
|
-
import { i as stopRequestPath, n as parseTurns, r as runAcpHostFromFile, t as killProcessTree } from "./dist-
|
|
3
|
-
import { Ut as spawnRecordPath, jt as readSpawnRecord, m as acpTurnsPath } from "./dist-
|
|
2
|
+
import { i as stopRequestPath, n as parseTurns, r as runAcpHostFromFile, t as killProcessTree } from "./dist-CuStS_nO.js";
|
|
3
|
+
import { Ut as spawnRecordPath, jt as readSpawnRecord, m as acpTurnsPath } from "./dist-DUqXHTRg.js";
|
|
4
4
|
import { i as parseFlags, l as fail, o as cmd, t as COMMANDS, u as localStamp } from "./args-DEYV4Ran.js";
|
|
5
5
|
// src/acp.ts
|
|
6
6
|
/** How long `conveno stop` waits for a worker to end by itself before it ends the process tree. */
|
package/dist/bin.js
CHANGED
|
@@ -26,9 +26,9 @@ for (const stream of [process.stdout, process.stderr]) stream.on("error", (err)
|
|
|
26
26
|
});
|
|
27
27
|
try {
|
|
28
28
|
let code;
|
|
29
|
-
if (isHook) code = await (await import("./hook-entry-
|
|
29
|
+
if (isHook) code = await (await import("./hook-entry-DP6eq6qr.js")).runHookEntry(argv.slice(1));
|
|
30
30
|
else {
|
|
31
|
-
const [{ main }, { createRuntimeCtx }] = await Promise.all([import("./main-
|
|
31
|
+
const [{ main }, { createRuntimeCtx }] = await Promise.all([import("./main-ByyF0srt.js"), import("./runtime-BS-SUGVR.js")]);
|
|
32
32
|
code = await main(argv, createRuntimeCtx());
|
|
33
33
|
}
|
|
34
34
|
if (isHook) process.exit(code);
|
package/dist/daemon.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { homedir, hostname, userInfo } from "node:os";
|
|
3
|
-
import { $t as turnHops, A as currentAccessToken, An as defaultSocketPath, B as effectiveHolder, Bn as newTicketId, C as claimOrchestrator, Ct as proofsMatch, Dn as Ticket, E as clientProof, Et as readAncestry, F as defaultProcessIo, Fn as makeEventNotification, Gn as socketPathTooLongMessage, H as entriesNewestFirst, Hn as parseRelayFrame, Ht as samePath, I as describeToolCall, In as makeResult, Jt as tailJsonl, Kt as statusAfterLiveness, L as detectRepo, Ln as newDeviceId, M as dataDir, N as dataPaths, Nn as isSocketPathTooLong, Ot as readHeadLine, P as decideAutoContinue, Pn as makeError, Q as holderAfterDeparture, Qt as tooManyUnreadMessage, Rn as newMessageId, Rt as resolveRecipient, S as bindAccountDevice, Sn as SessionId, T as classifyPermission, Tt as readAccountTokens, U as evaluateLiveness, Un as safeParse, Vn as parseIpcRequest, Wn as sanitizeLine, Xt as takeWithinBytes, Z as generateSessionName, Zt as toIso, _ as asString, _n as PERMISSION_ANSWERS, _t as pendingForInjection, at as jwtClaim, b as autoLimitsFromEnv, bn as RpcErrorCode, cn as DeviceId, ct as markDelivered, d as ackEntries, dt as notFound, en as unsupportedTranscript, fn as HUMAN_ANSWERER, gn as OWNER_SESSION_ID, gt as pauseLabel, hn as ORCHESTRATOR_ALIAS, j as daemonProof, jn as encodeFrame, k as createWmiWalker, kn as createLineDecoder, kt as readInbox, ln as EVENT_NAMES, lt as nameMatchesPattern, n as AccountError, nn as validateRename, p as acpTranscript, pn as Message, r as ConvenoError, rt as isRecord, s as RESPONSE_BUDGET_BYTES, tt as isOnline, ut as newAuthNonce, vn as PROTOCOL_VERSION, x as baseName, xt as planSpawn, y as autoCandidates, yn as RelayPayload, zn as newSessionId } from "./dist-
|
|
3
|
+
import { $t as turnHops, A as currentAccessToken, An as defaultSocketPath, B as effectiveHolder, Bn as newTicketId, C as claimOrchestrator, Ct as proofsMatch, Dn as Ticket, E as clientProof, Et as readAncestry, F as defaultProcessIo, Fn as makeEventNotification, Gn as socketPathTooLongMessage, H as entriesNewestFirst, Hn as parseRelayFrame, Ht as samePath, I as describeToolCall, In as makeResult, Jt as tailJsonl, Kt as statusAfterLiveness, L as detectRepo, Ln as newDeviceId, M as dataDir, N as dataPaths, Nn as isSocketPathTooLong, Ot as readHeadLine, P as decideAutoContinue, Pn as makeError, Q as holderAfterDeparture, Qt as tooManyUnreadMessage, Rn as newMessageId, Rt as resolveRecipient, S as bindAccountDevice, Sn as SessionId, T as classifyPermission, Tt as readAccountTokens, U as evaluateLiveness, Un as safeParse, Vn as parseIpcRequest, Wn as sanitizeLine, Xt as takeWithinBytes, Z as generateSessionName, Zt as toIso, _ as asString, _n as PERMISSION_ANSWERS, _t as pendingForInjection, at as jwtClaim, b as autoLimitsFromEnv, bn as RpcErrorCode, cn as DeviceId, ct as markDelivered, d as ackEntries, dt as notFound, en as unsupportedTranscript, fn as HUMAN_ANSWERER, gn as OWNER_SESSION_ID, gt as pauseLabel, hn as ORCHESTRATOR_ALIAS, j as daemonProof, jn as encodeFrame, k as createWmiWalker, kn as createLineDecoder, kt as readInbox, ln as EVENT_NAMES, lt as nameMatchesPattern, n as AccountError, nn as validateRename, p as acpTranscript, pn as Message, r as ConvenoError, rt as isRecord, s as RESPONSE_BUDGET_BYTES, tt as isOnline, ut as newAuthNonce, vn as PROTOCOL_VERSION, x as baseName, xt as planSpawn, y as autoCandidates, yn as RelayPayload, zn as newSessionId } from "./dist-DUqXHTRg.js";
|
|
4
4
|
import { randomBytes } from "node:crypto";
|
|
5
5
|
import { appendFileSync, chmodSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, statSync, unlinkSync, writeFileSync } from "node:fs";
|
|
6
6
|
import { connect, createServer } from "node:net";
|
|
7
7
|
import { dirname, join, posix, win32 } from "node:path";
|
|
8
8
|
import { n as redactWithReport } from "./dist-DcmKjrmu.js";
|
|
9
|
-
import { _ as sasMatches, a as JoinerPairing, b as signRelayHello, c as decodePairMessage, d as forkPoint, f as generateIdentity, g as publicRecord, h as parseIdentity, i as InviterPairing, l as deviceFingerprint, m as openEnvelope, n as ENVELOPE_MAX_AGE_MS, o as appendRevoke, p as headMatches, r as ENVELOPE_MAX_FUTURE_MS, s as chainHead, t as CryptoError, u as encodePairMessage, v as sealEnvelope, x as verifyChain, y as serializeIdentity } from "./dist-
|
|
9
|
+
import { _ as sasMatches, a as JoinerPairing, b as signRelayHello, c as decodePairMessage, d as forkPoint, f as generateIdentity, g as publicRecord, h as parseIdentity, i as InviterPairing, l as deviceFingerprint, m as openEnvelope, n as ENVELOPE_MAX_AGE_MS, o as appendRevoke, p as headMatches, r as ENVELOPE_MAX_FUTURE_MS, s as chainHead, t as CryptoError, u as encodePairMessage, v as sealEnvelope, x as verifyChain, y as serializeIdentity } from "./dist-BmpWfYuM.js";
|
|
10
10
|
import { execFileSync } from "node:child_process";
|
|
11
11
|
import { DatabaseSync } from "node:sqlite";
|
|
12
|
-
import { c as claudeTranscript, i as codexTranscript, t as openCodeTranscript } from "./dist-
|
|
12
|
+
import { c as claudeTranscript, i as codexTranscript, t as openCodeTranscript } from "./dist-CfwMkSGH.js";
|
|
13
13
|
import { readFile, readdir, stat } from "node:fs/promises";
|
|
14
14
|
// ../daemon/src/lifecycle.ts
|
|
15
15
|
/** Thrown when another Conveno daemon already owns the lock file or answers on the socket. */
|
|
@@ -2170,6 +2170,26 @@ var Store = class {
|
|
|
2170
2170
|
if (n > 0) this.run("DELETE FROM messages WHERE id NOT IN (SELECT message_id FROM mailbox)");
|
|
2171
2171
|
return n;
|
|
2172
2172
|
}
|
|
2173
|
+
/**
|
|
2174
|
+
* Messages a session received (it has a mailbox entry) or sent, newest first, optionally only
|
|
2175
|
+
* those older than `before`. Message ids are ULIDs, so id order is time order.
|
|
2176
|
+
*/
|
|
2177
|
+
messagesOf(sessionId, limit, before) {
|
|
2178
|
+
return this.all(`SELECT m.json FROM messages m
|
|
2179
|
+
WHERE (m.id IN (SELECT message_id FROM mailbox WHERE session_id = ?)
|
|
2180
|
+
OR json_extract(m.json, '$.from') = ?)
|
|
2181
|
+
${before ? "AND m.id < ?" : ""}
|
|
2182
|
+
ORDER BY m.id DESC LIMIT ?`, ...before ? [
|
|
2183
|
+
sessionId,
|
|
2184
|
+
sessionId,
|
|
2185
|
+
before,
|
|
2186
|
+
limit
|
|
2187
|
+
] : [
|
|
2188
|
+
sessionId,
|
|
2189
|
+
sessionId,
|
|
2190
|
+
limit
|
|
2191
|
+
]).map((r) => Message.parse(JSON.parse(r.json)));
|
|
2192
|
+
}
|
|
2173
2193
|
/** Mailbox entries of one session, optionally limited to the given states or message ids. */
|
|
2174
2194
|
entries(sessionId, filter = {}) {
|
|
2175
2195
|
let sql = `SELECT m.json, b.state, b.queued_at, b.delivered_at, b.read_at, b.acked_at, b.hops
|
|
@@ -2447,7 +2467,7 @@ var TicketService = class {
|
|
|
2447
2467
|
}
|
|
2448
2468
|
};
|
|
2449
2469
|
// ../daemon/src/server.ts
|
|
2450
|
-
const DAEMON_VERSION = "0.2.0-rc.
|
|
2470
|
+
const DAEMON_VERSION = "0.2.0-rc.4";
|
|
2451
2471
|
/** A connection that has not finished the handshake by then is closed. */
|
|
2452
2472
|
const AUTH_TIMEOUT_MS = 5e3;
|
|
2453
2473
|
/** Unread messages one session may hold. */
|
|
@@ -2633,6 +2653,7 @@ var Daemon = class {
|
|
|
2633
2653
|
case "daemon.shutdown": return { ok: true };
|
|
2634
2654
|
case "orchestrator.claim": return this.claim(req.params.sessionId);
|
|
2635
2655
|
case "message.send": return this.sendMessage(req.params);
|
|
2656
|
+
case "message.history": return this.messageHistory(conn, req.params);
|
|
2636
2657
|
case "owner.inbox": return this.ownerInbox(conn, req.params);
|
|
2637
2658
|
case "owner.ack": return this.ownerAck(conn, req.params);
|
|
2638
2659
|
case "owner.send": return this.ownerSend(conn, req.params);
|
|
@@ -3151,6 +3172,16 @@ var Daemon = class {
|
|
|
3151
3172
|
this.requireCli(conn, "read the owner's messages");
|
|
3152
3173
|
return this.readInboxOf(OWNER_SESSION_ID, p.unreadOnly, p.limit, true);
|
|
3153
3174
|
}
|
|
3175
|
+
messageHistory(conn, p) {
|
|
3176
|
+
this.requireCli(conn, "read a session's message history");
|
|
3177
|
+
if (!(p.session === OWNER_SESSION_ID || this.store.getSession(p.session) !== void 0 || (this.relay?.remoteSessions?.() ?? []).some((s) => s.id === p.session))) throw new ConvenoError(RpcErrorCode.NotFound, `No session with id ${p.session}.`);
|
|
3178
|
+
const rows = this.store.messagesOf(p.session, p.limit + 1, p.before);
|
|
3179
|
+
const more = rows.length > p.limit;
|
|
3180
|
+
return {
|
|
3181
|
+
messages: rows.slice(0, p.limit).reverse(),
|
|
3182
|
+
more
|
|
3183
|
+
};
|
|
3184
|
+
}
|
|
3154
3185
|
ownerAck(conn, p) {
|
|
3155
3186
|
this.requireCli(conn, "mark the owner's messages as handled");
|
|
3156
3187
|
return this.ackFor(OWNER_SESSION_ID, p.ids);
|
|
@@ -2,7 +2,7 @@ import { randomBytes as randomBytes$1 } from "@noble/ciphers/utils.js";
|
|
|
2
2
|
import { equalBytes } from "@noble/curves/utils.js";
|
|
3
3
|
import { sha256 } from "@noble/hashes/sha2.js";
|
|
4
4
|
import { bytesToHex, concatBytes, utf8ToBytes } from "@noble/hashes/utils.js";
|
|
5
|
-
import { $n as string, Kn as _enum, Qn as object, Xn as literal, Yn as discriminatedUnion, Zn as number, cn as DeviceId, qn as array } from "./dist-
|
|
5
|
+
import { $n as string, Kn as _enum, Qn as object, Xn as literal, Yn as discriminatedUnion, Zn as number, cn as DeviceId, qn as array } from "./dist-DUqXHTRg.js";
|
|
6
6
|
import { ed25519, x25519 } from "@noble/curves/ed25519.js";
|
|
7
7
|
import { chacha20poly1305 } from "@noble/ciphers/chacha.js";
|
|
8
8
|
import { expand, extract } from "@noble/hashes/hkdf.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ft as relayPermission, Gt as startTurnContext, H as entriesNewestFirst, Ht as samePath, I as describeToolCall, Jt as tailJsonl, Mt as readTailLines, Ot as readHeadLine, Pt as recordCliInfo, V as endTurnContinuation, X as formatPermissionDecision, Zt as toIso, _ as asString, dt as notFound, it as isTranscriptPath, pt as parseCliVersion, qt as subdirsNewestFirst, rn as waitForWork, rt as isRecord, vt as pendingHookContext, yt as pickNewestSince } from "./dist-
|
|
1
|
+
import { Ft as relayPermission, Gt as startTurnContext, H as entriesNewestFirst, Ht as samePath, I as describeToolCall, Jt as tailJsonl, Mt as readTailLines, Ot as readHeadLine, Pt as recordCliInfo, V as endTurnContinuation, X as formatPermissionDecision, Zt as toIso, _ as asString, dt as notFound, it as isTranscriptPath, pt as parseCliVersion, qt as subdirsNewestFirst, rn as waitForWork, rt as isRecord, vt as pendingHookContext, yt as pickNewestSince } from "./dist-DUqXHTRg.js";
|
|
2
2
|
import { isAbsolute, join } from "node:path";
|
|
3
3
|
import { readFile, stat } from "node:fs/promises";
|
|
4
4
|
import { applyEdits, modify, parse, printParseErrorCode } from "jsonc-parser";
|
|
@@ -3,7 +3,7 @@ import { mkdir, open, readFile, rm, stat } from "node:fs/promises";
|
|
|
3
3
|
import { createConnection } from "node:net";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
5
|
import { dirname, join } from "node:path";
|
|
6
|
-
import { An as defaultSocketPath, Ct as proofsMatch, E as clientProof, Gn as socketPathTooLongMessage, M as dataDir, Mn as ipcMethods, N as dataPaths, Nn as isSocketPathTooLong, bn as RpcErrorCode, dn as EventPayload, j as daemonProof, jn as encodeFrame, kn as createLineDecoder, r as ConvenoError, ut as newAuthNonce, vn as PROTOCOL_VERSION, xn as RpcResponse } from "./dist-
|
|
6
|
+
import { An as defaultSocketPath, Ct as proofsMatch, E as clientProof, Gn as socketPathTooLongMessage, M as dataDir, Mn as ipcMethods, N as dataPaths, Nn as isSocketPathTooLong, bn as RpcErrorCode, dn as EventPayload, j as daemonProof, jn as encodeFrame, kn as createLineDecoder, r as ConvenoError, ut as newAuthNonce, vn as PROTOCOL_VERSION, xn as RpcResponse } from "./dist-DUqXHTRg.js";
|
|
7
7
|
// ../client/dist/index.js
|
|
8
8
|
const DEFAULT_REQUEST_TIMEOUT_MS = 5e3;
|
|
9
9
|
const DEFAULT_START_TIMEOUT_MS = 1e4;
|
|
@@ -31,6 +31,7 @@ const CLIENT_METHODS = [
|
|
|
31
31
|
"owner.inbox",
|
|
32
32
|
"owner.ack",
|
|
33
33
|
"owner.send",
|
|
34
|
+
"message.history",
|
|
34
35
|
"session.setCliInfo",
|
|
35
36
|
"session.setPeekable",
|
|
36
37
|
"session.peek",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as connect } from "./dist-
|
|
2
|
-
import { $ as isAllowed, Sn as SessionId, Yt as takeAcpLaunchFile, bn as RpcErrorCode, ft as parseAllowPatterns, q as formatContinuation, r as ConvenoError, sn as CliKind, tn as updateSpawnRecord } from "./dist-
|
|
1
|
+
import { n as connect } from "./dist-CiE50AoI.js";
|
|
2
|
+
import { $ as isAllowed, Sn as SessionId, Yt as takeAcpLaunchFile, bn as RpcErrorCode, ft as parseAllowPatterns, q as formatContinuation, r as ConvenoError, sn as CliKind, tn as updateSpawnRecord } from "./dist-DUqXHTRg.js";
|
|
3
3
|
import { randomBytes } from "node:crypto";
|
|
4
4
|
import { chmodSync, existsSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
5
5
|
import { Readable, Writable } from "node:stream";
|
|
@@ -173,7 +173,7 @@ function parseTurns(text) {
|
|
|
173
173
|
}
|
|
174
174
|
return out;
|
|
175
175
|
}
|
|
176
|
-
const HOST_VERSION = "0.2.0-rc.
|
|
176
|
+
const HOST_VERSION = "0.2.0-rc.4";
|
|
177
177
|
/** A stop request file: `conveno stop` writes it next to the spawn record. */
|
|
178
178
|
const stopRequestPath = (recordPath) => recordPath.replace(/\.json$/, ".stop");
|
|
179
179
|
function withTimeout(p, ms, what) {
|
|
@@ -6698,6 +6698,17 @@ const ipcMethods = {
|
|
|
6698
6698
|
}),
|
|
6699
6699
|
result: SendResult
|
|
6700
6700
|
},
|
|
6701
|
+
"message.history": {
|
|
6702
|
+
params: object({
|
|
6703
|
+
session: SessionId,
|
|
6704
|
+
limit: number().int().min(1).max(200).default(50),
|
|
6705
|
+
before: MessageId.optional()
|
|
6706
|
+
}),
|
|
6707
|
+
result: object({
|
|
6708
|
+
messages: array(Message),
|
|
6709
|
+
more: boolean()
|
|
6710
|
+
})
|
|
6711
|
+
},
|
|
6701
6712
|
"ticket.create": {
|
|
6702
6713
|
params: object({
|
|
6703
6714
|
...sid,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { At as readSettings, D as compatStatus, G as fetchAccountStatus, It as requestDeviceCode, K as findOnPath, Lt as resolveAcpProgram, N as dataPaths, O as completeLogin, St as pollDeviceCode, Tt as readAccountTokens, bt as pinnedAdapter, f as acpOverrideVar, g as adapterNpxCommand, h as adapterInstallCommand, in as writeSettings, l as SPAWN_TABLE, n as AccountError, on as CLI_KINDS, st as logoutAccount } from "./dist-
|
|
2
|
-
import { t as ClientError } from "./dist-
|
|
1
|
+
import { At as readSettings, D as compatStatus, G as fetchAccountStatus, It as requestDeviceCode, K as findOnPath, Lt as resolveAcpProgram, N as dataPaths, O as completeLogin, St as pollDeviceCode, Tt as readAccountTokens, bt as pinnedAdapter, f as acpOverrideVar, g as adapterNpxCommand, h as adapterInstallCommand, in as writeSettings, l as SPAWN_TABLE, n as AccountError, on as CLI_KINDS, st as logoutAccount } from "./dist-DUqXHTRg.js";
|
|
2
|
+
import { t as ClientError } from "./dist-CiE50AoI.js";
|
|
3
3
|
import { a as closest, c as errorBlock, d as plainError, f as plural, h as warnBlock, i as parseFlags, l as fail, m as tilde, o as cmd, p as seconds, s as columns, t as COMMANDS, u as localStamp } from "./args-DEYV4Ran.js";
|
|
4
4
|
import { n as connectOpts, t as adapterEnv } from "./ctx-CDLE-2f2.js";
|
|
5
5
|
import { basename, dirname, join } from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { homedir } from "node:os";
|
|
2
2
|
import { join } from "node:path";
|
|
3
|
-
import { Et as readAncestry, Gt as startTurnContext, M as dataDir, R as dropFromList, V as endTurnContinuation, Vt as sameJson, W as existedBefore, et as isObject, ot as loadJson, pt as parseCliVersion, vt as pendingHookContext, wt as putInList, z as editJson } from "./dist-
|
|
4
|
-
import { a as Za, n as opencodeAdapter, o as cs, r as codexAdapter, s as claudeAdapter } from "./dist-
|
|
3
|
+
import { Et as readAncestry, Gt as startTurnContext, M as dataDir, R as dropFromList, V as endTurnContinuation, Vt as sameJson, W as existedBefore, et as isObject, ot as loadJson, pt as parseCliVersion, vt as pendingHookContext, wt as putInList, z as editJson } from "./dist-DUqXHTRg.js";
|
|
4
|
+
import { a as Za, n as opencodeAdapter, o as cs, r as codexAdapter, s as claudeAdapter } from "./dist-CfwMkSGH.js";
|
|
5
5
|
import { readFile } from "node:fs/promises";
|
|
6
|
-
import { n as connect } from "./dist-
|
|
7
|
-
import { t as runHook } from "./hook-
|
|
6
|
+
import { n as connect } from "./dist-CiE50AoI.js";
|
|
7
|
+
import { t as runHook } from "./hook-DUMp43Xn.js";
|
|
8
8
|
// ../adapters/antigravity/dist/index.js
|
|
9
9
|
const SERVER_NAME$3 = "conveno";
|
|
10
10
|
/** The name of our entry in hooks.json. Antigravity keys hooks by an arbitrary name. */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { i as runHookEntry } from "./hook-entry-C-HTnddc.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Bt as runLaunchFile, Cn as SessionName, N as dataPaths, Nt as realSpawnDeps, On as TicketId, Sn as SessionId, Tn as SessionNamePattern, Wn as sanitizeLine, Wt as spawnSession, an as AUTO_LIMIT_MAX, bn as RpcErrorCode, c as SPAWN_CLIS, gt as pauseLabel, l as SPAWN_TABLE, on as CLI_KINDS, r as ConvenoError, u as SpawnError, wn as SessionNameInput } from "./dist-
|
|
2
|
-
import { C as runLogout, S as runLogin, _ as runDevices, a as detectAll, c as staleFailure, d as listManifests, f as markRestored, i as confirmAndApply, l as StaleError, m as restoreEntry, n as runDoctor, o as reportFailures, p as previewRestore, r as collectPlans, s as runInit, u as applyChanges, v as runRelay, x as runAccount, y as daemonProblem } from "./doctor-
|
|
1
|
+
import { Bt as runLaunchFile, Cn as SessionName, N as dataPaths, Nt as realSpawnDeps, On as TicketId, Sn as SessionId, Tn as SessionNamePattern, Wn as sanitizeLine, Wt as spawnSession, an as AUTO_LIMIT_MAX, bn as RpcErrorCode, c as SPAWN_CLIS, gt as pauseLabel, l as SPAWN_TABLE, on as CLI_KINDS, r as ConvenoError, u as SpawnError, wn as SessionNameInput } from "./dist-DUqXHTRg.js";
|
|
2
|
+
import { C as runLogout, S as runLogin, _ as runDevices, a as detectAll, c as staleFailure, d as listManifests, f as markRestored, i as confirmAndApply, l as StaleError, m as restoreEntry, n as runDoctor, o as reportFailures, p as previewRestore, r as collectPlans, s as runInit, u as applyChanges, v as runRelay, x as runAccount, y as daemonProblem } from "./doctor-Bckon1ju.js";
|
|
3
3
|
import { a as closest, d as plainError, f as plural, h as warnBlock, i as parseFlags, l as fail, m as tilde, n as COMMAND_NAMES, o as cmd, p as seconds, r as commandHelp, s as columns, t as COMMANDS, u as localStamp } from "./args-DEYV4Ran.js";
|
|
4
4
|
import { n as connectOpts, t as adapterEnv } from "./ctx-CDLE-2f2.js";
|
|
5
5
|
import { access, chmod, mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
6
6
|
import { join, resolve } from "node:path";
|
|
7
|
-
import { t as runHook } from "./hook-
|
|
7
|
+
import { t as runHook } from "./hook-DUMp43Xn.js";
|
|
8
8
|
import { readFileSync } from "node:fs";
|
|
9
9
|
// src/status.ts
|
|
10
10
|
const CLI_SHORT = {
|
|
@@ -453,7 +453,7 @@ async function runDaemon(ctx, argv) {
|
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
455
|
// src/version.ts
|
|
456
|
-
const VERSION = "0.2.0-rc.
|
|
456
|
+
const VERSION = "0.2.0-rc.4";
|
|
457
457
|
// src/errorLog.ts
|
|
458
458
|
/** The message of an unexpected error, as it is. Not the softened text `plainError` gives. */
|
|
459
459
|
function rawMessage(e) {
|
|
@@ -1369,9 +1369,9 @@ async function dispatch(command, rest, ctx) {
|
|
|
1369
1369
|
case "permissions": return runPermissions(ctx, rest);
|
|
1370
1370
|
case "forget": return runForget(ctx, rest);
|
|
1371
1371
|
case "spawn": return runSpawn(ctx, rest);
|
|
1372
|
-
case "acp-host": return (await import("./acp-
|
|
1373
|
-
case "stop": return (await import("./acp-
|
|
1374
|
-
case "attach": return (await import("./acp-
|
|
1372
|
+
case "acp-host": return (await import("./acp-Bs2yS0Qg.js")).runAcpHostCmd(ctx, rest);
|
|
1373
|
+
case "stop": return (await import("./acp-Bs2yS0Qg.js")).runStop(ctx, rest);
|
|
1374
|
+
case "attach": return (await import("./acp-Bs2yS0Qg.js")).runAttach(ctx, rest);
|
|
1375
1375
|
case "spawn-run": return runSpawnRun(ctx, rest);
|
|
1376
1376
|
case "auto": return runAuto(ctx, rest);
|
|
1377
1377
|
case "peek": return runPeek(ctx, rest);
|
|
@@ -1413,7 +1413,7 @@ function opensApp(env, tty = {
|
|
|
1413
1413
|
async function main(argv, ctx) {
|
|
1414
1414
|
const [command, ...rest] = argv;
|
|
1415
1415
|
if (command === void 0 && opensApp(ctx.env)) try {
|
|
1416
|
-
return await (await import("./run-
|
|
1416
|
+
return await (await import("./run-BEhIahUS.js")).runTui(ctx);
|
|
1417
1417
|
} catch (e) {
|
|
1418
1418
|
ctx.err(`The app could not start (${rawMessage(e)}). Showing the help instead.\n`);
|
|
1419
1419
|
ctx.out(helpText(ctx));
|