1- import type { DirectorPackage } from "../types.js" ;
2- import { BUILD_TOOLS } from "../tool-sets.js" ;
3-
41/**
52 * Artist worker: visual asset specialist.
63 * Hand-crafts SVGs, visual diagrams (Mermaid, ASCII art), and structured
74 * generative graphic prompts for image generation models.
5+ *
6+ * Ships as the @corbits/agent-artist workspace package: the tool allowlist
7+ * lives here so the package stays importable without the app. Drift against
8+ * the app build surface fails src/agent/directors/artist/package.test.ts.
89 */
9- export const artistPackage : DirectorPackage = {
10+ export type AgentPackage = {
11+ readonly id : "artist" ;
12+ readonly primaryIntent : string ;
13+ readonly outOfLane : readonly string [ ] ;
14+ readonly description : string ;
15+ readonly systemPrompt : string ;
16+ /** Unset — artist never attaches skill bodies at spawn. */
17+ readonly attachedSkills ?: readonly string [ ] ;
18+ /** Unset — artist declares no skill scope. */
19+ readonly optionalSkills ?: readonly string [ ] ;
20+ readonly tools : {
21+ readonly allow : readonly string [ ] ;
22+ } ;
23+ readonly spawn : {
24+ readonly maySpawn : false ;
25+ } ;
26+ readonly modelRole : "implement" ;
27+ readonly tier : "leaf" ;
28+ } ;
29+
30+ const ARTIST_TOOLS = [
31+ "read_file" ,
32+ "grep" ,
33+ "search_files" ,
34+ "list_dir" ,
35+ "lsp" ,
36+ "run_shell" ,
37+ "web_fetch" ,
38+ "web_search" ,
39+ "skill_search" ,
40+ "use_skill" ,
41+ "write_file" ,
42+ "edit_file" ,
43+ "delete_file" ,
44+ ] as const ;
45+
46+ export const artistPackage : AgentPackage = {
1047 id : "artist" ,
1148 primaryIntent :
1249 "Author hand-crafted SVGs, visual diagrams, and generative graphic prompts" ,
@@ -17,10 +54,6 @@ export const artistPackage: DirectorPackage = {
1754 ] ,
1855 description :
1956 "Visual asset specialist — SVGs, visual diagrams, and generative graphic prompts" ,
20- tools : { allow : BUILD_TOOLS } ,
21- spawn : { maySpawn : false } ,
22- tier : "leaf" ,
23- modelRole : "implement" ,
2457 systemPrompt : `You are ArtistDirector (Artist), a specialist in Corbits Code.
2558
2659PRIMARY INTENT: create visual assets — clean vector SVGs, technical and architectural diagrams, and structured generative image prompts.
@@ -49,4 +82,8 @@ Workflow:
49824. Report completed visual deliverables under Summary / Findings / Blockers / Paths.
5083
5184OUT OF LANE: non-visual code implementation, backend logic, code defect review, fleet orchestration.` ,
85+ tools : { allow : [ ...ARTIST_TOOLS ] } ,
86+ spawn : { maySpawn : false } ,
87+ tier : "leaf" ,
88+ modelRole : "implement" ,
5289} ;
0 commit comments