@zibby/skills 0.1.14 → 0.1.15

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/browser.js CHANGED
@@ -1,3 +1,6 @@
1
- import{createRequire as w}from"module";import{join as f}from"path";var d=w(import.meta.url);function v(){if(process.env.MCP_BROWSER_PATH)return process.env.MCP_BROWSER_PATH;try{return d.resolve("@zibby/mcp-browser/dist/bin/mcp-browser-zibby.js")}catch{return null}}var a="1280x720",c="1280x720";function S({headless:e}={}){if(e===!0)return!0;if(e===!1)return!1;let r=process.env.ZIBBY_HEADLESS;return r==="1"||String(r).toLowerCase()==="true"}function p(e,r){let t=(e||[]).filter(s=>s!=="--headless");return r?[...t,"--headless"]:t}var m={id:"browser",serverName:"playwright",cursorKey:"playwright-official",allowedTools:["mcp__playwright__*"],sessionEnvKey:"ZIBBY_SESSION_INFO",description:"Playwright Browser MCP Server",envKeys:[],tools:[],promptFragment:`Execute this test using the browser tools available to you. You MUST make actual browser tool calls \u2014 do not fabricate results.
1
+ import{createRequire as c}from"module";import{join as u}from"path";var b=c(import.meta.url);function w(){if(process.env.MCP_BROWSER_PATH)return process.env.MCP_BROWSER_PATH;try{return b.resolve("@zibby/mcp-browser/dist/bin/mcp-browser-zibby.js")}catch{return null}}var p="1280x720",f="1280x720";function y({headless:e}={}){if(e===!0)return!0;if(e===!1)return!1;let r=process.env.ZIBBY_HEADLESS;return r==="1"||String(r).toLowerCase()==="true"}function d(e,r){let o=(e||[]).filter(s=>s!=="--headless");return r?[...o,"--headless"]:o}var _={id:"browser",serverName:"playwright",cursorKey:"playwright-official",allowedTools:["mcp__playwright__*"],sessionEnvKey:"ZIBBY_SESSION_INFO",description:"Playwright Browser MCP Server",envKeys:[],tools:[],promptFragment:`Execute this test using the browser tools available to you. You MUST make actual browser tool calls \u2014 do not fabricate results.
2
2
  If you DO NOT have access to browser tools \u2192 return {"success": false, "steps": [], "browserClosed": false, "notes": "No browser tools available"}.
3
- DO NOT return success: true unless you ACTUALLY called browser tools.`,resolve({sessionPath:e,workspace:r,nodeName:t,headless:s}={}){let i=v(),n=e&&t?f(e,t):null,l=n||e||r||"test-results",u=S({headless:s}),o={};return n&&(o.ZIBBY_NODE_SESSION_PATH=n),e&&(o.ZIBBY_SESSION_PATH=e),i?{command:"node",args:p([i,"--isolated",`--save-video=${a}`,`--viewport-size=${c}`,`--output-dir=${l}`],u),env:o}:{command:"npx",args:p(["-y","@playwright/mcp","--isolated",`--save-video=${a}`,`--viewport-size=${c}`,"--output-dir",l],u),env:o}}};export{m as browserSkill};
3
+ DO NOT return success: true unless you ACTUALLY called browser tools.`,resolve({sessionPath:e,workspace:r,nodeName:o,headless:s}={}){let i=w(),t=e&&o?u(e,o):null,n=t||e||r||"test-results",a=y({headless:s}),l={};if(t&&(l.ZIBBY_NODE_SESSION_PATH=t),e&&(l.ZIBBY_SESSION_PATH=e),!i)throw new Error(`@zibby/mcp-browser is not installed.
4
+ Cloud: verify the Fargate image has it (packages/Dockerfile installs it globally alongside @zibby/cli).
5
+ Local: \`npm install @zibby/mcp-browser\` in your workflow, or use the global @zibby/cli install (which pulls it transitively).
6
+ Override: set MCP_BROWSER_PATH to the path of mcp-browser-zibby.js.`);return{command:"node",args:d([i,"--isolated",`--save-video=${p}`,`--viewport-size=${f}`,`--output-dir=${n}`],a),env:l}}};export{_ as browserSkill};