@buoy-gg/mcp 7.0.63 → 7.0.65
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/dist/chunk-QW2BPKIP.mjs +2 -0
- package/dist/chunk-SWS5NTYM.mjs +6 -0
- package/dist/{chunk-PGOSBKGQ.mjs → chunk-SY6CJRCL.mjs} +118 -118
- package/dist/{chunk-G5SISI2H.mjs → chunk-WVVRNHPL.mjs} +1 -1
- package/dist/cli.js +170 -163
- package/dist/cli.mjs +6 -5
- package/dist/flowRun-NGLENLWW.mjs +2 -0
- package/dist/index.js +36 -35
- package/dist/index.mjs +1 -1
- package/dist/simFarm-HLOW7LIW.mjs +1 -0
- package/dist/src-XWK66ACL.mjs +1 -0
- package/package.json +5 -4
- package/dist/flowRun-UYRYZVRR.mjs +0 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createRequire as e}from"module";const L=e(import.meta.url);import{runInit as r}from"./chunk-
|
|
1
|
+
import{createRequire as e}from"module";const L=e(import.meta.url);import{runInit as r}from"./chunk-WVVRNHPL.mjs";import{ALL_DEVICES as o,BROKER_PORT as t,BROKER_URL as i,DASHBOARD_NAME as s,DEFAULT_ACTION_TIMEOUT_MS as a,DEFAULT_SNAPSHOT_TIMEOUT_MS as T,PACKAGE_NAME as m,SyncClient as n,VERSION as g,buildAutomationConfig as l,compareReportStats as R,createMcpServer as p,estimateBatchMs as E,formatRankingMarkdown as _,getUpdateNotice as c,rankBatchFromIndex as u,registerConsoleTools as A,registerEventsTools as S,registerGenericTools as M,registerJotaiTools as O,registerPerfMonitorTools as C,registerReactQueryTools as I,registerReduxTools as d,registerRoutesTools as f,registerScreenshotTools as N,registerStorageTools as U,registerZustandTools as B}from"./chunk-SY6CJRCL.mjs";import"./chunk-QW2BPKIP.mjs";import"./chunk-6EOB4FHJ.mjs";import"./chunk-SWS5NTYM.mjs";import"./chunk-OPHPYPJD.mjs";import"./chunk-MTTWR4T7.mjs";export{o as ALL_DEVICES,t as BROKER_PORT,i as BROKER_URL,s as DASHBOARD_NAME,a as DEFAULT_ACTION_TIMEOUT_MS,T as DEFAULT_SNAPSHOT_TIMEOUT_MS,m as PACKAGE_NAME,n as SyncClient,g as VERSION,l as buildAutomationConfig,R as compareReportStats,p as createMcpServer,E as estimateBatchMs,_ as formatRankingMarkdown,c as getUpdateNotice,u as rankBatchFromIndex,A as registerConsoleTools,S as registerEventsTools,M as registerGenericTools,O as registerJotaiTools,C as registerPerfMonitorTools,I as registerReactQueryTools,d as registerReduxTools,f as registerRoutesTools,N as registerScreenshotTools,U as registerStorageTools,B as registerZustandTools,r as runInit};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as r}from"module";const t=r(import.meta.url);import{registerSimFarmTools as e,runFarmd as o}from"./chunk-QW2BPKIP.mjs";import"./chunk-6EOB4FHJ.mjs";import"./chunk-SWS5NTYM.mjs";import"./chunk-MTTWR4T7.mjs";export{e as registerSimFarmTools,o as runFarmd};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createRequire as r}from"module";const C=r(import.meta.url);import{ALWAYS_ENABLED as e,DEFAULT_SETTINGS as o,Engine as a,FarmClient as t,FarmError as i,PROTOCOL_VERSION as m,SLIM_CATEGORIES as l,STATE_VERSION as s,SimctlHost as E,Store as f,connectFarm as n,crashLoop as p,defaultSeedDir as S,farmDefaults as d,farmHome as u,farmOwnedUdids as L,findExampleBuild as R,findRepoRoot as c,nodeLauncher as O,paths as T,profileHash as _,profileLabels as A,slimLabels as F,startFarmd as I}from"./chunk-SWS5NTYM.mjs";import"./chunk-MTTWR4T7.mjs";export{e as ALWAYS_ENABLED,o as DEFAULT_SETTINGS,a as Engine,t as FarmClient,i as FarmError,m as PROTOCOL_VERSION,l as SLIM_CATEGORIES,s as STATE_VERSION,E as SimctlHost,f as Store,n as connectFarm,p as crashLoop,S as defaultSeedDir,d as farmDefaults,u as farmHome,L as farmOwnedUdids,R as findExampleBuild,c as findRepoRoot,O as nodeLauncher,T as paths,_ as profileHash,A as profileLabels,F as slimLabels,I as startFarmd};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/mcp",
|
|
3
3
|
"mcpName": "io.github.Buoy-gg/mcp",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.65",
|
|
5
5
|
"buoy": {
|
|
6
6
|
"dashboardAuthVersion": 1
|
|
7
7
|
},
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"socket.io-client": "^4.8.1",
|
|
36
36
|
"ws": "^8.18.0",
|
|
37
37
|
"zod": "^3.25.0",
|
|
38
|
-
"@buoy-gg/
|
|
39
|
-
"@buoy-gg/
|
|
38
|
+
"@buoy-gg/sync-broker": "^7.0.65",
|
|
39
|
+
"@buoy-gg/license": "^7.0.65"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/node": "^22.0.0",
|
|
@@ -46,7 +46,8 @@
|
|
|
46
46
|
"pngjs": "7.0.0",
|
|
47
47
|
"rimraf": "^5.0.0",
|
|
48
48
|
"tsup": "^8.5.1",
|
|
49
|
-
"typescript": "~5.8.3"
|
|
49
|
+
"typescript": "~5.8.3",
|
|
50
|
+
"@buoy-gg/sim-farm": "7.0.65"
|
|
50
51
|
},
|
|
51
52
|
"engines": {
|
|
52
53
|
"node": ">=18"
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{createRequire as v}from"module";const E=v(import.meta.url);import{SyncClient as y,createMcpServer as R}from"./chunk-PGOSBKGQ.mjs";import"./chunk-6EOB4FHJ.mjs";import"./chunk-OPHPYPJD.mjs";import"./chunk-MTTWR4T7.mjs";import{promises as S}from"fs";import $ from"path";import{Client as _}from"@modelcontextprotocol/sdk/client/index.js";import{InMemoryTransport as B}from"@modelcontextprotocol/sdk/inMemory.js";function P(e){const o={names:[]};for(let n=0;n<e.length;n++){const t=e[n];if(t==="--device")o.deviceId=e[++n];else if(t==="--update-snapshots")o.updateSnapshots=true;else if(t==="--json")o.json=true;else if(t==="--wait")o.waitMs=Number(e[++n])*1e3;else if(t==="--all")continue;else if(!t.startsWith("--"))o.names.push(t);else throw new Error(`Unknown option ${t}.`)}return o}async function I(){const e=$.join(process.cwd(),".buoy","flows");return(await S.readdir(e).catch(()=>[])).filter(o=>o.endsWith(".json")).map(o=>o.replace(/\.json$/,"")).sort()}async function g(e,o=n=>process.stderr.write(`${n}
|
|
2
|
-
`)){const n=e.names.length?e.names:await I();if(n.length===0)throw new Error('No saved flows. Save one with run_flow and save:"name", or pass a flow name.');const t=process.env.BUOY_BROKER_PORT;const s=new y({url:process.env.BUOY_BROKER_URL,port:t?Number(t):void 0,autoSpawnBroker:process.env.BUOY_NO_SPAWN!=="1"});const p=R(s);const[w,f]=B.createLinkedPair();const i=new _({name:"buoy-flow-run",version:"1"});try{await p.connect(f);await i.connect(w);await s.start();const a=Date.now()+(e.waitMs??6e4);while(Date.now()<a&&!s.connectedDevices().some(r=>r.isPro&&(!e.deviceId||r.deviceId===e.deviceId))){await new Promise(r=>setTimeout(r,500))}if(!s.connectedDevices().some(r=>r.isPro)){throw new Error("No Buoy Pro app connected. Start the app (with Buoy) on a simulator or device, then run again.")}const u=[];for(const r of n){const m=Date.now();o(`\u25B6 ${r}`);const l=await i.callTool({name:"run_flow",arguments:{flow:r,include:"none",...e.deviceId?{deviceId:e.deviceId}:{},...e.updateSnapshots?{updateSnapshots:true}:{}}},void 0,{timeout:10*6e4});const h=(l.content??[]).filter(c=>c.type==="text").map(c=>c.text).join("\n");const d=l.isError!==true;u.push({name:r,passed:d,ms:Date.now()-m,report:h});o(`${d?"\u2713":"\u2717"} ${r} (${((Date.now()-m)/1e3).toFixed(1)}s)`)}return u}finally{await i.close().catch(()=>void 0);await Promise.race([s.stop().catch(()=>void 0),new Promise(a=>setTimeout(a,2e3))])}}function j(e){const o=e.filter(t=>!t.passed);const n=[`${e.length-o.length} of ${e.length} flows passed.`];for(const t of o){n.push("",`\u2717 ${t.name}`,t.report.trim(),` Rerun: npx @buoy-gg/mcp flow run ${t.name}`)}return n.join("\n")}export{j as formatFlowResults,P as parseFlowRunArgs,g as runFlows};
|