@ryuenn3123/agentic-senior-core 4.4.0 → 5.1.0

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 (196) hide show
  1. package/.agents/plugins/marketplace.json +21 -0
  2. package/.agents/rules/agentic-senior-core.md +126 -0
  3. package/.claude-plugin/marketplace.json +17 -0
  4. package/.claude-plugin/plugin.json +17 -0
  5. package/.clinerules/agentic-senior-core.md +94 -0
  6. package/.codex-plugin/plugin.json +24 -0
  7. package/.cursor/rules/agentic-senior-core.mdc +99 -0
  8. package/.devin-plugin/plugin.json +13 -0
  9. package/.github/copilot-instructions.md +94 -0
  10. package/.github/plugin/marketplace.json +20 -0
  11. package/.github/plugin/plugin.json +16 -0
  12. package/.kiro/steering/agentic-senior-core.md +94 -0
  13. package/.openclaw/skills/asc/SKILL.md +23 -0
  14. package/.openclaw/skills/asc-audit/SKILL.md +28 -0
  15. package/.openclaw/skills/asc-review/SKILL.md +54 -0
  16. package/.opencode/plugins/agentic-senior-core.mjs +31 -0
  17. package/.windsurf/rules/agentic-senior-core.md +94 -0
  18. package/AGENTS.md +126 -127
  19. package/CONTRIBUTING.md +93 -63
  20. package/README.md +160 -111
  21. package/__init__.py +61 -0
  22. package/bin/agentic-senior-core.js +42 -41
  23. package/commands/asc-audit.md +1 -0
  24. package/commands/asc-audit.toml +2 -0
  25. package/commands/asc-help.md +9 -0
  26. package/commands/asc-help.toml +2 -0
  27. package/commands/asc-refactor.md +1 -0
  28. package/commands/asc-refactor.toml +2 -0
  29. package/commands/asc-review.md +1 -0
  30. package/commands/asc-review.toml +2 -0
  31. package/gemini-extension.json +10 -0
  32. package/hooks/copilot-hooks.json +21 -0
  33. package/hooks/hooks.json +31 -0
  34. package/hooks/session-start.js +36 -0
  35. package/hooks/subagent-start.js +38 -0
  36. package/lib/cli/commands/adapter.mjs +109 -0
  37. package/lib/cli/commands/clean.mjs +63 -0
  38. package/lib/cli/commands/status.mjs +94 -0
  39. package/package.json +43 -60
  40. package/plugin.yaml +16 -0
  41. package/scripts/uninstall.js +38 -0
  42. package/skills/asc/SKILL.md +16 -0
  43. package/skills/asc-audit/SKILL.md +28 -0
  44. package/skills/asc-refactor/SKILL.md +35 -0
  45. package/skills/asc-review/SKILL.md +54 -0
  46. package/.agent-context/policies/llm-judge-threshold.json +0 -29
  47. package/.agent-context/prompts/bootstrap-design.md +0 -63
  48. package/.agent-context/prompts/compact-natural-mode.md +0 -100
  49. package/.agent-context/prompts/init-project.md +0 -60
  50. package/.agent-context/prompts/refactor.md +0 -38
  51. package/.agent-context/prompts/review-code.md +0 -31
  52. package/.agent-context/review-checklists/architecture-review.md +0 -57
  53. package/.agent-context/review-checklists/pr-checklist.md +0 -134
  54. package/.agent-context/rules/api-docs.md +0 -24
  55. package/.agent-context/rules/api-versioning.md +0 -16
  56. package/.agent-context/rules/architecture.md +0 -38
  57. package/.agent-context/rules/background-jobs.md +0 -17
  58. package/.agent-context/rules/config-and-flags.md +0 -16
  59. package/.agent-context/rules/database-design.md +0 -18
  60. package/.agent-context/rules/docker-runtime.md +0 -17
  61. package/.agent-context/rules/error-handling.md +0 -16
  62. package/.agent-context/rules/event-driven.md +0 -16
  63. package/.agent-context/rules/frontend-architecture.md +0 -54
  64. package/.agent-context/rules/microservices.md +0 -16
  65. package/.agent-context/rules/migrations.md +0 -16
  66. package/.agent-context/rules/observability.md +0 -16
  67. package/.agent-context/rules/performance.md +0 -16
  68. package/.agent-context/rules/realtime.md +0 -16
  69. package/.agent-context/rules/resilience.md +0 -18
  70. package/.agent-context/rules/security.md +0 -18
  71. package/.agent-context/rules/testing.md +0 -16
  72. package/.agent-context/state/README.md +0 -25
  73. package/.agent-context/state/architecture-map.md +0 -40
  74. package/.agent-context/state/benchmark-comparison-schema.json +0 -181
  75. package/.agent-context/state/benchmark-reproducibility.json +0 -87
  76. package/.agent-context/state/benchmark-thresholds.json +0 -10
  77. package/.agent-context/state/benchmark-writer-judge-config.json +0 -58
  78. package/.agent-context/state/dependency-map.md +0 -41
  79. package/.agent-context/state/memory-adapter-contract.json +0 -52
  80. package/.agent-context/state/memory-schema-v1.json +0 -88
  81. package/GEMINI.md +0 -1
  82. package/benchmarks/README.md +0 -60
  83. package/benchmarks/compact-natural-mode/fixtures.mjs +0 -359
  84. package/benchmarks/compact-natural-mode/scorer.mjs +0 -331
  85. package/benchmarks/runtime-token-saver/fixtures.mjs +0 -836
  86. package/lib/cli/adaptive-context/catalog.mjs +0 -394
  87. package/lib/cli/adaptive-context/file-signals.mjs +0 -100
  88. package/lib/cli/adaptive-context/implications.mjs +0 -44
  89. package/lib/cli/adaptive-context.mjs +0 -151
  90. package/lib/cli/audits/typography-palette-anti-repeat/color-utils.mjs +0 -156
  91. package/lib/cli/audits/typography-palette-anti-repeat/file-scanner.mjs +0 -103
  92. package/lib/cli/audits/typography-palette-anti-repeat/typography-utils.mjs +0 -70
  93. package/lib/cli/backup.mjs +0 -210
  94. package/lib/cli/commands/context.mjs +0 -140
  95. package/lib/cli/commands/init/project-context.mjs +0 -60
  96. package/lib/cli/commands/init/runtime-environment.mjs +0 -59
  97. package/lib/cli/commands/init/setup-decisions.mjs +0 -83
  98. package/lib/cli/commands/init.mjs +0 -654
  99. package/lib/cli/commands/launch.mjs +0 -76
  100. package/lib/cli/commands/optimize.mjs +0 -284
  101. package/lib/cli/commands/rollback.mjs +0 -64
  102. package/lib/cli/commands/upgrade/token-optimization-state.mjs +0 -51
  103. package/lib/cli/commands/upgrade.mjs +0 -451
  104. package/lib/cli/compiler.mjs +0 -187
  105. package/lib/cli/constants.mjs +0 -136
  106. package/lib/cli/detector/constants.mjs +0 -135
  107. package/lib/cli/detector/design-evidence/collector.mjs +0 -256
  108. package/lib/cli/detector/design-evidence/constants.mjs +0 -39
  109. package/lib/cli/detector/design-evidence/file-traversal.mjs +0 -83
  110. package/lib/cli/detector/design-evidence/structured-attribute-evidence.mjs +0 -117
  111. package/lib/cli/detector/design-evidence/summary.mjs +0 -109
  112. package/lib/cli/detector/design-evidence/utility-helpers.mjs +0 -122
  113. package/lib/cli/detector/design-evidence.mjs +0 -25
  114. package/lib/cli/detector/stack-detection.mjs +0 -243
  115. package/lib/cli/detector/ui-signals.mjs +0 -150
  116. package/lib/cli/detector/workspace-scan.mjs +0 -177
  117. package/lib/cli/detector.mjs +0 -23
  118. package/lib/cli/init-detection-flow.mjs +0 -48
  119. package/lib/cli/init-options.mjs +0 -237
  120. package/lib/cli/init-selection.mjs +0 -29
  121. package/lib/cli/memory-continuity.mjs +0 -537
  122. package/lib/cli/preflight.mjs +0 -76
  123. package/lib/cli/project-scaffolder/constants.mjs +0 -69
  124. package/lib/cli/project-scaffolder/discovery.mjs +0 -272
  125. package/lib/cli/project-scaffolder/prompt-builders.mjs +0 -171
  126. package/lib/cli/project-scaffolder/storage.mjs +0 -144
  127. package/lib/cli/project-scaffolder/ui-scope-detection.mjs +0 -36
  128. package/lib/cli/project-scaffolder.mjs +0 -29
  129. package/lib/cli/rollback.mjs +0 -66
  130. package/lib/cli/token-optimization.mjs +0 -401
  131. package/lib/cli/utils/filesystem.mjs +0 -81
  132. package/lib/cli/utils/managed-surface.mjs +0 -280
  133. package/lib/cli/utils/prompting.mjs +0 -44
  134. package/lib/cli/utils.mjs +0 -479
  135. package/mcp.json +0 -134
  136. package/scripts/adaptive-context/fixtures.mjs +0 -183
  137. package/scripts/adaptive-context-benchmark.mjs +0 -9
  138. package/scripts/ascx-runtime-token-saver-benchmark.mjs +0 -9
  139. package/scripts/benchmark-evidence-bundle.mjs +0 -645
  140. package/scripts/benchmark-gate.mjs +0 -121
  141. package/scripts/benchmark-intelligence.mjs +0 -33
  142. package/scripts/benchmark-writer-judge-matrix.mjs +0 -379
  143. package/scripts/build-release-benchmark-bundle.mjs +0 -202
  144. package/scripts/bump-version.mjs +0 -103
  145. package/scripts/clean-local-artifacts.mjs +0 -78
  146. package/scripts/compact-natural-mode-benchmark.mjs +0 -9
  147. package/scripts/context-triggered-audit.mjs +0 -391
  148. package/scripts/detection-benchmark.mjs +0 -127
  149. package/scripts/docs-quality-drift-report.mjs +0 -358
  150. package/scripts/documentation-boundary-audit.mjs +0 -305
  151. package/scripts/explain-on-demand-audit.mjs +0 -427
  152. package/scripts/forbidden-content-check.mjs +0 -123
  153. package/scripts/frontend-usability-audit.mjs +0 -243
  154. package/scripts/generate-sbom.mjs +0 -61
  155. package/scripts/governance-weekly-report.mjs +0 -466
  156. package/scripts/llm-judge/checklist-loader.mjs +0 -45
  157. package/scripts/llm-judge/constants.mjs +0 -66
  158. package/scripts/llm-judge/diff-collection.mjs +0 -74
  159. package/scripts/llm-judge/prompting.mjs +0 -78
  160. package/scripts/llm-judge/providers.mjs +0 -111
  161. package/scripts/llm-judge/verdict.mjs +0 -134
  162. package/scripts/llm-judge.mjs +0 -200
  163. package/scripts/memory-continuity-benchmark.mjs +0 -322
  164. package/scripts/quality-trend-report.mjs +0 -289
  165. package/scripts/release-gate/audit-checks.mjs +0 -441
  166. package/scripts/release-gate/constants.mjs +0 -53
  167. package/scripts/release-gate/runtime.mjs +0 -63
  168. package/scripts/release-gate/static-checks.mjs +0 -182
  169. package/scripts/release-gate.mjs +0 -42
  170. package/scripts/rules-guardian-audit.mjs +0 -580
  171. package/scripts/single-source-lazy-loading-audit.mjs +0 -449
  172. package/scripts/sync-thin-adapters.mjs +0 -72
  173. package/scripts/token-optimization-benchmark.mjs +0 -252
  174. package/scripts/ui-design-judge/constants.mjs +0 -13
  175. package/scripts/ui-design-judge/design-execution-summary.mjs +0 -81
  176. package/scripts/ui-design-judge/git-input.mjs +0 -134
  177. package/scripts/ui-design-judge/prompting.mjs +0 -52
  178. package/scripts/ui-design-judge/providers.mjs +0 -102
  179. package/scripts/ui-design-judge/reporting.mjs +0 -183
  180. package/scripts/ui-design-judge/rubric-calibration.mjs +0 -214
  181. package/scripts/ui-design-judge/rubric-goldset.json +0 -188
  182. package/scripts/ui-design-judge.mjs +0 -319
  183. package/scripts/ui-rubric-calibration.mjs +0 -35
  184. package/scripts/validate/audits/cache-layer-contract.mjs +0 -230
  185. package/scripts/validate/audits/caching-scope-hygiene.mjs +0 -235
  186. package/scripts/validate/audits/file-size.mjs +0 -158
  187. package/scripts/validate/audits/reflection-citations.mjs +0 -130
  188. package/scripts/validate/audits/release-bundle.mjs +0 -135
  189. package/scripts/validate/audits/rule-id-uniqueness.mjs +0 -278
  190. package/scripts/validate/config.mjs +0 -501
  191. package/scripts/validate/coverage-checks.mjs +0 -446
  192. package/scripts/validate/file-structure.mjs +0 -158
  193. package/scripts/validate/markdown-content.mjs +0 -109
  194. package/scripts/validate/project-metadata.mjs +0 -166
  195. package/scripts/validate/utils.mjs +0 -52
  196. package/scripts/validate.mjs +0 -267
@@ -1,60 +0,0 @@
1
- import fs from 'node:fs/promises';
2
- import path from 'node:path';
3
-
4
-
5
- function normalizeContextLine(rawText) {
6
- return String(rawText || '')
7
- .replace(/\s+/g, ' ')
8
- .trim();
9
- }
10
-
11
- async function readTextIfExists(filePath) {
12
- try {
13
- return await fs.readFile(filePath, 'utf8');
14
- } catch {
15
- return '';
16
- }
17
- }
18
-
19
- function extractMarkdownContext(rawMarkdown) {
20
- return String(rawMarkdown || '')
21
- .split(/\r?\n/)
22
- .map((line) => normalizeContextLine(line.replace(/^#+\s*/, '')))
23
- .filter((line) => line && !line.startsWith('---') && !line.startsWith('```'))
24
- .slice(0, 3)
25
- .join(' ');
26
- }
27
-
28
- export async function inferExistingProjectDescriptionHint(targetDirectoryPath) {
29
- const evidence = [];
30
- const packageJsonContent = await readTextIfExists(path.join(targetDirectoryPath, 'package.json'));
31
-
32
- if (packageJsonContent) {
33
- try {
34
- const packageManifest = JSON.parse(packageJsonContent);
35
- const packageSummary = [
36
- normalizeContextLine(packageManifest.name),
37
- normalizeContextLine(packageManifest.description),
38
- ].filter(Boolean).join(': ');
39
-
40
- if (packageSummary) {
41
- evidence.push(`package.json: ${packageSummary}`);
42
- }
43
- } catch {
44
- // Invalid package metadata should not block init; other files can still provide context.
45
- }
46
- }
47
-
48
- for (const relativeDocPath of ['docs/project-brief.md', 'docs/README.md', 'README.md']) {
49
- const docContext = extractMarkdownContext(
50
- await readTextIfExists(path.join(targetDirectoryPath, relativeDocPath))
51
- );
52
-
53
- if (docContext) {
54
- evidence.push(`${relativeDocPath}: ${docContext}`);
55
- }
56
- }
57
-
58
- return evidence.slice(0, 3).join(' | ');
59
- }
60
-
@@ -1,59 +0,0 @@
1
- import { RUNTIME_ENVIRONMENT_CHOICES } from '../../constants.mjs';
2
-
3
- export function resolveRuntimeEnvironmentKeyFromLabel(selectedRuntimeEnvironmentLabel) {
4
- const runtimeEnvironmentEntry = RUNTIME_ENVIRONMENT_CHOICES.find(
5
- (runtimeEnvironmentChoice) => runtimeEnvironmentChoice.label === selectedRuntimeEnvironmentLabel
6
- );
7
-
8
- return runtimeEnvironmentEntry?.key || null;
9
- }
10
-
11
- export function resolveRuntimeEnvironmentLabelFromKey(runtimeEnvironmentKey) {
12
- const runtimeEnvironmentEntry = RUNTIME_ENVIRONMENT_CHOICES.find(
13
- (runtimeEnvironmentChoice) => runtimeEnvironmentChoice.key === runtimeEnvironmentKey
14
- );
15
-
16
- return runtimeEnvironmentEntry?.label || runtimeEnvironmentKey;
17
- }
18
-
19
- export function detectRuntimeEnvironment() {
20
- const isWslEnvironment = Boolean(process.env.WSL_DISTRO_NAME || process.env.WSL_INTEROP || process.env.__IS_WSL_TEST__);
21
-
22
- if (isWslEnvironment) {
23
- return {
24
- key: 'linux-wsl',
25
- label: resolveRuntimeEnvironmentLabelFromKey('linux-wsl'),
26
- shellFamily: 'bash',
27
- isAutoDetected: true,
28
- source: 'WSL environment markers',
29
- };
30
- }
31
-
32
- if (process.platform === 'win32') {
33
- return {
34
- key: 'windows',
35
- label: resolveRuntimeEnvironmentLabelFromKey('windows'),
36
- shellFamily: 'powershell',
37
- isAutoDetected: true,
38
- source: 'process.platform',
39
- };
40
- }
41
-
42
- if (process.platform === 'darwin') {
43
- return {
44
- key: 'macos',
45
- label: resolveRuntimeEnvironmentLabelFromKey('macos'),
46
- shellFamily: 'bash',
47
- isAutoDetected: true,
48
- source: 'process.platform',
49
- };
50
- }
51
-
52
- return {
53
- key: 'linux',
54
- label: resolveRuntimeEnvironmentLabelFromKey('linux'),
55
- shellFamily: 'bash',
56
- isAutoDetected: true,
57
- source: 'process.platform',
58
- };
59
- }
@@ -1,83 +0,0 @@
1
- import { PROJECT_SCOPE_CHOICES } from '../../constants.mjs';
2
- import { matchFileNameFromInput, normalizeChoiceInput } from '../../utils.mjs';
3
-
4
- export function resolveProjectScopeLabelFromKey(projectScopeKey) {
5
- return PROJECT_SCOPE_CHOICES.find((scopeChoice) => scopeChoice.key === projectScopeKey)?.label
6
- || PROJECT_SCOPE_CHOICES.find((scopeChoice) => scopeChoice.key === 'both')?.label
7
- || 'Both (frontend + backend)';
8
- }
9
-
10
- export function inferProjectScopeFromDiscoveryAnswers(discoveryAnswers) {
11
- const normalizedDomain = String(discoveryAnswers?.primaryDomain || '').trim().toLowerCase();
12
- const normalizedDescription = [
13
- discoveryAnswers?.projectDescription,
14
- ...(Array.isArray(discoveryAnswers?.features) ? discoveryAnswers.features : []),
15
- ].join(' ').toLowerCase();
16
-
17
- if (
18
- normalizedDomain.includes('api service')
19
- || normalizedDomain.includes('cli tool')
20
- || normalizedDomain.includes('library')
21
- ) {
22
- return 'backend-only';
23
- }
24
-
25
- if (normalizedDomain.includes('mobile app')) {
26
- return 'frontend-only';
27
- }
28
-
29
- if (normalizedDomain.includes('web application')) {
30
- if (/(landing page|marketing site|showcase|portfolio|brochure|company profile)/.test(normalizedDescription)) {
31
- return 'frontend-only';
32
- }
33
-
34
- return 'both';
35
- }
36
-
37
- return 'both';
38
- }
39
-
40
- export function resolveSilentCiGuardrailsDefault({
41
- initOptions,
42
- selectedPreset,
43
- selectedPolicyProfile,
44
- }) {
45
- if (typeof initOptions.ci === 'boolean') {
46
- return {
47
- value: initOptions.ci,
48
- shouldAsk: false,
49
- };
50
- }
51
-
52
- if (typeof selectedPreset?.ci === 'boolean') {
53
- return {
54
- value: selectedPreset.ci,
55
- shouldAsk: false,
56
- };
57
- }
58
-
59
- if (selectedPolicyProfile.lockCi) {
60
- return {
61
- value: selectedPolicyProfile.defaultCi,
62
- shouldAsk: false,
63
- };
64
- }
65
-
66
- return {
67
- value: selectedPolicyProfile.defaultCi,
68
- shouldAsk: true,
69
- };
70
- }
71
-
72
- export function normalizeExplicitProfileFileName(rawInput, discoveredFileNames) {
73
- const matchedFileName = Array.isArray(discoveredFileNames) && discoveredFileNames.length > 0
74
- ? matchFileNameFromInput(rawInput, discoveredFileNames)
75
- : null;
76
-
77
- if (matchedFileName) {
78
- return matchedFileName;
79
- }
80
-
81
- const normalizedBaseName = normalizeChoiceInput(String(rawInput || '').replace(/\.md$/i, ''));
82
- return normalizedBaseName ? `${normalizedBaseName}.md` : null;
83
- }