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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## チームメイトの起動方法
|
|
4
4
|
|
|
5
|
-
全ての
|
|
5
|
+
全ての step は Task tool でチームメイトを起動して実行する。
|
|
6
6
|
**あなた(Team Lead)が直接作業することは禁止。**
|
|
7
7
|
|
|
8
8
|
### Task tool の呼び出し
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
Task tool:
|
|
12
12
|
subagent_type: "general-purpose"
|
|
13
13
|
team_name: "takt"
|
|
14
|
-
name: "{
|
|
15
|
-
description: "{
|
|
14
|
+
name: "{step_name}"
|
|
15
|
+
description: "{step_name} - {workflow_name}"
|
|
16
16
|
prompt: <プロンプト構築で組み立てた内容>
|
|
17
17
|
mode: permission_mode
|
|
18
18
|
```
|
|
@@ -24,18 +24,18 @@ Task tool:
|
|
|
24
24
|
- `/takt coding --permit-edit タスク` → `permission_mode = "acceptEdits"`(編集は自動許可)
|
|
25
25
|
- `/takt coding タスク` → `permission_mode = "default"`(権限確認あり)
|
|
26
26
|
|
|
27
|
-
## 通常
|
|
27
|
+
## 通常 step の実行
|
|
28
28
|
|
|
29
|
-
通常の
|
|
29
|
+
通常の step(`parallel` フィールドを持たない)は、Task tool で1つのチームメイトを起動する。
|
|
30
30
|
|
|
31
31
|
1. プロンプトを構築する(後述の「プロンプト構築」参照)
|
|
32
32
|
2. Task tool でチームメイトを起動する
|
|
33
33
|
3. チームメイトの出力を受け取る
|
|
34
|
-
4. Rule 評価で次の
|
|
34
|
+
4. Rule 評価で次の step を決定する
|
|
35
35
|
|
|
36
|
-
## Parallel
|
|
36
|
+
## Parallel step の実行
|
|
37
37
|
|
|
38
|
-
`parallel` フィールドを持つ
|
|
38
|
+
`parallel` フィールドを持つ step は、複数のチームメイトを並列起動する。
|
|
39
39
|
|
|
40
40
|
### 実行手順
|
|
41
41
|
|
|
@@ -44,13 +44,13 @@ Task tool:
|
|
|
44
44
|
3. 全チームメイトの完了を待つ
|
|
45
45
|
4. 各サブステップの出力を収集する
|
|
46
46
|
5. 各サブステップの出力に対して、そのサブステップの `rules` で条件マッチを判定
|
|
47
|
-
6. 親
|
|
47
|
+
6. 親 step の `rules` で aggregate 評価(all()/any())を行う
|
|
48
48
|
|
|
49
49
|
### サブステップの条件マッチ判定
|
|
50
50
|
|
|
51
51
|
各サブステップの出力テキストに対して、そのサブステップの `rules` の中からマッチする condition を特定する。
|
|
52
52
|
|
|
53
|
-
判定方法(通常
|
|
53
|
+
判定方法(通常 step の Rule 評価と同じ優先順位):
|
|
54
54
|
1. `[STEP:N]` タグがあればインデックスで照合(最後のタグを採用)
|
|
55
55
|
2. タグがなければ、出力全体を読んでどの condition に最も近いかを判断する
|
|
56
56
|
|
|
@@ -58,15 +58,15 @@ Task tool:
|
|
|
58
58
|
|
|
59
59
|
## セクションマップの解決
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
ワークフロー YAML のトップレベルにある `personas:`, `policies:`, `instructions:`, `output_contracts:`, `knowledge:` はキーとファイルパスの対応表。step 定義内ではキー名で参照する。
|
|
62
62
|
|
|
63
63
|
### 解決手順
|
|
64
64
|
|
|
65
|
-
1.
|
|
66
|
-
2.
|
|
67
|
-
3.
|
|
65
|
+
1. ワークフローYAMLを読み込む
|
|
66
|
+
2. 各セクションマップのパスを、**ワークフローYAMLファイルのディレクトリ**を基準に絶対パスに変換する
|
|
67
|
+
3. step の `persona: coder` → `personas:` セクションの `coder` キー → ファイルパス → Read で内容を取得
|
|
68
68
|
|
|
69
|
-
例:
|
|
69
|
+
例: ワークフロー YAML が `~/.claude/skills/takt/workflows/default.yaml` にある場合
|
|
70
70
|
- `personas.coder: ../facets/personas/coder.md` → `~/.claude/skills/takt/facets/personas/coder.md`
|
|
71
71
|
- `policies.coding: ../facets/policies/coding.md` → `~/.claude/skills/takt/facets/policies/coding.md`
|
|
72
72
|
- `instructions.plan: ../facets/instructions/plan.md` → `~/.claude/skills/takt/facets/instructions/plan.md`
|
|
@@ -86,7 +86,7 @@ Task tool:
|
|
|
86
86
|
6. ナレッジ(knowledge: で参照される .md の内容)
|
|
87
87
|
7. インストラクション内容(instruction: で参照される .md、または instruction_template のインライン内容)
|
|
88
88
|
8. ユーザーのタスク({task} が template に含まれない場合、末尾に自動追加)
|
|
89
|
-
9. 前の
|
|
89
|
+
9. 前の step の出力(pass_previous_response: true の場合、自動追加)
|
|
90
90
|
10. レポート出力指示(report フィールドがある場合、自動追加)
|
|
91
91
|
11. ステータスタグ出力指示(rules がある場合、自動追加)
|
|
92
92
|
12. ポリシーリマインダー(ポリシーがある場合、末尾に再掲)
|
|
@@ -94,11 +94,11 @@ Task tool:
|
|
|
94
94
|
|
|
95
95
|
### ペルソナプロンプト
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
step の `persona:` キーからセクションマップを経由して .md ファイルを解決し、その全内容をプロンプトの冒頭に配置する。ペルソナはドメイン知識と行動原則のみを含む(ワークフロー固有の手順は含まない)。
|
|
98
98
|
|
|
99
99
|
### ポリシー注入
|
|
100
100
|
|
|
101
|
-
|
|
101
|
+
step の `policy:` キー(単一または配列)からポリシーファイルを解決し、内容を結合する。ポリシーは行動ルール(コーディング規約、レビュー基準等)を定義する。
|
|
102
102
|
|
|
103
103
|
**Lost in the Middle 対策**: ポリシーはプロンプトの前半に配置し、末尾にリマインダーとして再掲する。
|
|
104
104
|
|
|
@@ -115,7 +115,7 @@ movement の `policy:` キー(単一または配列)からポリシーファ
|
|
|
115
115
|
|
|
116
116
|
### ナレッジ注入
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
step の `knowledge:` キーからナレッジファイルを解決し、ドメイン固有の参考情報としてプロンプトに含める。
|
|
119
119
|
|
|
120
120
|
```
|
|
121
121
|
## ナレッジ
|
|
@@ -124,17 +124,17 @@ movement の `knowledge:` キーからナレッジファイルを解決し、ド
|
|
|
124
124
|
|
|
125
125
|
### インストラクション
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
step の `instruction:` キーから指示テンプレートファイルを解決する。または `instruction_template:` でインライン記述。テンプレート変数({task}, {previous_response} 等)を展開した上でプロンプトに含める。
|
|
128
128
|
|
|
129
129
|
### 実行コンテキスト情報
|
|
130
130
|
|
|
131
131
|
```
|
|
132
132
|
## 実行コンテキスト
|
|
133
133
|
- ワーキングディレクトリ: {cwd}
|
|
134
|
-
-
|
|
135
|
-
-
|
|
134
|
+
- ワークフロー (YAML の name): {workflow_name}
|
|
135
|
+
- Step: {step_name}
|
|
136
136
|
- イテレーション: {iteration} / {max_movements}
|
|
137
|
-
-
|
|
137
|
+
- Step 実行回数(テンプレート変数は {movement_iteration} のまま): {movement_iteration} 回目
|
|
138
138
|
```
|
|
139
139
|
|
|
140
140
|
### テンプレート変数の展開
|
|
@@ -144,10 +144,10 @@ movement の `instruction:` キーから指示テンプレートファイルを
|
|
|
144
144
|
| 変数 | 値 |
|
|
145
145
|
|-----|-----|
|
|
146
146
|
| `{task}` | ユーザーが入力したタスク内容 |
|
|
147
|
-
| `{previous_response}` | 前の
|
|
148
|
-
| `{iteration}` |
|
|
149
|
-
| `{max_movements}` |
|
|
150
|
-
| `{movement_iteration}` | この
|
|
147
|
+
| `{previous_response}` | 前の step のチームメイト出力 |
|
|
148
|
+
| `{iteration}` | ワークフロー全体のイテレーション数(1始まり) |
|
|
149
|
+
| `{max_movements}` | ワークフローの max_movements 値 |
|
|
150
|
+
| `{movement_iteration}` | この step が実行された回数(1始まり) |
|
|
151
151
|
| `{report_dir}` | レポートディレクトリパス(`.takt/runs/{slug}/reports`) |
|
|
152
152
|
| `{report:ファイル名}` | 指定レポートファイルの内容(Read で取得) |
|
|
153
153
|
|
|
@@ -160,11 +160,11 @@ movement の `instruction:` キーから指示テンプレートファイルを
|
|
|
160
160
|
|
|
161
161
|
### persona フィールドがない場合
|
|
162
162
|
|
|
163
|
-
`persona:` が指定されていない
|
|
163
|
+
`persona:` が指定されていない step の場合、ペルソナプロンプト部分を省略し、インストラクションの内容のみでプロンプトを構成する。
|
|
164
164
|
|
|
165
165
|
## レポート出力指示の自動注入
|
|
166
166
|
|
|
167
|
-
|
|
167
|
+
step に `report` フィールドがある場合、プロンプト末尾にレポート出力指示を自動追加する。
|
|
168
168
|
|
|
169
169
|
### 形式1: name + format(キー参照)
|
|
170
170
|
|
|
@@ -226,7 +226,7 @@ report:
|
|
|
226
226
|
|
|
227
227
|
## ステータスタグ出力指示の自動注入
|
|
228
228
|
|
|
229
|
-
|
|
229
|
+
step に `rules` がある場合、プロンプト末尾にステータスタグ出力指示を自動追加する。
|
|
230
230
|
|
|
231
231
|
### 注入する指示
|
|
232
232
|
|
|
@@ -261,7 +261,7 @@ parallel のサブステップにも同様にタグ出力指示を注入する
|
|
|
261
261
|
|
|
262
262
|
チームメイトの出力からどの rule にマッチするかを判定する。
|
|
263
263
|
|
|
264
|
-
### 通常
|
|
264
|
+
### 通常 step の Rule 評価
|
|
265
265
|
|
|
266
266
|
判定優先順位(最初にマッチしたものを採用):
|
|
267
267
|
|
|
@@ -275,9 +275,9 @@ parallel のサブステップにも同様にタグ出力指示を注入する
|
|
|
275
275
|
|
|
276
276
|
タグが出力に含まれない場合、出力テキスト全体を読み、全ての condition と比較して最もマッチするものを選択する。
|
|
277
277
|
|
|
278
|
-
### Parallel
|
|
278
|
+
### Parallel step の Rule 評価(Aggregate)
|
|
279
279
|
|
|
280
|
-
親
|
|
280
|
+
親 step の rules に `all()` / `any()` の aggregate 条件を使用する。
|
|
281
281
|
|
|
282
282
|
#### all() の評価
|
|
283
283
|
|
|
@@ -316,7 +316,7 @@ parallel のサブステップにも同様にタグ出力指示を注入する
|
|
|
316
316
|
|
|
317
317
|
### 基本ルール
|
|
318
318
|
|
|
319
|
-
- 同じ
|
|
319
|
+
- 同じ step が連続3回以上実行されたら警告を表示する
|
|
320
320
|
- `max_movements` に到達したら強制終了(ABORT)する
|
|
321
321
|
|
|
322
322
|
### カウンター管理
|
|
@@ -325,13 +325,13 @@ parallel のサブステップにも同様にタグ出力指示を注入する
|
|
|
325
325
|
|
|
326
326
|
| カウンター | 説明 | リセットタイミング |
|
|
327
327
|
|-----------|------|-------------------|
|
|
328
|
-
| `iteration` |
|
|
329
|
-
| `movement_iteration[name]` | 各
|
|
330
|
-
| `consecutive_count[name]` | 同じ
|
|
328
|
+
| `iteration` | ワークフロー全体の step 実行回数 | リセットしない |
|
|
329
|
+
| `movement_iteration[name]` | 各 step の実行回数 | リセットしない |
|
|
330
|
+
| `consecutive_count[name]` | 同じ step の連続実行回数 | 別の step に遷移したとき |
|
|
331
331
|
|
|
332
332
|
## Loop Monitors
|
|
333
333
|
|
|
334
|
-
|
|
334
|
+
ワークフローに `loop_monitors` が定義されている場合、特定の step 間サイクルを監視する。
|
|
335
335
|
|
|
336
336
|
### 動作
|
|
337
337
|
|
|
@@ -352,7 +352,7 @@ loop_monitors:
|
|
|
352
352
|
|
|
353
353
|
### 検出ロジック
|
|
354
354
|
|
|
355
|
-
1.
|
|
355
|
+
1. step 遷移履歴を記録する(例: `[plan, implement, ai_review, ai_fix, ai_review, ai_fix, ...]`)
|
|
356
356
|
2. 各 loop_monitor の `cycle` パターンが履歴の末尾に `threshold` 回以上連続で出現するかチェックする
|
|
357
357
|
3. 閾値に達した場合:
|
|
358
358
|
a. judge の `persona` キーからペルソナファイルを Read で読み込む
|
|
@@ -365,7 +365,7 @@ loop_monitors:
|
|
|
365
365
|
|
|
366
366
|
### 実行ディレクトリの作成
|
|
367
367
|
|
|
368
|
-
|
|
368
|
+
ワークフロー実行開始時に実行ディレクトリを作成する:
|
|
369
369
|
|
|
370
370
|
```
|
|
371
371
|
.takt/runs/{YYYYMMDD-HHmmss}-{slug}/
|
|
@@ -378,7 +378,7 @@ loop_monitors:
|
|
|
378
378
|
meta.json
|
|
379
379
|
```
|
|
380
380
|
|
|
381
|
-
このうち `reports/` のパスを `{report_dir}` 変数として全
|
|
381
|
+
このうち `reports/` のパスを `{report_dir}` 変数として全 step から参照可能にする。
|
|
382
382
|
|
|
383
383
|
### レポートの保存
|
|
384
384
|
|
|
@@ -391,20 +391,20 @@ loop_monitors:
|
|
|
391
391
|
|
|
392
392
|
### レポートの参照
|
|
393
393
|
|
|
394
|
-
後続の
|
|
394
|
+
後続の step のインストラクション内で `{report:ファイル名}` として参照すると、そのレポートファイルを Read して内容をプレースホルダーに展開する。
|
|
395
395
|
|
|
396
396
|
## 状態遷移の全体像
|
|
397
397
|
|
|
398
398
|
```
|
|
399
399
|
[開始]
|
|
400
400
|
↓
|
|
401
|
-
|
|
401
|
+
ワークフローYAML読み込み + セクションマップ解決(personas, policies, instructions, output_contracts, knowledge)
|
|
402
402
|
↓
|
|
403
403
|
TeamCreate でチーム作成
|
|
404
404
|
↓
|
|
405
405
|
実行ディレクトリ作成
|
|
406
406
|
↓
|
|
407
|
-
initial_movement
|
|
407
|
+
initial_step を取得(YAML が `initial_movement` のみの場合はそれを使う)
|
|
408
408
|
↓
|
|
409
409
|
┌─→ Task tool でチームメイト起動
|
|
410
410
|
│ ├── 通常: 1つの Task tool 呼び出し
|
|
@@ -428,7 +428,7 @@ initial_movement を取得
|
|
|
428
428
|
│ next を決定
|
|
429
429
|
│ ├── COMPLETE → TeamDelete → ユーザーに結果報告
|
|
430
430
|
│ ├── ABORT → TeamDelete → ユーザーにエラー報告
|
|
431
|
-
│ └──
|
|
431
|
+
│ └── step名 → ループ検出チェック → 次の step
|
|
432
432
|
│ ↓
|
|
433
433
|
└──────────────────────────────────────────────┘
|
|
434
434
|
```
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ワークフローYAML スキーマリファレンス
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
このドキュメントは workflow YAML(旧称ピースYAML)の構造を定義する。具体的な workflow 定義は含まない。
|
|
4
4
|
|
|
5
5
|
## トップレベルフィールド
|
|
6
6
|
|
|
7
7
|
```yaml
|
|
8
|
-
name:
|
|
9
|
-
description: 説明テキスト #
|
|
10
|
-
max_movements: 10 #
|
|
11
|
-
|
|
8
|
+
name: workflow-name # workflow 名(必須)。カテゴリの workflow_categories 下の workflows でもこの名前を使う(互換: piece_categories / pieces)
|
|
9
|
+
description: 説明テキスト # 任意
|
|
10
|
+
max_movements: 10 # 最大イテレーション数(省略時デフォルトあり)
|
|
11
|
+
initial_step: plan # 最初に実行する step 名(省略時は steps の先頭)
|
|
12
|
+
|
|
13
|
+
# ワークフロー全体の provider / runtime 等
|
|
14
|
+
workflow_config:
|
|
15
|
+
provider_options:
|
|
16
|
+
codex:
|
|
17
|
+
network_access: true
|
|
12
18
|
|
|
13
19
|
# セクションマップ(キー → ファイルパスの対応表)
|
|
14
20
|
policies: # ポリシー定義(任意)
|
|
@@ -26,25 +32,27 @@ report_formats: # レポートフォーマット定義(任意)
|
|
|
26
32
|
knowledge: # ナレッジ定義(任意)
|
|
27
33
|
architecture: ../knowledge/architecture.md
|
|
28
34
|
|
|
29
|
-
|
|
30
|
-
loop_monitors: [...] #
|
|
35
|
+
steps: [...] # step 定義の配列(推奨キー名)
|
|
36
|
+
loop_monitors: [...] # ループ監視設定(任意)。cycle には step 名を並べる
|
|
31
37
|
```
|
|
32
38
|
|
|
39
|
+
**互換 alias:** `movements` は `steps` と同義(両方書く場合は内容が一致している必要がある)。`initial_movement` は `initial_step` と同義(両方書く場合は同じ名前である必要がある)。
|
|
40
|
+
|
|
33
41
|
### セクションマップの解決
|
|
34
42
|
|
|
35
|
-
各セクションマップのパスは
|
|
36
|
-
|
|
43
|
+
各セクションマップのパスは **workflow YAML ファイルのディレクトリからの相対パス** で解決する。
|
|
44
|
+
step 定義内では**キー名**で参照する(パスを直接書かない)。
|
|
37
45
|
|
|
38
|
-
例:
|
|
39
|
-
→ 絶対パスは `~/.claude/skills/takt/
|
|
40
|
-
→
|
|
46
|
+
例: workflow が `{スキルルート}/workflows/coding.yaml` にあり、`personas:` セクションに `coder: ../personas/coder.md` がある場合
|
|
47
|
+
→ 絶対パスは `{スキルルート}/personas/coder.md`(`スキルルート` は Claude Code では `~/.claude/skills/takt`、Codex では `~/.agents/skills/takt` など、インストール先に応じて置き換える)
|
|
48
|
+
→ step では `persona: coder` で参照
|
|
41
49
|
|
|
42
|
-
##
|
|
50
|
+
## Step 定義(`steps` の各要素)
|
|
43
51
|
|
|
44
|
-
###
|
|
52
|
+
### 通常の step
|
|
45
53
|
|
|
46
54
|
```yaml
|
|
47
|
-
- name:
|
|
55
|
+
- name: step-name # step 名(必須、workflow 内で一意)
|
|
48
56
|
persona: coder # ペルソナキー(personas マップを参照、任意)
|
|
49
57
|
policy: coding # ポリシーキー(policies マップを参照、任意)
|
|
50
58
|
instruction: implement # 指示(instructions マップのキー参照、またはインライン、任意)
|
|
@@ -62,32 +70,32 @@ movement 内では**キー名**で参照する(パスを直接書かない)
|
|
|
62
70
|
複数ポリシー指定(配列):
|
|
63
71
|
|
|
64
72
|
```yaml
|
|
65
|
-
- name:
|
|
73
|
+
- name: step-name
|
|
66
74
|
policy: [coding, testing]
|
|
67
75
|
```
|
|
68
76
|
|
|
69
77
|
参照形式:
|
|
70
78
|
|
|
71
79
|
```yaml
|
|
72
|
-
- name:
|
|
80
|
+
- name: step-name
|
|
73
81
|
instruction: implement
|
|
74
82
|
```
|
|
75
83
|
|
|
76
84
|
インライン形式:
|
|
77
85
|
|
|
78
86
|
```yaml
|
|
79
|
-
- name:
|
|
87
|
+
- name: step-name
|
|
80
88
|
instruction: |
|
|
81
89
|
指示内容...
|
|
82
90
|
```
|
|
83
91
|
|
|
84
92
|
**`instruction`(正式) / `instruction_template`(deprecated)**: どちらも同じ参照解決ルート(セクションマップ → パス → 3-layer facet → インライン)を使う。`instruction_template` も互換のため受理されるが、新規定義では `instruction` を使う。
|
|
85
93
|
|
|
86
|
-
### Parallel
|
|
94
|
+
### Parallel step(親 + `parallel`)
|
|
87
95
|
|
|
88
96
|
```yaml
|
|
89
|
-
- name: reviewers # 親
|
|
90
|
-
parallel: # 並列サブステップ配列(これがあると parallel
|
|
97
|
+
- name: reviewers # 親 step 名(必須)
|
|
98
|
+
parallel: # 並列サブステップ配列(これがあると parallel step)
|
|
91
99
|
- name: arch-review
|
|
92
100
|
persona: architecture-reviewer
|
|
93
101
|
policy: review
|
|
@@ -125,7 +133,7 @@ movement 内では**キー名**で参照する(パスを直接書かない)
|
|
|
125
133
|
```yaml
|
|
126
134
|
rules:
|
|
127
135
|
- condition: 条件テキスト # マッチ条件(必須)
|
|
128
|
-
next: next-
|
|
136
|
+
next: next-step # 遷移先 step 名(必須、parallel 子では任意)
|
|
129
137
|
requires_user_input: true # ユーザー入力が必要(任意)
|
|
130
138
|
interactive_only: true # インタラクティブモードのみ(任意)
|
|
131
139
|
appendix: | # 追加情報(任意)
|
|
@@ -146,13 +154,13 @@ rules:
|
|
|
146
154
|
|
|
147
155
|
| 値 | 意味 |
|
|
148
156
|
|---|------|
|
|
149
|
-
| `COMPLETE` |
|
|
150
|
-
| `ABORT` |
|
|
151
|
-
|
|
|
157
|
+
| `COMPLETE` | workflow 成功終了 |
|
|
158
|
+
| `ABORT` | workflow 失敗終了 |
|
|
159
|
+
| step 名 | 指定された step に遷移 |
|
|
152
160
|
|
|
153
161
|
## Output Contracts 定義
|
|
154
162
|
|
|
155
|
-
|
|
163
|
+
Step の出力契約(レポート定義)。`output_contracts.report` 配列形式で指定する。
|
|
156
164
|
|
|
157
165
|
### 形式1: name + format(フォーマット参照)
|
|
158
166
|
|
|
@@ -191,7 +199,7 @@ output_contracts:
|
|
|
191
199
|
|
|
192
200
|
## Quality Gates 定義
|
|
193
201
|
|
|
194
|
-
|
|
202
|
+
Step 完了時の品質要件を AI への指示として定義する。自動検証は行わない。
|
|
195
203
|
|
|
196
204
|
```yaml
|
|
197
205
|
quality_gates:
|
|
@@ -200,7 +208,7 @@ quality_gates:
|
|
|
200
208
|
- ESLint 違反がないこと
|
|
201
209
|
```
|
|
202
210
|
|
|
203
|
-
配列で複数の品質基準を指定できる。エージェントはこれらの基準を満たしてから
|
|
211
|
+
配列で複数の品質基準を指定できる。エージェントはこれらの基準を満たしてから step を完了する必要がある。
|
|
204
212
|
|
|
205
213
|
## テンプレート変数
|
|
206
214
|
|
|
@@ -209,10 +217,10 @@ quality_gates:
|
|
|
209
217
|
| 変数 | 説明 |
|
|
210
218
|
|-----|------|
|
|
211
219
|
| `{task}` | ユーザーのタスク入力(template に含まれない場合は自動追加) |
|
|
212
|
-
| `{previous_response}` | 前の
|
|
213
|
-
| `{iteration}` |
|
|
214
|
-
| `{max_movements}` |
|
|
215
|
-
| `{movement_iteration}` | この
|
|
220
|
+
| `{previous_response}` | 前の step の出力(pass_previous_response: true 時、自動追加) |
|
|
221
|
+
| `{iteration}` | workflow 全体のイテレーション数 |
|
|
222
|
+
| `{max_movements}` | 最大イテレーション数(テンプレート変数名は従来どおり) |
|
|
223
|
+
| `{movement_iteration}` | この step の実行回数(テンプレート変数名は従来どおり) |
|
|
216
224
|
| `{report_dir}` | レポートディレクトリ名 |
|
|
217
225
|
| `{report:ファイル名}` | 指定レポートファイルの内容を展開 |
|
|
218
226
|
| `{user_inputs}` | 蓄積されたユーザー入力 |
|
|
@@ -222,7 +230,7 @@ quality_gates:
|
|
|
222
230
|
|
|
223
231
|
```yaml
|
|
224
232
|
loop_monitors:
|
|
225
|
-
- cycle: [
|
|
233
|
+
- cycle: [step_a, step_b] # 監視対象の step 名のサイクル
|
|
226
234
|
threshold: 3 # 発動閾値(サイクル回数)
|
|
227
235
|
judge:
|
|
228
236
|
persona: supervisor # ペルソナキー参照
|
|
@@ -231,13 +239,13 @@ loop_monitors:
|
|
|
231
239
|
健全性を判断してください。
|
|
232
240
|
rules:
|
|
233
241
|
- condition: 健全(進捗あり)
|
|
234
|
-
next:
|
|
242
|
+
next: step_a
|
|
235
243
|
- condition: 非生産的(改善なし)
|
|
236
|
-
next:
|
|
244
|
+
next: alternative_step
|
|
237
245
|
```
|
|
238
246
|
|
|
239
|
-
特定の
|
|
247
|
+
特定の step 間のサイクルが閾値に達した場合、judge が介入して遷移先を判断する。
|
|
240
248
|
|
|
241
249
|
## allowed_tools について
|
|
242
250
|
|
|
243
|
-
`allowed_tools` は TAKT 本体のエージェントプロバイダーで使用されるフィールド。Claude Code の
|
|
251
|
+
`allowed_tools` は TAKT 本体のエージェントプロバイダーで使用されるフィールド。Skill 経由で実行する場合、実際に利用可能なツールはホスト側の設定(Claude Code の Task tool 設定や Codex のサンドボックス設定など)に従う。このフィールドは参考情報として扱い、`edit` フィールドの方を権限制御に使用する。
|