@wirecat/zoom-cli 0.63.0 → 0.64.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/README.md +3 -0
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-CGGNBINU.js → all-profiles-W2OVBZ7S.js} +8 -8
- package/dist/bundle/answer-policy-HOA43GNA.js +96 -0
- package/dist/bundle/{anthropic-KVWPIHFG.js → anthropic-P4BKQNBO.js} +4 -4
- package/dist/bundle/{app-server-NKKFBTQN.js → app-server-AYUW45ND.js} +50 -50
- package/dist/bundle/{bun-XRO6XJHQ.js → bun-MNGPTYDQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-FWNCLOAR.js → bun-sqlite-PTPUSXAO.js} +3 -3
- package/dist/bundle/{chunk-ECXRRW7J.js → chunk-23LOMA2I.js} +30 -20
- package/dist/bundle/{chunk-YI6ZNDPC.js → chunk-24WCZURP.js} +2 -2
- package/dist/bundle/{chunk-Q4ZE2LXE.js → chunk-2UONVSJQ.js} +2 -2
- package/dist/bundle/{chunk-7LQLJ7LW.js → chunk-3AAO5N4L.js} +2 -2
- package/dist/bundle/{chunk-TQFCPUIM.js → chunk-3DGQJASQ.js} +1 -1
- package/dist/bundle/{chunk-7CNRZSAV.js → chunk-3IMEAZIM.js} +4 -4
- package/dist/bundle/{chunk-EOEDICIE.js → chunk-4XVRA6P5.js} +1 -1
- package/dist/bundle/{chunk-MLNC5N7H.js → chunk-54UEJGYB.js} +3 -3
- package/dist/bundle/{chunk-4OTXE6CF.js → chunk-5BCNJB2A.js} +72 -57
- package/dist/bundle/{chunk-IK2OSV5C.js → chunk-5FN4Q5H5.js} +6 -6
- package/dist/bundle/{chunk-7AY3ADNV.js → chunk-5YLR24D5.js} +5 -5
- package/dist/bundle/{chunk-EJFSS65P.js → chunk-63MRRNDL.js} +6 -6
- package/dist/bundle/{chunk-SEH7DBAM.js → chunk-6NBQJJT6.js} +7 -7
- package/dist/bundle/{chunk-HIZQYFY3.js → chunk-7D56BQZL.js} +8 -2
- package/dist/bundle/{chunk-UD4FKICZ.js → chunk-7EOW47PV.js} +4 -4
- package/dist/bundle/{chunk-SB47UAW2.js → chunk-7NDSBTKR.js} +26 -26
- package/dist/bundle/{chunk-6R3GMSLR.js → chunk-7SWNZ44U.js} +2 -2
- package/dist/bundle/{chunk-IR73ZZY6.js → chunk-7VJIKJNW.js} +8 -8
- package/dist/bundle/{chunk-4OQVRDTG.js → chunk-A2FOW3ZC.js} +39 -20
- package/dist/bundle/{chunk-YFIUXE25.js → chunk-AAC6VNSL.js} +3 -3
- package/dist/bundle/{chunk-5NLFQ644.js → chunk-AF4HONAZ.js} +443 -370
- package/dist/bundle/{chunk-QLQ7VVLK.js → chunk-BMYZWBAX.js} +4 -4
- package/dist/bundle/{chunk-6URISMGR.js → chunk-BO5YVG3X.js} +26 -26
- package/dist/bundle/{chunk-IOUPXUFH.js → chunk-BWPKSUXW.js} +37 -37
- package/dist/bundle/{chunk-JDJDVYGS.js → chunk-C3RRIJ5C.js} +6 -6
- package/dist/bundle/{chunk-UIPT6IAU.js → chunk-COTC7HF3.js} +1 -1
- package/dist/bundle/{chunk-KMQUZ4YM.js → chunk-CZFV6XTW.js} +3 -3
- package/dist/bundle/{chunk-M6FCCVYZ.js → chunk-CZKV4USJ.js} +16 -3
- package/dist/bundle/{chunk-BPMKLWHV.js → chunk-EQYPTGCT.js} +4 -4
- package/dist/bundle/{chunk-YJN4XYNA.js → chunk-FSYO3PUW.js} +2 -2
- package/dist/bundle/{chunk-N3KQ7XND.js → chunk-H3DMYF3W.js} +2 -2
- package/dist/bundle/{chunk-JBBZCTTF.js → chunk-H5LLZ5XA.js} +1 -1
- package/dist/bundle/{chunk-NQCFUYC2.js → chunk-H65B6A7Y.js} +10 -9
- package/dist/bundle/{chunk-BNTAQADF.js → chunk-HIGFBTEI.js} +12 -3
- package/dist/bundle/{chunk-TZE6WXID.js → chunk-HQHUPTZR.js} +9744 -9580
- package/dist/bundle/{chunk-5MYLM6SU.js → chunk-HQHYPKSU.js} +89 -35
- package/dist/bundle/{chunk-MIUPH3WA.js → chunk-I5QX2HAT.js} +6 -6
- package/dist/bundle/{chunk-CXPHUOJR.js → chunk-IIGXCYEL.js} +26 -13
- package/dist/bundle/{chunk-3YBDRVOG.js → chunk-IIP4J3PD.js} +6 -6
- package/dist/bundle/{chunk-72S5TXFN.js → chunk-J25UNZIL.js} +9 -9
- package/dist/bundle/{chunk-XAXXEZZ5.js → chunk-JJZAGKUK.js} +2 -2
- package/dist/bundle/{chunk-TILW3EJY.js → chunk-JM43EKTY.js} +1258 -562
- package/dist/bundle/{chunk-BJPFWPKH.js → chunk-JMSKDW5G.js} +2 -2
- package/dist/bundle/{chunk-2T7MUSDB.js → chunk-JRPAZ2WD.js} +126 -96
- package/dist/bundle/{chunk-DIXC56OU.js → chunk-JRPYHDCO.js} +4 -4
- package/dist/bundle/{chunk-KM7Q67Z3.js → chunk-JZKNHA44.js} +1 -1
- package/dist/bundle/{chunk-LXYC75D3.js → chunk-K6OSD6DG.js} +150 -134
- package/dist/bundle/{chunk-2DPMYUWQ.js → chunk-KJCCT3QY.js} +10 -10
- package/dist/bundle/{chunk-LTE6WH22.js → chunk-L4JGVSBN.js} +24 -24
- package/dist/bundle/{chunk-FDCGTODC.js → chunk-LEQCRVPD.js} +1 -1
- package/dist/bundle/{chunk-YF2PT5KA.js → chunk-OPP5CWAX.js} +35 -34
- package/dist/bundle/{chunk-NVC4VQ2B.js → chunk-OWXMQVVN.js} +1 -1
- package/dist/bundle/{chunk-RUJBN7ZP.js → chunk-PBJY5VR6.js} +1 -1
- package/dist/bundle/{chunk-SLBMXXOW.js → chunk-Q3EDUZ5R.js} +10 -10
- package/dist/bundle/{chunk-QUWMFBMS.js → chunk-QK54GOGE.js} +49 -9
- package/dist/bundle/{chunk-6SK5SHCR.js → chunk-R4NTPYXZ.js} +2 -2
- package/dist/bundle/{chunk-GOESXUJQ.js → chunk-RJLNVHIU.js} +3 -3
- package/dist/bundle/{chunk-EG7HC4EC.js → chunk-RK3JBC4U.js} +2 -2
- package/dist/bundle/{chunk-D6FTCPXA.js → chunk-SJIBJQJN.js} +10 -9
- package/dist/bundle/{chunk-2NAM2XQG.js → chunk-SMT6SFBK.js} +2 -2
- package/dist/bundle/{chunk-2LLNPNMB.js → chunk-TJH5IQVZ.js} +1 -1
- package/dist/bundle/{chunk-SPJJCD2A.js → chunk-TJODNJKE.js} +13 -13
- package/dist/bundle/{chunk-RWG44LQD.js → chunk-TYKZCJD7.js} +4 -4
- package/dist/bundle/{chunk-IOCS5FXW.js → chunk-UABUBDYB.js} +2 -2
- package/dist/bundle/{chunk-FAOLCUKV.js → chunk-UCPL55YP.js} +17 -17
- package/dist/bundle/{chunk-6SPWQCJF.js → chunk-UFI5SX3F.js} +11 -11
- package/dist/bundle/{chunk-5LMQTEU5.js → chunk-UNO4G5NX.js} +5 -5
- package/dist/bundle/{chunk-URJZK4GX.js → chunk-WFIJOFS5.js} +1 -1
- package/dist/bundle/{chunk-MI3JK6MW.js → chunk-X6M5DK66.js} +10 -10
- package/dist/bundle/{chunk-YBMOFCY5.js → chunk-XZSQLVED.js} +2 -2
- package/dist/bundle/{chunk-M2WQWF3I.js → chunk-Y7TWNMTW.js} +48 -48
- package/dist/bundle/{chunk-AMIIU3UZ.js → chunk-YNYMWXXH.js} +4 -4
- package/dist/bundle/{chunk-VFJ3MOIR.js → chunk-ZW4N73FO.js} +3 -3
- package/dist/bundle/{cli-AHPIESAC.js → cli-Y2ZO3D5U.js} +73 -55
- package/dist/bundle/command-contract-DGTZIH2F.js +38 -0
- package/dist/bundle/config-N2UHDKGG.js +78 -0
- package/dist/bundle/{decode-ZU7WLMMV.js → decode-GO6GAYH2.js} +3 -3
- package/dist/bundle/{dist-LTS7VI3S.js → dist-MIJKAGXW.js} +14 -14
- package/dist/bundle/{echarts-YNGCOYHW.js → echarts-NWK7LALR.js} +2 -2
- package/dist/bundle/{embed-VWWOW7PP.js → embed-2DOSN4DV.js} +4 -4
- package/dist/bundle/{embedder-T5GJC7M2.js → embedder-3Q3C2WKC.js} +7 -7
- package/dist/bundle/{first-run-PX3SHPUU.js → first-run-S75VKIT3.js} +8 -8
- package/dist/bundle/first-screen-DQNRT6GH.js +36 -0
- package/dist/bundle/{folders-VXMDFC2D.js → folders-RSWEBHDZ.js} +2 -2
- package/dist/bundle/{instructions-GJHHFV64.js → instructions-M3FZPQVI.js} +1 -1
- package/dist/bundle/{main-APVJXUJE.js → main-R77BPRRS.js} +16 -16
- package/dist/bundle/{mcp-EMNFFY4N.js → mcp-YJEQYYTR.js} +2 -2
- package/dist/bundle/{meetings-GHYNIOHG.js → meetings-IV4Y4WRH.js} +4 -4
- package/dist/bundle/{node-GFOH6FKP.js → node-I3GEHYGL.js} +2 -2
- package/dist/bundle/{node-sqlite-QXKSPHTP.js → node-sqlite-W6MR2TVQ.js} +3 -3
- package/dist/bundle/{oauth-A6I2OMDD.js → oauth-M6YL4QXP.js} +5 -5
- package/dist/bundle/{open-TQKCU447.js → open-2VITLJAN.js} +2 -2
- package/dist/bundle/{openai-XE3BJXOI.js → openai-OG6B3JCU.js} +9 -9
- package/dist/bundle/{output-file-FQNFCUKE.js → output-file-XJJ3XMLQ.js} +3 -3
- package/dist/bundle/{process-XVDX4SPD.js → process-UBA4L4B2.js} +1 -1
- package/dist/bundle/{program-QRKEXYDG.js → program-5R5MRXUM.js} +69 -69
- package/dist/bundle/{prompt-ISYG5RWM.js → prompt-AVIXIM7Z.js} +3 -3
- package/dist/bundle/{recognize-KENPECLZ.js → recognize-DJKTJOYU.js} +2 -2
- package/dist/bundle/{remote-ZP5XTDCC.js → remote-S3DTNYRP.js} +5 -5
- package/dist/bundle/{rerank-SG653RHT.js → rerank-FMCDP6VF.js} +5 -5
- package/dist/bundle/{run-log-HYKGQ42E.js → run-log-T4MV2VEH.js} +53 -53
- package/dist/bundle/{serve-6UJCZD7Z.js → serve-5SGFJFMC.js} +7 -7
- package/dist/bundle/server-EYGZLKKQ.js +66 -0
- package/dist/bundle/{server-ZAYEDPFR.js → server-PCMCY7WK.js} +42 -42
- package/dist/bundle/{services-KMH7XZPY.js → services-SKRQ2POT.js} +27 -27
- package/dist/bundle/{speech-LINBLG5E.js → speech-FSDICIKO.js} +11 -11
- package/dist/bundle/{state-4RKZNHE7.js → state-KPUSPWO6.js} +4 -4
- package/dist/bundle/{store-253N7NUC.js → store-7MP2ZGQ7.js} +34 -16
- package/dist/bundle/{store-JTBHRQZK.js → store-W7LFPKG2.js} +15 -13
- package/dist/bundle/store-connection-3HNZFJC4.js +76 -0
- package/dist/bundle/store-maintenance-command-6WBLTUZP.js +55 -0
- package/dist/bundle/{streaming-YW64OKKQ.js → streaming-Q44ESD3E.js} +4 -4
- package/dist/bundle/{tokens-DPBC2P3I.js → tokens-TAFCHANI.js} +4 -4
- package/dist/bundle/zm.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/answer-policy-V2KDPLDO.js +0 -96
- package/dist/bundle/command-contract-HVLI3OKU.js +0 -38
- package/dist/bundle/config-3SFEGYZO.js +0 -78
- package/dist/bundle/first-screen-RAPEZG57.js +0 -36
- package/dist/bundle/server-AXE37E6Q.js +0 -66
- package/dist/bundle/store-connection-ID2ETC7F.js +0 -76
- package/dist/bundle/store-maintenance-command-XRNECVDU.js +0 -55
- /package/dist/bundle/{chunk-NPGVOZVK.js → chunk-WJWLHLQ7.js} +0 -0
|
@@ -3,20 +3,20 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
profileAccountKey,
|
|
5
5
|
profilePattern
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Q3EDUZ5R.js";
|
|
7
7
|
import {
|
|
8
8
|
checkCancelled
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UABUBDYB.js";
|
|
10
10
|
import {
|
|
11
11
|
openWavAudio,
|
|
12
12
|
preflightWavAudio
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-AAC6VNSL.js";
|
|
14
14
|
import {
|
|
15
15
|
createMeetingSearchCommand,
|
|
16
16
|
meetingHitSearchRequest,
|
|
17
17
|
meetingSearchArguments,
|
|
18
18
|
meetingSearchMeta
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-23LOMA2I.js";
|
|
20
20
|
import {
|
|
21
21
|
Command,
|
|
22
22
|
FETCH,
|
|
@@ -29,17 +29,17 @@ import {
|
|
|
29
29
|
metaNow,
|
|
30
30
|
metaOf,
|
|
31
31
|
overrideSharedContract
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-BWPKSUXW.js";
|
|
33
33
|
import {
|
|
34
34
|
parseDuration
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-A2FOW3ZC.js";
|
|
36
36
|
import {
|
|
37
37
|
canonicalMeetingReference,
|
|
38
38
|
meetingHitsList,
|
|
39
39
|
parseMeetingReference,
|
|
40
40
|
validateMeetingContextChange,
|
|
41
41
|
validateMeetingHitSearch
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-5BCNJB2A.js";
|
|
43
43
|
import {
|
|
44
44
|
CliError,
|
|
45
45
|
createOutputBuffer,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
isCliError,
|
|
48
48
|
jsonSchemaOf,
|
|
49
49
|
union
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-7NDSBTKR.js";
|
|
51
51
|
import {
|
|
52
52
|
__name
|
|
53
53
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -160,7 +160,7 @@ var engineFailure = /* @__PURE__ */ __name(async (model, work) => {
|
|
|
160
160
|
}
|
|
161
161
|
}, "engineFailure");
|
|
162
162
|
var loadSpeech = /* @__PURE__ */ __name(async () => {
|
|
163
|
-
const speech = await import("./speech-
|
|
163
|
+
const speech = await import("./speech-FSDICIKO.js");
|
|
164
164
|
return { describe: speech.localSpeechRecognitionModel, open: speech.openLocalSpeechRecognizer };
|
|
165
165
|
}, "loadSpeech");
|
|
166
166
|
var createWavTranscriptionSource = /* @__PURE__ */ __name((file, options) => {
|
|
@@ -245,7 +245,7 @@ var createLocalTranscriptionCapabilities = /* @__PURE__ */ __name((store, input
|
|
|
245
245
|
env: options.env,
|
|
246
246
|
speech: options.speech
|
|
247
247
|
});
|
|
248
|
-
const { transcribeMeeting } = await import("./meetings-
|
|
248
|
+
const { transcribeMeeting } = await import("./meetings-IV4Y4WRH.js");
|
|
249
249
|
return await transcribeMeeting(source, {
|
|
250
250
|
appendTranscriptsWithReceipt(value) {
|
|
251
251
|
if (value.accountId !== accountId || value.externalId !== target.externalId)
|
|
@@ -281,7 +281,7 @@ var validateTaskProposal = /* @__PURE__ */ __name((value) => {
|
|
|
281
281
|
throw new CliError("invalid_response", "task proposal must be unapplied and proposal-only");
|
|
282
282
|
}, "validateTaskProposal");
|
|
283
283
|
var loadProducer = /* @__PURE__ */ __name(async () => {
|
|
284
|
-
const [domain, services] = await Promise.all([import("./dist-
|
|
284
|
+
const [domain, services] = await Promise.all([import("./dist-MIJKAGXW.js"), import("./services-SKRQ2POT.js")]);
|
|
285
285
|
return { ...services, ...domain };
|
|
286
286
|
}, "loadProducer");
|
|
287
287
|
var createMeetingContextCapabilities = /* @__PURE__ */ __name((store, meetings, accountId, load = loadProducer) => {
|
|
@@ -593,7 +593,7 @@ var addMeetingSearchCommands = /* @__PURE__ */ __name((program, deps) => {
|
|
|
593
593
|
}, "addMeetingSearchCommands");
|
|
594
594
|
|
|
595
595
|
// dist/meeting-semantic.js
|
|
596
|
-
var loadProducer2 = /* @__PURE__ */ __name(async () => import("./services-
|
|
596
|
+
var loadProducer2 = /* @__PURE__ */ __name(async () => import("./services-SKRQ2POT.js"), "loadProducer");
|
|
597
597
|
var createMeetingSemanticCapabilities = /* @__PURE__ */ __name((store, accountId, options = {}) => {
|
|
598
598
|
if (!Number.isSafeInteger(accountId) || accountId < 1)
|
|
599
599
|
throw new CliError("validation_error", "meeting vectors require a selected positive account ID");
|
|
@@ -750,7 +750,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
750
750
|
throw new CliError("validation_error", "expected a selected Zoom profile and read or ingestion intent");
|
|
751
751
|
let store;
|
|
752
752
|
try {
|
|
753
|
-
const open2 = options.openStore ?? (await import("./store-
|
|
753
|
+
const open2 = options.openStore ?? (await import("./store-7MP2ZGQ7.js")).openStore;
|
|
754
754
|
store = await open2({
|
|
755
755
|
path: options.path,
|
|
756
756
|
env: options.env,
|
|
@@ -771,7 +771,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
771
771
|
let cachedBatchReader;
|
|
772
772
|
const batchReader = /* @__PURE__ */ __name(async () => {
|
|
773
773
|
if (!cachedBatchReader) {
|
|
774
|
-
const { createMeetingBatchReader } = await import("./services-
|
|
774
|
+
const { createMeetingBatchReader } = await import("./services-SKRQ2POT.js");
|
|
775
775
|
cachedBatchReader = createMeetingBatchReader(connected, accountId);
|
|
776
776
|
}
|
|
777
777
|
return cachedBatchReader;
|
|
@@ -780,7 +780,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
780
780
|
meetingPreparation: {
|
|
781
781
|
scope: key,
|
|
782
782
|
create: /* @__PURE__ */ __name(async (upcoming) => {
|
|
783
|
-
const { createMeetingPreparationService } = await import("./services-
|
|
783
|
+
const { createMeetingPreparationService } = await import("./services-SKRQ2POT.js");
|
|
784
784
|
const reader = connected.contextEvidence;
|
|
785
785
|
if (context && !reader)
|
|
786
786
|
throw new CliError("configuration_error", "the installed store does not support bounded communications");
|
|
@@ -805,7 +805,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
805
805
|
close: /* @__PURE__ */ __name(() => connected.close(), "close"),
|
|
806
806
|
appendTranscriptsWithReceipt: /* @__PURE__ */ __name((input) => meetings.appendTranscriptsWithReceipt(ownAccount(input, "append")), "appendTranscriptsWithReceipt"),
|
|
807
807
|
meetingProjectCandidates: /* @__PURE__ */ __name(async (reference, request2) => {
|
|
808
|
-
const { createStoredMeetingProjectCandidateReader } = await import("./services-
|
|
808
|
+
const { createStoredMeetingProjectCandidateReader } = await import("./services-SKRQ2POT.js");
|
|
809
809
|
const read = createStoredMeetingProjectCandidateReader(key, accountId, {
|
|
810
810
|
meetings,
|
|
811
811
|
vocabulary: connected.knowledge
|
|
@@ -813,7 +813,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
813
813
|
return read(reference, request2);
|
|
814
814
|
}, "meetingProjectCandidates"),
|
|
815
815
|
meetingProjectEvidence: /* @__PURE__ */ __name(async (project, request2) => {
|
|
816
|
-
const { readMeetingProjectDiscovery } = await import("./services-
|
|
816
|
+
const { readMeetingProjectDiscovery } = await import("./services-SKRQ2POT.js");
|
|
817
817
|
return readMeetingProjectDiscovery({
|
|
818
818
|
vocabulary: connected.knowledge,
|
|
819
819
|
search: { searchHits: /* @__PURE__ */ __name((query, hits) => meetings.searchHits(query, hits), "searchHits") }
|
|
@@ -840,7 +840,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
840
840
|
},
|
|
841
841
|
meetingSearch: /* @__PURE__ */ __name(async (query, request2) => {
|
|
842
842
|
validateMeetingHitSearch(query, request2);
|
|
843
|
-
const { searchMeetingHits } = await import("./services-
|
|
843
|
+
const { searchMeetingHits } = await import("./services-SKRQ2POT.js");
|
|
844
844
|
return searchMeetingHits({ meetings, knowledge: connected.knowledge }, query, { ...request2, accountId });
|
|
845
845
|
}, "meetingSearch"),
|
|
846
846
|
meetingIntegration: {
|
|
@@ -851,7 +851,7 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
851
851
|
const change = validateMeetingContextChange(input);
|
|
852
852
|
if (change.action !== "event.link" && change.action !== "person.link")
|
|
853
853
|
throw new CliError("validation_error", "meeting linking supports only explicit event or person changes");
|
|
854
|
-
const api = await import("./services-
|
|
854
|
+
const api = await import("./services-SKRQ2POT.js");
|
|
855
855
|
await api.resolveMeetingReference(meetings, accountId, source.reference, { signal: mutation.signal });
|
|
856
856
|
const service = await api.createMeetingContextService({
|
|
857
857
|
accounts: connected.accounts,
|
|
@@ -872,25 +872,25 @@ var createStoreConnector = /* @__PURE__ */ __name((options = {}) => async (reque
|
|
|
872
872
|
},
|
|
873
873
|
unifiedSearch: /* @__PURE__ */ __name(async (input) => {
|
|
874
874
|
const request2 = validateUnifiedSearch(input);
|
|
875
|
-
const { searchAllIncludingMeetings } = await import("./services-
|
|
875
|
+
const { searchAllIncludingMeetings } = await import("./services-SKRQ2POT.js");
|
|
876
876
|
return searchAllIncludingMeetings(connected, key, { ...request2, meetingAccount: key, env: options.env });
|
|
877
877
|
}, "unifiedSearch"),
|
|
878
878
|
meetingContext: createMeetingContextCapabilities(connected, meetings, accountId),
|
|
879
879
|
meetingSemantic: createMeetingSemanticCapabilities(connected, accountId, { env: options.env }),
|
|
880
880
|
meetingSearches: await (async () => {
|
|
881
|
-
const { meetingSearchesService } = await import("./services-
|
|
881
|
+
const { meetingSearchesService } = await import("./services-SKRQ2POT.js");
|
|
882
882
|
return meetingSearchesService(async () => connected.searches);
|
|
883
883
|
})(),
|
|
884
884
|
meetingStats: /* @__PURE__ */ __name(async (request2) => {
|
|
885
|
-
const { readMeetingStats } = await import("./services-
|
|
885
|
+
const { readMeetingStats } = await import("./services-SKRQ2POT.js");
|
|
886
886
|
return readMeetingStats(connected, { ...request2, accountId });
|
|
887
887
|
}, "meetingStats"),
|
|
888
888
|
meetingReview: /* @__PURE__ */ __name(async (request2) => {
|
|
889
|
-
const { readMeetingReview } = await import("./services-
|
|
889
|
+
const { readMeetingReview } = await import("./services-SKRQ2POT.js");
|
|
890
890
|
return readMeetingReview(connected, { ...request2, accountId });
|
|
891
891
|
}, "meetingReview"),
|
|
892
892
|
meetingLinks: /* @__PURE__ */ __name(async (request2) => {
|
|
893
|
-
const { readMeetingLinks } = await import("./services-
|
|
893
|
+
const { readMeetingLinks } = await import("./services-SKRQ2POT.js");
|
|
894
894
|
return readMeetingLinks(connected, { ...request2, accountId });
|
|
895
895
|
}, "meetingLinks")
|
|
896
896
|
};
|
|
@@ -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.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
tool,
|
|
21
21
|
toolKey,
|
|
22
22
|
toolsFromCommands
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-HQHYPKSU.js";
|
|
24
24
|
import {
|
|
25
25
|
CHART_KINDS,
|
|
26
26
|
CHART_SIZE,
|
|
@@ -34,25 +34,26 @@ import {
|
|
|
34
34
|
registerPrompts,
|
|
35
35
|
stdinFieldOf,
|
|
36
36
|
syncsFirst
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-K6OSD6DG.js";
|
|
38
38
|
import {
|
|
39
39
|
agentJson,
|
|
40
40
|
skillResource
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-TJODNJKE.js";
|
|
42
42
|
import {
|
|
43
43
|
instructions
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-3DGQJASQ.js";
|
|
45
45
|
import {
|
|
46
46
|
mcpHttpMarker
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-7EOW47PV.js";
|
|
48
48
|
import {
|
|
49
49
|
answeredWire
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-H5LLZ5XA.js";
|
|
51
51
|
import {
|
|
52
52
|
StdioServerTransport,
|
|
53
53
|
callerOf,
|
|
54
|
+
callingAgent,
|
|
54
55
|
serveStdio
|
|
55
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-HIGFBTEI.js";
|
|
56
57
|
import {
|
|
57
58
|
McpServer,
|
|
58
59
|
ResourceTemplate
|
|
@@ -60,21 +61,21 @@ import {
|
|
|
60
61
|
import {
|
|
61
62
|
connectedFor,
|
|
62
63
|
guardFor
|
|
63
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-BO5YVG3X.js";
|
|
64
65
|
import {
|
|
65
66
|
lackedNeed,
|
|
66
67
|
wholeList
|
|
67
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-23LOMA2I.js";
|
|
68
69
|
import {
|
|
69
70
|
capability,
|
|
70
71
|
dateWindow,
|
|
71
72
|
imageSize,
|
|
72
73
|
servicesFor,
|
|
73
74
|
storedDeps
|
|
74
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-AF4HONAZ.js";
|
|
75
76
|
import {
|
|
76
77
|
findCommand
|
|
77
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-C3RRIJ5C.js";
|
|
78
79
|
import {
|
|
79
80
|
DEFAULT_OUTPUT_BYTES,
|
|
80
81
|
changesAuthorityAt,
|
|
@@ -87,33 +88,33 @@ import {
|
|
|
87
88
|
rootOf2 as rootOf,
|
|
88
89
|
sealed,
|
|
89
90
|
snakeKeys
|
|
90
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-BWPKSUXW.js";
|
|
91
92
|
import {
|
|
92
93
|
readOnlyLockOf
|
|
93
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-2UONVSJQ.js";
|
|
94
95
|
import {
|
|
95
96
|
withCaller
|
|
96
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-H65B6A7Y.js";
|
|
97
98
|
import {
|
|
98
99
|
typedCommand
|
|
99
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-A2FOW3ZC.js";
|
|
100
101
|
import {
|
|
101
102
|
isCliFailure
|
|
102
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-3AAO5N4L.js";
|
|
103
104
|
import {
|
|
104
105
|
levelFor,
|
|
105
106
|
readKeysForCommand
|
|
106
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-7D56BQZL.js";
|
|
107
108
|
import {
|
|
108
109
|
warmEmbedders
|
|
109
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-63MRRNDL.js";
|
|
110
111
|
import {
|
|
111
112
|
openStore,
|
|
112
113
|
pdfPreviewLimits
|
|
113
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-JM43EKTY.js";
|
|
114
115
|
import {
|
|
115
116
|
timezoneOf
|
|
116
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-SJIBJQJN.js";
|
|
117
118
|
import {
|
|
118
119
|
CliError,
|
|
119
120
|
description,
|
|
@@ -131,15 +132,15 @@ import {
|
|
|
131
132
|
strictObject,
|
|
132
133
|
string,
|
|
133
134
|
visibleControls
|
|
134
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-7NDSBTKR.js";
|
|
135
136
|
import {
|
|
136
137
|
__name
|
|
137
138
|
} from "./chunk-ZVVMGPBJ.js";
|
|
138
139
|
|
|
139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
140
141
|
import { randomUUID } from "node:crypto";
|
|
141
142
|
|
|
142
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
143
144
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
144
145
|
let held;
|
|
145
146
|
return {
|
|
@@ -158,7 +159,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
158
159
|
};
|
|
159
160
|
}, "agentLog");
|
|
160
161
|
|
|
161
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
162
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
162
163
|
var LISTED = 100;
|
|
163
164
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
164
165
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -196,7 +197,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
196
197
|
});
|
|
197
198
|
}, "registerResources");
|
|
198
199
|
|
|
199
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
200
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
200
201
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
201
202
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
202
203
|
var MessengerSession = class {
|
|
@@ -271,7 +272,7 @@ var MessengerSession = class {
|
|
|
271
272
|
}
|
|
272
273
|
};
|
|
273
274
|
|
|
274
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
275
276
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
276
277
|
const _command = messenger.app.command;
|
|
277
278
|
return {
|
|
@@ -325,7 +326,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
325
326
|
};
|
|
326
327
|
}, "attachmentsTools");
|
|
327
328
|
|
|
328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
329
330
|
var PHOTO_LIMIT = 512 * 1024;
|
|
330
331
|
var IMAGE_TYPES = [
|
|
331
332
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -379,7 +380,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
379
380
|
return new Uint8Array(Buffer.concat(chunks));
|
|
380
381
|
}, "readUpTo");
|
|
381
382
|
|
|
382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
383
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
383
384
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
384
385
|
stats_charts: tool({
|
|
385
386
|
title: "A chart from a chat's statistics",
|
|
@@ -416,14 +417,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
416
417
|
})
|
|
417
418
|
}), "statsTools");
|
|
418
419
|
|
|
419
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
420
421
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
421
422
|
...messagesPhotoTools(messenger),
|
|
422
423
|
...attachmentsTools(messenger),
|
|
423
424
|
...statsTools(messenger)
|
|
424
425
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
425
426
|
|
|
426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
427
428
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
428
429
|
"streams",
|
|
429
430
|
"stdin",
|
|
@@ -541,10 +542,10 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
541
542
|
});
|
|
542
543
|
const skill = messenger.skill ? skillResource(app, messenger.skill) : void 0;
|
|
543
544
|
const log = agentLog(() => openStore({ env: context.env, command: app.command, version: app.version }));
|
|
544
|
-
const audit = /* @__PURE__ */ __name(async (call) => {
|
|
545
|
+
const audit = /* @__PURE__ */ __name(async (call, caller) => {
|
|
545
546
|
if (!recalledAccount(app, provider, settings.profile, context.env))
|
|
546
547
|
return;
|
|
547
|
-
await log.record({ actor: { bot: `${app.command}-mcp
|
|
548
|
+
await log.record({ actor: { bot: callingAgent(`${app.command}-mcp`, caller) }, ...call });
|
|
548
549
|
}, "audit");
|
|
549
550
|
const targets = judgedTargets(root);
|
|
550
551
|
const passed = Object.fromEntries(Object.entries(environment).filter(([key]) => !PER_RUN.has(key)));
|
|
@@ -616,7 +617,7 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
616
617
|
...outcomeOf(result),
|
|
617
618
|
startedAt,
|
|
618
619
|
finishedAt: Date.now()
|
|
619
|
-
}).catch(() => void 0);
|
|
620
|
+
}, caller).catch(() => void 0);
|
|
620
621
|
return result;
|
|
621
622
|
}, "run")
|
|
622
623
|
}), "asCommand");
|
|
@@ -747,7 +748,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
747
748
|
}, "serveOverStdio");
|
|
748
749
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
749
750
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
750
|
-
const { serveOverHttp } = await import("./serve-
|
|
751
|
+
const { serveOverHttp } = await import("./serve-5SGFJFMC.js");
|
|
751
752
|
const appName = messenger.app.command;
|
|
752
753
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
753
754
|
const listening = await serveOverHttp(build, {
|
|
@@ -2,20 +2,20 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
ZM
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OWXMQVVN.js";
|
|
6
6
|
import {
|
|
7
7
|
commandsCommand,
|
|
8
8
|
formatSuggestions,
|
|
9
9
|
meetingResultItem,
|
|
10
10
|
runsCommand,
|
|
11
11
|
suggest
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-HQHUPTZR.js";
|
|
13
13
|
import {
|
|
14
14
|
sharedStoreCommand
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Y7TWNMTW.js";
|
|
16
16
|
import {
|
|
17
17
|
answerEntity
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-C3RRIJ5C.js";
|
|
19
19
|
import {
|
|
20
20
|
NO_EFFECTS,
|
|
21
21
|
REMOTE_READ,
|
|
@@ -38,24 +38,24 @@ import {
|
|
|
38
38
|
renderAnswer,
|
|
39
39
|
snakeKeys,
|
|
40
40
|
usableProfileName
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-BWPKSUXW.js";
|
|
42
42
|
import {
|
|
43
43
|
readOnlyLockOf,
|
|
44
44
|
readOnlyRefusal
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-2UONVSJQ.js";
|
|
46
46
|
import {
|
|
47
47
|
setupPermissionCeiling
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-JRPYHDCO.js";
|
|
49
49
|
import {
|
|
50
50
|
CEILING_KEY,
|
|
51
51
|
DEFAULT_PERMISSIONS,
|
|
52
52
|
LEVELS,
|
|
53
53
|
keyForCommand,
|
|
54
54
|
levelFor
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-7D56BQZL.js";
|
|
56
56
|
import {
|
|
57
57
|
MEETING_RESULT_ENTITIES
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-5BCNJB2A.js";
|
|
59
59
|
import {
|
|
60
60
|
CliError,
|
|
61
61
|
array,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
strictObject,
|
|
85
85
|
string,
|
|
86
86
|
union
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-7NDSBTKR.js";
|
|
88
88
|
import {
|
|
89
89
|
__name
|
|
90
90
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -2,25 +2,56 @@ 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-7NDSBTKR.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.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
11
11
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
12
|
-
var TASK_STATES = ["open", "done", "dismissed"];
|
|
12
|
+
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
13
|
+
var CLOSED_STATES = ["done", "dismissed"];
|
|
13
14
|
var TASK_ORIGINS = ["rule", "agent", "owner"];
|
|
14
15
|
var TASK_VERDICTS = ["useful", "not_useful"];
|
|
16
|
+
var isClosedState = /* @__PURE__ */ __name((state) => CLOSED_STATES.includes(state), "isClosedState");
|
|
15
17
|
function closeTask(task, state, by, at, reason) {
|
|
16
|
-
if (task.state
|
|
18
|
+
if (isClosedState(task.state))
|
|
17
19
|
throw new CliError("validation_error", `task ${task.id} is already ${task.state}`, { reason: "task.closed" });
|
|
18
20
|
const { claimedBy: _by, claimedUntil: _until, ...unclaimed } = task;
|
|
19
21
|
return { ...unclaimed, state, closedAt: at, closedBy: by, ...reason === void 0 ? {} : { reason } };
|
|
20
22
|
}
|
|
21
23
|
__name(closeTask, "closeTask");
|
|
22
24
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/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@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
24
55
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
25
56
|
async function find(id) {
|
|
26
57
|
const task = await store.get(id);
|
|
@@ -58,7 +89,7 @@ function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PUR
|
|
|
58
89
|
for (const task of await store.list(filter))
|
|
59
90
|
byGroup.set(task.group, [...byGroup.get(task.group) ?? [], task]);
|
|
60
91
|
return [...byGroup].map(([group, tasks]) => {
|
|
61
|
-
const open = tasks.filter((task) => task.state
|
|
92
|
+
const open = tasks.filter((task) => !isClosedState(task.state));
|
|
62
93
|
const closeMs = tasks.flatMap((task) => task.closedAt ? [task.closedAt.getTime() - task.createdAt.getTime()] : []);
|
|
63
94
|
const oldestOpenAt = open.map((task) => task.createdAt).sort((a, b) => a.getTime() - b.getTime())[0];
|
|
64
95
|
return {
|
|
@@ -80,13 +111,13 @@ function median(values) {
|
|
|
80
111
|
}
|
|
81
112
|
__name(median, "median");
|
|
82
113
|
|
|
83
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
84
115
|
function matches(task, filter) {
|
|
85
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);
|
|
86
117
|
}
|
|
87
118
|
__name(matches, "matches");
|
|
88
119
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
90
121
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
91
122
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
92
123
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
@@ -95,7 +126,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
95
126
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
96
127
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
97
128
|
|
|
98
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
99
130
|
var LINK_KINDS = [
|
|
100
131
|
"links-to",
|
|
101
132
|
"blocked-by",
|
|
@@ -124,8 +155,17 @@ export {
|
|
|
124
155
|
linkKind,
|
|
125
156
|
TASK_KINDS,
|
|
126
157
|
TASK_STATES,
|
|
158
|
+
CLOSED_STATES,
|
|
127
159
|
TASK_ORIGINS,
|
|
128
160
|
TASK_VERDICTS,
|
|
161
|
+
isClosedState,
|
|
162
|
+
PRIORITY_LABELS,
|
|
163
|
+
priorityLabel,
|
|
164
|
+
priorityBand,
|
|
165
|
+
legacyPriority,
|
|
166
|
+
checkedScore,
|
|
167
|
+
priorityOf,
|
|
168
|
+
priorityOption,
|
|
129
169
|
createTaskService,
|
|
130
170
|
matches,
|
|
131
171
|
FACT_TYPES,
|
|
@@ -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-7NDSBTKR.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.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -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-JZKNHA44.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7NDSBTKR.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.533.0_@wirecat+cli-base@0.71.0_commander@15.0.0_esbuild@0.28.2_type_d95b0b392230247c519664df7aaeaaab/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");
|