@wirecat/mail-cli 0.33.0 → 0.35.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 +39 -0
- package/README.md +4 -1
- package/contracts/wirecat.json +54 -4
- package/dist/bin/mail.js +2 -2
- package/dist/bundle/agent-KWLCQCSC.js +39 -0
- package/dist/bundle/{all-profiles-W3CGXEEJ.js → all-profiles-6BDSMVOO.js} +63 -21
- package/dist/bundle/{anthropic-UMDO5AKP.js → anthropic-C3XUXUCJ.js} +8 -8
- package/dist/bundle/{app-server-4SICQ5RP.js → app-server-GUHDK4OR.js} +82 -64
- package/dist/bundle/{bun-QVVCH4MJ.js → bun-FN7AM4AG.js} +2 -2
- package/dist/bundle/{bun-sqlite-CHD4AIUK.js → bun-sqlite-56IVBF22.js} +6 -6
- package/dist/bundle/{chunk-HFFHL7SV.js → chunk-2B67TUIF.js} +101 -69
- package/dist/bundle/{chunk-OOYIPK4F.js → chunk-2UNQTKRH.js} +1 -1
- package/dist/bundle/{chunk-LXUHYDNE.js → chunk-3ACF6TIV.js} +1 -1
- package/dist/bundle/chunk-3EV2B7KZ.js +726 -0
- package/dist/bundle/chunk-3KAJCOJP.js +109 -0
- package/dist/bundle/{chunk-2BFXHCZW.js → chunk-3WAZKCDF.js} +2 -2
- package/dist/bundle/{chunk-LKGJMM6W.js → chunk-46SBNO67.js} +12 -63
- package/dist/bundle/{chunk-LB5FTCPZ.js → chunk-4IASS7NQ.js} +128 -10
- package/dist/bundle/chunk-4U5ODZO7.js +360 -0
- package/dist/bundle/{chunk-QN423PC6.js → chunk-5WYBI35N.js} +3 -3
- package/dist/bundle/{chunk-GZYICXO4.js → chunk-5XQI7WCJ.js} +1 -1
- package/dist/bundle/{chunk-JUYUWMTG.js → chunk-635AFLZO.js} +4 -4
- package/dist/bundle/{chunk-2P44S7XK.js → chunk-6B4WZVLN.js} +36 -28
- package/dist/bundle/{chunk-47YNANPZ.js → chunk-6Q5THDNW.js} +3 -3
- package/dist/bundle/chunk-6VARUB3J.js +787 -0
- package/dist/bundle/{chunk-BRRHYXUP.js → chunk-7FXZKQAC.js} +87 -76
- package/dist/bundle/{chunk-EW3JFV7J.js → chunk-7JVKQ6NM.js} +4 -4
- package/dist/bundle/{chunk-OWAJN74H.js → chunk-7KMI47AP.js} +106 -257
- package/dist/bundle/{chunk-BF73DBAA.js → chunk-7PXAUMK5.js} +30 -15
- package/dist/bundle/{chunk-UX76GMQM.js → chunk-7YMLEWTX.js} +43 -64
- package/dist/bundle/{chunk-2L6D54BR.js → chunk-AISQNKT7.js} +8 -8
- package/dist/bundle/chunk-AV2ZJ4WX.js +7 -0
- package/dist/bundle/{chunk-OFMYFFEF.js → chunk-AXKIXVQA.js} +991 -1609
- package/dist/bundle/{chunk-UAV74EY4.js → chunk-CDGVYQXG.js} +1 -1
- package/dist/bundle/{chunk-RXUVXAMM.js → chunk-CFQQTDSA.js} +1 -1
- package/dist/bundle/chunk-CMGZXBJW.js +259 -0
- package/dist/bundle/{chunk-H46MANPR.js → chunk-DD2P67NP.js} +3 -3
- package/dist/bundle/{chunk-IBIFX2LK.js → chunk-DFHUJTP5.js} +2 -2
- package/dist/bundle/{chunk-DI74RP6R.js → chunk-DREU6TN6.js} +31 -85
- package/dist/bundle/{chunk-XQXYAOBV.js → chunk-DZHEVVXA.js} +53 -33
- package/dist/bundle/{chunk-LFBD6RTX.js → chunk-E6HSSKRX.js} +4 -4
- package/dist/bundle/{chunk-UYZDH5LK.js → chunk-EHAXFDDP.js} +1 -1
- package/dist/bundle/chunk-EU4J6GCJ.js +52 -0
- package/dist/bundle/{chunk-CHNNKHLL.js → chunk-EX4Z7CCO.js} +4051 -2788
- package/dist/bundle/chunk-G662S2M4.js +559 -0
- package/dist/bundle/{chunk-XN5KH24X.js → chunk-GG634DR3.js} +5 -5
- package/dist/bundle/{chunk-FSMCXQH2.js → chunk-GU3PYIV2.js} +2 -2
- package/dist/bundle/{chunk-SW7YGW3T.js → chunk-HF5QWKK2.js} +18 -8
- package/dist/bundle/chunk-HJDIMVFW.js +108 -0
- package/dist/bundle/chunk-HKWZG7CZ.js +334 -0
- package/dist/bundle/{chunk-BI5P7JWM.js → chunk-HM6AMYHR.js} +2 -2
- package/dist/bundle/{chunk-35AH33VJ.js → chunk-HVXOA4FO.js} +1 -1
- package/dist/bundle/{chunk-LXAX6AZU.js → chunk-I3QZCQJT.js} +6 -6
- package/dist/bundle/{chunk-I3UAD4EI.js → chunk-ILEKGH44.js} +68 -59
- package/dist/bundle/{chunk-SDWYOYGN.js → chunk-J5ULUTWE.js} +4 -4
- package/dist/bundle/{chunk-TK77DCE5.js → chunk-L4RCWRWS.js} +1 -1
- package/dist/bundle/chunk-MCJYJIH5.js +192 -0
- package/dist/bundle/{chunk-S6CHYNFE.js → chunk-NEDS4ORI.js} +2 -2
- package/dist/bundle/{chunk-QO7BK4WD.js → chunk-ODQCRZX5.js} +35 -12
- package/dist/bundle/chunk-OO4OKMNB.js +80 -0
- package/dist/bundle/{chunk-JCQ47WR4.js → chunk-OOQFBRNR.js} +144 -10
- package/dist/bundle/{chunk-LACMDMDI.js → chunk-OTP2HJ67.js} +9 -9
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-AEKWEYIG.js → chunk-PQDQCCGG.js} +19 -19
- package/dist/bundle/{chunk-BZY5W35X.js → chunk-Q5U2HIBJ.js} +7 -7
- package/dist/bundle/{chunk-74BYHR44.js → chunk-QFMKCU42.js} +3738 -3415
- package/dist/bundle/{chunk-SYUIAMVA.js → chunk-QYCMB7JY.js} +373 -533
- package/dist/bundle/{chunk-KLLT572M.js → chunk-RBV2AM52.js} +2 -100
- package/dist/bundle/{chunk-6VCQ4CTK.js → chunk-RJNKM3CQ.js} +1 -1
- package/dist/bundle/{chunk-6IS4BEN4.js → chunk-RQHWSNX4.js} +4 -4
- package/dist/bundle/chunk-RQJGX7F7.js +170 -0
- package/dist/bundle/{chunk-RENCSP47.js → chunk-TARNPINT.js} +3 -3
- package/dist/bundle/chunk-TP2BCK2Z.js +721 -0
- package/dist/bundle/{chunk-MJ7DUSHT.js → chunk-TP766H4O.js} +18 -14
- package/dist/bundle/{chunk-2X344EUT.js → chunk-UHGKN5US.js} +8 -8
- package/dist/bundle/{chunk-L3MKFI3Y.js → chunk-UWDRU3R6.js} +2 -2
- package/dist/bundle/chunk-V4O47JV6.js +72 -0
- package/dist/bundle/{chunk-CIG4UVP6.js → chunk-W4JYGMTU.js} +14 -13
- package/dist/bundle/{chunk-JADBHKBP.js → chunk-W7ICCFG5.js} +1 -1
- package/dist/bundle/{chunk-MNJ3BMPZ.js → chunk-WDEVKKAD.js} +3 -3
- package/dist/bundle/{chunk-TBZLGT7R.js → chunk-WZKM5I7B.js} +23 -119
- package/dist/bundle/{chunk-MT7T5N2N.js → chunk-XKKYRMGG.js} +4 -4
- package/dist/bundle/chunk-XQNKAM26.js +338 -0
- package/dist/bundle/{chunk-UWF3SSRL.js → chunk-YA44BG3N.js} +58 -9
- package/dist/bundle/{chunk-Y2P2LC5R.js → chunk-YCIWSKOH.js} +9 -9
- package/dist/bundle/{chunk-7OYZU5SP.js → chunk-YQTRKNZQ.js} +4 -4
- package/dist/bundle/chunk-YRAJFTFU.js +353 -0
- package/dist/bundle/chunk-YTI533XF.js +29 -0
- package/dist/bundle/{chunk-UG2QDGAH.js → chunk-ZMYRPMAJ.js} +1 -1
- package/dist/bundle/{chunk-CZ6ZXDSO.js → chunk-ZX7HZDD6.js} +182 -562
- package/dist/bundle/{chunk-IPSLQX64.js → chunk-ZYEU35MB.js} +2 -2
- package/dist/bundle/command-contract-D5UXWHMS.js +39 -0
- package/dist/bundle/{command-server-entry-G2ZHCN5J.js → command-server-entry-TPJ47FYS.js} +28 -25
- package/dist/bundle/decode-XHUASXQK.js +296 -0
- package/dist/bundle/{dispatch-RHIK22OA.js → dispatch-MQZHGGVP.js} +8 -8
- package/dist/bundle/{dist-X5G2IMYG.js → dist-BAE4IQ52.js} +34 -29
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-UZJ6AREV.js → echarts-U7Z2PKIG.js} +2 -2
- package/dist/bundle/{embed-FEXLUH3T.js → embed-W7GPB6EI.js} +6 -6
- package/dist/bundle/{embedder-NHQARKFJ.js → embedder-T72XLFQ5.js} +9 -9
- package/dist/bundle/{failure-7DIA4OET.js → failure-MP6VKL5Y.js} +2 -2
- package/dist/bundle/{first-run-PS5NR2QG.js → first-run-C44TJXRI.js} +12 -12
- package/dist/bundle/first-screen-IESI7DAU.js +39 -0
- package/dist/bundle/{instructions-SDDUBGH4.js → instructions-WGMWQNPP.js} +1 -1
- package/dist/bundle/mail.js +12 -12
- package/dist/bundle/{mcp-GN4FTJX5.js → mcp-YGOAUNC3.js} +2 -2
- package/dist/bundle/meeting-combined-XGZBSWIQ.js +24 -0
- package/dist/bundle/meeting-model-QVHLD4WI.js +24 -0
- package/dist/bundle/meeting-semantic-QKQHUHXX.js +21 -0
- package/dist/bundle/{node-ELCNUOCE.js → node-WANDMJJQ.js} +2 -2
- package/dist/bundle/{node-sqlite-2E5MKZMH.js → node-sqlite-NM5XA4DR.js} +7 -7
- package/dist/bundle/{oauth-JGPEIY3M.js → oauth-6E63ELEE.js} +8 -8
- package/dist/bundle/{open-6DEMCZAB.js → open-5542RTLE.js} +5 -5
- package/dist/bundle/{openai-IVKDU5AH.js → openai-NOYNPFB5.js} +28 -26
- package/dist/bundle/{process-67DAKAAQ.js → process-7AEXXSBX.js} +1 -1
- package/dist/bundle/{program-ESJDQMAJ.js → program-VMA5CGNR.js} +5712 -3640
- package/dist/bundle/{prompt-ZBWOT5KG.js → prompt-WYYO4AJL.js} +5 -5
- package/dist/bundle/{recognize-UUBH2DOH.js → recognize-UGCCOMAS.js} +4 -4
- package/dist/bundle/{remote-UYTNWNOB.js → remote-VZS6BNQB.js} +9 -9
- package/dist/bundle/{rerank-X2633CQN.js → rerank-O46D5GJ2.js} +7 -7
- package/dist/bundle/{serve-CP7Q4OVW.js → serve-QAAF2LCW.js} +10 -10
- package/dist/bundle/server-456MYK3X.js +84 -0
- package/dist/bundle/{server-I7MXRSAG.js → server-Q3PUZLLX.js} +77 -58
- package/dist/bundle/{sqlite-runtime-BX55LI5G.js → sqlite-runtime-EQBCDO2U.js} +6 -6
- package/dist/bundle/{state-LLNJQXFH.js → state-XIOHYXCR.js} +6 -6
- package/dist/bundle/{store-N27XI3VV.js → store-OXJZZUR7.js} +34 -17
- package/dist/bundle/{store-K4KU5N75.js → store-VJBL5XKR.js} +30 -20
- package/dist/bundle/store-maintenance-command-D7XYIX52.js +71 -0
- package/dist/bundle/surface-N7LK7PKN.js +70 -0
- package/dist/commands/read.d.ts +2 -2
- package/dist/commands/read.d.ts.map +1 -1
- package/dist/commands/read.js +5 -4
- package/dist/commands/read.js.map +1 -1
- package/dist/commands/sync.d.ts +2 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +16 -9
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +16 -1
- package/dist/config.js.map +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +2 -2
- package/dist/identity.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/chunk-BDCC2J2Z.js +0 -2
- package/dist/bundle/command-contract-NRNQAFFE.js +0 -36
- package/dist/bundle/decode-U6V6D6XH.js +0 -162
- package/dist/bundle/first-screen-C2WTLOG2.js +0 -34
- package/dist/bundle/server-QGTMJ7SF.js +0 -67
- package/dist/bundle/store-maintenance-command-VPAFQCNA.js +0 -58
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
permissionOverrides,
|
|
14
14
|
projectFields,
|
|
15
15
|
resolveOutput
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HF5QWKK2.js";
|
|
17
17
|
import {
|
|
18
18
|
currentCaller,
|
|
19
19
|
endpointTemplate,
|
|
@@ -23,16 +23,20 @@ import {
|
|
|
23
23
|
providerErrorKey,
|
|
24
24
|
renderEvent,
|
|
25
25
|
runContextOf
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import {
|
|
28
|
-
carries
|
|
29
|
-
} from "./chunk-UG2QDGAH.js";
|
|
26
|
+
} from "./chunk-UHGKN5US.js";
|
|
30
27
|
import {
|
|
31
28
|
permissionCeiling
|
|
32
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-WDEVKKAD.js";
|
|
30
|
+
import {
|
|
31
|
+
DEFAULT_RERANK_MODEL,
|
|
32
|
+
RERANK_MODELS
|
|
33
|
+
} from "./chunk-HKWZG7CZ.js";
|
|
34
|
+
import {
|
|
35
|
+
carries
|
|
36
|
+
} from "./chunk-ZMYRPMAJ.js";
|
|
33
37
|
import {
|
|
34
38
|
note
|
|
35
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-DD2P67NP.js";
|
|
36
40
|
import {
|
|
37
41
|
CATEGORIES,
|
|
38
42
|
FACT_STATUSES,
|
|
@@ -77,30 +81,39 @@ import {
|
|
|
77
81
|
typedCommand,
|
|
78
82
|
untrusted,
|
|
79
83
|
useAsProcessRun
|
|
80
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-DZHEVVXA.js";
|
|
81
85
|
import {
|
|
82
86
|
BUSINESS_KINDS,
|
|
83
87
|
CRM_ACTIVITY_KINDS,
|
|
84
88
|
DEAL_KINDS,
|
|
85
89
|
DEAL_ROLES,
|
|
86
90
|
DEAL_STATUSES,
|
|
87
|
-
FACT_TYPES,
|
|
88
|
-
FIELD_TYPES,
|
|
89
91
|
FINANCE_REVIEWS,
|
|
90
92
|
INVOICE_DIRECTIONS,
|
|
91
93
|
INVOICE_STATUSES,
|
|
92
|
-
MEETING_RESULT_ENTITIES,
|
|
93
94
|
MONEY_DIRECTIONS,
|
|
94
95
|
ORDER_PURPOSES,
|
|
95
96
|
ORDER_STATUSES,
|
|
96
|
-
QUERY_BACKENDS,
|
|
97
97
|
RELATION_KINDS,
|
|
98
|
-
STANDINGS
|
|
99
|
-
|
|
98
|
+
STANDINGS
|
|
99
|
+
} from "./chunk-6VARUB3J.js";
|
|
100
|
+
import {
|
|
101
|
+
isCliFailure,
|
|
102
|
+
storeDamaged
|
|
103
|
+
} from "./chunk-UWDRU3R6.js";
|
|
104
|
+
import {
|
|
105
|
+
TAG_TYPES
|
|
106
|
+
} from "./chunk-YTI533XF.js";
|
|
107
|
+
import {
|
|
108
|
+
FACT_TYPES,
|
|
109
|
+
FIELD_TYPES,
|
|
110
|
+
MEETING_RESULT_ENTITIES,
|
|
111
|
+
QUERY_BACKENDS,
|
|
100
112
|
callStats,
|
|
101
113
|
describeQuery,
|
|
102
114
|
event,
|
|
103
115
|
meeting,
|
|
116
|
+
meetingCall,
|
|
104
117
|
meetingCounts,
|
|
105
118
|
meetingDetails,
|
|
106
119
|
meetingHit,
|
|
@@ -112,31 +125,27 @@ import {
|
|
|
112
125
|
meetingSpeaker,
|
|
113
126
|
meetingStats,
|
|
114
127
|
meetingSummary,
|
|
128
|
+
meetingTagChange,
|
|
129
|
+
meetingTagging,
|
|
115
130
|
meetingTranscript,
|
|
116
131
|
parseLucene,
|
|
117
132
|
readsZone,
|
|
118
133
|
timezoneOf
|
|
119
|
-
} from "./chunk-
|
|
120
|
-
import {
|
|
121
|
-
isCliFailure,
|
|
122
|
-
storeDamaged
|
|
123
|
-
} from "./chunk-L3MKFI3Y.js";
|
|
134
|
+
} from "./chunk-AXKIXVQA.js";
|
|
124
135
|
import {
|
|
125
136
|
endpoint
|
|
126
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-OOQFBRNR.js";
|
|
127
138
|
import {
|
|
128
|
-
readSharedSection,
|
|
129
139
|
repairConfigText,
|
|
130
|
-
sharedConfigPath
|
|
131
|
-
|
|
132
|
-
} from "./chunk-BZY5W35X.js";
|
|
140
|
+
sharedConfigPath
|
|
141
|
+
} from "./chunk-Q5U2HIBJ.js";
|
|
133
142
|
import {
|
|
134
143
|
filesPresent,
|
|
135
144
|
sharedModelsDirectory
|
|
136
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-635AFLZO.js";
|
|
137
146
|
import {
|
|
138
147
|
storePath
|
|
139
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-ZYEU35MB.js";
|
|
140
149
|
import {
|
|
141
150
|
configFilePath,
|
|
142
151
|
createRecordLog,
|
|
@@ -145,7 +154,7 @@ import {
|
|
|
145
154
|
resolvePaths,
|
|
146
155
|
saveConfigFile,
|
|
147
156
|
writeSecurely
|
|
148
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-7FXZKQAC.js";
|
|
149
158
|
import {
|
|
150
159
|
COMPACT_FLAG,
|
|
151
160
|
MAX_NEXT_STEPS,
|
|
@@ -188,7 +197,6 @@ import {
|
|
|
188
197
|
regex,
|
|
189
198
|
safeInteger,
|
|
190
199
|
safeParse,
|
|
191
|
-
startsWith,
|
|
192
200
|
stepOf,
|
|
193
201
|
strictObject,
|
|
194
202
|
string,
|
|
@@ -196,20 +204,19 @@ import {
|
|
|
196
204
|
union,
|
|
197
205
|
unknown,
|
|
198
206
|
unwrap,
|
|
199
|
-
url,
|
|
200
207
|
variant,
|
|
201
208
|
writes
|
|
202
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-YA44BG3N.js";
|
|
203
210
|
import {
|
|
204
211
|
CliError,
|
|
205
212
|
isCliError,
|
|
206
213
|
visibleControls
|
|
207
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-HM6AMYHR.js";
|
|
208
215
|
import {
|
|
209
216
|
__name
|
|
210
217
|
} from "./chunk-ZVVMGPBJ.js";
|
|
211
218
|
|
|
212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
219
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/ports/app.js
|
|
213
220
|
import { readFileSync } from "node:fs";
|
|
214
221
|
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
215
222
|
var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
|
|
@@ -263,7 +270,7 @@ var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLD
|
|
|
263
270
|
var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
|
|
264
271
|
var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
|
|
265
272
|
|
|
266
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
273
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
|
|
267
274
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
268
275
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
269
276
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3764,7 +3771,7 @@ __name(useColor, "useColor");
|
|
|
3764
3771
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3765
3772
|
var program = new Command();
|
|
3766
3773
|
|
|
3767
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3774
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
|
|
3768
3775
|
var argumentInfoSchema = object({
|
|
3769
3776
|
name: string(),
|
|
3770
3777
|
required: boolean(),
|
|
@@ -3838,7 +3845,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3838
3845
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3839
3846
|
});
|
|
3840
3847
|
|
|
3841
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3848
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
|
|
3842
3849
|
import { isDeepStrictEqual } from "node:util";
|
|
3843
3850
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3844
3851
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3948,7 +3955,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
|
|
|
3948
3955
|
return result;
|
|
3949
3956
|
}, "sharedCommand");
|
|
3950
3957
|
|
|
3951
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3958
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
|
|
3952
3959
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3953
3960
|
let command = root;
|
|
3954
3961
|
const path2 = [];
|
|
@@ -3966,7 +3973,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3966
3973
|
}
|
|
3967
3974
|
}, "refuseJoinedPath");
|
|
3968
3975
|
|
|
3969
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3976
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
|
|
3970
3977
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3971
3978
|
var requests = new AsyncLocalStorage();
|
|
3972
3979
|
var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
|
|
@@ -3981,7 +3988,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
|
|
|
3981
3988
|
return direct;
|
|
3982
3989
|
}, "exitCodeSet");
|
|
3983
3990
|
|
|
3984
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
3985
3992
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
3986
3993
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
3987
3994
|
messageId: message2.id,
|
|
@@ -4087,7 +4094,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
4087
4094
|
}, "guardedWrite");
|
|
4088
4095
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4089
4096
|
|
|
4090
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4091
4098
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4092
4099
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4093
4100
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4270,7 +4277,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4270
4277
|
}
|
|
4271
4278
|
}, "withAbort");
|
|
4272
4279
|
|
|
4273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4280
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4274
4281
|
import { existsSync, readdirSync, readFileSync as readFileSync2 } from "node:fs";
|
|
4275
4282
|
import { join } from "node:path";
|
|
4276
4283
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -4292,10 +4299,12 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4292
4299
|
}, "profilesWithAccounts");
|
|
4293
4300
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4294
4301
|
|
|
4295
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4302
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/background/budget.js
|
|
4296
4303
|
var DEADLINE_MARGIN_MS = 5e3;
|
|
4297
4304
|
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
4298
4305
|
var DEFAULT_REQUEST_MS = 2e3;
|
|
4306
|
+
var ANSWER_RESERVE_MS = 500;
|
|
4307
|
+
var oneMoreFits = /* @__PURE__ */ __name((deadline, at2, requestMs = DEFAULT_REQUEST_MS) => deadline !== void 0 && at2 + requestMs + ANSWER_RESERVE_MS < deadline.endsAt, "oneMoreFits");
|
|
4299
4308
|
var deadlineMargin = /* @__PURE__ */ __name((deadline) => Math.max(DEADLINE_MARGIN_MS, deadline.ms * DEADLINE_MARGIN_SHARE), "deadlineMargin");
|
|
4300
4309
|
var requestsFor = /* @__PURE__ */ __name((deadline, requestMs = DEFAULT_REQUEST_MS) => deadline === void 0 ? null : Math.max(1, Math.floor((deadline.ms - deadlineMargin(deadline)) / requestMs)), "requestsFor");
|
|
4301
4310
|
var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, requestMs, signal, now = Date.now } = {}) => {
|
|
@@ -4303,6 +4312,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
|
|
|
4303
4312
|
const limit = fits === null ? requests2 ?? null : Math.min(fits, requests2 ?? fits);
|
|
4304
4313
|
const margin = deadline ? deadlineMargin(deadline) : 0;
|
|
4305
4314
|
let used = 0;
|
|
4315
|
+
let granted = false;
|
|
4306
4316
|
let stopped2 = null;
|
|
4307
4317
|
let last;
|
|
4308
4318
|
let slowest = 0;
|
|
@@ -4325,6 +4335,17 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
|
|
|
4325
4335
|
last = at2;
|
|
4326
4336
|
return null;
|
|
4327
4337
|
},
|
|
4338
|
+
first() {
|
|
4339
|
+
if (granted || used > 0 || stopped2 !== "deadline")
|
|
4340
|
+
return false;
|
|
4341
|
+
const at2 = now();
|
|
4342
|
+
if (!oneMoreFits(deadline, at2, Math.max(requestMs ?? DEFAULT_REQUEST_MS, slowest)))
|
|
4343
|
+
return false;
|
|
4344
|
+
granted = true;
|
|
4345
|
+
used += 1;
|
|
4346
|
+
last = at2;
|
|
4347
|
+
return true;
|
|
4348
|
+
},
|
|
4328
4349
|
get used() {
|
|
4329
4350
|
return used;
|
|
4330
4351
|
},
|
|
@@ -4335,7 +4356,7 @@ var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, request
|
|
|
4335
4356
|
};
|
|
4336
4357
|
}, "runBudget");
|
|
4337
4358
|
|
|
4338
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4339
4360
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4340
4361
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4341
4362
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4373,7 +4394,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4373
4394
|
progress: "sync.progress"
|
|
4374
4395
|
};
|
|
4375
4396
|
|
|
4376
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4397
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
4377
4398
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
4378
4399
|
const recording = startRecording(options);
|
|
4379
4400
|
try {
|
|
@@ -4588,7 +4609,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
4588
4609
|
return void 0;
|
|
4589
4610
|
}, "partialOutcome");
|
|
4590
4611
|
|
|
4591
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4612
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
4592
4613
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
4593
4614
|
if (ms2 === void 0)
|
|
4594
4615
|
return body();
|
|
@@ -4614,7 +4635,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
4614
4635
|
}
|
|
4615
4636
|
}, "withDeadline");
|
|
4616
4637
|
|
|
4617
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4638
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
4618
4639
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
4619
4640
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
4620
4641
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -4640,19 +4661,19 @@ var takesProfile = /* @__PURE__ */ __name((command) => {
|
|
|
4640
4661
|
return top !== void 0 && !PROFILE_FREE.has(top.name());
|
|
4641
4662
|
}, "takesProfile");
|
|
4642
4663
|
var commandWords = /* @__PURE__ */ __name((program2) => /* @__PURE__ */ new Set(["help", ...program2.commands.flatMap((command) => [command.name(), ...command.aliases()])]), "commandWords");
|
|
4643
|
-
var liftProfile = /* @__PURE__ */ __name((argv,
|
|
4664
|
+
var liftProfile = /* @__PURE__ */ __name((argv, words, valued = /* @__PURE__ */ new Set()) => {
|
|
4644
4665
|
let at2 = 0;
|
|
4645
4666
|
while (argv[at2]?.startsWith("-") && argv[at2] !== "--")
|
|
4646
4667
|
at2 += valued.has(argv[at2]) ? 2 : 1;
|
|
4647
4668
|
const first2 = argv[at2];
|
|
4648
|
-
if (first2 === void 0 || first2.startsWith("-") ||
|
|
4669
|
+
if (first2 === void 0 || first2.startsWith("-") || words.has(first2))
|
|
4649
4670
|
return { rest: argv };
|
|
4650
4671
|
return { profile: first2, rest: [...argv.slice(0, at2), ...argv.slice(at2 + 1)] };
|
|
4651
4672
|
}, "liftProfile");
|
|
4652
4673
|
var valuedOptions = /* @__PURE__ */ __name((program2) => new Set(program2.options.filter((option) => option.required).flatMap((option) => [option.long, option.short].filter((flag2) => flag2 !== void 0))), "valuedOptions");
|
|
4653
|
-
var refuseCommandName = /* @__PURE__ */ __name((profile,
|
|
4654
|
-
if (
|
|
4655
|
-
throw new CliError("validation_error", `"${profile}" is a command, so \`${command} ${profile} \u2026\` would always mean the command and never this profile. Pick a name that is not one of: ` + [...
|
|
4674
|
+
var refuseCommandName = /* @__PURE__ */ __name((profile, words, command) => {
|
|
4675
|
+
if (words.has(profile)) {
|
|
4676
|
+
throw new CliError("validation_error", `"${profile}" is a command, so \`${command} ${profile} \u2026\` would always mean the command and never this profile. Pick a name that is not one of: ` + [...words].sort().join(", "));
|
|
4656
4677
|
}
|
|
4657
4678
|
}, "refuseCommandName");
|
|
4658
4679
|
var rootOf = /* @__PURE__ */ __name((command) => {
|
|
@@ -4683,10 +4704,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
4683
4704
|
return void 0;
|
|
4684
4705
|
}, "sampleCommand");
|
|
4685
4706
|
|
|
4686
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4687
|
-
import { existsSync as
|
|
4707
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
4708
|
+
import { existsSync as existsSync4 } from "node:fs";
|
|
4688
4709
|
|
|
4689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
4690
4711
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
4691
4712
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
4692
4713
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -4755,13 +4776,13 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
4755
4776
|
};
|
|
4756
4777
|
}, "modelTarget");
|
|
4757
4778
|
|
|
4758
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4779
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
4759
4780
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
4760
|
-
var
|
|
4781
|
+
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
4761
4782
|
var AI_FIELDS = {
|
|
4762
4783
|
embeddingProvider: optional(picklist(["local", "openai"])),
|
|
4763
4784
|
embeddingModel: optional(model),
|
|
4764
|
-
embeddingBaseUrl: optional(
|
|
4785
|
+
embeddingBaseUrl: optional(url),
|
|
4765
4786
|
embeddingDims: optional(pipe(number(), integer(), minValue(1), maxValue(65536))),
|
|
4766
4787
|
models: optional(modelSettingsShape)
|
|
4767
4788
|
};
|
|
@@ -4799,7 +4820,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
4799
4820
|
};
|
|
4800
4821
|
}, "resolveAISettings");
|
|
4801
4822
|
|
|
4802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4823
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
4803
4824
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
4804
4825
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
4805
4826
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -4813,284 +4834,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
4813
4834
|
return ms2;
|
|
4814
4835
|
}, "parseDuration");
|
|
4815
4836
|
|
|
4816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4817
|
-
import { existsSync as existsSync2 } from "node:fs";
|
|
4818
|
-
import { join as join2 } from "node:path";
|
|
4819
|
-
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
4820
|
-
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
4821
|
-
var e5Large = huggingFace("Xenova/multilingual-e5-large", "00fc3aeb3dbb95842de2ac1961d33c6319acf57b");
|
|
4822
|
-
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
4823
|
-
var TEXT_MODELS = [
|
|
4824
|
-
{
|
|
4825
|
-
id: "e5-small",
|
|
4826
|
-
title: "multilingual-e5-small, 8-bit",
|
|
4827
|
-
size: "small",
|
|
4828
|
-
languages: "about 100 languages, Russian and English among them",
|
|
4829
|
-
licence: "MIT",
|
|
4830
|
-
dims: 384,
|
|
4831
|
-
maxTokens: 512,
|
|
4832
|
-
// 100k-message corpus, one 8-thread session on Ryzen AI 9 HX 470: 31–32 chunks/s.
|
|
4833
|
-
chunksPerSecond: 31,
|
|
4834
|
-
pooling: "mean",
|
|
4835
|
-
prefix: { query: "query: ", passage: "passage: " },
|
|
4836
|
-
onnx: "onnx/model_quantized.onnx",
|
|
4837
|
-
files: [
|
|
4838
|
-
{
|
|
4839
|
-
name: "onnx/model_quantized.onnx",
|
|
4840
|
-
url: e5("onnx/model_quantized.onnx"),
|
|
4841
|
-
sha256: "f80102d3f2a1229f387d3c81909990d8945513e347b0eab049f7de3c6f98c193",
|
|
4842
|
-
bytes: 118308185
|
|
4843
|
-
},
|
|
4844
|
-
{
|
|
4845
|
-
name: "tokenizer.json",
|
|
4846
|
-
url: e5("tokenizer.json"),
|
|
4847
|
-
sha256: "0b44a9d7b51c3c62626640cda0e2c2f70fdacdc25bbbd68038369d14ebdf4c39",
|
|
4848
|
-
bytes: 17082730
|
|
4849
|
-
},
|
|
4850
|
-
{
|
|
4851
|
-
name: "tokenizer_config.json",
|
|
4852
|
-
url: e5("tokenizer_config.json"),
|
|
4853
|
-
sha256: "a1d6bc8734a6f635dc158508bef000f8e2e5a759c7d92f984b2c86e5ff53425b",
|
|
4854
|
-
bytes: 443
|
|
4855
|
-
}
|
|
4856
|
-
]
|
|
4857
|
-
},
|
|
4858
|
-
{
|
|
4859
|
-
id: "embeddinggemma",
|
|
4860
|
-
title: "EmbeddingGemma 300M, 4-bit",
|
|
4861
|
-
size: "medium",
|
|
4862
|
-
languages: "over 100 languages \u2014 the best of the two on chat, about seven times slower",
|
|
4863
|
-
licence: "Gemma Terms of Use",
|
|
4864
|
-
terms: "https://ai.google.dev/gemma/terms",
|
|
4865
|
-
// Gemma Terms of Use §3.1: every copy carries this notice and the use restrictions of §3.2.
|
|
4866
|
-
notice: "Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms. Its use is restricted by the Gemma Prohibited Use Policy: https://ai.google.dev/gemma/prohibited_use_policy",
|
|
4867
|
-
dims: 768,
|
|
4868
|
-
maxTokens: 2048,
|
|
4869
|
-
// 2026-11-08, 1,200-character chunks, 8 threads on the Ryzen AI 9 HX 470: 8.3 chunks/s against e5-small's 52.7, so
|
|
4870
|
-
// 5 on the scale e5-small's 31 sets. It was 2, which held a memo sync to 39 chunks.
|
|
4871
|
-
chunksPerSecond: 5,
|
|
4872
|
-
pooling: "sentence_embedding",
|
|
4873
|
-
prefix: { query: "task: search result | query: ", passage: "title: none | text: " },
|
|
4874
|
-
onnx: "onnx/model_q4.onnx",
|
|
4875
|
-
externalData: "onnx/model_q4.onnx_data",
|
|
4876
|
-
files: [
|
|
4877
|
-
{
|
|
4878
|
-
name: "onnx/model_q4.onnx",
|
|
4879
|
-
url: gemma("onnx/model_q4.onnx"),
|
|
4880
|
-
sha256: "ad1dfee81a70f7944b9b9d1cc6e48075b832881cf33fab2f2b248be78f3f0043",
|
|
4881
|
-
bytes: 519322
|
|
4882
|
-
},
|
|
4883
|
-
{
|
|
4884
|
-
name: "onnx/model_q4.onnx_data",
|
|
4885
|
-
url: gemma("onnx/model_q4.onnx_data"),
|
|
4886
|
-
sha256: "599962c3143b040de2dd05e5975be3e9091dd067cacc6a8f7186e3203bab9e02",
|
|
4887
|
-
bytes: 196725760
|
|
4888
|
-
},
|
|
4889
|
-
{
|
|
4890
|
-
name: "tokenizer.json",
|
|
4891
|
-
url: gemma("tokenizer.json"),
|
|
4892
|
-
sha256: "4dda02faaf32bc91031dc8c88457ac272b00c1016cc679757d1c441b248b9c47",
|
|
4893
|
-
bytes: 20323312
|
|
4894
|
-
},
|
|
4895
|
-
{
|
|
4896
|
-
name: "tokenizer_config.json",
|
|
4897
|
-
url: gemma("tokenizer_config.json"),
|
|
4898
|
-
sha256: "3ca953eea6c3c9fcda9cf3df22949ff18b216f7c74bd6459230f3f1013953f3a",
|
|
4899
|
-
bytes: 1156830
|
|
4900
|
-
}
|
|
4901
|
-
]
|
|
4902
|
-
},
|
|
4903
|
-
{
|
|
4904
|
-
id: "e5-large",
|
|
4905
|
-
title: "multilingual-e5-large, 8-bit",
|
|
4906
|
-
size: "large",
|
|
4907
|
-
languages: "about 100 languages, Russian and English among them \u2014 reads better than e5-small, several times slower",
|
|
4908
|
-
licence: "MIT",
|
|
4909
|
-
dims: 1024,
|
|
4910
|
-
maxTokens: 512,
|
|
4911
|
-
// 2026-11-07, one 8-thread session on the Ryzen AI 9 HX 470 while other benchmarks ran: 3.4 chunks/s.
|
|
4912
|
-
chunksPerSecond: 4,
|
|
4913
|
-
pooling: "mean",
|
|
4914
|
-
prefix: { query: "query: ", passage: "passage: " },
|
|
4915
|
-
onnx: "onnx/model_quantized.onnx",
|
|
4916
|
-
files: [
|
|
4917
|
-
{
|
|
4918
|
-
name: "onnx/model_quantized.onnx",
|
|
4919
|
-
url: e5Large("onnx/model_quantized.onnx"),
|
|
4920
|
-
sha256: "0a8d65db9a36f810ba5da15249f13145fcdc7890e6656f1fd38cd8b7c4db1fca",
|
|
4921
|
-
bytes: 561768762
|
|
4922
|
-
},
|
|
4923
|
-
{
|
|
4924
|
-
name: "tokenizer.json",
|
|
4925
|
-
url: e5Large("tokenizer.json"),
|
|
4926
|
-
sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
|
|
4927
|
-
bytes: 17082660
|
|
4928
|
-
},
|
|
4929
|
-
{
|
|
4930
|
-
name: "tokenizer_config.json",
|
|
4931
|
-
url: e5Large("tokenizer_config.json"),
|
|
4932
|
-
sha256: "efb5c0d09722e5fe59a462cd2a9976ee216d55b037597d997cd3fe833216da15",
|
|
4933
|
-
bytes: 418
|
|
4934
|
-
}
|
|
4935
|
-
]
|
|
4936
|
-
}
|
|
4937
|
-
];
|
|
4938
|
-
var DEFAULT_TEXT_MODEL = "embeddinggemma";
|
|
4939
|
-
var PREVIOUS_DEFAULT_TEXT_MODEL = "e5-small";
|
|
4940
|
-
var SECTION = "text_models";
|
|
4941
|
-
var slug = pipe(string(), regex(/^[a-z0-9][a-z0-9._-]{0,62}$/, "is not a model id: a-z, 0-9, . _ -"));
|
|
4942
|
-
var words = pipe(string(), trim(), minLength(1), maxLength(300));
|
|
4943
|
-
var fileName = pipe(string(), check((name) => /^[\w.-]+(\/[\w.-]+)*$/.test(name) && !name.split("/").some((part) => part === ".." || part === "."), "is not a file inside the model's folder"));
|
|
4944
|
-
var modelFile = strictObject({
|
|
4945
|
-
name: fileName,
|
|
4946
|
-
url: pipe(string(), url(), startsWith("https://", "has to be an https address")),
|
|
4947
|
-
sha256: pipe(string(), regex(/^[0-9a-f]{64}$/, "has to be a sha256 in hex")),
|
|
4948
|
-
bytes: pipe(number(), integer(), minValue(1))
|
|
4949
|
-
});
|
|
4950
|
-
var CustomTextModelShape = pipe(strictObject({
|
|
4951
|
-
id: slug,
|
|
4952
|
-
title: words,
|
|
4953
|
-
languages: words,
|
|
4954
|
-
licence: words,
|
|
4955
|
-
terms: optional(pipe(string(), url())),
|
|
4956
|
-
dims: pipe(number(), integer(), minValue(1), maxValue(8192)),
|
|
4957
|
-
maxTokens: pipe(number(), integer(), minValue(16), maxValue(32768)),
|
|
4958
|
-
chunksPerSecond: optional(pipe(number(), minValue(0.01))),
|
|
4959
|
-
pooling: picklist(["mean", "sentence_embedding"]),
|
|
4960
|
-
prefix: strictObject({
|
|
4961
|
-
query: pipe(string(), maxLength(200)),
|
|
4962
|
-
passage: pipe(string(), maxLength(200))
|
|
4963
|
-
}),
|
|
4964
|
-
onnx: fileName,
|
|
4965
|
-
externalData: optional(fileName),
|
|
4966
|
-
files: pipe(array(modelFile), minLength(1), maxLength(16))
|
|
4967
|
-
}), check((model3) => !TEXT_MODELS.some((one) => one.id === model3.id), "takes the id of a model this version ships; choose another"), check((model3) => {
|
|
4968
|
-
const names = model3.files.map(({ name }) => name);
|
|
4969
|
-
return [model3.onnx, model3.externalData, "tokenizer.json", "tokenizer_config.json"].every((name) => name === void 0 || names.includes(name));
|
|
4970
|
-
}, "has to list its onnx file, its external data and tokenizer.json and tokenizer_config.json among files"));
|
|
4971
|
-
var TextModelsSection = strictObject({
|
|
4972
|
-
use: optional(slug),
|
|
4973
|
-
custom: optional(array(CustomTextModelShape))
|
|
4974
|
-
});
|
|
4975
|
-
var textModelsFile = /* @__PURE__ */ __name((env = process.env) => sharedConfigPath(storePath(env), env), "textModelsFile");
|
|
4976
|
-
var readTextModelsSection = /* @__PURE__ */ __name((env = process.env) => {
|
|
4977
|
-
const path2 = textModelsFile(env);
|
|
4978
|
-
const section2 = readSharedSection(path2, SECTION);
|
|
4979
|
-
if (section2 === void 0)
|
|
4980
|
-
return {};
|
|
4981
|
-
const checked = safeParse(TextModelsSection, section2);
|
|
4982
|
-
if (!checked.success) {
|
|
4983
|
-
const issue = checked.issues[0];
|
|
4984
|
-
const at2 = issue ? getDotPath(issue) : null;
|
|
4985
|
-
throw new CliError("configuration_error", `${path2}: ${SECTION}${at2 ? `.${at2}` : ""} ${issue?.message ?? "is not valid"}`);
|
|
4986
|
-
}
|
|
4987
|
-
const ids = checked.output.custom?.map(({ id: id6 }) => id6) ?? [];
|
|
4988
|
-
const twice = ids.find((id6, at2) => ids.indexOf(id6) !== at2);
|
|
4989
|
-
if (twice)
|
|
4990
|
-
throw new CliError("configuration_error", `${path2}: ${SECTION}.custom names ${twice} twice`);
|
|
4991
|
-
return checked.output;
|
|
4992
|
-
}, "readTextModelsSection");
|
|
4993
|
-
var writeTextModelsSection = /* @__PURE__ */ __name((section2, env = process.env) => writeSharedSection(textModelsFile(env), SECTION, section2.use === void 0 && !section2.custom?.length ? void 0 : section2), "writeTextModelsSection");
|
|
4994
|
-
var textModels = /* @__PURE__ */ __name((env = process.env) => [
|
|
4995
|
-
...TEXT_MODELS,
|
|
4996
|
-
...(readTextModelsSection(env).custom ?? []).map((model3) => ({ ...model3, custom: true }))
|
|
4997
|
-
], "textModels");
|
|
4998
|
-
var textModel = /* @__PURE__ */ __name((id6, env = process.env) => {
|
|
4999
|
-
const known = textModels(env);
|
|
5000
|
-
const found = known.find((model3) => model3.id === id6);
|
|
5001
|
-
if (!found) {
|
|
5002
|
-
throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${known.map((model3) => model3.id).join(", ")}`);
|
|
5003
|
-
}
|
|
5004
|
-
return found;
|
|
5005
|
-
}, "textModel");
|
|
5006
|
-
var downloaded = /* @__PURE__ */ __name((id6, env) => {
|
|
5007
|
-
const model3 = TEXT_MODELS.find((one) => one.id === id6);
|
|
5008
|
-
const directory = sharedModelsDirectory("text", env);
|
|
5009
|
-
return model3 !== void 0 && filesPresent(model3.files.map((file) => [file, join2(directory, model3.id, file.name)]));
|
|
5010
|
-
}, "downloaded");
|
|
5011
|
-
var chosenTextModel = /* @__PURE__ */ __name((env = process.env) => {
|
|
5012
|
-
const use = readTextModelsSection(env).use;
|
|
5013
|
-
if (use !== void 0)
|
|
5014
|
-
return { id: use, from: "chosen" };
|
|
5015
|
-
const kept = !downloaded(DEFAULT_TEXT_MODEL, env) && existsSync2(join2(sharedModelsDirectory("text", env), PREVIOUS_DEFAULT_TEXT_MODEL));
|
|
5016
|
-
return { id: kept ? PREVIOUS_DEFAULT_TEXT_MODEL : DEFAULT_TEXT_MODEL, from: "default" };
|
|
5017
|
-
}, "chosenTextModel");
|
|
5018
|
-
var mmarco = huggingFace("cross-encoder/mmarco-mMiniLMv2-L12-H384-v1", "1427fd652930e4ba29e8149678df786c240d8825");
|
|
5019
|
-
var bge = huggingFace("onnx-community/bge-reranker-v2-m3-ONNX", "6f5ff65298512715a1e669753bc754d2bc8f367b");
|
|
5020
|
-
var RERANK_MODELS = [
|
|
5021
|
-
{
|
|
5022
|
-
id: "mmarco",
|
|
5023
|
-
title: "mMARCO mMiniLMv2-L12 cross-encoder, 8-bit",
|
|
5024
|
-
languages: "about 100 languages, Russian and English among them",
|
|
5025
|
-
licence: "Apache-2.0",
|
|
5026
|
-
maxTokens: 512,
|
|
5027
|
-
// The x86 name is the quantizer's target; WebAssembly and native ONNX Runtime both run it on any processor.
|
|
5028
|
-
onnx: "onnx/model_quint8_avx2.onnx",
|
|
5029
|
-
files: [
|
|
5030
|
-
{
|
|
5031
|
-
name: "onnx/model_quint8_avx2.onnx",
|
|
5032
|
-
url: mmarco("onnx/model_quint8_avx2.onnx"),
|
|
5033
|
-
sha256: "6c2513767fb63d008a4377bef7a7a3555433d9436342bb53e35a3a72ffc52d4b",
|
|
5034
|
-
bytes: 118620016
|
|
5035
|
-
},
|
|
5036
|
-
{
|
|
5037
|
-
name: "tokenizer.json",
|
|
5038
|
-
url: mmarco("tokenizer.json"),
|
|
5039
|
-
sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
|
|
5040
|
-
bytes: 17082660
|
|
5041
|
-
},
|
|
5042
|
-
{
|
|
5043
|
-
name: "tokenizer_config.json",
|
|
5044
|
-
url: mmarco("tokenizer_config.json"),
|
|
5045
|
-
sha256: "e7fbfbfa6347b4e414c1cee50d142e2c2f9a895dad68b068ae83a8b564c3837e",
|
|
5046
|
-
bytes: 435
|
|
5047
|
-
}
|
|
5048
|
-
]
|
|
5049
|
-
},
|
|
5050
|
-
{
|
|
5051
|
-
id: "bge-reranker-v2-m3",
|
|
5052
|
-
title: "BGE reranker v2 m3, 8-bit",
|
|
5053
|
-
languages: "over 100 languages \u2014 better than mmarco in the benchmark, about seven times slower",
|
|
5054
|
-
licence: "Apache-2.0 (BAAI's; the ONNX export declares none)",
|
|
5055
|
-
maxTokens: 512,
|
|
5056
|
-
onnx: "onnx/model_quantized.onnx",
|
|
5057
|
-
files: [
|
|
5058
|
-
{
|
|
5059
|
-
name: "onnx/model_quantized.onnx",
|
|
5060
|
-
url: bge("onnx/model_quantized.onnx"),
|
|
5061
|
-
sha256: "912fc1215c2dbff6499700534bd8d31253af01573861abbfc43afd1fab6cce5d",
|
|
5062
|
-
bytes: 570727094
|
|
5063
|
-
},
|
|
5064
|
-
{
|
|
5065
|
-
name: "tokenizer.json",
|
|
5066
|
-
url: bge("tokenizer.json"),
|
|
5067
|
-
sha256: "8bf8afbfd11306bd872018c53bfdf2e160a56f8edbcf49933324404791c148d3",
|
|
5068
|
-
bytes: 17082900
|
|
5069
|
-
},
|
|
5070
|
-
{
|
|
5071
|
-
name: "tokenizer_config.json",
|
|
5072
|
-
url: bge("tokenizer_config.json"),
|
|
5073
|
-
sha256: "b87c8703482b0300d3da30e201519aa641f6a450f5eb5bf1e624afbf70c74d80",
|
|
5074
|
-
bytes: 1203
|
|
5075
|
-
}
|
|
5076
|
-
]
|
|
5077
|
-
}
|
|
5078
|
-
];
|
|
5079
|
-
var DEFAULT_RERANK_MODEL = "mmarco";
|
|
5080
|
-
var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
5081
|
-
const found = RERANK_MODELS.find((model3) => model3.id === id6);
|
|
5082
|
-
if (!found) {
|
|
5083
|
-
throw new CliError("validation_error", `no reranker ${id6} \u2014 one of: ${RERANK_MODELS.map((model3) => model3.id).join(", ")}`);
|
|
5084
|
-
}
|
|
5085
|
-
return found;
|
|
5086
|
-
}, "rerankModel");
|
|
5087
|
-
var vectorModelKey = /* @__PURE__ */ __name((model3) => {
|
|
5088
|
-
const weights = model3.custom ? model3.files.find(({ name }) => name === model3.onnx)?.sha256.slice(0, 12) : void 0;
|
|
5089
|
-
return `local:${model3.id}${weights ? `@${weights}` : ""}:${model3.dims}`;
|
|
5090
|
-
}, "vectorModelKey");
|
|
5091
|
-
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
5092
|
-
|
|
5093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
4837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
5094
4838
|
var HISTORY_MAX_DAYS = 1095;
|
|
5095
4839
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
5096
4840
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -5137,19 +4881,19 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
5137
4881
|
return { batch: { ...batch, messages }, skipped };
|
|
5138
4882
|
}, "limitBatch");
|
|
5139
4883
|
|
|
5140
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5141
|
-
import { existsSync as
|
|
5142
|
-
import { join as
|
|
5143
|
-
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) =>
|
|
4884
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
4885
|
+
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync3 } from "node:fs";
|
|
4886
|
+
import { join as join2 } from "node:path";
|
|
4887
|
+
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
5144
4888
|
var botFiles = /* @__PURE__ */ __name((app, profile, env = process.env) => {
|
|
5145
4889
|
const directory = botsDirectory(app, env);
|
|
5146
4890
|
return {
|
|
5147
|
-
registry:
|
|
5148
|
-
recipients:
|
|
5149
|
-
journal:
|
|
5150
|
-
updates:
|
|
5151
|
-
presses:
|
|
5152
|
-
checks:
|
|
4891
|
+
registry: join2(directory, `${profile}.json`),
|
|
4892
|
+
recipients: join2(directory, "recipients", `${profile}.json`),
|
|
4893
|
+
journal: join2(directory, "sends", `${profile}.jsonl`),
|
|
4894
|
+
updates: join2(directory, "updates", `${profile}.json`),
|
|
4895
|
+
presses: join2(directory, "presses", `${profile}.json`),
|
|
4896
|
+
checks: join2(directory, "checks", `${profile}.json`)
|
|
5153
4897
|
};
|
|
5154
4898
|
}, "botFiles");
|
|
5155
4899
|
var ChatRegistry = class {
|
|
@@ -5176,7 +4920,7 @@ var ChatRegistry = class {
|
|
|
5176
4920
|
}
|
|
5177
4921
|
/** Makes this bot known to `bot list` before it has seen any chat. */
|
|
5178
4922
|
touch() {
|
|
5179
|
-
if (!
|
|
4923
|
+
if (!existsSync2(this.#path))
|
|
5180
4924
|
writeSecurely(this.#path, `${JSON.stringify({ chats: [] }, null, 2)}
|
|
5181
4925
|
`, 384);
|
|
5182
4926
|
}
|
|
@@ -5205,7 +4949,7 @@ var ChatRegistry = class {
|
|
|
5205
4949
|
this.#write({ ...this.#read(), chats: [...byId.values()] });
|
|
5206
4950
|
}
|
|
5207
4951
|
#read() {
|
|
5208
|
-
if (!
|
|
4952
|
+
if (!existsSync2(this.#path))
|
|
5209
4953
|
return {};
|
|
5210
4954
|
try {
|
|
5211
4955
|
const parsed = JSON.parse(readFileSync3(this.#path, "utf8"));
|
|
@@ -5221,12 +4965,12 @@ var ChatRegistry = class {
|
|
|
5221
4965
|
};
|
|
5222
4966
|
var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
5223
4967
|
const directory = botsDirectory(app, env);
|
|
5224
|
-
if (!
|
|
4968
|
+
if (!existsSync2(directory))
|
|
5225
4969
|
return [];
|
|
5226
4970
|
return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
5227
4971
|
}, "registryProfiles");
|
|
5228
4972
|
|
|
5229
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4973
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5230
4974
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
5231
4975
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5232
4976
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -5521,20 +5265,20 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
5521
5265
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
5522
5266
|
}, "readConfigFile");
|
|
5523
5267
|
|
|
5524
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5525
|
-
import { existsSync as
|
|
5526
|
-
import { dirname, join as
|
|
5268
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
5269
|
+
import { existsSync as existsSync3, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
5270
|
+
import { dirname, join as join3 } from "node:path";
|
|
5527
5271
|
var DEFAULT_CONFIG = {
|
|
5528
5272
|
defaults: { limit: 20, keep_runs_for_days: 30, sends_per_hour: 30, update_check: true, skill_hint: true },
|
|
5529
5273
|
profiles: {}
|
|
5530
5274
|
};
|
|
5531
5275
|
function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
5532
|
-
if (
|
|
5276
|
+
if (existsSync3(path2))
|
|
5533
5277
|
return;
|
|
5534
5278
|
const directory = dirname(path2);
|
|
5535
5279
|
mkdirSync(directory, { recursive: true, mode: 448 });
|
|
5536
|
-
const temporary = mkdtempSync(
|
|
5537
|
-
const candidate =
|
|
5280
|
+
const temporary = mkdtempSync(join3(directory, ".config-"));
|
|
5281
|
+
const candidate = join3(temporary, "config.json");
|
|
5538
5282
|
try {
|
|
5539
5283
|
writeFileSync(candidate, `${JSON.stringify(config, null, 2)}
|
|
5540
5284
|
`, { flag: "wx", mode: 384 });
|
|
@@ -5550,7 +5294,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
5550
5294
|
}
|
|
5551
5295
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
5552
5296
|
|
|
5553
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5297
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
5554
5298
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5555
5299
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
5556
5300
|
const path2 = key.split(".");
|
|
@@ -5572,7 +5316,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
5572
5316
|
return { config, added };
|
|
5573
5317
|
}, "withSettingDefaults");
|
|
5574
5318
|
|
|
5575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5319
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5576
5320
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
5577
5321
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
5578
5322
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -5721,13 +5465,13 @@ var NoProfileHere = class extends CliError {
|
|
|
5721
5465
|
}
|
|
5722
5466
|
app;
|
|
5723
5467
|
constructor(app) {
|
|
5724
|
-
super("validation_error", `name a profile: there is none on this computer yet \u2014 create one with \`${app.command} personal setup\` (any name in place of personal)`, { profiles: [] });
|
|
5468
|
+
super("validation_error", `name a profile: there is none on this computer yet \u2014 create one with \`${app.command} personal setup\` (any name in place of personal)`, { reason: "profile.missing", profiles: [] });
|
|
5725
5469
|
this.app = app;
|
|
5726
5470
|
}
|
|
5727
5471
|
/** `words`: the command that was typed, without its arguments, so the suggestion runs as written. */
|
|
5728
|
-
withoutSetup(
|
|
5729
|
-
const command =
|
|
5730
|
-
return new CliError("validation_error", `name a profile: there is none on this computer yet \u2014 any name works, such as \`${command}\` (or set ${envName(this.app, "PROFILE")})`, { profiles: [] });
|
|
5472
|
+
withoutSetup(words) {
|
|
5473
|
+
const command = words ? `${this.app.command} personal ${words}` : `${this.app.command} personal \u2026`;
|
|
5474
|
+
return new CliError("validation_error", `name a profile: there is none on this computer yet \u2014 any name works, such as \`${command}\` (or set ${envName(this.app, "PROFILE")})`, { reason: "profile.missing", profiles: [] });
|
|
5731
5475
|
}
|
|
5732
5476
|
};
|
|
5733
5477
|
var first = /* @__PURE__ */ __name((candidates, fallback) => {
|
|
@@ -5805,7 +5549,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5805
5549
|
const here = profilesOf(config, env);
|
|
5806
5550
|
if (here.length === 0)
|
|
5807
5551
|
throw new NoProfileHere(app);
|
|
5808
|
-
throw new CliError("validation_error", `name a profile: \`${app.command} <profile> \u2026\` \u2014 profiles here: ${here.join(", ")} (or set ${PROFILE})`, { profiles: here });
|
|
5552
|
+
throw new CliError("validation_error", `name a profile: \`${app.command} <profile> \u2026\` \u2014 profiles here: ${here.join(", ")} (or set ${PROFILE})`, { reason: "profile.missing", profiles: here });
|
|
5809
5553
|
}, "unnamed");
|
|
5810
5554
|
const profilesOf = /* @__PURE__ */ __name((config, env) => profilesHere(app, [...namedProfiles(config), ...extension.profiles?.(env) ?? []], env), "profilesOf");
|
|
5811
5555
|
const botsOf = /* @__PURE__ */ __name((config, env) => [.../* @__PURE__ */ new Set([...Object.keys(config.bot?.profiles ?? {}), ...registryProfiles(app, env)])].sort(), "botsOf");
|
|
@@ -5934,7 +5678,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
5934
5678
|
updateCheck: updateCheck.value,
|
|
5935
5679
|
skillHint: skillHint.value,
|
|
5936
5680
|
configPath,
|
|
5937
|
-
configFound:
|
|
5681
|
+
configFound: existsSync4(configPath),
|
|
5938
5682
|
configuredProfiles: namedProfiles(config),
|
|
5939
5683
|
profilesHere: profilesOf(config, env),
|
|
5940
5684
|
accountProfiles: accountsOf(config, env, bots),
|
|
@@ -6052,9 +5796,11 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
6052
5796
|
saveConfigFile(path2, config);
|
|
6053
5797
|
return added;
|
|
6054
5798
|
}, "migrate");
|
|
5799
|
+
const settingSchema = /* @__PURE__ */ __name((key) => Object.hasOwn(profileEntries, key) ? profileEntries[key] : void 0, "settingSchema");
|
|
6055
5800
|
return {
|
|
6056
5801
|
resolveSettings,
|
|
6057
5802
|
configuredProfiles,
|
|
5803
|
+
settingSchema,
|
|
6058
5804
|
changeSetting,
|
|
6059
5805
|
migrate,
|
|
6060
5806
|
declaredSettings,
|
|
@@ -6098,7 +5844,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
6098
5844
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
6099
5845
|
}, "given");
|
|
6100
5846
|
|
|
6101
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5847
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
6102
5848
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests2) => {
|
|
6103
5849
|
const { deadline, signal, app } = environmentOf(command);
|
|
6104
5850
|
const now = deadline?.();
|
|
@@ -6124,9 +5870,17 @@ var provide = /* @__PURE__ */ __name((program2, environment) => {
|
|
|
6124
5870
|
environments.set(program2, environment);
|
|
6125
5871
|
}, "provide");
|
|
6126
5872
|
var environmentOf = /* @__PURE__ */ __name((command) => environments.get(rootOf(command)) ?? {}, "environmentOf");
|
|
5873
|
+
var PAGING = ["page", "limit", "all"];
|
|
5874
|
+
var withoutOwnPaging = /* @__PURE__ */ __name((command, flags) => {
|
|
5875
|
+
if (metaOf(command).origin !== "generated")
|
|
5876
|
+
return flags;
|
|
5877
|
+
const own = PAGING.filter((name) => command.options.some((option) => option.attributeName() === name));
|
|
5878
|
+
return own.length > 0 ? Object.fromEntries(Object.entries(flags).filter(([name]) => !own.includes(name))) : flags;
|
|
5879
|
+
}, "withoutOwnPaging");
|
|
6127
5880
|
var withAgentLevels = /* @__PURE__ */ __name((command, flags) => {
|
|
6128
5881
|
const overrides = environmentOf(command).agent?.overrides ?? [];
|
|
6129
|
-
|
|
5882
|
+
const read = withoutOwnPaging(command, flags);
|
|
5883
|
+
return overrides.length > 0 ? { ...read, permission: [...overrides, ...read.permission ?? []] } : read;
|
|
6130
5884
|
}, "withAgentLevels");
|
|
6131
5885
|
var secretInputOf = /* @__PURE__ */ __name((command) => {
|
|
6132
5886
|
const { stdin, stderr } = environmentOf(command);
|
|
@@ -6138,11 +5892,17 @@ var detailOf = /* @__PURE__ */ __name(({ brief, full }) => {
|
|
|
6138
5892
|
return brief ? { hitDetail: "brief" } : full ? { hitDetail: "full" } : {};
|
|
6139
5893
|
}, "detailOf");
|
|
6140
5894
|
var COMPACT_KEY = new Option(COMPACT_FLAG).attributeName();
|
|
5895
|
+
var outputFieldsOf = /* @__PURE__ */ __name((command) => {
|
|
5896
|
+
const fields = rootOf(command).getOptionValue("fields");
|
|
5897
|
+
return typeof fields === "string" ? { fields } : {};
|
|
5898
|
+
}, "outputFieldsOf");
|
|
6141
5899
|
var compactOf = /* @__PURE__ */ __name((command) => command.optsWithGlobals()[COMPACT_KEY] === true, "compactOf");
|
|
6142
5900
|
var outputFor = /* @__PURE__ */ __name((command) => {
|
|
6143
5901
|
const { streams, tty, env, agent } = environmentOf(command);
|
|
5902
|
+
const { fields: _own, ...flags } = command.optsWithGlobals();
|
|
6144
5903
|
return resolveOutput({
|
|
6145
|
-
...
|
|
5904
|
+
...flags,
|
|
5905
|
+
...outputFieldsOf(command),
|
|
6146
5906
|
...detailOf(command.optsWithGlobals()),
|
|
6147
5907
|
compact: compactOf(command),
|
|
6148
5908
|
...agent ? { capture: agent.result } : {},
|
|
@@ -6160,7 +5920,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
|
6160
5920
|
env,
|
|
6161
5921
|
compact: compactOf(command),
|
|
6162
5922
|
...detailOf(command.optsWithGlobals()),
|
|
6163
|
-
...
|
|
5923
|
+
...outputFieldsOf(command),
|
|
6164
5924
|
...environment.agent ? { capture: environment.agent.result } : {},
|
|
6165
5925
|
...environment.streams ? { streams: environment.streams } : {},
|
|
6166
5926
|
...environment.tty === void 0 ? {} : { tty: environment.tty }
|
|
@@ -6232,13 +5992,13 @@ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
|
|
|
6232
5992
|
return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
|
|
6233
5993
|
}, "inCommandRun");
|
|
6234
5994
|
var commandPath = /* @__PURE__ */ __name((command) => {
|
|
6235
|
-
const
|
|
5995
|
+
const words = [];
|
|
6236
5996
|
for (let current2 = command; current2?.parent; current2 = current2.parent)
|
|
6237
|
-
|
|
6238
|
-
return
|
|
5997
|
+
words.unshift(current2.name());
|
|
5998
|
+
return words.join(" ");
|
|
6239
5999
|
}, "commandPath");
|
|
6240
6000
|
|
|
6241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6001
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6242
6002
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6243
6003
|
var FETCH = { remote: "read", local: "write" };
|
|
6244
6004
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6341,10 +6101,10 @@ var refuseStoreChange = /* @__PURE__ */ __name((app, env) => {
|
|
|
6341
6101
|
throw readOnlyRefusal(lock, storeChangeRefusal(app));
|
|
6342
6102
|
}, "refuseStoreChange");
|
|
6343
6103
|
var pathOf2 = /* @__PURE__ */ __name((command) => {
|
|
6344
|
-
const
|
|
6104
|
+
const words = [];
|
|
6345
6105
|
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
6346
|
-
|
|
6347
|
-
return
|
|
6106
|
+
words.unshift(at2.name());
|
|
6107
|
+
return words;
|
|
6348
6108
|
}, "pathOf");
|
|
6349
6109
|
var changesMessenger = /* @__PURE__ */ __name((command) => {
|
|
6350
6110
|
const { path: path2, effects, lifetime, reaches } = "path" in command ? command : { path: pathOf2(command), ...metaOf(command) };
|
|
@@ -6378,7 +6138,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6378
6138
|
throw readOnlyRefusal(lock, what);
|
|
6379
6139
|
}, "refuseUnderReadOnly");
|
|
6380
6140
|
|
|
6381
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6141
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
6382
6142
|
var account = strictObject({
|
|
6383
6143
|
provider: text,
|
|
6384
6144
|
id,
|
|
@@ -6388,7 +6148,7 @@ var account = strictObject({
|
|
|
6388
6148
|
scope: optional(picklist(["personal", "work"]))
|
|
6389
6149
|
});
|
|
6390
6150
|
|
|
6391
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
6392
6152
|
var accountSession = strictObject({
|
|
6393
6153
|
current: boolean(),
|
|
6394
6154
|
client: nullable(text),
|
|
@@ -6398,7 +6158,7 @@ var accountSession = strictObject({
|
|
|
6398
6158
|
created_at: optional(nullable(time))
|
|
6399
6159
|
});
|
|
6400
6160
|
|
|
6401
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
6402
6162
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
6403
6163
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
6404
6164
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -6427,7 +6187,7 @@ var accountRemoval = strictObject({
|
|
|
6427
6187
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
6428
6188
|
});
|
|
6429
6189
|
|
|
6430
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6190
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
6431
6191
|
var accountProfile = strictObject({
|
|
6432
6192
|
profile: id,
|
|
6433
6193
|
current: boolean(),
|
|
@@ -6439,7 +6199,7 @@ var accountProfile = strictObject({
|
|
|
6439
6199
|
bot: optional(literal(true))
|
|
6440
6200
|
});
|
|
6441
6201
|
|
|
6442
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6202
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
6443
6203
|
var milliseconds = pipe(number(), minValue(0));
|
|
6444
6204
|
var counterReading = strictObject({
|
|
6445
6205
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -6451,7 +6211,7 @@ var counterReading = strictObject({
|
|
|
6451
6211
|
});
|
|
6452
6212
|
var selection = record(string(), unknown());
|
|
6453
6213
|
|
|
6454
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
6455
6215
|
var adminRow = strictObject({
|
|
6456
6216
|
ref: reference,
|
|
6457
6217
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -6504,7 +6264,7 @@ var adminReport = strictObject({
|
|
|
6504
6264
|
rows: array(adminRow)
|
|
6505
6265
|
});
|
|
6506
6266
|
|
|
6507
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6267
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
6508
6268
|
var closeSuggestion = strictObject({
|
|
6509
6269
|
as: picklist(["done", "dismissed"]),
|
|
6510
6270
|
/** The agent's name. */
|
|
@@ -6566,7 +6326,7 @@ var task = strictObject({
|
|
|
6566
6326
|
updated_at: optional(time)
|
|
6567
6327
|
});
|
|
6568
6328
|
|
|
6569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6329
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
6570
6330
|
var agendaChat = strictObject({
|
|
6571
6331
|
chat: reference,
|
|
6572
6332
|
title: nullable(text),
|
|
@@ -6636,11 +6396,11 @@ var agenda = strictObject({
|
|
|
6636
6396
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
6637
6397
|
});
|
|
6638
6398
|
|
|
6639
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6399
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
6640
6400
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
6641
6401
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
6642
6402
|
|
|
6643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
6644
6404
|
var attachment = strictObject({
|
|
6645
6405
|
/** The message it came with, as a locator; absent inside that message. */
|
|
6646
6406
|
message: optional(reference),
|
|
@@ -6685,7 +6445,7 @@ var hitFile = strictObject({
|
|
|
6685
6445
|
local_path: optional(text)
|
|
6686
6446
|
});
|
|
6687
6447
|
|
|
6688
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6448
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
6689
6449
|
var actionableError = objectWithRest({
|
|
6690
6450
|
code: text,
|
|
6691
6451
|
message: text,
|
|
@@ -6702,7 +6462,7 @@ var batchResult = strictObject({
|
|
|
6702
6462
|
max_error_percent: count
|
|
6703
6463
|
});
|
|
6704
6464
|
|
|
6705
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6465
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
6706
6466
|
var extractionItem = strictObject({
|
|
6707
6467
|
ref: reference,
|
|
6708
6468
|
attachment: count,
|
|
@@ -6735,7 +6495,7 @@ var extractionReport = strictObject({
|
|
|
6735
6495
|
cursor: optional(text)
|
|
6736
6496
|
});
|
|
6737
6497
|
|
|
6738
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6498
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
6739
6499
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
6740
6500
|
var attachmentBytes = strictObject({
|
|
6741
6501
|
ref: reference,
|
|
@@ -6766,7 +6526,7 @@ var attachmentTextChange = strictObject({
|
|
|
6766
6526
|
text: optional(text)
|
|
6767
6527
|
});
|
|
6768
6528
|
|
|
6769
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
6770
6530
|
var WEIGHTS = {
|
|
6771
6531
|
bot: 3,
|
|
6772
6532
|
scam: 3,
|
|
@@ -6791,7 +6551,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
6791
6551
|
var DIGITS = /\d{5,}/;
|
|
6792
6552
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
6793
6553
|
|
|
6794
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6554
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
6795
6555
|
var linkedIdentity = strictObject({
|
|
6796
6556
|
provider: text,
|
|
6797
6557
|
id,
|
|
@@ -6846,7 +6606,7 @@ var contactCheck = strictObject({
|
|
|
6846
6606
|
checked_at: time
|
|
6847
6607
|
});
|
|
6848
6608
|
|
|
6849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
6850
6610
|
var member = strictObject({
|
|
6851
6611
|
id,
|
|
6852
6612
|
name: nullable(text),
|
|
@@ -6869,7 +6629,7 @@ var member = strictObject({
|
|
|
6869
6629
|
check: optional(record(string(), unknown()))
|
|
6870
6630
|
});
|
|
6871
6631
|
|
|
6872
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6632
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
6873
6633
|
var setting = optional(nullable(boolean()));
|
|
6874
6634
|
var chat = strictObject({
|
|
6875
6635
|
ref: reference,
|
|
@@ -6910,7 +6670,7 @@ var chat = strictObject({
|
|
|
6910
6670
|
members: optional(array(member))
|
|
6911
6671
|
});
|
|
6912
6672
|
|
|
6913
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
6914
6674
|
var quoted = strictObject({
|
|
6915
6675
|
id,
|
|
6916
6676
|
sender_id: nullable(id),
|
|
@@ -7024,12 +6784,14 @@ var message = strictObject({
|
|
|
7024
6784
|
/** Mail `review`: no earlier stored email, in any account, came from this address. */
|
|
7025
6785
|
new_sender: optional(boolean()),
|
|
7026
6786
|
/** Mail `review`: how many identities the sender's person has; 1 is this address alone. */
|
|
7027
|
-
sender_identities: optional(number())
|
|
6787
|
+
sender_identities: optional(number()),
|
|
6788
|
+
/** Mail `review`: how `inbox` sorted the thread, by the AI model; the reason is untrusted. */
|
|
6789
|
+
inbox: optional(strictObject({ bucket: picklist(["answer", "read", "later"]), reason: text }))
|
|
7028
6790
|
})),
|
|
7029
6791
|
provider_metadata: providerMetadata
|
|
7030
6792
|
});
|
|
7031
6793
|
|
|
7032
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6794
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
|
|
7033
6795
|
var recordedMeeting = strictObject({
|
|
7034
6796
|
ref: reference,
|
|
7035
6797
|
meeting_id: count,
|
|
@@ -7038,11 +6800,15 @@ var recordedMeeting = strictObject({
|
|
|
7038
6800
|
started_at: nullable(time),
|
|
7039
6801
|
duration_ms: nullable(count),
|
|
7040
6802
|
has_transcript: boolean(),
|
|
6803
|
+
/** The start of its transcript, on one line: what the people said, never instructions. */
|
|
6804
|
+
snippet: optional(nullable(text)),
|
|
7041
6805
|
event: nullable(reference),
|
|
7042
|
-
people: array(reference)
|
|
6806
|
+
people: array(reference),
|
|
6807
|
+
/** Present only on a phone call: its direction, manager and the other side's number. */
|
|
6808
|
+
call: optional(meetingCall)
|
|
7043
6809
|
});
|
|
7044
6810
|
|
|
7045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6811
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
7046
6812
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
7047
6813
|
var contextMessage = strictObject({
|
|
7048
6814
|
locator: reference,
|
|
@@ -7248,7 +7014,7 @@ var contactPreparation = strictObject({
|
|
|
7248
7014
|
})
|
|
7249
7015
|
});
|
|
7250
7016
|
|
|
7251
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
7252
7018
|
var nullableText = nullable(text);
|
|
7253
7019
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
7254
7020
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -7266,6 +7032,12 @@ var activity = strictObject({
|
|
|
7266
7032
|
created_at: time,
|
|
7267
7033
|
updated_at: time
|
|
7268
7034
|
});
|
|
7035
|
+
var stageEntry = strictObject({
|
|
7036
|
+
from: nullableText,
|
|
7037
|
+
to: text,
|
|
7038
|
+
at: time,
|
|
7039
|
+
exact: boolean()
|
|
7040
|
+
});
|
|
7269
7041
|
var deal = strictObject({
|
|
7270
7042
|
id,
|
|
7271
7043
|
ref: reference,
|
|
@@ -7296,7 +7068,10 @@ var deal = strictObject({
|
|
|
7296
7068
|
external_id: nullableText,
|
|
7297
7069
|
/** A CRM copy's assignee, the identity `<account>/user/<id>`. */
|
|
7298
7070
|
assignee: nullableText,
|
|
7299
|
-
/**
|
|
7071
|
+
/**
|
|
7072
|
+
* A CRM copy's own fields by code; a list field's value is its option's label, `option_id` its id. `amount_note` is
|
|
7073
|
+
* WireCat's own note, not a CRM field: the CRM's amount the store could not keep, and why.
|
|
7074
|
+
*/
|
|
7300
7075
|
provider_metadata: record(string(), strictObject({
|
|
7301
7076
|
label: nullable(string()),
|
|
7302
7077
|
value: unknown(),
|
|
@@ -7321,9 +7096,30 @@ var deal = strictObject({
|
|
|
7321
7096
|
activities: optional(array(activity)),
|
|
7322
7097
|
/** `show` of a CRM copy: the newest recorded meetings and calls of its people, in its account's scope. */
|
|
7323
7098
|
meetings: optional(array(recordedMeeting)),
|
|
7099
|
+
/**
|
|
7100
|
+
* `show` of a CRM copy: every stage it entered, oldest first. Once the CRM's own history names any, it alone is
|
|
7101
|
+
* listed, from as far back as it was read; the copy's changes between syncs are left out.
|
|
7102
|
+
*/
|
|
7103
|
+
stage_history: optional(array(stageEntry)),
|
|
7324
7104
|
untrusted
|
|
7325
7105
|
});
|
|
7326
7106
|
var lead = deal;
|
|
7107
|
+
var amount = strictObject({ amount: text, currency: text, items: count });
|
|
7108
|
+
var winRate = nullable(number());
|
|
7109
|
+
var pipelineOwner = strictObject({
|
|
7110
|
+
assignee: nullableText,
|
|
7111
|
+
name: nullableText,
|
|
7112
|
+
open: count,
|
|
7113
|
+
won: count,
|
|
7114
|
+
lost: count,
|
|
7115
|
+
win_rate: winRate
|
|
7116
|
+
});
|
|
7117
|
+
var pipelineClosed = strictObject({
|
|
7118
|
+
won: count,
|
|
7119
|
+
lost: count,
|
|
7120
|
+
win_rate: winRate,
|
|
7121
|
+
won_amounts: array(amount)
|
|
7122
|
+
});
|
|
7327
7123
|
var pipelineStage = strictObject({
|
|
7328
7124
|
name: text,
|
|
7329
7125
|
position: count,
|
|
@@ -7336,8 +7132,11 @@ var pipelineStage = strictObject({
|
|
|
7336
7132
|
conversion: optional(nullable(number())),
|
|
7337
7133
|
/** With a funnel: rows standing in it now, and their sum per currency, never converted. */
|
|
7338
7134
|
items: optional(count),
|
|
7339
|
-
amounts: optional(array(
|
|
7135
|
+
amounts: optional(array(amount)),
|
|
7136
|
+
/** With a funnel: the median days a row of the window stayed in it before it moved on. */
|
|
7137
|
+
median_days: optional(nullable(number()))
|
|
7340
7138
|
});
|
|
7139
|
+
var pipelineStageAnswer = pipelineStage;
|
|
7341
7140
|
var pipeline = strictObject({
|
|
7342
7141
|
id,
|
|
7343
7142
|
ref: reference,
|
|
@@ -7345,10 +7144,20 @@ var pipeline = strictObject({
|
|
|
7345
7144
|
kind: picklist(["deal", "lead"]),
|
|
7346
7145
|
account: crmAccount,
|
|
7347
7146
|
external_id: nullableText,
|
|
7348
|
-
stages: array(
|
|
7147
|
+
stages: array(pipelineStageAnswer),
|
|
7349
7148
|
created_at: time,
|
|
7350
|
-
|
|
7149
|
+
/** `show`: the rows made in the window. */
|
|
7150
|
+
totals: optional(strictObject({ items: count, open: count, won: count, lost: count, win_rate: winRate })),
|
|
7151
|
+
window: optional(strictObject({ since: nullable(time), until: nullable(time) })),
|
|
7351
7152
|
since: optional(day),
|
|
7153
|
+
/** `show`: rows closed on a day in the window, in the owner's zone. */
|
|
7154
|
+
closed: optional(pipelineClosed),
|
|
7155
|
+
/** `show`: days from made to won, of the rows won in the window. */
|
|
7156
|
+
cycle: optional(strictObject({ median_days: nullable(number()), items: count })),
|
|
7157
|
+
owners: optional(array(pipelineOwner)),
|
|
7158
|
+
lost_reasons: optional(array(strictObject({ reason: text, items: count }))),
|
|
7159
|
+
/** `show`: rows whose stages came from the CRM's own history, and from the copy's diffs. */
|
|
7160
|
+
history: optional(strictObject({ exact: count, copy: count })),
|
|
7352
7161
|
untrusted
|
|
7353
7162
|
});
|
|
7354
7163
|
var stage = strictObject({
|
|
@@ -7356,10 +7165,12 @@ var stage = strictObject({
|
|
|
7356
7165
|
pipeline: reference,
|
|
7357
7166
|
pipeline_name: text,
|
|
7358
7167
|
kind: picklist(["deal", "lead"]),
|
|
7168
|
+
/** A CRM's stage: the task its `stage-tasks` rule opens when a row enters it, or `null`. */
|
|
7169
|
+
stage_task: optional(nullable(strictObject({ title: text, due_days: count }))),
|
|
7359
7170
|
untrusted
|
|
7360
7171
|
});
|
|
7361
7172
|
|
|
7362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/business-context.js
|
|
7363
7174
|
var nullableText2 = nullable(text);
|
|
7364
7175
|
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
7365
7176
|
var standing = picklist(STANDINGS);
|
|
@@ -7445,6 +7256,16 @@ var taskLine = strictObject({
|
|
|
7445
7256
|
due_at: nullable(time)
|
|
7446
7257
|
});
|
|
7447
7258
|
var counts = { messages: count, mail: count, meetings: count };
|
|
7259
|
+
var touch = {
|
|
7260
|
+
kind: picklist(["message", "mail", "meeting"]),
|
|
7261
|
+
ref: reference,
|
|
7262
|
+
title: nullableText2,
|
|
7263
|
+
at: nullable(time),
|
|
7264
|
+
people: array(reference),
|
|
7265
|
+
text: optional(nullableText2),
|
|
7266
|
+
call: optional(meetingCall),
|
|
7267
|
+
duration_ms: optional(nullable(count))
|
|
7268
|
+
};
|
|
7448
7269
|
var personBusiness = strictObject({
|
|
7449
7270
|
organizations: section(strictObject({ ...related.entries, categories })),
|
|
7450
7271
|
reports_to: section(related),
|
|
@@ -7484,13 +7305,15 @@ var organizationContext = strictObject({
|
|
|
7484
7305
|
money,
|
|
7485
7306
|
/** Counts only, through its own people, in the accounts read. */
|
|
7486
7307
|
communications: strictObject({ ...counts, has_more: boolean() }),
|
|
7308
|
+
/** Its people's messages, mail and meetings, newest first. */
|
|
7309
|
+
history: section(strictObject(touch)),
|
|
7487
7310
|
tasks: section(taskLine),
|
|
7488
7311
|
coverage: coverage2
|
|
7489
7312
|
});
|
|
7490
7313
|
var { untrusted: _, ...dealRow } = deal.entries;
|
|
7491
7314
|
var dealContext = strictObject({
|
|
7492
7315
|
deal: strictObject(dealRow),
|
|
7493
|
-
stages: section(strictObject({ from: nullableText2, to: text, pipeline: reference, at: time })),
|
|
7316
|
+
stages: section(strictObject({ from: nullableText2, to: text, pipeline: reference, at: time, exact: boolean() })),
|
|
7494
7317
|
organization: nullable(strictObject({ ref: reference, name: nullableText2, categories })),
|
|
7495
7318
|
participants: section(related),
|
|
7496
7319
|
owner: nullable(related),
|
|
@@ -7499,14 +7322,7 @@ var dealContext = strictObject({
|
|
|
7499
7322
|
window: strictObject({ since: time, until: time }),
|
|
7500
7323
|
/** Shared people within its lifetime: `proposed`, an overlap of people, never a link. */
|
|
7501
7324
|
communications: strictObject({
|
|
7502
|
-
...section(strictObject({
|
|
7503
|
-
kind: picklist(["message", "mail", "meeting"]),
|
|
7504
|
-
ref: reference,
|
|
7505
|
-
title: nullableText2,
|
|
7506
|
-
at: nullable(time),
|
|
7507
|
-
people: array(reference),
|
|
7508
|
-
standing: literal("proposed")
|
|
7509
|
-
})).entries,
|
|
7325
|
+
...section(strictObject({ ...touch, standing: literal("proposed") })).entries,
|
|
7510
7326
|
counts: strictObject(counts)
|
|
7511
7327
|
}),
|
|
7512
7328
|
tasks: section(taskLine),
|
|
@@ -7533,7 +7349,7 @@ var dealBrief = strictObject({
|
|
|
7533
7349
|
not_read: coverage2.entries.not_read
|
|
7534
7350
|
});
|
|
7535
7351
|
|
|
7536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7352
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7537
7353
|
var chart = strictObject({
|
|
7538
7354
|
version: literal(1),
|
|
7539
7355
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7548,7 +7364,7 @@ var chart = strictObject({
|
|
|
7548
7364
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7549
7365
|
});
|
|
7550
7366
|
|
|
7551
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7367
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7552
7368
|
var named = strictObject({
|
|
7553
7369
|
id,
|
|
7554
7370
|
title: nullable(text),
|
|
@@ -7571,7 +7387,7 @@ var folder = strictObject({
|
|
|
7571
7387
|
excluded_chats: optional(array(named))
|
|
7572
7388
|
});
|
|
7573
7389
|
|
|
7574
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7390
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7575
7391
|
var inviteLink = strictObject({
|
|
7576
7392
|
link: text,
|
|
7577
7393
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7587,7 +7403,7 @@ var inviteLink = strictObject({
|
|
|
7587
7403
|
joined_count: optional(count)
|
|
7588
7404
|
});
|
|
7589
7405
|
|
|
7590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7406
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7591
7407
|
var operated = { operation_id: id, chat_id: id };
|
|
7592
7408
|
var group = strictObject({
|
|
7593
7409
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -7667,7 +7483,7 @@ var chatFolderOrder = strictObject({
|
|
|
7667
7483
|
folders: array(strictObject({ id, title: text }))
|
|
7668
7484
|
});
|
|
7669
7485
|
|
|
7670
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7486
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
7671
7487
|
var operated2 = { operation_id: id, chat_id: id };
|
|
7672
7488
|
var chatRemoval = strictObject(operated2);
|
|
7673
7489
|
var chatMuting = strictObject({
|
|
@@ -7678,7 +7494,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
7678
7494
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
7679
7495
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
7680
7496
|
|
|
7681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
7682
7498
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
7683
7499
|
var chatEvent = strictObject({
|
|
7684
7500
|
chat_id: id,
|
|
@@ -7695,7 +7511,7 @@ var chatEvent = strictObject({
|
|
|
7695
7511
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
7696
7512
|
});
|
|
7697
7513
|
|
|
7698
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
7699
7515
|
var chatMetadata = strictObject({
|
|
7700
7516
|
chat_id: id,
|
|
7701
7517
|
title: nullable(text),
|
|
@@ -7710,7 +7526,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
7710
7526
|
has_more: boolean()
|
|
7711
7527
|
});
|
|
7712
7528
|
|
|
7713
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7529
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
7714
7530
|
var action = picklist(["report", "delete", "remove"]);
|
|
7715
7531
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
7716
7532
|
var chatRules = strictObject({
|
|
@@ -7747,7 +7563,17 @@ var chatModeration = strictObject({
|
|
|
7747
7563
|
}))
|
|
7748
7564
|
});
|
|
7749
7565
|
|
|
7750
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7566
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
|
|
7567
|
+
var chatSending = strictObject({
|
|
7568
|
+
mode: picklist(["allowed", "ask", "denied"]),
|
|
7569
|
+
meaning: text,
|
|
7570
|
+
/** When the owner last set it; `null` while it is the default, ask. */
|
|
7571
|
+
since: nullable(time),
|
|
7572
|
+
/** `set` only: whether this run changed it. */
|
|
7573
|
+
changed: optional(boolean())
|
|
7574
|
+
});
|
|
7575
|
+
|
|
7576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
7751
7577
|
var optionalCount = optional(count);
|
|
7752
7578
|
var minutes = nullable(number());
|
|
7753
7579
|
var chatStats = strictObject({
|
|
@@ -7823,7 +7649,7 @@ var taskStats = strictObject({
|
|
|
7823
7649
|
}))
|
|
7824
7650
|
});
|
|
7825
7651
|
|
|
7826
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7652
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
7827
7653
|
var memberCount = strictObject({
|
|
7828
7654
|
day: pipe(text, isoDate()),
|
|
7829
7655
|
participants: nullable(count),
|
|
@@ -7846,7 +7672,7 @@ var chatTracking = strictObject({
|
|
|
7846
7672
|
tracked: boolean()
|
|
7847
7673
|
});
|
|
7848
7674
|
|
|
7849
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
7850
7676
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7851
7677
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
7852
7678
|
var profileFields = {
|
|
@@ -7884,7 +7710,7 @@ var profileFields = {
|
|
|
7884
7710
|
}))
|
|
7885
7711
|
};
|
|
7886
7712
|
|
|
7887
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7713
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
7888
7714
|
var contact = strictObject({
|
|
7889
7715
|
ref: reference,
|
|
7890
7716
|
id,
|
|
@@ -7915,7 +7741,7 @@ var contact = strictObject({
|
|
|
7915
7741
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
7916
7742
|
});
|
|
7917
7743
|
|
|
7918
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7744
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
7919
7745
|
var contactNote = strictObject({
|
|
7920
7746
|
id,
|
|
7921
7747
|
/** The contact, as a `contact:` reference. */
|
|
@@ -7927,13 +7753,13 @@ var contactNote = strictObject({
|
|
|
7927
7753
|
updated_at: time
|
|
7928
7754
|
});
|
|
7929
7755
|
|
|
7930
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7756
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
7931
7757
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
7932
7758
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
7933
7759
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
7934
7760
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
7935
7761
|
|
|
7936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
7937
7763
|
var conversation = strictObject({
|
|
7938
7764
|
id,
|
|
7939
7765
|
chat: reference,
|
|
@@ -7948,7 +7774,7 @@ var conversation = strictObject({
|
|
|
7948
7774
|
rules_version: count
|
|
7949
7775
|
});
|
|
7950
7776
|
|
|
7951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
7952
7778
|
var conversationBuild = strictObject({
|
|
7953
7779
|
chat: id,
|
|
7954
7780
|
messages: count,
|
|
@@ -7973,7 +7799,7 @@ var catchUpPreparation = strictObject({
|
|
|
7973
7799
|
prepared: optional(conversationPreparation)
|
|
7974
7800
|
});
|
|
7975
7801
|
|
|
7976
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
7977
7803
|
var conversationDetails = union([
|
|
7978
7804
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
7979
7805
|
message
|
|
@@ -8063,7 +7889,7 @@ var conversationHit = strictObject({
|
|
|
8063
7889
|
stale: boolean()
|
|
8064
7890
|
});
|
|
8065
7891
|
|
|
8066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7892
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8067
7893
|
var counters = strictObject({
|
|
8068
7894
|
cutoff: time,
|
|
8069
7895
|
max_age_ms: milliseconds,
|
|
@@ -8093,7 +7919,7 @@ var counterRefresh = strictObject({
|
|
|
8093
7919
|
complete: optional(boolean())
|
|
8094
7920
|
});
|
|
8095
7921
|
|
|
8096
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8097
7923
|
var document = strictObject({
|
|
8098
7924
|
ref: reference,
|
|
8099
7925
|
id,
|
|
@@ -8108,7 +7934,7 @@ var document = strictObject({
|
|
|
8108
7934
|
owners: optional(array(text))
|
|
8109
7935
|
});
|
|
8110
7936
|
|
|
8111
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7937
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8112
7938
|
var documentLink = strictObject({
|
|
8113
7939
|
ref: reference,
|
|
8114
7940
|
url: text,
|
|
@@ -8119,7 +7945,7 @@ var documentLink = strictObject({
|
|
|
8119
7945
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8120
7946
|
});
|
|
8121
7947
|
|
|
8122
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8123
7949
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8124
7950
|
var contribution = strictObject({
|
|
8125
7951
|
message: evidenceMessage,
|
|
@@ -8149,7 +7975,7 @@ var retentionStay = strictObject({
|
|
|
8149
7975
|
});
|
|
8150
7976
|
var evidence = union([contribution, retentionStay]);
|
|
8151
7977
|
|
|
8152
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7978
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8153
7979
|
var fact = strictObject({
|
|
8154
7980
|
ref: reference,
|
|
8155
7981
|
id,
|
|
@@ -8180,9 +8006,20 @@ var fact = strictObject({
|
|
|
8180
8006
|
updated_at: time
|
|
8181
8007
|
});
|
|
8182
8008
|
|
|
8183
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8184
8010
|
var hit = strictObject({
|
|
8185
|
-
kind: picklist([
|
|
8011
|
+
kind: picklist([
|
|
8012
|
+
"message",
|
|
8013
|
+
"mail",
|
|
8014
|
+
"note",
|
|
8015
|
+
"document",
|
|
8016
|
+
"event",
|
|
8017
|
+
"meeting",
|
|
8018
|
+
"deal",
|
|
8019
|
+
"lead",
|
|
8020
|
+
"crm_file",
|
|
8021
|
+
...BUSINESS_KINDS
|
|
8022
|
+
]),
|
|
8186
8023
|
ref: reference,
|
|
8187
8024
|
provider: text,
|
|
8188
8025
|
url: optional(text),
|
|
@@ -8228,7 +8065,7 @@ var hit = strictObject({
|
|
|
8228
8065
|
untrusted
|
|
8229
8066
|
});
|
|
8230
8067
|
|
|
8231
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8232
8069
|
var identity = strictObject({
|
|
8233
8070
|
ref: reference,
|
|
8234
8071
|
provider: text,
|
|
@@ -8244,7 +8081,7 @@ var identity = strictObject({
|
|
|
8244
8081
|
person: optional(nullable(reference))
|
|
8245
8082
|
});
|
|
8246
8083
|
|
|
8247
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8248
8085
|
var imageEmbedding = strictObject({
|
|
8249
8086
|
model: text,
|
|
8250
8087
|
embedded: count,
|
|
@@ -8253,13 +8090,13 @@ var imageEmbedding = strictObject({
|
|
|
8253
8090
|
more: boolean()
|
|
8254
8091
|
});
|
|
8255
8092
|
|
|
8256
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8093
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8257
8094
|
import { spawn } from "node:child_process";
|
|
8258
8095
|
import { randomBytes } from "node:crypto";
|
|
8259
|
-
import { closeSync, existsSync as
|
|
8260
|
-
import { dirname as dirname2, join as
|
|
8096
|
+
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync5, realpathSync, rmSync as rmSync2 } from "node:fs";
|
|
8097
|
+
import { dirname as dirname2, join as join4 } from "node:path";
|
|
8261
8098
|
|
|
8262
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8099
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8263
8100
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8264
8101
|
const total = input.total ?? null;
|
|
8265
8102
|
const updated = input.updatedAt ?? null;
|
|
@@ -8275,7 +8112,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8275
8112
|
};
|
|
8276
8113
|
}, "progressOf");
|
|
8277
8114
|
|
|
8278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8115
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8279
8116
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8280
8117
|
const run = currentRun();
|
|
8281
8118
|
const trace = traceId ?? run.traceId;
|
|
@@ -8289,7 +8126,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8289
8126
|
}));
|
|
8290
8127
|
}, "recordLogFor");
|
|
8291
8128
|
|
|
8292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8129
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8293
8130
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8294
8131
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8295
8132
|
const out = openSync(log, "a", 384);
|
|
@@ -8305,15 +8142,15 @@ var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
|
8305
8142
|
closeSync(out);
|
|
8306
8143
|
}
|
|
8307
8144
|
}, "spawnDetached");
|
|
8308
|
-
var jobsDir = /* @__PURE__ */ __name((app, env) =>
|
|
8309
|
-
var jobPath = /* @__PURE__ */ __name((dir, id6) =>
|
|
8145
|
+
var jobsDir = /* @__PURE__ */ __name((app, env) => join4(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "backfill"), "jobsDir");
|
|
8146
|
+
var jobPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.json`), "jobPath");
|
|
8310
8147
|
var saveJob = /* @__PURE__ */ __name((dir, job2) => {
|
|
8311
8148
|
mkdirSync2(dir, { recursive: true, mode: 448 });
|
|
8312
8149
|
writeSecurely(jobPath(dir, job2.id), `${JSON.stringify(job2, null, 2)}
|
|
8313
8150
|
`, 384);
|
|
8314
8151
|
}, "saveJob");
|
|
8315
8152
|
var readJob = /* @__PURE__ */ __name((dir, id6) => {
|
|
8316
|
-
if (!/^[\w-]+$/.test(id6) || !
|
|
8153
|
+
if (!/^[\w-]+$/.test(id6) || !existsSync5(jobPath(dir, id6)))
|
|
8317
8154
|
return void 0;
|
|
8318
8155
|
try {
|
|
8319
8156
|
return JSON.parse(readFileSync5(jobPath(dir, id6), "utf8"));
|
|
@@ -8321,7 +8158,7 @@ var readJob = /* @__PURE__ */ __name((dir, id6) => {
|
|
|
8321
8158
|
return void 0;
|
|
8322
8159
|
}
|
|
8323
8160
|
}, "readJob");
|
|
8324
|
-
var recordsPath = /* @__PURE__ */ __name((dir, id6) =>
|
|
8161
|
+
var recordsPath = /* @__PURE__ */ __name((dir, id6) => join4(dir, `${id6}.jsonl`), "recordsPath");
|
|
8325
8162
|
var tracedJob = /* @__PURE__ */ __name((env) => {
|
|
8326
8163
|
const trace = childTrace();
|
|
8327
8164
|
return { env: { ...env, TRACEPARENT: trace.traceparent }, traceId: trace.traceId };
|
|
@@ -8358,7 +8195,7 @@ var removeJob = /* @__PURE__ */ __name((dir, job2) => {
|
|
|
8358
8195
|
if (dirname2(job2.log) === dir)
|
|
8359
8196
|
rmSync2(job2.log, { force: true });
|
|
8360
8197
|
}, "removeJob");
|
|
8361
|
-
var listJobs = /* @__PURE__ */ __name((dir) =>
|
|
8198
|
+
var listJobs = /* @__PURE__ */ __name((dir) => existsSync5(dir) ? readdirSync3(dir).filter((name) => name.endsWith(".json")).flatMap((name) => readJob(dir, name.slice(0, -".json".length)) ?? []).sort((a, b) => b.startedAt.localeCompare(a.startedAt)) : [], "listJobs");
|
|
8362
8199
|
var jobDetails = /* @__PURE__ */ __name((job2) => ({
|
|
8363
8200
|
job: job2.id,
|
|
8364
8201
|
profile: job2.profile,
|
|
@@ -8424,7 +8261,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8424
8261
|
const startedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
8425
8262
|
const id6 = `${startedAt.replace(/[-:]/g, "").slice(0, 15)}-${randomBytes(3).toString("hex")}`;
|
|
8426
8263
|
mkdirSync2(dir, { recursive: true, mode: 448 });
|
|
8427
|
-
const log =
|
|
8264
|
+
const log = join4(dir, `${id6}.log`);
|
|
8428
8265
|
const job2 = {
|
|
8429
8266
|
id: id6,
|
|
8430
8267
|
chat: input.chat,
|
|
@@ -8444,7 +8281,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8444
8281
|
return { job: id6, pid, chat: input.chat, log };
|
|
8445
8282
|
}, "startArchiveJob");
|
|
8446
8283
|
|
|
8447
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
8448
8285
|
var problem = strictObject({ code: text, message: text });
|
|
8449
8286
|
var job = strictObject({
|
|
8450
8287
|
id,
|
|
@@ -8467,7 +8304,7 @@ var job = strictObject({
|
|
|
8467
8304
|
error: optional(problem)
|
|
8468
8305
|
});
|
|
8469
8306
|
|
|
8470
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8307
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
8471
8308
|
var joinRequest = strictObject({
|
|
8472
8309
|
person_id: id,
|
|
8473
8310
|
name: nullable(text),
|
|
@@ -8478,7 +8315,7 @@ var joinRequest = strictObject({
|
|
|
8478
8315
|
about: optional(text)
|
|
8479
8316
|
});
|
|
8480
8317
|
|
|
8481
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
8482
8319
|
var botProfile = strictObject({
|
|
8483
8320
|
name: text,
|
|
8484
8321
|
token: text,
|
|
@@ -8602,7 +8439,7 @@ var stickerInventory = strictObject({
|
|
|
8602
8439
|
url: optional(nullable(text))
|
|
8603
8440
|
});
|
|
8604
8441
|
|
|
8605
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
8606
8443
|
var pollVote = strictObject({
|
|
8607
8444
|
person_id: id,
|
|
8608
8445
|
name: nullable(text),
|
|
@@ -8612,7 +8449,7 @@ var pollVote = strictObject({
|
|
|
8612
8449
|
voted_at: time
|
|
8613
8450
|
});
|
|
8614
8451
|
|
|
8615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8452
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
8616
8453
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
8617
8454
|
var observation = strictObject({
|
|
8618
8455
|
value: pipe(number(), minValue(0)),
|
|
@@ -8654,7 +8491,7 @@ var serveSummary = strictObject({
|
|
|
8654
8491
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
8655
8492
|
});
|
|
8656
8493
|
|
|
8657
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
8658
8495
|
var mailCounts = strictObject({
|
|
8659
8496
|
by: picklist(["day", "week", "sender"]),
|
|
8660
8497
|
received: count,
|
|
@@ -8669,7 +8506,7 @@ var mailCounts = strictObject({
|
|
|
8669
8506
|
}))
|
|
8670
8507
|
});
|
|
8671
8508
|
|
|
8672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
8673
8510
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
8674
8511
|
var base = { id, evidence: array(evidence2) };
|
|
8675
8512
|
var finding = variant("kind", [
|
|
@@ -8813,7 +8650,7 @@ var mailFindings = strictObject({
|
|
|
8813
8650
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
8814
8651
|
});
|
|
8815
8652
|
|
|
8816
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8653
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
8817
8654
|
var mediaArchive = strictObject({
|
|
8818
8655
|
directory: text,
|
|
8819
8656
|
chats: count,
|
|
@@ -8845,7 +8682,7 @@ var mediaArchiveTimer = union([
|
|
|
8845
8682
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
8846
8683
|
]);
|
|
8847
8684
|
|
|
8848
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8685
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
8849
8686
|
var preparationId = pipe(string(), minLength(1));
|
|
8850
8687
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
8851
8688
|
var preparationTime = nullable(isoTime);
|
|
@@ -8937,7 +8774,7 @@ var preparationMeeting = strictObject({
|
|
|
8937
8774
|
updated_at: isoTime
|
|
8938
8775
|
});
|
|
8939
8776
|
|
|
8940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
8941
8778
|
var meetingEvidence = preparationEvidence;
|
|
8942
8779
|
var meetingPersonContext = strictObject({
|
|
8943
8780
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -8959,7 +8796,7 @@ var meetingPersonContext = strictObject({
|
|
|
8959
8796
|
})
|
|
8960
8797
|
});
|
|
8961
8798
|
|
|
8962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
8963
8800
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
8964
8801
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
8965
8802
|
var finding2 = variant("kind", [
|
|
@@ -8997,7 +8834,7 @@ var meetingFindings = strictObject({
|
|
|
8997
8834
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
8998
8835
|
});
|
|
8999
8836
|
|
|
9000
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8837
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
9001
8838
|
var communicationCoverage = strictObject({
|
|
9002
8839
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9003
8840
|
query: string(),
|
|
@@ -9042,7 +8879,7 @@ var preparationCommunications = strictObject({
|
|
|
9042
8879
|
}))
|
|
9043
8880
|
});
|
|
9044
8881
|
|
|
9045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8882
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
9046
8883
|
var meetingPreparation = strictObject({
|
|
9047
8884
|
communications: optional(preparationCommunications),
|
|
9048
8885
|
schema_version: literal(1),
|
|
@@ -9155,7 +8992,7 @@ var meetingPreparation = strictObject({
|
|
|
9155
8992
|
})
|
|
9156
8993
|
});
|
|
9157
8994
|
|
|
9158
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8995
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9159
8996
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9160
8997
|
var id3 = pipe(string(), minLength(1));
|
|
9161
8998
|
var text3 = string();
|
|
@@ -9219,7 +9056,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9219
9056
|
})
|
|
9220
9057
|
});
|
|
9221
9058
|
|
|
9222
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9059
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9223
9060
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9224
9061
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9225
9062
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9249,7 +9086,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9249
9086
|
})
|
|
9250
9087
|
});
|
|
9251
9088
|
|
|
9252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9089
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9253
9090
|
var text4 = string();
|
|
9254
9091
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9255
9092
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9266,7 +9103,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9266
9103
|
persistence: literal("proposal-only")
|
|
9267
9104
|
});
|
|
9268
9105
|
|
|
9269
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9270
9107
|
var memory = strictObject({
|
|
9271
9108
|
ref: reference,
|
|
9272
9109
|
id,
|
|
@@ -9294,7 +9131,7 @@ var memory = strictObject({
|
|
|
9294
9131
|
updated_at: time
|
|
9295
9132
|
});
|
|
9296
9133
|
|
|
9297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9134
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9298
9135
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9299
9136
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
9300
9137
|
var mention = strictObject({
|
|
@@ -9338,13 +9175,16 @@ var mentionRebuild = strictObject({
|
|
|
9338
9175
|
mentions: count
|
|
9339
9176
|
});
|
|
9340
9177
|
|
|
9341
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9178
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9342
9179
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9343
9180
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9344
9181
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9345
9182
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9183
|
+
var scheduledCancellation = strictObject({ ...operated3, cancelled: array(id) });
|
|
9184
|
+
var scheduledSendEntries = { ...operated3, sent: array(id), messages: array(message) };
|
|
9185
|
+
var scheduledSend = strictObject(scheduledSendEntries);
|
|
9346
9186
|
|
|
9347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9348
9188
|
var messageTranscript = strictObject({
|
|
9349
9189
|
message_id: id,
|
|
9350
9190
|
text,
|
|
@@ -9402,7 +9242,7 @@ var evidencePacket = strictObject({
|
|
|
9402
9242
|
}))
|
|
9403
9243
|
});
|
|
9404
9244
|
|
|
9405
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9406
9246
|
var messageThread = strictObject({
|
|
9407
9247
|
ref: reference,
|
|
9408
9248
|
chat: id,
|
|
@@ -9419,7 +9259,7 @@ var messageThread = strictObject({
|
|
|
9419
9259
|
});
|
|
9420
9260
|
var messageContext = union([message, messageThread]);
|
|
9421
9261
|
|
|
9422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9262
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9423
9263
|
var messageCounts = strictObject({
|
|
9424
9264
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9425
9265
|
total: count,
|
|
@@ -9432,7 +9272,7 @@ var messageCounts = strictObject({
|
|
|
9432
9272
|
}))
|
|
9433
9273
|
});
|
|
9434
9274
|
|
|
9435
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9275
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9436
9276
|
var messageLink = strictObject({
|
|
9437
9277
|
ref: reference,
|
|
9438
9278
|
url: nullable(text),
|
|
@@ -9449,7 +9289,7 @@ var messageLink = strictObject({
|
|
|
9449
9289
|
})))
|
|
9450
9290
|
});
|
|
9451
9291
|
|
|
9452
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9292
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9453
9293
|
var savedMessageFile = strictObject({
|
|
9454
9294
|
kind: text,
|
|
9455
9295
|
path: text,
|
|
@@ -9536,7 +9376,7 @@ var messageSyncAll = strictObject({
|
|
|
9536
9376
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
9537
9377
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
9538
9378
|
|
|
9539
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9379
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
9540
9380
|
var messageWrite = strictObject({
|
|
9541
9381
|
operation_id: id,
|
|
9542
9382
|
message,
|
|
@@ -9551,7 +9391,7 @@ var draftWrite = strictObject({
|
|
|
9551
9391
|
});
|
|
9552
9392
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9553
9393
|
|
|
9554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9394
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
9555
9395
|
var model2 = strictObject({
|
|
9556
9396
|
id,
|
|
9557
9397
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9586,7 +9426,7 @@ var chosenModel = strictObject({
|
|
|
9586
9426
|
estimate_seconds: nullable(count)
|
|
9587
9427
|
});
|
|
9588
9428
|
|
|
9589
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9429
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
9590
9430
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9591
9431
|
var modelKey = strictObject({
|
|
9592
9432
|
provider: text,
|
|
@@ -9596,7 +9436,7 @@ var modelKey = strictObject({
|
|
|
9596
9436
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9597
9437
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9598
9438
|
|
|
9599
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9439
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
9600
9440
|
var versus = strictObject({ current: number(), previous: number() });
|
|
9601
9441
|
var person = { person_ref: reference, name: nullable(text) };
|
|
9602
9442
|
var graph = strictObject({
|
|
@@ -9630,14 +9470,14 @@ var officialStats = strictObject({
|
|
|
9630
9470
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
9631
9471
|
});
|
|
9632
9472
|
|
|
9633
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
9634
9474
|
var person2 = strictObject({
|
|
9635
9475
|
ref: reference,
|
|
9636
9476
|
name: nullable(text),
|
|
9637
9477
|
identities: optional(array(identity))
|
|
9638
9478
|
});
|
|
9639
9479
|
|
|
9640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9480
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
9641
9481
|
var poll = strictObject({
|
|
9642
9482
|
chat_id: id,
|
|
9643
9483
|
message_id: id,
|
|
@@ -9653,11 +9493,11 @@ var poll = strictObject({
|
|
|
9653
9493
|
});
|
|
9654
9494
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
9655
9495
|
|
|
9656
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9496
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
9657
9497
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
9658
9498
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
9659
9499
|
|
|
9660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9500
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
9661
9501
|
var figures = record(string(), number());
|
|
9662
9502
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
9663
9503
|
var rankingRow = strictObject({
|
|
@@ -9704,7 +9544,7 @@ var ranking = strictObject({
|
|
|
9704
9544
|
rows: array(rankingRow)
|
|
9705
9545
|
});
|
|
9706
9546
|
|
|
9707
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9547
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
9708
9548
|
var reaction = strictObject({
|
|
9709
9549
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
9710
9550
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -9712,7 +9552,7 @@ var reaction = strictObject({
|
|
|
9712
9552
|
reacted_at: time
|
|
9713
9553
|
});
|
|
9714
9554
|
|
|
9715
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9555
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
9716
9556
|
var reactionChange = strictObject({
|
|
9717
9557
|
operation_id: id,
|
|
9718
9558
|
chat_id: id,
|
|
@@ -9720,7 +9560,7 @@ var reactionChange = strictObject({
|
|
|
9720
9560
|
reaction: nullable(text)
|
|
9721
9561
|
});
|
|
9722
9562
|
|
|
9723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9563
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
9724
9564
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
9725
9565
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
9726
9566
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -9731,7 +9571,7 @@ var recipientChange = strictObject({
|
|
|
9731
9571
|
...partial(recipientOff).entries
|
|
9732
9572
|
});
|
|
9733
9573
|
|
|
9734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9574
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
9735
9575
|
var events = array(record(string(), unknown()));
|
|
9736
9576
|
var recordedRun = strictObject({
|
|
9737
9577
|
run_id: id,
|
|
@@ -9803,7 +9643,7 @@ var runHit = strictObject({
|
|
|
9803
9643
|
});
|
|
9804
9644
|
var runLocation = strictObject({ path: text });
|
|
9805
9645
|
|
|
9806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9646
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
9807
9647
|
var relationship = strictObject({
|
|
9808
9648
|
id,
|
|
9809
9649
|
from: reference,
|
|
@@ -9830,7 +9670,7 @@ var relationship = strictObject({
|
|
|
9830
9670
|
created_at: time
|
|
9831
9671
|
});
|
|
9832
9672
|
|
|
9833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9673
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
9834
9674
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
9835
9675
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
9836
9676
|
var responseTimes = strictObject({
|
|
@@ -9847,7 +9687,7 @@ var waitingChats = strictObject({
|
|
|
9847
9687
|
by_kind: strictObject({ private: count, group: count })
|
|
9848
9688
|
});
|
|
9849
9689
|
|
|
9850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9690
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
9851
9691
|
var retentionCohort = strictObject({
|
|
9852
9692
|
/** The first day of the joining day or week. */
|
|
9853
9693
|
cohort: text,
|
|
@@ -9895,7 +9735,7 @@ var retention = strictObject({
|
|
|
9895
9735
|
rows: array(retentionCohort)
|
|
9896
9736
|
});
|
|
9897
9737
|
|
|
9898
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9738
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
9899
9739
|
var savedSearch = strictObject({
|
|
9900
9740
|
id,
|
|
9901
9741
|
/** `null` for a run in the history. */
|
|
@@ -9912,7 +9752,7 @@ var savedSearch = strictObject({
|
|
|
9912
9752
|
});
|
|
9913
9753
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
9914
9754
|
|
|
9915
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
9916
9756
|
var sendAttempt = strictObject({
|
|
9917
9757
|
at: time,
|
|
9918
9758
|
profile: text,
|
|
@@ -9940,7 +9780,7 @@ var sendAttempt = strictObject({
|
|
|
9940
9780
|
error_code: optional(text)
|
|
9941
9781
|
});
|
|
9942
9782
|
|
|
9943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
9944
9784
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
9945
9785
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
9946
9786
|
var infoSchema = strictObject({
|
|
@@ -10170,7 +10010,7 @@ var storeRepair = union([
|
|
|
10170
10010
|
]);
|
|
10171
10011
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10172
10012
|
|
|
10173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10174
10014
|
var range = strictObject({ from: number(), to: number() });
|
|
10175
10015
|
var storeChatStatus = strictObject({
|
|
10176
10016
|
chat_id: id,
|
|
@@ -10268,7 +10108,7 @@ var storeJobRetry = union([
|
|
|
10268
10108
|
]);
|
|
10269
10109
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10270
10110
|
|
|
10271
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10111
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10272
10112
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10273
10113
|
var storeTable = strictObject({
|
|
10274
10114
|
name: text,
|
|
@@ -10277,7 +10117,7 @@ var storeTable = strictObject({
|
|
|
10277
10117
|
bytes: optional(nullable(count))
|
|
10278
10118
|
});
|
|
10279
10119
|
|
|
10280
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10120
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10281
10121
|
var tagTarget = variant("type", [
|
|
10282
10122
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10283
10123
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10308,7 +10148,7 @@ var automaticTags = strictObject({
|
|
|
10308
10148
|
dry_run: boolean()
|
|
10309
10149
|
});
|
|
10310
10150
|
|
|
10311
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10312
10152
|
var tagging = strictObject({
|
|
10313
10153
|
tag: text,
|
|
10314
10154
|
type: picklist(TAG_TYPES),
|
|
@@ -10321,7 +10161,7 @@ var tagging = strictObject({
|
|
|
10321
10161
|
created_at: time
|
|
10322
10162
|
});
|
|
10323
10163
|
|
|
10324
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10164
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10325
10165
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10326
10166
|
var taskPair = strictObject({
|
|
10327
10167
|
task: nullable(side),
|
|
@@ -10344,7 +10184,7 @@ var taskPair = strictObject({
|
|
|
10344
10184
|
created_at: time
|
|
10345
10185
|
});
|
|
10346
10186
|
|
|
10347
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10348
10188
|
var nullableTime = nullable(time);
|
|
10349
10189
|
var link = strictObject({
|
|
10350
10190
|
id,
|
|
@@ -10518,7 +10358,7 @@ var taskReview = strictObject({
|
|
|
10518
10358
|
untrusted
|
|
10519
10359
|
});
|
|
10520
10360
|
|
|
10521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10361
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/template.js
|
|
10522
10362
|
var template = strictObject({
|
|
10523
10363
|
key: text,
|
|
10524
10364
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -10530,7 +10370,7 @@ var template = strictObject({
|
|
|
10530
10370
|
updated_by: nullable(text)
|
|
10531
10371
|
});
|
|
10532
10372
|
|
|
10533
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10534
10374
|
var topic = strictObject({
|
|
10535
10375
|
id,
|
|
10536
10376
|
title: text,
|
|
@@ -10544,7 +10384,7 @@ var topic = strictObject({
|
|
|
10544
10384
|
untrusted
|
|
10545
10385
|
});
|
|
10546
10386
|
|
|
10547
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10548
10388
|
var ENTITIES = {
|
|
10549
10389
|
sync_progress: progress,
|
|
10550
10390
|
deal,
|
|
@@ -10578,6 +10418,7 @@ var ENTITIES = {
|
|
|
10578
10418
|
attachments: optional(array(hitFile)),
|
|
10579
10419
|
untrusted
|
|
10580
10420
|
}),
|
|
10421
|
+
// Typed loosely: the inferred type of `ENTITIES` would pass the size the compiler writes out (TS7056).
|
|
10581
10422
|
"message.summary": strictObject({
|
|
10582
10423
|
...pick(message, [
|
|
10583
10424
|
"ref",
|
|
@@ -10600,6 +10441,8 @@ var ENTITIES = {
|
|
|
10600
10441
|
message_pin: messagePin,
|
|
10601
10442
|
message_star: messageStar,
|
|
10602
10443
|
message_deletion: messageDeletion,
|
|
10444
|
+
scheduled_cancellation: scheduledCancellation,
|
|
10445
|
+
scheduled_send: scheduledSend,
|
|
10603
10446
|
message_transcript: messageTranscript,
|
|
10604
10447
|
message_links: messageLinks,
|
|
10605
10448
|
evidence_packet: evidencePacket,
|
|
@@ -10720,6 +10563,8 @@ var ENTITIES = {
|
|
|
10720
10563
|
meeting_stats: meetingStats,
|
|
10721
10564
|
meeting_counts: meetingCounts,
|
|
10722
10565
|
call_stats: callStats,
|
|
10566
|
+
meeting_tag_change: meetingTagChange,
|
|
10567
|
+
meeting_tagging: meetingTagging,
|
|
10723
10568
|
meeting_speaker: meetingSpeaker,
|
|
10724
10569
|
meeting_participants: meetingParticipants,
|
|
10725
10570
|
meeting_passage: meetingPassage,
|
|
@@ -10796,6 +10641,7 @@ var ENTITIES = {
|
|
|
10796
10641
|
chat_moderation: chatModeration,
|
|
10797
10642
|
"model.chosen": chosenModel,
|
|
10798
10643
|
model_key: modelKey,
|
|
10644
|
+
chat_sending: chatSending,
|
|
10799
10645
|
"model_key.stored": storedModelKey,
|
|
10800
10646
|
"model_key.removed": removedModelKey,
|
|
10801
10647
|
chat_event: chatEvent,
|
|
@@ -10840,7 +10686,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
10840
10686
|
return [name, definition];
|
|
10841
10687
|
})), "entityDefinitions");
|
|
10842
10688
|
|
|
10843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10689
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
10844
10690
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
10845
10691
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
10846
10692
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -10874,8 +10720,8 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
10874
10720
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
10875
10721
|
}, "answerRow");
|
|
10876
10722
|
|
|
10877
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10878
|
-
import { join as
|
|
10723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
10724
|
+
import { join as join5 } from "node:path";
|
|
10879
10725
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
10880
10726
|
var IMAGE_MODELS = [
|
|
10881
10727
|
{
|
|
@@ -10925,10 +10771,10 @@ var imageModel = /* @__PURE__ */ __name((id6) => {
|
|
|
10925
10771
|
return found;
|
|
10926
10772
|
}, "imageModel");
|
|
10927
10773
|
var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
|
|
10928
|
-
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file,
|
|
10774
|
+
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
|
|
10929
10775
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
10930
10776
|
|
|
10931
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
10932
10778
|
var STEPS2 = defineSteps([
|
|
10933
10779
|
...STEPS,
|
|
10934
10780
|
{
|
|
@@ -11165,10 +11011,10 @@ var nextStep = /* @__PURE__ */ __name((id6, input) => {
|
|
|
11165
11011
|
const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
|
|
11166
11012
|
return stepOf(definition, { ...input, args });
|
|
11167
11013
|
}, "nextStep");
|
|
11168
|
-
var lineOf = /* @__PURE__ */ __name((command,
|
|
11014
|
+
var lineOf = /* @__PURE__ */ __name((command, words) => {
|
|
11169
11015
|
const root = rootOf2(command);
|
|
11170
11016
|
const profile = root.getOptionValue("profile");
|
|
11171
|
-
return typedCommand(root.name(),
|
|
11017
|
+
return typedCommand(root.name(), words, typeof profile === "string" && profile !== "" ? profile : void 0);
|
|
11172
11018
|
}, "lineOf");
|
|
11173
11019
|
var rootOf2 = /* @__PURE__ */ __name((command) => {
|
|
11174
11020
|
let root = command;
|
|
@@ -11218,7 +11064,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11218
11064
|
].join(" ");
|
|
11219
11065
|
}, "stepLine");
|
|
11220
11066
|
|
|
11221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11067
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11222
11068
|
var where = [{ field: "ref" }];
|
|
11223
11069
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11224
11070
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11310,7 +11156,7 @@ var STATUS_ROWS = {
|
|
|
11310
11156
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11311
11157
|
};
|
|
11312
11158
|
|
|
11313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11314
11160
|
var TEXT_CHARS = 400;
|
|
11315
11161
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11316
11162
|
var messageRow = {
|
|
@@ -11678,7 +11524,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
11678
11524
|
return lines.concat(footerOf(body)).join("\n");
|
|
11679
11525
|
}, "compactText");
|
|
11680
11526
|
|
|
11681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11527
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
11682
11528
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
11683
11529
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
11684
11530
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -11704,10 +11550,10 @@ var declaresRow = /* @__PURE__ */ __name((command) => {
|
|
|
11704
11550
|
return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
|
|
11705
11551
|
}, "declaresRow");
|
|
11706
11552
|
var pathOf3 = /* @__PURE__ */ __name((command) => {
|
|
11707
|
-
const
|
|
11553
|
+
const words = [];
|
|
11708
11554
|
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
11709
|
-
|
|
11710
|
-
return
|
|
11555
|
+
words.unshift(at2.name());
|
|
11556
|
+
return words.join(" ");
|
|
11711
11557
|
}, "pathOf");
|
|
11712
11558
|
var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
|
|
11713
11559
|
kind: "command",
|
|
@@ -11736,7 +11582,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
11736
11582
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
11737
11583
|
}, "largeAnswerSteps");
|
|
11738
11584
|
|
|
11739
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11585
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
11740
11586
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
11741
11587
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
11742
11588
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -11750,7 +11596,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
11750
11596
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
11751
11597
|
}, "strip");
|
|
11752
11598
|
|
|
11753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
|
|
11754
11600
|
var OPEN = "\u27E6";
|
|
11755
11601
|
var CLOSE = "\u27E7";
|
|
11756
11602
|
var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -11759,6 +11605,10 @@ var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
|
11759
11605
|
const mark = ancestorValue(envName(app, "UNTRUSTED_MARK"), env);
|
|
11760
11606
|
return mark && /^[0-9a-f]{16}$/.test(mark) ? mark : void 0;
|
|
11761
11607
|
}, "untrustedMarkOf");
|
|
11608
|
+
var runMarkOf = /* @__PURE__ */ __name((command) => {
|
|
11609
|
+
const { app, env } = environmentOf(command);
|
|
11610
|
+
return app ? untrustedMarkOf(app, env ?? process.env) : void 0;
|
|
11611
|
+
}, "runMarkOf");
|
|
11762
11612
|
var marked = /* @__PURE__ */ __name((text5, mark, source2, id6) => {
|
|
11763
11613
|
const inside = text5.replaceAll(OPEN, "").replaceAll(CLOSE, "").replaceAll(mark, "");
|
|
11764
11614
|
const named2 = id6 === void 0 ? "" : ` id=${id6.replaceAll(OPEN, "").replaceAll(CLOSE, "").replace(/\s/g, "")}`;
|
|
@@ -11834,7 +11684,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
|
|
|
11834
11684
|
return result;
|
|
11835
11685
|
}, "withFieldsMarked");
|
|
11836
11686
|
|
|
11837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11687
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.709.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_d98198650466e0f5373009c2596db072/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
11838
11688
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
11839
11689
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
11840
11690
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -11942,8 +11792,8 @@ var linesOf = /* @__PURE__ */ __name((body) => jsonlOf("items" in body ? body :
|
|
|
11942
11792
|
var jsonlRecords = /* @__PURE__ */ __name((body) => linesOf(sealed(body)).split("\n").map((line) => JSON.parse(line)), "jsonlRecords");
|
|
11943
11793
|
var listZone = /* @__PURE__ */ __name((command) => {
|
|
11944
11794
|
const registry = metaOf(command).query;
|
|
11945
|
-
const
|
|
11946
|
-
const text5 = Array.isArray(
|
|
11795
|
+
const words = command.processedArgs.at(-1);
|
|
11796
|
+
const text5 = Array.isArray(words) ? words.join(" ") : typeof words === "string" ? words : "";
|
|
11947
11797
|
const times = new Set(registry?.fields.filter(({ type }) => type === "time").map(({ name }) => name));
|
|
11948
11798
|
if (times.size === 0 || text5.trim() === "")
|
|
11949
11799
|
return void 0;
|
|
@@ -11964,8 +11814,7 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
|
|
|
11964
11814
|
const root = rootOf2(command);
|
|
11965
11815
|
const runnableSteps = runnable(root, body.next);
|
|
11966
11816
|
const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
|
|
11967
|
-
const
|
|
11968
|
-
const mark = app ? untrustedMarkOf(app, env ?? process.env) : void 0;
|
|
11817
|
+
const mark = runMarkOf(command);
|
|
11969
11818
|
const declared = untrustedFieldsOf(command);
|
|
11970
11819
|
const shown = mark === void 0 ? body : withUntrustedMarked(declared ? withFieldsMarked(body, declared, mark) : body, mark);
|
|
11971
11820
|
const kept = withoutProviderRefs({ ...shown, ...next.length > 0 ? { next } : {} });
|
|
@@ -12099,19 +11948,6 @@ export {
|
|
|
12099
11948
|
refuseCommandName,
|
|
12100
11949
|
rootOf,
|
|
12101
11950
|
sampleCommand,
|
|
12102
|
-
DEFAULT_TEXT_MODEL,
|
|
12103
|
-
PREVIOUS_DEFAULT_TEXT_MODEL,
|
|
12104
|
-
CustomTextModelShape,
|
|
12105
|
-
readTextModelsSection,
|
|
12106
|
-
writeTextModelsSection,
|
|
12107
|
-
textModels,
|
|
12108
|
-
textModel,
|
|
12109
|
-
chosenTextModel,
|
|
12110
|
-
RERANK_MODELS,
|
|
12111
|
-
DEFAULT_RERANK_MODEL,
|
|
12112
|
-
rerankModel,
|
|
12113
|
-
vectorModelKey,
|
|
12114
|
-
meaningFloor,
|
|
12115
11951
|
historyWindow,
|
|
12116
11952
|
limitBatch,
|
|
12117
11953
|
botFiles,
|
|
@@ -12137,8 +11973,10 @@ export {
|
|
|
12137
11973
|
setExitCode,
|
|
12138
11974
|
provide,
|
|
12139
11975
|
environmentOf,
|
|
11976
|
+
withoutOwnPaging,
|
|
12140
11977
|
withAgentLevels,
|
|
12141
11978
|
secretInputOf,
|
|
11979
|
+
outputFieldsOf,
|
|
12142
11980
|
outputFor,
|
|
12143
11981
|
baseContext,
|
|
12144
11982
|
inCommandRun,
|
|
@@ -12225,6 +12063,8 @@ export {
|
|
|
12225
12063
|
stepLine,
|
|
12226
12064
|
tooLargeSteps,
|
|
12227
12065
|
withoutProviderRefs,
|
|
12066
|
+
runMarkOf,
|
|
12067
|
+
withUntrustedMarked,
|
|
12228
12068
|
marksUntrusted,
|
|
12229
12069
|
answerSchema,
|
|
12230
12070
|
listOf,
|