@mc1global/opencode-jarvis 0.13.0 → 0.14.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 +391 -0
- package/README.md +55 -29
- package/dist/application/agent-registry/dtos.d.ts.map +1 -1
- package/dist/application/agent-registry/use-cases.d.ts +0 -14
- package/dist/application/agent-registry/use-cases.d.ts.map +1 -1
- package/dist/application/agent-registry/use-cases.js +1 -0
- package/dist/application/agent-registry/use-cases.js.map +1 -1
- package/dist/application/azure-sync/comment-intent-service.d.ts +73 -0
- package/dist/application/azure-sync/comment-intent-service.d.ts.map +1 -0
- package/dist/application/azure-sync/comment-intent-service.js +105 -0
- package/dist/application/azure-sync/comment-intent-service.js.map +1 -0
- package/dist/application/azure-sync/dtos.d.ts.map +1 -1
- package/dist/application/azure-sync/field-builders.d.ts +2 -2
- package/dist/application/azure-sync/field-builders.d.ts.map +1 -1
- package/dist/application/azure-sync/field-builders.js +1 -1
- package/dist/application/azure-sync/field-builders.js.map +1 -1
- package/dist/application/azure-sync/intent-executor.d.ts +54 -0
- package/dist/application/azure-sync/intent-executor.d.ts.map +1 -0
- package/dist/application/azure-sync/intent-executor.js +130 -0
- package/dist/application/azure-sync/intent-executor.js.map +1 -0
- package/dist/application/azure-sync/intent-reply-builder.d.ts +41 -0
- package/dist/application/azure-sync/intent-reply-builder.d.ts.map +1 -0
- package/dist/application/azure-sync/intent-reply-builder.js +57 -0
- package/dist/application/azure-sync/intent-reply-builder.js.map +1 -0
- package/dist/application/azure-sync/kanban-card-sync-adapter.d.ts +39 -0
- package/dist/application/azure-sync/kanban-card-sync-adapter.d.ts.map +1 -0
- package/dist/application/azure-sync/kanban-card-sync-adapter.js +74 -0
- package/dist/application/azure-sync/kanban-card-sync-adapter.js.map +1 -0
- package/dist/application/azure-sync/kanban-sync-ports.d.ts +60 -0
- package/dist/application/azure-sync/kanban-sync-ports.d.ts.map +1 -0
- package/dist/application/azure-sync/kanban-sync-ports.js +17 -0
- package/dist/application/azure-sync/kanban-sync-ports.js.map +1 -0
- package/dist/application/azure-sync/poll-service.d.ts +2 -0
- package/dist/application/azure-sync/poll-service.d.ts.map +1 -1
- package/dist/application/azure-sync/poll-service.js +64 -18
- package/dist/application/azure-sync/poll-service.js.map +1 -1
- package/dist/application/azure-sync/pr-use-cases.d.ts +1 -4
- package/dist/application/azure-sync/pr-use-cases.d.ts.map +1 -1
- package/dist/application/azure-sync/pr-use-cases.js +2 -7
- package/dist/application/azure-sync/pr-use-cases.js.map +1 -1
- package/dist/application/azure-sync/pull-use-cases.d.ts.map +1 -1
- package/dist/application/azure-sync/pull-use-cases.js +47 -14
- package/dist/application/azure-sync/pull-use-cases.js.map +1 -1
- package/dist/application/azure-sync/push-entity-use-cases.d.ts +40 -0
- package/dist/application/azure-sync/push-entity-use-cases.d.ts.map +1 -0
- package/dist/application/azure-sync/push-entity-use-cases.js +266 -0
- package/dist/application/azure-sync/push-entity-use-cases.js.map +1 -0
- package/dist/application/azure-sync/push-use-cases.d.ts +9 -21
- package/dist/application/azure-sync/push-use-cases.d.ts.map +1 -1
- package/dist/application/azure-sync/push-use-cases.js +14 -229
- package/dist/application/azure-sync/push-use-cases.js.map +1 -1
- package/dist/application/azure-sync/reverse-field-builder.d.ts.map +1 -1
- package/dist/application/azure-sync/reverse-field-builder.js +1 -1
- package/dist/application/azure-sync/reverse-field-builder.js.map +1 -1
- package/dist/application/azure-sync/task-push-use-cases.d.ts +13 -13
- package/dist/application/azure-sync/task-push-use-cases.d.ts.map +1 -1
- package/dist/application/azure-sync/task-push-use-cases.js +5 -22
- package/dist/application/azure-sync/task-push-use-cases.js.map +1 -1
- package/dist/application/bootstrap/healthcheck-use-cases.d.ts +13 -0
- package/dist/application/bootstrap/healthcheck-use-cases.d.ts.map +1 -1
- package/dist/application/bootstrap/healthcheck-use-cases.js +4 -5
- package/dist/application/bootstrap/healthcheck-use-cases.js.map +1 -1
- package/dist/application/bootstrap/index.d.ts.map +1 -1
- package/dist/application/bootstrap/index.js.map +1 -1
- package/dist/application/bootstrap/ports.d.ts +29 -0
- package/dist/application/bootstrap/ports.d.ts.map +1 -0
- package/dist/application/bootstrap/ports.js +12 -0
- package/dist/application/bootstrap/ports.js.map +1 -0
- package/dist/application/bootstrap/terminal-commands-use-cases.d.ts.map +1 -1
- package/dist/application/bootstrap/terminal-commands-use-cases.js +1 -1
- package/dist/application/bootstrap/terminal-commands-use-cases.js.map +1 -1
- package/dist/application/bootstrap/use-cases.d.ts +29 -30
- package/dist/application/bootstrap/use-cases.d.ts.map +1 -1
- package/dist/application/bootstrap/use-cases.js +84 -81
- package/dist/application/bootstrap/use-cases.js.map +1 -1
- package/dist/application/config/config-service.d.ts +7 -21
- package/dist/application/config/config-service.d.ts.map +1 -1
- package/dist/application/config/config-service.js +8 -5
- package/dist/application/config/config-service.js.map +1 -1
- package/dist/application/config/config-write-service.d.ts +4 -23
- package/dist/application/config/config-write-service.d.ts.map +1 -1
- package/dist/application/config/config-write-service.js +2 -1
- package/dist/application/config/config-write-service.js.map +1 -1
- package/dist/application/context-memory/execution-journal-use-cases.d.ts.map +1 -1
- package/dist/application/context-memory/execution-journal-use-cases.js +10 -0
- package/dist/application/context-memory/execution-journal-use-cases.js.map +1 -1
- package/dist/application/context-memory/note-use-cases.d.ts.map +1 -1
- package/dist/application/context-memory/note-use-cases.js +10 -0
- package/dist/application/context-memory/note-use-cases.js.map +1 -1
- package/dist/application/context-memory/session-use-cases.d.ts.map +1 -1
- package/dist/application/context-memory/session-use-cases.js +10 -0
- package/dist/application/context-memory/session-use-cases.js.map +1 -1
- package/dist/application/context-memory/todo-use-cases.d.ts.map +1 -1
- package/dist/application/context-memory/todo-use-cases.js +10 -0
- package/dist/application/context-memory/todo-use-cases.js.map +1 -1
- package/dist/application/domain-map/dtos.d.ts.map +1 -1
- package/dist/application/domain-map/use-cases.d.ts +3 -23
- package/dist/application/domain-map/use-cases.d.ts.map +1 -1
- package/dist/application/domain-map/use-cases.js +5 -5
- package/dist/application/domain-map/use-cases.js.map +1 -1
- package/dist/application/environment/use-cases.d.ts +73 -4
- package/dist/application/environment/use-cases.d.ts.map +1 -1
- package/dist/application/environment/use-cases.js +5 -1
- package/dist/application/environment/use-cases.js.map +1 -1
- package/dist/application/governance/dtos.d.ts +29 -0
- package/dist/application/governance/dtos.d.ts.map +1 -0
- package/dist/application/governance/dtos.js +11 -0
- package/dist/application/governance/dtos.js.map +1 -0
- package/dist/application/governance/validation-use-cases.d.ts +1 -19
- package/dist/application/governance/validation-use-cases.d.ts.map +1 -1
- package/dist/application/governance/validation-use-cases.js +11 -0
- package/dist/application/governance/validation-use-cases.js.map +1 -1
- package/dist/application/kanban/board-use-cases.d.ts +12 -18
- package/dist/application/kanban/board-use-cases.d.ts.map +1 -1
- package/dist/application/kanban/board-use-cases.js +11 -38
- package/dist/application/kanban/board-use-cases.js.map +1 -1
- package/dist/application/kanban/card-gate-use-cases.d.ts +24 -0
- package/dist/application/kanban/card-gate-use-cases.d.ts.map +1 -0
- package/dist/application/kanban/card-gate-use-cases.js +71 -0
- package/dist/application/kanban/card-gate-use-cases.js.map +1 -0
- package/dist/application/kanban/card-use-cases.d.ts +7 -9
- package/dist/application/kanban/card-use-cases.d.ts.map +1 -1
- package/dist/application/kanban/card-use-cases.js +60 -92
- package/dist/application/kanban/card-use-cases.js.map +1 -1
- package/dist/application/kanban/dtos.d.ts +14 -0
- package/dist/application/kanban/dtos.d.ts.map +1 -1
- package/dist/application/kanban/dtos.js +38 -1
- package/dist/application/kanban/dtos.js.map +1 -1
- package/dist/application/kanban/sprint-use-cases.d.ts +2 -2
- package/dist/application/kanban/sprint-use-cases.d.ts.map +1 -1
- package/dist/application/kanban/sprint-use-cases.js +10 -0
- package/dist/application/kanban/sprint-use-cases.js.map +1 -1
- package/dist/application/pipeline/dtos.d.ts +157 -73
- package/dist/application/pipeline/dtos.d.ts.map +1 -1
- package/dist/application/pipeline/dtos.js +5 -5
- package/dist/application/pipeline/use-cases.d.ts +10 -13
- package/dist/application/pipeline/use-cases.d.ts.map +1 -1
- package/dist/application/pipeline/use-cases.js +1 -0
- package/dist/application/pipeline/use-cases.js.map +1 -1
- package/dist/application/rag/dtos.d.ts.map +1 -1
- package/dist/application/rag/oracle-use-cases.d.ts.map +1 -1
- package/dist/application/rag/oracle-use-cases.js +11 -1
- package/dist/application/rag/oracle-use-cases.js.map +1 -1
- package/dist/application/rag/rag-mutation-use-cases.d.ts +61 -0
- package/dist/application/rag/rag-mutation-use-cases.d.ts.map +1 -0
- package/dist/application/rag/rag-mutation-use-cases.js +155 -0
- package/dist/application/rag/rag-mutation-use-cases.js.map +1 -0
- package/dist/application/rag/use-cases.d.ts +10 -5
- package/dist/application/rag/use-cases.d.ts.map +1 -1
- package/dist/application/rag/use-cases.js +97 -191
- package/dist/application/rag/use-cases.js.map +1 -1
- package/dist/application/token-metrics/dtos.d.ts.map +1 -1
- package/dist/application/token-metrics/tracking-use-cases.d.ts.map +1 -1
- package/dist/application/token-metrics/tracking-use-cases.js +13 -3
- package/dist/application/token-metrics/tracking-use-cases.js.map +1 -1
- package/dist/application/vault/dtos.d.ts.map +1 -1
- package/dist/application/vault/use-cases.d.ts +1 -1
- package/dist/application/vault/use-cases.d.ts.map +1 -1
- package/dist/application/vault/use-cases.js +11 -0
- package/dist/application/vault/use-cases.js.map +1 -1
- package/dist/application/vault/vault-manager.d.ts +1 -1
- package/dist/application/vault/vault-manager.d.ts.map +1 -1
- package/dist/application/vault/vault-manager.js +26 -6
- package/dist/application/vault/vault-manager.js.map +1 -1
- package/dist/application/workspace-registry/dtos.d.ts.map +1 -1
- package/dist/application/workspace-registry/use-cases.d.ts +65 -15
- package/dist/application/workspace-registry/use-cases.d.ts.map +1 -1
- package/dist/application/workspace-registry/use-cases.js +5 -4
- package/dist/application/workspace-registry/use-cases.js.map +1 -1
- package/dist/composition/hooks.d.ts +15 -0
- package/dist/composition/hooks.d.ts.map +1 -0
- package/dist/composition/hooks.js +113 -0
- package/dist/composition/hooks.js.map +1 -0
- package/dist/composition/infrastructure.d.ts +84 -0
- package/dist/composition/infrastructure.d.ts.map +1 -0
- package/dist/composition/infrastructure.js +140 -0
- package/dist/composition/infrastructure.js.map +1 -0
- package/dist/composition/services.d.ts +78 -0
- package/dist/composition/services.d.ts.map +1 -0
- package/dist/composition/services.js +335 -0
- package/dist/composition/services.js.map +1 -0
- package/dist/composition/tools.d.ts +15 -0
- package/dist/composition/tools.d.ts.map +1 -0
- package/dist/composition/tools.js +136 -0
- package/dist/composition/tools.js.map +1 -0
- package/dist/domain/agent-registry/entities.d.ts.map +1 -1
- package/dist/domain/agent-registry/entities.js +1 -1
- package/dist/domain/agent-registry/entities.js.map +1 -1
- package/dist/domain/agent-registry/enum-values.d.ts +15 -0
- package/dist/domain/agent-registry/enum-values.d.ts.map +1 -0
- package/dist/domain/agent-registry/enum-values.js +15 -0
- package/dist/domain/agent-registry/enum-values.js.map +1 -0
- package/dist/domain/agent-registry/repositories.d.ts.map +1 -1
- package/dist/domain/agent-registry/services.d.ts.map +1 -1
- package/dist/domain/agent-registry/services.js +1 -1
- package/dist/domain/agent-registry/services.js.map +1 -1
- package/dist/domain/agent-registry/value-objects.d.ts.map +1 -1
- package/dist/domain/agent-registry/value-objects.js +1 -1
- package/dist/domain/agent-registry/value-objects.js.map +1 -1
- package/dist/domain/azure-sync/entities.d.ts +30 -112
- package/dist/domain/azure-sync/entities.d.ts.map +1 -1
- package/dist/domain/azure-sync/entities.js +31 -120
- package/dist/domain/azure-sync/entities.js.map +1 -1
- package/dist/domain/azure-sync/enum-values.d.ts +25 -0
- package/dist/domain/azure-sync/enum-values.d.ts.map +1 -0
- package/dist/domain/azure-sync/enum-values.js +33 -0
- package/dist/domain/azure-sync/enum-values.js.map +1 -0
- package/dist/domain/azure-sync/llm-port.d.ts +85 -0
- package/dist/domain/azure-sync/llm-port.d.ts.map +1 -0
- package/dist/domain/azure-sync/llm-port.js +12 -0
- package/dist/domain/azure-sync/llm-port.js.map +1 -0
- package/dist/domain/azure-sync/ports.d.ts +12 -3
- package/dist/domain/azure-sync/ports.d.ts.map +1 -1
- package/dist/domain/azure-sync/repositories.d.ts.map +1 -1
- package/dist/domain/azure-sync/services.d.ts.map +1 -1
- package/dist/domain/azure-sync/services.js.map +1 -1
- package/dist/domain/azure-sync/sync-log-entities.d.ts +124 -0
- package/dist/domain/azure-sync/sync-log-entities.d.ts.map +1 -0
- package/dist/domain/azure-sync/sync-log-entities.js +129 -0
- package/dist/domain/azure-sync/sync-log-entities.js.map +1 -0
- package/dist/domain/azure-sync/sync-state-maps.d.ts +44 -0
- package/dist/domain/azure-sync/sync-state-maps.d.ts.map +1 -0
- package/dist/domain/azure-sync/sync-state-maps.js +134 -0
- package/dist/domain/azure-sync/sync-state-maps.js.map +1 -0
- package/dist/domain/azure-sync/value-objects.d.ts +6 -35
- package/dist/domain/azure-sync/value-objects.d.ts.map +1 -1
- package/dist/domain/azure-sync/value-objects.js +4 -120
- package/dist/domain/azure-sync/value-objects.js.map +1 -1
- package/dist/domain/config/value-objects.d.ts +1 -28
- package/dist/domain/config/value-objects.d.ts.map +1 -1
- package/dist/domain/config/value-objects.js +37 -19
- package/dist/domain/config/value-objects.js.map +1 -1
- package/dist/domain/context-memory/entities.d.ts +4 -170
- package/dist/domain/context-memory/entities.d.ts.map +1 -1
- package/dist/domain/context-memory/entities.js +5 -318
- package/dist/domain/context-memory/entities.js.map +1 -1
- package/dist/domain/context-memory/enum-values.d.ts +22 -0
- package/dist/domain/context-memory/enum-values.d.ts.map +1 -0
- package/dist/domain/context-memory/enum-values.js +23 -0
- package/dist/domain/context-memory/enum-values.js.map +1 -0
- package/dist/domain/context-memory/execution-entry.d.ts +41 -0
- package/dist/domain/context-memory/execution-entry.d.ts.map +1 -0
- package/dist/domain/context-memory/execution-entry.js +82 -0
- package/dist/domain/context-memory/execution-entry.js.map +1 -0
- package/dist/domain/context-memory/note.d.ts +31 -0
- package/dist/domain/context-memory/note.d.ts.map +1 -0
- package/dist/domain/context-memory/note.js +42 -0
- package/dist/domain/context-memory/note.js.map +1 -0
- package/dist/domain/context-memory/repositories.d.ts.map +1 -1
- package/dist/domain/context-memory/repositories.js +7 -0
- package/dist/domain/context-memory/repositories.js.map +1 -1
- package/dist/domain/context-memory/services.d.ts.map +1 -1
- package/dist/domain/context-memory/services.js +15 -1
- package/dist/domain/context-memory/services.js.map +1 -1
- package/dist/domain/context-memory/session.d.ts +39 -0
- package/dist/domain/context-memory/session.d.ts.map +1 -0
- package/dist/domain/context-memory/session.js +81 -0
- package/dist/domain/context-memory/session.js.map +1 -0
- package/dist/domain/context-memory/todo.d.ts +46 -0
- package/dist/domain/context-memory/todo.d.ts.map +1 -0
- package/dist/domain/context-memory/todo.js +96 -0
- package/dist/domain/context-memory/todo.js.map +1 -0
- package/dist/domain/context-memory/value-objects.d.ts.map +1 -1
- package/dist/domain/context-memory/value-objects.js +1 -1
- package/dist/domain/context-memory/value-objects.js.map +1 -1
- package/dist/domain/data/ports.d.ts +18 -0
- package/dist/domain/data/ports.d.ts.map +1 -0
- package/dist/domain/data/ports.js +11 -0
- package/dist/domain/data/ports.js.map +1 -0
- package/dist/domain/domain-map/ports.d.ts +106 -0
- package/dist/domain/domain-map/ports.d.ts.map +1 -0
- package/dist/domain/domain-map/ports.js +12 -0
- package/dist/domain/domain-map/ports.js.map +1 -0
- package/dist/domain/domain-map/services.d.ts.map +1 -1
- package/dist/domain/domain-map/services.js +17 -2
- package/dist/domain/domain-map/services.js.map +1 -1
- package/dist/domain/domain-map/value-objects.d.ts.map +1 -1
- package/dist/domain/domain-map/value-objects.js +1 -1
- package/dist/domain/domain-map/value-objects.js.map +1 -1
- package/dist/domain/environment/entities.d.ts +1 -1
- package/dist/domain/environment/entities.d.ts.map +1 -1
- package/dist/domain/environment/entities.js +1 -1
- package/dist/domain/environment/entities.js.map +1 -1
- package/dist/domain/environment/enum-values.d.ts +23 -0
- package/dist/domain/environment/enum-values.d.ts.map +1 -0
- package/dist/domain/environment/enum-values.js +31 -0
- package/dist/domain/environment/enum-values.js.map +1 -0
- package/dist/domain/environment/ports.d.ts +41 -0
- package/dist/domain/environment/ports.d.ts.map +1 -0
- package/dist/domain/environment/ports.js +12 -0
- package/dist/domain/environment/ports.js.map +1 -0
- package/dist/domain/environment/renderers.d.ts.map +1 -1
- package/dist/domain/environment/renderers.js.map +1 -1
- package/dist/domain/environment/repositories.d.ts.map +1 -1
- package/dist/domain/environment/services.d.ts.map +1 -1
- package/dist/domain/environment/services.js.map +1 -1
- package/dist/domain/environment/value-objects.d.ts.map +1 -1
- package/dist/domain/environment/value-objects.js +1 -1
- package/dist/domain/environment/value-objects.js.map +1 -1
- package/dist/domain/governance/policies.d.ts.map +1 -1
- package/dist/domain/governance/policies.js +3 -42
- package/dist/domain/governance/policies.js.map +1 -1
- package/dist/domain/governance/services.d.ts.map +1 -1
- package/dist/domain/governance/services.js +11 -0
- package/dist/domain/governance/services.js.map +1 -1
- package/dist/domain/kanban/card-props.d.ts +39 -0
- package/dist/domain/kanban/card-props.d.ts.map +1 -0
- package/dist/domain/kanban/card-props.js +9 -0
- package/dist/domain/kanban/card-props.js.map +1 -0
- package/dist/domain/kanban/entities.d.ts +19 -42
- package/dist/domain/kanban/entities.d.ts.map +1 -1
- package/dist/domain/kanban/entities.js +32 -11
- package/dist/domain/kanban/entities.js.map +1 -1
- package/dist/domain/kanban/enum-values.d.ts +53 -0
- package/dist/domain/kanban/enum-values.d.ts.map +1 -0
- package/dist/domain/kanban/enum-values.js +62 -0
- package/dist/domain/kanban/enum-values.js.map +1 -0
- package/dist/domain/kanban/grooming.d.ts.map +1 -1
- package/dist/domain/kanban/grooming.js +27 -2
- package/dist/domain/kanban/grooming.js.map +1 -1
- package/dist/domain/kanban/repositories.d.ts.map +1 -1
- package/dist/domain/kanban/repositories.js +7 -0
- package/dist/domain/kanban/repositories.js.map +1 -1
- package/dist/domain/kanban/services.d.ts.map +1 -1
- package/dist/domain/kanban/services.js +11 -0
- package/dist/domain/kanban/services.js.map +1 -1
- package/dist/domain/kanban/sprint.d.ts +7 -7
- package/dist/domain/kanban/sprint.d.ts.map +1 -1
- package/dist/domain/kanban/sprint.js.map +1 -1
- package/dist/domain/kanban/value-objects.d.ts +13 -2
- package/dist/domain/kanban/value-objects.d.ts.map +1 -1
- package/dist/domain/kanban/value-objects.js.map +1 -1
- package/dist/domain/pipeline/enum-values.d.ts +30 -0
- package/dist/domain/pipeline/enum-values.d.ts.map +1 -0
- package/dist/domain/pipeline/enum-values.js +41 -0
- package/dist/domain/pipeline/enum-values.js.map +1 -0
- package/dist/domain/pipeline/gate.d.ts.map +1 -1
- package/dist/domain/pipeline/gate.js +1 -1
- package/dist/domain/pipeline/gate.js.map +1 -1
- package/dist/domain/pipeline/index.d.ts.map +1 -1
- package/dist/domain/pipeline/index.js +0 -3
- package/dist/domain/pipeline/index.js.map +1 -1
- package/dist/domain/pipeline/pipeline.d.ts.map +1 -1
- package/dist/domain/pipeline/pipeline.js +11 -6
- package/dist/domain/pipeline/pipeline.js.map +1 -1
- package/dist/domain/pipeline/ports.d.ts.map +1 -1
- package/dist/domain/pipeline/repositories.d.ts +3 -3
- package/dist/domain/pipeline/repositories.d.ts.map +1 -1
- package/dist/domain/pipeline/services.d.ts.map +1 -1
- package/dist/domain/pipeline/services.js +2 -0
- package/dist/domain/pipeline/services.js.map +1 -1
- package/dist/domain/pipeline/value-objects.d.ts.map +1 -1
- package/dist/domain/pipeline/value-objects.js +1 -2
- package/dist/domain/pipeline/value-objects.js.map +1 -1
- package/dist/domain/rag/enum-values.d.ts +19 -0
- package/dist/domain/rag/enum-values.d.ts.map +1 -0
- package/dist/domain/rag/enum-values.js +24 -0
- package/dist/domain/rag/enum-values.js.map +1 -0
- package/dist/domain/rag/repositories.d.ts.map +1 -1
- package/dist/domain/rag/repositories.js +10 -0
- package/dist/domain/rag/repositories.js.map +1 -1
- package/dist/domain/rag/services.d.ts.map +1 -1
- package/dist/domain/rag/services.js +4 -4
- package/dist/domain/rag/services.js.map +1 -1
- package/dist/domain/rag/value-objects.d.ts.map +1 -1
- package/dist/domain/rag/value-objects.js.map +1 -1
- package/dist/domain/shared/value-objects.d.ts.map +1 -1
- package/dist/domain/shared/value-objects.js.map +1 -1
- package/dist/domain/token-metrics/entities.d.ts.map +1 -1
- package/dist/domain/token-metrics/entities.js +2 -3
- package/dist/domain/token-metrics/entities.js.map +1 -1
- package/dist/domain/token-metrics/ports.d.ts.map +1 -1
- package/dist/domain/token-metrics/ports.js.map +1 -1
- package/dist/domain/token-metrics/repositories.d.ts.map +1 -1
- package/dist/domain/token-metrics/repositories.js +10 -0
- package/dist/domain/token-metrics/repositories.js.map +1 -1
- package/dist/domain/token-metrics/value-objects.d.ts.map +1 -1
- package/dist/domain/token-metrics/value-objects.js.map +1 -1
- package/dist/domain/vault/document.d.ts.map +1 -1
- package/dist/domain/vault/document.js +39 -15
- package/dist/domain/vault/document.js.map +1 -1
- package/dist/domain/vault/repositories.d.ts.map +1 -1
- package/dist/domain/vault/repositories.js +10 -0
- package/dist/domain/vault/repositories.js.map +1 -1
- package/dist/domain/vault/section.d.ts.map +1 -1
- package/dist/domain/vault/section.js +10 -0
- package/dist/domain/vault/section.js.map +1 -1
- package/dist/domain/vault/services.d.ts +11 -0
- package/dist/domain/vault/services.d.ts.map +1 -1
- package/dist/domain/vault/services.js +45 -20
- package/dist/domain/vault/services.js.map +1 -1
- package/dist/domain/vault/table.d.ts +1 -0
- package/dist/domain/vault/table.d.ts.map +1 -1
- package/dist/domain/vault/table.js +12 -10
- package/dist/domain/vault/table.js.map +1 -1
- package/dist/domain/vault/value-objects.d.ts +5 -5
- package/dist/domain/vault/value-objects.d.ts.map +1 -1
- package/dist/domain/vault/value-objects.js +4 -2
- package/dist/domain/vault/value-objects.js.map +1 -1
- package/dist/domain/workspace-registry/entities.d.ts +24 -3
- package/dist/domain/workspace-registry/entities.d.ts.map +1 -1
- package/dist/domain/workspace-registry/entities.js +1 -1
- package/dist/domain/workspace-registry/entities.js.map +1 -1
- package/dist/domain/workspace-registry/enum-values.d.ts +19 -0
- package/dist/domain/workspace-registry/enum-values.d.ts.map +1 -0
- package/dist/domain/workspace-registry/enum-values.js +23 -0
- package/dist/domain/workspace-registry/enum-values.js.map +1 -0
- package/dist/domain/workspace-registry/ports.d.ts +16 -0
- package/dist/domain/workspace-registry/ports.d.ts.map +1 -0
- package/dist/domain/workspace-registry/ports.js +16 -0
- package/dist/domain/workspace-registry/ports.js.map +1 -0
- package/dist/domain/workspace-registry/repositories.d.ts.map +1 -1
- package/dist/domain/workspace-registry/services.d.ts +2 -1
- package/dist/domain/workspace-registry/services.d.ts.map +1 -1
- package/dist/domain/workspace-registry/services.js.map +1 -1
- package/dist/domain/workspace-registry/value-objects.d.ts +2 -33
- package/dist/domain/workspace-registry/value-objects.d.ts.map +1 -1
- package/dist/domain/workspace-registry/value-objects.js +0 -1
- package/dist/domain/workspace-registry/value-objects.js.map +1 -1
- package/dist/hooks/config-command.d.ts.map +1 -1
- package/dist/hooks/config-command.js.map +1 -1
- package/dist/hooks/context-compacting.d.ts.map +1 -1
- package/dist/hooks/context-compacting.js +14 -0
- package/dist/hooks/context-compacting.js.map +1 -1
- package/dist/hooks/event-handlers.d.ts.map +1 -1
- package/dist/hooks/event-handlers.js +19 -3
- package/dist/hooks/event-handlers.js.map +1 -1
- package/dist/hooks/execution-journal.d.ts.map +1 -1
- package/dist/hooks/execution-journal.js +16 -0
- package/dist/hooks/execution-journal.js.map +1 -1
- package/dist/hooks/first-run-guide.d.ts.map +1 -1
- package/dist/hooks/first-run-guide.js +7 -8
- package/dist/hooks/first-run-guide.js.map +1 -1
- package/dist/hooks/guardrails.d.ts.map +1 -1
- package/dist/hooks/guardrails.js +16 -0
- package/dist/hooks/guardrails.js.map +1 -1
- package/dist/hooks/logger.d.ts.map +1 -1
- package/dist/hooks/logger.js +2 -0
- package/dist/hooks/logger.js.map +1 -1
- package/dist/hooks/shell-env.d.ts.map +1 -1
- package/dist/hooks/shell-env.js +12 -0
- package/dist/hooks/shell-env.js.map +1 -1
- package/dist/hooks/slash-commands.d.ts +3 -3
- package/dist/hooks/slash-commands.d.ts.map +1 -1
- package/dist/hooks/slash-commands.js +43 -16
- package/dist/hooks/slash-commands.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +56 -600
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/agent-registry/agent-profile-repository.d.ts +11 -27
- package/dist/infrastructure/agent-registry/agent-profile-repository.d.ts.map +1 -1
- package/dist/infrastructure/agent-registry/agent-profile-repository.js +1 -0
- package/dist/infrastructure/agent-registry/agent-profile-repository.js.map +1 -1
- package/dist/infrastructure/agent-registry/agent-session-adapter.d.ts +9 -26
- package/dist/infrastructure/agent-registry/agent-session-adapter.d.ts.map +1 -1
- package/dist/infrastructure/agent-registry/agent-session-adapter.js +1 -0
- package/dist/infrastructure/agent-registry/agent-session-adapter.js.map +1 -1
- package/dist/infrastructure/agent-registry/built-in-profiles.d.ts +11 -2
- package/dist/infrastructure/agent-registry/built-in-profiles.d.ts.map +1 -1
- package/dist/infrastructure/agent-registry/built-in-profiles.js +1 -0
- package/dist/infrastructure/agent-registry/built-in-profiles.js.map +1 -1
- package/dist/infrastructure/azure-sync/azure-auth.d.ts.map +1 -1
- package/dist/infrastructure/azure-sync/azure-auth.js.map +1 -1
- package/dist/infrastructure/azure-sync/azure-devops-client.d.ts +4 -3
- package/dist/infrastructure/azure-sync/azure-devops-client.d.ts.map +1 -1
- package/dist/infrastructure/azure-sync/azure-devops-client.js +47 -14
- package/dist/infrastructure/azure-sync/azure-devops-client.js.map +1 -1
- package/dist/infrastructure/azure-sync/ollama-llm-adapter.d.ts +30 -0
- package/dist/infrastructure/azure-sync/ollama-llm-adapter.d.ts.map +1 -0
- package/dist/infrastructure/azure-sync/ollama-llm-adapter.js +162 -0
- package/dist/infrastructure/azure-sync/ollama-llm-adapter.js.map +1 -0
- package/dist/infrastructure/azure-sync/sqlite-event-repository.d.ts.map +1 -1
- package/dist/infrastructure/azure-sync/sqlite-event-repository.js +24 -9
- package/dist/infrastructure/azure-sync/sqlite-event-repository.js.map +1 -1
- package/dist/infrastructure/azure-sync/sqlite-sync-repository.d.ts.map +1 -1
- package/dist/infrastructure/azure-sync/sqlite-sync-repository.js +12 -4
- package/dist/infrastructure/azure-sync/sqlite-sync-repository.js.map +1 -1
- package/dist/infrastructure/bootstrap/bootstrap-fs-adapter.d.ts +19 -0
- package/dist/infrastructure/bootstrap/bootstrap-fs-adapter.d.ts.map +1 -0
- package/dist/infrastructure/bootstrap/bootstrap-fs-adapter.js +41 -0
- package/dist/infrastructure/bootstrap/bootstrap-fs-adapter.js.map +1 -0
- package/dist/infrastructure/config/yaml-config-repository.d.ts +9 -7
- package/dist/infrastructure/config/yaml-config-repository.d.ts.map +1 -1
- package/dist/infrastructure/config/yaml-config-repository.js +1 -0
- package/dist/infrastructure/config/yaml-config-repository.js.map +1 -1
- package/dist/infrastructure/config/yaml-config-writer.d.ts +3 -4
- package/dist/infrastructure/config/yaml-config-writer.d.ts.map +1 -1
- package/dist/infrastructure/config/yaml-config-writer.js +1 -0
- package/dist/infrastructure/config/yaml-config-writer.js.map +1 -1
- package/dist/infrastructure/context-memory/execution-journal-repository.d.ts.map +1 -1
- package/dist/infrastructure/context-memory/execution-journal-repository.js +13 -1
- package/dist/infrastructure/context-memory/execution-journal-repository.js.map +1 -1
- package/dist/infrastructure/context-memory/note-repository.d.ts.map +1 -1
- package/dist/infrastructure/context-memory/note-repository.js +11 -1
- package/dist/infrastructure/context-memory/note-repository.js.map +1 -1
- package/dist/infrastructure/context-memory/search-repository.d.ts.map +1 -1
- package/dist/infrastructure/context-memory/session-repository.d.ts.map +1 -1
- package/dist/infrastructure/context-memory/session-repository.js +11 -1
- package/dist/infrastructure/context-memory/session-repository.js.map +1 -1
- package/dist/infrastructure/context-memory/todo-repository.d.ts.map +1 -1
- package/dist/infrastructure/context-memory/todo-repository.js +10 -1
- package/dist/infrastructure/context-memory/todo-repository.js.map +1 -1
- package/dist/infrastructure/data/data-file-adapter.d.ts +15 -0
- package/dist/infrastructure/data/data-file-adapter.d.ts.map +1 -0
- package/dist/infrastructure/data/data-file-adapter.js +27 -0
- package/dist/infrastructure/data/data-file-adapter.js.map +1 -0
- package/dist/infrastructure/database/sqlite-adapter.d.ts +14 -0
- package/dist/infrastructure/database/sqlite-adapter.d.ts.map +1 -1
- package/dist/infrastructure/database/sqlite-adapter.js.map +1 -1
- package/dist/infrastructure/domain-map/llm-analyzer.d.ts +38 -32
- package/dist/infrastructure/domain-map/llm-analyzer.d.ts.map +1 -1
- package/dist/infrastructure/domain-map/llm-analyzer.js +2 -1
- package/dist/infrastructure/domain-map/llm-analyzer.js.map +1 -1
- package/dist/infrastructure/domain-map/llm-prompt-factory.d.ts +1 -16
- package/dist/infrastructure/domain-map/llm-prompt-factory.d.ts.map +1 -1
- package/dist/infrastructure/domain-map/llm-prompt-factory.js +1 -0
- package/dist/infrastructure/domain-map/llm-prompt-factory.js.map +1 -1
- package/dist/infrastructure/domain-map/lsp-adapter.d.ts +53 -35
- package/dist/infrastructure/domain-map/lsp-adapter.d.ts.map +1 -1
- package/dist/infrastructure/domain-map/lsp-adapter.js +2 -1
- package/dist/infrastructure/domain-map/lsp-adapter.js.map +1 -1
- package/dist/infrastructure/domain-map/lsp-configs.d.ts +47 -37
- package/dist/infrastructure/domain-map/lsp-configs.d.ts.map +1 -1
- package/dist/infrastructure/domain-map/lsp-configs.js +1 -0
- package/dist/infrastructure/domain-map/lsp-configs.js.map +1 -1
- package/dist/infrastructure/domain-map/lsp-json-rpc.d.ts +18 -58
- package/dist/infrastructure/domain-map/lsp-json-rpc.d.ts.map +1 -1
- package/dist/infrastructure/domain-map/lsp-json-rpc.js +2 -1
- package/dist/infrastructure/domain-map/lsp-json-rpc.js.map +1 -1
- package/dist/infrastructure/domain-map/project-scanner.d.ts +8 -7
- package/dist/infrastructure/domain-map/project-scanner.d.ts.map +1 -1
- package/dist/infrastructure/domain-map/project-scanner.js +2 -1
- package/dist/infrastructure/domain-map/project-scanner.js.map +1 -1
- package/dist/infrastructure/environment/environment-repository.d.ts +16 -31
- package/dist/infrastructure/environment/environment-repository.d.ts.map +1 -1
- package/dist/infrastructure/environment/environment-repository.js +2 -1
- package/dist/infrastructure/environment/environment-repository.js.map +1 -1
- package/dist/infrastructure/environment/scanner-adapter.d.ts +2 -13
- package/dist/infrastructure/environment/scanner-adapter.d.ts.map +1 -1
- package/dist/infrastructure/environment/scanner-adapter.js +1 -0
- package/dist/infrastructure/environment/scanner-adapter.js.map +1 -1
- package/dist/infrastructure/kanban/card-repository.d.ts +2 -2
- package/dist/infrastructure/kanban/card-repository.d.ts.map +1 -1
- package/dist/infrastructure/kanban/card-repository.js +45 -22
- package/dist/infrastructure/kanban/card-repository.js.map +1 -1
- package/dist/infrastructure/kanban/sprint-repository.d.ts.map +1 -1
- package/dist/infrastructure/kanban/sprint-repository.js +14 -1
- package/dist/infrastructure/kanban/sprint-repository.js.map +1 -1
- package/dist/infrastructure/pipeline/dagger-adapter.d.ts +10 -43
- package/dist/infrastructure/pipeline/dagger-adapter.d.ts.map +1 -1
- package/dist/infrastructure/pipeline/dagger-adapter.js +1 -0
- package/dist/infrastructure/pipeline/dagger-adapter.js.map +1 -1
- package/dist/infrastructure/pipeline/dagger-scaffold-generator.d.ts +27 -23
- package/dist/infrastructure/pipeline/dagger-scaffold-generator.d.ts.map +1 -1
- package/dist/infrastructure/pipeline/dagger-scaffold-generator.js +1 -0
- package/dist/infrastructure/pipeline/dagger-scaffold-generator.js.map +1 -1
- package/dist/infrastructure/pipeline/index.d.ts +0 -1
- package/dist/infrastructure/pipeline/index.d.ts.map +1 -1
- package/dist/infrastructure/pipeline/index.js.map +1 -1
- package/dist/infrastructure/pipeline/pipeline-template-registry.d.ts +5 -20
- package/dist/infrastructure/pipeline/pipeline-template-registry.d.ts.map +1 -1
- package/dist/infrastructure/pipeline/pipeline-template-registry.js +1 -0
- package/dist/infrastructure/pipeline/pipeline-template-registry.js.map +1 -1
- package/dist/infrastructure/pipeline/scaffold-templates-extra.d.ts +0 -8
- package/dist/infrastructure/pipeline/scaffold-templates-extra.d.ts.map +1 -1
- package/dist/infrastructure/pipeline/scaffold-templates-extra.js +1 -0
- package/dist/infrastructure/pipeline/scaffold-templates-extra.js.map +1 -1
- package/dist/infrastructure/pipeline/scaffold-templates.d.ts.map +1 -1
- package/dist/infrastructure/pipeline/scaffold-templates.js +1 -0
- package/dist/infrastructure/pipeline/scaffold-templates.js.map +1 -1
- package/dist/infrastructure/pipeline/sqlite-pipeline-repository.d.ts +13 -30
- package/dist/infrastructure/pipeline/sqlite-pipeline-repository.d.ts.map +1 -1
- package/dist/infrastructure/pipeline/sqlite-pipeline-repository.js +3 -2
- package/dist/infrastructure/pipeline/sqlite-pipeline-repository.js.map +1 -1
- package/dist/infrastructure/rag/file-discovery.d.ts +11 -0
- package/dist/infrastructure/rag/file-discovery.d.ts.map +1 -1
- package/dist/infrastructure/rag/file-discovery.js +2 -1
- package/dist/infrastructure/rag/file-discovery.js.map +1 -1
- package/dist/infrastructure/rag/file-index-registry.d.ts +13 -0
- package/dist/infrastructure/rag/file-index-registry.d.ts.map +1 -1
- package/dist/infrastructure/rag/file-index-registry.js.map +1 -1
- package/dist/infrastructure/rag/ollama-embeddings.d.ts +10 -0
- package/dist/infrastructure/rag/ollama-embeddings.d.ts.map +1 -1
- package/dist/infrastructure/rag/ollama-embeddings.js.map +1 -1
- package/dist/infrastructure/rag/text-splitter.d.ts +10 -0
- package/dist/infrastructure/rag/text-splitter.d.ts.map +1 -1
- package/dist/infrastructure/rag/text-splitter.js +4 -1
- package/dist/infrastructure/rag/text-splitter.js.map +1 -1
- package/dist/infrastructure/rag/vectra-adapter.d.ts +10 -0
- package/dist/infrastructure/rag/vectra-adapter.d.ts.map +1 -1
- package/dist/infrastructure/rag/vectra-adapter.js.map +1 -1
- package/dist/infrastructure/token-metrics/token-metrics-repository.d.ts.map +1 -1
- package/dist/infrastructure/token-metrics/token-metrics-repository.js +11 -0
- package/dist/infrastructure/token-metrics/token-metrics-repository.js.map +1 -1
- package/dist/infrastructure/vault/markdown-parser.d.ts +10 -0
- package/dist/infrastructure/vault/markdown-parser.d.ts.map +1 -1
- package/dist/infrastructure/vault/markdown-parser.js +9 -9
- package/dist/infrastructure/vault/markdown-parser.js.map +1 -1
- package/dist/infrastructure/vault/vault-fs-adapter.d.ts +11 -0
- package/dist/infrastructure/vault/vault-fs-adapter.d.ts.map +1 -1
- package/dist/infrastructure/vault/vault-fs-adapter.js.map +1 -1
- package/dist/infrastructure/workspace-registry/dependency-repository.d.ts +11 -25
- package/dist/infrastructure/workspace-registry/dependency-repository.d.ts.map +1 -1
- package/dist/infrastructure/workspace-registry/dependency-repository.js +1 -0
- package/dist/infrastructure/workspace-registry/dependency-repository.js.map +1 -1
- package/dist/infrastructure/workspace-registry/workspace-repository.d.ts +11 -26
- package/dist/infrastructure/workspace-registry/workspace-repository.d.ts.map +1 -1
- package/dist/infrastructure/workspace-registry/workspace-repository.js +1 -0
- package/dist/infrastructure/workspace-registry/workspace-repository.js.map +1 -1
- package/dist/tools/agent-registry-tools.d.ts +16 -0
- package/dist/tools/agent-registry-tools.d.ts.map +1 -1
- package/dist/tools/agent-registry-tools.js +2 -1
- package/dist/tools/agent-registry-tools.js.map +1 -1
- package/dist/tools/agent-tools.d.ts +17 -7
- package/dist/tools/agent-tools.d.ts.map +1 -1
- package/dist/tools/agent-tools.js +158 -206
- package/dist/tools/agent-tools.js.map +1 -1
- package/dist/tools/azure-sync-event-tools.d.ts +23 -7
- package/dist/tools/azure-sync-event-tools.d.ts.map +1 -1
- package/dist/tools/azure-sync-event-tools.js +255 -66
- package/dist/tools/azure-sync-event-tools.js.map +1 -1
- package/dist/tools/azure-sync-pr-tools.d.ts +21 -0
- package/dist/tools/azure-sync-pr-tools.d.ts.map +1 -0
- package/dist/tools/azure-sync-pr-tools.js +146 -0
- package/dist/tools/azure-sync-pr-tools.js.map +1 -0
- package/dist/tools/azure-sync-tools.d.ts +22 -8
- package/dist/tools/azure-sync-tools.d.ts.map +1 -1
- package/dist/tools/azure-sync-tools.js +248 -267
- package/dist/tools/azure-sync-tools.js.map +1 -1
- package/dist/tools/bootstrap-tools.d.ts +16 -6
- package/dist/tools/bootstrap-tools.d.ts.map +1 -1
- package/dist/tools/bootstrap-tools.js +123 -143
- package/dist/tools/bootstrap-tools.js.map +1 -1
- package/dist/tools/config-tools.d.ts +16 -1
- package/dist/tools/config-tools.d.ts.map +1 -1
- package/dist/tools/config-tools.js +32 -2
- package/dist/tools/config-tools.js.map +1 -1
- package/dist/tools/context-memory-tools.d.ts +15 -0
- package/dist/tools/context-memory-tools.d.ts.map +1 -1
- package/dist/tools/context-memory-tools.js +4 -3
- package/dist/tools/context-memory-tools.js.map +1 -1
- package/dist/tools/data-tools.d.ts +15 -1
- package/dist/tools/data-tools.d.ts.map +1 -1
- package/dist/tools/data-tools.js +262 -308
- package/dist/tools/data-tools.js.map +1 -1
- package/dist/tools/data-write-tools.d.ts +20 -0
- package/dist/tools/data-write-tools.d.ts.map +1 -0
- package/dist/tools/data-write-tools.js +144 -0
- package/dist/tools/data-write-tools.js.map +1 -0
- package/dist/tools/domain-map-tools.d.ts +19 -36
- package/dist/tools/domain-map-tools.d.ts.map +1 -1
- package/dist/tools/domain-map-tools.js +81 -85
- package/dist/tools/domain-map-tools.js.map +1 -1
- package/dist/tools/environment-tools.d.ts +23 -80
- package/dist/tools/environment-tools.d.ts.map +1 -1
- package/dist/tools/environment-tools.js +109 -97
- package/dist/tools/environment-tools.js.map +1 -1
- package/dist/tools/governance-tools.d.ts +13 -0
- package/dist/tools/governance-tools.d.ts.map +1 -1
- package/dist/tools/governance-tools.js.map +1 -1
- package/dist/tools/kanban-board-tools.d.ts +12 -3
- package/dist/tools/kanban-board-tools.d.ts.map +1 -1
- package/dist/tools/kanban-board-tools.js +92 -302
- package/dist/tools/kanban-board-tools.js.map +1 -1
- package/dist/tools/kanban-card-mutation-tools.d.ts +16 -0
- package/dist/tools/kanban-card-mutation-tools.d.ts.map +1 -0
- package/dist/tools/kanban-card-mutation-tools.js +168 -0
- package/dist/tools/kanban-card-mutation-tools.js.map +1 -0
- package/dist/tools/kanban-card-query-tools.d.ts +25 -0
- package/dist/tools/kanban-card-query-tools.d.ts.map +1 -0
- package/dist/tools/kanban-card-query-tools.js +191 -0
- package/dist/tools/kanban-card-query-tools.js.map +1 -0
- package/dist/tools/kanban-card-tools.d.ts +13 -0
- package/dist/tools/kanban-card-tools.d.ts.map +1 -1
- package/dist/tools/kanban-card-tools.js +24 -182
- package/dist/tools/kanban-card-tools.js.map +1 -1
- package/dist/tools/kanban-gate-tools.d.ts +14 -2
- package/dist/tools/kanban-gate-tools.d.ts.map +1 -1
- package/dist/tools/kanban-gate-tools.js +78 -77
- package/dist/tools/kanban-gate-tools.js.map +1 -1
- package/dist/tools/kanban-grooming-tools.d.ts +12 -0
- package/dist/tools/kanban-grooming-tools.d.ts.map +1 -1
- package/dist/tools/kanban-grooming-tools.js +58 -137
- package/dist/tools/kanban-grooming-tools.js.map +1 -1
- package/dist/tools/kanban-sprint-tools.d.ts +35 -0
- package/dist/tools/kanban-sprint-tools.d.ts.map +1 -0
- package/dist/tools/kanban-sprint-tools.js +295 -0
- package/dist/tools/kanban-sprint-tools.js.map +1 -0
- package/dist/tools/pipeline-tools.d.ts +22 -6
- package/dist/tools/pipeline-tools.d.ts.map +1 -1
- package/dist/tools/pipeline-tools.js +306 -324
- package/dist/tools/pipeline-tools.js.map +1 -1
- package/dist/tools/rag-tools.d.ts +19 -0
- package/dist/tools/rag-tools.d.ts.map +1 -1
- package/dist/tools/rag-tools.js +79 -22
- package/dist/tools/rag-tools.js.map +1 -1
- package/dist/tools/token-metrics-tools.d.ts +23 -93
- package/dist/tools/token-metrics-tools.d.ts.map +1 -1
- package/dist/tools/token-metrics-tools.js +249 -199
- package/dist/tools/token-metrics-tools.js.map +1 -1
- package/dist/tools/vault-manage-tool.d.ts +18 -0
- package/dist/tools/vault-manage-tool.d.ts.map +1 -1
- package/dist/tools/vault-manage-tool.js +83 -156
- package/dist/tools/vault-manage-tool.js.map +1 -1
- package/dist/tools/vault-tools.d.ts +25 -0
- package/dist/tools/vault-tools.d.ts.map +1 -1
- package/dist/tools/vault-tools.js +218 -161
- package/dist/tools/vault-tools.js.map +1 -1
- package/dist/tools/workspace-registry-tools.d.ts +20 -88
- package/dist/tools/workspace-registry-tools.d.ts.map +1 -1
- package/dist/tools/workspace-registry-tools.js +78 -83
- package/dist/tools/workspace-registry-tools.js.map +1 -1
- package/package.json +11 -8
- package/scripts/setup/link-local.js +120 -0
- package/scripts/setup/setup-linux.sh +16 -6
- package/scripts/setup/setup-macos.sh +16 -6
- package/scripts/setup/setup-wsl.sh +23 -9
- package/templates/agents-md.template.md +130 -237
- package/templates/commands/jarvis-agents-md-file.md +7 -0
- package/dist/application/azure-sync/index.d.ts +0 -18
- package/dist/application/azure-sync/index.d.ts.map +0 -1
- package/dist/application/azure-sync/index.js +0 -11
- package/dist/application/azure-sync/index.js.map +0 -1
- package/dist/application/config/index.d.ts +0 -7
- package/dist/application/config/index.d.ts.map +0 -1
- package/dist/application/config/index.js +0 -6
- package/dist/application/config/index.js.map +0 -1
- package/dist/application/environment/dtos.d.ts +0 -74
- package/dist/application/environment/dtos.d.ts.map +0 -1
- package/dist/application/environment/dtos.js +0 -10
- package/dist/application/environment/dtos.js.map +0 -1
- package/dist/application/mcp/index.d.ts +0 -10
- package/dist/application/mcp/index.d.ts.map +0 -1
- package/dist/application/mcp/index.js +0 -8
- package/dist/application/mcp/index.js.map +0 -1
- package/dist/application/mcp/middleware.d.ts +0 -91
- package/dist/application/mcp/middleware.d.ts.map +0 -1
- package/dist/application/mcp/middleware.js +0 -84
- package/dist/application/mcp/middleware.js.map +0 -1
- package/dist/application/mcp/tool-adapter.d.ts +0 -72
- package/dist/application/mcp/tool-adapter.d.ts.map +0 -1
- package/dist/application/mcp/tool-adapter.js +0 -132
- package/dist/application/mcp/tool-adapter.js.map +0 -1
- package/dist/application/pipeline/index.d.ts +0 -8
- package/dist/application/pipeline/index.d.ts.map +0 -1
- package/dist/application/pipeline/index.js +0 -7
- package/dist/application/pipeline/index.js.map +0 -1
- package/dist/application/wiki-feedback/poll-service.d.ts +0 -56
- package/dist/application/wiki-feedback/poll-service.d.ts.map +0 -1
- package/dist/application/wiki-feedback/poll-service.js +0 -87
- package/dist/application/wiki-feedback/poll-service.js.map +0 -1
- package/dist/application/wiki-feedback/use-cases.d.ts +0 -115
- package/dist/application/wiki-feedback/use-cases.d.ts.map +0 -1
- package/dist/application/wiki-feedback/use-cases.js +0 -271
- package/dist/application/wiki-feedback/use-cases.js.map +0 -1
- package/dist/cli/config-wizard.d.ts +0 -14
- package/dist/cli/config-wizard.d.ts.map +0 -1
- package/dist/cli/config-wizard.js +0 -120
- package/dist/cli/config-wizard.js.map +0 -1
- package/dist/cli/section-editors.d.ts +0 -33
- package/dist/cli/section-editors.d.ts.map +0 -1
- package/dist/cli/section-editors.js +0 -286
- package/dist/cli/section-editors.js.map +0 -1
- package/dist/cli/wizard-prompts.d.ts +0 -76
- package/dist/cli/wizard-prompts.d.ts.map +0 -1
- package/dist/cli/wizard-prompts.js +0 -98
- package/dist/cli/wizard-prompts.js.map +0 -1
- package/dist/domain/azure-sync/index.d.ts +0 -16
- package/dist/domain/azure-sync/index.d.ts.map +0 -1
- package/dist/domain/azure-sync/index.js +0 -14
- package/dist/domain/azure-sync/index.js.map +0 -1
- package/dist/domain/config/index.d.ts +0 -9
- package/dist/domain/config/index.d.ts.map +0 -1
- package/dist/domain/config/index.js +0 -7
- package/dist/domain/config/index.js.map +0 -1
- package/dist/domain/domain-map/repositories.d.ts +0 -126
- package/dist/domain/domain-map/repositories.d.ts.map +0 -1
- package/dist/domain/domain-map/repositories.js +0 -2
- package/dist/domain/domain-map/repositories.js.map +0 -1
- package/dist/domain/vault/canvas.d.ts +0 -70
- package/dist/domain/vault/canvas.d.ts.map +0 -1
- package/dist/domain/vault/canvas.js +0 -70
- package/dist/domain/vault/canvas.js.map +0 -1
- package/dist/domain/vault/timeline.d.ts +0 -53
- package/dist/domain/vault/timeline.d.ts.map +0 -1
- package/dist/domain/vault/timeline.js +0 -214
- package/dist/domain/vault/timeline.js.map +0 -1
- package/dist/domain/wiki-feedback/entities.d.ts +0 -101
- package/dist/domain/wiki-feedback/entities.d.ts.map +0 -1
- package/dist/domain/wiki-feedback/entities.js +0 -154
- package/dist/domain/wiki-feedback/entities.js.map +0 -1
- package/dist/domain/wiki-feedback/index.d.ts +0 -13
- package/dist/domain/wiki-feedback/index.d.ts.map +0 -1
- package/dist/domain/wiki-feedback/index.js +0 -11
- package/dist/domain/wiki-feedback/index.js.map +0 -1
- package/dist/domain/wiki-feedback/ports.d.ts +0 -47
- package/dist/domain/wiki-feedback/ports.d.ts.map +0 -1
- package/dist/domain/wiki-feedback/ports.js +0 -13
- package/dist/domain/wiki-feedback/ports.js.map +0 -1
- package/dist/domain/wiki-feedback/repositories.d.ts +0 -33
- package/dist/domain/wiki-feedback/repositories.d.ts.map +0 -1
- package/dist/domain/wiki-feedback/repositories.js +0 -12
- package/dist/domain/wiki-feedback/repositories.js.map +0 -1
- package/dist/domain/wiki-feedback/value-objects.d.ts +0 -74
- package/dist/domain/wiki-feedback/value-objects.d.ts.map +0 -1
- package/dist/domain/wiki-feedback/value-objects.js +0 -144
- package/dist/domain/wiki-feedback/value-objects.js.map +0 -1
- package/dist/infrastructure/azure-sync/index.d.ts +0 -10
- package/dist/infrastructure/azure-sync/index.d.ts.map +0 -1
- package/dist/infrastructure/azure-sync/index.js +0 -13
- package/dist/infrastructure/azure-sync/index.js.map +0 -1
- package/dist/infrastructure/config/index.d.ts +0 -6
- package/dist/infrastructure/config/index.d.ts.map +0 -1
- package/dist/infrastructure/config/index.js +0 -6
- package/dist/infrastructure/config/index.js.map +0 -1
- package/dist/infrastructure/wiki-feedback/azure-wiki-client.d.ts +0 -36
- package/dist/infrastructure/wiki-feedback/azure-wiki-client.d.ts.map +0 -1
- package/dist/infrastructure/wiki-feedback/azure-wiki-client.js +0 -106
- package/dist/infrastructure/wiki-feedback/azure-wiki-client.js.map +0 -1
- package/dist/infrastructure/wiki-feedback/sqlite-feedback-repository.d.ts +0 -31
- package/dist/infrastructure/wiki-feedback/sqlite-feedback-repository.d.ts.map +0 -1
- package/dist/infrastructure/wiki-feedback/sqlite-feedback-repository.js +0 -149
- package/dist/infrastructure/wiki-feedback/sqlite-feedback-repository.js.map +0 -1
- package/dist/mcp-server.d.ts +0 -3
- package/dist/mcp-server.d.ts.map +0 -1
- package/dist/mcp-server.js +0 -373
- package/dist/mcp-server.js.map +0 -1
- package/dist/tools/wiki-feedback-tools.d.ts +0 -9
- package/dist/tools/wiki-feedback-tools.d.ts.map +0 -1
- package/dist/tools/wiki-feedback-tools.js +0 -189
- package/dist/tools/wiki-feedback-tools.js.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Governance DTOs (Data Transfer Objects)
|
|
3
|
+
*
|
|
4
|
+
* Plain objects for crossing layer boundaries in the governance context.
|
|
5
|
+
* Tools -> Use Cases (request DTOs), Use Cases -> Tools (response DTOs).
|
|
6
|
+
*
|
|
7
|
+
* SOLID: SRP - DTOs carry data, no logic
|
|
8
|
+
* DDD: Application layer boundary objects
|
|
9
|
+
*/
|
|
10
|
+
export interface ValidateToolRequest {
|
|
11
|
+
readonly toolName: string;
|
|
12
|
+
readonly args: Record<string, unknown>;
|
|
13
|
+
}
|
|
14
|
+
export interface ViolationResponse {
|
|
15
|
+
readonly rule: string;
|
|
16
|
+
readonly message: string;
|
|
17
|
+
readonly severity: string;
|
|
18
|
+
}
|
|
19
|
+
export interface ValidationResponse {
|
|
20
|
+
readonly allowed: boolean;
|
|
21
|
+
readonly violations: readonly ViolationResponse[];
|
|
22
|
+
readonly errorCount: number;
|
|
23
|
+
readonly warningCount: number;
|
|
24
|
+
}
|
|
25
|
+
export interface PolicyListResponse {
|
|
26
|
+
readonly policyIds: readonly string[];
|
|
27
|
+
readonly totalPolicies: number;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=dtos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dtos.d.ts","sourceRoot":"","sources":["../../../src/application/governance/dtos.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAClD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAC;IACtC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Governance DTOs (Data Transfer Objects)
|
|
3
|
+
*
|
|
4
|
+
* Plain objects for crossing layer boundaries in the governance context.
|
|
5
|
+
* Tools -> Use Cases (request DTOs), Use Cases -> Tools (response DTOs).
|
|
6
|
+
*
|
|
7
|
+
* SOLID: SRP - DTOs carry data, no logic
|
|
8
|
+
* DDD: Application layer boundary objects
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=dtos.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dtos.js","sourceRoot":"","sources":["../../../src/application/governance/dtos.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
|
|
@@ -11,25 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { Result } from "../../domain/shared/value-objects.js";
|
|
13
13
|
import type { PolicyValidationService } from "../../domain/governance/services.js";
|
|
14
|
-
|
|
15
|
-
readonly toolName: string;
|
|
16
|
-
readonly args: Record<string, unknown>;
|
|
17
|
-
}
|
|
18
|
-
export interface ViolationResponse {
|
|
19
|
-
readonly rule: string;
|
|
20
|
-
readonly message: string;
|
|
21
|
-
readonly severity: string;
|
|
22
|
-
}
|
|
23
|
-
export interface ValidationResponse {
|
|
24
|
-
readonly allowed: boolean;
|
|
25
|
-
readonly violations: readonly ViolationResponse[];
|
|
26
|
-
readonly errorCount: number;
|
|
27
|
-
readonly warningCount: number;
|
|
28
|
-
}
|
|
29
|
-
export interface PolicyListResponse {
|
|
30
|
-
readonly policyIds: readonly string[];
|
|
31
|
-
readonly totalPolicies: number;
|
|
32
|
-
}
|
|
14
|
+
import type { ValidateToolRequest, ValidationResponse, PolicyListResponse } from "./dtos.js";
|
|
33
15
|
export declare class GovernanceUseCases {
|
|
34
16
|
private readonly validationService;
|
|
35
17
|
constructor(validationService: PolicyValidationService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-use-cases.d.ts","sourceRoot":"","sources":["../../../src/application/governance/validation-use-cases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"validation-use-cases.d.ts","sourceRoot":"","sources":["../../../src/application/governance/validation-use-cases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AACnF,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAK7F,qBAAa,kBAAkB;IACjB,OAAO,CAAC,QAAQ,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,uBAAuB;IAEvE;;OAEG;IACG,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAcrF;;OAEG;IACG,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;CAU1D"}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Governance Validation Use Cases
|
|
3
|
+
*
|
|
4
|
+
* Application layer orchestration for governance operations.
|
|
5
|
+
* Provides a clean interface for tools and hooks to validate
|
|
6
|
+
* tool invocations against governance policies.
|
|
7
|
+
*
|
|
8
|
+
* SOLID: SRP - governance validation only
|
|
9
|
+
* SOLID: DIP - depends on domain service interface
|
|
10
|
+
* DDD: Application Service pattern
|
|
11
|
+
*/
|
|
1
12
|
import { ok, fail } from "../../domain/shared/value-objects.js";
|
|
2
13
|
// ── Use Cases ─────────────────────────────────────────────────────────
|
|
3
14
|
export class GovernanceUseCases {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-use-cases.js","sourceRoot":"","sources":["../../../src/application/governance/validation-use-cases.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validation-use-cases.js","sourceRoot":"","sources":["../../../src/application/governance/validation-use-cases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAEhE,yEAAyE;AAEzE,MAAM,OAAO,kBAAkB;IACA;IAA7B,YAA6B,iBAA0C;QAA1C,sBAAiB,GAAjB,iBAAiB,CAAyB;IAAG,CAAC;IAE3E;;OAEG;IACH,KAA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
|
1
1
|
/**
|
|
2
2
|
* Board Use Cases
|
|
3
3
|
*
|
|
4
|
-
* Application layer
|
|
5
|
-
*
|
|
6
|
-
* - Board statistics (card counts per status)
|
|
7
|
-
* - WIP limit checking
|
|
4
|
+
* Application layer for Kanban board view operations.
|
|
5
|
+
* Provides full board view, statistics, and WIP limit monitoring.
|
|
8
6
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* SOLID: SRP - board view and stats only
|
|
13
|
-
* SOLID: DIP - depends on repository and domain service interfaces
|
|
14
|
-
* DDD: Application Service - read model composition
|
|
7
|
+
* SOLID: SRP - board view operations only
|
|
8
|
+
* SOLID: DIP - depends on repository and service interfaces
|
|
9
|
+
* DDD: Application Service pattern
|
|
15
10
|
*/
|
|
16
11
|
import type { Result } from "../../domain/shared/value-objects.js";
|
|
17
12
|
import type { CardRepository } from "../../domain/kanban/repositories.js";
|
|
18
13
|
import type { CardDomainService } from "../../domain/kanban/services.js";
|
|
14
|
+
import { CardStatus } from "../../domain/kanban/value-objects.js";
|
|
19
15
|
import type { GetBoardRequest, BoardResponse, BoardStatsResponse } from "./dtos.js";
|
|
20
16
|
export declare class BoardUseCases {
|
|
21
17
|
private readonly cardRepo;
|
|
@@ -33,13 +29,11 @@ export declare class BoardUseCases {
|
|
|
33
29
|
/**
|
|
34
30
|
* Check WIP limits for the board. Returns columns that are at or over limit.
|
|
35
31
|
*/
|
|
36
|
-
checkWipLimits(request: GetBoardRequest): Promise<Result<readonly
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
readonly limit: number;
|
|
43
|
-
readonly overBy: number;
|
|
32
|
+
checkWipLimits(request: GetBoardRequest): Promise<Result<readonly {
|
|
33
|
+
status: CardStatus;
|
|
34
|
+
count: number;
|
|
35
|
+
limit: number;
|
|
36
|
+
overBy: number;
|
|
37
|
+
}[]>>;
|
|
44
38
|
}
|
|
45
39
|
//# sourceMappingURL=board-use-cases.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"board-use-cases.d.ts","sourceRoot":"","sources":["../../../src/application/kanban/board-use-cases.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"board-use-cases.d.ts","sourceRoot":"","sources":["../../../src/application/kanban/board-use-cases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEzE,OAAO,EAAE,UAAU,EAAsB,MAAM,sCAAsC,CAAC;AACtF,OAAO,KAAK,EACV,eAAe,EACf,aAAa,EACb,kBAAkB,EACnB,MAAM,WAAW,CAAC;AAGnB,qBAAa,aAAa;IAEtB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,WAAW;gBADX,QAAQ,EAAE,cAAc,EACxB,WAAW,EAAE,iBAAiB;IAGjD;;;OAGG;IACG,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;IA0CxE;;OAEG;IACG,aAAa,CACjB,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC;IAsBtC;;OAEG;IACG,cAAc,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CACrD,MAAM,CACJ,SAAS;QACP,MAAM,EAAE,UAAU,CAAC;QACnB,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,EAAE,CACJ,CACF;CAyBF"}
|
|
@@ -1,43 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Board Use Cases
|
|
3
|
+
*
|
|
4
|
+
* Application layer for Kanban board view operations.
|
|
5
|
+
* Provides full board view, statistics, and WIP limit monitoring.
|
|
6
|
+
*
|
|
7
|
+
* SOLID: SRP - board view operations only
|
|
8
|
+
* SOLID: DIP - depends on repository and service interfaces
|
|
9
|
+
* DDD: Application Service pattern
|
|
10
|
+
*/
|
|
1
11
|
import { WorkspaceId, ok, fail } from "../../domain/shared/value-objects.js";
|
|
2
12
|
import { CardStatus, DEFAULT_WIP_LIMITS } from "../../domain/kanban/value-objects.js";
|
|
3
|
-
|
|
4
|
-
function toCardResponse(card) {
|
|
5
|
-
return {
|
|
6
|
-
id: card.id.value,
|
|
7
|
-
workspace: card.workspace.value,
|
|
8
|
-
title: card.title,
|
|
9
|
-
status: card.status,
|
|
10
|
-
priority: card.priority,
|
|
11
|
-
description: card.description,
|
|
12
|
-
epicId: card.epicId?.value,
|
|
13
|
-
sprintId: card.sprintId?.value,
|
|
14
|
-
storyPoints: card.storyPoints,
|
|
15
|
-
assignedAgent: card.assignedAgent,
|
|
16
|
-
acceptanceCriteria: card.acceptanceCriteria.map((ac) => ({
|
|
17
|
-
description: ac.description,
|
|
18
|
-
met: ac.met,
|
|
19
|
-
})),
|
|
20
|
-
dependsOn: card.dependsOn.map((id) => id.value),
|
|
21
|
-
blockedBy: card.blockedBy.map((id) => id.value),
|
|
22
|
-
scopeDocPath: card.scopeDocPath?.value,
|
|
23
|
-
reviewIterations: card.reviewIterations,
|
|
24
|
-
groomingCompleted: card.groomingCompleted,
|
|
25
|
-
createdAt: card.createdAt.toISO(),
|
|
26
|
-
startedAt: card.startedAt?.toISO(),
|
|
27
|
-
completedAt: card.completedAt?.toISO(),
|
|
28
|
-
pipelineId: card.pipelineId,
|
|
29
|
-
gateTasks: card.gateTasks.map((gt) => ({
|
|
30
|
-
description: gt.description,
|
|
31
|
-
phase: gt.phase,
|
|
32
|
-
required: gt.required,
|
|
33
|
-
autoVerify: gt.autoVerify,
|
|
34
|
-
met: gt.met,
|
|
35
|
-
evidence: gt.evidence,
|
|
36
|
-
metAt: gt.metAt,
|
|
37
|
-
})),
|
|
38
|
-
lastTransitionAt: card.lastTransitionAt?.toISO(),
|
|
39
|
-
};
|
|
40
|
-
}
|
|
13
|
+
import { toCardResponse } from "./dtos.js";
|
|
41
14
|
export class BoardUseCases {
|
|
42
15
|
cardRepo;
|
|
43
16
|
cardService;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"board-use-cases.js","sourceRoot":"","sources":["../../../src/application/kanban/board-use-cases.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"board-use-cases.js","sourceRoot":"","sources":["../../../src/application/kanban/board-use-cases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAI7E,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAMtF,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C,MAAM,OAAO,aAAa;IAEL;IACA;IAFnB,YACmB,QAAwB,EACxB,WAA8B;QAD9B,aAAQ,GAAR,QAAQ,CAAgB;QACxB,gBAAW,GAAX,WAAW,CAAmB;IAC9C,CAAC;IAEJ;;;OAGG;IACH,KAAK,CAAC,QAAQ,CAAC,OAAwB;QACrC,IAAI,CAAC;YACH,MAAM,SAAS,GAAG,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YAExD,4BAA4B;YAC5B,MAAM,QAAQ,GAAiB;gBAC7B,UAAU,CAAC,OAAO;gBAClB,UAAU,CAAC,QAAQ;gBACnB,UAAU,CAAC,KAAK;gBAChB,UAAU,CAAC,KAAK;gBAChB,UAAU,CAAC,MAAM;gBACjB,UAAU,CAAC,OAAO;gBAClB,UAAU,CAAC,MAAM;gBACjB,UAAU,CAAC,IAAI;aAChB,CAAC;YAEF,MAAM,OAAO,GAAG,EAAE,CAAC;YACnB,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
|
+
* SRP split from card-use-cases.ts.
|
|
6
|
+
*
|
|
7
|
+
* SOLID: SRP — gate/pipeline operations only
|
|
8
|
+
* SOLID: DIP — depends on repository interface
|
|
9
|
+
* DDD: Application Service pattern
|
|
10
|
+
*/
|
|
11
|
+
import type { Result } from "../../domain/shared/value-objects.js";
|
|
12
|
+
import type { CardRepository } from "../../domain/kanban/repositories.js";
|
|
13
|
+
import type { CardResponse, MeetGateTaskRequest, ListGateTasksRequest, GateTaskResponse, LinkPipelineRequest } from "./dtos.js";
|
|
14
|
+
export declare class CardGateUseCases {
|
|
15
|
+
private readonly cardRepo;
|
|
16
|
+
constructor(cardRepo: CardRepository);
|
|
17
|
+
/** Meet a gate task with evidence. */
|
|
18
|
+
meetGateTask(request: MeetGateTaskRequest): Promise<Result<CardResponse>>;
|
|
19
|
+
/** List gate tasks for a card. */
|
|
20
|
+
listGateTasks(request: ListGateTasksRequest): Promise<Result<readonly GateTaskResponse[]>>;
|
|
21
|
+
/** Link a card to a pipeline run. */
|
|
22
|
+
linkPipeline(request: LinkPipelineRequest): Promise<Result<CardResponse>>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=card-gate-use-cases.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-gate-use-cases.d.ts","sourceRoot":"","sources":["../../../src/application/kanban/card-gate-use-cases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAE1E,OAAO,KAAK,EACV,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACpB,MAAM,WAAW,CAAC;AAGnB,qBAAa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,cAAc;IAErD,sCAAsC;IAChC,YAAY,CAChB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAchC,kCAAkC;IAC5B,aAAa,CACjB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,MAAM,CAAC,SAAS,gBAAgB,EAAE,CAAC,CAAC;IAsB/C,qCAAqC;IAC/B,YAAY,CAChB,OAAO,EAAE,mBAAmB,GAC3B,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;CAajC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Card Gate & Pipeline Use Cases
|
|
3
|
+
*
|
|
4
|
+
* Application layer operations for gate task management and pipeline linking.
|
|
5
|
+
* SRP split from card-use-cases.ts.
|
|
6
|
+
*
|
|
7
|
+
* SOLID: SRP — gate/pipeline operations only
|
|
8
|
+
* SOLID: DIP — depends on repository interface
|
|
9
|
+
* DDD: Application Service pattern
|
|
10
|
+
*/
|
|
11
|
+
import { ok, fail } from "../../domain/shared/value-objects.js";
|
|
12
|
+
import { CardId } from "../../domain/kanban/value-objects.js";
|
|
13
|
+
import { toCardResponse } from "./dtos.js";
|
|
14
|
+
export class CardGateUseCases {
|
|
15
|
+
cardRepo;
|
|
16
|
+
constructor(cardRepo) {
|
|
17
|
+
this.cardRepo = cardRepo;
|
|
18
|
+
}
|
|
19
|
+
/** Meet a gate task with evidence. */
|
|
20
|
+
async meetGateTask(request) {
|
|
21
|
+
try {
|
|
22
|
+
const cardId = CardId.from(request.cardId);
|
|
23
|
+
const card = await this.cardRepo.findById(cardId);
|
|
24
|
+
if (card === null)
|
|
25
|
+
return fail(`Card not found: ${request.cardId}`);
|
|
26
|
+
card.meetGateTask(request.index, request.evidence);
|
|
27
|
+
await this.cardRepo.save(card);
|
|
28
|
+
return ok(toCardResponse(card));
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
return fail(`Failed to meet gate task: ${String(error)}`);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
/** List gate tasks for a card. */
|
|
35
|
+
async listGateTasks(request) {
|
|
36
|
+
try {
|
|
37
|
+
const cardId = CardId.from(request.cardId);
|
|
38
|
+
const card = await this.cardRepo.findById(cardId);
|
|
39
|
+
if (card === null)
|
|
40
|
+
return fail(`Card not found: ${request.cardId}`);
|
|
41
|
+
return ok(card.gateTasks.map((gt) => ({
|
|
42
|
+
description: gt.description,
|
|
43
|
+
phase: gt.phase,
|
|
44
|
+
required: gt.required,
|
|
45
|
+
autoVerify: gt.autoVerify,
|
|
46
|
+
met: gt.met,
|
|
47
|
+
evidence: gt.evidence,
|
|
48
|
+
metAt: gt.metAt,
|
|
49
|
+
})));
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
return fail(`Failed to list gate tasks: ${String(error)}`);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/** Link a card to a pipeline run. */
|
|
56
|
+
async linkPipeline(request) {
|
|
57
|
+
try {
|
|
58
|
+
const cardId = CardId.from(request.cardId);
|
|
59
|
+
const card = await this.cardRepo.findById(cardId);
|
|
60
|
+
if (card === null)
|
|
61
|
+
return fail(`Card not found: ${request.cardId}`);
|
|
62
|
+
card.linkPipeline(request.pipelineId);
|
|
63
|
+
await this.cardRepo.save(card);
|
|
64
|
+
return ok(toCardResponse(card));
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
return fail(`Failed to link pipeline: ${String(error)}`);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=card-gate-use-cases.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card-gate-use-cases.js","sourceRoot":"","sources":["../../../src/application/kanban/card-gate-use-cases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAEhE,OAAO,EAAE,MAAM,EAAE,MAAM,sCAA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
12
12
|
import type { Result } from "../../domain/shared/value-objects.js";
|
|
13
|
-
import type { CardRepository } from "../../domain/kanban/repositories.js";
|
|
13
|
+
import type { CardRepository, SprintRepository, EpicRepository } from "../../domain/kanban/repositories.js";
|
|
14
14
|
import type { CardDomainService } from "../../domain/kanban/services.js";
|
|
15
|
-
import type { CreateCardRequest, MoveCardRequest, GetCardRequest, ListCardsRequest, AssignCardAgentRequest, AssignCardSprintRequest, AssignCardEpicRequest, SetStoryPointsRequest, AddAcceptanceCriterionRequest, MeetAcceptanceCriterionRequest, DeleteCardRequest, SetScopeDocPathRequest, AddDependencyRequest, RemoveDependencyRequest, ValidateGroomingRequest, GroomingValidationResponse, CardResponse,
|
|
15
|
+
import type { CreateCardRequest, MoveCardRequest, GetCardRequest, ListCardsRequest, AssignCardAgentRequest, AssignCardSprintRequest, AssignCardEpicRequest, SetStoryPointsRequest, AddAcceptanceCriterionRequest, MeetAcceptanceCriterionRequest, DeleteCardRequest, SetScopeDocPathRequest, AddDependencyRequest, RemoveDependencyRequest, ValidateGroomingRequest, GroomingValidationResponse, CardResponse, UpdateCardRequest } from "./dtos.js";
|
|
16
|
+
export { CardGateUseCases } from "./card-gate-use-cases.js";
|
|
16
17
|
/**
|
|
17
18
|
* Callback to look up pipeline status by ID.
|
|
18
19
|
* Returns the pipeline status string, or undefined if not found.
|
|
@@ -38,7 +39,9 @@ export declare class CardUseCases {
|
|
|
38
39
|
private readonly cardService;
|
|
39
40
|
private readonly pipelineStatusProvider?;
|
|
40
41
|
private readonly onCardDone?;
|
|
41
|
-
|
|
42
|
+
private readonly sprintRepo?;
|
|
43
|
+
private readonly epicRepo?;
|
|
44
|
+
constructor(cardRepo: CardRepository, cardService: CardDomainService, pipelineStatusProvider?: PipelineStatusProvider | undefined, onCardDone?: CardDoneCallback | undefined, sprintRepo?: SprintRepository | undefined, epicRepo?: EpicRepository | undefined);
|
|
42
45
|
createCard(request: CreateCardRequest): Promise<Result<CardResponse>>;
|
|
43
46
|
moveCard(request: MoveCardRequest): Promise<Result<CardResponse>>;
|
|
44
47
|
getCard(request: GetCardRequest): Promise<Result<CardResponse | null>>;
|
|
@@ -50,17 +53,12 @@ export declare class CardUseCases {
|
|
|
50
53
|
addAcceptanceCriterion(request: AddAcceptanceCriterionRequest): Promise<Result<CardResponse>>;
|
|
51
54
|
meetAcceptanceCriterion(request: MeetAcceptanceCriterionRequest): Promise<Result<CardResponse>>;
|
|
52
55
|
setScopeDocPath(request: SetScopeDocPathRequest): Promise<Result<CardResponse>>;
|
|
56
|
+
updateCard(request: UpdateCardRequest): Promise<Result<CardResponse>>;
|
|
53
57
|
addDependsOn(request: AddDependencyRequest): Promise<Result<CardResponse>>;
|
|
54
58
|
removeDependsOn(request: RemoveDependencyRequest): Promise<Result<CardResponse>>;
|
|
55
59
|
addBlockedBy(request: AddDependencyRequest): Promise<Result<CardResponse>>;
|
|
56
60
|
removeBlockedBy(request: RemoveDependencyRequest): Promise<Result<CardResponse>>;
|
|
57
61
|
validateGrooming(request: ValidateGroomingRequest): Promise<Result<GroomingValidationResponse>>;
|
|
58
62
|
deleteCard(request: DeleteCardRequest): Promise<Result<string>>;
|
|
59
|
-
/** Meet a gate task with evidence. */
|
|
60
|
-
meetGateTask(request: MeetGateTaskRequest): Promise<Result<CardResponse>>;
|
|
61
|
-
/** List gate tasks for a card. */
|
|
62
|
-
listGateTasks(request: ListGateTasksRequest): Promise<Result<readonly GateTaskResponse[]>>;
|
|
63
|
-
/** Link a card to a pipeline run. */
|
|
64
|
-
linkPipeline(request: LinkPipelineRequest): Promise<Result<CardResponse>>;
|
|
65
63
|
}
|
|
66
64
|
//# sourceMappingURL=card-use-cases.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-use-cases.d.ts","sourceRoot":"","sources":["../../../src/application/kanban/card-use-cases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"card-use-cases.d.ts","sourceRoot":"","sources":["../../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C,YAAY,CAAC,CAAC;IAe1B,UAAU,CACd,OAAO,EAAE,iBAAiB,GACzB,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAgC1B,YAAY,CAChB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAc1B,eAAe,CACnB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAc1B,YAAY,CAChB,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAc1B,eAAe,CACnB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAc1B,gBAAgB,CACpB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC;IAqBxC,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;CAoBtE"}
|
|
@@ -1,47 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Card Use Cases
|
|
3
|
+
*
|
|
4
|
+
* Application layer orchestration for card lifecycle operations.
|
|
5
|
+
* Converts DTOs <-> domain types, delegates to CardDomainService
|
|
6
|
+
* and CardRepository for creation.
|
|
7
|
+
*
|
|
8
|
+
* SOLID: SRP - card operations only
|
|
9
|
+
* SOLID: DIP - depends on domain service + repository interfaces
|
|
10
|
+
* DDD: Application Service pattern
|
|
11
|
+
*/
|
|
1
12
|
import { WorkspaceId, ok, fail } from "../../domain/shared/value-objects.js";
|
|
2
13
|
import { Card } from "../../domain/kanban/entities.js";
|
|
3
14
|
import { CardId, CardStatus, Priority, EpicId, SprintId, } from "../../domain/kanban/value-objects.js";
|
|
4
15
|
import { isValidStoryPoints } from "../../domain/kanban/value-objects.js";
|
|
5
16
|
import { ScopeDocPath } from "../../domain/kanban/value-objects.js";
|
|
6
17
|
import { GroomingValidator } from "../../domain/kanban/grooming.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
id: card.id.value,
|
|
11
|
-
workspace: card.workspace.value,
|
|
12
|
-
title: card.title,
|
|
13
|
-
status: card.status,
|
|
14
|
-
priority: card.priority,
|
|
15
|
-
description: card.description,
|
|
16
|
-
epicId: card.epicId?.value,
|
|
17
|
-
sprintId: card.sprintId?.value,
|
|
18
|
-
storyPoints: card.storyPoints,
|
|
19
|
-
assignedAgent: card.assignedAgent,
|
|
20
|
-
acceptanceCriteria: card.acceptanceCriteria.map((ac) => ({
|
|
21
|
-
description: ac.description,
|
|
22
|
-
met: ac.met,
|
|
23
|
-
})),
|
|
24
|
-
dependsOn: card.dependsOn.map((id) => id.value),
|
|
25
|
-
blockedBy: card.blockedBy.map((id) => id.value),
|
|
26
|
-
scopeDocPath: card.scopeDocPath?.value,
|
|
27
|
-
reviewIterations: card.reviewIterations,
|
|
28
|
-
groomingCompleted: card.groomingCompleted,
|
|
29
|
-
createdAt: card.createdAt.toISO(),
|
|
30
|
-
startedAt: card.startedAt?.toISO(),
|
|
31
|
-
completedAt: card.completedAt?.toISO(),
|
|
32
|
-
pipelineId: card.pipelineId,
|
|
33
|
-
gateTasks: card.gateTasks.map((gt) => ({
|
|
34
|
-
description: gt.description,
|
|
35
|
-
phase: gt.phase,
|
|
36
|
-
required: gt.required,
|
|
37
|
-
autoVerify: gt.autoVerify,
|
|
38
|
-
met: gt.met,
|
|
39
|
-
evidence: gt.evidence,
|
|
40
|
-
metAt: gt.metAt,
|
|
41
|
-
})),
|
|
42
|
-
lastTransitionAt: card.lastTransitionAt?.toISO(),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
18
|
+
import { toCardResponse } from "./dtos.js";
|
|
19
|
+
// Re-export gate use cases for backwards compatibility
|
|
20
|
+
export { CardGateUseCases } from "./card-gate-use-cases.js";
|
|
45
21
|
/** Validate CardStatus string. */
|
|
46
22
|
function parseCardStatus(value) {
|
|
47
23
|
const valid = Object.values(CardStatus);
|
|
@@ -57,11 +33,15 @@ export class CardUseCases {
|
|
|
57
33
|
cardService;
|
|
58
34
|
pipelineStatusProvider;
|
|
59
35
|
onCardDone;
|
|
60
|
-
|
|
36
|
+
sprintRepo;
|
|
37
|
+
epicRepo;
|
|
38
|
+
constructor(cardRepo, cardService, pipelineStatusProvider, onCardDone, sprintRepo, epicRepo) {
|
|
61
39
|
this.cardRepo = cardRepo;
|
|
62
40
|
this.cardService = cardService;
|
|
63
41
|
this.pipelineStatusProvider = pipelineStatusProvider;
|
|
64
42
|
this.onCardDone = onCardDone;
|
|
43
|
+
this.sprintRepo = sprintRepo;
|
|
44
|
+
this.epicRepo = epicRepo;
|
|
65
45
|
}
|
|
66
46
|
async createCard(request) {
|
|
67
47
|
try {
|
|
@@ -179,6 +159,13 @@ export class CardUseCases {
|
|
|
179
159
|
async assignSprint(request) {
|
|
180
160
|
const cardId = CardId.from(request.cardId);
|
|
181
161
|
const sprintId = SprintId.from(request.sprintId);
|
|
162
|
+
// Validate sprint exists if repo is available
|
|
163
|
+
if (this.sprintRepo !== undefined) {
|
|
164
|
+
const sprint = await this.sprintRepo.findById(sprintId);
|
|
165
|
+
if (sprint === null) {
|
|
166
|
+
return fail(`Sprint not found: ${request.sprintId}`);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
182
169
|
const result = await this.cardService.assignToSprint(cardId, sprintId);
|
|
183
170
|
if (!result.success)
|
|
184
171
|
return fail(result.error);
|
|
@@ -187,6 +174,13 @@ export class CardUseCases {
|
|
|
187
174
|
async assignEpic(request) {
|
|
188
175
|
const cardId = CardId.from(request.cardId);
|
|
189
176
|
const epicId = EpicId.from(request.epicId);
|
|
177
|
+
// Validate epic exists if repo is available
|
|
178
|
+
if (this.epicRepo !== undefined) {
|
|
179
|
+
const epic = await this.epicRepo.findById(epicId);
|
|
180
|
+
if (epic === null) {
|
|
181
|
+
return fail(`Epic not found: ${request.epicId}`);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
190
184
|
const result = await this.cardService.assignToEpic(cardId, epicId);
|
|
191
185
|
if (!result.success)
|
|
192
186
|
return fail(result.error);
|
|
@@ -246,6 +240,33 @@ export class CardUseCases {
|
|
|
246
240
|
return fail(`Failed to set scope doc path: ${String(error)}`);
|
|
247
241
|
}
|
|
248
242
|
}
|
|
243
|
+
async updateCard(request) {
|
|
244
|
+
try {
|
|
245
|
+
const cardId = CardId.from(request.cardId);
|
|
246
|
+
const card = await this.cardRepo.findById(cardId);
|
|
247
|
+
if (card === null)
|
|
248
|
+
return fail(`Card not found: ${request.cardId}`);
|
|
249
|
+
if (request.title !== undefined) {
|
|
250
|
+
card.setTitle(request.title);
|
|
251
|
+
}
|
|
252
|
+
if (request.description !== undefined) {
|
|
253
|
+
card.setDescription(request.description);
|
|
254
|
+
}
|
|
255
|
+
if (request.priority !== undefined) {
|
|
256
|
+
const parsed = parsePriority(request.priority);
|
|
257
|
+
if (parsed === null) {
|
|
258
|
+
return fail(`Invalid priority: "${request.priority}". ` +
|
|
259
|
+
`Valid: ${Object.values(Priority).join(", ")}`);
|
|
260
|
+
}
|
|
261
|
+
card.setPriority(parsed);
|
|
262
|
+
}
|
|
263
|
+
await this.cardRepo.save(card);
|
|
264
|
+
return ok(toCardResponse(card));
|
|
265
|
+
}
|
|
266
|
+
catch (error) {
|
|
267
|
+
return fail(`Failed to update card: ${String(error)}`);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
249
270
|
async addDependsOn(request) {
|
|
250
271
|
try {
|
|
251
272
|
const cardId = CardId.from(request.cardId);
|
|
@@ -339,58 +360,5 @@ export class CardUseCases {
|
|
|
339
360
|
return fail(`Failed to delete card: ${String(error)}`);
|
|
340
361
|
}
|
|
341
362
|
}
|
|
342
|
-
// ── Gate Task Operations ──────────────────────────────────────────
|
|
343
|
-
/** Meet a gate task with evidence. */
|
|
344
|
-
async meetGateTask(request) {
|
|
345
|
-
try {
|
|
346
|
-
const cardId = CardId.from(request.cardId);
|
|
347
|
-
const card = await this.cardRepo.findById(cardId);
|
|
348
|
-
if (card === null)
|
|
349
|
-
return fail(`Card not found: ${request.cardId}`);
|
|
350
|
-
card.meetGateTask(request.index, request.evidence);
|
|
351
|
-
await this.cardRepo.save(card);
|
|
352
|
-
return ok(toCardResponse(card));
|
|
353
|
-
}
|
|
354
|
-
catch (error) {
|
|
355
|
-
return fail(`Failed to meet gate task: ${String(error)}`);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
/** List gate tasks for a card. */
|
|
359
|
-
async listGateTasks(request) {
|
|
360
|
-
try {
|
|
361
|
-
const cardId = CardId.from(request.cardId);
|
|
362
|
-
const card = await this.cardRepo.findById(cardId);
|
|
363
|
-
if (card === null)
|
|
364
|
-
return fail(`Card not found: ${request.cardId}`);
|
|
365
|
-
return ok(card.gateTasks.map((gt) => ({
|
|
366
|
-
description: gt.description,
|
|
367
|
-
phase: gt.phase,
|
|
368
|
-
required: gt.required,
|
|
369
|
-
autoVerify: gt.autoVerify,
|
|
370
|
-
met: gt.met,
|
|
371
|
-
evidence: gt.evidence,
|
|
372
|
-
metAt: gt.metAt,
|
|
373
|
-
})));
|
|
374
|
-
}
|
|
375
|
-
catch (error) {
|
|
376
|
-
return fail(`Failed to list gate tasks: ${String(error)}`);
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
// ── Pipeline Linking ──────────────────────────────────────────────
|
|
380
|
-
/** Link a card to a pipeline run. */
|
|
381
|
-
async linkPipeline(request) {
|
|
382
|
-
try {
|
|
383
|
-
const cardId = CardId.from(request.cardId);
|
|
384
|
-
const card = await this.cardRepo.findById(cardId);
|
|
385
|
-
if (card === null)
|
|
386
|
-
return fail(`Card not found: ${request.cardId}`);
|
|
387
|
-
card.linkPipeline(request.pipelineId);
|
|
388
|
-
await this.cardRepo.save(card);
|
|
389
|
-
return ok(toCardResponse(card));
|
|
390
|
-
}
|
|
391
|
-
catch (error) {
|
|
392
|
-
return fail(`Failed to link pipeline: ${String(error)}`);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
363
|
}
|
|
396
364
|
//# sourceMappingURL=card-use-cases.js.map
|