@wirecat/mail-cli 0.29.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 +31 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-Q4E2LPB4.js → all-profiles-XL62TNUO.js} +19 -29
- package/dist/bundle/{anthropic-S3N4JDJU.js → anthropic-3MSWVYCE.js} +2 -2
- package/dist/bundle/{app-server-E44CAPPI.js → app-server-RRNR5XFA.js} +45 -60
- package/dist/bundle/{bun-RDYA5FCZ.js → bun-E3F3PEQQ.js} +2 -2
- package/dist/bundle/{bun-sqlite-FPVHKI24.js → bun-sqlite-UOFN77LO.js} +3 -3
- package/dist/bundle/{chunk-KBTVVHFP.js → chunk-3CJ4C6BB.js} +12 -12
- package/dist/bundle/{chunk-KTLJ6F2B.js → chunk-3V6J7VPF.js} +3 -3
- package/dist/bundle/{chunk-44IAJV2T.js → chunk-4BW5JACS.js} +16 -16
- package/dist/bundle/{chunk-UQZJ2GFQ.js → chunk-4ME2NHNJ.js} +2 -2
- package/dist/bundle/{chunk-NUHUTJTM.js → chunk-5YRR52NH.js} +1 -1
- package/dist/bundle/{chunk-ZIFB6KGQ.js → chunk-6UOUDIXL.js} +1575 -945
- package/dist/bundle/{chunk-WZNQ2P7H.js → chunk-7E7YXQ52.js} +1307 -1307
- package/dist/bundle/{chunk-45ET53MO.js → chunk-BKRIIZPV.js} +2 -2
- package/dist/bundle/{chunk-TXDA437R.js → chunk-BNP7WLDQ.js} +1 -1
- package/dist/bundle/{chunk-W32UQL5I.js → chunk-BS6WYCNZ.js} +32 -22
- package/dist/bundle/{chunk-WSHPLO4Q.js → chunk-BXMLIKUM.js} +147 -391
- package/dist/bundle/{chunk-BPHLFSUO.js → chunk-D6D6JLXG.js} +16 -16
- package/dist/bundle/{chunk-YRER6N3Y.js → chunk-DCR3IWC7.js} +38 -47
- package/dist/bundle/{chunk-KSFPMRH6.js → chunk-DDCDOBZS.js} +1 -1
- package/dist/bundle/{chunk-DMW6J2P3.js → chunk-DPDS6IZJ.js} +1 -1
- package/dist/bundle/{chunk-5PDWUD3W.js → chunk-DWBY7DMF.js} +1 -1
- package/dist/bundle/{chunk-IZEK7JI7.js → chunk-DZSS2IUK.js} +18 -2
- package/dist/bundle/{chunk-UUM7AF32.js → chunk-E3IOR37T.js} +2 -2
- package/dist/bundle/{chunk-5ZJ6IHVE.js → chunk-EMVLCION.js} +1 -1
- package/dist/bundle/{chunk-IKTBM64M.js → chunk-EV5SR3OC.js} +7 -7
- package/dist/bundle/{chunk-D4QALV67.js → chunk-FRXDSR45.js} +1 -1
- package/dist/bundle/{chunk-BDWOTD7E.js → chunk-FYP2M6IT.js} +80 -80
- package/dist/bundle/{chunk-ATJANIQR.js → chunk-GWKGZOSO.js} +2 -2
- package/dist/bundle/{chunk-MVGFB7IS.js → chunk-GXBNTKJW.js} +2 -2
- package/dist/bundle/{chunk-Z5D6CRY6.js → chunk-GZLCZU5B.js} +322 -11
- package/dist/bundle/{chunk-ZPVVSA5R.js → chunk-H2QTUZ3C.js} +1 -1
- package/dist/bundle/{chunk-FHQ32JKS.js → chunk-HZCINHHS.js} +1 -1
- package/dist/bundle/{chunk-7AO73MJZ.js → chunk-HZL3X4XR.js} +15 -15
- package/dist/bundle/{chunk-HKC6ZJA5.js → chunk-I3BQ2QIY.js} +12 -12
- package/dist/bundle/{chunk-PCYTU7HS.js → chunk-I5Y6Y7Q5.js} +1 -1
- package/dist/bundle/{chunk-7E4KECG4.js → chunk-ITU6K7LU.js} +1 -1
- package/dist/bundle/{chunk-RGIEG4XK.js → chunk-JLIVJSCF.js} +1 -1
- package/dist/bundle/{chunk-3AH7UEM6.js → chunk-JYGFEMTR.js} +1 -1
- package/dist/bundle/{chunk-3RBUACSJ.js → chunk-KPFB2VUY.js} +762 -353
- package/dist/bundle/{chunk-FOZXPSHA.js → chunk-LGDJDD5J.js} +3 -3
- package/dist/bundle/{chunk-2MTIGJHQ.js → chunk-MS5XYEYW.js} +14 -9
- package/dist/bundle/{chunk-DIOHJT2W.js → chunk-NEJU74O4.js} +6 -6
- package/dist/bundle/{chunk-FDGCTY6J.js → chunk-NUN7DBR4.js} +9 -9
- package/dist/bundle/{chunk-6B2BBL35.js → chunk-NV3WPD3B.js} +5 -5
- package/dist/bundle/{chunk-NWA7JS74.js → chunk-NYQPKZWL.js} +633 -370
- package/dist/bundle/{chunk-RFM3AAK5.js → chunk-OP5ZLH53.js} +57 -54
- package/dist/bundle/{chunk-VXHL3XI6.js → chunk-OXHQNEXU.js} +98 -6
- package/dist/bundle/{chunk-ODPYXNHI.js → chunk-P6CYVOL6.js} +1 -1
- package/dist/bundle/{chunk-YAQGWHMH.js → chunk-PIXFZZUZ.js} +6 -6
- package/dist/bundle/{chunk-KNTAOY5J.js → chunk-PZL7DHVJ.js} +7 -7
- package/dist/bundle/{chunk-MT5KDBOM.js → chunk-QANXOKYQ.js} +5 -5
- package/dist/bundle/{chunk-UH7FYLFL.js → chunk-QSXJ2BVQ.js} +4 -4
- package/dist/bundle/{chunk-VERUQQZS.js → chunk-QVGCHTTU.js} +10 -10
- package/dist/bundle/{chunk-PYOM4J73.js → chunk-S2QO6KUI.js} +2 -2
- package/dist/bundle/{chunk-7ESXP4TG.js → chunk-SQA5JI7Q.js} +1 -1
- package/dist/bundle/{chunk-PIKOQWTL.js → chunk-T72DWT37.js} +4 -4
- package/dist/bundle/{chunk-YSR2XBDO.js → chunk-THZHNCJP.js} +3 -3
- package/dist/bundle/{chunk-XEMARUGS.js → chunk-TUXNILKR.js} +7 -7
- package/dist/bundle/{chunk-FM4B357N.js → chunk-UFMR2TB3.js} +2 -2
- package/dist/bundle/{chunk-OLTJB5PW.js → chunk-WZGFC7D5.js} +1 -1
- package/dist/bundle/{command-contract-TMLXLGVT.js → command-contract-YRNKDQDL.js} +15 -15
- package/dist/bundle/{command-server-entry-PFUR2W7X.js → command-server-entry-A3FCP24M.js} +21 -21
- package/dist/bundle/{decode-SIVT4JWX.js → decode-FI2ISRNZ.js} +2 -2
- package/dist/bundle/{dist-YWSF5MHP.js → dist-NLOOZJ64.js} +15 -11
- package/dist/bundle/{echarts-CABLIXX7.js → echarts-PMAJUJFE.js} +2 -2
- package/dist/bundle/{embed-OHENS6RB.js → embed-OIMT6SAX.js} +3 -3
- package/dist/bundle/{embedder-JINT4Y4O.js → embedder-Q5IF5WIM.js} +6 -6
- package/dist/bundle/{first-run-LU2MAK2B.js → first-run-4L53QWOT.js} +6 -6
- package/dist/bundle/first-screen-ZPQLAAIS.js +34 -0
- package/dist/bundle/{instructions-3D22PA4T.js → instructions-ZJGGGXOA.js} +1 -1
- package/dist/bundle/mail.js +2 -2
- package/dist/bundle/{node-42G4RGMW.js → node-DCSOHRD6.js} +2 -2
- package/dist/bundle/{node-sqlite-KQZM5M3N.js → node-sqlite-7F77K5JA.js} +4 -4
- package/dist/bundle/{oauth-7BNCNKQV.js → oauth-LVPMEN6M.js} +4 -4
- package/dist/bundle/{open-ULOQOP7K.js → open-XM5LWEN6.js} +2 -2
- package/dist/bundle/{openai-O5AH6VGT.js → openai-H2LCGK22.js} +12 -12
- package/dist/bundle/{process-6D767IDN.js → process-MFC5VSPT.js} +1 -1
- package/dist/bundle/{program-OE7MFRMJ.js → program-ZQ43ZYKZ.js} +1327 -1089
- package/dist/bundle/{prompt-WN7EBVKT.js → prompt-3LZAZNQ4.js} +2 -2
- package/dist/bundle/{recognize-IX33XEXZ.js → recognize-GYQMHFY2.js} +1 -1
- package/dist/bundle/{remote-22N3FQUC.js → remote-P2MD5G64.js} +6 -6
- package/dist/bundle/{rerank-IGX4EFA2.js → rerank-A5X6THV6.js} +4 -4
- package/dist/bundle/{serve-XWIRR2QZ.js → serve-IEC3EUKS.js} +6 -6
- package/dist/bundle/{server-DBS4WC6T.js → server-3REPXFNI.js} +43 -41
- package/dist/bundle/server-E2QTFURI.js +67 -0
- package/dist/bundle/{sqlite-runtime-WFBTXXXJ.js → sqlite-runtime-AOLQGC5J.js} +3 -3
- package/dist/bundle/{state-4J5ERHJA.js → state-D3P5IXXA.js} +3 -3
- package/dist/bundle/{store-YRBX7XLM.js → store-DIN6OY3K.js} +13 -13
- package/dist/bundle/{store-YSP2NPRJ.js → store-MZCQXBVW.js} +19 -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-VFRI6RF7.js +0 -76
- package/dist/bundle/first-screen-KZNLKRRQ.js +0 -34
- package/dist/bundle/server-D5OTVERP.js +0 -68
- package/dist/bundle/store-maintenance-command-SH6IB7S6.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,15 +740,7 @@ var reminder = strictObject({
|
|
|
740
740
|
receipt: nullable(text)
|
|
741
741
|
});
|
|
742
742
|
|
|
743
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
744
|
-
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
745
|
-
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
746
|
-
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
747
|
-
var MEMORY_SCOPES = ["personal", "work"];
|
|
748
|
-
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
749
|
-
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
750
|
-
|
|
751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/store/marks.js
|
|
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
|
|
752
744
|
import { readFileSync as readFileSync2, rmSync as rmSync2, statSync as statSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
753
745
|
var damageMarkPath = /* @__PURE__ */ __name((store) => `${store}.damaged.json`, "damageMarkPath");
|
|
754
746
|
var healthMarkPath = /* @__PURE__ */ __name((store) => `${store}.health.json`, "healthMarkPath");
|
|
@@ -869,13 +861,55 @@ var recordDeepCheck = /* @__PURE__ */ __name((store, health, { cli, version, sch
|
|
|
869
861
|
return { previous, cleared };
|
|
870
862
|
}, "recordDeepCheck");
|
|
871
863
|
|
|
872
|
-
// 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
|
+
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
866
|
+
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
867
|
+
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
868
|
+
var MEMORY_SCOPES = ["personal", "work"];
|
|
869
|
+
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
870
|
+
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
871
|
+
|
|
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
|
+
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
874
|
+
var sourceOf = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
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;
|
|
876
|
+
return {
|
|
877
|
+
...typeof reporter === "string" ? { account: reporter } : {},
|
|
878
|
+
...typeof metadata.derived === "string" ? { derived: metadata.derived } : {}
|
|
879
|
+
};
|
|
880
|
+
}, "sourceOf");
|
|
881
|
+
|
|
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
|
+
var LINK_KINDS = [
|
|
884
|
+
"links-to",
|
|
885
|
+
"blocked-by",
|
|
886
|
+
"follow-up-of",
|
|
887
|
+
"about",
|
|
888
|
+
"member-of",
|
|
889
|
+
"labelled",
|
|
890
|
+
"answered-by",
|
|
891
|
+
"evidence",
|
|
892
|
+
"created-from",
|
|
893
|
+
"duplicate-of",
|
|
894
|
+
"related-to",
|
|
895
|
+
"reports-to",
|
|
896
|
+
"customer-of",
|
|
897
|
+
"partner-of",
|
|
898
|
+
"assigned-to",
|
|
899
|
+
"attached"
|
|
900
|
+
];
|
|
901
|
+
var LINK_ORIGINS = ["file", "owner", "suggested", "message"];
|
|
902
|
+
var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
|
|
903
|
+
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
904
|
+
var COUNTERPART_ROLE = "counterpart";
|
|
905
|
+
|
|
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
|
|
873
907
|
var isBotProvider = /* @__PURE__ */ __name((provider) => provider.endsWith("-bot"), "isBotProvider");
|
|
874
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");
|
|
875
909
|
var fail = /* @__PURE__ */ __name((message) => {
|
|
876
910
|
throw new CliError("validation_error", message);
|
|
877
911
|
}, "fail");
|
|
878
|
-
var
|
|
912
|
+
var sourceOf2 = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
879
913
|
const sources = [...providers2, "personal", "bots", "all"];
|
|
880
914
|
const source = value.toLowerCase();
|
|
881
915
|
if (sources.includes(source))
|
|
@@ -892,7 +926,7 @@ var sourceOf = /* @__PURE__ */ __name((name, value, providers2) => {
|
|
|
892
926
|
return fail(`${name} takes ${[...sources, "messages", "mail"].join(", ")} \u2014 not "${value}"`);
|
|
893
927
|
}, "sourceOf");
|
|
894
928
|
|
|
895
|
-
// 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
|
|
896
930
|
var ACCOUNT_GROUPS = "accountGroups";
|
|
897
931
|
var ACCOUNT_GROUPS_SETTING = "account_groups";
|
|
898
932
|
var GROUP_NAME = /^[a-z0-9][a-z0-9_-]*$/i;
|
|
@@ -1014,7 +1048,7 @@ var accountsOfWord = /* @__PURE__ */ __name((word, held, context) => {
|
|
|
1014
1048
|
return held.filter((one) => one.provider === provider);
|
|
1015
1049
|
}, "accountsOfWord");
|
|
1016
1050
|
var keyOf = /* @__PURE__ */ __name(({ provider, account }) => `${provider}\0${account}`, "keyOf");
|
|
1017
|
-
var
|
|
1051
|
+
var sourceOf3 = /* @__PURE__ */ __name(({ provider, account }) => `${provider}:${account}`, "sourceOf");
|
|
1018
1052
|
var sameAs = /* @__PURE__ */ __name((key) => (one) => one.provider === key.provider && one.account === key.account, "sameAs");
|
|
1019
1053
|
var entriesOfList = /* @__PURE__ */ __name((value, context) => {
|
|
1020
1054
|
const held = heldOf(context.held, context.running);
|
|
@@ -1102,41 +1136,7 @@ var fitting = /* @__PURE__ */ __name((entries, kinds, what, reasonOf = (kind) =>
|
|
|
1102
1136
|
return { accounts: [...chosen.values()], skipped };
|
|
1103
1137
|
}, "fitting");
|
|
1104
1138
|
|
|
1105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1106
|
-
var REPORTER_SQL = "(SELECT provider || ':' || external_id FROM accounts r WHERE r.id = links.account_id) AS reporter";
|
|
1107
|
-
var sourceOf3 = /* @__PURE__ */ __name((database, row, metadata) => {
|
|
1108
|
-
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;
|
|
1109
|
-
return {
|
|
1110
|
-
...typeof reporter === "string" ? { account: reporter } : {},
|
|
1111
|
-
...typeof metadata.derived === "string" ? { derived: metadata.derived } : {}
|
|
1112
|
-
};
|
|
1113
|
-
}, "sourceOf");
|
|
1114
|
-
|
|
1115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
1116
|
-
var LINK_KINDS = [
|
|
1117
|
-
"links-to",
|
|
1118
|
-
"blocked-by",
|
|
1119
|
-
"follow-up-of",
|
|
1120
|
-
"about",
|
|
1121
|
-
"member-of",
|
|
1122
|
-
"labelled",
|
|
1123
|
-
"answered-by",
|
|
1124
|
-
"evidence",
|
|
1125
|
-
"created-from",
|
|
1126
|
-
"duplicate-of",
|
|
1127
|
-
"related-to",
|
|
1128
|
-
"reports-to",
|
|
1129
|
-
"customer-of",
|
|
1130
|
-
"partner-of",
|
|
1131
|
-
"assigned-to",
|
|
1132
|
-
"attached"
|
|
1133
|
-
];
|
|
1134
|
-
var LINK_ORIGINS = ["file", "owner", "suggested", "message"];
|
|
1135
|
-
var LINK_SOURCES = [...LINK_ORIGINS, "calendar", "meeting"];
|
|
1136
|
-
var linkKind = /* @__PURE__ */ __name((kind) => `'${kind}'`, "linkKind");
|
|
1137
|
-
var COUNTERPART_ROLE = "counterpart";
|
|
1138
|
-
|
|
1139
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.657.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_6ef853dd58e888f20a16b5fe978b097f/node_modules/@wirecat/cli-core/dist/domain/categories.js
|
|
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 {
|
|
@@ -1200,12 +1200,6 @@ export {
|
|
|
1200
1200
|
organization,
|
|
1201
1201
|
project,
|
|
1202
1202
|
reminder,
|
|
1203
|
-
FACT_STATUSES,
|
|
1204
|
-
MEMORY_KINDS,
|
|
1205
|
-
MEMORY_STATUSES,
|
|
1206
|
-
MEMORY_SCOPES,
|
|
1207
|
-
WORK_TASK_TYPES,
|
|
1208
|
-
TASK_TYPES,
|
|
1209
1203
|
damageMarkPath,
|
|
1210
1204
|
healthMarkPath,
|
|
1211
1205
|
journalMarkPath,
|
|
@@ -1219,7 +1213,20 @@ export {
|
|
|
1219
1213
|
recordDeepCheck,
|
|
1220
1214
|
isBotProvider,
|
|
1221
1215
|
inSource,
|
|
1222
|
-
sourceOf,
|
|
1216
|
+
sourceOf2 as sourceOf,
|
|
1217
|
+
REPORTER_SQL,
|
|
1218
|
+
sourceOf as sourceOf2,
|
|
1219
|
+
LINK_KINDS,
|
|
1220
|
+
LINK_ORIGINS,
|
|
1221
|
+
LINK_SOURCES,
|
|
1222
|
+
linkKind,
|
|
1223
|
+
COUNTERPART_ROLE,
|
|
1224
|
+
FACT_STATUSES,
|
|
1225
|
+
MEMORY_KINDS,
|
|
1226
|
+
MEMORY_STATUSES,
|
|
1227
|
+
MEMORY_SCOPES,
|
|
1228
|
+
WORK_TASK_TYPES,
|
|
1229
|
+
TASK_TYPES,
|
|
1223
1230
|
ACCOUNT_GROUPS,
|
|
1224
1231
|
ACCOUNT_GROUPS_SETTING,
|
|
1225
1232
|
isAccountList,
|
|
@@ -1228,16 +1235,9 @@ export {
|
|
|
1228
1235
|
groupMembers,
|
|
1229
1236
|
listedHolds,
|
|
1230
1237
|
keyOf,
|
|
1231
|
-
|
|
1238
|
+
sourceOf3,
|
|
1232
1239
|
sameAs,
|
|
1233
1240
|
entriesOfList,
|
|
1234
1241
|
accountsOfList,
|
|
1235
|
-
fitting
|
|
1236
|
-
REPORTER_SQL,
|
|
1237
|
-
sourceOf3,
|
|
1238
|
-
LINK_KINDS,
|
|
1239
|
-
LINK_ORIGINS,
|
|
1240
|
-
LINK_SOURCES,
|
|
1241
|
-
linkKind,
|
|
1242
|
-
COUNTERPART_ROLE
|
|
1242
|
+
fitting
|
|
1243
1243
|
};
|
|
@@ -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");
|