@wirecat/drive-cli 0.68.0 → 0.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/contracts/wirecat.json +14 -13
- package/dist/age.d.ts +0 -36
- package/dist/age.d.ts.map +1 -1
- package/dist/age.js +0 -22
- package/dist/age.js.map +1 -1
- package/dist/bin/drive.js +2 -2
- package/dist/bundle/{all-profiles-BU6XUFUP.js → all-profiles-FW3GK3QO.js} +24 -34
- package/dist/bundle/{anthropic-ZP5B7S2Z.js → anthropic-QVKJT3II.js} +8 -8
- package/dist/bundle/{app-server-EB4DH6T7.js → app-server-QU73RD5R.js} +68 -76
- package/dist/bundle/{bun-PWMM6L45.js → bun-5XCD5CBB.js} +2 -2
- package/dist/bundle/{bun-sqlite-6VPR2SVC.js → bun-sqlite-TIGSVNSV.js} +9 -9
- package/dist/bundle/{chunk-7BXVI7XF.js → chunk-2SBC4DVV.js} +4 -4
- package/dist/bundle/{chunk-UFPRP7MG.js → chunk-3AHBZP33.js} +10 -15
- package/dist/bundle/{chunk-QRSPFCRY.js → chunk-3CHW7JGR.js} +17 -17
- package/dist/bundle/chunk-3TCMANIM.js +387 -0
- package/dist/bundle/{chunk-EOC7RHJ2.js → chunk-3UWRAIWA.js} +5 -7
- package/dist/bundle/{chunk-5G2BY4B6.js → chunk-3UZ4OH22.js} +32 -31
- package/dist/bundle/{chunk-UIKVP23D.js → chunk-4WK26MPY.js} +1 -1
- package/dist/bundle/{chunk-WUFZGPXX.js → chunk-54BQWRJL.js} +7 -7
- package/dist/bundle/{chunk-EA2OB75T.js → chunk-54NDYVZA.js} +1 -1
- package/dist/bundle/{chunk-QKY24RWV.js → chunk-5JTB4URG.js} +12 -12
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-66PL7P4C.js} +1 -1
- package/dist/bundle/{chunk-JMZQBRRZ.js → chunk-6BMTW5A6.js} +9 -9
- package/dist/bundle/{chunk-CVAJMRRD.js → chunk-6DPOWBKA.js} +6 -6
- package/dist/bundle/{chunk-YUGTJBV3.js → chunk-7C5KENNU.js} +3 -3
- package/dist/bundle/chunk-7DJNURKV.js +823 -0
- package/dist/bundle/{chunk-5TK2YQCO.js → chunk-7IBENBCK.js} +2 -2
- package/dist/bundle/chunk-7QSRODXM.js +259 -0
- package/dist/bundle/{chunk-HCZYJMBP.js → chunk-ABZ2NYDT.js} +1 -1
- package/dist/bundle/chunk-AV5UKJZM.js +729 -0
- package/dist/bundle/{chunk-IVOG6T6P.js → chunk-BBFXQPKD.js} +3 -3
- package/dist/bundle/{chunk-BXHFJTU5.js → chunk-BBRMDMIR.js} +3 -3
- package/dist/bundle/{chunk-DYLYH7VE.js → chunk-BD2K2ONK.js} +4 -4
- package/dist/bundle/{chunk-AIEMFRBU.js → chunk-BFKFKDPC.js} +1 -1
- package/dist/bundle/{chunk-JZ3MT7IE.js → chunk-BXPC5TFG.js} +2 -2
- package/dist/bundle/chunk-DHX27E5M.js +31 -0
- package/dist/bundle/{chunk-6QR7NKMG.js → chunk-DR57KDAY.js} +109 -5
- package/dist/bundle/{chunk-2VYEGKQ3.js → chunk-DVI72ZQG.js} +1 -1
- package/dist/bundle/{chunk-WGX4DZPW.js → chunk-DVVUJ254.js} +2 -2
- package/dist/bundle/{chunk-PJ3FKBXG.js → chunk-EDO5LZVF.js} +1 -1
- package/dist/bundle/{chunk-QTRYJZL7.js → chunk-EG62WVR2.js} +6 -6
- package/dist/bundle/{chunk-WCNTDETD.js → chunk-F5KJWRF5.js} +98 -6
- package/dist/bundle/{chunk-D4MVEOU2.js → chunk-FADAOLGB.js} +4 -4
- package/dist/bundle/{chunk-FAMXUI2X.js → chunk-FCSHWUMW.js} +5 -5
- package/dist/bundle/{chunk-O7T3WGCV.js → chunk-FN3RXBO7.js} +6 -6
- package/dist/bundle/{chunk-5W65QTYS.js → chunk-FONIFRYI.js} +4 -4
- package/dist/bundle/{chunk-UUQJVKPB.js → chunk-FVTKFIQH.js} +2340 -1436
- package/dist/bundle/{chunk-7A77GYCE.js → chunk-FYPW7NMH.js} +4 -4
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-GA3URWIF.js} +1 -1
- package/dist/bundle/{chunk-GTLXBAJV.js → chunk-GAHIHE4K.js} +3035 -2482
- package/dist/bundle/{chunk-CMWFYZ45.js → chunk-GJZSVSV3.js} +2 -2
- package/dist/bundle/{chunk-QWGEOQHA.js → chunk-GK3BJMGK.js} +1 -1
- package/dist/bundle/{chunk-TI2OANJZ.js → chunk-GPDPEHYX.js} +1 -1
- package/dist/bundle/{chunk-KPKIHJIT.js → chunk-GV5DGHSA.js} +4 -4
- package/dist/bundle/{chunk-JRFKCYMW.js → chunk-HHAZ6DCY.js} +23 -6
- package/dist/bundle/{chunk-ZVQDOKDY.js → chunk-HK225DAG.js} +1 -1
- package/dist/bundle/{chunk-MW46BLWH.js → chunk-HRATXUFH.js} +22 -20
- package/dist/bundle/{chunk-Z5BMYI2V.js → chunk-HWUPU6WX.js} +8 -8
- package/dist/bundle/{chunk-6WAC2LOS.js → chunk-HYXXMSVD.js} +8614 -8597
- package/dist/bundle/{chunk-YYIWPH53.js → chunk-I7YSHUPW.js} +13 -13
- package/dist/bundle/{chunk-MWCPKUU4.js → chunk-IFTX7AQU.js} +5 -5
- package/dist/bundle/{chunk-SOS4U2RF.js → chunk-IGNIUDI3.js} +71 -49
- package/dist/bundle/{chunk-7JKECODO.js → chunk-ILAQIBEO.js} +1 -11
- package/dist/bundle/{chunk-CK2SQ2CE.js → chunk-KSJAFMU5.js} +78 -31
- package/dist/bundle/{chunk-ZSVMZH5O.js → chunk-LINBDWJK.js} +2 -2
- package/dist/bundle/{chunk-43NEDPXB.js → chunk-LMJBQFW6.js} +6 -6
- package/dist/bundle/{chunk-IJCUAKR5.js → chunk-ML3R2UHV.js} +4 -4
- package/dist/bundle/{chunk-PGPHEC2X.js → chunk-MXNQZAJQ.js} +2 -2
- package/dist/bundle/{chunk-RT5NT62B.js → chunk-NP7LJATI.js} +16 -70
- package/dist/bundle/chunk-OY7TNUEC.js +16 -0
- package/dist/bundle/{chunk-74NCZKRW.js → chunk-P77FL6RY.js} +18 -18
- package/dist/bundle/chunk-P7PLKNPX.js +3611 -0
- package/dist/bundle/{chunk-QVJMFZFW.js → chunk-PAPY6Q6H.js} +1 -1
- package/dist/bundle/{chunk-Q6BD6RUH.js → chunk-PN4JYURZ.js} +102 -57
- package/dist/bundle/{chunk-MOKEB656.js → chunk-PR7XD2DI.js} +2 -2
- package/dist/bundle/{chunk-UPCEHSIZ.js → chunk-Q5C6YKAY.js} +21 -16
- package/dist/bundle/{chunk-EXWZCI5G.js → chunk-QBAOIMVB.js} +1 -1
- package/dist/bundle/{chunk-ULNN3LCY.js → chunk-RCTOWLCD.js} +44 -37
- package/dist/bundle/{chunk-7TNQZKRD.js → chunk-REM5WHHQ.js} +77 -76
- package/dist/bundle/{chunk-Y2QVNVHK.js → chunk-RHSBXOQM.js} +1 -1
- package/dist/bundle/{chunk-UYBLNGZ2.js → chunk-RLNZ7NX5.js} +2 -2
- package/dist/bundle/chunk-RQNRYF6D.js +170 -0
- package/dist/bundle/{chunk-PV3AWPHR.js → chunk-SONPLYV7.js} +5 -5
- package/dist/bundle/{chunk-CRIEW4FP.js → chunk-T5D4OGDC.js} +2 -2
- package/dist/bundle/{chunk-MLSXHTUB.js → chunk-TGS5VPJD.js} +1228 -455
- package/dist/bundle/chunk-TNKQDS5A.js +335 -0
- package/dist/bundle/{chunk-DU23ET2O.js → chunk-VVN6GHAZ.js} +60 -81
- package/dist/bundle/{chunk-PWIEOATY.js → chunk-WJK6KTCS.js} +325 -14
- package/dist/bundle/{chunk-U52QE4QV.js → chunk-WWE5GO6G.js} +3 -3
- package/dist/bundle/{chunk-6HFZZ2PW.js → chunk-XOL346TJ.js} +2 -2
- package/dist/bundle/{chunk-ZAIE3G5I.js → chunk-XZBA6FVH.js} +3 -3
- package/dist/bundle/chunk-YCL3SK4T.js +1978 -0
- package/dist/bundle/{chunk-DIZBJLPM.js → chunk-YRUR3E3E.js} +68 -78
- package/dist/bundle/{chunk-EEE4H2PA.js → chunk-YZPE72GE.js} +12 -12
- package/dist/bundle/{chunk-F7KAMSXA.js → chunk-ZCXWV4XO.js} +4 -4
- package/dist/bundle/{chunk-NV75QPML.js → chunk-ZHZYGY5R.js} +4 -4
- package/dist/bundle/{cli-L7P36YUH.js → cli-K4D4DIGQ.js} +137 -88
- package/dist/bundle/command-contract-V3F452QI.js +43 -0
- package/dist/bundle/{command-server-entry-H3VGPOLJ.js → command-server-entry-WREK3QBB.js} +33 -31
- package/dist/bundle/decode-SEETPKBH.js +299 -0
- package/dist/bundle/{dispatch-WBEOHZDV.js → dispatch-SQCEURVK.js} +9 -9
- package/dist/bundle/drive.js +11 -11
- package/dist/bundle/{echarts-SDZA2SWG.js → echarts-WZ5RKFCX.js} +2 -2
- package/dist/bundle/{embed-WUKOASQG.js → embed-B2UCRZZR.js} +9 -9
- package/dist/bundle/{embedder-UBRAXRDZ.js → embedder-4R6Z7G7L.js} +12 -12
- package/dist/bundle/entry-ORZYRJ5N.js +25 -0
- package/dist/bundle/{failure-X6PSLVSO.js → failure-CYNXH3RQ.js} +4 -4
- package/dist/bundle/first-run-KAKA6KBY.js +31 -0
- package/dist/bundle/first-screen-R645UHRH.js +41 -0
- package/dist/bundle/google-BSO3YB7N.js +45 -0
- package/dist/bundle/{google-api-SQQ4BSNR.js → google-api-SAND2F7L.js} +70 -63
- package/dist/bundle/grants-PLNFYARD.js +118 -0
- package/dist/bundle/{identity-SRL6RSU2.js → identity-JVVGS4U6.js} +6 -6
- package/dist/bundle/{instructions-7T6JJIFS.js → instructions-JSMTSB22.js} +1 -1
- package/dist/bundle/{login-N243GGEE.js → login-6WG3YBDU.js} +78 -71
- package/dist/bundle/{mcp-TDKGDB4V.js → mcp-VFIOZDVY.js} +2 -2
- package/dist/bundle/meeting-combined-SUKMFK3F.js +27 -0
- package/dist/bundle/meeting-model-S4YGKIFI.js +29 -0
- package/dist/bundle/meeting-semantic-5U7JQCFF.js +25 -0
- package/dist/bundle/{node-BZDMUFTW.js → node-VJMVHOWD.js} +2 -2
- package/dist/bundle/{node-sqlite-SZQCCMV2.js → node-sqlite-DCNT3HVE.js} +10 -10
- package/dist/bundle/oauth-KCMNQ3ZP.js +22 -0
- package/dist/bundle/{open-RVTPKDA3.js → open-NFOEHVW7.js} +8 -8
- package/dist/bundle/{openai-6NN63BMH.js → openai-D47WY7EC.js} +32 -30
- package/dist/bundle/{process-756VBE7E.js → process-Q2FRU5VA.js} +1 -1
- package/dist/bundle/{program-B4QBJYB5.js → program-T2AJJQEM.js} +1327 -1329
- package/dist/bundle/{prompt-HGP2DSRW.js → prompt-YJSDABXN.js} +8 -8
- package/dist/bundle/{reasons-KSYP5VDJ.js → reasons-WEHPCSJX.js} +5 -5
- package/dist/bundle/{recognize-26SHB7HI.js → recognize-6OBEIEB3.js} +7 -7
- package/dist/bundle/{remote-Z4PWHZ5N.js → remote-3SL2QJ7T.js} +13 -13
- package/dist/bundle/{rerank-QHJZJK3Q.js → rerank-L6F5SLIB.js} +10 -10
- package/dist/bundle/{serve-MYJW5IEM.js → serve-GYSWIWH4.js} +12 -12
- package/dist/bundle/server-BI46BSRE.js +80 -0
- package/dist/bundle/{server-XFW3V7CR.js → server-GWWP3RIT.js} +62 -53
- package/dist/bundle/{services-IQG2RVTO.js → services-BDQBRXT5.js} +91 -51
- package/dist/bundle/{sqlite-runtime-X4GB5PBV.js → sqlite-runtime-ZSZGAUYB.js} +9 -9
- package/dist/bundle/{start-C6EXYXAL.js → start-BJ275RUK.js} +7 -7
- package/dist/bundle/{state-ATQK2X3W.js → state-HLNGFI2T.js} +9 -9
- package/dist/bundle/{store-QUBUPK6F.js → store-I43KZNJW.js} +35 -26
- package/dist/bundle/{store-MEHEUOJH.js → store-OSRTGYGI.js} +23 -19
- package/dist/bundle/store-maintenance-command-FO7LEVSL.js +72 -0
- package/dist/bundle/tokens-DB7O7QNB.js +118 -0
- package/dist/catalog.d.ts +0 -28
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +0 -82
- package/dist/catalog.js.map +1 -1
- package/dist/commands/catalog.d.ts +3 -8
- package/dist/commands/catalog.d.ts.map +1 -1
- package/dist/commands/catalog.js +36 -109
- package/dist/commands/catalog.js.map +1 -1
- package/dist/commands/context.d.ts +3 -0
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +20 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/documents.d.ts.map +1 -1
- package/dist/commands/documents.js +30 -72
- package/dist/commands/documents.js.map +1 -1
- package/dist/commands/folders.d.ts +1 -1
- package/dist/commands/folders.d.ts.map +1 -1
- package/dist/commands/folders.js +45 -48
- package/dist/commands/folders.js.map +1 -1
- package/dist/commands/knowledge.d.ts +4 -21
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +3 -241
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/commands/mirrors.d.ts +2 -2
- package/dist/commands/mirrors.d.ts.map +1 -1
- package/dist/commands/mirrors.js +46 -202
- package/dist/commands/mirrors.js.map +1 -1
- package/dist/commands/search.d.ts +1 -3
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +20 -42
- package/dist/commands/search.js.map +1 -1
- package/dist/commands/sync.d.ts.map +1 -1
- package/dist/commands/sync.js +36 -53
- package/dist/commands/sync.js.map +1 -1
- package/dist/contract-overrides.d.ts +0 -2
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +0 -317
- package/dist/contract-overrides.js.map +1 -1
- package/dist/knowledge.d.ts +1 -1
- package/dist/knowledge.d.ts.map +1 -1
- package/dist/knowledge.js +4 -3
- package/dist/knowledge.js.map +1 -1
- package/dist/list-queries.d.ts +0 -31
- package/dist/list-queries.d.ts.map +1 -1
- package/dist/list-queries.js +0 -36
- package/dist/list-queries.js.map +1 -1
- package/dist/policy.d.ts +1 -1
- package/dist/policy.d.ts.map +1 -1
- package/dist/policy.js +3 -3
- package/dist/policy.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +2 -3
- package/dist/program.js.map +1 -1
- package/dist/provider-json.d.ts.map +1 -1
- package/dist/provider-json.js +5 -5
- package/dist/provider-json.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -10
- package/dist/reasons.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/chunk-2UHQVRH2.js +0 -1235
- package/dist/bundle/chunk-AXYG2DDY.js +0 -4721
- package/dist/bundle/chunk-J5LXL435.js +0 -1316
- package/dist/bundle/chunk-R5FTCNLJ.js +0 -76
- package/dist/bundle/command-contract-EYFGMKIG.js +0 -41
- package/dist/bundle/decode-JEU6JWCV.js +0 -165
- package/dist/bundle/entry-C4NUQFTF.js +0 -25
- package/dist/bundle/first-run-PKHBS7B4.js +0 -30
- package/dist/bundle/first-screen-QOVOM4BF.js +0 -39
- package/dist/bundle/google-XXHSMTVK.js +0 -45
- package/dist/bundle/grants-2U4JVT6O.js +0 -111
- package/dist/bundle/oauth-CMAFXX6A.js +0 -22
- package/dist/bundle/server-HBZPIHDX.js +0 -74
- package/dist/bundle/store-maintenance-command-33ULVDWY.js +0 -65
- package/dist/bundle/tokens-A2GP4F34.js +0 -111
- package/dist/knowledge-query.d.ts +0 -77
- package/dist/knowledge-query.d.ts.map +0 -1
- package/dist/knowledge-query.js +0 -104
- package/dist/knowledge-query.js.map +0 -1
- package/dist/bundle/{chunk-XWBPP2HX.js → chunk-ZI3YTXSF.js} +0 -0
- package/dist/bundle/{mdast-util-from-markdown-CE73EWJ2.js → mdast-util-from-markdown-FXEPSNER.js} +3 -3
package/contracts/wirecat.json
CHANGED
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
"local": "read"
|
|
236
236
|
},
|
|
237
237
|
"permission": "folders.list",
|
|
238
|
-
"entity": "
|
|
238
|
+
"entity": "selected_folder"
|
|
239
239
|
},
|
|
240
240
|
{
|
|
241
241
|
"path": [
|
|
@@ -345,7 +345,7 @@
|
|
|
345
345
|
"local": "read"
|
|
346
346
|
},
|
|
347
347
|
"permission": "documents.list",
|
|
348
|
-
"entity": "
|
|
348
|
+
"entity": "document"
|
|
349
349
|
},
|
|
350
350
|
{
|
|
351
351
|
"path": [
|
|
@@ -541,7 +541,7 @@
|
|
|
541
541
|
"local": "read"
|
|
542
542
|
},
|
|
543
543
|
"permission": "catalog.tags.list",
|
|
544
|
-
"entity": "
|
|
544
|
+
"entity": "document_tag"
|
|
545
545
|
},
|
|
546
546
|
{
|
|
547
547
|
"path": [
|
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
"local": "read"
|
|
581
581
|
},
|
|
582
582
|
"permission": "tags.list",
|
|
583
|
-
"entity": "
|
|
583
|
+
"entity": "document_tag"
|
|
584
584
|
},
|
|
585
585
|
{
|
|
586
586
|
"path": [
|
|
@@ -617,7 +617,7 @@
|
|
|
617
617
|
"local": "read"
|
|
618
618
|
},
|
|
619
619
|
"permission": "relationships.list",
|
|
620
|
-
"entity": "
|
|
620
|
+
"entity": "document_relationship"
|
|
621
621
|
},
|
|
622
622
|
{
|
|
623
623
|
"path": [
|
|
@@ -865,7 +865,7 @@
|
|
|
865
865
|
"local": "read"
|
|
866
866
|
},
|
|
867
867
|
"permission": "identities.list",
|
|
868
|
-
"entity": "
|
|
868
|
+
"entity": "document_identity"
|
|
869
869
|
},
|
|
870
870
|
{
|
|
871
871
|
"path": [
|
|
@@ -2319,7 +2319,7 @@
|
|
|
2319
2319
|
"local": "read"
|
|
2320
2320
|
},
|
|
2321
2321
|
"permission": "mirrors.list",
|
|
2322
|
-
"entity": "
|
|
2322
|
+
"entity": "mirror"
|
|
2323
2323
|
},
|
|
2324
2324
|
{
|
|
2325
2325
|
"path": [
|
|
@@ -2574,7 +2574,7 @@
|
|
|
2574
2574
|
"storage"
|
|
2575
2575
|
]
|
|
2576
2576
|
},
|
|
2577
|
-
"
|
|
2577
|
+
"selected_folder": {
|
|
2578
2578
|
"fields": [
|
|
2579
2579
|
"id"
|
|
2580
2580
|
]
|
|
@@ -2595,12 +2595,12 @@
|
|
|
2595
2595
|
"mime"
|
|
2596
2596
|
]
|
|
2597
2597
|
},
|
|
2598
|
-
"
|
|
2598
|
+
"document_tag": {
|
|
2599
2599
|
"fields": [
|
|
2600
2600
|
"tag"
|
|
2601
2601
|
]
|
|
2602
2602
|
},
|
|
2603
|
-
"
|
|
2603
|
+
"document_relationship": {
|
|
2604
2604
|
"fields": [
|
|
2605
2605
|
"id",
|
|
2606
2606
|
"from",
|
|
@@ -2648,9 +2648,10 @@
|
|
|
2648
2648
|
"status"
|
|
2649
2649
|
]
|
|
2650
2650
|
},
|
|
2651
|
-
"
|
|
2651
|
+
"document_identity": {
|
|
2652
2652
|
"fields": [
|
|
2653
|
-
"
|
|
2653
|
+
"remote_id",
|
|
2654
|
+
"provider",
|
|
2654
2655
|
"role"
|
|
2655
2656
|
]
|
|
2656
2657
|
},
|
|
@@ -2684,7 +2685,7 @@
|
|
|
2684
2685
|
"id"
|
|
2685
2686
|
]
|
|
2686
2687
|
},
|
|
2687
|
-
"
|
|
2688
|
+
"mirror": {
|
|
2688
2689
|
"fields": [
|
|
2689
2690
|
"id",
|
|
2690
2691
|
"path",
|
package/dist/age.d.ts
CHANGED
|
@@ -1,39 +1,3 @@
|
|
|
1
|
-
import type { SyncState } from "./model.js";
|
|
2
|
-
export interface CopyAge {
|
|
3
|
-
synced_at: string | null;
|
|
4
|
-
age_days: number | null;
|
|
5
|
-
}
|
|
6
|
-
export declare const ageOf: (state: Pick<SyncState, "lastSync">, now?: number) => CopyAge;
|
|
7
|
-
export declare const staleCopy: (state: Pick<SyncState, "lastSync">, now?: number) => {
|
|
8
|
-
missing?: undefined;
|
|
9
|
-
next?: undefined;
|
|
10
|
-
meta?: undefined;
|
|
11
|
-
} | {
|
|
12
|
-
missing: {
|
|
13
|
-
field: string;
|
|
14
|
-
why: string;
|
|
15
|
-
step: string;
|
|
16
|
-
}[];
|
|
17
|
-
next: ({
|
|
18
|
-
kind: "command";
|
|
19
|
-
step: string;
|
|
20
|
-
command: string;
|
|
21
|
-
args: {
|
|
22
|
-
[x: string]: unknown;
|
|
23
|
-
};
|
|
24
|
-
line?: string | undefined;
|
|
25
|
-
why: string;
|
|
26
|
-
safe_to_auto_execute: boolean;
|
|
27
|
-
} | {
|
|
28
|
-
kind: "user_action";
|
|
29
|
-
step: string;
|
|
30
|
-
why: string;
|
|
31
|
-
safe_to_auto_execute: false;
|
|
32
|
-
})[];
|
|
33
|
-
meta: {
|
|
34
|
-
complete: false;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
1
|
export interface Freshness {
|
|
38
2
|
changed: boolean;
|
|
39
3
|
remote_modified_at: string;
|
package/dist/age.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"age.d.ts","sourceRoot":"","sources":["../src/age.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"age.d.ts","sourceRoot":"","sources":["../src/age.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,OAAO,CAAA;IAChB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;CACjC;AAED,eAAO,MAAM,SAAS,WAAY,MAAM,SAAS,MAAM,GAAG,SAAS,KAAG,SAIpE,CAAA;AAEF,eAAO,MAAM,WAAW,mCAAoC,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWpE,CAAA"}
|
package/dist/age.js
CHANGED
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
import { defineSteps, stepOf } from "@wirecat/cli-base/standards";
|
|
2
|
-
const DAY = 24 * 60 * 60 * 1000;
|
|
3
2
|
const SYNC = defineSteps([
|
|
4
3
|
{ id: "sync.run", command: "sync", args: [], why: "copy the changes Google has made into the local store" },
|
|
5
4
|
])[0];
|
|
6
|
-
export const ageOf = (state, now = Date.now()) => {
|
|
7
|
-
const at = state.lastSync ? Date.parse(state.lastSync) : Number.NaN;
|
|
8
|
-
return Number.isNaN(at)
|
|
9
|
-
? { synced_at: null, age_days: null }
|
|
10
|
-
: { synced_at: state.lastSync ?? null, age_days: Math.max(0, Math.floor((now - at) / DAY)) };
|
|
11
|
-
};
|
|
12
|
-
// Drive reads only the local copy: when it is older than a day, say so instead of letting it pass for current.
|
|
13
|
-
export const staleCopy = (state, now = Date.now()) => {
|
|
14
|
-
const { synced_at, age_days } = ageOf(state, now);
|
|
15
|
-
const old = synced_at === null || now - Date.parse(synced_at) > DAY;
|
|
16
|
-
if (!old)
|
|
17
|
-
return {};
|
|
18
|
-
const why = age_days === null
|
|
19
|
-
? "the local copy has no sync time; Google may have changed the document since it was copied"
|
|
20
|
-
: `the local copy was synced ${age_days} day${age_days === 1 ? "" : "s"} ago; Google may have changed the document since`;
|
|
21
|
-
return {
|
|
22
|
-
missing: [{ field: "synced_at", why, step: SYNC.id }],
|
|
23
|
-
next: [stepOf(SYNC)],
|
|
24
|
-
meta: { complete: false },
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
5
|
export const freshness = (remote, local) => ({
|
|
28
6
|
changed: local === undefined || Date.parse(remote) !== Date.parse(local),
|
|
29
7
|
remote_modified_at: remote,
|
package/dist/age.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"age.js","sourceRoot":"","sources":["../src/age.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAuB,MAAM,EAAE,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"age.js","sourceRoot":"","sources":["../src/age.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAuB,MAAM,EAAE,MAAM,6BAA6B,CAAA;AAEtF,MAAM,IAAI,GAAG,WAAW,CAAC;IACvB,EAAE,EAAE,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,uDAAuD,EAAE;CAC5G,CAAC,CAAC,CAAC,CAAmB,CAAA;AAQvB,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,MAAc,EAAE,KAAyB,EAAa,EAAE,CAAC,CAAC;IAClF,OAAO,EAAE,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC;IACxE,kBAAkB,EAAE,MAAM;IAC1B,iBAAiB,EAAE,KAAK,IAAI,IAAI;CACjC,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAAE,OAAO,EAAE,iBAAiB,EAAa,EAAE,EAAE;IACvE,IAAI,CAAC,OAAO;QAAE,OAAO,EAAE,CAAA;IACvB,MAAM,GAAG,GACP,iBAAiB,KAAK,IAAI;QACxB,CAAC,CAAC,2EAA2E;QAC7E,CAAC,CAAC,8DAA8D,iBAAiB,GAAG,CAAA;IACxF,OAAO;QACL,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,EAAE,CAAqB;QAC3E,IAAI,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAsB;QACzC,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,EAA0B;KAClD,CAAA;AACH,CAAC,CAAA"}
|
package/dist/bin/drive.js
CHANGED
|
@@ -9,7 +9,7 @@ if (
|
|
|
9
9
|
(words[0] === "--version" || words[0] === "-V") &&
|
|
10
10
|
!Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
|
|
11
11
|
) {
|
|
12
|
-
process.stdout.write("0.
|
|
12
|
+
process.stdout.write("0.70.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -28,7 +28,7 @@ if (
|
|
|
28
28
|
: next(specifier, context),
|
|
29
29
|
})
|
|
30
30
|
}
|
|
31
|
-
const chunks = ["../bundle/all-profiles-
|
|
31
|
+
const chunks = ["../bundle/all-profiles-FW3GK3QO.js","../bundle/anthropic-QVKJT3II.js","../bundle/app-server-QU73RD5R.js","../bundle/bun-5XCD5CBB.js","../bundle/bun-sqlite-TIGSVNSV.js","../bundle/cli-K4D4DIGQ.js","../bundle/command-contract-V3F452QI.js","../bundle/command-server-entry-WREK3QBB.js","../bundle/decode-SEETPKBH.js","../bundle/dispatch-SQCEURVK.js","../bundle/dist-MWTMOYWT.js","../bundle/echarts-WZ5RKFCX.js","../bundle/embed-B2UCRZZR.js","../bundle/embedder-4R6Z7G7L.js","../bundle/entry-ORZYRJ5N.js","../bundle/failure-CYNXH3RQ.js","../bundle/first-run-KAKA6KBY.js","../bundle/first-screen-R645UHRH.js","../bundle/google-BSO3YB7N.js","../bundle/google-api-SAND2F7L.js","../bundle/grants-PLNFYARD.js","../bundle/identity-JVVGS4U6.js","../bundle/instructions-JSMTSB22.js","../bundle/login-6WG3YBDU.js","../bundle/mcp-VFIOZDVY.js","../bundle/mdast-util-from-markdown-FXEPSNER.js","../bundle/mdast-util-gfm-SZM5GBDF.js","../bundle/meeting-combined-SUKMFK3F.js","../bundle/meeting-model-S4YGKIFI.js","../bundle/meeting-semantic-5U7JQCFF.js","../bundle/micromark-extension-gfm-GRL24TU6.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-VJMVHOWD.js","../bundle/node-sqlite-DCNT3HVE.js","../bundle/oauth-KCMNQ3ZP.js","../bundle/open-NFOEHVW7.js","../bundle/openai-D47WY7EC.js","../bundle/process-Q2FRU5VA.js","../bundle/program-T2AJJQEM.js","../bundle/prompt-YJSDABXN.js","../bundle/reasons-WEHPCSJX.js","../bundle/recognize-6OBEIEB3.js","../bundle/remote-3SL2QJ7T.js","../bundle/rerank-L6F5SLIB.js","../bundle/serve-GYSWIWH4.js","../bundle/server-BI46BSRE.js","../bundle/server-GWWP3RIT.js","../bundle/services-BDQBRXT5.js","../bundle/sqlite-runtime-ZSZGAUYB.js","../bundle/start-BJ275RUK.js","../bundle/state-HLNGFI2T.js","../bundle/store-I43KZNJW.js","../bundle/store-OSRTGYGI.js","../bundle/store-maintenance-command-FO7LEVSL.js","../bundle/terminal-DHJ4D3BC.js","../bundle/tokens-DB7O7QNB.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|
|
@@ -1,34 +1,37 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
answeredWire
|
|
5
|
-
} from "./chunk-R5FTCNLJ.js";
|
|
6
3
|
import {
|
|
7
4
|
CALLER_META_KEY,
|
|
8
5
|
PROXY_CLIENT_NAME,
|
|
9
6
|
StdioServerTransport,
|
|
7
|
+
answeredWire,
|
|
10
8
|
callerOf,
|
|
11
9
|
serveStdio
|
|
12
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-F5KJWRF5.js";
|
|
13
11
|
import {
|
|
14
12
|
McpServer
|
|
15
13
|
} from "./chunk-5D4AEUVA.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import
|
|
14
|
+
import "./chunk-54BQWRJL.js";
|
|
15
|
+
import "./chunk-GK3BJMGK.js";
|
|
16
|
+
import "./chunk-RLNZ7NX5.js";
|
|
17
|
+
import "./chunk-ZI3YTXSF.js";
|
|
18
|
+
import "./chunk-HRATXUFH.js";
|
|
19
|
+
import {
|
|
20
|
+
errorObjectOf,
|
|
21
|
+
mcpErrorResult
|
|
22
|
+
} from "./chunk-SONPLYV7.js";
|
|
22
23
|
import "./chunk-Y5E2WNWB.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import
|
|
24
|
+
import "./chunk-ABZ2NYDT.js";
|
|
25
|
+
import "./chunk-7IBENBCK.js";
|
|
26
|
+
import "./chunk-HHAZ6DCY.js";
|
|
27
|
+
import {
|
|
28
|
+
CliError
|
|
29
|
+
} from "./chunk-54NDYVZA.js";
|
|
27
30
|
import {
|
|
28
31
|
__name
|
|
29
32
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
33
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
34
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
32
35
|
import { spawn } from "node:child_process";
|
|
33
36
|
import { randomUUID } from "node:crypto";
|
|
34
37
|
var PROTOCOL = "2025-06-18";
|
|
@@ -184,10 +187,7 @@ var withProfile = /* @__PURE__ */ __name((tool, profiles, name, signedIn = () =>
|
|
|
184
187
|
}
|
|
185
188
|
};
|
|
186
189
|
}, "withProfile");
|
|
187
|
-
var refusal = /* @__PURE__ */ __name((text) => ({
|
|
188
|
-
isError: true,
|
|
189
|
-
content: [{ type: "text", text }]
|
|
190
|
-
}), "refusal");
|
|
190
|
+
var refusal = /* @__PURE__ */ __name((code, text, details) => mcpErrorResult(errorObjectOf(new CliError(code, text, details), { effects: { remote: "none", local: "none" } })), "refusal");
|
|
191
191
|
var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
192
192
|
const children = pool(options);
|
|
193
193
|
let listed;
|
|
@@ -214,9 +214,9 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
|
214
214
|
const { name, arguments: given = {}, _meta } = request.params;
|
|
215
215
|
const { profile, ...rest } = given;
|
|
216
216
|
if (typeof profile !== "string" || !profiles.includes(profile))
|
|
217
|
-
return refusal(`${name} needs "profile", one of: ${profiles.join(", ")}. If the owner did not say which account, ask.`);
|
|
217
|
+
return refusal("validation_error", `${name} needs "profile", one of: ${profiles.join(", ")}. If the owner did not say which account, ask.`);
|
|
218
218
|
if (!signedIn(profile))
|
|
219
|
-
return refusal(options.signIn?.(profile) ?? `profile ${profile} is not signed in.`);
|
|
219
|
+
return refusal("authentication_error", options.signIn?.(profile) ?? `profile ${profile} is not signed in.`);
|
|
220
220
|
try {
|
|
221
221
|
return await children.use(profile, (child) => (
|
|
222
222
|
// Children are shared by every session, so each call names its own caller.
|
|
@@ -227,7 +227,7 @@ var allProfilesServer = /* @__PURE__ */ __name((options) => {
|
|
|
227
227
|
})
|
|
228
228
|
));
|
|
229
229
|
} catch (error) {
|
|
230
|
-
return refusal(`profile ${profile}: ${error instanceof Error ? error.message : String(error)}`);
|
|
230
|
+
return refusal("outcome_unknown", `profile ${profile}: ${error instanceof Error ? error.message : String(error)}`);
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
return server;
|
|
@@ -242,18 +242,8 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
242
242
|
transport: new StdioServerTransport(wire.input, wire.output),
|
|
243
243
|
onerror: /* @__PURE__ */ __name((error) => options.note?.(`mcp: ${error.message}`), "onerror")
|
|
244
244
|
});
|
|
245
|
-
|
|
246
|
-
wire.ended.then(() => resolve("input"));
|
|
247
|
-
if (own)
|
|
248
|
-
io.signal?.addEventListener("abort", () => resolve("stopped"), { once: true });
|
|
249
|
-
else {
|
|
250
|
-
process.once("SIGINT", () => resolve("stopped"));
|
|
251
|
-
process.once("SIGTERM", () => resolve("stopped"));
|
|
252
|
-
}
|
|
253
|
-
});
|
|
245
|
+
await wire.finished(own ? io.signal : void 0);
|
|
254
246
|
try {
|
|
255
|
-
if (ended === "input")
|
|
256
|
-
await wire.answered();
|
|
257
247
|
wire.release();
|
|
258
248
|
await handle.close();
|
|
259
249
|
} finally {
|
|
@@ -262,7 +252,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
262
252
|
}, "serveAllProfilesOverStdio");
|
|
263
253
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
264
254
|
const { build, close } = allProfilesServer(options);
|
|
265
|
-
const { serveOverHttp } = await import("./serve-
|
|
255
|
+
const { serveOverHttp } = await import("./serve-GYSWIWH4.js");
|
|
266
256
|
const listening = await serveOverHttp(build, {
|
|
267
257
|
...http,
|
|
268
258
|
appName: options.command,
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
checkedOptions,
|
|
6
6
|
messagesFor,
|
|
7
7
|
systemFor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZCXWV4XO.js";
|
|
9
9
|
import {
|
|
10
10
|
Anthropic
|
|
11
11
|
} from "./chunk-ADLS6FVG.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-HRATXUFH.js";
|
|
13
|
+
import "./chunk-SONPLYV7.js";
|
|
14
14
|
import "./chunk-Y5E2WNWB.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-ABZ2NYDT.js";
|
|
16
|
+
import "./chunk-7IBENBCK.js";
|
|
17
17
|
import {
|
|
18
18
|
array,
|
|
19
19
|
literal,
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
strictObject,
|
|
24
24
|
string,
|
|
25
25
|
unknown
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-HHAZ6DCY.js";
|
|
27
|
+
import "./chunk-54NDYVZA.js";
|
|
28
28
|
import {
|
|
29
29
|
__name
|
|
30
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
31
31
|
|
|
32
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
33
33
|
var options = strictObject({
|
|
34
34
|
stop_sequences: optional(array(string())),
|
|
35
35
|
thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
|
|
@@ -3,53 +3,54 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YRUR3E3E.js";
|
|
7
|
+
import {
|
|
8
|
+
mcpUrlOf
|
|
9
|
+
} from "./chunk-RCTOWLCD.js";
|
|
7
10
|
import {
|
|
8
11
|
answered,
|
|
9
12
|
failed,
|
|
10
13
|
registerCommands,
|
|
11
14
|
runCommandForAgent,
|
|
12
15
|
toolsFromCommands
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import {
|
|
15
|
-
mcpUrlOf
|
|
16
|
-
} from "./chunk-ULNN3LCY.js";
|
|
16
|
+
} from "./chunk-IGNIUDI3.js";
|
|
17
17
|
import {
|
|
18
18
|
agentJson,
|
|
19
19
|
skillResource
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import {
|
|
22
|
-
appInstructions
|
|
23
|
-
} from "./chunk-AIEMFRBU.js";
|
|
24
|
-
import {
|
|
25
|
-
answeredWire
|
|
26
|
-
} from "./chunk-R5FTCNLJ.js";
|
|
20
|
+
} from "./chunk-KSJAFMU5.js";
|
|
27
21
|
import {
|
|
28
22
|
StdioServerTransport,
|
|
23
|
+
answeredWire,
|
|
29
24
|
serveStdio
|
|
30
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-F5KJWRF5.js";
|
|
26
|
+
import {
|
|
27
|
+
appInstructions
|
|
28
|
+
} from "./chunk-BFKFKDPC.js";
|
|
31
29
|
import {
|
|
32
30
|
McpServer
|
|
33
31
|
} from "./chunk-5D4AEUVA.js";
|
|
34
|
-
import "./chunk-5G2BY4B6.js";
|
|
35
|
-
import "./chunk-2UHQVRH2.js";
|
|
36
|
-
import "./chunk-GTLXBAJV.js";
|
|
37
|
-
import "./chunk-Q6BD6RUH.js";
|
|
38
|
-
import "./chunk-YYIWPH53.js";
|
|
39
|
-
import "./chunk-D4MVEOU2.js";
|
|
40
|
-
import "./chunk-FIVFP53N.js";
|
|
41
32
|
import {
|
|
42
33
|
mcpHttpMarker
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
34
|
+
} from "./chunk-ZHZYGY5R.js";
|
|
35
|
+
import "./chunk-3UZ4OH22.js";
|
|
36
|
+
import "./chunk-AV5UKJZM.js";
|
|
37
|
+
import "./chunk-WWE5GO6G.js";
|
|
38
|
+
import "./chunk-GAHIHE4K.js";
|
|
39
|
+
import "./chunk-PN4JYURZ.js";
|
|
40
|
+
import "./chunk-I7YSHUPW.js";
|
|
41
|
+
import "./chunk-7QSRODXM.js";
|
|
42
|
+
import "./chunk-3TCMANIM.js";
|
|
43
|
+
import "./chunk-RQNRYF6D.js";
|
|
44
|
+
import "./chunk-FADAOLGB.js";
|
|
45
|
+
import "./chunk-GA3URWIF.js";
|
|
46
|
+
import "./chunk-ZCXWV4XO.js";
|
|
47
|
+
import "./chunk-FCSHWUMW.js";
|
|
48
|
+
import "./chunk-FN3RXBO7.js";
|
|
49
|
+
import "./chunk-3CHW7JGR.js";
|
|
50
|
+
import "./chunk-IFTX7AQU.js";
|
|
50
51
|
import "./chunk-5DPV7X27.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-EDO5LZVF.js";
|
|
53
|
+
import "./chunk-3UWRAIWA.js";
|
|
53
54
|
import {
|
|
54
55
|
DEFAULT_OUTPUT_BYTES,
|
|
55
56
|
changesAuthorityAt,
|
|
@@ -59,50 +60,54 @@ import {
|
|
|
59
60
|
judgedTargets,
|
|
60
61
|
readsOverMcpAt,
|
|
61
62
|
rootOf2 as rootOf
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
65
|
-
import "./chunk-7A77GYCE.js";
|
|
66
|
-
import "./chunk-KPKIHJIT.js";
|
|
63
|
+
} from "./chunk-TGS5VPJD.js";
|
|
64
|
+
import "./chunk-FYPW7NMH.js";
|
|
65
|
+
import "./chunk-54BQWRJL.js";
|
|
67
66
|
import {
|
|
68
67
|
readOnlyLockOf
|
|
69
|
-
} from "./chunk-
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
72
|
-
import "./chunk-
|
|
73
|
-
import "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import "./chunk-
|
|
78
|
-
import "./chunk-
|
|
79
|
-
import "./chunk-
|
|
80
|
-
import "./chunk-
|
|
81
|
-
import "./chunk-
|
|
82
|
-
import "./chunk-
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
68
|
+
} from "./chunk-PR7XD2DI.js";
|
|
69
|
+
import "./chunk-4WK26MPY.js";
|
|
70
|
+
import "./chunk-TNKQDS5A.js";
|
|
71
|
+
import "./chunk-GV5DGHSA.js";
|
|
72
|
+
import "./chunk-DR57KDAY.js";
|
|
73
|
+
import "./chunk-BBFXQPKD.js";
|
|
74
|
+
import "./chunk-FONIFRYI.js";
|
|
75
|
+
import "./chunk-MXNQZAJQ.js";
|
|
76
|
+
import "./chunk-HYXXMSVD.js";
|
|
77
|
+
import "./chunk-BBRMDMIR.js";
|
|
78
|
+
import "./chunk-7DJNURKV.js";
|
|
79
|
+
import "./chunk-3AHBZP33.js";
|
|
80
|
+
import "./chunk-OY7TNUEC.js";
|
|
81
|
+
import "./chunk-6DPOWBKA.js";
|
|
82
|
+
import "./chunk-YCL3SK4T.js";
|
|
83
|
+
import "./chunk-GK3BJMGK.js";
|
|
84
|
+
import "./chunk-RLNZ7NX5.js";
|
|
85
|
+
import "./chunk-DHX27E5M.js";
|
|
86
|
+
import "./chunk-P7PLKNPX.js";
|
|
87
|
+
import "./chunk-Q5C6YKAY.js";
|
|
88
|
+
import "./chunk-WJK6KTCS.js";
|
|
89
|
+
import "./chunk-PAPY6Q6H.js";
|
|
85
90
|
import "./chunk-D72URWJE.js";
|
|
86
|
-
import "./chunk-
|
|
87
|
-
import "./chunk-
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-
|
|
90
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-66PL7P4C.js";
|
|
92
|
+
import "./chunk-ZI3YTXSF.js";
|
|
93
|
+
import "./chunk-HK225DAG.js";
|
|
94
|
+
import "./chunk-T5D4OGDC.js";
|
|
95
|
+
import "./chunk-HRATXUFH.js";
|
|
91
96
|
import {
|
|
92
97
|
mcpErrorResult
|
|
93
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-SONPLYV7.js";
|
|
94
99
|
import "./chunk-Y5E2WNWB.js";
|
|
95
|
-
import "./chunk-
|
|
96
|
-
import "./chunk-
|
|
97
|
-
import "./chunk-
|
|
100
|
+
import "./chunk-ABZ2NYDT.js";
|
|
101
|
+
import "./chunk-7IBENBCK.js";
|
|
102
|
+
import "./chunk-HHAZ6DCY.js";
|
|
98
103
|
import {
|
|
99
104
|
CliError
|
|
100
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-54NDYVZA.js";
|
|
101
106
|
import {
|
|
102
107
|
__name
|
|
103
108
|
} from "./chunk-ZVVMGPBJ.js";
|
|
104
109
|
|
|
105
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
110
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
106
111
|
var EXCLUDED = [["mcp"]];
|
|
107
112
|
var aliasesOf = /* @__PURE__ */ __name((root, path) => {
|
|
108
113
|
let at = root;
|
|
@@ -212,27 +217,14 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
212
217
|
transport: new StdioServerTransport(wire.input, wire.output),
|
|
213
218
|
onerror: /* @__PURE__ */ __name((error) => context.renderer.note(`mcp: ${error.message}`), "onerror")
|
|
214
219
|
});
|
|
215
|
-
|
|
216
|
-
wire.ended.then(() => resolve("input"));
|
|
217
|
-
if (own) {
|
|
218
|
-
if (signal?.aborted)
|
|
219
|
-
resolve("stopped");
|
|
220
|
-
else
|
|
221
|
-
signal?.addEventListener("abort", () => resolve("stopped"), { once: true });
|
|
222
|
-
} else {
|
|
223
|
-
process.once("SIGINT", () => resolve("stopped"));
|
|
224
|
-
process.once("SIGTERM", () => resolve("stopped"));
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
if (ended === "input")
|
|
228
|
-
await wire.answered();
|
|
220
|
+
await wire.finished(own ? signal : void 0);
|
|
229
221
|
wire.release();
|
|
230
222
|
await handle.close();
|
|
231
223
|
}, "serveAppOverStdio");
|
|
232
224
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
233
225
|
const { app } = options;
|
|
234
226
|
const { build } = createAppServer(command, context, options);
|
|
235
|
-
const { serveOverHttp } = await import("./serve-
|
|
227
|
+
const { serveOverHttp } = await import("./serve-GYSWIWH4.js");
|
|
236
228
|
const listening = await serveOverHttp(build, {
|
|
237
229
|
...http,
|
|
238
230
|
appName: app.command,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-PAPY6Q6H.js";
|
|
22
22
|
import {
|
|
23
23
|
__name
|
|
24
24
|
} from "./chunk-ZVVMGPBJ.js";
|
|
25
25
|
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
26
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/store/sqlite/drizzle/bun.js
|
|
27
27
|
import { Database } from "bun:sqlite";
|
|
28
28
|
var bunSQLiteCodecs = refineSqliteCodecs({
|
|
29
29
|
"integer:boolean": { normalize: booleanFromInteger },
|
|
@@ -3,24 +3,24 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
loadVectorExtension,
|
|
5
5
|
vectorExtension
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GJZSVSV3.js";
|
|
7
7
|
import {
|
|
8
8
|
refuseOwnerStoreInTests
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-T5D4OGDC.js";
|
|
10
|
+
import "./chunk-HRATXUFH.js";
|
|
11
|
+
import "./chunk-SONPLYV7.js";
|
|
12
12
|
import {
|
|
13
13
|
importFrom
|
|
14
14
|
} from "./chunk-Y5E2WNWB.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-ABZ2NYDT.js";
|
|
16
|
+
import "./chunk-7IBENBCK.js";
|
|
17
|
+
import "./chunk-HHAZ6DCY.js";
|
|
18
|
+
import "./chunk-54NDYVZA.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
21
|
} from "./chunk-ZVVMGPBJ.js";
|
|
22
22
|
|
|
23
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
23
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.666.0_@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typ_02b130a271480a962759fcca79b3d7ec/node_modules/@wirecat/cli-core/dist/store/drivers/bun-sqlite.js
|
|
24
24
|
var customised = false;
|
|
25
25
|
var ownLibrary = /* @__PURE__ */ __name(async () => {
|
|
26
26
|
try {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
checkApiBody,
|
|
14
14
|
checkApiParameter,
|
|
15
15
|
parseApiJson
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FVTKFIQH.js";
|
|
17
17
|
import {
|
|
18
18
|
array,
|
|
19
19
|
boolean,
|
|
@@ -29,15 +29,15 @@ import {
|
|
|
29
29
|
string,
|
|
30
30
|
transform,
|
|
31
31
|
unknown
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-HHAZ6DCY.js";
|
|
33
33
|
import {
|
|
34
34
|
CliError
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-54NDYVZA.js";
|
|
36
36
|
import {
|
|
37
37
|
__name
|
|
38
38
|
} from "./chunk-ZVVMGPBJ.js";
|
|
39
39
|
|
|
40
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
40
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.101.0_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
|
|
41
41
|
var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
|
|
42
42
|
var INTEGER = /^-?\d+$/;
|
|
43
43
|
var INT64_MIN = -(2n ** 63n);
|