@bosun-sh/logbook 1.0.0 → 2.0.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/CHANGELOG.md +139 -0
- package/README.md +252 -272
- package/bin/logbook.cjs +18 -0
- package/dist/context/attachments.d.ts +55 -0
- package/dist/context/attachments.d.ts.map +1 -0
- package/dist/context/attachments.js +329 -0
- package/dist/context/attachments.js.map +1 -0
- package/dist/context/create.d.ts +31 -0
- package/dist/context/create.d.ts.map +1 -0
- package/dist/context/create.js +101 -0
- package/dist/context/create.js.map +1 -0
- package/dist/context/delete.d.ts +20 -0
- package/dist/context/delete.d.ts.map +1 -0
- package/dist/context/delete.js +55 -0
- package/dist/context/delete.js.map +1 -0
- package/dist/context/get.d.ts +20 -0
- package/dist/context/get.d.ts.map +1 -0
- package/dist/context/get.js +55 -0
- package/dist/context/get.js.map +1 -0
- package/dist/context/list.d.ts +30 -0
- package/dist/context/list.d.ts.map +1 -0
- package/dist/context/list.js +172 -0
- package/dist/context/list.js.map +1 -0
- package/dist/context/schema.d.ts +156 -0
- package/dist/context/schema.d.ts.map +1 -0
- package/dist/context/schema.js +34 -0
- package/dist/context/schema.js.map +1 -0
- package/dist/context/search.d.ts +27 -0
- package/dist/context/search.d.ts.map +1 -0
- package/dist/context/search.js +266 -0
- package/dist/context/search.js.map +1 -0
- package/dist/context/topics.d.ts +4 -0
- package/dist/context/topics.d.ts.map +1 -0
- package/dist/context/topics.js +54 -0
- package/dist/context/topics.js.map +1 -0
- package/dist/context/update.d.ts +29 -0
- package/dist/context/update.d.ts.map +1 -0
- package/dist/context/update.js +134 -0
- package/dist/context/update.js.map +1 -0
- package/dist/epic/cascade-delete.d.ts +30 -0
- package/dist/epic/cascade-delete.d.ts.map +1 -0
- package/dist/epic/cascade-delete.js +173 -0
- package/dist/epic/cascade-delete.js.map +1 -0
- package/dist/epic/create.d.ts +24 -0
- package/dist/epic/create.d.ts.map +1 -0
- package/dist/epic/create.js +54 -0
- package/dist/epic/create.js.map +1 -0
- package/dist/epic/delete.d.ts +21 -0
- package/dist/epic/delete.d.ts.map +1 -0
- package/dist/epic/delete.js +42 -0
- package/dist/epic/delete.js.map +1 -0
- package/dist/epic/get.d.ts +19 -0
- package/dist/epic/get.d.ts.map +1 -0
- package/dist/epic/get.js +31 -0
- package/dist/epic/get.js.map +1 -0
- package/dist/epic/list.d.ts +25 -0
- package/dist/epic/list.d.ts.map +1 -0
- package/dist/epic/list.js +114 -0
- package/dist/epic/list.js.map +1 -0
- package/dist/epic/rules.d.ts +34 -0
- package/dist/epic/rules.d.ts.map +1 -0
- package/dist/epic/rules.js +127 -0
- package/dist/epic/rules.js.map +1 -0
- package/dist/epic/schema.d.ts +85 -0
- package/dist/epic/schema.d.ts.map +1 -0
- package/dist/epic/schema.js +14 -0
- package/dist/epic/schema.js.map +1 -0
- package/dist/epic/update.d.ts +25 -0
- package/dist/epic/update.d.ts.map +1 -0
- package/dist/epic/update.js +69 -0
- package/dist/epic/update.js.map +1 -0
- package/dist/hook/list.d.ts +71 -0
- package/dist/hook/list.d.ts.map +1 -0
- package/dist/hook/list.js +364 -0
- package/dist/hook/list.js.map +1 -0
- package/dist/hook/ports.d.ts +16 -0
- package/dist/hook/ports.d.ts.map +1 -0
- package/dist/hook/ports.js +3 -0
- package/dist/hook/ports.js.map +1 -0
- package/dist/hook/run.d.ts +24 -0
- package/dist/hook/run.d.ts.map +1 -0
- package/dist/hook/run.js +185 -0
- package/dist/hook/run.js.map +1 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -0
- package/dist/plugin/hook-tools.d.ts +8 -0
- package/dist/plugin/hook-tools.d.ts.map +1 -0
- package/dist/plugin/hook-tools.js +31 -0
- package/dist/plugin/hook-tools.js.map +1 -0
- package/dist/plugin/linear-pull-tool.d.ts +20 -0
- package/dist/plugin/linear-pull-tool.d.ts.map +1 -0
- package/dist/plugin/linear-pull-tool.js +19 -0
- package/dist/plugin/linear-pull-tool.js.map +1 -0
- package/dist/plugin/linear-push-tool.d.ts +20 -0
- package/dist/plugin/linear-push-tool.d.ts.map +1 -0
- package/dist/plugin/linear-push-tool.js +27 -0
- package/dist/plugin/linear-push-tool.js.map +1 -0
- package/dist/plugin/linear-setup-tool.d.ts +2 -0
- package/dist/plugin/linear-setup-tool.d.ts.map +1 -0
- package/dist/plugin/linear-setup-tool.js +22 -0
- package/dist/plugin/linear-setup-tool.js.map +1 -0
- package/dist/plugin/linear-status-tool.d.ts +10 -0
- package/dist/plugin/linear-status-tool.d.ts.map +1 -0
- package/dist/plugin/linear-status-tool.js +10 -0
- package/dist/plugin/linear-status-tool.js.map +1 -0
- package/dist/plugin/list.d.ts +15 -0
- package/dist/plugin/list.d.ts.map +1 -0
- package/dist/plugin/list.js +87 -0
- package/dist/plugin/list.js.map +1 -0
- package/dist/plugin/public-schemas.d.ts +42 -0
- package/dist/plugin/public-schemas.d.ts.map +1 -0
- package/dist/plugin/public-schemas.js +577 -0
- package/dist/plugin/public-schemas.js.map +1 -0
- package/dist/plugin/registry.d.ts +3 -0
- package/dist/plugin/registry.d.ts.map +1 -0
- package/dist/plugin/registry.js +3 -0
- package/dist/plugin/registry.js.map +1 -0
- package/dist/plugin/results.d.ts +8 -0
- package/dist/plugin/results.d.ts.map +1 -0
- package/dist/plugin/results.js +114 -0
- package/dist/plugin/results.js.map +1 -0
- package/dist/plugin/sync-conflict-tools.d.ts +2 -0
- package/dist/plugin/sync-conflict-tools.d.ts.map +1 -0
- package/dist/plugin/sync-conflict-tools.js +5 -0
- package/dist/plugin/sync-conflict-tools.js.map +1 -0
- package/dist/plugin/tool-registry.d.ts +23 -0
- package/dist/plugin/tool-registry.d.ts.map +1 -0
- package/dist/plugin/tool-registry.js +251 -0
- package/dist/plugin/tool-registry.js.map +1 -0
- package/dist/plugin/workspace-init-tool.d.ts +2 -0
- package/dist/plugin/workspace-init-tool.d.ts.map +1 -0
- package/dist/plugin/workspace-init-tool.js +16 -0
- package/dist/plugin/workspace-init-tool.js.map +1 -0
- package/dist/plugin/workspace-status-tool.d.ts +2 -0
- package/dist/plugin/workspace-status-tool.d.ts.map +1 -0
- package/dist/plugin/workspace-status-tool.js +15 -0
- package/dist/plugin/workspace-status-tool.js.map +1 -0
- package/dist/shared/ids.d.ts +3 -0
- package/dist/shared/ids.d.ts.map +1 -0
- package/dist/shared/ids.js +15 -0
- package/dist/shared/ids.js.map +1 -0
- package/dist/shared/pagination.d.ts +19 -0
- package/dist/shared/pagination.d.ts.map +1 -0
- package/dist/shared/pagination.js +110 -0
- package/dist/shared/pagination.js.map +1 -0
- package/dist/shared/result.d.ts +20 -0
- package/dist/shared/result.d.ts.map +1 -0
- package/dist/shared/result.js +6 -0
- package/dist/shared/result.js.map +1 -0
- package/dist/shared/schema/value-objects.d.ts +363 -0
- package/dist/shared/schema/value-objects.d.ts.map +1 -0
- package/dist/shared/schema/value-objects.js +112 -0
- package/dist/shared/schema/value-objects.js.map +1 -0
- package/dist/shared/storage/atomic-write.d.ts +25 -0
- package/dist/shared/storage/atomic-write.d.ts.map +1 -0
- package/dist/shared/storage/atomic-write.js +71 -0
- package/dist/shared/storage/atomic-write.js.map +1 -0
- package/dist/shared/storage/jsonl-repository.d.ts +85 -0
- package/dist/shared/storage/jsonl-repository.d.ts.map +1 -0
- package/dist/shared/storage/jsonl-repository.js +278 -0
- package/dist/shared/storage/jsonl-repository.js.map +1 -0
- package/dist/shared/storage/transaction.d.ts +3 -0
- package/dist/shared/storage/transaction.d.ts.map +1 -0
- package/dist/shared/storage/transaction.js +22 -0
- package/dist/shared/storage/transaction.js.map +1 -0
- package/dist/shared/time.d.ts +3 -0
- package/dist/shared/time.d.ts.map +1 -0
- package/dist/shared/time.js +3 -0
- package/dist/shared/time.js.map +1 -0
- package/dist/story/cascade-delete.d.ts +22 -0
- package/dist/story/cascade-delete.d.ts.map +1 -0
- package/dist/story/cascade-delete.js +117 -0
- package/dist/story/cascade-delete.js.map +1 -0
- package/dist/story/create.d.ts +30 -0
- package/dist/story/create.d.ts.map +1 -0
- package/dist/story/create.js +69 -0
- package/dist/story/create.js.map +1 -0
- package/dist/story/delete.d.ts +21 -0
- package/dist/story/delete.d.ts.map +1 -0
- package/dist/story/delete.js +42 -0
- package/dist/story/delete.js.map +1 -0
- package/dist/story/get.d.ts +19 -0
- package/dist/story/get.d.ts.map +1 -0
- package/dist/story/get.js +31 -0
- package/dist/story/get.js.map +1 -0
- package/dist/story/hierarchy.d.ts +20 -0
- package/dist/story/hierarchy.d.ts.map +1 -0
- package/dist/story/hierarchy.js +30 -0
- package/dist/story/hierarchy.js.map +1 -0
- package/dist/story/list.d.ts +25 -0
- package/dist/story/list.d.ts.map +1 -0
- package/dist/story/list.js +118 -0
- package/dist/story/list.js.map +1 -0
- package/dist/story/rules.d.ts +34 -0
- package/dist/story/rules.d.ts.map +1 -0
- package/dist/story/rules.js +100 -0
- package/dist/story/rules.js.map +1 -0
- package/dist/story/schema.d.ts +65 -0
- package/dist/story/schema.d.ts.map +1 -0
- package/dist/story/schema.js +14 -0
- package/dist/story/schema.js.map +1 -0
- package/dist/story/update.d.ts +23 -0
- package/dist/story/update.d.ts.map +1 -0
- package/dist/story/update.js +67 -0
- package/dist/story/update.js.map +1 -0
- package/dist/sync/base-snapshot.d.ts +38 -0
- package/dist/sync/base-snapshot.d.ts.map +1 -0
- package/dist/sync/base-snapshot.js +86 -0
- package/dist/sync/base-snapshot.js.map +1 -0
- package/dist/sync/conflict-tools.d.ts +75 -0
- package/dist/sync/conflict-tools.d.ts.map +1 -0
- package/dist/sync/conflict-tools.js +53 -0
- package/dist/sync/conflict-tools.js.map +1 -0
- package/dist/sync/conflicts.d.ts +201 -0
- package/dist/sync/conflicts.d.ts.map +1 -0
- package/dist/sync/conflicts.js +526 -0
- package/dist/sync/conflicts.js.map +1 -0
- package/dist/sync/deferred-providers.d.ts +2 -0
- package/dist/sync/deferred-providers.d.ts.map +1 -0
- package/dist/sync/deferred-providers.js +6 -0
- package/dist/sync/deferred-providers.js.map +1 -0
- package/dist/sync/events.d.ts +401 -0
- package/dist/sync/events.d.ts.map +1 -0
- package/dist/sync/events.js +357 -0
- package/dist/sync/events.js.map +1 -0
- package/dist/sync/external-links.d.ts +154 -0
- package/dist/sync/external-links.d.ts.map +1 -0
- package/dist/sync/external-links.js +306 -0
- package/dist/sync/external-links.js.map +1 -0
- package/dist/sync/linear/config.d.ts +60 -0
- package/dist/sync/linear/config.d.ts.map +1 -0
- package/dist/sync/linear/config.js +302 -0
- package/dist/sync/linear/config.js.map +1 -0
- package/dist/sync/linear/mapping.d.ts +115 -0
- package/dist/sync/linear/mapping.d.ts.map +1 -0
- package/dist/sync/linear/mapping.js +159 -0
- package/dist/sync/linear/mapping.js.map +1 -0
- package/dist/sync/linear/pull.d.ts +33 -0
- package/dist/sync/linear/pull.d.ts.map +1 -0
- package/dist/sync/linear/pull.js +376 -0
- package/dist/sync/linear/pull.js.map +1 -0
- package/dist/sync/linear/push.d.ts +34 -0
- package/dist/sync/linear/push.d.ts.map +1 -0
- package/dist/sync/linear/push.js +681 -0
- package/dist/sync/linear/push.js.map +1 -0
- package/dist/sync/linear/setup.d.ts +33 -0
- package/dist/sync/linear/setup.d.ts.map +1 -0
- package/dist/sync/linear/setup.js +129 -0
- package/dist/sync/linear/setup.js.map +1 -0
- package/dist/sync/linear/status.d.ts +35 -0
- package/dist/sync/linear/status.d.ts.map +1 -0
- package/dist/sync/linear/status.js +138 -0
- package/dist/sync/linear/status.js.map +1 -0
- package/dist/sync/linear/transport.d.ts +47 -0
- package/dist/sync/linear/transport.d.ts.map +1 -0
- package/dist/sync/linear/transport.js +249 -0
- package/dist/sync/linear/transport.js.map +1 -0
- package/dist/sync/provider-port.d.ts +81 -0
- package/dist/sync/provider-port.d.ts.map +1 -0
- package/dist/sync/provider-port.js +16 -0
- package/dist/sync/provider-port.js.map +1 -0
- package/dist/sync/provider-registry.d.ts +38 -0
- package/dist/sync/provider-registry.d.ts.map +1 -0
- package/dist/sync/provider-registry.js +115 -0
- package/dist/sync/provider-registry.js.map +1 -0
- package/dist/sync/schema.d.ts +147 -0
- package/dist/sync/schema.d.ts.map +1 -0
- package/dist/sync/schema.js +28 -0
- package/dist/sync/schema.js.map +1 -0
- package/dist/task/comments.d.ts +9 -0
- package/dist/task/comments.d.ts.map +1 -0
- package/dist/task/comments.js +79 -0
- package/dist/task/comments.js.map +1 -0
- package/dist/task/create.d.ts +34 -0
- package/dist/task/create.d.ts.map +1 -0
- package/dist/task/create.js +126 -0
- package/dist/task/create.js.map +1 -0
- package/dist/task/current.d.ts +18 -0
- package/dist/task/current.d.ts.map +1 -0
- package/dist/task/current.js +105 -0
- package/dist/task/current.js.map +1 -0
- package/dist/task/edit.d.ts +22 -0
- package/dist/task/edit.d.ts.map +1 -0
- package/dist/task/edit.js +105 -0
- package/dist/task/edit.js.map +1 -0
- package/dist/task/estimate.d.ts +20 -0
- package/dist/task/estimate.d.ts.map +1 -0
- package/dist/task/estimate.js +141 -0
- package/dist/task/estimate.js.map +1 -0
- package/dist/task/get.d.ts +13 -0
- package/dist/task/get.d.ts.map +1 -0
- package/dist/task/get.js +29 -0
- package/dist/task/get.js.map +1 -0
- package/dist/task/hierarchy.d.ts +18 -0
- package/dist/task/hierarchy.d.ts.map +1 -0
- package/dist/task/hierarchy.js +56 -0
- package/dist/task/hierarchy.js.map +1 -0
- package/dist/task/lifecycle.d.ts +14 -0
- package/dist/task/lifecycle.d.ts.map +1 -0
- package/dist/task/lifecycle.js +80 -0
- package/dist/task/lifecycle.js.map +1 -0
- package/dist/task/list.d.ts +24 -0
- package/dist/task/list.d.ts.map +1 -0
- package/dist/task/list.js +116 -0
- package/dist/task/list.js.map +1 -0
- package/dist/task/model-assignment.d.ts +33 -0
- package/dist/task/model-assignment.d.ts.map +1 -0
- package/dist/task/model-assignment.js +145 -0
- package/dist/task/model-assignment.js.map +1 -0
- package/dist/task/ordering.d.ts +4 -0
- package/dist/task/ordering.d.ts.map +1 -0
- package/dist/task/ordering.js +14 -0
- package/dist/task/ordering.js.map +1 -0
- package/dist/task/ports.d.ts +37 -0
- package/dist/task/ports.d.ts.map +1 -0
- package/dist/task/ports.js +3 -0
- package/dist/task/ports.js.map +1 -0
- package/dist/task/schema.d.ts +447 -0
- package/dist/task/schema.d.ts.map +1 -0
- package/dist/task/schema.js +35 -0
- package/dist/task/schema.js.map +1 -0
- package/dist/task/session-assignment.d.ts +23 -0
- package/dist/task/session-assignment.d.ts.map +1 -0
- package/dist/task/session-assignment.js +197 -0
- package/dist/task/session-assignment.js.map +1 -0
- package/dist/task/session-registry.d.ts +8 -0
- package/dist/task/session-registry.d.ts.map +1 -0
- package/dist/task/session-registry.js +3 -0
- package/dist/task/session-registry.js.map +1 -0
- package/dist/task/update.d.ts +23 -0
- package/dist/task/update.d.ts.map +1 -0
- package/dist/task/update.js +92 -0
- package/dist/task/update.js.map +1 -0
- package/dist/task/v1-compat.d.ts +94 -0
- package/dist/task/v1-compat.d.ts.map +1 -0
- package/dist/task/v1-compat.js +181 -0
- package/dist/task/v1-compat.js.map +1 -0
- package/dist/workspace/bin-cli.d.ts +2 -0
- package/dist/workspace/bin-cli.d.ts.map +1 -0
- package/dist/workspace/bin-cli.js +36 -0
- package/dist/workspace/bin-cli.js.map +1 -0
- package/dist/workspace/cli-adapter.d.ts +16 -0
- package/dist/workspace/cli-adapter.d.ts.map +1 -0
- package/dist/workspace/cli-adapter.js +229 -0
- package/dist/workspace/cli-adapter.js.map +1 -0
- package/dist/workspace/cli-commands.d.ts +11 -0
- package/dist/workspace/cli-commands.d.ts.map +1 -0
- package/dist/workspace/cli-commands.js +12 -0
- package/dist/workspace/cli-commands.js.map +1 -0
- package/dist/workspace/duckdb-index.d.ts +56 -0
- package/dist/workspace/duckdb-index.d.ts.map +1 -0
- package/dist/workspace/duckdb-index.js +178 -0
- package/dist/workspace/duckdb-index.js.map +1 -0
- package/dist/workspace/hook-templates/need-info-notify/config.json +10 -0
- package/dist/workspace/hook-templates/need-info-notify/script.mjs +68 -0
- package/dist/workspace/hook-templates/review-spawn/config.json +10 -0
- package/dist/workspace/hook-templates/review-spawn/script.mjs +100 -0
- package/dist/workspace/init-onboarding.d.ts +9 -0
- package/dist/workspace/init-onboarding.d.ts.map +1 -0
- package/dist/workspace/init-onboarding.js +259 -0
- package/dist/workspace/init-onboarding.js.map +1 -0
- package/dist/workspace/init.d.ts +20 -0
- package/dist/workspace/init.d.ts.map +1 -0
- package/dist/workspace/init.js +288 -0
- package/dist/workspace/init.js.map +1 -0
- package/dist/workspace/layers.d.ts +127 -0
- package/dist/workspace/layers.d.ts.map +1 -0
- package/dist/workspace/layers.js +50 -0
- package/dist/workspace/layers.js.map +1 -0
- package/dist/workspace/mcp-server.d.ts +28 -0
- package/dist/workspace/mcp-server.d.ts.map +1 -0
- package/dist/workspace/mcp-server.js +190 -0
- package/dist/workspace/mcp-server.js.map +1 -0
- package/dist/workspace/mcp-stdio.d.ts +2 -0
- package/dist/workspace/mcp-stdio.d.ts.map +1 -0
- package/dist/workspace/mcp-stdio.js +66 -0
- package/dist/workspace/mcp-stdio.js.map +1 -0
- package/dist/workspace/mcp-tools.d.ts +24 -0
- package/dist/workspace/mcp-tools.d.ts.map +1 -0
- package/dist/workspace/mcp-tools.js +43 -0
- package/dist/workspace/mcp-tools.js.map +1 -0
- package/dist/workspace/migrate-v1.d.ts +12 -0
- package/dist/workspace/migrate-v1.d.ts.map +1 -0
- package/dist/workspace/migrate-v1.js +301 -0
- package/dist/workspace/migrate-v1.js.map +1 -0
- package/dist/workspace/ohtools-app.d.ts +3 -0
- package/dist/workspace/ohtools-app.d.ts.map +1 -0
- package/dist/workspace/ohtools-app.js +10 -0
- package/dist/workspace/ohtools-app.js.map +1 -0
- package/dist/workspace/repositories.d.ts +25 -0
- package/dist/workspace/repositories.d.ts.map +1 -0
- package/dist/workspace/repositories.js +76 -0
- package/dist/workspace/repositories.js.map +1 -0
- package/dist/workspace/runtime.d.ts +123 -0
- package/dist/workspace/runtime.d.ts.map +1 -0
- package/dist/workspace/runtime.js +4 -0
- package/dist/workspace/runtime.js.map +1 -0
- package/dist/workspace/session-liveness.d.ts +6 -0
- package/dist/workspace/session-liveness.d.ts.map +1 -0
- package/dist/workspace/session-liveness.js +3 -0
- package/dist/workspace/session-liveness.js.map +1 -0
- package/dist/workspace/status.d.ts +46 -0
- package/dist/workspace/status.d.ts.map +1 -0
- package/dist/workspace/status.js +345 -0
- package/dist/workspace/status.js.map +1 -0
- package/dist/workspace/storage-layout.d.ts +19 -0
- package/dist/workspace/storage-layout.d.ts.map +1 -0
- package/dist/workspace/storage-layout.js +55 -0
- package/dist/workspace/storage-layout.js.map +1 -0
- package/dist/workspace/storage-paths.d.ts +16 -0
- package/dist/workspace/storage-paths.d.ts.map +1 -0
- package/dist/workspace/storage-paths.js +15 -0
- package/dist/workspace/storage-paths.js.map +1 -0
- package/dist/workspace/v1-cli-aliases.d.ts +18 -0
- package/dist/workspace/v1-cli-aliases.d.ts.map +1 -0
- package/dist/workspace/v1-cli-aliases.js +223 -0
- package/dist/workspace/v1-cli-aliases.js.map +1 -0
- package/dist/workspace/v1-cli-task.d.ts +2 -0
- package/dist/workspace/v1-cli-task.d.ts.map +1 -0
- package/dist/workspace/v1-cli-task.js +53 -0
- package/dist/workspace/v1-cli-task.js.map +1 -0
- package/package.json +29 -12
- package/quickstart.md +163 -0
- package/hooks/need-info-notify/config.yml +0 -3
- package/hooks/need-info-notify/script.ts +0 -69
- package/hooks/review-spawn/config.yml +0 -3
- package/hooks/review-spawn/script.ts +0 -96
- package/src/cli/init.ts +0 -90
- package/src/domain/fibonacci.ts +0 -39
- package/src/domain/kTokens.ts +0 -65
- package/src/domain/status-machine.ts +0 -49
- package/src/domain/types.ts +0 -66
- package/src/hook/hook-executor.ts +0 -70
- package/src/hook/ports.ts +0 -16
- package/src/infra/hook-config-loader.ts +0 -111
- package/src/infra/jsonl-task-repository.ts +0 -157
- package/src/infra/logger.ts +0 -40
- package/src/infra/pid-session-registry.ts +0 -67
- package/src/mcp/error-codes.ts +0 -213
- package/src/mcp/server.ts +0 -413
- package/src/mcp/session.ts +0 -1
- package/src/mcp/tool-create-task.ts +0 -28
- package/src/mcp/tool-current-task.ts +0 -19
- package/src/mcp/tool-edit-task.ts +0 -40
- package/src/mcp/tool-list-tasks.ts +0 -34
- package/src/mcp/tool-update-task.ts +0 -55
- package/src/task/create-task.ts +0 -67
- package/src/task/current-task.ts +0 -111
- package/src/task/edit-task.ts +0 -59
- package/src/task/list-tasks.ts +0 -35
- package/src/task/ports.ts +0 -15
- package/src/task/session-registry.ts +0 -9
- package/src/task/update-task.ts +0 -160
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const TaskSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
schemaVersion: z.ZodLiteral<"2">;
|
|
5
|
+
createdAt: z.ZodString;
|
|
6
|
+
updatedAt: z.ZodString;
|
|
7
|
+
deletedAt: z.ZodOptional<z.ZodString>;
|
|
8
|
+
} & {
|
|
9
|
+
kind: z.ZodLiteral<"task">;
|
|
10
|
+
epicId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
storyId: z.ZodOptional<z.ZodString>;
|
|
12
|
+
project: z.ZodString;
|
|
13
|
+
milestone: z.ZodString;
|
|
14
|
+
title: z.ZodEffects<z.ZodString, string, string>;
|
|
15
|
+
description: z.ZodString;
|
|
16
|
+
definitionOfReady: z.ZodOptional<z.ZodString>;
|
|
17
|
+
definitionOfDone: z.ZodEffects<z.ZodString, string, string>;
|
|
18
|
+
status: z.ZodEnum<["backlog", "todo", "in_progress", "need_info", "blocked", "pending_review", "done", "canceled"]>;
|
|
19
|
+
priority: z.ZodNumber;
|
|
20
|
+
assignee: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
id: z.ZodString;
|
|
22
|
+
title: z.ZodEffects<z.ZodString, string, string>;
|
|
23
|
+
description: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, "strict", z.ZodTypeAny, {
|
|
25
|
+
id: string;
|
|
26
|
+
title: string;
|
|
27
|
+
description?: string | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
id: string;
|
|
30
|
+
title: string;
|
|
31
|
+
description?: string | undefined;
|
|
32
|
+
}>>;
|
|
33
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
34
|
+
model: z.ZodOptional<z.ZodObject<{
|
|
35
|
+
id: z.ZodString;
|
|
36
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
37
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
38
|
+
}, "strict", z.ZodTypeAny, {
|
|
39
|
+
id: string;
|
|
40
|
+
provider?: string | undefined;
|
|
41
|
+
reason?: string | undefined;
|
|
42
|
+
}, {
|
|
43
|
+
id: string;
|
|
44
|
+
provider?: string | undefined;
|
|
45
|
+
reason?: string | undefined;
|
|
46
|
+
}>>;
|
|
47
|
+
phaseModelOverrides: z.ZodObject<{
|
|
48
|
+
plan: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
id: z.ZodString;
|
|
50
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
51
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
52
|
+
}, "strict", z.ZodTypeAny, {
|
|
53
|
+
id: string;
|
|
54
|
+
provider?: string | undefined;
|
|
55
|
+
reason?: string | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
id: string;
|
|
58
|
+
provider?: string | undefined;
|
|
59
|
+
reason?: string | undefined;
|
|
60
|
+
}>>;
|
|
61
|
+
test: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
64
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
65
|
+
}, "strict", z.ZodTypeAny, {
|
|
66
|
+
id: string;
|
|
67
|
+
provider?: string | undefined;
|
|
68
|
+
reason?: string | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
id: string;
|
|
71
|
+
provider?: string | undefined;
|
|
72
|
+
reason?: string | undefined;
|
|
73
|
+
}>>;
|
|
74
|
+
dev: z.ZodOptional<z.ZodObject<{
|
|
75
|
+
id: z.ZodString;
|
|
76
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
77
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, "strict", z.ZodTypeAny, {
|
|
79
|
+
id: string;
|
|
80
|
+
provider?: string | undefined;
|
|
81
|
+
reason?: string | undefined;
|
|
82
|
+
}, {
|
|
83
|
+
id: string;
|
|
84
|
+
provider?: string | undefined;
|
|
85
|
+
reason?: string | undefined;
|
|
86
|
+
}>>;
|
|
87
|
+
validate: z.ZodOptional<z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
provider: z.ZodOptional<z.ZodString>;
|
|
90
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
91
|
+
}, "strict", z.ZodTypeAny, {
|
|
92
|
+
id: string;
|
|
93
|
+
provider?: string | undefined;
|
|
94
|
+
reason?: string | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
id: string;
|
|
97
|
+
provider?: string | undefined;
|
|
98
|
+
reason?: string | undefined;
|
|
99
|
+
}>>;
|
|
100
|
+
}, "strict", z.ZodTypeAny, {
|
|
101
|
+
plan?: {
|
|
102
|
+
id: string;
|
|
103
|
+
provider?: string | undefined;
|
|
104
|
+
reason?: string | undefined;
|
|
105
|
+
} | undefined;
|
|
106
|
+
test?: {
|
|
107
|
+
id: string;
|
|
108
|
+
provider?: string | undefined;
|
|
109
|
+
reason?: string | undefined;
|
|
110
|
+
} | undefined;
|
|
111
|
+
dev?: {
|
|
112
|
+
id: string;
|
|
113
|
+
provider?: string | undefined;
|
|
114
|
+
reason?: string | undefined;
|
|
115
|
+
} | undefined;
|
|
116
|
+
validate?: {
|
|
117
|
+
id: string;
|
|
118
|
+
provider?: string | undefined;
|
|
119
|
+
reason?: string | undefined;
|
|
120
|
+
} | undefined;
|
|
121
|
+
}, {
|
|
122
|
+
plan?: {
|
|
123
|
+
id: string;
|
|
124
|
+
provider?: string | undefined;
|
|
125
|
+
reason?: string | undefined;
|
|
126
|
+
} | undefined;
|
|
127
|
+
test?: {
|
|
128
|
+
id: string;
|
|
129
|
+
provider?: string | undefined;
|
|
130
|
+
reason?: string | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
dev?: {
|
|
133
|
+
id: string;
|
|
134
|
+
provider?: string | undefined;
|
|
135
|
+
reason?: string | undefined;
|
|
136
|
+
} | undefined;
|
|
137
|
+
validate?: {
|
|
138
|
+
id: string;
|
|
139
|
+
provider?: string | undefined;
|
|
140
|
+
reason?: string | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
}>;
|
|
143
|
+
estimate: z.ZodObject<{
|
|
144
|
+
predictedKTokens: z.ZodNumber;
|
|
145
|
+
complexity: z.ZodEnum<["trivial", "small", "medium", "large", "complex"]>;
|
|
146
|
+
fibonacci: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<5>, z.ZodLiteral<8>, z.ZodLiteral<13>, z.ZodLiteral<21>]>;
|
|
147
|
+
confidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
148
|
+
rationale: z.ZodOptional<z.ZodString>;
|
|
149
|
+
}, "strict", z.ZodTypeAny, {
|
|
150
|
+
predictedKTokens: number;
|
|
151
|
+
complexity: "small" | "trivial" | "medium" | "large" | "complex";
|
|
152
|
+
fibonacci: 1 | 2 | 3 | 5 | 8 | 13 | 21;
|
|
153
|
+
confidence: "medium" | "low" | "high";
|
|
154
|
+
rationale?: string | undefined;
|
|
155
|
+
}, {
|
|
156
|
+
predictedKTokens: number;
|
|
157
|
+
complexity: "small" | "trivial" | "medium" | "large" | "complex";
|
|
158
|
+
fibonacci: 1 | 2 | 3 | 5 | 8 | 13 | 21;
|
|
159
|
+
confidence: "medium" | "low" | "high";
|
|
160
|
+
rationale?: string | undefined;
|
|
161
|
+
}>;
|
|
162
|
+
currentPhase: z.ZodOptional<z.ZodEnum<["plan", "test", "dev", "validate"]>>;
|
|
163
|
+
contextEntryIds: z.ZodArray<z.ZodString, "many">;
|
|
164
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
165
|
+
id: z.ZodString;
|
|
166
|
+
title: z.ZodEffects<z.ZodString, string, string>;
|
|
167
|
+
content: z.ZodEffects<z.ZodString, string, string>;
|
|
168
|
+
kind: z.ZodEnum<["regular", "need_info", "review", "sync"]>;
|
|
169
|
+
createdAt: z.ZodString;
|
|
170
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
171
|
+
id: z.ZodString;
|
|
172
|
+
title: z.ZodEffects<z.ZodString, string, string>;
|
|
173
|
+
description: z.ZodOptional<z.ZodString>;
|
|
174
|
+
}, "strict", z.ZodTypeAny, {
|
|
175
|
+
id: string;
|
|
176
|
+
title: string;
|
|
177
|
+
description?: string | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
id: string;
|
|
180
|
+
title: string;
|
|
181
|
+
description?: string | undefined;
|
|
182
|
+
}>>;
|
|
183
|
+
replies: z.ZodArray<z.ZodObject<{
|
|
184
|
+
id: z.ZodString;
|
|
185
|
+
content: z.ZodEffects<z.ZodString, string, string>;
|
|
186
|
+
createdAt: z.ZodString;
|
|
187
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
188
|
+
id: z.ZodString;
|
|
189
|
+
title: z.ZodEffects<z.ZodString, string, string>;
|
|
190
|
+
description: z.ZodOptional<z.ZodString>;
|
|
191
|
+
}, "strict", z.ZodTypeAny, {
|
|
192
|
+
id: string;
|
|
193
|
+
title: string;
|
|
194
|
+
description?: string | undefined;
|
|
195
|
+
}, {
|
|
196
|
+
id: string;
|
|
197
|
+
title: string;
|
|
198
|
+
description?: string | undefined;
|
|
199
|
+
}>>;
|
|
200
|
+
}, "strict", z.ZodTypeAny, {
|
|
201
|
+
id: string;
|
|
202
|
+
content: string;
|
|
203
|
+
createdAt: string;
|
|
204
|
+
author?: {
|
|
205
|
+
id: string;
|
|
206
|
+
title: string;
|
|
207
|
+
description?: string | undefined;
|
|
208
|
+
} | undefined;
|
|
209
|
+
}, {
|
|
210
|
+
id: string;
|
|
211
|
+
content: string;
|
|
212
|
+
createdAt: string;
|
|
213
|
+
author?: {
|
|
214
|
+
id: string;
|
|
215
|
+
title: string;
|
|
216
|
+
description?: string | undefined;
|
|
217
|
+
} | undefined;
|
|
218
|
+
}>, "many">;
|
|
219
|
+
}, "strict", z.ZodTypeAny, {
|
|
220
|
+
id: string;
|
|
221
|
+
kind: "regular" | "need_info" | "review" | "sync";
|
|
222
|
+
title: string;
|
|
223
|
+
content: string;
|
|
224
|
+
createdAt: string;
|
|
225
|
+
replies: {
|
|
226
|
+
id: string;
|
|
227
|
+
content: string;
|
|
228
|
+
createdAt: string;
|
|
229
|
+
author?: {
|
|
230
|
+
id: string;
|
|
231
|
+
title: string;
|
|
232
|
+
description?: string | undefined;
|
|
233
|
+
} | undefined;
|
|
234
|
+
}[];
|
|
235
|
+
author?: {
|
|
236
|
+
id: string;
|
|
237
|
+
title: string;
|
|
238
|
+
description?: string | undefined;
|
|
239
|
+
} | undefined;
|
|
240
|
+
}, {
|
|
241
|
+
id: string;
|
|
242
|
+
kind: "regular" | "need_info" | "review" | "sync";
|
|
243
|
+
title: string;
|
|
244
|
+
content: string;
|
|
245
|
+
createdAt: string;
|
|
246
|
+
replies: {
|
|
247
|
+
id: string;
|
|
248
|
+
content: string;
|
|
249
|
+
createdAt: string;
|
|
250
|
+
author?: {
|
|
251
|
+
id: string;
|
|
252
|
+
title: string;
|
|
253
|
+
description?: string | undefined;
|
|
254
|
+
} | undefined;
|
|
255
|
+
}[];
|
|
256
|
+
author?: {
|
|
257
|
+
id: string;
|
|
258
|
+
title: string;
|
|
259
|
+
description?: string | undefined;
|
|
260
|
+
} | undefined;
|
|
261
|
+
}>, "many">;
|
|
262
|
+
inProgressSince: z.ZodOptional<z.ZodString>;
|
|
263
|
+
externalLinks: z.ZodArray<z.ZodObject<{
|
|
264
|
+
provider: z.ZodString;
|
|
265
|
+
externalLinkId: z.ZodString;
|
|
266
|
+
}, "strict", z.ZodTypeAny, {
|
|
267
|
+
provider: string;
|
|
268
|
+
externalLinkId: string;
|
|
269
|
+
}, {
|
|
270
|
+
provider: string;
|
|
271
|
+
externalLinkId: string;
|
|
272
|
+
}>, "many">;
|
|
273
|
+
}, "strict", z.ZodTypeAny, {
|
|
274
|
+
id: string;
|
|
275
|
+
schemaVersion: "2";
|
|
276
|
+
status: "need_info" | "backlog" | "done" | "canceled" | "in_progress" | "todo" | "blocked" | "pending_review";
|
|
277
|
+
project: string;
|
|
278
|
+
milestone: string;
|
|
279
|
+
kind: "task";
|
|
280
|
+
title: string;
|
|
281
|
+
description: string;
|
|
282
|
+
definitionOfDone: string;
|
|
283
|
+
createdAt: string;
|
|
284
|
+
updatedAt: string;
|
|
285
|
+
contextEntryIds: string[];
|
|
286
|
+
externalLinks: {
|
|
287
|
+
provider: string;
|
|
288
|
+
externalLinkId: string;
|
|
289
|
+
}[];
|
|
290
|
+
priority: number;
|
|
291
|
+
phaseModelOverrides: {
|
|
292
|
+
plan?: {
|
|
293
|
+
id: string;
|
|
294
|
+
provider?: string | undefined;
|
|
295
|
+
reason?: string | undefined;
|
|
296
|
+
} | undefined;
|
|
297
|
+
test?: {
|
|
298
|
+
id: string;
|
|
299
|
+
provider?: string | undefined;
|
|
300
|
+
reason?: string | undefined;
|
|
301
|
+
} | undefined;
|
|
302
|
+
dev?: {
|
|
303
|
+
id: string;
|
|
304
|
+
provider?: string | undefined;
|
|
305
|
+
reason?: string | undefined;
|
|
306
|
+
} | undefined;
|
|
307
|
+
validate?: {
|
|
308
|
+
id: string;
|
|
309
|
+
provider?: string | undefined;
|
|
310
|
+
reason?: string | undefined;
|
|
311
|
+
} | undefined;
|
|
312
|
+
};
|
|
313
|
+
estimate: {
|
|
314
|
+
predictedKTokens: number;
|
|
315
|
+
complexity: "small" | "trivial" | "medium" | "large" | "complex";
|
|
316
|
+
fibonacci: 1 | 2 | 3 | 5 | 8 | 13 | 21;
|
|
317
|
+
confidence: "medium" | "low" | "high";
|
|
318
|
+
rationale?: string | undefined;
|
|
319
|
+
};
|
|
320
|
+
comments: {
|
|
321
|
+
id: string;
|
|
322
|
+
kind: "regular" | "need_info" | "review" | "sync";
|
|
323
|
+
title: string;
|
|
324
|
+
content: string;
|
|
325
|
+
createdAt: string;
|
|
326
|
+
replies: {
|
|
327
|
+
id: string;
|
|
328
|
+
content: string;
|
|
329
|
+
createdAt: string;
|
|
330
|
+
author?: {
|
|
331
|
+
id: string;
|
|
332
|
+
title: string;
|
|
333
|
+
description?: string | undefined;
|
|
334
|
+
} | undefined;
|
|
335
|
+
}[];
|
|
336
|
+
author?: {
|
|
337
|
+
id: string;
|
|
338
|
+
title: string;
|
|
339
|
+
description?: string | undefined;
|
|
340
|
+
} | undefined;
|
|
341
|
+
}[];
|
|
342
|
+
deletedAt?: string | undefined;
|
|
343
|
+
epicId?: string | undefined;
|
|
344
|
+
storyId?: string | undefined;
|
|
345
|
+
definitionOfReady?: string | undefined;
|
|
346
|
+
assignee?: {
|
|
347
|
+
id: string;
|
|
348
|
+
title: string;
|
|
349
|
+
description?: string | undefined;
|
|
350
|
+
} | undefined;
|
|
351
|
+
sessionId?: string | undefined;
|
|
352
|
+
model?: {
|
|
353
|
+
id: string;
|
|
354
|
+
provider?: string | undefined;
|
|
355
|
+
reason?: string | undefined;
|
|
356
|
+
} | undefined;
|
|
357
|
+
currentPhase?: "plan" | "test" | "dev" | "validate" | undefined;
|
|
358
|
+
inProgressSince?: string | undefined;
|
|
359
|
+
}, {
|
|
360
|
+
id: string;
|
|
361
|
+
schemaVersion: "2";
|
|
362
|
+
status: "need_info" | "backlog" | "done" | "canceled" | "in_progress" | "todo" | "blocked" | "pending_review";
|
|
363
|
+
project: string;
|
|
364
|
+
milestone: string;
|
|
365
|
+
kind: "task";
|
|
366
|
+
title: string;
|
|
367
|
+
description: string;
|
|
368
|
+
definitionOfDone: string;
|
|
369
|
+
createdAt: string;
|
|
370
|
+
updatedAt: string;
|
|
371
|
+
contextEntryIds: string[];
|
|
372
|
+
externalLinks: {
|
|
373
|
+
provider: string;
|
|
374
|
+
externalLinkId: string;
|
|
375
|
+
}[];
|
|
376
|
+
priority: number;
|
|
377
|
+
phaseModelOverrides: {
|
|
378
|
+
plan?: {
|
|
379
|
+
id: string;
|
|
380
|
+
provider?: string | undefined;
|
|
381
|
+
reason?: string | undefined;
|
|
382
|
+
} | undefined;
|
|
383
|
+
test?: {
|
|
384
|
+
id: string;
|
|
385
|
+
provider?: string | undefined;
|
|
386
|
+
reason?: string | undefined;
|
|
387
|
+
} | undefined;
|
|
388
|
+
dev?: {
|
|
389
|
+
id: string;
|
|
390
|
+
provider?: string | undefined;
|
|
391
|
+
reason?: string | undefined;
|
|
392
|
+
} | undefined;
|
|
393
|
+
validate?: {
|
|
394
|
+
id: string;
|
|
395
|
+
provider?: string | undefined;
|
|
396
|
+
reason?: string | undefined;
|
|
397
|
+
} | undefined;
|
|
398
|
+
};
|
|
399
|
+
estimate: {
|
|
400
|
+
predictedKTokens: number;
|
|
401
|
+
complexity: "small" | "trivial" | "medium" | "large" | "complex";
|
|
402
|
+
fibonacci: 1 | 2 | 3 | 5 | 8 | 13 | 21;
|
|
403
|
+
confidence: "medium" | "low" | "high";
|
|
404
|
+
rationale?: string | undefined;
|
|
405
|
+
};
|
|
406
|
+
comments: {
|
|
407
|
+
id: string;
|
|
408
|
+
kind: "regular" | "need_info" | "review" | "sync";
|
|
409
|
+
title: string;
|
|
410
|
+
content: string;
|
|
411
|
+
createdAt: string;
|
|
412
|
+
replies: {
|
|
413
|
+
id: string;
|
|
414
|
+
content: string;
|
|
415
|
+
createdAt: string;
|
|
416
|
+
author?: {
|
|
417
|
+
id: string;
|
|
418
|
+
title: string;
|
|
419
|
+
description?: string | undefined;
|
|
420
|
+
} | undefined;
|
|
421
|
+
}[];
|
|
422
|
+
author?: {
|
|
423
|
+
id: string;
|
|
424
|
+
title: string;
|
|
425
|
+
description?: string | undefined;
|
|
426
|
+
} | undefined;
|
|
427
|
+
}[];
|
|
428
|
+
deletedAt?: string | undefined;
|
|
429
|
+
epicId?: string | undefined;
|
|
430
|
+
storyId?: string | undefined;
|
|
431
|
+
definitionOfReady?: string | undefined;
|
|
432
|
+
assignee?: {
|
|
433
|
+
id: string;
|
|
434
|
+
title: string;
|
|
435
|
+
description?: string | undefined;
|
|
436
|
+
} | undefined;
|
|
437
|
+
sessionId?: string | undefined;
|
|
438
|
+
model?: {
|
|
439
|
+
id: string;
|
|
440
|
+
provider?: string | undefined;
|
|
441
|
+
reason?: string | undefined;
|
|
442
|
+
} | undefined;
|
|
443
|
+
currentPhase?: "plan" | "test" | "dev" | "validate" | undefined;
|
|
444
|
+
inProgressSince?: string | undefined;
|
|
445
|
+
}>;
|
|
446
|
+
export type Task = z.infer<typeof TaskSchema>;
|
|
447
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/task/schema.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BZ,CAAA;AAEX,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AssignmentSchema, CommentSchema, DefinitionOfDoneSchema, EntityMetaSchema, ExternalLinkRefSchema, ModelAssignmentSchema, TaskEstimateSchema, TaskPhaseModelOverridesSchema, TaskPhaseSchema, TitleSchema, } from "../shared/schema/value-objects.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export const TaskSchema = EntityMetaSchema.extend({
|
|
4
|
+
kind: z.literal("task"),
|
|
5
|
+
epicId: z.string().min(1).optional(),
|
|
6
|
+
storyId: z.string().min(1).optional(),
|
|
7
|
+
project: z.string().min(1),
|
|
8
|
+
milestone: z.string().min(1),
|
|
9
|
+
title: TitleSchema,
|
|
10
|
+
description: z.string(),
|
|
11
|
+
definitionOfReady: z.string().optional(),
|
|
12
|
+
definitionOfDone: DefinitionOfDoneSchema,
|
|
13
|
+
status: z.enum([
|
|
14
|
+
"backlog",
|
|
15
|
+
"todo",
|
|
16
|
+
"in_progress",
|
|
17
|
+
"need_info",
|
|
18
|
+
"blocked",
|
|
19
|
+
"pending_review",
|
|
20
|
+
"done",
|
|
21
|
+
"canceled",
|
|
22
|
+
]),
|
|
23
|
+
priority: z.number().int(),
|
|
24
|
+
assignee: AssignmentSchema.optional(),
|
|
25
|
+
sessionId: z.string().min(1).optional(),
|
|
26
|
+
model: ModelAssignmentSchema.optional(),
|
|
27
|
+
phaseModelOverrides: TaskPhaseModelOverridesSchema,
|
|
28
|
+
estimate: TaskEstimateSchema,
|
|
29
|
+
currentPhase: TaskPhaseSchema.optional(),
|
|
30
|
+
contextEntryIds: z.array(z.string().min(1)),
|
|
31
|
+
comments: z.array(CommentSchema),
|
|
32
|
+
inProgressSince: z.string().datetime({ offset: true }).optional(),
|
|
33
|
+
externalLinks: z.array(ExternalLinkRefSchema),
|
|
34
|
+
}).strict();
|
|
35
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/task/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,aAAa,EACb,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,6BAA6B,EAC7B,eAAe,EACf,WAAW,GACZ,MAAM,yCAAyC,CAAA;AAChD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACvB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACpC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACrC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,gBAAgB,EAAE,sBAAsB;IACxC,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC;QACb,SAAS;QACT,MAAM;QACN,aAAa;QACb,WAAW;QACX,SAAS;QACT,gBAAgB;QAChB,MAAM;QACN,UAAU;KACX,CAAC;IACF,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC1B,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IACrC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACvC,KAAK,EAAE,qBAAqB,CAAC,QAAQ,EAAE;IACvC,mBAAmB,EAAE,6BAA6B;IAClD,QAAQ,EAAE,kBAAkB;IAC5B,YAAY,EAAE,eAAe,CAAC,QAAQ,EAAE;IACxC,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC3C,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC;IAChC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjE,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC;CAC9C,CAAC,CAAC,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ToolResult } from "../shared/result.js";
|
|
2
|
+
import type { Assignment } from "../shared/schema/value-objects.js";
|
|
3
|
+
import { type Clock, Effect } from "effect";
|
|
4
|
+
import { SessionLivenessPort } from "../workspace/session-liveness.js";
|
|
5
|
+
import { TaskRepository } from "./ports.js";
|
|
6
|
+
import type { Task } from "./schema.js";
|
|
7
|
+
export type AssignTaskSessionInput = {
|
|
8
|
+
readonly id: string;
|
|
9
|
+
readonly sessionId: string;
|
|
10
|
+
readonly assignee?: Assignment | undefined;
|
|
11
|
+
readonly reason?: string | undefined;
|
|
12
|
+
};
|
|
13
|
+
export type ClearTaskSessionInput = {
|
|
14
|
+
readonly id: string;
|
|
15
|
+
readonly reason?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
type TaskResult = {
|
|
18
|
+
readonly task: Task;
|
|
19
|
+
};
|
|
20
|
+
export declare const assignTaskSession: (input: AssignTaskSessionInput) => Effect.Effect<ToolResult<TaskResult>, never, TaskRepository | SessionLivenessPort | Clock.Clock>;
|
|
21
|
+
export declare const clearTaskSession: (input: ClearTaskSessionInput) => Effect.Effect<ToolResult<TaskResult>, never, TaskRepository | SessionLivenessPort | Clock.Clock>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=session-assignment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-assignment.d.ts","sourceRoot":"","sources":["../../src/task/session-assignment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAA;AAGzE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAEtE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AASvC,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,UAAU,GAAG,SAAS,CAAA;IAC1C,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACrC,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACrC,CAAA;AAED,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,iBAAiB,GAC5B,OAAO,sBAAsB,KAC5B,MAAM,CAAC,MAAM,CACd,UAAU,CAAC,UAAU,CAAC,EACtB,KAAK,EACL,cAAc,GAAG,mBAAmB,GAAG,KAAK,CAAC,KAAK,CAmEhD,CAAA;AAEJ,eAAO,MAAM,gBAAgB,GAC3B,OAAO,qBAAqB,KAC3B,MAAM,CAAC,MAAM,CACd,UAAU,CAAC,UAAU,CAAC,EACtB,KAAK,EACL,cAAc,GAAG,mBAAmB,GAAG,KAAK,CAAC,KAAK,CA2ChD,CAAA"}
|