@wirecat/cli-memo 0.131.61 → 0.131.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/memo.js +2 -2
- package/dist/bundle/{all-profiles-WPBMSWJF.js → all-profiles-L6EBORCV.js} +5 -5
- package/dist/bundle/{anthropic-FZRVISSX.js → anthropic-42PADP4V.js} +2 -2
- package/dist/bundle/{app-server-QGIZPU4R.js → app-server-QBJG7OGQ.js} +35 -35
- package/dist/bundle/auto-LGA3VXKQ.js +85 -0
- package/dist/bundle/{bun-AO76624P.js → bun-NYSNYHAD.js} +2 -2
- package/dist/bundle/{bun-sqlite-HYBE66QU.js → bun-sqlite-B46U7KI7.js} +2 -2
- package/dist/bundle/{chunk-233N77WN.js → chunk-2UCLF4AO.js} +273 -272
- package/dist/bundle/{chunk-YRHLPKTG.js → chunk-2XVXF4RW.js} +2 -2
- package/dist/bundle/{chunk-IZZU4NS6.js → chunk-347UBASY.js} +3 -3
- package/dist/bundle/{chunk-RRHSJ7CR.js → chunk-37E74SKW.js} +62 -62
- package/dist/bundle/{chunk-7DPHHUSZ.js → chunk-3ZXWLFUG.js} +21 -21
- package/dist/bundle/{chunk-6YK3RZZJ.js → chunk-4BKSE3CG.js} +4 -4
- package/dist/bundle/{chunk-WFDGEREJ.js → chunk-4GTZSCUE.js} +2 -2
- package/dist/bundle/{chunk-OFERGS4J.js → chunk-4SUROBD4.js} +2 -2
- package/dist/bundle/{chunk-5ZVWDMDT.js → chunk-5D7BPC33.js} +1 -1
- package/dist/bundle/{chunk-CTRVHHBK.js → chunk-5Q534L4I.js} +5 -5
- package/dist/bundle/{chunk-RRPUM4RS.js → chunk-6OZ2WI7Y.js} +2 -2
- package/dist/bundle/{chunk-B4VCZOLF.js → chunk-724DPWN6.js} +1 -1
- package/dist/bundle/{chunk-4WKZ3UIZ.js → chunk-A524HPDV.js} +1 -1
- package/dist/bundle/{chunk-2Q55K5HY.js → chunk-ACG5QN77.js} +2 -2
- package/dist/bundle/{chunk-WMRR2SNG.js → chunk-B3SERZMP.js} +1 -1
- package/dist/bundle/{chunk-XT7EJLA4.js → chunk-BOMHJR2E.js} +4 -4
- package/dist/bundle/{chunk-SSX6S3EG.js → chunk-DKO7WEXJ.js} +1 -1
- package/dist/bundle/{chunk-YVCNJKDA.js → chunk-E5JQFEIQ.js} +42 -42
- package/dist/bundle/{chunk-LIW42UCX.js → chunk-EGI6JHIA.js} +9 -9
- package/dist/bundle/{chunk-2UXFM5GE.js → chunk-FC5PK6M6.js} +12 -12
- package/dist/bundle/{chunk-HLTGPK6P.js → chunk-FG4Q6T72.js} +4 -4
- package/dist/bundle/{chunk-ETYD55QD.js → chunk-FH4P5UQA.js} +3 -3
- package/dist/bundle/{chunk-7CKXTTZG.js → chunk-FWRBJAQZ.js} +2 -2
- package/dist/bundle/{chunk-F6E7DSJO.js → chunk-GNHDE7FH.js} +1738 -32
- package/dist/bundle/{chunk-6NHJ4TTJ.js → chunk-HGNWJJDT.js} +336 -335
- package/dist/bundle/{chunk-OQSOQYSQ.js → chunk-HKC7GDJD.js} +4 -4
- package/dist/bundle/{chunk-XYFYZP2N.js → chunk-I5L7MLZ6.js} +1 -1
- package/dist/bundle/{chunk-KZRBIHQL.js → chunk-K4WCDPDL.js} +5 -5
- package/dist/bundle/{chunk-3FPF5DBU.js → chunk-K5VF47E2.js} +5 -5
- package/dist/bundle/{chunk-K6FQVROA.js → chunk-LK6D26RK.js} +21 -21
- package/dist/bundle/{chunk-6AEQACVV.js → chunk-MWAXS4BX.js} +7 -7
- package/dist/bundle/{chunk-D4PK5OXW.js → chunk-NZJUMLTD.js} +1 -1
- package/dist/bundle/{chunk-UTUUXAPS.js → chunk-O2NQCWRM.js} +28 -28
- package/dist/bundle/{chunk-35OBIX5A.js → chunk-OXBETHGN.js} +8 -8
- package/dist/bundle/{chunk-OIHKFGHK.js → chunk-PKUBC2ME.js} +3 -3
- package/dist/bundle/{chunk-7ETYPYIN.js → chunk-Q3VEUHC7.js} +12 -12
- package/dist/bundle/{chunk-RT476OFI.js → chunk-RGZUDHAQ.js} +7 -7
- package/dist/bundle/{chunk-UTSMQ7KI.js → chunk-RLX5SC2X.js} +1 -1
- package/dist/bundle/{chunk-PSYZ33UQ.js → chunk-RP6VV35S.js} +1 -1
- package/dist/bundle/{chunk-R7ZD7TNI.js → chunk-RSG7BRXI.js} +1 -1
- package/dist/bundle/{chunk-37ILRM2G.js → chunk-RTLQHLHG.js} +4 -4
- package/dist/bundle/{chunk-4HLYKLGJ.js → chunk-SIBQ34LX.js} +1 -1
- package/dist/bundle/{chunk-JAJSTFBB.js → chunk-SIJA2UYC.js} +6 -6
- package/dist/bundle/{chunk-MQCBJGXA.js → chunk-SJ55SMBE.js} +9 -9
- package/dist/bundle/{chunk-I6LNI45S.js → chunk-SOQGV3ZM.js} +5 -5
- package/dist/bundle/{chunk-5SD4CV2D.js → chunk-TBSWOVM3.js} +571 -293
- package/dist/bundle/{chunk-STXMSLU6.js → chunk-TKPIS4G2.js} +1 -1
- package/dist/bundle/{chunk-XU7UER3B.js → chunk-TSKGEK2S.js} +10 -10
- package/dist/bundle/{chunk-2VMZLQ5K.js → chunk-V7TJSYFK.js} +2 -2
- package/dist/bundle/{chunk-KGZM5WYK.js → chunk-VTKLHYCZ.js} +4 -4
- package/dist/bundle/{chunk-7E46JN6V.js → chunk-VX4HNQLN.js} +2 -2
- package/dist/bundle/{chunk-OEPBIWHI.js → chunk-WDWKG7FJ.js} +150 -150
- package/dist/bundle/{chunk-OWVHNTY6.js → chunk-WDZOEBTE.js} +6 -6
- package/dist/bundle/{chunk-7NKBX7FC.js → chunk-XVREIQ2N.js} +2 -2
- package/dist/bundle/chunk-YVJAD5E7.js +268 -0
- package/dist/bundle/{chunk-Y264FW55.js → chunk-ZUQXDJ7A.js} +1 -1
- package/dist/bundle/{command-contract-4TGN6GSP.js → command-contract-SIXWLKAS.js} +11 -11
- package/dist/bundle/{decode-S3PPQHID.js → decode-2Z4GCIGA.js} +2 -2
- package/dist/bundle/{echarts-AH6U7X2S.js → echarts-JADCSUD7.js} +2 -2
- package/dist/bundle/{embed-4NSZECMB.js → embed-ZLEPINEK.js} +3 -3
- package/dist/bundle/{embedder-EGRA7YEY.js → embedder-E3DHPZCK.js} +6 -6
- package/dist/bundle/{entry-O3V72WZP.js → entry-SFLEGFSN.js} +4 -4
- package/dist/bundle/failure-OGSLUNT6.js +65 -0
- package/dist/bundle/{first-run-S7RRDIGX.js → first-run-ZKDGFY6P.js} +5 -5
- package/dist/bundle/{first-screen-YKJAQUVE.js → first-screen-IQEU7XF2.js} +12 -12
- package/dist/bundle/{instructions-ETUUZKBM.js → instructions-ECXOBMWS.js} +1 -1
- package/dist/bundle/{mcp-J3K7RC5W.js → mcp-Y4XMDC5Q.js} +35 -35
- package/dist/bundle/memo.js +6 -6
- package/dist/bundle/{node-O4XVOEGO.js → node-A6363DJ4.js} +2 -2
- package/dist/bundle/{node-sqlite-PC3K43U7.js → node-sqlite-FA2P77PW.js} +3 -3
- package/dist/bundle/{oauth-MBJUEG2Z.js → oauth-DBGARGR7.js} +4 -4
- package/dist/bundle/{open-5FAYV6JM.js → open-5YYG2VWH.js} +2 -2
- package/dist/bundle/{openai-57CRSGLH.js → openai-BPVP7TZ7.js} +7 -7
- package/dist/bundle/{process-NAW4COYH.js → process-DGPZRHQA.js} +1 -1
- package/dist/bundle/{program-CFJAGFYD.js → program-ZHLCEVWB.js} +618 -290
- package/dist/bundle/{prompt-FT2MMVS7.js → prompt-NTAZWPWA.js} +2 -2
- package/dist/bundle/{recognize-PEYPOI3Q.js → recognize-OGEP5VD3.js} +1 -1
- package/dist/bundle/{remote-FQAXACFW.js → remote-DER2PFH6.js} +4 -4
- package/dist/bundle/{rerank-4KEB4X6T.js → rerank-PB5ACFHS.js} +4 -4
- package/dist/bundle/{serve-LCTIHO37.js → serve-KNEY4BXK.js} +6 -6
- package/dist/bundle/{server-XQLRMM73.js → server-I5BPRS5C.js} +55 -52
- package/dist/bundle/server-IQILK5YP.js +61 -0
- package/dist/bundle/server-NKI7SVK5.js +48 -0
- package/dist/bundle/{state-YF4M4RHC.js → state-JMCWHHZM.js} +3 -3
- package/dist/bundle/{store-EQEMYMCC.js → store-6H4FPFTX.js} +9 -9
- package/dist/bundle/store-maintenance-command-IFVWSQMJ.js +47 -0
- package/dist/bundle/update-YMILPFRY.js +68 -0
- package/dist/config-issues.d.ts +4 -1
- package/dist/config-issues.d.ts.map +1 -1
- package/dist/config-issues.js +6 -2
- package/dist/config-issues.js.map +1 -1
- package/dist/contract-overrides/search.js +2 -2
- package/dist/contract-overrides/search.js.map +1 -1
- package/dist/digest/command.d.ts.map +1 -1
- package/dist/digest/command.js +11 -7
- package/dist/digest/command.js.map +1 -1
- package/dist/digest/digest.d.ts +29 -4
- package/dist/digest/digest.d.ts.map +1 -1
- package/dist/digest/digest.js +124 -39
- package/dist/digest/digest.js.map +1 -1
- package/dist/digest/sync-health.d.ts +51 -0
- package/dist/digest/sync-health.d.ts.map +1 -0
- package/dist/digest/sync-health.js +116 -0
- package/dist/digest/sync-health.js.map +1 -0
- package/dist/digest/tasks.d.ts +38 -0
- package/dist/digest/tasks.d.ts.map +1 -0
- package/dist/digest/tasks.js +108 -0
- package/dist/digest/tasks.js.map +1 -0
- package/dist/digest/text.d.ts.map +1 -1
- package/dist/digest/text.js +9 -2
- package/dist/digest/text.js.map +1 -1
- package/dist/knowledge/messenger-sync.d.ts +5 -0
- package/dist/knowledge/messenger-sync.d.ts.map +1 -1
- package/dist/knowledge/messenger-sync.js +12 -9
- package/dist/knowledge/messenger-sync.js.map +1 -1
- package/dist/mcp/catalogue.d.ts.map +1 -1
- package/dist/mcp/catalogue.js +5 -3
- package/dist/mcp/catalogue.js.map +1 -1
- package/dist/mcp/granted.d.ts +13 -0
- package/dist/mcp/granted.d.ts.map +1 -0
- package/dist/mcp/granted.js +19 -0
- package/dist/mcp/granted.js.map +1 -0
- package/dist/search/command.d.ts.map +1 -1
- package/dist/search/command.js +19 -7
- package/dist/search/command.js.map +1 -1
- package/dist/search/lane-gates.d.ts +33 -0
- package/dist/search/lane-gates.d.ts.map +1 -0
- package/dist/search/lane-gates.js +65 -0
- package/dist/search/lane-gates.js.map +1 -0
- package/dist/search/search.d.ts +5 -2
- package/dist/search/search.d.ts.map +1 -1
- package/dist/search/search.js +24 -2
- package/dist/search/search.js.map +1 -1
- package/dist/show/command.d.ts +3 -1
- package/dist/show/command.d.ts.map +1 -1
- package/dist/show/command.js +28 -3
- package/dist/show/command.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/morning-digest/SKILL.md +24 -10
- package/dist/bundle/auto-5VPCO4DD.js +0 -85
- package/dist/bundle/chunk-3FDJSMLJ.js +0 -1900
- package/dist/bundle/failure-CFGWWTV5.js +0 -65
- package/dist/bundle/server-AQTWRRAJ.js +0 -61
- package/dist/bundle/server-JIFODLCU.js +0 -48
- package/dist/bundle/store-maintenance-command-7IC3LTYY.js +0 -47
- package/dist/bundle/update-T237KLFA.js +0 -68
- /package/dist/bundle/{chunk-GFNWVGLD.js → chunk-C3XNJQD7.js} +0 -0
|
@@ -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-3ZXWLFUG.js";
|
|
7
7
|
import {
|
|
8
8
|
FETCHING,
|
|
9
9
|
QUICK_HEALTH_CHECKS,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
typedQuery,
|
|
33
33
|
withQuery,
|
|
34
34
|
withTimeLimit
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-2UCLF4AO.js";
|
|
36
36
|
import {
|
|
37
37
|
stringWidth,
|
|
38
38
|
wrapAnsi
|
|
@@ -63,17 +63,17 @@ import {
|
|
|
63
63
|
snakeKeys,
|
|
64
64
|
storeTable,
|
|
65
65
|
withoutProviderRefs
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-WDWKG7FJ.js";
|
|
67
67
|
import {
|
|
68
68
|
holdLock,
|
|
69
69
|
lockPath,
|
|
70
70
|
releaseLock,
|
|
71
71
|
servingProfiles,
|
|
72
72
|
takeLock
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-ACG5QN77.js";
|
|
74
74
|
import {
|
|
75
75
|
holdersOf
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-ZUQXDJ7A.js";
|
|
77
77
|
import {
|
|
78
78
|
CORPORA,
|
|
79
79
|
MIGRATIONS,
|
|
@@ -109,26 +109,26 @@ import {
|
|
|
109
109
|
storeClients,
|
|
110
110
|
storeContents,
|
|
111
111
|
vectorIndexCounts
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-HGNWJJDT.js";
|
|
113
113
|
import {
|
|
114
114
|
queryFieldsOf,
|
|
115
115
|
readDamageMark,
|
|
116
116
|
readHealthMark,
|
|
117
117
|
recordDeepCheck
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-37E74SKW.js";
|
|
119
119
|
import {
|
|
120
120
|
failureKey,
|
|
121
121
|
isStoreDamage
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-2XVXF4RW.js";
|
|
123
123
|
import {
|
|
124
124
|
readSecret
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-4GTZSCUE.js";
|
|
126
126
|
import {
|
|
127
127
|
storePath
|
|
128
|
-
} from "./chunk-
|
|
128
|
+
} from "./chunk-NZJUMLTD.js";
|
|
129
129
|
import {
|
|
130
130
|
openCache
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-SOQGV3ZM.js";
|
|
132
132
|
import {
|
|
133
133
|
resolvePaths,
|
|
134
134
|
writeSecurely
|
|
@@ -5498,11 +5498,11 @@ var require_liquid_node = __commonJS({
|
|
|
5498
5498
|
}
|
|
5499
5499
|
});
|
|
5500
5500
|
|
|
5501
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5502
5502
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync9, mkdirSync, realpathSync as realpathSync2, renameSync as renameSync3, rmSync as rmSync3, statfsSync as statfsSync2, statSync as statSync4, writeFileSync as writeFileSync2 } from "node:fs";
|
|
5503
5503
|
import { dirname as dirname2, resolve } from "node:path";
|
|
5504
5504
|
|
|
5505
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5505
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5506
5506
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5507
5507
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5508
5508
|
import { Transform } from "node:stream";
|
|
@@ -5609,7 +5609,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5609
5609
|
renameSync(pending, to);
|
|
5610
5610
|
}, "unsealFile");
|
|
5611
5611
|
|
|
5612
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5613
5613
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5614
5614
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5615
5615
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5633,7 +5633,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5633
5633
|
};
|
|
5634
5634
|
}, "compatibilityOf");
|
|
5635
5635
|
|
|
5636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5637
5637
|
import { createHash as createHash2 } from "node:crypto";
|
|
5638
5638
|
var COPY_MARK = "__repair_";
|
|
5639
5639
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5887,13 +5887,13 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5887
5887
|
return found;
|
|
5888
5888
|
}, "deleteCopy");
|
|
5889
5889
|
|
|
5890
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5890
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5891
5891
|
import { existsSync as existsSync4, statSync as statSync3 } from "node:fs";
|
|
5892
5892
|
|
|
5893
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5893
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
5894
5894
|
import { existsSync as existsSync3 } from "node:fs";
|
|
5895
5895
|
|
|
5896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5896
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/store/recover.js
|
|
5897
5897
|
import { execFileSync, spawn } from "node:child_process";
|
|
5898
5898
|
import { existsSync as existsSync2, readFileSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync2, writeFileSync } from "node:fs";
|
|
5899
5899
|
import { basename, dirname, join } from "node:path";
|
|
@@ -6290,7 +6290,7 @@ var recoverLocked = /* @__PURE__ */ __name(async ({ path, command, version, sqli
|
|
|
6290
6290
|
}
|
|
6291
6291
|
}, "recoverLocked");
|
|
6292
6292
|
|
|
6293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/store-recover.js
|
|
6294
6294
|
var COUNTED = [
|
|
6295
6295
|
"accounts",
|
|
6296
6296
|
"chats",
|
|
@@ -6423,7 +6423,7 @@ var storeRecoverCommand = /* @__PURE__ */ __name(({ command, version }) => {
|
|
|
6423
6423
|
return recover;
|
|
6424
6424
|
}, "storeRecoverCommand");
|
|
6425
6425
|
|
|
6426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6426
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
6427
6427
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
6428
6428
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync4(path) ? statSync3(path).size : 0, "bytesOf");
|
|
6429
6429
|
var messageOf = /* @__PURE__ */ __name((error) => error instanceof Error ? error.message : String(error), "messageOf");
|
|
@@ -6469,7 +6469,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
6469
6469
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
6470
6470
|
}), "storeInfoCommand");
|
|
6471
6471
|
|
|
6472
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6472
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
6473
6473
|
var ENCRYPT_OPTION = [
|
|
6474
6474
|
"--encrypt",
|
|
6475
6475
|
"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"
|
|
@@ -6488,7 +6488,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
6488
6488
|
return password;
|
|
6489
6489
|
}, "passwordOf");
|
|
6490
6490
|
|
|
6491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6491
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
6492
6492
|
import { existsSync as existsSync5, readFileSync as readFileSync2 } from "node:fs";
|
|
6493
6493
|
import { join as join2 } from "node:path";
|
|
6494
6494
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6659,7 +6659,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6659
6659
|
}, "problem");
|
|
6660
6660
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6661
6661
|
|
|
6662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6663
6663
|
import { existsSync as existsSync6, readFileSync as readFileSync3 } from "node:fs";
|
|
6664
6664
|
import { join as join3 } from "node:path";
|
|
6665
6665
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6712,7 +6712,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6712
6712
|
}, "recordReply");
|
|
6713
6713
|
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");
|
|
6714
6714
|
|
|
6715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6715
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6716
6716
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6717
6717
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6718
6718
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -6818,10 +6818,10 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
6818
6818
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
6819
6819
|
}, "filled");
|
|
6820
6820
|
|
|
6821
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
6822
6822
|
var import_liquidjs2 = __toESM(require_liquid_node(), 1);
|
|
6823
6823
|
|
|
6824
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/render/liquid.js
|
|
6825
6825
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
6826
6826
|
var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
6827
6827
|
const engine = new import_liquidjs.Liquid({
|
|
@@ -6848,7 +6848,7 @@ var safeLiquid = /* @__PURE__ */ __name((limits) => {
|
|
|
6848
6848
|
return engine;
|
|
6849
6849
|
}, "safeLiquid");
|
|
6850
6850
|
|
|
6851
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6851
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
6852
6852
|
var TEMPLATE_LIMITS = {
|
|
6853
6853
|
parse: 32768,
|
|
6854
6854
|
renders: 2e3,
|
|
@@ -6987,7 +6987,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6987
6987
|
}
|
|
6988
6988
|
}, "renderReplyTemplate");
|
|
6989
6989
|
|
|
6990
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6990
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
6991
6991
|
var DRY_RUN_DAYS = 7;
|
|
6992
6992
|
var PAGE = 500;
|
|
6993
6993
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -7101,7 +7101,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
7101
7101
|
}
|
|
7102
7102
|
}, "storedSince");
|
|
7103
7103
|
|
|
7104
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
7105
7105
|
import { existsSync as existsSync7, readFileSync as readFileSync4 } from "node:fs";
|
|
7106
7106
|
import { join as join4 } from "node:path";
|
|
7107
7107
|
var shape = strictObject({
|
|
@@ -7126,7 +7126,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
7126
7126
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
7127
7127
|
}, "mayModelReply");
|
|
7128
7128
|
|
|
7129
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
7130
7130
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options = {
|
|
7131
7131
|
ai: true
|
|
7132
7132
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -7173,7 +7173,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
7173
7173
|
return result2;
|
|
7174
7174
|
}, "replyRenderer");
|
|
7175
7175
|
|
|
7176
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7176
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
7177
7177
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
7178
7178
|
var NO_RULES = "no rules";
|
|
7179
7179
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -7266,7 +7266,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
7266
7266
|
return { skip: why };
|
|
7267
7267
|
}, "replyTo");
|
|
7268
7268
|
|
|
7269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7269
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-catch-up.js
|
|
7270
7270
|
var START_SYNC_DELAY_MS = 3e4;
|
|
7271
7271
|
var START_SYNC_BUDGET_MS = 5 * 6e4;
|
|
7272
7272
|
var START_SYNC_WINDOW_MS = 7 * 864e5;
|
|
@@ -7343,7 +7343,7 @@ var startSync = /* @__PURE__ */ __name(({ chats, newestHeld, fetch, note, warn,
|
|
|
7343
7343
|
};
|
|
7344
7344
|
}, "startSync");
|
|
7345
7345
|
|
|
7346
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7346
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
7347
7347
|
var FIRST_FETCH_MS = 6e4;
|
|
7348
7348
|
var DAY_MS = 864e5;
|
|
7349
7349
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -7397,7 +7397,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch, warn, firstMs =
|
|
|
7397
7397
|
};
|
|
7398
7398
|
}, "memberFetches");
|
|
7399
7399
|
|
|
7400
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7400
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
7401
7401
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
7402
7402
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
7403
7403
|
if (context.format === "pretty") {
|
|
@@ -7430,7 +7430,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
7430
7430
|
return context;
|
|
7431
7431
|
}, "recordDiagnostics");
|
|
7432
7432
|
|
|
7433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
7434
7434
|
var STEMS_EVERY_MS = 3e4;
|
|
7435
7435
|
var STEMS_SLICE_MS = 2e3;
|
|
7436
7436
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -7470,7 +7470,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
7470
7470
|
};
|
|
7471
7471
|
}, "stemFills");
|
|
7472
7472
|
|
|
7473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
7474
7474
|
import { styleText } from "node:util";
|
|
7475
7475
|
var TIME_WIDTH = 8;
|
|
7476
7476
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -7646,7 +7646,7 @@ var editedAt = /* @__PURE__ */ __name((message, options) => {
|
|
|
7646
7646
|
return day(edited) === day(message.timestamp) ? time : `${day(edited)} ${time}`;
|
|
7647
7647
|
}, "editedAt");
|
|
7648
7648
|
|
|
7649
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7649
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
7650
7650
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
7651
7651
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
7652
7652
|
kind: attachment.kind,
|
|
@@ -7741,7 +7741,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
7741
7741
|
locale: messenger.app.locale
|
|
7742
7742
|
}), "viewOf");
|
|
7743
7743
|
|
|
7744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
7745
7745
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
7746
7746
|
value: value.value,
|
|
7747
7747
|
observed_at: value.observedAt,
|
|
@@ -7808,7 +7808,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
7808
7808
|
}
|
|
7809
7809
|
}, "watchEventItem");
|
|
7810
7810
|
|
|
7811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
7812
7812
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
7813
7813
|
output: { entity: "watch_item" },
|
|
7814
7814
|
effects: REMOTE_READ,
|
|
@@ -7963,7 +7963,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
7963
7963
|
}
|
|
7964
7964
|
}, "describe");
|
|
7965
7965
|
|
|
7966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7966
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
7967
7967
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
7968
7968
|
const command = annotate(new Command("serve"), {
|
|
7969
7969
|
output: { entity: "serve_summary" },
|
|
@@ -8227,7 +8227,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
8227
8227
|
};
|
|
8228
8228
|
}, "tasking");
|
|
8229
8229
|
|
|
8230
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8230
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
8231
8231
|
import { existsSync as existsSync8 } from "node:fs";
|
|
8232
8232
|
var PATH = "store tables list";
|
|
8233
8233
|
var STORE_TABLES_QUERY = {
|
|
@@ -8270,7 +8270,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
8270
8270
|
return tables;
|
|
8271
8271
|
}, "storeTablesCommand");
|
|
8272
8272
|
|
|
8273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
8274
8274
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
8275
8275
|
var WORD_INDEX = "message_words";
|
|
8276
8276
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -3,11 +3,11 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
envName,
|
|
5
5
|
readOnlyLockOf
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RP6VV35S.js";
|
|
7
7
|
import {
|
|
8
8
|
CAPABILITY_STATEMENTS,
|
|
9
9
|
storeCapable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SOQGV3ZM.js";
|
|
11
11
|
import {
|
|
12
12
|
catchCrashes
|
|
13
13
|
} from "./chunk-RCGFSWZE.js";
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
__name
|
|
22
22
|
} from "./chunk-ZVVMGPBJ.js";
|
|
23
23
|
|
|
24
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
24
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
25
25
|
import { spawn as spawn2 } from "node:child_process";
|
|
26
26
|
|
|
27
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
27
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
28
28
|
import { spawn, spawnSync } from "node:child_process";
|
|
29
29
|
import { readFileSync } from "node:fs";
|
|
30
30
|
import { dirname } from "node:path";
|
|
@@ -112,14 +112,14 @@ var relay = /* @__PURE__ */ __name((child, host = process) => new Promise(() =>
|
|
|
112
112
|
});
|
|
113
113
|
}), "relay");
|
|
114
114
|
|
|
115
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/argv-log.js
|
|
116
116
|
import { appendFileSync } from "node:fs";
|
|
117
117
|
var logVersion = /* @__PURE__ */ __name((file) => {
|
|
118
118
|
appendFileSync(file, `${JSON.stringify({ command: "", options: ["--version"] })}
|
|
119
119
|
`);
|
|
120
120
|
}, "logVersion");
|
|
121
121
|
|
|
122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/entry.js
|
|
123
123
|
var processIo = /* @__PURE__ */ __name(() => ({
|
|
124
124
|
argv: process.argv,
|
|
125
125
|
env: process.env,
|
|
@@ -173,8 +173,8 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
173
173
|
if (command.optsWithGlobals().dryRun === true)
|
|
174
174
|
return;
|
|
175
175
|
const [{ setupAtStart }, { commandPathOf }] = await Promise.all([
|
|
176
|
-
import("./first-run-
|
|
177
|
-
import("./command-contract-
|
|
176
|
+
import("./first-run-ZKDGFY6P.js"),
|
|
177
|
+
import("./command-contract-SIXWLKAS.js")
|
|
178
178
|
]);
|
|
179
179
|
await setupAtStart({
|
|
180
180
|
command: entry.app.command,
|
|
@@ -189,7 +189,7 @@ var startCli = /* @__PURE__ */ __name(async (entry) => {
|
|
|
189
189
|
ask: /* @__PURE__ */ __name(async (question, command) => {
|
|
190
190
|
if (headless(command) || io.stdin.isTTY !== true)
|
|
191
191
|
return false;
|
|
192
|
-
const { readSecret } = await import("./prompt-
|
|
192
|
+
const { readSecret } = await import("./prompt-NTAZWPWA.js");
|
|
193
193
|
const answer = await readSecret(`${question} [y/N] `, {
|
|
194
194
|
input: io.stdin,
|
|
195
195
|
output: io.stderr,
|
|
@@ -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.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/ordinary-file.js
|
|
11
11
|
import { constants } from "node:fs";
|
|
12
12
|
import { lstat, open } from "node:fs/promises";
|
|
13
13
|
var deviceOf = /* @__PURE__ */ __name((dev) => process.platform === "win32" ? BigInt.asUintN(32, dev) : dev, "deviceOf");
|
|
@@ -73,7 +73,7 @@ var syncDirectory = /* @__PURE__ */ __name(async (path) => {
|
|
|
73
73
|
}
|
|
74
74
|
}, "syncDirectory");
|
|
75
75
|
|
|
76
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/atomic-write.js
|
|
77
77
|
import { randomUUID } from "node:crypto";
|
|
78
78
|
import { constants as constants2 } from "node:fs";
|
|
79
79
|
import { link, open as open2, realpath, rename, unlink } from "node:fs/promises";
|
|
@@ -111,7 +111,7 @@ var writeFileAtomic = /* @__PURE__ */ __name(async (path, content, { mode = 384,
|
|
|
111
111
|
}
|
|
112
112
|
}, "writeFileAtomic");
|
|
113
113
|
|
|
114
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/bounded-utf8.js
|
|
115
115
|
var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
116
116
|
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 16 * 1024 * 1024)
|
|
117
117
|
throw new CliError("validation_error", "file maxBytes takes 1\u201316777216 bytes");
|
|
@@ -140,21 +140,21 @@ var readBoundedUtf8File = /* @__PURE__ */ __name(async (path, { maxBytes }) => {
|
|
|
140
140
|
}
|
|
141
141
|
}, "readBoundedUtf8File");
|
|
142
142
|
|
|
143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
144
144
|
import { mkdir as mkdir2 } from "node:fs/promises";
|
|
145
145
|
import { basename as basename2, dirname as dirname2 } from "node:path";
|
|
146
146
|
|
|
147
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
147
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
148
148
|
import { randomUUID as randomUUID2 } from "node:crypto";
|
|
149
149
|
import { lstat as lstat3, mkdir, open as open3, realpath as realpath3, rmdir as rmdir2, unlink as unlink4 } from "node:fs/promises";
|
|
150
150
|
import { hostname as hostname2 } from "node:os";
|
|
151
151
|
import { join as join3 } from "node:path";
|
|
152
152
|
|
|
153
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
153
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
154
154
|
import { lstat as lstat2, readdir, realpath as realpath2, unlink as unlink2 } from "node:fs/promises";
|
|
155
155
|
import { join as join2 } from "node:path";
|
|
156
156
|
|
|
157
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/native-lease-owner.js
|
|
158
158
|
import { hostname } from "node:os";
|
|
159
159
|
var missingLeaseFile = /* @__PURE__ */ __name((error) => typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT", "missingLeaseFile");
|
|
160
160
|
var readLeaseOwner = /* @__PURE__ */ __name(async (path, name, signal) => {
|
|
@@ -199,7 +199,7 @@ var leaseOwnerStatus = /* @__PURE__ */ __name((owner) => {
|
|
|
199
199
|
}
|
|
200
200
|
}, "leaseOwnerStatus");
|
|
201
201
|
|
|
202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/native-lease-inspection.js
|
|
203
203
|
var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
204
204
|
const inspect = /* @__PURE__ */ __name(async (destination, options = {}) => {
|
|
205
205
|
options.signal?.throwIfAborted();
|
|
@@ -258,7 +258,7 @@ var leaseInspection = /* @__PURE__ */ __name((markerDirectory) => {
|
|
|
258
258
|
return { inspect, recover };
|
|
259
259
|
}, "leaseInspection");
|
|
260
260
|
|
|
261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
261
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/native-lease-release.js
|
|
262
262
|
import { rmdir, unlink as unlink3 } from "node:fs/promises";
|
|
263
263
|
var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identity) => {
|
|
264
264
|
let releasing;
|
|
@@ -283,7 +283,7 @@ var ownedNativeLease = /* @__PURE__ */ __name((path, name, owner, folder, identi
|
|
|
283
283
|
};
|
|
284
284
|
}, "ownedNativeLease");
|
|
285
285
|
|
|
286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/native-writer-lease.js
|
|
287
287
|
var validName = /* @__PURE__ */ __name((value) => typeof value === "string" && value.length > 0 && value !== "." && value !== ".." && !/[\\/\0:]/.test(value), "validName");
|
|
288
288
|
var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
289
289
|
const { markerDirectory, legacyMarker } = layout;
|
|
@@ -354,7 +354,7 @@ var nativeWriterLeaseStore = /* @__PURE__ */ __name((layout) => {
|
|
|
354
354
|
};
|
|
355
355
|
}, "nativeWriterLeaseStore");
|
|
356
356
|
|
|
357
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
357
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/lock.js
|
|
358
358
|
var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
359
359
|
const folder = dirname2(path);
|
|
360
360
|
await mkdir2(folder, { recursive: true, mode: 448 });
|
|
@@ -369,7 +369,7 @@ var acquireLock = /* @__PURE__ */ __name(async (path, { signal } = {}) => {
|
|
|
369
369
|
});
|
|
370
370
|
}, "acquireLock");
|
|
371
371
|
|
|
372
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
372
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/files/safe-name.js
|
|
373
373
|
import { basename as basename3 } from "node:path";
|
|
374
374
|
var safeName = /* @__PURE__ */ __name((name, platform = process.platform) => {
|
|
375
375
|
let plain = name === void 0 ? "" : basename3(name.replaceAll("\\", "/")).replace(/[\p{Cc}---]/gu, "").replace(/^\.+/, "");
|
|
@@ -2,10 +2,10 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
listen
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SIBQ34LX.js";
|
|
6
6
|
import {
|
|
7
7
|
ownerLogin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-V7TJSYFK.js";
|
|
9
9
|
import {
|
|
10
10
|
WebStandardStreamableHTTPServerTransport,
|
|
11
11
|
createMcpHandler,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
calledTools,
|
|
23
23
|
httpActivityFile,
|
|
24
24
|
httpLock
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RTLQHLHG.js";
|
|
26
26
|
import {
|
|
27
27
|
CliError
|
|
28
28
|
} from "./chunk-4ZW6ZJ2V.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
__name
|
|
31
31
|
} from "./chunk-ZVVMGPBJ.js";
|
|
32
32
|
|
|
33
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
33
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/mcp/http/serve.js
|
|
34
34
|
import { randomUUID } from "node:crypto";
|
|
35
35
|
var MCP_PATH = "/mcp";
|
|
36
36
|
var AS_METADATA = "/.well-known/oauth-authorization-server";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
readSharedSection,
|
|
5
5
|
sharedConfigPath,
|
|
6
6
|
writeSharedSection
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HKC7GDJD.js";
|
|
8
8
|
import {
|
|
9
9
|
storePath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NZJUMLTD.js";
|
|
11
11
|
import {
|
|
12
12
|
CliError
|
|
13
13
|
} from "./chunk-4ZW6ZJ2V.js";
|
|
@@ -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.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/cli/setup-answers.js
|
|
19
19
|
var PERMISSION_ANSWERS = ["readonly", "allow"];
|
|
20
20
|
var QUESTIONS = ["languages", "tools", "permissions"];
|
|
21
21
|
var SECTION = "setup";
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
SAMPLE_RATE,
|
|
5
5
|
decodeOgg
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PKUBC2ME.js";
|
|
7
7
|
import {
|
|
8
8
|
importFrom
|
|
9
9
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
__name
|
|
15
15
|
} from "./chunk-ZVVMGPBJ.js";
|
|
16
16
|
|
|
17
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
17
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.613.0_@wirecat+cli-base@0.82.0_commander@15.0.0_esbuild@0.28.2_type_562287bbc40b862fa82b63f307e02b11/node_modules/@wirecat/cli-core/dist/speech/decode.js
|
|
18
18
|
import { spawn } from "node:child_process";
|
|
19
19
|
import { mkdtemp, rm, writeFile } from "node:fs/promises";
|
|
20
20
|
import { createRequire } from "node:module";
|