@wirecat/cli-template 0.17.0 → 0.18.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/CHANGELOG.md +25 -0
- package/bin/release +10 -3
- package/dist/bin/clidev.js +2 -2
- package/dist/bundle/{all-profiles-CCT2XPJL.js → all-profiles-I2I5Y47S.js} +7 -7
- package/dist/bundle/{anthropic-QLLP7EE4.js → anthropic-6KWLOH3O.js} +4 -4
- package/dist/bundle/{app-server-ELI5TGL7.js → app-server-WDHIM77I.js} +42 -39
- package/dist/bundle/{bun-C7JS2V7G.js → bun-NQS22GBW.js} +2 -2
- package/dist/bundle/{bun-sqlite-OM72TCYT.js → bun-sqlite-ZHYZDAFU.js} +3 -3
- package/dist/bundle/{chunk-6VCFDEHT.js → chunk-43KXTQB6.js} +1 -1
- package/dist/bundle/{chunk-RGKXMVOZ.js → chunk-4DHYD37E.js} +3 -3
- package/dist/bundle/{chunk-2Y5NBD7U.js → chunk-64DNKCG6.js} +4 -4
- package/dist/bundle/{chunk-XKL5FRH3.js → chunk-6HV2ZUJ7.js} +3 -3
- package/dist/bundle/{chunk-ASO23RNM.js → chunk-6K7LOCZA.js} +76 -24
- package/dist/bundle/{chunk-LN53L2V5.js → chunk-ALOTPATU.js} +11 -11
- package/dist/bundle/{chunk-EQDVQN4E.js → chunk-AQGUIORH.js} +224 -223
- package/dist/bundle/{chunk-QLBS6OC2.js → chunk-CAX65NS4.js} +400 -295
- package/dist/bundle/{chunk-RUHNHEAF.js → chunk-CZB5RLXN.js} +3 -3
- package/dist/bundle/{chunk-SQOXYNKF.js → chunk-E5O6R3NL.js} +1 -1
- package/dist/bundle/{chunk-GG5PXNMH.js → chunk-EMPBFRAG.js} +28 -25
- package/dist/bundle/{chunk-FF3AGTHY.js → chunk-ERHKHYWL.js} +6 -6
- package/dist/bundle/{chunk-S465TCR3.js → chunk-F2KGCZQP.js} +8 -8
- package/dist/bundle/{chunk-QJS4WWYK.js → chunk-FGQC6DQK.js} +63 -63
- package/dist/bundle/{chunk-AUVPTFUS.js → chunk-FPC4ESDC.js} +1 -1
- package/dist/bundle/{chunk-BXZRTMXA.js → chunk-G7JA7YXK.js} +5 -5
- package/dist/bundle/{chunk-BOCIYBBO.js → chunk-GBXTIWAE.js} +20 -20
- package/dist/bundle/{chunk-O6PBO4BU.js → chunk-HMP5CI4F.js} +4 -2
- package/dist/bundle/{chunk-R5IY4O25.js → chunk-I5HN34YA.js} +4 -4
- package/dist/bundle/{chunk-WRLOK7XC.js → chunk-IKFNRGSZ.js} +3 -3
- package/dist/bundle/{chunk-KRXN3FV3.js → chunk-IKGARE4J.js} +1 -1
- package/dist/bundle/{chunk-YIH3PYWJ.js → chunk-JECGG4TM.js} +1 -1
- package/dist/bundle/{chunk-MLSN3UP4.js → chunk-KMYKWHFH.js} +26 -26
- package/dist/bundle/{chunk-WKUJCPSP.js → chunk-KSABL7M2.js} +43 -43
- package/dist/bundle/{chunk-GUCMIUNB.js → chunk-KWQSDU3D.js} +2 -2
- package/dist/bundle/{chunk-6PHTRAZA.js → chunk-L4U3V7OU.js} +1 -1
- package/dist/bundle/{chunk-UW4PJZVJ.js → chunk-MJSZEF7M.js} +167 -156
- package/dist/bundle/{chunk-R5CPFSPI.js → chunk-MVWHCXYA.js} +7 -7
- package/dist/bundle/{chunk-XS56LIQ7.js → chunk-NVALUKZU.js} +4 -4
- package/dist/bundle/{chunk-AKUMR7PE.js → chunk-Q5J3LKRL.js} +2 -2
- package/dist/bundle/{chunk-33JGD2CR.js → chunk-QHXHJ3BK.js} +3 -3
- package/dist/bundle/{chunk-7OQF5ZMN.js → chunk-RKZJ7ZKU.js} +1 -1
- package/dist/bundle/{chunk-3VVIEZRY.js → chunk-RQPDYAHW.js} +2 -2
- package/dist/bundle/{chunk-HVAEHUSZ.js → chunk-RSCHWXF5.js} +2 -2
- package/dist/bundle/{chunk-WQBBSVZM.js → chunk-RYBCV3CX.js} +2 -2
- package/dist/bundle/{chunk-RT46AWIH.js → chunk-T6ZLWN7E.js} +1 -1
- package/dist/bundle/{chunk-QVPTZDRA.js → chunk-T7657XL5.js} +2 -2
- package/dist/bundle/{chunk-DVLM23HB.js → chunk-TH6AVNNH.js} +2 -2
- package/dist/bundle/{chunk-X44ZT64I.js → chunk-TMFSNTR2.js} +3 -3
- package/dist/bundle/{chunk-J2RUBXCI.js → chunk-UESBF7HN.js} +6 -6
- package/dist/bundle/{chunk-ZRNBKTPP.js → chunk-UGPJDNVX.js} +26 -26
- package/dist/bundle/{chunk-LFLN6PVS.js → chunk-UXLB5I2B.js} +4 -4
- package/dist/bundle/{chunk-ITPFCKCL.js → chunk-VDV3WS4O.js} +13 -13
- package/dist/bundle/{chunk-URPKIONS.js → chunk-VDXS7GR7.js} +8 -8
- package/dist/bundle/{chunk-E4KQOKQ5.js → chunk-YLN6DBJV.js} +1 -1
- package/dist/bundle/{chunk-SQKP6V4S.js → chunk-YMGJJG3W.js} +17 -13
- package/dist/bundle/clidev.js +3 -3
- package/dist/bundle/{command-contract-RV5ZOEAT.js → command-contract-JGOS34WS.js} +11 -11
- package/dist/bundle/{decode-V7HNHZBC.js → decode-HHZMCEZF.js} +3 -3
- package/dist/bundle/{echarts-Y42YP2OL.js → echarts-LYV2DLKU.js} +2 -2
- package/dist/bundle/{embed-JSQZL7JF.js → embed-BPN3SCZ7.js} +4 -4
- package/dist/bundle/{embedder-7BHRCXWL.js → embedder-NZAL7DVD.js} +7 -7
- package/dist/bundle/{first-run-BJ36KGST.js → first-run-OKN7MVLP.js} +8 -8
- package/dist/bundle/first-screen-6XGF2AKF.js +26 -0
- package/dist/bundle/{instructions-UWERND54.js → instructions-N2HYCEWN.js} +1 -1
- package/dist/bundle/{mcp-P4FSBSRS.js → mcp-OGWFYUDR.js} +2 -2
- package/dist/bundle/{node-PZDNPKN7.js → node-MIHFH7T4.js} +2 -2
- package/dist/bundle/{node-sqlite-4F5NLRNT.js → node-sqlite-FF2SFXPZ.js} +4 -4
- package/dist/bundle/{oauth-VDXNA3DK.js → oauth-72XUHG3K.js} +5 -5
- package/dist/bundle/{open-EUJRQQNS.js → open-HL6SSRKY.js} +3 -3
- package/dist/bundle/{openai-EIBV2K72.js → openai-DSWDZHQA.js} +12 -12
- package/dist/bundle/{process-XD5ZIFIL.js → process-5EQF2SZN.js} +1 -1
- package/dist/bundle/{program-TJTVMIOX.js → program-QPXFRATG.js} +386 -290
- package/dist/bundle/{prompt-LYUZNHDK.js → prompt-VVRJDKQK.js} +3 -3
- package/dist/bundle/{recognize-LQMHLOD5.js → recognize-T6RIVTQL.js} +2 -2
- package/dist/bundle/{remote-34HUWSZI.js → remote-7Z3C3FOG.js} +5 -5
- package/dist/bundle/{rerank-ONBASQ5Z.js → rerank-RUFDP7NP.js} +5 -5
- package/dist/bundle/{serve-UJ7FDYAM.js → serve-YZQDRGZW.js} +7 -7
- package/dist/bundle/server-NDSKEME6.js +52 -0
- package/dist/bundle/{server-GNT76BXM.js → server-WSFS656N.js} +28 -28
- package/dist/bundle/{state-IW5OO6IZ.js → state-GOQ4J5RS.js} +4 -4
- package/dist/bundle/{store-55UB27H2.js → store-KRGXTPKQ.js} +10 -10
- package/dist/bundle/store-maintenance-command-FNNZ5YCX.js +42 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/dev/skills/release/SKILL.md +3 -2
- package/kit/dist/new.js +2 -2
- package/package.json +4 -4
- package/pnpm-workspace.yaml +2 -0
- package/src/run-scope.test.ts +31 -0
- package/src/version.ts +1 -1
- package/dist/bundle/first-screen-5YHQVNY4.js +0 -26
- package/dist/bundle/server-J4YIXKMI.js +0 -52
- package/dist/bundle/store-maintenance-command-BLDKUZ3L.js +0 -42
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answerOf,
|
|
5
5
|
messengerContext
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GBXTIWAE.js";
|
|
7
7
|
import {
|
|
8
8
|
FETCHING,
|
|
9
9
|
RULES_VERSION,
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
typedQuery,
|
|
25
25
|
withQuery,
|
|
26
26
|
withTimeLimit
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-AQGUIORH.js";
|
|
28
28
|
import {
|
|
29
29
|
readSecret
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-IKFNRGSZ.js";
|
|
31
31
|
import {
|
|
32
32
|
stringWidth,
|
|
33
33
|
wrapAnsi
|
|
@@ -38,16 +38,16 @@ import {
|
|
|
38
38
|
releaseLock,
|
|
39
39
|
servingProfiles,
|
|
40
40
|
takeLock
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-4DHYD37E.js";
|
|
42
42
|
import {
|
|
43
43
|
checkedOptions,
|
|
44
44
|
range
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-RSCHWXF5.js";
|
|
46
46
|
import {
|
|
47
47
|
messagesFor,
|
|
48
48
|
systemFor,
|
|
49
49
|
validateImages
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-RYBCV3CX.js";
|
|
51
51
|
import {
|
|
52
52
|
Command,
|
|
53
53
|
LOCAL_READ,
|
|
@@ -76,13 +76,13 @@ import {
|
|
|
76
76
|
snakeKeys,
|
|
77
77
|
storeTable,
|
|
78
78
|
withoutProviderRefs
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-MJSZEF7M.js";
|
|
80
80
|
import {
|
|
81
81
|
failureKey
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-F2KGCZQP.js";
|
|
83
83
|
import {
|
|
84
84
|
holdersOf
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-FPC4ESDC.js";
|
|
86
86
|
import {
|
|
87
87
|
MIGRATIONS,
|
|
88
88
|
drainNoteIndex,
|
|
@@ -112,16 +112,16 @@ import {
|
|
|
112
112
|
storeClients,
|
|
113
113
|
storeContents,
|
|
114
114
|
vectorIndexCounts
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-CAX65NS4.js";
|
|
116
116
|
import {
|
|
117
117
|
queryFieldsOf
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-FGQC6DQK.js";
|
|
119
119
|
import {
|
|
120
120
|
openCache
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-ERHKHYWL.js";
|
|
122
122
|
import {
|
|
123
123
|
storePath
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-Q5J3LKRL.js";
|
|
125
125
|
import {
|
|
126
126
|
CliError,
|
|
127
127
|
Credentials,
|
|
@@ -152,7 +152,7 @@ import {
|
|
|
152
152
|
union,
|
|
153
153
|
visibleControls,
|
|
154
154
|
writeSecurely
|
|
155
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-KMYKWHFH.js";
|
|
156
156
|
import {
|
|
157
157
|
__commonJS,
|
|
158
158
|
__name,
|
|
@@ -5492,11 +5492,11 @@ var require_liquid_node = __commonJS({
|
|
|
5492
5492
|
}
|
|
5493
5493
|
});
|
|
5494
5494
|
|
|
5495
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5495
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5496
5496
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
|
|
5497
5497
|
import { dirname, resolve } from "node:path";
|
|
5498
5498
|
|
|
5499
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5499
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5500
5500
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5501
5501
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5502
5502
|
import { Transform } from "node:stream";
|
|
@@ -5603,7 +5603,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5603
5603
|
renameSync(pending, to);
|
|
5604
5604
|
}, "unsealFile");
|
|
5605
5605
|
|
|
5606
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5606
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5607
5607
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5608
5608
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5609
5609
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5627,7 +5627,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5627
5627
|
};
|
|
5628
5628
|
}, "compatibilityOf");
|
|
5629
5629
|
|
|
5630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5631
5631
|
import { createHash as createHash2 } from "node:crypto";
|
|
5632
5632
|
var COPY_MARK = "__repair_";
|
|
5633
5633
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5881,7 +5881,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5881
5881
|
return found;
|
|
5882
5882
|
}, "deleteCopy");
|
|
5883
5883
|
|
|
5884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5885
5885
|
import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
|
|
5886
5886
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
5887
5887
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
|
|
@@ -5928,7 +5928,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
5928
5928
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
5929
5929
|
}), "storeInfoCommand");
|
|
5930
5930
|
|
|
5931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5931
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
5932
5932
|
var ENCRYPT_OPTION = [
|
|
5933
5933
|
"--encrypt",
|
|
5934
5934
|
"compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept \u2014 lose it and the file cannot be opened"
|
|
@@ -5947,7 +5947,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
5947
5947
|
return password;
|
|
5948
5948
|
}, "passwordOf");
|
|
5949
5949
|
|
|
5950
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5950
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
5951
5951
|
import { existsSync as existsSync3, readFileSync } from "node:fs";
|
|
5952
5952
|
import { join } from "node:path";
|
|
5953
5953
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6118,7 +6118,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6118
6118
|
}, "problem");
|
|
6119
6119
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6120
6120
|
|
|
6121
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6121
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6122
6122
|
import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
|
|
6123
6123
|
import { join as join2 } from "node:path";
|
|
6124
6124
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6171,7 +6171,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6171
6171
|
}, "recordReply");
|
|
6172
6172
|
var broken2 = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply state ${path} cannot be read (${why}) \u2014 fix or move the file`), "broken");
|
|
6173
6173
|
|
|
6174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6174
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6175
6175
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6176
6176
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6177
6177
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -6277,7 +6277,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
6277
6277
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
6278
6278
|
}, "filled");
|
|
6279
6279
|
|
|
6280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
6281
6281
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
6282
6282
|
var TEMPLATE_LIMITS = {
|
|
6283
6283
|
parse: 32768,
|
|
@@ -6437,7 +6437,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6437
6437
|
}
|
|
6438
6438
|
}, "renderReplyTemplate");
|
|
6439
6439
|
|
|
6440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6440
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
6441
6441
|
var DRY_RUN_DAYS = 7;
|
|
6442
6442
|
var PAGE = 500;
|
|
6443
6443
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -6551,7 +6551,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
6551
6551
|
}
|
|
6552
6552
|
}, "storedSince");
|
|
6553
6553
|
|
|
6554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
6555
6555
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
6556
6556
|
const host = new URL(baseUrl).host;
|
|
6557
6557
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -6582,7 +6582,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
6582
6582
|
};
|
|
6583
6583
|
}, "embeddingKeys");
|
|
6584
6584
|
|
|
6585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
6586
6586
|
var options = strictObject({
|
|
6587
6587
|
temperature: range(0, 2),
|
|
6588
6588
|
top_p: range(0, 1),
|
|
@@ -6631,7 +6631,7 @@ var openai = {
|
|
|
6631
6631
|
}), "complete")
|
|
6632
6632
|
};
|
|
6633
6633
|
|
|
6634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6634
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
6635
6635
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
6636
6636
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
6637
6637
|
if (deps.signal?.aborted)
|
|
@@ -6646,7 +6646,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6646
6646
|
if (!adapter && target.provider === "openai")
|
|
6647
6647
|
adapter = openai;
|
|
6648
6648
|
if (!adapter && target.provider === "anthropic")
|
|
6649
|
-
adapter = (await import("./anthropic-
|
|
6649
|
+
adapter = (await import("./anthropic-6KWLOH3O.js")).anthropic;
|
|
6650
6650
|
if (!adapter)
|
|
6651
6651
|
throw new CliError("validation_error", `no model adapter for ${target.provider}`);
|
|
6652
6652
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -6687,7 +6687,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6687
6687
|
}, "complete")
|
|
6688
6688
|
}), "modelGateway");
|
|
6689
6689
|
|
|
6690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
6691
6691
|
import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
6692
6692
|
import { join as join3 } from "node:path";
|
|
6693
6693
|
var shape = strictObject({
|
|
@@ -6712,7 +6712,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
6712
6712
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
6713
6713
|
}, "mayModelReply");
|
|
6714
6714
|
|
|
6715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
6716
6716
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
|
|
6717
6717
|
ai: true
|
|
6718
6718
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -6759,7 +6759,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
6759
6759
|
return result2;
|
|
6760
6760
|
}, "replyRenderer");
|
|
6761
6761
|
|
|
6762
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
6763
6763
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
6764
6764
|
var NO_RULES = "no rules";
|
|
6765
6765
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -6852,7 +6852,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
6852
6852
|
return { skip: why };
|
|
6853
6853
|
}, "replyTo");
|
|
6854
6854
|
|
|
6855
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
6856
6856
|
var START_SYNC_DELAY_MS = 3e4;
|
|
6857
6857
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
6858
6858
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -6929,7 +6929,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch: fetch2, note
|
|
|
6929
6929
|
};
|
|
6930
6930
|
}, "startSync");
|
|
6931
6931
|
|
|
6932
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6932
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
6933
6933
|
var FIRST_FETCH_MS = 6e4;
|
|
6934
6934
|
var DAY_MS = 864e5;
|
|
6935
6935
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -6983,7 +6983,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
|
|
|
6983
6983
|
};
|
|
6984
6984
|
}, "memberFetches");
|
|
6985
6985
|
|
|
6986
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6986
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
6987
6987
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
6988
6988
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
6989
6989
|
if (context.format === "pretty") {
|
|
@@ -7016,7 +7016,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7016
7016
|
return context;
|
|
7017
7017
|
}, "recordDiagnostics");
|
|
7018
7018
|
|
|
7019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7020
7020
|
var STEMS_EVERY_MS = 3e4;
|
|
7021
7021
|
var STEMS_SLICE_MS = 2e3;
|
|
7022
7022
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7056,7 +7056,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7056
7056
|
};
|
|
7057
7057
|
}, "stemFills");
|
|
7058
7058
|
|
|
7059
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7059
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
7060
7060
|
import { styleText } from "node:util";
|
|
7061
7061
|
var TIME_WIDTH = 8;
|
|
7062
7062
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -7232,7 +7232,7 @@ var editedAt = /* @__PURE__ */ __name((message, options2) => {
|
|
|
7232
7232
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
7233
7233
|
}, "editedAt");
|
|
7234
7234
|
|
|
7235
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
7236
7236
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
7237
7237
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
7238
7238
|
kind: attachment.kind,
|
|
@@ -7327,7 +7327,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
7327
7327
|
locale: messenger.app.locale
|
|
7328
7328
|
}), "viewOf");
|
|
7329
7329
|
|
|
7330
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7330
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
7331
7331
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
7332
7332
|
value: value.value,
|
|
7333
7333
|
observed_at: value.observedAt,
|
|
@@ -7394,7 +7394,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
7394
7394
|
}
|
|
7395
7395
|
}, "watchEventItem");
|
|
7396
7396
|
|
|
7397
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
7398
7398
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
7399
7399
|
output: { entity: "watch_item" },
|
|
7400
7400
|
effects: REMOTE_READ,
|
|
@@ -7549,7 +7549,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
7549
7549
|
}
|
|
7550
7550
|
}, "describe");
|
|
7551
7551
|
|
|
7552
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7552
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
7553
7553
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
7554
7554
|
const command = annotate(new Command("serve"), {
|
|
7555
7555
|
output: { entity: "serve_summary" },
|
|
@@ -7813,7 +7813,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
7813
7813
|
};
|
|
7814
7814
|
}, "tasking");
|
|
7815
7815
|
|
|
7816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
7817
7817
|
import { existsSync as existsSync6 } from "node:fs";
|
|
7818
7818
|
var PATH = "store tables list";
|
|
7819
7819
|
var STORE_TABLES_QUERY = {
|
|
@@ -7856,7 +7856,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
7856
7856
|
return tables;
|
|
7857
7857
|
}, "storeTablesCommand");
|
|
7858
7858
|
|
|
7859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7859
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
7860
7860
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
7861
7861
|
var WORD_INDEX = "message_words";
|
|
7862
7862
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -2,7 +2,7 @@ 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-KMYKWHFH.js";
|
|
6
6
|
import {
|
|
7
7
|
importFrom
|
|
8
8
|
} from "./chunk-Y5E2WNWB.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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/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")
|
|
@@ -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.598.0_@wirecat+cli-base@0.80.8_commander@15.0.0_esbuild@0.28.2_type_273187b89e8ba0142d0426b4a9bc937e/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) {
|