@ryuenn3123/agentic-senior-core 3.0.10 → 3.0.12
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/prompts/bootstrap-design.md +7 -1
- package/.agent-context/state/memory-continuity-benchmark.json +1 -1
- package/.cursorrules +1 -1
- package/.windsurfrules +1 -1
- package/lib/cli/commands/init.mjs +2 -0
- package/lib/cli/commands/upgrade.mjs +5 -0
- package/lib/cli/compiler.mjs +9 -0
- package/lib/cli/constants.mjs +1 -0
- package/lib/cli/detector.mjs +422 -90
- package/lib/cli/project-scaffolder.mjs +122 -8
- package/package.json +1 -2
- package/scripts/frontend-usability-audit.mjs +4 -1
- package/scripts/mcp-server.mjs +200 -118
- package/scripts/ui-design-judge.mjs +21 -86
- package/scripts/validate.mjs +6 -1
- package/.agent-context/state/ui-design-judge-report.json +0 -25
|
@@ -23,6 +23,8 @@ The agent must:
|
|
|
23
23
|
8. Treat any example structure or stylistic inspiration as non-normative. Use it only to judge depth and clarity, never to copy a visual language directly.
|
|
24
24
|
9. All references to docs or rules must be clickable markdown links.
|
|
25
25
|
10. Responsive work must adapt layout, navigation, density, and task order across viewports. Shrinking desktop layouts is not enough.
|
|
26
|
+
11. Motion is allowed when it improves feedback, continuity, or spatial understanding. Do not flatten everything into static screens, but do reject decorative motion with no product value.
|
|
27
|
+
12. Define how core components morph across interaction states and viewports. Component quality is not only visual styling; it includes behavior under hover, focus, active, loading, error, and constrained layouts.
|
|
26
28
|
|
|
27
29
|
Required `docs/DESIGN.md` sections:
|
|
28
30
|
1. Design Intent and Product Personality
|
|
@@ -33,7 +35,7 @@ Required `docs/DESIGN.md` sections:
|
|
|
33
35
|
6. Spacing, Layout Rhythm, and Density Strategy
|
|
34
36
|
7. Responsive Strategy and Cross-Viewport Adaptation Matrix
|
|
35
37
|
8. Interaction, Motion, and Feedback Rules
|
|
36
|
-
9. Component Language and Shared Patterns
|
|
38
|
+
9. Component Language, Morphology, and Shared Patterns
|
|
37
39
|
10. Accessibility Non-Negotiables
|
|
38
40
|
11. Anti-Patterns to Avoid
|
|
39
41
|
12. Implementation Notes for Future UI Tasks
|
|
@@ -49,6 +51,8 @@ Required `docs/design-intent.json` fields:
|
|
|
49
51
|
- `mathSystems`
|
|
50
52
|
- `colorTruth`
|
|
51
53
|
- `crossViewportAdaptation`
|
|
54
|
+
- `motionSystem`
|
|
55
|
+
- `componentMorphology`
|
|
52
56
|
- `experiencePrinciples`
|
|
53
57
|
- `forbiddenPatterns`
|
|
54
58
|
- `validationHints`
|
|
@@ -59,7 +63,9 @@ Output:
|
|
|
59
63
|
- Create or update both `docs/DESIGN.md` and `docs/design-intent.json`.
|
|
60
64
|
- Keep both files synchronized: the markdown explains the why, the JSON captures the contract in machine-readable form.
|
|
61
65
|
- `docs/design-intent.json` must include deterministic fields for `colorTruth.format`, `colorTruth.allowHexDerivatives`, and `crossViewportAdaptation.mutationRules.mobile/tablet/desktop`.
|
|
66
|
+
- `docs/design-intent.json` must also include `motionSystem` and `componentMorphology` so future UI work preserves state behavior and purposeful motion without collapsing into generic static output.
|
|
62
67
|
- Color intent must be defined in a perceptual or relational color model first. Hex values may appear only as implementation derivatives.
|
|
63
68
|
- The contract must encode viewport mutation rules, not just breakpoint names.
|
|
69
|
+
- Motion guidance must preserve creativity: allow meaningful animation, define reduced-motion behavior, and keep choreography fast, intentional, and performant.
|
|
64
70
|
- Use practical, modern, accessible language grounded in the project, not generic SaaS defaults or copycat brand systems.
|
|
65
71
|
- Wait for user approval before generating Figma or code assets.
|
package/.cursorrules
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AGENTIC-SENIOR-CORE DYNAMIC GOVERNANCE RULESET
|
|
2
2
|
|
|
3
|
-
Generated by Agentic-Senior-Core CLI v3.0.
|
|
3
|
+
Generated by Agentic-Senior-Core CLI v3.0.12
|
|
4
4
|
Timestamp: 2026-04-18T00:00:00.000Z
|
|
5
5
|
Selected profile: beginner
|
|
6
6
|
Selected policy file: .agent-context/policies/llm-judge-threshold.json
|
package/.windsurfrules
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AGENTIC-SENIOR-CORE DYNAMIC GOVERNANCE RULESET
|
|
2
2
|
|
|
3
|
-
Generated by Agentic-Senior-Core CLI v3.0.
|
|
3
|
+
Generated by Agentic-Senior-Core CLI v3.0.12
|
|
4
4
|
Timestamp: 2026-04-18T00:00:00.000Z
|
|
5
5
|
Selected profile: beginner
|
|
6
6
|
Selected policy file: .agent-context/policies/llm-judge-threshold.json
|
|
@@ -204,6 +204,7 @@ function buildInitExistingProjectDesignIntentSeed({
|
|
|
204
204
|
repoEvidence: {
|
|
205
205
|
uiSignalReasons: uiScopeSignals.signalReasons,
|
|
206
206
|
frontendMetrics: uiScopeSignals.frontendEvidenceMetrics || null,
|
|
207
|
+
workspaceUiEntries: uiScopeSignals.workspaceUiEntries || [],
|
|
207
208
|
},
|
|
208
209
|
},
|
|
209
210
|
});
|
|
@@ -791,6 +792,7 @@ export async function runInitCommand(targetDirectoryArgument, initOptions = {})
|
|
|
791
792
|
},
|
|
792
793
|
architectRecommendation: architectureRecommendation,
|
|
793
794
|
detectionTransparency,
|
|
795
|
+
uiScopeSignals: existingProjectUiScopeSignals,
|
|
794
796
|
});
|
|
795
797
|
|
|
796
798
|
if (architectPreferenceUpdated && architectPreferenceState) {
|
|
@@ -140,6 +140,7 @@ function buildUpgradeDesignIntentSeed({
|
|
|
140
140
|
repoEvidence: {
|
|
141
141
|
uiSignalReasons: uiScopeSignals.signalReasons,
|
|
142
142
|
frontendMetrics: uiScopeSignals.frontendEvidenceMetrics || null,
|
|
143
|
+
workspaceUiEntries: uiScopeSignals.workspaceUiEntries || [],
|
|
143
144
|
},
|
|
144
145
|
},
|
|
145
146
|
});
|
|
@@ -365,6 +366,9 @@ export async function runUpgradeCommand(targetDirectoryArgument, upgradeOptions
|
|
|
365
366
|
if (uiScopeSignals.signalReasons.length > 0) {
|
|
366
367
|
console.log(`- Detection signals: ${uiScopeSignals.signalReasons.join('; ')}`);
|
|
367
368
|
}
|
|
369
|
+
if (Array.isArray(uiScopeSignals.workspaceUiEntries) && uiScopeSignals.workspaceUiEntries.length > 0) {
|
|
370
|
+
console.log(`- Nested UI workspaces: ${uiScopeSignals.workspaceUiEntries.map((workspaceUiEntry) => workspaceUiEntry.relativePath).join(', ')}`);
|
|
371
|
+
}
|
|
368
372
|
if (shouldSeedDesignIntentOnApply) {
|
|
369
373
|
console.log('- Planned seed on apply: docs/design-intent.json');
|
|
370
374
|
}
|
|
@@ -424,6 +428,7 @@ export async function runUpgradeCommand(targetDirectoryArgument, upgradeOptions
|
|
|
424
428
|
runtimeEnvironment: existingOnboardingReport?.runtimeEnvironment || null,
|
|
425
429
|
operationMode: 'upgrade',
|
|
426
430
|
detectionTransparency,
|
|
431
|
+
uiScopeSignals,
|
|
427
432
|
});
|
|
428
433
|
|
|
429
434
|
console.log('\nUpgrade complete.');
|
package/lib/cli/compiler.mjs
CHANGED
|
@@ -51,6 +51,7 @@ export async function writeOnboardingReport({
|
|
|
51
51
|
memoryContinuity = undefined,
|
|
52
52
|
architectRecommendation = null,
|
|
53
53
|
detectionTransparency = null,
|
|
54
|
+
uiScopeSignals = null,
|
|
54
55
|
}) {
|
|
55
56
|
const onboardingReportPath = path.join(targetDirectoryPath, '.agent-context', 'state', 'onboarding-report.json');
|
|
56
57
|
const resolvedTokenOptimization = typeof tokenOptimization === 'undefined'
|
|
@@ -105,6 +106,14 @@ export async function writeOnboardingReport({
|
|
|
105
106
|
rankedCandidates: projectDetection.rankedCandidates,
|
|
106
107
|
evidence: projectDetection.evidence,
|
|
107
108
|
detectionTransparency: detectionTransparency || null,
|
|
109
|
+
uiScope: uiScopeSignals
|
|
110
|
+
? {
|
|
111
|
+
isUiScopeLikely: uiScopeSignals.isUiScopeLikely === true,
|
|
112
|
+
signalReasons: uiScopeSignals.signalReasons || [],
|
|
113
|
+
workspaceUiEntries: uiScopeSignals.workspaceUiEntries || [],
|
|
114
|
+
frontendEvidenceMetrics: uiScopeSignals.frontendEvidenceMetrics || null,
|
|
115
|
+
}
|
|
116
|
+
: null,
|
|
108
117
|
},
|
|
109
118
|
};
|
|
110
119
|
|