@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,124 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Azure Sync Domain — SyncLog and SyncEvent Entities
|
|
3
|
+
*
|
|
4
|
+
* SyncLog records individual sync operations for auditability.
|
|
5
|
+
* SyncEvent represents a detected change in Azure DevOps.
|
|
6
|
+
*
|
|
7
|
+
* SOLID: SRP — audit and event entities only; SyncMapping lives in entities.ts
|
|
8
|
+
* DDD: Entities with identity; SyncLog is immutable, SyncEvent has mutable status
|
|
9
|
+
*/
|
|
10
|
+
import { Timestamp } from "../shared/value-objects.js";
|
|
11
|
+
import { SyncLogId, SyncEventId, SyncMappingId } from "./value-objects.js";
|
|
12
|
+
import type { SyncDirection, SyncEventType, SyncEventStatus } from "./value-objects.js";
|
|
13
|
+
export declare const SYNC_LOG_STATUSES: readonly ["success", "failed", "skipped", "conflict"];
|
|
14
|
+
export type SyncLogStatus = (typeof SYNC_LOG_STATUSES)[number];
|
|
15
|
+
/** Serializable properties for SyncLog persistence. */
|
|
16
|
+
export interface SyncLogProps {
|
|
17
|
+
readonly id: string;
|
|
18
|
+
readonly mappingId: string;
|
|
19
|
+
readonly direction: SyncDirection;
|
|
20
|
+
readonly status: SyncLogStatus;
|
|
21
|
+
readonly detail: string;
|
|
22
|
+
readonly timestamp: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Records an individual sync operation for auditability.
|
|
26
|
+
* Immutable after creation — log entries are never modified.
|
|
27
|
+
*/
|
|
28
|
+
export declare class SyncLog {
|
|
29
|
+
private readonly _id;
|
|
30
|
+
private readonly _mappingId;
|
|
31
|
+
private readonly _direction;
|
|
32
|
+
private readonly _status;
|
|
33
|
+
private readonly _detail;
|
|
34
|
+
private readonly _timestamp;
|
|
35
|
+
private constructor();
|
|
36
|
+
static create(params: {
|
|
37
|
+
id: SyncLogId;
|
|
38
|
+
mappingId: SyncMappingId;
|
|
39
|
+
direction: SyncDirection;
|
|
40
|
+
status: SyncLogStatus;
|
|
41
|
+
detail: string;
|
|
42
|
+
timestamp: Timestamp;
|
|
43
|
+
}): SyncLog;
|
|
44
|
+
static reconstitute(params: {
|
|
45
|
+
id: SyncLogId;
|
|
46
|
+
mappingId: SyncMappingId;
|
|
47
|
+
direction: SyncDirection;
|
|
48
|
+
status: SyncLogStatus;
|
|
49
|
+
detail: string;
|
|
50
|
+
timestamp: Timestamp;
|
|
51
|
+
}): SyncLog;
|
|
52
|
+
get id(): SyncLogId;
|
|
53
|
+
get mappingId(): SyncMappingId;
|
|
54
|
+
get direction(): SyncDirection;
|
|
55
|
+
get status(): SyncLogStatus;
|
|
56
|
+
get detail(): string;
|
|
57
|
+
get timestamp(): Timestamp;
|
|
58
|
+
toProps(): SyncLogProps;
|
|
59
|
+
}
|
|
60
|
+
/** Serializable props for SyncEvent persistence. */
|
|
61
|
+
export interface SyncEventProps {
|
|
62
|
+
readonly id: string;
|
|
63
|
+
readonly mappingId: string;
|
|
64
|
+
readonly azureWorkItemId: number;
|
|
65
|
+
readonly eventType: SyncEventType;
|
|
66
|
+
readonly status: SyncEventStatus;
|
|
67
|
+
readonly changedBy: string;
|
|
68
|
+
readonly changedFields: string;
|
|
69
|
+
readonly previousRevision: number;
|
|
70
|
+
readonly newRevision: number;
|
|
71
|
+
readonly detectedAt: string;
|
|
72
|
+
/** Text of the comment that triggered a comment_added event. Empty string if not applicable. */
|
|
73
|
+
readonly commentText: string;
|
|
74
|
+
/** ID of the comment that triggered a comment_added event. 0 if not applicable. */
|
|
75
|
+
readonly commentId: number;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Immutable entity representing a detected change in Azure DevOps.
|
|
79
|
+
* Created by the poll service when a mapped work item changes.
|
|
80
|
+
*/
|
|
81
|
+
export declare class SyncEvent {
|
|
82
|
+
private readonly _id;
|
|
83
|
+
private readonly _mappingId;
|
|
84
|
+
private readonly _azureWorkItemId;
|
|
85
|
+
private readonly _eventType;
|
|
86
|
+
private _status;
|
|
87
|
+
private readonly _changedBy;
|
|
88
|
+
private readonly _changedFields;
|
|
89
|
+
private readonly _previousRevision;
|
|
90
|
+
private readonly _newRevision;
|
|
91
|
+
private readonly _detectedAt;
|
|
92
|
+
private readonly _commentText;
|
|
93
|
+
private readonly _commentId;
|
|
94
|
+
private constructor();
|
|
95
|
+
static create(params: {
|
|
96
|
+
id: SyncEventId;
|
|
97
|
+
mappingId: SyncMappingId;
|
|
98
|
+
azureWorkItemId: number;
|
|
99
|
+
eventType: SyncEventType;
|
|
100
|
+
changedBy: string;
|
|
101
|
+
changedFields: string;
|
|
102
|
+
previousRevision: number;
|
|
103
|
+
newRevision: number;
|
|
104
|
+
commentText?: string;
|
|
105
|
+
commentId?: number;
|
|
106
|
+
}): SyncEvent;
|
|
107
|
+
static reconstitute(props: SyncEventProps): SyncEvent;
|
|
108
|
+
get id(): SyncEventId;
|
|
109
|
+
get mappingId(): SyncMappingId;
|
|
110
|
+
get azureWorkItemId(): number;
|
|
111
|
+
get eventType(): SyncEventType;
|
|
112
|
+
get status(): SyncEventStatus;
|
|
113
|
+
get changedBy(): string;
|
|
114
|
+
get changedFields(): string;
|
|
115
|
+
get previousRevision(): number;
|
|
116
|
+
get newRevision(): number;
|
|
117
|
+
get detectedAt(): Timestamp;
|
|
118
|
+
get commentText(): string;
|
|
119
|
+
get commentId(): number;
|
|
120
|
+
acknowledge(): void;
|
|
121
|
+
dismiss(): void;
|
|
122
|
+
toProps(): SyncEventProps;
|
|
123
|
+
}
|
|
124
|
+
//# sourceMappingURL=sync-log-entities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-log-entities.d.ts","sourceRoot":"","sources":["../../../src/domain/azure-sync/sync-log-entities.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC3E,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,eAAe,EAChB,MAAM,oBAAoB,CAAC;AAI5B,eAAO,MAAM,iBAAiB,uDAKpB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAI/D,uDAAuD;AACvD,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,qBAAa,OAAO;IAClB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAY;IAChC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgB;IAC3C,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAgB;IAC3C,OAAO,CAAC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G,SAAS;IAiBrD,IAAI,EAAE,IAAI,WAAW,CAAqB;IAC1C,IAAI,SAAS,IAAI,aAAa,CAA4B;IAC1D,IAAI,eAAe,IAAI,MAAM,CAAkC;IAC/D,IAAI,SAAS,IAAI,aAAa,CAA4B;IAC1D,IAAI,MAAM,IAAI,eAAe,CAAyB;IACtD,IAAI,SAAS,IAAI,MAAM,CAA4B;IACnD,IAAI,aAAa,IAAI,MAAM,CAAgC;IAC3D,IAAI,gBAAgB,IAAI,MAAM,CAAmC;IACjE,IAAI,WAAW,IAAI,MAAM,CAA8B;IACvD,IAAI,UAAU,IAAI,SAAS,CAA6B;IACxD,IAAI,WAAW,IAAI,MAAM,CAA8B;IACvD,IAAI,SAAS,IAAI,MAAM,CAA4B;IAEnD,WAAW,IAAI,IAAI;IACnB,OAAO,IAAI,IAAI;IAEf,OAAO,IAAI,cAAc;CAgB1B"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Azure Sync Domain — SyncLog and SyncEvent Entities
|
|
3
|
+
*
|
|
4
|
+
* SyncLog records individual sync operations for auditability.
|
|
5
|
+
* SyncEvent represents a detected change in Azure DevOps.
|
|
6
|
+
*
|
|
7
|
+
* SOLID: SRP — audit and event entities only; SyncMapping lives in entities.ts
|
|
8
|
+
* DDD: Entities with identity; SyncLog is immutable, SyncEvent has mutable status
|
|
9
|
+
*/
|
|
10
|
+
import { Timestamp } from "../shared/value-objects.js";
|
|
11
|
+
import { SyncEventId, SyncMappingId } from "./value-objects.js";
|
|
12
|
+
// ─── Sync Log Status ──────────────────────────────────────────────────────────
|
|
13
|
+
export const SYNC_LOG_STATUSES = [
|
|
14
|
+
"success",
|
|
15
|
+
"failed",
|
|
16
|
+
"skipped",
|
|
17
|
+
"conflict",
|
|
18
|
+
];
|
|
19
|
+
/**
|
|
20
|
+
* Records an individual sync operation for auditability.
|
|
21
|
+
* Immutable after creation — log entries are never modified.
|
|
22
|
+
*/
|
|
23
|
+
export class SyncLog {
|
|
24
|
+
_id;
|
|
25
|
+
_mappingId;
|
|
26
|
+
_direction;
|
|
27
|
+
_status;
|
|
28
|
+
_detail;
|
|
29
|
+
_timestamp;
|
|
30
|
+
constructor(_id, _mappingId, _direction, _status, _detail, _timestamp) {
|
|
31
|
+
this._id = _id;
|
|
32
|
+
this._mappingId = _mappingId;
|
|
33
|
+
this._direction = _direction;
|
|
34
|
+
this._status = _status;
|
|
35
|
+
this._detail = _detail;
|
|
36
|
+
this._timestamp = _timestamp;
|
|
37
|
+
}
|
|
38
|
+
static create(params) {
|
|
39
|
+
return new SyncLog(params.id, params.mappingId, params.direction, params.status, params.detail, params.timestamp);
|
|
40
|
+
}
|
|
41
|
+
static reconstitute(params) {
|
|
42
|
+
return new SyncLog(params.id, params.mappingId, params.direction, params.status, params.detail, params.timestamp);
|
|
43
|
+
}
|
|
44
|
+
get id() { return this._id; }
|
|
45
|
+
get mappingId() { return this._mappingId; }
|
|
46
|
+
get direction() { return this._direction; }
|
|
47
|
+
get status() { return this._status; }
|
|
48
|
+
get detail() { return this._detail; }
|
|
49
|
+
get timestamp() { return this._timestamp; }
|
|
50
|
+
toProps() {
|
|
51
|
+
return {
|
|
52
|
+
id: this._id.value,
|
|
53
|
+
mappingId: this._mappingId.value,
|
|
54
|
+
direction: this._direction,
|
|
55
|
+
status: this._status,
|
|
56
|
+
detail: this._detail,
|
|
57
|
+
timestamp: this._timestamp.toISO(),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Immutable entity representing a detected change in Azure DevOps.
|
|
63
|
+
* Created by the poll service when a mapped work item changes.
|
|
64
|
+
*/
|
|
65
|
+
export class SyncEvent {
|
|
66
|
+
_id;
|
|
67
|
+
_mappingId;
|
|
68
|
+
_azureWorkItemId;
|
|
69
|
+
_eventType;
|
|
70
|
+
_status;
|
|
71
|
+
_changedBy;
|
|
72
|
+
_changedFields;
|
|
73
|
+
_previousRevision;
|
|
74
|
+
_newRevision;
|
|
75
|
+
_detectedAt;
|
|
76
|
+
_commentText;
|
|
77
|
+
_commentId;
|
|
78
|
+
constructor(_id, _mappingId, _azureWorkItemId, _eventType, _status, _changedBy, _changedFields, _previousRevision, _newRevision, _detectedAt, _commentText, _commentId) {
|
|
79
|
+
this._id = _id;
|
|
80
|
+
this._mappingId = _mappingId;
|
|
81
|
+
this._azureWorkItemId = _azureWorkItemId;
|
|
82
|
+
this._eventType = _eventType;
|
|
83
|
+
this._status = _status;
|
|
84
|
+
this._changedBy = _changedBy;
|
|
85
|
+
this._changedFields = _changedFields;
|
|
86
|
+
this._previousRevision = _previousRevision;
|
|
87
|
+
this._newRevision = _newRevision;
|
|
88
|
+
this._detectedAt = _detectedAt;
|
|
89
|
+
this._commentText = _commentText;
|
|
90
|
+
this._commentId = _commentId;
|
|
91
|
+
}
|
|
92
|
+
static create(params) {
|
|
93
|
+
return new SyncEvent(params.id, params.mappingId, params.azureWorkItemId, params.eventType, "pending", params.changedBy, params.changedFields, params.previousRevision, params.newRevision, Timestamp.now(), params.commentText ?? "", params.commentId ?? 0);
|
|
94
|
+
}
|
|
95
|
+
static reconstitute(props) {
|
|
96
|
+
return new SyncEvent(SyncEventId.from(props.id), SyncMappingId.from(props.mappingId), props.azureWorkItemId, props.eventType, props.status, props.changedBy, props.changedFields, props.previousRevision, props.newRevision, Timestamp.fromISO(props.detectedAt), props.commentText ?? "", props.commentId ?? 0);
|
|
97
|
+
}
|
|
98
|
+
get id() { return this._id; }
|
|
99
|
+
get mappingId() { return this._mappingId; }
|
|
100
|
+
get azureWorkItemId() { return this._azureWorkItemId; }
|
|
101
|
+
get eventType() { return this._eventType; }
|
|
102
|
+
get status() { return this._status; }
|
|
103
|
+
get changedBy() { return this._changedBy; }
|
|
104
|
+
get changedFields() { return this._changedFields; }
|
|
105
|
+
get previousRevision() { return this._previousRevision; }
|
|
106
|
+
get newRevision() { return this._newRevision; }
|
|
107
|
+
get detectedAt() { return this._detectedAt; }
|
|
108
|
+
get commentText() { return this._commentText; }
|
|
109
|
+
get commentId() { return this._commentId; }
|
|
110
|
+
acknowledge() { this._status = "acknowledged"; }
|
|
111
|
+
dismiss() { this._status = "dismissed"; }
|
|
112
|
+
toProps() {
|
|
113
|
+
return {
|
|
114
|
+
id: this._id.value,
|
|
115
|
+
mappingId: this._mappingId.value,
|
|
116
|
+
azureWorkItemId: this._azureWorkItemId,
|
|
117
|
+
eventType: this._eventType,
|
|
118
|
+
status: this._status,
|
|
119
|
+
changedBy: this._changedBy,
|
|
120
|
+
changedFields: this._changedFields,
|
|
121
|
+
previousRevision: this._previousRevision,
|
|
122
|
+
newRevision: this._newRevision,
|
|
123
|
+
detectedAt: this._detectedAt.toISO(),
|
|
124
|
+
commentText: this._commentText,
|
|
125
|
+
commentId: this._commentId,
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=sync-log-entities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-log-entities.js","sourceRoot":"","sources":["../../../src/domain/azure-sync/sync-log-entities.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAa,WAAW,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAO3E,iFAAiF;AAEjF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,SAAS;IACT,QAAQ;IACR,SAAS;IACT,UAAU;CACF,CAAC;AAgBX;;;GAGG;AACH,MAAM,OAAO,OAAO;IACD,GAAG,CAAY;IACf,UAAU,CAAgB;IAC1B,UAAU,CAAgB;IAC1B,OAAO,CAAgB;IACvB,OAAO,CAAS;IAChB,UAAU,CAAY;IAEvC,YACE,GAAc,EACd,UAAyB,EACzB,UAAyB,EACzB,OAAsB,EACtB,OAAe,EACf,UAAqB;QAErB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,U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I,gBAAgB,KAAa,OAAO,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACjE,IAAI,WAAW,KAAa,OAAO,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;IACvD,IAAI,UAAU,KAAgB,OAAO,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;IACxD,IAAI,WAAW,KAAa,OAAO,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;IACvD,IAAI,SAAS,KAAa,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IAEnD,WAAW,KAAW,IAAI,CAAC,OAAO,GAAG,cAAc,CAAC,CAAC,CAAC;IACtD,OAAO,KAAW,IAAI,CAAC,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC;IAE/C,OAAO;QACL,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK;YAClB,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK;YAChC,eAAe,EAAE,IAAI,CAAC,gBAAgB;YACtC,SAAS,EAAE,IAAI,CAAC,UAAU;YAC1B,MAAM,EAAE,IAAI,CAAC,OAAO;YACpB,SAAS,EAAE,IAAI,CAAC,UAAU;YAC1B,aAAa,EAAE,IAAI,CAAC,cAAc;YAClC,gBAAgB,EAAE,IAAI,CAAC,iBAAiB;YACxC,WAAW,EAAE,IAAI,CAAC,YAAY;YAC9B,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE;YACpC,WAAW,EAAE,IAAI,CAAC,YAAY;YAC9B,SAAS,EAAE,IAAI,CAAC,UAAU;SAC3B,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Azure Sync Domain — State & Type Mapping Tables
|
|
3
|
+
*
|
|
4
|
+
* Lookup tables that map between local kanban states/types and
|
|
5
|
+
* Azure DevOps work item states/types per process template.
|
|
6
|
+
* Zero external dependencies (pure domain).
|
|
7
|
+
*
|
|
8
|
+
* SOLID: SRP — state/type mapping data only; no classes or validation logic
|
|
9
|
+
*/
|
|
10
|
+
import type { ProcessTemplate, WorkItemType } from "./value-objects.js";
|
|
11
|
+
/**
|
|
12
|
+
* Local kanban states ordered by workflow progression.
|
|
13
|
+
* Used for mapping to/from Azure DevOps states.
|
|
14
|
+
*/
|
|
15
|
+
export declare const LOCAL_KANBAN_STATES: readonly ["backlog", "grooming", "ready", "doing", "review", "blocked", "tested", "done"];
|
|
16
|
+
export type LocalKanbanState = (typeof LOCAL_KANBAN_STATES)[number];
|
|
17
|
+
/** Azure DevOps work item states per process template. */
|
|
18
|
+
export declare const AZURE_STATES: Record<ProcessTemplate, readonly string[]>;
|
|
19
|
+
/**
|
|
20
|
+
* Maps local kanban states to Azure DevOps states per process template.
|
|
21
|
+
* Multiple local states may map to a single Azure state.
|
|
22
|
+
*/
|
|
23
|
+
export declare const LOCAL_TO_AZURE_STATE: Record<ProcessTemplate, Record<LocalKanbanState, string>>;
|
|
24
|
+
/**
|
|
25
|
+
* Maps Azure DevOps states back to the most likely local kanban state.
|
|
26
|
+
* Since the mapping is many-to-one, we pick the "earliest" local state
|
|
27
|
+
* that maps to the Azure state (conservative approach).
|
|
28
|
+
*/
|
|
29
|
+
export declare const AZURE_TO_LOCAL_STATE: Record<ProcessTemplate, Record<string, LocalKanbanState>>;
|
|
30
|
+
/**
|
|
31
|
+
* Maps acceptance criteria "met" status to Azure DevOps Task states.
|
|
32
|
+
* Tasks have simpler state workflows than parent work items.
|
|
33
|
+
* met=true → completed state, met=false → initial state.
|
|
34
|
+
*/
|
|
35
|
+
export declare const TASK_STATE_FOR_MET: Record<ProcessTemplate, {
|
|
36
|
+
done: string;
|
|
37
|
+
todo: string;
|
|
38
|
+
}>;
|
|
39
|
+
/**
|
|
40
|
+
* Maps local entity types to Azure DevOps work item types per process template.
|
|
41
|
+
* Local "card" maps to the primary work item type for the template.
|
|
42
|
+
*/
|
|
43
|
+
export declare const LOCAL_TO_AZURE_TYPE: Record<ProcessTemplate, Record<string, WorkItemType>>;
|
|
44
|
+
//# sourceMappingURL=sync-state-maps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-state-maps.d.ts","sourceRoot":"","sources":["../../../src/domain/azure-sync/sync-state-maps.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIxE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,2FAStB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAIpE,0DAA0D;AAC1D,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,eAAe,EAAE,SAAS,MAAM,EAAE,CAKnE,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CACvC,eAAe,EACf,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,CA0CjC,CAAC;AAIF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,CACvC,eAAe,EACf,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAyBjC,CAAC;AAIF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CACrC,eAAe,EACf;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAM/B,CAAC;AAIF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CACtC,eAAe,EACf,MAAM,CAAC,MAAM,EAAE,YAAY,CAAC,CAM7B,CAAC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Azure Sync Domain — State & Type Mapping Tables
|
|
3
|
+
*
|
|
4
|
+
* Lookup tables that map between local kanban states/types and
|
|
5
|
+
* Azure DevOps work item states/types per process template.
|
|
6
|
+
* Zero external dependencies (pure domain).
|
|
7
|
+
*
|
|
8
|
+
* SOLID: SRP — state/type mapping data only; no classes or validation logic
|
|
9
|
+
*/
|
|
10
|
+
// ─── Local Kanban State ───────────────────────────────────────────────────────
|
|
11
|
+
/**
|
|
12
|
+
* Local kanban states ordered by workflow progression.
|
|
13
|
+
* Used for mapping to/from Azure DevOps states.
|
|
14
|
+
*/
|
|
15
|
+
export const LOCAL_KANBAN_STATES = [
|
|
16
|
+
"backlog",
|
|
17
|
+
"grooming",
|
|
18
|
+
"ready",
|
|
19
|
+
"doing",
|
|
20
|
+
"review",
|
|
21
|
+
"blocked",
|
|
22
|
+
"tested",
|
|
23
|
+
"done",
|
|
24
|
+
];
|
|
25
|
+
// ─── Azure DevOps State Lists ─────────────────────────────────────────────────
|
|
26
|
+
/** Azure DevOps work item states per process template. */
|
|
27
|
+
export const AZURE_STATES = {
|
|
28
|
+
basic: ["To Do", "Doing", "Done"],
|
|
29
|
+
agile: ["New", "Active", "Resolved", "Closed"],
|
|
30
|
+
scrum: ["New", "Approved", "Committed", "Done"],
|
|
31
|
+
cmmi: ["Proposed", "Active", "Resolved", "Closed"],
|
|
32
|
+
};
|
|
33
|
+
// ─── Local → Azure State ──────────────────────────────────────────────────────
|
|
34
|
+
/**
|
|
35
|
+
* Maps local kanban states to Azure DevOps states per process template.
|
|
36
|
+
* Multiple local states may map to a single Azure state.
|
|
37
|
+
*/
|
|
38
|
+
export const LOCAL_TO_AZURE_STATE = {
|
|
39
|
+
basic: {
|
|
40
|
+
backlog: "To Do",
|
|
41
|
+
grooming: "To Do",
|
|
42
|
+
ready: "To Do",
|
|
43
|
+
doing: "Doing",
|
|
44
|
+
review: "Doing",
|
|
45
|
+
blocked: "Doing",
|
|
46
|
+
tested: "Doing",
|
|
47
|
+
done: "Done",
|
|
48
|
+
},
|
|
49
|
+
agile: {
|
|
50
|
+
backlog: "New",
|
|
51
|
+
grooming: "New",
|
|
52
|
+
ready: "New",
|
|
53
|
+
doing: "Active",
|
|
54
|
+
review: "Active",
|
|
55
|
+
blocked: "Active",
|
|
56
|
+
tested: "Resolved",
|
|
57
|
+
done: "Closed",
|
|
58
|
+
},
|
|
59
|
+
scrum: {
|
|
60
|
+
backlog: "New",
|
|
61
|
+
grooming: "New",
|
|
62
|
+
ready: "Approved",
|
|
63
|
+
doing: "Committed",
|
|
64
|
+
review: "Committed",
|
|
65
|
+
blocked: "Committed",
|
|
66
|
+
tested: "Committed",
|
|
67
|
+
done: "Done",
|
|
68
|
+
},
|
|
69
|
+
cmmi: {
|
|
70
|
+
backlog: "Proposed",
|
|
71
|
+
grooming: "Proposed",
|
|
72
|
+
ready: "Proposed",
|
|
73
|
+
doing: "Active",
|
|
74
|
+
review: "Active",
|
|
75
|
+
blocked: "Active",
|
|
76
|
+
tested: "Resolved",
|
|
77
|
+
done: "Closed",
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
// ─── Azure → Local State ──────────────────────────────────────────────────────
|
|
81
|
+
/**
|
|
82
|
+
* Maps Azure DevOps states back to the most likely local kanban state.
|
|
83
|
+
* Since the mapping is many-to-one, we pick the "earliest" local state
|
|
84
|
+
* that maps to the Azure state (conservative approach).
|
|
85
|
+
*/
|
|
86
|
+
export const AZURE_TO_LOCAL_STATE = {
|
|
87
|
+
basic: {
|
|
88
|
+
"To Do": "backlog",
|
|
89
|
+
"Doing": "doing",
|
|
90
|
+
"Done": "done",
|
|
91
|
+
},
|
|
92
|
+
agile: {
|
|
93
|
+
"New": "backlog",
|
|
94
|
+
"Active": "doing",
|
|
95
|
+
"Resolved": "tested",
|
|
96
|
+
"Closed": "done",
|
|
97
|
+
},
|
|
98
|
+
scrum: {
|
|
99
|
+
"New": "backlog",
|
|
100
|
+
"Approved": "ready",
|
|
101
|
+
"Committed": "doing",
|
|
102
|
+
"Done": "done",
|
|
103
|
+
},
|
|
104
|
+
cmmi: {
|
|
105
|
+
"Proposed": "backlog",
|
|
106
|
+
"Active": "doing",
|
|
107
|
+
"Resolved": "tested",
|
|
108
|
+
"Closed": "done",
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
// ─── Task State Mapping ───────────────────────────────────────────────────────
|
|
112
|
+
/**
|
|
113
|
+
* Maps acceptance criteria "met" status to Azure DevOps Task states.
|
|
114
|
+
* Tasks have simpler state workflows than parent work items.
|
|
115
|
+
* met=true → completed state, met=false → initial state.
|
|
116
|
+
*/
|
|
117
|
+
export const TASK_STATE_FOR_MET = {
|
|
118
|
+
basic: { done: "Done", todo: "To Do" },
|
|
119
|
+
agile: { done: "Closed", todo: "New" },
|
|
120
|
+
scrum: { done: "Done", todo: "To Do" },
|
|
121
|
+
cmmi: { done: "Closed", todo: "Proposed" },
|
|
122
|
+
};
|
|
123
|
+
// ─── Work Item Type Mapping ───────────────────────────────────────────────────
|
|
124
|
+
/**
|
|
125
|
+
* Maps local entity types to Azure DevOps work item types per process template.
|
|
126
|
+
* Local "card" maps to the primary work item type for the template.
|
|
127
|
+
*/
|
|
128
|
+
export const LOCAL_TO_AZURE_TYPE = {
|
|
129
|
+
basic: { epic: "Epic", card: "Issue", task: "Task" },
|
|
130
|
+
agile: { epic: "Epic", card: "User Story", task: "Task" },
|
|
131
|
+
scrum: { epic: "Epic", card: "Product Backlog Item", task: "Task" },
|
|
132
|
+
cmmi: { epic: "Epic", card: "Requirement", task: "Task" },
|
|
133
|
+
};
|
|
134
|
+
//# sourceMappingURL=sync-state-maps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync-state-maps.js","sourceRoot":"","sources":["../../../src/domain/azure-sync/sync-state-maps.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,iFAAiF;AAEjF;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,SAAS;IACT,UAAU;IACV,OAAO;IACP,OAAO;IACP,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,MAAM;CACE,CAAC;AAIX,iFAAiF;AAEjF,0DAA0D;AAC1D,MAAM,CAAC,MAAM,YAAY,GAA+C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sB,EAAE,IAAI,EAAE,MAAM,EAAE;IACnE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE;CAC1D,CAAC"}
|
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
* Models Azure DevOps concepts (organizations, work items, process templates)
|
|
6
6
|
* with validation and immutability. Zero external dependencies (pure domain).
|
|
7
7
|
*
|
|
8
|
+
* State/type mapping tables are in sync-state-maps.ts (SRP split).
|
|
9
|
+
*
|
|
8
10
|
* SOLID: SRP — each type models a single domain concept
|
|
9
11
|
* DDD: Value Objects compared by value, no identity of their own
|
|
10
12
|
*/
|
|
11
13
|
import { EntityId } from "../shared/value-objects.js";
|
|
14
|
+
export { LOCAL_KANBAN_STATES, LOCAL_TO_AZURE_STATE, AZURE_TO_LOCAL_STATE, AZURE_STATES, TASK_STATE_FOR_MET, LOCAL_TO_AZURE_TYPE, } from "./sync-state-maps.js";
|
|
15
|
+
export type { LocalKanbanState } from "./sync-state-maps.js";
|
|
12
16
|
/** Sync mapping identifier (format: SM-NNN). */
|
|
13
17
|
export declare class SyncMappingId extends EntityId {
|
|
14
18
|
private constructor();
|
|
@@ -33,8 +37,8 @@ export declare class SyncEventId extends EntityId {
|
|
|
33
37
|
export type SyncEventType = "field_change" | "state_change" | "comment_added" | "revision_bump";
|
|
34
38
|
/** Sync event processing status. */
|
|
35
39
|
export type SyncEventStatus = "pending" | "acknowledged" | "dismissed";
|
|
36
|
-
export declare const SYNC_EVENT_TYPES: readonly
|
|
37
|
-
export declare const SYNC_EVENT_STATUSES: readonly
|
|
40
|
+
export declare const SYNC_EVENT_TYPES: readonly ["field_change", "state_change", "comment_added", "revision_bump"];
|
|
41
|
+
export declare const SYNC_EVENT_STATUSES: readonly ["pending", "acknowledged", "dismissed"];
|
|
38
42
|
/**
|
|
39
43
|
* Validated Azure DevOps organization URL.
|
|
40
44
|
* Accepts formats:
|
|
@@ -82,45 +86,12 @@ export declare function detectBaseTemplate(templateName: string): ProcessTemplat
|
|
|
82
86
|
/** Azure DevOps work item types across all process templates. */
|
|
83
87
|
export declare const WORK_ITEM_TYPES: readonly ["Epic", "Issue", "Task", "User Story", "Product Backlog Item", "Bug", "Feature", "Requirement"];
|
|
84
88
|
export type WorkItemType = (typeof WORK_ITEM_TYPES)[number];
|
|
85
|
-
/**
|
|
86
|
-
* Maps local entity types to Azure DevOps work item types per process template.
|
|
87
|
-
* Local "card" maps to the primary work item type for the template.
|
|
88
|
-
*/
|
|
89
|
-
export declare const LOCAL_TO_AZURE_TYPE: Record<ProcessTemplate, Record<string, WorkItemType>>;
|
|
90
89
|
export declare const SYNC_DIRECTIONS: readonly ["push", "pull", "bidirectional"];
|
|
91
90
|
export type SyncDirection = (typeof SYNC_DIRECTIONS)[number];
|
|
92
91
|
export declare function isValidSyncDirection(value: string): value is SyncDirection;
|
|
93
92
|
export declare const SYNC_STATUSES: readonly ["pending", "synced", "conflict", "error", "stale"];
|
|
94
93
|
export type SyncStatus = (typeof SYNC_STATUSES)[number];
|
|
95
94
|
export declare function isValidSyncStatus(value: string): value is SyncStatus;
|
|
96
|
-
/** Azure DevOps work item states per process template. */
|
|
97
|
-
export declare const AZURE_STATES: Record<ProcessTemplate, readonly string[]>;
|
|
98
|
-
/**
|
|
99
|
-
* Local kanban states ordered by workflow progression.
|
|
100
|
-
* Used for mapping to/from Azure DevOps states.
|
|
101
|
-
*/
|
|
102
|
-
export declare const LOCAL_KANBAN_STATES: readonly ["backlog", "grooming", "ready", "doing", "review", "blocked", "tested", "done"];
|
|
103
|
-
export type LocalKanbanState = (typeof LOCAL_KANBAN_STATES)[number];
|
|
104
|
-
/**
|
|
105
|
-
* Maps local kanban states to Azure DevOps states per process template.
|
|
106
|
-
* Multiple local states may map to a single Azure state.
|
|
107
|
-
*/
|
|
108
|
-
export declare const LOCAL_TO_AZURE_STATE: Record<ProcessTemplate, Record<LocalKanbanState, string>>;
|
|
109
|
-
/**
|
|
110
|
-
* Maps Azure DevOps states back to the most likely local kanban state.
|
|
111
|
-
* Since the mapping is many-to-one, we pick the "earliest" local state
|
|
112
|
-
* that maps to the Azure state (conservative approach).
|
|
113
|
-
*/
|
|
114
|
-
export declare const AZURE_TO_LOCAL_STATE: Record<ProcessTemplate, Record<string, LocalKanbanState>>;
|
|
115
|
-
/**
|
|
116
|
-
* Maps acceptance criteria "met" status to Azure DevOps Task states.
|
|
117
|
-
* Tasks have simpler state workflows than parent work items.
|
|
118
|
-
* met=true → completed state, met=false → initial state.
|
|
119
|
-
*/
|
|
120
|
-
export declare const TASK_STATE_FOR_MET: Record<ProcessTemplate, {
|
|
121
|
-
done: string;
|
|
122
|
-
todo: string;
|
|
123
|
-
}>;
|
|
124
95
|
/**
|
|
125
96
|
* Represents a mapping between a local field name and an Azure DevOps field reference.
|
|
126
97
|
* Some fields only exist on certain process templates; the `fallback` strategy
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value-objects.d.ts","sourceRoot":"","sources":["../../../src/domain/azure-sync/value-objects.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"value-objects.d.ts","sourceRoot":"","sources":["../../../src/domain/azure-sync/value-objects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAGtD,OAAO,EACL,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAI7D,gDAAgD;AAChD,qBAAa,aAAc,SAAQ,QAAQ;IACzC,OAAO;IAIP,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,aAAa;IAO9C,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa;IAIzC,IAAI,QAAQ,IAAI,MAA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