@shinnodua/agent-workflows 0.0.0-stage → 0.2.6

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 (190) hide show
  1. package/.agents/agents/backend-developer/agent.md +39 -0
  2. package/.agents/agents/frontend-developer/agent.md +42 -0
  3. package/.agents/agents/project-manager/agent.md +37 -0
  4. package/.agents/agents/tech-lead/agent.md +41 -0
  5. package/.agents/agents/ui-ux-designer/agent.md +41 -0
  6. package/.agents/skills/add-project/SKILL.md +90 -0
  7. package/.agents/skills/add-project/agents/openai.yaml +4 -0
  8. package/.agents/skills/add-project/references/save-protocol.md +90 -0
  9. package/.agents/skills/approve-plan/SKILL.md +86 -0
  10. package/.agents/skills/approve-plan/agents/openai.yaml +4 -0
  11. package/.agents/skills/approve-prd/SKILL.md +59 -0
  12. package/.agents/skills/approve-prd/agents/openai.yaml +4 -0
  13. package/.agents/skills/auto-mode/SKILL.md +103 -0
  14. package/.agents/skills/auto-mode/agents/openai.yaml +4 -0
  15. package/.agents/skills/create-design/SKILL.md +197 -0
  16. package/.agents/skills/create-design/agents/openai.yaml +4 -0
  17. package/.agents/skills/create-diagram/SKILL.md +83 -0
  18. package/.agents/skills/create-diagram/agents/openai.yaml +4 -0
  19. package/.agents/skills/create-plan/SKILL.md +104 -0
  20. package/.agents/skills/create-plan/agents/openai.yaml +4 -0
  21. package/.agents/skills/create-prd/SKILL.md +82 -0
  22. package/.agents/skills/create-prd/agents/openai.yaml +4 -0
  23. package/.agents/skills/griling-plan/SKILL.md +114 -0
  24. package/.agents/skills/griling-plan/agents/openai.yaml +4 -0
  25. package/.agents/skills/griling-prd/SKILL.md +91 -0
  26. package/.agents/skills/griling-prd/agents/openai.yaml +4 -0
  27. package/.agents/skills/package-installation/SKILL.md +67 -0
  28. package/.agents/skills/package-installation/agents/openai.yaml +4 -0
  29. package/.agents/skills/project-setup/SKILL.md +104 -0
  30. package/.agents/skills/project-setup/agents/openai.yaml +3 -0
  31. package/.agents/skills/research/SKILL.md +61 -0
  32. package/.agents/skills/research/agents/openai.yaml +4 -0
  33. package/.agents/skills/sprint-meeting/SKILL.md +230 -0
  34. package/.agents/skills/sprint-meeting/agents/openai.yaml +4 -0
  35. package/.claude/agents/backend-developer.md +7 -0
  36. package/.claude/agents/frontend-developer.md +7 -0
  37. package/.claude/agents/project-manager.md +7 -0
  38. package/.claude/agents/tech-lead.md +7 -0
  39. package/.claude/agents/ui-ux-designer.md +7 -0
  40. package/.claude/skills/add-project/SKILL.md +10 -0
  41. package/.claude/skills/approve-plan/SKILL.md +8 -0
  42. package/.claude/skills/approve-prd/SKILL.md +8 -0
  43. package/.claude/skills/auto-mode/SKILL.md +8 -0
  44. package/.claude/skills/create-design/SKILL.md +8 -0
  45. package/.claude/skills/create-diagram/SKILL.md +8 -0
  46. package/.claude/skills/create-plan/SKILL.md +8 -0
  47. package/.claude/skills/create-prd/SKILL.md +8 -0
  48. package/.claude/skills/griling-plan/SKILL.md +8 -0
  49. package/.claude/skills/griling-prd/SKILL.md +8 -0
  50. package/.claude/skills/package-installation/SKILL.md +8 -0
  51. package/.claude/skills/project-setup/SKILL.md +8 -0
  52. package/.claude/skills/research/SKILL.md +8 -0
  53. package/.claude/skills/sprint-meeting/SKILL.md +8 -0
  54. package/.codex/prompts/add-project.md +3 -0
  55. package/.codex/prompts/approve-plan.md +3 -0
  56. package/.codex/prompts/approve-prd.md +3 -0
  57. package/.codex/prompts/auto-mode.md +3 -0
  58. package/.codex/prompts/create-design.md +3 -0
  59. package/.codex/prompts/create-diagram.md +3 -0
  60. package/.codex/prompts/create-plan.md +3 -0
  61. package/.codex/prompts/create-prd.md +3 -0
  62. package/.codex/prompts/griling-plan.md +3 -0
  63. package/.codex/prompts/griling-prd.md +3 -0
  64. package/.codex/prompts/grilling-plan.md +3 -0
  65. package/.codex/prompts/project-setup.md +3 -0
  66. package/.codex/prompts/research.md +3 -0
  67. package/.codex/prompts/sprint-meeting.md +3 -0
  68. package/.gitmodules.example +9 -0
  69. package/AGENTS.md +84 -0
  70. package/CLAUDE.md +1 -0
  71. package/INSTALL.md +284 -0
  72. package/LICENSE +21 -0
  73. package/README.md +342 -2
  74. package/bin/postinstall.js +57 -0
  75. package/bin/workflows.js +1172 -0
  76. package/bin/workflows.test.mjs +682 -0
  77. package/commands/add-project.md +20 -0
  78. package/commands/approve-plan.md +25 -0
  79. package/commands/approve-prd.md +24 -0
  80. package/commands/auto-mode.md +15 -0
  81. package/commands/create-design.md +20 -0
  82. package/commands/create-diagram.md +16 -0
  83. package/commands/create-plan.md +22 -0
  84. package/commands/create-prd.md +16 -0
  85. package/commands/griling-plan.md +16 -0
  86. package/commands/griling-prd.md +16 -0
  87. package/commands/grilling-plan.md +16 -0
  88. package/commands/project-setup.md +16 -0
  89. package/commands/research.md +16 -0
  90. package/commands/sprint-meeting.md +16 -0
  91. package/dashboard/.agents/skills/coding-conventions/SKILL.md +76 -0
  92. package/dashboard/.agents/skills/coding-conventions/agents/openai.yaml +4 -0
  93. package/dashboard/.agents/skills/design-system-guideline/SKILL.md +51 -0
  94. package/dashboard/.agents/skills/design-system-guideline/agents/openai.yaml +4 -0
  95. package/dashboard/.agents/skills/lint-and-fix/SKILL.md +55 -0
  96. package/dashboard/.agents/skills/lint-and-fix/agents/openai.yaml +4 -0
  97. package/dashboard/.agents/skills/taste-ui/SKILL.md +45 -0
  98. package/dashboard/.agents/skills/taste-ui/agents/openai.yaml +4 -0
  99. package/dashboard/AGENTS.md +43 -0
  100. package/dashboard/bun.lock +352 -0
  101. package/dashboard/index.html +12 -0
  102. package/dashboard/package.json +32 -0
  103. package/dashboard/src/App.tsx +5 -0
  104. package/dashboard/src/features/task-status/components/ActionRequiredPanel/ActionRequiredPanel.module.css +85 -0
  105. package/dashboard/src/features/task-status/components/ActionRequiredPanel/ActionRequiredPanel.tsx +80 -0
  106. package/dashboard/src/features/task-status/components/ArtifactButton/ArtifactButton.module.css +25 -0
  107. package/dashboard/src/features/task-status/components/ArtifactButton/ArtifactButton.tsx +29 -0
  108. package/dashboard/src/features/task-status/components/ArtifactSummaryCards/ArtifactSummaryCards.module.css +29 -0
  109. package/dashboard/src/features/task-status/components/ArtifactSummaryCards/ArtifactSummaryCards.tsx +35 -0
  110. package/dashboard/src/features/task-status/components/CategoryPanel/CategoryPanel.module.css +85 -0
  111. package/dashboard/src/features/task-status/components/CategoryPanel/CategoryPanel.tsx +150 -0
  112. package/dashboard/src/features/task-status/components/DashboardHeader/DashboardHeader.module.css +41 -0
  113. package/dashboard/src/features/task-status/components/DashboardHeader/DashboardHeader.tsx +41 -0
  114. package/dashboard/src/features/task-status/components/FilesPanel/FilesPanel.module.css +25 -0
  115. package/dashboard/src/features/task-status/components/FilesPanel/FilesPanel.tsx +40 -0
  116. package/dashboard/src/features/task-status/components/HardnessEngineeringPanel/HardnessEngineeringPanel.module.css +330 -0
  117. package/dashboard/src/features/task-status/components/HardnessEngineeringPanel/HardnessEngineeringPanel.tsx +299 -0
  118. package/dashboard/src/features/task-status/components/LifecyclePanel/LifecyclePanel.module.css +74 -0
  119. package/dashboard/src/features/task-status/components/LifecyclePanel/LifecyclePanel.tsx +79 -0
  120. package/dashboard/src/features/task-status/components/MarkdownDialog/MarkdownDialog.module.css +133 -0
  121. package/dashboard/src/features/task-status/components/MarkdownDialog/MarkdownDialog.tsx +233 -0
  122. package/dashboard/src/features/task-status/components/Sidebar/Sidebar.module.css +53 -0
  123. package/dashboard/src/features/task-status/components/Sidebar/Sidebar.tsx +163 -0
  124. package/dashboard/src/features/task-status/components/StatusBadge/StatusBadge.module.css +41 -0
  125. package/dashboard/src/features/task-status/components/StatusBadge/StatusBadge.tsx +48 -0
  126. package/dashboard/src/features/task-status/components/TaskOverview/TaskOverview.module.css +97 -0
  127. package/dashboard/src/features/task-status/components/TaskOverview/TaskOverview.tsx +128 -0
  128. package/dashboard/src/features/task-status/components/TaskStatusDashboard/TaskStatusDashboard.module.css +9 -0
  129. package/dashboard/src/features/task-status/components/TaskStatusDashboard/TaskStatusDashboard.tsx +318 -0
  130. package/dashboard/src/features/task-status/components/WorkflowPanel/WorkflowPanel.module.css +221 -0
  131. package/dashboard/src/features/task-status/components/WorkflowPanel/WorkflowPanel.tsx +344 -0
  132. package/dashboard/src/features/task-status/taskStatusConfig.ts +100 -0
  133. package/dashboard/src/features/task-status/utils/actionItems.ts +247 -0
  134. package/dashboard/src/features/task-status/utils/artifactGrouping.ts +328 -0
  135. package/dashboard/src/features/task-status/utils/hardnessScanner.ts +406 -0
  136. package/dashboard/src/features/task-status/utils/lifecycle.ts +73 -0
  137. package/dashboard/src/features/task-status/utils/markdownInline/markdownInline.module.css +11 -0
  138. package/dashboard/src/features/task-status/utils/markdownInline/markdownInline.tsx +104 -0
  139. package/dashboard/src/features/task-status/utils/markdownLinks.ts +83 -0
  140. package/dashboard/src/features/task-status/utils/markdownRenderer/markdownRenderer.module.css +74 -0
  141. package/dashboard/src/features/task-status/utils/markdownRenderer/markdownRenderer.tsx +326 -0
  142. package/dashboard/src/features/task-status/utils/status.ts +7 -0
  143. package/dashboard/src/features/task-status/utils/test/actionItems.test.ts +134 -0
  144. package/dashboard/src/features/task-status/utils/test/artifactGrouping.test.ts +294 -0
  145. package/dashboard/src/features/task-status/utils/test/hardnessScanner.test.ts +138 -0
  146. package/dashboard/src/features/task-status/utils/test/lifecycle.test.ts +49 -0
  147. package/dashboard/src/features/task-status/utils/test/markdownInline.test.ts +41 -0
  148. package/dashboard/src/features/task-status/utils/test/markdownLinks.test.ts +158 -0
  149. package/dashboard/src/features/task-status/utils/test/workspaceMetadata.test.ts +37 -0
  150. package/dashboard/src/features/task-status/utils/workspaceMetadata.ts +175 -0
  151. package/dashboard/src/main.tsx +16 -0
  152. package/dashboard/src/shared/design-system.css +134 -0
  153. package/dashboard/src/shared/design-system.tsx +84 -0
  154. package/dashboard/src/styles.css +41 -0
  155. package/dashboard/src/types.ts +133 -0
  156. package/dashboard/src/workspace-artifacts.d.ts +9 -0
  157. package/dashboard/tsconfig.json +22 -0
  158. package/dashboard/vite.config.ts +579 -0
  159. package/designs/.gitkeep +1 -0
  160. package/docs/add-project-command-completion.md +117 -0
  161. package/docs/public-npm-registry-completion.md +104 -0
  162. package/docs/workflows.png +0 -0
  163. package/docs/workspace-template-setup.md +229 -0
  164. package/meeting-logs/.gitkeep +1 -0
  165. package/modules/.gitkeep +1 -0
  166. package/package.json +96 -5
  167. package/plans/.gitkeep +1 -0
  168. package/prds/.gitkeep +1 -0
  169. package/project/PROJECT.md +26 -0
  170. package/project/repositories.json +72 -0
  171. package/project/validation.json +9 -0
  172. package/project/workflows.json +20 -0
  173. package/research/.gitkeep +1 -0
  174. package/roles/backend-developer.md +26 -0
  175. package/roles/frontend-developer.md +25 -0
  176. package/roles/project-manager.md +42 -0
  177. package/roles/tech-lead.md +42 -0
  178. package/roles/ui-ux-designer.md +43 -0
  179. package/scripts/add-project.mjs +990 -0
  180. package/scripts/add-project.test.mjs +804 -0
  181. package/scripts/check-staged-security.mjs +97 -0
  182. package/scripts/check-staged-security.test.mjs +68 -0
  183. package/scripts/workspace-integrity.ts +220 -0
  184. package/templates/auto-mode-completion-summary-template.md +78 -0
  185. package/templates/meeting-log-template.md +177 -0
  186. package/templates/plan-template.md +219 -0
  187. package/templates/prd-template.md +106 -0
  188. package/templates/research-template.md +119 -0
  189. package/workflows.md +590 -0
  190. package/workspace.config.json +43 -0
@@ -0,0 +1,25 @@
1
+ @reference "../../../../styles.css";
2
+
3
+ .button {
4
+ @apply w-full rounded-xl border-[3px] border-black p-3 text-left transition-transform hover:-translate-y-0.5 focus-visible:outline focus-visible:outline-[4px] focus-visible:outline-offset-2 focus-visible:outline-neo-blue;
5
+ }
6
+
7
+ .selected {
8
+ @apply bg-neo-yellow shadow-neo-active;
9
+ }
10
+
11
+ .default {
12
+ @apply bg-white;
13
+ }
14
+
15
+ .header {
16
+ @apply flex items-center justify-between gap-2;
17
+ }
18
+
19
+ .title {
20
+ @apply min-w-0 truncate text-sm font-black;
21
+ }
22
+
23
+ .path {
24
+ @apply mt-1 block break-all text-xs font-black text-black/60;
25
+ }
@@ -0,0 +1,29 @@
1
+ import type { Artifact } from "../../../../types";
2
+ import { StatusBadge } from "../StatusBadge/StatusBadge";
3
+ import styles from "./ArtifactButton.module.css";
4
+
5
+ type ArtifactButtonProps = {
6
+ artifact: Artifact;
7
+ isSelected: boolean;
8
+ onSelect: () => void;
9
+ };
10
+
11
+ export function ArtifactButton(props: ArtifactButtonProps) {
12
+ const { artifact, isSelected, onSelect } = props;
13
+
14
+ return (
15
+ <button
16
+ className={`${styles.button} ${
17
+ isSelected ? styles.selected : styles.default
18
+ }`}
19
+ onClick={onSelect}
20
+ type="button"
21
+ >
22
+ <span className={styles.header}>
23
+ <span className={styles.title}>{artifact.title}</span>
24
+ <StatusBadge status={artifact.status} />
25
+ </span>
26
+ <span className={styles.path}>{artifact.relativePath}</span>
27
+ </button>
28
+ );
29
+ }
@@ -0,0 +1,29 @@
1
+ @reference "../../../../styles.css";
2
+
3
+ .grid {
4
+ @apply grid gap-3 md:grid-cols-5;
5
+ }
6
+
7
+ .card {
8
+ @apply p-4;
9
+ }
10
+
11
+ .row {
12
+ @apply flex items-center justify-between gap-3;
13
+ }
14
+
15
+ .labelWrap {
16
+ @apply flex min-w-0 items-center gap-2;
17
+ }
18
+
19
+ .icon {
20
+ @apply size-5 shrink-0;
21
+ }
22
+
23
+ .label {
24
+ @apply truncate text-sm font-black uppercase;
25
+ }
26
+
27
+ .count {
28
+ @apply text-3xl font-black;
29
+ }
@@ -0,0 +1,35 @@
1
+ import { Card } from "../../../../shared/design-system";
2
+ import type { Artifact } from "../../../../types";
3
+ import { artifactTypes } from "../../taskStatusConfig";
4
+ import { countArtifactsByType } from "../../utils/artifactGrouping";
5
+ import styles from "./ArtifactSummaryCards.module.css";
6
+
7
+ type ArtifactSummaryCardsProps = {
8
+ artifacts: Artifact[];
9
+ };
10
+
11
+ export function ArtifactSummaryCards(props: ArtifactSummaryCardsProps) {
12
+ const { artifacts } = props;
13
+
14
+ return (
15
+ <section className={styles.grid}>
16
+ {artifactTypes.map((artifactType) => (
17
+ <Card
18
+ className={styles.card}
19
+ key={artifactType.type}
20
+ variant={artifactType.accent}
21
+ >
22
+ <div className={styles.row}>
23
+ <div className={styles.labelWrap}>
24
+ <artifactType.icon className={styles.icon} />
25
+ <span className={styles.label}>{artifactType.label}</span>
26
+ </div>
27
+ <span className={styles.count}>
28
+ {countArtifactsByType(artifacts, artifactType.type)}
29
+ </span>
30
+ </div>
31
+ </Card>
32
+ ))}
33
+ </section>
34
+ );
35
+ }
@@ -0,0 +1,85 @@
1
+ @reference "../../../../styles.css";
2
+
3
+ .header {
4
+ @apply mb-3 flex items-center justify-between gap-3;
5
+ }
6
+
7
+ .titleWrap {
8
+ @apply flex items-center gap-2;
9
+ }
10
+
11
+ .icon {
12
+ @apply size-5;
13
+ }
14
+
15
+ .title {
16
+ @apply text-2xl font-black;
17
+ }
18
+
19
+ .countBadge {
20
+ @apply rounded-full border-[3px] border-black bg-white px-3 py-1 text-xs font-black uppercase;
21
+ }
22
+
23
+ .list {
24
+ @apply grid gap-3;
25
+ }
26
+
27
+ .tabs {
28
+ @apply mb-4 flex flex-wrap gap-2 border-b-[3px] border-black pb-3;
29
+ }
30
+
31
+ .tab {
32
+ @apply rounded-xl border-[3px] border-black px-3 py-2 text-sm font-black transition-transform hover:-translate-y-0.5;
33
+ }
34
+
35
+ .tabActive {
36
+ @apply bg-neo-yellow shadow-neo-active;
37
+ }
38
+
39
+ .tabInactive {
40
+ @apply bg-white;
41
+ }
42
+
43
+ .tabCount {
44
+ @apply ml-2 text-xs text-black/60;
45
+ }
46
+
47
+ .card {
48
+ @apply p-4;
49
+ }
50
+
51
+ .cardInner {
52
+ @apply flex flex-col gap-3 md:flex-row md:items-start md:justify-between;
53
+ }
54
+
55
+ .cardText {
56
+ @apply min-w-0;
57
+ }
58
+
59
+ .meta {
60
+ @apply flex flex-wrap items-center gap-2;
61
+ }
62
+
63
+ .singular {
64
+ @apply text-sm font-black uppercase;
65
+ }
66
+
67
+ .artifactTitle {
68
+ @apply mt-2 text-xl font-black leading-tight;
69
+ }
70
+
71
+ .path {
72
+ @apply mt-1 break-all text-xs font-black text-black/60;
73
+ }
74
+
75
+ .emptyCard {
76
+ @apply p-5;
77
+ }
78
+
79
+ .emptyTitle {
80
+ @apply font-black;
81
+ }
82
+
83
+ .emptyCopy {
84
+ @apply mt-1 text-sm font-bold text-black/60;
85
+ }
@@ -0,0 +1,150 @@
1
+ import { Button, Card } from "../../../../shared/design-system";
2
+ import type {
3
+ Artifact,
4
+ DocumentModuleFilter,
5
+ DocumentModuleTab,
6
+ } from "../../../../types";
7
+ import type { artifactTypes } from "../../taskStatusConfig";
8
+ import { StatusBadge } from "../StatusBadge/StatusBadge";
9
+ import styles from "./CategoryPanel.module.css";
10
+
11
+ type CategoryPanelProps = {
12
+ activeDocumentModule?: DocumentModuleFilter;
13
+ artifactsForType: Artifact[];
14
+ documentModuleTabs?: DocumentModuleTab[];
15
+ documentModuleCounts?: Record<DocumentModuleFilter, number>;
16
+ onSelectArtifact: (artifact: Artifact) => void;
17
+ onSelectDocumentModule?: (module: DocumentModuleFilter) => void;
18
+ type: (typeof artifactTypes)[number];
19
+ };
20
+
21
+ export function CategoryPanel(props: CategoryPanelProps) {
22
+ const {
23
+ activeDocumentModule,
24
+ artifactsForType,
25
+ documentModuleTabs,
26
+ documentModuleCounts,
27
+ onSelectArtifact,
28
+ onSelectDocumentModule,
29
+ type,
30
+ } = props;
31
+ const Icon = type.icon;
32
+ const shouldShowDocumentTabs =
33
+ type.type === "document" &&
34
+ activeDocumentModule &&
35
+ documentModuleTabs &&
36
+ documentModuleCounts &&
37
+ onSelectDocumentModule;
38
+
39
+ return (
40
+ <section>
41
+ <div className={styles.header}>
42
+ <div className={styles.titleWrap}>
43
+ <Icon className={styles.icon} />
44
+ <h2 className={styles.title}>{type.label}</h2>
45
+ </div>
46
+ <span className={styles.countBadge}>
47
+ {artifactsForType.length} found
48
+ </span>
49
+ </div>
50
+ {shouldShowDocumentTabs ? (
51
+ <DocumentModuleTabs
52
+ activeModule={activeDocumentModule}
53
+ counts={documentModuleCounts}
54
+ tabs={documentModuleTabs}
55
+ onSelectModule={onSelectDocumentModule}
56
+ />
57
+ ) : null}
58
+
59
+ {artifactsForType.length > 0 ? (
60
+ <div className={styles.list}>
61
+ {artifactsForType.map((artifact) => (
62
+ <CategoryArtifactCard
63
+ artifact={artifact}
64
+ key={artifact.relativePath}
65
+ onSelectArtifact={onSelectArtifact}
66
+ type={type}
67
+ />
68
+ ))}
69
+ </div>
70
+ ) : (
71
+ <CategoryEmptyState label={type.label} />
72
+ )}
73
+ </section>
74
+ );
75
+ }
76
+
77
+ function DocumentModuleTabs(props: {
78
+ activeModule: DocumentModuleFilter;
79
+ counts: Record<DocumentModuleFilter, number>;
80
+ tabs: DocumentModuleTab[];
81
+ onSelectModule: (module: DocumentModuleFilter) => void;
82
+ }) {
83
+ const { activeModule, counts, tabs, onSelectModule } = props;
84
+
85
+ return (
86
+ <div className={styles.tabs}>
87
+ {tabs.map((tab) => {
88
+ const isActive = activeModule === tab.module;
89
+
90
+ return (
91
+ <button
92
+ className={`${styles.tab} ${
93
+ isActive ? styles.tabActive : styles.tabInactive
94
+ }`}
95
+ key={tab.module}
96
+ onClick={() => onSelectModule(tab.module)}
97
+ type="button"
98
+ >
99
+ {tab.label}
100
+ <span className={styles.tabCount}>{counts[tab.module]}</span>
101
+ </button>
102
+ );
103
+ })}
104
+ </div>
105
+ );
106
+ }
107
+
108
+ function CategoryArtifactCard(props: {
109
+ artifact: Artifact;
110
+ onSelectArtifact: (artifact: Artifact) => void;
111
+ type: (typeof artifactTypes)[number];
112
+ }) {
113
+ const { artifact, onSelectArtifact, type } = props;
114
+
115
+ return (
116
+ <Card className={styles.card} variant={type.accent}>
117
+ <div className={styles.cardInner}>
118
+ <div className={styles.cardText}>
119
+ <div className={styles.meta}>
120
+ <span className={styles.singular}>{type.singular}</span>
121
+ <StatusBadge status={artifact.status} />
122
+ </div>
123
+ <h3 className={styles.artifactTitle}>{artifact.title}</h3>
124
+ <p className={styles.path}>{artifact.relativePath}</p>
125
+ </div>
126
+ <Button
127
+ onClick={() => onSelectArtifact(artifact)}
128
+ size="sm"
129
+ variant="white"
130
+ >
131
+ Read
132
+ </Button>
133
+ </div>
134
+ </Card>
135
+ );
136
+ }
137
+
138
+ function CategoryEmptyState(props: { label: string }) {
139
+ const { label } = props;
140
+
141
+ return (
142
+ <Card className={styles.emptyCard} variant="white">
143
+ <p className={styles.emptyTitle}>No {label.toLowerCase()} found.</p>
144
+ <p className={styles.emptyCopy}>
145
+ The dashboard is watching the approved workspace folder for this
146
+ artifact type.
147
+ </p>
148
+ </Card>
149
+ );
150
+ }
@@ -0,0 +1,41 @@
1
+ @reference "../../../../styles.css";
2
+
3
+ .header {
4
+ @apply grid gap-5 xl:grid-cols-[1fr_320px] xl:items-end;
5
+ }
6
+
7
+ .eyebrow {
8
+ @apply mb-3 inline-flex items-center gap-2 rounded-full border-[3px] border-black bg-neo-blue px-4 py-2 font-black;
9
+ }
10
+
11
+ .icon {
12
+ @apply size-5;
13
+ }
14
+
15
+ .title {
16
+ @apply max-w-4xl text-4xl font-black leading-none sm:text-5xl;
17
+ }
18
+
19
+ .copy {
20
+ @apply mt-3 max-w-3xl text-base font-bold text-black/70 sm:text-lg;
21
+ }
22
+
23
+ .summaryCard {
24
+ @apply p-4;
25
+ }
26
+
27
+ .summaryLabel {
28
+ @apply text-sm font-black uppercase;
29
+ }
30
+
31
+ .summaryCount {
32
+ @apply mt-2 text-2xl font-black;
33
+ }
34
+
35
+ .summaryTime {
36
+ @apply mt-1 text-sm font-bold;
37
+ }
38
+
39
+ .summaryWarning {
40
+ @apply m-0 text-xs font-black text-neo-pink;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { LayoutDashboard } from "lucide-react";
2
+ import { Card } from "../../../../shared/design-system";
3
+ import styles from "./DashboardHeader.module.css";
4
+
5
+ type DashboardHeaderProps = {
6
+ artifactCount: number;
7
+ generatedAt: string;
8
+ markdownMetadataCount: number;
9
+ };
10
+
11
+ export function DashboardHeader(props: DashboardHeaderProps) {
12
+ const { artifactCount, generatedAt, markdownMetadataCount } = props;
13
+
14
+ return (
15
+ <section className={styles.header}>
16
+ <div>
17
+ <div className={styles.eyebrow}>
18
+ <LayoutDashboard className={styles.icon} />
19
+ Agent Workflow Workspace
20
+ </div>
21
+ <h1 className={styles.title}>Task Status Page</h1>
22
+ <p className={styles.copy}>
23
+ Local task tracking with a readable Markdown view for PRDs, research,
24
+ designs, plans, and documents.
25
+ </p>
26
+ </div>
27
+ <Card variant="yellow" className={styles.summaryCard}>
28
+ <p className={styles.summaryLabel}>Generated from files</p>
29
+ <p className={styles.summaryCount}>{artifactCount} artifacts</p>
30
+ <p className={styles.summaryTime}>
31
+ {new Date(generatedAt).toLocaleString()}
32
+ </p>
33
+ {markdownMetadataCount > 0 ? (
34
+ <p className={styles.summaryWarning}>
35
+ {markdownMetadataCount} Markdown metadata files
36
+ </p>
37
+ ) : null}
38
+ </Card>
39
+ </section>
40
+ );
41
+ }
@@ -0,0 +1,25 @@
1
+ @reference "../../../../styles.css";
2
+
3
+ .card {
4
+ @apply p-4;
5
+ }
6
+
7
+ .header {
8
+ @apply mb-3 flex items-center justify-between gap-3;
9
+ }
10
+
11
+ .title {
12
+ @apply text-2xl font-black;
13
+ }
14
+
15
+ .countBadge {
16
+ @apply rounded-full border-[3px] border-black bg-neo-lime px-3 py-1 text-xs font-black uppercase;
17
+ }
18
+
19
+ .grid {
20
+ @apply grid gap-2 md:grid-cols-2;
21
+ }
22
+
23
+ .empty {
24
+ @apply rounded-xl border-[3px] border-black bg-background p-3 text-sm font-bold;
25
+ }
@@ -0,0 +1,40 @@
1
+ import { Card } from "../../../../shared/design-system";
2
+ import type { Artifact } from "../../../../types";
3
+ import { ArtifactButton } from "../ArtifactButton/ArtifactButton";
4
+ import styles from "./FilesPanel.module.css";
5
+
6
+ type FilesPanelProps = {
7
+ activeArtifact: Artifact | null;
8
+ files: Artifact[];
9
+ onSelectArtifact: (artifact: Artifact) => void;
10
+ title: string;
11
+ };
12
+
13
+ export function FilesPanel(props: FilesPanelProps) {
14
+ const { activeArtifact, files, onSelectArtifact, title } = props;
15
+
16
+ return (
17
+ <Card className={styles.card} variant="white">
18
+ <div className={styles.header}>
19
+ <h2 className={styles.title}>{title}</h2>
20
+ <span className={styles.countBadge}>{files.length} files</span>
21
+ </div>
22
+ <div className={styles.grid}>
23
+ {files.length > 0 ? (
24
+ files.map((artifact) => (
25
+ <ArtifactButton
26
+ artifact={artifact}
27
+ isSelected={
28
+ activeArtifact?.relativePath === artifact.relativePath
29
+ }
30
+ key={artifact.relativePath}
31
+ onSelect={() => onSelectArtifact(artifact)}
32
+ />
33
+ ))
34
+ ) : (
35
+ <p className={styles.empty}>No files match the current filter.</p>
36
+ )}
37
+ </div>
38
+ </Card>
39
+ );
40
+ }