@wirecat/zoom-cli 0.67.0 → 0.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/answer-entities.d.ts +18 -0
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +12 -0
- package/dist/answer-entities.js.map +1 -1
- package/dist/answer-policy.d.ts.map +1 -1
- package/dist/answer-policy.js +2 -1
- package/dist/answer-policy.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-SEW2VL76.js → all-profiles-ZQWPCJEK.js} +12 -12
- package/dist/bundle/answer-policy-VBDYLUXI.js +104 -0
- package/dist/bundle/{anthropic-FSNASJML.js → anthropic-7FUQ2HYJ.js} +7 -7
- package/dist/bundle/{app-server-EVSRYJ3H.js → app-server-DNPE2EQB.js} +61 -58
- package/dist/bundle/{bun-DACL5SVO.js → bun-ZVQFCFCC.js} +2 -2
- package/dist/bundle/{bun-sqlite-HQ2KOXSI.js → bun-sqlite-EB2UMUPJ.js} +6 -6
- package/dist/bundle/{chunk-4ZR5DJ26.js → chunk-2SYWVIQJ.js} +3 -3
- package/dist/bundle/chunk-37B7A4RP.js +66 -0
- package/dist/bundle/{chunk-WHQ4ZCJI.js → chunk-3TPRYZUW.js} +214 -86
- package/dist/bundle/{chunk-L6CAUVMU.js → chunk-4APZQYCH.js} +5 -5
- package/dist/bundle/{chunk-ASCHAVNW.js → chunk-52DCABMU.js} +27 -27
- package/dist/bundle/{chunk-LM26DJOK.js → chunk-5GOE6PQK.js} +6 -6
- package/dist/bundle/{chunk-QX2MAT6I.js → chunk-5H6VTEEC.js} +3 -3
- package/dist/bundle/{chunk-V33VGWT3.js → chunk-5ZF6QVMC.js} +16 -6
- package/dist/bundle/{chunk-GP4NSYDU.js → chunk-5ZJXKASF.js} +254 -13
- package/dist/bundle/chunk-6AMMTXEA.js +12473 -0
- package/dist/bundle/{chunk-Q65SDEFN.js → chunk-6KMTQX3D.js} +2 -2
- package/dist/bundle/{chunk-TBRG2DPE.js → chunk-6N2D6JGX.js} +2 -2
- package/dist/bundle/{chunk-X67YD3QI.js → chunk-6TICX3MN.js} +2 -2
- package/dist/bundle/{chunk-4GCKDO2H.js → chunk-7AUP2WT3.js} +3 -3
- package/dist/bundle/{chunk-JVCHGI7W.js → chunk-B5D7NZI7.js} +1 -1
- package/dist/bundle/{chunk-AAZFLJSH.js → chunk-B6JMVB6R.js} +10 -10
- package/dist/bundle/{chunk-CRLBTNC4.js → chunk-BL36NSV5.js} +3 -3
- package/dist/bundle/{chunk-4UVT2QCO.js → chunk-BOAMDYLY.js} +4 -4
- package/dist/bundle/{chunk-VQTAU4DV.js → chunk-C6TEYKXV.js} +8 -8
- package/dist/bundle/{chunk-6AJDVJVZ.js → chunk-CKK6JOC4.js} +2 -2
- package/dist/bundle/{chunk-4U2555EQ.js → chunk-CUZHKYC2.js} +30 -28
- package/dist/bundle/{chunk-7LLUUXJB.js → chunk-DHD25JII.js} +1 -1
- package/dist/bundle/{chunk-RYKG6AEH.js → chunk-EPPSMCEV.js} +4 -2
- package/dist/bundle/chunk-F5DYBWH7.js +299 -0
- package/dist/bundle/{chunk-KIJLM5UL.js → chunk-FBLUKCIR.js} +1 -1
- package/dist/bundle/{chunk-WZ5XK74U.js → chunk-FEM2JQN2.js} +1 -1
- package/dist/bundle/{chunk-SSXCOUP3.js → chunk-G6IX2MD2.js} +500 -227
- package/dist/bundle/{chunk-OTMGAKUM.js → chunk-GR3QDHBU.js} +7 -7
- package/dist/bundle/{chunk-QEI55M2F.js → chunk-GXDOTUUO.js} +10 -10
- package/dist/bundle/chunk-H3MFBYTQ.js +261 -0
- package/dist/bundle/{chunk-DFUPETW7.js → chunk-HC56J5LB.js} +135 -76
- package/dist/bundle/{chunk-D6OXI2NV.js → chunk-HSI7YOYK.js} +229 -67
- package/dist/bundle/{chunk-FGTPREAZ.js → chunk-HW5QTRFF.js} +35 -35
- package/dist/bundle/{chunk-VNIBTNV4.js → chunk-IEC4E65G.js} +2 -2
- package/dist/bundle/{chunk-EUPZSR2G.js → chunk-IPBZKUC3.js} +4 -4
- package/dist/bundle/{chunk-EQ7XRRKV.js → chunk-JHFP3Z5S.js} +11 -11
- package/dist/bundle/{chunk-3GO3KME7.js → chunk-JX5JJZC3.js} +3 -3
- package/dist/bundle/{chunk-7HAIM7GV.js → chunk-JZ4YOAHA.js} +963 -622
- package/dist/bundle/{chunk-B3KWAULD.js → chunk-KAPJQGHE.js} +2 -2
- package/dist/bundle/{chunk-T6CZWSHF.js → chunk-KNE6VFHZ.js} +21 -21
- package/dist/bundle/{chunk-I7SOXH64.js → chunk-KX5MZVPX.js} +66 -39
- package/dist/bundle/chunk-L62EJDNZ.js +64 -0
- package/dist/bundle/{chunk-EPDRF66S.js → chunk-LDRQ5NAP.js} +22 -14
- package/dist/bundle/{chunk-7VU5UGRR.js → chunk-LEA4BGK7.js} +16 -16
- package/dist/bundle/{chunk-ZMPTO2WB.js → chunk-LQX74VKG.js} +1 -1
- package/dist/bundle/{chunk-LKJXTACE.js → chunk-MJMVIFSC.js} +7 -7
- package/dist/bundle/{chunk-KWRSC6O6.js → chunk-MNOVYS43.js} +18 -4
- package/dist/bundle/{chunk-M43MBWJX.js → chunk-MOTKS7XG.js} +20741 -14882
- package/dist/bundle/{chunk-MWEOVTIF.js → chunk-MSDCZ6GT.js} +4 -4
- package/dist/bundle/{chunk-SOZVC3SV.js → chunk-MVDPZRFE.js} +1 -1
- package/dist/bundle/{chunk-NTZDM5SJ.js → chunk-NRRI37NJ.js} +9 -9
- package/dist/bundle/{chunk-BKY4XVB4.js → chunk-O7L44JK2.js} +2632 -1870
- package/dist/bundle/{chunk-6IBM4Z3V.js → chunk-OE7EIP5L.js} +1 -1
- package/dist/bundle/{chunk-RAMPYIO2.js → chunk-OSBHEM2A.js} +11 -11
- package/dist/bundle/{chunk-KV4267S4.js → chunk-P3ASN72F.js} +1 -1
- package/dist/bundle/{chunk-DG4DWAU7.js → chunk-QLGG7S6F.js} +3 -3
- package/dist/bundle/{chunk-6UFWFKFH.js → chunk-QW5VPZEH.js} +2 -2
- package/dist/bundle/{chunk-C6UKW7JO.js → chunk-QXM7S3Y3.js} +6 -6
- package/dist/bundle/{chunk-ESFMHBHH.js → chunk-R2ULMWB4.js} +62 -53
- package/dist/bundle/{chunk-L6WUAGPN.js → chunk-R3JYPY3J.js} +3 -3
- package/dist/bundle/{chunk-2UW533HQ.js → chunk-RGJ7OWHU.js} +4 -4
- package/dist/bundle/{chunk-7K5TDTZY.js → chunk-RPQ3JOD3.js} +7 -7
- package/dist/bundle/{chunk-L643D4RJ.js → chunk-S2EAGDS7.js} +12 -12
- package/dist/bundle/{chunk-4KDZ22RA.js → chunk-SQT47CFW.js} +1 -1
- package/dist/bundle/{chunk-CLEZE65P.js → chunk-SZ3Z4ZNO.js} +1 -1
- package/dist/bundle/chunk-T5X4LGXE.js +380 -0
- package/dist/bundle/{chunk-SMVO5R3T.js → chunk-TFFEFEG2.js} +39 -26
- package/dist/bundle/{chunk-LFQ73UFK.js → chunk-TKXLWFM2.js} +3 -3
- package/dist/bundle/{chunk-SCFFCIIP.js → chunk-TN77LX6W.js} +2 -2
- package/dist/bundle/{chunk-VFIEYRYD.js → chunk-TWIC6JJG.js} +8 -8
- package/dist/bundle/{chunk-FXQPK742.js → chunk-UEZ6URJR.js} +29 -15
- package/dist/bundle/{chunk-OZEYFJX2.js → chunk-V4MM6GST.js} +1 -1
- package/dist/bundle/chunk-V74QFMSL.js +31 -0
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-VW6BF6M7.js} +1 -1
- package/dist/bundle/{chunk-6TZF2JP7.js → chunk-WY4NYPPS.js} +13 -13
- package/dist/bundle/{chunk-B5Z4XPVS.js → chunk-XITUFTON.js} +2 -2
- package/dist/bundle/{chunk-FWU3ZYHE.js → chunk-XJBYGMZ4.js} +776 -134
- package/dist/bundle/{chunk-KANH7GBB.js → chunk-XRZDYWF6.js} +2 -2
- package/dist/bundle/{chunk-ZRMZBMOF.js → chunk-Z6TTGTMU.js} +156 -9
- package/dist/bundle/{chunk-IFDO3YPJ.js → chunk-ZRHMB3LQ.js} +1 -1
- package/dist/bundle/{cli-YUATSOLA.js → cli-P3BZUE6S.js} +106 -64
- package/dist/bundle/command-contract-TOLB32NJ.js +41 -0
- package/dist/bundle/config-4KLLIADY.js +90 -0
- package/dist/bundle/{decode-IL44LNC3.js → decode-QWOQXM7M.js} +6 -6
- package/dist/bundle/{dispatch-3BGIXSJR.js → dispatch-5MGDLOK4.js} +9 -9
- package/dist/bundle/{dist-3W27UQ2S.js → dist-OUE4MF37.js} +108 -28
- package/dist/bundle/{echarts-CO4D26JF.js → echarts-65IMPY43.js} +2 -2
- package/dist/bundle/{embed-XH2X4DFM.js → embed-4IULBCKL.js} +7 -7
- package/dist/bundle/{embedder-WTFWDXBJ.js → embedder-JW4W6IZI.js} +10 -10
- package/dist/bundle/{failure-HTIS3NLS.js → failure-CR64C4XA.js} +3 -3
- package/dist/bundle/{first-run-5RBH7FDO.js → first-run-CH6C674R.js} +12 -12
- package/dist/bundle/first-screen-OCAW5ZN6.js +39 -0
- package/dist/bundle/{folders-F4DNQPIY.js → folders-VU4IN35Y.js} +5 -5
- package/dist/bundle/{instructions-EPPBL6TT.js → instructions-G5QIH2TM.js} +1 -1
- package/dist/bundle/{main-LVQTCDZS.js → main-O4ZJIEWP.js} +21 -23
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-M4QN2E7R.js} +2 -2
- package/dist/bundle/{meetings-BMELXRTR.js → meetings-77CCAVYD.js} +13 -7
- package/dist/bundle/{node-CQVMWVIG.js → node-E6VQHU4Y.js} +2 -2
- package/dist/bundle/{node-sqlite-QQEX7LZT.js → node-sqlite-RJZ4PGLD.js} +7 -7
- package/dist/bundle/{oauth-AYGX7CQS.js → oauth-F4JKNRW4.js} +8 -8
- package/dist/bundle/{open-MIL2TOT6.js → open-NYOGMIAA.js} +6 -6
- package/dist/bundle/openai-5U6EQTFQ.js +25 -0
- package/dist/bundle/{output-file-4XADZPYH.js → output-file-6COFGPUL.js} +6 -6
- package/dist/bundle/{process-NJVQK6GB.js → process-OBWUKBMX.js} +1 -1
- package/dist/bundle/{program-WUYRS6H7.js → program-MU7DEJTO.js} +115 -187
- package/dist/bundle/{prompt-J4QPFLEA.js → prompt-2QWQTHWT.js} +6 -6
- package/dist/bundle/{recognize-OLJZVNWW.js → recognize-SNUNTUC3.js} +5 -5
- package/dist/bundle/{remote-JPUXNYLV.js → remote-2CTCIQGF.js} +8 -8
- package/dist/bundle/{rerank-XVV3X5TT.js → rerank-XDA7NJNH.js} +8 -8
- package/dist/bundle/{run-log-DJXBEVS5.js → run-log-NSG3DJVX.js} +59 -59
- package/dist/bundle/{serve-NYYUO3MR.js → serve-TWQFHOV2.js} +10 -10
- package/dist/bundle/{server-4Z5E4YTT.js → server-RIQ6HMH2.js} +47 -47
- package/dist/bundle/server-XO6XQQTJ.js +72 -0
- package/dist/bundle/{services-EKWM76HP.js → services-NKZQJQIV.js} +49 -33
- package/dist/bundle/{speech-WFJ44ACJ.js → speech-ZOB76SXA.js} +14 -14
- package/dist/bundle/{state-VIRCT4VW.js → state-7YYEIXQ5.js} +7 -7
- package/dist/bundle/{store-ZTDZ6UY5.js → store-E6RTSSNR.js} +29 -18
- package/dist/bundle/{store-2Q4GEZJS.js → store-OX4HRBLO.js} +80 -29
- package/dist/bundle/store-connection-55QPNUDS.js +83 -0
- package/dist/bundle/store-maintenance-command-Q5MSU6OK.js +62 -0
- package/dist/bundle/{streaming-7BPKIGAS.js → streaming-O53PIORL.js} +7 -7
- package/dist/bundle/{tokens-CQHMMKNX.js → tokens-QKNEP2GJ.js} +7 -7
- package/dist/bundle/zm.js +9 -10
- package/dist/bundle/zoom-app-TSI2MGVK.js +41 -0
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +1 -0
- package/dist/commands.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +2 -3
- package/dist/config.js.map +1 -1
- package/dist/identity.d.ts +1 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +11 -0
- package/dist/identity.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +7 -2
- package/dist/program-bindings.js.map +1 -1
- package/dist/setup-commands.d.ts +6 -0
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +24 -9
- package/dist/setup-commands.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zoom-app.d.ts +32 -0
- package/dist/zoom-app.d.ts.map +1 -1
- package/dist/zoom-app.js +61 -0
- package/dist/zoom-app.js.map +1 -1
- package/package.json +3 -3
- package/dist/bundle/answer-policy-5OYUL6UF.js +0 -103
- package/dist/bundle/chunk-3ZIHUSMM.js +0 -22
- package/dist/bundle/chunk-54RTMQL6.js +0 -132
- package/dist/bundle/chunk-6VFORXL3.js +0 -101
- package/dist/bundle/chunk-D4KBD63W.js +0 -19
- package/dist/bundle/chunk-J3ZBEWQY.js +0 -880
- package/dist/bundle/chunk-SXFODCYK.js +0 -9
- package/dist/bundle/chunk-YRNZT4GQ.js +0 -176
- package/dist/bundle/chunk-Z3WXI4DK.js +0 -31
- package/dist/bundle/command-contract-UWHY55UE.js +0 -41
- package/dist/bundle/config-TGF6E6ZD.js +0 -89
- package/dist/bundle/first-screen-PGFIXJAX.js +0 -39
- package/dist/bundle/openai-7QZZXQW5.js +0 -25
- package/dist/bundle/server-VW5UVCH7.js +0 -72
- package/dist/bundle/store-connection-FKVVQLEF.js +0 -83
- package/dist/bundle/store-maintenance-command-AU73UVUQ.js +0 -62
- package/dist/bundle/zoom-app-OEKFMJS6.js +0 -25
- /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-VOXIGICJ.js} +0 -0
|
@@ -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@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
8
8
|
import { PassThrough, Writable } from "node:stream";
|
|
9
9
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
10
10
|
let rest = "";
|
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
isCliFailure,
|
|
5
|
+
isStoreDamage
|
|
6
|
+
} from "./chunk-37B7A4RP.js";
|
|
7
|
+
import {
|
|
8
|
+
refuseOwnerStoreInTests
|
|
9
|
+
} from "./chunk-CKK6JOC4.js";
|
|
10
|
+
import {
|
|
11
|
+
array,
|
|
12
|
+
boolean,
|
|
13
|
+
integer,
|
|
14
|
+
isoTime,
|
|
15
|
+
isoTimestamp,
|
|
16
|
+
minLength,
|
|
17
|
+
minValue,
|
|
18
|
+
nullable,
|
|
19
|
+
number,
|
|
20
|
+
optional,
|
|
21
|
+
picklist,
|
|
22
|
+
pipe,
|
|
23
|
+
record,
|
|
24
|
+
reference,
|
|
25
|
+
strictObject,
|
|
26
|
+
string,
|
|
27
|
+
unknown
|
|
28
|
+
} from "./chunk-NRRI37NJ.js";
|
|
29
|
+
import {
|
|
30
|
+
CliError
|
|
31
|
+
} from "./chunk-FEM2JQN2.js";
|
|
32
|
+
import {
|
|
33
|
+
__name
|
|
34
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
35
|
+
|
|
36
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
37
|
+
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
38
|
+
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
39
|
+
var CLOSED_STATES = ["done", "dismissed"];
|
|
40
|
+
var TASK_ORIGINS = ["rule", "agent", "owner"];
|
|
41
|
+
var TASK_VERDICTS = ["useful", "not_useful"];
|
|
42
|
+
var isClosedState = /* @__PURE__ */ __name((state) => CLOSED_STATES.includes(state), "isClosedState");
|
|
43
|
+
function closeTask(task, state, by, at, reason) {
|
|
44
|
+
if (isClosedState(task.state))
|
|
45
|
+
throw new CliError("validation_error", `task ${task.id} is already ${task.state}`, { reason: "task.closed" });
|
|
46
|
+
const { claimedBy: _by, claimedUntil: _until, ...unclaimed } = task;
|
|
47
|
+
return { ...unclaimed, state, closedAt: at, closedBy: by, ...reason === void 0 ? {} : { reason } };
|
|
48
|
+
}
|
|
49
|
+
__name(closeTask, "closeTask");
|
|
50
|
+
|
|
51
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
52
|
+
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
53
|
+
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
54
|
+
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
55
|
+
var priorityLabel = /* @__PURE__ */ __name((score) => score === null ? null : PRIORITY_LABELS[Math.min(3, Math.max(0, Math.floor(score * 4)))], "priorityLabel");
|
|
56
|
+
var priorityBand = /* @__PURE__ */ __name((label) => {
|
|
57
|
+
const at = PRIORITY_LABELS.indexOf(label);
|
|
58
|
+
return { from: at / 4, to: (at + 1) / 4 };
|
|
59
|
+
}, "priorityBand");
|
|
60
|
+
var legacyPriority = /* @__PURE__ */ __name((score) => score === null ? null : score < 0.125 ? 4 : 3 - PRIORITY_LABELS.indexOf(priorityLabel(score)), "legacyPriority");
|
|
61
|
+
var checkedScore = /* @__PURE__ */ __name((score) => {
|
|
62
|
+
if (!Number.isFinite(score) || score < 0 || score > 1)
|
|
63
|
+
throw new CliError("validation_error", "a priority score is 0 to 1");
|
|
64
|
+
return score;
|
|
65
|
+
}, "checkedScore");
|
|
66
|
+
var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
67
|
+
const word = value.trim().toLowerCase();
|
|
68
|
+
if (word === "none")
|
|
69
|
+
return null;
|
|
70
|
+
if (PRIORITY_LABELS.includes(word))
|
|
71
|
+
return MIDDLE[word];
|
|
72
|
+
if (/^[0-4]$/.test(word))
|
|
73
|
+
return LEGACY_PRIORITY_SCORES[Number(word)];
|
|
74
|
+
if (/^(0?\.\d+|[01]\.\d*)$/.test(word) && Number(word) <= 1)
|
|
75
|
+
return Number(word);
|
|
76
|
+
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`);
|
|
77
|
+
}, "priorityOf");
|
|
78
|
+
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
79
|
+
|
|
80
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
81
|
+
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
82
|
+
async function find(id2) {
|
|
83
|
+
const task = await store.get(id2);
|
|
84
|
+
if (!task)
|
|
85
|
+
throw new CliError("not_found", `no task ${id2}`);
|
|
86
|
+
return task;
|
|
87
|
+
}
|
|
88
|
+
__name(find, "find");
|
|
89
|
+
return {
|
|
90
|
+
/**
|
|
91
|
+
* A rule never makes a second task from a source it has seen, whatever that task's state, so a
|
|
92
|
+
* dismissed one stays dismissed — nor from a message attached or merged into a task. A person or an agent may
|
|
93
|
+
* add a task of another kind to it. A task a rule opens goes through the host's duplicate check.
|
|
94
|
+
*/
|
|
95
|
+
async add(input) {
|
|
96
|
+
const rule = input.origin === "rule";
|
|
97
|
+
const existing = await store.findBySource(input.account, input.source, rule ? { linked: true } : void 0);
|
|
98
|
+
const same = rule ? existing[0] : existing.find((task2) => task2.kind === input.kind);
|
|
99
|
+
if (same)
|
|
100
|
+
return { task: same, created: false };
|
|
101
|
+
const task = { ...input, id: newId(), state: "open", createdAt: now() };
|
|
102
|
+
await store.insert(task);
|
|
103
|
+
if (!rule || !store.reviewDuplicates)
|
|
104
|
+
return { task, created: true };
|
|
105
|
+
return { task, created: true, review: await store.reviewDuplicates(task.id) };
|
|
106
|
+
},
|
|
107
|
+
async close(id2, { as, by, reason }) {
|
|
108
|
+
const task = closeTask(await find(id2), as, by, now(), reason);
|
|
109
|
+
await store.update(task);
|
|
110
|
+
return task;
|
|
111
|
+
},
|
|
112
|
+
list: /* @__PURE__ */ __name((filter = {}) => store.list(filter), "list"),
|
|
113
|
+
async stats(filter = {}) {
|
|
114
|
+
const byGroup = /* @__PURE__ */ new Map();
|
|
115
|
+
for (const task of await store.list(filter))
|
|
116
|
+
byGroup.set(task.group, [...byGroup.get(task.group) ?? [], task]);
|
|
117
|
+
return [...byGroup].map(([group, tasks]) => {
|
|
118
|
+
const open = tasks.filter((task) => !isClosedState(task.state));
|
|
119
|
+
const closeMs = tasks.flatMap((task) => task.closedAt ? [task.closedAt.getTime() - task.createdAt.getTime()] : []);
|
|
120
|
+
const oldestOpenAt = open.map((task) => task.createdAt).sort((a, b) => a.getTime() - b.getTime())[0];
|
|
121
|
+
return {
|
|
122
|
+
group,
|
|
123
|
+
open: open.length,
|
|
124
|
+
...oldestOpenAt ? { oldestOpenAt } : {},
|
|
125
|
+
...closeMs.length > 0 ? { medianCloseMs: median(closeMs) } : {}
|
|
126
|
+
};
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
__name(createTaskService, "createTaskService");
|
|
132
|
+
function median(values) {
|
|
133
|
+
const sorted = [...values].sort((a, b) => a - b);
|
|
134
|
+
const middle = Math.floor(sorted.length / 2);
|
|
135
|
+
const upper = sorted[middle] ?? 0;
|
|
136
|
+
return sorted.length % 2 === 1 ? upper : ((sorted[middle - 1] ?? 0) + upper) / 2;
|
|
137
|
+
}
|
|
138
|
+
__name(median, "median");
|
|
139
|
+
|
|
140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
141
|
+
function matches(task, filter) {
|
|
142
|
+
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);
|
|
143
|
+
}
|
|
144
|
+
__name(matches, "matches");
|
|
145
|
+
|
|
146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
147
|
+
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
148
|
+
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
149
|
+
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
150
|
+
var MEMORY_SCOPES = ["personal", "work"];
|
|
151
|
+
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
152
|
+
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
153
|
+
|
|
154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
155
|
+
var text = string();
|
|
156
|
+
var id = pipe(string(), minLength(1));
|
|
157
|
+
var time = isoTime;
|
|
158
|
+
var zonedTime = pipe(string(), isoTimestamp("an ISO 8601 time with a zone"));
|
|
159
|
+
var count = pipe(number(), integer(), minValue(0));
|
|
160
|
+
var untrusted = optional(array(text));
|
|
161
|
+
var providerMetadata = optional(record(string(), unknown()));
|
|
162
|
+
var evidenceSource = strictObject({
|
|
163
|
+
ref: nullable(reference),
|
|
164
|
+
kind: text,
|
|
165
|
+
title: nullable(text),
|
|
166
|
+
sender: nullable(text),
|
|
167
|
+
at: nullable(time),
|
|
168
|
+
excerpt: nullable(text),
|
|
169
|
+
tool: nullable(text),
|
|
170
|
+
missing: boolean()
|
|
171
|
+
});
|
|
172
|
+
var author = strictObject({
|
|
173
|
+
type: picklist(["person", "bot"]),
|
|
174
|
+
id,
|
|
175
|
+
name: nullable(text)
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
179
|
+
var organization = strictObject({
|
|
180
|
+
id,
|
|
181
|
+
ref: reference,
|
|
182
|
+
kind: picklist(["company", "team", "family", "community"]),
|
|
183
|
+
name: text,
|
|
184
|
+
scope: picklist(["personal", "work"]),
|
|
185
|
+
created_at: time
|
|
186
|
+
});
|
|
187
|
+
var project = strictObject({
|
|
188
|
+
id,
|
|
189
|
+
ref: reference,
|
|
190
|
+
key: text,
|
|
191
|
+
name: text,
|
|
192
|
+
kind: picklist(["project", "inbox"]),
|
|
193
|
+
type: picklist(["work", "client", "personal", "oss", "other"]),
|
|
194
|
+
organization_id: nullable(id),
|
|
195
|
+
scope: picklist(["personal", "work"]),
|
|
196
|
+
created_at: time
|
|
197
|
+
});
|
|
198
|
+
var reminder = strictObject({
|
|
199
|
+
id,
|
|
200
|
+
task: text,
|
|
201
|
+
due_at: time,
|
|
202
|
+
timezone: text,
|
|
203
|
+
state: picklist(["pending", "leased", "delivered", "cancelled"]),
|
|
204
|
+
revision: number(),
|
|
205
|
+
receipt: nullable(text)
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
209
|
+
import { readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
210
|
+
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
211
|
+
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
212
|
+
var inodeOf = /* @__PURE__ */ __name((store) => statSync(store, { throwIfNoEntry: false })?.ino, "inodeOf");
|
|
213
|
+
var readJson = /* @__PURE__ */ __name((path) => {
|
|
214
|
+
try {
|
|
215
|
+
return JSON.parse(readFileSync(path, "utf8"));
|
|
216
|
+
} catch (error) {
|
|
217
|
+
if (error.code === "ENOENT")
|
|
218
|
+
return null;
|
|
219
|
+
throw error;
|
|
220
|
+
}
|
|
221
|
+
}, "readJson");
|
|
222
|
+
var ownerStoreInTests = /* @__PURE__ */ __name((store) => {
|
|
223
|
+
try {
|
|
224
|
+
refuseOwnerStoreInTests(store);
|
|
225
|
+
return false;
|
|
226
|
+
} catch {
|
|
227
|
+
return true;
|
|
228
|
+
}
|
|
229
|
+
}, "ownerStoreInTests");
|
|
230
|
+
var sqliteFailure = /* @__PURE__ */ __name((error) => isCliFailure(error) && error.details?.reason === "store.damaged" ? error.cause : error, "sqliteFailure");
|
|
231
|
+
var markStoreDamaged = /* @__PURE__ */ __name((error, { store, command, version, runId, now = Date.now }) => {
|
|
232
|
+
const failure = sqliteFailure(error);
|
|
233
|
+
if (!isStoreDamage(failure) || ownerStoreInTests(store))
|
|
234
|
+
return false;
|
|
235
|
+
const inode = inodeOf(store);
|
|
236
|
+
if (inode === void 0)
|
|
237
|
+
return false;
|
|
238
|
+
const mark = {
|
|
239
|
+
at: new Date(now()).toISOString(),
|
|
240
|
+
command,
|
|
241
|
+
...version ? { cli_version: version } : {},
|
|
242
|
+
...runId ? { run_id: runId } : {},
|
|
243
|
+
error: failure.message.slice(0, 500),
|
|
244
|
+
inode
|
|
245
|
+
};
|
|
246
|
+
try {
|
|
247
|
+
writeFileSync(damageMarkPath(store), `${JSON.stringify(mark, null, 2)}
|
|
248
|
+
`, { flag: "wx", mode: 384 });
|
|
249
|
+
return true;
|
|
250
|
+
} catch {
|
|
251
|
+
return false;
|
|
252
|
+
}
|
|
253
|
+
}, "markStoreDamaged");
|
|
254
|
+
var readDamageMark = /* @__PURE__ */ __name((store) => {
|
|
255
|
+
const path = damageMarkPath(store);
|
|
256
|
+
let mark;
|
|
257
|
+
try {
|
|
258
|
+
mark = readJson(path);
|
|
259
|
+
} catch {
|
|
260
|
+
return { at: "unknown", command: "unknown", error: `${path} cannot be read`, inode: inodeOf(store) ?? 0 };
|
|
261
|
+
}
|
|
262
|
+
if (mark === null)
|
|
263
|
+
return null;
|
|
264
|
+
if (mark.inode !== inodeOf(store)) {
|
|
265
|
+
clearDamageMark(store);
|
|
266
|
+
return null;
|
|
267
|
+
}
|
|
268
|
+
return mark;
|
|
269
|
+
}, "readDamageMark");
|
|
270
|
+
var clearDamageMark = /* @__PURE__ */ __name((store) => rmSync(damageMarkPath(store), { force: true }), "clearDamageMark");
|
|
271
|
+
var refuseDamagedStore = /* @__PURE__ */ __name((store, cli) => {
|
|
272
|
+
const mark = readDamageMark(store);
|
|
273
|
+
if (!mark)
|
|
274
|
+
return;
|
|
275
|
+
throw new CliError("configuration_error", `the store was found damaged at ${mark.at} by \`${mark.command}\` (${mark.error}), so nothing writes to it until it is recovered; \`${cli ?? "<cli>"} store recover\` says what is damaged and what to do`, { reason: "store.damaged" });
|
|
276
|
+
}, "refuseDamagedStore");
|
|
277
|
+
var readHealthMark = /* @__PURE__ */ __name((store) => {
|
|
278
|
+
try {
|
|
279
|
+
return readJson(healthMarkPath(store));
|
|
280
|
+
} catch {
|
|
281
|
+
return null;
|
|
282
|
+
}
|
|
283
|
+
}, "readHealthMark");
|
|
284
|
+
var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, schema, now = Date.now }) => {
|
|
285
|
+
const previous = readHealthMark(store);
|
|
286
|
+
if (ownerStoreInTests(store))
|
|
287
|
+
return { previous, cleared: null };
|
|
288
|
+
const checkedAt = new Date(now()).toISOString();
|
|
289
|
+
const mark = {
|
|
290
|
+
checked_at: checkedAt,
|
|
291
|
+
ok: health.ok,
|
|
292
|
+
problems: health.problems ?? 0,
|
|
293
|
+
schema,
|
|
294
|
+
cli,
|
|
295
|
+
...version ? { cli_version: version } : {},
|
|
296
|
+
last_ok_at: health.ok ? checkedAt : previous?.last_ok_at ?? null
|
|
297
|
+
};
|
|
298
|
+
const cleared = health.ok ? readDamageMark(store) : null;
|
|
299
|
+
try {
|
|
300
|
+
writeFileSync(healthMarkPath(store), `${JSON.stringify(mark, null, 2)}
|
|
301
|
+
`, { mode: 384 });
|
|
302
|
+
} catch {
|
|
303
|
+
}
|
|
304
|
+
if (cleared)
|
|
305
|
+
clearDamageMark(store);
|
|
306
|
+
return { previous, cleared };
|
|
307
|
+
}, "recordDeepCheck");
|
|
308
|
+
|
|
309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
310
|
+
var LINK_KINDS = [
|
|
311
|
+
"links-to",
|
|
312
|
+
"blocked-by",
|
|
313
|
+
"follow-up-of",
|
|
314
|
+
"about",
|
|
315
|
+
"member-of",
|
|
316
|
+
"labelled",
|
|
317
|
+
"answered-by",
|
|
318
|
+
"evidence",
|
|
319
|
+
"created-from",
|
|
320
|
+
"duplicate-of",
|
|
321
|
+
"related-to",
|
|
322
|
+
"reports-to",
|
|
323
|
+
"customer-of",
|
|
324
|
+
"partner-of",
|
|
325
|
+
"assigned-to",
|
|
326
|
+
"attached"
|
|
327
|
+
];
|
|
328
|
+
var LINK_ORIGINS = ["file", "owner", "suggested", "message"];
|
|
329
|
+
var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
330
|
+
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
331
|
+
var COUNTERPART_ROLE = "counterpart";
|
|
332
|
+
|
|
333
|
+
export {
|
|
334
|
+
LINK_KINDS,
|
|
335
|
+
LINK_ORIGINS,
|
|
336
|
+
LINK_SOURCES,
|
|
337
|
+
linkKind,
|
|
338
|
+
COUNTERPART_ROLE,
|
|
339
|
+
TASK_KINDS,
|
|
340
|
+
TASK_STATES,
|
|
341
|
+
CLOSED_STATES,
|
|
342
|
+
TASK_ORIGINS,
|
|
343
|
+
TASK_VERDICTS,
|
|
344
|
+
isClosedState,
|
|
345
|
+
PRIORITY_LABELS,
|
|
346
|
+
priorityLabel,
|
|
347
|
+
priorityBand,
|
|
348
|
+
legacyPriority,
|
|
349
|
+
checkedScore,
|
|
350
|
+
priorityOf,
|
|
351
|
+
priorityOption,
|
|
352
|
+
createTaskService,
|
|
353
|
+
matches,
|
|
354
|
+
FACT_STATUSES,
|
|
355
|
+
MEMORY_KINDS,
|
|
356
|
+
MEMORY_STATUSES,
|
|
357
|
+
MEMORY_SCOPES,
|
|
358
|
+
WORK_TASK_TYPES,
|
|
359
|
+
TASK_TYPES,
|
|
360
|
+
text,
|
|
361
|
+
id,
|
|
362
|
+
time,
|
|
363
|
+
zonedTime,
|
|
364
|
+
count,
|
|
365
|
+
untrusted,
|
|
366
|
+
providerMetadata,
|
|
367
|
+
evidenceSource,
|
|
368
|
+
author,
|
|
369
|
+
organization,
|
|
370
|
+
project,
|
|
371
|
+
reminder,
|
|
372
|
+
damageMarkPath,
|
|
373
|
+
healthMarkPath,
|
|
374
|
+
markStoreDamaged,
|
|
375
|
+
readDamageMark,
|
|
376
|
+
clearDamageMark,
|
|
377
|
+
refuseDamagedStore,
|
|
378
|
+
readHealthMark,
|
|
379
|
+
recordDeepCheck
|
|
380
|
+
};
|
|
@@ -3,12 +3,13 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
AUDIT_MIN_SCORE,
|
|
5
5
|
throughWrapper
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JZ4YOAHA.js";
|
|
7
7
|
import {
|
|
8
8
|
Command,
|
|
9
9
|
InvalidArgumentError,
|
|
10
10
|
Option,
|
|
11
11
|
annotate,
|
|
12
|
+
annotateOption,
|
|
12
13
|
environmentOf,
|
|
13
14
|
itemOf,
|
|
14
15
|
listOf,
|
|
@@ -16,13 +17,13 @@ import {
|
|
|
16
17
|
renderAnswer,
|
|
17
18
|
sharedCommand,
|
|
18
19
|
snakeKeys
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-G6IX2MD2.js";
|
|
20
21
|
import {
|
|
21
22
|
readOnlyLockOf
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TN77LX6W.js";
|
|
23
24
|
import {
|
|
24
25
|
formatReference
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-6AMMTXEA.js";
|
|
26
27
|
import {
|
|
27
28
|
EVENT_QUERY,
|
|
28
29
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -45,7 +46,7 @@ import {
|
|
|
45
46
|
readMeetingProjectEvidence,
|
|
46
47
|
validateMeetingHitSearch,
|
|
47
48
|
validateMeetingPassage
|
|
48
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-HC56J5LB.js";
|
|
49
50
|
import {
|
|
50
51
|
OPERATORS_BY_TYPE,
|
|
51
52
|
QUERY_LIMITS,
|
|
@@ -60,7 +61,7 @@ import {
|
|
|
60
61
|
timezoneOf,
|
|
61
62
|
validateQuery,
|
|
62
63
|
zonedMoment
|
|
63
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-B6JMVB6R.js";
|
|
64
65
|
import {
|
|
65
66
|
array,
|
|
66
67
|
boolean,
|
|
@@ -73,15 +74,15 @@ import {
|
|
|
73
74
|
safeParse,
|
|
74
75
|
strictObject,
|
|
75
76
|
string
|
|
76
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-NRRI37NJ.js";
|
|
77
78
|
import {
|
|
78
79
|
CliError
|
|
79
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-FEM2JQN2.js";
|
|
80
81
|
import {
|
|
81
82
|
__name
|
|
82
83
|
} from "./chunk-ZVVMGPBJ.js";
|
|
83
84
|
|
|
84
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
85
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
85
86
|
var COMMAND_NEEDS = {
|
|
86
87
|
"account update": ["updateProfile", "change the profile"],
|
|
87
88
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -131,7 +132,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
131
132
|
return group;
|
|
132
133
|
}, "hideNever");
|
|
133
134
|
|
|
134
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
135
136
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
136
137
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
137
138
|
const zone = timezoneOf();
|
|
@@ -217,7 +218,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
217
218
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
218
219
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
219
220
|
|
|
220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
221
222
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
222
223
|
command.allowUnknownOption();
|
|
223
224
|
const parse = command.parseOptions.bind(command);
|
|
@@ -237,7 +238,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
237
238
|
return command;
|
|
238
239
|
}, "queryWordsAfterOptions");
|
|
239
240
|
|
|
240
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
241
242
|
var count = /* @__PURE__ */ __name((value) => {
|
|
242
243
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
243
244
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -279,7 +280,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
279
280
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
280
281
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
281
282
|
|
|
282
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
283
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
283
284
|
var integer2 = /* @__PURE__ */ __name((value) => {
|
|
284
285
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
285
286
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -302,7 +303,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
302
303
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
303
304
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
304
305
|
|
|
305
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
306
307
|
var integer3 = /* @__PURE__ */ __name((text) => {
|
|
307
308
|
if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
|
|
308
309
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -352,7 +353,14 @@ ${fieldsHelp(MEETING_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
352
353
|
output(annotate(group.command("summary"), { effects: LOCAL_READ, output: { entity: "meeting_summary" } }).description("show stored meeting summaries").argument("<meeting>", "stored meeting id", integer3)).action(async (id, _opts, command) => {
|
|
353
354
|
print(await meetingSummaryAnswer(deps.store, id, deps.accountId), command);
|
|
354
355
|
});
|
|
355
|
-
output(annotate(group.command("export"), { effects: LOCAL_WRITE, output: { entity: "meeting_export" } }).description("export a meeting as Markdown or one transcript as WebVTT").argument("<meeting>", "stored meeting id", integer3).addOption(new Option("--format <format>", "export format").choices(["markdown", "vtt"]).default("markdown")).option("--transcript-id <id>", "export a specific transcript version", integer3).
|
|
356
|
+
const exporter = output(annotate(group.command("export"), { effects: LOCAL_WRITE, output: { entity: "meeting_export" } }).description("export a meeting as Markdown or one transcript as WebVTT").argument("<meeting>", "stored meeting id", integer3).addOption(new Option("--format <format>", "export format").choices(["markdown", "vtt"]).default("markdown")).option("--transcript-id <id>", "export a specific transcript version", integer3).addOption(
|
|
357
|
+
// Not over MCP: an agent would choose where on the owner's disk to write; it gets the content in the answer.
|
|
358
|
+
annotateOption(new Option("--output <file>", "write content to a new file through the host's writer"), {
|
|
359
|
+
mcp: false
|
|
360
|
+
})
|
|
361
|
+
));
|
|
362
|
+
deps.newFileOutput?.(exporter, "output");
|
|
363
|
+
exporter.action(async (id, opts, command) => {
|
|
356
364
|
if (opts.output !== void 0 && !opts.output.trim())
|
|
357
365
|
throw new MeetingError("validation_error", "output path must not be empty");
|
|
358
366
|
if (opts.output !== void 0 && !deps.writeFile)
|
|
@@ -379,16 +387,21 @@ ${fieldsHelp(MEETING_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
379
387
|
output(annotate(group.command("sync"), {
|
|
380
388
|
effects: FETCH,
|
|
381
389
|
offline: false,
|
|
382
|
-
output: { entity: "meeting_ingestion" }
|
|
383
|
-
|
|
384
|
-
|
|
390
|
+
output: { entity: "meeting_ingestion" },
|
|
391
|
+
// Only a sync that stops itself at its budget may outlive the one-shot deadline.
|
|
392
|
+
...deps.budgetOf ? { cooperative: true, partial: true } : {}
|
|
393
|
+
}).description("bring the stored meetings up to date from the connected account, oldest first; a run that stops before its deadline keeps what it saved and the next one goes on from there")).option("--since-time <time>", "fetch meetings starting at or after this ISO 8601 date or time", date).option("--lookback-days <days>", "revisit recent occurrences for late transcripts (0\u201331)", lookbackDays).option("--rescan", "read the last 30 days again, not only what came after the last sync").action(async (opts, command) => {
|
|
394
|
+
const source = deps.source;
|
|
395
|
+
if (!source)
|
|
385
396
|
throw new MeetingError("configuration_error", "meeting source is unavailable");
|
|
386
|
-
print(await pull(
|
|
397
|
+
await deps.inRun(command, async () => print(await pull(source, deps.store, {
|
|
387
398
|
accountId: deps.accountId,
|
|
388
399
|
since: opts.sinceTime === void 0 ? void 0 : new Date(opts.sinceTime).toISOString(),
|
|
389
400
|
now: deps.now?.(),
|
|
390
|
-
lookbackMs: opts.lookbackDays * 864e5
|
|
391
|
-
|
|
401
|
+
...opts.lookbackDays === void 0 ? {} : { lookbackMs: opts.lookbackDays * 864e5 },
|
|
402
|
+
...opts.rescan ? { rescan: true } : {},
|
|
403
|
+
...deps.budgetOf ? { budget: deps.budgetOf(command) } : {}
|
|
404
|
+
}), command));
|
|
392
405
|
});
|
|
393
406
|
const importCommand = annotate(group.command("import"), {
|
|
394
407
|
effects: LOCAL_WRITE,
|
|
@@ -434,7 +447,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
434
447
|
}, "addMeetingCommandsDefinition");
|
|
435
448
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
436
449
|
|
|
437
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
438
451
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
439
452
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
440
453
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -575,7 +588,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
575
588
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
576
589
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
577
590
|
|
|
578
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
591
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
579
592
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
580
593
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
581
594
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -584,7 +597,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
584
597
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
585
598
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
586
599
|
|
|
587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
588
601
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
589
602
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
590
603
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -846,7 +859,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
846
859
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
847
860
|
}), "sessionAnswer");
|
|
848
861
|
|
|
849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
850
863
|
import { createHash } from "node:crypto";
|
|
851
864
|
import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
|
|
852
865
|
import { createConnection, createServer } from "node:net";
|
|
@@ -1067,7 +1080,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
1067
1080
|
}, () => finish({ error: stopped() }));
|
|
1068
1081
|
}), "relayCommand");
|
|
1069
1082
|
|
|
1070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1083
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
1071
1084
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
1072
1085
|
close: /* @__PURE__ */ __name(async () => {
|
|
1073
1086
|
}, "close"),
|
|
@@ -2,16 +2,16 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MVDPZRFE.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KNE6VFHZ.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FEM2JQN2.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.608.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3e7ac84c094d466aed903c683c124ab5/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
11
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
12
12
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
13
13
|
const name = envName(app, "READ_ONLY");
|