@wirecat/cli-template 0.16.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/.github/workflows/ci.yml +18 -0
- package/.github/workflows/release-pr.yml +37 -0
- package/CHANGELOG.md +39 -0
- package/bin/release +17 -3
- package/biome.json +6 -0
- package/contracts/plan.json +2 -1
- package/dist/bin/clidev.js +2 -2
- package/dist/bundle/{all-profiles-FS7AEOE7.js → all-profiles-I2I5Y47S.js} +7 -7
- package/dist/bundle/{anthropic-5RN7BGDI.js → anthropic-6KWLOH3O.js} +4 -4
- package/dist/bundle/{app-server-WGTKZQKJ.js → app-server-WDHIM77I.js} +42 -39
- package/dist/bundle/{bun-ILPS6AYA.js → bun-NQS22GBW.js} +2 -2
- package/dist/bundle/{bun-sqlite-WK2IGBGD.js → bun-sqlite-ZHYZDAFU.js} +3 -3
- package/dist/bundle/{chunk-VS5LGSTM.js → chunk-43KXTQB6.js} +1 -1
- package/dist/bundle/{chunk-C3GNOEJP.js → chunk-4DHYD37E.js} +3 -3
- package/dist/bundle/{chunk-ADFSSIV4.js → chunk-64DNKCG6.js} +4 -4
- package/dist/bundle/{chunk-ATHZEV2Z.js → chunk-6HV2ZUJ7.js} +3 -3
- package/dist/bundle/{chunk-BPMKAZSS.js → chunk-6K7LOCZA.js} +204 -79
- package/dist/bundle/{chunk-YNROUY3R.js → chunk-ALOTPATU.js} +11 -11
- package/dist/bundle/{chunk-ZSY4WAGI.js → chunk-AQGUIORH.js} +303 -261
- package/dist/bundle/{chunk-EA3TMI4A.js → chunk-CAX65NS4.js} +2477 -1235
- package/dist/bundle/{chunk-MEXT6XDP.js → chunk-CZB5RLXN.js} +3 -3
- package/dist/bundle/{chunk-VPCXYY46.js → chunk-E5O6R3NL.js} +1 -1
- package/dist/bundle/{chunk-TXHCL75B.js → chunk-EMPBFRAG.js} +32 -26
- package/dist/bundle/{chunk-RFJKNFVF.js → chunk-ERHKHYWL.js} +6 -6
- package/dist/bundle/{chunk-ORV4EGNC.js → chunk-F2KGCZQP.js} +8 -8
- package/dist/bundle/{chunk-5KAYQKBK.js → chunk-FGQC6DQK.js} +63 -63
- package/dist/bundle/{chunk-VOTEB3AN.js → chunk-FPC4ESDC.js} +1 -1
- package/dist/bundle/{chunk-QGOOPPEW.js → chunk-G7JA7YXK.js} +5 -5
- package/dist/bundle/{chunk-JJZCPBH3.js → chunk-GBXTIWAE.js} +53 -44
- package/dist/bundle/{chunk-3MDNAYQA.js → chunk-HMP5CI4F.js} +4 -2
- package/dist/bundle/{chunk-2MWNE4L3.js → chunk-I5HN34YA.js} +4 -4
- package/dist/bundle/{chunk-LRHX62ZF.js → chunk-IKFNRGSZ.js} +3 -3
- package/dist/bundle/{chunk-7Z4HR6GO.js → chunk-IKGARE4J.js} +1 -1
- package/dist/bundle/{chunk-3WDYHOAF.js → chunk-JECGG4TM.js} +1 -1
- package/dist/bundle/{chunk-WDWP5N6M.js → chunk-KMYKWHFH.js} +26 -26
- package/dist/bundle/{chunk-ENDBOYQR.js → chunk-KSABL7M2.js} +89 -45
- package/dist/bundle/{chunk-DEHBTFIC.js → chunk-KWQSDU3D.js} +2 -2
- package/dist/bundle/{chunk-CGFQT3LQ.js → chunk-L4U3V7OU.js} +1 -1
- package/dist/bundle/{chunk-HTYLT6ME.js → chunk-MJSZEF7M.js} +296 -173
- package/dist/bundle/{chunk-OGTRPW2K.js → chunk-MVWHCXYA.js} +7 -7
- package/dist/bundle/{chunk-ETJXPB6A.js → chunk-NVALUKZU.js} +4 -4
- package/dist/bundle/{chunk-6WOJIAYA.js → chunk-Q5J3LKRL.js} +2 -2
- package/dist/bundle/{chunk-7EUX7AZV.js → chunk-QHXHJ3BK.js} +3 -3
- package/dist/bundle/{chunk-NENYWEXF.js → chunk-RKZJ7ZKU.js} +1 -1
- package/dist/bundle/{chunk-JFXWLQ2L.js → chunk-RQPDYAHW.js} +2 -2
- package/dist/bundle/{chunk-RYOAQCVJ.js → chunk-RSCHWXF5.js} +2 -2
- package/dist/bundle/{chunk-FMO6F5Q2.js → chunk-RYBCV3CX.js} +2 -2
- package/dist/bundle/{chunk-G45R7M42.js → chunk-T6ZLWN7E.js} +1 -1
- package/dist/bundle/{chunk-5HHIPDNW.js → chunk-T7657XL5.js} +2 -2
- package/dist/bundle/{chunk-SKBRW5U3.js → chunk-TH6AVNNH.js} +2 -2
- package/dist/bundle/{chunk-MBBOINK4.js → chunk-TMFSNTR2.js} +3 -3
- package/dist/bundle/{chunk-Z5NL6YNU.js → chunk-UESBF7HN.js} +6 -6
- package/dist/bundle/{chunk-EILS4BTQ.js → chunk-UGPJDNVX.js} +26 -26
- package/dist/bundle/{chunk-OF56L2JU.js → chunk-UXLB5I2B.js} +4 -4
- package/dist/bundle/{chunk-CTBHQRX6.js → chunk-VDV3WS4O.js} +13 -13
- package/dist/bundle/{chunk-NVPWZF67.js → chunk-VDXS7GR7.js} +8 -8
- package/dist/bundle/{chunk-YIVY2WI3.js → chunk-YLN6DBJV.js} +1 -1
- package/dist/bundle/{chunk-WM5AMTRY.js → chunk-YMGJJG3W.js} +31 -13
- package/dist/bundle/clidev.js +3 -3
- package/dist/bundle/{command-contract-ZDU73EPH.js → command-contract-JGOS34WS.js} +11 -11
- package/dist/bundle/{decode-QMLOGZ6R.js → decode-HHZMCEZF.js} +3 -3
- package/dist/bundle/{echarts-DRDGGHJT.js → echarts-LYV2DLKU.js} +2 -2
- package/dist/bundle/{embed-PIR2LJR2.js → embed-BPN3SCZ7.js} +4 -4
- package/dist/bundle/{embedder-6KBRPAEQ.js → embedder-NZAL7DVD.js} +7 -7
- package/dist/bundle/{first-run-JO3CMY3Z.js → first-run-OKN7MVLP.js} +8 -8
- package/dist/bundle/first-screen-6XGF2AKF.js +26 -0
- package/dist/bundle/{instructions-EOQOXY6V.js → instructions-N2HYCEWN.js} +1 -1
- package/dist/bundle/{mcp-7HBLFGCW.js → mcp-OGWFYUDR.js} +2 -2
- package/dist/bundle/{node-52WF2326.js → node-MIHFH7T4.js} +2 -2
- package/dist/bundle/{node-sqlite-LIK6OYNF.js → node-sqlite-FF2SFXPZ.js} +4 -4
- package/dist/bundle/{oauth-7FVF7HQQ.js → oauth-72XUHG3K.js} +5 -5
- package/dist/bundle/{open-CRZDEATN.js → open-HL6SSRKY.js} +3 -3
- package/dist/bundle/{openai-WAJ6WREQ.js → openai-DSWDZHQA.js} +12 -12
- package/dist/bundle/{process-YIQPKLZI.js → process-5EQF2SZN.js} +1 -1
- package/dist/bundle/{program-ZFFFPBRS.js → program-QPXFRATG.js} +970 -503
- package/dist/bundle/{prompt-QQIVHO3M.js → prompt-VVRJDKQK.js} +3 -3
- package/dist/bundle/{recognize-4KLBZDEC.js → recognize-T6RIVTQL.js} +2 -2
- package/dist/bundle/{remote-BABMZTHA.js → remote-7Z3C3FOG.js} +5 -5
- package/dist/bundle/{rerank-P3IQQJIL.js → rerank-RUFDP7NP.js} +5 -5
- package/dist/bundle/{serve-25SSAKRZ.js → serve-YZQDRGZW.js} +7 -7
- package/dist/bundle/server-NDSKEME6.js +52 -0
- package/dist/bundle/{server-P4XUYY5A.js → server-WSFS656N.js} +28 -28
- package/dist/bundle/{state-QCQALQBJ.js → state-GOQ4J5RS.js} +4 -4
- package/dist/bundle/{store-ZECPRGGH.js → store-KRGXTPKQ.js} +12 -10
- package/dist/bundle/store-maintenance-command-FNNZ5YCX.js +42 -0
- package/dist/commands/session.js +1 -1
- package/dist/commands/session.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +1 -0
- package/dist/program.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/dev/skills/release/SKILL.md +10 -3
- package/docs/dev/skills/release/fresh-audit.md +1 -1
- package/kit/dist/new.js +2 -1
- package/package.json +4 -4
- package/pnpm-workspace.yaml +2 -0
- package/src/commands/session.ts +1 -1
- package/src/program.ts +1 -0
- package/src/run-scope.test.ts +31 -0
- package/src/version.ts +1 -1
- package/dist/bundle/first-screen-3T5IXTFL.js +0 -26
- package/dist/bundle/server-G4GCDMYI.js +0 -52
- package/dist/bundle/store-maintenance-command-ECUO5G6L.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,
|
|
@@ -104,6 +104,7 @@ import {
|
|
|
104
104
|
resetNoteIndex,
|
|
105
105
|
resetSearchIndex,
|
|
106
106
|
resetStems,
|
|
107
|
+
rollBack,
|
|
107
108
|
rowCounts,
|
|
108
109
|
searchIndexState,
|
|
109
110
|
stemmerCache,
|
|
@@ -111,16 +112,16 @@ import {
|
|
|
111
112
|
storeClients,
|
|
112
113
|
storeContents,
|
|
113
114
|
vectorIndexCounts
|
|
114
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-CAX65NS4.js";
|
|
115
116
|
import {
|
|
116
117
|
queryFieldsOf
|
|
117
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-FGQC6DQK.js";
|
|
118
119
|
import {
|
|
119
120
|
openCache
|
|
120
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-ERHKHYWL.js";
|
|
121
122
|
import {
|
|
122
123
|
storePath
|
|
123
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-Q5J3LKRL.js";
|
|
124
125
|
import {
|
|
125
126
|
CliError,
|
|
126
127
|
Credentials,
|
|
@@ -151,7 +152,7 @@ import {
|
|
|
151
152
|
union,
|
|
152
153
|
visibleControls,
|
|
153
154
|
writeSecurely
|
|
154
|
-
} from "./chunk-
|
|
155
|
+
} from "./chunk-KMYKWHFH.js";
|
|
155
156
|
import {
|
|
156
157
|
__commonJS,
|
|
157
158
|
__name,
|
|
@@ -5491,11 +5492,11 @@ var require_liquid_node = __commonJS({
|
|
|
5491
5492
|
}
|
|
5492
5493
|
});
|
|
5493
5494
|
|
|
5494
|
-
// 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
|
|
5495
5496
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
|
|
5496
5497
|
import { dirname, resolve } from "node:path";
|
|
5497
5498
|
|
|
5498
|
-
// 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
|
|
5499
5500
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5500
5501
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5501
5502
|
import { Transform } from "node:stream";
|
|
@@ -5602,7 +5603,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5602
5603
|
renameSync(pending, to);
|
|
5603
5604
|
}, "unsealFile");
|
|
5604
5605
|
|
|
5605
|
-
// 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
|
|
5606
5607
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5607
5608
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5608
5609
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5626,7 +5627,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5626
5627
|
};
|
|
5627
5628
|
}, "compatibilityOf");
|
|
5628
5629
|
|
|
5629
|
-
// 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
|
|
5630
5631
|
import { createHash as createHash2 } from "node:crypto";
|
|
5631
5632
|
var COPY_MARK = "__repair_";
|
|
5632
5633
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5880,7 +5881,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5880
5881
|
return found;
|
|
5881
5882
|
}, "deleteCopy");
|
|
5882
5883
|
|
|
5883
|
-
// 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
|
|
5884
5885
|
import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
|
|
5885
5886
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
5886
5887
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
|
|
@@ -5927,7 +5928,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
5927
5928
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
5928
5929
|
}), "storeInfoCommand");
|
|
5929
5930
|
|
|
5930
|
-
// 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
|
|
5931
5932
|
var ENCRYPT_OPTION = [
|
|
5932
5933
|
"--encrypt",
|
|
5933
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"
|
|
@@ -5946,7 +5947,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
5946
5947
|
return password;
|
|
5947
5948
|
}, "passwordOf");
|
|
5948
5949
|
|
|
5949
|
-
// 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
|
|
5950
5951
|
import { existsSync as existsSync3, readFileSync } from "node:fs";
|
|
5951
5952
|
import { join } from "node:path";
|
|
5952
5953
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6117,7 +6118,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6117
6118
|
}, "problem");
|
|
6118
6119
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6119
6120
|
|
|
6120
|
-
// 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
|
|
6121
6122
|
import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
|
|
6122
6123
|
import { join as join2 } from "node:path";
|
|
6123
6124
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6170,7 +6171,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6170
6171
|
}, "recordReply");
|
|
6171
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");
|
|
6172
6173
|
|
|
6173
|
-
// 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
|
|
6174
6175
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6175
6176
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6176
6177
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -6276,7 +6277,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
6276
6277
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
6277
6278
|
}, "filled");
|
|
6278
6279
|
|
|
6279
|
-
// 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
|
|
6280
6281
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
6281
6282
|
var TEMPLATE_LIMITS = {
|
|
6282
6283
|
parse: 32768,
|
|
@@ -6436,7 +6437,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6436
6437
|
}
|
|
6437
6438
|
}, "renderReplyTemplate");
|
|
6438
6439
|
|
|
6439
|
-
// 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
|
|
6440
6441
|
var DRY_RUN_DAYS = 7;
|
|
6441
6442
|
var PAGE = 500;
|
|
6442
6443
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -6550,7 +6551,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
6550
6551
|
}
|
|
6551
6552
|
}, "storedSince");
|
|
6552
6553
|
|
|
6553
|
-
// 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
|
|
6554
6555
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
6555
6556
|
const host = new URL(baseUrl).host;
|
|
6556
6557
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -6581,7 +6582,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
6581
6582
|
};
|
|
6582
6583
|
}, "embeddingKeys");
|
|
6583
6584
|
|
|
6584
|
-
// 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
|
|
6585
6586
|
var options = strictObject({
|
|
6586
6587
|
temperature: range(0, 2),
|
|
6587
6588
|
top_p: range(0, 1),
|
|
@@ -6630,7 +6631,7 @@ var openai = {
|
|
|
6630
6631
|
}), "complete")
|
|
6631
6632
|
};
|
|
6632
6633
|
|
|
6633
|
-
// 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
|
|
6634
6635
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
6635
6636
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
6636
6637
|
if (deps.signal?.aborted)
|
|
@@ -6645,7 +6646,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6645
6646
|
if (!adapter && target.provider === "openai")
|
|
6646
6647
|
adapter = openai;
|
|
6647
6648
|
if (!adapter && target.provider === "anthropic")
|
|
6648
|
-
adapter = (await import("./anthropic-
|
|
6649
|
+
adapter = (await import("./anthropic-6KWLOH3O.js")).anthropic;
|
|
6649
6650
|
if (!adapter)
|
|
6650
6651
|
throw new CliError("validation_error", `no model adapter for ${target.provider}`);
|
|
6651
6652
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -6686,7 +6687,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6686
6687
|
}, "complete")
|
|
6687
6688
|
}), "modelGateway");
|
|
6688
6689
|
|
|
6689
|
-
// 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
|
|
6690
6691
|
import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
6691
6692
|
import { join as join3 } from "node:path";
|
|
6692
6693
|
var shape = strictObject({
|
|
@@ -6711,7 +6712,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
6711
6712
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
6712
6713
|
}, "mayModelReply");
|
|
6713
6714
|
|
|
6714
|
-
// 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
|
|
6715
6716
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
|
|
6716
6717
|
ai: true
|
|
6717
6718
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -6758,7 +6759,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
6758
6759
|
return result2;
|
|
6759
6760
|
}, "replyRenderer");
|
|
6760
6761
|
|
|
6761
|
-
// 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
|
|
6762
6763
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
6763
6764
|
var NO_RULES = "no rules";
|
|
6764
6765
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -6851,7 +6852,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
6851
6852
|
return { skip: why };
|
|
6852
6853
|
}, "replyTo");
|
|
6853
6854
|
|
|
6854
|
-
// 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
|
|
6855
6856
|
var START_SYNC_DELAY_MS = 3e4;
|
|
6856
6857
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
6857
6858
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -6928,7 +6929,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch: fetch2, note
|
|
|
6928
6929
|
};
|
|
6929
6930
|
}, "startSync");
|
|
6930
6931
|
|
|
6931
|
-
// 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
|
|
6932
6933
|
var FIRST_FETCH_MS = 6e4;
|
|
6933
6934
|
var DAY_MS = 864e5;
|
|
6934
6935
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -6982,7 +6983,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
|
|
|
6982
6983
|
};
|
|
6983
6984
|
}, "memberFetches");
|
|
6984
6985
|
|
|
6985
|
-
// 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
|
|
6986
6987
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
6987
6988
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
6988
6989
|
if (context.format === "pretty") {
|
|
@@ -7015,7 +7016,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7015
7016
|
return context;
|
|
7016
7017
|
}, "recordDiagnostics");
|
|
7017
7018
|
|
|
7018
|
-
// 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
|
|
7019
7020
|
var STEMS_EVERY_MS = 3e4;
|
|
7020
7021
|
var STEMS_SLICE_MS = 2e3;
|
|
7021
7022
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7055,7 +7056,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7055
7056
|
};
|
|
7056
7057
|
}, "stemFills");
|
|
7057
7058
|
|
|
7058
|
-
// 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
|
|
7059
7060
|
import { styleText } from "node:util";
|
|
7060
7061
|
var TIME_WIDTH = 8;
|
|
7061
7062
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -7231,7 +7232,7 @@ var editedAt = /* @__PURE__ */ __name((message, options2) => {
|
|
|
7231
7232
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
7232
7233
|
}, "editedAt");
|
|
7233
7234
|
|
|
7234
|
-
// 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
|
|
7235
7236
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
7236
7237
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
7237
7238
|
kind: attachment.kind,
|
|
@@ -7326,7 +7327,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
7326
7327
|
locale: messenger.app.locale
|
|
7327
7328
|
}), "viewOf");
|
|
7328
7329
|
|
|
7329
|
-
// 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
|
|
7330
7331
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
7331
7332
|
value: value.value,
|
|
7332
7333
|
observed_at: value.observedAt,
|
|
@@ -7393,7 +7394,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
7393
7394
|
}
|
|
7394
7395
|
}, "watchEventItem");
|
|
7395
7396
|
|
|
7396
|
-
// 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
|
|
7397
7398
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
7398
7399
|
output: { entity: "watch_item" },
|
|
7399
7400
|
effects: REMOTE_READ,
|
|
@@ -7548,7 +7549,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
7548
7549
|
}
|
|
7549
7550
|
}, "describe");
|
|
7550
7551
|
|
|
7551
|
-
// 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
|
|
7552
7553
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
7553
7554
|
const command = annotate(new Command("serve"), {
|
|
7554
7555
|
output: { entity: "serve_summary" },
|
|
@@ -7812,7 +7813,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
7812
7813
|
};
|
|
7813
7814
|
}, "tasking");
|
|
7814
7815
|
|
|
7815
|
-
// 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
|
|
7816
7817
|
import { existsSync as existsSync6 } from "node:fs";
|
|
7817
7818
|
var PATH = "store tables list";
|
|
7818
7819
|
var STORE_TABLES_QUERY = {
|
|
@@ -7855,7 +7856,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
7855
7856
|
return tables;
|
|
7856
7857
|
}, "storeTablesCommand");
|
|
7857
7858
|
|
|
7858
|
-
// 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
|
|
7859
7860
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
7860
7861
|
var WORD_INDEX = "message_words";
|
|
7861
7862
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -8131,7 +8132,11 @@ var migrateCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command(
|
|
|
8131
8132
|
}
|
|
8132
8133
|
const answer = await reading(path, (database) => {
|
|
8133
8134
|
const from = schemaOf(database).version;
|
|
8134
|
-
migrate(database, {
|
|
8135
|
+
migrate(database, {
|
|
8136
|
+
command: messenger.app.command,
|
|
8137
|
+
version: messenger.app.version,
|
|
8138
|
+
rollback: { store: path, warn: /* @__PURE__ */ __name((line) => renderer.warn(line), "warn") }
|
|
8139
|
+
});
|
|
8135
8140
|
const { normalized, indexed, terms } = buildWordIndex(database, (note) => renderer.note(note));
|
|
8136
8141
|
const stemmed = buildStems(database, (note) => renderer.note(note));
|
|
8137
8142
|
const notes = buildNoteIndex(database, (note) => renderer.note(note));
|
|
@@ -8270,7 +8275,7 @@ var decryptCommand = /* @__PURE__ */ __name(() => annotate(new Command("decrypt"
|
|
|
8270
8275
|
await unsealFile(from, to, await passwordOf(this, { twice: false }));
|
|
8271
8276
|
result(this, { path: to, from, bytes: bytesOf2(to) });
|
|
8272
8277
|
}), "decryptCommand");
|
|
8273
|
-
var restoreCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("restore"), { output: { entity: "store_restore" }, effects: LOCAL_WRITE }).summary("restore a backup
|
|
8278
|
+
var restoreCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("restore"), { output: { entity: "store_restore" }, effects: LOCAL_WRITE }).summary("restore a backup and keep the current store, or roll back a breaking upgrade").description("put a backup in place of the store; the store it replaces is kept beside it, never deleted. Given a rollback copy (backups/<store>-rollback-schema-<version>-<time>.db, kept for a day before an upgrade older tools cannot open), put its tables back in the store and return it to that version instead").argument("<file>", "a file `store backup` wrote, or a rollback copy; one written with --encrypt asks for its password").action(async function(file2) {
|
|
8274
8279
|
const path = storePath(environmentOf(this).env ?? process.env);
|
|
8275
8280
|
const given = resolve(file2);
|
|
8276
8281
|
if (!existsSync7(given))
|
|
@@ -8293,6 +8298,8 @@ var restoreFrom = /* @__PURE__ */ __name(async (command, messenger, backup, give
|
|
|
8293
8298
|
if (existsSync7(path) && realpathSync(backup) === realpathSync(path)) {
|
|
8294
8299
|
throw new CliError("validation_error", `${backup} is the store itself`);
|
|
8295
8300
|
}
|
|
8301
|
+
if (await isRollbackCopy(backup))
|
|
8302
|
+
return rollBackFrom(command, messenger, backup);
|
|
8296
8303
|
const schema = await backupSchema(backup);
|
|
8297
8304
|
const stamp = stampNow();
|
|
8298
8305
|
const kept = existsSync7(path) ? `${path}.before-restore-${stamp}` : null;
|
|
@@ -8319,6 +8326,43 @@ var restoreFrom = /* @__PURE__ */ __name(async (command, messenger, backup, give
|
|
|
8319
8326
|
renderer.note(`the backup is behind this build; the next command migrates it \u2014 \`${lineOf(command, "store migrate")}\` now`);
|
|
8320
8327
|
}
|
|
8321
8328
|
}, "restoreFrom");
|
|
8329
|
+
var isRollbackCopy = /* @__PURE__ */ __name(async (file2) => {
|
|
8330
|
+
try {
|
|
8331
|
+
return await readingOnly(file2, (database) => database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'rollback_meta'").get() !== void 0);
|
|
8332
|
+
} catch {
|
|
8333
|
+
return false;
|
|
8334
|
+
}
|
|
8335
|
+
}, "isRollbackCopy");
|
|
8336
|
+
var rollBackFrom = /* @__PURE__ */ __name(async (command, messenger, copy) => {
|
|
8337
|
+
const { renderer } = outputFor(command);
|
|
8338
|
+
const path = storePath(environmentOf(command).env ?? process.env);
|
|
8339
|
+
if (!existsSync7(path))
|
|
8340
|
+
throw new CliError("not_found", `no store at ${path} to roll back`);
|
|
8341
|
+
const waitMs = environmentOf(command).storeLockWaitMs;
|
|
8342
|
+
await quiesce(path, messenger, "restore", (message) => renderer.warn(message), waitMs);
|
|
8343
|
+
const { database } = await openSqlite(path);
|
|
8344
|
+
let rolled;
|
|
8345
|
+
try {
|
|
8346
|
+
rolled = rollBack(database, copy);
|
|
8347
|
+
} finally {
|
|
8348
|
+
database.close();
|
|
8349
|
+
}
|
|
8350
|
+
result(command, {
|
|
8351
|
+
path,
|
|
8352
|
+
restoredFrom: copy,
|
|
8353
|
+
rolledBack: true,
|
|
8354
|
+
schema: rolled.from,
|
|
8355
|
+
was: rolled.was,
|
|
8356
|
+
tables: rolled.restored,
|
|
8357
|
+
rebuilt: rolled.rebuilt,
|
|
8358
|
+
foreignKeyViolations: rolled.foreignKeyViolations
|
|
8359
|
+
});
|
|
8360
|
+
const taken = new Date(rolled.createdAt).toISOString();
|
|
8361
|
+
renderer.note(`the store is back at schema ${rolled.from}; ${rolled.tables.length > 0 ? rolled.tables.join(", ") : "no table"} hold what they held at ${taken}, and what was written to them since is not kept`);
|
|
8362
|
+
renderer.note("open it with the older tool and run its `store rebuild`: the search indexes are behind the tables");
|
|
8363
|
+
renderer.note(`a tool that speaks schema ${rolled.to} or later migrates it again on its next run`);
|
|
8364
|
+
renderer.note("restart every serve and mcp of either CLI that was running, so they read the restored store");
|
|
8365
|
+
}, "rollBackFrom");
|
|
8322
8366
|
var backupSchema = /* @__PURE__ */ __name(async (backup) => {
|
|
8323
8367
|
let read;
|
|
8324
8368
|
try {
|
|
@@ -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) {
|