@wirecat/mail-cli 0.35.0 → 0.37.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/CHANGELOG.md +55 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/agent-OU4K7TKQ.js +40 -0
- package/dist/bundle/{all-profiles-6BDSMVOO.js → all-profiles-ICGWDPUU.js} +11 -11
- package/dist/bundle/{anthropic-C3XUXUCJ.js → anthropic-TL4WFWGU.js} +5 -5
- package/dist/bundle/{app-server-GUHDK4OR.js → app-server-YAR5EFOO.js} +69 -67
- package/dist/bundle/{bun-FN7AM4AG.js → bun-OPDGMZZQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-56IVBF22.js → bun-sqlite-WI3ZPANS.js} +6 -6
- package/dist/bundle/{chunk-L4RCWRWS.js → chunk-2JHVQMVC.js} +1 -1
- package/dist/bundle/{chunk-RJNKM3CQ.js → chunk-2XBDILVW.js} +1 -1
- package/dist/bundle/{chunk-7FXZKQAC.js → chunk-2YO3PLOE.js} +19 -19
- package/dist/bundle/{chunk-YCIWSKOH.js → chunk-3DHJF57U.js} +9 -9
- package/dist/bundle/{chunk-5XQI7WCJ.js → chunk-3HC5F3P7.js} +1 -1
- package/dist/bundle/{chunk-6Q5THDNW.js → chunk-3SKTQ2HC.js} +2 -2
- package/dist/bundle/{chunk-ZMYRPMAJ.js → chunk-3YM4B2GT.js} +1 -1
- package/dist/bundle/{chunk-7YMLEWTX.js → chunk-3ZOOTTFW.js} +6 -6
- package/dist/bundle/{chunk-CMGZXBJW.js → chunk-4FTIHADB.js} +6 -6
- package/dist/bundle/{chunk-3EV2B7KZ.js → chunk-4IZ6R5FS.js} +19 -15
- package/dist/bundle/{chunk-W7ICCFG5.js → chunk-4N7PP76S.js} +1 -1
- package/dist/bundle/{chunk-PQDQCCGG.js → chunk-7HRKUKKY.js} +23 -23
- package/dist/bundle/{chunk-GG634DR3.js → chunk-7PDGZFXD.js} +5 -5
- package/dist/bundle/{chunk-OOQFBRNR.js → chunk-7YKWFERX.js} +6 -6
- package/dist/bundle/{chunk-E6HSSKRX.js → chunk-BNURKCQG.js} +2 -3
- package/dist/bundle/{chunk-I3QZCQJT.js → chunk-BNVISIHP.js} +6 -6
- package/dist/bundle/{chunk-4U5ODZO7.js → chunk-BQMJYSA4.js} +11 -11
- package/dist/bundle/{chunk-TARNPINT.js → chunk-BYITYTRL.js} +16 -3
- package/dist/bundle/{chunk-GU3PYIV2.js → chunk-CICUPYHT.js} +2 -2
- package/dist/bundle/{chunk-6B4WZVLN.js → chunk-CQHLWMKK.js} +33 -28
- package/dist/bundle/{chunk-HKWZG7CZ.js → chunk-CUW7Y2HJ.js} +6 -6
- package/dist/bundle/{chunk-WDEVKKAD.js → chunk-DJZIFZOT.js} +3 -3
- package/dist/bundle/{chunk-AV2ZJ4WX.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-7JVKQ6NM.js → chunk-DPV53EZC.js} +4 -4
- package/dist/bundle/{chunk-ILEKGH44.js → chunk-DTR7JO2M.js} +35 -35
- package/dist/bundle/{chunk-TP766H4O.js → chunk-ES2FF42M.js} +14 -14
- package/dist/bundle/{chunk-635AFLZO.js → chunk-EV72K4IU.js} +4 -4
- package/dist/bundle/{chunk-XQNKAM26.js → chunk-EZQ5BYNL.js} +6 -6
- package/dist/bundle/{chunk-AISQNKT7.js → chunk-F2D3J5DR.js} +8 -8
- package/dist/bundle/{chunk-OO4OKMNB.js → chunk-FTT7UDYV.js} +3 -3
- package/dist/bundle/{chunk-DD2P67NP.js → chunk-FXNCKPQ7.js} +3 -3
- package/dist/bundle/{chunk-6VARUB3J.js → chunk-G4VJN75G.js} +37 -18
- package/dist/bundle/{chunk-2UNQTKRH.js → chunk-GGMAIIVE.js} +1 -1
- package/dist/bundle/{chunk-3WAZKCDF.js → chunk-GPUC3FTU.js} +2 -2
- package/dist/bundle/{chunk-ZX7HZDD6.js → chunk-GQIMVR7C.js} +180 -38
- package/dist/bundle/{chunk-4IASS7NQ.js → chunk-HCRUGAIN.js} +252 -60
- package/dist/bundle/{chunk-YQTRKNZQ.js → chunk-HES6YMYN.js} +4 -4
- package/dist/bundle/{chunk-2B67TUIF.js → chunk-HFY7536N.js} +201 -111
- package/dist/bundle/{chunk-5WYBI35N.js → chunk-IA7LLLEI.js} +3 -3
- package/dist/bundle/{chunk-HF5QWKK2.js → chunk-IUJDWEGJ.js} +7 -7
- package/dist/bundle/{chunk-UHGKN5US.js → chunk-IWFWWO37.js} +8 -8
- package/dist/bundle/{chunk-7PXAUMK5.js → chunk-JG6LCSEX.js} +13 -13
- package/dist/bundle/{chunk-UWDRU3R6.js → chunk-JLXXUEAM.js} +2 -2
- package/dist/bundle/{chunk-G662S2M4.js → chunk-JNP3XGJI.js} +16 -16
- package/dist/bundle/{chunk-DREU6TN6.js → chunk-JZUYZ2XJ.js} +38 -24
- package/dist/bundle/chunk-K4DEQAEW.js +1291 -0
- package/dist/bundle/{chunk-7KMI47AP.js → chunk-KCM3WSER.js} +6 -6
- package/dist/bundle/{chunk-YA44BG3N.js → chunk-KP5JDYY6.js} +42 -10
- package/dist/bundle/{chunk-QFMKCU42.js → chunk-KUX54EGR.js} +1982 -802
- package/dist/bundle/chunk-KXJ3JEDH.js +2 -0
- package/dist/bundle/{chunk-HJDIMVFW.js → chunk-KZD3H5QA.js} +2 -2
- package/dist/bundle/{chunk-XKKYRMGG.js → chunk-LKH3UKLO.js} +4 -4
- package/dist/bundle/{chunk-QYCMB7JY.js → chunk-NAOLBEFX.js} +226 -164
- package/dist/bundle/{chunk-46SBNO67.js → chunk-NB52JKLR.js} +13 -9
- package/dist/bundle/{chunk-3KAJCOJP.js → chunk-NB7EOAUZ.js} +15 -1
- package/dist/bundle/{chunk-DFHUJTP5.js → chunk-NISH4UXM.js} +2 -2
- package/dist/bundle/{chunk-EU4J6GCJ.js → chunk-NQSKI7XK.js} +4 -4
- package/dist/bundle/{chunk-YRAJFTFU.js → chunk-OWPRJLHV.js} +8 -8
- package/dist/bundle/{chunk-V4O47JV6.js → chunk-OZKZT3ZI.js} +10 -3
- package/dist/bundle/{chunk-CDGVYQXG.js → chunk-Q7ICVP25.js} +1 -1
- package/dist/bundle/{chunk-Q5U2HIBJ.js → chunk-QLJGYDWG.js} +7 -7
- package/dist/bundle/{chunk-W4JYGMTU.js → chunk-R44KVISE.js} +12 -12
- package/dist/bundle/{chunk-MCJYJIH5.js → chunk-R73VWPNL.js} +8 -8
- package/dist/bundle/{chunk-YTI533XF.js → chunk-RRTMPSQR.js} +2 -2
- package/dist/bundle/{chunk-HM6AMYHR.js → chunk-S6JG4YUH.js} +2 -2
- package/dist/bundle/{chunk-AXKIXVQA.js → chunk-TMJLGR4A.js} +61 -61
- package/dist/bundle/{chunk-HVXOA4FO.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-CFQQTDSA.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-ODQCRZX5.js → chunk-UDSL3MUU.js} +8 -8
- package/dist/bundle/{chunk-ZYEU35MB.js → chunk-UTS5NMR3.js} +2 -2
- package/dist/bundle/{chunk-RBV2AM52.js → chunk-VB7FZOYX.js} +1 -1
- package/dist/bundle/{chunk-RQHWSNX4.js → chunk-VK24UQSD.js} +4 -4
- package/dist/bundle/{chunk-TP2BCK2Z.js → chunk-VYCB5EVI.js} +8 -8
- package/dist/bundle/{chunk-EHAXFDDP.js → chunk-VZ5PPYDG.js} +3 -4
- package/dist/bundle/chunk-WOPVBRPV.js +29 -0
- package/dist/bundle/{chunk-3ACF6TIV.js → chunk-XEQQJBBO.js} +1 -1
- package/dist/bundle/{chunk-J5ULUTWE.js → chunk-XWBTD2WP.js} +4 -4
- package/dist/bundle/chunk-XXPJF2VD.js +2 -0
- package/dist/bundle/{chunk-OTP2HJ67.js → chunk-YODGIMMM.js} +9 -9
- package/dist/bundle/{chunk-NEDS4ORI.js → chunk-YWDFYQOU.js} +2 -2
- package/dist/bundle/{chunk-EX4Z7CCO.js → chunk-Z4BLNAWI.js} +15062 -11852
- package/dist/bundle/{chunk-WZKM5I7B.js → chunk-ZSAPOC7B.js} +27 -176
- package/dist/bundle/{chunk-RQJGX7F7.js → chunk-ZTWTEXB2.js} +3 -3
- package/dist/bundle/command-contract-UC6IGCCM.js +39 -0
- package/dist/bundle/{command-server-entry-TPJ47FYS.js → command-server-entry-RA3ZX2KV.js} +28 -28
- package/dist/bundle/{decode-XHUASXQK.js → decode-QVKRSRVF.js} +5 -5
- package/dist/bundle/{dispatch-MQZHGGVP.js → dispatch-USKS7J74.js} +8 -8
- package/dist/bundle/{dist-BAE4IQ52.js → dist-ITIXJAXK.js} +20 -18
- package/dist/bundle/{echarts-U7Z2PKIG.js → echarts-O3TNDAXJ.js} +2 -2
- package/dist/bundle/{embed-W7GPB6EI.js → embed-2HOODFQT.js} +6 -6
- package/dist/bundle/{embedder-T72XLFQ5.js → embedder-22AJGCZX.js} +9 -9
- package/dist/bundle/{failure-MP6VKL5Y.js → failure-D4FGOIWF.js} +2 -2
- package/dist/bundle/{first-run-C44TJXRI.js → first-run-FU4MFXOA.js} +12 -12
- package/dist/bundle/first-screen-A7SEI2ON.js +40 -0
- package/dist/bundle/{instructions-WGMWQNPP.js → instructions-AMH5RWVJ.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-YGOAUNC3.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-KC6YGWA7.js +24 -0
- package/dist/bundle/{meeting-model-QVHLD4WI.js → meeting-model-QWGAOQHL.js} +11 -11
- package/dist/bundle/{meeting-semantic-QKQHUHXX.js → meeting-semantic-7PVO6RNB.js} +6 -6
- package/dist/bundle/{node-WANDMJJQ.js → node-EGMCBAO7.js} +2 -2
- package/dist/bundle/{node-sqlite-NM5XA4DR.js → node-sqlite-JXUELLMP.js} +7 -7
- package/dist/bundle/{oauth-6E63ELEE.js → oauth-OYAYWH4K.js} +7 -7
- package/dist/bundle/{open-5542RTLE.js → open-GLEUJGNA.js} +5 -5
- package/dist/bundle/{openai-NOYNPFB5.js → openai-PYTVNB6L.js} +15 -15
- package/dist/bundle/{process-7AEXXSBX.js → process-SGHEN6MQ.js} +1 -1
- package/dist/bundle/{program-VMA5CGNR.js → program-7CFNZ2DF.js} +2227 -2291
- package/dist/bundle/{prompt-WYYO4AJL.js → prompt-CYTILD7N.js} +5 -5
- package/dist/bundle/public-XWMXEGEF.js +196 -0
- package/dist/bundle/{recognize-UGCCOMAS.js → recognize-26UNETSQ.js} +4 -4
- package/dist/bundle/{remote-VZS6BNQB.js → remote-PKXBQA5N.js} +9 -9
- package/dist/bundle/{rerank-O46D5GJ2.js → rerank-LLKP7M6Q.js} +7 -7
- package/dist/bundle/{serve-QAAF2LCW.js → serve-ZRJEAPJI.js} +9 -9
- package/dist/bundle/{server-Q3PUZLLX.js → server-4OQ4G5JY.js} +61 -59
- package/dist/bundle/server-VVRQ4A34.js +86 -0
- package/dist/bundle/{sqlite-runtime-EQBCDO2U.js → sqlite-runtime-667VV4VY.js} +6 -6
- package/dist/bundle/{state-XIOHYXCR.js → state-V3CAAJBE.js} +6 -6
- package/dist/bundle/{store-VJBL5XKR.js → store-BJCIMIAH.js} +31 -24
- package/dist/bundle/{store-OXJZZUR7.js → store-GLBBY4OZ.js} +22 -22
- package/dist/bundle/store-maintenance-command-N7L5OVUE.js +73 -0
- package/dist/bundle/surface-26EUQNDT.js +72 -0
- package/dist/commands/import.js +2 -2
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/messages.js +3 -3
- package/dist/commands/messages.js.map +1 -1
- package/dist/commands/read.js +2 -2
- package/dist/commands/read.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +1 -0
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/session-start.js +1 -1
- package/dist/commands/session-start.js.map +1 -1
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +2 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/sync.js +1 -1
- package/dist/commands/sync.js.map +1 -1
- package/dist/commands/tags.d.ts.map +1 -1
- package/dist/commands/tags.js.map +1 -1
- package/dist/commands/words.js +1 -1
- package/dist/commands/words.js.map +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +7 -0
- package/dist/config.js.map +1 -1
- package/dist/mail/imap/account.d.ts.map +1 -1
- package/dist/mail/imap/account.js +2 -1
- package/dist/mail/imap/account.js.map +1 -1
- package/dist/mail/send.d.ts +2 -0
- package/dist/mail/send.d.ts.map +1 -1
- package/dist/mail/send.js +1 -1
- package/dist/mail/send.js.map +1 -1
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +2 -1
- package/dist/oauth.js.map +1 -1
- package/dist/profile.js +1 -1
- package/dist/profile.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +4 -4
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -1
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/agent-KWLCQCSC.js +0 -39
- package/dist/bundle/chunk-DZHEVVXA.js +0 -1264
- package/dist/bundle/command-contract-D5UXWHMS.js +0 -39
- package/dist/bundle/first-screen-IESI7DAU.js +0 -39
- package/dist/bundle/meeting-combined-XGZBSWIQ.js +0 -24
- package/dist/bundle/server-456MYK3X.js +0 -84
- package/dist/bundle/store-maintenance-command-D7XYIX52.js +0 -71
- package/dist/bundle/surface-N7LK7PKN.js +0 -70
|
@@ -15,209 +15,67 @@ import {
|
|
|
15
15
|
profilesOnAccount,
|
|
16
16
|
recipientsPathFor,
|
|
17
17
|
refuseLacking,
|
|
18
|
+
refuseUnknownPermissionKeys,
|
|
18
19
|
servicesFor,
|
|
20
|
+
terminalAsker,
|
|
19
21
|
waitForTurn
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-KUX54EGR.js";
|
|
21
23
|
import {
|
|
22
24
|
capability,
|
|
23
25
|
throughWrapper
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-4IZ6R5FS.js";
|
|
25
27
|
import {
|
|
26
28
|
servingProfiles
|
|
27
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-BYITYTRL.js";
|
|
28
30
|
import {
|
|
29
31
|
asFirstWord,
|
|
30
32
|
baseContext,
|
|
31
33
|
codeOf,
|
|
32
34
|
currentOperation,
|
|
33
35
|
environmentOf,
|
|
34
|
-
issueMessage,
|
|
35
36
|
limitBatch,
|
|
36
|
-
permissionIssues,
|
|
37
|
-
publicIssue,
|
|
38
37
|
recalledAccount,
|
|
39
38
|
rememberAccount,
|
|
40
39
|
rootOf2 as rootOf
|
|
41
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-NAOLBEFX.js";
|
|
42
41
|
import {
|
|
43
|
-
AUTHORITY_KEY,
|
|
44
42
|
CEILING_KEY,
|
|
45
|
-
DEFAULT_PERMISSIONS,
|
|
46
|
-
KEYED_UNDER_HOUSEKEEPING,
|
|
47
|
-
WRITE_KEYS,
|
|
48
43
|
fetchesUnder,
|
|
49
|
-
keyForCommand,
|
|
50
44
|
levelFor,
|
|
51
|
-
readKeysForCommand
|
|
52
|
-
|
|
53
|
-
} from "./chunk-HF5QWKK2.js";
|
|
45
|
+
readKeysForCommand
|
|
46
|
+
} from "./chunk-IUJDWEGJ.js";
|
|
54
47
|
import {
|
|
55
48
|
providerErrorKey
|
|
56
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-IWFWWO37.js";
|
|
57
50
|
import {
|
|
58
51
|
openStore
|
|
59
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-Z4BLNAWI.js";
|
|
60
53
|
import {
|
|
61
54
|
chatReferenceOf,
|
|
62
55
|
ensureAccount,
|
|
63
56
|
foldName,
|
|
64
57
|
isId,
|
|
65
58
|
pickPerson
|
|
66
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-JZUYZ2XJ.js";
|
|
67
60
|
import {
|
|
68
61
|
isCliFailure
|
|
69
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-JLXXUEAM.js";
|
|
70
63
|
import {
|
|
71
64
|
CliError
|
|
72
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-S6JG4YUH.js";
|
|
73
66
|
import {
|
|
74
67
|
__name
|
|
75
68
|
} from "./chunk-ZVVMGPBJ.js";
|
|
76
69
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
78
|
-
import { openSync } from "node:fs";
|
|
79
|
-
import { createInterface } from "node:readline";
|
|
80
|
-
import { ReadStream } from "node:tty";
|
|
81
|
-
var fromTerminal = /* @__PURE__ */ __name(async (question) => {
|
|
82
|
-
if (!process.stdin.isTTY || !process.stderr.isTTY)
|
|
83
|
-
return null;
|
|
84
|
-
let input;
|
|
85
|
-
try {
|
|
86
|
-
input = new ReadStream(openSync("/dev/tty", "r"));
|
|
87
|
-
} catch {
|
|
88
|
-
return null;
|
|
89
|
-
}
|
|
90
|
-
const reader = createInterface({ input, output: process.stderr, terminal: true });
|
|
91
|
-
try {
|
|
92
|
-
return await new Promise((resolve, reject) => {
|
|
93
|
-
const cancel = /* @__PURE__ */ __name(() => reject(new CliError("cancelled", "cancelled \u2014 nothing was done")), "cancel");
|
|
94
|
-
reader.once("SIGINT", cancel);
|
|
95
|
-
reader.once("close", cancel);
|
|
96
|
-
reader.question(question, resolve);
|
|
97
|
-
});
|
|
98
|
-
} finally {
|
|
99
|
-
reader.close();
|
|
100
|
-
input.destroy();
|
|
101
|
-
}
|
|
102
|
-
}, "fromTerminal");
|
|
103
|
-
var what = /* @__PURE__ */ __name((key, { chatId, count, personIds, forEveryone }) => [
|
|
104
|
-
key,
|
|
105
|
-
forEveryone ? "for everyone" : void 0,
|
|
106
|
-
count !== void 0 ? `${count} ${count === 1 ? "item" : "items"}` : void 0,
|
|
107
|
-
personIds?.length ? `${personIds.length} ${personIds.length === 1 ? "person" : "people"}` : void 0,
|
|
108
|
-
chatId !== null ? `in chat ${chatId}` : void 0
|
|
109
|
-
].filter(Boolean).join(", "), "what");
|
|
110
|
-
var answerOf = /* @__PURE__ */ __name(async (command, question) => {
|
|
111
|
-
const given = command.optsWithGlobals();
|
|
112
|
-
if (given.json === true || given.jsonl === true)
|
|
113
|
-
return null;
|
|
114
|
-
return (environmentOf(command).answer ?? fromTerminal)(question);
|
|
115
|
-
}, "answerOf");
|
|
116
|
-
var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) => {
|
|
117
|
-
if (environmentOf(command).agent)
|
|
118
|
-
return;
|
|
119
|
-
const flag = skipFlagFor(key);
|
|
120
|
-
const given = command.optsWithGlobals();
|
|
121
|
-
if (flag === "--yes" ? given.yes === true : given.allowDangerous === true)
|
|
122
|
-
return;
|
|
123
|
-
const machine = given.json === true || given.jsonl === true;
|
|
124
|
-
const answer = machine ? null : await (environmentOf(command).answer ?? fromTerminal)(`${what(key, request)} \u2014 go ahead? [y/N] `);
|
|
125
|
-
if (answer === null) {
|
|
126
|
-
throw new CliError("confirmation_required", `${key} asks before it acts (its permission level is ask), and nobody is at a terminal to answer \u2014 add ${flag} to go ahead`, { permission: key });
|
|
127
|
-
}
|
|
128
|
-
if (!/^\s*y(es)?\s*$/i.test(answer))
|
|
129
|
-
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
130
|
-
}, "terminalAsker");
|
|
131
|
-
|
|
132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
133
|
-
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
134
|
-
"help",
|
|
135
|
-
"guide",
|
|
136
|
-
"config",
|
|
137
|
-
"session",
|
|
138
|
-
"doctor",
|
|
139
|
-
"commands",
|
|
140
|
-
"complete",
|
|
141
|
-
"upgrade",
|
|
142
|
-
"skill",
|
|
143
|
-
"mcp",
|
|
144
|
-
"runs"
|
|
145
|
-
]);
|
|
146
|
-
var commandPathKey = /* @__PURE__ */ __name((path) => path[0] === void 0 || HOUSEKEEPING.has(path[0]) && !KEYED_UNDER_HOUSEKEEPING.has(path.join(".")) ? null : path.join("."), "commandPathKey");
|
|
147
|
-
var commandPermissions = /* @__PURE__ */ __name(({ keyOf = commandPathKey, extra = [], defaults = {}, alsoChecks } = {}) => ({
|
|
148
|
-
keyOf,
|
|
149
|
-
extra: [AUTHORITY_KEY, ...extra],
|
|
150
|
-
defaults: { ...DEFAULT_PERMISSIONS, ...defaults },
|
|
151
|
-
...alsoChecks ? { alsoChecks } : {}
|
|
152
|
-
}), "commandPermissions");
|
|
153
|
-
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
154
|
-
const words = [];
|
|
155
|
-
for (let at = command; at?.parent; at = at.parent)
|
|
156
|
-
words.unshift(at.name());
|
|
157
|
-
return words;
|
|
158
|
-
}, "pathOf");
|
|
159
|
-
var rootOf2 = /* @__PURE__ */ __name((command) => {
|
|
160
|
-
let at = command;
|
|
161
|
-
while (at.parent)
|
|
162
|
-
at = at.parent;
|
|
163
|
-
return at;
|
|
164
|
-
}, "rootOf");
|
|
165
|
-
var everyCommand = /* @__PURE__ */ __name((command) => [command, ...command.commands.flatMap(everyCommand)], "everyCommand");
|
|
166
|
-
var knownPermissionKeys = /* @__PURE__ */ __name((command, keyOf = (one) => keyForCommand(pathOf(one)), extra = []) => {
|
|
167
|
-
const known = /* @__PURE__ */ new Set();
|
|
168
|
-
const add = /* @__PURE__ */ __name((key) => {
|
|
169
|
-
for (let parts = key.split("."); parts.length > 0; parts = parts.slice(0, -1))
|
|
170
|
-
known.add(parts.join("."));
|
|
171
|
-
}, "add");
|
|
172
|
-
if (typeof keyOf !== "function") {
|
|
173
|
-
for (const one of everyCommand(rootOf2(command))) {
|
|
174
|
-
const key = keyOf.keyOf(pathOf(one));
|
|
175
|
-
if (key)
|
|
176
|
-
add(key);
|
|
177
|
-
}
|
|
178
|
-
for (const key of [...keyOf.extra, ...extra])
|
|
179
|
-
add(key);
|
|
180
|
-
return known;
|
|
181
|
-
}
|
|
182
|
-
for (const one of everyCommand(rootOf2(command))) {
|
|
183
|
-
const own = keyOf(one);
|
|
184
|
-
const key = own === void 0 ? keyForCommand(pathOf(one)) : own;
|
|
185
|
-
if (key)
|
|
186
|
-
add(key);
|
|
187
|
-
}
|
|
188
|
-
for (const key of [...WRITE_KEYS, ...extra])
|
|
189
|
-
add(key);
|
|
190
|
-
return known;
|
|
191
|
-
}, "knownPermissionKeys");
|
|
192
|
-
var knownBeside = /* @__PURE__ */ __name((key, known) => {
|
|
193
|
-
const parent = key.split(".").slice(0, -1).join(".");
|
|
194
|
-
const depth = parent === "" ? 1 : parent.split(".").length + 1;
|
|
195
|
-
return [...known].filter((one) => one.split(".").length === depth && (parent === "" || one.startsWith(`${parent}.`))).sort();
|
|
196
|
-
}, "knownBeside");
|
|
197
|
-
var unknownPermissionKeys = /* @__PURE__ */ __name((levels, known) => Object.keys(levels).filter((key) => key !== CEILING_KEY && !known.has(key)), "unknownPermissionKeys");
|
|
198
|
-
var unknownPermissionIssues = /* @__PURE__ */ __name((command, settings, tool, keyOf) => {
|
|
199
|
-
const saved = settings.savedPermissions ?? Object.keys(settings.permissions).filter((key) => key !== CEILING_KEY && settings.permissionSources[key] !== "flag").map((key) => ({ key, at: ["profiles", settings.profile, "permissions", key] }));
|
|
200
|
-
return permissionIssues(saved, knownPermissionKeys(command, keyOf), { file: settings.configPath, tool }).map(publicIssue);
|
|
201
|
-
}, "unknownPermissionIssues");
|
|
202
|
-
var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, tool, keyOf) => {
|
|
203
|
-
const issues = unknownPermissionIssues(command, settings, tool, keyOf);
|
|
204
|
-
if (issues.length > 0)
|
|
205
|
-
throw new CliError("configuration_error", issueMessage(issues), { permission: issues[0]?.key });
|
|
206
|
-
const flagged = Object.keys(settings.permissions).filter((key2) => settings.permissionSources[key2] === "flag");
|
|
207
|
-
const [key] = unknownPermissionKeys(Object.fromEntries(flagged.map((one) => [one, true])), knownPermissionKeys(command, keyOf));
|
|
208
|
-
if (key !== void 0)
|
|
209
|
-
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
210
|
-
}, "refuseUnknownPermissionKeys");
|
|
211
|
-
|
|
212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
70
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
213
71
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
214
72
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
215
73
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
216
74
|
var chatOf = /* @__PURE__ */ __name((args) => typeof args[0] === "string" && /^-?\d+$/.test(args[0]) ? args[0] : void 0, "chatOf");
|
|
217
75
|
var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer }) => {
|
|
218
|
-
const kept = /* @__PURE__ */ __name(async (operation,
|
|
76
|
+
const kept = /* @__PURE__ */ __name(async (operation, what) => {
|
|
219
77
|
try {
|
|
220
|
-
await
|
|
78
|
+
await what();
|
|
221
79
|
} catch (error) {
|
|
222
80
|
warn(`could not remember ${name}'s wait (${error instanceof Error ? error.message : String(error)})`, {
|
|
223
81
|
event: "warning",
|
|
@@ -306,7 +164,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
306
164
|
});
|
|
307
165
|
}, "flooded");
|
|
308
166
|
|
|
309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
167
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
310
168
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
311
169
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
312
170
|
const write = currentOperation();
|
|
@@ -405,7 +263,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
405
263
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
406
264
|
}, "byPart");
|
|
407
265
|
|
|
408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
266
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
409
267
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
410
268
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
|
|
411
269
|
let warned = false;
|
|
@@ -981,7 +839,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
981
839
|
}
|
|
982
840
|
}, "keep");
|
|
983
841
|
|
|
984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
842
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
985
843
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
986
844
|
let opened;
|
|
987
845
|
return {
|
|
@@ -1075,7 +933,7 @@ var settled = /* @__PURE__ */ __name(async (pending, ms) => {
|
|
|
1075
933
|
clearTimeout(timer);
|
|
1076
934
|
}
|
|
1077
935
|
}, "settled");
|
|
1078
|
-
var listened = /* @__PURE__ */ __name(({ run, operation, what
|
|
936
|
+
var listened = /* @__PURE__ */ __name(({ run, operation, what }, events, warn, waitMs) => {
|
|
1079
937
|
const abort = new AbortController();
|
|
1080
938
|
let closing = false;
|
|
1081
939
|
const ended = Promise.resolve().then(() => run(abort.signal)).catch((error) => {
|
|
@@ -1083,11 +941,11 @@ var listened = /* @__PURE__ */ __name(({ run, operation, what: what2 }, events,
|
|
|
1083
941
|
return;
|
|
1084
942
|
const warning = { event: "warning", code: "listen_failed", operation };
|
|
1085
943
|
events(warning);
|
|
1086
|
-
warn(`${
|
|
944
|
+
warn(`${what} arriving during this command are not saved: ${error instanceof Error ? error.message : String(error)}`, warning);
|
|
1087
945
|
});
|
|
1088
946
|
return {
|
|
1089
947
|
operation,
|
|
1090
|
-
what
|
|
948
|
+
what,
|
|
1091
949
|
closing: /* @__PURE__ */ __name(() => {
|
|
1092
950
|
closing = true;
|
|
1093
951
|
}, "closing"),
|
|
@@ -1178,10 +1036,10 @@ var connected = /* @__PURE__ */ __name((connection, { app, provider, name, delet
|
|
|
1178
1036
|
events(warning);
|
|
1179
1037
|
warn(text, warning);
|
|
1180
1038
|
}, "warned");
|
|
1181
|
-
passives.forEach(({ operation, what
|
|
1039
|
+
passives.forEach(({ operation, what }, at) => {
|
|
1182
1040
|
if (ended[at])
|
|
1183
1041
|
return;
|
|
1184
|
-
warned({ event: "warning", code: "store_not_written", operation }, `not saved to the local store: the messenger was still handing on ${
|
|
1042
|
+
warned({ event: "warning", code: "store_not_written", operation }, `not saved to the local store: the messenger was still handing on ${what} at exit`);
|
|
1185
1043
|
});
|
|
1186
1044
|
await settled(/* @__PURE__ */ new Set([...pending, ...announcing]), closeWaitMs);
|
|
1187
1045
|
closing.abort();
|
|
@@ -1240,14 +1098,14 @@ var warnUnserved = /* @__PURE__ */ __name(async (messenger, profile, { env, rend
|
|
|
1240
1098
|
const newest = (await store.chats.chatStats(account)).map((one) => one.newestAt).reduce((latest, at) => at !== null && (latest === null || at > latest) ? at : latest, null);
|
|
1241
1099
|
renderer.warn(`no \`${messenger.app.command} ${profile} serve\` keeps profile "${profile}" up to date \u2014 ` + (newest === null ? "the local store holds no messages yet" : `the newest stored message is from ${newest}`));
|
|
1242
1100
|
}, "warnUnserved");
|
|
1243
|
-
var
|
|
1101
|
+
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
1244
1102
|
const words = [];
|
|
1245
1103
|
for (let at = command; at?.parent; at = at.parent)
|
|
1246
1104
|
words.unshift(at.name());
|
|
1247
1105
|
return words;
|
|
1248
1106
|
}, "pathOf");
|
|
1249
1107
|
var refuseDenied = /* @__PURE__ */ __name((command, settings) => {
|
|
1250
|
-
for (const key of readKeysForCommand(
|
|
1108
|
+
for (const key of readKeysForCommand(pathOf(command))) {
|
|
1251
1109
|
const { level, key: named } = levelFor(settings.permissions, key);
|
|
1252
1110
|
if (level !== "deny")
|
|
1253
1111
|
continue;
|
|
@@ -1270,7 +1128,7 @@ var messengerContext = /* @__PURE__ */ __name((command, messenger, resolving = {
|
|
|
1270
1128
|
const base = baseContext(command, (flags, options) => messenger.resolveSettings(flags, { ...options, ...resolving }));
|
|
1271
1129
|
const { profile } = base.settings;
|
|
1272
1130
|
refuseDenied(command, base.settings);
|
|
1273
|
-
refuseLacking(messenger,
|
|
1131
|
+
refuseLacking(messenger, pathOf(command));
|
|
1274
1132
|
refuseUnknownPermissionKeys(command, base.settings, app.command, messenger.permissionKey);
|
|
1275
1133
|
const warn = /* @__PURE__ */ __name((text, warning) => base.renderer.warn(text, warning), "warn");
|
|
1276
1134
|
const accountFor = /* @__PURE__ */ __name(() => {
|
|
@@ -1382,13 +1240,6 @@ var messengerContext = /* @__PURE__ */ __name((command, messenger, resolving = {
|
|
|
1382
1240
|
}, "messengerContext");
|
|
1383
1241
|
|
|
1384
1242
|
export {
|
|
1385
|
-
answerOf,
|
|
1386
|
-
terminalAsker,
|
|
1387
|
-
commandPermissions,
|
|
1388
|
-
knownPermissionKeys,
|
|
1389
|
-
knownBeside,
|
|
1390
|
-
unknownPermissionIssues,
|
|
1391
|
-
refuseUnknownPermissionKeys,
|
|
1392
1243
|
fill,
|
|
1393
1244
|
connectedFor,
|
|
1394
1245
|
refuseLocalWrite,
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
formatMeetingReference
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TMJLGR4A.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-S6JG4YUH.js";
|
|
9
9
|
import {
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/services/meeting-semantic.js
|
|
14
14
|
var positive = /* @__PURE__ */ __name((value, name, max) => {
|
|
15
15
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
16
16
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
SCHEMA_DIALECT,
|
|
5
|
+
commandContract,
|
|
6
|
+
commandPathOf,
|
|
7
|
+
findCommand,
|
|
8
|
+
outputOf
|
|
9
|
+
} from "./chunk-7PDGZFXD.js";
|
|
10
|
+
import "./chunk-NAOLBEFX.js";
|
|
11
|
+
import "./chunk-IUJDWEGJ.js";
|
|
12
|
+
import "./chunk-IWFWWO37.js";
|
|
13
|
+
import "./chunk-DJZIFZOT.js";
|
|
14
|
+
import "./chunk-CUW7Y2HJ.js";
|
|
15
|
+
import "./chunk-3YM4B2GT.js";
|
|
16
|
+
import "./chunk-FXNCKPQ7.js";
|
|
17
|
+
import "./chunk-K4DEQAEW.js";
|
|
18
|
+
import "./chunk-G4VJN75G.js";
|
|
19
|
+
import "./chunk-JLXXUEAM.js";
|
|
20
|
+
import "./chunk-XEQQJBBO.js";
|
|
21
|
+
import "./chunk-RRTMPSQR.js";
|
|
22
|
+
import "./chunk-TMJLGR4A.js";
|
|
23
|
+
import "./chunk-7YKWFERX.js";
|
|
24
|
+
import "./chunk-QLJGYDWG.js";
|
|
25
|
+
import "./chunk-EV72K4IU.js";
|
|
26
|
+
import "./chunk-DNCLQPOM.js";
|
|
27
|
+
import "./chunk-UTS5NMR3.js";
|
|
28
|
+
import "./chunk-2YO3PLOE.js";
|
|
29
|
+
import "./chunk-KP5JDYY6.js";
|
|
30
|
+
import "./chunk-Y5E2WNWB.js";
|
|
31
|
+
import "./chunk-S6JG4YUH.js";
|
|
32
|
+
import "./chunk-ZVVMGPBJ.js";
|
|
33
|
+
export {
|
|
34
|
+
SCHEMA_DIALECT,
|
|
35
|
+
commandContract,
|
|
36
|
+
commandPathOf,
|
|
37
|
+
findCommand,
|
|
38
|
+
outputOf
|
|
39
|
+
};
|
|
@@ -4,51 +4,51 @@ import {
|
|
|
4
4
|
COMMAND_SERVER_CONCURRENT,
|
|
5
5
|
enterCommandServer,
|
|
6
6
|
serveCommands
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-F2D3J5DR.js";
|
|
8
|
+
import "./chunk-Q7ICVP25.js";
|
|
9
9
|
import {
|
|
10
10
|
ensureSqlite
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-CICUPYHT.js";
|
|
12
|
+
import "./chunk-7PDGZFXD.js";
|
|
13
13
|
import {
|
|
14
14
|
commandServerRequest,
|
|
15
15
|
exitCodeSet,
|
|
16
16
|
inCommandServerRequest
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-NAOLBEFX.js";
|
|
18
|
+
import "./chunk-IUJDWEGJ.js";
|
|
19
|
+
import "./chunk-IWFWWO37.js";
|
|
20
|
+
import "./chunk-DJZIFZOT.js";
|
|
21
|
+
import "./chunk-CUW7Y2HJ.js";
|
|
22
|
+
import "./chunk-3YM4B2GT.js";
|
|
23
|
+
import "./chunk-FXNCKPQ7.js";
|
|
24
24
|
import {
|
|
25
25
|
asOwnProcess
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-K4DEQAEW.js";
|
|
27
|
+
import "./chunk-G4VJN75G.js";
|
|
28
|
+
import "./chunk-JLXXUEAM.js";
|
|
29
|
+
import "./chunk-XEQQJBBO.js";
|
|
30
|
+
import "./chunk-RRTMPSQR.js";
|
|
31
|
+
import "./chunk-TMJLGR4A.js";
|
|
32
|
+
import "./chunk-7YKWFERX.js";
|
|
33
|
+
import "./chunk-QLJGYDWG.js";
|
|
34
|
+
import "./chunk-EV72K4IU.js";
|
|
35
|
+
import "./chunk-DNCLQPOM.js";
|
|
36
|
+
import "./chunk-UTS5NMR3.js";
|
|
37
|
+
import "./chunk-BNVISIHP.js";
|
|
38
|
+
import "./chunk-GGMAIIVE.js";
|
|
39
|
+
import "./chunk-2YO3PLOE.js";
|
|
40
40
|
import {
|
|
41
41
|
catchCrashes
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-KP5JDYY6.js";
|
|
43
43
|
import "./chunk-Y5E2WNWB.js";
|
|
44
44
|
import {
|
|
45
45
|
CliError
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-S6JG4YUH.js";
|
|
47
47
|
import {
|
|
48
48
|
__name
|
|
49
49
|
} from "./chunk-ZVVMGPBJ.js";
|
|
50
50
|
|
|
51
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/cli/command-server-entry.js
|
|
52
52
|
import { PassThrough } from "node:stream";
|
|
53
53
|
var route = /* @__PURE__ */ __name((stream, sink) => {
|
|
54
54
|
const original = stream.write;
|
|
@@ -3,20 +3,20 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
decodeOgg
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-LKH3UKLO.js";
|
|
7
|
+
import "./chunk-2YO3PLOE.js";
|
|
8
|
+
import "./chunk-KP5JDYY6.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-S6JG4YUH.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@1.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_dd5172c52281f8f1e2dd1d4e9555d5c3/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
20
20
|
import { spawn } from "node:child_process";
|
|
21
21
|
import { mkdtemp, open, readFile, rm, writeFile } from "node:fs/promises";
|
|
22
22
|
import { createRequire } from "node:module";
|
|
@@ -14,22 +14,22 @@ import {
|
|
|
14
14
|
parseDescribe,
|
|
15
15
|
shimFiles,
|
|
16
16
|
writeShim
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-DPV53EZC.js";
|
|
18
18
|
import "./chunk-Y5E2WNWB.js";
|
|
19
19
|
import {
|
|
20
20
|
CliError
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-S6JG4YUH.js";
|
|
22
22
|
import {
|
|
23
23
|
__name,
|
|
24
24
|
__toESM
|
|
25
25
|
} from "./chunk-ZVVMGPBJ.js";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/dispatch.js
|
|
28
28
|
var import_cross_spawn2 = __toESM(require_cross_spawn(), 1);
|
|
29
29
|
import { randomUUID } from "node:crypto";
|
|
30
30
|
import { constants } from "node:os";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/path.js
|
|
33
33
|
import { readdirSync, statSync } from "node:fs";
|
|
34
34
|
import { join } from "node:path";
|
|
35
35
|
var variable = /* @__PURE__ */ __name((env, name, platform) => platform === "win32" ? Object.entries(env).find(([key]) => key.toUpperCase() === name)?.[1] : env[name], "variable");
|
|
@@ -101,7 +101,7 @@ var findTools = /* @__PURE__ */ __name((search) => {
|
|
|
101
101
|
}, "findTools");
|
|
102
102
|
var isBuiltIn = /* @__PURE__ */ __name((name) => name === "wcat" || BUILT_IN_COMMANDS.includes(name), "isBuiltIn");
|
|
103
103
|
|
|
104
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
104
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/probe.js
|
|
105
105
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
106
106
|
import { readFileSync } from "node:fs";
|
|
107
107
|
var probeDescribe = /* @__PURE__ */ __name((path, { env, timeoutMs }) => new Promise((resolve) => {
|
|
@@ -149,7 +149,7 @@ var baseVersion = /* @__PURE__ */ __name(() => {
|
|
|
149
149
|
}
|
|
150
150
|
}, "baseVersion");
|
|
151
151
|
|
|
152
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
152
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shortcuts.js
|
|
153
153
|
import { closeSync, openSync, readSync, realpathSync, rmSync } from "node:fs";
|
|
154
154
|
import { basename, dirname } from "node:path";
|
|
155
155
|
var WIRECAT_PACKAGE = /node_modules[\\/]+@wirecat[\\/]/;
|
|
@@ -241,7 +241,7 @@ var removeShortcuts = /* @__PURE__ */ __name((search, names) => listShortcuts(se
|
|
|
241
241
|
return { ...statusOf(shortcut.name, shortcut.program, search), changed: true };
|
|
242
242
|
}), "removeShortcuts");
|
|
243
243
|
|
|
244
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
244
|
+
// node_modules/.pnpm/@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/dispatch.js
|
|
245
245
|
var DEFAULT_DESCRIBE_TIMEOUT_MS = 2e3;
|
|
246
246
|
var listTools = /* @__PURE__ */ __name(async (context) => {
|
|
247
247
|
const installed = installedPrograms(context);
|
|
@@ -338,7 +338,7 @@ var runTool = /* @__PURE__ */ __name((path, args, context) => new Promise((resol
|
|
|
338
338
|
});
|
|
339
339
|
}), "runTool");
|
|
340
340
|
var fail = /* @__PURE__ */ __name(async (error, json, context) => {
|
|
341
|
-
const { errorObjectOf, exitCodeOfError, renderError } = await import("./failure-
|
|
341
|
+
const { errorObjectOf, exitCodeOfError, renderError } = await import("./failure-D4FGOIWF.js");
|
|
342
342
|
const object = errorObjectOf(error);
|
|
343
343
|
context.stderr.write(`${renderError(object, { cli: "wcat", interactive: !json })}
|
|
344
344
|
`);
|
|
@@ -24,18 +24,18 @@ import {
|
|
|
24
24
|
recordTemplate,
|
|
25
25
|
refsForLink,
|
|
26
26
|
terminalQr
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ES2FF42M.js";
|
|
28
28
|
import {
|
|
29
29
|
pollLines,
|
|
30
30
|
renderMessage,
|
|
31
31
|
renderMessages
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-GPUC3FTU.js";
|
|
33
33
|
import "./chunk-HTQTIKWP.js";
|
|
34
34
|
import {
|
|
35
35
|
DETAILS,
|
|
36
36
|
REASONS,
|
|
37
37
|
failureContext
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-HCRUGAIN.js";
|
|
39
39
|
import {
|
|
40
40
|
ModerationRules,
|
|
41
41
|
act,
|
|
@@ -45,14 +45,14 @@ import {
|
|
|
45
45
|
judge,
|
|
46
46
|
moderationPathFor,
|
|
47
47
|
validateFormattedText
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-3DHJF57U.js";
|
|
49
49
|
import {
|
|
50
50
|
resolveOutput
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-IUJDWEGJ.js";
|
|
52
52
|
import {
|
|
53
53
|
readSecret
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import "./chunk-
|
|
54
|
+
} from "./chunk-IA7LLLEI.js";
|
|
55
|
+
import "./chunk-YWDFYQOU.js";
|
|
56
56
|
import {
|
|
57
57
|
COUNTER_FIELDS,
|
|
58
58
|
PHONE_COUNTRIES,
|
|
@@ -76,9 +76,9 @@ import {
|
|
|
76
76
|
pickChat,
|
|
77
77
|
pickPerson,
|
|
78
78
|
rankingOptions
|
|
79
|
-
} from "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
79
|
+
} from "./chunk-JZUYZ2XJ.js";
|
|
80
|
+
import "./chunk-OZKZT3ZI.js";
|
|
81
|
+
import "./chunk-2JHVQMVC.js";
|
|
82
82
|
import {
|
|
83
83
|
ADDED_ACCOUNT,
|
|
84
84
|
ADDED_PROVIDER,
|
|
@@ -152,24 +152,26 @@ import {
|
|
|
152
152
|
standingOf,
|
|
153
153
|
usableLink,
|
|
154
154
|
useProviders
|
|
155
|
-
} from "./chunk-
|
|
156
|
-
import "./chunk-
|
|
155
|
+
} from "./chunk-G4VJN75G.js";
|
|
156
|
+
import "./chunk-XEQQJBBO.js";
|
|
157
157
|
import {
|
|
158
158
|
TAG_TYPES,
|
|
159
159
|
normalizeTag
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-RRTMPSQR.js";
|
|
161
161
|
import {
|
|
162
162
|
BACKENDS,
|
|
163
163
|
canonicalMeetingReference,
|
|
164
164
|
formatMeetingReference,
|
|
165
165
|
parseMeetingReference,
|
|
166
166
|
serviceCallsOf
|
|
167
|
-
} from "./chunk-
|
|
168
|
-
import "./chunk-
|
|
169
|
-
import "./chunk-
|
|
170
|
-
import "./chunk-
|
|
167
|
+
} from "./chunk-TMJLGR4A.js";
|
|
168
|
+
import "./chunk-QLJGYDWG.js";
|
|
169
|
+
import "./chunk-DNCLQPOM.js";
|
|
170
|
+
import "./chunk-UTS5NMR3.js";
|
|
171
|
+
import "./chunk-2YO3PLOE.js";
|
|
172
|
+
import "./chunk-KP5JDYY6.js";
|
|
171
173
|
import "./chunk-Y5E2WNWB.js";
|
|
172
|
-
import "./chunk-
|
|
174
|
+
import "./chunk-S6JG4YUH.js";
|
|
173
175
|
import "./chunk-ZVVMGPBJ.js";
|
|
174
176
|
export {
|
|
175
177
|
ADDED_ACCOUNT,
|