takt 0.33.2 → 0.35.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/README.md +32 -25
- package/builtins/en/config.yaml +8 -8
- package/builtins/en/facets/instructions/dual-team-leader-implement.md +8 -2
- package/builtins/en/facets/instructions/plan.md +3 -0
- package/builtins/en/facets/instructions/review-requirements.md +12 -7
- package/builtins/en/facets/instructions/supervise.md +4 -2
- package/builtins/en/facets/instructions/team-leader-implement.md +3 -2
- package/builtins/en/facets/knowledge/architecture.md +93 -0
- package/builtins/en/facets/knowledge/cqrs-es.md +64 -5
- package/builtins/en/facets/output-contracts/plan.md +8 -0
- package/builtins/en/facets/output-contracts/requirements-review.md +10 -8
- package/builtins/en/facets/output-contracts/supervisor-validation.md +8 -0
- package/builtins/en/facets/personas/planner.md +7 -0
- package/builtins/en/facets/personas/requirements-reviewer.md +7 -0
- package/builtins/en/facets/personas/supervisor.md +10 -0
- package/builtins/en/facets/policies/coding.md +87 -0
- package/builtins/en/{piece-categories.yaml → workflow-categories.yaml} +10 -10
- package/builtins/en/{pieces → workflows}/audit-architecture-backend.yaml +3 -3
- package/builtins/en/{pieces → workflows}/audit-architecture-dual.yaml +3 -3
- package/builtins/en/{pieces → workflows}/audit-architecture-frontend.yaml +3 -3
- package/builtins/en/{pieces → workflows}/audit-architecture.yaml +3 -3
- package/builtins/en/{pieces → workflows}/audit-e2e.yaml +4 -4
- package/builtins/en/{pieces → workflows}/audit-security.yaml +3 -3
- package/builtins/en/{pieces → workflows}/audit-unit.yaml +4 -4
- package/builtins/en/{pieces → workflows}/backend-cqrs-mini.yaml +5 -5
- package/builtins/en/{pieces → workflows}/backend-cqrs.yaml +5 -5
- package/builtins/en/{pieces → workflows}/backend-mini.yaml +5 -5
- package/builtins/en/{pieces → workflows}/backend.yaml +5 -5
- package/builtins/en/{pieces → workflows}/compound-eye.yaml +5 -5
- package/builtins/en/{pieces → workflows}/deep-research.yaml +5 -5
- package/builtins/en/{pieces → workflows}/default.yaml +5 -5
- package/builtins/en/{pieces → workflows}/dual-cqrs-mini.yaml +5 -5
- package/builtins/en/{pieces → workflows}/dual-cqrs.yaml +5 -5
- package/builtins/en/{pieces → workflows}/dual-mini.yaml +5 -5
- package/builtins/en/{pieces → workflows}/dual.yaml +23 -7
- package/builtins/en/{pieces → workflows}/frontend-mini.yaml +5 -5
- package/builtins/en/{pieces → workflows}/frontend.yaml +5 -5
- package/builtins/en/{pieces → workflows}/magi.yaml +4 -4
- package/builtins/en/{pieces → workflows}/research.yaml +5 -5
- package/builtins/en/{pieces → workflows}/review-backend-cqrs.yaml +4 -4
- package/builtins/en/{pieces → workflows}/review-backend.yaml +4 -4
- package/builtins/en/{pieces → workflows}/review-default.yaml +5 -5
- package/builtins/en/{pieces → workflows}/review-dual-cqrs.yaml +4 -4
- package/builtins/en/{pieces → workflows}/review-dual.yaml +4 -4
- package/builtins/en/{pieces → workflows}/review-fix-backend-cqrs.yaml +4 -4
- package/builtins/en/{pieces → workflows}/review-fix-backend.yaml +4 -4
- package/builtins/en/{pieces → workflows}/review-fix-default.yaml +4 -4
- package/builtins/en/{pieces → workflows}/review-fix-dual-cqrs.yaml +4 -4
- package/builtins/en/{pieces → workflows}/review-fix-dual.yaml +4 -4
- package/builtins/en/{pieces → workflows}/review-fix-frontend.yaml +4 -4
- package/builtins/en/{pieces → workflows}/review-fix-takt-default.yaml +4 -4
- package/builtins/en/{pieces → workflows}/review-frontend.yaml +4 -4
- package/builtins/en/{pieces → workflows}/review-takt-default.yaml +5 -5
- package/builtins/en/{pieces → workflows}/takt-default.yaml +5 -5
- package/builtins/en/{pieces → workflows}/terraform.yaml +5 -5
- package/builtins/ja/config.yaml +8 -8
- package/builtins/ja/facets/instructions/dual-team-leader-implement.md +8 -2
- package/builtins/ja/facets/instructions/plan.md +3 -0
- package/builtins/ja/facets/instructions/review-requirements.md +12 -7
- package/builtins/ja/facets/instructions/supervise.md +4 -2
- package/builtins/ja/facets/instructions/team-leader-implement.md +3 -2
- package/builtins/ja/facets/knowledge/architecture.md +93 -0
- package/builtins/ja/facets/knowledge/cqrs-es.md +66 -6
- package/builtins/ja/facets/output-contracts/plan.md +8 -0
- package/builtins/ja/facets/output-contracts/requirements-review.md +10 -8
- package/builtins/ja/facets/output-contracts/supervisor-validation.md +8 -0
- package/builtins/ja/facets/personas/planner.md +8 -0
- package/builtins/ja/facets/personas/requirements-reviewer.md +7 -0
- package/builtins/ja/facets/personas/supervisor.md +6 -0
- package/builtins/ja/facets/policies/coding.md +87 -0
- package/builtins/ja/{piece-categories.yaml → workflow-categories.yaml} +10 -10
- package/builtins/ja/{pieces → workflows}/audit-architecture-backend.yaml +3 -3
- package/builtins/ja/{pieces → workflows}/audit-architecture-dual.yaml +3 -3
- package/builtins/ja/{pieces → workflows}/audit-architecture-frontend.yaml +3 -3
- package/builtins/ja/{pieces → workflows}/audit-architecture.yaml +3 -3
- package/builtins/ja/{pieces → workflows}/audit-e2e.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/audit-security.yaml +3 -3
- package/builtins/ja/{pieces → workflows}/audit-unit.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/backend-cqrs-mini.yaml +5 -5
- package/builtins/ja/{pieces → workflows}/backend-cqrs.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/backend-mini.yaml +5 -5
- package/builtins/ja/{pieces → workflows}/backend.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/compound-eye.yaml +5 -5
- package/builtins/ja/{pieces → workflows}/deep-research.yaml +5 -5
- package/builtins/ja/{pieces → workflows}/default.yaml +5 -5
- package/builtins/ja/{pieces → workflows}/dual-cqrs-mini.yaml +5 -5
- package/builtins/ja/{pieces → workflows}/dual-cqrs.yaml +5 -5
- package/builtins/ja/{pieces → workflows}/dual-mini.yaml +5 -5
- package/builtins/ja/{pieces → workflows}/dual.yaml +23 -7
- package/builtins/ja/{pieces → workflows}/frontend-mini.yaml +5 -5
- package/builtins/ja/{pieces → workflows}/frontend.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/magi.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/research.yaml +5 -5
- package/builtins/ja/{pieces → workflows}/review-backend-cqrs.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/review-backend.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/review-default.yaml +5 -5
- package/builtins/ja/{pieces → workflows}/review-dual-cqrs.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/review-dual.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/review-fix-backend-cqrs.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/review-fix-backend.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/review-fix-default.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/review-fix-dual-cqrs.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/review-fix-dual.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/review-fix-frontend.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/review-fix-takt-default.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/review-frontend.yaml +4 -4
- package/builtins/ja/{pieces → workflows}/review-takt-default.yaml +5 -5
- package/builtins/ja/{pieces → workflows}/takt-default.yaml +5 -5
- package/builtins/ja/{pieces → workflows}/terraform.yaml +5 -5
- package/builtins/schemas/decomposition.json +1 -5
- package/builtins/schemas/more-parts.json +1 -5
- package/builtins/skill/SKILL.md +54 -52
- package/builtins/skill/references/engine.md +45 -45
- package/builtins/skill/references/yaml-schema.md +46 -38
- package/builtins/skill-codex/SKILL.md +48 -46
- package/builtins/skill-codex/references/engine.md +32 -32
- package/builtins/skill-codex/references/yaml-schema.md +46 -38
- package/dist/agents/decompose-task-usecase.d.ts +3 -1
- package/dist/agents/decompose-task-usecase.d.ts.map +1 -1
- package/dist/agents/decompose-task-usecase.js +2 -112
- package/dist/agents/decompose-task-usecase.js.map +1 -1
- package/dist/agents/judge-status-usecase.d.ts +17 -0
- package/dist/agents/judge-status-usecase.d.ts.map +1 -1
- package/dist/agents/judge-status-usecase.js +53 -31
- package/dist/agents/judge-status-usecase.js.map +1 -1
- package/dist/agents/judge-utils.d.ts +6 -0
- package/dist/agents/judge-utils.d.ts.map +1 -1
- package/dist/agents/judge-utils.js +12 -0
- package/dist/agents/judge-utils.js.map +1 -1
- package/dist/agents/runner.d.ts.map +1 -1
- package/dist/agents/runner.js +12 -8
- package/dist/agents/runner.js.map +1 -1
- package/dist/agents/structured-caller/contracts.d.ts +18 -0
- package/dist/agents/structured-caller/contracts.d.ts.map +1 -0
- package/dist/agents/structured-caller/contracts.js +2 -0
- package/dist/agents/structured-caller/contracts.js.map +1 -0
- package/dist/agents/structured-caller/default-structured-caller.d.ts +19 -0
- package/dist/agents/structured-caller/default-structured-caller.d.ts.map +1 -0
- package/dist/agents/structured-caller/default-structured-caller.js +25 -0
- package/dist/agents/structured-caller/default-structured-caller.js.map +1 -0
- package/dist/agents/structured-caller/prompt-based-structured-caller.d.ts +19 -0
- package/dist/agents/structured-caller/prompt-based-structured-caller.d.ts.map +1 -0
- package/dist/agents/structured-caller/prompt-based-structured-caller.js +151 -0
- package/dist/agents/structured-caller/prompt-based-structured-caller.js.map +1 -0
- package/dist/agents/structured-caller/shared.d.ts +5 -0
- package/dist/agents/structured-caller/shared.d.ts.map +1 -0
- package/dist/agents/structured-caller/shared.js +36 -0
- package/dist/agents/structured-caller/shared.js.map +1 -0
- package/dist/agents/structured-caller.d.ts +4 -0
- package/dist/agents/structured-caller.d.ts.map +1 -0
- package/dist/agents/structured-caller.js +3 -0
- package/dist/agents/structured-caller.js.map +1 -0
- package/dist/agents/team-leader-structured-output.d.ts +19 -0
- package/dist/agents/team-leader-structured-output.d.ts.map +1 -0
- package/dist/agents/team-leader-structured-output.js +152 -0
- package/dist/agents/team-leader-structured-output.js.map +1 -0
- package/dist/agents/types.d.ts +4 -3
- package/dist/agents/types.d.ts.map +1 -1
- package/dist/app/cli/commands.js +31 -14
- package/dist/app/cli/commands.js.map +1 -1
- package/dist/app/cli/helpers.d.ts +1 -0
- package/dist/app/cli/helpers.d.ts.map +1 -1
- package/dist/app/cli/helpers.js +12 -0
- package/dist/app/cli/helpers.js.map +1 -1
- package/dist/app/cli/program.d.ts.map +1 -1
- package/dist/app/cli/program.js +4 -3
- package/dist/app/cli/program.js.map +1 -1
- package/dist/app/cli/routing.d.ts.map +1 -1
- package/dist/app/cli/routing.js +12 -4
- package/dist/app/cli/routing.js.map +1 -1
- package/dist/core/models/config-schemas.d.ts +720 -0
- package/dist/core/models/config-schemas.d.ts.map +1 -0
- package/dist/core/models/config-schemas.js +143 -0
- package/dist/core/models/config-schemas.js.map +1 -0
- package/dist/core/models/config-types.d.ts +12 -8
- package/dist/core/models/config-types.d.ts.map +1 -1
- package/dist/core/models/part.d.ts +0 -2
- package/dist/core/models/part.d.ts.map +1 -1
- package/dist/core/models/piece-types.d.ts +9 -106
- package/dist/core/models/piece-types.d.ts.map +1 -1
- package/dist/core/models/piece-types.js +2 -4
- package/dist/core/models/piece-types.js.map +1 -1
- package/dist/core/models/provider-profiles.d.ts +1 -1
- package/dist/core/models/provider-profiles.d.ts.map +1 -1
- package/dist/core/models/schema-base.d.ts +522 -0
- package/dist/core/models/schema-base.d.ts.map +1 -0
- package/dist/core/models/schema-base.js +218 -0
- package/dist/core/models/schema-base.js.map +1 -0
- package/dist/core/models/schemas.d.ts +4 -1638
- package/dist/core/models/schemas.d.ts.map +1 -1
- package/dist/core/models/schemas.js +4 -563
- package/dist/core/models/schemas.js.map +1 -1
- package/dist/core/models/workflow-schemas.d.ts +1741 -0
- package/dist/core/models/workflow-schemas.d.ts.map +1 -0
- package/dist/core/models/workflow-schemas.js +217 -0
- package/dist/core/models/workflow-schemas.js.map +1 -0
- package/dist/core/piece/engine/ArpeggioRunner.d.ts +2 -6
- package/dist/core/piece/engine/ArpeggioRunner.d.ts.map +1 -1
- package/dist/core/piece/engine/ArpeggioRunner.js +5 -1
- package/dist/core/piece/engine/ArpeggioRunner.js.map +1 -1
- package/dist/core/piece/engine/MovementExecutor.d.ts +2 -6
- package/dist/core/piece/engine/MovementExecutor.d.ts.map +1 -1
- package/dist/core/piece/engine/MovementExecutor.js +5 -1
- package/dist/core/piece/engine/MovementExecutor.js.map +1 -1
- package/dist/core/piece/engine/OptionsBuilder.d.ts +1 -1
- package/dist/core/piece/engine/OptionsBuilder.d.ts.map +1 -1
- package/dist/core/piece/engine/OptionsBuilder.js +14 -35
- package/dist/core/piece/engine/OptionsBuilder.js.map +1 -1
- package/dist/core/piece/engine/ParallelRunner.d.ts +2 -6
- package/dist/core/piece/engine/ParallelRunner.d.ts.map +1 -1
- package/dist/core/piece/engine/ParallelRunner.js +115 -55
- package/dist/core/piece/engine/ParallelRunner.js.map +1 -1
- package/dist/core/piece/engine/PieceEngine.d.ts +1 -1
- package/dist/core/piece/engine/PieceEngine.d.ts.map +1 -1
- package/dist/core/piece/engine/PieceEngine.js +11 -10
- package/dist/core/piece/engine/PieceEngine.js.map +1 -1
- package/dist/core/piece/engine/TeamLeaderRunner.d.ts +0 -7
- package/dist/core/piece/engine/TeamLeaderRunner.d.ts.map +1 -1
- package/dist/core/piece/engine/TeamLeaderRunner.js +9 -6
- package/dist/core/piece/engine/TeamLeaderRunner.js.map +1 -1
- package/dist/core/piece/engine/parallel-logger.d.ts.map +1 -1
- package/dist/core/piece/engine/parallel-logger.js +2 -0
- package/dist/core/piece/engine/parallel-logger.js.map +1 -1
- package/dist/core/piece/engine/team-leader-common.d.ts.map +1 -1
- package/dist/core/piece/engine/team-leader-common.js +6 -3
- package/dist/core/piece/engine/team-leader-common.js.map +1 -1
- package/dist/core/piece/evaluation/RuleEvaluator.d.ts +9 -3
- package/dist/core/piece/evaluation/RuleEvaluator.d.ts.map +1 -1
- package/dist/core/piece/evaluation/RuleEvaluator.js +18 -14
- package/dist/core/piece/evaluation/RuleEvaluator.js.map +1 -1
- package/dist/core/piece/instruction/InstructionBuilder.d.ts +4 -4
- package/dist/core/piece/instruction/InstructionBuilder.js +9 -9
- package/dist/core/piece/instruction/InstructionBuilder.js.map +1 -1
- package/dist/core/piece/instruction/instruction-context.d.ts +1 -1
- package/dist/core/piece/instruction/instruction-context.js +5 -5
- package/dist/core/piece/instruction/instruction-context.js.map +1 -1
- package/dist/core/piece/part-definition-validator.d.ts.map +1 -1
- package/dist/core/piece/part-definition-validator.js +3 -6
- package/dist/core/piece/part-definition-validator.js.map +1 -1
- package/dist/core/piece/permission-profile-resolution.d.ts +0 -12
- package/dist/core/piece/permission-profile-resolution.d.ts.map +1 -1
- package/dist/core/piece/permission-profile-resolution.js +1 -12
- package/dist/core/piece/permission-profile-resolution.js.map +1 -1
- package/dist/core/piece/phase-runner.d.ts +7 -1
- package/dist/core/piece/phase-runner.d.ts.map +1 -1
- package/dist/core/piece/phase-runner.js.map +1 -1
- package/dist/core/piece/provider-resolution.d.ts +0 -2
- package/dist/core/piece/provider-resolution.d.ts.map +1 -1
- package/dist/core/piece/provider-resolution.js +0 -2
- package/dist/core/piece/provider-resolution.js.map +1 -1
- package/dist/core/piece/status-judgment-phase.d.ts.map +1 -1
- package/dist/core/piece/status-judgment-phase.js +7 -2
- package/dist/core/piece/status-judgment-phase.js.map +1 -1
- package/dist/core/piece/types.d.ts +7 -9
- package/dist/core/piece/types.d.ts.map +1 -1
- package/dist/core/runtime/runtime-environment.d.ts.map +1 -1
- package/dist/core/runtime/runtime-environment.js +15 -0
- package/dist/core/runtime/runtime-environment.js.map +1 -1
- package/dist/features/config/deploySkill.js +1 -1
- package/dist/features/config/deploySkill.js.map +1 -1
- package/dist/features/config/deploySkillCodex.js +1 -1
- package/dist/features/config/deploySkillCodex.js.map +1 -1
- package/dist/features/config/deploySkillInternal.js +5 -5
- package/dist/features/config/deploySkillInternal.js.map +1 -1
- package/dist/features/config/ejectBuiltin.d.ts +3 -3
- package/dist/features/config/ejectBuiltin.d.ts.map +1 -1
- package/dist/features/config/ejectBuiltin.js +53 -28
- package/dist/features/config/ejectBuiltin.js.map +1 -1
- package/dist/features/pieceSelection/index.d.ts.map +1 -1
- package/dist/features/pieceSelection/index.js +32 -31
- package/dist/features/pieceSelection/index.js.map +1 -1
- package/dist/features/pipeline/execute.d.ts.map +1 -1
- package/dist/features/pipeline/execute.js +9 -3
- package/dist/features/pipeline/execute.js.map +1 -1
- package/dist/features/pipeline/steps.d.ts.map +1 -1
- package/dist/features/pipeline/steps.js +22 -17
- package/dist/features/pipeline/steps.js.map +1 -1
- package/dist/features/prompt/preview.d.ts.map +1 -1
- package/dist/features/prompt/preview.js +9 -4
- package/dist/features/prompt/preview.js.map +1 -1
- package/dist/features/tasks/add/index.d.ts +4 -0
- package/dist/features/tasks/add/index.d.ts.map +1 -1
- package/dist/features/tasks/add/index.js +14 -5
- package/dist/features/tasks/add/index.js.map +1 -1
- package/dist/features/tasks/add/worktree-settings.d.ts.map +1 -1
- package/dist/features/tasks/add/worktree-settings.js +10 -8
- package/dist/features/tasks/add/worktree-settings.js.map +1 -1
- package/dist/features/tasks/execute/parallelExecution.js +2 -2
- package/dist/features/tasks/execute/pieceExecution.d.ts.map +1 -1
- package/dist/features/tasks/execute/pieceExecution.js +28 -27
- package/dist/features/tasks/execute/pieceExecution.js.map +1 -1
- package/dist/features/tasks/execute/postExecution.d.ts +1 -0
- package/dist/features/tasks/execute/postExecution.d.ts.map +1 -1
- package/dist/features/tasks/execute/postExecution.js +38 -24
- package/dist/features/tasks/execute/postExecution.js.map +1 -1
- package/dist/features/tasks/execute/resolveTask.d.ts +2 -1
- package/dist/features/tasks/execute/resolveTask.d.ts.map +1 -1
- package/dist/features/tasks/execute/resolveTask.js +13 -11
- package/dist/features/tasks/execute/resolveTask.js.map +1 -1
- package/dist/features/tasks/execute/runAllTasks.d.ts +3 -0
- package/dist/features/tasks/execute/runAllTasks.d.ts.map +1 -0
- package/dist/features/tasks/execute/runAllTasks.js +81 -0
- package/dist/features/tasks/execute/runAllTasks.js.map +1 -0
- package/dist/features/tasks/execute/selectAndExecute.d.ts.map +1 -1
- package/dist/features/tasks/execute/selectAndExecute.js +2 -1
- package/dist/features/tasks/execute/selectAndExecute.js.map +1 -1
- package/dist/features/tasks/execute/taskExecution.d.ts +0 -7
- package/dist/features/tasks/execute/taskExecution.d.ts.map +1 -1
- package/dist/features/tasks/execute/taskExecution.js +26 -100
- package/dist/features/tasks/execute/taskExecution.js.map +1 -1
- package/dist/features/tasks/execute/taskResultHandler.d.ts +4 -1
- package/dist/features/tasks/execute/taskResultHandler.d.ts.map +1 -1
- package/dist/features/tasks/execute/taskResultHandler.js +4 -2
- package/dist/features/tasks/execute/taskResultHandler.js.map +1 -1
- package/dist/features/tasks/execute/types.d.ts +3 -1
- package/dist/features/tasks/execute/types.d.ts.map +1 -1
- package/dist/features/tasks/index.d.ts +2 -1
- package/dist/features/tasks/index.d.ts.map +1 -1
- package/dist/features/tasks/index.js +2 -1
- package/dist/features/tasks/index.js.map +1 -1
- package/dist/features/tasks/list/index.js +2 -2
- package/dist/features/tasks/list/index.js.map +1 -1
- package/dist/features/tasks/list/listNonInteractive.d.ts.map +1 -1
- package/dist/features/tasks/list/listNonInteractive.js +6 -2
- package/dist/features/tasks/list/listNonInteractive.js.map +1 -1
- package/dist/features/tasks/list/requeueHelpers.d.ts.map +1 -1
- package/dist/features/tasks/list/requeueHelpers.js +2 -1
- package/dist/features/tasks/list/requeueHelpers.js.map +1 -1
- package/dist/features/tasks/list/taskActionTarget.d.ts +1 -1
- package/dist/features/tasks/list/taskActionTarget.d.ts.map +1 -1
- package/dist/features/tasks/list/taskActionTarget.js +4 -11
- package/dist/features/tasks/list/taskActionTarget.js.map +1 -1
- package/dist/features/tasks/list/taskRetryActions.d.ts.map +1 -1
- package/dist/features/tasks/list/taskRetryActions.js +12 -11
- package/dist/features/tasks/list/taskRetryActions.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/infra/claude/client.d.ts +1 -7
- package/dist/infra/claude/client.d.ts.map +1 -1
- package/dist/infra/claude/client.js +2 -46
- package/dist/infra/claude/client.js.map +1 -1
- package/dist/infra/claude/executor.d.ts +1 -1
- package/dist/infra/claude/executor.d.ts.map +1 -1
- package/dist/infra/claude/executor.js +47 -27
- package/dist/infra/claude/executor.js.map +1 -1
- package/dist/infra/claude/options-builder.d.ts +0 -15
- package/dist/infra/claude/options-builder.d.ts.map +1 -1
- package/dist/infra/claude/options-builder.js +25 -28
- package/dist/infra/claude/options-builder.js.map +1 -1
- package/dist/infra/claude/permission-mode-expression.d.ts +5 -0
- package/dist/infra/claude/permission-mode-expression.d.ts.map +1 -0
- package/dist/infra/claude/permission-mode-expression.js +14 -0
- package/dist/infra/claude/permission-mode-expression.js.map +1 -0
- package/dist/infra/claude/stream-converter.d.ts.map +1 -1
- package/dist/infra/claude/stream-converter.js +26 -0
- package/dist/infra/claude/stream-converter.js.map +1 -1
- package/dist/infra/claude/types.d.ts +23 -0
- package/dist/infra/claude/types.d.ts.map +1 -1
- package/dist/infra/claude-headless/client.d.ts +4 -0
- package/dist/infra/claude-headless/client.d.ts.map +1 -0
- package/dist/infra/claude-headless/client.js +197 -0
- package/dist/infra/claude-headless/client.js.map +1 -0
- package/dist/infra/claude-headless/headless-spawn.d.ts +13 -0
- package/dist/infra/claude-headless/headless-spawn.d.ts.map +1 -0
- package/dist/infra/claude-headless/headless-spawn.js +182 -0
- package/dist/infra/claude-headless/headless-spawn.js.map +1 -0
- package/dist/infra/claude-headless/result-response.d.ts +15 -0
- package/dist/infra/claude-headless/result-response.d.ts.map +1 -0
- package/dist/infra/claude-headless/result-response.js +72 -0
- package/dist/infra/claude-headless/result-response.js.map +1 -0
- package/dist/infra/claude-headless/stream-json-lines.d.ts +14 -0
- package/dist/infra/claude-headless/stream-json-lines.d.ts.map +1 -0
- package/dist/infra/claude-headless/stream-json-lines.js +172 -0
- package/dist/infra/claude-headless/stream-json-lines.js.map +1 -0
- package/dist/infra/claude-headless/types.d.ts +21 -0
- package/dist/infra/claude-headless/types.d.ts.map +1 -0
- package/dist/infra/claude-headless/types.js +2 -0
- package/dist/infra/claude-headless/types.js.map +1 -0
- package/dist/infra/codex/client.d.ts.map +1 -1
- package/dist/infra/codex/client.js +1 -0
- package/dist/infra/codex/client.js.map +1 -1
- package/dist/infra/codex/types.d.ts +2 -0
- package/dist/infra/codex/types.d.ts.map +1 -1
- package/dist/infra/codex/types.js.map +1 -1
- package/dist/infra/config/configKeyAliases.d.ts +17 -0
- package/dist/infra/config/configKeyAliases.d.ts.map +1 -0
- package/dist/infra/config/configKeyAliases.js +82 -0
- package/dist/infra/config/configKeyAliases.js.map +1 -0
- package/dist/infra/config/configNormalizers.d.ts +7 -6
- package/dist/infra/config/configNormalizers.d.ts.map +1 -1
- package/dist/infra/config/configNormalizers.js +25 -10
- package/dist/infra/config/configNormalizers.js.map +1 -1
- package/dist/infra/config/env/config-env-overrides.d.ts +6 -3
- package/dist/infra/config/env/config-env-overrides.d.ts.map +1 -1
- package/dist/infra/config/env/config-env-overrides.js +5 -194
- package/dist/infra/config/env/config-env-overrides.js.map +1 -1
- package/dist/infra/config/env/config-env-shared.d.ts +16 -0
- package/dist/infra/config/env/config-env-shared.d.ts.map +1 -0
- package/dist/infra/config/env/config-env-shared.js +62 -0
- package/dist/infra/config/env/config-env-shared.js.map +1 -0
- package/dist/infra/config/env/global-current-env-specs.d.ts +3 -0
- package/dist/infra/config/env/global-current-env-specs.d.ts.map +1 -0
- package/dist/infra/config/env/global-current-env-specs.js +63 -0
- package/dist/infra/config/env/global-current-env-specs.js.map +1 -0
- package/dist/infra/config/env/global-legacy-env-specs.d.ts +3 -0
- package/dist/infra/config/env/global-legacy-env-specs.d.ts.map +1 -0
- package/dist/infra/config/env/global-legacy-env-specs.js +122 -0
- package/dist/infra/config/env/global-legacy-env-specs.js.map +1 -0
- package/dist/infra/config/env/project-current-env-specs.d.ts +3 -0
- package/dist/infra/config/env/project-current-env-specs.d.ts.map +1 -0
- package/dist/infra/config/env/project-current-env-specs.js +35 -0
- package/dist/infra/config/env/project-current-env-specs.js.map +1 -0
- package/dist/infra/config/env/project-legacy-env-specs.d.ts +3 -0
- package/dist/infra/config/env/project-legacy-env-specs.d.ts.map +1 -0
- package/dist/infra/config/env/project-legacy-env-specs.js +80 -0
- package/dist/infra/config/env/project-legacy-env-specs.js.map +1 -0
- package/dist/infra/config/global/globalConfigAccessors.d.ts +2 -1
- package/dist/infra/config/global/globalConfigAccessors.d.ts.map +1 -1
- package/dist/infra/config/global/globalConfigAccessors.js.map +1 -1
- package/dist/infra/config/global/globalConfigCore.d.ts +4 -0
- package/dist/infra/config/global/globalConfigCore.d.ts.map +1 -1
- package/dist/infra/config/global/globalConfigCore.js +69 -38
- package/dist/infra/config/global/globalConfigCore.js.map +1 -1
- package/dist/infra/config/global/globalConfigSerializer.js +9 -9
- package/dist/infra/config/global/globalConfigSerializer.js.map +1 -1
- package/dist/infra/config/global/initialization.d.ts +1 -1
- package/dist/infra/config/global/initialization.d.ts.map +1 -1
- package/dist/infra/config/global/initialization.js +2 -1
- package/dist/infra/config/global/initialization.js.map +1 -1
- package/dist/infra/config/global/pieceCategories.js +1 -1
- package/dist/infra/config/global/pieceCategories.js.map +1 -1
- package/dist/infra/config/issuePath.d.ts +2 -0
- package/dist/infra/config/issuePath.d.ts.map +1 -0
- package/dist/infra/config/issuePath.js +6 -0
- package/dist/infra/config/issuePath.js.map +1 -0
- package/dist/infra/config/legacy-workflow-key-deprecation.d.ts +11 -0
- package/dist/infra/config/legacy-workflow-key-deprecation.d.ts.map +1 -0
- package/dist/infra/config/legacy-workflow-key-deprecation.js +191 -0
- package/dist/infra/config/legacy-workflow-key-deprecation.js.map +1 -0
- package/dist/infra/config/loaders/agentLoader.d.ts +1 -1
- package/dist/infra/config/loaders/agentLoader.js +3 -3
- package/dist/infra/config/loaders/agentLoader.js.map +1 -1
- package/dist/infra/config/loaders/pieceCategories.d.ts +3 -3
- package/dist/infra/config/loaders/pieceCategories.d.ts.map +1 -1
- package/dist/infra/config/loaders/pieceCategories.js +55 -17
- package/dist/infra/config/loaders/pieceCategories.js.map +1 -1
- package/dist/infra/config/loaders/pieceLoadWarning.d.ts +2 -0
- package/dist/infra/config/loaders/pieceLoadWarning.d.ts.map +1 -0
- package/dist/infra/config/loaders/pieceLoadWarning.js +22 -0
- package/dist/infra/config/loaders/pieceLoadWarning.js.map +1 -0
- package/dist/infra/config/loaders/pieceParser.d.ts.map +1 -1
- package/dist/infra/config/loaders/pieceParser.js +8 -14
- package/dist/infra/config/loaders/pieceParser.js.map +1 -1
- package/dist/infra/config/loaders/pieceResolver.d.ts +25 -22
- package/dist/infra/config/loaders/pieceResolver.d.ts.map +1 -1
- package/dist/infra/config/loaders/pieceResolver.js +80 -72
- package/dist/infra/config/loaders/pieceResolver.js.map +1 -1
- package/dist/infra/config/paths.d.ts +6 -2
- package/dist/infra/config/paths.d.ts.map +1 -1
- package/dist/infra/config/paths.js +11 -3
- package/dist/infra/config/paths.js.map +1 -1
- package/dist/infra/config/project/projectConfig.d.ts +2 -6
- package/dist/infra/config/project/projectConfig.d.ts.map +1 -1
- package/dist/infra/config/project/projectConfig.js +41 -65
- package/dist/infra/config/project/projectConfig.js.map +1 -1
- package/dist/infra/config/project/projectConfigTransforms.d.ts +0 -1
- package/dist/infra/config/project/projectConfigTransforms.d.ts.map +1 -1
- package/dist/infra/config/project/projectConfigTransforms.js +0 -5
- package/dist/infra/config/project/projectConfigTransforms.js.map +1 -1
- package/dist/infra/config/project/projectConfigValidation.d.ts +2 -0
- package/dist/infra/config/project/projectConfigValidation.d.ts.map +1 -0
- package/dist/infra/config/project/projectConfigValidation.js +17 -0
- package/dist/infra/config/project/projectConfigValidation.js.map +1 -0
- package/dist/infra/config/providerBlockOptions.js +1 -1
- package/dist/infra/config/providerBlockOptions.js.map +1 -1
- package/dist/infra/config/providerModelCompatibility.js +1 -1
- package/dist/infra/config/providerModelCompatibility.js.map +1 -1
- package/dist/infra/config/providerOptions.d.ts +6 -1
- package/dist/infra/config/providerOptions.d.ts.map +1 -1
- package/dist/infra/config/providerOptions.js +93 -5
- package/dist/infra/config/providerOptions.js.map +1 -1
- package/dist/infra/config/providerOptionsContract.d.ts +14 -0
- package/dist/infra/config/providerOptionsContract.d.ts.map +1 -0
- package/dist/infra/config/providerOptionsContract.js +80 -0
- package/dist/infra/config/providerOptionsContract.js.map +1 -0
- package/dist/infra/config/resolutionCache.d.ts +3 -0
- package/dist/infra/config/resolutionCache.d.ts.map +1 -1
- package/dist/infra/config/resolutionCache.js +9 -0
- package/dist/infra/config/resolutionCache.js.map +1 -1
- package/dist/infra/config/resolveConfigValue.d.ts +6 -0
- package/dist/infra/config/resolveConfigValue.d.ts.map +1 -1
- package/dist/infra/config/resolveConfigValue.js +97 -16
- package/dist/infra/config/resolveConfigValue.js.map +1 -1
- package/dist/infra/config/resolvedConfig.d.ts +2 -1
- package/dist/infra/config/resolvedConfig.d.ts.map +1 -1
- package/dist/infra/config/traced/tracedConfigLegacyEnvAdapter.d.ts +4 -0
- package/dist/infra/config/traced/tracedConfigLegacyEnvAdapter.d.ts.map +1 -0
- package/dist/infra/config/traced/tracedConfigLegacyEnvAdapter.js +47 -0
- package/dist/infra/config/traced/tracedConfigLegacyEnvAdapter.js.map +1 -0
- package/dist/infra/config/traced/tracedConfigLoader.d.ts +32 -0
- package/dist/infra/config/traced/tracedConfigLoader.d.ts.map +1 -0
- package/dist/infra/config/traced/tracedConfigLoader.js +153 -0
- package/dist/infra/config/traced/tracedConfigLoader.js.map +1 -0
- package/dist/infra/config/traced/tracedConfigRuntimeBridge.d.ts +3 -0
- package/dist/infra/config/traced/tracedConfigRuntimeBridge.d.ts.map +1 -0
- package/dist/infra/config/traced/tracedConfigRuntimeBridge.js +135 -0
- package/dist/infra/config/traced/tracedConfigRuntimeBridge.js.map +1 -0
- package/dist/infra/config/traced/tracedConfigSchema.d.ts +5 -0
- package/dist/infra/config/traced/tracedConfigSchema.d.ts.map +1 -0
- package/dist/infra/config/traced/tracedConfigSchema.js +215 -0
- package/dist/infra/config/traced/tracedConfigSchema.js.map +1 -0
- package/dist/infra/cursor/client.js +1 -1
- package/dist/infra/cursor/client.js.map +1 -1
- package/dist/infra/mock/client.d.ts.map +1 -1
- package/dist/infra/mock/client.js +31 -0
- package/dist/infra/mock/client.js.map +1 -1
- package/dist/infra/mock/scenario.js +5 -0
- package/dist/infra/mock/scenario.js.map +1 -1
- package/dist/infra/mock/types.d.ts +3 -0
- package/dist/infra/mock/types.d.ts.map +1 -1
- package/dist/infra/providers/claude-headless.d.ts +6 -0
- package/dist/infra/providers/claude-headless.d.ts.map +1 -0
- package/dist/infra/providers/claude-headless.js +34 -0
- package/dist/infra/providers/claude-headless.js.map +1 -0
- package/dist/infra/providers/claude.d.ts +1 -4
- package/dist/infra/providers/claude.d.ts.map +1 -1
- package/dist/infra/providers/claude.js +3 -17
- package/dist/infra/providers/claude.js.map +1 -1
- package/dist/infra/providers/codex.d.ts +1 -0
- package/dist/infra/providers/codex.d.ts.map +1 -1
- package/dist/infra/providers/codex.js +2 -6
- package/dist/infra/providers/codex.js.map +1 -1
- package/dist/infra/providers/copilot.d.ts +1 -0
- package/dist/infra/providers/copilot.d.ts.map +1 -1
- package/dist/infra/providers/copilot.js +1 -6
- package/dist/infra/providers/copilot.js.map +1 -1
- package/dist/infra/providers/cursor.d.ts +1 -0
- package/dist/infra/providers/cursor.d.ts.map +1 -1
- package/dist/infra/providers/cursor.js +1 -6
- package/dist/infra/providers/cursor.js.map +1 -1
- package/dist/infra/providers/index.d.ts +0 -12
- package/dist/infra/providers/index.d.ts.map +1 -1
- package/dist/infra/providers/index.js +3 -13
- package/dist/infra/providers/index.js.map +1 -1
- package/dist/infra/providers/mock.d.ts +1 -0
- package/dist/infra/providers/mock.d.ts.map +1 -1
- package/dist/infra/providers/mock.js +2 -6
- package/dist/infra/providers/mock.js.map +1 -1
- package/dist/infra/providers/opencode.d.ts +1 -0
- package/dist/infra/providers/opencode.d.ts.map +1 -1
- package/dist/infra/providers/opencode.js +1 -6
- package/dist/infra/providers/opencode.js.map +1 -1
- package/dist/infra/providers/types.d.ts +3 -15
- package/dist/infra/providers/types.d.ts.map +1 -1
- package/dist/infra/providers/types.js +0 -3
- package/dist/infra/providers/types.js.map +1 -1
- package/dist/infra/resources/index.d.ts +1 -1
- package/dist/infra/resources/index.js +1 -1
- package/dist/infra/task/autoCommit.d.ts +2 -2
- package/dist/infra/task/autoCommit.d.ts.map +1 -1
- package/dist/infra/task/autoCommit.js +16 -10
- package/dist/infra/task/autoCommit.js.map +1 -1
- package/dist/infra/task/clone.d.ts.map +1 -1
- package/dist/infra/task/clone.js +15 -3
- package/dist/infra/task/clone.js.map +1 -1
- package/dist/infra/task/display.js +2 -2
- package/dist/infra/task/display.js.map +1 -1
- package/dist/infra/task/git.d.ts +7 -1
- package/dist/infra/task/git.d.ts.map +1 -1
- package/dist/infra/task/git.js +51 -9
- package/dist/infra/task/git.js.map +1 -1
- package/dist/infra/task/index.d.ts +3 -2
- package/dist/infra/task/index.d.ts.map +1 -1
- package/dist/infra/task/index.js +3 -2
- package/dist/infra/task/index.js.map +1 -1
- package/dist/infra/task/listSerializer.d.ts +42 -0
- package/dist/infra/task/listSerializer.d.ts.map +1 -0
- package/dist/infra/task/listSerializer.js +52 -0
- package/dist/infra/task/listSerializer.js.map +1 -0
- package/dist/infra/task/mapper.d.ts.map +1 -1
- package/dist/infra/task/mapper.js +7 -2
- package/dist/infra/task/mapper.js.map +1 -1
- package/dist/infra/task/schema.d.ts +272 -12
- package/dist/infra/task/schema.d.ts.map +1 -1
- package/dist/infra/task/schema.js +142 -8
- package/dist/infra/task/schema.js.map +1 -1
- package/dist/infra/task/store.d.ts.map +1 -1
- package/dist/infra/task/store.js +2 -2
- package/dist/infra/task/store.js.map +1 -1
- package/dist/infra/task/taskExceedService.d.ts +2 -0
- package/dist/infra/task/taskExceedService.d.ts.map +1 -1
- package/dist/infra/task/taskExceedService.js +3 -1
- package/dist/infra/task/taskExceedService.js.map +1 -1
- package/dist/infra/task/types.d.ts +3 -1
- package/dist/infra/task/types.d.ts.map +1 -1
- package/dist/shared/i18n/labels_en.yaml +6 -6
- package/dist/shared/i18n/labels_ja.yaml +6 -6
- package/dist/shared/prompts/en/perform_agent_system_prompt.md +6 -6
- package/dist/shared/prompts/en/perform_judge_message.md +1 -1
- package/dist/shared/prompts/en/perform_phase1_message.md +9 -9
- package/dist/shared/prompts/en/perform_phase2_message.md +2 -2
- package/dist/shared/prompts/en/score_instruct_system_prompt.md +7 -7
- package/dist/shared/prompts/en/score_interactive_policy.md +10 -10
- package/dist/shared/prompts/en/score_interactive_system_prompt.md +9 -9
- package/dist/shared/prompts/en/score_retry_system_prompt.md +8 -8
- package/dist/shared/prompts/en/score_summary_system_prompt.md +4 -4
- package/dist/shared/prompts/ja/perform_agent_system_prompt.md +6 -6
- package/dist/shared/prompts/ja/perform_judge_message.md +1 -1
- package/dist/shared/prompts/ja/perform_phase1_message.md +9 -9
- package/dist/shared/prompts/ja/perform_phase2_message.md +2 -2
- package/dist/shared/prompts/ja/score_instruct_system_prompt.md +7 -7
- package/dist/shared/prompts/ja/score_interactive_policy.md +10 -10
- package/dist/shared/prompts/ja/score_interactive_system_prompt.md +9 -9
- package/dist/shared/prompts/ja/score_retry_system_prompt.md +8 -8
- package/dist/shared/prompts/ja/score_summary_system_prompt.md +7 -7
- package/dist/shared/types/provider.d.ts +21 -10
- package/dist/shared/types/provider.d.ts.map +1 -1
- package/dist/shared/types/provider.js +0 -9
- package/dist/shared/types/provider.js.map +1 -1
- package/dist/shared/ui/StreamDisplay.d.ts.map +1 -1
- package/dist/shared/ui/StreamDisplay.js +2 -0
- package/dist/shared/ui/StreamDisplay.js.map +1 -1
- package/dist/shared/utils/debug.d.ts +4 -0
- package/dist/shared/utils/debug.d.ts.map +1 -1
- package/dist/shared/utils/debug.js +7 -0
- package/dist/shared/utils/debug.js.map +1 -1
- package/dist/shared/utils/slackWebhook.js +2 -2
- package/dist/shared/utils/slackWebhook.js.map +1 -1
- package/dist/shared/utils/text.d.ts +4 -0
- package/dist/shared/utils/text.d.ts.map +1 -1
- package/dist/shared/utils/text.js +29 -0
- package/dist/shared/utils/text.js.map +1 -1
- package/package.json +5 -3
- package/dist/agents/ai-judge.d.ts +0 -15
- package/dist/agents/ai-judge.d.ts.map +0 -1
- package/dist/agents/ai-judge.js +0 -23
- package/dist/agents/ai-judge.js.map +0 -1
- package/dist/shared/prompts/en/perform_builtin_agent_system_prompt.md +0 -7
- package/dist/shared/prompts/ja/perform_builtin_agent_system_prompt.md +0 -7
|
@@ -19,6 +19,14 @@ you verify "**was the right thing built (Validation)**".
|
|
|
19
19
|
- Fix code
|
|
20
20
|
- Re-run tests or builds
|
|
21
21
|
|
|
22
|
+
## Behavioral Principles
|
|
23
|
+
|
|
24
|
+
- Re-check requirements yourself. Do not adopt the decomposition from earlier reviews without verification
|
|
25
|
+
- Treat `requirements-review` as supporting material, not as the final answer
|
|
26
|
+
- Mark missing execution evidence as unverified instead of assuming success
|
|
27
|
+
- Treat contradictions between report text and execution evidence as first-class findings
|
|
28
|
+
- Distinguish `false_positive` from `overreach`; a technically invalid finding and a scope-exceeding finding are not the same
|
|
29
|
+
|
|
22
30
|
## Human-in-the-Loop Checkpoint
|
|
23
31
|
|
|
24
32
|
You are the **human proxy** in the automated piece. Before approval, verify the following.
|
|
@@ -40,6 +48,7 @@ You are the **human proxy** in the automated piece. Before approval, verify the
|
|
|
40
48
|
### 1. Requirements Fulfillment (Most Critical)
|
|
41
49
|
|
|
42
50
|
- Verify all requirements individually; do NOT APPROVE if any single requirement is unfulfilled
|
|
51
|
+
- If a sentence contains multiple conditions, split it into the smallest independently verifiable rows
|
|
43
52
|
- Can it **actually** do what was claimed?
|
|
44
53
|
- Are implicit requirements (naturally expected behavior) met?
|
|
45
54
|
- "Mostly done" or "main parts complete" is NOT grounds for APPROVE. All requirements must be fulfilled
|
|
@@ -115,5 +124,6 @@ Additions can be reverted, but restoring deleted flows is difficult.
|
|
|
115
124
|
- **Don't take at face value**: Don't trust "done", verify yourself
|
|
116
125
|
- **Be specific**: Clarify "what" is "how" problematic
|
|
117
126
|
- **Do not infer command outcomes**: If there is no evidence, mark it unverified rather than guessing
|
|
127
|
+
- **Do not convert unverified items into passed or failed**: Keep them explicitly unverified unless evidence exists
|
|
118
128
|
|
|
119
129
|
**Remember**: You are the final gatekeeper. What passes through here reaches the user. Don't let "probably fine" pass.
|
|
@@ -77,6 +77,93 @@ function createEngine(config, cwd: string) {
|
|
|
77
77
|
3. **Is there a path to pass the value from above?** → If not, add a parameter or field
|
|
78
78
|
4. **Do related values have invariants?** → Cross-validate at load/setup time
|
|
79
79
|
|
|
80
|
+
## Unify Resolution Responsibility
|
|
81
|
+
|
|
82
|
+
Values that can be decided early — config, options, providers, paths, permissions — must be resolved once at the boundary. Do not re-resolve the same value in multiple layers.
|
|
83
|
+
|
|
84
|
+
| Pattern | Judgment | Reason |
|
|
85
|
+
|---------|----------|--------|
|
|
86
|
+
| Resolve at the entry point and pass the value explicitly downward | OK | Source of truth stays traceable |
|
|
87
|
+
| Delegate resolution to a dedicated method/object | OK | Preserves a single source of truth |
|
|
88
|
+
| Resolve the same config separately in upper and lower layers | REJECT | Creates precedence drift |
|
|
89
|
+
| Resolve separately for display and execution | REJECT | Logs and behavior diverge |
|
|
90
|
+
| Stack `if` branches for config resolution inside main flow | REJECT | Leaks details into orchestration |
|
|
91
|
+
|
|
92
|
+
```typescript
|
|
93
|
+
// REJECT - Each layer resolves config independently
|
|
94
|
+
function executeTask(options) {
|
|
95
|
+
const provider = options.provider ?? loadGlobalConfig().provider;
|
|
96
|
+
return runAgent({
|
|
97
|
+
provider,
|
|
98
|
+
stepProvider: resolveProviderForStep(options.step),
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
function runAgent(options) {
|
|
103
|
+
const provider = options.provider ?? resolveProviderFromConfig();
|
|
104
|
+
return getProvider(provider).call();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// OK - Resolve at the boundary, then use resolved values only
|
|
108
|
+
function executeTask(options) {
|
|
109
|
+
const resolved = resolveExecutionContext(options);
|
|
110
|
+
return runAgent({
|
|
111
|
+
resolvedProvider: resolved.provider,
|
|
112
|
+
resolvedModel: resolved.model,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
function runAgent(options) {
|
|
117
|
+
return getProvider(options.resolvedProvider).call();
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Decision criteria:
|
|
122
|
+
1. Can this value be fixed before execution starts? → Resolve it at the boundary
|
|
123
|
+
2. Does the same precedence logic exist in 2+ places? → Centralize it in a dedicated method/object
|
|
124
|
+
3. Does a lower layer know config sources directly? → Pass only resolved values
|
|
125
|
+
4. Are display, execution, and persistence resolving separately? → Share the same resolved result
|
|
126
|
+
|
|
127
|
+
## Phase Separation
|
|
128
|
+
|
|
129
|
+
Separate input collection, interpretation/normalization, execution, and output/side effects into distinct phases. Do not keep receiving unresolved input in the middle of loops or main processing and interpret it on the spot.
|
|
130
|
+
|
|
131
|
+
| Pattern | Judgment | Reason |
|
|
132
|
+
|---------|----------|--------|
|
|
133
|
+
| Split into stages such as `RawOptions -> ResolvedOptions -> ExecutionContext` | OK | Responsibility of each phase is explicit |
|
|
134
|
+
| Normalize input before entering the loop | OK | Every iteration runs on the same assumptions |
|
|
135
|
+
| Resolve `options ?? config ?? env` inside every iteration | REJECT | Iteration assumptions can drift |
|
|
136
|
+
| Mix input interpretation and execution logic per iteration | REJECT | Intent of the flow becomes unreadable |
|
|
137
|
+
| Even when true streaming/optimization forces per-item handling, isolate interpretation in a dedicated method | OK | Keeps minimum responsibility separation |
|
|
138
|
+
|
|
139
|
+
```typescript
|
|
140
|
+
// REJECT - Interpret input inside the loop every time
|
|
141
|
+
for (const step of steps) {
|
|
142
|
+
const provider = options.provider
|
|
143
|
+
?? step.provider
|
|
144
|
+
?? projectConfig.provider
|
|
145
|
+
?? globalConfig.provider;
|
|
146
|
+
const result = await executeStep(step, { provider });
|
|
147
|
+
printResult(result);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// OK - Resolve first, loop only executes
|
|
151
|
+
const context = resolveExecutionContext(rawOptions, steps);
|
|
152
|
+
|
|
153
|
+
for (const step of context.steps) {
|
|
154
|
+
const result = await executeStep(step, {
|
|
155
|
+
resolvedProvider: step.resolvedProvider,
|
|
156
|
+
});
|
|
157
|
+
printResult(result);
|
|
158
|
+
}
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Decision criteria:
|
|
162
|
+
1. Is a branch inside the loop business logic or input interpretation? → Move input interpretation outside
|
|
163
|
+
2. Is the same interpretation repeated for each iteration? → Normalize once up front
|
|
164
|
+
3. Does an execution function accept raw input directly? → Convert to a `Resolved*` type first
|
|
165
|
+
4. Does optimization require incremental handling? → At least extract interpretation into a dedicated function
|
|
166
|
+
|
|
80
167
|
## Abstraction
|
|
81
168
|
|
|
82
169
|
### Think Before Adding Conditionals
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
|
|
1
|
+
workflow_categories:
|
|
2
2
|
🚀 Quick Start:
|
|
3
|
-
|
|
3
|
+
workflows:
|
|
4
4
|
- default
|
|
5
5
|
- frontend-mini
|
|
6
6
|
- backend-mini
|
|
7
7
|
- compound-eye
|
|
8
8
|
⚡ Mini:
|
|
9
|
-
|
|
9
|
+
workflows:
|
|
10
10
|
- frontend-mini
|
|
11
11
|
- backend-mini
|
|
12
12
|
- backend-cqrs-mini
|
|
13
13
|
- dual-mini
|
|
14
14
|
- dual-cqrs-mini
|
|
15
15
|
🎨 Frontend:
|
|
16
|
-
|
|
16
|
+
workflows:
|
|
17
17
|
- frontend
|
|
18
18
|
- frontend-mini
|
|
19
19
|
⚙️ Backend:
|
|
20
|
-
|
|
20
|
+
workflows:
|
|
21
21
|
- backend
|
|
22
22
|
- backend-mini
|
|
23
23
|
- backend-cqrs
|
|
24
24
|
- backend-cqrs-mini
|
|
25
25
|
🔧 Dual:
|
|
26
|
-
|
|
26
|
+
workflows:
|
|
27
27
|
- dual
|
|
28
28
|
- dual-mini
|
|
29
29
|
- dual-cqrs
|
|
30
30
|
- dual-cqrs-mini
|
|
31
31
|
🏗️ Infrastructure:
|
|
32
|
-
|
|
32
|
+
workflows:
|
|
33
33
|
- terraform
|
|
34
34
|
🔍 Review:
|
|
35
|
-
|
|
35
|
+
workflows:
|
|
36
36
|
- review-default
|
|
37
37
|
- review-fix-default
|
|
38
38
|
- review-frontend
|
|
@@ -55,12 +55,12 @@ piece_categories:
|
|
|
55
55
|
- audit-architecture-backend
|
|
56
56
|
- audit-architecture-dual
|
|
57
57
|
🎵 TAKT Development:
|
|
58
|
-
|
|
58
|
+
workflows:
|
|
59
59
|
- takt-default
|
|
60
60
|
- review-takt-default
|
|
61
61
|
- review-fix-takt-default
|
|
62
62
|
Others:
|
|
63
|
-
|
|
63
|
+
workflows:
|
|
64
64
|
- research
|
|
65
65
|
- deep-research
|
|
66
66
|
- magi
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
name: audit-architecture-backend
|
|
2
2
|
description: Backend-focused architecture audit. Enumerate service modules and boundaries, then produce an issue-ready report without modifying code
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
max_steps: 12
|
|
4
|
+
initial_step: plan
|
|
5
5
|
|
|
6
6
|
loop_monitors:
|
|
7
7
|
- cycle: [supervise, review]
|
|
@@ -17,7 +17,7 @@ loop_monitors:
|
|
|
17
17
|
- condition: Quality is insufficient with no prospect of improvement
|
|
18
18
|
next: ABORT
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
steps:
|
|
21
21
|
- name: plan
|
|
22
22
|
persona: planner
|
|
23
23
|
knowledge:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
name: audit-architecture-dual
|
|
2
2
|
description: Full-stack architecture audit. Enumerate frontend/backend boundaries and cross-layer wiring, then produce an issue-ready report without modifying code
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
max_steps: 12
|
|
4
|
+
initial_step: plan
|
|
5
5
|
|
|
6
6
|
loop_monitors:
|
|
7
7
|
- cycle: [supervise, review]
|
|
@@ -17,7 +17,7 @@ loop_monitors:
|
|
|
17
17
|
- condition: Quality is insufficient with no prospect of improvement
|
|
18
18
|
next: ABORT
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
steps:
|
|
21
21
|
- name: plan
|
|
22
22
|
persona: planner
|
|
23
23
|
knowledge:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
name: audit-architecture-frontend
|
|
2
2
|
description: Frontend-focused architecture audit. Enumerate UI modules and boundaries, then produce an issue-ready report without modifying code
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
max_steps: 12
|
|
4
|
+
initial_step: plan
|
|
5
5
|
|
|
6
6
|
loop_monitors:
|
|
7
7
|
- cycle: [supervise, review]
|
|
@@ -17,7 +17,7 @@ loop_monitors:
|
|
|
17
17
|
- condition: Quality is insufficient with no prospect of improvement
|
|
18
18
|
next: ABORT
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
steps:
|
|
21
21
|
- name: plan
|
|
22
22
|
persona: planner
|
|
23
23
|
knowledge:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
name: audit-architecture
|
|
2
2
|
description: Comprehensive architecture audit. Enumerate modules and boundaries, then produce an issue-ready report without modifying code
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
max_steps: 12
|
|
4
|
+
initial_step: plan
|
|
5
5
|
|
|
6
6
|
loop_monitors:
|
|
7
7
|
- cycle: [supervise, review]
|
|
@@ -17,7 +17,7 @@ loop_monitors:
|
|
|
17
17
|
- condition: Quality is insufficient with no prospect of improvement
|
|
18
18
|
next: ABORT
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
steps:
|
|
21
21
|
- name: plan
|
|
22
22
|
persona: planner
|
|
23
23
|
knowledge: architecture
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
name: audit-e2e
|
|
2
2
|
description: Comprehensive E2E audit. Enumerate user flows and coverage gaps, then produce an issue-ready report without modifying code
|
|
3
|
-
|
|
3
|
+
workflow_config:
|
|
4
4
|
provider_options:
|
|
5
5
|
codex:
|
|
6
6
|
network_access: true
|
|
7
7
|
opencode:
|
|
8
8
|
network_access: true
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
max_steps: 12
|
|
10
|
+
initial_step: plan
|
|
11
11
|
|
|
12
12
|
loop_monitors:
|
|
13
13
|
- cycle: [supervise, review]
|
|
@@ -23,7 +23,7 @@ loop_monitors:
|
|
|
23
23
|
- condition: Quality is insufficient with no prospect of improvement
|
|
24
24
|
next: ABORT
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
steps:
|
|
27
27
|
- name: plan
|
|
28
28
|
persona: test-planner
|
|
29
29
|
policy: testing
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
name: audit-security
|
|
2
2
|
description: Full security audit. Reads every project file one by one for security review
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
max_steps: 15
|
|
4
|
+
initial_step: plan
|
|
5
5
|
|
|
6
6
|
loop_monitors:
|
|
7
7
|
- cycle: [supervise, review]
|
|
@@ -17,7 +17,7 @@ loop_monitors:
|
|
|
17
17
|
- condition: Quality is insufficient with no prospect of improvement
|
|
18
18
|
next: ABORT
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
steps:
|
|
21
21
|
- name: plan
|
|
22
22
|
persona: planner
|
|
23
23
|
instruction: audit-security-plan
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
name: audit-unit
|
|
2
2
|
description: Comprehensive unit test audit. Enumerate behaviors and coverage gaps, then produce an issue-ready report without modifying code
|
|
3
|
-
|
|
3
|
+
workflow_config:
|
|
4
4
|
provider_options:
|
|
5
5
|
codex:
|
|
6
6
|
network_access: true
|
|
7
7
|
opencode:
|
|
8
8
|
network_access: true
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
max_steps: 12
|
|
10
|
+
initial_step: plan
|
|
11
11
|
|
|
12
12
|
loop_monitors:
|
|
13
13
|
- cycle: [supervise, review]
|
|
@@ -23,7 +23,7 @@ loop_monitors:
|
|
|
23
23
|
- condition: Quality is insufficient with no prospect of improvement
|
|
24
24
|
next: ABORT
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
steps:
|
|
27
27
|
- name: plan
|
|
28
28
|
edit: false
|
|
29
29
|
persona: test-planner
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
name: backend-cqrs-mini
|
|
2
|
-
description: CQRS+ES-focused mini development
|
|
3
|
-
|
|
2
|
+
description: CQRS+ES-focused mini development workflow (plan -> implement -> parallel review -> fix if needed -> complete)
|
|
3
|
+
workflow_config:
|
|
4
4
|
provider_options:
|
|
5
5
|
codex:
|
|
6
6
|
network_access: true
|
|
7
7
|
opencode:
|
|
8
8
|
network_access: true
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
max_steps: 20
|
|
10
|
+
initial_step: plan
|
|
11
11
|
loop_monitors:
|
|
12
12
|
- cycle:
|
|
13
13
|
- reviewers
|
|
@@ -21,7 +21,7 @@ loop_monitors:
|
|
|
21
21
|
next: fix_both
|
|
22
22
|
- condition: unproductive (same findings repeating)
|
|
23
23
|
next: supervise_fix
|
|
24
|
-
|
|
24
|
+
steps:
|
|
25
25
|
- name: plan
|
|
26
26
|
edit: false
|
|
27
27
|
persona: planner
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
name: backend-cqrs
|
|
2
|
-
description: CQRS+ES development
|
|
3
|
-
|
|
2
|
+
description: CQRS+ES development workflow with test-first, AI review, 2-stage reviews, fix loops, and supervision
|
|
3
|
+
workflow_config:
|
|
4
4
|
provider_options:
|
|
5
5
|
codex:
|
|
6
6
|
network_access: true
|
|
7
7
|
opencode:
|
|
8
8
|
network_access: true
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
max_steps: 60
|
|
10
|
+
initial_step: plan
|
|
11
11
|
loop_monitors:
|
|
12
12
|
- cycle:
|
|
13
13
|
- ai_review
|
|
@@ -33,7 +33,7 @@ loop_monitors:
|
|
|
33
33
|
next: reviewers_1
|
|
34
34
|
- condition: unproductive (same findings repeating)
|
|
35
35
|
next: supervise
|
|
36
|
-
|
|
36
|
+
steps:
|
|
37
37
|
- name: plan
|
|
38
38
|
edit: false
|
|
39
39
|
persona: planner
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
name: backend-mini
|
|
2
|
-
description: Backend-focused mini development
|
|
3
|
-
|
|
2
|
+
description: Backend-focused mini development workflow (plan -> implement -> parallel review -> fix if needed -> complete)
|
|
3
|
+
workflow_config:
|
|
4
4
|
provider_options:
|
|
5
5
|
codex:
|
|
6
6
|
network_access: true
|
|
7
7
|
opencode:
|
|
8
8
|
network_access: true
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
max_steps: 20
|
|
10
|
+
initial_step: plan
|
|
11
11
|
loop_monitors:
|
|
12
12
|
- cycle:
|
|
13
13
|
- reviewers
|
|
@@ -21,7 +21,7 @@ loop_monitors:
|
|
|
21
21
|
next: fix_both
|
|
22
22
|
- condition: unproductive (same findings repeating)
|
|
23
23
|
next: supervise_fix
|
|
24
|
-
|
|
24
|
+
steps:
|
|
25
25
|
- name: plan
|
|
26
26
|
edit: false
|
|
27
27
|
persona: planner
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
name: backend
|
|
2
|
-
description: Backend development
|
|
3
|
-
|
|
2
|
+
description: Backend development workflow with test-first, AI review, 2-stage reviews, fix loops, and supervision
|
|
3
|
+
workflow_config:
|
|
4
4
|
provider_options:
|
|
5
5
|
codex:
|
|
6
6
|
network_access: true
|
|
7
7
|
opencode:
|
|
8
8
|
network_access: true
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
max_steps: 60
|
|
10
|
+
initial_step: plan
|
|
11
11
|
loop_monitors:
|
|
12
12
|
- cycle:
|
|
13
13
|
- ai_review
|
|
@@ -33,7 +33,7 @@ loop_monitors:
|
|
|
33
33
|
next: reviewers_1
|
|
34
34
|
- condition: unproductive (same findings repeating)
|
|
35
35
|
next: supervise
|
|
36
|
-
|
|
36
|
+
steps:
|
|
37
37
|
- name: plan
|
|
38
38
|
edit: false
|
|
39
39
|
persona: planner
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
name: compound-eye
|
|
2
2
|
description: Multi-model review - send the same instruction to Claude and Codex simultaneously, synthesize both responses
|
|
3
|
-
|
|
3
|
+
workflow_config:
|
|
4
4
|
provider_options:
|
|
5
5
|
codex:
|
|
6
6
|
network_access: true
|
|
7
7
|
opencode:
|
|
8
8
|
network_access: true
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
max_steps: 10
|
|
10
|
+
initial_step: evaluate
|
|
11
|
+
steps:
|
|
12
12
|
- name: evaluate
|
|
13
13
|
parallel:
|
|
14
14
|
- name: claude-eye
|
|
15
15
|
edit: false
|
|
16
16
|
persona: coder
|
|
17
|
-
provider: claude
|
|
17
|
+
provider: claude-sdk
|
|
18
18
|
session: refresh
|
|
19
19
|
knowledge: architecture
|
|
20
20
|
provider_options:
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
name: deep-research
|
|
2
|
-
description: Deep research
|
|
3
|
-
|
|
2
|
+
description: Deep research workflow - discovery-driven investigation that follows emerging questions with multi-perspective analysis
|
|
3
|
+
workflow_config:
|
|
4
4
|
provider_options:
|
|
5
5
|
codex:
|
|
6
6
|
network_access: true
|
|
7
7
|
opencode:
|
|
8
8
|
network_access: true
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
max_steps: 15
|
|
10
|
+
initial_step: plan
|
|
11
|
+
steps:
|
|
12
12
|
- name: plan
|
|
13
13
|
persona: research-planner
|
|
14
14
|
policy: research
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
name: default
|
|
2
|
-
description: Test-first development
|
|
3
|
-
|
|
2
|
+
description: Test-first development workflow (plan → write tests → implement → AI antipattern review → parallel review → complete)
|
|
3
|
+
workflow_config:
|
|
4
4
|
provider_options:
|
|
5
5
|
codex:
|
|
6
6
|
network_access: true
|
|
7
7
|
opencode:
|
|
8
8
|
network_access: true
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
max_steps: 30
|
|
10
|
+
initial_step: plan
|
|
11
11
|
loop_monitors:
|
|
12
12
|
- cycle:
|
|
13
13
|
- ai_review
|
|
@@ -45,7 +45,7 @@ loop_monitors:
|
|
|
45
45
|
next: reviewers
|
|
46
46
|
- condition: unproductive (same findings repeating)
|
|
47
47
|
next: ABORT
|
|
48
|
-
|
|
48
|
+
steps:
|
|
49
49
|
- name: plan
|
|
50
50
|
edit: false
|
|
51
51
|
persona: planner
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
name: dual-cqrs-mini
|
|
2
|
-
description: CQRS+ES frontend + backend mini development
|
|
3
|
-
|
|
2
|
+
description: CQRS+ES frontend + backend mini development workflow (plan -> implement -> parallel review -> fix if needed -> complete) with CQRS+ES knowledge injection
|
|
3
|
+
workflow_config:
|
|
4
4
|
provider_options:
|
|
5
5
|
codex:
|
|
6
6
|
network_access: true
|
|
7
7
|
opencode:
|
|
8
8
|
network_access: true
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
max_steps: 20
|
|
10
|
+
initial_step: plan
|
|
11
11
|
loop_monitors:
|
|
12
12
|
- cycle:
|
|
13
13
|
- reviewers
|
|
@@ -21,7 +21,7 @@ loop_monitors:
|
|
|
21
21
|
next: fix_both
|
|
22
22
|
- condition: unproductive (same findings repeating)
|
|
23
23
|
next: supervise_fix
|
|
24
|
-
|
|
24
|
+
steps:
|
|
25
25
|
- name: plan
|
|
26
26
|
edit: false
|
|
27
27
|
persona: planner
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
name: dual-cqrs
|
|
2
|
-
description: Frontend + backend development
|
|
3
|
-
|
|
2
|
+
description: Frontend + backend development workflow (CQRS+ES specialized) with CQRS+ES, frontend, security, and QA reviews with fix loops
|
|
3
|
+
workflow_config:
|
|
4
4
|
provider_options:
|
|
5
5
|
codex:
|
|
6
6
|
network_access: true
|
|
7
7
|
opencode:
|
|
8
8
|
network_access: true
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
max_steps: 60
|
|
10
|
+
initial_step: plan
|
|
11
11
|
loop_monitors:
|
|
12
12
|
- cycle:
|
|
13
13
|
- ai_review
|
|
@@ -33,7 +33,7 @@ loop_monitors:
|
|
|
33
33
|
next: reviewers
|
|
34
34
|
- condition: Unproductive (same findings repeating)
|
|
35
35
|
next: supervise
|
|
36
|
-
|
|
36
|
+
steps:
|
|
37
37
|
- name: plan
|
|
38
38
|
edit: false
|
|
39
39
|
persona: planner
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
name: dual-mini
|
|
2
|
-
description: Frontend + backend mini development
|
|
3
|
-
|
|
2
|
+
description: Frontend + backend mini development workflow (plan -> implement -> parallel review -> fix if needed -> complete) with frontend + backend knowledge injection
|
|
3
|
+
workflow_config:
|
|
4
4
|
provider_options:
|
|
5
5
|
codex:
|
|
6
6
|
network_access: true
|
|
7
7
|
opencode:
|
|
8
8
|
network_access: true
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
max_steps: 20
|
|
10
|
+
initial_step: plan
|
|
11
11
|
loop_monitors:
|
|
12
12
|
- cycle:
|
|
13
13
|
- reviewers
|
|
@@ -21,7 +21,7 @@ loop_monitors:
|
|
|
21
21
|
next: fix_both
|
|
22
22
|
- condition: unproductive (same findings repeating)
|
|
23
23
|
next: supervise_fix
|
|
24
|
-
|
|
24
|
+
steps:
|
|
25
25
|
- name: plan
|
|
26
26
|
edit: false
|
|
27
27
|
persona: planner
|