@shinnodua/agent-workflows 0.0.0-stage → 0.2.8
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.
- package/.agents/agents/backend-developer/agent.md +39 -0
- package/.agents/agents/frontend-developer/agent.md +42 -0
- package/.agents/agents/project-manager/agent.md +37 -0
- package/.agents/agents/tech-lead/agent.md +41 -0
- package/.agents/agents/ui-ux-designer/agent.md +41 -0
- package/.agents/skills/add-project/SKILL.md +90 -0
- package/.agents/skills/add-project/agents/openai.yaml +4 -0
- package/.agents/skills/add-project/references/save-protocol.md +90 -0
- package/.agents/skills/approve-plan/SKILL.md +86 -0
- package/.agents/skills/approve-plan/agents/openai.yaml +4 -0
- package/.agents/skills/approve-prd/SKILL.md +59 -0
- package/.agents/skills/approve-prd/agents/openai.yaml +4 -0
- package/.agents/skills/auto-mode/SKILL.md +103 -0
- package/.agents/skills/auto-mode/agents/openai.yaml +4 -0
- package/.agents/skills/create-design/SKILL.md +197 -0
- package/.agents/skills/create-design/agents/openai.yaml +4 -0
- package/.agents/skills/create-diagram/SKILL.md +83 -0
- package/.agents/skills/create-diagram/agents/openai.yaml +4 -0
- package/.agents/skills/create-plan/SKILL.md +104 -0
- package/.agents/skills/create-plan/agents/openai.yaml +4 -0
- package/.agents/skills/create-prd/SKILL.md +82 -0
- package/.agents/skills/create-prd/agents/openai.yaml +4 -0
- package/.agents/skills/griling-plan/SKILL.md +114 -0
- package/.agents/skills/griling-plan/agents/openai.yaml +4 -0
- package/.agents/skills/griling-prd/SKILL.md +91 -0
- package/.agents/skills/griling-prd/agents/openai.yaml +4 -0
- package/.agents/skills/package-installation/SKILL.md +67 -0
- package/.agents/skills/package-installation/agents/openai.yaml +4 -0
- package/.agents/skills/project-setup/SKILL.md +104 -0
- package/.agents/skills/project-setup/agents/openai.yaml +3 -0
- package/.agents/skills/research/SKILL.md +61 -0
- package/.agents/skills/research/agents/openai.yaml +4 -0
- package/.agents/skills/sprint-meeting/SKILL.md +230 -0
- package/.agents/skills/sprint-meeting/agents/openai.yaml +4 -0
- package/.claude/agents/backend-developer.md +7 -0
- package/.claude/agents/frontend-developer.md +7 -0
- package/.claude/agents/project-manager.md +7 -0
- package/.claude/agents/tech-lead.md +7 -0
- package/.claude/agents/ui-ux-designer.md +7 -0
- package/.claude/skills/add-project/SKILL.md +10 -0
- package/.claude/skills/approve-plan/SKILL.md +8 -0
- package/.claude/skills/approve-prd/SKILL.md +8 -0
- package/.claude/skills/auto-mode/SKILL.md +8 -0
- package/.claude/skills/create-design/SKILL.md +8 -0
- package/.claude/skills/create-diagram/SKILL.md +8 -0
- package/.claude/skills/create-plan/SKILL.md +8 -0
- package/.claude/skills/create-prd/SKILL.md +8 -0
- package/.claude/skills/griling-plan/SKILL.md +8 -0
- package/.claude/skills/griling-prd/SKILL.md +8 -0
- package/.claude/skills/package-installation/SKILL.md +8 -0
- package/.claude/skills/project-setup/SKILL.md +8 -0
- package/.claude/skills/research/SKILL.md +8 -0
- package/.claude/skills/sprint-meeting/SKILL.md +8 -0
- package/.codex/prompts/add-project.md +3 -0
- package/.codex/prompts/approve-plan.md +3 -0
- package/.codex/prompts/approve-prd.md +3 -0
- package/.codex/prompts/auto-mode.md +3 -0
- package/.codex/prompts/create-design.md +3 -0
- package/.codex/prompts/create-diagram.md +3 -0
- package/.codex/prompts/create-plan.md +3 -0
- package/.codex/prompts/create-prd.md +3 -0
- package/.codex/prompts/griling-plan.md +3 -0
- package/.codex/prompts/griling-prd.md +3 -0
- package/.codex/prompts/grilling-plan.md +3 -0
- package/.codex/prompts/project-setup.md +3 -0
- package/.codex/prompts/research.md +3 -0
- package/.codex/prompts/sprint-meeting.md +3 -0
- package/.gitmodules.example +9 -0
- package/AGENTS.md +84 -0
- package/CLAUDE.md +1 -0
- package/INSTALL.md +284 -0
- package/LICENSE +21 -0
- package/README.md +342 -2
- package/bin/postinstall.js +57 -0
- package/bin/workflows.js +1172 -0
- package/bin/workflows.test.mjs +682 -0
- package/commands/add-project.md +20 -0
- package/commands/approve-plan.md +25 -0
- package/commands/approve-prd.md +24 -0
- package/commands/auto-mode.md +15 -0
- package/commands/create-design.md +20 -0
- package/commands/create-diagram.md +16 -0
- package/commands/create-plan.md +22 -0
- package/commands/create-prd.md +16 -0
- package/commands/griling-plan.md +16 -0
- package/commands/griling-prd.md +16 -0
- package/commands/grilling-plan.md +16 -0
- package/commands/project-setup.md +16 -0
- package/commands/research.md +16 -0
- package/commands/sprint-meeting.md +16 -0
- package/dashboard/.agents/skills/coding-conventions/SKILL.md +76 -0
- package/dashboard/.agents/skills/coding-conventions/agents/openai.yaml +4 -0
- package/dashboard/.agents/skills/design-system-guideline/SKILL.md +51 -0
- package/dashboard/.agents/skills/design-system-guideline/agents/openai.yaml +4 -0
- package/dashboard/.agents/skills/lint-and-fix/SKILL.md +55 -0
- package/dashboard/.agents/skills/lint-and-fix/agents/openai.yaml +4 -0
- package/dashboard/.agents/skills/taste-ui/SKILL.md +45 -0
- package/dashboard/.agents/skills/taste-ui/agents/openai.yaml +4 -0
- package/dashboard/AGENTS.md +43 -0
- package/dashboard/bun.lock +352 -0
- package/dashboard/index.html +12 -0
- package/dashboard/package.json +32 -0
- package/dashboard/src/App.tsx +5 -0
- package/dashboard/src/features/task-status/components/ActionRequiredPanel/ActionRequiredPanel.module.css +85 -0
- package/dashboard/src/features/task-status/components/ActionRequiredPanel/ActionRequiredPanel.tsx +80 -0
- package/dashboard/src/features/task-status/components/ArtifactButton/ArtifactButton.module.css +25 -0
- package/dashboard/src/features/task-status/components/ArtifactButton/ArtifactButton.tsx +29 -0
- package/dashboard/src/features/task-status/components/ArtifactSummaryCards/ArtifactSummaryCards.module.css +29 -0
- package/dashboard/src/features/task-status/components/ArtifactSummaryCards/ArtifactSummaryCards.tsx +35 -0
- package/dashboard/src/features/task-status/components/CategoryPanel/CategoryPanel.module.css +85 -0
- package/dashboard/src/features/task-status/components/CategoryPanel/CategoryPanel.tsx +150 -0
- package/dashboard/src/features/task-status/components/DashboardHeader/DashboardHeader.module.css +41 -0
- package/dashboard/src/features/task-status/components/DashboardHeader/DashboardHeader.tsx +41 -0
- package/dashboard/src/features/task-status/components/FilesPanel/FilesPanel.module.css +25 -0
- package/dashboard/src/features/task-status/components/FilesPanel/FilesPanel.tsx +40 -0
- package/dashboard/src/features/task-status/components/HardnessEngineeringPanel/HardnessEngineeringPanel.module.css +330 -0
- package/dashboard/src/features/task-status/components/HardnessEngineeringPanel/HardnessEngineeringPanel.tsx +299 -0
- package/dashboard/src/features/task-status/components/LifecyclePanel/LifecyclePanel.module.css +74 -0
- package/dashboard/src/features/task-status/components/LifecyclePanel/LifecyclePanel.tsx +79 -0
- package/dashboard/src/features/task-status/components/MarkdownDialog/MarkdownDialog.module.css +133 -0
- package/dashboard/src/features/task-status/components/MarkdownDialog/MarkdownDialog.tsx +233 -0
- package/dashboard/src/features/task-status/components/Sidebar/Sidebar.module.css +53 -0
- package/dashboard/src/features/task-status/components/Sidebar/Sidebar.tsx +163 -0
- package/dashboard/src/features/task-status/components/StatusBadge/StatusBadge.module.css +41 -0
- package/dashboard/src/features/task-status/components/StatusBadge/StatusBadge.tsx +48 -0
- package/dashboard/src/features/task-status/components/TaskOverview/TaskOverview.module.css +97 -0
- package/dashboard/src/features/task-status/components/TaskOverview/TaskOverview.tsx +128 -0
- package/dashboard/src/features/task-status/components/TaskStatusDashboard/TaskStatusDashboard.module.css +9 -0
- package/dashboard/src/features/task-status/components/TaskStatusDashboard/TaskStatusDashboard.tsx +318 -0
- package/dashboard/src/features/task-status/components/WorkflowPanel/WorkflowPanel.module.css +221 -0
- package/dashboard/src/features/task-status/components/WorkflowPanel/WorkflowPanel.tsx +344 -0
- package/dashboard/src/features/task-status/taskStatusConfig.ts +100 -0
- package/dashboard/src/features/task-status/utils/actionItems.ts +247 -0
- package/dashboard/src/features/task-status/utils/artifactGrouping.ts +328 -0
- package/dashboard/src/features/task-status/utils/hardnessScanner.ts +406 -0
- package/dashboard/src/features/task-status/utils/lifecycle.ts +73 -0
- package/dashboard/src/features/task-status/utils/markdownInline/markdownInline.module.css +11 -0
- package/dashboard/src/features/task-status/utils/markdownInline/markdownInline.tsx +104 -0
- package/dashboard/src/features/task-status/utils/markdownLinks.ts +83 -0
- package/dashboard/src/features/task-status/utils/markdownRenderer/markdownRenderer.module.css +74 -0
- package/dashboard/src/features/task-status/utils/markdownRenderer/markdownRenderer.tsx +326 -0
- package/dashboard/src/features/task-status/utils/status.ts +7 -0
- package/dashboard/src/features/task-status/utils/test/actionItems.test.ts +134 -0
- package/dashboard/src/features/task-status/utils/test/artifactGrouping.test.ts +294 -0
- package/dashboard/src/features/task-status/utils/test/hardnessScanner.test.ts +138 -0
- package/dashboard/src/features/task-status/utils/test/lifecycle.test.ts +49 -0
- package/dashboard/src/features/task-status/utils/test/markdownInline.test.ts +41 -0
- package/dashboard/src/features/task-status/utils/test/markdownLinks.test.ts +158 -0
- package/dashboard/src/features/task-status/utils/test/workspaceMetadata.test.ts +37 -0
- package/dashboard/src/features/task-status/utils/workspaceMetadata.ts +175 -0
- package/dashboard/src/main.tsx +16 -0
- package/dashboard/src/shared/design-system.css +134 -0
- package/dashboard/src/shared/design-system.tsx +84 -0
- package/dashboard/src/styles.css +41 -0
- package/dashboard/src/types.ts +133 -0
- package/dashboard/src/workspace-artifacts.d.ts +9 -0
- package/dashboard/tsconfig.json +22 -0
- package/dashboard/vite.config.ts +579 -0
- package/designs/.gitkeep +1 -0
- package/docs/add-project-command-completion.md +117 -0
- package/docs/public-npm-registry-completion.md +104 -0
- package/docs/workflows.png +0 -0
- package/docs/workspace-template-setup.md +229 -0
- package/meeting-logs/.gitkeep +1 -0
- package/modules/.gitkeep +1 -0
- package/package.json +96 -5
- package/plans/.gitkeep +1 -0
- package/prds/.gitkeep +1 -0
- package/project/PROJECT.md +26 -0
- package/project/repositories.json +72 -0
- package/project/validation.json +9 -0
- package/project/workflows.json +20 -0
- package/research/.gitkeep +1 -0
- package/roles/backend-developer.md +26 -0
- package/roles/frontend-developer.md +25 -0
- package/roles/project-manager.md +42 -0
- package/roles/tech-lead.md +42 -0
- package/roles/ui-ux-designer.md +43 -0
- package/scripts/add-project.mjs +990 -0
- package/scripts/add-project.test.mjs +804 -0
- package/scripts/check-staged-security.mjs +97 -0
- package/scripts/check-staged-security.test.mjs +68 -0
- package/scripts/workspace-integrity.ts +220 -0
- package/templates/auto-mode-completion-summary-template.md +78 -0
- package/templates/meeting-log-template.md +177 -0
- package/templates/plan-template.md +219 -0
- package/templates/prd-template.md +106 -0
- package/templates/research-template.md +119 -0
- package/workflows.md +590 -0
- package/workspace.config.json +43 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { describe, expect, test } from "bun:test";
|
|
2
|
+
import { parseWorkspaceMetadata } from "../workspaceMetadata";
|
|
3
|
+
|
|
4
|
+
describe("workspaceMetadata", () => {
|
|
5
|
+
test("parses structured front matter", () => {
|
|
6
|
+
const result = parseWorkspaceMetadata(
|
|
7
|
+
"---\nid: PRD-20260820-example\ntype: prd\nstatus: approved\ncreated: 2026-08-20\nupdated: 2026-08-20\nowner: developer\nrelatedArtifactIds: [RESEARCH-20260820-example]\n---\n# Example",
|
|
8
|
+
{ relatedArtifactIds: [] },
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
expect(result.format).toBe("structured");
|
|
12
|
+
expect(result.errors).toHaveLength(0);
|
|
13
|
+
expect(result.metadata.relatedArtifactIds).toEqual([
|
|
14
|
+
"RESEARCH-20260820-example",
|
|
15
|
+
]);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
test("keeps Markdown metadata readable without requiring YAML front matter", () => {
|
|
19
|
+
const result = parseWorkspaceMetadata("# Example", {
|
|
20
|
+
id: "PRD-20260820-example",
|
|
21
|
+
relatedArtifactIds: [],
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
expect(result.format).toBe("markdown");
|
|
25
|
+
expect(result.metadata.id).toBe("PRD-20260820-example");
|
|
26
|
+
expect(result.warnings).toHaveLength(0);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
test("reports invalid structured metadata", () => {
|
|
30
|
+
const result = parseWorkspaceMetadata(
|
|
31
|
+
"---\nid: example\ntype: invalid\nstatus: pending\ncreated: invalid\n---\n# Example",
|
|
32
|
+
{ relatedArtifactIds: [] },
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
expect(result.errors.length).toBeGreaterThan(3);
|
|
36
|
+
});
|
|
37
|
+
});
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ArtifactType,
|
|
3
|
+
ProjectRepository,
|
|
4
|
+
WorkspaceModule,
|
|
5
|
+
} from "../../../types";
|
|
6
|
+
|
|
7
|
+
export type MetadataFormat = "structured" | "markdown";
|
|
8
|
+
|
|
9
|
+
export type WorkspaceMetadata = {
|
|
10
|
+
id?: string;
|
|
11
|
+
type?: ArtifactType;
|
|
12
|
+
status?: string;
|
|
13
|
+
created?: string;
|
|
14
|
+
updated?: string;
|
|
15
|
+
owner?: string;
|
|
16
|
+
prdId?: string;
|
|
17
|
+
planId?: string;
|
|
18
|
+
parentPlanId?: string;
|
|
19
|
+
relatedArtifactIds: string[];
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type MetadataParseResult = {
|
|
23
|
+
format: MetadataFormat;
|
|
24
|
+
metadata: WorkspaceMetadata;
|
|
25
|
+
warnings: string[];
|
|
26
|
+
errors: string[];
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const artifactTypes = new Set<ArtifactType>([
|
|
30
|
+
"prd",
|
|
31
|
+
"plan",
|
|
32
|
+
"design",
|
|
33
|
+
"research",
|
|
34
|
+
"document",
|
|
35
|
+
]);
|
|
36
|
+
const statuses = new Set([
|
|
37
|
+
"draft",
|
|
38
|
+
"approved",
|
|
39
|
+
"in-progress",
|
|
40
|
+
"blocked",
|
|
41
|
+
"complete",
|
|
42
|
+
"superseded",
|
|
43
|
+
"unknown",
|
|
44
|
+
]);
|
|
45
|
+
|
|
46
|
+
export function parseWorkspaceMetadata(
|
|
47
|
+
content: string,
|
|
48
|
+
markdownMetadata: WorkspaceMetadata,
|
|
49
|
+
): MetadataParseResult {
|
|
50
|
+
const frontMatter = getFrontMatter(content);
|
|
51
|
+
|
|
52
|
+
if (!frontMatter) {
|
|
53
|
+
return {
|
|
54
|
+
errors: [],
|
|
55
|
+
format: "markdown",
|
|
56
|
+
metadata: markdownMetadata,
|
|
57
|
+
warnings: [],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const values = parseYamlSubset(frontMatter);
|
|
62
|
+
const metadata: WorkspaceMetadata = {
|
|
63
|
+
created: values.created,
|
|
64
|
+
id: values.id,
|
|
65
|
+
owner: values.owner,
|
|
66
|
+
parentPlanId: values.parentPlanId,
|
|
67
|
+
planId: values.planId,
|
|
68
|
+
prdId: values.prdId,
|
|
69
|
+
relatedArtifactIds: values.relatedArtifactIds ?? [],
|
|
70
|
+
status: values.status,
|
|
71
|
+
type: values.type as ArtifactType | undefined,
|
|
72
|
+
updated: values.updated,
|
|
73
|
+
};
|
|
74
|
+
const errors = validateWorkspaceMetadata(metadata);
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
errors,
|
|
78
|
+
format: "structured",
|
|
79
|
+
metadata,
|
|
80
|
+
warnings: [],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function validateWorkspaceMetadata(metadata: WorkspaceMetadata) {
|
|
85
|
+
const errors: string[] = [];
|
|
86
|
+
|
|
87
|
+
if (!metadata.id) {
|
|
88
|
+
errors.push("Missing required metadata field: id.");
|
|
89
|
+
}
|
|
90
|
+
if (!metadata.type || !artifactTypes.has(metadata.type)) {
|
|
91
|
+
errors.push(`Invalid or missing metadata field: type.`);
|
|
92
|
+
}
|
|
93
|
+
if (!metadata.status || !statuses.has(metadata.status)) {
|
|
94
|
+
errors.push(`Invalid or missing metadata field: status.`);
|
|
95
|
+
}
|
|
96
|
+
if (!metadata.created) {
|
|
97
|
+
errors.push("Missing required metadata field: created.");
|
|
98
|
+
}
|
|
99
|
+
if (!metadata.updated) {
|
|
100
|
+
errors.push("Missing required metadata field: updated.");
|
|
101
|
+
}
|
|
102
|
+
if (!metadata.owner) {
|
|
103
|
+
errors.push("Missing required metadata field: owner.");
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
for (const field of ["created", "updated"] as const) {
|
|
107
|
+
const value = metadata[field];
|
|
108
|
+
if (value && Number.isNaN(Date.parse(value))) {
|
|
109
|
+
errors.push(`Invalid date in metadata field: ${field}.`);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return errors;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function parseInlineList(value: string) {
|
|
117
|
+
const trimmed = value.trim();
|
|
118
|
+
if (!trimmed.startsWith("[") || !trimmed.endsWith("]")) {
|
|
119
|
+
return [];
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
return trimmed
|
|
123
|
+
.slice(1, -1)
|
|
124
|
+
.split(",")
|
|
125
|
+
.map((item) => stripQuotes(item.trim()))
|
|
126
|
+
.filter(Boolean);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function getFrontMatter(content: string) {
|
|
130
|
+
const normalized = content.replace(/^\uFEFF/, "").replace(/\r\n/g, "\n");
|
|
131
|
+
if (!normalized.startsWith("---\n")) {
|
|
132
|
+
return undefined;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
const endIndex = normalized.indexOf("\n---", 4);
|
|
136
|
+
return endIndex === -1 ? undefined : normalized.slice(4, endIndex);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function parseYamlSubset(frontMatter: string) {
|
|
140
|
+
const values: Record<string, string | string[] | undefined> = {};
|
|
141
|
+
|
|
142
|
+
for (const line of frontMatter.split("\n")) {
|
|
143
|
+
const match = /^([A-Za-z][A-Za-z0-9_-]*):\s*(.*)$/.exec(line.trim());
|
|
144
|
+
if (!match) {
|
|
145
|
+
continue;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const key = match[1] ?? "";
|
|
149
|
+
const rawValue = match[2] ?? "";
|
|
150
|
+
values[key] = rawValue.startsWith("[")
|
|
151
|
+
? parseInlineList(rawValue)
|
|
152
|
+
: stripQuotes(rawValue);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return values as WorkspaceMetadata;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function stripQuotes(value: string) {
|
|
159
|
+
return value.replace(/^['"]|['"]$/g, "").trim();
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export function sourceModuleFromPath(
|
|
163
|
+
relativePath: string,
|
|
164
|
+
repositories: ProjectRepository[] = [],
|
|
165
|
+
): WorkspaceModule {
|
|
166
|
+
const repository = repositories.find((candidate) =>
|
|
167
|
+
relativePath.startsWith(`${candidate.path.replace(/\/$/, "")}/`),
|
|
168
|
+
);
|
|
169
|
+
|
|
170
|
+
if (repository) {
|
|
171
|
+
return repository.id;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
return "workspace";
|
|
175
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { StrictMode } from "react";
|
|
2
|
+
import { createRoot } from "react-dom/client";
|
|
3
|
+
import App from "./App";
|
|
4
|
+
import "./styles.css";
|
|
5
|
+
|
|
6
|
+
const root = document.getElementById("root");
|
|
7
|
+
|
|
8
|
+
if (!root) {
|
|
9
|
+
throw new Error("Missing root element");
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
createRoot(root).render(
|
|
13
|
+
<StrictMode>
|
|
14
|
+
<App />
|
|
15
|
+
</StrictMode>,
|
|
16
|
+
);
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--color-background: #f6f4ee;
|
|
3
|
+
--color-text: #1c2430;
|
|
4
|
+
--color-surface: #ffffff;
|
|
5
|
+
--color-surface-yellow: #fff1a8;
|
|
6
|
+
--color-surface-lime: #d8f99d;
|
|
7
|
+
--color-surface-blue: #bfe4ff;
|
|
8
|
+
--color-surface-pink: #ffd0df;
|
|
9
|
+
--color-surface-red: #ff9aa8;
|
|
10
|
+
--color-border: #1c2430;
|
|
11
|
+
--color-muted: #64748b;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.aw-card {
|
|
15
|
+
border: 2px solid var(--color-border);
|
|
16
|
+
border-radius: 8px;
|
|
17
|
+
box-shadow: 4px 4px 0 var(--color-border);
|
|
18
|
+
background: var(--color-surface);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.aw-card--white {
|
|
22
|
+
background: var(--color-surface);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.aw-card--yellow {
|
|
26
|
+
background: var(--color-surface-yellow);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.aw-card--lime {
|
|
30
|
+
background: var(--color-surface-lime);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.aw-card--blue {
|
|
34
|
+
background: var(--color-surface-blue);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.aw-card--pink {
|
|
38
|
+
background: var(--color-surface-pink);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.aw-card--red {
|
|
42
|
+
background: var(--color-surface-red);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.aw-button {
|
|
46
|
+
display: inline-flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
justify-content: center;
|
|
49
|
+
gap: 0.4rem;
|
|
50
|
+
border: 2px solid var(--color-border);
|
|
51
|
+
border-radius: 8px;
|
|
52
|
+
box-shadow: 2px 2px 0 var(--color-border);
|
|
53
|
+
font-weight: 800;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
transition:
|
|
56
|
+
transform 120ms ease,
|
|
57
|
+
box-shadow 120ms ease;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.aw-button:hover {
|
|
61
|
+
transform: translate(1px, 1px);
|
|
62
|
+
box-shadow: 1px 1px 0 var(--color-border);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.aw-button--sm {
|
|
66
|
+
min-height: 2rem;
|
|
67
|
+
padding: 0.35rem 0.75rem;
|
|
68
|
+
font-size: 0.875rem;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.aw-button--md {
|
|
72
|
+
min-height: 2.5rem;
|
|
73
|
+
padding: 0.5rem 1rem;
|
|
74
|
+
font-size: 0.95rem;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.aw-button--icon {
|
|
78
|
+
width: 2.5rem;
|
|
79
|
+
height: 2.5rem;
|
|
80
|
+
padding: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.aw-button--white {
|
|
84
|
+
background: var(--color-surface);
|
|
85
|
+
color: var(--color-text);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.aw-button--yellow {
|
|
89
|
+
background: var(--color-surface-yellow);
|
|
90
|
+
color: var(--color-text);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.aw-button--lime {
|
|
94
|
+
background: var(--color-surface-lime);
|
|
95
|
+
color: var(--color-text);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.aw-button--blue {
|
|
99
|
+
background: var(--color-surface-blue);
|
|
100
|
+
color: var(--color-text);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.aw-button--pink {
|
|
104
|
+
background: var(--color-surface-pink);
|
|
105
|
+
color: var(--color-text);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.aw-button--red {
|
|
109
|
+
background: var(--color-surface-red);
|
|
110
|
+
color: var(--color-text);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.aw-field {
|
|
114
|
+
display: grid;
|
|
115
|
+
gap: 0.4rem;
|
|
116
|
+
font-weight: 800;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.aw-field__label {
|
|
120
|
+
font-size: 0.8rem;
|
|
121
|
+
color: var(--color-muted);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.aw-input {
|
|
125
|
+
width: 100%;
|
|
126
|
+
min-height: 2.5rem;
|
|
127
|
+
box-sizing: border-box;
|
|
128
|
+
border: 2px solid var(--color-border);
|
|
129
|
+
border-radius: 8px;
|
|
130
|
+
background: #ffffff;
|
|
131
|
+
color: var(--color-text);
|
|
132
|
+
padding: 0.55rem 0.75rem;
|
|
133
|
+
font: inherit;
|
|
134
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ButtonHTMLAttributes,
|
|
3
|
+
InputHTMLAttributes,
|
|
4
|
+
ReactNode,
|
|
5
|
+
} from "react";
|
|
6
|
+
import "./design-system.css";
|
|
7
|
+
|
|
8
|
+
type SurfaceVariant = "white" | "yellow" | "lime" | "blue" | "pink" | "red";
|
|
9
|
+
|
|
10
|
+
type CardProps = {
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
variant?: SurfaceVariant;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export function Card(props: CardProps) {
|
|
17
|
+
const { children, className = "", variant = "white" } = props;
|
|
18
|
+
|
|
19
|
+
return (
|
|
20
|
+
<div
|
|
21
|
+
className={["aw-card", `aw-card--${variant}`, className]
|
|
22
|
+
.filter(Boolean)
|
|
23
|
+
.join(" ")}
|
|
24
|
+
>
|
|
25
|
+
{children}
|
|
26
|
+
</div>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
31
|
+
size?: "sm" | "md" | "icon";
|
|
32
|
+
variant?: SurfaceVariant;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export function Button(props: ButtonProps) {
|
|
36
|
+
const {
|
|
37
|
+
className = "",
|
|
38
|
+
size = "md",
|
|
39
|
+
variant = "white",
|
|
40
|
+
type = "button",
|
|
41
|
+
...buttonProps
|
|
42
|
+
} = props;
|
|
43
|
+
|
|
44
|
+
return (
|
|
45
|
+
<button
|
|
46
|
+
className={[
|
|
47
|
+
"aw-button",
|
|
48
|
+
`aw-button--${size}`,
|
|
49
|
+
`aw-button--${variant}`,
|
|
50
|
+
className,
|
|
51
|
+
]
|
|
52
|
+
.filter(Boolean)
|
|
53
|
+
.join(" ")}
|
|
54
|
+
type={type}
|
|
55
|
+
{...buttonProps}
|
|
56
|
+
/>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
type InputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
61
|
+
label?: string;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export function Input(props: InputProps) {
|
|
65
|
+
const { className = "", id, label, ...inputProps } = props;
|
|
66
|
+
const inputId =
|
|
67
|
+
id ??
|
|
68
|
+
(label
|
|
69
|
+
? label
|
|
70
|
+
.toLowerCase()
|
|
71
|
+
.replace(/[^a-z0-9]+/g, "-")
|
|
72
|
+
.replace(/^-|-$/g, "")
|
|
73
|
+
: undefined);
|
|
74
|
+
|
|
75
|
+
return (
|
|
76
|
+
<label
|
|
77
|
+
className={["aw-field", className].filter(Boolean).join(" ")}
|
|
78
|
+
htmlFor={inputId}
|
|
79
|
+
>
|
|
80
|
+
{label ? <span className="aw-field__label">{label}</span> : null}
|
|
81
|
+
<input className="aw-input" id={inputId} {...inputProps} />
|
|
82
|
+
</label>
|
|
83
|
+
);
|
|
84
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
|
|
3
|
+
@theme {
|
|
4
|
+
--color-background: #f6f4ee;
|
|
5
|
+
--color-surface: #ffffff;
|
|
6
|
+
--color-neo-yellow: #fff1a8;
|
|
7
|
+
--color-neo-lime: #d8f99d;
|
|
8
|
+
--color-neo-blue: #bfe4ff;
|
|
9
|
+
--color-neo-pink: #ffd0df;
|
|
10
|
+
--color-neo-red: #ff9aa8;
|
|
11
|
+
--color-neo-orange: #ffc46b;
|
|
12
|
+
--shadow-neo-active: 2px 2px 0 #1c2430;
|
|
13
|
+
--shadow-neo-lg: 6px 6px 0 #1c2430;
|
|
14
|
+
}
|
|
15
|
+
@source "../src";
|
|
16
|
+
|
|
17
|
+
html {
|
|
18
|
+
scroll-behavior: smooth;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
body {
|
|
22
|
+
min-width: 920px;
|
|
23
|
+
margin: 0;
|
|
24
|
+
background: var(--color-background);
|
|
25
|
+
color: var(--color-text);
|
|
26
|
+
overflow-x: auto;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
button,
|
|
30
|
+
input,
|
|
31
|
+
select {
|
|
32
|
+
font: inherit;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
#root {
|
|
36
|
+
min-height: 100vh;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.overflow-wrap-anywhere {
|
|
40
|
+
overflow-wrap: anywhere;
|
|
41
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
export type ArtifactType = "prd" | "plan" | "design" | "research" | "document";
|
|
2
|
+
|
|
3
|
+
export type DashboardView =
|
|
4
|
+
| "task"
|
|
5
|
+
| "workflow"
|
|
6
|
+
| "hardness"
|
|
7
|
+
| "action-required"
|
|
8
|
+
| "lifecycle"
|
|
9
|
+
| ArtifactType;
|
|
10
|
+
|
|
11
|
+
export type WorkspaceModule = "workspace" | string;
|
|
12
|
+
|
|
13
|
+
export type DocumentModuleFilter = "all" | WorkspaceModule;
|
|
14
|
+
|
|
15
|
+
export type ProjectRepository = {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
path: string;
|
|
19
|
+
url?: string;
|
|
20
|
+
purpose: string;
|
|
21
|
+
scope: string[];
|
|
22
|
+
platforms: string[];
|
|
23
|
+
agentGuide?: string;
|
|
24
|
+
artifactDirectories?: Partial<
|
|
25
|
+
Record<"plans" | "designs" | "research" | "docs", string>
|
|
26
|
+
>;
|
|
27
|
+
codeScanDirectories?: string[];
|
|
28
|
+
validation?: string[];
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type ProjectProfile = {
|
|
32
|
+
repositories: ProjectRepository[];
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type DocumentModuleTab = {
|
|
36
|
+
module: DocumentModuleFilter;
|
|
37
|
+
label: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export type Artifact = {
|
|
41
|
+
type: ArtifactType;
|
|
42
|
+
title: string;
|
|
43
|
+
status: string;
|
|
44
|
+
goal?: string;
|
|
45
|
+
created?: string;
|
|
46
|
+
modified: string;
|
|
47
|
+
updated?: string;
|
|
48
|
+
id?: string;
|
|
49
|
+
prdId?: string;
|
|
50
|
+
planId?: string;
|
|
51
|
+
parentPlanId?: string;
|
|
52
|
+
relatedArtifactIds: string[];
|
|
53
|
+
taskKey: string;
|
|
54
|
+
relativePath: string;
|
|
55
|
+
sourceModule: WorkspaceModule;
|
|
56
|
+
sourceHref: string;
|
|
57
|
+
content: string;
|
|
58
|
+
metadataFormat?: "structured" | "markdown";
|
|
59
|
+
metadataWarnings?: string[];
|
|
60
|
+
metadataErrors?: string[];
|
|
61
|
+
owner?: string;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export type TaskGroup = {
|
|
65
|
+
key: string;
|
|
66
|
+
title: string;
|
|
67
|
+
artifacts: Artifact[];
|
|
68
|
+
byType: Record<ArtifactType, Artifact[]>;
|
|
69
|
+
status: string;
|
|
70
|
+
description?: string;
|
|
71
|
+
updated?: string;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export type HardnessCategory =
|
|
75
|
+
| "Code Architecture"
|
|
76
|
+
| "Component Primitives"
|
|
77
|
+
| "Code Quality"
|
|
78
|
+
| "React Hooks"
|
|
79
|
+
| "API & Platform";
|
|
80
|
+
|
|
81
|
+
export type HardnessItemEvidence = {
|
|
82
|
+
file: string;
|
|
83
|
+
status: "pass" | "violation" | "not-scanned";
|
|
84
|
+
detail?: string;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export type HardnessItem = {
|
|
88
|
+
id: string;
|
|
89
|
+
category: HardnessCategory;
|
|
90
|
+
title: string;
|
|
91
|
+
description: string;
|
|
92
|
+
checked: boolean;
|
|
93
|
+
state: "pass" | "violation" | "not-scanned";
|
|
94
|
+
passCount: number;
|
|
95
|
+
totalCount: number;
|
|
96
|
+
score: string;
|
|
97
|
+
whatWasDone: string;
|
|
98
|
+
whatNeedsToBeDone: string;
|
|
99
|
+
evidence: HardnessItemEvidence[];
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export type HardnessScanReport = {
|
|
103
|
+
generatedAt: string;
|
|
104
|
+
items: HardnessItem[];
|
|
105
|
+
totalChecked: number;
|
|
106
|
+
totalItems: number;
|
|
107
|
+
healthScore: string;
|
|
108
|
+
notScanned: number;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export type LifecycleStageState =
|
|
112
|
+
| "complete"
|
|
113
|
+
| "current"
|
|
114
|
+
| "missing"
|
|
115
|
+
| "blocked"
|
|
116
|
+
| "not-verified";
|
|
117
|
+
|
|
118
|
+
export type LifecycleStage = {
|
|
119
|
+
name: string;
|
|
120
|
+
state: LifecycleStageState;
|
|
121
|
+
artifacts: Artifact[];
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
export type ActionItemSeverity = "blocked" | "high" | "medium" | "low";
|
|
125
|
+
|
|
126
|
+
export type ActionItem = {
|
|
127
|
+
id: string;
|
|
128
|
+
severity: ActionItemSeverity;
|
|
129
|
+
title: string;
|
|
130
|
+
reason: string;
|
|
131
|
+
artifact: Artifact;
|
|
132
|
+
date: string;
|
|
133
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare module "virtual:workspace-artifacts" {
|
|
2
|
+
import type { Artifact, HardnessScanReport, ProjectProfile } from "./types";
|
|
3
|
+
|
|
4
|
+
export const artifacts: Artifact[];
|
|
5
|
+
export const hardnessReport: HardnessScanReport;
|
|
6
|
+
export const projectProfile: ProjectProfile;
|
|
7
|
+
export const artifactEndpoint: string;
|
|
8
|
+
export const generatedAt: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"allowSyntheticDefaultImports": true,
|
|
4
|
+
"isolatedModules": true,
|
|
5
|
+
"jsx": "react-jsx",
|
|
6
|
+
"lib": ["DOM", "DOM.Iterable", "ES2022"],
|
|
7
|
+
"module": "ESNext",
|
|
8
|
+
"moduleResolution": "Bundler",
|
|
9
|
+
"noEmit": true,
|
|
10
|
+
"noFallthroughCasesInSwitch": true,
|
|
11
|
+
"noImplicitOverride": true,
|
|
12
|
+
"noImplicitReturns": true,
|
|
13
|
+
"noUnusedLocals": true,
|
|
14
|
+
"noUnusedParameters": true,
|
|
15
|
+
"resolveJsonModule": true,
|
|
16
|
+
"skipLibCheck": true,
|
|
17
|
+
"strict": true,
|
|
18
|
+
"target": "ES2022",
|
|
19
|
+
"types": ["vite/client", "bun-types"]
|
|
20
|
+
},
|
|
21
|
+
"include": ["src", "vite.config.ts"]
|
|
22
|
+
}
|