@wirecat/cli-memo 0.131.18 → 0.131.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-23QZDAFJ.js → all-profiles-MVF2XGZK.js} +5 -4
- package/dist/bundle/{anthropic-KRFZSA2B.js → anthropic-OPFHMF2S.js} +3 -3
- package/dist/bundle/{app-server-ESZGTLU2.js → app-server-VHVC55S3.js} +35 -34
- package/dist/bundle/auto-GDLRYDYK.js +82 -0
- package/dist/bundle/{bun-53GOPGVX.js → bun-P6TMDZGU.js} +2 -2
- package/dist/bundle/{bun-sqlite-4KFNOFXO.js → bun-sqlite-3G3NLK4O.js} +2 -2
- package/dist/bundle/{chunk-OCL47NBH.js → chunk-2KOVYXWK.js} +960 -346
- package/dist/bundle/{chunk-Q5DWAV74.js → chunk-2MNEM2CH.js} +4 -4
- package/dist/bundle/{chunk-XHTVSSX6.js → chunk-2R25UBIH.js} +20 -20
- package/dist/bundle/{chunk-XNX6I4Y6.js → chunk-36ULPM2W.js} +2 -2
- package/dist/bundle/{chunk-IJ2ZAFZ6.js → chunk-3BMUVKC7.js} +4 -4
- package/dist/bundle/{chunk-65GCFOVP.js → chunk-3ORDQ62F.js} +6 -6
- package/dist/bundle/{chunk-SCCPYBHR.js → chunk-4G46QFK5.js} +3 -3
- package/dist/bundle/{chunk-NFKJNCVK.js → chunk-4MIPN37I.js} +144 -144
- package/dist/bundle/{chunk-BHBJGVFE.js → chunk-57Q6NXQT.js} +3 -3
- package/dist/bundle/{chunk-DV3YRUZA.js → chunk-5KUPVC5M.js} +1 -1
- package/dist/bundle/{chunk-MOWIIEN4.js → chunk-5XDYV2YT.js} +1 -1
- package/dist/bundle/{chunk-VPJQJS3H.js → chunk-63XICXGM.js} +1 -1
- package/dist/bundle/{chunk-SPPM44M6.js → chunk-66YZUX2C.js} +4 -4
- package/dist/bundle/{chunk-6XRH4A37.js → chunk-6DG7VK3H.js} +2 -2
- package/dist/bundle/{chunk-DQONI6JU.js → chunk-7J5HTZCM.js} +1 -1
- package/dist/bundle/{chunk-WOYXJJOZ.js → chunk-BINR6MJ5.js} +1 -1
- package/dist/bundle/{chunk-P6CJJR55.js → chunk-BMHSGZNE.js} +4 -4
- package/dist/bundle/{chunk-TIF4AZ5I.js → chunk-BPYQYZXA.js} +10 -10
- package/dist/bundle/{chunk-I4VU7HTS.js → chunk-D6G23NFJ.js} +1 -1
- package/dist/bundle/{chunk-Q7EZ4RG7.js → chunk-EFKEG2BA.js} +2 -2
- package/dist/bundle/{chunk-2UATT3OK.js → chunk-EL4ZKQUN.js} +2 -2
- package/dist/bundle/{chunk-OTPEBFD4.js → chunk-EMKFG5BP.js} +2 -2
- package/dist/bundle/{chunk-OWI3LD55.js → chunk-F5CQ2NVA.js} +10 -87
- package/dist/bundle/{chunk-W32TSBMM.js → chunk-FMSA2X3E.js} +1 -1
- package/dist/bundle/{chunk-3V7N7LX3.js → chunk-FRB4UXJG.js} +5 -5
- package/dist/bundle/{chunk-UR2XQFDT.js → chunk-G7TF4E7B.js} +1 -1
- package/dist/bundle/{chunk-I5FQ6YVU.js → chunk-GJKM32WA.js} +20 -20
- package/dist/bundle/{chunk-CAIAS3VT.js → chunk-IW3U6XXI.js} +3 -3
- package/dist/bundle/chunk-JDJDNMCP.js +93 -0
- package/dist/bundle/{chunk-OVNALS6T.js → chunk-JHKTN6NL.js} +9 -9
- package/dist/bundle/{chunk-46UHRZHI.js → chunk-KIEBEYKH.js} +5 -5
- package/dist/bundle/{chunk-HJDLAJGM.js → chunk-KO455254.js} +12 -12
- package/dist/bundle/{chunk-QVDHD7UF.js → chunk-KVVDRD7M.js} +1 -1
- package/dist/bundle/{chunk-PUZ3VNLX.js → chunk-LDVU22MF.js} +5 -5
- package/dist/bundle/{chunk-A7KQAW7W.js → chunk-LEUNYKL6.js} +2 -2
- package/dist/bundle/{chunk-ZEY2XV7V.js → chunk-LKYHSVQL.js} +7 -7
- package/dist/bundle/{chunk-3RXPDCSZ.js → chunk-LQJ4KHXK.js} +8 -8
- package/dist/bundle/{chunk-55M2ZGXO.js → chunk-NKTAEBCU.js} +3 -3
- package/dist/bundle/{chunk-CL5QVFJA.js → chunk-OTHEM74Z.js} +5 -5
- package/dist/bundle/{chunk-OMTNOGFW.js → chunk-OVFMY6ZP.js} +1 -1
- package/dist/bundle/{chunk-76I4DYXH.js → chunk-P22V2OLJ.js} +18 -9
- package/dist/bundle/{chunk-P7AB4FU3.js → chunk-RFB5LOYR.js} +4 -4
- package/dist/bundle/{chunk-BXF52WH2.js → chunk-SHDZVM3B.js} +1 -1
- package/dist/bundle/{chunk-RFVAYHGN.js → chunk-SJLVBJ2L.js} +1 -1
- package/dist/bundle/{chunk-PV6UEVGF.js → chunk-SO6VNTF6.js} +1 -1
- package/dist/bundle/{chunk-XQN3RYNB.js → chunk-T557KUST.js} +2 -2
- package/dist/bundle/{chunk-QEX6BCTL.js → chunk-TQNQS6TR.js} +43 -43
- package/dist/bundle/{chunk-OC5LYRFA.js → chunk-UC4IL2P7.js} +1 -1
- package/dist/bundle/{chunk-MFRJZAVS.js → chunk-V7DZG62U.js} +7 -7
- package/dist/bundle/{chunk-IENYANCU.js → chunk-VQGVPDMH.js} +11 -11
- package/dist/bundle/{chunk-6CWWZJM6.js → chunk-VUWUSGSN.js} +4 -4
- package/dist/bundle/{chunk-ZMRINA7O.js → chunk-WOIRWVDJ.js} +243 -243
- package/dist/bundle/{chunk-HI2DICLB.js → chunk-WRPRPVZF.js} +27 -27
- package/dist/bundle/{chunk-GJM5FMWW.js → chunk-XWS4PTES.js} +320 -241
- package/dist/bundle/{chunk-VADQ64BX.js → chunk-XZWUBDBG.js} +1 -1
- package/dist/bundle/{chunk-DDRCYAOJ.js → chunk-YVECM7XA.js} +3 -3
- package/dist/bundle/{chunk-H6F7WZRW.js → chunk-Z54GPSVH.js} +51 -51
- package/dist/bundle/{chunk-MQ2TLCNP.js → chunk-ZYM4M62Q.js} +1 -1
- package/dist/bundle/{command-contract-RO6MFDXO.js → command-contract-NMJKYTS4.js} +11 -10
- package/dist/bundle/{decode-4ZC23D7U.js → decode-BUTF6VGO.js} +2 -2
- package/dist/bundle/{echarts-PWJPVWHJ.js → echarts-KH3YOWMK.js} +2 -2
- package/dist/bundle/{embed-HASNG6ER.js → embed-WBVM7KQ2.js} +3 -3
- package/dist/bundle/{embedder-NU6EJLTB.js → embedder-27HQIFHM.js} +6 -6
- package/dist/bundle/{entry-SFSRFMWO.js → entry-K2WWMF2B.js} +4 -4
- package/dist/bundle/failure-OJI6C5JA.js +62 -0
- package/dist/bundle/{first-run-OSNIHVHZ.js → first-run-7P5N72VR.js} +5 -5
- package/dist/bundle/{first-screen-26B3BEL6.js → first-screen-3GM5HC4Y.js} +12 -11
- package/dist/bundle/{instructions-V54XGULG.js → instructions-POJKHKRZ.js} +1 -1
- package/dist/bundle/mcp-YGWNSJUH.js +86 -0
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-J7TQQBYI.js → node-W245R2OP.js} +2 -2
- package/dist/bundle/{node-sqlite-ESX7VQKP.js → node-sqlite-FUYOXFW5.js} +3 -3
- package/dist/bundle/{oauth-TXZKIG4H.js → oauth-ATB3NWQA.js} +4 -4
- package/dist/bundle/{open-QRACRP6K.js → open-HEBEWCYB.js} +2 -2
- package/dist/bundle/{openai-QSUFOP44.js → openai-DN7NA2IU.js} +7 -7
- package/dist/bundle/{process-PECJIROU.js → process-QTIDOJMF.js} +1 -1
- package/dist/bundle/{program-VLYHKDRG.js → program-62ISSWCE.js} +238 -91
- package/dist/bundle/{prompt-E3RWYIKM.js → prompt-RQXVPJ4A.js} +2 -2
- package/dist/bundle/{recognize-X45GM6LD.js → recognize-G7NIZ3IT.js} +1 -1
- package/dist/bundle/{remote-YBR4S7UN.js → remote-H452UBSK.js} +4 -4
- package/dist/bundle/{rerank-35IH2PCJ.js → rerank-77UYD2UD.js} +4 -4
- package/dist/bundle/{serve-IRUY567I.js → serve-L6R4ODZV.js} +6 -6
- package/dist/bundle/{server-D5SWP77Y.js → server-NB3U4PPW.js} +57 -51
- package/dist/bundle/server-SWUSQSRW.js +44 -0
- package/dist/bundle/server-W4IKTTUY.js +57 -0
- package/dist/bundle/{setup-K53LBBVC.js → setup-ZGH5OZ7A.js} +39 -38
- package/dist/bundle/{state-2GC644IL.js → state-KHMYDV4I.js} +3 -3
- package/dist/bundle/{store-73MT2RVQ.js → store-M7KGTLUG.js} +9 -8
- package/dist/bundle/store-maintenance-command-ZPN2ZUL4.js +44 -0
- package/dist/bundle/update-2IYA7RJU.js +65 -0
- package/dist/discovery/command.d.ts.map +1 -1
- package/dist/discovery/command.js +1 -0
- package/dist/discovery/command.js.map +1 -1
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +10 -0
- package/dist/examples.js.map +1 -1
- package/dist/mcp/catalogue.d.ts +3 -0
- package/dist/mcp/catalogue.d.ts.map +1 -1
- package/dist/mcp/catalogue.js +9 -2
- package/dist/mcp/catalogue.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +31 -0
- package/dist/program.js.map +1 -1
- package/dist/records/import.d.ts +8 -0
- package/dist/records/import.d.ts.map +1 -0
- package/dist/records/import.js +79 -0
- package/dist/records/import.js.map +1 -0
- package/dist/records/mapping.d.ts +9 -0
- package/dist/records/mapping.d.ts.map +1 -0
- package/dist/records/mapping.js +67 -0
- package/dist/records/mapping.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/cli-memo/SKILL.md +5 -0
- package/dist/bundle/auto-BA5VRQIC.js +0 -81
- package/dist/bundle/failure-2E4CILMB.js +0 -61
- package/dist/bundle/mcp-M62VFVJS.js +0 -85
- package/dist/bundle/server-KMM6CFGV.js +0 -56
- package/dist/bundle/server-YUAIDS2B.js +0 -43
- package/dist/bundle/store-maintenance-command-TWJ4VLK5.js +0 -43
- package/dist/bundle/update-BI2FTFUU.js +0 -64
- /package/dist/bundle/{chunk-GUJ6OEF7.js → chunk-7YF2MSEC.js} +0 -0
|
@@ -2,7 +2,7 @@ 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-7J5HTZCM.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
8
|
} from "./chunk-MXP4J6BJ.js";
|
|
@@ -10,7 +10,7 @@ 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.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/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.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/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";
|
|
@@ -7,7 +7,7 @@ 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.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/models/types.js
|
|
11
11
|
var MAX_MODEL_IMAGE_BYTES = 4 * 1024 * 1024;
|
|
12
12
|
var validateImages = /* @__PURE__ */ __name((images) => {
|
|
13
13
|
if (images === void 0)
|
|
@@ -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.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/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.",
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
__name
|
|
16
16
|
} from "./chunk-ZVVMGPBJ.js";
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/models/options.js
|
|
19
19
|
var checkedOptions = /* @__PURE__ */ __name((provider, schema, options) => {
|
|
20
20
|
const parsed = safeParse(schema, options);
|
|
21
21
|
if (!parsed.success) {
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
listen
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BINR6MJ5.js";
|
|
6
6
|
import {
|
|
7
7
|
ownerLogin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-36ULPM2W.js";
|
|
9
9
|
import {
|
|
10
10
|
WebStandardStreamableHTTPServerTransport,
|
|
11
11
|
createMcpHandler,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
calledTools,
|
|
18
18
|
httpActivityFile,
|
|
19
19
|
httpLock
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VUWUSGSN.js";
|
|
21
21
|
import {
|
|
22
22
|
getOAuthProtectedResourceMetadataUrl,
|
|
23
23
|
oauthMetadataResponse,
|
|
@@ -30,7 +30,7 @@ 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.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/mcp/http/serve.js
|
|
34
34
|
import { randomUUID } from "node:crypto";
|
|
35
35
|
var MCP_PATH = "/mcp";
|
|
36
36
|
var AS_METADATA = "/.well-known/oauth-authorization-server";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
agentOf,
|
|
5
5
|
clientHash,
|
|
6
6
|
currentCaller
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-F5CQ2NVA.js";
|
|
8
8
|
import {
|
|
9
9
|
CLIENT_INFO_META_KEY
|
|
10
10
|
} from "./chunk-H3ZN4YLB.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
16
16
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
17
17
|
const client = caller?.agent?.client?.name;
|
|
18
18
|
if (client && client !== "unknown")
|
|
@@ -7,7 +7,7 @@ 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.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/store/path.js
|
|
11
11
|
import { join } from "node:path";
|
|
12
12
|
var wirecatDirectory = /* @__PURE__ */ __name((env = process.env, platform) => resolvePaths({ appName: "WireCat", prefix: "WIRECAT", env, ...platform ? { platform } : {} }).state, "wirecatDirectory");
|
|
13
13
|
var storePath = /* @__PURE__ */ __name((env = process.env) => env.MESSAGING_STORE ?? join(wirecatDirectory(env), "wirecat.db"), "storePath");
|
|
@@ -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.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/http/listen.js
|
|
8
8
|
import { createServer } from "node:http";
|
|
9
9
|
import { Readable } from "node:stream";
|
|
10
10
|
var MAX_BODY = 4 * 1024 * 1024;
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
answeredWire
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OVFMY6ZP.js";
|
|
6
6
|
import {
|
|
7
7
|
CALLER_META_KEY,
|
|
8
8
|
PROXY_CLIENT_NAME,
|
|
9
9
|
callerOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6DG7VK3H.js";
|
|
11
11
|
import {
|
|
12
12
|
StdioServerTransport,
|
|
13
13
|
serveStdio
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
__name
|
|
20
20
|
} from "./chunk-ZVVMGPBJ.js";
|
|
21
21
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
23
23
|
import { spawn } from "node:child_process";
|
|
24
24
|
import { randomUUID } from "node:crypto";
|
|
25
25
|
var PROTOCOL = "2025-06-18";
|
|
@@ -253,7 +253,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
253
253
|
}, "serveAllProfilesOverStdio");
|
|
254
254
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
255
255
|
const { build, close } = allProfilesServer(options);
|
|
256
|
-
const { serveOverHttp } = await import("./serve-
|
|
256
|
+
const { serveOverHttp } = await import("./serve-L6R4ODZV.js");
|
|
257
257
|
const listening = await serveOverHttp(build, {
|
|
258
258
|
...http,
|
|
259
259
|
appName: options.command,
|
|
@@ -9,22 +9,22 @@ import {
|
|
|
9
9
|
readSetupAnswers,
|
|
10
10
|
unanswered,
|
|
11
11
|
writeSetupAnswers
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-YVECM7XA.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_STEMMERS,
|
|
15
15
|
LANGUAGES
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LKYHSVQL.js";
|
|
17
17
|
import {
|
|
18
18
|
sharedConfigPath
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RFB5LOYR.js";
|
|
20
20
|
import {
|
|
21
21
|
storePath
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7J5HTZCM.js";
|
|
23
23
|
import {
|
|
24
24
|
__name
|
|
25
25
|
} from "./chunk-ZVVMGPBJ.js";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
28
28
|
import { spawnSync } from "node:child_process";
|
|
29
29
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
30
30
|
import { delimiter, join } from "node:path";
|
|
@@ -82,7 +82,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
82
82
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
83
83
|
}, "suggested");
|
|
84
84
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
85
|
-
const { openStore } = await import("./store-
|
|
85
|
+
const { openStore } = await import("./store-M7KGTLUG.js");
|
|
86
86
|
const store = await openStore({ env });
|
|
87
87
|
let rebuild = false;
|
|
88
88
|
try {
|
|
@@ -111,8 +111,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
111
111
|
if (!rebuild)
|
|
112
112
|
return;
|
|
113
113
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
114
|
-
import("./open-
|
|
115
|
-
import("./store-maintenance-command-
|
|
114
|
+
import("./open-HEBEWCYB.js"),
|
|
115
|
+
import("./store-maintenance-command-ZPN2ZUL4.js")
|
|
116
116
|
]);
|
|
117
117
|
const database = await openCache(storePath(env));
|
|
118
118
|
try {
|
|
@@ -124,7 +124,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
124
124
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
125
125
|
const { command, env, io } = run;
|
|
126
126
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
127
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
127
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-3GM5HC4Y.js");
|
|
128
128
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
129
129
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
130
130
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -197,7 +197,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
197
197
|
contentLanguages: start.contentLanguages,
|
|
198
198
|
all: start.path[0] === "setup",
|
|
199
199
|
io: {
|
|
200
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
200
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-RQXVPJ4A.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
201
201
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
202
202
|
`), "say")
|
|
203
203
|
}
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
decodeOgg
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IW3U6XXI.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError
|
|
9
9
|
} from "./chunk-MXP4J6BJ.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
18
18
|
import { spawn } from "node:child_process";
|
|
19
19
|
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
20
20
|
import { createRequire } from "node:module";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
describeOptions,
|
|
8
8
|
keyForCommand,
|
|
9
9
|
metaOf
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-4MIPN37I.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError,
|
|
13
13
|
jsonSchemaOf
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
__name
|
|
17
17
|
} from "./chunk-ZVVMGPBJ.js";
|
|
18
18
|
|
|
19
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/cli/command-contract.js
|
|
20
20
|
var SCHEMA_DIALECT = "https://json-schema.org/draft/2020-12/schema";
|
|
21
21
|
var outputOf = /* @__PURE__ */ __name((command) => {
|
|
22
22
|
const entity = answerEntitySchema(command);
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
MAX_SECRET_INPUT,
|
|
5
5
|
bufferedInput,
|
|
6
6
|
inputPolicy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KVVDRD7M.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./chunk-MXP4J6BJ.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/terminal/prompt.js
|
|
16
16
|
import { createInterface } from "node:readline";
|
|
17
17
|
import { Writable } from "node:stream";
|
|
18
18
|
var readSecret = /* @__PURE__ */ __name(async (prompt, { input = process.stdin, output = process.stderr, echo = false, signal: givenSignal } = {}) => {
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
secretNamed,
|
|
5
|
+
withoutSecrets
|
|
6
|
+
} from "./chunk-JDJDNMCP.js";
|
|
3
7
|
import {
|
|
4
8
|
errorCodes,
|
|
5
9
|
isContentKey
|
|
@@ -8,18 +12,18 @@ import {
|
|
|
8
12
|
__name
|
|
9
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
10
14
|
|
|
11
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
12
16
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
13
17
|
import { createHash } from "node:crypto";
|
|
14
18
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
19
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
16
20
|
import { homedir } from "node:os";
|
|
17
21
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
22
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/errors/failures.js
|
|
19
23
|
var isCliFailure = /* @__PURE__ */ __name((value) => value instanceof Error && value.name === "CliError" && errorCodes.includes(value.code), "isCliFailure");
|
|
20
24
|
var failureKey = /* @__PURE__ */ __name((error) => isCliFailure(error) ? error.code : error instanceof Error ? error.name : "error", "failureKey");
|
|
21
25
|
|
|
22
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/runs/events.js
|
|
23
27
|
var providerErrorKey = /* @__PURE__ */ __name((value) => typeof value === "string" && /^[A-Za-z][A-Za-z0-9._-]{0,63}$/.test(value) ? value : void 0, "providerErrorKey");
|
|
24
28
|
var renderEvent = /* @__PURE__ */ __name((event) => {
|
|
25
29
|
if (event.event === "warning") {
|
|
@@ -67,88 +71,7 @@ var MARK = { request: "\u2192", response: "\u2190", cache: "\u2022", warning: "!
|
|
|
67
71
|
var age = /* @__PURE__ */ __name((ms) => ms < 1e3 ? `${ms}ms` : `${Math.round(ms / 1e3)}s`, "age");
|
|
68
72
|
var size = /* @__PURE__ */ __name((bytes) => bytes < 1e3 ? `${bytes} B` : `${(bytes / 1e3).toFixed(1)} kB`, "size");
|
|
69
73
|
|
|
70
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
71
|
-
var SECRET_WORDS = /* @__PURE__ */ new Set([
|
|
72
|
-
"authorization",
|
|
73
|
-
"cookie",
|
|
74
|
-
"credential",
|
|
75
|
-
"credentials",
|
|
76
|
-
"passphrase",
|
|
77
|
-
"password",
|
|
78
|
-
"passwd",
|
|
79
|
-
"pwd",
|
|
80
|
-
"pass",
|
|
81
|
-
"passcode",
|
|
82
|
-
"pin",
|
|
83
|
-
"otp",
|
|
84
|
-
"2fa",
|
|
85
|
-
"secret",
|
|
86
|
-
"token",
|
|
87
|
-
"contrase\xF1a",
|
|
88
|
-
"contrasena",
|
|
89
|
-
"clave",
|
|
90
|
-
"\u043F\u0430\u0440\u043E\u043B\u044C",
|
|
91
|
-
"\u043F\u0438\u043D",
|
|
92
|
-
"\u043A\u043E\u0434",
|
|
93
|
-
...["api", "auth", "service", "account", "db", "database", "priv", "private", "client"].map((word) => `${word}key`),
|
|
94
|
-
...["db", "database", "key"].map((word) => `${word}pass`)
|
|
95
|
-
]);
|
|
96
|
-
var secretNamed = /* @__PURE__ */ __name((name) => {
|
|
97
|
-
const words = name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").split(/[\s_.-]+/).map((word) => word.toLowerCase());
|
|
98
|
-
return words.some((word, at) => SECRET_WORDS.has(word) || SECRET_WORDS.has(word + (words[at + 1] ?? "")));
|
|
99
|
-
}, "secretNamed");
|
|
100
|
-
var START = "(?<![A-Za-z0-9_-])";
|
|
101
|
-
var END = "(?![A-Za-z0-9_-])";
|
|
102
|
-
var KNOWN_TOKENS = new RegExp(`${[
|
|
103
|
-
"gh[pousr]_[A-Za-z0-9]{36,}",
|
|
104
|
-
"github_pat_[A-Za-z0-9_]{22,}",
|
|
105
|
-
"sk-[A-Za-z0-9_-]{20,}",
|
|
106
|
-
"xox[abprs]-[A-Za-z0-9-]{10,}",
|
|
107
|
-
"(?:AKIA|ASIA)[A-Z0-9]{16}",
|
|
108
|
-
"AIza[A-Za-z0-9_-]{35}",
|
|
109
|
-
"(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{10,}",
|
|
110
|
-
"npm_[A-Za-z0-9]{36}",
|
|
111
|
-
"eyJ[A-Za-z0-9_-]{5,}\\.eyJ[A-Za-z0-9_-]{5,}\\.[A-Za-z0-9_-]*"
|
|
112
|
-
].map((pattern) => `${START}${pattern}${END}`).join("|")}|(?<!\\d)\\d{8,10}:[A-Za-z0-9_-]{35}${END}`, "g");
|
|
113
|
-
var PRIVATE_KEY = /-----BEGIN[A-Z ]* PRIVATE KEY-----[\s\S]*?(?:-----END[A-Z ]* PRIVATE KEY-----|$)/g;
|
|
114
|
-
var SCHEME = /(?<![A-Za-z])(Bearer|Basic)(\s+)(?![A-Z]?[a-z]+(?![A-Za-z0-9]))[A-Za-z0-9._~+/=-]{8,}/g;
|
|
115
|
-
var NAMED_PAIR = /(?<![\p{L}\p{N}])([\p{L}\p{N}_.-]*(?:token|pass|pwd|pin|otp|2fa|secret|credential|cookie|authorization|key|contrase|clave|пароль|пин|код)[\p{L}\p{N}_.-]*)(["']?\s*(?:=>|[:=])\s*["']?|\s+(?![\p{L}]+(?![\p{L}\p{N}])))((?:Bearer\s+|Basic\s+)?)([^\s"'&,;]+)/giu;
|
|
116
|
-
var looksRandom = /* @__PURE__ */ __name((run) => {
|
|
117
|
-
if (run.length < 20)
|
|
118
|
-
return false;
|
|
119
|
-
const classes = [/[a-z]/, /[A-Z]/, /\d/, /[^A-Za-z0-9]/].filter((kind) => kind.test(run)).length;
|
|
120
|
-
if (classes < 3)
|
|
121
|
-
return false;
|
|
122
|
-
let switches = 0;
|
|
123
|
-
for (let at = 1; at < run.length; at++) {
|
|
124
|
-
const [before, after] = [run[at - 1], run[at]];
|
|
125
|
-
if (/[a-z]/.test(before) && /[A-Z]/.test(after) || /[A-Z]/.test(before) && /[a-z]/.test(after))
|
|
126
|
-
switches += 1;
|
|
127
|
-
}
|
|
128
|
-
if (switches / run.length < 0.15)
|
|
129
|
-
return false;
|
|
130
|
-
const pieces = run.match(/[A-Z]?[a-z]+|[A-Z]+(?![a-z])|\d+/g) ?? [];
|
|
131
|
-
if (pieces.join("").length / Math.max(pieces.length, 1) >= 2.75)
|
|
132
|
-
return false;
|
|
133
|
-
return entropy(run) >= 3.5;
|
|
134
|
-
}, "looksRandom");
|
|
135
|
-
var entropy = /* @__PURE__ */ __name((text) => {
|
|
136
|
-
const counts = /* @__PURE__ */ new Map();
|
|
137
|
-
for (const char of text)
|
|
138
|
-
counts.set(char, (counts.get(char) ?? 0) + 1);
|
|
139
|
-
let bits = 0;
|
|
140
|
-
for (const count of counts.values())
|
|
141
|
-
bits -= count / text.length * Math.log2(count / text.length);
|
|
142
|
-
return bits;
|
|
143
|
-
}, "entropy");
|
|
144
|
-
var withoutSecrets = /* @__PURE__ */ __name((text, mark = "[redacted]") => text.replace(PRIVATE_KEY, mark).replace(KNOWN_TOKENS, mark).replace(SCHEME, `$1$2${mark}`).replace(NAMED_PAIR, (whole, name, separator, scheme) => secretNamed(name) ? `${name}${separator}${scheme}${mark}` : whole).replace(/[!-~]{20,}/g, (token) => (
|
|
145
|
-
// A URL or a path is somebody's address, not a key; a credential in one is caught by the rules above.
|
|
146
|
-
token.includes("://") || /^(?:\/|~\/|\.\.?\/)/.test(token) ? token : token.replace(RUN, (run) => looksRandom(run) ? mark : run.replace(HEX, (hex) => entropy(hex) >= 3 ? mark : hex))
|
|
147
|
-
)), "withoutSecrets");
|
|
148
|
-
var RUN = /(?<![A-Za-z0-9_+/-])[A-Za-z0-9_+/-]{20,}/g;
|
|
149
|
-
var HEX = /(?<![A-Za-z0-9])(?=[0-9]*[a-f])[0-9a-f]{20,}(?![A-Za-z0-9])/g;
|
|
150
|
-
|
|
151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.558.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_453e84576400aa35c5cf5bcf0ba79cec/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
74
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/runs/error-detail.js
|
|
152
75
|
var MESSAGE_AT_MOST = 500;
|
|
153
76
|
var CAUSES_AT_MOST = 5;
|
|
154
77
|
var FRAMES_AT_MOST = 15;
|
|
@@ -257,7 +180,7 @@ var redactText = /* @__PURE__ */ __name((text) => {
|
|
|
257
180
|
return out.length > MESSAGE_AT_MOST ? `${out.slice(0, MESSAGE_AT_MOST)}\u2026` : out;
|
|
258
181
|
}, "redactText");
|
|
259
182
|
|
|
260
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/runs/run-context.js
|
|
261
184
|
var REDACTED = "[redacted]";
|
|
262
185
|
var keepsSuccess = /* @__PURE__ */ __name(({ record, fromFlag, env, caller, persistent = false }) => {
|
|
263
186
|
if (!record)
|
|
@@ -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.559.0_@wirecat+cli-base@0.75.0_commander@15.0.0_esbuild@0.28.2_type_907a8c00de2c01e4b50d7050f36772c6/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
inspectConfig,
|
|
5
5
|
loadConfig,
|
|
6
6
|
memoPermissionKeys
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NKTAEBCU.js";
|
|
8
8
|
import {
|
|
9
9
|
CEILING_KEY,
|
|
10
10
|
changesAuthority,
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
layerPermissions,
|
|
14
14
|
levelFor,
|
|
15
15
|
metaOf
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4MIPN37I.js";
|
|
17
17
|
import {
|
|
18
18
|
setupPermissionCeiling
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YVECM7XA.js";
|
|
20
20
|
import {
|
|
21
21
|
readOnlyLockOf,
|
|
22
22
|
readOnlyRefusal
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SHDZVM3B.js";
|
|
24
24
|
import {
|
|
25
25
|
APP
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-G7TF4E7B.js";
|
|
27
27
|
import {
|
|
28
28
|
CliError
|
|
29
29
|
} from "./chunk-MXP4J6BJ.js";
|