Skip to content

Commit 507bb40

Browse files
committed
style(agent-designer): strip redundant commentary from extracted package
1 parent e5ce285 commit 507bb40

6 files changed

Lines changed: 6 additions & 31 deletions

File tree

‎agents/designer/src/agent.ts‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
1-
// Designer assembled agent — ready unit + package defineAgent wrapper.
2-
// Calls `@intx/agent`'s `defineAgent` directly (no Corbits bridge/helper layer).
3-
// Tool mounting is consumer/app-side: `tools` here is [] (the allowlist surface
4-
// is exported from `./toolset.js` and wired by the app harness).
5-
61
import {
72
defineAgent as coreDefineAgent,
83
type AgentDefinition,
94
} from "@intx/agent";
105

116
import { systemPrompt } from "./prompt.js";
127

13-
/** The assembled designer agent — ready to hand to `runLocal` / `runWorkflow`. */
148
export const agent: AgentDefinition = defineAgent();
159

16-
/** Package convenience wrapper → `AgentDefinition` for `runLocal` authoring. */
1710
export function defineAgent(): AgentDefinition {
1811
return coreDefineAgent({
1912
id: "designer",

‎agents/designer/src/config.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
// Designer config — uniform `{ spawn, tier, modelRole }` shape (§5).
2-
// designer is a leaf worker: maySpawn false, no allowlist.
3-
// modelRole is "implement" (matches the in-tree card).
1+
// Designer is a leaf worker: maySpawn false, no allowlist. modelRole is
2+
// "implement" (matches the in-tree card).
43
export const config = {
54
spawn: {
65
maySpawn: false,

‎agents/designer/src/director.ts‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
1-
// Designer director card — the `DirectorPackage` data, extracted byte-for-byte
2-
// from the in-tree `src/agent/directors/designer/package.ts` (now deleted).
3-
// Structurally satisfies the app's `DirectorPackage` (asserted in-tree by
4-
// `src/agent/directors/designer/package.test.ts`); it imports @intx/* only.
5-
61
import { tools } from "./toolset.js";
72
import { systemPrompt } from "./prompt.js";
83
import { config } from "./config.js";
94

10-
/** The assembled designer director card. */
115
export const director = {
126
id: "designer",
137
primaryIntent:

‎agents/designer/src/index.ts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// Public surface — re-exports only (no logic). Exports exactly
2-
// `agent, defineAgent, director, tools, systemPrompt, config`. No `workflow`
3-
// export. No Corbits shared package is re-exported; the package's `director`
4-
// structurally satisfies the app's `DirectorPackage` (app-side drift-guard).
51
export { agent, defineAgent } from "./agent.js";
62
export { director } from "./director.js";
73
export { tools } from "./toolset.js";

‎agents/designer/src/prompt.ts‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// Designer card — the single prompt authority, extracted byte-for-byte from the
2-
// in-tree `src/agent/directors/designer/package.ts` (now deleted). `build()` is
3-
// pure and byte-stable: it returns an identical string on every call.
1+
// Designer card — the single prompt authority. `build()` is byte-stable.
42
const CARD = `You are DesignerDirector (Designer), a specialist in Corbits Code.
53
64
PRIMARY INTENT: own interface design, design tokens, styling, and DESIGN.md. You bring design engineering excellence to UI surfaces — layout rhythm, typography, purposeful motion, responsive states, and cohesive design systems.
@@ -25,10 +23,9 @@ Workflow:
2523
2624
OUT OF LANE: backend business logic or database migrations, general backend defect review, marketing content pipelines, fleet orchestration.`;
2725

28-
/** Stable identifier of the package's voice. */
2926
export const theme = "designer";
3027

31-
/** Byte-stable builder: returns the raw designer card, identical every call. */
28+
// Byte-stable (see prompt authority test).
3229
export const systemPrompt = {
3330
theme,
3431
build: (): string => CARD,

‎agents/designer/src/toolset.ts‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
// Designer UI/UX: build surface (read + product writes) — content-equal to the
2-
// `REVIEW_TOOLS` constant in `src/agent/directors/tool-sets.ts` (the single
3-
// tool authority; BUILD_TOOLS = REVIEW_TOOLS = READ_TOOLS + PRODUCT_WRITE_TOOLS).
4-
// Drift is enforced by the in-tree `src/agent/directors/designer/package.test.ts`
5-
// against `REVIEW_TOOLS`.
1+
// BUILD_TOOLS literal (= REVIEW_TOOLS); drift-guarded against REVIEW_TOOLS in
2+
// src/agent/directors/tool-sets.ts.
63
const BUILD_TOOLS = [
74
"read_file",
85
"grep",
@@ -19,5 +16,4 @@ const BUILD_TOOLS = [
1916
"delete_file",
2017
] as const;
2118

22-
/** The designer tool allowlist — literal equal to the in-tree review/build surface. */
2319
export const tools: readonly string[] = [...BUILD_TOOLS];

0 commit comments

Comments
 (0)