@wirecat/cli-template 0.10.0 → 0.12.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/.github/workflows/ci.yml +17 -0
- package/.github/workflows/release.yml +62 -0
- package/CHANGELOG.md +46 -0
- package/CLAUDE.md +1 -3
- package/contracts/help.snap +2 -0
- package/dist/bin/clidev.js +2 -2
- package/dist/bundle/{all-profiles-XHC7BG3P.js → all-profiles-MJ6XSFOO.js} +4 -4
- package/dist/bundle/{anthropic-N6B3ZZHQ.js → anthropic-W5UKBZUB.js} +3 -3
- package/dist/bundle/app-server-EZ46JAHB.js +217 -0
- package/dist/bundle/{bun-HUJLS7KP.js → bun-HB6O2TTT.js} +2 -2
- package/dist/bundle/{bun-sqlite-OWFO2TVR.js → bun-sqlite-KBXOW2ES.js} +2 -2
- package/dist/bundle/{chunk-B4EED2RF.js → chunk-2B5U4Z5H.js} +5 -5
- package/dist/bundle/{chunk-ABP7FDMJ.js → chunk-35KYY65W.js} +2 -2
- package/dist/bundle/{chunk-MZVV2JZT.js → chunk-4LURWBVV.js} +17 -9
- package/dist/bundle/{chunk-QGNNMPUB.js → chunk-7IXL4UFK.js} +7 -7
- package/dist/bundle/{chunk-NE3NSB5O.js → chunk-AK257OMS.js} +55 -43
- package/dist/bundle/{chunk-IJ3IA7EK.js → chunk-CXQXVKUY.js} +1 -1
- package/dist/bundle/{chunk-7RB76E2L.js → chunk-EGRB55FF.js} +4 -4
- package/dist/bundle/{chunk-DMCN22H6.js → chunk-ERGB4NJA.js} +20 -2
- package/dist/bundle/{chunk-TJLGI3N6.js → chunk-ERKR3VJ5.js} +79 -28
- package/dist/bundle/{chunk-2CFBHYFA.js → chunk-FDBINRWA.js} +4 -4
- package/dist/bundle/{chunk-FIHDGZIB.js → chunk-FZZIU4B7.js} +2416 -2254
- package/dist/bundle/{chunk-BDSDQCV4.js → chunk-HDY5X3WQ.js} +4 -4
- package/dist/bundle/{chunk-XFXBXQBS.js → chunk-IBBN7Z3A.js} +2 -2
- package/dist/bundle/{chunk-4QRLPOJ7.js → chunk-IDWW4TU2.js} +1 -1
- package/dist/bundle/{chunk-OPPMGPFW.js → chunk-IGHEW777.js} +4 -4
- package/dist/bundle/{chunk-437W3Z2M.js → chunk-IN3FVRPK.js} +1 -1
- package/dist/bundle/{chunk-FWVKHD2L.js → chunk-JAOGZMKQ.js} +1 -1
- package/dist/bundle/{chunk-O3PBQVAB.js → chunk-JHO2LL2J.js} +18 -6
- package/dist/bundle/{chunk-MNSD5BX2.js → chunk-JRK73FOW.js} +1 -1
- package/dist/bundle/{chunk-O5LMDQTO.js → chunk-KJTNT4SW.js} +1 -1
- package/dist/bundle/{chunk-B4LM2B6F.js → chunk-L5WWMP5M.js} +24 -20
- package/dist/bundle/{chunk-NTLPDH76.js → chunk-MJRSEUKG.js} +9 -7
- package/dist/bundle/{chunk-AP7QKYBG.js → chunk-MUSYGFCY.js} +165 -140
- package/dist/bundle/{server-L5GNG7KC.js → chunk-N2Z3MCOF.js} +31 -45
- package/dist/bundle/{chunk-JTTW5ZKF.js → chunk-NOVLCHDV.js} +1 -1
- package/dist/bundle/{chunk-54AJONOM.js → chunk-O3UXNU3S.js} +2 -2
- package/dist/bundle/{chunk-75LVQQEK.js → chunk-OV6PHTAY.js} +2034 -1590
- package/dist/bundle/{chunk-W2IDKBNB.js → chunk-PBN4RBHS.js} +7 -7
- package/dist/bundle/{chunk-2TBVT4SZ.js → chunk-PDGXMKJS.js} +1 -1
- package/dist/bundle/{recognize-TTED4SE3.js → chunk-PJOVK7PG.js} +6 -5
- package/dist/bundle/{chunk-LY7GS2YI.js → chunk-QBP7OMN5.js} +1 -1
- package/dist/bundle/{chunk-VMTM46FH.js → chunk-QJ6XW4DM.js} +75 -51
- package/dist/bundle/{chunk-OPJ24VGH.js → chunk-QKWRL4OD.js} +5 -5
- package/dist/bundle/{chunk-MTGLJCAZ.js → chunk-QQUFZLFP.js} +1 -1
- package/dist/bundle/{chunk-6CBWO7OF.js → chunk-RUKDZEID.js} +2 -2
- package/dist/bundle/{chunk-TARN7CHN.js → chunk-SVDF6NJF.js} +10 -10
- package/dist/bundle/{chunk-FXS3X76A.js → chunk-TAYOKLGF.js} +4 -4
- package/dist/bundle/{chunk-ASMH7JWZ.js → chunk-TGB5F7NC.js} +2 -2
- package/dist/bundle/{chunk-222FANS2.js → chunk-V3ZTQ24B.js} +4 -4
- package/dist/bundle/{chunk-LSEF4QC3.js → chunk-VLNKTMV7.js} +75 -47
- package/dist/bundle/{chunk-7RXBN7HP.js → chunk-VYSUKHKL.js} +1 -1
- package/dist/bundle/{chunk-JEBSORH7.js → chunk-YJNUDHJD.js} +25 -14
- package/dist/bundle/{chunk-S57AMKLX.js → chunk-Z7MSIRSQ.js} +1 -1
- package/dist/bundle/{chunk-2KQZ24GI.js → chunk-ZLY6GUAS.js} +2 -2
- package/dist/bundle/clidev.js +2 -2
- package/dist/bundle/{command-contract-PEM3S634.js → command-contract-75VJ36U4.js} +10 -10
- package/dist/bundle/decode-AMXUVKNY.js +158 -0
- package/dist/bundle/{echarts-2QGL2JP5.js → echarts-GJDMQ2AQ.js} +2 -2
- package/dist/bundle/{embed-HHAAGHA6.js → embed-L4CRZ2XQ.js} +3 -3
- package/dist/bundle/{embedder-W2OGVVYH.js → embedder-IBGV4M2K.js} +6 -6
- package/dist/bundle/{first-run-WCJUDUBU.js → first-run-VTKC2IBV.js} +5 -5
- package/dist/bundle/{first-screen-U4DFUKUC.js → first-screen-X5IJKBSU.js} +11 -11
- package/dist/bundle/{instructions-OTZHT6NV.js → instructions-YJECS4KN.js} +3 -1
- package/dist/bundle/mcp-RDZGYPSY.js +78 -0
- package/dist/bundle/{mcp-VVF6J7SQ.js → mcp-TEMCENVV.js} +33 -33
- package/dist/bundle/{node-SYD4GX5O.js → node-NQG4EVZR.js} +2 -2
- package/dist/bundle/node-sqlite-BR7F3BLB.js +61 -0
- package/dist/bundle/{oauth-42M34GQ5.js → oauth-J7UAWNIK.js} +4 -4
- package/dist/bundle/{open-SWXRCDLN.js → open-BR47R5UE.js} +1 -1
- package/dist/bundle/{process-KAFGXZ7Q.js → process-66I7RDPJ.js} +1 -1
- package/dist/bundle/{program-EHR4G7VN.js → program-RNGI562F.js} +913 -601
- package/dist/bundle/{prompt-ZQTMHRGX.js → prompt-NE5JJ7UP.js} +2 -2
- package/dist/bundle/recognize-GC3YFVIA.js +21 -0
- package/dist/bundle/{remote-C37XJ4BP.js → remote-QELOMKQM.js} +4 -4
- package/dist/bundle/{rerank-APFZAMQL.js → rerank-BH6TZ2SP.js} +4 -4
- package/dist/bundle/{serve-DDPIHDVZ.js → serve-WWLRNDT2.js} +6 -6
- package/dist/bundle/server-DE6NLNUF.js +52 -0
- package/dist/bundle/server-ZPSQKOAH.js +39 -0
- package/dist/bundle/{state-WWPPHERF.js → state-2BEGXAMO.js} +3 -3
- package/dist/bundle/{store-H6UIA4PK.js → store-AH6WZMCF.js} +7 -7
- package/dist/bundle/store-maintenance-command-PBXX3IEV.js +40 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/configuration.md +3 -1
- package/docs/dev/TESTING.md +2 -0
- package/docs/dev/skills/release/SKILL.md +9 -5
- package/docs/dev/test-matrix.md +1 -1
- package/kit/dist/new.js +3 -0
- package/package.json +4 -2
- package/scripts/audit.sh +11 -1
- package/scripts/smoke-bundle.ts +2 -1
- package/scripts/smoke.ts +18 -0
- package/scripts/test-matrix-untested.ts +1 -1
- package/server.json +38 -0
- package/src/version.ts +1 -1
- package/template.json +1 -0
- package/dist/bundle/mcp-Y7VCIZ2J.js +0 -78
- package/dist/bundle/node-sqlite-X2DGRFOZ.js +0 -45
- package/dist/bundle/server-LKVYA2AE.js +0 -39
- package/dist/bundle/store-maintenance-command-EYBT64A2.js +0 -40
- /package/dist/bundle/{chunk-QVJLOUQB.js → chunk-GOO67PDU.js} +0 -0
|
@@ -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.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/search/languages.js
|
|
11
11
|
var LANGUAGES = [
|
|
12
12
|
{ name: "russian", code: "ru", label: "Russian", script: "cyrillic", dictionary: "dictionary-ru" },
|
|
13
13
|
{ name: "english", code: "en", label: "English", script: "latin", dictionary: "dictionary-en" },
|
|
@@ -15,12 +15,12 @@ var LANGUAGES = [
|
|
|
15
15
|
];
|
|
16
16
|
var languagesOf = /* @__PURE__ */ __name((script) => LANGUAGES.filter((one) => one.script === script).map(({ name }) => name), "languagesOf");
|
|
17
17
|
|
|
18
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
18
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/store/normalize.js
|
|
19
19
|
var NORMALIZER_VERSION = 1;
|
|
20
20
|
var fold = /* @__PURE__ */ __name((text) => text.normalize("NFKD").replace(new RegExp("\\p{M}+", "gu"), "").normalize("NFC").toLowerCase(), "fold");
|
|
21
21
|
var normalize = /* @__PURE__ */ __name((text) => fold(text).replace(new RegExp("\\p{Cc}", "gu"), " ").replace(/\s+/gu, " ").trim(), "normalize");
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/search/snowball/base-stemmer.js
|
|
24
24
|
var BaseStemmer = class {
|
|
25
25
|
static {
|
|
26
26
|
__name(this, "BaseStemmer");
|
|
@@ -395,7 +395,7 @@ var BaseStemmer = class {
|
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
|
|
398
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/search/snowball/english-stemmer.js
|
|
399
399
|
var a_0 = [
|
|
400
400
|
["arsen", -1],
|
|
401
401
|
["commun", -1],
|
|
@@ -1096,7 +1096,7 @@ var english_stemmer_default = class extends BaseStemmer {
|
|
|
1096
1096
|
stemWord = this.stem;
|
|
1097
1097
|
};
|
|
1098
1098
|
|
|
1099
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/search/snowball/russian-stemmer.js
|
|
1100
1100
|
var a_02 = [
|
|
1101
1101
|
["\u0432", 1],
|
|
1102
1102
|
["\u0438\u0432", 2, 1],
|
|
@@ -1519,7 +1519,7 @@ var russian_stemmer_default = class extends BaseStemmer {
|
|
|
1519
1519
|
stemWord = this.stem;
|
|
1520
1520
|
};
|
|
1521
1521
|
|
|
1522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/search/snowball/spanish-stemmer.js
|
|
1523
1523
|
var a_03 = [
|
|
1524
1524
|
["", 6],
|
|
1525
1525
|
["\xE1", 1, 1],
|
|
@@ -2195,7 +2195,7 @@ var spanish_stemmer_default = class extends BaseStemmer {
|
|
|
2195
2195
|
stemWord = this.stem;
|
|
2196
2196
|
};
|
|
2197
2197
|
|
|
2198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/search/stem.js
|
|
2199
2199
|
var SNOWBALL_VERSION = "3.1.1";
|
|
2200
2200
|
var CYRILLIC_STEMMERS = [...languagesOf("cyrillic"), "none"];
|
|
2201
2201
|
var LATIN_STEMMERS = [...languagesOf("latin"), "none"];
|
|
@@ -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.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/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) {
|
|
@@ -10,10 +10,10 @@ 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.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
14
14
|
import { createRequire } from "node:module";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/speech/ogg-limit.js
|
|
17
17
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "local transcription needs a complete mono or stereo Ogg Opus recording"), "invalid");
|
|
18
18
|
var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
19
19
|
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -70,7 +70,7 @@ var checkOggDuration = /* @__PURE__ */ __name((bytes) => {
|
|
|
70
70
|
throw invalid();
|
|
71
71
|
}, "checkOggDuration");
|
|
72
72
|
|
|
73
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
73
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/speech/recognize.js
|
|
74
74
|
var SAMPLE_RATE = 16e3;
|
|
75
75
|
var LEAD = SAMPLE_RATE / 2;
|
|
76
76
|
var toModelRate = /* @__PURE__ */ __name((samples, rate) => {
|
|
@@ -180,11 +180,12 @@ var openRecognizer = /* @__PURE__ */ __name((model, path, vadModel) => {
|
|
|
180
180
|
}, "free")
|
|
181
181
|
};
|
|
182
182
|
}, "openRecognizer");
|
|
183
|
+
|
|
183
184
|
export {
|
|
184
185
|
SAMPLE_RATE,
|
|
186
|
+
toModelRate,
|
|
185
187
|
decodeOgg,
|
|
186
188
|
detector,
|
|
187
189
|
loadSherpa,
|
|
188
|
-
openRecognizer
|
|
189
|
-
toModelRate
|
|
190
|
+
openRecognizer
|
|
190
191
|
};
|
|
@@ -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.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
providerErrorKey,
|
|
11
11
|
renderEvent,
|
|
12
12
|
runContextOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MJRSEUKG.js";
|
|
14
14
|
import {
|
|
15
15
|
permissionCeiling
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-O3UXNU3S.js";
|
|
17
17
|
import {
|
|
18
18
|
FIELD_TYPES,
|
|
19
19
|
QUERY_BACKENDS,
|
|
@@ -22,17 +22,17 @@ import {
|
|
|
22
22
|
TASK_STATES,
|
|
23
23
|
TASK_TYPES,
|
|
24
24
|
describeQuery
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-VLNKTMV7.js";
|
|
26
26
|
import {
|
|
27
27
|
sharedConfigPath
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FDBINRWA.js";
|
|
29
29
|
import {
|
|
30
30
|
filesPresent,
|
|
31
31
|
sharedModelsDirectory
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-EGRB55FF.js";
|
|
33
33
|
import {
|
|
34
34
|
storePath
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-IDWW4TU2.js";
|
|
36
36
|
import {
|
|
37
37
|
CliError,
|
|
38
38
|
MAX_NEXT_STEPS,
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
__name
|
|
93
93
|
} from "./chunk-ZVVMGPBJ.js";
|
|
94
94
|
|
|
95
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
95
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
96
96
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
97
97
|
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
98
98
|
const name = envName(app, "READ_ONLY");
|
|
@@ -3803,7 +3803,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3803
3803
|
}
|
|
3804
3804
|
}, "refuseJoinedPath");
|
|
3805
3805
|
|
|
3806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3806
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
3807
3807
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
3808
3808
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
3809
3809
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -4192,7 +4192,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4192
4192
|
}
|
|
4193
4193
|
}, "assertRetentionEvidenceRead");
|
|
4194
4194
|
|
|
4195
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4195
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
4196
4196
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4197
4197
|
var sentIds = /* @__PURE__ */ __name((typed, message) => ({
|
|
4198
4198
|
messageId: message.id,
|
|
@@ -4298,7 +4298,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
4298
4298
|
}, "guardedWrite");
|
|
4299
4299
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4300
4300
|
|
|
4301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4301
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
4302
4302
|
var named = /* @__PURE__ */ __name((work) => {
|
|
4303
4303
|
try {
|
|
4304
4304
|
return work();
|
|
@@ -4325,9 +4325,10 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
4325
4325
|
return projectFields(value, fields);
|
|
4326
4326
|
}), "projectFields");
|
|
4327
4327
|
|
|
4328
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4329
4329
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4330
4330
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4331
|
+
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
4331
4332
|
var DEFAULT_AGENT_COOPERATIVE_MS = 45e3;
|
|
4332
4333
|
var DEFAULT_OUTPUT_BYTES = 4 * 1024 * 1024;
|
|
4333
4334
|
var byteCount = /* @__PURE__ */ __name((value, option, zero = false) => {
|
|
@@ -4506,7 +4507,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4506
4507
|
}
|
|
4507
4508
|
}, "withAbort");
|
|
4508
4509
|
|
|
4509
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4510
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4510
4511
|
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4511
4512
|
import { join } from "node:path";
|
|
4512
4513
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4528,7 +4529,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4528
4529
|
}, "profilesWithAccounts");
|
|
4529
4530
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4530
4531
|
|
|
4531
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
4532
4533
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
4533
4534
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
4534
4535
|
var isHit = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && typeof value.locator === "string" && typeof value.text === "string", "isHit");
|
|
@@ -4558,7 +4559,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
4558
4559
|
return value;
|
|
4559
4560
|
}, "atDetail");
|
|
4560
4561
|
|
|
4561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4562
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/output.js
|
|
4562
4563
|
var resolveOutput = /* @__PURE__ */ __name(({ json, jsonl, quiet, streams = processStreams, tty, color, fields, hitDetail, env = process.env, capture } = {}) => {
|
|
4563
4564
|
const interactive = tty ?? process.stdout.isTTY === true;
|
|
4564
4565
|
const format = jsonl ? "jsonl" : json || !interactive ? "json" : "pretty";
|
|
@@ -4606,7 +4607,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
4606
4607
|
}, "warn")
|
|
4607
4608
|
}), "silence");
|
|
4608
4609
|
|
|
4609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4610
4611
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4611
4612
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4612
4613
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4640,7 +4641,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4640
4641
|
cache: "cache.answered"
|
|
4641
4642
|
};
|
|
4642
4643
|
|
|
4643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4644
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/runs/log-keys.js
|
|
4644
4645
|
var snake2 = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snake");
|
|
4645
4646
|
var camel = /* @__PURE__ */ __name((key) => key.replace(/_([a-z0-9])/g, (_, letter) => letter.toUpperCase()), "camel");
|
|
4646
4647
|
var renamed = /* @__PURE__ */ __name((record2, name) => Object.fromEntries(Object.entries(record2).map(([key, value]) => [name(key), value])), "renamed");
|
|
@@ -4653,13 +4654,13 @@ var snakeLogger = /* @__PURE__ */ __name((logger) => ({
|
|
|
4653
4654
|
error: /* @__PURE__ */ __name((event, message) => logger.error(logAttributes(event), message), "error")
|
|
4654
4655
|
}), "snakeLogger");
|
|
4655
4656
|
|
|
4656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4657
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4657
4658
|
import { randomUUID } from "node:crypto";
|
|
4658
4659
|
import { appendFileSync, mkdirSync, readdirSync as readdirSync2, readFileSync as readFileSync2, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4659
4660
|
import { userInfo } from "node:os";
|
|
4660
4661
|
import { join as join2, sep } from "node:path";
|
|
4661
4662
|
|
|
4662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/runs/log-attributes.js
|
|
4663
4664
|
var diagnostic = {
|
|
4664
4665
|
event: true,
|
|
4665
4666
|
operation: true,
|
|
@@ -4729,7 +4730,7 @@ var LOG_ATTRIBUTES = [
|
|
|
4729
4730
|
...new Set([...Object.keys(diagnostic), ...Object.keys(send), ...background, ...crash, ...dropped].map((key) => Object.keys(logAttributes({ [key]: true }))[0]))
|
|
4730
4731
|
].sort();
|
|
4731
4732
|
|
|
4732
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/runs/run.js
|
|
4733
4734
|
var KEEP_RUNS_FOR_DAYS = 30;
|
|
4734
4735
|
var KEEP_SUCCESSFUL_RUNS_FOR_DAYS = 7;
|
|
4735
4736
|
var RUNS_SIZE_LIMIT_MB = 200;
|
|
@@ -5082,7 +5083,7 @@ var metadataOf = /* @__PURE__ */ __name((parsed) => {
|
|
|
5082
5083
|
};
|
|
5083
5084
|
}, "metadataOf");
|
|
5084
5085
|
|
|
5085
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5086
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/runs/scope.js
|
|
5086
5087
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
5087
5088
|
import { randomBytes } from "node:crypto";
|
|
5088
5089
|
var scopes = new AsyncLocalStorage2();
|
|
@@ -5118,7 +5119,7 @@ var childTrace = /* @__PURE__ */ __name(() => {
|
|
|
5118
5119
|
var attempts = new AsyncLocalStorage2();
|
|
5119
5120
|
var withAttempt = /* @__PURE__ */ __name((attempt, work) => attempts.run(attempt, work), "withAttempt");
|
|
5120
5121
|
|
|
5121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
5122
5123
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
5123
5124
|
const recording = startRecording(options);
|
|
5124
5125
|
try {
|
|
@@ -5303,7 +5304,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
5303
5304
|
return void 0;
|
|
5304
5305
|
}, "partialOutcome");
|
|
5305
5306
|
|
|
5306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
5307
5308
|
var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
5308
5309
|
if (ms === void 0)
|
|
5309
5310
|
return body();
|
|
@@ -5329,7 +5330,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms, closeables, body) => {
|
|
|
5329
5330
|
}
|
|
5330
5331
|
}, "withDeadline");
|
|
5331
5332
|
|
|
5332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
5333
5334
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
5334
5335
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
5335
5336
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5393,10 +5394,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
5393
5394
|
return void 0;
|
|
5394
5395
|
}, "sampleCommand");
|
|
5395
5396
|
|
|
5396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5397
5398
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5398
5399
|
|
|
5399
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
5400
5401
|
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
5401
5402
|
try {
|
|
5402
5403
|
const url2 = new URL(value);
|
|
@@ -5406,7 +5407,7 @@ var endpoint = /* @__PURE__ */ __name((value) => {
|
|
|
5406
5407
|
}
|
|
5407
5408
|
}, "endpoint");
|
|
5408
5409
|
|
|
5409
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
5410
5411
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5411
5412
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5412
5413
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -5475,7 +5476,7 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
5475
5476
|
};
|
|
5476
5477
|
}, "modelTarget");
|
|
5477
5478
|
|
|
5478
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5479
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5479
5480
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5480
5481
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5481
5482
|
var AI_FIELDS = {
|
|
@@ -5519,7 +5520,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5519
5520
|
};
|
|
5520
5521
|
}, "resolveAISettings");
|
|
5521
5522
|
|
|
5522
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5523
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5523
5524
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5524
5525
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5525
5526
|
var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
@@ -5533,7 +5534,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source) => {
|
|
|
5533
5534
|
return ms;
|
|
5534
5535
|
}, "parseDuration");
|
|
5535
5536
|
|
|
5536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5537
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/embeddings/models.js
|
|
5537
5538
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
5538
5539
|
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
5539
5540
|
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
@@ -5692,7 +5693,7 @@ var rerankModel = /* @__PURE__ */ __name((id2) => {
|
|
|
5692
5693
|
var vectorModelKey = /* @__PURE__ */ __name((model2) => `local:${model2.id}:${model2.dims}`, "vectorModelKey");
|
|
5693
5694
|
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5694
5695
|
|
|
5695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5696
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5696
5697
|
import { readFileSync as readFileSync3 } from "node:fs";
|
|
5697
5698
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5698
5699
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -5982,7 +5983,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
5982
5983
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
5983
5984
|
}, "readConfigFile");
|
|
5984
5985
|
|
|
5985
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
5986
5987
|
import { existsSync as existsSync2, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5987
5988
|
import { dirname, join as join3 } from "node:path";
|
|
5988
5989
|
var DEFAULT_CONFIG = {
|
|
@@ -6011,7 +6012,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
6011
6012
|
}
|
|
6012
6013
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
6013
6014
|
|
|
6014
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
6015
6016
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
6016
6017
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
6017
6018
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -6401,7 +6402,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
6401
6402
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
6402
6403
|
}, "given");
|
|
6403
6404
|
|
|
6404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
6405
6406
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
6406
6407
|
const slot = environmentOf(command).exit;
|
|
6407
6408
|
if (slot)
|
|
@@ -6508,7 +6509,7 @@ var commandPath = /* @__PURE__ */ __name((command) => {
|
|
|
6508
6509
|
return words.join(" ");
|
|
6509
6510
|
}, "commandPath");
|
|
6510
6511
|
|
|
6511
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6512
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6512
6513
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6513
6514
|
var FETCH = { remote: "read", local: "write" };
|
|
6514
6515
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6606,7 +6607,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6606
6607
|
throw readOnlyRefusal(lock, what);
|
|
6607
6608
|
}, "refuseUnderReadOnly");
|
|
6608
6609
|
|
|
6609
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6610
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
6610
6611
|
import { join as join4 } from "node:path";
|
|
6611
6612
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
6612
6613
|
var IMAGE_MODELS = [
|
|
@@ -6660,7 +6661,7 @@ var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedM
|
|
|
6660
6661
|
var placedImage = /* @__PURE__ */ __name((model2, directory) => model2.files.map((file) => [file, join4(directory, model2.id, file.name)]), "placedImage");
|
|
6661
6662
|
var isImageModelInstalled = /* @__PURE__ */ __name((model2, directory) => filesPresent(placedImage(model2, directory)), "isImageModelInstalled");
|
|
6662
6663
|
|
|
6663
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6664
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
6664
6665
|
var STEPS2 = defineSteps([
|
|
6665
6666
|
...STEPS,
|
|
6666
6667
|
{
|
|
@@ -6669,6 +6670,7 @@ var STEPS2 = defineSteps([
|
|
|
6669
6670
|
args: [
|
|
6670
6671
|
{ name: "chat", required: false },
|
|
6671
6672
|
{ name: "all", required: false },
|
|
6673
|
+
{ name: "since_time", required: false },
|
|
6672
6674
|
{ name: "background", required: false }
|
|
6673
6675
|
],
|
|
6674
6676
|
why: "the local copy is missing messages; syncing brings them in"
|
|
@@ -6844,7 +6846,7 @@ var STEPS2 = defineSteps([
|
|
|
6844
6846
|
{
|
|
6845
6847
|
id: "mcp.config",
|
|
6846
6848
|
command: "mcp config",
|
|
6847
|
-
args: [],
|
|
6849
|
+
args: [{ name: "profiles", required: false }],
|
|
6848
6850
|
why: "the entry names one Node version's path; after switching or upgrading Node, print it again"
|
|
6849
6851
|
},
|
|
6850
6852
|
{
|
|
@@ -6926,7 +6928,7 @@ var stepLine = /* @__PURE__ */ __name((root, step) => {
|
|
|
6926
6928
|
].join(" ");
|
|
6927
6929
|
}, "stepLine");
|
|
6928
6930
|
|
|
6929
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
6930
6932
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
6931
6933
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
6932
6934
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -6940,7 +6942,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
6940
6942
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
6941
6943
|
}, "strip");
|
|
6942
6944
|
|
|
6943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6945
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
6944
6946
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
6945
6947
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
6946
6948
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -7062,7 +7064,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
|
|
|
7062
7064
|
renderer.result(item);
|
|
7063
7065
|
}, "printItem");
|
|
7064
7066
|
|
|
7065
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/entities/fields.js
|
|
7066
7068
|
var text = string();
|
|
7067
7069
|
var id = pipe(string(), minLength(1));
|
|
7068
7070
|
var time = isoTime;
|
|
@@ -7076,7 +7078,7 @@ var author = strictObject({
|
|
|
7076
7078
|
name: nullable(text)
|
|
7077
7079
|
});
|
|
7078
7080
|
|
|
7079
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7081
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
7080
7082
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
7081
7083
|
var storeTable = strictObject({
|
|
7082
7084
|
name: text,
|
|
@@ -7085,7 +7087,7 @@ var storeTable = strictObject({
|
|
|
7085
7087
|
bytes: optional(nullable(count2))
|
|
7086
7088
|
});
|
|
7087
7089
|
|
|
7088
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7090
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
7089
7091
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
7090
7092
|
const run = currentRun();
|
|
7091
7093
|
const trace = traceId ?? run.traceId;
|
|
@@ -7099,7 +7101,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
7099
7101
|
}));
|
|
7100
7102
|
}, "recordLogFor");
|
|
7101
7103
|
|
|
7102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
7103
7105
|
var attachment = strictObject({
|
|
7104
7106
|
/** The message it came with, as a locator; absent inside that message. */
|
|
7105
7107
|
message: optional(reference),
|
|
@@ -7120,6 +7122,14 @@ var attachment = strictObject({
|
|
|
7120
7122
|
text: optional(text),
|
|
7121
7123
|
extraction: optional(strictObject({ origin: text, extractor: text, chars: count2, error: optional(text) })),
|
|
7122
7124
|
local_path: optional(text),
|
|
7125
|
+
/** A shared contact card (`kind: "contact"`); the phone is the whole number as the sender put it. */
|
|
7126
|
+
contact: optional(strictObject({
|
|
7127
|
+
name: text,
|
|
7128
|
+
first_name: optional(text),
|
|
7129
|
+
last_name: optional(text),
|
|
7130
|
+
phone: optional(text),
|
|
7131
|
+
user_id: optional(id)
|
|
7132
|
+
})),
|
|
7123
7133
|
/** A bot's keyboard under the message, row by row; `messages press` presses one. */
|
|
7124
7134
|
buttons: optional(array(array(strictObject({
|
|
7125
7135
|
kind: picklist(["callback", "link", "message", "chat", "contact", "location", "app", "clipboard", "other"]),
|
|
@@ -7128,7 +7138,7 @@ var attachment = strictObject({
|
|
|
7128
7138
|
}))))
|
|
7129
7139
|
});
|
|
7130
7140
|
|
|
7131
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
7132
7142
|
var closeSuggestion = strictObject({
|
|
7133
7143
|
as: picklist(["done", "dismissed"]),
|
|
7134
7144
|
/** The agent's name. */
|
|
@@ -7170,7 +7180,7 @@ var task = strictObject({
|
|
|
7170
7180
|
updated_at: optional(time)
|
|
7171
7181
|
});
|
|
7172
7182
|
|
|
7173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7183
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
7174
7184
|
var agendaChat = strictObject({
|
|
7175
7185
|
chat: reference,
|
|
7176
7186
|
title: nullable(text),
|
|
@@ -7181,7 +7191,17 @@ var agendaChat = strictObject({
|
|
|
7181
7191
|
/** `null` when the newest message is not stored, or the messenger did not say who sent it. */
|
|
7182
7192
|
last_from_owner: nullable(boolean()),
|
|
7183
7193
|
/** Open tasks whose source is in this chat. */
|
|
7184
|
-
open_tasks: array(id)
|
|
7194
|
+
open_tasks: array(id),
|
|
7195
|
+
/** `unknown` means nothing ever fetched the chat's history; `partial` that the store holds only part of it. */
|
|
7196
|
+
completeness: strictObject({
|
|
7197
|
+
state: picklist(["complete", "partial", "unknown"]),
|
|
7198
|
+
up_to_date: nullable(boolean()),
|
|
7199
|
+
gaps: boolean(),
|
|
7200
|
+
reaches_start: boolean(),
|
|
7201
|
+
fetched_at: nullable(time)
|
|
7202
|
+
}),
|
|
7203
|
+
/** What the store holds of the chat: the count and the span, never the text. */
|
|
7204
|
+
held: strictObject({ messages: number(), oldest_at: nullable(time), newest_at: nullable(time) })
|
|
7185
7205
|
});
|
|
7186
7206
|
var agenda = strictObject({
|
|
7187
7207
|
at: time,
|
|
@@ -7230,7 +7250,7 @@ var agenda = strictObject({
|
|
|
7230
7250
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
7231
7251
|
});
|
|
7232
7252
|
|
|
7233
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7253
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
7234
7254
|
var WEIGHTS = {
|
|
7235
7255
|
bot: 3,
|
|
7236
7256
|
scam: 3,
|
|
@@ -7255,7 +7275,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
7255
7275
|
var DIGITS = /\d{5,}/;
|
|
7256
7276
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
7257
7277
|
|
|
7258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
7259
7279
|
var conversation = strictObject({
|
|
7260
7280
|
id,
|
|
7261
7281
|
chat: reference,
|
|
@@ -7270,7 +7290,7 @@ var conversation = strictObject({
|
|
|
7270
7290
|
rules_version: count2
|
|
7271
7291
|
});
|
|
7272
7292
|
|
|
7273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/entities/knowledge-lists.js
|
|
7274
7294
|
var organization = strictObject({
|
|
7275
7295
|
id,
|
|
7276
7296
|
ref: reference,
|
|
@@ -7284,6 +7304,7 @@ var project = strictObject({
|
|
|
7284
7304
|
ref: reference,
|
|
7285
7305
|
key: text,
|
|
7286
7306
|
name: text,
|
|
7307
|
+
kind: picklist(["project", "inbox"]),
|
|
7287
7308
|
type: picklist(["work", "client", "personal", "oss", "other"]),
|
|
7288
7309
|
organization_id: nullable(id),
|
|
7289
7310
|
scope: picklist(["personal", "work"]),
|
|
@@ -7299,7 +7320,7 @@ var reminder = strictObject({
|
|
|
7299
7320
|
receipt: nullable(text)
|
|
7300
7321
|
});
|
|
7301
7322
|
|
|
7302
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7323
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/entities/note.js
|
|
7303
7324
|
var link = {
|
|
7304
7325
|
target_text: nullable(text),
|
|
7305
7326
|
kind: text,
|
|
@@ -7340,7 +7361,7 @@ var note = strictObject({
|
|
|
7340
7361
|
backlinks: optional(array(strictObject({ from: reference, ...link })))
|
|
7341
7362
|
});
|
|
7342
7363
|
|
|
7343
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7364
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.495.0_@wirecat+cli-base@0.65.0_commander@15.0.0_esbuild@0.28.2_type_24cca5e5c8b0984f2f26e7d1ba6b6d47/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
7344
7365
|
var tagging = strictObject({
|
|
7345
7366
|
tag: text,
|
|
7346
7367
|
type: picklist(TAG_TYPES),
|
|
@@ -7383,6 +7404,8 @@ export {
|
|
|
7383
7404
|
typedCommand,
|
|
7384
7405
|
useAsProcessRun,
|
|
7385
7406
|
processRun,
|
|
7407
|
+
enclosingTraceId,
|
|
7408
|
+
traceOf,
|
|
7386
7409
|
childTrace,
|
|
7387
7410
|
withAttempt,
|
|
7388
7411
|
recordLogFor,
|
|
@@ -7426,6 +7449,7 @@ export {
|
|
|
7426
7449
|
codeOf,
|
|
7427
7450
|
DEFAULT_COMMAND_MS,
|
|
7428
7451
|
DEFAULT_COOPERATIVE_MS,
|
|
7452
|
+
DEFAULT_SYNC_MS,
|
|
7429
7453
|
DEFAULT_AGENT_COOPERATIVE_MS,
|
|
7430
7454
|
DEFAULT_OUTPUT_BYTES,
|
|
7431
7455
|
byteCount,
|