@wirecat/drive-cli 0.71.0 → 0.72.1
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-GOCD4ZW2.js +46 -0
- package/dist/bundle/{all-profiles-3QJG2NAN.js → all-profiles-PZVP3G73.js} +67 -25
- package/dist/bundle/{anthropic-PSWTEU6G.js → anthropic-PUOTKSYV.js} +9 -9
- package/dist/bundle/{app-server-PVTA6ABR.js → app-server-MKDCXRZM.js} +97 -79
- package/dist/bundle/{bun-LU5LP3JI.js → bun-NS5YLOQT.js} +2 -2
- package/dist/bundle/{bun-sqlite-PYMKLBRU.js → bun-sqlite-KSKWRLLO.js} +9 -9
- package/dist/bundle/{chunk-COOOO5B3.js → chunk-2CG3LUQS.js} +4 -4
- package/dist/bundle/{chunk-YVI5SQPY.js → chunk-2TVHFJKV.js} +1 -1
- package/dist/bundle/chunk-35FIJGTT.js +52 -0
- package/dist/bundle/chunk-35GROSBS.js +3233 -0
- package/dist/bundle/{chunk-D5TGYUVU.js → chunk-3CH7I452.js} +9 -60
- package/dist/bundle/{chunk-ICDCAQ6K.js → chunk-3QBRS3JT.js} +13 -9
- package/dist/bundle/chunk-3T7JIHSO.js +353 -0
- package/dist/bundle/{chunk-Q7DOMFJ4.js → chunk-3VIEGRBA.js} +6 -6
- package/dist/bundle/chunk-3YCUYFTD.js +2159 -0
- package/dist/bundle/{chunk-CJLVYIOP.js → chunk-3ZGWJYSG.js} +30 -21
- package/dist/bundle/{chunk-YPFWNVHV.js → chunk-43PCMVTZ.js} +2 -100
- package/dist/bundle/{chunk-OF422U5D.js → chunk-4DK55MLP.js} +402 -402
- package/dist/bundle/chunk-4HP6KGBI.js +32 -0
- package/dist/bundle/chunk-4P6D6CUS.js +282 -0
- package/dist/bundle/chunk-4ZAQMDLD.js +1308 -0
- package/dist/bundle/chunk-4ZTB7LS3.js +87 -0
- package/dist/bundle/{chunk-6W763DZN.js → chunk-54O5NJRC.js} +14 -13
- package/dist/bundle/{chunk-MNLL5YLM.js → chunk-5BHP4FVM.js} +2 -2
- package/dist/bundle/{chunk-ACUAV6VX.js → chunk-6JU4KLAZ.js} +108 -72
- package/dist/bundle/{chunk-YMJ6IDGT.js → chunk-6KND2DYT.js} +38 -8
- package/dist/bundle/{chunk-4HWJOU7N.js → chunk-7YPZPJTB.js} +1 -1
- package/dist/bundle/chunk-A5XNUMW7.js +108 -0
- package/dist/bundle/{chunk-X4TIMMKJ.js → chunk-AG34MPVN.js} +1 -1
- package/dist/bundle/chunk-B5V2U7IS.js +221 -0
- package/dist/bundle/chunk-B6JC5RS3.js +696 -0
- package/dist/bundle/chunk-BDZXGDGI.js +80 -0
- package/dist/bundle/{chunk-B5KSXHJ7.js → chunk-BMTMGMGE.js} +1 -1
- package/dist/bundle/{chunk-ZCR3IRZ2.js → chunk-CP2TZXAG.js} +16 -9
- package/dist/bundle/{chunk-TAUBRNC5.js → chunk-DOEP4EPW.js} +72 -59
- package/dist/bundle/chunk-DQSOYH6N.js +20 -0
- package/dist/bundle/{chunk-QETR5HIZ.js → chunk-E2TMWONO.js} +4385 -2684
- package/dist/bundle/chunk-E5EYJU5R.js +7 -0
- package/dist/bundle/chunk-ECYOTDJM.js +14 -0
- package/dist/bundle/{chunk-HL52XXZX.js → chunk-EXHTGQR2.js} +3 -4
- package/dist/bundle/chunk-F4BX7TH2.js +15 -0
- package/dist/bundle/{chunk-ASMMG72J.js → chunk-FJQO5OHR.js} +261 -565
- package/dist/bundle/{chunk-RJOQH5YY.js → chunk-FKP4T7A4.js} +111 -859
- package/dist/bundle/{chunk-JDV7HNNQ.js → chunk-FTL3WXZB.js} +13 -26
- package/dist/bundle/{chunk-FP54WSIR.js → chunk-G2CH4FRW.js} +4 -4
- package/dist/bundle/chunk-G2KKMQRN.js +30 -0
- package/dist/bundle/{chunk-NYECVHFH.js → chunk-G4NHRFS7.js} +755 -0
- package/dist/bundle/{chunk-Y2NWGNUB.js → chunk-G7SKXAVZ.js} +5 -5
- package/dist/bundle/{chunk-FT3LN3HP.js → chunk-GFI3UUIU.js} +1 -1
- package/dist/bundle/chunk-GTPPUBYU.js +1876 -0
- package/dist/bundle/{chunk-QFR2PNJN.js → chunk-GTROGY74.js} +12 -12
- package/dist/bundle/{chunk-UTO2GO4P.js → chunk-GYAPDUF5.js} +45 -66
- package/dist/bundle/{chunk-GBKNJWOZ.js → chunk-HCMEU7AF.js} +8 -8
- package/dist/bundle/{chunk-FJH7DJWK.js → chunk-HDGJ7IDE.js} +6 -6
- package/dist/bundle/{chunk-Z3KUSRCF.js → chunk-HMN26CVU.js} +2 -2
- package/dist/bundle/{chunk-I4RWW3UD.js → chunk-HOICQNJX.js} +20 -5
- package/dist/bundle/{chunk-P7CUM5IB.js → chunk-HPS2YGSZ.js} +1 -1
- package/dist/bundle/{chunk-HMS6EEQL.js → chunk-HSASPXRW.js} +3 -3
- package/dist/bundle/{chunk-KGYVHPGE.js → chunk-IABPGOMT.js} +2 -2
- package/dist/bundle/{chunk-4QNW4NK6.js → chunk-IBQZT2YD.js} +1 -1
- package/dist/bundle/{chunk-PRW6SYA3.js → chunk-IE3R46YN.js} +313 -257
- package/dist/bundle/{chunk-7PDHGZN4.js → chunk-IE6O7463.js} +4 -4
- package/dist/bundle/{chunk-3UGYFXH6.js → chunk-IPBYU43F.js} +192 -379
- package/dist/bundle/{chunk-RWDKMU74.js → chunk-IS7STZEB.js} +3 -3
- package/dist/bundle/{chunk-GOWXXYEF.js → chunk-IV77ZFF4.js} +4 -4
- package/dist/bundle/{chunk-6XFIITOG.js → chunk-JDGF3YYS.js} +4811 -3486
- package/dist/bundle/{chunk-GPQ44Y2R.js → chunk-JHAACT4I.js} +2 -2
- package/dist/bundle/{chunk-SERXSCN3.js → chunk-JRED7BNX.js} +337 -390
- package/dist/bundle/{chunk-MIA7P6FZ.js → chunk-JSYUB4SM.js} +6 -6
- package/dist/bundle/{chunk-RESDD3Q4.js → chunk-JVM75M4H.js} +16 -3
- package/dist/bundle/{chunk-XF4EXO2C.js → chunk-JZ65CQWK.js} +6 -6
- package/dist/bundle/{chunk-QNRRK3CN.js → chunk-KBR7OC5S.js} +2 -2
- package/dist/bundle/chunk-KI6OOW6D.js +123 -0
- package/dist/bundle/chunk-KOI5G7NM.js +388 -0
- package/dist/bundle/{chunk-ZZ32DXTH.js → chunk-KPBUJQKT.js} +1 -1
- package/dist/bundle/{chunk-2LHAVY4U.js → chunk-KVBGIZ2C.js} +1 -1
- package/dist/bundle/chunk-L7P3LUDQ.js +286 -0
- package/dist/bundle/{chunk-SAKO3P4H.js → chunk-LKUWH6KU.js} +1 -1
- package/dist/bundle/chunk-MA6U4XH2.js +36 -0
- package/dist/bundle/{chunk-TAFHYHKA.js → chunk-MA7ETVTZ.js} +43 -186
- package/dist/bundle/{chunk-KYKW2W6X.js → chunk-MDJUYCHT.js} +1 -1
- package/dist/bundle/chunk-MEYYH47C.js +25 -0
- package/dist/bundle/{chunk-Z56QFOBR.js → chunk-MGC2BAD2.js} +1 -1
- package/dist/bundle/chunk-NMQRSEZM.js +37 -0
- package/dist/bundle/{chunk-5DPV7X27.js → chunk-NTZWY5R3.js} +321 -0
- package/dist/bundle/{chunk-OJSBWP3F.js → chunk-OBDPKDGB.js} +69 -7
- package/dist/bundle/{chunk-WVDCCYS3.js → chunk-ODTBJGWQ.js} +17 -17
- package/dist/bundle/chunk-PB6ACIME.js +80 -0
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-72C4YOCH.js → chunk-PMAV3RNP.js} +7 -7
- package/dist/bundle/chunk-PSY67L73.js +783 -0
- package/dist/bundle/{chunk-6TNNT2MQ.js → chunk-PUVQOZ2N.js} +483 -176
- package/dist/bundle/{chunk-SDKQNOL5.js → chunk-QB7K6PIP.js} +6 -6
- package/dist/bundle/chunk-QK7GKFKB.js +188 -0
- package/dist/bundle/{chunk-4PA4DHYV.js → chunk-QMUWHKP5.js} +6 -6
- package/dist/bundle/chunk-QURQ2OU2.js +250 -0
- package/dist/bundle/{chunk-LXKYKRHD.js → chunk-R3EDZWXF.js} +8 -227
- package/dist/bundle/{chunk-KGERXYTV.js → chunk-RM4DO2WZ.js} +1 -1
- package/dist/bundle/chunk-S27UKJVL.js +730 -0
- package/dist/bundle/{chunk-22QQUKWA.js → chunk-S3SLDYTU.js} +1 -1
- package/dist/bundle/{chunk-FCS26CYQ.js → chunk-SAEBHENE.js} +4 -4
- package/dist/bundle/chunk-SM7Z2BQF.js +561 -0
- package/dist/bundle/{chunk-QXC6IEH6.js → chunk-SODB63MR.js} +201 -423
- package/dist/bundle/{chunk-2PUNKUYJ.js → chunk-SSFGSY77.js} +10320 -9907
- package/dist/bundle/{chunk-37MAA6F2.js → chunk-STUPCKAA.js} +11 -2221
- package/dist/bundle/{chunk-BKSQBBYG.js → chunk-SUQT4KI2.js} +9 -9
- package/dist/bundle/{chunk-YPNWIB6H.js → chunk-SWQDKO6D.js} +3 -3
- package/dist/bundle/chunk-SZ7XJZGH.js +2231 -0
- package/dist/bundle/{chunk-3N2OFXB5.js → chunk-T3OK6AYZ.js} +5 -5
- package/dist/bundle/{chunk-HKY7X6NY.js → chunk-TFIAD57H.js} +4 -4
- package/dist/bundle/chunk-TRYYWV7J.js +291 -0
- package/dist/bundle/{chunk-XMMFBPGC.js → chunk-TUL6MCTY.js} +3 -3
- package/dist/bundle/{chunk-6Y2BYFXQ.js → chunk-UC7JLE6J.js} +0 -7
- package/dist/bundle/{chunk-YJIGGUPI.js → chunk-UL5HSHFU.js} +4 -4
- package/dist/bundle/{chunk-3EBBLKIT.js → chunk-UT64BBEP.js} +4 -4
- package/dist/bundle/{chunk-26DHFMGZ.js → chunk-VBIZD5V5.js} +2 -2
- package/dist/bundle/chunk-VHTELRUA.js +50 -0
- package/dist/bundle/chunk-VOQICE3G.js +340 -0
- package/dist/bundle/{chunk-GZ2D4KXG.js → chunk-WDJRUNQN.js} +35 -12
- package/dist/bundle/{chunk-2UUWXPOB.js → chunk-X5CXANSA.js} +3 -3
- package/dist/bundle/{chunk-35SCQ4VI.js → chunk-X6HPQKAI.js} +43 -35
- package/dist/bundle/{chunk-COJSWDNU.js → chunk-XKWQDQ4B.js} +3 -3
- package/dist/bundle/{chunk-6SJOTNHF.js → chunk-XZEVHUKI.js} +6 -28
- package/dist/bundle/{chunk-JZHBZOJR.js → chunk-YE7DJB3F.js} +3 -3
- package/dist/bundle/chunk-YHWFF6DN.js +39 -0
- package/dist/bundle/{chunk-2BVVU7GG.js → chunk-YJVQ5GST.js} +1 -1
- package/dist/bundle/{chunk-ZM63SUHG.js → chunk-YRCGFSRR.js} +2 -2
- package/dist/bundle/{chunk-EOEU3AZN.js → chunk-ZNFXKFGF.js} +13 -13
- package/dist/bundle/{cli-556DERZL.js → cli-KXRWXGTS.js} +217 -114
- package/dist/bundle/command-contract-BGNT7MTQ.js +45 -0
- package/dist/bundle/{command-server-entry-AYLGNZWD.js → command-server-entry-7FZX74T6.js} +36 -34
- package/dist/bundle/{decode-QU24MWMN.js → decode-SZ6W34U3.js} +10 -10
- package/dist/bundle/{dispatch-4KODNOXV.js → dispatch-4KNSZ3PI.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-ISH62J4E.js} +2 -2
- package/dist/bundle/{embed-KG27KG3D.js → embed-6ODGTZPK.js} +10 -10
- package/dist/bundle/{embedder-IPAVUQUV.js → embedder-6FY67FTQ.js} +15 -15
- package/dist/bundle/entry-2SA6ZX7E.js +25 -0
- package/dist/bundle/{failure-ESL7ETL4.js → failure-V3ILKUTX.js} +4 -4
- package/dist/bundle/first-run-ZNKPPD6M.js +31 -0
- package/dist/bundle/first-screen-WF6GYLPN.js +45 -0
- package/dist/bundle/google-QCADNPCQ.js +46 -0
- package/dist/bundle/{google-api-VCDBSNOW.js → google-api-ZTI3NKZX.js} +88 -73
- package/dist/bundle/grants-BPN5AGDK.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-YX4IPGOO.js} +7 -6
- package/dist/bundle/{instructions-2VECIDXF.js → instructions-G5ZGHVFB.js} +1 -1
- package/dist/bundle/{login-7GBONT7V.js → login-CVX5VJX6.js} +96 -81
- package/dist/bundle/{mcp-O6ACR2DX.js → mcp-MQ2L5IIM.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-HKZJMJ6Q.js +28 -0
- package/dist/bundle/meeting-model-DSE4GRVE.js +29 -0
- package/dist/bundle/{meeting-semantic-G7PFOKU7.js → meeting-semantic-OHG2QN2G.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-NLJINXVQ.js} +2 -2
- package/dist/bundle/{node-sqlite-OLQMAYB4.js → node-sqlite-KDFQDYVZ.js} +10 -10
- package/dist/bundle/notes-search-3VBVSQ3R.js +70 -0
- package/dist/bundle/oauth-M3E62ZHC.js +22 -0
- package/dist/bundle/{open-OXTE672W.js → open-WVRUVBIZ.js} +8 -8
- package/dist/bundle/{openai-EB3TPIZY.js → openai-JJWOSJMV.js} +22 -21
- package/dist/bundle/{process-F6TKXWWA.js → process-LPVAYRO7.js} +1 -1
- package/dist/bundle/{program-4IFDZ7FM.js → program-ZJRIP25J.js} +276 -1149
- package/dist/bundle/{prompt-F5RRHPN2.js → prompt-XCDHTEAO.js} +8 -8
- package/dist/bundle/{reasons-UORHJDHK.js → reasons-REEEQDAZ.js} +6 -5
- package/dist/bundle/{recognize-DAVNZND3.js → recognize-OZLFDJAT.js} +7 -7
- package/dist/bundle/remote-MDPYVCZB.js +35 -0
- package/dist/bundle/{rerank-CND2GVLZ.js → rerank-FLZWJNHA.js} +11 -11
- package/dist/bundle/{serve-ZHSPUIGX.js → serve-5UV5VLRV.js} +19 -19
- package/dist/bundle/{server-YMAK4LHC.js → server-53A2X2MK.js} +89 -70
- package/dist/bundle/server-5GMURMDE.js +97 -0
- package/dist/bundle/{services-ZILSFJ6E.js → services-XSMH7BXB.js} +109 -89
- package/dist/bundle/{sqlite-runtime-S5VPMZQH.js → sqlite-runtime-E3L7ENFU.js} +9 -9
- package/dist/bundle/{start-CR6X25RT.js → start-4S2VNR4J.js} +7 -7
- package/dist/bundle/{state-YFPHVIIJ.js → state-TQI4JSH7.js} +9 -9
- package/dist/bundle/{store-CL4ZJZRI.js → store-GS7PU6PJ.js} +38 -23
- package/dist/bundle/{store-UODRT6X4.js → store-VYJPL7MW.js} +36 -25
- package/dist/bundle/store-maintenance-command-JJVYUZMG.js +85 -0
- package/dist/bundle/surface-JC4XVMZR.js +83 -0
- package/dist/bundle/tokens-KJQ5EAPW.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,80 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
timezoneOf,
|
|
5
|
+
zonedMoment
|
|
6
|
+
} from "./chunk-4DK55MLP.js";
|
|
7
|
+
import {
|
|
8
|
+
CliError
|
|
9
|
+
} from "./chunk-IBQZT2YD.js";
|
|
10
|
+
import {
|
|
11
|
+
__name
|
|
12
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
13
|
+
|
|
14
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/domain/moment.js
|
|
15
|
+
var calendarMoment = /* @__PURE__ */ __name((wanted, flag, { zone, end = false } = {}) => {
|
|
16
|
+
try {
|
|
17
|
+
return zonedMoment(wanted, timezoneOf(zone), { start: 0, end: wanted.length }, { end });
|
|
18
|
+
} catch (error) {
|
|
19
|
+
if (!(error instanceof CliError))
|
|
20
|
+
throw error;
|
|
21
|
+
const alternative = error.details?.alternative;
|
|
22
|
+
throw new CliError("validation_error", `${flag}: "${wanted}" is not a time${alternative ? ` \u2014 ${alternative}` : ""}`);
|
|
23
|
+
}
|
|
24
|
+
}, "calendarMoment");
|
|
25
|
+
var dayIn = /* @__PURE__ */ __name((at, zone) => new Intl.DateTimeFormat("en-CA", { timeZone: zone, year: "numeric", month: "2-digit", day: "2-digit" }).format(at), "dayIn");
|
|
26
|
+
var MINUTE = 6e4;
|
|
27
|
+
var YEAR = 365 * 24 * 60 * MINUTE;
|
|
28
|
+
var RELATIVE = /^(\d+)(m|h|d)$/;
|
|
29
|
+
var RELATIVE_MS = { m: MINUTE, h: 60 * MINUTE, d: 24 * 60 * MINUTE };
|
|
30
|
+
var DATE_ALONE = /^\d{4}-\d{2}-\d{2}$/;
|
|
31
|
+
var ZONED = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
32
|
+
var dayWord = /* @__PURE__ */ __name((word, zone, now) => {
|
|
33
|
+
const today = new Intl.DateTimeFormat("en-CA", { timeZone: zone }).format(now);
|
|
34
|
+
if (word === "today")
|
|
35
|
+
return today;
|
|
36
|
+
const date = /* @__PURE__ */ new Date(`${today}T00:00:00Z`);
|
|
37
|
+
date.setUTCDate(date.getUTCDate() - 1);
|
|
38
|
+
return date.toISOString().slice(0, 10);
|
|
39
|
+
}, "dayWord");
|
|
40
|
+
var readMoment = /* @__PURE__ */ __name((typed, flag, { zone, end = false, now = Date.now(), direction = -1 } = {}) => {
|
|
41
|
+
const wanted = typed.trim();
|
|
42
|
+
const [, amount, unit] = RELATIVE.exec(wanted) ?? [];
|
|
43
|
+
if (amount && unit)
|
|
44
|
+
return { time: now + direction * Number(amount) * (RELATIVE_MS[unit] ?? 0), local: false, dateAlone: false };
|
|
45
|
+
const word = wanted.toLowerCase();
|
|
46
|
+
const date = word === "today" || word === "yesterday" ? dayWord(word, timezoneOf(zone), now) : wanted;
|
|
47
|
+
if (!/^\d{4}-\d{2}-\d{2}/.test(date))
|
|
48
|
+
return void 0;
|
|
49
|
+
const iso = date.replace(/^(\d{4}-\d{2}-\d{2}) +(?=\d)/, "$1T");
|
|
50
|
+
return {
|
|
51
|
+
time: calendarMoment(iso, flag, { ...zone === void 0 ? {} : { zone }, end }),
|
|
52
|
+
local: !ZONED.test(iso),
|
|
53
|
+
dateAlone: DATE_ALONE.test(iso)
|
|
54
|
+
};
|
|
55
|
+
}, "readMoment");
|
|
56
|
+
var lead = /* @__PURE__ */ __name((ms) => ms === MINUTE ? "a minute" : ms === YEAR ? "a year" : `${Math.ceil(ms / MINUTE)} minutes`, "lead");
|
|
57
|
+
var aheadOf = /* @__PURE__ */ __name((reference, flag, now = Date.now(), options = {}) => {
|
|
58
|
+
const { refuseDate = false, soonest, latest, ...at } = options;
|
|
59
|
+
const read = readMoment(reference, flag, { ...at, now, direction: 1 });
|
|
60
|
+
if (read === void 0)
|
|
61
|
+
throw new CliError("validation_error", `${flag} takes an ISO 8601 time, today, or 30m, 2h, 3d from now \u2014 not "${reference.trim()}"`);
|
|
62
|
+
if (refuseDate && read.dateAlone)
|
|
63
|
+
throw new CliError("validation_error", DATE_ALONE.test(reference.trim()) ? `${flag} needs a time of day as well: ${reference.trim()}T09:00` : `${flag} needs a time of day as well, like 2026-11-20T09:00`);
|
|
64
|
+
if (soonest === 0 && read.time <= now)
|
|
65
|
+
throw new CliError("validation_error", `${flag} is in the past`);
|
|
66
|
+
if (soonest !== void 0 && soonest > 0 && read.time < now + soonest)
|
|
67
|
+
throw new CliError("validation_error", `${flag} has to be at least ${lead(soonest)} from now`);
|
|
68
|
+
if (latest !== void 0 && read.time > now + latest)
|
|
69
|
+
throw new CliError("validation_error", `${flag} can be at most ${lead(latest)} from now`);
|
|
70
|
+
return read.time;
|
|
71
|
+
}, "aheadOf");
|
|
72
|
+
|
|
73
|
+
export {
|
|
74
|
+
calendarMoment,
|
|
75
|
+
dayIn,
|
|
76
|
+
MINUTE,
|
|
77
|
+
YEAR,
|
|
78
|
+
readMoment,
|
|
79
|
+
aheadOf
|
|
80
|
+
};
|
|
@@ -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.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/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
|
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
tagOf
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-X5CXANSA.js";
|
|
6
6
|
import {
|
|
7
7
|
QUERY_LIMITS,
|
|
8
8
|
parseLucene,
|
|
@@ -10,19 +10,19 @@ import {
|
|
|
10
10
|
queryError,
|
|
11
11
|
validateQuery,
|
|
12
12
|
walkQuery
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4DK55MLP.js";
|
|
14
14
|
import {
|
|
15
15
|
safeParse
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-OBDPKDGB.js";
|
|
17
17
|
import {
|
|
18
18
|
CliError,
|
|
19
19
|
isCliError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-IBQZT2YD.js";
|
|
21
21
|
import {
|
|
22
22
|
__name
|
|
23
23
|
} from "./chunk-ZVVMGPBJ.js";
|
|
24
24
|
|
|
25
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
25
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
26
26
|
var QUERY_VERSION = 1;
|
|
27
27
|
var QUERY_LIMITS2 = {
|
|
28
28
|
...QUERY_LIMITS,
|
|
@@ -51,6 +51,12 @@ function outOfTime(limitMs = QUERY_LIMITS2.milliseconds) {
|
|
|
51
51
|
}
|
|
52
52
|
__name(outOfTime, "outOfTime");
|
|
53
53
|
var isQueryLimit = /* @__PURE__ */ __name((error) => isCliError(error) && (error.details.reason === "query.too-large" || error.details.reason === "query.time-limit"), "isQueryLimit");
|
|
54
|
+
var SQLITE_TOO_LARGE = /nested too deep|too many terms in compound SELECT|Expression tree is too large|parser stack overflow/;
|
|
55
|
+
var sqliteLimit = /* @__PURE__ */ __name((error) => {
|
|
56
|
+
if (error instanceof Error && SQLITE_TOO_LARGE.test(error.message))
|
|
57
|
+
exhausted("nodes");
|
|
58
|
+
return error;
|
|
59
|
+
}, "sqliteLimit");
|
|
54
60
|
function exhausted(budget) {
|
|
55
61
|
throw new CliError("validation_error", `search exceeded its ${budget} budget \u2014 narrow the chat or date range`, {
|
|
56
62
|
reason: "query.too-large",
|
|
@@ -67,7 +73,7 @@ function tooWideTerm([term], budget) {
|
|
|
67
73
|
}
|
|
68
74
|
__name(tooWideTerm, "tooWideTerm");
|
|
69
75
|
|
|
70
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
76
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/search/lucene/registry.js
|
|
71
77
|
var FIELD_VERSION = 2;
|
|
72
78
|
var UNITS = {
|
|
73
79
|
"": 1,
|
|
@@ -647,7 +653,7 @@ var QUERY_OPERATORS = [
|
|
|
647
653
|
{ name: "boost / minimum / intervals", example: "invoice^2", semantics: "query.unsupported-operator" }
|
|
648
654
|
];
|
|
649
655
|
|
|
650
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
656
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/search/lucene/plain.js
|
|
651
657
|
var REPAIRED = /* @__PURE__ */ new Set([
|
|
652
658
|
"query.invalid-syntax",
|
|
653
659
|
"query.unclosed-literal",
|
|
@@ -691,7 +697,7 @@ var literal = /* @__PURE__ */ __name((word, keepParens, fields) => {
|
|
|
691
697
|
const prefix = FIELD_PREFIX.exec(word);
|
|
692
698
|
const field = prefix && fields.has(prefix[1] ?? "") ? prefix[0] : "";
|
|
693
699
|
const rest = word.slice(field.length);
|
|
694
|
-
const opening = keepParens ? /^[(+-]*/u.exec(rest)?.[0] ?? "" : "";
|
|
700
|
+
const opening = keepParens ? (field ? /^\(*/u : /^[(+-]*/u).exec(rest)?.[0] ?? "" : "";
|
|
695
701
|
const closing = keepParens ? /\)*$/u.exec(rest.slice(opening.length))?.[0] ?? "" : "";
|
|
696
702
|
const body = rest.slice(opening.length, rest.length - closing.length);
|
|
697
703
|
if (!body)
|
|
@@ -790,7 +796,7 @@ var plainQuery = /* @__PURE__ */ __name((text, fields = SEARCH_FIELDS) => {
|
|
|
790
796
|
return text;
|
|
791
797
|
}, "plainQuery");
|
|
792
798
|
|
|
793
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
799
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/search/fusion.js
|
|
794
800
|
var RRF_K = 60;
|
|
795
801
|
var fuseRanked = /* @__PURE__ */ __name((lists, facts) => {
|
|
796
802
|
const rows = lists.flatMap((list) => list.map((item, rank) => ({ item, vote: 1 / (RRF_K + rank + 1), ...facts(item) })));
|
|
@@ -807,6 +813,7 @@ export {
|
|
|
807
813
|
searchTimeLimit,
|
|
808
814
|
outOfTime,
|
|
809
815
|
isQueryLimit,
|
|
816
|
+
sqliteLimit,
|
|
810
817
|
exhausted,
|
|
811
818
|
tooWideTerm,
|
|
812
819
|
FIELD_VERSION,
|
|
@@ -12,7 +12,25 @@ import {
|
|
|
12
12
|
refuseWriteBeforeConnecting,
|
|
13
13
|
registerPrompts,
|
|
14
14
|
syncsFirst
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-X6HPQKAI.js";
|
|
16
|
+
import {
|
|
17
|
+
skillResources
|
|
18
|
+
} from "./chunk-KOI5G7NM.js";
|
|
19
|
+
import {
|
|
20
|
+
StdioServerTransport,
|
|
21
|
+
answeredWire,
|
|
22
|
+
serveStdio
|
|
23
|
+
} from "./chunk-43PCMVTZ.js";
|
|
24
|
+
import {
|
|
25
|
+
mcpHttpMarker
|
|
26
|
+
} from "./chunk-TFIAD57H.js";
|
|
27
|
+
import {
|
|
28
|
+
runCommandForAgent,
|
|
29
|
+
toolsFromCommands
|
|
30
|
+
} from "./chunk-FJQO5OHR.js";
|
|
31
|
+
import {
|
|
32
|
+
instructions
|
|
33
|
+
} from "./chunk-S3SLDYTU.js";
|
|
16
34
|
import {
|
|
17
35
|
BinaryResource,
|
|
18
36
|
Picture,
|
|
@@ -27,60 +45,56 @@ import {
|
|
|
27
45
|
outcomeOf,
|
|
28
46
|
outputOf,
|
|
29
47
|
registerCommands,
|
|
30
|
-
runCommandForAgent,
|
|
31
48
|
surfaceCommands,
|
|
32
49
|
tierOf,
|
|
33
50
|
tool,
|
|
34
|
-
toolKey
|
|
35
|
-
|
|
36
|
-
} from "./chunk-ASMMG72J.js";
|
|
51
|
+
toolKey
|
|
52
|
+
} from "./chunk-SM7Z2BQF.js";
|
|
37
53
|
import {
|
|
38
|
-
agentJson
|
|
39
|
-
|
|
40
|
-
} from "./chunk-3UGYFXH6.js";
|
|
54
|
+
agentJson
|
|
55
|
+
} from "./chunk-IPBYU43F.js";
|
|
41
56
|
import {
|
|
42
|
-
StdioServerTransport,
|
|
43
|
-
answeredWire,
|
|
44
57
|
callerOf,
|
|
45
|
-
callingAgent
|
|
46
|
-
|
|
47
|
-
} from "./chunk-YPFWNVHV.js";
|
|
48
|
-
import {
|
|
49
|
-
instructions
|
|
50
|
-
} from "./chunk-22QQUKWA.js";
|
|
58
|
+
callingAgent
|
|
59
|
+
} from "./chunk-A5XNUMW7.js";
|
|
51
60
|
import {
|
|
52
61
|
McpServer,
|
|
53
62
|
ResourceTemplate
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import {
|
|
56
|
-
mcpHttpMarker
|
|
57
|
-
} from "./chunk-HKY7X6NY.js";
|
|
63
|
+
} from "./chunk-PL5P7UKW.js";
|
|
58
64
|
import {
|
|
59
65
|
connectedFor
|
|
60
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-MA7ETVTZ.js";
|
|
61
67
|
import {
|
|
62
|
-
lackedNeed,
|
|
63
68
|
wholeList
|
|
64
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-3T7JIHSO.js";
|
|
70
|
+
import {
|
|
71
|
+
lackedNeed
|
|
72
|
+
} from "./chunk-PB6ACIME.js";
|
|
65
73
|
import {
|
|
66
|
-
capability,
|
|
67
|
-
dateWindow,
|
|
68
74
|
guardFor,
|
|
69
|
-
servicesFor
|
|
70
|
-
|
|
71
|
-
} from "./chunk-2PUNKUYJ.js";
|
|
75
|
+
servicesFor
|
|
76
|
+
} from "./chunk-SSFGSY77.js";
|
|
72
77
|
import {
|
|
73
78
|
imageSize
|
|
74
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-SODB63MR.js";
|
|
80
|
+
import {
|
|
81
|
+
dateWindow
|
|
82
|
+
} from "./chunk-S27UKJVL.js";
|
|
83
|
+
import {
|
|
84
|
+
storedDeps
|
|
85
|
+
} from "./chunk-3YCUYFTD.js";
|
|
86
|
+
import {
|
|
87
|
+
capability
|
|
88
|
+
} from "./chunk-G2KKMQRN.js";
|
|
75
89
|
import {
|
|
76
90
|
warmEmbedders
|
|
77
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-GYAPDUF5.js";
|
|
78
92
|
import {
|
|
79
93
|
stdinFieldOf
|
|
80
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-HPS2YGSZ.js";
|
|
81
95
|
import {
|
|
82
96
|
findCommand
|
|
83
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-IE6O7463.js";
|
|
84
98
|
import {
|
|
85
99
|
DEFAULT_OUTPUT_BYTES,
|
|
86
100
|
changesAuthorityAt,
|
|
@@ -97,35 +111,35 @@ import {
|
|
|
97
111
|
rootOf2 as rootOf,
|
|
98
112
|
sealed,
|
|
99
113
|
snakeKeys
|
|
100
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-JRED7BNX.js";
|
|
101
115
|
import {
|
|
102
116
|
withCaller
|
|
103
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-PMAV3RNP.js";
|
|
104
118
|
import {
|
|
105
119
|
readOnlyLockOf
|
|
106
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-5BHP4FVM.js";
|
|
107
121
|
import {
|
|
108
122
|
openStore
|
|
109
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-E2TMWONO.js";
|
|
110
124
|
import {
|
|
111
125
|
pdfPreviewLimits
|
|
112
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-YE7DJB3F.js";
|
|
113
127
|
import {
|
|
114
128
|
typedCommand
|
|
115
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-FKP4T7A4.js";
|
|
116
130
|
import {
|
|
117
131
|
isCliFailure
|
|
118
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-VBIZD5V5.js";
|
|
119
133
|
import {
|
|
120
134
|
timezoneOf
|
|
121
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-4DK55MLP.js";
|
|
122
136
|
import {
|
|
123
137
|
errorObjectOf,
|
|
124
138
|
mcpErrorResult
|
|
125
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-T3OK6AYZ.js";
|
|
126
140
|
import {
|
|
127
141
|
visibleControls
|
|
128
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-MDJUYCHT.js";
|
|
129
143
|
import {
|
|
130
144
|
description,
|
|
131
145
|
integer,
|
|
@@ -140,18 +154,18 @@ import {
|
|
|
140
154
|
regex,
|
|
141
155
|
strictObject,
|
|
142
156
|
string
|
|
143
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-OBDPKDGB.js";
|
|
144
158
|
import {
|
|
145
159
|
CliError
|
|
146
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-IBQZT2YD.js";
|
|
147
161
|
import {
|
|
148
162
|
__name
|
|
149
163
|
} from "./chunk-ZVVMGPBJ.js";
|
|
150
164
|
|
|
151
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
165
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
152
166
|
import { randomUUID } from "node:crypto";
|
|
153
167
|
|
|
154
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
168
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/agent-log.js
|
|
155
169
|
var agentLog = /* @__PURE__ */ __name((open) => {
|
|
156
170
|
let held;
|
|
157
171
|
return {
|
|
@@ -170,7 +184,7 @@ var agentLog = /* @__PURE__ */ __name((open) => {
|
|
|
170
184
|
};
|
|
171
185
|
}, "agentLog");
|
|
172
186
|
|
|
173
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
187
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/resources.js
|
|
174
188
|
var LISTED = 100;
|
|
175
189
|
var registerResources = /* @__PURE__ */ __name((server, session, { command, name, limit, recorded, withStore, messenger, guard, assertRead }) => {
|
|
176
190
|
server.registerResource("chat", new ResourceTemplate(`${command}://chat/{id}`, {
|
|
@@ -208,7 +222,7 @@ var registerResources = /* @__PURE__ */ __name((server, session, { command, name
|
|
|
208
222
|
});
|
|
209
223
|
}, "registerResources");
|
|
210
224
|
|
|
211
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
225
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/session.js
|
|
212
226
|
var HARMLESS = /* @__PURE__ */ new Set(["validation_error", "not_found", "permission_error", "confirmation_required", "rate_limited"]);
|
|
213
227
|
var harmless = /* @__PURE__ */ __name((code) => HARMLESS.has(code), "harmless");
|
|
214
228
|
var MessengerSession = class {
|
|
@@ -283,7 +297,7 @@ var MessengerSession = class {
|
|
|
283
297
|
}
|
|
284
298
|
};
|
|
285
299
|
|
|
286
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
300
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/tools/attachments.js
|
|
287
301
|
var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
288
302
|
const _command = messenger.app.command;
|
|
289
303
|
return {
|
|
@@ -337,7 +351,7 @@ var attachmentsTools = /* @__PURE__ */ __name((messenger) => {
|
|
|
337
351
|
};
|
|
338
352
|
}, "attachmentsTools");
|
|
339
353
|
|
|
340
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
354
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/tools/messages-photo.js
|
|
341
355
|
var PHOTO_LIMIT = 512 * 1024;
|
|
342
356
|
var IMAGE_TYPES = [
|
|
343
357
|
["image/jpeg", (b) => b[0] === 255 && b[1] === 216 && b[2] === 255],
|
|
@@ -393,7 +407,7 @@ var readUpTo = /* @__PURE__ */ __name(async (file, limit, saveIt) => {
|
|
|
393
407
|
return new Uint8Array(Buffer.concat(chunks));
|
|
394
408
|
}, "readUpTo");
|
|
395
409
|
|
|
396
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
410
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/tools/stats.js
|
|
397
411
|
var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
398
412
|
stats_charts: tool({
|
|
399
413
|
title: "A chart from a chat's statistics",
|
|
@@ -430,14 +444,14 @@ var statsTools = /* @__PURE__ */ __name((messenger) => ({
|
|
|
430
444
|
})
|
|
431
445
|
}), "statsTools");
|
|
432
446
|
|
|
433
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
447
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/tools.js
|
|
434
448
|
var pictureTools = /* @__PURE__ */ __name((messenger) => Object.fromEntries(Object.entries({
|
|
435
449
|
...messagesPhotoTools(messenger),
|
|
436
450
|
...attachmentsTools(messenger),
|
|
437
451
|
...statsTools(messenger)
|
|
438
452
|
}).map(([name, definition]) => [name, { ...definition, input: strictObject(definition.input.entries) }])), "pictureTools");
|
|
439
453
|
|
|
440
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.724.0_@wirecat+cli-base@0.130.0_commander@15.0.0_esbuild@0.28.2_typ_7eee7c5df32146a12ad3bd2be9b828b8/node_modules/@wirecat/cli-core/dist/mcp/server.js
|
|
441
455
|
var PER_RUN = /* @__PURE__ */ new Set([
|
|
442
456
|
"streams",
|
|
443
457
|
"stdin",
|
|
@@ -555,7 +569,8 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
555
569
|
...messenger.diagnose ? { [messenger.provider]: await messenger.diagnose(command, context) } : {}
|
|
556
570
|
}), "local")
|
|
557
571
|
});
|
|
558
|
-
const
|
|
572
|
+
const skills = messenger.skill ? skillResources(app, messenger.skill) : [];
|
|
573
|
+
const skill = skills[0];
|
|
559
574
|
const log = agentLog(() => openStore({ env: context.env, command: app.command, version: app.version }));
|
|
560
575
|
const audit = /* @__PURE__ */ __name(async (call, caller) => {
|
|
561
576
|
if (!recalledAccount(app, provider, settings.profile, context.env))
|
|
@@ -725,10 +740,8 @@ var createServer = /* @__PURE__ */ __name((command, context, messenger, sessionO
|
|
|
725
740
|
});
|
|
726
741
|
}, "assertRead")
|
|
727
742
|
});
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
server.registerResource(resource, uri, { title, description: description2, mimeType }, read);
|
|
731
|
-
}
|
|
743
|
+
for (const { uri, name: name2, title, description: description2, mimeType, read } of skills)
|
|
744
|
+
server.registerResource(name2, uri, { title, description: description2, mimeType }, read);
|
|
732
745
|
return server;
|
|
733
746
|
}, "build");
|
|
734
747
|
return { session, embedders, build, log, offered: [...commands.map((one) => one.command), ...pictured] };
|
|
@@ -754,7 +767,7 @@ var serveOverStdio = /* @__PURE__ */ __name(async (command, context, messenger,
|
|
|
754
767
|
}, "serveOverStdio");
|
|
755
768
|
var serveOverHttpUntilStopped = /* @__PURE__ */ __name(async (command, context, messenger, options, http) => {
|
|
756
769
|
const { session, embedders, build, log } = createServer(command, context, messenger, options);
|
|
757
|
-
const { serveOverHttp } = await import("./serve-
|
|
770
|
+
const { serveOverHttp } = await import("./serve-5UV5VLRV.js");
|
|
758
771
|
const appName = messenger.app.command;
|
|
759
772
|
const appEnvPrefix = messenger.app.envPrefix;
|
|
760
773
|
const listening = await serveOverHttp(build, {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createRequire as __bundleRequire } from "node:module";
|
|
2
|
+
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
__name
|
|
5
|
+
} from "./chunk-ZVVMGPBJ.js";
|
|
6
|
+
|
|
7
|
+
// node_modules/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.js
|
|
8
|
+
var re = /[ \t\n\f\r]/g;
|
|
9
|
+
function whitespace(thing) {
|
|
10
|
+
return typeof thing === "object" ? thing.type === "text" ? empty(thing.value) : false : empty(thing);
|
|
11
|
+
}
|
|
12
|
+
__name(whitespace, "whitespace");
|
|
13
|
+
function empty(value) {
|
|
14
|
+
return value.replace(re, "") === "";
|
|
15
|
+
}
|
|
16
|
+
__name(empty, "empty");
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
whitespace
|
|
20
|
+
};
|