You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ACP create_artifact tool in src/acp/tools.ts returns a delegation message without actually creating any files. Agents calling it via ACP get no artifact back.
Current behavior
asynccreate_artifact(req){return{ok: true,message: 'Artifact creation delegated to AI agent',request: req};}
Expected behavior
create_artifact calls the same generateArtifactHandler logic used by the generate_artifact MCP tool — creating the file via the IDocument pipeline and returning the path, id, and content.
Problem
The ACP
create_artifacttool insrc/acp/tools.tsreturns a delegation message without actually creating any files. Agents calling it via ACP get no artifact back.Current behavior
Expected behavior
create_artifactcalls the samegenerateArtifactHandlerlogic used by thegenerate_artifactMCP tool — creating the file via theIDocumentpipeline and returning the path, id, and content.Acceptance criteria
create_artifact({ type, title, planId?, description?, personaPath?, primer? })— writes the artifact file and returns{ ok, id, type, title, path, content }artifact:createdhook event after writingpersona,journey,spec,agentplanIdforagenttype)Files to modify
src/acp/tools.ts— callgenerateArtifactHandleror extract shared logic into a servicesrc/tools/generate-artifact.ts— consider extracting core logic intosrc/cli/generate-artifact.tsfor reusetests/acp/tools.test.ts— add artifact creation tests with temp workspaceRelated
src/tools/generate-artifact.ts— existing MCP tool implementationsrc/documents/—Persona,Journey,Spec,AgentTaskdocument modelsrc/hooks/runner.ts— hook event firing