@zibby/core 0.1.41 → 0.1.42
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/agents/base.js +62 -68
- package/dist/framework/agents/assistant-strategy.js +5 -5
- package/dist/framework/agents/claude-strategy.js +7 -7
- package/dist/framework/agents/codex-strategy.js +6 -6
- package/dist/framework/agents/cursor-strategy.js +28 -28
- package/dist/framework/agents/gemini-strategy.js +9 -9
- package/dist/framework/agents/index.js +40 -40
- package/dist/framework/code-generator.js +1 -145
- package/dist/framework/context-loader.js +1 -5
- package/dist/framework/graph-compiler.js +1 -150
- package/dist/framework/graph.js +59 -65
- package/dist/framework/index.js +73 -96
- package/dist/framework/node-registry.js +1 -136
- package/dist/framework/node.js +42 -44
- package/dist/framework/output-parser.js +1 -3
- package/dist/framework/skill-registry.js +1 -1
- package/dist/framework/state.js +1 -1
- package/dist/framework/tool-resolver.js +1 -1
- package/dist/index.js +101 -107
- package/dist/package.json +2 -1
- package/dist/utils/mcp-config-writer.js +4 -4
- package/package.json +2 -1
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zibby/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.42",
|
|
4
4
|
"description": "Core test automation engine with multi-agent and multi-MCP support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"node": ">=18.0.0"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
+
"@zibby/workflow": "^0.1.0",
|
|
83
84
|
"@anthropic-ai/claude-agent-sdk": "^0.2.104",
|
|
84
85
|
"@anthropic-ai/sdk": "^0.88.0",
|
|
85
86
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{readFileSync as
|
|
2
|
-
`);r.push(`### ${
|
|
3
|
-
${
|
|
1
|
+
import{readFileSync as C,writeFileSync as S,existsSync as g,mkdirSync as k}from"node:fs";import{join as d}from"node:path";import{homedir as v}from"node:os";import{registerSkill as P,getSkill as a,hasSkill as $,getAllSkills as w,listSkillIds as A}from"@zibby/workflow";var f=d(v(),".cursor","mcp.json");function y(o){let r=new Set;if(!o||typeof o!="object")return r;for(let e of Object.keys(o)){let s=o[e];if(Array.isArray(s.tools))for(let t of s.tools)r.add(t)}return r}function T(o){let r=y(o);if(r.size===0)return console.log("[MCP Config] No tools requested \u2014 skipping MCP config write"),!1;let e={mcpServers:{}};try{g(f)&&(e=JSON.parse(C(f,"utf-8")),e.mcpServers||(e.mcpServers={}))}catch(i){console.warn(`[MCP Config] Could not read existing config, starting fresh: ${i.message}`),e={mcpServers:{}}}let s=0;for(let i of r){let n=a(i);if(!n){console.log(`[MCP Config] Unknown skill "${i}" \u2014 skipping`);continue}if(e.mcpServers[n.serverName]){console.log(`[MCP Config] Server "${n.serverName}" already configured \u2014 skipping`);continue}let p={},u=!1;for(let c of n.envKeys||[]){let m=process.env[c];if(!m){console.warn(`[MCP Config] Missing env var ${c} for skill "${i}" \u2014 skipping server`),u=!0;break}p[c]=m}if(u)continue;let l=(n.args||[]).map(c=>c);if(n.command==="node"&&l.length>0&&!g(l[0])){console.warn(`[MCP Config] Binary not found at ${l[0]} for "${i}" \u2014 skipping server`);continue}e.mcpServers[n.serverName]={command:n.command,args:l,env:p,description:n.description},s++,console.log(`[MCP Config] Added "${n.serverName}" server`)}if(s===0)return console.log("[MCP Config] No new MCP servers to add"),!1;let t=d(v(),".cursor");return g(t)||k(t,{recursive:!0}),S(f,JSON.stringify(e,null,2),"utf-8"),console.log(`[MCP Config] Wrote ${f} with ${Object.keys(e.mcpServers).length} server(s)`),!0}function b(o){if(!Array.isArray(o)||o.length===0)return"";let r=[];for(let e of o){let s=a(e);if(!s)continue;let t=(s.tools||[]).map(i=>`- ${i.name}: ${i.description}`).join(`
|
|
2
|
+
`);r.push(`### ${s.description}
|
|
3
|
+
${t}`)}return r.length===0?"":`
|
|
4
4
|
|
|
5
5
|
AVAILABLE MCP TOOLS:
|
|
6
6
|
You have access to the following MCP tools. Use them when your task requires interacting with these services.
|
|
7
7
|
|
|
8
8
|
${r.join(`
|
|
9
9
|
|
|
10
|
-
`)}`}export{
|
|
10
|
+
`)}`}export{y as collectRequiredTools,b as getToolDescriptions,T as writeMcpConfig};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zibby/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.42",
|
|
4
4
|
"description": "Core test automation engine with multi-agent and multi-MCP support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
"node": ">=18.0.0"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
+
"@zibby/workflow": "^0.1.0",
|
|
83
84
|
"@anthropic-ai/claude-agent-sdk": "^0.2.104",
|
|
84
85
|
"@anthropic-ai/sdk": "^0.88.0",
|
|
85
86
|
"@modelcontextprotocol/sdk": "^1.29.0",
|