@wirecat/mail-cli 0.31.0 → 0.33.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 +24 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-XL62TNUO.js → all-profiles-W3CGXEEJ.js} +10 -10
- package/dist/bundle/{anthropic-3MSWVYCE.js → anthropic-UMDO5AKP.js} +5 -5
- package/dist/bundle/{app-server-RRNR5XFA.js → app-server-4SICQ5RP.js} +50 -50
- package/dist/bundle/{bun-E3F3PEQQ.js → bun-QVVCH4MJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-UOFN77LO.js → bun-sqlite-CHD4AIUK.js} +6 -6
- package/dist/bundle/{chunk-JYGFEMTR.js → chunk-2BFXHCZW.js} +2 -2
- package/dist/bundle/{chunk-NEJU74O4.js → chunk-2L6D54BR.js} +8 -8
- package/dist/bundle/{chunk-BS6WYCNZ.js → chunk-2P44S7XK.js} +27 -30
- package/dist/bundle/{chunk-TUXNILKR.js → chunk-2X344EUT.js} +8 -8
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-35AH33VJ.js} +1 -1
- package/dist/bundle/{chunk-UFMR2TB3.js → chunk-47YNANPZ.js} +2 -2
- package/dist/bundle/{chunk-7C6FGWDH.js → chunk-6IS4BEN4.js} +4 -4
- package/dist/bundle/{chunk-ITU6K7LU.js → chunk-6VCQ4CTK.js} +1 -1
- package/dist/bundle/{chunk-NYQPKZWL.js → chunk-74BYHR44.js} +590 -604
- package/dist/bundle/{chunk-T72DWT37.js → chunk-7OYZU5SP.js} +4 -4
- package/dist/bundle/{chunk-4BW5JACS.js → chunk-AEKWEYIG.js} +17 -17
- package/dist/bundle/{chunk-3CJ4C6BB.js → chunk-BF73DBAA.js} +13 -13
- package/dist/bundle/{chunk-7KCBPAQS.js → chunk-BI5P7JWM.js} +2 -2
- package/dist/bundle/{chunk-7MEVD5PI.js → chunk-BRRHYXUP.js} +19 -19
- package/dist/bundle/{chunk-GZLCZU5B.js → chunk-BZY5W35X.js} +7 -7
- package/dist/bundle/{chunk-6UOUDIXL.js → chunk-CHNNKHLL.js} +7468 -7317
- package/dist/bundle/{chunk-QVGCHTTU.js → chunk-CIG4UVP6.js} +12 -12
- package/dist/bundle/{chunk-D6D6JLXG.js → chunk-CZ6ZXDSO.js} +46 -37
- package/dist/bundle/{chunk-7E7YXQ52.js → chunk-DI74RP6R.js} +18 -18
- package/dist/bundle/{chunk-IX3GUNGV.js → chunk-EW3JFV7J.js} +4 -4
- package/dist/bundle/{chunk-GWKGZOSO.js → chunk-FSMCXQH2.js} +2 -2
- package/dist/bundle/{chunk-DDCDOBZS.js → chunk-GZYICXO4.js} +1 -1
- package/dist/bundle/{chunk-BKRIIZPV.js → chunk-H46MANPR.js} +3 -3
- package/dist/bundle/{chunk-OP5ZLH53.js → chunk-HFFHL7SV.js} +55 -55
- package/dist/bundle/{chunk-DCR3IWC7.js → chunk-I3UAD4EI.js} +33 -32
- package/dist/bundle/{chunk-EMVLCION.js → chunk-IBIFX2LK.js} +2 -2
- package/dist/bundle/{chunk-BNP7WLDQ.js → chunk-IPSLQX64.js} +2 -2
- package/dist/bundle/{chunk-DPDS6IZJ.js → chunk-JADBHKBP.js} +1 -1
- package/dist/bundle/{chunk-DWBY7DMF.js → chunk-JCQ47WR4.js} +5 -5
- package/dist/bundle/{chunk-LGDJDD5J.js → chunk-JUYUWMTG.js} +4 -4
- package/dist/bundle/{chunk-OXHQNEXU.js → chunk-KLLT572M.js} +3 -3
- package/dist/bundle/{chunk-5YRR52NH.js → chunk-L3MKFI3Y.js} +2 -2
- package/dist/bundle/{chunk-PZL7DHVJ.js → chunk-LACMDMDI.js} +9 -9
- package/dist/bundle/{chunk-DZSS2IUK.js → chunk-LB5FTCPZ.js} +3 -4
- package/dist/bundle/{chunk-JLIVJSCF.js → chunk-LFBD6RTX.js} +2 -2
- package/dist/bundle/{chunk-QSXJ2BVQ.js → chunk-LKGJMM6W.js} +6 -6
- package/dist/bundle/{chunk-NV3WPD3B.js → chunk-LXAX6AZU.js} +6 -6
- package/dist/bundle/{chunk-H2QTUZ3C.js → chunk-LXUHYDNE.js} +1 -1
- package/dist/bundle/{chunk-I3BQ2QIY.js → chunk-MJ7DUSHT.js} +14 -14
- package/dist/bundle/{chunk-4ME2NHNJ.js → chunk-MNJ3BMPZ.js} +3 -3
- package/dist/bundle/{chunk-THZHNCJP.js → chunk-MT7T5N2N.js} +4 -4
- package/dist/bundle/{chunk-KPFB2VUY.js → chunk-OFMYFFEF.js} +461 -402
- package/dist/bundle/{chunk-WZGFC7D5.js → chunk-OOYIPK4F.js} +1 -1
- package/dist/bundle/{chunk-NUN7DBR4.js → chunk-OWAJN74H.js} +17 -18
- package/dist/bundle/{chunk-S2QO6KUI.js → chunk-QN423PC6.js} +3 -3
- package/dist/bundle/{chunk-EV5SR3OC.js → chunk-QO7BK4WD.js} +8 -8
- package/dist/bundle/{chunk-GXBNTKJW.js → chunk-RENCSP47.js} +3 -3
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-RXUVXAMM.js} +1 -1
- package/dist/bundle/{chunk-HZCINHHS.js → chunk-S6CHYNFE.js} +2 -2
- package/dist/bundle/{chunk-E3IOR37T.js → chunk-SDWYOYGN.js} +4 -4
- package/dist/bundle/{chunk-MS5XYEYW.js → chunk-SW7YGW3T.js} +28 -7
- package/dist/bundle/{chunk-BXMLIKUM.js → chunk-SYUIAMVA.js} +181 -156
- package/dist/bundle/{chunk-HZL3X4XR.js → chunk-TBZLGT7R.js} +20 -17
- package/dist/bundle/{chunk-FRXDSR45.js → chunk-TK77DCE5.js} +1 -1
- package/dist/bundle/{chunk-P6CYVOL6.js → chunk-UAV74EY4.js} +1 -1
- package/dist/bundle/{chunk-SQA5JI7Q.js → chunk-UG2QDGAH.js} +1 -1
- package/dist/bundle/{chunk-ECZSYLSL.js → chunk-UWF3SSRL.js} +25 -8
- package/dist/bundle/{chunk-QANXOKYQ.js → chunk-UX76GMQM.js} +6 -6
- package/dist/bundle/{chunk-I5Y6Y7Q5.js → chunk-UYZDH5LK.js} +1 -1
- package/dist/bundle/{chunk-3V6J7VPF.js → chunk-XN5KH24X.js} +5 -5
- package/dist/bundle/{chunk-FYP2M6IT.js → chunk-XQXYAOBV.js} +30 -29
- package/dist/bundle/{chunk-PIXFZZUZ.js → chunk-Y2P2LC5R.js} +21 -11
- package/dist/bundle/command-contract-NRNQAFFE.js +36 -0
- package/dist/bundle/{command-server-entry-A3FCP24M.js → command-server-entry-G2ZHCN5J.js} +25 -25
- package/dist/bundle/{decode-FI2ISRNZ.js → decode-U6V6D6XH.js} +5 -5
- package/dist/bundle/{dispatch-DSVN7MNG.js → dispatch-RHIK22OA.js} +8 -8
- package/dist/bundle/{dist-NLOOZJ64.js → dist-X5G2IMYG.js} +15 -15
- package/dist/bundle/{echarts-PMAJUJFE.js → echarts-UZJ6AREV.js} +2 -2
- package/dist/bundle/{embed-OIMT6SAX.js → embed-FEXLUH3T.js} +6 -6
- package/dist/bundle/{embedder-Q5IF5WIM.js → embedder-NHQARKFJ.js} +9 -9
- package/dist/bundle/{failure-COTPFUP4.js → failure-7DIA4OET.js} +2 -2
- package/dist/bundle/{first-run-4L53QWOT.js → first-run-PS5NR2QG.js} +12 -12
- package/dist/bundle/first-screen-C2WTLOG2.js +34 -0
- package/dist/bundle/{instructions-ZJGGGXOA.js → instructions-SDDUBGH4.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-TDKGDB4V.js → mcp-GN4FTJX5.js} +2 -2
- package/dist/bundle/{node-DCSOHRD6.js → node-ELCNUOCE.js} +2 -2
- package/dist/bundle/{node-sqlite-7F77K5JA.js → node-sqlite-2E5MKZMH.js} +7 -7
- package/dist/bundle/{oauth-LVPMEN6M.js → oauth-JGPEIY3M.js} +7 -7
- package/dist/bundle/{open-XM5LWEN6.js → open-6DEMCZAB.js} +5 -5
- package/dist/bundle/{openai-H2LCGK22.js → openai-IVKDU5AH.js} +15 -15
- package/dist/bundle/{process-MFC5VSPT.js → process-67DAKAAQ.js} +1 -1
- package/dist/bundle/{program-ZQ43ZYKZ.js → program-ESJDQMAJ.js} +498 -481
- package/dist/bundle/{prompt-3LZAZNQ4.js → prompt-ZBWOT5KG.js} +5 -5
- package/dist/bundle/{recognize-GYQMHFY2.js → recognize-UUBH2DOH.js} +4 -4
- package/dist/bundle/{remote-P2MD5G64.js → remote-UYTNWNOB.js} +9 -9
- package/dist/bundle/{rerank-A5X6THV6.js → rerank-X2633CQN.js} +7 -7
- package/dist/bundle/{serve-IEC3EUKS.js → serve-CP7Q4OVW.js} +9 -9
- package/dist/bundle/{server-3REPXFNI.js → server-I7MXRSAG.js} +42 -42
- package/dist/bundle/server-QGTMJ7SF.js +67 -0
- package/dist/bundle/{sqlite-runtime-AOLQGC5J.js → sqlite-runtime-BX55LI5G.js} +6 -6
- package/dist/bundle/{state-D3P5IXXA.js → state-LLNJQXFH.js} +6 -6
- package/dist/bundle/{store-MZCQXBVW.js → store-K4KU5N75.js} +19 -19
- package/dist/bundle/{store-DIN6OY3K.js → store-N27XI3VV.js} +17 -17
- package/dist/bundle/store-maintenance-command-VPAFQCNA.js +58 -0
- package/dist/commands/messages.js +1 -1
- package/dist/commands/messages.js.map +1 -1
- package/dist/mail/cleanup.d.ts.map +1 -1
- package/dist/mail/cleanup.js +4 -3
- package/dist/mail/cleanup.js.map +1 -1
- package/dist/mail/rules/apply.js +1 -1
- package/dist/mail/rules/apply.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-YRNKDQDL.js +0 -36
- package/dist/bundle/first-screen-ZPQLAAIS.js +0 -34
- package/dist/bundle/server-E2QTFURI.js +0 -67
- package/dist/bundle/store-maintenance-command-UMVFI6M6.js +0 -58
- /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-BDCC2J2Z.js} +0 -0
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
servicesFor,
|
|
17
17
|
throughWrapper,
|
|
18
18
|
withFileLockAsync
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-74BYHR44.js";
|
|
20
20
|
import {
|
|
21
21
|
servingProfiles
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-RENCSP47.js";
|
|
23
23
|
import {
|
|
24
24
|
asFirstWord,
|
|
25
25
|
baseContext,
|
|
@@ -33,45 +33,46 @@ import {
|
|
|
33
33
|
recalledAccount,
|
|
34
34
|
rememberAccount,
|
|
35
35
|
rootOf2 as rootOf
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-SYUIAMVA.js";
|
|
37
37
|
import {
|
|
38
38
|
AUTHORITY_KEY,
|
|
39
39
|
CEILING_KEY,
|
|
40
40
|
DEFAULT_PERMISSIONS,
|
|
41
41
|
KEYED_UNDER_HOUSEKEEPING,
|
|
42
42
|
WRITE_KEYS,
|
|
43
|
+
fetchesUnder,
|
|
43
44
|
keyForCommand,
|
|
44
45
|
levelFor,
|
|
45
46
|
readKeysForCommand,
|
|
46
47
|
skipFlagFor
|
|
47
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-SW7YGW3T.js";
|
|
48
49
|
import {
|
|
49
50
|
providerErrorKey
|
|
50
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-2X344EUT.js";
|
|
51
52
|
import {
|
|
52
53
|
openStore
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-CHNNKHLL.js";
|
|
54
55
|
import {
|
|
55
56
|
chatReferenceOf,
|
|
56
57
|
ensureAccount,
|
|
57
58
|
foldName,
|
|
58
59
|
isId,
|
|
59
60
|
pickPerson
|
|
60
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-DI74RP6R.js";
|
|
61
62
|
import {
|
|
62
63
|
isCliFailure
|
|
63
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-L3MKFI3Y.js";
|
|
64
65
|
import {
|
|
65
66
|
resolvePaths
|
|
66
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-BRRHYXUP.js";
|
|
67
68
|
import {
|
|
68
69
|
CliError
|
|
69
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-BI5P7JWM.js";
|
|
70
71
|
import {
|
|
71
72
|
__name
|
|
72
73
|
} from "./chunk-ZVVMGPBJ.js";
|
|
73
74
|
|
|
74
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
75
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
75
76
|
import { openSync } from "node:fs";
|
|
76
77
|
import { createInterface } from "node:readline";
|
|
77
78
|
import { ReadStream } from "node:tty";
|
|
@@ -126,7 +127,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
126
127
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
127
128
|
}, "terminalAsker");
|
|
128
129
|
|
|
129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
130
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
130
131
|
import { readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
131
132
|
import { join } from "node:path";
|
|
132
133
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -221,7 +222,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
|
221
222
|
await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
|
|
222
223
|
}, "waitForTurn");
|
|
223
224
|
|
|
224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
225
226
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
226
227
|
"help",
|
|
227
228
|
"guide",
|
|
@@ -301,7 +302,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
301
302
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
302
303
|
}, "refuseUnknownPermissionKeys");
|
|
303
304
|
|
|
304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
305
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
305
306
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
306
307
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
307
308
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -398,7 +399,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
398
399
|
});
|
|
399
400
|
}, "flooded");
|
|
400
401
|
|
|
401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
402
403
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
403
404
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
404
405
|
const write = currentOperation();
|
|
@@ -497,7 +498,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
497
498
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
498
499
|
}, "byPart");
|
|
499
500
|
|
|
500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
501
502
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
502
503
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
|
|
503
504
|
let warned = false;
|
|
@@ -1073,7 +1074,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1073
1074
|
}
|
|
1074
1075
|
}, "keep");
|
|
1075
1076
|
|
|
1076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1077
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1077
1078
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1078
1079
|
let opened;
|
|
1079
1080
|
return {
|
|
@@ -1351,6 +1352,8 @@ var refuseLocalWrite = /* @__PURE__ */ __name((context, command, permission) =>
|
|
|
1351
1352
|
const { level, key } = levelFor(settings.permissions, permission);
|
|
1352
1353
|
if (level === "allow" || level === "ask" && context.agent)
|
|
1353
1354
|
return;
|
|
1355
|
+
if (fetchesUnder(level, permission))
|
|
1356
|
+
return;
|
|
1354
1357
|
if (key === CEILING_KEY)
|
|
1355
1358
|
throw ceilingRefusal(permission, command);
|
|
1356
1359
|
throw new CliError(level === "ask" ? "confirmation_required" : "permission_error", `profile ${settings.profile} does not let ${permission} write (permissions.${key} is ${level}, from the ${settings.permissionSources[key ?? ""] ?? "default"}); to allow it: ${command} ${settings.profile} config set permissions.${permission} allow`, { permission });
|
|
@@ -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.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/normalize.js
|
|
8
8
|
var NORMALIZER_VERSION = 1;
|
|
9
9
|
var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
|
|
10
10
|
var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
|
|
@@ -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.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
|
|
8
8
|
var fields = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
var readsStdin = /* @__PURE__ */ __name((command, field) => {
|
|
10
10
|
fields.set(command, field);
|
|
@@ -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.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
errorCodes,
|
|
5
5
|
isCliError,
|
|
6
6
|
visibleControls
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BI5P7JWM.js";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "./chunk-ZVVMGPBJ.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
12
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
|
|
13
13
|
var EXIT_CODES = {
|
|
14
14
|
validation_error: 2,
|
|
15
15
|
configuration_error: 3,
|
|
@@ -565,6 +565,22 @@ function boolean(message$1) {
|
|
|
565
565
|
}
|
|
566
566
|
__name(boolean, "boolean");
|
|
567
567
|
// @__NO_SIDE_EFFECTS__
|
|
568
|
+
function exactOptional(wrapped, default_) {
|
|
569
|
+
return _standardSchema({
|
|
570
|
+
kind: "schema",
|
|
571
|
+
type: "exact_optional",
|
|
572
|
+
reference: exactOptional,
|
|
573
|
+
expects: wrapped.expects,
|
|
574
|
+
async: false,
|
|
575
|
+
wrapped,
|
|
576
|
+
default: default_,
|
|
577
|
+
"~run"(dataset, config$1) {
|
|
578
|
+
return this.wrapped["~run"](dataset, config$1);
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
}
|
|
582
|
+
__name(exactOptional, "exactOptional");
|
|
583
|
+
// @__NO_SIDE_EFFECTS__
|
|
568
584
|
function lazy(getter) {
|
|
569
585
|
return _standardSchema({
|
|
570
586
|
kind: "schema",
|
|
@@ -1357,7 +1373,7 @@ function unwrap(schema) {
|
|
|
1357
1373
|
}
|
|
1358
1374
|
__name(unwrap, "unwrap");
|
|
1359
1375
|
|
|
1360
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1376
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
|
|
1361
1377
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
1362
1378
|
var effectsSchema = strictObject({
|
|
1363
1379
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -1994,7 +2010,7 @@ function toStandardJsonSchema(schema) {
|
|
|
1994
2010
|
}
|
|
1995
2011
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
1996
2012
|
|
|
1997
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2013
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
|
|
1998
2014
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
1999
2015
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
2000
2016
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -2036,7 +2052,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
2036
2052
|
return String(value);
|
|
2037
2053
|
}), "fill");
|
|
2038
2054
|
|
|
2039
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2055
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
|
|
2040
2056
|
var MAX_NEXT_STEPS = 2;
|
|
2041
2057
|
var COMPACT_FLAG = "--compact";
|
|
2042
2058
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
@@ -2163,7 +2179,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
2163
2179
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
2164
2180
|
].join("\n"), "jsonlOf");
|
|
2165
2181
|
|
|
2166
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2182
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
|
|
2167
2183
|
var CRASH_CODE = "internal_error";
|
|
2168
2184
|
var CRASH_REASON = "command.crashed";
|
|
2169
2185
|
var errorObjectSchema = strictObject({
|
|
@@ -2256,7 +2272,7 @@ var BASE_REASONS = defineReasons([
|
|
|
2256
2272
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
2257
2273
|
]);
|
|
2258
2274
|
|
|
2259
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2275
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
|
|
2260
2276
|
var SAME_COMMAND = "*";
|
|
2261
2277
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
2262
2278
|
var stepSchema = union([
|
|
@@ -2335,7 +2351,7 @@ var STEPS = defineSteps([
|
|
|
2335
2351
|
}
|
|
2336
2352
|
]);
|
|
2337
2353
|
|
|
2338
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2354
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
2339
2355
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
2340
2356
|
if (isCliError(failure))
|
|
2341
2357
|
return failure;
|
|
@@ -2507,6 +2523,7 @@ export {
|
|
|
2507
2523
|
forward,
|
|
2508
2524
|
array,
|
|
2509
2525
|
boolean,
|
|
2526
|
+
exactOptional,
|
|
2510
2527
|
lazy,
|
|
2511
2528
|
literal,
|
|
2512
2529
|
looseObject,
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JUYUWMTG.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BI5P7JWM.js";
|
|
15
15
|
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.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var release = /* @__PURE__ */ __name((name, sha256, bytes) => ({
|
|
684
684
|
name,
|
|
@@ -858,7 +858,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
858
858
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
859
859
|
}, "openSession");
|
|
860
860
|
|
|
861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
862
862
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
863
863
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
864
864
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -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.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/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;
|
|
@@ -6,21 +6,21 @@ import {
|
|
|
6
6
|
answerSchema,
|
|
7
7
|
describeOptions,
|
|
8
8
|
metaOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SYUIAMVA.js";
|
|
10
10
|
import {
|
|
11
11
|
keyForCommand
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SW7YGW3T.js";
|
|
13
13
|
import {
|
|
14
14
|
jsonSchemaOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UWF3SSRL.js";
|
|
16
16
|
import {
|
|
17
17
|
CliError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BI5P7JWM.js";
|
|
19
19
|
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.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/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);
|
|
@@ -13,26 +13,27 @@ import {
|
|
|
13
13
|
kindsIn,
|
|
14
14
|
providerNamed,
|
|
15
15
|
providers
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OFMYFFEF.js";
|
|
17
17
|
import {
|
|
18
18
|
isCliFailure,
|
|
19
19
|
isStoreDamage
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-L3MKFI3Y.js";
|
|
21
21
|
import {
|
|
22
22
|
refuseOwnerStoreInTests
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IPSLQX64.js";
|
|
24
24
|
import {
|
|
25
25
|
createRecordLog,
|
|
26
26
|
resolvePaths,
|
|
27
27
|
traceIdOf,
|
|
28
28
|
writeSecurely
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-BRRHYXUP.js";
|
|
30
30
|
import {
|
|
31
31
|
array,
|
|
32
32
|
boolean,
|
|
33
|
+
description,
|
|
33
34
|
integer,
|
|
34
35
|
isoTime,
|
|
35
|
-
|
|
36
|
+
maxLength,
|
|
36
37
|
minLength,
|
|
37
38
|
minValue,
|
|
38
39
|
nullable,
|
|
@@ -45,25 +46,25 @@ import {
|
|
|
45
46
|
strictObject,
|
|
46
47
|
string,
|
|
47
48
|
unknown
|
|
48
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-UWF3SSRL.js";
|
|
49
50
|
import {
|
|
50
51
|
CliError
|
|
51
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-BI5P7JWM.js";
|
|
52
53
|
import {
|
|
53
54
|
__name
|
|
54
55
|
} from "./chunk-ZVVMGPBJ.js";
|
|
55
56
|
|
|
56
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
57
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
57
58
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
58
59
|
import { randomBytes } from "node:crypto";
|
|
59
60
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
61
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
61
62
|
import { randomUUID } from "node:crypto";
|
|
62
63
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
63
64
|
import { userInfo } from "node:os";
|
|
64
65
|
import { join, sep } from "node:path";
|
|
65
66
|
|
|
66
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
67
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
67
68
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
68
69
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
69
70
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -76,7 +77,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
76
77
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
77
78
|
}), "snakeLogger");
|
|
78
79
|
|
|
79
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
80
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
80
81
|
var diagnostic = {
|
|
81
82
|
event: true,
|
|
82
83
|
operation: true,
|
|
@@ -150,7 +151,7 @@ var LOG_ATTRIBUTES = [
|
|
|
150
151
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
151
152
|
].sort();
|
|
152
153
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
154
155
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
155
156
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
156
157
|
var KEEP_STORE_RUNS_FOR_DAYS = 3;
|
|
@@ -517,7 +518,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
517
518
|
};
|
|
518
519
|
}, "metadataOf");
|
|
519
520
|
|
|
520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
521
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
521
522
|
var scopes = new AsyncLocalStorage();
|
|
522
523
|
var processScope;
|
|
523
524
|
var ownProcesses = new AsyncLocalStorage();
|
|
@@ -568,7 +569,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
568
569
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
569
570
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
570
571
|
|
|
571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
572
573
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
573
574
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
574
575
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -583,7 +584,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
583
584
|
}
|
|
584
585
|
__name(closeTask, "closeTask");
|
|
585
586
|
|
|
586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
587
588
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
588
589
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
589
590
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -612,7 +613,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
612
613
|
}, "priorityOf");
|
|
613
614
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
614
615
|
|
|
615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
616
617
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
617
618
|
async function find(id2) {
|
|
618
619
|
const task = await store.get(id2);
|
|
@@ -672,24 +673,24 @@ function median(values) {
|
|
|
672
673
|
}
|
|
673
674
|
__name(median, "median");
|
|
674
675
|
|
|
675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
676
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
676
677
|
function matches(task, filter) {
|
|
677
678
|
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
679
|
}
|
|
679
680
|
__name(matches, "matches");
|
|
680
681
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
682
683
|
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
683
684
|
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
684
685
|
var ERASED_TEXT = "[source erased]";
|
|
685
686
|
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
686
687
|
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
687
688
|
|
|
688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
689
690
|
var text = string();
|
|
690
691
|
var id = pipe(string(), minLength(1));
|
|
691
692
|
var time = isoTime;
|
|
692
|
-
var
|
|
693
|
+
var typedTime = pipe(string(), minLength(1), maxLength(64), description("an ISO 8601 date or time, in the computer's zone without one; or 30m, 2h, 7d ago"));
|
|
693
694
|
var count = pipe(number(), integer(), minValue(0));
|
|
694
695
|
var untrusted = optional(array(text));
|
|
695
696
|
var providerMetadata = optional(record(string(), unknown()));
|
|
@@ -710,7 +711,7 @@ var author = strictObject({
|
|
|
710
711
|
name: nullable(text)
|
|
711
712
|
});
|
|
712
713
|
|
|
713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
714
715
|
var organization = strictObject({
|
|
715
716
|
id,
|
|
716
717
|
ref: reference,
|
|
@@ -740,7 +741,7 @@ var reminder = strictObject({
|
|
|
740
741
|
receipt: nullable(text)
|
|
741
742
|
});
|
|
742
743
|
|
|
743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
744
745
|
import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
745
746
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
746
747
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -861,7 +862,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
861
862
|
return { previous, cleared };
|
|
862
863
|
}, "recordDeepCheck");
|
|
863
864
|
|
|
864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
865
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
865
866
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
866
867
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
867
868
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -869,7 +870,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
869
870
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
870
871
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
871
872
|
|
|
872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
873
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
873
874
|
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
874
875
|
var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
875
876
|
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;
|
|
@@ -879,7 +880,7 @@ var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
|
879
880
|
};
|
|
880
881
|
}, "sourceOf");
|
|
881
882
|
|
|
882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
883
884
|
var LINK_KINDS = [
|
|
884
885
|
"links-to",
|
|
885
886
|
"blocked-by",
|
|
@@ -903,7 +904,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
|
|
|
903
904
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
904
905
|
var COUNTERPART_ROLE = "counterpart";
|
|
905
906
|
|
|
906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
907
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
907
908
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
908
909
|
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");
|
|
909
910
|
var fail = /* @__PURE__ */ __name((message) => {
|
|
@@ -926,7 +927,7 @@ var sourceOf2 = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
926
927
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
927
928
|
}, "sourceOf");
|
|
928
929
|
|
|
929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
930
931
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
931
932
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
932
933
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -1136,7 +1137,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) =>
|
|
|
1136
1137
|
return { accounts: [...chosen.values()], skipped };
|
|
1137
1138
|
}, "fitting");
|
|
1138
1139
|
|
|
1139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
1140
1141
|
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
1141
1142
|
|
|
1142
1143
|
export {
|
|
@@ -1190,7 +1191,7 @@ export {
|
|
|
1190
1191
|
text,
|
|
1191
1192
|
id,
|
|
1192
1193
|
time,
|
|
1193
|
-
|
|
1194
|
+
typedTime,
|
|
1194
1195
|
count,
|
|
1195
1196
|
untrusted,
|
|
1196
1197
|
providerMetadata,
|