@wirecat/cli-memo 0.131.73 → 0.131.75
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-L5QBYI3V.js → all-profiles-LUGN5BHP.js} +9 -9
- package/dist/bundle/{anthropic-XXKHNCQS.js → anthropic-W7JXDZPL.js} +5 -5
- package/dist/bundle/{app-server-FDMP3IBP.js → app-server-TRRARE66.js} +50 -49
- package/dist/bundle/auto-AQAKW55Z.js +89 -0
- package/dist/bundle/{bun-VLN4HBWB.js → bun-S3JZIN4S.js} +2 -2
- package/dist/bundle/{bun-sqlite-KJCYXNMS.js → bun-sqlite-X3WQN3CV.js} +5 -5
- package/dist/bundle/{chunk-ZTONSM5X.js → chunk-2EZFUIL4.js} +2 -2
- package/dist/bundle/{chunk-HBP7AQXX.js → chunk-2QND7VJS.js} +12 -12
- package/dist/bundle/{chunk-2BH2RNFR.js → chunk-346PWQJF.js} +8 -8
- package/dist/bundle/{chunk-B7ATMWVO.js → chunk-4KDORB7C.js} +12 -37
- package/dist/bundle/{chunk-V3JOIUVB.js → chunk-4O2MYFYC.js} +4 -4
- package/dist/bundle/{chunk-I6MGDSYH.js → chunk-4QGUBKN5.js} +6 -6
- package/dist/bundle/{chunk-YDGZJK6U.js → chunk-4XI7S3PO.js} +24 -24
- package/dist/bundle/{chunk-XGXEWKR7.js → chunk-5CTOWPOL.js} +12 -12
- package/dist/bundle/{chunk-6OPZTBRR.js → chunk-5RLCKP5E.js} +59 -35
- package/dist/bundle/{chunk-VQUSPMYO.js → chunk-6AOPUQTC.js} +1 -1
- package/dist/bundle/chunk-6FTZ53TT.js +18 -0
- package/dist/bundle/{chunk-BTVND2RV.js → chunk-6I4DOBSD.js} +13 -13
- package/dist/bundle/{chunk-WJNLBQSV.js → chunk-6VMIMAZ2.js} +544 -586
- package/dist/bundle/{chunk-BBLT77AO.js → chunk-7Y4HUYI3.js} +26 -14
- package/dist/bundle/{chunk-JLC2RE4Y.js → chunk-AOHT5FNX.js} +82 -82
- package/dist/bundle/{chunk-VPR47AG4.js → chunk-BDVM5652.js} +1 -1
- package/dist/bundle/{chunk-MM3OMWST.js → chunk-C6MWOBEL.js} +24 -22
- package/dist/bundle/{chunk-LHZ4QBWB.js → chunk-E2PSOSTN.js} +2 -2
- package/dist/bundle/{chunk-J7ESMDVV.js → chunk-E74VWHZ2.js} +1 -1
- package/dist/bundle/{chunk-MLN4DPXN.js → chunk-EWRHTZD3.js} +17 -17
- package/dist/bundle/{chunk-FMSXN2N6.js → chunk-FGMFJUHR.js} +1058 -774
- package/dist/bundle/{chunk-A7QXBRUH.js → chunk-G45BLLDR.js} +4 -4
- package/dist/bundle/{chunk-KK3ZHBMI.js → chunk-GFVSZY4J.js} +26 -2
- package/dist/bundle/{chunk-IUEYR3TK.js → chunk-IQIM4UC7.js} +10 -10
- package/dist/bundle/{chunk-JABLJBXL.js → chunk-JINEHQ2T.js} +4927 -4920
- package/dist/bundle/chunk-KA5MDFLU.js +138 -0
- package/dist/bundle/{chunk-IKH4RCJO.js → chunk-KDBAY5JZ.js} +1 -1
- package/dist/bundle/{chunk-LJCT7YG6.js → chunk-KEBL3PY4.js} +4 -4
- package/dist/bundle/{chunk-C3UOKLIT.js → chunk-KUFOM3SB.js} +2 -2
- package/dist/bundle/{chunk-ZIGVDRSI.js → chunk-KYJBGCTC.js} +2 -2
- package/dist/bundle/{chunk-R3PK4Y7C.js → chunk-LPGE6ACC.js} +2 -2
- package/dist/bundle/{chunk-6ZRBQTKZ.js → chunk-LX3OSTBD.js} +4 -4
- package/dist/bundle/{chunk-NMOWIFH3.js → chunk-MPZBV5RL.js} +8 -8
- package/dist/bundle/{chunk-H74CWBSY.js → chunk-NR633L2N.js} +4 -4
- package/dist/bundle/{chunk-DSU6UR2X.js → chunk-NT5IOEEK.js} +1 -1
- package/dist/bundle/chunk-OWUEEVF6.js +177 -0
- package/dist/bundle/{chunk-L62FWN3Y.js → chunk-OYKQX4H3.js} +1 -1
- package/dist/bundle/{chunk-W6JPIP5C.js → chunk-QKWM4VK4.js} +6 -6
- package/dist/bundle/chunk-QYJJBE56.js +109 -0
- package/dist/bundle/{chunk-JPXDDRBD.js → chunk-RZS24U4N.js} +11 -11
- package/dist/bundle/{chunk-EI2P5E4C.js → chunk-SCYHDYLI.js} +3 -1
- package/dist/bundle/{chunk-OGUXOAOH.js → chunk-SIOPF2UG.js} +6 -6
- package/dist/bundle/{chunk-RB266FS6.js → chunk-SIQDO5DN.js} +4 -4
- package/dist/bundle/{chunk-O5KXCQE4.js → chunk-SJD4KTK2.js} +4 -4
- package/dist/bundle/{chunk-PAHBDQ5A.js → chunk-UIAGASGP.js} +6 -6
- package/dist/bundle/{chunk-ZI5Y2EUA.js → chunk-UU3OAPGO.js} +7 -7
- package/dist/bundle/{chunk-ON7ZROFP.js → chunk-V7BDQIZS.js} +2 -2
- package/dist/bundle/{chunk-EH7ACKFW.js → chunk-VB4OLJHK.js} +3 -3
- package/dist/bundle/{chunk-SILEPITK.js → chunk-VFKCZJFT.js} +25 -35
- package/dist/bundle/{chunk-HE2F4JII.js → chunk-VYCLOFPC.js} +24 -9
- package/dist/bundle/{chunk-UUBV5ATQ.js → chunk-W46O6RJ5.js} +20 -20
- package/dist/bundle/{chunk-QHLEMEF3.js → chunk-W64FO6DD.js} +53 -48
- package/dist/bundle/{chunk-LG5SQGNM.js → chunk-WKLF7CAM.js} +47 -45
- package/dist/bundle/{chunk-X35Q5CHE.js → chunk-WZHCQ4VZ.js} +8 -8
- package/dist/bundle/{chunk-PF6LXPK5.js → chunk-XMHWGHID.js} +4280 -4278
- package/dist/bundle/chunk-XPCTY6XV.js +116 -0
- package/dist/bundle/{chunk-E75LK7GD.js → chunk-XPSXVUZG.js} +3 -3
- package/dist/bundle/{chunk-XM6ZAPFW.js → chunk-XQ3RZU3J.js} +1 -1
- package/dist/bundle/{chunk-LOYI3STE.js → chunk-XQHOMQNZ.js} +4 -4
- package/dist/bundle/{chunk-K54MCZWM.js → chunk-YB4KGUXY.js} +3 -3
- package/dist/bundle/{chunk-US2HTCJA.js → chunk-YDTGYYOR.js} +4 -4
- package/dist/bundle/{chunk-EQLOQOIB.js → chunk-YLYZNPAZ.js} +2 -2
- package/dist/bundle/{chunk-BOZEBD3I.js → chunk-ZISVFVQU.js} +1445 -832
- package/dist/bundle/{chunk-IDCYBSML.js → chunk-ZL63GL3Y.js} +3 -3
- package/dist/bundle/{chunk-2C323QNQ.js → chunk-ZP2XI5DR.js} +9 -9
- package/dist/bundle/{chunk-3CANRF2G.js → chunk-ZTZLAGZA.js} +3 -3
- package/dist/bundle/{chunk-FSXQLNU4.js → chunk-ZXW5FPH2.js} +1 -1
- package/dist/bundle/command-contract-QQG343ZQ.js +32 -0
- package/dist/bundle/command-server-entry-XVUPTSSH.js +145 -0
- package/dist/bundle/{decode-OS6Y6ICA.js → decode-METZOSMG.js} +5 -5
- package/dist/bundle/{dispatch-VJSUBAUM.js → dispatch-PHB2Y6ZL.js} +8 -8
- package/dist/bundle/{echarts-JKGDUDYL.js → echarts-EBSP4VCK.js} +2 -2
- package/dist/bundle/{embed-UB4LH6MF.js → embed-GVVU7N7W.js} +6 -6
- package/dist/bundle/{embedder-TUQBG22Y.js → embedder-6BZOYAXV.js} +9 -9
- package/dist/bundle/entry-TBOYUMWB.js +21 -0
- package/dist/bundle/failure-EKMEAYZH.js +69 -0
- package/dist/bundle/{failure-GLF7OMMM.js → failure-OBT7CUVW.js} +2 -2
- package/dist/bundle/{first-run-VNJHZYGS.js → first-run-HQ4GA4EF.js} +11 -11
- package/dist/bundle/first-screen-6T65PQ37.js +30 -0
- package/dist/bundle/{instructions-Q6IZQUU7.js → instructions-VDKK3Y5Z.js} +1 -1
- package/dist/bundle/{mcp-H2WYFBNW.js → mcp-5275YLID.js} +2 -2
- package/dist/bundle/mcp-DEY765VA.js +90 -0
- package/dist/bundle/memo.js +16 -16
- package/dist/bundle/{node-ZSSIVKVC.js → node-HWGZYNUX.js} +2 -2
- package/dist/bundle/{node-sqlite-AUNJSQQL.js → node-sqlite-PSYENWGS.js} +6 -6
- package/dist/bundle/{oauth-2MTJFCMI.js → oauth-TQGMUJK2.js} +7 -7
- package/dist/bundle/{open-U7RC27MJ.js → open-KDDJDKCE.js} +5 -5
- package/dist/bundle/openai-QPGCUM4T.js +24 -0
- package/dist/bundle/{process-UEQX5STY.js → process-APNTXJJE.js} +1 -1
- package/dist/bundle/{program-G3F26HW7.js → program-OGDARQTX.js} +3060 -2547
- package/dist/bundle/{prompt-F23FC5PJ.js → prompt-BMBZCLGF.js} +5 -5
- package/dist/bundle/{recognize-ZVEGVD56.js → recognize-3SEY2MAR.js} +4 -4
- package/dist/bundle/{remote-CZXQS7PS.js → remote-ODH54UXO.js} +7 -7
- package/dist/bundle/{rerank-IRFXSVVO.js → rerank-JQHBNTUK.js} +7 -7
- package/dist/bundle/{serve-6CIMU5HP.js → serve-C22ZONSM.js} +9 -9
- package/dist/bundle/server-3UX245DY.js +62 -0
- package/dist/bundle/server-6G5XF3V5.js +48 -0
- package/dist/bundle/{server-H24MAUT2.js → server-ADPO4V4B.js} +70 -66
- package/dist/bundle/{state-TRWZWXB5.js → state-M3VGXSV4.js} +6 -6
- package/dist/bundle/{store-E4QUOOLX.js → store-GSZAXU3A.js} +13 -13
- package/dist/bundle/store-maintenance-command-QMTALGSQ.js +47 -0
- package/dist/bundle/update-HDJ23IV5.js +72 -0
- package/dist/context/context.d.ts.map +1 -1
- package/dist/context/context.js +4 -2
- package/dist/context/context.js.map +1 -1
- package/dist/contract-overrides/search.d.ts.map +1 -1
- package/dist/contract-overrides/search.js +6 -0
- package/dist/contract-overrides/search.js.map +1 -1
- package/dist/digest/backfill.d.ts +1 -1
- package/dist/digest/backfill.d.ts.map +1 -1
- package/dist/digest/backfill.js +71 -42
- package/dist/digest/backfill.js.map +1 -1
- package/dist/digest/brief.d.ts +14 -3
- package/dist/digest/brief.d.ts.map +1 -1
- package/dist/digest/brief.js +84 -34
- package/dist/digest/brief.js.map +1 -1
- package/dist/digest/command.d.ts +3 -0
- package/dist/digest/command.d.ts.map +1 -1
- package/dist/digest/command.js +23 -0
- package/dist/digest/command.js.map +1 -1
- package/dist/digest/digest-commands.d.ts +6 -0
- package/dist/digest/digest-commands.d.ts.map +1 -0
- package/dist/digest/digest-commands.js +241 -0
- package/dist/digest/digest-commands.js.map +1 -0
- package/dist/digest/digest.d.ts +5 -2
- package/dist/digest/digest.d.ts.map +1 -1
- package/dist/digest/digest.js +29 -8
- package/dist/digest/digest.js.map +1 -1
- package/dist/digest/digests.d.ts +72 -0
- package/dist/digest/digests.d.ts.map +1 -0
- package/dist/digest/digests.js +122 -0
- package/dist/digest/digests.js.map +1 -0
- package/dist/digest/tasks.d.ts +7 -4
- package/dist/digest/tasks.d.ts.map +1 -1
- package/dist/digest/tasks.js +13 -5
- package/dist/digest/tasks.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +17 -1
- package/dist/examples.js.map +1 -1
- package/dist/people/command.d.ts +0 -1
- package/dist/people/command.d.ts.map +1 -1
- package/dist/people/command.js +114 -12
- package/dist/people/command.js.map +1 -1
- package/dist/program.d.ts +4 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +9 -5
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +24 -0
- package/dist/reasons.js.map +1 -1
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +13 -1
- package/dist/rows.js.map +1 -1
- package/dist/schedule/command.d.ts +8 -0
- package/dist/schedule/command.d.ts.map +1 -1
- package/dist/schedule/command.js +4 -2
- package/dist/schedule/command.js.map +1 -1
- package/dist/search/answers.d.ts +6 -1
- package/dist/search/answers.d.ts.map +1 -1
- package/dist/search/answers.js +17 -1
- package/dist/search/answers.js.map +1 -1
- package/dist/search/command.d.ts.map +1 -1
- package/dist/search/command.js +13 -2
- package/dist/search/command.js.map +1 -1
- package/dist/search/lane-gates.d.ts +4 -3
- package/dist/search/lane-gates.d.ts.map +1 -1
- package/dist/search/lane-gates.js +13 -7
- package/dist/search/lane-gates.js.map +1 -1
- package/dist/search/people.d.ts +2 -0
- package/dist/search/people.d.ts.map +1 -1
- package/dist/search/people.js +11 -4
- package/dist/search/people.js.map +1 -1
- package/dist/search/search.d.ts +5 -1
- package/dist/search/search.d.ts.map +1 -1
- package/dist/search/search.js +5 -1
- package/dist/search/search.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/auto-YQAECIZA.js +0 -85
- package/dist/bundle/chunk-KQTR6YA4.js +0 -262
- package/dist/bundle/command-contract-6HJ322BP.js +0 -32
- package/dist/bundle/entry-N4NCIQYH.js +0 -18
- package/dist/bundle/failure-BJEFFYH3.js +0 -65
- package/dist/bundle/first-screen-4XGF2NZ3.js +0 -30
- package/dist/bundle/mcp-REIASUJR.js +0 -90
- package/dist/bundle/openai-2SJCG6XM.js +0 -23
- package/dist/bundle/server-27KXLL4E.js +0 -61
- package/dist/bundle/server-TWMUWMFM.js +0 -48
- package/dist/bundle/store-maintenance-command-GLHRB2VZ.js +0 -47
- package/dist/bundle/update-QQEM73O5.js +0 -68
- /package/dist/bundle/{chunk-SYWHHQMC.js → chunk-G5GW3FFJ.js} +0 -0
- /package/dist/bundle/{chunk-ZOWQ5B33.js → chunk-IXSUVHW6.js} +0 -0
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
errorCodes,
|
|
5
5
|
isCliError,
|
|
6
6
|
visibleControls
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2EZFUIL4.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.95.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,
|
|
@@ -1288,7 +1288,7 @@ function unwrap(schema) {
|
|
|
1288
1288
|
}
|
|
1289
1289
|
__name(unwrap, "unwrap");
|
|
1290
1290
|
|
|
1291
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1291
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.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
|
|
1292
1292
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
1293
1293
|
var effectsSchema = strictObject({
|
|
1294
1294
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -1925,7 +1925,7 @@ function toStandardJsonSchema(schema) {
|
|
|
1925
1925
|
}
|
|
1926
1926
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
1927
1927
|
|
|
1928
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1928
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.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
|
|
1929
1929
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
1930
1930
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
1931
1931
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -1967,7 +1967,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
1967
1967
|
return String(value);
|
|
1968
1968
|
}), "fill");
|
|
1969
1969
|
|
|
1970
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1970
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.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
|
|
1971
1971
|
var MAX_NEXT_STEPS = 2;
|
|
1972
1972
|
var COMPACT_FLAG = "--compact";
|
|
1973
1973
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
@@ -2030,6 +2030,20 @@ var issueSchema = strictObject({
|
|
|
2030
2030
|
/** The account, provider or source that is missing from the answer. */
|
|
2031
2031
|
source: text
|
|
2032
2032
|
});
|
|
2033
|
+
var rankingSchema = strictObject({
|
|
2034
|
+
applied: boolean(),
|
|
2035
|
+
reason_id: optional(dottedId),
|
|
2036
|
+
provider: text,
|
|
2037
|
+
model: text,
|
|
2038
|
+
endpoint: text,
|
|
2039
|
+
sent: pipe(number(), integer(), minValue(0)),
|
|
2040
|
+
cost_usd: nullable(pipe(number(), minValue(0))),
|
|
2041
|
+
usage: optional(strictObject({
|
|
2042
|
+
input: pipe(number(), integer(), minValue(0)),
|
|
2043
|
+
output: pipe(number(), integer(), minValue(0))
|
|
2044
|
+
})),
|
|
2045
|
+
ms: pipe(number(), integer(), minValue(0))
|
|
2046
|
+
});
|
|
2033
2047
|
var metaSchema = strictObject({
|
|
2034
2048
|
run_id: text,
|
|
2035
2049
|
duration_ms: pipe(number(), integer(), minValue(0)),
|
|
@@ -2041,7 +2055,8 @@ var metaSchema = strictObject({
|
|
|
2041
2055
|
/** When the command answered, for an agent that plans from "now" (WC-TIME-7); `timezone` names the zone of `now_local`. */
|
|
2042
2056
|
now: optional(isoTime),
|
|
2043
2057
|
now_local: optional(localTime),
|
|
2044
|
-
window: optional(strictObject({ since: optional(isoTime), until: optional(isoTime) }))
|
|
2058
|
+
window: optional(strictObject({ since: optional(isoTime), until: optional(isoTime) })),
|
|
2059
|
+
ranking: optional(rankingSchema)
|
|
2045
2060
|
});
|
|
2046
2061
|
var offsetOf = /* @__PURE__ */ __name((at, zone) => {
|
|
2047
2062
|
const name = new Intl.DateTimeFormat("en-US", { timeZone: zone, timeZoneName: "longOffset" }).formatToParts(at).find((part) => part.type === "timeZoneName")?.value ?? "GMT";
|
|
@@ -2079,7 +2094,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
2079
2094
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
2080
2095
|
].join("\n"), "jsonlOf");
|
|
2081
2096
|
|
|
2082
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2097
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.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
|
|
2083
2098
|
var CRASH_CODE = "internal_error";
|
|
2084
2099
|
var CRASH_REASON = "command.crashed";
|
|
2085
2100
|
var errorObjectSchema = strictObject({
|
|
@@ -2172,7 +2187,7 @@ var BASE_REASONS = defineReasons([
|
|
|
2172
2187
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
2173
2188
|
]);
|
|
2174
2189
|
|
|
2175
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2190
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.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
|
|
2176
2191
|
var SAME_COMMAND = "*";
|
|
2177
2192
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
2178
2193
|
var stepSchema = union([
|
|
@@ -2251,7 +2266,7 @@ var STEPS = defineSteps([
|
|
|
2251
2266
|
}
|
|
2252
2267
|
]);
|
|
2253
2268
|
|
|
2254
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2269
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.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
|
|
2255
2270
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
2256
2271
|
if (isCliError(failure))
|
|
2257
2272
|
return failure;
|
|
@@ -19,12 +19,12 @@ import {
|
|
|
19
19
|
string,
|
|
20
20
|
text,
|
|
21
21
|
unknown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VYCLOFPC.js";
|
|
23
23
|
import {
|
|
24
24
|
CliError,
|
|
25
25
|
isCliError,
|
|
26
26
|
visibleControls
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-2EZFUIL4.js";
|
|
28
28
|
import {
|
|
29
29
|
__commonJS,
|
|
30
30
|
__name,
|
|
@@ -1897,7 +1897,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1897
1897
|
}
|
|
1898
1898
|
});
|
|
1899
1899
|
|
|
1900
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1900
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
1901
1901
|
import { homedir, userInfo } from "node:os";
|
|
1902
1902
|
import { join, posix, win32 } from "node:path";
|
|
1903
1903
|
var PATH_KINDS = ["config", "state", "cache"];
|
|
@@ -1949,7 +1949,7 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
1949
1949
|
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
1950
1950
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
|
|
1951
1951
|
|
|
1952
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1952
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
1953
1953
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
1954
1954
|
if (signal?.aborted)
|
|
1955
1955
|
return Promise.reject(signal.reason);
|
|
@@ -1977,7 +1977,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
1977
1977
|
});
|
|
1978
1978
|
}, "waitForDrain");
|
|
1979
1979
|
|
|
1980
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1980
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
1981
1981
|
var processStreams = {
|
|
1982
1982
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
1983
1983
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -2006,7 +2006,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
2006
2006
|
};
|
|
2007
2007
|
}, "captureStreams");
|
|
2008
2008
|
|
|
2009
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2009
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
2010
2010
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2011
2011
|
import { styleText } from "node:util";
|
|
2012
2012
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2080,7 +2080,7 @@ var BORDERLESS = {
|
|
|
2080
2080
|
middle: ""
|
|
2081
2081
|
};
|
|
2082
2082
|
|
|
2083
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2083
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2084
2084
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2085
2085
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2086
2086
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -2117,7 +2117,7 @@ var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processS
|
|
|
2117
2117
|
};
|
|
2118
2118
|
}, "createRenderer");
|
|
2119
2119
|
|
|
2120
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2120
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
2121
2121
|
var DEFAULT_RETRY = {
|
|
2122
2122
|
retries: 1,
|
|
2123
2123
|
baseDelayMs: 250,
|
|
@@ -2129,7 +2129,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
2129
2129
|
return Math.round(random() * ceiling);
|
|
2130
2130
|
}, "backoffMs");
|
|
2131
2131
|
|
|
2132
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2132
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
|
|
2133
2133
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
2134
2134
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
2135
2135
|
if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
|
|
@@ -2194,7 +2194,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
2194
2194
|
return project(value, fields);
|
|
2195
2195
|
}, "projectFields");
|
|
2196
2196
|
|
|
2197
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2197
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
2198
2198
|
var BATCH_LIMITS = Object.freeze({
|
|
2199
2199
|
requests: 32,
|
|
2200
2200
|
input_bytes: 262144,
|
|
@@ -2341,7 +2341,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2341
2341
|
};
|
|
2342
2342
|
}, "runBatch");
|
|
2343
2343
|
|
|
2344
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2344
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
2345
2345
|
import { randomBytes } from "node:crypto";
|
|
2346
2346
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2347
2347
|
import { dirname, join as join2 } from "node:path";
|
|
@@ -2385,16 +2385,16 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2385
2385
|
`, 384);
|
|
2386
2386
|
}, "saveConfigFile");
|
|
2387
2387
|
|
|
2388
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2388
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
|
|
2389
2389
|
var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
2390
2390
|
var baseConstantsSchema = object({});
|
|
2391
2391
|
var LayerSchema = record(string(), unknown());
|
|
2392
2392
|
|
|
2393
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2393
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2394
2394
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2395
2395
|
import { join as join3, resolve } from "node:path";
|
|
2396
2396
|
|
|
2397
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2397
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
2398
2398
|
import { createRequire } from "node:module";
|
|
2399
2399
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
2400
2400
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -2414,7 +2414,7 @@ var systemKeyring = {
|
|
|
2414
2414
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
2415
2415
|
};
|
|
2416
2416
|
|
|
2417
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2417
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2418
2418
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2419
2419
|
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
2420
2420
|
var Credentials = class {
|
|
@@ -2549,7 +2549,7 @@ var Credentials = class {
|
|
|
2549
2549
|
}
|
|
2550
2550
|
};
|
|
2551
2551
|
|
|
2552
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2552
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
2553
2553
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2554
2554
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2555
2555
|
if (signal?.aborted) {
|
|
@@ -2563,7 +2563,7 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2563
2563
|
}, { once: true });
|
|
2564
2564
|
}), "realSleep");
|
|
2565
2565
|
|
|
2566
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2566
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/deadline.js
|
|
2567
2567
|
var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSleep } = {}) => {
|
|
2568
2568
|
if (timeoutMs !== void 0 && (!Number.isSafeInteger(timeoutMs) || timeoutMs < 0 || timeoutMs > 2147483647))
|
|
2569
2569
|
throw new CliError("validation_error", "timeoutMs must be an integer from zero through 2147483647");
|
|
@@ -2647,10 +2647,10 @@ var createDeadline = /* @__PURE__ */ __name(({ timeoutMs, signal, sleep = realSl
|
|
|
2647
2647
|
};
|
|
2648
2648
|
}, "createDeadline");
|
|
2649
2649
|
|
|
2650
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2650
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2651
2651
|
import { appendFileSync } from "node:fs";
|
|
2652
2652
|
|
|
2653
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2653
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
|
|
2654
2654
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
2655
2655
|
var logRecordSchema = strictObject({
|
|
2656
2656
|
time: isoTime,
|
|
@@ -2728,7 +2728,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
|
|
|
2728
2728
|
return traceId;
|
|
2729
2729
|
}, "traceIdOf");
|
|
2730
2730
|
|
|
2731
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2731
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2732
2732
|
var REDACTED_FIELDS = [
|
|
2733
2733
|
"authorization",
|
|
2734
2734
|
"Authorization",
|
|
@@ -27,19 +27,19 @@ import {
|
|
|
27
27
|
serverSearchOptions,
|
|
28
28
|
summaryOf,
|
|
29
29
|
unansweredHours
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-FGMFJUHR.js";
|
|
31
31
|
import {
|
|
32
32
|
MAIL_HIT_UNTRUSTED,
|
|
33
33
|
messagesAnswer,
|
|
34
34
|
offsetOf,
|
|
35
35
|
shownOf
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-VFKCZJFT.js";
|
|
37
37
|
import {
|
|
38
38
|
messageItem
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-AOHT5FNX.js";
|
|
40
40
|
import {
|
|
41
41
|
knownPermissionKeys
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-4XI7S3PO.js";
|
|
43
43
|
import {
|
|
44
44
|
AGENDA_DEFAULTS,
|
|
45
45
|
DEFAULT_BACKEND,
|
|
@@ -63,7 +63,17 @@ import {
|
|
|
63
63
|
sourceKey,
|
|
64
64
|
typedQuery,
|
|
65
65
|
withQuery
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-6VMIMAZ2.js";
|
|
67
|
+
import {
|
|
68
|
+
DEFAULT_DECISION_POLICY,
|
|
69
|
+
MESSAGE_PARSING,
|
|
70
|
+
THREAD_COLUMNS,
|
|
71
|
+
mailOwnText,
|
|
72
|
+
queryFilter,
|
|
73
|
+
registrableOf,
|
|
74
|
+
scoreGroup,
|
|
75
|
+
validateFields
|
|
76
|
+
} from "./chunk-ZISVFVQU.js";
|
|
67
77
|
import {
|
|
68
78
|
Command,
|
|
69
79
|
FETCH,
|
|
@@ -93,21 +103,11 @@ import {
|
|
|
93
103
|
snakeKeys,
|
|
94
104
|
withSettingDefaults,
|
|
95
105
|
withoutSetting
|
|
96
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-XMHWGHID.js";
|
|
97
107
|
import {
|
|
98
108
|
mailHolderVariable,
|
|
99
109
|
readOnlyLockOf
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import {
|
|
102
|
-
DEFAULT_DECISION_POLICY,
|
|
103
|
-
MESSAGE_PARSING,
|
|
104
|
-
THREAD_COLUMNS,
|
|
105
|
-
mailOwnText,
|
|
106
|
-
queryFilter,
|
|
107
|
-
registrableOf,
|
|
108
|
-
scoreGroup,
|
|
109
|
-
validateFields
|
|
110
|
-
} from "./chunk-BOZEBD3I.js";
|
|
110
|
+
} from "./chunk-KUFOM3SB.js";
|
|
111
111
|
import {
|
|
112
112
|
DEAL_KINDS,
|
|
113
113
|
KEEP_RUNS_FOR_DAYS,
|
|
@@ -125,12 +125,12 @@ import {
|
|
|
125
125
|
time,
|
|
126
126
|
timezoneOf,
|
|
127
127
|
untrusted
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-JINEHQ2T.js";
|
|
129
129
|
import {
|
|
130
130
|
configFilePath,
|
|
131
131
|
resolvePaths,
|
|
132
132
|
saveConfigFile
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-W46O6RJ5.js";
|
|
134
134
|
import {
|
|
135
135
|
MAX_NEXT_STEPS,
|
|
136
136
|
array,
|
|
@@ -154,10 +154,10 @@ import {
|
|
|
154
154
|
string,
|
|
155
155
|
union,
|
|
156
156
|
unknown
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-VYCLOFPC.js";
|
|
158
158
|
import {
|
|
159
159
|
CliError
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-2EZFUIL4.js";
|
|
161
161
|
import {
|
|
162
162
|
__name,
|
|
163
163
|
__toESM
|
|
@@ -1796,7 +1796,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
|
|
|
1796
1796
|
}, "createDataURL");
|
|
1797
1797
|
var stringToBytes = qrcode.stringToBytes;
|
|
1798
1798
|
|
|
1799
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/attachments.js
|
|
1800
1800
|
var MAX_ATTACHMENT_CHARS = 2e5;
|
|
1801
1801
|
var DEFAULT_ATTACHMENT_POLICY = { read: true, maxBytes: 10 * 1024 * 1024 };
|
|
1802
1802
|
var POLICY_SKIPS = ["not-read", "too-large"];
|
|
@@ -1835,7 +1835,7 @@ var readAttachments = /* @__PURE__ */ __name(async (mail, messageId, { loadEngin
|
|
|
1835
1835
|
return files;
|
|
1836
1836
|
}, "readAttachments");
|
|
1837
1837
|
|
|
1838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1838
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/read.js
|
|
1839
1839
|
var lowerSuspicious = /* @__PURE__ */ __name((items, suspicious) => [
|
|
1840
1840
|
...items.filter((item) => !suspicious(item)),
|
|
1841
1841
|
...items.filter(suspicious)
|
|
@@ -1922,11 +1922,11 @@ var attachmentsText = /* @__PURE__ */ __name((hit) => (hit.attachments ?? []).ma
|
|
|
1922
1922
|
${file.text.replace(/\n/g, "\n ")}`;
|
|
1923
1923
|
}).join("\n"), "attachmentsText");
|
|
1924
1924
|
|
|
1925
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1925
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/bulk.js
|
|
1926
1926
|
var BULK = "bulk";
|
|
1927
1927
|
var bulkBox = { externalId: "memo:bulk", name: "bulk", kind: BULK };
|
|
1928
1928
|
|
|
1929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/email-input.js
|
|
1930
1930
|
var sentAtOf = /* @__PURE__ */ __name((date, receivedAt) => {
|
|
1931
1931
|
const sent = date === null ? Number.NaN : Date.parse(date);
|
|
1932
1932
|
return Number.isNaN(sent) ? Date.parse(receivedAt) : sent;
|
|
@@ -1946,7 +1946,7 @@ var parsedEmail = /* @__PURE__ */ __name((mail, item, header, address) => ({
|
|
|
1946
1946
|
outgoing: mail.from === null ? null : mail.from.email === address
|
|
1947
1947
|
}), "parsedEmail");
|
|
1948
1948
|
|
|
1949
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/presets.js
|
|
1950
1950
|
var PRESETS = {
|
|
1951
1951
|
social: {
|
|
1952
1952
|
about: "notifications from social networks",
|
|
@@ -2038,7 +2038,7 @@ var presetMatches = /* @__PURE__ */ __name((name, facts) => {
|
|
|
2038
2038
|
return false;
|
|
2039
2039
|
}, "presetMatches");
|
|
2040
2040
|
|
|
2041
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2041
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/probe.js
|
|
2042
2042
|
var share = /* @__PURE__ */ __name((part, whole) => Math.round(part / whole * 100) / 100, "share");
|
|
2043
2043
|
var isSent = /* @__PURE__ */ __name((item) => item.labels?.includes("Sent") || /(^|\/)sent\b/i.test(item.folder ?? ""), "isSent");
|
|
2044
2044
|
var groupKey = /* @__PURE__ */ __name((headers) => headers.listId === void 0 ? `from:${headers.from}` : `list:${headers.listId}`, "groupKey");
|
|
@@ -2106,7 +2106,7 @@ var probeMail = /* @__PURE__ */ __name((items, limit, ages = /* @__PURE__ */ new
|
|
|
2106
2106
|
};
|
|
2107
2107
|
}, "probeMail");
|
|
2108
2108
|
|
|
2109
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2109
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/facts.js
|
|
2110
2110
|
var factsOf = /* @__PURE__ */ __name((listed2, rules, ages = /* @__PURE__ */ new Map()) => {
|
|
2111
2111
|
const grouped = rules.some(({ match }) => match.score_at_least !== void 0 || match.preset !== void 0);
|
|
2112
2112
|
if (!grouped)
|
|
@@ -7377,7 +7377,7 @@ var PostalMime = class _PostalMime {
|
|
|
7377
7377
|
}
|
|
7378
7378
|
};
|
|
7379
7379
|
|
|
7380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/headers.js
|
|
7381
7381
|
var unfold = /* @__PURE__ */ __name((text2) => text2.replace(/\r?\n[ \t]+/g, " "), "unfold");
|
|
7382
7382
|
var field = /* @__PURE__ */ __name((unfolded, name) => new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "im").exec(unfolded)?.[1], "field");
|
|
7383
7383
|
var fieldsOf = /* @__PURE__ */ __name((unfolded, name) => [...unfolded.matchAll(new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "gim"))].map(([, value]) => value), "fieldsOf");
|
|
@@ -7424,7 +7424,7 @@ var mailHeadersOf = /* @__PURE__ */ __name((raw) => {
|
|
|
7424
7424
|
};
|
|
7425
7425
|
}, "mailHeadersOf");
|
|
7426
7426
|
|
|
7427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/parse.js
|
|
7428
7428
|
var MAX_BODY_CHARS = 1e6;
|
|
7429
7429
|
var MAX_ATTACHMENTS = 50;
|
|
7430
7430
|
var BRACKETED_ID = /<[^<>\s]+>/g;
|
|
@@ -7489,13 +7489,13 @@ var parseMail = /* @__PURE__ */ __name(async (raw, maxBodyChars = MAX_BODY_CHARS
|
|
|
7489
7489
|
};
|
|
7490
7490
|
}, "parseMail");
|
|
7491
7491
|
|
|
7492
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7492
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/partial.js
|
|
7493
7493
|
var PARTIAL = "partial";
|
|
7494
7494
|
|
|
7495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/account-key.js
|
|
7496
7496
|
var mailAccountKey = /* @__PURE__ */ __name((address) => ({ provider: "email", account: address.toLowerCase() }), "mailAccountKey");
|
|
7497
7497
|
|
|
7498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/rule-stored.js
|
|
7499
7499
|
var ACTION_OF = { full: "keep", envelope: "envelope", skip: "skip" };
|
|
7500
7500
|
var KINDS2 = {
|
|
7501
7501
|
from: "string",
|
|
@@ -7564,7 +7564,7 @@ var storedMailRuleSet = /* @__PURE__ */ __name(async (store, account, query) =>
|
|
|
7564
7564
|
}, "storedMailRuleSet");
|
|
7565
7565
|
var storedMailRules = /* @__PURE__ */ __name(async (store, account, query) => (await storedMailRuleSet(store, account, query)).rules, "storedMailRules");
|
|
7566
7566
|
|
|
7567
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7567
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/rules.js
|
|
7568
7568
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
7569
7569
|
var domainOf = /* @__PURE__ */ __name((address) => address.slice(address.lastIndexOf("@") + 1), "domainOf");
|
|
7570
7570
|
var domainMatches = /* @__PURE__ */ __name((wanted2, sender) => {
|
|
@@ -7636,7 +7636,7 @@ var tagsOf = /* @__PURE__ */ __name((rules, facts) => {
|
|
|
7636
7636
|
}, "tagsOf");
|
|
7637
7637
|
var conditionKeys = /* @__PURE__ */ __name((match) => Object.keys(match).filter((key) => match[key] !== void 0).sort(), "conditionKeys");
|
|
7638
7638
|
|
|
7639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/rule-input.js
|
|
7640
7640
|
var STORE_ACTION = { keep: "full", envelope: "envelope", skip: "skip" };
|
|
7641
7641
|
var LOWER = ["from", "domain", "list_id", "subject"];
|
|
7642
7642
|
var conditionsOf = /* @__PURE__ */ __name((match) => Object.fromEntries(conditionKeys(match).map((key) => {
|
|
@@ -7666,7 +7666,7 @@ var ruleInput = /* @__PURE__ */ __name((rule, source = rule.source ?? "owner") =
|
|
|
7666
7666
|
decidedAt: decidedAtOf(rule.decided_at)
|
|
7667
7667
|
}), "ruleInput");
|
|
7668
7668
|
|
|
7669
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7669
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/rule-tags.js
|
|
7670
7670
|
var reuseOf = /* @__PURE__ */ __name((error) => {
|
|
7671
7671
|
const { details } = error;
|
|
7672
7672
|
return details?.reason === "tag-review.required" ? details.candidates?.[0]?.name : void 0;
|
|
@@ -7727,7 +7727,7 @@ var settleRuleTags = /* @__PURE__ */ __name(async (store, accountId, rules, outc
|
|
|
7727
7727
|
}
|
|
7728
7728
|
}, "settleRuleTags");
|
|
7729
7729
|
|
|
7730
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7730
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/server-query.js
|
|
7731
7731
|
var DAY = 864e5;
|
|
7732
7732
|
var empty = /* @__PURE__ */ __name(() => ({ words: [], from: [], to: [], cc: [], subject: [], body: [] }), "empty");
|
|
7733
7733
|
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");
|
|
@@ -7800,7 +7800,7 @@ var mailCriteriaOf = /* @__PURE__ */ __name((text2, { exact, timezone } = {}) =>
|
|
|
7800
7800
|
};
|
|
7801
7801
|
}, "mailCriteriaOf");
|
|
7802
7802
|
|
|
7803
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7803
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/server-search.js
|
|
7804
7804
|
var refusal = {
|
|
7805
7805
|
unsupported: "this mailbox's server cannot be searched \u2014 use --backend archive",
|
|
7806
7806
|
offline: "--backend server needs the network \u2014 not with --offline",
|
|
@@ -8015,7 +8015,7 @@ var searchMailServer = /* @__PURE__ */ __name(async (store, mailbox, access, req
|
|
|
8015
8015
|
return { report, sources };
|
|
8016
8016
|
}, "searchMailServer");
|
|
8017
8017
|
|
|
8018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8018
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/cli/marks.js
|
|
8019
8019
|
var iso = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
8020
8020
|
var mailMark = strictObject({
|
|
8021
8021
|
holder: string(),
|
|
@@ -8113,7 +8113,7 @@ var resetMarkCommand = /* @__PURE__ */ __name((mail) => answerEntity(annotate(ne
|
|
|
8113
8113
|
});
|
|
8114
8114
|
}), "resetMarkCommand");
|
|
8115
8115
|
|
|
8116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/review.js
|
|
8117
8117
|
var REVIEW_THREADS = 50;
|
|
8118
8118
|
var REVIEW_PER_THREAD = 50;
|
|
8119
8119
|
var OWED_DAYS = 30;
|
|
@@ -8211,7 +8211,7 @@ var reviewMail = /* @__PURE__ */ __name(async (store, mailbox, options) => {
|
|
|
8211
8211
|
};
|
|
8212
8212
|
}, "reviewMail");
|
|
8213
8213
|
|
|
8214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/cli/review.js
|
|
8215
8215
|
var DAY2 = 864e5;
|
|
8216
8216
|
var REVIEW_UNTRUSTED = [...SUMMARY_UNTRUSTED, ...MAIL_HIT_UNTRUSTED];
|
|
8217
8217
|
var MAIL_REVIEW_QUERY = defineQuery({
|
|
@@ -8493,7 +8493,7 @@ an agent over MCP, and each scheduled run.`).action(async function(query) {
|
|
|
8493
8493
|
saved?.save(found.checked ?? {}, found.complete ? { through: found.until } : {});
|
|
8494
8494
|
}), "mailReviewCommand");
|
|
8495
8495
|
|
|
8496
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/cli/bulk-settings.js
|
|
8497
8497
|
var listed = /* @__PURE__ */ __name((words2) => words2.join(", "), "listed");
|
|
8498
8498
|
var MAIL_BULK_SETTINGS = [
|
|
8499
8499
|
{
|
|
@@ -8549,7 +8549,7 @@ var bulkTriageOf = /* @__PURE__ */ __name((config) => {
|
|
|
8549
8549
|
};
|
|
8550
8550
|
}, "bulkTriageOf");
|
|
8551
8551
|
|
|
8552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.624.0_@wirecat+cli-base@0.95.0_commander@15.0.0_esbuild@0.28.2_type_845871b12d72ec55150c07203d8cbfbb/node_modules/@wirecat/cli-core/dist/mail/cli/index.js
|
|
8553
8553
|
var absentAccount = /* @__PURE__ */ __name((error) => {
|
|
8554
8554
|
if (error instanceof CliError && error.code === "not_found")
|
|
8555
8555
|
return void 0;
|
|
@@ -8867,25 +8867,30 @@ var leftOut = /* @__PURE__ */ __name((lane, what, key) => ({
|
|
|
8867
8867
|
resource: lane,
|
|
8868
8868
|
reason: `${what} left out: memo's MCP server denies ${key}`
|
|
8869
8869
|
}), "leftOut");
|
|
8870
|
-
var lanesFor = /* @__PURE__ */ __name((command, asked) => {
|
|
8870
|
+
var lanesFor = /* @__PURE__ */ __name((command, asked, denied = []) => {
|
|
8871
8871
|
const lanes = asked ?? [...RESOURCES_SEARCHED];
|
|
8872
|
-
const
|
|
8872
|
+
const granted2 = /* @__PURE__ */ __name((key) => grantedLevel(command, key) === "deny", "granted");
|
|
8873
8873
|
const skipped = [];
|
|
8874
8874
|
const hidden = /* @__PURE__ */ new Set();
|
|
8875
8875
|
const off = /* @__PURE__ */ new Set();
|
|
8876
8876
|
for (const gate of LANE_GATES) {
|
|
8877
8877
|
if (!lanes.includes(gate.lane))
|
|
8878
8878
|
continue;
|
|
8879
|
-
if (
|
|
8879
|
+
if (granted2(gate.key)) {
|
|
8880
8880
|
off.add(gate.lane);
|
|
8881
8881
|
skipped.push(leftOut(gate.lane, gate.lane, gate.key));
|
|
8882
8882
|
continue;
|
|
8883
8883
|
}
|
|
8884
|
-
for (const [kind, key] of Object.entries(gate.kinds))
|
|
8885
|
-
|
|
8884
|
+
for (const [kind, key] of Object.entries(gate.kinds)) {
|
|
8885
|
+
const saved = denied.find((one) => one.kind === kind);
|
|
8886
|
+
if (granted2(key)) {
|
|
8886
8887
|
hidden.add(kind);
|
|
8887
8888
|
skipped.push(leftOut(gate.lane, kind, key));
|
|
8889
|
+
} else if (saved) {
|
|
8890
|
+
hidden.add(kind);
|
|
8891
|
+
skipped.push({ code: "permission_error", resource: gate.lane, reason: saved.why });
|
|
8888
8892
|
}
|
|
8893
|
+
}
|
|
8889
8894
|
if (Object.keys(gate.kinds).every((kind) => hidden.has(kind)))
|
|
8890
8895
|
off.add(gate.lane);
|
|
8891
8896
|
}
|