@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,579 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import tailwindcss from "@tailwindcss/vite";
|
|
5
|
+
import react from "@vitejs/plugin-react";
|
|
6
|
+
import { defineConfig, type Plugin } from "vite";
|
|
7
|
+
import {
|
|
8
|
+
buildScanReportFromResults,
|
|
9
|
+
type FileScanResult,
|
|
10
|
+
} from "./src/features/task-status/utils/hardnessScanner";
|
|
11
|
+
import { parseWorkspaceMetadata } from "./src/features/task-status/utils/workspaceMetadata";
|
|
12
|
+
import type {
|
|
13
|
+
Artifact,
|
|
14
|
+
ArtifactType,
|
|
15
|
+
ProjectProfile,
|
|
16
|
+
WorkspaceModule,
|
|
17
|
+
} from "./src/types";
|
|
18
|
+
|
|
19
|
+
type WorkspaceConfig = {
|
|
20
|
+
artifactDirectories?: string[];
|
|
21
|
+
projectProfile?: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const currentDir = path.dirname(fileURLToPath(import.meta.url));
|
|
25
|
+
const packageRoot = path.resolve(currentDir, "..");
|
|
26
|
+
const workspaceRoot = path.resolve(
|
|
27
|
+
process.env.WORKFLOWS_WORKSPACE_ROOT ?? packageRoot,
|
|
28
|
+
);
|
|
29
|
+
const virtualModuleId = "virtual:workspace-artifacts";
|
|
30
|
+
const resolvedVirtualModuleId = `\0${virtualModuleId}`;
|
|
31
|
+
const artifactEndpoint = "/__workspace-artifacts.json";
|
|
32
|
+
const workspaceConfig = loadWorkspaceConfig();
|
|
33
|
+
const projectProfile = loadProjectProfile(workspaceConfig);
|
|
34
|
+
const artifactTargets = buildArtifactTargets(workspaceConfig, projectProfile);
|
|
35
|
+
|
|
36
|
+
const statusPattern =
|
|
37
|
+
/^\s*-\s*Status:\s*`?([^`\n]+?)`?\s*$|^\s*Status:\s*`?([^`\n]+?)`?\s*$/im;
|
|
38
|
+
|
|
39
|
+
function walkMarkdown(directory: string): string[] {
|
|
40
|
+
if (!fs.existsSync(directory)) {
|
|
41
|
+
return [];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const entries = fs.readdirSync(directory, { withFileTypes: true });
|
|
45
|
+
const files: string[] = [];
|
|
46
|
+
|
|
47
|
+
for (const entry of entries) {
|
|
48
|
+
const entryPath = path.join(directory, entry.name);
|
|
49
|
+
|
|
50
|
+
if (entry.isDirectory()) {
|
|
51
|
+
if ([".git", "dist", "node_modules"].includes(entry.name)) {
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
files.push(...walkMarkdown(entryPath));
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (entry.isFile() && entry.name.endsWith(".md")) {
|
|
59
|
+
files.push(entryPath);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return files;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function getFirstMatch(content: string, patterns: RegExp[]) {
|
|
67
|
+
for (const pattern of patterns) {
|
|
68
|
+
const match = content.match(pattern);
|
|
69
|
+
const value = match?.[1]?.trim();
|
|
70
|
+
if (value) {
|
|
71
|
+
return value.replace(/^`|`$/g, "");
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function titleFrom(content: string, relativePath: string) {
|
|
79
|
+
return (
|
|
80
|
+
getFirstMatch(content, [
|
|
81
|
+
/^\s*-\s*Title:\s*`?([^`\n]+?)`?\s*$/im,
|
|
82
|
+
/^#\s+(.+)$/m,
|
|
83
|
+
]) ?? path.basename(relativePath, ".md")
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
function statusFrom(content: string) {
|
|
88
|
+
const match = content.match(statusPattern);
|
|
89
|
+
return (match?.[1] ?? match?.[2] ?? "unknown").trim().replace(/^`|`$/g, "");
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function loadWorkspaceConfig(): WorkspaceConfig {
|
|
93
|
+
const configPath = path.join(workspaceRoot, "workspace.config.json");
|
|
94
|
+
if (!fs.existsSync(configPath)) {
|
|
95
|
+
return {};
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return JSON.parse(fs.readFileSync(configPath, "utf8")) as WorkspaceConfig;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function loadProjectProfile(config: WorkspaceConfig): ProjectProfile {
|
|
102
|
+
const profilePath = path.join(
|
|
103
|
+
workspaceRoot,
|
|
104
|
+
config.projectProfile ?? "project/repositories.json",
|
|
105
|
+
);
|
|
106
|
+
if (!fs.existsSync(profilePath)) {
|
|
107
|
+
return { repositories: [] };
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return JSON.parse(fs.readFileSync(profilePath, "utf8")) as ProjectProfile;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function buildArtifactTargets(
|
|
114
|
+
config: WorkspaceConfig,
|
|
115
|
+
profile: ProjectProfile,
|
|
116
|
+
): Array<{
|
|
117
|
+
type: ArtifactType;
|
|
118
|
+
directory: string;
|
|
119
|
+
sourceModule: WorkspaceModule;
|
|
120
|
+
}> {
|
|
121
|
+
const rootTypeByDirectory: Record<string, ArtifactType> = {
|
|
122
|
+
designs: "design",
|
|
123
|
+
docs: "document",
|
|
124
|
+
plans: "plan",
|
|
125
|
+
prds: "prd",
|
|
126
|
+
research: "research",
|
|
127
|
+
};
|
|
128
|
+
const rootTargets = (
|
|
129
|
+
config.artifactDirectories ?? [
|
|
130
|
+
"prds",
|
|
131
|
+
"plans",
|
|
132
|
+
"designs",
|
|
133
|
+
"research",
|
|
134
|
+
"docs",
|
|
135
|
+
]
|
|
136
|
+
).flatMap((directory) => {
|
|
137
|
+
const type = rootTypeByDirectory[directory];
|
|
138
|
+
return type ? [{ type, directory, sourceModule: "workspace" }] : [];
|
|
139
|
+
});
|
|
140
|
+
const submoduleTargets = profile.repositories.flatMap((repository) => {
|
|
141
|
+
const directories = repository.artifactDirectories ?? {};
|
|
142
|
+
return [
|
|
143
|
+
directories.plans
|
|
144
|
+
? {
|
|
145
|
+
type: "plan" as const,
|
|
146
|
+
directory: directories.plans,
|
|
147
|
+
sourceModule: repository.id,
|
|
148
|
+
}
|
|
149
|
+
: undefined,
|
|
150
|
+
directories.designs
|
|
151
|
+
? {
|
|
152
|
+
type: "design" as const,
|
|
153
|
+
directory: directories.designs,
|
|
154
|
+
sourceModule: repository.id,
|
|
155
|
+
}
|
|
156
|
+
: undefined,
|
|
157
|
+
directories.research
|
|
158
|
+
? {
|
|
159
|
+
type: "research" as const,
|
|
160
|
+
directory: directories.research,
|
|
161
|
+
sourceModule: repository.id,
|
|
162
|
+
}
|
|
163
|
+
: undefined,
|
|
164
|
+
directories.docs
|
|
165
|
+
? {
|
|
166
|
+
type: "document" as const,
|
|
167
|
+
directory: directories.docs,
|
|
168
|
+
sourceModule: repository.id,
|
|
169
|
+
}
|
|
170
|
+
: undefined,
|
|
171
|
+
].filter((target): target is NonNullable<typeof target> => Boolean(target));
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
return [...rootTargets, ...submoduleTargets];
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
function idFrom(type: ArtifactType, content: string) {
|
|
178
|
+
const labelByType: Record<ArtifactType, string> = {
|
|
179
|
+
design: "Design ID",
|
|
180
|
+
document: "Document ID",
|
|
181
|
+
plan: "Plan ID",
|
|
182
|
+
prd: "PRD ID",
|
|
183
|
+
research: "Research ID",
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
return getFirstMatch(content, [
|
|
187
|
+
new RegExp(
|
|
188
|
+
`^\\s*-\\s*${labelByType[type]}:\\s*\`?([^\`\\n]+?)\`?\\s*$`,
|
|
189
|
+
"im",
|
|
190
|
+
),
|
|
191
|
+
]);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function relatedArtifactIdsFrom(content: string, ownId?: string) {
|
|
195
|
+
const idPattern = /\b(?:PRD|PLAN|DESIGN|RESEARCH)-\d{8}-[a-z0-9-]+\b/gi;
|
|
196
|
+
const ids = new Set<string>();
|
|
197
|
+
|
|
198
|
+
for (const match of content.matchAll(idPattern)) {
|
|
199
|
+
const id = match[0];
|
|
200
|
+
|
|
201
|
+
if (id !== ownId) {
|
|
202
|
+
ids.add(id);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
return Array.from(ids);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
function goalFrom(content: string) {
|
|
210
|
+
const lines = content.replace(/\r\n/g, "\n").split("\n");
|
|
211
|
+
const headingIndex = lines.findIndex((line) =>
|
|
212
|
+
/^##\s+Goal(s)?\s*$/i.test(line),
|
|
213
|
+
);
|
|
214
|
+
|
|
215
|
+
if (headingIndex === -1) {
|
|
216
|
+
return undefined;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
const sectionLines = getSectionLines(lines, headingIndex + 1);
|
|
220
|
+
const goalLines = sectionLines
|
|
221
|
+
.map((line) => line.trim())
|
|
222
|
+
.filter(Boolean)
|
|
223
|
+
.filter((line) => !/^[-*]\s*`?<[^>]+>`?\s*$/.test(line))
|
|
224
|
+
.map((line) => line.replace(/^[-*]\s+/, "").trim());
|
|
225
|
+
|
|
226
|
+
return goalLines.join(" ").trim() || undefined;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
function getSectionLines(lines: string[], startIndex: number) {
|
|
230
|
+
const sectionLines: string[] = [];
|
|
231
|
+
|
|
232
|
+
for (let index = startIndex; index < lines.length; index += 1) {
|
|
233
|
+
const line = lines[index] ?? "";
|
|
234
|
+
|
|
235
|
+
if (/^##\s+/.test(line)) {
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
sectionLines.push(line);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
return sectionLines;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
function taskKeyFrom(artifact: {
|
|
246
|
+
id?: string;
|
|
247
|
+
prdId?: string;
|
|
248
|
+
planId?: string;
|
|
249
|
+
parentPlanId?: string;
|
|
250
|
+
relativePath: string;
|
|
251
|
+
title: string;
|
|
252
|
+
}) {
|
|
253
|
+
const source =
|
|
254
|
+
artifact.prdId ??
|
|
255
|
+
artifact.parentPlanId ??
|
|
256
|
+
artifact.planId ??
|
|
257
|
+
artifact.id ??
|
|
258
|
+
artifact.relativePath.replace(/\.md$/i, "") ??
|
|
259
|
+
artifact.title;
|
|
260
|
+
|
|
261
|
+
return source
|
|
262
|
+
.toLowerCase()
|
|
263
|
+
.replace(/^(prd|plan|design|research)-\d{8}-/, "")
|
|
264
|
+
.replace(/^(prd|plan|design|research)-/, "")
|
|
265
|
+
.replace(/-\w+$/, (suffix) => {
|
|
266
|
+
if (["-core", "-api", "-web", "-app"].includes(suffix)) {
|
|
267
|
+
return "";
|
|
268
|
+
}
|
|
269
|
+
return suffix;
|
|
270
|
+
})
|
|
271
|
+
.replace(/[^a-z0-9]+/g, "-")
|
|
272
|
+
.replace(/^-|-$/g, "");
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
function readArtifact(
|
|
276
|
+
filePath: string,
|
|
277
|
+
type: ArtifactType,
|
|
278
|
+
sourceModule: WorkspaceModule,
|
|
279
|
+
): Artifact {
|
|
280
|
+
const content = fs.readFileSync(filePath, "utf8");
|
|
281
|
+
const modified = fs.statSync(filePath).mtime.toISOString();
|
|
282
|
+
const relativePath = path.relative(workspaceRoot, filePath);
|
|
283
|
+
const prdId = getFirstMatch(content, [
|
|
284
|
+
/^\s*-\s*PRD ID:\s*`?([^`\n]+?)`?\s*$/im,
|
|
285
|
+
]);
|
|
286
|
+
const planId = getFirstMatch(content, [
|
|
287
|
+
/^\s*-\s*Plan ID:\s*`?([^`\n]+?)`?\s*$/im,
|
|
288
|
+
]);
|
|
289
|
+
const parentPlanId = getFirstMatch(content, [
|
|
290
|
+
/^\s*-\s*Parent plan ID:\s*`?([^`\n]+?)`?\s*$/im,
|
|
291
|
+
]);
|
|
292
|
+
const id = idFrom(type, content);
|
|
293
|
+
const markdownMetadata = {
|
|
294
|
+
created: getFirstMatch(content, [
|
|
295
|
+
/^\s*-\s*Created:\s*`?([^`\n]+?)`?\s*$/im,
|
|
296
|
+
]),
|
|
297
|
+
id,
|
|
298
|
+
parentPlanId,
|
|
299
|
+
planId,
|
|
300
|
+
prdId,
|
|
301
|
+
relatedArtifactIds: relatedArtifactIdsFrom(content, id),
|
|
302
|
+
status: statusFrom(content),
|
|
303
|
+
type,
|
|
304
|
+
updated: getFirstMatch(content, [
|
|
305
|
+
/^\s*-\s*Last updated:\s*`?([^`\n]+?)`?\s*$/im,
|
|
306
|
+
]),
|
|
307
|
+
owner: getFirstMatch(content, [/^\s*-\s*Owner:\s*`?([^`\n]+?)`?\s*$/im]),
|
|
308
|
+
};
|
|
309
|
+
const parsedMetadata = parseWorkspaceMetadata(content, markdownMetadata);
|
|
310
|
+
const metadata = parsedMetadata.metadata;
|
|
311
|
+
const artifact = {
|
|
312
|
+
content,
|
|
313
|
+
created: metadata.created,
|
|
314
|
+
goal: goalFrom(content),
|
|
315
|
+
id: metadata.id,
|
|
316
|
+
metadataErrors: parsedMetadata.errors,
|
|
317
|
+
metadataFormat: parsedMetadata.format,
|
|
318
|
+
metadataWarnings: parsedMetadata.warnings,
|
|
319
|
+
modified,
|
|
320
|
+
owner: metadata.owner,
|
|
321
|
+
parentPlanId: metadata.parentPlanId,
|
|
322
|
+
planId: metadata.planId,
|
|
323
|
+
prdId: metadata.prdId,
|
|
324
|
+
relatedArtifactIds: metadata.relatedArtifactIds,
|
|
325
|
+
relativePath,
|
|
326
|
+
sourceModule,
|
|
327
|
+
sourceHref: `/@fs/${filePath}`,
|
|
328
|
+
status: metadata.status ?? "unknown",
|
|
329
|
+
title: titleFrom(content, relativePath),
|
|
330
|
+
type: metadata.type ?? type,
|
|
331
|
+
updated: metadata.updated,
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
return {
|
|
335
|
+
...artifact,
|
|
336
|
+
taskKey: taskKeyFrom(artifact),
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
function walkCodeFiles(directory: string): string[] {
|
|
341
|
+
if (!fs.existsSync(directory)) {
|
|
342
|
+
return [];
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
const entries = fs.readdirSync(directory, { withFileTypes: true });
|
|
346
|
+
const files: string[] = [];
|
|
347
|
+
|
|
348
|
+
for (const entry of entries) {
|
|
349
|
+
const entryPath = path.join(directory, entry.name);
|
|
350
|
+
|
|
351
|
+
if (entry.isDirectory()) {
|
|
352
|
+
if (
|
|
353
|
+
["node_modules", "dist", "target", ".git", "build"].includes(entry.name)
|
|
354
|
+
) {
|
|
355
|
+
continue;
|
|
356
|
+
}
|
|
357
|
+
files.push(...walkCodeFiles(entryPath));
|
|
358
|
+
continue;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
if (entry.isFile() && /\.(tsx?|rs)$/i.test(entry.name)) {
|
|
362
|
+
files.push(entryPath);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
return files;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
function scanCodeFile(filePath: string): FileScanResult {
|
|
370
|
+
const content = fs.readFileSync(filePath, "utf8");
|
|
371
|
+
const lines = content.split("\n");
|
|
372
|
+
const lineCount = lines.length;
|
|
373
|
+
const relativePath = path.relative(workspaceRoot, filePath);
|
|
374
|
+
const isTsx = filePath.endsWith(".tsx");
|
|
375
|
+
|
|
376
|
+
let rawHtmlTagsCount = 0;
|
|
377
|
+
let destructuredParamPropsCount = 0;
|
|
378
|
+
let missingBlockBracesCount = 0;
|
|
379
|
+
let useCallbackCount = 0;
|
|
380
|
+
let hardcodedStringJsxCount = 0;
|
|
381
|
+
|
|
382
|
+
if (isTsx) {
|
|
383
|
+
const rawTagsMatches = content.match(
|
|
384
|
+
/<(div|span|p|button|input|select)\b/g,
|
|
385
|
+
);
|
|
386
|
+
rawHtmlTagsCount = rawTagsMatches ? rawTagsMatches.length : 0;
|
|
387
|
+
|
|
388
|
+
const destructuredParamMatches = content.match(
|
|
389
|
+
/function\s+[A-Z]\w*\s*\(\s*\{/g,
|
|
390
|
+
);
|
|
391
|
+
destructuredParamPropsCount = destructuredParamMatches
|
|
392
|
+
? destructuredParamMatches.length
|
|
393
|
+
: 0;
|
|
394
|
+
|
|
395
|
+
const jsxTextMatches = content.match(/>\s*[A-Za-z][^<{\n]{1,100}\s*</g);
|
|
396
|
+
hardcodedStringJsxCount = jsxTextMatches ? jsxTextMatches.length : 0;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
const missingBracesMatches = content.match(
|
|
400
|
+
/\bif\s*\([^)]+\)\s*(?!\{)[^\n;]+;/g,
|
|
401
|
+
);
|
|
402
|
+
missingBlockBracesCount = missingBracesMatches
|
|
403
|
+
? missingBracesMatches.length
|
|
404
|
+
: 0;
|
|
405
|
+
|
|
406
|
+
const useCallbackMatches = content.match(/\buseCallback\b/g);
|
|
407
|
+
useCallbackCount = useCallbackMatches ? useCallbackMatches.length : 0;
|
|
408
|
+
|
|
409
|
+
const stateSyncEffectMatches = content.match(
|
|
410
|
+
/useEffect\s*\([\s\S]{0,500}?\bset[A-Z]\w*\s*\(/g,
|
|
411
|
+
);
|
|
412
|
+
const consoleErrorMatches = content.match(/\bconsole\.error\s*\(/g);
|
|
413
|
+
const functionMatches = content.match(
|
|
414
|
+
/\b(?:function\s+\w+|(?:const|let)\s+\w+\s*=\s*(?:async\s*)?\([^)]*\)\s*=>)\s*\{/g,
|
|
415
|
+
);
|
|
416
|
+
|
|
417
|
+
let longFunctionCount = 0;
|
|
418
|
+
for (const match of functionMatches ?? []) {
|
|
419
|
+
const start = content.indexOf(match);
|
|
420
|
+
const openingBrace = content.indexOf("{", start);
|
|
421
|
+
let depth = 0;
|
|
422
|
+
let closingBrace = -1;
|
|
423
|
+
|
|
424
|
+
for (let index = openingBrace; index < content.length; index += 1) {
|
|
425
|
+
if (content[index] === "{") depth += 1;
|
|
426
|
+
if (content[index] === "}") depth -= 1;
|
|
427
|
+
if (depth === 0) {
|
|
428
|
+
closingBrace = index;
|
|
429
|
+
break;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
if (
|
|
434
|
+
closingBrace >= 0 &&
|
|
435
|
+
content.slice(start, closingBrace).split("\n").length > 50
|
|
436
|
+
) {
|
|
437
|
+
longFunctionCount += 1;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
return {
|
|
442
|
+
relativePath,
|
|
443
|
+
lineCount,
|
|
444
|
+
rawHtmlTagsCount,
|
|
445
|
+
destructuredParamPropsCount,
|
|
446
|
+
missingBlockBracesCount,
|
|
447
|
+
useCallbackCount,
|
|
448
|
+
rawUseEffectCount: (content.match(/\buseEffect\b/g) || []).length,
|
|
449
|
+
stateSyncEffectCount: stateSyncEffectMatches?.length ?? 0,
|
|
450
|
+
consoleErrorCount: consoleErrorMatches?.length ?? 0,
|
|
451
|
+
longFunctionCount,
|
|
452
|
+
hardcodedStringJsxCount,
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
function loadHardnessScanReport(timestamp: string) {
|
|
457
|
+
const scanDirs = [
|
|
458
|
+
...projectProfile.repositories.flatMap(
|
|
459
|
+
(repository) => repository.codeScanDirectories ?? [],
|
|
460
|
+
),
|
|
461
|
+
path.join(workspaceRoot, "dashboard/src"),
|
|
462
|
+
].map((directory) =>
|
|
463
|
+
path.isAbsolute(directory)
|
|
464
|
+
? directory
|
|
465
|
+
: path.join(workspaceRoot, directory),
|
|
466
|
+
);
|
|
467
|
+
|
|
468
|
+
const codeFiles = scanDirs.flatMap((dir) => walkCodeFiles(dir));
|
|
469
|
+
const scanResults = codeFiles.map((file) => scanCodeFile(file));
|
|
470
|
+
|
|
471
|
+
return buildScanReportFromResults(scanResults, timestamp);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
function loadArtifacts() {
|
|
475
|
+
return artifactTargets
|
|
476
|
+
.flatMap(({ type, directory, sourceModule }) =>
|
|
477
|
+
walkMarkdown(path.join(workspaceRoot, directory)).map((filePath) =>
|
|
478
|
+
readArtifact(filePath, type, sourceModule),
|
|
479
|
+
),
|
|
480
|
+
)
|
|
481
|
+
.sort(sortArtifactsByTime);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
function loadArtifactPayload() {
|
|
485
|
+
const generatedAt = new Date().toISOString();
|
|
486
|
+
return {
|
|
487
|
+
artifacts: loadArtifacts(),
|
|
488
|
+
hardnessReport: loadHardnessScanReport(generatedAt),
|
|
489
|
+
projectProfile,
|
|
490
|
+
generatedAt,
|
|
491
|
+
};
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
function getArtifactTime(artifact: Artifact) {
|
|
495
|
+
return artifact.updated ?? artifact.created ?? artifact.modified;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
function sortArtifactsByTime(first: Artifact, second: Artifact) {
|
|
499
|
+
return (
|
|
500
|
+
getArtifactTime(second).localeCompare(getArtifactTime(first)) ||
|
|
501
|
+
first.relativePath.localeCompare(second.relativePath, "en")
|
|
502
|
+
);
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
function workspaceArtifactsPlugin(): Plugin {
|
|
506
|
+
return {
|
|
507
|
+
name: "workspace-artifacts",
|
|
508
|
+
resolveId(id) {
|
|
509
|
+
if (id === virtualModuleId) {
|
|
510
|
+
return resolvedVirtualModuleId;
|
|
511
|
+
}
|
|
512
|
+
return null;
|
|
513
|
+
},
|
|
514
|
+
load(id) {
|
|
515
|
+
if (id !== resolvedVirtualModuleId) {
|
|
516
|
+
return null;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
const payload = loadArtifactPayload();
|
|
520
|
+
|
|
521
|
+
return `export const artifacts = ${JSON.stringify(payload.artifacts)};
|
|
522
|
+
export const hardnessReport = ${JSON.stringify(payload.hardnessReport)};
|
|
523
|
+
export const projectProfile = ${JSON.stringify(payload.projectProfile)};
|
|
524
|
+
export const artifactEndpoint = ${JSON.stringify(artifactEndpoint)};
|
|
525
|
+
export const generatedAt = ${JSON.stringify(payload.generatedAt)};`;
|
|
526
|
+
},
|
|
527
|
+
handleHotUpdate({ file, server }) {
|
|
528
|
+
if (!file.endsWith(".md") && !file.endsWith(".json")) {
|
|
529
|
+
return;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
const isArtifactFile = artifactTargets.some(({ directory }) => {
|
|
533
|
+
const targetPath = path.join(workspaceRoot, directory);
|
|
534
|
+
return file.startsWith(targetPath);
|
|
535
|
+
});
|
|
536
|
+
|
|
537
|
+
if (!isArtifactFile) {
|
|
538
|
+
return;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
const module = server.moduleGraph.getModuleById(resolvedVirtualModuleId);
|
|
542
|
+
if (module) {
|
|
543
|
+
server.moduleGraph.invalidateModule(module);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
server.ws.send({ type: "full-reload" });
|
|
547
|
+
},
|
|
548
|
+
configureServer(server) {
|
|
549
|
+
server.middlewares.use((request, response, next) => {
|
|
550
|
+
const requestPath = request.url?.split("?")[0];
|
|
551
|
+
|
|
552
|
+
if (requestPath !== artifactEndpoint) {
|
|
553
|
+
next();
|
|
554
|
+
return;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
response.setHeader("Cache-Control", "no-store");
|
|
558
|
+
response.setHeader("Content-Type", "application/json");
|
|
559
|
+
response.end(JSON.stringify(loadArtifactPayload()));
|
|
560
|
+
});
|
|
561
|
+
|
|
562
|
+
for (const target of artifactTargets) {
|
|
563
|
+
const targetPath = path.join(workspaceRoot, target.directory);
|
|
564
|
+
if (fs.existsSync(targetPath)) {
|
|
565
|
+
server.watcher.add(targetPath);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
};
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
export default defineConfig({
|
|
573
|
+
plugins: [workspaceArtifactsPlugin(), tailwindcss(), react()],
|
|
574
|
+
server: {
|
|
575
|
+
fs: {
|
|
576
|
+
allow: [packageRoot, workspaceRoot],
|
|
577
|
+
},
|
|
578
|
+
},
|
|
579
|
+
});
|
package/designs/.gitkeep
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# Add Project Command Completion Handoff
|
|
2
|
+
|
|
3
|
+
## 1. Developer actions
|
|
4
|
+
|
|
5
|
+
### Build
|
|
6
|
+
|
|
7
|
+
None. No new dependencies or product build configuration are required.
|
|
8
|
+
|
|
9
|
+
### Run
|
|
10
|
+
|
|
11
|
+
Reload the agent session to discover `$add-project [repository-url]`. The command
|
|
12
|
+
reviews inferred values and collects entries; choose **Save repositories** to
|
|
13
|
+
clone and register them. Node, Git, and existing access to the selected remote
|
|
14
|
+
are runtime prerequisites. No new secret or environment variable is required.
|
|
15
|
+
|
|
16
|
+
### Roll out
|
|
17
|
+
|
|
18
|
+
For other workspaces, distribute the updated package through the existing release
|
|
19
|
+
process, then run `workflows update` there and reload the agent session. No
|
|
20
|
+
package was published in this task. Existing source-workspace command files are
|
|
21
|
+
ready for discovery after reload.
|
|
22
|
+
|
|
23
|
+
## 2. Artifacts created and approved
|
|
24
|
+
|
|
25
|
+
| Stage | Artifact ID | Path or locator | Status |
|
|
26
|
+
| --- | --- | --- | --- |
|
|
27
|
+
| Research | None | Repository evidence recorded in the plan | reviewed |
|
|
28
|
+
| PRD | PRD-20261028-add-project-command | [Requirements](../prds/prd-20261028-add-project-command.md) | approved |
|
|
29
|
+
| Design | Conversational UX | PRD UX notes; no visual screen was added | reviewed in five-role meeting |
|
|
30
|
+
| Sprint meeting | MEETING-20261028-0930-add-project-command | Meeting record linked from the PRD | complete |
|
|
31
|
+
| Root plan | PLAN-20261028-add-project-command | [Implementation plan](../plans/plan-20261028-add-project-command.md) | complete |
|
|
32
|
+
| Affected repository plans | None | Root-only implementation | not applicable |
|
|
33
|
+
|
|
34
|
+
## 3. Implementation summary
|
|
35
|
+
|
|
36
|
+
### workspace-root
|
|
37
|
+
|
|
38
|
+
- Changed: URL-first agent command, one-entry review and pending session,
|
|
39
|
+
add-another/save choices, read-only discovery with manual fallback, Save-only
|
|
40
|
+
cloning and Git submodule registration, related-file cleanup, and safe retry.
|
|
41
|
+
- Key files: [Save helper](../scripts/add-project.mjs),
|
|
42
|
+
[integration tests](../scripts/add-project.test.mjs),
|
|
43
|
+
[command](../commands/add-project.md), and
|
|
44
|
+
[shared skill](../.agents/skills/add-project/SKILL.md).
|
|
45
|
+
- Integration: Project setup delegates repository addition to the shared skill.
|
|
46
|
+
Codex and Claude adapters use the same source. Installation tests cover
|
|
47
|
+
discovery/update and explicit consumer-root helper execution. Root validation
|
|
48
|
+
includes the new `project:add:test` suite.
|
|
49
|
+
- Root template examples remain unchanged. No product submodules or root Git
|
|
50
|
+
submodule pointers changed; no commits were created.
|
|
51
|
+
|
|
52
|
+
## 4. Breaking changes and compatibility
|
|
53
|
+
|
|
54
|
+
- Repository profile schema and existing real entries remain compatible. Unknown
|
|
55
|
+
fields and unrelated staged/unstaged changes are preserved.
|
|
56
|
+
- Intentional setup behavior change: repository additions stay pending until Save,
|
|
57
|
+
and Save now clones/registers them after its displayed preview. Other setup
|
|
58
|
+
questions retain incremental saving. Saving stages only required Git metadata;
|
|
59
|
+
the developer still owns commits.
|
|
60
|
+
- Custom workflow stages referencing removed examples require an explicit reviewed
|
|
61
|
+
replacement decision. Unmodified shipped stages are cleaned automatically.
|
|
62
|
+
- No API/client rollout order or data migration is required.
|
|
63
|
+
- Live private-host authentication is unverified; remote access depends on the
|
|
64
|
+
selected repository and the developer's existing Git authentication.
|
|
65
|
+
|
|
66
|
+
## 5. Environment and operational configuration
|
|
67
|
+
|
|
68
|
+
| Setting or dependency | Repository / service | Target environment | Build time or runtime | Client-visible? | Value shape or source | Developer action |
|
|
69
|
+
| --- | --- | --- | --- | --- | --- | --- |
|
|
70
|
+
| Node and Git | workspace-root | local consuming workspace | runtime | No | Existing command executables | Ensure available when using the command |
|
|
71
|
+
| Git authentication | Selected repository | local consuming workspace | runtime | No | Existing SSH agent or credential manager | Authenticate normally if remote access fails; no secrets in chat |
|
|
72
|
+
|
|
73
|
+
New package dependencies, build-service variables, application runtime variables,
|
|
74
|
+
API endpoints, database/queue settings, and client-visible secrets: None; checked
|
|
75
|
+
package metadata, helper, and command sources.
|
|
76
|
+
|
|
77
|
+
### Data and rollout operations
|
|
78
|
+
|
|
79
|
+
- Migrations and backfills: None.
|
|
80
|
+
- API and client rollout order: None.
|
|
81
|
+
- Rollback/downtime: No product downtime. Future command saves are multi-step Git
|
|
82
|
+
and filesystem operations, not atomic transactions. Partial failure retains
|
|
83
|
+
successful registrations and usable checkouts and reports actual recovery work.
|
|
84
|
+
Examples stay until all additions and configuration writes succeed. Do not
|
|
85
|
+
delete user work or reset unrelated index changes to force recovery.
|
|
86
|
+
|
|
87
|
+
## 6. Validation results
|
|
88
|
+
|
|
89
|
+
| Repository | Check or command | Result | What it verifies |
|
|
90
|
+
| --- | --- | --- | --- |
|
|
91
|
+
| workspace-root | `bun run workspace:check` | passed | Integrity, installer, helper, security, lint, dashboard tests/typecheck/build |
|
|
92
|
+
| workspace-root | `node --test scripts/add-project.test.mjs` | passed, 26 tests | Real local clone/registration, cleanup, concurrent edits, failures and retry |
|
|
93
|
+
| workspace-root | `bun run workflow:cli:test` | passed, 13 tests | Command discovery/update, preservation, consumer-root helper invocation |
|
|
94
|
+
| workspace-root | `quick_validate.py .agents/skills/add-project` | passed | Skill metadata and required structure |
|
|
95
|
+
| workspace-root | Independent supplied-metadata walkthrough | passed | Complete review, evidence labels, missing guide, unsaved state, safe source resolution |
|
|
96
|
+
| workspace-root | `npm_config_cache=/tmp/add-project-npm-cache bun run package:dry-run` | passed | New helper, tests, skill, reference, and adapters included without publishing |
|
|
97
|
+
| workspace-root | `git diff --check` | passed | Whitespace errors |
|
|
98
|
+
|
|
99
|
+
- Runtime evidence: Isolated local Git remotes/checkouts exercise registration,
|
|
100
|
+
revisions, template cleanup, index preservation, concurrent edits, failures,
|
|
101
|
+
and retry. No external repository was cloned into this workspace.
|
|
102
|
+
- Limits: No live remote provider, private authentication, or real end-user chat
|
|
103
|
+
session was exercised. Discovery was independently walked through using supplied
|
|
104
|
+
metadata; the automated helper tests use local transport only in fixtures.
|
|
105
|
+
- Non-blocking warnings: Dashboard build reports its existing large chunk; the
|
|
106
|
+
integrity parser interprets the existing PRD meeting-log
|
|
107
|
+
link filename as an unresolved PRD ID. The final integrity run also reports
|
|
108
|
+
the same filename-pattern warning for a concurrently created workspace bootstrap
|
|
109
|
+
plan; total 0 errors and 2 warnings. No integrity parser change is included.
|
|
110
|
+
- Package dry run used a temporary npm cache because the default cache was not
|
|
111
|
+
writable; no global cache configuration or ownership was changed.
|
|
112
|
+
- Root submodule pointer status: None changed.
|
|
113
|
+
|
|
114
|
+
## 7. Human-only questions
|
|
115
|
+
|
|
116
|
+
None. The developer confirmed dedicated-command reuse in project setup and
|
|
117
|
+
cloning/registration as part of Save during PRD review.
|