@wirecat/mail-cli 0.36.0 → 0.38.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/contracts/wirecat.json +1 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/agent-U43CYLAP.js +41 -0
- package/dist/bundle/{all-profiles-RS6OV3YO.js → all-profiles-OCUZMXMI.js} +11 -11
- package/dist/bundle/{anthropic-PPQ7DTXN.js → anthropic-CABWJABQ.js} +5 -5
- package/dist/bundle/{app-server-EBFBMFQC.js → app-server-TTWPIGWG.js} +70 -67
- package/dist/bundle/{bun-J7HAT7MW.js → bun-F4M4KCNA.js} +2 -2
- package/dist/bundle/{bun-sqlite-PCSNAXIQ.js → bun-sqlite-YKYG25CR.js} +6 -6
- package/dist/bundle/{chunk-6FZPFNEU.js → chunk-24UGTK32.js} +9 -9
- package/dist/bundle/{chunk-RJUVWJTA.js → chunk-2HDXD6LM.js} +7 -7
- package/dist/bundle/{chunk-VIDPFLFM.js → chunk-2SQLHBDP.js} +2 -2
- package/dist/bundle/{chunk-WZFGZBGD.js → chunk-2YO3PLOE.js} +19 -19
- package/dist/bundle/{chunk-3ZKNXKM7.js → chunk-3TYER5IK.js} +14 -6
- package/dist/bundle/{chunk-AVR4FPYG.js → chunk-4FXDUXZP.js} +8 -8
- package/dist/bundle/{chunk-MQ6DQRRI.js → chunk-5ICUC66S.js} +4 -4
- package/dist/bundle/{chunk-WNQECDIP.js → chunk-725OPCHI.js} +61 -61
- package/dist/bundle/{chunk-Q6TPXXOS.js → chunk-77YTUOKN.js} +35 -176
- package/dist/bundle/chunk-7ECP5ZQR.js +2 -0
- package/dist/bundle/{chunk-5G4MDFZ2.js → chunk-7EJWHADX.js} +14 -10
- package/dist/bundle/{chunk-GEU3WR75.js → chunk-7KO5FSAW.js} +3 -3
- package/dist/bundle/{chunk-NSH2UHJR.js → chunk-A3KNH3Q4.js} +8 -8
- package/dist/bundle/{chunk-SCJVKWMV.js → chunk-AGO3OVKW.js} +2145 -902
- package/dist/bundle/{chunk-TV634B6T.js → chunk-AQ5RIOUE.js} +1 -1
- package/dist/bundle/{chunk-ROK7Z5LQ.js → chunk-BA5B5ZF4.js} +274 -182
- package/dist/bundle/{chunk-ZV57PIPE.js → chunk-C4PUDTGD.js} +2 -2
- package/dist/bundle/{chunk-IBOWSQ7X.js → chunk-C7JPYWYQ.js} +1 -1
- package/dist/bundle/{chunk-BBQERXQX.js → chunk-CJJFOT7W.js} +3 -3
- package/dist/bundle/{chunk-645FQC4G.js → chunk-CLTFTGBP.js} +18 -17
- package/dist/bundle/{chunk-XRVZMM5B.js → chunk-DKGKPJA3.js} +164 -36
- package/dist/bundle/{chunk-HPSESLOZ.js → chunk-DNCLQPOM.js} +1 -1
- package/dist/bundle/{chunk-EGR3YUWD.js → chunk-DPV53EZC.js} +4 -4
- package/dist/bundle/{chunk-GI6DNX7Q.js → chunk-DYCE72XB.js} +36 -36
- package/dist/bundle/{chunk-42XY6D5C.js → chunk-EDWY73H7.js} +5 -5
- package/dist/bundle/{chunk-L4QLZDBZ.js → chunk-EJQAP6A6.js} +6 -6
- package/dist/bundle/{chunk-REWV37HQ.js → chunk-ESNZL7SB.js} +6 -6
- package/dist/bundle/{chunk-DVJPEZGV.js → chunk-FFER7KJI.js} +13 -13
- package/dist/bundle/{chunk-NJZR3OFK.js → chunk-FTH6WGYO.js} +1 -1
- package/dist/bundle/{chunk-SJNFPBPF.js → chunk-FWGNDKJK.js} +2 -2
- package/dist/bundle/{chunk-5VPLQS4S.js → chunk-G46PNDWL.js} +2 -2
- package/dist/bundle/chunk-G5HG7ZWQ.js +1169 -0
- package/dist/bundle/{chunk-RMWS7IQ4.js → chunk-G6NY7LFB.js} +4 -4
- package/dist/bundle/{chunk-PPIMXOBT.js → chunk-GMWKNWWY.js} +6 -6
- package/dist/bundle/{chunk-774VG5WZ.js → chunk-GZ7WBU5Y.js} +1 -1
- package/dist/bundle/{chunk-LQQIYBHN.js → chunk-HFDDVGDH.js} +201 -113
- package/dist/bundle/{chunk-NYYMMIVW.js → chunk-HFRH5YJ6.js} +16 -3
- package/dist/bundle/{chunk-3BYKGMRM.js → chunk-HI6MTNID.js} +6 -6
- package/dist/bundle/{chunk-PF7ZNIVP.js → chunk-HIKPVWCL.js} +3 -3
- package/dist/bundle/{chunk-U3BO342P.js → chunk-HO4JGD4Q.js} +1 -1
- package/dist/bundle/chunk-HUAHLO6N.js +29 -0
- package/dist/bundle/{chunk-QI2XGTFH.js → chunk-HYUUAH2N.js} +8 -8
- package/dist/bundle/chunk-I4AWLFYH.js +377 -0
- package/dist/bundle/{chunk-MRWV5VNQ.js → chunk-I4PZOWYG.js} +6 -6
- package/dist/bundle/chunk-IDCZ4LWS.js +150 -0
- package/dist/bundle/{chunk-NTUP5RCP.js → chunk-ISQ23VKV.js} +8 -1
- package/dist/bundle/{chunk-2VEFNFYZ.js → chunk-KLRCTMES.js} +3 -3
- package/dist/bundle/{chunk-C3JSQ7UJ.js → chunk-KP5JDYY6.js} +27 -8
- package/dist/bundle/{chunk-CMOO4INK.js → chunk-KYRYD4CR.js} +1 -1
- package/dist/bundle/{chunk-KTVQIKU5.js → chunk-LB2CF3GG.js} +19 -15
- package/dist/bundle/{chunk-6PKMUKUF.js → chunk-LC7ZD2RW.js} +1 -1
- package/dist/bundle/{chunk-2UNZ3L2H.js → chunk-M65NILSA.js} +6 -6
- package/dist/bundle/{chunk-PMSZBUC7.js → chunk-NQFG7AES.js} +8 -8
- package/dist/bundle/chunk-OAO3JKQD.js +463 -0
- package/dist/bundle/{chunk-JCILSTFK.js → chunk-OEEWVKJX.js} +1 -1
- package/dist/bundle/{chunk-6VMJLOYO.js → chunk-OVHC7OV4.js} +12 -12
- package/dist/bundle/{chunk-OEL4DQTT.js → chunk-PT4VLN3K.js} +4 -4
- package/dist/bundle/chunk-QETNCUWB.js +1703 -0
- package/dist/bundle/{chunk-ZRSLG3B3.js → chunk-QK3Z7BCC.js} +6 -6
- package/dist/bundle/{chunk-CJHO6B3M.js → chunk-QWF3TFW4.js} +43 -29
- package/dist/bundle/{chunk-NYR7PIAG.js → chunk-RHEDE7D4.js} +3 -3
- package/dist/bundle/{chunk-KP7JHJVP.js → chunk-RI5YZ23Y.js} +27 -27
- package/dist/bundle/{chunk-2RV4V55B.js → chunk-ROUZN6UQ.js} +20 -85
- package/dist/bundle/{chunk-4WSTWZUB.js → chunk-RQD7CAGF.js} +2 -2
- package/dist/bundle/{chunk-PMGAU6AP.js → chunk-S6JG4YUH.js} +2 -2
- package/dist/bundle/{chunk-KLPFPNZP.js → chunk-SBLHQAH3.js} +11 -11
- package/dist/bundle/{chunk-6UYIWQLU.js → chunk-SXLIADMY.js} +4 -4
- package/dist/bundle/{chunk-5JEKBYIH.js → chunk-SYCM6SQ5.js} +14 -14
- package/dist/bundle/{chunk-3NOXZZJV.js → chunk-T3W4V4A6.js} +1 -1
- package/dist/bundle/{chunk-6NDPOY4N.js → chunk-TCT5D2X2.js} +1 -1
- package/dist/bundle/{chunk-YPB5BEAD.js → chunk-TES7MB6I.js} +2 -2
- package/dist/bundle/chunk-TQDSBLQB.js +2 -0
- package/dist/bundle/{chunk-VIJV474N.js → chunk-TXDR6YSF.js} +1 -1
- package/dist/bundle/{chunk-QDNYJOWJ.js → chunk-TY7NDMFY.js} +1 -1
- package/dist/bundle/{chunk-437UHSIO.js → chunk-UGFMQWAZ.js} +210 -62
- package/dist/bundle/{chunk-KVFBSOCV.js → chunk-VA6PHTMV.js} +9 -9
- package/dist/bundle/{chunk-WPPPO427.js → chunk-VK24UQSD.js} +4 -4
- package/dist/bundle/{chunk-MT3LYU4T.js → chunk-VUHH4MQW.js} +21768 -12322
- package/dist/bundle/{chunk-CJMZQ2MZ.js → chunk-W3BOR6AT.js} +8 -8
- package/dist/bundle/chunk-WA53OJ7V.js +160 -0
- package/dist/bundle/{chunk-HH34WRQE.js → chunk-XGVMQMTS.js} +7 -7
- package/dist/bundle/{chunk-GBZIWCEP.js → chunk-YP4FYLFI.js} +3 -3
- package/dist/bundle/{chunk-V5I7QP4T.js → chunk-ZDBWBCEO.js} +2 -2
- package/dist/bundle/{chunk-GCTHVCJU.js → chunk-ZKVUAH5N.js} +4 -4
- package/dist/bundle/command-contract-V2WIL6RL.js +40 -0
- package/dist/bundle/{command-server-entry-73RJELAV.js → command-server-entry-ZC5YF4EC.js} +29 -28
- package/dist/bundle/{decode-7BUWBDPT.js → decode-NXAGEUAD.js} +5 -5
- package/dist/bundle/{dispatch-IBOMVWZA.js → dispatch-USKS7J74.js} +8 -8
- package/dist/bundle/{dist-MULVCVSR.js → dist-XN2CRP3U.js} +49 -48
- package/dist/bundle/{echarts-VLWFC322.js → echarts-QMAA7HH5.js} +2 -2
- package/dist/bundle/{embed-W3VH4HPY.js → embed-3P3LSM2O.js} +6 -6
- package/dist/bundle/{embedder-I7ERQZJV.js → embedder-2SANUF2X.js} +9 -9
- package/dist/bundle/{failure-QMAPSQ7X.js → failure-D4FGOIWF.js} +2 -2
- package/dist/bundle/{first-run-LCVER6QN.js → first-run-HEZKQLJL.js} +12 -12
- package/dist/bundle/first-screen-7TQZ4I6X.js +41 -0
- package/dist/bundle/{instructions-BNCVLSYQ.js → instructions-4H7UREH2.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-Z2KZNCXB.js → mcp-5HFPWC3W.js} +2 -2
- package/dist/bundle/meeting-combined-HF2NL4PU.js +26 -0
- package/dist/bundle/{meeting-model-BWLSTNXA.js → meeting-model-B7RVFB7L.js} +11 -11
- package/dist/bundle/{meeting-semantic-ZIEHXN2R.js → meeting-semantic-YQTL7YVQ.js} +6 -6
- package/dist/bundle/{node-RYFTRSG4.js → node-P3PUHKYH.js} +2 -2
- package/dist/bundle/{node-sqlite-XCHVNTGQ.js → node-sqlite-OFHTCHJH.js} +7 -7
- package/dist/bundle/{oauth-FNUJSKKJ.js → oauth-IVB5RP7T.js} +7 -7
- package/dist/bundle/{open-WVWSJ3WI.js → open-KDGDLCWV.js} +5 -5
- package/dist/bundle/{openai-QOUTYYTF.js → openai-NVUBKA7Z.js} +15 -15
- package/dist/bundle/{process-W5KPID53.js → process-AFIXYXWL.js} +1 -1
- package/dist/bundle/{program-L5UANM3I.js → program-JQ7EFODJ.js} +2825 -7739
- package/dist/bundle/{prompt-JSBAPNJE.js → prompt-QG7FC2SA.js} +5 -5
- package/dist/bundle/public-FBD7MQUM.js +204 -0
- package/dist/bundle/{recognize-FDX4SJ6Q.js → recognize-ZBR5KNID.js} +4 -4
- package/dist/bundle/{remote-MYOXOQHM.js → remote-QOTHNO2M.js} +9 -9
- package/dist/bundle/{rerank-NY5MSZCR.js → rerank-JD2NIUW6.js} +7 -7
- package/dist/bundle/{serve-URI6NZA3.js → serve-QZT3FKK7.js} +9 -9
- package/dist/bundle/{server-HQ25RHQM.js → server-M6JJ7IKS.js} +62 -59
- package/dist/bundle/server-TAMXMWK6.js +87 -0
- package/dist/bundle/{sqlite-runtime-6UUPSSKG.js → sqlite-runtime-N2PY7C7J.js} +6 -6
- package/dist/bundle/{state-NDDVFPCI.js → state-OGRUMU7P.js} +6 -6
- package/dist/bundle/{store-2RDOICVN.js → store-7UE63OQR.js} +61 -43
- package/dist/bundle/{store-PKYWPKKR.js → store-DGJKE4ZJ.js} +25 -23
- package/dist/bundle/store-maintenance-command-WIDKMZLK.js +74 -0
- package/dist/bundle/surface-LTEEEZU4.js +73 -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.d.ts.map +1 -1
- package/dist/commands/session.js +2 -2
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +28 -4
- 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/identity.d.ts.map +1 -1
- package/dist/identity.js +1 -0
- package/dist/identity.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-as.d.ts +21 -0
- package/dist/mail/send-as.d.ts.map +1 -0
- package/dist/mail/send-as.js +66 -0
- package/dist/mail/send-as.js.map +1 -0
- package/dist/mail/send.d.ts +2 -0
- package/dist/mail/send.d.ts.map +1 -1
- package/dist/mail/send.js +3 -1
- package/dist/mail/send.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-MW7YWUIY.js +0 -39
- package/dist/bundle/chunk-5TIWO6AR.js +0 -787
- package/dist/bundle/chunk-6LJIENVT.js +0 -29
- package/dist/bundle/chunk-6TT62IUW.js +0 -1264
- package/dist/bundle/chunk-NCY55XIT.js +0 -721
- package/dist/bundle/chunk-U67XMAEE.js +0 -72
- package/dist/bundle/command-contract-WFTIRPL5.js +0 -39
- package/dist/bundle/first-screen-DCTHI4NQ.js +0 -39
- package/dist/bundle/meeting-combined-ITU7SZ7E.js +0 -24
- package/dist/bundle/server-UVYFU2JN.js +0 -84
- package/dist/bundle/store-maintenance-command-Y5XTO47X.js +0 -71
- package/dist/bundle/surface-3XKM3MQ2.js +0 -70
|
@@ -15,209 +15,75 @@ 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-AGO3OVKW.js";
|
|
21
23
|
import {
|
|
22
24
|
capability,
|
|
23
25
|
throughWrapper
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LB2CF3GG.js";
|
|
25
27
|
import {
|
|
26
28
|
servingProfiles
|
|
27
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HFRH5YJ6.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-BA5B5ZF4.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-RJUVWJTA.js";
|
|
45
|
+
readKeysForCommand
|
|
46
|
+
} from "./chunk-2HDXD6LM.js";
|
|
54
47
|
import {
|
|
55
48
|
providerErrorKey
|
|
56
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-NQFG7AES.js";
|
|
57
50
|
import {
|
|
58
51
|
openStore
|
|
59
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-VUHH4MQW.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-ROUZN6UQ.js";
|
|
67
60
|
import {
|
|
68
61
|
isCliFailure
|
|
69
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-3TYER5IK.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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/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"
|
|
70
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
71
|
+
var LONG_LIVED = /* @__PURE__ */ new Set([
|
|
72
|
+
"self",
|
|
73
|
+
"newSendId",
|
|
74
|
+
"close",
|
|
75
|
+
"formatMarkdown",
|
|
76
|
+
"formatHtml",
|
|
77
|
+
"storedChats",
|
|
78
|
+
"threadRootsIn"
|
|
145
79
|
]);
|
|
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.713.0_@wirecat+cli-base@0.125.1_commander@15.0.0_esbuild@0.28.2_typ_29dc9b659505b9f83a43774498347dd2/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
213
|
-
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
214
80
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
215
81
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
216
82
|
var chatOf = /* @__PURE__ */ __name((args) => typeof args[0] === "string" && /^-?\d+$/.test(args[0]) ? args[0] : void 0, "chatOf");
|
|
217
83
|
var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer }) => {
|
|
218
|
-
const kept = /* @__PURE__ */ __name(async (operation,
|
|
84
|
+
const kept = /* @__PURE__ */ __name(async (operation, what) => {
|
|
219
85
|
try {
|
|
220
|
-
await
|
|
86
|
+
await what();
|
|
221
87
|
} catch (error) {
|
|
222
88
|
warn(`could not remember ${name}'s wait (${error instanceof Error ? error.message : String(error)})`, {
|
|
223
89
|
event: "warning",
|
|
@@ -306,7 +172,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
306
172
|
});
|
|
307
173
|
}, "flooded");
|
|
308
174
|
|
|
309
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
175
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
310
176
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
311
177
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
312
178
|
const write = currentOperation();
|
|
@@ -405,7 +271,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
405
271
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
406
272
|
}, "byPart");
|
|
407
273
|
|
|
408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
274
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
409
275
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
410
276
|
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
277
|
let warned = false;
|
|
@@ -981,7 +847,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
981
847
|
}
|
|
982
848
|
}, "keep");
|
|
983
849
|
|
|
984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
850
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
985
851
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
986
852
|
let opened;
|
|
987
853
|
return {
|
|
@@ -1075,7 +941,7 @@ var settled = /* @__PURE__ */ __name(async (pending, ms) => {
|
|
|
1075
941
|
clearTimeout(timer);
|
|
1076
942
|
}
|
|
1077
943
|
}, "settled");
|
|
1078
|
-
var listened = /* @__PURE__ */ __name(({ run, operation, what
|
|
944
|
+
var listened = /* @__PURE__ */ __name(({ run, operation, what }, events, warn, waitMs) => {
|
|
1079
945
|
const abort = new AbortController();
|
|
1080
946
|
let closing = false;
|
|
1081
947
|
const ended = Promise.resolve().then(() => run(abort.signal)).catch((error) => {
|
|
@@ -1083,11 +949,11 @@ var listened = /* @__PURE__ */ __name(({ run, operation, what: what2 }, events,
|
|
|
1083
949
|
return;
|
|
1084
950
|
const warning = { event: "warning", code: "listen_failed", operation };
|
|
1085
951
|
events(warning);
|
|
1086
|
-
warn(`${
|
|
952
|
+
warn(`${what} arriving during this command are not saved: ${error instanceof Error ? error.message : String(error)}`, warning);
|
|
1087
953
|
});
|
|
1088
954
|
return {
|
|
1089
955
|
operation,
|
|
1090
|
-
what
|
|
956
|
+
what,
|
|
1091
957
|
closing: /* @__PURE__ */ __name(() => {
|
|
1092
958
|
closing = true;
|
|
1093
959
|
}, "closing"),
|
|
@@ -1178,10 +1044,10 @@ var connected = /* @__PURE__ */ __name((connection, { app, provider, name, delet
|
|
|
1178
1044
|
events(warning);
|
|
1179
1045
|
warn(text, warning);
|
|
1180
1046
|
}, "warned");
|
|
1181
|
-
passives.forEach(({ operation, what
|
|
1047
|
+
passives.forEach(({ operation, what }, at) => {
|
|
1182
1048
|
if (ended[at])
|
|
1183
1049
|
return;
|
|
1184
|
-
warned({ event: "warning", code: "store_not_written", operation }, `not saved to the local store: the messenger was still handing on ${
|
|
1050
|
+
warned({ event: "warning", code: "store_not_written", operation }, `not saved to the local store: the messenger was still handing on ${what} at exit`);
|
|
1185
1051
|
});
|
|
1186
1052
|
await settled(/* @__PURE__ */ new Set([...pending, ...announcing]), closeWaitMs);
|
|
1187
1053
|
closing.abort();
|
|
@@ -1240,14 +1106,14 @@ var warnUnserved = /* @__PURE__ */ __name(async (messenger, profile, { env, rend
|
|
|
1240
1106
|
const newest = (await store.chats.chatStats(account)).map((one) => one.newestAt).reduce((latest, at) => at !== null && (latest === null || at > latest) ? at : latest, null);
|
|
1241
1107
|
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
1108
|
}, "warnUnserved");
|
|
1243
|
-
var
|
|
1109
|
+
var pathOf = /* @__PURE__ */ __name((command) => {
|
|
1244
1110
|
const words = [];
|
|
1245
1111
|
for (let at = command; at?.parent; at = at.parent)
|
|
1246
1112
|
words.unshift(at.name());
|
|
1247
1113
|
return words;
|
|
1248
1114
|
}, "pathOf");
|
|
1249
1115
|
var refuseDenied = /* @__PURE__ */ __name((command, settings) => {
|
|
1250
|
-
for (const key of readKeysForCommand(
|
|
1116
|
+
for (const key of readKeysForCommand(pathOf(command))) {
|
|
1251
1117
|
const { level, key: named } = levelFor(settings.permissions, key);
|
|
1252
1118
|
if (level !== "deny")
|
|
1253
1119
|
continue;
|
|
@@ -1270,7 +1136,7 @@ var messengerContext = /* @__PURE__ */ __name((command, messenger, resolving = {
|
|
|
1270
1136
|
const base = baseContext(command, (flags, options) => messenger.resolveSettings(flags, { ...options, ...resolving }));
|
|
1271
1137
|
const { profile } = base.settings;
|
|
1272
1138
|
refuseDenied(command, base.settings);
|
|
1273
|
-
refuseLacking(messenger,
|
|
1139
|
+
refuseLacking(messenger, pathOf(command));
|
|
1274
1140
|
refuseUnknownPermissionKeys(command, base.settings, app.command, messenger.permissionKey);
|
|
1275
1141
|
const warn = /* @__PURE__ */ __name((text, warning) => base.renderer.warn(text, warning), "warn");
|
|
1276
1142
|
const accountFor = /* @__PURE__ */ __name(() => {
|
|
@@ -1382,13 +1248,6 @@ var messengerContext = /* @__PURE__ */ __name((command, messenger, resolving = {
|
|
|
1382
1248
|
}, "messengerContext");
|
|
1383
1249
|
|
|
1384
1250
|
export {
|
|
1385
|
-
answerOf,
|
|
1386
|
-
terminalAsker,
|
|
1387
|
-
commandPermissions,
|
|
1388
|
-
knownPermissionKeys,
|
|
1389
|
-
knownBeside,
|
|
1390
|
-
unknownPermissionIssues,
|
|
1391
|
-
refuseUnknownPermissionKeys,
|
|
1392
1251
|
fill,
|
|
1393
1252
|
connectedFor,
|
|
1394
1253
|
refuseLocalWrite,
|
|
@@ -5,11 +5,15 @@ import {
|
|
|
5
5
|
} from "./chunk-HTQTIKWP.js";
|
|
6
6
|
import {
|
|
7
7
|
WIRECAT_TOOLS
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ISQ23VKV.js";
|
|
9
|
+
import {
|
|
10
|
+
hasOwnAction,
|
|
11
|
+
isHidden
|
|
12
|
+
} from "./chunk-HUAHLO6N.js";
|
|
9
13
|
import {
|
|
10
14
|
commandPathOf,
|
|
11
15
|
outputOf
|
|
12
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EDWY73H7.js";
|
|
13
17
|
import {
|
|
14
18
|
Command,
|
|
15
19
|
Help,
|
|
@@ -20,18 +24,18 @@ import {
|
|
|
20
24
|
environmentOf,
|
|
21
25
|
metaOf,
|
|
22
26
|
takesProfile
|
|
23
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-BA5B5ZF4.js";
|
|
24
28
|
import {
|
|
25
29
|
writes
|
|
26
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-KP5JDYY6.js";
|
|
27
31
|
import {
|
|
28
32
|
CliError
|
|
29
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-S6JG4YUH.js";
|
|
30
34
|
import {
|
|
31
35
|
__name
|
|
32
36
|
} from "./chunk-ZVVMGPBJ.js";
|
|
33
37
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
35
39
|
var ARGUMENT_KINDS = {
|
|
36
40
|
chat: "chat",
|
|
37
41
|
chats: "chat",
|
|
@@ -105,8 +109,8 @@ var SAMPLES = {
|
|
|
105
109
|
var MAX_NEXT = 3;
|
|
106
110
|
var choices = /* @__PURE__ */ new WeakMap();
|
|
107
111
|
var kindOfArgument = /* @__PURE__ */ __name((argument) => ARGUMENT_KINDS[argument.name()], "kindOfArgument");
|
|
108
|
-
var runs = /* @__PURE__ */ __name((command) => command.commands.length === 0 ||
|
|
109
|
-
var leaves = /* @__PURE__ */ __name((command) => command.commands.filter((child) => !child
|
|
112
|
+
var runs = /* @__PURE__ */ __name((command) => command.commands.length === 0 || hasOwnAction(command), "runs");
|
|
113
|
+
var leaves = /* @__PURE__ */ __name((command) => command.commands.filter((child) => !isHidden(child)).flatMap((child) => [...runs(child) ? [child] : [], ...leaves(child)]), "leaves");
|
|
110
114
|
var rootOf = /* @__PURE__ */ __name((command) => {
|
|
111
115
|
let at = command;
|
|
112
116
|
while (at.parent)
|
|
@@ -224,7 +228,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
224
228
|
command.addHelpText("after", () => commandHelpText(command));
|
|
225
229
|
}, "installCommandHelp");
|
|
226
230
|
|
|
227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
231
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
228
232
|
var WIDTH = 100;
|
|
229
233
|
var widest = /* @__PURE__ */ __name((texts) => texts.reduce((most, text) => Math.max(most, text.length), 0), "widest");
|
|
230
234
|
var block = /* @__PURE__ */ __name((title, rows, column) => rows.length === 0 ? [] : ["", `${title}:`, ...rows.map(([left, right]) => ` ${left.padEnd(column)}${right}`)], "block");
|
|
@@ -248,7 +252,7 @@ var pointers = /* @__PURE__ */ __name((program, cli, start, profile) => {
|
|
|
248
252
|
].filter((row) => row !== void 0);
|
|
249
253
|
const rows = [
|
|
250
254
|
...start ? [["Start here:", start, profile ? "(any profile name works)" : ""]] : [],
|
|
251
|
-
...has("
|
|
255
|
+
...has("session list") ? [["", `${cli} session list`, "your profiles and their logged-in accounts"]] : [],
|
|
252
256
|
...next.map(([command = "", does = ""], at) => [at === 0 ? "Next:" : "", command, does]),
|
|
253
257
|
...has("skill show") ? [["For agents:", `${cli} skill show`, "rules and the discovery loop"]] : []
|
|
254
258
|
];
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
id,
|
|
6
6
|
text,
|
|
7
7
|
time
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-G5HG7ZWQ.js";
|
|
9
9
|
import {
|
|
10
10
|
array,
|
|
11
11
|
nullable,
|
|
@@ -16,9 +16,9 @@ import {
|
|
|
16
16
|
strictObject,
|
|
17
17
|
string,
|
|
18
18
|
unknown
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KP5JDYY6.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
22
22
|
var link = {
|
|
23
23
|
target_text: nullable(text),
|
|
24
24
|
kind: text,
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
AUDIT_MIN_SCORE
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AGO3OVKW.js";
|
|
6
6
|
import {
|
|
7
7
|
LIST_QUERY_GUIDE,
|
|
8
8
|
nativeTerms
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LB2CF3GG.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_CONFIG,
|
|
12
12
|
environmentOf,
|
|
@@ -16,21 +16,21 @@ import {
|
|
|
16
16
|
renderAnswer,
|
|
17
17
|
snakeKeys,
|
|
18
18
|
withAgentLevels
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BA5B5ZF4.js";
|
|
20
20
|
import {
|
|
21
21
|
formatReference
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-OAO3JKQD.js";
|
|
23
23
|
import {
|
|
24
24
|
queryError
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-725OPCHI.js";
|
|
26
26
|
import {
|
|
27
27
|
CliError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-S6JG4YUH.js";
|
|
29
29
|
import {
|
|
30
30
|
__name
|
|
31
31
|
} from "./chunk-ZVVMGPBJ.js";
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
34
34
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
35
35
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
36
36
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -57,7 +57,7 @@ var pagingOf = /* @__PURE__ */ __name((command) => {
|
|
|
57
57
|
return { limit: limit ?? DEFAULT_CONFIG.defaults.limit, page: page ?? 1 };
|
|
58
58
|
}, "pagingOf");
|
|
59
59
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60
|
+
// node_modules/.pnpm/@wirecat+cli-core@2.0.0_@wirecat+cli-base@1.0.0_commander@15.0.0_esbuild@0.28.2_typescr_a82f624c57005d53c3f072e45c3a3a86/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
61
61
|
var defined = /* @__PURE__ */ __name((record) => Object.fromEntries(Object.entries(record).filter(([, value]) => value !== void 0)), "defined");
|
|
62
62
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
63
63
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|