agentplane 0.3.7 → 0.3.8
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/assets/AGENTS.md +11 -1
- package/assets/RUNNER.md +17 -0
- package/bin/agentplane.js +16 -7
- package/bin/framework-dev-contract.d.ts +6 -0
- package/bin/framework-dev-contract.js +13 -0
- package/bin/stale-dist-policy.js +6 -1
- package/dist/.build-manifest.json +694 -339
- package/dist/adapters/task-backend/task-backend-adapter.d.ts +3 -1
- package/dist/adapters/task-backend/task-backend-adapter.d.ts.map +1 -1
- package/dist/adapters/task-backend/task-backend-adapter.js +13 -0
- package/dist/backends/task-backend/local-backend-doc.d.ts +5 -0
- package/dist/backends/task-backend/local-backend-doc.d.ts.map +1 -0
- package/dist/backends/task-backend/local-backend-doc.js +98 -0
- package/dist/backends/task-backend/local-backend-read.d.ts +7 -0
- package/dist/backends/task-backend/local-backend-read.d.ts.map +1 -0
- package/dist/backends/task-backend/local-backend-read.js +186 -0
- package/dist/backends/task-backend/local-backend-state.d.ts +17 -0
- package/dist/backends/task-backend/local-backend-state.d.ts.map +1 -0
- package/dist/backends/task-backend/local-backend-state.js +50 -0
- package/dist/backends/task-backend/local-backend-write.d.ts +15 -0
- package/dist/backends/task-backend/local-backend-write.d.ts.map +1 -0
- package/dist/backends/task-backend/local-backend-write.js +254 -0
- package/dist/backends/task-backend/local-backend.d.ts +4 -2
- package/dist/backends/task-backend/local-backend.d.ts.map +1 -1
- package/dist/backends/task-backend/local-backend.js +26 -403
- package/dist/backends/task-backend/redmine/backend-cache-doc.d.ts +40 -0
- package/dist/backends/task-backend/redmine/backend-cache-doc.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/backend-cache-doc.js +178 -0
- package/dist/backends/task-backend/redmine/backend-report.d.ts +10 -0
- package/dist/backends/task-backend/redmine/backend-report.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/backend-report.js +43 -0
- package/dist/backends/task-backend/redmine/backend-sync.d.ts +67 -0
- package/dist/backends/task-backend/redmine/backend-sync.d.ts.map +1 -0
- package/dist/backends/task-backend/redmine/backend-sync.js +367 -0
- package/dist/backends/task-backend/redmine/mapping.d.ts +2 -1
- package/dist/backends/task-backend/redmine/mapping.d.ts.map +1 -1
- package/dist/backends/task-backend/redmine/mapping.js +12 -2
- package/dist/backends/task-backend/redmine/parse.d.ts +2 -1
- package/dist/backends/task-backend/redmine/parse.d.ts.map +1 -1
- package/dist/backends/task-backend/redmine/parse.js +5 -3
- package/dist/backends/task-backend/redmine/state.d.ts +2 -0
- package/dist/backends/task-backend/redmine/state.d.ts.map +1 -1
- package/dist/backends/task-backend/redmine/state.js +15 -1
- package/dist/backends/task-backend/redmine-backend.d.ts +5 -2
- package/dist/backends/task-backend/redmine-backend.d.ts.map +1 -1
- package/dist/backends/task-backend/redmine-backend.js +88 -536
- package/dist/backends/task-backend/shared/constants.d.ts +2 -1
- package/dist/backends/task-backend/shared/constants.d.ts.map +1 -1
- package/dist/backends/task-backend/shared/doc.d.ts.map +1 -1
- package/dist/backends/task-backend/shared/doc.js +25 -39
- package/dist/backends/task-backend/shared/export.d.ts +2 -9
- package/dist/backends/task-backend/shared/export.d.ts.map +1 -1
- package/dist/backends/task-backend/shared/export.js +73 -8
- package/dist/backends/task-backend/shared/normalize.d.ts +5 -1
- package/dist/backends/task-backend/shared/normalize.d.ts.map +1 -1
- package/dist/backends/task-backend/shared/normalize.js +166 -0
- package/dist/backends/task-backend/shared/record.d.ts +1 -1
- package/dist/backends/task-backend/shared/record.d.ts.map +1 -1
- package/dist/backends/task-backend/shared/record.js +7 -2
- package/dist/backends/task-backend/shared/types.d.ts +38 -36
- package/dist/backends/task-backend/shared/types.d.ts.map +1 -1
- package/dist/backends/task-backend/shared.d.ts +2 -2
- package/dist/backends/task-backend/shared.d.ts.map +1 -1
- package/dist/backends/task-backend/shared.js +1 -1
- package/dist/backends/task-backend.d.ts +1 -1
- package/dist/backends/task-backend.d.ts.map +1 -1
- package/dist/backends/task-backend.js +1 -1
- package/dist/backends/task-index.d.ts +2 -2
- package/dist/backends/task-index.d.ts.map +1 -1
- package/dist/backends/task-index.js +9 -6
- package/dist/cli/bootstrap-guide.d.ts +2 -2
- package/dist/cli/bootstrap-guide.d.ts.map +1 -1
- package/dist/cli/bootstrap-guide.js +10 -10
- package/dist/cli/command-guide.d.ts.map +1 -1
- package/dist/cli/command-guide.js +11 -9
- package/dist/cli/command-invocations.d.ts +4 -0
- package/dist/cli/command-invocations.d.ts.map +1 -0
- package/dist/cli/command-invocations.js +35 -0
- package/dist/cli/command-snippets.d.ts +12 -8
- package/dist/cli/command-snippets.d.ts.map +1 -1
- package/dist/cli/command-snippets.js +14 -8
- package/dist/cli/exit-codes.d.ts.map +1 -1
- package/dist/cli/exit-codes.js +1 -0
- package/dist/cli/group-command.d.ts +18 -0
- package/dist/cli/group-command.d.ts.map +1 -0
- package/dist/cli/group-command.js +45 -0
- package/dist/cli/output.d.ts +29 -0
- package/dist/cli/output.d.ts.map +1 -1
- package/dist/cli/output.js +76 -0
- package/dist/cli/prompts.d.ts.map +1 -1
- package/dist/cli/prompts.js +5 -1
- package/dist/cli/run-cli/command-catalog/core.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/core.js +38 -29
- package/dist/cli/run-cli/command-catalog/lifecycle.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/lifecycle.js +9 -6
- package/dist/cli/run-cli/command-catalog/project.d.ts +1 -1
- package/dist/cli/run-cli/command-catalog/project.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/project.js +8 -6
- package/dist/cli/run-cli/command-catalog/shared.d.ts +12 -3
- package/dist/cli/run-cli/command-catalog/shared.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/shared.js +6 -3
- package/dist/cli/run-cli/command-catalog/task.d.ts +1 -1
- package/dist/cli/run-cli/command-catalog/task.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog/task.js +46 -11
- package/dist/cli/run-cli/command-catalog.d.ts +11 -1
- package/dist/cli/run-cli/command-catalog.d.ts.map +1 -1
- package/dist/cli/run-cli/command-catalog.js +29 -0
- package/dist/cli/run-cli/commands/config.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/config.js +52 -6
- package/dist/cli/run-cli/commands/core/agent-profiles.d.ts +34 -0
- package/dist/cli/run-cli/commands/core/agent-profiles.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/core/agent-profiles.js +97 -0
- package/dist/cli/run-cli/commands/core/agents.d.ts +7 -0
- package/dist/cli/run-cli/commands/core/agents.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/core/agents.js +97 -0
- package/dist/cli/run-cli/commands/core/preflight.d.ts +10 -0
- package/dist/cli/run-cli/commands/core/preflight.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/core/preflight.js +286 -0
- package/dist/cli/run-cli/commands/core/quickstart.d.ts +8 -0
- package/dist/cli/run-cli/commands/core/quickstart.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/core/quickstart.js +43 -0
- package/dist/cli/run-cli/commands/core/role.d.ts +9 -0
- package/dist/cli/run-cli/commands/core/role.d.ts.map +1 -0
- package/dist/cli/run-cli/commands/core/role.js +128 -0
- package/dist/cli/run-cli/commands/core.d.ts +4 -24
- package/dist/cli/run-cli/commands/core.d.ts.map +1 -1
- package/dist/cli/run-cli/commands/core.js +4 -630
- package/dist/cli/run-cli/error-guidance.js +10 -0
- package/dist/cli/run-cli/globals.d.ts +5 -2
- package/dist/cli/run-cli/globals.d.ts.map +1 -1
- package/dist/cli/run-cli/globals.js +82 -86
- package/dist/cli/run-cli.d.ts.map +1 -1
- package/dist/cli/run-cli.js +137 -100
- package/dist/cli/run-cli.test-helpers.d.ts +21 -0
- package/dist/cli/run-cli.test-helpers.d.ts.map +1 -1
- package/dist/cli/run-cli.test-helpers.js +88 -4
- package/dist/cli/spec/help.d.ts +10 -2
- package/dist/cli/spec/help.d.ts.map +1 -1
- package/dist/cli/spec/help.js +7 -5
- package/dist/cli/spec/registry.d.ts +27 -1
- package/dist/cli/spec/registry.d.ts.map +1 -1
- package/dist/cli/spec/registry.js +98 -25
- package/dist/commands/backend/sync.command.d.ts +3 -5
- package/dist/commands/backend/sync.command.d.ts.map +1 -1
- package/dist/commands/backend/sync.command.js +9 -12
- package/dist/commands/backend.d.ts.map +1 -1
- package/dist/commands/backend.js +8 -7
- package/dist/commands/branch/base.command.d.ts +2 -3
- package/dist/commands/branch/base.command.d.ts.map +1 -1
- package/dist/commands/branch/base.command.js +8 -12
- package/dist/commands/branch/base.d.ts.map +1 -1
- package/dist/commands/branch/base.js +11 -7
- package/dist/commands/branch/cleanup-merged.d.ts.map +1 -1
- package/dist/commands/branch/cleanup-merged.js +9 -8
- package/dist/commands/branch/remove.d.ts.map +1 -1
- package/dist/commands/branch/remove.js +4 -3
- package/dist/commands/branch/status.d.ts.map +1 -1
- package/dist/commands/branch/status.js +4 -3
- package/dist/commands/branch/work-start.d.ts.map +1 -1
- package/dist/commands/branch/work-start.js +48 -5
- package/dist/commands/cleanup/merged.command.d.ts +2 -3
- package/dist/commands/cleanup/merged.command.d.ts.map +1 -1
- package/dist/commands/cleanup/merged.command.js +8 -12
- package/dist/commands/docs/cli.command.js +2 -2
- package/dist/commands/doctor/runtime.js +1 -1
- package/dist/commands/doctor/workflow.d.ts.map +1 -1
- package/dist/commands/doctor/workflow.js +10 -1
- package/dist/commands/finish.spec.d.ts.map +1 -1
- package/dist/commands/finish.spec.js +7 -0
- package/dist/commands/guard/guard.command.d.ts +3 -3
- package/dist/commands/guard/guard.command.d.ts.map +1 -1
- package/dist/commands/guard/guard.command.js +9 -14
- package/dist/commands/guard/impl/commands.d.ts +2 -0
- package/dist/commands/guard/impl/commands.d.ts.map +1 -1
- package/dist/commands/guard/impl/commands.js +55 -7
- package/dist/commands/guard/impl/policy.d.ts +1 -0
- package/dist/commands/guard/impl/policy.d.ts.map +1 -1
- package/dist/commands/guard/impl/policy.js +9 -6
- package/dist/commands/hooks/hooks.command.d.ts +3 -3
- package/dist/commands/hooks/hooks.command.d.ts.map +1 -1
- package/dist/commands/hooks/hooks.command.js +9 -11
- package/dist/commands/pr/check.d.ts.map +1 -1
- package/dist/commands/pr/check.js +90 -18
- package/dist/commands/pr/integrate/cmd.d.ts.map +1 -1
- package/dist/commands/pr/integrate/cmd.js +31 -3
- package/dist/commands/pr/integrate/internal/cleanup.d.ts +12 -0
- package/dist/commands/pr/integrate/internal/cleanup.d.ts.map +1 -0
- package/dist/commands/pr/integrate/internal/cleanup.js +46 -0
- package/dist/commands/pr/integrate/internal/finalize.d.ts +4 -0
- package/dist/commands/pr/integrate/internal/finalize.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/finalize.js +34 -40
- package/dist/commands/pr/integrate/internal/merge.d.ts +6 -0
- package/dist/commands/pr/integrate/internal/merge.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/merge.js +92 -0
- package/dist/commands/pr/integrate/internal/prepare.d.ts +1 -0
- package/dist/commands/pr/integrate/internal/prepare.d.ts.map +1 -1
- package/dist/commands/pr/integrate/internal/prepare.js +1 -0
- package/dist/commands/pr/integrate/verify.d.ts.map +1 -1
- package/dist/commands/pr/integrate/verify.js +4 -3
- package/dist/commands/pr/note.d.ts.map +1 -1
- package/dist/commands/pr/note.js +3 -2
- package/dist/commands/pr/open.d.ts.map +1 -1
- package/dist/commands/pr/open.js +9 -12
- package/dist/commands/pr/pr.command.d.ts +3 -4
- package/dist/commands/pr/pr.command.d.ts.map +1 -1
- package/dist/commands/pr/pr.command.js +6 -11
- package/dist/commands/pr/update.d.ts.map +1 -1
- package/dist/commands/pr/update.js +5 -10
- package/dist/commands/recipes/cache.command.d.ts +3 -4
- package/dist/commands/recipes/cache.command.d.ts.map +1 -1
- package/dist/commands/recipes/cache.command.js +8 -26
- package/dist/commands/recipes/impl/apply.d.ts +1 -1
- package/dist/commands/recipes/impl/apply.d.ts.map +1 -1
- package/dist/commands/recipes/impl/apply.js +1 -1
- package/dist/commands/recipes/impl/commands/explain.js +1 -1
- package/dist/commands/recipes/impl/commands/install.d.ts.map +1 -1
- package/dist/commands/recipes/impl/commands/install.js +1 -2
- package/dist/commands/recipes/impl/installed-recipes.d.ts +1 -1
- package/dist/commands/recipes/impl/installed-recipes.d.ts.map +1 -1
- package/dist/commands/recipes/impl/installed-recipes.js +1 -2
- package/dist/commands/recipes/impl/manifest.d.ts.map +1 -1
- package/dist/commands/recipes/impl/manifest.js +0 -10
- package/dist/commands/recipes/impl/project-installed-recipes.d.ts +1 -1
- package/dist/commands/recipes/impl/project-installed-recipes.d.ts.map +1 -1
- package/dist/commands/recipes/impl/project-installed-recipes.js +1 -2
- package/dist/commands/recipes/impl/resolver.d.ts +1 -1
- package/dist/commands/recipes/impl/resolver.d.ts.map +1 -1
- package/dist/commands/recipes/impl/resolver.js +26 -16
- package/dist/commands/recipes/impl/scenario.d.ts.map +1 -1
- package/dist/commands/recipes/impl/scenario.js +80 -0
- package/dist/commands/recipes/impl/types.d.ts +27 -13
- package/dist/commands/recipes/impl/types.d.ts.map +1 -1
- package/dist/commands/recipes/recipes.command.d.ts +3 -4
- package/dist/commands/recipes/recipes.command.d.ts.map +1 -1
- package/dist/commands/recipes/recipes.command.js +8 -34
- package/dist/commands/recipes.d.ts +4 -4
- package/dist/commands/recipes.d.ts.map +1 -1
- package/dist/commands/recipes.js +3 -3
- package/dist/commands/recipes.test-helpers.d.ts +17 -0
- package/dist/commands/recipes.test-helpers.d.ts.map +1 -1
- package/dist/commands/recipes.test-helpers.js +56 -2
- package/dist/commands/release/apply.command.d.ts.map +1 -1
- package/dist/commands/release/apply.command.js +77 -56
- package/dist/commands/release/plan.command.d.ts.map +1 -1
- package/dist/commands/release/plan.command.js +7 -3
- package/dist/commands/release/release.command.d.ts +3 -3
- package/dist/commands/release/release.command.d.ts.map +1 -1
- package/dist/commands/release/release.command.js +9 -11
- package/dist/commands/release.test-helpers.d.ts +20 -0
- package/dist/commands/release.test-helpers.d.ts.map +1 -0
- package/dist/commands/release.test-helpers.js +37 -0
- package/dist/commands/runtime.command.d.ts +7 -7
- package/dist/commands/runtime.command.d.ts.map +1 -1
- package/dist/commands/runtime.command.js +29 -33
- package/dist/commands/scenario/execute.command.d.ts +8 -0
- package/dist/commands/scenario/execute.command.d.ts.map +1 -0
- package/dist/commands/scenario/execute.command.js +117 -0
- package/dist/commands/scenario/impl/commands.d.ts.map +1 -1
- package/dist/commands/scenario/impl/commands.js +45 -32
- package/dist/commands/scenario/run.command.js +2 -2
- package/dist/commands/scenario/scenario.command.d.ts +3 -4
- package/dist/commands/scenario/scenario.command.d.ts.map +1 -1
- package/dist/commands/scenario/scenario.command.js +8 -26
- package/dist/commands/shared/git-context.d.ts +1 -0
- package/dist/commands/shared/git-context.d.ts.map +1 -1
- package/dist/commands/shared/git-context.js +4 -2
- package/dist/commands/shared/git-ops.d.ts +1 -0
- package/dist/commands/shared/git-ops.d.ts.map +1 -1
- package/dist/commands/shared/git-ops.js +13 -0
- package/dist/commands/shared/operator-pipeline.d.ts +10 -0
- package/dist/commands/shared/operator-pipeline.d.ts.map +1 -0
- package/dist/commands/shared/operator-pipeline.js +16 -0
- package/dist/commands/shared/pr-meta.d.ts +32 -12
- package/dist/commands/shared/pr-meta.d.ts.map +1 -1
- package/dist/commands/shared/pr-meta.js +49 -14
- package/dist/commands/shared/reconcile-check.d.ts.map +1 -1
- package/dist/commands/shared/reconcile-check.js +28 -3
- package/dist/commands/shared/task-backend.d.ts +10 -6
- package/dist/commands/shared/task-backend.d.ts.map +1 -1
- package/dist/commands/shared/task-backend.js +99 -25
- package/dist/commands/shared/task-handoff.d.ts +64 -0
- package/dist/commands/shared/task-handoff.d.ts.map +1 -0
- package/dist/commands/shared/task-handoff.js +151 -0
- package/dist/commands/shared/task-mutation.d.ts +36 -0
- package/dist/commands/shared/task-mutation.d.ts.map +1 -0
- package/dist/commands/shared/task-mutation.js +67 -0
- package/dist/commands/shared/task-store.d.ts +5 -1
- package/dist/commands/shared/task-store.d.ts.map +1 -1
- package/dist/commands/shared/task-store.js +72 -92
- package/dist/commands/task/add.d.ts.map +1 -1
- package/dist/commands/task/add.js +41 -39
- package/dist/commands/task/block.d.ts.map +1 -1
- package/dist/commands/task/block.js +31 -110
- package/dist/commands/task/close-duplicate.d.ts.map +1 -1
- package/dist/commands/task/close-duplicate.js +0 -7
- package/dist/commands/task/close-noop.d.ts.map +1 -1
- package/dist/commands/task/close-noop.js +0 -21
- package/dist/commands/task/close-shared.d.ts +0 -2
- package/dist/commands/task/close-shared.d.ts.map +1 -1
- package/dist/commands/task/close-shared.js +25 -55
- package/dist/commands/task/comment.d.ts.map +1 -1
- package/dist/commands/task/comment.js +48 -37
- package/dist/commands/task/derive.d.ts.map +1 -1
- package/dist/commands/task/derive.js +14 -7
- package/dist/commands/task/doc.command.d.ts.map +1 -1
- package/dist/commands/task/doc.command.js +7 -6
- package/dist/commands/task/doc.d.ts.map +1 -1
- package/dist/commands/task/doc.js +58 -62
- package/dist/commands/task/finish-shared.d.ts +60 -0
- package/dist/commands/task/finish-shared.d.ts.map +1 -0
- package/dist/commands/task/finish-shared.js +181 -0
- package/dist/commands/task/finish.d.ts +1 -0
- package/dist/commands/task/finish.d.ts.map +1 -1
- package/dist/commands/task/finish.js +79 -210
- package/dist/commands/task/handoff-record.command.d.ts +17 -0
- package/dist/commands/task/handoff-record.command.d.ts.map +1 -0
- package/dist/commands/task/handoff-record.command.js +140 -0
- package/dist/commands/task/handoff-show.command.d.ts +8 -0
- package/dist/commands/task/handoff-show.command.d.ts.map +1 -0
- package/dist/commands/task/handoff-show.command.js +77 -0
- package/dist/commands/task/handoff.command.d.ts +7 -0
- package/dist/commands/task/handoff.command.d.ts.map +1 -0
- package/dist/commands/task/handoff.command.js +21 -0
- package/dist/commands/task/handoff.shared.d.ts +39 -0
- package/dist/commands/task/handoff.shared.d.ts.map +1 -0
- package/dist/commands/task/handoff.shared.js +134 -0
- package/dist/commands/task/hosted-close.command.d.ts +9 -0
- package/dist/commands/task/hosted-close.command.d.ts.map +1 -0
- package/dist/commands/task/hosted-close.command.js +190 -0
- package/dist/commands/task/hosted-merge-sync.d.ts +40 -0
- package/dist/commands/task/hosted-merge-sync.d.ts.map +1 -0
- package/dist/commands/task/hosted-merge-sync.js +277 -0
- package/dist/commands/task/list.d.ts.map +1 -1
- package/dist/commands/task/list.js +7 -24
- package/dist/commands/task/new.d.ts.map +1 -1
- package/dist/commands/task/new.js +26 -6
- package/dist/commands/task/next.d.ts.map +1 -1
- package/dist/commands/task/next.js +10 -28
- package/dist/commands/task/normalize.command.d.ts +1 -0
- package/dist/commands/task/normalize.command.d.ts.map +1 -1
- package/dist/commands/task/normalize.command.js +12 -0
- package/dist/commands/task/normalize.d.ts +1 -0
- package/dist/commands/task/normalize.d.ts.map +1 -1
- package/dist/commands/task/normalize.js +21 -9
- package/dist/commands/task/plan.command.d.ts +3 -4
- package/dist/commands/task/plan.command.d.ts.map +1 -1
- package/dist/commands/task/plan.command.js +6 -12
- package/dist/commands/task/plan.d.ts.map +1 -1
- package/dist/commands/task/plan.js +96 -103
- package/dist/commands/task/reclaim.command.d.ts +11 -0
- package/dist/commands/task/reclaim.command.d.ts.map +1 -0
- package/dist/commands/task/reclaim.command.js +102 -0
- package/dist/commands/task/resume-context.command.d.ts +9 -0
- package/dist/commands/task/resume-context.command.d.ts.map +1 -0
- package/dist/commands/task/resume-context.command.js +60 -0
- package/dist/commands/task/run-cancel.command.d.ts +6 -0
- package/dist/commands/task/run-cancel.command.d.ts.map +1 -0
- package/dist/commands/task/run-cancel.command.js +45 -0
- package/dist/commands/task/run-cancel.spec.d.ts +7 -0
- package/dist/commands/task/run-cancel.spec.d.ts.map +1 -0
- package/dist/commands/task/run-cancel.spec.js +20 -0
- package/dist/commands/task/run-resume.command.d.ts +6 -0
- package/dist/commands/task/run-resume.command.d.ts.map +1 -0
- package/dist/commands/task/run-resume.command.js +55 -0
- package/dist/commands/task/run-resume.spec.d.ts +7 -0
- package/dist/commands/task/run-resume.spec.d.ts.map +1 -0
- package/dist/commands/task/run-resume.spec.js +20 -0
- package/dist/commands/task/run-retry.command.d.ts +6 -0
- package/dist/commands/task/run-retry.command.d.ts.map +1 -0
- package/dist/commands/task/run-retry.command.js +56 -0
- package/dist/commands/task/run-retry.spec.d.ts +7 -0
- package/dist/commands/task/run-retry.spec.d.ts.map +1 -0
- package/dist/commands/task/run-retry.spec.js +20 -0
- package/dist/commands/task/run-show.command.d.ts +6 -0
- package/dist/commands/task/run-show.command.d.ts.map +1 -0
- package/dist/commands/task/run-show.command.js +133 -0
- package/dist/commands/task/run-show.spec.d.ts +8 -0
- package/dist/commands/task/run-show.spec.d.ts.map +1 -0
- package/dist/commands/task/run-show.spec.js +44 -0
- package/dist/commands/task/run-tail.command.d.ts +6 -0
- package/dist/commands/task/run-tail.command.d.ts.map +1 -0
- package/dist/commands/task/run-tail.command.js +26 -0
- package/dist/commands/task/run-tail.spec.d.ts +8 -0
- package/dist/commands/task/run-tail.spec.d.ts.map +1 -0
- package/dist/commands/task/run-tail.spec.js +51 -0
- package/dist/commands/task/run-trace.command.d.ts +6 -0
- package/dist/commands/task/run-trace.command.d.ts.map +1 -0
- package/dist/commands/task/run-trace.command.js +25 -0
- package/dist/commands/task/run-trace.spec.d.ts +7 -0
- package/dist/commands/task/run-trace.spec.d.ts.map +1 -0
- package/dist/commands/task/run-trace.spec.js +31 -0
- package/dist/commands/task/run.command.d.ts +6 -0
- package/dist/commands/task/run.command.d.ts.map +1 -0
- package/dist/commands/task/run.command.js +74 -0
- package/dist/commands/task/run.spec.d.ts +7 -0
- package/dist/commands/task/run.spec.d.ts.map +1 -0
- package/dist/commands/task/run.spec.js +26 -0
- package/dist/commands/task/scaffold.d.ts.map +1 -1
- package/dist/commands/task/scaffold.js +4 -2
- package/dist/commands/task/scrub.d.ts.map +1 -1
- package/dist/commands/task/scrub.js +27 -24
- package/dist/commands/task/search.d.ts.map +1 -1
- package/dist/commands/task/search.js +21 -31
- package/dist/commands/task/set-status.d.ts.map +1 -1
- package/dist/commands/task/set-status.js +36 -152
- package/dist/commands/task/shared/dependencies.d.ts +4 -4
- package/dist/commands/task/shared/dependencies.d.ts.map +1 -1
- package/dist/commands/task/shared/dependencies.js +10 -2
- package/dist/commands/task/shared/docs.d.ts +6 -1
- package/dist/commands/task/shared/docs.d.ts.map +1 -1
- package/dist/commands/task/shared/docs.js +13 -0
- package/dist/commands/task/shared/listing.d.ts +16 -2
- package/dist/commands/task/shared/listing.d.ts.map +1 -1
- package/dist/commands/task/shared/listing.js +56 -0
- package/dist/commands/task/shared/transition-command.d.ts +15 -0
- package/dist/commands/task/shared/transition-command.d.ts.map +1 -0
- package/dist/commands/task/shared/transition-command.js +43 -0
- package/dist/commands/task/shared/transitions.d.ts +39 -0
- package/dist/commands/task/shared/transitions.d.ts.map +1 -1
- package/dist/commands/task/shared/transitions.js +62 -1
- package/dist/commands/task/shared/workflow-transition-service.d.ts +75 -0
- package/dist/commands/task/shared/workflow-transition-service.d.ts.map +1 -0
- package/dist/commands/task/shared/workflow-transition-service.js +226 -0
- package/dist/commands/task/shared.d.ts +5 -3
- package/dist/commands/task/shared.d.ts.map +1 -1
- package/dist/commands/task/shared.js +5 -3
- package/dist/commands/task/show.d.ts.map +1 -1
- package/dist/commands/task/show.js +37 -3
- package/dist/commands/task/start.d.ts.map +1 -1
- package/dist/commands/task/start.js +33 -119
- package/dist/commands/task/task.command.d.ts +3 -4
- package/dist/commands/task/task.command.d.ts.map +1 -1
- package/dist/commands/task/task.command.js +22 -37
- package/dist/commands/task/verify-record.d.ts.map +1 -1
- package/dist/commands/task/verify-record.js +16 -141
- package/dist/commands/task/verify.command.d.ts.map +1 -1
- package/dist/commands/task/verify.command.js +7 -6
- package/dist/commands/task.test-helpers.d.ts +13 -0
- package/dist/commands/task.test-helpers.d.ts.map +1 -0
- package/dist/commands/task.test-helpers.js +65 -0
- package/dist/commands/upgrade/materialize.d.ts +28 -0
- package/dist/commands/upgrade/materialize.d.ts.map +1 -0
- package/dist/commands/upgrade/materialize.js +154 -0
- package/dist/commands/upgrade/plan.d.ts +18 -0
- package/dist/commands/upgrade/plan.d.ts.map +1 -0
- package/dist/commands/upgrade/plan.js +219 -0
- package/dist/commands/upgrade/policy.d.ts +24 -0
- package/dist/commands/upgrade/policy.d.ts.map +1 -0
- package/dist/commands/upgrade/policy.js +182 -0
- package/dist/commands/upgrade/report.d.ts.map +1 -1
- package/dist/commands/upgrade/report.js +7 -5
- package/dist/commands/upgrade.d.ts.map +1 -1
- package/dist/commands/upgrade.js +154 -642
- package/dist/commands/workflow.command.d.ts +3 -4
- package/dist/commands/workflow.command.d.ts.map +1 -1
- package/dist/commands/workflow.command.js +8 -25
- package/dist/ports/task-backend-port.d.ts +3 -1
- package/dist/ports/task-backend-port.d.ts.map +1 -1
- package/dist/runner/adapters/codex.d.ts +9 -0
- package/dist/runner/adapters/codex.d.ts.map +1 -0
- package/dist/runner/adapters/codex.js +414 -0
- package/dist/runner/adapters/custom.d.ts +12 -0
- package/dist/runner/adapters/custom.d.ts.map +1 -0
- package/dist/runner/adapters/custom.js +512 -0
- package/dist/runner/adapters/index.d.ts +8 -0
- package/dist/runner/adapters/index.d.ts.map +1 -0
- package/dist/runner/adapters/index.js +15 -0
- package/dist/runner/adapters/recipe-run-profile.d.ts +8 -0
- package/dist/runner/adapters/recipe-run-profile.d.ts.map +1 -0
- package/dist/runner/adapters/recipe-run-profile.js +53 -0
- package/dist/runner/adapters/shared.d.ts +45 -0
- package/dist/runner/adapters/shared.d.ts.map +1 -0
- package/dist/runner/adapters/shared.js +58 -0
- package/dist/runner/artifacts.d.ts +31 -0
- package/dist/runner/artifacts.d.ts.map +1 -0
- package/dist/runner/artifacts.js +153 -0
- package/dist/runner/codex-approval-probe.d.ts +23 -0
- package/dist/runner/codex-approval-probe.d.ts.map +1 -0
- package/dist/runner/codex-approval-probe.js +55 -0
- package/dist/runner/codex-smoke.d.ts +11 -0
- package/dist/runner/codex-smoke.d.ts.map +1 -0
- package/dist/runner/codex-smoke.js +45 -0
- package/dist/runner/config.d.ts +6 -0
- package/dist/runner/config.d.ts.map +1 -0
- package/dist/runner/config.js +15 -0
- package/dist/runner/context/base-prompts.d.ts +10 -0
- package/dist/runner/context/base-prompts.d.ts.map +1 -0
- package/dist/runner/context/base-prompts.js +255 -0
- package/dist/runner/context/recipe-context.d.ts +17 -0
- package/dist/runner/context/recipe-context.d.ts.map +1 -0
- package/dist/runner/context/recipe-context.js +48 -0
- package/dist/runner/context/task-context.d.ts +24 -0
- package/dist/runner/context/task-context.d.ts.map +1 -0
- package/dist/runner/context/task-context.js +266 -0
- package/dist/runner/index.d.ts +12 -0
- package/dist/runner/index.d.ts.map +1 -0
- package/dist/runner/index.js +11 -0
- package/dist/runner/policy-decision.d.ts +12 -0
- package/dist/runner/policy-decision.d.ts.map +1 -0
- package/dist/runner/policy-decision.js +89 -0
- package/dist/runner/policy-display.d.ts +4 -0
- package/dist/runner/policy-display.d.ts.map +1 -0
- package/dist/runner/policy-display.js +41 -0
- package/dist/runner/process-supervision.d.ts +48 -0
- package/dist/runner/process-supervision.d.ts.map +1 -0
- package/dist/runner/process-supervision.js +490 -0
- package/dist/runner/result-manifest-policy.d.ts +9 -0
- package/dist/runner/result-manifest-policy.d.ts.map +1 -0
- package/dist/runner/result-manifest-policy.js +96 -0
- package/dist/runner/result-manifest.d.ts +30 -0
- package/dist/runner/result-manifest.d.ts.map +1 -0
- package/dist/runner/result-manifest.js +322 -0
- package/dist/runner/run-id.d.ts +2 -0
- package/dist/runner/run-id.d.ts.map +1 -0
- package/dist/runner/run-id.js +3 -0
- package/dist/runner/run-repository.d.ts +51 -0
- package/dist/runner/run-repository.d.ts.map +1 -0
- package/dist/runner/run-repository.js +222 -0
- package/dist/runner/task-run-paths.d.ts +19 -0
- package/dist/runner/task-run-paths.d.ts.map +1 -0
- package/dist/runner/task-run-paths.js +25 -0
- package/dist/runner/task-state.d.ts +9 -0
- package/dist/runner/task-state.d.ts.map +1 -0
- package/dist/runner/task-state.js +354 -0
- package/dist/runner/test-helpers.d.ts +30 -0
- package/dist/runner/test-helpers.d.ts.map +1 -0
- package/dist/runner/test-helpers.js +97 -0
- package/dist/runner/trace-artifacts.d.ts +14 -0
- package/dist/runner/trace-artifacts.d.ts.map +1 -0
- package/dist/runner/trace-artifacts.js +80 -0
- package/dist/runner/trace.d.ts +10 -0
- package/dist/runner/trace.d.ts.map +1 -0
- package/dist/runner/trace.js +37 -0
- package/dist/runner/types.d.ts +317 -0
- package/dist/runner/types.d.ts.map +1 -0
- package/dist/runner/types.js +3 -0
- package/dist/runner/usecases/scenario-materialize-task.d.ts +29 -0
- package/dist/runner/usecases/scenario-materialize-task.d.ts.map +1 -0
- package/dist/runner/usecases/scenario-materialize-task.js +151 -0
- package/dist/runner/usecases/task-run-inspect.d.ts +41 -0
- package/dist/runner/usecases/task-run-inspect.d.ts.map +1 -0
- package/dist/runner/usecases/task-run-inspect.js +74 -0
- package/dist/runner/usecases/task-run-lifecycle-cancel.d.ts +10 -0
- package/dist/runner/usecases/task-run-lifecycle-cancel.d.ts.map +1 -0
- package/dist/runner/usecases/task-run-lifecycle-cancel.js +172 -0
- package/dist/runner/usecases/task-run-lifecycle-replay.d.ts +18 -0
- package/dist/runner/usecases/task-run-lifecycle-replay.d.ts.map +1 -0
- package/dist/runner/usecases/task-run-lifecycle-replay.js +128 -0
- package/dist/runner/usecases/task-run-lifecycle-shared.d.ts +45 -0
- package/dist/runner/usecases/task-run-lifecycle-shared.d.ts.map +1 -0
- package/dist/runner/usecases/task-run-lifecycle-shared.js +172 -0
- package/dist/runner/usecases/task-run-lifecycle.d.ts +4 -0
- package/dist/runner/usecases/task-run-lifecycle.d.ts.map +1 -0
- package/dist/runner/usecases/task-run-lifecycle.js +2 -0
- package/dist/runner/usecases/task-run.d.ts +32 -0
- package/dist/runner/usecases/task-run.d.ts.map +1 -0
- package/dist/runner/usecases/task-run.js +278 -0
- package/dist/shared/agent-emoji.d.ts.map +1 -1
- package/dist/shared/agent-emoji.js +1 -0
- package/dist/shared/errors.d.ts +1 -1
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/guards.d.ts.map +1 -1
- package/dist/shared/guards.js +1 -0
- package/dist/shared/repo-cli-version.d.ts.map +1 -1
- package/dist/shared/repo-cli-version.js +7 -5
- package/dist/shared/task-doc-conflicts.d.ts +12 -0
- package/dist/shared/task-doc-conflicts.d.ts.map +1 -0
- package/dist/shared/task-doc-conflicts.js +40 -0
- package/dist/shared/task-doc-state.d.ts +10 -0
- package/dist/shared/task-doc-state.d.ts.map +1 -0
- package/dist/shared/task-doc-state.js +15 -0
- package/dist/test-helpers/fs.d.ts +2 -0
- package/dist/test-helpers/fs.d.ts.map +1 -0
- package/dist/test-helpers/fs.js +9 -0
- package/dist/usecases/context/resolve-context.d.ts +2 -0
- package/dist/usecases/context/resolve-context.d.ts.map +1 -1
- package/dist/usecases/context/resolve-context.js +4 -1
- package/dist/usecases/task/task-list-usecase.d.ts.map +1 -1
- package/dist/usecases/task/task-list-usecase.js +2 -8
- package/dist/workflow-runtime/fix.d.ts +9 -1
- package/dist/workflow-runtime/fix.d.ts.map +1 -1
- package/dist/workflow-runtime/fix.js +9 -1
- package/package.json +3 -2
- package/dist/backends/task-backend.test-helpers.d.ts +0 -4
- package/dist/backends/task-backend.test-helpers.d.ts.map +0 -1
- package/dist/backends/task-backend.test-helpers.js +0 -33
- package/dist/cli/run-cli/catalog.d.ts +0 -7
- package/dist/cli/run-cli/catalog.d.ts.map +0 -1
- package/dist/cli/run-cli/catalog.js +0 -22
- package/dist/cli/run-cli.core.pr-flow.test-helpers.d.ts +0 -3
- package/dist/cli/run-cli.core.pr-flow.test-helpers.d.ts.map +0 -1
- package/dist/cli/run-cli.core.pr-flow.test-helpers.js +0 -41
- package/dist/cli/run-cli.core.tasks.test-helpers.d.ts +0 -2
- package/dist/cli/run-cli.core.tasks.test-helpers.d.ts.map +0 -1
- package/dist/cli/run-cli.core.tasks.test-helpers.js +0 -6
- package/dist/commands/block.command.d.ts +0 -4
- package/dist/commands/block.command.d.ts.map +0 -1
- package/dist/commands/block.command.js +0 -2
- package/dist/commands/doctor.command.d.ts +0 -3
- package/dist/commands/doctor.command.d.ts.map +0 -1
- package/dist/commands/doctor.command.js +0 -2
- package/dist/commands/finish.command.d.ts +0 -4
- package/dist/commands/finish.command.d.ts.map +0 -1
- package/dist/commands/finish.command.js +0 -2
- package/dist/commands/recipes/install.command.d.ts +0 -3
- package/dist/commands/recipes/install.command.d.ts.map +0 -1
- package/dist/commands/recipes/install.command.js +0 -2
- package/dist/commands/start.command.d.ts +0 -4
- package/dist/commands/start.command.d.ts.map +0 -1
- package/dist/commands/start.command.js +0 -2
- package/dist/commands/task/list.command.d.ts +0 -4
- package/dist/commands/task/list.command.d.ts.map +0 -1
- package/dist/commands/task/list.command.js +0 -2
- package/dist/commands/task/next.command.d.ts +0 -4
- package/dist/commands/task/next.command.d.ts.map +0 -1
- package/dist/commands/task/next.command.js +0 -2
- package/dist/commands/task/search.command.d.ts +0 -4
- package/dist/commands/task/search.command.d.ts.map +0 -1
- package/dist/commands/task/search.command.js +0 -2
- package/dist/commands/task/show.command.d.ts +0 -4
- package/dist/commands/task/show.command.d.ts.map +0 -1
- package/dist/commands/task/show.command.js +0 -2
- package/dist/commands/verify.command.d.ts +0 -4
- package/dist/commands/verify.command.d.ts.map +0 -1
- package/dist/commands/verify.command.js +0 -2
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import type { TaskData, TaskWriteOptions } from "../../backends/task-backend.js";
|
|
1
|
+
import type { TaskData, TaskSummary, TaskWriteOptions } from "../../backends/task-backend.js";
|
|
2
2
|
import type { TaskBackendPort } from "../../ports/task-backend-port.js";
|
|
3
3
|
import type { CommandContext } from "../../commands/shared/task-backend.js";
|
|
4
4
|
export declare class TaskBackendAdapter implements TaskBackendPort {
|
|
5
5
|
private readonly ctx;
|
|
6
|
+
readonly listProjectionTasks?: () => Promise<TaskSummary[]>;
|
|
6
7
|
constructor(ctx: CommandContext);
|
|
8
|
+
get capabilities(): TaskBackendPort["capabilities"];
|
|
7
9
|
listTasks(): Promise<TaskData[]>;
|
|
8
10
|
getTask(id: string): Promise<TaskData | null>;
|
|
9
11
|
writeTask(task: TaskData, opts?: TaskWriteOptions): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-backend-adapter.d.ts","sourceRoot":"","sources":["../../../src/adapters/task-backend/task-backend-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"task-backend-adapter.d.ts","sourceRoot":"","sources":["../../../src/adapters/task-backend/task-backend-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC9F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AAE5E,qBAAa,kBAAmB,YAAW,eAAe;IACxD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAiB;IACrC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;gBAEhD,GAAG,EAAE,cAAc;IAO/B,IAAI,YAAY,IAAI,eAAe,CAAC,cAAc,CAAC,CASlD;IAED,SAAS,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAIhC,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAI7C,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjE,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAUtD"}
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
export class TaskBackendAdapter {
|
|
2
2
|
ctx;
|
|
3
|
+
listProjectionTasks;
|
|
3
4
|
constructor(ctx) {
|
|
4
5
|
this.ctx = ctx;
|
|
6
|
+
this.listProjectionTasks = ctx.taskBackend.listProjectionTasks
|
|
7
|
+
? () => ctx.taskBackend.listProjectionTasks()
|
|
8
|
+
: undefined;
|
|
9
|
+
}
|
|
10
|
+
get capabilities() {
|
|
11
|
+
const { canonical_source, projection, projection_read_mode, reads_from_projection_by_default } = this.ctx.taskBackend.capabilities;
|
|
12
|
+
return {
|
|
13
|
+
canonical_source,
|
|
14
|
+
projection,
|
|
15
|
+
projection_read_mode,
|
|
16
|
+
reads_from_projection_by_default,
|
|
17
|
+
};
|
|
5
18
|
}
|
|
6
19
|
listTasks() {
|
|
7
20
|
return this.ctx.taskBackend.listTasks();
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type TaskWriteOptions } from "./shared.js";
|
|
2
|
+
import { type LocalBackendContext } from "./local-backend-state.js";
|
|
3
|
+
export declare function setLocalTaskDoc(context: LocalBackendContext, taskId: string, doc: string, updatedBy?: string, opts?: TaskWriteOptions): Promise<void>;
|
|
4
|
+
export declare function touchLocalTaskDocMetadata(context: LocalBackendContext, taskId: string, updatedBy?: string, opts?: TaskWriteOptions): Promise<void>;
|
|
5
|
+
//# sourceMappingURL=local-backend-doc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-backend-doc.d.ts","sourceRoot":"","sources":["../../../src/backends/task-backend/local-backend-doc.ts"],"names":[],"mappings":"AAmBA,OAAO,EAML,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AACrB,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,0BAA0B,CAAC;AAElC,wBAAsB,eAAe,CACnC,OAAO,EAAE,mBAAmB,EAC5B,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,SAAS,CAAC,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,gBAAgB,GACtB,OAAO,CAAC,IAAI,CAAC,CAmEf;AAED,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE,mBAAmB,EAC5B,MAAM,EAAE,MAAM,EACd,SAAS,CAAC,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,gBAAgB,GACtB,OAAO,CAAC,IAAI,CAAC,CAuCf"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
2
|
+
import { applyTaskDocMutations, docChanged, parseTaskReadme, renderTaskReadme, taskDocToSectionMap, taskReadmePath, validateTaskReadmeFrontmatter, withTaskReadmeFrontmatterDefaults, } from "@agentplaneorg/core";
|
|
3
|
+
import { assertExpectedTaskDoc, assertExpectedTaskSection, } from "../../shared/task-doc-conflicts.js";
|
|
4
|
+
import { writeTextIfChanged } from "../../shared/write-if-changed.js";
|
|
5
|
+
import { normalizeDocVersion, nowIso, resolveDocUpdatedByFromFrontmatter, BackendError, mergeTaskDoc, } from "./shared.js";
|
|
6
|
+
import { assertExpectedRevision, storedRevisionFromFrontmatter, taskDocStateFromFrontmatter, } from "./local-backend-state.js";
|
|
7
|
+
export async function setLocalTaskDoc(context, taskId, doc, updatedBy, opts) {
|
|
8
|
+
const readmePath = taskReadmePath(context.root, taskId);
|
|
9
|
+
const text = await readFile(readmePath, "utf8");
|
|
10
|
+
const parsed = parseTaskReadme(text);
|
|
11
|
+
assertExpectedRevision({
|
|
12
|
+
taskId,
|
|
13
|
+
expectedRevision: opts?.expectedRevision,
|
|
14
|
+
currentRevision: storedRevisionFromFrontmatter(parsed.frontmatter, 1),
|
|
15
|
+
});
|
|
16
|
+
const docText = String(doc ?? "");
|
|
17
|
+
const currentDoc = taskDocStateFromFrontmatter(parsed.frontmatter, parsed.body).doc;
|
|
18
|
+
if (opts?.expectedCurrentDoc !== undefined) {
|
|
19
|
+
assertExpectedTaskDoc({ taskId, currentDoc, expectedDoc: opts.expectedCurrentDoc });
|
|
20
|
+
}
|
|
21
|
+
if (opts?.expectedCurrentText !== undefined) {
|
|
22
|
+
if (!opts.expectedSection) {
|
|
23
|
+
throw new BackendError("expectedSection is required when expectedCurrentText is set", "E_BACKEND");
|
|
24
|
+
}
|
|
25
|
+
assertExpectedTaskSection({
|
|
26
|
+
taskId,
|
|
27
|
+
currentDoc,
|
|
28
|
+
section: opts.expectedSection,
|
|
29
|
+
expectedText: opts.expectedCurrentText,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
let body = parsed.body;
|
|
33
|
+
const frontmatter = {
|
|
34
|
+
...parsed.frontmatter,
|
|
35
|
+
id: typeof parsed.frontmatter.id === "string" && parsed.frontmatter.id.trim().length > 0
|
|
36
|
+
? parsed.frontmatter.id
|
|
37
|
+
: taskId,
|
|
38
|
+
};
|
|
39
|
+
const currentDocVersion = normalizeDocVersion(frontmatter.doc_version);
|
|
40
|
+
if (docChanged(currentDoc, docText) || !frontmatter.doc_updated_at) {
|
|
41
|
+
const applied = applyTaskDocMutations(taskDocStateFromFrontmatter(frontmatter, parsed.body), [
|
|
42
|
+
{ kind: "replace-doc", doc: docText },
|
|
43
|
+
{
|
|
44
|
+
kind: "touch-doc-meta",
|
|
45
|
+
updatedBy: resolveDocUpdatedByFromFrontmatter(frontmatter, updatedBy, context.updatedBy),
|
|
46
|
+
version: currentDocVersion,
|
|
47
|
+
},
|
|
48
|
+
], { now: nowIso() });
|
|
49
|
+
body = mergeTaskDoc(parsed.body, applied.doc);
|
|
50
|
+
frontmatter.doc_version = applied.doc_version;
|
|
51
|
+
frontmatter.doc_updated_at = applied.doc_updated_at;
|
|
52
|
+
frontmatter.doc_updated_by = applied.doc_updated_by;
|
|
53
|
+
frontmatter.sections = applied.sections;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
body = mergeTaskDoc(parsed.body, docText);
|
|
57
|
+
frontmatter.sections = taskDocToSectionMap(docText);
|
|
58
|
+
}
|
|
59
|
+
frontmatter.doc_version = normalizeDocVersion(frontmatter.doc_version, currentDocVersion);
|
|
60
|
+
validateTaskReadmeFrontmatter(withTaskReadmeFrontmatterDefaults(frontmatter));
|
|
61
|
+
const next = renderTaskReadme(frontmatter, body);
|
|
62
|
+
await writeTextIfChanged(readmePath, next.endsWith("\n") ? next : `${next}\n`);
|
|
63
|
+
}
|
|
64
|
+
export async function touchLocalTaskDocMetadata(context, taskId, updatedBy, opts) {
|
|
65
|
+
const readmePath = taskReadmePath(context.root, taskId);
|
|
66
|
+
const text = await readFile(readmePath, "utf8");
|
|
67
|
+
const parsed = parseTaskReadme(text);
|
|
68
|
+
assertExpectedRevision({
|
|
69
|
+
taskId,
|
|
70
|
+
expectedRevision: opts?.expectedRevision,
|
|
71
|
+
currentRevision: storedRevisionFromFrontmatter(parsed.frontmatter, 1),
|
|
72
|
+
});
|
|
73
|
+
const frontmatter = {
|
|
74
|
+
...parsed.frontmatter,
|
|
75
|
+
id: typeof parsed.frontmatter.id === "string" && parsed.frontmatter.id.trim().length > 0
|
|
76
|
+
? parsed.frontmatter.id
|
|
77
|
+
: taskId,
|
|
78
|
+
};
|
|
79
|
+
const applied = applyTaskDocMutations(taskDocStateFromFrontmatter(frontmatter, parsed.body), [
|
|
80
|
+
{
|
|
81
|
+
kind: "touch-doc-meta",
|
|
82
|
+
updatedBy: resolveDocUpdatedByFromFrontmatter(frontmatter, updatedBy, context.updatedBy),
|
|
83
|
+
version: normalizeDocVersion(frontmatter.doc_version),
|
|
84
|
+
},
|
|
85
|
+
], { now: nowIso() });
|
|
86
|
+
frontmatter.doc_version = applied.doc_version;
|
|
87
|
+
frontmatter.doc_updated_at = applied.doc_updated_at;
|
|
88
|
+
frontmatter.doc_updated_by = applied.doc_updated_by;
|
|
89
|
+
frontmatter.sections =
|
|
90
|
+
typeof frontmatter.sections === "object" &&
|
|
91
|
+
frontmatter.sections !== null &&
|
|
92
|
+
Object.keys(frontmatter.sections).length > 0
|
|
93
|
+
? frontmatter.sections
|
|
94
|
+
: applied.sections;
|
|
95
|
+
validateTaskReadmeFrontmatter(withTaskReadmeFrontmatterDefaults(frontmatter));
|
|
96
|
+
const next = renderTaskReadme(frontmatter, parsed.body || "");
|
|
97
|
+
await writeTextIfChanged(readmePath, next.endsWith("\n") ? next : `${next}\n`);
|
|
98
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type TaskData, type TaskSummary } from "./shared.js";
|
|
2
|
+
import { type LocalBackendContext } from "./local-backend-state.js";
|
|
3
|
+
export declare function listLocalTasks(context: LocalBackendContext, mode: "full" | "projection"): Promise<TaskData[] | TaskSummary[]>;
|
|
4
|
+
export declare function getLocalTask(context: LocalBackendContext, taskId: string): Promise<TaskData | null>;
|
|
5
|
+
export declare function getLocalTasks(context: LocalBackendContext, taskIds: string[]): Promise<(TaskData | null)[]>;
|
|
6
|
+
export declare function getLocalTaskDoc(context: LocalBackendContext, taskId: string): Promise<string>;
|
|
7
|
+
//# sourceMappingURL=local-backend-read.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-backend-read.d.ts","sourceRoot":"","sources":["../../../src/backends/task-backend/local-backend-read.ts"],"names":[],"mappings":"AAoBA,OAAO,EAIL,KAAK,QAAQ,EACb,KAAK,WAAW,EACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AA2CpE,wBAAsB,cAAc,CAClC,OAAO,EAAE,mBAAmB,EAC5B,IAAI,EAAE,MAAM,GAAG,YAAY,GAC1B,OAAO,CAAC,QAAQ,EAAE,GAAG,WAAW,EAAE,CAAC,CAkIrC;AAED,wBAAsB,YAAY,CAChC,OAAO,EAAE,mBAAmB,EAC5B,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC,CAiB1B;AAED,wBAAsB,aAAa,CACjC,OAAO,EAAE,mBAAmB,EAC5B,OAAO,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC,EAAE,CAAC,CAE9B;AAED,wBAAsB,eAAe,CACnC,OAAO,EAAE,mBAAmB,EAC5B,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,CAAC,CAGjB"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { readdir, readFile, stat } from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { parseTaskReadme, taskReadmePath, validateTaskReadmeFrontmatter, withTaskReadmeFrontmatterDefaults, } from "@agentplaneorg/core";
|
|
4
|
+
import { isRecord } from "../../shared/guards.js";
|
|
5
|
+
import { buildTaskIndexEntry, loadTaskIndex, resolveTaskIndexPath, saveTaskIndex, } from "../task-index.js";
|
|
6
|
+
import { mapLimit, taskRecordToData, validateTaskId, } from "./shared.js";
|
|
7
|
+
function resolveTaskFrontmatterId(frontmatter, fallbackTaskId) {
|
|
8
|
+
return typeof frontmatter.id === "string" && frontmatter.id.trim().length > 0
|
|
9
|
+
? frontmatter.id
|
|
10
|
+
: fallbackTaskId;
|
|
11
|
+
}
|
|
12
|
+
function taskDataFromParsedReadme(opts) {
|
|
13
|
+
const frontmatter = validateTaskReadmeFrontmatter(withTaskReadmeFrontmatterDefaults({
|
|
14
|
+
...opts.frontmatter,
|
|
15
|
+
id: resolveTaskFrontmatterId(opts.frontmatter, opts.taskId),
|
|
16
|
+
}));
|
|
17
|
+
return taskRecordToData({
|
|
18
|
+
id: opts.taskId,
|
|
19
|
+
frontmatter: frontmatter,
|
|
20
|
+
body: opts.body,
|
|
21
|
+
readmePath: opts.readmePath,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
async function readRequiredTask(context, taskId) {
|
|
25
|
+
const readmePath = taskReadmePath(context.root, taskId);
|
|
26
|
+
const text = await readFile(readmePath, "utf8");
|
|
27
|
+
const parsed = parseTaskReadme(text);
|
|
28
|
+
return taskDataFromParsedReadme({
|
|
29
|
+
taskId,
|
|
30
|
+
readmePath,
|
|
31
|
+
frontmatter: parsed.frontmatter,
|
|
32
|
+
body: parsed.body,
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
export async function listLocalTasks(context, mode) {
|
|
36
|
+
const projectionOnly = mode === "projection";
|
|
37
|
+
const tasks = [];
|
|
38
|
+
const warnings = [];
|
|
39
|
+
const entries = await readdir(context.root, { withFileTypes: true }).catch(() => []);
|
|
40
|
+
const indexPath = resolveTaskIndexPath(context.root);
|
|
41
|
+
const cachedIndex = await loadTaskIndex(indexPath);
|
|
42
|
+
const cachedEntryByPath = new Map();
|
|
43
|
+
if (cachedIndex) {
|
|
44
|
+
for (const [readmePath, taskId] of Object.entries(cachedIndex.byPath)) {
|
|
45
|
+
const entry = cachedIndex.byId[taskId];
|
|
46
|
+
if (entry)
|
|
47
|
+
cachedEntryByPath.set(readmePath, entry);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
let indexDirty = cachedIndex === null;
|
|
51
|
+
const nextById = {};
|
|
52
|
+
const nextByPath = {};
|
|
53
|
+
const seen = new Set();
|
|
54
|
+
const dirs = entries
|
|
55
|
+
.filter((entry) => entry.isDirectory())
|
|
56
|
+
.map((entry) => entry.name)
|
|
57
|
+
.toSorted();
|
|
58
|
+
const results = await mapLimit(dirs, 32, async (dirName) => {
|
|
59
|
+
const readmePath = path.join(context.root, dirName, "README.md");
|
|
60
|
+
let stats;
|
|
61
|
+
try {
|
|
62
|
+
stats = await stat(readmePath);
|
|
63
|
+
}
|
|
64
|
+
catch {
|
|
65
|
+
warnings.push(`skip:${dirName}: missing_or_unreadable_readme`);
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
if (!stats.isFile())
|
|
69
|
+
return null;
|
|
70
|
+
const cached = cachedEntryByPath.get(readmePath);
|
|
71
|
+
if (projectionOnly && cached?.mtimeMs === stats.mtimeMs) {
|
|
72
|
+
return { output: cached.task, index: cached };
|
|
73
|
+
}
|
|
74
|
+
if (cached?.mtimeMs !== stats.mtimeMs) {
|
|
75
|
+
indexDirty = true;
|
|
76
|
+
}
|
|
77
|
+
let text = "";
|
|
78
|
+
try {
|
|
79
|
+
text = await readFile(readmePath, "utf8");
|
|
80
|
+
}
|
|
81
|
+
catch {
|
|
82
|
+
warnings.push(`skip:${dirName}: unreadable_readme`);
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
let parsed;
|
|
86
|
+
try {
|
|
87
|
+
parsed = parseTaskReadme(text);
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
warnings.push(`skip:${dirName}: invalid_readme_frontmatter`);
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
const frontmatter = parsed.frontmatter;
|
|
94
|
+
if (!isRecord(frontmatter) || Object.keys(frontmatter).length === 0) {
|
|
95
|
+
warnings.push(`skip:${dirName}: empty_or_invalid_frontmatter`);
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
const taskId = resolveTaskFrontmatterId(frontmatter, dirName).trim();
|
|
99
|
+
let task;
|
|
100
|
+
try {
|
|
101
|
+
task = taskDataFromParsedReadme({
|
|
102
|
+
taskId,
|
|
103
|
+
readmePath,
|
|
104
|
+
frontmatter,
|
|
105
|
+
body: parsed.body,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
catch {
|
|
109
|
+
warnings.push(`skip:${dirName}: invalid_readme_frontmatter`);
|
|
110
|
+
return null;
|
|
111
|
+
}
|
|
112
|
+
const index = buildTaskIndexEntry(task, readmePath, stats.mtimeMs);
|
|
113
|
+
return {
|
|
114
|
+
output: projectionOnly ? index.task : task,
|
|
115
|
+
index,
|
|
116
|
+
};
|
|
117
|
+
});
|
|
118
|
+
for (const result of results) {
|
|
119
|
+
if (!result)
|
|
120
|
+
continue;
|
|
121
|
+
const taskId = result.index.task.id.trim();
|
|
122
|
+
if (taskId) {
|
|
123
|
+
validateTaskId(taskId);
|
|
124
|
+
if (seen.has(taskId))
|
|
125
|
+
throw new Error(`Duplicate task id in local backend: ${taskId}`);
|
|
126
|
+
seen.add(taskId);
|
|
127
|
+
}
|
|
128
|
+
tasks.push(result.output);
|
|
129
|
+
if (taskId) {
|
|
130
|
+
nextById[taskId] = result.index;
|
|
131
|
+
nextByPath[result.index.readmePath] = taskId;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
if (cachedIndex && indexDirty === false) {
|
|
135
|
+
const cachedPaths = Object.keys(cachedIndex.byPath);
|
|
136
|
+
const nextPaths = Object.keys(nextByPath);
|
|
137
|
+
if (cachedPaths.length === nextPaths.length) {
|
|
138
|
+
for (const readmePath of nextPaths) {
|
|
139
|
+
if (cachedIndex.byPath[readmePath] === nextByPath[readmePath])
|
|
140
|
+
continue;
|
|
141
|
+
indexDirty = true;
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
indexDirty = true;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
if (indexDirty) {
|
|
150
|
+
try {
|
|
151
|
+
await saveTaskIndex(indexPath, { schema_version: 2, byId: nextById, byPath: nextByPath });
|
|
152
|
+
}
|
|
153
|
+
catch {
|
|
154
|
+
// Best-effort cache; ignore failures.
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
context.setLastListWarnings?.(warnings);
|
|
158
|
+
return tasks;
|
|
159
|
+
}
|
|
160
|
+
export async function getLocalTask(context, taskId) {
|
|
161
|
+
const readmePath = taskReadmePath(context.root, taskId);
|
|
162
|
+
let text = "";
|
|
163
|
+
try {
|
|
164
|
+
text = await readFile(readmePath, "utf8");
|
|
165
|
+
}
|
|
166
|
+
catch (err) {
|
|
167
|
+
const code = err?.code;
|
|
168
|
+
if (code === "ENOENT")
|
|
169
|
+
return null;
|
|
170
|
+
throw err;
|
|
171
|
+
}
|
|
172
|
+
const parsed = parseTaskReadme(text);
|
|
173
|
+
return taskDataFromParsedReadme({
|
|
174
|
+
taskId,
|
|
175
|
+
readmePath,
|
|
176
|
+
frontmatter: parsed.frontmatter,
|
|
177
|
+
body: parsed.body,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
export async function getLocalTasks(context, taskIds) {
|
|
181
|
+
return await mapLimit(taskIds, 8, async (taskId) => await getLocalTask(context, taskId));
|
|
182
|
+
}
|
|
183
|
+
export async function getLocalTaskDoc(context, taskId) {
|
|
184
|
+
const task = await readRequiredTask(context, taskId);
|
|
185
|
+
return task.doc ?? "";
|
|
186
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type TaskDocMutationState } from "@agentplaneorg/core";
|
|
2
|
+
import { type TaskData } from "./shared.js";
|
|
3
|
+
export type LocalBackendContext = {
|
|
4
|
+
root: string;
|
|
5
|
+
updatedBy: string;
|
|
6
|
+
setLastListWarnings?: (warnings: string[]) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function storedRevisionFromFrontmatter(frontmatter: Record<string, unknown>, fallback: number): number;
|
|
9
|
+
export declare function assertExpectedRevision(opts: {
|
|
10
|
+
taskId: string;
|
|
11
|
+
expectedRevision?: number;
|
|
12
|
+
currentRevision: number;
|
|
13
|
+
}): void;
|
|
14
|
+
export declare function toTaskDocMutationComments(comments: unknown): TaskDocMutationState["comments"];
|
|
15
|
+
export declare function taskDocStateFromFrontmatter(frontmatter: Record<string, unknown>, body: string): TaskDocMutationState;
|
|
16
|
+
export declare function taskDocStateFromTask(task: Pick<TaskData, "comments" | "doc_updated_by" | "doc_version" | "owner">, doc: string): TaskDocMutationState;
|
|
17
|
+
//# sourceMappingURL=local-backend-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-backend-state.d.ts","sourceRoot":"","sources":["../../../src/backends/task-backend/local-backend-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAIhE,OAAO,EAAgC,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE1E,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACpD,CAAC;AAEF,wBAAgB,6BAA6B,CAC3C,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,QAAQ,EAAE,MAAM,GACf,MAAM,CAMR;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;CACzB,GAAG,IAAI,CASP;AAED,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,OAAO,GAAG,oBAAoB,CAAC,UAAU,CAAC,CAW7F;AAED,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,IAAI,EAAE,MAAM,GACX,oBAAoB,CAQtB;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,GAAG,gBAAgB,GAAG,aAAa,GAAG,OAAO,CAAC,EAC7E,GAAG,EAAE,MAAM,GACV,oBAAoB,CAQtB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { isRecord } from "../../shared/guards.js";
|
|
2
|
+
import { BackendError, extractTaskDoc } from "./shared.js";
|
|
3
|
+
export function storedRevisionFromFrontmatter(frontmatter, fallback) {
|
|
4
|
+
return Number.isInteger(frontmatter.revision) &&
|
|
5
|
+
typeof frontmatter.revision === "number" &&
|
|
6
|
+
frontmatter.revision > 0
|
|
7
|
+
? frontmatter.revision
|
|
8
|
+
: fallback;
|
|
9
|
+
}
|
|
10
|
+
export function assertExpectedRevision(opts) {
|
|
11
|
+
if (opts.expectedRevision === undefined)
|
|
12
|
+
return;
|
|
13
|
+
const expected = Math.trunc(opts.expectedRevision);
|
|
14
|
+
if (expected <= 0 || expected === opts.currentRevision)
|
|
15
|
+
return;
|
|
16
|
+
throw new BackendError(`Task revision changed concurrently: ${opts.taskId} ` +
|
|
17
|
+
`(expected revision ${expected}, current revision ${opts.currentRevision})`, "E_BACKEND");
|
|
18
|
+
}
|
|
19
|
+
export function toTaskDocMutationComments(comments) {
|
|
20
|
+
if (!Array.isArray(comments))
|
|
21
|
+
return null;
|
|
22
|
+
const normalized = comments.flatMap((entry) => {
|
|
23
|
+
if (!isRecord(entry))
|
|
24
|
+
return [];
|
|
25
|
+
return [
|
|
26
|
+
{
|
|
27
|
+
author: typeof entry.author === "string" ? entry.author : undefined,
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
});
|
|
31
|
+
return normalized.length > 0 ? normalized : null;
|
|
32
|
+
}
|
|
33
|
+
export function taskDocStateFromFrontmatter(frontmatter, body) {
|
|
34
|
+
return {
|
|
35
|
+
doc: extractTaskDoc(body),
|
|
36
|
+
doc_version: frontmatter.doc_version,
|
|
37
|
+
doc_updated_by: frontmatter.doc_updated_by,
|
|
38
|
+
owner: frontmatter.owner,
|
|
39
|
+
comments: toTaskDocMutationComments(frontmatter.comments),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function taskDocStateFromTask(task, doc) {
|
|
43
|
+
return {
|
|
44
|
+
doc,
|
|
45
|
+
doc_version: task.doc_version,
|
|
46
|
+
doc_updated_by: task.doc_updated_by,
|
|
47
|
+
owner: task.owner,
|
|
48
|
+
comments: toTaskDocMutationComments(task.comments),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type LocalBackendContext } from "./local-backend-state.js";
|
|
2
|
+
import { type TaskData, type TaskWriteOptions } from "./shared.js";
|
|
3
|
+
export declare function generateLocalTaskId(context: Pick<LocalBackendContext, "root">, opts: {
|
|
4
|
+
length: number;
|
|
5
|
+
attempts: number;
|
|
6
|
+
}): Promise<string>;
|
|
7
|
+
export declare function writeLocalTask(context: LocalBackendContext, task: TaskData, opts?: TaskWriteOptions): Promise<void>;
|
|
8
|
+
export declare function writeLocalTasks(context: LocalBackendContext, tasks: TaskData[], opts?: TaskWriteOptions): Promise<void>;
|
|
9
|
+
export declare function normalizeLocalTasks(context: LocalBackendContext): Promise<{
|
|
10
|
+
scanned: number;
|
|
11
|
+
changed: number;
|
|
12
|
+
}>;
|
|
13
|
+
export declare function exportLocalTasksJson(context: LocalBackendContext, outputPath: string): Promise<void>;
|
|
14
|
+
export declare function exportLocalProjectionSnapshot(context: LocalBackendContext, outputPath: string): Promise<void>;
|
|
15
|
+
//# sourceMappingURL=local-backend-write.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-backend-write.d.ts","sourceRoot":"","sources":["../../../src/backends/task-backend/local-backend-write.ts"],"names":[],"mappings":"AAmBA,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAgBL,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAC;AAErB,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,CAAC,EAC1C,IAAI,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,GACzC,OAAO,CAAC,MAAM,CAAC,CAmBjB;AAED,wBAAsB,cAAc,CAClC,OAAO,EAAE,mBAAmB,EAC5B,IAAI,EAAE,QAAQ,EACd,IAAI,CAAC,EAAE,gBAAgB,GACtB,OAAO,CAAC,IAAI,CAAC,CAuIf;AAED,wBAAsB,eAAe,CACnC,OAAO,EAAE,mBAAmB,EAC5B,KAAK,EAAE,QAAQ,EAAE,EACjB,IAAI,CAAC,EAAE,gBAAgB,GACtB,OAAO,CAAC,IAAI,CAAC,CAKf;AAED,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAuH/C;AAED,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,mBAAmB,EAC5B,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC,CAGf;AAED,wBAAsB,6BAA6B,CACjD,OAAO,EAAE,mBAAmB,EAC5B,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,IAAI,CAAC,CAEf"}
|