@wirecat/notion-cli 0.5.0 → 0.7.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 +47 -0
- package/README.md +5 -0
- package/contracts/wirecat.json +55 -2
- package/dist/bin/notion.js +2 -2
- package/dist/bundle/agent-AILW4JPO.js +42 -0
- package/dist/bundle/{all-profiles-V37KCXH3.js → all-profiles-CKOACXTW.js} +64 -21
- package/dist/bundle/{anthropic-Q4S3BYXD.js → anthropic-DWBBVTU3.js} +6 -6
- package/dist/bundle/{app-server-43SR3ACI.js → app-server-BHFYNCDE.js} +86 -65
- package/dist/bundle/{bun-M3J2QTR3.js → bun-ICK2XT7J.js} +2 -2
- package/dist/bundle/{bun-sqlite-EJ3W2PSV.js → bun-sqlite-LU5V5Y4A.js} +7 -7
- package/dist/bundle/{chunk-KHWOLBHQ.js → chunk-2OZVCNU5.js} +2 -2
- package/dist/bundle/{chunk-O5YB7FQD.js → chunk-2RNJ2JP3.js} +4 -4
- package/dist/bundle/{chunk-TP7GDWVF.js → chunk-364ET7LV.js} +1 -1
- package/dist/bundle/{chunk-TDNURSU6.js → chunk-3AKMIKND.js} +19 -19
- package/dist/bundle/{chunk-O3DYRCIT.js → chunk-3DGHBXH2.js} +1 -1
- package/dist/bundle/chunk-3KOJNZH3.js +80 -0
- package/dist/bundle/{chunk-DSP36YHQ.js → chunk-3T3OAYL4.js} +2 -2
- package/dist/bundle/{chunk-W7HM2VGO.js → chunk-3YXYA6HB.js} +1 -1
- package/dist/bundle/chunk-3ZSUVFR7.js +398 -0
- package/dist/bundle/{chunk-GCZ6MAEN.js → chunk-46JBCXLI.js} +43 -64
- package/dist/bundle/{chunk-DB2XKHI4.js → chunk-4FHKSSXQ.js} +2 -2
- package/dist/bundle/chunk-4HP6KGBI.js +32 -0
- package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
- package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
- package/dist/bundle/{chunk-BNEE35WD.js → chunk-5NFIUY2P.js} +4 -4
- package/dist/bundle/{chunk-E5WLE7BM.js → chunk-63SW4UXG.js} +3 -4
- package/dist/bundle/{chunk-NHHJHXMQ.js → chunk-64IK7JFO.js} +2 -2
- package/dist/bundle/{chunk-HZRQLAHO.js → chunk-6MQSBWWF.js} +1 -1
- package/dist/bundle/{chunk-2FJNMADN.js → chunk-6UZ5D2WP.js} +10 -10
- package/dist/bundle/chunk-6VPC5Z56.js +2145 -0
- package/dist/bundle/chunk-7COTHS6G.js +388 -0
- package/dist/bundle/{chunk-TOSCB4SO.js → chunk-A3RJ6FD5.js} +29 -10
- package/dist/bundle/chunk-ADCAWRRX.js +2366 -0
- package/dist/bundle/{chunk-PPHBRESD.js → chunk-ALAPDLCP.js} +2 -2
- package/dist/bundle/{chunk-ONZVPE24.js → chunk-B6DJQBZI.js} +6 -6
- package/dist/bundle/{chunk-N2XADGL4.js → chunk-BFCRGLOF.js} +4 -4
- package/dist/bundle/{chunk-5P5TXU2K.js → chunk-BFHPT67P.js} +9581 -10764
- package/dist/bundle/{chunk-NA6QLHBZ.js → chunk-BQ6CXCLP.js} +10 -8
- package/dist/bundle/{chunk-JCKWQGCD.js → chunk-BXXHUO7Y.js} +110 -862
- package/dist/bundle/chunk-DCSPCOPB.js +221 -0
- package/dist/bundle/chunk-DQSOYH6N.js +20 -0
- package/dist/bundle/chunk-ECYOTDJM.js +14 -0
- package/dist/bundle/chunk-EMIJVLOA.js +30 -0
- package/dist/bundle/{chunk-DFCHHR5M.js → chunk-EUF5JNPG.js} +1 -1
- package/dist/bundle/{chunk-RIGE67FR.js → chunk-EWXMIKZN.js} +43 -33
- package/dist/bundle/chunk-F4BX7TH2.js +15 -0
- package/dist/bundle/{chunk-QYXWRKNA.js → chunk-FHYV4VWY.js} +16 -9
- package/dist/bundle/{chunk-WE4UFASG.js → chunk-FNESLLZS.js} +29 -1
- package/dist/bundle/chunk-FO3XY2Y2.js +108 -0
- package/dist/bundle/chunk-HJDQTM3T.js +353 -0
- package/dist/bundle/chunk-HOO53OYK.js +561 -0
- package/dist/bundle/{chunk-KHZ2RGXI.js → chunk-HSVKU4OJ.js} +153 -572
- package/dist/bundle/{chunk-CDK5E45T.js → chunk-IEY7KS6Q.js} +2 -100
- package/dist/bundle/{chunk-RJMQGG3P.js → chunk-ITW26OBI.js} +65 -49
- package/dist/bundle/{chunk-FBZI4Z3Z.js → chunk-ITWINZ6R.js} +13 -26
- package/dist/bundle/{chunk-J3NKZ6MO.js → chunk-IYZWHCZJ.js} +155 -435
- package/dist/bundle/{chunk-W53EJOFQ.js → chunk-J3DZVB67.js} +1 -1
- package/dist/bundle/{chunk-FKA7DOCK.js → chunk-JEZJFQQW.js} +1 -1
- package/dist/bundle/chunk-JPGN473W.js +50 -0
- package/dist/bundle/{chunk-NTG657MI.js → chunk-JVRBW5LH.js} +7 -64
- package/dist/bundle/chunk-KBY42GKW.js +785 -0
- package/dist/bundle/{chunk-DO7BLXO3.js → chunk-KWBLDSRV.js} +16 -3
- package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
- package/dist/bundle/{chunk-PWRRDDMZ.js → chunk-LBRTLZHI.js} +249 -555
- package/dist/bundle/{chunk-B3FSLAIU.js → chunk-LEPPRULN.js} +20 -6
- package/dist/bundle/{chunk-WPP76PSX.js → chunk-LVAFTQ45.js} +32 -24
- package/dist/bundle/{chunk-PAW6RRCW.js → chunk-MB4HXDBT.js} +8 -210
- package/dist/bundle/chunk-MEYYH47C.js +25 -0
- package/dist/bundle/{chunk-UZSBGECU.js → chunk-N3NJPHZB.js} +1 -65
- package/dist/bundle/{chunk-BWLBSQSU.js → chunk-NCCRLAAI.js} +4 -4
- package/dist/bundle/chunk-NMQRSEZM.js +37 -0
- package/dist/bundle/{chunk-H3E2PZ5Y.js → chunk-NV7NNL5T.js} +7 -7
- package/dist/bundle/chunk-OALFRUMI.js +67 -0
- package/dist/bundle/{chunk-CWXOXIWS.js → chunk-OCGNOJYD.js} +1 -1
- package/dist/bundle/chunk-OFMCU3BH.js +72 -0
- package/dist/bundle/{chunk-MGUEZYFA.js → chunk-OLAGFJDM.js} +13 -2143
- package/dist/bundle/{chunk-E2AFUJDR.js → chunk-OP2BH55P.js} +3 -3
- package/dist/bundle/{chunk-P5BHKKBI.js → chunk-OS4WPXPZ.js} +4 -4
- package/dist/bundle/{chunk-XUPN2EHR.js → chunk-OW5HW3TD.js} +23 -7
- package/dist/bundle/{chunk-ECC2UX7X.js → chunk-PDVXG3T3.js} +6 -6
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-G2MJYXZG.js → chunk-PSMRUOII.js} +4 -4
- package/dist/bundle/{chunk-DBEQI5YM.js → chunk-QK52ARAU.js} +3 -3
- package/dist/bundle/{chunk-QWYMXFKM.js → chunk-QMNEDK7Z.js} +3 -3
- package/dist/bundle/chunk-R4JV3VLU.js +714 -0
- package/dist/bundle/{chunk-C32AKHTY.js → chunk-REOBWSGV.js} +35 -12
- package/dist/bundle/{chunk-X2M6NIQG.js → chunk-RNVYNPXT.js} +1 -1
- package/dist/bundle/{chunk-HHVFIXDO.js → chunk-RXGX2CZX.js} +399 -399
- package/dist/bundle/{chunk-W5JZMXGW.js → chunk-S35UJBFZ.js} +75 -75
- package/dist/bundle/{chunk-MVA5HVKL.js → chunk-S4UUN6LD.js} +18 -0
- package/dist/bundle/chunk-S5P7THM5.js +72 -0
- package/dist/bundle/{chunk-NE43YXKL.js → chunk-SRVTGI3M.js} +3 -3
- package/dist/bundle/chunk-TRYYWV7J.js +291 -0
- package/dist/bundle/chunk-TWY543BS.js +39 -0
- package/dist/bundle/{chunk-KFVDL2QS.js → chunk-UC7JLE6J.js} +1 -89
- package/dist/bundle/{chunk-3RL2MIUF.js → chunk-UO4O6WQ4.js} +8 -8
- package/dist/bundle/chunk-UPL474OW.js +94 -0
- package/dist/bundle/chunk-UQVUXG7H.js +594 -0
- package/dist/bundle/chunk-UYEDQGMI.js +340 -0
- package/dist/bundle/chunk-VNWF4I7E.js +34 -0
- package/dist/bundle/{chunk-FPUGMDJV.js → chunk-VRBEYOJL.js} +1 -1
- package/dist/bundle/{chunk-BBSFQ3PU.js → chunk-VXKD533R.js} +1646 -1337
- package/dist/bundle/{chunk-ECEZOLOD.js → chunk-VYZ2J7DT.js} +4 -4
- package/dist/bundle/{chunk-TD2JZ25O.js → chunk-WJFQMOVM.js} +113 -80
- package/dist/bundle/{chunk-MNRMKWCN.js → chunk-WUNEJRLJ.js} +6 -6
- package/dist/bundle/chunk-WVN2KTNS.js +52 -0
- package/dist/bundle/{chunk-GTY6N5KZ.js → chunk-X5LUHN62.js} +2 -2
- package/dist/bundle/{chunk-LBYGJKXW.js → chunk-X737FHZP.js} +4 -4
- package/dist/bundle/chunk-YHWFF6DN.js +39 -0
- package/dist/bundle/chunk-YSF5JBRA.js +36 -0
- package/dist/bundle/{chunk-QIG55MZH.js → chunk-ZGUUP2T3.js} +12 -12
- package/dist/bundle/{chunk-AT5I34AN.js → chunk-ZMKAI3F3.js} +3 -3
- package/dist/bundle/command-contract-C2CF4QAH.js +41 -0
- package/dist/bundle/{command-server-entry-LJ627ZUA.js → command-server-entry-F3B2KSPO.js} +30 -27
- package/dist/bundle/{decode-PX2LZ5Y2.js → decode-FDHFF7GC.js} +6 -6
- package/dist/bundle/{definitions-M3U4UYHN.js → definitions-MB65223J.js} +72 -18
- package/dist/bundle/{dispatch-KOISQ5QJ.js → dispatch-IXKG5Z5Y.js} +8 -8
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{echarts-FVTUDXDU.js → echarts-PGJPVPA4.js} +2 -2
- package/dist/bundle/{embed-CCSDK43I.js → embed-U6X7CNNK.js} +7 -7
- package/dist/bundle/{embedder-VHI4DHB7.js → embedder-3ROL6ROQ.js} +10 -10
- package/dist/bundle/{failure-FZ6VYKEQ.js → failure-IYMRXM2X.js} +3 -3
- package/dist/bundle/first-run-PNVNHGR7.js +29 -0
- package/dist/bundle/first-screen-DEDD64YH.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-MJQWRI2D.js} +1 -1
- package/dist/bundle/{mcp-RGNRW77S.js → mcp-JNHOSK4L.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-HEC25QPY.js +25 -0
- package/dist/bundle/meeting-model-R7QPDNZZ.js +27 -0
- package/dist/bundle/{meeting-semantic-UD26T37N.js → meeting-semantic-7WPLMBNT.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-3UXNV3CD.js} +2 -2
- package/dist/bundle/{node-sqlite-ME7KMORI.js → node-sqlite-ULWDWM3I.js} +8 -8
- package/dist/bundle/notes-search-7PE3E3C7.js +64 -0
- package/dist/bundle/notion.js +14 -14
- package/dist/bundle/oauth-LNUZMA72.js +20 -0
- package/dist/bundle/{open-HA6D3SXR.js → open-HGHC35M4.js} +6 -6
- package/dist/bundle/{openai-H5AJPZBX.js → openai-ISSP57MV.js} +21 -18
- package/dist/bundle/{process-5RUXWGYS.js → process-PB2WCOR2.js} +1 -1
- package/dist/bundle/{program-F3NBTZ7J.js → program-GASBJRMG.js} +7574 -7047
- package/dist/bundle/{prompt-6XSUOLHK.js → prompt-3VGQVX2B.js} +6 -6
- package/dist/bundle/{recognize-2Y7AUVGG.js → recognize-7Q2P3NME.js} +5 -5
- package/dist/bundle/{remote-KCABPXQ3.js → remote-BBAWKVIT.js} +12 -11
- package/dist/bundle/{rerank-BTN7LUVA.js → rerank-H4PUS4HV.js} +8 -8
- package/dist/bundle/{schemas-VVLTLMXS.js → schemas-TTVUADHT.js} +39 -60
- package/dist/bundle/{serve-CYEMVRFC.js → serve-FZNSKY7R.js} +11 -11
- package/dist/bundle/{server-WFIICGMI.js → server-BRRNDW6L.js} +78 -56
- package/dist/bundle/server-CQJ4LKAZ.js +90 -0
- package/dist/bundle/{services-L4W6ZWDG.js → services-PEU557KZ.js} +103 -88
- package/dist/bundle/{sqlite-runtime-IKMYLRQC.js → sqlite-runtime-4IZJ4YUM.js} +7 -7
- package/dist/bundle/{state-LMUP636P.js → state-MX3JVT5Q.js} +7 -7
- package/dist/bundle/{store-W2JC2JP4.js → store-JUT34REM.js} +24 -20
- package/dist/bundle/{store-A2QZFBOX.js → store-PP4BPADZ.js} +30 -18
- package/dist/bundle/store-maintenance-command-GRFTJBSB.js +77 -0
- package/dist/bundle/surface-FPWES3NY.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 -141
- package/dist/commands/api.js.map +1 -1
- package/dist/commands/library.d.ts.map +1 -1
- package/dist/commands/library.js +14 -6
- 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/context.d.ts +11 -3
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +20 -7
- package/dist/context.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/generated/wirecat-config.d.ts +13 -0
- package/dist/generated/wirecat-config.d.ts.map +1 -0
- package/dist/generated/wirecat-config.js +82 -0
- package/dist/generated/wirecat-config.js.map +1 -0
- package/dist/library.d.ts +3 -0
- package/dist/library.d.ts.map +1 -1
- package/dist/library.js +11 -1
- package/dist/library.js.map +1 -1
- package/dist/notion/client.d.ts +2 -6
- package/dist/notion/client.d.ts.map +1 -1
- package/dist/notion/client.js +7 -8
- package/dist/notion/client.js.map +1 -1
- package/dist/notion/errors.d.ts +5 -0
- package/dist/notion/errors.d.ts.map +1 -1
- package/dist/notion/errors.js +21 -1
- package/dist/notion/errors.js.map +1 -1
- package/dist/notion/port.d.ts +10 -0
- package/dist/notion/port.d.ts.map +1 -1
- package/dist/notion/port.js +19 -0
- package/dist/notion/port.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/from-config.d.ts +13 -0
- package/dist/sync/from-config.d.ts.map +1 -0
- package/dist/sync/from-config.js +32 -0
- package/dist/sync/from-config.js.map +1 -0
- package/dist/sync/source.d.ts +2 -1
- package/dist/sync/source.d.ts.map +1 -1
- package/dist/sync/source.js +48 -48
- package/dist/sync/source.js.map +1 -1
- package/dist/sync/users.d.ts +4 -1
- package/dist/sync/users.d.ts.map +1 -1
- package/dist/sync/users.js +3 -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 +8 -8
- 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-BQ6CXCLP.js";
|
|
13
13
|
import {
|
|
14
14
|
permissionCeiling
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZMKAI3F3.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-3ZSUVFR7.js";
|
|
16
28
|
import {
|
|
17
29
|
DEFAULT_RERANK_MODEL,
|
|
18
30
|
RERANK_MODELS
|
|
19
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-B6DJQBZI.js";
|
|
20
32
|
import {
|
|
21
33
|
carries
|
|
22
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-J3DZVB67.js";
|
|
23
35
|
import {
|
|
24
36
|
note
|
|
25
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-NCCRLAAI.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-KBY42GKW.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-BXXHUO7Y.js";
|
|
84
98
|
import {
|
|
85
99
|
isCliFailure,
|
|
86
100
|
storeDamaged
|
|
87
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-S5P7THM5.js";
|
|
88
102
|
import {
|
|
89
103
|
TAG_TYPES
|
|
90
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-3T3OAYL4.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-RXGX2CZX.js";
|
|
119
133
|
import {
|
|
120
134
|
endpoint
|
|
121
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-OP2BH55P.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-NV7NNL5T.js";
|
|
130
140
|
import {
|
|
131
141
|
storePath
|
|
132
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-X5LUHN62.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-S35UJBFZ.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-A3RJ6FD5.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-4FHKSSXQ.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.125.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.125.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.125.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.125.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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/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" };
|
|
@@ -6577,7 +6309,12 @@ var destroysNothing = /* @__PURE__ */ __name((command) => {
|
|
|
6577
6309
|
KEPT_UNDER_LOCK.add(command);
|
|
6578
6310
|
return command;
|
|
6579
6311
|
}, "destroysNothing");
|
|
6580
|
-
var PROPOSE_COMMANDS = [
|
|
6312
|
+
var PROPOSE_COMMANDS = [
|
|
6313
|
+
"messages acknowledge",
|
|
6314
|
+
"mail findings add",
|
|
6315
|
+
"projects actions add",
|
|
6316
|
+
"meetings actions add"
|
|
6317
|
+
];
|
|
6581
6318
|
var PROPOSES = /* @__PURE__ */ new WeakSet();
|
|
6582
6319
|
var isProposal = /* @__PURE__ */ __name((command) => {
|
|
6583
6320
|
if (!PROPOSES.has(command))
|
|
@@ -6677,7 +6414,7 @@ var refuseUnderReadOnly = /* @__PURE__ */ __name((command, what) => {
|
|
|
6677
6414
|
throw readOnlyRefusal(lock, what);
|
|
6678
6415
|
}, "refuseUnderReadOnly");
|
|
6679
6416
|
|
|
6680
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6417
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/account.js
|
|
6681
6418
|
var account = strictObject({
|
|
6682
6419
|
provider: text,
|
|
6683
6420
|
id,
|
|
@@ -6687,7 +6424,7 @@ var account = strictObject({
|
|
|
6687
6424
|
scope: optional(picklist(["personal", "work"]))
|
|
6688
6425
|
});
|
|
6689
6426
|
|
|
6690
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6427
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/account-session.js
|
|
6691
6428
|
var accountSession = strictObject({
|
|
6692
6429
|
current: boolean(),
|
|
6693
6430
|
client: nullable(text),
|
|
@@ -6697,7 +6434,7 @@ var accountSession = strictObject({
|
|
|
6697
6434
|
created_at: optional(nullable(time))
|
|
6698
6435
|
});
|
|
6699
6436
|
|
|
6700
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6437
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/account-change.js
|
|
6701
6438
|
var accountChange = strictObject({ operation_id: id, account: omit(account, ["provider", "scope"]) });
|
|
6702
6439
|
var endedAccountSessions = strictObject({ operation_id: id, sessions: array(accountSession) });
|
|
6703
6440
|
var audience = picklist(["everyone", "contacts", "nobody"]);
|
|
@@ -6726,7 +6463,7 @@ var accountRemoval = strictObject({
|
|
|
6726
6463
|
kept: array(strictObject({ kind: removalKind, target: text, reason: text }))
|
|
6727
6464
|
});
|
|
6728
6465
|
|
|
6729
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6466
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/account-profile.js
|
|
6730
6467
|
var accountProfile = strictObject({
|
|
6731
6468
|
profile: id,
|
|
6732
6469
|
current: boolean(),
|
|
@@ -6738,7 +6475,7 @@ var accountProfile = strictObject({
|
|
|
6738
6475
|
bot: optional(literal(true))
|
|
6739
6476
|
});
|
|
6740
6477
|
|
|
6741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6478
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/counter-reading.js
|
|
6742
6479
|
var milliseconds = pipe(number(), minValue(0));
|
|
6743
6480
|
var counterReading = strictObject({
|
|
6744
6481
|
counter: picklist(["views", "reactions", "comments"]),
|
|
@@ -6750,7 +6487,7 @@ var counterReading = strictObject({
|
|
|
6750
6487
|
});
|
|
6751
6488
|
var selection = record(string(), unknown());
|
|
6752
6489
|
|
|
6753
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6490
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/admin-report.js
|
|
6754
6491
|
var adminRow = strictObject({
|
|
6755
6492
|
ref: reference,
|
|
6756
6493
|
/** What `stats * evidence` takes: a person id, a stay or a message locator. */
|
|
@@ -6803,7 +6540,7 @@ var adminReport = strictObject({
|
|
|
6803
6540
|
rows: array(adminRow)
|
|
6804
6541
|
});
|
|
6805
6542
|
|
|
6806
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/task.js
|
|
6807
6544
|
var closeSuggestion = strictObject({
|
|
6808
6545
|
as: picklist(["done", "dismissed"]),
|
|
6809
6546
|
/** The agent's name. */
|
|
@@ -6865,7 +6602,7 @@ var task = strictObject({
|
|
|
6865
6602
|
updated_at: optional(time)
|
|
6866
6603
|
});
|
|
6867
6604
|
|
|
6868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6605
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/agenda.js
|
|
6869
6606
|
var agendaChat = strictObject({
|
|
6870
6607
|
chat: reference,
|
|
6871
6608
|
title: nullable(text),
|
|
@@ -6935,11 +6672,11 @@ var agenda = strictObject({
|
|
|
6935
6672
|
unlisted_categories: array(strictObject({ name: text, open_tasks: number() }))
|
|
6936
6673
|
});
|
|
6937
6674
|
|
|
6938
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/analysis-consent.js
|
|
6939
6676
|
var analysisConsent = strictObject({ chat: id, provider: text, at: time });
|
|
6940
6677
|
var analysisConsentRevocation = strictObject({ revoked: boolean() });
|
|
6941
6678
|
|
|
6942
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6679
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/attachment.js
|
|
6943
6680
|
var attachment = strictObject({
|
|
6944
6681
|
/** The message it came with, as a locator; absent inside that message. */
|
|
6945
6682
|
message: optional(reference),
|
|
@@ -6984,7 +6721,7 @@ var hitFile = strictObject({
|
|
|
6984
6721
|
local_path: optional(text)
|
|
6985
6722
|
});
|
|
6986
6723
|
|
|
6987
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6724
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/batch-result.js
|
|
6988
6725
|
var actionableError = objectWithRest({
|
|
6989
6726
|
code: text,
|
|
6990
6727
|
message: text,
|
|
@@ -7001,7 +6738,7 @@ var batchResult = strictObject({
|
|
|
7001
6738
|
max_error_percent: count
|
|
7002
6739
|
});
|
|
7003
6740
|
|
|
7004
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6741
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/extraction-report.js
|
|
7005
6742
|
var extractionItem = strictObject({
|
|
7006
6743
|
ref: reference,
|
|
7007
6744
|
attachment: count,
|
|
@@ -7034,7 +6771,7 @@ var extractionReport = strictObject({
|
|
|
7034
6771
|
cursor: optional(text)
|
|
7035
6772
|
});
|
|
7036
6773
|
|
|
7037
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6774
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/attachment-results.js
|
|
7038
6775
|
var fingerprint = pipe(text, regex(/^[a-f0-9]{64}$/));
|
|
7039
6776
|
var attachmentBytes = strictObject({
|
|
7040
6777
|
ref: reference,
|
|
@@ -7065,7 +6802,7 @@ var attachmentTextChange = strictObject({
|
|
|
7065
6802
|
text: optional(text)
|
|
7066
6803
|
});
|
|
7067
6804
|
|
|
7068
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/botcheck/reasons.js
|
|
7069
6806
|
var WEIGHTS = {
|
|
7070
6807
|
bot: 3,
|
|
7071
6808
|
scam: 3,
|
|
@@ -7090,7 +6827,7 @@ var LINK = /https?:\/\/|t\.me\/|www\./i;
|
|
|
7090
6827
|
var DIGITS = /\d{5,}/;
|
|
7091
6828
|
var oddName = /* @__PURE__ */ __name((name) => !name?.trim() || DIGITS.test(name) || LINK.test(name), "oddName");
|
|
7092
6829
|
|
|
7093
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6830
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/contact-activity.js
|
|
7094
6831
|
var linkedIdentity = strictObject({
|
|
7095
6832
|
provider: text,
|
|
7096
6833
|
id,
|
|
@@ -7145,7 +6882,7 @@ var contactCheck = strictObject({
|
|
|
7145
6882
|
checked_at: time
|
|
7146
6883
|
});
|
|
7147
6884
|
|
|
7148
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6885
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/member.js
|
|
7149
6886
|
var member = strictObject({
|
|
7150
6887
|
id,
|
|
7151
6888
|
name: nullable(text),
|
|
@@ -7168,7 +6905,7 @@ var member = strictObject({
|
|
|
7168
6905
|
check: optional(record(string(), unknown()))
|
|
7169
6906
|
});
|
|
7170
6907
|
|
|
7171
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6908
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/chat.js
|
|
7172
6909
|
var setting = optional(nullable(boolean()));
|
|
7173
6910
|
var chat = strictObject({
|
|
7174
6911
|
ref: reference,
|
|
@@ -7209,7 +6946,7 @@ var chat = strictObject({
|
|
|
7209
6946
|
members: optional(array(member))
|
|
7210
6947
|
});
|
|
7211
6948
|
|
|
7212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
6949
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/message.js
|
|
7213
6950
|
var quoted = strictObject({
|
|
7214
6951
|
id,
|
|
7215
6952
|
sender_id: nullable(id),
|
|
@@ -7323,12 +7060,14 @@ var message = strictObject({
|
|
|
7323
7060
|
/** Mail `review`: no earlier stored email, in any account, came from this address. */
|
|
7324
7061
|
new_sender: optional(boolean()),
|
|
7325
7062
|
/** Mail `review`: how many identities the sender's person has; 1 is this address alone. */
|
|
7326
|
-
sender_identities: optional(number())
|
|
7063
|
+
sender_identities: optional(number()),
|
|
7064
|
+
/** Mail `review`: how `inbox` sorted the thread, by the AI model; the reason is untrusted. */
|
|
7065
|
+
inbox: optional(strictObject({ bucket: picklist(["answer", "read", "later"]), reason: text }))
|
|
7327
7066
|
})),
|
|
7328
7067
|
provider_metadata: providerMetadata
|
|
7329
7068
|
});
|
|
7330
7069
|
|
|
7331
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7070
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/recorded-meeting.js
|
|
7332
7071
|
var recordedMeeting = strictObject({
|
|
7333
7072
|
ref: reference,
|
|
7334
7073
|
meeting_id: count,
|
|
@@ -7345,7 +7084,7 @@ var recordedMeeting = strictObject({
|
|
|
7345
7084
|
call: optional(meetingCall)
|
|
7346
7085
|
});
|
|
7347
7086
|
|
|
7348
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7087
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/contact-context.js
|
|
7349
7088
|
var contextPerson = strictObject({ ...linkedPerson.entries, provider: text, id });
|
|
7350
7089
|
var contextMessage = strictObject({
|
|
7351
7090
|
locator: reference,
|
|
@@ -7551,7 +7290,7 @@ var contactPreparation = strictObject({
|
|
|
7551
7290
|
})
|
|
7552
7291
|
});
|
|
7553
7292
|
|
|
7554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7293
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/deal.js
|
|
7555
7294
|
var nullableText = nullable(text);
|
|
7556
7295
|
var party = strictObject({ ref: reference, name: nullableText, owner: boolean() });
|
|
7557
7296
|
var outcome = picklist(["open", "won", "lost"]);
|
|
@@ -7707,7 +7446,7 @@ var stage = strictObject({
|
|
|
7707
7446
|
untrusted
|
|
7708
7447
|
});
|
|
7709
7448
|
|
|
7710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7449
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/business-context.js
|
|
7711
7450
|
var nullableText2 = nullable(text);
|
|
7712
7451
|
var day2 = nullable(pipe(string(), regex(/^\d{4}-\d{2}-\d{2}$/)));
|
|
7713
7452
|
var standing = picklist(STANDINGS);
|
|
@@ -7886,7 +7625,7 @@ var dealBrief = strictObject({
|
|
|
7886
7625
|
not_read: coverage2.entries.not_read
|
|
7887
7626
|
});
|
|
7888
7627
|
|
|
7889
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7628
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/chart.js
|
|
7890
7629
|
var chart = strictObject({
|
|
7891
7630
|
version: literal(1),
|
|
7892
7631
|
kind: picklist(["bar", "line", "grouped-bar"]),
|
|
@@ -7901,7 +7640,7 @@ var chart = strictObject({
|
|
|
7901
7640
|
file: optional(strictObject({ path: text, format: picklist(["svg", "png"]), width: count, height: count }))
|
|
7902
7641
|
});
|
|
7903
7642
|
|
|
7904
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7643
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/folder.js
|
|
7905
7644
|
var named2 = strictObject({
|
|
7906
7645
|
id,
|
|
7907
7646
|
title: nullable(text),
|
|
@@ -7924,7 +7663,7 @@ var folder = strictObject({
|
|
|
7924
7663
|
excluded_chats: optional(array(named2))
|
|
7925
7664
|
});
|
|
7926
7665
|
|
|
7927
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7666
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/invite-link.js
|
|
7928
7667
|
var inviteLink = strictObject({
|
|
7929
7668
|
link: text,
|
|
7930
7669
|
/** Who joins by it asks first, and an admin lets them in. */
|
|
@@ -7940,7 +7679,7 @@ var inviteLink = strictObject({
|
|
|
7940
7679
|
joined_count: optional(count)
|
|
7941
7680
|
});
|
|
7942
7681
|
|
|
7943
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7682
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/chat-admin.js
|
|
7944
7683
|
var operated = { operation_id: id, chat_id: id };
|
|
7945
7684
|
var group = strictObject({
|
|
7946
7685
|
...omit(chat, ["ref", "provider", "account", "invite_link", "members"]).entries,
|
|
@@ -8020,7 +7759,7 @@ var chatFolderOrder = strictObject({
|
|
|
8020
7759
|
folders: array(strictObject({ id, title: text }))
|
|
8021
7760
|
});
|
|
8022
7761
|
|
|
8023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7762
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/chat-change.js
|
|
8024
7763
|
var operated2 = { operation_id: id, chat_id: id };
|
|
8025
7764
|
var chatRemoval = strictObject(operated2);
|
|
8026
7765
|
var chatMuting = strictObject({
|
|
@@ -8031,7 +7770,7 @@ var chatArchive = strictObject({ ...operated2, archived: boolean() });
|
|
|
8031
7770
|
var chatPin = strictObject({ ...operated2, pinned: boolean() });
|
|
8032
7771
|
var chatUnread = strictObject({ ...operated2, unread: literal(true) });
|
|
8033
7772
|
|
|
8034
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7773
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/chat-event.js
|
|
8035
7774
|
var who = strictObject({ id: nullable(id), name: nullable(text), username: optional(nullable(text)) });
|
|
8036
7775
|
var chatEvent = strictObject({
|
|
8037
7776
|
chat_id: id,
|
|
@@ -8048,7 +7787,7 @@ var chatEvent = strictObject({
|
|
|
8048
7787
|
before: optional(strictObject({ name: nullable(text), username: nullable(text) }))
|
|
8049
7788
|
});
|
|
8050
7789
|
|
|
8051
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/chat-metadata.js
|
|
8052
7791
|
var chatMetadata = strictObject({
|
|
8053
7792
|
chat_id: id,
|
|
8054
7793
|
title: nullable(text),
|
|
@@ -8063,7 +7802,7 @@ var chatMetadataRefresh = strictObject({
|
|
|
8063
7802
|
has_more: boolean()
|
|
8064
7803
|
});
|
|
8065
7804
|
|
|
8066
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7805
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/chat-moderation.js
|
|
8067
7806
|
var action = picklist(["report", "delete", "remove"]);
|
|
8068
7807
|
var level = picklist(["deny", "readonly", "ask", "allow"]);
|
|
8069
7808
|
var chatRules = strictObject({
|
|
@@ -8100,7 +7839,7 @@ var chatModeration = strictObject({
|
|
|
8100
7839
|
}))
|
|
8101
7840
|
});
|
|
8102
7841
|
|
|
8103
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7842
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/chat-sending.js
|
|
8104
7843
|
var chatSending = strictObject({
|
|
8105
7844
|
mode: picklist(["allowed", "ask", "denied"]),
|
|
8106
7845
|
meaning: text,
|
|
@@ -8110,7 +7849,7 @@ var chatSending = strictObject({
|
|
|
8110
7849
|
changed: optional(boolean())
|
|
8111
7850
|
});
|
|
8112
7851
|
|
|
8113
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7852
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/chat-stats.js
|
|
8114
7853
|
var optionalCount = optional(count);
|
|
8115
7854
|
var minutes = nullable(number());
|
|
8116
7855
|
var chatStats = strictObject({
|
|
@@ -8186,7 +7925,7 @@ var taskStats = strictObject({
|
|
|
8186
7925
|
}))
|
|
8187
7926
|
});
|
|
8188
7927
|
|
|
8189
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7928
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/chat-tracking.js
|
|
8190
7929
|
var memberCount = strictObject({
|
|
8191
7930
|
day: pipe(text, isoDate()),
|
|
8192
7931
|
participants: nullable(count),
|
|
@@ -8209,7 +7948,7 @@ var chatTracking = strictObject({
|
|
|
8209
7948
|
tracked: boolean()
|
|
8210
7949
|
});
|
|
8211
7950
|
|
|
8212
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7951
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/contact-read.js
|
|
8213
7952
|
var contactLookup = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8214
7953
|
var contactSync = strictObject({ added: count, changed: count, known: count });
|
|
8215
7954
|
var profileFields = {
|
|
@@ -8247,7 +7986,7 @@ var profileFields = {
|
|
|
8247
7986
|
}))
|
|
8248
7987
|
};
|
|
8249
7988
|
|
|
8250
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7989
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/contact.js
|
|
8251
7990
|
var contact = strictObject({
|
|
8252
7991
|
ref: reference,
|
|
8253
7992
|
id,
|
|
@@ -8278,7 +8017,7 @@ var contact = strictObject({
|
|
|
8278
8017
|
notes: optional(array(strictObject({ id, text, revision: count, created_at: time, updated_at: time })))
|
|
8279
8018
|
});
|
|
8280
8019
|
|
|
8281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8020
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/contact-note.js
|
|
8282
8021
|
var contactNote = strictObject({
|
|
8283
8022
|
id,
|
|
8284
8023
|
/** The contact, as a `contact:` reference. */
|
|
@@ -8290,13 +8029,13 @@ var contactNote = strictObject({
|
|
|
8290
8029
|
updated_at: time
|
|
8291
8030
|
});
|
|
8292
8031
|
|
|
8293
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8032
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/contact-write.js
|
|
8294
8033
|
var addressBookPerson = strictObject({ id, name: nullable(text), username: nullable(text) });
|
|
8295
8034
|
var contactUpdate = strictObject({ operation_id: id, person: addressBookPerson });
|
|
8296
8035
|
var contactStateChange = strictObject({ operation_id: id, person_id: id });
|
|
8297
8036
|
var contactImport = strictObject({ operation_id: id, sent: count, recognised: array(addressBookPerson) });
|
|
8298
8037
|
|
|
8299
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/conversation.js
|
|
8300
8039
|
var conversation = strictObject({
|
|
8301
8040
|
id,
|
|
8302
8041
|
chat: reference,
|
|
@@ -8311,7 +8050,7 @@ var conversation = strictObject({
|
|
|
8311
8050
|
rules_version: count
|
|
8312
8051
|
});
|
|
8313
8052
|
|
|
8314
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8053
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/conversation-preparation.js
|
|
8315
8054
|
var conversationBuild = strictObject({
|
|
8316
8055
|
chat: id,
|
|
8317
8056
|
messages: count,
|
|
@@ -8336,7 +8075,7 @@ var catchUpPreparation = strictObject({
|
|
|
8336
8075
|
prepared: optional(conversationPreparation)
|
|
8337
8076
|
});
|
|
8338
8077
|
|
|
8339
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8078
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/conversation-results.js
|
|
8340
8079
|
var conversationDetails = union([
|
|
8341
8080
|
strictObject({ ...conversation.entries, messages: array(message) }),
|
|
8342
8081
|
message
|
|
@@ -8423,10 +8162,15 @@ var conversationHit = strictObject({
|
|
|
8423
8162
|
score: nullable(number()),
|
|
8424
8163
|
matched_in: optional(literal("context")),
|
|
8425
8164
|
by: array(picklist(["meaning", "words"])),
|
|
8426
|
-
stale: boolean()
|
|
8165
|
+
stale: boolean(),
|
|
8166
|
+
/** Up to three of the chunk's messages as "sender: text": what the hit says, without opening it. */
|
|
8167
|
+
lines: optional(array(text)),
|
|
8168
|
+
/** In the block of the owner's own conversations, which the hits before it left out. */
|
|
8169
|
+
from_owner: optional(literal(true)),
|
|
8170
|
+
untrusted
|
|
8427
8171
|
});
|
|
8428
8172
|
|
|
8429
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8173
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/counters.js
|
|
8430
8174
|
var counters = strictObject({
|
|
8431
8175
|
cutoff: time,
|
|
8432
8176
|
max_age_ms: milliseconds,
|
|
@@ -8456,7 +8200,7 @@ var counterRefresh = strictObject({
|
|
|
8456
8200
|
complete: optional(boolean())
|
|
8457
8201
|
});
|
|
8458
8202
|
|
|
8459
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8203
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/document.js
|
|
8460
8204
|
var document = strictObject({
|
|
8461
8205
|
ref: reference,
|
|
8462
8206
|
id,
|
|
@@ -8471,7 +8215,7 @@ var document = strictObject({
|
|
|
8471
8215
|
owners: optional(array(text))
|
|
8472
8216
|
});
|
|
8473
8217
|
|
|
8474
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8218
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/document-link.js
|
|
8475
8219
|
var documentLink = strictObject({
|
|
8476
8220
|
ref: reference,
|
|
8477
8221
|
url: text,
|
|
@@ -8482,7 +8226,7 @@ var documentLink = strictObject({
|
|
|
8482
8226
|
sender: strictObject({ id: nullable(id), name: nullable(text) })
|
|
8483
8227
|
});
|
|
8484
8228
|
|
|
8485
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8229
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/evidence.js
|
|
8486
8230
|
var evidenceMessage = pick(message, ["ref", "chat_title", "timestamp", "sender_name", "text"]);
|
|
8487
8231
|
var contribution = strictObject({
|
|
8488
8232
|
message: evidenceMessage,
|
|
@@ -8512,7 +8256,7 @@ var retentionStay = strictObject({
|
|
|
8512
8256
|
});
|
|
8513
8257
|
var evidence = union([contribution, retentionStay]);
|
|
8514
8258
|
|
|
8515
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8259
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/fact.js
|
|
8516
8260
|
var fact = strictObject({
|
|
8517
8261
|
ref: reference,
|
|
8518
8262
|
id,
|
|
@@ -8543,9 +8287,20 @@ var fact = strictObject({
|
|
|
8543
8287
|
updated_at: time
|
|
8544
8288
|
});
|
|
8545
8289
|
|
|
8546
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8290
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/hit.js
|
|
8547
8291
|
var hit = strictObject({
|
|
8548
|
-
kind: picklist([
|
|
8292
|
+
kind: picklist([
|
|
8293
|
+
"message",
|
|
8294
|
+
"mail",
|
|
8295
|
+
"note",
|
|
8296
|
+
"document",
|
|
8297
|
+
"event",
|
|
8298
|
+
"meeting",
|
|
8299
|
+
"deal",
|
|
8300
|
+
"lead",
|
|
8301
|
+
"crm_file",
|
|
8302
|
+
...BUSINESS_KINDS
|
|
8303
|
+
]),
|
|
8549
8304
|
ref: reference,
|
|
8550
8305
|
provider: text,
|
|
8551
8306
|
url: optional(text),
|
|
@@ -8591,7 +8346,7 @@ var hit = strictObject({
|
|
|
8591
8346
|
untrusted
|
|
8592
8347
|
});
|
|
8593
8348
|
|
|
8594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8349
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/identity.js
|
|
8595
8350
|
var identity = strictObject({
|
|
8596
8351
|
ref: reference,
|
|
8597
8352
|
provider: text,
|
|
@@ -8607,7 +8362,7 @@ var identity = strictObject({
|
|
|
8607
8362
|
person: optional(nullable(reference))
|
|
8608
8363
|
});
|
|
8609
8364
|
|
|
8610
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8365
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/image-embedding.js
|
|
8611
8366
|
var imageEmbedding = strictObject({
|
|
8612
8367
|
model: text,
|
|
8613
8368
|
embedded: count,
|
|
@@ -8616,13 +8371,13 @@ var imageEmbedding = strictObject({
|
|
|
8616
8371
|
more: boolean()
|
|
8617
8372
|
});
|
|
8618
8373
|
|
|
8619
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8374
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8620
8375
|
import { spawn } from "node:child_process";
|
|
8621
8376
|
import { randomBytes } from "node:crypto";
|
|
8622
|
-
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as
|
|
8377
|
+
import { closeSync, existsSync as existsSync5, mkdirSync as mkdirSync2, openSync, readdirSync as readdirSync3, readFileSync as readFileSync4, realpathSync, rmSync as rmSync2 } from "node:fs";
|
|
8623
8378
|
import { dirname as dirname2, join as join4 } from "node:path";
|
|
8624
8379
|
|
|
8625
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8380
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/background/checkpoints.js
|
|
8626
8381
|
var progressOf = /* @__PURE__ */ __name((input) => {
|
|
8627
8382
|
const total = input.total ?? null;
|
|
8628
8383
|
const updated = input.updatedAt ?? null;
|
|
@@ -8638,7 +8393,7 @@ var progressOf = /* @__PURE__ */ __name((input) => {
|
|
|
8638
8393
|
};
|
|
8639
8394
|
}, "progressOf");
|
|
8640
8395
|
|
|
8641
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8396
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/runs/record-log.js
|
|
8642
8397
|
var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) => {
|
|
8643
8398
|
const run = currentRun();
|
|
8644
8399
|
const trace = traceId ?? run.traceId;
|
|
@@ -8652,7 +8407,7 @@ var recordLogFor = /* @__PURE__ */ __name((to, app, { traceId, command } = {}) =
|
|
|
8652
8407
|
}));
|
|
8653
8408
|
}, "recordLogFor");
|
|
8654
8409
|
|
|
8655
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/services/backfill-jobs.js
|
|
8656
8411
|
var JOB_STATES = ["running", "done", "partial", "failed", "cancelled", "died"];
|
|
8657
8412
|
var spawnDetached = /* @__PURE__ */ __name((argv, env, log) => {
|
|
8658
8413
|
const out = openSync(log, "a", 384);
|
|
@@ -8679,7 +8434,7 @@ var readJob = /* @__PURE__ */ __name((dir, id6) => {
|
|
|
8679
8434
|
if (!/^[\w-]+$/.test(id6) || !existsSync5(jobPath(dir, id6)))
|
|
8680
8435
|
return void 0;
|
|
8681
8436
|
try {
|
|
8682
|
-
return JSON.parse(
|
|
8437
|
+
return JSON.parse(readFileSync4(jobPath(dir, id6), "utf8"));
|
|
8683
8438
|
} catch {
|
|
8684
8439
|
return void 0;
|
|
8685
8440
|
}
|
|
@@ -8807,7 +8562,7 @@ var startArchiveJob = /* @__PURE__ */ __name((app, env, profile, input, spawnJob
|
|
|
8807
8562
|
return { job: id6, pid, chat: input.chat, log };
|
|
8808
8563
|
}, "startArchiveJob");
|
|
8809
8564
|
|
|
8810
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8565
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/job.js
|
|
8811
8566
|
var problem = strictObject({ code: text, message: text });
|
|
8812
8567
|
var job = strictObject({
|
|
8813
8568
|
id,
|
|
@@ -8830,7 +8585,7 @@ var job = strictObject({
|
|
|
8830
8585
|
error: optional(problem)
|
|
8831
8586
|
});
|
|
8832
8587
|
|
|
8833
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8588
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/join-request.js
|
|
8834
8589
|
var joinRequest = strictObject({
|
|
8835
8590
|
person_id: id,
|
|
8836
8591
|
name: nullable(text),
|
|
@@ -8841,7 +8596,7 @@ var joinRequest = strictObject({
|
|
|
8841
8596
|
about: optional(text)
|
|
8842
8597
|
});
|
|
8843
8598
|
|
|
8844
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8599
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/list-results.js
|
|
8845
8600
|
var botProfile = strictObject({
|
|
8846
8601
|
name: text,
|
|
8847
8602
|
token: text,
|
|
@@ -8965,7 +8720,7 @@ var stickerInventory = strictObject({
|
|
|
8965
8720
|
url: optional(nullable(text))
|
|
8966
8721
|
});
|
|
8967
8722
|
|
|
8968
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8723
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/poll-vote.js
|
|
8969
8724
|
var pollVote = strictObject({
|
|
8970
8725
|
person_id: id,
|
|
8971
8726
|
name: nullable(text),
|
|
@@ -8975,7 +8730,7 @@ var pollVote = strictObject({
|
|
|
8975
8730
|
voted_at: time
|
|
8976
8731
|
});
|
|
8977
8732
|
|
|
8978
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8733
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/listener.js
|
|
8979
8734
|
var reactions = unwrap(unwrap(message.entries.reactions));
|
|
8980
8735
|
var observation = strictObject({
|
|
8981
8736
|
value: pipe(number(), minValue(0)),
|
|
@@ -9017,7 +8772,7 @@ var serveSummary = strictObject({
|
|
|
9017
8772
|
tasks: optional(strictObject({ added: count, closed: count, review: count }))
|
|
9018
8773
|
});
|
|
9019
8774
|
|
|
9020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/mail-counts.js
|
|
9021
8776
|
var mailCounts = strictObject({
|
|
9022
8777
|
by: picklist(["day", "week", "sender"]),
|
|
9023
8778
|
received: count,
|
|
@@ -9032,7 +8787,7 @@ var mailCounts = strictObject({
|
|
|
9032
8787
|
}))
|
|
9033
8788
|
});
|
|
9034
8789
|
|
|
9035
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8790
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/mail-findings.js
|
|
9036
8791
|
var evidence2 = strictObject({ reference, fingerprint: text });
|
|
9037
8792
|
var base = { id, evidence: array(evidence2) };
|
|
9038
8793
|
var finding = variant("kind", [
|
|
@@ -9176,7 +8931,7 @@ var mailFindings = strictObject({
|
|
|
9176
8931
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome2) }))
|
|
9177
8932
|
});
|
|
9178
8933
|
|
|
9179
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8934
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/media-archive.js
|
|
9180
8935
|
var mediaArchive = strictObject({
|
|
9181
8936
|
directory: text,
|
|
9182
8937
|
chats: count,
|
|
@@ -9208,7 +8963,7 @@ var mediaArchiveTimer = union([
|
|
|
9208
8963
|
strictObject({ ...timer, action: picklist(["install", "start", "stop", "uninstall"]) })
|
|
9209
8964
|
]);
|
|
9210
8965
|
|
|
9211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
8966
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation-parts.js
|
|
9212
8967
|
var preparationId = pipe(string(), minLength(1));
|
|
9213
8968
|
var preparationCount = pipe(number(), integer(), minValue(0));
|
|
9214
8969
|
var preparationTime = nullable(isoTime);
|
|
@@ -9300,7 +9055,7 @@ var preparationMeeting = strictObject({
|
|
|
9300
9055
|
updated_at: isoTime
|
|
9301
9056
|
});
|
|
9302
9057
|
|
|
9303
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9058
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/meeting-evidence.js
|
|
9304
9059
|
var meetingEvidence = preparationEvidence;
|
|
9305
9060
|
var meetingPersonContext = strictObject({
|
|
9306
9061
|
person: strictObject({ uid: string(), name: nullable(string()) }),
|
|
@@ -9322,7 +9077,7 @@ var meetingPersonContext = strictObject({
|
|
|
9322
9077
|
})
|
|
9323
9078
|
});
|
|
9324
9079
|
|
|
9325
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9080
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/meeting-findings.js
|
|
9326
9081
|
var evidence3 = strictObject({ reference, fingerprint: text });
|
|
9327
9082
|
var base2 = { id, project: reference, evidence: array(evidence3) };
|
|
9328
9083
|
var finding2 = variant("kind", [
|
|
@@ -9360,7 +9115,7 @@ var meetingFindings = strictObject({
|
|
|
9360
9115
|
receipt: nullable(strictObject({ preview_fingerprint: text, accepted: array(id), items: array(outcome3) }))
|
|
9361
9116
|
});
|
|
9362
9117
|
|
|
9363
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9118
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/meeting-communications.js
|
|
9364
9119
|
var communicationCoverage = strictObject({
|
|
9365
9120
|
read_usage: strictObject({ reads: preparationCount, charged_bytes: preparationCount, reserved_bytes: preparationCount, remaining_bytes: preparationCount }),
|
|
9366
9121
|
query: string(),
|
|
@@ -9405,7 +9160,7 @@ var preparationCommunications = strictObject({
|
|
|
9405
9160
|
}))
|
|
9406
9161
|
});
|
|
9407
9162
|
|
|
9408
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9163
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/meeting-preparation.js
|
|
9409
9164
|
var meetingPreparation = strictObject({
|
|
9410
9165
|
communications: optional(preparationCommunications),
|
|
9411
9166
|
schema_version: literal(1),
|
|
@@ -9518,7 +9273,7 @@ var meetingPreparation = strictObject({
|
|
|
9518
9273
|
})
|
|
9519
9274
|
});
|
|
9520
9275
|
|
|
9521
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9276
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/meeting-project-candidates.js
|
|
9522
9277
|
var count4 = pipe(number(), integer(), minValue(0));
|
|
9523
9278
|
var id3 = pipe(string(), minLength(1));
|
|
9524
9279
|
var text3 = string();
|
|
@@ -9582,7 +9337,7 @@ var meetingProjectCandidates = strictObject({
|
|
|
9582
9337
|
})
|
|
9583
9338
|
});
|
|
9584
9339
|
|
|
9585
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9340
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/meeting-series-inventory.js
|
|
9586
9341
|
var count5 = pipe(number(), integer(), minValue(0));
|
|
9587
9342
|
var id4 = pipe(string(), minLength(1), maxLength(1e3));
|
|
9588
9343
|
var meetingSeriesInventory = strictObject({
|
|
@@ -9612,7 +9367,7 @@ var meetingSeriesInventory = strictObject({
|
|
|
9612
9367
|
})
|
|
9613
9368
|
});
|
|
9614
9369
|
|
|
9615
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9370
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/meeting-task-proposal.js
|
|
9616
9371
|
var text4 = string();
|
|
9617
9372
|
var id5 = pipe(number(), integer(), minValue(1));
|
|
9618
9373
|
var revision = picklist(["current", "superseded"]);
|
|
@@ -9629,7 +9384,7 @@ var meetingTaskProposal = strictObject({
|
|
|
9629
9384
|
persistence: literal("proposal-only")
|
|
9630
9385
|
});
|
|
9631
9386
|
|
|
9632
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9387
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/memory.js
|
|
9633
9388
|
var memory = strictObject({
|
|
9634
9389
|
ref: reference,
|
|
9635
9390
|
id,
|
|
@@ -9657,7 +9412,7 @@ var memory = strictObject({
|
|
|
9657
9412
|
updated_at: time
|
|
9658
9413
|
});
|
|
9659
9414
|
|
|
9660
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9415
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/mention.js
|
|
9661
9416
|
var kind = picklist(["phone", "email", "url", "document", "person-name", "place"]);
|
|
9662
9417
|
var status = picklist(["found", "linked", "proposed", "dismissed"]);
|
|
9663
9418
|
var mention = strictObject({
|
|
@@ -9701,13 +9456,16 @@ var mentionRebuild = strictObject({
|
|
|
9701
9456
|
mentions: count
|
|
9702
9457
|
});
|
|
9703
9458
|
|
|
9704
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9459
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/message-change.js
|
|
9705
9460
|
var operated3 = { operation_id: id, chat_id: id };
|
|
9706
9461
|
var messagePin = strictObject({ ...operated3, message_id: id, pinned: boolean() });
|
|
9707
9462
|
var messageStar = strictObject({ ...operated3, message_id: id, starred: boolean() });
|
|
9708
9463
|
var messageDeletion = strictObject({ ...operated3, deleted: array(id), for_everyone: boolean() });
|
|
9464
|
+
var scheduledCancellation = strictObject({ ...operated3, cancelled: array(id) });
|
|
9465
|
+
var scheduledSendEntries = { ...operated3, sent: array(id), messages: array(message) };
|
|
9466
|
+
var scheduledSend = strictObject(scheduledSendEntries);
|
|
9709
9467
|
|
|
9710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/message-read.js
|
|
9711
9469
|
var messageTranscript = strictObject({
|
|
9712
9470
|
message_id: id,
|
|
9713
9471
|
text,
|
|
@@ -9765,7 +9523,7 @@ var evidencePacket = strictObject({
|
|
|
9765
9523
|
}))
|
|
9766
9524
|
});
|
|
9767
9525
|
|
|
9768
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9526
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/message-context.js
|
|
9769
9527
|
var messageThread = strictObject({
|
|
9770
9528
|
ref: reference,
|
|
9771
9529
|
chat: id,
|
|
@@ -9782,7 +9540,7 @@ var messageThread = strictObject({
|
|
|
9782
9540
|
});
|
|
9783
9541
|
var messageContext = union([message, messageThread]);
|
|
9784
9542
|
|
|
9785
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9543
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/message-counts.js
|
|
9786
9544
|
var messageCounts = strictObject({
|
|
9787
9545
|
by: picklist(["chat", "sender", "day", "hour"]),
|
|
9788
9546
|
total: count,
|
|
@@ -9795,7 +9553,7 @@ var messageCounts = strictObject({
|
|
|
9795
9553
|
}))
|
|
9796
9554
|
});
|
|
9797
9555
|
|
|
9798
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9556
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/message-link.js
|
|
9799
9557
|
var messageLink = strictObject({
|
|
9800
9558
|
ref: reference,
|
|
9801
9559
|
url: nullable(text),
|
|
@@ -9812,7 +9570,7 @@ var messageLink = strictObject({
|
|
|
9812
9570
|
})))
|
|
9813
9571
|
});
|
|
9814
9572
|
|
|
9815
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9573
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/message-transfer.js
|
|
9816
9574
|
var savedMessageFile = strictObject({
|
|
9817
9575
|
kind: text,
|
|
9818
9576
|
path: text,
|
|
@@ -9899,7 +9657,7 @@ var messageSyncAll = strictObject({
|
|
|
9899
9657
|
var messageSyncStarted = strictObject({ job: id, pid: count, chat: text, log: text });
|
|
9900
9658
|
var messageSync = union([messageSyncEstimate, messageSyncChat, messageSyncAll, messageSyncStarted]);
|
|
9901
9659
|
|
|
9902
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9660
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/message-write.js
|
|
9903
9661
|
var messageWrite = strictObject({
|
|
9904
9662
|
operation_id: id,
|
|
9905
9663
|
message,
|
|
@@ -9914,7 +9672,7 @@ var draftWrite = strictObject({
|
|
|
9914
9672
|
});
|
|
9915
9673
|
var messageSend = union([messageWrite, draftWrite]);
|
|
9916
9674
|
|
|
9917
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9675
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/model.js
|
|
9918
9676
|
var model2 = strictObject({
|
|
9919
9677
|
id,
|
|
9920
9678
|
kind: picklist(["audio", "text", "image", "reranker"]),
|
|
@@ -9949,7 +9707,7 @@ var chosenModel = strictObject({
|
|
|
9949
9707
|
estimate_seconds: nullable(count)
|
|
9950
9708
|
});
|
|
9951
9709
|
|
|
9952
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9710
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/model-key.js
|
|
9953
9711
|
var source = picklist(["environment", "keyring", "file"]);
|
|
9954
9712
|
var modelKey = strictObject({
|
|
9955
9713
|
provider: text,
|
|
@@ -9959,7 +9717,7 @@ var modelKey = strictObject({
|
|
|
9959
9717
|
var storedModelKey = strictObject({ ...omit(modelKey, ["removed"]).entries, stored: source });
|
|
9960
9718
|
var removedModelKey = strictObject({ ...omit(modelKey, ["stored"]).entries, removed: array(source) });
|
|
9961
9719
|
|
|
9962
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9720
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/official-stats.js
|
|
9963
9721
|
var versus = strictObject({ current: number(), previous: number() });
|
|
9964
9722
|
var person = { person_ref: reference, name: nullable(text) };
|
|
9965
9723
|
var graph = strictObject({
|
|
@@ -9993,14 +9751,14 @@ var officialStats = strictObject({
|
|
|
9993
9751
|
graphs: record(string(), union([graph, strictObject({ error: text })]))
|
|
9994
9752
|
});
|
|
9995
9753
|
|
|
9996
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/person.js
|
|
9997
9755
|
var person2 = strictObject({
|
|
9998
9756
|
ref: reference,
|
|
9999
9757
|
name: nullable(text),
|
|
10000
9758
|
identities: optional(array(identity))
|
|
10001
9759
|
});
|
|
10002
9760
|
|
|
10003
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9761
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/poll.js
|
|
10004
9762
|
var poll = strictObject({
|
|
10005
9763
|
chat_id: id,
|
|
10006
9764
|
message_id: id,
|
|
@@ -10016,11 +9774,11 @@ var poll = strictObject({
|
|
|
10016
9774
|
});
|
|
10017
9775
|
var pollChange = strictObject({ operation_id: id, poll });
|
|
10018
9776
|
|
|
10019
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/private-contact.js
|
|
10020
9778
|
var contactAlias = strictObject({ person_id: id, alias: nullable(text) });
|
|
10021
9779
|
var contactNoteRemoval = strictObject({ id, person_id: id, removed: boolean() });
|
|
10022
9780
|
|
|
10023
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9781
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/ranking.js
|
|
10024
9782
|
var figures = record(string(), number());
|
|
10025
9783
|
var freshness = picklist(["fresh", "stale", "partial", "unknown"]);
|
|
10026
9784
|
var rankingRow = strictObject({
|
|
@@ -10067,7 +9825,7 @@ var ranking = strictObject({
|
|
|
10067
9825
|
rows: array(rankingRow)
|
|
10068
9826
|
});
|
|
10069
9827
|
|
|
10070
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9828
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/reaction.js
|
|
10071
9829
|
var reaction = strictObject({
|
|
10072
9830
|
person: strictObject({ id, name: nullable(text), username: nullable(text) }),
|
|
10073
9831
|
/** The emoji, or `custom:<id>` for a custom one. */
|
|
@@ -10075,7 +9833,7 @@ var reaction = strictObject({
|
|
|
10075
9833
|
reacted_at: time
|
|
10076
9834
|
});
|
|
10077
9835
|
|
|
10078
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9836
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/reaction-change.js
|
|
10079
9837
|
var reactionChange = strictObject({
|
|
10080
9838
|
operation_id: id,
|
|
10081
9839
|
chat_id: id,
|
|
@@ -10083,7 +9841,7 @@ var reactionChange = strictObject({
|
|
|
10083
9841
|
reaction: nullable(text)
|
|
10084
9842
|
});
|
|
10085
9843
|
|
|
10086
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9844
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/recipient.js
|
|
10087
9845
|
var recipient = strictObject({ id, title: nullable(text), partner_id: optional(id), added_at: time });
|
|
10088
9846
|
var recipientAdded = strictObject({ id, title: nullable(text), added: boolean() });
|
|
10089
9847
|
var recipientRemoved = strictObject({ id, title: nullable(text), removed: boolean() });
|
|
@@ -10094,7 +9852,7 @@ var recipientChange = strictObject({
|
|
|
10094
9852
|
...partial(recipientOff).entries
|
|
10095
9853
|
});
|
|
10096
9854
|
|
|
10097
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9855
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/recorded-run.js
|
|
10098
9856
|
var events = array(record(string(), unknown()));
|
|
10099
9857
|
var recordedRun = strictObject({
|
|
10100
9858
|
run_id: id,
|
|
@@ -10166,7 +9924,7 @@ var runHit = strictObject({
|
|
|
10166
9924
|
});
|
|
10167
9925
|
var runLocation = strictObject({ path: text });
|
|
10168
9926
|
|
|
10169
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9927
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/relationship.js
|
|
10170
9928
|
var relationship = strictObject({
|
|
10171
9929
|
id,
|
|
10172
9930
|
from: reference,
|
|
@@ -10193,7 +9951,7 @@ var relationship = strictObject({
|
|
|
10193
9951
|
created_at: time
|
|
10194
9952
|
});
|
|
10195
9953
|
|
|
10196
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9954
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/reply-stats.js
|
|
10197
9955
|
var milliseconds2 = nullable(pipe(number(), minValue(0)));
|
|
10198
9956
|
var figures2 = { replies: count, median_ms: milliseconds2, p90_ms: milliseconds2, mean_ms: milliseconds2 };
|
|
10199
9957
|
var responseTimes = strictObject({
|
|
@@ -10210,7 +9968,7 @@ var waitingChats = strictObject({
|
|
|
10210
9968
|
by_kind: strictObject({ private: count, group: count })
|
|
10211
9969
|
});
|
|
10212
9970
|
|
|
10213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
9971
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/retention.js
|
|
10214
9972
|
var retentionCohort = strictObject({
|
|
10215
9973
|
/** The first day of the joining day or week. */
|
|
10216
9974
|
cohort: text,
|
|
@@ -10258,7 +10016,7 @@ var retention = strictObject({
|
|
|
10258
10016
|
rows: array(retentionCohort)
|
|
10259
10017
|
});
|
|
10260
10018
|
|
|
10261
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10019
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/saved-search.js
|
|
10262
10020
|
var savedSearch = strictObject({
|
|
10263
10021
|
id,
|
|
10264
10022
|
/** `null` for a run in the history. */
|
|
@@ -10275,7 +10033,7 @@ var savedSearch = strictObject({
|
|
|
10275
10033
|
});
|
|
10276
10034
|
var searchHistoryClear = strictObject({ cleared: count });
|
|
10277
10035
|
|
|
10278
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/send-attempt.js
|
|
10279
10037
|
var sendAttempt = strictObject({
|
|
10280
10038
|
at: time,
|
|
10281
10039
|
profile: text,
|
|
@@ -10303,7 +10061,7 @@ var sendAttempt = strictObject({
|
|
|
10303
10061
|
error_code: optional(text)
|
|
10304
10062
|
});
|
|
10305
10063
|
|
|
10306
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10064
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/store-maintenance.js
|
|
10307
10065
|
var absent = strictObject({ path: text, exists: literal(false) });
|
|
10308
10066
|
var schema = strictObject({ version: count, min_compatible: count, writable: boolean(), speaks: count });
|
|
10309
10067
|
var infoSchema = strictObject({
|
|
@@ -10533,7 +10291,7 @@ var storeRepair = union([
|
|
|
10533
10291
|
]);
|
|
10534
10292
|
var storeCopyRemoval = strictObject({ path: text, deleted: strictObject({ name: text, rows: count }) });
|
|
10535
10293
|
|
|
10536
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/store-records.js
|
|
10537
10295
|
var range = strictObject({ from: number(), to: number() });
|
|
10538
10296
|
var storeChatStatus = strictObject({
|
|
10539
10297
|
chat_id: id,
|
|
@@ -10631,7 +10389,7 @@ var storeJobRetry = union([
|
|
|
10631
10389
|
]);
|
|
10632
10390
|
var storeJobClear = strictObject({ cleared: array(id) });
|
|
10633
10391
|
|
|
10634
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10392
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/store-table.js
|
|
10635
10393
|
var TABLE_KINDS = ["data", "search_index", "search_index_part", "internal"];
|
|
10636
10394
|
var storeTable = strictObject({
|
|
10637
10395
|
name: text,
|
|
@@ -10640,7 +10398,7 @@ var storeTable = strictObject({
|
|
|
10640
10398
|
bytes: optional(nullable(count))
|
|
10641
10399
|
});
|
|
10642
10400
|
|
|
10643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10401
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/tag-change.js
|
|
10644
10402
|
var tagTarget = variant("type", [
|
|
10645
10403
|
strictObject({ type: literal("chat"), chat_id: id }),
|
|
10646
10404
|
strictObject({ type: literal("contact"), person_id: id }),
|
|
@@ -10671,7 +10429,7 @@ var automaticTags = strictObject({
|
|
|
10671
10429
|
dry_run: boolean()
|
|
10672
10430
|
});
|
|
10673
10431
|
|
|
10674
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/tagging.js
|
|
10675
10433
|
var tagging = strictObject({
|
|
10676
10434
|
tag: text,
|
|
10677
10435
|
type: picklist(TAG_TYPES),
|
|
@@ -10684,7 +10442,7 @@ var tagging = strictObject({
|
|
|
10684
10442
|
created_at: time
|
|
10685
10443
|
});
|
|
10686
10444
|
|
|
10687
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10445
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/task-pair.js
|
|
10688
10446
|
var side = strictObject({ ref: reference, key: text, title: text, status: text });
|
|
10689
10447
|
var taskPair = strictObject({
|
|
10690
10448
|
task: nullable(side),
|
|
@@ -10707,7 +10465,7 @@ var taskPair = strictObject({
|
|
|
10707
10465
|
created_at: time
|
|
10708
10466
|
});
|
|
10709
10467
|
|
|
10710
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10468
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/task-results.js
|
|
10711
10469
|
var nullableTime = nullable(time);
|
|
10712
10470
|
var link = strictObject({
|
|
10713
10471
|
id,
|
|
@@ -10881,7 +10639,7 @@ var taskReview = strictObject({
|
|
|
10881
10639
|
untrusted
|
|
10882
10640
|
});
|
|
10883
10641
|
|
|
10884
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10642
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/template.js
|
|
10885
10643
|
var template = strictObject({
|
|
10886
10644
|
key: text,
|
|
10887
10645
|
channel: picklist(["telegram", "email", "text"]),
|
|
@@ -10893,7 +10651,7 @@ var template = strictObject({
|
|
|
10893
10651
|
updated_by: nullable(text)
|
|
10894
10652
|
});
|
|
10895
10653
|
|
|
10896
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10654
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/topic.js
|
|
10897
10655
|
var topic = strictObject({
|
|
10898
10656
|
id,
|
|
10899
10657
|
title: text,
|
|
@@ -10907,7 +10665,7 @@ var topic = strictObject({
|
|
|
10907
10665
|
untrusted
|
|
10908
10666
|
});
|
|
10909
10667
|
|
|
10910
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10668
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/entities/index.js
|
|
10911
10669
|
var ENTITIES = {
|
|
10912
10670
|
sync_progress: progress,
|
|
10913
10671
|
deal,
|
|
@@ -10941,6 +10699,7 @@ var ENTITIES = {
|
|
|
10941
10699
|
attachments: optional(array(hitFile)),
|
|
10942
10700
|
untrusted
|
|
10943
10701
|
}),
|
|
10702
|
+
// Typed loosely: the inferred type of `ENTITIES` would pass the size the compiler writes out (TS7056).
|
|
10944
10703
|
"message.summary": strictObject({
|
|
10945
10704
|
...pick(message, [
|
|
10946
10705
|
"ref",
|
|
@@ -10963,6 +10722,8 @@ var ENTITIES = {
|
|
|
10963
10722
|
message_pin: messagePin,
|
|
10964
10723
|
message_star: messageStar,
|
|
10965
10724
|
message_deletion: messageDeletion,
|
|
10725
|
+
scheduled_cancellation: scheduledCancellation,
|
|
10726
|
+
scheduled_send: scheduledSend,
|
|
10966
10727
|
message_transcript: messageTranscript,
|
|
10967
10728
|
message_links: messageLinks,
|
|
10968
10729
|
evidence_packet: evidencePacket,
|
|
@@ -11206,7 +10967,7 @@ var entityDefinitions = /* @__PURE__ */ __name(() => Object.fromEntries(Object.e
|
|
|
11206
10967
|
return [name, definition];
|
|
11207
10968
|
})), "entityDefinitions");
|
|
11208
10969
|
|
|
11209
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
10970
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/answer-entity.js
|
|
11210
10971
|
var schemas = /* @__PURE__ */ new WeakMap();
|
|
11211
10972
|
var answerEntity = /* @__PURE__ */ __name((command, name, schema2, options = {}) => {
|
|
11212
10973
|
if (Object.hasOwn(ENTITIES, name))
|
|
@@ -11240,61 +11001,7 @@ var answerRow = /* @__PURE__ */ __name((command) => {
|
|
|
11240
11001
|
return own && metaOf(command).output?.entity === own.name ? own.row : void 0;
|
|
11241
11002
|
}, "answerRow");
|
|
11242
11003
|
|
|
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
|
|
11004
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/steps.js
|
|
11298
11005
|
var STEPS2 = defineSteps([
|
|
11299
11006
|
...STEPS,
|
|
11300
11007
|
{
|
|
@@ -11584,7 +11291,7 @@ var stepLine = /* @__PURE__ */ __name((root, step2) => {
|
|
|
11584
11291
|
].join(" ");
|
|
11585
11292
|
}, "stepLine");
|
|
11586
11293
|
|
|
11587
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11294
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/project-status-rows.js
|
|
11588
11295
|
var where = [{ field: "ref" }];
|
|
11589
11296
|
var who2 = { field: ["who.owner", "who.name"], tag: "you" };
|
|
11590
11297
|
var ON_CHAT_ROW = /* @__PURE__ */ new Set(["reply-next", "coverage"]);
|
|
@@ -11676,7 +11383,7 @@ var STATUS_ROWS = {
|
|
|
11676
11383
|
"status.failed": { columns: [{ field: "signal" }], text: ["why"] }
|
|
11677
11384
|
};
|
|
11678
11385
|
|
|
11679
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11386
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/compact.js
|
|
11680
11387
|
var TEXT_CHARS = 400;
|
|
11681
11388
|
var sender = { field: ["sender_is_me", "sender_name"], tag: "me" };
|
|
11682
11389
|
var messageRow = {
|
|
@@ -12044,7 +11751,7 @@ var compactText = /* @__PURE__ */ __name((body, shape, options, rowsOf = rowsOfE
|
|
|
12044
11751
|
return lines.concat(footerOf(body)).join("\n");
|
|
12045
11752
|
}, "compactText");
|
|
12046
11753
|
|
|
12047
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11754
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/output-budget.js
|
|
12048
11755
|
var SOFT_OUTPUT_BYTES = 256 * 1024;
|
|
12049
11756
|
var CARRIED = ["json", "compact", "offline", "timeout", "full", "brief", "maxOutputBytes"];
|
|
12050
11757
|
var NOT_WITH_COMPACT = /* @__PURE__ */ new Set(["json", "brief"]);
|
|
@@ -12102,7 +11809,7 @@ var largeAnswerSteps = /* @__PURE__ */ __name((command) => {
|
|
|
12102
11809
|
return args ? compactStep(command, args, "the answer is large as JSON; one line per item keeps every ref") : [];
|
|
12103
11810
|
}, "largeAnswerSteps");
|
|
12104
11811
|
|
|
12105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11812
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/provider-refs.js
|
|
12106
11813
|
var HIDDEN = /* @__PURE__ */ new Set(["providerRef", "provider_ref"]);
|
|
12107
11814
|
var withoutProviderRefs = /* @__PURE__ */ __name((value) => strip(value), "withoutProviderRefs");
|
|
12108
11815
|
var strip = /* @__PURE__ */ __name((value) => {
|
|
@@ -12116,7 +11823,7 @@ var strip = /* @__PURE__ */ __name((value) => {
|
|
|
12116
11823
|
return Object.fromEntries(Object.entries(value).flatMap(([key, inner]) => HIDDEN.has(key) ? [] : [[key, strip(inner)]]));
|
|
12117
11824
|
}, "strip");
|
|
12118
11825
|
|
|
12119
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11826
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/untrusted-marks.js
|
|
12120
11827
|
var OPEN = "\u27E6";
|
|
12121
11828
|
var CLOSE = "\u27E7";
|
|
12122
11829
|
var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
@@ -12125,6 +11832,10 @@ var untrustedMarkOf = /* @__PURE__ */ __name((app, env) => {
|
|
|
12125
11832
|
const mark = ancestorValue(envName(app, "UNTRUSTED_MARK"), env);
|
|
12126
11833
|
return mark && /^[0-9a-f]{16}$/.test(mark) ? mark : void 0;
|
|
12127
11834
|
}, "untrustedMarkOf");
|
|
11835
|
+
var runMarkOf = /* @__PURE__ */ __name((command) => {
|
|
11836
|
+
const { app, env } = environmentOf(command);
|
|
11837
|
+
return app ? untrustedMarkOf(app, env ?? process.env) : void 0;
|
|
11838
|
+
}, "runMarkOf");
|
|
12128
11839
|
var marked = /* @__PURE__ */ __name((text5, mark, source2, id6) => {
|
|
12129
11840
|
const inside = text5.replaceAll(OPEN, "").replaceAll(CLOSE, "").replaceAll(mark, "");
|
|
12130
11841
|
const named3 = id6 === void 0 ? "" : ` id=${id6.replaceAll(OPEN, "").replaceAll(CLOSE, "").replace(/\s/g, "")}`;
|
|
@@ -12200,7 +11911,7 @@ var withFieldsMarked = /* @__PURE__ */ __name((value, fields, mark, id6) => {
|
|
|
12200
11911
|
return result;
|
|
12201
11912
|
}, "withFieldsMarked");
|
|
12202
11913
|
|
|
12203
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
11914
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.718.0_@wirecat+cli-base@0.125.0_commander@15.0.0_esbuild@0.28.2_typ_cfff6f86942c54bd7564e982a7834a83/node_modules/@wirecat/cli-core/dist/cli/envelope.js
|
|
12204
11915
|
var answerSchema = /* @__PURE__ */ __name((item = unknown()) => union([listEnvelopeSchema(item), itemEnvelopeSchema(item)]), "answerSchema");
|
|
12205
11916
|
var capped2 = /* @__PURE__ */ __name((steps) => steps.length > 0 ? { next: steps.slice(0, MAX_NEXT_STEPS) } : {}, "capped");
|
|
12206
11917
|
var listOf = /* @__PURE__ */ __name((command, input) => {
|
|
@@ -12330,8 +12041,7 @@ var renderAnswer = /* @__PURE__ */ __name((command, { renderer, format, streams,
|
|
|
12330
12041
|
const root = rootOf2(command);
|
|
12331
12042
|
const runnableSteps = runnable(root, body.next);
|
|
12332
12043
|
const next = environmentOf(command).agent ? runnableSteps : withLines(root, runnableSteps);
|
|
12333
|
-
const
|
|
12334
|
-
const mark = app ? untrustedMarkOf(app, env ?? process.env) : void 0;
|
|
12044
|
+
const mark = runMarkOf(command);
|
|
12335
12045
|
const declared = untrustedFieldsOf(command);
|
|
12336
12046
|
const shown = mark === void 0 ? body : withUntrustedMarked(declared ? withFieldsMarked(body, declared, mark) : body, mark);
|
|
12337
12047
|
const kept = withoutProviderRefs({ ...shown, ...next.length > 0 ? { next } : {} });
|
|
@@ -12375,14 +12085,7 @@ var printItem = /* @__PURE__ */ __name(({ renderer, format }, item) => {
|
|
|
12375
12085
|
}, "printItem");
|
|
12376
12086
|
|
|
12377
12087
|
export {
|
|
12378
|
-
modelTarget,
|
|
12379
12088
|
resolveAISettings,
|
|
12380
|
-
envName,
|
|
12381
|
-
ancestorValue,
|
|
12382
|
-
readOnlyLockOf,
|
|
12383
|
-
mailHolderVariable,
|
|
12384
|
-
MESSENGER_CHANGE_REFUSAL,
|
|
12385
|
-
readOnlyRefusal,
|
|
12386
12089
|
recordLogFor,
|
|
12387
12090
|
parseDuration,
|
|
12388
12091
|
WEIGHTS,
|
|
@@ -12456,18 +12159,12 @@ export {
|
|
|
12456
12159
|
readKeysForCommand,
|
|
12457
12160
|
keyForCommand,
|
|
12458
12161
|
assertRetentionEvidenceRead,
|
|
12459
|
-
ANSWER_RESERVE_MS,
|
|
12460
|
-
deadlineMargin,
|
|
12461
12162
|
recorded,
|
|
12462
12163
|
startRecording,
|
|
12463
12164
|
wasSettled,
|
|
12464
12165
|
inCommandServerRequest,
|
|
12465
12166
|
commandServerRequest,
|
|
12466
12167
|
exitCodeSet,
|
|
12467
|
-
sentIds,
|
|
12468
|
-
currentOperation,
|
|
12469
|
-
guardedWrite,
|
|
12470
|
-
codeOf,
|
|
12471
12168
|
DEFAULT_COMMAND_MS,
|
|
12472
12169
|
DEFAULT_COOPERATIVE_MS,
|
|
12473
12170
|
DEFAULT_SYNC_MS,
|
|
@@ -12579,12 +12276,6 @@ export {
|
|
|
12579
12276
|
topic,
|
|
12580
12277
|
ENTITIES,
|
|
12581
12278
|
entityDefinitions,
|
|
12582
|
-
IMAGE_MODELS,
|
|
12583
|
-
DEFAULT_IMAGE_MODEL,
|
|
12584
|
-
imageModel,
|
|
12585
|
-
imageModelsDirectory,
|
|
12586
|
-
placedImage,
|
|
12587
|
-
isImageModelInstalled,
|
|
12588
12279
|
answerEntity,
|
|
12589
12280
|
answerEntitySchema,
|
|
12590
12281
|
answerProjectionSchema,
|
|
@@ -12601,6 +12292,9 @@ export {
|
|
|
12601
12292
|
stepLine,
|
|
12602
12293
|
tooLargeSteps,
|
|
12603
12294
|
withoutProviderRefs,
|
|
12295
|
+
runMarkOf,
|
|
12296
|
+
marked,
|
|
12297
|
+
withUntrustedMarked,
|
|
12604
12298
|
marksUntrusted,
|
|
12605
12299
|
answerSchema,
|
|
12606
12300
|
listOf,
|