@mindfoldhq/trellis 0.3.10-beta.0 → 0.3.10
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/dist/cli/index.js +0 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/init.d.ts +0 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +31 -203
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/commands/update.js +6 -154
- package/dist/commands/update.js.map +1 -1
- package/dist/configurators/workflow.d.ts +2 -6
- package/dist/configurators/workflow.d.ts.map +1 -1
- package/dist/configurators/workflow.js +58 -88
- package/dist/configurators/workflow.js.map +1 -1
- package/dist/migrations/index.d.ts +0 -1
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +0 -2
- package/dist/migrations/index.js.map +1 -1
- package/dist/migrations/manifests/0.3.10.json +9 -0
- package/dist/templates/claude/agents/dispatch.md +2 -1
- package/dist/templates/claude/agents/implement.md +3 -2
- package/dist/templates/claude/commands/trellis/before-backend-dev.md +13 -0
- package/dist/templates/claude/commands/trellis/before-frontend-dev.md +13 -0
- package/dist/templates/claude/commands/trellis/check-backend.md +13 -0
- package/dist/templates/claude/commands/trellis/check-frontend.md +13 -0
- package/dist/templates/claude/commands/trellis/create-command.md +2 -2
- package/dist/templates/claude/commands/trellis/onboard.md +13 -13
- package/dist/templates/claude/commands/trellis/parallel.md +2 -1
- package/dist/templates/claude/commands/trellis/record-session.md +2 -2
- package/dist/templates/claude/commands/trellis/start.md +4 -8
- package/dist/templates/claude/hooks/inject-subagent-context.py +13 -21
- package/dist/templates/claude/hooks/session-start.py +2 -170
- package/dist/templates/codex/skills/before-backend-dev/SKILL.md +18 -0
- package/dist/templates/codex/skills/before-frontend-dev/SKILL.md +18 -0
- package/dist/templates/codex/skills/check-backend/SKILL.md +18 -0
- package/dist/templates/codex/skills/check-frontend/SKILL.md +18 -0
- package/dist/templates/codex/skills/create-command/SKILL.md +2 -2
- package/dist/templates/codex/skills/onboard/SKILL.md +11 -11
- package/dist/templates/codex/skills/record-session/SKILL.md +2 -2
- package/dist/templates/codex/skills/start/SKILL.md +3 -8
- package/dist/templates/cursor/commands/trellis-before-backend-dev.md +13 -0
- package/dist/templates/cursor/commands/trellis-before-frontend-dev.md +13 -0
- package/dist/templates/cursor/commands/trellis-check-backend.md +13 -0
- package/dist/templates/cursor/commands/trellis-check-frontend.md +13 -0
- package/dist/templates/cursor/commands/trellis-create-command.md +2 -2
- package/dist/templates/cursor/commands/trellis-onboard.md +13 -13
- package/dist/templates/cursor/commands/trellis-record-session.md +2 -2
- package/dist/templates/cursor/commands/trellis-start.md +16 -7
- package/dist/templates/gemini/commands/trellis/before-backend-dev.toml +17 -0
- package/dist/templates/gemini/commands/trellis/before-frontend-dev.toml +17 -0
- package/dist/templates/gemini/commands/trellis/check-backend.toml +17 -0
- package/dist/templates/gemini/commands/trellis/check-frontend.toml +17 -0
- package/dist/templates/gemini/commands/trellis/create-command.toml +2 -2
- package/dist/templates/gemini/commands/trellis/onboard.toml +2 -2
- package/dist/templates/gemini/commands/trellis/record-session.toml +2 -2
- package/dist/templates/gemini/commands/trellis/start.toml +4 -9
- package/dist/templates/iflow/agents/dispatch.md +2 -1
- package/dist/templates/iflow/agents/implement.md +3 -2
- package/dist/templates/iflow/commands/trellis/before-backend-dev.md +13 -0
- package/dist/templates/iflow/commands/trellis/before-frontend-dev.md +13 -0
- package/dist/templates/iflow/commands/trellis/check-backend.md +13 -0
- package/dist/templates/iflow/commands/trellis/check-frontend.md +13 -0
- package/dist/templates/iflow/commands/trellis/create-command.md +2 -2
- package/dist/templates/iflow/commands/trellis/onboard.md +13 -13
- package/dist/templates/iflow/commands/trellis/parallel.md +2 -1
- package/dist/templates/iflow/commands/trellis/record-session.md +2 -2
- package/dist/templates/iflow/commands/trellis/start.md +4 -8
- package/dist/templates/iflow/hooks/inject-subagent-context.py +13 -21
- package/dist/templates/iflow/hooks/session-start.py +1 -156
- package/dist/templates/kilo/workflows/before-backend-dev.md +13 -0
- package/dist/templates/kilo/workflows/before-frontend-dev.md +13 -0
- package/dist/templates/kilo/workflows/check-backend.md +13 -0
- package/dist/templates/kilo/workflows/check-frontend.md +13 -0
- package/dist/templates/kilo/workflows/create-command.md +2 -2
- package/dist/templates/kilo/workflows/onboard.md +13 -13
- package/dist/templates/kilo/workflows/parallel.md +2 -1
- package/dist/templates/kilo/workflows/record-session.md +2 -2
- package/dist/templates/kilo/workflows/start.md +3 -8
- package/dist/templates/kiro/skills/before-backend-dev/SKILL.md +18 -0
- package/dist/templates/kiro/skills/before-frontend-dev/SKILL.md +18 -0
- package/dist/templates/kiro/skills/check-backend/SKILL.md +18 -0
- package/dist/templates/kiro/skills/check-frontend/SKILL.md +18 -0
- package/dist/templates/kiro/skills/create-command/SKILL.md +2 -2
- package/dist/templates/kiro/skills/onboard/SKILL.md +11 -11
- package/dist/templates/kiro/skills/record-session/SKILL.md +2 -2
- package/dist/templates/kiro/skills/start/SKILL.md +3 -8
- package/dist/templates/markdown/spec/backend/script-conventions.md +0 -93
- package/dist/templates/opencode/agents/dispatch.md +2 -1
- package/dist/templates/opencode/agents/implement.md +2 -2
- package/dist/templates/opencode/agents/research.md +2 -1
- package/dist/templates/opencode/commands/trellis/before-backend-dev.md +13 -0
- package/dist/templates/opencode/commands/trellis/before-frontend-dev.md +13 -0
- package/dist/templates/opencode/commands/trellis/check-backend.md +13 -0
- package/dist/templates/opencode/commands/trellis/check-frontend.md +13 -0
- package/dist/templates/opencode/commands/trellis/create-command.md +2 -2
- package/dist/templates/opencode/commands/trellis/onboard.md +13 -13
- package/dist/templates/opencode/commands/trellis/parallel.md +2 -1
- package/dist/templates/opencode/commands/trellis/record-session.md +2 -2
- package/dist/templates/opencode/commands/trellis/start.md +3 -8
- package/dist/templates/opencode/plugin/inject-subagent-context.js +18 -45
- package/dist/templates/opencode/plugin/session-start.js +1 -149
- package/dist/templates/qoder/skills/before-backend-dev/SKILL.md +18 -0
- package/dist/templates/qoder/skills/before-frontend-dev/SKILL.md +18 -0
- package/dist/templates/qoder/skills/check-backend/SKILL.md +18 -0
- package/dist/templates/qoder/skills/check-frontend/SKILL.md +18 -0
- package/dist/templates/qoder/skills/create-command/SKILL.md +2 -2
- package/dist/templates/qoder/skills/onboard/SKILL.md +13 -13
- package/dist/templates/qoder/skills/record-session/SKILL.md +2 -2
- package/dist/templates/qoder/skills/start/SKILL.md +3 -8
- package/dist/templates/trellis/config.yaml +0 -20
- package/dist/templates/trellis/index.d.ts +0 -11
- package/dist/templates/trellis/index.d.ts.map +1 -1
- package/dist/templates/trellis/index.js +0 -22
- package/dist/templates/trellis/index.js.map +1 -1
- package/dist/templates/trellis/scripts/add_session.py +7 -52
- package/dist/templates/trellis/scripts/common/cli_adapter.py +45 -33
- package/dist/templates/trellis/scripts/common/config.py +0 -152
- package/dist/templates/trellis/scripts/common/git_context.py +586 -23
- package/dist/templates/trellis/scripts/common/paths.py +0 -46
- package/dist/templates/trellis/scripts/common/phase.py +49 -50
- package/dist/templates/trellis/scripts/common/registry.py +72 -41
- package/dist/templates/trellis/scripts/common/task_queue.py +98 -27
- package/dist/templates/trellis/scripts/common/task_utils.py +6 -96
- package/dist/templates/trellis/scripts/create_bootstrap.py +26 -31
- package/dist/templates/trellis/scripts/multi_agent/cleanup.py +48 -43
- package/dist/templates/trellis/scripts/multi_agent/create_pr.py +45 -336
- package/dist/templates/trellis/scripts/multi_agent/plan.py +26 -2
- package/dist/templates/trellis/scripts/multi_agent/start.py +57 -126
- package/dist/templates/trellis/scripts/multi_agent/status.py +753 -12
- package/dist/templates/trellis/scripts/task.py +975 -50
- package/dist/templates/trellis/workflow.md +34 -21
- package/dist/types/migration.d.ts +1 -3
- package/dist/types/migration.d.ts.map +1 -1
- package/dist/utils/project-detector.d.ts +0 -23
- package/dist/utils/project-detector.d.ts.map +1 -1
- package/dist/utils/project-detector.js +0 -364
- package/dist/utils/project-detector.js.map +1 -1
- package/dist/utils/template-fetcher.d.ts +10 -2
- package/dist/utils/template-fetcher.d.ts.map +1 -1
- package/dist/utils/template-fetcher.js +43 -12
- package/dist/utils/template-fetcher.js.map +1 -1
- package/package.json +1 -1
- package/dist/migrations/manifests/0.4.0-beta.1.json +0 -228
- package/dist/templates/claude/commands/trellis/before-dev.md +0 -29
- package/dist/templates/claude/commands/trellis/check.md +0 -25
- package/dist/templates/codex/skills/before-dev/SKILL.md +0 -34
- package/dist/templates/codex/skills/check/SKILL.md +0 -30
- package/dist/templates/cursor/commands/trellis-before-dev.md +0 -29
- package/dist/templates/cursor/commands/trellis-check.md +0 -25
- package/dist/templates/gemini/commands/trellis/before-dev.toml +0 -33
- package/dist/templates/gemini/commands/trellis/check.toml +0 -29
- package/dist/templates/iflow/commands/trellis/before-dev.md +0 -29
- package/dist/templates/iflow/commands/trellis/check.md +0 -25
- package/dist/templates/kilo/workflows/before-dev.md +0 -29
- package/dist/templates/kilo/workflows/check.md +0 -25
- package/dist/templates/kiro/skills/before-dev/SKILL.md +0 -34
- package/dist/templates/kiro/skills/check/SKILL.md +0 -30
- package/dist/templates/opencode/commands/trellis/before-dev.md +0 -29
- package/dist/templates/opencode/commands/trellis/check.md +0 -25
- package/dist/templates/qoder/skills/before-dev/SKILL.md +0 -34
- package/dist/templates/qoder/skills/check/SKILL.md +0 -30
- package/dist/templates/trellis/scripts/common/git.py +0 -31
- package/dist/templates/trellis/scripts/common/io.py +0 -37
- package/dist/templates/trellis/scripts/common/log.py +0 -45
- package/dist/templates/trellis/scripts/common/packages_context.py +0 -233
- package/dist/templates/trellis/scripts/common/session_context.py +0 -466
- package/dist/templates/trellis/scripts/common/task_context.py +0 -384
- package/dist/templates/trellis/scripts/common/task_store.py +0 -534
- package/dist/templates/trellis/scripts/common/tasks.py +0 -109
- package/dist/templates/trellis/scripts/common/types.py +0 -112
- package/dist/templates/trellis/scripts/hooks/linear_sync.py +0 -243
- package/dist/templates/trellis/scripts/multi_agent/_bootstrap.py +0 -17
- package/dist/templates/trellis/scripts/multi_agent/status_display.py +0 -542
- package/dist/templates/trellis/scripts/multi_agent/status_monitor.py +0 -225
|
@@ -30,8 +30,6 @@ export async function createWorkflowStructure(cwd, options) {
|
|
|
30
30
|
const projectType = options?.projectType ?? "fullstack";
|
|
31
31
|
const multiAgent = options?.multiAgent ?? false;
|
|
32
32
|
const skipSpecTemplates = options?.skipSpecTemplates ?? false;
|
|
33
|
-
const packages = options?.packages;
|
|
34
|
-
const remoteSpecPackages = options?.remoteSpecPackages;
|
|
35
33
|
// Create base .trellis directory
|
|
36
34
|
ensureDir(path.join(cwd, DIR_NAMES.WORKFLOW));
|
|
37
35
|
// Copy scripts/ directory from templates
|
|
@@ -55,84 +53,16 @@ export async function createWorkflowStructure(cwd, options) {
|
|
|
55
53
|
}
|
|
56
54
|
// Create spec templates based on project type
|
|
57
55
|
// These are NOT dogfooded - they are generic templates for new projects
|
|
58
|
-
if
|
|
59
|
-
|
|
60
|
-
await createSpecTemplates(cwd, projectType, packages, remoteSpecPackages);
|
|
61
|
-
}
|
|
62
|
-
else if (!skipSpecTemplates) {
|
|
63
|
-
// Single-repo mode: create global spec (skip if using remote template)
|
|
56
|
+
// Skip if using remote template (already downloaded)
|
|
57
|
+
if (!skipSpecTemplates) {
|
|
64
58
|
await createSpecTemplates(cwd, projectType);
|
|
65
59
|
}
|
|
66
60
|
}
|
|
67
|
-
|
|
68
|
-
* Write backend spec docs into a target spec directory.
|
|
69
|
-
*/
|
|
70
|
-
async function writeBackendDocs(specBase) {
|
|
71
|
-
const backendDir = path.join(specBase, "backend");
|
|
72
|
-
ensureDir(backendDir);
|
|
73
|
-
const docs = [
|
|
74
|
-
{ name: "index.md", content: backendIndexContent },
|
|
75
|
-
{
|
|
76
|
-
name: "directory-structure.md",
|
|
77
|
-
content: backendDirectoryStructureContent,
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
name: "database-guidelines.md",
|
|
81
|
-
content: backendDatabaseGuidelinesContent,
|
|
82
|
-
},
|
|
83
|
-
{ name: "logging-guidelines.md", content: backendLoggingGuidelinesContent },
|
|
84
|
-
{ name: "quality-guidelines.md", content: backendQualityGuidelinesContent },
|
|
85
|
-
{ name: "error-handling.md", content: backendErrorHandlingContent },
|
|
86
|
-
];
|
|
87
|
-
for (const doc of docs) {
|
|
88
|
-
await writeFile(path.join(backendDir, doc.name), doc.content);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Write frontend spec docs into a target spec directory.
|
|
93
|
-
*/
|
|
94
|
-
async function writeFrontendDocs(specBase) {
|
|
95
|
-
const frontendDir = path.join(specBase, "frontend");
|
|
96
|
-
ensureDir(frontendDir);
|
|
97
|
-
const docs = [
|
|
98
|
-
{ name: "index.md", content: frontendIndexContent },
|
|
99
|
-
{
|
|
100
|
-
name: "directory-structure.md",
|
|
101
|
-
content: frontendDirectoryStructureContent,
|
|
102
|
-
},
|
|
103
|
-
{ name: "type-safety.md", content: frontendTypeSafetyContent },
|
|
104
|
-
{ name: "hook-guidelines.md", content: frontendHookGuidelinesContent },
|
|
105
|
-
{
|
|
106
|
-
name: "component-guidelines.md",
|
|
107
|
-
content: frontendComponentGuidelinesContent,
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
name: "quality-guidelines.md",
|
|
111
|
-
content: frontendQualityGuidelinesContent,
|
|
112
|
-
},
|
|
113
|
-
{ name: "state-management.md", content: frontendStateManagementContent },
|
|
114
|
-
];
|
|
115
|
-
for (const doc of docs) {
|
|
116
|
-
await writeFile(path.join(frontendDir, doc.name), doc.content);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Write spec docs for a given project type into a target spec directory.
|
|
121
|
-
*/
|
|
122
|
-
async function writeSpecForType(specBase, projectType) {
|
|
123
|
-
if (projectType !== "frontend") {
|
|
124
|
-
await writeBackendDocs(specBase);
|
|
125
|
-
}
|
|
126
|
-
if (projectType !== "backend") {
|
|
127
|
-
await writeFrontendDocs(specBase);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
async function createSpecTemplates(cwd, projectType, packages, remoteSpecPackages) {
|
|
61
|
+
async function createSpecTemplates(cwd, projectType) {
|
|
131
62
|
// Ensure spec directory exists
|
|
132
63
|
ensureDir(path.join(cwd, PATHS.SPEC));
|
|
133
|
-
// Guides - always created
|
|
134
|
-
|
|
135
|
-
ensureDir(guidesDir);
|
|
64
|
+
// Guides - always created
|
|
65
|
+
ensureDir(path.join(cwd, `${PATHS.SPEC}/guides`));
|
|
136
66
|
const guidesDocs = [
|
|
137
67
|
{ name: "index.md", content: guidesIndexContent },
|
|
138
68
|
{
|
|
@@ -145,22 +75,62 @@ async function createSpecTemplates(cwd, projectType, packages, remoteSpecPackage
|
|
|
145
75
|
},
|
|
146
76
|
];
|
|
147
77
|
for (const doc of guidesDocs) {
|
|
148
|
-
await writeFile(path.join(
|
|
78
|
+
await writeFile(path.join(cwd, `${PATHS.SPEC}/guides`, doc.name), doc.content);
|
|
149
79
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
80
|
+
// Backend spec - created for backend, fullstack, and unknown project types
|
|
81
|
+
if (projectType !== "frontend") {
|
|
82
|
+
ensureDir(path.join(cwd, `${PATHS.SPEC}/backend`));
|
|
83
|
+
const backendDocs = [
|
|
84
|
+
{ name: "index.md", content: backendIndexContent },
|
|
85
|
+
{
|
|
86
|
+
name: "directory-structure.md",
|
|
87
|
+
content: backendDirectoryStructureContent,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: "database-guidelines.md",
|
|
91
|
+
content: backendDatabaseGuidelinesContent,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "logging-guidelines.md",
|
|
95
|
+
content: backendLoggingGuidelinesContent,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "quality-guidelines.md",
|
|
99
|
+
content: backendQualityGuidelinesContent,
|
|
100
|
+
},
|
|
101
|
+
{ name: "error-handling.md", content: backendErrorHandlingContent },
|
|
102
|
+
];
|
|
103
|
+
for (const doc of backendDocs) {
|
|
104
|
+
await writeFile(path.join(cwd, `${PATHS.SPEC}/backend`, doc.name), doc.content);
|
|
159
105
|
}
|
|
160
106
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
107
|
+
// Frontend spec - created for frontend, fullstack, and unknown project types
|
|
108
|
+
if (projectType !== "backend") {
|
|
109
|
+
ensureDir(path.join(cwd, `${PATHS.SPEC}/frontend`));
|
|
110
|
+
const frontendDocs = [
|
|
111
|
+
{ name: "index.md", content: frontendIndexContent },
|
|
112
|
+
{
|
|
113
|
+
name: "directory-structure.md",
|
|
114
|
+
content: frontendDirectoryStructureContent,
|
|
115
|
+
},
|
|
116
|
+
{ name: "type-safety.md", content: frontendTypeSafetyContent },
|
|
117
|
+
{ name: "hook-guidelines.md", content: frontendHookGuidelinesContent },
|
|
118
|
+
{
|
|
119
|
+
name: "component-guidelines.md",
|
|
120
|
+
content: frontendComponentGuidelinesContent,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: "quality-guidelines.md",
|
|
124
|
+
content: frontendQualityGuidelinesContent,
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: "state-management.md",
|
|
128
|
+
content: frontendStateManagementContent,
|
|
129
|
+
},
|
|
130
|
+
];
|
|
131
|
+
for (const doc of frontendDocs) {
|
|
132
|
+
await writeFile(path.join(cwd, `${PATHS.SPEC}/frontend`, doc.name), doc.content);
|
|
133
|
+
}
|
|
164
134
|
}
|
|
165
135
|
}
|
|
166
136
|
//# sourceMappingURL=workflow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../src/configurators/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,2DAA2D;AAC3D,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AAEvC,4BAA4B;AAC5B,OAAO,EACL,yBAAyB;AACzB,gCAAgC;AAChC,mBAAmB,EACnB,gCAAgC,EAChC,gCAAgC,EAChC,+BAA+B,EAC/B,+BAA+B,EAC/B,2BAA2B;AAC3B,iCAAiC;AACjC,oBAAoB,EACpB,iCAAiC,EACjC,yBAAyB,EACzB,6BAA6B,EAC7B,kCAAkC,EAClC,gCAAgC,EAChC,8BAA8B;AAC9B,mBAAmB;AACnB,kBAAkB,EAClB,oCAAoC,EACpC,mCAAmC,GACpC,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../src/configurators/workflow.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,2DAA2D;AAC3D,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,+BAA+B,CAAC;AAEvC,4BAA4B;AAC5B,OAAO,EACL,yBAAyB;AACzB,gCAAgC;AAChC,mBAAmB,EACnB,gCAAgC,EAChC,gCAAgC,EAChC,+BAA+B,EAC/B,+BAA+B,EAC/B,2BAA2B;AAC3B,iCAAiC;AACjC,oBAAoB,EACpB,iCAAiC,EACjC,yBAAyB,EACzB,6BAA6B,EAC7B,kCAAkC,EAClC,gCAAgC,EAChC,8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E;YAC9D,EAAE,IAAI,EAAE,oBAAoB,EAAE,OAAO,EAAE,6BAA6B,EAAE;YACtE;gBACE,IAAI,EAAE,yBAAyB;gBAC/B,OAAO,EAAE,kCAAkC;aAC5C;YACD;gBACE,IAAI,EAAE,uBAAuB;gBAC7B,OAAO,EAAE,gCAAgC;aAC1C;YACD;gBACE,IAAI,EAAE,qBAAqB;gBAC3B,OAAO,EAAE,8BAA8B;aACxC;SACF,CAAC;QAEF,KAAK,MAAM,GAAG,IAAI,YAAY,EAAE,CAAC;YAC/B,MAAM,SAAS,CACb,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,IAAI,WAAW,EAAE,GAAG,CAAC,IAAI,CAAC,EAClD,GAAG,CAAC,OAAO,CACZ,CAAC;QACJ,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -23,7 +23,6 @@ export declare function hasPendingMigrations(fromVersion: string, toVersion: str
|
|
|
23
23
|
export declare function getMigrationSummary(fromVersion: string, toVersion: string): {
|
|
24
24
|
renames: number;
|
|
25
25
|
deletes: number;
|
|
26
|
-
safeFileDeletes: number;
|
|
27
26
|
};
|
|
28
27
|
/**
|
|
29
28
|
* Get all registered migration versions
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,aAAa,EAAqB,MAAM,uBAAuB,CAAC;AAoD9E;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,aAAa,EAAE,CAuBjB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,OAAO,CAET;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,OAAO,KAAK,EAAE,aAAa,EAAqB,MAAM,uBAAuB,CAAC;AAoD9E;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,aAAa,EAAE,CAuBjB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,OAAO,CAET;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAMtC;AAED;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,MAAM,EAAE,CAGlD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,aAAa,EAAE,CAOlD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB;IACD,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,CAAC;QACd,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,EAAE,CAAC;CACL,CA6CA"}
|
package/dist/migrations/index.js
CHANGED
|
@@ -90,8 +90,6 @@ export function getMigrationSummary(fromVersion, toVersion) {
|
|
|
90
90
|
return {
|
|
91
91
|
renames: migrations.filter((m) => m.type === "rename").length,
|
|
92
92
|
deletes: migrations.filter((m) => m.type === "delete").length,
|
|
93
|
-
safeFileDeletes: migrations.filter((m) => m.type === "safe-file-delete")
|
|
94
|
-
.length,
|
|
95
93
|
};
|
|
96
94
|
}
|
|
97
95
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/D,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;AAExD;;GAEG;AACH,IAAI,aAAa,GAA6C,IAAI,CAAC;AAEnE;;GAEG;AACH,SAAS,aAAa;IACpB,IAAI,aAAa,EAAE,CAAC;QAClB,OAAO,aAAa,CAAC;IACvB,CAAC;IAED,MAAM,SAAS,GAAsC,EAAE,CAAC;IAExD,sCAAsC;IACtC,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;QAClC,aAAa,GAAG,SAAS,CAAC;QAC1B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,+CAA+C;IAC/C,MAAM,KAAK,GAAG,EAAE;SACb,WAAW,CAAC,aAAa,CAAC;SAC1B,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;IAEtC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,IAAI,CAAC;YACH,MAAM,QAAQ,GAAG,IAAI,CAAC,IAA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BAAkB,EAAE,CAAC;QACzC,MAAM,QAAQ,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;QACpC,IAAI,QAAQ,EAAE,CAAC;YACb,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;gBACvB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,OAAO,KAAK,QAAQ,CAAC,SAAS,EAAE,CAAC,CAAC;YAC9D,CAAC;YACD,IAAI,QAAQ,CAAC,QAAQ,EAAE,CAAC;gBACtB,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;YACzB,CAAC;YACD,IAAI,QAAQ,CAAC,gBAAgB,EAAE,CAAC;gBAC9B,MAAM,CAAC,gBAAgB,GAAG,IAAI,CAAC;YACjC,CAAC;YACD,IAAI,QAAQ,CAAC,cAAc,EAAE,CAAC;gBAC5B,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC;oBAC1B,OAAO;oBACP,KAAK,EAAE,QAAQ,CAAC,cAAc;oBAC9B,cAAc,EAAE,QAAQ,CAAC,cAAc;iBACxC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.3.10",
|
|
3
|
+
"description": "HTTPS registry URLs, record-session wording fix",
|
|
4
|
+
"breaking": false,
|
|
5
|
+
"recommendMigrate": false,
|
|
6
|
+
"changelog": "**Bug Fixes:**\n- fix(init): accept HTTPS URLs for --registry option — auto-converts GitHub/GitLab/Bitbucket URLs to giget format (#87)\n- fix(templates): clarify record-session commit rule so AI models run metadata scripts without refusing (#88)",
|
|
7
|
+
"migrations": [],
|
|
8
|
+
"notes": "Run `trellis update` to sync updated record-session templates."
|
|
9
|
+
}
|
|
@@ -41,8 +41,9 @@ Before implementing, read:
|
|
|
41
41
|
|
|
42
42
|
Read relevant specs based on task type:
|
|
43
43
|
|
|
44
|
-
-
|
|
45
|
-
-
|
|
44
|
+
- Backend: `.trellis/spec/backend/`
|
|
45
|
+
- Frontend: `.trellis/spec/frontend/`
|
|
46
|
+
- Guides: `.trellis/spec/guides/`
|
|
46
47
|
|
|
47
48
|
### 2. Understand Requirements
|
|
48
49
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Read the backend development guidelines before starting your development task.
|
|
2
|
+
|
|
3
|
+
Execute these steps:
|
|
4
|
+
1. Read `.trellis/spec/backend/index.md` to understand available guidelines
|
|
5
|
+
2. Based on your task, read the relevant guideline files:
|
|
6
|
+
- Database work → `.trellis/spec/backend/database-guidelines.md`
|
|
7
|
+
- Error handling → `.trellis/spec/backend/error-handling.md`
|
|
8
|
+
- Logging → `.trellis/spec/backend/logging-guidelines.md`
|
|
9
|
+
- Type questions → `.trellis/spec/backend/type-safety.md`
|
|
10
|
+
3. Understand the coding standards and patterns you need to follow
|
|
11
|
+
4. Then proceed with your development plan
|
|
12
|
+
|
|
13
|
+
This step is **mandatory** before writing any backend code.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Read the frontend development guidelines before starting your development task.
|
|
2
|
+
|
|
3
|
+
Execute these steps:
|
|
4
|
+
1. Read `.trellis/spec/frontend/index.md` to understand available guidelines
|
|
5
|
+
2. Based on your task, read the relevant guideline files:
|
|
6
|
+
- Component work → `.trellis/spec/frontend/component-guidelines.md`
|
|
7
|
+
- Hook work → `.trellis/spec/frontend/hook-guidelines.md`
|
|
8
|
+
- State management → `.trellis/spec/frontend/state-management.md`
|
|
9
|
+
- Type questions → `.trellis/spec/frontend/type-safety.md`
|
|
10
|
+
3. Understand the coding standards and patterns you need to follow
|
|
11
|
+
4. Then proceed with your development plan
|
|
12
|
+
|
|
13
|
+
This step is **mandatory** before writing any frontend code.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Check if the code you just wrote follows the backend development guidelines.
|
|
2
|
+
|
|
3
|
+
Execute these steps:
|
|
4
|
+
1. Run `git status` to see modified files
|
|
5
|
+
2. Read `.trellis/spec/backend/index.md` to understand which guidelines apply
|
|
6
|
+
3. Based on what you changed, read the relevant guideline files:
|
|
7
|
+
- Database changes → `.trellis/spec/backend/database-guidelines.md`
|
|
8
|
+
- Error handling → `.trellis/spec/backend/error-handling.md`
|
|
9
|
+
- Logging changes → `.trellis/spec/backend/logging-guidelines.md`
|
|
10
|
+
- Type changes → `.trellis/spec/backend/type-safety.md`
|
|
11
|
+
- Any changes → `.trellis/spec/backend/quality-guidelines.md`
|
|
12
|
+
4. Review your code against the guidelines
|
|
13
|
+
5. Report any violations and fix them if found
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Check if the code you just wrote follows the frontend development guidelines.
|
|
2
|
+
|
|
3
|
+
Execute these steps:
|
|
4
|
+
1. Run `git status` to see modified files
|
|
5
|
+
2. Read `.trellis/spec/frontend/index.md` to understand which guidelines apply
|
|
6
|
+
3. Based on what you changed, read the relevant guideline files:
|
|
7
|
+
- Component changes → `.trellis/spec/frontend/component-guidelines.md`
|
|
8
|
+
- Hook changes → `.trellis/spec/frontend/hook-guidelines.md`
|
|
9
|
+
- State changes → `.trellis/spec/frontend/state-management.md`
|
|
10
|
+
- Type changes → `.trellis/spec/frontend/type-safety.md`
|
|
11
|
+
- Any changes → `.trellis/spec/frontend/quality-guidelines.md`
|
|
12
|
+
4. Review your code against the guidelines
|
|
13
|
+
5. Report any violations and fix them if found
|
|
@@ -101,8 +101,8 @@ Description:
|
|
|
101
101
|
| Command Type | Prefix | Example |
|
|
102
102
|
|--------------|--------|---------|
|
|
103
103
|
| Session Start | `start` | `start` |
|
|
104
|
-
| Pre-development | `before-` | `before-dev` |
|
|
105
|
-
| Check | `check-` | `check` |
|
|
104
|
+
| Pre-development | `before-` | `before-frontend-dev` |
|
|
105
|
+
| Check | `check-` | `check-frontend` |
|
|
106
106
|
| Record | `record-` | `record-session` |
|
|
107
107
|
| Generate | `generate-` | `generate-api-doc` |
|
|
108
108
|
| Update | `update-` | `update-changelog` |
|
|
@@ -126,13 +126,13 @@ AI needs the same onboarding - but compressed into seconds at session start.
|
|
|
126
126
|
|
|
127
127
|
---
|
|
128
128
|
|
|
129
|
-
### /trellis:before-dev - Inject Specialized Knowledge
|
|
129
|
+
### /trellis:before-frontend-dev and /trellis:before-backend-dev - Inject Specialized Knowledge
|
|
130
130
|
|
|
131
131
|
**WHY IT EXISTS**:
|
|
132
132
|
AI models have "pre-trained knowledge" - general patterns from millions of codebases. But YOUR project has specific conventions that differ from generic patterns.
|
|
133
133
|
|
|
134
134
|
**WHAT IT ACTUALLY DOES**:
|
|
135
|
-
1.
|
|
135
|
+
1. Reads `.trellis/spec/frontend/` or `.trellis/spec/backend/`
|
|
136
136
|
2. Loads project-specific patterns into AI's working context:
|
|
137
137
|
- Component naming conventions
|
|
138
138
|
- State management patterns
|
|
@@ -140,12 +140,12 @@ AI models have "pre-trained knowledge" - general patterns from millions of codeb
|
|
|
140
140
|
- Error handling standards
|
|
141
141
|
|
|
142
142
|
**WHY THIS MATTERS**:
|
|
143
|
-
- Without before
|
|
144
|
-
- With before
|
|
143
|
+
- Without before-*-dev: AI writes generic code that doesn't match project style.
|
|
144
|
+
- With before-*-dev: AI writes code that looks like the rest of the codebase.
|
|
145
145
|
|
|
146
146
|
---
|
|
147
147
|
|
|
148
|
-
### /trellis:check - Combat Context Drift
|
|
148
|
+
### /trellis:check-frontend and /trellis:check-backend - Combat Context Drift
|
|
149
149
|
|
|
150
150
|
**WHY IT EXISTS**:
|
|
151
151
|
AI context window has limited capacity. As conversation progresses, guidelines injected at session start become less influential. This causes "context drift."
|
|
@@ -211,9 +211,9 @@ All the context AI built during this session will be lost when session ends. The
|
|
|
211
211
|
|
|
212
212
|
**[1/8] /trellis:start** - AI needs project context before touching code
|
|
213
213
|
**[2/8] python3 ./.trellis/scripts/task.py create "Fix bug" --slug fix-bug** - Track work for future reference
|
|
214
|
-
**[3/8] /trellis:before-dev** - Inject project-specific
|
|
214
|
+
**[3/8] /trellis:before-frontend-dev** - Inject project-specific frontend knowledge
|
|
215
215
|
**[4/8] Investigate and fix the bug** - Actual development work
|
|
216
|
-
**[5/8] /trellis:check** - Re-verify code against guidelines
|
|
216
|
+
**[5/8] /trellis:check-frontend** - Re-verify code against guidelines
|
|
217
217
|
**[6/8] /trellis:finish-work** - Holistic cross-layer review
|
|
218
218
|
**[7/8] Human tests and commits** - Human validates before code enters repo
|
|
219
219
|
**[8/8] /trellis:record-session** - Persist memory for future sessions
|
|
@@ -228,9 +228,9 @@ All the context AI built during this session will be lost when session ends. The
|
|
|
228
228
|
### Example 3: Code Review Fixes
|
|
229
229
|
|
|
230
230
|
**[1/6] /trellis:start** - Resume context from previous session
|
|
231
|
-
**[2/6] /trellis:before-dev** - Re-inject guidelines before fixes
|
|
231
|
+
**[2/6] /trellis:before-backend-dev** - Re-inject guidelines before fixes
|
|
232
232
|
**[3/6] Fix each CR issue** - Address feedback with guidelines in context
|
|
233
|
-
**[4/6] /trellis:check** - Verify fixes
|
|
233
|
+
**[4/6] /trellis:check-backend** - Verify fixes didn't introduce new issues
|
|
234
234
|
**[5/6] /trellis:finish-work** - Document lessons from CR
|
|
235
235
|
**[6/6] Human commits, then /trellis:record-session** - Preserve CR lessons
|
|
236
236
|
|
|
@@ -238,16 +238,16 @@ All the context AI built during this session will be lost when session ends. The
|
|
|
238
238
|
|
|
239
239
|
**[1/5] /trellis:start** - Clear baseline before major changes
|
|
240
240
|
**[2/5] Plan phases** - Break into verifiable chunks
|
|
241
|
-
**[3/5] Execute phase by phase with /
|
|
241
|
+
**[3/5] Execute phase by phase with /check-* after each** - Incremental verification
|
|
242
242
|
**[4/5] /trellis:finish-work** - Check if new patterns should be documented
|
|
243
243
|
**[5/5] Record with multiple commit hashes** - Link all commits to one feature
|
|
244
244
|
|
|
245
245
|
### Example 5: Debug Session
|
|
246
246
|
|
|
247
247
|
**[1/6] /trellis:start** - See if this bug was investigated before
|
|
248
|
-
**[2/6] /trellis:before-dev** - Guidelines might document known gotchas
|
|
248
|
+
**[2/6] /trellis:before-backend-dev** - Guidelines might document known gotchas
|
|
249
249
|
**[3/6] Investigation** - Actual debugging work
|
|
250
|
-
**[4/6] /trellis:check** - Verify debug changes
|
|
250
|
+
**[4/6] /trellis:check-backend** - Verify debug changes don't break other things
|
|
251
251
|
**[5/6] /trellis:finish-work** - Debug findings might need documentation
|
|
252
252
|
**[6/6] Human commits, then /trellis:record-session** - Debug knowledge is valuable
|
|
253
253
|
|
|
@@ -256,7 +256,7 @@ All the context AI built during this session will be lost when session ends. The
|
|
|
256
256
|
## KEY RULES TO EMPHASIZE
|
|
257
257
|
|
|
258
258
|
1. **AI NEVER commits** - Human tests and approves. AI prepares, human validates.
|
|
259
|
-
2. **Guidelines before code** - /before
|
|
259
|
+
2. **Guidelines before code** - /before-*-dev commands inject project knowledge.
|
|
260
260
|
3. **Check after code** - /check-* commands catch context drift.
|
|
261
261
|
4. **Record everything** - /trellis:record-session persists memory.
|
|
262
262
|
|
|
@@ -41,7 +41,8 @@ python3 ./.trellis/scripts/get_context.py
|
|
|
41
41
|
### Step 3: Read Project Guidelines `[AI]`
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
|
|
44
|
+
cat .trellis/spec/frontend/index.md # Frontend guidelines index
|
|
45
|
+
cat .trellis/spec/backend/index.md # Backend guidelines index
|
|
45
46
|
cat .trellis/spec/guides/index.md # Thinking guides
|
|
46
47
|
```
|
|
47
48
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[!] **Prerequisite**: This command should only be used AFTER the human has tested and committed the code.
|
|
2
2
|
|
|
3
|
-
**
|
|
3
|
+
**Do NOT run `git commit` directly** — the scripts below handle their own commits for `.trellis/` metadata. You only need to read git history (`git log`, `git status`, `git diff`) and run the Python scripts.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ python3 ./.trellis/scripts/add_session.py \
|
|
|
31
31
|
--summary "Brief summary of what was done"
|
|
32
32
|
|
|
33
33
|
# Method 2: Pass detailed content via stdin
|
|
34
|
-
cat << 'EOF' | python3 ./.trellis/scripts/add_session.py --
|
|
34
|
+
cat << 'EOF' | python3 ./.trellis/scripts/add_session.py --title "Title" --commit "hash"
|
|
35
35
|
| Feature | Description |
|
|
36
36
|
|---------|-------------|
|
|
37
37
|
| New API | Added user authentication endpoint |
|
|
@@ -40,14 +40,10 @@ This shows: developer identity, git status, current task (if any), active tasks.
|
|
|
40
40
|
### Step 3: Read Guidelines Index
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
cat .trellis/spec/<package>/<layer>/index.md # Package-specific guidelines
|
|
50
|
-
cat .trellis/spec/guides/index.md # Thinking guides (always read)
|
|
43
|
+
cat .trellis/spec/frontend/index.md # Frontend guidelines
|
|
44
|
+
cat .trellis/spec/backend/index.md # Backend guidelines
|
|
45
|
+
cat .trellis/spec/guides/index.md # Thinking guides
|
|
46
|
+
cat .trellis/spec/unit-test/index.md # Testing guidelines
|
|
51
47
|
```
|
|
52
48
|
|
|
53
49
|
> **Important**: The index files are navigation — they list the actual guideline files (e.g., `error-handling.md`, `conventions.md`, `mock-strategies.md`).
|
|
@@ -339,7 +339,8 @@ def get_check_context(repo_root: str, task_dir: str) -> str:
|
|
|
339
339
|
check_files = [
|
|
340
340
|
(".claude/commands/trellis/finish-work.md", "Finish work checklist"),
|
|
341
341
|
(".claude/commands/trellis/check-cross-layer.md", "Cross-layer check spec"),
|
|
342
|
-
(".claude/commands/trellis/check.md", "
|
|
342
|
+
(".claude/commands/trellis/check-backend.md", "Backend check spec"),
|
|
343
|
+
(".claude/commands/trellis/check-frontend.md", "Frontend check spec"),
|
|
343
344
|
]
|
|
344
345
|
for file_path, description in check_files:
|
|
345
346
|
content = read_file_content(repo_root, file_path)
|
|
@@ -431,7 +432,8 @@ def get_debug_context(repo_root: str, task_dir: str) -> str:
|
|
|
431
432
|
context_parts.append(f"=== {file_path} (Dev spec) ===\n{content}")
|
|
432
433
|
|
|
433
434
|
check_files = [
|
|
434
|
-
(".claude/commands/trellis/check.md", "
|
|
435
|
+
(".claude/commands/trellis/check-backend.md", "Backend check spec"),
|
|
436
|
+
(".claude/commands/trellis/check-frontend.md", "Frontend check spec"),
|
|
435
437
|
(".claude/commands/trellis/check-cross-layer.md", "Cross-layer check spec"),
|
|
436
438
|
]
|
|
437
439
|
for file_path, description in check_files:
|
|
@@ -601,34 +603,24 @@ def get_research_context(repo_root: str, task_dir: str | None) -> str:
|
|
|
601
603
|
"""
|
|
602
604
|
context_parts = []
|
|
603
605
|
|
|
604
|
-
# 1. Project structure overview (
|
|
606
|
+
# 1. Project structure overview (uses constants for paths)
|
|
605
607
|
spec_path = f"{DIR_WORKFLOW}/{DIR_SPEC}"
|
|
606
|
-
spec_root = Path(repo_root) / DIR_WORKFLOW / DIR_SPEC
|
|
607
|
-
|
|
608
|
-
# Build spec tree dynamically
|
|
609
|
-
tree_lines = [f"{spec_path}/"]
|
|
610
|
-
if spec_root.is_dir():
|
|
611
|
-
pkg_dirs = sorted(d for d in spec_root.iterdir() if d.is_dir())
|
|
612
|
-
for i, pkg_dir in enumerate(pkg_dirs):
|
|
613
|
-
is_last = i == len(pkg_dirs) - 1
|
|
614
|
-
prefix = "└── " if is_last else "├── "
|
|
615
|
-
layers = sorted(d.name for d in pkg_dir.iterdir() if d.is_dir())
|
|
616
|
-
layer_info = f" ({', '.join(layers)})" if layers else ""
|
|
617
|
-
tree_lines.append(f"{prefix}{pkg_dir.name}/{layer_info}")
|
|
618
|
-
|
|
619
|
-
spec_tree = "\n".join(tree_lines)
|
|
620
|
-
|
|
621
608
|
project_structure = f"""## Project Spec Directory Structure
|
|
622
609
|
|
|
623
610
|
```
|
|
624
|
-
{
|
|
625
|
-
|
|
611
|
+
{spec_path}/
|
|
612
|
+
├── shared/ # Cross-project common specs (TypeScript, code quality, git)
|
|
613
|
+
├── frontend/ # Frontend standards
|
|
614
|
+
├── backend/ # Backend standards
|
|
615
|
+
└── guides/ # Thinking guides (cross-layer, code reuse, etc.)
|
|
626
616
|
|
|
627
|
-
|
|
617
|
+
{DIR_WORKFLOW}/big-question/ # Known issues and pitfalls
|
|
618
|
+
```
|
|
628
619
|
|
|
629
620
|
## Search Tips
|
|
630
621
|
|
|
631
622
|
- Spec files: `{spec_path}/**/*.md`
|
|
623
|
+
- Known issues: `{DIR_WORKFLOW}/big-question/`
|
|
632
624
|
- Code search: Use Glob and Grep tools
|
|
633
625
|
- Tech solutions: Use mcp__exa__web_search_exa or mcp__exa__get_code_context_exa"""
|
|
634
626
|
|