@intrect/openswarm 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +544 -0
- package/config.example.yaml +107 -0
- package/dist/adapters/base.d.ts +8 -0
- package/dist/adapters/base.d.ts.map +1 -0
- package/dist/adapters/base.js +104 -0
- package/dist/adapters/base.js.map +1 -0
- package/dist/adapters/claude.d.ts +13 -0
- package/dist/adapters/claude.d.ts.map +1 -0
- package/dist/adapters/claude.js +318 -0
- package/dist/adapters/claude.js.map +1 -0
- package/dist/adapters/codex.d.ts +14 -0
- package/dist/adapters/codex.d.ts.map +1 -0
- package/dist/adapters/codex.js +366 -0
- package/dist/adapters/codex.js.map +1 -0
- package/dist/adapters/cryptoQuantAdapter.d.ts +85 -0
- package/dist/adapters/cryptoQuantAdapter.d.ts.map +1 -0
- package/dist/adapters/cryptoQuantAdapter.js +238 -0
- package/dist/adapters/cryptoQuantAdapter.js.map +1 -0
- package/dist/adapters/index.d.ts +17 -0
- package/dist/adapters/index.d.ts.map +1 -0
- package/dist/adapters/index.js +47 -0
- package/dist/adapters/index.js.map +1 -0
- package/dist/adapters/processRegistry.d.ts +38 -0
- package/dist/adapters/processRegistry.d.ts.map +1 -0
- package/dist/adapters/processRegistry.js +147 -0
- package/dist/adapters/processRegistry.js.map +1 -0
- package/dist/adapters/streamBuffer.d.ts +59 -0
- package/dist/adapters/streamBuffer.d.ts.map +1 -0
- package/dist/adapters/streamBuffer.js +123 -0
- package/dist/adapters/streamBuffer.js.map +1 -0
- package/dist/adapters/types.d.ts +65 -0
- package/dist/adapters/types.d.ts.map +1 -0
- package/dist/adapters/types.js +6 -0
- package/dist/adapters/types.js.map +1 -0
- package/dist/agents/agentBus.d.ts +160 -0
- package/dist/agents/agentBus.d.ts.map +1 -0
- package/dist/agents/agentBus.js +350 -0
- package/dist/agents/agentBus.js.map +1 -0
- package/dist/agents/agentPair.d.ts +210 -0
- package/dist/agents/agentPair.d.ts.map +1 -0
- package/dist/agents/agentPair.js +420 -0
- package/dist/agents/agentPair.js.map +1 -0
- package/dist/agents/auditor.d.ts +27 -0
- package/dist/agents/auditor.d.ts.map +1 -0
- package/dist/agents/auditor.js +237 -0
- package/dist/agents/auditor.js.map +1 -0
- package/dist/agents/cliStreamParser.d.ts +18 -0
- package/dist/agents/cliStreamParser.d.ts.map +1 -0
- package/dist/agents/cliStreamParser.js +156 -0
- package/dist/agents/cliStreamParser.js.map +1 -0
- package/dist/agents/documenter.d.ts +31 -0
- package/dist/agents/documenter.d.ts.map +1 -0
- package/dist/agents/documenter.js +285 -0
- package/dist/agents/documenter.js.map +1 -0
- package/dist/agents/index.d.ts +10 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +10 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/pairMetrics.d.ts +63 -0
- package/dist/agents/pairMetrics.d.ts.map +1 -0
- package/dist/agents/pairMetrics.js +231 -0
- package/dist/agents/pairMetrics.js.map +1 -0
- package/dist/agents/pairPipeline.d.ts +155 -0
- package/dist/agents/pairPipeline.d.ts.map +1 -0
- package/dist/agents/pairPipeline.js +793 -0
- package/dist/agents/pairPipeline.js.map +1 -0
- package/dist/agents/pairWebhook.d.ts +59 -0
- package/dist/agents/pairWebhook.d.ts.map +1 -0
- package/dist/agents/pairWebhook.js +242 -0
- package/dist/agents/pairWebhook.js.map +1 -0
- package/dist/agents/pipelineFormat.d.ts +11 -0
- package/dist/agents/pipelineFormat.d.ts.map +1 -0
- package/dist/agents/pipelineFormat.js +164 -0
- package/dist/agents/pipelineFormat.js.map +1 -0
- package/dist/agents/pipelineGuards.d.ts +23 -0
- package/dist/agents/pipelineGuards.d.ts.map +1 -0
- package/dist/agents/pipelineGuards.js +175 -0
- package/dist/agents/pipelineGuards.js.map +1 -0
- package/dist/agents/reviewer.d.ts +37 -0
- package/dist/agents/reviewer.d.ts.map +1 -0
- package/dist/agents/reviewer.js +213 -0
- package/dist/agents/reviewer.js.map +1 -0
- package/dist/agents/skillDocumenter.d.ts +23 -0
- package/dist/agents/skillDocumenter.d.ts.map +1 -0
- package/dist/agents/skillDocumenter.js +218 -0
- package/dist/agents/skillDocumenter.js.map +1 -0
- package/dist/agents/tester.d.ts +37 -0
- package/dist/agents/tester.d.ts.map +1 -0
- package/dist/agents/tester.js +308 -0
- package/dist/agents/tester.js.map +1 -0
- package/dist/agents/worker.d.ts +30 -0
- package/dist/agents/worker.d.ts.map +1 -0
- package/dist/agents/worker.js +128 -0
- package/dist/agents/worker.js.map +1 -0
- package/dist/automation/autonomousRunner.d.ts +123 -0
- package/dist/automation/autonomousRunner.d.ts.map +1 -0
- package/dist/automation/autonomousRunner.js +1082 -0
- package/dist/automation/autonomousRunner.js.map +1 -0
- package/dist/automation/ciWorker.d.ts +51 -0
- package/dist/automation/ciWorker.d.ts.map +1 -0
- package/dist/automation/ciWorker.js +282 -0
- package/dist/automation/ciWorker.js.map +1 -0
- package/dist/automation/conflictResolver.d.ts +29 -0
- package/dist/automation/conflictResolver.d.ts.map +1 -0
- package/dist/automation/conflictResolver.js +261 -0
- package/dist/automation/conflictResolver.js.map +1 -0
- package/dist/automation/dailyReporter.d.ts +26 -0
- package/dist/automation/dailyReporter.d.ts.map +1 -0
- package/dist/automation/dailyReporter.js +132 -0
- package/dist/automation/dailyReporter.js.map +1 -0
- package/dist/automation/index.d.ts +7 -0
- package/dist/automation/index.d.ts.map +1 -0
- package/dist/automation/index.js +7 -0
- package/dist/automation/index.js.map +1 -0
- package/dist/automation/longRunningMonitor.d.ts +26 -0
- package/dist/automation/longRunningMonitor.d.ts.map +1 -0
- package/dist/automation/longRunningMonitor.js +231 -0
- package/dist/automation/longRunningMonitor.js.map +1 -0
- package/dist/automation/prOwnership.d.ts +18 -0
- package/dist/automation/prOwnership.d.ts.map +1 -0
- package/dist/automation/prOwnership.js +61 -0
- package/dist/automation/prOwnership.js.map +1 -0
- package/dist/automation/prProcessor.d.ts +62 -0
- package/dist/automation/prProcessor.d.ts.map +1 -0
- package/dist/automation/prProcessor.js +700 -0
- package/dist/automation/prProcessor.js.map +1 -0
- package/dist/automation/runnerExecution.d.ts +49 -0
- package/dist/automation/runnerExecution.d.ts.map +1 -0
- package/dist/automation/runnerExecution.js +663 -0
- package/dist/automation/runnerExecution.js.map +1 -0
- package/dist/automation/runnerState.d.ts +170 -0
- package/dist/automation/runnerState.d.ts.map +1 -0
- package/dist/automation/runnerState.js +495 -0
- package/dist/automation/runnerState.js.map +1 -0
- package/dist/automation/runnerTypes.d.ts +46 -0
- package/dist/automation/runnerTypes.d.ts.map +1 -0
- package/dist/automation/runnerTypes.js +5 -0
- package/dist/automation/runnerTypes.js.map +1 -0
- package/dist/automation/scheduler.d.ts +75 -0
- package/dist/automation/scheduler.d.ts.map +1 -0
- package/dist/automation/scheduler.js +394 -0
- package/dist/automation/scheduler.js.map +1 -0
- package/dist/cli/promptHandler.d.ts +13 -0
- package/dist/cli/promptHandler.d.ts.map +1 -0
- package/dist/cli/promptHandler.js +189 -0
- package/dist/cli/promptHandler.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +138 -0
- package/dist/cli.js.map +1 -0
- package/dist/core/config.d.ts +308 -0
- package/dist/core/config.d.ts.map +1 -0
- package/dist/core/config.js +529 -0
- package/dist/core/config.js.map +1 -0
- package/dist/core/eventHub.d.ts +194 -0
- package/dist/core/eventHub.d.ts.map +1 -0
- package/dist/core/eventHub.js +136 -0
- package/dist/core/eventHub.js.map +1 -0
- package/dist/core/index.d.ts +6 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +6 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/service.d.ts +27 -0
- package/dist/core/service.d.ts.map +1 -0
- package/dist/core/service.js +438 -0
- package/dist/core/service.js.map +1 -0
- package/dist/core/traceCollector.d.ts +105 -0
- package/dist/core/traceCollector.d.ts.map +1 -0
- package/dist/core/traceCollector.js +141 -0
- package/dist/core/traceCollector.js.map +1 -0
- package/dist/core/types.d.ts +413 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +5 -0
- package/dist/core/types.js.map +1 -0
- package/dist/discord/discordCore.d.ts +104 -0
- package/dist/discord/discordCore.d.ts.map +1 -0
- package/dist/discord/discordCore.js +698 -0
- package/dist/discord/discordCore.js.map +1 -0
- package/dist/discord/discordHandlers.d.ts +86 -0
- package/dist/discord/discordHandlers.d.ts.map +1 -0
- package/dist/discord/discordHandlers.js +849 -0
- package/dist/discord/discordHandlers.js.map +1 -0
- package/dist/discord/discordPair.d.ts +6 -0
- package/dist/discord/discordPair.d.ts.map +1 -0
- package/dist/discord/discordPair.js +567 -0
- package/dist/discord/discordPair.js.map +1 -0
- package/dist/discord/index.d.ts +4 -0
- package/dist/discord/index.d.ts.map +1 -0
- package/dist/discord/index.js +11 -0
- package/dist/discord/index.js.map +1 -0
- package/dist/github/github.d.ts +236 -0
- package/dist/github/github.d.ts.map +1 -0
- package/dist/github/github.js +535 -0
- package/dist/github/github.js.map +1 -0
- package/dist/github/index.d.ts +2 -0
- package/dist/github/index.d.ts.map +1 -0
- package/dist/github/index.js +2 -0
- package/dist/github/index.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +60 -0
- package/dist/index.js.map +1 -0
- package/dist/knowledge/analyzer.d.ts +36 -0
- package/dist/knowledge/analyzer.d.ts.map +1 -0
- package/dist/knowledge/analyzer.js +170 -0
- package/dist/knowledge/analyzer.js.map +1 -0
- package/dist/knowledge/gitInfo.d.ts +10 -0
- package/dist/knowledge/gitInfo.d.ts.map +1 -0
- package/dist/knowledge/gitInfo.js +134 -0
- package/dist/knowledge/gitInfo.js.map +1 -0
- package/dist/knowledge/graph.d.ts +45 -0
- package/dist/knowledge/graph.d.ts.map +1 -0
- package/dist/knowledge/graph.js +262 -0
- package/dist/knowledge/graph.js.map +1 -0
- package/dist/knowledge/graphqlExporter.d.ts +64 -0
- package/dist/knowledge/graphqlExporter.d.ts.map +1 -0
- package/dist/knowledge/graphqlExporter.js +333 -0
- package/dist/knowledge/graphqlExporter.js.map +1 -0
- package/dist/knowledge/index.d.ts +58 -0
- package/dist/knowledge/index.d.ts.map +1 -0
- package/dist/knowledge/index.js +212 -0
- package/dist/knowledge/index.js.map +1 -0
- package/dist/knowledge/repository.d.ts +64 -0
- package/dist/knowledge/repository.d.ts.map +1 -0
- package/dist/knowledge/repository.js +250 -0
- package/dist/knowledge/repository.js.map +1 -0
- package/dist/knowledge/riskOnAnalyzer.d.ts +79 -0
- package/dist/knowledge/riskOnAnalyzer.d.ts.map +1 -0
- package/dist/knowledge/riskOnAnalyzer.js +243 -0
- package/dist/knowledge/riskOnAnalyzer.js.map +1 -0
- package/dist/knowledge/scanner.d.ts +14 -0
- package/dist/knowledge/scanner.d.ts.map +1 -0
- package/dist/knowledge/scanner.js +350 -0
- package/dist/knowledge/scanner.js.map +1 -0
- package/dist/knowledge/store.d.ts +23 -0
- package/dist/knowledge/store.d.ts.map +1 -0
- package/dist/knowledge/store.js +86 -0
- package/dist/knowledge/store.js.map +1 -0
- package/dist/knowledge/types.d.ts +288 -0
- package/dist/knowledge/types.d.ts.map +1 -0
- package/dist/knowledge/types.js +111 -0
- package/dist/knowledge/types.js.map +1 -0
- package/dist/linear/index.d.ts +3 -0
- package/dist/linear/index.d.ts.map +1 -0
- package/dist/linear/index.js +3 -0
- package/dist/linear/index.js.map +1 -0
- package/dist/linear/linear.d.ts +160 -0
- package/dist/linear/linear.d.ts.map +1 -0
- package/dist/linear/linear.js +983 -0
- package/dist/linear/linear.js.map +1 -0
- package/dist/linear/projectUpdater.d.ts +23 -0
- package/dist/linear/projectUpdater.d.ts.map +1 -0
- package/dist/linear/projectUpdater.js +347 -0
- package/dist/linear/projectUpdater.js.map +1 -0
- package/dist/locale/en.d.ts +3 -0
- package/dist/locale/en.d.ts.map +1 -0
- package/dist/locale/en.js +436 -0
- package/dist/locale/en.js.map +1 -0
- package/dist/locale/index.d.ts +28 -0
- package/dist/locale/index.d.ts.map +1 -0
- package/dist/locale/index.js +89 -0
- package/dist/locale/index.js.map +1 -0
- package/dist/locale/ko.d.ts +3 -0
- package/dist/locale/ko.d.ts.map +1 -0
- package/dist/locale/ko.js +436 -0
- package/dist/locale/ko.js.map +1 -0
- package/dist/locale/prompts/en.d.ts +3 -0
- package/dist/locale/prompts/en.d.ts.map +1 -0
- package/dist/locale/prompts/en.js +278 -0
- package/dist/locale/prompts/en.js.map +1 -0
- package/dist/locale/prompts/ko.d.ts +3 -0
- package/dist/locale/prompts/ko.d.ts.map +1 -0
- package/dist/locale/prompts/ko.js +279 -0
- package/dist/locale/prompts/ko.js.map +1 -0
- package/dist/locale/types.d.ts +407 -0
- package/dist/locale/types.d.ts.map +1 -0
- package/dist/locale/types.js +5 -0
- package/dist/locale/types.js.map +1 -0
- package/dist/memory/codex.d.ts +93 -0
- package/dist/memory/codex.d.ts.map +1 -0
- package/dist/memory/codex.js +366 -0
- package/dist/memory/codex.js.map +1 -0
- package/dist/memory/compaction.d.ts +21 -0
- package/dist/memory/compaction.d.ts.map +1 -0
- package/dist/memory/compaction.js +205 -0
- package/dist/memory/compaction.js.map +1 -0
- package/dist/memory/index.d.ts +13 -0
- package/dist/memory/index.d.ts.map +1 -0
- package/dist/memory/index.js +13 -0
- package/dist/memory/index.js.map +1 -0
- package/dist/memory/memoryCore.d.ts +178 -0
- package/dist/memory/memoryCore.d.ts.map +1 -0
- package/dist/memory/memoryCore.js +623 -0
- package/dist/memory/memoryCore.js.map +1 -0
- package/dist/memory/memoryOps.d.ts +90 -0
- package/dist/memory/memoryOps.d.ts.map +1 -0
- package/dist/memory/memoryOps.js +606 -0
- package/dist/memory/memoryOps.js.map +1 -0
- package/dist/orchestration/conflictDetector.d.ts +15 -0
- package/dist/orchestration/conflictDetector.d.ts.map +1 -0
- package/dist/orchestration/conflictDetector.js +130 -0
- package/dist/orchestration/conflictDetector.js.map +1 -0
- package/dist/orchestration/decisionEngine.d.ts +177 -0
- package/dist/orchestration/decisionEngine.d.ts.map +1 -0
- package/dist/orchestration/decisionEngine.js +496 -0
- package/dist/orchestration/decisionEngine.js.map +1 -0
- package/dist/orchestration/index.d.ts +5 -0
- package/dist/orchestration/index.d.ts.map +1 -0
- package/dist/orchestration/index.js +5 -0
- package/dist/orchestration/index.js.map +1 -0
- package/dist/orchestration/taskParser.d.ts +67 -0
- package/dist/orchestration/taskParser.d.ts.map +1 -0
- package/dist/orchestration/taskParser.js +542 -0
- package/dist/orchestration/taskParser.js.map +1 -0
- package/dist/orchestration/taskScheduler.d.ts +141 -0
- package/dist/orchestration/taskScheduler.d.ts.map +1 -0
- package/dist/orchestration/taskScheduler.js +317 -0
- package/dist/orchestration/taskScheduler.js.map +1 -0
- package/dist/orchestration/workflow.d.ts +145 -0
- package/dist/orchestration/workflow.d.ts.map +1 -0
- package/dist/orchestration/workflow.js +301 -0
- package/dist/orchestration/workflow.js.map +1 -0
- package/dist/runners/cliRunner.d.ts +11 -0
- package/dist/runners/cliRunner.d.ts.map +1 -0
- package/dist/runners/cliRunner.js +194 -0
- package/dist/runners/cliRunner.js.map +1 -0
- package/dist/support/apiCache.d.ts +85 -0
- package/dist/support/apiCache.d.ts.map +1 -0
- package/dist/support/apiCache.js +163 -0
- package/dist/support/apiCache.js.map +1 -0
- package/dist/support/chat.d.ts +3 -0
- package/dist/support/chat.d.ts.map +1 -0
- package/dist/support/chat.js +304 -0
- package/dist/support/chat.js.map +1 -0
- package/dist/support/chatBackend.d.ts +25 -0
- package/dist/support/chatBackend.d.ts.map +1 -0
- package/dist/support/chatBackend.js +235 -0
- package/dist/support/chatBackend.js.map +1 -0
- package/dist/support/chatMemory.d.ts +71 -0
- package/dist/support/chatMemory.d.ts.map +1 -0
- package/dist/support/chatMemory.js +119 -0
- package/dist/support/chatMemory.js.map +1 -0
- package/dist/support/chatTui.d.ts +3 -0
- package/dist/support/chatTui.d.ts.map +1 -0
- package/dist/support/chatTui.js +998 -0
- package/dist/support/chatTui.js.map +1 -0
- package/dist/support/costTracker.d.ts +29 -0
- package/dist/support/costTracker.d.ts.map +1 -0
- package/dist/support/costTracker.js +113 -0
- package/dist/support/costTracker.js.map +1 -0
- package/dist/support/dashboardHtml.d.ts +3 -0
- package/dist/support/dashboardHtml.d.ts.map +1 -0
- package/dist/support/dashboardHtml.js +2070 -0
- package/dist/support/dashboardHtml.js.map +1 -0
- package/dist/support/delete-beliefs.d.ts +2 -0
- package/dist/support/delete-beliefs.d.ts.map +1 -0
- package/dist/support/delete-beliefs.js +34 -0
- package/dist/support/delete-beliefs.js.map +1 -0
- package/dist/support/dev.d.ts +55 -0
- package/dist/support/dev.d.ts.map +1 -0
- package/dist/support/dev.js +298 -0
- package/dist/support/dev.js.map +1 -0
- package/dist/support/editParser.d.ts +37 -0
- package/dist/support/editParser.d.ts.map +1 -0
- package/dist/support/editParser.js +365 -0
- package/dist/support/editParser.js.map +1 -0
- package/dist/support/gitStatus.d.ts +21 -0
- package/dist/support/gitStatus.d.ts.map +1 -0
- package/dist/support/gitStatus.js +108 -0
- package/dist/support/gitStatus.js.map +1 -0
- package/dist/support/gitTracker.d.ts +30 -0
- package/dist/support/gitTracker.d.ts.map +1 -0
- package/dist/support/gitTracker.js +143 -0
- package/dist/support/gitTracker.js.map +1 -0
- package/dist/support/index.d.ts +13 -0
- package/dist/support/index.d.ts.map +1 -0
- package/dist/support/index.js +13 -0
- package/dist/support/index.js.map +1 -0
- package/dist/support/planner.d.ts +58 -0
- package/dist/support/planner.d.ts.map +1 -0
- package/dist/support/planner.js +395 -0
- package/dist/support/planner.js.map +1 -0
- package/dist/support/projectMapper.d.ts +46 -0
- package/dist/support/projectMapper.d.ts.map +1 -0
- package/dist/support/projectMapper.js +259 -0
- package/dist/support/projectMapper.js.map +1 -0
- package/dist/support/quotaTracker.d.ts +29 -0
- package/dist/support/quotaTracker.d.ts.map +1 -0
- package/dist/support/quotaTracker.js +89 -0
- package/dist/support/quotaTracker.js.map +1 -0
- package/dist/support/rateLimiter.d.ts +101 -0
- package/dist/support/rateLimiter.d.ts.map +1 -0
- package/dist/support/rateLimiter.js +219 -0
- package/dist/support/rateLimiter.js.map +1 -0
- package/dist/support/rollback.d.ts +61 -0
- package/dist/support/rollback.d.ts.map +1 -0
- package/dist/support/rollback.js +328 -0
- package/dist/support/rollback.js.map +1 -0
- package/dist/support/stuckDetector.d.ts +68 -0
- package/dist/support/stuckDetector.d.ts.map +1 -0
- package/dist/support/stuckDetector.js +174 -0
- package/dist/support/stuckDetector.js.map +1 -0
- package/dist/support/timeWindow.d.ts +60 -0
- package/dist/support/timeWindow.d.ts.map +1 -0
- package/dist/support/timeWindow.js +236 -0
- package/dist/support/timeWindow.js.map +1 -0
- package/dist/support/web.d.ts +11 -0
- package/dist/support/web.d.ts.map +1 -0
- package/dist/support/web.js +938 -0
- package/dist/support/web.js.map +1 -0
- package/dist/support/workflowLinear.d.ts +99 -0
- package/dist/support/workflowLinear.d.ts.map +1 -0
- package/dist/support/workflowLinear.js +257 -0
- package/dist/support/workflowLinear.js.map +1 -0
- package/dist/support/worktreeManager.d.ts +20 -0
- package/dist/support/worktreeManager.d.ts.map +1 -0
- package/dist/support/worktreeManager.js +144 -0
- package/dist/support/worktreeManager.js.map +1 -0
- package/dist/taskState/store.d.ts +101 -0
- package/dist/taskState/store.d.ts.map +1 -0
- package/dist/taskState/store.js +346 -0
- package/dist/taskState/store.js.map +1 -0
- package/package.json +70 -0
- package/templates/AGENTS.md +432 -0
- package/templates/BOOT.md +25 -0
- package/templates/BOOTSTRAP.md +50 -0
- package/templates/CHANGELOG_AUDIT.md +74 -0
- package/templates/HEARTBEAT.md +86 -0
- package/templates/IDENTITY.md +27 -0
- package/templates/ISSUE_ANALYSIS.md +31 -0
- package/templates/PR_LAND.md +75 -0
- package/templates/PR_REVIEW.md +97 -0
- package/templates/SOUL.dev.md +52 -0
- package/templates/SOUL.md +81 -0
- package/templates/TOOLS.md +52 -0
- package/templates/USER.md +22 -0
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
// ============================================
|
|
2
|
+
// OpenSwarm - Worktree File Conflict Detector
|
|
3
|
+
// Knowledge Graph 기반 태스크 간 파일 충돌 감지
|
|
4
|
+
// Created: 2026-03-14
|
|
5
|
+
// Purpose: 병렬 워크트리 실행 시 동일 파일 수정 충돌 방지
|
|
6
|
+
import { analyzeIssue } from '../knowledge/index.js';
|
|
7
|
+
// Union-Find (Disjoint Set)
|
|
8
|
+
class UnionFind {
|
|
9
|
+
parent = new Map();
|
|
10
|
+
rank = new Map();
|
|
11
|
+
constructor(size) {
|
|
12
|
+
for (let i = 0; i < size; i++) {
|
|
13
|
+
this.parent.set(i, i);
|
|
14
|
+
this.rank.set(i, 0);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
find(x) {
|
|
18
|
+
if (this.parent.get(x) !== x) {
|
|
19
|
+
this.parent.set(x, this.find(this.parent.get(x)));
|
|
20
|
+
}
|
|
21
|
+
return this.parent.get(x);
|
|
22
|
+
}
|
|
23
|
+
union(x, y) {
|
|
24
|
+
const rx = this.find(x);
|
|
25
|
+
const ry = this.find(y);
|
|
26
|
+
if (rx === ry)
|
|
27
|
+
return;
|
|
28
|
+
const rankX = this.rank.get(rx);
|
|
29
|
+
const rankY = this.rank.get(ry);
|
|
30
|
+
if (rankX < rankY) {
|
|
31
|
+
this.parent.set(rx, ry);
|
|
32
|
+
}
|
|
33
|
+
else if (rankX > rankY) {
|
|
34
|
+
this.parent.set(ry, rx);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
this.parent.set(ry, rx);
|
|
38
|
+
this.rank.set(rx, rankX + 1);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
// Conflict Detection
|
|
43
|
+
/**
|
|
44
|
+
* Knowledge Graph를 사용하여 태스크 간 파일 영향 범위 겹침을 감지.
|
|
45
|
+
* 겹치는 태스크를 ConflictGroup으로 묶고, 각 그룹에서 최고 우선순위만 safe로 반환.
|
|
46
|
+
*/
|
|
47
|
+
export async function detectFileConflicts(tasks, projectPath) {
|
|
48
|
+
if (tasks.length <= 1) {
|
|
49
|
+
return { safe: tasks, conflictGroups: [] };
|
|
50
|
+
}
|
|
51
|
+
// Step 1: 각 태스크의 영향 모듈 집합 수집
|
|
52
|
+
const taskImpacts = new Map();
|
|
53
|
+
const impactResults = new Map();
|
|
54
|
+
await Promise.all(tasks.map(async (task, idx) => {
|
|
55
|
+
const impact = await analyzeIssue(projectPath, task.title, task.description);
|
|
56
|
+
impactResults.set(idx, impact);
|
|
57
|
+
if (impact) {
|
|
58
|
+
const modules = new Set([...impact.directModules, ...impact.dependentModules]);
|
|
59
|
+
taskImpacts.set(idx, modules);
|
|
60
|
+
}
|
|
61
|
+
}));
|
|
62
|
+
// Step 2: 태스크 쌍 비교로 교집합 계산 → Union-Find로 충돌 그룹 병합
|
|
63
|
+
const uf = new UnionFind(tasks.length);
|
|
64
|
+
// 쌍별 공유 모듈 기록
|
|
65
|
+
const pairShared = new Map();
|
|
66
|
+
for (let i = 0; i < tasks.length; i++) {
|
|
67
|
+
const modulesI = taskImpacts.get(i);
|
|
68
|
+
if (!modulesI || modulesI.size === 0)
|
|
69
|
+
continue;
|
|
70
|
+
for (let j = i + 1; j < tasks.length; j++) {
|
|
71
|
+
const modulesJ = taskImpacts.get(j);
|
|
72
|
+
if (!modulesJ || modulesJ.size === 0)
|
|
73
|
+
continue;
|
|
74
|
+
// 교집합 계산
|
|
75
|
+
const shared = [];
|
|
76
|
+
for (const mod of modulesI) {
|
|
77
|
+
if (modulesJ.has(mod)) {
|
|
78
|
+
shared.push(mod);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
if (shared.length > 0) {
|
|
82
|
+
uf.union(i, j);
|
|
83
|
+
const key = `${uf.find(i)}`;
|
|
84
|
+
if (!pairShared.has(key)) {
|
|
85
|
+
pairShared.set(key, new Set());
|
|
86
|
+
}
|
|
87
|
+
for (const mod of shared) {
|
|
88
|
+
pairShared.get(key).add(mod);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
// Step 3: 그룹 구성
|
|
94
|
+
const groups = new Map();
|
|
95
|
+
for (let i = 0; i < tasks.length; i++) {
|
|
96
|
+
const root = uf.find(i);
|
|
97
|
+
if (!groups.has(root)) {
|
|
98
|
+
groups.set(root, []);
|
|
99
|
+
}
|
|
100
|
+
groups.get(root).push(i);
|
|
101
|
+
}
|
|
102
|
+
// Step 4: safe / conflictGroups 분류
|
|
103
|
+
const safe = [];
|
|
104
|
+
const conflictGroups = [];
|
|
105
|
+
for (const [root, indices] of groups) {
|
|
106
|
+
// 영향 분석이 없는 태스크(그래프 미존재)는 단독 그룹으로 safe
|
|
107
|
+
const hasImpact = indices.some(i => taskImpacts.has(i));
|
|
108
|
+
if (indices.length === 1 || !hasImpact) {
|
|
109
|
+
// 단일 태스크 또는 영향 분석 없음 → safe
|
|
110
|
+
for (const idx of indices) {
|
|
111
|
+
safe.push(tasks[idx]);
|
|
112
|
+
}
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
// 충돌 그룹: 최고 우선순위(낮은 숫자) 태스크만 safe에 포함
|
|
116
|
+
const groupTasks = indices.map(i => tasks[i]);
|
|
117
|
+
const sharedModules = Array.from(pairShared.get(`${root}`) || []);
|
|
118
|
+
// 우선순위 기준 정렬 (1=Urgent > 4=Low)
|
|
119
|
+
groupTasks.sort((a, b) => a.priority - b.priority);
|
|
120
|
+
// 최고 우선순위 태스크만 safe
|
|
121
|
+
safe.push(groupTasks[0]);
|
|
122
|
+
// 나머지는 충돌 그룹으로 기록
|
|
123
|
+
conflictGroups.push({
|
|
124
|
+
tasks: groupTasks,
|
|
125
|
+
sharedModules,
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
return { safe, conflictGroups };
|
|
129
|
+
}
|
|
130
|
+
//# sourceMappingURL=conflictDetector.js.map
|
|
@@ -0,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AAG,IAAI,OAAO,EAAE,CAAC;gBAC1B,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;YACxB,CAAC;YACD,SAAS;QACX,CAAC;QAED,sCAAsC;QACtC,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QAC9C,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;QAElE,gCAAgC;QAChC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC;QAEnD,oBAAoB;QACpB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;QAEzB,kBAAkB;QAClB,cAAc,CAAC,IAAI,CAAC;YAClB,KAAK,EAAE,UAAU;YACjB,aAAa;SACd,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;AAClC,CAAC"}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { WorkflowConfig, ExecutorResult } from './workflow.js';
|
|
2
|
+
import type { ImpactAnalysis } from '../knowledge/index.js';
|
|
3
|
+
/**
|
|
4
|
+
* Task source
|
|
5
|
+
*/
|
|
6
|
+
export type TaskSource = 'linear' | 'local' | 'discovered' | 'github_pr' | 'github_pr_review';
|
|
7
|
+
/**
|
|
8
|
+
* Linear project info (summary)
|
|
9
|
+
*/
|
|
10
|
+
export interface LinearProject {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Task item
|
|
16
|
+
*/
|
|
17
|
+
export interface TaskItem {
|
|
18
|
+
id: string;
|
|
19
|
+
source: TaskSource;
|
|
20
|
+
title: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
priority: number;
|
|
23
|
+
projectPath?: string;
|
|
24
|
+
linearProject?: LinearProject;
|
|
25
|
+
issueId?: string;
|
|
26
|
+
issueIdentifier?: string;
|
|
27
|
+
linearState?: string;
|
|
28
|
+
parentId?: string;
|
|
29
|
+
topoRank?: number;
|
|
30
|
+
workflowId?: string;
|
|
31
|
+
createdAt: number;
|
|
32
|
+
dueDate?: number;
|
|
33
|
+
blockedBy?: string[];
|
|
34
|
+
impactAnalysis?: ImpactAnalysis;
|
|
35
|
+
estimatedMinutes?: number;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Decision result
|
|
39
|
+
*/
|
|
40
|
+
export interface DecisionResult {
|
|
41
|
+
action: 'execute' | 'skip' | 'defer' | 'add_to_backlog';
|
|
42
|
+
task?: TaskItem;
|
|
43
|
+
reason: string;
|
|
44
|
+
workflow?: WorkflowConfig;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Multiple task decision result (for parallel processing)
|
|
48
|
+
*/
|
|
49
|
+
export interface DecisionResultMultiple {
|
|
50
|
+
action: 'execute' | 'skip' | 'defer';
|
|
51
|
+
tasks: Array<{
|
|
52
|
+
task: TaskItem;
|
|
53
|
+
workflow: WorkflowConfig;
|
|
54
|
+
}>;
|
|
55
|
+
reason: string;
|
|
56
|
+
skippedCount: number;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Discovered task (for backlog addition)
|
|
60
|
+
*/
|
|
61
|
+
export interface DiscoveredTask {
|
|
62
|
+
title: string;
|
|
63
|
+
description: string;
|
|
64
|
+
source: string;
|
|
65
|
+
suggestedPriority: number;
|
|
66
|
+
projectPath?: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Decision Engine configuration
|
|
70
|
+
*/
|
|
71
|
+
export interface DecisionEngineConfig {
|
|
72
|
+
/** Allowed project path list */
|
|
73
|
+
allowedProjects: string[];
|
|
74
|
+
/** Linear team ID */
|
|
75
|
+
linearTeamId?: string;
|
|
76
|
+
/** Allow auto-execution */
|
|
77
|
+
autoExecute: boolean;
|
|
78
|
+
/** Maximum consecutive tasks */
|
|
79
|
+
maxConsecutiveTasks: number;
|
|
80
|
+
/** Cooldown between tasks (seconds) */
|
|
81
|
+
cooldownSeconds: number;
|
|
82
|
+
/** Dry run mode */
|
|
83
|
+
dryRun: boolean;
|
|
84
|
+
}
|
|
85
|
+
export declare class DecisionEngine {
|
|
86
|
+
private config;
|
|
87
|
+
private state;
|
|
88
|
+
constructor(config?: Partial<DecisionEngineConfig>);
|
|
89
|
+
/**
|
|
90
|
+
* Initialize
|
|
91
|
+
*/
|
|
92
|
+
init(): Promise<void>;
|
|
93
|
+
/**
|
|
94
|
+
* Heartbeat execution - main entry point
|
|
95
|
+
*/
|
|
96
|
+
heartbeat(tasks: TaskItem[]): Promise<DecisionResult>;
|
|
97
|
+
/**
|
|
98
|
+
* Heartbeat execution - returns multiple tasks (for parallel processing)
|
|
99
|
+
* @param tasks - Candidate task list
|
|
100
|
+
* @param maxTasks - Maximum number of tasks to return
|
|
101
|
+
* @param _excludeProjects - Project paths to exclude (already running projects)
|
|
102
|
+
*/
|
|
103
|
+
heartbeatMultiple(tasks: TaskItem[], maxTasks?: number, _excludeProjects?: string[]): Promise<DecisionResultMultiple>;
|
|
104
|
+
/**
|
|
105
|
+
* Execute task
|
|
106
|
+
*/
|
|
107
|
+
executeTask(task: TaskItem, _workflow: WorkflowConfig): Promise<ExecutorResult>;
|
|
108
|
+
/**
|
|
109
|
+
* Update allowed projects at runtime
|
|
110
|
+
*/
|
|
111
|
+
updateAllowedProjects(paths: string[]): void;
|
|
112
|
+
/**
|
|
113
|
+
* Filter executable tasks
|
|
114
|
+
*/
|
|
115
|
+
private filterExecutableTasks;
|
|
116
|
+
/**
|
|
117
|
+
* Priority sorting
|
|
118
|
+
*/
|
|
119
|
+
private prioritizeTasks;
|
|
120
|
+
/**
|
|
121
|
+
* Scope validation (CRITICAL - prevent scope creep)
|
|
122
|
+
*/
|
|
123
|
+
private validateScope;
|
|
124
|
+
/**
|
|
125
|
+
* Convert Task to Workflow (includes auto-parsing)
|
|
126
|
+
*/
|
|
127
|
+
private taskToWorkflow;
|
|
128
|
+
/**
|
|
129
|
+
* Get parsed task summary (for Linear comments)
|
|
130
|
+
*/
|
|
131
|
+
getTaskParseSummary(issueId: string): Promise<string | null>;
|
|
132
|
+
/**
|
|
133
|
+
* Add discovered task to backlog (does not execute)
|
|
134
|
+
*/
|
|
135
|
+
addToBacklog(discovered: DiscoveredTask): Promise<void>;
|
|
136
|
+
/**
|
|
137
|
+
* Get discovered task list
|
|
138
|
+
*/
|
|
139
|
+
getDiscoveredTasks(): Promise<DiscoveredTask[]>;
|
|
140
|
+
/**
|
|
141
|
+
* Get statistics
|
|
142
|
+
*/
|
|
143
|
+
getStats(): {
|
|
144
|
+
totalCompleted: number;
|
|
145
|
+
totalFailed: number;
|
|
146
|
+
consecutiveRun: number;
|
|
147
|
+
lastRunAt: number;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Get Decision Engine instance
|
|
152
|
+
*/
|
|
153
|
+
export declare function getDecisionEngine(config?: Partial<DecisionEngineConfig>): DecisionEngine;
|
|
154
|
+
/**
|
|
155
|
+
* Run heartbeat (convenience function)
|
|
156
|
+
*/
|
|
157
|
+
export declare function runHeartbeat(tasks: TaskItem[], config?: Partial<DecisionEngineConfig>): Promise<DecisionResult>;
|
|
158
|
+
/**
|
|
159
|
+
* Convert Linear issue to TaskItem
|
|
160
|
+
*/
|
|
161
|
+
export declare function linearIssueToTask(issue: {
|
|
162
|
+
id: string;
|
|
163
|
+
identifier: string;
|
|
164
|
+
title: string;
|
|
165
|
+
description?: string;
|
|
166
|
+
priority: number;
|
|
167
|
+
dueDate?: string;
|
|
168
|
+
state?: string;
|
|
169
|
+
project?: {
|
|
170
|
+
id: string;
|
|
171
|
+
name: string;
|
|
172
|
+
};
|
|
173
|
+
parentId?: string;
|
|
174
|
+
blockedBy?: string[];
|
|
175
|
+
topoRank?: number;
|
|
176
|
+
}): TaskItem;
|
|
177
|
+
//# sourceMappingURL=decisionEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decisionEngine.d.ts","sourceRoot":"","sources":["../../src/orchestration/decisionEngine.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,cAAc,EACd,cAAc,EAIf,MAAM,eAAe,CAAC;AAKvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAK5D;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,GAAG,WAAW,GAAG,kBAAkB,CAAC;AAE9F;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,gBAA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