@wirecat/tg-cli 0.100.0 → 0.101.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/README.md +3 -3
- package/dist/bin/tg.js +1 -1
- package/dist/bundle/{adapter-2LVPMFKF.js → adapter-A3VD4Y6Z.js} +24 -24
- package/dist/bundle/{all-profiles-BLTK2AAB.js → all-profiles-UPVNHXB2.js} +16 -7
- package/dist/bundle/{anthropic-RJE4XEOO.js → anthropic-IRKNWPIB.js} +5 -5
- package/dist/bundle/{bot-api-4XM3NVWG.js → bot-api-UNTQG2M5.js} +48 -48
- package/dist/bundle/{bot-history-WVM5GEQN.js → bot-history-V4RTY5K7.js} +15 -15
- package/dist/bundle/{bun-UZXO2LRQ.js → bun-2JZPG2NL.js} +2 -2
- package/dist/bundle/{bun-sqlite-GJLGSQIT.js → bun-sqlite-TZHKM225.js} +4 -4
- package/dist/bundle/{chunk-V4JSVH4M.js → chunk-22PQUX72.js} +2 -2
- package/dist/bundle/{chunk-MQNFEVAH.js → chunk-2DGOFLDA.js} +2 -2
- package/dist/bundle/{chunk-2IM4M7Q2.js → chunk-2XBSVRT2.js} +1 -1
- package/dist/bundle/{chunk-HKT5EOT5.js → chunk-4ZS73HTJ.js} +1 -1
- package/dist/bundle/{chunk-SMJTL5U7.js → chunk-54R2GDQ3.js} +6 -4
- package/dist/bundle/{chunk-2MXQ2EUN.js → chunk-5GKXETRP.js} +21 -20
- package/dist/bundle/{chunk-GTURDJJD.js → chunk-5KU4UQBM.js} +1 -1
- package/dist/bundle/{chunk-JFJVS5JC.js → chunk-5TPT2S2Z.js} +2 -2
- package/dist/bundle/{chunk-SYPL4PHV.js → chunk-64DK7S4F.js} +1 -1
- package/dist/bundle/{chunk-BAIZAZ6Q.js → chunk-6IPY2QRG.js} +2 -2
- package/dist/bundle/{chunk-I6WZJVRT.js → chunk-7CBUCTB6.js} +55 -36
- package/dist/bundle/{chunk-LI7TXFLS.js → chunk-A5JSTZZZ.js} +3 -3
- package/dist/bundle/{chunk-OW3COBN5.js → chunk-ACGTFLEB.js} +9 -9
- package/dist/bundle/{chunk-Q26JMPBP.js → chunk-BX6HH4F6.js} +11 -11
- package/dist/bundle/{chunk-CV5ASHTW.js → chunk-BXQS5RCE.js} +45 -45
- package/dist/bundle/{chunk-MUEXF4ME.js → chunk-CJ6IYCYP.js} +12 -11
- package/dist/bundle/{chunk-GYEOQS2D.js → chunk-DG62L57H.js} +17 -17
- package/dist/bundle/{chunk-4U7QOFDA.js → chunk-DYNSP6FW.js} +445 -236
- package/dist/bundle/{chunk-HXTTDIL7.js → chunk-F7TDFWXY.js} +3 -3
- package/dist/bundle/{chunk-P26LWFNZ.js → chunk-G2US6LJB.js} +1 -1
- package/dist/bundle/{chunk-KE6L2UEG.js → chunk-G3ZRY436.js} +70 -61
- package/dist/bundle/{chunk-QY3YOOTP.js → chunk-G77QOTXE.js} +2 -2
- package/dist/bundle/{chunk-6YLT4YVJ.js → chunk-H6OXALTJ.js} +2 -2
- package/dist/bundle/{chunk-WKOY3POD.js → chunk-LPB2MDUW.js} +7 -7
- package/dist/bundle/{chunk-66E5QDLH.js → chunk-MLLJ74LM.js} +1 -1
- package/dist/bundle/{chunk-6VEOR6GD.js → chunk-N5UFBWDM.js} +6 -6
- package/dist/bundle/{chunk-THVNP6S6.js → chunk-NC5WS7OP.js} +2 -2
- package/dist/bundle/{chunk-YG7PNCSW.js → chunk-NKJJJAIJ.js} +10 -3
- package/dist/bundle/{chunk-DVOUKGFK.js → chunk-NMGO6LW6.js} +8 -8
- package/dist/bundle/{chunk-QU2FJMFB.js → chunk-ODSVNH3H.js} +798 -492
- package/dist/bundle/{chunk-WE3LBRMB.js → chunk-OEJ5DMCX.js} +7 -7
- package/dist/bundle/{chunk-3N6LXAPE.js → chunk-OILBDLWL.js} +10 -10
- package/dist/bundle/{chunk-U7LXA4SO.js → chunk-OPBTNQ35.js} +11 -11
- package/dist/bundle/{chunk-OOOV3JBZ.js → chunk-PUBS2F5J.js} +953 -677
- package/dist/bundle/{chunk-H3X5LS6U.js → chunk-PYTOIDSM.js} +4 -4
- package/dist/bundle/{chunk-RER6DAHP.js → chunk-QOWSVDPZ.js} +157 -145
- package/dist/bundle/{chunk-2XUGPE5W.js → chunk-QYVVRQTN.js} +3 -3
- package/dist/bundle/{chunk-RDQMV6EU.js → chunk-RF54YDBB.js} +4 -4
- package/dist/bundle/{chunk-3QDPV34J.js → chunk-RVCS7Q3A.js} +51 -47
- package/dist/bundle/{chunk-4YCLWWZ3.js → chunk-S2JSZWEC.js} +11 -11
- package/dist/bundle/{chunk-SGJYU3SB.js → chunk-S7ZNLLY5.js} +3 -3
- package/dist/bundle/{chunk-JSKT5UZX.js → chunk-TGREFJVA.js} +8 -8
- package/dist/bundle/{chunk-4VBDVZNE.js → chunk-U46UNBMT.js} +15 -15
- package/dist/bundle/{chunk-BL36RR34.js → chunk-UN6CKIBN.js} +4 -4
- package/dist/bundle/chunk-VA5YEJS3.js +161 -0
- package/dist/bundle/{chunk-DN4QUTWU.js → chunk-VCGL2ETF.js} +1 -1
- package/dist/bundle/{chunk-UMLPXNJI.js → chunk-VRSN7VLO.js} +1 -1
- package/dist/bundle/{chunk-ATZ44Z77.js → chunk-VYDTI254.js} +108 -29
- package/dist/bundle/{chunk-UD4DOZCN.js → chunk-W2336E7Y.js} +6 -6
- package/dist/bundle/{chunk-3S5CL55R.js → chunk-XCKD54TN.js} +6 -6
- package/dist/bundle/{chunk-A7OBVRJV.js → chunk-ZEOCU24Z.js} +3 -3
- package/dist/bundle/{chunk-BZANDKWT.js → chunk-ZJVZXJOG.js} +2 -2
- package/dist/bundle/{chunk-ASDZHG5I.js → chunk-ZV24I2UJ.js} +2 -2
- package/dist/bundle/command-contract-TKDI7E56.js +31 -0
- package/dist/bundle/{echarts-YHSYUWLY.js → echarts-QZ6PR3VC.js} +2 -2
- package/dist/bundle/{embed-3HGI2XIW.js → embed-UBXCXSRD.js} +4 -4
- package/dist/bundle/{embedder-2CJMZETJ.js → embedder-B4ZTKC23.js} +7 -7
- package/dist/bundle/{entry-UVE53OV3.js → entry-BTUTHO5M.js} +5 -5
- package/dist/bundle/{first-run-6GYC2QS3.js → first-run-UC4HRIFV.js} +9 -9
- package/dist/bundle/first-screen-SMCX6YKY.js +29 -0
- package/dist/bundle/{identity-HEV5E57G.js → identity-QSDEGDH7.js} +3 -3
- package/dist/bundle/{instructions-5UVAXSQV.js → instructions-BBGLZKO3.js} +1 -1
- package/dist/bundle/{mcp-NWXBVNUA.js → mcp-4Y37G2UY.js} +2 -2
- package/dist/bundle/{node-YHYEGYVE.js → node-LZZX22VR.js} +2 -2
- package/dist/bundle/{node-sqlite-CQ33A3R2.js → node-sqlite-BPGT6T5U.js} +4 -4
- package/dist/bundle/{oauth-OB3JFAD7.js → oauth-XNE2KPKJ.js} +6 -6
- package/dist/bundle/{open-JHGZIXU2.js → open-SXGYZLB5.js} +3 -3
- package/dist/bundle/{process-PSKS3N5B.js → process-GPUXC4PG.js} +1 -1
- package/dist/bundle/{program-RPYVPNRX.js → program-NEXEAL7T.js} +51 -51
- package/dist/bundle/{prompt-7BXUMJGG.js → prompt-SORGLEYI.js} +4 -4
- package/dist/bundle/{proxy-transport-3EEMW2HW.js → proxy-transport-G4MA6BGU.js} +4 -4
- package/dist/bundle/{recognize-YMZPL47R.js → recognize-UJBXORVD.js} +5 -5
- package/dist/bundle/{remote-LQ3Q22NG.js → remote-W72AR7KH.js} +5 -5
- package/dist/bundle/{rerank-SM7IYVXJ.js → rerank-3Y2VZM3J.js} +5 -5
- package/dist/bundle/{serve-GHUEP5H5.js → serve-VDZIVOPR.js} +23 -8
- package/dist/bundle/{server-K2BQPPHN.js → server-BERXP4GW.js} +52 -52
- package/dist/bundle/{server-A45HVXQY.js → server-ZFHN4GUF.js} +34 -34
- package/dist/bundle/{state-WIOL52GZ.js → state-DGR4EE3E.js} +9 -5
- package/dist/bundle/{store-XE5AKUJZ.js → store-MRCFSCZD.js} +10 -10
- package/dist/bundle/store-maintenance-command-DCMZDMYS.js +46 -0
- package/dist/bundle/tg.js +4 -4
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +2 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/program.js +1 -1
- package/dist/program.js.map +1 -1
- package/dist/telegram/errors.js +1 -1
- package/dist/telegram/errors.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/install/windows.ps1 +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +4 -4
- package/dist/bundle/chunk-Z2FHEIXN.js +0 -63
- package/dist/bundle/command-contract-AIVKJYIR.js +0 -31
- package/dist/bundle/first-screen-HRRLVLOG.js +0 -29
- package/dist/bundle/store-maintenance-command-YS5E7VUN.js +0 -46
- /package/dist/bundle/{chunk-3MVHRZWR.js → chunk-2SJOUK6J.js} +0 -0
|
@@ -6,20 +6,20 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-U46UNBMT.js";
|
|
10
10
|
import {
|
|
11
11
|
failureContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NKJJJAIJ.js";
|
|
13
13
|
import {
|
|
14
14
|
lentConnection,
|
|
15
15
|
onlineDeps,
|
|
16
16
|
refuseLacking,
|
|
17
17
|
servicesFor,
|
|
18
18
|
storeModeDeps
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DYNSP6FW.js";
|
|
20
20
|
import {
|
|
21
21
|
ENTITIES
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-QOWSVDPZ.js";
|
|
23
23
|
import {
|
|
24
24
|
DEFAULT_OUTPUT_BYTES,
|
|
25
25
|
LOCAL_WRITE,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
runContextOf,
|
|
36
36
|
sealed,
|
|
37
37
|
startRecording
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-RVCS7Q3A.js";
|
|
39
39
|
import {
|
|
40
40
|
authorityAllowed,
|
|
41
41
|
botApiAllowed,
|
|
@@ -44,15 +44,15 @@ import {
|
|
|
44
44
|
levelFor,
|
|
45
45
|
newRunId,
|
|
46
46
|
readKeysForCommand
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-OPBTNQ35.js";
|
|
48
48
|
import {
|
|
49
49
|
MAX_BUFFERED_INPUT
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-6IPY2QRG.js";
|
|
51
51
|
import {
|
|
52
52
|
captureStreams,
|
|
53
53
|
errorObjectOf,
|
|
54
54
|
mcpErrorResult
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-DG62L57H.js";
|
|
56
56
|
import {
|
|
57
57
|
CliError,
|
|
58
58
|
SNAKE_CASE,
|
|
@@ -91,15 +91,15 @@ import {
|
|
|
91
91
|
unknown,
|
|
92
92
|
word,
|
|
93
93
|
writes
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-OEJ5DMCX.js";
|
|
95
95
|
import {
|
|
96
96
|
__name
|
|
97
97
|
} from "./chunk-AFV74GK3.js";
|
|
98
98
|
|
|
99
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
99
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
100
100
|
import { Readable } from "node:stream";
|
|
101
101
|
|
|
102
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
102
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
103
103
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
104
104
|
var lintRuleSchema = strictObject({
|
|
105
105
|
id: word,
|
|
@@ -226,7 +226,7 @@ var overridesSchema = array(strictObject({
|
|
|
226
226
|
review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
|
|
227
227
|
}));
|
|
228
228
|
|
|
229
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
229
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
|
|
230
230
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
231
231
|
var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
|
|
232
232
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -284,7 +284,7 @@ var PARITY_GROUPS = defineParityGroups([
|
|
|
284
284
|
{ name: "messengers", members: ["tg", "max"], covers: "tree", differences: [] },
|
|
285
285
|
{
|
|
286
286
|
name: "all",
|
|
287
|
-
members: ["tg", "max", "memo", "drive", "zm", "wa"],
|
|
287
|
+
members: ["tg", "max", "memo", "drive", "zm", "wa", "gcal"],
|
|
288
288
|
covers: ["commands", "doctor", "skill", "mcp", "upgrade", "search", "notes", "meetings"],
|
|
289
289
|
differences: []
|
|
290
290
|
}
|
|
@@ -300,7 +300,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
300
300
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
301
301
|
]);
|
|
302
302
|
|
|
303
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
303
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
|
|
304
304
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
305
305
|
var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
|
|
306
306
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -316,7 +316,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
316
316
|
}
|
|
317
317
|
]);
|
|
318
318
|
|
|
319
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
319
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
|
|
320
320
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
321
321
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
322
322
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -338,7 +338,68 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
338
338
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
339
339
|
]);
|
|
340
340
|
|
|
341
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
341
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
|
|
342
|
+
var CALENDAR_FLAGS = [
|
|
343
|
+
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
344
|
+
{
|
|
345
|
+
name: "--start-date",
|
|
346
|
+
value: "<date>",
|
|
347
|
+
role: "value",
|
|
348
|
+
type: "time",
|
|
349
|
+
meaning: "the first day of something that lasts whole days, such as an all-day event"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
name: "--end-date",
|
|
353
|
+
value: "<date>",
|
|
354
|
+
role: "value",
|
|
355
|
+
type: "time",
|
|
356
|
+
meaning: "the last day of something that lasts whole days, such as an all-day event"
|
|
357
|
+
},
|
|
358
|
+
{ name: "--location", value: "<text>", role: "value", type: "string", meaning: "where it takes place" },
|
|
359
|
+
{
|
|
360
|
+
name: "--attendee",
|
|
361
|
+
value: "<email>",
|
|
362
|
+
role: "value",
|
|
363
|
+
type: "string",
|
|
364
|
+
meaning: "a person invited to the event, by email address; repeat it for more"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
name: "--id",
|
|
368
|
+
value: "<id>",
|
|
369
|
+
role: "value",
|
|
370
|
+
type: "id",
|
|
371
|
+
meaning: "the id to create it with, chosen beforehand, so a retry finds it instead of making a second one"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
name: "--calendar",
|
|
375
|
+
value: "<id>",
|
|
376
|
+
role: "target",
|
|
377
|
+
type: "id",
|
|
378
|
+
meaning: "the calendar it acts on, when the thing is on more than one"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
name: "--repeat",
|
|
382
|
+
value: "<rule>",
|
|
383
|
+
role: "value",
|
|
384
|
+
type: "string",
|
|
385
|
+
meaning: "how it repeats, as an RFC 5545 rule such as FREQ=WEEKLY;BYDAY=MO;COUNT=10"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
name: "--hours",
|
|
389
|
+
value: "<from-to>",
|
|
390
|
+
role: "target",
|
|
391
|
+
type: "string",
|
|
392
|
+
meaning: "the working hours of each day to look in, such as 09:00-17:00, in the owner's time zone"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
name: "--series",
|
|
396
|
+
role: "target",
|
|
397
|
+
type: "switch",
|
|
398
|
+
meaning: "act on the whole repeating event, not only this occurrence"
|
|
399
|
+
}
|
|
400
|
+
];
|
|
401
|
+
|
|
402
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
|
|
342
403
|
var HOW_FLAGS = [
|
|
343
404
|
{
|
|
344
405
|
name: "--limit",
|
|
@@ -649,7 +710,13 @@ var HOW_FLAGS = [
|
|
|
649
710
|
meaning: "do not keep this run, whatever the configuration says"
|
|
650
711
|
},
|
|
651
712
|
{ name: "--no-registries", role: "mode", type: "switch", meaning: "do not ask the public ban lists" },
|
|
652
|
-
{
|
|
713
|
+
{
|
|
714
|
+
name: "--notify",
|
|
715
|
+
role: "mode",
|
|
716
|
+
type: "switch",
|
|
717
|
+
meaning: "tell the people it concerns about it: the chat's members, or an event's attendees"
|
|
718
|
+
},
|
|
719
|
+
{ name: "--no-notify", role: "mode", type: "switch", meaning: "tell nobody about it" },
|
|
653
720
|
{ name: "--offline", role: "mode", type: "switch", meaning: "answer from what was recorded and never connect" },
|
|
654
721
|
{
|
|
655
722
|
name: "--operation-id",
|
|
@@ -1312,7 +1379,7 @@ var HOW_FLAGS = [
|
|
|
1312
1379
|
}
|
|
1313
1380
|
];
|
|
1314
1381
|
|
|
1315
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1382
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
|
|
1316
1383
|
var WHAT_FLAGS = [
|
|
1317
1384
|
{
|
|
1318
1385
|
name: "--analysis-provider",
|
|
@@ -2295,7 +2362,7 @@ var WHAT_FLAGS = [
|
|
|
2295
2362
|
}
|
|
2296
2363
|
];
|
|
2297
2364
|
|
|
2298
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2365
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.64.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
|
|
2299
2366
|
var FLAG_TYPES = [
|
|
2300
2367
|
"switch",
|
|
2301
2368
|
"count",
|
|
@@ -2412,6 +2479,7 @@ var verbs = [
|
|
|
2412
2479
|
"bring the local store up to date from the source: only what changed, or the whole list where the source cannot say; a mirror syncs both ways"
|
|
2413
2480
|
],
|
|
2414
2481
|
["fetch", "one bounded pull of one named thing into the store, not a catch-up"],
|
|
2482
|
+
["unsync", "stop syncing a thing; what the store already holds stays"],
|
|
2415
2483
|
["export", "write from the store to a file"],
|
|
2416
2484
|
["import", "bring a file or list the user gives into the store or the messenger, once"],
|
|
2417
2485
|
["download", "save a file from the source to this machine"],
|
|
@@ -2442,6 +2510,7 @@ var verbs = [
|
|
|
2442
2510
|
["unstar", "take the owner's star off a message"],
|
|
2443
2511
|
["vote", "answer a poll"],
|
|
2444
2512
|
["answer", "reply to a button someone pressed under a bot's message"],
|
|
2513
|
+
["respond", "answer an invitation: accept, tentatively accept or decline it"],
|
|
2445
2514
|
["press", "press a button under a bot's message; the bot sees who pressed it"],
|
|
2446
2515
|
["action", "show what a bot is doing in a chat, such as typing, for a few seconds"],
|
|
2447
2516
|
["watch", "follow new events as they come, and keep them"],
|
|
@@ -2464,6 +2533,8 @@ var verbs = [
|
|
|
2464
2533
|
["acknowledge", "record successful delivery using the exact receipt issued when the item was claimed"],
|
|
2465
2534
|
["confirm", "the owner accepts what an agent proposed"],
|
|
2466
2535
|
["reject", "the owner refuses what an agent proposed"],
|
|
2536
|
+
["review", "list what waits for the owner's decision"],
|
|
2537
|
+
["resolve", "settle one thing that waits for the owner's decision, with the owner's choice"],
|
|
2467
2538
|
["move", "move a file in the source"],
|
|
2468
2539
|
["copy", "copy a file in the source"],
|
|
2469
2540
|
["run", "run a saved job once, now, as its timer would"],
|
|
@@ -2530,6 +2601,9 @@ var collections = [
|
|
|
2530
2601
|
["files", "files in the source, such as Google Drive, read and changed there"],
|
|
2531
2602
|
["comments", "comments people left on a thing in the source: a channel post or a file"],
|
|
2532
2603
|
["meetings", "stored meetings, from Zoom or another provider"],
|
|
2604
|
+
["calendars", "calendars of an account, each synced or not"],
|
|
2605
|
+
["events", "calendar entries: meetings, appointments and other things on a calendar"],
|
|
2606
|
+
["people", "persons the owner deals with, such as the attendees of events"],
|
|
2533
2607
|
["recordings", "the files a provider recorded of a meeting"],
|
|
2534
2608
|
["jobs", "work this tool runs in the background or on a timer"],
|
|
2535
2609
|
["actions", "what an agent proposes to do; the owner confirms or rejects each"],
|
|
@@ -2591,6 +2665,7 @@ var views = [
|
|
|
2591
2665
|
["evidence", "the stored messages or lines a result or a reference rests on"],
|
|
2592
2666
|
["passage", "a cited transcript line with bounded surrounding lines from the same revision"],
|
|
2593
2667
|
["agenda", "what needs a look today"],
|
|
2668
|
+
["busy", "when calendars or people are taken, without what takes them"],
|
|
2594
2669
|
["categories", "the categories a thing takes, with what each means"],
|
|
2595
2670
|
["domains", "the internet domains links point to, most linked first"],
|
|
2596
2671
|
["places", "the street addresses confirmed as places, most mentioned first"],
|
|
@@ -2636,10 +2711,10 @@ var VOCABULARY = defineVocabulary({
|
|
|
2636
2711
|
],
|
|
2637
2712
|
views: views.map(([entry, meaning]) => ({ word: entry, meaning })),
|
|
2638
2713
|
roots: roots.map(([entry, meaning]) => ({ word: entry, meaning })),
|
|
2639
|
-
flags: [...HOW_FLAGS, ...WHAT_FLAGS]
|
|
2714
|
+
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS]
|
|
2640
2715
|
});
|
|
2641
2716
|
|
|
2642
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2717
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2643
2718
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2644
2719
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2645
2720
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -2664,9 +2739,10 @@ var optionKind = /* @__PURE__ */ __name((option, long) => {
|
|
|
2664
2739
|
return "repeat";
|
|
2665
2740
|
return /\.\.\.[>\]]/.test(option.flags) ? "variadic" : "text";
|
|
2666
2741
|
}, "optionKind");
|
|
2667
|
-
var
|
|
2742
|
+
var CLEARS = /\bempty clears\b/;
|
|
2743
|
+
var optionField = /* @__PURE__ */ __name((option, long, negated) => {
|
|
2668
2744
|
const kind = optionKind(option, long);
|
|
2669
|
-
const about = option.description;
|
|
2745
|
+
const about = negated ? `${option.description}; false: ${negated.description}` : option.description;
|
|
2670
2746
|
const schema = kind === "switch" ? pipe(boolean(), description(about)) : option.choices ? pipe(picklist(option.choices), description(about)) : kind === "count" ? (
|
|
2671
2747
|
// The command judges the range: `--thread-hops 0` is one, `--limit 0` is not.
|
|
2672
2748
|
pipe(number(), integer(), minValue(0), description(about))
|
|
@@ -2676,7 +2752,7 @@ var optionField = /* @__PURE__ */ __name((option, long, negatable = false) => {
|
|
|
2676
2752
|
) : kind === "variadic" ? pipe(array(text2("one value")), minLength(1), description(about)) : kind === "json" ? (
|
|
2677
2753
|
// A next step hands back the object an answer gave; the command takes it as JSON text.
|
|
2678
2754
|
pipe(union([string(), record(string(), unknown())]), description(about))
|
|
2679
|
-
) : text2(about);
|
|
2755
|
+
) : CLEARS.test(about) ? pipe(string(), regex(/^(?!-$)/, "not only -"), description(about)) : text2(about);
|
|
2680
2756
|
return {
|
|
2681
2757
|
name: snake(long.slice(2)),
|
|
2682
2758
|
required: option.mandatory,
|
|
@@ -2684,7 +2760,7 @@ var optionField = /* @__PURE__ */ __name((option, long, negatable = false) => {
|
|
|
2684
2760
|
positional: false,
|
|
2685
2761
|
argv: /* @__PURE__ */ __name((value) => {
|
|
2686
2762
|
if (kind === "switch")
|
|
2687
|
-
return value === true ? [long] :
|
|
2763
|
+
return value === true ? [long] : negated ? [`--no-${long.slice(2)}`] : [];
|
|
2688
2764
|
if (kind === "variadic")
|
|
2689
2765
|
return value.map((one) => `${long}=${String(one)}`);
|
|
2690
2766
|
if (kind === "repeat")
|
|
@@ -2728,12 +2804,15 @@ var fieldsOf = /* @__PURE__ */ __name((info, { omit = [], offline = false, stdin
|
|
|
2728
2804
|
const read = stdin?.(info.path);
|
|
2729
2805
|
if (read)
|
|
2730
2806
|
fields.push(stdinField(read));
|
|
2731
|
-
const
|
|
2807
|
+
const switches = new Map(info.options.filter((one) => !one.takes_value).map((one) => [longOf(one), one]));
|
|
2732
2808
|
for (const option of info.options) {
|
|
2733
2809
|
const long = longOf(option);
|
|
2734
2810
|
if (!long || option.mcp === false)
|
|
2735
2811
|
continue;
|
|
2736
|
-
const
|
|
2812
|
+
const positive = long.startsWith("--no-") ? switches.get(`--${long.slice(5)}`) : void 0;
|
|
2813
|
+
if (positive && positive.mcp !== false)
|
|
2814
|
+
continue;
|
|
2815
|
+
const field = optionField(option, long, option.takes_value ? void 0 : switches.get(`--no-${long.slice(2)}`));
|
|
2737
2816
|
if (!fields.some((existing) => existing.name === field.name))
|
|
2738
2817
|
fields.push(field);
|
|
2739
2818
|
}
|
|
@@ -2846,7 +2925,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
2846
2925
|
}
|
|
2847
2926
|
}, "runCommandForAgent");
|
|
2848
2927
|
|
|
2849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
2850
2929
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
2851
2930
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
2852
2931
|
var message = pipe(
|
|
@@ -3097,7 +3176,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3097
3176
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3098
3177
|
}, "failed");
|
|
3099
3178
|
|
|
3100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3179
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3101
3180
|
var MATCHES = 8;
|
|
3102
3181
|
var ANSWER = answerSchema();
|
|
3103
3182
|
var normal = /* @__PURE__ */ __name((command) => command.trim().toLowerCase().split(/[\s_-]+/).join(" "), "normal");
|
|
@@ -2,23 +2,23 @@ import { createRequire as __tgRequire } from "node:module";
|
|
|
2
2
|
const require = __tgRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
storePath
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-G77QOTXE.js";
|
|
6
6
|
import {
|
|
7
7
|
resolvePaths,
|
|
8
8
|
singleLine
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DG62L57H.js";
|
|
10
10
|
import {
|
|
11
11
|
CliError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OEJ5DMCX.js";
|
|
13
13
|
import {
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-AFV74GK3.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
18
18
|
import { mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname, join, resolve } from "node:path";
|
|
20
20
|
|
|
21
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
21
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/domain/task-categories.js
|
|
22
22
|
var DEFAULT_TASK_CATEGORIES = [
|
|
23
23
|
{
|
|
24
24
|
name: "taxes",
|
|
@@ -773,7 +773,7 @@ var storedTaskCategories = /* @__PURE__ */ __name((json) => {
|
|
|
773
773
|
}
|
|
774
774
|
}, "storedTaskCategories");
|
|
775
775
|
|
|
776
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
776
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/store/shared-config.js
|
|
777
777
|
var SECTION = "task_categories";
|
|
778
778
|
var sharedConfigPath = /* @__PURE__ */ __name((store, env = process.env) => {
|
|
779
779
|
const paths = resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env });
|
|
@@ -2,19 +2,19 @@ import { createRequire as __tgRequire } from "node:module";
|
|
|
2
2
|
const require = __tgRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OEJ5DMCX.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-AFV74GK3.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/store/driver.js
|
|
11
11
|
var PRAGMAS = `
|
|
12
12
|
PRAGMA busy_timeout = 5000;
|
|
13
13
|
PRAGMA journal_mode = WAL;
|
|
14
14
|
PRAGMA foreign_keys = ON;
|
|
15
15
|
`;
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/store/sqlite-warning.js
|
|
18
18
|
var SQLITE_WARNING = "SQLite is an experimental feature";
|
|
19
19
|
var quieted = /* @__PURE__ */ new WeakSet();
|
|
20
20
|
var quietSqliteWarning = /* @__PURE__ */ __name((host = process) => {
|
|
@@ -35,7 +35,7 @@ var isSqliteWarning = /* @__PURE__ */ __name((warning, options) => {
|
|
|
35
35
|
return name === "ExperimentalWarning" && message.startsWith(SQLITE_WARNING);
|
|
36
36
|
}, "isSqliteWarning");
|
|
37
37
|
|
|
38
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
38
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/store/open.js
|
|
39
39
|
var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
40
40
|
const database = await openFile(path);
|
|
41
41
|
try {
|
|
@@ -48,12 +48,12 @@ var openCache = /* @__PURE__ */ __name(async (path) => {
|
|
|
48
48
|
}, "openCache");
|
|
49
49
|
var openFile = /* @__PURE__ */ __name((path) => "Bun" in globalThis ? openUnderBun(path) : openUnderNode(path), "openFile");
|
|
50
50
|
var openUnderBun = /* @__PURE__ */ __name(async (path) => {
|
|
51
|
-
const { openWithBunSqlite } = await import("./bun-sqlite-
|
|
51
|
+
const { openWithBunSqlite } = await import("./bun-sqlite-TZHKM225.js");
|
|
52
52
|
return await openWithBunSqlite(path);
|
|
53
53
|
}, "openUnderBun");
|
|
54
54
|
var openUnderNode = /* @__PURE__ */ __name(async (path) => {
|
|
55
55
|
quietSqliteWarning();
|
|
56
|
-
const { openWithNodeSqlite } = await import("./node-sqlite-
|
|
56
|
+
const { openWithNodeSqlite } = await import("./node-sqlite-BPGT6T5U.js");
|
|
57
57
|
return openWithNodeSqlite(path);
|
|
58
58
|
}, "openUnderNode");
|
|
59
59
|
var runtime = /* @__PURE__ */ __name(() => {
|
|
@@ -2,11 +2,11 @@ import { createRequire as __tgRequire } from "node:module";
|
|
|
2
2
|
const require = __tgRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
openCache
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XCKD54TN.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
isCliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OEJ5DMCX.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-AFV74GK3.js";
|
|
@@ -577,7 +577,7 @@ var toCliError = /* @__PURE__ */ __name((error, words, login = words("session.st
|
|
|
577
577
|
if (RpcError.is(error)) {
|
|
578
578
|
const details = { provider_error: error.text, status: error.code };
|
|
579
579
|
if (error.text === "AUTH_KEY_DUPLICATED") {
|
|
580
|
-
return new CliError("authentication_error", `Telegram ended this login because two connections used it at once (tg serve, tg mcp, tg watch or a command beside them) \u2014 run ${login}`, { ...details, reason: "login.duplicated" });
|
|
580
|
+
return new CliError("authentication_error", `Telegram ended this login because two connections used it at once (tg serve, tg mcp serve, tg watch or a command beside them) \u2014 run ${login}`, { ...details, reason: "login.duplicated" });
|
|
581
581
|
}
|
|
582
582
|
const standing = STANDINGS[error.text];
|
|
583
583
|
if (standing) {
|
|
@@ -3,10 +3,10 @@ const require = __tgRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
proxyError,
|
|
5
5
|
proxyLabel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2XBSVRT2.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OEJ5DMCX.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-AFV74GK3.js";
|
|
@@ -2,12 +2,12 @@ import { createRequire as __tgRequire } from "node:module";
|
|
|
2
2
|
const require = __tgRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OEJ5DMCX.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-AFV74GK3.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
11
11
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
12
12
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
13
13
|
const name = envName(app, "READ_ONLY");
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createRequire as __tgRequire } from "node:module";
|
|
2
|
+
const require = __tgRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
SCHEMA_DIALECT,
|
|
5
|
+
commandContract,
|
|
6
|
+
commandPathOf,
|
|
7
|
+
findCommand,
|
|
8
|
+
outputOf
|
|
9
|
+
} from "./chunk-N5UFBWDM.js";
|
|
10
|
+
import "./chunk-QOWSVDPZ.js";
|
|
11
|
+
import "./chunk-RVCS7Q3A.js";
|
|
12
|
+
import "./chunk-OPBTNQ35.js";
|
|
13
|
+
import "./chunk-54R2GDQ3.js";
|
|
14
|
+
import "./chunk-S7ZNLLY5.js";
|
|
15
|
+
import "./chunk-ZV24I2UJ.js";
|
|
16
|
+
import "./chunk-VRSN7VLO.js";
|
|
17
|
+
import "./chunk-G3ZRY436.js";
|
|
18
|
+
import "./chunk-W2336E7Y.js";
|
|
19
|
+
import "./chunk-2SJOUK6J.js";
|
|
20
|
+
import "./chunk-G77QOTXE.js";
|
|
21
|
+
import "./chunk-DG62L57H.js";
|
|
22
|
+
import "./chunk-OEJ5DMCX.js";
|
|
23
|
+
import "./chunk-BJG6JA5U.js";
|
|
24
|
+
import "./chunk-AFV74GK3.js";
|
|
25
|
+
export {
|
|
26
|
+
SCHEMA_DIALECT,
|
|
27
|
+
commandContract,
|
|
28
|
+
commandPathOf,
|
|
29
|
+
findCommand,
|
|
30
|
+
outputOf
|
|
31
|
+
};
|
|
@@ -42399,7 +42399,7 @@ function install11(registers) {
|
|
|
42399
42399
|
}
|
|
42400
42400
|
__name(install11, "install");
|
|
42401
42401
|
|
|
42402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42402
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/charts/echarts-option.js
|
|
42403
42403
|
var echartsOption = /* @__PURE__ */ __name((chart) => ({
|
|
42404
42404
|
animation: false,
|
|
42405
42405
|
backgroundColor: "#111827",
|
|
@@ -42447,7 +42447,7 @@ var echartsOption = /* @__PURE__ */ __name((chart) => ({
|
|
|
42447
42447
|
} : {}
|
|
42448
42448
|
}), "echartsOption");
|
|
42449
42449
|
|
|
42450
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
42450
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/charts/echarts.js
|
|
42451
42451
|
use([install2, install, install6, install5, install10, install7, install11]);
|
|
42452
42452
|
var echartsRenderer = {
|
|
42453
42453
|
render: /* @__PURE__ */ __name(async (chart, size) => {
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
truncated,
|
|
14
14
|
unit,
|
|
15
15
|
warmEmbedders
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-ACGTFLEB.js";
|
|
17
|
+
import "./chunk-G77QOTXE.js";
|
|
18
|
+
import "./chunk-DG62L57H.js";
|
|
19
|
+
import "./chunk-OEJ5DMCX.js";
|
|
20
20
|
import "./chunk-BJG6JA5U.js";
|
|
21
21
|
import "./chunk-AFV74GK3.js";
|
|
22
22
|
export {
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
openSession,
|
|
5
5
|
truncated,
|
|
6
6
|
unit
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-ACGTFLEB.js";
|
|
8
|
+
import "./chunk-G77QOTXE.js";
|
|
9
|
+
import "./chunk-DG62L57H.js";
|
|
10
10
|
import {
|
|
11
11
|
CliError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OEJ5DMCX.js";
|
|
13
13
|
import {
|
|
14
14
|
importFrom
|
|
15
15
|
} from "./chunk-BJG6JA5U.js";
|
|
@@ -17,11 +17,11 @@ import {
|
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-AFV74GK3.js";
|
|
19
19
|
|
|
20
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
20
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
|
|
21
21
|
import { readFileSync } from "node:fs";
|
|
22
22
|
import { join } from "node:path";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/images/picture/preprocess.js
|
|
25
25
|
var SIZE = 224;
|
|
26
26
|
var MEAN = [0.48145466, 0.4578275, 0.40821073];
|
|
27
27
|
var STD = [0.26862954, 0.26130258, 0.27577711];
|
|
@@ -60,7 +60,7 @@ var preprocess = /* @__PURE__ */ __name(async (bytes, load = importCanvas) => {
|
|
|
60
60
|
return pixels;
|
|
61
61
|
}, "preprocess");
|
|
62
62
|
|
|
63
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
63
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.466.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.64.0_commander@15._f7e4048410ccbe1e801fd184c043d197/node_modules/@wirecat/cli-core/dist/images/picture/embedder.js
|
|
64
64
|
var openPictureEmbedder = /* @__PURE__ */ __name(async (model, directory, { threads = 4, canvas } = {}) => {
|
|
65
65
|
const { Tokenizer } = await importFrom(new URL("images/picture/embedder.js", import.meta.resolve("@wirecat/cli-core")).href, "@huggingface/tokenizers");
|
|
66
66
|
const path = /* @__PURE__ */ __name((name) => join(directory, model.id, name), "path");
|
|
@@ -2,11 +2,11 @@ import { createRequire as __tgRequire } from "node:module";
|
|
|
2
2
|
const require = __tgRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
startCli
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-S2JSZWEC.js";
|
|
6
|
+
import "./chunk-ZV24I2UJ.js";
|
|
7
|
+
import "./chunk-XCKD54TN.js";
|
|
8
|
+
import "./chunk-DG62L57H.js";
|
|
9
|
+
import "./chunk-OEJ5DMCX.js";
|
|
10
10
|
import "./chunk-BJG6JA5U.js";
|
|
11
11
|
import "./chunk-AFV74GK3.js";
|
|
12
12
|
export {
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
asksAtStart,
|
|
6
6
|
setupAtStart,
|
|
7
7
|
systemLanguage
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-BX6HH4F6.js";
|
|
9
|
+
import "./chunk-PYTOIDSM.js";
|
|
10
|
+
import "./chunk-5KU4UQBM.js";
|
|
11
|
+
import "./chunk-S7ZNLLY5.js";
|
|
12
|
+
import "./chunk-TGREFJVA.js";
|
|
13
|
+
import "./chunk-W2336E7Y.js";
|
|
14
|
+
import "./chunk-G77QOTXE.js";
|
|
15
|
+
import "./chunk-DG62L57H.js";
|
|
16
|
+
import "./chunk-OEJ5DMCX.js";
|
|
17
17
|
import "./chunk-BJG6JA5U.js";
|
|
18
18
|
import "./chunk-AFV74GK3.js";
|
|
19
19
|
export {
|