agentic-flow 1.9.0 → 1.9.1
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/.claude/agents/analysis/code-analyzer.md +1 -1
- package/.claude/agents/core/coder.md +2 -57
- package/.claude/agents/core/planner.md +1 -53
- package/.claude/agents/core/researcher.md +6 -60
- package/.claude/agents/core/reviewer.md +1 -55
- package/.claude/agents/core/tester.md +1 -54
- package/.claude/agents/goal/goal-planner.md +25 -120
- package/.claude/agents/swarm/hierarchical-coordinator.md +4 -75
- package/.claude/agents/templates/coordinator-swarm-init.md +4 -19
- package/.claude/commands/hooks/overview.md +10 -84
- package/.claude/settings.json +20 -21
- package/.claude/settings.local.json +7 -3
- package/CHANGELOG.md +976 -83
- package/README.md +1 -15
- package/dist/agentdb/tests/frontier-features.test.js +665 -0
- package/dist/cli/federation-cli.d.ts +53 -0
- package/dist/hooks/parallel-validation.js +166 -0
- package/dist/hooks/swarm-learning-optimizer.js +350 -0
- package/{agentic-flow/dist → dist}/proxy/provider-instructions.js +98 -0
- package/dist/reasoningbank/config/reasoningbank-types.ts +57 -0
- package/{agentic-flow/dist → dist}/utils/cli.js +29 -0
- package/docs/.claude-flow/metrics/performance.json +3 -3
- package/docs/.claude-flow/metrics/task-metrics.json +3 -3
- package/docs/guides/MCP-TOOLS.md +850 -1050
- package/package.json +169 -44
- package/validation/docker/Dockerfile.reasoningbank-local +24 -0
- package/validation/docker/Dockerfile.reasoningbank-test +21 -0
- package/validation/docker/README.md +234 -0
- package/validation/docker/docker-compose.yml +29 -0
- package/validation/docker/test-reasoningbank-npx.mjs +442 -0
- package/validation/docker-e2e-validation.sh +212 -0
- package/validation/docker-quic-test.sh +42 -0
- package/validation/docker-quic-validation.sh +60 -0
- package/validation/quic-deep-validation.ts +304 -0
- package/validation/test-quic-integration.ts +243 -0
- package/validation/test-quic-wasm.ts +94 -0
- package/validation/test-regression.mjs +246 -0
- package/validation/test-wasm-e2e.ts +354 -0
- package/validation/test-wasm-integration.ts +99 -0
- package/wasm/quic/agentic_flow_quic.d.ts +37 -0
- package/wasm/quic/agentic_flow_quic_bg.wasm.d.ts +19 -0
- package/wasm/reasoningbank/reasoningbank_wasm.d.ts +41 -0
- package/wasm/reasoningbank/reasoningbank_wasm_bg.wasm.d.ts +20 -0
- package/.claude/agents/goal/code-goal-planner.md +0 -446
- package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +0 -130
- package/.claude/agents/hive-mind/queen-coordinator.md +0 -203
- package/.claude/agents/hive-mind/scout-explorer.md +0 -242
- package/.claude/agents/hive-mind/swarm-memory-manager.md +0 -193
- package/.claude/agents/hive-mind/worker-specialist.md +0 -217
- package/.claude/agents/neural/safla-neural.md +0 -74
- package/.claude/agents/reasoning/README.md +0 -452
- package/.claude/agents/reasoning/adaptive-learner.md +0 -415
- package/.claude/agents/reasoning/context-synthesizer.md +0 -532
- package/.claude/agents/reasoning/experience-curator.md +0 -562
- package/.claude/agents/reasoning/goal-planner.md +0 -73
- package/.claude/agents/reasoning/memory-optimizer.md +0 -579
- package/.claude/agents/reasoning/pattern-matcher.md +0 -591
- package/.claude/agents/reasoning/reasoning-optimized.md +0 -587
- package/.claude/commands/coordination/README.md +0 -9
- package/.claude/commands/coordination/agent-spawn.md +0 -25
- package/.claude/commands/coordination/init.md +0 -44
- package/.claude/commands/coordination/orchestrate.md +0 -43
- package/.claude/commands/coordination/spawn.md +0 -45
- package/.claude/commands/coordination/swarm-init.md +0 -85
- package/.claude/commands/coordination/task-orchestrate.md +0 -25
- package/.claude/commands/memory/README.md +0 -9
- package/.claude/commands/memory/memory-persist.md +0 -25
- package/.claude/commands/memory/memory-search.md +0 -25
- package/.claude/commands/memory/memory-usage.md +0 -25
- package/.claude/commands/memory/neural.md +0 -47
- package/.claude/commands/memory/usage.md +0 -46
- package/.claude/skills/agentdb-advanced/SKILL.md +0 -550
- package/.claude/skills/agentdb-learning/SKILL.md +0 -545
- package/.claude/skills/agentdb-memory-patterns/SKILL.md +0 -339
- package/.claude/skills/agentdb-optimization/SKILL.md +0 -509
- package/.claude/skills/agentdb-vector-search/SKILL.md +0 -339
- package/.claude/skills/flow-nexus-neural/SKILL.md +0 -738
- package/.claude/skills/flow-nexus-platform/SKILL.md +0 -1157
- package/.claude/skills/flow-nexus-swarm/SKILL.md +0 -610
- package/.claude/skills/github-code-review/SKILL.md +0 -1140
- package/.claude/skills/github-multi-repo/SKILL.md +0 -874
- package/.claude/skills/github-project-management/SKILL.md +0 -1277
- package/.claude/skills/github-release-management/SKILL.md +0 -1081
- package/.claude/skills/github-workflow-automation/SKILL.md +0 -1065
- package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
- package/.claude/skills/hooks-automation/SKILL.md +0 -1201
- package/.claude/skills/pair-programming/SKILL.md +0 -1202
- package/.claude/skills/performance-analysis/SKILL.md +0 -563
- package/.claude/skills/reasoningbank-agentdb/SKILL.md +0 -446
- package/.claude/skills/reasoningbank-intelligence/SKILL.md +0 -201
- package/.claude/skills/skill-builder/SKILL.md +0 -910
- package/.claude/skills/sparc-methodology/SKILL.md +0 -1115
- package/.claude/skills/stream-chain/SKILL.md +0 -563
- package/.claude/skills/swarm-advanced/SKILL.md +0 -973
- package/.claude/skills/swarm-orchestration/SKILL.md +0 -179
- package/.claude/skills/verification-quality/SKILL.md +0 -649
- package/.claude/statusline-command.sh +0 -176
- package/.claude-flow/metrics/performance.json +0 -87
- package/.claude-flow/metrics/system-metrics.json +0 -2138
- package/.claude-flow/metrics/task-metrics.json +0 -10
- package/.hive-mind/README.md +0 -43
- package/.hive-mind/config/queens.json +0 -59
- package/.hive-mind/config/workers.json +0 -72
- package/.hive-mind/config.json +0 -111
- package/.hive-mind/hive.db +0 -0
- package/.mcp.json +0 -39
- package/.swarm/memory.db +0 -0
- package/.swarm/memory.db-shm +0 -0
- package/.swarm/memory.db-wal +0 -0
- package/CLAUDE.md +0 -354
- package/agentdb.db +0 -0
- package/agentic-flow/.agentdb-instructions.md +0 -66
- package/agentic-flow/.claude/agents/analysis/code-analyzer.md +0 -209
- package/agentic-flow/.claude/agents/analysis/code-review/analyze-code-quality.md +0 -180
- package/agentic-flow/.claude/agents/architecture/system-design/arch-system-design.md +0 -156
- package/agentic-flow/.claude/agents/base-template-generator.md +0 -42
- package/agentic-flow/.claude/agents/consensus/byzantine-coordinator.md +0 -63
- package/agentic-flow/.claude/agents/consensus/crdt-synchronizer.md +0 -997
- package/agentic-flow/.claude/agents/consensus/gossip-coordinator.md +0 -63
- package/agentic-flow/.claude/agents/consensus/performance-benchmarker.md +0 -851
- package/agentic-flow/.claude/agents/consensus/quorum-manager.md +0 -823
- package/agentic-flow/.claude/agents/consensus/raft-manager.md +0 -63
- package/agentic-flow/.claude/agents/consensus/security-manager.md +0 -622
- package/agentic-flow/.claude/agents/core/coder.md +0 -211
- package/agentic-flow/.claude/agents/core/planner.md +0 -116
- package/agentic-flow/.claude/agents/core/researcher.md +0 -136
- package/agentic-flow/.claude/agents/core/reviewer.md +0 -272
- package/agentic-flow/.claude/agents/core/tester.md +0 -266
- package/agentic-flow/.claude/agents/data/ml/data-ml-model.md +0 -193
- package/agentic-flow/.claude/agents/development/backend/dev-backend-api.md +0 -142
- package/agentic-flow/.claude/agents/devops/ci-cd/ops-cicd-github.md +0 -164
- package/agentic-flow/.claude/agents/documentation/api-docs/docs-api-openapi.md +0 -174
- package/agentic-flow/.claude/agents/flow-nexus/app-store.md +0 -88
- package/agentic-flow/.claude/agents/flow-nexus/authentication.md +0 -69
- package/agentic-flow/.claude/agents/flow-nexus/challenges.md +0 -81
- package/agentic-flow/.claude/agents/flow-nexus/neural-network.md +0 -88
- package/agentic-flow/.claude/agents/flow-nexus/payments.md +0 -83
- package/agentic-flow/.claude/agents/flow-nexus/sandbox.md +0 -76
- package/agentic-flow/.claude/agents/flow-nexus/swarm.md +0 -76
- package/agentic-flow/.claude/agents/flow-nexus/user-tools.md +0 -96
- package/agentic-flow/.claude/agents/flow-nexus/workflow.md +0 -84
- package/agentic-flow/.claude/agents/github/code-review-swarm.md +0 -538
- package/agentic-flow/.claude/agents/github/github-modes.md +0 -173
- package/agentic-flow/.claude/agents/github/issue-tracker.md +0 -319
- package/agentic-flow/.claude/agents/github/multi-repo-swarm.md +0 -553
- package/agentic-flow/.claude/agents/github/pr-manager.md +0 -191
- package/agentic-flow/.claude/agents/github/project-board-sync.md +0 -509
- package/agentic-flow/.claude/agents/github/release-manager.md +0 -367
- package/agentic-flow/.claude/agents/github/release-swarm.md +0 -583
- package/agentic-flow/.claude/agents/github/repo-architect.md +0 -398
- package/agentic-flow/.claude/agents/github/swarm-issue.md +0 -573
- package/agentic-flow/.claude/agents/github/swarm-pr.md +0 -428
- package/agentic-flow/.claude/agents/github/sync-coordinator.md +0 -452
- package/agentic-flow/.claude/agents/github/workflow-automation.md +0 -635
- package/agentic-flow/.claude/agents/goal/agent.md +0 -816
- package/agentic-flow/.claude/agents/goal/goal-planner.md +0 -73
- package/agentic-flow/.claude/agents/optimization/benchmark-suite.md +0 -665
- package/agentic-flow/.claude/agents/optimization/load-balancer.md +0 -431
- package/agentic-flow/.claude/agents/optimization/performance-monitor.md +0 -672
- package/agentic-flow/.claude/agents/optimization/resource-allocator.md +0 -674
- package/agentic-flow/.claude/agents/optimization/topology-optimizer.md +0 -808
- package/agentic-flow/.claude/agents/sparc/architecture.md +0 -472
- package/agentic-flow/.claude/agents/sparc/pseudocode.md +0 -318
- package/agentic-flow/.claude/agents/sparc/refinement.md +0 -525
- package/agentic-flow/.claude/agents/sparc/specification.md +0 -276
- package/agentic-flow/.claude/agents/specialized/mobile/spec-mobile-react-native.md +0 -226
- package/agentic-flow/.claude/agents/swarm/adaptive-coordinator.md +0 -396
- package/agentic-flow/.claude/agents/swarm/hierarchical-coordinator.md +0 -256
- package/agentic-flow/.claude/agents/swarm/mesh-coordinator.md +0 -392
- package/agentic-flow/.claude/agents/templates/automation-smart-agent.md +0 -205
- package/agentic-flow/.claude/agents/templates/coordinator-swarm-init.md +0 -90
- package/agentic-flow/.claude/agents/templates/github-pr-manager.md +0 -177
- package/agentic-flow/.claude/agents/templates/implementer-sparc-coder.md +0 -259
- package/agentic-flow/.claude/agents/templates/memory-coordinator.md +0 -187
- package/agentic-flow/.claude/agents/templates/migration-plan.md +0 -746
- package/agentic-flow/.claude/agents/templates/orchestrator-task.md +0 -139
- package/agentic-flow/.claude/agents/templates/performance-analyzer.md +0 -199
- package/agentic-flow/.claude/agents/templates/sparc-coordinator.md +0 -183
- package/agentic-flow/.claude/agents/testing/unit/tdd-london-swarm.md +0 -244
- package/agentic-flow/.claude/agents/testing/validation/production-validator.md +0 -395
- package/agentic-flow/.claude/commands/agents/README.md +0 -10
- package/agentic-flow/.claude/commands/agents/agent-capabilities.md +0 -21
- package/agentic-flow/.claude/commands/agents/agent-coordination.md +0 -28
- package/agentic-flow/.claude/commands/agents/agent-spawning.md +0 -28
- package/agentic-flow/.claude/commands/agents/agent-types.md +0 -26
- package/agentic-flow/.claude/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +0 -54
- package/agentic-flow/.claude/commands/analysis/README.md +0 -9
- package/agentic-flow/.claude/commands/analysis/bottleneck-detect.md +0 -162
- package/agentic-flow/.claude/commands/analysis/performance-bottlenecks.md +0 -59
- package/agentic-flow/.claude/commands/analysis/performance-report.md +0 -25
- package/agentic-flow/.claude/commands/analysis/token-efficiency.md +0 -45
- package/agentic-flow/.claude/commands/analysis/token-usage.md +0 -25
- package/agentic-flow/.claude/commands/automation/README.md +0 -9
- package/agentic-flow/.claude/commands/automation/auto-agent.md +0 -122
- package/agentic-flow/.claude/commands/automation/self-healing.md +0 -106
- package/agentic-flow/.claude/commands/automation/session-memory.md +0 -90
- package/agentic-flow/.claude/commands/automation/smart-agents.md +0 -73
- package/agentic-flow/.claude/commands/automation/smart-spawn.md +0 -25
- package/agentic-flow/.claude/commands/automation/workflow-select.md +0 -25
- package/agentic-flow/.claude/commands/flow-nexus/app-store.md +0 -124
- package/agentic-flow/.claude/commands/flow-nexus/challenges.md +0 -120
- package/agentic-flow/.claude/commands/flow-nexus/login-registration.md +0 -65
- package/agentic-flow/.claude/commands/flow-nexus/neural-network.md +0 -134
- package/agentic-flow/.claude/commands/flow-nexus/payments.md +0 -116
- package/agentic-flow/.claude/commands/flow-nexus/sandbox.md +0 -83
- package/agentic-flow/.claude/commands/flow-nexus/swarm.md +0 -87
- package/agentic-flow/.claude/commands/flow-nexus/user-tools.md +0 -152
- package/agentic-flow/.claude/commands/flow-nexus/workflow.md +0 -115
- package/agentic-flow/.claude/commands/github/README.md +0 -11
- package/agentic-flow/.claude/commands/github/code-review-swarm.md +0 -514
- package/agentic-flow/.claude/commands/github/code-review.md +0 -25
- package/agentic-flow/.claude/commands/github/github-modes.md +0 -147
- package/agentic-flow/.claude/commands/github/github-swarm.md +0 -121
- package/agentic-flow/.claude/commands/github/issue-tracker.md +0 -292
- package/agentic-flow/.claude/commands/github/issue-triage.md +0 -25
- package/agentic-flow/.claude/commands/github/multi-repo-swarm.md +0 -519
- package/agentic-flow/.claude/commands/github/pr-enhance.md +0 -26
- package/agentic-flow/.claude/commands/github/pr-manager.md +0 -170
- package/agentic-flow/.claude/commands/github/project-board-sync.md +0 -471
- package/agentic-flow/.claude/commands/github/release-manager.md +0 -338
- package/agentic-flow/.claude/commands/github/release-swarm.md +0 -544
- package/agentic-flow/.claude/commands/github/repo-analyze.md +0 -25
- package/agentic-flow/.claude/commands/github/repo-architect.md +0 -367
- package/agentic-flow/.claude/commands/github/swarm-issue.md +0 -482
- package/agentic-flow/.claude/commands/github/swarm-pr.md +0 -285
- package/agentic-flow/.claude/commands/github/sync-coordinator.md +0 -301
- package/agentic-flow/.claude/commands/github/workflow-automation.md +0 -442
- package/agentic-flow/.claude/commands/hive-mind/README.md +0 -17
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-consensus.md +0 -8
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-init.md +0 -18
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-memory.md +0 -8
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-metrics.md +0 -8
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-resume.md +0 -8
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-sessions.md +0 -8
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-spawn.md +0 -21
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-status.md +0 -8
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-stop.md +0 -8
- package/agentic-flow/.claude/commands/hive-mind/hive-mind-wizard.md +0 -8
- package/agentic-flow/.claude/commands/hive-mind/hive-mind.md +0 -27
- package/agentic-flow/.claude/commands/hooks/README.md +0 -11
- package/agentic-flow/.claude/commands/hooks/overview.md +0 -58
- package/agentic-flow/.claude/commands/hooks/post-edit.md +0 -117
- package/agentic-flow/.claude/commands/hooks/post-task.md +0 -112
- package/agentic-flow/.claude/commands/hooks/pre-edit.md +0 -113
- package/agentic-flow/.claude/commands/hooks/pre-task.md +0 -111
- package/agentic-flow/.claude/commands/hooks/session-end.md +0 -118
- package/agentic-flow/.claude/commands/hooks/setup.md +0 -103
- package/agentic-flow/.claude/commands/monitoring/README.md +0 -9
- package/agentic-flow/.claude/commands/monitoring/agent-metrics.md +0 -25
- package/agentic-flow/.claude/commands/monitoring/agents.md +0 -44
- package/agentic-flow/.claude/commands/monitoring/real-time-view.md +0 -25
- package/agentic-flow/.claude/commands/monitoring/status.md +0 -46
- package/agentic-flow/.claude/commands/monitoring/swarm-monitor.md +0 -25
- package/agentic-flow/.claude/commands/optimization/README.md +0 -9
- package/agentic-flow/.claude/commands/optimization/auto-topology.md +0 -62
- package/agentic-flow/.claude/commands/optimization/cache-manage.md +0 -25
- package/agentic-flow/.claude/commands/optimization/parallel-execute.md +0 -25
- package/agentic-flow/.claude/commands/optimization/parallel-execution.md +0 -50
- package/agentic-flow/.claude/commands/optimization/topology-optimize.md +0 -25
- package/agentic-flow/.claude/commands/pair/commands.md +0 -546
- package/agentic-flow/.claude/commands/pair/config.md +0 -510
- package/agentic-flow/.claude/commands/pair/examples.md +0 -512
- package/agentic-flow/.claude/commands/pair/modes.md +0 -348
- package/agentic-flow/.claude/commands/pair/session.md +0 -407
- package/agentic-flow/.claude/commands/pair/start.md +0 -209
- package/agentic-flow/.claude/commands/sparc/analyzer.md +0 -52
- package/agentic-flow/.claude/commands/sparc/architect.md +0 -53
- package/agentic-flow/.claude/commands/sparc/batch-executor.md +0 -54
- package/agentic-flow/.claude/commands/sparc/coder.md +0 -54
- package/agentic-flow/.claude/commands/sparc/debugger.md +0 -54
- package/agentic-flow/.claude/commands/sparc/designer.md +0 -53
- package/agentic-flow/.claude/commands/sparc/documenter.md +0 -54
- package/agentic-flow/.claude/commands/sparc/innovator.md +0 -54
- package/agentic-flow/.claude/commands/sparc/memory-manager.md +0 -54
- package/agentic-flow/.claude/commands/sparc/optimizer.md +0 -54
- package/agentic-flow/.claude/commands/sparc/orchestrator.md +0 -132
- package/agentic-flow/.claude/commands/sparc/researcher.md +0 -54
- package/agentic-flow/.claude/commands/sparc/reviewer.md +0 -54
- package/agentic-flow/.claude/commands/sparc/sparc-modes.md +0 -174
- package/agentic-flow/.claude/commands/sparc/swarm-coordinator.md +0 -54
- package/agentic-flow/.claude/commands/sparc/tdd.md +0 -54
- package/agentic-flow/.claude/commands/sparc/tester.md +0 -54
- package/agentic-flow/.claude/commands/sparc/workflow-manager.md +0 -54
- package/agentic-flow/.claude/commands/stream-chain/pipeline.md +0 -121
- package/agentic-flow/.claude/commands/stream-chain/run.md +0 -70
- package/agentic-flow/.claude/commands/swarm/README.md +0 -15
- package/agentic-flow/.claude/commands/swarm/analysis.md +0 -95
- package/agentic-flow/.claude/commands/swarm/development.md +0 -96
- package/agentic-flow/.claude/commands/swarm/examples.md +0 -168
- package/agentic-flow/.claude/commands/swarm/maintenance.md +0 -102
- package/agentic-flow/.claude/commands/swarm/optimization.md +0 -117
- package/agentic-flow/.claude/commands/swarm/research.md +0 -136
- package/agentic-flow/.claude/commands/swarm/swarm-analysis.md +0 -8
- package/agentic-flow/.claude/commands/swarm/swarm-background.md +0 -8
- package/agentic-flow/.claude/commands/swarm/swarm-init.md +0 -19
- package/agentic-flow/.claude/commands/swarm/swarm-modes.md +0 -8
- package/agentic-flow/.claude/commands/swarm/swarm-monitor.md +0 -8
- package/agentic-flow/.claude/commands/swarm/swarm-spawn.md +0 -19
- package/agentic-flow/.claude/commands/swarm/swarm-status.md +0 -8
- package/agentic-flow/.claude/commands/swarm/swarm-strategies.md +0 -8
- package/agentic-flow/.claude/commands/swarm/swarm.md +0 -27
- package/agentic-flow/.claude/commands/swarm/testing.md +0 -131
- package/agentic-flow/.claude/commands/training/README.md +0 -9
- package/agentic-flow/.claude/commands/training/model-update.md +0 -25
- package/agentic-flow/.claude/commands/training/neural-patterns.md +0 -74
- package/agentic-flow/.claude/commands/training/neural-train.md +0 -25
- package/agentic-flow/.claude/commands/training/pattern-learn.md +0 -25
- package/agentic-flow/.claude/commands/training/specialization.md +0 -63
- package/agentic-flow/.claude/commands/truth/start.md +0 -143
- package/agentic-flow/.claude/commands/verify/check.md +0 -50
- package/agentic-flow/.claude/commands/verify/start.md +0 -128
- package/agentic-flow/.claude/commands/workflows/README.md +0 -9
- package/agentic-flow/.claude/commands/workflows/development.md +0 -78
- package/agentic-flow/.claude/commands/workflows/research.md +0 -63
- package/agentic-flow/.claude/commands/workflows/workflow-create.md +0 -25
- package/agentic-flow/.claude/commands/workflows/workflow-execute.md +0 -25
- package/agentic-flow/.claude/commands/workflows/workflow-export.md +0 -25
- package/agentic-flow/.claude/helpers/checkpoint-manager.sh +0 -251
- package/agentic-flow/.claude/helpers/github-safe.js +0 -106
- package/agentic-flow/.claude/helpers/github-setup.sh +0 -28
- package/agentic-flow/.claude/helpers/quick-start.sh +0 -19
- package/agentic-flow/.claude/helpers/setup-mcp.sh +0 -18
- package/agentic-flow/.claude/helpers/standard-checkpoint-hooks.sh +0 -179
- package/agentic-flow/.claude/settings.json +0 -114
- package/agentic-flow/.claude/settings.local.json +0 -14
- package/agentic-flow/.claude/skills/skill-builder/.claude-flow/metrics/agent-metrics.json +0 -1
- package/agentic-flow/AGENT-BOOSTER-STATUS.md +0 -292
- package/agentic-flow/CHANGELOG-v1.3.0.md +0 -120
- package/agentic-flow/CHANGELOG.md +0 -1023
- package/agentic-flow/COMPLETION_REPORT_v1.7.1.md +0 -335
- package/agentic-flow/DOCKER-VERIFICATION.md +0 -207
- package/agentic-flow/IMPLEMENTATION_SUMMARY_v1.7.1.md +0 -241
- package/agentic-flow/NPX_AGENTDB_SETUP.md +0 -175
- package/agentic-flow/PUBLISH_GUIDE.md +0 -438
- package/agentic-flow/PUBLISH_SUMMARY_v1.7.1.md +0 -198
- package/agentic-flow/Python/AddTwoNumbers.py +0 -2
- package/agentic-flow/README.md +0 -577
- package/agentic-flow/RELEASE_NOTES_v1.7.0.md +0 -297
- package/agentic-flow/RELEASE_v1.7.1.md +0 -327
- package/agentic-flow/SUPABASE-INTEGRATION-COMPLETE.md +0 -357
- package/agentic-flow/TESTING_QUICK_START.md +0 -223
- package/agentic-flow/TOOL-EMULATION-INTEGRATION-ISSUE.md +0 -669
- package/agentic-flow/VALIDATION_v1.7.1.md +0 -234
- package/agentic-flow/add_two_numbers.py +0 -2
- package/agentic-flow/agentdb.db +0 -0
- package/agentic-flow/agentic-flow/.claude-flow/metrics/agent-metrics.json +0 -1
- package/agentic-flow/agentic-flow/.claude-flow/metrics/performance.json +0 -87
- package/agentic-flow/agentic-flow/.claude-flow/metrics/task-metrics.json +0 -10
- package/agentic-flow/app/app.py +0 -0
- package/agentic-flow/config/.mcp.json +0 -22
- package/agentic-flow/config/router.config.example.json +0 -224
- package/agentic-flow/config/router.config.json +0 -224
- package/agentic-flow/deployment/.claude-settings.json +0 -14
- package/agentic-flow/docker/claude-agent-sdk/docker/claude-agent-sdk/FASTMCP_SUMMARY.md +0 -369
- package/agentic-flow/docker/claude-agent-sdk/docker/claude-agent-sdk/docs/ARCHITECTURE.md +0 -385
- package/agentic-flow/docker/claude-agent-sdk/docker/claude-agent-sdk/docs/fastmcp-implementation.md +0 -351
- package/agentic-flow/docker/claude-agent-sdk/docker/claude-agent-sdk/docs/fastmcp-quick-start.md +0 -358
- package/agentic-flow/docker/claude-agent-sdk/docker/claude-agent-sdk/src/mcp/fastmcp/README.md +0 -340
- package/agentic-flow/docker/fastmcp-test.Dockerfile +0 -24
- package/agentic-flow/docker/federation-test/.claude-flow/metrics/agent-metrics.json +0 -1
- package/agentic-flow/docker/federation-test/.claude-flow/metrics/performance.json +0 -87
- package/agentic-flow/docker/federation-test/.claude-flow/metrics/task-metrics.json +0 -10
- package/agentic-flow/docker/federation-test/README.md +0 -314
- package/agentic-flow/docker/federation-test/run-test.sh +0 -65
- package/agentic-flow/docker/federation-test/standalone-agent.js +0 -180
- package/agentic-flow/docker/federation-test/standalone-hub.js +0 -85
- package/agentic-flow/docker/federation-test/test-published-hub.js +0 -66
- package/agentic-flow/docker/test-instance/.claude-flow/metrics/agent-metrics.json +0 -1
- package/agentic-flow/docker/test-instance/.claude-flow/metrics/performance.json +0 -87
- package/agentic-flow/docker/test-instance/.claude-flow/metrics/task-metrics.json +0 -10
- package/agentic-flow/docker/test-instance/.env.example +0 -51
- package/agentic-flow/docker/test-instance/COMPREHENSIVE_TEST_RESULTS.md +0 -766
- package/agentic-flow/docker/test-instance/DOCKER_VALIDATION_SUMMARY.md +0 -417
- package/agentic-flow/docker/test-instance/FIX_VALIDATION_REPORT.md +0 -619
- package/agentic-flow/docker/test-instance/INDEX.md +0 -282
- package/agentic-flow/docker/test-instance/QUICK_START.md +0 -217
- package/agentic-flow/docker/test-instance/README.md +0 -266
- package/agentic-flow/docker/test-instance/VALIDATION_REPORT.md +0 -424
- package/agentic-flow/docker/test-instance/test-model-config.md +0 -69
- package/agentic-flow/docker/test-instance/test-runner.sh +0 -91
- package/agentic-flow/docker/test-v1.1.10.dockerfile +0 -12
- package/agentic-flow/docker/test-validation.sh +0 -37
- package/agentic-flow/docker-test.sh +0 -77
- package/agentic-flow/docs/.claude-flow/metrics/agent-metrics.json +0 -1
- package/agentic-flow/docs/.claude-flow/metrics/performance.json +0 -87
- package/agentic-flow/docs/.claude-flow/metrics/task-metrics.json +0 -10
- package/agentic-flow/docs/CLAUDE.md +0 -352
- package/agentic-flow/docs/INDEX.md +0 -279
- package/agentic-flow/docs/LICENSE +0 -21
- package/agentic-flow/docs/architecture/EXECUTIVE_SUMMARY.md +0 -310
- package/agentic-flow/docs/architecture/IMPROVEMENT_PLAN.md +0 -11
- package/agentic-flow/docs/architecture/INTEGRATION-STATUS.md +0 -290
- package/agentic-flow/docs/architecture/MULTI_MODEL_ROUTER_PLAN.md +0 -620
- package/agentic-flow/docs/architecture/PACKAGE_STRUCTURE.md +0 -199
- package/agentic-flow/docs/architecture/QUIC-IMPLEMENTATION-SUMMARY.md +0 -490
- package/agentic-flow/docs/architecture/QUIC-SWARM-INTEGRATION.md +0 -593
- package/agentic-flow/docs/architecture/QUICK_WINS.md +0 -333
- package/agentic-flow/docs/architecture/README.md +0 -15
- package/agentic-flow/docs/architecture/RESEARCH_SUMMARY.md +0 -652
- package/agentic-flow/docs/guides/.claude-flow/metrics/agent-metrics.json +0 -1
- package/agentic-flow/docs/guides/.claude-flow/metrics/performance.json +0 -9
- package/agentic-flow/docs/guides/.claude-flow/metrics/task-metrics.json +0 -10
- package/agentic-flow/docs/guides/ADDING-MCP-SERVERS-CLI.md +0 -515
- package/agentic-flow/docs/guides/ADDING-MCP-SERVERS.md +0 -642
- package/agentic-flow/docs/guides/AGENT-BOOSTER.md +0 -435
- package/agentic-flow/docs/guides/ALTERNATIVE_LLM_MODELS.md +0 -524
- package/agentic-flow/docs/guides/CLAUDE-CODE-INTEGRATION.md +0 -403
- package/agentic-flow/docs/guides/DEPLOYMENT.md +0 -906
- package/agentic-flow/docs/guides/DOCKER_AGENT_USAGE.md +0 -352
- package/agentic-flow/docs/guides/IMPLEMENTATION_EXAMPLES.md +0 -960
- package/agentic-flow/docs/guides/MCP-TOOLS.md +0 -1166
- package/agentic-flow/docs/guides/MODEL-ID-MAPPING.md +0 -193
- package/agentic-flow/docs/guides/MULTI-MODEL-ROUTER.md +0 -702
- package/agentic-flow/docs/guides/NPM-PUBLISH.md +0 -218
- package/agentic-flow/docs/guides/ONNX-PROXY-IMPLEMENTATION.md +0 -254
- package/agentic-flow/docs/guides/ONNX_CLI_USAGE.md +0 -344
- package/agentic-flow/docs/guides/ONNX_OPTIMIZATION_GUIDE.md +0 -665
- package/agentic-flow/docs/guides/OPENROUTER_DEPLOYMENT.md +0 -495
- package/agentic-flow/docs/guides/PROXY-ARCHITECTURE-AND-EXTENSION.md +0 -708
- package/agentic-flow/docs/guides/QUIC-SWARM-QUICKSTART.md +0 -543
- package/agentic-flow/docs/guides/README.md +0 -17
- package/agentic-flow/docs/guides/REASONINGBANK.md +0 -721
- package/agentic-flow/docs/guides/STANDALONE_PROXY_GUIDE.md +0 -437
- package/agentic-flow/docs/guides/agent-sdk.md +0 -234
- package/agentic-flow/docs/reports/QUIC_PHASE1_COMPLETE.md +0 -409
- package/agentic-flow/docs/reports/QUIC_PHASE1_COMPLETION.md +0 -323
- package/agentic-flow/docs/reviews/quic-implementation-review.md +0 -1076
- package/agentic-flow/docs/router/.claude-flow/metrics/agent-metrics.json +0 -1
- package/agentic-flow/docs/router/.claude-flow/metrics/performance.json +0 -9
- package/agentic-flow/docs/router/.claude-flow/metrics/task-metrics.json +0 -10
- package/agentic-flow/examples/PHASE-2-INTEGRATION-GUIDE.md +0 -380
- package/agentic-flow/examples/PHASE-2-TEST-REPORT.md +0 -325
- package/agentic-flow/examples/REGRESSION-TEST-RESULTS.md +0 -334
- package/agentic-flow/examples/TOOL-EMULATION-ARCHITECTURE.md +0 -473
- package/agentic-flow/examples/VALIDATION-SUMMARY.md +0 -323
- package/agentic-flow/examples/agentdb-memory-patterns/.claude-flow/metrics/agent-metrics.json +0 -1
- package/agentic-flow/examples/agentdb-memory-patterns/.claude-flow/metrics/performance.json +0 -87
- package/agentic-flow/examples/agentdb-memory-patterns/.claude-flow/metrics/task-metrics.json +0 -10
- package/agentic-flow/examples/crispr-cas13-pipeline/.github/workflows/ci.yml +0 -341
- package/agentic-flow/examples/crispr-cas13-pipeline/CONTRIBUTING.md +0 -388
- package/agentic-flow/examples/crispr-cas13-pipeline/Cargo.lock +0 -5323
- package/agentic-flow/examples/crispr-cas13-pipeline/Cargo.toml +0 -105
- package/agentic-flow/examples/crispr-cas13-pipeline/DELIVERABLES.md +0 -140
- package/agentic-flow/examples/crispr-cas13-pipeline/LICENSE +0 -32
- package/agentic-flow/examples/crispr-cas13-pipeline/PROJECT_SUMMARY.md +0 -515
- package/agentic-flow/examples/crispr-cas13-pipeline/PUBLISHING_NOTES.md +0 -171
- package/agentic-flow/examples/crispr-cas13-pipeline/PUBLISH_CHECKLIST.md +0 -216
- package/agentic-flow/examples/crispr-cas13-pipeline/README.md +0 -591
- package/agentic-flow/examples/crispr-cas13-pipeline/TEST_SUITE_SUMMARY.md +0 -318
- package/agentic-flow/examples/crispr-cas13-pipeline/benches/alignment_benchmark.rs +0 -207
- package/agentic-flow/examples/crispr-cas13-pipeline/benches/api_benchmark.rs +0 -346
- package/agentic-flow/examples/crispr-cas13-pipeline/benches/comprehensive_benchmarks.rs +0 -362
- package/agentic-flow/examples/crispr-cas13-pipeline/benches/immune_analysis_benchmark.rs +0 -369
- package/agentic-flow/examples/crispr-cas13-pipeline/benches/offtarget_prediction_benchmark.rs +0 -291
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/Cargo.toml +0 -23
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/src/bwa.rs +0 -255
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/src/error.rs +0 -34
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/src/lib.rs +0 -136
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/src/quality.rs +0 -287
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/alignment-engine/tests/alignment_test.rs +0 -230
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/api-service/Cargo.toml +0 -32
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/api-service/src/error.rs +0 -38
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/api-service/src/main.rs +0 -41
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/api-service/src/routes.rs +0 -56
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/api-service/tests/api_test.rs +0 -306
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/Cargo.toml +0 -17
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/error.rs +0 -31
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/expression.rs +0 -313
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/lib.rs +0 -27
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/metadata.rs +0 -302
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/sequencing.rs +0 -240
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/src/targets.rs +0 -281
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/data-models/tests/models_test.rs +0 -155
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/Cargo.toml +0 -24
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/src/deseq.rs +0 -265
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/src/error.rs +0 -28
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/src/lib.rs +0 -10
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/src/normalization.rs +0 -173
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/src/pathways.rs +0 -195
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/immune-analyzer/tests/analysis_test.rs +0 -258
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/Cargo.toml +0 -26
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/src/error.rs +0 -34
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/src/features.rs +0 -272
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/src/lib.rs +0 -72
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/src/ml_model.rs +0 -264
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/src/scoring.rs +0 -292
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/offtarget-predictor/tests/prediction_test.rs +0 -245
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/processing-orchestrator/Cargo.toml +0 -26
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/processing-orchestrator/src/jobs.rs +0 -27
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/processing-orchestrator/src/main.rs +0 -35
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/processing-orchestrator/src/scheduler.rs +0 -24
- package/agentic-flow/examples/crispr-cas13-pipeline/crates/processing-orchestrator/src/workers.rs +0 -17
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/ARCHITECTURAL_DECISIONS.md +0 -429
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/ARCHITECTURE.md +0 -2964
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/ARCHITECTURE_SUMMARY.md +0 -286
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/BENCHMARKS.md +0 -380
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/PSEUDOCODE.md +0 -354
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/REVIEW_REPORT.md +0 -543
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/RIGHTS_PRESERVING_PLATFORM.md +0 -342
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/SECURITY_AUDIT.md +0 -756
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/SPECIFICATION.md +0 -719
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/TESTING_GUIDE.md +0 -575
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/algorithms/README.md +0 -121
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/algorithms/alignment-module.md +0 -868
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/algorithms/expression-module.md +0 -928
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/algorithms/offtarget-module.md +0 -1030
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/algorithms/reporting-module.md +0 -1135
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/api-spec.openapi.yaml +0 -1258
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/architecture-diagrams/c4-component.md +0 -240
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/architecture-diagrams/c4-container.md +0 -223
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/architecture-diagrams/c4-context.md +0 -86
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/architecture-diagrams/sequence-diagrams.md +0 -499
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/data-layer/schema.sql +0 -363
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/data-models.yaml +0 -1639
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/database-schemas.sql +0 -731
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/deployment/alignment-service.yaml +0 -171
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/deployment/api-gateway.yaml +0 -253
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/deployment/namespace.yaml +0 -26
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/deployment/postgresql.yaml +0 -119
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/docker/alignment-service/requirements.txt +0 -18
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/docker/diff-expr-service/requirements.txt +0 -19
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/docker/off-target-service/requirements.txt +0 -27
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/flowcharts/README.md +0 -130
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/flowcharts/alignment-flowchart.md +0 -221
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/flowcharts/expression-flowchart.md +0 -426
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/flowcharts/offtarget-flowchart.md +0 -317
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/flowcharts/reporting-flowchart.md +0 -502
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/mongodb-collections.json +0 -759
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/monitoring/alerts.yml +0 -291
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/monitoring/grafana-dashboard-system-overview.json +0 -236
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/monitoring/prometheus.yml +0 -213
- package/agentic-flow/examples/crispr-cas13-pipeline/docs/security/oauth2-authentication.md +0 -478
- package/agentic-flow/examples/crispr-cas13-pipeline/src/api/gateway.rs +0 -257
- package/agentic-flow/examples/crispr-cas13-pipeline/src/api/mod.rs +0 -1
- package/agentic-flow/examples/crispr-cas13-pipeline/src/audit/logger.rs +0 -345
- package/agentic-flow/examples/crispr-cas13-pipeline/src/audit/mod.rs +0 -1
- package/agentic-flow/examples/crispr-cas13-pipeline/src/governance/mod.rs +0 -1
- package/agentic-flow/examples/crispr-cas13-pipeline/src/governance/policy.rs +0 -339
- package/agentic-flow/examples/crispr-cas13-pipeline/src/lib.rs +0 -227
- package/agentic-flow/examples/crispr-cas13-pipeline/src/main.rs +0 -114
- package/agentic-flow/examples/crispr-cas13-pipeline/src/privacy/differential.rs +0 -303
- package/agentic-flow/examples/crispr-cas13-pipeline/src/privacy/mod.rs +0 -1
- package/agentic-flow/examples/crispr-cas13-pipeline/src/services/grpc.rs +0 -358
- package/agentic-flow/examples/crispr-cas13-pipeline/src/services/mod.rs +0 -1
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/README.md +0 -336
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/TESTING_SUMMARY.md +0 -386
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/TEST_COVERAGE_REPORT.md +0 -347
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/fixtures/mod.rs +0 -400
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/integration/enhanced_integration_tests.rs +0 -432
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/integration_test.rs +0 -340
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/load_testing_k6.js +0 -269
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/load_testing_locust.py +0 -290
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/property/enhanced_property_tests.rs +0 -479
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/property_tests.rs +0 -371
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/rights_preserving_test.rs +0 -251
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/alignment_tests.rs +0 -307
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/api_service_tests.rs +0 -376
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/data_models_tests.rs +0 -283
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/immune_analyzer_tests.rs +0 -374
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/offtarget_tests.rs +0 -334
- package/agentic-flow/examples/crispr-cas13-pipeline/tests/unit/orchestrator_tests.rs +0 -466
- package/agentic-flow/examples/federated-agentdb/README.md +0 -494
- package/agentic-flow/memory-backup.json +0 -48
- package/agentic-flow/package-lock.json +0 -3974
- package/agentic-flow/package.json +0 -182
- package/agentic-flow/patches/agentdb-fix-imports.patch +0 -13
- package/agentic-flow/path/to/file.py +0 -2
- package/agentic-flow/path/to/your/script.py +0 -2
- package/agentic-flow/python/calculation.py +0 -1
- package/agentic-flow/python/operation.py +0 -1
- package/agentic-flow/run-agentdb.sh +0 -8
- package/agentic-flow/supabase/.temp/cli-latest +0 -1
- package/agentic-flow/supabase/.temp/gotrue-version +0 -1
- package/agentic-flow/supabase/.temp/pooler-url +0 -1
- package/agentic-flow/supabase/.temp/postgres-version +0 -1
- package/agentic-flow/supabase/.temp/project-ref +0 -1
- package/agentic-flow/supabase/.temp/rest-version +0 -1
- package/agentic-flow/supabase/.temp/storage-migration +0 -1
- package/agentic-flow/supabase/.temp/storage-version +0 -1
- package/agentic-flow/test-tool-commands.sh +0 -26
- package/agentic-llm/DEPLOYMENT_STATUS_UPDATE.md +0 -30
- package/agentic-llm/MONITOR_SUMMARY.md +0 -116
- package/agentic-llm/benchmarks/DEPLOYMENT_SUMMARY.md +0 -106
- package/agentic-llm/benchmarks/benchmark.py +0 -419
- package/agentic-llm/benchmarks/comparison/optimization_comparison.json +0 -57
- package/agentic-llm/benchmarks/finetune_comparison.py +0 -252
- package/agentic-llm/benchmarks/results/.gitkeep +0 -2
- package/agentic-llm/benchmarks/results/README.md +0 -59
- package/agentic-llm/benchmarks/results/agent-booster-results.json +0 -116
- package/agentic-llm/benchmarks/results/morph-baseline-results.json +0 -168
- package/agentic-llm/benchmarks/run_comparison.py +0 -246
- package/agentic-llm/check-training.sh +0 -27
- package/agentic-llm/claude_sdk/integration.py +0 -335
- package/agentic-llm/cloudrun/cloud_runner.py +0 -390
- package/agentic-llm/cloudrun/deploy.sh +0 -83
- package/agentic-llm/cloudrun/entrypoint.sh +0 -10
- package/agentic-llm/cloudrun/health_server.py +0 -114
- package/agentic-llm/cloudrun/setup-secrets.sh +0 -26
- package/agentic-llm/cloudrun/upload_to_huggingface.py +0 -277
- package/agentic-llm/configs/training_config.json +0 -71
- package/agentic-llm/deployment/DEPLOYMENT_INSTRUCTIONS.md +0 -93
- package/agentic-llm/deployment/fly.toml +0 -52
- package/agentic-llm/docs/BENCHMARK_OPTIMIZATION_GUIDE.md +0 -435
- package/agentic-llm/docs/CLOUD_RUN_DEPLOYMENT.md +0 -368
- package/agentic-llm/docs/DEPLOYMENT_GUIDE.md +0 -475
- package/agentic-llm/docs/DEPLOYMENT_READY.txt +0 -98
- package/agentic-llm/docs/DEPLOYMENT_STATUS.md +0 -389
- package/agentic-llm/docs/DEPLOYMENT_SUMMARY.md +0 -358
- package/agentic-llm/docs/DEPLOY_STATUS.md +0 -69
- package/agentic-llm/docs/FINETUNING_GUIDE.md +0 -483
- package/agentic-llm/docs/INDEX.md +0 -43
- package/agentic-llm/docs/OPTIMIZATION_RESULTS.md +0 -375
- package/agentic-llm/docs/PHI4_FINETUNING_RESEARCH.md +0 -1352
- package/agentic-llm/docs/QUICKSTART.md +0 -124
- package/agentic-llm/docs/README.md +0 -389
- package/agentic-llm/docs/TRAINING_MONITOR.md +0 -77
- package/agentic-llm/docs/USAGE_GUIDE.md +0 -499
- package/agentic-llm/monitor-loop.sh +0 -52
- package/agentic-llm/monitor-training.sh +0 -56
- package/agentic-llm/quantization/quantize.py +0 -255
- package/agentic-llm/requirements.txt +0 -43
- package/agentic-llm/scripts/deploy.sh +0 -120
- package/agentic-llm/scripts/run_benchmarks.sh +0 -53
- package/agentic-llm/scripts/run_finetuning.sh +0 -90
- package/agentic-llm/scripts/test_local.sh +0 -77
- package/agentic-llm/training/data/mcp_tools_dataset.json +0 -140
- package/agentic-llm/training/finetune_mcp.py +0 -306
- package/agentic-llm/training/mcp_dataset.py +0 -395
- package/agentic-llm/training/train.py +0 -347
- package/agentic-llm/validation/data/mcp_validation_set.json +0 -37
- package/agentic-llm/validation/mcp_validator.py +0 -267
- package/agentic-llm/validation/validator.py +0 -319
- package/bench/.claude-flow/metrics/agent-metrics.json +0 -1
- package/bench/.claude-flow/metrics/performance.json +0 -9
- package/bench/.claude-flow/metrics/task-metrics.json +0 -10
- package/bench/BENCHMARK-GUIDE.md +0 -506
- package/bench/BENCHMARK-RESULTS-TEMPLATE.md +0 -253
- package/bench/COMPLETION-SUMMARY.md +0 -409
- package/bench/README.md +0 -217
- package/bench/agents/baseline-agent.js +0 -69
- package/bench/agents/baseline-agent.ts +0 -78
- package/bench/agents/reasoningbank-agent.js +0 -141
- package/bench/agents/reasoningbank-agent.ts +0 -173
- package/bench/benchmark.js +0 -244
- package/bench/benchmark.ts +0 -309
- package/bench/config.json +0 -79
- package/bench/lib/metrics.js +0 -163
- package/bench/lib/metrics.ts +0 -216
- package/bench/lib/report-generator.js +0 -252
- package/bench/lib/report-generator.ts +0 -266
- package/bench/lib/types.js +0 -4
- package/bench/lib/types.ts +0 -117
- package/bench/package.json +0 -36
- package/bench/run-benchmark.sh +0 -67
- package/bench/scenarios/api-design-tasks.js +0 -175
- package/bench/scenarios/api-design-tasks.ts +0 -199
- package/bench/scenarios/coding-tasks.js +0 -199
- package/bench/scenarios/coding-tasks.ts +0 -223
- package/bench/scenarios/debugging-tasks.js +0 -216
- package/bench/scenarios/debugging-tasks.ts +0 -234
- package/bench/scenarios/problem-solving-tasks.js +0 -172
- package/bench/scenarios/problem-solving-tasks.ts +0 -196
- package/bench/tsconfig.json +0 -26
- package/benchmarks/quic-transport.bench.ts +0 -584
- package/claude-flow +0 -34
- package/crates/agentic-flow-quic/.claude-flow/metrics/agent-metrics.json +0 -1
- package/crates/agentic-flow-quic/.claude-flow/metrics/performance.json +0 -87
- package/crates/agentic-flow-quic/.claude-flow/metrics/task-metrics.json +0 -10
- package/crates/agentic-flow-quic/Cargo.toml +0 -66
- package/crates/agentic-flow-quic/IMPLEMENTATION.md +0 -299
- package/crates/agentic-flow-quic/README.md +0 -75
- package/crates/agentic-flow-quic/benches/quic_bench.rs +0 -229
- package/crates/agentic-flow-quic/build.rs +0 -23
- package/crates/agentic-flow-quic/src/client.rs +0 -242
- package/crates/agentic-flow-quic/src/error.rs +0 -100
- package/crates/agentic-flow-quic/src/lib.rs +0 -76
- package/crates/agentic-flow-quic/src/server.rs +0 -213
- package/crates/agentic-flow-quic/src/types.rs +0 -164
- package/crates/agentic-flow-quic/src/wasm.rs +0 -143
- package/crates/agentic-flow-quic/src/wasm_stub.rs +0 -61
- package/crates/agentic-flow-quic/tests/integration_test.rs +0 -254
- package/crates/agentic-flow-quic/wasm-pack-build.sh +0 -17
- package/crates/sqlite-vector-core/.claude-flow/metrics/agent-metrics.json +0 -1
- package/crates/sqlite-vector-core/.claude-flow/metrics/performance.json +0 -87
- package/crates/sqlite-vector-core/.claude-flow/metrics/task-metrics.json +0 -10
- package/crates/sqlite-vector-core/Cargo.lock +0 -942
- package/crates/sqlite-vector-wasm/.claude-flow/metrics/agent-metrics.json +0 -1
- package/crates/sqlite-vector-wasm/.claude-flow/metrics/performance.json +0 -87
- package/crates/sqlite-vector-wasm/.claude-flow/metrics/task-metrics.json +0 -10
- package/crates/sqlite-vector-wasm/Cargo.lock +0 -499
- package/docs/README.md +0 -85
- package/docs/REORGANIZATION_PLAN.md +0 -102
- package/docs/REORGANIZATION_SUMMARY.md +0 -183
- package/docs/agent-integration-guide.md +0 -483
- package/docs/api/mcp-tools/mcp-documentation-review.md +0 -834
- package/docs/api/mcp-tools/mcp-tools-architecture.md +0 -1082
- package/docs/architecture/FEDERATED-AGENTDB-EPHEMERAL-AGENTS.md +0 -680
- package/docs/architecture/FEDERATION-CLI-VALIDATION-REPORT.md +0 -491
- package/docs/features/README.md +0 -87
- package/docs/features/agent-booster/00-INDEX.md +0 -230
- package/docs/features/agent-booster/00-OVERVIEW.md +0 -454
- package/docs/features/agent-booster/01-ARCHITECTURE.md +0 -699
- package/docs/features/agent-booster/02-INTEGRATION.md +0 -771
- package/docs/features/agent-booster/03-BENCHMARKS.md +0 -616
- package/docs/features/agent-booster/04-NPM-SDK.md +0 -673
- package/docs/features/agent-booster/GITHUB-ISSUE.md +0 -523
- package/docs/features/agent-booster/README.md +0 -44
- package/docs/features/agentdb/AGENTDB-INTEGRATION-COMPLETE.md +0 -590
- package/docs/features/agentdb/AGENTDB-LEARNING-SYSTEMS-REPORT.md +0 -783
- package/docs/features/agentdb/AGENTDB-MCP-SECURITY-AUDIT.md +0 -877
- package/docs/features/agentdb/AGENTDB_INTEGRATION_PLAN.md +0 -776
- package/docs/features/agentdb/CAUSAL_RECALL_SEARCH_IMPLEMENTATION.md +0 -141
- package/docs/features/agentdb/CLI_GUIDE.md +0 -826
- package/docs/features/agentdb/CORE_TOOLS_6-10_IMPLEMENTATION.md +0 -376
- package/docs/features/agentdb/LEARNING_TOOLS_6-10.md +0 -474
- package/docs/features/agentdb/MCP_TOOLS_IMPLEMENTATION.md +0 -373
- package/docs/features/agentdb/README.md +0 -86
- package/docs/features/agentdb/TEST_SUITE_SUMMARY.md +0 -222
- package/docs/features/agentdb/VERSION_1.3.0_RELEASE.md +0 -199
- package/docs/features/agentdb/WASM-VECTOR-IMPLEMENTATION.md +0 -422
- package/docs/features/agentdb/agentdb-code-quality-analysis.md +0 -1050
- package/docs/features/agentdb/agentdb-tools-verification.md +0 -498
- package/docs/features/federation/FEDERATION-CLI-INTEGRATION.md +0 -494
- package/docs/features/federation/FEDERATION-IMPLEMENTATION-SUMMARY.md +0 -546
- package/docs/features/federation/FEDERATION-TEST-REPORT.md +0 -504
- package/docs/features/federation/README.md +0 -35
- package/docs/features/quic/BUILD_INSTRUCTIONS.md +0 -220
- package/docs/features/quic/FINAL-VALIDATION.md +0 -336
- package/docs/features/quic/IMPLEMENTATION-COMPLETE-SUMMARY.md +0 -349
- package/docs/features/quic/IMPLEMENTATION_STATUS.md +0 -234
- package/docs/features/quic/PERFORMANCE-VALIDATION.md +0 -282
- package/docs/features/quic/QUIC-INTEGRATION-SUMMARY.md +0 -545
- package/docs/features/quic/QUIC-INTEGRATION.md +0 -502
- package/docs/features/quic/QUIC-README.md +0 -226
- package/docs/features/quic/QUIC-STATUS-OLD.md +0 -513
- package/docs/features/quic/QUIC-STATUS.md +0 -451
- package/docs/features/quic/QUIC-VALIDATION-REPORT.md +0 -370
- package/docs/features/quic/QUIC_FINAL_STATUS.md +0 -399
- package/docs/features/quic/QUIC_IMPLEMENTATION_SUMMARY.md +0 -607
- package/docs/features/quic/README-CONDENSED.md +0 -447
- package/docs/features/quic/README.md +0 -79
- package/docs/features/quic/README_QUIC_PHASE1.md +0 -117
- package/docs/features/quic/WASM-INTEGRATION-COMPLETE.md +0 -382
- package/docs/features/quic/quic-research.md +0 -1415
- package/docs/features/quic/quic-tutorial.md +0 -485
- package/docs/features/reasoningbank/MEMORY_VALIDATION_REPORT.md +0 -417
- package/docs/features/reasoningbank/README.md +0 -64
- package/docs/features/reasoningbank/REASONING-AGENTS.md +0 -482
- package/docs/features/reasoningbank/REASONINGBANK-BENCHMARK-RESULTS.md +0 -166
- package/docs/features/reasoningbank/REASONINGBANK-BENCHMARK.md +0 -396
- package/docs/features/reasoningbank/REASONINGBANK-CLI-INTEGRATION.md +0 -455
- package/docs/features/reasoningbank/REASONINGBANK-DEMO.md +0 -419
- package/docs/features/reasoningbank/REASONINGBANK-VALIDATION.md +0 -532
- package/docs/features/reasoningbank/REASONINGBANK_ARCHITECTURE.md +0 -663
- package/docs/features/reasoningbank/REASONINGBANK_BACKENDS.md +0 -375
- package/docs/features/reasoningbank/REASONINGBANK_FIXES.md +0 -455
- package/docs/features/reasoningbank/REASONINGBANK_IMPLEMENTATION_STATUS.md +0 -478
- package/docs/features/reasoningbank/REASONINGBANK_INTEGRATION_PLAN.md +0 -1059
- package/docs/features/reasoningbank/REASONINGBANK_INVESTIGATION.md +0 -380
- package/docs/features/router/README.md +0 -38
- package/docs/features/router/ROUTER_CONFIG_REFERENCE.md +0 -577
- package/docs/features/router/ROUTER_USER_GUIDE.md +0 -865
- package/docs/features/router/TOP20_MODELS_MATRIX.md +0 -80
- package/docs/guides/MCP-AUTHENTICATION.md +0 -2017
- package/docs/guides/MCP-QUICKSTART.md +0 -521
- package/docs/guides/MCP-TROUBLESHOOTING.md +0 -1602
- package/docs/guides/NPM_STATS_GUIDE.md +0 -407
- package/docs/parallel-execution-implementation.md +0 -525
- package/docs/plans/.claude-flow/metrics/agent-metrics.json +0 -1
- package/docs/plans/.claude-flow/metrics/performance.json +0 -87
- package/docs/plans/.claude-flow/metrics/task-metrics.json +0 -10
- package/docs/releases/archive/GITHUB-ISSUE-ADDENDUM-v1.4.6.md +0 -1529
- package/docs/releases/archive/GITHUB-ISSUE-BUILD-FIX.md +0 -756
- package/docs/releases/archive/GITHUB-ISSUE-REASONINGBANK-BENCHMARK.md +0 -643
- package/docs/releases/archive/GITHUB-ISSUE-v1.4.6.md +0 -1453
- package/docs/releases/archive/GITHUB-ISSUE-v1.5.0.md +0 -468
- package/docs/releases/archive/HOTFIX-v1.2.1.md +0 -315
- package/docs/releases/archive/INTEGRATION-COMPLETE.md +0 -291
- package/docs/releases/archive/MIGRATION-STATUS.md +0 -118
- package/docs/releases/archive/MIGRATION_v1.7.0.md +0 -299
- package/docs/releases/archive/NPM-PUBLISH-GUIDE-v1.2.0.md +0 -440
- package/docs/releases/archive/PUBLICATION_REPORT_v1.5.11.md +0 -421
- package/docs/releases/archive/PUBLISH-COMPLETE-v1.2.0.md +0 -308
- package/docs/releases/archive/README.md +0 -82
- package/docs/releases/archive/RELEASE-v1.2.0.md +0 -339
- package/docs/releases/archive/VALIDATION_REPORT_v1.7.0.md +0 -418
- package/docs/releases/archive/ZERO-BUILD-MIGRATION.md +0 -227
- package/docs/releases/archive/github-issue-agentdb-integration.md +0 -379
- package/docs/releases/archive/v1.4.6-reasoningbank-release.md +0 -541
- package/docs/releases/archive/v1.4.7-bugfix.md +0 -212
- package/docs/releases/archive/v1.5.14-QUIC-TRANSPORT.md +0 -201
- package/docs/releases/archive/v1.5.9-DOCKER-VERIFICATION.md +0 -263
- package/docs/releases/archive/v1.5.9-RELEASE-SUMMARY.md +0 -222
- package/docs/swarm-optimization-report.md +0 -626
- package/index.html +0 -15
- package/memory/agents/README.md +0 -31
- package/memory/claude-flow@alpha-data.json +0 -5
- package/memory/memory-store.json +0 -69
- package/memory/sessions/README.md +0 -32
- package/src/App.css +0 -5
- package/src/App.tsx +0 -15
- package/src/components/AgentTypes.tsx +0 -122
- package/src/components/CoreComponents.tsx +0 -131
- package/src/components/Features.tsx +0 -102
- package/src/components/Footer.tsx +0 -159
- package/src/components/Hero.tsx +0 -87
- package/src/components/PerformanceMetrics.tsx +0 -125
- package/src/components/QuickStart.tsx +0 -178
- package/src/index.css +0 -87
- package/src/main.tsx +0 -10
- package/src/pages/LandingPage.tsx +0 -23
- package/src/transport/quic.ts +0 -258
- package/tailwind.config.ts +0 -79
- package/vite.config.ts +0 -20
- /package/{agentic-flow/.claude → .claude}/agents/MIGRATION_SUMMARY.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/README.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/consensus/README.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/custom/test-long-runner.md +0 -0
- /package/.claude/agents/{reasoning → goal}/agent.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/optimization/README.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/payments/agentic-payments.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/sublinear/consensus-coordinator.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/sublinear/matrix-optimizer.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/sublinear/pagerank-analyzer.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/sublinear/performance-optimizer.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/sublinear/trading-predictor.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/swarm/README.md +0 -0
- /package/{agentic-flow/.claude → .claude}/agents/test-neural.md +0 -0
- /package/{agentic-flow/.claude → .claude}/answer.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/claude-flow-help.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/claude-flow-memory.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/claude-flow-swarm.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/pair/README.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/ask.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/code.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/debug.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/devops.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/docs-writer.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/integration.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/mcp.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/post-deployment-monitoring-mode.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/refinement-optimization-mode.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/security-review.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/sparc.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/spec-pseudocode.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/supabase-admin.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc/tutorial.md +0 -0
- /package/{agentic-flow/.claude → .claude}/commands/sparc.md +0 -0
- /package/{agentic-flow/.claude → .claude}/mcp.json +0 -0
- /package/{agentic-flow/.claude → .claude}/openrouter-models-research.md +0 -0
- /package/{agentic-flow/.claude → .claude}/openrouter-quick-reference.md +0 -0
- /package/{agentic-flow/.claude → .claude}/settings-backup.json +0 -0
- /package/{agentic-flow/.claude → .claude}/settings-optimized.json +0 -0
- /package/{agentic-flow/.claude → .claude}/settings-simple.json +0 -0
- /package/{.claude-flow → .claude/skills/.claude-flow}/metrics/agent-metrics.json +0 -0
- /package/{agentic-flow/.claude → .claude}/skills/.claude-flow/metrics/performance.json +0 -0
- /package/{agentic-flow/.claude → .claude}/skills/.claude-flow/metrics/task-metrics.json +0 -0
- /package/{agentic-flow/.claude/skills → .claude/skills/skill-builder}/.claude-flow/metrics/agent-metrics.json +0 -0
- /package/{agentic-flow/.claude → .claude}/skills/skill-builder/.claude-flow/metrics/performance.json +0 -0
- /package/{agentic-flow/.claude → .claude}/skills/skill-builder/.claude-flow/metrics/task-metrics.json +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/benchmarks/comprehensive-benchmark.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/benchmarks/frontier-benchmark.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/benchmarks/reflexion-benchmark.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/cli/agentdb-cli.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/CausalMemoryGraph.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/CausalRecall.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/EmbeddingService.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/ExplainableRecall.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/NightlyLearner.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/ReflexionMemory.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/SkillLibrary.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/frontier-index.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/controllers/index.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/index.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/optimizations/BatchOperations.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/optimizations/QueryOptimizer.js +0 -0
- /package/{agentic-flow/dist → dist}/agentdb/optimizations/index.js +0 -0
- /package/{agentic-flow/dist → dist}/agents/claudeAgent.js +0 -0
- /package/{agentic-flow/dist → dist}/agents/claudeAgentDirect.js +0 -0
- /package/{agentic-flow/dist → dist}/agents/claudeFlowAgent.js +0 -0
- /package/{agentic-flow/dist → dist}/agents/codeReviewAgent.js +0 -0
- /package/{agentic-flow/dist → dist}/agents/dataAgent.js +0 -0
- /package/{agentic-flow/dist → dist}/agents/directApiAgent.js +0 -0
- /package/{agentic-flow/dist → dist}/agents/webResearchAgent.js +0 -0
- /package/{agentic-flow/dist → dist}/cli/agent-manager.js +0 -0
- /package/{agentic-flow/dist → dist}/cli/claude-code-wrapper.js +0 -0
- /package/{agentic-flow/dist → dist}/cli/config-wizard.js +0 -0
- /package/{agentic-flow/dist → dist}/cli/federation-cli.js +0 -0
- /package/{agentic-flow/dist → dist}/cli/mcp-manager.js +0 -0
- /package/{agentic-flow/dist → dist}/cli/mcp.js +0 -0
- /package/{agentic-flow/dist → dist}/cli/skills-manager.js +0 -0
- /package/{agentic-flow/dist → dist}/cli/update-message.js +0 -0
- /package/{agentic-flow/dist → dist}/cli-proxy.js +0 -0
- /package/{agentic-flow/dist → dist}/cli-standalone-proxy.js +0 -0
- /package/{agentic-flow/dist → dist}/config/claudeFlow.js +0 -0
- /package/{agentic-flow/dist → dist}/config/quic.js +0 -0
- /package/{agentic-flow/dist → dist}/config/tools.js +0 -0
- /package/{agentic-flow/dist → dist}/examples/multi-agent-orchestration.js +0 -0
- /package/{agentic-flow/dist → dist}/examples/use-goal-planner.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/EphemeralAgent.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/FederationHub.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/FederationHubClient.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/FederationHubServer.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/SecurityManager.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/debug/agent-debug-stream.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/debug/debug-stream.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/index.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/integrations/realtime-federation.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/integrations/supabase-adapter-debug.js +0 -0
- /package/{agentic-flow/dist → dist}/federation/integrations/supabase-adapter.js +0 -0
- /package/{agentic-flow/dist → dist}/health.js +0 -0
- /package/{agentic-flow/dist → dist}/index.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/claudeFlowSdkServer.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/servers/claude-flow-sdk.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/servers/http-sse.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/servers/http-streaming-updated.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/servers/poc-stdio.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/servers/stdio-full.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/tools/agent/add-agent.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/tools/agent/add-command.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/tools/agent/execute.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/tools/agent/list.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/tools/agent/parallel.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/tools/swarm/init.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/tools/swarm/orchestrate.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/tools/swarm/spawn.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/fastmcp/types/index.js +0 -0
- /package/{agentic-flow/dist → dist}/mcp/standalone-stdio.js +0 -0
- /package/{agentic-flow/dist → dist}/memory/SharedMemoryPool.js +0 -0
- /package/{agentic-flow/dist → dist}/memory/index.js +0 -0
- /package/{agentic-flow/dist → dist}/proxy/anthropic-to-gemini.js +0 -0
- /package/{agentic-flow/dist → dist}/proxy/anthropic-to-onnx.js +0 -0
- /package/{agentic-flow/dist → dist}/proxy/anthropic-to-openrouter.js +0 -0
- /package/{agentic-flow/dist → dist}/proxy/anthropic-to-requesty.js +0 -0
- /package/{agentic-flow/dist → dist}/proxy/quic-proxy.js +0 -0
- /package/{agentic-flow/dist → dist}/proxy/tool-emulation.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/AdvancedMemory.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/HybridBackend.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/agentdb-adapter.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/backend-selector.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/benchmark.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/config/reasoningbank-types.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/config/reasoningbank.yaml +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/core/consolidate.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/core/database.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/core/distill.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/core/judge.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/core/matts.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/core/memory-engine.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/core/retrieve.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/db/queries.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/db/schema.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/demo-comparison.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/hooks/post-task.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/hooks/pre-task.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/index-new.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/index.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/prompts/distill-failure.json +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/prompts/distill-success.json +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/prompts/judge.json +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/prompts/matts-aggregate.json +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/test-integration.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/test-retrieval.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/test-validation.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/types/index.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/utils/config.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/utils/embeddings.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/utils/mmr.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/utils/pii-scrubber.js +0 -0
- /package/{agentic-flow/dist → dist}/reasoningbank/wasm-adapter.js +0 -0
- /package/{agentic-flow/dist → dist}/router/model-mapping.js +0 -0
- /package/{agentic-flow/dist → dist}/router/providers/anthropic.js +0 -0
- /package/{agentic-flow/dist → dist}/router/providers/gemini.js +0 -0
- /package/{agentic-flow/dist → dist}/router/providers/onnx-local-optimized.js +0 -0
- /package/{agentic-flow/dist → dist}/router/providers/onnx-local.js +0 -0
- /package/{agentic-flow/dist → dist}/router/providers/onnx-phi4.js +0 -0
- /package/{agentic-flow/dist → dist}/router/providers/onnx.js +0 -0
- /package/{agentic-flow/dist → dist}/router/providers/openrouter.js +0 -0
- /package/{agentic-flow/dist → dist}/router/router.js +0 -0
- /package/{agentic-flow/dist → dist}/router/test-integration.js +0 -0
- /package/{agentic-flow/dist → dist}/router/test-onnx-benchmark.js +0 -0
- /package/{agentic-flow/dist → dist}/router/test-onnx-integration.js +0 -0
- /package/{agentic-flow/dist → dist}/router/test-onnx-local.js +0 -0
- /package/{agentic-flow/dist → dist}/router/test-onnx.js +0 -0
- /package/{agentic-flow/dist → dist}/router/test-openrouter.js +0 -0
- /package/{agentic-flow/dist → dist}/router/test-phi4.js +0 -0
- /package/{agentic-flow/dist → dist}/router/types.js +0 -0
- /package/{agentic-flow/dist → dist}/swarm/index.js +0 -0
- /package/{agentic-flow/dist → dist}/swarm/quic-coordinator.js +0 -0
- /package/{agentic-flow/dist → dist}/swarm/transport-router.js +0 -0
- /package/{agentic-flow/dist → dist}/transport/index.js +0 -0
- /package/{agentic-flow/dist → dist}/transport/quic-handshake.js +0 -0
- /package/{agentic-flow/dist → dist}/transport/quic.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/agentBoosterPreprocessor.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/agentLoader.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/agentdb-runtime-patch.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/agentdbCommands.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/logger.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/math.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/mcpCommands.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/model-downloader.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/modelCapabilities.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/modelOptimizer.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/reasoningbankCommands.js +0 -0
- /package/{agentic-flow/dist → dist}/utils/retry.js +0 -0
- /package/{agentic-flow/docs → docs}/AGENTDB_TESTING.md +0 -0
- /package/{agentic-flow/docs → docs}/INTEGRATION-COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/QUIC_FINAL_STATUS.md +0 -0
- /package/{agentic-flow/docs → docs}/README_QUIC_PHASE1.md +0 -0
- /package/{agentic-flow/docs → docs}/TEST-V1.7.8.Dockerfile +0 -0
- /package/{agentic-flow/docs → docs}/TEST-V1.7.9-NODE20.Dockerfile +0 -0
- /package/{agentic-flow/docs → docs}/TEST-V1.7.9.Dockerfile +0 -0
- /package/{agentic-flow/docs → docs}/architecture/FEDERATION-DATA-LIFECYCLE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/COMPLETE_VALIDATION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/DOCKER_MCP_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/DOCKER_OPENROUTER_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/FASTMCP_COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/FASTMCP_INTEGRATION_STATUS.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/FINAL_SDK_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/FINAL_SYSTEM_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/FINAL_VALIDATION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/FIXES-APPLIED-STATUS.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/FLOW-NEXUS-COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/HOTFIX_1.1.7.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/INTEGRATION_CONFIRMED.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/MCP_CLI_TOOLS_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/MCP_INTEGRATION_SUCCESS.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/MCP_PROXY_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/MODEL_VALIDATION_REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_ENV_VARS.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_FINAL_REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_IMPLEMENTATION_COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_IMPLEMENTATION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_OPTIMIZATION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_PHI4_RESEARCH.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_RUNTIME_INTEGRATION_PLAN.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_SUCCESS_REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/ONNX_VS_CLAUDE_QUALITY.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/OPENROUTER-FIX-VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/OPENROUTER-SUCCESS-REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/OPENROUTER_ISSUES_AND_FIXES.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/OPENROUTER_PROXY_COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/OPENROUTER_VALIDATION_COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/OPTIMIZATION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/PACKAGE-COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/PHI4_HYPEROPTIMIZATION_PLAN.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/PROVIDER_INSTRUCTION_OPTIMIZATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/PROXY_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/README.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/README_SDK_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/README_V1.1.11.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/RELEASE-NOTES-v1.1.13.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/RELEASE-SUMMARY-v1.1.14-beta.1.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/RESEARCH_COMPLETE.txt +0 -0
- /package/{agentic-flow/docs → docs}/archived/ROUTER_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/SDK-SETUP-COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/SDK_INTEGRATION_COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/TOOL_INSTRUCTION_ENHANCEMENT.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/V1.1.10_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/V1.1.11_COMPLETE_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/V1.1.11_MCP_PROXY_FIX.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/V1.1.14-BETA-READY.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/VALIDATION-RESULTS.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/VALIDATION_COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/VALIDATION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/claude-flow-integration.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/docker-cli-validation.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/docker-memory-coordination-status.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/mcp-validation-summary.md +0 -0
- /package/{agentic-flow/docs → docs}/archived/quick-wins-validation.md +0 -0
- /package/{agentic-flow/docs → docs}/benchmarks/optimization-guide.md +0 -0
- /package/{agentic-flow/docs → docs}/benchmarks/quic-results.md +0 -0
- /package/{agentic-flow/docs → docs}/federation/AGENT-DEBUG-STREAMING.md +0 -0
- /package/{agentic-flow/docs → docs}/federation/DEBUG-STREAMING-COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/federation/DEBUG-STREAMING.md +0 -0
- /package/{agentic-flow/docs → docs}/federation/DEPLOYMENT-VALIDATION-SUCCESS.md +0 -0
- /package/{agentic-flow/docs → docs}/federation/DOCKER-FEDERATION-DEEP-REVIEW.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/AGENT-BOOSTER-INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/CLAUDE-FLOW-INTEGRATION-ANALYSIS.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/CLI-INTEGRATION-COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/IMPLEMENTATION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/INTEGRATION-QUICK-SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/INTEGRATION-STATUS-CORRECTED.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/INTEGRATION_COMPLETE_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/QUIC-WASM-INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/README.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/WASM_ESM_FIX.md +0 -0
- /package/{agentic-flow/docs → docs}/integration-docs/WASM_INTEGRATION_COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/integrations/CLAUDE_AGENTS_INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/integrations/CLAUDE_FLOW_INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/integrations/FASTMCP_CLI_INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/integrations/FLOW-NEXUS-INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/integrations/README.md +0 -0
- /package/{agentic-flow/docs → docs}/integrations/fastmcp-implementation-plan.md +0 -0
- /package/{agentic-flow/docs → docs}/integrations/fastmcp-poc-integration.md +0 -0
- /package/{agentic-flow/docs → docs}/issues/ISSUE-SUPABASE-INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/mcp-validation/IMPLEMENTATION-SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/mcp-validation/MCP-CLI-VALIDATION-REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/mcp-validation/README.md +0 -0
- /package/{agentic-flow/docs → docs}/mcp-validation/strange-loops-test.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/BUILD_INSTRUCTIONS.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/IMPLEMENTATION_STATUS.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/QUIC-INTEGRATION-SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/QUIC-INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/QUIC-README.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/QUIC_IMPLEMENTATION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/README-CONDENSED.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/quic-research.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/QUIC/quic-tutorial.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster/00-INDEX.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster/00-OVERVIEW.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster/01-ARCHITECTURE.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster/02-INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster/03-BENCHMARKS.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster/04-NPM-SDK.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster/GITHUB-ISSUE.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster/README.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/agent-booster-cli-integration.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/requesty/00-overview.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/requesty/01-api-research.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/requesty/02-architecture.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/requesty/03-implementation-phases.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/requesty/04-testing-strategy.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/requesty/05-migration-guide.md +0 -0
- /package/{agentic-flow/docs → docs}/plans/requesty/README.md +0 -0
- /package/{agentic-flow/docs → docs}/quantum-goap/DEPENDENCY_GRAPH.mermaid +0 -0
- /package/{agentic-flow/docs → docs}/quantum-goap/EXECUTION_SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/quantum-goap/GOAP_IMPLEMENTATION_PLAN.md +0 -0
- /package/{agentic-flow/docs → docs}/quantum-goap/QUICK_START.md +0 -0
- /package/{agentic-flow/docs → docs}/quantum-research/QUANTUM_RESEARCH_LITERATURE_REVIEW.md +0 -0
- /package/{agentic-flow/docs → docs}/quantum-research/README.md +0 -0
- /package/{agentic-flow/docs → docs}/quic/FINAL-VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/quic/IMPLEMENTATION-COMPLETE-SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/quic/PERFORMANCE-VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/quic/QUIC-STATUS-OLD.md +0 -0
- /package/{agentic-flow/docs → docs}/quic/QUIC-STATUS.md +0 -0
- /package/{agentic-flow/docs → docs}/quic/QUIC-VALIDATION-REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/quic/WASM-INTEGRATION-COMPLETE.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/MEMORY_VALIDATION_REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/README.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONING-AGENTS.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK-BENCHMARK-RESULTS.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK-BENCHMARK.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK-CLI-INTEGRATION.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK-DEMO.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK-VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK_ARCHITECTURE.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK_BACKENDS.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK_FIXES.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK_IMPLEMENTATION_STATUS.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK_INTEGRATION_PLAN.md +0 -0
- /package/{agentic-flow/docs → docs}/reasoningbank/REASONINGBANK_INVESTIGATION.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/GITHUB-ISSUE-ADDENDUM-v1.4.6.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/GITHUB-ISSUE-REASONINGBANK-BENCHMARK.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/GITHUB-ISSUE-v1.4.6.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/GITHUB-ISSUE-v1.5.0.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/HOTFIX-v1.2.1.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/NPM-PUBLISH-GUIDE-v1.2.0.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/PUBLISH-COMPLETE-v1.2.0.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/README.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/RELEASE-v1.2.0.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/RELEASE-v1.8.13.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/v1.4.6-reasoningbank-release.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/v1.4.7-bugfix.md +0 -0
- /package/{agentic-flow/docs → docs}/releases/v1.5.14-QUIC-TRANSPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/router/README.md +0 -0
- /package/{agentic-flow/docs → docs}/router/ROUTER_CONFIG_REFERENCE.md +0 -0
- /package/{agentic-flow/docs → docs}/router/ROUTER_USER_GUIDE.md +0 -0
- /package/{agentic-flow/docs → docs}/router/TOP20_MODELS_MATRIX.md +0 -0
- /package/{agentic-flow/docs → docs}/supabase/IMPLEMENTATION-SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/supabase/INDEX.md +0 -0
- /package/{agentic-flow/docs → docs}/supabase/QUICKSTART.md +0 -0
- /package/{agentic-flow/docs → docs}/supabase/README.md +0 -0
- /package/{agentic-flow/docs → docs}/supabase/SUPABASE-REALTIME-FEDERATION.md +0 -0
- /package/{agentic-flow/docs → docs}/supabase/TEST-REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/supabase/migrations/001_create_federation_tables.sql +0 -0
- /package/{agentic-flow/docs → docs}/testing/AGENT-SYSTEM-VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/testing/FINAL-TESTING-SUMMARY.md +0 -0
- /package/{agentic-flow/docs → docs}/testing/README.md +0 -0
- /package/{agentic-flow/docs → docs}/testing/REGRESSION-TEST-RESULTS.md +0 -0
- /package/{agentic-flow/docs → docs}/testing/STREAMING-AND-MCP-VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/v1.7.1-QUICK-START.md +0 -0
- /package/{agentic-flow/docs → docs}/validation/README.md +0 -0
- /package/{agentic-flow/docs → docs}/validation/reports/REGRESSION-TEST-V1.8.11.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/BENCHMARK_AND_OPTIMIZATION_REPORT.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/DOCKER_VALIDATION_RESULTS.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/NO_REGRESSIONS_CONFIRMED.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/NPM-PACKAGE-ANALYSIS-FINAL.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/README.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/V2.7.0-ALPHA.10_FINAL_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/V2.7.0-ALPHA.9_VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/v1.6.0-QUIC-CLI-VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/validation-reports/v1.6.1-NPM-PUBLISH-VALIDATION.md +0 -0
- /package/{agentic-flow/docs → docs}/version-releases/PUBLICATION_REPORT_v1.5.11.md +0 -0
- /package/{agentic-flow/docs → docs}/version-releases/README.md +0 -0
- /package/{agentic-flow/docs → docs}/version-releases/v1.5.9-DOCKER-VERIFICATION.md +0 -0
- /package/{agentic-flow/docs → docs}/version-releases/v1.5.9-RELEASE-SUMMARY.md +0 -0
- /package/{agentic-flow/scripts → scripts}/build.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/claude-code +0 -0
- /package/{agentic-flow/scripts → scripts}/claude-flow +0 -0
- /package/{agentic-flow/scripts → scripts}/claude-flow.bat +0 -0
- /package/{agentic-flow/scripts → scripts}/claude-flow.ps1 +0 -0
- /package/{agentic-flow/scripts → scripts}/postinstall.js +0 -0
- /package/{agentic-flow/scripts → scripts}/run-validation.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/test-agentdb.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/test-all-commands.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/test-claude-flow-sdk.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/test-fastmcp-docker.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/test-fastmcp-poc.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/test-functionality.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/test-onnx-docker.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/test-router-docker.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/validate-mcp-cli-tools.sh +0 -0
- /package/{agentic-flow/scripts → scripts}/validate-providers.sh +0 -0
- /package/{agentic-flow/wasm → wasm}/quic/README.md +0 -0
- /package/{agentic-flow/wasm → wasm}/quic/agentic_flow_quic.js +0 -0
- /package/{agentic-flow/wasm → wasm}/quic/agentic_flow_quic_bg.wasm +0 -0
- /package/{agentic-flow/wasm → wasm}/quic/package.json +0 -0
- /package/{agentic-flow/wasm → wasm}/reasoningbank/package.json +0 -0
- /package/{agentic-flow/wasm → wasm}/reasoningbank/reasoningbank_wasm.js +0 -0
- /package/{agentic-flow/wasm → wasm}/reasoningbank/reasoningbank_wasm_bg.js +0 -0
- /package/{agentic-flow/wasm → wasm}/reasoningbank/reasoningbank_wasm_bg.wasm +0 -0
|
@@ -1,1030 +0,0 @@
|
|
|
1
|
-
# Off-Target Prediction Module - Detailed Pseudocode
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
The Off-Target Prediction Module identifies and scores potential CRISPR-Cas13 off-target sites using machine learning (gradient boosting) combined with biological feature extraction. The module predicts off-target activity based on mismatch patterns, PAM proximity, chromatin accessibility, and RNA secondary structure.
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## Algorithm 1: Off-Target Site Discovery
|
|
10
|
-
|
|
11
|
-
**Purpose**: Identify candidate off-target sites using k-mer indexing and fuzzy matching.
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
ALGORITHM: DiscoverOffTargetSites
|
|
15
|
-
INPUT: gRNA (string of length 20-24), transcriptome (array of RNA sequences),
|
|
16
|
-
maxMismatches (integer, default = 3)
|
|
17
|
-
OUTPUT: candidateSites (array of OffTargetSite objects)
|
|
18
|
-
|
|
19
|
-
CONSTANTS:
|
|
20
|
-
KMER_SIZE = 10
|
|
21
|
-
SEED_REGION_LENGTH = 12 // Critical seed region at 3' end
|
|
22
|
-
MAX_CANDIDATES_PER_GRNA = 10000
|
|
23
|
-
|
|
24
|
-
BEGIN
|
|
25
|
-
candidateSites ← []
|
|
26
|
-
|
|
27
|
-
// Step 1: Extract seed region from gRNA (most critical for binding)
|
|
28
|
-
seedRegion ← gRNA[length(gRNA) - SEED_REGION_LENGTH : length(gRNA)]
|
|
29
|
-
|
|
30
|
-
// Step 2: Build k-mer index for fast candidate lookup
|
|
31
|
-
kmerIndex ← BuildKmerIndex(transcriptome, KMER_SIZE)
|
|
32
|
-
|
|
33
|
-
// Step 3: Find all k-mer matches in seed region
|
|
34
|
-
seedKmers ← ExtractKmers(seedRegion, KMER_SIZE)
|
|
35
|
-
potentialMatches ← SET()
|
|
36
|
-
|
|
37
|
-
FOR EACH kmer IN seedKmers DO
|
|
38
|
-
// Allow 1 mismatch in k-mer for fuzzy matching
|
|
39
|
-
fuzzyMatches ← kmerIndex.GetFuzzyMatches(kmer, maxMismatches = 1)
|
|
40
|
-
potentialMatches ← potentialMatches UNION fuzzyMatches
|
|
41
|
-
END FOR
|
|
42
|
-
|
|
43
|
-
IF length(potentialMatches) > MAX_CANDIDATES_PER_GRNA THEN
|
|
44
|
-
LogWarning("Too many candidates ({length(potentialMatches)}), using stricter filtering")
|
|
45
|
-
// Keep only exact seed matches
|
|
46
|
-
potentialMatches ← FilterToExactSeedMatches(potentialMatches, seedRegion)
|
|
47
|
-
END IF
|
|
48
|
-
|
|
49
|
-
// Step 4: Verify full gRNA alignment for each candidate
|
|
50
|
-
FOR EACH match IN potentialMatches DO
|
|
51
|
-
targetSequence ← ExtractTargetSequence(match.transcriptId, match.position, length(gRNA))
|
|
52
|
-
|
|
53
|
-
// Calculate mismatch profile
|
|
54
|
-
mismatchProfile ← AlignAndCountMismatches(gRNA, targetSequence)
|
|
55
|
-
|
|
56
|
-
IF mismatchProfile.totalMismatches <= maxMismatches THEN
|
|
57
|
-
candidateSites.append({
|
|
58
|
-
transcriptId: match.transcriptId,
|
|
59
|
-
position: match.position,
|
|
60
|
-
targetSequence: targetSequence,
|
|
61
|
-
mismatchProfile: mismatchProfile,
|
|
62
|
-
strand: match.strand
|
|
63
|
-
})
|
|
64
|
-
END IF
|
|
65
|
-
END FOR
|
|
66
|
-
|
|
67
|
-
LogInfo("Found {length(candidateSites)} candidate off-target sites for gRNA {gRNA}")
|
|
68
|
-
|
|
69
|
-
RETURN candidateSites
|
|
70
|
-
END
|
|
71
|
-
|
|
72
|
-
SUBROUTINE: BuildKmerIndex
|
|
73
|
-
INPUT: transcriptome (array of RNA sequences), kmerSize (integer)
|
|
74
|
-
OUTPUT: kmerIndex (hash table: kmer → array of positions)
|
|
75
|
-
|
|
76
|
-
BEGIN
|
|
77
|
-
kmerIndex ← CREATE HASH TABLE
|
|
78
|
-
|
|
79
|
-
FOR EACH transcript IN transcriptome DO
|
|
80
|
-
FOR position ← 0 TO length(transcript.sequence) - kmerSize DO
|
|
81
|
-
kmer ← transcript.sequence[position : position + kmerSize]
|
|
82
|
-
|
|
83
|
-
IF kmer NOT IN kmerIndex THEN
|
|
84
|
-
kmerIndex[kmer] ← []
|
|
85
|
-
END IF
|
|
86
|
-
|
|
87
|
-
kmerIndex[kmer].append({
|
|
88
|
-
transcriptId: transcript.id,
|
|
89
|
-
position: position,
|
|
90
|
-
strand: '+'
|
|
91
|
-
})
|
|
92
|
-
END FOR
|
|
93
|
-
|
|
94
|
-
// Also index reverse complement
|
|
95
|
-
rcSequence ← ReverseComplement(transcript.sequence)
|
|
96
|
-
FOR position ← 0 TO length(rcSequence) - kmerSize DO
|
|
97
|
-
kmer ← rcSequence[position : position + kmerSize]
|
|
98
|
-
|
|
99
|
-
IF kmer NOT IN kmerIndex THEN
|
|
100
|
-
kmerIndex[kmer] ← []
|
|
101
|
-
END IF
|
|
102
|
-
|
|
103
|
-
kmerIndex[kmer].append({
|
|
104
|
-
transcriptId: transcript.id,
|
|
105
|
-
position: length(transcript.sequence) - position,
|
|
106
|
-
strand: '-'
|
|
107
|
-
})
|
|
108
|
-
END FOR
|
|
109
|
-
END FOR
|
|
110
|
-
|
|
111
|
-
LogInfo("Built k-mer index with {length(kmerIndex)} unique k-mers")
|
|
112
|
-
|
|
113
|
-
RETURN kmerIndex
|
|
114
|
-
END
|
|
115
|
-
|
|
116
|
-
SUBROUTINE: AlignAndCountMismatches
|
|
117
|
-
INPUT: gRNA (string), target (string)
|
|
118
|
-
OUTPUT: mismatchProfile (object)
|
|
119
|
-
|
|
120
|
-
BEGIN
|
|
121
|
-
IF length(gRNA) != length(target) THEN
|
|
122
|
-
RETURN error("Length mismatch between gRNA and target")
|
|
123
|
-
END IF
|
|
124
|
-
|
|
125
|
-
totalMismatches ← 0
|
|
126
|
-
seedMismatches ← 0
|
|
127
|
-
mismatchPositions ← []
|
|
128
|
-
|
|
129
|
-
seedStart ← length(gRNA) - 12 // Last 12 bases are seed region
|
|
130
|
-
|
|
131
|
-
FOR i ← 0 TO length(gRNA) - 1 DO
|
|
132
|
-
IF gRNA[i] != target[i] THEN
|
|
133
|
-
totalMismatches ← totalMismatches + 1
|
|
134
|
-
mismatchPositions.append(i)
|
|
135
|
-
|
|
136
|
-
IF i >= seedStart THEN
|
|
137
|
-
seedMismatches ← seedMismatches + 1
|
|
138
|
-
END IF
|
|
139
|
-
END IF
|
|
140
|
-
END FOR
|
|
141
|
-
|
|
142
|
-
RETURN {
|
|
143
|
-
totalMismatches: totalMismatches,
|
|
144
|
-
seedMismatches: seedMismatches,
|
|
145
|
-
mismatchPositions: mismatchPositions,
|
|
146
|
-
alignment: CreateAlignmentString(gRNA, target)
|
|
147
|
-
}
|
|
148
|
-
END
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
**Complexity Analysis**:
|
|
152
|
-
- **Time**: O(T × L) for index building, O(K × log T) for k-mer lookup per gRNA
|
|
153
|
-
- T = transcriptome size
|
|
154
|
-
- L = average transcript length
|
|
155
|
-
- K = number of k-mers in gRNA
|
|
156
|
-
- **Space**: O(T × L / K) for k-mer index
|
|
157
|
-
- **Typical Performance**: 100-1000 ms per gRNA for human transcriptome
|
|
158
|
-
|
|
159
|
-
---
|
|
160
|
-
|
|
161
|
-
## Algorithm 2: Feature Extraction
|
|
162
|
-
|
|
163
|
-
**Purpose**: Extract biological features for machine learning prediction.
|
|
164
|
-
|
|
165
|
-
```
|
|
166
|
-
ALGORITHM: ExtractOffTargetFeatures
|
|
167
|
-
INPUT: gRNA (string), candidateSite (OffTargetSite),
|
|
168
|
-
alignedReads (BAM file), chromatinData (BigWig file)
|
|
169
|
-
OUTPUT: featureVector (array of floats)
|
|
170
|
-
|
|
171
|
-
BEGIN
|
|
172
|
-
features ← []
|
|
173
|
-
|
|
174
|
-
// === Sequence-based features ===
|
|
175
|
-
|
|
176
|
-
// 1. Mismatch distribution features
|
|
177
|
-
mismatchProfile ← candidateSite.mismatchProfile
|
|
178
|
-
features.append(mismatchProfile.totalMismatches)
|
|
179
|
-
features.append(mismatchProfile.seedMismatches)
|
|
180
|
-
features.append(mismatchProfile.totalMismatches - mismatchProfile.seedMismatches) // Non-seed mismatches
|
|
181
|
-
|
|
182
|
-
// 2. Position-weighted mismatch score
|
|
183
|
-
// Mismatches closer to PAM (3' end) are more important
|
|
184
|
-
positionWeightedScore ← 0
|
|
185
|
-
FOR EACH mismatchPos IN mismatchProfile.mismatchPositions DO
|
|
186
|
-
// Weight increases from 0.5 at 5' end to 2.0 at 3' end
|
|
187
|
-
weight ← 0.5 + 1.5 × (mismatchPos / length(gRNA))
|
|
188
|
-
positionWeightedScore ← positionWeightedScore + weight
|
|
189
|
-
END FOR
|
|
190
|
-
features.append(positionWeightedScore)
|
|
191
|
-
|
|
192
|
-
// 3. GC content features
|
|
193
|
-
gRNAGC ← CalculateGCContent(gRNA)
|
|
194
|
-
targetGC ← CalculateGCContent(candidateSite.targetSequence)
|
|
195
|
-
features.append(gRNAGC)
|
|
196
|
-
features.append(targetGC)
|
|
197
|
-
features.append(ABS(gRNAGC - targetGC)) // GC content difference
|
|
198
|
-
|
|
199
|
-
// 4. Homopolymer runs (AAAA, TTTT, etc. affect binding)
|
|
200
|
-
gRNAMaxHomopolymer ← FindMaxHomopolymerLength(gRNA)
|
|
201
|
-
targetMaxHomopolymer ← FindMaxHomopolymerLength(candidateSite.targetSequence)
|
|
202
|
-
features.append(gRNAMaxHomopolymer)
|
|
203
|
-
features.append(targetMaxHomopolymer)
|
|
204
|
-
|
|
205
|
-
// === Structure-based features ===
|
|
206
|
-
|
|
207
|
-
// 5. RNA secondary structure energy
|
|
208
|
-
gRNAStructure ← PredictRNAStructure(gRNA)
|
|
209
|
-
targetStructure ← PredictRNAStructure(candidateSite.targetSequence)
|
|
210
|
-
features.append(gRNAStructure.freeEnergy)
|
|
211
|
-
features.append(targetStructure.freeEnergy)
|
|
212
|
-
features.append(ABS(gRNAStructure.freeEnergy - targetStructure.freeEnergy))
|
|
213
|
-
|
|
214
|
-
// 6. Structure accessibility (unpaired probability)
|
|
215
|
-
gRNAAccessibility ← CalculateAccessibility(gRNAStructure)
|
|
216
|
-
targetAccessibility ← CalculateAccessibility(targetStructure)
|
|
217
|
-
features.append(gRNAAccessibility)
|
|
218
|
-
features.append(targetAccessibility)
|
|
219
|
-
|
|
220
|
-
// === Expression-based features ===
|
|
221
|
-
|
|
222
|
-
// 7. Target transcript expression level
|
|
223
|
-
transcriptExpression ← GetTranscriptExpression(candidateSite.transcriptId, alignedReads)
|
|
224
|
-
features.append(LOG(transcriptExpression + 1)) // Log-transformed TPM
|
|
225
|
-
|
|
226
|
-
// 8. Local read coverage at off-target site
|
|
227
|
-
localCoverage ← GetLocalCoverage(
|
|
228
|
-
candidateSite.transcriptId,
|
|
229
|
-
candidateSite.position,
|
|
230
|
-
window = 100,
|
|
231
|
-
alignedReads
|
|
232
|
-
)
|
|
233
|
-
features.append(LOG(localCoverage + 1))
|
|
234
|
-
|
|
235
|
-
// === Chromatin-based features (if available) ===
|
|
236
|
-
|
|
237
|
-
IF chromatinData != null THEN
|
|
238
|
-
// 9. Chromatin accessibility (DNase-seq, ATAC-seq)
|
|
239
|
-
chromatinAccessibility ← GetChromatinAccessibility(
|
|
240
|
-
candidateSite.transcriptId,
|
|
241
|
-
candidateSite.position,
|
|
242
|
-
chromatinData
|
|
243
|
-
)
|
|
244
|
-
features.append(chromatinAccessibility)
|
|
245
|
-
ELSE
|
|
246
|
-
features.append(0) // Default value if not available
|
|
247
|
-
END IF
|
|
248
|
-
|
|
249
|
-
// === Evolutionary conservation features ===
|
|
250
|
-
|
|
251
|
-
// 10. PhyloP conservation score
|
|
252
|
-
conservationScore ← GetConservationScore(
|
|
253
|
-
candidateSite.transcriptId,
|
|
254
|
-
candidateSite.position
|
|
255
|
-
)
|
|
256
|
-
features.append(conservationScore)
|
|
257
|
-
|
|
258
|
-
// === Distance-based features ===
|
|
259
|
-
|
|
260
|
-
// 11. Distance to nearest exon junction
|
|
261
|
-
nearestJunctionDist ← GetDistanceToNearestJunction(
|
|
262
|
-
candidateSite.transcriptId,
|
|
263
|
-
candidateSite.position
|
|
264
|
-
)
|
|
265
|
-
features.append(MIN(nearestJunctionDist, 1000)) // Cap at 1000 bp
|
|
266
|
-
|
|
267
|
-
// === Thermodynamic features ===
|
|
268
|
-
|
|
269
|
-
// 12. Predicted binding affinity (simplified nearest-neighbor model)
|
|
270
|
-
bindingAffinity ← CalculateBindingAffinity(gRNA, candidateSite.targetSequence)
|
|
271
|
-
features.append(bindingAffinity)
|
|
272
|
-
|
|
273
|
-
RETURN features
|
|
274
|
-
END
|
|
275
|
-
|
|
276
|
-
SUBROUTINE: PredictRNAStructure
|
|
277
|
-
INPUT: sequence (RNA string)
|
|
278
|
-
OUTPUT: structure (Structure object)
|
|
279
|
-
|
|
280
|
-
BEGIN
|
|
281
|
-
// Use Vienna RNA fold algorithm (simplified)
|
|
282
|
-
// Returns minimum free energy (MFE) structure
|
|
283
|
-
|
|
284
|
-
n ← length(sequence)
|
|
285
|
-
|
|
286
|
-
// Dynamic programming for MFE calculation
|
|
287
|
-
dp ← CREATE 2D array n × n, initialized to 0
|
|
288
|
-
|
|
289
|
-
FOR length ← 2 TO n DO
|
|
290
|
-
FOR i ← 0 TO n - length DO
|
|
291
|
-
j ← i + length
|
|
292
|
-
|
|
293
|
-
// Case 1: i unpaired
|
|
294
|
-
dp[i][j] ← dp[i+1][j]
|
|
295
|
-
|
|
296
|
-
// Case 2: i paired with k
|
|
297
|
-
FOR k ← i+1 TO j DO
|
|
298
|
-
IF CanPair(sequence[i], sequence[k]) THEN
|
|
299
|
-
energy ← GetBasePairEnergy(sequence[i], sequence[k])
|
|
300
|
-
|
|
301
|
-
IF k == j THEN
|
|
302
|
-
dp[i][j] ← MIN(dp[i][j], dp[i+1][k-1] + energy)
|
|
303
|
-
ELSE
|
|
304
|
-
dp[i][j] ← MIN(dp[i][j], dp[i+1][k-1] + dp[k+1][j] + energy)
|
|
305
|
-
END IF
|
|
306
|
-
END IF
|
|
307
|
-
END FOR
|
|
308
|
-
END FOR
|
|
309
|
-
END FOR
|
|
310
|
-
|
|
311
|
-
freeEnergy ← dp[0][n-1]
|
|
312
|
-
|
|
313
|
-
RETURN {
|
|
314
|
-
freeEnergy: freeEnergy,
|
|
315
|
-
structure: Traceback(dp, sequence)
|
|
316
|
-
}
|
|
317
|
-
END
|
|
318
|
-
|
|
319
|
-
SUBROUTINE: CalculateBindingAffinity
|
|
320
|
-
INPUT: gRNA (string), target (string)
|
|
321
|
-
OUTPUT: affinity (float, in kcal/mol)
|
|
322
|
-
|
|
323
|
-
BEGIN
|
|
324
|
-
// Simplified nearest-neighbor thermodynamic model
|
|
325
|
-
// Real implementation would use full Turner parameters
|
|
326
|
-
|
|
327
|
-
affinity ← 0
|
|
328
|
-
|
|
329
|
-
FOR i ← 0 TO length(gRNA) - 2 DO
|
|
330
|
-
// Get dinucleotide pair
|
|
331
|
-
gRNADimer ← gRNA[i : i+2]
|
|
332
|
-
targetDimer ← target[i : i+2]
|
|
333
|
-
|
|
334
|
-
// Look up nearest-neighbor parameters
|
|
335
|
-
stackingEnergy ← GetStackingEnergy(gRNADimer, targetDimer)
|
|
336
|
-
affinity ← affinity + stackingEnergy
|
|
337
|
-
|
|
338
|
-
// Add penalty for mismatches
|
|
339
|
-
IF gRNA[i] != target[i] THEN
|
|
340
|
-
affinity ← affinity + 2.5 // Mismatch penalty (kcal/mol)
|
|
341
|
-
END IF
|
|
342
|
-
END FOR
|
|
343
|
-
|
|
344
|
-
// Add terminal penalties
|
|
345
|
-
affinity ← affinity + GetTerminalPenalty(gRNA[0], target[0])
|
|
346
|
-
affinity ← affinity + GetTerminalPenalty(gRNA[length(gRNA)-1], target[length(target)-1])
|
|
347
|
-
|
|
348
|
-
RETURN affinity
|
|
349
|
-
END
|
|
350
|
-
```
|
|
351
|
-
|
|
352
|
-
**Complexity Analysis**:
|
|
353
|
-
- **Time**: O(n²) for RNA structure prediction, O(n) for other features
|
|
354
|
-
- **Space**: O(n²) for structure DP matrix
|
|
355
|
-
- **Feature Vector Size**: 15-20 features
|
|
356
|
-
- **Typical Performance**: 10-50 ms per candidate site
|
|
357
|
-
|
|
358
|
-
---
|
|
359
|
-
|
|
360
|
-
## Algorithm 3: Gradient Boosting Model Training
|
|
361
|
-
|
|
362
|
-
**Purpose**: Train gradient boosting classifier to predict off-target activity.
|
|
363
|
-
|
|
364
|
-
```
|
|
365
|
-
ALGORITHM: TrainOffTargetModel
|
|
366
|
-
INPUT: trainingData (array of {features, label} pairs),
|
|
367
|
-
config (ModelConfig object)
|
|
368
|
-
OUTPUT: trainedModel (GradientBoostingModel)
|
|
369
|
-
|
|
370
|
-
CONSTANTS:
|
|
371
|
-
NUM_TREES = 100
|
|
372
|
-
MAX_DEPTH = 6
|
|
373
|
-
LEARNING_RATE = 0.1
|
|
374
|
-
MIN_SAMPLES_SPLIT = 20
|
|
375
|
-
SUBSAMPLE_RATIO = 0.8
|
|
376
|
-
|
|
377
|
-
BEGIN
|
|
378
|
-
model ← {
|
|
379
|
-
trees: [],
|
|
380
|
-
learningRate: LEARNING_RATE,
|
|
381
|
-
featureImportances: [],
|
|
382
|
-
baseScore: 0
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
// Step 1: Initialize base prediction (mean of labels)
|
|
386
|
-
model.baseScore ← MEAN(label for {features, label} in trainingData)
|
|
387
|
-
|
|
388
|
-
// Initialize predictions with base score
|
|
389
|
-
predictions ← [model.baseScore] × length(trainingData)
|
|
390
|
-
|
|
391
|
-
// Step 2: Build trees iteratively
|
|
392
|
-
FOR treeIndex ← 0 TO NUM_TREES - 1 DO
|
|
393
|
-
// Calculate residuals (negative gradient for squared loss)
|
|
394
|
-
residuals ← []
|
|
395
|
-
FOR i ← 0 TO length(trainingData) - 1 DO
|
|
396
|
-
residual ← trainingData[i].label - predictions[i]
|
|
397
|
-
residuals.append(residual)
|
|
398
|
-
END FOR
|
|
399
|
-
|
|
400
|
-
// Subsample training data for stochastic gradient boosting
|
|
401
|
-
subsampleSize ← FLOOR(length(trainingData) × SUBSAMPLE_RATIO)
|
|
402
|
-
subsampledIndices ← RandomSample(0 to length(trainingData)-1, subsampleSize)
|
|
403
|
-
subsampledData ← [trainingData[i] for i in subsampledIndices]
|
|
404
|
-
subsampledResiduals ← [residuals[i] for i in subsampledIndices]
|
|
405
|
-
|
|
406
|
-
// Build regression tree to predict residuals
|
|
407
|
-
tree ← BuildRegressionTree(
|
|
408
|
-
subsampledData,
|
|
409
|
-
subsampledResiduals,
|
|
410
|
-
maxDepth = MAX_DEPTH,
|
|
411
|
-
minSamplesSplit = MIN_SAMPLES_SPLIT
|
|
412
|
-
)
|
|
413
|
-
|
|
414
|
-
model.trees.append(tree)
|
|
415
|
-
|
|
416
|
-
// Update predictions
|
|
417
|
-
FOR i ← 0 TO length(trainingData) - 1 DO
|
|
418
|
-
treePrediction ← tree.Predict(trainingData[i].features)
|
|
419
|
-
predictions[i] ← predictions[i] + LEARNING_RATE × treePrediction
|
|
420
|
-
END FOR
|
|
421
|
-
|
|
422
|
-
// Calculate training loss
|
|
423
|
-
trainingLoss ← CalculateMSE(predictions, [data.label for data in trainingData])
|
|
424
|
-
|
|
425
|
-
IF (treeIndex + 1) MOD 10 == 0 THEN
|
|
426
|
-
LogInfo("Tree {treeIndex + 1}/{NUM_TREES}, Training Loss: {trainingLoss}")
|
|
427
|
-
END IF
|
|
428
|
-
END FOR
|
|
429
|
-
|
|
430
|
-
// Step 3: Calculate feature importances
|
|
431
|
-
model.featureImportances ← CalculateFeatureImportances(model.trees)
|
|
432
|
-
|
|
433
|
-
LogInfo("Training complete. Top features: {model.featureImportances[:5]}")
|
|
434
|
-
|
|
435
|
-
RETURN model
|
|
436
|
-
END
|
|
437
|
-
|
|
438
|
-
SUBROUTINE: BuildRegressionTree
|
|
439
|
-
INPUT: data (array), targets (array of residuals), maxDepth, minSamplesSplit
|
|
440
|
-
OUTPUT: tree (DecisionTree object)
|
|
441
|
-
|
|
442
|
-
BEGIN
|
|
443
|
-
tree ← {
|
|
444
|
-
isLeaf: false,
|
|
445
|
-
splitFeature: null,
|
|
446
|
-
splitThreshold: null,
|
|
447
|
-
leftChild: null,
|
|
448
|
-
rightChild: null,
|
|
449
|
-
prediction: null
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
// Base case: create leaf node
|
|
453
|
-
IF maxDepth == 0 OR length(data) < minSamplesSplit THEN
|
|
454
|
-
tree.isLeaf ← true
|
|
455
|
-
tree.prediction ← MEAN(targets)
|
|
456
|
-
RETURN tree
|
|
457
|
-
END IF
|
|
458
|
-
|
|
459
|
-
// Find best split
|
|
460
|
-
bestSplit ← FindBestSplit(data, targets)
|
|
461
|
-
|
|
462
|
-
IF bestSplit == null THEN
|
|
463
|
-
// No improvement possible, create leaf
|
|
464
|
-
tree.isLeaf ← true
|
|
465
|
-
tree.prediction ← MEAN(targets)
|
|
466
|
-
RETURN tree
|
|
467
|
-
END IF
|
|
468
|
-
|
|
469
|
-
tree.splitFeature ← bestSplit.feature
|
|
470
|
-
tree.splitThreshold ← bestSplit.threshold
|
|
471
|
-
|
|
472
|
-
// Split data into left and right children
|
|
473
|
-
leftIndices ← [i for i in 0 to length(data)-1
|
|
474
|
-
WHERE data[i].features[bestSplit.feature] <= bestSplit.threshold]
|
|
475
|
-
rightIndices ← [i for i in 0 to length(data)-1
|
|
476
|
-
WHERE data[i].features[bestSplit.feature] > bestSplit.threshold]
|
|
477
|
-
|
|
478
|
-
leftData ← [data[i] for i in leftIndices]
|
|
479
|
-
leftTargets ← [targets[i] for i in leftIndices]
|
|
480
|
-
rightData ← [data[i] for i in rightIndices]
|
|
481
|
-
rightTargets ← [targets[i] for i in rightIndices]
|
|
482
|
-
|
|
483
|
-
// Recursively build children
|
|
484
|
-
tree.leftChild ← BuildRegressionTree(leftData, leftTargets, maxDepth - 1, minSamplesSplit)
|
|
485
|
-
tree.rightChild ← BuildRegressionTree(rightData, rightTargets, maxDepth - 1, minSamplesSplit)
|
|
486
|
-
|
|
487
|
-
RETURN tree
|
|
488
|
-
END
|
|
489
|
-
|
|
490
|
-
SUBROUTINE: FindBestSplit
|
|
491
|
-
INPUT: data (array), targets (array)
|
|
492
|
-
OUTPUT: bestSplit (object) or null
|
|
493
|
-
|
|
494
|
-
BEGIN
|
|
495
|
-
bestGain ← 0
|
|
496
|
-
bestSplit ← null
|
|
497
|
-
|
|
498
|
-
numFeatures ← length(data[0].features)
|
|
499
|
-
|
|
500
|
-
// Try splitting on each feature
|
|
501
|
-
FOR featureIdx ← 0 TO numFeatures - 1 DO
|
|
502
|
-
// Extract feature values
|
|
503
|
-
featureValues ← [sample.features[featureIdx] for sample in data]
|
|
504
|
-
|
|
505
|
-
// Get unique values as potential split thresholds
|
|
506
|
-
sortedValues ← Sort(UNIQUE(featureValues))
|
|
507
|
-
|
|
508
|
-
// Try each threshold
|
|
509
|
-
FOR i ← 0 TO length(sortedValues) - 2 DO
|
|
510
|
-
threshold ← (sortedValues[i] + sortedValues[i+1]) / 2
|
|
511
|
-
|
|
512
|
-
// Split data
|
|
513
|
-
leftIndices ← [j for j in 0 to length(data)-1
|
|
514
|
-
WHERE featureValues[j] <= threshold]
|
|
515
|
-
rightIndices ← [j for j in 0 to length(data)-1
|
|
516
|
-
WHERE featureValues[j] > threshold]
|
|
517
|
-
|
|
518
|
-
IF length(leftIndices) < 5 OR length(rightIndices) < 5 THEN
|
|
519
|
-
CONTINUE // Skip splits that create very small nodes
|
|
520
|
-
END IF
|
|
521
|
-
|
|
522
|
-
// Calculate variance reduction (information gain for regression)
|
|
523
|
-
leftTargets ← [targets[j] for j in leftIndices]
|
|
524
|
-
rightTargets ← [targets[j] for j in rightIndices]
|
|
525
|
-
|
|
526
|
-
parentVariance ← Variance(targets)
|
|
527
|
-
leftVariance ← Variance(leftTargets)
|
|
528
|
-
rightVariance ← Variance(rightTargets)
|
|
529
|
-
|
|
530
|
-
weightedVariance ← (length(leftIndices) × leftVariance +
|
|
531
|
-
length(rightIndices) × rightVariance) / length(data)
|
|
532
|
-
|
|
533
|
-
gain ← parentVariance - weightedVariance
|
|
534
|
-
|
|
535
|
-
IF gain > bestGain THEN
|
|
536
|
-
bestGain ← gain
|
|
537
|
-
bestSplit ← {
|
|
538
|
-
feature: featureIdx,
|
|
539
|
-
threshold: threshold,
|
|
540
|
-
gain: gain
|
|
541
|
-
}
|
|
542
|
-
END IF
|
|
543
|
-
END FOR
|
|
544
|
-
END FOR
|
|
545
|
-
|
|
546
|
-
IF bestGain < 1e-7 THEN
|
|
547
|
-
RETURN null // No meaningful split found
|
|
548
|
-
END IF
|
|
549
|
-
|
|
550
|
-
RETURN bestSplit
|
|
551
|
-
END
|
|
552
|
-
```
|
|
553
|
-
|
|
554
|
-
**Complexity Analysis**:
|
|
555
|
-
- **Time**: O(T × N × F × log N) where T = trees, N = samples, F = features
|
|
556
|
-
- **Space**: O(T × D) where D = max depth
|
|
557
|
-
- **Training Time**: 1-5 minutes for 10,000 samples on CPU
|
|
558
|
-
- **Model Size**: 1-10 MB for 100 trees
|
|
559
|
-
|
|
560
|
-
---
|
|
561
|
-
|
|
562
|
-
## Algorithm 4: Off-Target Scoring and Ranking
|
|
563
|
-
|
|
564
|
-
**Purpose**: Predict off-target scores and rank by biological significance.
|
|
565
|
-
|
|
566
|
-
```
|
|
567
|
-
ALGORITHM: ScoreOffTargetSites
|
|
568
|
-
INPUT: candidateSites (array), trainedModel (GradientBoostingModel),
|
|
569
|
-
gRNA (string), config (ScoringConfig)
|
|
570
|
-
OUTPUT: rankedSites (array of scored OffTargetSite objects)
|
|
571
|
-
|
|
572
|
-
BEGIN
|
|
573
|
-
scoredSites ← []
|
|
574
|
-
|
|
575
|
-
// Step 1: Extract features and predict scores
|
|
576
|
-
FOR EACH candidate IN candidateSites DO
|
|
577
|
-
// Extract feature vector
|
|
578
|
-
features ← ExtractOffTargetFeatures(
|
|
579
|
-
gRNA,
|
|
580
|
-
candidate,
|
|
581
|
-
config.alignedReads,
|
|
582
|
-
config.chromatinData
|
|
583
|
-
)
|
|
584
|
-
|
|
585
|
-
// Predict off-target activity score
|
|
586
|
-
rawScore ← PredictGradientBoosting(trainedModel, features)
|
|
587
|
-
|
|
588
|
-
// Convert to probability using sigmoid
|
|
589
|
-
probability ← 1 / (1 + EXP(-rawScore))
|
|
590
|
-
|
|
591
|
-
// Calculate confidence interval (optional)
|
|
592
|
-
confidenceInterval ← CalculateConfidenceInterval(trainedModel, features)
|
|
593
|
-
|
|
594
|
-
scoredSites.append({
|
|
595
|
-
site: candidate,
|
|
596
|
-
offTargetScore: probability,
|
|
597
|
-
confidenceLower: confidenceInterval.lower,
|
|
598
|
-
confidenceUpper: confidenceInterval.upper,
|
|
599
|
-
features: features
|
|
600
|
-
})
|
|
601
|
-
END FOR
|
|
602
|
-
|
|
603
|
-
// Step 2: Apply biological filters
|
|
604
|
-
filteredSites ← []
|
|
605
|
-
FOR EACH scored IN scoredSites DO
|
|
606
|
-
// Filter by score threshold
|
|
607
|
-
IF scored.offTargetScore >= config.minScoreThreshold THEN
|
|
608
|
-
// Filter by expression level
|
|
609
|
-
expression ← GetTranscriptExpression(scored.site.transcriptId, config.alignedReads)
|
|
610
|
-
IF expression >= config.minExpressionThreshold THEN
|
|
611
|
-
filteredSites.append(scored)
|
|
612
|
-
END IF
|
|
613
|
-
END IF
|
|
614
|
-
END FOR
|
|
615
|
-
|
|
616
|
-
// Step 3: Rank by composite score
|
|
617
|
-
FOR EACH scored IN filteredSites DO
|
|
618
|
-
// Composite score = off-target probability × expression weight
|
|
619
|
-
expression ← GetTranscriptExpression(scored.site.transcriptId, config.alignedReads)
|
|
620
|
-
expressionWeight ← LOG(expression + 1) / 10 // Normalize
|
|
621
|
-
|
|
622
|
-
scored.compositeScore ← scored.offTargetScore × (1 + expressionWeight)
|
|
623
|
-
|
|
624
|
-
// Add biological context annotations
|
|
625
|
-
scored.annotations ← {
|
|
626
|
-
geneSymbol: GetGeneSymbol(scored.site.transcriptId),
|
|
627
|
-
biotype: GetBiotype(scored.site.transcriptId),
|
|
628
|
-
isEssentialGene: IsEssentialGene(scored.site.transcriptId),
|
|
629
|
-
pathways: GetAssociatedPathways(scored.site.transcriptId)
|
|
630
|
-
}
|
|
631
|
-
END FOR
|
|
632
|
-
|
|
633
|
-
// Step 4: Sort by composite score (descending)
|
|
634
|
-
rankedSites ← Sort(filteredSites, by = compositeScore, descending = true)
|
|
635
|
-
|
|
636
|
-
// Step 5: Apply top-k filtering if requested
|
|
637
|
-
IF config.maxReturnedSites > 0 THEN
|
|
638
|
-
rankedSites ← rankedSites[0 : config.maxReturnedSites]
|
|
639
|
-
END IF
|
|
640
|
-
|
|
641
|
-
LogInfo("Scored and ranked {length(rankedSites)} off-target sites")
|
|
642
|
-
|
|
643
|
-
RETURN rankedSites
|
|
644
|
-
END
|
|
645
|
-
|
|
646
|
-
SUBROUTINE: PredictGradientBoosting
|
|
647
|
-
INPUT: model (GradientBoostingModel), features (array of floats)
|
|
648
|
-
OUTPUT: prediction (float)
|
|
649
|
-
|
|
650
|
-
BEGIN
|
|
651
|
-
prediction ← model.baseScore
|
|
652
|
-
|
|
653
|
-
FOR EACH tree IN model.trees DO
|
|
654
|
-
treePrediction ← PredictTree(tree, features)
|
|
655
|
-
prediction ← prediction + model.learningRate × treePrediction
|
|
656
|
-
END FOR
|
|
657
|
-
|
|
658
|
-
RETURN prediction
|
|
659
|
-
END
|
|
660
|
-
|
|
661
|
-
SUBROUTINE: PredictTree
|
|
662
|
-
INPUT: tree (DecisionTree), features (array)
|
|
663
|
-
OUTPUT: prediction (float)
|
|
664
|
-
|
|
665
|
-
BEGIN
|
|
666
|
-
IF tree.isLeaf THEN
|
|
667
|
-
RETURN tree.prediction
|
|
668
|
-
END IF
|
|
669
|
-
|
|
670
|
-
featureValue ← features[tree.splitFeature]
|
|
671
|
-
|
|
672
|
-
IF featureValue <= tree.splitThreshold THEN
|
|
673
|
-
RETURN PredictTree(tree.leftChild, features)
|
|
674
|
-
ELSE
|
|
675
|
-
RETURN PredictTree(tree.rightChild, features)
|
|
676
|
-
END IF
|
|
677
|
-
END
|
|
678
|
-
|
|
679
|
-
SUBROUTINE: CalculateConfidenceInterval
|
|
680
|
-
INPUT: model (GradientBoostingModel), features (array)
|
|
681
|
-
OUTPUT: interval (object with lower and upper bounds)
|
|
682
|
-
|
|
683
|
-
BEGIN
|
|
684
|
-
// Use bootstrap aggregation to estimate uncertainty
|
|
685
|
-
NUM_BOOTSTRAP_SAMPLES ← 100
|
|
686
|
-
predictions ← []
|
|
687
|
-
|
|
688
|
-
FOR i ← 0 TO NUM_BOOTSTRAP_SAMPLES - 1 DO
|
|
689
|
-
// Randomly sample trees with replacement
|
|
690
|
-
sampledTrees ← RandomSampleWithReplacement(model.trees, length(model.trees))
|
|
691
|
-
|
|
692
|
-
// Create temporary model
|
|
693
|
-
tempModel ← {
|
|
694
|
-
trees: sampledTrees,
|
|
695
|
-
learningRate: model.learningRate,
|
|
696
|
-
baseScore: model.baseScore
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
pred ← PredictGradientBoosting(tempModel, features)
|
|
700
|
-
predictions.append(pred)
|
|
701
|
-
END FOR
|
|
702
|
-
|
|
703
|
-
// Calculate percentiles
|
|
704
|
-
sortedPredictions ← Sort(predictions)
|
|
705
|
-
lowerIdx ← FLOOR(NUM_BOOTSTRAP_SAMPLES × 0.025)
|
|
706
|
-
upperIdx ← FLOOR(NUM_BOOTSTRAP_SAMPLES × 0.975)
|
|
707
|
-
|
|
708
|
-
RETURN {
|
|
709
|
-
lower: sortedPredictions[lowerIdx],
|
|
710
|
-
upper: sortedPredictions[upperIdx],
|
|
711
|
-
median: sortedPredictions[FLOOR(NUM_BOOTSTRAP_SAMPLES / 2)]
|
|
712
|
-
}
|
|
713
|
-
END
|
|
714
|
-
```
|
|
715
|
-
|
|
716
|
-
**Complexity Analysis**:
|
|
717
|
-
- **Time**: O(K × T × D) where K = candidates, T = trees, D = depth
|
|
718
|
-
- **Space**: O(K × F) where F = feature dimensions
|
|
719
|
-
- **Inference Time**: 0.1-1 ms per candidate site
|
|
720
|
-
|
|
721
|
-
---
|
|
722
|
-
|
|
723
|
-
## Algorithm 5: Off-Target Prediction Pipeline
|
|
724
|
-
|
|
725
|
-
**Purpose**: Main pipeline orchestrating all off-target prediction steps.
|
|
726
|
-
|
|
727
|
-
```
|
|
728
|
-
ALGORITHM: PredictOffTargets
|
|
729
|
-
INPUT: gRNA (string), transcriptomeFile (path), alignedReadsFile (path),
|
|
730
|
-
modelFile (path), config (PipelineConfig)
|
|
731
|
-
OUTPUT: predictionResults (OffTargetPredictionResults)
|
|
732
|
-
|
|
733
|
-
BEGIN
|
|
734
|
-
startTime ← GetCurrentTime()
|
|
735
|
-
|
|
736
|
-
// Step 1: Load resources
|
|
737
|
-
LogInfo("Loading transcriptome and model...")
|
|
738
|
-
transcriptome ← LoadTranscriptome(transcriptomeFile)
|
|
739
|
-
trainedModel ← LoadModel(modelFile)
|
|
740
|
-
alignedReads ← OpenBAM(alignedReadsFile)
|
|
741
|
-
|
|
742
|
-
// Step 2: Discover candidate sites
|
|
743
|
-
LogInfo("Discovering candidate off-target sites...")
|
|
744
|
-
candidateSites ← DiscoverOffTargetSites(
|
|
745
|
-
gRNA,
|
|
746
|
-
transcriptome,
|
|
747
|
-
maxMismatches = config.maxMismatches
|
|
748
|
-
)
|
|
749
|
-
|
|
750
|
-
LogInfo("Found {length(candidateSites)} candidates")
|
|
751
|
-
|
|
752
|
-
IF length(candidateSites) == 0 THEN
|
|
753
|
-
LogWarning("No candidate sites found")
|
|
754
|
-
RETURN {
|
|
755
|
-
gRNA: gRNA,
|
|
756
|
-
offTargetSites: [],
|
|
757
|
-
statistics: {totalCandidates: 0, totalPredicted: 0}
|
|
758
|
-
}
|
|
759
|
-
END IF
|
|
760
|
-
|
|
761
|
-
// Step 3: Score candidates (parallelized)
|
|
762
|
-
LogInfo("Scoring candidate sites...")
|
|
763
|
-
rankedSites ← ScoreOffTargetSites(
|
|
764
|
-
candidateSites,
|
|
765
|
-
trainedModel,
|
|
766
|
-
gRNA,
|
|
767
|
-
config
|
|
768
|
-
)
|
|
769
|
-
|
|
770
|
-
// Step 4: Generate summary statistics
|
|
771
|
-
statistics ← {
|
|
772
|
-
totalCandidates: length(candidateSites),
|
|
773
|
-
totalPredicted: length(rankedSites),
|
|
774
|
-
highConfidenceSites: COUNT(site for site in rankedSites
|
|
775
|
-
WHERE site.offTargetScore >= 0.7),
|
|
776
|
-
mediumConfidenceSites: COUNT(site for site in rankedSites
|
|
777
|
-
WHERE site.offTargetScore >= 0.3 AND site.offTargetScore < 0.7),
|
|
778
|
-
lowConfidenceSites: COUNT(site for site in rankedSites
|
|
779
|
-
WHERE site.offTargetScore < 0.3),
|
|
780
|
-
meanScore: MEAN(site.offTargetScore for site in rankedSites),
|
|
781
|
-
medianScore: MEDIAN(site.offTargetScore for site in rankedSites),
|
|
782
|
-
processingTime: GetCurrentTime() - startTime
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
// Step 5: Create result object
|
|
786
|
-
results ← {
|
|
787
|
-
gRNA: gRNA,
|
|
788
|
-
offTargetSites: rankedSites,
|
|
789
|
-
statistics: statistics,
|
|
790
|
-
modelInfo: {
|
|
791
|
-
modelPath: modelFile,
|
|
792
|
-
numTrees: length(trainedModel.trees),
|
|
793
|
-
featureImportances: trainedModel.featureImportances
|
|
794
|
-
},
|
|
795
|
-
timestamp: GetCurrentTime()
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
LogInfo("Off-target prediction complete in {statistics.processingTime}s")
|
|
799
|
-
LogInfo("Found {statistics.highConfidenceSites} high-confidence off-targets")
|
|
800
|
-
|
|
801
|
-
RETURN results
|
|
802
|
-
END
|
|
803
|
-
```
|
|
804
|
-
|
|
805
|
-
**Complexity Analysis**:
|
|
806
|
-
- **Time**: O(T × L + K × log K + K × F × D) for full pipeline
|
|
807
|
-
- **Space**: O(T × L + K × F) where K = candidates
|
|
808
|
-
- **End-to-End Performance**: 1-10 seconds per gRNA
|
|
809
|
-
|
|
810
|
-
---
|
|
811
|
-
|
|
812
|
-
## Error Handling
|
|
813
|
-
|
|
814
|
-
### 1. Invalid Input Validation
|
|
815
|
-
|
|
816
|
-
```
|
|
817
|
-
FUNCTION: ValidateGRNA
|
|
818
|
-
INPUT: gRNA (string)
|
|
819
|
-
OUTPUT: boolean (valid or not)
|
|
820
|
-
|
|
821
|
-
BEGIN
|
|
822
|
-
// Check length
|
|
823
|
-
IF length(gRNA) < 18 OR length(gRNA) > 28 THEN
|
|
824
|
-
LogError("Invalid gRNA length: {length(gRNA)} (expected 18-28)")
|
|
825
|
-
RETURN false
|
|
826
|
-
END IF
|
|
827
|
-
|
|
828
|
-
// Check valid RNA bases
|
|
829
|
-
validBases ← {'A', 'U', 'C', 'G'}
|
|
830
|
-
FOR EACH base IN gRNA DO
|
|
831
|
-
IF base NOT IN validBases THEN
|
|
832
|
-
LogError("Invalid base '{base}' in gRNA (must be A, U, C, or G)")
|
|
833
|
-
RETURN false
|
|
834
|
-
END IF
|
|
835
|
-
END FOR
|
|
836
|
-
|
|
837
|
-
// Check for excessive homopolymers
|
|
838
|
-
maxHomopolymer ← FindMaxHomopolymerLength(gRNA)
|
|
839
|
-
IF maxHomopolymer >= 6 THEN
|
|
840
|
-
LogWarning("gRNA contains homopolymer run of length {maxHomopolymer}")
|
|
841
|
-
END IF
|
|
842
|
-
|
|
843
|
-
// Check GC content
|
|
844
|
-
gcContent ← CalculateGCContent(gRNA)
|
|
845
|
-
IF gcContent < 0.2 OR gcContent > 0.8 THEN
|
|
846
|
-
LogWarning("Extreme GC content: {gcContent × 100}%")
|
|
847
|
-
END IF
|
|
848
|
-
|
|
849
|
-
RETURN true
|
|
850
|
-
END
|
|
851
|
-
```
|
|
852
|
-
|
|
853
|
-
### 2. Model Loading Error Handling
|
|
854
|
-
|
|
855
|
-
```
|
|
856
|
-
FUNCTION: LoadModelSafely
|
|
857
|
-
INPUT: modelPath (string)
|
|
858
|
-
OUTPUT: model (GradientBoostingModel) or error
|
|
859
|
-
|
|
860
|
-
BEGIN
|
|
861
|
-
TRY
|
|
862
|
-
IF NOT FileExists(modelPath) THEN
|
|
863
|
-
RETURN error("MODEL_NOT_FOUND", "Model file not found: {modelPath}")
|
|
864
|
-
END IF
|
|
865
|
-
|
|
866
|
-
model ← DeserializeModel(modelPath)
|
|
867
|
-
|
|
868
|
-
// Validate model structure
|
|
869
|
-
IF model.trees == null OR length(model.trees) == 0 THEN
|
|
870
|
-
RETURN error("INVALID_MODEL", "Model has no trees")
|
|
871
|
-
END IF
|
|
872
|
-
|
|
873
|
-
IF model.learningRate <= 0 OR model.learningRate > 1 THEN
|
|
874
|
-
RETURN error("INVALID_MODEL", "Invalid learning rate: {model.learningRate}")
|
|
875
|
-
END IF
|
|
876
|
-
|
|
877
|
-
LogInfo("Loaded model with {length(model.trees)} trees")
|
|
878
|
-
RETURN model
|
|
879
|
-
|
|
880
|
-
CATCH IOException AS e DO
|
|
881
|
-
RETURN error("IO_ERROR", "Failed to read model file: {e.message}")
|
|
882
|
-
CATCH DeserializationError AS e DO
|
|
883
|
-
RETURN error("DESERIALIZATION_ERROR", "Corrupted model file: {e.message}")
|
|
884
|
-
END TRY
|
|
885
|
-
END
|
|
886
|
-
```
|
|
887
|
-
|
|
888
|
-
### 3. Resource Exhaustion Handling
|
|
889
|
-
|
|
890
|
-
```
|
|
891
|
-
FUNCTION: DiscoverOffTargetsWithLimits
|
|
892
|
-
INPUT: gRNA, transcriptome, maxMismatches, memoryLimitMB
|
|
893
|
-
OUTPUT: candidateSites (array)
|
|
894
|
-
|
|
895
|
-
BEGIN
|
|
896
|
-
candidateSites ← []
|
|
897
|
-
currentMemoryMB ← GetProcessMemoryUsage()
|
|
898
|
-
|
|
899
|
-
IF currentMemoryMB > memoryLimitMB × 0.9 THEN
|
|
900
|
-
LogWarning("Approaching memory limit, using stricter filtering")
|
|
901
|
-
// Reduce candidate set aggressively
|
|
902
|
-
maxMismatches ← MIN(2, maxMismatches)
|
|
903
|
-
END IF
|
|
904
|
-
|
|
905
|
-
candidateSites ← DiscoverOffTargetSites(gRNA, transcriptome, maxMismatches)
|
|
906
|
-
|
|
907
|
-
// If still too many candidates, filter by expression
|
|
908
|
-
IF length(candidateSites) > 10000 THEN
|
|
909
|
-
LogInfo("Too many candidates ({length(candidateSites)}), filtering by expression")
|
|
910
|
-
candidateSites ← FilterByExpression(candidateSites, minExpression = 1.0)
|
|
911
|
-
END IF
|
|
912
|
-
|
|
913
|
-
RETURN candidateSites
|
|
914
|
-
END
|
|
915
|
-
```
|
|
916
|
-
|
|
917
|
-
---
|
|
918
|
-
|
|
919
|
-
## Performance Optimization
|
|
920
|
-
|
|
921
|
-
### 1. Parallel Feature Extraction
|
|
922
|
-
|
|
923
|
-
```
|
|
924
|
-
FUNCTION: ExtractFeaturesBatch
|
|
925
|
-
INPUT: candidates (array), gRNA, config, numThreads
|
|
926
|
-
OUTPUT: featureMatrix (2D array)
|
|
927
|
-
|
|
928
|
-
BEGIN
|
|
929
|
-
batchSize ← CEILING(length(candidates) / numThreads)
|
|
930
|
-
|
|
931
|
-
featureMatrix ← ParallelMap(
|
|
932
|
-
candidates,
|
|
933
|
-
FUNCTION(candidate)
|
|
934
|
-
RETURN ExtractOffTargetFeatures(gRNA, candidate, config)
|
|
935
|
-
END FUNCTION,
|
|
936
|
-
numThreads = numThreads
|
|
937
|
-
)
|
|
938
|
-
|
|
939
|
-
RETURN featureMatrix
|
|
940
|
-
END
|
|
941
|
-
```
|
|
942
|
-
|
|
943
|
-
### 2. Caching Strategy
|
|
944
|
-
|
|
945
|
-
```
|
|
946
|
-
DATA STRUCTURE: TranscriptomeCache
|
|
947
|
-
kmerIndex: LRU Cache (size = 10GB)
|
|
948
|
-
expressionData: Hash table
|
|
949
|
-
structureData: LRU Cache (size = 1GB)
|
|
950
|
-
|
|
951
|
-
FUNCTION: GetCachedKmerIndex
|
|
952
|
-
INPUT: transcriptomeFile (path)
|
|
953
|
-
OUTPUT: kmerIndex
|
|
954
|
-
|
|
955
|
-
BEGIN
|
|
956
|
-
cacheKey ← Hash(transcriptomeFile)
|
|
957
|
-
|
|
958
|
-
IF cacheKey IN TranscriptomeCache.kmerIndex THEN
|
|
959
|
-
LogInfo("Using cached k-mer index")
|
|
960
|
-
RETURN TranscriptomeCache.kmerIndex[cacheKey]
|
|
961
|
-
ELSE
|
|
962
|
-
transcriptome ← LoadTranscriptome(transcriptomeFile)
|
|
963
|
-
kmerIndex ← BuildKmerIndex(transcriptome)
|
|
964
|
-
TranscriptomeCache.kmerIndex[cacheKey] ← kmerIndex
|
|
965
|
-
RETURN kmerIndex
|
|
966
|
-
END IF
|
|
967
|
-
END
|
|
968
|
-
```
|
|
969
|
-
|
|
970
|
-
---
|
|
971
|
-
|
|
972
|
-
## Testing and Validation
|
|
973
|
-
|
|
974
|
-
### 1. Unit Tests
|
|
975
|
-
|
|
976
|
-
```
|
|
977
|
-
TEST: FeatureExtractionConsistency
|
|
978
|
-
BEGIN
|
|
979
|
-
gRNA ← "GUUUUAGAGCUAUGCUGUUUUG"
|
|
980
|
-
target ← "GUUUUAGAGCUAUGCUGUUUUA" // 1 mismatch at end
|
|
981
|
-
|
|
982
|
-
candidate ← CreateMockCandidate(target)
|
|
983
|
-
features ← ExtractOffTargetFeatures(gRNA, candidate, mockConfig)
|
|
984
|
-
|
|
985
|
-
ASSERT features[0] == 1 // Total mismatches
|
|
986
|
-
ASSERT features[1] == 1 // Seed mismatches
|
|
987
|
-
ASSERT length(features) == 15 // Expected feature count
|
|
988
|
-
END
|
|
989
|
-
|
|
990
|
-
TEST: GradientBoostingPrediction
|
|
991
|
-
BEGIN
|
|
992
|
-
model ← CreateMockModel(numTrees = 10)
|
|
993
|
-
features ← [0.5, 1.0, 0.3, 2.1, 0.8]
|
|
994
|
-
|
|
995
|
-
prediction ← PredictGradientBoosting(model, features)
|
|
996
|
-
|
|
997
|
-
ASSERT prediction >= 0 AND prediction <= 1
|
|
998
|
-
END
|
|
999
|
-
```
|
|
1000
|
-
|
|
1001
|
-
### 2. Integration Tests
|
|
1002
|
-
|
|
1003
|
-
```
|
|
1004
|
-
TEST: EndToEndOffTargetPrediction
|
|
1005
|
-
BEGIN
|
|
1006
|
-
// Use small test dataset
|
|
1007
|
-
gRNA ← "GUUUUAGAGCUAUGCUGUUUUG"
|
|
1008
|
-
transcriptome ← LoadTestTranscriptome("test_data/small_transcriptome.fa")
|
|
1009
|
-
model ← LoadTestModel("test_data/test_model.gbm")
|
|
1010
|
-
|
|
1011
|
-
results ← PredictOffTargets(gRNA, transcriptome, model, testConfig)
|
|
1012
|
-
|
|
1013
|
-
ASSERT results.statistics.totalCandidates > 0
|
|
1014
|
-
ASSERT results.statistics.totalPredicted <= results.statistics.totalCandidates
|
|
1015
|
-
ASSERT ALL(site.offTargetScore >= 0 AND site.offTargetScore <= 1
|
|
1016
|
-
for site in results.offTargetSites)
|
|
1017
|
-
END
|
|
1018
|
-
```
|
|
1019
|
-
|
|
1020
|
-
---
|
|
1021
|
-
|
|
1022
|
-
## References
|
|
1023
|
-
|
|
1024
|
-
1. Haeussler, M., et al. (2016). Evaluation of off-target and on-target scoring algorithms. *Genome Biology*.
|
|
1025
|
-
2. Friedman, J. H. (2001). Greedy function approximation: A gradient boosting machine. *Annals of Statistics*.
|
|
1026
|
-
3. Doench, J. G., et al. (2016). Optimized sgRNA design to maximize activity and minimize off-target effects. *Nature Biotechnology*.
|
|
1027
|
-
|
|
1028
|
-
---
|
|
1029
|
-
|
|
1030
|
-
**Next Module**: Differential Expression Analysis Module
|