arggon-harness 0.1.0

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.
Files changed (170) hide show
  1. package/README.md +229 -0
  2. package/config/default-opencode.json +21 -0
  3. package/dist/init.d.ts +3 -0
  4. package/dist/init.d.ts.map +1 -0
  5. package/dist/init.js +406 -0
  6. package/dist/init.js.map +1 -0
  7. package/dist/plugin/engine/artifact-graph.d.ts +38 -0
  8. package/dist/plugin/engine/artifact-graph.d.ts.map +1 -0
  9. package/dist/plugin/engine/artifact-graph.js +137 -0
  10. package/dist/plugin/engine/artifact-graph.js.map +1 -0
  11. package/dist/plugin/engine/config.d.ts +21 -0
  12. package/dist/plugin/engine/config.d.ts.map +1 -0
  13. package/dist/plugin/engine/config.js +146 -0
  14. package/dist/plugin/engine/config.js.map +1 -0
  15. package/dist/plugin/engine/delta-apply.d.ts +23 -0
  16. package/dist/plugin/engine/delta-apply.d.ts.map +1 -0
  17. package/dist/plugin/engine/delta-apply.js +153 -0
  18. package/dist/plugin/engine/delta-apply.js.map +1 -0
  19. package/dist/plugin/engine/git.d.ts +32 -0
  20. package/dist/plugin/engine/git.d.ts.map +1 -0
  21. package/dist/plugin/engine/git.js +61 -0
  22. package/dist/plugin/engine/git.js.map +1 -0
  23. package/dist/plugin/engine/integrity.d.ts +45 -0
  24. package/dist/plugin/engine/integrity.d.ts.map +1 -0
  25. package/dist/plugin/engine/integrity.js +98 -0
  26. package/dist/plugin/engine/integrity.js.map +1 -0
  27. package/dist/plugin/engine/registry.d.ts +39 -0
  28. package/dist/plugin/engine/registry.d.ts.map +1 -0
  29. package/dist/plugin/engine/registry.js +191 -0
  30. package/dist/plugin/engine/registry.js.map +1 -0
  31. package/dist/plugin/engine/state.d.ts +31 -0
  32. package/dist/plugin/engine/state.d.ts.map +1 -0
  33. package/dist/plugin/engine/state.js +116 -0
  34. package/dist/plugin/engine/state.js.map +1 -0
  35. package/dist/plugin/engine/task-tracker.d.ts +66 -0
  36. package/dist/plugin/engine/task-tracker.d.ts.map +1 -0
  37. package/dist/plugin/engine/task-tracker.js +124 -0
  38. package/dist/plugin/engine/task-tracker.js.map +1 -0
  39. package/dist/plugin/engine/types.d.ts +349 -0
  40. package/dist/plugin/engine/types.d.ts.map +1 -0
  41. package/dist/plugin/engine/types.js +3 -0
  42. package/dist/plugin/engine/types.js.map +1 -0
  43. package/dist/plugin/engine/validator.d.ts +52 -0
  44. package/dist/plugin/engine/validator.d.ts.map +1 -0
  45. package/dist/plugin/engine/validator.js +457 -0
  46. package/dist/plugin/engine/validator.js.map +1 -0
  47. package/dist/plugin/engine/verifier.d.ts +61 -0
  48. package/dist/plugin/engine/verifier.d.ts.map +1 -0
  49. package/dist/plugin/engine/verifier.js +441 -0
  50. package/dist/plugin/engine/verifier.js.map +1 -0
  51. package/dist/plugin/hooks/context-injection.d.ts +11 -0
  52. package/dist/plugin/hooks/context-injection.d.ts.map +1 -0
  53. package/dist/plugin/hooks/context-injection.js +88 -0
  54. package/dist/plugin/hooks/context-injection.js.map +1 -0
  55. package/dist/plugin/hooks/event-handlers.d.ts +9 -0
  56. package/dist/plugin/hooks/event-handlers.d.ts.map +1 -0
  57. package/dist/plugin/hooks/event-handlers.js +10 -0
  58. package/dist/plugin/hooks/event-handlers.js.map +1 -0
  59. package/dist/plugin/hooks/workflow-gate.d.ts +24 -0
  60. package/dist/plugin/hooks/workflow-gate.d.ts.map +1 -0
  61. package/dist/plugin/hooks/workflow-gate.js +78 -0
  62. package/dist/plugin/hooks/workflow-gate.js.map +1 -0
  63. package/dist/plugin/index.d.ts +423 -0
  64. package/dist/plugin/index.d.ts.map +1 -0
  65. package/dist/plugin/index.js +253 -0
  66. package/dist/plugin/index.js.map +1 -0
  67. package/dist/plugin/tools/spec-artifact-instr.d.ts +7 -0
  68. package/dist/plugin/tools/spec-artifact-instr.d.ts.map +1 -0
  69. package/dist/plugin/tools/spec-artifact-instr.js +73 -0
  70. package/dist/plugin/tools/spec-artifact-instr.js.map +1 -0
  71. package/dist/plugin/tools/spec-change-archive.d.ts +6 -0
  72. package/dist/plugin/tools/spec-change-archive.d.ts.map +1 -0
  73. package/dist/plugin/tools/spec-change-archive.js +62 -0
  74. package/dist/plugin/tools/spec-change-archive.js.map +1 -0
  75. package/dist/plugin/tools/spec-change-list.d.ts +3 -0
  76. package/dist/plugin/tools/spec-change-list.d.ts.map +1 -0
  77. package/dist/plugin/tools/spec-change-list.js +38 -0
  78. package/dist/plugin/tools/spec-change-list.js.map +1 -0
  79. package/dist/plugin/tools/spec-change-new.d.ts +7 -0
  80. package/dist/plugin/tools/spec-change-new.d.ts.map +1 -0
  81. package/dist/plugin/tools/spec-change-new.js +47 -0
  82. package/dist/plugin/tools/spec-change-new.js.map +1 -0
  83. package/dist/plugin/tools/spec-change-status.d.ts +6 -0
  84. package/dist/plugin/tools/spec-change-status.d.ts.map +1 -0
  85. package/dist/plugin/tools/spec-change-status.js +43 -0
  86. package/dist/plugin/tools/spec-change-status.js.map +1 -0
  87. package/dist/plugin/tools/spec-design-critique.d.ts +20 -0
  88. package/dist/plugin/tools/spec-design-critique.d.ts.map +1 -0
  89. package/dist/plugin/tools/spec-design-critique.js +412 -0
  90. package/dist/plugin/tools/spec-design-critique.js.map +1 -0
  91. package/dist/plugin/tools/spec-design-hifi.d.ts +119 -0
  92. package/dist/plugin/tools/spec-design-hifi.d.ts.map +1 -0
  93. package/dist/plugin/tools/spec-design-hifi.js +653 -0
  94. package/dist/plugin/tools/spec-design-hifi.js.map +1 -0
  95. package/dist/plugin/tools/spec-design-wireframe.d.ts +91 -0
  96. package/dist/plugin/tools/spec-design-wireframe.d.ts.map +1 -0
  97. package/dist/plugin/tools/spec-design-wireframe.js +357 -0
  98. package/dist/plugin/tools/spec-design-wireframe.js.map +1 -0
  99. package/dist/plugin/tools/spec-init.d.ts +9 -0
  100. package/dist/plugin/tools/spec-init.d.ts.map +1 -0
  101. package/dist/plugin/tools/spec-init.js +58 -0
  102. package/dist/plugin/tools/spec-init.js.map +1 -0
  103. package/dist/plugin/tools/spec-integrity-check.d.ts +6 -0
  104. package/dist/plugin/tools/spec-integrity-check.d.ts.map +1 -0
  105. package/dist/plugin/tools/spec-integrity-check.js +19 -0
  106. package/dist/plugin/tools/spec-integrity-check.js.map +1 -0
  107. package/dist/plugin/tools/spec-registry-update.d.ts +3 -0
  108. package/dist/plugin/tools/spec-registry-update.d.ts.map +1 -0
  109. package/dist/plugin/tools/spec-registry-update.js +34 -0
  110. package/dist/plugin/tools/spec-registry-update.js.map +1 -0
  111. package/dist/plugin/tools/spec-schema-list.d.ts +3 -0
  112. package/dist/plugin/tools/spec-schema-list.d.ts.map +1 -0
  113. package/dist/plugin/tools/spec-schema-list.js +28 -0
  114. package/dist/plugin/tools/spec-schema-list.js.map +1 -0
  115. package/dist/plugin/tools/spec-specs-apply.d.ts +7 -0
  116. package/dist/plugin/tools/spec-specs-apply.d.ts.map +1 -0
  117. package/dist/plugin/tools/spec-specs-apply.js +49 -0
  118. package/dist/plugin/tools/spec-specs-apply.js.map +1 -0
  119. package/dist/plugin/tools/spec-task-progress.d.ts +8 -0
  120. package/dist/plugin/tools/spec-task-progress.d.ts.map +1 -0
  121. package/dist/plugin/tools/spec-task-progress.js +96 -0
  122. package/dist/plugin/tools/spec-task-progress.js.map +1 -0
  123. package/dist/plugin/tools/spec-validate.d.ts +21 -0
  124. package/dist/plugin/tools/spec-validate.d.ts.map +1 -0
  125. package/dist/plugin/tools/spec-validate.js +182 -0
  126. package/dist/plugin/tools/spec-validate.js.map +1 -0
  127. package/dist/plugin/tools/spec-verify.d.ts +7 -0
  128. package/dist/plugin/tools/spec-verify.d.ts.map +1 -0
  129. package/dist/plugin/tools/spec-verify.js +50 -0
  130. package/dist/plugin/tools/spec-verify.js.map +1 -0
  131. package/dist/plugin/tools/util.d.ts +25 -0
  132. package/dist/plugin/tools/util.d.ts.map +1 -0
  133. package/dist/plugin/tools/util.js +33 -0
  134. package/dist/plugin/tools/util.js.map +1 -0
  135. package/package.json +61 -0
  136. package/src/agents/orchestrator.md +158 -0
  137. package/src/agents/spec-apply.md +114 -0
  138. package/src/agents/spec-archive.md +103 -0
  139. package/src/agents/spec-propose.md +120 -0
  140. package/src/agents/spec-verify.md +103 -0
  141. package/src/commands/spec-init.md +6 -0
  142. package/src/commands/spec-onboard.md +6 -0
  143. package/src/commands/spec-status.md +6 -0
  144. package/src/commands/spec-sync.md +6 -0
  145. package/src/schemas/hybrid.yaml +144 -0
  146. package/src/schemas/spec-driven.yaml +155 -0
  147. package/src/schemas/tdd.yaml +203 -0
  148. package/src/skills/playwright-cli/SKILL.md +388 -0
  149. package/src/skills/playwright-cli/references/element-attributes.md +23 -0
  150. package/src/skills/playwright-cli/references/playwright-tests.md +39 -0
  151. package/src/skills/playwright-cli/references/request-mocking.md +87 -0
  152. package/src/skills/playwright-cli/references/running-code.md +241 -0
  153. package/src/skills/playwright-cli/references/session-management.md +225 -0
  154. package/src/skills/playwright-cli/references/spec-driven-testing.md +305 -0
  155. package/src/skills/playwright-cli/references/storage-state.md +275 -0
  156. package/src/skills/playwright-cli/references/test-generation.md +134 -0
  157. package/src/skills/playwright-cli/references/tracing.md +139 -0
  158. package/src/skills/playwright-cli/references/video-recording.md +143 -0
  159. package/src/skills/spec-init/SKILL.md +61 -0
  160. package/src/skills/spec-onboard/SKILL.md +178 -0
  161. package/src/skills/spec-status/SKILL.md +72 -0
  162. package/src/skills/spec-sync/SKILL.md +63 -0
  163. package/src/templates/config.yaml +14 -0
  164. package/src/templates/design-hifi.yaml +580 -0
  165. package/src/templates/design-tech.yaml +42 -0
  166. package/src/templates/design-wireframe.yaml +114 -0
  167. package/src/templates/proposal.yaml +43 -0
  168. package/src/templates/registry.yaml +3 -0
  169. package/src/templates/spec.yaml +56 -0
  170. package/src/templates/tasks.yaml +58 -0
@@ -0,0 +1,43 @@
1
+ import * as fs from "fs/promises";
2
+ import { parseYaml, loadSchema } from "./util.js";
3
+ import * as State from "../engine/state.js";
4
+ import * as ArtifactGraph from "../engine/artifact-graph.js";
5
+ export async function specChangeStatus(args, ctx) {
6
+ try {
7
+ const changeDir = `${ctx.projectRoot}/spec/changes/${args.changeName}`;
8
+ const metaPath = `${changeDir}/meta.yaml`;
9
+ const metaContent = await fs.readFile(metaPath, "utf-8");
10
+ const meta = parseYaml(metaContent);
11
+ const schema = await loadSchema(ctx.pluginDir, meta.schema);
12
+ const completed = await State.detectCompleted(changeDir, schema);
13
+ // Optional artifacts that aren't completed can be skipped
14
+ const skipped = new Set();
15
+ for (const artifact of schema.artifacts) {
16
+ if (artifact.optional && !completed.has(artifact.id)) {
17
+ skipped.add(artifact.id);
18
+ }
19
+ }
20
+ const graph = ArtifactGraph.buildGraph(schema);
21
+ const artifacts = {};
22
+ for (const artifact of schema.artifacts) {
23
+ artifacts[artifact.id] = completed.has(artifact.id);
24
+ }
25
+ const status = {
26
+ name: args.changeName,
27
+ schema: meta.schema,
28
+ status: meta.status,
29
+ artifacts,
30
+ progress: meta.progress,
31
+ isComplete: ArtifactGraph.isComplete(graph, completed, skipped),
32
+ nextArtifacts: ArtifactGraph.getNextArtifacts(graph, completed, skipped)
33
+ };
34
+ return {
35
+ output: JSON.stringify(status, null, 2),
36
+ metadata: status
37
+ };
38
+ }
39
+ catch (error) {
40
+ return { output: `Error: ${error.message}`, metadata: { error: true } };
41
+ }
42
+ }
43
+ //# sourceMappingURL=spec-change-status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec-change-status.js","sourceRoot":"","sources":["../../../src/plugin/tools/spec-change-status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,aAAa,CAAA;AAEjC,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACjD,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAA;AAC3C,OAAO,KAAK,aAAa,MAAM,6BAA6B,CAAA;AAO5D,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,IAA0B,EAAE,GAAgB;IACjF,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AE,IAAI,CAAC,QAAQ;YACvB,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC;YAC/D,aAAa,EAAE,aAAa,CAAC,gBAAgB,CAAC,KAAK,EAAE,SAAS,EAAE,OAAO,CAAC;SACzE,CAAA;QAED,OAAO;YACL,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;YACvC,QAAQ,EAAE,MAAM;SACjB,CAAA;IACH,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,OAAO,EAAE,MAAM,EAAE,UAAU,KAAK,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAAA;IACzE,CAAC;AACH,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { z } from "zod";
2
+ import type { ToolContext, ToolResult } from "./util.js";
3
+ declare const CritiqueInputSchema: z.ZodObject<{
4
+ changeName: z.ZodString;
5
+ artifactType: z.ZodOptional<z.ZodEnum<{
6
+ wireframe: "wireframe";
7
+ hifi: "hifi";
8
+ }>>;
9
+ threshold: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10
+ focusDimensions: z.ZodOptional<z.ZodArray<z.ZodEnum<{
11
+ philosophy: "philosophy";
12
+ hierarchy: "hierarchy";
13
+ detail: "detail";
14
+ functionality: "functionality";
15
+ innovation: "innovation";
16
+ }>>>;
17
+ }, z.core.$strip>;
18
+ export declare function specDesignCritique(args: z.infer<typeof CritiqueInputSchema>, ctx: ToolContext): Promise<ToolResult>;
19
+ export {};
20
+ //# sourceMappingURL=spec-design-critique.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec-design-critique.d.ts","sourceRoot":"","sources":["../../../src/plugin/tools/spec-design-critique.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAKxD,QAAA,MAAM,mBAAmB;;;;;;;;;;;;;;iBAKvB,CAAA;AA4SF,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,EACzC,GAAG,EAAE,WAAW,GACf,OAAO,CAAC,UAAU,CAAC,CA+FrB"}
@@ -0,0 +1,412 @@
1
+ import * as fs from "fs/promises";
2
+ import * as path from "path";
3
+ import { z } from "zod";
4
+ import { parseYaml } from "./util.js";
5
+ // ── Zod schemas ──────────────────────────────────────────────────────
6
+ const CritiqueInputSchema = z.object({
7
+ changeName: z.string().min(1),
8
+ artifactType: z.enum(["wireframe", "hifi"]).optional(),
9
+ threshold: z.number().min(0).max(100).optional().default(70),
10
+ focusDimensions: z.array(z.enum(["philosophy", "hierarchy", "detail", "functionality", "innovation"])).optional()
11
+ });
12
+ function scorePhilosophy(artifact, type) {
13
+ // Checks: Does the design have a clear, consistent direction?
14
+ let score = 70;
15
+ const improvements = [];
16
+ let rationale = "";
17
+ if (type === "wireframe") {
18
+ const pages = artifact.body?.pages || [];
19
+ if (pages.length > 0) {
20
+ const hasLayout = pages.every((p) => p.layout && p.layout.length > 0);
21
+ if (hasLayout) {
22
+ score += 10;
23
+ rationale = "All pages have layout regions defined. ";
24
+ }
25
+ else {
26
+ improvements.push("Define layout regions for all pages");
27
+ }
28
+ if (pages.length >= 2) {
29
+ score += 5;
30
+ rationale += "Multiple pages show flow thinking. ";
31
+ }
32
+ else {
33
+ improvements.push("Consider adding more pages to show the full flow");
34
+ }
35
+ }
36
+ else {
37
+ score -= 20;
38
+ improvements.push("Add at least one page to define the layout");
39
+ }
40
+ const flows = artifact.body?.flows?.user_flows || [];
41
+ if (flows.length > 0) {
42
+ score += 10;
43
+ rationale += `User flows documented (${flows.length} flows). `;
44
+ }
45
+ else {
46
+ improvements.push("Add user flows to show navigation paths");
47
+ }
48
+ }
49
+ else {
50
+ // hi-fi
51
+ const palette = artifact.body?.color_palette;
52
+ if (palette) {
53
+ const hasAllGroups = palette.primary && palette.secondary && palette.accent;
54
+ if (hasAllGroups) {
55
+ score += 10;
56
+ rationale = "Full color palette defined. ";
57
+ }
58
+ else {
59
+ improvements.push("Define all color groups (primary, secondary, accent)");
60
+ }
61
+ if (palette.semantic) {
62
+ score += 5;
63
+ rationale += "Semantic colors present. ";
64
+ }
65
+ else {
66
+ improvements.push("Add semantic colors (success, warning, error, info)");
67
+ }
68
+ }
69
+ const typography = artifact.body?.typography;
70
+ if (typography?.families?.length > 0 && typography?.scale?.length > 0) {
71
+ score += 10;
72
+ rationale += "Typography system defined. ";
73
+ }
74
+ else {
75
+ improvements.push("Define typography families and scale");
76
+ }
77
+ }
78
+ const annotations = artifact.body?.annotations || [];
79
+ if (annotations.length > 0) {
80
+ score += 5;
81
+ rationale += "Design decisions annotated. ";
82
+ }
83
+ return {
84
+ score: Math.max(0, Math.min(100, score)),
85
+ rationale: rationale.trim() || "Basic structure present but could benefit from more depth.",
86
+ improvements
87
+ };
88
+ }
89
+ function scoreHierarchy(artifact, type) {
90
+ // Checks: Can a stranger figure out what to read/see first, second, third?
91
+ let score = 65;
92
+ const improvements = [];
93
+ let rationale = "";
94
+ if (type === "wireframe") {
95
+ const pages = artifact.body?.pages || [];
96
+ const orderedLayouts = pages.filter((p) => p.layout && p.layout.some((l) => typeof l.order === "number"));
97
+ if (orderedLayouts.length > 0) {
98
+ score += 15;
99
+ rationale = "Layout regions have ordering. ";
100
+ }
101
+ else {
102
+ improvements.push("Add numeric ordering to layout regions");
103
+ }
104
+ const hasPositioned = pages.some((p) => p.components?.some((c) => c.position && typeof c.position.x === "number"));
105
+ if (hasPositioned) {
106
+ score += 10;
107
+ rationale += "Components have grid positions. ";
108
+ }
109
+ else {
110
+ improvements.push("Position components on the grid (x, y coordinates)");
111
+ }
112
+ }
113
+ else {
114
+ // hi-fi
115
+ const typography = artifact.body?.typography;
116
+ if (typography?.scale?.length >= 5) {
117
+ score += 15;
118
+ rationale = "Typography scale has good depth (5+ levels). ";
119
+ }
120
+ else {
121
+ improvements.push("Expand typography scale to cover h1-h6, body, and caption");
122
+ }
123
+ const spacing = artifact.body?.spacing;
124
+ if (spacing?.scale?.length >= 5) {
125
+ score += 10;
126
+ rationale += "Spacing scale provides good rhythm options. ";
127
+ }
128
+ else {
129
+ improvements.push("Define a complete spacing scale");
130
+ }
131
+ }
132
+ return {
133
+ score: Math.max(0, Math.min(100, score)),
134
+ rationale: rationale.trim() || "Basic structure present.",
135
+ improvements
136
+ };
137
+ }
138
+ function scoreDetail(artifact, type) {
139
+ // Checks: The 90/10 stuff — alignment, polish, completeness
140
+ let score = 60;
141
+ const improvements = [];
142
+ let rationale = "";
143
+ if (type === "wireframe") {
144
+ const components = artifact.body?.pages?.flatMap((p) => p.components || []) || [];
145
+ if (components.length > 0) {
146
+ score += 10;
147
+ rationale = `${components.length} components placed. `;
148
+ const withProps = components.filter((c) => c.properties && Object.keys(c.properties).length > 0);
149
+ if (withProps.length > 0) {
150
+ score += 10;
151
+ rationale += "Some components have properties. ";
152
+ }
153
+ else {
154
+ improvements.push("Add properties to components (labels, variants, placeholders)");
155
+ }
156
+ const withSize = components.filter((c) => c.size && typeof c.size.width === "number");
157
+ if (withSize.length > 0) {
158
+ score += 5;
159
+ rationale += "Sizes specified. ";
160
+ }
161
+ }
162
+ else {
163
+ improvements.push("Add components to pages");
164
+ }
165
+ }
166
+ else {
167
+ // hi-fi
168
+ const lib = artifact.body?.component_library;
169
+ if (lib) {
170
+ const types = ["button", "card", "input", "navigation"];
171
+ const present = types.filter((t) => lib[t]?.length > 0);
172
+ if (present.length >= 3) {
173
+ score += 15;
174
+ rationale = `${present.length}/4 component types defined. `;
175
+ }
176
+ else {
177
+ improvements.push("Define all component types (button, card, input, navigation)");
178
+ }
179
+ const withStates = types.some((t) => lib[t]?.some((v) => v.states?.length > 0));
180
+ if (withStates) {
181
+ score += 10;
182
+ rationale += "Some components have state definitions. ";
183
+ }
184
+ else {
185
+ improvements.push("Add variant states (default, hover, active, disabled, focus)");
186
+ }
187
+ }
188
+ else {
189
+ improvements.push("Add component library with variants");
190
+ }
191
+ const breakpoints = artifact.body?.breakpoints || [];
192
+ if (breakpoints.length >= 2) {
193
+ score += 5;
194
+ rationale += `Responsive breakpoints defined (${breakpoints.length}). `;
195
+ }
196
+ else {
197
+ improvements.push("Add responsive breakpoints (at least 2)");
198
+ }
199
+ }
200
+ return {
201
+ score: Math.max(0, Math.min(100, score)),
202
+ rationale: rationale.trim() || "More detail needed in component definitions.",
203
+ improvements
204
+ };
205
+ }
206
+ function scoreFunctionality(artifact, type) {
207
+ // Checks: Does the artifact work for its intended use?
208
+ let score = 70;
209
+ const improvements = [];
210
+ let rationale = "";
211
+ if (type === "wireframe") {
212
+ const flows = artifact.body?.flows?.user_flows || [];
213
+ if (flows.length > 0) {
214
+ const steps = flows.flatMap((f) => f.steps || []);
215
+ if (steps.length > 0) {
216
+ score += 15;
217
+ rationale = `Flow coverage: ${steps.length} steps across ${flows.length} flows. `;
218
+ }
219
+ }
220
+ else {
221
+ improvements.push("Add user flows to validate the UX");
222
+ }
223
+ const annotations = artifact.body?.annotations || [];
224
+ const edgeCases = annotations.filter((a) => a.category === "edge_case");
225
+ if (edgeCases.length > 0) {
226
+ score += 5;
227
+ rationale += "Edge cases considered. ";
228
+ }
229
+ }
230
+ else {
231
+ // hi-fi
232
+ const palette = artifact.body?.color_palette;
233
+ if (palette?.semantic) {
234
+ const hasAll = palette.semantic.success && palette.semantic.warning &&
235
+ palette.semantic.error && palette.semantic.info;
236
+ if (hasAll) {
237
+ score += 10;
238
+ rationale = "All semantic states covered. ";
239
+ }
240
+ }
241
+ const lib = artifact.body?.component_library;
242
+ if (lib?.button) {
243
+ const hasDisabled = lib.button.some((v) => v.states?.some((s) => s.name === "disabled"));
244
+ if (hasDisabled) {
245
+ score += 10;
246
+ rationale += "Disabled states accounted for. ";
247
+ }
248
+ else {
249
+ improvements.push("Add disabled state to buttons");
250
+ }
251
+ }
252
+ if (lib?.input) {
253
+ const hasError = lib.input.some((v) => v.states?.some((s) => s.name === "error" || s.name === "focus"));
254
+ if (hasError) {
255
+ score += 5;
256
+ rationale += "Input interaction states present. ";
257
+ }
258
+ }
259
+ }
260
+ return {
261
+ score: Math.max(0, Math.min(100, score)),
262
+ rationale: rationale.trim() || "Functional coverage is adequate but could extend.",
263
+ improvements
264
+ };
265
+ }
266
+ function scoreInnovation(artifact, type) {
267
+ // Checks: Does this push past the median?
268
+ let score = 50;
269
+ const improvements = [];
270
+ let rationale = "Standard patterns used.";
271
+ if (type === "wireframe") {
272
+ const components = artifact.body?.pages?.flatMap((p) => p.components || []) || [];
273
+ const types = new Set(components.map((c) => c.type));
274
+ if (types.size >= 5) {
275
+ score += 20;
276
+ rationale = "Rich component variety. ";
277
+ }
278
+ const annotations = artifact.body?.annotations || [];
279
+ const decisions = annotations.filter((a) => a.category === "decision");
280
+ if (decisions.length > 0) {
281
+ score += 10;
282
+ rationale += "Design decisions documented. ";
283
+ }
284
+ if (artifact.body?.flows?.user_flows?.length > 0) {
285
+ score += 10;
286
+ }
287
+ }
288
+ else {
289
+ // hi-fi
290
+ const lib = artifact.body?.component_library;
291
+ if (lib) {
292
+ const totalVariants = Object.values(lib).reduce((sum, arr) => sum + (arr?.length || 0), 0);
293
+ if (totalVariants >= 8) {
294
+ score += 20;
295
+ rationale = `Extensive component variants (${totalVariants}). `;
296
+ }
297
+ }
298
+ const breakpoints = artifact.body?.breakpoints || [];
299
+ if (breakpoints.length >= 3) {
300
+ score += 10;
301
+ rationale += "Multi-breakpoint responsive strategy. ";
302
+ }
303
+ }
304
+ return {
305
+ score: Math.max(0, Math.min(100, score)),
306
+ rationale: rationale.trim() || "Standard patterns used.",
307
+ improvements
308
+ };
309
+ }
310
+ // ── Main handler ─────────────────────────────────────────────────────
311
+ export async function specDesignCritique(args, ctx) {
312
+ try {
313
+ const parsed = CritiqueInputSchema.parse(args);
314
+ const { changeName, artifactType: inputType, threshold, focusDimensions } = parsed;
315
+ const changeDir = path.join(ctx.projectRoot, "spec", "changes", changeName);
316
+ // Check change directory
317
+ try {
318
+ await fs.access(changeDir);
319
+ }
320
+ catch {
321
+ return { output: `Error: Change "${changeName}" does not exist`, metadata: { error: true } };
322
+ }
323
+ // Determine which artifact to critique
324
+ let type = inputType;
325
+ let artifactPath;
326
+ if (type === "wireframe" || (!type && await fileExists(path.join(changeDir, "design-wireframe.yaml")))) {
327
+ type = "wireframe";
328
+ artifactPath = path.join(changeDir, "design-wireframe.yaml");
329
+ }
330
+ else if (type === "hifi" || (!type && await fileExists(path.join(changeDir, "design-hifi.yaml")))) {
331
+ type = "hifi";
332
+ artifactPath = path.join(changeDir, "design-hifi.yaml");
333
+ }
334
+ else {
335
+ return {
336
+ output: `Error: No design artifact found in change "${changeName}". Expected design-wireframe.yaml or design-hifi.yaml.`,
337
+ metadata: { error: true }
338
+ };
339
+ }
340
+ // Read and parse the artifact
341
+ let artifact;
342
+ try {
343
+ const content = await fs.readFile(artifactPath, "utf-8");
344
+ artifact = parseYaml(content);
345
+ }
346
+ catch (err) {
347
+ return { output: `Error reading artifact: ${err.message}`, metadata: { error: true } };
348
+ }
349
+ // Score all dimensions (or only focused ones)
350
+ const allScorers = {
351
+ philosophy: scorePhilosophy,
352
+ hierarchy: scoreHierarchy,
353
+ detail: scoreDetail,
354
+ functionality: scoreFunctionality,
355
+ innovation: scoreInnovation
356
+ };
357
+ const dimensionsToScore = focusDimensions || Object.keys(allScorers);
358
+ const scores = {};
359
+ for (const dim of dimensionsToScore) {
360
+ if (allScorers[dim]) {
361
+ scores[dim] = allScorers[dim](artifact, type);
362
+ }
363
+ }
364
+ // Calculate overall score
365
+ const scoreValues = Object.values(scores).map(s => s.score);
366
+ const overall = Math.round(scoreValues.reduce((a, b) => a + b, 0) / scoreValues.length);
367
+ const passed = overall >= threshold;
368
+ // Collect all improvements
369
+ const allImprovements = Object.values(scores).flatMap(s => s.improvements);
370
+ const uniqueImprovements = [...new Set(allImprovements)];
371
+ const result = {
372
+ artifactType: type,
373
+ overall,
374
+ threshold,
375
+ passed,
376
+ dimensions: scores,
377
+ summary: passed
378
+ ? `Design critique PASSED (${overall}% ≥ ${threshold}%). The ${type} artifact meets quality standards.`
379
+ : `Design critique FAILED (${overall}% < ${threshold}%). ${uniqueImprovements.length} improvements identified.`,
380
+ improvements: uniqueImprovements
381
+ };
382
+ return {
383
+ output: JSON.stringify(result, null, 2),
384
+ metadata: {
385
+ artifactType: type,
386
+ overall,
387
+ threshold,
388
+ passed,
389
+ dimensionsCount: Object.keys(scores).length,
390
+ improvementsCount: uniqueImprovements.length
391
+ }
392
+ };
393
+ }
394
+ catch (error) {
395
+ if (error instanceof z.ZodError) {
396
+ const issues = error.issues.map(i => `${i.path.join(".")}: ${i.message}`).join("; ");
397
+ return { output: `Validation error: ${issues}`, metadata: { error: true, validationErrors: error.issues } };
398
+ }
399
+ return { output: `Error: ${error.message}`, metadata: { error: true } };
400
+ }
401
+ }
402
+ // ── Helpers ──────────────────────────────────────────────────────────
403
+ async function fileExists(filePath) {
404
+ try {
405
+ await fs.access(filePath);
406
+ return true;
407
+ }
408
+ catch {
409
+ return false;
410
+ }
411
+ }
412
+ //# sourceMappingURL=spec-design-critique.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec-design-critique.js","sourceRoot":"","sources":["../../../src/plugin/tools/spec-design-critique.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,aAAa,CAAA;AACjC,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAC5B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,wEAAwE;AAExE,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,YAAY,EAAE,CAAC,CA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AQ,EAAE,CAAC;YAChC,MAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YACpF,OAAO,EAAE,MAAM,EAAE,qBAAqB,MAAM,EAAE,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,CAAC,MAAM,EAAE,EAAE,CAAA;QAC7G,CAAC;QACD,OAAO,EAAE,MAAM,EAAE,UAAU,KAAK,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,CAAA;IACzE,CAAC;AACH,CAAC;AAED,wEAAwE;AAExE,KAAK,UAAU,UAAU,CAAC,QAAgB;IACxC,IAAI,CAAC;QACH,MAAM,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAA;QACzB,OAAO,IAAI,CAAA;IACb,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAA;IACd,CAAC;AACH,CAAC"}
@@ -0,0 +1,119 @@
1
+ import { z } from "zod";
2
+ import type { ToolContext, ToolResult } from "./util.js";
3
+ declare const DesignHiFiInputSchema: z.ZodObject<{
4
+ changeName: z.ZodString;
5
+ color_palette: z.ZodObject<{
6
+ primary: z.ZodObject<{
7
+ base: z.ZodString;
8
+ hover: z.ZodOptional<z.ZodString>;
9
+ active: z.ZodOptional<z.ZodString>;
10
+ disabled: z.ZodOptional<z.ZodString>;
11
+ contrast: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ secondary: z.ZodObject<{
14
+ base: z.ZodString;
15
+ hover: z.ZodOptional<z.ZodString>;
16
+ active: z.ZodOptional<z.ZodString>;
17
+ disabled: z.ZodOptional<z.ZodString>;
18
+ contrast: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ accent: z.ZodObject<{
21
+ base: z.ZodString;
22
+ hover: z.ZodOptional<z.ZodString>;
23
+ active: z.ZodOptional<z.ZodString>;
24
+ disabled: z.ZodOptional<z.ZodString>;
25
+ contrast: z.ZodOptional<z.ZodString>;
26
+ }, z.core.$strip>;
27
+ neutral: z.ZodObject<{
28
+ base: z.ZodString;
29
+ hover: z.ZodOptional<z.ZodString>;
30
+ active: z.ZodOptional<z.ZodString>;
31
+ disabled: z.ZodOptional<z.ZodString>;
32
+ contrast: z.ZodOptional<z.ZodString>;
33
+ }, z.core.$strip>;
34
+ semantic: z.ZodObject<{
35
+ success: z.ZodString;
36
+ warning: z.ZodString;
37
+ error: z.ZodString;
38
+ info: z.ZodString;
39
+ }, z.core.$strip>;
40
+ surfaces: z.ZodObject<{
41
+ background: z.ZodString;
42
+ foreground: z.ZodString;
43
+ card: z.ZodString;
44
+ border: z.ZodString;
45
+ muted: z.ZodString;
46
+ }, z.core.$strip>;
47
+ }, z.core.$strip>;
48
+ typography: z.ZodObject<{
49
+ families: z.ZodArray<z.ZodObject<{
50
+ name: z.ZodString;
51
+ stack: z.ZodString;
52
+ role: z.ZodEnum<{
53
+ body: "body";
54
+ heading: "heading";
55
+ monospace: "monospace";
56
+ }>;
57
+ }, z.core.$strip>>;
58
+ scale: z.ZodArray<z.ZodObject<{
59
+ name: z.ZodString;
60
+ size: z.ZodString;
61
+ weight: z.ZodNumber;
62
+ line_height: z.ZodNumber;
63
+ letter_spacing: z.ZodOptional<z.ZodString>;
64
+ role: z.ZodString;
65
+ }, z.core.$strip>>;
66
+ }, z.core.$strip>;
67
+ spacing: z.ZodObject<{
68
+ base_unit: z.ZodNumber;
69
+ scale: z.ZodArray<z.ZodNumber>;
70
+ }, z.core.$strip>;
71
+ component_library: z.ZodOptional<z.ZodObject<{
72
+ button: z.ZodOptional<z.ZodArray<z.ZodObject<{
73
+ name: z.ZodString;
74
+ description: z.ZodOptional<z.ZodString>;
75
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
76
+ states: z.ZodOptional<z.ZodArray<z.ZodObject<{
77
+ name: z.ZodString;
78
+ properties: z.ZodRecord<z.ZodString, z.ZodAny>;
79
+ }, z.core.$strip>>>;
80
+ }, z.core.$strip>>>;
81
+ card: z.ZodOptional<z.ZodArray<z.ZodObject<{
82
+ name: z.ZodString;
83
+ description: z.ZodOptional<z.ZodString>;
84
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
85
+ states: z.ZodOptional<z.ZodArray<z.ZodObject<{
86
+ name: z.ZodString;
87
+ properties: z.ZodRecord<z.ZodString, z.ZodAny>;
88
+ }, z.core.$strip>>>;
89
+ }, z.core.$strip>>>;
90
+ input: z.ZodOptional<z.ZodArray<z.ZodObject<{
91
+ name: z.ZodString;
92
+ description: z.ZodOptional<z.ZodString>;
93
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
94
+ states: z.ZodOptional<z.ZodArray<z.ZodObject<{
95
+ name: z.ZodString;
96
+ properties: z.ZodRecord<z.ZodString, z.ZodAny>;
97
+ }, z.core.$strip>>>;
98
+ }, z.core.$strip>>>;
99
+ navigation: z.ZodOptional<z.ZodArray<z.ZodObject<{
100
+ name: z.ZodString;
101
+ description: z.ZodOptional<z.ZodString>;
102
+ properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
103
+ states: z.ZodOptional<z.ZodArray<z.ZodObject<{
104
+ name: z.ZodString;
105
+ properties: z.ZodRecord<z.ZodString, z.ZodAny>;
106
+ }, z.core.$strip>>>;
107
+ }, z.core.$strip>>>;
108
+ }, z.core.$strip>>;
109
+ breakpoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
110
+ name: z.ZodString;
111
+ min_width: z.ZodNumber;
112
+ columns: z.ZodNumber;
113
+ rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
114
+ }, z.core.$strip>>>;
115
+ html_preview: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
116
+ }, z.core.$strip>;
117
+ export declare function specDesignHiFi(args: z.infer<typeof DesignHiFiInputSchema>, ctx: ToolContext): Promise<ToolResult>;
118
+ export {};
119
+ //# sourceMappingURL=spec-design-hifi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec-design-hifi.d.ts","sourceRoot":"","sources":["../../../src/plugin/tools/spec-design-hifi.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AA+FxD,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQzB,CAAA;AAIF,wBAAsB,cAAc,CAClC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,EAC3C,GAAG,EAAE,WAAW,GACf,OAAO,CAAC,UAAU,CAAC,CAwOrB"}