@wirecat/drive-cli 0.64.0 → 0.65.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/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-BPPT2AK5.js → all-profiles-PD7GJHFA.js} +14 -13
- package/dist/bundle/{anthropic-JW6GOJUD.js → anthropic-PJKFON5H.js} +20 -11
- package/dist/bundle/{app-server-KAQIOJMZ.js → app-server-6ELQA6FJ.js} +59 -56
- package/dist/bundle/{bun-UT7GNTPV.js → bun-P54TGES2.js} +2 -2
- package/dist/bundle/{bun-sqlite-2OIVV3LS.js → bun-sqlite-TND5ZRJH.js} +12 -8
- package/dist/bundle/chunk-2AFI4KGI.js +185 -0
- package/dist/bundle/{chunk-WWCYTMAV.js → chunk-3HXNDF6Q.js} +2 -2
- package/dist/bundle/{chunk-46CD64J2.js → chunk-3ONWN3IA.js} +166 -53
- package/dist/bundle/{chunk-4YRENUB5.js → chunk-42G2XNPN.js} +2 -2
- package/dist/bundle/chunk-4AOINPN2.js +66 -0
- package/dist/bundle/{chunk-ZF6GUZCE.js → chunk-4EDWLR22.js} +1 -1
- package/dist/bundle/{chunk-BEZJA44H.js → chunk-4Y5YBFMS.js} +7 -7
- package/dist/bundle/{chunk-B7XBIOMR.js → chunk-54V4H6PM.js} +16 -16
- package/dist/bundle/{chunk-4CNTID2X.js → chunk-5XSBCMAF.js} +4 -4
- package/dist/bundle/{chunk-IDAK4DDK.js → chunk-6DCLZLGX.js} +1 -1
- package/dist/bundle/{chunk-G4KEKKDE.js → chunk-7AQGVX5O.js} +20 -20
- package/dist/bundle/{chunk-34BIDKF4.js → chunk-7TAP7Y2E.js} +508 -155
- package/dist/bundle/{chunk-BZ2ZKILM.js → chunk-A27UVLPK.js} +3 -3
- package/dist/bundle/{chunk-SIOIMO62.js → chunk-A4QNADEX.js} +57 -51
- package/dist/bundle/{chunk-FXBHOCJK.js → chunk-ADLS6FVG.js} +1 -1
- package/dist/bundle/{chunk-66AF4FBW.js → chunk-B2LPCHQN.js} +4 -4
- package/dist/bundle/{chunk-M73NNJ3X.js → chunk-CGQRZRTH.js} +2 -2
- package/dist/bundle/{chunk-KVW4XNKB.js → chunk-CWLL63JD.js} +107 -48
- package/dist/bundle/{chunk-CPMRM3GQ.js → chunk-D6Z43SOG.js} +1592 -335
- package/dist/bundle/{chunk-QXCKJUZY.js → chunk-D7WB54P7.js} +111 -27
- package/dist/bundle/{chunk-VT2UFYPJ.js → chunk-DA63E2UM.js} +13 -9
- package/dist/bundle/{chunk-2FEZ24DK.js → chunk-ECEP4SO3.js} +20 -20
- package/dist/bundle/{chunk-ZSZJLJIA.js → chunk-EHU6EYGO.js} +38 -28
- package/dist/bundle/{chunk-EJ4PNHPP.js → chunk-ELJUBPY4.js} +1 -1
- package/dist/bundle/{chunk-F2VDAG32.js → chunk-EM7NL5ES.js} +3 -3
- package/dist/bundle/{chunk-O2QO5UZC.js → chunk-EU5MD24W.js} +13 -13
- package/dist/bundle/{chunk-KIN6PDFE.js → chunk-EZ2OLYEK.js} +4 -4
- package/dist/bundle/{chunk-OH3K2E7X.js → chunk-F56DRBGY.js} +655 -1220
- package/dist/bundle/{chunk-VIJ6ACYB.js → chunk-FA6JNXCC.js} +8 -8
- package/dist/bundle/{chunk-KE4XPPRQ.js → chunk-FBHSWQU7.js} +1531 -136
- package/dist/bundle/{chunk-ZRZ4HTCK.js → chunk-GW3LBY3T.js} +51 -67
- package/dist/bundle/{chunk-6B37XO6B.js → chunk-HP3NT6JJ.js} +3 -3
- package/dist/bundle/{chunk-IX7NQJLY.js → chunk-I272E6UR.js} +9 -8
- package/dist/bundle/{chunk-5HSRQ53R.js → chunk-IBO23OID.js} +2 -2
- package/dist/bundle/{chunk-EZ6O3ST3.js → chunk-II4S2DBJ.js} +3 -3
- package/dist/bundle/{chunk-3NULZGQU.js → chunk-IKHOIXJR.js} +2 -2
- package/dist/bundle/{chunk-JRXFW7HE.js → chunk-IMHW7VIV.js} +5 -5
- package/dist/bundle/{chunk-USLZE36C.js → chunk-JMJIH6JH.js} +6 -6
- package/dist/bundle/{chunk-C7WBNOYW.js → chunk-JPPPLKAO.js} +26 -1
- package/dist/bundle/{chunk-EQEGJVO2.js → chunk-LMKPP2JP.js} +1 -1
- package/dist/bundle/{chunk-G3NULXOM.js → chunk-M7ELUGU6.js} +4 -4
- package/dist/bundle/{chunk-6G53ZFUT.js → chunk-MCPOZNWG.js} +1 -1
- package/dist/bundle/{chunk-EWGVDFPT.js → chunk-NI5PD5KM.js} +39203 -35871
- package/dist/bundle/{chunk-AHB4OJCI.js → chunk-NQ5XMSLA.js} +3678 -2049
- package/dist/bundle/chunk-NQRTKYJB.js +257 -0
- package/dist/bundle/{chunk-3J5KAFNA.js → chunk-O6K2E7OA.js} +3917 -3005
- package/dist/bundle/{chunk-J62DI53V.js → chunk-O7ZDCOZE.js} +1 -1
- package/dist/bundle/{chunk-XPXKD63J.js → chunk-OFJXHEFT.js} +13 -13
- package/dist/bundle/chunk-OWMZUWCM.js +109 -0
- package/dist/bundle/chunk-PHOL2DZM.js +138 -0
- package/dist/bundle/{chunk-KG2XKEHL.js → chunk-PLP5527C.js} +5 -5
- package/dist/bundle/{chunk-5ZBR55US.js → chunk-RNHGQ35R.js} +1 -1
- package/dist/bundle/{chunk-IK6KH3RE.js → chunk-RX5CJ55S.js} +1 -1
- package/dist/bundle/{chunk-K6BSB53R.js → chunk-SE352DBY.js} +1 -1
- package/dist/bundle/chunk-SEQWBZYH.js +18 -0
- package/dist/bundle/{chunk-LOMW6F2E.js → chunk-SIWXYB4E.js} +3734 -3448
- package/dist/bundle/{chunk-GW3U6OLD.js → chunk-SNLSEYJO.js} +1 -1
- package/dist/bundle/{chunk-UJR272CP.js → chunk-SS4LKLD7.js} +52 -605
- package/dist/bundle/{chunk-BEUAICUD.js → chunk-TMHF4BCL.js} +2 -2
- package/dist/bundle/{chunk-BDYWZ7JE.js → chunk-TOVWMURV.js} +30 -6
- package/dist/bundle/{chunk-N622LRPM.js → chunk-TTP4NOP3.js} +4 -4
- package/dist/bundle/chunk-UTNRBOEN.js +53 -0
- package/dist/bundle/{chunk-36GPBPWM.js → chunk-VDZY3L7U.js} +3 -1
- package/dist/bundle/chunk-VHQYWFWV.js +13 -0
- package/dist/bundle/{chunk-VPLFD5RJ.js → chunk-VLXWAH5E.js} +4 -4
- package/dist/bundle/{chunk-UIEA6FIV.js → chunk-VMAMRFFC.js} +23 -23
- package/dist/bundle/{chunk-HW4UPST2.js → chunk-W2XY6C5S.js} +2 -2
- package/dist/bundle/{chunk-P7DEGRZA.js → chunk-WRAUO5EJ.js} +22 -24
- package/dist/bundle/{chunk-QEAD2LF4.js → chunk-WRMJN6UQ.js} +3 -3
- package/dist/bundle/{chunk-UD55VB2N.js → chunk-WVJHZIDH.js} +3 -3
- package/dist/bundle/{chunk-B67BLRAI.js → chunk-X7YGGWXI.js} +1 -59
- package/dist/bundle/{chunk-EC2XGDKJ.js → chunk-XPWZSW6Y.js} +4 -4
- package/dist/bundle/{chunk-E2LBCCTG.js → chunk-XYE7XZPB.js} +5 -5
- package/dist/bundle/{chunk-TNV2FXVK.js → chunk-Y5PKRITX.js} +5 -5
- package/dist/bundle/{chunk-5OFA5EXE.js → chunk-Z2ADO6UA.js} +2 -2
- package/dist/bundle/{chunk-PBMSBCVB.js → chunk-ZD4MB7NH.js} +1 -1
- package/dist/bundle/{chunk-2W464HAE.js → chunk-ZILALBYQ.js} +4 -4
- package/dist/bundle/{chunk-OEVHZOHC.js → chunk-ZR2EJPMQ.js} +44 -15
- package/dist/bundle/command-contract-25E4PYMD.js +40 -0
- package/dist/bundle/command-server-entry-36JXYIJB.js +170 -0
- package/dist/bundle/{decode-HTOQ6S3V.js → decode-T5ZW57WZ.js} +8 -8
- package/dist/bundle/{dispatch-SH5SP6LA.js → dispatch-RMA2XFYA.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-KFHB6SLX.js → echarts-KQ44LPSF.js} +2 -2
- package/dist/bundle/{embed-YATFB2PN.js → embed-Q7XST53J.js} +9 -9
- package/dist/bundle/{embedder-MQPDFGTJ.js → embedder-RWZSBVW2.js} +12 -12
- package/dist/bundle/entry-HPLW4QL2.js +25 -0
- package/dist/bundle/{failure-4FQL4XJI.js → failure-7NP4QPIN.js} +4 -4
- package/dist/bundle/first-run-RL3RKYZW.js +30 -0
- package/dist/bundle/first-screen-NX3TM2VJ.js +38 -0
- package/dist/bundle/google-DPD5N6AQ.js +42 -0
- package/dist/bundle/{google-api-QMFGCXBM.js → google-api-P5DRHD7L.js} +61 -55
- package/dist/bundle/grants-TX4MHLI4.js +109 -0
- package/dist/bundle/{identity-FYVDK4M2.js → identity-VDV6CHRW.js} +6 -6
- package/dist/bundle/{instructions-D3GF3B7M.js → instructions-Q45FVY6H.js} +1 -1
- package/dist/bundle/{login-COFZ2IWP.js → login-XKN3NI6X.js} +67 -61
- package/dist/bundle/{mcp-RKJG22KM.js → mcp-7KQUJNFN.js} +2 -2
- package/dist/bundle/{node-OFICOKX3.js → node-MSW565D3.js} +2 -2
- package/dist/bundle/{node-KM3CUABH.js → node-P4E63KXA.js} +9 -9
- package/dist/bundle/{node-sqlite-DNBTDOXD.js → node-sqlite-S74XVVHL.js} +13 -9
- package/dist/bundle/oauth-6R7AWAES.js +22 -0
- package/dist/bundle/{open-PTPR2YWX.js → open-P7UQG7XJ.js} +8 -8
- package/dist/bundle/{openai-2KV5LUW4.js → openai-DDHJ57KZ.js} +19 -40
- package/dist/bundle/{process-EAW6NST2.js → process-NMUB5SHK.js} +1 -1
- package/dist/bundle/{program-6UV5Q5YN.js → program-PJNWP6JW.js} +294 -137
- package/dist/bundle/{prompt-634TPMJK.js → prompt-VOSMK4C2.js} +8 -8
- package/dist/bundle/{reasons-DDWCEYSQ.js → reasons-KDAXOC5S.js} +5 -5
- package/dist/bundle/{recognize-SJO6QUDW.js → recognize-GZIY63HS.js} +7 -7
- package/dist/bundle/{remote-6JXZITKF.js → remote-V3YGN7LN.js} +10 -10
- package/dist/bundle/{rerank-MD5VOPQ6.js → rerank-XRU6AVN7.js} +10 -10
- package/dist/bundle/{serve-LZTROA2M.js → serve-NDOAFA57.js} +12 -12
- package/dist/bundle/{server-NSA3UAFY.js → server-BKGWJYMC.js} +46 -44
- package/dist/bundle/server-QD2MUJJZ.js +72 -0
- package/dist/bundle/{services-F5A6XQCV.js → services-TYDMFQCA.js} +101 -41
- package/dist/bundle/{sqlite-runtime-7YF6REKS.js → sqlite-runtime-UAFJKSJR.js} +9 -9
- package/dist/bundle/{start-MUFLE6FA.js → start-2ZLDP2OE.js} +7 -7
- package/dist/bundle/{state-UC54F3YZ.js → state-6SP27J2K.js} +9 -9
- package/dist/bundle/{store-J53YNAH6.js → store-4UUY545Q.js} +25 -18
- package/dist/bundle/{store-F5FJGWMR.js → store-EJN27MXI.js} +61 -28
- package/dist/bundle/store-maintenance-command-LETURZDC.js +60 -0
- package/dist/bundle/tokens-MTFJPTYT.js +107 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +6 -5
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts +4 -2
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/documents.d.ts +2 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +39 -3
- package/dist/commands/documents.js.map +1 -1
- package/dist/config.d.ts +13 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +32 -2
- package/dist/config.js.map +1 -1
- package/dist/documents-add.d.ts +49 -0
- package/dist/documents-add.d.ts.map +1 -0
- package/dist/documents-add.js +122 -0
- package/dist/documents-add.js.map +1 -0
- package/dist/errors.d.ts +1 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +9 -1
- package/dist/errors.js.map +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.d.ts.map +1 -1
- package/dist/knowledge.js +15 -17
- package/dist/knowledge.js.map +1 -1
- package/dist/model.d.ts +3 -0
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +22 -15
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +25 -0
- package/dist/reasons.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +20 -0
- package/dist/store.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/dist/bundle/chunk-DD7EFG6B.js +0 -35
- package/dist/bundle/chunk-GSMYXGFR.js +0 -62
- package/dist/bundle/command-contract-H5OYJOPF.js +0 -38
- package/dist/bundle/entry-YZBB647C.js +0 -22
- package/dist/bundle/first-run-5JT3UQZB.js +0 -30
- package/dist/bundle/first-screen-BEMDEWO7.js +0 -36
- package/dist/bundle/google-DVADVICN.js +0 -36
- package/dist/bundle/grants-WKB2E4TA.js +0 -103
- package/dist/bundle/oauth-PDQHWFBF.js +0 -22
- package/dist/bundle/server-GT7X666D.js +0 -69
- package/dist/bundle/store-maintenance-command-GJVXLBAB.js +0 -58
- package/dist/bundle/tokens-H2EJKGA5.js +0 -101
- package/dist/bundle/{chunk-SW6C6WH5.js → chunk-YVNHQFLC.js} +0 -0
- package/dist/bundle/{mdast-util-from-markdown-FXEPSNER.js → mdast-util-from-markdown-CE73EWJ2.js} +3 -3
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CAPABILITY_STATEMENTS,
|
|
5
5
|
storeCapable
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JMJIH6JH.js";
|
|
7
7
|
import {
|
|
8
8
|
importFrom
|
|
9
9
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
15
15
|
import { spawn, spawnSync } from "node:child_process";
|
|
16
16
|
import { readFileSync } from "node:fs";
|
|
17
17
|
import { dirname } from "node:path";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
errorCodes
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ELJUBPY4.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -699,6 +699,29 @@ function nullable(wrapped, default_) {
|
|
|
699
699
|
}
|
|
700
700
|
__name(nullable, "nullable");
|
|
701
701
|
// @__NO_SIDE_EFFECTS__
|
|
702
|
+
function nullish(wrapped, default_) {
|
|
703
|
+
return _standardSchema({
|
|
704
|
+
kind: "schema",
|
|
705
|
+
type: "nullish",
|
|
706
|
+
reference: nullish,
|
|
707
|
+
expects: `(${wrapped.expects} | null | undefined)`,
|
|
708
|
+
async: false,
|
|
709
|
+
wrapped,
|
|
710
|
+
default: default_,
|
|
711
|
+
"~run"(dataset, config$1) {
|
|
712
|
+
if (dataset.value === null || dataset.value === void 0) {
|
|
713
|
+
if (this.default !== void 0) dataset.value = /* @__PURE__ */ getDefault(this, dataset, config$1);
|
|
714
|
+
if (dataset.value === null || dataset.value === void 0) {
|
|
715
|
+
dataset.typed = true;
|
|
716
|
+
return dataset;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
return this.wrapped["~run"](dataset, config$1);
|
|
720
|
+
}
|
|
721
|
+
});
|
|
722
|
+
}
|
|
723
|
+
__name(nullish, "nullish");
|
|
724
|
+
// @__NO_SIDE_EFFECTS__
|
|
702
725
|
function number(message$1) {
|
|
703
726
|
return _standardSchema({
|
|
704
727
|
kind: "schema",
|
|
@@ -1283,7 +1306,7 @@ function unwrap(schema) {
|
|
|
1283
1306
|
}
|
|
1284
1307
|
__name(unwrap, "unwrap");
|
|
1285
1308
|
|
|
1286
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1309
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/effects.js
|
|
1287
1310
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
1288
1311
|
var effectsSchema = strictObject({
|
|
1289
1312
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -1920,7 +1943,7 @@ function toStandardJsonSchema(schema) {
|
|
|
1920
1943
|
}
|
|
1921
1944
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
1922
1945
|
|
|
1923
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1946
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/registry.js
|
|
1924
1947
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
1925
1948
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
1926
1949
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -1962,7 +1985,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
1962
1985
|
return String(value);
|
|
1963
1986
|
}), "fill");
|
|
1964
1987
|
|
|
1965
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1988
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/output.js
|
|
1966
1989
|
var MAX_NEXT_STEPS = 2;
|
|
1967
1990
|
var COMPACT_FLAG = "--compact";
|
|
1968
1991
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
@@ -2074,7 +2097,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
2074
2097
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
2075
2098
|
].join("\n"), "jsonlOf");
|
|
2076
2099
|
|
|
2077
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2100
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/errors.js
|
|
2078
2101
|
var CRASH_CODE = "internal_error";
|
|
2079
2102
|
var CRASH_REASON = "command.crashed";
|
|
2080
2103
|
var errorObjectSchema = strictObject({
|
|
@@ -2167,7 +2190,7 @@ var BASE_REASONS = defineReasons([
|
|
|
2167
2190
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
2168
2191
|
]);
|
|
2169
2192
|
|
|
2170
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2193
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/steps.js
|
|
2171
2194
|
var SAME_COMMAND = "*";
|
|
2172
2195
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
2173
2196
|
var stepSchema = union([
|
|
@@ -2274,6 +2297,7 @@ export {
|
|
|
2274
2297
|
looseObject,
|
|
2275
2298
|
null_,
|
|
2276
2299
|
nullable,
|
|
2300
|
+
nullish,
|
|
2277
2301
|
number,
|
|
2278
2302
|
object,
|
|
2279
2303
|
objectWithRest,
|
|
@@ -3,26 +3,26 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
executableEnvironment,
|
|
5
5
|
executableOnPath
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MCPOZNWG.js";
|
|
7
7
|
import {
|
|
8
8
|
require_cross_spawn
|
|
9
9
|
} from "./chunk-D72URWJE.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfigFile,
|
|
12
12
|
saveConfigFile
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-7AQGVX5O.js";
|
|
14
14
|
import {
|
|
15
15
|
number,
|
|
16
16
|
object,
|
|
17
17
|
optional,
|
|
18
18
|
string
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TOVWMURV.js";
|
|
20
20
|
import {
|
|
21
21
|
__name,
|
|
22
22
|
__toESM
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/update/index.js
|
|
26
26
|
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
27
27
|
import { existsSync } from "node:fs";
|
|
28
28
|
var updateCommand = /* @__PURE__ */ __name((installer, packageName) => {
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
resolvePaths
|
|
5
|
+
} from "./chunk-7AQGVX5O.js";
|
|
6
|
+
import {
|
|
7
|
+
__name
|
|
8
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
9
|
+
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
|
+
import { realpathSync } from "node:fs";
|
|
12
|
+
import { userInfo } from "node:os";
|
|
13
|
+
import { basename, dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
14
|
+
var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
|
|
15
|
+
var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");
|
|
16
|
+
var accountHome = /* @__PURE__ */ __name(() => {
|
|
17
|
+
try {
|
|
18
|
+
return userInfo().homedir;
|
|
19
|
+
} catch {
|
|
20
|
+
return void 0;
|
|
21
|
+
}
|
|
22
|
+
}, "accountHome");
|
|
23
|
+
var inOwnerFolder = /* @__PURE__ */ __name((file, home = accountHome()) => {
|
|
24
|
+
if (!home || file === ":memory:")
|
|
25
|
+
return false;
|
|
26
|
+
const owner = wirecatDirectory({ HOME: home, USERPROFILE: home });
|
|
27
|
+
const within = /* @__PURE__ */ __name((path, folder) => {
|
|
28
|
+
const inside = relative(folder, path);
|
|
29
|
+
return !(inside.startsWith("..") || isAbsolute(inside));
|
|
30
|
+
}, "within");
|
|
31
|
+
return within(resolve(file), owner) || within(settled(resolve(file)), settled(owner));
|
|
32
|
+
}, "inOwnerFolder");
|
|
33
|
+
var settled = /* @__PURE__ */ __name((path) => {
|
|
34
|
+
try {
|
|
35
|
+
return realpathSync(path);
|
|
36
|
+
} catch {
|
|
37
|
+
const parent = dirname(path);
|
|
38
|
+
return parent === path ? path : join(settled(parent), basename(path));
|
|
39
|
+
}
|
|
40
|
+
}, "settled");
|
|
41
|
+
var refuseOwnerStoreInTests = /* @__PURE__ */ __name((file, env = process.env, home = accountHome()) => {
|
|
42
|
+
if (!env.VITEST || !inOwnerFolder(file, home))
|
|
43
|
+
return;
|
|
44
|
+
throw new Error(`a test tried to open ${file}, in the owner's real WireCat folder; give it a MESSAGING_STORE or HOME of its own`);
|
|
45
|
+
}, "refuseOwnerStoreInTests");
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
wirecatDirectory,
|
|
49
|
+
storePath,
|
|
50
|
+
accountHome,
|
|
51
|
+
inOwnerFolder,
|
|
52
|
+
refuseOwnerStoreInTests
|
|
53
|
+
};
|
|
@@ -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.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
8
8
|
var TIME_LIMIT_FUNCTION = "wc_time_limit";
|
|
9
9
|
var TimeLimitReached = class extends Error {
|
|
10
10
|
static {
|
|
@@ -20,9 +20,11 @@ var beforeTimeLimit = /* @__PURE__ */ __name((until) => {
|
|
|
20
20
|
throw new TimeLimitReached();
|
|
21
21
|
return 1;
|
|
22
22
|
}, "beforeTimeLimit");
|
|
23
|
+
var JOURNAL_SIZE_LIMIT = 64 * 1024 * 1024;
|
|
23
24
|
var PRAGMAS = `
|
|
24
25
|
PRAGMA busy_timeout = 5000;
|
|
25
26
|
PRAGMA journal_mode = WAL;
|
|
27
|
+
PRAGMA journal_size_limit = ${JOURNAL_SIZE_LIMIT};
|
|
26
28
|
PRAGMA foreign_keys = ON;
|
|
27
29
|
`;
|
|
28
30
|
var isQueryOnly = /* @__PURE__ */ __name((database) => Number(Object.values(database.prepare("PRAGMA query_only").get() ?? {})[0]) === 1, "isQueryOnly");
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__name
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
|
|
8
|
+
var COMMAND_SERVER_ARGV = ["commands", "--serve"];
|
|
9
|
+
var isCommandServer = /* @__PURE__ */ __name((args) => args.length === COMMAND_SERVER_ARGV.length && COMMAND_SERVER_ARGV.every((word, at) => args[at] === word), "isCommandServer");
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
isCommandServer
|
|
13
|
+
};
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
readSharedSection,
|
|
5
5
|
sharedConfigPath,
|
|
6
6
|
writeSharedSection
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4Y5YBFMS.js";
|
|
8
8
|
import {
|
|
9
9
|
storePath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UTNRBOEN.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ELJUBPY4.js";
|
|
14
14
|
import {
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
19
19
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
20
20
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
21
21
|
var SECTION = "setup";
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
walkQuery
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ECEP4SO3.js";
|
|
6
6
|
import {
|
|
7
7
|
writeSecurely
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7AQGVX5O.js";
|
|
9
9
|
import {
|
|
10
10
|
array,
|
|
11
11
|
literal,
|
|
@@ -21,16 +21,16 @@ import {
|
|
|
21
21
|
safeParse,
|
|
22
22
|
string,
|
|
23
23
|
trim
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-TOVWMURV.js";
|
|
25
25
|
import {
|
|
26
26
|
CliError,
|
|
27
27
|
isCliError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ELJUBPY4.js";
|
|
29
29
|
import {
|
|
30
30
|
__name
|
|
31
31
|
} from "./chunk-ZVVMGPBJ.js";
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/documents/blocks.js
|
|
34
34
|
var MARKS = ["bold", "italic", "strike", "code", "link"];
|
|
35
35
|
var sameMarks = /* @__PURE__ */ __name((a, b) => MARKS.every((mark) => a[mark] === b[mark]), "sameMarks");
|
|
36
36
|
var normalizeInlines = /* @__PURE__ */ __name((inlines) => {
|
|
@@ -78,7 +78,7 @@ var key = /* @__PURE__ */ __name((block, withChecked) => {
|
|
|
78
78
|
var blockKey = /* @__PURE__ */ __name((block) => JSON.stringify(key(block, true)), "blockKey");
|
|
79
79
|
var blockShape = /* @__PURE__ */ __name((block) => JSON.stringify(key(block, false)), "blockShape");
|
|
80
80
|
|
|
81
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
81
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/services/documents/block-diff.js
|
|
82
82
|
var MAX_CELLS = 4e6;
|
|
83
83
|
var matches = /* @__PURE__ */ __name((a, b, keyOf) => {
|
|
84
84
|
const ka = a.map(keyOf);
|
|
@@ -224,7 +224,7 @@ var mergeBlocks = /* @__PURE__ */ __name((baseLocal, baseRemote, local, remote,
|
|
|
224
224
|
return { status: "clean", blocks, conflicts };
|
|
225
225
|
}, "mergeBlocks");
|
|
226
226
|
|
|
227
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
|
|
228
228
|
var Proposal = object({
|
|
229
229
|
kind: picklist(["summary", "digest", "fact", "preference"]),
|
|
230
230
|
body: pipe(string(), trim(), minLength(1), maxLength(15e3)),
|
|
@@ -259,7 +259,7 @@ var extractMemories = /* @__PURE__ */ __name(async (text, complete) => {
|
|
|
259
259
|
return { ...proposals, provider: answer.provider, model: answer.model, tokens: answer.tokens };
|
|
260
260
|
}, "extractMemories");
|
|
261
261
|
|
|
262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/services/documents/ingestion.js
|
|
263
263
|
var documentIngestion = /* @__PURE__ */ __name((store, options) => {
|
|
264
264
|
const folder = /* @__PURE__ */ __name(async (principal, create) => {
|
|
265
265
|
if (options.provider)
|
|
@@ -386,7 +386,7 @@ var documentIngestion = /* @__PURE__ */ __name((store, options) => {
|
|
|
386
386
|
};
|
|
387
387
|
}, "documentIngestion");
|
|
388
388
|
|
|
389
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/services/documents/knowledge.js
|
|
390
390
|
var writer = /* @__PURE__ */ __name((by) => {
|
|
391
391
|
if (by === void 0)
|
|
392
392
|
throw new CliError("validation_error", "name who writes it: the owner or an agent; there is no default", {
|
|
@@ -542,10 +542,10 @@ var documentKnowledge = /* @__PURE__ */ __name((store, folder) => {
|
|
|
542
542
|
return port;
|
|
543
543
|
}, "documentKnowledge");
|
|
544
544
|
|
|
545
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/documents/markdown-blocks.js
|
|
546
546
|
var parser;
|
|
547
547
|
var loadParser = /* @__PURE__ */ __name(() => parser ??= Promise.all([
|
|
548
|
-
import("./mdast-util-from-markdown-
|
|
548
|
+
import("./mdast-util-from-markdown-CE73EWJ2.js"),
|
|
549
549
|
import("./mdast-util-gfm-SZM5GBDF.js"),
|
|
550
550
|
import("./micromark-extension-gfm-GRL24TU6.js")
|
|
551
551
|
]).then(([{ fromMarkdown }, { gfmFromMarkdown }, { gfm }]) => (markdown) => fromMarkdown(markdown, { extensions: [gfm()], mdastExtensions: [gfmFromMarkdown()] })), "loadParser");
|
|
@@ -667,7 +667,7 @@ var placedMarkdownBlocks = /* @__PURE__ */ __name(async (markdown) => {
|
|
|
667
667
|
return blocks(tree.children);
|
|
668
668
|
}, "placedMarkdownBlocks");
|
|
669
669
|
|
|
670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/services/documents/markdown-splice.js
|
|
671
671
|
var escapeText = /* @__PURE__ */ __name((text) => text.replace(/[\\`*_[\]<>~|]/g, "\\$&"), "escapeText");
|
|
672
672
|
var codeSpan = /* @__PURE__ */ __name((text) => {
|
|
673
673
|
const longest = (text.match(/`+/g) ?? []).reduce((most, run) => Math.max(most, run.length), 0);
|
|
@@ -853,15 +853,15 @@ var columnsBefore = /* @__PURE__ */ __name((placed, index) => {
|
|
|
853
853
|
return columns;
|
|
854
854
|
}, "columnsBefore");
|
|
855
855
|
|
|
856
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
|
|
857
857
|
import { watch } from "node:fs";
|
|
858
858
|
|
|
859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
|
|
860
860
|
import { createHash as createHash2 } from "node:crypto";
|
|
861
861
|
import { mkdirSync, readFileSync } from "node:fs";
|
|
862
862
|
import { join as join2 } from "node:path";
|
|
863
863
|
|
|
864
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/services/documents/push.js
|
|
865
865
|
import { createHash, randomUUID } from "node:crypto";
|
|
866
866
|
import { createReadStream } from "node:fs";
|
|
867
867
|
import { chmod, readdir, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
@@ -1113,7 +1113,7 @@ var pushDocuments = /* @__PURE__ */ __name(async (options) => {
|
|
|
1113
1113
|
return result;
|
|
1114
1114
|
}, "pushDocuments");
|
|
1115
1115
|
|
|
1116
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
|
|
1117
1117
|
var mirrorId = /* @__PURE__ */ __name((root, folder) => createHash2("sha256").update(JSON.stringify([root, folder])).digest("hex").slice(0, 8), "mirrorId");
|
|
1118
1118
|
var ID = pipe(string(), regex(/^[A-Za-z0-9_-]{1,200}$/));
|
|
1119
1119
|
var stateSchema = /* @__PURE__ */ __name((kinds) => object({
|
|
@@ -1235,7 +1235,7 @@ var syncMirrors = /* @__PURE__ */ __name(async (options) => {
|
|
|
1235
1235
|
};
|
|
1236
1236
|
}, "syncMirrors");
|
|
1237
1237
|
|
|
1238
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1238
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
|
|
1239
1239
|
var sleep = /* @__PURE__ */ __name((milliseconds, signal) => new Promise((resolve) => {
|
|
1240
1240
|
const finish = /* @__PURE__ */ __name(() => {
|
|
1241
1241
|
clearTimeout(timer);
|
|
@@ -1374,7 +1374,7 @@ async function* watchMirrors(sync, options) {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
__name(watchMirrors, "watchMirrors");
|
|
1376
1376
|
|
|
1377
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/services/documents/proposals.js
|
|
1378
1378
|
var extractDocumentMemories = /* @__PURE__ */ __name(async (options) => {
|
|
1379
1379
|
const source = options.read();
|
|
1380
1380
|
const text = options.tab ? source.snapshot.tabs.find((tab) => tab.id === options.tab)?.text : source.snapshot.text;
|
|
@@ -1424,10 +1424,10 @@ Snapshot: ${source.hash}`;
|
|
|
1424
1424
|
};
|
|
1425
1425
|
}, "extractDocumentMemories");
|
|
1426
1426
|
|
|
1427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
|
|
1428
1428
|
import { createHash as createHash4 } from "node:crypto";
|
|
1429
1429
|
|
|
1430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/documents/scope.js
|
|
1431
1431
|
var within = /* @__PURE__ */ __name((file, roots, folders, seen = /* @__PURE__ */ new Set()) => {
|
|
1432
1432
|
if (file.trashed)
|
|
1433
1433
|
return false;
|
|
@@ -1442,7 +1442,7 @@ var within = /* @__PURE__ */ __name((file, roots, folders, seen = /* @__PURE__ *
|
|
|
1442
1442
|
});
|
|
1443
1443
|
}, "within");
|
|
1444
1444
|
|
|
1445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/documents/catalog.js
|
|
1446
1446
|
var catalogFiles = /* @__PURE__ */ __name((state, roots) => {
|
|
1447
1447
|
const folders = state.pending?.folders ?? state.folders;
|
|
1448
1448
|
const files = new Map(Object.values(state.documents).map((doc) => [doc.metadata.id, doc.metadata]));
|
|
@@ -1460,7 +1460,7 @@ var catalogFiles = /* @__PURE__ */ __name((state, roots) => {
|
|
|
1460
1460
|
return [...files.values()].filter((file) => within(file, roots, folders));
|
|
1461
1461
|
}, "catalogFiles");
|
|
1462
1462
|
|
|
1463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/services/documents/plan.js
|
|
1464
1464
|
import { createHash as createHash3 } from "node:crypto";
|
|
1465
1465
|
var scopeHash = /* @__PURE__ */ __name((roots) => createHash3("sha256").update(JSON.stringify([...roots].sort())).digest("hex"), "scopeHash");
|
|
1466
1466
|
var changedSince = /* @__PURE__ */ __name((previous, file) => previous.version !== file.version || previous.modifiedAt !== file.modifiedAt || previous.name !== file.name || previous.canDownload !== file.canDownload || JSON.stringify(previous.parents) !== JSON.stringify(file.parents), "changedSince");
|
|
@@ -1644,7 +1644,7 @@ var planDocuments = /* @__PURE__ */ __name(async (options, source, state, roots,
|
|
|
1644
1644
|
return { scope, cursor: finalCursor, folders: scopedFolders, jobs, skipped };
|
|
1645
1645
|
}, "planDocuments");
|
|
1646
1646
|
|
|
1647
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
|
|
1648
1648
|
var MAX_PICTURE_BYTES = 25 * 1024 * 1024;
|
|
1649
1649
|
var SAVE_EVERY_MS2 = 2e3;
|
|
1650
1650
|
var SAVE_EVERY_ITEMS = 25;
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
string,
|
|
16
16
|
text,
|
|
17
17
|
unknown
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-TOVWMURV.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.93.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
|
|
24
24
|
var LOG_SEVERITIES = ["trace", "debug", "info", "warn", "error", "fatal"];
|
|
25
25
|
var logRecordSchema = strictObject({
|
|
26
26
|
time: isoTime,
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
AUDIT_MIN_SCORE,
|
|
5
|
+
throughWrapper
|
|
6
|
+
} from "./chunk-O6K2E7OA.js";
|
|
3
7
|
import {
|
|
4
8
|
Command,
|
|
5
9
|
InvalidArgumentError,
|
|
@@ -13,17 +17,10 @@ import {
|
|
|
13
17
|
renderAnswer,
|
|
14
18
|
sharedCommand,
|
|
15
19
|
snakeKeys
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
AUDIT_MIN_SCORE,
|
|
19
|
-
throughWrapper
|
|
20
|
-
} from "./chunk-3J5KAFNA.js";
|
|
20
|
+
} from "./chunk-SIWXYB4E.js";
|
|
21
21
|
import {
|
|
22
22
|
readOnlyLockOf
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import {
|
|
25
|
-
formatReference
|
|
26
|
-
} from "./chunk-EWGVDFPT.js";
|
|
23
|
+
} from "./chunk-IKHOIXJR.js";
|
|
27
24
|
import {
|
|
28
25
|
EVENT_QUERY,
|
|
29
26
|
MEETING_PROJECT_EVIDENCE_QUERY,
|
|
@@ -33,6 +30,7 @@ import {
|
|
|
33
30
|
SAVE_HELP,
|
|
34
31
|
eventItem,
|
|
35
32
|
exportMeeting,
|
|
33
|
+
formatReference,
|
|
36
34
|
importFiles,
|
|
37
35
|
listed,
|
|
38
36
|
meetingDetailsAnswer,
|
|
@@ -46,7 +44,7 @@ import {
|
|
|
46
44
|
readMeetingProjectEvidence,
|
|
47
45
|
validateMeetingHitSearch,
|
|
48
46
|
validateMeetingPassage
|
|
49
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-D6Z43SOG.js";
|
|
50
48
|
import {
|
|
51
49
|
OPERATORS_BY_TYPE,
|
|
52
50
|
dateRange,
|
|
@@ -59,7 +57,7 @@ import {
|
|
|
59
57
|
timezoneOf,
|
|
60
58
|
validateQuery,
|
|
61
59
|
zonedMoment
|
|
62
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-ECEP4SO3.js";
|
|
63
61
|
import {
|
|
64
62
|
array,
|
|
65
63
|
boolean,
|
|
@@ -69,15 +67,15 @@ import {
|
|
|
69
67
|
safeParse,
|
|
70
68
|
strictObject,
|
|
71
69
|
string
|
|
72
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-TOVWMURV.js";
|
|
73
71
|
import {
|
|
74
72
|
CliError
|
|
75
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-ELJUBPY4.js";
|
|
76
74
|
import {
|
|
77
75
|
__name
|
|
78
76
|
} from "./chunk-ZVVMGPBJ.js";
|
|
79
77
|
|
|
80
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
78
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/cli/messenger/lacks.js
|
|
81
79
|
var COMMAND_NEEDS = {
|
|
82
80
|
"account update": ["updateProfile", "change the profile"],
|
|
83
81
|
"account sessions list": ["sessions", "list the account's sessions"],
|
|
@@ -127,7 +125,7 @@ var hideNever = /* @__PURE__ */ __name((messenger, group) => {
|
|
|
127
125
|
return group;
|
|
128
126
|
}, "hideNever");
|
|
129
127
|
|
|
130
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
131
129
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
132
130
|
command.allowUnknownOption();
|
|
133
131
|
const parse = command.parseOptions.bind(command);
|
|
@@ -147,7 +145,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
147
145
|
return command;
|
|
148
146
|
}, "queryWordsAfterOptions");
|
|
149
147
|
|
|
150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
148
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
151
149
|
var count = /* @__PURE__ */ __name((value) => {
|
|
152
150
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
153
151
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -189,7 +187,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
189
187
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
190
188
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
191
189
|
|
|
192
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
193
191
|
var integer = /* @__PURE__ */ __name((value) => {
|
|
194
192
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
195
193
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -212,7 +210,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
212
210
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
213
211
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
214
212
|
|
|
215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
213
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
216
214
|
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
217
215
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
218
216
|
const zone = timezoneOf();
|
|
@@ -298,7 +296,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
298
296
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
299
297
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
300
298
|
|
|
301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
299
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
302
300
|
var integer3 = /* @__PURE__ */ __name((text) => {
|
|
303
301
|
if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
|
|
304
302
|
throw new InvalidArgumentError("expected a positive integer");
|
|
@@ -442,7 +440,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
442
440
|
}, "addMeetingCommandsDefinition");
|
|
443
441
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
444
442
|
|
|
445
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
446
444
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
447
445
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
448
446
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -575,7 +573,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
575
573
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
576
574
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
577
575
|
|
|
578
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
579
577
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
580
578
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
581
579
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -584,7 +582,7 @@ var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
|
584
582
|
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
585
583
|
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
586
584
|
|
|
587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
588
586
|
var defined = /* @__PURE__ */ __name((record2) => Object.fromEntries(Object.entries(record2).filter(([, value]) => value !== void 0)), "defined");
|
|
589
587
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
590
588
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -846,7 +844,7 @@ var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location,
|
|
|
846
844
|
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
847
845
|
}), "sessionAnswer");
|
|
848
846
|
|
|
849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/background/relay.js
|
|
850
848
|
import { createHash } from "node:crypto";
|
|
851
849
|
import { chmodSync, lstatSync, mkdirSync, rmSync } from "node:fs";
|
|
852
850
|
import { createConnection, createServer } from "node:net";
|
|
@@ -1067,7 +1065,7 @@ var relayCommand = /* @__PURE__ */ __name((path, request, options) => new Promis
|
|
|
1067
1065
|
}, () => finish({ error: stopped() }));
|
|
1068
1066
|
}), "relayCommand");
|
|
1069
1067
|
|
|
1070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.634.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_795ed7a67bda78d624888739490b3720/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-relay.js
|
|
1071
1069
|
var lentConnection = /* @__PURE__ */ __name((connection, watchers) => throughWrapper(connection, {
|
|
1072
1070
|
close: /* @__PURE__ */ __name(async () => {
|
|
1073
1071
|
}, "close"),
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
describeProgram,
|
|
7
7
|
flatten,
|
|
8
8
|
profileFree
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SIWXYB4E.js";
|
|
10
10
|
import {
|
|
11
11
|
VERSION
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-CGQRZRTH.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ELJUBPY4.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|