@dcyfr/ai 1.0.3 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +106 -0
- package/LICENSE +27 -1
- package/README.md +720 -9
- package/dist/ai/agents/agent-loader.d.ts +12 -0
- package/dist/ai/agents/agent-loader.d.ts.map +1 -1
- package/dist/ai/agents/agent-loader.js +74 -65
- package/dist/ai/agents/agent-loader.js.map +1 -1
- package/dist/ai/agents/agent-registry.d.ts +2 -0
- package/dist/ai/agents/agent-registry.d.ts.map +1 -1
- package/dist/ai/agents/agent-registry.js +15 -14
- package/dist/ai/agents/agent-registry.js.map +1 -1
- package/dist/ai/agents/agent-router.d.ts +20 -5
- package/dist/ai/agents/agent-router.d.ts.map +1 -1
- package/dist/ai/agents/agent-router.js +89 -43
- package/dist/ai/agents/agent-router.js.map +1 -1
- package/dist/ai/agents/index.d.ts +6 -1
- package/dist/ai/agents/index.d.ts.map +1 -1
- package/dist/ai/agents/index.js +9 -3
- package/dist/ai/agents/index.js.map +1 -1
- package/dist/ai/agents/instruction-template.d.ts +45 -0
- package/dist/ai/agents/instruction-template.d.ts.map +1 -0
- package/dist/ai/agents/instruction-template.js +197 -0
- package/dist/ai/agents/instruction-template.js.map +1 -0
- package/dist/ai/agents/persona-resolver.d.ts +90 -0
- package/dist/ai/agents/persona-resolver.d.ts.map +1 -0
- package/dist/ai/agents/persona-resolver.js +121 -0
- package/dist/ai/agents/persona-resolver.js.map +1 -0
- package/dist/ai/agents/schema.d.ts +166 -0
- package/dist/ai/agents/schema.d.ts.map +1 -0
- package/dist/ai/agents/schema.js +94 -0
- package/dist/ai/agents/schema.js.map +1 -0
- package/dist/ai/agents/types.d.ts +102 -0
- package/dist/ai/agents/types.d.ts.map +1 -1
- package/dist/ai/agents-builtin/architecture/index.js +3 -3
- package/dist/ai/agents-builtin/content/index.js +1 -1
- package/dist/ai/agents-builtin/data/index.js +1 -1
- package/dist/ai/agents-builtin/development/index.js +4 -4
- package/dist/ai/agents-builtin/devops/index.js +1 -1
- package/dist/ai/agents-builtin/index.js +33 -33
- package/dist/ai/agents-builtin/performance/index.js +1 -1
- package/dist/ai/agents-builtin/research/index.js +1 -1
- package/dist/ai/agents-builtin/security/index.js +1 -1
- package/dist/ai/agents-builtin/testing/index.js +2 -2
- package/dist/ai/config/loader.d.ts.map +1 -1
- package/dist/ai/config/loader.js +6 -3
- package/dist/ai/config/loader.js.map +1 -1
- package/dist/ai/config/schema.d.ts +242 -1156
- package/dist/ai/config/schema.d.ts.map +1 -1
- package/dist/ai/config/schema.js +69 -20
- package/dist/ai/config/schema.js.map +1 -1
- package/dist/ai/core/provider-registry.d.ts +32 -0
- package/dist/ai/core/provider-registry.d.ts.map +1 -1
- package/dist/ai/core/provider-registry.js +189 -14
- package/dist/ai/core/provider-registry.js.map +1 -1
- package/dist/ai/core/telemetry-engine.d.ts +26 -0
- package/dist/ai/core/telemetry-engine.d.ts.map +1 -1
- package/dist/ai/core/telemetry-engine.js +81 -1
- package/dist/ai/core/telemetry-engine.js.map +1 -1
- package/dist/ai/delegation/agent-registry.d.ts +143 -0
- package/dist/ai/delegation/agent-registry.d.ts.map +1 -0
- package/dist/ai/delegation/agent-registry.js +231 -0
- package/dist/ai/delegation/agent-registry.js.map +1 -0
- package/dist/ai/delegation/blast-radius-tracker.d.ts +65 -0
- package/dist/ai/delegation/blast-radius-tracker.d.ts.map +1 -0
- package/dist/ai/delegation/blast-radius-tracker.js +81 -0
- package/dist/ai/delegation/blast-radius-tracker.js.map +1 -0
- package/dist/ai/delegation/capability-bootstrap.d.ts +40 -0
- package/dist/ai/delegation/capability-bootstrap.d.ts.map +1 -0
- package/dist/ai/delegation/capability-bootstrap.js +431 -0
- package/dist/ai/delegation/capability-bootstrap.js.map +1 -0
- package/dist/ai/delegation/capability-registry.d.ts +81 -0
- package/dist/ai/delegation/capability-registry.d.ts.map +1 -0
- package/dist/ai/delegation/capability-registry.js +339 -0
- package/dist/ai/delegation/capability-registry.js.map +1 -0
- package/dist/ai/delegation/chain-tracker.d.ts +152 -0
- package/dist/ai/delegation/chain-tracker.d.ts.map +1 -0
- package/dist/ai/delegation/chain-tracker.js +336 -0
- package/dist/ai/delegation/chain-tracker.js.map +1 -0
- package/dist/ai/delegation/circuit-breaker.d.ts +59 -0
- package/dist/ai/delegation/circuit-breaker.d.ts.map +1 -0
- package/dist/ai/delegation/circuit-breaker.js +153 -0
- package/dist/ai/delegation/circuit-breaker.js.map +1 -0
- package/dist/ai/delegation/contract-manager.d.ts +415 -0
- package/dist/ai/delegation/contract-manager.d.ts.map +1 -0
- package/dist/ai/delegation/contract-manager.js +1258 -0
- package/dist/ai/delegation/contract-manager.js.map +1 -0
- package/dist/ai/delegation/delegation-manager.d.ts +505 -0
- package/dist/ai/delegation/delegation-manager.d.ts.map +1 -0
- package/dist/ai/delegation/delegation-manager.js +773 -0
- package/dist/ai/delegation/delegation-manager.js.map +1 -0
- package/dist/ai/delegation/event-schemas.d.ts +101 -0
- package/dist/ai/delegation/event-schemas.d.ts.map +1 -0
- package/dist/ai/delegation/event-schemas.js +59 -0
- package/dist/ai/delegation/event-schemas.js.map +1 -0
- package/dist/ai/delegation/execution-mode-dashboard.d.ts +109 -0
- package/dist/ai/delegation/execution-mode-dashboard.d.ts.map +1 -0
- package/dist/ai/delegation/execution-mode-dashboard.js +167 -0
- package/dist/ai/delegation/execution-mode-dashboard.js.map +1 -0
- package/dist/ai/delegation/feature-flags.d.ts +191 -0
- package/dist/ai/delegation/feature-flags.d.ts.map +1 -0
- package/dist/ai/delegation/feature-flags.js +332 -0
- package/dist/ai/delegation/feature-flags.js.map +1 -0
- package/dist/ai/delegation/index.d.ts +51 -0
- package/dist/ai/delegation/index.d.ts.map +1 -0
- package/dist/ai/delegation/index.js +39 -0
- package/dist/ai/delegation/index.js.map +1 -0
- package/dist/ai/delegation/middleware/chain-depth-middleware.d.ts +39 -0
- package/dist/ai/delegation/middleware/chain-depth-middleware.d.ts.map +1 -0
- package/dist/ai/delegation/middleware/chain-depth-middleware.js +77 -0
- package/dist/ai/delegation/middleware/chain-depth-middleware.js.map +1 -0
- package/dist/ai/delegation/middleware/chain-tracker-middleware.d.ts +46 -0
- package/dist/ai/delegation/middleware/chain-tracker-middleware.d.ts.map +1 -0
- package/dist/ai/delegation/middleware/chain-tracker-middleware.js +89 -0
- package/dist/ai/delegation/middleware/chain-tracker-middleware.js.map +1 -0
- package/dist/ai/delegation/middleware/content-policy-middleware.d.ts +31 -0
- package/dist/ai/delegation/middleware/content-policy-middleware.d.ts.map +1 -0
- package/dist/ai/delegation/middleware/content-policy-middleware.js +82 -0
- package/dist/ai/delegation/middleware/content-policy-middleware.js.map +1 -0
- package/dist/ai/delegation/middleware/feature-flag-middleware.d.ts +46 -0
- package/dist/ai/delegation/middleware/feature-flag-middleware.d.ts.map +1 -0
- package/dist/ai/delegation/middleware/feature-flag-middleware.js +59 -0
- package/dist/ai/delegation/middleware/feature-flag-middleware.js.map +1 -0
- package/dist/ai/delegation/middleware/identity-middleware.d.ts +23 -0
- package/dist/ai/delegation/middleware/identity-middleware.d.ts.map +1 -0
- package/dist/ai/delegation/middleware/identity-middleware.js +64 -0
- package/dist/ai/delegation/middleware/identity-middleware.js.map +1 -0
- package/dist/ai/delegation/middleware/permissions-middleware.d.ts +48 -0
- package/dist/ai/delegation/middleware/permissions-middleware.d.ts.map +1 -0
- package/dist/ai/delegation/middleware/permissions-middleware.js +107 -0
- package/dist/ai/delegation/middleware/permissions-middleware.js.map +1 -0
- package/dist/ai/delegation/middleware/rate-limiter-middleware.d.ts +38 -0
- package/dist/ai/delegation/middleware/rate-limiter-middleware.d.ts.map +1 -0
- package/dist/ai/delegation/middleware/rate-limiter-middleware.js +65 -0
- package/dist/ai/delegation/middleware/rate-limiter-middleware.js.map +1 -0
- package/dist/ai/delegation/middleware/reputation-middleware.d.ts +39 -0
- package/dist/ai/delegation/middleware/reputation-middleware.d.ts.map +1 -0
- package/dist/ai/delegation/middleware/reputation-middleware.js +75 -0
- package/dist/ai/delegation/middleware/reputation-middleware.js.map +1 -0
- package/dist/ai/delegation/middleware/resource-limiter-middleware.d.ts +52 -0
- package/dist/ai/delegation/middleware/resource-limiter-middleware.d.ts.map +1 -0
- package/dist/ai/delegation/middleware/resource-limiter-middleware.js +112 -0
- package/dist/ai/delegation/middleware/resource-limiter-middleware.js.map +1 -0
- package/dist/ai/delegation/middleware/threat-validator-middleware.d.ts +23 -0
- package/dist/ai/delegation/middleware/threat-validator-middleware.d.ts.map +1 -0
- package/dist/ai/delegation/middleware/threat-validator-middleware.js +83 -0
- package/dist/ai/delegation/middleware/threat-validator-middleware.js.map +1 -0
- package/dist/ai/delegation/middleware/tlp-middleware.d.ts +23 -0
- package/dist/ai/delegation/middleware/tlp-middleware.d.ts.map +1 -0
- package/dist/ai/delegation/middleware/tlp-middleware.js +59 -0
- package/dist/ai/delegation/middleware/tlp-middleware.js.map +1 -0
- package/dist/ai/delegation/monitoring.d.ts +298 -0
- package/dist/ai/delegation/monitoring.d.ts.map +1 -0
- package/dist/ai/delegation/monitoring.js +584 -0
- package/dist/ai/delegation/monitoring.js.map +1 -0
- package/dist/ai/delegation/security-middleware-chain.d.ts +71 -0
- package/dist/ai/delegation/security-middleware-chain.d.ts.map +1 -0
- package/dist/ai/delegation/security-middleware-chain.js +163 -0
- package/dist/ai/delegation/security-middleware-chain.js.map +1 -0
- package/dist/ai/delegation/session-checkpoint.d.ts +77 -0
- package/dist/ai/delegation/session-checkpoint.d.ts.map +1 -0
- package/dist/ai/delegation/session-checkpoint.js +131 -0
- package/dist/ai/delegation/session-checkpoint.js.map +1 -0
- package/dist/ai/delegation/session-manager.d.ts +131 -0
- package/dist/ai/delegation/session-manager.d.ts.map +1 -0
- package/dist/ai/delegation/session-manager.js +243 -0
- package/dist/ai/delegation/session-manager.js.map +1 -0
- package/dist/ai/delegation/session-queue.d.ts +95 -0
- package/dist/ai/delegation/session-queue.d.ts.map +1 -0
- package/dist/ai/delegation/session-queue.js +136 -0
- package/dist/ai/delegation/session-queue.js.map +1 -0
- package/dist/ai/delegation/timeout-watchdog.d.ts +60 -0
- package/dist/ai/delegation/timeout-watchdog.d.ts.map +1 -0
- package/dist/ai/delegation/timeout-watchdog.js +100 -0
- package/dist/ai/delegation/timeout-watchdog.js.map +1 -0
- package/dist/ai/examples/integration-demo.d.ts +27 -0
- package/dist/ai/examples/integration-demo.d.ts.map +1 -0
- package/dist/ai/examples/integration-demo.js +536 -0
- package/dist/ai/examples/integration-demo.js.map +1 -0
- package/dist/ai/index.d.ts +27 -0
- package/dist/ai/index.d.ts.map +1 -1
- package/dist/ai/index.js +32 -10
- package/dist/ai/index.js.map +1 -1
- package/dist/ai/mcp/index.d.ts +14 -2
- package/dist/ai/mcp/index.d.ts.map +1 -1
- package/dist/ai/mcp/index.js +11 -1
- package/dist/ai/mcp/index.js.map +1 -1
- package/dist/ai/mcp/servers/analytics/index.d.ts +19 -0
- package/dist/ai/mcp/servers/analytics/index.d.ts.map +1 -0
- package/dist/ai/mcp/servers/analytics/index.js +612 -0
- package/dist/ai/mcp/servers/analytics/index.js.map +1 -0
- package/dist/ai/mcp/servers/content-manager/content-provider.d.ts +61 -0
- package/dist/ai/mcp/servers/content-manager/content-provider.d.ts.map +1 -0
- package/dist/ai/mcp/servers/content-manager/content-provider.js +8 -0
- package/dist/ai/mcp/servers/content-manager/content-provider.js.map +1 -0
- package/dist/ai/mcp/servers/content-manager/index.d.ts +19 -0
- package/dist/ai/mcp/servers/content-manager/index.d.ts.map +1 -0
- package/dist/ai/mcp/servers/content-manager/index.js +282 -0
- package/dist/ai/mcp/servers/content-manager/index.js.map +1 -0
- package/dist/ai/mcp/servers/delegation-monitor/index.d.ts +36 -0
- package/dist/ai/mcp/servers/delegation-monitor/index.d.ts.map +1 -0
- package/dist/ai/mcp/servers/delegation-monitor/index.js +757 -0
- package/dist/ai/mcp/servers/delegation-monitor/index.js.map +1 -0
- package/dist/ai/mcp/servers/design-tokens/index.d.ts +19 -0
- package/dist/ai/mcp/servers/design-tokens/index.d.ts.map +1 -0
- package/dist/ai/mcp/servers/design-tokens/index.js +445 -0
- package/dist/ai/mcp/servers/design-tokens/index.js.map +1 -0
- package/dist/ai/mcp/servers/design-tokens/token-provider.d.ts +59 -0
- package/dist/ai/mcp/servers/design-tokens/token-provider.d.ts.map +1 -0
- package/dist/ai/mcp/servers/design-tokens/token-provider.js +8 -0
- package/dist/ai/mcp/servers/design-tokens/token-provider.js.map +1 -0
- package/dist/ai/mcp/servers/promptintel/index.d.ts +19 -0
- package/dist/ai/mcp/servers/promptintel/index.d.ts.map +1 -0
- package/dist/ai/mcp/servers/promptintel/index.js +335 -0
- package/dist/ai/mcp/servers/promptintel/index.js.map +1 -0
- package/dist/ai/mcp/servers/shared/cache.d.ts +62 -0
- package/dist/ai/mcp/servers/shared/cache.d.ts.map +1 -0
- package/dist/ai/mcp/servers/shared/cache.js +117 -0
- package/dist/ai/mcp/servers/shared/cache.js.map +1 -0
- package/dist/ai/mcp/servers/shared/promptintel-client.d.ts +53 -0
- package/dist/ai/mcp/servers/shared/promptintel-client.d.ts.map +1 -0
- package/dist/ai/mcp/servers/shared/promptintel-client.js +185 -0
- package/dist/ai/mcp/servers/shared/promptintel-client.js.map +1 -0
- package/dist/ai/mcp/servers/shared/promptintel-types.d.ts +85 -0
- package/dist/ai/mcp/servers/shared/promptintel-types.d.ts.map +1 -0
- package/dist/ai/mcp/servers/shared/promptintel-types.js +7 -0
- package/dist/ai/mcp/servers/shared/promptintel-types.js.map +1 -0
- package/dist/ai/mcp/servers/shared/rate-limiter.d.ts +54 -0
- package/dist/ai/mcp/servers/shared/rate-limiter.d.ts.map +1 -0
- package/dist/ai/mcp/servers/shared/rate-limiter.js +124 -0
- package/dist/ai/mcp/servers/shared/rate-limiter.js.map +1 -0
- package/dist/ai/mcp/servers/shared/redis-client.d.ts +54 -0
- package/dist/ai/mcp/servers/shared/redis-client.d.ts.map +1 -0
- package/dist/ai/mcp/servers/shared/redis-client.js +232 -0
- package/dist/ai/mcp/servers/shared/redis-client.js.map +1 -0
- package/dist/ai/mcp/servers/shared/types.d.ts +301 -0
- package/dist/ai/mcp/servers/shared/types.d.ts.map +1 -0
- package/dist/ai/mcp/servers/shared/types.js +6 -0
- package/dist/ai/mcp/servers/shared/types.js.map +1 -0
- package/dist/ai/mcp/servers/shared/utils.d.ts +49 -0
- package/dist/ai/mcp/servers/shared/utils.d.ts.map +1 -0
- package/dist/ai/mcp/servers/shared/utils.js +233 -0
- package/dist/ai/mcp/servers/shared/utils.js.map +1 -0
- package/dist/ai/memory/config.d.ts +102 -0
- package/dist/ai/memory/config.d.ts.map +1 -0
- package/dist/ai/memory/config.js +200 -0
- package/dist/ai/memory/config.js.map +1 -0
- package/dist/ai/memory/dcyfr-memory.d.ts +67 -0
- package/dist/ai/memory/dcyfr-memory.d.ts.map +1 -0
- package/dist/ai/memory/dcyfr-memory.js +308 -0
- package/dist/ai/memory/dcyfr-memory.js.map +1 -0
- package/dist/ai/memory/index.d.ts +15 -0
- package/dist/ai/memory/index.d.ts.map +1 -0
- package/dist/ai/memory/index.js +15 -0
- package/dist/ai/memory/index.js.map +1 -0
- package/dist/ai/memory/mem0-client.d.ts +108 -0
- package/dist/ai/memory/mem0-client.d.ts.map +1 -0
- package/dist/ai/memory/mem0-client.js +205 -0
- package/dist/ai/memory/mem0-client.js.map +1 -0
- package/dist/ai/memory/types.d.ts +175 -0
- package/dist/ai/memory/types.d.ts.map +1 -0
- package/dist/ai/memory/types.js +10 -0
- package/dist/ai/memory/types.js.map +1 -0
- package/dist/ai/permissions/attenuation-engine.d.ts +159 -0
- package/dist/ai/permissions/attenuation-engine.d.ts.map +1 -0
- package/dist/ai/permissions/attenuation-engine.js +511 -0
- package/dist/ai/permissions/attenuation-engine.js.map +1 -0
- package/dist/ai/plugins/plugin-loader.d.ts +4 -0
- package/dist/ai/plugins/plugin-loader.d.ts.map +1 -1
- package/dist/ai/plugins/plugin-loader.js +28 -28
- package/dist/ai/plugins/plugin-loader.js.map +1 -1
- package/dist/ai/reputation/execution-mode-reputation.d.ts +104 -0
- package/dist/ai/reputation/execution-mode-reputation.d.ts.map +1 -0
- package/dist/ai/reputation/execution-mode-reputation.js +142 -0
- package/dist/ai/reputation/execution-mode-reputation.js.map +1 -0
- package/dist/ai/reputation/reputation-engine.d.ts +204 -0
- package/dist/ai/reputation/reputation-engine.d.ts.map +1 -0
- package/dist/ai/reputation/reputation-engine.js +426 -0
- package/dist/ai/reputation/reputation-engine.js.map +1 -0
- package/dist/ai/runtime/agent-runtime.d.ts +193 -0
- package/dist/ai/runtime/agent-runtime.d.ts.map +1 -0
- package/dist/ai/runtime/agent-runtime.js +1009 -0
- package/dist/ai/runtime/agent-runtime.js.map +1 -0
- package/dist/ai/runtime/index.d.ts +11 -0
- package/dist/ai/runtime/index.d.ts.map +1 -0
- package/dist/ai/runtime/index.js +9 -0
- package/dist/ai/runtime/index.js.map +1 -0
- package/dist/ai/runtime/telemetry-schema.d.ts +192 -0
- package/dist/ai/runtime/telemetry-schema.d.ts.map +1 -0
- package/dist/ai/runtime/telemetry-schema.js +200 -0
- package/dist/ai/runtime/telemetry-schema.js.map +1 -0
- package/dist/ai/runtime/types.d.ts +236 -0
- package/dist/ai/runtime/types.d.ts.map +1 -0
- package/dist/ai/runtime/types.js +10 -0
- package/dist/ai/runtime/types.js.map +1 -0
- package/dist/ai/src/batch-processor.d.ts +298 -0
- package/dist/ai/src/batch-processor.d.ts.map +1 -0
- package/dist/ai/src/batch-processor.js +520 -0
- package/dist/ai/src/batch-processor.js.map +1 -0
- package/dist/ai/src/capability-bootstrap.d.ts +222 -0
- package/dist/ai/src/capability-bootstrap.d.ts.map +1 -0
- package/dist/ai/src/capability-bootstrap.js +421 -0
- package/dist/ai/src/capability-bootstrap.js.map +1 -0
- package/dist/ai/src/capability-manifest-generator.d.ts +52 -0
- package/dist/ai/src/capability-manifest-generator.d.ts.map +1 -0
- package/dist/ai/src/capability-manifest-generator.js +691 -0
- package/dist/ai/src/capability-manifest-generator.js.map +1 -0
- package/dist/ai/src/capability-registry.d.ts +157 -0
- package/dist/ai/src/capability-registry.d.ts.map +1 -0
- package/dist/ai/src/capability-registry.js +577 -0
- package/dist/ai/src/capability-registry.js.map +1 -0
- package/dist/ai/src/cli/telemetry-dashboard.d.ts +132 -0
- package/dist/ai/src/cli/telemetry-dashboard.d.ts.map +1 -0
- package/dist/ai/src/cli/telemetry-dashboard.js +565 -0
- package/dist/ai/src/cli/telemetry-dashboard.js.map +1 -0
- package/dist/ai/src/delegation/feature-flags.d.ts +213 -0
- package/dist/ai/src/delegation/feature-flags.d.ts.map +1 -0
- package/dist/ai/src/delegation/feature-flags.js +395 -0
- package/dist/ai/src/delegation/feature-flags.js.map +1 -0
- package/dist/ai/src/delegation/liability-firebreak.d.ts +303 -0
- package/dist/ai/src/delegation/liability-firebreak.d.ts.map +1 -0
- package/dist/ai/src/delegation/liability-firebreak.js +643 -0
- package/dist/ai/src/delegation/liability-firebreak.js.map +1 -0
- package/dist/ai/src/delegation/security-threat-model.d.ts +171 -0
- package/dist/ai/src/delegation/security-threat-model.d.ts.map +1 -0
- package/dist/ai/src/delegation/security-threat-model.js +723 -0
- package/dist/ai/src/delegation/security-threat-model.js.map +1 -0
- package/dist/ai/src/delegation/tlp-enforcement.d.ts +146 -0
- package/dist/ai/src/delegation/tlp-enforcement.d.ts.map +1 -0
- package/dist/ai/src/delegation/tlp-enforcement.js +382 -0
- package/dist/ai/src/delegation/tlp-enforcement.js.map +1 -0
- package/dist/ai/src/delegation-capability-integration.d.ts +154 -0
- package/dist/ai/src/delegation-capability-integration.d.ts.map +1 -0
- package/dist/ai/src/delegation-capability-integration.js +351 -0
- package/dist/ai/src/delegation-capability-integration.js.map +1 -0
- package/dist/ai/src/end-to-end-workflow-orchestrator.d.ts +325 -0
- package/dist/ai/src/end-to-end-workflow-orchestrator.d.ts.map +1 -0
- package/dist/ai/src/end-to-end-workflow-orchestrator.js +801 -0
- package/dist/ai/src/end-to-end-workflow-orchestrator.js.map +1 -0
- package/dist/ai/src/enhanced-capability-detection.d.ts +237 -0
- package/dist/ai/src/enhanced-capability-detection.d.ts.map +1 -0
- package/dist/ai/src/enhanced-capability-detection.js +448 -0
- package/dist/ai/src/enhanced-capability-detection.js.map +1 -0
- package/dist/ai/src/intelligent-cache-manager.d.ts +327 -0
- package/dist/ai/src/intelligent-cache-manager.d.ts.map +1 -0
- package/dist/ai/src/intelligent-cache-manager.js +634 -0
- package/dist/ai/src/intelligent-cache-manager.js.map +1 -0
- package/dist/ai/src/mcp-auto-configuration.d.ts +232 -0
- package/dist/ai/src/mcp-auto-configuration.d.ts.map +1 -0
- package/dist/ai/src/mcp-auto-configuration.js +445 -0
- package/dist/ai/src/mcp-auto-configuration.js.map +1 -0
- package/dist/ai/src/performance-profiler.d.ts +351 -0
- package/dist/ai/src/performance-profiler.d.ts.map +1 -0
- package/dist/ai/src/performance-profiler.js +475 -0
- package/dist/ai/src/performance-profiler.js.map +1 -0
- package/dist/ai/src/personas/hooks/before-llm-call.d.ts +96 -0
- package/dist/ai/src/personas/hooks/before-llm-call.d.ts.map +1 -0
- package/dist/ai/src/personas/hooks/before-llm-call.js +83 -0
- package/dist/ai/src/personas/hooks/before-llm-call.js.map +1 -0
- package/dist/ai/src/personas/index.d.ts +10 -0
- package/dist/ai/src/personas/index.d.ts.map +1 -0
- package/dist/ai/src/personas/index.js +10 -0
- package/dist/ai/src/personas/index.js.map +1 -0
- package/dist/ai/src/personas/persona-loader.d.ts +42 -0
- package/dist/ai/src/personas/persona-loader.d.ts.map +1 -0
- package/dist/ai/src/personas/persona-loader.js +162 -0
- package/dist/ai/src/personas/persona-loader.js.map +1 -0
- package/dist/ai/src/personas/types.d.ts +199 -0
- package/dist/ai/src/personas/types.d.ts.map +1 -0
- package/dist/ai/src/personas/types.js +7 -0
- package/dist/ai/src/personas/types.js.map +1 -0
- package/dist/ai/src/personas/voice-resolver.d.ts +40 -0
- package/dist/ai/src/personas/voice-resolver.d.ts.map +1 -0
- package/dist/ai/src/personas/voice-resolver.js +201 -0
- package/dist/ai/src/personas/voice-resolver.js.map +1 -0
- package/dist/ai/src/resource-monitor.d.ts +311 -0
- package/dist/ai/src/resource-monitor.d.ts.map +1 -0
- package/dist/ai/src/resource-monitor.js +475 -0
- package/dist/ai/src/resource-monitor.js.map +1 -0
- package/dist/ai/src/runtime/agent-runtime.d.ts +340 -0
- package/dist/ai/src/runtime/agent-runtime.d.ts.map +1 -0
- package/dist/ai/src/runtime/agent-runtime.js +1084 -0
- package/dist/ai/src/runtime/agent-runtime.js.map +1 -0
- package/dist/ai/src/telemetry/delegation-telemetry.d.ts +287 -0
- package/dist/ai/src/telemetry/delegation-telemetry.d.ts.map +1 -0
- package/dist/ai/src/telemetry/delegation-telemetry.js +389 -0
- package/dist/ai/src/telemetry/delegation-telemetry.js.map +1 -0
- package/dist/ai/src/telemetry/index.d.ts +48 -0
- package/dist/ai/src/telemetry/index.d.ts.map +1 -0
- package/dist/ai/src/telemetry/index.js +48 -0
- package/dist/ai/src/telemetry/index.js.map +1 -0
- package/dist/ai/src/telemetry/runtime-telemetry-integration.d.ts +67 -0
- package/dist/ai/src/telemetry/runtime-telemetry-integration.d.ts.map +1 -0
- package/dist/ai/src/telemetry/runtime-telemetry-integration.js +415 -0
- package/dist/ai/src/telemetry/runtime-telemetry-integration.js.map +1 -0
- package/dist/ai/src/telemetry/telemetry-utils.d.ts +119 -0
- package/dist/ai/src/telemetry/telemetry-utils.d.ts.map +1 -0
- package/dist/ai/src/telemetry/telemetry-utils.js +250 -0
- package/dist/ai/src/telemetry/telemetry-utils.js.map +1 -0
- package/dist/ai/src/types/agent-capabilities.d.ts +227 -0
- package/dist/ai/src/types/agent-capabilities.d.ts.map +1 -0
- package/dist/ai/src/types/agent-capabilities.js +11 -0
- package/dist/ai/src/types/agent-capabilities.js.map +1 -0
- package/dist/ai/src/types/context-verification.d.ts +158 -0
- package/dist/ai/src/types/context-verification.d.ts.map +1 -0
- package/dist/ai/src/types/context-verification.js +73 -0
- package/dist/ai/src/types/context-verification.js.map +1 -0
- package/dist/ai/src/types/delegation-contracts.d.ts +296 -0
- package/dist/ai/src/types/delegation-contracts.d.ts.map +1 -0
- package/dist/ai/src/types/delegation-contracts.js +17 -0
- package/dist/ai/src/types/delegation-contracts.js.map +1 -0
- package/dist/ai/src/validation-pipeline-integration.d.ts +266 -0
- package/dist/ai/src/validation-pipeline-integration.d.ts.map +1 -0
- package/dist/ai/src/validation-pipeline-integration.js +695 -0
- package/dist/ai/src/validation-pipeline-integration.js.map +1 -0
- package/dist/ai/src/verification/multi-modal-formatters.d.ts +57 -0
- package/dist/ai/src/verification/multi-modal-formatters.d.ts.map +1 -0
- package/dist/ai/src/verification/multi-modal-formatters.js +655 -0
- package/dist/ai/src/verification/multi-modal-formatters.js.map +1 -0
- package/dist/ai/src/verification/output-formatter.d.ts +186 -0
- package/dist/ai/src/verification/output-formatter.d.ts.map +1 -0
- package/dist/ai/src/verification/output-formatter.js +296 -0
- package/dist/ai/src/verification/output-formatter.js.map +1 -0
- package/dist/ai/src/verification/parser-integration.d.ts +137 -0
- package/dist/ai/src/verification/parser-integration.d.ts.map +1 -0
- package/dist/ai/src/verification/parser-integration.js +273 -0
- package/dist/ai/src/verification/parser-integration.js.map +1 -0
- package/dist/ai/types/agent-capabilities.d.ts +387 -0
- package/dist/ai/types/agent-capabilities.d.ts.map +1 -0
- package/dist/ai/types/agent-capabilities.js +32 -0
- package/dist/ai/types/agent-capabilities.js.map +1 -0
- package/dist/ai/types/delegation-contracts.d.ts +291 -0
- package/dist/ai/types/delegation-contracts.d.ts.map +1 -0
- package/dist/ai/types/delegation-contracts.js +14 -0
- package/dist/ai/types/delegation-contracts.js.map +1 -0
- package/dist/ai/types/index.d.ts +4 -1
- package/dist/ai/types/index.d.ts.map +1 -1
- package/dist/ai/types/index.js +4 -1
- package/dist/ai/types/index.js.map +1 -1
- package/dist/ai/types/permission-tokens.d.ts +365 -0
- package/dist/ai/types/permission-tokens.d.ts.map +1 -0
- package/dist/ai/types/permission-tokens.js +13 -0
- package/dist/ai/types/permission-tokens.js.map +1 -0
- package/dist/ai/types/security-middleware.d.ts +130 -0
- package/dist/ai/types/security-middleware.d.ts.map +1 -0
- package/dist/ai/types/security-middleware.js +13 -0
- package/dist/ai/types/security-middleware.js.map +1 -0
- package/dist/ai/utils/storage.d.ts.map +1 -1
- package/dist/ai/utils/storage.js +6 -3
- package/dist/ai/utils/storage.js.map +1 -1
- package/dist/ai/validation/validation-framework.js +1 -1
- package/dist/ai/verification/policy-framework.d.ts +161 -0
- package/dist/ai/verification/policy-framework.d.ts.map +1 -0
- package/dist/ai/verification/policy-framework.js +436 -0
- package/dist/ai/verification/policy-framework.js.map +1 -0
- package/package.json +56 -6
|
@@ -0,0 +1,691 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DCYFR Agent Capability Manifest Generator
|
|
3
|
+
* TLP:CLEAR
|
|
4
|
+
*
|
|
5
|
+
* Generates capability manifests for DCYFR agents by analyzing agent definitions
|
|
6
|
+
* and creating structured capability declarations for delegation framework.
|
|
7
|
+
*
|
|
8
|
+
* @version 1.0.0
|
|
9
|
+
* @date 2026-02-13
|
|
10
|
+
* @module dcyfr-ai/capability-manifest-generator
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Capability mapping for common agent functions - exactly 15 capability types
|
|
14
|
+
*/
|
|
15
|
+
const CAPABILITY_DATABASE = {
|
|
16
|
+
testing: {
|
|
17
|
+
capability_id: 'testing',
|
|
18
|
+
name: 'Testing',
|
|
19
|
+
description: 'test generation, execution, and quality assurance',
|
|
20
|
+
confidence_level: 0.88,
|
|
21
|
+
completion_time_estimate_ms: 45000,
|
|
22
|
+
success_rate: 0.92,
|
|
23
|
+
successful_completions: 75,
|
|
24
|
+
resource_requirements: {
|
|
25
|
+
memory_mb: 512,
|
|
26
|
+
cpu_cores: 0.7,
|
|
27
|
+
dependencies: ['vitest', '@testing-library/react'],
|
|
28
|
+
},
|
|
29
|
+
supported_patterns: ['Unit tests', 'Integration tests', 'E2E testing'],
|
|
30
|
+
limitations: ['Requires test framework setup'],
|
|
31
|
+
tlp_clearance: 'TLP:CLEAR',
|
|
32
|
+
tags: ['testing', 'quality', 'validation'],
|
|
33
|
+
last_updated: '2026-02-15T10:00:00Z',
|
|
34
|
+
},
|
|
35
|
+
debugging: {
|
|
36
|
+
capability_id: 'debugging',
|
|
37
|
+
name: 'Debugging',
|
|
38
|
+
description: 'Error diagnosis, troubleshooting, and bug resolution',
|
|
39
|
+
confidence_level: 0.85,
|
|
40
|
+
completion_time_estimate_ms: 60000,
|
|
41
|
+
success_rate: 0.89,
|
|
42
|
+
successful_completions: 120,
|
|
43
|
+
resource_requirements: {
|
|
44
|
+
memory_mb: 256,
|
|
45
|
+
cpu_cores: 0.6,
|
|
46
|
+
dependencies: ['typescript'],
|
|
47
|
+
},
|
|
48
|
+
supported_patterns: ['Error analysis', 'Stack trace investigation', 'Bug fixes'],
|
|
49
|
+
limitations: ['Complex race conditions may be challenging'],
|
|
50
|
+
tlp_clearance: 'TLP:CLEAR',
|
|
51
|
+
tags: ['debugging', 'troubleshooting', 'analysis'],
|
|
52
|
+
last_updated: '2026-02-15T10:00:00Z',
|
|
53
|
+
},
|
|
54
|
+
code_review: {
|
|
55
|
+
capability_id: 'code_review',
|
|
56
|
+
name: 'Code Review',
|
|
57
|
+
description: 'Code quality assessment, pattern compliance, and review feedback',
|
|
58
|
+
confidence_level: 0.91,
|
|
59
|
+
completion_time_estimate_ms: 30000,
|
|
60
|
+
success_rate: 0.94,
|
|
61
|
+
successful_completions: 200,
|
|
62
|
+
resource_requirements: {
|
|
63
|
+
memory_mb: 256,
|
|
64
|
+
cpu_cores: 0.5,
|
|
65
|
+
dependencies: ['eslint', 'typescript'],
|
|
66
|
+
},
|
|
67
|
+
supported_patterns: ['Code quality checks', 'Pattern validation', 'Security reviews'],
|
|
68
|
+
limitations: ['Best practices knowledge required'],
|
|
69
|
+
tlp_clearance: 'TLP:CLEAR',
|
|
70
|
+
tags: ['review', 'quality', 'standards'],
|
|
71
|
+
last_updated: '2026-02-15T10:00:00Z',
|
|
72
|
+
},
|
|
73
|
+
architecture: {
|
|
74
|
+
capability_id: 'architecture',
|
|
75
|
+
name: 'Architecture',
|
|
76
|
+
description: 'System design, architectural patterns, and structural guidance',
|
|
77
|
+
confidence_level: 0.89,
|
|
78
|
+
completion_time_estimate_ms: 90000,
|
|
79
|
+
success_rate: 0.91,
|
|
80
|
+
successful_completions: 85,
|
|
81
|
+
resource_requirements: {
|
|
82
|
+
memory_mb: 512,
|
|
83
|
+
cpu_cores: 0.8,
|
|
84
|
+
dependencies: ['typescript'],
|
|
85
|
+
},
|
|
86
|
+
supported_patterns: ['System design', 'Pattern architecture', 'SOLID principles'],
|
|
87
|
+
limitations: ['Domain expertise may vary'],
|
|
88
|
+
tlp_clearance: 'TLP:AMBER',
|
|
89
|
+
tags: ['architecture', 'design', 'patterns'],
|
|
90
|
+
last_updated: '2026-02-15T10:00:00Z',
|
|
91
|
+
},
|
|
92
|
+
security: {
|
|
93
|
+
capability_id: 'security',
|
|
94
|
+
name: 'Security',
|
|
95
|
+
description: 'Security vulnerability detection and OWASP compliance',
|
|
96
|
+
confidence_level: 0.85,
|
|
97
|
+
completion_time_estimate_ms: 60000,
|
|
98
|
+
success_rate: 0.91,
|
|
99
|
+
successful_completions: 50,
|
|
100
|
+
resource_requirements: {
|
|
101
|
+
memory_mb: 512,
|
|
102
|
+
cpu_cores: 0.8,
|
|
103
|
+
dependencies: ['eslint-plugin-security'],
|
|
104
|
+
},
|
|
105
|
+
supported_patterns: ['OWASP compliance', 'Vulnerability scanning', 'Security audits'],
|
|
106
|
+
limitations: ['Cannot detect all zero-day vulnerabilities'],
|
|
107
|
+
tlp_clearance: 'TLP:AMBER',
|
|
108
|
+
tags: ['security', 'owasp', 'vulnerability'],
|
|
109
|
+
last_updated: '2026-02-15T10:00:00Z',
|
|
110
|
+
},
|
|
111
|
+
performance_optimization: {
|
|
112
|
+
capability_id: 'performance_optimization',
|
|
113
|
+
name: 'Performance Optimization',
|
|
114
|
+
description: 'Performance analysis, optimization, and monitoring',
|
|
115
|
+
confidence_level: 0.83,
|
|
116
|
+
completion_time_estimate_ms: 90000,
|
|
117
|
+
success_rate: 0.87,
|
|
118
|
+
successful_completions: 65,
|
|
119
|
+
resource_requirements: {
|
|
120
|
+
memory_mb: 512,
|
|
121
|
+
cpu_cores: 0.9,
|
|
122
|
+
dependencies: ['webpack-bundle-analyzer'],
|
|
123
|
+
},
|
|
124
|
+
supported_patterns: ['Bundle optimization', 'Runtime performance', 'Memory profiling'],
|
|
125
|
+
limitations: ['Platform-specific optimizations may vary'],
|
|
126
|
+
tlp_clearance: 'TLP:CLEAR',
|
|
127
|
+
tags: ['performance', 'optimization', 'profiling'],
|
|
128
|
+
last_updated: '2026-02-15T10:00:00Z',
|
|
129
|
+
},
|
|
130
|
+
documentation: {
|
|
131
|
+
capability_id: 'documentation',
|
|
132
|
+
name: 'Documentation',
|
|
133
|
+
description: 'Technical documentation, API docs, and user guides',
|
|
134
|
+
confidence_level: 0.90,
|
|
135
|
+
completion_time_estimate_ms: 45000,
|
|
136
|
+
success_rate: 0.93,
|
|
137
|
+
successful_completions: 110,
|
|
138
|
+
resource_requirements: {
|
|
139
|
+
memory_mb: 256,
|
|
140
|
+
cpu_cores: 0.4,
|
|
141
|
+
},
|
|
142
|
+
supported_patterns: ['API documentation', 'User guides', 'Technical specs'],
|
|
143
|
+
limitations: ['Domain knowledge required'],
|
|
144
|
+
tlp_clearance: 'TLP:CLEAR',
|
|
145
|
+
tags: ['documentation', 'guides', 'specs'],
|
|
146
|
+
last_updated: '2026-02-15T10:00:00Z',
|
|
147
|
+
},
|
|
148
|
+
api_design: {
|
|
149
|
+
capability_id: 'api_design',
|
|
150
|
+
name: 'API Design',
|
|
151
|
+
description: 'RESTful API design, GraphQL schemas, and endpoint architecture',
|
|
152
|
+
confidence_level: 0.86,
|
|
153
|
+
completion_time_estimate_ms: 60000,
|
|
154
|
+
success_rate: 0.89,
|
|
155
|
+
successful_completions: 75,
|
|
156
|
+
resource_requirements: {
|
|
157
|
+
memory_mb: 256,
|
|
158
|
+
cpu_cores: 0.6,
|
|
159
|
+
dependencies: ['typescript'],
|
|
160
|
+
},
|
|
161
|
+
supported_patterns: ['REST API design', 'GraphQL schemas', 'OpenAPI specs'],
|
|
162
|
+
limitations: ['Business logic constraints may apply'],
|
|
163
|
+
tlp_clearance: 'TLP:AMBER',
|
|
164
|
+
tags: ['api', 'design', 'rest', 'graphql'],
|
|
165
|
+
last_updated: '2026-02-15T10:00:00Z',
|
|
166
|
+
},
|
|
167
|
+
database_design: {
|
|
168
|
+
capability_id: 'database_design',
|
|
169
|
+
name: 'Database Design',
|
|
170
|
+
description: 'Database schema design, query optimization, and data modeling',
|
|
171
|
+
confidence_level: 0.84,
|
|
172
|
+
completion_time_estimate_ms: 90000,
|
|
173
|
+
success_rate: 0.88,
|
|
174
|
+
successful_completions: 55,
|
|
175
|
+
resource_requirements: {
|
|
176
|
+
memory_mb: 512,
|
|
177
|
+
cpu_cores: 0.7,
|
|
178
|
+
dependencies: ['postgresql'],
|
|
179
|
+
},
|
|
180
|
+
supported_patterns: ['Schema design', 'Query optimization', 'Data modeling'],
|
|
181
|
+
limitations: ['Database-specific features may vary'],
|
|
182
|
+
tlp_clearance: 'TLP:AMBER',
|
|
183
|
+
tags: ['database', 'schema', 'sql', 'modeling'],
|
|
184
|
+
last_updated: '2026-02-15T10:00:00Z',
|
|
185
|
+
},
|
|
186
|
+
devops: {
|
|
187
|
+
capability_id: 'devops',
|
|
188
|
+
name: 'DevOps',
|
|
189
|
+
description: 'CI/CD, containerization, deployment, and infrastructure automation',
|
|
190
|
+
confidence_level: 0.81,
|
|
191
|
+
completion_time_estimate_ms: 120000,
|
|
192
|
+
success_rate: 0.85,
|
|
193
|
+
successful_completions: 45,
|
|
194
|
+
resource_requirements: {
|
|
195
|
+
memory_mb: 512,
|
|
196
|
+
cpu_cores: 0.8,
|
|
197
|
+
dependencies: ['docker'],
|
|
198
|
+
},
|
|
199
|
+
supported_patterns: ['Docker containers', 'GitHub Actions', 'Deployment automation'],
|
|
200
|
+
limitations: ['Infrastructure knowledge required'],
|
|
201
|
+
tlp_clearance: 'TLP:AMBER',
|
|
202
|
+
tags: ['devops', 'cicd', 'docker', 'deployment'],
|
|
203
|
+
last_updated: '2026-02-15T10:00:00Z',
|
|
204
|
+
},
|
|
205
|
+
design_token_compliance: {
|
|
206
|
+
capability_id: 'design_token_compliance',
|
|
207
|
+
name: 'Design Token Compliance',
|
|
208
|
+
description: 'Enforces 95%+ design token compliance in dcyfr-labs components',
|
|
209
|
+
confidence_level: 0.94,
|
|
210
|
+
completion_time_estimate_ms: 30000,
|
|
211
|
+
success_rate: 0.96,
|
|
212
|
+
successful_completions: 200,
|
|
213
|
+
resource_requirements: {
|
|
214
|
+
memory_mb: 256,
|
|
215
|
+
cpu_cores: 0.5,
|
|
216
|
+
dependencies: ['design-tokens', 'tailwindcss'],
|
|
217
|
+
},
|
|
218
|
+
supported_patterns: [
|
|
219
|
+
'SPACING token validation',
|
|
220
|
+
'TYPOGRAPHY token enforcement',
|
|
221
|
+
'SEMANTIC_COLORS compliance',
|
|
222
|
+
'Hardcoded value detection',
|
|
223
|
+
'Token validation scripts',
|
|
224
|
+
],
|
|
225
|
+
limitations: ['dcyfr-labs specific', 'Requires design token system'],
|
|
226
|
+
tlp_clearance: 'TLP:AMBER',
|
|
227
|
+
tags: ['design', 'tokens', 'compliance', 'dcyfr', 'ui'],
|
|
228
|
+
last_updated: '2026-02-15T10:00:00Z',
|
|
229
|
+
},
|
|
230
|
+
pagelayout_architecture: {
|
|
231
|
+
capability_id: 'pagelayout_architecture',
|
|
232
|
+
name: 'PageLayout Architecture',
|
|
233
|
+
description: 'Enforces 90% PageLayout compliance across dcyfr-labs pages',
|
|
234
|
+
confidence_level: 0.91,
|
|
235
|
+
completion_time_estimate_ms: 25000,
|
|
236
|
+
success_rate: 0.94,
|
|
237
|
+
successful_completions: 150,
|
|
238
|
+
resource_requirements: {
|
|
239
|
+
memory_mb: 256,
|
|
240
|
+
cpu_cores: 0.4,
|
|
241
|
+
dependencies: ['react', 'next.js'],
|
|
242
|
+
},
|
|
243
|
+
supported_patterns: [
|
|
244
|
+
'PageLayout component usage',
|
|
245
|
+
'PageHero implementation',
|
|
246
|
+
'ArchiveLayout patterns',
|
|
247
|
+
'ArticleLayout patterns',
|
|
248
|
+
'Layout selection rules (90% PageLayout)',
|
|
249
|
+
],
|
|
250
|
+
limitations: ['dcyfr-labs specific', 'Requires layout system knowledge'],
|
|
251
|
+
tlp_clearance: 'TLP:AMBER',
|
|
252
|
+
tags: ['layout', 'architecture', 'pagelayout', 'dcyfr', 'react'],
|
|
253
|
+
last_updated: '2026-02-15T10:00:00Z',
|
|
254
|
+
},
|
|
255
|
+
production_testing: {
|
|
256
|
+
capability_id: 'production_testing',
|
|
257
|
+
name: 'Production Testing Excellence',
|
|
258
|
+
description: 'Achieves 99%+ test pass rate for production environments',
|
|
259
|
+
confidence_level: 0.93,
|
|
260
|
+
completion_time_estimate_ms: 60000,
|
|
261
|
+
success_rate: 0.98,
|
|
262
|
+
successful_completions: 300,
|
|
263
|
+
resource_requirements: {
|
|
264
|
+
memory_mb: 512,
|
|
265
|
+
cpu_cores: 0.8,
|
|
266
|
+
dependencies: ['vitest', 'playwright', '@testing-library/react'],
|
|
267
|
+
},
|
|
268
|
+
supported_patterns: [
|
|
269
|
+
'99%+ test pass rate maintenance',
|
|
270
|
+
'Production test strategies',
|
|
271
|
+
'E2E test automation',
|
|
272
|
+
'Quality gate enforcement',
|
|
273
|
+
'Test coverage reporting',
|
|
274
|
+
],
|
|
275
|
+
limitations: ['Requires comprehensive test infrastructure'],
|
|
276
|
+
tlp_clearance: 'TLP:AMBER',
|
|
277
|
+
tags: ['testing', 'production', 'quality', 'e2e', 'coverage'],
|
|
278
|
+
last_updated: '2026-02-15T10:00:00Z',
|
|
279
|
+
},
|
|
280
|
+
content_creation_seo: {
|
|
281
|
+
capability_id: 'content_creation_seo',
|
|
282
|
+
name: 'Content Creation & SEO',
|
|
283
|
+
description: 'Creates SEO-optimized blog content and marketing materials',
|
|
284
|
+
confidence_level: 0.89,
|
|
285
|
+
completion_time_estimate_ms: 180000,
|
|
286
|
+
success_rate: 0.91,
|
|
287
|
+
successful_completions: 120,
|
|
288
|
+
resource_requirements: {
|
|
289
|
+
memory_mb: 256,
|
|
290
|
+
cpu_cores: 0.6,
|
|
291
|
+
network_mbps: 3,
|
|
292
|
+
},
|
|
293
|
+
supported_patterns: [
|
|
294
|
+
'MDX blog post creation',
|
|
295
|
+
'SEO optimization techniques',
|
|
296
|
+
'Meta tag generation',
|
|
297
|
+
'Schema.org structured data',
|
|
298
|
+
'Content marketing strategies',
|
|
299
|
+
],
|
|
300
|
+
limitations: ['Requires content guidelines', 'Subject matter expertise varies'],
|
|
301
|
+
tlp_clearance: 'TLP:GREEN',
|
|
302
|
+
tags: ['content', 'seo', 'blog', 'marketing', 'mdx'],
|
|
303
|
+
last_updated: '2026-02-15T10:00:00Z',
|
|
304
|
+
},
|
|
305
|
+
nextjs_architecture: {
|
|
306
|
+
capability_id: 'nextjs_architecture',
|
|
307
|
+
name: 'Next.js Architecture',
|
|
308
|
+
description: 'Next.js App Router, SSR, ISR, and advanced Next.js patterns',
|
|
309
|
+
confidence_level: 0.88,
|
|
310
|
+
completion_time_estimate_ms: 45000,
|
|
311
|
+
success_rate: 0.92,
|
|
312
|
+
successful_completions: 95,
|
|
313
|
+
resource_requirements: {
|
|
314
|
+
memory_mb: 512,
|
|
315
|
+
cpu_cores: 0.7,
|
|
316
|
+
dependencies: ['next', 'react'],
|
|
317
|
+
},
|
|
318
|
+
supported_patterns: [
|
|
319
|
+
'App Router architecture',
|
|
320
|
+
'Server Components optimization',
|
|
321
|
+
'ISR implementation',
|
|
322
|
+
'Middleware patterns',
|
|
323
|
+
'Dynamic routing strategies',
|
|
324
|
+
],
|
|
325
|
+
limitations: ['Version-specific features', 'Deployment considerations'],
|
|
326
|
+
tlp_clearance: 'TLP:CLEAR',
|
|
327
|
+
tags: ['nextjs', 'architecture', 'ssr', 'app-router', 'react'],
|
|
328
|
+
last_updated: '2026-02-15T10:00:00Z',
|
|
329
|
+
},
|
|
330
|
+
};
|
|
331
|
+
const AGENT_CAPABILITY_MAPPING = {
|
|
332
|
+
'dcyfr': ['code_review', 'design_token_compliance', 'testing', 'architecture', 'security'],
|
|
333
|
+
'dcyfr-quick-fix': ['code_review', 'architecture', 'design_token_compliance'],
|
|
334
|
+
'dcyfr-test-specialist': ['testing', 'architecture', 'code_review'],
|
|
335
|
+
'dcyfr-security-specialist': ['security', 'architecture', 'code_review'],
|
|
336
|
+
'dcyfr-performance-specialist': ['performance_optimization', 'code_review', 'architecture'],
|
|
337
|
+
'dcyfr-react-performance': ['performance_optimization', 'code_review'],
|
|
338
|
+
'dcyfr-content-creator': ['content_creation_seo', 'architecture'],
|
|
339
|
+
'dcyfr-content-editor': ['content_creation_seo'],
|
|
340
|
+
'dcyfr-seo-specialist': ['content_creation_seo', 'performance_optimization'],
|
|
341
|
+
'dcyfr-content-marketer': ['content_creation_seo'],
|
|
342
|
+
'dcyfr-design-specialist': ['design_token_compliance', 'code_review'],
|
|
343
|
+
'dcyfr-ui-ux-designer': ['design_token_compliance', 'code_review'],
|
|
344
|
+
'dcyfr-accessibility-specialist': ['design_token_compliance', 'code_review'],
|
|
345
|
+
'dcyfr-nextjs-expert': ['nextjs_architecture', 'code_review', 'performance_optimization'],
|
|
346
|
+
'dcyfr-mcp-expert': ['code_review', 'architecture'],
|
|
347
|
+
'dcyfr-mcp-server-architect': ['architecture', 'security'],
|
|
348
|
+
'dcyfr-prompt-engineer': ['security', 'code_review'],
|
|
349
|
+
'DCYFR': ['design_token_compliance', 'pagelayout_architecture', 'production_testing', 'content_creation_seo', 'nextjs_architecture', 'code_review', 'architecture', 'performance_optimization', 'security'],
|
|
350
|
+
'accessibility-specialist': ['design_token_compliance', 'production_testing', 'content_creation_seo', 'code_review', 'architecture'],
|
|
351
|
+
'api-documenter': ['documentation', 'api_design', 'code_review'],
|
|
352
|
+
'api-security-audit': ['security', 'api_design', 'code_review'],
|
|
353
|
+
'architecture-modernizer': ['architecture', 'performance_optimization', 'production_testing'],
|
|
354
|
+
'architecture-reviewer': ['architecture', 'code_review', 'design_token_compliance', 'pagelayout_architecture', 'production_testing', 'content_creation_seo', 'nextjs_architecture'],
|
|
355
|
+
'backend-architect': ['architecture', 'api_design', 'database_design', 'performance_optimization'],
|
|
356
|
+
'business-analyst': ['documentation', 'architecture'],
|
|
357
|
+
'changelog-generator': ['documentation', 'code_review'],
|
|
358
|
+
'cloud-architect': ['devops', 'architecture'],
|
|
359
|
+
'code-reviewer': ['code_review', 'production_testing', 'architecture'],
|
|
360
|
+
'command-expert': ['devops', 'production_testing', 'code_review', 'performance_optimization', 'security'],
|
|
361
|
+
'content-creator': ['content_creation_seo', 'design_token_compliance', 'production_testing', 'documentation', 'performance_optimization'],
|
|
362
|
+
'content-editor': ['content_creation_seo', 'production_testing', 'documentation'],
|
|
363
|
+
'content-marketer': ['content_creation_seo', 'documentation'],
|
|
364
|
+
'context-manager': ['documentation', 'architecture'],
|
|
365
|
+
'data-analyst': ['documentation', 'code_review'],
|
|
366
|
+
'data-engineer': ['database_design', 'code_review'],
|
|
367
|
+
'data-scientist': ['code_review', 'testing', 'production_testing'],
|
|
368
|
+
'database-admin': ['database_design', 'devops'],
|
|
369
|
+
'database-architect': ['database_design', 'architecture', 'code_review', 'performance_optimization'],
|
|
370
|
+
'database-optimization': ['database_design', 'performance_optimization'],
|
|
371
|
+
'debugger': ['debugging', 'production_testing'],
|
|
372
|
+
'dependency-manager': ['devops', 'design_token_compliance', 'production_testing', 'content_creation_seo', 'nextjs_architecture', 'performance_optimization', 'security'],
|
|
373
|
+
'deployment-engineer': ['devops', 'architecture'],
|
|
374
|
+
'design-specialist': ['design_token_compliance', 'pagelayout_architecture', 'content_creation_seo', 'code_review', 'architecture'],
|
|
375
|
+
'devops-engineer': ['devops', 'production_testing', 'code_review', 'performance_optimization', 'security'],
|
|
376
|
+
'devops-troubleshooter': ['devops', 'debugging'],
|
|
377
|
+
'documentation-expert': ['documentation', 'production_testing', 'content_creation_seo', 'code_review'],
|
|
378
|
+
'error-detective': ['debugging', 'code_review'],
|
|
379
|
+
'frontend-developer': ['code_review', 'performance_optimization', 'nextjs_architecture'],
|
|
380
|
+
'fullstack-developer': ['code_review', 'production_testing', 'nextjs_architecture', 'performance_optimization', 'architecture'],
|
|
381
|
+
'git-flow-manager': ['devops', 'production_testing', 'code_review'],
|
|
382
|
+
'javascript-pro': ['code_review', 'performance_optimization'],
|
|
383
|
+
'mcp-expert': ['architecture', 'production_testing', 'code_review', 'performance_optimization'],
|
|
384
|
+
'mcp-server-architect': ['architecture', 'production_testing', 'code_review'],
|
|
385
|
+
'ml-engineer': ['code_review', 'production_testing'],
|
|
386
|
+
'mobile-developer': ['code_review', 'production_testing', 'performance_optimization'],
|
|
387
|
+
'network-engineer': ['devops', 'performance_optimization'],
|
|
388
|
+
'nextjs-architecture-expert': ['nextjs_architecture', 'architecture', 'production_testing', 'content_creation_seo', 'code_review', 'performance_optimization'],
|
|
389
|
+
'penetration-tester': ['security', 'production_testing'],
|
|
390
|
+
'performance-profiler': ['performance_optimization', 'production_testing', 'code_review'],
|
|
391
|
+
'performance-specialist': ['performance_optimization', 'design_token_compliance', 'production_testing', 'content_creation_seo', 'code_review'],
|
|
392
|
+
'product-strategist': ['documentation', 'architecture', 'performance_optimization'],
|
|
393
|
+
'prompt-engineer': ['code_review', 'architecture', 'performance_optimization'],
|
|
394
|
+
'python-pro': ['code_review', 'production_testing', 'performance_optimization'],
|
|
395
|
+
'quick-fix': ['code_review', 'design_token_compliance', 'pagelayout_architecture', 'content_creation_seo'],
|
|
396
|
+
'react-performance-optimization': ['performance_optimization', 'code_review', 'nextjs_architecture'],
|
|
397
|
+
'research-orchestrator': ['documentation', 'architecture'],
|
|
398
|
+
'search-specialist': ['code_review', 'performance_optimization'],
|
|
399
|
+
'security-engineer': ['security', 'code_review', 'architecture'],
|
|
400
|
+
'security-specialist': ['security', 'code_review', 'architecture'],
|
|
401
|
+
'seo-specialist': ['content_creation_seo', 'design_token_compliance', 'production_testing', 'code_review', 'performance_optimization', 'security'],
|
|
402
|
+
'task-decomposition-expert': ['architecture', 'documentation'],
|
|
403
|
+
'technical-researcher': ['documentation', 'production_testing', 'code_review'],
|
|
404
|
+
'technical-writer': ['documentation', 'content_creation_seo'],
|
|
405
|
+
'test-automator': ['testing', 'production_testing'],
|
|
406
|
+
'test-engineer': ['testing', 'production_testing', 'code_review', 'security'],
|
|
407
|
+
'test-specialist': ['testing', 'production_testing', 'code_review', 'performance_optimization'],
|
|
408
|
+
'typescript-pro': ['code_review', 'performance_optimization', 'architecture'],
|
|
409
|
+
'ui-ux-designer': ['design_token_compliance', 'production_testing', 'code_review'],
|
|
410
|
+
'unused-code-cleaner': ['code_review', 'production_testing'],
|
|
411
|
+
};
|
|
412
|
+
const CAPABILITY_KEYWORDS = {
|
|
413
|
+
testing: ['test-', 'testing', 'unit-test', 'integration-test', 'e2e-test', 'test-driven'],
|
|
414
|
+
debugging: ['debug', 'troubleshoot', 'diagnos', 'error', 'bug'],
|
|
415
|
+
code_review: ['review', 'code quality', 'lint', 'code-review'],
|
|
416
|
+
architecture: ['architect', 'design pattern', 'solid', 'structural', 'system design'],
|
|
417
|
+
security: ['security', 'owasp', 'vulnerab', 'penetration', 'audit'],
|
|
418
|
+
performance_optimization: ['performance', 'optimiz', 'profil', 'benchmark', 'speed'],
|
|
419
|
+
documentation: ['document', 'technical writ', 'guide', 'strateg'],
|
|
420
|
+
api_design: ['api', 'rest', 'graphql', 'endpoint'],
|
|
421
|
+
database_design: ['database', 'schema', 'sql', 'query', 'postgresql', 'data model'],
|
|
422
|
+
devops: ['devops', 'ci/cd', 'docker', 'deploy', 'infrastructure', 'kubernetes'],
|
|
423
|
+
design_token_compliance: ['design token', 'token compliance', 'spacing', 'typography'],
|
|
424
|
+
pagelayout_architecture: ['pagelayout', 'page layout', 'layout architecture'],
|
|
425
|
+
production_testing: ['production test', 'production-grade', '99%', 'pass rate', 'quality gate'],
|
|
426
|
+
content_creation_seo: ['seo', 'content creation', 'content creato', 'blog post', 'marketing', 'mdx'],
|
|
427
|
+
nextjs_architecture: ['next.js', 'nextjs', 'app router', 'server component', 'ssr', 'isr'],
|
|
428
|
+
};
|
|
429
|
+
function detectCapabilities(name, description) {
|
|
430
|
+
const detected = [];
|
|
431
|
+
const combined = (name + ' ' + description).toLowerCase();
|
|
432
|
+
for (const [capability, keywords] of Object.entries(CAPABILITY_KEYWORDS)) {
|
|
433
|
+
for (const keyword of keywords) {
|
|
434
|
+
if (combined.includes(keyword.toLowerCase())) {
|
|
435
|
+
if (!detected.includes(capability)) {
|
|
436
|
+
detected.push(capability);
|
|
437
|
+
}
|
|
438
|
+
break;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
return detected;
|
|
443
|
+
}
|
|
444
|
+
function extractSpecializationsFromDescription(description) {
|
|
445
|
+
if (!description)
|
|
446
|
+
return [];
|
|
447
|
+
const specializations = [];
|
|
448
|
+
const specPatterns = [
|
|
449
|
+
/specializ(?:es|ing) in\s+(.+?)(?:\.|$)/i,
|
|
450
|
+
/expert in\s+(.+?)(?:\.|$)/i,
|
|
451
|
+
/primary:\s+(.+?)(?:\.|secondary|$)/i,
|
|
452
|
+
];
|
|
453
|
+
for (const pattern of specPatterns) {
|
|
454
|
+
const match = description.match(pattern);
|
|
455
|
+
if (match) {
|
|
456
|
+
const items = match[1].split(/,\s*(?:and\s+)?|\s+and\s+/).map((s) => s.trim()).filter(Boolean);
|
|
457
|
+
specializations.push(...items);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
return [...new Set(specializations)];
|
|
461
|
+
}
|
|
462
|
+
function extractSpecializations(agent) {
|
|
463
|
+
const specializations = [];
|
|
464
|
+
const description = agent.description || agent.manifest.description || '';
|
|
465
|
+
const fromDescription = extractSpecializationsFromDescription(description);
|
|
466
|
+
specializations.push(...fromDescription);
|
|
467
|
+
const name = agent.manifest.name.toLowerCase();
|
|
468
|
+
if (name.includes('design'))
|
|
469
|
+
specializations.push('UI/UX Design');
|
|
470
|
+
if (name.includes('test'))
|
|
471
|
+
specializations.push('Testing');
|
|
472
|
+
if (name.includes('security'))
|
|
473
|
+
specializations.push('Security');
|
|
474
|
+
if (name.includes('performance'))
|
|
475
|
+
specializations.push('Performance');
|
|
476
|
+
if (name.includes('content'))
|
|
477
|
+
specializations.push('Content Creation');
|
|
478
|
+
if (name.includes('accessibility'))
|
|
479
|
+
specializations.push('Accessibility');
|
|
480
|
+
if (name.includes('mcp'))
|
|
481
|
+
specializations.push('MCP Development');
|
|
482
|
+
if (name.includes('prompt'))
|
|
483
|
+
specializations.push('Prompt Engineering');
|
|
484
|
+
if (name.includes('nextjs'))
|
|
485
|
+
specializations.push('Next.js Development');
|
|
486
|
+
if (name.includes('react'))
|
|
487
|
+
specializations.push('React Development');
|
|
488
|
+
const tags = agent.manifest.tags || [];
|
|
489
|
+
if (tags.includes('design-tokens'))
|
|
490
|
+
specializations.push('Design Token Compliance');
|
|
491
|
+
if (tags.includes('testing'))
|
|
492
|
+
specializations.push('Test Automation');
|
|
493
|
+
if (tags.includes('patterns'))
|
|
494
|
+
specializations.push('Architectural Patterns');
|
|
495
|
+
if (tags.includes('enforcement'))
|
|
496
|
+
specializations.push('Pattern Enforcement');
|
|
497
|
+
return [...new Set(specializations)];
|
|
498
|
+
}
|
|
499
|
+
function extractPreferredTaskTypes(agent) {
|
|
500
|
+
const preferred = [];
|
|
501
|
+
const name = agent.manifest.name.toLowerCase();
|
|
502
|
+
if (name.includes('quick-fix'))
|
|
503
|
+
preferred.push('Bug Fixes', 'Small Features');
|
|
504
|
+
if (name.includes('specialist'))
|
|
505
|
+
preferred.push('Complex Analysis', 'Deep Expertise');
|
|
506
|
+
if (name.includes('core') || name === 'dcyfr')
|
|
507
|
+
preferred.push('Full Features', 'Production Code');
|
|
508
|
+
return preferred;
|
|
509
|
+
}
|
|
510
|
+
function extractAvoidedTaskTypes(agent) {
|
|
511
|
+
const avoided = [];
|
|
512
|
+
const name = agent.manifest.name.toLowerCase();
|
|
513
|
+
if (name.includes('design') && !name.includes('dcyfr-design-specialist')) {
|
|
514
|
+
avoided.push('Backend Logic', 'Database Design');
|
|
515
|
+
}
|
|
516
|
+
if (name.includes('content') && !name.includes('specialist')) {
|
|
517
|
+
avoided.push('Technical Implementation', 'Code Review');
|
|
518
|
+
}
|
|
519
|
+
if (name.includes('quick-fix')) {
|
|
520
|
+
avoided.push('Large Features', 'Architecture Changes');
|
|
521
|
+
}
|
|
522
|
+
return avoided;
|
|
523
|
+
}
|
|
524
|
+
function determineMaxConcurrentTasks(agent) {
|
|
525
|
+
const name = agent.manifest.name.toLowerCase();
|
|
526
|
+
if (name === 'dcyfr')
|
|
527
|
+
return 5;
|
|
528
|
+
if (name.includes('quick-fix'))
|
|
529
|
+
return 3;
|
|
530
|
+
if (name.includes('specialist'))
|
|
531
|
+
return 2;
|
|
532
|
+
return 1;
|
|
533
|
+
}
|
|
534
|
+
function calculateInitialReputationScore(agent) {
|
|
535
|
+
let score = 70;
|
|
536
|
+
if (agent.manifest.tier === 'private')
|
|
537
|
+
score += 10;
|
|
538
|
+
if (agent.manifest.category === 'core')
|
|
539
|
+
score += 15;
|
|
540
|
+
if (agent.manifest.qualityGates && agent.manifest.qualityGates.length > 0)
|
|
541
|
+
score += 5;
|
|
542
|
+
return score;
|
|
543
|
+
}
|
|
544
|
+
function adjustConfidenceForAgent(baseConfidence, agentId, capabilityId) {
|
|
545
|
+
const primaryCapabilities = {
|
|
546
|
+
'dcyfr-design-specialist': ['design_token_compliance'],
|
|
547
|
+
'dcyfr-test-specialist': ['testing'],
|
|
548
|
+
'dcyfr-security-specialist': ['security'],
|
|
549
|
+
'dcyfr-performance-specialist': ['performance_optimization'],
|
|
550
|
+
'dcyfr-accessibility-specialist': ['design_token_compliance'],
|
|
551
|
+
'dcyfr-mcp-expert': ['architecture'],
|
|
552
|
+
'dcyfr-prompt-engineer': ['security'],
|
|
553
|
+
'security-engineer': ['security'],
|
|
554
|
+
'test-engineer': ['testing'],
|
|
555
|
+
'database-architect': ['database_design'],
|
|
556
|
+
'devops-engineer': ['devops'],
|
|
557
|
+
'architecture-reviewer': ['architecture'],
|
|
558
|
+
};
|
|
559
|
+
const primaryCaps = primaryCapabilities[agentId] || [];
|
|
560
|
+
if (primaryCaps.includes(capabilityId)) {
|
|
561
|
+
return Math.min(baseConfidence * 1.1, 1.0);
|
|
562
|
+
}
|
|
563
|
+
return baseConfidence;
|
|
564
|
+
}
|
|
565
|
+
function toExtendedCapability(cap, adjustedConfidence) {
|
|
566
|
+
return {
|
|
567
|
+
...cap,
|
|
568
|
+
confidence_level: adjustedConfidence,
|
|
569
|
+
capability: cap.capability_id,
|
|
570
|
+
confidence: adjustedConfidence,
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
export function generateCapabilityManifest(agent) {
|
|
574
|
+
const agentId = agent.manifest.name;
|
|
575
|
+
if (!agentId) {
|
|
576
|
+
throw new Error('Agent manifest must have a name');
|
|
577
|
+
}
|
|
578
|
+
let capabilityIds = AGENT_CAPABILITY_MAPPING[agentId];
|
|
579
|
+
if (!capabilityIds || capabilityIds.length === 0) {
|
|
580
|
+
const description = agent.description || agent.manifest.description || '';
|
|
581
|
+
capabilityIds = detectCapabilities(agentId, description);
|
|
582
|
+
}
|
|
583
|
+
if (capabilityIds.length === 0) {
|
|
584
|
+
capabilityIds = ['code_review'];
|
|
585
|
+
}
|
|
586
|
+
capabilityIds = capabilityIds.filter((id) => CAPABILITY_DATABASE[id]);
|
|
587
|
+
const capabilities = capabilityIds.map((id) => {
|
|
588
|
+
const baseCapability = CAPABILITY_DATABASE[id];
|
|
589
|
+
const adjustedConfidence = adjustConfidenceForAgent(baseCapability.confidence_level, agentId, id);
|
|
590
|
+
return toExtendedCapability(baseCapability, adjustedConfidence);
|
|
591
|
+
});
|
|
592
|
+
const overallConfidence = capabilities.length > 0
|
|
593
|
+
? capabilities.reduce((sum, cap) => sum + cap.confidence_level, 0) / capabilities.length
|
|
594
|
+
: 0;
|
|
595
|
+
const avgCompletionTime = capabilities.length > 0
|
|
596
|
+
? capabilities.reduce((sum, cap) => sum + cap.completion_time_estimate_ms, 0) / capabilities.length
|
|
597
|
+
: 0;
|
|
598
|
+
const totalCompletions = capabilities.reduce((sum, cap) => sum + (cap.successful_completions || 0), 0);
|
|
599
|
+
const specializations = extractSpecializations(agent);
|
|
600
|
+
const preferredTaskTypes = extractPreferredTaskTypes(agent);
|
|
601
|
+
const avoidedTaskTypes = extractAvoidedTaskTypes(agent);
|
|
602
|
+
const now = new Date().toISOString();
|
|
603
|
+
const manifest = {
|
|
604
|
+
agent_id: agentId,
|
|
605
|
+
agent_name: agent.manifest.name,
|
|
606
|
+
version: agent.manifest.version || '1.0.0',
|
|
607
|
+
capabilities: capabilities,
|
|
608
|
+
overall_confidence: Math.round(overallConfidence * 100) / 100,
|
|
609
|
+
availability: 'available',
|
|
610
|
+
current_workload: 0,
|
|
611
|
+
max_concurrent_tasks: determineMaxConcurrentTasks(agent),
|
|
612
|
+
specializations,
|
|
613
|
+
preferred_task_types: preferredTaskTypes,
|
|
614
|
+
avoided_task_types: avoidedTaskTypes,
|
|
615
|
+
reputation_score: calculateInitialReputationScore(agent),
|
|
616
|
+
total_completions: totalCompletions,
|
|
617
|
+
avg_completion_time_ms: Math.round(avgCompletionTime),
|
|
618
|
+
metadata: {
|
|
619
|
+
agent_category: agent.manifest.category,
|
|
620
|
+
agent_tier: agent.manifest.tier,
|
|
621
|
+
agent_model: agent.manifest.model,
|
|
622
|
+
agent_tools: agent.manifest.tools,
|
|
623
|
+
agent_tags: agent.manifest.tags,
|
|
624
|
+
quality_gates: agent.manifest.qualityGates,
|
|
625
|
+
proactive_triggers: agent.manifest.proactiveTriggers,
|
|
626
|
+
},
|
|
627
|
+
created_at: now,
|
|
628
|
+
updated_at: now,
|
|
629
|
+
last_updated: now,
|
|
630
|
+
};
|
|
631
|
+
return manifest;
|
|
632
|
+
}
|
|
633
|
+
export async function generateDcyfrCapabilityManifests() {
|
|
634
|
+
const dcyfrAgentsEntry = '../../../../dcyfr-workspace-agents/packages/agents/dcyfr-agents/index.js';
|
|
635
|
+
const { loadDcyfrAgents } = await import(dcyfrAgentsEntry);
|
|
636
|
+
const agents = await loadDcyfrAgents();
|
|
637
|
+
return agents.map((agent) => generateCapabilityManifest(agent));
|
|
638
|
+
}
|
|
639
|
+
export function validateCapabilityManifest(manifest) {
|
|
640
|
+
const errors = [];
|
|
641
|
+
const warnings = [];
|
|
642
|
+
if (!manifest.agent_id)
|
|
643
|
+
errors.push('Missing agent_id');
|
|
644
|
+
if (!manifest.agent_name)
|
|
645
|
+
errors.push('Missing agent_name');
|
|
646
|
+
if (!manifest.version)
|
|
647
|
+
errors.push('Missing version');
|
|
648
|
+
if (!manifest.capabilities || manifest.capabilities.length === 0) {
|
|
649
|
+
errors.push('Missing or empty capabilities array');
|
|
650
|
+
}
|
|
651
|
+
if (manifest.capabilities) {
|
|
652
|
+
manifest.capabilities.forEach((capability, index) => {
|
|
653
|
+
if (!capability.capability_id)
|
|
654
|
+
errors.push('Capability ' + index + ': missing capability_id');
|
|
655
|
+
if (!capability.name)
|
|
656
|
+
errors.push('Capability ' + index + ': missing name');
|
|
657
|
+
if (!capability.description)
|
|
658
|
+
errors.push('Capability ' + index + ': missing description');
|
|
659
|
+
if (capability.confidence_level < 0 || capability.confidence_level > 1) {
|
|
660
|
+
errors.push('Capability ' + index + ': confidence_level must be 0-1');
|
|
661
|
+
}
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
if (!manifest.overall_confidence)
|
|
665
|
+
warnings.push('Missing overall_confidence');
|
|
666
|
+
if (!manifest.specializations || manifest.specializations.length === 0) {
|
|
667
|
+
warnings.push('Missing specializations');
|
|
668
|
+
}
|
|
669
|
+
if (!manifest.total_completions)
|
|
670
|
+
warnings.push('Missing total_completions');
|
|
671
|
+
return { isValid: errors.length === 0, errors, warnings };
|
|
672
|
+
}
|
|
673
|
+
export class CapabilityManifestGenerator {
|
|
674
|
+
getAvailableCapabilities() {
|
|
675
|
+
return Object.keys(CAPABILITY_DATABASE);
|
|
676
|
+
}
|
|
677
|
+
getCapabilityDescription(capability) {
|
|
678
|
+
const cap = CAPABILITY_DATABASE[capability];
|
|
679
|
+
return cap ? cap.description : undefined;
|
|
680
|
+
}
|
|
681
|
+
generateCapabilityManifest(agent) {
|
|
682
|
+
return generateCapabilityManifest(agent);
|
|
683
|
+
}
|
|
684
|
+
generateManifests(agents) {
|
|
685
|
+
return agents.map((agent) => this.generateCapabilityManifest(agent));
|
|
686
|
+
}
|
|
687
|
+
validateCapabilityManifest(manifest) {
|
|
688
|
+
return validateCapabilityManifest(manifest);
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
//# sourceMappingURL=capability-manifest-generator.js.map
|