@wirecat/tg-cli 0.134.0 → 0.135.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/tg.js +2 -2
- package/dist/bundle/{adapter-Y4IXTXAG.js → adapter-OHJF6PB5.js} +67 -67
- package/dist/bundle/agent-QPF2KU4I.js +37 -0
- package/dist/bundle/{all-profiles-SUGID6CX.js → all-profiles-LQ73BIFB.js} +10 -10
- package/dist/bundle/{anthropic-4QKTXT4B.js → anthropic-YYBMT2HD.js} +5 -5
- package/dist/bundle/{app-server-TPOD6LIJ.js → app-server-HV4C4CSA.js} +61 -61
- package/dist/bundle/{bot-api-KBESP422.js → bot-api-URQXWMVR.js} +67 -67
- package/dist/bundle/{bot-history-3EORA23G.js → bot-history-FRLCHPDQ.js} +23 -23
- package/dist/bundle/{bun-FL76M4M2.js → bun-J3ML43BO.js} +2 -2
- package/dist/bundle/{bun-sqlite-H37OSTAJ.js → bun-sqlite-ZNB2B2DL.js} +6 -6
- package/dist/bundle/{chunk-JXEO5EIN.js → chunk-24G3SEXH.js} +2 -2
- package/dist/bundle/{chunk-JWLODUN3.js → chunk-27F6QBPY.js} +14 -14
- package/dist/bundle/{chunk-XVRLD3LN.js → chunk-2OFCIF2W.js} +2 -2
- package/dist/bundle/{chunk-4S2DHHJM.js → chunk-2U7XA4IH.js} +1 -1
- package/dist/bundle/{chunk-HD7DV5B2.js → chunk-4CLSIEWN.js} +35 -35
- package/dist/bundle/{chunk-PRM7GKBV.js → chunk-5CEKH6R6.js} +7 -7
- package/dist/bundle/{chunk-Z77R76S2.js → chunk-5WEEK65F.js} +1 -1
- package/dist/bundle/{chunk-3O25FAPA.js → chunk-6VWVYPH2.js} +1 -1
- package/dist/bundle/{chunk-CNGNR4CY.js → chunk-6WS474NQ.js} +6 -6
- package/dist/bundle/{chunk-L4PNDW4S.js → chunk-7GWOGEWJ.js} +6 -6
- package/dist/bundle/{chunk-HETHFOHC.js → chunk-AMRMU23L.js} +16 -3
- package/dist/bundle/{chunk-M323L5SG.js → chunk-B2UXNYCD.js} +13 -13
- package/dist/bundle/{chunk-2GT563YH.js → chunk-B4ZMFU5I.js} +2 -2
- package/dist/bundle/{chunk-JWNSG5GI.js → chunk-BFKPMG5T.js} +1 -1
- package/dist/bundle/{chunk-ZC7OEYDX.js → chunk-BQSODAU3.js} +1 -1
- package/dist/bundle/{chunk-YHTSJMZ5.js → chunk-BXUMZWMN.js} +565 -477
- package/dist/bundle/{chunk-DG35TQ6P.js → chunk-E2VIO7RY.js} +3 -3
- package/dist/bundle/{chunk-H3TLAYGY.js → chunk-F5FOS64B.js} +4 -4
- package/dist/bundle/{chunk-PK5WEGPJ.js → chunk-GCUFGDKE.js} +2 -2
- package/dist/bundle/{chunk-YPJCURT6.js → chunk-GUERS64O.js} +2 -2
- package/dist/bundle/{chunk-ZW2N2GI2.js → chunk-HILS2UL7.js} +12 -12
- package/dist/bundle/{chunk-XS4EE7MO.js → chunk-IOJOLV25.js} +14 -14
- package/dist/bundle/{chunk-XLNV3U6N.js → chunk-JBS4VPAX.js} +3 -3
- package/dist/bundle/{chunk-2JWY7CXJ.js → chunk-K5QGBYDL.js} +4 -4
- package/dist/bundle/{chunk-ANBI3OXK.js → chunk-KKXF6TSS.js} +1 -1
- package/dist/bundle/{chunk-UTTEAOJ3.js → chunk-L2ZQDTDU.js} +1 -1
- package/dist/bundle/{chunk-XZ6XEAJP.js → chunk-LFPUW7DR.js} +15 -15
- package/dist/bundle/{chunk-L47PFECD.js → chunk-LGYATGQI.js} +7 -7
- package/dist/bundle/{chunk-JCDD5T3A.js → chunk-MA27675E.js} +2 -2
- package/dist/bundle/{chunk-NUD4CBHK.js → chunk-MDI7554C.js} +3 -3
- package/dist/bundle/{chunk-VH4J7IIS.js → chunk-MMZ4QAKJ.js} +1 -1
- package/dist/bundle/{chunk-FR4Y5CGW.js → chunk-MOPBEBVS.js} +4 -4
- package/dist/bundle/{chunk-TZCFJJEU.js → chunk-MPRXUTIK.js} +2 -2
- package/dist/bundle/{chunk-K5FK6WWN.js → chunk-N7F5KT6U.js} +1 -1
- package/dist/bundle/{chunk-CSXCCK6J.js → chunk-NBP6LXSY.js} +2 -2
- package/dist/bundle/{chunk-PCBVSHKD.js → chunk-NP46ZKQW.js} +4 -4
- package/dist/bundle/{chunk-TI5U6AUT.js → chunk-NRSJXUUO.js} +26 -26
- package/dist/bundle/{chunk-4R2ZJGFF.js → chunk-NVWZ7S3I.js} +578 -451
- package/dist/bundle/{chunk-W2QSDPG6.js → chunk-OBIMTRA7.js} +3 -3
- package/dist/bundle/{chunk-O3QBO6NW.js → chunk-OQJURSRL.js} +17 -17
- package/dist/bundle/{chunk-V6G4LTXU.js → chunk-OU3WN4YH.js} +3 -3
- package/dist/bundle/{chunk-VNJRWFHP.js → chunk-PBK2ECXT.js} +1 -1
- package/dist/bundle/{chunk-3ZNO27UE.js → chunk-PHAFT2BO.js} +1 -1
- package/dist/bundle/{chunk-3QQWTP77.js → chunk-PKIGE4NE.js} +2 -2
- package/dist/bundle/{chunk-CA7DY2YU.js → chunk-QBRQLOZA.js} +3 -3
- package/dist/bundle/{chunk-NYEVPAF2.js → chunk-QD4MTOI7.js} +61 -61
- package/dist/bundle/{chunk-WGGUKQE7.js → chunk-QHQ52UMF.js} +75 -31
- package/dist/bundle/{chunk-6UNLEQA5.js → chunk-R2G3MWEF.js} +19 -19
- package/dist/bundle/{chunk-TKWYXM7L.js → chunk-RCEP5OXD.js} +7 -7
- package/dist/bundle/{chunk-7GGDCQJ5.js → chunk-RHJ2VGHV.js} +8 -8
- package/dist/bundle/{chunk-SPXNI53Z.js → chunk-RXBKVNOK.js} +23 -10
- package/dist/bundle/{chunk-WPXVJGSL.js → chunk-RZ7POTFA.js} +3 -3
- package/dist/bundle/{chunk-OJSPB4LA.js → chunk-S7PIM4GG.js} +2 -2
- package/dist/bundle/{chunk-JHZJBNDO.js → chunk-SIDGH56R.js} +2 -2
- package/dist/bundle/{chunk-RVA3CRSY.js → chunk-SRMELB6Q.js} +12 -12
- package/dist/bundle/{chunk-IJ7R2WMK.js → chunk-SVPNU7PD.js} +4 -4
- package/dist/bundle/{chunk-GIGZTI74.js → chunk-TB2MG6PE.js} +938 -710
- package/dist/bundle/{chunk-J5RB4ASI.js → chunk-UN5TH2CG.js} +28 -13
- package/dist/bundle/{chunk-PZ2ZFPGO.js → chunk-V3ZWYMXT.js} +1 -1
- package/dist/bundle/{chunk-ITJ7DGNA.js → chunk-VFU25P57.js} +4 -4
- package/dist/bundle/{chunk-AYWST6NA.js → chunk-VJEMCJPL.js} +35 -35
- package/dist/bundle/{chunk-AHVWZDXO.js → chunk-VK2NDTBS.js} +72 -57
- package/dist/bundle/{chunk-CDKXZLMP.js → chunk-W6A2OZ3C.js} +164 -158
- package/dist/bundle/{chunk-EXMAWEHC.js → chunk-WDI6LA4X.js} +2 -2
- package/dist/bundle/{chunk-O4ZOQJ6W.js → chunk-WTGRQGQL.js} +15 -8
- package/dist/bundle/{chunk-JAL443BH.js → chunk-WUCTF2XE.js} +9 -9
- package/dist/bundle/{chunk-HEZK4W3U.js → chunk-WZCRCCOZ.js} +6 -6
- package/dist/bundle/{chunk-4X6BX3XP.js → chunk-XB6O445X.js} +6 -6
- package/dist/bundle/{chunk-PRI2XTM7.js → chunk-XKFES4EM.js} +8 -8
- package/dist/bundle/{chunk-6DJJVFSG.js → chunk-YBUX6EAK.js} +6 -6
- package/dist/bundle/{chunk-77E7Q4EQ.js → chunk-YMRL7MYS.js} +7 -7
- package/dist/bundle/{chunk-6MEHKUN6.js → chunk-Z6M6NZUX.js} +1 -1
- package/dist/bundle/{chunk-QYRK4XXH.js → chunk-ZCDRXKCR.js} +13 -13
- package/dist/bundle/{chunk-MMDFPBFZ.js → chunk-ZJ3S4S6H.js} +6 -6
- package/dist/bundle/{chunk-3PG6QVQZ.js → chunk-ZL7TJXFL.js} +10 -10
- package/dist/bundle/{chunk-MXA3FU2R.js → chunk-ZMBVZWUW.js} +1 -1
- package/dist/bundle/{chunk-MUV73B5A.js → chunk-ZMTASSIB.js} +7 -7
- package/dist/bundle/{chunk-6DGVK5KS.js → chunk-ZQ5ERQHO.js} +2 -2
- package/dist/bundle/{chunk-FR3ATU5I.js → chunk-ZWVDXVG3.js} +4 -4
- package/dist/bundle/command-contract-K4MU32K6.js +37 -0
- package/dist/bundle/{command-server-entry-WQAE5UGU.js → command-server-entry-XP6BVJIK.js} +27 -27
- package/dist/bundle/{decode-2J2DOVGV.js → decode-TUB45ALX.js} +5 -5
- package/dist/bundle/{dispatch-IZ2TP5GW.js → dispatch-ICPUKMEG.js} +8 -8
- package/dist/bundle/{echarts-GFIIHZ4U.js → echarts-HJ7D7XTM.js} +2 -2
- package/dist/bundle/{embed-AGOXADHW.js → embed-4QDN36YF.js} +6 -6
- package/dist/bundle/{embedder-PCIXGM2Y.js → embedder-Q7ID2LEG.js} +9 -9
- package/dist/bundle/{entry-HUQXUV52.js → entry-Z6VRZP7F.js} +9 -9
- package/dist/bundle/{failure-JSRHZ2S6.js → failure-PEPNEEK7.js} +2 -2
- package/dist/bundle/{first-run-2LXN7B33.js → first-run-GKBEHAAX.js} +12 -12
- package/dist/bundle/first-screen-IA3ONZ75.js +37 -0
- package/dist/bundle/{instructions-RSLTJVFJ.js → instructions-26ZXYYMY.js} +1 -1
- package/dist/bundle/{mcp-MMENCB7I.js → mcp-KGWT6TGO.js} +2 -2
- package/dist/bundle/meeting-combined-KUV2HP52.js +23 -0
- package/dist/bundle/{meeting-model-SI77WMMK.js → meeting-model-JB7X4CA3.js} +11 -11
- package/dist/bundle/{meeting-semantic-WRXWUR4M.js → meeting-semantic-MQNUVG33.js} +6 -6
- package/dist/bundle/{node-5XGMCUGQ.js → node-RIANITAT.js} +2 -2
- package/dist/bundle/{node-sqlite-ES7SQSIC.js → node-sqlite-I2P26Z3S.js} +7 -7
- package/dist/bundle/{oauth-QFM4Y6N7.js → oauth-GFMJL2ZZ.js} +7 -7
- package/dist/bundle/{open-2MD2DKGQ.js → open-CWVYEFNN.js} +5 -5
- package/dist/bundle/{openai-6TMKJKYO.js → openai-PQLK7YTJ.js} +15 -15
- package/dist/bundle/{process-VA2DP7MY.js → process-P4D4KFWE.js} +1 -1
- package/dist/bundle/{program-K3SLEA42.js → program-MF4QZJKH.js} +70 -70
- package/dist/bundle/{prompt-VZSPCE6E.js → prompt-JWIOYU53.js} +5 -5
- package/dist/bundle/{proxy-transport-OJU2EOOC.js → proxy-transport-DWY6ABVT.js} +5 -5
- package/dist/bundle/{recognize-LH3ZZEIL.js → recognize-IPJL4CQZ.js} +4 -4
- package/dist/bundle/{remote-JNW5HN2I.js → remote-DVY6F6YO.js} +9 -9
- package/dist/bundle/{rerank-P23UJMII.js → rerank-XSPWLBIO.js} +7 -7
- package/dist/bundle/{serve-VSLLMILH.js → serve-AJAVEH2M.js} +9 -9
- package/dist/bundle/server-GGXUR5BZ.js +78 -0
- package/dist/bundle/{server-FBRRRKCS.js → server-GII7NIKF.js} +53 -53
- package/dist/bundle/{sqlite-runtime-LWATDAAU.js → sqlite-runtime-KFDYJTUO.js} +6 -6
- package/dist/bundle/{state-3AFJL2EL.js → state-76OJSCQC.js} +6 -6
- package/dist/bundle/{store-6TLYL2VU.js → store-2KJS4YMH.js} +18 -18
- package/dist/bundle/{store-PEXV5DNA.js → store-FBP2J23G.js} +20 -20
- package/dist/bundle/store-maintenance-command-NUWOUZ62.js +65 -0
- package/dist/bundle/surface-EGSHCISG.js +64 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +5 -4
- package/skills/tg-cli/references/search.md +2 -2
- package/dist/bundle/agent-G7VHOJMS.js +0 -37
- package/dist/bundle/command-contract-LEFXJAA3.js +0 -37
- package/dist/bundle/first-screen-VUE6RCSF.js +0 -37
- package/dist/bundle/meeting-combined-PBNPHOM3.js +0 -23
- package/dist/bundle/server-TA4QP7PG.js +0 -78
- package/dist/bundle/store-maintenance-command-IYJLUQ5X.js +0 -65
- package/dist/bundle/surface-L4VY4WFG.js +0 -64
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
defineReasons
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RXBKVNOK.js";
|
|
6
6
|
|
|
7
7
|
// dist/reasons.js
|
|
8
8
|
var REASONS = defineReasons([
|
|
@@ -26,7 +26,7 @@ var REASONS = defineReasons([
|
|
|
26
26
|
].map(([reason, code, message]) => ({ reason, code, message, details: [] })));
|
|
27
27
|
|
|
28
28
|
// dist/version.js
|
|
29
|
-
var VERSION = "0.
|
|
29
|
+
var VERSION = "0.135.0";
|
|
30
30
|
|
|
31
31
|
// dist/identity.js
|
|
32
32
|
var TG = {
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
tagOf
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MA27675E.js";
|
|
6
6
|
import {
|
|
7
7
|
QUERY_LIMITS,
|
|
8
8
|
parseLucene,
|
|
@@ -10,19 +10,19 @@ import {
|
|
|
10
10
|
queryError,
|
|
11
11
|
validateQuery,
|
|
12
12
|
walkQuery
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-QD4MTOI7.js";
|
|
14
14
|
import {
|
|
15
15
|
safeParse
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RXBKVNOK.js";
|
|
17
17
|
import {
|
|
18
18
|
CliError,
|
|
19
19
|
isCliError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GCUFGDKE.js";
|
|
21
21
|
import {
|
|
22
22
|
__name
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/search/fusion.js
|
|
26
26
|
var RRF_K = 60;
|
|
27
27
|
var fuseRanked = /* @__PURE__ */ __name((lists, facts) => {
|
|
28
28
|
const rows = lists.flatMap((list) => list.map((item, rank) => ({ item, vote: 1 / (RRF_K + rank + 1), ...facts(item) })));
|
|
@@ -30,7 +30,7 @@ var fuseRanked = /* @__PURE__ */ __name((lists, facts) => {
|
|
|
30
30
|
return rows.sort((a, b) => Number(b.exact === true) - Number(a.exact === true) || (ranking ? Number(b.ranked) - Number(a.ranked) || b.vote - a.vote : 0) || b.at - a.at).map(({ item }) => item);
|
|
31
31
|
}, "fuseRanked");
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
34
34
|
var QUERY_VERSION = 1;
|
|
35
35
|
var QUERY_LIMITS2 = {
|
|
36
36
|
...QUERY_LIMITS,
|
|
@@ -59,6 +59,12 @@ function outOfTime(limitMs = QUERY_LIMITS2.milliseconds) {
|
|
|
59
59
|
}
|
|
60
60
|
__name(outOfTime, "outOfTime");
|
|
61
61
|
var isQueryLimit = /* @__PURE__ */ __name((error) => isCliError(error) && (error.details.reason === "query.too-large" || error.details.reason === "query.time-limit"), "isQueryLimit");
|
|
62
|
+
var SQLITE_TOO_LARGE = /nested too deep|too many terms in compound SELECT|Expression tree is too large|parser stack overflow/;
|
|
63
|
+
var sqliteLimit = /* @__PURE__ */ __name((error) => {
|
|
64
|
+
if (error instanceof Error && SQLITE_TOO_LARGE.test(error.message))
|
|
65
|
+
exhausted("nodes");
|
|
66
|
+
return error;
|
|
67
|
+
}, "sqliteLimit");
|
|
62
68
|
function exhausted(budget) {
|
|
63
69
|
throw new CliError("validation_error", `search exceeded its ${budget} budget \u2014 narrow the chat or date range`, {
|
|
64
70
|
reason: "query.too-large",
|
|
@@ -75,7 +81,7 @@ function tooWideTerm([term], budget) {
|
|
|
75
81
|
}
|
|
76
82
|
__name(tooWideTerm, "tooWideTerm");
|
|
77
83
|
|
|
78
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
84
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
79
85
|
var FIELD_VERSION = 2;
|
|
80
86
|
var UNITS = {
|
|
81
87
|
"": 1,
|
|
@@ -604,7 +610,7 @@ var validateAst = /* @__PURE__ */ __name((input, options = {}) => {
|
|
|
604
610
|
return validateFields(parsed.output, options);
|
|
605
611
|
}, "validateAst");
|
|
606
612
|
|
|
607
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
613
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/search/lucene/plain.js
|
|
608
614
|
var REPAIRED = /* @__PURE__ */ new Set([
|
|
609
615
|
"query.invalid-syntax",
|
|
610
616
|
"query.unclosed-literal",
|
|
@@ -756,6 +762,7 @@ export {
|
|
|
756
762
|
searchTimeLimit,
|
|
757
763
|
outOfTime,
|
|
758
764
|
isQueryLimit,
|
|
765
|
+
sqliteLimit,
|
|
759
766
|
exhausted,
|
|
760
767
|
tooWideTerm,
|
|
761
768
|
FIELD_VERSION,
|
|
@@ -2,20 +2,20 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
unit
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZJ3S4S6H.js";
|
|
6
6
|
import {
|
|
7
7
|
PLAIN_HTTP_REFUSED,
|
|
8
8
|
modelAddressAllowed,
|
|
9
9
|
onThisComputer
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XB6O445X.js";
|
|
11
11
|
import {
|
|
12
12
|
readSharedSection,
|
|
13
13
|
sharedConfigPath,
|
|
14
14
|
writeSharedSection
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YMRL7MYS.js";
|
|
16
16
|
import {
|
|
17
17
|
storePath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2OFCIF2W.js";
|
|
19
19
|
import {
|
|
20
20
|
boolean,
|
|
21
21
|
isoTimestamp,
|
|
@@ -23,18 +23,18 @@ import {
|
|
|
23
23
|
safeParse,
|
|
24
24
|
strictObject,
|
|
25
25
|
string
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-RXBKVNOK.js";
|
|
27
27
|
import {
|
|
28
28
|
CliError
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-GCUFGDKE.js";
|
|
30
30
|
import {
|
|
31
31
|
__name
|
|
32
32
|
} from "./chunk-ZVVMGPBJ.js";
|
|
33
33
|
|
|
34
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
35
35
|
import { setTimeout } from "node:timers/promises";
|
|
36
36
|
|
|
37
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
37
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/models/local-only.js
|
|
38
38
|
var SECTION = "local_only";
|
|
39
39
|
var Setting = strictObject({
|
|
40
40
|
on: boolean(),
|
|
@@ -68,7 +68,7 @@ var refuseModelAddress = /* @__PURE__ */ __name((env, address, what) => {
|
|
|
68
68
|
refuseOffComputer(env, address, what);
|
|
69
69
|
}, "refuseModelAddress");
|
|
70
70
|
|
|
71
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
71
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/embeddings/remote.js
|
|
72
72
|
var OPENAI_URL = "https://api.openai.com/v1";
|
|
73
73
|
var OPENAI_MODELS = {
|
|
74
74
|
"text-embedding-3-small": { dims: 1536, perMillion: 0.02 },
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
filesPresent,
|
|
5
5
|
sharedModelsDirectory
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-K5QGBYDL.js";
|
|
7
7
|
import {
|
|
8
8
|
readSharedSection,
|
|
9
9
|
sharedConfigPath,
|
|
10
10
|
writeSharedSection
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YMRL7MYS.js";
|
|
12
12
|
import {
|
|
13
13
|
storePath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2OFCIF2W.js";
|
|
15
15
|
import {
|
|
16
16
|
array,
|
|
17
17
|
check,
|
|
@@ -32,15 +32,15 @@ import {
|
|
|
32
32
|
string,
|
|
33
33
|
trim,
|
|
34
34
|
url
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-RXBKVNOK.js";
|
|
36
36
|
import {
|
|
37
37
|
CliError
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-GCUFGDKE.js";
|
|
39
39
|
import {
|
|
40
40
|
__name
|
|
41
41
|
} from "./chunk-ZVVMGPBJ.js";
|
|
42
42
|
|
|
43
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
43
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
44
44
|
import { existsSync } from "node:fs";
|
|
45
45
|
import { join } from "node:path";
|
|
46
46
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
isCliError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GCUFGDKE.js";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/body.js
|
|
12
12
|
var interrupted = /* @__PURE__ */ __name((signal) => isCliError(signal.reason) ? signal.reason : new CliError(signal.reason instanceof Error && signal.reason.name === "TimeoutError" ? "timeout" : "cancelled", "HTTP response read was interrupted"), "interrupted");
|
|
13
13
|
var checked = /* @__PURE__ */ __name((signal) => {
|
|
14
14
|
if (signal?.aborted)
|
|
@@ -93,7 +93,7 @@ var readJsonResponse = /* @__PURE__ */ __name(async (response, options) => {
|
|
|
93
93
|
}
|
|
94
94
|
}, "readJsonResponse");
|
|
95
95
|
|
|
96
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
96
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/hosts.js
|
|
97
97
|
var LABEL = "[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?";
|
|
98
98
|
var HOST_PATTERN = new RegExp(`^(?:${LABEL}(?:\\.${LABEL})*|\\*\\.${LABEL}(?:\\.${LABEL})+)$`);
|
|
99
99
|
var hostProblems = /* @__PURE__ */ __name((hosts) => [
|
|
@@ -105,7 +105,7 @@ var hostCovered = /* @__PURE__ */ __name((hostname, hosts) => {
|
|
|
105
105
|
return hosts.some((host) => host.startsWith("*.") ? name.endsWith(host.slice(1)) : name === host);
|
|
106
106
|
}, "hostCovered");
|
|
107
107
|
|
|
108
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
108
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/fetch.js
|
|
109
109
|
var HOST_FETCH_TIMEOUT_MS = 3e4;
|
|
110
110
|
var REDIRECTS = 5;
|
|
111
111
|
var REDIRECT_STATUSES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
@@ -223,7 +223,7 @@ var hostFetch = /* @__PURE__ */ __name((options) => {
|
|
|
223
223
|
};
|
|
224
224
|
}, "hostFetch");
|
|
225
225
|
|
|
226
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
226
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/http/index.js
|
|
227
227
|
var parseRetryAfter = /* @__PURE__ */ __name((header, now) => {
|
|
228
228
|
if (!header)
|
|
229
229
|
return void 0;
|
|
@@ -264,7 +264,7 @@ var statusToCode = /* @__PURE__ */ __name((status) => {
|
|
|
264
264
|
return "provider_error";
|
|
265
265
|
}, "statusToCode");
|
|
266
266
|
|
|
267
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
268
268
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
269
269
|
try {
|
|
270
270
|
const url = new URL(value);
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
normalize
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PHAFT2BO.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GCUFGDKE.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.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/search/languages.js
|
|
14
14
|
var LANGUAGES = [
|
|
15
15
|
{ name: "russian", code: "ru", label: "Russian", script: "cyrillic", dictionary: "dictionary-ru" },
|
|
16
16
|
{ name: "english", code: "en", label: "English", script: "latin", dictionary: "dictionary-en" },
|
|
@@ -18,7 +18,7 @@ var LANGUAGES = [
|
|
|
18
18
|
];
|
|
19
19
|
var languagesOf = /* @__PURE__ */ __name((script) => LANGUAGES.filter((one) => one.script === script).map(({ name }) => name), "languagesOf");
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
|
|
22
22
|
var BaseStemmer = class {
|
|
23
23
|
static {
|
|
24
24
|
__name(this, "BaseStemmer");
|
|
@@ -393,7 +393,7 @@ var BaseStemmer = class {
|
|
|
393
393
|
}
|
|
394
394
|
};
|
|
395
395
|
|
|
396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
|
|
397
397
|
var a_0 = [
|
|
398
398
|
["arsen", -1],
|
|
399
399
|
["commun", -1],
|
|
@@ -1094,7 +1094,7 @@ var english_stemmer_default = class extends BaseStemmer {
|
|
|
1094
1094
|
stemWord = this.stem;
|
|
1095
1095
|
};
|
|
1096
1096
|
|
|
1097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
|
|
1098
1098
|
var a_02 = [
|
|
1099
1099
|
["\u0432", 1],
|
|
1100
1100
|
["\u0438\u0432", 2, 1],
|
|
@@ -1517,7 +1517,7 @@ var russian_stemmer_default = class extends BaseStemmer {
|
|
|
1517
1517
|
stemWord = this.stem;
|
|
1518
1518
|
};
|
|
1519
1519
|
|
|
1520
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1520
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
|
|
1521
1521
|
var a_03 = [
|
|
1522
1522
|
["", 6],
|
|
1523
1523
|
["\xE1", 1, 1],
|
|
@@ -2193,7 +2193,7 @@ var spanish_stemmer_default = class extends BaseStemmer {
|
|
|
2193
2193
|
stemWord = this.stem;
|
|
2194
2194
|
};
|
|
2195
2195
|
|
|
2196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/search/stem.js
|
|
2197
2197
|
var SNOWBALL_VERSION = "3.1.1";
|
|
2198
2198
|
var CYRILLIC_STEMMERS = [...languagesOf("cyrillic"), "none"];
|
|
2199
2199
|
var LATIN_STEMMERS = [...languagesOf("latin"), "none"];
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
isNewer,
|
|
6
6
|
readNoticeState,
|
|
7
7
|
writeUpdateState
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZWVDXVG3.js";
|
|
9
9
|
import {
|
|
10
10
|
executableEnvironment,
|
|
11
11
|
executableOnPath
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KKXF6TSS.js";
|
|
13
13
|
import {
|
|
14
14
|
require_cross_spawn
|
|
15
15
|
} from "./chunk-D72URWJE.js";
|
|
@@ -17,19 +17,19 @@ import {
|
|
|
17
17
|
Command,
|
|
18
18
|
Option,
|
|
19
19
|
annotate
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-W6A2OZ3C.js";
|
|
21
21
|
import {
|
|
22
22
|
refuseOwnerHomeInTests
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-R2G3MWEF.js";
|
|
24
24
|
import {
|
|
25
25
|
CliError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GCUFGDKE.js";
|
|
27
27
|
import {
|
|
28
28
|
__name,
|
|
29
29
|
__toESM
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.126.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/skill/index.js
|
|
33
33
|
import { existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
34
34
|
import { homedir } from "node:os";
|
|
35
35
|
import { basename, dirname, join, relative, resolve, sep } from "node:path";
|
|
@@ -2,24 +2,24 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2OFCIF2W.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
writeSecurely
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-R2G3MWEF.js";
|
|
10
10
|
import {
|
|
11
11
|
CliError,
|
|
12
12
|
singleLine
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GCUFGDKE.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.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
19
19
|
import { existsSync, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
20
20
|
import { dirname, join, resolve } from "node:path";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/domain/config-repair.js
|
|
23
23
|
var REPAIR_WORDS = {
|
|
24
24
|
byte_order_mark: "an invisible byte-order mark at the start",
|
|
25
25
|
comment: "a comment, which JSON does not allow",
|
|
@@ -303,7 +303,7 @@ var explainBrokenJson = /* @__PURE__ */ __name((text, result) => {
|
|
|
303
303
|
return `line ${line}, column ${column}: ${why}${around(line)}; likely fix: ${fix ?? "correct that part by hand"}`;
|
|
304
304
|
}, "explainBrokenJson");
|
|
305
305
|
|
|
306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
306
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
307
307
|
var DEFAULT_TASK_CATEGORIES = [
|
|
308
308
|
{
|
|
309
309
|
name: "taxes",
|
|
@@ -1058,7 +1058,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
1058
1058
|
}
|
|
1059
1059
|
}, "storedTaskCategories");
|
|
1060
1060
|
|
|
1061
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1061
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
1062
1062
|
var SECTION = "task_categories";
|
|
1063
1063
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
1064
1064
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -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.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
readMoment
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OBIMTRA7.js";
|
|
6
6
|
import {
|
|
7
7
|
Command,
|
|
8
8
|
InvalidArgumentError,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
annotateOption,
|
|
12
12
|
listOf,
|
|
13
13
|
sharedCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-W6A2OZ3C.js";
|
|
15
15
|
import {
|
|
16
16
|
BACKENDS,
|
|
17
17
|
EVENT_QUERY,
|
|
@@ -51,15 +51,15 @@ import {
|
|
|
51
51
|
validateMeetingHitSearch,
|
|
52
52
|
validateMeetingPassage,
|
|
53
53
|
validateQuery
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-QD4MTOI7.js";
|
|
55
55
|
import {
|
|
56
56
|
CliError
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-GCUFGDKE.js";
|
|
58
58
|
import {
|
|
59
59
|
__name
|
|
60
60
|
} from "./chunk-ZVVMGPBJ.js";
|
|
61
61
|
|
|
62
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
62
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/services/moment.js
|
|
63
63
|
var read = /* @__PURE__ */ __name((reference, flag, now, at) => {
|
|
64
64
|
const found = readMoment(reference, flag, { ...at, now });
|
|
65
65
|
if (found === void 0)
|
|
@@ -88,7 +88,7 @@ var dateWindow = /* @__PURE__ */ __name(({ sinceTime, untilTime, zone, now = Dat
|
|
|
88
88
|
};
|
|
89
89
|
}, "dateWindow");
|
|
90
90
|
|
|
91
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
91
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/meetings/cli/management.js
|
|
92
92
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
93
93
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
94
94
|
var minutes = /* @__PURE__ */ __name((text) => {
|
|
@@ -193,7 +193,7 @@ var addMeetingManagementCommands = /* @__PURE__ */ __name((group, deps) => {
|
|
|
193
193
|
}).description("the invitation text the service writes for a meeting"))).action(async (id, _flags, command) => inRun(command, async () => print({ item: { ...await management.invitation(id, signalled()), untrusted: ["invitation"] } }, command)));
|
|
194
194
|
}, "addMeetingManagementCommands");
|
|
195
195
|
|
|
196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
196
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/meetings/cli/query-options.js
|
|
197
197
|
var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
198
198
|
command.allowUnknownOption();
|
|
199
199
|
const parse = command.parseOptions.bind(command);
|
|
@@ -213,7 +213,7 @@ var queryWordsAfterOptions = /* @__PURE__ */ __name((command) => {
|
|
|
213
213
|
return command;
|
|
214
214
|
}, "queryWordsAfterOptions");
|
|
215
215
|
|
|
216
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
216
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/meetings/cli/passage.js
|
|
217
217
|
var count = /* @__PURE__ */ __name((value) => {
|
|
218
218
|
if (!/^(0|[1-9]\d*)$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
219
219
|
throw new CliError("validation_error", "expected a nonnegative safe integer");
|
|
@@ -255,7 +255,7 @@ var addMeetingPassageCommandDefinition = /* @__PURE__ */ __name((program, deps)
|
|
|
255
255
|
var createMeetingPassageCommand = sharedCommand(createMeetingPassageCommandDefinition);
|
|
256
256
|
var addMeetingPassageCommand = sharedCommand(addMeetingPassageCommandDefinition);
|
|
257
257
|
|
|
258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
258
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/meetings/cli/project-evidence.js
|
|
259
259
|
var integer = /* @__PURE__ */ __name((value) => {
|
|
260
260
|
if (!/^[1-9]\d*$/.test(value) || !Number.isSafeInteger(Number(value)))
|
|
261
261
|
throw new CliError("validation_error", "expected a positive safe integer");
|
|
@@ -278,7 +278,7 @@ ${fieldsHelp(MEETING_PROJECT_EVIDENCE_QUERY)}`).option("--limit <n>", "hits in o
|
|
|
278
278
|
}, "addMeetingProjectEvidenceCommandDefinition");
|
|
279
279
|
var addMeetingProjectEvidenceCommand = sharedCommand(addMeetingProjectEvidenceCommandDefinition);
|
|
280
280
|
|
|
281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/meetings/cli/search.js
|
|
282
282
|
var moment = /* @__PURE__ */ __name((flag, end, readIn) => (value) => {
|
|
283
283
|
const { since, until, meta } = dateWindow(end ? { untilTime: value, names: [flag, flag] } : { sinceTime: value, names: [flag, flag] });
|
|
284
284
|
if (meta.timezone)
|
|
@@ -357,7 +357,7 @@ var addMeetingSearchCommandDefinition = /* @__PURE__ */ __name((program, deps) =
|
|
|
357
357
|
var createMeetingSearchCommand = sharedCommand(createMeetingSearchCommandDefinition);
|
|
358
358
|
var addMeetingSearchCommand = sharedCommand(addMeetingSearchCommandDefinition);
|
|
359
359
|
|
|
360
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
360
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/meetings/cli/index.js
|
|
361
361
|
var EVENT_UNTRUSTED = ["title", "description", "location"];
|
|
362
362
|
var integer3 = /* @__PURE__ */ __name((text) => {
|
|
363
363
|
if (!/^[1-9]\d*$/.test(text) || !Number.isSafeInteger(Number(text)))
|
|
@@ -543,7 +543,7 @@ ${fieldsHelp(EVENT_QUERY, MEETING_QUERY_GUIDE)}`);
|
|
|
543
543
|
}, "addMeetingCommandsDefinition");
|
|
544
544
|
var addMeetingCommands = sharedCommand(addMeetingCommandsDefinition);
|
|
545
545
|
|
|
546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
546
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/cli/list-query.js
|
|
547
547
|
var LIST_QUERY_GUIDE = "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md";
|
|
548
548
|
var QUERY_ARGUMENT = "field:value terms that narrow the list \u2014 the fields are below";
|
|
549
549
|
var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
@@ -679,7 +679,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
679
679
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
680
680
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
681
681
|
|
|
682
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
683
683
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
684
684
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
685
685
|
if (key in own)
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
installFiles,
|
|
6
6
|
megabytes,
|
|
7
7
|
sharedModelsDirectory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-K5QGBYDL.js";
|
|
9
9
|
import {
|
|
10
10
|
importFrom
|
|
11
11
|
} from "./chunk-Y5E2WNWB.js";
|
|
12
12
|
import {
|
|
13
13
|
CliError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GCUFGDKE.js";
|
|
15
15
|
import {
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
20
20
|
import { readFileSync as readFileSync2 } from "node:fs";
|
|
21
21
|
import { availableParallelism } from "node:os";
|
|
22
22
|
import { basename, join as join2 } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
25
25
|
import { createHash } from "node:crypto";
|
|
26
26
|
import { copyFileSync, mkdirSync, mkdtempSync, readFileSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
27
27
|
import { join } from "node:path";
|
|
@@ -678,7 +678,7 @@ var Unzip = /* @__PURE__ */ (function() {
|
|
|
678
678
|
return Unzip2;
|
|
679
679
|
})();
|
|
680
680
|
|
|
681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
681
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/embeddings/onnx-runtime.js
|
|
682
682
|
var ONNX_RUNTIME_VERSION = "1.30.0";
|
|
683
683
|
var REGISTRY = "https://registry.npmjs.org";
|
|
684
684
|
var wirecat = /* @__PURE__ */ __name((target, sha256, bytes, library) => ({
|
|
@@ -837,7 +837,7 @@ var openSession = /* @__PURE__ */ __name(async (bytes, threads, options = {}) =>
|
|
|
837
837
|
return { ort, session: await ort.InferenceSession.create(bytes, options) };
|
|
838
838
|
}, "openSession");
|
|
839
839
|
|
|
840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
840
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/embeddings/embed.js
|
|
841
841
|
var textModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("text", env), "textModelsDirectory");
|
|
842
842
|
var placedText = /* @__PURE__ */ __name((model, directory) => model.files.map((file) => [file, join2(directory, model.id, file.name)]), "placedText");
|
|
843
843
|
var isTextModelInstalled = /* @__PURE__ */ __name((model, directory) => filesPresent(placedText(model, directory)), "isTextModelInstalled");
|
|
@@ -2,17 +2,17 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
validateVector
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-E2VIO7RY.js";
|
|
6
6
|
import {
|
|
7
7
|
MESSAGE_PARSING,
|
|
8
8
|
RRF_K
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WTGRQGQL.js";
|
|
10
10
|
import {
|
|
11
11
|
normalize
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PHAFT2BO.js";
|
|
13
13
|
import {
|
|
14
14
|
meaningFloor
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WZCRCCOZ.js";
|
|
16
16
|
import {
|
|
17
17
|
formatMeetingReference,
|
|
18
18
|
implicitTextTerms,
|
|
@@ -21,18 +21,18 @@ import {
|
|
|
21
21
|
parseMeetingReference,
|
|
22
22
|
refreshMeetingIndex,
|
|
23
23
|
walkQuery
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-QD4MTOI7.js";
|
|
25
25
|
import {
|
|
26
26
|
CliError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-GCUFGDKE.js";
|
|
28
28
|
import {
|
|
29
29
|
__name
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
33
33
|
import { createHash } from "node:crypto";
|
|
34
34
|
|
|
35
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
35
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/search/question-plan.js
|
|
36
36
|
var words = /* @__PURE__ */ __name((text) => normalize(text).match(/[\p{L}\p{N}]+/gu) ?? [], "words");
|
|
37
37
|
var joinedHyphens = /* @__PURE__ */ __name((text) => (normalize(text).match(new RegExp("(?<![:\\p{L}\\p{N}-])\\p{L}[\\p{L}\\p{N}]*(?:-\\p{L}[\\p{L}\\p{N}]*)+", "gu")) ?? []).map((word) => word.replaceAll("-", "")), "joinedHyphens");
|
|
38
38
|
var scaffolding = new Set(words("what which how many much who where when is are was were do does did can could should we the a an for of to under from in on at has have \u0441\u043A\u043E\u043B\u044C\u043A\u043E \u043A\u0430\u043A\u043E\u0439 \u043A\u0430\u043A\u0430\u044F \u043A\u0430\u043A\u0438\u0435 \u043A\u0430\u043A\u043E\u0435 \u043A\u0442\u043E \u043A\u043E\u043C\u0443 \u043A\u0435\u043C \u0433\u0434\u0435 \u043A\u043E\u0433\u0434\u0430 \u043A\u0430\u043A \u0447\u0442\u043E \u0432\u043E \u043F\u043E \u043D\u0430 \u0432 \u043A \u0441 \u0443 \u0447\u0435\u0440\u0435\u0437 \u043B\u0438 \u0434\u043E\u043B\u0436\u0435\u043D \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0443\u0436\u043D\u043E \u0438\u0434\u0451\u0442 \u0438\u0434\u0435\u0442 \u043C\u043E\u0436\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043C\u043E\u0433\u0443\u0442"));
|
|
@@ -169,7 +169,7 @@ var questionLookup = /* @__PURE__ */ __name((text) => {
|
|
|
169
169
|
return terms.length ? anyOfTerms(terms, plan.scope) : void 0;
|
|
170
170
|
}, "questionLookup");
|
|
171
171
|
|
|
172
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
172
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/services/meeting-hit-search.js
|
|
173
173
|
var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
174
174
|
const { project, tag, topic, ...input } = request;
|
|
175
175
|
input.signal?.throwIfAborted();
|
|
@@ -207,7 +207,7 @@ var resolveMeetingSelection = /* @__PURE__ */ __name(async (store, request) => {
|
|
|
207
207
|
return { input, selection };
|
|
208
208
|
}, "resolveMeetingSelection");
|
|
209
209
|
|
|
210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
210
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.126.1_commander@15_05e4e157d64d32ce6fc62270b9552a1d/node_modules/@wirecat/cli-core/dist/services/meeting-combined.js
|
|
211
211
|
var DEPTH = 200;
|
|
212
212
|
var cursorOf = /* @__PURE__ */ __name((value, key) => {
|
|
213
213
|
if (value === void 0)
|