byterover-cli 2.6.0 → 3.0.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/.env.production +1 -0
- package/README.md +240 -14
- package/dist/agent/core/domain/knowledge/conflict-detector.d.ts +38 -0
- package/dist/agent/core/domain/knowledge/conflict-detector.js +71 -0
- package/dist/agent/core/domain/knowledge/conflict-resolver.d.ts +17 -0
- package/dist/agent/core/domain/knowledge/conflict-resolver.js +118 -0
- package/dist/agent/core/domain/knowledge/utils.d.ts +4 -0
- package/dist/agent/core/domain/knowledge/utils.js +6 -0
- package/dist/agent/core/interfaces/i-curate-service.d.ts +6 -0
- package/dist/agent/infra/tools/implementations/curate-tool.d.ts +67 -34
- package/dist/agent/infra/tools/implementations/curate-tool.js +294 -47
- package/dist/agent/resources/prompts/system-prompt.yml +15 -8
- package/dist/agent/resources/tools/code_exec.txt +3 -0
- package/dist/agent/resources/tools/curate.txt +12 -3
- package/dist/oclif/commands/connectors/install.d.ts +2 -1
- package/dist/oclif/commands/connectors/install.js +38 -3
- package/dist/oclif/commands/curate/index.d.ts +18 -0
- package/dist/oclif/commands/curate/index.js +78 -1
- package/dist/oclif/commands/init.d.ts +12 -0
- package/dist/oclif/commands/init.js +75 -0
- package/dist/oclif/commands/locations.js +1 -1
- package/dist/oclif/commands/providers/connect.d.ts +31 -1
- package/dist/oclif/commands/providers/connect.js +307 -27
- package/dist/oclif/commands/pull.d.ts +1 -0
- package/dist/oclif/commands/pull.js +7 -0
- package/dist/oclif/commands/push.d.ts +1 -0
- package/dist/oclif/commands/push.js +8 -0
- package/dist/oclif/commands/review/approve.d.ts +17 -0
- package/dist/oclif/commands/review/approve.js +37 -0
- package/dist/oclif/commands/review/base-review-decision.d.ts +18 -0
- package/dist/oclif/commands/review/base-review-decision.js +71 -0
- package/dist/oclif/commands/review/pending.d.ts +13 -0
- package/dist/oclif/commands/review/pending.js +94 -0
- package/dist/oclif/commands/review/reject.d.ts +17 -0
- package/dist/oclif/commands/review/reject.js +38 -0
- package/dist/oclif/commands/space/list.d.ts +2 -2
- package/dist/oclif/commands/space/list.js +13 -35
- package/dist/oclif/commands/space/switch.d.ts +2 -7
- package/dist/oclif/commands/space/switch.js +13 -56
- package/dist/oclif/commands/status.d.ts +1 -0
- package/dist/oclif/commands/status.js +11 -1
- package/dist/oclif/commands/vc/add.d.ts +7 -0
- package/dist/oclif/commands/vc/add.js +29 -0
- package/dist/oclif/commands/vc/branch.d.ts +15 -0
- package/dist/oclif/commands/vc/branch.js +70 -0
- package/dist/oclif/commands/vc/checkout.d.ts +14 -0
- package/dist/oclif/commands/vc/checkout.js +47 -0
- package/dist/oclif/commands/vc/clone.d.ts +9 -0
- package/dist/oclif/commands/vc/clone.js +61 -0
- package/dist/oclif/commands/vc/commit.d.ts +10 -0
- package/dist/oclif/commands/vc/commit.js +32 -0
- package/dist/oclif/commands/vc/config.d.ts +10 -0
- package/dist/oclif/commands/vc/config.js +30 -0
- package/dist/oclif/commands/vc/fetch.d.ts +10 -0
- package/dist/oclif/commands/vc/fetch.js +42 -0
- package/dist/oclif/commands/vc/index.d.ts +6 -0
- package/dist/oclif/commands/vc/index.js +8 -0
- package/dist/oclif/commands/vc/init.d.ts +6 -0
- package/dist/oclif/commands/vc/init.js +25 -0
- package/dist/oclif/commands/vc/log.d.ts +13 -0
- package/dist/oclif/commands/vc/log.js +48 -0
- package/dist/oclif/commands/vc/merge.d.ts +19 -0
- package/dist/oclif/commands/vc/merge.js +130 -0
- package/dist/oclif/commands/vc/pull.d.ts +13 -0
- package/dist/oclif/commands/vc/pull.js +60 -0
- package/dist/oclif/commands/vc/push.d.ts +13 -0
- package/dist/oclif/commands/vc/push.js +60 -0
- package/dist/oclif/commands/vc/remote/add.d.ts +10 -0
- package/dist/oclif/commands/vc/remote/add.js +30 -0
- package/dist/oclif/commands/vc/remote/index.d.ts +6 -0
- package/dist/oclif/commands/vc/remote/index.js +16 -0
- package/dist/oclif/commands/vc/remote/set-url.d.ts +10 -0
- package/dist/oclif/commands/vc/remote/set-url.js +30 -0
- package/dist/oclif/commands/vc/reset.d.ts +13 -0
- package/dist/oclif/commands/vc/reset.js +62 -0
- package/dist/oclif/commands/vc/status.d.ts +8 -0
- package/dist/oclif/commands/vc/status.js +106 -0
- package/dist/oclif/hooks/init/validate-brv-config.d.ts +26 -0
- package/dist/oclif/hooks/init/validate-brv-config.js +62 -0
- package/dist/oclif/lib/daemon-client.d.ts +2 -0
- package/dist/oclif/lib/daemon-client.js +36 -10
- package/dist/oclif/lib/prompt-utils.d.ts +43 -0
- package/dist/oclif/lib/prompt-utils.js +84 -0
- package/dist/oclif/lib/spinner.d.ts +8 -0
- package/dist/oclif/lib/spinner.js +23 -0
- package/dist/oclif/lib/task-client.d.ts +5 -0
- package/dist/oclif/lib/task-client.js +15 -2
- package/dist/server/config/environment.d.ts +2 -0
- package/dist/server/config/environment.js +2 -0
- package/dist/server/constants.d.ts +3 -0
- package/dist/server/constants.js +9 -0
- package/dist/server/core/domain/entities/auth-token.d.ts +2 -0
- package/dist/server/core/domain/entities/auth-token.js +7 -1
- package/dist/server/core/domain/entities/curate-log-entry.d.ts +11 -0
- package/dist/server/core/domain/entities/space.d.ts +4 -0
- package/dist/server/core/domain/entities/space.js +8 -0
- package/dist/server/core/domain/entities/team.d.ts +2 -0
- package/dist/server/core/domain/entities/team.js +4 -0
- package/dist/server/core/domain/errors/git-error.d.ts +6 -0
- package/dist/server/core/domain/errors/git-error.js +12 -0
- package/dist/server/core/domain/errors/task-error.d.ts +4 -0
- package/dist/server/core/domain/errors/task-error.js +8 -0
- package/dist/server/core/domain/errors/vc-error.d.ts +5 -0
- package/dist/server/core/domain/errors/vc-error.js +8 -0
- package/dist/server/core/domain/knowledge/markdown-writer.d.ts +4 -1
- package/dist/server/core/domain/knowledge/markdown-writer.js +37 -7
- package/dist/server/core/domain/transport/schemas.d.ts +6 -6
- package/dist/server/core/interfaces/context-tree/i-context-tree-service.d.ts +11 -0
- package/dist/server/core/interfaces/process/i-task-lifecycle-hook.d.ts +6 -0
- package/dist/server/core/interfaces/services/i-git-service.d.ts +234 -0
- package/dist/server/core/interfaces/services/i-git-service.js +1 -0
- package/dist/server/core/interfaces/storage/i-curate-log-store.d.ts +5 -0
- package/dist/server/core/interfaces/storage/i-review-backup-store.d.ts +19 -0
- package/dist/server/core/interfaces/storage/i-review-backup-store.js +1 -0
- package/dist/server/core/interfaces/vc/i-vc-git-config-store.d.ts +8 -0
- package/dist/server/core/interfaces/vc/i-vc-git-config-store.js +1 -0
- package/dist/server/infra/config/auto-init.d.ts +0 -2
- package/dist/server/infra/config/auto-init.js +0 -1
- package/dist/server/infra/context-tree/file-context-tree-service.d.ts +2 -0
- package/dist/server/infra/context-tree/file-context-tree-service.js +13 -0
- package/dist/server/infra/daemon/brv-server.js +23 -3
- package/dist/server/infra/git/cogit-url.d.ts +17 -0
- package/dist/server/infra/git/cogit-url.js +39 -0
- package/dist/server/infra/git/git-http-wrapper.d.ts +20 -0
- package/dist/server/infra/git/git-http-wrapper.js +334 -0
- package/dist/server/infra/git/isomorphic-git-service.d.ts +78 -0
- package/dist/server/infra/git/isomorphic-git-service.js +983 -0
- package/dist/server/infra/http/review-api-handler.d.ts +13 -0
- package/dist/server/infra/http/review-api-handler.js +286 -0
- package/dist/server/infra/http/review-ui.d.ts +7 -0
- package/dist/server/infra/http/review-ui.js +606 -0
- package/dist/server/infra/mcp/tools/brv-curate-tool.d.ts +2 -2
- package/dist/server/infra/process/curate-log-handler.d.ts +18 -2
- package/dist/server/infra/process/curate-log-handler.js +50 -13
- package/dist/server/infra/process/feature-handlers.js +41 -1
- package/dist/server/infra/process/task-router.js +16 -0
- package/dist/server/infra/space/http-space-service.js +2 -0
- package/dist/server/infra/storage/file-curate-log-store.d.ts +10 -0
- package/dist/server/infra/storage/file-curate-log-store.js +35 -0
- package/dist/server/infra/storage/file-review-backup-store.d.ts +29 -0
- package/dist/server/infra/storage/file-review-backup-store.js +121 -0
- package/dist/server/infra/transport/handlers/auth-handler.js +9 -5
- package/dist/server/infra/transport/handlers/handler-types.d.ts +9 -0
- package/dist/server/infra/transport/handlers/handler-types.js +11 -0
- package/dist/server/infra/transport/handlers/index.d.ts +4 -0
- package/dist/server/infra/transport/handlers/index.js +2 -0
- package/dist/server/infra/transport/handlers/init-handler.d.ts +1 -0
- package/dist/server/infra/transport/handlers/init-handler.js +13 -1
- package/dist/server/infra/transport/handlers/pull-handler.d.ts +3 -0
- package/dist/server/infra/transport/handlers/pull-handler.js +5 -1
- package/dist/server/infra/transport/handlers/push-handler.d.ts +20 -0
- package/dist/server/infra/transport/handlers/push-handler.js +116 -14
- package/dist/server/infra/transport/handlers/reset-handler.d.ts +11 -0
- package/dist/server/infra/transport/handlers/reset-handler.js +37 -1
- package/dist/server/infra/transport/handlers/review-handler.d.ts +35 -0
- package/dist/server/infra/transport/handlers/review-handler.js +162 -0
- package/dist/server/infra/transport/handlers/space-handler.d.ts +3 -0
- package/dist/server/infra/transport/handlers/space-handler.js +4 -1
- package/dist/server/infra/transport/handlers/status-handler.d.ts +5 -0
- package/dist/server/infra/transport/handlers/status-handler.js +51 -16
- package/dist/server/infra/transport/handlers/vc-handler.d.ts +100 -0
- package/dist/server/infra/transport/handlers/vc-handler.js +1050 -0
- package/dist/server/infra/transport/socket-io-transport-server.d.ts +7 -0
- package/dist/server/infra/transport/socket-io-transport-server.js +12 -1
- package/dist/server/infra/transport/transport-connector.d.ts +1 -1
- package/dist/server/infra/transport/transport-connector.js +2 -1
- package/dist/server/infra/vc/file-vc-git-config-store.d.ts +11 -0
- package/dist/server/infra/vc/file-vc-git-config-store.js +43 -0
- package/dist/server/templates/skill/SKILL.md +167 -33
- package/dist/server/utils/curate-result-parser.d.ts +64 -0
- package/dist/server/utils/curate-result-parser.js +8 -0
- package/dist/server/utils/gitignore.d.ts +9 -0
- package/dist/server/utils/gitignore.js +47 -0
- package/dist/shared/transport/events/index.d.ts +6 -0
- package/dist/shared/transport/events/index.js +3 -0
- package/dist/shared/transport/events/init-events.d.ts +8 -0
- package/dist/shared/transport/events/init-events.js +1 -0
- package/dist/shared/transport/events/push-events.d.ts +6 -0
- package/dist/shared/transport/events/review-events.d.ts +41 -0
- package/dist/shared/transport/events/review-events.js +5 -0
- package/dist/shared/transport/events/vc-events.d.ts +257 -0
- package/dist/shared/transport/events/vc-events.js +67 -0
- package/dist/shared/transport/types/dto.d.ts +6 -1
- package/dist/tui/app/pages/init-project-page.d.ts +9 -0
- package/dist/tui/app/pages/init-project-page.js +54 -0
- package/dist/tui/app/pages/protected-routes.js +14 -6
- package/dist/tui/components/index.d.ts +0 -2
- package/dist/tui/components/index.js +0 -1
- package/dist/tui/features/activity/hooks/use-activity-logs.js +7 -1
- package/dist/tui/features/commands/definitions/index.js +3 -0
- package/dist/tui/features/commands/definitions/space-list.js +9 -18
- package/dist/tui/features/commands/definitions/space-switch.js +10 -6
- package/dist/tui/features/commands/definitions/vc-add.d.ts +2 -0
- package/dist/tui/features/commands/definitions/vc-add.js +15 -0
- package/dist/tui/features/commands/definitions/vc-branch.d.ts +2 -0
- package/dist/tui/features/commands/definitions/vc-branch.js +33 -0
- package/dist/tui/features/commands/definitions/vc-checkout.d.ts +2 -0
- package/dist/tui/features/commands/definitions/vc-checkout.js +32 -0
- package/dist/tui/features/commands/definitions/vc-clone.d.ts +2 -0
- package/dist/tui/features/commands/definitions/vc-clone.js +18 -0
- package/dist/tui/features/commands/definitions/vc-commit.d.ts +2 -0
- package/dist/tui/features/commands/definitions/vc-commit.js +32 -0
- package/dist/tui/features/commands/definitions/vc-config.d.ts +2 -0
- package/dist/tui/features/commands/definitions/vc-config.js +40 -0
- package/dist/tui/features/commands/definitions/vc-fetch.d.ts +2 -0
- package/dist/tui/features/commands/definitions/vc-fetch.js +37 -0
- package/dist/tui/features/commands/definitions/vc-init.d.ts +2 -0
- package/dist/tui/features/commands/definitions/vc-init.js +11 -0
- package/dist/tui/features/commands/definitions/vc-log.d.ts +2 -0
- package/dist/tui/features/commands/definitions/vc-log.js +25 -0
- package/dist/tui/features/commands/definitions/vc-merge.d.ts +2 -0
- package/dist/tui/features/commands/definitions/vc-merge.js +48 -0
- package/dist/tui/features/commands/definitions/vc-pull.d.ts +2 -0
- package/dist/tui/features/commands/definitions/vc-pull.js +42 -0
- package/dist/tui/features/commands/definitions/vc-push.d.ts +2 -0
- package/dist/tui/features/commands/definitions/vc-push.js +38 -0
- package/dist/tui/features/commands/definitions/vc-remote.d.ts +2 -0
- package/dist/tui/features/commands/definitions/vc-remote.js +57 -0
- package/dist/tui/features/commands/definitions/vc-reset.d.ts +2 -0
- package/dist/tui/features/commands/definitions/vc-reset.js +35 -0
- package/dist/tui/features/commands/definitions/vc-status.d.ts +2 -0
- package/dist/tui/features/commands/definitions/vc-status.js +11 -0
- package/dist/tui/features/commands/definitions/vc.d.ts +2 -0
- package/dist/tui/features/commands/definitions/vc.js +36 -0
- package/dist/tui/features/commands/hooks/use-slash-command-processor.js +5 -5
- package/dist/tui/features/log/api/execute-log.d.ts +8 -0
- package/dist/tui/features/log/api/execute-log.js +13 -0
- package/dist/tui/features/log/components/log-flow.d.ts +14 -0
- package/dist/tui/features/log/components/log-flow.js +29 -0
- package/dist/tui/features/log/utils/format-log.d.ts +3 -0
- package/dist/tui/features/log/utils/format-log.js +42 -0
- package/dist/tui/features/onboarding/hooks/use-app-view-mode.d.ts +9 -5
- package/dist/tui/features/onboarding/hooks/use-app-view-mode.js +12 -5
- package/dist/tui/features/push/components/push-flow.js +9 -2
- package/dist/tui/features/reset/components/reset-flow.js +2 -1
- package/dist/tui/features/status/components/status-view.js +2 -1
- package/dist/tui/features/status/utils/format-status.js +9 -0
- package/dist/tui/features/tasks/hooks/use-task-subscriptions.js +11 -0
- package/dist/tui/features/tasks/stores/tasks-store.d.ts +10 -0
- package/dist/tui/features/tasks/stores/tasks-store.js +16 -0
- package/dist/tui/features/vc/add/api/execute-vc-add.d.ts +8 -0
- package/dist/tui/features/vc/add/api/execute-vc-add.js +13 -0
- package/dist/tui/features/vc/add/components/vc-add-flow.d.ts +7 -0
- package/dist/tui/features/vc/add/components/vc-add-flow.js +35 -0
- package/dist/tui/features/vc/branch/api/execute-vc-branch.d.ts +8 -0
- package/dist/tui/features/vc/branch/api/execute-vc-branch.js +13 -0
- package/dist/tui/features/vc/branch/components/vc-branch-flow.d.ts +8 -0
- package/dist/tui/features/vc/branch/components/vc-branch-flow.js +53 -0
- package/dist/tui/features/vc/branch/utils/format-branch.d.ts +4 -0
- package/dist/tui/features/vc/branch/utils/format-branch.js +12 -0
- package/dist/tui/features/vc/checkout/api/execute-vc-checkout.d.ts +8 -0
- package/dist/tui/features/vc/checkout/api/execute-vc-checkout.js +13 -0
- package/dist/tui/features/vc/checkout/components/vc-checkout-flow.d.ts +8 -0
- package/dist/tui/features/vc/checkout/components/vc-checkout-flow.js +33 -0
- package/dist/tui/features/vc/clone/api/execute-vc-clone.d.ts +8 -0
- package/dist/tui/features/vc/clone/api/execute-vc-clone.js +13 -0
- package/dist/tui/features/vc/clone/components/vc-clone-flow.d.ts +7 -0
- package/dist/tui/features/vc/clone/components/vc-clone-flow.js +79 -0
- package/dist/tui/features/vc/commit/api/execute-vc-commit.d.ts +8 -0
- package/dist/tui/features/vc/commit/api/execute-vc-commit.js +13 -0
- package/dist/tui/features/vc/commit/components/vc-commit-flow.d.ts +7 -0
- package/dist/tui/features/vc/commit/components/vc-commit-flow.js +29 -0
- package/dist/tui/features/vc/config/api/execute-vc-config.d.ts +8 -0
- package/dist/tui/features/vc/config/api/execute-vc-config.js +13 -0
- package/dist/tui/features/vc/config/components/vc-config-flow.d.ts +9 -0
- package/dist/tui/features/vc/config/components/vc-config-flow.js +30 -0
- package/dist/tui/features/vc/fetch/api/execute-vc-fetch.d.ts +8 -0
- package/dist/tui/features/vc/fetch/api/execute-vc-fetch.js +13 -0
- package/dist/tui/features/vc/fetch/components/vc-fetch-flow.d.ts +8 -0
- package/dist/tui/features/vc/fetch/components/vc-fetch-flow.js +75 -0
- package/dist/tui/features/vc/init/api/execute-vc-init.d.ts +8 -0
- package/dist/tui/features/vc/init/api/execute-vc-init.js +13 -0
- package/dist/tui/features/vc/init/components/vc-init-flow.d.ts +10 -0
- package/dist/tui/features/vc/init/components/vc-init-flow.js +37 -0
- package/dist/tui/features/vc/merge/api/execute-vc-merge.d.ts +8 -0
- package/dist/tui/features/vc/merge/api/execute-vc-merge.js +13 -0
- package/dist/tui/features/vc/merge/components/vc-merge-flow.d.ts +11 -0
- package/dist/tui/features/vc/merge/components/vc-merge-flow.js +72 -0
- package/dist/tui/features/vc/pull/api/execute-vc-pull.d.ts +8 -0
- package/dist/tui/features/vc/pull/api/execute-vc-pull.js +13 -0
- package/dist/tui/features/vc/pull/components/vc-pull-flow.d.ts +9 -0
- package/dist/tui/features/vc/pull/components/vc-pull-flow.js +83 -0
- package/dist/tui/features/vc/push/api/execute-vc-push.d.ts +8 -0
- package/dist/tui/features/vc/push/api/execute-vc-push.js +13 -0
- package/dist/tui/features/vc/push/components/vc-push-flow.d.ts +8 -0
- package/dist/tui/features/vc/push/components/vc-push-flow.js +83 -0
- package/dist/tui/features/vc/remote/api/execute-vc-remote.d.ts +8 -0
- package/dist/tui/features/vc/remote/api/execute-vc-remote.js +13 -0
- package/dist/tui/features/vc/remote/components/vc-remote-flow.d.ts +9 -0
- package/dist/tui/features/vc/remote/components/vc-remote-flow.js +42 -0
- package/dist/tui/features/vc/reset/api/execute-vc-reset.d.ts +8 -0
- package/dist/tui/features/vc/reset/api/execute-vc-reset.js +13 -0
- package/dist/tui/features/vc/reset/components/vc-reset-flow.d.ts +10 -0
- package/dist/tui/features/vc/reset/components/vc-reset-flow.js +63 -0
- package/dist/tui/features/vc/status/api/execute-vc-status.d.ts +8 -0
- package/dist/tui/features/vc/status/api/execute-vc-status.js +13 -0
- package/dist/tui/features/vc/status/components/vc-status-flow.d.ts +10 -0
- package/dist/tui/features/vc/status/components/vc-status-flow.js +133 -0
- package/dist/tui/lib/environment.d.ts +8 -0
- package/dist/tui/lib/environment.js +8 -0
- package/dist/tui/utils/error-messages.d.ts +5 -1
- package/dist/tui/utils/error-messages.js +32 -3
- package/oclif.manifest.json +1124 -204
- package/package.json +9 -3
- package/dist/oclif/hooks/prerun/validate-brv-config-version.d.ts +0 -33
- package/dist/oclif/hooks/prerun/validate-brv-config-version.js +0 -86
- package/dist/tui/components/init.d.ts +0 -33
- package/dist/tui/components/init.js +0 -234
- package/dist/tui/features/space/api/get-spaces.d.ts +0 -16
- package/dist/tui/features/space/api/get-spaces.js +0 -17
- package/dist/tui/features/space/api/switch-space.d.ts +0 -11
- package/dist/tui/features/space/api/switch-space.js +0 -24
- package/dist/tui/features/space/components/space-list-view.d.ts +0 -12
- package/dist/tui/features/space/components/space-list-view.js +0 -56
- package/dist/tui/features/space/components/space-switch-flow.d.ts +0 -13
- package/dist/tui/features/space/components/space-switch-flow.js +0 -97
|
@@ -13,6 +13,7 @@ type OperationType = z.infer<typeof OperationType>;
|
|
|
13
13
|
export declare const CurateInputSchema: z.ZodObject<{
|
|
14
14
|
basePath: z.ZodDefault<z.ZodString>;
|
|
15
15
|
operations: z.ZodArray<z.ZodObject<{
|
|
16
|
+
confidence: z.ZodEnum<["high", "low"]>;
|
|
16
17
|
content: z.ZodOptional<z.ZodObject<{
|
|
17
18
|
facts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
19
|
category: z.ZodOptional<z.ZodEnum<["personal", "project", "preference", "convention", "team", "environment", "other"]>>;
|
|
@@ -22,13 +23,13 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
22
23
|
}, "strip", z.ZodTypeAny, {
|
|
23
24
|
statement: string;
|
|
24
25
|
value?: string | undefined;
|
|
25
|
-
subject?: string | undefined;
|
|
26
26
|
category?: "environment" | "convention" | "other" | "personal" | "preference" | "project" | "team" | undefined;
|
|
27
|
+
subject?: string | undefined;
|
|
27
28
|
}, {
|
|
28
29
|
statement: string;
|
|
29
30
|
value?: string | undefined;
|
|
30
|
-
subject?: string | undefined;
|
|
31
31
|
category?: "environment" | "convention" | "other" | "personal" | "preference" | "project" | "team" | undefined;
|
|
32
|
+
subject?: string | undefined;
|
|
32
33
|
}>, "many">>;
|
|
33
34
|
keywords: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
34
35
|
narrative: z.ZodOptional<z.ZodObject<{
|
|
@@ -94,11 +95,11 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
94
95
|
task: z.ZodOptional<z.ZodString>;
|
|
95
96
|
timestamp: z.ZodOptional<z.ZodString>;
|
|
96
97
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
timestamp?: string | undefined;
|
|
98
|
-
files?: string[] | undefined;
|
|
99
98
|
task?: string | undefined;
|
|
100
99
|
changes?: string[] | undefined;
|
|
100
|
+
files?: string[] | undefined;
|
|
101
101
|
flow?: string | undefined;
|
|
102
|
+
timestamp?: string | undefined;
|
|
102
103
|
author?: string | undefined;
|
|
103
104
|
patterns?: {
|
|
104
105
|
description: string;
|
|
@@ -106,11 +107,11 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
106
107
|
flags?: string | undefined;
|
|
107
108
|
}[] | undefined;
|
|
108
109
|
}, {
|
|
109
|
-
timestamp?: string | undefined;
|
|
110
|
-
files?: string[] | undefined;
|
|
111
110
|
task?: string | undefined;
|
|
112
111
|
changes?: string[] | undefined;
|
|
112
|
+
files?: string[] | undefined;
|
|
113
113
|
flow?: string | undefined;
|
|
114
|
+
timestamp?: string | undefined;
|
|
114
115
|
author?: string | undefined;
|
|
115
116
|
patterns?: {
|
|
116
117
|
description: string;
|
|
@@ -124,13 +125,13 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
124
125
|
}, "strip", z.ZodTypeAny, {
|
|
125
126
|
tags: string[];
|
|
126
127
|
keywords: string[];
|
|
128
|
+
relations?: string[] | undefined;
|
|
127
129
|
facts?: {
|
|
128
130
|
statement: string;
|
|
129
131
|
value?: string | undefined;
|
|
130
|
-
subject?: string | undefined;
|
|
131
132
|
category?: "environment" | "convention" | "other" | "personal" | "preference" | "project" | "team" | undefined;
|
|
133
|
+
subject?: string | undefined;
|
|
132
134
|
}[] | undefined;
|
|
133
|
-
relations?: string[] | undefined;
|
|
134
135
|
narrative?: {
|
|
135
136
|
structure?: string | undefined;
|
|
136
137
|
dependencies?: string | undefined;
|
|
@@ -144,11 +145,11 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
144
145
|
}[] | undefined;
|
|
145
146
|
} | undefined;
|
|
146
147
|
rawConcept?: {
|
|
147
|
-
timestamp?: string | undefined;
|
|
148
|
-
files?: string[] | undefined;
|
|
149
148
|
task?: string | undefined;
|
|
150
149
|
changes?: string[] | undefined;
|
|
150
|
+
files?: string[] | undefined;
|
|
151
151
|
flow?: string | undefined;
|
|
152
|
+
timestamp?: string | undefined;
|
|
152
153
|
author?: string | undefined;
|
|
153
154
|
patterns?: {
|
|
154
155
|
description: string;
|
|
@@ -159,14 +160,14 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
159
160
|
snippets?: string[] | undefined;
|
|
160
161
|
}, {
|
|
161
162
|
tags?: string[] | undefined;
|
|
163
|
+
keywords?: string[] | undefined;
|
|
164
|
+
relations?: string[] | undefined;
|
|
162
165
|
facts?: {
|
|
163
166
|
statement: string;
|
|
164
167
|
value?: string | undefined;
|
|
165
|
-
subject?: string | undefined;
|
|
166
168
|
category?: "environment" | "convention" | "other" | "personal" | "preference" | "project" | "team" | undefined;
|
|
169
|
+
subject?: string | undefined;
|
|
167
170
|
}[] | undefined;
|
|
168
|
-
keywords?: string[] | undefined;
|
|
169
|
-
relations?: string[] | undefined;
|
|
170
171
|
narrative?: {
|
|
171
172
|
structure?: string | undefined;
|
|
172
173
|
dependencies?: string | undefined;
|
|
@@ -180,11 +181,11 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
180
181
|
}[] | undefined;
|
|
181
182
|
} | undefined;
|
|
182
183
|
rawConcept?: {
|
|
183
|
-
timestamp?: string | undefined;
|
|
184
|
-
files?: string[] | undefined;
|
|
185
184
|
task?: string | undefined;
|
|
186
185
|
changes?: string[] | undefined;
|
|
186
|
+
files?: string[] | undefined;
|
|
187
187
|
flow?: string | undefined;
|
|
188
|
+
timestamp?: string | undefined;
|
|
188
189
|
author?: string | undefined;
|
|
189
190
|
patterns?: {
|
|
190
191
|
description: string;
|
|
@@ -225,6 +226,7 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
225
226
|
usage?: string | undefined;
|
|
226
227
|
ownership?: string | undefined;
|
|
227
228
|
}>>;
|
|
229
|
+
impact: z.ZodEnum<["high", "low"]>;
|
|
228
230
|
mergeTarget: z.ZodOptional<z.ZodString>;
|
|
229
231
|
mergeTargetTitle: z.ZodOptional<z.ZodString>;
|
|
230
232
|
path: z.ZodString;
|
|
@@ -239,6 +241,7 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
239
241
|
focus: string;
|
|
240
242
|
parentRelation?: string | undefined;
|
|
241
243
|
}>>;
|
|
244
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
242
245
|
title: z.ZodOptional<z.ZodString>;
|
|
243
246
|
topicContext: z.ZodOptional<z.ZodObject<{
|
|
244
247
|
keyConcepts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -258,17 +261,20 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
258
261
|
path: string;
|
|
259
262
|
type: "ADD" | "DELETE" | "MERGE" | "UPDATE" | "UPSERT";
|
|
260
263
|
reason: string;
|
|
264
|
+
confidence: "high" | "low";
|
|
265
|
+
impact: "high" | "low";
|
|
266
|
+
summary?: string | undefined;
|
|
261
267
|
title?: string | undefined;
|
|
262
268
|
content?: {
|
|
263
269
|
tags: string[];
|
|
264
270
|
keywords: string[];
|
|
271
|
+
relations?: string[] | undefined;
|
|
265
272
|
facts?: {
|
|
266
273
|
statement: string;
|
|
267
274
|
value?: string | undefined;
|
|
268
|
-
subject?: string | undefined;
|
|
269
275
|
category?: "environment" | "convention" | "other" | "personal" | "preference" | "project" | "team" | undefined;
|
|
276
|
+
subject?: string | undefined;
|
|
270
277
|
}[] | undefined;
|
|
271
|
-
relations?: string[] | undefined;
|
|
272
278
|
narrative?: {
|
|
273
279
|
structure?: string | undefined;
|
|
274
280
|
dependencies?: string | undefined;
|
|
@@ -282,11 +288,11 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
282
288
|
}[] | undefined;
|
|
283
289
|
} | undefined;
|
|
284
290
|
rawConcept?: {
|
|
285
|
-
timestamp?: string | undefined;
|
|
286
|
-
files?: string[] | undefined;
|
|
287
291
|
task?: string | undefined;
|
|
288
292
|
changes?: string[] | undefined;
|
|
293
|
+
files?: string[] | undefined;
|
|
289
294
|
flow?: string | undefined;
|
|
295
|
+
timestamp?: string | undefined;
|
|
290
296
|
author?: string | undefined;
|
|
291
297
|
patterns?: {
|
|
292
298
|
description: string;
|
|
@@ -320,17 +326,20 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
320
326
|
path: string;
|
|
321
327
|
type: "ADD" | "DELETE" | "MERGE" | "UPDATE" | "UPSERT";
|
|
322
328
|
reason: string;
|
|
329
|
+
confidence: "high" | "low";
|
|
330
|
+
impact: "high" | "low";
|
|
331
|
+
summary?: string | undefined;
|
|
323
332
|
title?: string | undefined;
|
|
324
333
|
content?: {
|
|
325
334
|
tags?: string[] | undefined;
|
|
335
|
+
keywords?: string[] | undefined;
|
|
336
|
+
relations?: string[] | undefined;
|
|
326
337
|
facts?: {
|
|
327
338
|
statement: string;
|
|
328
339
|
value?: string | undefined;
|
|
329
|
-
subject?: string | undefined;
|
|
330
340
|
category?: "environment" | "convention" | "other" | "personal" | "preference" | "project" | "team" | undefined;
|
|
341
|
+
subject?: string | undefined;
|
|
331
342
|
}[] | undefined;
|
|
332
|
-
keywords?: string[] | undefined;
|
|
333
|
-
relations?: string[] | undefined;
|
|
334
343
|
narrative?: {
|
|
335
344
|
structure?: string | undefined;
|
|
336
345
|
dependencies?: string | undefined;
|
|
@@ -344,11 +353,11 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
344
353
|
}[] | undefined;
|
|
345
354
|
} | undefined;
|
|
346
355
|
rawConcept?: {
|
|
347
|
-
timestamp?: string | undefined;
|
|
348
|
-
files?: string[] | undefined;
|
|
349
356
|
task?: string | undefined;
|
|
350
357
|
changes?: string[] | undefined;
|
|
358
|
+
files?: string[] | undefined;
|
|
351
359
|
flow?: string | undefined;
|
|
360
|
+
timestamp?: string | undefined;
|
|
352
361
|
author?: string | undefined;
|
|
353
362
|
patterns?: {
|
|
354
363
|
description: string;
|
|
@@ -385,17 +394,20 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
385
394
|
path: string;
|
|
386
395
|
type: "ADD" | "DELETE" | "MERGE" | "UPDATE" | "UPSERT";
|
|
387
396
|
reason: string;
|
|
397
|
+
confidence: "high" | "low";
|
|
398
|
+
impact: "high" | "low";
|
|
399
|
+
summary?: string | undefined;
|
|
388
400
|
title?: string | undefined;
|
|
389
401
|
content?: {
|
|
390
402
|
tags: string[];
|
|
391
403
|
keywords: string[];
|
|
404
|
+
relations?: string[] | undefined;
|
|
392
405
|
facts?: {
|
|
393
406
|
statement: string;
|
|
394
407
|
value?: string | undefined;
|
|
395
|
-
subject?: string | undefined;
|
|
396
408
|
category?: "environment" | "convention" | "other" | "personal" | "preference" | "project" | "team" | undefined;
|
|
409
|
+
subject?: string | undefined;
|
|
397
410
|
}[] | undefined;
|
|
398
|
-
relations?: string[] | undefined;
|
|
399
411
|
narrative?: {
|
|
400
412
|
structure?: string | undefined;
|
|
401
413
|
dependencies?: string | undefined;
|
|
@@ -409,11 +421,11 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
409
421
|
}[] | undefined;
|
|
410
422
|
} | undefined;
|
|
411
423
|
rawConcept?: {
|
|
412
|
-
timestamp?: string | undefined;
|
|
413
|
-
files?: string[] | undefined;
|
|
414
424
|
task?: string | undefined;
|
|
415
425
|
changes?: string[] | undefined;
|
|
426
|
+
files?: string[] | undefined;
|
|
416
427
|
flow?: string | undefined;
|
|
428
|
+
timestamp?: string | undefined;
|
|
417
429
|
author?: string | undefined;
|
|
418
430
|
patterns?: {
|
|
419
431
|
description: string;
|
|
@@ -449,17 +461,20 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
449
461
|
path: string;
|
|
450
462
|
type: "ADD" | "DELETE" | "MERGE" | "UPDATE" | "UPSERT";
|
|
451
463
|
reason: string;
|
|
464
|
+
confidence: "high" | "low";
|
|
465
|
+
impact: "high" | "low";
|
|
466
|
+
summary?: string | undefined;
|
|
452
467
|
title?: string | undefined;
|
|
453
468
|
content?: {
|
|
454
469
|
tags?: string[] | undefined;
|
|
470
|
+
keywords?: string[] | undefined;
|
|
471
|
+
relations?: string[] | undefined;
|
|
455
472
|
facts?: {
|
|
456
473
|
statement: string;
|
|
457
474
|
value?: string | undefined;
|
|
458
|
-
subject?: string | undefined;
|
|
459
475
|
category?: "environment" | "convention" | "other" | "personal" | "preference" | "project" | "team" | undefined;
|
|
476
|
+
subject?: string | undefined;
|
|
460
477
|
}[] | undefined;
|
|
461
|
-
keywords?: string[] | undefined;
|
|
462
|
-
relations?: string[] | undefined;
|
|
463
478
|
narrative?: {
|
|
464
479
|
structure?: string | undefined;
|
|
465
480
|
dependencies?: string | undefined;
|
|
@@ -473,11 +488,11 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
473
488
|
}[] | undefined;
|
|
474
489
|
} | undefined;
|
|
475
490
|
rawConcept?: {
|
|
476
|
-
timestamp?: string | undefined;
|
|
477
|
-
files?: string[] | undefined;
|
|
478
491
|
task?: string | undefined;
|
|
479
492
|
changes?: string[] | undefined;
|
|
493
|
+
files?: string[] | undefined;
|
|
480
494
|
flow?: string | undefined;
|
|
495
|
+
timestamp?: string | undefined;
|
|
481
496
|
author?: string | undefined;
|
|
482
497
|
patterns?: {
|
|
483
498
|
description: string;
|
|
@@ -515,11 +530,29 @@ export declare const CurateInputSchema: z.ZodObject<{
|
|
|
515
530
|
* Exported for use by CurateService in sandbox.
|
|
516
531
|
*/
|
|
517
532
|
export interface OperationResult {
|
|
518
|
-
/**
|
|
533
|
+
/**
|
|
534
|
+
* Additional file paths affected by this operation that need restoration on rejection.
|
|
535
|
+
* MERGE: the source file path (deleted during merge).
|
|
536
|
+
* Folder DELETE: all individual .md file paths backed up before deletion.
|
|
537
|
+
*/
|
|
538
|
+
additionalFilePaths?: string[];
|
|
539
|
+
/** LLM-assessed confidence in the accuracy and completeness of this operation. */
|
|
540
|
+
confidence: 'high' | 'low';
|
|
541
|
+
/** Full filesystem path to the created/modified file (for ADD/UPDATE/MERGE) or deleted file. */
|
|
519
542
|
filePath?: string;
|
|
543
|
+
/** Scope of impact: DELETE is high, UPDATE is medium, others are low. */
|
|
544
|
+
impact: 'high' | 'low';
|
|
520
545
|
message?: string;
|
|
546
|
+
/** Whether this operation should be flagged for human review in the web inbox. */
|
|
547
|
+
needsReview: boolean;
|
|
521
548
|
path: string;
|
|
549
|
+
/** Semantic summary of the file's content before this operation (for UPDATE/UPSERT/MERGE/DELETE). */
|
|
550
|
+
previousSummary?: string;
|
|
551
|
+
/** Human-facing motivation: WHY this knowledge was curated. Shown in web review inbox. */
|
|
552
|
+
reason: string;
|
|
522
553
|
status: 'failed' | 'success';
|
|
554
|
+
/** Semantic summary of the file's content after this operation (for ADD/UPDATE/UPSERT/MERGE). */
|
|
555
|
+
summary?: string;
|
|
523
556
|
type: OperationType;
|
|
524
557
|
}
|
|
525
558
|
/**
|