@wirecat/notion-cli 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +5 -0
- package/contracts/wirecat.json +55 -2
- package/dist/bin/notion.js +2 -2
- package/dist/bundle/agent-ILG6AH7S.js +42 -0
- package/dist/bundle/{all-profiles-V37KCXH3.js → all-profiles-AELHUTFU.js} +64 -21
- package/dist/bundle/{anthropic-Q4S3BYXD.js → anthropic-3CCYAGO3.js} +6 -6
- package/dist/bundle/{app-server-43SR3ACI.js → app-server-DJ6P4NY4.js} +86 -65
- package/dist/bundle/{bun-M3J2QTR3.js → bun-2FLR4IV4.js} +2 -2
- package/dist/bundle/{bun-sqlite-EJ3W2PSV.js → bun-sqlite-QB6CU6TH.js} +7 -7
- package/dist/bundle/chunk-2CMLY2X3.js +72 -0
- package/dist/bundle/{chunk-NHHJHXMQ.js → chunk-2XUV7HNE.js} +2 -2
- package/dist/bundle/{chunk-HZRQLAHO.js → chunk-2Z7UOXFC.js} +1 -1
- package/dist/bundle/{chunk-TOSCB4SO.js → chunk-3LMW7U7F.js} +16 -10
- package/dist/bundle/chunk-3MYN2RMG.js +398 -0
- package/dist/bundle/{chunk-E5WLE7BM.js → chunk-3UX4VJWD.js} +1 -1
- package/dist/bundle/chunk-4HP6KGBI.js +32 -0
- package/dist/bundle/{chunk-KHWOLBHQ.js → chunk-4RFR4J2O.js} +2 -2
- package/dist/bundle/{chunk-G2MJYXZG.js → chunk-4VXXOJ2F.js} +4 -4
- package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
- package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
- package/dist/bundle/{chunk-ECC2UX7X.js → chunk-5OJLUUOJ.js} +6 -6
- package/dist/bundle/{chunk-C32AKHTY.js → chunk-5XPHFV7H.js} +35 -12
- package/dist/bundle/{chunk-O5YB7FQD.js → chunk-6EJCI47L.js} +4 -4
- package/dist/bundle/chunk-6VPC5Z56.js +2145 -0
- package/dist/bundle/{chunk-NA6QLHBZ.js → chunk-6YOMPW7Y.js} +10 -8
- package/dist/bundle/{chunk-P5BHKKBI.js → chunk-7JVKQ6NM.js} +4 -4
- package/dist/bundle/chunk-7L2XOKDZ.js +353 -0
- package/dist/bundle/{chunk-NE43YXKL.js → chunk-A42T4YX7.js} +3 -3
- package/dist/bundle/chunk-AE4VW4NB.js +50 -0
- package/dist/bundle/{chunk-FPUGMDJV.js → chunk-AV2ZJ4WX.js} +1 -1
- package/dist/bundle/{chunk-QWYMXFKM.js → chunk-AZLDR36U.js} +3 -3
- package/dist/bundle/{chunk-N2XADGL4.js → chunk-BAXNAOOL.js} +4 -4
- package/dist/bundle/{chunk-JCKWQGCD.js → chunk-BEV5LO4D.js} +110 -862
- package/dist/bundle/{chunk-UZSBGECU.js → chunk-BQBC2WIG.js} +1 -65
- package/dist/bundle/{chunk-CWXOXIWS.js → chunk-CFQQTDSA.js} +1 -1
- package/dist/bundle/chunk-CHPWBQUK.js +39 -0
- package/dist/bundle/chunk-CL3YNUCC.js +388 -0
- package/dist/bundle/{chunk-ONZVPE24.js → chunk-DGMTSDKB.js} +6 -6
- package/dist/bundle/{chunk-BWLBSQSU.js → chunk-DHVVXQEL.js} +4 -4
- package/dist/bundle/chunk-DIU2QJJF.js +785 -0
- package/dist/bundle/chunk-DQSOYH6N.js +20 -0
- package/dist/bundle/chunk-ECYOTDJM.js +14 -0
- package/dist/bundle/{chunk-DBEQI5YM.js → chunk-EHW45LLT.js} +3 -3
- package/dist/bundle/{chunk-WPP76PSX.js → chunk-ERN53B3Z.js} +32 -24
- package/dist/bundle/{chunk-XUPN2EHR.js → chunk-ESZHGC4Q.js} +23 -7
- package/dist/bundle/{chunk-3RL2MIUF.js → chunk-EZMG5QXB.js} +8 -8
- package/dist/bundle/chunk-F4BX7TH2.js +15 -0
- package/dist/bundle/{chunk-TP7GDWVF.js → chunk-F5ZAN7OC.js} +1 -1
- package/dist/bundle/{chunk-DFCHHR5M.js → chunk-FMMYBVCH.js} +1 -1
- package/dist/bundle/{chunk-E2AFUJDR.js → chunk-FRB2L7OE.js} +3 -3
- package/dist/bundle/chunk-FV4WTZCU.js +561 -0
- package/dist/bundle/{chunk-TD2JZ25O.js → chunk-G4ZU73SD.js} +98 -80
- package/dist/bundle/{chunk-FKA7DOCK.js → chunk-GCAJW4SR.js} +1 -1
- package/dist/bundle/{chunk-WE4UFASG.js → chunk-GPRJXJC7.js} +15 -1
- package/dist/bundle/chunk-GUIQJUJV.js +340 -0
- package/dist/bundle/{chunk-GTY6N5KZ.js → chunk-HHEWTLAT.js} +2 -2
- package/dist/bundle/{chunk-DB2XKHI4.js → chunk-HM6AMYHR.js} +2 -2
- package/dist/bundle/{chunk-H3E2PZ5Y.js → chunk-HOVHE3A3.js} +7 -7
- package/dist/bundle/{chunk-O3DYRCIT.js → chunk-HVXOA4FO.js} +1 -1
- package/dist/bundle/{chunk-PPHBRESD.js → chunk-IJVTN5L3.js} +2 -2
- package/dist/bundle/{chunk-FBZI4Z3Z.js → chunk-IURYZSG3.js} +13 -26
- package/dist/bundle/chunk-JFSVAOA7.js +108 -0
- package/dist/bundle/{chunk-HHVFIXDO.js → chunk-JVESLS7B.js} +399 -399
- package/dist/bundle/chunk-K5IC4FZN.js +36 -0
- package/dist/bundle/chunk-KB35BVTG.js +30 -0
- package/dist/bundle/chunk-KGAUINBO.js +594 -0
- package/dist/bundle/{chunk-W5JZMXGW.js → chunk-KNCPBX5P.js} +75 -75
- package/dist/bundle/{chunk-ECEZOLOD.js → chunk-KZJQPJK5.js} +4 -4
- package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
- package/dist/bundle/{chunk-QYXWRKNA.js → chunk-LC6WE6JS.js} +9 -9
- package/dist/bundle/{chunk-X2M6NIQG.js → chunk-LECMHK2F.js} +1 -1
- package/dist/bundle/chunk-LQVDFD65.js +72 -0
- package/dist/bundle/chunk-MEYYH47C.js +25 -0
- package/dist/bundle/chunk-NMQRSEZM.js +37 -0
- package/dist/bundle/{chunk-NTG657MI.js → chunk-NSR43UEW.js} +7 -64
- package/dist/bundle/{chunk-CDK5E45T.js → chunk-OEQNP56V.js} +2 -100
- package/dist/bundle/{chunk-MGUEZYFA.js → chunk-OLAGFJDM.js} +13 -2143
- package/dist/bundle/{chunk-PWRRDDMZ.js → chunk-P27NDZQR.js} +232 -552
- package/dist/bundle/{chunk-PAW6RRCW.js → chunk-PHKED7AG.js} +8 -210
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-RIGE67FR.js → chunk-Q7EIL6VU.js} +43 -33
- package/dist/bundle/{chunk-AT5I34AN.js → chunk-QEJFBORC.js} +3 -3
- package/dist/bundle/{chunk-RJMQGG3P.js → chunk-QGGRFRMP.js} +65 -49
- package/dist/bundle/{chunk-BNEE35WD.js → chunk-RD7BKTWV.js} +4 -4
- package/dist/bundle/chunk-RXU5T5NM.js +714 -0
- package/dist/bundle/{chunk-MVA5HVKL.js → chunk-S4UUN6LD.js} +18 -0
- package/dist/bundle/{chunk-2FJNMADN.js → chunk-SAPP2LEH.js} +10 -10
- package/dist/bundle/{chunk-QIG55MZH.js → chunk-SEAGUFBX.js} +12 -12
- package/dist/bundle/{chunk-GCZ6MAEN.js → chunk-STTO2MSY.js} +43 -64
- package/dist/bundle/{chunk-DSP36YHQ.js → chunk-T37TAXVL.js} +2 -2
- package/dist/bundle/{chunk-KHZ2RGXI.js → chunk-T6XIBULH.js} +139 -572
- package/dist/bundle/chunk-TFT4FVRU.js +67 -0
- package/dist/bundle/chunk-TRYYWV7J.js +291 -0
- package/dist/bundle/{chunk-KFVDL2QS.js → chunk-UC7JLE6J.js} +1 -89
- package/dist/bundle/{chunk-LBYGJKXW.js → chunk-UOC52GCB.js} +4 -4
- package/dist/bundle/chunk-UPL474OW.js +94 -0
- package/dist/bundle/chunk-VH7526NL.js +80 -0
- package/dist/bundle/chunk-VNWF4I7E.js +34 -0
- package/dist/bundle/chunk-W2VQDIU5.js +221 -0
- package/dist/bundle/{chunk-TDNURSU6.js → chunk-WAGADES3.js} +19 -19
- package/dist/bundle/{chunk-J3NKZ6MO.js → chunk-WAU5LSHP.js} +79 -438
- package/dist/bundle/{chunk-B3FSLAIU.js → chunk-WB2KSQIP.js} +4 -4
- package/dist/bundle/{chunk-DO7BLXO3.js → chunk-WGZH2M64.js} +3 -3
- package/dist/bundle/chunk-WVN2KTNS.js +52 -0
- package/dist/bundle/{chunk-W7HM2VGO.js → chunk-XYQVVW4R.js} +1 -1
- package/dist/bundle/{chunk-BBSFQ3PU.js → chunk-YDDI4QIT.js} +1473 -1292
- package/dist/bundle/chunk-YHWFF6DN.js +39 -0
- package/dist/bundle/{chunk-W53EJOFQ.js → chunk-YUDVRFXN.js} +1 -1
- package/dist/bundle/{chunk-MNRMKWCN.js → chunk-YXYZAWWW.js} +6 -6
- package/dist/bundle/{chunk-5P5TXU2K.js → chunk-YYQ5GKAI.js} +9509 -10782
- package/dist/bundle/chunk-ZDYEOE7L.js +2366 -0
- package/dist/bundle/command-contract-L2FASWD6.js +41 -0
- package/dist/bundle/{command-server-entry-LJ627ZUA.js → command-server-entry-VUR6WL77.js} +30 -27
- package/dist/bundle/{decode-PX2LZ5Y2.js → decode-I64PF2RM.js} +6 -6
- package/dist/bundle/{definitions-M3U4UYHN.js → definitions-MB65223J.js} +72 -18
- package/dist/bundle/{dispatch-KOISQ5QJ.js → dispatch-JQBAZWCL.js} +8 -8
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-FVTUDXDU.js → echarts-YRRVLEX3.js} +2 -2
- package/dist/bundle/{embed-CCSDK43I.js → embed-BLXLKMK2.js} +7 -7
- package/dist/bundle/{embedder-VHI4DHB7.js → embedder-JYGF6R7I.js} +10 -10
- package/dist/bundle/{failure-FZ6VYKEQ.js → failure-I6AAF5R5.js} +3 -3
- package/dist/bundle/first-run-YLDOZGY6.js +29 -0
- package/dist/bundle/first-screen-GZH3LMLZ.js +41 -0
- package/dist/bundle/hast-util-from-html-X2DCPS3T.js +10531 -0
- package/dist/bundle/hast-util-to-html-IIFHILP5.js +998 -0
- package/dist/bundle/hast-util-to-mdast-3CSMIWK2.js +2272 -0
- package/dist/bundle/{instructions-HET7BCYK.js → instructions-AG7SRWTR.js} +1 -1
- package/dist/bundle/{mcp-RGNRW77S.js → mcp-YGOAUNC3.js} +2 -2
- package/dist/bundle/{mdast-util-from-markdown-R66F4HZA.js → mdast-util-from-markdown-XCR5KW5S.js} +138 -195
- package/dist/bundle/{mdast-util-gfm-LN2ELINH.js → mdast-util-gfm-JO7PHUIB.js} +28 -357
- package/dist/bundle/mdast-util-to-hast-AYJV7KAE.js +879 -0
- package/dist/bundle/mdast-util-to-markdown-DOXGHRI7.js +1854 -0
- package/dist/bundle/meeting-combined-OFQSGKBG.js +25 -0
- package/dist/bundle/meeting-model-K6NSX3O5.js +27 -0
- package/dist/bundle/{meeting-semantic-UD26T37N.js → meeting-semantic-3DZPHM7L.js} +7 -7
- package/dist/bundle/{micromark-extension-gfm-5X7YT43T.js → micromark-extension-gfm-PQ7DWZM7.js} +12 -78
- package/dist/bundle/{node-CXZIFHZC.js → node-GJQYN4FT.js} +2 -2
- package/dist/bundle/{node-sqlite-ME7KMORI.js → node-sqlite-7VXIRQPH.js} +8 -8
- package/dist/bundle/notes-search-ACDOPTNH.js +64 -0
- package/dist/bundle/notion.js +14 -14
- package/dist/bundle/oauth-N67CH2TK.js +20 -0
- package/dist/bundle/{open-HA6D3SXR.js → open-JGXVHIKO.js} +6 -6
- package/dist/bundle/{openai-H5AJPZBX.js → openai-PFQJTF4H.js} +21 -18
- package/dist/bundle/{process-5RUXWGYS.js → process-MEKCZMX3.js} +1 -1
- package/dist/bundle/{program-F3NBTZ7J.js → program-DUJYLJH5.js} +6373 -6588
- package/dist/bundle/{prompt-6XSUOLHK.js → prompt-FW44QDHD.js} +6 -6
- package/dist/bundle/{recognize-2Y7AUVGG.js → recognize-62TDQ6A7.js} +5 -5
- package/dist/bundle/{remote-KCABPXQ3.js → remote-7ONFD7GG.js} +12 -11
- package/dist/bundle/{rerank-BTN7LUVA.js → rerank-YOHQQJS4.js} +8 -8
- package/dist/bundle/{schemas-VVLTLMXS.js → schemas-IIGJ7DOP.js} +39 -60
- package/dist/bundle/{serve-CYEMVRFC.js → serve-ZCXGT5RB.js} +11 -11
- package/dist/bundle/{server-WFIICGMI.js → server-RQ74M637.js} +78 -56
- package/dist/bundle/server-XMZF57WM.js +90 -0
- package/dist/bundle/{services-L4W6ZWDG.js → services-FWBRZ57M.js} +103 -88
- package/dist/bundle/{sqlite-runtime-IKMYLRQC.js → sqlite-runtime-ZZBNGV5L.js} +7 -7
- package/dist/bundle/{state-LMUP636P.js → state-GDDFO62Y.js} +7 -7
- package/dist/bundle/{store-W2JC2JP4.js → store-D2LRIWEI.js} +24 -20
- package/dist/bundle/{store-A2QZFBOX.js → store-KQCLR57N.js} +30 -18
- package/dist/bundle/store-maintenance-command-CK2MU5M6.js +77 -0
- package/dist/bundle/surface-K4TPIQW7.js +76 -0
- package/dist/commands/account.d.ts +3 -0
- package/dist/commands/account.d.ts.map +1 -0
- package/dist/commands/account.js +22 -0
- package/dist/commands/account.js.map +1 -0
- package/dist/commands/api.d.ts +7 -2
- package/dist/commands/api.d.ts.map +1 -1
- package/dist/commands/api.js +19 -119
- package/dist/commands/api.js.map +1 -1
- package/dist/commands/library.d.ts.map +1 -1
- package/dist/commands/library.js +8 -2
- package/dist/commands/library.js.map +1 -1
- package/dist/config.d.ts +11 -13
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +63 -54
- package/dist/config.js.map +1 -1
- package/dist/generated/definitions.d.ts.map +1 -1
- package/dist/generated/definitions.js +72 -18
- package/dist/generated/definitions.js.map +1 -1
- package/dist/generated/manifest.d.ts.map +1 -1
- package/dist/generated/manifest.js +49 -0
- package/dist/generated/manifest.js.map +1 -1
- package/dist/generated/schemas.d.ts.map +1 -1
- package/dist/generated/schemas.js +32 -32
- package/dist/generated/schemas.js.map +1 -1
- package/dist/generated/types.d.ts +125 -25
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/library.d.ts +8 -0
- package/dist/library.d.ts.map +1 -1
- package/dist/library.js +24 -1
- package/dist/library.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -0
- package/dist/program.js.map +1 -1
- package/dist/sync/files.d.ts +12 -0
- package/dist/sync/files.d.ts.map +1 -1
- package/dist/sync/files.js.map +1 -1
- package/dist/sync/source.d.ts.map +1 -1
- package/dist/sync/source.js +53 -37
- package/dist/sync/source.js.map +1 -1
- package/dist/sync/users.d.ts +15 -2
- package/dist/sync/users.d.ts.map +1 -1
- package/dist/sync/users.js +36 -1
- package/dist/sync/users.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
- package/dist/bundle/chunk-6EOZTUHT.js +0 -726
- package/dist/bundle/command-contract-TVRFW2IX.js +0 -38
- package/dist/bundle/first-run-7JKE5AHN.js +0 -29
- package/dist/bundle/first-screen-ZROHOEYJ.js +0 -38
- package/dist/bundle/meeting-combined-SSTOJUIJ.js +0 -24
- package/dist/bundle/meeting-model-K7TPS4S5.js +0 -26
- package/dist/bundle/oauth-XBTROXHB.js +0 -20
- package/dist/bundle/server-UC2FNNXX.js +0 -72
- package/dist/bundle/store-maintenance-command-LRGQJPSZ.js +0 -63
|
@@ -9,20 +9,32 @@ import {
|
|
|
9
9
|
providerErrorKey,
|
|
10
10
|
renderEvent,
|
|
11
11
|
runContextOf
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-6YOMPW7Y.js";
|
|
13
13
|
import {
|
|
14
14
|
permissionCeiling
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-QEJFBORC.js";
|
|
16
|
+
import {
|
|
17
|
+
IMAGE_MODELS,
|
|
18
|
+
ancestorValue,
|
|
19
|
+
envName,
|
|
20
|
+
modelSettingsShape,
|
|
21
|
+
readOnlyLockOf,
|
|
22
|
+
readOnlyRefusal,
|
|
23
|
+
resolveModelSettings,
|
|
24
|
+
runBudget,
|
|
25
|
+
stopWrites,
|
|
26
|
+
withWriteScope
|
|
27
|
+
} from "./chunk-3MYN2RMG.js";
|
|
16
28
|
import {
|
|
17
29
|
DEFAULT_RERANK_MODEL,
|
|
18
30
|
RERANK_MODELS
|
|
19
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-DGMTSDKB.js";
|
|
20
32
|
import {
|
|
21
33
|
carries
|
|
22
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-YUDVRFXN.js";
|
|
23
35
|
import {
|
|
24
36
|
note
|
|
25
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-DHVVXQEL.js";
|
|
26
38
|
import {
|
|
27
39
|
BUSINESS_KINDS,
|
|
28
40
|
CATEGORIES,
|
|
@@ -34,11 +46,8 @@ import {
|
|
|
34
46
|
FINANCE_REVIEWS,
|
|
35
47
|
INVOICE_DIRECTIONS,
|
|
36
48
|
INVOICE_STATUSES,
|
|
37
|
-
KEEP_STORE_RUNS_FOR_DAYS,
|
|
38
|
-
KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
39
49
|
LINK_KINDS,
|
|
40
50
|
LINK_SOURCES,
|
|
41
|
-
LOG_ATTRIBUTES,
|
|
42
51
|
MEMORY_KINDS,
|
|
43
52
|
MEMORY_SCOPES,
|
|
44
53
|
MEMORY_STATUSES,
|
|
@@ -47,7 +56,6 @@ import {
|
|
|
47
56
|
ORDER_STATUSES,
|
|
48
57
|
PRIORITY_LABELS,
|
|
49
58
|
RELATION_KINDS,
|
|
50
|
-
RUNS_SIZE_LIMIT_MB,
|
|
51
59
|
STANDINGS,
|
|
52
60
|
TASK_KINDS,
|
|
53
61
|
TASK_ORIGINS,
|
|
@@ -56,38 +64,44 @@ import {
|
|
|
56
64
|
TASK_VERDICTS,
|
|
57
65
|
WORK_TASK_TYPES,
|
|
58
66
|
author,
|
|
59
|
-
childTrace,
|
|
60
67
|
count,
|
|
61
|
-
currentRun,
|
|
62
|
-
enclosingTraceId,
|
|
63
68
|
evidenceSource,
|
|
64
69
|
id,
|
|
65
|
-
inRun,
|
|
66
|
-
logAttributes,
|
|
67
70
|
markStoreDamaged,
|
|
68
|
-
newRunId,
|
|
69
71
|
organization,
|
|
70
72
|
project,
|
|
71
73
|
providerMetadata,
|
|
72
74
|
reminder,
|
|
73
|
-
runsDirFor,
|
|
74
|
-
snakeLogger,
|
|
75
75
|
sourceReview,
|
|
76
|
-
startRun,
|
|
77
76
|
text,
|
|
78
77
|
time,
|
|
78
|
+
untrusted
|
|
79
|
+
} from "./chunk-DIU2QJJF.js";
|
|
80
|
+
import {
|
|
81
|
+
KEEP_STORE_RUNS_FOR_DAYS,
|
|
82
|
+
KEEP_SUCCESSFUL_RUNS_FOR_DAYS,
|
|
83
|
+
LOG_ATTRIBUTES,
|
|
84
|
+
RUNS_SIZE_LIMIT_MB,
|
|
85
|
+
childTrace,
|
|
86
|
+
currentRun,
|
|
87
|
+
enclosingTraceId,
|
|
88
|
+
inRun,
|
|
89
|
+
logAttributes,
|
|
90
|
+
newRunId,
|
|
91
|
+
runsDirFor,
|
|
92
|
+
snakeLogger,
|
|
93
|
+
startRun,
|
|
79
94
|
traceOf,
|
|
80
95
|
typedCommand,
|
|
81
|
-
untrusted,
|
|
82
96
|
useAsProcessRun
|
|
83
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-BEV5LO4D.js";
|
|
84
98
|
import {
|
|
85
99
|
isCliFailure,
|
|
86
100
|
storeDamaged
|
|
87
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-LQVDFD65.js";
|
|
88
102
|
import {
|
|
89
103
|
TAG_TYPES
|
|
90
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-T37TAXVL.js";
|
|
91
105
|
import {
|
|
92
106
|
FACT_TYPES,
|
|
93
107
|
FIELD_TYPES,
|
|
@@ -115,21 +129,17 @@ import {
|
|
|
115
129
|
parseLucene,
|
|
116
130
|
readsZone,
|
|
117
131
|
timezoneOf
|
|
118
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-JVESLS7B.js";
|
|
119
133
|
import {
|
|
120
134
|
endpoint
|
|
121
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-FRB2L7OE.js";
|
|
122
136
|
import {
|
|
123
137
|
repairConfigText,
|
|
124
138
|
sharedConfigPath
|
|
125
|
-
} from "./chunk-
|
|
126
|
-
import {
|
|
127
|
-
filesPresent,
|
|
128
|
-
sharedModelsDirectory
|
|
129
|
-
} from "./chunk-BNEE35WD.js";
|
|
139
|
+
} from "./chunk-HOVHE3A3.js";
|
|
130
140
|
import {
|
|
131
141
|
storePath
|
|
132
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-HHEWTLAT.js";
|
|
133
143
|
import {
|
|
134
144
|
configFilePath,
|
|
135
145
|
createRecordLog,
|
|
@@ -141,7 +151,7 @@ import {
|
|
|
141
151
|
resolvePaths,
|
|
142
152
|
saveConfigFile,
|
|
143
153
|
writeSecurely
|
|
144
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-KNCPBX5P.js";
|
|
145
155
|
import {
|
|
146
156
|
COMPACT_FLAG,
|
|
147
157
|
MAX_NEXT_STEPS,
|
|
@@ -158,12 +168,11 @@ import {
|
|
|
158
168
|
reference,
|
|
159
169
|
stepOf,
|
|
160
170
|
writes
|
|
161
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-3LMW7U7F.js";
|
|
162
172
|
import {
|
|
163
173
|
array,
|
|
164
174
|
boolean,
|
|
165
175
|
check,
|
|
166
|
-
getDotPath,
|
|
167
176
|
integer,
|
|
168
177
|
isoDate,
|
|
169
178
|
lazy,
|
|
@@ -195,72 +204,17 @@ import {
|
|
|
195
204
|
unknown,
|
|
196
205
|
unwrap,
|
|
197
206
|
variant
|
|
198
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-S4UUN6LD.js";
|
|
199
208
|
import {
|
|
200
209
|
CliError,
|
|
201
|
-
isCliError,
|
|
202
210
|
singleLine,
|
|
203
211
|
visibleControls
|
|
204
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-HM6AMYHR.js";
|
|
205
213
|
import {
|
|
206
214
|
__name
|
|
207
215
|
} from "./chunk-ZVVMGPBJ.js";
|
|
208
216
|
|
|
209
|
-
// node_modules/.pnpm/@wirecat+cli-
|
|
210
|
-
import { readFileSync } from "node:fs";
|
|
211
|
-
var envName = /* @__PURE__ */ __name((app, name) => `${app.envPrefix}_${name}`, "envName");
|
|
212
|
-
var locking = /* @__PURE__ */ __name((value) => value !== void 0 && value.trim() !== "" && value !== "0", "locking");
|
|
213
|
-
var ancestries = /* @__PURE__ */ new Map();
|
|
214
|
-
var readable = /* @__PURE__ */ __name((read, path2) => {
|
|
215
|
-
try {
|
|
216
|
-
return read(path2);
|
|
217
|
-
} catch (error) {
|
|
218
|
-
if (error.code === "EACCES")
|
|
219
|
-
return void 0;
|
|
220
|
-
throw error;
|
|
221
|
-
}
|
|
222
|
-
}, "readable");
|
|
223
|
-
var ancestorEnvironments = /* @__PURE__ */ __name(({ read = /* @__PURE__ */ __name((path2) => readFileSync(path2, "utf8"), "read"), from = process.ppid, uid = process.getuid?.() ?? -1, cache = ancestries } = {}) => {
|
|
224
|
-
if (process.platform !== "linux")
|
|
225
|
-
return [];
|
|
226
|
-
const key = `${from}:${uid}`;
|
|
227
|
-
const known = cache.get(key);
|
|
228
|
-
if (known !== void 0)
|
|
229
|
-
return known;
|
|
230
|
-
let found = [];
|
|
231
|
-
try {
|
|
232
|
-
for (let pid = from, depth = 0; pid >= 1 && depth < 64; depth++) {
|
|
233
|
-
const status2 = read(`/proc/${pid}/status`);
|
|
234
|
-
const field = /* @__PURE__ */ __name((name) => new RegExp(`^${name}:\\s*(\\d+)`, "m").exec(status2)?.[1], "field");
|
|
235
|
-
if (Number(field("Uid")) !== uid)
|
|
236
|
-
break;
|
|
237
|
-
const environ = readable(read, `/proc/${pid}/environ`);
|
|
238
|
-
if (environ === void 0)
|
|
239
|
-
break;
|
|
240
|
-
found.push(environ.split("\0"));
|
|
241
|
-
pid = Number(field("PPid"));
|
|
242
|
-
}
|
|
243
|
-
} catch {
|
|
244
|
-
found = null;
|
|
245
|
-
}
|
|
246
|
-
cache.set(key, found);
|
|
247
|
-
return found;
|
|
248
|
-
}, "ancestorEnvironments");
|
|
249
|
-
var valuesOf = /* @__PURE__ */ __name((environments2, name) => environments2.flatMap((environ) => environ.filter((entry) => entry.startsWith(`${name}=`)).map((entry) => entry.slice(name.length + 1))), "valuesOf");
|
|
250
|
-
var lockedByAncestor = /* @__PURE__ */ __name((name, ancestry = {}) => {
|
|
251
|
-
const environments2 = ancestorEnvironments(ancestry);
|
|
252
|
-
return environments2 === null || valuesOf(environments2, name).some(locking);
|
|
253
|
-
}, "lockedByAncestor");
|
|
254
|
-
var ancestorValue = /* @__PURE__ */ __name((name, env, ancestry = {}) => valuesOf(ancestorEnvironments(ancestry) ?? [], name).at(-1) ?? env[name], "ancestorValue");
|
|
255
|
-
var readOnlyLockOf = /* @__PURE__ */ __name((app, env) => {
|
|
256
|
-
const name = envName(app, "READ_ONLY");
|
|
257
|
-
return locking(env[name]) || lockedByAncestor(name) ? name : void 0;
|
|
258
|
-
}, "readOnlyLockOf");
|
|
259
|
-
var mailHolderVariable = /* @__PURE__ */ __name((app) => envName(app, "MAIL_HOLDER"), "mailHolderVariable");
|
|
260
|
-
var MESSENGER_CHANGE_REFUSAL = "send, react, change chats or change the account";
|
|
261
|
-
var readOnlyRefusal = /* @__PURE__ */ __name((lock, what) => new CliError("permission_error", `this process is read-only (${lock}) \u2014 it cannot ${what}`), "readOnlyRefusal");
|
|
262
|
-
|
|
263
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.109.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
|
|
217
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/registry.js
|
|
264
218
|
var labels = /* @__PURE__ */ new WeakMap();
|
|
265
219
|
var annotate = /* @__PURE__ */ __name((command, meta) => {
|
|
266
220
|
labels.set(command, { ...labels.get(command), ...meta });
|
|
@@ -280,8 +234,8 @@ var snake = /* @__PURE__ */ __name((name) => name.replace(/[A-Z]/g, (letter) =>
|
|
|
280
234
|
var stepTargets = /* @__PURE__ */ __name((root) => {
|
|
281
235
|
const found = /* @__PURE__ */ new Map();
|
|
282
236
|
const optionName = /* @__PURE__ */ __name((option) => snake((option.long ?? option.attributeName()).replace(/^--/, "")), "optionName");
|
|
283
|
-
const visit2 = /* @__PURE__ */ __name((command,
|
|
284
|
-
const path2 = [...
|
|
237
|
+
const visit2 = /* @__PURE__ */ __name((command, parents, above) => {
|
|
238
|
+
const path2 = [...parents, command.name()];
|
|
285
239
|
const options = [...above, ...command.options];
|
|
286
240
|
const { effects } = metaOf(command);
|
|
287
241
|
found.set(path2.join(" "), {
|
|
@@ -303,8 +257,8 @@ var describeAlone = /* @__PURE__ */ __name((command, known) => {
|
|
|
303
257
|
}
|
|
304
258
|
return found;
|
|
305
259
|
}, "describeAlone");
|
|
306
|
-
var describe = /* @__PURE__ */ __name((command, cli,
|
|
307
|
-
const path2 = [...
|
|
260
|
+
var describe = /* @__PURE__ */ __name((command, cli, parents, above, known) => {
|
|
261
|
+
const path2 = [...parents, command.name()];
|
|
308
262
|
const args = command.registeredArguments.map(describeArgument);
|
|
309
263
|
const options = describeOptions(command);
|
|
310
264
|
const { origin = "handwritten", query, mcp, offline, ...meta } = metaOf(command);
|
|
@@ -3761,7 +3715,7 @@ __name(useColor, "useColor");
|
|
|
3761
3715
|
// node_modules/.pnpm/commander@15.0.0/node_modules/commander/index.js
|
|
3762
3716
|
var program = new Command();
|
|
3763
3717
|
|
|
3764
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3718
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/document.js
|
|
3765
3719
|
var argumentInfoSchema = object({
|
|
3766
3720
|
name: string(),
|
|
3767
3721
|
required: boolean(),
|
|
@@ -3835,7 +3789,7 @@ var commandsDocumentSchema = strictObject({
|
|
|
3835
3789
|
exit_codes: record(string(), pipe(number(), integer()))
|
|
3836
3790
|
});
|
|
3837
3791
|
|
|
3838
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3792
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/contracts.js
|
|
3839
3793
|
import { isDeepStrictEqual } from "node:util";
|
|
3840
3794
|
var protectedCommands = /* @__PURE__ */ new WeakMap();
|
|
3841
3795
|
var hasSharedContract = /* @__PURE__ */ __name((command) => protectedCommands.has(command), "hasSharedContract");
|
|
@@ -3945,7 +3899,7 @@ var sharedCommand = /* @__PURE__ */ __name((factory) => (...args) => {
|
|
|
3945
3899
|
return result;
|
|
3946
3900
|
}, "sharedCommand");
|
|
3947
3901
|
|
|
3948
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
3902
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/commands/index.js
|
|
3949
3903
|
var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
3950
3904
|
let command = root;
|
|
3951
3905
|
const path2 = [];
|
|
@@ -3963,9 +3917,16 @@ var refuseJoinedPath = /* @__PURE__ */ __name((root, args, prefix = []) => {
|
|
|
3963
3917
|
}
|
|
3964
3918
|
}, "refuseJoinedPath");
|
|
3965
3919
|
|
|
3966
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3920
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/sends/permissions.js
|
|
3967
3921
|
var LEVELS = ["deny", "readonly", "ask", "allow"];
|
|
3968
|
-
var DANGEROUS = /* @__PURE__ */ new Set([
|
|
3922
|
+
var DANGEROUS = /* @__PURE__ */ new Set([
|
|
3923
|
+
"messages.delete",
|
|
3924
|
+
"messages.scheduled.cancel",
|
|
3925
|
+
"bot.messages.delete",
|
|
3926
|
+
"topics.delete",
|
|
3927
|
+
"chats.delete",
|
|
3928
|
+
"chats.clear"
|
|
3929
|
+
]);
|
|
3969
3930
|
var skipFlagFor = /* @__PURE__ */ __name((key) => DANGEROUS.has(key) ? "--allow-dangerous" : "--yes", "skipFlagFor");
|
|
3970
3931
|
var DEFAULT_PERMISSIONS = {
|
|
3971
3932
|
// Owner, 2026-11-14: deleting a message does not ask; a profile that wants the question sets `ask`.
|
|
@@ -4186,6 +4147,9 @@ var NAMED_WRITE_KEYS = [
|
|
|
4186
4147
|
"messages.sync-first",
|
|
4187
4148
|
"messages.server-search",
|
|
4188
4149
|
"messages.press",
|
|
4150
|
+
"messages.scheduled.cancel",
|
|
4151
|
+
"messages.scheduled.edit",
|
|
4152
|
+
"messages.scheduled.send",
|
|
4189
4153
|
"chats.start",
|
|
4190
4154
|
"chats.app",
|
|
4191
4155
|
"stats.messages.counters.sync",
|
|
@@ -4389,7 +4353,7 @@ var assertRetentionEvidenceRead = /* @__PURE__ */ __name((permissions) => {
|
|
|
4389
4353
|
}
|
|
4390
4354
|
}, "assertRetentionEvidenceRead");
|
|
4391
4355
|
|
|
4392
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4356
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/command-server-request.js
|
|
4393
4357
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
4394
4358
|
var requests = new AsyncLocalStorage();
|
|
4395
4359
|
var inCommandServerRequest = /* @__PURE__ */ __name((request, work) => requests.run(request, work), "inCommandServerRequest");
|
|
@@ -4404,113 +4368,7 @@ var exitCodeSet = /* @__PURE__ */ __name(() => {
|
|
|
4404
4368
|
return direct;
|
|
4405
4369
|
}, "exitCodeSet");
|
|
4406
4370
|
|
|
4407
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4408
|
-
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
4409
|
-
var sentIds = /* @__PURE__ */ __name((typed2, message2) => ({
|
|
4410
|
-
messageId: message2.id,
|
|
4411
|
-
...message2.chatId && message2.chatId !== typed2 ? { resultChatId: message2.chatId } : {}
|
|
4412
|
-
}), "sentIds");
|
|
4413
|
-
var current = new AsyncLocalStorage2();
|
|
4414
|
-
var writesInFlight = new AsyncLocalStorage2();
|
|
4415
|
-
var parents = /* @__PURE__ */ new WeakMap();
|
|
4416
|
-
var stopped = /* @__PURE__ */ new WeakMap();
|
|
4417
|
-
var scopesFor = /* @__PURE__ */ __name((scope = writesInFlight.getStore()) => {
|
|
4418
|
-
const result = [];
|
|
4419
|
-
for (let at2 = scope; at2; at2 = parents.get(at2))
|
|
4420
|
-
result.push(at2);
|
|
4421
|
-
return result;
|
|
4422
|
-
}, "scopesFor");
|
|
4423
|
-
var withWriteScope = /* @__PURE__ */ __name((scope, body) => {
|
|
4424
|
-
const parent = writesInFlight.getStore();
|
|
4425
|
-
if (parent && parent !== scope)
|
|
4426
|
-
parents.set(scope, parent);
|
|
4427
|
-
return writesInFlight.run(scope, body);
|
|
4428
|
-
}, "withWriteScope");
|
|
4429
|
-
var stopWrites = /* @__PURE__ */ __name((scope, reason) => {
|
|
4430
|
-
stopped.set(scope, reason);
|
|
4431
|
-
for (const write of scope)
|
|
4432
|
-
write.cut();
|
|
4433
|
-
}, "stopWrites");
|
|
4434
|
-
var refuseStopped = /* @__PURE__ */ __name((scopes3) => {
|
|
4435
|
-
for (const scope of scopes3)
|
|
4436
|
-
if (stopped.has(scope))
|
|
4437
|
-
throw stopped.get(scope);
|
|
4438
|
-
}, "refuseStopped");
|
|
4439
|
-
var currentOperation = /* @__PURE__ */ __name(() => current.getStore(), "currentOperation");
|
|
4440
|
-
var guardedWrite = /* @__PURE__ */ __name(async (guard, attempt, act, settled2 = () => ({}), prepare) => {
|
|
4441
|
-
const scopes3 = scopesFor();
|
|
4442
|
-
refuseStopped(scopes3);
|
|
4443
|
-
try {
|
|
4444
|
-
await guard.ask?.(attempt);
|
|
4445
|
-
refuseStopped(scopes3);
|
|
4446
|
-
if (guard.reserve) {
|
|
4447
|
-
guard.check(attempt, { reserve: false });
|
|
4448
|
-
await guard.reserve(attempt);
|
|
4449
|
-
} else
|
|
4450
|
-
guard.check(attempt);
|
|
4451
|
-
} catch (error) {
|
|
4452
|
-
guard.record({ ...attempt, outcome: "refused", errorCode: codeOf(error) });
|
|
4453
|
-
throw error;
|
|
4454
|
-
}
|
|
4455
|
-
try {
|
|
4456
|
-
refuseStopped(scopes3);
|
|
4457
|
-
} catch (error) {
|
|
4458
|
-
guard.record({ ...attempt, outcome: "failed", errorCode: codeOf(error) });
|
|
4459
|
-
throw error;
|
|
4460
|
-
}
|
|
4461
|
-
let recorded2 = false;
|
|
4462
|
-
const once = /* @__PURE__ */ __name((entry) => {
|
|
4463
|
-
if (recorded2)
|
|
4464
|
-
return;
|
|
4465
|
-
recorded2 = true;
|
|
4466
|
-
guard.record(entry);
|
|
4467
|
-
}, "once");
|
|
4468
|
-
let cancelled = false;
|
|
4469
|
-
const flight = {
|
|
4470
|
-
operationId: attempt.operationId,
|
|
4471
|
-
preparing: prepare !== void 0,
|
|
4472
|
-
cut: /* @__PURE__ */ __name(() => {
|
|
4473
|
-
cancelled = true;
|
|
4474
|
-
once({
|
|
4475
|
-
...attempt,
|
|
4476
|
-
outcome: flight.preparing ? "failed" : "outcome_unknown",
|
|
4477
|
-
errorCode: flight.preparing ? "timeout" : "outcome_unknown"
|
|
4478
|
-
});
|
|
4479
|
-
}, "cut")
|
|
4480
|
-
};
|
|
4481
|
-
for (const scope of scopes3)
|
|
4482
|
-
scope.add(flight);
|
|
4483
|
-
try {
|
|
4484
|
-
if (prepare !== void 0)
|
|
4485
|
-
await prepare();
|
|
4486
|
-
if (cancelled)
|
|
4487
|
-
throw new CliError("timeout", "the command ended before sending; nothing was sent", { sent: false });
|
|
4488
|
-
flight.preparing = false;
|
|
4489
|
-
const done = await current.run(attempt.operationId, act);
|
|
4490
|
-
if (cancelled)
|
|
4491
|
-
throw new CliError("outcome_unknown", "the command ended with a write in flight; check its result before continuing", { operation_id: attempt.operationId });
|
|
4492
|
-
once({ ...attempt, ...settled2(done), outcome: "sent" });
|
|
4493
|
-
return done;
|
|
4494
|
-
} catch (error) {
|
|
4495
|
-
const code = codeOf(error);
|
|
4496
|
-
once({ ...attempt, outcome: code === "outcome_unknown" ? "outcome_unknown" : "failed", errorCode: code });
|
|
4497
|
-
if (code === "outcome_unknown" && error instanceof Error)
|
|
4498
|
-
throw new CliError("outcome_unknown", error.message, {
|
|
4499
|
-
...error.details,
|
|
4500
|
-
operation_id: attempt.operationId,
|
|
4501
|
-
retryable: false
|
|
4502
|
-
});
|
|
4503
|
-
if (flight.preparing && isCliError(error) && error.details.sent === void 0)
|
|
4504
|
-
throw new CliError(error.code, error.message, { ...error.details, sent: false });
|
|
4505
|
-
throw error;
|
|
4506
|
-
} finally {
|
|
4507
|
-
for (const scope of scopes3)
|
|
4508
|
-
scope.delete(flight);
|
|
4509
|
-
}
|
|
4510
|
-
}, "guardedWrite");
|
|
4511
|
-
var codeOf = /* @__PURE__ */ __name((error) => typeof error?.code === "string" ? error.code : "unknown", "codeOf");
|
|
4512
|
-
|
|
4513
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
4371
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/result-fields.js
|
|
4514
4372
|
var named = /* @__PURE__ */ __name((work) => {
|
|
4515
4373
|
try {
|
|
4516
4374
|
return work();
|
|
@@ -4537,7 +4395,7 @@ var projectFields2 = /* @__PURE__ */ __name((value, fields) => named(() => {
|
|
|
4537
4395
|
return projectFields(value, fields);
|
|
4538
4396
|
}), "projectFields");
|
|
4539
4397
|
|
|
4540
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/execution.js
|
|
4541
4399
|
var DEFAULT_COMMAND_MS = 3e4;
|
|
4542
4400
|
var DEFAULT_COOPERATIVE_MS = 5 * 6e4;
|
|
4543
4401
|
var DEFAULT_SYNC_MS = 15 * 6e4;
|
|
@@ -4720,15 +4578,15 @@ var withAbort = /* @__PURE__ */ __name(async (signal, body) => {
|
|
|
4720
4578
|
}
|
|
4721
4579
|
}, "withAbort");
|
|
4722
4580
|
|
|
4723
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4724
|
-
import { existsSync, readdirSync, readFileSync
|
|
4581
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/messenger/accounts.js
|
|
4582
|
+
import { existsSync, readdirSync, readFileSync } from "node:fs";
|
|
4725
4583
|
import { join } from "node:path";
|
|
4726
4584
|
var accountFileFor = /* @__PURE__ */ __name((app, profile, env) => join(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "accounts", `${profile}.json`), "accountFileFor");
|
|
4727
4585
|
var rememberAccount = /* @__PURE__ */ __name((app, profile, id6, env) => writeSecurely(accountFileFor(app, profile, env), `${JSON.stringify({ account: id6 })}
|
|
4728
4586
|
`, 384), "rememberAccount");
|
|
4729
4587
|
var recalledAccount = /* @__PURE__ */ __name((app, provider, profile, env) => {
|
|
4730
4588
|
try {
|
|
4731
|
-
const { account: account2 } = JSON.parse(
|
|
4589
|
+
const { account: account2 } = JSON.parse(readFileSync(accountFileFor(app, profile, env), "utf8"));
|
|
4732
4590
|
return typeof account2 === "string" ? { provider, account: account2 } : void 0;
|
|
4733
4591
|
} catch {
|
|
4734
4592
|
return void 0;
|
|
@@ -4742,64 +4600,7 @@ var profilesWithAccounts = /* @__PURE__ */ __name((app, env) => {
|
|
|
4742
4600
|
}, "profilesWithAccounts");
|
|
4743
4601
|
var profilesHere = /* @__PURE__ */ __name((app, configured, env) => [.../* @__PURE__ */ new Set([...configured, ...profilesWithAccounts(app, env)])].sort(), "profilesHere");
|
|
4744
4602
|
|
|
4745
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4746
|
-
var DEADLINE_MARGIN_MS = 5e3;
|
|
4747
|
-
var DEADLINE_MARGIN_SHARE = 0.15;
|
|
4748
|
-
var DEFAULT_REQUEST_MS = 2e3;
|
|
4749
|
-
var ANSWER_RESERVE_MS = 500;
|
|
4750
|
-
var oneMoreFits = /* @__PURE__ */ __name((deadline, at2, requestMs = DEFAULT_REQUEST_MS) => deadline !== void 0 && at2 + requestMs + ANSWER_RESERVE_MS < deadline.endsAt, "oneMoreFits");
|
|
4751
|
-
var deadlineMargin = /* @__PURE__ */ __name((deadline) => Math.max(DEADLINE_MARGIN_MS, deadline.ms * DEADLINE_MARGIN_SHARE), "deadlineMargin");
|
|
4752
|
-
var requestsFor = /* @__PURE__ */ __name((deadline, requestMs = DEFAULT_REQUEST_MS) => deadline === void 0 ? null : Math.max(1, Math.floor((deadline.ms - deadlineMargin(deadline)) / requestMs)), "requestsFor");
|
|
4753
|
-
var runBudget = /* @__PURE__ */ __name(({ requests: requests2, deadline, requestMs, signal, now = Date.now } = {}) => {
|
|
4754
|
-
const fits = requestsFor(deadline, requestMs);
|
|
4755
|
-
const limit = fits === null ? requests2 ?? null : Math.min(fits, requests2 ?? fits);
|
|
4756
|
-
const margin = deadline ? deadlineMargin(deadline) : 0;
|
|
4757
|
-
let used = 0;
|
|
4758
|
-
let granted = false;
|
|
4759
|
-
let stopped2 = null;
|
|
4760
|
-
let last;
|
|
4761
|
-
let slowest = 0;
|
|
4762
|
-
return {
|
|
4763
|
-
take() {
|
|
4764
|
-
if (stopped2)
|
|
4765
|
-
return stopped2;
|
|
4766
|
-
const at2 = now();
|
|
4767
|
-
if (last !== void 0)
|
|
4768
|
-
slowest = Math.max(slowest, at2 - last);
|
|
4769
|
-
if (signal?.aborted)
|
|
4770
|
-
stopped2 = "cancelled";
|
|
4771
|
-
else if (limit !== null && used >= limit)
|
|
4772
|
-
stopped2 = "requests";
|
|
4773
|
-
else if (deadline && at2 + margin + slowest >= deadline.endsAt)
|
|
4774
|
-
stopped2 = "deadline";
|
|
4775
|
-
if (stopped2)
|
|
4776
|
-
return stopped2;
|
|
4777
|
-
used += 1;
|
|
4778
|
-
last = at2;
|
|
4779
|
-
return null;
|
|
4780
|
-
},
|
|
4781
|
-
first() {
|
|
4782
|
-
if (granted || used > 0 || stopped2 !== "deadline")
|
|
4783
|
-
return false;
|
|
4784
|
-
const at2 = now();
|
|
4785
|
-
if (!oneMoreFits(deadline, at2, Math.max(requestMs ?? DEFAULT_REQUEST_MS, slowest)))
|
|
4786
|
-
return false;
|
|
4787
|
-
granted = true;
|
|
4788
|
-
used += 1;
|
|
4789
|
-
last = at2;
|
|
4790
|
-
return true;
|
|
4791
|
-
},
|
|
4792
|
-
get used() {
|
|
4793
|
-
return used;
|
|
4794
|
-
},
|
|
4795
|
-
limit,
|
|
4796
|
-
get stopped() {
|
|
4797
|
-
return stopped2;
|
|
4798
|
-
}
|
|
4799
|
-
};
|
|
4800
|
-
}, "runBudget");
|
|
4801
|
-
|
|
4802
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
4603
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/output-detail.js
|
|
4803
4604
|
var RARELY_SET = ["editedAt", "replyTo", "forwardedFrom", "reactions"];
|
|
4804
4605
|
var BRIEF = ["locator", "chatTitle", "timestamp", "senderName", "excerpt", "score"];
|
|
4805
4606
|
var SNAKE_BRIEF = ["ref", "chat_title", "timestamp", "sender_name", "excerpt", "score"];
|
|
@@ -4835,7 +4636,7 @@ var atDetail = /* @__PURE__ */ __name((value, detail = "default") => {
|
|
|
4835
4636
|
return value;
|
|
4836
4637
|
}, "atDetail");
|
|
4837
4638
|
|
|
4838
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4639
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/output.js
|
|
4839
4640
|
var refuseCompact = /* @__PURE__ */ __name(({ json, jsonl, fields, hitDetail }) => {
|
|
4840
4641
|
const other = jsonl ? "--jsonl" : fields !== void 0 ? "--json=\u2026" : json ? "--json" : hitDetail === "brief" ? "--brief" : "";
|
|
4841
4642
|
if (other)
|
|
@@ -4899,7 +4700,7 @@ var silence = /* @__PURE__ */ __name((renderer) => ({
|
|
|
4899
4700
|
}, "warn")
|
|
4900
4701
|
}), "silence");
|
|
4901
4702
|
|
|
4902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4703
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/runs/log-events.js
|
|
4903
4704
|
var CORE_LOG_EVENTS = defineLogEvents([
|
|
4904
4705
|
{ id: "provider.request", meaning: "a request went to the messenger", keys: ["operation"] },
|
|
4905
4706
|
{ id: "provider.response", meaning: "the messenger answered the request, or it failed", keys: ["operation"] },
|
|
@@ -4937,7 +4738,7 @@ var DIAGNOSTIC_LOG_EVENTS = {
|
|
|
4937
4738
|
progress: "sync.progress"
|
|
4938
4739
|
};
|
|
4939
4740
|
|
|
4940
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/runs/recording.js
|
|
4941
4742
|
var recorded = /* @__PURE__ */ __name(async (options, body) => {
|
|
4942
4743
|
const recording = startRecording(options);
|
|
4943
4744
|
try {
|
|
@@ -5152,7 +4953,7 @@ var partialOutcome = /* @__PURE__ */ __name((answer) => {
|
|
|
5152
4953
|
return void 0;
|
|
5153
4954
|
}, "partialOutcome");
|
|
5154
4955
|
|
|
5155
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4956
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/deadline.js
|
|
5156
4957
|
var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
5157
4958
|
if (ms2 === void 0)
|
|
5158
4959
|
return body();
|
|
@@ -5178,7 +4979,7 @@ var withDeadline = /* @__PURE__ */ __name(async (ms2, closeables, body) => {
|
|
|
5178
4979
|
}
|
|
5179
4980
|
}, "withDeadline");
|
|
5180
4981
|
|
|
5181
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/profile.js
|
|
5182
4983
|
var asFirstWord = /* @__PURE__ */ __name((profile) => `${profile} `, "asFirstWord");
|
|
5183
4984
|
var PLAIN_NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
|
5184
4985
|
var isProfileName = /* @__PURE__ */ __name((word) => PLAIN_NAME.test(word), "isProfileName");
|
|
@@ -5247,79 +5048,10 @@ var sampleCommand = /* @__PURE__ */ __name((commands) => {
|
|
|
5247
5048
|
return void 0;
|
|
5248
5049
|
}, "sampleCommand");
|
|
5249
5050
|
|
|
5250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5051
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5251
5052
|
import { existsSync as existsSync4 } from "node:fs";
|
|
5252
5053
|
|
|
5253
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5254
|
-
var MODEL_FIELDS = ["provider", "model", "base_url"];
|
|
5255
|
-
var modelSettingsShape = record(pipe(string(), regex(/^[a-z][a-z0-9-]*$/)), strictObject({
|
|
5256
|
-
provider: optional(picklist(["off", "openai", "anthropic"])),
|
|
5257
|
-
model: optional(pipe(string(), trim(), minLength(1), maxLength(200))),
|
|
5258
|
-
base_url: optional(pipe(string(), check((value) => endpoint(value), "use an HTTP/S endpoint without credentials, query or fragment")))
|
|
5259
|
-
}));
|
|
5260
|
-
var resolveModelSettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
5261
|
-
const configured = layers.map(([from, scope]) => [from, scope?.models ?? {}]);
|
|
5262
|
-
const purposes = /* @__PURE__ */ new Set([
|
|
5263
|
-
"default",
|
|
5264
|
-
"analysis",
|
|
5265
|
-
"replies",
|
|
5266
|
-
...configured.flatMap(([, models2]) => Object.keys(models2))
|
|
5267
|
-
]);
|
|
5268
|
-
for (const name of Object.keys(env)) {
|
|
5269
|
-
const match = new RegExp(`^${prefix}_MODELS_([A-Z][A-Z0-9_]*)_(PROVIDER|MODEL|BASE_URL)$`).exec(name);
|
|
5270
|
-
if (match?.[1])
|
|
5271
|
-
purposes.add(match[1].toLowerCase().replaceAll("_", "-"));
|
|
5272
|
-
}
|
|
5273
|
-
const models = {};
|
|
5274
|
-
const sources = {};
|
|
5275
|
-
for (const purpose of purposes) {
|
|
5276
|
-
const resolved = {};
|
|
5277
|
-
for (const field of MODEL_FIELDS) {
|
|
5278
|
-
const variable = `${prefix}_MODELS_${purpose.replaceAll("-", "_").toUpperCase()}_${field.toUpperCase()}`;
|
|
5279
|
-
const candidates = [
|
|
5280
|
-
[variable, env[variable]?.trim() || void 0],
|
|
5281
|
-
...configured.map(([from, model3]) => [
|
|
5282
|
-
`${from}: models.${purpose}.${field}`,
|
|
5283
|
-
model3[purpose]?.[field]
|
|
5284
|
-
]),
|
|
5285
|
-
...purpose === "default" ? [] : [
|
|
5286
|
-
[
|
|
5287
|
-
`${prefix}_MODELS_DEFAULT_${field.toUpperCase()}`,
|
|
5288
|
-
env[`${prefix}_MODELS_DEFAULT_${field.toUpperCase()}`]?.trim() || void 0
|
|
5289
|
-
],
|
|
5290
|
-
...configured.map(([from, model3]) => [
|
|
5291
|
-
`${from}: models.default.${field}`,
|
|
5292
|
-
model3.default?.[field]
|
|
5293
|
-
])
|
|
5294
|
-
]
|
|
5295
|
-
];
|
|
5296
|
-
const selected = candidates.find(([, value]) => value !== void 0);
|
|
5297
|
-
if (selected)
|
|
5298
|
-
resolved[field] = selected[1];
|
|
5299
|
-
sources[`models.${purpose}.${field}`] = selected?.[0] ?? "default";
|
|
5300
|
-
}
|
|
5301
|
-
if (Object.keys(resolved).length)
|
|
5302
|
-
models[purpose] = resolved;
|
|
5303
|
-
}
|
|
5304
|
-
const checked = safeParse(modelSettingsShape, models);
|
|
5305
|
-
if (!checked.success)
|
|
5306
|
-
throw new CliError("configuration_error", `models.${getDotPath(checked.issues[0]) ?? "settings"} is invalid`);
|
|
5307
|
-
return { models: checked.output, sources };
|
|
5308
|
-
}, "resolveModelSettings");
|
|
5309
|
-
var modelTarget = /* @__PURE__ */ __name((settings, purpose) => {
|
|
5310
|
-
const configured = { ...settings.models?.default, ...settings.models?.[purpose] };
|
|
5311
|
-
if (configured.provider === void 0 || configured.provider === "off")
|
|
5312
|
-
return void 0;
|
|
5313
|
-
if (!configured.model)
|
|
5314
|
-
throw new CliError("configuration_error", `set models.${purpose}.model before calling its provider`);
|
|
5315
|
-
return {
|
|
5316
|
-
provider: configured.provider,
|
|
5317
|
-
model: configured.model,
|
|
5318
|
-
...configured.base_url === void 0 ? {} : { baseUrl: configured.base_url }
|
|
5319
|
-
};
|
|
5320
|
-
}, "modelTarget");
|
|
5321
|
-
|
|
5322
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5054
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/analysis/settings.js
|
|
5323
5055
|
var model = pipe(string(), trim(), minLength(1), maxLength(200));
|
|
5324
5056
|
var url = pipe(string(), check(endpoint, "use an HTTP/S endpoint without credentials, query or fragment"));
|
|
5325
5057
|
var AI_FIELDS = {
|
|
@@ -5363,7 +5095,7 @@ var resolveAISettings = /* @__PURE__ */ __name((prefix, layers, env) => {
|
|
|
5363
5095
|
};
|
|
5364
5096
|
}, "resolveAISettings");
|
|
5365
5097
|
|
|
5366
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5098
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/domain/duration.js
|
|
5367
5099
|
var DURATION = /^(\d+)(ms|s|m|h|d)$/;
|
|
5368
5100
|
var UNIT_MS = { ms: 1, s: 1e3, m: 6e4, h: 36e5, d: 864e5 };
|
|
5369
5101
|
var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
@@ -5377,7 +5109,7 @@ var parseDuration = /* @__PURE__ */ __name((value, source2) => {
|
|
|
5377
5109
|
return ms2;
|
|
5378
5110
|
}, "parseDuration");
|
|
5379
5111
|
|
|
5380
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5112
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/services/history-limits.js
|
|
5381
5113
|
var HISTORY_MAX_DAYS = 1095;
|
|
5382
5114
|
var DEFAULT_HISTORY_LIMITS = { dialogDays: 1095, groupDays: 365, groupMembersMax: 50 };
|
|
5383
5115
|
var DAY_MS = 24 * 60 * 60 * 1e3;
|
|
@@ -5424,8 +5156,8 @@ var limitBatch = /* @__PURE__ */ __name((batch, shapes, included, limits, now =
|
|
|
5424
5156
|
return { batch: { ...batch, messages }, skipped };
|
|
5425
5157
|
}, "limitBatch");
|
|
5426
5158
|
|
|
5427
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5428
|
-
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as
|
|
5159
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/bot/registry.js
|
|
5160
|
+
import { existsSync as existsSync2, readdirSync as readdirSync2, readFileSync as readFileSync2 } from "node:fs";
|
|
5429
5161
|
import { join as join2 } from "node:path";
|
|
5430
5162
|
var botsDirectory = /* @__PURE__ */ __name((app, env = process.env) => join2(resolvePaths({ appName: app.appName, prefix: app.envPrefix, env }).state, "bots"), "botsDirectory");
|
|
5431
5163
|
var botFiles = /* @__PURE__ */ __name((app, profile, env = process.env) => {
|
|
@@ -5495,7 +5227,7 @@ var ChatRegistry = class {
|
|
|
5495
5227
|
if (!existsSync2(this.#path))
|
|
5496
5228
|
return {};
|
|
5497
5229
|
try {
|
|
5498
|
-
const parsed = JSON.parse(
|
|
5230
|
+
const parsed = JSON.parse(readFileSync2(this.#path, "utf8"));
|
|
5499
5231
|
return parsed && typeof parsed === "object" ? parsed : {};
|
|
5500
5232
|
} catch {
|
|
5501
5233
|
return {};
|
|
@@ -5513,8 +5245,8 @@ var registryProfiles = /* @__PURE__ */ __name((app, env = process.env) => {
|
|
|
5513
5245
|
return readdirSync2(directory, { withFileTypes: true }).filter((entry) => entry.isFile() && entry.name.endsWith(".json")).map((entry) => entry.name).map((name) => name.slice(0, -".json".length));
|
|
5514
5246
|
}, "registryProfiles");
|
|
5515
5247
|
|
|
5516
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5517
|
-
import { readFileSync as
|
|
5248
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/config-issues.js
|
|
5249
|
+
import { readFileSync as readFileSync3 } from "node:fs";
|
|
5518
5250
|
var isNode = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5519
5251
|
var SECTIONS = ["personal", "bot"];
|
|
5520
5252
|
var SHELL_SAFE = /^[A-Za-z0-9_.:@-]*$/;
|
|
@@ -5621,8 +5353,8 @@ var failureOffset = /* @__PURE__ */ __name((text5) => {
|
|
|
5621
5353
|
value();
|
|
5622
5354
|
space();
|
|
5623
5355
|
return at2;
|
|
5624
|
-
} catch (
|
|
5625
|
-
return typeof
|
|
5356
|
+
} catch (stopped) {
|
|
5357
|
+
return typeof stopped === "number" ? stopped : at2;
|
|
5626
5358
|
}
|
|
5627
5359
|
}, "failureOffset");
|
|
5628
5360
|
var parseConfigText = /* @__PURE__ */ __name((text5, file) => {
|
|
@@ -5788,7 +5520,7 @@ var checkConfigText = /* @__PURE__ */ __name((text5, { file, tool, schema: schem
|
|
|
5788
5520
|
var wholeFile = /* @__PURE__ */ __name((file, what) => ({ kind: "invalid_value", file, what }), "wholeFile");
|
|
5789
5521
|
var readConfigText = /* @__PURE__ */ __name((path2) => {
|
|
5790
5522
|
try {
|
|
5791
|
-
return { text:
|
|
5523
|
+
return { text: readFileSync3(path2, "utf8") };
|
|
5792
5524
|
} catch (error) {
|
|
5793
5525
|
const code = error.code;
|
|
5794
5526
|
if (code === "ENOENT")
|
|
@@ -5808,7 +5540,7 @@ var readConfigFile = /* @__PURE__ */ __name((path2) => {
|
|
|
5808
5540
|
return "issue" in parsed ? { issue: publicIssue(parsed.issue) } : parsed;
|
|
5809
5541
|
}, "readConfigFile");
|
|
5810
5542
|
|
|
5811
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/default-config.js
|
|
5812
5544
|
import { existsSync as existsSync3, linkSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
|
|
5813
5545
|
import { dirname, join as join3 } from "node:path";
|
|
5814
5546
|
var DEFAULT_CONFIG = {
|
|
@@ -5837,7 +5569,7 @@ function ensureDefaultConfig(path2, config = DEFAULT_CONFIG) {
|
|
|
5837
5569
|
}
|
|
5838
5570
|
__name(ensureDefaultConfig, "ensureDefaultConfig");
|
|
5839
5571
|
|
|
5840
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5572
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/setting-defaults.js
|
|
5841
5573
|
var isNode2 = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isNode");
|
|
5842
5574
|
var parentOf = /* @__PURE__ */ __name((config, key) => {
|
|
5843
5575
|
const path2 = key.split(".");
|
|
@@ -5859,7 +5591,7 @@ var withSettingDefaults = /* @__PURE__ */ __name((raw, declared) => {
|
|
|
5859
5591
|
return { config, added };
|
|
5860
5592
|
}, "withSettingDefaults");
|
|
5861
5593
|
|
|
5862
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
5594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/settings.js
|
|
5863
5595
|
var DEFAULT_LIMIT = DEFAULT_CONFIG.defaults.limit;
|
|
5864
5596
|
var DEFAULT_KEEP_RUNS_FOR_DAYS = DEFAULT_CONFIG.defaults.keep_runs_for_days;
|
|
5865
5597
|
var DEFAULT_SENDS_PER_HOUR = DEFAULT_CONFIG.defaults.sends_per_hour;
|
|
@@ -6387,7 +6119,7 @@ var given = /* @__PURE__ */ __name((value) => {
|
|
|
6387
6119
|
return trimmed === void 0 || trimmed === "" ? void 0 : trimmed;
|
|
6388
6120
|
}, "given");
|
|
6389
6121
|
|
|
6390
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6122
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/context.js
|
|
6391
6123
|
var runBudgetOf = /* @__PURE__ */ __name((command, requests2) => {
|
|
6392
6124
|
const { deadline, signal, app } = environmentOf(command);
|
|
6393
6125
|
const now = deadline?.();
|
|
@@ -6536,12 +6268,12 @@ var inCommandRun = /* @__PURE__ */ __name((command, body) => {
|
|
|
6536
6268
|
}, "inCommandRun");
|
|
6537
6269
|
var commandPath = /* @__PURE__ */ __name((command) => {
|
|
6538
6270
|
const words = [];
|
|
6539
|
-
for (let
|
|
6540
|
-
words.unshift(
|
|
6271
|
+
for (let current = command; current?.parent; current = current.parent)
|
|
6272
|
+
words.unshift(current.name());
|
|
6541
6273
|
return words.join(" ");
|
|
6542
6274
|
}, "commandPath");
|
|
6543
6275
|
|
|
6544
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/effects.js
|
|
6545
6277
|
var REMOTE_READ = { remote: "read", local: "read" };
|
|
6546
6278
|
var FETCH = { remote: "read", local: "write" };
|
|
6547
6279
|
var REMOTE_WRITE = { remote: "write", local: "write" };
|
|
@@ -6677,7 +6409,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6677
6409
|
throw readOnlyRefusal(lock, what);
|
|
6678
6410
|
}, "refuseUnderReadOnly");
|
|
6679
6411
|
|
|
6680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6412
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
6681
6413
|
var account = strictObject({
|
|
6682
6414
|
provider: text,
|
|
6683
6415
|
id,
|
|
@@ -6687,7 +6419,7 @@ var account = strictObject({
|
|
|
6687
6419
|
scope: optional(picklist(["personal", "work"]))
|
|
6688
6420
|
});
|
|
6689
6421
|
|
|
6690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
6691
6423
|
var accountSession = strictObject({
|
|
6692
6424
|
current: boolean(),
|
|
6693
6425
|
client: nullable(text),
|
|
@@ -6697,7 +6429,7 @@ var accountSession = strictObject({
|
|
|
6697
6429
|
created_at: optional(nullable(time))
|
|
6698
6430
|
});
|
|
6699
6431
|
|
|
6700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
6701
6433
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
6702
6434
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
6703
6435
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -6726,7 +6458,7 @@ var accountRemoval = strictObject({
|
|
|
6726
6458
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
6727
6459
|
});
|
|
6728
6460
|
|
|
6729
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6461
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
6730
6462
|
var accountProfile = strictObject({
|
|
6731
6463
|
profile: id,
|
|
6732
6464
|
current: boolean(),
|
|
@@ -6738,7 +6470,7 @@ var accountProfile = strictObject({
|
|
|
6738
6470
|
bot: optional(literal(true))
|
|
6739
6471
|
});
|
|
6740
6472
|
|
|
6741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6473
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
6742
6474
|
var milliseconds = pipe(number(), minValue(0));
|
|
6743
6475
|
var counterReading = strictObject({
|
|
6744
6476
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -6750,7 +6482,7 @@ var counterReading = strictObject({
|
|
|
6750
6482
|
});
|
|
6751
6483
|
var selection = record(string(), unknown());
|
|
6752
6484
|
|
|
6753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6485
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
6754
6486
|
var adminRow = strictObject({
|
|
6755
6487
|
ref: reference,
|
|
6756
6488
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -6803,7 +6535,7 @@ var adminReport = strictObject({
|
|
|
6803
6535
|
rows: array(adminRow)
|
|
6804
6536
|
});
|
|
6805
6537
|
|
|
6806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6538
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
6807
6539
|
var closeSuggestion = strictObject({
|
|
6808
6540
|
as: picklist(["done", "dismissed"]),
|
|
6809
6541
|
/** The agent's name. */
|
|
@@ -6865,7 +6597,7 @@ var task = strictObject({
|
|
|
6865
6597
|
updated_at: optional(time)
|
|
6866
6598
|
});
|
|
6867
6599
|
|
|
6868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6600
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
6869
6601
|
var agendaChat = strictObject({
|
|
6870
6602
|
chat: reference,
|
|
6871
6603
|
title: nullable(text),
|
|
@@ -6935,11 +6667,11 @@ var agenda = strictObject({
|
|
|
6935
6667
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
6936
6668
|
});
|
|
6937
6669
|
|
|
6938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
6939
6671
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
6940
6672
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
6941
6673
|
|
|
6942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6674
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
6943
6675
|
var attachment = strictObject({
|
|
6944
6676
|
/** The message it came with, as a locator; absent inside that message. */
|
|
6945
6677
|
message: optional(reference),
|
|
@@ -6984,7 +6716,7 @@ var hitFile = strictObject({
|
|
|
6984
6716
|
local_path: optional(text)
|
|
6985
6717
|
});
|
|
6986
6718
|
|
|
6987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6719
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
6988
6720
|
var actionableError = objectWithRest({
|
|
6989
6721
|
code: text,
|
|
6990
6722
|
message: text,
|
|
@@ -7001,7 +6733,7 @@ var batchResult = strictObject({
|
|
|
7001
6733
|
max_error_percent: count
|
|
7002
6734
|
});
|
|
7003
6735
|
|
|
7004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6736
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
7005
6737
|
var extractionItem = strictObject({
|
|
7006
6738
|
ref: reference,
|
|
7007
6739
|
attachment: count,
|
|
@@ -7034,7 +6766,7 @@ var extractionReport = strictObject({
|
|
|
7034
6766
|
cursor: optional(text)
|
|
7035
6767
|
});
|
|
7036
6768
|
|
|
7037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
7038
6770
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
7039
6771
|
var attachmentBytes = strictObject({
|
|
7040
6772
|
ref: reference,
|
|
@@ -7065,7 +6797,7 @@ var attachmentTextChange = strictObject({
|
|
|
7065
6797
|
text: optional(text)
|
|
7066
6798
|
});
|
|
7067
6799
|
|
|
7068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6800
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
7069
6801
|
var WEIGHTS = {
|
|
7070
6802
|
bot: 3,
|
|
7071
6803
|
scam: 3,
|
|
@@ -7090,7 +6822,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
7090
6822
|
var DIGITS = /\d{5,}/;
|
|
7091
6823
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
7092
6824
|
|
|
7093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6825
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
7094
6826
|
var linkedIdentity = strictObject({
|
|
7095
6827
|
provider: text,
|
|
7096
6828
|
id,
|
|
@@ -7145,7 +6877,7 @@ var contactCheck = strictObject({
|
|
|
7145
6877
|
checked_at: time
|
|
7146
6878
|
});
|
|
7147
6879
|
|
|
7148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6880
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
7149
6881
|
var member = strictObject({
|
|
7150
6882
|
id,
|
|
7151
6883
|
name: nullable(text),
|
|
@@ -7168,7 +6900,7 @@ var member = strictObject({
|
|
|
7168
6900
|
check: optional(record(string(), unknown()))
|
|
7169
6901
|
});
|
|
7170
6902
|
|
|
7171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6903
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
7172
6904
|
var setting = optional(nullable(boolean()));
|
|
7173
6905
|
var chat = strictObject({
|
|
7174
6906
|
ref: reference,
|
|
@@ -7209,7 +6941,7 @@ var chat = strictObject({
|
|
|
7209
6941
|
members: optional(array(member))
|
|
7210
6942
|
});
|
|
7211
6943
|
|
|
7212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
7213
6945
|
var quoted = strictObject({
|
|
7214
6946
|
id,
|
|
7215
6947
|
sender_id: nullable(id),
|
|
@@ -7328,7 +7060,7 @@ var message = strictObject({
|
|
|
7328
7060
|
provider_metadata: providerMetadata
|
|
7329
7061
|
});
|
|
7330
7062
|
|
|
7331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7063
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
|
|
7332
7064
|
var recordedMeeting = strictObject({
|
|
7333
7065
|
ref: reference,
|
|
7334
7066
|
meeting_id: count,
|
|
@@ -7345,7 +7077,7 @@ var recordedMeeting = strictObject({
|
|
|
7345
7077
|
call: optional(meetingCall)
|
|
7346
7078
|
});
|
|
7347
7079
|
|
|
7348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
7349
7081
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
7350
7082
|
var contextMessage = strictObject({
|
|
7351
7083
|
locator: reference,
|
|
@@ -7551,7 +7283,7 @@ var contactPreparation = strictObject({
|
|
|
7551
7283
|
})
|
|
7552
7284
|
});
|
|
7553
7285
|
|
|
7554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7286
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
7555
7287
|
var nullableText = nullable(text);
|
|
7556
7288
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
7557
7289
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -7707,7 +7439,7 @@ var stage = strictObject({
|
|
|
7707
7439
|
untrusted
|
|
7708
7440
|
});
|
|
7709
7441
|
|
|
7710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7442
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/business-context.js
|
|
7711
7443
|
var nullableText2 = nullable(text);
|
|
7712
7444
|
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
7713
7445
|
var standing = picklist(STANDINGS);
|
|
@@ -7886,7 +7618,7 @@ var dealBrief = strictObject({
|
|
|
7886
7618
|
not_read: coverage2.entries.not_read
|
|
7887
7619
|
});
|
|
7888
7620
|
|
|
7889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7621
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7890
7622
|
var chart = strictObject({
|
|
7891
7623
|
version: literal(1),
|
|
7892
7624
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7901,7 +7633,7 @@ var chart = strictObject({
|
|
|
7901
7633
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7902
7634
|
});
|
|
7903
7635
|
|
|
7904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7636
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7905
7637
|
var named2 = strictObject({
|
|
7906
7638
|
id,
|
|
7907
7639
|
title: nullable(text),
|
|
@@ -7924,7 +7656,7 @@ var folder = strictObject({
|
|
|
7924
7656
|
excluded_chats: optional(array(named2))
|
|
7925
7657
|
});
|
|
7926
7658
|
|
|
7927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7659
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7928
7660
|
var inviteLink = strictObject({
|
|
7929
7661
|
link: text,
|
|
7930
7662
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7940,7 +7672,7 @@ var inviteLink = strictObject({
|
|
|
7940
7672
|
joined_count: optional(count)
|
|
7941
7673
|
});
|
|
7942
7674
|
|
|
7943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7944
7676
|
var operated = { operation_id: id, chat_id: id };
|
|
7945
7677
|
var group = strictObject({
|
|
7946
7678
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -8020,7 +7752,7 @@ var chatFolderOrder = strictObject({
|
|
|
8020
7752
|
folders: array(strictObject({ id, title: text }))
|
|
8021
7753
|
});
|
|
8022
7754
|
|
|
8023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7755
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
8024
7756
|
var operated2 = { operation_id: id, chat_id: id };
|
|
8025
7757
|
var chatRemoval = strictObject(operated2);
|
|
8026
7758
|
var chatMuting = strictObject({
|
|
@@ -8031,7 +7763,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
8031
7763
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
8032
7764
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
8033
7765
|
|
|
8034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
8035
7767
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
8036
7768
|
var chatEvent = strictObject({
|
|
8037
7769
|
chat_id: id,
|
|
@@ -8048,7 +7780,7 @@ var chatEvent = strictObject({
|
|
|
8048
7780
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
8049
7781
|
});
|
|
8050
7782
|
|
|
8051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7783
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
8052
7784
|
var chatMetadata = strictObject({
|
|
8053
7785
|
chat_id: id,
|
|
8054
7786
|
title: nullable(text),
|
|
@@ -8063,7 +7795,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
8063
7795
|
has_more: boolean()
|
|
8064
7796
|
});
|
|
8065
7797
|
|
|
8066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7798
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
8067
7799
|
var action = picklist(["report", "delete", "remove"]);
|
|
8068
7800
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
8069
7801
|
var chatRules = strictObject({
|
|
@@ -8100,7 +7832,7 @@ var chatModeration = strictObject({
|
|
|
8100
7832
|
}))
|
|
8101
7833
|
});
|
|
8102
7834
|
|
|
8103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7835
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
|
|
8104
7836
|
var chatSending = strictObject({
|
|
8105
7837
|
mode: picklist(["allowed", "ask", "denied"]),
|
|
8106
7838
|
meaning: text,
|
|
@@ -8110,7 +7842,7 @@ var chatSending = strictObject({
|
|
|
8110
7842
|
changed: optional(boolean())
|
|
8111
7843
|
});
|
|
8112
7844
|
|
|
8113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7845
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
8114
7846
|
var optionalCount = optional(count);
|
|
8115
7847
|
var minutes = nullable(number());
|
|
8116
7848
|
var chatStats = strictObject({
|
|
@@ -8186,7 +7918,7 @@ var taskStats = strictObject({
|
|
|
8186
7918
|
}))
|
|
8187
7919
|
});
|
|
8188
7920
|
|
|
8189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7921
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
8190
7922
|
var memberCount = strictObject({
|
|
8191
7923
|
day: pipe(text, isoDate()),
|
|
8192
7924
|
participants: nullable(count),
|
|
@@ -8209,7 +7941,7 @@ var chatTracking = strictObject({
|
|
|
8209
7941
|
tracked: boolean()
|
|
8210
7942
|
});
|
|
8211
7943
|
|
|
8212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7944
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
8213
7945
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8214
7946
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
8215
7947
|
var profileFields = {
|
|
@@ -8247,7 +7979,7 @@ var profileFields = {
|
|
|
8247
7979
|
}))
|
|
8248
7980
|
};
|
|
8249
7981
|
|
|
8250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7982
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
8251
7983
|
var contact = strictObject({
|
|
8252
7984
|
ref: reference,
|
|
8253
7985
|
id,
|
|
@@ -8278,7 +8010,7 @@ var contact = strictObject({
|
|
|
8278
8010
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
8279
8011
|
});
|
|
8280
8012
|
|
|
8281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8013
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
8282
8014
|
var contactNote = strictObject({
|
|
8283
8015
|
id,
|
|
8284
8016
|
/** The contact, as a `contact:` reference. */
|
|
@@ -8290,13 +8022,13 @@ var contactNote = strictObject({
|
|
|
8290
8022
|
updated_at: time
|
|
8291
8023
|
});
|
|
8292
8024
|
|
|
8293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8025
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
8294
8026
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8295
8027
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
8296
8028
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
8297
8029
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
8298
8030
|
|
|
8299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8031
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
8300
8032
|
var conversation = strictObject({
|
|
8301
8033
|
id,
|
|
8302
8034
|
chat: reference,
|
|
@@ -8311,7 +8043,7 @@ var conversation = strictObject({
|
|
|
8311
8043
|
rules_version: count
|
|
8312
8044
|
});
|
|
8313
8045
|
|
|
8314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
8315
8047
|
var conversationBuild = strictObject({
|
|
8316
8048
|
chat: id,
|
|
8317
8049
|
messages: count,
|
|
@@ -8336,7 +8068,7 @@ var catchUpPreparation = strictObject({
|
|
|
8336
8068
|
prepared: optional(conversationPreparation)
|
|
8337
8069
|
});
|
|
8338
8070
|
|
|
8339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8071
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
8340
8072
|
var conversationDetails = union([
|
|
8341
8073
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
8342
8074
|
message
|
|
@@ -8426,7 +8158,7 @@ var conversationHit = strictObject({
|
|
|
8426
8158
|
stale: boolean()
|
|
8427
8159
|
});
|
|
8428
8160
|
|
|
8429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8161
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8430
8162
|
var counters = strictObject({
|
|
8431
8163
|
cutoff: time,
|
|
8432
8164
|
max_age_ms: milliseconds,
|
|
@@ -8456,7 +8188,7 @@ var counterRefresh = strictObject({
|
|
|
8456
8188
|
complete: optional(boolean())
|
|
8457
8189
|
});
|
|
8458
8190
|
|
|
8459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8191
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8460
8192
|
var document = strictObject({
|
|
8461
8193
|
ref: reference,
|
|
8462
8194
|
id,
|
|
@@ -8471,7 +8203,7 @@ var document = strictObject({
|
|
|
8471
8203
|
owners: optional(array(text))
|
|
8472
8204
|
});
|
|
8473
8205
|
|
|
8474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8206
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8475
8207
|
var documentLink = strictObject({
|
|
8476
8208
|
ref: reference,
|
|
8477
8209
|
url: text,
|
|
@@ -8482,7 +8214,7 @@ var documentLink = strictObject({
|
|
|
8482
8214
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8483
8215
|
});
|
|
8484
8216
|
|
|
8485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8486
8218
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8487
8219
|
var contribution = strictObject({
|
|
8488
8220
|
message: evidenceMessage,
|
|
@@ -8512,7 +8244,7 @@ var retentionStay = strictObject({
|
|
|
8512
8244
|
});
|
|
8513
8245
|
var evidence = union([contribution, retentionStay]);
|
|
8514
8246
|
|
|
8515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8247
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8516
8248
|
var fact = strictObject({
|
|
8517
8249
|
ref: reference,
|
|
8518
8250
|
id,
|
|
@@ -8543,9 +8275,20 @@ var fact = strictObject({
|
|
|
8543
8275
|
updated_at: time
|
|
8544
8276
|
});
|
|
8545
8277
|
|
|
8546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8278
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8547
8279
|
var hit = strictObject({
|
|
8548
|
-
kind: picklist([
|
|
8280
|
+
kind: picklist([
|
|
8281
|
+
"message",
|
|
8282
|
+
"mail",
|
|
8283
|
+
"note",
|
|
8284
|
+
"document",
|
|
8285
|
+
"event",
|
|
8286
|
+
"meeting",
|
|
8287
|
+
"deal",
|
|
8288
|
+
"lead",
|
|
8289
|
+
"crm_file",
|
|
8290
|
+
...BUSINESS_KINDS
|
|
8291
|
+
]),
|
|
8549
8292
|
ref: reference,
|
|
8550
8293
|
provider: text,
|
|
8551
8294
|
url: optional(text),
|
|
@@ -8591,7 +8334,7 @@ var hit = strictObject({
|
|
|
8591
8334
|
untrusted
|
|
8592
8335
|
});
|
|
8593
8336
|
|
|
8594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8337
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8595
8338
|
var identity = strictObject({
|
|
8596
8339
|
ref: reference,
|
|
8597
8340
|
provider: text,
|
|
@@ -8607,7 +8350,7 @@ var identity = strictObject({
|
|
|
8607
8350
|
person: optional(nullable(reference))
|
|
8608
8351
|
});
|
|
8609
8352
|
|
|
8610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8353
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8611
8354
|
var imageEmbedding = strictObject({
|
|
8612
8355
|
model: text,
|
|
8613
8356
|
embedded: count,
|
|
@@ -8616,13 +8359,13 @@ var imageEmbedding = strictObject({
|
|
|
8616
8359
|
more: boolean()
|
|
8617
8360
|
});
|
|
8618
8361
|
|
|
8619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8362
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8620
8363
|
import { spawn } from "node:child_process";
|
|
8621
8364
|
import { randomBytes } from "node:crypto";
|
|
8622
|
-
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as
|
|
8365
|
+
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync4, realpathSync, rmSync as rmSync2 } from "node:fs";
|
|
8623
8366
|
import { dirname as dirname2, join as join4 } from "node:path";
|
|
8624
8367
|
|
|
8625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8368
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8626
8369
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8627
8370
|
const total = input.total ?? null;
|
|
8628
8371
|
const updated = input.updatedAt ?? null;
|
|
@@ -8638,7 +8381,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8638
8381
|
};
|
|
8639
8382
|
}, "progressOf");
|
|
8640
8383
|
|
|
8641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8384
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8642
8385
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8643
8386
|
const run = currentRun();
|
|
8644
8387
|
const trace = traceId ?? run.traceId;
|
|
@@ -8652,7 +8395,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8652
8395
|
}));
|
|
8653
8396
|
}, "recordLogFor");
|
|
8654
8397
|
|
|
8655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8656
8399
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8657
8400
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8658
8401
|
const out = openSync(log, "a", 384);
|
|
@@ -8679,7 +8422,7 @@ var readJob = /* @__PURE__ */ __name((dir, id6) => {
|
|
|
8679
8422
|
if (!/^[\w-]+$/.test(id6) || !existsSync5(jobPath(dir, id6)))
|
|
8680
8423
|
return void 0;
|
|
8681
8424
|
try {
|
|
8682
|
-
return JSON.parse(
|
|
8425
|
+
return JSON.parse(readFileSync4(jobPath(dir, id6), "utf8"));
|
|
8683
8426
|
} catch {
|
|
8684
8427
|
return void 0;
|
|
8685
8428
|
}
|
|
@@ -8807,7 +8550,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8807
8550
|
return { job: id6, pid, chat: input.chat, log };
|
|
8808
8551
|
}, "startArchiveJob");
|
|
8809
8552
|
|
|
8810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8553
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
8811
8554
|
var problem = strictObject({ code: text, message: text });
|
|
8812
8555
|
var job = strictObject({
|
|
8813
8556
|
id,
|
|
@@ -8830,7 +8573,7 @@ var job = strictObject({
|
|
|
8830
8573
|
error: optional(problem)
|
|
8831
8574
|
});
|
|
8832
8575
|
|
|
8833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8576
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
8834
8577
|
var joinRequest = strictObject({
|
|
8835
8578
|
person_id: id,
|
|
8836
8579
|
name: nullable(text),
|
|
@@ -8841,7 +8584,7 @@ var joinRequest = strictObject({
|
|
|
8841
8584
|
about: optional(text)
|
|
8842
8585
|
});
|
|
8843
8586
|
|
|
8844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8587
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
8845
8588
|
var botProfile = strictObject({
|
|
8846
8589
|
name: text,
|
|
8847
8590
|
token: text,
|
|
@@ -8965,7 +8708,7 @@ var stickerInventory = strictObject({
|
|
|
8965
8708
|
url: optional(nullable(text))
|
|
8966
8709
|
});
|
|
8967
8710
|
|
|
8968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8711
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
8969
8712
|
var pollVote = strictObject({
|
|
8970
8713
|
person_id: id,
|
|
8971
8714
|
name: nullable(text),
|
|
@@ -8975,7 +8718,7 @@ var pollVote = strictObject({
|
|
|
8975
8718
|
voted_at: time
|
|
8976
8719
|
});
|
|
8977
8720
|
|
|
8978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8721
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
8979
8722
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
8980
8723
|
var observation = strictObject({
|
|
8981
8724
|
value: pipe(number(), minValue(0)),
|
|
@@ -9017,7 +8760,7 @@ var serveSummary = strictObject({
|
|
|
9017
8760
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
9018
8761
|
});
|
|
9019
8762
|
|
|
9020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8763
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
9021
8764
|
var mailCounts = strictObject({
|
|
9022
8765
|
by: picklist(["day", "week", "sender"]),
|
|
9023
8766
|
received: count,
|
|
@@ -9032,7 +8775,7 @@ var mailCounts = strictObject({
|
|
|
9032
8775
|
}))
|
|
9033
8776
|
});
|
|
9034
8777
|
|
|
9035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8778
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
9036
8779
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
9037
8780
|
var base = { id, evidence: array(evidence2) };
|
|
9038
8781
|
var finding = variant("kind", [
|
|
@@ -9176,7 +8919,7 @@ var mailFindings = strictObject({
|
|
|
9176
8919
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
9177
8920
|
});
|
|
9178
8921
|
|
|
9179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8922
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
9180
8923
|
var mediaArchive = strictObject({
|
|
9181
8924
|
directory: text,
|
|
9182
8925
|
chats: count,
|
|
@@ -9208,7 +8951,7 @@ var mediaArchiveTimer = union([
|
|
|
9208
8951
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
9209
8952
|
]);
|
|
9210
8953
|
|
|
9211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
9212
8955
|
var preparationId = pipe(string(), minLength(1));
|
|
9213
8956
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
9214
8957
|
var preparationTime = nullable(isoTime);
|
|
@@ -9300,7 +9043,7 @@ var preparationMeeting = strictObject({
|
|
|
9300
9043
|
updated_at: isoTime
|
|
9301
9044
|
});
|
|
9302
9045
|
|
|
9303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9046
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
9304
9047
|
var meetingEvidence = preparationEvidence;
|
|
9305
9048
|
var meetingPersonContext = strictObject({
|
|
9306
9049
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -9322,7 +9065,7 @@ var meetingPersonContext = strictObject({
|
|
|
9322
9065
|
})
|
|
9323
9066
|
});
|
|
9324
9067
|
|
|
9325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9068
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
9326
9069
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
9327
9070
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
9328
9071
|
var finding2 = variant("kind", [
|
|
@@ -9360,7 +9103,7 @@ var meetingFindings = strictObject({
|
|
|
9360
9103
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
9361
9104
|
});
|
|
9362
9105
|
|
|
9363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9106
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
9364
9107
|
var communicationCoverage = strictObject({
|
|
9365
9108
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9366
9109
|
query: string(),
|
|
@@ -9405,7 +9148,7 @@ var preparationCommunications = strictObject({
|
|
|
9405
9148
|
}))
|
|
9406
9149
|
});
|
|
9407
9150
|
|
|
9408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9151
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
9409
9152
|
var meetingPreparation = strictObject({
|
|
9410
9153
|
communications: optional(preparationCommunications),
|
|
9411
9154
|
schema_version: literal(1),
|
|
@@ -9518,7 +9261,7 @@ var meetingPreparation = strictObject({
|
|
|
9518
9261
|
})
|
|
9519
9262
|
});
|
|
9520
9263
|
|
|
9521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9264
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9522
9265
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9523
9266
|
var id3 = pipe(string(), minLength(1));
|
|
9524
9267
|
var text3 = string();
|
|
@@ -9582,7 +9325,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9582
9325
|
})
|
|
9583
9326
|
});
|
|
9584
9327
|
|
|
9585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9328
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9586
9329
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9587
9330
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9588
9331
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9612,7 +9355,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9612
9355
|
})
|
|
9613
9356
|
});
|
|
9614
9357
|
|
|
9615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9358
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9616
9359
|
var text4 = string();
|
|
9617
9360
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9618
9361
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9629,7 +9372,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9629
9372
|
persistence: literal("proposal-only")
|
|
9630
9373
|
});
|
|
9631
9374
|
|
|
9632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9375
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9633
9376
|
var memory = strictObject({
|
|
9634
9377
|
ref: reference,
|
|
9635
9378
|
id,
|
|
@@ -9657,7 +9400,7 @@ var memory = strictObject({
|
|
|
9657
9400
|
updated_at: time
|
|
9658
9401
|
});
|
|
9659
9402
|
|
|
9660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9403
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9661
9404
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9662
9405
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
9663
9406
|
var mention = strictObject({
|
|
@@ -9701,13 +9444,16 @@ var mentionRebuild = strictObject({
|
|
|
9701
9444
|
mentions: count
|
|
9702
9445
|
});
|
|
9703
9446
|
|
|
9704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9705
9448
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9706
9449
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9707
9450
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9708
9451
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9452
|
+
var scheduledCancellation = strictObject({ ...operated3, cancelled: array(id) });
|
|
9453
|
+
var scheduledSendEntries = { ...operated3, sent: array(id), messages: array(message) };
|
|
9454
|
+
var scheduledSend = strictObject(scheduledSendEntries);
|
|
9709
9455
|
|
|
9710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9711
9457
|
var messageTranscript = strictObject({
|
|
9712
9458
|
message_id: id,
|
|
9713
9459
|
text,
|
|
@@ -9765,7 +9511,7 @@ var evidencePacket = strictObject({
|
|
|
9765
9511
|
}))
|
|
9766
9512
|
});
|
|
9767
9513
|
|
|
9768
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9514
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9769
9515
|
var messageThread = strictObject({
|
|
9770
9516
|
ref: reference,
|
|
9771
9517
|
chat: id,
|
|
@@ -9782,7 +9528,7 @@ var messageThread = strictObject({
|
|
|
9782
9528
|
});
|
|
9783
9529
|
var messageContext = union([message, messageThread]);
|
|
9784
9530
|
|
|
9785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9531
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9786
9532
|
var messageCounts = strictObject({
|
|
9787
9533
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9788
9534
|
total: count,
|
|
@@ -9795,7 +9541,7 @@ var messageCounts = strictObject({
|
|
|
9795
9541
|
}))
|
|
9796
9542
|
});
|
|
9797
9543
|
|
|
9798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9544
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9799
9545
|
var messageLink = strictObject({
|
|
9800
9546
|
ref: reference,
|
|
9801
9547
|
url: nullable(text),
|
|
@@ -9812,7 +9558,7 @@ var messageLink = strictObject({
|
|
|
9812
9558
|
})))
|
|
9813
9559
|
});
|
|
9814
9560
|
|
|
9815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9561
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9816
9562
|
var savedMessageFile = strictObject({
|
|
9817
9563
|
kind: text,
|
|
9818
9564
|
path: text,
|
|
@@ -9899,7 +9645,7 @@ var messageSyncAll = strictObject({
|
|
|
9899
9645
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
9900
9646
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
9901
9647
|
|
|
9902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9648
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
9903
9649
|
var messageWrite = strictObject({
|
|
9904
9650
|
operation_id: id,
|
|
9905
9651
|
message,
|
|
@@ -9914,7 +9660,7 @@ var draftWrite = strictObject({
|
|
|
9914
9660
|
});
|
|
9915
9661
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9916
9662
|
|
|
9917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9663
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
9918
9664
|
var model2 = strictObject({
|
|
9919
9665
|
id,
|
|
9920
9666
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9949,7 +9695,7 @@ var chosenModel = strictObject({
|
|
|
9949
9695
|
estimate_seconds: nullable(count)
|
|
9950
9696
|
});
|
|
9951
9697
|
|
|
9952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9698
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
9953
9699
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9954
9700
|
var modelKey = strictObject({
|
|
9955
9701
|
provider: text,
|
|
@@ -9959,7 +9705,7 @@ var modelKey = strictObject({
|
|
|
9959
9705
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9960
9706
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9961
9707
|
|
|
9962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9708
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
9963
9709
|
var versus = strictObject({ current: number(), previous: number() });
|
|
9964
9710
|
var person = { person_ref: reference, name: nullable(text) };
|
|
9965
9711
|
var graph = strictObject({
|
|
@@ -9993,14 +9739,14 @@ var officialStats = strictObject({
|
|
|
9993
9739
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
9994
9740
|
});
|
|
9995
9741
|
|
|
9996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9742
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
9997
9743
|
var person2 = strictObject({
|
|
9998
9744
|
ref: reference,
|
|
9999
9745
|
name: nullable(text),
|
|
10000
9746
|
identities: optional(array(identity))
|
|
10001
9747
|
});
|
|
10002
9748
|
|
|
10003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9749
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
10004
9750
|
var poll = strictObject({
|
|
10005
9751
|
chat_id: id,
|
|
10006
9752
|
message_id: id,
|
|
@@ -10016,11 +9762,11 @@ var poll = strictObject({
|
|
|
10016
9762
|
});
|
|
10017
9763
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
10018
9764
|
|
|
10019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9765
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
10020
9766
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
10021
9767
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
10022
9768
|
|
|
10023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9769
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
10024
9770
|
var figures = record(string(), number());
|
|
10025
9771
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
10026
9772
|
var rankingRow = strictObject({
|
|
@@ -10067,7 +9813,7 @@ var ranking = strictObject({
|
|
|
10067
9813
|
rows: array(rankingRow)
|
|
10068
9814
|
});
|
|
10069
9815
|
|
|
10070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9816
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
10071
9817
|
var reaction = strictObject({
|
|
10072
9818
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
10073
9819
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -10075,7 +9821,7 @@ var reaction = strictObject({
|
|
|
10075
9821
|
reacted_at: time
|
|
10076
9822
|
});
|
|
10077
9823
|
|
|
10078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9824
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
10079
9825
|
var reactionChange = strictObject({
|
|
10080
9826
|
operation_id: id,
|
|
10081
9827
|
chat_id: id,
|
|
@@ -10083,7 +9829,7 @@ var reactionChange = strictObject({
|
|
|
10083
9829
|
reaction: nullable(text)
|
|
10084
9830
|
});
|
|
10085
9831
|
|
|
10086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9832
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
10087
9833
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
10088
9834
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
10089
9835
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -10094,7 +9840,7 @@ var recipientChange = strictObject({
|
|
|
10094
9840
|
...partial(recipientOff).entries
|
|
10095
9841
|
});
|
|
10096
9842
|
|
|
10097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9843
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
10098
9844
|
var events = array(record(string(), unknown()));
|
|
10099
9845
|
var recordedRun = strictObject({
|
|
10100
9846
|
run_id: id,
|
|
@@ -10166,7 +9912,7 @@ var runHit = strictObject({
|
|
|
10166
9912
|
});
|
|
10167
9913
|
var runLocation = strictObject({ path: text });
|
|
10168
9914
|
|
|
10169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9915
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
10170
9916
|
var relationship = strictObject({
|
|
10171
9917
|
id,
|
|
10172
9918
|
from: reference,
|
|
@@ -10193,7 +9939,7 @@ var relationship = strictObject({
|
|
|
10193
9939
|
created_at: time
|
|
10194
9940
|
});
|
|
10195
9941
|
|
|
10196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
10197
9943
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
10198
9944
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
10199
9945
|
var responseTimes = strictObject({
|
|
@@ -10210,7 +9956,7 @@ var waitingChats = strictObject({
|
|
|
10210
9956
|
by_kind: strictObject({ private: count, group: count })
|
|
10211
9957
|
});
|
|
10212
9958
|
|
|
10213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9959
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
10214
9960
|
var retentionCohort = strictObject({
|
|
10215
9961
|
/** The first day of the joining day or week. */
|
|
10216
9962
|
cohort: text,
|
|
@@ -10258,7 +10004,7 @@ var retention = strictObject({
|
|
|
10258
10004
|
rows: array(retentionCohort)
|
|
10259
10005
|
});
|
|
10260
10006
|
|
|
10261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10007
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
10262
10008
|
var savedSearch = strictObject({
|
|
10263
10009
|
id,
|
|
10264
10010
|
/** `null` for a run in the history. */
|
|
@@ -10275,7 +10021,7 @@ var savedSearch = strictObject({
|
|
|
10275
10021
|
});
|
|
10276
10022
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
10277
10023
|
|
|
10278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10024
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
10279
10025
|
var sendAttempt = strictObject({
|
|
10280
10026
|
at: time,
|
|
10281
10027
|
profile: text,
|
|
@@ -10303,7 +10049,7 @@ var sendAttempt = strictObject({
|
|
|
10303
10049
|
error_code: optional(text)
|
|
10304
10050
|
});
|
|
10305
10051
|
|
|
10306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10052
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
10307
10053
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
10308
10054
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
10309
10055
|
var infoSchema = strictObject({
|
|
@@ -10533,7 +10279,7 @@ var storeRepair = union([
|
|
|
10533
10279
|
]);
|
|
10534
10280
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10535
10281
|
|
|
10536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10282
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10537
10283
|
var range = strictObject({ from: number(), to: number() });
|
|
10538
10284
|
var storeChatStatus = strictObject({
|
|
10539
10285
|
chat_id: id,
|
|
@@ -10631,7 +10377,7 @@ var storeJobRetry = union([
|
|
|
10631
10377
|
]);
|
|
10632
10378
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10633
10379
|
|
|
10634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10635
10381
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10636
10382
|
var storeTable = strictObject({
|
|
10637
10383
|
name: text,
|
|
@@ -10640,7 +10386,7 @@ var storeTable = strictObject({
|
|
|
10640
10386
|
bytes: optional(nullable(count))
|
|
10641
10387
|
});
|
|
10642
10388
|
|
|
10643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10389
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10644
10390
|
var tagTarget = variant("type", [
|
|
10645
10391
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10646
10392
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10671,7 +10417,7 @@ var automaticTags = strictObject({
|
|
|
10671
10417
|
dry_run: boolean()
|
|
10672
10418
|
});
|
|
10673
10419
|
|
|
10674
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10420
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10675
10421
|
var tagging = strictObject({
|
|
10676
10422
|
tag: text,
|
|
10677
10423
|
type: picklist(TAG_TYPES),
|
|
@@ -10684,7 +10430,7 @@ var tagging = strictObject({
|
|
|
10684
10430
|
created_at: time
|
|
10685
10431
|
});
|
|
10686
10432
|
|
|
10687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10433
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10688
10434
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10689
10435
|
var taskPair = strictObject({
|
|
10690
10436
|
task: nullable(side),
|
|
@@ -10707,7 +10453,7 @@ var taskPair = strictObject({
|
|
|
10707
10453
|
created_at: time
|
|
10708
10454
|
});
|
|
10709
10455
|
|
|
10710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10456
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10711
10457
|
var nullableTime = nullable(time);
|
|
10712
10458
|
var link = strictObject({
|
|
10713
10459
|
id,
|
|
@@ -10881,7 +10627,7 @@ var taskReview = strictObject({
|
|
|
10881
10627
|
untrusted
|
|
10882
10628
|
});
|
|
10883
10629
|
|
|
10884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10630
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/template.js
|
|
10885
10631
|
var template = strictObject({
|
|
10886
10632
|
key: text,
|
|
10887
10633
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -10893,7 +10639,7 @@ var template = strictObject({
|
|
|
10893
10639
|
updated_by: nullable(text)
|
|
10894
10640
|
});
|
|
10895
10641
|
|
|
10896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10897
10643
|
var topic = strictObject({
|
|
10898
10644
|
id,
|
|
10899
10645
|
title: text,
|
|
@@ -10907,7 +10653,7 @@ var topic = strictObject({
|
|
|
10907
10653
|
untrusted
|
|
10908
10654
|
});
|
|
10909
10655
|
|
|
10910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10911
10657
|
var ENTITIES = {
|
|
10912
10658
|
sync_progress: progress,
|
|
10913
10659
|
deal,
|
|
@@ -10963,6 +10709,8 @@ var ENTITIES = {
|
|
|
10963
10709
|
message_pin: messagePin,
|
|
10964
10710
|
message_star: messageStar,
|
|
10965
10711
|
message_deletion: messageDeletion,
|
|
10712
|
+
scheduled_cancellation: scheduledCancellation,
|
|
10713
|
+
scheduled_send: scheduledSend,
|
|
10966
10714
|
message_transcript: messageTranscript,
|
|
10967
10715
|
message_links: messageLinks,
|
|
10968
10716
|
evidence_packet: evidencePacket,
|
|
@@ -11206,7 +10954,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
11206
10954
|
return [name, definition];
|
|
11207
10955
|
})), "entityDefinitions");
|
|
11208
10956
|
|
|
11209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10957
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
11210
10958
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
11211
10959
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
11212
10960
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -11240,61 +10988,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
11240
10988
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
11241
10989
|
}, "answerRow");
|
|
11242
10990
|
|
|
11243
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11244
|
-
import { join as join5 } from "node:path";
|
|
11245
|
-
var clip = /* @__PURE__ */ __name((name) => `https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/d15189d7028b43f1d3e65039190477f6af591c2a/${name}`, "clip");
|
|
11246
|
-
var IMAGE_MODELS = [
|
|
11247
|
-
{
|
|
11248
|
-
id: "clip-b32",
|
|
11249
|
-
title: "CLIP ViT-B/32, 8-bit",
|
|
11250
|
-
languages: "English only: translate a query before searching",
|
|
11251
|
-
licence: "MIT",
|
|
11252
|
-
dims: 512,
|
|
11253
|
-
key: "local:clip-b32:512",
|
|
11254
|
-
maxTokens: 77,
|
|
11255
|
-
vision: "onnx/vision_model_quantized.onnx",
|
|
11256
|
-
text: "onnx/text_model_quantized.onnx",
|
|
11257
|
-
files: [
|
|
11258
|
-
{
|
|
11259
|
-
name: "onnx/vision_model_quantized.onnx",
|
|
11260
|
-
url: clip("onnx/vision_model_quantized.onnx"),
|
|
11261
|
-
sha256: "583fd1110a514667812fee7d684952aaf82a99b959760c8d7dca7e0ab9839299",
|
|
11262
|
-
bytes: 89117001
|
|
11263
|
-
},
|
|
11264
|
-
{
|
|
11265
|
-
name: "onnx/text_model_quantized.onnx",
|
|
11266
|
-
url: clip("onnx/text_model_quantized.onnx"),
|
|
11267
|
-
sha256: "73baab855d406190da9faa498cfedf65f15cf309f4cc7385b7b032e6d08e5c3a",
|
|
11268
|
-
bytes: 64504507
|
|
11269
|
-
},
|
|
11270
|
-
{
|
|
11271
|
-
name: "tokenizer.json",
|
|
11272
|
-
url: clip("tokenizer.json"),
|
|
11273
|
-
sha256: "f7f3b7af117d467b58374797691a6438d3e6b9e9cef800dfd5dced7f697a90cd",
|
|
11274
|
-
bytes: 2224119
|
|
11275
|
-
},
|
|
11276
|
-
{
|
|
11277
|
-
name: "tokenizer_config.json",
|
|
11278
|
-
url: clip("tokenizer_config.json"),
|
|
11279
|
-
sha256: "60ba2912bc6344c94bc16bbdec27fa1209409167b6f2fdf3cfe9e65462ea3967",
|
|
11280
|
-
bytes: 775
|
|
11281
|
-
}
|
|
11282
|
-
]
|
|
11283
|
-
}
|
|
11284
|
-
];
|
|
11285
|
-
var DEFAULT_IMAGE_MODEL = "clip-b32";
|
|
11286
|
-
var imageModel = /* @__PURE__ */ __name((id6) => {
|
|
11287
|
-
const found = IMAGE_MODELS.find((model3) => model3.id === id6);
|
|
11288
|
-
if (!found) {
|
|
11289
|
-
throw new CliError("validation_error", `no image model ${id6} \u2014 one of: ${IMAGE_MODELS.map((model3) => model3.id).join(", ")}`);
|
|
11290
|
-
}
|
|
11291
|
-
return found;
|
|
11292
|
-
}, "imageModel");
|
|
11293
|
-
var imageModelsDirectory = /* @__PURE__ */ __name((env = process.env) => sharedModelsDirectory("image", env), "imageModelsDirectory");
|
|
11294
|
-
var placedImage = /* @__PURE__ */ __name((model3, directory) => model3.files.map((file) => [file, join5(directory, model3.id, file.name)]), "placedImage");
|
|
11295
|
-
var isImageModelInstalled = /* @__PURE__ */ __name((model3, directory) => filesPresent(placedImage(model3, directory)), "isImageModelInstalled");
|
|
11296
|
-
|
|
11297
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
10991
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11298
10992
|
var STEPS2 = defineSteps([
|
|
11299
10993
|
...STEPS,
|
|
11300
10994
|
{
|
|
@@ -11584,7 +11278,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11584
11278
|
].join(" ");
|
|
11585
11279
|
}, "stepLine");
|
|
11586
11280
|
|
|
11587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11281
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11588
11282
|
var where = [{ field: "ref" }];
|
|
11589
11283
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11590
11284
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11676,7 +11370,7 @@ var STATUS_ROWS = {
|
|
|
11676
11370
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11677
11371
|
};
|
|
11678
11372
|
|
|
11679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11373
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11680
11374
|
var TEXT_CHARS = 400;
|
|
11681
11375
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11682
11376
|
var messageRow = {
|
|
@@ -12044,7 +11738,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
12044
11738
|
return lines.concat(footerOf(body)).join("\n");
|
|
12045
11739
|
}, "compactText");
|
|
12046
11740
|
|
|
12047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
12048
11742
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
12049
11743
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
12050
11744
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12102,7 +11796,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12102
11796
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12103
11797
|
}, "largeAnswerSteps");
|
|
12104
11798
|
|
|
12105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
12106
11800
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12107
11801
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12108
11802
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12116,7 +11810,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12116
11810
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12117
11811
|
}, "strip");
|
|
12118
11812
|
|
|
12119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11813
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
|
|
12120
11814
|
var OPEN = "\u27E6";
|
|
12121
11815
|
var CLOSE = "\u27E7";
|
|
12122
11816
|
var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -12125,6 +11819,10 @@ var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
|
12125
11819
|
const mark = ancestorValue(envName(app, "UNTRUSTED_MARK"), env);
|
|
12126
11820
|
return mark && /^[0-9a-f]{16}$/.test(mark) ? mark : void 0;
|
|
12127
11821
|
}, "untrustedMarkOf");
|
|
11822
|
+
var runMarkOf = /* @__PURE__ */ __name((command) => {
|
|
11823
|
+
const { app, env } = environmentOf(command);
|
|
11824
|
+
return app ? untrustedMarkOf(app, env ?? process.env) : void 0;
|
|
11825
|
+
}, "runMarkOf");
|
|
12128
11826
|
var marked = /* @__PURE__ */ __name((text5, mark, source2, id6) => {
|
|
12129
11827
|
const inside = text5.replaceAll(OPEN, "").replaceAll(CLOSE, "").replaceAll(mark, "");
|
|
12130
11828
|
const named3 = id6 === void 0 ? "" : ` id=${id6.replaceAll(OPEN, "").replaceAll(CLOSE, "").replace(/\s/g, "")}`;
|
|
@@ -12200,7 +11898,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
|
|
|
12200
11898
|
return result;
|
|
12201
11899
|
}, "withFieldsMarked");
|
|
12202
11900
|
|
|
12203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11901
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
12204
11902
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12205
11903
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12206
11904
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12330,8 +12028,7 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
|
|
|
12330
12028
|
const root = rootOf2(command);
|
|
12331
12029
|
const runnableSteps = runnable(root, body.next);
|
|
12332
12030
|
const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
|
|
12333
|
-
const
|
|
12334
|
-
const mark = app ? untrustedMarkOf(app, env ?? process.env) : void 0;
|
|
12031
|
+
const mark = runMarkOf(command);
|
|
12335
12032
|
const declared = untrustedFieldsOf(command);
|
|
12336
12033
|
const shown = mark === void 0 ? body : withUntrustedMarked(declared ? withFieldsMarked(body, declared, mark) : body, mark);
|
|
12337
12034
|
const kept = withoutProviderRefs({ ...shown, ...next.length > 0 ? { next } : {} });
|
|
@@ -12375,14 +12072,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
|
|
|
12375
12072
|
}, "printItem");
|
|
12376
12073
|
|
|
12377
12074
|
export {
|
|
12378
|
-
modelTarget,
|
|
12379
12075
|
resolveAISettings,
|
|
12380
|
-
envName,
|
|
12381
|
-
ancestorValue,
|
|
12382
|
-
readOnlyLockOf,
|
|
12383
|
-
mailHolderVariable,
|
|
12384
|
-
MESSENGER_CHANGE_REFUSAL,
|
|
12385
|
-
readOnlyRefusal,
|
|
12386
12076
|
recordLogFor,
|
|
12387
12077
|
parseDuration,
|
|
12388
12078
|
WEIGHTS,
|
|
@@ -12456,18 +12146,12 @@ export {
|
|
|
12456
12146
|
readKeysForCommand,
|
|
12457
12147
|
keyForCommand,
|
|
12458
12148
|
assertRetentionEvidenceRead,
|
|
12459
|
-
ANSWER_RESERVE_MS,
|
|
12460
|
-
deadlineMargin,
|
|
12461
12149
|
recorded,
|
|
12462
12150
|
startRecording,
|
|
12463
12151
|
wasSettled,
|
|
12464
12152
|
inCommandServerRequest,
|
|
12465
12153
|
commandServerRequest,
|
|
12466
12154
|
exitCodeSet,
|
|
12467
|
-
sentIds,
|
|
12468
|
-
currentOperation,
|
|
12469
|
-
guardedWrite,
|
|
12470
|
-
codeOf,
|
|
12471
12155
|
DEFAULT_COMMAND_MS,
|
|
12472
12156
|
DEFAULT_COOPERATIVE_MS,
|
|
12473
12157
|
DEFAULT_SYNC_MS,
|
|
@@ -12579,12 +12263,6 @@ export {
|
|
|
12579
12263
|
topic,
|
|
12580
12264
|
ENTITIES,
|
|
12581
12265
|
entityDefinitions,
|
|
12582
|
-
IMAGE_MODELS,
|
|
12583
|
-
DEFAULT_IMAGE_MODEL,
|
|
12584
|
-
imageModel,
|
|
12585
|
-
imageModelsDirectory,
|
|
12586
|
-
placedImage,
|
|
12587
|
-
isImageModelInstalled,
|
|
12588
12266
|
answerEntity,
|
|
12589
12267
|
answerEntitySchema,
|
|
12590
12268
|
answerProjectionSchema,
|
|
@@ -12601,6 +12279,8 @@ export {
|
|
|
12601
12279
|
stepLine,
|
|
12602
12280
|
tooLargeSteps,
|
|
12603
12281
|
withoutProviderRefs,
|
|
12282
|
+
runMarkOf,
|
|
12283
|
+
withUntrustedMarked,
|
|
12604
12284
|
marksUntrusted,
|
|
12605
12285
|
answerSchema,
|
|
12606
12286
|
listOf,
|