@wirecat/tg-cli 0.128.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-JOI34QLS.js → adapter-2XFPXBTA.js} +60 -52
- package/dist/bundle/{all-profiles-2BZEE7J2.js → all-profiles-GXFPZLYU.js} +9 -9
- package/dist/bundle/{anthropic-NW7DL3S3.js → anthropic-FHS5XNK5.js} +5 -5
- package/dist/bundle/{app-server-RUTYKELF.js → app-server-IZMFSFP2.js} +54 -46
- package/dist/bundle/{bot-api-DW6NAZAQ.js → bot-api-LQP75V5I.js} +61 -53
- package/dist/bundle/{bot-history-FAJ2W42U.js → bot-history-EJQOD4AQ.js} +22 -18
- package/dist/bundle/{bun-IVP5LSVI.js → bun-GBAZFRCV.js} +2 -2
- package/dist/bundle/{bun-sqlite-ATPCJ4CT.js → bun-sqlite-JB4BX6X7.js} +6 -6
- package/dist/bundle/chunk-2JZJPVBH.js +334 -0
- package/dist/bundle/{chunk-FHGAJK4I.js → chunk-2LPODKIF.js} +15 -15
- package/dist/bundle/chunk-3KZG63EH.js +170 -0
- package/dist/bundle/chunk-3XMUP55N.js +372 -0
- package/dist/bundle/{chunk-MDGLKMLD.js → chunk-4BJAQNJ5.js} +9 -9
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-66PL7P4C.js} +1 -1
- package/dist/bundle/{chunk-MOUPWPNL.js → chunk-66UG67CE.js} +12 -12
- package/dist/bundle/{chunk-R4QVV3LN.js → chunk-6JBRQ6PM.js} +41 -19
- package/dist/bundle/{chunk-GYO4WXLG.js → chunk-6M3FAHPS.js} +3 -3
- package/dist/bundle/{chunk-2QHIOPSA.js → chunk-7F3LOHRB.js} +261 -501
- package/dist/bundle/{chunk-XS5C5TQ7.js → chunk-AUNNJDVD.js} +25 -8
- package/dist/bundle/{chunk-7D6LI2N7.js → chunk-B5RGPZDZ.js} +7 -7
- package/dist/bundle/{chunk-YRZXOQOB.js → chunk-B6NQJAUC.js} +2 -2
- package/dist/bundle/{chunk-IV2KJQ5F.js → chunk-BMSS3PCY.js} +58 -33
- package/dist/bundle/{chunk-LTADKMP5.js → chunk-C4ALE7CH.js} +1 -1
- package/dist/bundle/{chunk-WG3BF7SA.js → chunk-CKJ73EF3.js} +1 -1
- package/dist/bundle/{chunk-IX3GUNGV.js → chunk-CLG2ISQH.js} +4 -4
- package/dist/bundle/{chunk-G3PL3R45.js → chunk-EB2JE722.js} +1 -1
- package/dist/bundle/{chunk-J3SX36NE.js → chunk-EUL7HMUL.js} +2 -2
- package/dist/bundle/{chunk-PJA43HVE.js → chunk-F6CV4KUN.js} +2 -2
- package/dist/bundle/{chunk-7KCBPAQS.js → chunk-F6MLJ3V5.js} +2 -2
- package/dist/bundle/{chunk-3UGRMFWK.js → chunk-FH4YIBBH.js} +4 -4
- package/dist/bundle/chunk-FIO5NMK3.js +771 -0
- package/dist/bundle/{chunk-7I5NMVX7.js → chunk-G2SMVYBU.js} +2 -2
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-GA3URWIF.js} +1 -1
- package/dist/bundle/{chunk-2A3TC52A.js → chunk-GGGBPWUS.js} +10 -15
- package/dist/bundle/{chunk-KKZQK6IK.js → chunk-GSHTLLCJ.js} +2 -2
- package/dist/bundle/{chunk-F4UIBEQK.js → chunk-GYCKRIRK.js} +3 -3
- package/dist/bundle/{chunk-WPMJQIEU.js → chunk-HHUK3XO5.js} +1 -1
- package/dist/bundle/{chunk-NM5GBJME.js → chunk-HT6OFANN.js} +19 -19
- package/dist/bundle/{chunk-ODBK56ZR.js → chunk-I5PILOTU.js} +1 -1
- package/dist/bundle/chunk-IBSHQWIJ.js +29 -0
- package/dist/bundle/{chunk-RZFIQMOA.js → chunk-IRWSZJYL.js} +60 -58
- package/dist/bundle/{chunk-BVCRDHI2.js → chunk-IV6SIKVH.js} +4 -4
- package/dist/bundle/{chunk-URFBZNLU.js → chunk-JUFLELQ7.js} +2 -2
- package/dist/bundle/{chunk-XYAH6QQO.js → chunk-KY3JLXW2.js} +4 -4
- package/dist/bundle/{chunk-YSXDCSBP.js → chunk-LPT5T6PU.js} +29 -30
- package/dist/bundle/chunk-LQPZDDDP.js +259 -0
- package/dist/bundle/{chunk-JI2PFQFL.js → chunk-M327UNS6.js} +6 -6
- package/dist/bundle/{chunk-SDLJJF7E.js → chunk-MS6YEIG5.js} +13 -13
- package/dist/bundle/{chunk-WMUPZ3IY.js → chunk-MVFSWKTM.js} +12 -12
- package/dist/bundle/{chunk-YVV5S2QA.js → chunk-NRCY3WBC.js} +2 -2
- package/dist/bundle/{chunk-2IL4YDGG.js → chunk-O2ULG7OO.js} +3 -3
- package/dist/bundle/{chunk-E56QE3UC.js → chunk-OJMDKWWL.js} +627 -503
- package/dist/bundle/{chunk-UURJO46N.js → chunk-OKTRB4ZQ.js} +1 -1
- package/dist/bundle/{chunk-OX6574YV.js → chunk-OOQVHMCS.js} +15 -15
- package/dist/bundle/{chunk-IIHCSJV2.js → chunk-OWVQMK7G.js} +700 -837
- package/dist/bundle/{chunk-WMF6SL5D.js → chunk-P4FZJO5F.js} +2 -2
- package/dist/bundle/{chunk-LD42OGKK.js → chunk-PS7ZS5HD.js} +4 -4
- package/dist/bundle/{chunk-EAUHYQUK.js → chunk-PWQKGFS2.js} +36 -34
- package/dist/bundle/{chunk-MGBVVQTU.js → chunk-QBNEWEJC.js} +3 -3
- package/dist/bundle/{chunk-QYN5RDTZ.js → chunk-QDEP2QOA.js} +3 -3
- package/dist/bundle/{chunk-QO4ON2X7.js → chunk-QFVIHBLD.js} +1 -1
- package/dist/bundle/{chunk-ZVLYK6CZ.js → chunk-QJDHRBXL.js} +7 -7
- package/dist/bundle/{chunk-IHLNXL2D.js → chunk-QJLCEOAP.js} +1 -1
- package/dist/bundle/{chunk-KF2Q776U.js → chunk-RAFK5KXU.js} +9 -9
- package/dist/bundle/{chunk-RIGNCUZD.js → chunk-RPWYTOLI.js} +5 -5
- package/dist/bundle/{chunk-4DSIGS2E.js → chunk-RZPMFVWM.js} +6 -6
- package/dist/bundle/chunk-S5UTBEV3.js +1974 -0
- package/dist/bundle/{chunk-MC6FOTCV.js → chunk-SYZXOEHY.js} +3 -3
- package/dist/bundle/{chunk-5AP25FMW.js → chunk-SZB5WRMI.js} +2 -2
- package/dist/bundle/{chunk-Q3ZO6Q3M.js → chunk-TGRB4SSZ.js} +4 -4
- package/dist/bundle/{chunk-TQFUAKU6.js → chunk-VSPSHBAC.js} +2 -2
- package/dist/bundle/{chunk-TGUXKG4B.js → chunk-VTJ3AOTT.js} +17 -17
- package/dist/bundle/{chunk-T2CWSFGY.js → chunk-VXWDQDRU.js} +6341 -6902
- package/dist/bundle/{chunk-JJGPU24U.js → chunk-X5H5NERR.js} +6 -6
- package/dist/bundle/{chunk-AF2XVV5P.js → chunk-XHX5D5VE.js} +727 -2598
- package/dist/bundle/chunk-XXW6PFAX.js +16 -0
- package/dist/bundle/{chunk-NXDQXDRN.js → chunk-ZRQQOGAZ.js} +4 -4
- package/dist/bundle/command-contract-G752BLKA.js +37 -0
- package/dist/bundle/{command-server-entry-BU3X4XNL.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-NAXLKJLA.js → echarts-GOV5M733.js} +2 -2
- package/dist/bundle/{embed-LB6ONWHX.js → embed-2IVIYNAJ.js} +6 -6
- package/dist/bundle/{embedder-WE7B2RU5.js → embedder-2HU7JYZK.js} +9 -9
- package/dist/bundle/{entry-W6Y52ZRN.js → entry-CSTCXYI5.js} +9 -9
- package/dist/bundle/{failure-7Y34AUJT.js → failure-GMUQKQ5K.js} +2 -2
- package/dist/bundle/{first-run-NVYNZZA6.js → first-run-3IZGXZT5.js} +12 -11
- package/dist/bundle/first-screen-7QSNCZIK.js +35 -0
- package/dist/bundle/{instructions-MRUC57NS.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-G7PMDYQV.js → node-FMQWCZRS.js} +2 -2
- package/dist/bundle/{node-sqlite-RXWQ3SES.js → node-sqlite-YN5OKOC6.js} +7 -7
- package/dist/bundle/{oauth-6ZWOL6KX.js → oauth-EW7PTZVT.js} +7 -7
- package/dist/bundle/{open-V7LMZCFI.js → open-Q2RDY344.js} +5 -5
- package/dist/bundle/{openai-P472V4ZM.js → openai-STON6G3O.js} +28 -26
- package/dist/bundle/{process-GSNPENHL.js → process-OQUC2TW3.js} +1 -1
- package/dist/bundle/{program-IELITPKT.js → program-7JJHTZ25.js} +66 -57
- package/dist/bundle/{prompt-2CP6CQ5N.js → prompt-WHVF7UTW.js} +5 -5
- package/dist/bundle/{proxy-transport-DP7SIMIC.js → proxy-transport-A4MRO3PF.js} +5 -5
- package/dist/bundle/{recognize-R2DEQ5TC.js → recognize-YDQWMXNI.js} +4 -4
- package/dist/bundle/{remote-JG3POFES.js → remote-477LQHP6.js} +9 -9
- package/dist/bundle/{rerank-TVMR3OLL.js → rerank-4YPB26FG.js} +7 -7
- package/dist/bundle/{serve-DBWSMLPH.js → serve-FXJNUOTS.js} +9 -9
- package/dist/bundle/{server-EXJ2WNZY.js → server-2S6HFBGR.js} +44 -36
- package/dist/bundle/server-UOSUTZNE.js +69 -0
- package/dist/bundle/{sqlite-runtime-AWMY7W4Q.js → sqlite-runtime-RXYNJYMC.js} +6 -6
- package/dist/bundle/{state-HN44BWNQ.js → state-I2GGYGRL.js} +6 -6
- package/dist/bundle/{store-LOVKYQDC.js → store-KX3AAQZH.js} +25 -20
- package/dist/bundle/{store-GIYS3LHV.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/command-contract-3BSXDYBC.js +0 -34
- package/dist/bundle/decode-NXB7E46F.js +0 -162
- package/dist/bundle/first-screen-Z6TVHK6I.js +0 -32
- package/dist/bundle/server-SXNFFAIR.js +0 -61
- package/dist/bundle/store-maintenance-command-X3VOYNCG.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-RIGNCUZD.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");
|
|
@@ -4420,7 +4430,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4420
4430
|
}
|
|
4421
4431
|
}, "assertRetentionEvidenceRead");
|
|
4422
4432
|
|
|
4423
|
-
// 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
|
|
4424
4434
|
var account = strictObject({
|
|
4425
4435
|
provider: text,
|
|
4426
4436
|
id,
|
|
@@ -4430,7 +4440,7 @@ var account = strictObject({
|
|
|
4430
4440
|
scope: optional(picklist(["personal", "work"]))
|
|
4431
4441
|
});
|
|
4432
4442
|
|
|
4433
|
-
// 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
|
|
4434
4444
|
var accountSession = strictObject({
|
|
4435
4445
|
current: boolean(),
|
|
4436
4446
|
client: nullable(text),
|
|
@@ -4440,7 +4450,7 @@ var accountSession = strictObject({
|
|
|
4440
4450
|
created_at: optional(nullable(time))
|
|
4441
4451
|
});
|
|
4442
4452
|
|
|
4443
|
-
// 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
|
|
4444
4454
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
4445
4455
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
4446
4456
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -4469,7 +4479,7 @@ var accountRemoval = strictObject({
|
|
|
4469
4479
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
4470
4480
|
});
|
|
4471
4481
|
|
|
4472
|
-
// 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
|
|
4473
4483
|
var accountProfile = strictObject({
|
|
4474
4484
|
profile: id,
|
|
4475
4485
|
current: boolean(),
|
|
@@ -4481,7 +4491,7 @@ var accountProfile = strictObject({
|
|
|
4481
4491
|
bot: optional(literal(true))
|
|
4482
4492
|
});
|
|
4483
4493
|
|
|
4484
|
-
// 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
|
|
4485
4495
|
var milliseconds = pipe(number(), minValue(0));
|
|
4486
4496
|
var counterReading = strictObject({
|
|
4487
4497
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -4493,7 +4503,7 @@ var counterReading = strictObject({
|
|
|
4493
4503
|
});
|
|
4494
4504
|
var selection = record(string(), unknown());
|
|
4495
4505
|
|
|
4496
|
-
// 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
|
|
4497
4507
|
var adminRow = strictObject({
|
|
4498
4508
|
ref: reference,
|
|
4499
4509
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -4546,7 +4556,7 @@ var adminReport = strictObject({
|
|
|
4546
4556
|
rows: array(adminRow)
|
|
4547
4557
|
});
|
|
4548
4558
|
|
|
4549
|
-
// 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
|
|
4550
4560
|
var closeSuggestion = strictObject({
|
|
4551
4561
|
as: picklist(["done", "dismissed"]),
|
|
4552
4562
|
/** The agent's name. */
|
|
@@ -4608,7 +4618,7 @@ var task = strictObject({
|
|
|
4608
4618
|
updated_at: optional(time)
|
|
4609
4619
|
});
|
|
4610
4620
|
|
|
4611
|
-
// 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
|
|
4612
4622
|
var agendaChat = strictObject({
|
|
4613
4623
|
chat: reference,
|
|
4614
4624
|
title: nullable(text),
|
|
@@ -4678,11 +4688,11 @@ var agenda = strictObject({
|
|
|
4678
4688
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
4679
4689
|
});
|
|
4680
4690
|
|
|
4681
|
-
// 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
|
|
4682
4692
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
4683
4693
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
4684
4694
|
|
|
4685
|
-
// 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
|
|
4686
4696
|
var attachment = strictObject({
|
|
4687
4697
|
/** The message it came with, as a locator; absent inside that message. */
|
|
4688
4698
|
message: optional(reference),
|
|
@@ -4727,7 +4737,7 @@ var hitFile = strictObject({
|
|
|
4727
4737
|
local_path: optional(text)
|
|
4728
4738
|
});
|
|
4729
4739
|
|
|
4730
|
-
// 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
|
|
4731
4741
|
var actionableError = objectWithRest({
|
|
4732
4742
|
code: text,
|
|
4733
4743
|
message: text,
|
|
@@ -4744,7 +4754,7 @@ var batchResult = strictObject({
|
|
|
4744
4754
|
max_error_percent: count
|
|
4745
4755
|
});
|
|
4746
4756
|
|
|
4747
|
-
// 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
|
|
4748
4758
|
var extractionItem = strictObject({
|
|
4749
4759
|
ref: reference,
|
|
4750
4760
|
attachment: count,
|
|
@@ -4777,7 +4787,7 @@ var extractionReport = strictObject({
|
|
|
4777
4787
|
cursor: optional(text)
|
|
4778
4788
|
});
|
|
4779
4789
|
|
|
4780
|
-
// 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
|
|
4781
4791
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
4782
4792
|
var attachmentBytes = strictObject({
|
|
4783
4793
|
ref: reference,
|
|
@@ -4808,7 +4818,7 @@ var attachmentTextChange = strictObject({
|
|
|
4808
4818
|
text: optional(text)
|
|
4809
4819
|
});
|
|
4810
4820
|
|
|
4811
|
-
// 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
|
|
4812
4822
|
var WEIGHTS = {
|
|
4813
4823
|
bot: 3,
|
|
4814
4824
|
scam: 3,
|
|
@@ -4833,7 +4843,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
4833
4843
|
var DIGITS = /\d{5,}/;
|
|
4834
4844
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
4835
4845
|
|
|
4836
|
-
// 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
|
|
4837
4847
|
var linkedIdentity = strictObject({
|
|
4838
4848
|
provider: text,
|
|
4839
4849
|
id,
|
|
@@ -4888,7 +4898,7 @@ var contactCheck = strictObject({
|
|
|
4888
4898
|
checked_at: time
|
|
4889
4899
|
});
|
|
4890
4900
|
|
|
4891
|
-
// 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
|
|
4892
4902
|
var member = strictObject({
|
|
4893
4903
|
id,
|
|
4894
4904
|
name: nullable(text),
|
|
@@ -4911,7 +4921,7 @@ var member = strictObject({
|
|
|
4911
4921
|
check: optional(record(string(), unknown()))
|
|
4912
4922
|
});
|
|
4913
4923
|
|
|
4914
|
-
// 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
|
|
4915
4925
|
var setting = optional(nullable(boolean()));
|
|
4916
4926
|
var chat = strictObject({
|
|
4917
4927
|
ref: reference,
|
|
@@ -4952,7 +4962,7 @@ var chat = strictObject({
|
|
|
4952
4962
|
members: optional(array(member))
|
|
4953
4963
|
});
|
|
4954
4964
|
|
|
4955
|
-
// 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
|
|
4956
4966
|
var quoted = strictObject({
|
|
4957
4967
|
id,
|
|
4958
4968
|
sender_id: nullable(id),
|
|
@@ -5071,7 +5081,7 @@ var message = strictObject({
|
|
|
5071
5081
|
provider_metadata: providerMetadata
|
|
5072
5082
|
});
|
|
5073
5083
|
|
|
5074
|
-
// 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
|
|
5075
5085
|
var recordedMeeting = strictObject({
|
|
5076
5086
|
ref: reference,
|
|
5077
5087
|
meeting_id: count,
|
|
@@ -5084,7 +5094,7 @@ var recordedMeeting = strictObject({
|
|
|
5084
5094
|
people: array(reference)
|
|
5085
5095
|
});
|
|
5086
5096
|
|
|
5087
|
-
// 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
|
|
5088
5098
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
5089
5099
|
var contextMessage = strictObject({
|
|
5090
5100
|
locator: reference,
|
|
@@ -5290,7 +5300,7 @@ var contactPreparation = strictObject({
|
|
|
5290
5300
|
})
|
|
5291
5301
|
});
|
|
5292
5302
|
|
|
5293
|
-
// 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
|
|
5294
5304
|
var nullableText = nullable(text);
|
|
5295
5305
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
5296
5306
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -5401,7 +5411,7 @@ var stage = strictObject({
|
|
|
5401
5411
|
untrusted
|
|
5402
5412
|
});
|
|
5403
5413
|
|
|
5404
|
-
// 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
|
|
5405
5415
|
var nullableText2 = nullable(text);
|
|
5406
5416
|
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
5407
5417
|
var standing = picklist(STANDINGS);
|
|
@@ -5575,7 +5585,7 @@ var dealBrief = strictObject({
|
|
|
5575
5585
|
not_read: coverage2.entries.not_read
|
|
5576
5586
|
});
|
|
5577
5587
|
|
|
5578
|
-
// 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
|
|
5579
5589
|
var chart = strictObject({
|
|
5580
5590
|
version: literal(1),
|
|
5581
5591
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -5590,7 +5600,7 @@ var chart = strictObject({
|
|
|
5590
5600
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
5591
5601
|
});
|
|
5592
5602
|
|
|
5593
|
-
// 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
|
|
5594
5604
|
var named = strictObject({
|
|
5595
5605
|
id,
|
|
5596
5606
|
title: nullable(text),
|
|
@@ -5613,7 +5623,7 @@ var folder = strictObject({
|
|
|
5613
5623
|
excluded_chats: optional(array(named))
|
|
5614
5624
|
});
|
|
5615
5625
|
|
|
5616
|
-
// 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
|
|
5617
5627
|
var inviteLink = strictObject({
|
|
5618
5628
|
link: text,
|
|
5619
5629
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -5629,7 +5639,7 @@ var inviteLink = strictObject({
|
|
|
5629
5639
|
joined_count: optional(count)
|
|
5630
5640
|
});
|
|
5631
5641
|
|
|
5632
|
-
// 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
|
|
5633
5643
|
var operated = { operation_id: id, chat_id: id };
|
|
5634
5644
|
var group = strictObject({
|
|
5635
5645
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -5709,7 +5719,7 @@ var chatFolderOrder = strictObject({
|
|
|
5709
5719
|
folders: array(strictObject({ id, title: text }))
|
|
5710
5720
|
});
|
|
5711
5721
|
|
|
5712
|
-
// 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
|
|
5713
5723
|
var operated2 = { operation_id: id, chat_id: id };
|
|
5714
5724
|
var chatRemoval = strictObject(operated2);
|
|
5715
5725
|
var chatMuting = strictObject({
|
|
@@ -5720,7 +5730,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
5720
5730
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
5721
5731
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
5722
5732
|
|
|
5723
|
-
// 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
|
|
5724
5734
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
5725
5735
|
var chatEvent = strictObject({
|
|
5726
5736
|
chat_id: id,
|
|
@@ -5737,7 +5747,7 @@ var chatEvent = strictObject({
|
|
|
5737
5747
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
5738
5748
|
});
|
|
5739
5749
|
|
|
5740
|
-
// 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
|
|
5741
5751
|
var chatMetadata = strictObject({
|
|
5742
5752
|
chat_id: id,
|
|
5743
5753
|
title: nullable(text),
|
|
@@ -5752,7 +5762,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
5752
5762
|
has_more: boolean()
|
|
5753
5763
|
});
|
|
5754
5764
|
|
|
5755
|
-
// 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
|
|
5756
5766
|
var action = picklist(["report", "delete", "remove"]);
|
|
5757
5767
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
5758
5768
|
var chatRules = strictObject({
|
|
@@ -5789,7 +5799,17 @@ var chatModeration = strictObject({
|
|
|
5789
5799
|
}))
|
|
5790
5800
|
});
|
|
5791
5801
|
|
|
5792
|
-
// 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
|
|
5793
5813
|
var optionalCount = optional(count);
|
|
5794
5814
|
var minutes = nullable(number());
|
|
5795
5815
|
var chatStats = strictObject({
|
|
@@ -5865,7 +5885,7 @@ var taskStats = strictObject({
|
|
|
5865
5885
|
}))
|
|
5866
5886
|
});
|
|
5867
5887
|
|
|
5868
|
-
// 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
|
|
5869
5889
|
var memberCount = strictObject({
|
|
5870
5890
|
day: pipe(text, isoDate()),
|
|
5871
5891
|
participants: nullable(count),
|
|
@@ -5888,7 +5908,7 @@ var chatTracking = strictObject({
|
|
|
5888
5908
|
tracked: boolean()
|
|
5889
5909
|
});
|
|
5890
5910
|
|
|
5891
|
-
// 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
|
|
5892
5912
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
5893
5913
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
5894
5914
|
var profileFields = {
|
|
@@ -5926,7 +5946,7 @@ var profileFields = {
|
|
|
5926
5946
|
}))
|
|
5927
5947
|
};
|
|
5928
5948
|
|
|
5929
|
-
// 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
|
|
5930
5950
|
var contact = strictObject({
|
|
5931
5951
|
ref: reference,
|
|
5932
5952
|
id,
|
|
@@ -5957,7 +5977,7 @@ var contact = strictObject({
|
|
|
5957
5977
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
5958
5978
|
});
|
|
5959
5979
|
|
|
5960
|
-
// 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
|
|
5961
5981
|
var contactNote = strictObject({
|
|
5962
5982
|
id,
|
|
5963
5983
|
/** The contact, as a `contact:` reference. */
|
|
@@ -5969,13 +5989,13 @@ var contactNote = strictObject({
|
|
|
5969
5989
|
updated_at: time
|
|
5970
5990
|
});
|
|
5971
5991
|
|
|
5972
|
-
// 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
|
|
5973
5993
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
5974
5994
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
5975
5995
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
5976
5996
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
5977
5997
|
|
|
5978
|
-
// 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
|
|
5979
5999
|
var conversation = strictObject({
|
|
5980
6000
|
id,
|
|
5981
6001
|
chat: reference,
|
|
@@ -5990,7 +6010,7 @@ var conversation = strictObject({
|
|
|
5990
6010
|
rules_version: count
|
|
5991
6011
|
});
|
|
5992
6012
|
|
|
5993
|
-
// 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
|
|
5994
6014
|
var conversationBuild = strictObject({
|
|
5995
6015
|
chat: id,
|
|
5996
6016
|
messages: count,
|
|
@@ -6015,7 +6035,7 @@ var catchUpPreparation = strictObject({
|
|
|
6015
6035
|
prepared: optional(conversationPreparation)
|
|
6016
6036
|
});
|
|
6017
6037
|
|
|
6018
|
-
// 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
|
|
6019
6039
|
var conversationDetails = union([
|
|
6020
6040
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
6021
6041
|
message
|
|
@@ -6105,7 +6125,7 @@ var conversationHit = strictObject({
|
|
|
6105
6125
|
stale: boolean()
|
|
6106
6126
|
});
|
|
6107
6127
|
|
|
6108
|
-
// 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
|
|
6109
6129
|
var counters = strictObject({
|
|
6110
6130
|
cutoff: time,
|
|
6111
6131
|
max_age_ms: milliseconds,
|
|
@@ -6135,7 +6155,7 @@ var counterRefresh = strictObject({
|
|
|
6135
6155
|
complete: optional(boolean())
|
|
6136
6156
|
});
|
|
6137
6157
|
|
|
6138
|
-
// 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
|
|
6139
6159
|
var document = strictObject({
|
|
6140
6160
|
ref: reference,
|
|
6141
6161
|
id,
|
|
@@ -6150,7 +6170,7 @@ var document = strictObject({
|
|
|
6150
6170
|
owners: optional(array(text))
|
|
6151
6171
|
});
|
|
6152
6172
|
|
|
6153
|
-
// 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
|
|
6154
6174
|
var documentLink = strictObject({
|
|
6155
6175
|
ref: reference,
|
|
6156
6176
|
url: text,
|
|
@@ -6161,7 +6181,7 @@ var documentLink = strictObject({
|
|
|
6161
6181
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
6162
6182
|
});
|
|
6163
6183
|
|
|
6164
|
-
// 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
|
|
6165
6185
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
6166
6186
|
var contribution = strictObject({
|
|
6167
6187
|
message: evidenceMessage,
|
|
@@ -6191,7 +6211,7 @@ var retentionStay = strictObject({
|
|
|
6191
6211
|
});
|
|
6192
6212
|
var evidence = union([contribution, retentionStay]);
|
|
6193
6213
|
|
|
6194
|
-
// 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
|
|
6195
6215
|
var fact = strictObject({
|
|
6196
6216
|
ref: reference,
|
|
6197
6217
|
id,
|
|
@@ -6222,7 +6242,7 @@ var fact = strictObject({
|
|
|
6222
6242
|
updated_at: time
|
|
6223
6243
|
});
|
|
6224
6244
|
|
|
6225
|
-
// 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
|
|
6226
6246
|
var hit = strictObject({
|
|
6227
6247
|
kind: picklist(["message", "mail", "note", "document", "event", "meeting", "deal", "lead", ...BUSINESS_KINDS]),
|
|
6228
6248
|
ref: reference,
|
|
@@ -6270,7 +6290,7 @@ var hit = strictObject({
|
|
|
6270
6290
|
untrusted
|
|
6271
6291
|
});
|
|
6272
6292
|
|
|
6273
|
-
// 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
|
|
6274
6294
|
var identity = strictObject({
|
|
6275
6295
|
ref: reference,
|
|
6276
6296
|
provider: text,
|
|
@@ -6286,7 +6306,7 @@ var identity = strictObject({
|
|
|
6286
6306
|
person: optional(nullable(reference))
|
|
6287
6307
|
});
|
|
6288
6308
|
|
|
6289
|
-
// 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
|
|
6290
6310
|
var imageEmbedding = strictObject({
|
|
6291
6311
|
model: text,
|
|
6292
6312
|
embedded: count,
|
|
@@ -6295,13 +6315,13 @@ var imageEmbedding = strictObject({
|
|
|
6295
6315
|
more: boolean()
|
|
6296
6316
|
});
|
|
6297
6317
|
|
|
6298
|
-
// 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
|
|
6299
6319
|
import { spawn } from "node:child_process";
|
|
6300
6320
|
import { randomBytes } from "node:crypto";
|
|
6301
6321
|
import { closeSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync, realpathSync, rmSync } from "node:fs";
|
|
6302
6322
|
import { dirname, join } from "node:path";
|
|
6303
6323
|
|
|
6304
|
-
// 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
|
|
6305
6325
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
6306
6326
|
const total = input.total ?? null;
|
|
6307
6327
|
const updated = input.updatedAt ?? null;
|
|
@@ -6317,7 +6337,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
6317
6337
|
};
|
|
6318
6338
|
}, "progressOf");
|
|
6319
6339
|
|
|
6320
|
-
// 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
|
|
6321
6341
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
6322
6342
|
const run = currentRun();
|
|
6323
6343
|
const trace = traceId ?? run.traceId;
|
|
@@ -6331,7 +6351,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
6331
6351
|
}));
|
|
6332
6352
|
}, "recordLogFor");
|
|
6333
6353
|
|
|
6334
|
-
// 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
|
|
6335
6355
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
6336
6356
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
6337
6357
|
const out = openSync(log, "a", 384);
|
|
@@ -6486,7 +6506,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
6486
6506
|
return { job: id6, pid, chat: input.chat, log };
|
|
6487
6507
|
}, "startArchiveJob");
|
|
6488
6508
|
|
|
6489
|
-
// 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
|
|
6490
6510
|
var problem = strictObject({ code: text, message: text });
|
|
6491
6511
|
var job = strictObject({
|
|
6492
6512
|
id,
|
|
@@ -6509,7 +6529,7 @@ var job = strictObject({
|
|
|
6509
6529
|
error: optional(problem)
|
|
6510
6530
|
});
|
|
6511
6531
|
|
|
6512
|
-
// 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
|
|
6513
6533
|
var joinRequest = strictObject({
|
|
6514
6534
|
person_id: id,
|
|
6515
6535
|
name: nullable(text),
|
|
@@ -6520,7 +6540,7 @@ var joinRequest = strictObject({
|
|
|
6520
6540
|
about: optional(text)
|
|
6521
6541
|
});
|
|
6522
6542
|
|
|
6523
|
-
// 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
|
|
6524
6544
|
var botProfile = strictObject({
|
|
6525
6545
|
name: text,
|
|
6526
6546
|
token: text,
|
|
@@ -6644,7 +6664,7 @@ var stickerInventory = strictObject({
|
|
|
6644
6664
|
url: optional(nullable(text))
|
|
6645
6665
|
});
|
|
6646
6666
|
|
|
6647
|
-
// 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
|
|
6648
6668
|
var pollVote = strictObject({
|
|
6649
6669
|
person_id: id,
|
|
6650
6670
|
name: nullable(text),
|
|
@@ -6654,7 +6674,7 @@ var pollVote = strictObject({
|
|
|
6654
6674
|
voted_at: time
|
|
6655
6675
|
});
|
|
6656
6676
|
|
|
6657
|
-
// 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
|
|
6658
6678
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
6659
6679
|
var observation = strictObject({
|
|
6660
6680
|
value: pipe(number(), minValue(0)),
|
|
@@ -6696,7 +6716,7 @@ var serveSummary = strictObject({
|
|
|
6696
6716
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
6697
6717
|
});
|
|
6698
6718
|
|
|
6699
|
-
// 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
|
|
6700
6720
|
var mailCounts = strictObject({
|
|
6701
6721
|
by: picklist(["day", "week", "sender"]),
|
|
6702
6722
|
received: count,
|
|
@@ -6711,7 +6731,7 @@ var mailCounts = strictObject({
|
|
|
6711
6731
|
}))
|
|
6712
6732
|
});
|
|
6713
6733
|
|
|
6714
|
-
// 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
|
|
6715
6735
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
6716
6736
|
var base = { id, evidence: array(evidence2) };
|
|
6717
6737
|
var finding = variant("kind", [
|
|
@@ -6855,7 +6875,7 @@ var mailFindings = strictObject({
|
|
|
6855
6875
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
6856
6876
|
});
|
|
6857
6877
|
|
|
6858
|
-
// 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
|
|
6859
6879
|
var mediaArchive = strictObject({
|
|
6860
6880
|
directory: text,
|
|
6861
6881
|
chats: count,
|
|
@@ -6887,7 +6907,7 @@ var mediaArchiveTimer = union([
|
|
|
6887
6907
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
6888
6908
|
]);
|
|
6889
6909
|
|
|
6890
|
-
// 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
|
|
6891
6911
|
var preparationId = pipe(string(), minLength(1));
|
|
6892
6912
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
6893
6913
|
var preparationTime = nullable(isoTime);
|
|
@@ -6979,7 +6999,7 @@ var preparationMeeting = strictObject({
|
|
|
6979
6999
|
updated_at: isoTime
|
|
6980
7000
|
});
|
|
6981
7001
|
|
|
6982
|
-
// 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
|
|
6983
7003
|
var meetingEvidence = preparationEvidence;
|
|
6984
7004
|
var meetingPersonContext = strictObject({
|
|
6985
7005
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -7001,7 +7021,7 @@ var meetingPersonContext = strictObject({
|
|
|
7001
7021
|
})
|
|
7002
7022
|
});
|
|
7003
7023
|
|
|
7004
|
-
// 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
|
|
7005
7025
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
7006
7026
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
7007
7027
|
var finding2 = variant("kind", [
|
|
@@ -7039,7 +7059,7 @@ var meetingFindings = strictObject({
|
|
|
7039
7059
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
7040
7060
|
});
|
|
7041
7061
|
|
|
7042
|
-
// 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
|
|
7043
7063
|
var communicationCoverage = strictObject({
|
|
7044
7064
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
7045
7065
|
query: string(),
|
|
@@ -7084,7 +7104,7 @@ var preparationCommunications = strictObject({
|
|
|
7084
7104
|
}))
|
|
7085
7105
|
});
|
|
7086
7106
|
|
|
7087
|
-
// 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
|
|
7088
7108
|
var meetingPreparation = strictObject({
|
|
7089
7109
|
communications: optional(preparationCommunications),
|
|
7090
7110
|
schema_version: literal(1),
|
|
@@ -7197,7 +7217,7 @@ var meetingPreparation = strictObject({
|
|
|
7197
7217
|
})
|
|
7198
7218
|
});
|
|
7199
7219
|
|
|
7200
|
-
// 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
|
|
7201
7221
|
var count3 = pipe(number(), integer(), minValue(0));
|
|
7202
7222
|
var id3 = pipe(string(), minLength(1));
|
|
7203
7223
|
var text3 = string();
|
|
@@ -7261,7 +7281,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
7261
7281
|
})
|
|
7262
7282
|
});
|
|
7263
7283
|
|
|
7264
|
-
// 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
|
|
7265
7285
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
7266
7286
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
7267
7287
|
var meetingSeriesInventory = strictObject({
|
|
@@ -7291,7 +7311,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
7291
7311
|
})
|
|
7292
7312
|
});
|
|
7293
7313
|
|
|
7294
|
-
// 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
|
|
7295
7315
|
var text4 = string();
|
|
7296
7316
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
7297
7317
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -7308,7 +7328,7 @@ var meetingTaskProposal = strictObject({
|
|
|
7308
7328
|
persistence: literal("proposal-only")
|
|
7309
7329
|
});
|
|
7310
7330
|
|
|
7311
|
-
// 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
|
|
7312
7332
|
var memory = strictObject({
|
|
7313
7333
|
ref: reference,
|
|
7314
7334
|
id,
|
|
@@ -7336,7 +7356,7 @@ var memory = strictObject({
|
|
|
7336
7356
|
updated_at: time
|
|
7337
7357
|
});
|
|
7338
7358
|
|
|
7339
|
-
// 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
|
|
7340
7360
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
7341
7361
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
7342
7362
|
var mention = strictObject({
|
|
@@ -7380,13 +7400,13 @@ var mentionRebuild = strictObject({
|
|
|
7380
7400
|
mentions: count
|
|
7381
7401
|
});
|
|
7382
7402
|
|
|
7383
|
-
// 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
|
|
7384
7404
|
var operated3 = { operation_id: id, chat_id: id };
|
|
7385
7405
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
7386
7406
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
7387
7407
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
7388
7408
|
|
|
7389
|
-
// 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
|
|
7390
7410
|
var messageTranscript = strictObject({
|
|
7391
7411
|
message_id: id,
|
|
7392
7412
|
text,
|
|
@@ -7444,7 +7464,7 @@ var evidencePacket = strictObject({
|
|
|
7444
7464
|
}))
|
|
7445
7465
|
});
|
|
7446
7466
|
|
|
7447
|
-
// 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
|
|
7448
7468
|
var messageThread = strictObject({
|
|
7449
7469
|
ref: reference,
|
|
7450
7470
|
chat: id,
|
|
@@ -7461,7 +7481,7 @@ var messageThread = strictObject({
|
|
|
7461
7481
|
});
|
|
7462
7482
|
var messageContext = union([message, messageThread]);
|
|
7463
7483
|
|
|
7464
|
-
// 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
|
|
7465
7485
|
var messageCounts = strictObject({
|
|
7466
7486
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
7467
7487
|
total: count,
|
|
@@ -7474,7 +7494,7 @@ var messageCounts = strictObject({
|
|
|
7474
7494
|
}))
|
|
7475
7495
|
});
|
|
7476
7496
|
|
|
7477
|
-
// 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
|
|
7478
7498
|
var messageLink = strictObject({
|
|
7479
7499
|
ref: reference,
|
|
7480
7500
|
url: nullable(text),
|
|
@@ -7491,7 +7511,7 @@ var messageLink = strictObject({
|
|
|
7491
7511
|
})))
|
|
7492
7512
|
});
|
|
7493
7513
|
|
|
7494
|
-
// 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
|
|
7495
7515
|
var savedMessageFile = strictObject({
|
|
7496
7516
|
kind: text,
|
|
7497
7517
|
path: text,
|
|
@@ -7578,7 +7598,7 @@ var messageSyncAll = strictObject({
|
|
|
7578
7598
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
7579
7599
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
7580
7600
|
|
|
7581
|
-
// 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
|
|
7582
7602
|
var messageWrite = strictObject({
|
|
7583
7603
|
operation_id: id,
|
|
7584
7604
|
message,
|
|
@@ -7593,7 +7613,7 @@ var draftWrite = strictObject({
|
|
|
7593
7613
|
});
|
|
7594
7614
|
var messageSend = union([messageWrite, draftWrite]);
|
|
7595
7615
|
|
|
7596
|
-
// 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
|
|
7597
7617
|
var model = strictObject({
|
|
7598
7618
|
id,
|
|
7599
7619
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -7628,7 +7648,7 @@ var chosenModel = strictObject({
|
|
|
7628
7648
|
estimate_seconds: nullable(count)
|
|
7629
7649
|
});
|
|
7630
7650
|
|
|
7631
|
-
// 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
|
|
7632
7652
|
var source = picklist(["environment", "keyring", "file"]);
|
|
7633
7653
|
var modelKey = strictObject({
|
|
7634
7654
|
provider: text,
|
|
@@ -7638,7 +7658,7 @@ var modelKey = strictObject({
|
|
|
7638
7658
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
7639
7659
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
7640
7660
|
|
|
7641
|
-
// 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
|
|
7642
7662
|
var versus = strictObject({ current: number(), previous: number() });
|
|
7643
7663
|
var person = { person_ref: reference, name: nullable(text) };
|
|
7644
7664
|
var graph = strictObject({
|
|
@@ -7672,14 +7692,14 @@ var officialStats = strictObject({
|
|
|
7672
7692
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
7673
7693
|
});
|
|
7674
7694
|
|
|
7675
|
-
// 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
|
|
7676
7696
|
var person2 = strictObject({
|
|
7677
7697
|
ref: reference,
|
|
7678
7698
|
name: nullable(text),
|
|
7679
7699
|
identities: optional(array(identity))
|
|
7680
7700
|
});
|
|
7681
7701
|
|
|
7682
|
-
// 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
|
|
7683
7703
|
var poll = strictObject({
|
|
7684
7704
|
chat_id: id,
|
|
7685
7705
|
message_id: id,
|
|
@@ -7695,11 +7715,11 @@ var poll = strictObject({
|
|
|
7695
7715
|
});
|
|
7696
7716
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
7697
7717
|
|
|
7698
|
-
// 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
|
|
7699
7719
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
7700
7720
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
7701
7721
|
|
|
7702
|
-
// 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
|
|
7703
7723
|
var figures = record(string(), number());
|
|
7704
7724
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
7705
7725
|
var rankingRow = strictObject({
|
|
@@ -7746,7 +7766,7 @@ var ranking = strictObject({
|
|
|
7746
7766
|
rows: array(rankingRow)
|
|
7747
7767
|
});
|
|
7748
7768
|
|
|
7749
|
-
// 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
|
|
7750
7770
|
var reaction = strictObject({
|
|
7751
7771
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
7752
7772
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -7754,7 +7774,7 @@ var reaction = strictObject({
|
|
|
7754
7774
|
reacted_at: time
|
|
7755
7775
|
});
|
|
7756
7776
|
|
|
7757
|
-
// 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
|
|
7758
7778
|
var reactionChange = strictObject({
|
|
7759
7779
|
operation_id: id,
|
|
7760
7780
|
chat_id: id,
|
|
@@ -7762,7 +7782,7 @@ var reactionChange = strictObject({
|
|
|
7762
7782
|
reaction: nullable(text)
|
|
7763
7783
|
});
|
|
7764
7784
|
|
|
7765
|
-
// 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
|
|
7766
7786
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
7767
7787
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
7768
7788
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -7773,7 +7793,7 @@ var recipientChange = strictObject({
|
|
|
7773
7793
|
...partial(recipientOff).entries
|
|
7774
7794
|
});
|
|
7775
7795
|
|
|
7776
|
-
// 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
|
|
7777
7797
|
var events = array(record(string(), unknown()));
|
|
7778
7798
|
var recordedRun = strictObject({
|
|
7779
7799
|
run_id: id,
|
|
@@ -7845,7 +7865,7 @@ var runHit = strictObject({
|
|
|
7845
7865
|
});
|
|
7846
7866
|
var runLocation = strictObject({ path: text });
|
|
7847
7867
|
|
|
7848
|
-
// 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
|
|
7849
7869
|
var relationship = strictObject({
|
|
7850
7870
|
id,
|
|
7851
7871
|
from: reference,
|
|
@@ -7872,7 +7892,7 @@ var relationship = strictObject({
|
|
|
7872
7892
|
created_at: time
|
|
7873
7893
|
});
|
|
7874
7894
|
|
|
7875
|
-
// 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
|
|
7876
7896
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
7877
7897
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
7878
7898
|
var responseTimes = strictObject({
|
|
@@ -7889,7 +7909,7 @@ var waitingChats = strictObject({
|
|
|
7889
7909
|
by_kind: strictObject({ private: count, group: count })
|
|
7890
7910
|
});
|
|
7891
7911
|
|
|
7892
|
-
// 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
|
|
7893
7913
|
var retentionCohort = strictObject({
|
|
7894
7914
|
/** The first day of the joining day or week. */
|
|
7895
7915
|
cohort: text,
|
|
@@ -7937,7 +7957,7 @@ var retention = strictObject({
|
|
|
7937
7957
|
rows: array(retentionCohort)
|
|
7938
7958
|
});
|
|
7939
7959
|
|
|
7940
|
-
// 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
|
|
7941
7961
|
var savedSearch = strictObject({
|
|
7942
7962
|
id,
|
|
7943
7963
|
/** `null` for a run in the history. */
|
|
@@ -7954,7 +7974,7 @@ var savedSearch = strictObject({
|
|
|
7954
7974
|
});
|
|
7955
7975
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
7956
7976
|
|
|
7957
|
-
// 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
|
|
7958
7978
|
var sendAttempt = strictObject({
|
|
7959
7979
|
at: time,
|
|
7960
7980
|
profile: text,
|
|
@@ -7982,7 +8002,7 @@ var sendAttempt = strictObject({
|
|
|
7982
8002
|
error_code: optional(text)
|
|
7983
8003
|
});
|
|
7984
8004
|
|
|
7985
|
-
// 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
|
|
7986
8006
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
7987
8007
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
7988
8008
|
var infoSchema = strictObject({
|
|
@@ -8212,7 +8232,7 @@ var storeRepair = union([
|
|
|
8212
8232
|
]);
|
|
8213
8233
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
8214
8234
|
|
|
8215
|
-
// 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
|
|
8216
8236
|
var range = strictObject({ from: number(), to: number() });
|
|
8217
8237
|
var storeChatStatus = strictObject({
|
|
8218
8238
|
chat_id: id,
|
|
@@ -8310,7 +8330,7 @@ var storeJobRetry = union([
|
|
|
8310
8330
|
]);
|
|
8311
8331
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
8312
8332
|
|
|
8313
|
-
// 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
|
|
8314
8334
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
8315
8335
|
var storeTable = strictObject({
|
|
8316
8336
|
name: text,
|
|
@@ -8319,7 +8339,7 @@ var storeTable = strictObject({
|
|
|
8319
8339
|
bytes: optional(nullable(count))
|
|
8320
8340
|
});
|
|
8321
8341
|
|
|
8322
|
-
// 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
|
|
8323
8343
|
var tagTarget = variant("type", [
|
|
8324
8344
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
8325
8345
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -8350,7 +8370,7 @@ var automaticTags = strictObject({
|
|
|
8350
8370
|
dry_run: boolean()
|
|
8351
8371
|
});
|
|
8352
8372
|
|
|
8353
|
-
// 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
|
|
8354
8374
|
var tagging = strictObject({
|
|
8355
8375
|
tag: text,
|
|
8356
8376
|
type: picklist(TAG_TYPES),
|
|
@@ -8363,7 +8383,7 @@ var tagging = strictObject({
|
|
|
8363
8383
|
created_at: time
|
|
8364
8384
|
});
|
|
8365
8385
|
|
|
8366
|
-
// 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
|
|
8367
8387
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
8368
8388
|
var taskPair = strictObject({
|
|
8369
8389
|
task: nullable(side),
|
|
@@ -8386,7 +8406,7 @@ var taskPair = strictObject({
|
|
|
8386
8406
|
created_at: time
|
|
8387
8407
|
});
|
|
8388
8408
|
|
|
8389
|
-
// 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
|
|
8390
8410
|
var nullableTime = nullable(time);
|
|
8391
8411
|
var link = strictObject({
|
|
8392
8412
|
id,
|
|
@@ -8560,7 +8580,7 @@ var taskReview = strictObject({
|
|
|
8560
8580
|
untrusted
|
|
8561
8581
|
});
|
|
8562
8582
|
|
|
8563
|
-
// 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
|
|
8564
8584
|
var template = strictObject({
|
|
8565
8585
|
key: text,
|
|
8566
8586
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -8572,7 +8592,7 @@ var template = strictObject({
|
|
|
8572
8592
|
updated_by: nullable(text)
|
|
8573
8593
|
});
|
|
8574
8594
|
|
|
8575
|
-
// 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
|
|
8576
8596
|
var topic = strictObject({
|
|
8577
8597
|
id,
|
|
8578
8598
|
title: text,
|
|
@@ -8586,7 +8606,7 @@ var topic = strictObject({
|
|
|
8586
8606
|
untrusted
|
|
8587
8607
|
});
|
|
8588
8608
|
|
|
8589
|
-
// 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
|
|
8590
8610
|
var ENTITIES = {
|
|
8591
8611
|
sync_progress: progress,
|
|
8592
8612
|
deal,
|
|
@@ -8761,6 +8781,9 @@ var ENTITIES = {
|
|
|
8761
8781
|
meeting_link: meetingLink,
|
|
8762
8782
|
meeting_stats: meetingStats,
|
|
8763
8783
|
meeting_counts: meetingCounts,
|
|
8784
|
+
call_stats: callStats,
|
|
8785
|
+
meeting_tag_change: meetingTagChange,
|
|
8786
|
+
meeting_tagging: meetingTagging,
|
|
8764
8787
|
meeting_speaker: meetingSpeaker,
|
|
8765
8788
|
meeting_participants: meetingParticipants,
|
|
8766
8789
|
meeting_passage: meetingPassage,
|
|
@@ -8837,6 +8860,7 @@ var ENTITIES = {
|
|
|
8837
8860
|
chat_moderation: chatModeration,
|
|
8838
8861
|
"model.chosen": chosenModel,
|
|
8839
8862
|
model_key: modelKey,
|
|
8863
|
+
chat_sending: chatSending,
|
|
8840
8864
|
"model_key.stored": storedModelKey,
|
|
8841
8865
|
"model_key.removed": removedModelKey,
|
|
8842
8866
|
chat_event: chatEvent,
|
|
@@ -8881,7 +8905,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
8881
8905
|
return [name, definition];
|
|
8882
8906
|
})), "entityDefinitions");
|
|
8883
8907
|
|
|
8884
|
-
// 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
|
|
8885
8909
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
8886
8910
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
8887
8911
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -8915,7 +8939,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
8915
8939
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
8916
8940
|
}, "answerRow");
|
|
8917
8941
|
|
|
8918
|
-
// 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
|
|
8919
8943
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
8920
8944
|
var requests = new AsyncLocalStorage();
|
|
8921
8945
|
var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
|
|
@@ -8930,7 +8954,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
|
|
|
8930
8954
|
return direct;
|
|
8931
8955
|
}, "exitCodeSet");
|
|
8932
8956
|
|
|
8933
|
-
// 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
|
|
8934
8958
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
8935
8959
|
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
8936
8960
|
messageId: message2.id,
|
|
@@ -9036,7 +9060,7 @@ var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 =
|
|
|
9036
9060
|
}, "guardedWrite");
|
|
9037
9061
|
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
9038
9062
|
|
|
9039
|
-
// 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
|
|
9040
9064
|
var named2 = /* @__PURE__ */ __name((work) => {
|
|
9041
9065
|
try {
|
|
9042
9066
|
return work();
|
|
@@ -9063,7 +9087,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named2(() => {
|
|
|
9063
9087
|
return projectFields(value, fields);
|
|
9064
9088
|
}), "projectFields");
|
|
9065
9089
|
|
|
9066
|
-
// 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
|
|
9067
9091
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
9068
9092
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
9069
9093
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -9246,7 +9270,7 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
9246
9270
|
}
|
|
9247
9271
|
}, "withAbort");
|
|
9248
9272
|
|
|
9249
|
-
// 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
|
|
9250
9274
|
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
9251
9275
|
import { join as join2 } from "node:path";
|
|
9252
9276
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
@@ -9335,7 +9359,7 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
9335
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));
|
|
9336
9360
|
}, "registryProfiles");
|
|
9337
9361
|
|
|
9338
|
-
// 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
|
|
9339
9363
|
import { existsSync as existsSync3, readdirSync as readdirSync3, readFileSync as readFileSync3 } from "node:fs";
|
|
9340
9364
|
import { join as join3 } from "node:path";
|
|
9341
9365
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join3(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
@@ -9357,7 +9381,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
9357
9381
|
}, "profilesWithAccounts");
|
|
9358
9382
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
9359
9383
|
|
|
9360
|
-
// 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
|
|
9361
9385
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
9362
9386
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
9363
9387
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -9393,7 +9417,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
9393
9417
|
return value;
|
|
9394
9418
|
}, "atDetail");
|
|
9395
9419
|
|
|
9396
|
-
// 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
|
|
9397
9421
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
9398
9422
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
9399
9423
|
if (other)
|
|
@@ -9457,7 +9481,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
9457
9481
|
}, "warn")
|
|
9458
9482
|
}), "silence");
|
|
9459
9483
|
|
|
9460
|
-
// 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
|
|
9461
9485
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
9462
9486
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
9463
9487
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -9495,7 +9519,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
9495
9519
|
progress: "sync.progress"
|
|
9496
9520
|
};
|
|
9497
9521
|
|
|
9498
|
-
// 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
|
|
9499
9523
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
9500
9524
|
const recording = startRecording(options);
|
|
9501
9525
|
try {
|
|
@@ -9710,7 +9734,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
9710
9734
|
return void 0;
|
|
9711
9735
|
}, "partialOutcome");
|
|
9712
9736
|
|
|
9713
|
-
// 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
|
|
9714
9738
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
9715
9739
|
if (ms2 === void 0)
|
|
9716
9740
|
return body();
|
|
@@ -9736,7 +9760,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
9736
9760
|
}
|
|
9737
9761
|
}, "withDeadline");
|
|
9738
9762
|
|
|
9739
|
-
// 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
|
|
9740
9764
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
9741
9765
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
9742
9766
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -9762,19 +9786,19 @@ var takesProfile = /* @__PURE__ */ __name((command) => {
|
|
|
9762
9786
|
return top !== void 0 && !PROFILE_FREE.has(top.name());
|
|
9763
9787
|
}, "takesProfile");
|
|
9764
9788
|
var commandWords = /* @__PURE__ */ __name((program2) => /* @__PURE__ */ new Set(["help", ...program2.commands.flatMap((command) => [command.name(), ...command.aliases()])]), "commandWords");
|
|
9765
|
-
var liftProfile = /* @__PURE__ */ __name((argv,
|
|
9789
|
+
var liftProfile = /* @__PURE__ */ __name((argv, words, valued = /* @__PURE__ */ new Set()) => {
|
|
9766
9790
|
let at2 = 0;
|
|
9767
9791
|
while (argv[at2]?.startsWith("-") && argv[at2] !== "--")
|
|
9768
9792
|
at2 += valued.has(argv[at2]) ? 2 : 1;
|
|
9769
9793
|
const first2 = argv[at2];
|
|
9770
|
-
if (first2 === void 0 || first2.startsWith("-") ||
|
|
9794
|
+
if (first2 === void 0 || first2.startsWith("-") || words.has(first2))
|
|
9771
9795
|
return { rest: argv };
|
|
9772
9796
|
return { profile: first2, rest: [...argv.slice(0, at2), ...argv.slice(at2 + 1)] };
|
|
9773
9797
|
}, "liftProfile");
|
|
9774
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");
|
|
9775
|
-
var refuseCommandName = /* @__PURE__ */ __name((profile,
|
|
9776
|
-
if (
|
|
9777
|
-
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(", "));
|
|
9778
9802
|
}
|
|
9779
9803
|
}, "refuseCommandName");
|
|
9780
9804
|
var rootOf = /* @__PURE__ */ __name((command) => {
|
|
@@ -9805,10 +9829,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
9805
9829
|
return void 0;
|
|
9806
9830
|
}, "sampleCommand");
|
|
9807
9831
|
|
|
9808
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9809
|
-
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";
|
|
9810
9834
|
|
|
9811
|
-
// 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
|
|
9812
9836
|
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
9813
9837
|
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
9814
9838
|
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
@@ -9877,13 +9901,13 @@ var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
|
9877
9901
|
};
|
|
9878
9902
|
}, "modelTarget");
|
|
9879
9903
|
|
|
9880
|
-
// 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
|
|
9881
9905
|
var model2 = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
9882
|
-
var
|
|
9906
|
+
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
9883
9907
|
var AI_FIELDS = {
|
|
9884
9908
|
embeddingProvider: optional(picklist(["local", "openai"])),
|
|
9885
9909
|
embeddingModel: optional(model2),
|
|
9886
|
-
embeddingBaseUrl: optional(
|
|
9910
|
+
embeddingBaseUrl: optional(url),
|
|
9887
9911
|
embeddingDims: optional(pipe(number(), integer(), minValue(1), maxValue(65536))),
|
|
9888
9912
|
models: optional(modelSettingsShape)
|
|
9889
9913
|
};
|
|
@@ -9921,7 +9945,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
9921
9945
|
};
|
|
9922
9946
|
}, "resolveAISettings");
|
|
9923
9947
|
|
|
9924
|
-
// 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
|
|
9925
9949
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
9926
9950
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
9927
9951
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -9935,284 +9959,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
9935
9959
|
return ms2;
|
|
9936
9960
|
}, "parseDuration");
|
|
9937
9961
|
|
|
9938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9939
|
-
import { existsSync as existsSync4 } from "node:fs";
|
|
9940
|
-
import { join as join4 } from "node:path";
|
|
9941
|
-
var huggingFace = /* @__PURE__ */ __name((repository, commit) => (name) => `https://huggingface.co/${repository}/resolve/${commit}/${name}`, "huggingFace");
|
|
9942
|
-
var e5 = huggingFace("Xenova/multilingual-e5-small", "761b726dd34fb83930e26aab4e9ac3899aa1fa78");
|
|
9943
|
-
var e5Large = huggingFace("Xenova/multilingual-e5-large", "00fc3aeb3dbb95842de2ac1961d33c6319acf57b");
|
|
9944
|
-
var gemma = huggingFace("onnx-community/embeddinggemma-300m-ONNX", "5090578d9565bb06545b4552f76e6bc2c93e4a66");
|
|
9945
|
-
var TEXT_MODELS = [
|
|
9946
|
-
{
|
|
9947
|
-
id: "e5-small",
|
|
9948
|
-
title: "multilingual-e5-small, 8-bit",
|
|
9949
|
-
size: "small",
|
|
9950
|
-
languages: "about 100 languages, Russian and English among them",
|
|
9951
|
-
licence: "MIT",
|
|
9952
|
-
dims: 384,
|
|
9953
|
-
maxTokens: 512,
|
|
9954
|
-
// 100k-message corpus, one 8-thread session on Ryzen AI 9 HX 470: 31–32 chunks/s.
|
|
9955
|
-
chunksPerSecond: 31,
|
|
9956
|
-
pooling: "mean",
|
|
9957
|
-
prefix: { query: "query: ", passage: "passage: " },
|
|
9958
|
-
onnx: "onnx/model_quantized.onnx",
|
|
9959
|
-
files: [
|
|
9960
|
-
{
|
|
9961
|
-
name: "onnx/model_quantized.onnx",
|
|
9962
|
-
url: e5("onnx/model_quantized.onnx"),
|
|
9963
|
-
sha256: "f80102d3f2a1229f387d3c81909990d8945513e347b0eab049f7de3c6f98c193",
|
|
9964
|
-
bytes: 118308185
|
|
9965
|
-
},
|
|
9966
|
-
{
|
|
9967
|
-
name: "tokenizer.json",
|
|
9968
|
-
url: e5("tokenizer.json"),
|
|
9969
|
-
sha256: "0b44a9d7b51c3c62626640cda0e2c2f70fdacdc25bbbd68038369d14ebdf4c39",
|
|
9970
|
-
bytes: 17082730
|
|
9971
|
-
},
|
|
9972
|
-
{
|
|
9973
|
-
name: "tokenizer_config.json",
|
|
9974
|
-
url: e5("tokenizer_config.json"),
|
|
9975
|
-
sha256: "a1d6bc8734a6f635dc158508bef000f8e2e5a759c7d92f984b2c86e5ff53425b",
|
|
9976
|
-
bytes: 443
|
|
9977
|
-
}
|
|
9978
|
-
]
|
|
9979
|
-
},
|
|
9980
|
-
{
|
|
9981
|
-
id: "embeddinggemma",
|
|
9982
|
-
title: "EmbeddingGemma 300M, 4-bit",
|
|
9983
|
-
size: "medium",
|
|
9984
|
-
languages: "over 100 languages \u2014 the best of the two on chat, about seven times slower",
|
|
9985
|
-
licence: "Gemma Terms of Use",
|
|
9986
|
-
terms: "https://ai.google.dev/gemma/terms",
|
|
9987
|
-
// Gemma Terms of Use §3.1: every copy carries this notice and the use restrictions of §3.2.
|
|
9988
|
-
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",
|
|
9989
|
-
dims: 768,
|
|
9990
|
-
maxTokens: 2048,
|
|
9991
|
-
// 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
|
|
9992
|
-
// 5 on the scale e5-small's 31 sets. It was 2, which held a memo sync to 39 chunks.
|
|
9993
|
-
chunksPerSecond: 5,
|
|
9994
|
-
pooling: "sentence_embedding",
|
|
9995
|
-
prefix: { query: "task: search result | query: ", passage: "title: none | text: " },
|
|
9996
|
-
onnx: "onnx/model_q4.onnx",
|
|
9997
|
-
externalData: "onnx/model_q4.onnx_data",
|
|
9998
|
-
files: [
|
|
9999
|
-
{
|
|
10000
|
-
name: "onnx/model_q4.onnx",
|
|
10001
|
-
url: gemma("onnx/model_q4.onnx"),
|
|
10002
|
-
sha256: "ad1dfee81a70f7944b9b9d1cc6e48075b832881cf33fab2f2b248be78f3f0043",
|
|
10003
|
-
bytes: 519322
|
|
10004
|
-
},
|
|
10005
|
-
{
|
|
10006
|
-
name: "onnx/model_q4.onnx_data",
|
|
10007
|
-
url: gemma("onnx/model_q4.onnx_data"),
|
|
10008
|
-
sha256: "599962c3143b040de2dd05e5975be3e9091dd067cacc6a8f7186e3203bab9e02",
|
|
10009
|
-
bytes: 196725760
|
|
10010
|
-
},
|
|
10011
|
-
{
|
|
10012
|
-
name: "tokenizer.json",
|
|
10013
|
-
url: gemma("tokenizer.json"),
|
|
10014
|
-
sha256: "4dda02faaf32bc91031dc8c88457ac272b00c1016cc679757d1c441b248b9c47",
|
|
10015
|
-
bytes: 20323312
|
|
10016
|
-
},
|
|
10017
|
-
{
|
|
10018
|
-
name: "tokenizer_config.json",
|
|
10019
|
-
url: gemma("tokenizer_config.json"),
|
|
10020
|
-
sha256: "3ca953eea6c3c9fcda9cf3df22949ff18b216f7c74bd6459230f3f1013953f3a",
|
|
10021
|
-
bytes: 1156830
|
|
10022
|
-
}
|
|
10023
|
-
]
|
|
10024
|
-
},
|
|
10025
|
-
{
|
|
10026
|
-
id: "e5-large",
|
|
10027
|
-
title: "multilingual-e5-large, 8-bit",
|
|
10028
|
-
size: "large",
|
|
10029
|
-
languages: "about 100 languages, Russian and English among them \u2014 reads better than e5-small, several times slower",
|
|
10030
|
-
licence: "MIT",
|
|
10031
|
-
dims: 1024,
|
|
10032
|
-
maxTokens: 512,
|
|
10033
|
-
// 2026-11-07, one 8-thread session on the Ryzen AI 9 HX 470 while other benchmarks ran: 3.4 chunks/s.
|
|
10034
|
-
chunksPerSecond: 4,
|
|
10035
|
-
pooling: "mean",
|
|
10036
|
-
prefix: { query: "query: ", passage: "passage: " },
|
|
10037
|
-
onnx: "onnx/model_quantized.onnx",
|
|
10038
|
-
files: [
|
|
10039
|
-
{
|
|
10040
|
-
name: "onnx/model_quantized.onnx",
|
|
10041
|
-
url: e5Large("onnx/model_quantized.onnx"),
|
|
10042
|
-
sha256: "0a8d65db9a36f810ba5da15249f13145fcdc7890e6656f1fd38cd8b7c4db1fca",
|
|
10043
|
-
bytes: 561768762
|
|
10044
|
-
},
|
|
10045
|
-
{
|
|
10046
|
-
name: "tokenizer.json",
|
|
10047
|
-
url: e5Large("tokenizer.json"),
|
|
10048
|
-
sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
|
|
10049
|
-
bytes: 17082660
|
|
10050
|
-
},
|
|
10051
|
-
{
|
|
10052
|
-
name: "tokenizer_config.json",
|
|
10053
|
-
url: e5Large("tokenizer_config.json"),
|
|
10054
|
-
sha256: "efb5c0d09722e5fe59a462cd2a9976ee216d55b037597d997cd3fe833216da15",
|
|
10055
|
-
bytes: 418
|
|
10056
|
-
}
|
|
10057
|
-
]
|
|
10058
|
-
}
|
|
10059
|
-
];
|
|
10060
|
-
var DEFAULT_TEXT_MODEL = "embeddinggemma";
|
|
10061
|
-
var PREVIOUS_DEFAULT_TEXT_MODEL = "e5-small";
|
|
10062
|
-
var SECTION = "text_models";
|
|
10063
|
-
var slug = pipe(string(), regex(/^[a-z0-9][a-z0-9._-]{0,62}$/, "is not a model id: a-z, 0-9, . _ -"));
|
|
10064
|
-
var words = pipe(string(), trim(), minLength(1), maxLength(300));
|
|
10065
|
-
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"));
|
|
10066
|
-
var modelFile = strictObject({
|
|
10067
|
-
name: fileName,
|
|
10068
|
-
url: pipe(string(), url(), startsWith("https://", "has to be an https address")),
|
|
10069
|
-
sha256: pipe(string(), regex(/^[0-9a-f]{64}$/, "has to be a sha256 in hex")),
|
|
10070
|
-
bytes: pipe(number(), integer(), minValue(1))
|
|
10071
|
-
});
|
|
10072
|
-
var CustomTextModelShape = pipe(strictObject({
|
|
10073
|
-
id: slug,
|
|
10074
|
-
title: words,
|
|
10075
|
-
languages: words,
|
|
10076
|
-
licence: words,
|
|
10077
|
-
terms: optional(pipe(string(), url())),
|
|
10078
|
-
dims: pipe(number(), integer(), minValue(1), maxValue(8192)),
|
|
10079
|
-
maxTokens: pipe(number(), integer(), minValue(16), maxValue(32768)),
|
|
10080
|
-
chunksPerSecond: optional(pipe(number(), minValue(0.01))),
|
|
10081
|
-
pooling: picklist(["mean", "sentence_embedding"]),
|
|
10082
|
-
prefix: strictObject({
|
|
10083
|
-
query: pipe(string(), maxLength(200)),
|
|
10084
|
-
passage: pipe(string(), maxLength(200))
|
|
10085
|
-
}),
|
|
10086
|
-
onnx: fileName,
|
|
10087
|
-
externalData: optional(fileName),
|
|
10088
|
-
files: pipe(array(modelFile), minLength(1), maxLength(16))
|
|
10089
|
-
}), check((model3) => !TEXT_MODELS.some((one) => one.id === model3.id), "takes the id of a model this version ships; choose another"), check((model3) => {
|
|
10090
|
-
const names = model3.files.map(({ name }) => name);
|
|
10091
|
-
return [model3.onnx, model3.externalData, "tokenizer.json", "tokenizer_config.json"].every((name) => name === void 0 || names.includes(name));
|
|
10092
|
-
}, "has to list its onnx file, its external data and tokenizer.json and tokenizer_config.json among files"));
|
|
10093
|
-
var TextModelsSection = strictObject({
|
|
10094
|
-
use: optional(slug),
|
|
10095
|
-
custom: optional(array(CustomTextModelShape))
|
|
10096
|
-
});
|
|
10097
|
-
var textModelsFile = /* @__PURE__ */ __name((env = process.env) => sharedConfigPath(storePath(env), env), "textModelsFile");
|
|
10098
|
-
var readTextModelsSection = /* @__PURE__ */ __name((env = process.env) => {
|
|
10099
|
-
const path2 = textModelsFile(env);
|
|
10100
|
-
const section2 = readSharedSection(path2, SECTION);
|
|
10101
|
-
if (section2 === void 0)
|
|
10102
|
-
return {};
|
|
10103
|
-
const checked = safeParse(TextModelsSection, section2);
|
|
10104
|
-
if (!checked.success) {
|
|
10105
|
-
const issue = checked.issues[0];
|
|
10106
|
-
const at2 = issue ? getDotPath(issue) : null;
|
|
10107
|
-
throw new CliError("configuration_error", `${path2}: ${SECTION}${at2 ? `.${at2}` : ""} ${issue?.message ?? "is not valid"}`);
|
|
10108
|
-
}
|
|
10109
|
-
const ids = checked.output.custom?.map(({ id: id6 }) => id6) ?? [];
|
|
10110
|
-
const twice = ids.find((id6, at2) => ids.indexOf(id6) !== at2);
|
|
10111
|
-
if (twice)
|
|
10112
|
-
throw new CliError("configuration_error", `${path2}: ${SECTION}.custom names ${twice} twice`);
|
|
10113
|
-
return checked.output;
|
|
10114
|
-
}, "readTextModelsSection");
|
|
10115
|
-
var writeTextModelsSection = /* @__PURE__ */ __name((section2, env = process.env) => writeSharedSection(textModelsFile(env), SECTION, section2.use === void 0 && !section2.custom?.length ? void 0 : section2), "writeTextModelsSection");
|
|
10116
|
-
var textModels = /* @__PURE__ */ __name((env = process.env) => [
|
|
10117
|
-
...TEXT_MODELS,
|
|
10118
|
-
...(readTextModelsSection(env).custom ?? []).map((model3) => ({ ...model3, custom: true }))
|
|
10119
|
-
], "textModels");
|
|
10120
|
-
var textModel = /* @__PURE__ */ __name((id6, env = process.env) => {
|
|
10121
|
-
const known = textModels(env);
|
|
10122
|
-
const found = known.find((model3) => model3.id === id6);
|
|
10123
|
-
if (!found) {
|
|
10124
|
-
throw new CliError("validation_error", `no text model ${id6} \u2014 one of: ${known.map((model3) => model3.id).join(", ")}`);
|
|
10125
|
-
}
|
|
10126
|
-
return found;
|
|
10127
|
-
}, "textModel");
|
|
10128
|
-
var downloaded = /* @__PURE__ */ __name((id6, env) => {
|
|
10129
|
-
const model3 = TEXT_MODELS.find((one) => one.id === id6);
|
|
10130
|
-
const directory = sharedModelsDirectory("text", env);
|
|
10131
|
-
return model3 !== void 0 && filesPresent(model3.files.map((file) => [file, join4(directory, model3.id, file.name)]));
|
|
10132
|
-
}, "downloaded");
|
|
10133
|
-
var chosenTextModel = /* @__PURE__ */ __name((env = process.env) => {
|
|
10134
|
-
const use = readTextModelsSection(env).use;
|
|
10135
|
-
if (use !== void 0)
|
|
10136
|
-
return { id: use, from: "chosen" };
|
|
10137
|
-
const kept = !downloaded(DEFAULT_TEXT_MODEL, env) && existsSync4(join4(sharedModelsDirectory("text", env), PREVIOUS_DEFAULT_TEXT_MODEL));
|
|
10138
|
-
return { id: kept ? PREVIOUS_DEFAULT_TEXT_MODEL : DEFAULT_TEXT_MODEL, from: "default" };
|
|
10139
|
-
}, "chosenTextModel");
|
|
10140
|
-
var mmarco = huggingFace("cross-encoder/mmarco-mMiniLMv2-L12-H384-v1", "1427fd652930e4ba29e8149678df786c240d8825");
|
|
10141
|
-
var bge = huggingFace("onnx-community/bge-reranker-v2-m3-ONNX", "6f5ff65298512715a1e669753bc754d2bc8f367b");
|
|
10142
|
-
var RERANK_MODELS = [
|
|
10143
|
-
{
|
|
10144
|
-
id: "mmarco",
|
|
10145
|
-
title: "mMARCO mMiniLMv2-L12 cross-encoder, 8-bit",
|
|
10146
|
-
languages: "about 100 languages, Russian and English among them",
|
|
10147
|
-
licence: "Apache-2.0",
|
|
10148
|
-
maxTokens: 512,
|
|
10149
|
-
// The x86 name is the quantizer's target; WebAssembly and native ONNX Runtime both run it on any processor.
|
|
10150
|
-
onnx: "onnx/model_quint8_avx2.onnx",
|
|
10151
|
-
files: [
|
|
10152
|
-
{
|
|
10153
|
-
name: "onnx/model_quint8_avx2.onnx",
|
|
10154
|
-
url: mmarco("onnx/model_quint8_avx2.onnx"),
|
|
10155
|
-
sha256: "6c2513767fb63d008a4377bef7a7a3555433d9436342bb53e35a3a72ffc52d4b",
|
|
10156
|
-
bytes: 118620016
|
|
10157
|
-
},
|
|
10158
|
-
{
|
|
10159
|
-
name: "tokenizer.json",
|
|
10160
|
-
url: mmarco("tokenizer.json"),
|
|
10161
|
-
sha256: "62c24cdc13d4c9952d63718d6c9fa4c287974249e16b7ade6d5a85e7bbb75626",
|
|
10162
|
-
bytes: 17082660
|
|
10163
|
-
},
|
|
10164
|
-
{
|
|
10165
|
-
name: "tokenizer_config.json",
|
|
10166
|
-
url: mmarco("tokenizer_config.json"),
|
|
10167
|
-
sha256: "e7fbfbfa6347b4e414c1cee50d142e2c2f9a895dad68b068ae83a8b564c3837e",
|
|
10168
|
-
bytes: 435
|
|
10169
|
-
}
|
|
10170
|
-
]
|
|
10171
|
-
},
|
|
10172
|
-
{
|
|
10173
|
-
id: "bge-reranker-v2-m3",
|
|
10174
|
-
title: "BGE reranker v2 m3, 8-bit",
|
|
10175
|
-
languages: "over 100 languages \u2014 better than mmarco in the benchmark, about seven times slower",
|
|
10176
|
-
licence: "Apache-2.0 (BAAI's; the ONNX export declares none)",
|
|
10177
|
-
maxTokens: 512,
|
|
10178
|
-
onnx: "onnx/model_quantized.onnx",
|
|
10179
|
-
files: [
|
|
10180
|
-
{
|
|
10181
|
-
name: "onnx/model_quantized.onnx",
|
|
10182
|
-
url: bge("onnx/model_quantized.onnx"),
|
|
10183
|
-
sha256: "912fc1215c2dbff6499700534bd8d31253af01573861abbfc43afd1fab6cce5d",
|
|
10184
|
-
bytes: 570727094
|
|
10185
|
-
},
|
|
10186
|
-
{
|
|
10187
|
-
name: "tokenizer.json",
|
|
10188
|
-
url: bge("tokenizer.json"),
|
|
10189
|
-
sha256: "8bf8afbfd11306bd872018c53bfdf2e160a56f8edbcf49933324404791c148d3",
|
|
10190
|
-
bytes: 17082900
|
|
10191
|
-
},
|
|
10192
|
-
{
|
|
10193
|
-
name: "tokenizer_config.json",
|
|
10194
|
-
url: bge("tokenizer_config.json"),
|
|
10195
|
-
sha256: "b87c8703482b0300d3da30e201519aa641f6a450f5eb5bf1e624afbf70c74d80",
|
|
10196
|
-
bytes: 1203
|
|
10197
|
-
}
|
|
10198
|
-
]
|
|
10199
|
-
}
|
|
10200
|
-
];
|
|
10201
|
-
var DEFAULT_RERANK_MODEL = "mmarco";
|
|
10202
|
-
var rerankModel = /* @__PURE__ */ __name((id6) => {
|
|
10203
|
-
const found = RERANK_MODELS.find((model3) => model3.id === id6);
|
|
10204
|
-
if (!found) {
|
|
10205
|
-
throw new CliError("validation_error", `no reranker ${id6} \u2014 one of: ${RERANK_MODELS.map((model3) => model3.id).join(", ")}`);
|
|
10206
|
-
}
|
|
10207
|
-
return found;
|
|
10208
|
-
}, "rerankModel");
|
|
10209
|
-
var vectorModelKey = /* @__PURE__ */ __name((model3) => {
|
|
10210
|
-
const weights = model3.custom ? model3.files.find(({ name }) => name === model3.onnx)?.sha256.slice(0, 12) : void 0;
|
|
10211
|
-
return `local:${model3.id}${weights ? `@${weights}` : ""}:${model3.dims}`;
|
|
10212
|
-
}, "vectorModelKey");
|
|
10213
|
-
var meaningFloor = /* @__PURE__ */ __name((key) => key === "local:e5-small:384" ? 0.8 : 0, "meaningFloor");
|
|
10214
|
-
|
|
10215
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@napi-rs+canvas@1.0.13_@wirecat+cli-base@0.99.0_commander@15._e11817b5a9b273e1a17561462f2db6c9/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
|
|
10216
9963
|
var HISTORY_MAX_DAYS = 1095;
|
|
10217
9964
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
10218
9965
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -10259,7 +10006,7 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
10259
10006
|
return { batch: { ...batch, messages }, skipped };
|
|
10260
10007
|
}, "limitBatch");
|
|
10261
10008
|
|
|
10262
|
-
// 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
|
|
10263
10010
|
import { readFileSync as readFileSync4 } from "node:fs";
|
|
10264
10011
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
10265
10012
|
var SECTIONS = ["personal", "bot"];
|
|
@@ -10554,20 +10301,20 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
10554
10301
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
10555
10302
|
}, "readConfigFile");
|
|
10556
10303
|
|
|
10557
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10558
|
-
import { existsSync as
|
|
10559
|
-
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";
|
|
10560
10307
|
var DEFAULT_CONFIG = {
|
|
10561
10308
|
defaults: { limit: 20, keep_runs_for_days: 30, sends_per_hour: 30, update_check: true, skill_hint: true },
|
|
10562
10309
|
profiles: {}
|
|
10563
10310
|
};
|
|
10564
10311
|
function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
10565
|
-
if (
|
|
10312
|
+
if (existsSync4(path2))
|
|
10566
10313
|
return;
|
|
10567
10314
|
const directory = dirname2(path2);
|
|
10568
10315
|
mkdirSync2(directory, { recursive: true, mode: 448 });
|
|
10569
|
-
const temporary = mkdtempSync(
|
|
10570
|
-
const candidate =
|
|
10316
|
+
const temporary = mkdtempSync(join4(directory, ".config-"));
|
|
10317
|
+
const candidate = join4(temporary, "config.json");
|
|
10571
10318
|
try {
|
|
10572
10319
|
writeFileSync(candidate, `${JSON.stringify(config, null, 2)}
|
|
10573
10320
|
`, { flag: "wx", mode: 384 });
|
|
@@ -10583,7 +10330,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
10583
10330
|
}
|
|
10584
10331
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
10585
10332
|
|
|
10586
|
-
// 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
|
|
10587
10334
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
10588
10335
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
10589
10336
|
const path2 = key.split(".");
|
|
@@ -10605,7 +10352,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
10605
10352
|
return { config, added };
|
|
10606
10353
|
}, "withSettingDefaults");
|
|
10607
10354
|
|
|
10608
|
-
// 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
|
|
10609
10356
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
10610
10357
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
10611
10358
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -10758,8 +10505,8 @@ var NoProfileHere = class extends CliError {
|
|
|
10758
10505
|
this.app = app;
|
|
10759
10506
|
}
|
|
10760
10507
|
/** `words`: the command that was typed, without its arguments, so the suggestion runs as written. */
|
|
10761
|
-
withoutSetup(
|
|
10762
|
-
const command =
|
|
10508
|
+
withoutSetup(words) {
|
|
10509
|
+
const command = words ? `${this.app.command} personal ${words}` : `${this.app.command} personal \u2026`;
|
|
10763
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: [] });
|
|
10764
10511
|
}
|
|
10765
10512
|
};
|
|
@@ -10967,7 +10714,7 @@ var settingsFor = /* @__PURE__ */ __name((app, extension = {}) => {
|
|
|
10967
10714
|
updateCheck: updateCheck.value,
|
|
10968
10715
|
skillHint: skillHint.value,
|
|
10969
10716
|
configPath,
|
|
10970
|
-
configFound:
|
|
10717
|
+
configFound: existsSync5(configPath),
|
|
10971
10718
|
configuredProfiles: namedProfiles(config),
|
|
10972
10719
|
profilesHere: profilesOf(config, env),
|
|
10973
10720
|
accountProfiles: accountsOf(config, env, bots),
|
|
@@ -11131,7 +10878,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
11131
10878
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
11132
10879
|
}, "given");
|
|
11133
10880
|
|
|
11134
|
-
// 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
|
|
11135
10882
|
var setExitCode = /* @__PURE__ */ __name((command, code) => {
|
|
11136
10883
|
const slot = environmentOf(command).exit;
|
|
11137
10884
|
const request = commandServerRequest();
|
|
@@ -11161,11 +10908,17 @@ var detailOf = /* @__PURE__ */ __name(({ brief, full }) => {
|
|
|
11161
10908
|
return brief ? { hitDetail: "brief" } : full ? { hitDetail: "full" } : {};
|
|
11162
10909
|
}, "detailOf");
|
|
11163
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");
|
|
11164
10915
|
var compactOf = /* @__PURE__ */ __name((command) => command.optsWithGlobals()[COMPACT_KEY] === true, "compactOf");
|
|
11165
10916
|
var outputFor = /* @__PURE__ */ __name((command) => {
|
|
11166
10917
|
const { streams, tty, env, agent } = environmentOf(command);
|
|
10918
|
+
const { fields: _own, ...flags } = command.optsWithGlobals();
|
|
11167
10919
|
return resolveOutput({
|
|
11168
|
-
...
|
|
10920
|
+
...flags,
|
|
10921
|
+
...outputFieldsOf(command),
|
|
11169
10922
|
...detailOf(command.optsWithGlobals()),
|
|
11170
10923
|
compact: compactOf(command),
|
|
11171
10924
|
...agent ? { capture: agent.result } : {},
|
|
@@ -11183,7 +10936,7 @@ var baseContext = /* @__PURE__ */ __name((command, resolveSettings) => {
|
|
|
11183
10936
|
env,
|
|
11184
10937
|
compact: compactOf(command),
|
|
11185
10938
|
...detailOf(command.optsWithGlobals()),
|
|
11186
|
-
...
|
|
10939
|
+
...outputFieldsOf(command),
|
|
11187
10940
|
...environment.agent ? { capture: environment.agent.result } : {},
|
|
11188
10941
|
...environment.streams ? { streams: environment.streams } : {},
|
|
11189
10942
|
...environment.tty === void 0 ? {} : { tty: environment.tty }
|
|
@@ -11255,13 +11008,13 @@ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
|
|
|
11255
11008
|
return baseContext(command, (flags, options) => resolveSettings(flags, { ...options, needsProfile: false })).run(body);
|
|
11256
11009
|
}, "inCommandRun");
|
|
11257
11010
|
var commandPath = /* @__PURE__ */ __name((command) => {
|
|
11258
|
-
const
|
|
11011
|
+
const words = [];
|
|
11259
11012
|
for (let current2 = command; current2?.parent; current2 = current2.parent)
|
|
11260
|
-
|
|
11261
|
-
return
|
|
11013
|
+
words.unshift(current2.name());
|
|
11014
|
+
return words.join(" ");
|
|
11262
11015
|
}, "commandPath");
|
|
11263
11016
|
|
|
11264
|
-
// 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
|
|
11265
11018
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
11266
11019
|
var FETCH = { remote: "read", local: "write" };
|
|
11267
11020
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -11364,10 +11117,10 @@ var refuseStoreChange = /* @__PURE__ */ __name((app, env) => {
|
|
|
11364
11117
|
throw readOnlyRefusal(lock, storeChangeRefusal(app));
|
|
11365
11118
|
}, "refuseStoreChange");
|
|
11366
11119
|
var pathOf2 = /* @__PURE__ */ __name((command) => {
|
|
11367
|
-
const
|
|
11120
|
+
const words = [];
|
|
11368
11121
|
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
11369
|
-
|
|
11370
|
-
return
|
|
11122
|
+
words.unshift(at2.name());
|
|
11123
|
+
return words;
|
|
11371
11124
|
}, "pathOf");
|
|
11372
11125
|
var changesMessenger = /* @__PURE__ */ __name((command) => {
|
|
11373
11126
|
const { path: path2, effects, lifetime, reaches } = "path" in command ? command : { path: pathOf2(command), ...metaOf(command) };
|
|
@@ -11401,8 +11154,8 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
11401
11154
|
throw readOnlyRefusal(lock, what);
|
|
11402
11155
|
}, "refuseUnderReadOnly");
|
|
11403
11156
|
|
|
11404
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11405
|
-
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";
|
|
11406
11159
|
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11407
11160
|
var IMAGE_MODELS = [
|
|
11408
11161
|
{
|
|
@@ -11452,10 +11205,10 @@ var imageModel = /* @__PURE__ */ __name((id6) => {
|
|
|
11452
11205
|
return found;
|
|
11453
11206
|
}, "imageModel");
|
|
11454
11207
|
var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
|
|
11455
|
-
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");
|
|
11456
11209
|
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11457
11210
|
|
|
11458
|
-
// 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
|
|
11459
11212
|
var STEPS2 = defineSteps([
|
|
11460
11213
|
...STEPS,
|
|
11461
11214
|
{
|
|
@@ -11692,10 +11445,10 @@ var nextStep = /* @__PURE__ */ __name((id6, input) => {
|
|
|
11692
11445
|
const args = Object.fromEntries(Object.entries(input.args ?? {}).filter(([, value]) => value !== void 0));
|
|
11693
11446
|
return stepOf(definition, { ...input, args });
|
|
11694
11447
|
}, "nextStep");
|
|
11695
|
-
var lineOf = /* @__PURE__ */ __name((command,
|
|
11448
|
+
var lineOf = /* @__PURE__ */ __name((command, words) => {
|
|
11696
11449
|
const root = rootOf2(command);
|
|
11697
11450
|
const profile = root.getOptionValue("profile");
|
|
11698
|
-
return typedCommand(root.name(),
|
|
11451
|
+
return typedCommand(root.name(), words, typeof profile === "string" && profile !== "" ? profile : void 0);
|
|
11699
11452
|
}, "lineOf");
|
|
11700
11453
|
var rootOf2 = /* @__PURE__ */ __name((command) => {
|
|
11701
11454
|
let root = command;
|
|
@@ -11745,7 +11498,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11745
11498
|
].join(" ");
|
|
11746
11499
|
}, "stepLine");
|
|
11747
11500
|
|
|
11748
|
-
// 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
|
|
11749
11502
|
var where = [{ field: "ref" }];
|
|
11750
11503
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11751
11504
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11837,7 +11590,7 @@ var STATUS_ROWS = {
|
|
|
11837
11590
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11838
11591
|
};
|
|
11839
11592
|
|
|
11840
|
-
// 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
|
|
11841
11594
|
var TEXT_CHARS = 400;
|
|
11842
11595
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11843
11596
|
var messageRow = {
|
|
@@ -12205,7 +11958,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
12205
11958
|
return lines.concat(footerOf(body)).join("\n");
|
|
12206
11959
|
}, "compactText");
|
|
12207
11960
|
|
|
12208
|
-
// 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
|
|
12209
11962
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
12210
11963
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
12211
11964
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12231,10 +11984,10 @@ var declaresRow = /* @__PURE__ */ __name((command) => {
|
|
|
12231
11984
|
return rowShapeOf(command, rows2 && entityRows(rows2)) !== GENERIC_ROW;
|
|
12232
11985
|
}, "declaresRow");
|
|
12233
11986
|
var pathOf3 = /* @__PURE__ */ __name((command) => {
|
|
12234
|
-
const
|
|
11987
|
+
const words = [];
|
|
12235
11988
|
for (let at2 = command; at2.parent; at2 = at2.parent)
|
|
12236
|
-
|
|
12237
|
-
return
|
|
11989
|
+
words.unshift(at2.name());
|
|
11990
|
+
return words.join(" ");
|
|
12238
11991
|
}, "pathOf");
|
|
12239
11992
|
var step = /* @__PURE__ */ __name((command, id6, args, why) => ({
|
|
12240
11993
|
kind: "command",
|
|
@@ -12263,7 +12016,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12263
12016
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12264
12017
|
}, "largeAnswerSteps");
|
|
12265
12018
|
|
|
12266
|
-
// 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
|
|
12267
12020
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12268
12021
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12269
12022
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12277,7 +12030,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12277
12030
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12278
12031
|
}, "strip");
|
|
12279
12032
|
|
|
12280
|
-
// 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
|
|
12281
12034
|
var OPEN = "\u27E6";
|
|
12282
12035
|
var CLOSE = "\u27E7";
|
|
12283
12036
|
var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -12361,7 +12114,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
|
|
|
12361
12114
|
return result;
|
|
12362
12115
|
}, "withFieldsMarked");
|
|
12363
12116
|
|
|
12364
|
-
// 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
|
|
12365
12118
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12366
12119
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12367
12120
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12467,9 +12220,27 @@ var withLargeAnswerStep = /* @__PURE__ */ __name((command, body) => {
|
|
|
12467
12220
|
}, "withLargeAnswerStep");
|
|
12468
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");
|
|
12469
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");
|
|
12470
12238
|
var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams, compact, full }, body, view) => {
|
|
12471
12239
|
if (!isBody(body))
|
|
12472
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 } };
|
|
12473
12244
|
const root = rootOf2(command);
|
|
12474
12245
|
const runnableSteps = runnable(root, body.next);
|
|
12475
12246
|
const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
|
|
@@ -12657,19 +12428,6 @@ export {
|
|
|
12657
12428
|
sampleCommand,
|
|
12658
12429
|
modelTarget,
|
|
12659
12430
|
parseDuration,
|
|
12660
|
-
DEFAULT_TEXT_MODEL,
|
|
12661
|
-
PREVIOUS_DEFAULT_TEXT_MODEL,
|
|
12662
|
-
CustomTextModelShape,
|
|
12663
|
-
readTextModelsSection,
|
|
12664
|
-
writeTextModelsSection,
|
|
12665
|
-
textModels,
|
|
12666
|
-
textModel,
|
|
12667
|
-
chosenTextModel,
|
|
12668
|
-
RERANK_MODELS,
|
|
12669
|
-
DEFAULT_RERANK_MODEL,
|
|
12670
|
-
rerankModel,
|
|
12671
|
-
vectorModelKey,
|
|
12672
|
-
meaningFloor,
|
|
12673
12431
|
historyWindow,
|
|
12674
12432
|
limitBatch,
|
|
12675
12433
|
botFiles,
|
|
@@ -12681,6 +12439,7 @@ export {
|
|
|
12681
12439
|
fixVerb,
|
|
12682
12440
|
issueMessage,
|
|
12683
12441
|
readConfigFile,
|
|
12442
|
+
DEFAULT_CONFIG,
|
|
12684
12443
|
accountFileFor,
|
|
12685
12444
|
rememberAccount,
|
|
12686
12445
|
recalledAccount,
|
|
@@ -12694,6 +12453,7 @@ export {
|
|
|
12694
12453
|
environmentOf,
|
|
12695
12454
|
withAgentLevels,
|
|
12696
12455
|
secretInputOf,
|
|
12456
|
+
outputFieldsOf,
|
|
12697
12457
|
outputFor,
|
|
12698
12458
|
baseContext,
|
|
12699
12459
|
inCommandRun,
|