@ryuenn3123/agentic-senior-core 3.0.34 → 3.0.35
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/.agent-context/state/memory-continuity-benchmark.json +1 -1
- package/.cursorrules +1 -1
- package/.windsurfrules +1 -1
- package/lib/cli/project-scaffolder/design-contract.mjs +1 -0
- package/lib/cli/project-scaffolder/discovery.mjs +2 -1
- package/lib/cli/project-scaffolder/storage.mjs +10 -7
- package/package.json +1 -1
package/.cursorrules
CHANGED
package/.windsurfrules
CHANGED
|
@@ -8,6 +8,7 @@ export function shouldBootstrapDesignDocument(discoveryAnswers, initContext) {
|
|
|
8
8
|
const isUiDomain = normalizedDomain.includes('web')
|
|
9
9
|
|| normalizedDomain.includes('mobile')
|
|
10
10
|
|| normalizedDomain.includes('frontend')
|
|
11
|
+
|| normalizedDomain.includes('fullstack')
|
|
11
12
|
|| normalizedDomain.includes('ui');
|
|
12
13
|
|
|
13
14
|
const isBackendOnlyDomain = normalizedDomain.includes('api service')
|
|
@@ -165,7 +165,8 @@ export function resolveProjectDocTargets(discoveryAnswers) {
|
|
|
165
165
|
const hasDatabase = !discoveryAnswers.databaseChoice.toLowerCase().startsWith('none');
|
|
166
166
|
const isApiOrWebDomain = ['API service', 'Web application'].includes(discoveryAnswers.primaryDomain)
|
|
167
167
|
|| discoveryAnswers.primaryDomain.toLowerCase().includes('api')
|
|
168
|
-
|| discoveryAnswers.primaryDomain.toLowerCase().includes('web')
|
|
168
|
+
|| discoveryAnswers.primaryDomain.toLowerCase().includes('web')
|
|
169
|
+
|| discoveryAnswers.primaryDomain.toLowerCase().includes('fullstack');
|
|
169
170
|
|
|
170
171
|
const requiredDocFileNames = [
|
|
171
172
|
'project-brief.md',
|
|
@@ -43,6 +43,15 @@ export async function generateProjectDocumentation(
|
|
|
43
43
|
const expectedDocFileNames = [...requiredDocFileNames];
|
|
44
44
|
const generatedPromptFileNames = [];
|
|
45
45
|
const materializedFileNames = [];
|
|
46
|
+
const shouldCreateDesignContract = shouldBootstrapDesignDocument(discoveryAnswers, initContext);
|
|
47
|
+
|
|
48
|
+
if (shouldCreateDesignContract) {
|
|
49
|
+
for (const designContractFileName of UI_DESIGN_CONTRACT_FILE_NAMES) {
|
|
50
|
+
if (!expectedDocFileNames.includes(designContractFileName)) {
|
|
51
|
+
expectedDocFileNames.push(designContractFileName);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
46
55
|
|
|
47
56
|
const projectContextPromptFileName = 'bootstrap-project-context.md';
|
|
48
57
|
const projectContextPromptContent = buildProjectContextBootstrapPrompt({
|
|
@@ -58,7 +67,7 @@ export async function generateProjectDocumentation(
|
|
|
58
67
|
);
|
|
59
68
|
generatedPromptFileNames.push(projectContextPromptFileName);
|
|
60
69
|
|
|
61
|
-
if (
|
|
70
|
+
if (shouldCreateDesignContract) {
|
|
62
71
|
const designPromptFileName = 'bootstrap-design.md';
|
|
63
72
|
const designPromptContent = buildDesignBootstrapPrompt({
|
|
64
73
|
discoveryAnswers,
|
|
@@ -75,12 +84,6 @@ export async function generateProjectDocumentation(
|
|
|
75
84
|
});
|
|
76
85
|
await fs.writeFile(path.join(docsDirectoryPath, designIntentSeedFileName), designIntentSeedContent, 'utf8');
|
|
77
86
|
materializedFileNames.push(designIntentSeedFileName);
|
|
78
|
-
|
|
79
|
-
for (const designContractFileName of UI_DESIGN_CONTRACT_FILE_NAMES) {
|
|
80
|
-
if (!expectedDocFileNames.includes(designContractFileName)) {
|
|
81
|
-
expectedDocFileNames.push(designContractFileName);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
87
|
}
|
|
85
88
|
|
|
86
89
|
return {
|