@wirecat/tg-cli 0.133.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/README.md +2 -3
- package/contracts/wirecat.json +82 -2
- package/dist/bin/tg.js +2 -2
- package/dist/bot/generated/types.d.ts +188 -0
- package/dist/bot/generated/types.d.ts.map +1 -1
- package/dist/bundle/{adapter-GSGX3WBH.js → adapter-OHJF6PB5.js} +104 -69
- package/dist/bundle/agent-QPF2KU4I.js +37 -0
- package/dist/bundle/{all-profiles-VOCJ55YH.js → all-profiles-LQ73BIFB.js} +62 -20
- package/dist/bundle/{anthropic-J6CTLU3W.js → anthropic-YYBMT2HD.js} +5 -5
- package/dist/bundle/{app-server-GVFGA4TJ.js → app-server-HV4C4CSA.js} +72 -62
- package/dist/bundle/{bot-api-LWONPIGK.js → bot-api-URQXWMVR.js} +73 -92
- package/dist/bundle/{bot-history-XOW7Y2GC.js → bot-history-FRLCHPDQ.js} +23 -22
- package/dist/bundle/{bun-436CH6CP.js → bun-J3ML43BO.js} +2 -2
- package/dist/bundle/{bun-sqlite-ZLB5RK5Q.js → bun-sqlite-ZNB2B2DL.js} +6 -6
- package/dist/bundle/{chunk-UGS57TT5.js → chunk-24G3SEXH.js} +2 -2
- package/dist/bundle/chunk-27F6QBPY.js +555 -0
- package/dist/bundle/{chunk-6VCSOQFL.js → chunk-2OFCIF2W.js} +2 -2
- package/dist/bundle/{chunk-VGN5YXYI.js → chunk-2U7XA4IH.js} +2 -100
- package/dist/bundle/{chunk-LBZEZO32.js → chunk-4CLSIEWN.js} +65 -43
- package/dist/bundle/chunk-5CEKH6R6.js +340 -0
- package/dist/bundle/{chunk-SMI2EUH4.js → chunk-5WEEK65F.js} +1 -1
- package/dist/bundle/{chunk-OX73ERZW.js → chunk-6VWVYPH2.js} +3 -4
- package/dist/bundle/{chunk-5HKPQPD4.js → chunk-6WS474NQ.js} +6 -6
- package/dist/bundle/{chunk-IYAXLLGR.js → chunk-7GWOGEWJ.js} +6 -6
- package/dist/bundle/{chunk-TPD37ECC.js → chunk-AMRMU23L.js} +16 -3
- package/dist/bundle/{chunk-ZHO3TPHM.js → chunk-B2UXNYCD.js} +30 -15
- package/dist/bundle/{chunk-YY6FGKGD.js → chunk-B4ZMFU5I.js} +2 -2
- package/dist/bundle/{chunk-54WLIPIQ.js → chunk-BFKPMG5T.js} +1 -1
- package/dist/bundle/{chunk-KHUXDSXN.js → chunk-BQSODAU3.js} +1 -1
- package/dist/bundle/{chunk-N3JUHGKM.js → chunk-BXUMZWMN.js} +3786 -3364
- package/dist/bundle/{chunk-VTQMR3XG.js → chunk-E2VIO7RY.js} +3 -3
- package/dist/bundle/{chunk-UZ63ORMY.js → chunk-F5FOS64B.js} +4 -4
- package/dist/bundle/{chunk-LIQMUDIZ.js → chunk-GCUFGDKE.js} +2 -2
- package/dist/bundle/chunk-GUERS64O.js +108 -0
- package/dist/bundle/{chunk-5LRTYBZW.js → chunk-HILS2UL7.js} +12 -12
- package/dist/bundle/{chunk-6S77EKZU.js → chunk-IOJOLV25.js} +17 -15
- package/dist/bundle/{chunk-IBCXEVNY.js → chunk-JBS4VPAX.js} +3 -3
- package/dist/bundle/{chunk-5L44DSHV.js → chunk-K5QGBYDL.js} +4 -4
- package/dist/bundle/{chunk-NO2LIHWA.js → chunk-KKXF6TSS.js} +1 -1
- package/dist/bundle/chunk-L2ZQDTDU.js +7 -0
- package/dist/bundle/{chunk-HB5DP6L5.js → chunk-LFPUW7DR.js} +18 -18
- package/dist/bundle/{chunk-QWO7L4UH.js → chunk-LGYATGQI.js} +7 -7
- package/dist/bundle/{chunk-IH4Z3KZU.js → chunk-MA27675E.js} +2 -2
- package/dist/bundle/{chunk-6H2NW6HK.js → chunk-MDI7554C.js} +3 -3
- package/dist/bundle/{chunk-KVFUH5IT.js → chunk-MMZ4QAKJ.js} +1 -1
- package/dist/bundle/{chunk-XOX4BX5A.js → chunk-MOPBEBVS.js} +4 -4
- package/dist/bundle/{chunk-XKOMP3HV.js → chunk-MPRXUTIK.js} +6 -6
- package/dist/bundle/{chunk-QYLZD4DS.js → chunk-N7F5KT6U.js} +1 -1
- package/dist/bundle/{chunk-KUA24HWG.js → chunk-NBP6LXSY.js} +2 -2
- package/dist/bundle/{chunk-UQYL6TJ7.js → chunk-NP46ZKQW.js} +4 -4
- package/dist/bundle/{chunk-QGWISM4W.js → chunk-NRSJXUUO.js} +34 -28
- package/dist/bundle/{chunk-7NYP4RBO.js → chunk-NVWZ7S3I.js} +2294 -1221
- package/dist/bundle/chunk-OBIMTRA7.js +80 -0
- package/dist/bundle/{chunk-VWJTYAIQ.js → chunk-OQJURSRL.js} +17 -17
- package/dist/bundle/chunk-OU3WN4YH.js +50 -0
- package/dist/bundle/{chunk-VCAOH45X.js → chunk-PBK2ECXT.js} +1 -1
- package/dist/bundle/{chunk-TTDZVWDU.js → chunk-PHAFT2BO.js} +1 -1
- package/dist/bundle/{chunk-NTWXL2QV.js → chunk-PKIGE4NE.js} +2 -2
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-NAXOT35J.js → chunk-QBRQLOZA.js} +3 -3
- package/dist/bundle/{chunk-RABUG4KA.js → chunk-QD4MTOI7.js} +511 -472
- package/dist/bundle/{chunk-LOS4D6ZB.js → chunk-QHQ52UMF.js} +159 -569
- package/dist/bundle/{chunk-6CHIGUCY.js → chunk-R2G3MWEF.js} +31 -20
- package/dist/bundle/{chunk-THYGLTRB.js → chunk-RCEP5OXD.js} +7 -7
- package/dist/bundle/chunk-RHJ2VGHV.js +353 -0
- package/dist/bundle/{chunk-QVGEL66U.js → chunk-RXBKVNOK.js} +53 -11
- package/dist/bundle/{chunk-ZYAHZKYF.js → chunk-RZ7POTFA.js} +3 -3
- package/dist/bundle/{chunk-KEN4B57V.js → chunk-S7PIM4GG.js} +2 -2
- package/dist/bundle/{chunk-BXVB42KJ.js → chunk-SIDGH56R.js} +2 -2
- package/dist/bundle/{chunk-XDQU5HBO.js → chunk-SRMELB6Q.js} +12 -12
- package/dist/bundle/{chunk-SMU6NA7F.js → chunk-SVPNU7PD.js} +4 -4
- package/dist/bundle/{chunk-JPNVEPS4.js → chunk-TB2MG6PE.js} +2351 -2028
- package/dist/bundle/{chunk-JGMXBAGH.js → chunk-UN5TH2CG.js} +156 -434
- package/dist/bundle/{chunk-YAPDU3SV.js → chunk-V3ZWYMXT.js} +1 -1
- package/dist/bundle/{chunk-7NF3V5L2.js → chunk-VFU25P57.js} +4 -4
- package/dist/bundle/{chunk-LQQSDGQ6.js → chunk-VJEMCJPL.js} +56 -46
- package/dist/bundle/{chunk-UIAKLELF.js → chunk-VK2NDTBS.js} +94 -64
- package/dist/bundle/{chunk-UKBK2VWZ.js → chunk-W6A2OZ3C.js} +232 -176
- package/dist/bundle/{chunk-IPPCQ7IK.js → chunk-WDI6LA4X.js} +2 -2
- package/dist/bundle/{chunk-N7QREPZW.js → chunk-WTGRQGQL.js} +16 -9
- package/dist/bundle/{chunk-57KJ3TRS.js → chunk-WUCTF2XE.js} +9 -9
- package/dist/bundle/{chunk-JKSD43L7.js → chunk-WZCRCCOZ.js} +6 -6
- package/dist/bundle/{chunk-H7ML7X3G.js → chunk-XB6O445X.js} +144 -10
- package/dist/bundle/{chunk-O6JUVATT.js → chunk-XKFES4EM.js} +35 -12
- package/dist/bundle/chunk-YBUX6EAK.js +388 -0
- package/dist/bundle/{chunk-WCYKVX3B.js → chunk-YMRL7MYS.js} +7 -7
- package/dist/bundle/{chunk-M6QOM6SL.js → chunk-Z6M6NZUX.js} +1 -1
- package/dist/bundle/chunk-ZCDRXKCR.js +727 -0
- package/dist/bundle/{chunk-6A44ZZFC.js → chunk-ZJ3S4S6H.js} +43 -64
- package/dist/bundle/{chunk-TCI7I6YF.js → chunk-ZL7TJXFL.js} +11 -25
- package/dist/bundle/{chunk-2KQDJHF3.js → chunk-ZMBVZWUW.js} +29 -1
- package/dist/bundle/{chunk-OWY52JBO.js → chunk-ZMTASSIB.js} +7 -7
- package/dist/bundle/{chunk-D2SJLZSH.js → chunk-ZQ5ERQHO.js} +2 -2
- package/dist/bundle/{chunk-CEJYNB3I.js → chunk-ZWVDXVG3.js} +4 -4
- package/dist/bundle/command-contract-K4MU32K6.js +37 -0
- package/dist/bundle/{command-server-entry-AE27QXTE.js → command-server-entry-XP6BVJIK.js} +27 -27
- package/dist/bundle/{decode-RQPPZ72F.js → decode-TUB45ALX.js} +5 -5
- package/dist/bundle/{dispatch-KQO2MCSH.js → dispatch-ICPUKMEG.js} +8 -8
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-FZRIACN4.js → echarts-HJ7D7XTM.js} +2 -2
- package/dist/bundle/{embed-TOSWWMDL.js → embed-4QDN36YF.js} +6 -6
- package/dist/bundle/{embedder-JHIQSBGD.js → embedder-Q7ID2LEG.js} +9 -9
- package/dist/bundle/{entry-DU4KRXTG.js → entry-Z6VRZP7F.js} +9 -9
- package/dist/bundle/{failure-3YC3YGYO.js → failure-PEPNEEK7.js} +2 -2
- package/dist/bundle/{first-run-DQQT4FID.js → first-run-GKBEHAAX.js} +12 -12
- package/dist/bundle/first-screen-IA3ONZ75.js +37 -0
- package/dist/bundle/{instructions-WI64CJQ6.js → instructions-26ZXYYMY.js} +1 -1
- package/dist/bundle/{mcp-VMS6PBCU.js → mcp-KGWT6TGO.js} +2 -2
- package/dist/bundle/meeting-combined-KUV2HP52.js +23 -0
- package/dist/bundle/{meeting-model-XNRSREIK.js → meeting-model-JB7X4CA3.js} +11 -11
- package/dist/bundle/{meeting-semantic-OOSCHQMB.js → meeting-semantic-MQNUVG33.js} +6 -6
- package/dist/bundle/{node-JLKDNVKV.js → node-RIANITAT.js} +2 -2
- package/dist/bundle/{node-sqlite-YOGH26O2.js → node-sqlite-I2P26Z3S.js} +7 -7
- package/dist/bundle/{oauth-FOMXM5HP.js → oauth-GFMJL2ZZ.js} +8 -8
- package/dist/bundle/{open-SM2UXUKM.js → open-CWVYEFNN.js} +5 -5
- package/dist/bundle/{openai-J2H7S6ZF.js → openai-PQLK7YTJ.js} +15 -15
- package/dist/bundle/{process-HI7OZBOI.js → process-P4D4KFWE.js} +1 -1
- package/dist/bundle/{program-VY4HFU25.js → program-MF4QZJKH.js} +70 -64
- package/dist/bundle/{prompt-NUUVFMOF.js → prompt-JWIOYU53.js} +5 -5
- package/dist/bundle/{proxy-transport-AN4VMRRN.js → proxy-transport-DWY6ABVT.js} +5 -5
- package/dist/bundle/{recognize-MALJHPDI.js → recognize-IPJL4CQZ.js} +4 -4
- package/dist/bundle/{remote-QUDRSTS2.js → remote-DVY6F6YO.js} +9 -9
- package/dist/bundle/{rerank-2DSO3D3S.js → rerank-XSPWLBIO.js} +7 -7
- package/dist/bundle/{serve-NCJ52MY3.js → serve-AJAVEH2M.js} +15 -15
- package/dist/bundle/server-GGXUR5BZ.js +78 -0
- package/dist/bundle/{server-Y3M544AM.js → server-GII7NIKF.js} +65 -54
- package/dist/bundle/{sqlite-runtime-NJUSXVKK.js → sqlite-runtime-KFDYJTUO.js} +6 -6
- package/dist/bundle/{state-AVOWQVET.js → state-76OJSCQC.js} +6 -6
- package/dist/bundle/{store-MMIYOL4H.js → store-2KJS4YMH.js} +28 -17
- package/dist/bundle/{store-BZ5ICDRP.js → store-FBP2J23G.js} +20 -19
- 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/telegram/adapter.d.ts +9 -2
- package/dist/telegram/adapter.d.ts.map +1 -1
- package/dist/telegram/adapter.js +5 -6
- package/dist/telegram/adapter.js.map +1 -1
- package/dist/telegram/messages.d.ts +12 -0
- package/dist/telegram/messages.d.ts.map +1 -1
- package/dist/telegram/messages.js +40 -0
- package/dist/telegram/messages.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/skills/tg-cli/SKILL.md +7 -4
- package/skills/tg-cli/references/messages.md +5 -1
- package/skills/tg-cli/references/search.md +2 -0
- package/dist/bundle/chunk-SHTHNBHG.js +0 -2
- package/dist/bundle/command-contract-TQIARAB4.js +0 -37
- package/dist/bundle/first-screen-7N4CTZSA.js +0 -37
- package/dist/bundle/meeting-combined-3RAOFQ7M.js +0 -23
- package/dist/bundle/server-CHGON5I2.js +0 -70
- package/dist/bundle/store-maintenance-command-VKZ4WHUB.js +0 -61
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
errorCodes,
|
|
5
5
|
isCliError,
|
|
6
6
|
visibleControls
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GCUFGDKE.js";
|
|
8
8
|
import {
|
|
9
9
|
__name
|
|
10
10
|
} from "./chunk-ZVVMGPBJ.js";
|
|
11
11
|
|
|
12
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
12
|
+
// 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/exit-codes.js
|
|
13
13
|
var EXIT_CODES = {
|
|
14
14
|
validation_error: 2,
|
|
15
15
|
configuration_error: 3,
|
|
@@ -282,8 +282,8 @@ function maxEntries(requirement, message$1) {
|
|
|
282
282
|
message: message$1,
|
|
283
283
|
"~run"(dataset, config$1) {
|
|
284
284
|
if (!dataset.typed) return dataset;
|
|
285
|
-
const
|
|
286
|
-
if (dataset.typed &&
|
|
285
|
+
const count2 = Object.keys(dataset.value).length;
|
|
286
|
+
if (dataset.typed && count2 > this.requirement) _addIssue(this, "entries", dataset, config$1, { received: `${count2}` });
|
|
287
287
|
return dataset;
|
|
288
288
|
}
|
|
289
289
|
};
|
|
@@ -618,6 +618,23 @@ function exactOptional(wrapped, default_) {
|
|
|
618
618
|
}
|
|
619
619
|
__name(exactOptional, "exactOptional");
|
|
620
620
|
// @__NO_SIDE_EFFECTS__
|
|
621
|
+
function function_(message$1) {
|
|
622
|
+
return _standardSchema({
|
|
623
|
+
kind: "schema",
|
|
624
|
+
type: "function",
|
|
625
|
+
reference: function_,
|
|
626
|
+
expects: "Function",
|
|
627
|
+
async: false,
|
|
628
|
+
message: message$1,
|
|
629
|
+
"~run"(dataset, config$1) {
|
|
630
|
+
if (typeof dataset.value === "function") dataset.typed = true;
|
|
631
|
+
else _addIssue(this, "type", dataset, config$1);
|
|
632
|
+
return dataset;
|
|
633
|
+
}
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
__name(function_, "function_");
|
|
637
|
+
// @__NO_SIDE_EFFECTS__
|
|
621
638
|
function lazy(getter) {
|
|
622
639
|
return _standardSchema({
|
|
623
640
|
kind: "schema",
|
|
@@ -1364,7 +1381,7 @@ function unwrap(schema) {
|
|
|
1364
1381
|
}
|
|
1365
1382
|
__name(unwrap, "unwrap");
|
|
1366
1383
|
|
|
1367
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1384
|
+
// 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/standards/effects.js
|
|
1368
1385
|
var EFFECT_LEVELS = ["none", "read", "write"];
|
|
1369
1386
|
var effectsSchema = strictObject({
|
|
1370
1387
|
remote: picklist(EFFECT_LEVELS),
|
|
@@ -2001,7 +2018,7 @@ function toStandardJsonSchema(schema) {
|
|
|
2001
2018
|
}
|
|
2002
2019
|
__name(toStandardJsonSchema, "toStandardJsonSchema");
|
|
2003
2020
|
|
|
2004
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2021
|
+
// 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/standards/registry.js
|
|
2005
2022
|
var word = pipe(string(), regex(/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/, "a lower-case word, words joined by -"));
|
|
2006
2023
|
var SNAKE_CASE = /^[a-z][a-z0-9]*(_[a-z0-9]+)*$/;
|
|
2007
2024
|
var text = pipe(string(), regex(/\S/, "must not be empty"));
|
|
@@ -2043,7 +2060,7 @@ var fill = /* @__PURE__ */ __name((template, values) => template.replace(PLACEHO
|
|
|
2043
2060
|
return String(value);
|
|
2044
2061
|
}), "fill");
|
|
2045
2062
|
|
|
2046
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2063
|
+
// 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/standards/output.js
|
|
2047
2064
|
var MAX_NEXT_STEPS = 2;
|
|
2048
2065
|
var COMPACT_FLAG = "--compact";
|
|
2049
2066
|
var isoTime = pipe(string(), isoTimestamp("an ISO 8601 time in UTC"), endsWith("Z", "an ISO 8601 time in UTC, ending in `Z`"));
|
|
@@ -2120,6 +2137,22 @@ var rankingSchema = strictObject({
|
|
|
2120
2137
|
})),
|
|
2121
2138
|
ms: pipe(number(), integer(), minValue(0))
|
|
2122
2139
|
});
|
|
2140
|
+
var count = pipe(number(), integer(), minValue(0));
|
|
2141
|
+
var modelRunSchema = strictObject({
|
|
2142
|
+
provider: text,
|
|
2143
|
+
model: text,
|
|
2144
|
+
endpoint: text,
|
|
2145
|
+
sent: count,
|
|
2146
|
+
done: count,
|
|
2147
|
+
left: count,
|
|
2148
|
+
usage: optional(strictObject({ input: count, output: count })),
|
|
2149
|
+
cost_usd: nullable(pipe(number(), minValue(0))),
|
|
2150
|
+
ms: count
|
|
2151
|
+
});
|
|
2152
|
+
var querySchema = strictObject({
|
|
2153
|
+
chat: optional(strictObject({ word: text, chat_id: text, title: nullable(text) })),
|
|
2154
|
+
respelled: optional(array(strictObject({ word: text, tried: pipe(array(text), minLength(1)) })))
|
|
2155
|
+
});
|
|
2123
2156
|
var metaSchema = strictObject({
|
|
2124
2157
|
run_id: text,
|
|
2125
2158
|
duration_ms: pipe(number(), integer(), minValue(0)),
|
|
@@ -2132,7 +2165,9 @@ var metaSchema = strictObject({
|
|
|
2132
2165
|
now: optional(isoTime),
|
|
2133
2166
|
now_local: optional(localTime),
|
|
2134
2167
|
window: optional(strictObject({ since: optional(isoTime), until: optional(isoTime) })),
|
|
2135
|
-
ranking: optional(rankingSchema)
|
|
2168
|
+
ranking: optional(rankingSchema),
|
|
2169
|
+
model_run: optional(modelRunSchema),
|
|
2170
|
+
query: optional(querySchema)
|
|
2136
2171
|
});
|
|
2137
2172
|
var offsetOf = /* @__PURE__ */ __name((at, zone) => {
|
|
2138
2173
|
const name = new Intl.DateTimeFormat("en-US", { timeZone: zone, timeZoneName: "longOffset" }).formatToParts(at).find((part) => part.type === "timeZoneName")?.value ?? "GMT";
|
|
@@ -2170,7 +2205,7 @@ var jsonlOf = /* @__PURE__ */ __name(({ items, page, meta }) => [
|
|
|
2170
2205
|
JSON.stringify({ type: "end", complete: meta.complete, ...meta.issues ? { issues: meta.issues } : {}, page })
|
|
2171
2206
|
].join("\n"), "jsonlOf");
|
|
2172
2207
|
|
|
2173
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2208
|
+
// 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/standards/errors.js
|
|
2174
2209
|
var CRASH_CODE = "internal_error";
|
|
2175
2210
|
var CRASH_REASON = "command.crashed";
|
|
2176
2211
|
var errorObjectSchema = strictObject({
|
|
@@ -2214,6 +2249,12 @@ var BASE_REASONS = defineReasons([
|
|
|
2214
2249
|
},
|
|
2215
2250
|
{ reason: "batch.output-budget", code: "validation_error", message: "batch output budget exhausted", details: [] },
|
|
2216
2251
|
{ reason: "config.invalid", code: "configuration_error", message: "the configuration is not valid", details: [] },
|
|
2252
|
+
{
|
|
2253
|
+
reason: "keyring.unreachable",
|
|
2254
|
+
code: "configuration_error",
|
|
2255
|
+
message: "the OS keyring did not answer, and no file holds the sign-in",
|
|
2256
|
+
details: []
|
|
2257
|
+
},
|
|
2217
2258
|
{ reason: "auth.failed", code: "authentication_error", message: "the sign-in did not work", details: [] },
|
|
2218
2259
|
{ reason: "access.denied", code: "permission_error", message: "this account may not do that", details: [] },
|
|
2219
2260
|
{ reason: "item.not-found", code: "not_found", message: "nothing found by that name", details: [] },
|
|
@@ -2263,7 +2304,7 @@ var BASE_REASONS = defineReasons([
|
|
|
2263
2304
|
{ reason: CRASH_REASON, code: CRASH_CODE, message: "the command failed; this is a bug", details: [] }
|
|
2264
2305
|
]);
|
|
2265
2306
|
|
|
2266
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2307
|
+
// 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/standards/steps.js
|
|
2267
2308
|
var SAME_COMMAND = "*";
|
|
2268
2309
|
var commandPath = pipe(string(), regex(/^[a-z][a-z0-9-]*( [a-z][a-z0-9-]*)*$/, "a command path such as `messages sync`"));
|
|
2269
2310
|
var stepSchema = union([
|
|
@@ -2342,7 +2383,7 @@ var STEPS = defineSteps([
|
|
|
2342
2383
|
}
|
|
2343
2384
|
]);
|
|
2344
2385
|
|
|
2345
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2386
|
+
// 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/failure.js
|
|
2346
2387
|
var recognise = /* @__PURE__ */ __name((failure) => {
|
|
2347
2388
|
if (isCliError(failure))
|
|
2348
2389
|
return failure;
|
|
@@ -2517,6 +2558,7 @@ export {
|
|
|
2517
2558
|
boolean,
|
|
2518
2559
|
custom,
|
|
2519
2560
|
exactOptional,
|
|
2561
|
+
function_,
|
|
2520
2562
|
lazy,
|
|
2521
2563
|
literal,
|
|
2522
2564
|
looseObject,
|
|
@@ -3,12 +3,12 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CliError,
|
|
5
5
|
errorCodes
|
|
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-core@0.
|
|
11
|
+
// 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/errors/failures.js
|
|
12
12
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
13
13
|
var isCommanderFailure = /* @__PURE__ */ __name((value) => {
|
|
14
14
|
const { code, exitCode } = value ?? {};
|
|
@@ -60,7 +60,7 @@ var damagedFile = /* @__PURE__ */ __name(async (files, work) => {
|
|
|
60
60
|
}, "damagedFile");
|
|
61
61
|
var isStoreDamage = /* @__PURE__ */ __name((error) => damageIn(error) !== void 0, "isStoreDamage");
|
|
62
62
|
|
|
63
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
63
|
+
// 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/runs/secrets.js
|
|
64
64
|
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
65
65
|
"authorization",
|
|
66
66
|
"cookie",
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
CliError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GCUFGDKE.js";
|
|
6
6
|
import {
|
|
7
7
|
__name
|
|
8
8
|
} from "./chunk-ZVVMGPBJ.js";
|
|
9
9
|
|
|
10
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10
|
+
// 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/app.js
|
|
11
11
|
import { readFileSync } from "node:fs";
|
|
12
12
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
13
13
|
var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
|
|
@@ -3,10 +3,10 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
proxyError,
|
|
5
5
|
proxyLabel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NBP6LXSY.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GCUFGDKE.js";
|
|
10
10
|
import {
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -2,28 +2,28 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
isCommandServer
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5WEEK65F.js";
|
|
6
6
|
import {
|
|
7
7
|
ensureSqlite
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PKIGE4NE.js";
|
|
9
9
|
import {
|
|
10
10
|
envName,
|
|
11
11
|
readOnlyLockOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-S7PIM4GG.js";
|
|
13
13
|
import {
|
|
14
14
|
catchCrashes
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RXBKVNOK.js";
|
|
16
16
|
import {
|
|
17
17
|
CliError
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GCUFGDKE.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// 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/entry.js
|
|
24
24
|
import { spawn } from "node:child_process";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// 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/argv-log.js
|
|
27
27
|
import { appendFileSync } from "node:fs";
|
|
28
28
|
var logParsedArgv = /* @__PURE__ */ __name((file, action) => {
|
|
29
29
|
const words = [];
|
|
@@ -47,7 +47,7 @@ var logVersion = /* @__PURE__ */ __name((file) => {
|
|
|
47
47
|
`);
|
|
48
48
|
}, "logVersion");
|
|
49
49
|
|
|
50
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
50
|
+
// 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/entry.js
|
|
51
51
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
52
52
|
argv: process.argv,
|
|
53
53
|
env: process.env,
|
|
@@ -67,7 +67,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
67
67
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-V"))
|
|
68
68
|
return printVersion(entry.app, io);
|
|
69
69
|
if (isCommandServer(args)) {
|
|
70
|
-
const { serveEntry } = await import("./command-server-entry-
|
|
70
|
+
const { serveEntry } = await import("./command-server-entry-XP6BVJIK.js");
|
|
71
71
|
return serveEntry(entry, io, { firstRunAt, commanderExit });
|
|
72
72
|
}
|
|
73
73
|
const tty = io.stdout.isTTY === true;
|
|
@@ -105,7 +105,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
105
105
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
106
106
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
107
107
|
return false;
|
|
108
|
-
const { readSecret } = await import("./prompt-
|
|
108
|
+
const { readSecret } = await import("./prompt-JWIOYU53.js");
|
|
109
109
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
110
110
|
input: io.stdin,
|
|
111
111
|
output: io.stderr,
|
|
@@ -148,8 +148,8 @@ var firstRunAt = /* @__PURE__ */ __name((entry, io, headless) => async (command)
|
|
|
148
148
|
if (command.optsWithGlobals().dryRun === true)
|
|
149
149
|
return;
|
|
150
150
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
151
|
-
import("./first-run-
|
|
152
|
-
import("./command-contract-
|
|
151
|
+
import("./first-run-GKBEHAAX.js"),
|
|
152
|
+
import("./command-contract-K4MU32K6.js")
|
|
153
153
|
]);
|
|
154
154
|
await setupAtStart({
|
|
155
155
|
command: entry.app.command,
|
|
@@ -7,18 +7,18 @@ import {
|
|
|
7
7
|
describeOptions,
|
|
8
8
|
keyForCommand,
|
|
9
9
|
metaOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-W6A2OZ3C.js";
|
|
11
11
|
import {
|
|
12
12
|
jsonSchemaOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RXBKVNOK.js";
|
|
14
14
|
import {
|
|
15
15
|
CliError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-GCUFGDKE.js";
|
|
17
17
|
import {
|
|
18
18
|
__name
|
|
19
19
|
} from "./chunk-ZVVMGPBJ.js";
|
|
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/cli/command-contract.js
|
|
22
22
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
23
23
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
24
24
|
const entity = answerEntitySchema(command);
|