@wirecat/cli-memo 0.131.67 → 0.131.69
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-W3GRNNLJ.js → all-profiles-6JKSPBBO.js} +5 -5
- package/dist/bundle/{anthropic-GWMYHBO4.js → anthropic-YA2N6EJ4.js} +2 -2
- package/dist/bundle/{app-server-RQ26EXNI.js → app-server-UP3AL2XQ.js} +35 -35
- package/dist/bundle/auto-IKZIROGF.js +85 -0
- package/dist/bundle/{bun-KKLPQTG5.js → bun-OUFOAYV4.js} +2 -2
- package/dist/bundle/{bun-sqlite-WKIZJNTG.js → bun-sqlite-5RZTFU2Q.js} +2 -2
- package/dist/bundle/{chunk-R4H5HSQZ.js → chunk-22CDLXSR.js} +4 -4
- package/dist/bundle/{chunk-XI5UABKO.js → chunk-267N22E4.js} +1 -1
- package/dist/bundle/{chunk-7IKET6ES.js → chunk-276KPJI5.js} +2 -2
- package/dist/bundle/{chunk-32ROGX5N.js → chunk-2C7Z7CKD.js} +1 -1
- package/dist/bundle/{chunk-NNUJWCEJ.js → chunk-2DQYP2K3.js} +1 -1
- package/dist/bundle/{chunk-TQXXOUOX.js → chunk-2F35N6BI.js} +1 -1
- package/dist/bundle/{chunk-BOOEDDVY.js → chunk-2NFI7SDW.js} +83 -63
- package/dist/bundle/{chunk-ECMYCWG2.js → chunk-3LGLKLBA.js} +2 -2
- package/dist/bundle/{chunk-Q4JYHQ47.js → chunk-3TFK7RBA.js} +342 -323
- package/dist/bundle/{chunk-VVTC2YAX.js → chunk-3YVLNOPE.js} +4 -4
- package/dist/bundle/{chunk-MLF5FLAP.js → chunk-4HSWIXYE.js} +4 -4
- package/dist/bundle/{chunk-GU3MRYK2.js → chunk-53EAI4VZ.js} +1 -1
- package/dist/bundle/{chunk-ZU6HZLZP.js → chunk-5EHUHZU5.js} +429 -90
- package/dist/bundle/{chunk-MCA265JM.js → chunk-5MUR6D2G.js} +19 -1
- package/dist/bundle/{chunk-ZVXXJYNW.js → chunk-5OMM4CDT.js} +2 -2
- package/dist/bundle/{chunk-AGNWFOAJ.js → chunk-67VEVKMJ.js} +1 -1
- package/dist/bundle/{chunk-JG7EDH7K.js → chunk-7JFLHRQL.js} +1 -1
- package/dist/bundle/{chunk-CQNYBTWP.js → chunk-7L4PBN5S.js} +2 -2
- package/dist/bundle/{chunk-WJ2OYD2D.js → chunk-BGWPKEKK.js} +4 -4
- package/dist/bundle/{chunk-TPYXULNG.js → chunk-BJJULUUC.js} +5 -5
- package/dist/bundle/{chunk-VUCD4DAQ.js → chunk-ECHN36DC.js} +4 -4
- package/dist/bundle/{chunk-TXWVZVDK.js → chunk-EDPA54WQ.js} +3 -3
- package/dist/bundle/{chunk-JEKIBI7P.js → chunk-EKSOPEFQ.js} +4 -4
- package/dist/bundle/{chunk-ZOIW2YEU.js → chunk-EO4JMJFZ.js} +7 -7
- package/dist/bundle/{chunk-7DANHJF6.js → chunk-FQ54GW57.js} +31 -31
- package/dist/bundle/{chunk-DNDELSVT.js → chunk-FZHYGJQ2.js} +5 -5
- package/dist/bundle/{chunk-IKZBO7NV.js → chunk-GGFL64HF.js} +623 -509
- package/dist/bundle/{chunk-FBSHWCIZ.js → chunk-GVEY6743.js} +9 -9
- package/dist/bundle/{chunk-TNHFKR6P.js → chunk-GVP6CAPH.js} +21 -21
- package/dist/bundle/{chunk-4JTCNMW6.js → chunk-IHHXGTMX.js} +1 -1
- package/dist/bundle/{chunk-TWTAWPC7.js → chunk-IJAILIZR.js} +12 -12
- package/dist/bundle/{chunk-XK4VVGMH.js → chunk-JMGQATR6.js} +2 -2
- package/dist/bundle/{chunk-GHN2KYMO.js → chunk-LYAJUZM4.js} +21 -21
- package/dist/bundle/{chunk-YAFSD345.js → chunk-MK6SQ32Q.js} +12 -12
- package/dist/bundle/{chunk-XVPMSMSP.js → chunk-MWQI6FSU.js} +3 -3
- package/dist/bundle/{chunk-7OMKWYFN.js → chunk-MYLNRBDF.js} +16 -9
- package/dist/bundle/{chunk-W7FYMZOW.js → chunk-N73YBQ42.js} +6 -6
- package/dist/bundle/{chunk-ZNBLWLCD.js → chunk-OAO5UCPJ.js} +151 -151
- package/dist/bundle/{chunk-OUSLPKWY.js → chunk-OBQ7TSUB.js} +1 -1
- package/dist/bundle/{chunk-TFAUB6JO.js → chunk-OHA7HDPX.js} +374 -306
- package/dist/bundle/{chunk-QCWA3JUT.js → chunk-PHSYMVYX.js} +2 -2
- package/dist/bundle/{chunk-HUPZ6XYH.js → chunk-PSYQPO6D.js} +2 -2
- package/dist/bundle/{chunk-SKBDI7LU.js → chunk-QAXIZHK7.js} +28 -28
- package/dist/bundle/{chunk-GUWRR7F2.js → chunk-QZU5IM5E.js} +2 -2
- package/dist/bundle/{chunk-SUCG5HBF.js → chunk-RHW3DDWI.js} +1 -1
- package/dist/bundle/{chunk-OU4PN7PF.js → chunk-TV75OHKJ.js} +7 -7
- package/dist/bundle/{chunk-4C6RU7DG.js → chunk-TVZXLAID.js} +4 -4
- package/dist/bundle/{chunk-7KYVUVDS.js → chunk-TXOXPQN2.js} +2 -2
- package/dist/bundle/{chunk-QMTCYKAA.js → chunk-UEMI6FXR.js} +6 -6
- package/dist/bundle/{chunk-QFSMJTEA.js → chunk-V2YS63Z5.js} +1 -1
- package/dist/bundle/{chunk-6SFTVGNL.js → chunk-VPKJZKXV.js} +1 -1
- package/dist/bundle/{chunk-XYL7GDCX.js → chunk-W2FFA7T5.js} +5 -5
- package/dist/bundle/{chunk-DNS2QWK3.js → chunk-WNA2WNDK.js} +3 -3
- package/dist/bundle/{chunk-ORKWFXWV.js → chunk-XTEJXJJ3.js} +10 -10
- package/dist/bundle/{chunk-GJ3P7RJF.js → chunk-YTJWIJIG.js} +5 -5
- package/dist/bundle/{chunk-PBOVHHYG.js → chunk-YXXAPVAZ.js} +8 -8
- package/dist/bundle/{command-contract-46BU5YKL.js → command-contract-OGW2DX4C.js} +11 -11
- package/dist/bundle/{decode-KRVQZPSB.js → decode-IJMDTGTW.js} +2 -2
- package/dist/bundle/{echarts-O6QQRVZE.js → echarts-EHYUXOKP.js} +2 -2
- package/dist/bundle/{embed-DA4H2F4F.js → embed-RUY3UIVC.js} +3 -3
- package/dist/bundle/{embedder-HWAFLIYM.js → embedder-P6WBMEGP.js} +6 -6
- package/dist/bundle/{entry-DE7GJOIZ.js → entry-7S2ONYSF.js} +4 -4
- package/dist/bundle/failure-NRZUB77S.js +65 -0
- package/dist/bundle/{first-run-GOBPIKQF.js → first-run-MLIFZSVH.js} +5 -5
- package/dist/bundle/{first-screen-3V3HWSQM.js → first-screen-DGTTK6VK.js} +12 -12
- package/dist/bundle/{instructions-GYYMBSZW.js → instructions-ZMG4FLGO.js} +1 -1
- package/dist/bundle/{mcp-6RDHWRXG.js → mcp-CFIL7WZU.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-R3OFASC5.js → node-QYL4B7JS.js} +2 -2
- package/dist/bundle/{node-sqlite-DYHDZJ5A.js → node-sqlite-ESTT2OCF.js} +3 -3
- package/dist/bundle/{oauth-SMCDSCXQ.js → oauth-CFQFSIRQ.js} +4 -4
- package/dist/bundle/{open-GX7RPGQW.js → open-3XO2HMIT.js} +2 -2
- package/dist/bundle/{openai-WM4TRXCC.js → openai-STUNDBD6.js} +7 -7
- package/dist/bundle/{process-NT5OZH2V.js → process-P4UAJCZX.js} +1 -1
- package/dist/bundle/{program-YQ3UT2LI.js → program-BXL5ZOVQ.js} +2052 -1870
- package/dist/bundle/{prompt-5XJNSXCW.js → prompt-ZCYMFMIG.js} +2 -2
- package/dist/bundle/{recognize-DQNGZLRX.js → recognize-V3BY33FK.js} +1 -1
- package/dist/bundle/{remote-RMRYJZSZ.js → remote-IP4QR7SP.js} +4 -4
- package/dist/bundle/{rerank-5J6JM43S.js → rerank-VKUSF3DM.js} +4 -4
- package/dist/bundle/{serve-4RVWOQVC.js → serve-VBIUARHJ.js} +6 -6
- package/dist/bundle/server-AASCSGCI.js +61 -0
- package/dist/bundle/{server-NKCRFK26.js → server-JLPZUC42.js} +49 -49
- package/dist/bundle/server-YQLPZK4Z.js +48 -0
- package/dist/bundle/{state-MGVPOLPZ.js → state-UBAIZ2WP.js} +3 -3
- package/dist/bundle/{store-IEK4PPOE.js → store-VQQVUA4W.js} +9 -9
- package/dist/bundle/store-maintenance-command-GCBABKEZ.js +47 -0
- package/dist/bundle/update-M54Z3SEU.js +68 -0
- package/dist/digest/backfill.d.ts +9 -0
- package/dist/digest/backfill.d.ts.map +1 -0
- package/dist/digest/backfill.js +142 -0
- package/dist/digest/backfill.js.map +1 -0
- package/dist/digest/command.d.ts +2 -0
- package/dist/digest/command.d.ts.map +1 -1
- package/dist/digest/command.js +18 -1
- package/dist/digest/command.js.map +1 -1
- package/dist/digest/digest.d.ts +6 -1
- package/dist/digest/digest.d.ts.map +1 -1
- package/dist/digest/digest.js +26 -15
- package/dist/digest/digest.js.map +1 -1
- package/dist/digest/sync-health.d.ts +1 -2
- package/dist/digest/sync-health.d.ts.map +1 -1
- package/dist/digest/tasks.d.ts +14 -1
- package/dist/digest/tasks.d.ts.map +1 -1
- package/dist/digest/tasks.js +31 -4
- package/dist/digest/tasks.js.map +1 -1
- package/dist/discovery/command.d.ts.map +1 -1
- package/dist/discovery/command.js +1 -0
- package/dist/discovery/command.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +7 -1
- package/dist/examples.js.map +1 -1
- package/dist/knowledge/command.d.ts.map +1 -1
- package/dist/knowledge/command.js +17 -6
- package/dist/knowledge/command.js.map +1 -1
- package/dist/knowledge/project-context.d.ts.map +1 -1
- package/dist/knowledge/project-context.js +3 -2
- package/dist/knowledge/project-context.js.map +1 -1
- package/dist/knowledge/relationships.d.ts +2 -0
- package/dist/knowledge/relationships.d.ts.map +1 -1
- package/dist/knowledge/relationships.js +11 -2
- package/dist/knowledge/relationships.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -0
- package/dist/program.js.map +1 -1
- package/dist/read-only.d.ts +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +18 -0
- package/dist/reasons.js.map +1 -1
- package/dist/schedule/command.d.ts +2 -1
- package/dist/schedule/command.d.ts.map +1 -1
- package/dist/schedule/command.js +6 -2
- package/dist/schedule/command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/skills/cli-memo/topics/projects.md +7 -0
- package/skills/mail-triage/SKILL.md +25 -19
- package/skills/morning-digest/SKILL.md +15 -1
- package/dist/bundle/auto-FR6LX5KO.js +0 -85
- package/dist/bundle/failure-U3VNIQNX.js +0 -65
- package/dist/bundle/server-HH2X6G7V.js +0 -61
- package/dist/bundle/server-MS3JKMGF.js +0 -48
- package/dist/bundle/store-maintenance-command-GSS2AY4J.js +0 -47
- package/dist/bundle/update-S5XRRWTH.js +0 -68
- /package/dist/bundle/{chunk-DS7NXKAN.js → chunk-AWVQHWIS.js} +0 -0
|
@@ -6,6 +6,24 @@ import {
|
|
|
6
6
|
|
|
7
7
|
// dist/reasons.js
|
|
8
8
|
var REASONS = defineReasons([
|
|
9
|
+
{
|
|
10
|
+
reason: "backfill.no-schedule",
|
|
11
|
+
code: "not_found",
|
|
12
|
+
message: "no morning-digest schedule to build from \u2014 memo skill show morning-digest says how to make one",
|
|
13
|
+
details: []
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
reason: "backfill.not-daily",
|
|
17
|
+
code: "validation_error",
|
|
18
|
+
message: "{schedule} does not run at a daily time, so it has no past days",
|
|
19
|
+
details: ["schedule"]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
reason: "backfill.owner-only",
|
|
23
|
+
code: "permission_error",
|
|
24
|
+
message: "a backfill spends the owner's money on model calls; the owner runs it at a terminal or in WireCat Desktop",
|
|
25
|
+
details: []
|
|
26
|
+
},
|
|
9
27
|
{
|
|
10
28
|
reason: "ref.bare-number",
|
|
11
29
|
code: "validation_error",
|
|
@@ -132,7 +150,7 @@ var REASONS = defineReasons([
|
|
|
132
150
|
]);
|
|
133
151
|
|
|
134
152
|
// dist/version.js
|
|
135
|
-
var VERSION = "0.131.
|
|
153
|
+
var VERSION = "0.131.69";
|
|
136
154
|
|
|
137
155
|
// dist/app.js
|
|
138
156
|
var APP = {
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/models/options.js
|
|
21
21
|
var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
22
22
|
const parsed = safeParse(schema, options);
|
|
23
23
|
if (!parsed.success) {
|
|
@@ -27,7 +27,7 @@ var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
|
27
27
|
}, "checkedOptions");
|
|
28
28
|
var range = /* @__PURE__ */ __name((min, max) => optional(pipe(number(), finite(), minValue(min), maxValue(max))), "range");
|
|
29
29
|
|
|
30
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
30
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
31
31
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
32
32
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
33
33
|
if (images === void 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.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/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 {
|
|
@@ -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.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
alive
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IHHXGTMX.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/background/lock.js
|
|
15
15
|
import { existsSync, linkSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
16
16
|
import { dirname, join } from "node:path";
|
|
17
17
|
var lockPath = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "serve", `${profile}.lock`), "lockPath");
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-V2YS63Z5.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths
|
|
8
8
|
} from "./chunk-UUBV5ATQ.js";
|
|
@@ -14,11 +14,11 @@ 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.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
18
18
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname, join, resolve } from "node:path";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
22
22
|
var DEFAULT_TASK_CATEGORIES = [
|
|
23
23
|
{
|
|
24
24
|
name: "taxes",
|
|
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
773
773
|
}
|
|
774
774
|
}, "storedTaskCategories");
|
|
775
775
|
|
|
776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
777
777
|
var SECTION = "task_categories";
|
|
778
778
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
779
779
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
loadConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FQ54GW57.js";
|
|
6
6
|
import {
|
|
7
7
|
upgradeCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OHA7HDPX.js";
|
|
9
9
|
import {
|
|
10
10
|
FETCH,
|
|
11
11
|
annotate,
|
|
12
12
|
overrideSharedContract
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-OAO5UCPJ.js";
|
|
14
14
|
import {
|
|
15
15
|
latestVersion,
|
|
16
16
|
runUpdate,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
APP,
|
|
21
21
|
VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-5MUR6D2G.js";
|
|
23
23
|
import {
|
|
24
24
|
installerOf
|
|
25
25
|
} from "./chunk-DSU6UR2X.js";
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
// dist/update.js
|
|
35
35
|
import { join } from "node:path";
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
38
38
|
import { realpathSync } from "node:fs";
|
|
39
39
|
import { fileURLToPath } from "node:url";
|
|
40
40
|
var QUIET_WORDS = [
|
|
@@ -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-2F35N6BI.js";
|
|
6
6
|
import {
|
|
7
7
|
CALLER_META_KEY,
|
|
8
8
|
PROXY_CLIENT_NAME,
|
|
9
9
|
callerOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PSYQPO6D.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.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/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-VBIUARHJ.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-BGWPKEKK.js";
|
|
8
8
|
import {
|
|
9
9
|
storePath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-V2YS63Z5.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
13
|
} from "./chunk-ZTONSM5X.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.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/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";
|
|
@@ -3,21 +3,21 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answers,
|
|
5
5
|
itemAnswer
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-TVZXLAID.js";
|
|
7
7
|
import {
|
|
8
8
|
loadConfig,
|
|
9
9
|
updateConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FQ54GW57.js";
|
|
11
11
|
import {
|
|
12
12
|
failingNotice,
|
|
13
13
|
recordRun
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OHA7HDPX.js";
|
|
15
15
|
import {
|
|
16
16
|
InvalidArgumentError,
|
|
17
17
|
LOCAL_READ,
|
|
18
18
|
LOCAL_WRITE,
|
|
19
19
|
annotate
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OAO5UCPJ.js";
|
|
21
21
|
import {
|
|
22
22
|
installerOf
|
|
23
23
|
} from "./chunk-DSU6UR2X.js";
|
|
@@ -3,17 +3,17 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
toModelRate
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MWQI6FSU.js";
|
|
7
7
|
import {
|
|
8
8
|
OPENAI_URL
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-QZU5IM5E.js";
|
|
10
10
|
import {
|
|
11
11
|
OPENAI_TRANSCRIBE_MODEL,
|
|
12
12
|
VAD,
|
|
13
13
|
filesPresent,
|
|
14
14
|
modelsDirectory,
|
|
15
15
|
vadPath
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-WNA2WNDK.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_RETRY,
|
|
19
19
|
backoffMs
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
__name
|
|
26
26
|
} from "./chunk-ZVVMGPBJ.js";
|
|
27
27
|
|
|
28
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
28
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
29
29
|
import { setTimeout as wait } from "node:timers/promises";
|
|
30
30
|
|
|
31
31
|
// node_modules/.pnpm/@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/hosts.js
|
|
@@ -56,7 +56,7 @@ var parseRateLimitReset = /* @__PURE__ */ __name((header, now) => {
|
|
|
56
56
|
}, "parseRateLimitReset");
|
|
57
57
|
var providerWaitMs = /* @__PURE__ */ __name((headers, now) => parseRetryAfter(headers.get("retry-after"), now) ?? parseRateLimitReset(headers.get("x-ratelimit-reset"), now), "providerWaitMs");
|
|
58
58
|
|
|
59
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
59
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/speech/wav.js
|
|
60
60
|
var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
61
61
|
const bytes = Buffer.alloc(44 + samples.length * 2);
|
|
62
62
|
bytes.write("RIFF", 0, "ascii");
|
|
@@ -77,7 +77,7 @@ var encodeWav = /* @__PURE__ */ __name((samples, sampleRate = 16e3) => {
|
|
|
77
77
|
return new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.length);
|
|
78
78
|
}, "encodeWav");
|
|
79
79
|
|
|
80
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
80
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/speech/openai.js
|
|
81
81
|
var LONGEST_REQUEST_SECONDS = 600;
|
|
82
82
|
var JOINED_SECONDS = 0.2;
|
|
83
83
|
var PAD_SECONDS = 0.2;
|
|
@@ -199,7 +199,7 @@ var piecesOf = /* @__PURE__ */ __name((spans, limit) => {
|
|
|
199
199
|
return pieces;
|
|
200
200
|
}, "piecesOf");
|
|
201
201
|
var openCutter = /* @__PURE__ */ __name(async (vadModel) => {
|
|
202
|
-
const { openSpeechCutter } = await import("./recognize-
|
|
202
|
+
const { openSpeechCutter } = await import("./recognize-V3BY33FK.js");
|
|
203
203
|
return openSpeechCutter(vadModel);
|
|
204
204
|
}, "openCutter");
|
|
205
205
|
var checkKeywords = /* @__PURE__ */ __name((keywords = []) => {
|
|
@@ -27,19 +27,19 @@ import {
|
|
|
27
27
|
serverSearchOptions,
|
|
28
28
|
summaryOf,
|
|
29
29
|
unansweredHours
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-OHA7HDPX.js";
|
|
31
31
|
import {
|
|
32
32
|
MAIL_HIT_UNTRUSTED,
|
|
33
33
|
messagesAnswer,
|
|
34
34
|
offsetOf,
|
|
35
35
|
shownOf
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-LYAJUZM4.js";
|
|
37
37
|
import {
|
|
38
38
|
messageItem
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-5EHUHZU5.js";
|
|
40
40
|
import {
|
|
41
41
|
knownPermissionKeys
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-GVP6CAPH.js";
|
|
43
43
|
import {
|
|
44
44
|
AGENDA_DEFAULTS,
|
|
45
45
|
DEFAULT_BACKEND,
|
|
@@ -63,7 +63,7 @@ import {
|
|
|
63
63
|
sourceKey,
|
|
64
64
|
typedQuery,
|
|
65
65
|
withQuery
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-3TFK7RBA.js";
|
|
67
67
|
import {
|
|
68
68
|
Command,
|
|
69
69
|
FETCH,
|
|
@@ -96,11 +96,11 @@ import {
|
|
|
96
96
|
snakeKeys,
|
|
97
97
|
withSettingDefaults,
|
|
98
98
|
withoutSetting
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-OAO5UCPJ.js";
|
|
100
100
|
import {
|
|
101
101
|
mailHolderVariable,
|
|
102
102
|
readOnlyLockOf
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-2DQYP2K3.js";
|
|
104
104
|
import {
|
|
105
105
|
DEFAULT_DECISION_POLICY,
|
|
106
106
|
MESSAGE_PARSING,
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
registrableOf,
|
|
114
114
|
scoreGroup,
|
|
115
115
|
validateFields
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-GGFL64HF.js";
|
|
117
117
|
import {
|
|
118
118
|
DEAL_KINDS,
|
|
119
119
|
count,
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
time,
|
|
126
126
|
timezoneOf,
|
|
127
127
|
untrusted
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-2NFI7SDW.js";
|
|
129
129
|
import {
|
|
130
130
|
configFilePath,
|
|
131
131
|
resolvePaths,
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
__toESM
|
|
163
163
|
} from "./chunk-ZVVMGPBJ.js";
|
|
164
164
|
|
|
165
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/attachments.js
|
|
166
166
|
var MAX_ATTACHMENT_CHARS = 2e5;
|
|
167
167
|
var DEFAULT_ATTACHMENT_POLICY = { read: true, maxBytes: 10 * 1024 * 1024 };
|
|
168
168
|
var POLICY_SKIPS = ["not-read", "too-large"];
|
|
@@ -201,7 +201,7 @@ var readAttachments = /* @__PURE__ */ __name(async (mail, messageId, { loadEngin
|
|
|
201
201
|
return files;
|
|
202
202
|
}, "readAttachments");
|
|
203
203
|
|
|
204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
204
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/read.js
|
|
205
205
|
var lowerSuspicious = /* @__PURE__ */ __name((items, suspicious) => [
|
|
206
206
|
...items.filter((item) => !suspicious(item)),
|
|
207
207
|
...items.filter(suspicious)
|
|
@@ -288,11 +288,11 @@ var attachmentsText = /* @__PURE__ */ __name((hit) => (hit.attachments ?? []).ma
|
|
|
288
288
|
${file.text.replace(/\n/g, "\n ")}`;
|
|
289
289
|
}).join("\n"), "attachmentsText");
|
|
290
290
|
|
|
291
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
291
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/bulk.js
|
|
292
292
|
var BULK = "bulk";
|
|
293
293
|
var bulkBox = { externalId: "memo:bulk", name: "bulk", kind: BULK };
|
|
294
294
|
|
|
295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/email-input.js
|
|
296
296
|
var sentAtOf = /* @__PURE__ */ __name((date, receivedAt) => {
|
|
297
297
|
const sent = date === null ? Number.NaN : Date.parse(date);
|
|
298
298
|
return Number.isNaN(sent) ? Date.parse(receivedAt) : sent;
|
|
@@ -312,7 +312,7 @@ var parsedEmail = /* @__PURE__ */ __name((mail, item, header, address) => ({
|
|
|
312
312
|
outgoing: mail.from === null ? null : mail.from.email === address
|
|
313
313
|
}), "parsedEmail");
|
|
314
314
|
|
|
315
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
315
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/presets.js
|
|
316
316
|
var PRESETS = {
|
|
317
317
|
social: {
|
|
318
318
|
about: "notifications from social networks",
|
|
@@ -404,7 +404,7 @@ var presetMatches = /* @__PURE__ */ __name((name, facts) => {
|
|
|
404
404
|
return false;
|
|
405
405
|
}, "presetMatches");
|
|
406
406
|
|
|
407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/probe.js
|
|
408
408
|
var share = /* @__PURE__ */ __name((part, whole) => Math.round(part / whole * 100) / 100, "share");
|
|
409
409
|
var isSent = /* @__PURE__ */ __name((item) => item.labels?.includes("Sent") || /(^|\/)sent\b/i.test(item.folder ?? ""), "isSent");
|
|
410
410
|
var groupKey = /* @__PURE__ */ __name((headers) => headers.listId === void 0 ? `from:${headers.from}` : `list:${headers.listId}`, "groupKey");
|
|
@@ -472,7 +472,7 @@ var probeMail = /* @__PURE__ */ __name((items, limit, ages = /* @__PURE__ */ new
|
|
|
472
472
|
};
|
|
473
473
|
}, "probeMail");
|
|
474
474
|
|
|
475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
475
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/facts.js
|
|
476
476
|
var factsOf = /* @__PURE__ */ __name((listed2, rules, ages = /* @__PURE__ */ new Map()) => {
|
|
477
477
|
const grouped = rules.some(({ match }) => match.score_at_least !== void 0 || match.preset !== void 0);
|
|
478
478
|
if (!grouped)
|
|
@@ -5743,7 +5743,7 @@ var PostalMime = class _PostalMime {
|
|
|
5743
5743
|
}
|
|
5744
5744
|
};
|
|
5745
5745
|
|
|
5746
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5746
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/headers.js
|
|
5747
5747
|
var unfold = /* @__PURE__ */ __name((text2) => text2.replace(/\r?\n[ \t]+/g, " "), "unfold");
|
|
5748
5748
|
var field = /* @__PURE__ */ __name((unfolded, name) => new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "im").exec(unfolded)?.[1], "field");
|
|
5749
5749
|
var fieldsOf = /* @__PURE__ */ __name((unfolded, name) => [...unfolded.matchAll(new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "gim"))].map(([, value]) => value), "fieldsOf");
|
|
@@ -5790,7 +5790,7 @@ var mailHeadersOf = /* @__PURE__ */ __name((raw) => {
|
|
|
5790
5790
|
};
|
|
5791
5791
|
}, "mailHeadersOf");
|
|
5792
5792
|
|
|
5793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5793
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/parse.js
|
|
5794
5794
|
var MAX_BODY_CHARS = 1e6;
|
|
5795
5795
|
var MAX_ATTACHMENTS = 50;
|
|
5796
5796
|
var BRACKETED_ID = /<[^<>\s]+>/g;
|
|
@@ -5855,13 +5855,13 @@ var parseMail = /* @__PURE__ */ __name(async (raw, maxBodyChars = MAX_BODY_CHARS
|
|
|
5855
5855
|
};
|
|
5856
5856
|
}, "parseMail");
|
|
5857
5857
|
|
|
5858
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5858
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/partial.js
|
|
5859
5859
|
var PARTIAL = "partial";
|
|
5860
5860
|
|
|
5861
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5861
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/account-key.js
|
|
5862
5862
|
var mailAccountKey = /* @__PURE__ */ __name((address) => ({ provider: "email", account: address.toLowerCase() }), "mailAccountKey");
|
|
5863
5863
|
|
|
5864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/rule-stored.js
|
|
5865
5865
|
var ACTION_OF = { full: "keep", envelope: "envelope", skip: "skip" };
|
|
5866
5866
|
var KINDS = {
|
|
5867
5867
|
from: "string",
|
|
@@ -5930,7 +5930,7 @@ var storedMailRuleSet = /* @__PURE__ */ __name(async (store, account, query) =>
|
|
|
5930
5930
|
}, "storedMailRuleSet");
|
|
5931
5931
|
var storedMailRules = /* @__PURE__ */ __name(async (store, account, query) => (await storedMailRuleSet(store, account, query)).rules, "storedMailRules");
|
|
5932
5932
|
|
|
5933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/rules.js
|
|
5934
5934
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
5935
5935
|
var domainOf = /* @__PURE__ */ __name((address) => address.slice(address.lastIndexOf("@") + 1), "domainOf");
|
|
5936
5936
|
var domainMatches = /* @__PURE__ */ __name((wanted2, sender) => {
|
|
@@ -6002,7 +6002,7 @@ var tagsOf = /* @__PURE__ */ __name((rules, facts) => {
|
|
|
6002
6002
|
}, "tagsOf");
|
|
6003
6003
|
var conditionKeys = /* @__PURE__ */ __name((match) => Object.keys(match).filter((key) => match[key] !== void 0).sort(), "conditionKeys");
|
|
6004
6004
|
|
|
6005
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/rule-input.js
|
|
6006
6006
|
var STORE_ACTION = { keep: "full", envelope: "envelope", skip: "skip" };
|
|
6007
6007
|
var LOWER = ["from", "domain", "list_id", "subject"];
|
|
6008
6008
|
var conditionsOf = /* @__PURE__ */ __name((match) => Object.fromEntries(conditionKeys(match).map((key) => {
|
|
@@ -6032,7 +6032,7 @@ var ruleInput = /* @__PURE__ */ __name((rule, source = rule.source ?? "owner") =
|
|
|
6032
6032
|
decidedAt: decidedAtOf(rule.decided_at)
|
|
6033
6033
|
}), "ruleInput");
|
|
6034
6034
|
|
|
6035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6035
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/rule-tags.js
|
|
6036
6036
|
var reuseOf = /* @__PURE__ */ __name((error) => {
|
|
6037
6037
|
const { details } = error;
|
|
6038
6038
|
return details?.reason === "tag-review.required" ? details.candidates?.[0]?.name : void 0;
|
|
@@ -6093,7 +6093,7 @@ var settleRuleTags = /* @__PURE__ */ __name(async (store, accountId, rules, outc
|
|
|
6093
6093
|
}
|
|
6094
6094
|
}, "settleRuleTags");
|
|
6095
6095
|
|
|
6096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6096
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/server-query.js
|
|
6097
6097
|
var DAY = 864e5;
|
|
6098
6098
|
var empty = /* @__PURE__ */ __name(() => ({ words: [], from: [], to: [], cc: [], subject: [], body: [] }), "empty");
|
|
6099
6099
|
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");
|
|
@@ -6166,7 +6166,7 @@ var mailCriteriaOf = /* @__PURE__ */ __name((text2, { exact, timezone } = {}) =>
|
|
|
6166
6166
|
};
|
|
6167
6167
|
}, "mailCriteriaOf");
|
|
6168
6168
|
|
|
6169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6169
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/server-search.js
|
|
6170
6170
|
var refusal = {
|
|
6171
6171
|
unsupported: "this mailbox's server cannot be searched \u2014 use --backend archive",
|
|
6172
6172
|
offline: "--backend server needs the network \u2014 not with --offline",
|
|
@@ -6381,7 +6381,7 @@ var searchMailServer = /* @__PURE__ */ __name(async (store, mailbox, access, req
|
|
|
6381
6381
|
return { report, sources };
|
|
6382
6382
|
}, "searchMailServer");
|
|
6383
6383
|
|
|
6384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/cli/marks.js
|
|
6385
6385
|
var iso = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
6386
6386
|
var mailMark = strictObject({
|
|
6387
6387
|
holder: string(),
|
|
@@ -6479,7 +6479,7 @@ var resetMarkCommand = /* @__PURE__ */ __name((mail) => answerEntity(annotate(ne
|
|
|
6479
6479
|
});
|
|
6480
6480
|
}), "resetMarkCommand");
|
|
6481
6481
|
|
|
6482
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/review.js
|
|
6483
6483
|
var REVIEW_THREADS = 50;
|
|
6484
6484
|
var REVIEW_PER_THREAD = 50;
|
|
6485
6485
|
var OWED_DAYS = 30;
|
|
@@ -6577,7 +6577,7 @@ var reviewMail = /* @__PURE__ */ __name(async (store, mailbox, options) => {
|
|
|
6577
6577
|
};
|
|
6578
6578
|
}, "reviewMail");
|
|
6579
6579
|
|
|
6580
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6580
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/cli/review.js
|
|
6581
6581
|
var DAY2 = 864e5;
|
|
6582
6582
|
var REVIEW_UNTRUSTED = [...SUMMARY_UNTRUSTED, ...MAIL_HIT_UNTRUSTED];
|
|
6583
6583
|
var MAIL_REVIEW_QUERY = defineQuery({
|
|
@@ -6859,7 +6859,7 @@ an agent over MCP, and each scheduled run.`).action(async function(query) {
|
|
|
6859
6859
|
saved?.save(found.checked ?? {}, found.complete ? { through: found.until } : {});
|
|
6860
6860
|
}), "mailReviewCommand");
|
|
6861
6861
|
|
|
6862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6862
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/cli/bulk-settings.js
|
|
6863
6863
|
var listed = /* @__PURE__ */ __name((words2) => words2.join(", "), "listed");
|
|
6864
6864
|
var MAIL_BULK_SETTINGS = [
|
|
6865
6865
|
{
|
|
@@ -6915,7 +6915,7 @@ var bulkTriageOf = /* @__PURE__ */ __name((config) => {
|
|
|
6915
6915
|
};
|
|
6916
6916
|
}, "bulkTriageOf");
|
|
6917
6917
|
|
|
6918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6918
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/node_modules/@wirecat/cli-core/dist/mail/cli/index.js
|
|
6919
6919
|
var absentAccount = /* @__PURE__ */ __name((error) => {
|
|
6920
6920
|
if (error instanceof CliError && error.code === "not_found")
|
|
6921
6921
|
return void 0;
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WNA2WNDK.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -16,12 +16,12 @@ 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.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/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.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/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.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/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.618.0_@wirecat+cli-base@0.91.0_commander@15.0.0_esbuild@0.28.2_type_a1c6dd927639f1a41fe5f9c53e24865e/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");
|