mcp-ai-agent-guidelines 0.12.6 → 0.13.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.
- package/README.md +87 -21
- package/dist/agents/definitions/code-scorer-agent.d.ts +12 -0
- package/dist/agents/definitions/code-scorer-agent.d.ts.map +1 -0
- package/dist/agents/definitions/code-scorer-agent.js +42 -0
- package/dist/agents/definitions/code-scorer-agent.js.map +1 -0
- package/dist/agents/definitions/design-agent.d.ts +12 -0
- package/dist/agents/definitions/design-agent.d.ts.map +1 -0
- package/dist/agents/definitions/design-agent.js +63 -0
- package/dist/agents/definitions/design-agent.js.map +1 -0
- package/dist/agents/definitions/index.d.ts +18 -0
- package/dist/agents/definitions/index.d.ts.map +1 -0
- package/dist/agents/definitions/index.js +27 -0
- package/dist/agents/definitions/index.js.map +1 -0
- package/dist/agents/definitions/security-agent.d.ts +12 -0
- package/dist/agents/definitions/security-agent.d.ts.map +1 -0
- package/dist/agents/definitions/security-agent.js +71 -0
- package/dist/agents/definitions/security-agent.js.map +1 -0
- package/dist/agents/execution-graph.d.ts +97 -0
- package/dist/agents/execution-graph.d.ts.map +1 -0
- package/dist/agents/execution-graph.js +122 -0
- package/dist/agents/execution-graph.js.map +1 -0
- package/dist/agents/index.d.ts +11 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +14 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/orchestrator.d.ts +106 -0
- package/dist/agents/orchestrator.d.ts.map +1 -0
- package/dist/agents/orchestrator.js +183 -0
- package/dist/agents/orchestrator.js.map +1 -0
- package/dist/agents/registry.d.ts +58 -0
- package/dist/agents/registry.d.ts.map +1 -0
- package/dist/agents/registry.js +79 -0
- package/dist/agents/registry.js.map +1 -0
- package/dist/agents/types.d.ts +64 -0
- package/dist/agents/types.d.ts.map +1 -0
- package/dist/agents/types.js +7 -0
- package/dist/agents/types.js.map +1 -0
- package/dist/agents/workflows/code-review-chain.d.ts +31 -0
- package/dist/agents/workflows/code-review-chain.d.ts.map +1 -0
- package/dist/agents/workflows/code-review-chain.js +57 -0
- package/dist/agents/workflows/code-review-chain.js.map +1 -0
- package/dist/agents/workflows/design-to-spec.d.ts +36 -0
- package/dist/agents/workflows/design-to-spec.d.ts.map +1 -0
- package/dist/agents/workflows/design-to-spec.js +70 -0
- package/dist/agents/workflows/design-to-spec.js.map +1 -0
- package/dist/agents/workflows/index.d.ts +42 -0
- package/dist/agents/workflows/index.d.ts.map +1 -0
- package/dist/agents/workflows/index.js +51 -0
- package/dist/agents/workflows/index.js.map +1 -0
- package/dist/config/feature-flags.d.ts +112 -0
- package/dist/config/feature-flags.d.ts.map +1 -0
- package/dist/config/feature-flags.js +101 -0
- package/dist/config/feature-flags.js.map +1 -0
- package/dist/domain/analysis/code-scorer.d.ts +62 -0
- package/dist/domain/analysis/code-scorer.d.ts.map +1 -0
- package/dist/domain/analysis/code-scorer.js +204 -0
- package/dist/domain/analysis/code-scorer.js.map +1 -0
- package/dist/domain/analysis/index.d.ts +4 -0
- package/dist/domain/analysis/index.d.ts.map +1 -0
- package/dist/domain/analysis/index.js +2 -0
- package/dist/domain/analysis/index.js.map +1 -0
- package/dist/domain/analysis/types.d.ts +22 -0
- package/dist/domain/analysis/types.d.ts.map +1 -0
- package/dist/domain/analysis/types.js +2 -0
- package/dist/domain/analysis/types.js.map +1 -0
- package/dist/domain/design/index.d.ts +4 -0
- package/dist/domain/design/index.d.ts.map +1 -0
- package/dist/domain/design/index.js +4 -0
- package/dist/domain/design/index.js.map +1 -0
- package/dist/domain/design/phase-workflow.d.ts +187 -0
- package/dist/domain/design/phase-workflow.d.ts.map +1 -0
- package/dist/domain/design/phase-workflow.js +257 -0
- package/dist/domain/design/phase-workflow.js.map +1 -0
- package/dist/domain/design/session-manager.d.ts +134 -0
- package/dist/domain/design/session-manager.d.ts.map +1 -0
- package/dist/domain/design/session-manager.js +191 -0
- package/dist/domain/design/session-manager.js.map +1 -0
- package/dist/domain/design/types.d.ts +83 -0
- package/dist/domain/design/types.d.ts.map +1 -0
- package/dist/domain/design/types.js +2 -0
- package/dist/domain/design/types.js.map +1 -0
- package/dist/domain/index.d.ts +4 -0
- package/dist/domain/index.d.ts.map +1 -0
- package/dist/domain/index.js +4 -0
- package/dist/domain/index.js.map +1 -0
- package/dist/domain/prompting/hierarchical-builder.d.ts +22 -0
- package/dist/domain/prompting/hierarchical-builder.d.ts.map +1 -0
- package/dist/domain/prompting/hierarchical-builder.js +114 -0
- package/dist/domain/prompting/hierarchical-builder.js.map +1 -0
- package/dist/domain/prompting/index.d.ts +5 -0
- package/dist/domain/prompting/index.d.ts.map +1 -0
- package/dist/domain/prompting/index.js +3 -0
- package/dist/domain/prompting/index.js.map +1 -0
- package/dist/domain/prompting/security-builder.d.ts +45 -0
- package/dist/domain/prompting/security-builder.d.ts.map +1 -0
- package/dist/domain/prompting/security-builder.js +158 -0
- package/dist/domain/prompting/security-builder.js.map +1 -0
- package/dist/domain/prompting/types.d.ts +25 -0
- package/dist/domain/prompting/types.d.ts.map +1 -0
- package/dist/domain/prompting/types.js +2 -0
- package/dist/domain/prompting/types.js.map +1 -0
- package/dist/gateway/index.d.ts +10 -0
- package/dist/gateway/index.d.ts.map +1 -0
- package/dist/gateway/index.js +10 -0
- package/dist/gateway/index.js.map +1 -0
- package/dist/gateway/output-selector.d.ts +100 -0
- package/dist/gateway/output-selector.d.ts.map +1 -0
- package/dist/gateway/output-selector.js +236 -0
- package/dist/gateway/output-selector.js.map +1 -0
- package/dist/gateway/polyglot-gateway.d.ts +133 -0
- package/dist/gateway/polyglot-gateway.d.ts.map +1 -0
- package/dist/gateway/polyglot-gateway.js +155 -0
- package/dist/gateway/polyglot-gateway.js.map +1 -0
- package/dist/index.d.ts +37 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2403 -1721
- package/dist/index.js.map +1 -1
- package/dist/schemas/flow-tool-schemas.d.ts +20 -0
- package/dist/schemas/flow-tool-schemas.d.ts.map +1 -1
- package/dist/schemas/flow-tool-schemas.js +37 -2
- package/dist/schemas/flow-tool-schemas.js.map +1 -1
- package/dist/schemas/prompt-hierarchy.d.ts +34 -0
- package/dist/schemas/prompt-hierarchy.d.ts.map +1 -0
- package/dist/schemas/prompt-hierarchy.js +13 -0
- package/dist/schemas/prompt-hierarchy.js.map +1 -0
- package/dist/schemas/update-progress.d.ts +90 -0
- package/dist/schemas/update-progress.d.ts.map +1 -0
- package/dist/schemas/update-progress.js +56 -0
- package/dist/schemas/update-progress.js.map +1 -0
- package/dist/schemas/validate-spec.d.ts +38 -0
- package/dist/schemas/validate-spec.d.ts.map +1 -0
- package/dist/schemas/validate-spec.js +34 -0
- package/dist/schemas/validate-spec.js.map +1 -0
- package/dist/strategies/adr-strategy.d.ts +219 -0
- package/dist/strategies/adr-strategy.d.ts.map +1 -0
- package/dist/strategies/adr-strategy.js +387 -0
- package/dist/strategies/adr-strategy.js.map +1 -0
- package/dist/strategies/chat-strategy.d.ts +85 -0
- package/dist/strategies/chat-strategy.d.ts.map +1 -0
- package/dist/strategies/chat-strategy.js +143 -0
- package/dist/strategies/chat-strategy.js.map +1 -0
- package/dist/strategies/cross-cutting/diagram-handler.d.ts +90 -0
- package/dist/strategies/cross-cutting/diagram-handler.d.ts.map +1 -0
- package/dist/strategies/cross-cutting/diagram-handler.js +203 -0
- package/dist/strategies/cross-cutting/diagram-handler.js.map +1 -0
- package/dist/strategies/cross-cutting/index.d.ts +14 -0
- package/dist/strategies/cross-cutting/index.d.ts.map +1 -0
- package/dist/strategies/cross-cutting/index.js +13 -0
- package/dist/strategies/cross-cutting/index.js.map +1 -0
- package/dist/strategies/cross-cutting/manager.d.ts +94 -0
- package/dist/strategies/cross-cutting/manager.d.ts.map +1 -0
- package/dist/strategies/cross-cutting/manager.js +137 -0
- package/dist/strategies/cross-cutting/manager.js.map +1 -0
- package/dist/strategies/cross-cutting/types.d.ts +67 -0
- package/dist/strategies/cross-cutting/types.d.ts.map +1 -0
- package/dist/strategies/cross-cutting/types.js +11 -0
- package/dist/strategies/cross-cutting/types.js.map +1 -0
- package/dist/strategies/cross-cutting/workflow-handler.d.ts +132 -0
- package/dist/strategies/cross-cutting/workflow-handler.d.ts.map +1 -0
- package/dist/strategies/cross-cutting/workflow-handler.js +301 -0
- package/dist/strategies/cross-cutting/workflow-handler.js.map +1 -0
- package/dist/strategies/enterprise-strategy.d.ts +173 -0
- package/dist/strategies/enterprise-strategy.d.ts.map +1 -0
- package/dist/strategies/enterprise-strategy.js +821 -0
- package/dist/strategies/enterprise-strategy.js.map +1 -0
- package/dist/strategies/index.d.ts +18 -0
- package/dist/strategies/index.d.ts.map +1 -0
- package/dist/strategies/index.js +19 -0
- package/dist/strategies/index.js.map +1 -0
- package/dist/strategies/output-strategy.d.ts +143 -0
- package/dist/strategies/output-strategy.d.ts.map +1 -0
- package/dist/strategies/output-strategy.js +60 -0
- package/dist/strategies/output-strategy.js.map +1 -0
- package/dist/strategies/rfc-strategy.d.ts +214 -0
- package/dist/strategies/rfc-strategy.d.ts.map +1 -0
- package/dist/strategies/rfc-strategy.js +463 -0
- package/dist/strategies/rfc-strategy.js.map +1 -0
- package/dist/strategies/sdd-strategy.d.ts +223 -0
- package/dist/strategies/sdd-strategy.d.ts.map +1 -0
- package/dist/strategies/sdd-strategy.js +541 -0
- package/dist/strategies/sdd-strategy.js.map +1 -0
- package/dist/strategies/speckit/constitution-parser.d.ts +14 -0
- package/dist/strategies/speckit/constitution-parser.d.ts.map +1 -0
- package/dist/strategies/speckit/constitution-parser.js +124 -0
- package/dist/strategies/speckit/constitution-parser.js.map +1 -0
- package/dist/strategies/speckit/index.d.ts +15 -0
- package/dist/strategies/speckit/index.d.ts.map +1 -0
- package/dist/strategies/speckit/index.js +19 -0
- package/dist/strategies/speckit/index.js.map +1 -0
- package/dist/strategies/speckit/progress-tracker.d.ts +242 -0
- package/dist/strategies/speckit/progress-tracker.d.ts.map +1 -0
- package/dist/strategies/speckit/progress-tracker.js +436 -0
- package/dist/strategies/speckit/progress-tracker.js.map +1 -0
- package/dist/strategies/speckit/spec-parser.d.ts +31 -0
- package/dist/strategies/speckit/spec-parser.d.ts.map +1 -0
- package/dist/strategies/speckit/spec-parser.js +89 -0
- package/dist/strategies/speckit/spec-parser.js.map +1 -0
- package/dist/strategies/speckit/spec-validator.d.ts +127 -0
- package/dist/strategies/speckit/spec-validator.d.ts.map +1 -0
- package/dist/strategies/speckit/spec-validator.js +413 -0
- package/dist/strategies/speckit/spec-validator.js.map +1 -0
- package/dist/strategies/speckit/tasks-parser.d.ts +37 -0
- package/dist/strategies/speckit/tasks-parser.d.ts.map +1 -0
- package/dist/strategies/speckit/tasks-parser.js +158 -0
- package/dist/strategies/speckit/tasks-parser.js.map +1 -0
- package/dist/strategies/speckit/types.d.ts +608 -0
- package/dist/strategies/speckit/types.d.ts.map +1 -0
- package/dist/strategies/speckit/types.js +12 -0
- package/dist/strategies/speckit/types.js.map +1 -0
- package/dist/strategies/speckit-strategy.d.ts +558 -0
- package/dist/strategies/speckit-strategy.d.ts.map +1 -0
- package/dist/strategies/speckit-strategy.js +1787 -0
- package/dist/strategies/speckit-strategy.js.map +1 -0
- package/dist/strategies/togaf-strategy.d.ts +159 -0
- package/dist/strategies/togaf-strategy.d.ts.map +1 -0
- package/dist/strategies/togaf-strategy.js +600 -0
- package/dist/strategies/togaf-strategy.js.map +1 -0
- package/dist/tools/agent-orchestrator.d.ts +68 -26
- package/dist/tools/agent-orchestrator.d.ts.map +1 -1
- package/dist/tools/agent-orchestrator.js +202 -329
- package/dist/tools/agent-orchestrator.js.map +1 -1
- package/dist/tools/analysis/gap-frameworks-analyzers.d.ts +1 -1
- package/dist/tools/analysis/gap-frameworks-analyzers.d.ts.map +1 -1
- package/dist/tools/analysis/gap-frameworks-analyzers.js +52 -46
- package/dist/tools/analysis/gap-frameworks-analyzers.js.map +1 -1
- package/dist/tools/analysis/strategy-frameworks-builder.d.ts +1 -1
- package/dist/tools/analysis/strategy-frameworks-builder.d.ts.map +1 -1
- package/dist/tools/analysis/strategy-frameworks-builder.js +51 -45
- package/dist/tools/analysis/strategy-frameworks-builder.js.map +1 -1
- package/dist/tools/bridge/index.d.ts +11 -0
- package/dist/tools/bridge/index.d.ts.map +1 -1
- package/dist/tools/bridge/index.js +12 -0
- package/dist/tools/bridge/index.js.map +1 -1
- package/dist/tools/bridge/project-scanner.d.ts +116 -0
- package/dist/tools/bridge/project-scanner.d.ts.map +1 -0
- package/dist/tools/bridge/project-scanner.js +441 -0
- package/dist/tools/bridge/project-scanner.js.map +1 -0
- package/dist/tools/clean-code-scorer.d.ts +1 -6
- package/dist/tools/clean-code-scorer.d.ts.map +1 -1
- package/dist/tools/clean-code-scorer.js +171 -235
- package/dist/tools/clean-code-scorer.js.map +1 -1
- package/dist/tools/code-hygiene-analyzer.d.ts +1 -1
- package/dist/tools/code-hygiene-analyzer.d.ts.map +1 -1
- package/dist/tools/code-hygiene-analyzer.js +73 -49
- package/dist/tools/code-hygiene-analyzer.js.map +1 -1
- package/dist/tools/config/generated/index.js +1 -1
- package/dist/tools/config/generated/mode-enum.js +1 -1
- package/dist/tools/config/generated/model-aliases.js +1 -1
- package/dist/tools/config/generated/model-identifiers.js +1 -1
- package/dist/tools/config/generated/provider-enum.js +1 -1
- package/dist/tools/dependency-auditor.d.ts +1 -1
- package/dist/tools/dependency-auditor.d.ts.map +1 -1
- package/dist/tools/dependency-auditor.js +113 -76
- package/dist/tools/dependency-auditor.js.map +1 -1
- package/dist/tools/design/design-assistant.d.ts +6 -3
- package/dist/tools/design/design-assistant.d.ts.map +1 -1
- package/dist/tools/design/design-assistant.js +237 -47
- package/dist/tools/design/design-assistant.js.map +1 -1
- package/dist/tools/design/design-phase-workflow.d.ts +20 -0
- package/dist/tools/design/design-phase-workflow.d.ts.map +1 -1
- package/dist/tools/design/design-phase-workflow.js +30 -4
- package/dist/tools/design/design-phase-workflow.js.map +1 -1
- package/dist/tools/design/services/artifact-generation.service.d.ts +40 -1
- package/dist/tools/design/services/artifact-generation.service.d.ts.map +1 -1
- package/dist/tools/design/services/artifact-generation.service.js +151 -23
- package/dist/tools/design/services/artifact-generation.service.js.map +1 -1
- package/dist/tools/design/services/consistency.service.d.ts.map +1 -1
- package/dist/tools/design/services/consistency.service.js +28 -37
- package/dist/tools/design/services/consistency.service.js.map +1 -1
- package/dist/tools/design/services/phase-management.service.d.ts.map +1 -1
- package/dist/tools/design/services/phase-management.service.js +16 -28
- package/dist/tools/design/services/phase-management.service.js.map +1 -1
- package/dist/tools/design/services/session-management.service.d.ts.map +1 -1
- package/dist/tools/design/services/session-management.service.js +8 -25
- package/dist/tools/design/services/session-management.service.js.map +1 -1
- package/dist/tools/design/types/common.types.d.ts +1 -1
- package/dist/tools/design/types/common.types.d.ts.map +1 -1
- package/dist/tools/design/types/index.d.ts +1 -1
- package/dist/tools/design/types/index.d.ts.map +1 -1
- package/dist/tools/design/types/session.types.d.ts +32 -0
- package/dist/tools/design/types/session.types.d.ts.map +1 -1
- package/dist/tools/guidelines-validator.d.ts +1 -1
- package/dist/tools/guidelines-validator.d.ts.map +1 -1
- package/dist/tools/guidelines-validator.js +48 -132
- package/dist/tools/guidelines-validator.js.map +1 -1
- package/dist/tools/iterative-coverage-enhancer.d.ts +1 -1
- package/dist/tools/iterative-coverage-enhancer.d.ts.map +1 -1
- package/dist/tools/iterative-coverage-enhancer.js +174 -91
- package/dist/tools/iterative-coverage-enhancer.js.map +1 -1
- package/dist/tools/mode-switcher.d.ts +1 -6
- package/dist/tools/mode-switcher.d.ts.map +1 -1
- package/dist/tools/mode-switcher.js +35 -17
- package/dist/tools/mode-switcher.js.map +1 -1
- package/dist/tools/model-compatibility-checker.d.ts +1 -1
- package/dist/tools/model-compatibility-checker.d.ts.map +1 -1
- package/dist/tools/model-compatibility-checker.js +48 -34
- package/dist/tools/model-compatibility-checker.js.map +1 -1
- package/dist/tools/project-onboarding.d.ts +7 -39
- package/dist/tools/project-onboarding.d.ts.map +1 -1
- package/dist/tools/project-onboarding.js +142 -316
- package/dist/tools/project-onboarding.js.map +1 -1
- package/dist/tools/prompt/architecture-design-prompt-builder.d.ts +1 -1
- package/dist/tools/prompt/architecture-design-prompt-builder.d.ts.map +1 -1
- package/dist/tools/prompt/architecture-design-prompt-builder.js +41 -33
- package/dist/tools/prompt/architecture-design-prompt-builder.js.map +1 -1
- package/dist/tools/prompt/code-analysis-prompt-builder.d.ts +1 -1
- package/dist/tools/prompt/code-analysis-prompt-builder.d.ts.map +1 -1
- package/dist/tools/prompt/code-analysis-prompt-builder.js +41 -33
- package/dist/tools/prompt/code-analysis-prompt-builder.js.map +1 -1
- package/dist/tools/prompt/debugging-assistant-prompt-builder.d.ts +1 -1
- package/dist/tools/prompt/debugging-assistant-prompt-builder.d.ts.map +1 -1
- package/dist/tools/prompt/debugging-assistant-prompt-builder.js +41 -33
- package/dist/tools/prompt/debugging-assistant-prompt-builder.js.map +1 -1
- package/dist/tools/prompt/documentation-generator-prompt-builder.d.ts +1 -1
- package/dist/tools/prompt/documentation-generator-prompt-builder.d.ts.map +1 -1
- package/dist/tools/prompt/documentation-generator-prompt-builder.js +41 -33
- package/dist/tools/prompt/documentation-generator-prompt-builder.js.map +1 -1
- package/dist/tools/prompt/domain-neutral-prompt-builder.d.ts +41 -41
- package/dist/tools/prompt/domain-neutral-prompt-builder.d.ts.map +1 -1
- package/dist/tools/prompt/domain-neutral-prompt-builder.js +59 -51
- package/dist/tools/prompt/domain-neutral-prompt-builder.js.map +1 -1
- package/dist/tools/prompt/hierarchical-prompt-builder.d.ts +5 -2
- package/dist/tools/prompt/hierarchical-prompt-builder.d.ts.map +1 -1
- package/dist/tools/prompt/hierarchical-prompt-builder.js +99 -97
- package/dist/tools/prompt/hierarchical-prompt-builder.js.map +1 -1
- package/dist/tools/prompt/hierarchy-level-selector.d.ts +1 -6
- package/dist/tools/prompt/hierarchy-level-selector.d.ts.map +1 -1
- package/dist/tools/prompt/hierarchy-level-selector.js +135 -122
- package/dist/tools/prompt/hierarchy-level-selector.js.map +1 -1
- package/dist/tools/prompt/index.d.ts +18 -0
- package/dist/tools/prompt/index.d.ts.map +1 -0
- package/dist/tools/prompt/index.js +22 -0
- package/dist/tools/prompt/index.js.map +1 -0
- package/dist/tools/prompt/prompt-chaining-builder.d.ts +1 -1
- package/dist/tools/prompt/prompt-chaining-builder.d.ts.map +1 -1
- package/dist/tools/prompt/prompt-chaining-builder.js +37 -23
- package/dist/tools/prompt/prompt-chaining-builder.js.map +1 -1
- package/dist/tools/prompt/prompt-flow-builder.d.ts +1 -1
- package/dist/tools/prompt/prompt-flow-builder.d.ts.map +1 -1
- package/dist/tools/prompt/prompt-flow-builder.js +63 -34
- package/dist/tools/prompt/prompt-flow-builder.js.map +1 -1
- package/dist/tools/prompt/prompt-hierarchy.d.ts +206 -0
- package/dist/tools/prompt/prompt-hierarchy.d.ts.map +1 -0
- package/dist/tools/prompt/prompt-hierarchy.js +285 -0
- package/dist/tools/prompt/prompt-hierarchy.js.map +1 -0
- package/dist/tools/prompt/prompting-hierarchy-evaluator.d.ts +1 -6
- package/dist/tools/prompt/prompting-hierarchy-evaluator.d.ts.map +1 -1
- package/dist/tools/prompt/prompting-hierarchy-evaluator.js +87 -74
- package/dist/tools/prompt/prompting-hierarchy-evaluator.js.map +1 -1
- package/dist/tools/prompt/quick-developer-prompts-builder.d.ts.map +1 -1
- package/dist/tools/prompt/quick-developer-prompts-builder.js +7 -0
- package/dist/tools/prompt/quick-developer-prompts-builder.js.map +1 -1
- package/dist/tools/prompt/security-hardening-prompt-builder.d.ts +1 -1
- package/dist/tools/prompt/security-hardening-prompt-builder.d.ts.map +1 -1
- package/dist/tools/prompt/security-hardening-prompt-builder.js +99 -41
- package/dist/tools/prompt/security-hardening-prompt-builder.js.map +1 -1
- package/dist/tools/prompt/spark-prompt-builder.d.ts +1 -1
- package/dist/tools/prompt/spark-prompt-builder.d.ts.map +1 -1
- package/dist/tools/prompt/spark-prompt-builder.js +36 -28
- package/dist/tools/prompt/spark-prompt-builder.js.map +1 -1
- package/dist/tools/semantic-code-analyzer.d.ts +1 -1
- package/dist/tools/semantic-code-analyzer.d.ts.map +1 -1
- package/dist/tools/semantic-code-analyzer.js +35 -24
- package/dist/tools/semantic-code-analyzer.js.map +1 -1
- package/dist/tools/shared/a2a-errors.d.ts +18 -9
- package/dist/tools/shared/a2a-errors.d.ts.map +1 -1
- package/dist/tools/shared/a2a-errors.js +26 -9
- package/dist/tools/shared/a2a-errors.js.map +1 -1
- package/dist/tools/shared/annotation-presets.d.ts +22 -0
- package/dist/tools/shared/annotation-presets.d.ts.map +1 -0
- package/dist/tools/shared/annotation-presets.js +45 -0
- package/dist/tools/shared/annotation-presets.js.map +1 -0
- package/dist/tools/shared/deprecation.d.ts +30 -0
- package/dist/tools/shared/deprecation.d.ts.map +1 -0
- package/dist/tools/shared/deprecation.js +38 -0
- package/dist/tools/shared/deprecation.js.map +1 -0
- package/dist/tools/shared/error-codes.d.ts +49 -0
- package/dist/tools/shared/error-codes.d.ts.map +1 -0
- package/dist/tools/shared/error-codes.js +90 -0
- package/dist/tools/shared/error-codes.js.map +1 -0
- package/dist/tools/shared/error-factory.d.ts +8 -0
- package/dist/tools/shared/error-factory.d.ts.map +1 -0
- package/dist/tools/shared/error-factory.js +24 -0
- package/dist/tools/shared/error-factory.js.map +1 -0
- package/dist/tools/shared/error-handler.d.ts +10 -0
- package/dist/tools/shared/error-handler.d.ts.map +1 -0
- package/dist/tools/shared/error-handler.js +39 -0
- package/dist/tools/shared/error-handler.js.map +1 -0
- package/dist/tools/shared/errors.d.ts +61 -21
- package/dist/tools/shared/errors.d.ts.map +1 -1
- package/dist/tools/shared/errors.js +155 -56
- package/dist/tools/shared/errors.js.map +1 -1
- package/dist/tools/shared/index.d.ts +7 -0
- package/dist/tools/shared/index.d.ts.map +1 -1
- package/dist/tools/shared/index.js +7 -0
- package/dist/tools/shared/index.js.map +1 -1
- package/dist/tools/shared/mode-manager.d.ts +95 -0
- package/dist/tools/shared/mode-manager.d.ts.map +1 -0
- package/dist/tools/shared/mode-manager.js +121 -0
- package/dist/tools/shared/mode-manager.js.map +1 -0
- package/dist/tools/shared/response-utils.d.ts +46 -0
- package/dist/tools/shared/response-utils.d.ts.map +1 -0
- package/dist/tools/shared/response-utils.js +56 -0
- package/dist/tools/shared/response-utils.js.map +1 -0
- package/dist/tools/speckit-generator.d.ts +75 -0
- package/dist/tools/speckit-generator.d.ts.map +1 -0
- package/dist/tools/speckit-generator.js +110 -0
- package/dist/tools/speckit-generator.js.map +1 -0
- package/dist/tools/sprint-timeline-calculator.d.ts +1 -1
- package/dist/tools/sprint-timeline-calculator.d.ts.map +1 -1
- package/dist/tools/sprint-timeline-calculator.js +70 -86
- package/dist/tools/sprint-timeline-calculator.js.map +1 -1
- package/dist/tools/update-progress.d.ts +40 -0
- package/dist/tools/update-progress.d.ts.map +1 -0
- package/dist/tools/update-progress.js +119 -0
- package/dist/tools/update-progress.js.map +1 -0
- package/dist/tools/validate-spec.d.ts +30 -0
- package/dist/tools/validate-spec.d.ts.map +1 -0
- package/dist/tools/validate-spec.js +86 -0
- package/dist/tools/validate-spec.js.map +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -178,7 +178,7 @@ Demos are automatically regenerated when tool code changes via GitHub Actions.
|
|
|
178
178
|
|
|
179
179
|
## Features & Tools
|
|
180
180
|
|
|
181
|
-
**
|
|
181
|
+
**32 professional tools** (31 active + 1 unified tool) for AI-powered development workflows. Each tool is rated by complexity:
|
|
182
182
|
|
|
183
183
|
**⭐ Complexity Ratings:**
|
|
184
184
|
|
|
@@ -192,21 +192,24 @@ Demos are automatically regenerated when tool code changes via GitHub Actions.
|
|
|
192
192
|
|
|
193
193
|
---
|
|
194
194
|
|
|
195
|
-
### 🎨 Prompt Builders (
|
|
195
|
+
### 🎨 Prompt Builders (10 tools)
|
|
196
196
|
|
|
197
197
|
Build structured, effective prompts for various use cases.
|
|
198
198
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
|
202
|
-
|
|
|
203
|
-
| `
|
|
204
|
-
| `
|
|
205
|
-
| `
|
|
206
|
-
| `
|
|
207
|
-
| `
|
|
208
|
-
| `
|
|
209
|
-
| `
|
|
199
|
+
> **⚠️ Deprecation Notice**: Six individual prompt tools (`hierarchical-prompt-builder`, `prompting-hierarchy-evaluator`, `hierarchy-level-selector`, `prompt-chaining-builder`, `prompt-flow-builder`, `quick-developer-prompts-builder`) are deprecated as of v0.14.0 and will be removed in v0.15.0. Use `prompt-hierarchy` instead. See [Migration Guide](./docs/migration.md) for details.
|
|
200
|
+
|
|
201
|
+
| Tool | Purpose | Complexity | Learn More |
|
|
202
|
+
| --------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------- | -------------------------------------------------------------------- |
|
|
203
|
+
| `prompt-hierarchy` ⭐ **NEW** | Unified prompt API with 6 modes: build, evaluate, select-level, chain, flow, quick | ⭐⭐⭐ | [Guide](./docs/api/prompt-hierarchy.md) |
|
|
204
|
+
| `hierarchical-prompt-builder` 🔻 | ⚠️ **Deprecated** - Use `prompt-hierarchy` mode=`build` instead | ⭐⭐ | [Guide](./docs/tools/hierarchical-prompt-builder.md) |
|
|
205
|
+
| `code-analysis-prompt-builder` | Code review prompts (security, performance, maintainability) | ⭐⭐ | [Guide](./docs/tools/code-analysis-prompt-builder.md) |
|
|
206
|
+
| `architecture-design-prompt-builder` | Architecture design with scale-appropriate guidance | ⭐⭐⭐ | [Guide](./docs/tools/architecture-design-prompt-builder.md) |
|
|
207
|
+
| `digital-enterprise-architect-prompt-builder` | Enterprise architecture with mentor perspectives & research | ⭐⭐⭐⭐ | [Guide](./docs/tools/digital-enterprise-architect-prompt-builder.md) |
|
|
208
|
+
| `debugging-assistant-prompt-builder` | Systematic debugging prompts with structured analysis | ⭐⭐ | [Guide](./docs/tools/debugging-assistant-prompt-builder.md) |
|
|
209
|
+
| `l9-distinguished-engineer-prompt-builder` | L9 (Distinguished Engineer) high-level technical design | ⭐⭐⭐⭐⭐ | [Guide](./docs/tools/l9-distinguished-engineer-prompt-builder.md) |
|
|
210
|
+
| `documentation-generator-prompt-builder` | Technical docs tailored to audience (API, user guide, spec) | ⭐⭐ | [Guide](./docs/tools/documentation-generator-prompt-builder.md) |
|
|
211
|
+
| `domain-neutral-prompt-builder` | Generic templates with objectives and workflows | ⭐⭐⭐ | [Guide](./docs/tools/domain-neutral-prompt-builder.md) |
|
|
212
|
+
| `security-hardening-prompt-builder` | Security analysis with OWASP/compliance focus | ⭐⭐⭐ | [Guide](./docs/tools/security-hardening-prompt-builder.md) |
|
|
210
213
|
|
|
211
214
|
### 🔍 Code Analysis & Quality (7 tools)
|
|
212
215
|
|
|
@@ -242,22 +245,85 @@ Multi-phase design orchestration with constraint enforcement.
|
|
|
242
245
|
| ------------------ | ---------------------------------------------------------------------------------- | ---------- | ----------------------------------------- |
|
|
243
246
|
| `design-assistant` | Constraint-driven design sessions with artifact generation (ADRs, specs, roadmaps) | ⭐⭐⭐⭐ | [Guide](./docs/tools/design-assistant.md) |
|
|
244
247
|
|
|
245
|
-
###
|
|
248
|
+
### 📝 Specification Tools (3 tools)
|
|
249
|
+
|
|
250
|
+
Generate and manage project specifications using Spec-Kit methodology.
|
|
251
|
+
|
|
252
|
+
| Tool | Purpose | Complexity | Learn More |
|
|
253
|
+
| ------------------- | ---------------------------------------------------------------------------- | ---------- | --------------------------------- |
|
|
254
|
+
| `speckit-generator` | Generate complete Spec-Kit artifacts (7 files) with constitutional validation | ⭐⭐⭐ | [Guide](./docs/speckit/README.md) |
|
|
255
|
+
| `validate-spec` | Validate spec.md against constitutional constraints for compliance | ⭐⭐ | [Usage](./docs/speckit/usage.md) |
|
|
256
|
+
| `update-progress` | Track progress.md updates with completed tasks and metrics | ⭐⭐ | [Usage](./docs/speckit/usage.md) |
|
|
257
|
+
|
|
258
|
+
**📖 [Spec-Kit Documentation](./docs/speckit/README.md)** - Complete guide to specification-driven development
|
|
259
|
+
|
|
260
|
+
### 🛠️ Utilities (3 tools)
|
|
246
261
|
|
|
247
262
|
Supporting tools for workflow optimization.
|
|
248
263
|
|
|
249
|
-
| Tool
|
|
250
|
-
|
|
|
251
|
-
| `memory-context-optimizer`
|
|
252
|
-
| `mode-switcher`
|
|
253
|
-
| `
|
|
254
|
-
|
|
255
|
-
|
|
264
|
+
| Tool | Purpose | Complexity | Learn More |
|
|
265
|
+
| -------------------------- | --------------------------------------------------------------- | ---------- | ------------------------------------------------- |
|
|
266
|
+
| `memory-context-optimizer` | Optimize prompt caching and context window usage | ⭐⭐ | [Guide](./docs/tools/memory-context-optimizer.md) |
|
|
267
|
+
| `mode-switcher` | Switch between agent operation modes (planning, debugging, etc.) | ⭐ | [Guide](./docs/tools/mode-switcher.md) |
|
|
268
|
+
| `spark-prompt-builder` | Build UI/UX product prompts with structured inputs | ⭐⭐⭐ | [Guide](./docs/tools/spark-prompt-builder.md) |
|
|
269
|
+
|
|
270
|
+
**Deprecated Utilities** (use `prompt-hierarchy` instead):
|
|
271
|
+
|
|
272
|
+
| Tool | Replacement | Status |
|
|
273
|
+
| ------------------------------- | ------------------------------------- | ------------------------- |
|
|
274
|
+
| `prompting-hierarchy-evaluator` | `prompt-hierarchy` mode=`evaluate` | ⚠️ Deprecated in v0.14.0 |
|
|
275
|
+
| `hierarchy-level-selector` | `prompt-hierarchy` mode=`select-level` | ⚠️ Deprecated in v0.14.0 |
|
|
276
|
+
| `quick-developer-prompts-builder` | `prompt-hierarchy` mode=`quick` | ⚠️ Deprecated in v0.14.0 |
|
|
277
|
+
| `prompt-chaining-builder` | `prompt-hierarchy` mode=`chain` | ⚠️ Deprecated in v0.14.0 |
|
|
278
|
+
| `prompt-flow-builder` | `prompt-hierarchy` mode=`flow` | ⚠️ Deprecated in v0.14.0 |
|
|
256
279
|
|
|
257
280
|
**💡 Pro Tip**: Start with ⭐ tools to learn the basics, then progress to ⭐⭐⭐+ tools for advanced workflows.
|
|
258
281
|
|
|
259
282
|
---
|
|
260
283
|
|
|
284
|
+
## Output Strategies
|
|
285
|
+
|
|
286
|
+
MCP AI Agent Guidelines supports **7 output strategies** for different documentation needs, allowing you to format the same analysis in multiple ways. Additionally, **6 cross-cutting capabilities** can be added to any output format for automation and visualization.
|
|
287
|
+
|
|
288
|
+
### Available Output Approaches
|
|
289
|
+
|
|
290
|
+
| Strategy | Best For | Documentation |
|
|
291
|
+
|----------|----------|---------------|
|
|
292
|
+
| **Chat** (Default) | Quick responses, interactive sessions | Simple markdown for LLM chat |
|
|
293
|
+
| **RFC** | Feature proposals, team alignment | Request for Comments format |
|
|
294
|
+
| **ADR** | Architectural decisions, design rationale | Architecture Decision Records |
|
|
295
|
+
| **SDD** | Agile workflows, sprint planning | Spec-Driven Development (spec.md, plan.md, tasks.md) |
|
|
296
|
+
| **SpecKit** | Complex projects, GitHub workflows | Premium `.specify/` directory structure |
|
|
297
|
+
| **TOGAF** | Enterprise architecture, governance | TOGAF ADM deliverables |
|
|
298
|
+
| **Enterprise** | Executive presentations, compliance | Traditional docs (TDD, HLD, LLD) |
|
|
299
|
+
|
|
300
|
+
### Cross-Cutting Capabilities
|
|
301
|
+
|
|
302
|
+
Add these to **any** output strategy:
|
|
303
|
+
|
|
304
|
+
- **workflow** - CI/CD pipeline definitions (GitHub Actions, GitLab CI)
|
|
305
|
+
- **diagram** - Visual documentation (Mermaid, PlantUML)
|
|
306
|
+
- **shell-script** - Automation scripts (Bash, PowerShell)
|
|
307
|
+
- **config** - Configuration files (JSON, YAML)
|
|
308
|
+
- **issues** - GitHub issue templates
|
|
309
|
+
- **pr-template** - Pull request templates
|
|
310
|
+
|
|
311
|
+
### Usage Example
|
|
312
|
+
|
|
313
|
+
```typescript
|
|
314
|
+
// Generate SpecKit with workflows and diagrams
|
|
315
|
+
const result = await server.callTool('design-assistant', {
|
|
316
|
+
action: 'generate-artifacts',
|
|
317
|
+
sessionId: 'my-session',
|
|
318
|
+
outputFormat: 'speckit',
|
|
319
|
+
crossCutting: ['workflow', 'diagram', 'config'],
|
|
320
|
+
});
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
**📖 [Complete Output Strategies Guide](./docs/output-strategies.md)** - Detailed documentation with examples for all 7 strategies
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
261
327
|
## VS Code Integration (One-Click)
|
|
262
328
|
|
|
263
329
|
Use buttons below to add this MCP server to VS Code (User Settings → mcp.servers):
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code Scorer Agent Definition
|
|
3
|
+
*
|
|
4
|
+
* @module agents/definitions/code-scorer-agent
|
|
5
|
+
*/
|
|
6
|
+
import type { AgentDefinition } from "../types.js";
|
|
7
|
+
/**
|
|
8
|
+
* Agent for analyzing code quality and returning clean code scores.
|
|
9
|
+
* Provides 0-100 scoring with breakdown by category (hygiene, coverage, TypeScript, etc.).
|
|
10
|
+
*/
|
|
11
|
+
export declare const codeScorerAgent: AgentDefinition;
|
|
12
|
+
//# sourceMappingURL=code-scorer-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-scorer-agent.d.ts","sourceRoot":"","sources":["../../../src/agents/definitions/code-scorer-agent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,eAgC7B,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code Scorer Agent Definition
|
|
3
|
+
*
|
|
4
|
+
* @module agents/definitions/code-scorer-agent
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Agent for analyzing code quality and returning clean code scores.
|
|
8
|
+
* Provides 0-100 scoring with breakdown by category (hygiene, coverage, TypeScript, etc.).
|
|
9
|
+
*/
|
|
10
|
+
export const codeScorerAgent = {
|
|
11
|
+
name: "code-scorer",
|
|
12
|
+
description: "Analyzes code quality and returns a 0-100 clean code score with breakdown by category",
|
|
13
|
+
capabilities: ["code-analysis", "quality-metrics", "scoring"],
|
|
14
|
+
toolName: "clean-code-scorer",
|
|
15
|
+
inputSchema: {
|
|
16
|
+
type: "object",
|
|
17
|
+
properties: {
|
|
18
|
+
coverageMetrics: {
|
|
19
|
+
type: "object",
|
|
20
|
+
properties: {
|
|
21
|
+
lines: { type: "number" },
|
|
22
|
+
branches: { type: "number" },
|
|
23
|
+
functions: { type: "number" },
|
|
24
|
+
statements: { type: "number" },
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
projectPath: { type: "string" },
|
|
28
|
+
codeContent: { type: "string" },
|
|
29
|
+
language: { type: "string" },
|
|
30
|
+
framework: { type: "string" },
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
outputSchema: {
|
|
34
|
+
type: "object",
|
|
35
|
+
properties: {
|
|
36
|
+
overallScore: { type: "number" },
|
|
37
|
+
breakdown: { type: "object" },
|
|
38
|
+
recommendations: { type: "array" },
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=code-scorer-agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-scorer-agent.js","sourceRoot":"","sources":["../../../src/agents/definitions/code-scorer-agent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;;GAGG;AACH,MAAM,CAAC,MAAM,eAAe,GAAoB;IAC/C,IAAI,EAAE,aAAa;IACnB,WAAW,EACV,uFAAuF;IACxF,YAAY,EAAE,CAAC,eAAe,EAAE,iBAAiB,EAAE,SAAS,CAAC;IAC7D,QAAQ,EAAE,mBAAmB;IAC7B,WAAW,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACX,eAAe,EAAE;gBAChB,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACzB,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC5B,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC7B,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;iBAC9B;aACD;YACD,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC/B,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC/B,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC5B,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC7B;KACD;IACD,YAAY,EAAE;QACb,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACX,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAChC,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC7B,eAAe,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;SAClC;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Design Assistant Agent Definition
|
|
3
|
+
*
|
|
4
|
+
* @module agents/definitions/design-agent
|
|
5
|
+
*/
|
|
6
|
+
import type { AgentDefinition } from "../types.js";
|
|
7
|
+
/**
|
|
8
|
+
* Agent for orchestrating multi-phase design workflows.
|
|
9
|
+
* Manages design sessions with constraint validation, coverage enforcement, and artifact generation.
|
|
10
|
+
*/
|
|
11
|
+
export declare const designAgent: AgentDefinition;
|
|
12
|
+
//# sourceMappingURL=design-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design-agent.d.ts","sourceRoot":"","sources":["../../../src/agents/definitions/design-agent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,eAqDzB,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Design Assistant Agent Definition
|
|
3
|
+
*
|
|
4
|
+
* @module agents/definitions/design-agent
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Agent for orchestrating multi-phase design workflows.
|
|
8
|
+
* Manages design sessions with constraint validation, coverage enforcement, and artifact generation.
|
|
9
|
+
*/
|
|
10
|
+
export const designAgent = {
|
|
11
|
+
name: "design-assistant",
|
|
12
|
+
description: "Orchestrates multi-phase design workflows with constraint validation",
|
|
13
|
+
capabilities: ["design", "architecture", "specification", "planning"],
|
|
14
|
+
toolName: "design-assistant",
|
|
15
|
+
inputSchema: {
|
|
16
|
+
type: "object",
|
|
17
|
+
properties: {
|
|
18
|
+
action: {
|
|
19
|
+
type: "string",
|
|
20
|
+
enum: [
|
|
21
|
+
"start-session",
|
|
22
|
+
"advance-phase",
|
|
23
|
+
"validate-phase",
|
|
24
|
+
"evaluate-pivot",
|
|
25
|
+
"generate-strategic-pivot-prompt",
|
|
26
|
+
"generate-artifacts",
|
|
27
|
+
"enforce-coverage",
|
|
28
|
+
"enforce-consistency",
|
|
29
|
+
"get-status",
|
|
30
|
+
"load-constraints",
|
|
31
|
+
"select-methodology",
|
|
32
|
+
"enforce-cross-session-consistency",
|
|
33
|
+
"generate-enforcement-prompts",
|
|
34
|
+
"generate-constraint-documentation",
|
|
35
|
+
"generate-context-aware-guidance",
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
sessionId: { type: "string" },
|
|
39
|
+
config: {
|
|
40
|
+
type: "object",
|
|
41
|
+
properties: {
|
|
42
|
+
context: { type: "string" },
|
|
43
|
+
goal: { type: "string" },
|
|
44
|
+
requirements: { type: "array", items: { type: "string" } },
|
|
45
|
+
sessionId: { type: "string" },
|
|
46
|
+
coverageThreshold: { type: "number" },
|
|
47
|
+
enablePivots: { type: "boolean" },
|
|
48
|
+
outputFormats: { type: "array", items: { type: "string" } },
|
|
49
|
+
templateRefs: { type: "array", items: { type: "string" } },
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
phaseId: { type: "string" },
|
|
53
|
+
content: { type: "string" },
|
|
54
|
+
constraintId: { type: "string" },
|
|
55
|
+
artifactTypes: {
|
|
56
|
+
type: "array",
|
|
57
|
+
items: { type: "string", enum: ["adr", "specification", "roadmap"] },
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
required: ["action", "sessionId"],
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=design-agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"design-agent.js","sourceRoot":"","sources":["../../../src/agents/definitions/design-agent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAoB;IAC3C,IAAI,EAAE,kBAAkB;IACxB,WAAW,EACV,sEAAsE;IACvE,YAAY,EAAE,CAAC,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,CAAC;IACrE,QAAQ,EAAE,kBAAkB;IAC5B,WAAW,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACX,MAAM,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE;oBACL,eAAe;oBACf,eAAe;oBACf,gBAAgB;oBAChB,gBAAgB;oBAChB,iCAAiC;oBACjC,oBAAoB;oBACpB,kBAAkB;oBAClB,qBAAqB;oBACrB,YAAY;oBACZ,kBAAkB;oBAClB,oBAAoB;oBACpB,mCAAmC;oBACnC,8BAA8B;oBAC9B,mCAAmC;oBACnC,iCAAiC;iBACjC;aACD;YACD,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC7B,MAAM,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACX,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC3B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACxB,YAAY,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;oBAC1D,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC7B,iBAAiB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACrC,YAAY,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;oBACjC,aAAa,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;oBAC3D,YAAY,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;iBAC1D;aACD;YACD,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC3B,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAChC,aAAa,EAAE;gBACd,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,SAAS,CAAC,EAAE;aACpE;SACD;QACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,WAAW,CAAC;KACjC;CACD,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default agent definitions - barrel export and registration
|
|
3
|
+
*
|
|
4
|
+
* @module agents/definitions
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Array of all default agent definitions to be registered.
|
|
8
|
+
*/
|
|
9
|
+
export declare const defaultAgents: import("../types.js").AgentDefinition[];
|
|
10
|
+
/**
|
|
11
|
+
* Registers all default agents with the agent registry.
|
|
12
|
+
* Should be called during server startup.
|
|
13
|
+
*/
|
|
14
|
+
export declare function registerDefaultAgents(): void;
|
|
15
|
+
export { codeScorerAgent } from "./code-scorer-agent.js";
|
|
16
|
+
export { designAgent } from "./design-agent.js";
|
|
17
|
+
export { securityAgent } from "./security-agent.js";
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/agents/definitions/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH;;GAEG;AACH,eAAO,MAAM,aAAa,yCAAgD,CAAC;AAE3E;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAI5C;AAGD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default agent definitions - barrel export and registration
|
|
3
|
+
*
|
|
4
|
+
* @module agents/definitions
|
|
5
|
+
*/
|
|
6
|
+
import { agentRegistry } from "../registry.js";
|
|
7
|
+
import { codeScorerAgent } from "./code-scorer-agent.js";
|
|
8
|
+
import { designAgent } from "./design-agent.js";
|
|
9
|
+
import { securityAgent } from "./security-agent.js";
|
|
10
|
+
/**
|
|
11
|
+
* Array of all default agent definitions to be registered.
|
|
12
|
+
*/
|
|
13
|
+
export const defaultAgents = [codeScorerAgent, securityAgent, designAgent];
|
|
14
|
+
/**
|
|
15
|
+
* Registers all default agents with the agent registry.
|
|
16
|
+
* Should be called during server startup.
|
|
17
|
+
*/
|
|
18
|
+
export function registerDefaultAgents() {
|
|
19
|
+
for (const agent of defaultAgents) {
|
|
20
|
+
agentRegistry.registerAgent(agent);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
// Export individual agent definitions
|
|
24
|
+
export { codeScorerAgent } from "./code-scorer-agent.js";
|
|
25
|
+
export { designAgent } from "./design-agent.js";
|
|
26
|
+
export { securityAgent } from "./security-agent.js";
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/agents/definitions/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,eAAe,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC;AAE3E;;;GAGG;AACH,MAAM,UAAU,qBAAqB;IACpC,KAAK,MAAM,KAAK,IAAI,aAAa,EAAE,CAAC;QACnC,aAAa,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;AACF,CAAC;AAED,sCAAsC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Security Analyzer Agent Definition
|
|
3
|
+
*
|
|
4
|
+
* @module agents/definitions/security-agent
|
|
5
|
+
*/
|
|
6
|
+
import type { AgentDefinition } from "../types.js";
|
|
7
|
+
/**
|
|
8
|
+
* Agent for generating security analysis prompts with OWASP/NIST compliance.
|
|
9
|
+
* Creates structured prompts for vulnerability assessment and security hardening.
|
|
10
|
+
*/
|
|
11
|
+
export declare const securityAgent: AgentDefinition;
|
|
12
|
+
//# sourceMappingURL=security-agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-agent.d.ts","sourceRoot":"","sources":["../../../src/agents/definitions/security-agent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,eA6D3B,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Security Analyzer Agent Definition
|
|
3
|
+
*
|
|
4
|
+
* @module agents/definitions/security-agent
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Agent for generating security analysis prompts with OWASP/NIST compliance.
|
|
8
|
+
* Creates structured prompts for vulnerability assessment and security hardening.
|
|
9
|
+
*/
|
|
10
|
+
export const securityAgent = {
|
|
11
|
+
name: "security-analyzer",
|
|
12
|
+
description: "Generates security analysis prompts with OWASP/NIST compliance checks",
|
|
13
|
+
capabilities: ["security", "compliance", "owasp", "prompt-generation"],
|
|
14
|
+
toolName: "security-hardening-prompt-builder",
|
|
15
|
+
inputSchema: {
|
|
16
|
+
type: "object",
|
|
17
|
+
properties: {
|
|
18
|
+
codeContext: { type: "string" },
|
|
19
|
+
securityFocus: {
|
|
20
|
+
type: "string",
|
|
21
|
+
enum: [
|
|
22
|
+
"vulnerability-analysis",
|
|
23
|
+
"security-hardening",
|
|
24
|
+
"compliance-check",
|
|
25
|
+
"threat-modeling",
|
|
26
|
+
"penetration-testing",
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
complianceStandards: {
|
|
30
|
+
type: "array",
|
|
31
|
+
items: {
|
|
32
|
+
type: "string",
|
|
33
|
+
enum: [
|
|
34
|
+
"OWASP-Top-10",
|
|
35
|
+
"NIST-Cybersecurity-Framework",
|
|
36
|
+
"ISO-27001",
|
|
37
|
+
"SOC-2",
|
|
38
|
+
"GDPR",
|
|
39
|
+
"HIPAA",
|
|
40
|
+
"PCI-DSS",
|
|
41
|
+
"NIS2",
|
|
42
|
+
"ISO-42001",
|
|
43
|
+
"CMMC",
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
analysisScope: {
|
|
48
|
+
type: "array",
|
|
49
|
+
items: {
|
|
50
|
+
type: "string",
|
|
51
|
+
enum: [
|
|
52
|
+
"input-validation",
|
|
53
|
+
"authentication",
|
|
54
|
+
"authorization",
|
|
55
|
+
"data-encryption",
|
|
56
|
+
"session-management",
|
|
57
|
+
"error-handling",
|
|
58
|
+
"logging-monitoring",
|
|
59
|
+
"dependency-security",
|
|
60
|
+
"configuration-security",
|
|
61
|
+
"api-security",
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
language: { type: "string" },
|
|
66
|
+
framework: { type: "string" },
|
|
67
|
+
},
|
|
68
|
+
required: ["codeContext"],
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=security-agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"security-agent.js","sourceRoot":"","sources":["../../../src/agents/definitions/security-agent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAoB;IAC7C,IAAI,EAAE,mBAAmB;IACzB,WAAW,EACV,uEAAuE;IACxE,YAAY,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,mBAAmB,CAAC;IACtE,QAAQ,EAAE,mCAAmC;IAC7C,WAAW,EAAE;QACZ,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACX,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC/B,aAAa,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE;oBACL,wBAAwB;oBACxB,oBAAoB;oBACpB,kBAAkB;oBAClB,iBAAiB;oBACjB,qBAAqB;iBACrB;aACD;YACD,mBAAmB,EAAE;gBACpB,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE;wBACL,cAAc;wBACd,8BAA8B;wBAC9B,WAAW;wBACX,OAAO;wBACP,MAAM;wBACN,OAAO;wBACP,SAAS;wBACT,MAAM;wBACN,WAAW;wBACX,MAAM;qBACN;iBACD;aACD;YACD,aAAa,EAAE;gBACd,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE;wBACL,kBAAkB;wBAClB,gBAAgB;wBAChB,eAAe;wBACf,iBAAiB;wBACjB,oBAAoB;wBACpB,gBAAgB;wBAChB,oBAAoB;wBACpB,qBAAqB;wBACrB,wBAAwB;wBACxB,cAAc;qBACd;iBACD;aACD;YACD,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;YAC5B,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;SAC7B;QACD,QAAQ,EAAE,CAAC,aAAa,CAAC;KACzB;CACD,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Execution Graph - Observability for agent orchestration
|
|
3
|
+
*
|
|
4
|
+
* Tracks handoffs between agents and generates visualization diagrams
|
|
5
|
+
* for debugging complex workflows and understanding execution flow.
|
|
6
|
+
*
|
|
7
|
+
* @module agents/execution-graph
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Record of a single handoff between agents
|
|
11
|
+
*/
|
|
12
|
+
export interface HandoffRecord {
|
|
13
|
+
/** Unique identifier for this handoff */
|
|
14
|
+
id: string;
|
|
15
|
+
/** Name of the agent initiating the handoff (undefined for user) */
|
|
16
|
+
sourceAgent?: string;
|
|
17
|
+
/** Name of the target agent receiving the handoff */
|
|
18
|
+
targetAgent: string;
|
|
19
|
+
/** Timestamp when the handoff occurred */
|
|
20
|
+
timestamp: Date;
|
|
21
|
+
/** Time in milliseconds to execute the handoff */
|
|
22
|
+
executionTime: number;
|
|
23
|
+
/** Whether the handoff completed successfully */
|
|
24
|
+
success: boolean;
|
|
25
|
+
/** Error message if the handoff failed */
|
|
26
|
+
error?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Configuration options for ExecutionGraph
|
|
30
|
+
*/
|
|
31
|
+
export interface ExecutionGraphOptions {
|
|
32
|
+
/** Maximum number of records to keep in memory (default: 100) */
|
|
33
|
+
maxRecords?: number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* ExecutionGraph tracks agent handoffs and generates visualization diagrams.
|
|
37
|
+
*
|
|
38
|
+
* Maintains a rolling buffer of handoff records and can generate Mermaid
|
|
39
|
+
* diagrams for visualizing execution flow.
|
|
40
|
+
*/
|
|
41
|
+
export declare class ExecutionGraph {
|
|
42
|
+
private records;
|
|
43
|
+
private readonly maxRecords;
|
|
44
|
+
/**
|
|
45
|
+
* Creates a new ExecutionGraph instance.
|
|
46
|
+
*
|
|
47
|
+
* @param options - Configuration options
|
|
48
|
+
*/
|
|
49
|
+
constructor(options?: ExecutionGraphOptions);
|
|
50
|
+
/**
|
|
51
|
+
* Records a handoff between agents.
|
|
52
|
+
*
|
|
53
|
+
* Automatically assigns an ID and timestamp. Maintains a rolling buffer
|
|
54
|
+
* of records up to maxRecords.
|
|
55
|
+
*
|
|
56
|
+
* @param record - Handoff data without id and timestamp
|
|
57
|
+
*/
|
|
58
|
+
recordHandoff(record: Omit<HandoffRecord, "id" | "timestamp">): void;
|
|
59
|
+
/**
|
|
60
|
+
* Returns a copy of all recorded handoffs.
|
|
61
|
+
*
|
|
62
|
+
* @returns Array of handoff records
|
|
63
|
+
*/
|
|
64
|
+
getRecords(): HandoffRecord[];
|
|
65
|
+
/**
|
|
66
|
+
* Generates a Mermaid flowchart diagram of the execution graph.
|
|
67
|
+
*
|
|
68
|
+
* Shows agent handoffs with execution time and error states.
|
|
69
|
+
*
|
|
70
|
+
* @returns Mermaid diagram syntax
|
|
71
|
+
*/
|
|
72
|
+
toMermaid(): string;
|
|
73
|
+
/**
|
|
74
|
+
* Generates a Mermaid sequence diagram of the execution graph.
|
|
75
|
+
*
|
|
76
|
+
* Shows chronological handoffs between agents with execution time.
|
|
77
|
+
*
|
|
78
|
+
* @returns Mermaid sequence diagram syntax
|
|
79
|
+
*/
|
|
80
|
+
toSequenceDiagram(): string;
|
|
81
|
+
/**
|
|
82
|
+
* Clears all recorded handoffs.
|
|
83
|
+
*/
|
|
84
|
+
clear(): void;
|
|
85
|
+
/**
|
|
86
|
+
* Generates a unique ID for a handoff record.
|
|
87
|
+
*
|
|
88
|
+
* @returns Unique identifier string
|
|
89
|
+
*/
|
|
90
|
+
private generateId;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Singleton instance of ExecutionGraph.
|
|
94
|
+
* Use this export for global execution graph tracking.
|
|
95
|
+
*/
|
|
96
|
+
export declare const executionGraph: ExecutionGraph;
|
|
97
|
+
//# sourceMappingURL=execution-graph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-graph.d.ts","sourceRoot":"","sources":["../../src/agents/execution-graph.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;IAEX,oEAAoE;IACpE,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAC;IAEpB,0CAA0C;IAC1C,SAAS,EAAE,IAAI,CAAC;IAEhB,kDAAkD;IAClD,aAAa,EAAE,MAAM,CAAC;IAEtB,iDAAiD;IACjD,OAAO,EAAE,OAAO,CAAC;IAEjB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,qBAAa,cAAc;IAC1B,OAAO,CAAC,OAAO,CAAuB;IACtC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IAEpC;;;;OAIG;gBACS,OAAO,CAAC,EAAE,qBAAqB;IAI3C;;;;;;;OAOG;IACH,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,WAAW,CAAC,GAAG,IAAI;IAapE;;;;OAIG;IACH,UAAU,IAAI,aAAa,EAAE;IAI7B;;;;;;OAMG;IACH,SAAS,IAAI,MAAM;IAqBnB;;;;;;OAMG;IACH,iBAAiB,IAAI,MAAM;IA+B3B;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;;;OAIG;IACH,OAAO,CAAC,UAAU;CAGlB;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,gBAAuB,CAAC"}
|