@wirecat/drive-cli 0.50.0 → 0.51.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-WQTVOCIS.js → all-profiles-H3APJWSO.js} +5 -5
- package/dist/bundle/{anthropic-YCA2AWIJ.js → anthropic-P7DXFYFE.js} +3 -3
- package/dist/bundle/{app-server-ZQOYUQJH.js → app-server-IQUR7ZC2.js} +46 -46
- package/dist/bundle/{bun-5NFIDHGM.js → bun-LZUEW2ML.js} +2 -2
- package/dist/bundle/{bun-sqlite-OAQE4M2E.js → bun-sqlite-6LUE7UA6.js} +2 -2
- package/dist/bundle/{chunk-P6VN5UB4.js → chunk-2TPENYCK.js} +3 -3
- package/dist/bundle/{chunk-M6FQOGUW.js → chunk-35IHF562.js} +244 -244
- package/dist/bundle/{chunk-3XX52F42.js → chunk-3KTDFSSK.js} +1 -1
- package/dist/bundle/{chunk-RTIMGPLN.js → chunk-4GFAOETW.js} +2 -2
- package/dist/bundle/{chunk-QNLD7Y6Z.js → chunk-4YG2FZ53.js} +5 -5
- package/dist/bundle/{chunk-QBECV7NO.js → chunk-5C7RKU7O.js} +30 -30
- package/dist/bundle/{chunk-652YTDT5.js → chunk-6FXFYXTR.js} +10 -10
- package/dist/bundle/{chunk-FSAM4Y2S.js → chunk-7LYVWMKD.js} +7 -7
- package/dist/bundle/{chunk-KZEOWOZV.js → chunk-7ZNM6KXP.js} +5 -5
- package/dist/bundle/{chunk-M2D4FXKY.js → chunk-AKW5MNQP.js} +4 -4
- package/dist/bundle/{chunk-Z54E5LKF.js → chunk-AUW45JPI.js} +5 -5
- package/dist/bundle/{chunk-DTHWL5YU.js → chunk-BMI5VCR4.js} +2 -2
- package/dist/bundle/{chunk-ZKGYW63J.js → chunk-BVDAP3FQ.js} +3 -3
- package/dist/bundle/{chunk-2M5XEGVE.js → chunk-CT6Z6Z64.js} +319 -235
- package/dist/bundle/{chunk-QY3LK3OT.js → chunk-CX7HQ6KK.js} +4 -4
- package/dist/bundle/{chunk-3HNUH632.js → chunk-D222O57O.js} +3 -3
- package/dist/bundle/{chunk-ZXD2I5ZQ.js → chunk-D3UFQC7K.js} +46 -46
- package/dist/bundle/{chunk-NHRJW3PH.js → chunk-DDD3FS6G.js} +1 -1
- package/dist/bundle/{chunk-CTIQ77AB.js → chunk-DEVPGI27.js} +15 -15
- package/dist/bundle/{chunk-JSMPSOEM.js → chunk-F3PPSIKI.js} +1 -1
- package/dist/bundle/{chunk-AO3NCZNT.js → chunk-FCZ762RV.js} +7 -7
- package/dist/bundle/{chunk-CEUEXMIR.js → chunk-FV5WG4WU.js} +25 -25
- package/dist/bundle/{chunk-24TOKSZE.js → chunk-GK2VUKQY.js} +2 -2
- package/dist/bundle/{chunk-JA2YY7D4.js → chunk-HBRTKJ3J.js} +6 -6
- package/dist/bundle/{chunk-CCEVICWU.js → chunk-HYT3FJVB.js} +3 -3
- package/dist/bundle/{chunk-KYMGVMOS.js → chunk-I7EP3VPJ.js} +1 -1
- package/dist/bundle/{chunk-VAK2Q2XG.js → chunk-J2S7QDOP.js} +12 -12
- package/dist/bundle/{chunk-5Z63NTC7.js → chunk-JI5KFKTL.js} +4 -4
- package/dist/bundle/{chunk-4OLWMHS6.js → chunk-K3EK4MTU.js} +1 -1
- package/dist/bundle/{chunk-4J7UGHPK.js → chunk-K6JSVXDN.js} +4 -4
- package/dist/bundle/{chunk-MMOG7ZVF.js → chunk-LLMHJE5Q.js} +1 -1
- package/dist/bundle/{chunk-JHBX53SK.js → chunk-LZKPT7GY.js} +32 -32
- package/dist/bundle/{chunk-T7UZHKAS.js → chunk-MPTD5P53.js} +1 -1
- package/dist/bundle/{chunk-UVPKSZSC.js → chunk-N33EOINW.js} +4 -4
- package/dist/bundle/{chunk-LNWRRK2H.js → chunk-NO34DAIB.js} +5 -5
- package/dist/bundle/{chunk-5OMLYNYB.js → chunk-NRWDEBJB.js} +7 -7
- package/dist/bundle/{chunk-C4PNAHI4.js → chunk-NVHPYKYC.js} +10 -10
- package/dist/bundle/{chunk-5ZJHQ4TN.js → chunk-OASIFIXM.js} +1 -1
- package/dist/bundle/{chunk-KEQ35HQQ.js → chunk-OQVJQSEH.js} +2 -2
- package/dist/bundle/{chunk-INVF3GXW.js → chunk-POFLDSTX.js} +8 -8
- package/dist/bundle/{chunk-IUZ4PT2V.js → chunk-PQGIV36R.js} +1 -1
- package/dist/bundle/{chunk-XEETGCOC.js → chunk-PRBPVOW4.js} +1 -1
- package/dist/bundle/{chunk-IFM2APQB.js → chunk-PT6XDCOY.js} +1 -1
- package/dist/bundle/{chunk-ZP735UUT.js → chunk-Q5CLTK5R.js} +1 -1
- package/dist/bundle/{chunk-QSDXVUJG.js → chunk-SRIPLP7N.js} +4 -4
- package/dist/bundle/{chunk-Q27HCATD.js → chunk-SRONUWOM.js} +262 -247
- package/dist/bundle/{chunk-OL22OOIW.js → chunk-SZWQFR5X.js} +3 -3
- package/dist/bundle/{chunk-XGJUEH5C.js → chunk-TEH76MZK.js} +16 -16
- package/dist/bundle/{chunk-HURI56SB.js → chunk-TSZJXI4N.js} +18 -18
- package/dist/bundle/{chunk-4SSUKRO4.js → chunk-TVJU245P.js} +1 -1
- package/dist/bundle/{chunk-E656DAZT.js → chunk-U3OS6V6S.js} +1 -1
- package/dist/bundle/{chunk-IGG4RBIZ.js → chunk-U7DPS46V.js} +96 -96
- package/dist/bundle/{chunk-6E4PFCQ4.js → chunk-UM4E2OFL.js} +1 -1
- package/dist/bundle/{chunk-OQEBGY74.js → chunk-UMY4IQE2.js} +43 -43
- package/dist/bundle/{chunk-POD2GHQB.js → chunk-UW7VXKKZ.js} +17 -17
- package/dist/bundle/{chunk-TATRMMOG.js → chunk-VCPS7Q2W.js} +2 -2
- package/dist/bundle/{chunk-EXYEDKTX.js → chunk-VH4GVA2N.js} +1 -1
- package/dist/bundle/{chunk-VAETCXRI.js → chunk-WACVI3CS.js} +8 -8
- package/dist/bundle/{chunk-BUALWXBT.js → chunk-WX2NQO2D.js} +1 -1
- package/dist/bundle/{chunk-3CQNJKJT.js → chunk-WYWXOIGT.js} +1 -1
- package/dist/bundle/{chunk-7SYSC7KX.js → chunk-XBENRRBS.js} +2 -2
- package/dist/bundle/{chunk-ZJBRKR42.js → chunk-XCXUP76D.js} +25 -25
- package/dist/bundle/{chunk-5WN7JHQE.js → chunk-XE2GEE3E.js} +25 -25
- package/dist/bundle/{chunk-R7XMCREL.js → chunk-XXLTVVMT.js} +18 -18
- package/dist/bundle/{chunk-6DDXB5WB.js → chunk-Y4YBW5S4.js} +1 -1
- package/dist/bundle/{chunk-IA6LNKCF.js → chunk-YLC4JVQZ.js} +3 -3
- package/dist/bundle/{chunk-FABKIQ24.js → chunk-YVQJPLPU.js} +2 -2
- package/dist/bundle/{chunk-4VLUX3V5.js → chunk-YXHMEFL7.js} +1 -1
- package/dist/bundle/{chunk-53UWCVSU.js → chunk-Z3GWVRW3.js} +1 -1
- package/dist/bundle/{chunk-YROVFHPJ.js → chunk-Z6KTSXE3.js} +1 -1
- package/dist/bundle/{chunk-Q3VG3UYV.js → chunk-ZKAAFY4C.js} +9 -9
- package/dist/bundle/command-contract-R6CGYG7L.js +38 -0
- package/dist/bundle/{decode-YZRTP54O.js → decode-4EENADOV.js} +2 -2
- package/dist/bundle/drive.js +4 -4
- package/dist/bundle/{echarts-C6HUK2FL.js → echarts-ZFC37XW7.js} +2 -2
- package/dist/bundle/{embed-QRQ7ITFC.js → embed-UZMNP26C.js} +3 -3
- package/dist/bundle/{embedder-EZDB3JPA.js → embedder-7VDWDBKF.js} +6 -6
- package/dist/bundle/{entry-4WQQKSYG.js → entry-JJKCHVIK.js} +4 -4
- package/dist/bundle/{failure-EEJGMWEP.js → failure-VBQBKCD5.js} +11 -11
- package/dist/bundle/{first-run-ZAS4OV3T.js → first-run-FJTEUJBF.js} +5 -5
- package/dist/bundle/first-screen-NSPQWNMQ.js +36 -0
- package/dist/bundle/{google-KNILTIDW.js → google-JBJASYKY.js} +4 -4
- package/dist/bundle/google-api-2FKF4UUN.js +82 -0
- package/dist/bundle/{identity-VBCGUXT5.js → identity-XE73ALJH.js} +2 -2
- package/dist/bundle/{instructions-II4M2WL3.js → instructions-Q4ASITKO.js} +1 -1
- package/dist/bundle/{login-4JACQVMD.js → login-BD2WQT5F.js} +54 -54
- package/dist/bundle/{mcp-6ZIAWU3N.js → mcp-G6U2Q63E.js} +68 -68
- package/dist/bundle/mcp-H3XD47NW.js +95 -0
- package/dist/bundle/{node-LIN7L4VQ.js → node-CYM7VXFR.js} +2 -2
- package/dist/bundle/{node-sqlite-VAH4KZN3.js → node-sqlite-RK4MHW57.js} +2 -2
- package/dist/bundle/{oauth-QUE3VCTU.js → oauth-CQXQRHJR.js} +4 -4
- package/dist/bundle/{open-DQ3EVYPB.js → open-WSE4NBD2.js} +1 -1
- package/dist/bundle/{process-46XDWPVW.js → process-7HHZZZLA.js} +1 -1
- package/dist/bundle/{program-X3CZ4XDN.js → program-ZMQYZNV5.js} +77 -77
- package/dist/bundle/{prompt-SAZYCZV3.js → prompt-YSBBQJGF.js} +2 -2
- package/dist/bundle/{recognize-SSBOHOTW.js → recognize-AZKGPCAS.js} +1 -1
- package/dist/bundle/{remote-EL3FWCQE.js → remote-EYSK3XKD.js} +4 -4
- package/dist/bundle/{rerank-RPIQRJIW.js → rerank-LOW6VIDF.js} +4 -4
- package/dist/bundle/{serve-AX44DIKK.js → serve-UJ52HGA7.js} +6 -6
- package/dist/bundle/server-CA2VLY25.js +56 -0
- package/dist/bundle/server-TW75RDEP.js +69 -0
- package/dist/bundle/{services-K4UOEMQD.js → services-B4QUSCFN.js} +22 -22
- package/dist/bundle/{sqlite-runtime-N7N3EYGH.js → sqlite-runtime-GEURBVK5.js} +2 -2
- package/dist/bundle/{state-C3S5FD7V.js → state-OJNSKOXO.js} +3 -3
- package/dist/bundle/{store-4N3NBUGX.js → store-62SBP45X.js} +10 -10
- package/dist/bundle/{store-QV4ZNEQ3.js → store-FTS2HVVB.js} +12 -12
- package/dist/bundle/store-maintenance-command-FQMB3R4E.js +57 -0
- package/dist/bundle/tokens-JALZUGEM.js +103 -0
- package/dist/commands/search.js +1 -1
- package/dist/commands/search.js.map +1 -1
- package/dist/contract-overrides.js +1 -1
- package/dist/contract-overrides.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/command-contract-TAWVO2G3.js +0 -38
- package/dist/bundle/first-screen-6ICWD2N3.js +0 -36
- package/dist/bundle/google-api-CZACYX5T.js +0 -82
- package/dist/bundle/mcp-2BR2EX7L.js +0 -95
- package/dist/bundle/server-DCJIGUW2.js +0 -56
- package/dist/bundle/server-WWQSQBFT.js +0 -69
- package/dist/bundle/store-maintenance-command-QL4AECBD.js +0 -57
- package/dist/bundle/tokens-Y7HCOXOA.js +0 -103
- /package/dist/bundle/{chunk-VDZZ46RT.js → chunk-UO5O3665.js} +0 -0
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
unknown
|
|
20
20
|
} from "./chunk-EY4CUQW2.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
23
23
|
var text = string();
|
|
24
24
|
var id = pipe(string(), minLength(1));
|
|
25
25
|
var time = isoTime;
|
|
@@ -33,7 +33,7 @@ var author = strictObject({
|
|
|
33
33
|
name: nullable(text)
|
|
34
34
|
});
|
|
35
35
|
|
|
36
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
36
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
37
37
|
var link = {
|
|
38
38
|
target_text: nullable(text),
|
|
39
39
|
kind: text,
|
|
@@ -74,7 +74,7 @@ var note = strictObject({
|
|
|
74
74
|
backlinks: optional(array(strictObject({ from: reference, ...link })))
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
78
78
|
var organization = strictObject({
|
|
79
79
|
id,
|
|
80
80
|
ref: reference,
|
|
@@ -6,25 +6,25 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6FXFYXTR.js";
|
|
10
10
|
import {
|
|
11
11
|
callerOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XBENRRBS.js";
|
|
13
13
|
import {
|
|
14
14
|
failureContext
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-K3EK4MTU.js";
|
|
16
16
|
import {
|
|
17
17
|
lentConnection,
|
|
18
18
|
refuseLacking
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UW7VXKKZ.js";
|
|
20
20
|
import {
|
|
21
21
|
onlineDeps,
|
|
22
22
|
servicesFor,
|
|
23
23
|
storeModeDeps
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-CT6Z6Z64.js";
|
|
25
25
|
import {
|
|
26
26
|
ENTITIES
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-U7DPS46V.js";
|
|
28
28
|
import {
|
|
29
29
|
DEFAULT_OUTPUT_BYTES,
|
|
30
30
|
LOCAL_WRITE,
|
|
@@ -37,32 +37,32 @@ import {
|
|
|
37
37
|
refuseStoreChange,
|
|
38
38
|
sealed,
|
|
39
39
|
startRecording
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-5C7RKU7O.js";
|
|
41
41
|
import {
|
|
42
42
|
currentCaller,
|
|
43
43
|
keepsSuccess,
|
|
44
44
|
runContextOf,
|
|
45
45
|
withCaller
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-NRWDEBJB.js";
|
|
47
47
|
import {
|
|
48
48
|
flatten
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-BVDAP3FQ.js";
|
|
50
50
|
import {
|
|
51
51
|
enclosingTraceId,
|
|
52
52
|
inRun,
|
|
53
53
|
newRunId,
|
|
54
54
|
traceOf
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-XXLTVVMT.js";
|
|
56
56
|
import {
|
|
57
57
|
authorityAllowed,
|
|
58
58
|
botApiAllowed,
|
|
59
59
|
keyForCommand,
|
|
60
60
|
levelFor,
|
|
61
61
|
readKeysForCommand
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-Y4YBW5S4.js";
|
|
63
63
|
import {
|
|
64
64
|
MAX_BUFFERED_INPUT
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-VH4GVA2N.js";
|
|
66
66
|
import {
|
|
67
67
|
captureStreams,
|
|
68
68
|
errorObjectOf,
|
|
@@ -111,7 +111,7 @@ import {
|
|
|
111
111
|
__name
|
|
112
112
|
} from "./chunk-ZVVMGPBJ.js";
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
115
115
|
import { Readable } from "node:stream";
|
|
116
116
|
|
|
117
117
|
// node_modules/.pnpm/@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
@@ -2759,7 +2759,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
2759
2759
|
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
|
|
2760
2760
|
});
|
|
2761
2761
|
|
|
2762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2763
2763
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2764
2764
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2765
2765
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -2980,7 +2980,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
2980
2980
|
}
|
|
2981
2981
|
}, "runCommandForAgent");
|
|
2982
2982
|
|
|
2983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
2984
2984
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
2985
2985
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
2986
2986
|
var message = pipe(
|
|
@@ -3239,7 +3239,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3239
3239
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3240
3240
|
}, "failed");
|
|
3241
3241
|
|
|
3242
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3242
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3243
3243
|
import { randomUUID } from "node:crypto";
|
|
3244
3244
|
var MATCHES = 8;
|
|
3245
3245
|
var ANSWER = answerSchema();
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
__name
|
|
29
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/documents/blocks.js
|
|
32
32
|
var MARKS = ["bold", "italic", "strike", "code", "link"];
|
|
33
33
|
var sameMarks = /* @__PURE__ */ __name((a, b) => MARKS.every((mark) => a[mark] === b[mark]), "sameMarks");
|
|
34
34
|
var normalizeInlines = /* @__PURE__ */ __name((inlines) => {
|
|
@@ -76,7 +76,7 @@ var key = /* @__PURE__ */ __name((block, withChecked) => {
|
|
|
76
76
|
var blockKey = /* @__PURE__ */ __name((block) => JSON.stringify(key(block, true)), "blockKey");
|
|
77
77
|
var blockShape = /* @__PURE__ */ __name((block) => JSON.stringify(key(block, false)), "blockShape");
|
|
78
78
|
|
|
79
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
79
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/documents/block-diff.js
|
|
80
80
|
var MAX_CELLS = 4e6;
|
|
81
81
|
var matches = /* @__PURE__ */ __name((a, b, keyOf) => {
|
|
82
82
|
const ka = a.map(keyOf);
|
|
@@ -222,7 +222,7 @@ var mergeBlocks = /* @__PURE__ */ __name((baseLocal, baseRemote, local, remote,
|
|
|
222
222
|
return { status: "clean", blocks, conflicts };
|
|
223
223
|
}, "mergeBlocks");
|
|
224
224
|
|
|
225
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/documents/extraction.js
|
|
226
226
|
var Proposal = object({
|
|
227
227
|
kind: picklist(["summary", "digest", "fact", "preference"]),
|
|
228
228
|
body: pipe(string(), trim(), minLength(1), maxLength(15e3)),
|
|
@@ -257,7 +257,7 @@ var extractMemories = /* @__PURE__ */ __name(async (text, complete) => {
|
|
|
257
257
|
return { ...proposals, provider: answer.provider, model: answer.model, tokens: answer.tokens };
|
|
258
258
|
}, "extractMemories");
|
|
259
259
|
|
|
260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
260
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/documents/ingestion.js
|
|
261
261
|
var documentIngestion = /* @__PURE__ */ __name((store, options) => {
|
|
262
262
|
const folder = /* @__PURE__ */ __name(async (principal, create) => {
|
|
263
263
|
if (options.provider)
|
|
@@ -384,7 +384,7 @@ var documentIngestion = /* @__PURE__ */ __name((store, options) => {
|
|
|
384
384
|
};
|
|
385
385
|
}, "documentIngestion");
|
|
386
386
|
|
|
387
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/documents/knowledge.js
|
|
388
388
|
var documentKnowledge = /* @__PURE__ */ __name((store, folder) => {
|
|
389
389
|
const document = /* @__PURE__ */ __name(async (principal, ref) => {
|
|
390
390
|
const note = await store.notes.resolveNote(ref);
|
|
@@ -526,7 +526,7 @@ var documentKnowledge = /* @__PURE__ */ __name((store, folder) => {
|
|
|
526
526
|
return port;
|
|
527
527
|
}, "documentKnowledge");
|
|
528
528
|
|
|
529
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/documents/markdown-blocks.js
|
|
530
530
|
var parser;
|
|
531
531
|
var loadParser = /* @__PURE__ */ __name(() => parser ??= Promise.all([
|
|
532
532
|
import("./mdast-util-from-markdown-FXEPSNER.js"),
|
|
@@ -651,7 +651,7 @@ var placedMarkdownBlocks = /* @__PURE__ */ __name(async (markdown) => {
|
|
|
651
651
|
return blocks(tree.children);
|
|
652
652
|
}, "placedMarkdownBlocks");
|
|
653
653
|
|
|
654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/documents/markdown-splice.js
|
|
655
655
|
var escapeText = /* @__PURE__ */ __name((text) => text.replace(/[\\`*_[\]<>~|]/g, "\\$&"), "escapeText");
|
|
656
656
|
var codeSpan = /* @__PURE__ */ __name((text) => {
|
|
657
657
|
const longest = (text.match(/`+/g) ?? []).reduce((most, run) => Math.max(most, run.length), 0);
|
|
@@ -837,15 +837,15 @@ var columnsBefore = /* @__PURE__ */ __name((placed, index) => {
|
|
|
837
837
|
return columns;
|
|
838
838
|
}, "columnsBefore");
|
|
839
839
|
|
|
840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
|
|
841
841
|
import { watch } from "node:fs";
|
|
842
842
|
|
|
843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
|
|
844
844
|
import { createHash as createHash2 } from "node:crypto";
|
|
845
845
|
import { mkdirSync, readFileSync } from "node:fs";
|
|
846
846
|
import { join as join2 } from "node:path";
|
|
847
847
|
|
|
848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
848
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/documents/push.js
|
|
849
849
|
import { createHash, randomUUID } from "node:crypto";
|
|
850
850
|
import { createReadStream } from "node:fs";
|
|
851
851
|
import { chmod, readdir, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
@@ -1097,7 +1097,7 @@ var pushDocuments = /* @__PURE__ */ __name(async (options) => {
|
|
|
1097
1097
|
return result;
|
|
1098
1098
|
}, "pushDocuments");
|
|
1099
1099
|
|
|
1100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1100
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
|
|
1101
1101
|
var mirrorId = /* @__PURE__ */ __name((root, folder) => createHash2("sha256").update(JSON.stringify([root, folder])).digest("hex").slice(0, 8), "mirrorId");
|
|
1102
1102
|
var ID = pipe(string(), regex(/^[A-Za-z0-9_-]{1,200}$/));
|
|
1103
1103
|
var stateSchema = /* @__PURE__ */ __name((kinds) => object({
|
|
@@ -1219,7 +1219,7 @@ var syncMirrors = /* @__PURE__ */ __name(async (options) => {
|
|
|
1219
1219
|
};
|
|
1220
1220
|
}, "syncMirrors");
|
|
1221
1221
|
|
|
1222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1222
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
|
|
1223
1223
|
var sleep = /* @__PURE__ */ __name((milliseconds, signal) => new Promise((resolve) => {
|
|
1224
1224
|
const finish = /* @__PURE__ */ __name(() => {
|
|
1225
1225
|
clearTimeout(timer);
|
|
@@ -1358,7 +1358,7 @@ async function* watchMirrors(sync, options) {
|
|
|
1358
1358
|
}
|
|
1359
1359
|
__name(watchMirrors, "watchMirrors");
|
|
1360
1360
|
|
|
1361
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/documents/proposals.js
|
|
1362
1362
|
var extractDocumentMemories = /* @__PURE__ */ __name(async (options) => {
|
|
1363
1363
|
const source = options.read();
|
|
1364
1364
|
const text = options.tab ? source.snapshot.tabs.find((tab) => tab.id === options.tab)?.text : source.snapshot.text;
|
|
@@ -1408,10 +1408,10 @@ Snapshot: ${source.hash}`;
|
|
|
1408
1408
|
};
|
|
1409
1409
|
}, "extractDocumentMemories");
|
|
1410
1410
|
|
|
1411
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1411
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
|
|
1412
1412
|
import { createHash as createHash4 } from "node:crypto";
|
|
1413
1413
|
|
|
1414
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/documents/scope.js
|
|
1415
1415
|
var within = /* @__PURE__ */ __name((file, roots, folders, seen = /* @__PURE__ */ new Set()) => {
|
|
1416
1416
|
if (file.trashed)
|
|
1417
1417
|
return false;
|
|
@@ -1426,7 +1426,7 @@ var within = /* @__PURE__ */ __name((file, roots, folders, seen = /* @__PURE__ *
|
|
|
1426
1426
|
});
|
|
1427
1427
|
}, "within");
|
|
1428
1428
|
|
|
1429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/documents/catalog.js
|
|
1430
1430
|
var catalogFiles = /* @__PURE__ */ __name((state, roots) => {
|
|
1431
1431
|
const folders = state.pending?.folders ?? state.folders;
|
|
1432
1432
|
const files = new Map(Object.values(state.documents).map((doc) => [doc.metadata.id, doc.metadata]));
|
|
@@ -1444,7 +1444,7 @@ var catalogFiles = /* @__PURE__ */ __name((state, roots) => {
|
|
|
1444
1444
|
return [...files.values()].filter((file) => within(file, roots, folders));
|
|
1445
1445
|
}, "catalogFiles");
|
|
1446
1446
|
|
|
1447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/documents/plan.js
|
|
1448
1448
|
import { createHash as createHash3 } from "node:crypto";
|
|
1449
1449
|
var scopeHash = /* @__PURE__ */ __name((roots) => createHash3("sha256").update(JSON.stringify([...roots].sort())).digest("hex"), "scopeHash");
|
|
1450
1450
|
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");
|
|
@@ -1628,7 +1628,7 @@ var planDocuments = /* @__PURE__ */ __name(async (options, source, state, roots,
|
|
|
1628
1628
|
return { scope, cursor: finalCursor, folders: scopedFolders, jobs, skipped };
|
|
1629
1629
|
}, "planDocuments");
|
|
1630
1630
|
|
|
1631
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1631
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
|
|
1632
1632
|
var MAX_PICTURE_BYTES = 25 * 1024 * 1024;
|
|
1633
1633
|
var SAVE_EVERY_MS2 = 2e3;
|
|
1634
1634
|
var SAVE_EVERY_ITEMS = 25;
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.496.0_@wirecat+cli-base@0.65.5_commander@15.0.0_esbuild@0.28.2_type_dcbd09250bc4763d29eff57ceeaf10b7/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|