@wirecat/drive-cli 0.69.0 → 0.70.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/contracts/wirecat.json +14 -13
- package/dist/age.d.ts +0 -36
- package/dist/age.d.ts.map +1 -1
- package/dist/age.js +0 -22
- package/dist/age.js.map +1 -1
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-B4A737YW.js → all-profiles-FW3GK3QO.js} +13 -13
- package/dist/bundle/{anthropic-RZGPDESM.js → anthropic-QVKJT3II.js} +8 -8
- package/dist/bundle/{app-server-OWEW7DY5.js → app-server-QU73RD5R.js} +66 -58
- package/dist/bundle/{bun-V5QLYBZU.js → bun-5XCD5CBB.js} +2 -2
- package/dist/bundle/{bun-sqlite-KHLHXXGH.js → bun-sqlite-TIGSVNSV.js} +9 -9
- package/dist/bundle/{chunk-GK6KXBL6.js → chunk-2SBC4DVV.js} +4 -4
- package/dist/bundle/{chunk-E7URRFBB.js → chunk-3AHBZP33.js} +10 -15
- package/dist/bundle/{chunk-V4FMN5A6.js → chunk-3CHW7JGR.js} +17 -17
- package/dist/bundle/chunk-3TCMANIM.js +387 -0
- package/dist/bundle/{chunk-6EL5AVXX.js → chunk-3UWRAIWA.js} +4 -4
- package/dist/bundle/{chunk-2DS2TDGW.js → chunk-3UZ4OH22.js} +18 -18
- package/dist/bundle/{chunk-WQOGHND4.js → chunk-4WK26MPY.js} +1 -1
- package/dist/bundle/{chunk-AD7VI3XU.js → chunk-54BQWRJL.js} +7 -7
- package/dist/bundle/{chunk-EA2OB75T.js → chunk-54NDYVZA.js} +1 -1
- package/dist/bundle/{chunk-4YECZ6CN.js → chunk-5JTB4URG.js} +12 -12
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-66PL7P4C.js} +1 -1
- package/dist/bundle/{chunk-BVVXYZSU.js → chunk-6BMTW5A6.js} +9 -9
- package/dist/bundle/{chunk-6D44YQ5X.js → chunk-6DPOWBKA.js} +6 -6
- package/dist/bundle/{chunk-AMQGKMLZ.js → chunk-7C5KENNU.js} +3 -3
- package/dist/bundle/chunk-7DJNURKV.js +823 -0
- package/dist/bundle/{chunk-5TK2YQCO.js → chunk-7IBENBCK.js} +2 -2
- package/dist/bundle/chunk-7QSRODXM.js +259 -0
- package/dist/bundle/{chunk-HCZYJMBP.js → chunk-ABZ2NYDT.js} +1 -1
- package/dist/bundle/{chunk-RLGQMMYE.js → chunk-AV5UKJZM.js} +35 -13
- package/dist/bundle/{chunk-533XOW74.js → chunk-BBFXQPKD.js} +3 -3
- package/dist/bundle/{chunk-ZUG67442.js → chunk-BBRMDMIR.js} +3 -3
- package/dist/bundle/{chunk-LRCSDAYK.js → chunk-BD2K2ONK.js} +4 -4
- package/dist/bundle/{chunk-CAQ5GW3A.js → chunk-BFKFKDPC.js} +1 -1
- package/dist/bundle/{chunk-OOIAJRKQ.js → chunk-BXPC5TFG.js} +2 -2
- package/dist/bundle/chunk-DHX27E5M.js +31 -0
- package/dist/bundle/{chunk-L342KHIZ.js → chunk-DR57KDAY.js} +6 -6
- package/dist/bundle/{chunk-XUHQ7DVT.js → chunk-DVI72ZQG.js} +1 -1
- package/dist/bundle/{chunk-N4ACIIQB.js → chunk-DVVUJ254.js} +2 -2
- package/dist/bundle/{chunk-MHXZ62CU.js → chunk-EDO5LZVF.js} +1 -1
- package/dist/bundle/{chunk-LUZRVBQR.js → chunk-EG62WVR2.js} +6 -6
- package/dist/bundle/{chunk-WNMPIRRF.js → chunk-F5KJWRF5.js} +3 -3
- package/dist/bundle/{chunk-U3RXH6RY.js → chunk-FADAOLGB.js} +4 -4
- package/dist/bundle/{chunk-4ZFO2CVH.js → chunk-FCSHWUMW.js} +5 -5
- package/dist/bundle/{chunk-GHFBT2ZM.js → chunk-FN3RXBO7.js} +6 -6
- package/dist/bundle/{chunk-GTDCP5OG.js → chunk-FONIFRYI.js} +4 -4
- package/dist/bundle/{chunk-IQ2QU2X6.js → chunk-FVTKFIQH.js} +981 -589
- package/dist/bundle/{chunk-F5UUJU6R.js → chunk-FYPW7NMH.js} +4 -4
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-GA3URWIF.js} +1 -1
- package/dist/bundle/{chunk-HEBZCKMU.js → chunk-GAHIHE4K.js} +1778 -2232
- package/dist/bundle/{chunk-4J5GJJ2I.js → chunk-GJZSVSV3.js} +2 -2
- package/dist/bundle/{chunk-VUPWDCYV.js → chunk-GK3BJMGK.js} +1 -1
- package/dist/bundle/{chunk-6XNTELM5.js → chunk-GPDPEHYX.js} +1 -1
- package/dist/bundle/{chunk-CU6RATZH.js → chunk-GV5DGHSA.js} +4 -4
- package/dist/bundle/{chunk-JRFKCYMW.js → chunk-HHAZ6DCY.js} +23 -6
- package/dist/bundle/{chunk-OUM4ZO53.js → chunk-HK225DAG.js} +1 -1
- package/dist/bundle/{chunk-5SJZDEIO.js → chunk-HRATXUFH.js} +20 -20
- package/dist/bundle/{chunk-TZ75K6R7.js → chunk-HWUPU6WX.js} +8 -8
- package/dist/bundle/{chunk-3RLRJHAI.js → chunk-HYXXMSVD.js} +7688 -8301
- package/dist/bundle/{chunk-EL2E3ABX.js → chunk-I7YSHUPW.js} +13 -13
- package/dist/bundle/{chunk-EWUQIUTB.js → chunk-IFTX7AQU.js} +5 -5
- package/dist/bundle/{chunk-BBJVV4E2.js → chunk-IGNIUDI3.js} +61 -38
- package/dist/bundle/{chunk-7JKECODO.js → chunk-ILAQIBEO.js} +1 -11
- package/dist/bundle/{chunk-SY2HLH5R.js → chunk-KSJAFMU5.js} +57 -23
- package/dist/bundle/{chunk-PB6NWKH3.js → chunk-LINBDWJK.js} +2 -2
- package/dist/bundle/{chunk-CZ4UEXCE.js → chunk-LMJBQFW6.js} +6 -6
- package/dist/bundle/{chunk-IJCUAKR5.js → chunk-ML3R2UHV.js} +4 -4
- package/dist/bundle/{chunk-2Q4CB4EI.js → chunk-MXNQZAJQ.js} +2 -2
- package/dist/bundle/{chunk-WOUIHZRI.js → chunk-NP7LJATI.js} +15 -67
- package/dist/bundle/chunk-OY7TNUEC.js +16 -0
- package/dist/bundle/{chunk-2VFAXC6O.js → chunk-P77FL6RY.js} +18 -18
- package/dist/bundle/{chunk-I55XYREN.js → chunk-P7PLKNPX.js} +993 -2512
- package/dist/bundle/{chunk-3URYKAJP.js → chunk-PAPY6Q6H.js} +1 -1
- package/dist/bundle/{chunk-5B5NOAIA.js → chunk-PN4JYURZ.js} +45 -45
- package/dist/bundle/{chunk-ZBYKCVSV.js → chunk-PR7XD2DI.js} +2 -2
- package/dist/bundle/{chunk-UPCEHSIZ.js → chunk-Q5C6YKAY.js} +21 -16
- package/dist/bundle/{chunk-SEJBS7SI.js → chunk-QBAOIMVB.js} +1 -1
- package/dist/bundle/{chunk-KUQDBWPU.js → chunk-RCTOWLCD.js} +31 -32
- package/dist/bundle/{chunk-22SH77TG.js → chunk-REM5WHHQ.js} +64 -64
- package/dist/bundle/{chunk-Y2QVNVHK.js → chunk-RHSBXOQM.js} +1 -1
- package/dist/bundle/{chunk-3YKAFLXY.js → chunk-RLNZ7NX5.js} +2 -2
- package/dist/bundle/chunk-RQNRYF6D.js +170 -0
- package/dist/bundle/{chunk-PV3AWPHR.js → chunk-SONPLYV7.js} +5 -5
- package/dist/bundle/{chunk-RWQ7T4Y5.js → chunk-T5D4OGDC.js} +2 -2
- package/dist/bundle/{chunk-25FT44S3.js → chunk-TGS5VPJD.js} +282 -525
- package/dist/bundle/chunk-TNKQDS5A.js +335 -0
- package/dist/bundle/{chunk-NVDR72GP.js → chunk-VVN6GHAZ.js} +60 -81
- package/dist/bundle/{chunk-CDSB7WVG.js → chunk-WJK6KTCS.js} +8 -8
- package/dist/bundle/{chunk-T6X6EZ5N.js → chunk-WWE5GO6G.js} +3 -3
- package/dist/bundle/{chunk-SYUXKV2E.js → chunk-XOL346TJ.js} +2 -2
- package/dist/bundle/{chunk-T4FMXDDV.js → chunk-XZBA6FVH.js} +3 -3
- package/dist/bundle/chunk-YCL3SK4T.js +1978 -0
- package/dist/bundle/{chunk-XVH3WZSZ.js → chunk-YRUR3E3E.js} +53 -53
- package/dist/bundle/{chunk-QJGFQRTL.js → chunk-YZPE72GE.js} +12 -12
- package/dist/bundle/{chunk-O6PD7RZY.js → chunk-ZCXWV4XO.js} +4 -4
- package/dist/bundle/{chunk-376ZGVUZ.js → chunk-ZHZYGY5R.js} +4 -4
- package/dist/bundle/{cli-BS4L3HAP.js → cli-K4D4DIGQ.js} +88 -69
- package/dist/bundle/command-contract-V3F452QI.js +43 -0
- package/dist/bundle/{command-server-entry-CJ2CV7ZV.js → command-server-entry-WREK3QBB.js} +33 -30
- package/dist/bundle/decode-SEETPKBH.js +299 -0
- package/dist/bundle/{dispatch-WBEOHZDV.js → dispatch-SQCEURVK.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-QIXLXS3G.js → echarts-WZ5RKFCX.js} +2 -2
- package/dist/bundle/{embed-YNZW5X6M.js → embed-B2UCRZZR.js} +9 -9
- package/dist/bundle/{embedder-LRC2PKTS.js → embedder-4R6Z7G7L.js} +12 -12
- package/dist/bundle/entry-ORZYRJ5N.js +25 -0
- package/dist/bundle/{failure-X6PSLVSO.js → failure-CYNXH3RQ.js} +4 -4
- package/dist/bundle/first-run-KAKA6KBY.js +31 -0
- package/dist/bundle/first-screen-R645UHRH.js +41 -0
- package/dist/bundle/google-BSO3YB7N.js +45 -0
- package/dist/bundle/{google-api-7JDZDCWE.js → google-api-SAND2F7L.js} +70 -62
- package/dist/bundle/grants-PLNFYARD.js +118 -0
- package/dist/bundle/{identity-E43WKN5F.js → identity-JVVGS4U6.js} +6 -6
- package/dist/bundle/{instructions-MD2RZT5Z.js → instructions-JSMTSB22.js} +1 -1
- package/dist/bundle/{login-RBDJPQAG.js → login-6WG3YBDU.js} +78 -70
- package/dist/bundle/{mcp-TDKGDB4V.js → mcp-VFIOZDVY.js} +2 -2
- package/dist/bundle/meeting-combined-SUKMFK3F.js +27 -0
- package/dist/bundle/meeting-model-S4YGKIFI.js +29 -0
- package/dist/bundle/meeting-semantic-5U7JQCFF.js +25 -0
- package/dist/bundle/{node-IEVT2FSJ.js → node-VJMVHOWD.js} +2 -2
- package/dist/bundle/{node-sqlite-IENH4TRX.js → node-sqlite-DCNT3HVE.js} +10 -10
- package/dist/bundle/oauth-KCMNQ3ZP.js +22 -0
- package/dist/bundle/{open-TZ5H7NYM.js → open-NFOEHVW7.js} +8 -8
- package/dist/bundle/{openai-XF2KB7W2.js → openai-D47WY7EC.js} +32 -30
- package/dist/bundle/{process-6Q23D3TO.js → process-Q2FRU5VA.js} +1 -1
- package/dist/bundle/{program-D5XWOHV5.js → program-T2AJJQEM.js} +1332 -1331
- package/dist/bundle/{prompt-KUC5D4GX.js → prompt-YJSDABXN.js} +8 -8
- package/dist/bundle/{reasons-KSYP5VDJ.js → reasons-WEHPCSJX.js} +5 -5
- package/dist/bundle/{recognize-DPFW7HO3.js → recognize-6OBEIEB3.js} +7 -7
- package/dist/bundle/{remote-MODTSUNH.js → remote-3SL2QJ7T.js} +13 -13
- package/dist/bundle/{rerank-JK7SERLE.js → rerank-L6F5SLIB.js} +10 -10
- package/dist/bundle/{serve-BV2WHZLW.js → serve-GYSWIWH4.js} +12 -12
- package/dist/bundle/server-BI46BSRE.js +80 -0
- package/dist/bundle/{server-N3WPEU7Z.js → server-GWWP3RIT.js} +54 -46
- package/dist/bundle/{services-SV6CFUCS.js → services-BDQBRXT5.js} +79 -54
- package/dist/bundle/{sqlite-runtime-RZ5PLZVQ.js → sqlite-runtime-ZSZGAUYB.js} +9 -9
- package/dist/bundle/{start-C6EXYXAL.js → start-BJ275RUK.js} +7 -7
- package/dist/bundle/{state-RAZIREVG.js → state-HLNGFI2T.js} +9 -9
- package/dist/bundle/{store-2DLGLYS6.js → store-I43KZNJW.js} +31 -26
- package/dist/bundle/{store-DQKJKX2G.js → store-OSRTGYGI.js} +23 -19
- package/dist/bundle/store-maintenance-command-FO7LEVSL.js +72 -0
- package/dist/bundle/tokens-DB7O7QNB.js +118 -0
- package/dist/catalog.d.ts +0 -28
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +0 -82
- package/dist/catalog.js.map +1 -1
- package/dist/commands/catalog.d.ts +3 -8
- package/dist/commands/catalog.d.ts.map +1 -1
- package/dist/commands/catalog.js +36 -109
- package/dist/commands/catalog.js.map +1 -1
- package/dist/commands/context.d.ts +3 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +20 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +30 -72
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/folders.d.ts +1 -1
- package/dist/commands/folders.d.ts.map +1 -1
- package/dist/commands/folders.js +45 -48
- package/dist/commands/folders.js.map +1 -1
- package/dist/commands/knowledge.d.ts +4 -21
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +3 -241
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/commands/mirrors.d.ts +2 -2
- package/dist/commands/mirrors.d.ts.map +1 -1
- package/dist/commands/mirrors.js +46 -202
- package/dist/commands/mirrors.js.map +1 -1
- package/dist/commands/search.d.ts +1 -3
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +20 -42
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +36 -53
- package/dist/commands/sync.js.map +1 -1
- package/dist/contract-overrides.d.ts +0 -2
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +0 -317
- package/dist/contract-overrides.js.map +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.d.ts.map +1 -1
- package/dist/knowledge.js +4 -3
- package/dist/knowledge.js.map +1 -1
- package/dist/list-queries.d.ts +0 -31
- package/dist/list-queries.d.ts.map +1 -1
- package/dist/list-queries.js +0 -36
- package/dist/list-queries.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -3
- package/dist/program.js.map +1 -1
- package/dist/provider-json.d.ts.map +1 -1
- package/dist/provider-json.js +5 -5
- package/dist/provider-json.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -10
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-HYURWSD6.js +0 -40
- package/dist/bundle/decode-E2NM5SSM.js +0 -165
- package/dist/bundle/entry-2IMSWRJU.js +0 -25
- package/dist/bundle/first-run-7CPHQDM5.js +0 -30
- package/dist/bundle/first-screen-OKZ7GMFR.js +0 -38
- package/dist/bundle/google-WDKDBDD4.js +0 -45
- package/dist/bundle/grants-AU25GWKF.js +0 -110
- package/dist/bundle/oauth-3JGSN47Z.js +0 -22
- package/dist/bundle/server-6YDI4Y36.js +0 -72
- package/dist/bundle/store-maintenance-command-UJ5F5L4H.js +0 -64
- package/dist/bundle/tokens-LY3WML55.js +0 -110
- package/dist/knowledge-query.d.ts +0 -77
- package/dist/knowledge-query.d.ts.map +0 -1
- package/dist/knowledge-query.js +0 -104
- package/dist/knowledge-query.js.map +0 -1
- package/dist/bundle/{chunk-XWBPP2HX.js → chunk-ZI3YTXSF.js} +0 -0
- package/dist/bundle/{mdast-util-from-markdown-CE73EWJ2.js → mdast-util-from-markdown-FXEPSNER.js} +3 -3
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { type QueryWords } from "@wirecat/cli-core/cli";
|
|
2
|
-
import { type Fact, type Memory } from "@wirecat/cli-core/store";
|
|
3
|
-
export declare const FACT_QUERY: {
|
|
4
|
-
readonly entity: "fact";
|
|
5
|
-
readonly backend: "native";
|
|
6
|
-
readonly fields: readonly [import("@wirecat/cli-base/query").FieldSpec, import("@wirecat/cli-base/query").FieldSpec];
|
|
7
|
-
};
|
|
8
|
-
export declare const MEMORY_QUERY: {
|
|
9
|
-
readonly entity: "memory";
|
|
10
|
-
readonly backend: "native";
|
|
11
|
-
readonly fields: readonly [import("@wirecat/cli-base/query").FieldSpec, import("@wirecat/cli-base/query").FieldSpec, import("@wirecat/cli-base/query").FieldSpec];
|
|
12
|
-
};
|
|
13
|
-
export declare const MEMORY_SEARCH_QUERY: {
|
|
14
|
-
readonly entity: "memory";
|
|
15
|
-
readonly backend: "native";
|
|
16
|
-
readonly fields: readonly [import("@wirecat/cli-base/query").FieldSpec, import("@wirecat/cli-base/query").FieldSpec];
|
|
17
|
-
};
|
|
18
|
-
/** A fact as cli-core's `fact` entity. */
|
|
19
|
-
export declare const factItem: ({ type, statement, source, confirmedBy, ...fact }: Fact) => {
|
|
20
|
-
ref: string;
|
|
21
|
-
id: string;
|
|
22
|
-
kind: "decision" | "fact" | "promise" | "question" | "statement";
|
|
23
|
-
text: string;
|
|
24
|
-
status: "accepted" | "proposed" | "rejected" | "reversed" | "superseded";
|
|
25
|
-
project: string | null;
|
|
26
|
-
subject: string | null;
|
|
27
|
-
occurred_at: string | null;
|
|
28
|
-
supersedes: string | null;
|
|
29
|
-
author: {
|
|
30
|
-
type: "bot" | "person";
|
|
31
|
-
id: string;
|
|
32
|
-
name: string | null;
|
|
33
|
-
kind: "agent" | "rule" | null;
|
|
34
|
-
};
|
|
35
|
-
model: string | null;
|
|
36
|
-
confirmed_by: {
|
|
37
|
-
type: "bot" | "person";
|
|
38
|
-
id: string;
|
|
39
|
-
} | null;
|
|
40
|
-
scope: "personal" | "work" | null;
|
|
41
|
-
origin: string;
|
|
42
|
-
evidence: string[];
|
|
43
|
-
created_at: string;
|
|
44
|
-
updated_at: string;
|
|
45
|
-
};
|
|
46
|
-
/** A memory as cli-core's `memory` entity. */
|
|
47
|
-
export declare const memoryItem: ({ body, ...memory }: Memory) => {
|
|
48
|
-
ref: string;
|
|
49
|
-
id: string;
|
|
50
|
-
kind: "digest" | "preference" | "summary";
|
|
51
|
-
text: string;
|
|
52
|
-
subject: string | null;
|
|
53
|
-
author: {
|
|
54
|
-
type: "bot" | "person";
|
|
55
|
-
id: string;
|
|
56
|
-
name: string | null;
|
|
57
|
-
kind: "agent" | "rule" | null;
|
|
58
|
-
};
|
|
59
|
-
model: string | null;
|
|
60
|
-
confidence: number | null;
|
|
61
|
-
status: "confirmed" | "proposed" | "stale" | "superseded";
|
|
62
|
-
scope: "personal" | "work";
|
|
63
|
-
supersedes: string | null;
|
|
64
|
-
evidence: string[];
|
|
65
|
-
last_verified_at: string | null;
|
|
66
|
-
created_at: string;
|
|
67
|
-
updated_at: string;
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* `memories search`'s words and its `scope:` term: the store searches the words and filters the scope in one
|
|
71
|
-
* query. Bare words are text, so they may repeat; everything is joined by AND.
|
|
72
|
-
*/
|
|
73
|
-
export declare const memorySearch: (words: QueryWords) => {
|
|
74
|
-
text: string;
|
|
75
|
-
scope?: Memory["scope"];
|
|
76
|
-
};
|
|
77
|
-
//# sourceMappingURL=knowledge-query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"knowledge-query.d.ts","sourceRoot":"","sources":["../src/knowledge-query.ts"],"names":[],"mappings":"AACA,OAAO,EAAiC,KAAK,UAAU,EAAyB,MAAM,uBAAuB,CAAA;AAC7G,OAAO,EAGL,KAAK,IAAI,EAIT,KAAK,MAAM,EACZ,MAAM,yBAAyB,CAAA;AAEhC,eAAO,MAAM,UAAU;qBACb,MAAM;sBACL,QAAQ;;CAKe,CAAA;AAElC,eAAO,MAAM,YAAY;qBACf,QAAQ;sBACP,QAAQ;;CAMe,CAAA;AAElC,eAAO,MAAM,mBAAmB;qBACtB,QAAQ;sBACP,QAAQ;;CAWe,CAAA;AAElC,0CAA0C;AAC1C,eAAO,MAAM,QAAQ,sDAAuD,IAAI;IAC9E,GAAG;IACH,EAAE;IACF,IAAI;IACJ,IAAI;IACJ,MAAM;IACN,OAAO;IACP,OAAO;IACP,WAAW;IACX,UAAU;IACV,MAAM;;;;;;IACN,KAAK;IACL,YAAY;;;;IACZ,KAAK;IACL,MAAM;IACN,QAAQ;IACR,UAAU;IACV,UAAU;CACV,CAAA;AAEF,8CAA8C;AAC9C,eAAO,MAAM,UAAU,wBAAyB,MAAM;IACpD,GAAG;IACH,EAAE;IACF,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,MAAM;;;;;;IACN,KAAK;IACL,UAAU;IACV,MAAM;IACN,KAAK;IACL,UAAU;IACV,QAAQ;IACR,gBAAgB;IAChB,UAAU;IACV,UAAU;CACV,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,UAAW,UAAU,KAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAA;CA2BvF,CAAA"}
|
package/dist/knowledge-query.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { parseLucene, queryError, validateQuery } from "@wirecat/cli-base/query";
|
|
2
|
-
import { LIST_QUERY_GUIDE, nativeField, termField, typedQuery } from "@wirecat/cli-core/cli";
|
|
3
|
-
import { FACT_STATUSES, FACT_TYPES, MEMORY_KINDS, MEMORY_SCOPES, MEMORY_STATUSES, } from "@wirecat/cli-core/store";
|
|
4
|
-
export const FACT_QUERY = {
|
|
5
|
-
entity: "fact",
|
|
6
|
-
backend: "native",
|
|
7
|
-
fields: [
|
|
8
|
-
termField("kind", "enum", "kind:decision", { values: FACT_TYPES }),
|
|
9
|
-
termField("status", "enum", "status:proposed", { values: FACT_STATUSES }),
|
|
10
|
-
],
|
|
11
|
-
};
|
|
12
|
-
export const MEMORY_QUERY = {
|
|
13
|
-
entity: "memory",
|
|
14
|
-
backend: "native",
|
|
15
|
-
fields: [
|
|
16
|
-
termField("kind", "enum", "kind:preference", { values: MEMORY_KINDS }),
|
|
17
|
-
termField("status", "enum", "status:proposed", { values: MEMORY_STATUSES }),
|
|
18
|
-
termField("scope", "enum", "scope:work", { values: MEMORY_SCOPES }),
|
|
19
|
-
],
|
|
20
|
-
};
|
|
21
|
-
export const MEMORY_SEARCH_QUERY = {
|
|
22
|
-
entity: "memory",
|
|
23
|
-
backend: "native",
|
|
24
|
-
fields: [
|
|
25
|
-
nativeField({
|
|
26
|
-
name: "text",
|
|
27
|
-
type: "txt",
|
|
28
|
-
operators: ["term", "phrase"],
|
|
29
|
-
example: "text:reviews",
|
|
30
|
-
relation: "words of the memory; a bare word means the same",
|
|
31
|
-
}),
|
|
32
|
-
termField("scope", "enum", "scope:work", { values: MEMORY_SCOPES }),
|
|
33
|
-
],
|
|
34
|
-
};
|
|
35
|
-
/** A fact as cli-core's `fact` entity. */
|
|
36
|
-
export const factItem = ({ type, statement, source, confirmedBy, ...fact }) => ({
|
|
37
|
-
ref: fact.ref,
|
|
38
|
-
id: fact.id,
|
|
39
|
-
kind: type,
|
|
40
|
-
text: statement,
|
|
41
|
-
status: fact.status,
|
|
42
|
-
project: fact.project,
|
|
43
|
-
subject: fact.subject,
|
|
44
|
-
occurred_at: fact.occurredAt,
|
|
45
|
-
supersedes: fact.supersedes,
|
|
46
|
-
author: fact.author,
|
|
47
|
-
model: fact.model,
|
|
48
|
-
confirmed_by: confirmedBy,
|
|
49
|
-
scope: fact.scope,
|
|
50
|
-
origin: source,
|
|
51
|
-
evidence: fact.evidence,
|
|
52
|
-
created_at: fact.createdAt,
|
|
53
|
-
updated_at: fact.updatedAt,
|
|
54
|
-
});
|
|
55
|
-
/** A memory as cli-core's `memory` entity. */
|
|
56
|
-
export const memoryItem = ({ body, ...memory }) => ({
|
|
57
|
-
ref: memory.ref,
|
|
58
|
-
id: memory.id,
|
|
59
|
-
kind: memory.kind,
|
|
60
|
-
text: body,
|
|
61
|
-
subject: memory.subject,
|
|
62
|
-
author: memory.author,
|
|
63
|
-
model: memory.model,
|
|
64
|
-
confidence: memory.confidence,
|
|
65
|
-
status: memory.status,
|
|
66
|
-
scope: memory.scope,
|
|
67
|
-
supersedes: memory.supersedes,
|
|
68
|
-
evidence: memory.evidence,
|
|
69
|
-
last_verified_at: memory.lastVerifiedAt,
|
|
70
|
-
created_at: memory.createdAt,
|
|
71
|
-
updated_at: memory.updatedAt,
|
|
72
|
-
});
|
|
73
|
-
/**
|
|
74
|
-
* `memories search`'s words and its `scope:` term: the store searches the words and filters the scope in one
|
|
75
|
-
* query. Bare words are text, so they may repeat; everything is joined by AND.
|
|
76
|
-
*/
|
|
77
|
-
export const memorySearch = (words) => {
|
|
78
|
-
const command = "memories search";
|
|
79
|
-
const context = { command, guide: LIST_QUERY_GUIDE };
|
|
80
|
-
const ast = validateQuery(parseLucene(typedQuery(words), { defaultField: "text", ...context }), MEMORY_SEARCH_QUERY, context);
|
|
81
|
-
const text = [];
|
|
82
|
-
let scope;
|
|
83
|
-
const add = (node) => {
|
|
84
|
-
if (node.kind === "boolean") {
|
|
85
|
-
for (const clause of node.clauses) {
|
|
86
|
-
if (clause.occur !== "must")
|
|
87
|
-
queryError("query.unsupported-placement", clause.node.span, "this search joins its terms by AND", context);
|
|
88
|
-
add(clause.node);
|
|
89
|
-
}
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
if (node.field === "text")
|
|
93
|
-
text.push(node.value);
|
|
94
|
-
else if (scope !== undefined)
|
|
95
|
-
queryError("query.unsupported-placement", node.span, "scope only once here", context);
|
|
96
|
-
else
|
|
97
|
-
scope = node.value.toLowerCase();
|
|
98
|
-
};
|
|
99
|
-
add(ast.root);
|
|
100
|
-
if (text.length === 0)
|
|
101
|
-
queryError("query.missing-value", ast.root.span, "say which words to look for beside scope:", context);
|
|
102
|
-
return { text: text.join(" "), ...(scope === undefined ? {} : { scope }) };
|
|
103
|
-
};
|
|
104
|
-
//# sourceMappingURL=knowledge-query.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"knowledge-query.js","sourceRoot":"","sources":["../src/knowledge-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAsC,UAAU,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AACpH,OAAO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sBAAsB,EAAE,OAAO,CAAC,CAAA;;YAC9G,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,EAAqB,CAAA;IAC1D,CAAC,CAAA;IACD,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IACb,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;QACnB,UAAU,CAAC,qBAAqB,EAAE,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,2CAA2C,EAAE,OAAO,CAAC,CAAA;IACxG,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAA;AAC5E,CAAC,CAAA"}
|
|
File without changes
|
package/dist/bundle/{mdast-util-from-markdown-CE73EWJ2.js → mdast-util-from-markdown-FXEPSNER.js}
RENAMED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
toString
|
|
5
|
+
} from "./chunk-XFLCVHSQ.js";
|
|
3
6
|
import {
|
|
4
7
|
EditMap,
|
|
5
8
|
attention,
|
|
@@ -32,9 +35,6 @@ import {
|
|
|
32
35
|
subtokenize,
|
|
33
36
|
thematicBreak
|
|
34
37
|
} from "./chunk-37MAA6F2.js";
|
|
35
|
-
import {
|
|
36
|
-
toString
|
|
37
|
-
} from "./chunk-XFLCVHSQ.js";
|
|
38
38
|
import {
|
|
39
39
|
markdownLineEnding,
|
|
40
40
|
normalizeIdentifier
|