@wirecat/drive-cli 0.71.0 → 0.72.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/README.md +150 -71
- package/contracts/wirecat.json +77 -8
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/agent-23OB2NZP.js +46 -0
- package/dist/bundle/{all-profiles-3QJG2NAN.js → all-profiles-GXGDVNQJ.js} +67 -25
- package/dist/bundle/{anthropic-PSWTEU6G.js → anthropic-H5C4GQHC.js} +9 -9
- package/dist/bundle/{app-server-PVTA6ABR.js → app-server-EQ3UK4C7.js} +97 -79
- package/dist/bundle/{bun-LU5LP3JI.js → bun-DTJVSRY3.js} +2 -2
- package/dist/bundle/{bun-sqlite-PYMKLBRU.js → bun-sqlite-JIFY7MAE.js} +9 -9
- package/dist/bundle/chunk-2Q325BBD.js +353 -0
- package/dist/bundle/chunk-35FIJGTT.js +52 -0
- package/dist/bundle/{chunk-RWDKMU74.js → chunk-3FRQ6V4T.js} +3 -3
- package/dist/bundle/chunk-47L262VI.js +340 -0
- package/dist/bundle/chunk-4HP6KGBI.js +32 -0
- package/dist/bundle/{chunk-YVI5SQPY.js → chunk-4HPXWYTE.js} +1 -1
- package/dist/bundle/{chunk-QETR5HIZ.js → chunk-4IUNYYYL.js} +4385 -2684
- package/dist/bundle/{chunk-I4RWW3UD.js → chunk-4JS32SRX.js} +20 -5
- package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
- package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
- package/dist/bundle/{chunk-3N2OFXB5.js → chunk-55FH6IEL.js} +5 -5
- package/dist/bundle/{chunk-6TNNT2MQ.js → chunk-5BNMWSU2.js} +483 -176
- package/dist/bundle/{chunk-6XFIITOG.js → chunk-5H747A76.js} +5532 -3265
- package/dist/bundle/{chunk-MNLL5YLM.js → chunk-5KWCO56H.js} +2 -2
- package/dist/bundle/{chunk-GZ2D4KXG.js → chunk-5U3NCE5R.js} +35 -12
- package/dist/bundle/{chunk-CJLVYIOP.js → chunk-6CCO3JCM.js} +30 -21
- package/dist/bundle/{chunk-26DHFMGZ.js → chunk-6ZW2ZJYC.js} +2 -2
- package/dist/bundle/{chunk-COJSWDNU.js → chunk-75DAHQOV.js} +3 -3
- package/dist/bundle/{chunk-Q7DOMFJ4.js → chunk-77OBW43F.js} +6 -6
- package/dist/bundle/{chunk-FCS26CYQ.js → chunk-7EFM6AW3.js} +4 -4
- package/dist/bundle/{chunk-XMMFBPGC.js → chunk-A3S7QM5L.js} +3 -3
- package/dist/bundle/{chunk-ASMMG72J.js → chunk-AA4LKC6W.js} +244 -565
- package/dist/bundle/chunk-ASTKHB6B.js +3233 -0
- package/dist/bundle/{chunk-LXKYKRHD.js → chunk-BM6V7456.js} +8 -227
- package/dist/bundle/chunk-BO6EDBYJ.js +50 -0
- package/dist/bundle/{chunk-YPFWNVHV.js → chunk-BPA3R4KN.js} +2 -100
- package/dist/bundle/chunk-CIFE4KPX.js +2159 -0
- package/dist/bundle/chunk-CKB4XZZJ.js +730 -0
- package/dist/bundle/{chunk-RJOQH5YY.js → chunk-COJTCEZP.js} +111 -859
- package/dist/bundle/{chunk-FJH7DJWK.js → chunk-CWPYDT73.js} +6 -6
- package/dist/bundle/{chunk-BKSQBBYG.js → chunk-D4JNCXS7.js} +9 -9
- package/dist/bundle/chunk-DCPWZIOV.js +696 -0
- package/dist/bundle/{chunk-PRW6SYA3.js → chunk-DHMNCOQI.js} +313 -257
- package/dist/bundle/chunk-DOQMH4DC.js +280 -0
- package/dist/bundle/chunk-DQSOYH6N.js +20 -0
- package/dist/bundle/{chunk-YJIGGUPI.js → chunk-DWRUOLBF.js} +4 -4
- package/dist/bundle/{chunk-6W763DZN.js → chunk-E3VWZC3K.js} +14 -13
- package/dist/bundle/chunk-ECYOTDJM.js +14 -0
- package/dist/bundle/{chunk-KGYVHPGE.js → chunk-EVG3AA5M.js} +2 -2
- package/dist/bundle/chunk-F4BX7TH2.js +15 -0
- package/dist/bundle/{chunk-Y2NWGNUB.js → chunk-FBEZSA76.js} +5 -5
- package/dist/bundle/{chunk-2BVVU7GG.js → chunk-FBQJN74J.js} +1 -1
- package/dist/bundle/{chunk-Z56QFOBR.js → chunk-FIZOPJYY.js} +1 -1
- package/dist/bundle/chunk-FNAYSZWK.js +783 -0
- package/dist/bundle/{chunk-GPQ44Y2R.js → chunk-FRCJHGZM.js} +2 -2
- package/dist/bundle/{chunk-35SCQ4VI.js → chunk-FTG5QBSD.js} +41 -33
- package/dist/bundle/{chunk-KYKW2W6X.js → chunk-FUDUXIVG.js} +1 -1
- package/dist/bundle/{chunk-NYECVHFH.js → chunk-G4NHRFS7.js} +755 -0
- package/dist/bundle/{chunk-FT3LN3HP.js → chunk-GIEZYBRC.js} +1 -1
- package/dist/bundle/chunk-GTPPUBYU.js +1876 -0
- package/dist/bundle/chunk-GU6ICH53.js +108 -0
- package/dist/bundle/{chunk-ACUAV6VX.js → chunk-GUMKKRE6.js} +107 -71
- package/dist/bundle/{chunk-KGERXYTV.js → chunk-GWCDOYSC.js} +1 -1
- package/dist/bundle/{chunk-OJSBWP3F.js → chunk-GXGSC622.js} +69 -7
- package/dist/bundle/chunk-HAGXTGJC.js +188 -0
- package/dist/bundle/{chunk-XF4EXO2C.js → chunk-IMAWQC5K.js} +6 -6
- package/dist/bundle/{chunk-HKY7X6NY.js → chunk-IVGVVSPW.js} +4 -4
- package/dist/bundle/{chunk-P7CUM5IB.js → chunk-J4NUHSM7.js} +1 -1
- package/dist/bundle/{chunk-MIA7P6FZ.js → chunk-K652FYCO.js} +6 -6
- package/dist/bundle/chunk-K6ZWNTXY.js +561 -0
- package/dist/bundle/{chunk-COOOO5B3.js → chunk-KF3ZBQJV.js} +4 -4
- package/dist/bundle/chunk-KFZCHJRT.js +80 -0
- package/dist/bundle/chunk-KLPFDFLI.js +221 -0
- package/dist/bundle/{chunk-EOEU3AZN.js → chunk-KP2XMCNT.js} +13 -13
- package/dist/bundle/{chunk-FP54WSIR.js → chunk-KWDZ3KVH.js} +4 -4
- package/dist/bundle/{chunk-QNRRK3CN.js → chunk-KX4C32WD.js} +2 -2
- package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
- package/dist/bundle/{chunk-2LHAVY4U.js → chunk-M2ZWYVWO.js} +1 -1
- package/dist/bundle/chunk-MEYYH47C.js +25 -0
- package/dist/bundle/{chunk-3EBBLKIT.js → chunk-ML2QIWX2.js} +4 -4
- package/dist/bundle/{chunk-ZM63SUHG.js → chunk-MUFF2YTH.js} +2 -2
- package/dist/bundle/{chunk-2PUNKUYJ.js → chunk-N24YSLED.js} +9150 -9869
- package/dist/bundle/chunk-N4GTCPML.js +7 -0
- package/dist/bundle/{chunk-B5KSXHJ7.js → chunk-NBMGDRP4.js} +1 -1
- package/dist/bundle/chunk-NMQRSEZM.js +37 -0
- package/dist/bundle/{chunk-JDV7HNNQ.js → chunk-NNGA4QDR.js} +13 -26
- package/dist/bundle/{chunk-5DPV7X27.js → chunk-NTZWY5R3.js} +321 -0
- package/dist/bundle/chunk-O7CZZ36M.js +80 -0
- package/dist/bundle/{chunk-ICDCAQ6K.js → chunk-OAONP6KI.js} +13 -9
- package/dist/bundle/{chunk-WVDCCYS3.js → chunk-OESP4PHB.js} +17 -17
- package/dist/bundle/chunk-OHR6IZNH.js +116 -0
- package/dist/bundle/{chunk-4QNW4NK6.js → chunk-OLCU7Q2B.js} +1 -1
- package/dist/bundle/{chunk-SDKQNOL5.js → chunk-OLDQLEPA.js} +6 -6
- package/dist/bundle/{chunk-ZCR3IRZ2.js → chunk-OPIPG6AP.js} +16 -9
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/chunk-PRYMT3OG.js +30 -0
- package/dist/bundle/chunk-QDUIVMEW.js +36 -0
- package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-QKBPCX7Y.js} +1 -1
- package/dist/bundle/{chunk-QXC6IEH6.js → chunk-QSLOACDT.js} +201 -423
- package/dist/bundle/{chunk-7PDHGZN4.js → chunk-QUZFDU4K.js} +4 -4
- package/dist/bundle/{chunk-3UGYFXH6.js → chunk-R32DHS6J.js} +187 -379
- package/dist/bundle/{chunk-6SJOTNHF.js → chunk-R57QUYBG.js} +6 -28
- package/dist/bundle/{chunk-UTO2GO4P.js → chunk-R64OSDOD.js} +45 -66
- package/dist/bundle/{chunk-GBKNJWOZ.js → chunk-RSPBVKOC.js} +8 -8
- package/dist/bundle/{chunk-HL52XXZX.js → chunk-SPNPJ3FZ.js} +3 -4
- package/dist/bundle/chunk-SQHDSIFL.js +388 -0
- package/dist/bundle/{chunk-YPNWIB6H.js → chunk-ST35FIUG.js} +3 -3
- package/dist/bundle/{chunk-37MAA6F2.js → chunk-STUPCKAA.js} +11 -2221
- package/dist/bundle/chunk-SZ7XJZGH.js +2231 -0
- package/dist/bundle/chunk-TRYYWV7J.js +291 -0
- package/dist/bundle/{chunk-X4TIMMKJ.js → chunk-TTPWKTVR.js} +1 -1
- package/dist/bundle/{chunk-TAFHYHKA.js → chunk-U7VEJ3CW.js} +45 -27
- package/dist/bundle/{chunk-6Y2BYFXQ.js → chunk-UC7JLE6J.js} +0 -7
- package/dist/bundle/{chunk-4HWJOU7N.js → chunk-UIQ35CA5.js} +1 -1
- package/dist/bundle/{chunk-SAKO3P4H.js → chunk-UJY26HW4.js} +1 -1
- package/dist/bundle/{chunk-D5TGYUVU.js → chunk-UWG3PRY7.js} +9 -60
- package/dist/bundle/{chunk-JZHBZOJR.js → chunk-VAR3MJU6.js} +3 -3
- package/dist/bundle/{chunk-GOWXXYEF.js → chunk-VPQSI5IU.js} +4 -4
- package/dist/bundle/{chunk-QFR2PNJN.js → chunk-VQPT3Y7W.js} +12 -12
- package/dist/bundle/{chunk-Z3KUSRCF.js → chunk-WMG3H2VK.js} +2 -2
- package/dist/bundle/{chunk-4PA4DHYV.js → chunk-X5BGAZC5.js} +6 -6
- package/dist/bundle/{chunk-2UUWXPOB.js → chunk-XC6TRWLZ.js} +3 -3
- package/dist/bundle/{chunk-OF422U5D.js → chunk-XQZEMRCU.js} +402 -402
- package/dist/bundle/{chunk-72C4YOCH.js → chunk-XZ7MO6EU.js} +7 -7
- package/dist/bundle/{chunk-SERXSCN3.js → chunk-YAIOEPKU.js} +337 -390
- package/dist/bundle/chunk-YHWFF6DN.js +39 -0
- package/dist/bundle/{chunk-RESDD3Q4.js → chunk-YWOLQEDV.js} +16 -3
- package/dist/bundle/{chunk-YMJ6IDGT.js → chunk-ZFDSJ5YJ.js} +38 -8
- package/dist/bundle/{chunk-HMS6EEQL.js → chunk-ZFUZEFU6.js} +3 -3
- package/dist/bundle/{chunk-TAUBRNC5.js → chunk-ZJKXSMXK.js} +72 -59
- package/dist/bundle/{chunk-22QQUKWA.js → chunk-ZKWT6HXT.js} +1 -1
- package/dist/bundle/chunk-ZPUY3COZ.js +250 -0
- package/dist/bundle/{cli-556DERZL.js → cli-2P5FW2RL.js} +201 -98
- package/dist/bundle/command-contract-BMQT2G5X.js +45 -0
- package/dist/bundle/{command-server-entry-AYLGNZWD.js → command-server-entry-KP2UDGLA.js} +36 -34
- package/dist/bundle/{decode-QU24MWMN.js → decode-K2JZ5D6V.js} +10 -10
- package/dist/bundle/{dispatch-4KODNOXV.js → dispatch-KOQZA74A.js} +10 -10
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-BXX4OQWC.js → echarts-URO3QGCG.js} +2 -2
- package/dist/bundle/{embed-KG27KG3D.js → embed-JLIPWTNN.js} +10 -10
- package/dist/bundle/{embedder-IPAVUQUV.js → embedder-LUTDO3HS.js} +15 -15
- package/dist/bundle/entry-AVF6LMG7.js +25 -0
- package/dist/bundle/{failure-ESL7ETL4.js → failure-GJMQLM7O.js} +4 -4
- package/dist/bundle/first-run-VYTIEUDA.js +31 -0
- package/dist/bundle/first-screen-QVZPF7KL.js +45 -0
- package/dist/bundle/google-VX7IPACN.js +46 -0
- package/dist/bundle/{google-api-VCDBSNOW.js → google-api-RFXKRLL4.js} +88 -73
- package/dist/bundle/grants-4XWJFVD6.js +133 -0
- package/dist/bundle/hast-util-from-html-X2DCPS3T.js +10531 -0
- package/dist/bundle/hast-util-to-html-VP6XLPKJ.js +998 -0
- package/dist/bundle/hast-util-to-mdast-IZ5PRX72.js +2272 -0
- package/dist/bundle/{identity-LOWMVGZY.js → identity-FXPB5EMT.js} +7 -6
- package/dist/bundle/{instructions-2VECIDXF.js → instructions-IROIUVZI.js} +1 -1
- package/dist/bundle/{login-7GBONT7V.js → login-WIY5VQU7.js} +96 -81
- package/dist/bundle/{mcp-O6ACR2DX.js → mcp-NJIOKW3E.js} +2 -2
- package/dist/bundle/{mdast-util-from-markdown-FXEPSNER.js → mdast-util-from-markdown-HEZF7KJ4.js} +137 -195
- package/dist/bundle/mdast-util-gfm-AQW6R6MG.js +925 -0
- package/dist/bundle/mdast-util-to-hast-DF2QVIRV.js +879 -0
- package/dist/bundle/mdast-util-to-markdown-XYLXB3Z3.js +18 -0
- package/dist/bundle/meeting-combined-JUNV35GM.js +28 -0
- package/dist/bundle/meeting-model-XY4UNWWK.js +29 -0
- package/dist/bundle/{meeting-semantic-G7PFOKU7.js → meeting-semantic-62QNQMOM.js} +10 -10
- package/dist/bundle/{micromark-extension-gfm-GRL24TU6.js → micromark-extension-gfm-OE2GBORZ.js} +11 -78
- package/dist/bundle/{node-MPEQSFI3.js → node-IACCI2CW.js} +2 -2
- package/dist/bundle/{node-sqlite-OLQMAYB4.js → node-sqlite-WYIRC7C7.js} +10 -10
- package/dist/bundle/notes-search-DEDUJKSN.js +70 -0
- package/dist/bundle/oauth-HXBXF4VI.js +22 -0
- package/dist/bundle/{open-OXTE672W.js → open-H32B6BCT.js} +8 -8
- package/dist/bundle/{openai-EB3TPIZY.js → openai-VHMPJJUG.js} +22 -21
- package/dist/bundle/{process-F6TKXWWA.js → process-RNHPF5OK.js} +1 -1
- package/dist/bundle/{program-4IFDZ7FM.js → program-GYMJ3DDH.js} +275 -1148
- package/dist/bundle/{prompt-F5RRHPN2.js → prompt-TOG2CRCE.js} +8 -8
- package/dist/bundle/{reasons-UORHJDHK.js → reasons-TLFQ45YX.js} +6 -5
- package/dist/bundle/{recognize-DAVNZND3.js → recognize-GYGY45EY.js} +7 -7
- package/dist/bundle/remote-6XN2QLI5.js +35 -0
- package/dist/bundle/{rerank-CND2GVLZ.js → rerank-HJO3O4TW.js} +11 -11
- package/dist/bundle/{serve-ZHSPUIGX.js → serve-XPCNLHCR.js} +19 -19
- package/dist/bundle/server-UBJZ66XE.js +97 -0
- package/dist/bundle/{server-YMAK4LHC.js → server-WPT3NC5B.js} +89 -70
- package/dist/bundle/{services-ZILSFJ6E.js → services-253KKKVU.js} +109 -89
- package/dist/bundle/{sqlite-runtime-S5VPMZQH.js → sqlite-runtime-EZASGJXW.js} +9 -9
- package/dist/bundle/{start-CR6X25RT.js → start-UHI35JFL.js} +7 -7
- package/dist/bundle/{state-YFPHVIIJ.js → state-KJTSPFGK.js} +9 -9
- package/dist/bundle/{store-UODRT6X4.js → store-62J2H2A3.js} +36 -25
- package/dist/bundle/{store-CL4ZJZRI.js → store-G5B7T7M7.js} +38 -23
- package/dist/bundle/store-maintenance-command-C6T4YLVF.js +85 -0
- package/dist/bundle/surface-3OT64BHS.js +83 -0
- package/dist/bundle/tokens-EHYO6D2X.js +133 -0
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +11 -1
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/remote.d.ts.map +1 -1
- package/dist/commands/remote.js +8 -22
- package/dist/commands/remote.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +14 -4
- package/dist/commands/sync.js.map +1 -1
- package/dist/config.d.ts +5 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +5 -0
- package/dist/config.js.map +1 -1
- package/dist/first-screen.d.ts.map +1 -1
- package/dist/first-screen.js +2 -1
- package/dist/first-screen.js.map +1 -1
- package/dist/generated/manifest.d.ts +2 -1
- package/dist/generated/manifest.d.ts.map +1 -1
- package/dist/generated/manifest.js +782 -0
- package/dist/generated/manifest.js.map +1 -1
- package/dist/generated/types.d.ts +262 -58
- package/dist/generated/types.d.ts.map +1 -1
- package/dist/google.d.ts.map +1 -1
- package/dist/google.js +5 -5
- package/dist/google.js.map +1 -1
- package/dist/model.d.ts +5 -2
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js.map +1 -1
- package/dist/policy-keys.js +1 -1
- package/dist/policy-keys.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +9 -4
- package/dist/program.js.map +1 -1
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +6 -1
- package/dist/state.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +2 -7
- package/dist/store.js.map +1 -1
- package/dist/supported.d.ts +2 -2
- package/dist/supported.d.ts.map +1 -1
- package/dist/supported.js +2 -3
- package/dist/supported.js.map +1 -1
- package/dist/sync.d.ts +2 -1
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +5 -2
- package/dist/sync.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/scenarios/find-decision.md +1 -1
- package/skills/drive-cli/SKILL.md +4 -2
- package/dist/bundle/chunk-J5Q5FS2N.js +0 -593
- package/dist/bundle/chunk-L46C6HQ7.js +0 -729
- package/dist/bundle/chunk-UDMNY63V.js +0 -899
- package/dist/bundle/chunk-VKE77B3F.js +0 -2
- package/dist/bundle/command-contract-VRTOAV6W.js +0 -43
- package/dist/bundle/entry-MVXQETWS.js +0 -25
- package/dist/bundle/first-run-4UVLW2WR.js +0 -31
- package/dist/bundle/first-screen-JAKAIINI.js +0 -41
- package/dist/bundle/google-22NXXJX5.js +0 -45
- package/dist/bundle/grants-MQMTVCRQ.js +0 -118
- package/dist/bundle/mdast-util-gfm-SZM5GBDF.js +0 -2103
- package/dist/bundle/meeting-combined-LVP4AZKA.js +0 -27
- package/dist/bundle/meeting-model-RAY5XDXZ.js +0 -29
- package/dist/bundle/oauth-SGH2I2BY.js +0 -22
- package/dist/bundle/remote-D5EYYIAU.js +0 -35
- package/dist/bundle/server-DUVJWP3Q.js +0 -80
- package/dist/bundle/store-maintenance-command-DY5XIBWR.js +0 -72
- package/dist/bundle/tokens-AF7QOFOF.js +0 -118
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
AUDIT_MIN_SCORE
|
|
5
|
+
} from "./chunk-N24YSLED.js";
|
|
6
|
+
import {
|
|
7
|
+
LIST_QUERY_GUIDE,
|
|
8
|
+
nativeTerms
|
|
9
|
+
} from "./chunk-CKB4XZZJ.js";
|
|
10
|
+
import {
|
|
11
|
+
DEFAULT_CONFIG,
|
|
12
|
+
environmentOf,
|
|
13
|
+
itemOf,
|
|
14
|
+
listOf,
|
|
15
|
+
nextStep,
|
|
16
|
+
renderAnswer,
|
|
17
|
+
snakeKeys,
|
|
18
|
+
withAgentLevels
|
|
19
|
+
} from "./chunk-YAIOEPKU.js";
|
|
20
|
+
import {
|
|
21
|
+
formatReference
|
|
22
|
+
} from "./chunk-COJTCEZP.js";
|
|
23
|
+
import {
|
|
24
|
+
queryError
|
|
25
|
+
} from "./chunk-XQZEMRCU.js";
|
|
26
|
+
import {
|
|
27
|
+
CliError
|
|
28
|
+
} from "./chunk-OLCU7Q2B.js";
|
|
29
|
+
import {
|
|
30
|
+
__name
|
|
31
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
32
|
+
|
|
33
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/cli/paging.js
|
|
34
|
+
var positiveCount = /* @__PURE__ */ __name((flag) => (value) => {
|
|
35
|
+
if (!/^\d+$/.test(value.trim()) || Number(value) < 1)
|
|
36
|
+
throw new CliError("validation_error", `${flag} takes a whole number from 1 upwards, not "${value}"`);
|
|
37
|
+
return Number(value);
|
|
38
|
+
}, "positiveCount");
|
|
39
|
+
var configuredLimit = /* @__PURE__ */ __name((command, most = Number.POSITIVE_INFINITY) => {
|
|
40
|
+
const { resolveSettings, env } = environmentOf(command);
|
|
41
|
+
const { limit: _typed, ...flags } = command.optsWithGlobals();
|
|
42
|
+
const configured = resolveSettings?.(flags, { needsProfile: false, ...env ? { env } : {} }).limit ?? DEFAULT_CONFIG.defaults.limit;
|
|
43
|
+
return Math.min(configured, most);
|
|
44
|
+
}, "configuredLimit");
|
|
45
|
+
var withPaging = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")).option("--all", "every row, no paging"), "withPaging");
|
|
46
|
+
var window = /* @__PURE__ */ __name(({ limit, page, all }) => all ? { offset: 0 } : { limit, offset: (page - 1) * limit }, "window");
|
|
47
|
+
var pagingOf = /* @__PURE__ */ __name((command) => {
|
|
48
|
+
const environment = environmentOf(command);
|
|
49
|
+
const flags = command.optsWithGlobals();
|
|
50
|
+
if (!environment.resolveSettings)
|
|
51
|
+
return { limit: flags.limit ?? DEFAULT_CONFIG.defaults.limit, page: flags.page ?? 1 };
|
|
52
|
+
const { limit, page } = environment.resolveSettings(withAgentLevels(command, command.optsWithGlobals()), {
|
|
53
|
+
env: environment.env ?? process.env,
|
|
54
|
+
needsProfile: false,
|
|
55
|
+
readOnly: true
|
|
56
|
+
});
|
|
57
|
+
return { limit: limit ?? DEFAULT_CONFIG.defaults.limit, page: page ?? 1 };
|
|
58
|
+
}, "pagingOf");
|
|
59
|
+
|
|
60
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.722.0_@wirecat+cli-base@0.128.0_commander@15.0.0_esbuild@0.28.2_typ_a55806ccf2eb39d6be3eaf4c54d1a60a/node_modules/@wirecat/cli-core/dist/cli/messenger/chat-answers.js
|
|
61
|
+
var defined = /* @__PURE__ */ __name((record) => Object.fromEntries(Object.entries(record).filter(([, value]) => value !== void 0)), "defined");
|
|
62
|
+
var chatRef = /* @__PURE__ */ __name((account, chat) => formatReference({ type: "chat", provider: account.provider, account: account.account, chat }), "chatRef");
|
|
63
|
+
var settingsOf = /* @__PURE__ */ __name((settings) => defined({
|
|
64
|
+
all_can_pin: settings.allCanPin,
|
|
65
|
+
only_admins_add: settings.onlyAdminsAdd,
|
|
66
|
+
only_admins_call: settings.onlyAdminsCall,
|
|
67
|
+
only_owner_edits_info: settings.onlyOwnerEditsInfo,
|
|
68
|
+
members_see_link: settings.membersSeeLink,
|
|
69
|
+
join_approval: settings.joinApproval,
|
|
70
|
+
only_admins_send: settings.onlyAdminsSend,
|
|
71
|
+
only_admins_edit_info: settings.onlyAdminsEditInfo,
|
|
72
|
+
disappearing_seconds: settings.disappearingSeconds
|
|
73
|
+
}), "settingsOf");
|
|
74
|
+
var chatAnswer = /* @__PURE__ */ __name((account, chat) => defined({
|
|
75
|
+
ref: chatRef(account, chat.id),
|
|
76
|
+
id: chat.id,
|
|
77
|
+
title: chat.title,
|
|
78
|
+
kind: chat.kind,
|
|
79
|
+
unread_count: chat.unreadCount,
|
|
80
|
+
unread_mentions: chat.unreadMentions,
|
|
81
|
+
last_message_at: chat.lastMessageAt,
|
|
82
|
+
participants_count: chat.participantsCount,
|
|
83
|
+
muted: chat.muted,
|
|
84
|
+
muted_until: chat.mutedUntil ?? void 0,
|
|
85
|
+
archived: chat.archived,
|
|
86
|
+
marked_unread: chat.markedUnread,
|
|
87
|
+
membership_state: chat.membershipState,
|
|
88
|
+
parent_chat_id: chat.parentChatId ?? void 0,
|
|
89
|
+
scope: chat.scope,
|
|
90
|
+
provider_metadata: chat.providerMetadata,
|
|
91
|
+
description: chat.description,
|
|
92
|
+
invite_link: chat.link,
|
|
93
|
+
settings: chat.settings ? settingsOf(chat.settings) : void 0,
|
|
94
|
+
members: chat.members?.map(memberAnswer)
|
|
95
|
+
}), "chatAnswer");
|
|
96
|
+
var memberAnswer = /* @__PURE__ */ __name((member) => {
|
|
97
|
+
const group = member;
|
|
98
|
+
return defined({
|
|
99
|
+
id: member.id,
|
|
100
|
+
name: member.name,
|
|
101
|
+
username: member.username,
|
|
102
|
+
role: group.role,
|
|
103
|
+
last_seen_at: group.lastSeenAt,
|
|
104
|
+
registered_at: group.registeredAt,
|
|
105
|
+
joined_at: group.joinedAt,
|
|
106
|
+
invited_by: group.invitedBy,
|
|
107
|
+
is_bot: group.isBot,
|
|
108
|
+
deleted: group.deleted,
|
|
109
|
+
flagged: group.flagged,
|
|
110
|
+
has_photo: group.hasPhoto,
|
|
111
|
+
score: group.score,
|
|
112
|
+
reasons: group.reasons,
|
|
113
|
+
check: group.check ? snakeKeys(group.check) : void 0
|
|
114
|
+
});
|
|
115
|
+
}, "memberAnswer");
|
|
116
|
+
var contactRef = /* @__PURE__ */ __name((provider, id) => formatReference({ type: "contact", provider, id }), "contactRef");
|
|
117
|
+
var contactAnswer = /* @__PURE__ */ __name((account, contact) => {
|
|
118
|
+
const card = contact;
|
|
119
|
+
return defined({
|
|
120
|
+
ref: contactRef(account.provider, contact.id),
|
|
121
|
+
id: contact.id,
|
|
122
|
+
name: contact.name,
|
|
123
|
+
username: contact.username,
|
|
124
|
+
alias: contact.alias,
|
|
125
|
+
display_name: contact.displayName,
|
|
126
|
+
description: contact.description,
|
|
127
|
+
last_messaged_at: contact.lastMessagedAt,
|
|
128
|
+
chats: card.chats?.map((chat) => ({
|
|
129
|
+
ref: chatRef(account, chat.id),
|
|
130
|
+
id: chat.id,
|
|
131
|
+
title: chat.title,
|
|
132
|
+
kind: chat.kind,
|
|
133
|
+
last_message_at: chat.lastMessageAt
|
|
134
|
+
})),
|
|
135
|
+
notes: card.notes?.map(({ id, text, revision, createdAt, updatedAt }) => ({
|
|
136
|
+
id,
|
|
137
|
+
text,
|
|
138
|
+
revision,
|
|
139
|
+
created_at: createdAt,
|
|
140
|
+
updated_at: updatedAt
|
|
141
|
+
}))
|
|
142
|
+
});
|
|
143
|
+
}, "contactAnswer");
|
|
144
|
+
var contactShown = /* @__PURE__ */ __name((account, card, profile) => {
|
|
145
|
+
const { id: _id, name: _name, bio, chats, ...facts } = profile;
|
|
146
|
+
const listed = new Map(card.chats.map((chat) => [chat.id, chat]));
|
|
147
|
+
const active = new Set(chats.map(({ id }) => id));
|
|
148
|
+
const shared = [
|
|
149
|
+
...chats.map((chat) => ({
|
|
150
|
+
ref: chatRef(account, chat.id),
|
|
151
|
+
id: chat.id,
|
|
152
|
+
title: chat.title,
|
|
153
|
+
kind: chat.kind,
|
|
154
|
+
last_message_at: listed.get(chat.id)?.lastMessageAt ?? chat.lastAt,
|
|
155
|
+
their_messages: chat.theirMessages,
|
|
156
|
+
first_at: chat.firstAt,
|
|
157
|
+
last_at: chat.lastAt,
|
|
158
|
+
complete: chat.complete
|
|
159
|
+
})),
|
|
160
|
+
...card.chats.filter(({ id }) => !active.has(id)).map((chat) => ({
|
|
161
|
+
ref: chatRef(account, chat.id),
|
|
162
|
+
id: chat.id,
|
|
163
|
+
title: chat.title,
|
|
164
|
+
kind: chat.kind,
|
|
165
|
+
last_message_at: chat.lastMessageAt
|
|
166
|
+
}))
|
|
167
|
+
];
|
|
168
|
+
const answer = contactAnswer(account, card);
|
|
169
|
+
return {
|
|
170
|
+
...answer,
|
|
171
|
+
...snakeKeys(facts),
|
|
172
|
+
description: answer.description ?? bio,
|
|
173
|
+
chats: shared
|
|
174
|
+
};
|
|
175
|
+
}, "contactShown");
|
|
176
|
+
var chatEventAnswer = /* @__PURE__ */ __name((chatId, event) => defined({
|
|
177
|
+
chat_id: chatId,
|
|
178
|
+
time: event.timestamp,
|
|
179
|
+
type: event.event,
|
|
180
|
+
message_id: event.messageId,
|
|
181
|
+
by: event.by,
|
|
182
|
+
people: event.people,
|
|
183
|
+
title: event.title
|
|
184
|
+
}), "chatEventAnswer");
|
|
185
|
+
var HISTORY_TYPES = { joined: "join", left: "leave", changed: "profile" };
|
|
186
|
+
var memberEventAnswer = /* @__PURE__ */ __name((chatId, event) => defined({
|
|
187
|
+
chat_id: chatId,
|
|
188
|
+
time: event.at,
|
|
189
|
+
type: HISTORY_TYPES[event.event],
|
|
190
|
+
by: event.invitedBy === void 0 ? void 0 : { id: event.invitedBy, name: null },
|
|
191
|
+
people: [{ id: event.id, name: event.name, username: event.username }],
|
|
192
|
+
before: event.before ? { name: event.before.name, username: event.before.username } : void 0
|
|
193
|
+
}), "memberEventAnswer");
|
|
194
|
+
var inviteLinkAnswer = /* @__PURE__ */ __name((link) => defined({
|
|
195
|
+
link: link.link,
|
|
196
|
+
approval: link.approval,
|
|
197
|
+
expires_at: link.expiresAt,
|
|
198
|
+
max_uses: link.maxUses,
|
|
199
|
+
primary: link.primary,
|
|
200
|
+
revoked: link.revoked,
|
|
201
|
+
pending_count: link.pending,
|
|
202
|
+
joined_count: link.joined
|
|
203
|
+
}), "inviteLinkAnswer");
|
|
204
|
+
var joinRequestAnswer = /* @__PURE__ */ __name((request) => defined({
|
|
205
|
+
person_id: request.person.id,
|
|
206
|
+
name: request.person.name,
|
|
207
|
+
username: request.person.username,
|
|
208
|
+
requested_at: request.requestedAt,
|
|
209
|
+
about: request.about
|
|
210
|
+
}), "joinRequestAnswer");
|
|
211
|
+
var pollVoteAnswer = /* @__PURE__ */ __name((vote) => ({
|
|
212
|
+
person_id: vote.person.id,
|
|
213
|
+
name: vote.person.name,
|
|
214
|
+
username: vote.person.username,
|
|
215
|
+
answers: vote.answers,
|
|
216
|
+
voted_at: vote.votedAt
|
|
217
|
+
}), "pollVoteAnswer");
|
|
218
|
+
var reactorAnswer = /* @__PURE__ */ __name((reactor) => ({
|
|
219
|
+
person: { id: reactor.person.id, name: reactor.person.name, username: reactor.person.username },
|
|
220
|
+
reaction: reactor.reaction,
|
|
221
|
+
reacted_at: reactor.reactedAt
|
|
222
|
+
}), "reactorAnswer");
|
|
223
|
+
var topicAnswer = /* @__PURE__ */ __name((topic) => defined({
|
|
224
|
+
id: topic.id,
|
|
225
|
+
title: topic.title,
|
|
226
|
+
closed: topic.closed,
|
|
227
|
+
pinned: topic.pinned,
|
|
228
|
+
hidden: topic.hidden,
|
|
229
|
+
unread_count: topic.unreadCount,
|
|
230
|
+
last_message_at: topic.lastMessageAt,
|
|
231
|
+
created_at: topic.createdAt,
|
|
232
|
+
untrusted: ["title"]
|
|
233
|
+
}), "topicAnswer");
|
|
234
|
+
var folderAnswer = /* @__PURE__ */ __name((folder) => {
|
|
235
|
+
const shown = "chats" in folder ? folder : void 0;
|
|
236
|
+
const listed = shown ? void 0 : folder;
|
|
237
|
+
return defined({
|
|
238
|
+
id: folder.id,
|
|
239
|
+
title: folder.title,
|
|
240
|
+
chat_ids: listed ? listed.chatIds : shown?.chats.map((chat) => chat.id) ?? [],
|
|
241
|
+
emoji: folder.emoji,
|
|
242
|
+
include: folder.include,
|
|
243
|
+
skip: folder.skip,
|
|
244
|
+
excluded_chat_ids: listed?.excludedChatIds ?? shown?.excluded.map((chat) => chat.id),
|
|
245
|
+
pinned_chat_ids: listed?.pinnedChatIds ?? shown?.pinned.map((chat) => chat.id),
|
|
246
|
+
chats: shown?.chats,
|
|
247
|
+
pinned_chats: shown?.pinned,
|
|
248
|
+
excluded_chats: shown?.excluded
|
|
249
|
+
});
|
|
250
|
+
}, "folderAnswer");
|
|
251
|
+
var lines = /* @__PURE__ */ __name((line) => (body) => (body.items ?? (body.item === void 0 ? [] : [body.item])).map((item) => `${line(item).trimEnd()}
|
|
252
|
+
`).join(""), "lines");
|
|
253
|
+
var pageOf = /* @__PURE__ */ __name(({ limit, page, all }, { items, hasMore }) => all ? { limit: Math.max(1, items.length), has_more: false, page: 1 } : { limit, has_more: hasMore, page }, "pageOf");
|
|
254
|
+
var wholeList = /* @__PURE__ */ __name((command, items, extra = {}) => listOf(command, { items, limit: Math.max(1, items.length), has_more: false, ...extra }), "wholeList");
|
|
255
|
+
var chatShown = /* @__PURE__ */ __name((account, card) => {
|
|
256
|
+
const listed = card.members?.length;
|
|
257
|
+
const short = listed !== void 0 && card.participantsCount !== null && listed < card.participantsCount;
|
|
258
|
+
return itemOf(chatAnswer(account, card), short ? {
|
|
259
|
+
missing: [
|
|
260
|
+
{
|
|
261
|
+
field: "members",
|
|
262
|
+
why: `${listed} listed; the chat reports ${card.participantsCount} \u2014 the list may omit your account or be partial`,
|
|
263
|
+
step: "chats.members"
|
|
264
|
+
}
|
|
265
|
+
],
|
|
266
|
+
next: [nextStep("chats.members", { args: { chat: card.id } })]
|
|
267
|
+
} : {});
|
|
268
|
+
}, "chatShown");
|
|
269
|
+
var scoreFloor = /* @__PURE__ */ __name((ast) => {
|
|
270
|
+
const term = nativeTerms(ast, "chats members check").get("score");
|
|
271
|
+
if (!term)
|
|
272
|
+
return AUDIT_MIN_SCORE;
|
|
273
|
+
const upper = term.operator === "range" ? term.upper ?? "*" : term.value;
|
|
274
|
+
if (term.operator !== "range" || upper !== "*")
|
|
275
|
+
queryError("query.unsupported-operator", term.span, "score takes a lower bound: score>=3", {
|
|
276
|
+
command: "chats members check",
|
|
277
|
+
guide: LIST_QUERY_GUIDE
|
|
278
|
+
});
|
|
279
|
+
const floor = Number(term.value);
|
|
280
|
+
return Math.ceil(term.lower_inclusive === false ? floor + 1 : floor);
|
|
281
|
+
}, "scoreFloor");
|
|
282
|
+
var auditAnswer = /* @__PURE__ */ __name((audit) => wholeList("chats members check", audit.items.map(memberAnswer), {
|
|
283
|
+
...audit.more ? { meta: { truncated: true } } : {},
|
|
284
|
+
...audit.completeness && audit.completeness.state !== "complete" ? {
|
|
285
|
+
missing: [
|
|
286
|
+
{
|
|
287
|
+
field: "reasons",
|
|
288
|
+
why: "never_wrote counts only stored messages, and the store does not hold the chat whole",
|
|
289
|
+
...audit.fetch ? { step: "messages.sync" } : {}
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
...audit.fetch ? { next: [nextStep("messages.sync", { args: { chat: audit.chatId } })] } : {}
|
|
293
|
+
} : {}
|
|
294
|
+
}), "auditAnswer");
|
|
295
|
+
var renderItem = /* @__PURE__ */ __name((command, output, value, next = []) => renderAnswer(command, output, itemOf(snakeKeys(value), { next })), "renderItem");
|
|
296
|
+
var withPage = /* @__PURE__ */ __name((command) => command.option("--limit <n>", "how many to show", positiveCount("--limit")).option("--page <n>", "which page, starting at 1", positiveCount("--page")), "withPage");
|
|
297
|
+
var documentLinkAnswer = /* @__PURE__ */ __name(({ url, documentId, title, inStore, locator, sentAt, sender }) => ({
|
|
298
|
+
url,
|
|
299
|
+
document_id: documentId,
|
|
300
|
+
title,
|
|
301
|
+
in_store: inStore,
|
|
302
|
+
ref: locator,
|
|
303
|
+
sent_at: sentAt,
|
|
304
|
+
sender
|
|
305
|
+
}), "documentLinkAnswer");
|
|
306
|
+
var accountAnswer = /* @__PURE__ */ __name((provider, { id, name, username, phone }) => ({
|
|
307
|
+
provider,
|
|
308
|
+
id,
|
|
309
|
+
name,
|
|
310
|
+
username,
|
|
311
|
+
...phone === void 0 ? {} : { phone }
|
|
312
|
+
}), "accountAnswer");
|
|
313
|
+
var sessionAnswer = /* @__PURE__ */ __name(({ current, client, device, location, lastActiveAt, createdAt }) => ({
|
|
314
|
+
current,
|
|
315
|
+
client,
|
|
316
|
+
device,
|
|
317
|
+
location,
|
|
318
|
+
last_active_at: lastActiveAt,
|
|
319
|
+
...createdAt === void 0 ? {} : { created_at: createdAt }
|
|
320
|
+
}), "sessionAnswer");
|
|
321
|
+
|
|
322
|
+
export {
|
|
323
|
+
positiveCount,
|
|
324
|
+
configuredLimit,
|
|
325
|
+
withPaging,
|
|
326
|
+
window,
|
|
327
|
+
pagingOf,
|
|
328
|
+
chatRef,
|
|
329
|
+
chatAnswer,
|
|
330
|
+
memberAnswer,
|
|
331
|
+
contactRef,
|
|
332
|
+
contactAnswer,
|
|
333
|
+
contactShown,
|
|
334
|
+
chatEventAnswer,
|
|
335
|
+
memberEventAnswer,
|
|
336
|
+
inviteLinkAnswer,
|
|
337
|
+
joinRequestAnswer,
|
|
338
|
+
pollVoteAnswer,
|
|
339
|
+
reactorAnswer,
|
|
340
|
+
topicAnswer,
|
|
341
|
+
folderAnswer,
|
|
342
|
+
lines,
|
|
343
|
+
pageOf,
|
|
344
|
+
wholeList,
|
|
345
|
+
chatShown,
|
|
346
|
+
scoreFloor,
|
|
347
|
+
auditAnswer,
|
|
348
|
+
renderItem,
|
|
349
|
+
withPage,
|
|
350
|
+
documentLinkAnswer,
|
|
351
|
+
accountAnswer,
|
|
352
|
+
sessionAnswer
|
|
353
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
decodeNamedCharacterReference
|
|
5
|
+
} from "./chunk-SZ7XJZGH.js";
|
|
6
|
+
import {
|
|
7
|
+
__name
|
|
8
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
9
|
+
|
|
10
|
+
// node_modules/.pnpm/micromark-util-decode-numeric-character-reference@2.0.2/node_modules/micromark-util-decode-numeric-character-reference/index.js
|
|
11
|
+
function decodeNumericCharacterReference(value, base) {
|
|
12
|
+
const code = Number.parseInt(value, base);
|
|
13
|
+
if (
|
|
14
|
+
// C0 except for HT, LF, FF, CR, space.
|
|
15
|
+
code < 9 || code === 11 || code > 13 && code < 32 || // Control character (DEL) of C0, and C1 controls.
|
|
16
|
+
code > 126 && code < 160 || // Lone high surrogates and low surrogates.
|
|
17
|
+
code > 55295 && code < 57344 || // Noncharacters.
|
|
18
|
+
code > 64975 && code < 65008 || /* eslint-disable no-bitwise */
|
|
19
|
+
(code & 65535) === 65535 || (code & 65535) === 65534 || /* eslint-enable no-bitwise */
|
|
20
|
+
// Out of range
|
|
21
|
+
code > 1114111
|
|
22
|
+
) {
|
|
23
|
+
return "\uFFFD";
|
|
24
|
+
}
|
|
25
|
+
return String.fromCodePoint(code);
|
|
26
|
+
}
|
|
27
|
+
__name(decodeNumericCharacterReference, "decodeNumericCharacterReference");
|
|
28
|
+
|
|
29
|
+
// node_modules/.pnpm/micromark-util-decode-string@2.0.1/node_modules/micromark-util-decode-string/index.js
|
|
30
|
+
var characterEscapeOrReference = /\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;
|
|
31
|
+
function decodeString(value) {
|
|
32
|
+
return value.replace(characterEscapeOrReference, decode);
|
|
33
|
+
}
|
|
34
|
+
__name(decodeString, "decodeString");
|
|
35
|
+
function decode($0, $1, $2) {
|
|
36
|
+
if ($1) {
|
|
37
|
+
return $1;
|
|
38
|
+
}
|
|
39
|
+
const head = $2.charCodeAt(0);
|
|
40
|
+
if (head === 35) {
|
|
41
|
+
const head2 = $2.charCodeAt(1);
|
|
42
|
+
const hex = head2 === 120 || head2 === 88;
|
|
43
|
+
return decodeNumericCharacterReference($2.slice(hex ? 2 : 1), hex ? 16 : 10);
|
|
44
|
+
}
|
|
45
|
+
return decodeNamedCharacterReference($2) || $0;
|
|
46
|
+
}
|
|
47
|
+
__name(decode, "decode");
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
decodeNumericCharacterReference,
|
|
51
|
+
decodeString
|
|
52
|
+
};
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
describeProgram,
|
|
7
7
|
flatten,
|
|
8
8
|
profileFree
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YAIOEPKU.js";
|
|
10
10
|
import {
|
|
11
11
|
VERSION
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MUFF2YTH.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OLCU7Q2B.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
18
|
} from "./chunk-ZVVMGPBJ.js";
|