@wirecat/cli-memo 0.131.33 → 0.131.35
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-I67AQBML.js → all-profiles-6666YYUZ.js} +9 -9
- package/dist/bundle/{anthropic-TAN7BXEI.js → anthropic-23OB7KWO.js} +6 -6
- package/dist/bundle/{app-server-BB6D3T5A.js → app-server-2S5OS3OH.js} +42 -42
- package/dist/bundle/auto-XDBIEURD.js +86 -0
- package/dist/bundle/{bun-UQEFISW2.js → bun-BNVO37ZD.js} +2 -2
- package/dist/bundle/{bun-sqlite-2QF3TO47.js → bun-sqlite-USZ27VKM.js} +5 -5
- package/dist/bundle/{chunk-5M4CW3PM.js → chunk-26PVWAKE.js} +374 -323
- package/dist/bundle/{chunk-KJBKP66D.js → chunk-2DTUMEN2.js} +4 -4
- package/dist/bundle/{chunk-7OSMWDV3.js → chunk-2PFOLWD3.js} +3 -3
- package/dist/bundle/{chunk-TZ7WDQPD.js → chunk-2R2Z2VWL.js} +20 -20
- package/dist/bundle/{chunk-EN3D3M3X.js → chunk-2Y4UU4DB.js} +3 -3
- package/dist/bundle/{chunk-NAKJLG6G.js → chunk-3ZZ5OCUO.js} +6 -6
- package/dist/bundle/{chunk-ABORNS53.js → chunk-4OR4HFSL.js} +8 -8
- package/dist/bundle/{chunk-HU2UNNN5.js → chunk-6D47X4KD.js} +1 -1
- package/dist/bundle/{chunk-LUX5CPKS.js → chunk-6H6EXCZY.js} +1 -1
- package/dist/bundle/{chunk-P7AWDFQW.js → chunk-736NNFPY.js} +1 -1
- package/dist/bundle/{chunk-OGOMIZVL.js → chunk-AYIUZUGD.js} +1 -1
- package/dist/bundle/{chunk-3DDGDOTM.js → chunk-BHDNHN55.js} +8 -8
- package/dist/bundle/{chunk-N75EWKKC.js → chunk-BU4LJSW2.js} +1 -1
- package/dist/bundle/{chunk-5DEHFWR4.js → chunk-C2XCIZND.js} +2 -2
- package/dist/bundle/{chunk-KV4267S4.js → chunk-CID4MNRQ.js} +1 -1
- package/dist/bundle/{chunk-AP3AG2BB.js → chunk-CLHGYKYZ.js} +5 -5
- package/dist/bundle/{chunk-RRLIMG4U.js → chunk-CMMKWXFG.js} +35 -35
- package/dist/bundle/{chunk-LDEPGWLS.js → chunk-DCBBLYCI.js} +29 -29
- package/dist/bundle/{chunk-JCFO4LQL.js → chunk-DMU5PAKY.js} +1 -1
- package/dist/bundle/{chunk-BFLYYQZ7.js → chunk-DMUIMBCE.js} +4 -4
- package/dist/bundle/{chunk-MI6OKBKQ.js → chunk-DQ66H456.js} +4 -4
- package/dist/bundle/{chunk-X5WJDJ7B.js → chunk-DYMUJFDK.js} +14 -14
- package/dist/bundle/{chunk-6MDFXQ3P.js → chunk-EIYLAELT.js} +343 -312
- package/dist/bundle/{chunk-SN3VTCKM.js → chunk-FXG3SUIQ.js} +13 -13
- package/dist/bundle/{chunk-3TEBUFO4.js → chunk-FYT6A3UY.js} +1 -1
- package/dist/bundle/{chunk-QMK5MB3I.js → chunk-GAWGZN4F.js} +3 -3
- package/dist/bundle/{chunk-LJZAVL4S.js → chunk-GLFFCRRX.js} +2 -2
- package/dist/bundle/{chunk-5JAYP233.js → chunk-GNLCVNP7.js} +9 -9
- package/dist/bundle/{chunk-SLY3522P.js → chunk-I55VXEI2.js} +4 -4
- package/dist/bundle/{chunk-536BN5HJ.js → chunk-ICBWD2OL.js} +1 -1
- package/dist/bundle/{chunk-FQ23ENBP.js → chunk-IKDHJLSH.js} +277 -277
- package/dist/bundle/{chunk-JOUN3RQQ.js → chunk-JIWQNA2J.js} +168 -184
- package/dist/bundle/{chunk-I7PL5WX2.js → chunk-JY34MQW4.js} +4 -4
- package/dist/bundle/{chunk-GUCICZ5E.js → chunk-L3SMTWCF.js} +7 -7
- package/dist/bundle/{chunk-WSSMVWI6.js → chunk-L7AB7Y4Z.js} +46 -46
- package/dist/bundle/{chunk-YGKZOBRU.js → chunk-LBDMVVVW.js} +12 -12
- package/dist/bundle/{chunk-YPF6OS37.js → chunk-LER7G4XY.js} +1 -1
- package/dist/bundle/{chunk-PI5XHH3B.js → chunk-LQHW4G6G.js} +6 -6
- package/dist/bundle/{chunk-DUQGOBGY.js → chunk-ME5RGIHV.js} +11 -11
- package/dist/bundle/{chunk-3CVPUL6V.js → chunk-MMRM6ZMM.js} +2 -2
- package/dist/bundle/{chunk-S6HHL43A.js → chunk-MNKCFCI7.js} +2 -2
- package/dist/bundle/{chunk-BUYST3RY.js → chunk-N2Y6FTPK.js} +2 -2
- package/dist/bundle/{chunk-2Y2UWMJX.js → chunk-NYELWBUA.js} +6 -6
- package/dist/bundle/{chunk-YBSILL43.js → chunk-OCIE3POS.js} +6 -6
- package/dist/bundle/{chunk-BT6ZZUXC.js → chunk-PYQU4GLK.js} +64 -64
- package/dist/bundle/{chunk-FZXOHGOA.js → chunk-RUZOQ7QN.js} +4 -4
- package/dist/bundle/{chunk-EB2IULWB.js → chunk-RZ54DSVU.js} +2 -2
- package/dist/bundle/{chunk-4BDZUM4Z.js → chunk-SKBMXSQ3.js} +2 -2
- package/dist/bundle/{chunk-L5XW7SRP.js → chunk-SKVRUW57.js} +2 -2
- package/dist/bundle/{chunk-NOBWIWEE.js → chunk-SMJAJWYW.js} +3 -3
- package/dist/bundle/{chunk-G2BB5WY5.js → chunk-SN63VOE6.js} +8 -8
- package/dist/bundle/{chunk-2S5YZCD4.js → chunk-SRHG24V7.js} +4 -4
- package/dist/bundle/{chunk-AFCZMG3T.js → chunk-T3AUEF46.js} +22 -22
- package/dist/bundle/{chunk-PVKETTTH.js → chunk-URQ7ZL5K.js} +10 -10
- package/dist/bundle/{chunk-MZMKZ3FS.js → chunk-V5N65VRU.js} +9 -9
- package/dist/bundle/{chunk-MF2IXW4D.js → chunk-VJSWU4JX.js} +3 -3
- package/dist/bundle/{chunk-BSPNSDJR.js → chunk-VMXESPNG.js} +7 -7
- package/dist/bundle/{chunk-R37MXUSP.js → chunk-VYYPW7YP.js} +31 -23
- package/dist/bundle/{chunk-IT5OORGL.js → chunk-WIK6SGHZ.js} +2 -2
- package/dist/bundle/{chunk-UMWPJXNA.js → chunk-WRUD4OYQ.js} +5 -5
- package/dist/bundle/{chunk-KTGIARY4.js → chunk-XLKJSFQN.js} +2 -2
- package/dist/bundle/{chunk-62H5HS77.js → chunk-XZPE2E3O.js} +8 -8
- package/dist/bundle/{chunk-XBIPSSKI.js → chunk-Y5CAKD4X.js} +4 -4
- package/dist/bundle/{chunk-KBSN3KOJ.js → chunk-YGW3JZVB.js} +22 -22
- package/dist/bundle/command-contract-TBZCPYWZ.js +32 -0
- package/dist/bundle/{decode-AC2QFP22.js → decode-RMAOEVTY.js} +5 -5
- package/dist/bundle/{dispatch-CU5KGRQL.js → dispatch-MLRETSNQ.js} +8 -8
- package/dist/bundle/{echarts-2LGYCSJM.js → echarts-R2MI4OEU.js} +2 -2
- package/dist/bundle/{embed-5G5NJRTM.js → embed-BG2XPLWM.js} +6 -6
- package/dist/bundle/{embedder-AWGIIEIK.js → embedder-65SA34CZ.js} +9 -9
- package/dist/bundle/{entry-J2G7NST5.js → entry-DX3D4TWF.js} +7 -7
- package/dist/bundle/failure-76A5ZD6Y.js +66 -0
- package/dist/bundle/{failure-TUXXI6JT.js → failure-UJBGB2GP.js} +2 -2
- package/dist/bundle/{first-run-CIE4REGV.js → first-run-ZUQRYWEZ.js} +11 -11
- package/dist/bundle/first-screen-O5X3OT77.js +30 -0
- package/dist/bundle/{instructions-5236MVDG.js → instructions-ZDWGTLMU.js} +1 -1
- package/dist/bundle/mcp-B5CUHAKS.js +90 -0
- package/dist/bundle/{mcp-PPVOM4SE.js → mcp-YMXA6IH6.js} +2 -2
- package/dist/bundle/memo.js +16 -16
- package/dist/bundle/{node-7746MVI2.js → node-43BSSPFC.js} +2 -2
- package/dist/bundle/{node-sqlite-2JD5RF5A.js → node-sqlite-RPWFR6H3.js} +6 -6
- package/dist/bundle/{oauth-BUMW77DB.js → oauth-AYAADVSS.js} +7 -7
- package/dist/bundle/{open-CXUGW7QC.js → open-XEZ5CPLR.js} +5 -5
- package/dist/bundle/{openai-ORFEPFYD.js → openai-SQS7OBEI.js} +10 -10
- package/dist/bundle/{process-JXXYNYHP.js → process-HJWMNCUC.js} +1 -1
- package/dist/bundle/{program-4RYVZYD2.js → program-RQO3ZNVL.js} +89 -86
- package/dist/bundle/{prompt-EHLY4L77.js → prompt-STQZGLH7.js} +5 -5
- package/dist/bundle/{recognize-ES7MH57V.js → recognize-HJ6G4OWB.js} +4 -4
- package/dist/bundle/{remote-EZ76X2VI.js → remote-HDTQYFBP.js} +7 -7
- package/dist/bundle/{rerank-CDIZ6AA6.js → rerank-GBKN7RN4.js} +7 -7
- package/dist/bundle/{serve-YRSGBTJY.js → serve-KPTYHWUY.js} +9 -9
- package/dist/bundle/{server-MW5247KA.js → server-ASCI46TB.js} +57 -57
- package/dist/bundle/server-DJVWUOO7.js +61 -0
- package/dist/bundle/server-TEOK5SHM.js +48 -0
- package/dist/bundle/{state-S6A5VAWR.js → state-22MNHAQY.js} +6 -6
- package/dist/bundle/{store-O5CDNS3U.js → store-R7QBCWWM.js} +13 -13
- package/dist/bundle/store-maintenance-command-BZXFY2NT.js +48 -0
- package/dist/bundle/update-I5HTAMBY.js +69 -0
- package/dist/examples.d.ts.map +1 -1
- package/dist/examples.js +5 -1
- package/dist/examples.js.map +1 -1
- package/dist/knowledge/command.d.ts.map +1 -1
- package/dist/knowledge/command.js +23 -8
- package/dist/knowledge/command.js.map +1 -1
- package/dist/knowledge/project-status-command.d.ts.map +1 -1
- package/dist/knowledge/project-status-command.js +12 -19
- package/dist/knowledge/project-status-command.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/auto-6555QOPH.js +0 -86
- package/dist/bundle/command-contract-LRGVHRDS.js +0 -32
- package/dist/bundle/failure-7SDDOWOC.js +0 -66
- package/dist/bundle/first-screen-PLNL6V5J.js +0 -30
- package/dist/bundle/mcp-IRYWZZMF.js +0 -90
- package/dist/bundle/server-EUYRPM4X.js +0 -48
- package/dist/bundle/server-OHIH2CMF.js +0 -61
- package/dist/bundle/store-maintenance-command-3OFVJT4R.js +0 -48
- package/dist/bundle/update-RC5CLYFY.js +0 -69
- /package/dist/bundle/{chunk-JB5P5WSQ.js → chunk-AT5Y62SD.js} +0 -0
- /package/dist/bundle/{chunk-LU3WKZBA.js → chunk-QMNLI4NV.js} +0 -0
|
@@ -24,19 +24,19 @@ import {
|
|
|
24
24
|
serverSearchOptions,
|
|
25
25
|
summaryOf,
|
|
26
26
|
unansweredHours
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-26PVWAKE.js";
|
|
28
28
|
import {
|
|
29
29
|
MAIL_HIT_UNTRUSTED,
|
|
30
30
|
messagesAnswer,
|
|
31
31
|
offsetOf,
|
|
32
32
|
shownOf
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-T3AUEF46.js";
|
|
34
34
|
import {
|
|
35
35
|
messageItem
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-L7AB7Y4Z.js";
|
|
37
37
|
import {
|
|
38
38
|
knownPermissionKeys
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-YGW3JZVB.js";
|
|
40
40
|
import {
|
|
41
41
|
AGENDA_DEFAULTS,
|
|
42
42
|
DEFAULT_BACKEND,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
sourceKey,
|
|
60
60
|
typedQuery,
|
|
61
61
|
withQuery
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-EIYLAELT.js";
|
|
63
63
|
import {
|
|
64
64
|
Command,
|
|
65
65
|
FETCH,
|
|
@@ -95,11 +95,11 @@ import {
|
|
|
95
95
|
untrusted,
|
|
96
96
|
withSettingDefaults,
|
|
97
97
|
withoutSetting
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-JIWQNA2J.js";
|
|
99
99
|
import {
|
|
100
100
|
mailHolderVariable,
|
|
101
101
|
readOnlyLockOf
|
|
102
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-N2Y6FTPK.js";
|
|
103
103
|
import {
|
|
104
104
|
DEFAULT_DECISION_POLICY,
|
|
105
105
|
MESSAGE_PARSING,
|
|
@@ -110,19 +110,19 @@ import {
|
|
|
110
110
|
parseReference,
|
|
111
111
|
queryFilter,
|
|
112
112
|
validateFields
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-IKDHJLSH.js";
|
|
114
114
|
import {
|
|
115
115
|
dateRange,
|
|
116
116
|
defineQuery,
|
|
117
117
|
parseLucene,
|
|
118
118
|
queryFieldsOf,
|
|
119
119
|
timezoneOf
|
|
120
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-PYQU4GLK.js";
|
|
121
121
|
import {
|
|
122
122
|
configFilePath,
|
|
123
123
|
resolvePaths,
|
|
124
124
|
saveConfigFile
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-2R2Z2VWL.js";
|
|
126
126
|
import {
|
|
127
127
|
array,
|
|
128
128
|
boolean,
|
|
@@ -144,10 +144,10 @@ import {
|
|
|
144
144
|
string,
|
|
145
145
|
union,
|
|
146
146
|
unknown
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-SN63VOE6.js";
|
|
148
148
|
import {
|
|
149
149
|
CliError
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-RZ54DSVU.js";
|
|
151
151
|
import {
|
|
152
152
|
__commonJS,
|
|
153
153
|
__name,
|
|
@@ -9891,7 +9891,7 @@ var require_cjs = __commonJS({
|
|
|
9891
9891
|
}
|
|
9892
9892
|
});
|
|
9893
9893
|
|
|
9894
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9894
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/attachments.js
|
|
9895
9895
|
var MAX_ATTACHMENT_CHARS = 2e5;
|
|
9896
9896
|
var DEFAULT_ATTACHMENT_POLICY = { read: true, maxBytes: 10 * 1024 * 1024 };
|
|
9897
9897
|
var POLICY_SKIPS = ["not-read", "too-large"];
|
|
@@ -9930,7 +9930,7 @@ var readAttachments = /* @__PURE__ */ __name(async (mail, messageId, { loadEngin
|
|
|
9930
9930
|
return files;
|
|
9931
9931
|
}, "readAttachments");
|
|
9932
9932
|
|
|
9933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/read.js
|
|
9934
9934
|
var lowerSuspicious = /* @__PURE__ */ __name((items, suspicious) => [
|
|
9935
9935
|
...items.filter((item) => !suspicious(item)),
|
|
9936
9936
|
...items.filter(suspicious)
|
|
@@ -10017,11 +10017,11 @@ var attachmentsText = /* @__PURE__ */ __name((hit) => (hit.attachments ?? []).ma
|
|
|
10017
10017
|
${file.text.replace(/\n/g, "\n ")}`;
|
|
10018
10018
|
}).join("\n"), "attachmentsText");
|
|
10019
10019
|
|
|
10020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/bulk.js
|
|
10021
10021
|
var BULK = "bulk";
|
|
10022
10022
|
var bulkBox = { externalId: "memo:bulk", name: "bulk", kind: BULK };
|
|
10023
10023
|
|
|
10024
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/email-input.js
|
|
10025
10025
|
var sentAtOf = /* @__PURE__ */ __name((date, receivedAt) => {
|
|
10026
10026
|
const sent = date === null ? Number.NaN : Date.parse(date);
|
|
10027
10027
|
return Number.isNaN(sent) ? Date.parse(receivedAt) : sent;
|
|
@@ -10041,7 +10041,7 @@ var parsedEmail = /* @__PURE__ */ __name((mail, item, header, address) => ({
|
|
|
10041
10041
|
outgoing: mail.from === null ? null : mail.from.email === address
|
|
10042
10042
|
}), "parsedEmail");
|
|
10043
10043
|
|
|
10044
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10044
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/score.js
|
|
10045
10045
|
var import_disposable_email_domains_js = __toESM(require_dist2(), 1);
|
|
10046
10046
|
var import_tldts = __toESM(require_cjs(), 1);
|
|
10047
10047
|
var WEIGHTS = {
|
|
@@ -10149,7 +10149,7 @@ var scoreGroup = /* @__PURE__ */ __name((items, context) => {
|
|
|
10149
10149
|
return { score: kept.reduce((sum, signal) => sum + WEIGHTS[signal], 0), signals: kept };
|
|
10150
10150
|
}, "scoreGroup");
|
|
10151
10151
|
|
|
10152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10152
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/presets.js
|
|
10153
10153
|
var PRESETS = {
|
|
10154
10154
|
social: {
|
|
10155
10155
|
about: "notifications from social networks",
|
|
@@ -10241,7 +10241,7 @@ var presetMatches = /* @__PURE__ */ __name((name, facts) => {
|
|
|
10241
10241
|
return false;
|
|
10242
10242
|
}, "presetMatches");
|
|
10243
10243
|
|
|
10244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10244
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/probe.js
|
|
10245
10245
|
var share = /* @__PURE__ */ __name((part, whole) => Math.round(part / whole * 100) / 100, "share");
|
|
10246
10246
|
var isSent = /* @__PURE__ */ __name((item) => item.labels?.includes("Sent") || /(^|\/)sent\b/i.test(item.folder ?? ""), "isSent");
|
|
10247
10247
|
var groupKey = /* @__PURE__ */ __name((headers) => headers.listId === void 0 ? `from:${headers.from}` : `list:${headers.listId}`, "groupKey");
|
|
@@ -10309,7 +10309,7 @@ var probeMail = /* @__PURE__ */ __name((items, limit, ages = /* @__PURE__ */ new
|
|
|
10309
10309
|
};
|
|
10310
10310
|
}, "probeMail");
|
|
10311
10311
|
|
|
10312
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10312
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/facts.js
|
|
10313
10313
|
var factsOf = /* @__PURE__ */ __name((listed2, rules, ages = /* @__PURE__ */ new Map()) => {
|
|
10314
10314
|
const grouped = rules.some(({ match }) => match.score_at_least !== void 0 || match.preset !== void 0);
|
|
10315
10315
|
if (!grouped)
|
|
@@ -15580,7 +15580,7 @@ var PostalMime = class _PostalMime {
|
|
|
15580
15580
|
}
|
|
15581
15581
|
};
|
|
15582
15582
|
|
|
15583
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/headers.js
|
|
15584
15584
|
var unfold = /* @__PURE__ */ __name((text2) => text2.replace(/\r?\n[ \t]+/g, " "), "unfold");
|
|
15585
15585
|
var field = /* @__PURE__ */ __name((unfolded, name) => new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "im").exec(unfolded)?.[1], "field");
|
|
15586
15586
|
var fieldsOf = /* @__PURE__ */ __name((unfolded, name) => [...unfolded.matchAll(new RegExp(`^${name}:[ \\t]*(.*?)\\r?$`, "gim"))].map(([, value]) => value), "fieldsOf");
|
|
@@ -15627,7 +15627,7 @@ var mailHeadersOf = /* @__PURE__ */ __name((raw) => {
|
|
|
15627
15627
|
};
|
|
15628
15628
|
}, "mailHeadersOf");
|
|
15629
15629
|
|
|
15630
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/parse.js
|
|
15631
15631
|
var MAX_BODY_CHARS = 1e6;
|
|
15632
15632
|
var MAX_ATTACHMENTS = 50;
|
|
15633
15633
|
var BRACKETED_ID = /<[^<>\s]+>/g;
|
|
@@ -15692,13 +15692,13 @@ var parseMail = /* @__PURE__ */ __name(async (raw, maxBodyChars = MAX_BODY_CHARS
|
|
|
15692
15692
|
};
|
|
15693
15693
|
}, "parseMail");
|
|
15694
15694
|
|
|
15695
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/partial.js
|
|
15696
15696
|
var PARTIAL = "partial";
|
|
15697
15697
|
|
|
15698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/account-key.js
|
|
15699
15699
|
var mailAccountKey = /* @__PURE__ */ __name((address) => ({ provider: "email", account: address.toLowerCase() }), "mailAccountKey");
|
|
15700
15700
|
|
|
15701
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15701
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/rule-stored.js
|
|
15702
15702
|
var ACTION_OF = { full: "keep", envelope: "envelope", skip: "skip" };
|
|
15703
15703
|
var KINDS = {
|
|
15704
15704
|
from: "string",
|
|
@@ -15767,7 +15767,7 @@ var storedMailRuleSet = /* @__PURE__ */ __name(async (store, account, query) =>
|
|
|
15767
15767
|
}, "storedMailRuleSet");
|
|
15768
15768
|
var storedMailRules = /* @__PURE__ */ __name(async (store, account, query) => (await storedMailRuleSet(store, account, query)).rules, "storedMailRules");
|
|
15769
15769
|
|
|
15770
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15770
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/rules.js
|
|
15771
15771
|
var DAY_MS2 = 24 * 60 * 60 * 1e3;
|
|
15772
15772
|
var domainOf = /* @__PURE__ */ __name((address) => address.slice(address.lastIndexOf("@") + 1), "domainOf");
|
|
15773
15773
|
var domainMatches = /* @__PURE__ */ __name((wanted2, sender) => {
|
|
@@ -15839,7 +15839,7 @@ var tagsOf = /* @__PURE__ */ __name((rules, facts) => {
|
|
|
15839
15839
|
}, "tagsOf");
|
|
15840
15840
|
var conditionKeys = /* @__PURE__ */ __name((match) => Object.keys(match).filter((key) => match[key] !== void 0).sort(), "conditionKeys");
|
|
15841
15841
|
|
|
15842
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/rule-input.js
|
|
15843
15843
|
var STORE_ACTION = { keep: "full", envelope: "envelope", skip: "skip" };
|
|
15844
15844
|
var LOWER = ["from", "domain", "list_id", "subject"];
|
|
15845
15845
|
var conditionsOf = /* @__PURE__ */ __name((match) => Object.fromEntries(conditionKeys(match).map((key) => {
|
|
@@ -15869,7 +15869,7 @@ var ruleInput = /* @__PURE__ */ __name((rule, source = rule.source ?? "owner") =
|
|
|
15869
15869
|
decidedAt: decidedAtOf(rule.decided_at)
|
|
15870
15870
|
}), "ruleInput");
|
|
15871
15871
|
|
|
15872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15872
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/rule-tags.js
|
|
15873
15873
|
var reuseOf = /* @__PURE__ */ __name((error) => {
|
|
15874
15874
|
const { details } = error;
|
|
15875
15875
|
return details?.reason === "tag-review.required" ? details.candidates?.[0]?.name : void 0;
|
|
@@ -15930,7 +15930,7 @@ var settleRuleTags = /* @__PURE__ */ __name(async (store, accountId, rules, outc
|
|
|
15930
15930
|
}
|
|
15931
15931
|
}, "settleRuleTags");
|
|
15932
15932
|
|
|
15933
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15933
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/server-query.js
|
|
15934
15934
|
var DAY = 864e5;
|
|
15935
15935
|
var empty = /* @__PURE__ */ __name(() => ({ words: [], from: [], to: [], cc: [], subject: [], body: [] }), "empty");
|
|
15936
15936
|
var narrows = /* @__PURE__ */ __name((criteria) => criteria.words.length + criteria.from.length + criteria.to.length + criteria.cc.length + criteria.subject.length + criteria.body.length > 0 || criteria.since !== void 0 || criteria.before !== void 0 || criteria.seen !== void 0 || criteria.flagged !== void 0, "narrows");
|
|
@@ -16003,7 +16003,7 @@ var mailCriteriaOf = /* @__PURE__ */ __name((text2, { exact, timezone } = {}) =>
|
|
|
16003
16003
|
};
|
|
16004
16004
|
}, "mailCriteriaOf");
|
|
16005
16005
|
|
|
16006
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16006
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/server-search.js
|
|
16007
16007
|
var refusal = {
|
|
16008
16008
|
unsupported: "this mailbox's server cannot be searched \u2014 use --backend archive",
|
|
16009
16009
|
offline: "--backend server needs the network \u2014 not with --offline",
|
|
@@ -16218,7 +16218,7 @@ var searchMailServer = /* @__PURE__ */ __name(async (store, mailbox, access, req
|
|
|
16218
16218
|
return { report, sources };
|
|
16219
16219
|
}, "searchMailServer");
|
|
16220
16220
|
|
|
16221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/cli/marks.js
|
|
16222
16222
|
var iso = /* @__PURE__ */ __name((ms) => ms === null ? null : new Date(ms).toISOString(), "iso");
|
|
16223
16223
|
var mailMark = strictObject({
|
|
16224
16224
|
holder: string(),
|
|
@@ -16313,7 +16313,7 @@ var resetMarkCommand = /* @__PURE__ */ __name((mail) => answerEntity(annotate(ne
|
|
|
16313
16313
|
});
|
|
16314
16314
|
}), "resetMarkCommand");
|
|
16315
16315
|
|
|
16316
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16316
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/review.js
|
|
16317
16317
|
var REVIEW_THREADS = 50;
|
|
16318
16318
|
var REVIEW_PER_THREAD = 50;
|
|
16319
16319
|
var OWED_DAYS = 30;
|
|
@@ -16411,7 +16411,7 @@ var reviewMail = /* @__PURE__ */ __name(async (store, mailbox, options) => {
|
|
|
16411
16411
|
};
|
|
16412
16412
|
}, "reviewMail");
|
|
16413
16413
|
|
|
16414
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/cli/review.js
|
|
16415
16415
|
var DAY2 = 864e5;
|
|
16416
16416
|
var REVIEW_UNTRUSTED = [...SUMMARY_UNTRUSTED, ...MAIL_HIT_UNTRUSTED];
|
|
16417
16417
|
var MAIL_REVIEW_QUERY = defineQuery({
|
|
@@ -16659,7 +16659,7 @@ an agent over MCP, and each scheduled run.`).action(async function(query) {
|
|
|
16659
16659
|
saved?.save(found.checked ?? {}, found.complete ? { through: found.until } : {});
|
|
16660
16660
|
}), "mailReviewCommand");
|
|
16661
16661
|
|
|
16662
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/cli/bulk-settings.js
|
|
16663
16663
|
var listed = /* @__PURE__ */ __name((words2) => words2.join(", "), "listed");
|
|
16664
16664
|
var MAIL_BULK_SETTINGS = [
|
|
16665
16665
|
{
|
|
@@ -16715,7 +16715,7 @@ var bulkTriageOf = /* @__PURE__ */ __name((config) => {
|
|
|
16715
16715
|
};
|
|
16716
16716
|
}, "bulkTriageOf");
|
|
16717
16717
|
|
|
16718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mail/cli/index.js
|
|
16719
16719
|
var absentAccount = /* @__PURE__ */ __name((error) => {
|
|
16720
16720
|
if (error instanceof CliError && error.code === "not_found")
|
|
16721
16721
|
return void 0;
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
tool,
|
|
21
21
|
toolKey,
|
|
22
22
|
toolsFromCommands
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-VYYPW7YP.js";
|
|
24
24
|
import {
|
|
25
25
|
CHART_KINDS,
|
|
26
26
|
CHART_SIZE,
|
|
@@ -33,24 +33,24 @@ import {
|
|
|
33
33
|
registerPrompts,
|
|
34
34
|
stdinFieldOf,
|
|
35
35
|
syncsFirst
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-T3AUEF46.js";
|
|
37
37
|
import {
|
|
38
38
|
mcpUrlOf
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-SKVRUW57.js";
|
|
40
40
|
import {
|
|
41
41
|
agentJson,
|
|
42
42
|
skillResource
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-DYMUJFDK.js";
|
|
44
44
|
import {
|
|
45
45
|
instructions
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-FYT6A3UY.js";
|
|
47
47
|
import {
|
|
48
48
|
answeredWire
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-AYIUZUGD.js";
|
|
50
50
|
import {
|
|
51
51
|
callerOf,
|
|
52
52
|
callingAgent
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-GLFFCRRX.js";
|
|
54
54
|
import {
|
|
55
55
|
StdioServerTransport,
|
|
56
56
|
serveStdio
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
import {
|
|
63
63
|
connectedFor,
|
|
64
64
|
guardFor
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-YGW3JZVB.js";
|
|
66
66
|
import {
|
|
67
67
|
capability,
|
|
68
68
|
dateWindow,
|
|
@@ -71,10 +71,10 @@ import {
|
|
|
71
71
|
servicesFor,
|
|
72
72
|
storedDeps,
|
|
73
73
|
wholeList
|
|
74
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-EIYLAELT.js";
|
|
75
75
|
import {
|
|
76
76
|
findCommand
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-SRHG24V7.js";
|
|
78
78
|
import {
|
|
79
79
|
DEFAULT_OUTPUT_BYTES,
|
|
80
80
|
changesAuthorityAt,
|
|
@@ -90,27 +90,27 @@ import {
|
|
|
90
90
|
sealed,
|
|
91
91
|
snakeKeys,
|
|
92
92
|
typedCommand
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-JIWQNA2J.js";
|
|
94
94
|
import {
|
|
95
95
|
isCliFailure,
|
|
96
96
|
withCaller
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-GNLCVNP7.js";
|
|
98
98
|
import {
|
|
99
99
|
readOnlyLockOf
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-N2Y6FTPK.js";
|
|
101
101
|
import {
|
|
102
102
|
mcpHttpMarker
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-DQ66H456.js";
|
|
104
104
|
import {
|
|
105
105
|
openStore,
|
|
106
106
|
pdfPreviewLimits
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-IKDHJLSH.js";
|
|
108
108
|
import {
|
|
109
109
|
timezoneOf
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-PYQU4GLK.js";
|
|
111
111
|
import {
|
|
112
112
|
warmEmbedders
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-3ZZ5OCUO.js";
|
|
114
114
|
import {
|
|
115
115
|
description,
|
|
116
116
|
integer,
|
|
@@ -126,19 +126,19 @@ import {
|
|
|
126
126
|
regex,
|
|
127
127
|
strictObject,
|
|
128
128
|
string
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-SN63VOE6.js";
|
|
130
130
|
import {
|
|
131
131
|
CliError,
|
|
132
132
|
visibleControls
|
|
133
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-RZ54DSVU.js";
|
|
134
134
|
import {
|
|
135
135
|
__name
|
|
136
136
|
} from "./chunk-ZVVMGPBJ.js";
|
|
137
137
|
|
|
138
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
138
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
139
139
|
import { randomUUID } from "node:crypto";
|
|
140
140
|
|
|
141
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
142
142
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
143
143
|
let held;
|
|
144
144
|
return {
|
|
@@ -157,7 +157,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
157
157
|
};
|
|
158
158
|
}, "agentLog");
|
|
159
159
|
|
|
160
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
160
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
161
161
|
var LISTED = 100;
|
|
162
162
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
163
163
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -195,7 +195,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
195
195
|
});
|
|
196
196
|
}, "registerResources");
|
|
197
197
|
|
|
198
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
198
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
199
199
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
200
200
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
201
201
|
var MessengerSession = class {
|
|
@@ -270,7 +270,7 @@ var MessengerSession = class {
|
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
272
|
|
|
273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
274
274
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
275
275
|
const _command = messenger.app.command;
|
|
276
276
|
return {
|
|
@@ -324,7 +324,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
324
324
|
};
|
|
325
325
|
}, "attachmentsTools");
|
|
326
326
|
|
|
327
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
327
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
328
328
|
var PHOTO_LIMIT = 512 * 1024;
|
|
329
329
|
var IMAGE_TYPES = [
|
|
330
330
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -378,7 +378,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
378
378
|
return new Uint8Array(Buffer.concat(chunks));
|
|
379
379
|
}, "readUpTo");
|
|
380
380
|
|
|
381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
381
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
382
382
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
383
383
|
stats_charts: tool({
|
|
384
384
|
title: "A chart from a chat's statistics",
|
|
@@ -415,14 +415,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
415
415
|
})
|
|
416
416
|
}), "statsTools");
|
|
417
417
|
|
|
418
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
418
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
419
419
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
420
420
|
...messagesPhotoTools(messenger),
|
|
421
421
|
...attachmentsTools(messenger),
|
|
422
422
|
...statsTools(messenger)
|
|
423
423
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
424
424
|
|
|
425
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
425
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
426
426
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
427
427
|
"streams",
|
|
428
428
|
"stdin",
|
|
@@ -746,7 +746,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
746
746
|
}, "serveOverStdio");
|
|
747
747
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
748
748
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
749
|
-
const { serveOverHttp } = await import("./serve-
|
|
749
|
+
const { serveOverHttp } = await import("./serve-KPTYHWUY.js");
|
|
750
750
|
const appName = messenger.app.command;
|
|
751
751
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
752
752
|
const listening = await serveOverHttp(build, {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/shared-55XJMTPA.js
|
|
8
8
|
var entityKind = /* @__PURE__ */ Symbol.for("drizzle:entityKind");
|
|
9
9
|
var kindsByConstructor = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function collectKinds(ctor) {
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
wirecatDirectory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WIK6SGHZ.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RZ54DSVU.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.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/speech/models.js
|
|
14
14
|
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/csukuangfj/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
15
15
|
var gigaam = huggingFace("sherpa-onnx-nemo-transducer-punct-giga-am-v3-russian-2025-12-16", "a6039be7cee829a9044a69ac0ebaf1c191217c97");
|
|
16
16
|
var gigaamCtc = huggingFace("sherpa-onnx-nemo-ctc-punct-giga-am-v3-russian-2025-12-16", "4fb5407ff028a69fec516cdf4c10fac9ddea7c16");
|
|
@@ -137,7 +137,7 @@ var speechModel = /* @__PURE__ */ __name((id) => {
|
|
|
137
137
|
return model;
|
|
138
138
|
}, "speechModel");
|
|
139
139
|
|
|
140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
140
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/speech/install.js
|
|
141
141
|
import { createHash, randomUUID } from "node:crypto";
|
|
142
142
|
import { createReadStream, createWriteStream, mkdirSync, statSync } from "node:fs";
|
|
143
143
|
import { rename, rm } from "node:fs/promises";
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
readLock,
|
|
6
6
|
releaseLock,
|
|
7
7
|
takeLock
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SMJAJWYW.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.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
14
14
|
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
15
15
|
|
|
16
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
16
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mcp/http/activity.js
|
|
17
17
|
import { randomBytes } from "node:crypto";
|
|
18
18
|
import { chmodSync, existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from "node:fs";
|
|
19
19
|
import { dirname } from "node:path";
|
|
@@ -86,7 +86,7 @@ var activityRecorder = /* @__PURE__ */ __name((path, now = Date.now) => {
|
|
|
86
86
|
};
|
|
87
87
|
}, "activityRecorder");
|
|
88
88
|
|
|
89
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
89
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.579.0_@wirecat+cli-base@0.78.0_commander@15.0.0_esbuild@0.28.2_type_c8215ada444796d31d091c0d7a963d03/node_modules/@wirecat/cli-core/dist/mcp/http/state.js
|
|
90
90
|
var ACCESS_SECONDS = 60 * 60;
|
|
91
91
|
var REFRESH_SECONDS = 30 * 24 * 60 * 60;
|
|
92
92
|
var readStored = /* @__PURE__ */ __name((path) => existsSync2(path) ? JSON.parse(readFileSync2(path, "utf8")) : { clients: [], tokens: [] }, "readStored");
|