@wirecat/drive-cli 0.65.0 → 0.66.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 +2871 -0
- package/dist/bin/drive.js +2 -2
- package/dist/bin/drive.js.map +1 -1
- package/dist/browse.d.ts +1 -1
- package/dist/browse.d.ts.map +1 -1
- package/dist/browse.js +1 -1
- package/dist/bundle/{all-profiles-PD7GJHFA.js → all-profiles-WCQLIHUG.js} +14 -14
- package/dist/bundle/{anthropic-PJKFON5H.js → anthropic-5RJMB6O7.js} +20 -13
- package/dist/bundle/{app-server-6ELQA6FJ.js → app-server-3RGYXPKG.js} +67 -56
- package/dist/bundle/{bun-P54TGES2.js → bun-L34VEKGG.js} +2 -2
- package/dist/bundle/{bun-sqlite-TND5ZRJH.js → bun-sqlite-H6IAXQXI.js} +9 -9
- package/dist/bundle/{chunk-VHQYWFWV.js → chunk-2AF77WMH.js} +1 -1
- package/dist/bundle/{chunk-CWLL63JD.js → chunk-2S3E2HVV.js} +17 -17
- package/dist/bundle/{chunk-I272E6UR.js → chunk-3NYH756U.js} +49 -117
- package/dist/bundle/{chunk-UTNRBOEN.js → chunk-3QFUDXMQ.js} +2 -2
- package/dist/bundle/{chunk-RNHGQ35R.js → chunk-3SDJIMZB.js} +1 -1
- package/dist/bundle/{chunk-NQ5XMSLA.js → chunk-4UHBJSMI.js} +22086 -29123
- package/dist/bundle/{chunk-OWMZUWCM.js → chunk-5HVJK3ZJ.js} +6 -14
- package/dist/bundle/chunk-5K54RZBK.js +70 -0
- package/dist/bundle/{chunk-SIWXYB4E.js → chunk-5PLINHEY.js} +2987 -2717
- package/dist/bundle/{chunk-O7ZDCOZE.js → chunk-5VDVGDOC.js} +1 -1
- package/dist/bundle/{chunk-B2LPCHQN.js → chunk-5XLU4NN6.js} +4 -4
- package/dist/bundle/{chunk-5XSBCMAF.js → chunk-6UJCCOZC.js} +4 -4
- package/dist/bundle/{chunk-7AQGVX5O.js → chunk-6X3KUFRQ.js} +60 -29
- package/dist/bundle/{chunk-WRMJN6UQ.js → chunk-7EP4AU6A.js} +3 -3
- package/dist/bundle/{chunk-GW3LBY3T.js → chunk-7LT2G5BC.js} +146 -133
- package/dist/bundle/{chunk-ZILALBYQ.js → chunk-7ZGJRVBH.js} +7 -5
- package/dist/bundle/{chunk-PLP5527C.js → chunk-ALE67WRR.js} +5 -5
- package/dist/bundle/{chunk-EHU6EYGO.js → chunk-AP4MX247.js} +12 -12
- package/dist/bundle/{chunk-NI5PD5KM.js → chunk-BIJW6AYA.js} +14124 -12049
- package/dist/bundle/{chunk-54V4H6PM.js → chunk-BQXSE645.js} +12 -12
- package/dist/bundle/{chunk-EM7NL5ES.js → chunk-COGWKO2T.js} +3 -3
- package/dist/bundle/{chunk-II4S2DBJ.js → chunk-D4MIMH2N.js} +12 -6
- package/dist/bundle/{chunk-42G2XNPN.js → chunk-D7KOAPG6.js} +2 -2
- package/dist/bundle/{chunk-NQRTKYJB.js → chunk-E2F2XIX6.js} +47 -80
- package/dist/bundle/{chunk-VDZY3L7U.js → chunk-FA2TNA5X.js} +1 -1
- package/dist/bundle/{chunk-A4QNADEX.js → chunk-FHBTQPA3.js} +49 -49
- package/dist/bundle/{chunk-7TAP7Y2E.js → chunk-FKKPVPZR.js} +196 -112
- package/dist/bundle/{chunk-2AFI4KGI.js → chunk-G4TNKBDX.js} +7 -7
- package/dist/bundle/{chunk-ECEP4SO3.js → chunk-GVA3KTCD.js} +10 -10
- package/dist/bundle/{chunk-PHOL2DZM.js → chunk-GY4DAJSK.js} +34 -5
- package/dist/bundle/{chunk-Z2ADO6UA.js → chunk-H7XL6WTW.js} +2 -2
- package/dist/bundle/{chunk-SE352DBY.js → chunk-HHRJPLFO.js} +1 -1
- package/dist/bundle/{chunk-WRAUO5EJ.js → chunk-HPKE2GDP.js} +45 -22
- package/dist/bundle/{chunk-D7WB54P7.js → chunk-HPSHQVJU.js} +540 -456
- package/dist/bundle/{chunk-4Y5YBFMS.js → chunk-HQBLJLYH.js} +7 -7
- package/dist/bundle/{chunk-IMHW7VIV.js → chunk-I5R5CMQR.js} +5 -5
- package/dist/bundle/{chunk-ELJUBPY4.js → chunk-IIHZTV6V.js} +1 -1
- package/dist/bundle/{chunk-M7ELUGU6.js → chunk-IRNDYNQX.js} +4 -4
- package/dist/bundle/{chunk-TTP4NOP3.js → chunk-JCHF7LZT.js} +4 -4
- package/dist/bundle/{chunk-3HXNDF6Q.js → chunk-JHMEETXI.js} +2 -2
- package/dist/bundle/{chunk-4EDWLR22.js → chunk-JLCR24UM.js} +1 -1
- package/dist/bundle/{chunk-6DCLZLGX.js → chunk-JQXK3M5M.js} +1 -1
- package/dist/bundle/{chunk-EZ2OLYEK.js → chunk-KOY5HUBY.js} +14 -5
- package/dist/bundle/{chunk-IBO23OID.js → chunk-KRG5X5PH.js} +2 -2
- package/dist/bundle/{chunk-FA6JNXCC.js → chunk-LVAPSAHF.js} +8 -8
- package/dist/bundle/{chunk-ZR2EJPMQ.js → chunk-M7543RUJ.js} +18 -15
- package/dist/bundle/{chunk-A27UVLPK.js → chunk-MZWXTJ4O.js} +3 -3
- package/dist/bundle/{chunk-XPWZSW6Y.js → chunk-NK4GVFJH.js} +4 -4
- package/dist/bundle/chunk-NYECVHFH.js +10283 -0
- package/dist/bundle/{chunk-W2XY6C5S.js → chunk-NYZS2LKF.js} +2 -2
- package/dist/bundle/{chunk-4AOINPN2.js → chunk-O53WLYX3.js} +8 -2
- package/dist/bundle/{chunk-RX5CJ55S.js → chunk-OIF4B526.js} +1 -1
- package/dist/bundle/{chunk-SS4LKLD7.js → chunk-OT7SQQJK.js} +371 -362
- package/dist/bundle/chunk-OZOQLAWK.js +72 -0
- package/dist/bundle/{chunk-DA63E2UM.js → chunk-P7HQFII6.js} +18 -15
- package/dist/bundle/{chunk-MCPOZNWG.js → chunk-PJGOQSE5.js} +1 -1
- package/dist/bundle/{chunk-F56DRBGY.js → chunk-PKM55ZRR.js} +75 -20
- package/dist/bundle/{chunk-SNLSEYJO.js → chunk-PUMDOCAF.js} +1 -1
- package/dist/bundle/{chunk-LMKPP2JP.js → chunk-QF7VL4C3.js} +1 -1
- package/dist/bundle/{chunk-D6Z43SOG.js → chunk-QJ57PV55.js} +383 -361
- package/dist/bundle/{chunk-EU5MD24W.js → chunk-QSELSDWE.js} +13 -13
- package/dist/bundle/{chunk-TMHF4BCL.js → chunk-SOOU5WO6.js} +2 -2
- package/dist/bundle/{chunk-3ONWN3IA.js → chunk-SZ6JFOL4.js} +137 -45
- package/dist/bundle/{chunk-WVJHZIDH.js → chunk-T3ULDA7C.js} +3 -3
- package/dist/bundle/{chunk-XYE7XZPB.js → chunk-TAHISPDE.js} +5 -5
- package/dist/bundle/{chunk-HP3NT6JJ.js → chunk-TYLEICTX.js} +3 -3
- package/dist/bundle/{chunk-Y5PKRITX.js → chunk-UAKX6DP4.js} +5 -5
- package/dist/bundle/{chunk-VLXWAH5E.js → chunk-UG3GHFGY.js} +4 -4
- package/dist/bundle/{chunk-X7YGGWXI.js → chunk-ULXEW6FT.js} +3 -2
- package/dist/bundle/{chunk-JPPPLKAO.js → chunk-UNTIVT47.js} +1 -2
- package/dist/bundle/{chunk-SEQWBZYH.js → chunk-UQPW42HF.js} +1 -1
- package/dist/bundle/{chunk-JMJIH6JH.js → chunk-V2WXTILT.js} +6 -6
- package/dist/bundle/{chunk-TOVWMURV.js → chunk-VQKNKJYL.js} +22 -7
- package/dist/bundle/{chunk-OFJXHEFT.js → chunk-VR3YKXHL.js} +93 -31
- package/dist/bundle/{chunk-VMAMRFFC.js → chunk-VUUPFDRU.js} +26 -27
- package/dist/bundle/{chunk-FBHSWQU7.js → chunk-WYTYHUFH.js} +319 -102
- package/dist/bundle/{chunk-ZD4MB7NH.js → chunk-XLGDNI4S.js} +1 -1
- package/dist/bundle/{chunk-O6K2E7OA.js → chunk-XVZNFA2P.js} +1507 -1107
- package/dist/bundle/chunk-Y5U4HIZS.js +71 -0
- package/dist/bundle/chunk-YTIPTHEE.js +47 -0
- package/dist/bundle/cli-KW6QQVS5.js +1101 -0
- package/dist/bundle/command-contract-CE543JBN.js +41 -0
- package/dist/bundle/{command-server-entry-36JXYIJB.js → command-server-entry-OC4E4DED.js} +31 -30
- package/dist/bundle/{decode-T5ZW57WZ.js → decode-AH5ZLLDK.js} +8 -8
- package/dist/bundle/{dispatch-RMA2XFYA.js → dispatch-CDWZZ54Q.js} +9 -9
- package/dist/bundle/drive.js +13 -13
- package/dist/bundle/{echarts-KQ44LPSF.js → echarts-VC7MTXWY.js} +2 -2
- package/dist/bundle/{embed-Q7XST53J.js → embed-EPSQY6QG.js} +9 -9
- package/dist/bundle/{embedder-RWZSBVW2.js → embedder-TK4U4TJR.js} +12 -12
- package/dist/bundle/entry-3VN23M7M.js +25 -0
- package/dist/bundle/{failure-7NP4QPIN.js → failure-WSVZOPFE.js} +4 -4
- package/dist/bundle/first-run-7ZYJ7EB3.js +30 -0
- package/dist/bundle/first-screen-CZDH7QY3.js +39 -0
- package/dist/bundle/google-OBZMWA7J.js +45 -0
- package/dist/bundle/{google-api-P5DRHD7L.js → google-api-AV4X2JH3.js} +68 -63
- package/dist/bundle/grants-WTRLN4ZI.js +111 -0
- package/dist/bundle/{identity-VDV6CHRW.js → identity-CGHHF7AK.js} +8 -6
- package/dist/bundle/{instructions-Q45FVY6H.js → instructions-24PHDBBE.js} +1 -1
- package/dist/bundle/{login-XKN3NI6X.js → login-XHFESAFM.js} +73 -70
- package/dist/bundle/{mcp-7KQUJNFN.js → mcp-M5YCSWJJ.js} +2 -2
- package/dist/bundle/{node-MSW565D3.js → node-GIDULTV5.js} +2 -2
- package/dist/bundle/{node-sqlite-S74XVVHL.js → node-sqlite-LINBOAWK.js} +10 -10
- package/dist/bundle/oauth-JHUX3KE3.js +22 -0
- package/dist/bundle/{open-P7UQG7XJ.js → open-RYFKPNCJ.js} +8 -8
- package/dist/bundle/{openai-DDHJ57KZ.js → openai-Q7YYUHJF.js} +28 -21
- package/dist/bundle/{process-NMUB5SHK.js → process-VPIZTIJR.js} +1 -1
- package/dist/bundle/{program-PJNWP6JW.js → program-IUXFRBZA.js} +213 -555
- package/dist/bundle/{prompt-VOSMK4C2.js → prompt-LF4KX3XL.js} +8 -8
- package/dist/bundle/{reasons-KDAXOC5S.js → reasons-JPYOU5GV.js} +5 -5
- package/dist/bundle/{recognize-GZIY63HS.js → recognize-KEWTJXFH.js} +7 -7
- package/dist/bundle/{remote-V3YGN7LN.js → remote-HGGLB76S.js} +13 -10
- package/dist/bundle/{rerank-XRU6AVN7.js → rerank-TDUKETFT.js} +10 -10
- package/dist/bundle/{serve-NDOAFA57.js → serve-XFYMKW5W.js} +12 -12
- package/dist/bundle/server-BDEV3CZJ.js +74 -0
- package/dist/bundle/{server-BKGWJYMC.js → server-PXIPSGFP.js} +47 -45
- package/dist/bundle/{services-TYDMFQCA.js → services-2BOCGMJU.js} +44 -34
- package/dist/bundle/{sqlite-runtime-UAFJKSJR.js → sqlite-runtime-R7M5XUMW.js} +9 -9
- package/dist/bundle/{start-2ZLDP2OE.js → start-YRLT4MQZ.js} +7 -7
- package/dist/bundle/{state-6SP27J2K.js → state-NZ7WRJWH.js} +9 -9
- package/dist/bundle/{store-EJN27MXI.js → store-7LCVDO7G.js} +23 -21
- package/dist/bundle/{store-4UUY545Q.js → store-ICDGPSEN.js} +21 -19
- package/dist/bundle/store-maintenance-command-SJPLY6IH.js +65 -0
- package/dist/bundle/tokens-FGTBE7VW.js +111 -0
- package/dist/commands/discovery.d.ts +0 -1
- package/dist/commands/discovery.d.ts.map +1 -1
- package/dist/commands/discovery.js +6 -26
- package/dist/commands/discovery.js.map +1 -1
- package/dist/commands/knowledge.d.ts.map +1 -1
- package/dist/commands/knowledge.js +7 -6
- package/dist/commands/knowledge.js.map +1 -1
- package/dist/commands/search.d.ts.map +1 -1
- package/dist/commands/search.js +11 -8
- package/dist/commands/search.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +3 -2
- package/dist/config.js.map +1 -1
- package/dist/contract-overrides.d.ts +16 -4
- package/dist/contract-overrides.d.ts.map +1 -1
- package/dist/contract-overrides.js +86 -410
- package/dist/contract-overrides.js.map +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +4 -0
- package/dist/errors.js.map +1 -1
- package/dist/google-api.d.ts.map +1 -1
- package/dist/google-api.js +4 -1
- package/dist/google-api.js.map +1 -1
- package/dist/identity.d.ts +4 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +22 -0
- package/dist/identity.js.map +1 -1
- package/dist/knowledge.js +2 -2
- package/dist/knowledge.js.map +1 -1
- package/dist/login.d.ts.map +1 -1
- package/dist/login.js +2 -2
- package/dist/login.js.map +1 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js +8 -6
- package/dist/program.js.map +1 -1
- package/dist/reasons.d.ts.map +1 -1
- package/dist/reasons.js +0 -1
- package/dist/reasons.js.map +1 -1
- package/dist/store-transition.js +2 -2
- package/dist/store-transition.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +7 -7
- package/dist/store.js.map +1 -1
- package/dist/tokens.d.ts +9 -2
- package/dist/tokens.d.ts.map +1 -1
- package/dist/tokens.js +18 -15
- package/dist/tokens.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wcat.d.ts +3 -0
- package/dist/wcat.d.ts.map +1 -0
- package/dist/wcat.js +4 -0
- package/dist/wcat.js.map +1 -0
- package/package.json +7 -7
- package/dist/bundle/chunk-CGQRZRTH.js +0 -26
- package/dist/bundle/chunk-IKHOIXJR.js +0 -27
- package/dist/bundle/chunk-SBZB7HMU.js +0 -1055
- package/dist/bundle/command-contract-25E4PYMD.js +0 -40
- package/dist/bundle/dist-PY3MVR3G.js +0 -21
- package/dist/bundle/entry-HPLW4QL2.js +0 -25
- package/dist/bundle/first-run-RL3RKYZW.js +0 -30
- package/dist/bundle/first-screen-NX3TM2VJ.js +0 -38
- package/dist/bundle/google-DPD5N6AQ.js +0 -42
- package/dist/bundle/grants-TX4MHLI4.js +0 -109
- package/dist/bundle/oauth-6R7AWAES.js +0 -22
- package/dist/bundle/server-QD2MUJJZ.js +0 -72
- package/dist/bundle/store-maintenance-command-LETURZDC.js +0 -60
- package/dist/bundle/tokens-MTFJPTYT.js +0 -107
- /package/dist/bundle/{chunk-YVNHQFLC.js → chunk-HVJJWJYQ.js} +0 -0
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.66.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-WCQLIHUG.js","../bundle/anthropic-5RJMB6O7.js","../bundle/app-server-3RGYXPKG.js","../bundle/bun-L34VEKGG.js","../bundle/bun-sqlite-H6IAXQXI.js","../bundle/cli-KW6QQVS5.js","../bundle/command-contract-CE543JBN.js","../bundle/command-server-entry-OC4E4DED.js","../bundle/decode-AH5ZLLDK.js","../bundle/dispatch-CDWZZ54Q.js","../bundle/dist-MWTMOYWT.js","../bundle/echarts-VC7MTXWY.js","../bundle/embed-EPSQY6QG.js","../bundle/embedder-TK4U4TJR.js","../bundle/entry-3VN23M7M.js","../bundle/failure-WSVZOPFE.js","../bundle/first-run-7ZYJ7EB3.js","../bundle/first-screen-CZDH7QY3.js","../bundle/google-OBZMWA7J.js","../bundle/google-api-AV4X2JH3.js","../bundle/grants-WTRLN4ZI.js","../bundle/identity-CGHHF7AK.js","../bundle/instructions-24PHDBBE.js","../bundle/login-XHFESAFM.js","../bundle/mcp-M5YCSWJJ.js","../bundle/mdast-util-from-markdown-CE73EWJ2.js","../bundle/mdast-util-gfm-SZM5GBDF.js","../bundle/micromark-extension-gfm-GRL24TU6.js","../bundle/node-GIDULTV5.js","../bundle/node-P4E63KXA.js","../bundle/node-TLZSIHIJ.js","../bundle/node-sqlite-LINBOAWK.js","../bundle/oauth-JHUX3KE3.js","../bundle/open-RYFKPNCJ.js","../bundle/openai-Q7YYUHJF.js","../bundle/process-VPIZTIJR.js","../bundle/program-IUXFRBZA.js","../bundle/prompt-LF4KX3XL.js","../bundle/reasons-JPYOU5GV.js","../bundle/recognize-KEWTJXFH.js","../bundle/remote-HGGLB76S.js","../bundle/rerank-TDUKETFT.js","../bundle/serve-XFYMKW5W.js","../bundle/server-BDEV3CZJ.js","../bundle/server-PXIPSGFP.js","../bundle/services-2BOCGMJU.js","../bundle/sqlite-runtime-R7M5XUMW.js","../bundle/start-YRLT4MQZ.js","../bundle/state-NZ7WRJWH.js","../bundle/store-7LCVDO7G.js","../bundle/store-ICDGPSEN.js","../bundle/store-maintenance-command-SJPLY6IH.js","../bundle/terminal-DHJ4D3BC.js","../bundle/tokens-FGTBE7VW.js"]
|
|
32
32
|
if (((words) => words
|
|
33
33
|
.filter((word) => !word.startsWith("-"))
|
|
34
34
|
.slice(0, 2)
|
package/dist/bin/drive.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drive.js","sourceRoot":"","sources":["../../src/bin/drive.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/F,oGAAoG;AACpG,kBAAkB,EAAE,CAAA;AACpB,mDAAmD;AACnD,MAAM,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"drive.js","sourceRoot":"","sources":["../../src/bin/drive.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/F,oGAAoG;AACpG,kBAAkB,EAAE,CAAA;AACpB,mDAAmD;AACnD,MAAM,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;IAChE,MAAM,CAAC,8BAA8B,CAAC;IACtC,MAAM,CAAC,gBAAgB,CAAC;CACzB,CAAC,CAAA;AACF,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC;IAC3B,OAAO,EAAE,SAAS,CAAC,OAAO;IAC1B,OAAO,EAAE,SAAS,CAAC,OAAO;IAC1B,WAAW,EAAE,SAAS,CAAC,WAAW;IAClC,IAAI,EAAE,OAAO,CAAC,IAAI;CACnB,CAAC,CAAA;AACF,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;IAC5B,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAA;AAC9B,CAAC;KAAM,CAAC;IACN,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,aAAa,EAAE,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACvE,MAAM,CAAC,6BAA6B,CAAC;QACrC,MAAM,CAAC,eAAe,CAAC;QACvB,MAAM,CAAC,gBAAgB,CAAC;KACzB,CAAC,CAAA;IAEF,MAAM,QAAQ,CAAC;QACb,GAAG,EAAE,SAAS;QACd,WAAW,EAAE,aAAa;QAC1B,OAAO,EAAE,OAAO;QAChB,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,CACnB,CAAC,MAAM,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE;YAC9C,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC;YACxC,WAAW,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,EAAE,SAAS,EAAE,OAAO,CAAC;SAC1E,CAAC;QACJ,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;YACrB,MAAM,MAAM,GAAG,aAAa,CAAC,KAAK,CAAC,CAAA;YACnC,cAAc,CAAC,UAAU,CACvB,WAAW,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,SAAS,CAAC,OAAO,EAAE,WAAW,EAAE,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CACnG,CAAA;YACD,OAAO,eAAe,CAAC,MAAM,CAAC,CAAA;QAChC,CAAC;KACF,CAAC,CAAA;AACJ,CAAC"}
|
package/dist/browse.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const browseRow: v.StrictObjectSchema<{
|
|
|
14
14
|
readonly added: v.BooleanSchema<undefined>;
|
|
15
15
|
}, undefined>;
|
|
16
16
|
export type BrowseRow = v.InferOutput<typeof browseRow>;
|
|
17
|
-
export declare const BROWSE_HELP = "\nEach item, one level of the tree (--json prints them under \"items\"):\n id folder id to pass to --parent or to folders add; shared-with-me at the top level\n name folder name as Google shows it\n kind my_drive, shared_with_me or shared_drive (the top level), folder (below it)\n parent the --parent given, or null at the top level\n location where the folder lives: my_drive, shared_with_me or shared_drive\n drive_id the shared drive's id, or null\n child_folders folders directly inside it, or null when not counted (Shared with me, a level of over 1000 folders)\n added whether sync already imports this folder (folders add)\nFolders are listed by name. Only folders are listed; files inside them are not.\nFailures carry error.reason:
|
|
17
|
+
export declare const BROWSE_HELP = "\nEach item, one level of the tree (--json prints them under \"items\"):\n id folder id to pass to --parent or to folders add; shared-with-me at the top level\n name folder name as Google shows it\n kind my_drive, shared_with_me or shared_drive (the top level), folder (below it)\n parent the --parent given, or null at the top level\n location where the folder lives: my_drive, shared_with_me or shared_drive\n drive_id the shared drive's id, or null\n child_folders folders directly inside it, or null when not counted (Shared with me, a level of over 1000 folders)\n added whether sync already imports this folder (folders add)\nFolders are listed by name. Only folders are listed; files inside them are not.\nFailures carry error.reason: session.missing (not signed in), oauth.expired (sign in again),\nprovider.rate-limited (retry later), not_found code (no such folder).";
|
|
18
18
|
/** One level of the owner's remote folders, read-only: the top level, or the folders directly inside `parent`. */
|
|
19
19
|
export declare const browseFolders: (call: Call, parent: string | undefined, selected: readonly string[]) => Promise<ListBody<BrowseRow>>;
|
|
20
20
|
//# sourceMappingURL=browse.d.ts.map
|
package/dist/browse.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browse.d.ts","sourceRoot":"","sources":["../src/browse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAErD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,0GAA0G;AAC1G,eAAO,MAAM,cAAc,mBAAmB,CAAA;AAE9C,MAAM,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;AAExF,eAAO,MAAM,SAAS;;;;;;;;;aASpB,CAAA;AACF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,SAAS,CAAC,CAAA;AAEvD,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"browse.d.ts","sourceRoot":"","sources":["../src/browse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAErD,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAI5B,0GAA0G;AAC1G,eAAO,MAAM,cAAc,mBAAmB,CAAA;AAE9C,MAAM,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;AAExF,eAAO,MAAM,SAAS;;;;;;;;;aASpB,CAAA;AACF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,SAAS,CAAC,CAAA;AAEvD,eAAO,MAAM,WAAW,u7BAY8C,CAAA;AAyHtE,kHAAkH;AAClH,eAAO,MAAM,aAAa,SAClB,IAAI,UACF,MAAM,GAAG,SAAS,YAChB,SAAS,MAAM,EAAE,KAC1B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAmC7B,CAAA"}
|
package/dist/browse.js
CHANGED
|
@@ -26,7 +26,7 @@ Each item, one level of the tree (--json prints them under "items"):
|
|
|
26
26
|
child_folders folders directly inside it, or null when not counted (Shared with me, a level of over 1000 folders)
|
|
27
27
|
added whether sync already imports this folder (folders add)
|
|
28
28
|
Folders are listed by name. Only folders are listed; files inside them are not.
|
|
29
|
-
Failures carry error.reason:
|
|
29
|
+
Failures carry error.reason: session.missing (not signed in), oauth.expired (sign in again),
|
|
30
30
|
provider.rate-limited (retry later), not_found code (no such folder).`;
|
|
31
31
|
const PAGE_BOUND = 1000;
|
|
32
32
|
const COUNTED_LEVEL = 1000;
|
|
@@ -2,33 +2,33 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
answeredWire
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JLCR24UM.js";
|
|
6
6
|
import {
|
|
7
7
|
CALLER_META_KEY,
|
|
8
8
|
PROXY_CLIENT_NAME,
|
|
9
9
|
StdioServerTransport,
|
|
10
10
|
callerOf,
|
|
11
11
|
serveStdio
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-D7KOAPG6.js";
|
|
13
13
|
import {
|
|
14
14
|
McpServer
|
|
15
15
|
} from "./chunk-5D4AEUVA.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-P7HQFII6.js";
|
|
17
|
+
import "./chunk-ULXEW6FT.js";
|
|
18
|
+
import "./chunk-O53WLYX3.js";
|
|
19
|
+
import "./chunk-HVJJWJYQ.js";
|
|
20
|
+
import "./chunk-6X3KUFRQ.js";
|
|
21
|
+
import "./chunk-ALE67WRR.js";
|
|
22
22
|
import "./chunk-Y5E2WNWB.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-JQXK3M5M.js";
|
|
24
|
+
import "./chunk-NYZS2LKF.js";
|
|
25
|
+
import "./chunk-VQKNKJYL.js";
|
|
26
|
+
import "./chunk-IIHZTV6V.js";
|
|
27
27
|
import {
|
|
28
28
|
__name
|
|
29
29
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
30
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
31
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/mcp/all-profiles.js
|
|
32
32
|
import { spawn } from "node:child_process";
|
|
33
33
|
import { randomUUID } from "node:crypto";
|
|
34
34
|
var PROTOCOL = "2025-06-18";
|
|
@@ -262,7 +262,7 @@ var serveAllProfilesOverStdio = /* @__PURE__ */ __name(async (options, io = {})
|
|
|
262
262
|
}, "serveAllProfilesOverStdio");
|
|
263
263
|
var serveAllProfilesOverHttp = /* @__PURE__ */ __name(async (options, http) => {
|
|
264
264
|
const { build, close } = allProfilesServer(options);
|
|
265
|
-
const { serveOverHttp } = await import("./serve-
|
|
265
|
+
const { serveOverHttp } = await import("./serve-XFYMKW5W.js");
|
|
266
266
|
const listening = await serveOverHttp(build, {
|
|
267
267
|
...http,
|
|
268
268
|
appName: options.command,
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
|
+
EmptyAnswer,
|
|
4
5
|
checkedOptions,
|
|
5
6
|
messagesFor,
|
|
6
7
|
systemFor
|
|
7
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-KOY5HUBY.js";
|
|
8
9
|
import {
|
|
9
10
|
Anthropic
|
|
10
11
|
} from "./chunk-ADLS6FVG.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-6X3KUFRQ.js";
|
|
13
|
+
import "./chunk-ALE67WRR.js";
|
|
13
14
|
import "./chunk-Y5E2WNWB.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-JQXK3M5M.js";
|
|
16
|
+
import "./chunk-NYZS2LKF.js";
|
|
16
17
|
import {
|
|
17
18
|
array,
|
|
18
19
|
literal,
|
|
@@ -22,13 +23,13 @@ import {
|
|
|
22
23
|
strictObject,
|
|
23
24
|
string,
|
|
24
25
|
unknown
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-VQKNKJYL.js";
|
|
27
|
+
import "./chunk-IIHZTV6V.js";
|
|
27
28
|
import {
|
|
28
29
|
__name
|
|
29
30
|
} from "./chunk-ZVVMGPBJ.js";
|
|
30
31
|
|
|
31
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
32
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/models/anthropic.js
|
|
32
33
|
var options = strictObject({
|
|
33
34
|
stop_sequences: optional(array(string())),
|
|
34
35
|
thinking: optional(strictObject({ type: picklist(["disabled", "adaptive"]) })),
|
|
@@ -60,10 +61,13 @@ var anthropic = {
|
|
|
60
61
|
...request.images === void 0 ? [] : [
|
|
61
62
|
{
|
|
62
63
|
role: "user",
|
|
63
|
-
content:
|
|
64
|
-
type: "
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
content: [
|
|
65
|
+
{ type: "text", text: request.prompt },
|
|
66
|
+
...request.images.map((image) => ({
|
|
67
|
+
type: "image",
|
|
68
|
+
source: { type: "base64", media_type: image.mimeType, data: image.data }
|
|
69
|
+
}))
|
|
70
|
+
]
|
|
67
71
|
}
|
|
68
72
|
]
|
|
69
73
|
],
|
|
@@ -71,8 +75,11 @@ var anthropic = {
|
|
|
71
75
|
}).finalMessage();
|
|
72
76
|
if (response.stop_reason !== "end_turn")
|
|
73
77
|
throw new Error("incomplete response");
|
|
78
|
+
const text = response.content.filter((block) => block.type === "text").map((block) => block.text).join("");
|
|
79
|
+
if (text.trim() === "")
|
|
80
|
+
throw new EmptyAnswer();
|
|
74
81
|
return {
|
|
75
|
-
text
|
|
82
|
+
text,
|
|
76
83
|
usage: {
|
|
77
84
|
input: response.usage.input_tokens + (response.usage.cache_creation_input_tokens ?? 0) + (response.usage.cache_read_input_tokens ?? 0),
|
|
78
85
|
output: response.usage.output_tokens
|
|
@@ -3,52 +3,53 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
PER_RUN,
|
|
5
5
|
envelope
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import {
|
|
8
|
-
mcpUrlOf
|
|
9
|
-
} from "./chunk-GW3LBY3T.js";
|
|
6
|
+
} from "./chunk-FHBTQPA3.js";
|
|
10
7
|
import {
|
|
11
8
|
answered,
|
|
12
9
|
failed,
|
|
13
10
|
registerCommands,
|
|
14
11
|
runCommandForAgent,
|
|
15
12
|
toolsFromCommands
|
|
16
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SZ6JFOL4.js";
|
|
14
|
+
import {
|
|
15
|
+
mcpUrlOf
|
|
16
|
+
} from "./chunk-7LT2G5BC.js";
|
|
17
17
|
import {
|
|
18
18
|
agentJson,
|
|
19
19
|
skillResource
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HPSHQVJU.js";
|
|
21
21
|
import {
|
|
22
22
|
appInstructions
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3SDJIMZB.js";
|
|
24
24
|
import {
|
|
25
25
|
answeredWire
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JLCR24UM.js";
|
|
27
27
|
import {
|
|
28
28
|
StdioServerTransport,
|
|
29
29
|
serveStdio
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-D7KOAPG6.js";
|
|
31
31
|
import {
|
|
32
32
|
McpServer
|
|
33
33
|
} from "./chunk-5D4AEUVA.js";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-OT7SQQJK.js";
|
|
35
|
+
import "./chunk-HPKE2GDP.js";
|
|
36
|
+
import "./chunk-XVZNFA2P.js";
|
|
37
|
+
import "./chunk-WYTYHUFH.js";
|
|
38
|
+
import "./chunk-QSELSDWE.js";
|
|
39
|
+
import "./chunk-JCHF7LZT.js";
|
|
40
|
+
import "./chunk-PJGOQSE5.js";
|
|
41
41
|
import {
|
|
42
42
|
mcpHttpMarker
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-6UJCCOZC.js";
|
|
44
|
+
import "./chunk-COGWKO2T.js";
|
|
45
|
+
import "./chunk-KOY5HUBY.js";
|
|
46
|
+
import "./chunk-D4MIMH2N.js";
|
|
47
|
+
import "./chunk-OZOQLAWK.js";
|
|
48
|
+
import "./chunk-2S3E2HVV.js";
|
|
49
|
+
import "./chunk-I5R5CMQR.js";
|
|
49
50
|
import "./chunk-5DPV7X27.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-UQPW42HF.js";
|
|
52
|
+
import "./chunk-UAKX6DP4.js";
|
|
52
53
|
import {
|
|
53
54
|
DEFAULT_OUTPUT_BYTES,
|
|
54
55
|
changesAuthorityAt,
|
|
@@ -57,50 +58,58 @@ import {
|
|
|
57
58
|
judgedTargets,
|
|
58
59
|
readsOverMcpAt,
|
|
59
60
|
rootOf2 as rootOf
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-
|
|
63
|
-
import "./chunk-
|
|
64
|
-
import "./chunk-
|
|
61
|
+
} from "./chunk-5PLINHEY.js";
|
|
62
|
+
import "./chunk-P7HQFII6.js";
|
|
63
|
+
import "./chunk-PKM55ZRR.js";
|
|
64
|
+
import "./chunk-5HVJK3ZJ.js";
|
|
65
|
+
import "./chunk-UG3GHFGY.js";
|
|
65
66
|
import {
|
|
66
67
|
readOnlyLockOf
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./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-
|
|
68
|
+
} from "./chunk-Y5U4HIZS.js";
|
|
69
|
+
import "./chunk-5VDVGDOC.js";
|
|
70
|
+
import "./chunk-GY4DAJSK.js";
|
|
71
|
+
import "./chunk-MZWXTJ4O.js";
|
|
72
|
+
import "./chunk-5XLU4NN6.js";
|
|
73
|
+
import "./chunk-H7XL6WTW.js";
|
|
74
|
+
import "./chunk-BIJW6AYA.js";
|
|
75
|
+
import "./chunk-T3ULDA7C.js";
|
|
76
|
+
import "./chunk-LVAPSAHF.js";
|
|
77
|
+
import "./chunk-V2WXTILT.js";
|
|
78
|
+
import "./chunk-QJ57PV55.js";
|
|
79
|
+
import "./chunk-GVA3KTCD.js";
|
|
80
|
+
import "./chunk-ULXEW6FT.js";
|
|
81
|
+
import "./chunk-O53WLYX3.js";
|
|
82
|
+
import "./chunk-HQBLJLYH.js";
|
|
83
|
+
import "./chunk-QF7VL4C3.js";
|
|
82
84
|
import "./chunk-D72URWJE.js";
|
|
83
|
-
import "./chunk-
|
|
84
|
-
import "./chunk-
|
|
85
|
-
import "./chunk-
|
|
86
|
-
import "./chunk-
|
|
87
|
-
import "./chunk-
|
|
85
|
+
import "./chunk-OIF4B526.js";
|
|
86
|
+
import "./chunk-HVJJWJYQ.js";
|
|
87
|
+
import "./chunk-FA2TNA5X.js";
|
|
88
|
+
import "./chunk-3QFUDXMQ.js";
|
|
89
|
+
import "./chunk-6X3KUFRQ.js";
|
|
88
90
|
import {
|
|
89
91
|
mcpErrorResult
|
|
90
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-ALE67WRR.js";
|
|
91
93
|
import "./chunk-Y5E2WNWB.js";
|
|
92
|
-
import "./chunk-
|
|
93
|
-
import "./chunk-
|
|
94
|
-
import "./chunk-
|
|
94
|
+
import "./chunk-JQXK3M5M.js";
|
|
95
|
+
import "./chunk-NYZS2LKF.js";
|
|
96
|
+
import "./chunk-VQKNKJYL.js";
|
|
95
97
|
import {
|
|
96
98
|
CliError
|
|
97
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-IIHZTV6V.js";
|
|
98
100
|
import {
|
|
99
101
|
__name
|
|
100
102
|
} from "./chunk-ZVVMGPBJ.js";
|
|
101
103
|
|
|
102
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
104
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/mcp/app-server.js
|
|
103
105
|
var EXCLUDED = [["mcp"]];
|
|
106
|
+
var aliasesOf = /* @__PURE__ */ __name((root, path) => {
|
|
107
|
+
let at = root;
|
|
108
|
+
for (const name of path)
|
|
109
|
+
at = at?.commands.find((child) => child.name() === name);
|
|
110
|
+
const aliases = at?.aliases() ?? [];
|
|
111
|
+
return aliases.length > 0 ? { aliases } : {};
|
|
112
|
+
}, "aliasesOf");
|
|
104
113
|
var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
105
114
|
const { app } = options;
|
|
106
115
|
const root = rootOf(command);
|
|
@@ -137,6 +146,8 @@ var createAppServer = /* @__PURE__ */ __name((command, context, options) => {
|
|
|
137
146
|
{
|
|
138
147
|
title: one.title,
|
|
139
148
|
description: one.description,
|
|
149
|
+
...one.keywords ? { keywords: one.keywords } : {},
|
|
150
|
+
...aliasesOf(root, one.path),
|
|
140
151
|
writes: one.writes,
|
|
141
152
|
availability: availability(one),
|
|
142
153
|
input: one.input,
|
|
@@ -217,7 +228,7 @@ var serveAppOverStdio = /* @__PURE__ */ __name(async (command, context, options)
|
|
|
217
228
|
var serveAppOverHttp = /* @__PURE__ */ __name(async (command, context, options, http) => {
|
|
218
229
|
const { app } = options;
|
|
219
230
|
const { build } = createAppServer(command, context, options);
|
|
220
|
-
const { serveOverHttp } = await import("./serve-
|
|
231
|
+
const { serveOverHttp } = await import("./serve-XFYMKW5W.js");
|
|
221
232
|
const listening = await serveOverHttp(build, {
|
|
222
233
|
...http,
|
|
223
234
|
appName: app.command,
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
jitCompatCheck,
|
|
19
19
|
refineSqliteCodecs,
|
|
20
20
|
sql
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QF7VL4C3.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.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/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-KRG5X5PH.js";
|
|
7
7
|
import {
|
|
8
8
|
refuseOwnerStoreInTests
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-3QFUDXMQ.js";
|
|
10
|
+
import "./chunk-6X3KUFRQ.js";
|
|
11
|
+
import "./chunk-ALE67WRR.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-JQXK3M5M.js";
|
|
16
|
+
import "./chunk-NYZS2LKF.js";
|
|
17
|
+
import "./chunk-VQKNKJYL.js";
|
|
18
|
+
import "./chunk-IIHZTV6V.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.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/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 {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
__name
|
|
5
5
|
} from "./chunk-ZVVMGPBJ.js";
|
|
6
6
|
|
|
7
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
7
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/cli/command-server-argv.js
|
|
8
8
|
var COMMAND_SERVER_ARGV = ["commands", "--serve"];
|
|
9
9
|
var isCommandServer = /* @__PURE__ */ __name((args) => args.length === COMMAND_SERVER_ARGV.length && COMMAND_SERVER_ARGV.every((word, at) => args[at] === word), "isCommandServer");
|
|
10
10
|
|
|
@@ -23,28 +23,28 @@ import {
|
|
|
23
23
|
tagMemberIds,
|
|
24
24
|
thingOf,
|
|
25
25
|
write
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BIJW6AYA.js";
|
|
27
27
|
import {
|
|
28
28
|
fold
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-LVAPSAHF.js";
|
|
30
30
|
import {
|
|
31
31
|
ADDED_PROVIDER,
|
|
32
32
|
filesAccountSql,
|
|
33
33
|
folderProviderOf,
|
|
34
34
|
folderProviderSql,
|
|
35
35
|
isDocumentAccountProvider
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-QJ57PV55.js";
|
|
37
37
|
import {
|
|
38
38
|
damagedFile
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-O53WLYX3.js";
|
|
40
40
|
import {
|
|
41
41
|
CliError
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-IIHZTV6V.js";
|
|
43
43
|
import {
|
|
44
44
|
__name
|
|
45
45
|
} from "./chunk-ZVVMGPBJ.js";
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
47
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/store/damage.js
|
|
48
48
|
var DERIVED = /* @__PURE__ */ new Set(["mentions", "involvements", "embeddings"]);
|
|
49
49
|
var named = /* @__PURE__ */ __name((tables) => tables.length <= 5 ? tables.join(", ") : `${tables.slice(0, 5).join(", ")} and ${tables.length - 5} more`, "named");
|
|
50
50
|
var isDerivedTable = /* @__PURE__ */ __name((table, searchIndexes) => DERIVED.has(table) || table.startsWith("vector_index_") || searchIndexes.some((index) => table === index || table.startsWith(`${index}_`)), "isDerivedTable");
|
|
@@ -147,11 +147,11 @@ var storeDamageReport = /* @__PURE__ */ __name(({ health, command, mark = null,
|
|
|
147
147
|
};
|
|
148
148
|
}, "storeDamageReport");
|
|
149
149
|
|
|
150
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
150
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
151
151
|
import { realpathSync, statSync } from "node:fs";
|
|
152
152
|
import { resolve } from "node:path";
|
|
153
153
|
|
|
154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
154
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/people.js
|
|
155
155
|
var planPeople = /* @__PURE__ */ __name((database, snapshot, mappings, bindings, conflicts) => {
|
|
156
156
|
const creatable = /* @__PURE__ */ new Set();
|
|
157
157
|
let people = 0, identities = 0;
|
|
@@ -214,11 +214,11 @@ var copyPeople = /* @__PURE__ */ __name((database, snapshot, mappings, now) => {
|
|
|
214
214
|
}
|
|
215
215
|
}, "copyPeople");
|
|
216
216
|
|
|
217
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/store/document-transfer/digest.js
|
|
218
218
|
import { createHash } from "node:crypto";
|
|
219
219
|
var digest = /* @__PURE__ */ __name((value) => createHash("sha256").update(JSON.stringify(value)).digest("hex"), "digest");
|
|
220
220
|
|
|
221
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
221
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/collection.js
|
|
222
222
|
var documentsKeyOf = /* @__PURE__ */ __name((collection) => {
|
|
223
223
|
const colon = collection.indexOf(":");
|
|
224
224
|
const provider = collection.slice(0, colon);
|
|
@@ -262,7 +262,7 @@ var currentCollection = /* @__PURE__ */ __name((row) => {
|
|
|
262
262
|
};
|
|
263
263
|
}, "currentCollection");
|
|
264
264
|
|
|
265
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
265
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/plan.js
|
|
266
266
|
var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindings) => {
|
|
267
267
|
const mappings = /* @__PURE__ */ new Map();
|
|
268
268
|
const missing = /* @__PURE__ */ new Set(), conflicts = /* @__PURE__ */ new Set();
|
|
@@ -429,7 +429,7 @@ var planTransfer = /* @__PURE__ */ __name((database, snapshot, sourceKey, bindin
|
|
|
429
429
|
};
|
|
430
430
|
}, "planTransfer");
|
|
431
431
|
|
|
432
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
432
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/snapshot.js
|
|
433
433
|
var TRANSFER_TABLES = { document: "documents", note: "notes", memory: "memories", fact: "facts" };
|
|
434
434
|
var MAX_ENTITIES = 1e3;
|
|
435
435
|
var MAX_AUXILIARY = 1e4;
|
|
@@ -591,7 +591,7 @@ var transferSnapshot = /* @__PURE__ */ __name((database, collection) => read(dat
|
|
|
591
591
|
};
|
|
592
592
|
}), "transferSnapshot");
|
|
593
593
|
|
|
594
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
594
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/store/sqlite/document-transfer/apply.js
|
|
595
595
|
var providerHere = /* @__PURE__ */ __name(({ provider, name, settings }) => {
|
|
596
596
|
if (provider !== "folder" || String(name ?? "").startsWith("google-drive:"))
|
|
597
597
|
return provider ?? null;
|
|
@@ -763,7 +763,7 @@ var remapEntity = /* @__PURE__ */ __name((database, entity, id, mappings) => {
|
|
|
763
763
|
database.prepare(`UPDATE ${TRANSFER_TABLES[entity.kind]} SET ${columns.join(",")} WHERE id=?`).run(...values, id);
|
|
764
764
|
}, "remapEntity");
|
|
765
765
|
|
|
766
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
766
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/store/document-transfer/index.js
|
|
767
767
|
var locations = /* @__PURE__ */ __name((options) => {
|
|
768
768
|
for (const value of [options.source, options.destination, options.collection])
|
|
769
769
|
if (typeof value !== "string" || !value.trim())
|
|
@@ -865,7 +865,7 @@ var applyWith = /* @__PURE__ */ __name(async (location, options) => {
|
|
|
865
865
|
}
|
|
866
866
|
}, "applyWith");
|
|
867
867
|
|
|
868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
868
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/store/health.js
|
|
869
869
|
import { existsSync, statSync as statSync2 } from "node:fs";
|
|
870
870
|
var JSON_COLUMNS = {
|
|
871
871
|
accounts: ["settings"],
|
|
@@ -1007,7 +1007,7 @@ var storeHealth = /* @__PURE__ */ __name(async (path, { deep = false } = {}) =>
|
|
|
1007
1007
|
}
|
|
1008
1008
|
}, "storeHealth");
|
|
1009
1009
|
|
|
1010
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1010
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/store/project-transfer/preview.js
|
|
1011
1011
|
var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) => {
|
|
1012
1012
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
1013
1013
|
throw new CliError("validation_error", "project preview options are required");
|
|
@@ -1033,7 +1033,7 @@ var previewProjectAnnotationSnapshot = /* @__PURE__ */ __name(async (options) =>
|
|
|
1033
1033
|
});
|
|
1034
1034
|
}, "previewProjectAnnotationSnapshot");
|
|
1035
1035
|
|
|
1036
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1036
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.650.0_@wirecat+cli-base@0.98.0_commander@15.0.0_esbuild@0.28.2_type_7618ae642a1b316105e0e055c769f604/node_modules/@wirecat/cli-core/dist/store/project-transfer/snapshot.js
|
|
1037
1037
|
var snapshotProjectAnnotations = /* @__PURE__ */ __name(async (options) => {
|
|
1038
1038
|
if (!options || typeof options !== "object" || Array.isArray(options))
|
|
1039
1039
|
throw new CliError("validation_error", "snapshot options are required");
|