edsger 0.50.0 → 0.52.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/.claude/settings.local.json +23 -3
- package/.env.local +12 -0
- package/README.md +25 -25
- package/dist/api/chat.d.ts +7 -7
- package/dist/api/chat.js +13 -13
- package/dist/api/cross-product.d.ts +10 -10
- package/dist/api/cross-product.js +30 -30
- package/dist/api/github.d.ts +5 -5
- package/dist/api/github.js +10 -10
- package/dist/api/intelligence.d.ts +3 -3
- package/dist/api/issues/approval-checker.d.ts +20 -0
- package/dist/api/{features → issues}/approval-checker.js +16 -16
- package/dist/api/issues/get-issue.d.ts +5 -0
- package/dist/api/issues/get-issue.js +21 -0
- package/dist/api/issues/index.d.ts +8 -0
- package/dist/api/issues/index.js +10 -0
- package/dist/api/issues/issue-utils.d.ts +23 -0
- package/dist/api/issues/issue-utils.js +80 -0
- package/dist/api/issues/status-updater.d.ts +41 -0
- package/dist/api/{features → issues}/status-updater.js +23 -23
- package/dist/api/{features → issues}/test-cases.d.ts +7 -7
- package/dist/api/{features → issues}/test-cases.js +12 -12
- package/dist/api/issues/update-issue.d.ts +20 -0
- package/dist/api/{features/update-feature.js → issues/update-issue.js} +22 -22
- package/dist/api/{features → issues}/user-stories.d.ts +5 -5
- package/dist/api/{features → issues}/user-stories.js +8 -8
- package/dist/api/products.d.ts +1 -1
- package/dist/api/tasks.d.ts +1 -1
- package/dist/api/test-reports.d.ts +2 -2
- package/dist/api/test-reports.js +4 -4
- package/dist/auth/login.js +1 -1
- package/dist/commands/agent-workflow/chat-worker.d.ts +7 -7
- package/dist/commands/agent-workflow/chat-worker.js +50 -50
- package/dist/commands/agent-workflow/index.d.ts +2 -2
- package/dist/commands/agent-workflow/index.js +3 -3
- package/dist/commands/agent-workflow/{feature-worker.d.ts → issue-worker.d.ts} +4 -4
- package/dist/commands/agent-workflow/{feature-worker.js → issue-worker.js} +12 -12
- package/dist/commands/agent-workflow/processor.d.ts +9 -9
- package/dist/commands/agent-workflow/processor.js +90 -90
- package/dist/commands/build/index.js +2 -2
- package/dist/commands/find-bugs/index.d.ts +11 -0
- package/dist/commands/find-bugs/index.js +39 -0
- package/dist/commands/find-features/index.d.ts +14 -0
- package/dist/commands/find-features/index.js +42 -0
- package/dist/commands/find-smells/index.d.ts +21 -0
- package/dist/commands/find-smells/index.js +65 -0
- package/dist/commands/init/prompts.js +1 -1
- package/dist/commands/init/templates.d.ts +1 -1
- package/dist/commands/init/templates.js +4 -4
- package/dist/commands/workflow/config/phase-configs.js +17 -17
- package/dist/commands/workflow/core/index.d.ts +1 -1
- package/dist/commands/workflow/core/index.js +2 -2
- package/dist/commands/workflow/core/issue-filter.d.ts +16 -0
- package/dist/commands/workflow/core/issue-filter.js +47 -0
- package/dist/commands/workflow/core/state-manager.d.ts +10 -10
- package/dist/commands/workflow/core/state-manager.js +10 -10
- package/dist/commands/workflow/core/workflow-logger.d.ts +9 -9
- package/dist/commands/workflow/core/workflow-logger.js +21 -21
- package/dist/commands/workflow/executors/phase-executor.d.ts +2 -2
- package/dist/commands/workflow/executors/phase-executor.js +32 -32
- package/dist/commands/workflow/issue-coordinator.d.ts +18 -0
- package/dist/commands/workflow/{feature-coordinator.js → issue-coordinator.js} +29 -29
- package/dist/commands/workflow/phase-orchestrator.d.ts +2 -2
- package/dist/commands/workflow/phase-orchestrator.js +82 -82
- package/dist/commands/workflow/processor.d.ts +7 -7
- package/dist/commands/workflow/processor.js +44 -44
- package/dist/config/{feature-status.d.ts → issue-status.d.ts} +14 -14
- package/dist/config/{feature-status.js → issue-status.js} +14 -14
- package/dist/errors/index.d.ts +6 -6
- package/dist/errors/index.js +11 -11
- package/dist/index.js +90 -1
- package/dist/phases/app-store-generation/context.js +6 -6
- package/dist/phases/app-store-generation/index.js +2 -2
- package/dist/phases/app-store-generation/prompts.js +2 -2
- package/dist/phases/autonomous/index.d.ts +3 -3
- package/dist/phases/autonomous/index.js +37 -37
- package/dist/phases/autonomous/prompts.d.ts +2 -2
- package/dist/phases/autonomous/prompts.js +4 -4
- package/dist/phases/branch-planning/context.d.ts +3 -3
- package/dist/phases/branch-planning/context.js +12 -12
- package/dist/phases/branch-planning/index.d.ts +3 -3
- package/dist/phases/branch-planning/index.js +32 -32
- package/dist/phases/branch-planning/outcome.d.ts +5 -5
- package/dist/phases/branch-planning/outcome.js +12 -12
- package/dist/phases/branch-planning/prompts.d.ts +3 -3
- package/dist/phases/branch-planning/prompts.js +13 -13
- package/dist/phases/bug-fixing/analyzer.d.ts +2 -2
- package/dist/phases/bug-fixing/analyzer.js +13 -13
- package/dist/phases/bug-fixing/context-fetcher.d.ts +3 -3
- package/dist/phases/bug-fixing/context-fetcher.js +18 -18
- package/dist/phases/bug-fixing/mcp-server.js +17 -18
- package/dist/phases/chat-processor/context.d.ts +5 -5
- package/dist/phases/chat-processor/context.js +17 -17
- package/dist/phases/chat-processor/index.d.ts +4 -4
- package/dist/phases/chat-processor/index.js +17 -17
- package/dist/phases/chat-processor/product-context.d.ts +3 -3
- package/dist/phases/chat-processor/product-context.js +16 -16
- package/dist/phases/chat-processor/product-prompts.d.ts +1 -1
- package/dist/phases/chat-processor/product-prompts.js +10 -10
- package/dist/phases/chat-processor/product-tools.d.ts +2 -2
- package/dist/phases/chat-processor/product-tools.js +33 -33
- package/dist/phases/chat-processor/prompts.d.ts +3 -3
- package/dist/phases/chat-processor/prompts.js +22 -22
- package/dist/phases/chat-processor/tools.js +46 -46
- package/dist/phases/code-implementation/branch-pr-creator.d.ts +3 -3
- package/dist/phases/code-implementation/branch-pr-creator.js +5 -5
- package/dist/phases/code-implementation/context.d.ts +3 -3
- package/dist/phases/code-implementation/context.js +18 -18
- package/dist/phases/code-implementation/index.d.ts +4 -4
- package/dist/phases/code-implementation/index.js +88 -88
- package/dist/phases/code-implementation/outcome.d.ts +3 -3
- package/dist/phases/code-implementation/outcome.js +6 -6
- package/dist/phases/code-implementation/prompts.d.ts +1 -1
- package/dist/phases/code-implementation/prompts.js +6 -6
- package/dist/phases/code-implementation-verification/agent.d.ts +3 -3
- package/dist/phases/code-implementation-verification/agent.js +5 -5
- package/dist/phases/code-implementation-verification/index.d.ts +3 -3
- package/dist/phases/code-implementation-verification/index.js +11 -11
- package/dist/phases/code-implementation-verification/prompts.d.ts +3 -3
- package/dist/phases/code-implementation-verification/prompts.js +7 -7
- package/dist/phases/code-refine/context.d.ts +8 -8
- package/dist/phases/code-refine/context.js +29 -29
- package/dist/phases/code-refine/index.d.ts +2 -2
- package/dist/phases/code-refine/index.js +20 -20
- package/dist/phases/code-refine/prompts.d.ts +1 -1
- package/dist/phases/code-refine/prompts.js +3 -3
- package/dist/phases/code-refine/refine-iteration.d.ts +1 -1
- package/dist/phases/code-refine/refine-iteration.js +4 -4
- package/dist/phases/code-refine/retry-handler.js +2 -2
- package/dist/phases/code-refine-verification/index.js +10 -10
- package/dist/phases/code-refine-verification/types.d.ts +2 -2
- package/dist/phases/code-review/context.d.ts +8 -8
- package/dist/phases/code-review/context.js +25 -25
- package/dist/phases/code-review/diff-utils.d.ts +1 -1
- package/dist/phases/code-review/diff-utils.js +1 -1
- package/dist/phases/code-review/index.d.ts +2 -2
- package/dist/phases/code-review/index.js +26 -26
- package/dist/phases/code-testing/analyzer.d.ts +2 -2
- package/dist/phases/code-testing/analyzer.js +18 -18
- package/dist/phases/code-testing/context-fetcher.d.ts +3 -3
- package/dist/phases/code-testing/context-fetcher.js +16 -16
- package/dist/phases/code-testing/prompts.d.ts +1 -1
- package/dist/phases/code-testing/prompts.js +5 -5
- package/dist/phases/find-bugs/index.d.ts +30 -0
- package/dist/phases/find-bugs/index.js +216 -0
- package/dist/phases/find-bugs/prompts.d.ts +22 -0
- package/dist/phases/find-bugs/prompts.js +101 -0
- package/dist/phases/find-bugs/state.d.ts +19 -0
- package/dist/phases/find-bugs/state.js +13 -0
- package/dist/phases/find-bugs/types.d.ts +21 -0
- package/dist/phases/find-bugs/types.js +16 -0
- package/dist/phases/find-features/index.d.ts +40 -0
- package/dist/phases/find-features/index.js +279 -0
- package/dist/phases/find-features/prompts.d.ts +43 -0
- package/dist/phases/find-features/prompts.js +138 -0
- package/dist/phases/find-features/state.d.ts +25 -0
- package/dist/phases/find-features/state.js +22 -0
- package/dist/phases/find-features/types.d.ts +27 -0
- package/dist/phases/find-features/types.js +16 -0
- package/dist/phases/find-shared/git.d.ts +24 -0
- package/dist/phases/find-shared/git.js +60 -0
- package/dist/phases/find-shared/mcp.d.ts +33 -0
- package/dist/phases/find-shared/mcp.js +69 -0
- package/dist/phases/find-shared/scan-state.d.ts +33 -0
- package/dist/phases/find-shared/scan-state.js +112 -0
- package/dist/phases/find-smells/index.d.ts +47 -0
- package/dist/phases/find-smells/index.js +278 -0
- package/dist/phases/find-smells/prompts.d.ts +30 -0
- package/dist/phases/find-smells/prompts.js +129 -0
- package/dist/phases/find-smells/state.d.ts +21 -0
- package/dist/phases/find-smells/state.js +17 -0
- package/dist/phases/find-smells/types.d.ts +51 -0
- package/dist/phases/find-smells/types.js +64 -0
- package/dist/phases/functional-testing/analyzer.d.ts +2 -2
- package/dist/phases/functional-testing/analyzer.js +40 -40
- package/dist/phases/functional-testing/context-fetcher.d.ts +3 -3
- package/dist/phases/functional-testing/context-fetcher.js +16 -16
- package/dist/phases/functional-testing/http-fallback.d.ts +2 -2
- package/dist/phases/functional-testing/http-fallback.js +9 -9
- package/dist/phases/functional-testing/mcp-server.js +23 -24
- package/dist/phases/functional-testing/prompts.d.ts +1 -1
- package/dist/phases/functional-testing/prompts.js +4 -4
- package/dist/phases/functional-testing/test-report-creator.d.ts +2 -2
- package/dist/phases/functional-testing/test-report-creator.js +10 -10
- package/dist/phases/functional-testing/test-retry-handler.js +3 -3
- package/dist/phases/growth-analysis/context.js +6 -6
- package/dist/phases/growth-analysis/index.js +2 -2
- package/dist/phases/growth-analysis/prompts.js +2 -2
- package/dist/phases/intelligence-analysis/context.js +7 -7
- package/dist/phases/intelligence-analysis/index.js +3 -3
- package/dist/phases/{feature-analysis → issue-analysis}/agent.js +1 -1
- package/dist/phases/issue-analysis/context.d.ts +24 -0
- package/dist/phases/{feature-analysis → issue-analysis}/context.js +30 -30
- package/dist/phases/issue-analysis/index.d.ts +8 -0
- package/dist/phases/{feature-analysis → issue-analysis}/index.js +29 -29
- package/dist/phases/issue-analysis/outcome.d.ts +40 -0
- package/dist/phases/{feature-analysis → issue-analysis}/outcome.js +17 -17
- package/dist/phases/{feature-analysis → issue-analysis}/prompts.d.ts +3 -3
- package/dist/phases/{feature-analysis → issue-analysis}/prompts.js +12 -12
- package/dist/phases/{feature-analysis-verification → issue-analysis-verification}/agent.d.ts +2 -2
- package/dist/phases/{feature-analysis-verification → issue-analysis-verification}/agent.js +1 -1
- package/dist/phases/{feature-analysis-verification → issue-analysis-verification}/index.d.ts +5 -5
- package/dist/phases/{feature-analysis-verification → issue-analysis-verification}/index.js +9 -9
- package/dist/phases/{feature-analysis-verification → issue-analysis-verification}/prompts.d.ts +2 -2
- package/dist/phases/{feature-analysis-verification → issue-analysis-verification}/prompts.js +7 -7
- package/dist/phases/output-contracts.js +37 -37
- package/dist/phases/pr-execution/context.d.ts +3 -3
- package/dist/phases/pr-execution/context.js +14 -14
- package/dist/phases/pr-execution/index.d.ts +2 -2
- package/dist/phases/pr-execution/index.js +22 -22
- package/dist/phases/pr-execution/outcome.d.ts +4 -4
- package/dist/phases/pr-execution/outcome.js +6 -6
- package/dist/phases/pr-execution/prompts.d.ts +4 -4
- package/dist/phases/pr-execution/prompts.js +6 -6
- package/dist/phases/pr-resolve/checklist-learner.js +2 -2
- package/dist/phases/pr-review/index.d.ts +1 -1
- package/dist/phases/pr-review/index.js +1 -1
- package/dist/phases/pr-review/prompts.d.ts +1 -1
- package/dist/phases/pr-review/prompts.js +1 -1
- package/dist/phases/pr-shared/context.d.ts +3 -3
- package/dist/phases/pr-shared/context.js +3 -3
- package/dist/phases/pr-splitting/context.d.ts +3 -3
- package/dist/phases/pr-splitting/context.js +16 -16
- package/dist/phases/pr-splitting/index.d.ts +4 -4
- package/dist/phases/pr-splitting/index.js +29 -29
- package/dist/phases/pr-splitting/outcome.d.ts +3 -3
- package/dist/phases/pr-splitting/outcome.js +7 -7
- package/dist/phases/pr-splitting/prompts.d.ts +3 -3
- package/dist/phases/pr-splitting/prompts.js +11 -11
- package/dist/phases/pull-request/creator.d.ts +4 -4
- package/dist/phases/pull-request/creator.js +25 -25
- package/dist/phases/pull-request/handler.d.ts +3 -3
- package/dist/phases/pull-request/handler.js +16 -16
- package/dist/phases/release-sync/index.js +2 -2
- package/dist/phases/run-sheet/agent.js +1 -2
- package/dist/phases/run-sheet/index.js +3 -3
- package/dist/phases/smoke-test/index.js +2 -2
- package/dist/phases/technical-design/context.d.ts +3 -3
- package/dist/phases/technical-design/context.js +11 -11
- package/dist/phases/technical-design/index.d.ts +2 -2
- package/dist/phases/technical-design/index.js +27 -27
- package/dist/phases/technical-design/outcome.d.ts +4 -4
- package/dist/phases/technical-design/outcome.js +6 -6
- package/dist/phases/technical-design/prompts.d.ts +2 -2
- package/dist/phases/technical-design/prompts.js +10 -10
- package/dist/phases/technical-design-verification/agent.d.ts +3 -3
- package/dist/phases/technical-design-verification/agent.js +4 -4
- package/dist/phases/technical-design-verification/index.d.ts +4 -4
- package/dist/phases/technical-design-verification/index.js +12 -12
- package/dist/phases/technical-design-verification/prompts.d.ts +3 -3
- package/dist/phases/technical-design-verification/prompts.js +6 -6
- package/dist/phases/test-cases-analysis/context.d.ts +5 -5
- package/dist/phases/test-cases-analysis/context.js +18 -18
- package/dist/phases/test-cases-analysis/formatters.js +7 -7
- package/dist/phases/test-cases-analysis/index.d.ts +1 -1
- package/dist/phases/test-cases-analysis/index.js +21 -21
- package/dist/phases/test-cases-analysis/outcome.d.ts +7 -7
- package/dist/phases/test-cases-analysis/outcome.js +13 -13
- package/dist/phases/test-cases-analysis/prompts.d.ts +3 -3
- package/dist/phases/test-cases-analysis/prompts.js +6 -6
- package/dist/phases/user-stories-analysis/context.d.ts +5 -5
- package/dist/phases/user-stories-analysis/context.js +18 -18
- package/dist/phases/user-stories-analysis/formatters.js +7 -7
- package/dist/phases/user-stories-analysis/index.d.ts +1 -1
- package/dist/phases/user-stories-analysis/index.js +21 -21
- package/dist/phases/user-stories-analysis/outcome.d.ts +7 -7
- package/dist/phases/user-stories-analysis/outcome.js +13 -13
- package/dist/phases/user-stories-analysis/prompts.d.ts +3 -3
- package/dist/phases/user-stories-analysis/prompts.js +10 -10
- package/dist/services/audit-logs.d.ts +10 -10
- package/dist/services/audit-logs.js +12 -12
- package/dist/services/branches.d.ts +6 -6
- package/dist/services/branches.js +16 -16
- package/dist/services/checklist.d.ts +3 -3
- package/dist/services/checklist.js +11 -11
- package/dist/services/coaching/coaching-agent.js +2 -2
- package/dist/services/coaching/coaching-loop.d.ts +1 -1
- package/dist/services/coaching/coaching-loop.js +2 -2
- package/dist/services/coaching/phase-coaching.d.ts +2 -2
- package/dist/services/coaching/phase-coaching.js +3 -3
- package/dist/services/coaching/self-rating.js +1 -1
- package/dist/services/feedbacks.d.ts +4 -4
- package/dist/services/feedbacks.js +8 -8
- package/dist/services/phase-hooks/bindings-fetcher.d.ts +4 -4
- package/dist/services/phase-hooks/bindings-fetcher.js +8 -8
- package/dist/services/phase-hooks/hook-executor.js +1 -1
- package/dist/services/phase-hooks/hook-logging.d.ts +2 -2
- package/dist/services/phase-hooks/hook-logging.js +4 -4
- package/dist/services/phase-hooks/hook-runner.d.ts +1 -1
- package/dist/services/phase-hooks/hook-runner.js +4 -4
- package/dist/services/phase-hooks/types.d.ts +3 -3
- package/dist/services/phase-ratings.d.ts +7 -7
- package/dist/services/phase-ratings.js +8 -8
- package/dist/services/pull-requests.d.ts +4 -4
- package/dist/services/pull-requests.js +11 -11
- package/dist/services/skill-resolver.d.ts +1 -1
- package/dist/services/skill-resolver.js +1 -1
- package/dist/skills/phase/app-store-generation/SKILL.md +9 -9
- package/dist/skills/phase/autonomous/SKILL.md +2 -2
- package/dist/skills/phase/branch-planning/SKILL.md +12 -12
- package/dist/skills/phase/bug-fixing/SKILL.md +1 -1
- package/dist/skills/phase/code-implementation/SKILL.md +6 -6
- package/dist/skills/phase/code-implementation-verification/SKILL.md +3 -3
- package/dist/skills/phase/code-testing/SKILL.md +5 -5
- package/dist/skills/phase/functional-testing/SKILL.md +3 -3
- package/dist/skills/phase/growth-analysis/SKILL.md +8 -8
- package/dist/skills/phase/incremental-sync/SKILL.md +6 -6
- package/dist/skills/phase/intelligence-analysis/SKILL.md +7 -7
- package/dist/skills/phase/{feature-analysis → issue-analysis}/SKILL.md +8 -8
- package/dist/skills/phase/pr-execution/SKILL.md +7 -7
- package/dist/skills/phase/pr-splitting/SKILL.md +14 -14
- package/dist/skills/phase/smoke-test/SKILL.md +1 -1
- package/dist/skills/phase/technical-design/SKILL.md +5 -5
- package/dist/skills/phase/test-cases-analysis/SKILL.md +4 -4
- package/dist/skills/phase/user-stories-analysis/SKILL.md +13 -13
- package/dist/system/session-manager.d.ts +3 -3
- package/dist/system/session-manager.js +3 -3
- package/dist/system/sleep-notification.js +2 -2
- package/dist/system/sleep-prevention.js +1 -1
- package/dist/types/index.d.ts +21 -21
- package/dist/types/{features.d.ts → issues.d.ts} +3 -3
- package/dist/types/pipeline.d.ts +4 -4
- package/dist/updater/auto-updater.d.ts +2 -2
- package/dist/updater/auto-updater.js +3 -3
- package/dist/utils/conflict-resolver.d.ts +1 -1
- package/dist/utils/conflict-resolver.js +5 -5
- package/dist/utils/formatters.d.ts +4 -4
- package/dist/utils/formatters.js +29 -29
- package/dist/utils/git-branch-manager-async.d.ts +6 -6
- package/dist/utils/git-branch-manager-async.js +41 -41
- package/dist/utils/git-branch-manager.d.ts +11 -11
- package/dist/utils/git-branch-manager.js +42 -42
- package/dist/utils/image-downloader.d.ts +4 -4
- package/dist/utils/image-downloader.js +17 -17
- package/dist/utils/pipeline-logger.d.ts +1 -1
- package/dist/utils/pipeline-logger.js +5 -5
- package/dist/workspace/workspace-manager.d.ts +17 -17
- package/dist/workspace/workspace-manager.js +21 -21
- package/package.json +1 -1
- package/vitest.config.ts +4 -0
- package/dist/api/__tests__/app-store.test.d.ts +0 -7
- package/dist/api/__tests__/app-store.test.js +0 -60
- package/dist/api/__tests__/intelligence.test.d.ts +0 -11
- package/dist/api/__tests__/intelligence.test.js +0 -315
- package/dist/api/features/__tests__/feature-utils.test.d.ts +0 -4
- package/dist/api/features/__tests__/feature-utils.test.js +0 -370
- package/dist/api/features/__tests__/status-updater.test.d.ts +0 -4
- package/dist/api/features/__tests__/status-updater.test.js +0 -88
- package/dist/api/features/approval-checker.d.ts +0 -20
- package/dist/api/features/feature-utils.d.ts +0 -23
- package/dist/api/features/feature-utils.js +0 -80
- package/dist/api/features/get-feature.d.ts +0 -5
- package/dist/api/features/get-feature.js +0 -21
- package/dist/api/features/index.d.ts +0 -8
- package/dist/api/features/index.js +0 -10
- package/dist/api/features/status-updater.d.ts +0 -41
- package/dist/api/features/update-feature.d.ts +0 -20
- package/dist/commands/build/__tests__/build.test.d.ts +0 -5
- package/dist/commands/build/__tests__/build.test.js +0 -206
- package/dist/commands/build/__tests__/detect-project.test.d.ts +0 -6
- package/dist/commands/build/__tests__/detect-project.test.js +0 -160
- package/dist/commands/build/__tests__/run-build.test.d.ts +0 -6
- package/dist/commands/build/__tests__/run-build.test.js +0 -433
- package/dist/commands/intelligence/__tests__/command.test.d.ts +0 -4
- package/dist/commands/intelligence/__tests__/command.test.js +0 -48
- package/dist/commands/workflow/core/__tests__/feature-filter.test.d.ts +0 -5
- package/dist/commands/workflow/core/__tests__/feature-filter.test.js +0 -316
- package/dist/commands/workflow/core/__tests__/pipeline-evaluator.test.d.ts +0 -4
- package/dist/commands/workflow/core/__tests__/pipeline-evaluator.test.js +0 -397
- package/dist/commands/workflow/core/__tests__/state-manager.test.d.ts +0 -4
- package/dist/commands/workflow/core/__tests__/state-manager.test.js +0 -384
- package/dist/commands/workflow/core/feature-filter.d.ts +0 -16
- package/dist/commands/workflow/core/feature-filter.js +0 -47
- package/dist/commands/workflow/feature-coordinator.d.ts +0 -18
- package/dist/config/__tests__/config.test.d.ts +0 -4
- package/dist/config/__tests__/config.test.js +0 -286
- package/dist/config/__tests__/feature-status.test.d.ts +0 -4
- package/dist/config/__tests__/feature-status.test.js +0 -111
- package/dist/errors/__tests__/index.test.d.ts +0 -4
- package/dist/errors/__tests__/index.test.js +0 -349
- package/dist/phases/app-store-generation/__tests__/agent.test.d.ts +0 -5
- package/dist/phases/app-store-generation/__tests__/agent.test.js +0 -142
- package/dist/phases/app-store-generation/__tests__/context.test.d.ts +0 -4
- package/dist/phases/app-store-generation/__tests__/context.test.js +0 -284
- package/dist/phases/app-store-generation/__tests__/prompts.test.d.ts +0 -4
- package/dist/phases/app-store-generation/__tests__/prompts.test.js +0 -122
- package/dist/phases/app-store-generation/__tests__/screenshot-composer.test.d.ts +0 -5
- package/dist/phases/app-store-generation/__tests__/screenshot-composer.test.js +0 -826
- package/dist/phases/code-review/__tests__/diff-utils.test.js +0 -101
- package/dist/phases/feature-analysis/context.d.ts +0 -24
- package/dist/phases/feature-analysis/index.d.ts +0 -8
- package/dist/phases/feature-analysis/outcome.d.ts +0 -40
- package/dist/phases/intelligence-analysis/__tests__/context.test.d.ts +0 -4
- package/dist/phases/intelligence-analysis/__tests__/context.test.js +0 -192
- package/dist/phases/intelligence-analysis/__tests__/matching.test.d.ts +0 -13
- package/dist/phases/intelligence-analysis/__tests__/matching.test.js +0 -154
- package/dist/phases/intelligence-analysis/__tests__/orchestration.test.d.ts +0 -5
- package/dist/phases/intelligence-analysis/__tests__/orchestration.test.js +0 -378
- package/dist/phases/intelligence-analysis/__tests__/prompts.test.d.ts +0 -4
- package/dist/phases/intelligence-analysis/__tests__/prompts.test.js +0 -33
- package/dist/phases/pr-execution/__tests__/file-assigner.test.d.ts +0 -1
- package/dist/phases/pr-execution/__tests__/file-assigner.test.js +0 -303
- package/dist/phases/pr-resolve/__tests__/checklist-learner.test.d.ts +0 -1
- package/dist/phases/pr-resolve/__tests__/checklist-learner.test.js +0 -157
- package/dist/phases/pr-resolve/__tests__/prompts.test.d.ts +0 -1
- package/dist/phases/pr-resolve/__tests__/prompts.test.js +0 -116
- package/dist/phases/pr-resolve/__tests__/resolve-mapping.test.d.ts +0 -1
- package/dist/phases/pr-resolve/__tests__/resolve-mapping.test.js +0 -138
- package/dist/phases/pr-resolve/__tests__/types.test.d.ts +0 -1
- package/dist/phases/pr-resolve/__tests__/types.test.js +0 -43
- package/dist/phases/pr-resolve/__tests__/workspace.test.d.ts +0 -1
- package/dist/phases/pr-resolve/__tests__/workspace.test.js +0 -111
- package/dist/phases/pr-review/__tests__/prompts.test.d.ts +0 -1
- package/dist/phases/pr-review/__tests__/prompts.test.js +0 -49
- package/dist/phases/pr-review/__tests__/review-comments.test.d.ts +0 -1
- package/dist/phases/pr-review/__tests__/review-comments.test.js +0 -110
- package/dist/phases/pr-shared/__tests__/agent-utils.test.d.ts +0 -1
- package/dist/phases/pr-shared/__tests__/agent-utils.test.js +0 -91
- package/dist/phases/pr-shared/__tests__/context.test.d.ts +0 -1
- package/dist/phases/pr-shared/__tests__/context.test.js +0 -94
- package/dist/phases/pr-splitting/__tests__/import-dep-validator.test.d.ts +0 -1
- package/dist/phases/pr-splitting/__tests__/import-dep-validator.test.js +0 -331
- package/dist/phases/run-sheet/render.d.ts +0 -60
- package/dist/phases/run-sheet/render.js +0 -297
- package/dist/phases/smoke-test/__tests__/agent.test.d.ts +0 -4
- package/dist/phases/smoke-test/__tests__/agent.test.js +0 -84
- package/dist/phases/smoke-test/__tests__/github.test.d.ts +0 -9
- package/dist/phases/smoke-test/__tests__/github.test.js +0 -120
- package/dist/phases/smoke-test/__tests__/snapshot.test.d.ts +0 -8
- package/dist/phases/smoke-test/__tests__/snapshot.test.js +0 -93
- package/dist/phases/smoke-test/github.d.ts +0 -54
- package/dist/phases/smoke-test/github.js +0 -101
- package/dist/phases/smoke-test/snapshot.d.ts +0 -27
- package/dist/phases/smoke-test/snapshot.js +0 -157
- package/dist/services/coaching/__tests__/coaching-agent.test.d.ts +0 -1
- package/dist/services/coaching/__tests__/coaching-agent.test.js +0 -74
- package/dist/services/coaching/__tests__/coaching-loop.test.d.ts +0 -1
- package/dist/services/coaching/__tests__/coaching-loop.test.js +0 -59
- package/dist/services/coaching/__tests__/self-rating.test.d.ts +0 -1
- package/dist/services/coaching/__tests__/self-rating.test.js +0 -188
- package/dist/services/lifecycle-agent/__tests__/phase-criteria.test.d.ts +0 -4
- package/dist/services/lifecycle-agent/__tests__/phase-criteria.test.js +0 -133
- package/dist/services/lifecycle-agent/__tests__/transition-rules.test.d.ts +0 -4
- package/dist/services/lifecycle-agent/__tests__/transition-rules.test.js +0 -336
- package/dist/services/lifecycle-agent/index.d.ts +0 -24
- package/dist/services/lifecycle-agent/index.js +0 -25
- package/dist/services/lifecycle-agent/phase-criteria.d.ts +0 -57
- package/dist/services/lifecycle-agent/phase-criteria.js +0 -335
- package/dist/services/lifecycle-agent/transition-rules.d.ts +0 -60
- package/dist/services/lifecycle-agent/transition-rules.js +0 -184
- package/dist/services/lifecycle-agent/types.d.ts +0 -190
- package/dist/services/lifecycle-agent/types.js +0 -12
- package/dist/services/phase-hooks/__tests__/bindings-fetcher.test.d.ts +0 -1
- package/dist/services/phase-hooks/__tests__/bindings-fetcher.test.js +0 -122
- package/dist/services/phase-hooks/__tests__/hook-executor.test.d.ts +0 -1
- package/dist/services/phase-hooks/__tests__/hook-executor.test.js +0 -321
- package/dist/services/phase-hooks/__tests__/hook-runner.test.d.ts +0 -1
- package/dist/services/phase-hooks/__tests__/hook-runner.test.js +0 -261
- package/dist/services/phase-hooks/__tests__/plugin-loader.test.d.ts +0 -1
- package/dist/services/phase-hooks/__tests__/plugin-loader.test.js +0 -158
- package/dist/services/video/__tests__/video-pipeline.test.d.ts +0 -6
- package/dist/services/video/__tests__/video-pipeline.test.js +0 -249
- package/dist/types/features.js +0 -1
- package/dist/workspace/__tests__/workspace-manager.test.d.ts +0 -7
- package/dist/workspace/__tests__/workspace-manager.test.js +0 -52
- /package/dist/api/{features → issues}/batch-operations.d.ts +0 -0
- /package/dist/api/{features → issues}/batch-operations.js +0 -0
- /package/dist/phases/{feature-analysis → issue-analysis}/agent.d.ts +0 -0
- /package/dist/skills/phase/{feature-analysis-verification → issue-analysis-verification}/SKILL.md +0 -0
- /package/dist/{phases/code-review/__tests__/diff-utils.test.d.ts → types/issues.js} +0 -0
|
@@ -19,24 +19,24 @@ export function createChatMcpServer() {
|
|
|
19
19
|
name: 'edsger-chat',
|
|
20
20
|
version: '1.0.0',
|
|
21
21
|
tools: [
|
|
22
|
-
tool('
|
|
23
|
-
|
|
22
|
+
tool('update_issue_status', 'Change the issue status (e.g., back to ready_for_ai, backlog). Use when the user wants to restart or change the workflow state.', {
|
|
23
|
+
issue_id: z.string().describe('Issue ID'),
|
|
24
24
|
status: z.string().describe('New status value'),
|
|
25
25
|
}, async (args) => {
|
|
26
|
-
const result = await callMcpEndpoint('
|
|
27
|
-
|
|
26
|
+
const result = await callMcpEndpoint('issues/update', {
|
|
27
|
+
issue_id: args.issue_id,
|
|
28
28
|
status: args.status,
|
|
29
29
|
});
|
|
30
30
|
return {
|
|
31
31
|
content: [{ type: 'text', text: JSON.stringify(result, null, 2) }],
|
|
32
32
|
};
|
|
33
33
|
}),
|
|
34
|
-
tool('update_execution_mode', 'Change the
|
|
35
|
-
|
|
34
|
+
tool('update_execution_mode', 'Change the issue execution mode (e.g., from_user_stories_analysis, from_code_implementation).', {
|
|
35
|
+
issue_id: z.string().describe('Issue ID'),
|
|
36
36
|
execution_mode: z
|
|
37
37
|
.enum([
|
|
38
38
|
'full_pipeline',
|
|
39
|
-
'
|
|
39
|
+
'only_issue_analysis',
|
|
40
40
|
'only_user_stories_analysis',
|
|
41
41
|
'only_test_cases_analysis',
|
|
42
42
|
'only_technical_design',
|
|
@@ -47,7 +47,7 @@ export function createChatMcpServer() {
|
|
|
47
47
|
'only_functional_testing',
|
|
48
48
|
'only_code_refine',
|
|
49
49
|
'only_code_review',
|
|
50
|
-
'
|
|
50
|
+
'from_issue_analysis',
|
|
51
51
|
'from_user_stories_analysis',
|
|
52
52
|
'from_test_cases_analysis',
|
|
53
53
|
'from_technical_design',
|
|
@@ -62,8 +62,8 @@ export function createChatMcpServer() {
|
|
|
62
62
|
])
|
|
63
63
|
.describe('New execution mode'),
|
|
64
64
|
}, async (args) => {
|
|
65
|
-
const result = await callMcpEndpoint('
|
|
66
|
-
|
|
65
|
+
const result = await callMcpEndpoint('issues/update', {
|
|
66
|
+
issue_id: args.issue_id,
|
|
67
67
|
execution_mode: args.execution_mode,
|
|
68
68
|
});
|
|
69
69
|
return {
|
|
@@ -71,12 +71,12 @@ export function createChatMcpServer() {
|
|
|
71
71
|
};
|
|
72
72
|
}),
|
|
73
73
|
tool('update_workflow', 'Modify workflow phases — reset phases to pending, skip phases, or reorder. Phase names must use snake_case (e.g., code_implementation, NOT code-implementation).', {
|
|
74
|
-
|
|
74
|
+
issue_id: z.string().describe('Issue ID'),
|
|
75
75
|
workflow: z
|
|
76
76
|
.array(z.object({
|
|
77
77
|
phase: z
|
|
78
78
|
.string()
|
|
79
|
-
.describe('Phase name in snake_case. Valid phases:
|
|
79
|
+
.describe('Phase name in snake_case. Valid phases: issue_analysis, user_stories_analysis, test_cases_analysis, technical_design, branch_planning, code_implementation, pr_splitting, pr_execution, functional_testing, code_review, code_refine, autonomous'),
|
|
80
80
|
status: z.enum(['pending', 'completed', 'skipped']),
|
|
81
81
|
}))
|
|
82
82
|
.describe('Updated workflow array'),
|
|
@@ -86,8 +86,8 @@ export function createChatMcpServer() {
|
|
|
86
86
|
...p,
|
|
87
87
|
phase: p.phase.replace(/-/g, '_'),
|
|
88
88
|
}));
|
|
89
|
-
const result = await callMcpEndpoint('
|
|
90
|
-
|
|
89
|
+
const result = await callMcpEndpoint('issues/update', {
|
|
90
|
+
issue_id: args.issue_id,
|
|
91
91
|
workflow: normalizedWorkflow,
|
|
92
92
|
});
|
|
93
93
|
return {
|
|
@@ -95,7 +95,7 @@ export function createChatMcpServer() {
|
|
|
95
95
|
};
|
|
96
96
|
}),
|
|
97
97
|
tool('update_user_stories', 'Create, update, or delete user stories based on feedback. Always provide a reason explaining why the change is being made.', {
|
|
98
|
-
|
|
98
|
+
issue_id: z.string().describe('Issue ID'),
|
|
99
99
|
reason: z
|
|
100
100
|
.string()
|
|
101
101
|
.describe('Why this change is being made — e.g. user feedback, bug found, requirement changed. Required for audit trail.'),
|
|
@@ -117,7 +117,7 @@ export function createChatMcpServer() {
|
|
|
117
117
|
try {
|
|
118
118
|
if (action.action === 'create') {
|
|
119
119
|
await callMcpEndpoint('user_stories/create', {
|
|
120
|
-
|
|
120
|
+
issue_id: args.issue_id,
|
|
121
121
|
user_stories: [
|
|
122
122
|
{
|
|
123
123
|
title: action.title,
|
|
@@ -159,7 +159,7 @@ export function createChatMcpServer() {
|
|
|
159
159
|
};
|
|
160
160
|
}),
|
|
161
161
|
tool('update_test_cases', 'Create, update, or delete test cases based on feedback. Always provide a reason explaining why the change is being made.', {
|
|
162
|
-
|
|
162
|
+
issue_id: z.string().describe('Issue ID'),
|
|
163
163
|
reason: z
|
|
164
164
|
.string()
|
|
165
165
|
.describe('Why this change is being made — e.g. user feedback, bug found, requirement changed. Required for audit trail.'),
|
|
@@ -189,7 +189,7 @@ export function createChatMcpServer() {
|
|
|
189
189
|
try {
|
|
190
190
|
if (action.action === 'create') {
|
|
191
191
|
await callMcpEndpoint('test_cases/create', {
|
|
192
|
-
|
|
192
|
+
issue_id: args.issue_id,
|
|
193
193
|
test_cases: [
|
|
194
194
|
{
|
|
195
195
|
name: action.name,
|
|
@@ -242,7 +242,7 @@ export function createChatMcpServer() {
|
|
|
242
242
|
],
|
|
243
243
|
};
|
|
244
244
|
}),
|
|
245
|
-
tool('list_checklists', 'List checklists for the product this
|
|
245
|
+
tool('list_checklists', 'List checklists for the product this issue belongs to. Each checklist can apply to multiple phases and is assigned to a specific role. Returns checklists with their items.', {
|
|
246
246
|
product_id: z.string().describe('Product ID'),
|
|
247
247
|
role: z
|
|
248
248
|
.string()
|
|
@@ -535,32 +535,32 @@ export function createChatMcpServer() {
|
|
|
535
535
|
content: [{ type: 'text', text: 'Options presented to the user.' }],
|
|
536
536
|
};
|
|
537
537
|
}),
|
|
538
|
-
tool('
|
|
539
|
-
|
|
538
|
+
tool('get_issue_context', 'Fetch the full current state of an issue: status, workflow, user stories, test cases.', {
|
|
539
|
+
issue_id: z.string().describe('Issue ID'),
|
|
540
540
|
}, async (args) => {
|
|
541
|
-
const [
|
|
542
|
-
callMcpEndpoint('
|
|
543
|
-
|
|
541
|
+
const [issueResult, storiesResult, testCasesResult] = await Promise.all([
|
|
542
|
+
callMcpEndpoint('issues/get', {
|
|
543
|
+
issue_id: args.issue_id,
|
|
544
544
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
545
545
|
}),
|
|
546
546
|
callMcpEndpoint('user_stories/list', {
|
|
547
|
-
|
|
547
|
+
issue_id: args.issue_id,
|
|
548
548
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
549
549
|
}),
|
|
550
550
|
callMcpEndpoint('test_cases/list', {
|
|
551
|
-
|
|
551
|
+
issue_id: args.issue_id,
|
|
552
552
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
553
553
|
}),
|
|
554
554
|
]);
|
|
555
|
-
const
|
|
555
|
+
const issue = issueResult?.issues?.[0] || {};
|
|
556
556
|
const result = {
|
|
557
|
-
|
|
557
|
+
issue,
|
|
558
558
|
user_stories: storiesResult?.user_stories || [],
|
|
559
559
|
test_cases: testCasesResult?.test_cases || [],
|
|
560
560
|
summary: {
|
|
561
|
-
status:
|
|
562
|
-
execution_mode:
|
|
563
|
-
workflow_phases: (
|
|
561
|
+
status: issue.status,
|
|
562
|
+
execution_mode: issue.execution_mode,
|
|
563
|
+
workflow_phases: (issue.workflow || []).map(
|
|
564
564
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
565
565
|
(p) => `${p.phase}: ${p.status}`),
|
|
566
566
|
},
|
|
@@ -609,7 +609,7 @@ export function createChatMcpServer() {
|
|
|
609
609
|
product_id: z.string().describe('Product ID'),
|
|
610
610
|
name: z
|
|
611
611
|
.string()
|
|
612
|
-
.describe('Short task name (e.g., "Review user stories for Login
|
|
612
|
+
.describe('Short task name (e.g., "Review user stories for Login issue")'),
|
|
613
613
|
description: z
|
|
614
614
|
.string()
|
|
615
615
|
.optional()
|
|
@@ -621,7 +621,7 @@ export function createChatMcpServer() {
|
|
|
621
621
|
.string()
|
|
622
622
|
.optional()
|
|
623
623
|
.describe('User ID to assign to (use list_product_members to look up)'),
|
|
624
|
-
|
|
624
|
+
issue_id: z.string().optional().describe('Related issue ID'),
|
|
625
625
|
action_url: z
|
|
626
626
|
.string()
|
|
627
627
|
.optional()
|
|
@@ -639,10 +639,10 @@ export function createChatMcpServer() {
|
|
|
639
639
|
const text = listResult?.content?.[0]?.text || '[]';
|
|
640
640
|
const existingTasks = JSON.parse(text);
|
|
641
641
|
const nextSequence = existingTasks.length + 1;
|
|
642
|
-
// Use explicit action_url if provided, otherwise auto-generate from
|
|
642
|
+
// Use explicit action_url if provided, otherwise auto-generate from issue_id
|
|
643
643
|
const actionUrl = args.action_url ||
|
|
644
|
-
(args.
|
|
645
|
-
? `/products/${args.product_id}/
|
|
644
|
+
(args.issue_id
|
|
645
|
+
? `/products/${args.product_id}/issues/${args.issue_id}`
|
|
646
646
|
: null);
|
|
647
647
|
const result = await callMcpEndpoint('tasks/create', {
|
|
648
648
|
product_id: args.product_id,
|
|
@@ -652,7 +652,7 @@ export function createChatMcpServer() {
|
|
|
652
652
|
executor: args.executor,
|
|
653
653
|
source: 'system',
|
|
654
654
|
assigned_to: args.assigned_to || null,
|
|
655
|
-
|
|
655
|
+
issue_id: args.issue_id || null,
|
|
656
656
|
action_url: actionUrl,
|
|
657
657
|
priority: args.priority || (args.executor === 'human' ? 3 : 2),
|
|
658
658
|
});
|
|
@@ -671,28 +671,28 @@ export function createChatMcpServer() {
|
|
|
671
671
|
};
|
|
672
672
|
}),
|
|
673
673
|
tool('trigger_phase_rerun', 'Reset a workflow phase to pending so it will re-run.', {
|
|
674
|
-
|
|
674
|
+
issue_id: z.string().describe('Issue ID'),
|
|
675
675
|
phase: z.string().describe('Phase name to reset'),
|
|
676
676
|
}, async (args) => {
|
|
677
|
-
const
|
|
678
|
-
|
|
677
|
+
const issueResult = (await callMcpEndpoint('issues/get', {
|
|
678
|
+
issue_id: args.issue_id,
|
|
679
679
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
680
680
|
}));
|
|
681
|
-
const
|
|
682
|
-
if (!
|
|
681
|
+
const issue = issueResult?.issues?.[0];
|
|
682
|
+
if (!issue) {
|
|
683
683
|
return {
|
|
684
|
-
content: [{ type: 'text', text: '
|
|
684
|
+
content: [{ type: 'text', text: 'Issue not found' }],
|
|
685
685
|
isError: true,
|
|
686
686
|
};
|
|
687
687
|
}
|
|
688
|
-
const workflow =
|
|
688
|
+
const workflow = issue.workflow || [];
|
|
689
689
|
const normalizedPhase = args.phase.replace(/-/g, '_');
|
|
690
690
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
691
691
|
const updatedWorkflow = workflow.map((p) => p.phase === normalizedPhase
|
|
692
692
|
? { ...p, status: 'pending', executed_at: null }
|
|
693
693
|
: p);
|
|
694
|
-
await callMcpEndpoint('
|
|
695
|
-
|
|
694
|
+
await callMcpEndpoint('issues/update', {
|
|
695
|
+
issue_id: args.issue_id,
|
|
696
696
|
workflow: updatedWorkflow,
|
|
697
697
|
});
|
|
698
698
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Branch PR Creator for multi-branch
|
|
2
|
+
* Branch PR Creator for multi-branch issue development
|
|
3
3
|
* Creates pull requests from dev/ branches to feat/ branches
|
|
4
4
|
*/
|
|
5
5
|
export interface BranchPullRequestConfig {
|
|
@@ -26,6 +26,6 @@ export declare function featBranchToDevBranch(featBranchName: string): string;
|
|
|
26
26
|
export declare function devBranchToFeatBranch(devBranchName: string): string;
|
|
27
27
|
/**
|
|
28
28
|
* Create a pull request from a dev/ branch to its corresponding feat/ branch
|
|
29
|
-
* This is used after code implementation in multi-branch
|
|
29
|
+
* This is used after code implementation in multi-branch issues
|
|
30
30
|
*/
|
|
31
|
-
export declare function createBranchPullRequest(config: BranchPullRequestConfig, devBranchName: string,
|
|
31
|
+
export declare function createBranchPullRequest(config: BranchPullRequestConfig, devBranchName: string, issueName: string, branchDescription: string, baseBranch?: string): Promise<BranchPullRequestResult>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Branch PR Creator for multi-branch
|
|
2
|
+
* Branch PR Creator for multi-branch issue development
|
|
3
3
|
* Creates pull requests from dev/ branches to feat/ branches
|
|
4
4
|
*/
|
|
5
5
|
import { Octokit } from '@octokit/rest';
|
|
@@ -8,7 +8,7 @@ import { logError, logInfo } from '../../utils/logger.js';
|
|
|
8
8
|
// GitHub PR title best practice: keep under 72 characters
|
|
9
9
|
const MAX_PR_TITLE_LENGTH = 72;
|
|
10
10
|
const PR_TITLE_PREFIX = 'feat: ';
|
|
11
|
-
const
|
|
11
|
+
const MAX_ISSUE_NAME_LENGTH = MAX_PR_TITLE_LENGTH - PR_TITLE_PREFIX.length;
|
|
12
12
|
/**
|
|
13
13
|
* Truncate text to a maximum length, adding ellipsis if truncated
|
|
14
14
|
*/
|
|
@@ -42,9 +42,9 @@ export function devBranchToFeatBranch(devBranchName) {
|
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Create a pull request from a dev/ branch to its corresponding feat/ branch
|
|
45
|
-
* This is used after code implementation in multi-branch
|
|
45
|
+
* This is used after code implementation in multi-branch issues
|
|
46
46
|
*/
|
|
47
|
-
export async function createBranchPullRequest(config, devBranchName,
|
|
47
|
+
export async function createBranchPullRequest(config, devBranchName, issueName, branchDescription, baseBranch = 'main') {
|
|
48
48
|
const { githubToken, owner, repo, verbose } = config;
|
|
49
49
|
if (!devBranchName.startsWith('dev/')) {
|
|
50
50
|
return {
|
|
@@ -125,7 +125,7 @@ export async function createBranchPullRequest(config, devBranchName, featureName
|
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
// Generate PR title and body (truncate to keep under 72 chars, lowercase)
|
|
128
|
-
const truncatedName = truncateText(
|
|
128
|
+
const truncatedName = truncateText(issueName.toLowerCase(), MAX_ISSUE_NAME_LENGTH);
|
|
129
129
|
const title = `${PR_TITLE_PREFIX}${truncatedName}`;
|
|
130
130
|
const body = `## Branch Implementation
|
|
131
131
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ProductInfo } from '../../api/products.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { IssueInfo, TestCase, UserStory } from '../../types/issues.js';
|
|
3
3
|
export interface CodeImplementationContext {
|
|
4
|
-
|
|
4
|
+
issue: IssueInfo;
|
|
5
5
|
product: ProductInfo;
|
|
6
6
|
user_stories: UserStory[];
|
|
7
7
|
test_cases: TestCase[];
|
|
@@ -10,7 +10,7 @@ export interface CodeImplementationContext {
|
|
|
10
10
|
/**
|
|
11
11
|
* Fetch all code implementation context information via MCP endpoints
|
|
12
12
|
*/
|
|
13
|
-
export declare function fetchCodeImplementationContext(
|
|
13
|
+
export declare function fetchCodeImplementationContext(issueId: string, verbose?: boolean): Promise<CodeImplementationContext>;
|
|
14
14
|
/**
|
|
15
15
|
* Format the context into a readable string for Claude Code
|
|
16
16
|
*/
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getIssue, getTestCases, getUserStories, } from '../../api/issues/index.js';
|
|
2
2
|
import { getProduct } from '../../api/products.js';
|
|
3
3
|
import { logError, logInfo } from '../../utils/logger.js';
|
|
4
4
|
/**
|
|
5
5
|
* Fetch all code implementation context information via MCP endpoints
|
|
6
6
|
*/
|
|
7
|
-
export async function fetchCodeImplementationContext(
|
|
7
|
+
export async function fetchCodeImplementationContext(issueId, verbose) {
|
|
8
8
|
try {
|
|
9
9
|
if (verbose) {
|
|
10
|
-
logInfo(`Fetching complete code implementation context for
|
|
10
|
+
logInfo(`Fetching complete code implementation context for issue: ${issueId}`);
|
|
11
11
|
}
|
|
12
12
|
// Fetch all required data in parallel for better performance
|
|
13
|
-
const [
|
|
14
|
-
|
|
15
|
-
getUserStories(
|
|
16
|
-
getTestCases(
|
|
13
|
+
const [issue, userStories, testCases] = await Promise.all([
|
|
14
|
+
getIssue(issueId, verbose),
|
|
15
|
+
getUserStories(issueId, verbose),
|
|
16
|
+
getTestCases(issueId, verbose),
|
|
17
17
|
]);
|
|
18
|
-
const product = await getProduct(
|
|
18
|
+
const product = await getProduct(issue.product_id, verbose);
|
|
19
19
|
if (verbose) {
|
|
20
20
|
logInfo(`✅ Code implementation context fetched successfully:`);
|
|
21
|
-
logInfo(`
|
|
21
|
+
logInfo(` Issue: ${issue.name}`);
|
|
22
22
|
logInfo(` Product: ${product.name}`);
|
|
23
23
|
logInfo(` User Stories: ${userStories.length}`);
|
|
24
24
|
logInfo(` Test Cases: ${testCases.length}`);
|
|
25
|
-
logInfo(` Technical Design: ${
|
|
25
|
+
logInfo(` Technical Design: ${issue.technical_design ? 'Available' : 'Not available'}`);
|
|
26
26
|
}
|
|
27
27
|
return {
|
|
28
|
-
|
|
28
|
+
issue,
|
|
29
29
|
product,
|
|
30
30
|
user_stories: userStories,
|
|
31
31
|
test_cases: testCases,
|
|
32
|
-
technical_design:
|
|
32
|
+
technical_design: issue.technical_design,
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
catch (error) {
|
|
@@ -62,11 +62,11 @@ export function formatContextForPrompt(context) {
|
|
|
62
62
|
};
|
|
63
63
|
return `# Code Implementation Context
|
|
64
64
|
|
|
65
|
-
##
|
|
66
|
-
- **ID**: ${context.
|
|
67
|
-
- **Name**: ${context.
|
|
68
|
-
- **Description**: ${context.
|
|
69
|
-
- **Current Status**: ${context.
|
|
65
|
+
## Issue Information
|
|
66
|
+
- **ID**: ${context.issue.id}
|
|
67
|
+
- **Name**: ${context.issue.name}
|
|
68
|
+
- **Description**: ${context.issue.description || 'No description provided'}
|
|
69
|
+
- **Current Status**: ${context.issue.status}
|
|
70
70
|
|
|
71
71
|
## Product Information
|
|
72
72
|
- **Product**: ${context.product.name}
|
|
@@ -84,5 +84,5 @@ ${context.technical_design || 'No technical design available - implement based o
|
|
|
84
84
|
|
|
85
85
|
---
|
|
86
86
|
|
|
87
|
-
**Implementation Instructions**: Based on the above requirements, user stories, test cases, and technical design, implement the complete
|
|
87
|
+
**Implementation Instructions**: Based on the above requirements, user stories, test cases, and technical design, implement the complete issue functionality. Ensure all user stories are implemented and all test cases can pass.`;
|
|
88
88
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { type ChecklistPhaseContext } from '../../services/checklist.js';
|
|
2
2
|
import { type EdsgerConfig } from '../../types/index.js';
|
|
3
3
|
export interface CodeImplementationOptions {
|
|
4
|
-
|
|
4
|
+
issueId: string;
|
|
5
5
|
verbose?: boolean;
|
|
6
6
|
baseBranch?: string;
|
|
7
7
|
maxVerificationIterations?: number;
|
|
8
|
-
|
|
8
|
+
issueBranchId?: string;
|
|
9
9
|
}
|
|
10
10
|
export interface CodeImplementationResult {
|
|
11
|
-
|
|
11
|
+
issueId: string;
|
|
12
12
|
branchName: string;
|
|
13
13
|
implementationSummary: string | null;
|
|
14
14
|
status: 'success' | 'error';
|
|
@@ -30,4 +30,4 @@ export interface CodeImplementationResult {
|
|
|
30
30
|
[key: string]: unknown;
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
export declare const
|
|
33
|
+
export declare const implementIssueCode: (options: CodeImplementationOptions, config: EdsgerConfig, checklistContext?: ChecklistPhaseContext | null) => Promise<CodeImplementationResult>;
|