@wirecat/mail-cli 0.24.0 → 0.25.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 +13 -0
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/{all-profiles-VS7P6DJY.js → all-profiles-QEV2PSOR.js} +9 -9
- package/dist/bundle/{anthropic-C5JXKGBS.js → anthropic-5NKQXIHM.js} +16 -9
- package/dist/bundle/{app-server-HU3LVU42.js → app-server-G2CJNT4R.js} +56 -45
- package/dist/bundle/{bun-QLFX47WZ.js → bun-6HBYWQIX.js} +2 -2
- package/dist/bundle/{bun-sqlite-W4PGAKVY.js → bun-sqlite-DXIQ7BVR.js} +8 -4
- package/dist/bundle/{chunk-U6MMQNNK.js → chunk-37F6QYTO.js} +5 -5
- package/dist/bundle/{chunk-5NLHDK7P.js → chunk-3XVR2ROR.js} +30 -30
- package/dist/bundle/{chunk-TI7ZIPA2.js → chunk-434YOD6A.js} +3 -3
- package/dist/bundle/{chunk-NCRSE647.js → chunk-5QYK3LWS.js} +57 -25
- package/dist/bundle/{chunk-WOX7FZJP.js → chunk-5ZYFV6FD.js} +82 -61
- package/dist/bundle/chunk-7GLJSJ7M.js +16 -0
- package/dist/bundle/{chunk-XBEO472U.js → chunk-A6BPOX5O.js} +11804 -10024
- package/dist/bundle/{chunk-VVL4MKYH.js → chunk-ADKMBXY4.js} +1 -1
- package/dist/bundle/{chunk-PRQ2U7HF.js → chunk-B7SWTH5O.js} +2 -2
- package/dist/bundle/{chunk-64ZG5ERD.js → chunk-BC7PFQL7.js} +2 -2
- package/dist/bundle/{chunk-Q6K2XUGU.js → chunk-CBYBZCQP.js} +1 -1
- package/dist/bundle/{chunk-ZO4MQWIK.js → chunk-CIWWNBVW.js} +7 -7
- package/dist/bundle/{chunk-Q4OKEN3B.js → chunk-DIA56CS7.js} +7 -6
- package/dist/bundle/{chunk-QI3PXUOJ.js → chunk-EXVY76VO.js} +36 -30
- package/dist/bundle/{chunk-RNZKQMFY.js → chunk-FZZD4AFY.js} +11 -11
- package/dist/bundle/{chunk-5X3GU5LI.js → chunk-G5LHHAW2.js} +5 -5
- package/dist/bundle/{chunk-YI544LHI.js → chunk-GJRYZXBN.js} +8 -8
- package/dist/bundle/{chunk-NSIN5IM4.js → chunk-GY4XCLCO.js} +9 -14
- package/dist/bundle/{chunk-IRUN4XOV.js → chunk-HEIDAHRC.js} +2 -2
- package/dist/bundle/{chunk-4QNHAM3J.js → chunk-HEYVMAAQ.js} +1 -1
- package/dist/bundle/{chunk-RLQZFZLK.js → chunk-HJSJBNCJ.js} +61 -6
- package/dist/bundle/{chunk-H5FJTHVA.js → chunk-HLXVUMZJ.js} +2 -2
- package/dist/bundle/{chunk-DW3F6DUW.js → chunk-IACWKZWS.js} +1 -1
- package/dist/bundle/{chunk-JOQGJUFT.js → chunk-IXO4SCKE.js} +1 -1
- package/dist/bundle/{chunk-X7J3TTDO.js → chunk-IZOYW4Z4.js} +24 -0
- package/dist/bundle/{chunk-6PWCQKMD.js → chunk-J4OYK4WL.js} +13 -13
- package/dist/bundle/{chunk-ZR2BDNGG.js → chunk-JG4MNYG2.js} +1 -1
- package/dist/bundle/{chunk-JMLIKXFO.js → chunk-K2OGF7KC.js} +1 -1
- package/dist/bundle/chunk-K6HR6HCO.js +32 -0
- package/dist/bundle/{chunk-FKWUUCX2.js → chunk-KFB2X6KE.js} +385 -178
- package/dist/bundle/{chunk-3FD3IATT.js → chunk-KK4HD3SI.js} +5 -5
- package/dist/bundle/{chunk-HBZAJINU.js → chunk-L4QVOEOB.js} +2 -2
- package/dist/bundle/chunk-LGZPKKBN.js +53 -0
- package/dist/bundle/{chunk-O373QEAJ.js → chunk-MBFPFWCO.js} +25 -25
- package/dist/bundle/{chunk-SWKQ6IAR.js → chunk-MWGH3M46.js} +2 -2
- package/dist/bundle/{chunk-C5BMCLCQ.js → chunk-ND5H5ADM.js} +3 -3
- package/dist/bundle/{chunk-EKGRNFYQ.js → chunk-NMZQTYKJ.js} +1 -1
- package/dist/bundle/{chunk-RUASZW3M.js → chunk-OLKCJBZY.js} +4 -4
- package/dist/bundle/{chunk-MTO6YVMN.js → chunk-OLLIWNFG.js} +3 -3
- package/dist/bundle/{chunk-X47BL4M5.js → chunk-P6GXNT7Z.js} +12 -12
- package/dist/bundle/{chunk-YBQ5AYLZ.js → chunk-PGC5TRH6.js} +3 -3
- package/dist/bundle/{chunk-RN7OI5KL.js → chunk-PHHH2NQP.js} +14 -8
- package/dist/bundle/{chunk-KGOVFEWZ.js → chunk-PP3YOAWG.js} +2 -2
- package/dist/bundle/{chunk-YA45XV6G.js → chunk-PQMJ5BXH.js} +4 -4
- package/dist/bundle/{chunk-NWKKPDZV.js → chunk-QB3DP2TN.js} +1 -1
- package/dist/bundle/{chunk-BFQQV22T.js → chunk-QQUY4MZY.js} +1 -1
- package/dist/bundle/{chunk-VNKWSCN7.js → chunk-S2QRAKQI.js} +16 -16
- package/dist/bundle/{chunk-6VV7J2TN.js → chunk-SMTBV62X.js} +31 -26
- package/dist/bundle/{chunk-A6J4MPTI.js → chunk-T27IMG6X.js} +1 -1
- package/dist/bundle/{chunk-FNLUKODV.js → chunk-TY644DKQ.js} +1 -1
- package/dist/bundle/{chunk-3KSK5BBB.js → chunk-U6IQ6YQ2.js} +1 -1
- package/dist/bundle/{chunk-PT6MF2VU.js → chunk-VFU7PVPQ.js} +336 -106
- package/dist/bundle/{chunk-QVMOEB3I.js → chunk-VL6H2BND.js} +13 -13
- package/dist/bundle/{chunk-OQW6GHUA.js → chunk-WOAYHCM2.js} +1 -1
- package/dist/bundle/{chunk-TLEBSMC7.js → chunk-WX6OYVCH.js} +3968 -3527
- package/dist/bundle/{chunk-C3NYJW6B.js → chunk-XMDEM6BZ.js} +631 -79
- package/dist/bundle/{chunk-AUTX2MLF.js → chunk-XQYKIZMG.js} +11 -9
- package/dist/bundle/{chunk-KV4VTKF3.js → chunk-YNS2YVUR.js} +68 -5
- package/dist/bundle/{chunk-JWMLMAHP.js → chunk-Z5T6OW3V.js} +13 -4
- package/dist/bundle/command-contract-XSW2Q33S.js +36 -0
- package/dist/bundle/{command-server-entry-5E3PPDE5.js → command-server-entry-XMSSY5ID.js} +23 -22
- package/dist/bundle/{decode-AVWV7SVZ.js → decode-RYGB4PGT.js} +4 -4
- package/dist/bundle/{dispatch-BXPHSNK5.js → dispatch-PLQOIZG5.js} +1 -1
- package/dist/bundle/{dist-PIOOKBWT.js → dist-GY2AQETI.js} +23 -16
- package/dist/bundle/{echarts-7K6YQV52.js → echarts-7CM2MCMW.js} +2 -2
- package/dist/bundle/{embed-4NT76GJK.js → embed-FTBDPOPT.js} +5 -5
- package/dist/bundle/{embedder-ITQFF7EN.js → embedder-B43WGNBD.js} +8 -8
- package/dist/bundle/{failure-3Q65JOPD.js → failure-XP5QYV2T.js} +1 -1
- package/dist/bundle/{first-run-PM74YU4X.js → first-run-XIIUARNM.js} +9 -8
- package/dist/bundle/first-screen-Z7HC6PQU.js +34 -0
- package/dist/bundle/{instructions-JDSITYHV.js → instructions-R7OHVAWH.js} +1 -1
- package/dist/bundle/mail.js +5 -5
- package/dist/bundle/{node-D6YIJOJI.js → node-3N2JGZ7V.js} +2 -2
- package/dist/bundle/{node-sqlite-PJOHHB4X.js → node-sqlite-WFJXW3CZ.js} +9 -5
- package/dist/bundle/{oauth-BOWJ3IBT.js → oauth-SVJLQTWV.js} +6 -6
- package/dist/bundle/{open-FIAKKZMW.js → open-ZDONVKSX.js} +4 -4
- package/dist/bundle/{openai-QL54VVLC.js → openai-XVEW6XOU.js} +17 -13
- package/dist/bundle/{process-AYHK7WRC.js → process-YAHHUFR5.js} +1 -1
- package/dist/bundle/{program-6FKWOTBK.js → program-HU2UVMJE.js} +5742 -5008
- package/dist/bundle/{prompt-XJZCBELC.js → prompt-JAJ2CUJI.js} +4 -4
- package/dist/bundle/{recognize-OQKWAHBY.js → recognize-UFBWUNFR.js} +3 -3
- package/dist/bundle/{remote-NLVUZ5WK.js → remote-2GFOVLCR.js} +8 -6
- package/dist/bundle/{rerank-NRPZDTJ7.js → rerank-BGPSMXTL.js} +6 -6
- package/dist/bundle/{serve-O4YUI7F6.js → serve-CB3XJTH3.js} +8 -8
- package/dist/bundle/server-34GEF22R.js +68 -0
- package/dist/bundle/{server-WAL3M4OO.js → server-M7FQY7TX.js} +38 -36
- package/dist/bundle/{sqlite-runtime-5YHGI4D4.js → sqlite-runtime-AEV6PGDR.js} +5 -5
- package/dist/bundle/{state-WYYOJ7KK.js → state-YLBEQLBI.js} +5 -5
- package/dist/bundle/{store-6BJO3F2J.js → store-CDUL3HKK.js} +17 -14
- package/dist/bundle/{store-X72GOJHD.js → store-EKWKY6GG.js} +22 -17
- package/dist/bundle/store-maintenance-command-XH2JUM5F.js +58 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/dist/bundle/chunk-B72343TK.js +0 -35
- package/dist/bundle/command-contract-ERYYPAD2.js +0 -35
- package/dist/bundle/first-screen-WBVGVSMY.js +0 -33
- package/dist/bundle/server-6OT5ZEWL.js +0 -66
- package/dist/bundle/store-maintenance-command-ASS7RBYC.js +0 -54
|
@@ -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-37F6QYTO.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.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/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";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/render/messages.js
|
|
16
16
|
import { styleText } from "node:util";
|
|
17
17
|
var TIME_WIDTH = 8;
|
|
18
18
|
var INDENT = " ".repeat(TIME_WIDTH + 2);
|
|
@@ -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-5ZYFV6FD.js";
|
|
6
6
|
import {
|
|
7
7
|
defineReasons
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IZOYW4Z4.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.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/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"],
|
|
@@ -23,8 +23,10 @@ var QUERY = [
|
|
|
23
23
|
["query.invalid-reference", "a reference in the query is not valid"],
|
|
24
24
|
["query.invalid-tag", "a tag in the query is not valid"],
|
|
25
25
|
["query.invalid-topic", "a topic in the query is not valid"],
|
|
26
|
-
["query.topic-scope", "a topic needs its chat in the query"]
|
|
27
|
-
|
|
26
|
+
["query.topic-scope", "a topic needs its chat in the query"],
|
|
27
|
+
["query.short-text", "a search by part of a name or a title needs three characters or more"],
|
|
28
|
+
["query.legacy-date-field", "after: and before: are written date>= and date<"]
|
|
29
|
+
].map(([reason, message]) => validation(reason, message)).concat([["query.no-match", "not_found", "no person or chat in the store fits a name in the query"]]);
|
|
28
30
|
var SIGN_IN = [
|
|
29
31
|
["oauth.declined", "authentication_error", "the provider's consent was declined"],
|
|
30
32
|
["oauth.timeout", "timeout", "the sign-in was not finished in time"],
|
|
@@ -72,13 +74,34 @@ var OTHERS = [
|
|
|
72
74
|
["model.offline", "permission_error", "downloading a model needs the network; --offline was requested"],
|
|
73
75
|
["model.key-rejected", "invalid_response", "the model provider refused the API key (401 or 403)"],
|
|
74
76
|
["model.unreachable", "invalid_response", "the model provider could not be reached over the network"],
|
|
77
|
+
[
|
|
78
|
+
"model.empty-answer",
|
|
79
|
+
"invalid_response",
|
|
80
|
+
"the model answered nothing; given a picture, it may not read pictures \u2014 choose a vision model"
|
|
81
|
+
],
|
|
82
|
+
validation("model.address-refused", "the model address must be https, or http only on this computer"),
|
|
83
|
+
[
|
|
84
|
+
"local-only.refused",
|
|
85
|
+
"permission_error",
|
|
86
|
+
"local only is on and the address is not on this computer; nothing was sent"
|
|
87
|
+
],
|
|
88
|
+
["local-only.owner-only", "permission_error", "only the owner turns local only off, not an agent"],
|
|
89
|
+
["ai.images-not-allowed", "permission_error", "the AI model may not read pictures; models ai set --allow-remote"],
|
|
90
|
+
["picture-reading.off", "permission_error", "picture reading is never; models picture-reading set request"],
|
|
91
|
+
["picture-reading.owner-only", "permission_error", "only the owner turns picture reading on, not an agent"],
|
|
92
|
+
validation("picture-reading.agent-missing", "choose the agent that reads: --agent claude or --agent codex"),
|
|
93
|
+
validation("picture-reading.not-a-picture", "the file is not a PNG, JPEG or WebP picture"),
|
|
94
|
+
["picture-reading.unavailable-file", "not_found", "the picture could not be fetched, or is over the size limit"],
|
|
95
|
+
["picture-reading.unavailable", "configuration_error", "the chosen coding agent is not installed"],
|
|
96
|
+
["picture-reading.failed", "invalid_response", "the coding agent failed or answered nothing"],
|
|
97
|
+
["picture-reading.timeout", "timeout", "the coding agent gave no answer in time"],
|
|
75
98
|
[
|
|
76
99
|
"ai.owner-only",
|
|
77
100
|
"permission_error",
|
|
78
101
|
"only the owner chooses, unsets, checks or removes the AI model and its key, or revokes its consent"
|
|
79
102
|
],
|
|
80
103
|
["ai.setting-invalid", "configuration_error", "the ai section or the model given is not one WireCat can use"],
|
|
81
|
-
validation("ai.address-refused", "the model address
|
|
104
|
+
validation("ai.address-refused", "the AI model setting names an address WireCat refuses: plain http to another computer, or Ollama off this computer"),
|
|
82
105
|
["ai.not-set", "configuration_error", "no AI model is chosen; models ai set chooses one"],
|
|
83
106
|
["ai.key-missing", "configuration_error", "no API key is stored for the AI model's address"],
|
|
84
107
|
["ai.ok", "invalid_response", "models ai check: the model answered (a result, never raised)"],
|
|
@@ -106,6 +129,18 @@ var OTHERS = [
|
|
|
106
129
|
validation("finding.unknown-field", "a finding has a field its kind does not take"),
|
|
107
130
|
validation("finding.quote-not-found", "a finding's quote is not in the text it cites, word for word"),
|
|
108
131
|
validation("finding.missing-field", "a finding leaves out a field its kind needs"),
|
|
132
|
+
[
|
|
133
|
+
"agent.unrestricted",
|
|
134
|
+
"permission_error",
|
|
135
|
+
"nothing holds this agent to the CLI's commands, so no schedule starts it"
|
|
136
|
+
],
|
|
137
|
+
["read-only.output-outside", "permission_error", "a read-only process writes files only inside its working folder"],
|
|
138
|
+
[
|
|
139
|
+
"agent.refused",
|
|
140
|
+
"permission_error",
|
|
141
|
+
"the schedule changed since it was saved, or starts no agent a schedule may run"
|
|
142
|
+
],
|
|
143
|
+
validation("agent.cost-unknown", "the agent reports no cost, so a cost cap cannot stop it"),
|
|
109
144
|
validation("document.changed", "the document changed while it was read; nothing was saved"),
|
|
110
145
|
["document.not-imported", "not_found", "the document is not imported in this source account"],
|
|
111
146
|
["extraction.invalid-proposals", "invalid_response", "the model's memory proposals could not be used"],
|
|
@@ -347,6 +382,7 @@ var OTHERS = [
|
|
|
347
382
|
validation("crm.not-reported", "the CRM did not list users or departments; what they would say is unknown, nothing withdrawn"),
|
|
348
383
|
validation("crm.reference-unknown", "a CRM row names a contact, company or user the store does not hold; that link was not made"),
|
|
349
384
|
validation("crm.pending-dropped", "relationships waited too long for an end that never came; they were dropped"),
|
|
385
|
+
validation("crm.activities-failed", "the activities and tasks could not be read; the deals and leads were synced"),
|
|
350
386
|
validation("crm.email-ambiguous", "a CRM contact's email belongs to more than one person; the owner decides"),
|
|
351
387
|
validation("crm.own-unknown", "no own company of the CRM account is stored, so its users are no one's employees yet"),
|
|
352
388
|
validation("relationship.reference-unknown", "a reported relationship names something the store does not hold"),
|
|
@@ -385,6 +421,11 @@ var OTHERS = [
|
|
|
385
421
|
validation("order.status", "a rejected or deleted order's status does not change"),
|
|
386
422
|
["model.not-downloaded", "not_found", "the model is not downloaded on this machine"],
|
|
387
423
|
["person.no-owner", "not_found", "no person is marked as the owner in the store"],
|
|
424
|
+
["person.unknown", "not_found", "the store has no person by that reference; people list gives person:<uid>"],
|
|
425
|
+
["person.no-doubt", "not_found", "nothing about that person is in doubt; people links check lists who is"],
|
|
426
|
+
validation("person.owner", "the owner's own person is not test data"),
|
|
427
|
+
validation("person.no-identity", "a person with no identity is not test data; there is nothing to hide"),
|
|
428
|
+
validation("person.from-required", "say whom the identity leaves: --from person:<uid>, or person:me for the owner"),
|
|
388
429
|
[
|
|
389
430
|
"identity.separated",
|
|
390
431
|
"conflict",
|
|
@@ -400,17 +441,31 @@ var OTHERS = [
|
|
|
400
441
|
"conflict",
|
|
401
442
|
"the people a merge or a proposed link names changed since; undo the later merge, or propose the link again"
|
|
402
443
|
],
|
|
444
|
+
["identity.no-merge", "not_found", "nothing of that person is merged into the other; people show lists the merges"],
|
|
445
|
+
validation("identity.held-elsewhere", "the identity sits on another person than the one named; name that person to take it off them"),
|
|
446
|
+
validation("identity.several-persons", "the identities that leave a person are all of that one person"),
|
|
447
|
+
validation("identity.nothing-left", "a split leaves at least one identity with the person"),
|
|
448
|
+
[
|
|
449
|
+
"identity.kept-together",
|
|
450
|
+
"conflict",
|
|
451
|
+
"the owner kept these identities together by turning down their split; only the owner splits them"
|
|
452
|
+
],
|
|
403
453
|
[
|
|
404
454
|
"identity.rejected",
|
|
405
455
|
"conflict",
|
|
406
456
|
"the owner rejected linking these people on this evidence; only a new signal or identity proposes them again"
|
|
407
457
|
],
|
|
408
458
|
validation("identity.same", "the two identities are one person already"),
|
|
459
|
+
validation("identity.not-shared", "only a match on a shared mailbox can say the mailbox is a company's"),
|
|
460
|
+
["organization.not-found", "not_found", "no stored organization has that id"],
|
|
461
|
+
validation("organization.unnamed", "a free mailbox names no company; name the organization or the company"),
|
|
462
|
+
validation("organization.ambiguous", "more than one organization matches; name the one meant as a reference"),
|
|
409
463
|
validation("identity.shared-phone", "more than six people share the phone number, so it proposes no one"),
|
|
410
464
|
validation("identity.common-name", "more than six people have the name, so it proposes no one"),
|
|
411
465
|
validation("identity.owner", "one side is the owner's person, and only the owner joins anyone to themselves"),
|
|
412
466
|
validation("identity.shared-email", "more than six people share the address, so it proposes no one"),
|
|
413
467
|
validation("identity-link.dedicated-review", "an identity link is staged and decided through the people review"),
|
|
468
|
+
validation("identity-split.dedicated-review", "a split of a person is staged and decided through the people review"),
|
|
414
469
|
["transcription.no-key", "authentication_error", "no OpenAI key is set for transcription"],
|
|
415
470
|
validation("transcription.too-large", "the audio is over the transcription provider's size limit"),
|
|
416
471
|
[
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
agentOf,
|
|
30
30
|
clientHash,
|
|
31
31
|
currentCaller
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-XQYKIZMG.js";
|
|
33
33
|
import {
|
|
34
34
|
__name
|
|
35
35
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -541,7 +541,7 @@ function toError(value) {
|
|
|
541
541
|
}
|
|
542
542
|
__name(toError, "toError");
|
|
543
543
|
|
|
544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/mcp/caller.js
|
|
545
545
|
var callingAgent = /* @__PURE__ */ __name((fallback, caller = currentCaller()) => {
|
|
546
546
|
const client = caller?.agent?.client?.name;
|
|
547
547
|
if (client && client !== "unknown")
|
|
@@ -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.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/background/processes.js
|
|
8
8
|
import { execFileSync } from "node:child_process";
|
|
9
9
|
import { readdirSync, readFileSync, readlinkSync } from "node:fs";
|
|
10
10
|
var alive = /* @__PURE__ */ __name((pid) => {
|
|
@@ -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.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/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) {
|
|
@@ -704,6 +704,29 @@ function nullable(wrapped, default_) {
|
|
|
704
704
|
}
|
|
705
705
|
__name(nullable, "nullable");
|
|
706
706
|
// @__NO_SIDE_EFFECTS__
|
|
707
|
+
function nullish(wrapped, default_) {
|
|
708
|
+
return _standardSchema({
|
|
709
|
+
kind: "schema",
|
|
710
|
+
type: "nullish",
|
|
711
|
+
reference: nullish,
|
|
712
|
+
expects: `(${wrapped.expects} | null | undefined)`,
|
|
713
|
+
async: false,
|
|
714
|
+
wrapped,
|
|
715
|
+
default: default_,
|
|
716
|
+
"~run"(dataset, config$1) {
|
|
717
|
+
if (dataset.value === null || dataset.value === void 0) {
|
|
718
|
+
if (this.default !== void 0) dataset.value = /* @__PURE__ */ getDefault(this, dataset, config$1);
|
|
719
|
+
if (dataset.value === null || dataset.value === void 0) {
|
|
720
|
+
dataset.typed = true;
|
|
721
|
+
return dataset;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
return this.wrapped["~run"](dataset, config$1);
|
|
725
|
+
}
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
__name(nullish, "nullish");
|
|
729
|
+
// @__NO_SIDE_EFFECTS__
|
|
707
730
|
function number(message$1) {
|
|
708
731
|
return _standardSchema({
|
|
709
732
|
kind: "schema",
|
|
@@ -2474,6 +2497,7 @@ export {
|
|
|
2474
2497
|
looseObject,
|
|
2475
2498
|
null_,
|
|
2476
2499
|
nullable,
|
|
2500
|
+
nullish,
|
|
2477
2501
|
number,
|
|
2478
2502
|
object,
|
|
2479
2503
|
objectWithRest,
|
|
@@ -2,31 +2,31 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
updateCommand
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L4QVOEOB.js";
|
|
6
6
|
import {
|
|
7
7
|
QUESTIONS,
|
|
8
8
|
readSetupAnswers,
|
|
9
9
|
unanswered,
|
|
10
10
|
writeSetupAnswers
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-MWGH3M46.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_STEMMERS,
|
|
14
14
|
LANGUAGES
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GY4XCLCO.js";
|
|
16
16
|
import {
|
|
17
17
|
sharedConfigPath
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import {
|
|
20
|
-
storePath
|
|
21
|
-
} from "./chunk-B72343TK.js";
|
|
18
|
+
} from "./chunk-KK4HD3SI.js";
|
|
22
19
|
import {
|
|
23
20
|
installerOf
|
|
24
21
|
} from "./chunk-RX5CJ55S.js";
|
|
22
|
+
import {
|
|
23
|
+
storePath
|
|
24
|
+
} from "./chunk-LGZPKKBN.js";
|
|
25
25
|
import {
|
|
26
26
|
__name
|
|
27
27
|
} from "./chunk-ZVVMGPBJ.js";
|
|
28
28
|
|
|
29
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
29
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/cli/first-run.js
|
|
30
30
|
import { spawnSync } from "node:child_process";
|
|
31
31
|
import { accessSync, constants, realpathSync } from "node:fs";
|
|
32
32
|
import { delimiter, join } from "node:path";
|
|
@@ -84,7 +84,7 @@ var suggested = /* @__PURE__ */ __name((env, contentLanguages) => {
|
|
|
84
84
|
return (own.length ? own : LANGUAGES.filter(({ code }) => code === "en" || code === system)).map(({ name }) => name);
|
|
85
85
|
}, "suggested");
|
|
86
86
|
var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLanguages }) => {
|
|
87
|
-
const { openStore } = await import("./store-
|
|
87
|
+
const { openStore } = await import("./store-CDUL3HKK.js");
|
|
88
88
|
const store = await openStore({ env });
|
|
89
89
|
let rebuild = false;
|
|
90
90
|
try {
|
|
@@ -113,8 +113,8 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
113
113
|
if (!rebuild)
|
|
114
114
|
return;
|
|
115
115
|
const [{ openCache }, { buildStems }] = await Promise.all([
|
|
116
|
-
import("./open-
|
|
117
|
-
import("./store-maintenance-command-
|
|
116
|
+
import("./open-ZDONVKSX.js"),
|
|
117
|
+
import("./store-maintenance-command-XH2JUM5F.js")
|
|
118
118
|
]);
|
|
119
119
|
const database = await openCache(storePath(env));
|
|
120
120
|
try {
|
|
@@ -126,7 +126,7 @@ var askLanguages = /* @__PURE__ */ __name(async ({ command, env, io, contentLang
|
|
|
126
126
|
var askTools = /* @__PURE__ */ __name(async (run) => {
|
|
127
127
|
const { command, env, io } = run;
|
|
128
128
|
const installed = run.installed ?? ((name) => onPath(name, env));
|
|
129
|
-
const { WIRECAT_TOOLS } = await import("./first-screen-
|
|
129
|
+
const { WIRECAT_TOOLS } = await import("./first-screen-Z7HC6PQU.js");
|
|
130
130
|
const others = WIRECAT_TOOLS.filter((tool) => tool.command !== command);
|
|
131
131
|
const missing = others.filter((tool) => !installed(tool.command));
|
|
132
132
|
io.say("Other WireCat tools \u2014 they share this store, so one search finds everything:");
|
|
@@ -199,7 +199,7 @@ var setupAtStart = /* @__PURE__ */ __name(async (start) => {
|
|
|
199
199
|
contentLanguages: start.contentLanguages,
|
|
200
200
|
all: start.path[0] === "setup",
|
|
201
201
|
io: {
|
|
202
|
-
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-
|
|
202
|
+
ask: /* @__PURE__ */ __name(async (prompt) => (await import("./prompt-JAJ2CUJI.js")).readSecret(prompt, { input, echo: true }), "ask"),
|
|
203
203
|
say: /* @__PURE__ */ __name((text) => process.stderr.write(`${text}
|
|
204
204
|
`), "say")
|
|
205
205
|
}
|
|
@@ -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.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/mcp/bot/instructions.js
|
|
8
8
|
var botInstructions = /* @__PURE__ */ __name(({ command, name, profile, writes, skill }) => [
|
|
9
9
|
`The owner's ${name} bot "${profile}", through the official Bot API \u2014 not the owner's personal account. What it writes, people see as the bot.`,
|
|
10
10
|
"Use these tools to read the chats this bot is in, find a message or a person, and \u2014 when the profile allows \u2014 write as the bot.",
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
__name
|
|
11
11
|
} from "./chunk-ZVVMGPBJ.js";
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
13
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/store/vector-extension.js
|
|
14
14
|
import { readFileSync } from "node:fs";
|
|
15
15
|
var musl = /* @__PURE__ */ __name(() => {
|
|
16
16
|
if (process.platform !== "linux")
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__name
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.647.0_@wirecat+cli-base@0.93.0_commander@15.0.0_esbuild@0.28.2_type_a46df5420a4458268e3f15f3e8c41b99/node_modules/@wirecat/cli-core/dist/models/endpoint.js
|
|
8
|
+
var endpoint = /* @__PURE__ */ __name((value) => {
|
|
9
|
+
try {
|
|
10
|
+
const url = new URL(value);
|
|
11
|
+
return ["https:", "http:"].includes(url.protocol) && !url.username && !url.password && !url.search && !url.hash;
|
|
12
|
+
} catch {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
}, "endpoint");
|
|
16
|
+
var loopback = /* @__PURE__ */ __name((hostname) => hostname === "localhost" || hostname === "[::1]" || /^127(\.\d{1,3}){3}$/.test(hostname), "loopback");
|
|
17
|
+
var onThisComputer = /* @__PURE__ */ __name((value) => {
|
|
18
|
+
try {
|
|
19
|
+
return loopback(new URL(value).hostname);
|
|
20
|
+
} catch {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
}, "onThisComputer");
|
|
24
|
+
var modelAddressAllowed = /* @__PURE__ */ __name((value) => endpoint(value) && (new URL(value).protocol === "https:" || onThisComputer(value)), "modelAddressAllowed");
|
|
25
|
+
var PLAIN_HTTP_REFUSED = "this address is not allowed: use https, or http only on this computer";
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
endpoint,
|
|
29
|
+
onThisComputer,
|
|
30
|
+
modelAddressAllowed,
|
|
31
|
+
PLAIN_HTTP_REFUSED
|
|
32
|
+
};
|