@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,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comment Intent Service
|
|
3
|
+
*
|
|
4
|
+
* Orchestrates the full pipeline for processing an Azure DevOps comment:
|
|
5
|
+
* 1. Load SyncEvent and validate it is a pending comment_added event
|
|
6
|
+
* 2. Resolve the SyncMapping to get the local card context
|
|
7
|
+
* 3. Classify the comment via LlmPort
|
|
8
|
+
* 4. Execute the resolved intent via IntentExecutor
|
|
9
|
+
* 5. Build the reply text via IntentReplyBuilder
|
|
10
|
+
* 6. Post the reply to Azure DevOps via AzureDevOpsPort
|
|
11
|
+
* 7. Acknowledge the SyncEvent
|
|
12
|
+
*
|
|
13
|
+
* SOLID: SRP — orchestration only; each step delegated to a focused collaborator
|
|
14
|
+
* SOLID: DIP — depends on port interfaces, not concrete implementations
|
|
15
|
+
* DDD: Application service coordinating domain objects and ports
|
|
16
|
+
*/
|
|
17
|
+
import type { Result } from "../../domain/shared/value-objects.js";
|
|
18
|
+
import type { LlmPort } from "../../domain/azure-sync/llm-port.js";
|
|
19
|
+
import type { SyncEventRepository, SyncMappingRepository } from "../../domain/azure-sync/repositories.js";
|
|
20
|
+
import type { AzureDevOpsPort } from "../../domain/azure-sync/ports.js";
|
|
21
|
+
import type { IntentExecutor } from "./intent-executor.js";
|
|
22
|
+
export interface ProcessCommentRequest {
|
|
23
|
+
/** The SyncEvent ID to process (must be a pending comment_added event). */
|
|
24
|
+
readonly eventId: string;
|
|
25
|
+
/** Azure DevOps organization slug. */
|
|
26
|
+
readonly org: string;
|
|
27
|
+
/** Azure DevOps project name. */
|
|
28
|
+
readonly project: string;
|
|
29
|
+
/** Workspace ID for kanban / context-memory operations. */
|
|
30
|
+
readonly workspaceId: string;
|
|
31
|
+
}
|
|
32
|
+
export interface ProcessCommentResponse {
|
|
33
|
+
/** The event that was processed. */
|
|
34
|
+
readonly eventId: string;
|
|
35
|
+
/** The Azure work item ID where the comment was posted. */
|
|
36
|
+
readonly azureWorkItemId: number;
|
|
37
|
+
/** Local card ID from SyncMapping, if the work item was mapped. */
|
|
38
|
+
readonly localCardId?: string;
|
|
39
|
+
/** The classified intent action. */
|
|
40
|
+
readonly action: string;
|
|
41
|
+
/** Confidence score (0–1). */
|
|
42
|
+
readonly confidence: number;
|
|
43
|
+
/** Brief reasoning from the LLM. */
|
|
44
|
+
readonly reasoning: string;
|
|
45
|
+
/** Whether a kanban/note action was performed. */
|
|
46
|
+
readonly actionPerformed: boolean;
|
|
47
|
+
/** Card created or modified, if any. */
|
|
48
|
+
readonly affectedCardId?: string;
|
|
49
|
+
/** The reply text posted back to Azure DevOps. */
|
|
50
|
+
readonly replyPosted: string;
|
|
51
|
+
/** Human-readable action label for display. */
|
|
52
|
+
readonly actionLabel: string;
|
|
53
|
+
}
|
|
54
|
+
export interface CommentIntentServiceDeps {
|
|
55
|
+
readonly llmPort: LlmPort;
|
|
56
|
+
readonly intentExecutor: IntentExecutor;
|
|
57
|
+
readonly syncEventRepo: SyncEventRepository;
|
|
58
|
+
readonly syncMappingRepo: SyncMappingRepository;
|
|
59
|
+
readonly azureClient: AzureDevOpsPort;
|
|
60
|
+
}
|
|
61
|
+
export declare class CommentIntentService {
|
|
62
|
+
private readonly deps;
|
|
63
|
+
private readonly replyBuilder;
|
|
64
|
+
constructor(deps: CommentIntentServiceDeps);
|
|
65
|
+
/**
|
|
66
|
+
* Process a comment_added SyncEvent end-to-end.
|
|
67
|
+
*
|
|
68
|
+
* Idempotency: if the event is already acknowledged or dismissed the call
|
|
69
|
+
* returns a fail result without side effects.
|
|
70
|
+
*/
|
|
71
|
+
processEvent(request: ProcessCommentRequest): Promise<Result<ProcessCommentResponse>>;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=comment-intent-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment-intent-service.d.ts","sourceRoot":"","sources":["../../../src/application/azure-sync/comment-intent-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAGnE,OAAO,KAAK,EAAE,OAAO,EAAgB,MAAM,qCAAqC,CAAC;AACjF,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAmB,MAAM,sBAAsB,CAAC;AAK5E,MAAM,WAAW,qBAAqB;IACpC,2EAA2E;IAC3E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,sCAAsC;IACtC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,iCAAiC;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,2DAA2D;IAC3D,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,sBAAsB;IACrC,oCAAoC;IACpC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,2DAA2D;IAC3D,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,mEAAmE;IACnE,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,oCAAoC;IACpC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,8BAA8B;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,oCAAoC;IACpC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,kDAAkD;IAClD,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAClC,wCAAwC;IACxC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,kDAAkD;IAClD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,+CAA+C;IAC/C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAID,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,aAAa,EAAE,mBAAmB,CAAC;IAC5C,QAAQ,CAAC,eAAe,EAAE,qBAAqB,CAAC;IAChD,QAAQ,CAAC,WAAW,EAAE,eAAe,CAAC;CACvC;AAID,qBAAa,oBAAoB;IAC/B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA2B;IAChD,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAqB;gBAEtC,IAAI,EAAE,wBAAwB;IAK1C;;;;;OAKG;IACG,YAAY,CAChB,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC;CAmG3C"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comment Intent Service
|
|
3
|
+
*
|
|
4
|
+
* Orchestrates the full pipeline for processing an Azure DevOps comment:
|
|
5
|
+
* 1. Load SyncEvent and validate it is a pending comment_added event
|
|
6
|
+
* 2. Resolve the SyncMapping to get the local card context
|
|
7
|
+
* 3. Classify the comment via LlmPort
|
|
8
|
+
* 4. Execute the resolved intent via IntentExecutor
|
|
9
|
+
* 5. Build the reply text via IntentReplyBuilder
|
|
10
|
+
* 6. Post the reply to Azure DevOps via AzureDevOpsPort
|
|
11
|
+
* 7. Acknowledge the SyncEvent
|
|
12
|
+
*
|
|
13
|
+
* SOLID: SRP — orchestration only; each step delegated to a focused collaborator
|
|
14
|
+
* SOLID: DIP — depends on port interfaces, not concrete implementations
|
|
15
|
+
* DDD: Application service coordinating domain objects and ports
|
|
16
|
+
*/
|
|
17
|
+
import { ok, fail } from "../../domain/shared/value-objects.js";
|
|
18
|
+
import { SyncEventId } from "../../domain/azure-sync/value-objects.js";
|
|
19
|
+
import { IntentReplyBuilder } from "./intent-reply-builder.js";
|
|
20
|
+
// ─── Service ──────────────────────────────────────────────────────────────────
|
|
21
|
+
export class CommentIntentService {
|
|
22
|
+
deps;
|
|
23
|
+
replyBuilder;
|
|
24
|
+
constructor(deps) {
|
|
25
|
+
this.deps = deps;
|
|
26
|
+
this.replyBuilder = new IntentReplyBuilder();
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Process a comment_added SyncEvent end-to-end.
|
|
30
|
+
*
|
|
31
|
+
* Idempotency: if the event is already acknowledged or dismissed the call
|
|
32
|
+
* returns a fail result without side effects.
|
|
33
|
+
*/
|
|
34
|
+
async processEvent(request) {
|
|
35
|
+
const { eventId, org, project, workspaceId } = request;
|
|
36
|
+
// ── 1. Load and validate SyncEvent ────────────────────────────────────────
|
|
37
|
+
let parsedEventId;
|
|
38
|
+
try {
|
|
39
|
+
parsedEventId = SyncEventId.from(eventId);
|
|
40
|
+
}
|
|
41
|
+
catch {
|
|
42
|
+
return fail(`Invalid event ID format: "${eventId}"`);
|
|
43
|
+
}
|
|
44
|
+
const event = await this.deps.syncEventRepo.findById(parsedEventId);
|
|
45
|
+
if (!event) {
|
|
46
|
+
return fail(`SyncEvent not found: ${eventId}`);
|
|
47
|
+
}
|
|
48
|
+
if (event.eventType !== "comment_added") {
|
|
49
|
+
return fail(`SyncEvent ${eventId} is of type "${event.eventType}", not "comment_added".`);
|
|
50
|
+
}
|
|
51
|
+
if (event.status !== "pending") {
|
|
52
|
+
return fail(`SyncEvent ${eventId} has already been processed (status: "${event.status}").`);
|
|
53
|
+
}
|
|
54
|
+
if (!event.commentText || event.commentText.trim().length === 0) {
|
|
55
|
+
return fail(`SyncEvent ${eventId} has no comment text. Re-run the poll to capture the comment.`);
|
|
56
|
+
}
|
|
57
|
+
// ── 2. Resolve SyncMapping for context ────────────────────────────────────
|
|
58
|
+
const mapping = await this.deps.syncMappingRepo.findById(event.mappingId);
|
|
59
|
+
const localCardId = mapping?.localId;
|
|
60
|
+
const contextHint = localCardId
|
|
61
|
+
? `This comment was posted on the Azure work item mapped to local card ${localCardId}.`
|
|
62
|
+
: undefined;
|
|
63
|
+
// ── 3. Classify intent via LLM ────────────────────────────────────────────
|
|
64
|
+
const classifyResult = await this.deps.llmPort.classifyIntent(event.commentText, contextHint);
|
|
65
|
+
if (!classifyResult.success) {
|
|
66
|
+
return fail(`LLM classification failed: ${classifyResult.error}`);
|
|
67
|
+
}
|
|
68
|
+
const intent = classifyResult.data;
|
|
69
|
+
// ── 4. Execute the intent ─────────────────────────────────────────────────
|
|
70
|
+
const execResult = await this.deps.intentExecutor.execute(intent, {
|
|
71
|
+
localCardId,
|
|
72
|
+
workspaceId,
|
|
73
|
+
});
|
|
74
|
+
// Execution failure is soft: still post a reply so the user is informed.
|
|
75
|
+
const execution = execResult.success
|
|
76
|
+
? execResult.data
|
|
77
|
+
: { actionPerformed: false, summary: `Action failed: ${execResult.error}` };
|
|
78
|
+
// ── 5. Build reply text ───────────────────────────────────────────────────
|
|
79
|
+
const { text: replyText, actionLabel } = this.replyBuilder.build(intent, execution.affectedCardId);
|
|
80
|
+
// ── 6. Post reply to Azure DevOps ─────────────────────────────────────────
|
|
81
|
+
const commentResult = await this.deps.azureClient.addComment(org, project, event.azureWorkItemId, replyText);
|
|
82
|
+
// Acknowledge the event regardless of whether the reply succeeded
|
|
83
|
+
// to prevent infinite reprocessing loops.
|
|
84
|
+
event.acknowledge();
|
|
85
|
+
await this.deps.syncEventRepo.update(event);
|
|
86
|
+
const finalReply = commentResult.success
|
|
87
|
+
? replyText
|
|
88
|
+
: `${replyText} [Warning: reply could not be posted to Azure — ${commentResult.error}]`;
|
|
89
|
+
return ok({
|
|
90
|
+
eventId,
|
|
91
|
+
azureWorkItemId: event.azureWorkItemId,
|
|
92
|
+
...(localCardId !== undefined ? { localCardId } : {}),
|
|
93
|
+
action: intent.action,
|
|
94
|
+
confidence: intent.confidence,
|
|
95
|
+
reasoning: intent.reasoning,
|
|
96
|
+
actionPerformed: execution.actionPerformed,
|
|
97
|
+
...(execution.affectedCardId !== undefined
|
|
98
|
+
? { affectedCardId: execution.affectedCardId }
|
|
99
|
+
: {}),
|
|
100
|
+
replyPosted: finalReply,
|
|
101
|
+
actionLabel,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=comment-intent-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comment-intent-service.js","sourceRoot":"","sources":["../../../src/application/azure-sync/comment-intent-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAQvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAgD/D,iFAAiF;AAEjF,MAAM,OAAO,oBAAoB;IACd,IAAI,CAA2B;IAC/B,YAAY,CAAqB;IAElD,YAAY,IAA8B;QACxC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,YAAY,GAAG,IAAI,kBAAkB,EAAE,CAAC;I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,CAAC,OAAO;YACtC,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,GAAG,SAAS,mDAAmD,aAAa,CAAC,KAAK,GAAG,CAAC;QAE1F,OAAO,EAAE,CAAC;YACR,OAAO;YACP,eAAe,EAAE,KAAK,CAAC,eAAe;YACtC,GAAG,CAAC,WAAW,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACrD,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,eAAe,EAAE,SAAS,CAAC,eAAe;YAC1C,GAAG,CAAC,SAAS,CAAC,cAAc,KAAK,SAAS;gBACxC,CAAC,CAAC,EAAE,cAAc,EAAE,SAAS,CAAC,cAAc,EAAE;gBAC9C,CAAC,CAAC,EAAE,CAAC;YACP,WAAW,EAAE,UAAU;YACvB,WAAW;SACZ,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dtos.d.ts","sourceRoot":"","sources":["../../../src/application/azure-sync/dtos.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"dtos.d.ts","sourceRoot":"","sources":["../../../src/application/azure-sync/dtos.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,WAAW,eAAe;IAC5B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1C,QAAQ,CAA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C,OAAO,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC3B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,EAAE,cAAc,GAAG,SAAS,GAAG,QAAQ,CAAC;IAC5D,QAAQ,CAAC,WAAW,CAAC,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,eAAe;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAoB;IACjC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;CACrC"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* DDD: Application-layer transformation between local and Azure representations
|
|
9
9
|
*/
|
|
10
10
|
import type { WorkItemPatchOp } from "../../domain/azure-sync/ports.js";
|
|
11
|
-
import type { ProcessTemplate } from "../../domain/azure-sync/value-objects.js";
|
|
11
|
+
import type { ProcessTemplate, LocalKanbanState } from "../../domain/azure-sync/value-objects.js";
|
|
12
12
|
import { FieldMapper } from "../../domain/azure-sync/services.js";
|
|
13
13
|
/** Minimal epic shape needed for field building. */
|
|
14
14
|
export interface EpicFieldInput {
|
|
@@ -21,7 +21,7 @@ export interface CardFieldInput {
|
|
|
21
21
|
readonly title: string;
|
|
22
22
|
readonly description: string | undefined;
|
|
23
23
|
readonly priority: string;
|
|
24
|
-
readonly status:
|
|
24
|
+
readonly status: LocalKanbanState;
|
|
25
25
|
readonly storyPoints: number | undefined;
|
|
26
26
|
readonly acceptanceCriteria: readonly {
|
|
27
27
|
description: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-builders.d.ts","sourceRoot":"","sources":["../../../src/application/azure-sync/field-builders.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"field-builders.d.ts","sourceRoot":"","sources":["../../../src/application/azure-sync/field-builders.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAElG,OAAO,EAAE,WAAW,EAAgB,MAAM,qCAAqC,CAAC;AAYhF,oDAAoD;AACpD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,oDAAoD;AACpD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,gBAAgB,CAAC;IAClC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,kBAAkB,EAAE,SAAS;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;IAC9E,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5C;AAED,4EAA4E;AAC5E,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5C;AAID;;;GAGG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAc;gBAE9B,WAAW,EAAE,WAAW;IAIpC,6CAA6C;IAC7C,eAAe,CAAC,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,eAAe,GAAG,SAAS,eAAe,EAAE;IAyB7F,kDAAkD;IAClD,eAAe,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,eAAe,GAAG,SAAS,eAAe,EAAE;IAyC5F,iFAAiF;IACjF,eAAe,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,eAAe,GAAG,SAAS,eAAe,EAAE;IA2B5F,OAAO,CAAC,sBAAsB;IA2C9B,OAAO,CAAC,iBAAiB;CA0B1B"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* DDD: Application-layer transformation between local and Azure representations
|
|
9
9
|
*/
|
|
10
10
|
import { TASK_STATE_FOR_MET } from "../../domain/azure-sync/value-objects.js";
|
|
11
|
-
import {
|
|
11
|
+
import { AZURE_FIELDS } from "../../domain/azure-sync/services.js";
|
|
12
12
|
// ─── Priority Map ─────────────────────────────────────────────────────────────
|
|
13
13
|
const PRIORITY_MAP = {
|
|
14
14
|
high: 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-builders.js","sourceRoot":"","sources":["../../../src/application/azure-sync/field-builders.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,
|
|
1
|
+
{"version":3,"file":"field-builders.js","sourceRoot":"","sources":["../../../src/application/azure-sync/field-builders.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,EAAe,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAEhF,iFAAiF;AAEjF,MAAM,YAAY,GAA2B;IAC3C,IAAI,EAAE,CAAC;IACP,MAAM,EAAE,CAAC;IACT,GAAG,EAAE,CAAC;CACP,CAAC;AA6BF,iFAAiF;AAEjF;;;GAGG;AACH,MAAM,OAAO,iBAAiB;IACX,WAAW,CAAc;IAE1C,YAAY,WAAwB;QAClC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED,6CAA6C;IAC7C,eAAe,CAAC,IAAoB,EAAE,SAA0B;QAC9D,MAAM,MAAM,GAAsB;YAChC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,YAAY,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE;SACxE,CAAC;QAEF,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;YACnC,MAAM,CAAC,IAAI,CAAC;gBACV,EAAE,EAAE,KAAK;gBACT,IAAI,EAAE,WAAW,YAAY,CAAC,WAAW,EAAE;gBAC3C,KAAK,EAAE,IAAI,CAAC,WAAW;aACxB,CAAC,CAAC;QACL,CAAC;QAED,MAAM,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzC,IAAI,IAAI,KAAK,SAAS,EAA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ACL,CAAC;QACH,CAAC;IACH,CAAC;IAEO,iBAAiB,CACvB,MAAyB,EACzB,IAAoB,EACpB,QAAyB;QAEzB,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC;QAC7D,MAAM,SAAS,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,aAAa,CAAC,CAAC;QAEvE,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,IAAI,SAAS,EAAE,CAAC;YAChD,IAAI,SAAS,CAAC,QAAQ,KAAK,KAAK,EAAE,CAAC;gBACjC,4BAA4B;gBAC5B,MAAM,CAAC,IAAI,CAAC;oBACV,EAAE,EAAE,KAAK;oBACT,IAAI,EAAE,WAAW,YAAY,CAAC,IAAI,EAAE;oBACpC,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;iBAClE,CAAC,CAAC;YACL,CAAC;iBAAM,CAAC;gBACN,4BAA4B;gBAC5B,MAAM,CAAC,IAAI,CAAC;oBACV,EAAE,EAAE,KAAK;oBACT,IAAI,EAAE,WAAW,SAAS,CAAC,UAAU,EAAE;oBACvC,KAAK,EAAE,IAAI,CAAC,WAAW;iBACxB,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Intent Executor
|
|
3
|
+
*
|
|
4
|
+
* Executes the kanban or context-memory action resolved by the LLM
|
|
5
|
+
* for a classified comment intent.
|
|
6
|
+
*
|
|
7
|
+
* SOLID: SRP — action execution only; no LLM calls, no reply building
|
|
8
|
+
* SOLID: DIP — depends on KanbanCardPort and NoteUseCases abstractions
|
|
9
|
+
* DDD: Application service; coordinates across kanban and context-memory
|
|
10
|
+
* bounded contexts via their port interfaces (no direct imports)
|
|
11
|
+
*/
|
|
12
|
+
import type { Result } from "../../domain/shared/value-objects.js";
|
|
13
|
+
import type { IntentResult } from "../../domain/azure-sync/llm-port.js";
|
|
14
|
+
import type { KanbanCardPort } from "./kanban-sync-ports.js";
|
|
15
|
+
import type { NoteUseCases } from "../context-memory/note-use-cases.js";
|
|
16
|
+
/**
|
|
17
|
+
* Runtime context for intent execution.
|
|
18
|
+
* Carries the identifiers needed to resolve the target card without
|
|
19
|
+
* requiring the user to specify them in every comment.
|
|
20
|
+
*/
|
|
21
|
+
export interface ExecutionContext {
|
|
22
|
+
/** Local card ID inferred from the SyncMapping (e.g., "CD-005"). Undefined if unmapped. */
|
|
23
|
+
readonly localCardId?: string;
|
|
24
|
+
/** Workspace ID for card creation and note logging. */
|
|
25
|
+
readonly workspaceId: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ExecutionResult {
|
|
28
|
+
/** True when a concrete kanban or context-memory action was performed. */
|
|
29
|
+
readonly actionPerformed: boolean;
|
|
30
|
+
/** The card ID that was created or modified, if any. */
|
|
31
|
+
readonly affectedCardId?: string;
|
|
32
|
+
/** Human-readable summary of the action (for reply and logs). */
|
|
33
|
+
readonly summary: string;
|
|
34
|
+
}
|
|
35
|
+
export interface IntentExecutorDeps {
|
|
36
|
+
readonly cardPort: KanbanCardPort;
|
|
37
|
+
readonly noteUseCases: NoteUseCases;
|
|
38
|
+
}
|
|
39
|
+
export declare class IntentExecutor {
|
|
40
|
+
private readonly deps;
|
|
41
|
+
constructor(deps: IntentExecutorDeps);
|
|
42
|
+
/**
|
|
43
|
+
* Execute the action described by an IntentResult.
|
|
44
|
+
*
|
|
45
|
+
* For `reply-plan` and `unknown` no kanban/note action is performed —
|
|
46
|
+
* the reply is handled by CommentIntentService via IntentReplyBuilder.
|
|
47
|
+
*/
|
|
48
|
+
execute(intent: IntentResult, ctx: ExecutionContext): Promise<Result<ExecutionResult>>;
|
|
49
|
+
private executeCreateCard;
|
|
50
|
+
private executeMoveCard;
|
|
51
|
+
private executeAddAc;
|
|
52
|
+
private executeAddNote;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=intent-executor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intent-executor.d.ts","sourceRoot":"","sources":["../../../src/application/azure-sync/intent-executor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAEnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAIxE;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,2FAA2F;IAC3F,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,uDAAuD;IACvD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAID,MAAM,WAAW,eAAe;IAC9B,0EAA0E;IAC1E,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAClC,wDAAwD;IACxD,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,iEAAiE;IACjE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAID,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;CACrC;AAID,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAqB;gBAE9B,IAAI,EAAE,kBAAkB;IAIpC;;;;;OAKG;IACG,OAAO,CACX,MAAM,EAAE,YAAY,EACpB,GAAG,EAAE,gBAAgB,GACpB,OAAO,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC;YAqBrB,iBAAiB;YA8BjB,eAAe;YAqCf,YAAY;YAmCZ,cAAc;CA4B7B"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Intent Executor
|
|
3
|
+
*
|
|
4
|
+
* Executes the kanban or context-memory action resolved by the LLM
|
|
5
|
+
* for a classified comment intent.
|
|
6
|
+
*
|
|
7
|
+
* SOLID: SRP — action execution only; no LLM calls, no reply building
|
|
8
|
+
* SOLID: DIP — depends on KanbanCardPort and NoteUseCases abstractions
|
|
9
|
+
* DDD: Application service; coordinates across kanban and context-memory
|
|
10
|
+
* bounded contexts via their port interfaces (no direct imports)
|
|
11
|
+
*/
|
|
12
|
+
import { ok, fail } from "../../domain/shared/value-objects.js";
|
|
13
|
+
// ─── Executor ─────────────────────────────────────────────────────────────────
|
|
14
|
+
export class IntentExecutor {
|
|
15
|
+
deps;
|
|
16
|
+
constructor(deps) {
|
|
17
|
+
this.deps = deps;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Execute the action described by an IntentResult.
|
|
21
|
+
*
|
|
22
|
+
* For `reply-plan` and `unknown` no kanban/note action is performed —
|
|
23
|
+
* the reply is handled by CommentIntentService via IntentReplyBuilder.
|
|
24
|
+
*/
|
|
25
|
+
async execute(intent, ctx) {
|
|
26
|
+
switch (intent.action) {
|
|
27
|
+
case "create-card":
|
|
28
|
+
return this.executeCreateCard(intent, ctx);
|
|
29
|
+
case "move-card":
|
|
30
|
+
return this.executeMoveCard(intent, ctx);
|
|
31
|
+
case "add-ac":
|
|
32
|
+
return this.executeAddAc(intent, ctx);
|
|
33
|
+
case "add-note":
|
|
34
|
+
return this.executeAddNote(intent, ctx);
|
|
35
|
+
case "reply-plan":
|
|
36
|
+
case "unknown":
|
|
37
|
+
return ok({
|
|
38
|
+
actionPerformed: false,
|
|
39
|
+
summary: `No kanban action for intent "${intent.action}". Reply will be posted.`,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
// ─── Action handlers ──────────────────────────────────────────────────────
|
|
44
|
+
async executeCreateCard(intent, ctx) {
|
|
45
|
+
const { title, description } = intent.params;
|
|
46
|
+
if (!title || title.trim().length === 0) {
|
|
47
|
+
return fail("create-card intent: LLM did not provide a card title. Cannot create card.");
|
|
48
|
+
}
|
|
49
|
+
const result = await this.deps.cardPort.createCard({
|
|
50
|
+
title: title.trim(),
|
|
51
|
+
workspace: ctx.workspaceId,
|
|
52
|
+
...(description ? { description: description.trim() } : {}),
|
|
53
|
+
});
|
|
54
|
+
if (!result.success) {
|
|
55
|
+
return fail(`create-card failed: ${result.error}`);
|
|
56
|
+
}
|
|
57
|
+
const cardId = result.data.id;
|
|
58
|
+
return ok({
|
|
59
|
+
actionPerformed: true,
|
|
60
|
+
affectedCardId: cardId,
|
|
61
|
+
summary: `Created card ${cardId}: "${title}"`,
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
async executeMoveCard(intent, ctx) {
|
|
65
|
+
// Resolve card ID: prefer explicit from LLM, fall back to SyncMapping context
|
|
66
|
+
const cardId = intent.params.cardId ?? ctx.localCardId;
|
|
67
|
+
if (!cardId) {
|
|
68
|
+
return fail("move-card intent: no card ID available (not in comment and work item is not mapped).");
|
|
69
|
+
}
|
|
70
|
+
const targetStatus = intent.params.status;
|
|
71
|
+
if (!targetStatus || targetStatus.trim().length === 0) {
|
|
72
|
+
return fail("move-card intent: LLM did not provide a target status.");
|
|
73
|
+
}
|
|
74
|
+
const result = await this.deps.cardPort.moveCard({
|
|
75
|
+
cardId,
|
|
76
|
+
targetStatus: targetStatus.trim(),
|
|
77
|
+
justification: `Moved via Azure DevOps comment (intent: move-card, confidence: ${intent.confidence.toFixed(2)})`,
|
|
78
|
+
});
|
|
79
|
+
if (!result.success) {
|
|
80
|
+
return fail(`move-card failed: ${result.error}`);
|
|
81
|
+
}
|
|
82
|
+
return ok({
|
|
83
|
+
actionPerformed: true,
|
|
84
|
+
affectedCardId: cardId,
|
|
85
|
+
summary: `Moved card ${cardId} to "${targetStatus}"`,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
async executeAddAc(intent, ctx) {
|
|
89
|
+
const cardId = intent.params.cardId ?? ctx.localCardId;
|
|
90
|
+
if (!cardId) {
|
|
91
|
+
return fail("add-ac intent: no card ID available (not in comment and work item is not mapped).");
|
|
92
|
+
}
|
|
93
|
+
const criterion = intent.params.criterion;
|
|
94
|
+
if (!criterion || criterion.trim().length === 0) {
|
|
95
|
+
return fail("add-ac intent: LLM did not provide an acceptance criterion description.");
|
|
96
|
+
}
|
|
97
|
+
const result = await this.deps.cardPort.addAcceptanceCriterion({
|
|
98
|
+
cardId,
|
|
99
|
+
description: criterion.trim(),
|
|
100
|
+
});
|
|
101
|
+
if (!result.success) {
|
|
102
|
+
return fail(`add-ac failed: ${result.error}`);
|
|
103
|
+
}
|
|
104
|
+
return ok({
|
|
105
|
+
actionPerformed: true,
|
|
106
|
+
affectedCardId: cardId,
|
|
107
|
+
summary: `Added AC to ${cardId}: "${criterion}"`,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
async executeAddNote(intent, ctx) {
|
|
111
|
+
const content = intent.params.description ?? intent.params.title;
|
|
112
|
+
if (!content || content.trim().length === 0) {
|
|
113
|
+
return fail("add-note intent: LLM did not provide note content.");
|
|
114
|
+
}
|
|
115
|
+
const result = await this.deps.noteUseCases.addNote({
|
|
116
|
+
content: content.trim(),
|
|
117
|
+
workspace: ctx.workspaceId,
|
|
118
|
+
type: "note",
|
|
119
|
+
tags: ["azure-comment", ...(ctx.localCardId ? [ctx.localCardId] : [])],
|
|
120
|
+
});
|
|
121
|
+
if (!result.success) {
|
|
122
|
+
return fail(`add-note failed: ${result.error}`);
|
|
123
|
+
}
|
|
124
|
+
return ok({
|
|
125
|
+
actionPerformed: true,
|
|
126
|
+
summary: `Note logged: "${content.slice(0, 60)}${content.length > 60 ? "..." : ""}"`,
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
//# sourceMappingURL=intent-executor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intent-executor.js","sourceRoot":"","sources":["../../../src/application/azure-sync/intent-executor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAqChE,iFAAiF;AAEjF,MAAM,OAAO,cAAc;IACR,IAAI,CAAqB;IAE1C,YAAY,IAAwB;QAClC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CACX,MAAoB,EACpB,GAAqB;QAErB,QAAQ,MAAM,CAAC,MAAM,EAAE,CAAC;YACtB,KAAK,aAAa;gBAChB,OAAO,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YAC7C,KAAK,WAAW;gBACd,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YAC3C,KAAK,QAAQ;gBACX,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YACxC,KAAK,UAAU;gBACb,OAAO,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YAC1C,KAAK,YAAY,CAAC;YAClB,KAAK,SAAS;gBACZ,OAAO,EAAE,CAAC;oBACR,eAAe,EAAE,KAAK;oBACtB,OAAO,EAAE,gCAAgC,MAAM,CAAC,MAAM,0BAA0B;iBACjF,CAAC,CAAC;QACP,CAAC;IACH,CAAC;IAED,6EAA6E;IAErE,KAAK,CAAC,iBAAiB,CAC7B,MAAoB,EACpB,GAAqB;QAErB,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC;QAE7C,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACxC,OAAO,IAAI,CACT,2EAA2E,CAC5E,CAAC;QACJ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AC;IAEO,KAAK,CAAC,cAAc,CAC1B,MAAoB,EACpB,GAAqB;QAErB,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;QAEjE,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC5C,OAAO,IAAI,CACT,oDAAoD,CACrD,CAAC;QACJ,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC;YAClD,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE;YACvB,SAAS,EAAE,GAAG,CAAC,WAAW;YAC1B,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,CAAC,eAAe,EAAE,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;SACvE,CAAC,CAAC;QAEH,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACpB,OAAO,IAAI,CAAC,oBAAoB,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;QAClD,CAAC;QAED,OAAO,EAAE,CAAC;YACR,eAAe,EAAE,IAAI;YACrB,OAAO,EAAE,iBAAiB,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG;SACrF,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Intent Reply Builder
|
|
3
|
+
*
|
|
4
|
+
* Formats the reply comment text that JARVIS posts back to Azure DevOps
|
|
5
|
+
* after processing a comment intent. Produces plain text with a [JARVIS]
|
|
6
|
+
* prefix for all action types.
|
|
7
|
+
*
|
|
8
|
+
* SOLID: SRP — reply text formatting only; no side effects, no I/O
|
|
9
|
+
* DDD: Application service helper; stateless, pure transformation
|
|
10
|
+
*/
|
|
11
|
+
import type { IntentResult } from "../../domain/azure-sync/llm-port.js";
|
|
12
|
+
export interface BuiltReply {
|
|
13
|
+
/** Full comment text to post to Azure DevOps. */
|
|
14
|
+
readonly text: string;
|
|
15
|
+
/** Short action label for tool output display. */
|
|
16
|
+
readonly actionLabel: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Builds the Azure DevOps reply comment from an IntentResult.
|
|
20
|
+
*
|
|
21
|
+
* For all intents the reply is:
|
|
22
|
+
* [JARVIS] <replyText from LLM>
|
|
23
|
+
*
|
|
24
|
+
* The LLM already tailors replyText per action (confirmed action for known
|
|
25
|
+
* intents, contextual answer for unknown/reply-plan). This builder adds the
|
|
26
|
+
* standard prefix and derives the human-readable action label.
|
|
27
|
+
*/
|
|
28
|
+
export declare class IntentReplyBuilder {
|
|
29
|
+
/** Azure DevOps comment prefix identifying the agent. */
|
|
30
|
+
static readonly PREFIX = "[JARVIS]";
|
|
31
|
+
/**
|
|
32
|
+
* Build the reply comment from an IntentResult.
|
|
33
|
+
*
|
|
34
|
+
* @param result - The classified intent from the LLM.
|
|
35
|
+
* @param executedCardId - Optional card ID that was created/modified,
|
|
36
|
+
* appended to the reply for traceability.
|
|
37
|
+
*/
|
|
38
|
+
build(result: IntentResult, executedCardId?: string): BuiltReply;
|
|
39
|
+
private labelFor;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=intent-reply-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intent-reply-builder.d.ts","sourceRoot":"","sources":["../../../src/application/azure-sync/intent-reply-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AAIxE,MAAM,WAAW,UAAU;IACzB,iDAAiD;IACjD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,kDAAkD;IAClD,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAID;;;;;;;;;GASG;AACH,qBAAa,kBAAkB;IAC7B,yDAAyD;IACzD,MAAM,CAAC,QAAQ,CAAC,MAAM,cAAc;IAEpC;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,EAAE,YAAY,EAAE,cAAc,CAAC,EAAE,MAAM,GAAG,UAAU;IAYhE,OAAO,CAAC,QAAQ;CAgBjB"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Intent Reply Builder
|
|
3
|
+
*
|
|
4
|
+
* Formats the reply comment text that JARVIS posts back to Azure DevOps
|
|
5
|
+
* after processing a comment intent. Produces plain text with a [JARVIS]
|
|
6
|
+
* prefix for all action types.
|
|
7
|
+
*
|
|
8
|
+
* SOLID: SRP — reply text formatting only; no side effects, no I/O
|
|
9
|
+
* DDD: Application service helper; stateless, pure transformation
|
|
10
|
+
*/
|
|
11
|
+
// ─── Builder ──────────────────────────────────────────────────────────────────
|
|
12
|
+
/**
|
|
13
|
+
* Builds the Azure DevOps reply comment from an IntentResult.
|
|
14
|
+
*
|
|
15
|
+
* For all intents the reply is:
|
|
16
|
+
* [JARVIS] <replyText from LLM>
|
|
17
|
+
*
|
|
18
|
+
* The LLM already tailors replyText per action (confirmed action for known
|
|
19
|
+
* intents, contextual answer for unknown/reply-plan). This builder adds the
|
|
20
|
+
* standard prefix and derives the human-readable action label.
|
|
21
|
+
*/
|
|
22
|
+
export class IntentReplyBuilder {
|
|
23
|
+
/** Azure DevOps comment prefix identifying the agent. */
|
|
24
|
+
static PREFIX = "[JARVIS]";
|
|
25
|
+
/**
|
|
26
|
+
* Build the reply comment from an IntentResult.
|
|
27
|
+
*
|
|
28
|
+
* @param result - The classified intent from the LLM.
|
|
29
|
+
* @param executedCardId - Optional card ID that was created/modified,
|
|
30
|
+
* appended to the reply for traceability.
|
|
31
|
+
*/
|
|
32
|
+
build(result, executedCardId) {
|
|
33
|
+
const baseText = result.replyText.trim();
|
|
34
|
+
const cardRef = executedCardId ? ` (${executedCardId})` : "";
|
|
35
|
+
const text = `${IntentReplyBuilder.PREFIX} ${baseText}${cardRef}`;
|
|
36
|
+
const actionLabel = this.labelFor(result.action);
|
|
37
|
+
return { text, actionLabel };
|
|
38
|
+
}
|
|
39
|
+
// ─── Private ───────────────────────────────────────────────────────────────
|
|
40
|
+
labelFor(action) {
|
|
41
|
+
switch (action) {
|
|
42
|
+
case "create-card":
|
|
43
|
+
return "Card created";
|
|
44
|
+
case "move-card":
|
|
45
|
+
return "Card moved";
|
|
46
|
+
case "add-ac":
|
|
47
|
+
return "Acceptance criterion added";
|
|
48
|
+
case "add-note":
|
|
49
|
+
return "Note logged";
|
|
50
|
+
case "reply-plan":
|
|
51
|
+
return "Reply posted";
|
|
52
|
+
case "unknown":
|
|
53
|
+
return "Comment acknowledged";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=intent-reply-builder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intent-reply-builder.js","sourceRoot":"","sources":["../../../src/application/azure-sync/intent-reply-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAaH,iFAAiF;AAEjF;;;;;;;;;GASG;AACH,MAAM,OAAO,kBAAkB;IAC7B,yDAAyD;IACzD,MAAM,CAAU,MAAM,GAAG,UAAU,CAAC;IAEpC;;;;;;OAMG;IACH,KAAK,CAAC,MAAoB,EAAE,cAAuB;QACjD,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,cAAc,CAAC,CAAC,CAAC,KAAK,cAAc,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAE7D,MAAM,IAAI,GAAG,GAAG,kBAAkB,CAAC,MAAM,IAAI,QAAQ,GAAG,OAAO,EAAE,CAAC;QAClE,MAAM,WAAW,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QAEjD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IAC/B,CAAC;IAED,8EAA8E;IAEtE,QAAQ,CAAC,MAA8B;QAC7C,QAAQ,MAAM,EAAE,CAAC;YACf,KAAK,aAAa;gBAChB,OAAO,cAAc,CAAC;YACxB,KAAK,WAAW;gBACd,OAAO,YAAY,CAAC;YACtB,KAAK,QAAQ;gBACX,OAAO,4BAA4B,CAAC;YACtC,KAAK,UAAU;gBACb,OAAO,aAAa,CAAC;YACvB,KAAK,YAAY;gBACf,OAAO,cAAc,CAAC;YACxB,KAAK,SAAS;gBACZ,OAAO,sBAAsB,CAAC;QAClC,CAAC;IACH,CAAC"}
|