@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
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wiki Feedback Domain — Value Objects
|
|
3
|
-
*
|
|
4
|
-
* Identifiers, enums, and constrained types for the wiki-feedback bounded context.
|
|
5
|
-
* Models wiki comment metadata, feedback lifecycle statuses, and type classification.
|
|
6
|
-
* Zero external dependencies (pure domain).
|
|
7
|
-
*
|
|
8
|
-
* SOLID: SRP — each type models a single domain concept
|
|
9
|
-
* DDD: Value Objects compared by value, no identity of their own
|
|
10
|
-
*/
|
|
11
|
-
import { EntityId } from "../shared/value-objects.js";
|
|
12
|
-
// ─── Identifiers ──────────────────────────────────────────────────────────────
|
|
13
|
-
/** Wiki feedback item identifier (format: WF-NNN). */
|
|
14
|
-
export class WikiFeedbackId extends EntityId {
|
|
15
|
-
constructor(value) {
|
|
16
|
-
super(value);
|
|
17
|
-
}
|
|
18
|
-
static create(sequence) {
|
|
19
|
-
if (!Number.isInteger(sequence) || sequence < 1) {
|
|
20
|
-
throw new Error("WikiFeedbackId: sequence must be a positive integer");
|
|
21
|
-
}
|
|
22
|
-
return new WikiFeedbackId(`WF-${String(sequence).padStart(3, "0")}`);
|
|
23
|
-
}
|
|
24
|
-
static from(value) {
|
|
25
|
-
return new WikiFeedbackId(value);
|
|
26
|
-
}
|
|
27
|
-
get sequence() {
|
|
28
|
-
const parts = this.value.split("-");
|
|
29
|
-
return parseInt(parts[1] ?? "0", 10);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
// ─── Feedback Status ──────────────────────────────────────────────────────────
|
|
33
|
-
/**
|
|
34
|
-
* Lifecycle status for a WikiFeedbackItem.
|
|
35
|
-
* - pending: detected but not yet triaged
|
|
36
|
-
* - triaged: agent assigned type/priority, card proposal ready
|
|
37
|
-
* - card_created: kanban card was created from this feedback
|
|
38
|
-
* - dismissed: agent decided not to act on this feedback
|
|
39
|
-
*/
|
|
40
|
-
export const FEEDBACK_STATUSES = [
|
|
41
|
-
"pending",
|
|
42
|
-
"triaged",
|
|
43
|
-
"card_created",
|
|
44
|
-
"dismissed",
|
|
45
|
-
];
|
|
46
|
-
export function isValidFeedbackStatus(value) {
|
|
47
|
-
return FEEDBACK_STATUSES.includes(value);
|
|
48
|
-
}
|
|
49
|
-
// ─── Feedback Type ────────────────────────────────────────────────────────────
|
|
50
|
-
/**
|
|
51
|
-
* Classification of the feedback item.
|
|
52
|
-
* Assigned during triage based on content analysis.
|
|
53
|
-
*/
|
|
54
|
-
export const FEEDBACK_TYPES = [
|
|
55
|
-
"feature",
|
|
56
|
-
"bug",
|
|
57
|
-
"improvement",
|
|
58
|
-
"question",
|
|
59
|
-
"documentation",
|
|
60
|
-
];
|
|
61
|
-
export function isValidFeedbackType(value) {
|
|
62
|
-
return FEEDBACK_TYPES.includes(value);
|
|
63
|
-
}
|
|
64
|
-
// ─── Priority Suggestion ──────────────────────────────────────────────────────
|
|
65
|
-
/**
|
|
66
|
-
* Suggested priority for the feedback item.
|
|
67
|
-
* Assigned during triage; maps to kanban card priority.
|
|
68
|
-
*/
|
|
69
|
-
export const FEEDBACK_PRIORITIES = ["high", "medium", "low"];
|
|
70
|
-
export function isValidFeedbackPriority(value) {
|
|
71
|
-
return FEEDBACK_PRIORITIES.includes(value);
|
|
72
|
-
}
|
|
73
|
-
// ─── Comment Author ───────────────────────────────────────────────────────────
|
|
74
|
-
/**
|
|
75
|
-
* Value object representing the author of a wiki comment.
|
|
76
|
-
* Extracted from Azure DevOps IdentityRef.
|
|
77
|
-
*/
|
|
78
|
-
export class CommentAuthor {
|
|
79
|
-
displayName;
|
|
80
|
-
uniqueName;
|
|
81
|
-
constructor(displayName, uniqueName) {
|
|
82
|
-
this.displayName = displayName;
|
|
83
|
-
this.uniqueName = uniqueName;
|
|
84
|
-
}
|
|
85
|
-
/** Create from Azure DevOps identity fields. */
|
|
86
|
-
static create(displayName, uniqueName) {
|
|
87
|
-
if (!displayName.trim()) {
|
|
88
|
-
throw new Error("CommentAuthor: displayName cannot be empty");
|
|
89
|
-
}
|
|
90
|
-
if (!uniqueName.trim()) {
|
|
91
|
-
throw new Error("CommentAuthor: uniqueName cannot be empty");
|
|
92
|
-
}
|
|
93
|
-
return new CommentAuthor(displayName.trim(), uniqueName.trim());
|
|
94
|
-
}
|
|
95
|
-
/** Reconstitute from persistence (trusted data). */
|
|
96
|
-
static from(displayName, uniqueName) {
|
|
97
|
-
return new CommentAuthor(displayName, uniqueName);
|
|
98
|
-
}
|
|
99
|
-
equals(other) {
|
|
100
|
-
return this.uniqueName === other.uniqueName;
|
|
101
|
-
}
|
|
102
|
-
toString() {
|
|
103
|
-
return `${this.displayName} <${this.uniqueName}>`;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
// ─── Page Source ──────────────────────────────────────────────────────────────
|
|
107
|
-
/**
|
|
108
|
-
* Value object representing the wiki page where the comment was posted.
|
|
109
|
-
* Links feedback back to its source page for context.
|
|
110
|
-
*/
|
|
111
|
-
export class PageSource {
|
|
112
|
-
pageId;
|
|
113
|
-
pagePath;
|
|
114
|
-
defaultType;
|
|
115
|
-
constructor(pageId, pagePath, defaultType) {
|
|
116
|
-
this.pageId = pageId;
|
|
117
|
-
this.pagePath = pagePath;
|
|
118
|
-
this.defaultType = defaultType;
|
|
119
|
-
}
|
|
120
|
-
/** Create with validation. */
|
|
121
|
-
static create(pageId, pagePath, defaultType) {
|
|
122
|
-
if (!Number.isInteger(pageId) || pageId < 1) {
|
|
123
|
-
throw new Error("PageSource: pageId must be a positive integer");
|
|
124
|
-
}
|
|
125
|
-
if (!pagePath.trim()) {
|
|
126
|
-
throw new Error("PageSource: pagePath cannot be empty");
|
|
127
|
-
}
|
|
128
|
-
if (!isValidFeedbackType(defaultType)) {
|
|
129
|
-
throw new Error(`PageSource: invalid defaultType "${defaultType}"`);
|
|
130
|
-
}
|
|
131
|
-
return new PageSource(pageId, pagePath.trim(), defaultType);
|
|
132
|
-
}
|
|
133
|
-
/** Reconstitute from persistence (trusted data). */
|
|
134
|
-
static from(pageId, pagePath, defaultType) {
|
|
135
|
-
return new PageSource(pageId, pagePath, defaultType);
|
|
136
|
-
}
|
|
137
|
-
equals(other) {
|
|
138
|
-
return this.pageId === other.pageId;
|
|
139
|
-
}
|
|
140
|
-
toString() {
|
|
141
|
-
return `${this.pagePath} (id=${this.pageId})`;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
//# sourceMappingURL=value-objects.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"value-objects.js","sourceRoot":"","sources":["../../../src/domain/wiki-feedback/value-objects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAEtD,iFAAiF;AAEjF,sDAAsD;AACtD,MAAM,OAAO,cAAe,SAAQ,QAAQ;IAC1C,YAAoB,KAAa;QAC/B,KAAK,CAAC,KAAK,CAAC,CAAC;IACf,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,QAAgB;QAC5B,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CA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M,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5C,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;QACnE,CAAC;QACD,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC;YACrB,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;QAC1D,CAAC;QACD,IAAI,CAAC,mBAAmB,CAAC,WAAW,CAAC,EAAE,CAAC;YACtC,MAAM,IAAI,KAAK,CAAC,oCAAoC,WAAW,GAAG,CAAC,CAAC;QACtE,CAAC;QACD,OAAO,IAAI,UAAU,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,EAAE,WAAW,CAAC,CAAC;IAC9D,CAAC;IAED,oDAAoD;IACpD,MAAM,CAAC,IAAI,CAAC,MAAc,EAAE,QAAgB,EAAE,WAAyB;QACrE,OAAO,IAAI,UAAU,CAAC,MAAM,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IACvD,CAAC;IAED,MAAM,CAAC,KAAiB;QACtB,OAAO,IAAI,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,CAAC;IACtC,CAAC;IAED,QAAQ;QACN,OAAO,GAAG,IAAI,CAAC,QAAQ,QAAQ,IAAI,CAAC,MAAM,GAAG,CAAC;IAChD,CAAC;CACF"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Azure Sync Infrastructure — Barrel Export
|
|
3
|
-
*
|
|
4
|
-
* Public API for the azure-sync bounded context infrastructure layer.
|
|
5
|
-
*/
|
|
6
|
-
export { AzureAuthProvider } from "./azure-auth.js";
|
|
7
|
-
export { AzureDevOpsClient } from "./azure-devops-client.js";
|
|
8
|
-
export { SqliteSyncRepository } from "./sqlite-sync-repository.js";
|
|
9
|
-
export { SqliteSyncEventRepository } from "./sqlite-event-repository.js";
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/azure-sync/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAI7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Azure Sync Infrastructure — Barrel Export
|
|
3
|
-
*
|
|
4
|
-
* Public API for the azure-sync bounded context infrastructure layer.
|
|
5
|
-
*/
|
|
6
|
-
// ── Authentication ───────────────────────────────────────────────────────────
|
|
7
|
-
export { AzureAuthProvider } from "./azure-auth.js";
|
|
8
|
-
// ── Azure DevOps REST Client ─────────────────────────────────────────────────
|
|
9
|
-
export { AzureDevOpsClient } from "./azure-devops-client.js";
|
|
10
|
-
// ── SQLite Repositories ──────────────────────────────────────────────────────
|
|
11
|
-
export { SqliteSyncRepository } from "./sqlite-sync-repository.js";
|
|
12
|
-
export { SqliteSyncEventRepository } from "./sqlite-event-repository.js";
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/infrastructure/azure-sync/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,gFAAgF;AAEhF,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,gFAAgF;AAEhF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,gFAAgF;AAEhF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/config/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/infrastructure/config/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wiki Feedback Infrastructure — Azure Wiki Client
|
|
3
|
-
*
|
|
4
|
-
* HTTP adapter for Azure DevOps Wiki comments API.
|
|
5
|
-
* Implements WikiClientPort for reading and posting wiki comments.
|
|
6
|
-
* Reuses AzureAuthProvider from azure-sync context.
|
|
7
|
-
*
|
|
8
|
-
* SOLID: SRP — wiki comment HTTP operations only
|
|
9
|
-
* SOLID: DIP — implements domain-defined WikiClientPort interface
|
|
10
|
-
* DDD: Infrastructure adapter for external system integration
|
|
11
|
-
*/
|
|
12
|
-
import type { Result } from "../../domain/shared/value-objects.js";
|
|
13
|
-
import type { WikiClientPort, WikiComment } from "../../domain/wiki-feedback/ports.js";
|
|
14
|
-
import type { AuthMethod } from "../../domain/azure-sync/value-objects.js";
|
|
15
|
-
/**
|
|
16
|
-
* Azure DevOps Wiki Comments HTTP client.
|
|
17
|
-
* Fetches and posts comments on wiki pages via the undocumented but
|
|
18
|
-
* functional comments REST API (v7.1-preview.1).
|
|
19
|
-
*/
|
|
20
|
-
export declare class AzureWikiClient implements WikiClientPort {
|
|
21
|
-
private readonly org;
|
|
22
|
-
private readonly project;
|
|
23
|
-
private readonly auth;
|
|
24
|
-
constructor(org: string, project: string, authMethod: AuthMethod);
|
|
25
|
-
getPageComments(params: {
|
|
26
|
-
wikiIdentifier: string;
|
|
27
|
-
pageId: number;
|
|
28
|
-
}): Promise<Result<readonly WikiComment[]>>;
|
|
29
|
-
postPageComment(params: {
|
|
30
|
-
wikiIdentifier: string;
|
|
31
|
-
pageId: number;
|
|
32
|
-
text: string;
|
|
33
|
-
}): Promise<Result<WikiComment>>;
|
|
34
|
-
private buildCommentsUrl;
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=azure-wiki-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azure-wiki-client.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/wiki-feedback/azure-wiki-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAEvF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AAyB3E;;;;GAIG;AACH,qBAAa,eAAgB,YAAW,cAAc;IAIlD,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAJ1B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAoB;gBAGtB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EAChC,UAAU,EAAE,UAAU;IAOlB,eAAe,CAAC,MAAM,EAAE;QAC5B,cAAc,EAAE,MAAM,CAAC;QACvB,MAAM,EAAE,MAAM,CAAC;KAChB,GAAG,OAAO,CAAC,MAAM,CAAC,SAAS,WAAW,EAAE,CAAC,CAAC;IAiCrC,eAAe,CAAC,MAAM,EAAE;QAC5B,cAAc,EAAE,MAAM,CAAC;QACvB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;IAgChC,OAAO,CAAC,gBAAgB;CAQzB"}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wiki Feedback Infrastructure — Azure Wiki Client
|
|
3
|
-
*
|
|
4
|
-
* HTTP adapter for Azure DevOps Wiki comments API.
|
|
5
|
-
* Implements WikiClientPort for reading and posting wiki comments.
|
|
6
|
-
* Reuses AzureAuthProvider from azure-sync context.
|
|
7
|
-
*
|
|
8
|
-
* SOLID: SRP — wiki comment HTTP operations only
|
|
9
|
-
* SOLID: DIP — implements domain-defined WikiClientPort interface
|
|
10
|
-
* DDD: Infrastructure adapter for external system integration
|
|
11
|
-
*/
|
|
12
|
-
import { ok, fail } from "../../domain/shared/value-objects.js";
|
|
13
|
-
import { AzureAuthProvider } from "../azure-sync/azure-auth.js";
|
|
14
|
-
/** Azure DevOps REST API version for wiki comments (preview). */
|
|
15
|
-
const API_VERSION = "7.1-preview.1";
|
|
16
|
-
/**
|
|
17
|
-
* Azure DevOps Wiki Comments HTTP client.
|
|
18
|
-
* Fetches and posts comments on wiki pages via the undocumented but
|
|
19
|
-
* functional comments REST API (v7.1-preview.1).
|
|
20
|
-
*/
|
|
21
|
-
export class AzureWikiClient {
|
|
22
|
-
org;
|
|
23
|
-
project;
|
|
24
|
-
auth;
|
|
25
|
-
constructor(org, project, authMethod) {
|
|
26
|
-
this.org = org;
|
|
27
|
-
this.project = project;
|
|
28
|
-
this.auth = new AzureAuthProvider(authMethod);
|
|
29
|
-
}
|
|
30
|
-
// ── Read Comments ──────────────────────────────────────────────────
|
|
31
|
-
async getPageComments(params) {
|
|
32
|
-
const authResult = this.auth.getAuthHeader();
|
|
33
|
-
if (!authResult.success)
|
|
34
|
-
return fail(authResult.error);
|
|
35
|
-
const url = this.buildCommentsUrl(params.wikiIdentifier, params.pageId);
|
|
36
|
-
try {
|
|
37
|
-
const response = await fetch(url, {
|
|
38
|
-
method: "GET",
|
|
39
|
-
headers: {
|
|
40
|
-
Authorization: authResult.data,
|
|
41
|
-
"Content-Type": "application/json",
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
if (!response.ok) {
|
|
45
|
-
const body = await response.text();
|
|
46
|
-
return fail(`Wiki comments API returned ${response.status}: ${body}`);
|
|
47
|
-
}
|
|
48
|
-
const data = (await response.json());
|
|
49
|
-
const comments = (data.comments ?? []).map(mapComment);
|
|
50
|
-
return ok(comments);
|
|
51
|
-
}
|
|
52
|
-
catch (error) {
|
|
53
|
-
return fail(`Failed to fetch wiki comments: ${errorMessage(error)}`);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
// ── Post Comment ───────────────────────────────────────────────────
|
|
57
|
-
async postPageComment(params) {
|
|
58
|
-
const authResult = this.auth.getAuthHeader();
|
|
59
|
-
if (!authResult.success)
|
|
60
|
-
return fail(authResult.error);
|
|
61
|
-
const url = this.buildCommentsUrl(params.wikiIdentifier, params.pageId);
|
|
62
|
-
try {
|
|
63
|
-
const response = await fetch(url, {
|
|
64
|
-
method: "POST",
|
|
65
|
-
headers: {
|
|
66
|
-
Authorization: authResult.data,
|
|
67
|
-
"Content-Type": "application/json",
|
|
68
|
-
},
|
|
69
|
-
body: JSON.stringify({ text: params.text }),
|
|
70
|
-
});
|
|
71
|
-
if (!response.ok) {
|
|
72
|
-
const body = await response.text();
|
|
73
|
-
return fail(`Wiki post comment API returned ${response.status}: ${body}`);
|
|
74
|
-
}
|
|
75
|
-
const raw = (await response.json());
|
|
76
|
-
return ok(mapComment(raw));
|
|
77
|
-
}
|
|
78
|
-
catch (error) {
|
|
79
|
-
return fail(`Failed to post wiki comment: ${errorMessage(error)}`);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
// ── Helpers ────────────────────────────────────────────────────────
|
|
83
|
-
buildCommentsUrl(wikiIdentifier, pageId) {
|
|
84
|
-
return (`https://dev.azure.com/${encodeURIComponent(this.org)}` +
|
|
85
|
-
`/${encodeURIComponent(this.project)}` +
|
|
86
|
-
`/_apis/wiki/wikis/${encodeURIComponent(wikiIdentifier)}` +
|
|
87
|
-
`/pages/${pageId}/comments?api-version=${API_VERSION}`);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
// ─── Mapping ──────────────────────────────────────────────────────────────────
|
|
91
|
-
function mapComment(raw) {
|
|
92
|
-
return {
|
|
93
|
-
id: raw.id,
|
|
94
|
-
text: raw.text ?? "",
|
|
95
|
-
createdBy: {
|
|
96
|
-
displayName: raw.createdBy?.displayName ?? "Unknown",
|
|
97
|
-
uniqueName: raw.createdBy?.uniqueName ?? "unknown",
|
|
98
|
-
},
|
|
99
|
-
createdDate: raw.createdDate ?? new Date().toISOString(),
|
|
100
|
-
modifiedDate: raw.modifiedDate ?? raw.createdDate ?? new Date().toISOString(),
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
function errorMessage(error) {
|
|
104
|
-
return error instanceof Error ? error.message : String(error);
|
|
105
|
-
}
|
|
106
|
-
//# sourceMappingURL=azure-wiki-client.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"azure-wiki-client.js","sourceRoot":"","sources":["../../../src/infrastructure/wiki-feedback/azure-wiki-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;AAEhE,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGhE,iEAAiE;AACjE,MAAM,WAAW,GAAG,eAAe,CAAC;AAsBpC;;;;GAIG;AACH,MAAM,OAAO,eAAe;IAIP;IACA;IAJF,IAAI,CAAoB;IAEzC,YACmB,GAAW,EACX,OAAe,EAChC,UAAsB;QAFL,QAAG,GAAH,GAAG,CAAQ;QACX,YAAO,GAAP,OAAO,CAAQ;QAGhC,IAAI,CAAC,IAAI,GAAG,IAAI,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAChD,CAAC;IAED,sEAAsE;IAEtE,KA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AAEjF,SAAS,UAAU,CAAC,GAA6B;IAC/C,OAAO;QACL,EAAE,EAAE,GAAG,CAAC,EAAE;QACV,IAAI,EAAE,GAAG,CAAC,IAAI,IAAI,EAAE;QACpB,SAAS,EAAE;YACT,WAAW,EAAE,GAAG,CAAC,SAAS,EAAE,WAAW,IAAI,SAAS;YACpD,UAAU,EAAE,GAAG,CAAC,SAAS,EAAE,UAAU,IAAI,SAAS;SACnD;QACD,WAAW,EAAE,GAAG,CAAC,WAAW,IAAI,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACxD,YAAY,EAAE,GAAG,CAAC,YAAY,IAAI,GAAG,CAAC,WAAW,IAAI,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;KAC9E,CAAC;AACJ,CAAC;AAED,SAAS,YAAY,CAAC,KAAc;IAClC,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wiki Feedback Infrastructure — SQLite Feedback Repository
|
|
3
|
-
*
|
|
4
|
-
* Persists WikiFeedbackItem entities in SQLite with deduplication
|
|
5
|
-
* by azure_comment_id. Follows the same patterns as SqliteSyncEventRepository.
|
|
6
|
-
*
|
|
7
|
-
* SOLID: SRP — feedback item persistence only
|
|
8
|
-
* SOLID: DIP — implements domain-defined WikiFeedbackRepository
|
|
9
|
-
* DDD: Repository implementation in infrastructure layer
|
|
10
|
-
*/
|
|
11
|
-
import type { SqliteAdapter } from "../database/sqlite-adapter.js";
|
|
12
|
-
import { WikiFeedbackItem } from "../../domain/wiki-feedback/entities.js";
|
|
13
|
-
import { WikiFeedbackId } from "../../domain/wiki-feedback/value-objects.js";
|
|
14
|
-
import type { FeedbackStatus } from "../../domain/wiki-feedback/value-objects.js";
|
|
15
|
-
import type { WikiFeedbackRepository } from "../../domain/wiki-feedback/repositories.js";
|
|
16
|
-
/**
|
|
17
|
-
* SQLite implementation of WikiFeedbackRepository.
|
|
18
|
-
* Stores wiki feedback items with deduplication by azure_comment_id.
|
|
19
|
-
*/
|
|
20
|
-
export declare class SqliteWikiFeedbackRepository implements WikiFeedbackRepository {
|
|
21
|
-
private readonly db;
|
|
22
|
-
constructor(db: SqliteAdapter);
|
|
23
|
-
save(item: WikiFeedbackItem): Promise<void>;
|
|
24
|
-
findById(id: WikiFeedbackId): Promise<WikiFeedbackItem | undefined>;
|
|
25
|
-
findByAzureCommentId(azureCommentId: number): Promise<WikiFeedbackItem | undefined>;
|
|
26
|
-
findByStatus(status: FeedbackStatus, limit?: number): Promise<readonly WikiFeedbackItem[]>;
|
|
27
|
-
findPending(limit?: number): Promise<readonly WikiFeedbackItem[]>;
|
|
28
|
-
findRecent(limit: number): Promise<readonly WikiFeedbackItem[]>;
|
|
29
|
-
nextFeedbackSequence(): Promise<number>;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=sqlite-feedback-repository.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite-feedback-repository.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/wiki-feedback/sqlite-feedback-repository.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAE1E,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAClF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AA6DzF;;;GAGG;AACH,qBAAa,4BAA6B,YAAW,sBAAsB;IAC7D,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAAF,EAAE,EAAE,aAAa;IAIxC,IAAI,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC;IAkD3C,QAAQ,CAAC,EAAE,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAQnE,oBAAoB,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAQnF,YAAY,CAChB,MAAM,EAAE,cAAc,EAAE,KAAK,SAAK,GACjC,OAAO,CAAC,SAAS,gBAAgB,EAAE,CAAC;IAQjC,WAAW,CAAC,KAAK,SAAK,GAAG,OAAO,CAAC,SAAS,gBAAgB,EAAE,CAAC;IAI7D,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,gBAAgB,EAAE,CAAC;IAQ/D,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC;CAM9C"}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wiki Feedback Infrastructure — SQLite Feedback Repository
|
|
3
|
-
*
|
|
4
|
-
* Persists WikiFeedbackItem entities in SQLite with deduplication
|
|
5
|
-
* by azure_comment_id. Follows the same patterns as SqliteSyncEventRepository.
|
|
6
|
-
*
|
|
7
|
-
* SOLID: SRP — feedback item persistence only
|
|
8
|
-
* SOLID: DIP — implements domain-defined WikiFeedbackRepository
|
|
9
|
-
* DDD: Repository implementation in infrastructure layer
|
|
10
|
-
*/
|
|
11
|
-
import { WikiFeedbackItem } from "../../domain/wiki-feedback/entities.js";
|
|
12
|
-
import { WikiFeedbackId } from "../../domain/wiki-feedback/value-objects.js";
|
|
13
|
-
// ─── Schema ───────────────────────────────────────────────────────────────────
|
|
14
|
-
const SCHEMA_KEY = "wiki-feedback";
|
|
15
|
-
const DDL = `
|
|
16
|
-
CREATE TABLE IF NOT EXISTS wiki_feedback_items (
|
|
17
|
-
id TEXT PRIMARY KEY,
|
|
18
|
-
azure_comment_id INTEGER NOT NULL UNIQUE,
|
|
19
|
-
comment_text TEXT NOT NULL,
|
|
20
|
-
author_display_name TEXT NOT NULL,
|
|
21
|
-
author_unique_name TEXT NOT NULL,
|
|
22
|
-
page_id INTEGER NOT NULL,
|
|
23
|
-
page_path TEXT NOT NULL,
|
|
24
|
-
page_default_type TEXT NOT NULL,
|
|
25
|
-
status TEXT NOT NULL DEFAULT 'pending',
|
|
26
|
-
feedback_type TEXT,
|
|
27
|
-
priority TEXT,
|
|
28
|
-
card_id TEXT,
|
|
29
|
-
dismiss_reason TEXT,
|
|
30
|
-
detected_at TEXT NOT NULL,
|
|
31
|
-
triaged_at TEXT,
|
|
32
|
-
resolved_at TEXT,
|
|
33
|
-
comment_created_date TEXT NOT NULL
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
CREATE INDEX IF NOT EXISTS idx_wiki_feedback_status
|
|
37
|
-
ON wiki_feedback_items(status);
|
|
38
|
-
|
|
39
|
-
CREATE UNIQUE INDEX IF NOT EXISTS idx_wiki_feedback_azure_comment
|
|
40
|
-
ON wiki_feedback_items(azure_comment_id);
|
|
41
|
-
|
|
42
|
-
CREATE INDEX IF NOT EXISTS idx_wiki_feedback_detected
|
|
43
|
-
ON wiki_feedback_items(detected_at DESC);
|
|
44
|
-
`;
|
|
45
|
-
// ─── Repository Implementation ────────────────────────────────────────────────
|
|
46
|
-
/**
|
|
47
|
-
* SQLite implementation of WikiFeedbackRepository.
|
|
48
|
-
* Stores wiki feedback items with deduplication by azure_comment_id.
|
|
49
|
-
*/
|
|
50
|
-
export class SqliteWikiFeedbackRepository {
|
|
51
|
-
db;
|
|
52
|
-
constructor(db) {
|
|
53
|
-
this.db = db;
|
|
54
|
-
this.db.ensureSchema(SCHEMA_KEY, DDL);
|
|
55
|
-
}
|
|
56
|
-
async save(item) {
|
|
57
|
-
const p = item.toProps();
|
|
58
|
-
this.db.execute(`INSERT INTO wiki_feedback_items (
|
|
59
|
-
id, azure_comment_id, comment_text,
|
|
60
|
-
author_display_name, author_unique_name,
|
|
61
|
-
page_id, page_path, page_default_type,
|
|
62
|
-
status, feedback_type, priority,
|
|
63
|
-
card_id, dismiss_reason,
|
|
64
|
-
detected_at, triaged_at, resolved_at,
|
|
65
|
-
comment_created_date
|
|
66
|
-
) VALUES (
|
|
67
|
-
@id, @azureCommentId, @commentText,
|
|
68
|
-
@authorDisplayName, @authorUniqueName,
|
|
69
|
-
@pageId, @pagePath, @pageDefaultType,
|
|
70
|
-
@status, @feedbackType, @priority,
|
|
71
|
-
@cardId, @dismissReason,
|
|
72
|
-
@detectedAt, @triagedAt, @resolvedAt,
|
|
73
|
-
@commentCreatedDate
|
|
74
|
-
)
|
|
75
|
-
ON CONFLICT(id) DO UPDATE SET
|
|
76
|
-
status = @status,
|
|
77
|
-
feedback_type = @feedbackType,
|
|
78
|
-
priority = @priority,
|
|
79
|
-
card_id = @cardId,
|
|
80
|
-
dismiss_reason = @dismissReason,
|
|
81
|
-
triaged_at = @triagedAt,
|
|
82
|
-
resolved_at = @resolvedAt`, {
|
|
83
|
-
id: p.id,
|
|
84
|
-
azureCommentId: p.azureCommentId,
|
|
85
|
-
commentText: p.commentText,
|
|
86
|
-
authorDisplayName: p.authorDisplayName,
|
|
87
|
-
authorUniqueName: p.authorUniqueName,
|
|
88
|
-
pageId: p.pageId,
|
|
89
|
-
pagePath: p.pagePath,
|
|
90
|
-
pageDefaultType: p.pageDefaultType,
|
|
91
|
-
status: p.status,
|
|
92
|
-
feedbackType: p.feedbackType,
|
|
93
|
-
priority: p.priority,
|
|
94
|
-
cardId: p.cardId,
|
|
95
|
-
dismissReason: p.dismissReason,
|
|
96
|
-
detectedAt: p.detectedAt,
|
|
97
|
-
triagedAt: p.triagedAt,
|
|
98
|
-
resolvedAt: p.resolvedAt,
|
|
99
|
-
commentCreatedDate: p.commentCreatedDate,
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
async findById(id) {
|
|
103
|
-
const row = this.db.queryOne("SELECT * FROM wiki_feedback_items WHERE id = @id", { id: id.value });
|
|
104
|
-
return row ? toDomainItem(row) : undefined;
|
|
105
|
-
}
|
|
106
|
-
async findByAzureCommentId(azureCommentId) {
|
|
107
|
-
const row = this.db.queryOne("SELECT * FROM wiki_feedback_items WHERE azure_comment_id = @azureCommentId", { azureCommentId });
|
|
108
|
-
return row ? toDomainItem(row) : undefined;
|
|
109
|
-
}
|
|
110
|
-
async findByStatus(status, limit = 50) {
|
|
111
|
-
const rows = this.db.queryAll("SELECT * FROM wiki_feedback_items WHERE status = @status ORDER BY detected_at DESC LIMIT @limit", { status, limit });
|
|
112
|
-
return rows.map(toDomainItem);
|
|
113
|
-
}
|
|
114
|
-
async findPending(limit = 50) {
|
|
115
|
-
return this.findByStatus("pending", limit);
|
|
116
|
-
}
|
|
117
|
-
async findRecent(limit) {
|
|
118
|
-
const rows = this.db.queryAll("SELECT * FROM wiki_feedback_items ORDER BY detected_at DESC LIMIT @limit", { limit });
|
|
119
|
-
return rows.map(toDomainItem);
|
|
120
|
-
}
|
|
121
|
-
async nextFeedbackSequence() {
|
|
122
|
-
const row = this.db.queryOne("SELECT MAX(CAST(SUBSTR(id, 4) AS INTEGER)) as max_seq FROM wiki_feedback_items");
|
|
123
|
-
return (row?.max_seq ?? 0) + 1;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
// ─── Domain Reconstitution ────────────────────────────────────────────────────
|
|
127
|
-
function toDomainItem(row) {
|
|
128
|
-
const props = {
|
|
129
|
-
id: row.id,
|
|
130
|
-
azureCommentId: row.azure_comment_id,
|
|
131
|
-
commentText: row.comment_text,
|
|
132
|
-
authorDisplayName: row.author_display_name,
|
|
133
|
-
authorUniqueName: row.author_unique_name,
|
|
134
|
-
pageId: row.page_id,
|
|
135
|
-
pagePath: row.page_path,
|
|
136
|
-
pageDefaultType: row.page_default_type,
|
|
137
|
-
status: row.status,
|
|
138
|
-
feedbackType: row.feedback_type,
|
|
139
|
-
priority: row.priority,
|
|
140
|
-
cardId: row.card_id,
|
|
141
|
-
dismissReason: row.dismiss_reason,
|
|
142
|
-
detectedAt: row.detected_at,
|
|
143
|
-
triagedAt: row.triaged_at,
|
|
144
|
-
resolvedAt: row.resolved_at,
|
|
145
|
-
commentCreatedDate: row.comment_created_date,
|
|
146
|
-
};
|
|
147
|
-
return WikiFeedbackItem.reconstitute(props);
|
|
148
|
-
}
|
|
149
|
-
//# sourceMappingURL=sqlite-feedback-repository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite-feedback-repository.js","sourceRoot":"","sources":["../../../src/infrastructure/wiki-feedback/sqlite-feedback-repository.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAE1E,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAI7E,iFAAiF;AAEjF,MAAM,UAAU,GAAG,eAAe,CAAC;AAEnC,MAAM,GAAG,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BX,CAAC;AAwBF,iFAAiF;AAEjF;;;GAGG;AACH,MAAM,OAAO,4BAA4B;IACV;IAA7B,YAA6B,EAAiB;QAAjB,OAAE,GAAF,EAAE,CAAe;QAC5C,IAAI,CAAC,EAAE,CAAC,YAAY,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;IACxC,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,IAAsB;QAC/B,MAAM,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;QACzB,IAAI,CAAC,EAAE,CAAC,OAAO,CACb;;;;;;;;;;;;;;;;;;;;;;;;kCAwB4B,EAC5B;YACE,EAAE,EAAE,CAAC,CAAC,EAAE;YACR,cAAc,EAAE,CAAC,CAAC,cAAc;YAChC,WAAW,EAAE,CAAC,CAAC,WAAW;YAC1B,iBAAiB,EAAE,CAAC,CAAC,iBAAiB;YACtC,gBAAgB,EAAE,CAAC,CAAC,gBAAgB;YACpC,MAAM,EAAE,CAAC,CAAC,MAAM;YAChB,QAAQ,EAAE,CAAC,C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Y,CAAC,KAAK,CAAC,CAAC;AAC9C,CAAC"}
|
package/dist/mcp-server.d.ts
DELETED
package/dist/mcp-server.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server.d.ts","sourceRoot":"","sources":["../src/mcp-server.ts"],"names":[],"mappings":""}
|