@wirecat/notion-cli 0.1.0 → 0.3.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 +69 -0
- package/README.md +14 -4
- package/contracts/wirecat.json +698 -1
- package/dist/bin/notion.js +2 -2
- package/dist/bundle/{all-profiles-OETMCOLN.js → all-profiles-4IONYZB6.js} +10 -10
- package/dist/bundle/{anthropic-5Y3O2TYM.js → anthropic-OXF74J4P.js} +6 -6
- package/dist/bundle/{app-server-IVWBIVHC.js → app-server-M2VF6ABM.js} +61 -52
- package/dist/bundle/{bun-EO636SAD.js → bun-DLA6QRLL.js} +2 -2
- package/dist/bundle/{bun-sqlite-C2T7QJ2M.js → bun-sqlite-F4BYLW3F.js} +7 -7
- package/dist/bundle/{chunk-QBC23NHD.js → chunk-2MHMKNWD.js} +1 -1
- package/dist/bundle/{chunk-TSCIIXN3.js → chunk-4KUJTSHG.js} +2 -2
- package/dist/bundle/{chunk-24FAYAML.js → chunk-4TQVZXOV.js} +3 -3
- package/dist/bundle/{chunk-FF4DDBCB.js → chunk-5LBJNTEJ.js} +6 -6
- package/dist/bundle/chunk-5UA2TYMI.js +29 -0
- package/dist/bundle/{chunk-DIM5YWBU.js → chunk-5XP4KQ2F.js} +1 -1
- package/dist/bundle/{chunk-WM7663C2.js → chunk-6GN7KU7X.js} +9 -9
- package/dist/bundle/chunk-6JBLIQQN.js +16 -0
- package/dist/bundle/{chunk-CLG2ISQH.js → chunk-7NF3V5L2.js} +4 -4
- package/dist/bundle/{chunk-TR7R5DL4.js → chunk-7NGFGFE5.js} +12 -63
- package/dist/bundle/{chunk-YA4LSSDZ.js → chunk-7NVPM55S.js} +2913 -2371
- package/dist/bundle/{chunk-XC5CKHX2.js → chunk-7YZPBAQX.js} +1 -1
- package/dist/bundle/{chunk-RSIS7BR7.js → chunk-AYU5TFDU.js} +21 -21
- package/dist/bundle/{chunk-64D5VUZ4.js → chunk-BEPFGITI.js} +68 -64
- package/dist/bundle/{chunk-HRTIRRXR.js → chunk-CBGBFAYJ.js} +41 -6
- package/dist/bundle/{chunk-QC3KOJT4.js → chunk-CDGZZNGY.js} +6 -6
- package/dist/bundle/{chunk-JK44XO2S.js → chunk-CIVXTBJY.js} +56 -56
- package/dist/bundle/{chunk-OWJDC4CB.js → chunk-COH7OEER.js} +14 -13
- package/dist/bundle/{chunk-XL2HXHP3.js → chunk-D6RCRBDH.js} +2 -2
- package/dist/bundle/{chunk-47R43UVJ.js → chunk-EQPAZ33O.js} +19 -19
- package/dist/bundle/{chunk-AE2KQ37N.js → chunk-EY6S7FV3.js} +6 -6
- package/dist/bundle/chunk-FEMHUSGO.js +88 -0
- package/dist/bundle/{chunk-NLDYZBTC.js → chunk-FSJHASRQ.js} +1146 -2555
- package/dist/bundle/chunk-GBFEEHQC.js +385 -0
- package/dist/bundle/{chunk-IQWEJEB5.js → chunk-GCCPFKSU.js} +26264 -21086
- package/dist/bundle/{chunk-RDZ7SVBZ.js → chunk-GK4GLPG2.js} +3 -3
- package/dist/bundle/{chunk-B2XKEEFX.js → chunk-GSNE7OB4.js} +4 -4
- package/dist/bundle/{chunk-UWW24JQF.js → chunk-HTKSCSJU.js} +4 -4
- package/dist/bundle/{chunk-7FII4DCE.js → chunk-IJMFG7HB.js} +7 -7
- package/dist/bundle/{chunk-WVZFXI36.js → chunk-JIRRF6BM.js} +4 -4
- package/dist/bundle/{chunk-ST2UC7FS.js → chunk-JODE2XED.js} +31 -27
- package/dist/bundle/{chunk-CWVAYQXI.js → chunk-K5I64ZVI.js} +9 -9
- package/dist/bundle/chunk-KFVDL2QS.js +146 -0
- package/dist/bundle/{chunk-JKIN5TOU.js → chunk-KL3P5TQK.js} +4 -4
- package/dist/bundle/chunk-L62XTC7N.js +726 -0
- package/dist/bundle/chunk-L6H7PY4X.js +170 -0
- package/dist/bundle/{chunk-F6MLJ3V5.js → chunk-LIQMUDIZ.js} +2 -2
- package/dist/bundle/{chunk-HWRKURQH.js → chunk-M2EEIYBU.js} +2 -2
- package/dist/bundle/chunk-M6DGZ2O6.js +823 -0
- package/dist/bundle/chunk-MGUEZYFA.js +5546 -0
- package/dist/bundle/{chunk-UWIA2G6Q.js → chunk-MRA62W5K.js} +404 -537
- package/dist/bundle/{chunk-XYIT2XB3.js → chunk-MVA5HVKL.js} +20 -0
- package/dist/bundle/{chunk-GA3URWIF.js → chunk-NO2LIHWA.js} +1 -1
- package/dist/bundle/{chunk-ESZT4WW3.js → chunk-OCDJ4FFA.js} +4 -4
- package/dist/bundle/{chunk-B4B65XIO.js → chunk-OI5DWZJG.js} +3 -3
- package/dist/bundle/chunk-P3P6DA6K.js +259 -0
- package/dist/bundle/chunk-QX3TPFEX.js +1977 -0
- package/dist/bundle/{chunk-EU5WCOMQ.js → chunk-R6SDRSZK.js} +76 -35
- package/dist/bundle/{chunk-K5TWMQSY.js → chunk-RMJMID5D.js} +8 -8
- package/dist/bundle/{chunk-RLSFOR2D.js → chunk-SGBS5QCU.js} +4 -4
- package/dist/bundle/{chunk-3D3PFXBP.js → chunk-T5UNSFES.js} +10 -15
- package/dist/bundle/{chunk-RAZKIHGH.js → chunk-TFNRCCGR.js} +4 -4
- package/dist/bundle/{chunk-WK3OSDNV.js → chunk-TJCPTRYD.js} +7 -7
- package/dist/bundle/{chunk-BWICUW7W.js → chunk-TXONV3HW.js} +2 -2
- package/dist/bundle/{chunk-AQZO3ITW.js → chunk-TZ2QJ53V.js} +2 -2
- package/dist/bundle/{chunk-35K5T6WV.js → chunk-UKE3CGHK.js} +1 -1
- package/dist/bundle/{chunk-7N5QB6NL.js → chunk-UROEWCOG.js} +5 -3
- package/dist/bundle/chunk-WHJWURZB.js +335 -0
- package/dist/bundle/{chunk-R6ZM45NF.js → chunk-WU3XHGOB.js} +185 -57
- package/dist/bundle/{chunk-2YR3RYT4.js → chunk-WZEEEQGC.js} +3 -3
- package/dist/bundle/{chunk-B2WFKFYL.js → chunk-XCTOCVMW.js} +20 -116
- package/dist/bundle/chunk-XFLCVHSQ.js +50 -0
- package/dist/bundle/{chunk-EGTBL3MJ.js → chunk-Y5LAJWR5.js} +1 -1
- package/dist/bundle/{chunk-66PL7P4C.js → chunk-YAPDU3SV.js} +1 -1
- package/dist/bundle/{chunk-WWMB4UHF.js → chunk-YFWLHTNO.js} +1 -1
- package/dist/bundle/{chunk-KHOVVPLC.js → chunk-YGCI3DHS.js} +1 -1
- package/dist/bundle/{chunk-4GC5DBHW.js → chunk-Z53LYX4M.js} +3 -3
- package/dist/bundle/{chunk-EPAZ7DJB.js → chunk-ZC6ZQQ55.js} +48 -45
- package/dist/bundle/command-contract-UBXS6NHI.js +38 -0
- package/dist/bundle/{command-server-entry-A66DJ3MH.js → command-server-entry-2SORMVRM.js} +27 -24
- package/dist/bundle/decode-5O7IEFPN.js +297 -0
- package/dist/bundle/{dispatch-FEKU5UXC.js → dispatch-YHQX6FEJ.js} +8 -8
- package/dist/bundle/{dist-YFKABFFF.js → dist-ILNOLGYN.js} +1 -1
- package/dist/bundle/{echarts-XD2JSWU4.js → echarts-ARLMVQC7.js} +2 -2
- package/dist/bundle/{embed-F3HYGAF7.js → embed-FUDUKQ3K.js} +7 -7
- package/dist/bundle/{embedder-GSEDDUH7.js → embedder-HDRV7GX3.js} +10 -10
- package/dist/bundle/{failure-HDJLR2YJ.js → failure-JHXICWIL.js} +3 -3
- package/dist/bundle/first-run-BGEFTXOE.js +29 -0
- package/dist/bundle/first-screen-F5F3VS6Y.js +38 -0
- package/dist/bundle/{instructions-NZGJ4FW5.js → instructions-MEFIKCDI.js} +1 -1
- package/dist/bundle/{mcp-VFIOZDVY.js → mcp-VMS6PBCU.js} +2 -2
- package/dist/bundle/mdast-util-from-markdown-R66F4HZA.js +1958 -0
- package/dist/bundle/mdast-util-gfm-LN2ELINH.js +2699 -0
- package/dist/bundle/meeting-combined-HNSS3FQY.js +24 -0
- package/dist/bundle/meeting-model-REZVYGQW.js +26 -0
- package/dist/bundle/meeting-semantic-R4CSLVRG.js +22 -0
- package/dist/bundle/micromark-extension-gfm-5X7YT43T.js +1838 -0
- package/dist/bundle/{node-RPKPDYQS.js → node-MAQALPLA.js} +2 -2
- package/dist/bundle/{node-sqlite-KH2UUYVO.js → node-sqlite-J7IJYNBO.js} +8 -8
- package/dist/bundle/notion.js +14 -14
- package/dist/bundle/{oauth-NKAI7TQD.js → oauth-AMV4YGJD.js} +8 -8
- package/dist/bundle/{open-WSAEAA2V.js → open-AB27MTGR.js} +6 -6
- package/dist/bundle/{openai-JPVDGHG5.js → openai-D77MU5XV.js} +31 -29
- package/dist/bundle/{process-5ZFVKOQX.js → process-SIOWTRJ6.js} +1 -1
- package/dist/bundle/{program-M3D56D6T.js → program-QC5MX4ZJ.js} +7533 -1997
- package/dist/bundle/{prompt-FROYQ5LV.js → prompt-W77YDHA6.js} +6 -6
- package/dist/bundle/{recognize-NYCHQMCX.js → recognize-3JAXQQ36.js} +5 -5
- package/dist/bundle/{remote-4OERF3Z4.js → remote-PSOJXCXO.js} +11 -11
- package/dist/bundle/{rerank-TEGXFUWY.js → rerank-EE44ZTGL.js} +8 -8
- package/dist/bundle/{schemas-MZNNOEYN.js → schemas-LBYUMBC6.js} +2 -2
- package/dist/bundle/{serve-HLYYBAXY.js → serve-XJMGAMFW.js} +10 -10
- package/dist/bundle/{server-D5OYNEUW.js → server-ASU6CP5R.js} +53 -44
- package/dist/bundle/server-WSPQ5EOA.js +72 -0
- package/dist/bundle/services-PT4PA4J6.js +588 -0
- package/dist/bundle/{sqlite-runtime-H2S5RR2F.js → sqlite-runtime-YHXRTVXE.js} +7 -7
- package/dist/bundle/{state-OPOXCDZL.js → state-T6ZKFWGD.js} +7 -7
- package/dist/bundle/{store-NHMXEJPD.js → store-3MUCZEI3.js} +20 -14
- package/dist/bundle/{store-Y3KRLCJ7.js → store-E5EE25FY.js} +30 -21
- package/dist/bundle/store-maintenance-command-ZZ55BBBG.js +63 -0
- package/dist/commands/api.d.ts.map +1 -1
- package/dist/commands/api.js +13 -4
- package/dist/commands/api.js.map +1 -1
- package/dist/commands/documents.d.ts +10 -1
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +175 -5
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/library.d.ts +10 -0
- package/dist/commands/library.d.ts.map +1 -0
- package/dist/commands/library.js +470 -0
- package/dist/commands/library.js.map +1 -0
- package/dist/commands/session.d.ts.map +1 -1
- package/dist/commands/session.js +4 -3
- package/dist/commands/session.js.map +1 -1
- package/dist/config.d.ts +19 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +73 -5
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +8 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +15 -3
- package/dist/context.js.map +1 -1
- package/dist/generated/types.d.ts +485 -375
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +1 -0
- package/dist/identity.js.map +1 -1
- package/dist/knowledge.d.ts +27 -0
- package/dist/knowledge.d.ts.map +1 -0
- package/dist/knowledge.js +87 -0
- package/dist/knowledge.js.map +1 -0
- package/dist/library.d.ts +44 -0
- package/dist/library.d.ts.map +1 -0
- package/dist/library.js +149 -0
- package/dist/library.js.map +1 -0
- package/dist/notion/client.d.ts +4 -1
- package/dist/notion/client.d.ts.map +1 -1
- package/dist/notion/client.js +5 -2
- package/dist/notion/client.js.map +1 -1
- package/dist/notion/errors.d.ts +5 -0
- package/dist/notion/errors.d.ts.map +1 -1
- package/dist/notion/errors.js +33 -1
- package/dist/notion/errors.js.map +1 -1
- package/dist/notion/reads.d.ts +4 -0
- package/dist/notion/reads.d.ts.map +1 -1
- package/dist/notion/writes.d.ts +40 -0
- package/dist/notion/writes.d.ts.map +1 -0
- package/dist/notion/writes.js +112 -0
- package/dist/notion/writes.js.map +1 -0
- package/dist/program.js +2 -2
- package/dist/program.js.map +1 -1
- package/dist/sync/cursor.d.ts +93 -0
- package/dist/sync/cursor.d.ts.map +1 -1
- package/dist/sync/cursor.js +63 -2
- package/dist/sync/cursor.js.map +1 -1
- package/dist/sync/files.d.ts +87 -0
- package/dist/sync/files.d.ts.map +1 -0
- package/dist/sync/files.js +31 -0
- package/dist/sync/files.js.map +1 -0
- package/dist/sync/markdown.d.ts +4 -1
- package/dist/sync/markdown.d.ts.map +1 -1
- package/dist/sync/markdown.js +8 -6
- package/dist/sync/markdown.js.map +1 -1
- package/dist/sync/source.d.ts +6 -59
- package/dist/sync/source.d.ts.map +1 -1
- package/dist/sync/source.js +650 -271
- package/dist/sync/source.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/notion-cli/SKILL.md +18 -1
- package/dist/bundle/command-contract-6G5DC2FN.js +0 -35
- package/dist/bundle/decode-7XOFRAAT.js +0 -163
- package/dist/bundle/first-run-TXNTIUSP.js +0 -28
- package/dist/bundle/first-screen-JZPJND7J.js +0 -33
- package/dist/bundle/server-LWZGVMNW.js +0 -62
- package/dist/bundle/store-maintenance-command-D4W7WSLQ.js +0 -53
- package/dist/commands/comments.d.ts +0 -3
- package/dist/commands/comments.d.ts.map +0 -1
- package/dist/commands/comments.js +0 -114
- package/dist/commands/comments.js.map +0 -1
- package/dist/sample/comments.d.ts +0 -61
- package/dist/sample/comments.d.ts.map +0 -1
- package/dist/sample/comments.js +0 -39
- package/dist/sample/comments.js.map +0 -1
- package/dist/sample/records.d.ts +0 -16
- package/dist/sample/records.d.ts.map +0 -1
- package/dist/sample/records.js +0 -22
- package/dist/sample/records.js.map +0 -1
- package/dist/sample/transport.d.ts +0 -42
- package/dist/sample/transport.d.ts.map +0 -1
- package/dist/sample/transport.js +0 -153
- package/dist/sample/transport.js.map +0 -1
- /package/dist/bundle/{chunk-ZI3YTXSF.js → chunk-SHTHNBHG.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.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
isoTime,
|
|
8
8
|
parseRegistry,
|
|
9
9
|
text
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6GN7KU7X.js";
|
|
11
11
|
import {
|
|
12
12
|
array,
|
|
13
13
|
getDotPath,
|
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
strictObject,
|
|
22
22
|
string,
|
|
23
23
|
unknown
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-MVA5HVKL.js";
|
|
25
25
|
import {
|
|
26
26
|
CliError,
|
|
27
27
|
visibleControls
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-LIQMUDIZ.js";
|
|
29
29
|
import {
|
|
30
30
|
__commonJS,
|
|
31
31
|
__name,
|
|
@@ -1898,7 +1898,7 @@ var require_cli_table3 = __commonJS({
|
|
|
1898
1898
|
}
|
|
1899
1899
|
});
|
|
1900
1900
|
|
|
1901
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1901
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/paths.js
|
|
1902
1902
|
import { realpathSync } from "node:fs";
|
|
1903
1903
|
import { homedir, userInfo } from "node:os";
|
|
1904
1904
|
import { join, posix, win32 } from "node:path";
|
|
@@ -1972,7 +1972,7 @@ var homeIsMoved = /* @__PURE__ */ __name(({ env = process.env, platform = proces
|
|
|
1972
1972
|
var isMovedRun = /* @__PURE__ */ __name((options) => pathsAreOverridden(options) || homeIsMoved(options), "isMovedRun");
|
|
1973
1973
|
var configFilePath = /* @__PURE__ */ __name((configDir, fileName = "config.json") => join(configDir, fileName), "configFilePath");
|
|
1974
1974
|
|
|
1975
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1975
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/retry.js
|
|
1976
1976
|
var DEFAULT_RETRY = {
|
|
1977
1977
|
retries: 1,
|
|
1978
1978
|
baseDelayMs: 250,
|
|
@@ -1984,7 +1984,7 @@ var backoffMs = /* @__PURE__ */ __name((attempt, config, random) => {
|
|
|
1984
1984
|
return Math.round(random() * ceiling);
|
|
1985
1985
|
}, "backoffMs");
|
|
1986
1986
|
|
|
1987
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1987
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/result-fields.js
|
|
1988
1988
|
var forbidden = /* @__PURE__ */ new Set(["__proto__", "prototype", "constructor"]);
|
|
1989
1989
|
var validate = /* @__PURE__ */ __name((paths) => {
|
|
1990
1990
|
if (paths.length === 0 || paths.length > 128 || paths.some((path) => path.length > 256 || !/^[A-Za-z][A-Za-z0-9_]*(?:\.[A-Za-z][A-Za-z0-9_]*)*$/.test(path) || path.split(".").some((part) => forbidden.has(part))))
|
|
@@ -1996,7 +1996,7 @@ var fieldsOf = /* @__PURE__ */ __name((value) => {
|
|
|
1996
1996
|
return [...new Set(paths)];
|
|
1997
1997
|
}, "fieldsOf");
|
|
1998
1998
|
var object2 = /* @__PURE__ */ __name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "object");
|
|
1999
|
-
var retained = /* @__PURE__ */ new Set(["operation_id", "page", "next", "missing", "meta", "coverage"]);
|
|
1999
|
+
var retained = /* @__PURE__ */ new Set(["operation_id", "page", "next", "missing", "meta", "coverage", "untrusted"]);
|
|
2000
2000
|
var itemPaths = /* @__PURE__ */ __name((paths) => paths.map((path) => path.startsWith("items.") ? path.slice(6) : path), "itemPaths");
|
|
2001
2001
|
var onePaths = /* @__PURE__ */ __name((paths) => paths.map((path) => path.startsWith("item.") ? path.slice(5) : path), "onePaths");
|
|
2002
2002
|
var select = /* @__PURE__ */ __name((value, paths) => {
|
|
@@ -2049,7 +2049,7 @@ var projectFields = /* @__PURE__ */ __name((value, fields) => {
|
|
|
2049
2049
|
return project(value, fields);
|
|
2050
2050
|
}, "projectFields");
|
|
2051
2051
|
|
|
2052
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2052
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/batch.js
|
|
2053
2053
|
var BATCH_LIMITS = Object.freeze({
|
|
2054
2054
|
requests: 32,
|
|
2055
2055
|
input_bytes: 262144,
|
|
@@ -2176,7 +2176,7 @@ var runBatch = /* @__PURE__ */ __name(async (requests, options = {}) => {
|
|
|
2176
2176
|
};
|
|
2177
2177
|
}, "runBatch");
|
|
2178
2178
|
|
|
2179
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2179
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/config.js
|
|
2180
2180
|
import { randomBytes } from "node:crypto";
|
|
2181
2181
|
import { mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
2182
2182
|
import { dirname, join as join2 } from "node:path";
|
|
@@ -2220,16 +2220,16 @@ var saveConfigFile = /* @__PURE__ */ __name((path, config) => {
|
|
|
2220
2220
|
`, 384);
|
|
2221
2221
|
}, "saveConfigFile");
|
|
2222
2222
|
|
|
2223
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2223
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/constants.js
|
|
2224
2224
|
var BASE_CONSTANTS = new URL("../constants.json", new URL("constants.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
2225
2225
|
var baseConstantsSchema = object({});
|
|
2226
2226
|
var LayerSchema = record(string(), unknown());
|
|
2227
2227
|
|
|
2228
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2228
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2229
2229
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
2230
2230
|
import { join as join3, resolve } from "node:path";
|
|
2231
2231
|
|
|
2232
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2232
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/keyring.js
|
|
2233
2233
|
import { createRequire } from "node:module";
|
|
2234
2234
|
var ENTRY_OPTIONS = { linux: { store: "secret-service" } };
|
|
2235
2235
|
var require2 = createRequire(new URL("keyring.js", import.meta.resolve("@wirecat/cli-base")).href);
|
|
@@ -2255,7 +2255,7 @@ var systemKeyring = {
|
|
|
2255
2255
|
delete: /* @__PURE__ */ __name((service, account) => entry(service, account).deletePassword(), "delete")
|
|
2256
2256
|
};
|
|
2257
2257
|
|
|
2258
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2258
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/credentials.js
|
|
2259
2259
|
var movedRunService = /* @__PURE__ */ __name((service, configDir) => `${service}:${resolve(configDir)}`, "movedRunService");
|
|
2260
2260
|
var warnedRuns = /* @__PURE__ */ new WeakSet();
|
|
2261
2261
|
var Credentials = class {
|
|
@@ -2390,7 +2390,7 @@ var Credentials = class {
|
|
|
2390
2390
|
}
|
|
2391
2391
|
};
|
|
2392
2392
|
|
|
2393
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2393
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/time.js
|
|
2394
2394
|
var abortError = /* @__PURE__ */ __name(() => new DOMException("The operation was aborted.", "AbortError"), "abortError");
|
|
2395
2395
|
var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, reject) => {
|
|
2396
2396
|
if (signal?.aborted) {
|
|
@@ -2405,10 +2405,10 @@ var realSleep = /* @__PURE__ */ __name((ms, signal) => new Promise((resolve2, re
|
|
|
2405
2405
|
}), "realSleep");
|
|
2406
2406
|
var wallClock = /* @__PURE__ */ __name(() => /* @__PURE__ */ new Date(), "wallClock");
|
|
2407
2407
|
|
|
2408
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2408
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2409
2409
|
import { appendFileSync } from "node:fs";
|
|
2410
2410
|
|
|
2411
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2411
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/log.js
|
|
2412
2412
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
2413
2413
|
var logRecordSchema = strictObject({
|
|
2414
2414
|
time: isoTime,
|
|
@@ -2486,7 +2486,7 @@ var traceIdOf = /* @__PURE__ */ __name((traceparent) => {
|
|
|
2486
2486
|
return traceId;
|
|
2487
2487
|
}, "traceIdOf");
|
|
2488
2488
|
|
|
2489
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2489
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/logging.js
|
|
2490
2490
|
var REDACTED_FIELDS = [
|
|
2491
2491
|
"authorization",
|
|
2492
2492
|
"Authorization",
|
|
@@ -2580,7 +2580,7 @@ var silent = {
|
|
|
2580
2580
|
}, "error")
|
|
2581
2581
|
};
|
|
2582
2582
|
|
|
2583
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2583
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/pretty.js
|
|
2584
2584
|
var import_cli_table3 = __toESM(require_cli_table3(), 1);
|
|
2585
2585
|
import { styleText } from "node:util";
|
|
2586
2586
|
var renderPretty = /* @__PURE__ */ __name((value, options) => {
|
|
@@ -2654,7 +2654,7 @@ var BORDERLESS = {
|
|
|
2654
2654
|
middle: ""
|
|
2655
2655
|
};
|
|
2656
2656
|
|
|
2657
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2657
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/drain.js
|
|
2658
2658
|
var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
2659
2659
|
if (signal?.aborted)
|
|
2660
2660
|
return Promise.reject(signal.reason);
|
|
@@ -2682,7 +2682,7 @@ var waitForDrain = /* @__PURE__ */ __name((stream, signal) => {
|
|
|
2682
2682
|
});
|
|
2683
2683
|
}, "waitForDrain");
|
|
2684
2684
|
|
|
2685
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2685
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/streams.js
|
|
2686
2686
|
var processStreams = {
|
|
2687
2687
|
drain: /* @__PURE__ */ __name(async (signal) => {
|
|
2688
2688
|
await Promise.all([waitForDrain(process.stdout, signal), waitForDrain(process.stderr, signal)]);
|
|
@@ -2711,7 +2711,7 @@ var captureStreams = /* @__PURE__ */ __name(() => {
|
|
|
2711
2711
|
};
|
|
2712
2712
|
}, "captureStreams");
|
|
2713
2713
|
|
|
2714
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2714
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/renderer.js
|
|
2715
2715
|
var createRenderer = /* @__PURE__ */ __name(({ format, color, streams = processStreams, quiet = false }) => {
|
|
2716
2716
|
const mark = /* @__PURE__ */ __name((symbol, message) => format === "pretty" ? `${symbol} ${visibleControls(message)}` : visibleControls(message), "mark");
|
|
2717
2717
|
const say = /* @__PURE__ */ __name((symbol) => (message) => {
|
|
@@ -3,46 +3,48 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XCTOCVMW.js";
|
|
7
|
+
import {
|
|
8
|
+
chatEventAnswer,
|
|
9
|
+
memberAnswer,
|
|
10
|
+
pollVoteAnswer,
|
|
11
|
+
serveRelay
|
|
12
|
+
} from "./chunk-L62XTC7N.js";
|
|
13
|
+
import {
|
|
14
|
+
readSecret
|
|
15
|
+
} from "./chunk-Z53LYX4M.js";
|
|
16
|
+
import {
|
|
17
|
+
stringWidth,
|
|
18
|
+
wrapAnsi
|
|
19
|
+
} from "./chunk-EH6ZEJGT.js";
|
|
7
20
|
import {
|
|
8
21
|
FETCHING,
|
|
9
22
|
RULES_VERSION,
|
|
10
23
|
applyTaskRulesOnArrival,
|
|
11
24
|
capability,
|
|
12
|
-
chatEventAnswer,
|
|
13
25
|
embeddingKeys,
|
|
14
26
|
endpointKeyName,
|
|
15
|
-
memberAnswer,
|
|
16
27
|
modelGateway,
|
|
17
28
|
newSendId,
|
|
18
29
|
onlineDeps,
|
|
19
30
|
openRequestTask,
|
|
20
31
|
patiently,
|
|
21
|
-
pollVoteAnswer,
|
|
22
32
|
queryTerms,
|
|
23
33
|
refuseLockedOutput,
|
|
24
34
|
senderIsMe,
|
|
25
|
-
serveRelay,
|
|
26
35
|
servicesFor,
|
|
27
36
|
syncsOneChat,
|
|
28
37
|
typedQuery,
|
|
29
38
|
withQuery,
|
|
30
39
|
withTimeLimit
|
|
31
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-GCCPFKSU.js";
|
|
32
41
|
import {
|
|
33
42
|
holdLock,
|
|
34
43
|
lockPath,
|
|
35
44
|
releaseLock,
|
|
36
45
|
servingProfiles,
|
|
37
46
|
takeLock
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import {
|
|
40
|
-
readSecret
|
|
41
|
-
} from "./chunk-4GC5DBHW.js";
|
|
42
|
-
import {
|
|
43
|
-
stringWidth,
|
|
44
|
-
wrapAnsi
|
|
45
|
-
} from "./chunk-EH6ZEJGT.js";
|
|
47
|
+
} from "./chunk-OI5DWZJG.js";
|
|
46
48
|
import {
|
|
47
49
|
Command,
|
|
48
50
|
LOCAL_READ,
|
|
@@ -70,10 +72,10 @@ import {
|
|
|
70
72
|
snakeKeys,
|
|
71
73
|
storeTable,
|
|
72
74
|
withoutProviderRefs
|
|
73
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-MRA62W5K.js";
|
|
74
76
|
import {
|
|
75
77
|
holdersOf
|
|
76
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-7YZPBAQX.js";
|
|
77
79
|
import {
|
|
78
80
|
QUICK_HEALTH_CHECKS,
|
|
79
81
|
fts5Tables,
|
|
@@ -81,7 +83,7 @@ import {
|
|
|
81
83
|
lossUnknown,
|
|
82
84
|
storeDamageReport,
|
|
83
85
|
storeHealth
|
|
84
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-EQPAZ33O.js";
|
|
85
87
|
import {
|
|
86
88
|
CORPORA,
|
|
87
89
|
MIGRATIONS,
|
|
@@ -116,42 +118,44 @@ import {
|
|
|
116
118
|
storeClients,
|
|
117
119
|
storeContents,
|
|
118
120
|
vectorIndexCounts
|
|
119
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-7NVPM55S.js";
|
|
120
122
|
import {
|
|
121
123
|
currentRun,
|
|
122
124
|
formatLocator,
|
|
123
125
|
parseLocator,
|
|
124
|
-
queryFieldsOf,
|
|
125
126
|
readDamageMark,
|
|
126
127
|
readHealthMark,
|
|
127
128
|
readJournalMark,
|
|
128
129
|
recordDeepCheck
|
|
129
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-QX3TPFEX.js";
|
|
130
131
|
import {
|
|
131
132
|
failureKey,
|
|
132
133
|
isStoreDamage
|
|
133
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-UROEWCOG.js";
|
|
135
|
+
import {
|
|
136
|
+
queryFieldsOf
|
|
137
|
+
} from "./chunk-FSJHASRQ.js";
|
|
134
138
|
import {
|
|
135
139
|
modelAddressAllowed,
|
|
136
140
|
onThisComputer
|
|
137
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-WZEEEQGC.js";
|
|
138
142
|
import {
|
|
139
143
|
readSharedSection,
|
|
140
144
|
sharedConfigPath,
|
|
141
145
|
writeSharedSection
|
|
142
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-TJCPTRYD.js";
|
|
143
147
|
import {
|
|
144
148
|
storePath
|
|
145
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-M2EEIYBU.js";
|
|
146
150
|
import {
|
|
147
151
|
openCache
|
|
148
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-EY6S7FV3.js";
|
|
149
153
|
import {
|
|
150
154
|
Credentials,
|
|
151
155
|
isMovedRun,
|
|
152
156
|
resolvePaths,
|
|
153
157
|
writeSecurely
|
|
154
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-AYU5TFDU.js";
|
|
155
159
|
import {
|
|
156
160
|
array,
|
|
157
161
|
boolean,
|
|
@@ -173,12 +177,12 @@ import {
|
|
|
173
177
|
string,
|
|
174
178
|
transform,
|
|
175
179
|
trim
|
|
176
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-MVA5HVKL.js";
|
|
177
181
|
import {
|
|
178
182
|
CliError,
|
|
179
183
|
singleLine,
|
|
180
184
|
visibleControls
|
|
181
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-LIQMUDIZ.js";
|
|
182
186
|
import {
|
|
183
187
|
__commonJS,
|
|
184
188
|
__name,
|
|
@@ -5518,11 +5522,11 @@ var require_liquid_node = __commonJS({
|
|
|
5518
5522
|
}
|
|
5519
5523
|
});
|
|
5520
5524
|
|
|
5521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5525
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5522
5526
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync10, mkdirSync, realpathSync as realpathSync3, renameSync as renameSync3, rmSync as rmSync3, statfsSync as statfsSync2, statSync as statSync4, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5523
5527
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5524
5528
|
|
|
5525
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5526
5530
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5527
5531
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5528
5532
|
import { Transform } from "node:stream";
|
|
@@ -5629,7 +5633,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5629
5633
|
renameSync(pending, to);
|
|
5630
5634
|
}, "unsealFile");
|
|
5631
5635
|
|
|
5632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5633
5637
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5634
5638
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5635
5639
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5653,7 +5657,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5653
5657
|
};
|
|
5654
5658
|
}, "compatibilityOf");
|
|
5655
5659
|
|
|
5656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5657
5661
|
import { createHash as createHash2 } from "node:crypto";
|
|
5658
5662
|
var COPY_MARK = "__repair_";
|
|
5659
5663
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5907,19 +5911,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5907
5911
|
return found;
|
|
5908
5912
|
}, "deleteCopy");
|
|
5909
5913
|
|
|
5910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5911
5915
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5912
5916
|
|
|
5913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5917
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5914
5918
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5915
5919
|
|
|
5916
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5917
5921
|
import { execFileSync, spawn } from "node:child_process";
|
|
5918
5922
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5919
5923
|
import { basename, dirname, join } from "node:path";
|
|
5920
5924
|
import { Transform as Transform2 } from "node:stream";
|
|
5921
5925
|
|
|
5922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/refill.js
|
|
5923
5927
|
var REFILL_MARGIN_MS = 864e5;
|
|
5924
5928
|
var TIME_KEYS = 1e12;
|
|
5925
5929
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -5999,7 +6003,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
5999
6003
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6000
6004
|
}, "forgetMail");
|
|
6001
6005
|
|
|
6002
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
6003
6007
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6004
6008
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6005
6009
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6527,7 +6531,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6527
6531
|
}
|
|
6528
6532
|
}, "recoverLocked");
|
|
6529
6533
|
|
|
6530
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6534
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6531
6535
|
var COUNTED = [
|
|
6532
6536
|
"accounts",
|
|
6533
6537
|
"chats",
|
|
@@ -6683,7 +6687,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6683
6687
|
return recover;
|
|
6684
6688
|
}, "storeRecoverCommand");
|
|
6685
6689
|
|
|
6686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6687
6691
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6688
6692
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6689
6693
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6729,7 +6733,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
6729
6733
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
6730
6734
|
}), "storeInfoCommand");
|
|
6731
6735
|
|
|
6732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6733
6737
|
var ENCRYPT_OPTION = [
|
|
6734
6738
|
"--encrypt",
|
|
6735
6739
|
"compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
|
|
@@ -6748,7 +6752,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6748
6752
|
return password;
|
|
6749
6753
|
}, "passwordOf");
|
|
6750
6754
|
|
|
6751
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6752
6756
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6753
6757
|
import { join as join2 } from "node:path";
|
|
6754
6758
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6919,7 +6923,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6919
6923
|
}, "problem");
|
|
6920
6924
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6921
6925
|
|
|
6922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6926
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6923
6927
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6924
6928
|
import { join as join3 } from "node:path";
|
|
6925
6929
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6972,7 +6976,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6972
6976
|
}, "recordReply");
|
|
6973
6977
|
var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
|
|
6974
6978
|
|
|
6975
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6979
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6976
6980
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6977
6981
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6978
6982
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7078,10 +7082,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7078
7082
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7079
7083
|
}, "filled");
|
|
7080
7084
|
|
|
7081
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7085
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7082
7086
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7083
7087
|
|
|
7084
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7088
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
7085
7089
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7086
7090
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7087
7091
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7108,7 +7112,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7108
7112
|
return engine;
|
|
7109
7113
|
}, "safeLiquid");
|
|
7110
7114
|
|
|
7111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
7112
7116
|
var TEMPLATE_LIMITS = {
|
|
7113
7117
|
parse: 32768,
|
|
7114
7118
|
renders: 2e3,
|
|
@@ -7247,7 +7251,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7247
7251
|
}
|
|
7248
7252
|
}, "renderReplyTemplate");
|
|
7249
7253
|
|
|
7250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7254
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
7251
7255
|
var DRY_RUN_DAYS = 7;
|
|
7252
7256
|
var PAGE = 500;
|
|
7253
7257
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7361,7 +7365,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7361
7365
|
}
|
|
7362
7366
|
}, "storedSince");
|
|
7363
7367
|
|
|
7364
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/models/ai.js
|
|
7365
7369
|
var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
|
|
7366
7370
|
var DEFAULT_BASE_URL = {
|
|
7367
7371
|
anthropic: "https://api.anthropic.com",
|
|
@@ -7511,7 +7515,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
|
|
|
7511
7515
|
}
|
|
7512
7516
|
}, "checkAi");
|
|
7513
7517
|
|
|
7514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7518
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/models/purpose.js
|
|
7515
7519
|
var HOSTED = {
|
|
7516
7520
|
openai: "https://api.openai.com/v1",
|
|
7517
7521
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7532,7 +7536,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7532
7536
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7533
7537
|
}, "purposeModel");
|
|
7534
7538
|
|
|
7535
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7539
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7536
7540
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7537
7541
|
import { join as join4 } from "node:path";
|
|
7538
7542
|
var shape = strictObject({
|
|
@@ -7557,7 +7561,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7557
7561
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7558
7562
|
}, "mayModelReply");
|
|
7559
7563
|
|
|
7560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7564
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7561
7565
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7562
7566
|
ai: true
|
|
7563
7567
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7605,7 +7609,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7605
7609
|
return result2;
|
|
7606
7610
|
}, "replyRenderer");
|
|
7607
7611
|
|
|
7608
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7609
7613
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7610
7614
|
var NO_RULES = "no rules";
|
|
7611
7615
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7698,7 +7702,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7698
7702
|
return { skip: why };
|
|
7699
7703
|
}, "replyTo");
|
|
7700
7704
|
|
|
7701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7705
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7702
7706
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7703
7707
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7704
7708
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7775,7 +7779,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7775
7779
|
};
|
|
7776
7780
|
}, "startSync");
|
|
7777
7781
|
|
|
7778
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7782
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7779
7783
|
var FIRST_FETCH_MS = 6e4;
|
|
7780
7784
|
var DAY_MS = 864e5;
|
|
7781
7785
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7829,7 +7833,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7829
7833
|
};
|
|
7830
7834
|
}, "memberFetches");
|
|
7831
7835
|
|
|
7832
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7833
7837
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7834
7838
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7835
7839
|
if (context.format === "pretty") {
|
|
@@ -7862,7 +7866,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7862
7866
|
return context;
|
|
7863
7867
|
}, "recordDiagnostics");
|
|
7864
7868
|
|
|
7865
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7869
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-outdated.js
|
|
7866
7870
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7867
7871
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7868
7872
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7948,7 +7952,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7948
7952
|
};
|
|
7949
7953
|
}, "watchOutdated");
|
|
7950
7954
|
|
|
7951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7955
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7952
7956
|
var STEMS_EVERY_MS = 3e4;
|
|
7953
7957
|
var STEMS_SLICE_MS = 2e3;
|
|
7954
7958
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7988,7 +7992,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7988
7992
|
};
|
|
7989
7993
|
}, "stemFills");
|
|
7990
7994
|
|
|
7991
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
7992
7996
|
import { styleText } from "node:util";
|
|
7993
7997
|
var TIME_WIDTH = 8;
|
|
7994
7998
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -8164,7 +8168,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
|
|
|
8164
8168
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
8165
8169
|
}, "editedAt");
|
|
8166
8170
|
|
|
8167
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8171
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
8168
8172
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8169
8173
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8170
8174
|
kind: attachment.kind,
|
|
@@ -8260,7 +8264,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8260
8264
|
locale: messenger.app.locale
|
|
8261
8265
|
}), "viewOf");
|
|
8262
8266
|
|
|
8263
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
8264
8268
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8265
8269
|
value: value.value,
|
|
8266
8270
|
observed_at: value.observedAt,
|
|
@@ -8327,7 +8331,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8327
8331
|
}
|
|
8328
8332
|
}, "watchEventItem");
|
|
8329
8333
|
|
|
8330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8334
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
8331
8335
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8332
8336
|
output: { entity: "watch_item" },
|
|
8333
8337
|
effects: REMOTE_READ,
|
|
@@ -8482,7 +8486,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8482
8486
|
}
|
|
8483
8487
|
}, "describe");
|
|
8484
8488
|
|
|
8485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8489
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
8486
8490
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8487
8491
|
const command = annotate(new Command("serve"), {
|
|
8488
8492
|
output: { entity: "serve_summary" },
|
|
@@ -8768,7 +8772,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8768
8772
|
};
|
|
8769
8773
|
}, "tasking");
|
|
8770
8774
|
|
|
8771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8772
8776
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8773
8777
|
var PATH = "store tables list";
|
|
8774
8778
|
var STORE_TABLES_QUERY = {
|
|
@@ -8811,7 +8815,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8811
8815
|
return tables;
|
|
8812
8816
|
}, "storeTablesCommand");
|
|
8813
8817
|
|
|
8814
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8818
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.680.0_@wirecat+cli-base@0.106.0_commander@15.0.0_esbuild@0.28.2_typ_620ac9b386657c249f5c9038159a7caa/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8815
8819
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8816
8820
|
var WORD_INDEX = "message_words";
|
|
8817
8821
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|