@ryuenn3123/agentic-senior-core 3.0.37 → 3.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/.agent-context/prompts/bootstrap-design.md +109 -146
  2. package/.agent-context/rules/frontend-architecture.md +92 -108
  3. package/.agent-context/state/README.md +26 -0
  4. package/.agent-context/state/architecture-map.md +32 -17
  5. package/.agent-context/state/dependency-map.md +31 -22
  6. package/.cursor/mcp.json +10 -0
  7. package/.cursor/rules/agentic-senior-core.mdc +48 -0
  8. package/.cursorrules +22 -88
  9. package/.gemini/instructions.md +25 -16
  10. package/.github/copilot-instructions.md +25 -16
  11. package/.github/instructions/agentic-senior-core.instructions.md +47 -0
  12. package/.instructions.md +98 -207
  13. package/.windsurf/rules/agentic-senior-core.md +43 -0
  14. package/.windsurfrules +22 -88
  15. package/AGENTS.md +23 -26
  16. package/CLAUDE.md +43 -0
  17. package/CONTRIBUTING.md +7 -2
  18. package/GEMINI.md +43 -0
  19. package/README.md +25 -7
  20. package/lib/cli/backup.mjs +4 -4
  21. package/lib/cli/commands/init/project-context.mjs +101 -0
  22. package/lib/cli/commands/init/runtime-environment.mjs +59 -0
  23. package/lib/cli/commands/init/setup-decisions.mjs +83 -0
  24. package/lib/cli/commands/init.mjs +33 -250
  25. package/lib/cli/commands/optimize.mjs +1 -1
  26. package/lib/cli/commands/upgrade.mjs +34 -16
  27. package/lib/cli/compiler.mjs +59 -17
  28. package/lib/cli/constants.mjs +5 -0
  29. package/lib/cli/detector.mjs +4 -0
  30. package/lib/cli/init-detection-flow.mjs +9 -1
  31. package/lib/cli/init-selection.mjs +0 -5
  32. package/lib/cli/preflight.mjs +3 -3
  33. package/lib/cli/project-scaffolder/design-contract/validation.mjs +789 -0
  34. package/lib/cli/project-scaffolder/design-contract.mjs +119 -924
  35. package/lib/cli/project-scaffolder/prompt-builders.mjs +69 -84
  36. package/lib/cli/project-scaffolder.mjs +0 -2
  37. package/lib/cli/utils/filesystem.mjs +79 -0
  38. package/lib/cli/utils/managed-surface.mjs +237 -0
  39. package/lib/cli/utils/prompting.mjs +44 -0
  40. package/lib/cli/utils.mjs +33 -335
  41. package/package.json +21 -2
  42. package/scripts/bump-version.mjs +15 -13
  43. package/scripts/clean-local-artifacts.mjs +76 -0
  44. package/scripts/docs-quality-drift-report.mjs +5 -0
  45. package/scripts/frontend-usability-audit.mjs +23 -19
  46. package/scripts/governance-weekly-report.mjs +37 -15
  47. package/scripts/single-source-lazy-loading-audit.mjs +24 -0
  48. package/scripts/sync-thin-adapters.mjs +99 -129
  49. package/scripts/v3-purge-audit.mjs +5 -0
  50. package/scripts/validate/config.mjs +10 -0
  51. package/scripts/validate/coverage-checks.mjs +55 -0
  52. package/scripts/validate.mjs +20 -0
  53. package/.agent-context/marketplace/trust-tiers.json +0 -114
  54. package/.agent-context/state/benchmark-analysis.json +0 -431
  55. package/.agent-context/state/benchmark-evidence-bundle.json +0 -1040
  56. package/.agent-context/state/benchmark-history.json +0 -75
  57. package/.agent-context/state/benchmark-trend-report.csv +0 -5
  58. package/.agent-context/state/benchmark-trend-report.json +0 -140
  59. package/.agent-context/state/benchmark-writer-judge-matrix.json +0 -462
  60. package/.agent-context/state/memory-continuity-benchmark.json +0 -132
  61. package/.agent-context/state/onboarding-report.json +0 -102
  62. package/.agent-context/state/quality-trend-report.json +0 -89
  63. package/.agent-context/state/token-optimization-benchmark.json +0 -130
  64. package/.agent-context/state/weekly-governance-report.json +0 -329
  65. package/lib/cli/compatibility.mjs +0 -124
  66. package/scripts/validate-evidence-bundle.mjs +0 -76
@@ -1,132 +0,0 @@
1
- {
2
- "generatedAt": "2026-04-27T16:42:44.120Z",
3
- "reportName": "memory-continuity-benchmark",
4
- "schemaVersion": "1.0.0",
5
- "passed": true,
6
- "failureCount": 0,
7
- "thresholds": {
8
- "minimumRelevantRecall": 0.8,
9
- "minimumSessionStartTokenSavingsPercent": 35,
10
- "maximumUnsafeObservationCount": 0
11
- },
12
- "adapterCoverage": {
13
- "requiredAdapterIds": [
14
- "claude-code",
15
- "gemini-cli",
16
- "vscode-chat"
17
- ],
18
- "availableAdapterIds": [
19
- "claude-code",
20
- "gemini-cli",
21
- "vscode-chat"
22
- ],
23
- "missingAdapterIds": [],
24
- "passed": true
25
- },
26
- "privacyControls": {
27
- "redactedObservationCount": 2,
28
- "privateTagRedactionCount": 1,
29
- "inlineRedactionCount": 1,
30
- "unsafeObservationCount": 0
31
- },
32
- "continuitySummary": {
33
- "totalObservationCount": 5,
34
- "scenarioCount": 3,
35
- "averageRelevantRecall": 1,
36
- "averageSessionStartTokenSavingsPercent": 63.17
37
- },
38
- "scenarios": [
39
- {
40
- "scenarioId": "docker-lane-hydration",
41
- "query": "what is docker strategy for development and production",
42
- "expectedObservationIds": [
43
- "obs-001"
44
- ],
45
- "indexObservationIds": [
46
- "obs-001",
47
- "obs-005",
48
- "obs-003",
49
- "obs-002",
50
- "obs-004"
51
- ],
52
- "hydratedObservationIds": [
53
- "obs-001"
54
- ],
55
- "relevantRecall": 1,
56
- "fullContextTokenEstimate": 267,
57
- "sessionStartTokenEstimate": 103,
58
- "sessionStartTokenSavingsPercent": 61.42
59
- },
60
- {
61
- "scenarioId": "runtime-hydration",
62
- "query": "which runtime target should we prefer on windows with wsl",
63
- "expectedObservationIds": [
64
- "obs-002"
65
- ],
66
- "indexObservationIds": [
67
- "obs-002",
68
- "obs-001",
69
- "obs-005",
70
- "obs-004",
71
- "obs-003"
72
- ],
73
- "hydratedObservationIds": [
74
- "obs-002"
75
- ],
76
- "relevantRecall": 1,
77
- "fullContextTokenEstimate": 267,
78
- "sessionStartTokenEstimate": 97,
79
- "sessionStartTokenSavingsPercent": 63.67
80
- },
81
- {
82
- "scenarioId": "frontend-quality-hydration",
83
- "query": "show frontend rubric quality decisions",
84
- "expectedObservationIds": [
85
- "obs-003"
86
- ],
87
- "indexObservationIds": [
88
- "obs-003",
89
- "obs-005",
90
- "obs-004",
91
- "obs-002",
92
- "obs-001"
93
- ],
94
- "hydratedObservationIds": [
95
- "obs-003"
96
- ],
97
- "relevantRecall": 1,
98
- "fullContextTokenEstimate": 267,
99
- "sessionStartTokenEstimate": 95,
100
- "sessionStartTokenSavingsPercent": 64.42
101
- }
102
- ],
103
- "references": {
104
- "memorySchemaPath": ".agent-context/state/memory-schema-v1.json",
105
- "memoryAdapterContractPath": ".agent-context/state/memory-adapter-contract.json",
106
- "benchmarkOutputPath": ".agent-context/state/memory-continuity-benchmark.json",
107
- "schemaDeclaredVersion": "1.0.0",
108
- "adapterContractVersion": "1.0.0"
109
- },
110
- "checks": [
111
- {
112
- "checkName": "adapter-coverage",
113
- "passed": true,
114
- "details": "required=3 missing=0"
115
- },
116
- {
117
- "checkName": "continuity-recall-threshold",
118
- "passed": true,
119
- "details": "averageRelevantRecall=1 minimum=0.8"
120
- },
121
- {
122
- "checkName": "session-start-token-savings-threshold",
123
- "passed": true,
124
- "details": "averageSessionStartTokenSavingsPercent=63.17 minimum=35"
125
- },
126
- {
127
- "checkName": "privacy-redaction-safety",
128
- "passed": true,
129
- "details": "unsafeObservationCount=0 max=0"
130
- }
131
- ]
132
- }
@@ -1,102 +0,0 @@
1
- {
2
- "cliVersion": "3.0.19",
3
- "generatedAt": "2026-04-24T06:02:48.306Z",
4
- "operationMode": "upgrade",
5
- "selectedProfile": "beginner",
6
- "projectScope": null,
7
- "projectTopology": null,
8
- "runtimeDecision": {
9
- "mode": "agent-decision-required",
10
- "explicitStack": null,
11
- "detectedStackEvidence": "typescript.md",
12
- "detectedAdditionalStackEvidence": []
13
- },
14
- "architectureDecision": {
15
- "mode": "agent-decision-required",
16
- "explicitBlueprint": null,
17
- "detectedBlueprintEvidence": null
18
- },
19
- "selectedStack": null,
20
- "selectedAdditionalStacks": [],
21
- "selectedBlueprint": null,
22
- "selectedAdditionalBlueprints": [],
23
- "ruleLoadingPolicy": {
24
- "canonicalSource": ".instructions.md",
25
- "stackLoadingMode": "lazy",
26
- "loadedOnDemand": true,
27
- "primaryStack": null,
28
- "additionalStacks": [],
29
- "agentDecisionRequired": true
30
- },
31
- "ciGuardrailsEnabled": true,
32
- "setupDurationMs": 127,
33
- "runtimeEnvironment": null,
34
- "tokenOptimization": null,
35
- "memoryContinuity": null,
36
- "autoDetection": {
37
- "detectedStack": "typescript.md",
38
- "detectedAdditionalStacks": [],
39
- "detectedBlueprint": null,
40
- "detectedAdditionalBlueprints": [],
41
- "confidenceLabel": "high",
42
- "confidenceScore": 0.94,
43
- "confidenceGap": 0.94,
44
- "detectionReasoning": "Top signal Typescript won with confidence 0.94 from markers: package.json, tsconfig.json.",
45
- "rankedCandidates": [
46
- {
47
- "stackFileName": "typescript.md",
48
- "confidenceScore": 0.94,
49
- "evidence": [
50
- "package.json",
51
- "tsconfig.json"
52
- ]
53
- }
54
- ],
55
- "evidence": [
56
- "package.json",
57
- "tsconfig.json"
58
- ],
59
- "detectionTransparency": {
60
- "declaredAt": "2026-04-24T06:02:48.218Z",
61
- "declarationType": "existing-project",
62
- "declarationShown": true,
63
- "detectionSummary": "This folder looks like Typescript with high confidence based on package.json, tsconfig.json. Confidence gap: 0.94.",
64
- "activeRulesSummary": {
65
- "canonicalSource": ".instructions.md",
66
- "compiledEntrypoints": [
67
- ".cursorrules",
68
- ".windsurfrules"
69
- ],
70
- "stackLoadingMode": "lazy",
71
- "selectedProfile": "beginner",
72
- "selectedProfileDisplayName": "Beginner",
73
- "blockingSeverities": [
74
- "critical"
75
- ],
76
- "ciGuardrailsEnabled": true
77
- },
78
- "majorConstraints": [
79
- "Preserve existing project markers and avoid forced stack migration.",
80
- "Use runtime markers as evidence only unless the user already recorded an explicit runtime constraint.",
81
- "Upgrade keeps prior explicit onboarding constraints but does not create new stack or blueprint decisions."
82
- ],
83
- "quickConfirmation": {
84
- "offered": false,
85
- "response": "upgrade-auto",
86
- "source": "upgrade-assistant"
87
- },
88
- "decision": {
89
- "mode": "upgrade-auto",
90
- "selectedStackFileName": "agent-decision-runtime.md",
91
- "selectedBlueprintFileName": "agent-decision-architecture.md"
92
- }
93
- },
94
- "uiScope": {
95
- "isUiScopeLikely": false,
96
- "signalReasons": [],
97
- "workspaceUiEntries": [],
98
- "frontendEvidenceMetrics": null,
99
- "designEvidenceSummary": null
100
- }
101
- }
102
- }
@@ -1,89 +0,0 @@
1
- {
2
- "generatedAt": "2026-04-11T12:21:35.779Z",
3
- "reportName": "quality-trend-report",
4
- "methodology": {
5
- "gateSources": [
6
- "scripts/release-gate.mjs",
7
- "scripts/benchmark-gate.mjs",
8
- "scripts/benchmark-intelligence.mjs"
9
- ],
10
- "rollbackSource": "git log commit subjects within 30-day window",
11
- "tokenSource": ".agent-context/state/token-optimization-benchmark.json"
12
- },
13
- "governanceHealth": {
14
- "gateSummaries": [
15
- {
16
- "scriptPath": "scripts/release-gate.mjs",
17
- "gateName": "release-gate",
18
- "exitCode": 0,
19
- "passed": true,
20
- "parseError": null,
21
- "failureCount": 0,
22
- "generatedAt": "2026-04-11T12:21:35.292Z"
23
- },
24
- {
25
- "scriptPath": "scripts/benchmark-gate.mjs",
26
- "gateName": "benchmark-gate",
27
- "exitCode": 0,
28
- "passed": true,
29
- "parseError": null,
30
- "failureCount": 0,
31
- "generatedAt": "2026-04-11T12:21:35.433Z"
32
- },
33
- {
34
- "scriptPath": "scripts/benchmark-intelligence.mjs",
35
- "gateName": "benchmark-intelligence",
36
- "exitCode": 0,
37
- "passed": true,
38
- "parseError": null,
39
- "failureCount": 0,
40
- "generatedAt": "2026-04-11T12:21:35.480Z"
41
- }
42
- ],
43
- "availableGateCount": 3,
44
- "passedGateCount": 3,
45
- "gatePassRatePercent": 100
46
- },
47
- "rejectionCategories": [],
48
- "rollbackSignals": {
49
- "windowDays": 30,
50
- "commitCount": 46,
51
- "rollbackCommitCount": 1,
52
- "rollbackFrequencyPercent": 2.17,
53
- "source": "git-log",
54
- "error": null
55
- },
56
- "tokenEfficiency": {
57
- "isAvailable": true,
58
- "generatedAt": "2026-04-11T06:14:10.052Z",
59
- "averageNativeSavingsPercent": 83.64,
60
- "averageRtkSavingsPercent": 18.95,
61
- "scenarioCount": 3
62
- },
63
- "artifact": {
64
- "path": "E:\\Project\\Agentic-Senior-Core\\.agent-context\\state\\quality-trend-report.json",
65
- "writeMode": "stdout-and-file"
66
- },
67
- "history": [
68
- {
69
- "generatedAt": "2026-04-11T09:46:02.646Z",
70
- "gatePassRatePercent": 100,
71
- "passedGateCount": 3,
72
- "availableGateCount": 3,
73
- "rollbackFrequencyPercent": 2.27,
74
- "averageNativeSavingsPercent": 83.64,
75
- "averageRtkSavingsPercent": 18.95,
76
- "rejectionCategoryCount": 0
77
- },
78
- {
79
- "generatedAt": "2026-04-11T12:21:35.779Z",
80
- "gatePassRatePercent": 100,
81
- "passedGateCount": 3,
82
- "availableGateCount": 3,
83
- "rollbackFrequencyPercent": 2.17,
84
- "averageNativeSavingsPercent": 83.64,
85
- "averageRtkSavingsPercent": 18.95,
86
- "rejectionCategoryCount": 0
87
- }
88
- ]
89
- }
@@ -1,130 +0,0 @@
1
- {
2
- "generatedAt": "2026-04-11T06:14:10.052Z",
3
- "reportName": "token-optimization-benchmark",
4
- "methodology": {
5
- "tokenEstimate": "estimated_tokens = ceil(output_chars / 4)",
6
- "scope": "command-output estimate only; model-specific tokenization differs by provider",
7
- "repositoryRoot": "E:\\Project\\Agentic-Senior-Core"
8
- },
9
- "environment": {
10
- "nodeVersion": "v22.22.0",
11
- "platform": "win32",
12
- "rtk": {
13
- "isAvailable": true,
14
- "version": "0.35.0",
15
- "source": "local-tools",
16
- "executablePath": "E:\\Project\\Agentic-Senior-Core\\.benchmarks\\tools\\rtk\\rtk.exe",
17
- "reason": null
18
- }
19
- },
20
- "scenarios": [
21
- {
22
- "scenarioId": "git-show",
23
- "scenarioName": "Latest commit detail review",
24
- "baseline": {
25
- "command": "git show HEAD --stat --patch --no-color",
26
- "exitCode": 0,
27
- "outputChars": 15191,
28
- "outputLines": 368,
29
- "estimatedTokens": 3798
30
- },
31
- "nativeOptimized": {
32
- "command": "git show HEAD --stat --no-color",
33
- "exitCode": 0,
34
- "outputChars": 706,
35
- "outputLines": 14,
36
- "estimatedTokens": 177
37
- },
38
- "nativeSavings": {
39
- "tokenDelta": 3621,
40
- "savingsPercent": 95.34
41
- },
42
- "rtk": {
43
- "command": "E:\\Project\\Agentic-Senior-Core\\.benchmarks\\tools\\rtk\\rtk.exe git show HEAD --stat --patch --no-color",
44
- "exitCode": 0,
45
- "outputChars": 15191,
46
- "outputLines": 368,
47
- "estimatedTokens": 3798
48
- },
49
- "rtkSavings": {
50
- "tokenDelta": 0,
51
- "savingsPercent": 0
52
- }
53
- },
54
- {
55
- "scenarioId": "git-log",
56
- "scenarioName": "Commit history review",
57
- "baseline": {
58
- "command": "git log -n 50",
59
- "exitCode": 0,
60
- "outputChars": 14918,
61
- "outputLines": 385,
62
- "estimatedTokens": 3730
63
- },
64
- "nativeOptimized": {
65
- "command": "git log --oneline -n 50",
66
- "exitCode": 0,
67
- "outputChars": 3555,
68
- "outputLines": 50,
69
- "estimatedTokens": 889
70
- },
71
- "nativeSavings": {
72
- "tokenDelta": 2841,
73
- "savingsPercent": 76.17
74
- },
75
- "rtk": {
76
- "command": "E:\\Project\\Agentic-Senior-Core\\.benchmarks\\tools\\rtk\\rtk.exe git log -n 50",
77
- "exitCode": 0,
78
- "outputChars": 6437,
79
- "outputLines": 74,
80
- "estimatedTokens": 1610
81
- },
82
- "rtkSavings": {
83
- "tokenDelta": 2120,
84
- "savingsPercent": 56.84
85
- }
86
- },
87
- {
88
- "scenarioId": "search-token",
89
- "scenarioName": "Search result scan",
90
- "baseline": {
91
- "command": "git grep -n token",
92
- "exitCode": 0,
93
- "outputChars": 21353,
94
- "outputLines": 190,
95
- "estimatedTokens": 5339
96
- },
97
- "nativeOptimized": {
98
- "command": "git grep -n token README.md docs",
99
- "exitCode": 0,
100
- "outputChars": 4395,
101
- "outputLines": 38,
102
- "estimatedTokens": 1099
103
- },
104
- "nativeSavings": {
105
- "tokenDelta": 4240,
106
- "savingsPercent": 79.42
107
- },
108
- "rtk": {
109
- "command": "E:\\Project\\Agentic-Senior-Core\\.benchmarks\\tools\\rtk\\rtk.exe git grep -n token",
110
- "exitCode": 0,
111
- "outputChars": 21353,
112
- "outputLines": 190,
113
- "estimatedTokens": 5339
114
- },
115
- "rtkSavings": {
116
- "tokenDelta": 0,
117
- "savingsPercent": 0
118
- }
119
- }
120
- ],
121
- "summary": {
122
- "scenarioCount": 3,
123
- "averageNativeSavingsPercent": 83.64,
124
- "averageRtkSavingsPercent": 18.95
125
- },
126
- "artifact": {
127
- "path": "E:\\Project\\Agentic-Senior-Core\\.agent-context\\state\\token-optimization-benchmark.json",
128
- "writeMode": "stdout-and-file"
129
- }
130
- }