@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,542 @@
|
|
|
1
|
+
// ============================================
|
|
2
|
+
// OpenSwarm - Task Parser
|
|
3
|
+
// Analyze Linear issues and decompose into executable subtasks
|
|
4
|
+
// ============================================
|
|
5
|
+
import { resolve } from 'path';
|
|
6
|
+
import { homedir } from 'os';
|
|
7
|
+
import * as fs from 'fs/promises';
|
|
8
|
+
// Task Type Detection
|
|
9
|
+
const TYPE_PATTERNS = [
|
|
10
|
+
{
|
|
11
|
+
type: 'bug_fix',
|
|
12
|
+
patterns: [
|
|
13
|
+
/bug|fix|error|crash|broken|not working|failure/i,
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
type: 'feature',
|
|
18
|
+
patterns: [
|
|
19
|
+
/feature|add|implement|new/i,
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
type: 'refactor',
|
|
24
|
+
patterns: [
|
|
25
|
+
/refactor|improve|clean|optimize/i,
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
type: 'docs',
|
|
30
|
+
patterns: [
|
|
31
|
+
/docs|documentation|readme|comment/i,
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
type: 'test',
|
|
36
|
+
patterns: [
|
|
37
|
+
/test|coverage|validate/i,
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
type: 'ci_cd',
|
|
42
|
+
patterns: [
|
|
43
|
+
/ci|cd|pipeline|deploy|build|github action/i,
|
|
44
|
+
],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
type: 'investigation',
|
|
48
|
+
patterns: [
|
|
49
|
+
/investigate|analyze|research|check|why/i,
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
/**
|
|
54
|
+
* Detect task type
|
|
55
|
+
*/
|
|
56
|
+
function detectTaskType(title, description) {
|
|
57
|
+
const text = `${title} ${description}`.toLowerCase();
|
|
58
|
+
for (const { type, patterns } of TYPE_PATTERNS) {
|
|
59
|
+
for (const pattern of patterns) {
|
|
60
|
+
if (pattern.test(text)) {
|
|
61
|
+
return type;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return 'unknown';
|
|
66
|
+
}
|
|
67
|
+
// Complexity Analysis
|
|
68
|
+
/**
|
|
69
|
+
* Complexity analysis
|
|
70
|
+
*/
|
|
71
|
+
function analyzeComplexity(title, description) {
|
|
72
|
+
const text = `${title} ${description}`;
|
|
73
|
+
const risks = [];
|
|
74
|
+
// Initial estimate based on length
|
|
75
|
+
let complexity = 'simple';
|
|
76
|
+
let estimatedSteps = 2;
|
|
77
|
+
if (description.length > 500) {
|
|
78
|
+
complexity = 'medium';
|
|
79
|
+
estimatedSteps = 4;
|
|
80
|
+
}
|
|
81
|
+
if (description.length > 1500) {
|
|
82
|
+
complexity = 'complex';
|
|
83
|
+
estimatedSteps = 6;
|
|
84
|
+
}
|
|
85
|
+
// Keyword-based adjustment
|
|
86
|
+
const complexityIndicators = [
|
|
87
|
+
{ pattern: /multiple|many|several/i, add: 1 },
|
|
88
|
+
{ pattern: /all|entire|every/i, add: 2 },
|
|
89
|
+
{ pattern: /migration|migrate/i, add: 2, risk: 'Data migration risk' },
|
|
90
|
+
{ pattern: /database|db|schema/i, add: 1, risk: 'Database change required' },
|
|
91
|
+
{ pattern: /api|interface/i, add: 1, risk: 'API change compatibility risk' },
|
|
92
|
+
{ pattern: /security|auth/i, add: 1, risk: 'Security-related change' },
|
|
93
|
+
{ pattern: /performance|speed/i, add: 1 },
|
|
94
|
+
{ pattern: /test/i, add: 1 },
|
|
95
|
+
];
|
|
96
|
+
for (const { pattern, add, risk } of complexityIndicators) {
|
|
97
|
+
if (pattern.test(text)) {
|
|
98
|
+
estimatedSteps += add;
|
|
99
|
+
if (risk)
|
|
100
|
+
risks.push(risk);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
// Final complexity determination
|
|
104
|
+
if (estimatedSteps >= 6)
|
|
105
|
+
complexity = 'complex';
|
|
106
|
+
else if (estimatedSteps >= 4)
|
|
107
|
+
complexity = 'medium';
|
|
108
|
+
return { complexity, estimatedSteps, risks };
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Adjust complexity based on knowledge graph data
|
|
112
|
+
*/
|
|
113
|
+
function adjustComplexityWithGraph(base, impactScope, affectedModuleCount) {
|
|
114
|
+
if (!impactScope && !affectedModuleCount)
|
|
115
|
+
return base;
|
|
116
|
+
const result = { ...base, risks: [...base.risks] };
|
|
117
|
+
// Adjust based on impact scope
|
|
118
|
+
if (impactScope === 'large') {
|
|
119
|
+
result.estimatedSteps += 2;
|
|
120
|
+
result.risks.push('Knowledge graph: wide impact range (large scope)');
|
|
121
|
+
}
|
|
122
|
+
else if (impactScope === 'medium') {
|
|
123
|
+
result.estimatedSteps += 1;
|
|
124
|
+
}
|
|
125
|
+
// Adjust based on number of affected modules
|
|
126
|
+
if (affectedModuleCount && affectedModuleCount > 5) {
|
|
127
|
+
result.estimatedSteps += 1;
|
|
128
|
+
result.risks.push(`Knowledge graph: ${affectedModuleCount} modules affected`);
|
|
129
|
+
}
|
|
130
|
+
// Re-evaluate
|
|
131
|
+
if (result.estimatedSteps >= 6)
|
|
132
|
+
result.complexity = 'complex';
|
|
133
|
+
else if (result.estimatedSteps >= 4)
|
|
134
|
+
result.complexity = 'medium';
|
|
135
|
+
return result;
|
|
136
|
+
}
|
|
137
|
+
// Subtask Generation
|
|
138
|
+
/**
|
|
139
|
+
* Subtask templates
|
|
140
|
+
*/
|
|
141
|
+
const SUBTASK_TEMPLATES = {
|
|
142
|
+
bug_fix: [
|
|
143
|
+
{
|
|
144
|
+
id: 'analyze',
|
|
145
|
+
order: 1,
|
|
146
|
+
title: 'Bug analysis',
|
|
147
|
+
description: 'Identify root cause and reproduce the bug',
|
|
148
|
+
prompt: 'Analyze the bug and identify the root cause. Also verify reproduction steps and impact scope.',
|
|
149
|
+
dependsOn: [],
|
|
150
|
+
type: 'analysis',
|
|
151
|
+
optional: false,
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
id: 'fix',
|
|
155
|
+
order: 2,
|
|
156
|
+
title: 'Bug fix',
|
|
157
|
+
description: 'Write code to fix the bug',
|
|
158
|
+
prompt: 'Fix the bug based on the analysis. Make minimal changes.',
|
|
159
|
+
dependsOn: ['analyze'],
|
|
160
|
+
type: 'implementation',
|
|
161
|
+
optional: false,
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
id: 'test',
|
|
165
|
+
order: 3,
|
|
166
|
+
title: 'Test',
|
|
167
|
+
description: 'Verify fix and run regression tests',
|
|
168
|
+
prompt: 'Test the fix and verify no existing functionality is affected.',
|
|
169
|
+
dependsOn: ['fix'],
|
|
170
|
+
type: 'test',
|
|
171
|
+
optional: false,
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
feature: [
|
|
175
|
+
{
|
|
176
|
+
id: 'design',
|
|
177
|
+
order: 1,
|
|
178
|
+
title: 'Design review',
|
|
179
|
+
description: 'Design the feature and decide implementation approach',
|
|
180
|
+
prompt: 'Analyze feature requirements and design the implementation approach. Include integration strategy with existing code.',
|
|
181
|
+
dependsOn: [],
|
|
182
|
+
type: 'analysis',
|
|
183
|
+
optional: false,
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
id: 'implement',
|
|
187
|
+
order: 2,
|
|
188
|
+
title: 'Implementation',
|
|
189
|
+
description: 'Implement the feature',
|
|
190
|
+
prompt: 'Implement the feature according to the design.',
|
|
191
|
+
dependsOn: ['design'],
|
|
192
|
+
type: 'implementation',
|
|
193
|
+
optional: false,
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
id: 'test',
|
|
197
|
+
order: 3,
|
|
198
|
+
title: 'Write tests',
|
|
199
|
+
description: 'Write test code for the feature',
|
|
200
|
+
prompt: 'Write tests for the implemented feature.',
|
|
201
|
+
dependsOn: ['implement'],
|
|
202
|
+
type: 'test',
|
|
203
|
+
optional: false,
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
id: 'docs',
|
|
207
|
+
order: 4,
|
|
208
|
+
title: 'Update documentation',
|
|
209
|
+
description: 'Update related documentation',
|
|
210
|
+
prompt: 'Update documentation for the new feature. Only if necessary.',
|
|
211
|
+
dependsOn: ['implement'],
|
|
212
|
+
type: 'documentation',
|
|
213
|
+
optional: true,
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
refactor: [
|
|
217
|
+
{
|
|
218
|
+
id: 'analyze',
|
|
219
|
+
order: 1,
|
|
220
|
+
title: 'Analyze current code',
|
|
221
|
+
description: 'Analyze the code targeted for refactoring',
|
|
222
|
+
prompt: 'Analyze the target code and identify areas for improvement.',
|
|
223
|
+
dependsOn: [],
|
|
224
|
+
type: 'analysis',
|
|
225
|
+
optional: false,
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
id: 'refactor',
|
|
229
|
+
order: 2,
|
|
230
|
+
title: 'Refactor',
|
|
231
|
+
description: 'Improve code structure',
|
|
232
|
+
prompt: 'Refactor based on the analysis. Improve structure only without changing functionality.',
|
|
233
|
+
dependsOn: ['analyze'],
|
|
234
|
+
type: 'implementation',
|
|
235
|
+
optional: false,
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
id: 'verify',
|
|
239
|
+
order: 3,
|
|
240
|
+
title: 'Verify',
|
|
241
|
+
description: 'Confirm existing behavior is preserved',
|
|
242
|
+
prompt: 'Verify that existing behavior is preserved after refactoring.',
|
|
243
|
+
dependsOn: ['refactor'],
|
|
244
|
+
type: 'test',
|
|
245
|
+
optional: false,
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
docs: [
|
|
249
|
+
{
|
|
250
|
+
id: 'review',
|
|
251
|
+
order: 1,
|
|
252
|
+
title: 'Review current documentation',
|
|
253
|
+
description: 'Assess the current state of documentation',
|
|
254
|
+
prompt: 'Review the current documentation and identify areas that need updates.',
|
|
255
|
+
dependsOn: [],
|
|
256
|
+
type: 'analysis',
|
|
257
|
+
optional: false,
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
id: 'update',
|
|
261
|
+
order: 2,
|
|
262
|
+
title: 'Update documentation',
|
|
263
|
+
description: 'Write/edit documentation',
|
|
264
|
+
prompt: 'Update the documentation based on the findings.',
|
|
265
|
+
dependsOn: ['review'],
|
|
266
|
+
type: 'documentation',
|
|
267
|
+
optional: false,
|
|
268
|
+
},
|
|
269
|
+
],
|
|
270
|
+
test: [
|
|
271
|
+
{
|
|
272
|
+
id: 'analyze',
|
|
273
|
+
order: 1,
|
|
274
|
+
title: 'Analyze test coverage',
|
|
275
|
+
description: 'Identify areas that need testing',
|
|
276
|
+
prompt: 'Analyze test coverage and identify areas that need additional tests.',
|
|
277
|
+
dependsOn: [],
|
|
278
|
+
type: 'analysis',
|
|
279
|
+
optional: false,
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
id: 'write',
|
|
283
|
+
order: 2,
|
|
284
|
+
title: 'Write tests',
|
|
285
|
+
description: 'Write test code',
|
|
286
|
+
prompt: 'Write tests based on the analysis.',
|
|
287
|
+
dependsOn: ['analyze'],
|
|
288
|
+
type: 'test',
|
|
289
|
+
optional: false,
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
id: 'run',
|
|
293
|
+
order: 3,
|
|
294
|
+
title: 'Run tests',
|
|
295
|
+
description: 'Run all tests and verify results',
|
|
296
|
+
prompt: 'Run all tests including the newly written ones and verify the results.',
|
|
297
|
+
dependsOn: ['write'],
|
|
298
|
+
type: 'test',
|
|
299
|
+
optional: false,
|
|
300
|
+
},
|
|
301
|
+
],
|
|
302
|
+
ci_cd: [
|
|
303
|
+
{
|
|
304
|
+
id: 'analyze',
|
|
305
|
+
order: 1,
|
|
306
|
+
title: 'Analyze current CI/CD',
|
|
307
|
+
description: 'Assess current configuration',
|
|
308
|
+
prompt: 'Analyze the current CI/CD configuration and identify areas that need changes.',
|
|
309
|
+
dependsOn: [],
|
|
310
|
+
type: 'analysis',
|
|
311
|
+
optional: false,
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
id: 'implement',
|
|
315
|
+
order: 2,
|
|
316
|
+
title: 'Modify CI/CD',
|
|
317
|
+
description: 'Update configuration',
|
|
318
|
+
prompt: 'Modify the CI/CD configuration based on the analysis.',
|
|
319
|
+
dependsOn: ['analyze'],
|
|
320
|
+
type: 'implementation',
|
|
321
|
+
optional: false,
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
id: 'test',
|
|
325
|
+
order: 3,
|
|
326
|
+
title: 'Test pipeline',
|
|
327
|
+
description: 'Test the modified pipeline',
|
|
328
|
+
prompt: 'Verify that the modified CI/CD pipeline works correctly.',
|
|
329
|
+
dependsOn: ['implement'],
|
|
330
|
+
type: 'test',
|
|
331
|
+
optional: false,
|
|
332
|
+
},
|
|
333
|
+
],
|
|
334
|
+
investigation: [
|
|
335
|
+
{
|
|
336
|
+
id: 'gather',
|
|
337
|
+
order: 1,
|
|
338
|
+
title: 'Gather information',
|
|
339
|
+
description: 'Collect relevant information',
|
|
340
|
+
prompt: 'Gather information needed for the investigation. Code, logs, documentation, etc.',
|
|
341
|
+
dependsOn: [],
|
|
342
|
+
type: 'analysis',
|
|
343
|
+
optional: false,
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
id: 'analyze',
|
|
347
|
+
order: 2,
|
|
348
|
+
title: 'Analyze',
|
|
349
|
+
description: 'Analyze collected information',
|
|
350
|
+
prompt: 'Analyze the collected information and draw conclusions.',
|
|
351
|
+
dependsOn: ['gather'],
|
|
352
|
+
type: 'analysis',
|
|
353
|
+
optional: false,
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
id: 'report',
|
|
357
|
+
order: 3,
|
|
358
|
+
title: 'Report findings',
|
|
359
|
+
description: 'Compile analysis results',
|
|
360
|
+
prompt: 'Compile and report the analysis results.',
|
|
361
|
+
dependsOn: ['analyze'],
|
|
362
|
+
type: 'documentation',
|
|
363
|
+
optional: false,
|
|
364
|
+
},
|
|
365
|
+
],
|
|
366
|
+
unknown: [
|
|
367
|
+
{
|
|
368
|
+
id: 'understand',
|
|
369
|
+
order: 1,
|
|
370
|
+
title: 'Understand requirements',
|
|
371
|
+
description: 'Understand exact requirements',
|
|
372
|
+
prompt: 'Analyze the issue content and determine exactly what needs to be done.',
|
|
373
|
+
dependsOn: [],
|
|
374
|
+
type: 'analysis',
|
|
375
|
+
optional: false,
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
id: 'plan',
|
|
379
|
+
order: 2,
|
|
380
|
+
title: 'Plan work',
|
|
381
|
+
description: 'Create execution plan',
|
|
382
|
+
prompt: 'Create a work plan based on the findings.',
|
|
383
|
+
dependsOn: ['understand'],
|
|
384
|
+
type: 'analysis',
|
|
385
|
+
optional: false,
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
id: 'execute',
|
|
389
|
+
order: 3,
|
|
390
|
+
title: 'Execute',
|
|
391
|
+
description: 'Execute according to plan',
|
|
392
|
+
prompt: 'Execute the work according to the plan.',
|
|
393
|
+
dependsOn: ['plan'],
|
|
394
|
+
type: 'implementation',
|
|
395
|
+
optional: false,
|
|
396
|
+
},
|
|
397
|
+
],
|
|
398
|
+
};
|
|
399
|
+
/**
|
|
400
|
+
* Generate subtasks
|
|
401
|
+
*/
|
|
402
|
+
function generateSubtasks(type, title, description, complexity) {
|
|
403
|
+
const templates = SUBTASK_TEMPLATES[type] || SUBTASK_TEMPLATES.unknown;
|
|
404
|
+
const subtasks = [];
|
|
405
|
+
for (const template of templates) {
|
|
406
|
+
// Skip optional subtasks for simple tasks
|
|
407
|
+
if (complexity === 'simple' && template.optional) {
|
|
408
|
+
continue;
|
|
409
|
+
}
|
|
410
|
+
// Add context
|
|
411
|
+
const contextualPrompt = `
|
|
412
|
+
## Original Issue
|
|
413
|
+
**Title:** ${title}
|
|
414
|
+
**Description:** ${description}
|
|
415
|
+
|
|
416
|
+
## Current Step: ${template.title}
|
|
417
|
+
${template.prompt}
|
|
418
|
+
|
|
419
|
+
## Guidelines
|
|
420
|
+
- Do not perform work outside the defined scope
|
|
421
|
+
- Report changes after completion
|
|
422
|
+
`.trim();
|
|
423
|
+
subtasks.push({
|
|
424
|
+
...template,
|
|
425
|
+
id: `${type}-${template.id}`,
|
|
426
|
+
prompt: contextualPrompt,
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
return subtasks;
|
|
430
|
+
}
|
|
431
|
+
// Main Parser
|
|
432
|
+
/**
|
|
433
|
+
* Parse Linear issue into executable structure
|
|
434
|
+
*/
|
|
435
|
+
export function parseTask(issue) {
|
|
436
|
+
const description = issue.description || '';
|
|
437
|
+
// 1. Detect type
|
|
438
|
+
const type = detectTaskType(issue.title, description);
|
|
439
|
+
// 2. Analyze complexity (with graph-based adjustment)
|
|
440
|
+
const baseComplexity = analyzeComplexity(issue.title, description);
|
|
441
|
+
const { complexity, estimatedSteps, risks } = adjustComplexityWithGraph(baseComplexity, issue.impactScope, issue.affectedModuleCount);
|
|
442
|
+
// 3. Generate subtasks
|
|
443
|
+
const subtasks = generateSubtasks(type, issue.title, description, complexity);
|
|
444
|
+
// 4. Generate workflow
|
|
445
|
+
const workflow = subtasksToWorkflow(issue, subtasks);
|
|
446
|
+
// 5. Assemble result
|
|
447
|
+
return {
|
|
448
|
+
original: {
|
|
449
|
+
id: issue.id,
|
|
450
|
+
title: issue.title,
|
|
451
|
+
description,
|
|
452
|
+
},
|
|
453
|
+
analysis: {
|
|
454
|
+
type,
|
|
455
|
+
complexity,
|
|
456
|
+
estimatedSteps,
|
|
457
|
+
requiresHumanReview: complexity === 'complex' || risks.length > 0,
|
|
458
|
+
risks,
|
|
459
|
+
},
|
|
460
|
+
subtasks,
|
|
461
|
+
workflow,
|
|
462
|
+
parsedAt: Date.now(),
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
/**
|
|
466
|
+
* Convert subtasks to workflow
|
|
467
|
+
*/
|
|
468
|
+
function subtasksToWorkflow(issue, subtasks) {
|
|
469
|
+
const steps = subtasks.map(st => ({
|
|
470
|
+
id: st.id,
|
|
471
|
+
name: st.title,
|
|
472
|
+
prompt: st.prompt,
|
|
473
|
+
dependsOn: st.dependsOn.length > 0 ? st.dependsOn : undefined,
|
|
474
|
+
onFailure: st.type === 'analysis' ? 'abort' : 'notify',
|
|
475
|
+
}));
|
|
476
|
+
return {
|
|
477
|
+
id: `parsed-${issue.id}-${Date.now()}`,
|
|
478
|
+
name: `[Auto] ${issue.title}`,
|
|
479
|
+
description: `Auto-generated workflow from issue ${issue.id}`,
|
|
480
|
+
projectPath: issue.projectPath || '~',
|
|
481
|
+
steps,
|
|
482
|
+
onFailure: 'notify',
|
|
483
|
+
linearIssue: issue.id,
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
// Parsing Result Storage
|
|
487
|
+
const PARSED_TASKS_DIR = resolve(homedir(), '.openswarm/parsed-tasks');
|
|
488
|
+
/**
|
|
489
|
+
* Save parsed result
|
|
490
|
+
*/
|
|
491
|
+
export async function saveParsedTask(parsed) {
|
|
492
|
+
await fs.mkdir(PARSED_TASKS_DIR, { recursive: true });
|
|
493
|
+
const filePath = resolve(PARSED_TASKS_DIR, `${parsed.original.id}.json`);
|
|
494
|
+
await fs.writeFile(filePath, JSON.stringify(parsed, null, 2));
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* Load parsed result
|
|
498
|
+
*/
|
|
499
|
+
export async function loadParsedTask(issueId) {
|
|
500
|
+
try {
|
|
501
|
+
const filePath = resolve(PARSED_TASKS_DIR, `${issueId}.json`);
|
|
502
|
+
const content = await fs.readFile(filePath, 'utf-8');
|
|
503
|
+
return JSON.parse(content);
|
|
504
|
+
}
|
|
505
|
+
catch {
|
|
506
|
+
return null;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
// Utility Functions
|
|
510
|
+
/**
|
|
511
|
+
* Generate parsed task summary (for Linear comments)
|
|
512
|
+
*/
|
|
513
|
+
export function formatParsedTaskSummary(parsed) {
|
|
514
|
+
const parts = [];
|
|
515
|
+
parts.push('## Auto Analysis Result');
|
|
516
|
+
parts.push('');
|
|
517
|
+
parts.push(`**Type:** ${parsed.analysis.type}`);
|
|
518
|
+
parts.push(`**Complexity:** ${parsed.analysis.complexity}`);
|
|
519
|
+
parts.push(`**Estimated Steps:** ${parsed.analysis.estimatedSteps}`);
|
|
520
|
+
parts.push('');
|
|
521
|
+
if (parsed.analysis.risks.length > 0) {
|
|
522
|
+
parts.push('### Warnings');
|
|
523
|
+
parts.push(parsed.analysis.risks.map(r => `- ${r}`).join('\n'));
|
|
524
|
+
parts.push('');
|
|
525
|
+
}
|
|
526
|
+
parts.push('### Execution Plan');
|
|
527
|
+
for (const st of parsed.subtasks) {
|
|
528
|
+
const deps = st.dependsOn.length > 0 ? ` (← ${st.dependsOn.join(', ')})` : '';
|
|
529
|
+
parts.push(`${st.order}. **${st.title}**${deps}`);
|
|
530
|
+
parts.push(` ${st.description}`);
|
|
531
|
+
}
|
|
532
|
+
parts.push('');
|
|
533
|
+
if (parsed.analysis.requiresHumanReview) {
|
|
534
|
+
parts.push('---');
|
|
535
|
+
parts.push('**Complex task. Review before execution is recommended.**');
|
|
536
|
+
}
|
|
537
|
+
parts.push('');
|
|
538
|
+
parts.push('---');
|
|
539
|
+
parts.push('_OpenSwarm Task Parser_');
|
|
540
|
+
return parts.join('\n');
|
|
541
|
+
}
|
|
542
|
+
//# sourceMappingURL=taskParser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taskParser.js","sourceRoot":"","sources":["../../src/orchestration/taskParser.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,0BAA0B;AAC1B,+DAA+D;AAC/D,+CAA+C;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;AAC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