@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,411 +1,394 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Pipeline Tools
|
|
2
|
+
* Pipeline Tools
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* OpenCode tool definitions for managing CI/CD pipelines with quality gates.
|
|
5
|
+
* Provides agent-accessible tools for pipeline lifecycle, gate operations,
|
|
6
|
+
* and template management.
|
|
6
7
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
8
|
+
* Tools defined (7):
|
|
9
|
+
* pipeline-init — Create a new pipeline from a stack template
|
|
10
|
+
* pipeline-activate — Activate a draft pipeline
|
|
11
|
+
* pipeline-cancel — Cancel a draft or active pipeline
|
|
12
|
+
* pipeline-retry — Retry a failed pipeline
|
|
13
|
+
* gate-run — Execute a gate via Dagger
|
|
14
|
+
* gate-pass — Manually pass a gate
|
|
15
|
+
* gate-fail — Manually fail a gate
|
|
16
|
+
* gate-skip — Skip a gate with reason
|
|
17
|
+
* pipeline-query — Query pipelines and templates
|
|
18
|
+
*
|
|
19
|
+
* SOLID: SRP — pipeline tool exposure only
|
|
20
|
+
* SOLID: DIP — depends on use case abstractions
|
|
9
21
|
*/
|
|
22
|
+
import { PIPELINE_STATUS_VALUES, PIPELINE_SCOPE_VALUES, PIPELINE_QUERY_VALUES, } from "../domain/pipeline/enum-values.js";
|
|
10
23
|
import { tool } from "@opencode-ai/plugin";
|
|
11
24
|
const z = tool.schema;
|
|
12
|
-
// ── Result Formatting ─────────────────────────────────────────────────
|
|
13
|
-
/** Generic Result-to-string formatter. */
|
|
14
|
-
function formatResult(result, formatter) {
|
|
15
|
-
if (!result.success)
|
|
16
|
-
return `ERROR: ${result.error}`;
|
|
17
|
-
return formatter(result.data);
|
|
18
|
-
}
|
|
19
|
-
/** Format a gate response for display. */
|
|
20
|
-
function formatGate(g) {
|
|
21
|
-
const lines = [` [${g.order}] ${g.id} ${g.type} — ${g.status}`];
|
|
22
|
-
lines.push(` Dagger: ${g.daggerFunction} | Skip: ${g.skipPolicy}`);
|
|
23
|
-
if (g.command !== undefined)
|
|
24
|
-
lines.push(` Command: ${g.command}`);
|
|
25
|
-
if (g.output !== undefined) {
|
|
26
|
-
const truncated = g.output.length > 200 ? g.output.slice(0, 200) + "..." : g.output;
|
|
27
|
-
lines.push(` Output: ${truncated}`);
|
|
28
|
-
}
|
|
29
|
-
if (g.skippedReason !== undefined)
|
|
30
|
-
lines.push(` Skipped: ${g.skippedReason}`);
|
|
31
|
-
if (g.approvedBy !== undefined)
|
|
32
|
-
lines.push(` Approved by: ${g.approvedBy}`);
|
|
33
|
-
if (g.startedAt !== undefined)
|
|
34
|
-
lines.push(` Started: ${g.startedAt}`);
|
|
35
|
-
if (g.completedAt !== undefined)
|
|
36
|
-
lines.push(` Completed: ${g.completedAt}`);
|
|
37
|
-
return lines.join("\n");
|
|
38
|
-
}
|
|
39
|
-
/** Format a pipeline response for display. */
|
|
40
|
-
function formatPipeline(p) {
|
|
41
|
-
const lines = [
|
|
42
|
-
`Pipeline: ${p.id} [${p.status}]`,
|
|
43
|
-
` Workspace: ${p.workspaceId}`,
|
|
44
|
-
` Template: ${p.templateId} (${p.scope})`,
|
|
45
|
-
` Version: ${p.version}`,
|
|
46
|
-
` Gates: ${p.gateCount}`,
|
|
47
|
-
];
|
|
48
|
-
if (p.cardId !== undefined)
|
|
49
|
-
lines.push(` Card: ${p.cardId}`);
|
|
50
|
-
if (p.currentGate !== undefined)
|
|
51
|
-
lines.push(` Current Gate: ${p.currentGate}`);
|
|
52
|
-
if (p.nextGate !== undefined)
|
|
53
|
-
lines.push(` Next Gate: ${p.nextGate}`);
|
|
54
|
-
lines.push(` Created: ${p.createdAt}`);
|
|
55
|
-
if (p.activatedAt !== undefined)
|
|
56
|
-
lines.push(` Activated: ${p.activatedAt}`);
|
|
57
|
-
if (p.completedAt !== undefined)
|
|
58
|
-
lines.push(` Completed: ${p.completedAt}`);
|
|
59
|
-
if (p.gates.length > 0) {
|
|
60
|
-
lines.push(` Gate Details:`);
|
|
61
|
-
for (const gate of p.gates) {
|
|
62
|
-
lines.push(formatGate(gate));
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return lines.join("\n");
|
|
66
|
-
}
|
|
67
|
-
/** Format a template response for display. */
|
|
68
|
-
function formatTemplate(t) {
|
|
69
|
-
const lines = [
|
|
70
|
-
`Template: ${t.stack} (${t.scope})`,
|
|
71
|
-
` Gates: ${t.gates.length}`,
|
|
72
|
-
];
|
|
73
|
-
for (const g of t.gates) {
|
|
74
|
-
const parts = [` - ${g.type}: dagger=${g.daggerFunction}, skip=${g.skipPolicy}`];
|
|
75
|
-
if (g.command !== undefined)
|
|
76
|
-
parts.push(`, cmd=${g.command}`);
|
|
77
|
-
lines.push(parts.join(""));
|
|
78
|
-
}
|
|
79
|
-
return lines.join("\n");
|
|
80
|
-
}
|
|
81
|
-
/** Format a run-gate result for display. */
|
|
82
|
-
function formatRunGateResult(r) {
|
|
83
|
-
const dagger = r.daggerResult;
|
|
84
|
-
const status = dagger.success ? "PASSED" : "FAILED";
|
|
85
|
-
const lines = [
|
|
86
|
-
`Gate Run: ${r.gateId} — ${status}`,
|
|
87
|
-
` Exit Code: ${dagger.exitCode}`,
|
|
88
|
-
` Duration: ${dagger.durationMs}ms`,
|
|
89
|
-
];
|
|
90
|
-
if (dagger.output.length > 0) {
|
|
91
|
-
const truncated = dagger.output.length > 500
|
|
92
|
-
? dagger.output.slice(0, 500) + "..."
|
|
93
|
-
: dagger.output;
|
|
94
|
-
lines.push(` Output: ${truncated}`);
|
|
95
|
-
}
|
|
96
|
-
lines.push("");
|
|
97
|
-
lines.push(formatPipeline(r.pipeline));
|
|
98
|
-
return lines.join("\n");
|
|
99
|
-
}
|
|
100
|
-
// ── Schema Constants ──────────────────────────────────────────────────
|
|
101
|
-
const STACK_ENUM = z.enum([
|
|
102
|
-
"typescript-lib",
|
|
103
|
-
"typescript-app",
|
|
104
|
-
"python-lib",
|
|
105
|
-
"python-app",
|
|
106
|
-
"swift-ios",
|
|
107
|
-
"csharp-app",
|
|
108
|
-
"kotlin-android",
|
|
109
|
-
"generic",
|
|
110
|
-
]);
|
|
111
|
-
const SCOPE_ENUM = z.enum(["branch", "release"]);
|
|
112
|
-
const GATE_ACTION_ENUM = z.enum(["pass", "fail", "skip", "retry"]);
|
|
113
25
|
// ── Tool Factory ──────────────────────────────────────────────────────
|
|
114
26
|
/**
|
|
115
|
-
* Creates
|
|
116
|
-
* @param deps - Use cases and workspace resolver
|
|
117
|
-
* @returns Record of 9 tool definitions
|
|
27
|
+
* Creates pipeline management tools for agent-guided CI/CD workflows.
|
|
118
28
|
*/
|
|
119
29
|
export function createPipelineTools(deps) {
|
|
120
|
-
const { pipelineUseCases
|
|
121
|
-
// ── pipeline-init
|
|
30
|
+
const { pipelineUseCases } = deps;
|
|
31
|
+
// ── pipeline-init ────────────────────────────────────────────────
|
|
122
32
|
const pipelineInit = tool({
|
|
123
|
-
description: "Create a new
|
|
124
|
-
"
|
|
125
|
-
"
|
|
33
|
+
description: "Create a new pipeline from a stack template. The pipeline starts in 'draft' status " +
|
|
34
|
+
"and must be activated before gates can run. Valid stacks: typescript-lib, typescript-app, " +
|
|
35
|
+
"python-lib, python-app, swift-ios, csharp-app, kotlin-android, generic. " +
|
|
36
|
+
"Valid scopes: branch (CI — analyze/lint/test/build), release (CD — full pipeline including tag/publish/deploy).",
|
|
126
37
|
args: {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
38
|
+
workspace: z
|
|
39
|
+
.string()
|
|
40
|
+
.describe("Workspace identifier (e.g., 'jarvis-opencode')"),
|
|
41
|
+
stack: z
|
|
42
|
+
.string()
|
|
43
|
+
.describe("Stack template name (typescript-lib, typescript-app, python-lib, python-app, swift-ios, csharp-app, kotlin-android, generic)"),
|
|
44
|
+
scope: z
|
|
45
|
+
.enum(PIPELINE_SCOPE_VALUES)
|
|
46
|
+
.describe("Pipeline scope: 'branch' for CI (analyze/lint/test/build) or 'release' for full CD (all gates including tag/publish/deploy)"),
|
|
47
|
+
version: z.string().describe("Version string for the pipeline (e.g., 'v1.0.0')"),
|
|
48
|
+
cardId: z
|
|
131
49
|
.string()
|
|
132
50
|
.optional()
|
|
133
|
-
.describe("
|
|
51
|
+
.describe("Optional kanban card ID to link this pipeline to"),
|
|
134
52
|
},
|
|
135
|
-
async execute(args
|
|
136
|
-
const workspace = getWorkspace(ctx.directory);
|
|
53
|
+
async execute(args) {
|
|
137
54
|
const result = await pipelineUseCases.initPipeline({
|
|
138
|
-
workspace,
|
|
55
|
+
workspace: args.workspace,
|
|
139
56
|
stack: args.stack,
|
|
140
57
|
scope: args.scope,
|
|
141
58
|
version: args.version,
|
|
142
|
-
...(args.
|
|
59
|
+
...(args.cardId !== undefined ? { cardId: args.cardId } : {}),
|
|
143
60
|
});
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
await cardUseCases.linkPipeline({
|
|
147
|
-
cardId: args.card_id,
|
|
148
|
-
pipelineId: result.data.id,
|
|
149
|
-
});
|
|
61
|
+
if (!result.success) {
|
|
62
|
+
return `Error: ${result.error}`;
|
|
150
63
|
}
|
|
151
|
-
|
|
64
|
+
const p = result.data;
|
|
65
|
+
return [
|
|
66
|
+
`Pipeline ${p.id} created successfully`,
|
|
67
|
+
`Status: ${p.status}`,
|
|
68
|
+
`Template: ${p.templateId}`,
|
|
69
|
+
`Scope: ${p.scope}`,
|
|
70
|
+
`Gates: ${p.gateCount}`,
|
|
71
|
+
"",
|
|
72
|
+
"Next: Use pipeline-activate to make this pipeline runnable",
|
|
73
|
+
].join("\n");
|
|
152
74
|
},
|
|
153
75
|
});
|
|
154
|
-
// ── pipeline-activate
|
|
76
|
+
// ── pipeline-activate ────────────────────────────────────────────
|
|
155
77
|
const pipelineActivate = tool({
|
|
156
|
-
description: "Activate a draft pipeline, making it runnable. " +
|
|
157
|
-
"
|
|
78
|
+
description: "Activate a draft pipeline, making it runnable. Validates that all gates " +
|
|
79
|
+
"are properly configured before activation.",
|
|
158
80
|
args: {
|
|
159
|
-
|
|
81
|
+
pipelineId: z.string().describe("Pipeline ID to activate"),
|
|
160
82
|
},
|
|
161
83
|
async execute(args) {
|
|
162
84
|
const result = await pipelineUseCases.activatePipeline({
|
|
163
|
-
pipelineId: args.
|
|
85
|
+
pipelineId: args.pipelineId,
|
|
164
86
|
});
|
|
165
|
-
|
|
87
|
+
if (!result.success) {
|
|
88
|
+
return `Error: ${result.error}`;
|
|
89
|
+
}
|
|
90
|
+
const p = result.data;
|
|
91
|
+
return [
|
|
92
|
+
`Pipeline ${p.id} activated successfully`,
|
|
93
|
+
`Status: ${p.status}`,
|
|
94
|
+
`Current gate: ${p.currentGate ?? "none"}`,
|
|
95
|
+
`Next gate: ${p.nextGate ?? "none"}`,
|
|
96
|
+
"",
|
|
97
|
+
"Pipeline is now ready for gate execution.",
|
|
98
|
+
].join("\n");
|
|
166
99
|
},
|
|
167
100
|
});
|
|
168
|
-
// ── pipeline-cancel
|
|
101
|
+
// ── pipeline-cancel ──────────────────────────────────────────────
|
|
169
102
|
const pipelineCancel = tool({
|
|
170
|
-
description: "Cancel a draft or active pipeline. " +
|
|
171
|
-
"
|
|
103
|
+
description: "Cancel a draft or active pipeline. This permanently stops the pipeline " +
|
|
104
|
+
"and cannot be undone. Use pipeline-retry for temporary failures.",
|
|
172
105
|
args: {
|
|
173
|
-
|
|
106
|
+
pipelineId: z.string().describe("Pipeline ID to cancel"),
|
|
174
107
|
},
|
|
175
108
|
async execute(args) {
|
|
176
109
|
const result = await pipelineUseCases.cancelPipeline({
|
|
177
|
-
pipelineId: args.
|
|
110
|
+
pipelineId: args.pipelineId,
|
|
178
111
|
});
|
|
179
|
-
|
|
112
|
+
if (!result.success) {
|
|
113
|
+
return `Error: ${result.error}`;
|
|
114
|
+
}
|
|
115
|
+
const p = result.data;
|
|
116
|
+
return [
|
|
117
|
+
`Pipeline ${p.id} cancelled successfully`,
|
|
118
|
+
`Status: ${p.status}`,
|
|
119
|
+
"",
|
|
120
|
+
"Pipeline has been permanently cancelled.",
|
|
121
|
+
].join("\n");
|
|
180
122
|
},
|
|
181
123
|
});
|
|
182
|
-
// ── pipeline-retry
|
|
124
|
+
// ── pipeline-retry ───────────────────────────────────────────────
|
|
183
125
|
const pipelineRetry = tool({
|
|
184
|
-
description: "Retry a failed pipeline.
|
|
185
|
-
"the
|
|
126
|
+
description: "Retry a failed pipeline. Resets the pipeline to active status and " +
|
|
127
|
+
"retries the gate that caused the failure.",
|
|
186
128
|
args: {
|
|
187
|
-
|
|
129
|
+
pipelineId: z.string().describe("Pipeline ID to retry"),
|
|
188
130
|
},
|
|
189
131
|
async execute(args) {
|
|
190
132
|
const result = await pipelineUseCases.retryPipeline({
|
|
191
|
-
pipelineId: args.
|
|
133
|
+
pipelineId: args.pipelineId,
|
|
192
134
|
});
|
|
193
|
-
|
|
135
|
+
if (!result.success) {
|
|
136
|
+
return `Error: ${result.error}`;
|
|
137
|
+
}
|
|
138
|
+
const p = result.data;
|
|
139
|
+
return [
|
|
140
|
+
`Pipeline ${p.id} retry initiated`,
|
|
141
|
+
`Status: ${p.status}`,
|
|
142
|
+
`Current gate: ${p.currentGate ?? "none"}`,
|
|
143
|
+
"",
|
|
144
|
+
"Pipeline is retrying the failed gate.",
|
|
145
|
+
].join("\n");
|
|
194
146
|
},
|
|
195
147
|
});
|
|
196
|
-
// ──
|
|
197
|
-
const
|
|
198
|
-
description: "Execute a gate via Dagger. Starts the gate,
|
|
199
|
-
"
|
|
200
|
-
"Requires Dagger CLI + container runtime.",
|
|
148
|
+
// ── gate-run ─────────────────────────────────────────────────────
|
|
149
|
+
const gateRun = tool({
|
|
150
|
+
description: "Execute a gate via Dagger. Starts the gate, runs the Dagger function, " +
|
|
151
|
+
"and automatically passes or fails the gate based on the result.",
|
|
201
152
|
args: {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
153
|
+
pipelineId: z.string().describe("Pipeline ID containing the gate"),
|
|
154
|
+
gateId: z.string().describe("Gate ID to execute"),
|
|
155
|
+
moduleDir: z
|
|
205
156
|
.string()
|
|
206
|
-
.describe("
|
|
157
|
+
.describe("Directory containing the Dagger module"),
|
|
207
158
|
args: z
|
|
208
159
|
.array(z.string())
|
|
209
160
|
.optional()
|
|
210
|
-
.describe("
|
|
211
|
-
|
|
161
|
+
.describe("Optional arguments to pass to the Dagger function"),
|
|
162
|
+
timeoutMs: z
|
|
212
163
|
.number()
|
|
213
164
|
.optional()
|
|
214
|
-
.describe("
|
|
165
|
+
.describe("Optional timeout in milliseconds (default: 300000)"),
|
|
215
166
|
},
|
|
216
167
|
async execute(args) {
|
|
217
168
|
const result = await pipelineUseCases.runGate({
|
|
218
|
-
pipelineId: args.
|
|
219
|
-
gateId: args.
|
|
220
|
-
moduleDir: args.
|
|
169
|
+
pipelineId: args.pipelineId,
|
|
170
|
+
gateId: args.gateId,
|
|
171
|
+
moduleDir: args.moduleDir,
|
|
221
172
|
...(args.args !== undefined ? { args: args.args } : {}),
|
|
222
|
-
...(args.
|
|
173
|
+
...(args.timeoutMs !== undefined ? { timeoutMs: args.timeoutMs } : {}),
|
|
223
174
|
});
|
|
224
|
-
|
|
175
|
+
if (!result.success) {
|
|
176
|
+
return `Error: ${result.error}`;
|
|
177
|
+
}
|
|
178
|
+
const { pipeline: p, gateId, daggerResult } = result.data;
|
|
179
|
+
const lines = [
|
|
180
|
+
`Gate ${gateId} execution completed`,
|
|
181
|
+
`Pipeline: ${p.id}`,
|
|
182
|
+
`Status: ${p.status}`,
|
|
183
|
+
`Result: ${daggerResult.success ? "PASSED" : "FAILED"}`,
|
|
184
|
+
];
|
|
185
|
+
if (daggerResult.exitCode !== undefined) {
|
|
186
|
+
lines.push(`Exit code: ${daggerResult.exitCode}`);
|
|
187
|
+
}
|
|
188
|
+
if (daggerResult.durationMs !== undefined) {
|
|
189
|
+
lines.push(`Duration: ${daggerResult.durationMs}ms`);
|
|
190
|
+
}
|
|
191
|
+
if (daggerResult.output) {
|
|
192
|
+
lines.push("", "Output:", daggerResult.output);
|
|
193
|
+
}
|
|
194
|
+
return lines.join("\n");
|
|
225
195
|
},
|
|
226
196
|
});
|
|
227
|
-
// ──
|
|
228
|
-
const
|
|
229
|
-
description: "
|
|
230
|
-
"
|
|
231
|
-
"Use 'skip' with a reason (enforces skip policy). " +
|
|
232
|
-
"Use 'retry' to reset a failed gate to pending.",
|
|
197
|
+
// ── gate-pass ────────────────────────────────────────────────────
|
|
198
|
+
const gatePass = tool({
|
|
199
|
+
description: "Manually pass a gate. Use this for gates that require manual approval " +
|
|
200
|
+
"or when a gate was incorrectly failed.",
|
|
233
201
|
args: {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
action: GATE_ACTION_ENUM.describe("Gate action to perform"),
|
|
202
|
+
pipelineId: z.string().describe("Pipeline ID containing the gate"),
|
|
203
|
+
gateId: z.string().describe("Gate ID to pass"),
|
|
237
204
|
output: z
|
|
238
205
|
.string()
|
|
239
206
|
.optional()
|
|
240
|
-
.describe("
|
|
241
|
-
reason: z
|
|
242
|
-
.string()
|
|
243
|
-
.optional()
|
|
244
|
-
.describe("Justification for skip action (required for skip)"),
|
|
245
|
-
approved_by: z
|
|
246
|
-
.string()
|
|
247
|
-
.optional()
|
|
248
|
-
.describe("Approver name for skip on approval_required gates"),
|
|
207
|
+
.describe("Optional output/notes for passing the gate"),
|
|
249
208
|
},
|
|
250
209
|
async execute(args) {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
return formatResult(result, formatPipeline);
|
|
259
|
-
}
|
|
260
|
-
case "fail": {
|
|
261
|
-
const result = await pipelineUseCases.failGate({
|
|
262
|
-
pipelineId: args.pipeline_id,
|
|
263
|
-
gateId: args.gate_id,
|
|
264
|
-
...(args.output !== undefined ? { output: args.output } : {}),
|
|
265
|
-
});
|
|
266
|
-
return formatResult(result, formatPipeline);
|
|
267
|
-
}
|
|
268
|
-
case "skip": {
|
|
269
|
-
if (args.reason === undefined) {
|
|
270
|
-
return "ERROR: reason is required for skip action";
|
|
271
|
-
}
|
|
272
|
-
const result = await pipelineUseCases.skipGate({
|
|
273
|
-
pipelineId: args.pipeline_id,
|
|
274
|
-
gateId: args.gate_id,
|
|
275
|
-
reason: args.reason,
|
|
276
|
-
...(args.approved_by !== undefined
|
|
277
|
-
? { approvedBy: args.approved_by }
|
|
278
|
-
: {}),
|
|
279
|
-
});
|
|
280
|
-
return formatResult(result, formatPipeline);
|
|
281
|
-
}
|
|
282
|
-
case "retry": {
|
|
283
|
-
const result = await pipelineUseCases.retryGate({
|
|
284
|
-
pipelineId: args.pipeline_id,
|
|
285
|
-
gateId: args.gate_id,
|
|
286
|
-
});
|
|
287
|
-
return formatResult(result, formatPipeline);
|
|
288
|
-
}
|
|
210
|
+
const result = await pipelineUseCases.passGate({
|
|
211
|
+
pipelineId: args.pipelineId,
|
|
212
|
+
gateId: args.gateId,
|
|
213
|
+
...(args.output !== undefined ? { output: args.output } : {}),
|
|
214
|
+
});
|
|
215
|
+
if (!result.success) {
|
|
216
|
+
return `Error: ${result.error}`;
|
|
289
217
|
}
|
|
218
|
+
const p = result.data;
|
|
219
|
+
return [
|
|
220
|
+
`Gate ${args.gateId} passed successfully`,
|
|
221
|
+
`Pipeline: ${p.id}`,
|
|
222
|
+
`Status: ${p.status}`,
|
|
223
|
+
`Next gate: ${p.nextGate ?? "pipeline complete"}`,
|
|
224
|
+
].join("\n");
|
|
290
225
|
},
|
|
291
226
|
});
|
|
292
|
-
// ──
|
|
293
|
-
const
|
|
294
|
-
description: "
|
|
295
|
-
"
|
|
227
|
+
// ── gate-fail ────────────────────────────────────────────────────
|
|
228
|
+
const gateFail = tool({
|
|
229
|
+
description: "Manually fail a gate. Use this when a gate needs to fail for reasons " +
|
|
230
|
+
"outside of automated checks.",
|
|
296
231
|
args: {
|
|
297
|
-
|
|
232
|
+
pipelineId: z.string().describe("Pipeline ID containing the gate"),
|
|
233
|
+
gateId: z.string().describe("Gate ID to fail"),
|
|
234
|
+
reason: z.string().describe("Reason for failing the gate"),
|
|
298
235
|
},
|
|
299
236
|
async execute(args) {
|
|
300
|
-
const result = await pipelineUseCases.
|
|
301
|
-
pipelineId: args.
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
if (data === null)
|
|
305
|
-
return `Pipeline ${args.pipeline_id} not found`;
|
|
306
|
-
return formatPipeline(data);
|
|
307
|
-
});
|
|
308
|
-
},
|
|
309
|
-
});
|
|
310
|
-
// ── pipeline-list ─────────────────────────────────────────────────
|
|
311
|
-
const pipelineList = tool({
|
|
312
|
-
description: "List pipelines for the current workspace. " +
|
|
313
|
-
"Optionally filter by status or scope.",
|
|
314
|
-
args: {
|
|
315
|
-
status: z
|
|
316
|
-
.enum(["draft", "active", "completed", "failed", "cancelled"])
|
|
317
|
-
.optional()
|
|
318
|
-
.describe("Filter by pipeline status"),
|
|
319
|
-
scope: SCOPE_ENUM.optional().describe("Filter by pipeline scope"),
|
|
320
|
-
},
|
|
321
|
-
async execute(args, ctx) {
|
|
322
|
-
const workspace = getWorkspace(ctx.directory);
|
|
323
|
-
const result = await pipelineUseCases.listPipelines({
|
|
324
|
-
workspace,
|
|
325
|
-
...(args.status !== undefined ? { status: args.status } : {}),
|
|
326
|
-
...(args.scope !== undefined ? { scope: args.scope } : {}),
|
|
327
|
-
});
|
|
328
|
-
return formatResult(result, (pipelines) => {
|
|
329
|
-
if (pipelines.length === 0)
|
|
330
|
-
return "No pipelines found";
|
|
331
|
-
return pipelines.map(formatPipeline).join("\n\n");
|
|
237
|
+
const result = await pipelineUseCases.failGate({
|
|
238
|
+
pipelineId: args.pipelineId,
|
|
239
|
+
gateId: args.gateId,
|
|
240
|
+
reason: args.reason,
|
|
332
241
|
});
|
|
242
|
+
if (!result.success) {
|
|
243
|
+
return `Error: ${result.error}`;
|
|
244
|
+
}
|
|
245
|
+
const p = result.data;
|
|
246
|
+
return [
|
|
247
|
+
`Gate ${args.gateId} failed`,
|
|
248
|
+
`Pipeline: ${p.id}`,
|
|
249
|
+
`Status: ${p.status}`,
|
|
250
|
+
`Reason: ${args.reason}`,
|
|
251
|
+
"",
|
|
252
|
+
"Use pipeline-retry to retry this pipeline.",
|
|
253
|
+
].join("\n");
|
|
333
254
|
},
|
|
334
255
|
});
|
|
335
|
-
// ──
|
|
336
|
-
const
|
|
337
|
-
description: "
|
|
338
|
-
"
|
|
339
|
-
"With stack + scope, shows template details including gate definitions.",
|
|
256
|
+
// ── gate-skip ────────────────────────────────────────────────────
|
|
257
|
+
const gateSkip = tool({
|
|
258
|
+
description: "Skip a gate with a reason. Use this for gates that are not applicable " +
|
|
259
|
+
"in the current context (e.g., skipping integration tests for a docs change).",
|
|
340
260
|
args: {
|
|
341
|
-
|
|
342
|
-
|
|
261
|
+
pipelineId: z.string().describe("Pipeline ID containing the gate"),
|
|
262
|
+
gateId: z.string().describe("Gate ID to skip"),
|
|
263
|
+
reason: z.string().describe("Reason for skipping the gate"),
|
|
343
264
|
},
|
|
344
265
|
async execute(args) {
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
});
|
|
350
|
-
return formatResult(result, (data) => {
|
|
351
|
-
if (data === null)
|
|
352
|
-
return `Template not found: ${args.stack} (${args.scope})`;
|
|
353
|
-
return formatTemplate(data);
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
|
-
const result = await pipelineUseCases.getTemplates();
|
|
357
|
-
return formatResult(result, (data) => {
|
|
358
|
-
const lines = [
|
|
359
|
-
`Available Pipeline Templates (${data.templates.length}):`,
|
|
360
|
-
...data.templates.map((t) => ` - ${t}`),
|
|
361
|
-
"",
|
|
362
|
-
"Use with stack + scope args to see gate details.",
|
|
363
|
-
];
|
|
364
|
-
return lines.join("\n");
|
|
266
|
+
const result = await pipelineUseCases.skipGate({
|
|
267
|
+
pipelineId: args.pipelineId,
|
|
268
|
+
gateId: args.gateId,
|
|
269
|
+
reason: args.reason,
|
|
365
270
|
});
|
|
271
|
+
if (!result.success) {
|
|
272
|
+
return `Error: ${result.error}`;
|
|
273
|
+
}
|
|
274
|
+
const p = result.data;
|
|
275
|
+
return [
|
|
276
|
+
`Gate ${args.gateId} skipped`,
|
|
277
|
+
`Pipeline: ${p.id}`,
|
|
278
|
+
`Status: ${p.status}`,
|
|
279
|
+
`Reason: ${args.reason}`,
|
|
280
|
+
`Next gate: ${p.nextGate ?? "pipeline complete"}`,
|
|
281
|
+
].join("\n");
|
|
366
282
|
},
|
|
367
283
|
});
|
|
368
|
-
// ──
|
|
369
|
-
const
|
|
370
|
-
description: "
|
|
371
|
-
"
|
|
372
|
-
"(.dagger/dagger.json + source files). Pass stack to generate, " +
|
|
373
|
-
"or omit to list supported stacks.",
|
|
284
|
+
// ── pipeline-query ───────────────────────────────────────────────
|
|
285
|
+
const pipelineQuery = tool({
|
|
286
|
+
description: "Query pipelines and templates. Supports various query types: get pipeline by ID, " +
|
|
287
|
+
"list pipelines by workspace (with optional status/scope filter), list templates.",
|
|
374
288
|
args: {
|
|
375
|
-
|
|
289
|
+
query: z
|
|
290
|
+
.enum(PIPELINE_QUERY_VALUES)
|
|
291
|
+
.describe("Query type to execute"),
|
|
292
|
+
pipelineId: z
|
|
376
293
|
.string()
|
|
377
294
|
.optional()
|
|
378
|
-
.describe("
|
|
295
|
+
.describe("Pipeline ID (required for get-pipeline)"),
|
|
296
|
+
workspace: z
|
|
297
|
+
.string()
|
|
298
|
+
.optional()
|
|
299
|
+
.describe("Workspace ID (required for list-pipelines)"),
|
|
300
|
+
status: z
|
|
301
|
+
.enum(PIPELINE_STATUS_VALUES)
|
|
302
|
+
.optional()
|
|
303
|
+
.describe("Optional status filter for list-pipelines"),
|
|
304
|
+
scope: z
|
|
305
|
+
.enum(PIPELINE_SCOPE_VALUES)
|
|
306
|
+
.optional()
|
|
307
|
+
.describe("Optional scope filter for list-pipelines"),
|
|
379
308
|
},
|
|
380
|
-
async execute(
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
309
|
+
async execute(args) {
|
|
310
|
+
switch (args.query) {
|
|
311
|
+
case "get-pipeline": {
|
|
312
|
+
if (args.pipelineId === undefined) {
|
|
313
|
+
return "Error: pipelineId is required for get-pipeline query";
|
|
314
|
+
}
|
|
315
|
+
const result = await pipelineUseCases.getPipeline({
|
|
316
|
+
pipelineId: args.pipelineId,
|
|
317
|
+
});
|
|
318
|
+
if (!result.success) {
|
|
319
|
+
return `Error: ${result.error}`;
|
|
320
|
+
}
|
|
321
|
+
const p = result.data;
|
|
386
322
|
const lines = [
|
|
387
|
-
`
|
|
388
|
-
|
|
323
|
+
`Pipeline ${p.id}`,
|
|
324
|
+
`Status: ${p.status}`,
|
|
325
|
+
`Template: ${p.templateId}`,
|
|
326
|
+
`Scope: ${p.scope}`,
|
|
327
|
+
`Version: ${p.version}`,
|
|
328
|
+
`Gates: ${p.gateCount}`,
|
|
329
|
+
`Current gate: ${p.currentGate ?? "none"}`,
|
|
330
|
+
`Next gate: ${p.nextGate ?? "none"}`,
|
|
331
|
+
`Created: ${p.createdAt}`,
|
|
389
332
|
];
|
|
333
|
+
if (p.activatedAt !== undefined) {
|
|
334
|
+
lines.push(`Activated: ${p.activatedAt}`);
|
|
335
|
+
}
|
|
336
|
+
if (p.completedAt !== undefined) {
|
|
337
|
+
lines.push(`Completed: ${p.completedAt}`);
|
|
338
|
+
}
|
|
339
|
+
if (p.cardId !== undefined) {
|
|
340
|
+
lines.push(`Card: ${p.cardId}`);
|
|
341
|
+
}
|
|
342
|
+
// Add gates detail
|
|
343
|
+
if (p.gates && p.gates.length > 0) {
|
|
344
|
+
lines.push("", "Gates:");
|
|
345
|
+
for (const g of p.gates) {
|
|
346
|
+
lines.push(` ${g.order}. ${g.id} | ${g.type} | ${g.status} | ${g.daggerFunction}`);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
390
349
|
return lines.join("\n");
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
const result = await pipelineUseCases.generateScaffold({ stack });
|
|
394
|
-
return formatResult(result, (data) => {
|
|
395
|
-
const lines = [
|
|
396
|
-
`Dagger Module Scaffold: ${data.stack}`,
|
|
397
|
-
` SDK: ${data.sdk}`,
|
|
398
|
-
` Module: ${data.moduleName}`,
|
|
399
|
-
` Files (${data.files.length}):`,
|
|
400
|
-
"",
|
|
401
|
-
];
|
|
402
|
-
for (const file of data.files) {
|
|
403
|
-
lines.push(`--- ${file.path} ---`);
|
|
404
|
-
lines.push(file.content);
|
|
405
|
-
lines.push("");
|
|
406
350
|
}
|
|
407
|
-
|
|
408
|
-
|
|
351
|
+
case "list-pipelines": {
|
|
352
|
+
if (args.workspace === undefined) {
|
|
353
|
+
return "Error: workspace is required for list-pipelines query";
|
|
354
|
+
}
|
|
355
|
+
const result = await pipelineUseCases.listPipelines({
|
|
356
|
+
workspace: args.workspace,
|
|
357
|
+
...(args.status !== undefined ? { status: args.status } : {}),
|
|
358
|
+
...(args.scope !== undefined ? { scope: args.scope } : {}),
|
|
359
|
+
});
|
|
360
|
+
if (!result.success) {
|
|
361
|
+
return `Error: ${result.error}`;
|
|
362
|
+
}
|
|
363
|
+
if (result.data.length === 0) {
|
|
364
|
+
return "No pipelines found";
|
|
365
|
+
}
|
|
366
|
+
const lines = [
|
|
367
|
+
`Pipelines for workspace ${args.workspace}${args.status ? ` (status=${args.status})` : ""}${args.scope ? ` (scope=${args.scope})` : ""}:`,
|
|
368
|
+
"",
|
|
369
|
+
];
|
|
370
|
+
for (const p of result.data) {
|
|
371
|
+
lines.push(`- ${p.id} | ${p.status} | ${p.templateId} | ${p.scope} | ${p.gateCount} gates`);
|
|
372
|
+
}
|
|
373
|
+
return lines.join("\n");
|
|
374
|
+
}
|
|
375
|
+
case "list-templates": {
|
|
376
|
+
const result = await pipelineUseCases.getTemplates();
|
|
377
|
+
if (!result.success) {
|
|
378
|
+
return `Error: ${result.error}`;
|
|
379
|
+
}
|
|
380
|
+
if (result.data.templates.length === 0) {
|
|
381
|
+
return "No templates found";
|
|
382
|
+
}
|
|
383
|
+
const lines = ["Available pipeline templates:", ""];
|
|
384
|
+
for (const t of result.data.templates) {
|
|
385
|
+
lines.push(`- ${t}`);
|
|
386
|
+
}
|
|
387
|
+
return lines.join("\n");
|
|
388
|
+
}
|
|
389
|
+
default:
|
|
390
|
+
return `Error: Unknown query type "${args.query}"`;
|
|
391
|
+
}
|
|
409
392
|
},
|
|
410
393
|
});
|
|
411
394
|
return {
|
|
@@ -413,12 +396,11 @@ export function createPipelineTools(deps) {
|
|
|
413
396
|
"pipeline-activate": pipelineActivate,
|
|
414
397
|
"pipeline-cancel": pipelineCancel,
|
|
415
398
|
"pipeline-retry": pipelineRetry,
|
|
416
|
-
"
|
|
417
|
-
"
|
|
418
|
-
"
|
|
419
|
-
"
|
|
420
|
-
"pipeline-
|
|
421
|
-
"pipeline-scaffold": pipelineScaffold,
|
|
399
|
+
"gate-run": gateRun,
|
|
400
|
+
"gate-pass": gatePass,
|
|
401
|
+
"gate-fail": gateFail,
|
|
402
|
+
"gate-skip": gateSkip,
|
|
403
|
+
"pipeline-query": pipelineQuery,
|
|
422
404
|
};
|
|
423
405
|
}
|
|
424
406
|
//# sourceMappingURL=pipeline-tools.js.map
|