@wirecat/mail-cli 0.7.0 → 0.9.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 +28 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-SI67TKZM.js → all-profiles-X6ROLLMF.js} +9 -9
- package/dist/bundle/{anthropic-DALMLC3Y.js → anthropic-MPARKCMJ.js} +6 -6
- package/dist/bundle/{app-server-XOH327Z2.js → app-server-JQ5XCXWT.js} +48 -48
- package/dist/bundle/{bun-ORL67CJ6.js → bun-H7LT5433.js} +2 -2
- package/dist/bundle/{bun-sqlite-DGXFNFHI.js → bun-sqlite-AGK2BHAN.js} +5 -5
- package/dist/bundle/{chunk-35KD2CI2.js → chunk-24MHYGNE.js} +286 -252
- package/dist/bundle/{chunk-XQJWMBDY.js → chunk-25N52S7U.js} +6 -6
- package/dist/bundle/{chunk-VNJMO5F6.js → chunk-2FDROA4Q.js} +2 -2
- package/dist/bundle/{chunk-CAKBG5FC.js → chunk-3LMWAO6A.js} +6 -6
- package/dist/bundle/{chunk-AP7V256W.js → chunk-3W6VSSQQ.js} +1 -1
- package/dist/bundle/{chunk-U6UJ3HRS.js → chunk-3Y7H3CXI.js} +2 -2
- package/dist/bundle/{chunk-GJUUTUK4.js → chunk-4EFKQXA5.js} +8 -8
- package/dist/bundle/{chunk-BEMLGWY4.js → chunk-4MIC7S7B.js} +1 -1
- package/dist/bundle/{chunk-VKPWP3AK.js → chunk-5NYUCY5W.js} +2 -2
- package/dist/bundle/{chunk-23IEVVL2.js → chunk-5PWKPRTD.js} +4 -4
- package/dist/bundle/{chunk-E3DRM6YP.js → chunk-64FN5JK6.js} +3 -3
- package/dist/bundle/{chunk-IYZHM3ZN.js → chunk-65SVO3T7.js} +3 -3
- package/dist/bundle/{chunk-NNIXREJH.js → chunk-6FBBDIX6.js} +7 -7
- package/dist/bundle/{chunk-PDL4UREY.js → chunk-BNPCRWZ6.js} +8 -8
- package/dist/bundle/{chunk-JFMUI4H6.js → chunk-CHK3V7FG.js} +1 -1
- package/dist/bundle/{chunk-7K6KJWTO.js → chunk-DL32PWLR.js} +12 -12
- package/dist/bundle/{chunk-SQLCCKEL.js → chunk-DLB2JPLU.js} +1 -1
- package/dist/bundle/{chunk-MMXMVGA6.js → chunk-DQHAXX33.js} +7 -7
- package/dist/bundle/{chunk-VBOMKZ4E.js → chunk-EUJTQY43.js} +70 -53
- package/dist/bundle/{chunk-M2JCUVCJ.js → chunk-EVG7MOAH.js} +94 -94
- package/dist/bundle/{chunk-OHTR4WFO.js → chunk-FEA5E7WQ.js} +2 -2
- package/dist/bundle/{chunk-6XNPXAJU.js → chunk-FUDHVV4R.js} +23 -23
- package/dist/bundle/{chunk-5BSEGMNE.js → chunk-GPCKNZIA.js} +4 -4
- package/dist/bundle/{chunk-2M4K7HYR.js → chunk-HWLAV2HM.js} +17 -17
- package/dist/bundle/{chunk-Q44AYEOB.js → chunk-HZ42NO25.js} +2 -2
- package/dist/bundle/{chunk-EYT33MM3.js → chunk-INVEYTAL.js} +46 -46
- package/dist/bundle/{chunk-FPOGVDLS.js → chunk-IYC3IHEZ.js} +2 -2
- package/dist/bundle/{chunk-MHQKHWCJ.js → chunk-J4MY3QIN.js} +34 -28
- package/dist/bundle/{chunk-73OJJGZE.js → chunk-JYVZDJNO.js} +17 -3
- package/dist/bundle/{chunk-BGUMGCUY.js → chunk-JZMPDFM4.js} +2 -2
- package/dist/bundle/{chunk-FTFNWGIR.js → chunk-K3RWO7LR.js} +8 -8
- package/dist/bundle/{chunk-DKQWTQVY.js → chunk-KWHFDVAF.js} +23 -23
- package/dist/bundle/{chunk-BM445GYF.js → chunk-L3KMVMRJ.js} +2 -2
- package/dist/bundle/{chunk-ZNGQ3NZ4.js → chunk-M55XFZMG.js} +9 -9
- package/dist/bundle/{chunk-S4YUR4S3.js → chunk-N6YA4OQI.js} +219 -206
- package/dist/bundle/{chunk-NXJLC2WK.js → chunk-NAIJNJZZ.js} +12 -8
- package/dist/bundle/{chunk-HV3EIYX4.js → chunk-NTWORG4T.js} +1 -1
- package/dist/bundle/{chunk-6RMMAUUW.js → chunk-OZGDPG6I.js} +30 -30
- package/dist/bundle/{chunk-3TYEJRMZ.js → chunk-PC3AFEEA.js} +4 -4
- package/dist/bundle/{chunk-FUB3X25H.js → chunk-PEF637VV.js} +4 -4
- package/dist/bundle/{chunk-V4TDG4KF.js → chunk-PTDJXPXG.js} +14 -14
- package/dist/bundle/{chunk-RQVWZBW3.js → chunk-PXQ7A5HQ.js} +3 -3
- package/dist/bundle/{chunk-4NYWHINR.js → chunk-QO4K6R7K.js} +6 -6
- package/dist/bundle/{chunk-4ULY3GDL.js → chunk-QXXBDW6N.js} +10 -10
- package/dist/bundle/{chunk-5JEYIHS6.js → chunk-RGM66WZ3.js} +3 -3
- package/dist/bundle/{chunk-QZBT6BOU.js → chunk-ROZBXOES.js} +1 -1
- package/dist/bundle/{chunk-VSHJWTX5.js → chunk-SEL7SJCM.js} +6 -6
- package/dist/bundle/{chunk-ZKZABB4K.js → chunk-SUB4DRMA.js} +3 -3
- package/dist/bundle/{chunk-HFJNEXU7.js → chunk-SYFBRZ5F.js} +2 -2
- package/dist/bundle/{chunk-MCJ7LKYR.js → chunk-TKFQ3GNY.js} +6 -6
- package/dist/bundle/{chunk-45KA5667.js → chunk-TVZFDVZP.js} +13 -13
- package/dist/bundle/{chunk-3GZK5GTU.js → chunk-U6BDAY55.js} +1 -1
- package/dist/bundle/{chunk-6LK7KTWB.js → chunk-UHBCL66Y.js} +1 -1
- package/dist/bundle/{chunk-ZKCNMW7G.js → chunk-VOGSDGVL.js} +2 -2
- package/dist/bundle/{chunk-DXGMPMFP.js → chunk-YLSV3WOO.js} +4 -4
- package/dist/bundle/{chunk-LZ5J3UXD.js → chunk-YXQIZORE.js} +4 -4
- package/dist/bundle/{chunk-R5MML3FC.js → chunk-Z3TZTOR2.js} +67 -59
- package/dist/bundle/{chunk-Q2C3VMSU.js → chunk-ZISFMUYB.js} +18 -18
- package/dist/bundle/command-contract-T3H5CAX3.js +34 -0
- package/dist/bundle/{decode-KOBURZIQ.js → decode-ZATANRER.js} +5 -5
- package/dist/bundle/{dispatch-GDAH4JHS.js → dispatch-5C6XNGEE.js} +8 -8
- package/dist/bundle/{dist-T7HMT675.js → dist-JN22LNLZ.js} +13 -13
- package/dist/bundle/{echarts-LEWTQO6H.js → echarts-WKTVUY3O.js} +2 -2
- package/dist/bundle/{embed-PUFE4BSQ.js → embed-AVKPYK4V.js} +6 -6
- package/dist/bundle/{embedder-3G4BQQ6X.js → embedder-PSV2E5TR.js} +9 -9
- package/dist/bundle/{failure-6COJAO7T.js → failure-YRGRZBTX.js} +2 -2
- package/dist/bundle/{first-run-FLXOC53U.js → first-run-YN4SF5RZ.js} +11 -11
- package/dist/bundle/first-screen-IJJZJP6Q.js +32 -0
- package/dist/bundle/{instructions-HGSXDCBT.js → instructions-W5SJW23S.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-GAPDLFWA.js → mcp-B25MZCS7.js} +2 -2
- package/dist/bundle/{node-5Z7PS4F5.js → node-BHBFRH6H.js} +2 -2
- package/dist/bundle/{node-sqlite-OAW7APIX.js → node-sqlite-7FHC3W5U.js} +5 -5
- package/dist/bundle/{oauth-ZFZWPAJN.js → oauth-ORPM6FLL.js} +7 -7
- package/dist/bundle/{open-ZQMBZVH4.js → open-AY5KLPWO.js} +4 -4
- package/dist/bundle/{openai-XT2RIXAK.js → openai-U7VALRI7.js} +14 -14
- package/dist/bundle/{process-VVEQIHPE.js → process-7AWARSC5.js} +1 -1
- package/dist/bundle/{program-RD3BBDNY.js → program-2W4J47LM.js} +468 -389
- package/dist/bundle/{prompt-PU7GE4Z4.js → prompt-STNX6JL7.js} +5 -5
- package/dist/bundle/{recognize-AG4A3KUK.js → recognize-2XWWTN6Y.js} +4 -4
- package/dist/bundle/{remote-D6TQ6T7F.js → remote-OIC32DKQ.js} +7 -7
- package/dist/bundle/{rerank-GO24HJPF.js → rerank-IFTSO576.js} +7 -7
- package/dist/bundle/{serve-WCHJAH6G.js → serve-P2D2AJAU.js} +9 -9
- package/dist/bundle/server-6D7W5Q4A.js +63 -0
- package/dist/bundle/{server-CAVNBG3P.js → server-DFEJBMXO.js} +38 -38
- package/dist/bundle/{sqlite-runtime-ANXC4AW2.js → sqlite-runtime-DD4Y35DQ.js} +5 -5
- package/dist/bundle/{state-EGJ66A62.js → state-XUSQMIKJ.js} +6 -6
- package/dist/bundle/{store-SBFA444C.js → store-EQC5DKSY.js} +13 -13
- package/dist/bundle/{store-OON7FCMQ.js → store-T3PKOLER.js} +15 -15
- package/dist/bundle/store-maintenance-command-7YQZXE4V.js +52 -0
- package/dist/commands/read.d.ts.map +1 -1
- package/dist/commands/read.js +1 -0
- package/dist/commands/read.js.map +1 -1
- package/dist/commands/server-search.d.ts.map +1 -1
- package/dist/commands/server-search.js +3 -2
- package/dist/commands/server-search.js.map +1 -1
- package/dist/oauth.d.ts +2 -5
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +4 -7
- package/dist/oauth.js.map +1 -1
- package/dist/providers.d.ts +8 -0
- package/dist/providers.d.ts.map +1 -1
- package/dist/providers.js +2 -0
- package/dist/providers.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/command-contract-CB5BII3S.js +0 -34
- package/dist/bundle/first-screen-VUZEDSQW.js +0 -32
- package/dist/bundle/server-5KJJ3D6P.js +0 -63
- package/dist/bundle/store-maintenance-command-UEOJLYMJ.js +0 -52
- /package/dist/bundle/{chunk-WJWLHLQ7.js → chunk-EKRM2QJB.js} +0 -0
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
renderMessages
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SYFBRZ5F.js";
|
|
6
6
|
import {
|
|
7
7
|
answerOf,
|
|
8
8
|
messengerContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KWHFDVAF.js";
|
|
10
10
|
import {
|
|
11
11
|
RULES_VERSION,
|
|
12
12
|
applyTaskRulesOnArrival,
|
|
@@ -23,19 +23,19 @@ import {
|
|
|
23
23
|
syncsOneChat,
|
|
24
24
|
typedQuery,
|
|
25
25
|
withQuery
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-N6YA4OQI.js";
|
|
27
27
|
import {
|
|
28
28
|
checkedOptions,
|
|
29
29
|
range
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-SUB4DRMA.js";
|
|
31
31
|
import {
|
|
32
32
|
messagesFor,
|
|
33
33
|
systemFor,
|
|
34
34
|
validateImages
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-VOGSDGVL.js";
|
|
36
36
|
import {
|
|
37
37
|
readSecret
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-64FN5JK6.js";
|
|
39
39
|
import {
|
|
40
40
|
Command,
|
|
41
41
|
LOCAL_READ,
|
|
@@ -62,23 +62,23 @@ import {
|
|
|
62
62
|
snakeKeys,
|
|
63
63
|
storeTable,
|
|
64
64
|
withoutProviderRefs
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-Z3TZTOR2.js";
|
|
66
66
|
import {
|
|
67
67
|
levelFor
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-SEL7SJCM.js";
|
|
69
69
|
import {
|
|
70
70
|
failureKey
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-M55XFZMG.js";
|
|
72
72
|
import {
|
|
73
73
|
holdLock,
|
|
74
74
|
lockPath,
|
|
75
75
|
releaseLock,
|
|
76
76
|
servingProfiles,
|
|
77
77
|
takeLock
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-RGM66WZ3.js";
|
|
79
79
|
import {
|
|
80
80
|
holdersOf
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-UHBCL66Y.js";
|
|
82
82
|
import {
|
|
83
83
|
MIGRATIONS,
|
|
84
84
|
drainNoteIndex,
|
|
@@ -105,26 +105,26 @@ import {
|
|
|
105
105
|
storeClients,
|
|
106
106
|
storeContents,
|
|
107
107
|
vectorIndexCounts
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-24MHYGNE.js";
|
|
109
109
|
import {
|
|
110
110
|
formatLocator,
|
|
111
111
|
parseLocator
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-TKFQ3GNY.js";
|
|
113
113
|
import {
|
|
114
114
|
queryFieldsOf
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-EUJTQY43.js";
|
|
116
116
|
import {
|
|
117
117
|
openCache
|
|
118
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-25N52S7U.js";
|
|
119
119
|
import {
|
|
120
120
|
storePath
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-HZ42NO25.js";
|
|
122
122
|
import {
|
|
123
123
|
Credentials,
|
|
124
124
|
pathsAreOverridden,
|
|
125
125
|
resolvePaths,
|
|
126
126
|
writeSecurely
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-ZISFMUYB.js";
|
|
128
128
|
import {
|
|
129
129
|
array,
|
|
130
130
|
boolean,
|
|
@@ -148,10 +148,10 @@ import {
|
|
|
148
148
|
transform,
|
|
149
149
|
trim,
|
|
150
150
|
union
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-NAIJNJZZ.js";
|
|
152
152
|
import {
|
|
153
153
|
CliError
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-L3KMVMRJ.js";
|
|
155
155
|
import {
|
|
156
156
|
__commonJS,
|
|
157
157
|
__name,
|
|
@@ -5491,11 +5491,11 @@ var require_liquid_node = __commonJS({
|
|
|
5491
5491
|
}
|
|
5492
5492
|
});
|
|
5493
5493
|
|
|
5494
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
5495
5495
|
import { chmodSync, constants, copyFileSync, existsSync as existsSync7, mkdirSync, realpathSync, renameSync as renameSync2, rmSync as rmSync2, statfsSync, statSync as statSync3, writeFileSync } from "node:fs";
|
|
5496
5496
|
import { dirname, resolve } from "node:path";
|
|
5497
5497
|
|
|
5498
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/sealed.js
|
|
5499
5499
|
import { createCipheriv, createDecipheriv, createHash, randomBytes, scrypt, timingSafeEqual } from "node:crypto";
|
|
5500
5500
|
import { closeSync, createReadStream, createWriteStream, existsSync, openSync, readSync, renameSync, rmSync, statSync } from "node:fs";
|
|
5501
5501
|
import { Transform } from "node:stream";
|
|
@@ -5602,7 +5602,7 @@ var unsealFile = /* @__PURE__ */ __name(async (from, to, password) => {
|
|
|
5602
5602
|
renameSync(pending, to);
|
|
5603
5603
|
}, "unsealFile");
|
|
5604
5604
|
|
|
5605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/compatibility.js
|
|
5606
5606
|
var SPEAKS = MIGRATIONS.at(-1)?.version ?? 0;
|
|
5607
5607
|
var fileSchemaOf = /* @__PURE__ */ __name((database) => {
|
|
5608
5608
|
const tracked = database.prepare("SELECT 1 FROM sqlite_master WHERE name = 'schema_migrations'").get();
|
|
@@ -5626,7 +5626,7 @@ var compatibilityOf = /* @__PURE__ */ __name((file2, migrations = MIGRATIONS) =>
|
|
|
5626
5626
|
};
|
|
5627
5627
|
}, "compatibilityOf");
|
|
5628
5628
|
|
|
5629
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5629
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/store/repair.js
|
|
5630
5630
|
import { createHash as createHash2 } from "node:crypto";
|
|
5631
5631
|
var COPY_MARK = "__repair_";
|
|
5632
5632
|
var COPY_NAME = /__repair_[0-9a-f]{8}(_\d+)?$/;
|
|
@@ -5880,7 +5880,7 @@ var deleteCopy = /* @__PURE__ */ __name((database, name) => {
|
|
|
5880
5880
|
return found;
|
|
5881
5881
|
}, "deleteCopy");
|
|
5882
5882
|
|
|
5883
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5883
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/store-info.js
|
|
5884
5884
|
import { existsSync as existsSync2, statSync as statSync2 } from "node:fs";
|
|
5885
5885
|
var pendingIfKnown = /* @__PURE__ */ __name((database) => database.prepare("SELECT 1 FROM pragma_table_info('messages') WHERE name = 'normalized_text'").get() ? pendingNormalization(database) : null, "pendingIfKnown");
|
|
5886
5886
|
var bytesOf = /* @__PURE__ */ __name((path) => existsSync2(path) ? statSync2(path).size : 0, "bytesOf");
|
|
@@ -5927,7 +5927,7 @@ var storeInfoCommand = /* @__PURE__ */ __name(() => annotate(new Command("info")
|
|
|
5927
5927
|
renderAnswer(this, outputFor(this), itemOf(answer));
|
|
5928
5928
|
}), "storeInfoCommand");
|
|
5929
5929
|
|
|
5930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5930
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/messenger/password.js
|
|
5931
5931
|
var ENCRYPT_OPTION = [
|
|
5932
5932
|
"--encrypt",
|
|
5933
5933
|
"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 +5946,7 @@ var passwordOf = /* @__PURE__ */ __name(async (command, { twice }) => {
|
|
|
5946
5946
|
return password;
|
|
5947
5947
|
}, "passwordOf");
|
|
5948
5948
|
|
|
5949
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/replies/rules.js
|
|
5950
5950
|
import { existsSync as existsSync3, readFileSync } from "node:fs";
|
|
5951
5951
|
import { join } from "node:path";
|
|
5952
5952
|
var REPLY_ACTIONS = ["reply", "task"];
|
|
@@ -6117,7 +6117,7 @@ var problem = /* @__PURE__ */ __name((issue) => {
|
|
|
6117
6117
|
}, "problem");
|
|
6118
6118
|
var broken = /* @__PURE__ */ __name((path, why) => new CliError("configuration_error", `the reply rules ${path} cannot be read (${why}) \u2014 fix the file`), "broken");
|
|
6119
6119
|
|
|
6120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/replies/state.js
|
|
6121
6121
|
import { existsSync as existsSync4, readFileSync as readFileSync2 } from "node:fs";
|
|
6122
6122
|
import { join as join2 } from "node:path";
|
|
6123
6123
|
var ANSWERED_KEPT = 1e3;
|
|
@@ -6170,7 +6170,7 @@ var recordReply = /* @__PURE__ */ __name((state, rule2, message, now) => {
|
|
|
6170
6170
|
}, "recordReply");
|
|
6171
6171
|
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
6172
|
|
|
6173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/replies/decide.js
|
|
6174
6174
|
var skip = /* @__PURE__ */ __name((why) => ({ skip: why }), "skip");
|
|
6175
6175
|
var decide = /* @__PURE__ */ __name((rule2, incoming, state, now) => {
|
|
6176
6176
|
const { message, chat, owner, sender } = incoming;
|
|
@@ -6276,7 +6276,7 @@ var filled = /* @__PURE__ */ __name((template2, senderName) => {
|
|
|
6276
6276
|
return template2.replaceAll("{firstName}", name.split(/\s+/)[0] ?? name).replaceAll("{name}", name);
|
|
6277
6277
|
}, "filled");
|
|
6278
6278
|
|
|
6279
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6279
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/replies/template.js
|
|
6280
6280
|
var import_liquidjs = __toESM(require_liquid_node(), 1);
|
|
6281
6281
|
var TEMPLATE_LIMITS = {
|
|
6282
6282
|
parse: 32768,
|
|
@@ -6436,7 +6436,7 @@ var renderReplyTemplate = /* @__PURE__ */ __name(async (reply, input) => {
|
|
|
6436
6436
|
}
|
|
6437
6437
|
}, "renderReplyTemplate");
|
|
6438
6438
|
|
|
6439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/replies/dry-run.js
|
|
6440
6440
|
var DRY_RUN_DAYS = 7;
|
|
6441
6441
|
var PAGE = 500;
|
|
6442
6442
|
var dryRun = /* @__PURE__ */ __name(async (store, account, rules, { since, until = Date.now(), only, audience, render }) => {
|
|
@@ -6550,7 +6550,7 @@ var storedSince = /* @__PURE__ */ __name(async (store, account, chat, since) =>
|
|
|
6550
6550
|
}
|
|
6551
6551
|
}, "storedSince");
|
|
6552
6552
|
|
|
6553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/embeddings/keys.js
|
|
6554
6554
|
var endpointKeyName = /* @__PURE__ */ __name((baseUrl) => {
|
|
6555
6555
|
const host = new URL(baseUrl).host;
|
|
6556
6556
|
return ["openai", "anthropic"].includes(host) ? `endpoint:${host}` : host;
|
|
@@ -6581,7 +6581,7 @@ var embeddingKeys = /* @__PURE__ */ __name((app, env = process.env, keyring) =>
|
|
|
6581
6581
|
};
|
|
6582
6582
|
}, "embeddingKeys");
|
|
6583
6583
|
|
|
6584
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6584
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/models/openai.js
|
|
6585
6585
|
var options = strictObject({
|
|
6586
6586
|
temperature: range(0, 2),
|
|
6587
6587
|
top_p: range(0, 1),
|
|
@@ -6630,7 +6630,7 @@ var openai = {
|
|
|
6630
6630
|
}, "complete")
|
|
6631
6631
|
};
|
|
6632
6632
|
|
|
6633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6633
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/models/index.js
|
|
6634
6634
|
var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
6635
6635
|
complete: /* @__PURE__ */ __name(async (request) => {
|
|
6636
6636
|
if (deps.signal?.aborted)
|
|
@@ -6645,7 +6645,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6645
6645
|
if (!adapter && target.provider === "openai")
|
|
6646
6646
|
adapter = openai;
|
|
6647
6647
|
if (!adapter && target.provider === "anthropic")
|
|
6648
|
-
adapter = (await import("./anthropic-
|
|
6648
|
+
adapter = (await import("./anthropic-MPARKCMJ.js")).anthropic;
|
|
6649
6649
|
if (!adapter)
|
|
6650
6650
|
throw new CliError("validation_error", `no model adapter for ${target.provider}`);
|
|
6651
6651
|
if (request.images !== void 0 && adapter.images !== true)
|
|
@@ -6686,7 +6686,7 @@ var modelGateway = /* @__PURE__ */ __name((deps) => ({
|
|
|
6686
6686
|
}, "complete")
|
|
6687
6687
|
}), "modelGateway");
|
|
6688
6688
|
|
|
6689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/replies/consents.js
|
|
6690
6690
|
import { existsSync as existsSync5, readFileSync as readFileSync3 } from "node:fs";
|
|
6691
6691
|
import { join as join3 } from "node:path";
|
|
6692
6692
|
var shape = strictObject({
|
|
@@ -6711,7 +6711,7 @@ var mayModelReply = /* @__PURE__ */ __name((path, provider, chat) => {
|
|
|
6711
6711
|
return consent.provider === provider && !consent.deniedChats.includes(chat);
|
|
6712
6712
|
}, "mayModelReply");
|
|
6713
6713
|
|
|
6714
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6714
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/replies/rendering.js
|
|
6715
6715
|
var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, options2 = {
|
|
6716
6716
|
ai: true
|
|
6717
6717
|
}) => async (rule2, message, chat, now) => {
|
|
@@ -6758,7 +6758,7 @@ var replyRenderer = /* @__PURE__ */ __name((app, profile, settings, env, warn, o
|
|
|
6758
6758
|
return result2;
|
|
6759
6759
|
}, "replyRenderer");
|
|
6760
6760
|
|
|
6761
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/replies/serve.js
|
|
6762
6762
|
var NOT_ALLOWED = "replies.send is not allow";
|
|
6763
6763
|
var NO_RULES = "no rules";
|
|
6764
6764
|
var ONLY_TASK = "opened a task, sent nothing";
|
|
@@ -6851,7 +6851,7 @@ var replyTo = /* @__PURE__ */ __name(async (deps, message) => {
|
|
|
6851
6851
|
return { skip: why };
|
|
6852
6852
|
}, "replyTo");
|
|
6853
6853
|
|
|
6854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6854
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-members.js
|
|
6855
6855
|
var FIRST_FETCH_MS = 6e4;
|
|
6856
6856
|
var DAY_MS = 864e5;
|
|
6857
6857
|
var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, firstMs = FIRST_FETCH_MS, everyMs = DAY_MS }) => {
|
|
@@ -6905,7 +6905,7 @@ var memberFetches = /* @__PURE__ */ __name(({ withStore, fetch: fetch2, warn, fi
|
|
|
6905
6905
|
};
|
|
6906
6906
|
}, "memberFetches");
|
|
6907
6907
|
|
|
6908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-notice.js
|
|
6909
6909
|
var record2 = /* @__PURE__ */ __name((context, app, severity, attributes) => recordLogFor(context.streams.diagnostic, app, { command: currentRun().command || "serve" })[severity](attributes), "record");
|
|
6910
6910
|
var noticeFor = /* @__PURE__ */ __name((context, app, severity = "warn") => ({ text, ...attributes }) => {
|
|
6911
6911
|
if (context.format === "pretty") {
|
|
@@ -6938,7 +6938,7 @@ var recordDiagnostics = /* @__PURE__ */ __name((context, app) => {
|
|
|
6938
6938
|
return context;
|
|
6939
6939
|
}, "recordDiagnostics");
|
|
6940
6940
|
|
|
6941
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6941
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-stems.js
|
|
6942
6942
|
var STEMS_EVERY_MS = 3e4;
|
|
6943
6943
|
var STEMS_SLICE_MS = 2e3;
|
|
6944
6944
|
var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY_MS, sliceMs = STEMS_SLICE_MS }) => {
|
|
@@ -6978,7 +6978,7 @@ var stemFills = /* @__PURE__ */ __name(({ withStore, warn, everyMs = STEMS_EVERY
|
|
|
6978
6978
|
};
|
|
6979
6979
|
}, "stemFills");
|
|
6980
6980
|
|
|
6981
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6981
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/messenger/message-items.js
|
|
6982
6982
|
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, one]) => one !== void 0)), "defined");
|
|
6983
6983
|
var attachmentItem = /* @__PURE__ */ __name((attachment) => defined({
|
|
6984
6984
|
kind: attachment.kind,
|
|
@@ -7073,7 +7073,7 @@ var viewOf = /* @__PURE__ */ __name((context, messenger) => ({
|
|
|
7073
7073
|
locale: messenger.app.locale
|
|
7074
7074
|
}), "viewOf");
|
|
7075
7075
|
|
|
7076
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7076
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-answers.js
|
|
7077
7077
|
var observed = /* @__PURE__ */ __name((value) => ({
|
|
7078
7078
|
value: value.value,
|
|
7079
7079
|
observed_at: value.observedAt,
|
|
@@ -7140,7 +7140,7 @@ var watchEventItem = /* @__PURE__ */ __name((value, account) => {
|
|
|
7140
7140
|
}
|
|
7141
7141
|
}, "watchEventItem");
|
|
7142
7142
|
|
|
7143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7143
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/messenger/watch-command.js
|
|
7144
7144
|
var watchCommand = /* @__PURE__ */ __name((messenger) => annotate(new Command("watch"), {
|
|
7145
7145
|
output: { entity: "watch_item" },
|
|
7146
7146
|
effects: REMOTE_READ,
|
|
@@ -7295,7 +7295,7 @@ var describe = /* @__PURE__ */ __name((event, render) => {
|
|
|
7295
7295
|
}
|
|
7296
7296
|
}, "describe");
|
|
7297
7297
|
|
|
7298
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7298
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/messenger/serve-command.js
|
|
7299
7299
|
var serveCommand = /* @__PURE__ */ __name((messenger) => {
|
|
7300
7300
|
const command = annotate(new Command("serve"), {
|
|
7301
7301
|
output: { entity: "serve_summary" },
|
|
@@ -7511,7 +7511,7 @@ var tasking = /* @__PURE__ */ __name((context, warn) => {
|
|
|
7511
7511
|
};
|
|
7512
7512
|
}, "tasking");
|
|
7513
7513
|
|
|
7514
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/messenger/store-tables-command.js
|
|
7515
7515
|
import { existsSync as existsSync6 } from "node:fs";
|
|
7516
7516
|
var PATH = "store tables list";
|
|
7517
7517
|
var STORE_TABLES_QUERY = {
|
|
@@ -7554,7 +7554,7 @@ var storeTablesCommand = /* @__PURE__ */ __name((messenger) => {
|
|
|
7554
7554
|
return tables;
|
|
7555
7555
|
}, "storeTablesCommand");
|
|
7556
7556
|
|
|
7557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7557
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/cli/messenger/store-maintenance-command.js
|
|
7558
7558
|
var SEARCH_INDEXES = ["messages_fts", "chats_fts", "identities_fts"];
|
|
7559
7559
|
var WORD_INDEX = "message_words";
|
|
7560
7560
|
var schemaOf = /* @__PURE__ */ __name((database) => {
|
|
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
CAPABILITY_STATEMENTS,
|
|
5
5
|
storeCapable
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-25N52S7U.js";
|
|
7
7
|
import {
|
|
8
8
|
importFrom
|
|
9
9
|
} from "./chunk-Y5E2WNWB.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
__name
|
|
12
12
|
} from "./chunk-ZVVMGPBJ.js";
|
|
13
13
|
|
|
14
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/sqlite-runtime.js
|
|
15
15
|
import { spawn, spawnSync } from "node:child_process";
|
|
16
16
|
import { readFileSync } from "node:fs";
|
|
17
17
|
import { dirname } from "node:path";
|
|
@@ -6,26 +6,27 @@ import {
|
|
|
6
6
|
agentArguments,
|
|
7
7
|
agentJson,
|
|
8
8
|
commandAvailability
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PTDJXPXG.js";
|
|
10
10
|
import {
|
|
11
11
|
failureContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JYVZDJNO.js";
|
|
13
13
|
import {
|
|
14
14
|
callerOf
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2FDROA4Q.js";
|
|
16
16
|
import {
|
|
17
|
+
QUERY_ARGUMENT,
|
|
17
18
|
lentConnection,
|
|
18
19
|
onlineDeps,
|
|
19
20
|
refuseLacking,
|
|
20
21
|
servicesFor,
|
|
21
22
|
storeModeDeps
|
|
22
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-N6YA4OQI.js";
|
|
23
24
|
import {
|
|
24
25
|
MAX_BUFFERED_INPUT
|
|
25
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JZMPDFM4.js";
|
|
26
27
|
import {
|
|
27
28
|
ENTITIES
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-EVG7MOAH.js";
|
|
29
30
|
import {
|
|
30
31
|
DEFAULT_OUTPUT_BYTES,
|
|
31
32
|
LOCAL_WRITE,
|
|
@@ -43,24 +44,27 @@ import {
|
|
|
43
44
|
sealed,
|
|
44
45
|
startRecording,
|
|
45
46
|
traceOf
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-Z3TZTOR2.js";
|
|
47
48
|
import {
|
|
48
49
|
authorityAllowed,
|
|
49
50
|
botApiAllowed,
|
|
50
51
|
keyForCommand,
|
|
51
52
|
levelFor,
|
|
52
53
|
readKeysForCommand
|
|
53
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-SEL7SJCM.js";
|
|
54
55
|
import {
|
|
55
56
|
currentCaller,
|
|
56
57
|
keepsSuccess,
|
|
57
58
|
runContextOf,
|
|
58
59
|
withCaller
|
|
59
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-M55XFZMG.js";
|
|
61
|
+
import {
|
|
62
|
+
queryDescription
|
|
63
|
+
} from "./chunk-EUJTQY43.js";
|
|
60
64
|
import {
|
|
61
65
|
captureStreams,
|
|
62
66
|
traceIdOf
|
|
63
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-ZISFMUYB.js";
|
|
64
68
|
import {
|
|
65
69
|
SNAKE_CASE,
|
|
66
70
|
array,
|
|
@@ -98,19 +102,19 @@ import {
|
|
|
98
102
|
unknown,
|
|
99
103
|
word,
|
|
100
104
|
writes
|
|
101
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-NAIJNJZZ.js";
|
|
102
106
|
import {
|
|
103
107
|
CliError,
|
|
104
108
|
errorCodes
|
|
105
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-L3KMVMRJ.js";
|
|
106
110
|
import {
|
|
107
111
|
__name
|
|
108
112
|
} from "./chunk-ZVVMGPBJ.js";
|
|
109
113
|
|
|
110
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
114
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
111
115
|
import { Readable } from "node:stream";
|
|
112
116
|
|
|
113
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
117
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/lint.js
|
|
114
118
|
var LINT_SEVERITIES = ["high", "medium", "low"];
|
|
115
119
|
var lintRuleSchema = strictObject({
|
|
116
120
|
id: word,
|
|
@@ -237,7 +241,7 @@ var overridesSchema = array(strictObject({
|
|
|
237
241
|
review_after: pipe(string(), isoDate("a date, YYYY-MM-DD"))
|
|
238
242
|
}));
|
|
239
243
|
|
|
240
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
244
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/audit.js
|
|
241
245
|
var auditRuleSchema = strictObject({ id: word, severity: picklist(LINT_SEVERITIES), summary: text });
|
|
242
246
|
var defineAuditRules = /* @__PURE__ */ __name((input) => parseRegistry("audit rules", array(auditRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineAuditRules");
|
|
243
247
|
var AUDIT_RULES = defineAuditRules([
|
|
@@ -346,7 +350,7 @@ var REQUIRED_ROOTS = defineRequiredRoots([
|
|
|
346
350
|
{ path: ["upgrade"], meaning: "updates the CLI" }
|
|
347
351
|
]);
|
|
348
352
|
|
|
349
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
353
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/fields.js
|
|
350
354
|
var fieldRuleSchema = strictObject({ id: word, rule: text });
|
|
351
355
|
var defineFieldRules = /* @__PURE__ */ __name((input) => parseRegistry("output field rules", array(fieldRuleSchema), input, (rules) => duplicates(rules.map((rule) => rule.id)).map((id) => `"${id}" is listed twice`)), "defineFieldRules");
|
|
352
356
|
var FIELD_RULES = defineFieldRules([
|
|
@@ -362,7 +366,7 @@ var FIELD_RULES = defineFieldRules([
|
|
|
362
366
|
}
|
|
363
367
|
]);
|
|
364
368
|
|
|
365
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
369
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/identifiers.js
|
|
366
370
|
var key = pipe(string(), regex(SNAKE_CASE, "a snake_case key"));
|
|
367
371
|
var identifierSchema = strictObject({ key, meaning: text, replaces: optional(array(key)) });
|
|
368
372
|
var defineIdentifiers = /* @__PURE__ */ __name((input) => parseRegistry("identifiers", array(identifierSchema), input, (identifiers) => {
|
|
@@ -384,7 +388,7 @@ var IDENTIFIERS = defineIdentifiers([
|
|
|
384
388
|
{ key: "trace_id", meaning: "the distributed trace a run belongs to, from `traceparent`" }
|
|
385
389
|
]);
|
|
386
390
|
|
|
387
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
391
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-calendar.js
|
|
388
392
|
var CALENDAR_FLAGS = [
|
|
389
393
|
{ name: "--end-time", value: "<time>", role: "value", type: "time", meaning: "when it ends" },
|
|
390
394
|
{
|
|
@@ -458,7 +462,7 @@ var CALENDAR_FLAGS = [
|
|
|
458
462
|
}
|
|
459
463
|
];
|
|
460
464
|
|
|
461
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
465
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-how.js
|
|
462
466
|
var HOW_FLAGS = [
|
|
463
467
|
{
|
|
464
468
|
name: "--limit",
|
|
@@ -1445,7 +1449,7 @@ var HOW_FLAGS = [
|
|
|
1445
1449
|
}
|
|
1446
1450
|
];
|
|
1447
1451
|
|
|
1448
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1452
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-mail.js
|
|
1449
1453
|
var MAIL_FLAGS = [
|
|
1450
1454
|
{
|
|
1451
1455
|
name: "--cc",
|
|
@@ -1469,7 +1473,7 @@ var MAIL_FLAGS = [
|
|
|
1469
1473
|
}
|
|
1470
1474
|
];
|
|
1471
1475
|
|
|
1472
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1476
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/flags-what.js
|
|
1473
1477
|
var WHAT_FLAGS = [
|
|
1474
1478
|
{
|
|
1475
1479
|
name: "--analysis-provider",
|
|
@@ -2467,7 +2471,7 @@ var WHAT_FLAGS = [
|
|
|
2467
2471
|
}
|
|
2468
2472
|
];
|
|
2469
2473
|
|
|
2470
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
2474
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/standards/vocabulary.js
|
|
2471
2475
|
var FLAG_TYPES = [
|
|
2472
2476
|
"switch",
|
|
2473
2477
|
"count",
|
|
@@ -2827,7 +2831,7 @@ var VOCABULARY = defineVocabulary({
|
|
|
2827
2831
|
flags: [...HOW_FLAGS, ...WHAT_FLAGS, ...CALENDAR_FLAGS, ...MAIL_FLAGS]
|
|
2828
2832
|
});
|
|
2829
2833
|
|
|
2830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2834
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/mcp/agent.js
|
|
2831
2835
|
var TYPES = new Map(VOCABULARY.flags.map((flag) => [flag.name, flag.type]));
|
|
2832
2836
|
var snake = /* @__PURE__ */ __name((name) => name.replaceAll("|", "_or_").replace(/[^a-z0-9]+/gi, "_"), "snake");
|
|
2833
2837
|
var longOf = /* @__PURE__ */ __name((option) => option.flags.match(/--[a-z0-9][a-z0-9-]*/)?.[0], "longOf");
|
|
@@ -2886,8 +2890,10 @@ var optionField = /* @__PURE__ */ __name((option, long, negated) => {
|
|
|
2886
2890
|
}, "argv")
|
|
2887
2891
|
};
|
|
2888
2892
|
}, "optionField");
|
|
2889
|
-
var argumentField = /* @__PURE__ */ __name((argument) => {
|
|
2890
|
-
const
|
|
2893
|
+
var argumentField = /* @__PURE__ */ __name((argument, query) => {
|
|
2894
|
+
const own = argument.description || argument.name;
|
|
2895
|
+
const about = query && argument.name === "query" ? own === QUERY_ARGUMENT ? queryDescription(query) : `${own}; ${queryDescription(query)}` : own;
|
|
2896
|
+
const one = argument.choices ? pipe(picklist(argument.choices), description(argument.description)) : text2(about);
|
|
2891
2897
|
return {
|
|
2892
2898
|
name: snake(argument.name),
|
|
2893
2899
|
required: argument.required,
|
|
@@ -2913,7 +2919,7 @@ var stdinField = /* @__PURE__ */ __name(({ name, description: description2, json
|
|
|
2913
2919
|
argv: /* @__PURE__ */ __name(() => [], "argv")
|
|
2914
2920
|
}), "stdinField");
|
|
2915
2921
|
var fieldsOf = /* @__PURE__ */ __name((info, { omit = [], offline = false, stdin }) => {
|
|
2916
|
-
const fields = info.arguments.map(argumentField);
|
|
2922
|
+
const fields = info.arguments.map((argument) => argumentField(argument, info.query));
|
|
2917
2923
|
const read = stdin?.(info.path);
|
|
2918
2924
|
if (read)
|
|
2919
2925
|
fields.push(stdinField(read));
|
|
@@ -3048,7 +3054,7 @@ var runCommandForAgent = /* @__PURE__ */ __name(async (program, path, input, ctx
|
|
|
3048
3054
|
}
|
|
3049
3055
|
}, "runCommandForAgent");
|
|
3050
3056
|
|
|
3051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3057
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/mcp/tool.js
|
|
3052
3058
|
var limit = optional(pipe(number(), integer(), minValue(1), maxValue(100), description("how many")));
|
|
3053
3059
|
var page = optional(pipe(number(), integer(), minValue(1), description("which page, from 1")));
|
|
3054
3060
|
var message = pipe(
|
|
@@ -3307,7 +3313,7 @@ var failed = /* @__PURE__ */ __name((error, errors, effects) => {
|
|
|
3307
3313
|
return mcpErrorResult(JSON.parse(agentJson(errorObjectOf(error, context))));
|
|
3308
3314
|
}, "failed");
|
|
3309
3315
|
|
|
3310
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/mcp/surface.js
|
|
3311
3317
|
import { randomUUID } from "node:crypto";
|
|
3312
3318
|
var MATCHES = 8;
|
|
3313
3319
|
var ANSWER = answerSchema();
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
QUERY_REASONS
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EUJTQY43.js";
|
|
6
6
|
import {
|
|
7
7
|
defineReasons
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NAIJNJZZ.js";
|
|
9
9
|
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.542.0_@wirecat+cli-base@0.72.0_commander@15.0.0_esbuild@0.28.2_type_30804e4648080c93f4901a09634b7e87/node_modules/@wirecat/cli-core/dist/errors/reasons.js
|
|
14
14
|
var validation = /* @__PURE__ */ __name((reason, message) => [reason, "validation_error", message], "validation");
|
|
15
15
|
var QUERY = [
|
|
16
16
|
["query.aborted", "the search was stopped before it finished"],
|
|
@@ -72,9 +72,19 @@ var OTHERS = [
|
|
|
72
72
|
validation("event.repeat-split", "the series cannot be split at this occurrence, or was split there already"),
|
|
73
73
|
validation("event.repeat-count", "a COUNT series is split only with a rule for its new part"),
|
|
74
74
|
validation("event.unmovable", "the provider keeps this kind of event on its calendar"),
|
|
75
|
+
validation("event.text-with-fields", "--text takes the whole event from its line, so no field option goes with it"),
|
|
76
|
+
validation("calendar.ambiguous", "two or more calendars have this name; name one by its id"),
|
|
77
|
+
validation("export.too-many", "the query finds more events than one export writes"),
|
|
78
|
+
validation("ics.not-icalendar", "the file is not iCalendar"),
|
|
79
|
+
validation("ics.no-events", "the file holds no event that can be imported"),
|
|
80
|
+
validation("ics.too-many", "the file holds more events than one import sends"),
|
|
81
|
+
validation("ics.too-large", "the file is larger than one import reads"),
|
|
75
82
|
["calendar.read-only", "permission_error", "the calendar takes no new events from this account"],
|
|
76
83
|
["calendar.unsynced", "not_found", "the calendar account has no synced calendar in the store"],
|
|
77
84
|
["calendar.sync-incomplete", "not_found", "a synced calendar's sync never finished or is mid-round"],
|
|
85
|
+
["calendar.no-upcoming", "not_found", "no upcoming meeting with other attendees is stored for this account"],
|
|
86
|
+
["chat.not-read", "not_found", "a chat shared with this person is not held whole in the store"],
|
|
87
|
+
["meetings.index-pending", "not_found", "some stored meetings are not indexed by person yet"],
|
|
78
88
|
["profile.locked", "permission_error", "a profile lock pins this process to its own account"],
|
|
79
89
|
["busy.offline", "permission_error", "calendars busy asks the provider; --offline was given"],
|
|
80
90
|
validation("busy.no-calendars", "no calendar syncs and no person was named, so there is nobody to ask"),
|
|
@@ -89,6 +99,7 @@ var OTHERS = [
|
|
|
89
99
|
["search.server-failed", "provider_unavailable", "the server did not answer a search"],
|
|
90
100
|
["search.server-timeout", "timeout", "the server did not answer within --server-time"],
|
|
91
101
|
["search.server-capped", "outcome_unknown", "the server found more than one search reads, or a branch was not sent"],
|
|
102
|
+
["search.server-too-large", "outcome_unknown", "a message the server found is too large to download during a search"],
|
|
92
103
|
validation("store.refused", "the local store refused the document text"),
|
|
93
104
|
["store.not-writable", "permission_error", "the message store cannot be written from this process"],
|
|
94
105
|
[
|
|
@@ -144,6 +155,7 @@ var OTHERS = [
|
|
|
144
155
|
validation("task.column", "the task beside which it moves is in another column than the status asked for"),
|
|
145
156
|
validation("task.dependency-cycle", "the task would depend on itself"),
|
|
146
157
|
validation("task.has-subtasks", "the task has subtasks; move or detach them before it moves to another project"),
|
|
158
|
+
validation("task.is-subtask", "a subtask moves to another project only when it is detached from its parent in the same write"),
|
|
147
159
|
validation("task.duplicate-candidates", "open tasks may be the same job: attach to one, or add it as new"),
|
|
148
160
|
validation("task.certainty-required", "an agent closes a task with its certainty, 0 to 1"),
|
|
149
161
|
["task.pair-decided", "permission_error", "the owner already decided the pair; an agent does not change it"],
|
|
@@ -215,7 +227,9 @@ var DETAILS = [
|
|
|
215
227
|
"operation_ids",
|
|
216
228
|
"text_limit",
|
|
217
229
|
"store_refused_in",
|
|
230
|
+
"subtasks",
|
|
218
231
|
"partial_output",
|
|
232
|
+
"parent",
|
|
219
233
|
"path",
|
|
220
234
|
"permission",
|
|
221
235
|
"person_ids",
|