@wirecat/mail-cli 0.12.0 → 0.14.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 +38 -0
- package/README.md +4 -0
- package/dist/bin/mail.js +6 -2
- package/dist/bundle/{all-profiles-OJPRIFKU.js → all-profiles-O7HQNZOF.js} +10 -9
- package/dist/bundle/{anthropic-3AXHD4WH.js → anthropic-SNA6PTVO.js} +6 -6
- package/dist/bundle/{app-server-V4KHCUGE.js → app-server-LBKMJMKN.js} +48 -45
- package/dist/bundle/{bun-ISYNUTQJ.js → bun-KF5QK2YN.js} +2 -2
- package/dist/bundle/{bun-sqlite-FH3D4AXL.js → bun-sqlite-2DKMM2PT.js} +5 -5
- package/dist/bundle/{chunk-YDUES6ET.js → chunk-2A4BAMNF.js} +4 -4
- package/dist/bundle/{chunk-XTIQFMZH.js → chunk-2F7D6YMB.js} +4 -4
- package/dist/bundle/{chunk-SW5NVASW.js → chunk-2KVR7FF3.js} +12 -89
- package/dist/bundle/{chunk-JAWJZTFL.js → chunk-3EAAEF5U.js} +18 -18
- package/dist/bundle/{chunk-TTKNBUMT.js → chunk-3YGYB3LJ.js} +43 -6
- package/dist/bundle/{chunk-GYNHU56E.js → chunk-5C74F7XX.js} +4 -4
- package/dist/bundle/{chunk-5TACUBRJ.js → chunk-6CZQJ5XR.js} +8 -8
- package/dist/bundle/{chunk-OHC4GVWV.js → chunk-6EZ7XGRG.js} +2 -2
- package/dist/bundle/{chunk-6UT3MXOB.js → chunk-7GSE57K3.js} +3 -3
- package/dist/bundle/{chunk-AJ4JS2ZR.js → chunk-7LDC275M.js} +8 -7
- package/dist/bundle/{chunk-QPQSMJBW.js → chunk-AOVOIXGR.js} +10 -10
- package/dist/bundle/{chunk-DN54W657.js → chunk-B5XAETYU.js} +4 -4
- package/dist/bundle/chunk-BP3TZ4EY.js +91 -0
- package/dist/bundle/{chunk-4DPICEPQ.js → chunk-CCHHEMPM.js} +2 -2
- package/dist/bundle/chunk-DIP3ENSY.js +34 -0
- package/dist/bundle/{chunk-4GPPRLIG.js → chunk-DPKHVBP3.js} +5 -5
- package/dist/bundle/{chunk-K2F7YMMM.js → chunk-E7BTD4P6.js} +8 -13
- package/dist/bundle/{chunk-VEXXVLBM.js → chunk-ER6PJAPK.js} +3 -3
- package/dist/bundle/{chunk-JIIEJLAX.js → chunk-EW3XTUPB.js} +4 -4
- package/dist/bundle/{chunk-6LNRNQHJ.js → chunk-F5SZVO3A.js} +6 -4
- package/dist/bundle/{chunk-UDJIC6YL.js → chunk-FTGCXIQA.js} +54 -29
- package/dist/bundle/{chunk-V6K2GX2Y.js → chunk-G53HRGTK.js} +17 -17
- package/dist/bundle/{chunk-L3PVAY3M.js → chunk-H2ZURG7Q.js} +2 -2
- package/dist/bundle/{chunk-F3QDSQ7V.js → chunk-H7OQ4YZV.js} +27 -26
- package/dist/bundle/{chunk-S64N24ON.js → chunk-I62OTHDE.js} +3 -3
- package/dist/bundle/{chunk-AO32MFDY.js → chunk-I7EWIIBC.js} +2 -2
- package/dist/bundle/{chunk-JNUKTAMZ.js → chunk-ILHTNOIV.js} +1 -1
- package/dist/bundle/{chunk-GAIVTJ3E.js → chunk-IPKXRW6W.js} +24 -23
- package/dist/bundle/{chunk-NSDOYHIS.js → chunk-IVDUR5Y4.js} +20 -8
- package/dist/bundle/{chunk-KJP2B65C.js → chunk-KBFIKUCA.js} +29 -28
- package/dist/bundle/{chunk-IWHXM2S7.js → chunk-KLLKDOO2.js} +3207 -1149
- package/dist/bundle/{chunk-4D52FA34.js → chunk-KQ5P5NLL.js} +1 -1
- package/dist/bundle/{chunk-PLPSFJO6.js → chunk-M2YIJDBL.js} +6 -6
- package/dist/bundle/{chunk-IG2WXKIT.js → chunk-MQK2UNG4.js} +8 -8
- package/dist/bundle/{chunk-YRZ23RCS.js → chunk-MXG4L7NH.js} +249 -8
- package/dist/bundle/{chunk-LXHLQ6RK.js → chunk-NGZW2JPK.js} +7 -9
- package/dist/bundle/{chunk-GFCNSU3B.js → chunk-NVQUK2DH.js} +176 -47
- package/dist/bundle/{chunk-6QNPJSRM.js → chunk-OGK7LMYT.js} +6 -6
- package/dist/bundle/{chunk-N6P55LDU.js → chunk-P547HU26.js} +10 -10
- package/dist/bundle/{chunk-NBQQ2ZTF.js → chunk-P62Z3Q35.js} +14 -14
- package/dist/bundle/{chunk-TZGQPTZ2.js → chunk-PQLBPYJR.js} +1 -1
- package/dist/bundle/{chunk-BYQ3Z6UL.js → chunk-Q5EYTU3Q.js} +3 -3
- package/dist/bundle/{chunk-PSXAC6OO.js → chunk-QWRBAQZ7.js} +1 -1
- package/dist/bundle/{chunk-QB54TE52.js → chunk-QZXHMQCM.js} +1 -1
- package/dist/bundle/{chunk-FYMQPAE5.js → chunk-RE5SEGSR.js} +4 -4
- package/dist/bundle/{chunk-KVN4RY7E.js → chunk-UHHARH5X.js} +421 -205
- package/dist/bundle/{chunk-44LVUMS2.js → chunk-UJEO3VWA.js} +1 -1
- package/dist/bundle/{chunk-IXYKM7OJ.js → chunk-UMWR5PKA.js} +13 -13
- package/dist/bundle/{chunk-WL7CYT7O.js → chunk-V5ZID7KC.js} +1 -1
- package/dist/bundle/{chunk-2TTCKOQ7.js → chunk-VA3JKERH.js} +2 -2
- package/dist/bundle/{chunk-G2WDY5XB.js → chunk-VERSKGJV.js} +2 -2
- package/dist/bundle/{chunk-GUFWLTOW.js → chunk-W643XZIR.js} +2 -2
- package/dist/bundle/{chunk-X37KLD23.js → chunk-WBJQEB6E.js} +12 -12
- package/dist/bundle/{chunk-SYBMOE6F.js → chunk-WVWNKZI4.js} +6195 -5014
- package/dist/bundle/chunk-X5XIFNTI.js +35 -0
- package/dist/bundle/{chunk-LIQ5LICB.js → chunk-XPREXN3W.js} +3 -3
- package/dist/bundle/{chunk-35Y3INBK.js → chunk-XRJIQC6P.js} +2 -2
- package/dist/bundle/{chunk-T3AGR4TI.js → chunk-YG4OI3HJ.js} +966 -204
- package/dist/bundle/{chunk-HVVLSCFB.js → chunk-ZCPUKUST.js} +1 -1
- package/dist/bundle/command-contract-B3OGAIDB.js +34 -0
- package/dist/bundle/{decode-FM4C2WWG.js → decode-X7Y2VSYZ.js} +5 -5
- package/dist/bundle/{dispatch-K3HG4RYT.js → dispatch-OWNO2CMC.js} +8 -8
- package/dist/bundle/{dist-7LNVI7VB.js → dist-L7FNC74Q.js} +42 -13
- package/dist/bundle/{echarts-5C2A72XM.js → echarts-5AB3LFVD.js} +2 -2
- package/dist/bundle/{embed-N56P6YVY.js → embed-VBS5LRCE.js} +6 -6
- package/dist/bundle/{embedder-QLYKFLOL.js → embedder-VFSYBDKK.js} +9 -9
- package/dist/bundle/{failure-5ZLVZTRU.js → failure-E534GZDF.js} +2 -2
- package/dist/bundle/{first-run-VMF4PJ7Q.js → first-run-NO2ODH2W.js} +11 -11
- package/dist/bundle/first-screen-7VJLGMJJ.js +32 -0
- package/dist/bundle/{instructions-QA5FHDOJ.js → instructions-52W6ZQTU.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-LO2XDBBC.js → mcp-MNI62HHE.js} +2 -2
- package/dist/bundle/{node-OXJZWUYZ.js → node-TL2PBNKO.js} +2 -2
- package/dist/bundle/{node-sqlite-7GCEI67B.js → node-sqlite-757HNQAD.js} +11 -5
- package/dist/bundle/{oauth-VTPIYBTP.js → oauth-VDRNJ7KN.js} +7 -7
- package/dist/bundle/{open-7XX3YF2X.js → open-NUWYOKPO.js} +5 -4
- package/dist/bundle/{openai-D3KRCXSY.js → openai-YLBFVK5X.js} +14 -14
- package/dist/bundle/{process-KFI7SXQD.js → process-PWAGP6YY.js} +1 -1
- package/dist/bundle/{program-4B25STRN.js → program-PPUPVL7O.js} +2253 -885
- package/dist/bundle/{prompt-TBZT3APW.js → prompt-M5U66RVJ.js} +5 -5
- package/dist/bundle/{recognize-WQSE5ZPL.js → recognize-DCMDZA2U.js} +4 -4
- package/dist/bundle/{remote-J5HHRNVQ.js → remote-4SHI5WJG.js} +7 -7
- package/dist/bundle/{rerank-DP2Y3WDT.js → rerank-DYMZMNPQ.js} +7 -7
- package/dist/bundle/{serve-VXPOQDQO.js → serve-HO3WME4G.js} +11 -10
- package/dist/bundle/server-244FHPY4.js +64 -0
- package/dist/bundle/{server-OSBNGA2F.js → server-R3TIPRZN.js} +39 -37
- package/dist/bundle/{sqlite-runtime-XY32WOIT.js → sqlite-runtime-DWRITUIH.js} +6 -5
- package/dist/bundle/{state-KPOPMR6O.js → state-QOMUDOGF.js} +6 -6
- package/dist/bundle/{store-FWRGNGP3.js → store-LHHMOE5V.js} +36 -18
- package/dist/bundle/{store-UBI2YCRC.js → store-RGO6IABA.js} +17 -13
- package/dist/bundle/store-maintenance-command-LU2ZBDUY.js +54 -0
- package/dist/commands/session.js +1 -1
- package/dist/commands/session.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +12 -7
- package/dist/commands/status.js.map +1 -1
- package/dist/config.d.ts +2 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-MDIRW3AT.js +0 -18
- package/dist/bundle/command-contract-TW44FY47.js +0 -33
- package/dist/bundle/first-screen-ZN7ODW5K.js +0 -31
- package/dist/bundle/server-XHWSCXVX.js +0 -62
- package/dist/bundle/store-maintenance-command-3ZXPEIGF.js +0 -52
- /package/dist/bundle/{chunk-MRLSUCHT.js → chunk-NUN6OGOV.js} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/mcp/stdio-wire.js
|
|
8
8
|
import { PassThrough, Writable } from "node:stream";
|
|
9
9
|
var lineReader = /* @__PURE__ */ __name((onMessage) => {
|
|
10
10
|
let rest = "";
|
|
@@ -2,23 +2,23 @@ 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-X5XIFNTI.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3EAAEF5U.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError,
|
|
11
11
|
singleLine
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CCHHEMPM.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
18
18
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname, join, resolve } from "node:path";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
22
22
|
var DEFAULT_TASK_CATEGORIES = [
|
|
23
23
|
{
|
|
24
24
|
name: "taxes",
|
|
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
773
773
|
}
|
|
774
774
|
}, "storedTaskCategories");
|
|
775
775
|
|
|
776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
777
777
|
var SECTION = "task_categories";
|
|
778
778
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
779
779
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CCHHEMPM.js";
|
|
6
6
|
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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/search/languages.js
|
|
11
11
|
var LANGUAGES = [
|
|
12
12
|
{ name: "russian", code: "ru", label: "Russian", script: "cyrillic", dictionary: "dictionary-ru" },
|
|
13
13
|
{ name: "english", code: "en", label: "English", script: "latin", dictionary: "dictionary-en" },
|
|
@@ -15,12 +15,12 @@ var LANGUAGES = [
|
|
|
15
15
|
];
|
|
16
16
|
var languagesOf = /* @__PURE__ */ __name((script) => LANGUAGES.filter((one) => one.script === script).map(({ name }) => name), "languagesOf");
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/normalize.js
|
|
19
19
|
var NORMALIZER_VERSION = 1;
|
|
20
20
|
var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
|
|
21
21
|
var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
|
|
24
24
|
var BaseStemmer = class {
|
|
25
25
|
static {
|
|
26
26
|
__name(this, "BaseStemmer");
|
|
@@ -395,7 +395,7 @@ var BaseStemmer = class {
|
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
|
|
398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
|
|
399
399
|
var a_0 = [
|
|
400
400
|
["arsen", -1],
|
|
401
401
|
["commun", -1],
|
|
@@ -1096,7 +1096,7 @@ var english_stemmer_default = class extends BaseStemmer {
|
|
|
1096
1096
|
stemWord = this.stem;
|
|
1097
1097
|
};
|
|
1098
1098
|
|
|
1099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
|
|
1100
1100
|
var a_02 = [
|
|
1101
1101
|
["\u0432", 1],
|
|
1102
1102
|
["\u0438\u0432", 2, 1],
|
|
@@ -1519,7 +1519,7 @@ var russian_stemmer_default = class extends BaseStemmer {
|
|
|
1519
1519
|
stemWord = this.stem;
|
|
1520
1520
|
};
|
|
1521
1521
|
|
|
1522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
|
|
1523
1523
|
var a_03 = [
|
|
1524
1524
|
["", 6],
|
|
1525
1525
|
["\xE1", 1, 1],
|
|
@@ -2195,7 +2195,7 @@ var spanish_stemmer_default = class extends BaseStemmer {
|
|
|
2195
2195
|
stemWord = this.stem;
|
|
2196
2196
|
};
|
|
2197
2197
|
|
|
2198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/search/stem.js
|
|
2199
2199
|
var SNOWBALL_VERSION = "3.1.1";
|
|
2200
2200
|
var CYRILLIC_STEMMERS = [...languagesOf("cyrillic"), "none"];
|
|
2201
2201
|
var LATIN_STEMMERS = [...languagesOf("latin"), "none"];
|
|
@@ -3,16 +3,16 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
formatMeetingReference,
|
|
5
5
|
parseMeetingReference
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UHHARH5X.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError,
|
|
9
9
|
singleLine
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CCHHEMPM.js";
|
|
11
11
|
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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/locator.js
|
|
16
16
|
var SCHEME = "msg:";
|
|
17
17
|
var formatLocator = /* @__PURE__ */ __name(({ provider, account, chat, message }) => SCHEME + [provider, account, chat, message].map(encodeURIComponent).join("/"), "formatLocator");
|
|
18
18
|
var isLocator = /* @__PURE__ */ __name((reference) => reference.trim().startsWith(SCHEME), "isLocator");
|
|
@@ -26,7 +26,7 @@ var parseLocator = /* @__PURE__ */ __name((reference) => {
|
|
|
26
26
|
return { provider, account, chat, message };
|
|
27
27
|
}, "parseLocator");
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/references.js
|
|
30
30
|
var SIMPLE_REFERENCES = [
|
|
31
31
|
"note",
|
|
32
32
|
"document",
|
|
@@ -38,6 +38,8 @@ var SIMPLE_REFERENCES = [
|
|
|
38
38
|
"fact",
|
|
39
39
|
"bot",
|
|
40
40
|
"event",
|
|
41
|
+
"invoice",
|
|
42
|
+
"payment",
|
|
41
43
|
"entity"
|
|
42
44
|
];
|
|
43
45
|
var malformed = /* @__PURE__ */ __name((text, shape) => new CliError("validation_error", `"${singleLine(text)}" is not a reference \u2014 expected ${shape}`, {
|
|
@@ -171,7 +173,7 @@ var looksLikeReference = /* @__PURE__ */ __name((text) => {
|
|
|
171
173
|
return match !== null && byPrefix.has(match[1]);
|
|
172
174
|
}, "looksLikeReference");
|
|
173
175
|
|
|
174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/providers.js
|
|
175
177
|
var KINDS = ["messages", "mail", "notes", "documents", "meetings", "events"];
|
|
176
178
|
var MESSENGER_OPENS = { chat: "messages list", message: "messages show", contact: "contacts show" };
|
|
177
179
|
var PROVIDERS = [
|
|
@@ -290,7 +292,7 @@ var providerNamed = /* @__PURE__ */ __name((word) => {
|
|
|
290
292
|
var kindIn = /* @__PURE__ */ __name((provider) => isFolderProvider(provider) ? "notes" : registry.find(({ name }) => name === provider)?.kind, "kindIn");
|
|
291
293
|
var kindOf = /* @__PURE__ */ __name((provider) => kindIn(provider) ?? "messages", "kindOf");
|
|
292
294
|
|
|
293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
295
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/counters.js
|
|
294
296
|
var COUNTER_FIELDS = ["views", "reactions", "comments"];
|
|
295
297
|
var validCounter = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0, "validCounter");
|
|
296
298
|
var counterValue = /* @__PURE__ */ __name((message, field) => {
|
|
@@ -327,7 +329,121 @@ var counterFreshness = /* @__PURE__ */ __name((states) => {
|
|
|
327
329
|
return states.some((one) => one.freshness === "stale") ? "stale" : "fresh";
|
|
328
330
|
}, "counterFreshness");
|
|
329
331
|
|
|
330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
332
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/money.js
|
|
333
|
+
var CURRENCY_SCALES = {
|
|
334
|
+
AED: 2,
|
|
335
|
+
AMD: 2,
|
|
336
|
+
AUD: 2,
|
|
337
|
+
BHD: 3,
|
|
338
|
+
BYN: 2,
|
|
339
|
+
CAD: 2,
|
|
340
|
+
CHF: 2,
|
|
341
|
+
CLP: 0,
|
|
342
|
+
CNY: 2,
|
|
343
|
+
CZK: 2,
|
|
344
|
+
DKK: 2,
|
|
345
|
+
EUR: 2,
|
|
346
|
+
GBP: 2,
|
|
347
|
+
GEL: 2,
|
|
348
|
+
HUF: 2,
|
|
349
|
+
ILS: 2,
|
|
350
|
+
INR: 2,
|
|
351
|
+
ISK: 0,
|
|
352
|
+
JPY: 0,
|
|
353
|
+
KGS: 2,
|
|
354
|
+
KRW: 0,
|
|
355
|
+
KWD: 3,
|
|
356
|
+
KZT: 2,
|
|
357
|
+
NOK: 2,
|
|
358
|
+
PLN: 2,
|
|
359
|
+
RSD: 2,
|
|
360
|
+
RUB: 2,
|
|
361
|
+
SEK: 2,
|
|
362
|
+
THB: 2,
|
|
363
|
+
TRY: 2,
|
|
364
|
+
UAH: 2,
|
|
365
|
+
USD: 2,
|
|
366
|
+
UZS: 2,
|
|
367
|
+
VND: 0
|
|
368
|
+
};
|
|
369
|
+
var refuse = /* @__PURE__ */ __name((message, reason) => {
|
|
370
|
+
throw new CliError("validation_error", message, { reason });
|
|
371
|
+
}, "refuse");
|
|
372
|
+
var DECIMAL = /^(\d{1,15})(?:\.(\d+))?$/;
|
|
373
|
+
var parseDecimal = /* @__PURE__ */ __name((text, scale) => {
|
|
374
|
+
const match = DECIMAL.exec(text.trim());
|
|
375
|
+
if (!match || (match[2] ?? "").length > scale)
|
|
376
|
+
return void 0;
|
|
377
|
+
return BigInt(`${match[1]}${(match[2] ?? "").padEnd(scale, "0")}`);
|
|
378
|
+
}, "parseDecimal");
|
|
379
|
+
var formatDecimal = /* @__PURE__ */ __name((units, scale) => {
|
|
380
|
+
const digits = BigInt(units).toString().padStart(scale + 1, "0");
|
|
381
|
+
return scale === 0 ? digits : `${digits.slice(0, -scale)}.${digits.slice(-scale)}`;
|
|
382
|
+
}, "formatDecimal");
|
|
383
|
+
var groupDigits = /* @__PURE__ */ __name((decimal) => {
|
|
384
|
+
const [whole = "0", fraction] = decimal.split(".");
|
|
385
|
+
const grouped = whole.replace(/\B(?=(\d{3})+(?!\d))/g, " ");
|
|
386
|
+
return fraction === void 0 ? grouped : `${grouped}.${fraction}`;
|
|
387
|
+
}, "groupDigits");
|
|
388
|
+
var currencyOf = /* @__PURE__ */ __name((text) => {
|
|
389
|
+
const code = typeof text === "string" ? text.trim().toUpperCase() : "";
|
|
390
|
+
if (CURRENCY_SCALES[code] === void 0)
|
|
391
|
+
return refuse(`${typeof text === "string" && text.trim() ? text.trim() : "an empty currency"} is not a currency the store keeps; use one of ${Object.keys(CURRENCY_SCALES).join(", ")}`, "money.currency");
|
|
392
|
+
return code;
|
|
393
|
+
}, "currencyOf");
|
|
394
|
+
var scaleOf = /* @__PURE__ */ __name((currency) => CURRENCY_SCALES[currencyOf(currency)], "scaleOf");
|
|
395
|
+
var minorUnits = /* @__PURE__ */ __name((amount, currency, what = "an amount") => {
|
|
396
|
+
const scale = scaleOf(currency);
|
|
397
|
+
const units = typeof amount === "string" ? parseDecimal(amount, scale) : void 0;
|
|
398
|
+
if (units === void 0 || units > BigInt(Number.MAX_SAFE_INTEGER))
|
|
399
|
+
return refuse(`${what} is a decimal string with at most ${scale} decimal${scale === 1 ? "" : "s"} for ${currency}, such as "${formatDecimal(5e3 * 10 ** scale, scale)}"`, "money.amount");
|
|
400
|
+
return Number(units);
|
|
401
|
+
}, "minorUnits");
|
|
402
|
+
var moneyOf = /* @__PURE__ */ __name((units, currency) => ({
|
|
403
|
+
amount: formatDecimal(units, scaleOf(currency)),
|
|
404
|
+
currency
|
|
405
|
+
}), "moneyOf");
|
|
406
|
+
var moneyLabel = /* @__PURE__ */ __name((units, currency) => `${groupDigits(formatDecimal(units, scaleOf(currency)))} ${currency}`, "moneyLabel");
|
|
407
|
+
var QUANTITY_SCALE = 3;
|
|
408
|
+
var quantityOf = /* @__PURE__ */ __name((text) => {
|
|
409
|
+
const thousandths = typeof text === "string" ? parseDecimal(text, QUANTITY_SCALE) : void 0;
|
|
410
|
+
if (thousandths === void 0 || thousandths === 0n)
|
|
411
|
+
return refuse('a quantity is a decimal string above 0 with at most 3 decimals, such as "1.5"', "money.quantity");
|
|
412
|
+
const plain = formatDecimal(thousandths, QUANTITY_SCALE).replace(/\.?0+$/, "");
|
|
413
|
+
return { text: plain, thousandths };
|
|
414
|
+
}, "quantityOf");
|
|
415
|
+
var lineUnits = /* @__PURE__ */ __name((thousandths, unitPrice) => Number((thousandths * BigInt(unitPrice) + 500n) / 1000n), "lineUnits");
|
|
416
|
+
|
|
417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/finance.js
|
|
418
|
+
var INVOICE_DIRECTIONS = ["receivable", "payable"];
|
|
419
|
+
var INVOICE_STATUSES = ["draft", "issued", "partly_paid", "paid", "void"];
|
|
420
|
+
var MONEY_DIRECTIONS = ["in", "out"];
|
|
421
|
+
var FINANCE_REVIEWS = ["proposed", "confirmed", "rejected"];
|
|
422
|
+
var settledStatus = /* @__PURE__ */ __name((current, total, paid) => {
|
|
423
|
+
if (current === "draft" || current === "void")
|
|
424
|
+
return current;
|
|
425
|
+
if (paid <= 0)
|
|
426
|
+
return "issued";
|
|
427
|
+
return paid < total ? "partly_paid" : "paid";
|
|
428
|
+
}, "settledStatus");
|
|
429
|
+
var dayMonth = /* @__PURE__ */ __name((date) => date === null ? null : `${date.slice(8, 10)}.${date.slice(5, 7)}`, "dayMonth");
|
|
430
|
+
var notes = /* @__PURE__ */ __name((...words) => {
|
|
431
|
+
const kept = words.filter((word) => word !== null);
|
|
432
|
+
return kept.length === 0 ? "" : ` (${kept.join(", ")})`;
|
|
433
|
+
}, "notes");
|
|
434
|
+
var invoiceLine = /* @__PURE__ */ __name((invoice) => {
|
|
435
|
+
const party = invoice.counterpartyName === null ? "" : `${invoice.direction === "receivable" ? " to" : " from"} ${invoice.counterpartyName}`;
|
|
436
|
+
const due = invoice.dueDate === null ? "" : `, due ${dayMonth(invoice.dueDate)}`;
|
|
437
|
+
return `${invoice.number ?? `#${invoice.id}`} \xB7 ${moneyLabel(invoice.total, invoice.currency)}${party}${due}` + notes(invoice.status.replace("_", " "), invoice.review === "confirmed" ? null : invoice.review);
|
|
438
|
+
}, "invoiceLine");
|
|
439
|
+
var paymentLine = /* @__PURE__ */ __name((payment) => {
|
|
440
|
+
const party = payment.partyName === null ? "" : `${payment.direction === "in" ? " from" : " to"} ${payment.partyName}`;
|
|
441
|
+
return `${moneyLabel(payment.amount, payment.currency)}${party}, ${dayMonth(payment.date)}` + notes(payment.review === "confirmed" ? null : payment.review);
|
|
442
|
+
}, "paymentLine");
|
|
443
|
+
var invoiceTitle = /* @__PURE__ */ __name((invoice) => `Invoice ${invoiceLine(invoice)}`, "invoiceTitle");
|
|
444
|
+
var paymentEntryTitle = /* @__PURE__ */ __name((payment) => `Payment \xB7 ${paymentLine(payment)}`, "paymentEntryTitle");
|
|
445
|
+
|
|
446
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/rankings-options.js
|
|
331
447
|
var MESSAGE_MEASURES = ["views", "reactions", "forwards", "comments", "replies", "thread-size"];
|
|
332
448
|
var AUTHOR_MEASURES = [
|
|
333
449
|
"messages",
|
|
@@ -467,6 +583,105 @@ var withoutUrls = /* @__PURE__ */ __name((text) => text.replace(/\S+/gu, (token)
|
|
|
467
583
|
var rankingWords = /* @__PURE__ */ __name((text) => withoutUrls(text).match(/[\p{L}\p{N}]+/gu)?.length ?? 0, "rankingWords");
|
|
468
584
|
var rankingQuestion = /* @__PURE__ */ __name((text) => withoutUrls(text).includes("?"), "rankingQuestion");
|
|
469
585
|
|
|
586
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/records.js
|
|
587
|
+
import { createHash } from "node:crypto";
|
|
588
|
+
var RECORDS_SCHEMA_VERSION = 1;
|
|
589
|
+
var RECORD_OPERATIONS = ["upsert", "delete"];
|
|
590
|
+
var RECORD_ENTITY_TYPES = ["invoice", "payment", "person", "organization", "project"];
|
|
591
|
+
var WORD2 = "^[a-z0-9][a-z0-9_-]{0,62}$";
|
|
592
|
+
var TYPE = "^(invoice|payment|person|organization|project|custom:[a-z0-9][a-z0-9_-]{0,62})$";
|
|
593
|
+
var MAX_ID = 512;
|
|
594
|
+
var MAX_RELATIONS = 100;
|
|
595
|
+
var RECORDS_ENVELOPE_SCHEMA = {
|
|
596
|
+
$schema: "https://json-schema.org/draft/2020-12/schema",
|
|
597
|
+
title: "WireCat records envelope, version 1",
|
|
598
|
+
description: "Records one source sends to the store. JSONL is the same model: the first line holds schema_version and source, each further line one record.",
|
|
599
|
+
type: "object",
|
|
600
|
+
required: ["schema_version", "source", "records"],
|
|
601
|
+
additionalProperties: false,
|
|
602
|
+
properties: {
|
|
603
|
+
schema_version: { const: RECORDS_SCHEMA_VERSION },
|
|
604
|
+
source: { $ref: "#/$defs/source" },
|
|
605
|
+
records: { type: "array", items: { $ref: "#/$defs/record" } }
|
|
606
|
+
},
|
|
607
|
+
$defs: {
|
|
608
|
+
source: {
|
|
609
|
+
type: "object",
|
|
610
|
+
required: ["provider", "account", "batch_id"],
|
|
611
|
+
additionalProperties: false,
|
|
612
|
+
properties: {
|
|
613
|
+
provider: { type: "string", pattern: WORD2, description: "The system the records come from" },
|
|
614
|
+
account: { type: "string", minLength: 1, maxLength: MAX_ID, description: "The account in that system" },
|
|
615
|
+
batch_id: { type: "string", minLength: 1, maxLength: MAX_ID, description: "This import, for the receipt" }
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
record: {
|
|
619
|
+
type: "object",
|
|
620
|
+
required: ["key", "type", "external_id", "operation"],
|
|
621
|
+
additionalProperties: false,
|
|
622
|
+
properties: {
|
|
623
|
+
key: { type: "string", minLength: 1, maxLength: MAX_ID },
|
|
624
|
+
type: { type: "string", pattern: TYPE },
|
|
625
|
+
external_id: { type: "string", minLength: 1, maxLength: MAX_ID },
|
|
626
|
+
operation: { enum: [...RECORD_OPERATIONS] },
|
|
627
|
+
fields: {
|
|
628
|
+
type: "object",
|
|
629
|
+
description: "What the source says, as data: never secrets, never instructions"
|
|
630
|
+
},
|
|
631
|
+
revision: { type: "integer", minimum: 0, maximum: Number.MAX_SAFE_INTEGER },
|
|
632
|
+
relations: { type: "array", maxItems: MAX_RELATIONS, items: { $ref: "#/$defs/relation" } }
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
relation: {
|
|
636
|
+
type: "object",
|
|
637
|
+
required: ["role", "type", "external_id"],
|
|
638
|
+
additionalProperties: false,
|
|
639
|
+
properties: {
|
|
640
|
+
role: { type: "string", pattern: WORD2 },
|
|
641
|
+
type: { type: "string", pattern: TYPE },
|
|
642
|
+
external_id: { type: "string", minLength: 1, maxLength: MAX_ID }
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
};
|
|
647
|
+
var wordPattern = new RegExp(WORD2);
|
|
648
|
+
var typePattern = new RegExp(TYPE);
|
|
649
|
+
var isObject = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isObject");
|
|
650
|
+
var escapePointer = /* @__PURE__ */ __name((segment) => String(segment).replaceAll("~", "~0").replaceAll("/", "~1"), "escapePointer");
|
|
651
|
+
var pointerOf = /* @__PURE__ */ __name((...segments) => segments.map((s) => `/${escapePointer(s)}`).join(""), "pointerOf");
|
|
652
|
+
var canonical = /* @__PURE__ */ __name((value) => {
|
|
653
|
+
if (Array.isArray(value))
|
|
654
|
+
return value.map(canonical);
|
|
655
|
+
if (!isObject(value))
|
|
656
|
+
return value;
|
|
657
|
+
return Object.fromEntries(Object.keys(value).sort().map((key) => [key, canonical(value[key])]));
|
|
658
|
+
}, "canonical");
|
|
659
|
+
var recordFingerprint = /* @__PURE__ */ __name((fields, relations) => createHash("sha256").update(JSON.stringify(canonical({
|
|
660
|
+
fields,
|
|
661
|
+
relations: relations.map((relation) => [relation.role, relation.type, relation.external_id]).sort((a, b) => a.join("\0").localeCompare(b.join("\0")))
|
|
662
|
+
}))).digest("hex"), "recordFingerprint");
|
|
663
|
+
var envelopeOfJsonl = /* @__PURE__ */ __name((text) => {
|
|
664
|
+
const lines = text.split(/\r?\n/);
|
|
665
|
+
const first = lines.findIndex((line) => line.trim() !== "");
|
|
666
|
+
if (first < 0)
|
|
667
|
+
return {};
|
|
668
|
+
const parse = /* @__PURE__ */ __name((line) => {
|
|
669
|
+
try {
|
|
670
|
+
return JSON.parse(line);
|
|
671
|
+
} catch {
|
|
672
|
+
return line;
|
|
673
|
+
}
|
|
674
|
+
}, "parse");
|
|
675
|
+
const header = parse(lines[first]);
|
|
676
|
+
const records = [];
|
|
677
|
+
for (let at = first + 1; at < lines.length; at++) {
|
|
678
|
+
const line = lines[at];
|
|
679
|
+
if (line.trim() !== "")
|
|
680
|
+
records.push(parse(line));
|
|
681
|
+
}
|
|
682
|
+
return isObject(header) ? { ...header, records } : header;
|
|
683
|
+
}, "envelopeOfJsonl");
|
|
684
|
+
|
|
470
685
|
export {
|
|
471
686
|
formatLocator,
|
|
472
687
|
isLocator,
|
|
@@ -503,6 +718,25 @@ export {
|
|
|
503
718
|
counterObservationTime,
|
|
504
719
|
observedCounters,
|
|
505
720
|
counterFreshness,
|
|
721
|
+
CURRENCY_SCALES,
|
|
722
|
+
parseDecimal,
|
|
723
|
+
formatDecimal,
|
|
724
|
+
currencyOf,
|
|
725
|
+
scaleOf,
|
|
726
|
+
minorUnits,
|
|
727
|
+
moneyOf,
|
|
728
|
+
moneyLabel,
|
|
729
|
+
quantityOf,
|
|
730
|
+
lineUnits,
|
|
731
|
+
INVOICE_DIRECTIONS,
|
|
732
|
+
INVOICE_STATUSES,
|
|
733
|
+
MONEY_DIRECTIONS,
|
|
734
|
+
FINANCE_REVIEWS,
|
|
735
|
+
settledStatus,
|
|
736
|
+
invoiceLine,
|
|
737
|
+
paymentLine,
|
|
738
|
+
invoiceTitle,
|
|
739
|
+
paymentEntryTitle,
|
|
506
740
|
MESSAGE_MEASURES,
|
|
507
741
|
AUTHOR_MEASURES,
|
|
508
742
|
needsRankingContext,
|
|
@@ -510,5 +744,12 @@ export {
|
|
|
510
744
|
rankingScore,
|
|
511
745
|
RANKING_TOKENIZER_VERSION,
|
|
512
746
|
rankingWords,
|
|
513
|
-
rankingQuestion
|
|
747
|
+
rankingQuestion,
|
|
748
|
+
RECORDS_SCHEMA_VERSION,
|
|
749
|
+
RECORD_OPERATIONS,
|
|
750
|
+
RECORD_ENTITY_TYPES,
|
|
751
|
+
RECORDS_ENVELOPE_SCHEMA,
|
|
752
|
+
pointerOf,
|
|
753
|
+
recordFingerprint,
|
|
754
|
+
envelopeOfJsonl
|
|
514
755
|
};
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CCHHEMPM.js";
|
|
6
6
|
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.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/tasks/model.js
|
|
11
11
|
var TASK_KINDS = ["question", "request", "mention", "promise"];
|
|
12
12
|
var TASK_STATES = ["open", "todo", "in_progress", "done", "dismissed"];
|
|
13
13
|
var CLOSED_STATES = ["done", "dismissed"];
|
|
@@ -22,7 +22,7 @@ function closeTask(task, state, by, at, reason) {
|
|
|
22
22
|
}
|
|
23
23
|
__name(closeTask, "closeTask");
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/tasks/priority.js
|
|
26
26
|
var PRIORITY_LABELS = ["low", "medium", "high", "critical"];
|
|
27
27
|
var MIDDLE = { low: 0.125, medium: 0.375, high: 0.625, critical: 0.875 };
|
|
28
28
|
var LEGACY_PRIORITY_SCORES = [0.875, 0.625, 0.375, 0.1875, 0.0625];
|
|
@@ -51,7 +51,7 @@ var priorityOf = /* @__PURE__ */ __name((value) => {
|
|
|
51
51
|
}, "priorityOf");
|
|
52
52
|
var priorityOption = /* @__PURE__ */ __name((value) => priorityOf(value) ?? "none", "priorityOption");
|
|
53
53
|
|
|
54
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
54
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/tasks/service.js
|
|
55
55
|
function createTaskService({ store, now = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "now"), newId = /* @__PURE__ */ __name(() => crypto.randomUUID(), "newId") }) {
|
|
56
56
|
async function find(id) {
|
|
57
57
|
const task = await store.get(id);
|
|
@@ -111,14 +111,13 @@ function median(values) {
|
|
|
111
111
|
}
|
|
112
112
|
__name(median, "median");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/tasks/store.js
|
|
115
115
|
function matches(task, filter) {
|
|
116
116
|
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);
|
|
117
117
|
}
|
|
118
118
|
__name(matches, "matches");
|
|
119
119
|
|
|
120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
121
|
-
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/domain/knowledge.js
|
|
122
121
|
var FACT_STATUSES = ["proposed", "accepted", "superseded", "reversed", "rejected"];
|
|
123
122
|
var MEMORY_KINDS = ["summary", "digest", "preference"];
|
|
124
123
|
var MEMORY_STATUSES = ["proposed", "confirmed", "stale", "superseded"];
|
|
@@ -126,7 +125,7 @@ var MEMORY_SCOPES = ["personal", "work"];
|
|
|
126
125
|
var WORK_TASK_TYPES = ["bug", "feature", "chore"];
|
|
127
126
|
var TASK_TYPES = [...WORK_TASK_TYPES, ...TASK_KINDS];
|
|
128
127
|
|
|
129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.563.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_5d65fbd76a6eee16c9e760ce5c7a276b/node_modules/@wirecat/cli-core/dist/store/sqlite/link-kinds.js
|
|
130
129
|
var LINK_KINDS = [
|
|
131
130
|
"links-to",
|
|
132
131
|
"blocked-by",
|
|
@@ -163,7 +162,6 @@ export {
|
|
|
163
162
|
priorityOption,
|
|
164
163
|
createTaskService,
|
|
165
164
|
matches,
|
|
166
|
-
FACT_TYPES,
|
|
167
165
|
FACT_STATUSES,
|
|
168
166
|
MEMORY_KINDS,
|
|
169
167
|
MEMORY_STATUSES,
|