@wirecat/notion-cli 0.2.0 → 0.4.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 +54 -0
- package/README.md +9 -2
- package/contracts/wirecat.json +97 -0
- package/dist/bin/notion.js +2 -2
- package/dist/bundle/{all-profiles-JGYLQZ5C.js → all-profiles-4IONYZB6.js} +10 -10
- package/dist/bundle/{anthropic-S2VSMIKQ.js → anthropic-OXF74J4P.js} +6 -6
- package/dist/bundle/{app-server-SASYDBCA.js → app-server-M2VF6ABM.js} +59 -59
- package/dist/bundle/{bun-LU5LP3JI.js → bun-DLA6QRLL.js} +2 -2
- package/dist/bundle/{bun-sqlite-JBSINB4O.js → bun-sqlite-F4BYLW3F.js} +7 -7
- package/dist/bundle/{chunk-4HWJOU7N.js → chunk-2MHMKNWD.js} +1 -1
- package/dist/bundle/{chunk-SHJQ6JKG.js → chunk-4KUJTSHG.js} +2 -2
- package/dist/bundle/{chunk-SWAOWNKW.js → chunk-4TQVZXOV.js} +3 -3
- package/dist/bundle/{chunk-ODBZNSZ6.js → chunk-5LBJNTEJ.js} +6 -6
- package/dist/bundle/{chunk-SZOVLP44.js → chunk-5UA2TYMI.js} +2 -2
- package/dist/bundle/{chunk-22QQUKWA.js → chunk-5XP4KQ2F.js} +1 -1
- package/dist/bundle/{chunk-4IPURN72.js → chunk-6GN7KU7X.js} +9 -9
- package/dist/bundle/{chunk-X4TIMMKJ.js → chunk-6JBLIQQN.js} +1 -1
- package/dist/bundle/{chunk-4ZTVJHWU.js → chunk-7NF3V5L2.js} +4 -4
- package/dist/bundle/{chunk-OTV53F34.js → chunk-7NGFGFE5.js} +9 -60
- package/dist/bundle/{chunk-VBHETQVV.js → chunk-7NVPM55S.js} +1908 -1013
- package/dist/bundle/{chunk-Z56QFOBR.js → chunk-7YZPBAQX.js} +1 -1
- package/dist/bundle/{chunk-3AL7QUS3.js → chunk-AYU5TFDU.js} +20 -20
- package/dist/bundle/{chunk-FPY6EJ7B.js → chunk-BEPFGITI.js} +55 -55
- package/dist/bundle/{chunk-NQWV4WQO.js → chunk-CDGZZNGY.js} +6 -6
- package/dist/bundle/{chunk-DH5PRHT4.js → chunk-CIVXTBJY.js} +13 -13
- package/dist/bundle/{chunk-B26TQZKZ.js → chunk-COH7OEER.js} +14 -13
- package/dist/bundle/{chunk-XF26XKTS.js → chunk-D6RCRBDH.js} +2 -2
- package/dist/bundle/{chunk-YMYUBZWT.js → chunk-EQPAZ33O.js} +17 -17
- package/dist/bundle/{chunk-LAYPFBOM.js → chunk-EY6S7FV3.js} +6 -6
- package/dist/bundle/chunk-FEMHUSGO.js +88 -0
- package/dist/bundle/{chunk-VCIALTEM.js → chunk-FIHXADRF.js} +14 -4
- package/dist/bundle/{chunk-FWVBPRL4.js → chunk-FSJHASRQ.js} +79 -62
- package/dist/bundle/{chunk-TPX2M45D.js → chunk-GBFEEHQC.js} +10 -10
- package/dist/bundle/{chunk-5IYKVRH2.js → chunk-GCCPFKSU.js} +434 -343
- package/dist/bundle/{chunk-3Z4YTSRY.js → chunk-GK4GLPG2.js} +3 -3
- package/dist/bundle/{chunk-GZOUFX3C.js → chunk-GSNE7OB4.js} +4 -4
- package/dist/bundle/{chunk-TSDBSIFM.js → chunk-HTKSCSJU.js} +4 -4
- package/dist/bundle/{chunk-5NFK5EM2.js → chunk-IJMFG7HB.js} +7 -7
- package/dist/bundle/{chunk-D7QSEEYW.js → chunk-JIRRF6BM.js} +4 -4
- package/dist/bundle/{chunk-5RSC54NA.js → chunk-JODE2XED.js} +25 -25
- package/dist/bundle/{chunk-RV64YUQX.js → chunk-K5I64ZVI.js} +9 -9
- package/dist/bundle/{chunk-AOCUKEAX.js → chunk-KL3P5TQK.js} +4 -4
- package/dist/bundle/{chunk-2LWO3PDX.js → chunk-L62XTC7N.js} +11 -11
- package/dist/bundle/{chunk-LLG2POQ7.js → chunk-L6H7PY4X.js} +3 -3
- package/dist/bundle/{chunk-5RDNBG7D.js → chunk-LIQMUDIZ.js} +2 -2
- package/dist/bundle/{chunk-WF4D56CA.js → chunk-M2EEIYBU.js} +2 -2
- package/dist/bundle/{chunk-MZU2YFBZ.js → chunk-M6DGZ2O6.js} +8 -8
- package/dist/bundle/{chunk-FXEJY4OL.js → chunk-MRA62W5K.js} +233 -167
- package/dist/bundle/{chunk-XYIT2XB3.js → chunk-MVA5HVKL.js} +20 -0
- package/dist/bundle/{chunk-YVI5SQPY.js → chunk-NO2LIHWA.js} +1 -1
- package/dist/bundle/{chunk-WCSOH4JS.js → chunk-OCDJ4FFA.js} +4 -4
- package/dist/bundle/{chunk-2F4QQ7WB.js → chunk-OI5DWZJG.js} +3 -3
- package/dist/bundle/{chunk-EUIVXFLJ.js → chunk-P3P6DA6K.js} +6 -6
- package/dist/bundle/{chunk-MY742GAD.js → chunk-QX3TPFEX.js} +37 -37
- package/dist/bundle/{chunk-6RA3EABS.js → chunk-R6SDRSZK.js} +62 -32
- package/dist/bundle/{chunk-5QIQEUOG.js → chunk-RMJMID5D.js} +8 -8
- package/dist/bundle/{chunk-BNPTZ5ZB.js → chunk-SGBS5QCU.js} +4 -4
- package/dist/bundle/{chunk-YNTLT3Z3.js → chunk-T5UNSFES.js} +8 -8
- package/dist/bundle/{chunk-M7S2NDWB.js → chunk-TFNRCCGR.js} +4 -4
- package/dist/bundle/{chunk-B7ON6KPT.js → chunk-TJCPTRYD.js} +7 -7
- package/dist/bundle/{chunk-KM6WHPHI.js → chunk-TXONV3HW.js} +2 -2
- package/dist/bundle/{chunk-NOQ7B5N7.js → chunk-TZ2QJ53V.js} +2 -2
- package/dist/bundle/{chunk-KGERXYTV.js → chunk-UKE3CGHK.js} +1 -1
- package/dist/bundle/{chunk-6EVKHZKN.js → chunk-UROEWCOG.js} +3 -3
- package/dist/bundle/{chunk-WJHZMR2W.js → chunk-WHJWURZB.js} +6 -6
- package/dist/bundle/{chunk-G3EZFRSS.js → chunk-WU3XHGOB.js} +112 -42
- package/dist/bundle/{chunk-2F6VO5HA.js → chunk-WZEEEQGC.js} +3 -3
- package/dist/bundle/{chunk-M3KB25D3.js → chunk-XCTOCVMW.js} +14 -14
- package/dist/bundle/{chunk-FT3LN3HP.js → chunk-Y5LAJWR5.js} +1 -1
- package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-YAPDU3SV.js} +1 -1
- package/dist/bundle/{chunk-HL52XXZX.js → chunk-YFWLHTNO.js} +1 -1
- package/dist/bundle/{chunk-P7CUM5IB.js → chunk-YGCI3DHS.js} +1 -1
- package/dist/bundle/{chunk-KCLOUUYF.js → chunk-Z53LYX4M.js} +3 -3
- package/dist/bundle/{chunk-ZKAEZXUP.js → chunk-ZC6ZQQ55.js} +36 -37
- package/dist/bundle/command-contract-UBXS6NHI.js +38 -0
- package/dist/bundle/{command-server-entry-UFSG7KRO.js → command-server-entry-2SORMVRM.js} +27 -27
- package/dist/bundle/{decode-7LLWTSPT.js → decode-5O7IEFPN.js} +6 -6
- package/dist/bundle/{dispatch-2GY6JIJH.js → dispatch-YHQX6FEJ.js} +8 -8
- package/dist/bundle/{echarts-BXX4OQWC.js → echarts-ARLMVQC7.js} +2 -2
- package/dist/bundle/{embed-JXFNBTKH.js → embed-FUDUKQ3K.js} +7 -7
- package/dist/bundle/{embedder-57YZ44KO.js → embedder-HDRV7GX3.js} +10 -10
- package/dist/bundle/{failure-MYT4HPE3.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-2VECIDXF.js → instructions-MEFIKCDI.js} +1 -1
- package/dist/bundle/{mcp-O6ACR2DX.js → mcp-VMS6PBCU.js} +2 -2
- package/dist/bundle/meeting-combined-HNSS3FQY.js +24 -0
- package/dist/bundle/meeting-model-REZVYGQW.js +26 -0
- package/dist/bundle/{meeting-semantic-ETN3A4BJ.js → meeting-semantic-R4CSLVRG.js} +7 -7
- package/dist/bundle/{node-MPEQSFI3.js → node-MAQALPLA.js} +2 -2
- package/dist/bundle/{node-sqlite-WA32MYSJ.js → node-sqlite-J7IJYNBO.js} +8 -8
- package/dist/bundle/notion.js +14 -14
- package/dist/bundle/{oauth-IAFZG3IR.js → oauth-AMV4YGJD.js} +8 -8
- package/dist/bundle/{open-M3JQUC5G.js → open-AB27MTGR.js} +6 -6
- package/dist/bundle/{openai-HXUEHUSD.js → openai-D77MU5XV.js} +17 -17
- package/dist/bundle/{process-F6TKXWWA.js → process-SIOWTRJ6.js} +1 -1
- package/dist/bundle/{program-Y7JAB6TG.js → program-7K34KI27.js} +3230 -1722
- package/dist/bundle/{prompt-IMUQLZD2.js → prompt-W77YDHA6.js} +6 -6
- package/dist/bundle/{recognize-2MZAYHAA.js → recognize-3JAXQQ36.js} +5 -5
- package/dist/bundle/{remote-OV4LB6VR.js → remote-PSOJXCXO.js} +11 -11
- package/dist/bundle/{rerank-ZIULUS34.js → rerank-EE44ZTGL.js} +8 -8
- package/dist/bundle/{schemas-DIVZS6TU.js → schemas-LBYUMBC6.js} +2 -2
- package/dist/bundle/{serve-YU7QBP6L.js → serve-XJMGAMFW.js} +10 -10
- package/dist/bundle/{server-LGMNONSB.js → server-ASU6CP5R.js} +51 -51
- package/dist/bundle/server-WSPQ5EOA.js +72 -0
- package/dist/bundle/{services-5WY4DCPJ.js → services-PT4PA4J6.js} +46 -39
- package/dist/bundle/{sqlite-runtime-5MXZDETH.js → sqlite-runtime-YHXRTVXE.js} +7 -7
- package/dist/bundle/{state-LWMZH2KI.js → state-T6ZKFWGD.js} +7 -7
- package/dist/bundle/{store-EPZYV4VW.js → store-3MUCZEI3.js} +20 -18
- package/dist/bundle/{store-QE6FEIZD.js → store-E5EE25FY.js} +24 -20
- 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/comments.d.ts +4 -0
- package/dist/commands/comments.d.ts.map +1 -0
- package/dist/commands/comments.js +80 -0
- package/dist/commands/comments.js.map +1 -0
- package/dist/commands/documents.d.ts +8 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +74 -1
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/files.d.ts +4 -0
- package/dist/commands/files.d.ts.map +1 -0
- package/dist/commands/files.js +57 -0
- package/dist/commands/files.js.map +1 -0
- package/dist/commands/library.d.ts.map +1 -1
- package/dist/commands/library.js +50 -9
- package/dist/commands/library.js.map +1 -1
- package/dist/commands/writing.d.ts +32 -0
- package/dist/commands/writing.d.ts.map +1 -0
- package/dist/commands/writing.js +126 -0
- package/dist/commands/writing.js.map +1 -0
- package/dist/config.d.ts +19 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +76 -5
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +3 -0
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +3 -0
- 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/notion/errors.d.ts +5 -0
- package/dist/notion/errors.d.ts.map +1 -1
- package/dist/notion/errors.js +9 -0
- package/dist/notion/errors.js.map +1 -1
- package/dist/notion/notion.d.ts +38 -0
- package/dist/notion/notion.d.ts.map +1 -1
- package/dist/notion/notion.js +43 -0
- package/dist/notion/notion.js.map +1 -1
- package/dist/notion/writes.d.ts +78 -0
- package/dist/notion/writes.d.ts.map +1 -0
- package/dist/notion/writes.js +185 -0
- package/dist/notion/writes.js.map +1 -0
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +4 -0
- package/dist/program.js.map +1 -1
- package/dist/sync/browse.d.ts +30 -0
- package/dist/sync/browse.d.ts.map +1 -0
- package/dist/sync/browse.js +67 -0
- package/dist/sync/browse.js.map +1 -0
- package/dist/sync/cursor.d.ts +29 -0
- package/dist/sync/cursor.d.ts.map +1 -1
- package/dist/sync/cursor.js +28 -0
- package/dist/sync/cursor.js.map +1 -1
- package/dist/sync/files.d.ts +11 -0
- package/dist/sync/files.d.ts.map +1 -1
- package/dist/sync/files.js +29 -0
- package/dist/sync/files.js.map +1 -1
- package/dist/sync/source.d.ts +3 -3
- package/dist/sync/source.d.ts.map +1 -1
- package/dist/sync/source.js +81 -63
- 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 +6 -0
- package/dist/bundle/command-contract-JS5V27NX.js +0 -38
- package/dist/bundle/first-run-3PF7T74J.js +0 -29
- package/dist/bundle/first-screen-7BEROEQR.js +0 -36
- package/dist/bundle/meeting-combined-PPUQ3KBR.js +0 -24
- package/dist/bundle/meeting-model-ZNMYKMCD.js +0 -26
- package/dist/bundle/server-FKQET4ZO.js +0 -71
- package/dist/bundle/store-maintenance-command-ZUUUFCHL.js +0 -62
- /package/dist/bundle/{chunk-VKE77B3F.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))))
|
|
@@ -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,16 +3,16 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XCTOCVMW.js";
|
|
7
7
|
import {
|
|
8
8
|
chatEventAnswer,
|
|
9
9
|
memberAnswer,
|
|
10
10
|
pollVoteAnswer,
|
|
11
11
|
serveRelay
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-L62XTC7N.js";
|
|
13
13
|
import {
|
|
14
14
|
readSecret
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Z53LYX4M.js";
|
|
16
16
|
import {
|
|
17
17
|
stringWidth,
|
|
18
18
|
wrapAnsi
|
|
@@ -37,14 +37,14 @@ import {
|
|
|
37
37
|
typedQuery,
|
|
38
38
|
withQuery,
|
|
39
39
|
withTimeLimit
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-GCCPFKSU.js";
|
|
41
41
|
import {
|
|
42
42
|
holdLock,
|
|
43
43
|
lockPath,
|
|
44
44
|
releaseLock,
|
|
45
45
|
servingProfiles,
|
|
46
46
|
takeLock
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-OI5DWZJG.js";
|
|
48
48
|
import {
|
|
49
49
|
Command,
|
|
50
50
|
LOCAL_READ,
|
|
@@ -72,10 +72,10 @@ import {
|
|
|
72
72
|
snakeKeys,
|
|
73
73
|
storeTable,
|
|
74
74
|
withoutProviderRefs
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-MRA62W5K.js";
|
|
76
76
|
import {
|
|
77
77
|
holdersOf
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-7YZPBAQX.js";
|
|
79
79
|
import {
|
|
80
80
|
QUICK_HEALTH_CHECKS,
|
|
81
81
|
fts5Tables,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
lossUnknown,
|
|
84
84
|
storeDamageReport,
|
|
85
85
|
storeHealth
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-EQPAZ33O.js";
|
|
87
87
|
import {
|
|
88
88
|
CORPORA,
|
|
89
89
|
MIGRATIONS,
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
storeClients,
|
|
119
119
|
storeContents,
|
|
120
120
|
vectorIndexCounts
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-7NVPM55S.js";
|
|
122
122
|
import {
|
|
123
123
|
currentRun,
|
|
124
124
|
formatLocator,
|
|
@@ -127,35 +127,35 @@ import {
|
|
|
127
127
|
readHealthMark,
|
|
128
128
|
readJournalMark,
|
|
129
129
|
recordDeepCheck
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-QX3TPFEX.js";
|
|
131
131
|
import {
|
|
132
132
|
failureKey,
|
|
133
133
|
isStoreDamage
|
|
134
|
-
} from "./chunk-
|
|
134
|
+
} from "./chunk-UROEWCOG.js";
|
|
135
135
|
import {
|
|
136
136
|
queryFieldsOf
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-FSJHASRQ.js";
|
|
138
138
|
import {
|
|
139
139
|
modelAddressAllowed,
|
|
140
140
|
onThisComputer
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-WZEEEQGC.js";
|
|
142
142
|
import {
|
|
143
143
|
readSharedSection,
|
|
144
144
|
sharedConfigPath,
|
|
145
145
|
writeSharedSection
|
|
146
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-TJCPTRYD.js";
|
|
147
147
|
import {
|
|
148
148
|
storePath
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-M2EEIYBU.js";
|
|
150
150
|
import {
|
|
151
151
|
openCache
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-EY6S7FV3.js";
|
|
153
153
|
import {
|
|
154
154
|
Credentials,
|
|
155
155
|
isMovedRun,
|
|
156
156
|
resolvePaths,
|
|
157
157
|
writeSecurely
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-AYU5TFDU.js";
|
|
159
159
|
import {
|
|
160
160
|
array,
|
|
161
161
|
boolean,
|
|
@@ -177,12 +177,12 @@ import {
|
|
|
177
177
|
string,
|
|
178
178
|
transform,
|
|
179
179
|
trim
|
|
180
|
-
} from "./chunk-
|
|
180
|
+
} from "./chunk-MVA5HVKL.js";
|
|
181
181
|
import {
|
|
182
182
|
CliError,
|
|
183
183
|
singleLine,
|
|
184
184
|
visibleControls
|
|
185
|
-
} from "./chunk-
|
|
185
|
+
} from "./chunk-LIQMUDIZ.js";
|
|
186
186
|
import {
|
|
187
187
|
__commonJS,
|
|
188
188
|
__name,
|
|
@@ -5522,11 +5522,11 @@ var require_liquid_node = __commonJS({
|
|
|
5522
5522
|
}
|
|
5523
5523
|
});
|
|
5524
5524
|
|
|
5525
|
-
// 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
|
|
5526
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";
|
|
5527
5527
|
import { dirname as dirname3, resolve } from "node:path";
|
|
5528
5528
|
|
|
5529
|
-
// 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
|
|
5530
5530
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5531
5531
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5532
5532
|
import { Transform } from "node:stream";
|
|
@@ -5633,7 +5633,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5633
5633
|
renameSync(pending, to);
|
|
5634
5634
|
}, "unsealFile");
|
|
5635
5635
|
|
|
5636
|
-
// 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
|
|
5637
5637
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5638
5638
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5639
5639
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5657,7 +5657,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5657
5657
|
};
|
|
5658
5658
|
}, "compatibilityOf");
|
|
5659
5659
|
|
|
5660
|
-
// 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
|
|
5661
5661
|
import { createHash as createHash2 } from "node:crypto";
|
|
5662
5662
|
var COPY_MARK = "__repair_";
|
|
5663
5663
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5911,19 +5911,19 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5911
5911
|
return found;
|
|
5912
5912
|
}, "deleteCopy");
|
|
5913
5913
|
|
|
5914
|
-
// 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
|
|
5915
5915
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5916
5916
|
|
|
5917
|
-
// 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
|
|
5918
5918
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5919
5919
|
|
|
5920
|
-
// 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
|
|
5921
5921
|
import { execFileSync, spawn } from "node:child_process";
|
|
5922
5922
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5923
5923
|
import { basename, dirname, join } from "node:path";
|
|
5924
5924
|
import { Transform as Transform2 } from "node:stream";
|
|
5925
5925
|
|
|
5926
|
-
// 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
|
|
5927
5927
|
var REFILL_MARGIN_MS = 864e5;
|
|
5928
5928
|
var TIME_KEYS = 1e12;
|
|
5929
5929
|
var integerId = `external_id GLOB '[0-9]*' AND NOT external_id GLOB '*[^0-9]*'`;
|
|
@@ -6003,7 +6003,7 @@ var forgetMail = /* @__PURE__ */ __name((database, cutoff, now) => {
|
|
|
6003
6003
|
return [...folders].map(([account, count3]) => ({ account, folders: count3 }));
|
|
6004
6004
|
}, "forgetMail");
|
|
6005
6005
|
|
|
6006
|
-
// 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
|
|
6007
6007
|
var SQLITE3_MINIMUM = [3, 43, 0];
|
|
6008
6008
|
var STORE_PARTS = ["", "-wal", "-shm"];
|
|
6009
6009
|
var RECOVER_LOCK = ".recover-lock";
|
|
@@ -6531,7 +6531,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6531
6531
|
}
|
|
6532
6532
|
}, "recoverLocked");
|
|
6533
6533
|
|
|
6534
|
-
// 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
|
|
6535
6535
|
var COUNTED = [
|
|
6536
6536
|
"accounts",
|
|
6537
6537
|
"chats",
|
|
@@ -6687,7 +6687,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6687
6687
|
return recover;
|
|
6688
6688
|
}, "storeRecoverCommand");
|
|
6689
6689
|
|
|
6690
|
-
// 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
|
|
6691
6691
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6692
6692
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6693
6693
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6733,7 +6733,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
6733
6733
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
6734
6734
|
}), "storeInfoCommand");
|
|
6735
6735
|
|
|
6736
|
-
// 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
|
|
6737
6737
|
var ENCRYPT_OPTION = [
|
|
6738
6738
|
"--encrypt",
|
|
6739
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"
|
|
@@ -6752,7 +6752,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6752
6752
|
return password;
|
|
6753
6753
|
}, "passwordOf");
|
|
6754
6754
|
|
|
6755
|
-
// 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
|
|
6756
6756
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6757
6757
|
import { join as join2 } from "node:path";
|
|
6758
6758
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6923,7 +6923,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6923
6923
|
}, "problem");
|
|
6924
6924
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6925
6925
|
|
|
6926
|
-
// 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
|
|
6927
6927
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6928
6928
|
import { join as join3 } from "node:path";
|
|
6929
6929
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6976,7 +6976,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6976
6976
|
}, "recordReply");
|
|
6977
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");
|
|
6978
6978
|
|
|
6979
|
-
// 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
|
|
6980
6980
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6981
6981
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6982
6982
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -7082,10 +7082,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
7082
7082
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
7083
7083
|
}, "filled");
|
|
7084
7084
|
|
|
7085
|
-
// 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
|
|
7086
7086
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
7087
7087
|
|
|
7088
|
-
// 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
|
|
7089
7089
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
7090
7090
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
7091
7091
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -7112,7 +7112,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
7112
7112
|
return engine;
|
|
7113
7113
|
}, "safeLiquid");
|
|
7114
7114
|
|
|
7115
|
-
// 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
|
|
7116
7116
|
var TEMPLATE_LIMITS = {
|
|
7117
7117
|
parse: 32768,
|
|
7118
7118
|
renders: 2e3,
|
|
@@ -7251,7 +7251,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
7251
7251
|
}
|
|
7252
7252
|
}, "renderReplyTemplate");
|
|
7253
7253
|
|
|
7254
|
-
// 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
|
|
7255
7255
|
var DRY_RUN_DAYS = 7;
|
|
7256
7256
|
var PAGE = 500;
|
|
7257
7257
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7365,7 +7365,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7365
7365
|
}
|
|
7366
7366
|
}, "storedSince");
|
|
7367
7367
|
|
|
7368
|
-
// 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
|
|
7369
7369
|
var AI_PROVIDERS = ["anthropic", "openai", "ollama"];
|
|
7370
7370
|
var DEFAULT_BASE_URL = {
|
|
7371
7371
|
anthropic: "https://api.anthropic.com",
|
|
@@ -7515,7 +7515,7 @@ var checkAi = /* @__PURE__ */ __name(async (deps) => {
|
|
|
7515
7515
|
}
|
|
7516
7516
|
}, "checkAi");
|
|
7517
7517
|
|
|
7518
|
-
// 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
|
|
7519
7519
|
var HOSTED = {
|
|
7520
7520
|
openai: "https://api.openai.com/v1",
|
|
7521
7521
|
anthropic: "https://api.anthropic.com"
|
|
@@ -7536,7 +7536,7 @@ var purposeModel = /* @__PURE__ */ __name((settings, purpose, deps) => {
|
|
|
7536
7536
|
return shared ? { target: shared.target, key: /* @__PURE__ */ __name(() => shared.key, "key"), shared: shared.setting } : void 0;
|
|
7537
7537
|
}, "purposeModel");
|
|
7538
7538
|
|
|
7539
|
-
// 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
|
|
7540
7540
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7541
7541
|
import { join as join4 } from "node:path";
|
|
7542
7542
|
var shape = strictObject({
|
|
@@ -7561,7 +7561,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7561
7561
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7562
7562
|
}, "mayModelReply");
|
|
7563
7563
|
|
|
7564
|
-
// 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
|
|
7565
7565
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7566
7566
|
ai: true
|
|
7567
7567
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7609,7 +7609,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7609
7609
|
return result2;
|
|
7610
7610
|
}, "replyRenderer");
|
|
7611
7611
|
|
|
7612
|
-
// 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
|
|
7613
7613
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7614
7614
|
var NO_RULES = "no rules";
|
|
7615
7615
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7702,7 +7702,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7702
7702
|
return { skip: why };
|
|
7703
7703
|
}, "replyTo");
|
|
7704
7704
|
|
|
7705
|
-
// 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
|
|
7706
7706
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7707
7707
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7708
7708
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7779,7 +7779,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7779
7779
|
};
|
|
7780
7780
|
}, "startSync");
|
|
7781
7781
|
|
|
7782
|
-
// 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
|
|
7783
7783
|
var FIRST_FETCH_MS = 6e4;
|
|
7784
7784
|
var DAY_MS = 864e5;
|
|
7785
7785
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7833,7 +7833,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7833
7833
|
};
|
|
7834
7834
|
}, "memberFetches");
|
|
7835
7835
|
|
|
7836
|
-
// 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
|
|
7837
7837
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7838
7838
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7839
7839
|
if (context.format === "pretty") {
|
|
@@ -7866,7 +7866,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7866
7866
|
return context;
|
|
7867
7867
|
}, "recordDiagnostics");
|
|
7868
7868
|
|
|
7869
|
-
// 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
|
|
7870
7870
|
import { existsSync as existsSync8, readFileSync as readFileSync5, realpathSync as realpathSync2 } from "node:fs";
|
|
7871
7871
|
import { dirname as dirname2, join as join5 } from "node:path";
|
|
7872
7872
|
var OUTDATED_CHECK_MS = 6e4;
|
|
@@ -7952,7 +7952,7 @@ var watchOutdated = /* @__PURE__ */ __name(({ check: check2, onOutdated, everyMs
|
|
|
7952
7952
|
};
|
|
7953
7953
|
}, "watchOutdated");
|
|
7954
7954
|
|
|
7955
|
-
// 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
|
|
7956
7956
|
var STEMS_EVERY_MS = 3e4;
|
|
7957
7957
|
var STEMS_SLICE_MS = 2e3;
|
|
7958
7958
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7992,7 +7992,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7992
7992
|
};
|
|
7993
7993
|
}, "stemFills");
|
|
7994
7994
|
|
|
7995
|
-
// 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
|
|
7996
7996
|
import { styleText } from "node:util";
|
|
7997
7997
|
var TIME_WIDTH = 8;
|
|
7998
7998
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -8168,7 +8168,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
|
|
|
8168
8168
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
8169
8169
|
}, "editedAt");
|
|
8170
8170
|
|
|
8171
|
-
// 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
|
|
8172
8172
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
8173
8173
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
8174
8174
|
kind: attachment.kind,
|
|
@@ -8264,7 +8264,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
8264
8264
|
locale: messenger.app.locale
|
|
8265
8265
|
}), "viewOf");
|
|
8266
8266
|
|
|
8267
|
-
// 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
|
|
8268
8268
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
8269
8269
|
value: value.value,
|
|
8270
8270
|
observed_at: value.observedAt,
|
|
@@ -8331,7 +8331,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
8331
8331
|
}
|
|
8332
8332
|
}, "watchEventItem");
|
|
8333
8333
|
|
|
8334
|
-
// 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
|
|
8335
8335
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
8336
8336
|
output: { entity: "watch_item" },
|
|
8337
8337
|
effects: REMOTE_READ,
|
|
@@ -8486,7 +8486,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
8486
8486
|
}
|
|
8487
8487
|
}, "describe");
|
|
8488
8488
|
|
|
8489
|
-
// 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
|
|
8490
8490
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
8491
8491
|
const command = annotate(new Command("serve"), {
|
|
8492
8492
|
output: { entity: "serve_summary" },
|
|
@@ -8772,7 +8772,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8772
8772
|
};
|
|
8773
8773
|
}, "tasking");
|
|
8774
8774
|
|
|
8775
|
-
// 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
|
|
8776
8776
|
import { existsSync as existsSync9 } from "node:fs";
|
|
8777
8777
|
var PATH = "store tables list";
|
|
8778
8778
|
var STORE_TABLES_QUERY = {
|
|
@@ -8815,7 +8815,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((owner) => {
|
|
|
8815
8815
|
return tables;
|
|
8816
8816
|
}, "storeTablesCommand");
|
|
8817
8817
|
|
|
8818
|
-
// 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
|
|
8819
8819
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8820
8820
|
var WORD_INDEX = "message_words";
|
|
8821
8821
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|