@wirecat/zoom-cli 0.68.0 → 0.70.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 +1 -1
- package/dist/account-removal.d.ts +6 -0
- package/dist/account-removal.d.ts.map +1 -0
- package/dist/account-removal.js +43 -0
- package/dist/account-removal.js.map +1 -0
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-R66UM3HM.js → all-profiles-GE2TFJJP.js} +9 -9
- package/dist/bundle/answer-policy-GOXSDYDD.js +104 -0
- package/dist/bundle/{anthropic-4ZI2BPLG.js → anthropic-FA6NHENI.js} +9 -7
- package/dist/bundle/{app-server-64O5IQI5.js → app-server-IRADMSNX.js} +50 -50
- package/dist/bundle/{bun-HUHQD76Z.js → bun-ZYZGGCX5.js} +2 -2
- package/dist/bundle/{bun-sqlite-VOVHPTIF.js → bun-sqlite-Y24TUIGS.js} +4 -4
- package/dist/bundle/{chunk-W42BJ65M.js → chunk-2JEM2YNV.js} +1 -1
- package/dist/bundle/{chunk-3BRV2YU2.js → chunk-2QFPVUM3.js} +2 -2
- package/dist/bundle/{chunk-KAPJQGHE.js → chunk-2U6SER67.js} +1 -1
- package/dist/bundle/{chunk-77I67HWF.js → chunk-3KC7C465.js} +7 -7
- package/dist/bundle/{chunk-YQRNFG2E.js → chunk-4DSIWYGO.js} +7661 -13544
- package/dist/bundle/{chunk-7DUYFITC.js → chunk-56OV5ASY.js} +11 -11
- package/dist/bundle/{chunk-AVEIQMHZ.js → chunk-5XWCBLUR.js} +1 -1
- package/dist/bundle/{chunk-HXOAPH47.js → chunk-6HJFIMT7.js} +1 -1
- package/dist/bundle/{chunk-SSPSNSC5.js → chunk-6IF5ZHDS.js} +1 -1
- package/dist/bundle/{chunk-BOAMDYLY.js → chunk-7QC4M4HS.js} +2 -2
- package/dist/bundle/{chunk-6T3P226D.js → chunk-AISJCF7A.js} +4 -4
- package/dist/bundle/chunk-AT2XKNFN.js +342 -0
- package/dist/bundle/{chunk-BSM43OMN.js → chunk-AUNW7N4I.js} +1 -1
- package/dist/bundle/{chunk-R7LFGEDE.js → chunk-BSS6HX4O.js} +2 -2
- package/dist/bundle/{chunk-FMQS7HCC.js → chunk-BVWF4B33.js} +251 -10
- package/dist/bundle/{chunk-DGNPJGD3.js → chunk-CEJJBZAE.js} +9 -15
- package/dist/bundle/{chunk-L4WVLRXM.js → chunk-CHGUNZ3L.js} +3 -3
- package/dist/bundle/{chunk-LBOSTBAY.js → chunk-CIZ25UPK.js} +3841 -2497
- package/dist/bundle/{chunk-TN3FH2GQ.js → chunk-CSEBB4OP.js} +8 -8
- package/dist/bundle/{chunk-JO4YADNV.js → chunk-D3PNCJD5.js} +5 -5
- package/dist/bundle/{chunk-US5C3WAY.js → chunk-DCUWJITQ.js} +30 -30
- package/dist/bundle/{chunk-QXTREL2M.js → chunk-DNR4B5YV.js} +2 -2
- package/dist/bundle/{chunk-PUTGTW6W.js → chunk-DXCTW3MV.js} +1 -1
- package/dist/bundle/{chunk-B6JMVB6R.js → chunk-EOSVN2ER.js} +1 -1
- package/dist/bundle/{chunk-ZRD3NDOX.js → chunk-GB5X3GBE.js} +23 -1
- package/dist/bundle/{chunk-32FPA7P2.js → chunk-GVT5363M.js} +2 -2
- package/dist/bundle/{chunk-EWIBLDQQ.js → chunk-IINZIP73.js} +7 -7
- package/dist/bundle/{chunk-5JAYUG3X.js → chunk-IS3ZTT2Z.js} +5 -5
- package/dist/bundle/{chunk-LYWUG43B.js → chunk-IWPXWGF7.js} +34 -34
- package/dist/bundle/{chunk-JRCYFCPL.js → chunk-J3SKXICS.js} +350 -136
- package/dist/bundle/{chunk-UDJTRFRV.js → chunk-JRO2FWO2.js} +1 -1
- package/dist/bundle/chunk-JULBAECW.js +126 -0
- package/dist/bundle/{chunk-FNQASORM.js → chunk-KM736RMJ.js} +1 -1
- package/dist/bundle/{chunk-4TLPOY22.js → chunk-KWRCP55G.js} +11 -11
- package/dist/bundle/{chunk-SRP6SFFD.js → chunk-L24UOUWG.js} +1 -1
- package/dist/bundle/{chunk-AJ7CMUGD.js → chunk-LAG5O2FV.js} +218 -231
- package/dist/bundle/{chunk-UU5PLDRA.js → chunk-LXXCLQCW.js} +2 -2
- package/dist/bundle/{chunk-65T3PU75.js → chunk-M6JIXMQZ.js} +5 -1
- package/dist/bundle/{chunk-LV7QRR5S.js → chunk-M7E44TMT.js} +5 -5
- package/dist/bundle/{chunk-6XO7RTJY.js → chunk-M7VUXXGS.js} +110 -8
- package/dist/bundle/{chunk-A63ZFOQJ.js → chunk-MVOMLJYQ.js} +3 -3
- package/dist/bundle/{chunk-DVA6MQWK.js → chunk-OA37BWE5.js} +1 -1
- package/dist/bundle/{chunk-77KFLU5F.js → chunk-OAQLVV6W.js} +2 -2
- package/dist/bundle/{chunk-KNE6VFHZ.js → chunk-OORMSM6O.js} +1 -1
- package/dist/bundle/{chunk-TZUKDM72.js → chunk-PV6OHXHN.js} +16 -16
- package/dist/bundle/{chunk-2OSBCYJT.js → chunk-QL7EMFIC.js} +18 -18
- package/dist/bundle/{chunk-4YFJYSSK.js → chunk-QO2KPU26.js} +45 -29
- package/dist/bundle/{chunk-GOXDBCDM.js → chunk-RB33VTUW.js} +297 -397
- package/dist/bundle/{chunk-TDGZMC6K.js → chunk-RIPAUCKJ.js} +59 -55
- package/dist/bundle/{chunk-6CJ7NHIP.js → chunk-RO3ZR4VP.js} +12 -12
- package/dist/bundle/{chunk-BL36NSV5.js → chunk-RQG5VOGH.js} +12 -2
- package/dist/bundle/{chunk-YTF2WPV4.js → chunk-RRRJCHUC.js} +2162 -1250
- package/dist/bundle/chunk-RWIILYKW.js +66 -0
- package/dist/bundle/{chunk-YJY3W2ZT.js → chunk-SNIY3JDN.js} +21 -18
- package/dist/bundle/{chunk-EH5QGQFR.js → chunk-SVF3NDAO.js} +3 -3
- package/dist/bundle/{chunk-VLD7Y4SY.js → chunk-UVPL7YAY.js} +5 -5
- package/dist/bundle/{chunk-2T6XHWDX.js → chunk-V2E7QFZ3.js} +1 -1
- package/dist/bundle/{chunk-K67V24AT.js → chunk-V5GRSOCZ.js} +4 -4
- package/dist/bundle/{chunk-DWSUSWAX.js → chunk-VE2VNECR.js} +131 -12
- package/dist/bundle/{chunk-RRYUD2EF.js → chunk-VJ5ZU4UF.js} +22 -4
- package/dist/bundle/{chunk-7QNJICKZ.js → chunk-VNU5L37V.js} +26 -26
- package/dist/bundle/{chunk-6TJ62LZQ.js → chunk-VSLDWT4E.js} +3 -3
- package/dist/bundle/{chunk-P2TISY3R.js → chunk-W7ZEEC4K.js} +1 -1
- package/dist/bundle/{chunk-NRRI37NJ.js → chunk-WOIHSQAL.js} +44 -0
- package/dist/bundle/{chunk-EJDV5IIF.js → chunk-X4ZF4XXI.js} +1 -1
- package/dist/bundle/{chunk-FBLUKCIR.js → chunk-XRFHQGOD.js} +1 -1
- package/dist/bundle/{chunk-KUB2U5NT.js → chunk-XWQNJKTP.js} +5 -5
- package/dist/bundle/chunk-Y6C3N7YG.js +12434 -0
- package/dist/bundle/{chunk-474WF55M.js → chunk-YJSPBUGB.js} +63 -32
- package/dist/bundle/{chunk-RP3U3J53.js → chunk-YTN2JN6N.js} +7 -7
- package/dist/bundle/{chunk-Y5LP5SHV.js → chunk-YUHM2OJM.js} +10 -10
- package/dist/bundle/{chunk-7AUP2WT3.js → chunk-ZBKWRYRS.js} +2 -2
- package/dist/bundle/{chunk-355PHJYX.js → chunk-ZS55EERO.js} +1 -1
- package/dist/bundle/{chunk-TUNQ6NE2.js → chunk-ZSKE7N2U.js} +3 -3
- package/dist/bundle/{chunk-PIHBD3YS.js → chunk-ZV3INEKM.js} +4 -4
- package/dist/bundle/{cli-VQJ7ZRYR.js → cli-VRSQ7HAE.js} +76 -60
- package/dist/bundle/command-contract-RPRKHVU6.js +41 -0
- package/dist/bundle/config-QU6A6VIO.js +90 -0
- package/dist/bundle/{decode-L3ENO2XH.js → decode-523PUQMR.js} +4 -4
- package/dist/bundle/{dispatch-5MGDLOK4.js → dispatch-IZCAK47P.js} +1 -1
- package/dist/bundle/{dist-WQLS7U23.js → dist-6WWKPEVW.js} +98 -22
- package/dist/bundle/{echarts-5LLJ6JXC.js → echarts-S5UMX2D3.js} +2 -2
- package/dist/bundle/{embed-37MYTCU7.js → embed-ODPDVHUK.js} +5 -5
- package/dist/bundle/{embedder-GNGHVJAO.js → embedder-PAXRBSZE.js} +8 -8
- package/dist/bundle/{failure-CR64C4XA.js → failure-R2OIHCE5.js} +1 -1
- package/dist/bundle/{first-run-NR5JKYP3.js → first-run-NVTDR5VO.js} +8 -8
- package/dist/bundle/first-screen-5RWZDWLK.js +39 -0
- package/dist/bundle/{folders-VU4IN35Y.js → folders-ZXTOFY4T.js} +3 -3
- package/dist/bundle/{instructions-P72XX4AK.js → instructions-DUB7E6C5.js} +1 -1
- package/dist/bundle/{main-QYFCYSTW.js → main-A7JSYQI6.js} +18 -18
- package/dist/bundle/{meetings-66UQINKI.js → meetings-BDZQV3HR.js} +4 -4
- package/dist/bundle/{node-ZB4RNICS.js → node-E25KP53H.js} +2 -2
- package/dist/bundle/{node-sqlite-XPRKBDF3.js → node-sqlite-PHWDFZCP.js} +5 -5
- package/dist/bundle/{oauth-WJRDUU5J.js → oauth-G2K46IYP.js} +6 -6
- package/dist/bundle/{open-S2YSIEOW.js → open-INWS5HIZ.js} +4 -4
- package/dist/bundle/{openai-CRNZFNZD.js → openai-T44ORVGQ.js} +10 -10
- package/dist/bundle/{output-file-6COFGPUL.js → output-file-YGQYZCBJ.js} +4 -4
- package/dist/bundle/{process-XNN4WG6N.js → process-UJ2JHMJN.js} +1 -1
- package/dist/bundle/{program-BRPJKRCX.js → program-LYTGFV6L.js} +115 -72
- package/dist/bundle/{prompt-7RQOL25I.js → prompt-VTUCRCE4.js} +6 -4
- package/dist/bundle/{recognize-N5WADGQB.js → recognize-3CEPOW2F.js} +3 -3
- package/dist/bundle/{remote-WHYV35IF.js → remote-DRQEXEZL.js} +6 -6
- package/dist/bundle/{rerank-FBMZVWSH.js → rerank-UL4KNNVN.js} +6 -6
- package/dist/bundle/{run-log-TOCHREH2.js → run-log-UZAB5CWF.js} +54 -54
- package/dist/bundle/{serve-4BABX4WS.js → serve-P5UWUOWQ.js} +8 -8
- package/dist/bundle/server-F3NPVMS2.js +72 -0
- package/dist/bundle/{server-CDVI6LOB.js → server-M6XK2Y3X.js} +42 -42
- package/dist/bundle/{services-PIY33I7R.js → services-4HRYNY62.js} +66 -30
- package/dist/bundle/{speech-LS5Q4FL2.js → speech-BBPBMFAO.js} +12 -12
- package/dist/bundle/{state-YUX5R2R7.js → state-GDSUNUSY.js} +5 -5
- package/dist/bundle/{store-BD7HAXAA.js → store-LBQ6FZP2.js} +41 -15
- package/dist/bundle/{store-ERMGBF2B.js → store-VWLABMLF.js} +57 -17
- package/dist/bundle/store-connection-XEBFP56U.js +83 -0
- package/dist/bundle/store-maintenance-command-G43JN57J.js +61 -0
- package/dist/bundle/{streaming-O53PIORL.js → streaming-EJ3NM2C2.js} +5 -5
- package/dist/bundle/{tokens-QKNEP2GJ.js → tokens-BE6CJMR5.js} +5 -5
- package/dist/bundle/zm.js +3 -3
- package/dist/bundle/{zoom-app-XJXZ4ZBX.js → zoom-app-YIEJLWCW.js} +6 -6
- package/dist/first-screen.d.ts.map +1 -1
- package/dist/first-screen.js +1 -0
- package/dist/first-screen.js.map +1 -1
- package/dist/permissions.js +1 -1
- package/dist/permissions.js.map +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +11 -0
- package/dist/setup-commands.js.map +1 -1
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +11 -0
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/answer-policy-UCGUO53A.js +0 -104
- package/dist/bundle/chunk-AYEVBAGO.js +0 -178
- package/dist/bundle/chunk-EZRPSZJS.js +0 -33
- package/dist/bundle/chunk-NUJMJQXV.js +0 -787
- package/dist/bundle/chunk-YOAEZSDG.js +0 -22
- package/dist/bundle/command-contract-JPUWWYIV.js +0 -41
- package/dist/bundle/config-YGLLR77A.js +0 -90
- package/dist/bundle/first-screen-RCR7ATO2.js +0 -39
- package/dist/bundle/server-XOFQKFVO.js +0 -72
- package/dist/bundle/store-connection-JBR6CMTJ.js +0 -83
- package/dist/bundle/store-maintenance-command-I5DUSO2C.js +0 -62
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
CliError,
|
|
5
|
+
errorCodes
|
|
6
|
+
} from "./chunk-FEM2JQN2.js";
|
|
7
|
+
import {
|
|
8
|
+
__name
|
|
9
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
10
|
+
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
12
|
+
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
13
|
+
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
14
|
+
const { code, exitCode } = value ?? {};
|
|
15
|
+
return value instanceof Error && typeof code === "string" && code.startsWith("commander.") && typeof exitCode === "number";
|
|
16
|
+
}, "isCommanderFailure");
|
|
17
|
+
var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
|
|
18
|
+
var SQLITE_CORRUPT = 11;
|
|
19
|
+
var SQLITE_NOTADB = 26;
|
|
20
|
+
var DAMAGED_TEXT = /database disk image is malformed|file is not a database|fts5: corruption/i;
|
|
21
|
+
var sqliteCode = /* @__PURE__ */ __name((error) => {
|
|
22
|
+
const { errcode, errno, name } = error ?? {};
|
|
23
|
+
const code = typeof errcode === "number" ? errcode : name === "SQLiteError" && typeof errno === "number" ? errno : null;
|
|
24
|
+
return code === null ? void 0 : code & 255;
|
|
25
|
+
}, "sqliteCode");
|
|
26
|
+
var damageIn = /* @__PURE__ */ __name((error) => {
|
|
27
|
+
if (isCliFailure(error) || isCommanderFailure(error))
|
|
28
|
+
return void 0;
|
|
29
|
+
let at = error;
|
|
30
|
+
for (let depth = 0; depth < 5 && at instanceof Error; depth += 1) {
|
|
31
|
+
const code = sqliteCode(at);
|
|
32
|
+
if (code !== void 0 && [SQLITE_CORRUPT, SQLITE_NOTADB].includes(code) || DAMAGED_TEXT.test(at.message))
|
|
33
|
+
return at;
|
|
34
|
+
at = at.cause;
|
|
35
|
+
}
|
|
36
|
+
return void 0;
|
|
37
|
+
}, "damageIn");
|
|
38
|
+
var wrapping = /* @__PURE__ */ __name((error, original) => {
|
|
39
|
+
Object.defineProperty(error, "cause", { value: original, configurable: true, writable: true });
|
|
40
|
+
if (original instanceof Error && original.stack)
|
|
41
|
+
error.stack = original.stack;
|
|
42
|
+
return error;
|
|
43
|
+
}, "wrapping");
|
|
44
|
+
var storeDamaged = /* @__PURE__ */ __name((error, next) => damageIn(error) ? wrapping(new CliError("configuration_error", `the store file is damaged${next ? `; \`${next}\` says what is damaged and what to do` : ""}`, { reason: "store.damaged" }), error) : error, "storeDamaged");
|
|
45
|
+
var damagedFile = /* @__PURE__ */ __name(async (files, work) => {
|
|
46
|
+
try {
|
|
47
|
+
return await work();
|
|
48
|
+
} catch (error) {
|
|
49
|
+
if (!damageIn(error))
|
|
50
|
+
throw error;
|
|
51
|
+
throw wrapping(new CliError("validation_error", `${files.join(" or ")} is damaged or not a database`, {
|
|
52
|
+
reason: "store.file-damaged"
|
|
53
|
+
}), error);
|
|
54
|
+
}
|
|
55
|
+
}, "damagedFile");
|
|
56
|
+
var isStoreDamage = /* @__PURE__ */ __name((error) => damageIn(error) !== void 0, "isStoreDamage");
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
isCliFailure,
|
|
60
|
+
isCommanderFailure,
|
|
61
|
+
failureKey,
|
|
62
|
+
sqliteCode,
|
|
63
|
+
storeDamaged,
|
|
64
|
+
damagedFile,
|
|
65
|
+
isStoreDamage
|
|
66
|
+
};
|
|
@@ -6,23 +6,23 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-56OV5ASY.js";
|
|
10
10
|
import {
|
|
11
11
|
callerOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LXXCLQCW.js";
|
|
13
13
|
import {
|
|
14
14
|
failureContext
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-M7VUXXGS.js";
|
|
16
16
|
import {
|
|
17
17
|
QUERY_ARGUMENT,
|
|
18
18
|
lentConnection,
|
|
19
19
|
refuseLacking
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QL7EMFIC.js";
|
|
21
21
|
import {
|
|
22
22
|
onlineDeps,
|
|
23
23
|
servicesFor,
|
|
24
24
|
storeModeDeps
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RRRJCHUC.js";
|
|
26
26
|
import {
|
|
27
27
|
DEFAULT_OUTPUT_BYTES,
|
|
28
28
|
ENTITIES,
|
|
@@ -37,36 +37,39 @@ import {
|
|
|
37
37
|
refuseStoreChange,
|
|
38
38
|
sealed,
|
|
39
39
|
startRecording
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-LAG5O2FV.js";
|
|
41
41
|
import {
|
|
42
42
|
currentCaller,
|
|
43
43
|
keepsSuccess,
|
|
44
44
|
runContextOf,
|
|
45
45
|
withCaller
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-YTN2JN6N.js";
|
|
47
47
|
import {
|
|
48
48
|
enclosingTraceId,
|
|
49
49
|
inRun,
|
|
50
50
|
newRunId,
|
|
51
51
|
traceOf
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-J3SKXICS.js";
|
|
53
53
|
import {
|
|
54
54
|
authorityAllowed,
|
|
55
55
|
botApiAllowed,
|
|
56
56
|
keyForCommand,
|
|
57
57
|
levelFor,
|
|
58
58
|
readKeysForCommand
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-M6JIXMQZ.js";
|
|
60
|
+
import {
|
|
61
|
+
storeDamaged
|
|
62
|
+
} from "./chunk-RWIILYKW.js";
|
|
60
63
|
import {
|
|
61
64
|
MAX_BUFFERED_INPUT
|
|
62
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-V2E7QFZ3.js";
|
|
63
66
|
import {
|
|
64
67
|
queryDescription
|
|
65
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-EOSVN2ER.js";
|
|
66
69
|
import {
|
|
67
70
|
captureStreams,
|
|
68
71
|
traceIdOf
|
|
69
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-OORMSM6O.js";
|
|
70
73
|
import {
|
|
71
74
|
COMPACT_FLAG,
|
|
72
75
|
SNAKE_CASE,
|
|
@@ -105,7 +108,7 @@ import {
|
|
|
105
108
|
unknown,
|
|
106
109
|
word,
|
|
107
110
|
writes
|
|
108
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-WOIHSQAL.js";
|
|
109
112
|
import {
|
|
110
113
|
CliError,
|
|
111
114
|
errorCodes
|
|
@@ -114,7 +117,7 @@ import {
|
|
|
114
117
|
__name
|
|
115
118
|
} from "./chunk-ZVVMGPBJ.js";
|
|
116
119
|
|
|
117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
118
121
|
import { Readable } from "node:stream";
|
|
119
122
|
|
|
120
123
|
// node_modules/.pnpm/@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
@@ -2986,7 +2989,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
2986
2989
|
]
|
|
2987
2990
|
});
|
|
2988
2991
|
|
|
2989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2990
2993
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2991
2994
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2992
2995
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -3209,7 +3212,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3209
3212
|
}
|
|
3210
3213
|
}, "runCommandForAgent");
|
|
3211
3214
|
|
|
3212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3213
3216
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3214
3217
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3215
3218
|
var message = pipe(
|
|
@@ -3465,10 +3468,10 @@ var answered = /* @__PURE__ */ __name((answer, maxBytes = DEFAULT_OUTPUT_BYTES,
|
|
|
3465
3468
|
var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
3466
3469
|
const judged = judgedEffects(effects);
|
|
3467
3470
|
const context = { ...failureContext(errors), ...judged ? { effects: judged } : {} };
|
|
3468
|
-
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3471
|
+
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
3469
3472
|
}, "failed");
|
|
3470
3473
|
|
|
3471
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3472
3475
|
import { randomUUID } from "node:crypto";
|
|
3473
3476
|
var MATCHES = 8;
|
|
3474
3477
|
var ANSWER = answerSchema();
|
|
@@ -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-OA37BWE5.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OORMSM6O.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.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/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,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GVT5363M.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OORMSM6O.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError
|
|
11
11
|
} from "./chunk-FEM2JQN2.js";
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
20
20
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
21
21
|
import { dirname, join, resolve } from "node:path";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
24
24
|
var DEFAULT_TASK_CATEGORIES = [
|
|
25
25
|
{
|
|
26
26
|
name: "taxes",
|
|
@@ -775,7 +775,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
775
775
|
}
|
|
776
776
|
}, "storedTaskCategories");
|
|
777
777
|
|
|
778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
779
779
|
var SECTION = "task_categories";
|
|
780
780
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
781
781
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -7,7 +7,7 @@ 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.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/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();
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
answerSchema,
|
|
7
7
|
describeOptions,
|
|
8
8
|
metaOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LAG5O2FV.js";
|
|
10
10
|
import {
|
|
11
11
|
keyForCommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-M6JIXMQZ.js";
|
|
13
13
|
import {
|
|
14
14
|
jsonSchemaOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WOIHSQAL.js";
|
|
16
16
|
import {
|
|
17
17
|
CliError
|
|
18
18
|
} from "./chunk-FEM2JQN2.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
24
24
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
25
25
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
26
26
|
const entity = answerEntitySchema(command);
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
isCliFailure,
|
|
5
|
+
isStoreDamage
|
|
6
|
+
} from "./chunk-RWIILYKW.js";
|
|
7
|
+
import {
|
|
8
|
+
refuseOwnerStoreInTests
|
|
9
|
+
} from "./chunk-GVT5363M.js";
|
|
3
10
|
import {
|
|
4
11
|
array,
|
|
5
12
|
boolean,
|
|
@@ -18,7 +25,7 @@ import {
|
|
|
18
25
|
strictObject,
|
|
19
26
|
string,
|
|
20
27
|
unknown
|
|
21
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-WOIHSQAL.js";
|
|
22
29
|
import {
|
|
23
30
|
CliError
|
|
24
31
|
} from "./chunk-FEM2JQN2.js";
|
|
@@ -26,7 +33,7 @@ import {
|
|
|
26
33
|
__name
|
|
27
34
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
35
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
30
37
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
31
38
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
32
39
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -41,7 +48,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
41
48
|
}
|
|
42
49
|
__name(closeTask, "closeTask");
|
|
43
50
|
|
|
44
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
51
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
45
52
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
46
53
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
47
54
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -70,7 +77,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
70
77
|
}, "priorityOf");
|
|
71
78
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
72
79
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
80
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
74
81
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
75
82
|
async function find(id2) {
|
|
76
83
|
const task = await store.get(id2);
|
|
@@ -130,13 +137,13 @@ function median(values) {
|
|
|
130
137
|
}
|
|
131
138
|
__name(median, "median");
|
|
132
139
|
|
|
133
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
134
141
|
function matches(task, filter) {
|
|
135
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);
|
|
136
143
|
}
|
|
137
144
|
__name(matches, "matches");
|
|
138
145
|
|
|
139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
146
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
140
147
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
141
148
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
142
149
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -144,7 +151,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
144
151
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
145
152
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
146
153
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
148
155
|
var text = string();
|
|
149
156
|
var id = pipe(string(), minLength(1));
|
|
150
157
|
var time = isoTime;
|
|
@@ -168,7 +175,7 @@ var author = strictObject({
|
|
|
168
175
|
name: nullable(text)
|
|
169
176
|
});
|
|
170
177
|
|
|
171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
172
179
|
var organization = strictObject({
|
|
173
180
|
id,
|
|
174
181
|
ref: reference,
|
|
@@ -198,7 +205,108 @@ var reminder = strictObject({
|
|
|
198
205
|
receipt: nullable(text)
|
|
199
206
|
});
|
|
200
207
|
|
|
201
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
208
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/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.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
202
310
|
var LINK_KINDS = [
|
|
203
311
|
"links-to",
|
|
204
312
|
"blocked-by",
|
|
@@ -211,20 +319,23 @@ var LINK_KINDS = [
|
|
|
211
319
|
"created-from",
|
|
212
320
|
"duplicate-of",
|
|
213
321
|
"related-to",
|
|
322
|
+
"reports-to",
|
|
323
|
+
"customer-of",
|
|
324
|
+
"partner-of",
|
|
214
325
|
"assigned-to",
|
|
215
326
|
"attached"
|
|
216
327
|
];
|
|
217
328
|
var LINK_ORIGINS = ["file", "owner", "suggested", "message"];
|
|
218
329
|
var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
219
|
-
var RELATION_KINDS = ["member-of", "related-to"];
|
|
220
330
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
331
|
+
var COUNTERPART_ROLE = "counterpart";
|
|
221
332
|
|
|
222
333
|
export {
|
|
223
334
|
LINK_KINDS,
|
|
224
335
|
LINK_ORIGINS,
|
|
225
336
|
LINK_SOURCES,
|
|
226
|
-
RELATION_KINDS,
|
|
227
337
|
linkKind,
|
|
338
|
+
COUNTERPART_ROLE,
|
|
228
339
|
TASK_KINDS,
|
|
229
340
|
TASK_STATES,
|
|
230
341
|
CLOSED_STATES,
|
|
@@ -257,5 +368,13 @@ export {
|
|
|
257
368
|
author,
|
|
258
369
|
organization,
|
|
259
370
|
project,
|
|
260
|
-
reminder
|
|
371
|
+
reminder,
|
|
372
|
+
damageMarkPath,
|
|
373
|
+
healthMarkPath,
|
|
374
|
+
markStoreDamaged,
|
|
375
|
+
readDamageMark,
|
|
376
|
+
clearDamageMark,
|
|
377
|
+
refuseDamagedStore,
|
|
378
|
+
readHealthMark,
|
|
379
|
+
recordDeepCheck
|
|
261
380
|
};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-V2E7QFZ3.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./chunk-FEM2JQN2.js";
|
|
@@ -12,9 +12,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@0.614.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_3bb6323e04e526bd9df39f840434b06b/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
|
+
var EMPTY_TRIES = 3;
|
|
19
|
+
var pasteHint = /* @__PURE__ */ __name((platform = process.platform) => `Nothing arrived. To paste in a terminal, use ${platform === "darwin" ? "Cmd+V" : "Ctrl+Shift+V (or right-click \u2192 Paste)"}.`, "pasteHint");
|
|
18
20
|
var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
|
|
19
21
|
const policy = inputPolicy(input);
|
|
20
22
|
const signals = [givenSignal, policy.signal].filter((one) => one !== void 0);
|
|
@@ -65,9 +67,24 @@ var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin,
|
|
|
65
67
|
reader.once("SIGINT", cancel);
|
|
66
68
|
reader.once("close", cancel);
|
|
67
69
|
signal?.addEventListener("abort", abort, { once: true });
|
|
68
|
-
|
|
69
|
-
|
|
70
|
+
const ask = /* @__PURE__ */ __name((tries) => {
|
|
71
|
+
muted = false;
|
|
72
|
+
reader.question(prompt, (line) => {
|
|
73
|
+
if (echo || line.trim() || tries >= EMPTY_TRIES)
|
|
74
|
+
return resolve(line);
|
|
75
|
+
output.write(`
|
|
76
|
+
${pasteHint()}
|
|
77
|
+
`);
|
|
78
|
+
ask(tries + 1);
|
|
79
|
+
});
|
|
80
|
+
muted = !echo;
|
|
81
|
+
}, "ask");
|
|
82
|
+
ask(1);
|
|
70
83
|
});
|
|
84
|
+
if (!echo && !answer.trim())
|
|
85
|
+
throw new CliError("validation_error", `nothing arrived after ${EMPTY_TRIES} tries. ${pasteHint()}`, {
|
|
86
|
+
reason: "input.empty"
|
|
87
|
+
});
|
|
71
88
|
return answer.trim();
|
|
72
89
|
} finally {
|
|
73
90
|
input.off("data", data).off("error", inputError);
|
|
@@ -78,5 +95,6 @@ var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin,
|
|
|
78
95
|
}, "readSecret");
|
|
79
96
|
|
|
80
97
|
export {
|
|
98
|
+
pasteHint,
|
|
81
99
|
readSecret
|
|
82
100
|
};
|