@wirecat/mail-cli 0.30.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-523GLORJ.js → all-profiles-XL62TNUO.js} +19 -29
- package/dist/bundle/{anthropic-KKYGROQR.js → anthropic-3MSWVYCE.js} +2 -2
- package/dist/bundle/{app-server-RJR7U5NT.js → app-server-RRNR5XFA.js} +45 -60
- package/dist/bundle/{bun-EBQHHLKR.js → bun-E3F3PEQQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-LTG2RRSL.js → bun-sqlite-UOFN77LO.js} +3 -3
- package/dist/bundle/{chunk-IIV43UIC.js → chunk-3CJ4C6BB.js} +12 -12
- package/dist/bundle/{chunk-ZG2XBWFT.js → chunk-3V6J7VPF.js} +3 -3
- package/dist/bundle/{chunk-U7VYDTXN.js → chunk-4BW5JACS.js} +16 -16
- package/dist/bundle/{chunk-MP572GP7.js → chunk-4ME2NHNJ.js} +2 -2
- package/dist/bundle/{chunk-JKWNPRZD.js → chunk-5YRR52NH.js} +1 -1
- package/dist/bundle/{chunk-QGIQ62KV.js → chunk-6UOUDIXL.js} +382 -366
- package/dist/bundle/{chunk-KE2RQUQO.js → chunk-7E7YXQ52.js} +17 -17
- package/dist/bundle/{chunk-ENKZEQ4Y.js → chunk-BKRIIZPV.js} +2 -2
- package/dist/bundle/{chunk-54JKDFOV.js → chunk-BNP7WLDQ.js} +1 -1
- package/dist/bundle/{chunk-WXQK5RO5.js → chunk-BS6WYCNZ.js} +32 -22
- package/dist/bundle/{chunk-B3NXAN6J.js → chunk-BXMLIKUM.js} +146 -146
- package/dist/bundle/{chunk-NMN7RTX5.js → chunk-D6D6JLXG.js} +16 -16
- package/dist/bundle/{chunk-S2KKQA7O.js → chunk-DCR3IWC7.js} +38 -47
- package/dist/bundle/{chunk-LN2LWPN2.js → chunk-DDCDOBZS.js} +1 -1
- package/dist/bundle/{chunk-XGEPAJBY.js → chunk-DPDS6IZJ.js} +1 -1
- package/dist/bundle/{chunk-Q23EEGPC.js → chunk-DWBY7DMF.js} +1 -1
- package/dist/bundle/{chunk-SNZFQ5SS.js → chunk-DZSS2IUK.js} +14 -2
- package/dist/bundle/{chunk-26H2HVJD.js → chunk-E3IOR37T.js} +2 -2
- package/dist/bundle/{chunk-5X5A3CAX.js → chunk-EMVLCION.js} +1 -1
- package/dist/bundle/{chunk-F22PLRCG.js → chunk-EV5SR3OC.js} +7 -7
- package/dist/bundle/{chunk-SPWKGRTO.js → chunk-FRXDSR45.js} +1 -1
- package/dist/bundle/{chunk-YMJXGIYG.js → chunk-FYP2M6IT.js} +23 -23
- package/dist/bundle/{chunk-FYXGD6R6.js → chunk-GWKGZOSO.js} +2 -2
- package/dist/bundle/{chunk-ONA3UI3R.js → chunk-GXBNTKJW.js} +2 -2
- package/dist/bundle/{chunk-KIZYN3NG.js → chunk-GZLCZU5B.js} +5 -5
- package/dist/bundle/{chunk-MVDP7VL6.js → chunk-H2QTUZ3C.js} +1 -1
- package/dist/bundle/{chunk-4F7WQHDO.js → chunk-HZCINHHS.js} +1 -1
- package/dist/bundle/{chunk-A3YXTDTP.js → chunk-HZL3X4XR.js} +15 -15
- package/dist/bundle/{chunk-D3J4T5OZ.js → chunk-I3BQ2QIY.js} +12 -12
- package/dist/bundle/{chunk-YNI57LTZ.js → chunk-I5Y6Y7Q5.js} +1 -1
- package/dist/bundle/{chunk-FL2TKSZY.js → chunk-ITU6K7LU.js} +1 -1
- package/dist/bundle/{chunk-T7A6HSBF.js → chunk-JLIVJSCF.js} +1 -1
- package/dist/bundle/{chunk-J5PUHGK2.js → chunk-JYGFEMTR.js} +1 -1
- package/dist/bundle/{chunk-2M7PPII5.js → chunk-KPFB2VUY.js} +745 -336
- package/dist/bundle/{chunk-3ECFSRLQ.js → chunk-LGDJDD5J.js} +3 -3
- package/dist/bundle/{chunk-GCSFZTRI.js → chunk-MS5XYEYW.js} +9 -5
- package/dist/bundle/{chunk-3HCEKXXB.js → chunk-NEJU74O4.js} +6 -6
- package/dist/bundle/{chunk-E2SL7HIZ.js → chunk-NUN7DBR4.js} +9 -9
- package/dist/bundle/{chunk-TIMBTN5Z.js → chunk-NV3WPD3B.js} +5 -5
- package/dist/bundle/{chunk-DBI22GQL.js → chunk-NYQPKZWL.js} +500 -322
- package/dist/bundle/{chunk-6C7SA4LD.js → chunk-OP5ZLH53.js} +57 -54
- package/dist/bundle/{chunk-SN5V6CKH.js → chunk-OXHQNEXU.js} +98 -6
- package/dist/bundle/{chunk-HZUUVNWC.js → chunk-P6CYVOL6.js} +1 -1
- package/dist/bundle/{chunk-GDFJKUMK.js → chunk-PIXFZZUZ.js} +6 -6
- package/dist/bundle/{chunk-WHS3CTTM.js → chunk-PZL7DHVJ.js} +7 -7
- package/dist/bundle/{chunk-CWAA73PJ.js → chunk-QANXOKYQ.js} +5 -5
- package/dist/bundle/{chunk-LM4K6K2R.js → chunk-QSXJ2BVQ.js} +4 -4
- package/dist/bundle/{chunk-HVJ2WQI7.js → chunk-QVGCHTTU.js} +10 -10
- package/dist/bundle/{chunk-R3IFRHZ2.js → chunk-S2QO6KUI.js} +2 -2
- package/dist/bundle/{chunk-BOGGQOVO.js → chunk-SQA5JI7Q.js} +1 -1
- package/dist/bundle/{chunk-K5FTIIYR.js → chunk-T72DWT37.js} +4 -4
- package/dist/bundle/{chunk-GXKFRZUP.js → chunk-THZHNCJP.js} +3 -3
- package/dist/bundle/{chunk-RLPWLGP6.js → chunk-TUXNILKR.js} +7 -7
- package/dist/bundle/{chunk-L2D5QYI3.js → chunk-UFMR2TB3.js} +2 -2
- package/dist/bundle/{chunk-NV2REPY6.js → chunk-WZGFC7D5.js} +1 -1
- package/dist/bundle/{command-contract-ETECA2AC.js → command-contract-YRNKDQDL.js} +15 -15
- package/dist/bundle/{command-server-entry-BFXRYTBC.js → command-server-entry-A3FCP24M.js} +21 -21
- package/dist/bundle/{decode-4QRYNPD5.js → decode-FI2ISRNZ.js} +2 -2
- package/dist/bundle/{dist-MHJPECI4.js → dist-NLOOZJ64.js} +15 -11
- package/dist/bundle/{echarts-EJXBKCJT.js → echarts-PMAJUJFE.js} +2 -2
- package/dist/bundle/{embed-46WZZMUQ.js → embed-OIMT6SAX.js} +3 -3
- package/dist/bundle/{embedder-56WHJKJE.js → embedder-Q5IF5WIM.js} +6 -6
- package/dist/bundle/{first-run-CATDBOBV.js → first-run-4L53QWOT.js} +6 -6
- package/dist/bundle/first-screen-ZPQLAAIS.js +34 -0
- package/dist/bundle/{instructions-Z7GVGWXS.js → instructions-ZJGGGXOA.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-L2PVEW3N.js → node-DCSOHRD6.js} +2 -2
- package/dist/bundle/{node-sqlite-RIGII7U7.js → node-sqlite-7F77K5JA.js} +4 -4
- package/dist/bundle/{oauth-OWT6NYRS.js → oauth-LVPMEN6M.js} +4 -4
- package/dist/bundle/{open-D3SPYL7O.js → open-XM5LWEN6.js} +2 -2
- package/dist/bundle/{openai-IPTZDMFD.js → openai-H2LCGK22.js} +12 -12
- package/dist/bundle/{process-MNZTQ2DA.js → process-MFC5VSPT.js} +1 -1
- package/dist/bundle/{program-QCHTCOCR.js → program-ZQ43ZYKZ.js} +485 -438
- package/dist/bundle/{prompt-BN6AKRWN.js → prompt-3LZAZNQ4.js} +2 -2
- package/dist/bundle/{recognize-I5TH7OEW.js → recognize-GYQMHFY2.js} +1 -1
- package/dist/bundle/{remote-R324LAUL.js → remote-P2MD5G64.js} +6 -6
- package/dist/bundle/{rerank-ZMGZCUJV.js → rerank-A5X6THV6.js} +4 -4
- package/dist/bundle/{serve-YUFZSNJC.js → serve-IEC3EUKS.js} +6 -6
- package/dist/bundle/{server-54ULZ3RA.js → server-3REPXFNI.js} +43 -41
- package/dist/bundle/server-E2QTFURI.js +67 -0
- package/dist/bundle/{sqlite-runtime-AYQTUQXM.js → sqlite-runtime-AOLQGC5J.js} +3 -3
- package/dist/bundle/{state-PHEBOYYI.js → state-D3P5IXXA.js} +3 -3
- package/dist/bundle/{store-4PHDSXEV.js → store-DIN6OY3K.js} +13 -13
- package/dist/bundle/{store-NGX3A5XT.js → store-MZCQXBVW.js} +15 -15
- package/dist/bundle/store-maintenance-command-UMVFI6M6.js +58 -0
- package/dist/commands/rules.d.ts.map +1 -1
- package/dist/commands/rules.js +73 -22
- package/dist/commands/rules.js.map +1 -1
- package/dist/mail/rules/apply.d.ts.map +1 -1
- package/dist/mail/rules/apply.js +1 -9
- package/dist/mail/rules/apply.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-IJONJTST.js +0 -76
- package/dist/bundle/first-screen-WCDR3QUR.js +0 -34
- package/dist/bundle/server-UD75CYDG.js +0 -68
- package/dist/bundle/store-maintenance-command-WHBIV6HC.js +0 -58
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
kindsIn,
|
|
14
14
|
providerNamed,
|
|
15
15
|
providers
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KPFB2VUY.js";
|
|
17
17
|
import {
|
|
18
18
|
isCliFailure,
|
|
19
19
|
isStoreDamage
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5YRR52NH.js";
|
|
21
21
|
import {
|
|
22
22
|
refuseOwnerStoreInTests
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BNP7WLDQ.js";
|
|
24
24
|
import {
|
|
25
25
|
createRecordLog,
|
|
26
26
|
resolvePaths,
|
|
@@ -53,17 +53,17 @@ import {
|
|
|
53
53
|
__name
|
|
54
54
|
} from "./chunk-ZVVMGPBJ.js";
|
|
55
55
|
|
|
56
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
56
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
57
57
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
58
58
|
import { randomBytes } from "node:crypto";
|
|
59
59
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
61
61
|
import { randomUUID } from "node:crypto";
|
|
62
62
|
import { appendFileSync, mkdirSync, readdirSync, readFileSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
63
63
|
import { userInfo } from "node:os";
|
|
64
64
|
import { join, sep } from "node:path";
|
|
65
65
|
|
|
66
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
66
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
67
67
|
var snake = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
68
68
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
69
69
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -76,7 +76,7 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
76
76
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
77
77
|
}), "snakeLogger");
|
|
78
78
|
|
|
79
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
79
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
80
80
|
var diagnostic = {
|
|
81
81
|
event: true,
|
|
82
82
|
operation: true,
|
|
@@ -150,7 +150,7 @@ var LOG_ATTRIBUTES = [
|
|
|
150
150
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
151
151
|
].sort();
|
|
152
152
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
154
154
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
155
155
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
156
156
|
var KEEP_STORE_RUNS_FOR_DAYS = 3;
|
|
@@ -517,7 +517,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
517
517
|
};
|
|
518
518
|
}, "metadataOf");
|
|
519
519
|
|
|
520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
521
521
|
var scopes = new AsyncLocalStorage();
|
|
522
522
|
var processScope;
|
|
523
523
|
var ownProcesses = new AsyncLocalStorage();
|
|
@@ -568,7 +568,7 @@ var attempts = new AsyncLocalStorage();
|
|
|
568
568
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
569
569
|
var currentAttempt = /* @__PURE__ */ __name(() => attempts.getStore(), "currentAttempt");
|
|
570
570
|
|
|
571
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
572
572
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
573
573
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
574
574
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -583,7 +583,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
583
583
|
}
|
|
584
584
|
__name(closeTask, "closeTask");
|
|
585
585
|
|
|
586
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
587
587
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
588
588
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
589
589
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -612,7 +612,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
612
612
|
}, "priorityOf");
|
|
613
613
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
614
614
|
|
|
615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
615
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
616
616
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
617
617
|
async function find(id2) {
|
|
618
618
|
const task = await store.get(id2);
|
|
@@ -672,20 +672,20 @@ function median(values) {
|
|
|
672
672
|
}
|
|
673
673
|
__name(median, "median");
|
|
674
674
|
|
|
675
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
676
676
|
function matches(task, filter) {
|
|
677
677
|
return (filter.account === void 0 || task.account === filter.account) && (filter.state === void 0 || task.state === filter.state) && (filter.group === void 0 || task.group === filter.group) && (filter.kind === void 0 || task.kind === filter.kind) && (filter.createdBefore === void 0 || task.createdAt < filter.createdBefore);
|
|
678
678
|
}
|
|
679
679
|
__name(matches, "matches");
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/store/source-review.js
|
|
682
682
|
var SOURCE_REVIEW_KIND = "memory_source_review";
|
|
683
683
|
var SOURCE_REVIEW_CAUSES = ["changed", "outdated", "deleted", "contradicted"];
|
|
684
684
|
var ERASED_TEXT = "[source erased]";
|
|
685
685
|
var severity = /* @__PURE__ */ __name((cause) => SOURCE_REVIEW_CAUSES.indexOf(cause), "severity");
|
|
686
686
|
var graver = /* @__PURE__ */ __name((a, b) => severity(b) > severity(a) ? b : a, "graver");
|
|
687
687
|
|
|
688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
688
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
689
689
|
var text = string();
|
|
690
690
|
var id = pipe(string(), minLength(1));
|
|
691
691
|
var time = isoTime;
|
|
@@ -710,7 +710,7 @@ var author = strictObject({
|
|
|
710
710
|
name: nullable(text)
|
|
711
711
|
});
|
|
712
712
|
|
|
713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
714
714
|
var organization = strictObject({
|
|
715
715
|
id,
|
|
716
716
|
ref: reference,
|
|
@@ -740,7 +740,7 @@ var reminder = strictObject({
|
|
|
740
740
|
receipt: nullable(text)
|
|
741
741
|
});
|
|
742
742
|
|
|
743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
744
744
|
import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
745
745
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
746
746
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -861,7 +861,7 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
861
861
|
return { previous, cleared };
|
|
862
862
|
}, "recordDeepCheck");
|
|
863
863
|
|
|
864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
865
865
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
866
866
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
867
867
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -869,7 +869,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
869
869
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
870
870
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
871
871
|
|
|
872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/store/sqlite/link-source.js
|
|
873
873
|
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
874
874
|
var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
875
875
|
const reporter = row.account_id == null ? void 0 : "reporter" in row ? row.reporter : database.prepare("SELECT provider || ':' || external_id AS key FROM accounts WHERE id = ?").get(Number(row.account_id))?.key;
|
|
@@ -879,7 +879,7 @@ var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
|
879
879
|
};
|
|
880
880
|
}, "sourceOf");
|
|
881
881
|
|
|
882
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
883
883
|
var LINK_KINDS = [
|
|
884
884
|
"links-to",
|
|
885
885
|
"blocked-by",
|
|
@@ -903,7 +903,7 @@ var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
|
|
|
903
903
|
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
904
904
|
var COUNTERPART_ROLE = "counterpart";
|
|
905
905
|
|
|
906
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
906
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/search/query.js
|
|
907
907
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
908
908
|
var inSource = /* @__PURE__ */ __name((source, provider) => source === "all" || source === "bots" && isBotProvider(provider) || source === "personal" && !isBotProvider(provider) || source === provider || providerNamed(source)?.name === provider || isKind(source) && holdsKindOf(provider, source), "inSource");
|
|
909
909
|
var fail = /* @__PURE__ */ __name((message) => {
|
|
@@ -926,7 +926,7 @@ var sourceOf2 = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
926
926
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
927
927
|
}, "sourceOf");
|
|
928
928
|
|
|
929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
929
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/search/account-list.js
|
|
930
930
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
931
931
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
932
932
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -1136,7 +1136,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) =>
|
|
|
1136
1136
|
return { accounts: [...chosen.values()], skipped };
|
|
1137
1137
|
}, "fitting");
|
|
1138
1138
|
|
|
1139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1139
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
1140
1140
|
var CATEGORIES = ["client", "supplier", "partner", "employer"];
|
|
1141
1141
|
|
|
1142
1142
|
export {
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CAPABILITY_STATEMENTS,
|
|
5
5
|
storeCapable
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NV3WPD3B.js";
|
|
7
7
|
import {
|
|
8
8
|
importFrom
|
|
9
9
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -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.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
15
15
|
import { spawn, spawnSync } from "node:child_process";
|
|
16
16
|
import { readFileSync } from "node:fs";
|
|
17
17
|
import { dirname } from "node:path";
|
|
@@ -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-SQA5JI7Q.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.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/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-BNP7WLDQ.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
@@ -15,11 +15,11 @@ 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.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
19
19
|
import { existsSync, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
20
20
|
import { dirname, join, resolve } from "node:path";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
|
|
23
23
|
var REPAIR_WORDS = {
|
|
24
24
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
25
25
|
comment: "a comment, which JSON does not allow",
|
|
@@ -303,7 +303,7 @@ var explainBrokenJson = /* @__PURE__ */ __name((text, result) => {
|
|
|
303
303
|
return `line ${line}, column ${column}: ${why}${around(line)}; likely fix: ${fix ?? "correct that part by hand"}`;
|
|
304
304
|
}, "explainBrokenJson");
|
|
305
305
|
|
|
306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
307
307
|
var DEFAULT_TASK_CATEGORIES = [
|
|
308
308
|
{
|
|
309
309
|
name: "taxes",
|
|
@@ -1058,7 +1058,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}, "storedTaskCategories");
|
|
1060
1060
|
|
|
1061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
1062
1062
|
var SECTION = "task_categories";
|
|
1063
1063
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
1064
1064
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -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.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/runs/secrets.js
|
|
8
8
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
9
9
|
"authorization",
|
|
10
10
|
"cookie",
|
|
@@ -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.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/input-policy.js
|
|
11
11
|
var MAX_BUFFERED_INPUT = 16 * 1024 * 1024;
|
|
12
12
|
var MAX_SECRET_INPUT = 64 * 1024;
|
|
13
13
|
var policies = /* @__PURE__ */ new WeakMap();
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
servicesFor,
|
|
17
17
|
throughWrapper,
|
|
18
18
|
withFileLockAsync
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NYQPKZWL.js";
|
|
20
20
|
import {
|
|
21
21
|
servingProfiles
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-GXBNTKJW.js";
|
|
23
23
|
import {
|
|
24
24
|
asFirstWord,
|
|
25
25
|
baseContext,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
recalledAccount,
|
|
34
34
|
rememberAccount,
|
|
35
35
|
rootOf2 as rootOf
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-BXMLIKUM.js";
|
|
37
37
|
import {
|
|
38
38
|
AUTHORITY_KEY,
|
|
39
39
|
CEILING_KEY,
|
|
@@ -44,23 +44,23 @@ import {
|
|
|
44
44
|
levelFor,
|
|
45
45
|
readKeysForCommand,
|
|
46
46
|
skipFlagFor
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-MS5XYEYW.js";
|
|
48
48
|
import {
|
|
49
49
|
providerErrorKey
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-TUXNILKR.js";
|
|
51
51
|
import {
|
|
52
52
|
openStore
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-6UOUDIXL.js";
|
|
54
54
|
import {
|
|
55
55
|
chatReferenceOf,
|
|
56
56
|
ensureAccount,
|
|
57
57
|
foldName,
|
|
58
58
|
isId,
|
|
59
59
|
pickPerson
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-7E7YXQ52.js";
|
|
61
61
|
import {
|
|
62
62
|
isCliFailure
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-5YRR52NH.js";
|
|
64
64
|
import {
|
|
65
65
|
resolvePaths
|
|
66
66
|
} from "./chunk-7MEVD5PI.js";
|
|
@@ -71,7 +71,7 @@ import {
|
|
|
71
71
|
__name
|
|
72
72
|
} from "./chunk-ZVVMGPBJ.js";
|
|
73
73
|
|
|
74
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
74
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/ask.js
|
|
75
75
|
import { openSync } from "node:fs";
|
|
76
76
|
import { createInterface } from "node:readline";
|
|
77
77
|
import { ReadStream } from "node:tty";
|
|
@@ -126,7 +126,7 @@ var terminalAsker = /* @__PURE__ */ __name((command) => async (key, request) =>
|
|
|
126
126
|
throw new CliError("cancelled", `${key}: not done \u2014 the answer was no`);
|
|
127
127
|
}, "terminalAsker");
|
|
128
128
|
|
|
129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/sends/pace.js
|
|
130
130
|
import { readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
131
131
|
import { join } from "node:path";
|
|
132
132
|
var DEFAULT_PACE = { perMinute: 60, burst: 20 };
|
|
@@ -221,7 +221,7 @@ var waitForTurn = /* @__PURE__ */ __name(async (pacer, options) => {
|
|
|
221
221
|
await (options.sleep ?? ((ms) => new Promise((resolve) => setTimeout(resolve, ms))))(waitMs);
|
|
222
222
|
}, "waitForTurn");
|
|
223
223
|
|
|
224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
224
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/permission-keys.js
|
|
225
225
|
var HOUSEKEEPING = /* @__PURE__ */ new Set([
|
|
226
226
|
"help",
|
|
227
227
|
"guide",
|
|
@@ -301,7 +301,7 @@ var refuseUnknownPermissionKeys = /* @__PURE__ */ __name((command, settings, too
|
|
|
301
301
|
throw new CliError("validation_error", `--permission ${key} names no command`, { permission: key });
|
|
302
302
|
}, "refuseUnknownPermissionKeys");
|
|
303
303
|
|
|
304
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/flooded.js
|
|
305
305
|
var LONG_LIVED = /* @__PURE__ */ new Set(["self", "newSendId", "close", "formatMarkdown", "formatHtml", "storedChats"]);
|
|
306
306
|
var LISTENING = /* @__PURE__ */ new Set(["watch", "feed", "listen", "listenHistory"]);
|
|
307
307
|
var BLOCKING = /* @__PURE__ */ new Set(["frozen", "limited", "banned"]);
|
|
@@ -398,7 +398,7 @@ var flooded = /* @__PURE__ */ __name((messenger, memory, { name, warn, pacer })
|
|
|
398
398
|
});
|
|
399
399
|
}, "flooded");
|
|
400
400
|
|
|
401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/observed.js
|
|
402
402
|
var observed = /* @__PURE__ */ __name((messenger, events) => {
|
|
403
403
|
const timed = /* @__PURE__ */ __name(async (operation, named, work, after) => {
|
|
404
404
|
const write = currentOperation();
|
|
@@ -497,7 +497,7 @@ var byPart = /* @__PURE__ */ __name((batch, counts) => {
|
|
|
497
497
|
counts[part] = (counts[part] ?? 0) + items.length;
|
|
498
498
|
}, "byPart");
|
|
499
499
|
|
|
500
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/stored.js
|
|
501
501
|
var REKEY_PACING = { lockMs: 50, pauseMs: 25 };
|
|
502
502
|
var stored = /* @__PURE__ */ __name((messenger, { account, store, warn, events, pending, announcing, deletedWithoutChat, profile, rekeyed, rekeyPacing = REKEY_PACING, closing, namesFromStore, recipientIds, countsUnread = false, historyLimits, command = "cli" }) => {
|
|
503
503
|
let warned = false;
|
|
@@ -1073,7 +1073,7 @@ var keep = /* @__PURE__ */ __name(async (store, account, event, seenAt, among, c
|
|
|
1073
1073
|
}
|
|
1074
1074
|
}, "keep");
|
|
1075
1075
|
|
|
1076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/cli/messenger/context.js
|
|
1077
1077
|
var lazyStore = /* @__PURE__ */ __name((env, command, version) => {
|
|
1078
1078
|
let opened;
|
|
1079
1079
|
return {
|
|
@@ -2,18 +2,18 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
validateFormattedText
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PIXFZZUZ.js";
|
|
6
6
|
import {
|
|
7
7
|
inputPolicy
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HZCINHHS.js";
|
|
9
9
|
import {
|
|
10
10
|
RECORDS_SCHEMA_VERSION,
|
|
11
11
|
RECORD_TYPES,
|
|
12
12
|
pointerOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7E7YXQ52.js";
|
|
14
14
|
import {
|
|
15
15
|
parseReference
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KPFB2VUY.js";
|
|
17
17
|
import {
|
|
18
18
|
indent
|
|
19
19
|
} from "./chunk-7MEVD5PI.js";
|
|
@@ -24,12 +24,12 @@ import {
|
|
|
24
24
|
__name
|
|
25
25
|
} from "./chunk-ZVVMGPBJ.js";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/checks.js
|
|
28
28
|
var spelled = /* @__PURE__ */ __name((check, args) => `${check.replaceAll(".", " ")}${args === void 0 ? "" : ` ${args}`}`, "spelled");
|
|
29
29
|
var bareCheck = /* @__PURE__ */ __name((check, args) => `\`${spelled(check, args)}\``, "bareCheck");
|
|
30
30
|
var checkWords = /* @__PURE__ */ __name((command, profile) => (check, args) => `\`${command} ${profile === void 0 ? "" : `${profile} `}${spelled(check, args)}\``, "checkWords");
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/links.js
|
|
33
33
|
var LINK_VERSION = "v1";
|
|
34
34
|
var DEFAULT_LINK_CONFIG = { base: "https://wirecat.dev/o", enabled: true };
|
|
35
35
|
var APP_PREFIX = "wirecat://open";
|
|
@@ -146,7 +146,7 @@ var linkFor = /* @__PURE__ */ __name((ref, { form, config = DEFAULT_LINK_CONFIG,
|
|
|
146
146
|
return form === "app" ? `${APP_PREFIX}${path}` : `${config.base}#${path}`;
|
|
147
147
|
}, "linkFor");
|
|
148
148
|
|
|
149
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
149
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/markdown.js
|
|
150
150
|
var MARKERS = [
|
|
151
151
|
["**", "bold"],
|
|
152
152
|
["~~", "strike"],
|
|
@@ -192,7 +192,7 @@ var closing = /* @__PURE__ */ __name((input, open, marker) => {
|
|
|
192
192
|
return end;
|
|
193
193
|
}, "closing");
|
|
194
194
|
|
|
195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/markdown-spans.js
|
|
196
196
|
var STYLES = [
|
|
197
197
|
["**", "bold"],
|
|
198
198
|
["__", "underline"],
|
|
@@ -352,7 +352,7 @@ var parseMarkdownSpans = /* @__PURE__ */ __name((input) => {
|
|
|
352
352
|
return validateFormattedText(result);
|
|
353
353
|
}, "parseMarkdownSpans");
|
|
354
354
|
|
|
355
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/polls.js
|
|
356
356
|
var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
|
|
357
357
|
const cast = votes.filter((vote) => vote.answers.length > 0);
|
|
358
358
|
const mine = self === null ? void 0 : votes.find((vote) => vote.person.id === self);
|
|
@@ -367,7 +367,7 @@ var countedPoll = /* @__PURE__ */ __name((poll, votes, self) => {
|
|
|
367
367
|
};
|
|
368
368
|
}, "countedPoll");
|
|
369
369
|
|
|
370
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/domain/records-table.js
|
|
371
371
|
var TABLE_RECORD_TYPES = Object.keys(RECORD_TYPES).filter((type) => RECORD_TYPES[type].sheet !== false);
|
|
372
372
|
var TableError = class extends Error {
|
|
373
373
|
static {
|
|
@@ -2357,7 +2357,7 @@ var createDataURL = /* @__PURE__ */ __name(function(width, height, getPixel) {
|
|
|
2357
2357
|
var qrcode_default = qrcode;
|
|
2358
2358
|
var stringToBytes = qrcode.stringToBytes;
|
|
2359
2359
|
|
|
2360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/terminal/qr.js
|
|
2361
2361
|
var QUIET_ZONE = 4;
|
|
2362
2362
|
var BLACK_ON_WHITE = "\x1B[30;107m";
|
|
2363
2363
|
var RESET = "\x1B[0m";
|
|
@@ -2404,7 +2404,7 @@ var plainQr = /* @__PURE__ */ __name((link) => {
|
|
|
2404
2404
|
return lines.join("\n");
|
|
2405
2405
|
}, "plainQr");
|
|
2406
2406
|
|
|
2407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2407
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/terminal/login-qr.js
|
|
2408
2408
|
var MARGIN = 2;
|
|
2409
2409
|
var atTerminal = /* @__PURE__ */ __name((input) => input.isTTY === true && !inputPolicy(input).noInput, "atTerminal");
|
|
2410
2410
|
var PASTE_QR = "agents: paste the QR code above into the chat as a code block, exactly as printed; when a new one is printed, paste it and say the old one expired";
|
|
@@ -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.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|
|
@@ -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.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/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");
|
|
@@ -58,7 +58,7 @@ var ENTRIES = [
|
|
|
58
58
|
var REASONS = defineReasons(ENTRIES.map(([reason, code, message]) => ({ reason, code, message, details: [] })));
|
|
59
59
|
|
|
60
60
|
// dist/version.js
|
|
61
|
-
var VERSION = "0.
|
|
61
|
+
var VERSION = "0.31.0";
|
|
62
62
|
|
|
63
63
|
// dist/identity.js
|
|
64
64
|
var PACKAGE = "@wirecat/mail-cli";
|
|
@@ -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.661.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_df14b19e105bc4fb805918d3d486e7fb/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
16
16
|
import { styleText } from "node:util";
|
|
17
17
|
var TIME_WIDTH = 8;
|
|
18
18
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|