@wirecat/tg-cli 0.127.0 → 0.129.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/contracts/wirecat.json +26 -0
- package/dist/bin/tg.js +2 -2
- package/dist/bundle/{adapter-EZFS2UR6.js → adapter-2XFPXBTA.js} +60 -52
- package/dist/bundle/{all-profiles-TNIUBQK6.js → all-profiles-GXFPZLYU.js} +20 -30
- package/dist/bundle/{anthropic-NGIS5LTL.js → anthropic-FHS5XNK5.js} +5 -5
- package/dist/bundle/{app-server-RPU76G7D.js → app-server-IZMFSFP2.js} +56 -63
- package/dist/bundle/{bot-api-QJ6U6BLG.js → bot-api-LQP75V5I.js} +61 -53
- package/dist/bundle/{bot-history-THULK2C6.js → bot-history-EJQOD4AQ.js} +22 -18
- package/dist/bundle/{bun-QLSLLP27.js → bun-GBAZFRCV.js} +2 -2
- package/dist/bundle/{bun-sqlite-SH5245ZY.js → bun-sqlite-JB4BX6X7.js} +6 -6
- package/dist/bundle/chunk-2JZJPVBH.js +334 -0
- package/dist/bundle/{chunk-DNNYE6PS.js → chunk-2LPODKIF.js} +18 -15
- package/dist/bundle/chunk-3KZG63EH.js +170 -0
- package/dist/bundle/chunk-3XMUP55N.js +372 -0
- package/dist/bundle/{chunk-BWHVHPAQ.js → chunk-4BJAQNJ5.js} +9 -9
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-66PL7P4C.js} +1 -1
- package/dist/bundle/{chunk-JWEKUAVZ.js → chunk-66UG67CE.js} +12 -12
- package/dist/bundle/{chunk-R52ZZZKZ.js → chunk-6JBRQ6PM.js} +55 -22
- package/dist/bundle/{chunk-Y7UA7HGL.js → chunk-6M3FAHPS.js} +3 -3
- package/dist/bundle/{chunk-TGKTIDYS.js → chunk-7F3LOHRB.js} +290 -504
- package/dist/bundle/{chunk-XS5C5TQ7.js → chunk-AUNNJDVD.js} +25 -8
- package/dist/bundle/{chunk-ERUB3KU3.js → chunk-B5RGPZDZ.js} +7 -7
- package/dist/bundle/{chunk-YRZXOQOB.js → chunk-B6NQJAUC.js} +2 -2
- package/dist/bundle/{chunk-4FFKCC7Y.js → chunk-BMSS3PCY.js} +62 -36
- package/dist/bundle/{chunk-VMV5CMLH.js → chunk-C4ALE7CH.js} +1 -1
- package/dist/bundle/{chunk-K4VO7S6Q.js → chunk-CKJ73EF3.js} +1 -1
- package/dist/bundle/{chunk-IX3GUNGV.js → chunk-CLG2ISQH.js} +4 -4
- package/dist/bundle/{chunk-MTU3UP5U.js → chunk-EB2JE722.js} +1 -1
- package/dist/bundle/{chunk-EGNQSWPH.js → chunk-EUL7HMUL.js} +2 -2
- package/dist/bundle/{chunk-2R6ZSE3O.js → chunk-F6CV4KUN.js} +2 -2
- package/dist/bundle/{chunk-7KCBPAQS.js → chunk-F6MLJ3V5.js} +2 -2
- package/dist/bundle/{chunk-ZSS3BH6Z.js → chunk-FH4YIBBH.js} +4 -4
- package/dist/bundle/chunk-FIO5NMK3.js +771 -0
- package/dist/bundle/{chunk-FSDLSEZA.js → chunk-G2SMVYBU.js} +2 -2
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-GA3URWIF.js} +1 -1
- package/dist/bundle/{chunk-4CQ3PV3V.js → chunk-GGGBPWUS.js} +10 -15
- package/dist/bundle/{chunk-3CV5TBBR.js → chunk-GSHTLLCJ.js} +2 -2
- package/dist/bundle/{chunk-IWJ5OLU6.js → chunk-GYCKRIRK.js} +3 -3
- package/dist/bundle/{chunk-H7GAFD4N.js → chunk-HHUK3XO5.js} +1 -1
- package/dist/bundle/{chunk-NM5GBJME.js → chunk-HT6OFANN.js} +19 -19
- package/dist/bundle/{chunk-GHVRCLJI.js → chunk-I5PILOTU.js} +1 -1
- package/dist/bundle/chunk-IBSHQWIJ.js +29 -0
- package/dist/bundle/{chunk-5SN6KFPC.js → chunk-IRWSZJYL.js} +65 -60
- package/dist/bundle/{chunk-3I3TGKVG.js → chunk-IV6SIKVH.js} +4 -4
- package/dist/bundle/{chunk-URFBZNLU.js → chunk-JUFLELQ7.js} +2 -2
- package/dist/bundle/{chunk-5FDYMMEQ.js → chunk-KY3JLXW2.js} +4 -4
- package/dist/bundle/{chunk-YZGIQY2R.js → chunk-LPT5T6PU.js} +37 -28
- package/dist/bundle/chunk-LQPZDDDP.js +259 -0
- package/dist/bundle/{chunk-CXWAKV2O.js → chunk-M327UNS6.js} +6 -6
- package/dist/bundle/{chunk-4MKRKW6V.js → chunk-MS6YEIG5.js} +13 -13
- package/dist/bundle/{chunk-UY2TRFYN.js → chunk-MVFSWKTM.js} +12 -12
- package/dist/bundle/{chunk-45URY64S.js → chunk-NRCY3WBC.js} +2 -2
- package/dist/bundle/{chunk-SN52ZGFN.js → chunk-O2ULG7OO.js} +3 -3
- package/dist/bundle/{chunk-JF7D2Y4K.js → chunk-OJMDKWWL.js} +670 -519
- package/dist/bundle/{chunk-UW34Z7J3.js → chunk-OKTRB4ZQ.js} +1 -1
- package/dist/bundle/{chunk-7GE6KMLB.js → chunk-OOQVHMCS.js} +15 -15
- package/dist/bundle/{chunk-P5NJECXX.js → chunk-OWVQMK7G.js} +939 -909
- package/dist/bundle/{chunk-YIPOWJPN.js → chunk-P4FZJO5F.js} +2 -2
- package/dist/bundle/{chunk-LD42OGKK.js → chunk-PS7ZS5HD.js} +4 -4
- package/dist/bundle/{chunk-J6FHZXNS.js → chunk-PWQKGFS2.js} +49 -55
- package/dist/bundle/{chunk-APSMQIA4.js → chunk-QBNEWEJC.js} +3 -3
- package/dist/bundle/{chunk-Y65BQJOY.js → chunk-QDEP2QOA.js} +3 -3
- package/dist/bundle/{chunk-FD44T7HC.js → chunk-QFVIHBLD.js} +1 -1
- package/dist/bundle/{chunk-5KZKVKWU.js → chunk-QJDHRBXL.js} +7 -7
- package/dist/bundle/{chunk-LOG65WHO.js → chunk-QJLCEOAP.js} +1 -1
- package/dist/bundle/{chunk-XUAVZ6YX.js → chunk-RAFK5KXU.js} +9 -9
- package/dist/bundle/{chunk-UIQMBOXU.js → chunk-RPWYTOLI.js} +5 -5
- package/dist/bundle/{chunk-QPVCFSVU.js → chunk-RZPMFVWM.js} +6 -6
- package/dist/bundle/chunk-S5UTBEV3.js +1974 -0
- package/dist/bundle/{chunk-X4ECHJNG.js → chunk-SYZXOEHY.js} +98 -6
- package/dist/bundle/{chunk-BNM6KNUQ.js → chunk-SZB5WRMI.js} +2 -2
- package/dist/bundle/{chunk-5AOFOJQA.js → chunk-TGRB4SSZ.js} +4 -4
- package/dist/bundle/{chunk-Y62I2T36.js → chunk-VSPSHBAC.js} +2 -2
- package/dist/bundle/{chunk-JFQZ6BWI.js → chunk-VTJ3AOTT.js} +17 -17
- package/dist/bundle/{chunk-HPM47WO3.js → chunk-VXWDQDRU.js} +6130 -6675
- package/dist/bundle/{chunk-S3XUJPPL.js → chunk-X5H5NERR.js} +6 -6
- package/dist/bundle/{chunk-3WI53AA4.js → chunk-XHX5D5VE.js} +1174 -2636
- package/dist/bundle/chunk-XXW6PFAX.js +16 -0
- package/dist/bundle/{chunk-NBN5OYXH.js → chunk-ZRQQOGAZ.js} +4 -4
- package/dist/bundle/command-contract-G752BLKA.js +37 -0
- package/dist/bundle/{command-server-entry-UG2CLYXI.js → command-server-entry-YR6ONDWO.js} +27 -24
- package/dist/bundle/decode-VUKGWFSW.js +296 -0
- package/dist/bundle/{dispatch-PRAIGIFS.js → dispatch-ST5FK2KI.js} +8 -8
- package/dist/bundle/{echarts-CN6ZVAJZ.js → echarts-GOV5M733.js} +2 -2
- package/dist/bundle/{embed-M4EHIKA5.js → embed-2IVIYNAJ.js} +6 -6
- package/dist/bundle/{embedder-K2XL2UB4.js → embedder-2HU7JYZK.js} +9 -9
- package/dist/bundle/{entry-6M55YL2H.js → entry-CSTCXYI5.js} +9 -9
- package/dist/bundle/{failure-7Y34AUJT.js → failure-GMUQKQ5K.js} +2 -2
- package/dist/bundle/{first-run-TLJILIOF.js → first-run-3IZGXZT5.js} +12 -11
- package/dist/bundle/first-screen-7QSNCZIK.js +35 -0
- package/dist/bundle/{instructions-QLC2AXAB.js → instructions-YSXV6FAC.js} +1 -1
- package/dist/bundle/{mcp-TDKGDB4V.js → mcp-VFIOZDVY.js} +2 -2
- package/dist/bundle/meeting-combined-X4E3LSIJ.js +23 -0
- package/dist/bundle/meeting-model-FQBDHGRU.js +24 -0
- package/dist/bundle/meeting-semantic-ONNEOJX5.js +21 -0
- package/dist/bundle/{node-BAA3T4CH.js → node-FMQWCZRS.js} +2 -2
- package/dist/bundle/{node-sqlite-FNYVHQCO.js → node-sqlite-YN5OKOC6.js} +7 -7
- package/dist/bundle/{oauth-32T5KL5E.js → oauth-EW7PTZVT.js} +7 -7
- package/dist/bundle/{open-4VQ6FUEI.js → open-Q2RDY344.js} +5 -5
- package/dist/bundle/{openai-HDOKCN3Z.js → openai-STON6G3O.js} +28 -26
- package/dist/bundle/{process-GOUBIWKC.js → process-OQUC2TW3.js} +1 -1
- package/dist/bundle/{program-QFXJL2R5.js → program-7JJHTZ25.js} +66 -57
- package/dist/bundle/{prompt-YYODWYFO.js → prompt-WHVF7UTW.js} +5 -5
- package/dist/bundle/{proxy-transport-DP7SIMIC.js → proxy-transport-A4MRO3PF.js} +5 -5
- package/dist/bundle/{recognize-7ZULX5HL.js → recognize-YDQWMXNI.js} +4 -4
- package/dist/bundle/{remote-TUG7M5Y5.js → remote-477LQHP6.js} +9 -9
- package/dist/bundle/{rerank-D2EZWG66.js → rerank-4YPB26FG.js} +7 -7
- package/dist/bundle/{serve-MP3GA2XX.js → serve-FXJNUOTS.js} +9 -9
- package/dist/bundle/{server-D277L3H3.js → server-2S6HFBGR.js} +52 -42
- package/dist/bundle/server-UOSUTZNE.js +69 -0
- package/dist/bundle/{sqlite-runtime-XHZXEOLY.js → sqlite-runtime-RXYNJYMC.js} +6 -6
- package/dist/bundle/{state-YI3W6HGO.js → state-I2GGYGRL.js} +6 -6
- package/dist/bundle/{store-CIZPJFWE.js → store-KX3AAQZH.js} +25 -20
- package/dist/bundle/{store-C4RFPYPK.js → store-VQXIB6KV.js} +17 -13
- package/dist/bundle/store-maintenance-command-LW2MMDLY.js +60 -0
- package/dist/bundle/tg.js +13 -13
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-ZIPUVOGT.js +0 -76
- package/dist/bundle/command-contract-DY6Y4TES.js +0 -34
- package/dist/bundle/decode-3NEUZJ2N.js +0 -162
- package/dist/bundle/first-screen-WME7ILW2.js +0 -32
- package/dist/bundle/server-GEP7QXGI.js +0 -62
- package/dist/bundle/store-maintenance-command-JNDYWFD2.js +0 -52
- /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-ZI3YTXSF.js} +0 -0
|
@@ -9,29 +9,33 @@ import {
|
|
|
9
9
|
providerErrorKey,
|
|
10
10
|
renderEvent,
|
|
11
11
|
runContextOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-QJDHRBXL.js";
|
|
13
13
|
import {
|
|
14
14
|
permissionCeiling
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QDEP2QOA.js";
|
|
16
16
|
import {
|
|
17
17
|
ancestorValue,
|
|
18
18
|
envName,
|
|
19
19
|
readOnlyLockOf,
|
|
20
20
|
readOnlyRefusal
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NRCY3WBC.js";
|
|
22
22
|
import {
|
|
23
23
|
carries
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import {
|
|
26
|
-
endpoint
|
|
27
|
-
} from "./chunk-UIQMBOXU.js";
|
|
24
|
+
} from "./chunk-QFVIHBLD.js";
|
|
28
25
|
import {
|
|
29
26
|
note
|
|
30
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-GYCKRIRK.js";
|
|
28
|
+
import {
|
|
29
|
+
DEFAULT_RERANK_MODEL,
|
|
30
|
+
RERANK_MODELS
|
|
31
|
+
} from "./chunk-2JZJPVBH.js";
|
|
32
|
+
import {
|
|
33
|
+
endpoint
|
|
34
|
+
} from "./chunk-RPWYTOLI.js";
|
|
31
35
|
import {
|
|
32
36
|
filesPresent,
|
|
33
37
|
sharedModelsDirectory
|
|
34
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-IV6SIKVH.js";
|
|
35
39
|
import {
|
|
36
40
|
BUSINESS_KINDS,
|
|
37
41
|
CATEGORIES,
|
|
@@ -40,8 +44,6 @@ import {
|
|
|
40
44
|
DEAL_ROLES,
|
|
41
45
|
DEAL_STATUSES,
|
|
42
46
|
FACT_STATUSES,
|
|
43
|
-
FACT_TYPES,
|
|
44
|
-
FIELD_TYPES,
|
|
45
47
|
FINANCE_REVIEWS,
|
|
46
48
|
INVOICE_DIRECTIONS,
|
|
47
49
|
INVOICE_STATUSES,
|
|
@@ -50,7 +52,6 @@ import {
|
|
|
50
52
|
LINK_KINDS,
|
|
51
53
|
LINK_SOURCES,
|
|
52
54
|
LOG_ATTRIBUTES,
|
|
53
|
-
MEETING_RESULT_ENTITIES,
|
|
54
55
|
MEMORY_KINDS,
|
|
55
56
|
MEMORY_SCOPES,
|
|
56
57
|
MEMORY_STATUSES,
|
|
@@ -58,11 +59,9 @@ import {
|
|
|
58
59
|
ORDER_PURPOSES,
|
|
59
60
|
ORDER_STATUSES,
|
|
60
61
|
PRIORITY_LABELS,
|
|
61
|
-
QUERY_BACKENDS,
|
|
62
62
|
RELATION_KINDS,
|
|
63
63
|
RUNS_SIZE_LIMIT_MB,
|
|
64
64
|
STANDINGS,
|
|
65
|
-
TAG_TYPES,
|
|
66
65
|
TASK_KINDS,
|
|
67
66
|
TASK_ORIGINS,
|
|
68
67
|
TASK_STATES,
|
|
@@ -73,27 +72,12 @@ import {
|
|
|
73
72
|
childTrace,
|
|
74
73
|
count,
|
|
75
74
|
currentRun,
|
|
76
|
-
describeQuery,
|
|
77
75
|
enclosingTraceId,
|
|
78
|
-
event,
|
|
79
76
|
evidenceSource,
|
|
80
77
|
id,
|
|
81
78
|
inRun,
|
|
82
79
|
logAttributes,
|
|
83
80
|
markStoreDamaged,
|
|
84
|
-
meeting,
|
|
85
|
-
meetingCounts,
|
|
86
|
-
meetingDetails,
|
|
87
|
-
meetingHit,
|
|
88
|
-
meetingLink,
|
|
89
|
-
meetingParticipants,
|
|
90
|
-
meetingPassage,
|
|
91
|
-
meetingProjectEvidence,
|
|
92
|
-
meetingReview,
|
|
93
|
-
meetingSpeaker,
|
|
94
|
-
meetingStats,
|
|
95
|
-
meetingSummary,
|
|
96
|
-
meetingTranscript,
|
|
97
81
|
newRunId,
|
|
98
82
|
organization,
|
|
99
83
|
project,
|
|
@@ -109,20 +93,48 @@ import {
|
|
|
109
93
|
typedCommand,
|
|
110
94
|
untrusted,
|
|
111
95
|
useAsProcessRun
|
|
112
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-S5UTBEV3.js";
|
|
113
97
|
import {
|
|
114
98
|
isCliFailure,
|
|
115
99
|
storeDamaged
|
|
116
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-QBNEWEJC.js";
|
|
101
|
+
import {
|
|
102
|
+
TAG_TYPES
|
|
103
|
+
} from "./chunk-IBSHQWIJ.js";
|
|
117
104
|
import {
|
|
118
|
-
readSharedSection,
|
|
119
105
|
repairConfigText,
|
|
120
|
-
sharedConfigPath
|
|
121
|
-
|
|
122
|
-
|
|
106
|
+
sharedConfigPath
|
|
107
|
+
} from "./chunk-B5RGPZDZ.js";
|
|
108
|
+
import {
|
|
109
|
+
FACT_TYPES,
|
|
110
|
+
FIELD_TYPES,
|
|
111
|
+
MEETING_RESULT_ENTITIES,
|
|
112
|
+
QUERY_BACKENDS,
|
|
113
|
+
callStats,
|
|
114
|
+
describeQuery,
|
|
115
|
+
event,
|
|
116
|
+
meeting,
|
|
117
|
+
meetingCounts,
|
|
118
|
+
meetingDetails,
|
|
119
|
+
meetingHit,
|
|
120
|
+
meetingLink,
|
|
121
|
+
meetingParticipants,
|
|
122
|
+
meetingPassage,
|
|
123
|
+
meetingProjectEvidence,
|
|
124
|
+
meetingReview,
|
|
125
|
+
meetingSpeaker,
|
|
126
|
+
meetingStats,
|
|
127
|
+
meetingSummary,
|
|
128
|
+
meetingTagChange,
|
|
129
|
+
meetingTagging,
|
|
130
|
+
meetingTranscript,
|
|
131
|
+
parseLucene,
|
|
132
|
+
readsZone,
|
|
133
|
+
timezoneOf
|
|
134
|
+
} from "./chunk-XHX5D5VE.js";
|
|
123
135
|
import {
|
|
124
136
|
storePath
|
|
125
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-VSPSHBAC.js";
|
|
126
138
|
import {
|
|
127
139
|
configFilePath,
|
|
128
140
|
createRecordLog,
|
|
@@ -134,7 +146,7 @@ import {
|
|
|
134
146
|
resolvePaths,
|
|
135
147
|
saveConfigFile,
|
|
136
148
|
writeSecurely
|
|
137
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-HT6OFANN.js";
|
|
138
150
|
import {
|
|
139
151
|
COMPACT_FLAG,
|
|
140
152
|
MAX_NEXT_STEPS,
|
|
@@ -177,7 +189,6 @@ import {
|
|
|
177
189
|
regex,
|
|
178
190
|
safeInteger,
|
|
179
191
|
safeParse,
|
|
180
|
-
startsWith,
|
|
181
192
|
stepOf,
|
|
182
193
|
strictObject,
|
|
183
194
|
string,
|
|
@@ -185,21 +196,20 @@ import {
|
|
|
185
196
|
union,
|
|
186
197
|
unknown,
|
|
187
198
|
unwrap,
|
|
188
|
-
url,
|
|
189
199
|
variant,
|
|
190
200
|
writes
|
|
191
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-AUNNJDVD.js";
|
|
192
202
|
import {
|
|
193
203
|
CliError,
|
|
194
204
|
isCliError,
|
|
195
205
|
singleLine,
|
|
196
206
|
visibleControls
|
|
197
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-F6MLJ3V5.js";
|
|
198
208
|
import {
|
|
199
209
|
__name
|
|
200
210
|
} from "./chunk-ZVVMGPBJ.js";
|
|
201
211
|
|
|
202
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
212
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.101.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
|
|
203
213
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
204
214
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
205
215
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -3700,7 +3710,7 @@ __name(useColor, "useColor");
|
|
|
3700
3710
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3701
3711
|
var program = new Command();
|
|
3702
3712
|
|
|
3703
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3713
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.101.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
|
|
3704
3714
|
import { isDeepStrictEqual } from "node:util";
|
|
3705
3715
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3706
3716
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3902,7 +3912,7 @@ var customizeSharedCommand = /* @__PURE__ */ __name((reference2, reason, build,
|
|
|
3902
3912
|
return command;
|
|
3903
3913
|
}, "customizeSharedCommand");
|
|
3904
3914
|
|
|
3905
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3915
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.101.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
|
|
3906
3916
|
var argumentInfoSchema = object({
|
|
3907
3917
|
name: string(),
|
|
3908
3918
|
required: boolean(),
|
|
@@ -3976,7 +3986,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3976
3986
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3977
3987
|
});
|
|
3978
3988
|
|
|
3979
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3989
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.101.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
|
|
3980
3990
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3981
3991
|
let command = root;
|
|
3982
3992
|
const path2 = [];
|
|
@@ -3994,7 +4004,7 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3994
4004
|
}
|
|
3995
4005
|
}, "refuseJoinedPath");
|
|
3996
4006
|
|
|
3997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
3998
4008
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
3999
4009
|
var DANGEROUS = /* @__PURE__ */ new Set(["messages.delete", "bot.messages.delete", "topics.delete", "chats.delete", "chats.clear"]);
|
|
4000
4010
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
@@ -4033,7 +4043,11 @@ var DEFAULT_PERMISSIONS = {
|
|
|
4033
4043
|
"images.models.download": "ask",
|
|
4034
4044
|
"schedule.run": "ask",
|
|
4035
4045
|
"schedule.exec": "ask",
|
|
4036
|
-
"doctor.reports.create": "ask"
|
|
4046
|
+
"doctor.reports.create": "ask",
|
|
4047
|
+
// A meeting changed on the service reaches its invitees: asked first, as zoom's `remote-meetings` was.
|
|
4048
|
+
"meetings.create": "ask",
|
|
4049
|
+
"meetings.update": "ask",
|
|
4050
|
+
"meetings.cancel": "ask"
|
|
4037
4051
|
};
|
|
4038
4052
|
var KEYED_UNDER_HOUSEKEEPING = new Set(Object.keys(DEFAULT_PERMISSIONS).filter((key) => /^(store|server|models|images|schedule|doctor)\./.test(key)));
|
|
4039
4053
|
var AUTHORITY_KEY = "mcp.authority";
|
|
@@ -4090,6 +4104,23 @@ var layerPermissions = /* @__PURE__ */ __name((layers) => {
|
|
|
4090
4104
|
return { levels, sources };
|
|
4091
4105
|
}, "layerPermissions");
|
|
4092
4106
|
var CEILING_KEY = "*";
|
|
4107
|
+
var STORE_ONLY_KEYS = /* @__PURE__ */ new Set([
|
|
4108
|
+
"attachments.extract",
|
|
4109
|
+
"conversations.embeddings",
|
|
4110
|
+
"conversations.links",
|
|
4111
|
+
"messages.server-search",
|
|
4112
|
+
"messages.sync-first",
|
|
4113
|
+
"metadata.sync",
|
|
4114
|
+
"stats.contacts.top.sync-first",
|
|
4115
|
+
"stats.messages.counters.sync",
|
|
4116
|
+
"stats.messages.show.sync-first",
|
|
4117
|
+
"stats.messages.top.sync-first",
|
|
4118
|
+
"store.gaps.repair"
|
|
4119
|
+
]);
|
|
4120
|
+
var FETCH_KEYS = new Set([...STORE_ONLY_KEYS].filter((key) => !["attachments.extract", "conversations.embeddings", "conversations.links"].includes(key)));
|
|
4121
|
+
var fetchesUnder = /* @__PURE__ */ __name((level2, key) => level2 === "readonly" && FETCH_KEYS.has(key), "fetchesUnder");
|
|
4122
|
+
var fetchesAt = /* @__PURE__ */ __name((level2) => level2 === "allow" || level2 === "readonly", "fetchesAt");
|
|
4123
|
+
var stops = /* @__PURE__ */ __name((level2, key) => level2 === "deny" || level2 === "readonly" && !FETCH_KEYS.has(key), "stops");
|
|
4093
4124
|
var ALLOWED = { level: "allow", key: null };
|
|
4094
4125
|
var ORDER = { deny: 0, readonly: 1, ask: 2, allow: 3 };
|
|
4095
4126
|
var nearest = /* @__PURE__ */ __name((levels, key) => {
|
|
@@ -4399,7 +4430,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4399
4430
|
}
|
|
4400
4431
|
}, "assertRetentionEvidenceRead");
|
|
4401
4432
|
|
|
4402
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
4403
4434
|
var account = strictObject({
|
|
4404
4435
|
provider: text,
|
|
4405
4436
|
id,
|
|
@@ -4409,7 +4440,7 @@ var account = strictObject({
|
|
|
4409
4440
|
scope: optional(picklist(["personal", "work"]))
|
|
4410
4441
|
});
|
|
4411
4442
|
|
|
4412
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4443
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
4413
4444
|
var accountSession = strictObject({
|
|
4414
4445
|
current: boolean(),
|
|
4415
4446
|
client: nullable(text),
|
|
@@ -4419,7 +4450,7 @@ var accountSession = strictObject({
|
|
|
4419
4450
|
created_at: optional(nullable(time))
|
|
4420
4451
|
});
|
|
4421
4452
|
|
|
4422
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4453
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
4423
4454
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
4424
4455
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
4425
4456
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -4448,7 +4479,7 @@ var accountRemoval = strictObject({
|
|
|
4448
4479
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
4449
4480
|
});
|
|
4450
4481
|
|
|
4451
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4482
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
4452
4483
|
var accountProfile = strictObject({
|
|
4453
4484
|
profile: id,
|
|
4454
4485
|
current: boolean(),
|
|
@@ -4460,7 +4491,7 @@ var accountProfile = strictObject({
|
|
|
4460
4491
|
bot: optional(literal(true))
|
|
4461
4492
|
});
|
|
4462
4493
|
|
|
4463
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4494
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
4464
4495
|
var milliseconds = pipe(number(), minValue(0));
|
|
4465
4496
|
var counterReading = strictObject({
|
|
4466
4497
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -4472,7 +4503,7 @@ var counterReading = strictObject({
|
|
|
4472
4503
|
});
|
|
4473
4504
|
var selection = record(string(), unknown());
|
|
4474
4505
|
|
|
4475
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4506
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
4476
4507
|
var adminRow = strictObject({
|
|
4477
4508
|
ref: reference,
|
|
4478
4509
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -4525,7 +4556,7 @@ var adminReport = strictObject({
|
|
|
4525
4556
|
rows: array(adminRow)
|
|
4526
4557
|
});
|
|
4527
4558
|
|
|
4528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4559
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
4529
4560
|
var closeSuggestion = strictObject({
|
|
4530
4561
|
as: picklist(["done", "dismissed"]),
|
|
4531
4562
|
/** The agent's name. */
|
|
@@ -4587,7 +4618,7 @@ var task = strictObject({
|
|
|
4587
4618
|
updated_at: optional(time)
|
|
4588
4619
|
});
|
|
4589
4620
|
|
|
4590
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
4591
4622
|
var agendaChat = strictObject({
|
|
4592
4623
|
chat: reference,
|
|
4593
4624
|
title: nullable(text),
|
|
@@ -4657,11 +4688,11 @@ var agenda = strictObject({
|
|
|
4657
4688
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
4658
4689
|
});
|
|
4659
4690
|
|
|
4660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4691
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
4661
4692
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
4662
4693
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
4663
4694
|
|
|
4664
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
4665
4696
|
var attachment = strictObject({
|
|
4666
4697
|
/** The message it came with, as a locator; absent inside that message. */
|
|
4667
4698
|
message: optional(reference),
|
|
@@ -4706,7 +4737,7 @@ var hitFile = strictObject({
|
|
|
4706
4737
|
local_path: optional(text)
|
|
4707
4738
|
});
|
|
4708
4739
|
|
|
4709
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4740
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
4710
4741
|
var actionableError = objectWithRest({
|
|
4711
4742
|
code: text,
|
|
4712
4743
|
message: text,
|
|
@@ -4723,7 +4754,7 @@ var batchResult = strictObject({
|
|
|
4723
4754
|
max_error_percent: count
|
|
4724
4755
|
});
|
|
4725
4756
|
|
|
4726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4757
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
4727
4758
|
var extractionItem = strictObject({
|
|
4728
4759
|
ref: reference,
|
|
4729
4760
|
attachment: count,
|
|
@@ -4756,7 +4787,7 @@ var extractionReport = strictObject({
|
|
|
4756
4787
|
cursor: optional(text)
|
|
4757
4788
|
});
|
|
4758
4789
|
|
|
4759
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
4760
4791
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
4761
4792
|
var attachmentBytes = strictObject({
|
|
4762
4793
|
ref: reference,
|
|
@@ -4787,7 +4818,7 @@ var attachmentTextChange = strictObject({
|
|
|
4787
4818
|
text: optional(text)
|
|
4788
4819
|
});
|
|
4789
4820
|
|
|
4790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4821
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
4791
4822
|
var WEIGHTS = {
|
|
4792
4823
|
bot: 3,
|
|
4793
4824
|
scam: 3,
|
|
@@ -4812,7 +4843,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
4812
4843
|
var DIGITS = /\d{5,}/;
|
|
4813
4844
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
4814
4845
|
|
|
4815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4846
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
4816
4847
|
var linkedIdentity = strictObject({
|
|
4817
4848
|
provider: text,
|
|
4818
4849
|
id,
|
|
@@ -4867,7 +4898,7 @@ var contactCheck = strictObject({
|
|
|
4867
4898
|
checked_at: time
|
|
4868
4899
|
});
|
|
4869
4900
|
|
|
4870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
4871
4902
|
var member = strictObject({
|
|
4872
4903
|
id,
|
|
4873
4904
|
name: nullable(text),
|
|
@@ -4890,7 +4921,7 @@ var member = strictObject({
|
|
|
4890
4921
|
check: optional(record(string(), unknown()))
|
|
4891
4922
|
});
|
|
4892
4923
|
|
|
4893
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4924
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
4894
4925
|
var setting = optional(nullable(boolean()));
|
|
4895
4926
|
var chat = strictObject({
|
|
4896
4927
|
ref: reference,
|
|
@@ -4931,7 +4962,7 @@ var chat = strictObject({
|
|
|
4931
4962
|
members: optional(array(member))
|
|
4932
4963
|
});
|
|
4933
4964
|
|
|
4934
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4965
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
4935
4966
|
var quoted = strictObject({
|
|
4936
4967
|
id,
|
|
4937
4968
|
sender_id: nullable(id),
|
|
@@ -5050,7 +5081,7 @@ var message = strictObject({
|
|
|
5050
5081
|
provider_metadata: providerMetadata
|
|
5051
5082
|
});
|
|
5052
5083
|
|
|
5053
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5084
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
|
|
5054
5085
|
var recordedMeeting = strictObject({
|
|
5055
5086
|
ref: reference,
|
|
5056
5087
|
meeting_id: count,
|
|
@@ -5063,7 +5094,7 @@ var recordedMeeting = strictObject({
|
|
|
5063
5094
|
people: array(reference)
|
|
5064
5095
|
});
|
|
5065
5096
|
|
|
5066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5097
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
5067
5098
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
5068
5099
|
var contextMessage = strictObject({
|
|
5069
5100
|
locator: reference,
|
|
@@ -5269,7 +5300,7 @@ var contactPreparation = strictObject({
|
|
|
5269
5300
|
})
|
|
5270
5301
|
});
|
|
5271
5302
|
|
|
5272
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5303
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
5273
5304
|
var nullableText = nullable(text);
|
|
5274
5305
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
5275
5306
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -5380,7 +5411,7 @@ var stage = strictObject({
|
|
|
5380
5411
|
untrusted
|
|
5381
5412
|
});
|
|
5382
5413
|
|
|
5383
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5414
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/business-context.js
|
|
5384
5415
|
var nullableText2 = nullable(text);
|
|
5385
5416
|
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
5386
5417
|
var standing = picklist(STANDINGS);
|
|
@@ -5554,7 +5585,7 @@ var dealBrief = strictObject({
|
|
|
5554
5585
|
not_read: coverage2.entries.not_read
|
|
5555
5586
|
});
|
|
5556
5587
|
|
|
5557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
5558
5589
|
var chart = strictObject({
|
|
5559
5590
|
version: literal(1),
|
|
5560
5591
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -5569,7 +5600,7 @@ var chart = strictObject({
|
|
|
5569
5600
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
5570
5601
|
});
|
|
5571
5602
|
|
|
5572
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
5573
5604
|
var named = strictObject({
|
|
5574
5605
|
id,
|
|
5575
5606
|
title: nullable(text),
|
|
@@ -5592,7 +5623,7 @@ var folder = strictObject({
|
|
|
5592
5623
|
excluded_chats: optional(array(named))
|
|
5593
5624
|
});
|
|
5594
5625
|
|
|
5595
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5626
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
5596
5627
|
var inviteLink = strictObject({
|
|
5597
5628
|
link: text,
|
|
5598
5629
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -5608,7 +5639,7 @@ var inviteLink = strictObject({
|
|
|
5608
5639
|
joined_count: optional(count)
|
|
5609
5640
|
});
|
|
5610
5641
|
|
|
5611
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
5612
5643
|
var operated = { operation_id: id, chat_id: id };
|
|
5613
5644
|
var group = strictObject({
|
|
5614
5645
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -5688,7 +5719,7 @@ var chatFolderOrder = strictObject({
|
|
|
5688
5719
|
folders: array(strictObject({ id, title: text }))
|
|
5689
5720
|
});
|
|
5690
5721
|
|
|
5691
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5722
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
5692
5723
|
var operated2 = { operation_id: id, chat_id: id };
|
|
5693
5724
|
var chatRemoval = strictObject(operated2);
|
|
5694
5725
|
var chatMuting = strictObject({
|
|
@@ -5699,7 +5730,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
5699
5730
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
5700
5731
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
5701
5732
|
|
|
5702
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
5703
5734
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
5704
5735
|
var chatEvent = strictObject({
|
|
5705
5736
|
chat_id: id,
|
|
@@ -5716,7 +5747,7 @@ var chatEvent = strictObject({
|
|
|
5716
5747
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
5717
5748
|
});
|
|
5718
5749
|
|
|
5719
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5750
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
5720
5751
|
var chatMetadata = strictObject({
|
|
5721
5752
|
chat_id: id,
|
|
5722
5753
|
title: nullable(text),
|
|
@@ -5731,7 +5762,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
5731
5762
|
has_more: boolean()
|
|
5732
5763
|
});
|
|
5733
5764
|
|
|
5734
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
5735
5766
|
var action = picklist(["report", "delete", "remove"]);
|
|
5736
5767
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
5737
5768
|
var chatRules = strictObject({
|
|
@@ -5768,7 +5799,17 @@ var chatModeration = strictObject({
|
|
|
5768
5799
|
}))
|
|
5769
5800
|
});
|
|
5770
5801
|
|
|
5771
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5802
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
|
|
5803
|
+
var chatSending = strictObject({
|
|
5804
|
+
mode: picklist(["allowed", "ask", "denied"]),
|
|
5805
|
+
meaning: text,
|
|
5806
|
+
/** When the owner last set it; `null` while it is the default, ask. */
|
|
5807
|
+
since: nullable(time),
|
|
5808
|
+
/** `set` only: whether this run changed it. */
|
|
5809
|
+
changed: optional(boolean())
|
|
5810
|
+
});
|
|
5811
|
+
|
|
5812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
5772
5813
|
var optionalCount = optional(count);
|
|
5773
5814
|
var minutes = nullable(number());
|
|
5774
5815
|
var chatStats = strictObject({
|
|
@@ -5844,7 +5885,7 @@ var taskStats = strictObject({
|
|
|
5844
5885
|
}))
|
|
5845
5886
|
});
|
|
5846
5887
|
|
|
5847
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5888
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
5848
5889
|
var memberCount = strictObject({
|
|
5849
5890
|
day: pipe(text, isoDate()),
|
|
5850
5891
|
participants: nullable(count),
|
|
@@ -5867,7 +5908,7 @@ var chatTracking = strictObject({
|
|
|
5867
5908
|
tracked: boolean()
|
|
5868
5909
|
});
|
|
5869
5910
|
|
|
5870
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5911
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
5871
5912
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
5872
5913
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
5873
5914
|
var profileFields = {
|
|
@@ -5905,7 +5946,7 @@ var profileFields = {
|
|
|
5905
5946
|
}))
|
|
5906
5947
|
};
|
|
5907
5948
|
|
|
5908
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
5909
5950
|
var contact = strictObject({
|
|
5910
5951
|
ref: reference,
|
|
5911
5952
|
id,
|
|
@@ -5936,7 +5977,7 @@ var contact = strictObject({
|
|
|
5936
5977
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
5937
5978
|
});
|
|
5938
5979
|
|
|
5939
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5980
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
5940
5981
|
var contactNote = strictObject({
|
|
5941
5982
|
id,
|
|
5942
5983
|
/** The contact, as a `contact:` reference. */
|
|
@@ -5948,13 +5989,13 @@ var contactNote = strictObject({
|
|
|
5948
5989
|
updated_at: time
|
|
5949
5990
|
});
|
|
5950
5991
|
|
|
5951
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5992
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
5952
5993
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
5953
5994
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
5954
5995
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
5955
5996
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
5956
5997
|
|
|
5957
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5998
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
5958
5999
|
var conversation = strictObject({
|
|
5959
6000
|
id,
|
|
5960
6001
|
chat: reference,
|
|
@@ -5969,7 +6010,7 @@ var conversation = strictObject({
|
|
|
5969
6010
|
rules_version: count
|
|
5970
6011
|
});
|
|
5971
6012
|
|
|
5972
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
5973
6014
|
var conversationBuild = strictObject({
|
|
5974
6015
|
chat: id,
|
|
5975
6016
|
messages: count,
|
|
@@ -5994,7 +6035,7 @@ var catchUpPreparation = strictObject({
|
|
|
5994
6035
|
prepared: optional(conversationPreparation)
|
|
5995
6036
|
});
|
|
5996
6037
|
|
|
5997
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
5998
6039
|
var conversationDetails = union([
|
|
5999
6040
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
6000
6041
|
message
|
|
@@ -6084,7 +6125,7 @@ var conversationHit = strictObject({
|
|
|
6084
6125
|
stale: boolean()
|
|
6085
6126
|
});
|
|
6086
6127
|
|
|
6087
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6128
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
6088
6129
|
var counters = strictObject({
|
|
6089
6130
|
cutoff: time,
|
|
6090
6131
|
max_age_ms: milliseconds,
|
|
@@ -6114,7 +6155,7 @@ var counterRefresh = strictObject({
|
|
|
6114
6155
|
complete: optional(boolean())
|
|
6115
6156
|
});
|
|
6116
6157
|
|
|
6117
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6158
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
6118
6159
|
var document = strictObject({
|
|
6119
6160
|
ref: reference,
|
|
6120
6161
|
id,
|
|
@@ -6129,7 +6170,7 @@ var document = strictObject({
|
|
|
6129
6170
|
owners: optional(array(text))
|
|
6130
6171
|
});
|
|
6131
6172
|
|
|
6132
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
6133
6174
|
var documentLink = strictObject({
|
|
6134
6175
|
ref: reference,
|
|
6135
6176
|
url: text,
|
|
@@ -6140,7 +6181,7 @@ var documentLink = strictObject({
|
|
|
6140
6181
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
6141
6182
|
});
|
|
6142
6183
|
|
|
6143
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6184
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
6144
6185
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
6145
6186
|
var contribution = strictObject({
|
|
6146
6187
|
message: evidenceMessage,
|
|
@@ -6170,7 +6211,7 @@ var retentionStay = strictObject({
|
|
|
6170
6211
|
});
|
|
6171
6212
|
var evidence = union([contribution, retentionStay]);
|
|
6172
6213
|
|
|
6173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6214
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
6174
6215
|
var fact = strictObject({
|
|
6175
6216
|
ref: reference,
|
|
6176
6217
|
id,
|
|
@@ -6201,7 +6242,7 @@ var fact = strictObject({
|
|
|
6201
6242
|
updated_at: time
|
|
6202
6243
|
});
|
|
6203
6244
|
|
|
6204
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6245
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
6205
6246
|
var hit = strictObject({
|
|
6206
6247
|
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
|
|
6207
6248
|
ref: reference,
|
|
@@ -6249,7 +6290,7 @@ var hit = strictObject({
|
|
|
6249
6290
|
untrusted
|
|
6250
6291
|
});
|
|
6251
6292
|
|
|
6252
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
6253
6294
|
var identity = strictObject({
|
|
6254
6295
|
ref: reference,
|
|
6255
6296
|
provider: text,
|
|
@@ -6265,7 +6306,7 @@ var identity = strictObject({
|
|
|
6265
6306
|
person: optional(nullable(reference))
|
|
6266
6307
|
});
|
|
6267
6308
|
|
|
6268
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6309
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
6269
6310
|
var imageEmbedding = strictObject({
|
|
6270
6311
|
model: text,
|
|
6271
6312
|
embedded: count,
|
|
@@ -6274,13 +6315,13 @@ var imageEmbedding = strictObject({
|
|
|
6274
6315
|
more: boolean()
|
|
6275
6316
|
});
|
|
6276
6317
|
|
|
6277
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6318
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
6278
6319
|
import { spawn } from "node:child_process";
|
|
6279
6320
|
import { randomBytes } from "node:crypto";
|
|
6280
6321
|
import { closeSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync, realpathSync, rmSync } from "node:fs";
|
|
6281
6322
|
import { dirname, join } from "node:path";
|
|
6282
6323
|
|
|
6283
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6324
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
6284
6325
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
6285
6326
|
const total = input.total ?? null;
|
|
6286
6327
|
const updated = input.updatedAt ?? null;
|
|
@@ -6296,7 +6337,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
6296
6337
|
};
|
|
6297
6338
|
}, "progressOf");
|
|
6298
6339
|
|
|
6299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
6300
6341
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
6301
6342
|
const run = currentRun();
|
|
6302
6343
|
const trace = traceId ?? run.traceId;
|
|
@@ -6310,7 +6351,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
6310
6351
|
}));
|
|
6311
6352
|
}, "recordLogFor");
|
|
6312
6353
|
|
|
6313
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
6314
6355
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
6315
6356
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
6316
6357
|
const out = openSync(log, "a", 384);
|
|
@@ -6465,7 +6506,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
6465
6506
|
return { job: id6, pid, chat: input.chat, log };
|
|
6466
6507
|
}, "startArchiveJob");
|
|
6467
6508
|
|
|
6468
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6509
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
6469
6510
|
var problem = strictObject({ code: text, message: text });
|
|
6470
6511
|
var job = strictObject({
|
|
6471
6512
|
id,
|
|
@@ -6488,7 +6529,7 @@ var job = strictObject({
|
|
|
6488
6529
|
error: optional(problem)
|
|
6489
6530
|
});
|
|
6490
6531
|
|
|
6491
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6532
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
6492
6533
|
var joinRequest = strictObject({
|
|
6493
6534
|
person_id: id,
|
|
6494
6535
|
name: nullable(text),
|
|
@@ -6499,7 +6540,7 @@ var joinRequest = strictObject({
|
|
|
6499
6540
|
about: optional(text)
|
|
6500
6541
|
});
|
|
6501
6542
|
|
|
6502
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
6503
6544
|
var botProfile = strictObject({
|
|
6504
6545
|
name: text,
|
|
6505
6546
|
token: text,
|
|
@@ -6623,7 +6664,7 @@ var stickerInventory = strictObject({
|
|
|
6623
6664
|
url: optional(nullable(text))
|
|
6624
6665
|
});
|
|
6625
6666
|
|
|
6626
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6667
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
6627
6668
|
var pollVote = strictObject({
|
|
6628
6669
|
person_id: id,
|
|
6629
6670
|
name: nullable(text),
|
|
@@ -6633,7 +6674,7 @@ var pollVote = strictObject({
|
|
|
6633
6674
|
voted_at: time
|
|
6634
6675
|
});
|
|
6635
6676
|
|
|
6636
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6677
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
6637
6678
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
6638
6679
|
var observation = strictObject({
|
|
6639
6680
|
value: pipe(number(), minValue(0)),
|
|
@@ -6675,7 +6716,7 @@ var serveSummary = strictObject({
|
|
|
6675
6716
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
6676
6717
|
});
|
|
6677
6718
|
|
|
6678
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
6679
6720
|
var mailCounts = strictObject({
|
|
6680
6721
|
by: picklist(["day", "week", "sender"]),
|
|
6681
6722
|
received: count,
|
|
@@ -6690,7 +6731,7 @@ var mailCounts = strictObject({
|
|
|
6690
6731
|
}))
|
|
6691
6732
|
});
|
|
6692
6733
|
|
|
6693
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6734
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
6694
6735
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
6695
6736
|
var base = { id, evidence: array(evidence2) };
|
|
6696
6737
|
var finding = variant("kind", [
|
|
@@ -6834,7 +6875,7 @@ var mailFindings = strictObject({
|
|
|
6834
6875
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
6835
6876
|
});
|
|
6836
6877
|
|
|
6837
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6878
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
6838
6879
|
var mediaArchive = strictObject({
|
|
6839
6880
|
directory: text,
|
|
6840
6881
|
chats: count,
|
|
@@ -6866,7 +6907,7 @@ var mediaArchiveTimer = union([
|
|
|
6866
6907
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
6867
6908
|
]);
|
|
6868
6909
|
|
|
6869
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6910
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
6870
6911
|
var preparationId = pipe(string(), minLength(1));
|
|
6871
6912
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
6872
6913
|
var preparationTime = nullable(isoTime);
|
|
@@ -6958,7 +6999,7 @@ var preparationMeeting = strictObject({
|
|
|
6958
6999
|
updated_at: isoTime
|
|
6959
7000
|
});
|
|
6960
7001
|
|
|
6961
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7002
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
6962
7003
|
var meetingEvidence = preparationEvidence;
|
|
6963
7004
|
var meetingPersonContext = strictObject({
|
|
6964
7005
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -6980,7 +7021,7 @@ var meetingPersonContext = strictObject({
|
|
|
6980
7021
|
})
|
|
6981
7022
|
});
|
|
6982
7023
|
|
|
6983
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
6984
7025
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
6985
7026
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
6986
7027
|
var finding2 = variant("kind", [
|
|
@@ -7018,7 +7059,7 @@ var meetingFindings = strictObject({
|
|
|
7018
7059
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
7019
7060
|
});
|
|
7020
7061
|
|
|
7021
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7062
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
7022
7063
|
var communicationCoverage = strictObject({
|
|
7023
7064
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
7024
7065
|
query: string(),
|
|
@@ -7063,7 +7104,7 @@ var preparationCommunications = strictObject({
|
|
|
7063
7104
|
}))
|
|
7064
7105
|
});
|
|
7065
7106
|
|
|
7066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7107
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
7067
7108
|
var meetingPreparation = strictObject({
|
|
7068
7109
|
communications: optional(preparationCommunications),
|
|
7069
7110
|
schema_version: literal(1),
|
|
@@ -7176,7 +7217,7 @@ var meetingPreparation = strictObject({
|
|
|
7176
7217
|
})
|
|
7177
7218
|
});
|
|
7178
7219
|
|
|
7179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7220
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
7180
7221
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
7181
7222
|
var id3 = pipe(string(), minLength(1));
|
|
7182
7223
|
var text3 = string();
|
|
@@ -7240,7 +7281,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
7240
7281
|
})
|
|
7241
7282
|
});
|
|
7242
7283
|
|
|
7243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7284
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
7244
7285
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
7245
7286
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
7246
7287
|
var meetingSeriesInventory = strictObject({
|
|
@@ -7270,7 +7311,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
7270
7311
|
})
|
|
7271
7312
|
});
|
|
7272
7313
|
|
|
7273
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7314
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
7274
7315
|
var text4 = string();
|
|
7275
7316
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
7276
7317
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -7287,7 +7328,7 @@ var meetingTaskProposal = strictObject({
|
|
|
7287
7328
|
persistence: literal("proposal-only")
|
|
7288
7329
|
});
|
|
7289
7330
|
|
|
7290
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7331
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
7291
7332
|
var memory = strictObject({
|
|
7292
7333
|
ref: reference,
|
|
7293
7334
|
id,
|
|
@@ -7315,7 +7356,7 @@ var memory = strictObject({
|
|
|
7315
7356
|
updated_at: time
|
|
7316
7357
|
});
|
|
7317
7358
|
|
|
7318
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7359
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
7319
7360
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
7320
7361
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
7321
7362
|
var mention = strictObject({
|
|
@@ -7359,13 +7400,13 @@ var mentionRebuild = strictObject({
|
|
|
7359
7400
|
mentions: count
|
|
7360
7401
|
});
|
|
7361
7402
|
|
|
7362
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
7363
7404
|
var operated3 = { operation_id: id, chat_id: id };
|
|
7364
7405
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
7365
7406
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
7366
7407
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
7367
7408
|
|
|
7368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
7369
7410
|
var messageTranscript = strictObject({
|
|
7370
7411
|
message_id: id,
|
|
7371
7412
|
text,
|
|
@@ -7423,7 +7464,7 @@ var evidencePacket = strictObject({
|
|
|
7423
7464
|
}))
|
|
7424
7465
|
});
|
|
7425
7466
|
|
|
7426
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7467
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
7427
7468
|
var messageThread = strictObject({
|
|
7428
7469
|
ref: reference,
|
|
7429
7470
|
chat: id,
|
|
@@ -7440,7 +7481,7 @@ var messageThread = strictObject({
|
|
|
7440
7481
|
});
|
|
7441
7482
|
var messageContext = union([message, messageThread]);
|
|
7442
7483
|
|
|
7443
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
7444
7485
|
var messageCounts = strictObject({
|
|
7445
7486
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
7446
7487
|
total: count,
|
|
@@ -7453,7 +7494,7 @@ var messageCounts = strictObject({
|
|
|
7453
7494
|
}))
|
|
7454
7495
|
});
|
|
7455
7496
|
|
|
7456
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7497
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
7457
7498
|
var messageLink = strictObject({
|
|
7458
7499
|
ref: reference,
|
|
7459
7500
|
url: nullable(text),
|
|
@@ -7470,7 +7511,7 @@ var messageLink = strictObject({
|
|
|
7470
7511
|
})))
|
|
7471
7512
|
});
|
|
7472
7513
|
|
|
7473
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
7474
7515
|
var savedMessageFile = strictObject({
|
|
7475
7516
|
kind: text,
|
|
7476
7517
|
path: text,
|
|
@@ -7557,7 +7598,7 @@ var messageSyncAll = strictObject({
|
|
|
7557
7598
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
7558
7599
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
7559
7600
|
|
|
7560
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7601
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
7561
7602
|
var messageWrite = strictObject({
|
|
7562
7603
|
operation_id: id,
|
|
7563
7604
|
message,
|
|
@@ -7572,7 +7613,7 @@ var draftWrite = strictObject({
|
|
|
7572
7613
|
});
|
|
7573
7614
|
var messageSend = union([messageWrite, draftWrite]);
|
|
7574
7615
|
|
|
7575
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7616
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
7576
7617
|
var model = strictObject({
|
|
7577
7618
|
id,
|
|
7578
7619
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -7607,7 +7648,7 @@ var chosenModel = strictObject({
|
|
|
7607
7648
|
estimate_seconds: nullable(count)
|
|
7608
7649
|
});
|
|
7609
7650
|
|
|
7610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7651
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
7611
7652
|
var source = picklist(["environment", "keyring", "file"]);
|
|
7612
7653
|
var modelKey = strictObject({
|
|
7613
7654
|
provider: text,
|
|
@@ -7617,7 +7658,7 @@ var modelKey = strictObject({
|
|
|
7617
7658
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
7618
7659
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
7619
7660
|
|
|
7620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7661
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
7621
7662
|
var versus = strictObject({ current: number(), previous: number() });
|
|
7622
7663
|
var person = { person_ref: reference, name: nullable(text) };
|
|
7623
7664
|
var graph = strictObject({
|
|
@@ -7651,14 +7692,14 @@ var officialStats = strictObject({
|
|
|
7651
7692
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
7652
7693
|
});
|
|
7653
7694
|
|
|
7654
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7695
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
7655
7696
|
var person2 = strictObject({
|
|
7656
7697
|
ref: reference,
|
|
7657
7698
|
name: nullable(text),
|
|
7658
7699
|
identities: optional(array(identity))
|
|
7659
7700
|
});
|
|
7660
7701
|
|
|
7661
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7702
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
7662
7703
|
var poll = strictObject({
|
|
7663
7704
|
chat_id: id,
|
|
7664
7705
|
message_id: id,
|
|
@@ -7674,11 +7715,11 @@ var poll = strictObject({
|
|
|
7674
7715
|
});
|
|
7675
7716
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
7676
7717
|
|
|
7677
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7718
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
7678
7719
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
7679
7720
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
7680
7721
|
|
|
7681
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7722
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
7682
7723
|
var figures = record(string(), number());
|
|
7683
7724
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
7684
7725
|
var rankingRow = strictObject({
|
|
@@ -7725,7 +7766,7 @@ var ranking = strictObject({
|
|
|
7725
7766
|
rows: array(rankingRow)
|
|
7726
7767
|
});
|
|
7727
7768
|
|
|
7728
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
7729
7770
|
var reaction = strictObject({
|
|
7730
7771
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
7731
7772
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -7733,7 +7774,7 @@ var reaction = strictObject({
|
|
|
7733
7774
|
reacted_at: time
|
|
7734
7775
|
});
|
|
7735
7776
|
|
|
7736
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
7737
7778
|
var reactionChange = strictObject({
|
|
7738
7779
|
operation_id: id,
|
|
7739
7780
|
chat_id: id,
|
|
@@ -7741,7 +7782,7 @@ var reactionChange = strictObject({
|
|
|
7741
7782
|
reaction: nullable(text)
|
|
7742
7783
|
});
|
|
7743
7784
|
|
|
7744
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7785
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
7745
7786
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
7746
7787
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
7747
7788
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -7752,7 +7793,7 @@ var recipientChange = strictObject({
|
|
|
7752
7793
|
...partial(recipientOff).entries
|
|
7753
7794
|
});
|
|
7754
7795
|
|
|
7755
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7796
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
7756
7797
|
var events = array(record(string(), unknown()));
|
|
7757
7798
|
var recordedRun = strictObject({
|
|
7758
7799
|
run_id: id,
|
|
@@ -7824,7 +7865,7 @@ var runHit = strictObject({
|
|
|
7824
7865
|
});
|
|
7825
7866
|
var runLocation = strictObject({ path: text });
|
|
7826
7867
|
|
|
7827
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
7828
7869
|
var relationship = strictObject({
|
|
7829
7870
|
id,
|
|
7830
7871
|
from: reference,
|
|
@@ -7851,7 +7892,7 @@ var relationship = strictObject({
|
|
|
7851
7892
|
created_at: time
|
|
7852
7893
|
});
|
|
7853
7894
|
|
|
7854
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7895
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
7855
7896
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
7856
7897
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
7857
7898
|
var responseTimes = strictObject({
|
|
@@ -7868,7 +7909,7 @@ var waitingChats = strictObject({
|
|
|
7868
7909
|
by_kind: strictObject({ private: count, group: count })
|
|
7869
7910
|
});
|
|
7870
7911
|
|
|
7871
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
7872
7913
|
var retentionCohort = strictObject({
|
|
7873
7914
|
/** The first day of the joining day or week. */
|
|
7874
7915
|
cohort: text,
|
|
@@ -7916,7 +7957,7 @@ var retention = strictObject({
|
|
|
7916
7957
|
rows: array(retentionCohort)
|
|
7917
7958
|
});
|
|
7918
7959
|
|
|
7919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7960
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
7920
7961
|
var savedSearch = strictObject({
|
|
7921
7962
|
id,
|
|
7922
7963
|
/** `null` for a run in the history. */
|
|
@@ -7933,7 +7974,7 @@ var savedSearch = strictObject({
|
|
|
7933
7974
|
});
|
|
7934
7975
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
7935
7976
|
|
|
7936
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7977
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
7937
7978
|
var sendAttempt = strictObject({
|
|
7938
7979
|
at: time,
|
|
7939
7980
|
profile: text,
|
|
@@ -7961,7 +8002,7 @@ var sendAttempt = strictObject({
|
|
|
7961
8002
|
error_code: optional(text)
|
|
7962
8003
|
});
|
|
7963
8004
|
|
|
7964
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8005
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
7965
8006
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
7966
8007
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
7967
8008
|
var infoSchema = strictObject({
|
|
@@ -8191,7 +8232,7 @@ var storeRepair = union([
|
|
|
8191
8232
|
]);
|
|
8192
8233
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
8193
8234
|
|
|
8194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8235
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
8195
8236
|
var range = strictObject({ from: number(), to: number() });
|
|
8196
8237
|
var storeChatStatus = strictObject({
|
|
8197
8238
|
chat_id: id,
|
|
@@ -8289,7 +8330,7 @@ var storeJobRetry = union([
|
|
|
8289
8330
|
]);
|
|
8290
8331
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
8291
8332
|
|
|
8292
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
8293
8334
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
8294
8335
|
var storeTable = strictObject({
|
|
8295
8336
|
name: text,
|
|
@@ -8298,7 +8339,7 @@ var storeTable = strictObject({
|
|
|
8298
8339
|
bytes: optional(nullable(count))
|
|
8299
8340
|
});
|
|
8300
8341
|
|
|
8301
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8342
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
8302
8343
|
var tagTarget = variant("type", [
|
|
8303
8344
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
8304
8345
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -8329,7 +8370,7 @@ var automaticTags = strictObject({
|
|
|
8329
8370
|
dry_run: boolean()
|
|
8330
8371
|
});
|
|
8331
8372
|
|
|
8332
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
8333
8374
|
var tagging = strictObject({
|
|
8334
8375
|
tag: text,
|
|
8335
8376
|
type: picklist(TAG_TYPES),
|
|
@@ -8342,7 +8383,7 @@ var tagging = strictObject({
|
|
|
8342
8383
|
created_at: time
|
|
8343
8384
|
});
|
|
8344
8385
|
|
|
8345
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
8346
8387
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
8347
8388
|
var taskPair = strictObject({
|
|
8348
8389
|
task: nullable(side),
|
|
@@ -8365,7 +8406,7 @@ var taskPair = strictObject({
|
|
|
8365
8406
|
created_at: time
|
|
8366
8407
|
});
|
|
8367
8408
|
|
|
8368
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8409
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
8369
8410
|
var nullableTime = nullable(time);
|
|
8370
8411
|
var link = strictObject({
|
|
8371
8412
|
id,
|
|
@@ -8539,7 +8580,7 @@ var taskReview = strictObject({
|
|
|
8539
8580
|
untrusted
|
|
8540
8581
|
});
|
|
8541
8582
|
|
|
8542
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8583
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/template.js
|
|
8543
8584
|
var template = strictObject({
|
|
8544
8585
|
key: text,
|
|
8545
8586
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -8551,7 +8592,7 @@ var template = strictObject({
|
|
|
8551
8592
|
updated_by: nullable(text)
|
|
8552
8593
|
});
|
|
8553
8594
|
|
|
8554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8595
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
8555
8596
|
var topic = strictObject({
|
|
8556
8597
|
id,
|
|
8557
8598
|
title: text,
|
|
@@ -8565,7 +8606,7 @@ var topic = strictObject({
|
|
|
8565
8606
|
untrusted
|
|
8566
8607
|
});
|
|
8567
8608
|
|
|
8568
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8609
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
8569
8610
|
var ENTITIES = {
|
|
8570
8611
|
sync_progress: progress,
|
|
8571
8612
|
deal,
|
|
@@ -8740,6 +8781,9 @@ var ENTITIES = {
|
|
|
8740
8781
|
meeting_link: meetingLink,
|
|
8741
8782
|
meeting_stats: meetingStats,
|
|
8742
8783
|
meeting_counts: meetingCounts,
|
|
8784
|
+
call_stats: callStats,
|
|
8785
|
+
meeting_tag_change: meetingTagChange,
|
|
8786
|
+
meeting_tagging: meetingTagging,
|
|
8743
8787
|
meeting_speaker: meetingSpeaker,
|
|
8744
8788
|
meeting_participants: meetingParticipants,
|
|
8745
8789
|
meeting_passage: meetingPassage,
|
|
@@ -8816,6 +8860,7 @@ var ENTITIES = {
|
|
|
8816
8860
|
chat_moderation: chatModeration,
|
|
8817
8861
|
"model.chosen": chosenModel,
|
|
8818
8862
|
model_key: modelKey,
|
|
8863
|
+
chat_sending: chatSending,
|
|
8819
8864
|
"model_key.stored": storedModelKey,
|
|
8820
8865
|
"model_key.removed": removedModelKey,
|
|
8821
8866
|
chat_event: chatEvent,
|
|
@@ -8860,7 +8905,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
8860
8905
|
return [name, definition];
|
|
8861
8906
|
})), "entityDefinitions");
|
|
8862
8907
|
|
|
8863
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
8864
8909
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
8865
8910
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
8866
8911
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -8894,7 +8939,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
8894
8939
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
8895
8940
|
}, "answerRow");
|
|
8896
8941
|
|
|
8897
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
|
|
8898
8943
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
8899
8944
|
var requests = new AsyncLocalStorage();
|
|
8900
8945
|
var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
|
|
@@ -8909,7 +8954,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
|
|
|
8909
8954
|
return direct;
|
|
8910
8955
|
}, "exitCodeSet");
|
|
8911
8956
|
|
|
8912
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/sends/guarded.js
|
|
8913
8958
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
8914
8959
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
8915
8960
|
messageId: message2.id,
|
|
@@ -9015,7 +9060,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
9015
9060
|
}, "guardedWrite");
|
|
9016
9061
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
9017
9062
|
|
|
9018
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
9019
9064
|
var named2 = /* @__PURE__ */ __name((work) => {
|
|
9020
9065
|
try {
|
|
9021
9066
|
return work();
|
|
@@ -9042,7 +9087,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named2(() => {
|
|
|
9042
9087
|
return projectFields(value, fields);
|
|
9043
9088
|
}), "projectFields");
|
|
9044
9089
|
|
|
9045
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9090
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
9046
9091
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
9047
9092
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
9048
9093
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -9225,7 +9270,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
9225
9270
|
}
|
|
9226
9271
|
}, "withAbort");
|
|
9227
9272
|
|
|
9228
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9273
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
9229
9274
|
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
9230
9275
|
import { join as join2 } from "node:path";
|
|
9231
9276
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -9314,7 +9359,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
9314
9359
|
return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
9315
9360
|
}, "registryProfiles");
|
|
9316
9361
|
|
|
9317
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
9318
9363
|
import { existsSync as existsSync3, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
|
|
9319
9364
|
import { join as join3 } from "node:path";
|
|
9320
9365
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -9336,7 +9381,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
9336
9381
|
}, "profilesWithAccounts");
|
|
9337
9382
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
9338
9383
|
|
|
9339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
9340
9385
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
9341
9386
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
9342
9387
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -9372,7 +9417,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
9372
9417
|
return value;
|
|
9373
9418
|
}, "atDetail");
|
|
9374
9419
|
|
|
9375
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/output.js
|
|
9376
9421
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
9377
9422
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
9378
9423
|
if (other)
|
|
@@ -9436,7 +9481,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
9436
9481
|
}, "warn")
|
|
9437
9482
|
}), "silence");
|
|
9438
9483
|
|
|
9439
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
9440
9485
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
9441
9486
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
9442
9487
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -9474,7 +9519,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
9474
9519
|
progress: "sync.progress"
|
|
9475
9520
|
};
|
|
9476
9521
|
|
|
9477
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9522
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
9478
9523
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
9479
9524
|
const recording = startRecording(options);
|
|
9480
9525
|
try {
|
|
@@ -9689,7 +9734,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
9689
9734
|
return void 0;
|
|
9690
9735
|
}, "partialOutcome");
|
|
9691
9736
|
|
|
9692
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9737
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
9693
9738
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
9694
9739
|
if (ms2 === void 0)
|
|
9695
9740
|
return body();
|
|
@@ -9715,7 +9760,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
9715
9760
|
}
|
|
9716
9761
|
}, "withDeadline");
|
|
9717
9762
|
|
|
9718
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
9719
9764
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
9720
9765
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
9721
9766
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -9741,19 +9786,19 @@ var takesProfile = /* @__PURE__ */ __name((command) => {
|
|
|
9741
9786
|
return top !== void 0 && !PROFILE_FREE.has(top.name());
|
|
9742
9787
|
}, "takesProfile");
|
|
9743
9788
|
var commandWords = /* @__PURE__ */ __name((program2) => /* @__PURE__ */ new Set(["help", ...program2.commands.flatMap((command) => [command.name(), ...command.aliases()])]), "commandWords");
|
|
9744
|
-
var liftProfile = /* @__PURE__ */ __name((argv,
|
|
9789
|
+
var liftProfile = /* @__PURE__ */ __name((argv, words, valued = /* @__PURE__ */ new Set()) => {
|
|
9745
9790
|
let at2 = 0;
|
|
9746
9791
|
while (argv[at2]?.startsWith("-") && argv[at2] !== "--")
|
|
9747
9792
|
at2 += valued.has(argv[at2]) ? 2 : 1;
|
|
9748
9793
|
const first2 = argv[at2];
|
|
9749
|
-
if (first2 === void 0 || first2.startsWith("-") ||
|
|
9794
|
+
if (first2 === void 0 || first2.startsWith("-") || words.has(first2))
|
|
9750
9795
|
return { rest: argv };
|
|
9751
9796
|
return { profile: first2, rest: [...argv.slice(0, at2), ...argv.slice(at2 + 1)] };
|
|
9752
9797
|
}, "liftProfile");
|
|
9753
9798
|
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");
|
|
9754
|
-
var refuseCommandName = /* @__PURE__ */ __name((profile,
|
|
9755
|
-
if (
|
|
9756
|
-
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: ` + [...
|
|
9799
|
+
var refuseCommandName = /* @__PURE__ */ __name((profile, words, command) => {
|
|
9800
|
+
if (words.has(profile)) {
|
|
9801
|
+
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(", "));
|
|
9757
9802
|
}
|
|
9758
9803
|
}, "refuseCommandName");
|
|
9759
9804
|
var rootOf = /* @__PURE__ */ __name((command) => {
|
|
@@ -9784,10 +9829,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
9784
9829
|
return void 0;
|
|
9785
9830
|
}, "sampleCommand");
|
|
9786
9831
|
|
|
9787
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9788
|
-
import { existsSync as
|
|
9832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
9833
|
+
import { existsSync as existsSync5 } from "node:fs";
|
|
9789
9834
|
|
|
9790
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/models/settings.js
|
|
9791
9836
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
9792
9837
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
9793
9838
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -9856,13 +9901,13 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
9856
9901
|
};
|
|
9857
9902
|
}, "modelTarget");
|
|
9858
9903
|
|
|
9859
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9904
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
9860
9905
|
var model2 = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
9861
|
-
var
|
|
9906
|
+
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
9862
9907
|
var AI_FIELDS = {
|
|
9863
9908
|
embeddingProvider: optional(picklist(["local", "openai"])),
|
|
9864
9909
|
embeddingModel: optional(model2),
|
|
9865
|
-
embeddingBaseUrl: optional(
|
|
9910
|
+
embeddingBaseUrl: optional(url),
|
|
9866
9911
|
embeddingDims: optional(pipe(number(), integer(), minValue(1), maxValue(65536))),
|
|
9867
9912
|
models: optional(modelSettingsShape)
|
|
9868
9913
|
};
|
|
@@ -9900,7 +9945,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
9900
9945
|
};
|
|
9901
9946
|
}, "resolveAISettings");
|
|
9902
9947
|
|
|
9903
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9948
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
9904
9949
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
9905
9950
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
9906
9951
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -9914,284 +9959,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
9914
9959
|
return ms2;
|
|
9915
9960
|
}, "parseDuration");
|
|
9916
9961
|
|
|
9917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9918
|
-
import { existsSync as existsSync4 } from "node:fs";
|
|
9919
|
-
import { join as join4 } from "node:path";
|
|
9920
|
-
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
9921
|
-
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
9922
|
-
var e5Large = huggingFace("Xenova/multilingual-e5-large", "00fc3aeb3dbb95842de2ac1961d33c6319acf57b");
|
|
9923
|
-
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
9924
|
-
var TEXT_MODELS = [
|
|
9925
|
-
{
|
|
9926
|
-
id: "e5-small",
|
|
9927
|
-
title: "multilingual-e5-small, 8-bit",
|
|
9928
|
-
size: "small",
|
|
9929
|
-
languages: "about 100 languages, Russian and English among them",
|
|
9930
|
-
licence: "MIT",
|
|
9931
|
-
dims: 384,
|
|
9932
|
-
maxTokens: 512,
|
|
9933
|
-
// 100k-message corpus, one 8-thread session on Ryzen AI 9 HX 470: 31–32 chunks/s.
|
|
9934
|
-
chunksPerSecond: 31,
|
|
9935
|
-
pooling: "mean",
|
|
9936
|
-
prefix: { query: "query: ", passage: "passage: " },
|
|
9937
|
-
onnx: "onnx/model_quantized.onnx",
|
|
9938
|
-
files: [
|
|
9939
|
-
{
|
|
9940
|
-
name: "onnx/model_quantized.onnx",
|
|
9941
|
-
url: e5("onnx/model_quantized.onnx"),
|
|
9942
|
-
sha256: "f80102d3f2a1229f387d3c81909990d8945513e347b0eab049f7de3c6f98c193",
|
|
9943
|
-
bytes: 118308185
|
|
9944
|
-
},
|
|
9945
|
-
{
|
|
9946
|
-
name: "tokenizer.json",
|
|
9947
|
-
url: e5("tokenizer.json"),
|
|
9948
|
-
sha256: "0b44a9d7b51c3c62626640cda0e2c2f70fdacdc25bbbd68038369d14ebdf4c39",
|
|
9949
|
-
bytes: 17082730
|
|
9950
|
-
},
|
|
9951
|
-
{
|
|
9952
|
-
name: "tokenizer_config.json",
|
|
9953
|
-
url: e5("tokenizer_config.json"),
|
|
9954
|
-
sha256: "a1d6bc8734a6f635dc158508bef000f8e2e5a759c7d92f984b2c86e5ff53425b",
|
|
9955
|
-
bytes: 443
|
|
9956
|
-
}
|
|
9957
|
-
]
|
|
9958
|
-
},
|
|
9959
|
-
{
|
|
9960
|
-
id: "embeddinggemma",
|
|
9961
|
-
title: "EmbeddingGemma 300M, 4-bit",
|
|
9962
|
-
size: "medium",
|
|
9963
|
-
languages: "over 100 languages \u2014 the best of the two on chat, about seven times slower",
|
|
9964
|
-
licence: "Gemma Terms of Use",
|
|
9965
|
-
terms: "https://ai.google.dev/gemma/terms",
|
|
9966
|
-
// Gemma Terms of Use §3.1: every copy carries this notice and the use restrictions of §3.2.
|
|
9967
|
-
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",
|
|
9968
|
-
dims: 768,
|
|
9969
|
-
maxTokens: 2048,
|
|
9970
|
-
// 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
|
|
9971
|
-
// 5 on the scale e5-small's 31 sets. It was 2, which held a memo sync to 39 chunks.
|
|
9972
|
-
chunksPerSecond: 5,
|
|
9973
|
-
pooling: "sentence_embedding",
|
|
9974
|
-
prefix: { query: "task: search result | query: ", passage: "title: none | text: " },
|
|
9975
|
-
onnx: "onnx/model_q4.onnx",
|
|
9976
|
-
externalData: "onnx/model_q4.onnx_data",
|
|
9977
|
-
files: [
|
|
9978
|
-
{
|
|
9979
|
-
name: "onnx/model_q4.onnx",
|
|
9980
|
-
url: gemma("onnx/model_q4.onnx"),
|
|
9981
|
-
sha256: "ad1dfee81a70f7944b9b9d1cc6e48075b832881cf33fab2f2b248be78f3f0043",
|
|
9982
|
-
bytes: 519322
|
|
9983
|
-
},
|
|
9984
|
-
{
|
|
9985
|
-
name: "onnx/model_q4.onnx_data",
|
|
9986
|
-
url: gemma("onnx/model_q4.onnx_data"),
|
|
9987
|
-
sha256: "599962c3143b040de2dd05e5975be3e9091dd067cacc6a8f7186e3203bab9e02",
|
|
9988
|
-
bytes: 196725760
|
|
9989
|
-
},
|
|
9990
|
-
{
|
|
9991
|
-
name: "tokenizer.json",
|
|
9992
|
-
url: gemma("tokenizer.json"),
|
|
9993
|
-
sha256: "4dda02faaf32bc91031dc8c88457ac272b00c1016cc679757d1c441b248b9c47",
|
|
9994
|
-
bytes: 20323312
|
|
9995
|
-
},
|
|
9996
|
-
{
|
|
9997
|
-
name: "tokenizer_config.json",
|
|
9998
|
-
url: gemma("tokenizer_config.json"),
|
|
9999
|
-
sha256: "3ca953eea6c3c9fcda9cf3df22949ff18b216f7c74bd6459230f3f1013953f3a",
|
|
10000
|
-
bytes: 1156830
|
|
10001
|
-
}
|
|
10002
|
-
]
|
|
10003
|
-
},
|
|
10004
|
-
{
|
|
10005
|
-
id: "e5-large",
|
|
10006
|
-
title: "multilingual-e5-large, 8-bit",
|
|
10007
|
-
size: "large",
|
|
10008
|
-
languages: "about 100 languages, Russian and English among them \u2014 reads better than e5-small, several times slower",
|
|
10009
|
-
licence: "MIT",
|
|
10010
|
-
dims: 1024,
|
|
10011
|
-
maxTokens: 512,
|
|
10012
|
-
// 2026-11-07, one 8-thread session on the Ryzen AI 9 HX 470 while other benchmarks ran: 3.4 chunks/s.
|
|
10013
|
-
chunksPerSecond: 4,
|
|
10014
|
-
pooling: "mean",
|
|
10015
|
-
prefix: { query: "query: ", passage: "passage: " },
|
|
10016
|
-
onnx: "onnx/model_quantized.onnx",
|
|
10017
|
-
files: [
|
|
10018
|
-
{
|
|
10019
|
-
name: "onnx/model_quantized.onnx",
|
|
10020
|
-
url: e5Large("onnx/model_quantized.onnx"),
|
|
10021
|
-
sha256: "0a8d65db9a36f810ba5da15249f13145fcdc7890e6656f1fd38cd8b7c4db1fca",
|
|
10022
|
-
bytes: 561768762
|
|
10023
|
-
},
|
|
10024
|
-
{
|
|
10025
|
-
name: "tokenizer.json",
|
|
10026
|
-
url: e5Large("tokenizer.json"),
|
|
10027
|
-
sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
|
|
10028
|
-
bytes: 17082660
|
|
10029
|
-
},
|
|
10030
|
-
{
|
|
10031
|
-
name: "tokenizer_config.json",
|
|
10032
|
-
url: e5Large("tokenizer_config.json"),
|
|
10033
|
-
sha256: "efb5c0d09722e5fe59a462cd2a9976ee216d55b037597d997cd3fe833216da15",
|
|
10034
|
-
bytes: 418
|
|
10035
|
-
}
|
|
10036
|
-
]
|
|
10037
|
-
}
|
|
10038
|
-
];
|
|
10039
|
-
var DEFAULT_TEXT_MODEL = "embeddinggemma";
|
|
10040
|
-
var PREVIOUS_DEFAULT_TEXT_MODEL = "e5-small";
|
|
10041
|
-
var SECTION = "text_models";
|
|
10042
|
-
var slug = pipe(string(), regex(/^[a-z0-9][a-z0-9._-]{0,62}$/, "is not a model id: a-z, 0-9, . _ -"));
|
|
10043
|
-
var words = pipe(string(), trim(), minLength(1), maxLength(300));
|
|
10044
|
-
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"));
|
|
10045
|
-
var modelFile = strictObject({
|
|
10046
|
-
name: fileName,
|
|
10047
|
-
url: pipe(string(), url(), startsWith("https://", "has to be an https address")),
|
|
10048
|
-
sha256: pipe(string(), regex(/^[0-9a-f]{64}$/, "has to be a sha256 in hex")),
|
|
10049
|
-
bytes: pipe(number(), integer(), minValue(1))
|
|
10050
|
-
});
|
|
10051
|
-
var CustomTextModelShape = pipe(strictObject({
|
|
10052
|
-
id: slug,
|
|
10053
|
-
title: words,
|
|
10054
|
-
languages: words,
|
|
10055
|
-
licence: words,
|
|
10056
|
-
terms: optional(pipe(string(), url())),
|
|
10057
|
-
dims: pipe(number(), integer(), minValue(1), maxValue(8192)),
|
|
10058
|
-
maxTokens: pipe(number(), integer(), minValue(16), maxValue(32768)),
|
|
10059
|
-
chunksPerSecond: optional(pipe(number(), minValue(0.01))),
|
|
10060
|
-
pooling: picklist(["mean", "sentence_embedding"]),
|
|
10061
|
-
prefix: strictObject({
|
|
10062
|
-
query: pipe(string(), maxLength(200)),
|
|
10063
|
-
passage: pipe(string(), maxLength(200))
|
|
10064
|
-
}),
|
|
10065
|
-
onnx: fileName,
|
|
10066
|
-
externalData: optional(fileName),
|
|
10067
|
-
files: pipe(array(modelFile), minLength(1), maxLength(16))
|
|
10068
|
-
}), check((model3) => !TEXT_MODELS.some((one) => one.id === model3.id), "takes the id of a model this version ships; choose another"), check((model3) => {
|
|
10069
|
-
const names = model3.files.map(({ name }) => name);
|
|
10070
|
-
return [model3.onnx, model3.externalData, "tokenizer.json", "tokenizer_config.json"].every((name) => name === void 0 || names.includes(name));
|
|
10071
|
-
}, "has to list its onnx file, its external data and tokenizer.json and tokenizer_config.json among files"));
|
|
10072
|
-
var TextModelsSection = strictObject({
|
|
10073
|
-
use: optional(slug),
|
|
10074
|
-
custom: optional(array(CustomTextModelShape))
|
|
10075
|
-
});
|
|
10076
|
-
var textModelsFile = /* @__PURE__ */ __name((env = process.env) => sharedConfigPath(storePath(env), env), "textModelsFile");
|
|
10077
|
-
var readTextModelsSection = /* @__PURE__ */ __name((env = process.env) => {
|
|
10078
|
-
const path2 = textModelsFile(env);
|
|
10079
|
-
const section2 = readSharedSection(path2, SECTION);
|
|
10080
|
-
if (section2 === void 0)
|
|
10081
|
-
return {};
|
|
10082
|
-
const checked = safeParse(TextModelsSection, section2);
|
|
10083
|
-
if (!checked.success) {
|
|
10084
|
-
const issue = checked.issues[0];
|
|
10085
|
-
const at2 = issue ? getDotPath(issue) : null;
|
|
10086
|
-
throw new CliError("configuration_error", `${path2}: ${SECTION}${at2 ? `.${at2}` : ""} ${issue?.message ?? "is not valid"}`);
|
|
10087
|
-
}
|
|
10088
|
-
const ids = checked.output.custom?.map(({ id: id6 }) => id6) ?? [];
|
|
10089
|
-
const twice = ids.find((id6, at2) => ids.indexOf(id6) !== at2);
|
|
10090
|
-
if (twice)
|
|
10091
|
-
throw new CliError("configuration_error", `${path2}: ${SECTION}.custom names ${twice} twice`);
|
|
10092
|
-
return checked.output;
|
|
10093
|
-
}, "readTextModelsSection");
|
|
10094
|
-
var writeTextModelsSection = /* @__PURE__ */ __name((section2, env = process.env) => writeSharedSection(textModelsFile(env), SECTION, section2.use === void 0 && !section2.custom?.length ? void 0 : section2), "writeTextModelsSection");
|
|
10095
|
-
var textModels = /* @__PURE__ */ __name((env = process.env) => [
|
|
10096
|
-
...TEXT_MODELS,
|
|
10097
|
-
...(readTextModelsSection(env).custom ?? []).map((model3) => ({ ...model3, custom: true }))
|
|
10098
|
-
], "textModels");
|
|
10099
|
-
var textModel = /* @__PURE__ */ __name((id6, env = process.env) => {
|
|
10100
|
-
const known = textModels(env);
|
|
10101
|
-
const found = known.find((model3) => model3.id === id6);
|
|
10102
|
-
if (!found) {
|
|
10103
|
-
throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${known.map((model3) => model3.id).join(", ")}`);
|
|
10104
|
-
}
|
|
10105
|
-
return found;
|
|
10106
|
-
}, "textModel");
|
|
10107
|
-
var downloaded = /* @__PURE__ */ __name((id6, env) => {
|
|
10108
|
-
const model3 = TEXT_MODELS.find((one) => one.id === id6);
|
|
10109
|
-
const directory = sharedModelsDirectory("text", env);
|
|
10110
|
-
return model3 !== void 0 && filesPresent(model3.files.map((file) => [file, join4(directory, model3.id, file.name)]));
|
|
10111
|
-
}, "downloaded");
|
|
10112
|
-
var chosenTextModel = /* @__PURE__ */ __name((env = process.env) => {
|
|
10113
|
-
const use = readTextModelsSection(env).use;
|
|
10114
|
-
if (use !== void 0)
|
|
10115
|
-
return { id: use, from: "chosen" };
|
|
10116
|
-
const kept = !downloaded(DEFAULT_TEXT_MODEL, env) && existsSync4(join4(sharedModelsDirectory("text", env), PREVIOUS_DEFAULT_TEXT_MODEL));
|
|
10117
|
-
return { id: kept ? PREVIOUS_DEFAULT_TEXT_MODEL : DEFAULT_TEXT_MODEL, from: "default" };
|
|
10118
|
-
}, "chosenTextModel");
|
|
10119
|
-
var mmarco = huggingFace("cross-encoder/mmarco-mMiniLMv2-L12-H384-v1", "1427fd652930e4ba29e8149678df786c240d8825");
|
|
10120
|
-
var bge = huggingFace("onnx-community/bge-reranker-v2-m3-ONNX", "6f5ff65298512715a1e669753bc754d2bc8f367b");
|
|
10121
|
-
var RERANK_MODELS = [
|
|
10122
|
-
{
|
|
10123
|
-
id: "mmarco",
|
|
10124
|
-
title: "mMARCO mMiniLMv2-L12 cross-encoder, 8-bit",
|
|
10125
|
-
languages: "about 100 languages, Russian and English among them",
|
|
10126
|
-
licence: "Apache-2.0",
|
|
10127
|
-
maxTokens: 512,
|
|
10128
|
-
// The x86 name is the quantizer's target; WebAssembly and native ONNX Runtime both run it on any processor.
|
|
10129
|
-
onnx: "onnx/model_quint8_avx2.onnx",
|
|
10130
|
-
files: [
|
|
10131
|
-
{
|
|
10132
|
-
name: "onnx/model_quint8_avx2.onnx",
|
|
10133
|
-
url: mmarco("onnx/model_quint8_avx2.onnx"),
|
|
10134
|
-
sha256: "6c2513767fb63d008a4377bef7a7a3555433d9436342bb53e35a3a72ffc52d4b",
|
|
10135
|
-
bytes: 118620016
|
|
10136
|
-
},
|
|
10137
|
-
{
|
|
10138
|
-
name: "tokenizer.json",
|
|
10139
|
-
url: mmarco("tokenizer.json"),
|
|
10140
|
-
sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
|
|
10141
|
-
bytes: 17082660
|
|
10142
|
-
},
|
|
10143
|
-
{
|
|
10144
|
-
name: "tokenizer_config.json",
|
|
10145
|
-
url: mmarco("tokenizer_config.json"),
|
|
10146
|
-
sha256: "e7fbfbfa6347b4e414c1cee50d142e2c2f9a895dad68b068ae83a8b564c3837e",
|
|
10147
|
-
bytes: 435
|
|
10148
|
-
}
|
|
10149
|
-
]
|
|
10150
|
-
},
|
|
10151
|
-
{
|
|
10152
|
-
id: "bge-reranker-v2-m3",
|
|
10153
|
-
title: "BGE reranker v2 m3, 8-bit",
|
|
10154
|
-
languages: "over 100 languages \u2014 better than mmarco in the benchmark, about seven times slower",
|
|
10155
|
-
licence: "Apache-2.0 (BAAI's; the ONNX export declares none)",
|
|
10156
|
-
maxTokens: 512,
|
|
10157
|
-
onnx: "onnx/model_quantized.onnx",
|
|
10158
|
-
files: [
|
|
10159
|
-
{
|
|
10160
|
-
name: "onnx/model_quantized.onnx",
|
|
10161
|
-
url: bge("onnx/model_quantized.onnx"),
|
|
10162
|
-
sha256: "912fc1215c2dbff6499700534bd8d31253af01573861abbfc43afd1fab6cce5d",
|
|
10163
|
-
bytes: 570727094
|
|
10164
|
-
},
|
|
10165
|
-
{
|
|
10166
|
-
name: "tokenizer.json",
|
|
10167
|
-
url: bge("tokenizer.json"),
|
|
10168
|
-
sha256: "8bf8afbfd11306bd872018c53bfdf2e160a56f8edbcf49933324404791c148d3",
|
|
10169
|
-
bytes: 17082900
|
|
10170
|
-
},
|
|
10171
|
-
{
|
|
10172
|
-
name: "tokenizer_config.json",
|
|
10173
|
-
url: bge("tokenizer_config.json"),
|
|
10174
|
-
sha256: "b87c8703482b0300d3da30e201519aa641f6a450f5eb5bf1e624afbf70c74d80",
|
|
10175
|
-
bytes: 1203
|
|
10176
|
-
}
|
|
10177
|
-
]
|
|
10178
|
-
}
|
|
10179
|
-
];
|
|
10180
|
-
var DEFAULT_RERANK_MODEL = "mmarco";
|
|
10181
|
-
var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
10182
|
-
const found = RERANK_MODELS.find((model3) => model3.id === id6);
|
|
10183
|
-
if (!found) {
|
|
10184
|
-
throw new CliError("validation_error", `no reranker ${id6} \u2014 one of: ${RERANK_MODELS.map((model3) => model3.id).join(", ")}`);
|
|
10185
|
-
}
|
|
10186
|
-
return found;
|
|
10187
|
-
}, "rerankModel");
|
|
10188
|
-
var vectorModelKey = /* @__PURE__ */ __name((model3) => {
|
|
10189
|
-
const weights = model3.custom ? model3.files.find(({ name }) => name === model3.onnx)?.sha256.slice(0, 12) : void 0;
|
|
10190
|
-
return `local:${model3.id}${weights ? `@${weights}` : ""}:${model3.dims}`;
|
|
10191
|
-
}, "vectorModelKey");
|
|
10192
|
-
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
10193
|
-
|
|
10194
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.659.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._7ae9f69690019eb17dc9f8442c19cb73/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
9962
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
10195
9963
|
var HISTORY_MAX_DAYS = 1095;
|
|
10196
9964
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
10197
9965
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -10238,7 +10006,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
10238
10006
|
return { batch: { ...batch, messages }, skipped };
|
|
10239
10007
|
}, "limitBatch");
|
|
10240
10008
|
|
|
10241
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10009
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
10242
10010
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
10243
10011
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
10244
10012
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -10533,20 +10301,20 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
10533
10301
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
10534
10302
|
}, "readConfigFile");
|
|
10535
10303
|
|
|
10536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10537
|
-
import { existsSync as
|
|
10538
|
-
import { dirname as dirname2, join as
|
|
10304
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
10305
|
+
import { existsSync as existsSync4, linkSync, mkdirSync as mkdirSync2, mkdtempSync, rmSync as rmSync2, writeFileSync } from "node:fs";
|
|
10306
|
+
import { dirname as dirname2, join as join4 } from "node:path";
|
|
10539
10307
|
var DEFAULT_CONFIG = {
|
|
10540
10308
|
defaults: { limit: 20, keep_runs_for_days: 30, sends_per_hour: 30, update_check: true, skill_hint: true },
|
|
10541
10309
|
profiles: {}
|
|
10542
10310
|
};
|
|
10543
10311
|
function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
10544
|
-
if (
|
|
10312
|
+
if (existsSync4(path2))
|
|
10545
10313
|
return;
|
|
10546
10314
|
const directory = dirname2(path2);
|
|
10547
10315
|
mkdirSync2(directory, { recursive: true, mode: 448 });
|
|
10548
|
-
const temporary = mkdtempSync(
|
|
10549
|
-
const candidate =
|
|
10316
|
+
const temporary = mkdtempSync(join4(directory, ".config-"));
|
|
10317
|
+
const candidate = join4(temporary, "config.json");
|
|
10550
10318
|
try {
|
|
10551
10319
|
writeFileSync(candidate, `${JSON.stringify(config, null, 2)}
|
|
10552
10320
|
`, { flag: "wx", mode: 384 });
|
|
@@ -10562,7 +10330,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
10562
10330
|
}
|
|
10563
10331
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
10564
10332
|
|
|
10565
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10333
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
10566
10334
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
10567
10335
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
10568
10336
|
const path2 = key.split(".");
|
|
@@ -10584,7 +10352,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
10584
10352
|
return { config, added };
|
|
10585
10353
|
}, "withSettingDefaults");
|
|
10586
10354
|
|
|
10587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10355
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
10588
10356
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
10589
10357
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
10590
10358
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -10737,8 +10505,8 @@ var NoProfileHere = class extends CliError {
|
|
|
10737
10505
|
this.app = app;
|
|
10738
10506
|
}
|
|
10739
10507
|
/** `words`: the command that was typed, without its arguments, so the suggestion runs as written. */
|
|
10740
|
-
withoutSetup(
|
|
10741
|
-
const command =
|
|
10508
|
+
withoutSetup(words) {
|
|
10509
|
+
const command = words ? `${this.app.command} personal ${words}` : `${this.app.command} personal \u2026`;
|
|
10742
10510
|
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: [] });
|
|
10743
10511
|
}
|
|
10744
10512
|
};
|
|
@@ -10946,7 +10714,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
10946
10714
|
updateCheck: updateCheck.value,
|
|
10947
10715
|
skillHint: skillHint.value,
|
|
10948
10716
|
configPath,
|
|
10949
|
-
configFound:
|
|
10717
|
+
configFound: existsSync5(configPath),
|
|
10950
10718
|
configuredProfiles: namedProfiles(config),
|
|
10951
10719
|
profilesHere: profilesOf(config, env),
|
|
10952
10720
|
accountProfiles: accountsOf(config, env, bots),
|
|
@@ -11110,7 +10878,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
11110
10878
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
11111
10879
|
}, "given");
|
|
11112
10880
|
|
|
11113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10881
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
11114
10882
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
11115
10883
|
const slot = environmentOf(command).exit;
|
|
11116
10884
|
const request = commandServerRequest();
|
|
@@ -11140,11 +10908,17 @@ var detailOf = /* @__PURE__ */ __name(({ brief, full }) => {
|
|
|
11140
10908
|
return brief ? { hitDetail: "brief" } : full ? { hitDetail: "full" } : {};
|
|
11141
10909
|
}, "detailOf");
|
|
11142
10910
|
var COMPACT_KEY = new Option(COMPACT_FLAG).attributeName();
|
|
10911
|
+
var outputFieldsOf = /* @__PURE__ */ __name((command) => {
|
|
10912
|
+
const fields = rootOf(command).getOptionValue("fields");
|
|
10913
|
+
return typeof fields === "string" ? { fields } : {};
|
|
10914
|
+
}, "outputFieldsOf");
|
|
11143
10915
|
var compactOf = /* @__PURE__ */ __name((command) => command.optsWithGlobals()[COMPACT_KEY] === true, "compactOf");
|
|
11144
10916
|
var outputFor = /* @__PURE__ */ __name((command) => {
|
|
11145
10917
|
const { streams, tty, env, agent } = environmentOf(command);
|
|
10918
|
+
const { fields: _own, ...flags } = command.optsWithGlobals();
|
|
11146
10919
|
return resolveOutput({
|
|
11147
|
-
...
|
|
10920
|
+
...flags,
|
|
10921
|
+
...outputFieldsOf(command),
|
|
11148
10922
|
...detailOf(command.optsWithGlobals()),
|
|
11149
10923
|
compact: compactOf(command),
|
|
11150
10924
|
...agent ? { capture: agent.result } : {},
|
|
@@ -11162,7 +10936,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
|
11162
10936
|
env,
|
|
11163
10937
|
compact: compactOf(command),
|
|
11164
10938
|
...detailOf(command.optsWithGlobals()),
|
|
11165
|
-
...
|
|
10939
|
+
...outputFieldsOf(command),
|
|
11166
10940
|
...environment.agent ? { capture: environment.agent.result } : {},
|
|
11167
10941
|
...environment.streams ? { streams: environment.streams } : {},
|
|
11168
10942
|
...environment.tty === void 0 ? {} : { tty: environment.tty }
|
|
@@ -11234,13 +11008,13 @@ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
|
|
|
11234
11008
|
return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
|
|
11235
11009
|
}, "inCommandRun");
|
|
11236
11010
|
var commandPath = /* @__PURE__ */ __name((command) => {
|
|
11237
|
-
const
|
|
11011
|
+
const words = [];
|
|
11238
11012
|
for (let current2 = command; current2?.parent; current2 = current2.parent)
|
|
11239
|
-
|
|
11240
|
-
return
|
|
11013
|
+
words.unshift(current2.name());
|
|
11014
|
+
return words.join(" ");
|
|
11241
11015
|
}, "commandPath");
|
|
11242
11016
|
|
|
11243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11017
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
11244
11018
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
11245
11019
|
var FETCH = { remote: "read", local: "write" };
|
|
11246
11020
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -11297,7 +11071,8 @@ var changesStore = /* @__PURE__ */ __name((command) => {
|
|
|
11297
11071
|
STORE_WRITES.add(command);
|
|
11298
11072
|
return command;
|
|
11299
11073
|
}, "changesStore");
|
|
11300
|
-
var
|
|
11074
|
+
var OWNER_FILES = /* @__PURE__ */ new WeakSet();
|
|
11075
|
+
var savesFiles = /* @__PURE__ */ __name((command) => OWNER_FILES.has(command) || command.name() === "download" || [...command.options.map((option) => option.attributeName()), ...command.registeredArguments.map((one) => one.name())].map((name) => name.toLowerCase()).some((name) => name === "dir" || name.endsWith("dir") || name === "output"), "savesFiles");
|
|
11301
11076
|
var fetchesOnly = /* @__PURE__ */ __name((command) => {
|
|
11302
11077
|
const effects = metaOf(command).effects;
|
|
11303
11078
|
return effects?.remote === "read" && effects.local === "write" && !STORE_WRITES.has(command) && !changesAuthority(command) && !OTHER_SERVICE.has(command) && !savesFiles(command);
|
|
@@ -11322,7 +11097,7 @@ var writesFileNow = /* @__PURE__ */ __name((command) => {
|
|
|
11322
11097
|
const option = FILE_OPTION.get(command);
|
|
11323
11098
|
return option === void 0 || command.opts()[option] !== void 0;
|
|
11324
11099
|
}, "writesFileNow");
|
|
11325
|
-
var readsOverMcp = /* @__PURE__ */ __name((command) => fetchesOnly(command) || FILE_OPTION.has(command), "readsOverMcp");
|
|
11100
|
+
var readsOverMcp = /* @__PURE__ */ __name((command) => fetchesOnly(command) && !LOGIN.has(command) || FILE_OPTION.has(command), "readsOverMcp");
|
|
11326
11101
|
var readsOverMcpAt = /* @__PURE__ */ __name((root) => (path2) => {
|
|
11327
11102
|
let at2 = root;
|
|
11328
11103
|
for (const word of path2)
|
|
@@ -11342,10 +11117,10 @@ var refuseStoreChange = /* @__PURE__ */ __name((app, env) => {
|
|
|
11342
11117
|
throw readOnlyRefusal(lock, storeChangeRefusal(app));
|
|
11343
11118
|
}, "refuseStoreChange");
|
|
11344
11119
|
var pathOf2 = /* @__PURE__ */ __name((command) => {
|
|
11345
|
-
const
|
|
11120
|
+
const words = [];
|
|
11346
11121
|
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
11347
|
-
|
|
11348
|
-
return
|
|
11122
|
+
words.unshift(at2.name());
|
|
11123
|
+
return words;
|
|
11349
11124
|
}, "pathOf");
|
|
11350
11125
|
var changesMessenger = /* @__PURE__ */ __name((command) => {
|
|
11351
11126
|
const { path: path2, effects, lifetime, reaches } = "path" in command ? command : { path: pathOf2(command), ...metaOf(command) };
|
|
@@ -11379,8 +11154,8 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
11379
11154
|
throw readOnlyRefusal(lock, what);
|
|
11380
11155
|
}, "refuseUnderReadOnly");
|
|
11381
11156
|
|
|
11382
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11383
|
-
import { join as
|
|
11157
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/images/picture/models.js
|
|
11158
|
+
import { join as join5 } from "node:path";
|
|
11384
11159
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11385
11160
|
var IMAGE_MODELS = [
|
|
11386
11161
|
{
|
|
@@ -11430,10 +11205,10 @@ var imageModel = /* @__PURE__ */ __name((id6) => {
|
|
|
11430
11205
|
return found;
|
|
11431
11206
|
}, "imageModel");
|
|
11432
11207
|
var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
|
|
11433
|
-
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file,
|
|
11208
|
+
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
|
|
11434
11209
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11435
11210
|
|
|
11436
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11211
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11437
11212
|
var STEPS2 = defineSteps([
|
|
11438
11213
|
...STEPS,
|
|
11439
11214
|
{
|
|
@@ -11670,10 +11445,10 @@ var nextStep = /* @__PURE__ */ __name((id6, input) => {
|
|
|
11670
11445
|
const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
|
|
11671
11446
|
return stepOf(definition, { ...input, args });
|
|
11672
11447
|
}, "nextStep");
|
|
11673
|
-
var lineOf = /* @__PURE__ */ __name((command,
|
|
11448
|
+
var lineOf = /* @__PURE__ */ __name((command, words) => {
|
|
11674
11449
|
const root = rootOf2(command);
|
|
11675
11450
|
const profile = root.getOptionValue("profile");
|
|
11676
|
-
return typedCommand(root.name(),
|
|
11451
|
+
return typedCommand(root.name(), words, typeof profile === "string" && profile !== "" ? profile : void 0);
|
|
11677
11452
|
}, "lineOf");
|
|
11678
11453
|
var rootOf2 = /* @__PURE__ */ __name((command) => {
|
|
11679
11454
|
let root = command;
|
|
@@ -11723,7 +11498,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11723
11498
|
].join(" ");
|
|
11724
11499
|
}, "stepLine");
|
|
11725
11500
|
|
|
11726
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11501
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11727
11502
|
var where = [{ field: "ref" }];
|
|
11728
11503
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11729
11504
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11815,7 +11590,7 @@ var STATUS_ROWS = {
|
|
|
11815
11590
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11816
11591
|
};
|
|
11817
11592
|
|
|
11818
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11593
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11819
11594
|
var TEXT_CHARS = 400;
|
|
11820
11595
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11821
11596
|
var messageRow = {
|
|
@@ -12183,7 +11958,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
12183
11958
|
return lines.concat(footerOf(body)).join("\n");
|
|
12184
11959
|
}, "compactText");
|
|
12185
11960
|
|
|
12186
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11961
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
12187
11962
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
12188
11963
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
12189
11964
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12209,10 +11984,10 @@ var declaresRow = /* @__PURE__ */ __name((command) => {
|
|
|
12209
11984
|
return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
|
|
12210
11985
|
}, "declaresRow");
|
|
12211
11986
|
var pathOf3 = /* @__PURE__ */ __name((command) => {
|
|
12212
|
-
const
|
|
11987
|
+
const words = [];
|
|
12213
11988
|
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
12214
|
-
|
|
12215
|
-
return
|
|
11989
|
+
words.unshift(at2.name());
|
|
11990
|
+
return words.join(" ");
|
|
12216
11991
|
}, "pathOf");
|
|
12217
11992
|
var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
|
|
12218
11993
|
kind: "command",
|
|
@@ -12241,7 +12016,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12241
12016
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12242
12017
|
}, "largeAnswerSteps");
|
|
12243
12018
|
|
|
12244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
12245
12020
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12246
12021
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12247
12022
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12255,7 +12030,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12255
12030
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12256
12031
|
}, "strip");
|
|
12257
12032
|
|
|
12258
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12033
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
|
|
12259
12034
|
var OPEN = "\u27E6";
|
|
12260
12035
|
var CLOSE = "\u27E7";
|
|
12261
12036
|
var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -12339,7 +12114,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
|
|
|
12339
12114
|
return result;
|
|
12340
12115
|
}, "withFieldsMarked");
|
|
12341
12116
|
|
|
12342
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
12117
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.665.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.101.0_commander@15_1712fa6347d2f5f4f52e592cd2c1c3bf/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
12343
12118
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12344
12119
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12345
12120
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12445,9 +12220,27 @@ var withLargeAnswerStep = /* @__PURE__ */ __name((command, body) => {
|
|
|
12445
12220
|
}, "withLargeAnswerStep");
|
|
12446
12221
|
var linesOf = /* @__PURE__ */ __name((body) => jsonlOf("items" in body ? body : { items: [body.item], page: { mode: "page", limit: 1, has_more: false }, meta: body.meta }), "linesOf");
|
|
12447
12222
|
var jsonlRecords = /* @__PURE__ */ __name((body) => linesOf(sealed(body)).split("\n").map((line) => JSON.parse(line)), "jsonlRecords");
|
|
12223
|
+
var listZone = /* @__PURE__ */ __name((command) => {
|
|
12224
|
+
const registry = metaOf(command).query;
|
|
12225
|
+
const words = command.processedArgs.at(-1);
|
|
12226
|
+
const text5 = Array.isArray(words) ? words.join(" ") : typeof words === "string" ? words : "";
|
|
12227
|
+
const times = new Set(registry?.fields.filter(({ type }) => type === "time").map(({ name }) => name));
|
|
12228
|
+
if (times.size === 0 || text5.trim() === "")
|
|
12229
|
+
return void 0;
|
|
12230
|
+
try {
|
|
12231
|
+
if (!readsZone(parseLucene(text5, { defaultField: "none" }), times))
|
|
12232
|
+
return void 0;
|
|
12233
|
+
} catch {
|
|
12234
|
+
return void 0;
|
|
12235
|
+
}
|
|
12236
|
+
return timezoneOf(command.optsWithGlobals().timezone);
|
|
12237
|
+
}, "listZone");
|
|
12448
12238
|
var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams, compact, full }, body, view) => {
|
|
12449
12239
|
if (!isBody(body))
|
|
12450
12240
|
refuse(body);
|
|
12241
|
+
const zone = "items" in body && body.meta?.timezone === void 0 ? listZone(command) : void 0;
|
|
12242
|
+
if (zone)
|
|
12243
|
+
body = { ...body, meta: { ...body.meta, timezone: zone } };
|
|
12451
12244
|
const root = rootOf2(command);
|
|
12452
12245
|
const runnableSteps = runnable(root, body.next);
|
|
12453
12246
|
const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
|
|
@@ -12524,6 +12317,10 @@ export {
|
|
|
12524
12317
|
isBotApi,
|
|
12525
12318
|
botApiAllowed,
|
|
12526
12319
|
CEILING_KEY,
|
|
12320
|
+
STORE_ONLY_KEYS,
|
|
12321
|
+
fetchesUnder,
|
|
12322
|
+
fetchesAt,
|
|
12323
|
+
stops,
|
|
12527
12324
|
levelFor,
|
|
12528
12325
|
keyForWrite,
|
|
12529
12326
|
writeOfKey,
|
|
@@ -12631,19 +12428,6 @@ export {
|
|
|
12631
12428
|
sampleCommand,
|
|
12632
12429
|
modelTarget,
|
|
12633
12430
|
parseDuration,
|
|
12634
|
-
DEFAULT_TEXT_MODEL,
|
|
12635
|
-
PREVIOUS_DEFAULT_TEXT_MODEL,
|
|
12636
|
-
CustomTextModelShape,
|
|
12637
|
-
readTextModelsSection,
|
|
12638
|
-
writeTextModelsSection,
|
|
12639
|
-
textModels,
|
|
12640
|
-
textModel,
|
|
12641
|
-
chosenTextModel,
|
|
12642
|
-
RERANK_MODELS,
|
|
12643
|
-
DEFAULT_RERANK_MODEL,
|
|
12644
|
-
rerankModel,
|
|
12645
|
-
vectorModelKey,
|
|
12646
|
-
meaningFloor,
|
|
12647
12431
|
historyWindow,
|
|
12648
12432
|
limitBatch,
|
|
12649
12433
|
botFiles,
|
|
@@ -12655,6 +12439,7 @@ export {
|
|
|
12655
12439
|
fixVerb,
|
|
12656
12440
|
issueMessage,
|
|
12657
12441
|
readConfigFile,
|
|
12442
|
+
DEFAULT_CONFIG,
|
|
12658
12443
|
accountFileFor,
|
|
12659
12444
|
rememberAccount,
|
|
12660
12445
|
recalledAccount,
|
|
@@ -12668,6 +12453,7 @@ export {
|
|
|
12668
12453
|
environmentOf,
|
|
12669
12454
|
withAgentLevels,
|
|
12670
12455
|
secretInputOf,
|
|
12456
|
+
outputFieldsOf,
|
|
12671
12457
|
outputFor,
|
|
12672
12458
|
baseContext,
|
|
12673
12459
|
inCommandRun,
|