@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,115 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wiki Feedback Application — Use Cases
|
|
3
|
-
*
|
|
4
|
-
* Orchestrates wiki feedback operations: scan pages for new comments,
|
|
5
|
-
* list pending items, triage with type/priority, create kanban cards,
|
|
6
|
-
* and dismiss irrelevant feedback. Uses domain entities and repository
|
|
7
|
-
* ports — zero infrastructure dependencies.
|
|
8
|
-
*
|
|
9
|
-
* SOLID: SRP — wiki feedback workflow orchestration only
|
|
10
|
-
* SOLID: DIP — depends on domain ports and repository interfaces
|
|
11
|
-
* DDD: Application Service pattern with Result returns
|
|
12
|
-
*/
|
|
13
|
-
import type { Result } from "../../domain/shared/value-objects.js";
|
|
14
|
-
import type { WikiFeedbackRepository } from "../../domain/wiki-feedback/repositories.js";
|
|
15
|
-
import type { WikiClientPort } from "../../domain/wiki-feedback/ports.js";
|
|
16
|
-
import type { MonitoredPageConfig } from "../../domain/config/value-objects.js";
|
|
17
|
-
/** Response DTO for a single feedback item. */
|
|
18
|
-
export interface WikiFeedbackResponse {
|
|
19
|
-
readonly id: string;
|
|
20
|
-
readonly azureCommentId: number;
|
|
21
|
-
readonly commentText: string;
|
|
22
|
-
readonly authorDisplayName: string;
|
|
23
|
-
readonly authorUniqueName: string;
|
|
24
|
-
readonly pageId: number;
|
|
25
|
-
readonly pagePath: string;
|
|
26
|
-
readonly status: string;
|
|
27
|
-
readonly feedbackType: string | null;
|
|
28
|
-
readonly priority: string | null;
|
|
29
|
-
readonly cardId: string | null;
|
|
30
|
-
readonly dismissReason: string | null;
|
|
31
|
-
readonly detectedAt: string;
|
|
32
|
-
readonly triagedAt: string | null;
|
|
33
|
-
readonly resolvedAt: string | null;
|
|
34
|
-
readonly commentCreatedDate: string;
|
|
35
|
-
}
|
|
36
|
-
/** Request DTO for triaging a feedback item. */
|
|
37
|
-
export interface TriageFeedbackRequest {
|
|
38
|
-
readonly feedbackId: string;
|
|
39
|
-
readonly feedbackType: string;
|
|
40
|
-
readonly priority: string;
|
|
41
|
-
}
|
|
42
|
-
/** Request DTO for creating a card from feedback. */
|
|
43
|
-
export interface CreateCardFromFeedbackRequest {
|
|
44
|
-
readonly feedbackId: string;
|
|
45
|
-
readonly title?: string;
|
|
46
|
-
readonly description?: string;
|
|
47
|
-
readonly epicId?: string;
|
|
48
|
-
}
|
|
49
|
-
/** Request DTO for dismissing a feedback item. */
|
|
50
|
-
export interface DismissFeedbackRequest {
|
|
51
|
-
readonly feedbackId: string;
|
|
52
|
-
readonly reason: string;
|
|
53
|
-
}
|
|
54
|
-
/** Summary returned after a scan operation. */
|
|
55
|
-
export interface ScanResult {
|
|
56
|
-
readonly pagesScanned: number;
|
|
57
|
-
readonly newCommentsFound: number;
|
|
58
|
-
readonly existingSkipped: number;
|
|
59
|
-
readonly autoRepliesFiltered: number;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Callback to create a kanban card from feedback.
|
|
63
|
-
* Injected from the kanban BC — avoids direct cross-context dependency.
|
|
64
|
-
* Returns the created card ID on success.
|
|
65
|
-
*/
|
|
66
|
-
export type CreateCardCallback = (params: {
|
|
67
|
-
readonly title: string;
|
|
68
|
-
readonly workspace: string;
|
|
69
|
-
readonly priority?: string;
|
|
70
|
-
readonly description?: string;
|
|
71
|
-
readonly epicId?: string;
|
|
72
|
-
}) => Promise<Result<{
|
|
73
|
-
readonly id: string;
|
|
74
|
-
}>>;
|
|
75
|
-
export interface WikiFeedbackUseCasesDeps {
|
|
76
|
-
readonly feedbackRepo: WikiFeedbackRepository;
|
|
77
|
-
readonly wikiClient: WikiClientPort;
|
|
78
|
-
readonly createCard: CreateCardCallback;
|
|
79
|
-
readonly workspace: string;
|
|
80
|
-
readonly wikiIdentifier: string;
|
|
81
|
-
readonly monitoredPages: readonly MonitoredPageConfig[];
|
|
82
|
-
readonly autoReply: boolean;
|
|
83
|
-
readonly autoReplyPrefix: string;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Application use cases for wiki feedback processing.
|
|
87
|
-
* Orchestrates scan → triage → card creation / dismiss lifecycle.
|
|
88
|
-
*/
|
|
89
|
-
export declare class WikiFeedbackUseCases {
|
|
90
|
-
private readonly deps;
|
|
91
|
-
constructor(deps: WikiFeedbackUseCasesDeps);
|
|
92
|
-
/**
|
|
93
|
-
* Scan all monitored wiki pages for new comments.
|
|
94
|
-
* Creates WikiFeedbackItem for each new comment not yet tracked.
|
|
95
|
-
* Filters out auto-reply comments posted by JARVIS.
|
|
96
|
-
*/
|
|
97
|
-
scan(): Promise<Result<ScanResult>>;
|
|
98
|
-
/** List pending (untriaged) feedback items. */
|
|
99
|
-
listPending(limit?: number): Promise<Result<readonly WikiFeedbackResponse[]>>;
|
|
100
|
-
/** List feedback items by status. */
|
|
101
|
-
listByStatus(status: string, limit?: number): Promise<Result<readonly WikiFeedbackResponse[]>>;
|
|
102
|
-
/** List recent feedback items across all statuses. */
|
|
103
|
-
listRecent(limit?: number): Promise<Result<readonly WikiFeedbackResponse[]>>;
|
|
104
|
-
/** Triage a pending feedback item: assign type and priority. */
|
|
105
|
-
triage(request: TriageFeedbackRequest): Promise<Result<WikiFeedbackResponse>>;
|
|
106
|
-
/**
|
|
107
|
-
* Create a kanban card from a triaged feedback item.
|
|
108
|
-
* Optionally posts an auto-reply on the wiki page.
|
|
109
|
-
*/
|
|
110
|
-
createCard(request: CreateCardFromFeedbackRequest): Promise<Result<WikiFeedbackResponse>>;
|
|
111
|
-
/** Dismiss a feedback item with a reason. */
|
|
112
|
-
dismiss(request: DismissFeedbackRequest): Promise<Result<WikiFeedbackResponse>>;
|
|
113
|
-
private postAutoReply;
|
|
114
|
-
}
|
|
115
|
-
//# sourceMappingURL=use-cases.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-cases.d.ts","sourceRoot":"","sources":["../../../src/application/wiki-feedback/use-cases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAenE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACzF,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qCAAqC,CAAC;AACvF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAIhF,+CAA+C;AAC/C,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,QAAQ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AE,CAAC,CAAC;IAW9E,gEAAgE;IAC1D,MAAM,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAkCnF;;;OAGG;IACG,UAAU,CACd,OAAO,EAAE,6BAA6B,GACrC,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;IAkDxC,6CAA6C;IACvC,OAAO,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;YAuBvE,aAAa;CAe5B"}
|
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Wiki Feedback Application — Use Cases
|
|
3
|
-
*
|
|
4
|
-
* Orchestrates wiki feedback operations: scan pages for new comments,
|
|
5
|
-
* list pending items, triage with type/priority, create kanban cards,
|
|
6
|
-
* and dismiss irrelevant feedback. Uses domain entities and repository
|
|
7
|
-
* ports — zero infrastructure dependencies.
|
|
8
|
-
*
|
|
9
|
-
* SOLID: SRP — wiki feedback workflow orchestration only
|
|
10
|
-
* SOLID: DIP — depends on domain ports and repository interfaces
|
|
11
|
-
* DDD: Application Service pattern with Result returns
|
|
12
|
-
*/
|
|
13
|
-
import { ok, fail, Timestamp } from "../../domain/shared/value-objects.js";
|
|
14
|
-
import { WikiFeedbackId, CommentAuthor, PageSource, isValidFeedbackType, isValidFeedbackPriority, } from "../../domain/wiki-feedback/value-objects.js";
|
|
15
|
-
import { WikiFeedbackItem } from "../../domain/wiki-feedback/entities.js";
|
|
16
|
-
// ─── Use Cases ────────────────────────────────────────────────────────────────
|
|
17
|
-
/**
|
|
18
|
-
* Application use cases for wiki feedback processing.
|
|
19
|
-
* Orchestrates scan → triage → card creation / dismiss lifecycle.
|
|
20
|
-
*/
|
|
21
|
-
export class WikiFeedbackUseCases {
|
|
22
|
-
deps;
|
|
23
|
-
constructor(deps) {
|
|
24
|
-
this.deps = deps;
|
|
25
|
-
}
|
|
26
|
-
// ── Scan ──────────────────────────────────────────────────────────
|
|
27
|
-
/**
|
|
28
|
-
* Scan all monitored wiki pages for new comments.
|
|
29
|
-
* Creates WikiFeedbackItem for each new comment not yet tracked.
|
|
30
|
-
* Filters out auto-reply comments posted by JARVIS.
|
|
31
|
-
*/
|
|
32
|
-
async scan() {
|
|
33
|
-
const { feedbackRepo, wikiClient, wikiIdentifier, monitoredPages, autoReplyPrefix } = this.deps;
|
|
34
|
-
if (monitoredPages.length === 0) {
|
|
35
|
-
return fail("No monitored pages configured in wiki-feedback config");
|
|
36
|
-
}
|
|
37
|
-
if (!wikiIdentifier) {
|
|
38
|
-
return fail("wikiIdentifier is not configured in wiki-feedback config");
|
|
39
|
-
}
|
|
40
|
-
let newCommentsFound = 0;
|
|
41
|
-
let existingSkipped = 0;
|
|
42
|
-
let autoRepliesFiltered = 0;
|
|
43
|
-
for (const page of monitoredPages) {
|
|
44
|
-
const commentsResult = await wikiClient.getPageComments({
|
|
45
|
-
wikiIdentifier,
|
|
46
|
-
pageId: page.pageId,
|
|
47
|
-
});
|
|
48
|
-
if (!commentsResult.success) {
|
|
49
|
-
return fail(`Failed to fetch comments for page ${page.path}: ${commentsResult.error}`);
|
|
50
|
-
}
|
|
51
|
-
for (const comment of commentsResult.data) {
|
|
52
|
-
// Filter auto-replies by checking if comment starts with the configured prefix
|
|
53
|
-
if (isAutoReply(comment, autoReplyPrefix)) {
|
|
54
|
-
autoRepliesFiltered++;
|
|
55
|
-
continue;
|
|
56
|
-
}
|
|
57
|
-
// Deduplication: skip if already tracked
|
|
58
|
-
const existing = await feedbackRepo.findByAzureCommentId(comment.id);
|
|
59
|
-
if (existing) {
|
|
60
|
-
existingSkipped++;
|
|
61
|
-
continue;
|
|
62
|
-
}
|
|
63
|
-
// Create new feedback item
|
|
64
|
-
const seq = await feedbackRepo.nextFeedbackSequence();
|
|
65
|
-
const item = WikiFeedbackItem.create({
|
|
66
|
-
id: WikiFeedbackId.create(seq),
|
|
67
|
-
azureCommentId: comment.id,
|
|
68
|
-
commentText: comment.text,
|
|
69
|
-
author: CommentAuthor.create(comment.createdBy.displayName, comment.createdBy.uniqueName),
|
|
70
|
-
pageSource: PageSource.create(page.pageId, page.path, page.defaultType),
|
|
71
|
-
commentCreatedDate: Timestamp.fromISO(comment.createdDate),
|
|
72
|
-
});
|
|
73
|
-
await feedbackRepo.save(item);
|
|
74
|
-
newCommentsFound++;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return ok({
|
|
78
|
-
pagesScanned: monitoredPages.length,
|
|
79
|
-
newCommentsFound,
|
|
80
|
-
existingSkipped,
|
|
81
|
-
autoRepliesFiltered,
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
// ── List ──────────────────────────────────────────────────────────
|
|
85
|
-
/** List pending (untriaged) feedback items. */
|
|
86
|
-
async listPending(limit = 50) {
|
|
87
|
-
try {
|
|
88
|
-
const items = await this.deps.feedbackRepo.findPending(limit);
|
|
89
|
-
return ok(items.map(toFeedbackResponse));
|
|
90
|
-
}
|
|
91
|
-
catch (error) {
|
|
92
|
-
return fail(`Failed to list pending feedback: ${String(error)}`);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
/** List feedback items by status. */
|
|
96
|
-
async listByStatus(status, limit = 50) {
|
|
97
|
-
if (!isValidFeedbackStatus(status)) {
|
|
98
|
-
return fail(`Invalid status: "${status}". Valid: pending, triaged, card_created, dismissed`);
|
|
99
|
-
}
|
|
100
|
-
try {
|
|
101
|
-
const items = await this.deps.feedbackRepo.findByStatus(status, limit);
|
|
102
|
-
return ok(items.map(toFeedbackResponse));
|
|
103
|
-
}
|
|
104
|
-
catch (error) {
|
|
105
|
-
return fail(`Failed to list feedback by status: ${String(error)}`);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
/** List recent feedback items across all statuses. */
|
|
109
|
-
async listRecent(limit = 20) {
|
|
110
|
-
try {
|
|
111
|
-
const items = await this.deps.feedbackRepo.findRecent(limit);
|
|
112
|
-
return ok(items.map(toFeedbackResponse));
|
|
113
|
-
}
|
|
114
|
-
catch (error) {
|
|
115
|
-
return fail(`Failed to list recent feedback: ${String(error)}`);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
// ── Triage ────────────────────────────────────────────────────────
|
|
119
|
-
/** Triage a pending feedback item: assign type and priority. */
|
|
120
|
-
async triage(request) {
|
|
121
|
-
if (!isValidFeedbackType(request.feedbackType)) {
|
|
122
|
-
return fail(`Invalid feedback type: "${request.feedbackType}". ` +
|
|
123
|
-
`Valid: feature, bug, improvement, question, documentation`);
|
|
124
|
-
}
|
|
125
|
-
if (!isValidFeedbackPriority(request.priority)) {
|
|
126
|
-
return fail(`Invalid priority: "${request.priority}". Valid: high, medium, low`);
|
|
127
|
-
}
|
|
128
|
-
try {
|
|
129
|
-
const item = await this.deps.feedbackRepo.findById(WikiFeedbackId.from(request.feedbackId));
|
|
130
|
-
if (!item) {
|
|
131
|
-
return fail(`Feedback item not found: ${request.feedbackId}`);
|
|
132
|
-
}
|
|
133
|
-
item.triage(request.feedbackType, request.priority);
|
|
134
|
-
await this.deps.feedbackRepo.save(item);
|
|
135
|
-
return ok(toFeedbackResponse(item));
|
|
136
|
-
}
|
|
137
|
-
catch (error) {
|
|
138
|
-
return fail(`Failed to triage feedback: ${String(error)}`);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
// ── Create Card ───────────────────────────────────────────────────
|
|
142
|
-
/**
|
|
143
|
-
* Create a kanban card from a triaged feedback item.
|
|
144
|
-
* Optionally posts an auto-reply on the wiki page.
|
|
145
|
-
*/
|
|
146
|
-
async createCard(request) {
|
|
147
|
-
try {
|
|
148
|
-
const item = await this.deps.feedbackRepo.findById(WikiFeedbackId.from(request.feedbackId));
|
|
149
|
-
if (!item) {
|
|
150
|
-
return fail(`Feedback item not found: ${request.feedbackId}`);
|
|
151
|
-
}
|
|
152
|
-
if (item.status !== "triaged") {
|
|
153
|
-
return fail(`Feedback ${request.feedbackId} is "${item.status}" — must be "triaged" to create a card`);
|
|
154
|
-
}
|
|
155
|
-
// Build card title from feedback or use custom
|
|
156
|
-
const title = request.title ?? buildCardTitle(item);
|
|
157
|
-
const description = request.description ?? buildCardDescription(item);
|
|
158
|
-
// Create the kanban card via injected callback
|
|
159
|
-
const cardResult = await this.deps.createCard({
|
|
160
|
-
title,
|
|
161
|
-
workspace: this.deps.workspace,
|
|
162
|
-
...(item.priority !== null ? { priority: item.priority } : {}),
|
|
163
|
-
...(description !== undefined ? { description } : {}),
|
|
164
|
-
...(request.epicId !== undefined ? { epicId: request.epicId } : {}),
|
|
165
|
-
});
|
|
166
|
-
if (!cardResult.success) {
|
|
167
|
-
return fail(`Failed to create kanban card: ${cardResult.error}`);
|
|
168
|
-
}
|
|
169
|
-
const cardId = cardResult.data.id;
|
|
170
|
-
item.markCardCreated(cardId);
|
|
171
|
-
await this.deps.feedbackRepo.save(item);
|
|
172
|
-
// Auto-reply on wiki (fire-and-forget, must not block)
|
|
173
|
-
if (this.deps.autoReply) {
|
|
174
|
-
this.postAutoReply(item, cardId).catch(() => {
|
|
175
|
-
// Swallow — auto-reply failure must not affect card creation
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
return ok(toFeedbackResponse(item));
|
|
179
|
-
}
|
|
180
|
-
catch (error) {
|
|
181
|
-
return fail(`Failed to create card from feedback: ${String(error)}`);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
// ── Dismiss ───────────────────────────────────────────────────────
|
|
185
|
-
/** Dismiss a feedback item with a reason. */
|
|
186
|
-
async dismiss(request) {
|
|
187
|
-
if (!request.reason.trim()) {
|
|
188
|
-
return fail("Dismiss reason cannot be empty");
|
|
189
|
-
}
|
|
190
|
-
try {
|
|
191
|
-
const item = await this.deps.feedbackRepo.findById(WikiFeedbackId.from(request.feedbackId));
|
|
192
|
-
if (!item) {
|
|
193
|
-
return fail(`Feedback item not found: ${request.feedbackId}`);
|
|
194
|
-
}
|
|
195
|
-
item.dismiss(request.reason);
|
|
196
|
-
await this.deps.feedbackRepo.save(item);
|
|
197
|
-
return ok(toFeedbackResponse(item));
|
|
198
|
-
}
|
|
199
|
-
catch (error) {
|
|
200
|
-
return fail(`Failed to dismiss feedback: ${String(error)}`);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
// ── Auto-Reply ────────────────────────────────────────────────────
|
|
204
|
-
async postAutoReply(item, cardId) {
|
|
205
|
-
const { wikiClient, wikiIdentifier, autoReplyPrefix } = this.deps;
|
|
206
|
-
const text = `**${autoReplyPrefix}**: This feedback has been captured as kanban card **${cardId}**. ` +
|
|
207
|
-
`Thank you for your input!`;
|
|
208
|
-
await wikiClient.postPageComment({
|
|
209
|
-
wikiIdentifier,
|
|
210
|
-
pageId: item.pageSource.pageId,
|
|
211
|
-
text,
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
// ─── Helpers ──────────────────────────────────────────────────────────────────
|
|
216
|
-
function toFeedbackResponse(item) {
|
|
217
|
-
const p = item.toProps();
|
|
218
|
-
return {
|
|
219
|
-
id: p.id,
|
|
220
|
-
azureCommentId: p.azureCommentId,
|
|
221
|
-
commentText: p.commentText,
|
|
222
|
-
authorDisplayName: p.authorDisplayName,
|
|
223
|
-
authorUniqueName: p.authorUniqueName,
|
|
224
|
-
pageId: p.pageId,
|
|
225
|
-
pagePath: p.pagePath,
|
|
226
|
-
status: p.status,
|
|
227
|
-
feedbackType: p.feedbackType,
|
|
228
|
-
priority: p.priority,
|
|
229
|
-
cardId: p.cardId,
|
|
230
|
-
dismissReason: p.dismissReason,
|
|
231
|
-
detectedAt: p.detectedAt,
|
|
232
|
-
triagedAt: p.triagedAt,
|
|
233
|
-
resolvedAt: p.resolvedAt,
|
|
234
|
-
commentCreatedDate: p.commentCreatedDate,
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
/** Check if a comment is an auto-reply from JARVIS. */
|
|
238
|
-
function isAutoReply(comment, prefix) {
|
|
239
|
-
if (!prefix)
|
|
240
|
-
return false;
|
|
241
|
-
const marker = `**${prefix}**:`;
|
|
242
|
-
return comment.text.trimStart().startsWith(marker);
|
|
243
|
-
}
|
|
244
|
-
/** Validate feedback status string (local helper, not exported from domain). */
|
|
245
|
-
function isValidFeedbackStatus(value) {
|
|
246
|
-
return ["pending", "triaged", "card_created", "dismissed"].includes(value);
|
|
247
|
-
}
|
|
248
|
-
/** Build a default card title from feedback item. */
|
|
249
|
-
function buildCardTitle(item) {
|
|
250
|
-
const typeLabel = item.feedbackType ?? "feedback";
|
|
251
|
-
const prefix = typeLabel.charAt(0).toUpperCase() + typeLabel.slice(1);
|
|
252
|
-
// Truncate comment to ~60 chars for title
|
|
253
|
-
const snippet = item.commentText.length > 60
|
|
254
|
-
? item.commentText.substring(0, 57) + "..."
|
|
255
|
-
: item.commentText;
|
|
256
|
-
return `[Wiki ${prefix}] ${snippet}`;
|
|
257
|
-
}
|
|
258
|
-
/** Build a default card description from feedback item. */
|
|
259
|
-
function buildCardDescription(item) {
|
|
260
|
-
const lines = [
|
|
261
|
-
`**Source**: Wiki page "${item.pageSource.pagePath}" (page ${item.pageSource.pageId})`,
|
|
262
|
-
`**Author**: ${item.author.displayName} (${item.author.uniqueName})`,
|
|
263
|
-
`**Comment date**: ${item.commentCreatedDate.toISO()}`,
|
|
264
|
-
`**Feedback ID**: ${item.id.value}`,
|
|
265
|
-
"",
|
|
266
|
-
"**Original comment**:",
|
|
267
|
-
item.commentText,
|
|
268
|
-
];
|
|
269
|
-
return lines.join("\n");
|
|
270
|
-
}
|
|
271
|
-
//# sourceMappingURL=use-cases.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-cases.js","sourceRoot":"","sources":["../../../src/application/wiki-feedback/use-cases.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EACL,cAAc,EACd,a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AC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
import { ConfigService } from "../application/config/config-service.js";
|
|
3
|
-
import { ConfigWriteService } from "../application/config/config-write-service.js";
|
|
4
|
-
import type { PromptPort } from "./wizard-prompts.js";
|
|
5
|
-
/**
|
|
6
|
-
* Run the config wizard loop.
|
|
7
|
-
* Exported for testability — accepts injected dependencies.
|
|
8
|
-
*/
|
|
9
|
-
export declare function runWizard(opts: {
|
|
10
|
-
configService: ConfigService;
|
|
11
|
-
configWriteService: ConfigWriteService;
|
|
12
|
-
prompt: PromptPort;
|
|
13
|
-
}): Promise<void>;
|
|
14
|
-
//# sourceMappingURL=config-wizard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-wizard.d.ts","sourceRoot":"","sources":["../../src/cli/config-wizard.ts"],"names":[],"mappings":";AAqBA,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAGnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAsBtD;;;GAGG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAAE;IACpC,aAAa,EAAE,aAAa,CAAC;IAC7B,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,MAAM,EAAE,UAAU,CAAC;CACpB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6DhB"}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
/**
|
|
3
|
-
* JARVIS Config Wizard — Standalone CLI Entry Point
|
|
4
|
-
*
|
|
5
|
-
* Interactive terminal wizard for configuring JARVIS per-project.
|
|
6
|
-
* Guides users through each config section with prompts, shows current
|
|
7
|
-
* values, validates input, and persists minimal overrides.
|
|
8
|
-
*
|
|
9
|
-
* Usage: jarvis config [--directory <path>]
|
|
10
|
-
*
|
|
11
|
-
* Architecture: Minimal wiring — only config infrastructure is needed.
|
|
12
|
-
* No database, no kanban, no RAG — just YAML read/write + prompts.
|
|
13
|
-
*
|
|
14
|
-
* SOLID: SRP — CLI entry point and orchestration only
|
|
15
|
-
* SOLID: DIP — depends on PromptPort abstraction for testability
|
|
16
|
-
*/
|
|
17
|
-
import { resolve, join } from "node:path";
|
|
18
|
-
import { existsSync, mkdirSync } from "node:fs";
|
|
19
|
-
import { YamlConfigRepository } from "../infrastructure/config/yaml-config-repository.js";
|
|
20
|
-
import { YamlConfigWriter } from "../infrastructure/config/yaml-config-writer.js";
|
|
21
|
-
import { ConfigService } from "../application/config/config-service.js";
|
|
22
|
-
import { ConfigWriteService } from "../application/config/config-write-service.js";
|
|
23
|
-
import { ClackPromptAdapter } from "./wizard-prompts.js";
|
|
24
|
-
import { getSectionEntries } from "./section-editors.js";
|
|
25
|
-
// ── CLI Argument Parsing ──────────────────────────────────────────────
|
|
26
|
-
function parseArgs(argv) {
|
|
27
|
-
let directory = process.cwd();
|
|
28
|
-
for (let i = 0; i < argv.length; i++) {
|
|
29
|
-
const arg = argv[i];
|
|
30
|
-
if (arg === "--directory" || arg === "-d") {
|
|
31
|
-
const next = argv[i + 1];
|
|
32
|
-
if (next !== undefined) {
|
|
33
|
-
directory = resolve(next);
|
|
34
|
-
i++;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return { directory };
|
|
39
|
-
}
|
|
40
|
-
// ── Wizard Orchestration ──────────────────────────────────────────────
|
|
41
|
-
/**
|
|
42
|
-
* Run the config wizard loop.
|
|
43
|
-
* Exported for testability — accepts injected dependencies.
|
|
44
|
-
*/
|
|
45
|
-
export async function runWizard(opts) {
|
|
46
|
-
const { configService, configWriteService, prompt } = opts;
|
|
47
|
-
const sections = getSectionEntries();
|
|
48
|
-
prompt.intro("JARVIS Configuration Wizard");
|
|
49
|
-
const configAvailable = configService.isExternalConfigAvailable();
|
|
50
|
-
if (!configAvailable) {
|
|
51
|
-
prompt.log("No config/jarvis.yaml found — using defaults. Changes will create the file.");
|
|
52
|
-
}
|
|
53
|
-
// Main loop — select section, edit, save, repeat
|
|
54
|
-
let running = true;
|
|
55
|
-
while (running) {
|
|
56
|
-
const sectionOptions = [
|
|
57
|
-
...sections.map((s) => ({
|
|
58
|
-
value: s.name,
|
|
59
|
-
label: s.label,
|
|
60
|
-
hint: s.hint,
|
|
61
|
-
})),
|
|
62
|
-
{ value: "__exit__", label: "Exit", hint: "save and quit" },
|
|
63
|
-
];
|
|
64
|
-
const choice = await prompt.select({
|
|
65
|
-
message: "Select a section to configure",
|
|
66
|
-
options: sectionOptions,
|
|
67
|
-
});
|
|
68
|
-
if (choice === undefined || choice === "__exit__") {
|
|
69
|
-
running = false;
|
|
70
|
-
continue;
|
|
71
|
-
}
|
|
72
|
-
const section = sections.find((s) => s.name === choice);
|
|
73
|
-
if (section === undefined)
|
|
74
|
-
continue;
|
|
75
|
-
// Read current effective config
|
|
76
|
-
const effective = configService.getConfig(choice);
|
|
77
|
-
// Run the section editor
|
|
78
|
-
const changes = await section.editor(effective, prompt);
|
|
79
|
-
if (changes === undefined) {
|
|
80
|
-
prompt.log("No changes made.");
|
|
81
|
-
continue;
|
|
82
|
-
}
|
|
83
|
-
// Persist changes via ConfigWriteService
|
|
84
|
-
try {
|
|
85
|
-
configWriteService.updateContext(choice, changes);
|
|
86
|
-
prompt.log(`Section "${section.label}" updated successfully.`);
|
|
87
|
-
}
|
|
88
|
-
catch (err) {
|
|
89
|
-
const msg = err instanceof Error ? err.message : String(err);
|
|
90
|
-
prompt.warn(`Failed to save: ${msg}`);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
prompt.outro("Configuration saved. Goodbye!");
|
|
94
|
-
}
|
|
95
|
-
// ── Main ──────────────────────────────────────────────────────────────
|
|
96
|
-
async function main() {
|
|
97
|
-
const { directory } = parseArgs(process.argv.slice(2));
|
|
98
|
-
// Ensure config directory exists
|
|
99
|
-
const configDir = join(directory, "config");
|
|
100
|
-
if (!existsSync(configDir)) {
|
|
101
|
-
mkdirSync(configDir, { recursive: true });
|
|
102
|
-
}
|
|
103
|
-
// Wire minimal infrastructure
|
|
104
|
-
const configPath = join(configDir, "jarvis.yaml");
|
|
105
|
-
const configRepo = new YamlConfigRepository(configPath);
|
|
106
|
-
const configWriter = new YamlConfigWriter(configPath);
|
|
107
|
-
const configService = new ConfigService(configRepo);
|
|
108
|
-
const configWriteService = new ConfigWriteService(configRepo, configWriter);
|
|
109
|
-
// Run wizard with production prompt adapter
|
|
110
|
-
await runWizard({
|
|
111
|
-
configService,
|
|
112
|
-
configWriteService,
|
|
113
|
-
prompt: new ClackPromptAdapter(),
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
main().catch((err) => {
|
|
117
|
-
console.error("Fatal error:", err);
|
|
118
|
-
process.exit(1);
|
|
119
|
-
});
|
|
120
|
-
//# sourceMappingURL=config-wizard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-wizard.js","sourceRoot":"","sources":["../../src/cli/config-wizard.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEhD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAC1F,OAAO,EAAE,gBAAgB,EAAE,MAAM,gDAAgD,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AAEnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,yEAAyE;AAEzE,SAAS,SAAS,CAAC,IAAuB;IACxC,IAAI,SAAS,GAAG,OAAO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AK,CAAC,+BAA+B,CAAC,CAAC;AAChD,CAAC;AAED,yEAAyE;AAEzE,KAAK,UAAU,IAAI;IACjB,MAAM,EAAE,SAAS,EAAE,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAEvD,iCAAiC;IACjC,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC5C,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;QAC3B,SAAS,CAAC,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5C,CAAC;IAED,8BAA8B;IAC9B,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IAClD,MAAM,UAAU,GAAG,IAAI,oBAAoB,CAAC,UAAU,CAAC,CAAC;IACxD,MAAM,YAAY,GAAG,IAAI,gBAAgB,CAAC,UAAU,CAAC,CAAC;IACtD,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC;IACpD,MAAM,kBAAkB,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAE5E,4CAA4C;IAC5C,MAAM,SAAS,CAAC;QACd,aAAa;QACb,kBAAkB;QAClB,MAAM,EAAE,IAAI,kBAAkB,EAAE;KACjC,CAAC,CAAC;AACL,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC;IACnC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Section Editors — Config Section Interactive Editing
|
|
3
|
-
*
|
|
4
|
-
* Each section editor reads the current effective config, presents
|
|
5
|
-
* values to the user via the PromptPort, and returns the partial
|
|
6
|
-
* update object (only changed values). Returns undefined if cancelled.
|
|
7
|
-
*
|
|
8
|
-
* SOLID: SRP — section editing logic only
|
|
9
|
-
* SOLID: OCP — new sections added by creating new editor functions
|
|
10
|
-
* SOLID: DIP — depends on PromptPort abstraction, not clack directly
|
|
11
|
-
*/
|
|
12
|
-
import type { PromptPort } from "./wizard-prompts.js";
|
|
13
|
-
/** A section editor function signature. */
|
|
14
|
-
export type SectionEditor = (current: unknown, prompt: PromptPort) => Promise<Record<string, unknown> | undefined>;
|
|
15
|
-
/** Section metadata for the wizard menu. */
|
|
16
|
-
export interface SectionEntry {
|
|
17
|
-
readonly name: string;
|
|
18
|
-
readonly label: string;
|
|
19
|
-
readonly hint: string;
|
|
20
|
-
readonly editor: SectionEditor;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Returns all editable sections with metadata and editor functions.
|
|
24
|
-
*/
|
|
25
|
-
export declare function getSectionEntries(): readonly SectionEntry[];
|
|
26
|
-
/** Format a value for display in the current-value summary. */
|
|
27
|
-
export declare function formatDisplayValue(value: unknown): string;
|
|
28
|
-
/** Build a summary of current values for a section. */
|
|
29
|
-
export declare function buildSectionSummary(fields: readonly {
|
|
30
|
-
label: string;
|
|
31
|
-
value: unknown;
|
|
32
|
-
}[]): string;
|
|
33
|
-
//# sourceMappingURL=section-editors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"section-editors.d.ts","sourceRoot":"","sources":["../../src/cli/section-editors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAYtD,2CAA2C;AAC3C,MAAM,MAAM,aAAa,GAAG,CAC1B,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,UAAU,KACf,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,CAAC;AAElD,4CAA4C;AAC5C,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;CAChC;AAID;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,SAAS,YAAY,EAAE,CAS3D;AAID,+DAA+D;AAC/D,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CASzD;AAED,uDAAuD;AACvD,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,EAAE,GACnD,MAAM,CAKR"}
|