@wirecat/drive-cli 0.58.0 → 0.59.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 +6 -2
- package/dist/bundle/{all-profiles-ANDWOJDL.js → all-profiles-CVISDGMF.js} +14 -13
- package/dist/bundle/{anthropic-EZPZUWGS.js → anthropic-WLNQC23G.js} +9 -9
- package/dist/bundle/{app-server-67WL423B.js → app-server-P2VOONXF.js} +53 -51
- package/dist/bundle/{bun-NIIYUR5F.js → bun-CDFBNTKV.js} +2 -2
- package/dist/bundle/{bun-sqlite-A5ZKTIYC.js → bun-sqlite-MNZICITP.js} +8 -8
- package/dist/bundle/{chunk-NYINLKWT.js → chunk-2AXA5SKP.js} +1 -1
- package/dist/bundle/{chunk-EFEI724Z.js → chunk-36B7AIGP.js} +1 -1
- package/dist/bundle/{chunk-4GZLX2ME.js → chunk-3KJTJDDT.js} +40 -33
- package/dist/bundle/{chunk-4UU4ONKY.js → chunk-3KNZADHJ.js} +5086 -640
- package/dist/bundle/{chunk-O3K46QRL.js → chunk-3U22QTU6.js} +8 -6
- package/dist/bundle/chunk-3VSUT6BD.js +35 -0
- package/dist/bundle/{chunk-U2RSVKR5.js → chunk-5C7K6XIT.js} +1 -1
- package/dist/bundle/{chunk-JEMKSWVI.js → chunk-6C6255U6.js} +12 -12
- package/dist/bundle/{chunk-UBZ2LH7N.js → chunk-6CQO2FIN.js} +1403 -581
- package/dist/bundle/{chunk-4EEOJ54H.js → chunk-7QTVIZII.js} +5400 -2996
- package/dist/bundle/{chunk-TCJRJ3TE.js → chunk-A6EG7ZDS.js} +13 -13
- package/dist/bundle/{chunk-SPVPKHBQ.js → chunk-A6SLYOP2.js} +35 -30
- package/dist/bundle/{chunk-TIXIB32T.js → chunk-AD62XJKO.js} +153 -101
- package/dist/bundle/{chunk-GDRO4YMH.js → chunk-B5GBJ35N.js} +4 -4
- package/dist/bundle/{chunk-LSSIVBQI.js → chunk-BSGOM3BD.js} +1 -1
- package/dist/bundle/{chunk-ALTG7BZQ.js → chunk-CBM2XAEZ.js} +19 -19
- package/dist/bundle/{chunk-2TASMYGM.js → chunk-DI5Z4SH5.js} +3 -3
- package/dist/bundle/{chunk-ITD7WI23.js → chunk-EBLA7GXY.js} +1 -1
- package/dist/bundle/{chunk-P5MCZ635.js → chunk-EHEZSV6I.js} +11 -88
- package/dist/bundle/{chunk-QVIJMV22.js → chunk-EORMZCVF.js} +3 -3
- package/dist/bundle/{chunk-OZEJA67C.js → chunk-EVETU3TF.js} +8 -8
- package/dist/bundle/{chunk-7YUZAEBG.js → chunk-F3FOL42A.js} +2 -2
- package/dist/bundle/{chunk-AFZ33AC7.js → chunk-FICVPYE4.js} +179 -50
- package/dist/bundle/{chunk-6THTUYPT.js → chunk-FVQCM7IQ.js} +1 -1
- package/dist/bundle/{chunk-TNX77VPM.js → chunk-GI5JBGXH.js} +4589 -1510
- package/dist/bundle/{chunk-7VFD3UJQ.js → chunk-GJ4ZCIOP.js} +3 -3
- package/dist/bundle/{chunk-7AL57FCK.js → chunk-GT5KTGCN.js} +4 -4
- package/dist/bundle/{chunk-BAEIAQWH.js → chunk-H2BKXPBL.js} +2 -2
- package/dist/bundle/chunk-HIOJRPCT.js +93 -0
- package/dist/bundle/{chunk-ASPIEEXN.js → chunk-HIP43OGZ.js} +1 -1
- package/dist/bundle/{chunk-UMJLXAJI.js → chunk-HMZAMHKN.js} +2 -2
- package/dist/bundle/{chunk-ESF2B22R.js → chunk-HWLLVLAB.js} +10 -10
- package/dist/bundle/{chunk-X5XWUQNU.js → chunk-IADOBOKB.js} +2 -2
- package/dist/bundle/{chunk-4ICWGMHN.js → chunk-IBZ3IBO4.js} +7 -7
- package/dist/bundle/{chunk-MBNKNWOG.js → chunk-IGF6EXBR.js} +35 -34
- package/dist/bundle/{chunk-I4VUHZSD.js → chunk-II7LST64.js} +3 -3
- package/dist/bundle/{chunk-Z5GDNCTJ.js → chunk-IIP43FQJ.js} +2 -2
- package/dist/bundle/{chunk-UTDL7MKT.js → chunk-JSDVK3JA.js} +2 -2
- package/dist/bundle/{chunk-X4F3M6L6.js → chunk-JW2CVCUH.js} +4 -4
- package/dist/bundle/{chunk-IBJOO5FG.js → chunk-K4LXGZTE.js} +16 -16
- package/dist/bundle/{chunk-WICYDOVL.js → chunk-KFZUODXB.js} +70 -18
- package/dist/bundle/chunk-KPRGTTJH.js +34 -0
- package/dist/bundle/{chunk-SWFA36F3.js → chunk-L5SE2XZP.js} +20 -14
- package/dist/bundle/{chunk-OOR6PEHV.js → chunk-LJ7E4HLQ.js} +1 -1
- package/dist/bundle/{chunk-34XHR5FL.js → chunk-LPHMAQJQ.js} +16 -16
- package/dist/bundle/{chunk-6SARLV3Z.js → chunk-M6I2SQN7.js} +4 -4
- package/dist/bundle/{chunk-OG5ERX4S.js → chunk-MEAPA4EZ.js} +2 -2
- package/dist/bundle/{chunk-IH4UCM5K.js → chunk-MKCNUI72.js} +2 -2
- package/dist/bundle/{chunk-XQMMB6ST.js → chunk-MUUHUHWC.js} +2 -1
- package/dist/bundle/{chunk-NKL5XXOM.js → chunk-OKXSTWKW.js} +8 -8
- package/dist/bundle/{chunk-BKM2CGG2.js → chunk-OMMEQJOB.js} +3 -3
- package/dist/bundle/{chunk-EFX6FIDM.js → chunk-OZH4ALTI.js} +1 -1
- package/dist/bundle/{chunk-TMW526H3.js → chunk-P3ZTW2ZM.js} +5 -5
- package/dist/bundle/{chunk-FD7A6745.js → chunk-P7WPYKSB.js} +4 -4
- package/dist/bundle/{chunk-OUQVZTF5.js → chunk-PAEVBAM3.js} +7 -42
- package/dist/bundle/{chunk-W6KMNO3C.js → chunk-PGKIOSN3.js} +6 -6
- package/dist/bundle/{chunk-KCBHOYNZ.js → chunk-QTM7USFA.js} +8 -13
- package/dist/bundle/{chunk-IXXQZCNK.js → chunk-TFH5X46A.js} +32 -19
- package/dist/bundle/{chunk-YHRJUZ3O.js → chunk-TI55J3BA.js} +6 -4
- package/dist/bundle/{chunk-J36Z6BDZ.js → chunk-TJXPJ3A5.js} +570 -366
- package/dist/bundle/{chunk-RRHC5SBB.js → chunk-UQPKAY6I.js} +2 -2
- package/dist/bundle/{chunk-A4DHPOFQ.js → chunk-UWVNRPT7.js} +53 -39
- package/dist/bundle/{chunk-3RG27IWA.js → chunk-V36RIXFA.js} +5 -5
- package/dist/bundle/{chunk-3GXNODTB.js → chunk-V42KAPU3.js} +4 -4
- package/dist/bundle/{chunk-D72FL3L3.js → chunk-VT6GZAF4.js} +35 -35
- package/dist/bundle/{chunk-VXI67T7U.js → chunk-VVCZS42A.js} +1 -1
- package/dist/bundle/{chunk-A7FMNTCK.js → chunk-W62CON5K.js} +4 -4
- package/dist/bundle/{chunk-PYPLD7JO.js → chunk-XCOCPXCM.js} +2 -2
- package/dist/bundle/{chunk-BLJVCJZU.js → chunk-YADXWQHV.js} +26 -26
- package/dist/bundle/{chunk-AL7MY7MW.js → chunk-YU3PTU3D.js} +1 -1
- package/dist/bundle/{chunk-5NPFHWLP.js → chunk-YV4ABH6J.js} +5 -5
- package/dist/bundle/{chunk-ED5JNYN5.js → chunk-ZSMCJKGP.js} +27 -26
- package/dist/bundle/{chunk-JZ67M3HR.js → chunk-ZYCLPJ7U.js} +1 -1
- package/dist/bundle/command-contract-LQDNHZJU.js +39 -0
- package/dist/bundle/{decode-2R6DTGRX.js → decode-XTOMXMGN.js} +8 -8
- package/dist/bundle/{dispatch-DEXAEMIN.js → dispatch-T6TW2JJB.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-CLB22SZS.js → echarts-RKKIOYVV.js} +2 -2
- package/dist/bundle/{embed-RJJWOLKN.js → embed-STHKKA6G.js} +9 -9
- package/dist/bundle/{embedder-DWYS5JYJ.js → embedder-3XZEWHRO.js} +12 -12
- package/dist/bundle/entry-CNOYSSSD.js +22 -0
- package/dist/bundle/{failure-GBZ4L5QO.js → failure-DNQYXP2T.js} +4 -4
- package/dist/bundle/first-run-F2SI24PK.js +30 -0
- package/dist/bundle/first-screen-TYYF6VXY.js +37 -0
- package/dist/bundle/{google-L776ETP4.js → google-BYNSAIQI.js} +13 -13
- package/dist/bundle/{google-api-AI5ZJJ2M.js → google-api-4VTZH7OP.js} +57 -56
- package/dist/bundle/grants-EUQXSICG.js +105 -0
- package/dist/bundle/{identity-MDLWK2TX.js → identity-ARDPFYV5.js} +6 -6
- package/dist/bundle/{instructions-BXZZNAMS.js → instructions-N3OH5X2Y.js} +1 -1
- package/dist/bundle/{login-6HHQLRHY.js → login-4VQEC7VI.js} +63 -62
- package/dist/bundle/{mcp-ZZUYI44D.js → mcp-WBHKX5E3.js} +2 -2
- package/dist/bundle/{node-R6ZNQ3NT.js → node-YU5JBNAA.js} +2 -2
- package/dist/bundle/{node-sqlite-AVNHGMVL.js → node-sqlite-3C6PSBIW.js} +14 -8
- package/dist/bundle/oauth-D6NJFPYU.js +22 -0
- package/dist/bundle/{open-BXPLXJC2.js → open-M2V2VYXO.js} +8 -7
- package/dist/bundle/{openai-CRO5GDBY.js → openai-ST2IWNUX.js} +17 -17
- package/dist/bundle/{process-P36JP33R.js → process-PYNNBBTV.js} +1 -1
- package/dist/bundle/{program-4DWVWSGQ.js → program-Q4VWV2MR.js} +132 -94
- package/dist/bundle/prompt-MFIOJMAF.js +17 -0
- package/dist/bundle/{reasons-IHPNUP5W.js → reasons-LOQ5J73F.js} +5 -5
- package/dist/bundle/{recognize-NAISVA56.js → recognize-FBLMWXNE.js} +7 -7
- package/dist/bundle/{remote-KCUHG5HV.js → remote-XC3OXE4T.js} +10 -10
- package/dist/bundle/{rerank-Q3POCDSK.js → rerank-2XMKKF4S.js} +10 -10
- package/dist/bundle/{serve-5CUOYLSG.js → serve-Q2BQHNZB.js} +14 -13
- package/dist/bundle/{server-FXW3GARV.js → server-42HPV3AH.js} +44 -43
- package/dist/bundle/server-EWZYN323.js +70 -0
- package/dist/bundle/{services-PEYBXZ3R.js → services-WU22S2MU.js} +99 -31
- package/dist/bundle/{sqlite-runtime-YMPWN5PM.js → sqlite-runtime-CSO6K6B2.js} +9 -8
- package/dist/bundle/{start-PFWEF44R.js → start-TZWKM4AH.js} +7 -7
- package/dist/bundle/{state-5TQ7IOJH.js → state-FLUT7U7R.js} +9 -9
- package/dist/bundle/{store-E2VWY4O6.js → store-HDWMJ44E.js} +42 -21
- package/dist/bundle/{store-P4OYYFW5.js → store-TG6622NG.js} +20 -16
- package/dist/bundle/store-maintenance-command-RHWRUREJ.js +60 -0
- package/dist/bundle/tokens-TXYURU4S.js +103 -0
- package/dist/commands/documents.d.ts +1 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +14 -1
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/knowledge.d.ts +4 -0
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +8 -7
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/contract-overrides.js +5 -5
- package/dist/contract-overrides.js.map +1 -1
- package/dist/knowledge-query.d.ts +2 -0
- package/dist/knowledge-query.d.ts.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +8 -3
- package/dist/program.js.map +1 -1
- package/dist/provider-json.d.ts +2 -0
- package/dist/provider-json.d.ts.map +1 -1
- package/dist/provider-json.js +13 -0
- package/dist/provider-json.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +1 -0
- package/dist/reasons.js.map +1 -1
- package/dist/store.d.ts +2 -0
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +9 -0
- package/dist/store.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/drive-cli/SKILL.md +2 -1
- package/dist/bundle/chunk-7VUHY5LP.js +0 -18
- package/dist/bundle/chunk-Y6M2G7JK.js +0 -3609
- package/dist/bundle/command-contract-ZCXFT764.js +0 -39
- package/dist/bundle/entry-E6H7IUPV.js +0 -21
- package/dist/bundle/first-run-DI2JIG44.js +0 -30
- package/dist/bundle/first-screen-X5N4TCKD.js +0 -37
- package/dist/bundle/grants-HKGYAWL6.js +0 -104
- package/dist/bundle/oauth-UVU52X57.js +0 -22
- package/dist/bundle/prompt-AFWVGRDG.js +0 -17
- package/dist/bundle/server-FTLPSLRU.js +0 -69
- package/dist/bundle/store-maintenance-command-MWVERNK7.js +0 -58
- package/dist/bundle/tokens-OVG4CJO4.js +0 -102
- /package/dist/bundle/{chunk-HPXYN7F3.js → chunk-LK2E2ELG.js} +0 -0
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
string,
|
|
16
16
|
text,
|
|
17
17
|
unknown
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-3U22QTU6.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.75.2_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,
|
|
@@ -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-L5SE2XZP.js";
|
|
6
6
|
import {
|
|
7
7
|
writeSecurely
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CBM2XAEZ.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-3U22QTU6.js";
|
|
25
25
|
import {
|
|
26
26
|
CliError,
|
|
27
27
|
isCliError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-EBLA7GXY.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.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/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.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/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.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/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.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/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)
|
|
@@ -297,7 +297,7 @@ var documentIngestion = /* @__PURE__ */ __name((store, options) => {
|
|
|
297
297
|
for (let batch = 0; ; batch++) {
|
|
298
298
|
const memories = await store.memories.list({ subject: ref, status, limit: 500 });
|
|
299
299
|
for (const memory of memories)
|
|
300
|
-
await store.memories.markStale(memory.ref);
|
|
300
|
+
await store.memories.markStale(memory.ref, "owner");
|
|
301
301
|
if (memories.length < 500)
|
|
302
302
|
break;
|
|
303
303
|
if (batch >= 20)
|
|
@@ -386,7 +386,21 @@ 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.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/services/documents/knowledge.js
|
|
390
|
+
var writer = /* @__PURE__ */ __name((by) => {
|
|
391
|
+
if (by === void 0)
|
|
392
|
+
throw new CliError("validation_error", "name who writes it: the owner or an agent; there is no default", {
|
|
393
|
+
reason: "proposal.decider-required"
|
|
394
|
+
});
|
|
395
|
+
return by;
|
|
396
|
+
}, "writer");
|
|
397
|
+
var decider = /* @__PURE__ */ __name((by) => {
|
|
398
|
+
if (by === void 0)
|
|
399
|
+
throw new CliError("validation_error", "a confirm names who decides: the owner or an agent with a reason", {
|
|
400
|
+
reason: "proposal.decider-required"
|
|
401
|
+
});
|
|
402
|
+
return by;
|
|
403
|
+
}, "decider");
|
|
390
404
|
var documentKnowledge = /* @__PURE__ */ __name((store, folder) => {
|
|
391
405
|
const document = /* @__PURE__ */ __name(async (principal, ref) => {
|
|
392
406
|
const note = await store.notes.resolveNote(ref);
|
|
@@ -449,13 +463,13 @@ var documentKnowledge = /* @__PURE__ */ __name((store, folder) => {
|
|
|
449
463
|
}, "links"),
|
|
450
464
|
addLink: /* @__PURE__ */ __name(async (principal, ref, input) => {
|
|
451
465
|
await document(principal, ref);
|
|
452
|
-
return store.notes.addLink({ ...input, from: ref, origin: "owner" });
|
|
466
|
+
return store.notes.addLink({ ...input, from: ref, origin: input.by === "owner" ? "owner" : "suggested" });
|
|
453
467
|
}, "addLink"),
|
|
454
|
-
removeLink: /* @__PURE__ */ __name(async (principal, ref, id) => {
|
|
468
|
+
removeLink: /* @__PURE__ */ __name(async (principal, ref, id, by) => {
|
|
455
469
|
const links = await port.links(principal, ref);
|
|
456
470
|
if (!links.some((link) => link.id === id && link.origin === "owner"))
|
|
457
471
|
throw new CliError("not_found", "owner link is not attached to this document");
|
|
458
|
-
return store.notes.removeLink(id);
|
|
472
|
+
return store.notes.removeLink(id, by);
|
|
459
473
|
}, "removeLink"),
|
|
460
474
|
notes: /* @__PURE__ */ __name(async (principal, ref, options) => {
|
|
461
475
|
await document(principal, ref);
|
|
@@ -478,18 +492,18 @@ var documentKnowledge = /* @__PURE__ */ __name((store, folder) => {
|
|
|
478
492
|
await document(principal, ref);
|
|
479
493
|
if (input.supersedes)
|
|
480
494
|
await memoryFor(principal, ref, input.supersedes);
|
|
481
|
-
return store.memories.add({ ...input, subject: ref, evidence: [ref], author: input.author
|
|
495
|
+
return store.memories.add({ ...input, subject: ref, evidence: [ref], author: writer(input.author) });
|
|
482
496
|
}, "addMemory"),
|
|
483
497
|
memories: /* @__PURE__ */ __name(async (principal, ref, options) => {
|
|
484
498
|
await document(principal, ref);
|
|
485
499
|
return store.memories.list({ ...options, subject: ref });
|
|
486
500
|
}, "memories"),
|
|
487
|
-
memory: /* @__PURE__ */ __name(async (principal, ref, memoryRef, action = "show") => {
|
|
501
|
+
memory: /* @__PURE__ */ __name(async (principal, ref, memoryRef, action = "show", by) => {
|
|
488
502
|
const memory = await memoryFor(principal, ref, memoryRef);
|
|
489
503
|
if (action === "confirm")
|
|
490
|
-
return store.memories.confirm(memory.ref);
|
|
504
|
+
return store.memories.confirm(memory.ref, decider(by));
|
|
491
505
|
if (action === "stale")
|
|
492
|
-
return store.memories.markStale(memory.ref);
|
|
506
|
+
return store.memories.markStale(memory.ref, decider(by));
|
|
493
507
|
return memory;
|
|
494
508
|
}, "memory"),
|
|
495
509
|
searchMemories: /* @__PURE__ */ __name(async (principal, ref, query, scope) => {
|
|
@@ -504,7 +518,7 @@ var documentKnowledge = /* @__PURE__ */ __name((store, folder) => {
|
|
|
504
518
|
return store.facts.add({
|
|
505
519
|
type,
|
|
506
520
|
statement,
|
|
507
|
-
by: by
|
|
521
|
+
by: writer(by),
|
|
508
522
|
...supersedes === void 0 ? {} : { supersedes },
|
|
509
523
|
...occurredAt === void 0 ? {} : { occurredAt },
|
|
510
524
|
subject: ref,
|
|
@@ -516,19 +530,19 @@ var documentKnowledge = /* @__PURE__ */ __name((store, folder) => {
|
|
|
516
530
|
await document(principal, ref);
|
|
517
531
|
return store.facts.list({ ...options, subject: ref });
|
|
518
532
|
}, "facts"),
|
|
519
|
-
fact: /* @__PURE__ */ __name(async (principal, ref, factRef, action = "show") => {
|
|
533
|
+
fact: /* @__PURE__ */ __name(async (principal, ref, factRef, action = "show", by) => {
|
|
520
534
|
const fact = await factFor(principal, ref, factRef);
|
|
521
535
|
if (action === "confirm")
|
|
522
|
-
return store.facts.accept(fact.ref);
|
|
536
|
+
return store.facts.accept(fact.ref, decider(by));
|
|
523
537
|
if (action === "reverse")
|
|
524
|
-
return store.facts.reverse(fact.ref);
|
|
538
|
+
return store.facts.reverse(fact.ref, decider(by));
|
|
525
539
|
return fact;
|
|
526
540
|
}, "fact")
|
|
527
541
|
};
|
|
528
542
|
return port;
|
|
529
543
|
}, "documentKnowledge");
|
|
530
544
|
|
|
531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/documents/markdown-blocks.js
|
|
532
546
|
var parser;
|
|
533
547
|
var loadParser = /* @__PURE__ */ __name(() => parser ??= Promise.all([
|
|
534
548
|
import("./mdast-util-from-markdown-FXEPSNER.js"),
|
|
@@ -653,7 +667,7 @@ var placedMarkdownBlocks = /* @__PURE__ */ __name(async (markdown) => {
|
|
|
653
667
|
return blocks(tree.children);
|
|
654
668
|
}, "placedMarkdownBlocks");
|
|
655
669
|
|
|
656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/services/documents/markdown-splice.js
|
|
657
671
|
var escapeText = /* @__PURE__ */ __name((text) => text.replace(/[\\`*_[\]<>~|]/g, "\\$&"), "escapeText");
|
|
658
672
|
var codeSpan = /* @__PURE__ */ __name((text) => {
|
|
659
673
|
const longest = (text.match(/`+/g) ?? []).reduce((most, run) => Math.max(most, run.length), 0);
|
|
@@ -839,15 +853,15 @@ var columnsBefore = /* @__PURE__ */ __name((placed, index) => {
|
|
|
839
853
|
return columns;
|
|
840
854
|
}, "columnsBefore");
|
|
841
855
|
|
|
842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
856
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
|
|
843
857
|
import { watch } from "node:fs";
|
|
844
858
|
|
|
845
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
|
|
846
860
|
import { createHash as createHash2 } from "node:crypto";
|
|
847
861
|
import { mkdirSync, readFileSync } from "node:fs";
|
|
848
862
|
import { join as join2 } from "node:path";
|
|
849
863
|
|
|
850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
864
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/services/documents/push.js
|
|
851
865
|
import { createHash, randomUUID } from "node:crypto";
|
|
852
866
|
import { createReadStream } from "node:fs";
|
|
853
867
|
import { chmod, readdir, rename, rm, stat, writeFile } from "node:fs/promises";
|
|
@@ -1099,7 +1113,7 @@ var pushDocuments = /* @__PURE__ */ __name(async (options) => {
|
|
|
1099
1113
|
return result;
|
|
1100
1114
|
}, "pushDocuments");
|
|
1101
1115
|
|
|
1102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/services/documents/mirrors.js
|
|
1103
1117
|
var mirrorId = /* @__PURE__ */ __name((root, folder) => createHash2("sha256").update(JSON.stringify([root, folder])).digest("hex").slice(0, 8), "mirrorId");
|
|
1104
1118
|
var ID = pipe(string(), regex(/^[A-Za-z0-9_-]{1,200}$/));
|
|
1105
1119
|
var stateSchema = /* @__PURE__ */ __name((kinds) => object({
|
|
@@ -1221,7 +1235,7 @@ var syncMirrors = /* @__PURE__ */ __name(async (options) => {
|
|
|
1221
1235
|
};
|
|
1222
1236
|
}, "syncMirrors");
|
|
1223
1237
|
|
|
1224
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1238
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/services/documents/mirror-watch.js
|
|
1225
1239
|
var sleep = /* @__PURE__ */ __name((milliseconds, signal) => new Promise((resolve) => {
|
|
1226
1240
|
const finish = /* @__PURE__ */ __name(() => {
|
|
1227
1241
|
clearTimeout(timer);
|
|
@@ -1360,7 +1374,7 @@ async function* watchMirrors(sync, options) {
|
|
|
1360
1374
|
}
|
|
1361
1375
|
__name(watchMirrors, "watchMirrors");
|
|
1362
1376
|
|
|
1363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1377
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/services/documents/proposals.js
|
|
1364
1378
|
var extractDocumentMemories = /* @__PURE__ */ __name(async (options) => {
|
|
1365
1379
|
const source = options.read();
|
|
1366
1380
|
const text = options.tab ? source.snapshot.tabs.find((tab) => tab.id === options.tab)?.text : source.snapshot.text;
|
|
@@ -1410,10 +1424,10 @@ Snapshot: ${source.hash}`;
|
|
|
1410
1424
|
};
|
|
1411
1425
|
}, "extractDocumentMemories");
|
|
1412
1426
|
|
|
1413
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
|
|
1414
1428
|
import { createHash as createHash4 } from "node:crypto";
|
|
1415
1429
|
|
|
1416
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/documents/scope.js
|
|
1417
1431
|
var within = /* @__PURE__ */ __name((file, roots, folders, seen = /* @__PURE__ */ new Set()) => {
|
|
1418
1432
|
if (file.trashed)
|
|
1419
1433
|
return false;
|
|
@@ -1428,7 +1442,7 @@ var within = /* @__PURE__ */ __name((file, roots, folders, seen = /* @__PURE__ *
|
|
|
1428
1442
|
});
|
|
1429
1443
|
}, "within");
|
|
1430
1444
|
|
|
1431
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/documents/catalog.js
|
|
1432
1446
|
var catalogFiles = /* @__PURE__ */ __name((state, roots) => {
|
|
1433
1447
|
const folders = state.pending?.folders ?? state.folders;
|
|
1434
1448
|
const files = new Map(Object.values(state.documents).map((doc) => [doc.metadata.id, doc.metadata]));
|
|
@@ -1446,7 +1460,7 @@ var catalogFiles = /* @__PURE__ */ __name((state, roots) => {
|
|
|
1446
1460
|
return [...files.values()].filter((file) => within(file, roots, folders));
|
|
1447
1461
|
}, "catalogFiles");
|
|
1448
1462
|
|
|
1449
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1463
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/services/documents/plan.js
|
|
1450
1464
|
import { createHash as createHash3 } from "node:crypto";
|
|
1451
1465
|
var scopeHash = /* @__PURE__ */ __name((roots) => createHash3("sha256").update(JSON.stringify([...roots].sort())).digest("hex"), "scopeHash");
|
|
1452
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");
|
|
@@ -1630,7 +1644,7 @@ var planDocuments = /* @__PURE__ */ __name(async (options, source, state, roots,
|
|
|
1630
1644
|
return { scope, cursor: finalCursor, folders: scopedFolders, jobs, skipped };
|
|
1631
1645
|
}, "planDocuments");
|
|
1632
1646
|
|
|
1633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1647
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/services/documents/sync.js
|
|
1634
1648
|
var MAX_PICTURE_BYTES = 25 * 1024 * 1024;
|
|
1635
1649
|
var SAVE_EVERY_MS2 = 2e3;
|
|
1636
1650
|
var SAVE_EVERY_ITEMS = 25;
|
|
@@ -1656,7 +1670,7 @@ var syncDocuments = /* @__PURE__ */ __name(async (options) => {
|
|
|
1656
1670
|
coverage: "selected folders only; unsupported files are reported",
|
|
1657
1671
|
...profile.picture_search ? { pictures: 0 } : {}
|
|
1658
1672
|
};
|
|
1659
|
-
let
|
|
1673
|
+
let writer2;
|
|
1660
1674
|
let flush;
|
|
1661
1675
|
try {
|
|
1662
1676
|
if (profile.roots.length && (!source || await source.identity() !== profile.principal))
|
|
@@ -1713,9 +1727,9 @@ var syncDocuments = /* @__PURE__ */ __name(async (options) => {
|
|
|
1713
1727
|
}
|
|
1714
1728
|
if (!source)
|
|
1715
1729
|
throw new CliError("configuration_error", "a pending picture requires source sign-in");
|
|
1716
|
-
if (!
|
|
1730
|
+
if (!writer2) {
|
|
1717
1731
|
try {
|
|
1718
|
-
|
|
1732
|
+
writer2 = await index.openPictures();
|
|
1719
1733
|
} catch (error) {
|
|
1720
1734
|
if (!isCliError(error) || error.code !== "not_found")
|
|
1721
1735
|
throw error;
|
|
@@ -1730,7 +1744,7 @@ var syncDocuments = /* @__PURE__ */ __name(async (options) => {
|
|
|
1730
1744
|
result.pictures_too_large = (result.pictures_too_large ?? 0) + 1;
|
|
1731
1745
|
return;
|
|
1732
1746
|
}
|
|
1733
|
-
if (await
|
|
1747
|
+
if (await writer2.save(entry.reference, bytes) === "saved")
|
|
1734
1748
|
result.pictures = (result.pictures ?? 0) + 1;
|
|
1735
1749
|
entry.picture = "saved";
|
|
1736
1750
|
}, "savePictureOf");
|
|
@@ -1832,7 +1846,7 @@ var syncDocuments = /* @__PURE__ */ __name(async (options) => {
|
|
|
1832
1846
|
return result;
|
|
1833
1847
|
} finally {
|
|
1834
1848
|
flush?.();
|
|
1835
|
-
await
|
|
1849
|
+
await writer2?.close();
|
|
1836
1850
|
}
|
|
1837
1851
|
}, "syncDocuments");
|
|
1838
1852
|
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
visibleControls
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HIP43OGZ.js";
|
|
6
6
|
import {
|
|
7
7
|
BASE_REASONS,
|
|
8
8
|
COMMON_DETAILS,
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
CRASH_REASON,
|
|
11
11
|
stepOf,
|
|
12
12
|
writes
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3U22QTU6.js";
|
|
14
14
|
import {
|
|
15
15
|
errorCodes,
|
|
16
16
|
isCliError
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-EBLA7GXY.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/exit-codes.js
|
|
23
23
|
var EXIT_CODES = {
|
|
24
24
|
validation_error: 2,
|
|
25
25
|
configuration_error: 3,
|
|
@@ -39,7 +39,7 @@ var EXIT_CODES = {
|
|
|
39
39
|
var exitCodeFor = /* @__PURE__ */ __name((code) => EXIT_CODES[code], "exitCodeFor");
|
|
40
40
|
var GENERIC_FAILURE = 1;
|
|
41
41
|
|
|
42
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
42
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/failure.js
|
|
43
43
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
44
44
|
if (isCliError(failure))
|
|
45
45
|
return failure;
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-EBLA7GXY.js";
|
|
9
9
|
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.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|
|
@@ -18,9 +18,9 @@ import {
|
|
|
18
18
|
strictObject,
|
|
19
19
|
string,
|
|
20
20
|
unknown
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3U22QTU6.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
24
24
|
var text = string();
|
|
25
25
|
var id = pipe(string(), minLength(1));
|
|
26
26
|
var time = isoTime;
|
|
@@ -44,7 +44,37 @@ var author = strictObject({
|
|
|
44
44
|
name: nullable(text)
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
48
|
+
var organization = strictObject({
|
|
49
|
+
id,
|
|
50
|
+
ref: reference,
|
|
51
|
+
kind: picklist(["company", "team", "family", "community"]),
|
|
52
|
+
name: text,
|
|
53
|
+
scope: picklist(["personal", "work"]),
|
|
54
|
+
created_at: time
|
|
55
|
+
});
|
|
56
|
+
var project = strictObject({
|
|
57
|
+
id,
|
|
58
|
+
ref: reference,
|
|
59
|
+
key: text,
|
|
60
|
+
name: text,
|
|
61
|
+
kind: picklist(["project", "inbox"]),
|
|
62
|
+
type: picklist(["work", "client", "personal", "oss", "other"]),
|
|
63
|
+
organization_id: nullable(id),
|
|
64
|
+
scope: picklist(["personal", "work"]),
|
|
65
|
+
created_at: time
|
|
66
|
+
});
|
|
67
|
+
var reminder = strictObject({
|
|
68
|
+
id,
|
|
69
|
+
task: text,
|
|
70
|
+
due_at: time,
|
|
71
|
+
timezone: text,
|
|
72
|
+
state: picklist(["pending", "leased", "delivered", "cancelled"]),
|
|
73
|
+
revision: number(),
|
|
74
|
+
receipt: nullable(text)
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
48
78
|
var link = {
|
|
49
79
|
target_text: nullable(text),
|
|
50
80
|
kind: text,
|
|
@@ -85,36 +115,6 @@ var note = strictObject({
|
|
|
85
115
|
backlinks: optional(array(strictObject({ from: reference, ...link })))
|
|
86
116
|
});
|
|
87
117
|
|
|
88
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.546.0_@wirecat+cli-base@0.73.0_commander@15.0.0_esbuild@0.28.2_type_6245070bff0a7c29971e74a96fde145c/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
89
|
-
var organization = strictObject({
|
|
90
|
-
id,
|
|
91
|
-
ref: reference,
|
|
92
|
-
kind: picklist(["company", "team", "family", "community"]),
|
|
93
|
-
name: text,
|
|
94
|
-
scope: picklist(["personal", "work"]),
|
|
95
|
-
created_at: time
|
|
96
|
-
});
|
|
97
|
-
var project = strictObject({
|
|
98
|
-
id,
|
|
99
|
-
ref: reference,
|
|
100
|
-
key: text,
|
|
101
|
-
name: text,
|
|
102
|
-
kind: picklist(["project", "inbox"]),
|
|
103
|
-
type: picklist(["work", "client", "personal", "oss", "other"]),
|
|
104
|
-
organization_id: nullable(id),
|
|
105
|
-
scope: picklist(["personal", "work"]),
|
|
106
|
-
created_at: time
|
|
107
|
-
});
|
|
108
|
-
var reminder = strictObject({
|
|
109
|
-
id,
|
|
110
|
-
task: text,
|
|
111
|
-
due_at: time,
|
|
112
|
-
timezone: text,
|
|
113
|
-
state: picklist(["pending", "leased", "delivered", "cancelled"]),
|
|
114
|
-
revision: number(),
|
|
115
|
-
receipt: nullable(text)
|
|
116
|
-
});
|
|
117
|
-
|
|
118
118
|
export {
|
|
119
119
|
text,
|
|
120
120
|
id,
|
|
@@ -125,8 +125,8 @@ export {
|
|
|
125
125
|
providerMetadata,
|
|
126
126
|
evidenceSource,
|
|
127
127
|
author,
|
|
128
|
-
note,
|
|
129
128
|
organization,
|
|
130
129
|
project,
|
|
131
|
-
reminder
|
|
130
|
+
reminder,
|
|
131
|
+
note
|
|
132
132
|
};
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
singleLine
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HIP43OGZ.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/describe.js
|
|
11
11
|
var DESCRIBE_FORMAT = 1;
|
|
12
12
|
var describeAnswer = /* @__PURE__ */ __name((tool) => ({
|
|
13
13
|
wcat_describe: DESCRIBE_FORMAT,
|
|
@@ -36,7 +36,7 @@ var parseDescribe = /* @__PURE__ */ __name((text) => {
|
|
|
36
36
|
};
|
|
37
37
|
}, "parseDescribe");
|
|
38
38
|
|
|
39
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
39
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/names.js
|
|
40
40
|
var FIRST_PARTY_TOOLS = [
|
|
41
41
|
{ name: "tg", package: "@wirecat/tg-cli" },
|
|
42
42
|
{ name: "max", package: "@wirecat/max-cli" },
|
|
@@ -59,7 +59,7 @@ var PROGRAM_PREFIX = "wcat-";
|
|
|
59
59
|
var DESCRIBE_FLAG = "--wcat-describe";
|
|
60
60
|
var DISPATCH_FLAG = "--wcat-dispatch";
|
|
61
61
|
|
|
62
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
62
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/wcat/shim.js
|
|
63
63
|
import { lstatSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
64
64
|
import { join } from "node:path";
|
|
65
65
|
var SHIM_FORMAT = 1;
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash,
|
|
31
31
|
currentCaller
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-EHEZSV6I.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -541,7 +541,7 @@ function toError(value) {
|
|
|
541
541
|
}
|
|
542
542
|
__name(toError, "toError");
|
|
543
543
|
|
|
544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.561.0_@wirecat+cli-base@0.75.2_commander@15.0.0_esbuild@0.28.2_type_ef328e5cd047e3c19bb2231542618c08/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
545
545
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
546
546
|
const client = caller?.agent?.client?.name;
|
|
547
547
|
if (client && client !== "unknown")
|