@zibby/skills 0.1.6 → 0.1.8
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 +2 -2
- package/dist/memory.js +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{createRequire as w}from"module";import{join as f}from"path";const
|
|
1
|
+
import{createRequire as w}from"module";import{join as f}from"path";const 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}}const a="1280x720",c="1280x720";function S({headless:e}={}){if(e===!0)return!0;if(e===!1)return!1;const r=process.env.ZIBBY_HEADLESS;return r==="1"||String(r).toLowerCase()==="true"}function p(e,r){const t=(e||[]).filter(s=>s!=="--headless");return r?[...t,"--headless"]:t}const 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.
|
|
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:
|
|
3
|
+
DO NOT return success: true unless you ACTUALLY called browser tools.`,resolve({sessionPath:e,workspace:r,nodeName:t,headless:s}={}){const 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};
|
package/dist/memory.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as s}from"module";import{execFileSync as n}from"child_process";import{join as o}from"path";import{existsSync as a}from"fs";const c=s(import.meta.url);function m(){if(process.env.MCP_MEMORY_PATH)return process.env.MCP_MEMORY_PATH;try{return c.resolve("@zibby/mcp-
|
|
1
|
+
import{createRequire as s}from"module";import{execFileSync as n}from"child_process";import{join as o}from"path";import{existsSync as a}from"fs";const c=s(import.meta.url);function m(){if(process.env.MCP_MEMORY_PATH)return process.env.MCP_MEMORY_PATH;try{return c.resolve("@zibby/memory/mcp-server")}catch{return null}}const d={id:"memory",serverName:"memory",allowedTools:["mcp__memory__*"],envKeys:[],description:"Zibby Memory MCP Server (test history, selectors, page model)",async middleware(){try{const{createMemoryMiddleware:e}=await import("@zibby/memory");return e()}catch{return null}},promptFragment:`BEFORE executing browser actions:
|
|
2
2
|
- Review any test memory/history above. Prefer selectors proven to work.
|
|
3
3
|
- If a previous run failed, avoid the same approach.
|
|
4
4
|
- After setup/login completes, navigate directly to the target page instead of clicking through menus.
|
package/dist/package.json
CHANGED