evolve-sdk 0.0.13__tar.gz → 0.0.14__tar.gz
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.
- {evolve_sdk-0.0.13/evolve_sdk.egg-info → evolve_sdk-0.0.14}/PKG-INFO +1 -1
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/bridge/dist/bridge.bundle.cjs +1 -1
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/__init__.py +1 -1
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14/evolve_sdk.egg-info}/PKG-INFO +1 -1
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/pyproject.toml +1 -1
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/LICENSE +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/MANIFEST.in +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/README.md +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/bridge/__init__.py +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/agent.py +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/bridge.py +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/composio.py +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/config.py +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/pipeline/__init__.py +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/pipeline/pipeline.py +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/pipeline/types.py +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/prompts/__init__.py +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/prompts/agent_md/judge.md +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/prompts/agent_md/reduce.md +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/prompts/agent_md/verify.md +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/prompts/user/judge.md +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/prompts/user/retry_feedback.md +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/prompts/user/verify.md +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/results.py +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/retry.py +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/schema.py +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/swarm/__init__.py +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/swarm/results.py +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/swarm/swarm.py +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/swarm/types.py +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve/utils.py +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve_sdk.egg-info/SOURCES.txt +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve_sdk.egg-info/dependency_links.txt +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve_sdk.egg-info/requires.txt +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/evolve_sdk.egg-info/top_level.txt +0 -0
- {evolve_sdk-0.0.13 → evolve_sdk-0.0.14}/setup.cfg +0 -0
|
@@ -695,7 +695,7 @@ defaults to false`)}),Tqn=Ve.object({connected:Ve.boolean(),toolkit:Ve.string(),
|
|
|
695
695
|
`)].filter(c=>c.length>0);await e.files.write(n,a.join(`
|
|
696
696
|
|
|
697
697
|
`)+`
|
|
698
|
-
`)}async function iCn(e,t,r,n){if(!(!n||Object.keys(n).length===0))switch(e){case"claude":await eCn(t,r,n);break;case"codex":await nCn(t,n);break;case"gemini":await tCn(t,n);break;case"qwen":await rCn(t,n);break;default:throw new Error(`Unknown agent type for MCP config: ${e}`)}}function sCn(){let e={};return function(c){let l;try{l=JSON.parse(c)}catch{return null}if(l._meta||l._prompt)return null;let u=l.session_id;switch(l.type){case"system":return null;case"assistant":return t(l.message?.content,"assistant",u);case"user":{let d=l.message?.content;return typeof d=="string"||Array.isArray(d)&&d.length===1&&d[0].type==="text"?null:t(d,"user",u)}case"result":return null;default:return null}};function t(c,l,u){if(typeof c=="string")return l==="user"?null:[{sessionId:u,update:{sessionUpdate:"agent_message_chunk",content:{type:"text",text:c}}}];if(!c||!Array.isArray(c))return null;let d=[];for(let p of c){let f=null;switch(p.type){case"text":case"text_delta":if(l==="user")break;f={sessionUpdate:"agent_message_chunk",content:{type:"text",text:p.text}};break;case"image":if(l==="user")break;f={sessionUpdate:"agent_message_chunk",content:{type:"image",data:p.source?.type==="base64"?p.source.data:"",mimeType:p.source?.type==="base64"?p.source.media_type:"",uri:p.source?.type==="url"?p.source.url:void 0}};break;case"thinking":case"thinking_delta":f={sessionUpdate:"agent_thought_chunk",content:{type:"text",text:p.thinking}};break;case"tool_use":case"server_tool_use":case"mcp_tool_use":{if(e[p.id]=p,p.name==="TodoWrite")Array.isArray(p.input?.todos)&&(f={sessionUpdate:"plan",entries:o(p.input)});else{let h=r(p);f={sessionUpdate:"tool_call",toolCallId:p.id,status:"pending",...h}}break}case"tool_result":case"tool_search_tool_result":case"web_fetch_tool_result":case"web_search_tool_result":case"code_execution_tool_result":case"bash_code_execution_tool_result":case"text_editor_code_execution_tool_result":case"mcp_tool_result":{let h=e[p.tool_use_id];if(!h||(delete e[p.tool_use_id],h.name==="TodoWrite"))break;f={sessionUpdate:"tool_call_update",toolCallId:p.tool_use_id,status:"is_error"in p&&p.is_error?"failed":"completed",...n(p,h)};break}}f&&d.push({sessionId:u,update:f})}return d.length>0?d:null}function r(c){let l=c.name,u=c.input||{};switch(l){case"Task":return{title:u.description||"Task",kind:"think",content:u.prompt?[{type:"content",content:{type:"text",text:u.prompt}}]:[],rawInput:u};case"NotebookRead":return{title:u.notebook_path?`Read Notebook ${u.notebook_path}`:"Read Notebook",kind:"read",content:[],locations:u.notebook_path?[{path:u.notebook_path}]:[],rawInput:u};case"NotebookEdit":return{title:u.notebook_path?`Edit Notebook ${u.notebook_path}`:"Edit Notebook",kind:"edit",content:u.new_source?[{type:"content",content:{type:"text",text:u.new_source}}]:[],locations:u.notebook_path?[{path:u.notebook_path}]:[],rawInput:u};case"Bash":return{title:u.command?"`"+u.command.replaceAll("`","\\`")+"`":"Terminal",kind:"execute",content:u.description?[{type:"content",content:{type:"text",text:u.description}}]:[],rawInput:u};case"BashOutput":return{title:"Tail Logs",kind:"execute",content:[],rawInput:u};case"KillShell":return{title:"Kill Process",kind:"execute",content:[],rawInput:u};case"Read":{let d="";return u.limit?d=" ("+((u.offset??0)+1)+" - "+((u.offset??0)+u.limit)+")":u.offset&&(d=" (from line "+(u.offset+1)+")"),{title:"Read "+(u.file_path??"File")+d,kind:"read",content:[],locations:u.file_path?[{path:u.file_path,line:u.offset??0}]:[],rawInput:u}}case"LS":return{title:u.path?`List \`${u.path}\` directory`:"List current directory",kind:"search",content:[],locations:[],rawInput:u};case"Edit":{let d=u.file_path;return{title:d?`Edit \`${d}\``:"Edit",kind:"edit",content:d?[{type:"diff",path:d,oldText:u.old_string??null,newText:u.new_string??""}]:[],locations:d?[{path:d}]:[],rawInput:u}}case"Write":return{title:u.file_path?`Write ${u.file_path}`:"Write",kind:"edit",content:u.file_path?[{type:"diff",path:u.file_path,oldText:null,newText:u.content??""}]:[],locations:u.file_path?[{path:u.file_path}]:[],rawInput:u};case"Glob":{let d="Find";return u.path&&(d+=` \`${u.path}\``),u.pattern&&(d+=` \`${u.pattern}\``),{title:d,kind:"search",content:[],locations:u.path?[{path:u.path}]:[],rawInput:u}}case"Grep":{let d="grep";return u["-i"]&&(d+=" -i"),u["-n"]&&(d+=" -n"),u["-A"]!==void 0&&(d+=` -A ${u["-A"]}`),u["-B"]!==void 0&&(d+=` -B ${u["-B"]}`),u["-C"]!==void 0&&(d+=` -C ${u["-C"]}`),u.output_mode==="files_with_matches"?d+=" -l":u.output_mode==="count"&&(d+=" -c"),u.head_limit!==void 0&&(d+=` | head -${u.head_limit}`),u.glob&&(d+=` --include="${u.glob}"`),u.type&&(d+=` --type=${u.type}`),u.multiline&&(d+=" -P"),d+=` "${u.pattern??""}"`,u.path&&(d+=` ${u.path}`),{title:d,kind:"search",content:[],rawInput:u}}case"WebFetch":return{title:u.url?`Fetch ${u.url}`:"Fetch",kind:"fetch",content:u.prompt?[{type:"content",content:{type:"text",text:u.prompt}}]:[],rawInput:u};case"WebSearch":{let d=`"${u.query??""}"`;return u.allowed_domains?.length>0&&(d+=` (allowed: ${u.allowed_domains.join(", ")})`),u.blocked_domains?.length>0&&(d+=` (blocked: ${u.blocked_domains.join(", ")})`),{title:d,kind:"fetch",content:[],rawInput:u}}case"TodoWrite":return{title:Array.isArray(u.todos)?`Update TODOs: ${u.todos.map(d=>d.content).join(", ")}`:"Update TODOs",kind:"think",content:[],rawInput:u};case"ExitPlanMode":return{title:"Ready to code?",kind:"switch_mode",content:u.plan?[{type:"content",content:{type:"text",text:u.plan}}]:[],rawInput:u};default:if(l?.startsWith("mcp__")){let d=l.split("__"),p=d[1]||"mcp",f=d.slice(2).join("__")||l;return{title:`${p}: ${f}`,kind:"other",content:[],rawInput:u}}return{title:l||"Unknown Tool",kind:"other",content:[],rawInput:u}}}function n(c,l){let u=c.content;switch(l?.name){case"Read":return Array.isArray(u)&&u.length>0?{content:u.map(d=>({type:"content",content:d.type==="text"?{type:"text",text:a(d.text)}:s(d,!1)}))}:typeof u=="string"&&u.length>0?{content:[{type:"content",content:{type:"text",text:a(u)}}]}:{};case"Edit":case"Write":case"Bash":return c.is_error
|
|
698
|
+
`)}async function iCn(e,t,r,n){if(!(!n||Object.keys(n).length===0))switch(e){case"claude":await eCn(t,r,n);break;case"codex":await nCn(t,n);break;case"gemini":await tCn(t,n);break;case"qwen":await rCn(t,n);break;default:throw new Error(`Unknown agent type for MCP config: ${e}`)}}function sCn(){let e={};return function(c){let l;try{l=JSON.parse(c)}catch{return null}if(l._meta||l._prompt)return null;let u=l.session_id;switch(l.type){case"system":return null;case"assistant":return t(l.message?.content,"assistant",u);case"user":{let d=l.message?.content;return typeof d=="string"||Array.isArray(d)&&d.length===1&&d[0].type==="text"?null:t(d,"user",u)}case"result":return null;default:return null}};function t(c,l,u){if(typeof c=="string")return l==="user"?null:[{sessionId:u,update:{sessionUpdate:"agent_message_chunk",content:{type:"text",text:c}}}];if(!c||!Array.isArray(c))return null;let d=[];for(let p of c){let f=null;switch(p.type){case"text":case"text_delta":if(l==="user")break;f={sessionUpdate:"agent_message_chunk",content:{type:"text",text:p.text}};break;case"image":if(l==="user")break;f={sessionUpdate:"agent_message_chunk",content:{type:"image",data:p.source?.type==="base64"?p.source.data:"",mimeType:p.source?.type==="base64"?p.source.media_type:"",uri:p.source?.type==="url"?p.source.url:void 0}};break;case"thinking":case"thinking_delta":f={sessionUpdate:"agent_thought_chunk",content:{type:"text",text:p.thinking}};break;case"tool_use":case"server_tool_use":case"mcp_tool_use":{if(e[p.id]=p,p.name==="TodoWrite")Array.isArray(p.input?.todos)&&(f={sessionUpdate:"plan",entries:o(p.input)});else{let h=r(p);f={sessionUpdate:"tool_call",toolCallId:p.id,status:"pending",...h}}break}case"tool_result":case"tool_search_tool_result":case"web_fetch_tool_result":case"web_search_tool_result":case"code_execution_tool_result":case"bash_code_execution_tool_result":case"text_editor_code_execution_tool_result":case"mcp_tool_result":{let h=e[p.tool_use_id];if(!h||(delete e[p.tool_use_id],h.name==="TodoWrite"))break;f={sessionUpdate:"tool_call_update",toolCallId:p.tool_use_id,status:"is_error"in p&&p.is_error?"failed":"completed",...n(p,h)};break}}f&&d.push({sessionId:u,update:f})}return d.length>0?d:null}function r(c){let l=c.name,u=c.input||{};switch(l){case"Task":return{title:u.description||"Task",kind:"think",content:u.prompt?[{type:"content",content:{type:"text",text:u.prompt}}]:[],rawInput:u};case"NotebookRead":return{title:u.notebook_path?`Read Notebook ${u.notebook_path}`:"Read Notebook",kind:"read",content:[],locations:u.notebook_path?[{path:u.notebook_path}]:[],rawInput:u};case"NotebookEdit":return{title:u.notebook_path?`Edit Notebook ${u.notebook_path}`:"Edit Notebook",kind:"edit",content:u.new_source?[{type:"content",content:{type:"text",text:u.new_source}}]:[],locations:u.notebook_path?[{path:u.notebook_path}]:[],rawInput:u};case"Bash":return{title:u.command?"`"+u.command.replaceAll("`","\\`")+"`":"Terminal",kind:"execute",content:u.description?[{type:"content",content:{type:"text",text:u.description}}]:[],rawInput:u};case"BashOutput":return{title:"Tail Logs",kind:"execute",content:[],rawInput:u};case"KillShell":return{title:"Kill Process",kind:"execute",content:[],rawInput:u};case"Read":{let d="";return u.limit?d=" ("+((u.offset??0)+1)+" - "+((u.offset??0)+u.limit)+")":u.offset&&(d=" (from line "+(u.offset+1)+")"),{title:"Read "+(u.file_path??"File")+d,kind:"read",content:[],locations:u.file_path?[{path:u.file_path,line:u.offset??0}]:[],rawInput:u}}case"LS":return{title:u.path?`List \`${u.path}\` directory`:"List current directory",kind:"search",content:[],locations:[],rawInput:u};case"Edit":{let d=u.file_path;return{title:d?`Edit \`${d}\``:"Edit",kind:"edit",content:d?[{type:"diff",path:d,oldText:u.old_string??null,newText:u.new_string??""}]:[],locations:d?[{path:d}]:[],rawInput:u}}case"Write":return{title:u.file_path?`Write ${u.file_path}`:"Write",kind:"edit",content:u.file_path?[{type:"diff",path:u.file_path,oldText:null,newText:u.content??""}]:[],locations:u.file_path?[{path:u.file_path}]:[],rawInput:u};case"Glob":{let d="Find";return u.path&&(d+=` \`${u.path}\``),u.pattern&&(d+=` \`${u.pattern}\``),{title:d,kind:"search",content:[],locations:u.path?[{path:u.path}]:[],rawInput:u}}case"Grep":{let d="grep";return u["-i"]&&(d+=" -i"),u["-n"]&&(d+=" -n"),u["-A"]!==void 0&&(d+=` -A ${u["-A"]}`),u["-B"]!==void 0&&(d+=` -B ${u["-B"]}`),u["-C"]!==void 0&&(d+=` -C ${u["-C"]}`),u.output_mode==="files_with_matches"?d+=" -l":u.output_mode==="count"&&(d+=" -c"),u.head_limit!==void 0&&(d+=` | head -${u.head_limit}`),u.glob&&(d+=` --include="${u.glob}"`),u.type&&(d+=` --type=${u.type}`),u.multiline&&(d+=" -P"),d+=` "${u.pattern??""}"`,u.path&&(d+=` ${u.path}`),{title:d,kind:"search",content:[],rawInput:u}}case"WebFetch":return{title:u.url?`Fetch ${u.url}`:"Fetch",kind:"fetch",content:u.prompt?[{type:"content",content:{type:"text",text:u.prompt}}]:[],rawInput:u};case"WebSearch":{let d=`"${u.query??""}"`;return u.allowed_domains?.length>0&&(d+=` (allowed: ${u.allowed_domains.join(", ")})`),u.blocked_domains?.length>0&&(d+=` (blocked: ${u.blocked_domains.join(", ")})`),{title:d,kind:"fetch",content:[],rawInput:u}}case"TodoWrite":return{title:Array.isArray(u.todos)?`Update TODOs: ${u.todos.map(d=>d.content).join(", ")}`:"Update TODOs",kind:"think",content:[],rawInput:u};case"ExitPlanMode":return{title:"Ready to code?",kind:"switch_mode",content:u.plan?[{type:"content",content:{type:"text",text:u.plan}}]:[],rawInput:u};default:if(l?.startsWith("mcp__")){let d=l.split("__"),p=d[1]||"mcp",f=d.slice(2).join("__")||l;return{title:`${p}: ${f}`,kind:"other",content:[],rawInput:u}}return{title:l||"Unknown Tool",kind:"other",content:[],rawInput:u}}}function n(c,l){let u=c.content;switch(l?.name){case"Read":return Array.isArray(u)&&u.length>0?{content:u.map(d=>({type:"content",content:d.type==="text"?{type:"text",text:a(d.text)}:s(d,!1)}))}:typeof u=="string"&&u.length>0?{content:[{type:"content",content:{type:"text",text:a(u)}}]}:{};case"Edit":case"Write":case"Bash":return i(u,c.is_error||!1);case"ExitPlanMode":return{title:"Exited Plan Mode"};default:return i(u,"is_error"in c?c.is_error:!1)}}function i(c,l=!1){return Array.isArray(c)&&c.length>0?{content:c.map(u=>({type:"content",content:s(u,l)}))}:typeof c=="string"&&c.length>0?{content:[{type:"content",content:{type:"text",text:l?"```\n"+c+"\n```":c}}]}:{}}function s(c,l){if(c.type==="text")return l?{type:"text",text:"```\n"+c.text+"\n```"}:{type:"text",text:c.text};if(c.type==="image"){if(c.data&&c.mimeType)return{type:"image",data:c.data,mimeType:c.mimeType};if(c.source?.type==="base64")return{type:"image",data:c.source.data||"",mimeType:c.source.media_type||""};if(c.source?.type==="url")return{type:"image",data:"",mimeType:"",uri:c.source.url}}return c}function o(c){return c.todos.map(l=>({content:l.content,status:l.status||"pending",priority:"medium"}))}function a(c){let l="```",u=Array.from(c.matchAll(/^```+/gm));for(let[d]of u)for(;d.length>=l.length;)l+="`";return l+`
|
|
699
699
|
`+c+(c.endsWith(`
|
|
700
700
|
`)?"":`
|
|
701
701
|
`)+l}}function oCn(){return function(o){let a;try{a=JSON.parse(o)}catch{return null}if(a._meta||a._prompt)return null;let c=[];switch(a.type){case"thread.started":case"turn.started":case"turn.completed":return null;case"item.started":{let l=a.item;if(!l)return null;let u=e(l);u&&c.push({update:u});break}case"item.updated":{let l=a.item;if(!l)return null;let u=t(l);u&&c.push({update:u});break}case"item.completed":{let l=a.item;if(!l)return null;let u=r(l);u&&c.push({update:u});break}default:return null}return c.length>0?c:null};function e(o){let a=o.id;switch(o.type){case"mcp_tool_call":return`${o.server}${o.tool}`,{sessionUpdate:"tool_call",toolCallId:a,title:`${o.server}: ${o.tool}`,kind:"other",status:"in_progress",rawInput:o.arguments,content:[]};case"command_execution":return o.command,{sessionUpdate:"tool_call",toolCallId:a,title:o.command?`\`${o.command}\``:"Execute Command",kind:"execute",status:"in_progress",rawInput:{command:o.command},content:[]};case"web_search":return o.query,{sessionUpdate:"tool_call",toolCallId:a,title:`Search: ${o.query??""}`,kind:"fetch",status:"in_progress",content:[]};case"todo_list":return{sessionUpdate:"plan",entries:s(o.items)};default:return null}}function t(o){return o.type==="todo_list"?{sessionUpdate:"plan",entries:s(o.items)}:null}function r(o){let a=o.id;switch(o.type){case"reasoning":return{sessionUpdate:"agent_thought_chunk",content:{type:"text",text:o.text??o.summary?.join(`
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|