@wirecat/cli-memo 0.131.32 → 0.131.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-PFCNICOF.js → all-profiles-GPFKMOBB.js} +5 -5
- package/dist/bundle/{anthropic-QLGMYWVZ.js → anthropic-ASHT7U76.js} +3 -3
- package/dist/bundle/{app-server-QD67I7V2.js → app-server-D3IL4M6V.js} +35 -35
- package/dist/bundle/auto-BL5FF576.js +86 -0
- package/dist/bundle/{bun-JRTUGKIJ.js → bun-EIOFQKTA.js} +2 -2
- package/dist/bundle/{bun-sqlite-HCZP2CNO.js → bun-sqlite-YIX2BVSZ.js} +2 -2
- package/dist/bundle/{chunk-CWHGN6HC.js → chunk-26I6JRFH.js} +4 -4
- package/dist/bundle/{chunk-REUXOW2O.js → chunk-2RDJLWOY.js} +2 -2
- package/dist/bundle/{chunk-TFEXCHMC.js → chunk-3W4HD6ZQ.js} +5 -5
- package/dist/bundle/{chunk-QUQOKNAX.js → chunk-47KEZ3AX.js} +12 -12
- package/dist/bundle/{chunk-X3GQJTTF.js → chunk-4VJJEIVC.js} +5 -5
- package/dist/bundle/{chunk-42I4XE3O.js → chunk-5HVQTBDA.js} +20 -20
- package/dist/bundle/{chunk-GNY5YLNY.js → chunk-5OCV4UG5.js} +2 -2
- package/dist/bundle/{chunk-FGJKBQCP.js → chunk-6PTJTITL.js} +3 -3
- package/dist/bundle/{chunk-GKZ65EOY.js → chunk-7PQZBIBH.js} +54 -54
- package/dist/bundle/{chunk-K3TUIQZ4.js → chunk-7YECAMPV.js} +43 -43
- package/dist/bundle/{chunk-L34KLQIU.js → chunk-AQQSOZ57.js} +9 -9
- package/dist/bundle/{chunk-7AMJFTJM.js → chunk-BN5H2M75.js} +1 -1
- package/dist/bundle/{chunk-5OYZNBE7.js → chunk-BRG5MJLL.js} +7 -1
- package/dist/bundle/{chunk-WP3J2FNH.js → chunk-BWVE7V4A.js} +10 -10
- package/dist/bundle/{chunk-7MKROF5R.js → chunk-C7AXGHGM.js} +1 -1
- package/dist/bundle/{chunk-FE2SLKUO.js → chunk-CL6MHRXX.js} +2 -2
- package/dist/bundle/{chunk-QWA3MTHH.js → chunk-D22HTXOR.js} +7 -7
- package/dist/bundle/{chunk-USMKR34T.js → chunk-D5LDALYF.js} +11 -11
- package/dist/bundle/{chunk-WGX6AEUP.js → chunk-DOXKMSML.js} +3 -3
- package/dist/bundle/{chunk-5JTW3LNF.js → chunk-DU6LCIHP.js} +1 -1
- package/dist/bundle/{chunk-NDJUEFV2.js → chunk-E7NEGYRF.js} +1 -1
- package/dist/bundle/{chunk-PG4KORTB.js → chunk-EGB2R53R.js} +1 -1
- package/dist/bundle/{chunk-S3FQQRUM.js → chunk-EQR2QVP3.js} +4 -4
- package/dist/bundle/{chunk-ZHDOELM7.js → chunk-EVD3X6HS.js} +7 -7
- package/dist/bundle/{chunk-X6HXGL5E.js → chunk-G7TQ5W5Z.js} +7 -7
- package/dist/bundle/{chunk-K6ZWFP2X.js → chunk-GWMA7EU5.js} +1 -1
- package/dist/bundle/{chunk-2N74ZVI6.js → chunk-GY27B6XK.js} +1 -1
- package/dist/bundle/{chunk-W4GV42D5.js → chunk-H7N5JMQN.js} +2 -2
- package/dist/bundle/{chunk-3G44GDIZ.js → chunk-I4SJXEDS.js} +5 -5
- package/dist/bundle/{chunk-MG2JNBUV.js → chunk-IAFUPD2G.js} +6 -5
- package/dist/bundle/{chunk-XUMYVRBZ.js → chunk-JD4EEKNA.js} +1 -1
- package/dist/bundle/{chunk-5BVGJBZX.js → chunk-KG7APWFM.js} +1 -1
- package/dist/bundle/{chunk-URPBRYVA.js → chunk-L43BXXBS.js} +4 -4
- package/dist/bundle/{chunk-H24AL555.js → chunk-LC5SAWVM.js} +27 -27
- package/dist/bundle/{chunk-ARVXP2UJ.js → chunk-MQ7IHK4Z.js} +257 -280
- package/dist/bundle/{chunk-NG26I3JV.js → chunk-NDEA2YAQ.js} +1 -1
- package/dist/bundle/{chunk-7JWW4YEK.js → chunk-NECGI52P.js} +8 -8
- package/dist/bundle/{chunk-RRDXT63A.js → chunk-NPLZ67KU.js} +1 -1
- package/dist/bundle/{chunk-HGXTDMKN.js → chunk-ONEW2BND.js} +85 -32
- package/dist/bundle/{chunk-Q3ZB4JGL.js → chunk-RQVC4ETN.js} +2 -2
- package/dist/bundle/{chunk-HLJ6IUVF.js → chunk-RTPTCTH6.js} +2 -2
- package/dist/bundle/{chunk-4D6BG353.js → chunk-S62WXHPD.js} +6 -6
- package/dist/bundle/{chunk-2XBDA3XF.js → chunk-SMAODNHO.js} +1 -1
- package/dist/bundle/{chunk-CV5EXF7J.js → chunk-TVHCOWJD.js} +4 -4
- package/dist/bundle/{chunk-XWIRWBB5.js → chunk-UBUKFDMN.js} +1 -1
- package/dist/bundle/{chunk-Q2ZIIXA2.js → chunk-UW2FRDLZ.js} +2 -2
- package/dist/bundle/{chunk-CUT72KGN.js → chunk-VE2NDXFO.js} +3 -3
- package/dist/bundle/{chunk-UXA37BVT.js → chunk-WROCO6RJ.js} +4 -4
- package/dist/bundle/{chunk-A56GDMFH.js → chunk-XV4E2XGC.js} +3 -3
- package/dist/bundle/{chunk-AZGQ7ABE.js → chunk-XZ3XUN4R.js} +177 -179
- package/dist/bundle/{chunk-K3CJHSLS.js → chunk-Y3NJODLW.js} +1 -1
- package/dist/bundle/{chunk-RTFU72GD.js → chunk-Y3XTA24Z.js} +4 -4
- package/dist/bundle/{chunk-CGI5EIIA.js → chunk-YJMQBJWU.js} +20 -20
- package/dist/bundle/{chunk-JTSYAO5V.js → chunk-YZU5HNYY.js} +350 -280
- package/dist/bundle/{chunk-54DA525P.js → chunk-ZE5HUZJV.js} +14 -9
- package/dist/bundle/{chunk-RO4YPDGF.js → chunk-ZV2K5I2G.js} +1 -1
- package/dist/bundle/{chunk-63JF4E76.js → chunk-ZWBLSTFE.js} +446 -312
- package/dist/bundle/{command-contract-DFXPO5Q7.js → command-contract-X3I3J4AF.js} +11 -11
- package/dist/bundle/{decode-7NGILAKQ.js → decode-BF5RUGSR.js} +2 -2
- package/dist/bundle/{echarts-JERQI2HW.js → echarts-ADL7T3Q3.js} +2 -2
- package/dist/bundle/{embed-3AO7KZXC.js → embed-DOTUACTV.js} +3 -3
- package/dist/bundle/{embedder-WRQ7TDDB.js → embedder-TMR4UP7L.js} +6 -6
- package/dist/bundle/{entry-IBRPU7NO.js → entry-RPG5J5UQ.js} +4 -4
- package/dist/bundle/failure-4CTYFX6P.js +66 -0
- package/dist/bundle/{first-run-IJOREEQM.js → first-run-ONCIVD42.js} +5 -5
- package/dist/bundle/{first-screen-KYNY6ELY.js → first-screen-4LRYED7X.js} +12 -12
- package/dist/bundle/{instructions-BET2PLGV.js → instructions-QVBHRTPG.js} +1 -1
- package/dist/bundle/{mcp-NUBFFPGF.js → mcp-4AFVFHYE.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-NCSG7QX5.js → node-6OXRSWHH.js} +2 -2
- package/dist/bundle/{node-sqlite-QL4M5RIK.js → node-sqlite-TG4H4T3L.js} +3 -3
- package/dist/bundle/{oauth-BGMMED35.js → oauth-OXKNZOKZ.js} +4 -4
- package/dist/bundle/{open-YN3KJMMQ.js → open-WW3W42QS.js} +2 -2
- package/dist/bundle/{openai-CTZUSKUS.js → openai-MNHTZHBT.js} +7 -7
- package/dist/bundle/{process-DW237TK4.js → process-TCXURVHD.js} +1 -1
- package/dist/bundle/{program-RAUHPTRG.js → program-GYW7IHWQ.js} +98 -85
- package/dist/bundle/{prompt-EZCCUYCS.js → prompt-TGGJDYAS.js} +2 -2
- package/dist/bundle/{recognize-XP3LHQD6.js → recognize-WV4MK35T.js} +1 -1
- package/dist/bundle/{remote-RLR5ZKKT.js → remote-RQVV5MFO.js} +4 -4
- package/dist/bundle/{rerank-P7LE52AC.js → rerank-OJPVJGX5.js} +4 -4
- package/dist/bundle/{serve-UA7RQDNK.js → serve-KG7HPG5B.js} +6 -6
- package/dist/bundle/{server-XM4LNODP.js → server-ESYNVVQC.js} +50 -50
- package/dist/bundle/server-TQVOXRHP.js +48 -0
- package/dist/bundle/server-YKMBFXQ4.js +61 -0
- package/dist/bundle/{state-72Y55LBR.js → state-G7KN3S6X.js} +3 -3
- package/dist/bundle/{store-PED4JCBB.js → store-GI2FLGUI.js} +9 -9
- package/dist/bundle/store-maintenance-command-CQ3KI7LW.js +48 -0
- package/dist/bundle/update-NP3I4GCG.js +69 -0
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +6 -0
- package/dist/examples.js.map +1 -1
- package/dist/findings-input.d.ts.map +1 -1
- package/dist/findings-input.js +13 -3
- package/dist/findings-input.js.map +1 -1
- package/dist/knowledge/project-actions.d.ts +2 -0
- package/dist/knowledge/project-actions.d.ts.map +1 -1
- package/dist/knowledge/project-status-command.d.ts.map +1 -1
- package/dist/knowledge/project-status-command.js +12 -19
- package/dist/knowledge/project-status-command.js.map +1 -1
- package/dist/mail/review-command.d.ts +4 -3
- package/dist/mail/review-command.d.ts.map +1 -1
- package/dist/mail/review-command.js +9 -5
- package/dist/mail/review-command.js.map +1 -1
- package/dist/mcp/permissions.d.ts +1 -1
- package/dist/mcp/permissions.d.ts.map +1 -1
- package/dist/mcp/permissions.js +1 -0
- package/dist/mcp/permissions.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +6 -0
- package/dist/reasons.js.map +1 -1
- package/dist/tasks/command.d.ts.map +1 -1
- package/dist/tasks/command.js +2 -0
- package/dist/tasks/command.js.map +1 -1
- package/dist/tasks/list.d.ts.map +1 -1
- package/dist/tasks/list.js +2 -0
- package/dist/tasks/list.js.map +1 -1
- package/dist/tasks/tasks.d.ts +4 -0
- package/dist/tasks/tasks.d.ts.map +1 -1
- package/dist/tasks/tasks.js +2 -0
- package/dist/tasks/tasks.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/cli-memo/topics/mail.md +2 -1
- package/skills/mail-triage/SKILL.md +24 -3
- package/dist/bundle/auto-PZKJQ3FL.js +0 -86
- package/dist/bundle/failure-46JTICYP.js +0 -66
- package/dist/bundle/server-N6L3LGQO.js +0 -48
- package/dist/bundle/server-XU362INX.js +0 -61
- package/dist/bundle/store-maintenance-command-B364Q2O4.js +0 -48
- package/dist/bundle/update-IWJYYYRI.js +0 -69
- /package/dist/bundle/{chunk-QPPNLE7G.js → chunk-3RFXKBZA.js} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
8
8
|
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
9
|
var TimeLimitReached = class extends Error {
|
|
10
10
|
static {
|
|
@@ -2,21 +2,21 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
botInstructions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-KG7APWFM.js";
|
|
6
6
|
import {
|
|
7
7
|
answered,
|
|
8
8
|
normal,
|
|
9
9
|
registerCommands,
|
|
10
10
|
runCommandForAgent,
|
|
11
11
|
toolsFromCommands
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-D5LDALYF.js";
|
|
13
13
|
import {
|
|
14
14
|
agentJson,
|
|
15
15
|
skillResource
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZE5HUZJV.js";
|
|
17
17
|
import {
|
|
18
18
|
callerOf
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CL6MHRXX.js";
|
|
20
20
|
import {
|
|
21
21
|
serveStdio
|
|
22
22
|
} from "./chunk-MM5NVP7F.js";
|
|
@@ -25,17 +25,17 @@ import {
|
|
|
25
25
|
} from "./chunk-H3ZN4YLB.js";
|
|
26
26
|
import {
|
|
27
27
|
wholeList
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-MQ7IHK4Z.js";
|
|
29
29
|
import {
|
|
30
30
|
changesMessenger,
|
|
31
31
|
flatten,
|
|
32
32
|
itemOf
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-XZ3XUN4R.js";
|
|
34
34
|
import {
|
|
35
35
|
MESSENGER_CHANGE_REFUSAL,
|
|
36
36
|
readOnlyLockOf,
|
|
37
37
|
readOnlyRefusal
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-E7NEGYRF.js";
|
|
39
39
|
import {
|
|
40
40
|
mcpErrorResult,
|
|
41
41
|
object
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
__name
|
|
45
45
|
} from "./chunk-ZVVMGPBJ.js";
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mcp/bot/server.js
|
|
48
48
|
import { randomUUID } from "node:crypto";
|
|
49
49
|
var body = /* @__PURE__ */ __name((command, value) => Array.isArray(value) ? wholeList(`bot ${command}`, value) : value !== null && typeof value === "object" && ("item" in value || "items" in value) ? value : itemOf(value !== null && typeof value === "object" ? value : { value }), "body");
|
|
50
50
|
var createBotServer = /* @__PURE__ */ __name((options) => {
|
|
@@ -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.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { userInfo } from "node:os";
|
|
12
12
|
import { isAbsolute, join, relative, resolve } from "node:path";
|
|
13
13
|
var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
|
|
@@ -19,23 +19,24 @@ import {
|
|
|
19
19
|
noteServer,
|
|
20
20
|
pointsOf,
|
|
21
21
|
readPastMark,
|
|
22
|
+
rewindMark,
|
|
22
23
|
scheduleLimitsOf,
|
|
23
24
|
serverSearchOptions,
|
|
24
25
|
summaryOf,
|
|
25
26
|
unansweredHours
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-ZWBLSTFE.js";
|
|
27
28
|
import {
|
|
28
29
|
MAIL_HIT_UNTRUSTED,
|
|
29
30
|
messagesAnswer,
|
|
30
31
|
offsetOf,
|
|
31
32
|
shownOf
|
|
32
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-YJMQBJWU.js";
|
|
33
34
|
import {
|
|
34
35
|
messageItem
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-7YECAMPV.js";
|
|
36
37
|
import {
|
|
37
38
|
knownPermissionKeys
|
|
38
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-5HVQTBDA.js";
|
|
39
40
|
import {
|
|
40
41
|
AGENDA_DEFAULTS,
|
|
41
42
|
DEFAULT_BACKEND,
|
|
@@ -58,7 +59,7 @@ import {
|
|
|
58
59
|
sourceKey,
|
|
59
60
|
typedQuery,
|
|
60
61
|
withQuery
|
|
61
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-MQ7IHK4Z.js";
|
|
62
63
|
import {
|
|
63
64
|
Command,
|
|
64
65
|
FETCH,
|
|
@@ -94,11 +95,11 @@ import {
|
|
|
94
95
|
untrusted,
|
|
95
96
|
withSettingDefaults,
|
|
96
97
|
withoutSetting
|
|
97
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-XZ3XUN4R.js";
|
|
98
99
|
import {
|
|
99
100
|
mailHolderVariable,
|
|
100
101
|
readOnlyLockOf
|
|
101
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-E7NEGYRF.js";
|
|
102
103
|
import {
|
|
103
104
|
DEFAULT_DECISION_POLICY,
|
|
104
105
|
MESSAGE_PARSING,
|
|
@@ -109,14 +110,14 @@ import {
|
|
|
109
110
|
parseReference,
|
|
110
111
|
queryFilter,
|
|
111
112
|
validateFields
|
|
112
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-YZU5HNYY.js";
|
|
113
114
|
import {
|
|
114
115
|
dateRange,
|
|
115
116
|
defineQuery,
|
|
116
117
|
parseLucene,
|
|
117
118
|
queryFieldsOf,
|
|
118
119
|
timezoneOf
|
|
119
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-7PQZBIBH.js";
|
|
120
121
|
import {
|
|
121
122
|
configFilePath,
|
|
122
123
|
resolvePaths,
|
|
@@ -9890,7 +9891,7 @@ var require_cjs = __commonJS({
|
|
|
9890
9891
|
}
|
|
9891
9892
|
});
|
|
9892
9893
|
|
|
9893
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/attachments.js
|
|
9894
9895
|
var MAX_ATTACHMENT_CHARS = 2e5;
|
|
9895
9896
|
var DEFAULT_ATTACHMENT_POLICY = { read: true, maxBytes: 10 * 1024 * 1024 };
|
|
9896
9897
|
var POLICY_SKIPS = ["not-read", "too-large"];
|
|
@@ -9929,7 +9930,7 @@ var readAttachments = /* @__PURE__ */ __name(async (mail, messageId, { loadEngin
|
|
|
9929
9930
|
return files;
|
|
9930
9931
|
}, "readAttachments");
|
|
9931
9932
|
|
|
9932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/read.js
|
|
9933
9934
|
var lowerSuspicious = /* @__PURE__ */ __name((items, suspicious) => [
|
|
9934
9935
|
...items.filter((item) => !suspicious(item)),
|
|
9935
9936
|
...items.filter(suspicious)
|
|
@@ -10016,11 +10017,11 @@ var attachmentsText = /* @__PURE__ */ __name((hit) => (hit.attachments ?? []).ma
|
|
|
10016
10017
|
${file.text.replace(/\n/g, "\n ")}`;
|
|
10017
10018
|
}).join("\n"), "attachmentsText");
|
|
10018
10019
|
|
|
10019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/bulk.js
|
|
10020
10021
|
var BULK = "bulk";
|
|
10021
10022
|
var bulkBox = { externalId: "memo:bulk", name: "bulk", kind: BULK };
|
|
10022
10023
|
|
|
10023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/email-input.js
|
|
10024
10025
|
var sentAtOf = /* @__PURE__ */ __name((date, receivedAt) => {
|
|
10025
10026
|
const sent = date === null ? Number.NaN : Date.parse(date);
|
|
10026
10027
|
return Number.isNaN(sent) ? Date.parse(receivedAt) : sent;
|
|
@@ -10040,7 +10041,7 @@ var parsedEmail = /* @__PURE__ */ __name((mail, item, header, address) => ({
|
|
|
10040
10041
|
outgoing: mail.from === null ? null : mail.from.email === address
|
|
10041
10042
|
}), "parsedEmail");
|
|
10042
10043
|
|
|
10043
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/score.js
|
|
10044
10045
|
var import_disposable_email_domains_js = __toESM(require_dist2(), 1);
|
|
10045
10046
|
var import_tldts = __toESM(require_cjs(), 1);
|
|
10046
10047
|
var WEIGHTS = {
|
|
@@ -10148,7 +10149,7 @@ var scoreGroup = /* @__PURE__ */ __name((items, context) => {
|
|
|
10148
10149
|
return { score: kept.reduce((sum, signal) => sum + WEIGHTS[signal], 0), signals: kept };
|
|
10149
10150
|
}, "scoreGroup");
|
|
10150
10151
|
|
|
10151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/presets.js
|
|
10152
10153
|
var PRESETS = {
|
|
10153
10154
|
social: {
|
|
10154
10155
|
about: "notifications from social networks",
|
|
@@ -10240,7 +10241,7 @@ var presetMatches = /* @__PURE__ */ __name((name, facts) => {
|
|
|
10240
10241
|
return false;
|
|
10241
10242
|
}, "presetMatches");
|
|
10242
10243
|
|
|
10243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/probe.js
|
|
10244
10245
|
var share = /* @__PURE__ */ __name((part, whole) => Math.round(part / whole * 100) / 100, "share");
|
|
10245
10246
|
var isSent = /* @__PURE__ */ __name((item) => item.labels?.includes("Sent") || /(^|\/)sent\b/i.test(item.folder ?? ""), "isSent");
|
|
10246
10247
|
var groupKey = /* @__PURE__ */ __name((headers) => headers.listId === void 0 ? `from:${headers.from}` : `list:${headers.listId}`, "groupKey");
|
|
@@ -10308,7 +10309,7 @@ var probeMail = /* @__PURE__ */ __name((items, limit, ages = /* @__PURE__ */ new
|
|
|
10308
10309
|
};
|
|
10309
10310
|
}, "probeMail");
|
|
10310
10311
|
|
|
10311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/facts.js
|
|
10312
10313
|
var factsOf = /* @__PURE__ */ __name((listed2, rules, ages = /* @__PURE__ */ new Map()) => {
|
|
10313
10314
|
const grouped = rules.some(({ match }) => match.score_at_least !== void 0 || match.preset !== void 0);
|
|
10314
10315
|
if (!grouped)
|
|
@@ -15579,7 +15580,7 @@ var PostalMime = class _PostalMime {
|
|
|
15579
15580
|
}
|
|
15580
15581
|
};
|
|
15581
15582
|
|
|
15582
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/headers.js
|
|
15583
15584
|
var unfold = /* @__PURE__ */ __name((text2) => text2.replace(/\r?\n[ \t]+/g, " "), "unfold");
|
|
15584
15585
|
var field = /* @__PURE__ */ __name((unfolded, name) => new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "im").exec(unfolded)?.[1], "field");
|
|
15585
15586
|
var fieldsOf = /* @__PURE__ */ __name((unfolded, name) => [...unfolded.matchAll(new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "gim"))].map(([, value]) => value), "fieldsOf");
|
|
@@ -15626,7 +15627,7 @@ var mailHeadersOf = /* @__PURE__ */ __name((raw) => {
|
|
|
15626
15627
|
};
|
|
15627
15628
|
}, "mailHeadersOf");
|
|
15628
15629
|
|
|
15629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/parse.js
|
|
15630
15631
|
var MAX_BODY_CHARS = 1e6;
|
|
15631
15632
|
var MAX_ATTACHMENTS = 50;
|
|
15632
15633
|
var BRACKETED_ID = /<[^<>\s]+>/g;
|
|
@@ -15691,13 +15692,13 @@ var parseMail = /* @__PURE__ */ __name(async (raw, maxBodyChars = MAX_BODY_CHARS
|
|
|
15691
15692
|
};
|
|
15692
15693
|
}, "parseMail");
|
|
15693
15694
|
|
|
15694
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/partial.js
|
|
15695
15696
|
var PARTIAL = "partial";
|
|
15696
15697
|
|
|
15697
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/account-key.js
|
|
15698
15699
|
var mailAccountKey = /* @__PURE__ */ __name((address) => ({ provider: "email", account: address.toLowerCase() }), "mailAccountKey");
|
|
15699
15700
|
|
|
15700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/rule-stored.js
|
|
15701
15702
|
var ACTION_OF = { full: "keep", envelope: "envelope", skip: "skip" };
|
|
15702
15703
|
var KINDS = {
|
|
15703
15704
|
from: "string",
|
|
@@ -15766,7 +15767,7 @@ var storedMailRuleSet = /* @__PURE__ */ __name(async (store, account, query) =>
|
|
|
15766
15767
|
}, "storedMailRuleSet");
|
|
15767
15768
|
var storedMailRules = /* @__PURE__ */ __name(async (store, account, query) => (await storedMailRuleSet(store, account, query)).rules, "storedMailRules");
|
|
15768
15769
|
|
|
15769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/rules.js
|
|
15770
15771
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
15771
15772
|
var domainOf = /* @__PURE__ */ __name((address) => address.slice(address.lastIndexOf("@") + 1), "domainOf");
|
|
15772
15773
|
var domainMatches = /* @__PURE__ */ __name((wanted2, sender) => {
|
|
@@ -15838,7 +15839,7 @@ var tagsOf = /* @__PURE__ */ __name((rules, facts) => {
|
|
|
15838
15839
|
}, "tagsOf");
|
|
15839
15840
|
var conditionKeys = /* @__PURE__ */ __name((match) => Object.keys(match).filter((key) => match[key] !== void 0).sort(), "conditionKeys");
|
|
15840
15841
|
|
|
15841
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/rule-input.js
|
|
15842
15843
|
var STORE_ACTION = { keep: "full", envelope: "envelope", skip: "skip" };
|
|
15843
15844
|
var LOWER = ["from", "domain", "list_id", "subject"];
|
|
15844
15845
|
var conditionsOf = /* @__PURE__ */ __name((match) => Object.fromEntries(conditionKeys(match).map((key) => {
|
|
@@ -15868,7 +15869,7 @@ var ruleInput = /* @__PURE__ */ __name((rule, source = rule.source ?? "owner") =
|
|
|
15868
15869
|
decidedAt: decidedAtOf(rule.decided_at)
|
|
15869
15870
|
}), "ruleInput");
|
|
15870
15871
|
|
|
15871
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/rule-tags.js
|
|
15872
15873
|
var reuseOf = /* @__PURE__ */ __name((error) => {
|
|
15873
15874
|
const { details } = error;
|
|
15874
15875
|
return details?.reason === "tag-review.required" ? details.candidates?.[0]?.name : void 0;
|
|
@@ -15929,7 +15930,7 @@ var settleRuleTags = /* @__PURE__ */ __name(async (store, accountId, rules, outc
|
|
|
15929
15930
|
}
|
|
15930
15931
|
}, "settleRuleTags");
|
|
15931
15932
|
|
|
15932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/server-query.js
|
|
15933
15934
|
var DAY = 864e5;
|
|
15934
15935
|
var empty = /* @__PURE__ */ __name(() => ({ words: [], from: [], to: [], cc: [], subject: [], body: [] }), "empty");
|
|
15935
15936
|
var narrows = /* @__PURE__ */ __name((criteria) => criteria.words.length + criteria.from.length + criteria.to.length + criteria.cc.length + criteria.subject.length + criteria.body.length > 0 || criteria.since !== void 0 || criteria.before !== void 0 || criteria.seen !== void 0 || criteria.flagged !== void 0, "narrows");
|
|
@@ -16002,7 +16003,7 @@ var mailCriteriaOf = /* @__PURE__ */ __name((text2, { exact, timezone } = {}) =>
|
|
|
16002
16003
|
};
|
|
16003
16004
|
}, "mailCriteriaOf");
|
|
16004
16005
|
|
|
16005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/server-search.js
|
|
16006
16007
|
var refusal = {
|
|
16007
16008
|
unsupported: "this mailbox's server cannot be searched \u2014 use --backend archive",
|
|
16008
16009
|
offline: "--backend server needs the network \u2014 not with --offline",
|
|
@@ -16217,7 +16218,7 @@ var searchMailServer = /* @__PURE__ */ __name(async (store, mailbox, access, req
|
|
|
16217
16218
|
return { report, sources };
|
|
16218
16219
|
}, "searchMailServer");
|
|
16219
16220
|
|
|
16220
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/cli/marks.js
|
|
16221
16222
|
var iso = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
16222
16223
|
var mailMark = strictObject({
|
|
16223
16224
|
holder: string(),
|
|
@@ -16260,8 +16261,59 @@ var acknowledgeCommand = /* @__PURE__ */ __name((mail) => answerEntity(proposesO
|
|
|
16260
16261
|
const mark = await mail.read(this, (store, mailbox) => acknowledgeMark(store, mailbox, holder, cursor));
|
|
16261
16262
|
renderAnswer(this, outputFor(this), itemOf(markItem(mark)), () => markText(mark));
|
|
16262
16263
|
}), "acknowledgeCommand");
|
|
16264
|
+
var mailMarkReset = strictObject({
|
|
16265
|
+
mark: mailMark,
|
|
16266
|
+
/** Where the mark was before. */
|
|
16267
|
+
from_id: number(),
|
|
16268
|
+
/** Emails the holder reads whole again. */
|
|
16269
|
+
again: number(),
|
|
16270
|
+
/** Bulk emails it gets again as excerpts, unless they are surely newsletters. */
|
|
16271
|
+
bulk: number(),
|
|
16272
|
+
/** Emails between the two marks it skips again: drafts, envelopes, suspicious senders, partial mail. */
|
|
16273
|
+
skipped: number(),
|
|
16274
|
+
/** Nothing moved: `--dry-run` only counts. */
|
|
16275
|
+
dry_run: boolean()
|
|
16276
|
+
});
|
|
16277
|
+
var wholeNumber = /* @__PURE__ */ __name((value) => {
|
|
16278
|
+
const parsed = Number(value);
|
|
16279
|
+
if (!Number.isSafeInteger(parsed) || parsed < 1)
|
|
16280
|
+
throw new CliError("validation_error", `--last takes a whole number of emails, 1 or more \u2014 got ${value}`);
|
|
16281
|
+
return parsed;
|
|
16282
|
+
}, "wholeNumber");
|
|
16283
|
+
var resetMarkCommand = /* @__PURE__ */ __name((mail) => answerEntity(annotate(new Command("reset"), {
|
|
16284
|
+
effects: LOCAL_WRITE,
|
|
16285
|
+
examples: [
|
|
16286
|
+
`${mail.app.command} personal messages reset --holder mail-triage --last 8 --dry-run`,
|
|
16287
|
+
`${mail.app.command} personal messages reset --holder mail-triage --since-time 2026-11-04T00:00:00Z`
|
|
16288
|
+
]
|
|
16289
|
+
}), "mail_mark_reset", mailMarkReset).summary("move a holder's processing mark back, so it reads that mail again (owner only)").description("the owner moves a holder's mark back past the mail received since --since-time, or past the last --last emails it was given; its next reviews give that mail again. The answer says how many emails it reads again. An agent cannot: a holder only moves its own mark forward, with `messages acknowledge`").requiredOption("--holder <name>", "whose mark: lower-case letters, digits and dashes, such as mail-triage").option("--since-time <time>", "read again what was received since this ISO 8601 time, or 2d ago").option("--last <n>", "read again the last n emails the holder was given", wholeNumber).option("--dry-run", "count what would be read again, and move nothing").action(async function() {
|
|
16290
|
+
const { holder, sinceTime, last, dryRun } = this.opts();
|
|
16291
|
+
if (sinceTime === void 0 === (last === void 0))
|
|
16292
|
+
throw new CliError("validation_error", "give --since-time or --last, one of them");
|
|
16293
|
+
const env = environmentOf(this).env ?? process.env;
|
|
16294
|
+
if (env[mailHolderVariable(mail.app)]?.trim() || actorOf(this) !== "owner" || readOnlyLockOf(mail.app, env))
|
|
16295
|
+
throw new CliError("permission_error", "only the owner moves a holder's mark back; an agent only acknowledges", {
|
|
16296
|
+
reason: "mail.reset-owner-only"
|
|
16297
|
+
});
|
|
16298
|
+
const now = Date.now();
|
|
16299
|
+
const to = last === void 0 ? { since: momentOf(sinceTime, "--since-time", now) } : { last };
|
|
16300
|
+
const reset = await mail.read(this, (store, mailbox) => rewindMark(store, mailbox, holder, to, { now, dry: dryRun === true }));
|
|
16301
|
+
const item = {
|
|
16302
|
+
mark: markItem(reset.mark),
|
|
16303
|
+
from_id: reset.fromId,
|
|
16304
|
+
again: reset.again,
|
|
16305
|
+
bulk: reset.bulk,
|
|
16306
|
+
skipped: reset.skipped,
|
|
16307
|
+
dry_run: reset.dry
|
|
16308
|
+
};
|
|
16309
|
+
renderAnswer(this, outputFor(this), itemOf(item), () => {
|
|
16310
|
+
const mark = reset.mark.throughId === reset.fromId ? `the mark stays at ${reset.fromId}` : `the mark ${reset.dry ? "would move" : "moved"} from ${reset.fromId} to ${reset.mark.throughId}`;
|
|
16311
|
+
return `${holder} ${reset.dry ? "would read" : "reads"} ${reset.again} emails again, and ${reset.bulk} bulk ones as excerpts unless they are newsletters; ${reset.skipped} are skipped again; ${mark}
|
|
16312
|
+
`;
|
|
16313
|
+
});
|
|
16314
|
+
}), "resetMarkCommand");
|
|
16263
16315
|
|
|
16264
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/review.js
|
|
16265
16317
|
var REVIEW_THREADS = 50;
|
|
16266
16318
|
var REVIEW_PER_THREAD = 50;
|
|
16267
16319
|
var OWED_DAYS = 30;
|
|
@@ -16359,7 +16411,7 @@ var reviewMail = /* @__PURE__ */ __name(async (store, mailbox, options) => {
|
|
|
16359
16411
|
};
|
|
16360
16412
|
}, "reviewMail");
|
|
16361
16413
|
|
|
16362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/cli/review.js
|
|
16363
16415
|
var DAY2 = 864e5;
|
|
16364
16416
|
var REVIEW_UNTRUSTED = [...SUMMARY_UNTRUSTED, ...MAIL_HIT_UNTRUSTED];
|
|
16365
16417
|
var MAIL_REVIEW_QUERY = defineQuery({
|
|
@@ -16607,7 +16659,7 @@ an agent over MCP, and each scheduled run.`).action(async function(query) {
|
|
|
16607
16659
|
saved?.save(found.checked ?? {}, found.complete ? { through: found.until } : {});
|
|
16608
16660
|
}), "mailReviewCommand");
|
|
16609
16661
|
|
|
16610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/cli/bulk-settings.js
|
|
16611
16663
|
var listed = /* @__PURE__ */ __name((words2) => words2.join(", "), "listed");
|
|
16612
16664
|
var MAIL_BULK_SETTINGS = [
|
|
16613
16665
|
{
|
|
@@ -16663,7 +16715,7 @@ var bulkTriageOf = /* @__PURE__ */ __name((config) => {
|
|
|
16663
16715
|
};
|
|
16664
16716
|
}, "bulkTriageOf");
|
|
16665
16717
|
|
|
16666
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mail/cli/index.js
|
|
16667
16719
|
var absentAccount = /* @__PURE__ */ __name((error) => {
|
|
16668
16720
|
if (error instanceof CliError && error.code === "not_found")
|
|
16669
16721
|
return void 0;
|
|
@@ -16854,6 +16906,7 @@ var messagesCommand = /* @__PURE__ */ __name((mail) => {
|
|
|
16854
16906
|
renderAnswer(this, output, beforeN || afterN ? listOf("messages show", { items: shown, limit: Math.max(1, shown.length), has_more: false }) : itemOf(shown.find((_, at) => emails[at]?.anchor) ?? shown[0], unread ? { meta: { complete: false, issues: [unread] } } : void 0), () => shownText(emails));
|
|
16855
16907
|
});
|
|
16856
16908
|
messages.addCommand(acknowledgeCommand(mail));
|
|
16909
|
+
messages.addCommand(resetMarkCommand(mail));
|
|
16857
16910
|
return messages;
|
|
16858
16911
|
}, "messagesCommand");
|
|
16859
16912
|
var mailThread = strictObject({
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-3W4HD6ZQ.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-EB2IULWB.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
14
14
|
import { setTimeout } from "node:timers/promises";
|
|
15
15
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
16
16
|
var OPENAI_MODELS = {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
describeOptions,
|
|
8
8
|
keyForCommand,
|
|
9
9
|
metaOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XZ3XUN4R.js";
|
|
11
11
|
import {
|
|
12
12
|
jsonSchemaOf
|
|
13
13
|
} from "./chunk-G2BB5WY5.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
__name
|
|
19
19
|
} from "./chunk-ZVVMGPBJ.js";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
22
22
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
23
23
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
24
24
|
const entity = answerEntitySchema(command);
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
commandPathOf,
|
|
8
8
|
findCommand,
|
|
9
9
|
outputOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RTPTCTH6.js";
|
|
11
11
|
import {
|
|
12
12
|
Command,
|
|
13
13
|
Help,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
environmentOf,
|
|
19
19
|
metaOf,
|
|
20
20
|
takesProfile
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-XZ3XUN4R.js";
|
|
22
22
|
import {
|
|
23
23
|
writes
|
|
24
24
|
} from "./chunk-G2BB5WY5.js";
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
__name
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/cli/help/sections.js
|
|
33
33
|
var SECTIONS = {
|
|
34
34
|
read: "Read",
|
|
35
35
|
write: "Write",
|
|
@@ -94,7 +94,7 @@ var CORE_SECTIONS = {
|
|
|
94
94
|
upgrade: "setup"
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
97
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/cli/help/commands-text.js
|
|
98
98
|
var DESCRIPTION = 90;
|
|
99
99
|
var COLUMN = 52;
|
|
100
100
|
var short = /* @__PURE__ */ __name((text) => {
|
|
@@ -133,7 +133,7 @@ var commandsText = /* @__PURE__ */ __name((root, commands, scope) => {
|
|
|
133
133
|
`;
|
|
134
134
|
}, "commandsText");
|
|
135
135
|
|
|
136
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
136
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/cli/help/command-help.js
|
|
137
137
|
var ARGUMENT_KINDS = {
|
|
138
138
|
chat: "chat",
|
|
139
139
|
chats: "chat",
|
|
@@ -325,7 +325,7 @@ var installCommandHelp = /* @__PURE__ */ __name((program, { profile = true } = {
|
|
|
325
325
|
command.addHelpText("after", () => commandHelpText(command));
|
|
326
326
|
}, "installCommandHelp");
|
|
327
327
|
|
|
328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/cli/help/first-screen.js
|
|
329
329
|
var WIRECAT_TOOLS = [
|
|
330
330
|
{
|
|
331
331
|
command: "tg",
|
|
@@ -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.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
8
8
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
9
9
|
"authorization",
|
|
10
10
|
"cookie",
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
decisionPolicy
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ONEW2BND.js";
|
|
6
6
|
import {
|
|
7
7
|
compactText,
|
|
8
8
|
currentRun,
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
rowsOfEntity,
|
|
16
16
|
sealed,
|
|
17
17
|
snakeKeysKeeping
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XZ3XUN4R.js";
|
|
19
19
|
import {
|
|
20
20
|
openStore
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YZU5HNYY.js";
|
|
22
22
|
import {
|
|
23
23
|
STORE_CLIENT
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-BRG5MJLL.js";
|
|
25
25
|
import {
|
|
26
26
|
createRenderer
|
|
27
27
|
} from "./chunk-TZ7WDQPD.js";
|
|
@@ -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.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mcp/instructions.js
|
|
8
8
|
var instructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => {
|
|
9
9
|
const all = typeof profile !== "string";
|
|
10
10
|
const offers = /* @__PURE__ */ __name((key) => all || writes.includes(key), "offers");
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-Y3NJODLW.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./chunk-EB2IULWB.js";
|
|
@@ -12,7 +12,7 @@ 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.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
|
|
@@ -3,19 +3,19 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
agentResult,
|
|
5
5
|
failureContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZE5HUZJV.js";
|
|
7
7
|
import {
|
|
8
8
|
CommanderError,
|
|
9
9
|
judgedEffects,
|
|
10
10
|
metaOf
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XZ3XUN4R.js";
|
|
12
12
|
import {
|
|
13
13
|
interactiveOf,
|
|
14
14
|
optionsOf
|
|
15
15
|
} from "./chunk-BPGYTJNB.js";
|
|
16
16
|
import {
|
|
17
17
|
APP
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BRG5MJLL.js";
|
|
19
19
|
import {
|
|
20
20
|
ValiError,
|
|
21
21
|
errorObjectOf,
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
answeredWire
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-C7AXGHGM.js";
|
|
6
6
|
import {
|
|
7
7
|
CALLER_META_KEY,
|
|
8
8
|
PROXY_CLIENT_NAME,
|
|
9
9
|
callerOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CL6MHRXX.js";
|
|
11
11
|
import {
|
|
12
12
|
StdioServerTransport,
|
|
13
13
|
serveStdio
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
23
23
|
import { spawn } from "node:child_process";
|
|
24
24
|
import { randomUUID } from "node:crypto";
|
|
25
25
|
var PROTOCOL = "2025-06-18";
|
|
@@ -253,7 +253,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
253
253
|
}, "serveAllProfilesOverStdio");
|
|
254
254
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
255
255
|
const { build, close } = allProfilesServer(options);
|
|
256
|
-
const { serveOverHttp } = await import("./serve-
|
|
256
|
+
const { serveOverHttp } = await import("./serve-KG7HPG5B.js");
|
|
257
257
|
const listening = await serveOverHttp(build, {
|
|
258
258
|
...http,
|
|
259
259
|
appName: options.command,
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
readSharedSection,
|
|
5
5
|
sharedConfigPath,
|
|
6
6
|
writeSharedSection
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-L43BXXBS.js";
|
|
8
8
|
import {
|
|
9
9
|
storePath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NPLZ67KU.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
13
|
} from "./chunk-EB2IULWB.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.578.0_@wirecat+cli-base@0.77.1_commander@15.0.0_esbuild@0.28.2_type_ccec64c78902f08ceaf95c4854473d3e/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
19
19
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
20
20
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
21
21
|
var SECTION = "setup";
|