codehere 0.1.0 → 0.2.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.
Potentially problematic release.
This version of codehere might be problematic. Click here for more details.
- package/README.md +51 -25
- package/dist/agents/base.d.ts +107 -0
- package/dist/agents/base.d.ts.map +1 -0
- package/dist/agents/base.js +101 -0
- package/dist/agents/base.js.map +1 -0
- package/dist/agents/orchestrator-model-driven.d.ts +41 -0
- package/dist/agents/orchestrator-model-driven.d.ts.map +1 -0
- package/dist/agents/orchestrator-model-driven.js +141 -0
- package/dist/agents/orchestrator-model-driven.js.map +1 -0
- package/dist/agents/react-orchestrator-agent.d.ts +15 -0
- package/dist/agents/react-orchestrator-agent.d.ts.map +1 -0
- package/dist/agents/react-orchestrator-agent.js +54 -0
- package/dist/agents/react-orchestrator-agent.js.map +1 -0
- package/dist/application/agents/execution-agent.d.ts +68 -0
- package/dist/application/agents/execution-agent.d.ts.map +1 -0
- package/dist/application/agents/execution-agent.js +299 -0
- package/dist/application/agents/execution-agent.js.map +1 -0
- package/dist/application/agents/multi-agent-orchestrator.d.ts +64 -0
- package/dist/application/agents/multi-agent-orchestrator.d.ts.map +1 -0
- package/dist/application/agents/multi-agent-orchestrator.js +209 -0
- package/dist/application/agents/multi-agent-orchestrator.js.map +1 -0
- package/dist/application/agents/planning-agent.d.ts +61 -0
- package/dist/application/agents/planning-agent.d.ts.map +1 -0
- package/dist/application/agents/planning-agent.js +357 -0
- package/dist/application/agents/planning-agent.js.map +1 -0
- package/dist/application/agents/validation-agent.d.ts +64 -0
- package/dist/application/agents/validation-agent.d.ts.map +1 -0
- package/dist/application/agents/validation-agent.js +182 -0
- package/dist/application/agents/validation-agent.js.map +1 -0
- package/dist/application/architectures/plan-and-act.d.ts +94 -0
- package/dist/application/architectures/plan-and-act.d.ts.map +1 -0
- package/dist/application/architectures/plan-and-act.js +242 -0
- package/dist/application/architectures/plan-and-act.js.map +1 -0
- package/dist/application/index.d.ts +12 -0
- package/dist/application/index.d.ts.map +1 -0
- package/dist/application/index.js +12 -0
- package/dist/application/index.js.map +1 -0
- package/dist/application/services/agent-factory.d.ts +9 -0
- package/dist/application/services/agent-factory.d.ts.map +1 -0
- package/dist/application/services/agent-factory.js +28 -0
- package/dist/application/services/agent-factory.js.map +1 -0
- package/dist/application/services/dependency-container.d.ts +140 -0
- package/dist/application/services/dependency-container.d.ts.map +1 -0
- package/dist/application/services/dependency-container.js +402 -0
- package/dist/application/services/dependency-container.js.map +1 -0
- package/dist/application/services/git-context-service.d.ts +30 -0
- package/dist/application/services/git-context-service.d.ts.map +1 -0
- package/dist/application/services/git-context-service.js +83 -0
- package/dist/application/services/git-context-service.js.map +1 -0
- package/dist/application/services/intelligent-router.d.ts +74 -0
- package/dist/application/services/intelligent-router.d.ts.map +1 -0
- package/dist/application/services/intelligent-router.js +711 -0
- package/dist/application/services/intelligent-router.js.map +1 -0
- package/dist/application/services/tool-executor-service.d.ts +14 -0
- package/dist/application/services/tool-executor-service.d.ts.map +1 -0
- package/dist/application/services/tool-executor-service.js +94 -0
- package/dist/application/services/tool-executor-service.js.map +1 -0
- package/dist/application/use-cases/ask-question-use-case.d.ts +36 -0
- package/dist/application/use-cases/ask-question-use-case.d.ts.map +1 -0
- package/dist/application/use-cases/ask-question-use-case.js +150 -0
- package/dist/application/use-cases/ask-question-use-case.js.map +1 -0
- package/dist/application/use-cases/edit-file-use-case.d.ts +76 -0
- package/dist/application/use-cases/edit-file-use-case.d.ts.map +1 -0
- package/dist/application/use-cases/edit-file-use-case.js +685 -0
- package/dist/application/use-cases/edit-file-use-case.js.map +1 -0
- package/dist/application/use-cases/explain-file-use-case.d.ts +21 -0
- package/dist/application/use-cases/explain-file-use-case.d.ts.map +1 -0
- package/dist/application/use-cases/explain-file-use-case.js +50 -0
- package/dist/application/use-cases/explain-file-use-case.js.map +1 -0
- package/dist/application/use-cases/index-codebase-use-case.d.ts +46 -0
- package/dist/application/use-cases/index-codebase-use-case.d.ts.map +1 -0
- package/dist/application/use-cases/index-codebase-use-case.js +113 -0
- package/dist/application/use-cases/index-codebase-use-case.js.map +1 -0
- package/dist/application/use-cases/planning-use-case.d.ts +46 -0
- package/dist/application/use-cases/planning-use-case.d.ts.map +1 -0
- package/dist/application/use-cases/planning-use-case.js +267 -0
- package/dist/application/use-cases/planning-use-case.js.map +1 -0
- package/dist/application/use-cases/react-orchestration-use-case.d.ts +51 -0
- package/dist/application/use-cases/react-orchestration-use-case.d.ts.map +1 -0
- package/dist/application/use-cases/react-orchestration-use-case.js +325 -0
- package/dist/application/use-cases/react-orchestration-use-case.js.map +1 -0
- package/dist/application/use-cases/reflexion-use-case.d.ts +24 -0
- package/dist/application/use-cases/reflexion-use-case.d.ts.map +1 -0
- package/dist/application/use-cases/reflexion-use-case.js +30 -0
- package/dist/application/use-cases/reflexion-use-case.js.map +1 -0
- package/dist/application/workflows/deterministic-workflows.d.ts +61 -0
- package/dist/application/workflows/deterministic-workflows.d.ts.map +1 -0
- package/dist/application/workflows/deterministic-workflows.js +189 -0
- package/dist/application/workflows/deterministic-workflows.js.map +1 -0
- package/dist/cache.d.ts.map +1 -1
- package/dist/cache.js +1 -3
- package/dist/cache.js.map +1 -1
- package/dist/chat.js +10 -10
- package/dist/chat.js.map +1 -1
- package/dist/docs.d.ts.map +1 -1
- package/dist/docs.js +1 -2
- package/dist/docs.js.map +1 -1
- package/dist/domain/entities/code-chunk.d.ts +26 -0
- package/dist/domain/entities/code-chunk.d.ts.map +1 -0
- package/dist/domain/entities/code-chunk.js +6 -0
- package/dist/domain/entities/code-chunk.js.map +1 -0
- package/dist/domain/entities/decision.d.ts +37 -0
- package/dist/domain/entities/decision.d.ts.map +1 -0
- package/dist/domain/entities/decision.js +9 -0
- package/dist/domain/entities/decision.js.map +1 -0
- package/dist/domain/entities/edit.d.ts +35 -0
- package/dist/domain/entities/edit.d.ts.map +1 -0
- package/dist/domain/entities/edit.js +6 -0
- package/dist/domain/entities/edit.js.map +1 -0
- package/dist/domain/entities/knowledge-node.d.ts +83 -0
- package/dist/domain/entities/knowledge-node.d.ts.map +1 -0
- package/dist/domain/entities/knowledge-node.js +9 -0
- package/dist/domain/entities/knowledge-node.js.map +1 -0
- package/dist/domain/entities/knowledge-preservation.d.ts +42 -0
- package/dist/domain/entities/knowledge-preservation.d.ts.map +1 -0
- package/dist/domain/entities/knowledge-preservation.js +10 -0
- package/dist/domain/entities/knowledge-preservation.js.map +1 -0
- package/dist/domain/entities/memory.d.ts +36 -0
- package/dist/domain/entities/memory.d.ts.map +1 -0
- package/dist/domain/entities/memory.js +6 -0
- package/dist/domain/entities/memory.js.map +1 -0
- package/dist/domain/entities/pattern.d.ts +49 -0
- package/dist/domain/entities/pattern.d.ts.map +1 -0
- package/dist/domain/entities/pattern.js +7 -0
- package/dist/domain/entities/pattern.js.map +1 -0
- package/dist/domain/entities/plan.d.ts +42 -0
- package/dist/domain/entities/plan.d.ts.map +1 -0
- package/dist/domain/entities/plan.js +6 -0
- package/dist/domain/entities/plan.js.map +1 -0
- package/dist/domain/entities/query.d.ts +17 -0
- package/dist/domain/entities/query.d.ts.map +1 -0
- package/dist/domain/entities/query.js +6 -0
- package/dist/domain/entities/query.js.map +1 -0
- package/dist/domain/index.d.ts +16 -0
- package/dist/domain/index.d.ts.map +1 -0
- package/dist/domain/index.js +19 -0
- package/dist/domain/index.js.map +1 -0
- package/dist/domain/interfaces/ai-service.interface.d.ts +62 -0
- package/dist/domain/interfaces/ai-service.interface.d.ts.map +1 -0
- package/dist/domain/interfaces/ai-service.interface.js +6 -0
- package/dist/domain/interfaces/ai-service.interface.js.map +1 -0
- package/dist/domain/interfaces/code-analyzer.interface.d.ts +38 -0
- package/dist/domain/interfaces/code-analyzer.interface.d.ts.map +1 -0
- package/dist/domain/interfaces/code-analyzer.interface.js +6 -0
- package/dist/domain/interfaces/code-analyzer.interface.js.map +1 -0
- package/dist/domain/interfaces/decision-repository.interface.d.ts +51 -0
- package/dist/domain/interfaces/decision-repository.interface.d.ts.map +1 -0
- package/dist/domain/interfaces/decision-repository.interface.js +9 -0
- package/dist/domain/interfaces/decision-repository.interface.js.map +1 -0
- package/dist/domain/interfaces/embedding-repository.interface.d.ts +28 -0
- package/dist/domain/interfaces/embedding-repository.interface.d.ts.map +1 -0
- package/dist/domain/interfaces/embedding-repository.interface.js +6 -0
- package/dist/domain/interfaces/embedding-repository.interface.js.map +1 -0
- package/dist/domain/interfaces/knowledge-graph-repository.interface.d.ts +91 -0
- package/dist/domain/interfaces/knowledge-graph-repository.interface.d.ts.map +1 -0
- package/dist/domain/interfaces/knowledge-graph-repository.interface.js +9 -0
- package/dist/domain/interfaces/knowledge-graph-repository.interface.js.map +1 -0
- package/dist/domain/interfaces/knowledge-preservation-repository.interface.d.ts +50 -0
- package/dist/domain/interfaces/knowledge-preservation-repository.interface.d.ts.map +1 -0
- package/dist/domain/interfaces/knowledge-preservation-repository.interface.js +8 -0
- package/dist/domain/interfaces/knowledge-preservation-repository.interface.js.map +1 -0
- package/dist/domain/interfaces/memory-repository.interface.d.ts +49 -0
- package/dist/domain/interfaces/memory-repository.interface.d.ts.map +1 -0
- package/dist/domain/interfaces/memory-repository.interface.js +6 -0
- package/dist/domain/interfaces/memory-repository.interface.js.map +1 -0
- package/dist/domain/interfaces/pattern-repository.interface.d.ts +48 -0
- package/dist/domain/interfaces/pattern-repository.interface.d.ts.map +1 -0
- package/dist/domain/interfaces/pattern-repository.interface.js +6 -0
- package/dist/domain/interfaces/pattern-repository.interface.js.map +1 -0
- package/dist/domain/interfaces/verification-service.interface.d.ts +20 -0
- package/dist/domain/interfaces/verification-service.interface.d.ts.map +1 -0
- package/dist/domain/interfaces/verification-service.interface.js +6 -0
- package/dist/domain/interfaces/verification-service.interface.js.map +1 -0
- package/dist/domain/services/codebase-detector.d.ts +18 -0
- package/dist/domain/services/codebase-detector.d.ts.map +1 -0
- package/dist/domain/services/codebase-detector.js +91 -0
- package/dist/domain/services/codebase-detector.js.map +1 -0
- package/dist/domain/services/cross-team-pattern-sharing.d.ts +65 -0
- package/dist/domain/services/cross-team-pattern-sharing.d.ts.map +1 -0
- package/dist/domain/services/cross-team-pattern-sharing.js +125 -0
- package/dist/domain/services/cross-team-pattern-sharing.js.map +1 -0
- package/dist/domain/services/decision-recorder.d.ts +76 -0
- package/dist/domain/services/decision-recorder.d.ts.map +1 -0
- package/dist/domain/services/decision-recorder.js +223 -0
- package/dist/domain/services/decision-recorder.js.map +1 -0
- package/dist/domain/services/decision-retriever.d.ts +75 -0
- package/dist/domain/services/decision-retriever.d.ts.map +1 -0
- package/dist/domain/services/decision-retriever.js +133 -0
- package/dist/domain/services/decision-retriever.js.map +1 -0
- package/dist/domain/services/graded-memory-activation.d.ts +37 -0
- package/dist/domain/services/graded-memory-activation.d.ts.map +1 -0
- package/dist/domain/services/graded-memory-activation.js +69 -0
- package/dist/domain/services/graded-memory-activation.js.map +1 -0
- package/dist/domain/services/knowledge-access.d.ts +63 -0
- package/dist/domain/services/knowledge-access.d.ts.map +1 -0
- package/dist/domain/services/knowledge-access.js +132 -0
- package/dist/domain/services/knowledge-access.js.map +1 -0
- package/dist/domain/services/knowledge-extractor.d.ts +54 -0
- package/dist/domain/services/knowledge-extractor.d.ts.map +1 -0
- package/dist/domain/services/knowledge-extractor.js +247 -0
- package/dist/domain/services/knowledge-extractor.js.map +1 -0
- package/dist/domain/services/knowledge-graph-builder.d.ts +70 -0
- package/dist/domain/services/knowledge-graph-builder.d.ts.map +1 -0
- package/dist/domain/services/knowledge-graph-builder.js +268 -0
- package/dist/domain/services/knowledge-graph-builder.js.map +1 -0
- package/dist/domain/services/knowledge-graph-query.d.ts +69 -0
- package/dist/domain/services/knowledge-graph-query.d.ts.map +1 -0
- package/dist/domain/services/knowledge-graph-query.js +187 -0
- package/dist/domain/services/knowledge-graph-query.js.map +1 -0
- package/dist/domain/services/memory-retriever.d.ts +30 -0
- package/dist/domain/services/memory-retriever.d.ts.map +1 -0
- package/dist/domain/services/memory-retriever.js +82 -0
- package/dist/domain/services/memory-retriever.js.map +1 -0
- package/dist/domain/services/memory-synthesizer.d.ts +57 -0
- package/dist/domain/services/memory-synthesizer.d.ts.map +1 -0
- package/dist/domain/services/memory-synthesizer.js +91 -0
- package/dist/domain/services/memory-synthesizer.js.map +1 -0
- package/dist/domain/services/pattern-extractor.d.ts +108 -0
- package/dist/domain/services/pattern-extractor.d.ts.map +1 -0
- package/dist/domain/services/pattern-extractor.js +442 -0
- package/dist/domain/services/pattern-extractor.js.map +1 -0
- package/dist/domain/services/query-intent-classifier.d.ts +16 -0
- package/dist/domain/services/query-intent-classifier.d.ts.map +1 -0
- package/dist/domain/services/query-intent-classifier.js +140 -0
- package/dist/domain/services/query-intent-classifier.js.map +1 -0
- package/dist/domain/services/react-loop.d.ts +44 -0
- package/dist/domain/services/react-loop.d.ts.map +1 -0
- package/dist/domain/services/react-loop.js +110 -0
- package/dist/domain/services/react-loop.js.map +1 -0
- package/dist/edit.d.ts +0 -12
- package/dist/edit.d.ts.map +1 -1
- package/dist/edit.js +76 -351
- package/dist/edit.js.map +1 -1
- package/dist/embed.d.ts +0 -4
- package/dist/embed.d.ts.map +1 -1
- package/dist/embed.js +100 -174
- package/dist/embed.js.map +1 -1
- package/dist/error-handler.d.ts +1 -0
- package/dist/error-handler.d.ts.map +1 -1
- package/dist/error-handler.js +46 -3
- package/dist/error-handler.js.map +1 -1
- package/dist/index.js +228 -231
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/ai/cohere-ai-service.d.ts +54 -0
- package/dist/infrastructure/ai/cohere-ai-service.d.ts.map +1 -0
- package/dist/infrastructure/ai/cohere-ai-service.js +547 -0
- package/dist/infrastructure/ai/cohere-ai-service.js.map +1 -0
- package/dist/infrastructure/ai/command-r-evaluation.d.ts +42 -0
- package/dist/infrastructure/ai/command-r-evaluation.d.ts.map +1 -0
- package/dist/infrastructure/ai/command-r-evaluation.js +206 -0
- package/dist/infrastructure/ai/command-r-evaluation.js.map +1 -0
- package/dist/infrastructure/ai/model-config.d.ts +47 -0
- package/dist/infrastructure/ai/model-config.d.ts.map +1 -0
- package/dist/infrastructure/ai/model-config.js +84 -0
- package/dist/infrastructure/ai/model-config.js.map +1 -0
- package/dist/infrastructure/cache/embedding-cache.d.ts +46 -0
- package/dist/infrastructure/cache/embedding-cache.d.ts.map +1 -0
- package/dist/infrastructure/cache/embedding-cache.js +104 -0
- package/dist/infrastructure/cache/embedding-cache.js.map +1 -0
- package/dist/infrastructure/chunking/ast-code-chunker.d.ts +12 -0
- package/dist/infrastructure/chunking/ast-code-chunker.d.ts.map +1 -0
- package/dist/infrastructure/chunking/ast-code-chunker.js +19 -0
- package/dist/infrastructure/chunking/ast-code-chunker.js.map +1 -0
- package/dist/infrastructure/chunking/code-aware-chunker.d.ts +63 -0
- package/dist/infrastructure/chunking/code-aware-chunker.d.ts.map +1 -0
- package/dist/infrastructure/chunking/code-aware-chunker.js +397 -0
- package/dist/infrastructure/chunking/code-aware-chunker.js.map +1 -0
- package/dist/infrastructure/config/config-manager.d.ts +79 -0
- package/dist/infrastructure/config/config-manager.d.ts.map +1 -0
- package/dist/infrastructure/config/config-manager.js +162 -0
- package/dist/infrastructure/config/config-manager.js.map +1 -0
- package/dist/infrastructure/cost/cost-tracker.d.ts +90 -0
- package/dist/infrastructure/cost/cost-tracker.d.ts.map +1 -0
- package/dist/infrastructure/cost/cost-tracker.js +353 -0
- package/dist/infrastructure/cost/cost-tracker.js.map +1 -0
- package/dist/infrastructure/file-scanner/file-scanner.d.ts +31 -0
- package/dist/infrastructure/file-scanner/file-scanner.d.ts.map +1 -0
- package/dist/infrastructure/file-scanner/file-scanner.js +106 -0
- package/dist/infrastructure/file-scanner/file-scanner.js.map +1 -0
- package/dist/infrastructure/governance/nist-ai-rmf.d.ts +107 -0
- package/dist/infrastructure/governance/nist-ai-rmf.d.ts.map +1 -0
- package/dist/infrastructure/governance/nist-ai-rmf.js +294 -0
- package/dist/infrastructure/governance/nist-ai-rmf.js.map +1 -0
- package/dist/infrastructure/governance/policy-as-code.d.ts +90 -0
- package/dist/infrastructure/governance/policy-as-code.d.ts.map +1 -0
- package/dist/infrastructure/governance/policy-as-code.js +244 -0
- package/dist/infrastructure/governance/policy-as-code.js.map +1 -0
- package/dist/infrastructure/governance/prompt-to-code-lineage.d.ts +138 -0
- package/dist/infrastructure/governance/prompt-to-code-lineage.d.ts.map +1 -0
- package/dist/infrastructure/governance/prompt-to-code-lineage.js +241 -0
- package/dist/infrastructure/governance/prompt-to-code-lineage.js.map +1 -0
- package/dist/infrastructure/index.d.ts +7 -0
- package/dist/infrastructure/index.d.ts.map +1 -0
- package/dist/infrastructure/index.js +7 -0
- package/dist/infrastructure/index.js.map +1 -0
- package/dist/infrastructure/observability/execution-tracer.d.ts +105 -0
- package/dist/infrastructure/observability/execution-tracer.d.ts.map +1 -0
- package/dist/infrastructure/observability/execution-tracer.js +190 -0
- package/dist/infrastructure/observability/execution-tracer.js.map +1 -0
- package/dist/infrastructure/observability/prompt-versioner.d.ts +67 -0
- package/dist/infrastructure/observability/prompt-versioner.d.ts.map +1 -0
- package/dist/infrastructure/observability/prompt-versioner.js +145 -0
- package/dist/infrastructure/observability/prompt-versioner.js.map +1 -0
- package/dist/infrastructure/protocols/a2a-metadata.d.ts +278 -0
- package/dist/infrastructure/protocols/a2a-metadata.d.ts.map +1 -0
- package/dist/infrastructure/protocols/a2a-metadata.js +137 -0
- package/dist/infrastructure/protocols/a2a-metadata.js.map +1 -0
- package/dist/infrastructure/protocols/a2a-protocol.d.ts +132 -0
- package/dist/infrastructure/protocols/a2a-protocol.d.ts.map +1 -0
- package/dist/infrastructure/protocols/a2a-protocol.js +314 -0
- package/dist/infrastructure/protocols/a2a-protocol.js.map +1 -0
- package/dist/infrastructure/protocols/mcp-oauth.d.ts +91 -0
- package/dist/infrastructure/protocols/mcp-oauth.d.ts.map +1 -0
- package/dist/infrastructure/protocols/mcp-oauth.js +184 -0
- package/dist/infrastructure/protocols/mcp-oauth.js.map +1 -0
- package/dist/infrastructure/protocols/mcp-server.d.ts +126 -0
- package/dist/infrastructure/protocols/mcp-server.d.ts.map +1 -0
- package/dist/infrastructure/protocols/mcp-server.js +333 -0
- package/dist/infrastructure/protocols/mcp-server.js.map +1 -0
- package/dist/infrastructure/protocols/streaming-handler.d.ts +57 -0
- package/dist/infrastructure/protocols/streaming-handler.d.ts.map +1 -0
- package/dist/infrastructure/protocols/streaming-handler.js +103 -0
- package/dist/infrastructure/protocols/streaming-handler.js.map +1 -0
- package/dist/infrastructure/security/ai-sast-scanner.d.ts +55 -0
- package/dist/infrastructure/security/ai-sast-scanner.d.ts.map +1 -0
- package/dist/infrastructure/security/ai-sast-scanner.js +163 -0
- package/dist/infrastructure/security/ai-sast-scanner.js.map +1 -0
- package/dist/infrastructure/security/docker-sandbox.d.ts +57 -0
- package/dist/infrastructure/security/docker-sandbox.d.ts.map +1 -0
- package/dist/infrastructure/security/docker-sandbox.js +178 -0
- package/dist/infrastructure/security/docker-sandbox.js.map +1 -0
- package/dist/infrastructure/security/enhanced-security-gate.d.ts +51 -0
- package/dist/infrastructure/security/enhanced-security-gate.d.ts.map +1 -0
- package/dist/infrastructure/security/enhanced-security-gate.js +92 -0
- package/dist/infrastructure/security/enhanced-security-gate.js.map +1 -0
- package/dist/infrastructure/security/input-validator.d.ts +33 -0
- package/dist/infrastructure/security/input-validator.d.ts.map +1 -0
- package/dist/infrastructure/security/input-validator.js +152 -0
- package/dist/infrastructure/security/input-validator.js.map +1 -0
- package/dist/infrastructure/security/license-scanner.d.ts +55 -0
- package/dist/infrastructure/security/license-scanner.d.ts.map +1 -0
- package/dist/infrastructure/security/license-scanner.js +167 -0
- package/dist/infrastructure/security/license-scanner.js.map +1 -0
- package/dist/infrastructure/security/provider-bias-detector.d.ts +53 -0
- package/dist/infrastructure/security/provider-bias-detector.d.ts.map +1 -0
- package/dist/infrastructure/security/provider-bias-detector.js +164 -0
- package/dist/infrastructure/security/provider-bias-detector.js.map +1 -0
- package/dist/infrastructure/security/sandbox-executor.d.ts +34 -0
- package/dist/infrastructure/security/sandbox-executor.d.ts.map +1 -0
- package/dist/infrastructure/security/sandbox-executor.js +64 -0
- package/dist/infrastructure/security/sandbox-executor.js.map +1 -0
- package/dist/infrastructure/storage/memory-stream-service.d.ts +47 -0
- package/dist/infrastructure/storage/memory-stream-service.d.ts.map +1 -0
- package/dist/infrastructure/storage/memory-stream-service.js +204 -0
- package/dist/infrastructure/storage/memory-stream-service.js.map +1 -0
- package/dist/infrastructure/storage/sqlite-decision-repository.d.ts +29 -0
- package/dist/infrastructure/storage/sqlite-decision-repository.d.ts.map +1 -0
- package/dist/infrastructure/storage/sqlite-decision-repository.js +232 -0
- package/dist/infrastructure/storage/sqlite-decision-repository.js.map +1 -0
- package/dist/infrastructure/storage/sqlite-embedding-repository.d.ts +24 -0
- package/dist/infrastructure/storage/sqlite-embedding-repository.d.ts.map +1 -0
- package/dist/infrastructure/storage/sqlite-embedding-repository.js +162 -0
- package/dist/infrastructure/storage/sqlite-embedding-repository.js.map +1 -0
- package/dist/infrastructure/storage/sqlite-knowledge-graph-repository.d.ts +41 -0
- package/dist/infrastructure/storage/sqlite-knowledge-graph-repository.d.ts.map +1 -0
- package/dist/infrastructure/storage/sqlite-knowledge-graph-repository.js +417 -0
- package/dist/infrastructure/storage/sqlite-knowledge-graph-repository.js.map +1 -0
- package/dist/infrastructure/storage/sqlite-knowledge-preservation-repository.d.ts +29 -0
- package/dist/infrastructure/storage/sqlite-knowledge-preservation-repository.d.ts.map +1 -0
- package/dist/infrastructure/storage/sqlite-knowledge-preservation-repository.js +230 -0
- package/dist/infrastructure/storage/sqlite-knowledge-preservation-repository.js.map +1 -0
- package/dist/infrastructure/storage/sqlite-memory-repository.d.ts +40 -0
- package/dist/infrastructure/storage/sqlite-memory-repository.d.ts.map +1 -0
- package/dist/infrastructure/storage/sqlite-memory-repository.js +229 -0
- package/dist/infrastructure/storage/sqlite-memory-repository.js.map +1 -0
- package/dist/infrastructure/storage/sqlite-pattern-repository.d.ts +25 -0
- package/dist/infrastructure/storage/sqlite-pattern-repository.d.ts.map +1 -0
- package/dist/infrastructure/storage/sqlite-pattern-repository.js +249 -0
- package/dist/infrastructure/storage/sqlite-pattern-repository.js.map +1 -0
- package/dist/infrastructure/ux/appropriate-friction.d.ts +77 -0
- package/dist/infrastructure/ux/appropriate-friction.d.ts.map +1 -0
- package/dist/infrastructure/ux/appropriate-friction.js +213 -0
- package/dist/infrastructure/ux/appropriate-friction.js.map +1 -0
- package/dist/infrastructure/ux/bi-directional-learning.d.ts +109 -0
- package/dist/infrastructure/ux/bi-directional-learning.d.ts.map +1 -0
- package/dist/infrastructure/ux/bi-directional-learning.js +200 -0
- package/dist/infrastructure/ux/bi-directional-learning.js.map +1 -0
- package/dist/infrastructure/ux/expectation-management.d.ts +65 -0
- package/dist/infrastructure/ux/expectation-management.d.ts.map +1 -0
- package/dist/infrastructure/ux/expectation-management.js +193 -0
- package/dist/infrastructure/ux/expectation-management.js.map +1 -0
- package/dist/infrastructure/ux/hitl-validation.d.ts +104 -0
- package/dist/infrastructure/ux/hitl-validation.d.ts.map +1 -0
- package/dist/infrastructure/ux/hitl-validation.js +211 -0
- package/dist/infrastructure/ux/hitl-validation.js.map +1 -0
- package/dist/infrastructure/ux/progressive-disclosure.d.ts +84 -0
- package/dist/infrastructure/ux/progressive-disclosure.d.ts.map +1 -0
- package/dist/infrastructure/ux/progressive-disclosure.js +235 -0
- package/dist/infrastructure/ux/progressive-disclosure.js.map +1 -0
- package/dist/infrastructure/ux/team-standards.d.ts +94 -0
- package/dist/infrastructure/ux/team-standards.d.ts.map +1 -0
- package/dist/infrastructure/ux/team-standards.js +196 -0
- package/dist/infrastructure/ux/team-standards.js.map +1 -0
- package/dist/infrastructure/verification/verification-service.d.ts +12 -0
- package/dist/infrastructure/verification/verification-service.d.ts.map +1 -0
- package/dist/infrastructure/verification/verification-service.js +47 -0
- package/dist/infrastructure/verification/verification-service.js.map +1 -0
- package/dist/infrastructure/xai/attention-visualizer.d.ts +73 -0
- package/dist/infrastructure/xai/attention-visualizer.d.ts.map +1 -0
- package/dist/infrastructure/xai/attention-visualizer.js +174 -0
- package/dist/infrastructure/xai/attention-visualizer.js.map +1 -0
- package/dist/infrastructure/xai/cot-visualizer.d.ts +105 -0
- package/dist/infrastructure/xai/cot-visualizer.d.ts.map +1 -0
- package/dist/infrastructure/xai/cot-visualizer.js +239 -0
- package/dist/infrastructure/xai/cot-visualizer.js.map +1 -0
- package/dist/infrastructure/xai/decision-tree-log.d.ts +104 -0
- package/dist/infrastructure/xai/decision-tree-log.d.ts.map +1 -0
- package/dist/infrastructure/xai/decision-tree-log.js +216 -0
- package/dist/infrastructure/xai/decision-tree-log.js.map +1 -0
- package/dist/infrastructure/xai/interactive-xai.d.ts +106 -0
- package/dist/infrastructure/xai/interactive-xai.d.ts.map +1 -0
- package/dist/infrastructure/xai/interactive-xai.js +262 -0
- package/dist/infrastructure/xai/interactive-xai.js.map +1 -0
- package/dist/infrastructure/xai/uncertainty-quantifier.d.ts +80 -0
- package/dist/infrastructure/xai/uncertainty-quantifier.d.ts.map +1 -0
- package/dist/infrastructure/xai/uncertainty-quantifier.js +201 -0
- package/dist/infrastructure/xai/uncertainty-quantifier.js.map +1 -0
- package/dist/intelligent-retrieval.d.ts.map +1 -1
- package/dist/intelligent-retrieval.js +8 -1
- package/dist/intelligent-retrieval.js.map +1 -1
- package/dist/intent/classifier.d.ts +6 -0
- package/dist/intent/classifier.d.ts.map +1 -0
- package/dist/intent/classifier.js +2 -0
- package/dist/intent/classifier.js.map +1 -0
- package/dist/intent/context.d.ts +4 -0
- package/dist/intent/context.d.ts.map +1 -0
- package/dist/intent/context.js +2 -0
- package/dist/intent/context.js.map +1 -0
- package/dist/iterative-refinement.d.ts.map +1 -1
- package/dist/iterative-refinement.js +20 -3
- package/dist/iterative-refinement.js.map +1 -1
- package/dist/learning.d.ts.map +1 -1
- package/dist/learning.js +1 -2
- package/dist/learning.js.map +1 -1
- package/dist/monitoring.d.ts.map +1 -1
- package/dist/monitoring.js +1 -2
- package/dist/monitoring.js.map +1 -1
- package/dist/parallel-processor.d.ts +3 -2
- package/dist/parallel-processor.d.ts.map +1 -1
- package/dist/parallel-processor.js +183 -56
- package/dist/parallel-processor.js.map +1 -1
- package/dist/presentation/cli/commands/ask-command.d.ts +8 -0
- package/dist/presentation/cli/commands/ask-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/ask-command.js +133 -0
- package/dist/presentation/cli/commands/ask-command.js.map +1 -0
- package/dist/presentation/cli/commands/config-command.d.ts +9 -0
- package/dist/presentation/cli/commands/config-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/config-command.js +123 -0
- package/dist/presentation/cli/commands/config-command.js.map +1 -0
- package/dist/presentation/cli/commands/cost-command.d.ts +8 -0
- package/dist/presentation/cli/commands/cost-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/cost-command.js +191 -0
- package/dist/presentation/cli/commands/cost-command.js.map +1 -0
- package/dist/presentation/cli/commands/decision-command.d.ts +12 -0
- package/dist/presentation/cli/commands/decision-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/decision-command.js +207 -0
- package/dist/presentation/cli/commands/decision-command.js.map +1 -0
- package/dist/presentation/cli/commands/help-command.d.ts +9 -0
- package/dist/presentation/cli/commands/help-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/help-command.js +281 -0
- package/dist/presentation/cli/commands/help-command.js.map +1 -0
- package/dist/presentation/cli/commands/knowledge-command.d.ts +13 -0
- package/dist/presentation/cli/commands/knowledge-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/knowledge-command.js +129 -0
- package/dist/presentation/cli/commands/knowledge-command.js.map +1 -0
- package/dist/presentation/cli/commands/learning-dashboard-command.d.ts +8 -0
- package/dist/presentation/cli/commands/learning-dashboard-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/learning-dashboard-command.js +183 -0
- package/dist/presentation/cli/commands/learning-dashboard-command.js.map +1 -0
- package/dist/presentation/cli/commands/orchestrate-command.d.ts +8 -0
- package/dist/presentation/cli/commands/orchestrate-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/orchestrate-command.js +112 -0
- package/dist/presentation/cli/commands/orchestrate-command.js.map +1 -0
- package/dist/presentation/cli/commands/plan-command.d.ts +8 -0
- package/dist/presentation/cli/commands/plan-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/plan-command.js +114 -0
- package/dist/presentation/cli/commands/plan-command.js.map +1 -0
- package/dist/presentation/cli/commands/react-command.d.ts +8 -0
- package/dist/presentation/cli/commands/react-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/react-command.js +99 -0
- package/dist/presentation/cli/commands/react-command.js.map +1 -0
- package/dist/presentation/cli/commands/setup-command.d.ts +10 -0
- package/dist/presentation/cli/commands/setup-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/setup-command.js +231 -0
- package/dist/presentation/cli/commands/setup-command.js.map +1 -0
- package/dist/presentation/cli/commands/smart-command.d.ts +6 -0
- package/dist/presentation/cli/commands/smart-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/smart-command.js +212 -0
- package/dist/presentation/cli/commands/smart-command.js.map +1 -0
- package/dist/presentation/cli/commands/trace-command.d.ts +8 -0
- package/dist/presentation/cli/commands/trace-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/trace-command.js +125 -0
- package/dist/presentation/cli/commands/trace-command.js.map +1 -0
- package/dist/presentation/cli/commands/undo-command.d.ts +8 -0
- package/dist/presentation/cli/commands/undo-command.d.ts.map +1 -0
- package/dist/presentation/cli/commands/undo-command.js +141 -0
- package/dist/presentation/cli/commands/undo-command.js.map +1 -0
- package/dist/presentation/cli/error-display.d.ts +23 -0
- package/dist/presentation/cli/error-display.d.ts.map +1 -0
- package/dist/presentation/cli/error-display.js +122 -0
- package/dist/presentation/cli/error-display.js.map +1 -0
- package/dist/refactor.d.ts.map +1 -1
- package/dist/refactor.js +2 -4
- package/dist/refactor.js.map +1 -1
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +2 -63
- package/dist/search.js.map +1 -1
- package/dist/session.d.ts.map +1 -1
- package/dist/session.js +52 -3
- package/dist/session.js.map +1 -1
- package/dist/testgen.d.ts.map +1 -1
- package/dist/testgen.js +1 -2
- package/dist/testgen.js.map +1 -1
- package/dist/tools/bash.d.ts +53 -0
- package/dist/tools/bash.d.ts.map +1 -0
- package/dist/tools/bash.js +213 -0
- package/dist/tools/bash.js.map +1 -0
- package/dist/tools/edit.d.ts +48 -0
- package/dist/tools/edit.d.ts.map +1 -0
- package/dist/tools/edit.js +235 -0
- package/dist/tools/edit.js.map +1 -0
- package/dist/tools/executor.d.ts +29 -0
- package/dist/tools/executor.d.ts.map +1 -0
- package/dist/tools/executor.js +153 -0
- package/dist/tools/executor.js.map +1 -0
- package/dist/tools/git-tool.d.ts +87 -0
- package/dist/tools/git-tool.d.ts.map +1 -0
- package/dist/tools/git-tool.js +292 -0
- package/dist/tools/git-tool.js.map +1 -0
- package/dist/tools/parser.d.ts +33 -0
- package/dist/tools/parser.d.ts.map +1 -0
- package/dist/tools/parser.js +158 -0
- package/dist/tools/parser.js.map +1 -0
- package/dist/tools/registry.d.ts +74 -0
- package/dist/tools/registry.d.ts.map +1 -0
- package/dist/tools/registry.js +302 -0
- package/dist/tools/registry.js.map +1 -0
- package/dist/tools/search.d.ts +41 -0
- package/dist/tools/search.d.ts.map +1 -0
- package/dist/tools/search.js +100 -0
- package/dist/tools/search.js.map +1 -0
- package/dist/ui.d.ts.map +1 -1
- package/dist/ui.js +4 -2
- package/dist/ui.js.map +1 -1
- package/dist/utils/check-api-status.d.ts +12 -0
- package/dist/utils/check-api-status.d.ts.map +1 -0
- package/dist/utils/check-api-status.js +82 -0
- package/dist/utils/check-api-status.js.map +1 -0
- package/dist/utils/diff-parser.d.ts +22 -0
- package/dist/utils/diff-parser.d.ts.map +1 -0
- package/dist/utils/diff-parser.js +160 -0
- package/dist/utils/diff-parser.js.map +1 -0
- package/dist/utils/logger.d.ts +34 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +56 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/version.d.ts +21 -0
- package/dist/utils/version.d.ts.map +1 -0
- package/dist/utils/version.js +52 -0
- package/dist/utils/version.js.map +1 -0
- package/dist/verification/backup.d.ts +30 -0
- package/dist/verification/backup.d.ts.map +1 -0
- package/dist/verification/backup.js +238 -0
- package/dist/verification/backup.js.map +1 -0
- package/dist/verification/compiler.d.ts +20 -0
- package/dist/verification/compiler.d.ts.map +1 -0
- package/dist/verification/compiler.js +228 -0
- package/dist/verification/compiler.js.map +1 -0
- package/dist/verification/index.d.ts +59 -0
- package/dist/verification/index.d.ts.map +1 -0
- package/dist/verification/index.js +273 -0
- package/dist/verification/index.js.map +1 -0
- package/dist/verification/test-runner.d.ts +27 -0
- package/dist/verification/test-runner.d.ts.map +1 -0
- package/dist/verification/test-runner.js +379 -0
- package/dist/verification/test-runner.js.map +1 -0
- package/package.json +39 -14
- package/ARCHITECTURE.md +0 -240
- package/CHANGELOG.md +0 -44
- package/CONTRIBUTING.md +0 -171
- package/dist/benchmark.d.ts +0 -39
- package/dist/benchmark.d.ts.map +0 -1
- package/dist/benchmark.js +0 -195
- package/dist/benchmark.js.map +0 -1
- package/dist/scaffold.d.ts +0 -14
- package/dist/scaffold.d.ts.map +0 -1
- package/dist/scaffold.js +0 -85
- package/dist/scaffold.js.map +0 -1
- package/templates/next-page/app/layout.tsx +0 -19
- package/templates/next-page/app/page.tsx +0 -10
- package/templates/next-page/package.json +0 -22
- package/templates/node-api/index.js +0 -57
- package/templates/node-api/package.json +0 -13
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Infrastructure: NIST AI Risk Management Framework (AI RMF)
|
|
3
|
+
*
|
|
4
|
+
* Enterprise AI Governance structure based on NIST AI RMF
|
|
5
|
+
* Research: Enterprise governance mandatory for adoption (NIST AI RMF, ISO 42001)
|
|
6
|
+
*
|
|
7
|
+
* 4 Core Functions:
|
|
8
|
+
* 1. Govern: Risk culture, accountability, lifecycle management
|
|
9
|
+
* 2. Map: Context framing, risk identification
|
|
10
|
+
* 3. Measure: SAST/SCA mandatory, security density tracking
|
|
11
|
+
* 4. Manage: Incident response, continuous updates
|
|
12
|
+
*/
|
|
13
|
+
export interface RiskContext {
|
|
14
|
+
contextType: 'code_generation' | 'code_edit' | 'code_explanation' | 'planning';
|
|
15
|
+
targetDomain: string;
|
|
16
|
+
riskLevel: 'low' | 'medium' | 'high' | 'critical';
|
|
17
|
+
regulatoryRelevant: boolean;
|
|
18
|
+
userContext?: Record<string, any>;
|
|
19
|
+
}
|
|
20
|
+
export interface RiskProfile {
|
|
21
|
+
security: {
|
|
22
|
+
vulnerabilities: number;
|
|
23
|
+
licenseConflicts: number;
|
|
24
|
+
providerBias: boolean;
|
|
25
|
+
uncertainty: number;
|
|
26
|
+
};
|
|
27
|
+
compliance: {
|
|
28
|
+
gdprRelevant: boolean;
|
|
29
|
+
hipaaRelevant: boolean;
|
|
30
|
+
industrySpecific?: string[];
|
|
31
|
+
};
|
|
32
|
+
operational: {
|
|
33
|
+
complexity: number;
|
|
34
|
+
dependencies: number;
|
|
35
|
+
testCoverage?: number;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export interface GovernanceDecision {
|
|
39
|
+
decisionId: string;
|
|
40
|
+
timestamp: number;
|
|
41
|
+
function: 'govern' | 'map' | 'measure' | 'manage';
|
|
42
|
+
decision: string;
|
|
43
|
+
rationale: string;
|
|
44
|
+
riskProfile?: RiskProfile;
|
|
45
|
+
outcome?: 'allowed' | 'blocked' | 'requires_review';
|
|
46
|
+
reviewer?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* NIST AI RMF Framework
|
|
50
|
+
* Implements 4 core functions for enterprise AI governance
|
|
51
|
+
*/
|
|
52
|
+
export declare class NISTAIRMF {
|
|
53
|
+
private decisions;
|
|
54
|
+
/**
|
|
55
|
+
* GOVERN Function: Risk culture, accountability, lifecycle management
|
|
56
|
+
* Establishes organizational context for AI risk management
|
|
57
|
+
*/
|
|
58
|
+
govern(context: RiskContext): Promise<GovernanceDecision>;
|
|
59
|
+
/**
|
|
60
|
+
* MAP Function: Context framing, risk identification
|
|
61
|
+
* Identifies and characterizes risks in specific contexts
|
|
62
|
+
*/
|
|
63
|
+
map(context: RiskContext, existingRiskProfile?: RiskProfile): Promise<{
|
|
64
|
+
decision: GovernanceDecision;
|
|
65
|
+
riskProfile: RiskProfile;
|
|
66
|
+
}>;
|
|
67
|
+
/**
|
|
68
|
+
* MEASURE Function: SAST/SCA mandatory, security density tracking
|
|
69
|
+
* Quantifies and monitors AI risks and performance
|
|
70
|
+
*/
|
|
71
|
+
measure(riskProfile: RiskProfile, metrics: {
|
|
72
|
+
sastFindings?: number;
|
|
73
|
+
licenseFindings?: number;
|
|
74
|
+
providerBiasFindings?: number;
|
|
75
|
+
uncertaintyScore?: number;
|
|
76
|
+
testCoverage?: number;
|
|
77
|
+
securityDensity?: number;
|
|
78
|
+
}): Promise<GovernanceDecision>;
|
|
79
|
+
/**
|
|
80
|
+
* MANAGE Function: Incident response, continuous updates
|
|
81
|
+
* Responds to and manages AI risks over time
|
|
82
|
+
*/
|
|
83
|
+
manage(incident: {
|
|
84
|
+
type: 'security' | 'compliance' | 'operational' | 'performance';
|
|
85
|
+
severity: 'low' | 'medium' | 'high' | 'critical';
|
|
86
|
+
description: string;
|
|
87
|
+
context?: RiskContext;
|
|
88
|
+
}, action: 'mitigate' | 'accept' | 'transfer' | 'avoid'): Promise<GovernanceDecision>;
|
|
89
|
+
/**
|
|
90
|
+
* Get governance history for audit
|
|
91
|
+
*/
|
|
92
|
+
getGovernanceHistory(filter?: {
|
|
93
|
+
function?: 'govern' | 'map' | 'measure' | 'manage';
|
|
94
|
+
outcome?: 'allowed' | 'blocked' | 'requires_review';
|
|
95
|
+
startTime?: number;
|
|
96
|
+
endTime?: number;
|
|
97
|
+
}): GovernanceDecision[];
|
|
98
|
+
private assessRiskCulture;
|
|
99
|
+
private assignAccountability;
|
|
100
|
+
private planLifecycle;
|
|
101
|
+
private frameContext;
|
|
102
|
+
private characterizeRisks;
|
|
103
|
+
private getSecurityDensityThreshold;
|
|
104
|
+
private respondToIncident;
|
|
105
|
+
private planContinuousUpdates;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=nist-ai-rmf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nist-ai-rmf.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/governance/nist-ai-rmf.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,iBAAiB,GAAG,WAAW,GAAG,kBAAkB,GAAG,UAAU,CAAC;IAC/E,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;IAClD,kBAAkB,EAAE,OAAO,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACnC;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE;QACR,eAAe,EAAE,MAAM,CAAC;QACxB,gBAAgB,EAAE,MAAM,CAAC;QACzB,YAAY,EAAE,OAAO,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,UAAU,EAAE;QACV,YAAY,EAAE,OAAO,CAAC;QACtB,aAAa,EAAE,OAAO,CAAC;QACvB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;KAC7B,CAAC;IACF,WAAW,EAAE;QACX,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EA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D,OAAO,CAAC,kBAAkB,CAAC;IAsB9B;;OAEG;IACH,oBAAoB,CAAC,MAAM,CAAC,EAAE;QAC5B,QAAQ,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,CAAC;QACnD,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,iBAAiB,CAAC;QACpD,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,GAAG,kBAAkB,EAAE;IAwBxB,OAAO,CAAC,iBAAiB;IAoBzB,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,YAAY;IAiBpB,OAAO,CAAC,iBAAiB;IA8CzB,OAAO,CAAC,2BAA2B;IAMnC,OAAO,CAAC,iBAAiB;IA4BzB,OAAO,CAAC,qBAAqB;CAc9B"}
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Infrastructure: NIST AI Risk Management Framework (AI RMF)
|
|
3
|
+
*
|
|
4
|
+
* Enterprise AI Governance structure based on NIST AI RMF
|
|
5
|
+
* Research: Enterprise governance mandatory for adoption (NIST AI RMF, ISO 42001)
|
|
6
|
+
*
|
|
7
|
+
* 4 Core Functions:
|
|
8
|
+
* 1. Govern: Risk culture, accountability, lifecycle management
|
|
9
|
+
* 2. Map: Context framing, risk identification
|
|
10
|
+
* 3. Measure: SAST/SCA mandatory, security density tracking
|
|
11
|
+
* 4. Manage: Incident response, continuous updates
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* NIST AI RMF Framework
|
|
15
|
+
* Implements 4 core functions for enterprise AI governance
|
|
16
|
+
*/
|
|
17
|
+
export class NISTAIRMF {
|
|
18
|
+
decisions = [];
|
|
19
|
+
/**
|
|
20
|
+
* GOVERN Function: Risk culture, accountability, lifecycle management
|
|
21
|
+
* Establishes organizational context for AI risk management
|
|
22
|
+
*/
|
|
23
|
+
async govern(context) {
|
|
24
|
+
const decisionId = `govern-${Date.now()}`;
|
|
25
|
+
// Govern: Risk culture assessment
|
|
26
|
+
const riskCulture = this.assessRiskCulture(context);
|
|
27
|
+
// Govern: Accountability assignment
|
|
28
|
+
const accountability = this.assignAccountability(context);
|
|
29
|
+
// Govern: Lifecycle management planning
|
|
30
|
+
const lifecycle = this.planLifecycle(context);
|
|
31
|
+
const decision = {
|
|
32
|
+
decisionId,
|
|
33
|
+
timestamp: Date.now(),
|
|
34
|
+
function: 'govern',
|
|
35
|
+
decision: `Risk culture: ${riskCulture.level}, Accountability: ${accountability.role}, Lifecycle: ${lifecycle.phase}`,
|
|
36
|
+
rationale: `Governed ${context.contextType} operation with ${context.riskLevel} risk level`,
|
|
37
|
+
outcome: riskCulture.level === 'critical' ? 'requires_review' : 'allowed',
|
|
38
|
+
};
|
|
39
|
+
this.decisions.push(decision);
|
|
40
|
+
return decision;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* MAP Function: Context framing, risk identification
|
|
44
|
+
* Identifies and characterizes risks in specific contexts
|
|
45
|
+
*/
|
|
46
|
+
async map(context, existingRiskProfile) {
|
|
47
|
+
const decisionId = `map-${Date.now()}`;
|
|
48
|
+
// Map: Context framing
|
|
49
|
+
const contextFrame = this.frameContext(context);
|
|
50
|
+
// Map: Risk identification
|
|
51
|
+
const riskProfile = existingRiskProfile || {
|
|
52
|
+
security: {
|
|
53
|
+
vulnerabilities: 0,
|
|
54
|
+
licenseConflicts: 0,
|
|
55
|
+
providerBias: false,
|
|
56
|
+
uncertainty: 0.5,
|
|
57
|
+
},
|
|
58
|
+
compliance: {
|
|
59
|
+
gdprRelevant: context.regulatoryRelevant,
|
|
60
|
+
hipaaRelevant: context.targetDomain === 'healthcare',
|
|
61
|
+
},
|
|
62
|
+
operational: {
|
|
63
|
+
complexity: context.riskLevel === 'critical' ? 0.9 : 0.5,
|
|
64
|
+
dependencies: 0,
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
// Map: Risk characterization
|
|
68
|
+
const risks = this.characterizeRisks(riskProfile, context);
|
|
69
|
+
const decision = {
|
|
70
|
+
decisionId,
|
|
71
|
+
timestamp: Date.now(),
|
|
72
|
+
function: 'map',
|
|
73
|
+
decision: `Mapped ${risks.length} risks in ${context.contextType} context`,
|
|
74
|
+
rationale: risks.map(r => r.description).join('; '),
|
|
75
|
+
riskProfile,
|
|
76
|
+
outcome: risks.some(r => r.severity === 'critical') ? 'requires_review' : 'allowed',
|
|
77
|
+
};
|
|
78
|
+
this.decisions.push(decision);
|
|
79
|
+
return { decision, riskProfile };
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* MEASURE Function: SAST/SCA mandatory, security density tracking
|
|
83
|
+
* Quantifies and monitors AI risks and performance
|
|
84
|
+
*/
|
|
85
|
+
async measure(riskProfile, metrics) {
|
|
86
|
+
const decisionId = `measure-${Date.now()}`;
|
|
87
|
+
// Measure: SAST/SCA metrics (mandatory)
|
|
88
|
+
const securityMetrics = {
|
|
89
|
+
vulnerabilities: metrics.sastFindings || 0,
|
|
90
|
+
licenseConflicts: metrics.licenseFindings || 0,
|
|
91
|
+
providerBias: (metrics.providerBiasFindings || 0) > 0,
|
|
92
|
+
uncertainty: metrics.uncertaintyScore || riskProfile.security.uncertainty,
|
|
93
|
+
};
|
|
94
|
+
// Measure: Security density tracking (language-specific thresholds)
|
|
95
|
+
const securityDensity = metrics.securityDensity || 0;
|
|
96
|
+
const densityThreshold = this.getSecurityDensityThreshold(riskProfile);
|
|
97
|
+
// Measure: Test coverage tracking
|
|
98
|
+
const testCoverage = metrics.testCoverage || riskProfile.operational.testCoverage || 0;
|
|
99
|
+
const updatedRiskProfile = {
|
|
100
|
+
...riskProfile,
|
|
101
|
+
security: securityMetrics,
|
|
102
|
+
operational: {
|
|
103
|
+
...riskProfile.operational,
|
|
104
|
+
testCoverage,
|
|
105
|
+
},
|
|
106
|
+
};
|
|
107
|
+
const decision = {
|
|
108
|
+
decisionId,
|
|
109
|
+
timestamp: Date.now(),
|
|
110
|
+
function: 'measure',
|
|
111
|
+
decision: `Measured: ${securityMetrics.vulnerabilities} vulnerabilities, ${securityMetrics.licenseConflicts} license conflicts, security density: ${securityDensity.toFixed(2)}, test coverage: ${testCoverage.toFixed(1)}%`,
|
|
112
|
+
rationale: `SAST/SCA metrics collected. Security density ${securityDensity > densityThreshold ? 'EXCEEDS' : 'within'} threshold (${densityThreshold}). Test coverage ${testCoverage < 80 ? 'BELOW' : 'meets'} target (80%)`,
|
|
113
|
+
riskProfile: updatedRiskProfile,
|
|
114
|
+
outcome: securityMetrics.vulnerabilities > 0 || securityMetrics.licenseConflicts > 0 || testCoverage < 50 ? 'requires_review' : 'allowed',
|
|
115
|
+
};
|
|
116
|
+
this.decisions.push(decision);
|
|
117
|
+
return decision;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* MANAGE Function: Incident response, continuous updates
|
|
121
|
+
* Responds to and manages AI risks over time
|
|
122
|
+
*/
|
|
123
|
+
async manage(incident, action) {
|
|
124
|
+
const decisionId = `manage-${Date.now()}`;
|
|
125
|
+
// Manage: Incident response
|
|
126
|
+
const response = this.respondToIncident(incident, action);
|
|
127
|
+
// Manage: Continuous update planning
|
|
128
|
+
const updates = this.planContinuousUpdates(incident);
|
|
129
|
+
const decision = {
|
|
130
|
+
decisionId,
|
|
131
|
+
timestamp: Date.now(),
|
|
132
|
+
function: 'manage',
|
|
133
|
+
decision: `${action.toUpperCase()}: ${incident.type} incident (${incident.severity})`,
|
|
134
|
+
rationale: `${response.description}. Continuous updates: ${updates.map(u => u.action).join(', ')}`,
|
|
135
|
+
outcome: action === 'accept' || action === 'transfer' ? 'allowed' : action === 'avoid' ? 'blocked' : 'requires_review',
|
|
136
|
+
};
|
|
137
|
+
this.decisions.push(decision);
|
|
138
|
+
return decision;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Get governance history for audit
|
|
142
|
+
*/
|
|
143
|
+
getGovernanceHistory(filter) {
|
|
144
|
+
let filtered = [...this.decisions];
|
|
145
|
+
if (filter?.function) {
|
|
146
|
+
filtered = filtered.filter(d => d.function === filter.function);
|
|
147
|
+
}
|
|
148
|
+
if (filter?.outcome) {
|
|
149
|
+
filtered = filtered.filter(d => d.outcome === filter.outcome);
|
|
150
|
+
}
|
|
151
|
+
if (filter?.startTime) {
|
|
152
|
+
filtered = filtered.filter(d => d.timestamp >= filter.startTime);
|
|
153
|
+
}
|
|
154
|
+
if (filter?.endTime) {
|
|
155
|
+
filtered = filtered.filter(d => d.timestamp <= filter.endTime);
|
|
156
|
+
}
|
|
157
|
+
return filtered.sort((a, b) => b.timestamp - a.timestamp);
|
|
158
|
+
}
|
|
159
|
+
// Private helper methods
|
|
160
|
+
assessRiskCulture(context) {
|
|
161
|
+
const factors = [];
|
|
162
|
+
let level = 'low';
|
|
163
|
+
if (context.riskLevel === 'critical') {
|
|
164
|
+
level = 'critical';
|
|
165
|
+
factors.push('Critical risk level detected');
|
|
166
|
+
}
|
|
167
|
+
else if (context.regulatoryRelevant) {
|
|
168
|
+
level = 'high';
|
|
169
|
+
factors.push('Regulatory relevance (GDPR/HIPAA)');
|
|
170
|
+
}
|
|
171
|
+
else if (context.riskLevel === 'high') {
|
|
172
|
+
level = 'high';
|
|
173
|
+
factors.push('High risk level');
|
|
174
|
+
}
|
|
175
|
+
else {
|
|
176
|
+
level = context.riskLevel;
|
|
177
|
+
}
|
|
178
|
+
return { level, factors };
|
|
179
|
+
}
|
|
180
|
+
assignAccountability(context) {
|
|
181
|
+
// Accountability assignment based on risk level
|
|
182
|
+
if (context.riskLevel === 'critical') {
|
|
183
|
+
return { role: 'senior_engineer_review', responsible: 'Senior Engineer + Security Team' };
|
|
184
|
+
}
|
|
185
|
+
else if (context.riskLevel === 'high') {
|
|
186
|
+
return { role: 'engineer_review', responsible: 'Engineering Lead' };
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
return { role: 'automated', responsible: 'AI System' };
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
planLifecycle(context) {
|
|
193
|
+
const stages = ['Development', 'Testing', 'Deployment', 'Monitoring', 'Retirement'];
|
|
194
|
+
return {
|
|
195
|
+
phase: 'Development',
|
|
196
|
+
stages,
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
frameContext(context) {
|
|
200
|
+
const constraints = [];
|
|
201
|
+
if (context.regulatoryRelevant) {
|
|
202
|
+
constraints.push('Regulatory compliance required');
|
|
203
|
+
}
|
|
204
|
+
if (context.riskLevel === 'critical') {
|
|
205
|
+
constraints.push('Critical risk - human review mandatory');
|
|
206
|
+
}
|
|
207
|
+
return {
|
|
208
|
+
domain: context.targetDomain,
|
|
209
|
+
constraints,
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
characterizeRisks(riskProfile, context) {
|
|
213
|
+
const risks = [];
|
|
214
|
+
if (riskProfile.security.vulnerabilities > 0) {
|
|
215
|
+
risks.push({
|
|
216
|
+
type: 'security',
|
|
217
|
+
severity: riskProfile.security.vulnerabilities > 5 ? 'critical' : 'high',
|
|
218
|
+
description: `${riskProfile.security.vulnerabilities} security vulnerabilities detected`,
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
if (riskProfile.security.licenseConflicts > 0) {
|
|
222
|
+
risks.push({
|
|
223
|
+
type: 'compliance',
|
|
224
|
+
severity: 'critical',
|
|
225
|
+
description: `${riskProfile.security.licenseConflicts} license conflicts detected (35% contamination risk)`,
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
if (riskProfile.security.providerBias) {
|
|
229
|
+
risks.push({
|
|
230
|
+
type: 'operational',
|
|
231
|
+
severity: 'medium',
|
|
232
|
+
description: 'Provider bias detected - vendor lock-in risk',
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
if (riskProfile.security.uncertainty > 0.7) {
|
|
236
|
+
risks.push({
|
|
237
|
+
type: 'reliability',
|
|
238
|
+
severity: 'high',
|
|
239
|
+
description: `High epistemic uncertainty (${(riskProfile.security.uncertainty * 100).toFixed(1)}%) - hallucination risk`,
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
if (riskProfile.compliance.gdprRelevant || riskProfile.compliance.hipaaRelevant) {
|
|
243
|
+
risks.push({
|
|
244
|
+
type: 'compliance',
|
|
245
|
+
severity: 'high',
|
|
246
|
+
description: 'Regulatory compliance requirements (GDPR/HIPAA)',
|
|
247
|
+
});
|
|
248
|
+
}
|
|
249
|
+
return risks;
|
|
250
|
+
}
|
|
251
|
+
getSecurityDensityThreshold(riskProfile) {
|
|
252
|
+
// Language-specific thresholds (LOC per CWE)
|
|
253
|
+
// Research: Security density tracking with language-specific thresholds
|
|
254
|
+
return 1000; // Default: 1 CWE per 1000 LOC
|
|
255
|
+
}
|
|
256
|
+
respondToIncident(incident, action) {
|
|
257
|
+
const steps = [];
|
|
258
|
+
if (action === 'mitigate') {
|
|
259
|
+
steps.push('Identify root cause');
|
|
260
|
+
steps.push('Implement fix');
|
|
261
|
+
steps.push('Verify resolution');
|
|
262
|
+
steps.push('Update risk profile');
|
|
263
|
+
}
|
|
264
|
+
else if (action === 'accept') {
|
|
265
|
+
steps.push('Document acceptance rationale');
|
|
266
|
+
steps.push('Monitor for escalation');
|
|
267
|
+
}
|
|
268
|
+
else if (action === 'avoid') {
|
|
269
|
+
steps.push('Block operation');
|
|
270
|
+
steps.push('Notify stakeholders');
|
|
271
|
+
}
|
|
272
|
+
else if (action === 'transfer') {
|
|
273
|
+
steps.push('Assign to responsible party');
|
|
274
|
+
steps.push('Track resolution');
|
|
275
|
+
}
|
|
276
|
+
return {
|
|
277
|
+
description: `${action.toUpperCase()} action for ${incident.severity} ${incident.type} incident`,
|
|
278
|
+
steps,
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
planContinuousUpdates(incident) {
|
|
282
|
+
const updates = [];
|
|
283
|
+
if (incident.severity === 'critical') {
|
|
284
|
+
updates.push({ action: 'Update risk models', priority: 'high' });
|
|
285
|
+
updates.push({ action: 'Enhance detection rules', priority: 'high' });
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
updates.push({ action: 'Monitor similar incidents', priority: 'medium' });
|
|
289
|
+
}
|
|
290
|
+
updates.push({ action: 'Review governance policies', priority: 'low' });
|
|
291
|
+
return updates;
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
//# sourceMappingURL=nist-ai-rmf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nist-ai-rmf.js","sourceRoot":"","sources":["../../../src/infrastructure/governance/nist-ai-rmf.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAwCH;;;GAGG;AACH,MAAM,OAAO,SAAS;IACZ,SAAS,GAAyB,EAAE,CAAC;IAE7C;;;OAGG;IACH,KAAK,CAAC,MAAM,CAAC,OAAoB;QAC/B,MAAM,UAAU,GAAG,UAAU,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;QAE1C,kCAAkC;QAClC,MAAM,WAAW,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAEpD,oCAAoC;QACpC,MAAM,cAAc,GAAG,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC;QAE1D,wCAAwC;QACxC,MAAM,SAAS,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAE9C,MAAM,QAAQ,GAAuB;YACnC,UAAU;YACV,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;YACrB,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,iBAAiB,WAAW,CAAC,KAAK,qBAAqB,cAAc,CAAC,IAAI,gBAAgB,SAAS,CAAC,KAAK,EAAE;YACrH,SAAS,EAAE,YAAY,OAAO,CAAC,WAAW,mBAAmB,OAAO,CAAC,SAAS,aAAa;YAC3F,OAAO,EAAE,WAAW,CAAC,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS;SAC1E,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
|
+
* Treats policy definitions like code for automated enforcement and version control
|
|
5
|
+
* Research: Policy-as-Code enables automated compliance, version control for policies, CI/CD integration
|
|
6
|
+
*
|
|
7
|
+
* Features:
|
|
8
|
+
* - Policy definitions as code (YAML/JSON)
|
|
9
|
+
* - Automated enforcement at runtime
|
|
10
|
+
* - Version control and audit trails
|
|
11
|
+
* - CI/CD integration
|
|
12
|
+
*/
|
|
13
|
+
export type PolicySeverity = 'critical' | 'high' | 'medium' | 'low' | 'info';
|
|
14
|
+
export type PolicyAction = 'block' | 'warn' | 'allow' | 'require_review';
|
|
15
|
+
export interface PolicyRule {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
description: string;
|
|
19
|
+
severity: PolicySeverity;
|
|
20
|
+
action: PolicyAction;
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
conditions: PolicyCondition[];
|
|
23
|
+
version: string;
|
|
24
|
+
createdAt: number;
|
|
25
|
+
updatedAt: number;
|
|
26
|
+
}
|
|
27
|
+
export interface PolicyCondition {
|
|
28
|
+
type: 'security' | 'license' | 'provider_bias' | 'uncertainty' | 'test_coverage' | 'compliance';
|
|
29
|
+
operator: 'equals' | 'greater_than' | 'less_than' | 'contains' | 'not_contains' | 'exists';
|
|
30
|
+
field: string;
|
|
31
|
+
value: any;
|
|
32
|
+
}
|
|
33
|
+
export interface PolicyEvaluationResult {
|
|
34
|
+
ruleId: string;
|
|
35
|
+
ruleName: string;
|
|
36
|
+
passed: boolean;
|
|
37
|
+
severity: PolicySeverity;
|
|
38
|
+
action: PolicyAction;
|
|
39
|
+
message: string;
|
|
40
|
+
evidence?: Record<string, any>;
|
|
41
|
+
}
|
|
42
|
+
export interface PolicyEvaluationContext {
|
|
43
|
+
filepath?: string;
|
|
44
|
+
code?: string;
|
|
45
|
+
instruction?: string;
|
|
46
|
+
securityFindings?: any[];
|
|
47
|
+
licenseFindings?: any[];
|
|
48
|
+
providerBiasFindings?: any[];
|
|
49
|
+
uncertainty?: any;
|
|
50
|
+
testCoverage?: number;
|
|
51
|
+
metadata?: Record<string, any>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Policy-as-Code Framework
|
|
55
|
+
* Enforces policies automatically based on code-defined rules
|
|
56
|
+
*/
|
|
57
|
+
export declare class PolicyAsCode {
|
|
58
|
+
private policies;
|
|
59
|
+
private defaultPolicies;
|
|
60
|
+
constructor();
|
|
61
|
+
/**
|
|
62
|
+
* Load policy from code definition
|
|
63
|
+
*/
|
|
64
|
+
loadPolicy(rule: PolicyRule): void;
|
|
65
|
+
/**
|
|
66
|
+
* Evaluate policies against context
|
|
67
|
+
*/
|
|
68
|
+
evaluate(context: PolicyEvaluationContext): Promise<{
|
|
69
|
+
passed: boolean;
|
|
70
|
+
results: PolicyEvaluationResult[];
|
|
71
|
+
blockingRules: PolicyEvaluationResult[];
|
|
72
|
+
}>;
|
|
73
|
+
/**
|
|
74
|
+
* Get all policies
|
|
75
|
+
*/
|
|
76
|
+
getPolicies(): PolicyRule[];
|
|
77
|
+
/**
|
|
78
|
+
* Enable/disable policy
|
|
79
|
+
*/
|
|
80
|
+
setPolicyEnabled(ruleId: string, enabled: boolean): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Update policy
|
|
83
|
+
*/
|
|
84
|
+
updatePolicy(ruleId: string, updates: Partial<PolicyRule>): boolean;
|
|
85
|
+
private evaluateRule;
|
|
86
|
+
private evaluateCondition;
|
|
87
|
+
private initializeDefaultPolicies;
|
|
88
|
+
private incrementVersion;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=policy-as-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"policy-as-code.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/governance/policy-as-code.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAC;AAC7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