@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
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
CliError
|
|
5
|
+
} from "./chunk-S6JG4YUH.js";
|
|
6
|
+
import {
|
|
7
|
+
__name
|
|
8
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
9
|
+
|
|
10
|
+
// 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/tasks/model.js
|
|
11
|
+
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
12
|
+
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
13
|
+
var CLOSED_STATES = ["done", "dismissed"];
|
|
14
|
+
var TASK_ORIGINS = ["rule", "agent", "owner"];
|
|
15
|
+
var TASK_VERDICTS = ["useful", "not_useful"];
|
|
16
|
+
var isClosedState = /* @__PURE__ */ __name((state) => CLOSED_STATES.includes(state), "isClosedState");
|
|
17
|
+
function closeTask(task, state, by, at, reason) {
|
|
18
|
+
if (isClosedState(task.state))
|
|
19
|
+
throw new CliError("validation_error", `task ${task.id} is already ${task.state}`, { reason: "task.closed" });
|
|
20
|
+
const { claimedBy: _by, claimedUntil: _until, ...unclaimed } = task;
|
|
21
|
+
return { ...unclaimed, state, closedAt: at, closedBy: by, ...reason === void 0 ? {} : { reason } };
|
|
22
|
+
}
|
|
23
|
+
__name(closeTask, "closeTask");
|
|
24
|
+
|
|
25
|
+
// 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/tasks/priority.js
|
|
26
|
+
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
27
|
+
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
28
|
+
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
29
|
+
var priorityLabel = /* @__PURE__ */ __name((score) => score === null ? null : PRIORITY_LABELS[Math.min(3, Math.max(0, Math.floor(score * 4)))], "priorityLabel");
|
|
30
|
+
var priorityBand = /* @__PURE__ */ __name((label) => {
|
|
31
|
+
const at = PRIORITY_LABELS.indexOf(label);
|
|
32
|
+
return { from: at / 4, to: (at + 1) / 4 };
|
|
33
|
+
}, "priorityBand");
|
|
34
|
+
var legacyPriority = /* @__PURE__ */ __name((score) => score === null ? null : score < 0.125 ? 4 : 3 - PRIORITY_LABELS.indexOf(priorityLabel(score)), "legacyPriority");
|
|
35
|
+
var checkedScore = /* @__PURE__ */ __name((score) => {
|
|
36
|
+
if (!Number.isFinite(score) || score < 0 || score > 1)
|
|
37
|
+
throw new CliError("validation_error", "a priority score is 0 to 1");
|
|
38
|
+
return score;
|
|
39
|
+
}, "checkedScore");
|
|
40
|
+
var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
41
|
+
const word = value.trim().toLowerCase();
|
|
42
|
+
if (word === "none")
|
|
43
|
+
return null;
|
|
44
|
+
if (PRIORITY_LABELS.includes(word))
|
|
45
|
+
return MIDDLE[word];
|
|
46
|
+
if (/^[0-4]$/.test(word))
|
|
47
|
+
return LEGACY_PRIORITY_SCORES[Number(word)];
|
|
48
|
+
if (/^(0?\.\d+|[01]\.\d*)$/.test(word) && Number(word) <= 1)
|
|
49
|
+
return Number(word);
|
|
50
|
+
throw new CliError("validation_error", `a priority is ${PRIORITY_LABELS.join(", ")}, none, or a score from 0.0 to 1.0 with its decimal point; 0 (urgent) \u2026 4 (low) still work as critical, high, medium, low, low`);
|
|
51
|
+
}, "priorityOf");
|
|
52
|
+
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
53
|
+
|
|
54
|
+
// 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/tasks/service.js
|
|
55
|
+
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
56
|
+
async function find(id) {
|
|
57
|
+
const task = await store.get(id);
|
|
58
|
+
if (!task)
|
|
59
|
+
throw new CliError("not_found", `no task ${id}`);
|
|
60
|
+
return task;
|
|
61
|
+
}
|
|
62
|
+
__name(find, "find");
|
|
63
|
+
return {
|
|
64
|
+
/**
|
|
65
|
+
* A rule never makes a second task from a source it has seen, whatever that task's state, so a
|
|
66
|
+
* dismissed one stays dismissed — nor from a message attached or merged into a task. A person or an agent may
|
|
67
|
+
* add a task of another kind to it. A task a rule opens goes through the host's duplicate check.
|
|
68
|
+
*/
|
|
69
|
+
async add(input) {
|
|
70
|
+
const rule = input.origin === "rule";
|
|
71
|
+
const existing = await store.findBySource(input.account, input.source, rule ? { linked: true } : void 0);
|
|
72
|
+
const same = rule ? existing[0] : existing.find((task2) => task2.kind === input.kind);
|
|
73
|
+
if (same)
|
|
74
|
+
return { task: same, created: false };
|
|
75
|
+
const task = { ...input, id: newId(), state: "open", createdAt: now() };
|
|
76
|
+
await store.insert(task);
|
|
77
|
+
if (!rule || !store.reviewDuplicates)
|
|
78
|
+
return { task, created: true };
|
|
79
|
+
return { task, created: true, review: await store.reviewDuplicates(task.id) };
|
|
80
|
+
},
|
|
81
|
+
async close(id, { as, by, reason }) {
|
|
82
|
+
const task = closeTask(await find(id), as, by, now(), reason);
|
|
83
|
+
await store.update(task);
|
|
84
|
+
return task;
|
|
85
|
+
},
|
|
86
|
+
list: /* @__PURE__ */ __name((filter = {}) => store.list(filter), "list"),
|
|
87
|
+
async stats(filter = {}) {
|
|
88
|
+
const byGroup = /* @__PURE__ */ new Map();
|
|
89
|
+
for (const task of await store.list(filter))
|
|
90
|
+
byGroup.set(task.group, [...byGroup.get(task.group) ?? [], task]);
|
|
91
|
+
return [...byGroup].map(([group, tasks]) => {
|
|
92
|
+
const open = tasks.filter((task) => !isClosedState(task.state));
|
|
93
|
+
const closeMs = tasks.flatMap((task) => task.closedAt ? [task.closedAt.getTime() - task.createdAt.getTime()] : []);
|
|
94
|
+
const oldestOpenAt = open.map((task) => task.createdAt).sort((a, b) => a.getTime() - b.getTime())[0];
|
|
95
|
+
return {
|
|
96
|
+
group,
|
|
97
|
+
open: open.length,
|
|
98
|
+
...oldestOpenAt ? { oldestOpenAt } : {},
|
|
99
|
+
...closeMs.length > 0 ? { medianCloseMs: median(closeMs) } : {}
|
|
100
|
+
};
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
__name(createTaskService, "createTaskService");
|
|
106
|
+
function median(values) {
|
|
107
|
+
const sorted = [...values].sort((a, b) => a - b);
|
|
108
|
+
const middle = Math.floor(sorted.length / 2);
|
|
109
|
+
const upper = sorted[middle] ?? 0;
|
|
110
|
+
return sorted.length % 2 === 1 ? upper : ((sorted[middle - 1] ?? 0) + upper) / 2;
|
|
111
|
+
}
|
|
112
|
+
__name(median, "median");
|
|
113
|
+
|
|
114
|
+
// 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/tasks/store.js
|
|
115
|
+
function matches(task, filter) {
|
|
116
|
+
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
117
|
+
}
|
|
118
|
+
__name(matches, "matches");
|
|
119
|
+
|
|
120
|
+
// 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/domain/knowledge.js
|
|
121
|
+
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
122
|
+
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
123
|
+
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
124
|
+
var MEMORY_SCOPES = ["personal", "work"];
|
|
125
|
+
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
126
|
+
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
127
|
+
|
|
128
|
+
export {
|
|
129
|
+
TASK_KINDS,
|
|
130
|
+
TASK_STATES,
|
|
131
|
+
CLOSED_STATES,
|
|
132
|
+
TASK_ORIGINS,
|
|
133
|
+
TASK_VERDICTS,
|
|
134
|
+
isClosedState,
|
|
135
|
+
PRIORITY_LABELS,
|
|
136
|
+
priorityLabel,
|
|
137
|
+
priorityBand,
|
|
138
|
+
legacyPriority,
|
|
139
|
+
checkedScore,
|
|
140
|
+
priorityOf,
|
|
141
|
+
priorityOption,
|
|
142
|
+
createTaskService,
|
|
143
|
+
matches,
|
|
144
|
+
FACT_STATUSES,
|
|
145
|
+
MEMORY_KINDS,
|
|
146
|
+
MEMORY_STATUSES,
|
|
147
|
+
MEMORY_SCOPES,
|
|
148
|
+
WORK_TASK_TYPES,
|
|
149
|
+
TASK_TYPES
|
|
150
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
|
|
4
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4
|
+
// 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/ports/wirecat-tools.js
|
|
5
5
|
var WIRECAT_TOOLS = [
|
|
6
6
|
{
|
|
7
7
|
command: "tg",
|
|
@@ -74,6 +74,13 @@ var WIRECAT_TOOLS = [
|
|
|
74
74
|
package: "@wirecat/amo-cli",
|
|
75
75
|
does: "amoCRM and Kommo: deals, contacts and companies, searchable with your other WireCat data"
|
|
76
76
|
},
|
|
77
|
+
{
|
|
78
|
+
command: "attio",
|
|
79
|
+
appName: "attio-cli",
|
|
80
|
+
envPrefix: "WCATTIO",
|
|
81
|
+
package: "@wirecat/attio-cli",
|
|
82
|
+
does: "Attio CRM: deals, people and companies, searchable with your other WireCat data"
|
|
83
|
+
},
|
|
77
84
|
{
|
|
78
85
|
command: "pbx",
|
|
79
86
|
appName: "asterisk-cli",
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TES7MB6I.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-S6JG4YUH.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// 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/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var EMPTY_TRIES = 3;
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
errorCodes,
|
|
5
5
|
isCliError,
|
|
6
6
|
visibleControls
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-S6JG4YUH.js";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "./chunk-ZVVMGPBJ.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
12
|
+
// 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/exit-codes.js
|
|
13
13
|
var EXIT_CODES = {
|
|
14
14
|
validation_error: 2,
|
|
15
15
|
configuration_error: 3,
|
|
@@ -155,6 +155,7 @@ var ValiError = class extends Error {
|
|
|
155
155
|
this.issues = issues;
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
|
+
var EMAIL_REGEX = /^[\w+-]+(?:\.[\w+-]+)*@[\da-zA-Z]+(?:[.-][\da-zA-Z]+)*\.[a-zA-Z]{2,}$/u;
|
|
158
159
|
var EMOJI_REGEX = new RegExp("^(?:[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|(?![\\p{Emoji_Modifier_Base}\\u{1F1E6}-\\u{1F1FF}])\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|(?![\\p{Emoji_Modifier_Base}\\u{1F1E6}-\\u{1F1FF}])\\p{Emoji_Presentation}))*)+$", "u");
|
|
159
160
|
var ISO_DATE_REGEX = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])$/u;
|
|
160
161
|
var ISO_TIMESTAMP_REGEX = /^\d{4}-(?:0[1-9]|1[0-2])-(?:[12]\d|0[1-9]|3[01])[T ](?:0\d|1\d|2[0-3])(?::[0-5]\d){2}(?:\.\d{1,9})?(?:Z| ?[+-](?:0\d|1\d|2[0-3])(?::?[0-5]\d)?)$/u;
|
|
@@ -186,6 +187,23 @@ function description(description_) {
|
|
|
186
187
|
}
|
|
187
188
|
__name(description, "description");
|
|
188
189
|
// @__NO_SIDE_EFFECTS__
|
|
190
|
+
function email(message$1) {
|
|
191
|
+
return {
|
|
192
|
+
kind: "validation",
|
|
193
|
+
type: "email",
|
|
194
|
+
reference: email,
|
|
195
|
+
expects: null,
|
|
196
|
+
async: false,
|
|
197
|
+
requirement: EMAIL_REGEX,
|
|
198
|
+
message: message$1,
|
|
199
|
+
"~run"(dataset, config$1) {
|
|
200
|
+
if (dataset.typed && !this.requirement.test(dataset.value)) _addIssue(this, "email", dataset, config$1);
|
|
201
|
+
return dataset;
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
__name(email, "email");
|
|
206
|
+
// @__NO_SIDE_EFFECTS__
|
|
189
207
|
function endsWith(requirement, message$1) {
|
|
190
208
|
return {
|
|
191
209
|
kind: "validation",
|
|
@@ -1409,7 +1427,7 @@ function unwrap(schema) {
|
|
|
1409
1427
|
}
|
|
1410
1428
|
__name(unwrap, "unwrap");
|
|
1411
1429
|
|
|
1412
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1430
|
+
// 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/standards/effects.js
|
|
1413
1431
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
1414
1432
|
var effectsSchema = strictObject({
|
|
1415
1433
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -2046,7 +2064,7 @@ function toStandardJsonSchema(schema) {
|
|
|
2046
2064
|
}
|
|
2047
2065
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
2048
2066
|
|
|
2049
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2067
|
+
// 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/standards/registry.js
|
|
2050
2068
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
2051
2069
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
2052
2070
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -2088,7 +2106,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
2088
2106
|
return String(value);
|
|
2089
2107
|
}), "fill");
|
|
2090
2108
|
|
|
2091
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2109
|
+
// 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/standards/output.js
|
|
2092
2110
|
var MAX_NEXT_STEPS = 2;
|
|
2093
2111
|
var COMPACT_FLAG = "--compact";
|
|
2094
2112
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
@@ -2233,7 +2251,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
2233
2251
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
2234
2252
|
].join("\n"), "jsonlOf");
|
|
2235
2253
|
|
|
2236
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2254
|
+
// 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/standards/errors.js
|
|
2237
2255
|
var CRASH_CODE = "internal_error";
|
|
2238
2256
|
var CRASH_REASON = "command.crashed";
|
|
2239
2257
|
var errorObjectSchema = strictObject({
|
|
@@ -2332,7 +2350,7 @@ var BASE_REASONS = defineReasons([
|
|
|
2332
2350
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
2333
2351
|
]);
|
|
2334
2352
|
|
|
2335
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2353
|
+
// 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/standards/steps.js
|
|
2336
2354
|
var SAME_COMMAND = "*";
|
|
2337
2355
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
2338
2356
|
var stepSchema = union([
|
|
@@ -2411,7 +2429,7 @@ var STEPS = defineSteps([
|
|
|
2411
2429
|
}
|
|
2412
2430
|
]);
|
|
2413
2431
|
|
|
2414
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2432
|
+
// 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/failure.js
|
|
2415
2433
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
2416
2434
|
if (isCliError(failure))
|
|
2417
2435
|
return failure;
|
|
@@ -2565,6 +2583,7 @@ export {
|
|
|
2565
2583
|
getDotPath,
|
|
2566
2584
|
check,
|
|
2567
2585
|
description,
|
|
2586
|
+
email,
|
|
2568
2587
|
finite,
|
|
2569
2588
|
integer,
|
|
2570
2589
|
isoDate,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// 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/store/driver.js
|
|
8
8
|
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
9
|
var TimeLimitReached = class extends Error {
|
|
10
10
|
static {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
helpOptionOf,
|
|
5
|
+
rejectUnknownOption
|
|
6
|
+
} from "./chunk-HUAHLO6N.js";
|
|
3
7
|
import {
|
|
4
8
|
Command,
|
|
5
9
|
InvalidArgumentError,
|
|
@@ -8,10 +12,10 @@ import {
|
|
|
8
12
|
annotateOption,
|
|
9
13
|
listOf,
|
|
10
14
|
sharedCommand
|
|
11
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BA5B5ZF4.js";
|
|
12
16
|
import {
|
|
13
17
|
readMoment
|
|
14
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RHEDE7D4.js";
|
|
15
19
|
import {
|
|
16
20
|
BACKENDS,
|
|
17
21
|
EVENT_QUERY,
|
|
@@ -51,15 +55,15 @@ import {
|
|
|
51
55
|
validateMeetingHitSearch,
|
|
52
56
|
validateMeetingPassage,
|
|
53
57
|
validateQuery
|
|
54
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-725OPCHI.js";
|
|
55
59
|
import {
|
|
56
60
|
CliError
|
|
57
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-S6JG4YUH.js";
|
|
58
62
|
import {
|
|
59
63
|
__name
|
|
60
64
|
} from "./chunk-ZVVMGPBJ.js";
|
|
61
65
|
|
|
62
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
66
|
+
// 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/services/moment.js
|
|
63
67
|
var read = /* @__PURE__ */ __name((reference, flag, now, at) => {
|
|
64
68
|
const found = readMoment(reference, flag, { ...at, now });
|
|
65
69
|
if (found === void 0)
|
|
@@ -88,7 +92,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
88
92
|
};
|
|
89
93
|
}, "dateWindow");
|
|
90
94
|
|
|
91
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
95
|
+
// 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/meetings/cli/management.js
|
|
92
96
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
93
97
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
94
98
|
var minutes = /* @__PURE__ */ __name((text) => {
|
|
@@ -193,18 +197,18 @@ var addMeetingManagementCommands = /* @__PURE__ */ __name((group, deps) => {
|
|
|
193
197
|
}).description("the invitation text the service writes for a meeting"))).action(async (id, _flags, command) => inRun(command, async () => print({ item: { ...await management.invitation(id, signalled()), untrusted: ["invitation"] } }, command)));
|
|
194
198
|
}, "addMeetingManagementCommands");
|
|
195
199
|
|
|
196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
200
|
+
// 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/meetings/cli/query-options.js
|
|
197
201
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
198
202
|
command.allowUnknownOption();
|
|
199
203
|
const parse = command.parseOptions.bind(command);
|
|
200
204
|
command.parseOptions = (args) => {
|
|
201
205
|
const parsed = parse(args);
|
|
202
206
|
const end = parsed.unknown.indexOf("--");
|
|
203
|
-
const help = command
|
|
207
|
+
const help = helpOptionOf(command);
|
|
204
208
|
const typo = parsed.unknown.slice(0, end < 0 ? void 0 : end).find((word) => word.startsWith("--") && !help?.is(word));
|
|
205
209
|
if (typo !== void 0) {
|
|
206
210
|
command.allowUnknownOption(false);
|
|
207
|
-
command
|
|
211
|
+
rejectUnknownOption(command, typo);
|
|
208
212
|
}
|
|
209
213
|
if (end >= 0)
|
|
210
214
|
parsed.unknown.splice(end, 1);
|
|
@@ -213,7 +217,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
213
217
|
return command;
|
|
214
218
|
}, "queryWordsAfterOptions");
|
|
215
219
|
|
|
216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
220
|
+
// 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/meetings/cli/passage.js
|
|
217
221
|
var count = /* @__PURE__ */ __name((value) => {
|
|
218
222
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
219
223
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -255,7 +259,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
255
259
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
256
260
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
257
261
|
|
|
258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
262
|
+
// 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/meetings/cli/project-evidence.js
|
|
259
263
|
var integer = /* @__PURE__ */ __name((value) => {
|
|
260
264
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
261
265
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -278,7 +282,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
278
282
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
279
283
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
280
284
|
|
|
281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
285
|
+
// 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/meetings/cli/search.js
|
|
282
286
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
283
287
|
const { since, until, meta } = dateWindow(end ? { untilTime: value, names: [flag, flag] } : { sinceTime: value, names: [flag, flag] });
|
|
284
288
|
if (meta.timezone)
|
|
@@ -357,7 +361,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
357
361
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
358
362
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
359
363
|
|
|
360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
364
|
+
// 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/meetings/cli/index.js
|
|
361
365
|
var EVENT_UNTRUSTED = ["title", "description", "location"];
|
|
362
366
|
var integer3 = /* @__PURE__ */ __name((text) => {
|
|
363
367
|
if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
|
|
@@ -543,7 +547,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
543
547
|
}, "addMeetingCommandsDefinition");
|
|
544
548
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
545
549
|
|
|
546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
550
|
+
// 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/list-query.js
|
|
547
551
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
548
552
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
549
553
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -679,7 +683,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
679
683
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
680
684
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
681
685
|
|
|
682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
686
|
+
// 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/ports/messenger.js
|
|
683
687
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
684
688
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
685
689
|
if (key in own)
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// 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/runs/secrets.js
|
|
8
8
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
9
9
|
"authorization",
|
|
10
10
|
"cookie",
|
|
@@ -3,29 +3,29 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
textModel,
|
|
5
5
|
vectorModelKey
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-I4PZOWYG.js";
|
|
7
7
|
import {
|
|
8
8
|
OPENAI_URL,
|
|
9
9
|
openRemote,
|
|
10
10
|
remoteKey,
|
|
11
11
|
remoteModel
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-24UGTK32.js";
|
|
13
13
|
import {
|
|
14
14
|
endpointFetch
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ESNZL7SB.js";
|
|
16
16
|
import {
|
|
17
17
|
isTextModelInstalled,
|
|
18
18
|
openEmbedder,
|
|
19
19
|
textModelsDirectory
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-EJQAP6A6.js";
|
|
21
21
|
import {
|
|
22
22
|
CliError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-S6JG4YUH.js";
|
|
24
24
|
import {
|
|
25
25
|
__name
|
|
26
26
|
} from "./chunk-ZVVMGPBJ.js";
|
|
27
27
|
|
|
28
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28
|
+
// 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/services/meeting-model.js
|
|
29
29
|
var integer = /* @__PURE__ */ __name((value, name, max) => {
|
|
30
30
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
31
31
|
throw new CliError("validation_error", `Invalid ${name}`);
|
|
@@ -2,26 +2,26 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3TYER5IK.js";
|
|
6
6
|
import {
|
|
7
7
|
secretNamed,
|
|
8
8
|
withoutSecrets
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LC7ZD2RW.js";
|
|
10
10
|
import {
|
|
11
11
|
isContentKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2YO3PLOE.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// 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/runs/run-context.js
|
|
18
18
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
19
19
|
import { createHash } from "node:crypto";
|
|
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/runs/error-detail.js
|
|
22
22
|
import { homedir } from "node:os";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// 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/runs/events.js
|
|
25
25
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
26
26
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
27
27
|
if (event.event === "store")
|
|
@@ -73,7 +73,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
73
73
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
74
74
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// 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/runs/error-detail.js
|
|
77
77
|
var MESSAGE_AT_MOST = 500;
|
|
78
78
|
var CAUSES_AT_MOST = 5;
|
|
79
79
|
var FRAMES_AT_MOST = 15;
|
|
@@ -185,7 +185,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
185
185
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
186
186
|
}, "redactText");
|
|
187
187
|
|
|
188
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
188
|
+
// 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/runs/run-context.js
|
|
189
189
|
var REDACTED = "[redacted]";
|
|
190
190
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
191
191
|
if (!record)
|