@wirecat/attio-cli 0.2.0 → 0.2.2
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/CHANGELOG.md +18 -0
- package/contracts/wirecat.json +5 -20
- package/dist/bin/attio.js +2 -2
- package/dist/bundle/agent-3FYEIRN4.js +37 -0
- package/dist/bundle/{all-profiles-LZDKPHN2.js → all-profiles-RAFO3NFW.js} +10 -10
- package/dist/bundle/{anthropic-BF72H77D.js → anthropic-TNR6QJGA.js} +5 -5
- package/dist/bundle/{app-server-H57FZJX5.js → app-server-BXVGXUGQ.js} +61 -61
- package/dist/bundle/attio.js +11 -11
- package/dist/bundle/{bun-WO77T4LG.js → bun-3RTK5XYF.js} +2 -2
- package/dist/bundle/{bun-sqlite-2BP7JDVO.js → bun-sqlite-I5K5Z2ZK.js} +6 -6
- package/dist/bundle/{chunk-CMO5ND3Y.js → chunk-2CS7VHUB.js} +34 -34
- package/dist/bundle/{chunk-XXOTX4M3.js → chunk-2JB5XD5R.js} +7 -7
- package/dist/bundle/{chunk-EQGXEKSV.js → chunk-2PSAS4TT.js} +7 -7
- package/dist/bundle/{chunk-EEPE3SOW.js → chunk-2TLGP7BS.js} +5 -5
- package/dist/bundle/{chunk-X5S5KUSU.js → chunk-3BM6KBWP.js} +19 -19
- package/dist/bundle/{chunk-QLHDUYGE.js → chunk-3JRLPNPO.js} +1 -1
- package/dist/bundle/{chunk-J5P5VSRG.js → chunk-3LMW7U7F.js} +8 -8
- package/dist/bundle/{chunk-G6FQMVKW.js → chunk-4F3FQ5QX.js} +3 -3
- package/dist/bundle/{chunk-LWJ4ZGUM.js → chunk-53BHLQRA.js} +13 -13
- package/dist/bundle/{chunk-EQXT7KO4.js → chunk-62FENOMX.js} +6 -6
- package/dist/bundle/{chunk-JSTBW7F4.js → chunk-6HYTDMOL.js} +6 -6
- package/dist/bundle/{chunk-L5WS6CYZ.js → chunk-6ZBJCBXA.js} +2 -2
- package/dist/bundle/{chunk-Q7BSTQ3T.js → chunk-7626I3P4.js} +1 -1
- package/dist/bundle/{chunk-VW5F6FK3.js → chunk-7JVKQ6NM.js} +4 -4
- package/dist/bundle/{chunk-PMP37KLR.js → chunk-7QH5BZUG.js} +3 -3
- package/dist/bundle/{chunk-ZDBTYBFR.js → chunk-7WS4ONXZ.js} +3 -3
- package/dist/bundle/{chunk-MT2ZUZRA.js → chunk-AHPGTDO2.js} +43 -64
- package/dist/bundle/{chunk-GBZ6JUXU.js → chunk-AMRELFBT.js} +2 -2
- package/dist/bundle/{chunk-S7K2XFQB.js → chunk-APNSAKSO.js} +6 -6
- package/dist/bundle/{chunk-DSRXCLPO.js → chunk-AV2ZJ4WX.js} +1 -1
- package/dist/bundle/{chunk-2E6JGBM5.js → chunk-AXGSAG53.js} +14 -14
- package/dist/bundle/{chunk-I3WS6V5H.js → chunk-B7U5FLPP.js} +8 -8
- package/dist/bundle/{chunk-HG7FT3H3.js → chunk-BDFNXTNK.js} +7 -7
- package/dist/bundle/{chunk-AMUONYQR.js → chunk-BFWERPF6.js} +2 -2
- package/dist/bundle/{chunk-5K3FGXZH.js → chunk-CFQQTDSA.js} +1 -1
- package/dist/bundle/{chunk-VDMIJ3JW.js → chunk-CKG7GIHR.js} +3 -3
- package/dist/bundle/{chunk-X6R74TWX.js → chunk-CZP6C6MX.js} +4 -4
- package/dist/bundle/{chunk-RU5J7DWY.js → chunk-DKSO7UTS.js} +31 -9
- package/dist/bundle/{chunk-IDU4ESRZ.js → chunk-EMZ4MGPD.js} +8 -1
- package/dist/bundle/{chunk-MNQACPXG.js → chunk-FPMWW2HK.js} +25 -25
- package/dist/bundle/{chunk-WK7GLHHL.js → chunk-FRCORPOY.js} +5 -5
- package/dist/bundle/{chunk-G3JTLVVL.js → chunk-GT3HXSKW.js} +7 -7
- package/dist/bundle/{chunk-BUGROVF3.js → chunk-HM6AMYHR.js} +2 -2
- package/dist/bundle/{chunk-3NVOKVRY.js → chunk-HMYJLOXE.js} +343 -274
- package/dist/bundle/{chunk-3I2FGNWO.js → chunk-HVXOA4FO.js} +1 -1
- package/dist/bundle/{chunk-ASCUOOLO.js → chunk-JFFCP52L.js} +1 -1
- package/dist/bundle/{chunk-P4U6AGWD.js → chunk-JSAXTIRX.js} +1 -1
- package/dist/bundle/{chunk-DF2IIO32.js → chunk-JWRI6ZY6.js} +174 -159
- package/dist/bundle/{chunk-4STBJZR4.js → chunk-L7BMGR5W.js} +76 -37
- package/dist/bundle/{chunk-XXLQNHKF.js → chunk-LG6Y4NAT.js} +2 -2
- package/dist/bundle/{chunk-WARIIYSW.js → chunk-LHKVAZ5T.js} +2 -2
- package/dist/bundle/{chunk-GLHFJPYS.js → chunk-LIIOT3AN.js} +3 -3
- package/dist/bundle/{chunk-H7QDPW3D.js → chunk-MG4U6AKG.js} +1 -1
- package/dist/bundle/{chunk-MC2RQ2OB.js → chunk-MHMHZ6GY.js} +1 -1
- package/dist/bundle/{chunk-V6BTAILB.js → chunk-MI6IH5UW.js} +61 -61
- package/dist/bundle/{chunk-KHDXRFJZ.js → chunk-MW2OS2GD.js} +8 -8
- package/dist/bundle/{chunk-6ALPRBNV.js → chunk-NQJ7QMEF.js} +3 -3
- package/dist/bundle/{chunk-OFR3YYT6.js → chunk-NQNFMKL2.js} +1 -1
- package/dist/bundle/{chunk-76RRELCU.js → chunk-NWDO4DE3.js} +958 -550
- package/dist/bundle/{chunk-7MXCUMHG.js → chunk-O4SX6FXT.js} +1 -1
- package/dist/bundle/{chunk-SQHDE3TC.js → chunk-OC35ZLPE.js} +4 -4
- package/dist/bundle/{chunk-MRREDVPY.js → chunk-OHCYBSCA.js} +20 -14
- package/dist/bundle/{chunk-OBXDRUO4.js → chunk-P76XVKVC.js} +1 -1
- package/dist/bundle/{chunk-3YFDZSM3.js → chunk-PRERT2BZ.js} +1 -1
- package/dist/bundle/{chunk-MOSH2KPD.js → chunk-Q2U6DGSV.js} +10 -10
- package/dist/bundle/{chunk-O4A33Y54.js → chunk-QSUFJGTG.js} +2 -2
- package/dist/bundle/{chunk-ERW2WOJT.js → chunk-RKKY3MSZ.js} +1 -1
- package/dist/bundle/{chunk-4SMGM2Q6.js → chunk-SEDD6YZQ.js} +4 -4
- package/dist/bundle/{chunk-Q3JCUUOR.js → chunk-SYBAMYFY.js} +3 -3
- package/dist/bundle/{chunk-ZGADZ4CH.js → chunk-T6DV3ED2.js} +15 -15
- package/dist/bundle/{chunk-JA26HG7T.js → chunk-TUOFAUBR.js} +8 -8
- package/dist/bundle/{chunk-6SK3YB2B.js → chunk-UTTNGFKW.js} +12 -12
- package/dist/bundle/{chunk-CHZ26CW5.js → chunk-UZYL4AMA.js} +61 -58
- package/dist/bundle/{chunk-IXCIQ7FZ.js → chunk-V4JWUVNO.js} +4 -4
- package/dist/bundle/{chunk-34FJ26K2.js → chunk-VQSVE4RD.js} +2 -2
- package/dist/bundle/{chunk-GW4G5KLS.js → chunk-WALQNDXO.js} +8 -8
- package/dist/bundle/{chunk-6NDJDDSQ.js → chunk-WHDVRMB7.js} +35 -35
- package/dist/bundle/{chunk-ESH2QGCA.js → chunk-XQIRF6PS.js} +24 -8
- package/dist/bundle/{chunk-7ZUOI3HY.js → chunk-XSUU7PB7.js} +3 -3
- package/dist/bundle/{chunk-DQ6P3R4B.js → chunk-YBJBYPS7.js} +3 -3
- package/dist/bundle/{chunk-W6F2CQZ6.js → chunk-Z3HZD24R.js} +17 -17
- package/dist/bundle/{chunk-TF7ZGCOK.js → chunk-ZI3IRII7.js} +3 -3
- package/dist/bundle/command-contract-N5X3UOTT.js +37 -0
- package/dist/bundle/{command-server-entry-MNVPYQZ3.js → command-server-entry-ZKWL26Q5.js} +25 -25
- package/dist/bundle/{decode-MQNKNXLK.js → decode-TG45PUJW.js} +5 -5
- package/dist/bundle/{dispatch-TAQ7635E.js → dispatch-JQBAZWCL.js} +8 -8
- package/dist/bundle/{echarts-6ZSUNO4L.js → echarts-AWICNZBO.js} +2 -2
- package/dist/bundle/{embed-PHCCJJ5Z.js → embed-TN6HQUK2.js} +6 -6
- package/dist/bundle/{embedder-WLZZQTKZ.js → embedder-T3KJA3I4.js} +9 -9
- package/dist/bundle/{failure-MR2XVHFP.js → failure-I6AAF5R5.js} +2 -2
- package/dist/bundle/{first-run-64LREHSV.js → first-run-BZUITKMF.js} +12 -12
- package/dist/bundle/first-screen-I23NJLFH.js +37 -0
- package/dist/bundle/{instructions-22GCKNR5.js → instructions-FRJHLLZX.js} +1 -1
- package/dist/bundle/{mcp-CNV7F2XZ.js → mcp-YGOAUNC3.js} +2 -2
- package/dist/bundle/meeting-combined-7ZNV4MZ2.js +24 -0
- package/dist/bundle/{meeting-model-JWDTCGLZ.js → meeting-model-TENJU3OG.js} +11 -11
- package/dist/bundle/{meeting-semantic-375GYPZQ.js → meeting-semantic-ZKOG2XMU.js} +6 -6
- package/dist/bundle/{node-ITDTNRRZ.js → node-3ZISJOEM.js} +2 -2
- package/dist/bundle/{node-sqlite-IRAGRMEZ.js → node-sqlite-KA35X4F4.js} +7 -7
- package/dist/bundle/{oauth-CACOQJEL.js → oauth-C74B6XHN.js} +7 -7
- package/dist/bundle/{open-HU4KHKDR.js → open-CJESRWUG.js} +5 -5
- package/dist/bundle/{openai-JQUPAVKX.js → openai-WLXOXSTV.js} +15 -15
- package/dist/bundle/{process-QS5OHEUK.js → process-JV3KVGJY.js} +1 -1
- package/dist/bundle/{program-QLCUCR76.js → program-HSVLSH7A.js} +694 -477
- package/dist/bundle/{prompt-VA5MKXJU.js → prompt-EEBVB3XG.js} +5 -5
- package/dist/bundle/{recognize-JGA5IVKC.js → recognize-ZFITQZ4W.js} +4 -4
- package/dist/bundle/{remote-NPY2KZQ4.js → remote-RZXSYHOJ.js} +9 -9
- package/dist/bundle/{rerank-4H2QR4XU.js → rerank-2BHYAEO3.js} +7 -7
- package/dist/bundle/{schemas-THAI3G5S.js → schemas-6GTYA2NR.js} +1 -1
- package/dist/bundle/{serve-UH46SZQG.js → serve-G3M5H5JM.js} +9 -9
- package/dist/bundle/server-3ZL5TECF.js +79 -0
- package/dist/bundle/{server-6H7JS6SU.js → server-44WJ5K2W.js} +53 -53
- package/dist/bundle/{sqlite-runtime-EJWEUTBR.js → sqlite-runtime-TRISCWIG.js} +6 -6
- package/dist/bundle/{state-34B6AUQZ.js → state-BF6IMDP2.js} +6 -6
- package/dist/bundle/{store-XSE35P3U.js → store-LZPZC72J.js} +20 -20
- package/dist/bundle/{store-3R4ILTCJ.js → store-VSKYLTLH.js} +22 -18
- package/dist/bundle/store-maintenance-command-IDAYDJLQ.js +66 -0
- package/dist/bundle/surface-OHYA3YS6.js +65 -0
- package/dist/commands/crm.d.ts.map +1 -1
- package/dist/commands/crm.js +2 -0
- package/dist/commands/crm.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/agent-DYTWDBTT.js +0 -37
- package/dist/bundle/command-contract-7M6EPH3D.js +0 -37
- package/dist/bundle/first-screen-YSCAZIYJ.js +0 -37
- package/dist/bundle/meeting-combined-YX3T5WJD.js +0 -24
- package/dist/bundle/server-SR52KBL3.js +0 -79
- package/dist/bundle/store-maintenance-command-ABJARLI4.js +0 -66
- package/dist/bundle/surface-NOTIEJB5.js +0 -65
|
@@ -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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/cli/stdin-field.js
|
|
8
8
|
var fields = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
var readsStdin = /* @__PURE__ */ __name((command, field) => {
|
|
10
10
|
fields.set(command, field);
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
} from "./chunk-Y5E2WNWB.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HM6AMYHR.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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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) => {
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
annotateOption,
|
|
9
9
|
listOf,
|
|
10
10
|
sharedCommand
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JWRI6ZY6.js";
|
|
12
12
|
import {
|
|
13
13
|
readMoment
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SYBAMYFY.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-MI6IH5UW.js";
|
|
55
55
|
import {
|
|
56
56
|
CliError
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-HM6AMYHR.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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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) => {
|
|
@@ -556,6 +556,11 @@ var withQuery = /* @__PURE__ */ __name((command, registry) => {
|
|
|
556
556
|
${fieldsHelp({ ...query, fields: shown }, LIST_QUERY_GUIDE)}`);
|
|
557
557
|
return command;
|
|
558
558
|
}, "withQuery");
|
|
559
|
+
var withWords = /* @__PURE__ */ __name((command, registry, words) => {
|
|
560
|
+
annotate(command, { query: defineQuery(registry), output: { entity: registry.entity } });
|
|
561
|
+
queryWordsAfterOptions(command).argument("[query...]", words);
|
|
562
|
+
return command;
|
|
563
|
+
}, "withWords");
|
|
559
564
|
var unfilteredQuery = /* @__PURE__ */ __name((entity, schema) => ({
|
|
560
565
|
entity,
|
|
561
566
|
backend: "native",
|
|
@@ -662,7 +667,7 @@ var timeBounds = /* @__PURE__ */ __name((term, zone = timezoneOf(), now) => {
|
|
|
662
667
|
const range = dateRange(term.value, upper, term.operator === "range" ? term.lower_inclusive !== false : true, term.operator === "range" ? term.upper_inclusive !== false : true, zone, term.span, now);
|
|
663
668
|
const until = range.upper === void 0 ? void 0 : range.upper - (range.upper_inclusive ? 0 : 1);
|
|
664
669
|
return {
|
|
665
|
-
...range.lower === void 0 ? {} : { since: range.lower },
|
|
670
|
+
...range.lower === void 0 ? {} : { since: range.lower, from: range.lower_inclusive ? range.lower : range.lower + 1 },
|
|
666
671
|
...until === void 0 ? {} : { until },
|
|
667
672
|
meta: {
|
|
668
673
|
timezone: zone,
|
|
@@ -685,7 +690,7 @@ var termField = /* @__PURE__ */ __name((name, type, example, more = {}) => nativ
|
|
|
685
690
|
var queryHelp = /* @__PURE__ */ __name((registry) => `
|
|
686
691
|
${fieldsHelp(registry, LIST_QUERY_GUIDE)}`, "queryHelp");
|
|
687
692
|
|
|
688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
693
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/ports/messenger.js
|
|
689
694
|
var throughWrapper = /* @__PURE__ */ __name((inner, handled, wrap = (_, call) => call) => new Proxy(handled, {
|
|
690
695
|
get: /* @__PURE__ */ __name((own, key) => {
|
|
691
696
|
if (key in own)
|
|
@@ -716,6 +721,7 @@ export {
|
|
|
716
721
|
LIST_QUERY_GUIDE,
|
|
717
722
|
QUERY_ARGUMENT,
|
|
718
723
|
withQuery,
|
|
724
|
+
withWords,
|
|
719
725
|
unfilteredQuery,
|
|
720
726
|
commandPath,
|
|
721
727
|
listQuery,
|
|
@@ -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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
|
|
14
14
|
var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
|
|
15
15
|
var INTEGER = /^-?\d+$/;
|
|
16
16
|
var INT64_MIN = -(2n ** 63n);
|
|
@@ -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-YBJBYPS7.js";
|
|
6
6
|
import {
|
|
7
7
|
meaningFloor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FRCORPOY.js";
|
|
9
9
|
import {
|
|
10
10
|
MESSAGE_PARSING,
|
|
11
11
|
RRF_K
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GT3HXSKW.js";
|
|
13
13
|
import {
|
|
14
14
|
normalize
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3JRLPNPO.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-MI6IH5UW.js";
|
|
25
25
|
import {
|
|
26
26
|
CliError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-HM6AMYHR.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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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)
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
singleLine
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-HM6AMYHR.js";
|
|
7
7
|
import {
|
|
8
8
|
__name
|
|
9
9
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
10
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/domain/tags.js
|
|
12
12
|
var TAG_TYPES = ["chat", "contact", "message", "task"];
|
|
13
13
|
var TAG = /^[a-z0-9-]{1,32}$/;
|
|
14
14
|
var tagOf = /* @__PURE__ */ __name((value) => {
|
|
@@ -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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/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,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VQSVE4RD.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HM6AMYHR.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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
14
14
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
15
15
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
16
16
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
137
137
|
return model;
|
|
138
138
|
}, "speechModel");
|
|
139
139
|
|
|
140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
141
141
|
import { createHash, randomUUID } from "node:crypto";
|
|
142
142
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
143
143
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -3,15 +3,15 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
timezoneOf,
|
|
5
5
|
zonedMoment
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MI6IH5UW.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HM6AMYHR.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
15
15
|
var calendarMoment = /* @__PURE__ */ __name((wanted, flag, { zone, end = false } = {}) => {
|
|
16
16
|
try {
|
|
17
17
|
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
@@ -6,16 +6,16 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
failureContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DKSO7UTS.js";
|
|
10
10
|
import {
|
|
11
11
|
onlineDeps,
|
|
12
12
|
refuseLacking,
|
|
13
13
|
servicesFor,
|
|
14
14
|
storeModeDeps
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HMYJLOXE.js";
|
|
16
16
|
import {
|
|
17
17
|
callerOf
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AMRELFBT.js";
|
|
19
19
|
import {
|
|
20
20
|
DEFAULT_OUTPUT_BYTES,
|
|
21
21
|
ENTITIES,
|
|
@@ -32,26 +32,26 @@ import {
|
|
|
32
32
|
refuseStoreChange,
|
|
33
33
|
sealed,
|
|
34
34
|
startRecording
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-JWRI6ZY6.js";
|
|
36
36
|
import {
|
|
37
37
|
currentCaller,
|
|
38
38
|
keepsSuccess,
|
|
39
39
|
runContextOf,
|
|
40
40
|
withCaller
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-2JB5XD5R.js";
|
|
42
42
|
import {
|
|
43
43
|
MAX_BUFFERED_INPUT
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-LG6Y4NAT.js";
|
|
45
45
|
import {
|
|
46
46
|
inRun,
|
|
47
47
|
newRunId
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-WHDVRMB7.js";
|
|
49
49
|
import {
|
|
50
50
|
storeDamaged
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-LIIOT3AN.js";
|
|
52
52
|
import {
|
|
53
53
|
traceIdOf
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-3BM6KBWP.js";
|
|
55
55
|
import {
|
|
56
56
|
errorObjectOf,
|
|
57
57
|
itemEnvelopeSchema,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
mcpErrorResult,
|
|
60
60
|
toJsonSchema,
|
|
61
61
|
toStandardJsonSchema
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-3LMW7U7F.js";
|
|
63
63
|
import {
|
|
64
64
|
array,
|
|
65
65
|
boolean,
|
|
@@ -84,15 +84,15 @@ import {
|
|
|
84
84
|
import {
|
|
85
85
|
CliError,
|
|
86
86
|
errorCodes
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-HM6AMYHR.js";
|
|
88
88
|
import {
|
|
89
89
|
__name
|
|
90
90
|
} from "./chunk-ZVVMGPBJ.js";
|
|
91
91
|
|
|
92
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
92
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
93
93
|
import { randomUUID } from "node:crypto";
|
|
94
94
|
|
|
95
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
95
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
96
96
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
97
97
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
98
98
|
var message = pipe(
|
|
@@ -351,7 +351,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
351
351
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(storeDamaged(error), context))));
|
|
352
352
|
}, "failed");
|
|
353
353
|
|
|
354
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
355
355
|
var MATCHES = 8;
|
|
356
356
|
var ANSWER = answerSchema();
|
|
357
357
|
var agentAnswer = /* @__PURE__ */ __name((prefix, writes) => {
|
|
@@ -408,7 +408,7 @@ var search = /* @__PURE__ */ __name((commands, query) => {
|
|
|
408
408
|
const matched = weights.filter((weight) => weight > 0).length;
|
|
409
409
|
const exact = normal(entry[0]) === named || (entry[1].aliases ?? []).some((alias) => normal(alias) === named);
|
|
410
410
|
return { entry, matched, rank: (exact ? 1e3 : 0) + matched * 10 + weights.reduce((a, b) => a + b, 0) };
|
|
411
|
-
}).filter(({ matched, rank }) => matched > 0 || rank >= 1e3).sort((a, b) => b.rank - a.rank || a.entry[0].localeCompare(b.entry[0])).map(({ entry }) => entry);
|
|
411
|
+
}).filter(({ matched, rank }) => matched > 0 || rank >= 1e3).sort((a, b) => b.rank - a.rank || wordsOf(a.entry[0]).length - wordsOf(b.entry[0]).length || a.entry[0].localeCompare(b.entry[0])).map(({ entry }) => entry);
|
|
412
412
|
}, "search");
|
|
413
413
|
var nearest = /* @__PURE__ */ __name((commands, asked) => {
|
|
414
414
|
const words = normal(asked).split(" ");
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
AUDIT_MIN_SCORE
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HMYJLOXE.js";
|
|
6
6
|
import {
|
|
7
7
|
LIST_QUERY_GUIDE,
|
|
8
8
|
nativeTerms
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OHCYBSCA.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_CONFIG,
|
|
12
12
|
environmentOf,
|
|
@@ -16,21 +16,21 @@ import {
|
|
|
16
16
|
renderAnswer,
|
|
17
17
|
snakeKeys,
|
|
18
18
|
withAgentLevels
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-JWRI6ZY6.js";
|
|
20
20
|
import {
|
|
21
21
|
formatReference
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-WHDVRMB7.js";
|
|
23
23
|
import {
|
|
24
24
|
queryError
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MI6IH5UW.js";
|
|
26
26
|
import {
|
|
27
27
|
CliError
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-HM6AMYHR.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.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
34
34
|
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
35
35
|
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
36
36
|
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
@@ -57,7 +57,7 @@ var pagingOf = /* @__PURE__ */ __name((command) => {
|
|
|
57
57
|
return { limit: limit ?? DEFAULT_CONFIG.defaults.limit, page: page ?? 1 };
|
|
58
58
|
}, "pagingOf");
|
|
59
59
|
|
|
60
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
60
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
61
61
|
var defined = /* @__PURE__ */ __name((record) => Object.fromEntries(Object.entries(record).filter(([, value]) => value !== void 0)), "defined");
|
|
62
62
|
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
63
63
|
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
updateCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7QH5BZUG.js";
|
|
6
6
|
import {
|
|
7
7
|
QUESTIONS,
|
|
8
8
|
readSetupAnswers,
|
|
9
9
|
unanswered,
|
|
10
10
|
writeSetupAnswers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4F3FQ5QX.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_STEMMERS,
|
|
14
14
|
LANGUAGES
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WALQNDXO.js";
|
|
16
16
|
import {
|
|
17
17
|
sharedConfigPath
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2PSAS4TT.js";
|
|
19
19
|
import {
|
|
20
20
|
installerOf
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-HVXOA4FO.js";
|
|
22
22
|
import {
|
|
23
23
|
storePath
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-VQSVE4RD.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.708.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_81d85e6e33f43ec6c2f1405ef858ec13/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
30
30
|
import { spawnSync } from "node:child_process";
|
|
31
31
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
32
32
|
import { delimiter, join } from "node:path";
|
|
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
84
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
85
85
|
}, "suggested");
|
|
86
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
87
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-VSKYLTLH.js");
|
|
88
88
|
const store = await openStore({ env });
|
|
89
89
|
let rebuild = false;
|
|
90
90
|
try {
|
|
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
113
113
|
if (!rebuild)
|
|
114
114
|
return;
|
|
115
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
116
|
-
import("./open-
|
|
117
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-CJESRWUG.js"),
|
|
117
|
+
import("./store-maintenance-command-IDAYDJLQ.js")
|
|
118
118
|
]);
|
|
119
119
|
const database = await openCache(storePath(env));
|
|
120
120
|
try {
|
|
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
126
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
127
127
|
const { command, env, io } = run;
|
|
128
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
129
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-I23NJLFH.js");
|
|
130
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
131
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
132
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -200,7 +200,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
200
200
|
// `setup describe` and `setup apply` are a program's; only the bare walk-through asks everything again.
|
|
201
201
|
all: start.path.length === 1 && start.path[0] === "setup",
|
|
202
202
|
io: {
|
|
203
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
203
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-EEBVB3XG.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
204
204
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
205
205
|
`), "say")
|
|
206
206
|
}
|