@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,126 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Domain Map — Repository Interfaces (Ports)
|
|
3
|
-
*
|
|
4
|
-
* Defines the ports that infrastructure must implement.
|
|
5
|
-
* Domain depends on these abstractions, never on concrete implementations.
|
|
6
|
-
*
|
|
7
|
-
* Three ports:
|
|
8
|
-
* - LspClientPort: Communicates with LSP servers for structural extraction
|
|
9
|
-
* - LlmAnalysisPort: Sends structural data to LLM for semantic analysis
|
|
10
|
-
* - ProjectScannerPort: Scans project directories for file discovery
|
|
11
|
-
*
|
|
12
|
-
* SOLID: DIP — domain defines interfaces, infra implements them
|
|
13
|
-
* SOLID: ISP — separate interfaces per concern
|
|
14
|
-
* DDD: Repository/Port interfaces in domain layer
|
|
15
|
-
*/
|
|
16
|
-
import type { CodeSymbol, LanguageId, SemanticAnalysis, SourceRange, StructuralGraph, SymbolReference, ProjectScanResult, AnalysisConfig } from "./value-objects.js";
|
|
17
|
-
/**
|
|
18
|
-
* Port for communicating with Language Server Protocol servers.
|
|
19
|
-
* Infrastructure spawns LSP servers via child_process (JSON-RPC stdio).
|
|
20
|
-
*
|
|
21
|
-
* Used exclusively by Path B (Legacy analysis) for structural extraction.
|
|
22
|
-
* Each method corresponds to an LSP protocol request.
|
|
23
|
-
*/
|
|
24
|
-
export interface LspClientPort {
|
|
25
|
-
/**
|
|
26
|
-
* Initialize the LSP server for a given project root and language.
|
|
27
|
-
* Spawns the appropriate LSP server process and performs handshake.
|
|
28
|
-
* @param rootUri - file:// URI of the project root directory
|
|
29
|
-
* @param language - Language to determine which LSP server to spawn
|
|
30
|
-
*/
|
|
31
|
-
initialize(rootUri: string, language: LanguageId): Promise<void>;
|
|
32
|
-
/**
|
|
33
|
-
* Gracefully shut down the LSP server and kill the process.
|
|
34
|
-
* Must be called after analysis is complete.
|
|
35
|
-
*/
|
|
36
|
-
shutdown(): Promise<void>;
|
|
37
|
-
/**
|
|
38
|
-
* Get document symbols (hierarchy) for a file.
|
|
39
|
-
* LSP request: textDocument/documentSymbol
|
|
40
|
-
* @param fileUri - file:// URI of the document to analyze
|
|
41
|
-
* @returns Hierarchical code symbols (classes contain methods, etc.)
|
|
42
|
-
*/
|
|
43
|
-
documentSymbols(fileUri: string): Promise<readonly CodeSymbol[]>;
|
|
44
|
-
/**
|
|
45
|
-
* Find all references to a symbol at a given position.
|
|
46
|
-
* LSP request: textDocument/references
|
|
47
|
-
* @param fileUri - file:// URI of the document
|
|
48
|
-
* @param position - Line and character position of the symbol
|
|
49
|
-
* @returns References found across the project
|
|
50
|
-
*/
|
|
51
|
-
references(fileUri: string, position: SourceRange): Promise<readonly SymbolReference[]>;
|
|
52
|
-
/**
|
|
53
|
-
* Get the call hierarchy for a symbol at a given position.
|
|
54
|
-
* LSP request: callHierarchy/incomingCalls + callHierarchy/outgoingCalls
|
|
55
|
-
* @param fileUri - file:// URI of the document
|
|
56
|
-
* @param position - Line and character position of the symbol
|
|
57
|
-
* @returns References representing call relationships
|
|
58
|
-
*/
|
|
59
|
-
callHierarchy(fileUri: string, position: SourceRange): Promise<readonly SymbolReference[]>;
|
|
60
|
-
/**
|
|
61
|
-
* Check if the LSP server for a language is available (installed).
|
|
62
|
-
* @param language - Language to check
|
|
63
|
-
* @returns true if the LSP server binary is found in PATH
|
|
64
|
-
*/
|
|
65
|
-
isAvailable(language: LanguageId): Promise<boolean>;
|
|
66
|
-
}
|
|
67
|
-
/** Code sample provided to the LLM for context during analysis. */
|
|
68
|
-
export interface CodeSample {
|
|
69
|
-
readonly filePath: string;
|
|
70
|
-
readonly content: string;
|
|
71
|
-
readonly lineCount: number;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* User preference for which LLM provider/model to use.
|
|
75
|
-
* Pure value object — no external dependencies.
|
|
76
|
-
* When omitted, the infrastructure uses the session's default model.
|
|
77
|
-
*/
|
|
78
|
-
export interface LlmModelPreference {
|
|
79
|
-
readonly providerID: string;
|
|
80
|
-
readonly modelID: string;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Port for LLM-powered semantic analysis of codebase structure.
|
|
84
|
-
* Infrastructure implements this via OpenCode SDK `client.session.prompt`.
|
|
85
|
-
*
|
|
86
|
-
* Used exclusively by Path B (Legacy analysis) as stage 2 of the pipeline:
|
|
87
|
-
* LSP structural extraction → LLM semantic analysis → document generation.
|
|
88
|
-
*/
|
|
89
|
-
export interface LlmAnalysisPort {
|
|
90
|
-
/**
|
|
91
|
-
* Analyze a structural graph and code samples to produce a semantic analysis.
|
|
92
|
-
* The LLM proposes bounded contexts, identifies SRP violations,
|
|
93
|
-
* and recommends a DDD-compliant structure.
|
|
94
|
-
*
|
|
95
|
-
* @param graph - Structural graph from LSP extraction
|
|
96
|
-
* @param codeSamples - Representative code samples for context
|
|
97
|
-
* @param modelPreference - Optional LLM provider/model override
|
|
98
|
-
* @returns Semantic analysis with proposed DDD decomposition
|
|
99
|
-
*/
|
|
100
|
-
analyzeStructure(graph: StructuralGraph, codeSamples: readonly CodeSample[], modelPreference?: LlmModelPreference): Promise<SemanticAnalysis>;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Port for scanning project directories to discover source files.
|
|
104
|
-
* Infrastructure implements this with Node.js fs operations.
|
|
105
|
-
*
|
|
106
|
-
* Used by both Path A and Path B as the first step: scan → detect mode.
|
|
107
|
-
*/
|
|
108
|
-
export interface ProjectScannerPort {
|
|
109
|
-
/**
|
|
110
|
-
* Scan a project directory and discover all source files.
|
|
111
|
-
* Applies skip directories, binary extension filtering,
|
|
112
|
-
* and computes line counts for mode detection.
|
|
113
|
-
*
|
|
114
|
-
* @param directory - Root directory to scan
|
|
115
|
-
* @param config - Analysis configuration (thresholds, limits)
|
|
116
|
-
* @returns Scan result with files, language distribution, and structure indicators
|
|
117
|
-
*/
|
|
118
|
-
scanProject(directory: string, config: AnalysisConfig): Promise<ProjectScanResult>;
|
|
119
|
-
/**
|
|
120
|
-
* Read the content of a source file as UTF-8 text.
|
|
121
|
-
* @param absolutePath - Full path to the file
|
|
122
|
-
* @returns File content or null if unreadable
|
|
123
|
-
*/
|
|
124
|
-
readFile(absolutePath: string): Promise<string | null>;
|
|
125
|
-
}
|
|
126
|
-
//# sourceMappingURL=repositories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"repositories.d.ts","sourceRoot":"","sources":["../../../src/domain/domain-map/repositories.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,cAAc,EACf,MAAM,oBAAoB,CAAC;AAI5B;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjE;;;OAGG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1B;;;;;OAKG;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0,0 @@
|
|
|
1
|
-
{"version":3,"file":"repositories.js","sourceRoot":"","sources":["../../../src/domain/domain-map/repositories.ts"],"names":[],"mappings":""}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vault Canvas Value Objects and Entity
|
|
3
|
-
*
|
|
4
|
-
* Models the Obsidian .canvas file format (JSON Canvas spec 1.0).
|
|
5
|
-
* Supports text, file, link, and group node types plus directional edges.
|
|
6
|
-
* CanvasDocument is the aggregate root for canvas operations.
|
|
7
|
-
*
|
|
8
|
-
* DDD: Entity (CanvasDocument) with Value Objects (nodes, edges)
|
|
9
|
-
* SOLID: SRP - canvas structure only
|
|
10
|
-
*/
|
|
11
|
-
export type CanvasNodeType = "text" | "file" | "link" | "group";
|
|
12
|
-
export type CanvasEdgeSide = "top" | "right" | "bottom" | "left";
|
|
13
|
-
export type CanvasEdgeEnd = "none" | "arrow";
|
|
14
|
-
export interface CanvasNode {
|
|
15
|
-
readonly id: string;
|
|
16
|
-
readonly type: CanvasNodeType;
|
|
17
|
-
readonly x: number;
|
|
18
|
-
readonly y: number;
|
|
19
|
-
readonly width: number;
|
|
20
|
-
readonly height: number;
|
|
21
|
-
readonly color?: string;
|
|
22
|
-
readonly text?: string;
|
|
23
|
-
readonly file?: string;
|
|
24
|
-
readonly subpath?: string;
|
|
25
|
-
readonly url?: string;
|
|
26
|
-
readonly label?: string;
|
|
27
|
-
readonly background?: string;
|
|
28
|
-
readonly backgroundStyle?: "cover" | "ratio" | "repeat";
|
|
29
|
-
}
|
|
30
|
-
export interface CanvasEdge {
|
|
31
|
-
readonly id: string;
|
|
32
|
-
readonly fromNode: string;
|
|
33
|
-
readonly toNode: string;
|
|
34
|
-
readonly fromSide?: CanvasEdgeSide;
|
|
35
|
-
readonly toSide?: CanvasEdgeSide;
|
|
36
|
-
readonly fromEnd?: CanvasEdgeEnd;
|
|
37
|
-
readonly toEnd?: CanvasEdgeEnd;
|
|
38
|
-
readonly color?: string;
|
|
39
|
-
readonly label?: string;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Aggregate root for .canvas files.
|
|
43
|
-
* Immutable — mutators return new CanvasDocument instances.
|
|
44
|
-
*/
|
|
45
|
-
export declare class CanvasDocument {
|
|
46
|
-
readonly nodes: readonly CanvasNode[];
|
|
47
|
-
readonly edges: readonly CanvasEdge[];
|
|
48
|
-
private constructor();
|
|
49
|
-
/** Parse from JSON string. */
|
|
50
|
-
static fromJSON(json: string): CanvasDocument;
|
|
51
|
-
/** Create from node and edge arrays. */
|
|
52
|
-
static create(nodes: readonly CanvasNode[], edges: readonly CanvasEdge[]): CanvasDocument;
|
|
53
|
-
/** Serialize to formatted JSON string. */
|
|
54
|
-
toJSON(): string;
|
|
55
|
-
/** Find a node by ID. */
|
|
56
|
-
findNode(id: string): CanvasNode | null;
|
|
57
|
-
/** Find all edges originating from a node. */
|
|
58
|
-
findEdgesFrom(nodeId: string): readonly CanvasEdge[];
|
|
59
|
-
/** Find all edges pointing to a node. */
|
|
60
|
-
findEdgesTo(nodeId: string): readonly CanvasEdge[];
|
|
61
|
-
/** Return a new document with an added or replaced node. */
|
|
62
|
-
withNode(node: CanvasNode): CanvasDocument;
|
|
63
|
-
/** Return a new document with an added or replaced edge. */
|
|
64
|
-
withEdge(edge: CanvasEdge): CanvasDocument;
|
|
65
|
-
/** Return a new document with a node removed (also removes connected edges). */
|
|
66
|
-
withoutNode(id: string): CanvasDocument;
|
|
67
|
-
/** Return a new document with an edge removed. */
|
|
68
|
-
withoutEdge(id: string): CanvasDocument;
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=canvas.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"canvas.d.ts","sourceRoot":"","sources":["../../../src/domain/vault/canvas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAChE,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AAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAID;;;GAGG;AACH,qBAAa,cAAc;IACzB,QAAQ,CAAC,KAAK,EAAE,SAAS,UAAU,EAAE,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,SAAS,UAAU,EAAE,CAAC;IAEtC,OAAO;IAQP,8BAA8B;IAC9B,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc;IAQ7C,wCAAwC;IACxC,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,SAAS,UAAU,EAAE,EAC5B,KAAK,EAAE,SAAS,UAAU,EAAE,GAC3B,cAAc;IAIjB,0CAA0C;IAC1C,MAAM,IAAI,MAAM;IAQhB,yBAAyB;IACzB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,IAAI;IAIvC,8CAA8C;IAC9C,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,UAAU,EAAE;IAIpD,yCAAyC;IACzC,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,UAAU,EAAE;IAIlD,4DAA4D;IAC5D,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,cAAc;IAK1C,4DAA4D;IAC5D,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,cAAc;IAK1C,gFAAgF;IAChF,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc;IAQvC,kDAAkD;IAClD,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc;CAIxC"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vault Canvas Value Objects and Entity
|
|
3
|
-
*
|
|
4
|
-
* Models the Obsidian .canvas file format (JSON Canvas spec 1.0).
|
|
5
|
-
* Supports text, file, link, and group node types plus directional edges.
|
|
6
|
-
* CanvasDocument is the aggregate root for canvas operations.
|
|
7
|
-
*
|
|
8
|
-
* DDD: Entity (CanvasDocument) with Value Objects (nodes, edges)
|
|
9
|
-
* SOLID: SRP - canvas structure only
|
|
10
|
-
*/
|
|
11
|
-
// ── CanvasDocument ────────────────────────────────────────────────────
|
|
12
|
-
/**
|
|
13
|
-
* Aggregate root for .canvas files.
|
|
14
|
-
* Immutable — mutators return new CanvasDocument instances.
|
|
15
|
-
*/
|
|
16
|
-
export class CanvasDocument {
|
|
17
|
-
nodes;
|
|
18
|
-
edges;
|
|
19
|
-
constructor(nodes, edges) {
|
|
20
|
-
this.nodes = nodes;
|
|
21
|
-
this.edges = edges;
|
|
22
|
-
}
|
|
23
|
-
/** Parse from JSON string. */
|
|
24
|
-
static fromJSON(json) {
|
|
25
|
-
const parsed = JSON.parse(json);
|
|
26
|
-
return new CanvasDocument(parsed.nodes ?? [], parsed.edges ?? []);
|
|
27
|
-
}
|
|
28
|
-
/** Create from node and edge arrays. */
|
|
29
|
-
static create(nodes, edges) {
|
|
30
|
-
return new CanvasDocument(nodes, edges);
|
|
31
|
-
}
|
|
32
|
-
/** Serialize to formatted JSON string. */
|
|
33
|
-
toJSON() {
|
|
34
|
-
return JSON.stringify({ nodes: this.nodes, edges: this.edges }, null, 2);
|
|
35
|
-
}
|
|
36
|
-
/** Find a node by ID. */
|
|
37
|
-
findNode(id) {
|
|
38
|
-
return this.nodes.find((n) => n.id === id) ?? null;
|
|
39
|
-
}
|
|
40
|
-
/** Find all edges originating from a node. */
|
|
41
|
-
findEdgesFrom(nodeId) {
|
|
42
|
-
return this.edges.filter((e) => e.fromNode === nodeId);
|
|
43
|
-
}
|
|
44
|
-
/** Find all edges pointing to a node. */
|
|
45
|
-
findEdgesTo(nodeId) {
|
|
46
|
-
return this.edges.filter((e) => e.toNode === nodeId);
|
|
47
|
-
}
|
|
48
|
-
/** Return a new document with an added or replaced node. */
|
|
49
|
-
withNode(node) {
|
|
50
|
-
const filtered = this.nodes.filter((n) => n.id !== node.id);
|
|
51
|
-
return new CanvasDocument([...filtered, node], this.edges);
|
|
52
|
-
}
|
|
53
|
-
/** Return a new document with an added or replaced edge. */
|
|
54
|
-
withEdge(edge) {
|
|
55
|
-
const filtered = this.edges.filter((e) => e.id !== edge.id);
|
|
56
|
-
return new CanvasDocument(this.nodes, [...filtered, edge]);
|
|
57
|
-
}
|
|
58
|
-
/** Return a new document with a node removed (also removes connected edges). */
|
|
59
|
-
withoutNode(id) {
|
|
60
|
-
const nodes = this.nodes.filter((n) => n.id !== id);
|
|
61
|
-
const edges = this.edges.filter((e) => e.fromNode !== id && e.toNode !== id);
|
|
62
|
-
return new CanvasDocument(nodes, edges);
|
|
63
|
-
}
|
|
64
|
-
/** Return a new document with an edge removed. */
|
|
65
|
-
withoutEdge(id) {
|
|
66
|
-
const edges = this.edges.filter((e) => e.id !== id);
|
|
67
|
-
return new CanvasDocument(this.nodes, edges);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=canvas.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"canvas.js","sourceRoot":"","sources":["../../../src/domain/vault/canvas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AA6CH,yEAAyE;AAEzE;;;GAGG;AACH,MAAM,OAAO,cAAc;IAChB,KAAK,CAAwB;IAC7B,KAAK,CAAwB;IAEtC,YACE,KAA4B,EAC5B,KAA4B;QAE5B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,8BAA8B;IAC9B,MAAM,CAAC,QAAQ,CAAC,IAAY;QAC1B,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAG7B,CAAC;QACF,OAAO,IAAI,cAAc,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,wCAAwC;IACxC,MAAM,CAAC,MAAM,CACX,KAA4B,EAC5B,KAA4B;QAE5B,OAA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KAAK,IAAI,CAAC,EAAE,CAAC,CAAC;QAC5D,OAAO,IAAI,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,GAAG,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;IAC7D,CAAC;IAED,gFAAgF;IAChF,WAAW,CAAC,EAAU;QACpB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACpD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAC7B,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,KAAK,EAAE,IAAI,CAAC,CAAC,MAAM,KAAK,EAAE,CAC5C,CAAC;QACF,OAAO,IAAI,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;IAED,kDAAkD;IAClD,WAAW,CAAC,EAAU;QACpB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACpD,OAAO,IAAI,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC/C,CAAC;CACF"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vault Timeline Value Objects
|
|
3
|
-
*
|
|
4
|
-
* Models the Chronos Timeline plugin syntax for Obsidian.
|
|
5
|
-
* TimelineEntry represents a single timeline item (event, period, point, marker).
|
|
6
|
-
* TimelineBlock represents a complete ```chronos code block.
|
|
7
|
-
*
|
|
8
|
-
* DDD: Value Objects - immutable, equality by content
|
|
9
|
-
* SOLID: SRP - timeline serialization/parsing only
|
|
10
|
-
*/
|
|
11
|
-
export type ChronosItemType = "event" | "period" | "point" | "marker";
|
|
12
|
-
export type ChronosColor = "red" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "cyan";
|
|
13
|
-
export declare class TimelineEntry {
|
|
14
|
-
readonly type: ChronosItemType;
|
|
15
|
-
readonly startDate: string;
|
|
16
|
-
readonly endDate: string | undefined;
|
|
17
|
-
readonly name: string;
|
|
18
|
-
readonly description: string | undefined;
|
|
19
|
-
readonly color: ChronosColor | undefined;
|
|
20
|
-
readonly group: string | undefined;
|
|
21
|
-
private constructor();
|
|
22
|
-
static create(params: {
|
|
23
|
-
readonly type: ChronosItemType;
|
|
24
|
-
readonly startDate: string;
|
|
25
|
-
readonly endDate?: string;
|
|
26
|
-
readonly name: string;
|
|
27
|
-
readonly description?: string;
|
|
28
|
-
readonly color?: ChronosColor;
|
|
29
|
-
readonly group?: string;
|
|
30
|
-
}): TimelineEntry;
|
|
31
|
-
/**
|
|
32
|
-
* Serialize to a single Chronos timeline line.
|
|
33
|
-
* Format: `{prefix} [{date}] #color {Group} Name | Description`
|
|
34
|
-
*/
|
|
35
|
-
toChronosLine(): string;
|
|
36
|
-
}
|
|
37
|
-
export declare class TimelineBlock {
|
|
38
|
-
readonly entries: readonly TimelineEntry[];
|
|
39
|
-
readonly flags: readonly string[];
|
|
40
|
-
private constructor();
|
|
41
|
-
static create(entries: readonly TimelineEntry[], flags?: readonly string[]): TimelineBlock;
|
|
42
|
-
/**
|
|
43
|
-
* Parse a Chronos code block body (content between ```chronos fences).
|
|
44
|
-
* Recognizes entry lines (- @ * =) and flag lines (>).
|
|
45
|
-
* Comments (#) are ignored.
|
|
46
|
-
*/
|
|
47
|
-
static parse(blockContent: string): TimelineBlock;
|
|
48
|
-
/** Serialize to a complete ```chronos fenced code block. */
|
|
49
|
-
toChronosBlock(): string;
|
|
50
|
-
/** Return a new block with an entry appended. */
|
|
51
|
-
withEntry(entry: TimelineEntry): TimelineBlock;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=timeline.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timeline.d.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AAC;IAElC,OAAO;IAQP,MAAM,CAAC,MAAM,CACX,OAAO,EAAE,SAAS,aAAa,EAAE,EACjC,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,GACxB,aAAa;IAIhB;;;;OAIG;IACH,MAAM,CAAC,KAAK,CAAC,YAAY,EAAE,MAAM,GAAG,aAAa;IA0FjD,4DAA4D;IAC5D,cAAc,IAAI,MAAM;IAYxB,iDAAiD;IACjD,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa;CAG/C"}
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vault Timeline Value Objects
|
|
3
|
-
*
|
|
4
|
-
* Models the Chronos Timeline plugin syntax for Obsidian.
|
|
5
|
-
* TimelineEntry represents a single timeline item (event, period, point, marker).
|
|
6
|
-
* TimelineBlock represents a complete ```chronos code block.
|
|
7
|
-
*
|
|
8
|
-
* DDD: Value Objects - immutable, equality by content
|
|
9
|
-
* SOLID: SRP - timeline serialization/parsing only
|
|
10
|
-
*/
|
|
11
|
-
const TYPE_PREFIXES = {
|
|
12
|
-
event: "-",
|
|
13
|
-
period: "@",
|
|
14
|
-
point: "*",
|
|
15
|
-
marker: "=",
|
|
16
|
-
};
|
|
17
|
-
// ── TimelineEntry ─────────────────────────────────────────────────────
|
|
18
|
-
export class TimelineEntry {
|
|
19
|
-
type;
|
|
20
|
-
startDate;
|
|
21
|
-
endDate;
|
|
22
|
-
name;
|
|
23
|
-
description;
|
|
24
|
-
color;
|
|
25
|
-
group;
|
|
26
|
-
constructor(params) {
|
|
27
|
-
this.type = params.type;
|
|
28
|
-
this.startDate = params.startDate;
|
|
29
|
-
this.endDate = params.endDate;
|
|
30
|
-
this.name = params.name;
|
|
31
|
-
this.description = params.description;
|
|
32
|
-
this.color = params.color;
|
|
33
|
-
this.group = params.group;
|
|
34
|
-
}
|
|
35
|
-
static create(params) {
|
|
36
|
-
if (params.startDate.trim().length === 0) {
|
|
37
|
-
throw new Error("TimelineEntry: startDate cannot be empty");
|
|
38
|
-
}
|
|
39
|
-
if (params.name.trim().length === 0) {
|
|
40
|
-
throw new Error("TimelineEntry: name cannot be empty");
|
|
41
|
-
}
|
|
42
|
-
if (params.type === "period" && params.endDate === undefined) {
|
|
43
|
-
throw new Error("TimelineEntry: period type requires endDate");
|
|
44
|
-
}
|
|
45
|
-
if (params.type === "marker" && params.endDate !== undefined) {
|
|
46
|
-
throw new Error("TimelineEntry: marker type cannot have endDate");
|
|
47
|
-
}
|
|
48
|
-
return new TimelineEntry({
|
|
49
|
-
type: params.type,
|
|
50
|
-
startDate: params.startDate.trim(),
|
|
51
|
-
endDate: params.endDate?.trim(),
|
|
52
|
-
name: params.name.trim(),
|
|
53
|
-
description: params.description?.trim(),
|
|
54
|
-
color: params.color,
|
|
55
|
-
group: params.group?.trim(),
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Serialize to a single Chronos timeline line.
|
|
60
|
-
* Format: `{prefix} [{date}] #color {Group} Name | Description`
|
|
61
|
-
*/
|
|
62
|
-
toChronosLine() {
|
|
63
|
-
const prefix = TYPE_PREFIXES[this.type];
|
|
64
|
-
const dateStr = this.endDate !== undefined
|
|
65
|
-
? `${this.startDate}~${this.endDate}`
|
|
66
|
-
: this.startDate;
|
|
67
|
-
const parts = [`${prefix} [${dateStr}]`];
|
|
68
|
-
if (this.color !== undefined) {
|
|
69
|
-
parts.push(`#${this.color}`);
|
|
70
|
-
}
|
|
71
|
-
if (this.group !== undefined) {
|
|
72
|
-
parts.push(`{${this.group}}`);
|
|
73
|
-
}
|
|
74
|
-
parts.push(this.name);
|
|
75
|
-
let line = parts.join(" ");
|
|
76
|
-
if (this.description !== undefined) {
|
|
77
|
-
line += ` | ${this.description}`;
|
|
78
|
-
}
|
|
79
|
-
return line;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
// ── TimelineBlock ─────────────────────────────────────────────────────
|
|
83
|
-
export class TimelineBlock {
|
|
84
|
-
entries;
|
|
85
|
-
flags;
|
|
86
|
-
constructor(entries, flags) {
|
|
87
|
-
this.entries = entries;
|
|
88
|
-
this.flags = flags;
|
|
89
|
-
}
|
|
90
|
-
static create(entries, flags) {
|
|
91
|
-
return new TimelineBlock(entries, flags ?? []);
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Parse a Chronos code block body (content between ```chronos fences).
|
|
95
|
-
* Recognizes entry lines (- @ * =) and flag lines (>).
|
|
96
|
-
* Comments (#) are ignored.
|
|
97
|
-
*/
|
|
98
|
-
static parse(blockContent) {
|
|
99
|
-
const lines = blockContent.split("\n");
|
|
100
|
-
const entries = [];
|
|
101
|
-
const flags = [];
|
|
102
|
-
for (const rawLine of lines) {
|
|
103
|
-
const line = rawLine.trim();
|
|
104
|
-
if (line.length === 0)
|
|
105
|
-
continue;
|
|
106
|
-
// Comment
|
|
107
|
-
if (line.startsWith("#"))
|
|
108
|
-
continue;
|
|
109
|
-
// Flag
|
|
110
|
-
if (line.startsWith(">")) {
|
|
111
|
-
flags.push(line.slice(1).trim());
|
|
112
|
-
continue;
|
|
113
|
-
}
|
|
114
|
-
// Entry: detect type by prefix
|
|
115
|
-
const entryMatch = line.match(/^([*@=\-])\s+\[([^\]]+)\]\s*(.*)/);
|
|
116
|
-
if (entryMatch === null)
|
|
117
|
-
continue;
|
|
118
|
-
const prefixChar = entryMatch[1];
|
|
119
|
-
const dateSection = entryMatch[2];
|
|
120
|
-
let remainder = entryMatch[3];
|
|
121
|
-
const type = prefixToType(prefixChar);
|
|
122
|
-
if (type === null)
|
|
123
|
-
continue;
|
|
124
|
-
// Parse date range
|
|
125
|
-
const dateParts = dateSection.split("~");
|
|
126
|
-
const startDate = dateParts[0].trim();
|
|
127
|
-
const endDate = dateParts.length > 1 ? dateParts[1].trim() : undefined;
|
|
128
|
-
// Parse optional color
|
|
129
|
-
let color;
|
|
130
|
-
const colorMatch = remainder.match(/^#(\w+)\s*/);
|
|
131
|
-
if (colorMatch !== null) {
|
|
132
|
-
const candidate = colorMatch[1].toLowerCase();
|
|
133
|
-
if (isChronosColor(candidate)) {
|
|
134
|
-
color = candidate;
|
|
135
|
-
remainder = remainder.slice(colorMatch[0].length);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
// Parse optional group
|
|
139
|
-
let group;
|
|
140
|
-
const groupMatch = remainder.match(/^\{([^}]+)\}\s*/);
|
|
141
|
-
if (groupMatch !== null) {
|
|
142
|
-
group = groupMatch[1].trim();
|
|
143
|
-
remainder = remainder.slice(groupMatch[0].length);
|
|
144
|
-
}
|
|
145
|
-
// Parse name and description
|
|
146
|
-
const pipeIndex = remainder.indexOf("|");
|
|
147
|
-
let name;
|
|
148
|
-
let description;
|
|
149
|
-
if (pipeIndex !== -1) {
|
|
150
|
-
name = remainder.slice(0, pipeIndex).trim();
|
|
151
|
-
description = remainder.slice(pipeIndex + 1).trim();
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
name = remainder.trim();
|
|
155
|
-
}
|
|
156
|
-
if (name.length === 0)
|
|
157
|
-
continue;
|
|
158
|
-
try {
|
|
159
|
-
entries.push(TimelineEntry.create({
|
|
160
|
-
type,
|
|
161
|
-
startDate,
|
|
162
|
-
...(endDate !== undefined ? { endDate } : {}),
|
|
163
|
-
name,
|
|
164
|
-
...(description !== undefined ? { description } : {}),
|
|
165
|
-
...(color !== undefined ? { color } : {}),
|
|
166
|
-
...(group !== undefined ? { group } : {}),
|
|
167
|
-
}));
|
|
168
|
-
}
|
|
169
|
-
catch {
|
|
170
|
-
// Skip invalid entries (e.g., period without end date)
|
|
171
|
-
continue;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
return new TimelineBlock(entries, flags);
|
|
175
|
-
}
|
|
176
|
-
/** Serialize to a complete ```chronos fenced code block. */
|
|
177
|
-
toChronosBlock() {
|
|
178
|
-
const lines = ["```chronos"];
|
|
179
|
-
for (const flag of this.flags) {
|
|
180
|
-
lines.push(`> ${flag}`);
|
|
181
|
-
}
|
|
182
|
-
for (const entry of this.entries) {
|
|
183
|
-
lines.push(entry.toChronosLine());
|
|
184
|
-
}
|
|
185
|
-
lines.push("```");
|
|
186
|
-
return lines.join("\n");
|
|
187
|
-
}
|
|
188
|
-
/** Return a new block with an entry appended. */
|
|
189
|
-
withEntry(entry) {
|
|
190
|
-
return new TimelineBlock([...this.entries, entry], this.flags);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
// ── Private Helpers ───────────────────────────────────────────────────
|
|
194
|
-
const CHRONOS_COLORS = new Set([
|
|
195
|
-
"red", "orange", "yellow", "green", "blue", "purple", "pink", "cyan",
|
|
196
|
-
]);
|
|
197
|
-
function isChronosColor(value) {
|
|
198
|
-
return CHRONOS_COLORS.has(value);
|
|
199
|
-
}
|
|
200
|
-
function prefixToType(prefix) {
|
|
201
|
-
switch (prefix) {
|
|
202
|
-
case "-":
|
|
203
|
-
return "event";
|
|
204
|
-
case "@":
|
|
205
|
-
return "period";
|
|
206
|
-
case "*":
|
|
207
|
-
return "point";
|
|
208
|
-
case "=":
|
|
209
|
-
return "marker";
|
|
210
|
-
default:
|
|
211
|
-
return null;
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
//# sourceMappingURL=timeline.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"timeline.js","sourceRoot":"","sources":["../../../src/domain/vault/timeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAgBH,MAAM,aAAa,GAAoC;IACrD,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;IACX,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;CACZ,CAAC;AAEF,yEAAyE;AAEzE,MAAM,OAAO,aAAa;IACf,IAAI,CAAkB;IACtB,SAAS,CAAS;IAClB,OAAO,CAAqB;IAC5B,IAAI,CAAS;IACb,WAAW,CAAqB;IAChC,KAAK,CAA2B;IAChC,KAAK,CAAqB;IAEnC,YAAoB,MAQnB;QACC,IA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