@wirecat/mail-cli 0.24.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -0
- package/README.md +3 -0
- package/contracts/wirecat.json +1325 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bin/mail.js.map +1 -1
- package/dist/bundle/{all-profiles-VS7P6DJY.js → all-profiles-6NXVQLUQ.js} +11 -11
- package/dist/bundle/{anthropic-C5JXKGBS.js → anthropic-OLNFE2CL.js} +17 -10
- package/dist/bundle/{app-server-HU3LVU42.js → app-server-J76N6XIK.js} +60 -49
- package/dist/bundle/{bun-QLFX47WZ.js → bun-6PYDHXNR.js} +2 -2
- package/dist/bundle/{bun-sqlite-W4PGAKVY.js → bun-sqlite-QD5PFHPS.js} +9 -5
- package/dist/bundle/{chunk-WOX7FZJP.js → chunk-2E2EV4HD.js} +130 -77
- package/dist/bundle/{chunk-A6J4MPTI.js → chunk-2TCS4PLJ.js} +1 -1
- package/dist/bundle/{chunk-QI3PXUOJ.js → chunk-3J2UJFBJ.js} +39 -32
- package/dist/bundle/{chunk-LVGX7VTD.js → chunk-3RY4HC4V.js} +63 -5
- package/dist/bundle/chunk-3XTKQ5EM.js +54 -0
- package/dist/bundle/{chunk-ZO4MQWIK.js → chunk-4Q6KAV4O.js} +8 -8
- package/dist/bundle/{chunk-JOQGJUFT.js → chunk-52M5BAEG.js} +1 -1
- package/dist/bundle/{chunk-Q4OKEN3B.js → chunk-5WROIMUV.js} +12 -7
- package/dist/bundle/{chunk-VVL4MKYH.js → chunk-66C66FNK.js} +1 -1
- package/dist/bundle/{chunk-O373QEAJ.js → chunk-76EKZSDK.js} +27 -27
- package/dist/bundle/{chunk-AUTX2MLF.js → chunk-76VSHS5Y.js} +15 -10
- package/dist/bundle/{chunk-HBZAJINU.js → chunk-7C6FGWDH.js} +4 -4
- package/dist/bundle/{chunk-VUBZFMGP.js → chunk-7KCBPAQS.js} +2 -2
- package/dist/bundle/{chunk-FNLUKODV.js → chunk-7MEVD5PI.js} +57 -28
- package/dist/bundle/chunk-A3EBRXOQ.js +16 -0
- package/dist/bundle/{chunk-C3NYJW6B.js → chunk-A6XETABW.js} +852 -278
- package/dist/bundle/{chunk-VNKWSCN7.js → chunk-AJ5K74X6.js} +17 -17
- package/dist/bundle/{chunk-BFQQV22T.js → chunk-BDYQQ6G2.js} +1 -1
- package/dist/bundle/{chunk-ZR2BDNGG.js → chunk-BMGRDZM3.js} +1 -1
- package/dist/bundle/{chunk-TLEBSMC7.js → chunk-CFBIPM7T.js} +4109 -3575
- package/dist/bundle/{chunk-IRUN4XOV.js → chunk-CZI45AQM.js} +2 -2
- package/dist/bundle/{chunk-QVMOEB3I.js → chunk-DKIVYAXW.js} +18 -17
- package/dist/bundle/{chunk-X7J3TTDO.js → chunk-ECZSYLSL.js} +48 -9
- package/dist/bundle/{chunk-EKGRNFYQ.js → chunk-EDWJ7IYH.js} +1 -1
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-FIVFP53N.js} +1 -1
- package/dist/bundle/{chunk-5X3GU5LI.js → chunk-GIG7F6UW.js} +6 -6
- package/dist/bundle/{chunk-RN7OI5KL.js → chunk-H2IJQH5X.js} +20 -112
- package/dist/bundle/{chunk-NWKKPDZV.js → chunk-HI5XUETY.js} +2 -2
- package/dist/bundle/{chunk-YBQ5AYLZ.js → chunk-HNSBXC6U.js} +3 -3
- package/dist/bundle/{chunk-4W4EVVL4.js → chunk-IX3GUNGV.js} +4 -4
- package/dist/bundle/{chunk-PT6MF2VU.js → chunk-JNKXU7AE.js} +340 -108
- package/dist/bundle/{chunk-64ZG5ERD.js → chunk-JVJG54QK.js} +40 -2
- package/dist/bundle/{chunk-KGOVFEWZ.js → chunk-KXASCNOV.js} +3 -3
- package/dist/bundle/{chunk-5NLHDK7P.js → chunk-LMTQMYUF.js} +31 -31
- package/dist/bundle/{chunk-Q6K2XUGU.js → chunk-LTZGLOKE.js} +3 -2
- package/dist/bundle/{chunk-RLQZFZLK.js → chunk-M2LATBP2.js} +84 -10
- package/dist/bundle/{chunk-RX5CJ55S.js → chunk-M4OP5ASJ.js} +1 -1
- package/dist/bundle/{chunk-H5FJTHVA.js → chunk-M4Y33SJJ.js} +2 -2
- package/dist/bundle/{chunk-SWKQ6IAR.js → chunk-M7ECSGSN.js} +3 -3
- package/dist/bundle/{chunk-MTO6YVMN.js → chunk-M7RHPCXM.js} +3 -3
- package/dist/bundle/{chunk-PRQ2U7HF.js → chunk-MIWSCTLG.js} +2 -2
- package/dist/bundle/{chunk-NSIN5IM4.js → chunk-NBJU6MBU.js} +10 -15
- package/dist/bundle/{chunk-JWMLMAHP.js → chunk-NMFPK3MU.js} +14 -5
- package/dist/bundle/{chunk-4QNHAM3J.js → chunk-OGE7YG4J.js} +2 -2
- package/dist/bundle/{chunk-XBEO472U.js → chunk-PJ6YMNJG.js} +26515 -24466
- package/dist/bundle/{chunk-RUASZW3M.js → chunk-PY2IOVUN.js} +5 -5
- package/dist/bundle/{chunk-OQW6GHUA.js → chunk-QI6EXKSH.js} +1 -1
- package/dist/bundle/{chunk-KV4VTKF3.js → chunk-QJGG6QYV.js} +69 -6
- package/dist/bundle/{chunk-JMLIKXFO.js → chunk-RXKIP2ML.js} +2 -2
- package/dist/bundle/{chunk-6VV7J2TN.js → chunk-T7SHPALQ.js} +35 -28
- package/dist/bundle/{chunk-YI544LHI.js → chunk-UE2NKPA4.js} +9 -9
- package/dist/bundle/{chunk-X47BL4M5.js → chunk-UNJUCK5R.js} +13 -13
- package/dist/bundle/{chunk-C5BMCLCQ.js → chunk-V32L23NN.js} +4 -4
- package/dist/bundle/{chunk-DW3F6DUW.js → chunk-V4PFD25P.js} +1 -1
- package/dist/bundle/{chunk-U6MMQNNK.js → chunk-VA4V73SL.js} +6 -6
- package/dist/bundle/{chunk-3KSK5BBB.js → chunk-VJPLIXV4.js} +8 -2
- package/dist/bundle/{chunk-YA45XV6G.js → chunk-VWRT57QU.js} +4 -4
- package/dist/bundle/{chunk-FKWUUCX2.js → chunk-XELZCDWE.js} +427 -189
- package/dist/bundle/{chunk-3FD3IATT.js → chunk-XUJEZ5YF.js} +6 -6
- package/dist/bundle/{chunk-TI7ZIPA2.js → chunk-XZ7CQ6NA.js} +4 -4
- package/dist/bundle/{chunk-NCRSE647.js → chunk-YM345236.js} +159 -46
- package/dist/bundle/{chunk-6PWCQKMD.js → chunk-YXGHC3NP.js} +14 -14
- package/dist/bundle/{chunk-RNZKQMFY.js → chunk-ZZSZN4CJ.js} +22 -15
- package/dist/bundle/command-contract-NNEXHZW5.js +36 -0
- package/dist/bundle/{command-server-entry-5E3PPDE5.js → command-server-entry-AIBWNC5D.js} +25 -24
- package/dist/bundle/{decode-AVWV7SVZ.js → decode-H7KLRD33.js} +5 -5
- package/dist/bundle/{dispatch-BXPHSNK5.js → dispatch-DSVN7MNG.js} +8 -8
- package/dist/bundle/{dist-PIOOKBWT.js → dist-YYSP43J3.js} +29 -18
- package/dist/bundle/{echarts-7K6YQV52.js → echarts-VSD3LS6D.js} +2 -2
- package/dist/bundle/{embed-4NT76GJK.js → embed-UENZ5HN3.js} +6 -6
- package/dist/bundle/{embedder-ITQFF7EN.js → embedder-MJMGOJT7.js} +9 -9
- package/dist/bundle/{failure-3Q65JOPD.js → failure-COTPFUP4.js} +2 -2
- package/dist/bundle/{first-run-PM74YU4X.js → first-run-HYALREFN.js} +12 -11
- package/dist/bundle/first-screen-GPF5RHBX.js +34 -0
- package/dist/bundle/{instructions-JDSITYHV.js → instructions-WOHRYOLN.js} +1 -1
- package/dist/bundle/mail.js +15 -20
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-TDKGDB4V.js} +2 -2
- package/dist/bundle/{node-D6YIJOJI.js → node-4BRWJJCE.js} +2 -2
- package/dist/bundle/{node-sqlite-PJOHHB4X.js → node-sqlite-D3QESEYQ.js} +10 -6
- package/dist/bundle/{oauth-BOWJ3IBT.js → oauth-T7TTOBIZ.js} +7 -7
- package/dist/bundle/{open-FIAKKZMW.js → open-6P6627QB.js} +5 -5
- package/dist/bundle/{openai-QL54VVLC.js → openai-FIMCJGAP.js} +24 -19
- package/dist/bundle/{process-AYHK7WRC.js → process-35IH3WHC.js} +1 -1
- package/dist/bundle/{program-6FKWOTBK.js → program-IEXB72IK.js} +6685 -5463
- package/dist/bundle/{prompt-XJZCBELC.js → prompt-HFBCPMVL.js} +5 -5
- package/dist/bundle/{recognize-OQKWAHBY.js → recognize-CNL4HJ7Z.js} +4 -4
- package/dist/bundle/{remote-NLVUZ5WK.js → remote-AYGZI7HT.js} +9 -7
- package/dist/bundle/{rerank-NRPZDTJ7.js → rerank-5C2OZZXD.js} +7 -7
- package/dist/bundle/{serve-O4YUI7F6.js → serve-S6OYBDIB.js} +9 -9
- package/dist/bundle/{server-WAL3M4OO.js → server-VKO6E6PI.js} +42 -40
- package/dist/bundle/server-WXSHVDME.js +68 -0
- package/dist/bundle/{sqlite-runtime-5YHGI4D4.js → sqlite-runtime-DBTGNTVE.js} +6 -6
- package/dist/bundle/{state-WYYOJ7KK.js → state-ZQG6AL2Y.js} +6 -6
- package/dist/bundle/{store-X72GOJHD.js → store-B7BXWILZ.js} +25 -18
- package/dist/bundle/{store-6BJO3F2J.js → store-LY4QKTOO.js} +19 -16
- package/dist/bundle/store-maintenance-command-UR6NQDVV.js +58 -0
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +57 -19
- package/dist/commands/rules.js.map +1 -1
- package/dist/commands/session-start.d.ts.map +1 -1
- package/dist/commands/session-start.js +1 -1
- package/dist/commands/session-start.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +13 -12
- package/dist/config.js.map +1 -1
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +7 -2
- package/dist/discovery.js.map +1 -1
- package/dist/identity.d.ts +2 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +34 -0
- package/dist/identity.js.map +1 -1
- package/dist/mail/domain-age.d.ts +1 -1
- package/dist/mail/domain-age.d.ts.map +1 -1
- package/dist/mail/domain-age.js +9 -3
- package/dist/mail/domain-age.js.map +1 -1
- package/dist/mail/rules/file.d.ts.map +1 -1
- package/dist/mail/rules/file.js +4 -1
- package/dist/mail/rules/file.js.map +1 -1
- package/dist/mail/rules/query.d.ts +2 -1
- package/dist/mail/rules/query.d.ts.map +1 -1
- package/dist/mail/rules/query.js +16 -3
- package/dist/mail/rules/query.js.map +1 -1
- package/dist/oauth.d.ts +3 -1
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +48 -34
- package/dist/oauth.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +5 -0
- package/dist/reasons.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +2 -21
- package/dist/store.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +10 -9
- package/dist/bundle/chunk-B72343TK.js +0 -35
- package/dist/bundle/command-contract-ERYYPAD2.js +0 -35
- package/dist/bundle/first-screen-WBVGVSMY.js +0 -33
- package/dist/bundle/server-6OT5ZEWL.js +0 -66
- package/dist/bundle/store-maintenance-command-ASS7RBYC.js +0 -54
- /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-XWBPP2HX.js} +0 -0
|
@@ -13,20 +13,20 @@ import {
|
|
|
13
13
|
kindsIn,
|
|
14
14
|
providerNamed,
|
|
15
15
|
providers
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2E2EV4HD.js";
|
|
17
17
|
import {
|
|
18
18
|
isCliFailure,
|
|
19
19
|
isStoreDamage
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VJPLIXV4.js";
|
|
21
21
|
import {
|
|
22
22
|
refuseOwnerStoreInTests
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3XTKQ5EM.js";
|
|
24
24
|
import {
|
|
25
25
|
createRecordLog,
|
|
26
26
|
resolvePaths,
|
|
27
27
|
traceIdOf,
|
|
28
28
|
writeSecurely
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-7MEVD5PI.js";
|
|
30
30
|
import {
|
|
31
31
|
array,
|
|
32
32
|
boolean,
|
|
@@ -45,25 +45,25 @@ import {
|
|
|
45
45
|
strictObject,
|
|
46
46
|
string,
|
|
47
47
|
unknown
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-ECZSYLSL.js";
|
|
49
49
|
import {
|
|
50
50
|
CliError
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-7KCBPAQS.js";
|
|
52
52
|
import {
|
|
53
53
|
__name
|
|
54
54
|
} from "./chunk-ZVVMGPBJ.js";
|
|
55
55
|
|
|
56
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
57
57
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
58
58
|
import { randomBytes } from "node:crypto";
|
|
59
59
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
61
61
|
import { randomUUID } from "node:crypto";
|
|
62
62
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
63
63
|
import { userInfo } from "node:os";
|
|
64
64
|
import { join, sep } from "node:path";
|
|
65
65
|
|
|
66
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
66
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
67
67
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
68
68
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
69
69
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -76,7 +76,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
76
76
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
77
77
|
}), "snakeLogger");
|
|
78
78
|
|
|
79
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
79
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
80
80
|
var diagnostic = {
|
|
81
81
|
event: true,
|
|
82
82
|
operation: true,
|
|
@@ -150,7 +150,7 @@ var LOG_ATTRIBUTES = [
|
|
|
150
150
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
151
151
|
].sort();
|
|
152
152
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
154
154
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
155
155
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
156
156
|
var KEEP_STORE_RUNS_FOR_DAYS = 3;
|
|
@@ -517,7 +517,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
517
517
|
};
|
|
518
518
|
}, "metadataOf");
|
|
519
519
|
|
|
520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
521
521
|
var scopes = new AsyncLocalStorage();
|
|
522
522
|
var processScope;
|
|
523
523
|
var ownProcesses = new AsyncLocalStorage();
|
|
@@ -568,7 +568,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
568
568
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
569
569
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
570
570
|
|
|
571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
572
572
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
573
573
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
574
574
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -583,7 +583,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
583
583
|
}
|
|
584
584
|
__name(closeTask, "closeTask");
|
|
585
585
|
|
|
586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
587
587
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
588
588
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
589
589
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -612,7 +612,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
612
612
|
}, "priorityOf");
|
|
613
613
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
614
614
|
|
|
615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
616
616
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
617
617
|
async function find(id2) {
|
|
618
618
|
const task = await store.get(id2);
|
|
@@ -672,20 +672,20 @@ function median(values) {
|
|
|
672
672
|
}
|
|
673
673
|
__name(median, "median");
|
|
674
674
|
|
|
675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
676
676
|
function matches(task, filter) {
|
|
677
677
|
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);
|
|
678
678
|
}
|
|
679
679
|
__name(matches, "matches");
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
682
682
|
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
683
683
|
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
684
684
|
var ERASED_TEXT = "[source erased]";
|
|
685
685
|
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
686
686
|
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
687
687
|
|
|
688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
689
689
|
var text = string();
|
|
690
690
|
var id = pipe(string(), minLength(1));
|
|
691
691
|
var time = isoTime;
|
|
@@ -710,7 +710,7 @@ var author = strictObject({
|
|
|
710
710
|
name: nullable(text)
|
|
711
711
|
});
|
|
712
712
|
|
|
713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
714
714
|
var organization = strictObject({
|
|
715
715
|
id,
|
|
716
716
|
ref: reference,
|
|
@@ -740,7 +740,7 @@ var reminder = strictObject({
|
|
|
740
740
|
receipt: nullable(text)
|
|
741
741
|
});
|
|
742
742
|
|
|
743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
744
744
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
745
745
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
746
746
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -748,7 +748,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
748
748
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
749
749
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
750
750
|
|
|
751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
751
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
752
752
|
import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
753
753
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
754
754
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -869,7 +869,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
869
869
|
return { previous, cleared };
|
|
870
870
|
}, "recordDeepCheck");
|
|
871
871
|
|
|
872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
873
873
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
874
874
|
var inSource = /* @__PURE__ */ __name((source, provider) => source === "all" || source === "bots" && isBotProvider(provider) || source === "personal" && !isBotProvider(provider) || source === provider || providerNamed(source)?.name === provider || isKind(source) && holdsKindOf(provider, source), "inSource");
|
|
875
875
|
var fail = /* @__PURE__ */ __name((message) => {
|
|
@@ -892,7 +892,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
892
892
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
893
893
|
}, "sourceOf");
|
|
894
894
|
|
|
895
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
895
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
896
896
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
897
897
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
898
898
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -1102,7 +1102,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) =>
|
|
|
1102
1102
|
return { accounts: [...chosen.values()], skipped };
|
|
1103
1103
|
}, "fitting");
|
|
1104
1104
|
|
|
1105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1105
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
1106
1106
|
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
1107
1107
|
var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
1108
1108
|
const reporter = row.account_id == null ? void 0 : "reporter" in row ? row.reporter : database.prepare("SELECT provider || ':' || external_id AS key FROM accounts WHERE id = ?").get(Number(row.account_id))?.key;
|
|
@@ -1112,7 +1112,7 @@ var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
|
1112
1112
|
};
|
|
1113
1113
|
}, "sourceOf");
|
|
1114
1114
|
|
|
1115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
1116
1116
|
var LINK_KINDS = [
|
|
1117
1117
|
"links-to",
|
|
1118
1118
|
"blocked-by",
|
|
@@ -1132,11 +1132,11 @@ var LINK_KINDS = [
|
|
|
1132
1132
|
"attached"
|
|
1133
1133
|
];
|
|
1134
1134
|
var LINK_ORIGINS = ["file", "owner", "suggested", "message"];
|
|
1135
|
-
var LINK_SOURCES = [...LINK_ORIGINS, "calendar"];
|
|
1135
|
+
var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
|
|
1136
1136
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
1137
1137
|
var COUNTERPART_ROLE = "counterpart";
|
|
1138
1138
|
|
|
1139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
1140
1140
|
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
1141
1141
|
|
|
1142
1142
|
export {
|
|
@@ -2,30 +2,32 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCliFailure
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VJPLIXV4.js";
|
|
6
6
|
import {
|
|
7
7
|
secretNamed,
|
|
8
8
|
withoutSecrets
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LTZGLOKE.js";
|
|
10
10
|
import {
|
|
11
11
|
isContentKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7MEVD5PI.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
18
18
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
19
19
|
import { createHash } from "node:crypto";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
22
22
|
import { homedir } from "node:os";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
25
25
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
26
26
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
27
27
|
if (event.event === "store")
|
|
28
28
|
return `${MARK.store} ${event.operation.padEnd(16)} ${event.table} ${event.op} ${event.n}`;
|
|
29
|
+
if (event.event === "progress")
|
|
30
|
+
return `${MARK.progress} ${event.operation.padEnd(16)} ${Object.entries(event.counts).map(([field, count]) => `${count} ${field}`).join(" ")}`;
|
|
29
31
|
if (event.event === "warning") {
|
|
30
32
|
const counts = Object.entries(event.counts ?? {}).map(([field, count]) => `${count} ${field}`);
|
|
31
33
|
return [`${MARK.warning} ${(event.operation ?? "").padEnd(16)} ${event.code}`, ...counts, event.detail].filter(Boolean).join(" ");
|
|
@@ -67,11 +69,11 @@ var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
|
67
69
|
}
|
|
68
70
|
return `${MARK[event.event]} ${event.operation.padEnd(16)} ${parts.join(" ")}`.trimEnd();
|
|
69
71
|
}, "renderEvent");
|
|
70
|
-
var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!", store: "+" };
|
|
72
|
+
var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!", store: "+", progress: "\u2026" };
|
|
71
73
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
72
74
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
73
75
|
|
|
74
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
75
77
|
var MESSAGE_AT_MOST = 500;
|
|
76
78
|
var CAUSES_AT_MOST = 5;
|
|
77
79
|
var FRAMES_AT_MOST = 15;
|
|
@@ -157,9 +159,12 @@ var endpointTemplate = /* @__PURE__ */ __name((raw) => {
|
|
|
157
159
|
const origin = /^[a-z][a-z0-9+.-]*:\/\/(?:[^@/]*@)?([^/]*)/i.exec(trimmed);
|
|
158
160
|
const path = origin ? trimmed.slice(origin[0].length) : trimmed;
|
|
159
161
|
const scheme = origin ? `${trimmed.slice(0, trimmed.indexOf("://"))}://${origin[1]}` : "";
|
|
160
|
-
const
|
|
162
|
+
const parts = path.split("/");
|
|
163
|
+
const segments = parts.map((segment, at) => {
|
|
161
164
|
if (segment === "" || /^[:{].+/.test(segment))
|
|
162
165
|
return segment;
|
|
166
|
+
if (at >= 2 && parts[at - 2] === "rest" && /^\d+$/.test(parts[at - 1] ?? ""))
|
|
167
|
+
return ":token";
|
|
163
168
|
if (/^bot\d+:/.test(segment) || /^\d{6,}:[\w-]{20,}$/.test(segment))
|
|
164
169
|
return ":token";
|
|
165
170
|
if (/^-?\d+$/.test(segment) || /^[0-9a-f-]{16,}$/i.test(segment))
|
|
@@ -180,7 +185,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
180
185
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
181
186
|
}, "redactText");
|
|
182
187
|
|
|
183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
188
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
184
189
|
var REDACTED = "[redacted]";
|
|
185
190
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
186
191
|
if (!record)
|
|
@@ -3,26 +3,26 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FIVFP53N.js";
|
|
7
7
|
import {
|
|
8
8
|
require_cross_spawn
|
|
9
9
|
} from "./chunk-D72URWJE.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfigFile,
|
|
12
12
|
saveConfigFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7MEVD5PI.js";
|
|
14
14
|
import {
|
|
15
15
|
number,
|
|
16
16
|
object,
|
|
17
17
|
optional,
|
|
18
18
|
string
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ECZSYLSL.js";
|
|
20
20
|
import {
|
|
21
21
|
__name,
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
|
|
26
26
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
27
27
|
import { existsSync } from "node:fs";
|
|
28
28
|
var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/errors.js
|
|
8
8
|
var errorCodes = [
|
|
9
9
|
"validation_error",
|
|
10
10
|
"configuration_error",
|
|
@@ -39,7 +39,7 @@ var CliError = class extends Error {
|
|
|
39
39
|
};
|
|
40
40
|
var isCliError = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && value[BRAND] === true, "isCliError");
|
|
41
41
|
|
|
42
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
42
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/sanitize.js
|
|
43
43
|
var CONTROL = (
|
|
44
44
|
// biome-ignore lint/suspicious/noControlCharactersInRegex: matching them is the whole point
|
|
45
45
|
/[\u0000-\u0008\u000B-\u001F\u007F-\u009F\u200B\u200E\u200F\u202A-\u202E\u2066-\u2069\uFEFF\u{E0000}-\u{E007F}]/gu
|
|
@@ -19,11 +19,11 @@ import {
|
|
|
19
19
|
string,
|
|
20
20
|
text,
|
|
21
21
|
unknown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ECZSYLSL.js";
|
|
23
23
|
import {
|
|
24
24
|
CliError,
|
|
25
25
|
visibleControls
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-7KCBPAQS.js";
|
|
27
27
|
import {
|
|
28
28
|
__commonJS,
|
|
29
29
|
__name,
|
|
@@ -1896,7 +1896,8 @@ var require_cli_table3 = __commonJS({
|
|
|
1896
1896
|
}
|
|
1897
1897
|
});
|
|
1898
1898
|
|
|
1899
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1899
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
1900
|
+
import { realpathSync } from "node:fs";
|
|
1900
1901
|
import { homedir, userInfo } from "node:os";
|
|
1901
1902
|
import { join, posix, win32 } from "node:path";
|
|
1902
1903
|
var PATH_KINDS = ["config", "state", "cache"];
|
|
@@ -1920,8 +1921,36 @@ var defaultPaths = /* @__PURE__ */ __name(({ appName, env = process.env, platfor
|
|
|
1920
1921
|
cache: posix.join(env.XDG_CACHE_HOME || posix.join(home, ".cache"), appName)
|
|
1921
1922
|
};
|
|
1922
1923
|
}, "defaultPaths");
|
|
1924
|
+
var accountHome = /* @__PURE__ */ __name(() => {
|
|
1925
|
+
try {
|
|
1926
|
+
return userInfo().homedir;
|
|
1927
|
+
} catch {
|
|
1928
|
+
return void 0;
|
|
1929
|
+
}
|
|
1930
|
+
}, "accountHome");
|
|
1931
|
+
var sameFolder = /* @__PURE__ */ __name((a, b, platform) => {
|
|
1932
|
+
if ((platform === "win32" ? win32 : posix).relative(a, b) === "")
|
|
1933
|
+
return true;
|
|
1934
|
+
try {
|
|
1935
|
+
return realpathSync.native(a) === realpathSync.native(b);
|
|
1936
|
+
} catch {
|
|
1937
|
+
return false;
|
|
1938
|
+
}
|
|
1939
|
+
}, "sameFolder");
|
|
1940
|
+
var refuseOwnerHomeInTests = /* @__PURE__ */ __name((env = process.env, platform = process.platform, account = accountHome) => {
|
|
1941
|
+
const named = [env.HOME, env.USERPROFILE].filter((home) => Boolean(home));
|
|
1942
|
+
if ((named.length > 0 ? env.VITEST : env.VITEST ?? process.env.VITEST) === void 0)
|
|
1943
|
+
return;
|
|
1944
|
+
const owner = account();
|
|
1945
|
+
if (owner === void 0)
|
|
1946
|
+
return;
|
|
1947
|
+
for (const home of named.length > 0 ? named : [homedir()])
|
|
1948
|
+
if (sameFolder(owner, home, platform))
|
|
1949
|
+
throw new Error(`a test is running with the owner's real home (${home}); load @wirecat/cli-base/testing/setup (\`vitest --root\` outside the repository skips it) or give the test a HOME of its own`);
|
|
1950
|
+
}, "refuseOwnerHomeInTests");
|
|
1923
1951
|
var resolvePaths = /* @__PURE__ */ __name((options) => {
|
|
1924
|
-
const { appName, prefix, env = process.env } = options;
|
|
1952
|
+
const { appName, prefix, env = process.env, platform = process.platform } = options;
|
|
1953
|
+
refuseOwnerHomeInTests(env, platform);
|
|
1925
1954
|
const base = defaultPaths(options);
|
|
1926
1955
|
return {
|
|
1927
1956
|
config: env[overrideName(appName, prefix, "config")] ?? base.config,
|
|
@@ -1930,13 +1959,6 @@ var resolvePaths = /* @__PURE__ */ __name((options) => {
|
|
|
1930
1959
|
};
|
|
1931
1960
|
}, "resolvePaths");
|
|
1932
1961
|
var pathsAreOverridden = /* @__PURE__ */ __name(({ appName, prefix, env = process.env }) => PATH_KINDS.some((kind) => env[overrideName(appName, prefix, kind)] !== void 0), "pathsAreOverridden");
|
|
1933
|
-
var accountHome = /* @__PURE__ */ __name(() => {
|
|
1934
|
-
try {
|
|
1935
|
-
return userInfo().homedir;
|
|
1936
|
-
} catch {
|
|
1937
|
-
return void 0;
|
|
1938
|
-
}
|
|
1939
|
-
}, "accountHome");
|
|
1940
1962
|
var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = process.platform, home = accountHome() } = {}) => {
|
|
1941
1963
|
if (home === void 0)
|
|
1942
1964
|
return true;
|
|
@@ -1948,7 +1970,7 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
1948
1970
|
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
1949
1971
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
|
|
1950
1972
|
|
|
1951
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1973
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
1952
1974
|
var DEFAULT_RETRY = {
|
|
1953
1975
|
retries: 1,
|
|
1954
1976
|
baseDelayMs: 250,
|
|
@@ -1960,7 +1982,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
1960
1982
|
return Math.round(random() * ceiling);
|
|
1961
1983
|
}, "backoffMs");
|
|
1962
1984
|
|
|
1963
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1985
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
|
|
1964
1986
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
1965
1987
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
1966
1988
|
if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
|
|
@@ -2025,7 +2047,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
2025
2047
|
return project(value, fields);
|
|
2026
2048
|
}, "projectFields");
|
|
2027
2049
|
|
|
2028
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2050
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
2029
2051
|
var BATCH_LIMITS = Object.freeze({
|
|
2030
2052
|
requests: 32,
|
|
2031
2053
|
input_bytes: 262144,
|
|
@@ -2152,7 +2174,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2152
2174
|
};
|
|
2153
2175
|
}, "runBatch");
|
|
2154
2176
|
|
|
2155
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2177
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
2156
2178
|
import { randomBytes } from "node:crypto";
|
|
2157
2179
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2158
2180
|
import { dirname, join as join2 } from "node:path";
|
|
@@ -2196,7 +2218,7 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2196
2218
|
`, 384);
|
|
2197
2219
|
}, "saveConfigFile");
|
|
2198
2220
|
|
|
2199
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2221
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
|
|
2200
2222
|
import { fileURLToPath } from "node:url";
|
|
2201
2223
|
var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
2202
2224
|
var baseConstantsSchema = object({});
|
|
@@ -2251,11 +2273,11 @@ var loadConstants = /* @__PURE__ */ __name((layers, schema) => {
|
|
|
2251
2273
|
return deepFreeze(result.output);
|
|
2252
2274
|
}, "loadConstants");
|
|
2253
2275
|
|
|
2254
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2276
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2255
2277
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2256
2278
|
import { join as join3, resolve } from "node:path";
|
|
2257
2279
|
|
|
2258
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2280
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
2259
2281
|
import { createRequire } from "node:module";
|
|
2260
2282
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
2261
2283
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -2264,7 +2286,13 @@ var entryClass = /* @__PURE__ */ __name(() => {
|
|
|
2264
2286
|
cached ??= require2("@napi-rs/keyring").Entry;
|
|
2265
2287
|
return cached;
|
|
2266
2288
|
}, "entryClass");
|
|
2267
|
-
var
|
|
2289
|
+
var STAND_IN = /* @__PURE__ */ Symbol.for("@wirecat/cli-base/testing/keyring-stand-in");
|
|
2290
|
+
var entry = /* @__PURE__ */ __name((service, account) => {
|
|
2291
|
+
const Entry = entryClass();
|
|
2292
|
+
if (!(STAND_IN in Entry) && process.env.VITEST !== void 0)
|
|
2293
|
+
throw new Error("a test reached the real OS keyring without the test setup; pass memoryKeyring()");
|
|
2294
|
+
return new Entry(service, account, ENTRY_OPTIONS);
|
|
2295
|
+
}, "entry");
|
|
2268
2296
|
var systemKeyring = {
|
|
2269
2297
|
// Returns null for an absent entry rather than throwing — measured against @napi-rs/keyring
|
|
2270
2298
|
// on 2026-09-13, and the difference matters: a throw here means the keychain is unusable.
|
|
@@ -2275,7 +2303,7 @@ var systemKeyring = {
|
|
|
2275
2303
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
2276
2304
|
};
|
|
2277
2305
|
|
|
2278
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2306
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2279
2307
|
var keyringService = /* @__PURE__ */ __name((service, _configDir, _isolated) => service, "keyringService");
|
|
2280
2308
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2281
2309
|
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
@@ -2411,7 +2439,7 @@ var Credentials = class {
|
|
|
2411
2439
|
}
|
|
2412
2440
|
};
|
|
2413
2441
|
|
|
2414
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2442
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
2415
2443
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2416
2444
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2417
2445
|
if (signal?.aborted) {
|
|
@@ -2425,10 +2453,10 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2425
2453
|
}, { once: true });
|
|
2426
2454
|
}), "realSleep");
|
|
2427
2455
|
|
|
2428
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2456
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2429
2457
|
import { appendFileSync } from "node:fs";
|
|
2430
2458
|
|
|
2431
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2459
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
|
|
2432
2460
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
2433
2461
|
var logRecordSchema = strictObject({
|
|
2434
2462
|
time: isoTime,
|
|
@@ -2506,7 +2534,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
|
|
|
2506
2534
|
return traceId;
|
|
2507
2535
|
}, "traceIdOf");
|
|
2508
2536
|
|
|
2509
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2537
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2510
2538
|
var REDACTED_FIELDS = [
|
|
2511
2539
|
"authorization",
|
|
2512
2540
|
"Authorization",
|
|
@@ -2600,7 +2628,7 @@ var silent = {
|
|
|
2600
2628
|
}, "error")
|
|
2601
2629
|
};
|
|
2602
2630
|
|
|
2603
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2631
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
2604
2632
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2605
2633
|
import { styleText } from "node:util";
|
|
2606
2634
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2675,7 +2703,7 @@ var BORDERLESS = {
|
|
|
2675
2703
|
middle: ""
|
|
2676
2704
|
};
|
|
2677
2705
|
|
|
2678
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2706
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
2679
2707
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
2680
2708
|
if (signal?.aborted)
|
|
2681
2709
|
return Promise.reject(signal.reason);
|
|
@@ -2703,7 +2731,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
2703
2731
|
});
|
|
2704
2732
|
}, "waitForDrain");
|
|
2705
2733
|
|
|
2706
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2734
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
2707
2735
|
var processStreams = {
|
|
2708
2736
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2709
2737
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -2732,7 +2760,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
2732
2760
|
};
|
|
2733
2761
|
}, "captureStreams");
|
|
2734
2762
|
|
|
2735
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2763
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2736
2764
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2737
2765
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2738
2766
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -2782,6 +2810,7 @@ export {
|
|
|
2782
2810
|
baseConstantsSchema,
|
|
2783
2811
|
loadConstants,
|
|
2784
2812
|
systemKeyring,
|
|
2813
|
+
refuseOwnerHomeInTests,
|
|
2785
2814
|
resolvePaths,
|
|
2786
2815
|
pathsAreOverridden,
|
|
2787
2816
|
isMovedRun,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__name
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.653.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_65220cf269874adf69135700bd89254b/node_modules/@wirecat/cli-core/dist/store/normalize.js
|
|
8
|
+
var NORMALIZER_VERSION = 1;
|
|
9
|
+
var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
|
|
10
|
+
var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
NORMALIZER_VERSION,
|
|
14
|
+
fold,
|
|
15
|
+
normalize
|
|
16
|
+
};
|