@zibby/core 2.0.16 → 2.0.17
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/function-bridge.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var
|
|
2
|
+
var b=Object.defineProperty;var m=(e,r,t)=>()=>{if(t)throw t[0];try{return e&&(r=e(e=0)),r}catch(o){throw t=[o],o}};var g=(e,r)=>{for(var t in r)b(e,t,{get:r[t],enumerable:!0})};var l={};g(l,{getHandlers:()=>h,registerHandlers:()=>y});function y(e,r,t){c.set(e,{handlers:r,tools:t})}function h(e){return c.get(e)||null}var a,c,p=m(()=>{a=Symbol.for("zibby.functionSkillRegistry"),c=globalThis[a]||(globalThis[a]=new Map)});import{McpServer as S}from"@modelcontextprotocol/sdk/server/mcp.js";import{StdioServerTransport as k}from"@modelcontextprotocol/sdk/server/stdio.js";import{z as i}from"zod";var[d,s]=process.argv.slice(2);(!d||!s)&&(console.error("Usage: node function-bridge.js <modulePath> <skillId>"),process.exit(1));await import(d);var{getHandlers:x}=await Promise.resolve().then(()=>(p(),l)),u=x(s);u||(console.error(`No handlers registered for skill "${s}". Did the module call functionSkill()?`),process.exit(1));var{handlers:w,tools:j}=u;function v(e){if(!e||e.type!=="object")return i.object({});let r={};for(let[t,o]of Object.entries(e.properties||{})){let n;switch(o.type){case"number":case"integer":n=i.number();break;case"boolean":n=i.boolean();break;case"array":n=i.array(i.any());break;default:n=i.string();break}o.description&&(n=n.describe(o.description)),e.required?.includes(t)||(n=n.optional()),r[t]=n}return i.object(r)}var f=new S({name:`zibby-fn-${s}`,version:"1.0.0"},{capabilities:{tools:{}}});for(let e of j){let r=v(e.input_schema);f.registerTool(e.name,{title:e.name,description:e.description||"",inputSchema:r},async t=>{try{let o=await w[e.name](t);return{content:[{type:"text",text:typeof o=="string"?o:JSON.stringify(o,null,2)}]}}catch(o){return{content:[{type:"text",text:`Error: ${o.message}`}],isError:!0}}})}var T=new k;await f.connect(T);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var e=Symbol.for("zibby.functionSkillRegistry"),n=globalThis[e]||(globalThis[e]=new Map);function o(t,r,l){n.set(t,{handlers:r,tools:l})}function i(t){return n.get(t)||null}export{i as getHandlers,o as registerHandlers};
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zibby/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.17",
|
|
4
4
|
"description": "Core test automation engine with multi-agent and multi-MCP support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
71
71
|
"@openai/codex-sdk": "^0.144.6",
|
|
72
72
|
"@playwright/mcp": "^0.0.70",
|
|
73
|
-
"@zibby/agent-workflow": "2.0.
|
|
74
|
-
"@zibby/mcp-browser": "2.0.
|
|
75
|
-
"@zibby/skill-ids": "2.0.
|
|
73
|
+
"@zibby/agent-workflow": "2.0.17",
|
|
74
|
+
"@zibby/mcp-browser": "2.0.17",
|
|
75
|
+
"@zibby/skill-ids": "2.0.17",
|
|
76
76
|
"acorn": "^8.15.0",
|
|
77
77
|
"acorn-walk": "^8.3.5",
|
|
78
78
|
"axios": "^1.15.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zibby/core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.17",
|
|
4
4
|
"description": "Core test automation engine with multi-agent and multi-MCP support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
71
71
|
"@openai/codex-sdk": "^0.144.6",
|
|
72
72
|
"@playwright/mcp": "^0.0.70",
|
|
73
|
-
"@zibby/agent-workflow": "2.0.
|
|
74
|
-
"@zibby/mcp-browser": "2.0.
|
|
75
|
-
"@zibby/skill-ids": "2.0.
|
|
73
|
+
"@zibby/agent-workflow": "2.0.17",
|
|
74
|
+
"@zibby/mcp-browser": "2.0.17",
|
|
75
|
+
"@zibby/skill-ids": "2.0.17",
|
|
76
76
|
"acorn": "^8.15.0",
|
|
77
77
|
"acorn-walk": "^8.3.5",
|
|
78
78
|
"axios": "^1.15.0",
|