@bevel-software/platform-core-backend 0.19.0 → 0.21.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/dist/core/catalog-cache-invalidation.d.ts +7 -2
- package/dist/core/catalog-cache-invalidation.d.ts.map +1 -1
- package/dist/core/catalog-cache-invalidation.js +8 -9
- package/dist/core/catalog-cache-invalidation.js.map +1 -1
- package/dist/core/core-ports.d.ts +19 -0
- package/dist/core/core-ports.d.ts.map +1 -1
- package/dist/core/core-ports.js.map +1 -1
- package/dist/core/create-core-server.d.ts +2 -0
- package/dist/core/create-core-server.d.ts.map +1 -1
- package/dist/core/create-core-server.js +45 -105
- package/dist/core/create-core-server.js.map +1 -1
- package/dist/core/create-core-services.d.ts +33 -5
- package/dist/core/create-core-services.d.ts.map +1 -1
- package/dist/core/create-core-services.js +146 -82
- package/dist/core/create-core-services.js.map +1 -1
- package/dist/core/lifecycle.d.ts +74 -28
- package/dist/core/lifecycle.d.ts.map +1 -1
- package/dist/core/lifecycle.js +157 -20
- package/dist/core/lifecycle.js.map +1 -1
- package/dist/core/public-config.d.ts +5 -1
- package/dist/core/public-config.d.ts.map +1 -1
- package/dist/core/public-config.js +7 -5
- package/dist/core/public-config.js.map +1 -1
- package/dist/core-config.d.ts +95 -1
- package/dist/core-config.d.ts.map +1 -1
- package/dist/core-config.js +24 -8
- package/dist/core-config.js.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/modules/access/access-control.service.d.ts +18 -1
- package/dist/modules/access/access-control.service.d.ts.map +1 -1
- package/dist/modules/access/access-control.service.js +19 -8
- package/dist/modules/access/access-control.service.js.map +1 -1
- package/dist/modules/access/access.routes.d.ts +2 -1
- package/dist/modules/access/access.routes.d.ts.map +1 -1
- package/dist/modules/access/access.routes.js +10 -10
- package/dist/modules/access/access.routes.js.map +1 -1
- package/dist/modules/access/change-read-gate.d.ts +6 -3
- package/dist/modules/access/change-read-gate.d.ts.map +1 -1
- package/dist/modules/access/change-read-gate.js +9 -6
- package/dist/modules/access/change-read-gate.js.map +1 -1
- package/dist/modules/access/creator-access.d.ts +4 -2
- package/dist/modules/access/creator-access.d.ts.map +1 -1
- package/dist/modules/access/creator-access.js +7 -4
- package/dist/modules/access/creator-access.js.map +1 -1
- package/dist/modules/agent-instructions/read-preamble.d.ts +2 -1
- package/dist/modules/agent-instructions/read-preamble.d.ts.map +1 -1
- package/dist/modules/agent-instructions/read-preamble.js +6 -9
- package/dist/modules/agent-instructions/read-preamble.js.map +1 -1
- package/dist/modules/audit/agent-audit.service.d.ts +54 -0
- package/dist/modules/audit/agent-audit.service.d.ts.map +1 -0
- package/dist/modules/audit/agent-audit.service.js +290 -0
- package/dist/modules/audit/agent-audit.service.js.map +1 -0
- package/dist/modules/audit/agent-rest-audit.middleware.d.ts +40 -0
- package/dist/modules/audit/agent-rest-audit.middleware.d.ts.map +1 -0
- package/dist/modules/audit/agent-rest-audit.middleware.js +75 -0
- package/dist/modules/audit/agent-rest-audit.middleware.js.map +1 -0
- package/dist/modules/audit/audit.contract.d.ts +145 -0
- package/dist/modules/audit/audit.contract.d.ts.map +1 -0
- package/dist/modules/audit/audit.contract.js +35 -0
- package/dist/modules/audit/audit.contract.js.map +1 -0
- package/dist/modules/audit/audit.routes.d.ts +21 -0
- package/dist/modules/audit/audit.routes.d.ts.map +1 -0
- package/dist/modules/audit/audit.routes.js +157 -0
- package/dist/modules/audit/audit.routes.js.map +1 -0
- package/dist/modules/audit/event-classifier.d.ts +52 -0
- package/dist/modules/audit/event-classifier.d.ts.map +1 -0
- package/dist/modules/audit/event-classifier.js +123 -0
- package/dist/modules/audit/event-classifier.js.map +1 -0
- package/dist/modules/audit/index.d.ts +7 -0
- package/dist/modules/audit/index.d.ts.map +1 -0
- package/dist/modules/audit/index.js +7 -0
- package/dist/modules/audit/index.js.map +1 -0
- package/dist/modules/audit/request-audit.d.ts +57 -0
- package/dist/modules/audit/request-audit.d.ts.map +1 -0
- package/dist/modules/audit/request-audit.js +117 -0
- package/dist/modules/audit/request-audit.js.map +1 -0
- package/dist/modules/auth/account-admission.d.ts +40 -0
- package/dist/modules/auth/account-admission.d.ts.map +1 -0
- package/dist/modules/auth/account-admission.js +17 -0
- package/dist/modules/auth/account-admission.js.map +1 -0
- package/dist/modules/auth/account.routes.d.ts.map +1 -1
- package/dist/modules/auth/account.routes.js +4 -1
- package/dist/modules/auth/account.routes.js.map +1 -1
- package/dist/modules/auth/auth.service.d.ts +19 -1
- package/dist/modules/auth/auth.service.d.ts.map +1 -1
- package/dist/modules/auth/auth.service.js +33 -1
- package/dist/modules/auth/auth.service.js.map +1 -1
- package/dist/modules/auth/oidc-auth-provider.d.ts.map +1 -1
- package/dist/modules/auth/oidc-auth-provider.js +9 -0
- package/dist/modules/auth/oidc-auth-provider.js.map +1 -1
- package/dist/modules/connection-probe/connection-probe.service.d.ts +13 -1
- package/dist/modules/connection-probe/connection-probe.service.d.ts.map +1 -1
- package/dist/modules/connection-probe/connection-probe.service.js +10 -2
- package/dist/modules/connection-probe/connection-probe.service.js.map +1 -1
- package/dist/modules/database/advisory-lock.d.ts +17 -0
- package/dist/modules/database/advisory-lock.d.ts.map +1 -1
- package/dist/modules/database/advisory-lock.js +24 -3
- package/dist/modules/database/advisory-lock.js.map +1 -1
- package/dist/modules/database/connection.d.ts +67 -2
- package/dist/modules/database/connection.d.ts.map +1 -1
- package/dist/modules/database/connection.js +118 -12
- package/dist/modules/database/connection.js.map +1 -1
- package/dist/modules/database/core-schema.d.ts +414 -0
- package/dist/modules/database/core-schema.d.ts.map +1 -1
- package/dist/modules/database/core-schema.js +99 -0
- package/dist/modules/database/core-schema.js.map +1 -1
- package/dist/modules/database/migrate.d.ts +1 -1
- package/dist/modules/database/migrate.d.ts.map +1 -1
- package/dist/modules/database/migrate.js +27 -3
- package/dist/modules/database/migrate.js.map +1 -1
- package/dist/modules/diff/diff.service.d.ts.map +1 -1
- package/dist/modules/diff/diff.service.js +6 -1
- package/dist/modules/diff/diff.service.js.map +1 -1
- package/dist/modules/kb-fs/branch-name.d.ts +0 -1
- package/dist/modules/kb-fs/branch-name.d.ts.map +1 -1
- package/dist/modules/kb-fs/branch-name.js +3 -3
- package/dist/modules/kb-fs/branch-name.js.map +1 -1
- package/dist/modules/kb-fs/clone-config.d.ts +9 -8
- package/dist/modules/kb-fs/clone-config.d.ts.map +1 -1
- package/dist/modules/kb-fs/clone-config.js +14 -12
- package/dist/modules/kb-fs/clone-config.js.map +1 -1
- package/dist/modules/kb-fs/git-guarded-filesystem.d.ts +9 -1
- package/dist/modules/kb-fs/git-guarded-filesystem.d.ts.map +1 -1
- package/dist/modules/kb-fs/git-guarded-filesystem.js +16 -3
- package/dist/modules/kb-fs/git-guarded-filesystem.js.map +1 -1
- package/dist/modules/mcp/mcp-auth.middleware.d.ts +1 -0
- package/dist/modules/mcp/mcp-auth.middleware.d.ts.map +1 -1
- package/dist/modules/mcp/mcp-auth.middleware.js +32 -0
- package/dist/modules/mcp/mcp-auth.middleware.js.map +1 -1
- package/dist/modules/mcp/mcp.routes.d.ts.map +1 -1
- package/dist/modules/mcp/mcp.routes.js +8 -1
- package/dist/modules/mcp/mcp.routes.js.map +1 -1
- package/dist/modules/mcp/mcp.service.d.ts +16 -1
- package/dist/modules/mcp/mcp.service.d.ts.map +1 -1
- package/dist/modules/mcp/mcp.service.js +52 -9
- package/dist/modules/mcp/mcp.service.js.map +1 -1
- package/dist/modules/mcp/oauth/bevel-oauth-provider.d.ts +59 -0
- package/dist/modules/mcp/oauth/bevel-oauth-provider.d.ts.map +1 -1
- package/dist/modules/mcp/oauth/bevel-oauth-provider.js +180 -8
- package/dist/modules/mcp/oauth/bevel-oauth-provider.js.map +1 -1
- package/dist/modules/plugins/compile/marketplace-compiler.service.d.ts +4 -4
- package/dist/modules/plugins/compile/marketplace-compiler.service.d.ts.map +1 -1
- package/dist/modules/plugins/compile/marketplace-compiler.service.js +7 -10
- package/dist/modules/plugins/compile/marketplace-compiler.service.js.map +1 -1
- package/dist/modules/plugins/discovery/bundle-dialect/bundle.source.d.ts +4 -1
- package/dist/modules/plugins/discovery/bundle-dialect/bundle.source.d.ts.map +1 -1
- package/dist/modules/plugins/discovery/bundle-dialect/bundle.source.js +5 -3
- package/dist/modules/plugins/discovery/bundle-dialect/bundle.source.js.map +1 -1
- package/dist/modules/plugins/discovery/kb-plugin-source.d.ts +6 -1
- package/dist/modules/plugins/discovery/kb-plugin-source.d.ts.map +1 -1
- package/dist/modules/plugins/discovery/kb-plugin-source.js +14 -9
- package/dist/modules/plugins/discovery/kb-plugin-source.js.map +1 -1
- package/dist/modules/plugins/discovery/native.source.d.ts +4 -1
- package/dist/modules/plugins/discovery/native.source.d.ts.map +1 -1
- package/dist/modules/plugins/discovery/native.source.js +4 -2
- package/dist/modules/plugins/discovery/native.source.js.map +1 -1
- package/dist/modules/plugins/index.d.ts +1 -1
- package/dist/modules/plugins/index.d.ts.map +1 -1
- package/dist/modules/plugins/index.js +1 -1
- package/dist/modules/plugins/index.js.map +1 -1
- package/dist/modules/plugins/join-request-jobs.service.d.ts +3 -1
- package/dist/modules/plugins/join-request-jobs.service.d.ts.map +1 -1
- package/dist/modules/plugins/join-request-jobs.service.js +6 -6
- package/dist/modules/plugins/join-request-jobs.service.js.map +1 -1
- package/dist/modules/plugins/join-requests.service.d.ts +3 -1
- package/dist/modules/plugins/join-requests.service.d.ts.map +1 -1
- package/dist/modules/plugins/join-requests.service.js +9 -8
- package/dist/modules/plugins/join-requests.service.js.map +1 -1
- package/dist/modules/plugins/plugin-links.d.ts +65 -10
- package/dist/modules/plugins/plugin-links.d.ts.map +1 -1
- package/dist/modules/plugins/plugin-links.js +136 -31
- package/dist/modules/plugins/plugin-links.js.map +1 -1
- package/dist/modules/plugins/plugin-links.service.d.ts +107 -5
- package/dist/modules/plugins/plugin-links.service.d.ts.map +1 -1
- package/dist/modules/plugins/plugin-links.service.js +151 -21
- package/dist/modules/plugins/plugin-links.service.js.map +1 -1
- package/dist/modules/plugins/plugin-provision.service.d.ts +10 -3
- package/dist/modules/plugins/plugin-provision.service.d.ts.map +1 -1
- package/dist/modules/plugins/plugin-provision.service.js +33 -26
- package/dist/modules/plugins/plugin-provision.service.js.map +1 -1
- package/dist/modules/plugins/plugin-rename.service.d.ts +4 -2
- package/dist/modules/plugins/plugin-rename.service.d.ts.map +1 -1
- package/dist/modules/plugins/plugin-rename.service.js +10 -12
- package/dist/modules/plugins/plugin-rename.service.js.map +1 -1
- package/dist/modules/plugins/plugins.routes.d.ts +3 -0
- package/dist/modules/plugins/plugins.routes.d.ts.map +1 -1
- package/dist/modules/plugins/plugins.routes.js +45 -15
- package/dist/modules/plugins/plugins.routes.js.map +1 -1
- package/dist/modules/plugins/plugins.service.d.ts +4 -4
- package/dist/modules/plugins/plugins.service.d.ts.map +1 -1
- package/dist/modules/plugins/plugins.service.js +7 -10
- package/dist/modules/plugins/plugins.service.js.map +1 -1
- package/dist/modules/plugins/teams.routes.d.ts +4 -1
- package/dist/modules/plugins/teams.routes.d.ts.map +1 -1
- package/dist/modules/plugins/teams.routes.js +11 -9
- package/dist/modules/plugins/teams.routes.js.map +1 -1
- package/dist/modules/secrets-vault/index.d.ts +1 -1
- package/dist/modules/secrets-vault/index.d.ts.map +1 -1
- package/dist/modules/secrets-vault/index.js +1 -1
- package/dist/modules/secrets-vault/index.js.map +1 -1
- package/dist/modules/secrets-vault/secrets-variable-loader.d.ts +29 -11
- package/dist/modules/secrets-vault/secrets-variable-loader.d.ts.map +1 -1
- package/dist/modules/secrets-vault/secrets-variable-loader.js +46 -21
- package/dist/modules/secrets-vault/secrets-variable-loader.js.map +1 -1
- package/dist/modules/secrets-vault/secrets-vault.routes.d.ts +3 -0
- package/dist/modules/secrets-vault/secrets-vault.routes.d.ts.map +1 -1
- package/dist/modules/secrets-vault/secrets-vault.routes.js +4 -6
- package/dist/modules/secrets-vault/secrets-vault.routes.js.map +1 -1
- package/dist/modules/settings/deployment-settings.service.d.ts +22 -10
- package/dist/modules/settings/deployment-settings.service.d.ts.map +1 -1
- package/dist/modules/settings/deployment-settings.service.js +52 -28
- package/dist/modules/settings/deployment-settings.service.js.map +1 -1
- package/dist/modules/settings/setup.routes.d.ts +9 -2
- package/dist/modules/settings/setup.routes.d.ts.map +1 -1
- package/dist/modules/settings/setup.routes.js +20 -14
- package/dist/modules/settings/setup.routes.js.map +1 -1
- package/dist/modules/skills/allowed-tools-check.d.ts +4 -3
- package/dist/modules/skills/allowed-tools-check.d.ts.map +1 -1
- package/dist/modules/skills/allowed-tools-check.js +8 -8
- package/dist/modules/skills/allowed-tools-check.js.map +1 -1
- package/dist/modules/skills/pending-skills.service.d.ts +3 -1
- package/dist/modules/skills/pending-skills.service.d.ts.map +1 -1
- package/dist/modules/skills/pending-skills.service.js +9 -6
- package/dist/modules/skills/pending-skills.service.js.map +1 -1
- package/dist/modules/skills/skill-access-requests.routes.d.ts +2 -1
- package/dist/modules/skills/skill-access-requests.routes.d.ts.map +1 -1
- package/dist/modules/skills/skill-access-requests.routes.js +6 -6
- package/dist/modules/skills/skill-access-requests.routes.js.map +1 -1
- package/dist/modules/skills/skills.routes.d.ts +4 -1
- package/dist/modules/skills/skills.routes.d.ts.map +1 -1
- package/dist/modules/skills/skills.routes.js +4 -4
- package/dist/modules/skills/skills.routes.js.map +1 -1
- package/dist/modules/skills/skills.service.d.ts +4 -2
- package/dist/modules/skills/skills.service.d.ts.map +1 -1
- package/dist/modules/skills/skills.service.js +13 -11
- package/dist/modules/skills/skills.service.js.map +1 -1
- package/dist/modules/tool-auth/external-api-key.interface.d.ts +21 -5
- package/dist/modules/tool-auth/external-api-key.interface.d.ts.map +1 -1
- package/dist/modules/tool-auth/external-api-key.interface.js.map +1 -1
- package/dist/modules/tool-auth/external-api-key.service.d.ts +1 -0
- package/dist/modules/tool-auth/external-api-key.service.d.ts.map +1 -1
- package/dist/modules/tool-auth/external-api-key.service.js +22 -9
- package/dist/modules/tool-auth/external-api-key.service.js.map +1 -1
- package/dist/modules/tool-auth/internal-token.service.d.ts +10 -0
- package/dist/modules/tool-auth/internal-token.service.d.ts.map +1 -1
- package/dist/modules/tool-auth/internal-token.service.js +1 -0
- package/dist/modules/tool-auth/internal-token.service.js.map +1 -1
- package/dist/modules/tool-auth/tool-auth.middleware.d.ts +8 -0
- package/dist/modules/tool-auth/tool-auth.middleware.d.ts.map +1 -1
- package/dist/modules/tool-auth/tool-auth.middleware.js +9 -1
- package/dist/modules/tool-auth/tool-auth.middleware.js.map +1 -1
- package/dist/modules/tool-manuals/mcp-json-discovery.d.ts +2 -1
- package/dist/modules/tool-manuals/mcp-json-discovery.d.ts.map +1 -1
- package/dist/modules/tool-manuals/mcp-json-discovery.js +6 -5
- package/dist/modules/tool-manuals/mcp-json-discovery.js.map +1 -1
- package/dist/modules/tool-manuals/mcp-server-edit.service.d.ts +4 -2
- package/dist/modules/tool-manuals/mcp-server-edit.service.d.ts.map +1 -1
- package/dist/modules/tool-manuals/mcp-server-edit.service.js +12 -10
- package/dist/modules/tool-manuals/mcp-server-edit.service.js.map +1 -1
- package/dist/modules/tool-manuals/pending-tools.service.d.ts +3 -1
- package/dist/modules/tool-manuals/pending-tools.service.d.ts.map +1 -1
- package/dist/modules/tool-manuals/pending-tools.service.js +19 -16
- package/dist/modules/tool-manuals/pending-tools.service.js.map +1 -1
- package/dist/modules/tool-manuals/tool-delete.service.d.ts +4 -2
- package/dist/modules/tool-manuals/tool-delete.service.d.ts.map +1 -1
- package/dist/modules/tool-manuals/tool-delete.service.js +14 -12
- package/dist/modules/tool-manuals/tool-delete.service.js.map +1 -1
- package/dist/modules/tool-manuals/tool-manuals.routes.d.ts +3 -1
- package/dist/modules/tool-manuals/tool-manuals.routes.d.ts.map +1 -1
- package/dist/modules/tool-manuals/tool-manuals.routes.js +7 -7
- package/dist/modules/tool-manuals/tool-manuals.routes.js.map +1 -1
- package/dist/modules/tool-manuals/tool-manuals.service.d.ts +4 -2
- package/dist/modules/tool-manuals/tool-manuals.service.d.ts.map +1 -1
- package/dist/modules/tool-manuals/tool-manuals.service.js +15 -12
- package/dist/modules/tool-manuals/tool-manuals.service.js.map +1 -1
- package/dist/modules/tool-manuals/tool-manuals.tools.d.ts +3 -0
- package/dist/modules/tool-manuals/tool-manuals.tools.d.ts.map +1 -1
- package/dist/modules/tool-manuals/tool-manuals.tools.js +4 -6
- package/dist/modules/tool-manuals/tool-manuals.tools.js.map +1 -1
- package/dist/modules/workflow/agent-tools/workflow.tools.d.ts +3 -2
- package/dist/modules/workflow/agent-tools/workflow.tools.d.ts.map +1 -1
- package/dist/modules/workflow/agent-tools/workflow.tools.js +9 -9
- package/dist/modules/workflow/agent-tools/workflow.tools.js.map +1 -1
- package/dist/modules/workflow/git/git.service.d.ts +11 -5
- package/dist/modules/workflow/git/git.service.d.ts.map +1 -1
- package/dist/modules/workflow/git/git.service.js +23 -14
- package/dist/modules/workflow/git/git.service.js.map +1 -1
- package/dist/modules/workflow/git/node-git-runner.d.ts +26 -2
- package/dist/modules/workflow/git/node-git-runner.d.ts.map +1 -1
- package/dist/modules/workflow/git/node-git-runner.js +35 -5
- package/dist/modules/workflow/git/node-git-runner.js.map +1 -1
- package/dist/modules/workflow/review-workflow/review-workflow.service.d.ts.map +1 -1
- package/dist/modules/workflow/review-workflow/review-workflow.service.js +9 -4
- package/dist/modules/workflow/review-workflow/review-workflow.service.js.map +1 -1
- package/dist/modules/workflow/session-ontology.service.d.ts +6 -1
- package/dist/modules/workflow/session-ontology.service.d.ts.map +1 -1
- package/dist/modules/workflow/session-ontology.service.js +6 -2
- package/dist/modules/workflow/session-ontology.service.js.map +1 -1
- package/dist/modules/workflow/workflow.service.d.ts +8 -3
- package/dist/modules/workflow/workflow.service.d.ts.map +1 -1
- package/dist/modules/workflow/workflow.service.js +33 -23
- package/dist/modules/workflow/workflow.service.js.map +1 -1
- package/dist/modules/workspace/session-ontology.gate.d.ts +3 -1
- package/dist/modules/workspace/session-ontology.gate.d.ts.map +1 -1
- package/dist/modules/workspace/session-ontology.gate.js +3 -3
- package/dist/modules/workspace/session-ontology.gate.js.map +1 -1
- package/dist/modules/workspace/startup/kb-git.d.ts +4 -3
- package/dist/modules/workspace/startup/kb-git.d.ts.map +1 -1
- package/dist/modules/workspace/startup/kb-git.js +15 -13
- package/dist/modules/workspace/startup/kb-git.js.map +1 -1
- package/dist/modules/workspace/startup/kb-startup-runner.d.ts +5 -8
- package/dist/modules/workspace/startup/kb-startup-runner.d.ts.map +1 -1
- package/dist/modules/workspace/startup/kb-startup-runner.js +35 -38
- package/dist/modules/workspace/startup/kb-startup-runner.js.map +1 -1
- package/dist/modules/workspace/startup/steps/groups-to-plugins.step.d.ts +7 -1
- package/dist/modules/workspace/startup/steps/groups-to-plugins.step.d.ts.map +1 -1
- package/dist/modules/workspace/startup/steps/groups-to-plugins.step.js +23 -16
- package/dist/modules/workspace/startup/steps/groups-to-plugins.step.js.map +1 -1
- package/dist/modules/workspace/startup/steps/personal-spaces.step.d.ts +7 -1
- package/dist/modules/workspace/startup/steps/personal-spaces.step.d.ts.map +1 -1
- package/dist/modules/workspace/startup/steps/personal-spaces.step.js +12 -5
- package/dist/modules/workspace/startup/steps/personal-spaces.step.js.map +1 -1
- package/dist/modules/workspace/startup/steps/plugin-display-names.step.d.ts +7 -1
- package/dist/modules/workspace/startup/steps/plugin-display-names.step.d.ts.map +1 -1
- package/dist/modules/workspace/startup/steps/plugin-display-names.step.js +12 -5
- package/dist/modules/workspace/startup/steps/plugin-display-names.step.js.map +1 -1
- package/dist/modules/workspace/startup/steps/plugin-manifests.step.d.ts +7 -1
- package/dist/modules/workspace/startup/steps/plugin-manifests.step.d.ts.map +1 -1
- package/dist/modules/workspace/startup/steps/plugin-manifests.step.js +12 -5
- package/dist/modules/workspace/startup/steps/plugin-manifests.step.js.map +1 -1
- package/dist/modules/workspace/startup/steps/seed-tree.d.ts +4 -1
- package/dist/modules/workspace/startup/steps/seed-tree.d.ts.map +1 -1
- package/dist/modules/workspace/startup/steps/seed-tree.js +14 -11
- package/dist/modules/workspace/startup/steps/seed-tree.js.map +1 -1
- package/dist/modules/workspace/startup/steps/template-files.step.d.ts +17 -3
- package/dist/modules/workspace/startup/steps/template-files.step.d.ts.map +1 -1
- package/dist/modules/workspace/startup/steps/template-files.step.js +36 -30
- package/dist/modules/workspace/startup/steps/template-files.step.js.map +1 -1
- package/dist/modules/workspace/startup/steps/template-source.d.ts +6 -1
- package/dist/modules/workspace/startup/steps/template-source.d.ts.map +1 -1
- package/dist/modules/workspace/startup/steps/template-source.js +10 -6
- package/dist/modules/workspace/startup/steps/template-source.js.map +1 -1
- package/dist/modules/workspace/workspace.routes.d.ts +2 -1
- package/dist/modules/workspace/workspace.routes.d.ts.map +1 -1
- package/dist/modules/workspace/workspace.routes.js +8 -7
- package/dist/modules/workspace/workspace.routes.js.map +1 -1
- package/dist/modules/workspace/workspace.service.d.ts +26 -12
- package/dist/modules/workspace/workspace.service.d.ts.map +1 -1
- package/dist/modules/workspace/workspace.service.js +41 -28
- package/dist/modules/workspace/workspace.service.js.map +1 -1
- package/dist/modules/workspace/workspace.tools.d.ts +2 -1
- package/dist/modules/workspace/workspace.tools.d.ts.map +1 -1
- package/dist/modules/workspace/workspace.tools.js +69 -31
- package/dist/modules/workspace/workspace.tools.js.map +1 -1
- package/dist/modules/workspace/write-denial.d.ts +3 -2
- package/dist/modules/workspace/write-denial.d.ts.map +1 -1
- package/dist/modules/workspace/write-denial.js +6 -5
- package/dist/modules/workspace/write-denial.js.map +1 -1
- package/dist/shared/git-internals.d.ts +7 -1
- package/dist/shared/git-internals.d.ts.map +1 -1
- package/dist/shared/git-internals.js +67 -9
- package/dist/shared/git-internals.js.map +1 -1
- package/dist/shared/git.contract.d.ts +52 -7
- package/dist/shared/git.contract.d.ts.map +1 -1
- package/dist/shared/git.contract.js +30 -8
- package/dist/shared/git.contract.js.map +1 -1
- package/dist/shared/kb-context.d.ts +76 -0
- package/dist/shared/kb-context.d.ts.map +1 -0
- package/dist/shared/kb-context.js +108 -0
- package/dist/shared/kb-context.js.map +1 -0
- package/dist/shared/kb-layout.d.ts +3 -2
- package/dist/shared/kb-layout.d.ts.map +1 -1
- package/dist/shared/kb-layout.js +4 -3
- package/dist/shared/kb-layout.js.map +1 -1
- package/dist/shared/kb-layout.test.js +35 -27
- package/dist/shared/kb-layout.test.js.map +1 -1
- package/dist/shared/pending-proposals.d.ts +4 -1
- package/dist/shared/pending-proposals.d.ts.map +1 -1
- package/dist/shared/pending-proposals.js +3 -4
- package/dist/shared/pending-proposals.js.map +1 -1
- package/dist/shared/redact-secret.d.ts +5 -5
- package/dist/shared/redact-secret.js +5 -5
- package/dist/tenancy/index.d.ts +13 -0
- package/dist/tenancy/index.d.ts.map +1 -0
- package/dist/tenancy/index.js +13 -0
- package/dist/tenancy/index.js.map +1 -0
- package/dist/tenancy/static-tenant-source.d.ts +98 -0
- package/dist/tenancy/static-tenant-source.d.ts.map +1 -0
- package/dist/tenancy/static-tenant-source.js +220 -0
- package/dist/tenancy/static-tenant-source.js.map +1 -0
- package/dist/tenancy/tenant-host.d.ts +80 -0
- package/dist/tenancy/tenant-host.d.ts.map +1 -0
- package/dist/tenancy/tenant-host.js +217 -0
- package/dist/tenancy/tenant-host.js.map +1 -0
- package/dist/tenancy/tenant-runtime.d.ts +91 -0
- package/dist/tenancy/tenant-runtime.d.ts.map +1 -0
- package/dist/tenancy/tenant-runtime.js +174 -0
- package/dist/tenancy/tenant-runtime.js.map +1 -0
- package/dist/tenancy/tenant-secrets.d.ts +24 -0
- package/dist/tenancy/tenant-secrets.d.ts.map +1 -0
- package/dist/tenancy/tenant-secrets.js +30 -0
- package/dist/tenancy/tenant-secrets.js.map +1 -0
- package/dist/tenancy/tenant-source.contract.d.ts +45 -0
- package/dist/tenancy/tenant-source.contract.d.ts.map +1 -0
- package/dist/tenancy/tenant-source.contract.js +21 -0
- package/dist/tenancy/tenant-source.contract.js.map +1 -0
- package/migrations/0000_core_init.sql +14 -14
- package/migrations/0003_deployment_settings.sql +1 -1
- package/migrations/0005_github_facade.sql +1 -1
- package/migrations/0012_agent_audit.sql +41 -0
- package/migrations/0013_agent_identity_and_key_soft_delete.sql +29 -0
- package/migrations/meta/0012_snapshot.json +2247 -0
- package/migrations/meta/0013_snapshot.json +2259 -0
- package/migrations/meta/_journal.json +14 -0
- package/package.json +4 -4
- package/src/__tests__/branch-model.test.ts +7 -6
- package/src/__tests__/kb-context.ts +30 -0
- package/src/__tests__/kb-layout-config.test.ts +35 -30
- package/src/core/__tests__/catalog-cache-invalidation.test.ts +2 -1
- package/src/core/__tests__/lifecycle.test.ts +78 -1
- package/src/core/__tests__/public-config.test.ts +5 -1
- package/src/core/catalog-cache-invalidation.ts +16 -11
- package/src/core/core-ports.ts +19 -0
- package/src/core/create-core-server.ts +55 -106
- package/src/core/create-core-services.ts +193 -95
- package/src/core/lifecycle.ts +214 -29
- package/src/core/public-config.ts +8 -5
- package/src/core-config.ts +107 -8
- package/src/index.ts +25 -2
- package/src/modules/access/__tests__/access-control.admin-root-floor.test.ts +2 -1
- package/src/modules/access/__tests__/access.routes.batch.test.ts +2 -1
- package/src/modules/access/__tests__/access.routes.folder-governs.test.ts +2 -1
- package/src/modules/access/__tests__/access.routes.group-grant.test.ts +2 -1
- package/src/modules/access/__tests__/access.routes.overrides.test.ts +2 -1
- package/src/modules/access/__tests__/access.routes.proposal-branch.test.ts +2 -1
- package/src/modules/access/__tests__/access.routes.prospective.test.ts +2 -1
- package/src/modules/access/__tests__/access.routes.revoke.test.ts +2 -1
- package/src/modules/access/__tests__/access.routes.unknown-email.test.ts +2 -1
- package/src/modules/access/__tests__/change-read-gate.test.ts +13 -11
- package/src/modules/access/__tests__/creator-access.test.ts +3 -2
- package/src/modules/access/__tests__/roles.routes.test.ts +2 -1
- package/src/modules/access/access-control.service.ts +20 -6
- package/src/modules/access/access.routes.ts +10 -13
- package/src/modules/access/change-read-gate.ts +10 -4
- package/src/modules/access/creator-access.ts +7 -2
- package/src/modules/agent-instructions/__tests__/read-preamble.test.ts +13 -12
- package/src/modules/agent-instructions/read-preamble.ts +10 -12
- package/src/modules/audit/__tests__/agent-audit.service.test.ts +370 -0
- package/src/modules/audit/__tests__/agent-rest-audit.middleware.test.ts +113 -0
- package/src/modules/audit/__tests__/audit.routes.test.ts +201 -0
- package/src/modules/audit/__tests__/event-classifier.test.ts +121 -0
- package/src/modules/audit/agent-audit.service.ts +316 -0
- package/src/modules/audit/agent-rest-audit.middleware.ts +83 -0
- package/src/modules/audit/audit.contract.ts +164 -0
- package/src/modules/audit/audit.routes.ts +168 -0
- package/src/modules/audit/event-classifier.ts +155 -0
- package/src/modules/audit/index.ts +14 -0
- package/src/modules/audit/request-audit.ts +141 -0
- package/src/modules/auth/__tests__/account.routes.test.ts +15 -0
- package/src/modules/auth/__tests__/auth.service.test.ts +60 -0
- package/src/modules/auth/account-admission.ts +44 -0
- package/src/modules/auth/account.routes.ts +4 -1
- package/src/modules/auth/auth.service.ts +33 -1
- package/src/modules/auth/oidc-auth-provider.ts +9 -0
- package/src/modules/connection-probe/connection-probe.service.ts +7 -1
- package/src/modules/database/__tests__/advisory-lock.test.ts +23 -1
- package/src/modules/database/__tests__/connection.test.ts +98 -0
- package/src/modules/database/__tests__/migrations-unqualified.test.ts +32 -0
- package/src/modules/database/advisory-lock.ts +28 -4
- package/src/modules/database/connection.ts +143 -13
- package/src/modules/database/core-schema.ts +104 -0
- package/src/modules/database/migrate.ts +48 -14
- package/src/modules/diff/__tests__/diff.service.seed-atomicity.test.ts +2 -1
- package/src/modules/diff/__tests__/diff.service.test.ts +2 -1
- package/src/modules/diff/diff.service.ts +6 -1
- package/src/modules/kb-fs/__tests__/branch-name.test.ts +6 -6
- package/src/modules/kb-fs/__tests__/clone-config.test.ts +24 -20
- package/src/modules/kb-fs/branch-name.ts +3 -3
- package/src/modules/kb-fs/clone-config.ts +15 -12
- package/src/modules/kb-fs/git-guarded-filesystem.ts +16 -3
- package/src/modules/marketplace/__tests__/marketplace-repo.head.test.ts +2 -1
- package/src/modules/mcp/__tests__/bevel-oauth-provider.test.ts +183 -13
- package/src/modules/mcp/__tests__/mcp-auth.middleware.test.ts +60 -2
- package/src/modules/mcp/__tests__/mcp.routes.local-token.test.ts +24 -4
- package/src/modules/mcp/__tests__/mcp.routes.stateless.test.ts +1 -1
- package/src/modules/mcp/__tests__/mcp.service.test.ts +120 -3
- package/src/modules/mcp/mcp-auth.middleware.ts +31 -0
- package/src/modules/mcp/mcp.routes.ts +11 -1
- package/src/modules/mcp/mcp.service.ts +73 -8
- package/src/modules/mcp/oauth/bevel-oauth-provider.ts +184 -6
- package/src/modules/plugins/__tests__/bundle-dialect.e2e.test.ts +12 -11
- package/src/modules/plugins/__tests__/bundle-dialect.test.ts +2 -1
- package/src/modules/plugins/__tests__/compile-marketplace.test.ts +6 -4
- package/src/modules/plugins/__tests__/join-request-jobs.service.test.ts +2 -1
- package/src/modules/plugins/__tests__/join-requests.service.test.ts +2 -1
- package/src/modules/plugins/__tests__/plugin-creation-display-name.test.ts +4 -3
- package/src/modules/plugins/__tests__/plugin-index.service.test.ts +6 -4
- package/src/modules/plugins/__tests__/plugin-links.service.test.ts +220 -5
- package/src/modules/plugins/__tests__/plugin-provision.service.test.ts +3 -1
- package/src/modules/plugins/__tests__/plugin-rename.service.test.ts +7 -6
- package/src/modules/plugins/__tests__/plugins.routes.test.ts +11 -2
- package/src/modules/plugins/__tests__/teams.routes.test.ts +2 -1
- package/src/modules/plugins/compile/marketplace-compiler.service.ts +7 -9
- package/src/modules/plugins/discovery/__tests__/kb-plugin-source.test.ts +20 -16
- package/src/modules/plugins/discovery/bundle-dialect/bundle.source.ts +9 -2
- package/src/modules/plugins/discovery/kb-plugin-source.ts +15 -8
- package/src/modules/plugins/discovery/native.source.ts +4 -1
- package/src/modules/plugins/index.ts +1 -1
- package/src/modules/plugins/join-request-jobs.service.ts +8 -7
- package/src/modules/plugins/join-requests.service.ts +7 -7
- package/src/modules/plugins/plugin-links.service.ts +192 -19
- package/src/modules/plugins/plugin-links.ts +147 -27
- package/src/modules/plugins/plugin-provision.service.ts +54 -27
- package/src/modules/plugins/plugin-rename.service.ts +10 -10
- package/src/modules/plugins/plugins.routes.ts +45 -15
- package/src/modules/plugins/plugins.service.ts +7 -11
- package/src/modules/plugins/teams.routes.ts +16 -8
- package/src/modules/secrets-vault/__tests__/connect-pending.route.test.ts +7 -0
- package/src/modules/secrets-vault/__tests__/secrets-variable-loader.test.ts +40 -0
- package/src/modules/secrets-vault/__tests__/tool-owner-gate.route.test.ts +2 -0
- package/src/modules/secrets-vault/index.ts +2 -0
- package/src/modules/secrets-vault/secrets-variable-loader.ts +51 -21
- package/src/modules/secrets-vault/secrets-vault.routes.ts +7 -6
- package/src/modules/settings/__tests__/deployment-settings.service.test.ts +59 -11
- package/src/modules/settings/__tests__/git-root-folders.test.ts +2 -1
- package/src/modules/settings/__tests__/setup.routes.boot-failure.test.ts +2 -1
- package/src/modules/settings/__tests__/setup.routes.layout-phase.test.ts +7 -4
- package/src/modules/settings/__tests__/setup.routes.oidc.test.ts +2 -0
- package/src/modules/settings/__tests__/setup.routes.sync-status.test.ts +2 -0
- package/src/modules/settings/__tests__/setup.routes.test.ts +33 -52
- package/src/modules/settings/deployment-settings.service.ts +68 -28
- package/src/modules/settings/setup.routes.ts +26 -16
- package/src/modules/skills/__tests__/allowed-tools-check.test.ts +11 -10
- package/src/modules/skills/__tests__/allowed-tools-warn.tools.test.ts +4 -3
- package/src/modules/skills/__tests__/pending-skills.service.test.ts +3 -1
- package/src/modules/skills/__tests__/skill-access-requests.routes.test.ts +2 -1
- package/src/modules/skills/__tests__/skills.routes.warnings.test.ts +2 -1
- package/src/modules/skills/__tests__/skills.service.test.ts +3 -2
- package/src/modules/skills/allowed-tools-check.ts +7 -6
- package/src/modules/skills/pending-skills.service.ts +9 -8
- package/src/modules/skills/skill-access-requests.routes.ts +7 -7
- package/src/modules/skills/skills.routes.ts +4 -3
- package/src/modules/skills/skills.service.ts +13 -9
- package/src/modules/tool-auth/__tests__/external-api-key.service.test.ts +29 -8
- package/src/modules/tool-auth/__tests__/internal-token.service.test.ts +6 -0
- package/src/modules/tool-auth/external-api-key.interface.ts +22 -5
- package/src/modules/tool-auth/external-api-key.service.ts +25 -8
- package/src/modules/tool-auth/internal-token.service.ts +11 -0
- package/src/modules/tool-auth/tool-auth.middleware.ts +17 -1
- package/src/modules/tool-helpers/__tests__/agent-roles-write.test.ts +3 -2
- package/src/modules/tool-helpers/__tests__/phase4-tools.test.ts +3 -2
- package/src/modules/tool-manuals/__tests__/mcp-json-discovery.test.ts +17 -12
- package/src/modules/tool-manuals/__tests__/mcp-server-edit.service.test.ts +2 -1
- package/src/modules/tool-manuals/__tests__/pending-tools.service.test.ts +4 -1
- package/src/modules/tool-manuals/__tests__/tool-delete.service.test.ts +2 -1
- package/src/modules/tool-manuals/__tests__/tool-manuals.archive.route.test.ts +2 -1
- package/src/modules/tool-manuals/__tests__/tool-manuals.cli.test.ts +5 -4
- package/src/modules/tool-manuals/__tests__/tool-manuals.detail.route.test.ts +2 -1
- package/src/modules/tool-manuals/__tests__/tool-manuals.invalid.routes.test.ts +4 -2
- package/src/modules/tool-manuals/__tests__/tool-manuals.invalid.test.ts +13 -5
- package/src/modules/tool-manuals/__tests__/tool-manuals.mcp-oauth.test.ts +2 -1
- package/src/modules/tool-manuals/__tests__/tool-manuals.restart.test.ts +9 -1
- package/src/modules/tool-manuals/__tests__/tool-manuals.service.test.ts +3 -2
- package/src/modules/tool-manuals/__tests__/tool-manuals.tools.test.ts +2 -0
- package/src/modules/tool-manuals/mcp-json-discovery.ts +6 -4
- package/src/modules/tool-manuals/mcp-server-edit.service.ts +13 -11
- package/src/modules/tool-manuals/pending-tools.service.ts +19 -16
- package/src/modules/tool-manuals/tool-delete.service.ts +13 -10
- package/src/modules/tool-manuals/tool-manuals.routes.ts +10 -8
- package/src/modules/tool-manuals/tool-manuals.service.ts +15 -13
- package/src/modules/tool-manuals/tool-manuals.tools.ts +7 -6
- package/src/modules/workflow/__tests__/apply-failure.test.ts +2 -1
- package/src/modules/workflow/__tests__/merge-announces-tree.test.ts +14 -26
- package/src/modules/workflow/__tests__/preserve-roles-yaml.test.ts +2 -1
- package/src/modules/workflow/__tests__/session-ontology.service.test.ts +3 -2
- package/src/modules/workflow/__tests__/workflow.routes.lock-path.test.ts +2 -1
- package/src/modules/workflow/__tests__/workflow.service.branch-in-use.test.ts +3 -10
- package/src/modules/workflow/__tests__/workflow.service.commitFileWhileLocked.test.ts +2 -1
- package/src/modules/workflow/__tests__/workflow.service.deleted-branch-sweep.test.ts +3 -10
- package/src/modules/workflow/__tests__/workflow.service.facade.test.ts +28 -27
- package/src/modules/workflow/__tests__/workflow.service.folder-proposals.test.ts +2 -1
- package/src/modules/workflow/__tests__/workflow.service.platform-restore.test.ts +2 -1
- package/src/modules/workflow/__tests__/workflow.service.read-gate.test.ts +3 -2
- package/src/modules/workflow/__tests__/workflow.service.releaseLock.test.ts +2 -1
- package/src/modules/workflow/__tests__/workflow.service.sync.test.ts +5 -4
- package/src/modules/workflow/__tests__/workflow.service.update-from-target.test.ts +2 -1
- package/src/modules/workflow/agent-tools/__tests__/workflow.tools.test.ts +2 -1
- package/src/modules/workflow/agent-tools/workflow.tools.ts +11 -9
- package/src/modules/workflow/git/__tests__/git.service.accessGating.test.ts +5 -4
- package/src/modules/workflow/git/__tests__/git.service.changedFilesForPr.test.ts +12 -11
- package/src/modules/workflow/git/__tests__/git.service.commitChanges.test.ts +9 -8
- package/src/modules/workflow/git/__tests__/git.service.commitFile.strayPath.test.ts +8 -7
- package/src/modules/workflow/git/__tests__/git.service.commitFile.test.ts +6 -5
- package/src/modules/workflow/git/__tests__/git.service.createBranch.test.ts +3 -2
- package/src/modules/workflow/git/__tests__/git.service.deleteBranch.test.ts +3 -2
- package/src/modules/workflow/git/__tests__/git.service.diffFileAtCommit.test.ts +7 -6
- package/src/modules/workflow/git/__tests__/git.service.diffFileBetweenBranches.test.ts +16 -15
- package/src/modules/workflow/git/__tests__/git.service.fileContentsAtCommit.test.ts +3 -2
- package/src/modules/workflow/git/__tests__/git.service.forkPoint.test.ts +2 -1
- package/src/modules/workflow/git/__tests__/git.service.history-guards.test.ts +2 -1
- package/src/modules/workflow/git/__tests__/git.service.list-branches.test.ts +10 -9
- package/src/modules/workflow/git/__tests__/git.service.listTrackedFiles.test.ts +2 -1
- package/src/modules/workflow/git/__tests__/git.service.logForFile.test.ts +6 -5
- package/src/modules/workflow/git/__tests__/git.service.mergeChangeRequest.test.ts +9 -8
- package/src/modules/workflow/git/__tests__/git.service.pendingChanges.test.ts +2 -1
- package/src/modules/workflow/git/__tests__/git.service.postMergePull.test.ts +4 -3
- package/src/modules/workflow/git/__tests__/git.service.pull.test.ts +9 -8
- package/src/modules/workflow/git/__tests__/git.service.readFileAtRef.test.ts +2 -1
- package/src/modules/workflow/git/__tests__/git.service.revertPathsAndPush.test.ts +2 -1
- package/src/modules/workflow/git/__tests__/git.service.status.test.ts +4 -3
- package/src/modules/workflow/git/__tests__/git.service.syncFromRemote.test.ts +8 -7
- package/src/modules/workflow/git/__tests__/node-git-runner.test.ts +41 -3
- package/src/modules/workflow/git/git.service.ts +24 -13
- package/src/modules/workflow/git/node-git-runner.ts +37 -4
- package/src/modules/workflow/review-workflow/review-workflow.service.ts +9 -6
- package/src/modules/workflow/session-ontology.service.ts +7 -2
- package/src/modules/workflow/workflow.service.ts +31 -24
- package/src/modules/workspace/__tests__/file-stat-access.test.ts +3 -2
- package/src/modules/workspace/__tests__/git-internals.security.test.ts +144 -52
- package/src/modules/workspace/__tests__/session-ontology.gate.test.ts +4 -2
- package/src/modules/workspace/__tests__/workspace-paths-inside-the-repo.test.ts +3 -2
- package/src/modules/workspace/__tests__/workspace.routes.branch-errors.test.ts +2 -1
- package/src/modules/workspace/__tests__/workspace.routes.create-grant.test.ts +2 -1
- package/src/modules/workspace/__tests__/workspace.routes.delete.test.ts +2 -1
- package/src/modules/workspace/__tests__/workspace.routes.download-implies-read.test.ts +2 -1
- package/src/modules/workspace/__tests__/workspace.routes.download.test.ts +2 -1
- package/src/modules/workspace/__tests__/workspace.routes.file-writes.test.ts +2 -1
- package/src/modules/workspace/__tests__/workspace.routes.folders.test.ts +5 -4
- package/src/modules/workspace/__tests__/workspace.routes.move-platform-files.test.ts +2 -1
- package/src/modules/workspace/__tests__/workspace.routes.read-gate.test.ts +2 -1
- package/src/modules/workspace/__tests__/workspace.service.ensure-remotes-fetched.test.ts +2 -2
- package/src/modules/workspace/__tests__/workspace.service.list-cloned.test.ts +6 -5
- package/src/modules/workspace/__tests__/workspace.service.move-never-overwrites.test.ts +2 -1
- package/src/modules/workspace/__tests__/workspace.service.read-filter.test.ts +2 -1
- package/src/modules/workspace/__tests__/workspace.service.test.ts +84 -50
- package/src/modules/workspace/__tests__/workspace.service.unknown-branch.test.ts +2 -1
- package/src/modules/workspace/__tests__/workspace.tools.agents-file.test.ts +10 -7
- package/src/modules/workspace/__tests__/workspace.tools.branch-errors.test.ts +4 -3
- package/src/modules/workspace/__tests__/workspace.tools.test.ts +9 -8
- package/src/modules/workspace/__tests__/write-denial.test.ts +5 -4
- package/src/modules/workspace/session-ontology.gate.ts +6 -4
- package/src/modules/workspace/startup/__tests__/kb-startup-runner.degraded.test.ts +6 -2
- package/src/modules/workspace/startup/__tests__/kb-startup-runner.test.ts +29 -21
- package/src/modules/workspace/startup/kb-git.ts +15 -22
- package/src/modules/workspace/startup/kb-startup-runner.ts +40 -46
- package/src/modules/workspace/startup/steps/__tests__/steps.test.ts +104 -98
- package/src/modules/workspace/startup/steps/groups-to-plugins.step.ts +24 -16
- package/src/modules/workspace/startup/steps/personal-spaces.step.ts +14 -5
- package/src/modules/workspace/startup/steps/plugin-display-names.step.ts +13 -5
- package/src/modules/workspace/startup/steps/plugin-manifests.step.ts +14 -5
- package/src/modules/workspace/startup/steps/seed-tree.ts +11 -9
- package/src/modules/workspace/startup/steps/template-files.step.ts +43 -34
- package/src/modules/workspace/startup/steps/template-source.ts +8 -5
- package/src/modules/workspace/workspace.routes.ts +8 -7
- package/src/modules/workspace/workspace.service.ts +39 -27
- package/src/modules/workspace/workspace.tools.ts +68 -31
- package/src/modules/workspace/write-denial.ts +7 -5
- package/src/shared/__tests__/git-internals.test.ts +41 -0
- package/src/shared/__tests__/kb-layout.plugin.test.ts +19 -16
- package/src/shared/git-internals.ts +61 -6
- package/src/shared/git.contract.ts +70 -8
- package/src/shared/kb-context.ts +130 -0
- package/src/shared/kb-layout.test.ts +37 -27
- package/src/shared/kb-layout.ts +4 -3
- package/src/shared/pending-proposals.ts +7 -4
- package/src/shared/redact-secret.ts +5 -5
- package/src/tenancy/__tests__/static-tenant-source.test.ts +177 -0
- package/src/tenancy/__tests__/tenant-host.test.ts +372 -0
- package/src/tenancy/__tests__/tenant-runtime.test.ts +221 -0
- package/src/tenancy/__tests__/tenant-secrets.test.ts +35 -0
- package/src/tenancy/index.ts +35 -0
- package/src/tenancy/static-tenant-source.ts +296 -0
- package/src/tenancy/tenant-host.ts +261 -0
- package/src/tenancy/tenant-runtime.ts +208 -0
- package/src/tenancy/tenant-secrets.ts +41 -0
- package/src/tenancy/tenant-source.contract.ts +59 -0
- package/dist/modules/access/access-errors.d.ts +0 -34
- package/dist/modules/access/access-errors.d.ts.map +0 -1
- package/dist/modules/access/access-errors.js +0 -40
- package/dist/modules/access/access-errors.js.map +0 -1
- package/dist/modules/access/access-splice.d.ts +0 -140
- package/dist/modules/access/access-splice.d.ts.map +0 -1
- package/dist/modules/access/access-splice.js +0 -389
- package/dist/modules/access/access-splice.js.map +0 -1
- package/dist/modules/access/group-files.d.ts +0 -83
- package/dist/modules/access/group-files.d.ts.map +0 -1
- package/dist/modules/access/group-files.js +0 -167
- package/dist/modules/access/group-files.js.map +0 -1
- package/dist/modules/access/kb-read-filter.d.ts +0 -41
- package/dist/modules/access/kb-read-filter.d.ts.map +0 -1
- package/dist/modules/access/kb-read-filter.js +0 -60
- package/dist/modules/access/kb-read-filter.js.map +0 -1
- package/dist/modules/access/render-roles-yaml.d.ts +0 -22
- package/dist/modules/access/render-roles-yaml.d.ts.map +0 -1
- package/dist/modules/access/render-roles-yaml.js +0 -56
- package/dist/modules/access/render-roles-yaml.js.map +0 -1
- package/dist/modules/access/roles-yaml-guard.d.ts +0 -56
- package/dist/modules/access/roles-yaml-guard.d.ts.map +0 -1
- package/dist/modules/access/roles-yaml-guard.js +0 -79
- package/dist/modules/access/roles-yaml-guard.js.map +0 -1
- package/dist/modules/diff/diff-paths.d.ts +0 -2
- package/dist/modules/diff/diff-paths.d.ts.map +0 -1
- package/dist/modules/diff/diff-paths.js +0 -9
- package/dist/modules/diff/diff-paths.js.map +0 -1
- package/dist/modules/groups/group-provision.service.d.ts +0 -130
- package/dist/modules/groups/group-provision.service.d.ts.map +0 -1
- package/dist/modules/groups/group-provision.service.js +0 -288
- package/dist/modules/groups/group-provision.service.js.map +0 -1
- package/dist/modules/groups/groups.contract.d.ts +0 -106
- package/dist/modules/groups/groups.contract.d.ts.map +0 -1
- package/dist/modules/groups/groups.contract.js +0 -36
- package/dist/modules/groups/groups.contract.js.map +0 -1
- package/dist/modules/groups/groups.routes.d.ts +0 -42
- package/dist/modules/groups/groups.routes.d.ts.map +0 -1
- package/dist/modules/groups/groups.routes.js +0 -379
- package/dist/modules/groups/groups.routes.js.map +0 -1
- package/dist/modules/groups/groups.service.d.ts +0 -60
- package/dist/modules/groups/groups.service.d.ts.map +0 -1
- package/dist/modules/groups/groups.service.js +0 -172
- package/dist/modules/groups/groups.service.js.map +0 -1
- package/dist/modules/groups/index.d.ts +0 -7
- package/dist/modules/groups/index.d.ts.map +0 -1
- package/dist/modules/groups/index.js +0 -6
- package/dist/modules/groups/index.js.map +0 -1
- package/dist/modules/groups/join-proposals.d.ts +0 -53
- package/dist/modules/groups/join-proposals.d.ts.map +0 -1
- package/dist/modules/groups/join-proposals.js +0 -67
- package/dist/modules/groups/join-proposals.js.map +0 -1
- package/dist/modules/groups/join-requests.service.d.ts +0 -81
- package/dist/modules/groups/join-requests.service.d.ts.map +0 -1
- package/dist/modules/groups/join-requests.service.js +0 -135
- package/dist/modules/groups/join-requests.service.js.map +0 -1
- package/dist/modules/mcp/mcp-session-store.d.ts +0 -74
- package/dist/modules/mcp/mcp-session-store.d.ts.map +0 -1
- package/dist/modules/mcp/mcp-session-store.js +0 -131
- package/dist/modules/mcp/mcp-session-store.js.map +0 -1
- package/dist/modules/workflow/file-change-notifier.d.ts +0 -38
- package/dist/modules/workflow/file-change-notifier.d.ts.map +0 -1
- package/dist/modules/workflow/file-change-notifier.js +0 -22
- package/dist/modules/workflow/file-change-notifier.js.map +0 -1
- package/dist/modules/workflow/git/branch-name.d.ts +0 -10
- package/dist/modules/workflow/git/branch-name.d.ts.map +0 -1
- package/dist/modules/workflow/git/branch-name.js +0 -76
- package/dist/modules/workflow/git/branch-name.js.map +0 -1
- package/dist/modules/workflow/git/clone-config.d.ts +0 -61
- package/dist/modules/workflow/git/clone-config.d.ts.map +0 -1
- package/dist/modules/workflow/git/clone-config.js +0 -69
- package/dist/modules/workflow/git/clone-config.js.map +0 -1
- package/dist/modules/workflow/git/mutex.d.ts +0 -11
- package/dist/modules/workflow/git/mutex.d.ts.map +0 -1
- package/dist/modules/workflow/git/mutex.js +0 -23
- package/dist/modules/workflow/git/mutex.js.map +0 -1
- package/dist/modules/workflow/locking-filesystem.d.ts +0 -137
- package/dist/modules/workflow/locking-filesystem.d.ts.map +0 -1
- package/dist/modules/workflow/locking-filesystem.js +0 -553
- package/dist/modules/workflow/locking-filesystem.js.map +0 -1
- package/dist/modules/workflow/read-only-filesystem.d.ts +0 -24
- package/dist/modules/workflow/read-only-filesystem.d.ts.map +0 -1
- package/dist/modules/workflow/read-only-filesystem.js +0 -39
- package/dist/modules/workflow/read-only-filesystem.js.map +0 -1
- package/dist/modules/workflow/workflow.errors.d.ts +0 -197
- package/dist/modules/workflow/workflow.errors.d.ts.map +0 -1
- package/dist/modules/workflow/workflow.errors.js +0 -298
- package/dist/modules/workflow/workflow.errors.js.map +0 -1
- package/dist/modules/workspace/bevel-ignore.d.ts +0 -30
- package/dist/modules/workspace/bevel-ignore.d.ts.map +0 -1
- package/dist/modules/workspace/bevel-ignore.js +0 -61
- package/dist/modules/workspace/bevel-ignore.js.map +0 -1
- package/dist/modules/workspace/kb-seed.interface.d.ts +0 -36
- package/dist/modules/workspace/kb-seed.interface.d.ts.map +0 -1
- package/dist/modules/workspace/kb-seed.interface.js +0 -2
- package/dist/modules/workspace/kb-seed.interface.js.map +0 -1
- package/dist/modules/workspace/kb-seed.service.d.ts +0 -125
- package/dist/modules/workspace/kb-seed.service.d.ts.map +0 -1
- package/dist/modules/workspace/kb-seed.service.js +0 -535
- package/dist/modules/workspace/kb-seed.service.js.map +0 -1
- package/dist/modules/workspace/plugins-migration.d.ts +0 -50
- package/dist/modules/workspace/plugins-migration.d.ts.map +0 -1
- package/dist/modules/workspace/plugins-migration.js +0 -379
- package/dist/modules/workspace/plugins-migration.js.map +0 -1
- package/dist/shared/fs-errors.d.ts +0 -8
- package/dist/shared/fs-errors.d.ts.map +0 -1
- package/dist/shared/fs-errors.js +0 -11
- package/dist/shared/fs-errors.js.map +0 -1
- package/dist/shared/fs-walk.d.ts +0 -23
- package/dist/shared/fs-walk.d.ts.map +0 -1
- package/dist/shared/fs-walk.js +0 -42
- package/dist/shared/fs-walk.js.map +0 -1
- package/dist/shared/hash-email.d.ts +0 -11
- package/dist/shared/hash-email.d.ts.map +0 -1
- package/dist/shared/hash-email.js +0 -14
- package/dist/shared/hash-email.js.map +0 -1
- package/dist/shared/kb-walk.d.ts +0 -52
- package/dist/shared/kb-walk.d.ts.map +0 -1
- package/dist/shared/kb-walk.js +0 -76
- package/dist/shared/kb-walk.js.map +0 -1
|
@@ -1,20 +1,126 @@
|
|
|
1
|
+
import { sql } from 'drizzle-orm';
|
|
1
2
|
import { drizzle } from 'drizzle-orm/node-postgres';
|
|
2
3
|
import pg from 'pg';
|
|
3
4
|
import * as schema from './schema.js';
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* One database, one schema per knowledge base.
|
|
7
|
+
*
|
|
8
|
+
* A single-tenant deployment keeps `public`, exactly as before this option
|
|
9
|
+
* existed: no `search_path` is set for it, so an operator's own default
|
|
10
|
+
* (`"$user", public`) is honoured, and the migration ledger stays where
|
|
11
|
+
* drizzle put it. A knowledge base hosted beside others gets a schema of its
|
|
12
|
+
* own: every connection of its pool starts with `search_path` pointing at it,
|
|
13
|
+
* so the unqualified table names the schema module and the migrations use
|
|
14
|
+
* resolve there and nowhere else. Isolation is then a Postgres object, and a
|
|
15
|
+
* tenant leaves as `pg_dump -n <schema>`.
|
|
16
|
+
*/
|
|
17
|
+
export const DEFAULT_DB_SCHEMA = 'public';
|
|
18
|
+
/**
|
|
19
|
+
* A schema name this module will put into `search_path`: a plain lowercase
|
|
20
|
+
* identifier, at most Postgres's 63 characters. Validated rather than quoted,
|
|
21
|
+
* because the name also travels into `CREATE SCHEMA` and a `pg_dump`
|
|
22
|
+
* invocation, and a name that needs quoting in one of them is a name that
|
|
23
|
+
* will be spelled wrong in another.
|
|
24
|
+
*/
|
|
25
|
+
export function assertSchemaName(name) {
|
|
26
|
+
if (!/^[a-z][a-z0-9_]{0,62}$/.test(name)) {
|
|
27
|
+
throw new Error(`Database schema name must be a lowercase identifier ([a-z][a-z0-9_]*, at most 63 characters); got "${name}"`);
|
|
28
|
+
}
|
|
29
|
+
// Names Postgres or drizzle already own. `pg_*` would fail at CREATE
|
|
30
|
+
// SCHEMA anyway; `information_schema` would not, and `drizzle` is where a
|
|
31
|
+
// deployment on the default schema keeps its migration ledger, so a
|
|
32
|
+
// knowledge base placed there would share that ledger's home.
|
|
33
|
+
if (name.startsWith('pg_') || name === 'information_schema' || name === 'drizzle') {
|
|
34
|
+
throw new Error(`Database schema name "${name}" is reserved`);
|
|
35
|
+
}
|
|
36
|
+
return name;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Prove that this handle's connections really search `schema` first, by
|
|
40
|
+
* asking the server. The schema is set as a startup parameter, and a
|
|
41
|
+
* transaction- or statement-mode pooler in front of the database (PgBouncer
|
|
42
|
+
* in those modes, RDS Proxy) either refuses that parameter or resets it
|
|
43
|
+
* between transactions; every unqualified table name would then resolve to
|
|
44
|
+
* `public`, and tenants would read each other's rows without a single
|
|
45
|
+
* error. So a graph refuses to come up on a handle that lost its schema,
|
|
46
|
+
* which is the failure an operator can see. Only session pooling is
|
|
47
|
+
* supported in front of a process that serves several knowledge bases.
|
|
48
|
+
*/
|
|
49
|
+
export async function assertSearchPath(db, schema) {
|
|
50
|
+
const result = await db.execute(sql `select current_schema() as schema`);
|
|
51
|
+
const current = result.rows[0]?.schema ?? null;
|
|
52
|
+
if (current !== schema) {
|
|
53
|
+
throw new Error(`Database connections search "${current ?? '(none)'}" first, not the configured schema "${schema}". ` +
|
|
54
|
+
'A transaction-mode pooler in front of Postgres drops the search_path startup parameter; ' +
|
|
55
|
+
'use session pooling, or connect directly.');
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* A bounded handshake: `pg` waits forever by default for a NEW connection to
|
|
60
|
+
* come up, so a database that accepts the socket and never finishes the
|
|
61
|
+
* handshake would hold a boot (the migration lock is the first thing that
|
|
62
|
+
* asks) with nothing to say and nothing for the restart policy to see. Half
|
|
63
|
+
* a minute is generous for a handshake and short enough for a failed boot to
|
|
64
|
+
* be visible. It bounds only that: a checkout queued behind a saturated pool,
|
|
65
|
+
* or a query on a connection that stopped answering, is the caller's to
|
|
66
|
+
* bound — the advisory lock does.
|
|
67
|
+
*/
|
|
68
|
+
const CONNECT_TIMEOUT_MS = 30_000;
|
|
69
|
+
/**
|
|
70
|
+
* A NEW pool on `databaseUrl`, searching `opts.schema` first. Not cached:
|
|
71
|
+
* the caller owns it and ends it with {@link closeDb}. The composition root
|
|
72
|
+
* of a process that serves one knowledge base goes through {@link getDb}
|
|
73
|
+
* instead, which caches.
|
|
74
|
+
*/
|
|
75
|
+
export function createDb(databaseUrl, opts = {}) {
|
|
76
|
+
const dbSchema = assertSchemaName(opts.schema ?? DEFAULT_DB_SCHEMA);
|
|
77
|
+
const pool = new pg.Pool({
|
|
78
|
+
connectionString: databaseUrl,
|
|
79
|
+
connectionTimeoutMillis: CONNECT_TIMEOUT_MS,
|
|
80
|
+
max: opts.max,
|
|
81
|
+
idleTimeoutMillis: opts.idleTimeoutMillis,
|
|
82
|
+
// A startup parameter, applied by the server to every connection this
|
|
83
|
+
// pool opens — not a `SET` run after connecting, which a pooled
|
|
84
|
+
// connection could outlive. The default schema sets nothing, so an
|
|
85
|
+
// operator's own `search_path` stays in force there.
|
|
86
|
+
...(dbSchema === DEFAULT_DB_SCHEMA ? {} : { options: `-c search_path=${dbSchema}` }),
|
|
87
|
+
});
|
|
88
|
+
const db = drizzle(pool, { schema });
|
|
89
|
+
schemas.set(db, dbSchema);
|
|
90
|
+
return db;
|
|
91
|
+
}
|
|
92
|
+
/** The schema a database handle searches first — for the callers that name it in DDL. */
|
|
93
|
+
export function dbSchemaOf(db) {
|
|
94
|
+
return schemas.get(db) ?? DEFAULT_DB_SCHEMA;
|
|
95
|
+
}
|
|
96
|
+
const schemas = new WeakMap();
|
|
97
|
+
const cache = new Map();
|
|
98
|
+
const cacheKey = (databaseUrl, dbSchema) => `${dbSchema}\u0000${databaseUrl}`;
|
|
99
|
+
/**
|
|
100
|
+
* The process's pool on `databaseUrl` for `opts.schema`, created on first
|
|
101
|
+
* use and shared afterwards. One per (url, schema): two handles on the same
|
|
102
|
+
* schema would be two pools competing for the same connection budget.
|
|
103
|
+
*/
|
|
104
|
+
export function getDb(databaseUrl, opts = {}) {
|
|
105
|
+
const dbSchema = assertSchemaName(opts.schema ?? DEFAULT_DB_SCHEMA);
|
|
106
|
+
const key = cacheKey(databaseUrl, dbSchema);
|
|
107
|
+
let db = cache.get(key);
|
|
6
108
|
if (!db) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
// the handshake would hold a boot (the migration lock is the first thing
|
|
10
|
-
// that asks) with nothing to say and nothing for the restart policy to
|
|
11
|
-
// see. Half a minute is generous for a handshake and short enough for a
|
|
12
|
-
// failed boot to be visible. It bounds only that: a checkout queued
|
|
13
|
-
// behind a saturated pool, or a query on a connection that stopped
|
|
14
|
-
// answering, is the caller's to bound — the advisory lock does.
|
|
15
|
-
const pool = new pg.Pool({ connectionString: databaseUrl, connectionTimeoutMillis: 30_000 });
|
|
16
|
-
db = drizzle(pool, { schema });
|
|
109
|
+
db = createDb(databaseUrl, opts);
|
|
110
|
+
cache.set(key, db);
|
|
17
111
|
}
|
|
18
112
|
return db;
|
|
19
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* End a handle's pool and forget it, so a later {@link getDb} for the same
|
|
116
|
+
* schema opens a fresh one rather than handing out a pool that was ended.
|
|
117
|
+
* The last step of stopping a knowledge base's graph.
|
|
118
|
+
*/
|
|
119
|
+
export async function closeDb(db) {
|
|
120
|
+
for (const [key, cached] of cache) {
|
|
121
|
+
if (cached === db)
|
|
122
|
+
cache.delete(key);
|
|
123
|
+
}
|
|
124
|
+
await db.$client.end();
|
|
125
|
+
}
|
|
20
126
|
//# sourceMappingURL=connection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../../src/modules/database/connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"connection.js","sourceRoot":"","sources":["../../../src/modules/database/connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,KAAK,MA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AE,EAAE,CAAC;QACR,EAAE,GAAG,QAAQ,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;QACjC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACrB,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,OAAO,CAAC,EAA6B;IACzD,KAAK,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;QAClC,IAAI,MAAM,KAAK,EAAE;YAAE,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACvC,CAAC;IACD,MAAM,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;AACzB,CAAC"}
|
|
@@ -1168,6 +1168,23 @@ export declare const externalApiKeys: import("drizzle-orm/pg-core").PgTableWithC
|
|
|
1168
1168
|
identity: undefined;
|
|
1169
1169
|
generated: undefined;
|
|
1170
1170
|
}, {}, {}>;
|
|
1171
|
+
deletedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
1172
|
+
name: "deleted_at";
|
|
1173
|
+
tableName: "api_tokens";
|
|
1174
|
+
dataType: "date";
|
|
1175
|
+
columnType: "PgTimestamp";
|
|
1176
|
+
data: Date;
|
|
1177
|
+
driverParam: string;
|
|
1178
|
+
notNull: false;
|
|
1179
|
+
hasDefault: false;
|
|
1180
|
+
isPrimaryKey: false;
|
|
1181
|
+
isAutoincrement: false;
|
|
1182
|
+
hasRuntimeDefault: false;
|
|
1183
|
+
enumValues: undefined;
|
|
1184
|
+
baseColumn: never;
|
|
1185
|
+
identity: undefined;
|
|
1186
|
+
generated: undefined;
|
|
1187
|
+
}, {}, {}>;
|
|
1171
1188
|
};
|
|
1172
1189
|
dialect: "pg";
|
|
1173
1190
|
}>;
|
|
@@ -2164,12 +2181,199 @@ export declare const oauthAuthCodes: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
2164
2181
|
};
|
|
2165
2182
|
dialect: "pg";
|
|
2166
2183
|
}>;
|
|
2184
|
+
/**
|
|
2185
|
+
* "This person connected this agent" — the durable record behind the Audit
|
|
2186
|
+
* log's agent rows. An OAuth grant cannot be that record: its token row is
|
|
2187
|
+
* replaced on every refresh (hourly) and pruned once its refresh window
|
|
2188
|
+
* closes, so nothing about it outlives a month. This row is made the first
|
|
2189
|
+
* time a token is minted for a (user, client) pair, kept across every refresh
|
|
2190
|
+
* (each new token row points at it), and REVOKED rather than deleted when the
|
|
2191
|
+
* person or an admin cuts the agent off — its events stay readable under it.
|
|
2192
|
+
*
|
|
2193
|
+
* A connection is the AGENT, per person — not the OAuth client registration.
|
|
2194
|
+
* Claude registers a fresh client on every re-authorisation (dynamic client
|
|
2195
|
+
* registration mints a new id each time), so keying by registration gave one
|
|
2196
|
+
* person five "Claude" rows for one agent. `agent_key` is what a connection is
|
|
2197
|
+
* keyed by instead: the registered client name, folded (a name-less client
|
|
2198
|
+
* falls back to its id), so every registration of "Claude" by one person
|
|
2199
|
+
* lands on the same live row; `client_id` records the registration that
|
|
2200
|
+
* first made it. `client_name` is that registration's name as shown.
|
|
2201
|
+
*
|
|
2202
|
+
* One LIVE connection per (user, agent): the partial unique index below. A
|
|
2203
|
+
* reconnect after a revoke is a new row, so the old one's history and its
|
|
2204
|
+
* "revoked by an admin" mark are never overwritten.
|
|
2205
|
+
*/
|
|
2206
|
+
export declare const agentConnections: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2207
|
+
name: "agent_connections";
|
|
2208
|
+
schema: undefined;
|
|
2209
|
+
columns: {
|
|
2210
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
2211
|
+
name: "id";
|
|
2212
|
+
tableName: "agent_connections";
|
|
2213
|
+
dataType: "string";
|
|
2214
|
+
columnType: "PgUUID";
|
|
2215
|
+
data: string;
|
|
2216
|
+
driverParam: string;
|
|
2217
|
+
notNull: true;
|
|
2218
|
+
hasDefault: true;
|
|
2219
|
+
isPrimaryKey: true;
|
|
2220
|
+
isAutoincrement: false;
|
|
2221
|
+
hasRuntimeDefault: false;
|
|
2222
|
+
enumValues: undefined;
|
|
2223
|
+
baseColumn: never;
|
|
2224
|
+
identity: undefined;
|
|
2225
|
+
generated: undefined;
|
|
2226
|
+
}, {}, {}>;
|
|
2227
|
+
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2228
|
+
name: "user_id";
|
|
2229
|
+
tableName: "agent_connections";
|
|
2230
|
+
dataType: "string";
|
|
2231
|
+
columnType: "PgUUID";
|
|
2232
|
+
data: string;
|
|
2233
|
+
driverParam: string;
|
|
2234
|
+
notNull: true;
|
|
2235
|
+
hasDefault: false;
|
|
2236
|
+
isPrimaryKey: false;
|
|
2237
|
+
isAutoincrement: false;
|
|
2238
|
+
hasRuntimeDefault: false;
|
|
2239
|
+
enumValues: undefined;
|
|
2240
|
+
baseColumn: never;
|
|
2241
|
+
identity: undefined;
|
|
2242
|
+
generated: undefined;
|
|
2243
|
+
}, {}, {}>;
|
|
2244
|
+
clientId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2245
|
+
name: "client_id";
|
|
2246
|
+
tableName: "agent_connections";
|
|
2247
|
+
dataType: "string";
|
|
2248
|
+
columnType: "PgText";
|
|
2249
|
+
data: string;
|
|
2250
|
+
driverParam: string;
|
|
2251
|
+
notNull: true;
|
|
2252
|
+
hasDefault: false;
|
|
2253
|
+
isPrimaryKey: false;
|
|
2254
|
+
isAutoincrement: false;
|
|
2255
|
+
hasRuntimeDefault: false;
|
|
2256
|
+
enumValues: [string, ...string[]];
|
|
2257
|
+
baseColumn: never;
|
|
2258
|
+
identity: undefined;
|
|
2259
|
+
generated: undefined;
|
|
2260
|
+
}, {}, {}>;
|
|
2261
|
+
clientName: import("drizzle-orm/pg-core").PgColumn<{
|
|
2262
|
+
name: "client_name";
|
|
2263
|
+
tableName: "agent_connections";
|
|
2264
|
+
dataType: "string";
|
|
2265
|
+
columnType: "PgText";
|
|
2266
|
+
data: string;
|
|
2267
|
+
driverParam: string;
|
|
2268
|
+
notNull: false;
|
|
2269
|
+
hasDefault: false;
|
|
2270
|
+
isPrimaryKey: false;
|
|
2271
|
+
isAutoincrement: false;
|
|
2272
|
+
hasRuntimeDefault: false;
|
|
2273
|
+
enumValues: [string, ...string[]];
|
|
2274
|
+
baseColumn: never;
|
|
2275
|
+
identity: undefined;
|
|
2276
|
+
generated: undefined;
|
|
2277
|
+
}, {}, {}>;
|
|
2278
|
+
agentKey: import("drizzle-orm/pg-core").PgColumn<{
|
|
2279
|
+
name: "agent_key";
|
|
2280
|
+
tableName: "agent_connections";
|
|
2281
|
+
dataType: "string";
|
|
2282
|
+
columnType: "PgText";
|
|
2283
|
+
data: string;
|
|
2284
|
+
driverParam: string;
|
|
2285
|
+
notNull: true;
|
|
2286
|
+
hasDefault: false;
|
|
2287
|
+
isPrimaryKey: false;
|
|
2288
|
+
isAutoincrement: false;
|
|
2289
|
+
hasRuntimeDefault: false;
|
|
2290
|
+
enumValues: [string, ...string[]];
|
|
2291
|
+
baseColumn: never;
|
|
2292
|
+
identity: undefined;
|
|
2293
|
+
generated: undefined;
|
|
2294
|
+
}, {}, {}>;
|
|
2295
|
+
connectedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2296
|
+
name: "connected_at";
|
|
2297
|
+
tableName: "agent_connections";
|
|
2298
|
+
dataType: "date";
|
|
2299
|
+
columnType: "PgTimestamp";
|
|
2300
|
+
data: Date;
|
|
2301
|
+
driverParam: string;
|
|
2302
|
+
notNull: true;
|
|
2303
|
+
hasDefault: true;
|
|
2304
|
+
isPrimaryKey: false;
|
|
2305
|
+
isAutoincrement: false;
|
|
2306
|
+
hasRuntimeDefault: false;
|
|
2307
|
+
enumValues: undefined;
|
|
2308
|
+
baseColumn: never;
|
|
2309
|
+
identity: undefined;
|
|
2310
|
+
generated: undefined;
|
|
2311
|
+
}, {}, {}>;
|
|
2312
|
+
lastUsedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2313
|
+
name: "last_used_at";
|
|
2314
|
+
tableName: "agent_connections";
|
|
2315
|
+
dataType: "date";
|
|
2316
|
+
columnType: "PgTimestamp";
|
|
2317
|
+
data: Date;
|
|
2318
|
+
driverParam: string;
|
|
2319
|
+
notNull: false;
|
|
2320
|
+
hasDefault: false;
|
|
2321
|
+
isPrimaryKey: false;
|
|
2322
|
+
isAutoincrement: false;
|
|
2323
|
+
hasRuntimeDefault: false;
|
|
2324
|
+
enumValues: undefined;
|
|
2325
|
+
baseColumn: never;
|
|
2326
|
+
identity: undefined;
|
|
2327
|
+
generated: undefined;
|
|
2328
|
+
}, {}, {}>;
|
|
2329
|
+
revokedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2330
|
+
name: "revoked_at";
|
|
2331
|
+
tableName: "agent_connections";
|
|
2332
|
+
dataType: "date";
|
|
2333
|
+
columnType: "PgTimestamp";
|
|
2334
|
+
data: Date;
|
|
2335
|
+
driverParam: string;
|
|
2336
|
+
notNull: false;
|
|
2337
|
+
hasDefault: false;
|
|
2338
|
+
isPrimaryKey: false;
|
|
2339
|
+
isAutoincrement: false;
|
|
2340
|
+
hasRuntimeDefault: false;
|
|
2341
|
+
enumValues: undefined;
|
|
2342
|
+
baseColumn: never;
|
|
2343
|
+
identity: undefined;
|
|
2344
|
+
generated: undefined;
|
|
2345
|
+
}, {}, {}>;
|
|
2346
|
+
revokedBy: import("drizzle-orm/pg-core").PgColumn<{
|
|
2347
|
+
name: "revoked_by";
|
|
2348
|
+
tableName: "agent_connections";
|
|
2349
|
+
dataType: "string";
|
|
2350
|
+
columnType: "PgText";
|
|
2351
|
+
data: string;
|
|
2352
|
+
driverParam: string;
|
|
2353
|
+
notNull: false;
|
|
2354
|
+
hasDefault: false;
|
|
2355
|
+
isPrimaryKey: false;
|
|
2356
|
+
isAutoincrement: false;
|
|
2357
|
+
hasRuntimeDefault: false;
|
|
2358
|
+
enumValues: [string, ...string[]];
|
|
2359
|
+
baseColumn: never;
|
|
2360
|
+
identity: undefined;
|
|
2361
|
+
generated: undefined;
|
|
2362
|
+
}, {}, {}>;
|
|
2363
|
+
};
|
|
2364
|
+
dialect: "pg";
|
|
2365
|
+
}>;
|
|
2167
2366
|
/**
|
|
2168
2367
|
* OAuth access/refresh token pairs minted by the token endpoint. Like
|
|
2169
2368
|
* `api_tokens`: plaintext shown only in the token response, SHA-256 hashes
|
|
2170
2369
|
* stored, revoked-not-deleted so `last_used_at` keeps its audit value and a
|
|
2171
2370
|
* revoked token can't be re-issued. One row per pair; refresh rotation
|
|
2172
2371
|
* revokes the old row and inserts a new one.
|
|
2372
|
+
*
|
|
2373
|
+
* `connection_id` names the {@link agentConnections} row the pair belongs to,
|
|
2374
|
+
* so every call made with the token is attributed to that agent and revoking
|
|
2375
|
+
* the agent can revoke exactly its tokens. Null only on rows minted before
|
|
2376
|
+
* the column existed.
|
|
2173
2377
|
*/
|
|
2174
2378
|
export declare const oauthTokens: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2175
2379
|
name: "oauth_tokens";
|
|
@@ -2260,6 +2464,23 @@ export declare const oauthTokens: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
2260
2464
|
identity: undefined;
|
|
2261
2465
|
generated: undefined;
|
|
2262
2466
|
}, {}, {}>;
|
|
2467
|
+
connectionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2468
|
+
name: "connection_id";
|
|
2469
|
+
tableName: "oauth_tokens";
|
|
2470
|
+
dataType: "string";
|
|
2471
|
+
columnType: "PgUUID";
|
|
2472
|
+
data: string;
|
|
2473
|
+
driverParam: string;
|
|
2474
|
+
notNull: false;
|
|
2475
|
+
hasDefault: false;
|
|
2476
|
+
isPrimaryKey: false;
|
|
2477
|
+
isAutoincrement: false;
|
|
2478
|
+
hasRuntimeDefault: false;
|
|
2479
|
+
enumValues: undefined;
|
|
2480
|
+
baseColumn: never;
|
|
2481
|
+
identity: undefined;
|
|
2482
|
+
generated: undefined;
|
|
2483
|
+
}, {}, {}>;
|
|
2263
2484
|
scope: import("drizzle-orm/pg-core").PgColumn<{
|
|
2264
2485
|
name: "scope";
|
|
2265
2486
|
tableName: "oauth_tokens";
|
|
@@ -2382,6 +2603,199 @@ export declare const oauthTokens: import("drizzle-orm/pg-core").PgTableWithColum
|
|
|
2382
2603
|
};
|
|
2383
2604
|
dialect: "pg";
|
|
2384
2605
|
}>;
|
|
2606
|
+
/**
|
|
2607
|
+
* The Audit log's events: one row per thing an external agent called through
|
|
2608
|
+
* the platform — a hexis capability (the platform's own tools, `read_file`,
|
|
2609
|
+
* `call_tool_chain`, …), a tool from a `.tool` manual or a connected MCP
|
|
2610
|
+
* server, or a skill it read. Append-only; pruned past the deployment's
|
|
2611
|
+
* retention window (the `auditRetentionDays` setting).
|
|
2612
|
+
*
|
|
2613
|
+
* Deliberately WITHOUT arguments or results: a call's inputs can carry
|
|
2614
|
+
* secrets and personal data, and the log's question is "what was used, by
|
|
2615
|
+
* which agent, when" — not "what was said".
|
|
2616
|
+
*
|
|
2617
|
+
* Exactly one principal per row (the CHECK): the connection key or the agent
|
|
2618
|
+
* connection the call arrived through. Both cascade, so deleting a key for
|
|
2619
|
+
* good, revoking-then-erasing a person, or dropping a connection takes its
|
|
2620
|
+
* events along — the same contract the LLM-usage rows already keep.
|
|
2621
|
+
*/
|
|
2622
|
+
export declare const agentEvents: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2623
|
+
name: "agent_events";
|
|
2624
|
+
schema: undefined;
|
|
2625
|
+
columns: {
|
|
2626
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
2627
|
+
name: "id";
|
|
2628
|
+
tableName: "agent_events";
|
|
2629
|
+
dataType: "string";
|
|
2630
|
+
columnType: "PgUUID";
|
|
2631
|
+
data: string;
|
|
2632
|
+
driverParam: string;
|
|
2633
|
+
notNull: true;
|
|
2634
|
+
hasDefault: true;
|
|
2635
|
+
isPrimaryKey: true;
|
|
2636
|
+
isAutoincrement: false;
|
|
2637
|
+
hasRuntimeDefault: false;
|
|
2638
|
+
enumValues: undefined;
|
|
2639
|
+
baseColumn: never;
|
|
2640
|
+
identity: undefined;
|
|
2641
|
+
generated: undefined;
|
|
2642
|
+
}, {}, {}>;
|
|
2643
|
+
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2644
|
+
name: "user_id";
|
|
2645
|
+
tableName: "agent_events";
|
|
2646
|
+
dataType: "string";
|
|
2647
|
+
columnType: "PgUUID";
|
|
2648
|
+
data: string;
|
|
2649
|
+
driverParam: string;
|
|
2650
|
+
notNull: true;
|
|
2651
|
+
hasDefault: false;
|
|
2652
|
+
isPrimaryKey: false;
|
|
2653
|
+
isAutoincrement: false;
|
|
2654
|
+
hasRuntimeDefault: false;
|
|
2655
|
+
enumValues: undefined;
|
|
2656
|
+
baseColumn: never;
|
|
2657
|
+
identity: undefined;
|
|
2658
|
+
generated: undefined;
|
|
2659
|
+
}, {}, {}>;
|
|
2660
|
+
keyId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2661
|
+
name: "key_id";
|
|
2662
|
+
tableName: "agent_events";
|
|
2663
|
+
dataType: "string";
|
|
2664
|
+
columnType: "PgUUID";
|
|
2665
|
+
data: string;
|
|
2666
|
+
driverParam: string;
|
|
2667
|
+
notNull: false;
|
|
2668
|
+
hasDefault: false;
|
|
2669
|
+
isPrimaryKey: false;
|
|
2670
|
+
isAutoincrement: false;
|
|
2671
|
+
hasRuntimeDefault: false;
|
|
2672
|
+
enumValues: undefined;
|
|
2673
|
+
baseColumn: never;
|
|
2674
|
+
identity: undefined;
|
|
2675
|
+
generated: undefined;
|
|
2676
|
+
}, {}, {}>;
|
|
2677
|
+
connectionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2678
|
+
name: "connection_id";
|
|
2679
|
+
tableName: "agent_events";
|
|
2680
|
+
dataType: "string";
|
|
2681
|
+
columnType: "PgUUID";
|
|
2682
|
+
data: string;
|
|
2683
|
+
driverParam: string;
|
|
2684
|
+
notNull: false;
|
|
2685
|
+
hasDefault: false;
|
|
2686
|
+
isPrimaryKey: false;
|
|
2687
|
+
isAutoincrement: false;
|
|
2688
|
+
hasRuntimeDefault: false;
|
|
2689
|
+
enumValues: undefined;
|
|
2690
|
+
baseColumn: never;
|
|
2691
|
+
identity: undefined;
|
|
2692
|
+
generated: undefined;
|
|
2693
|
+
}, {}, {}>;
|
|
2694
|
+
kind: import("drizzle-orm/pg-core").PgColumn<{
|
|
2695
|
+
name: "kind";
|
|
2696
|
+
tableName: "agent_events";
|
|
2697
|
+
dataType: "string";
|
|
2698
|
+
columnType: "PgText";
|
|
2699
|
+
data: string;
|
|
2700
|
+
driverParam: string;
|
|
2701
|
+
notNull: true;
|
|
2702
|
+
hasDefault: false;
|
|
2703
|
+
isPrimaryKey: false;
|
|
2704
|
+
isAutoincrement: false;
|
|
2705
|
+
hasRuntimeDefault: false;
|
|
2706
|
+
enumValues: [string, ...string[]];
|
|
2707
|
+
baseColumn: never;
|
|
2708
|
+
identity: undefined;
|
|
2709
|
+
generated: undefined;
|
|
2710
|
+
}, {}, {}>;
|
|
2711
|
+
manual: import("drizzle-orm/pg-core").PgColumn<{
|
|
2712
|
+
name: "manual";
|
|
2713
|
+
tableName: "agent_events";
|
|
2714
|
+
dataType: "string";
|
|
2715
|
+
columnType: "PgText";
|
|
2716
|
+
data: string;
|
|
2717
|
+
driverParam: string;
|
|
2718
|
+
notNull: false;
|
|
2719
|
+
hasDefault: false;
|
|
2720
|
+
isPrimaryKey: false;
|
|
2721
|
+
isAutoincrement: false;
|
|
2722
|
+
hasRuntimeDefault: false;
|
|
2723
|
+
enumValues: [string, ...string[]];
|
|
2724
|
+
baseColumn: never;
|
|
2725
|
+
identity: undefined;
|
|
2726
|
+
generated: undefined;
|
|
2727
|
+
}, {}, {}>;
|
|
2728
|
+
name: import("drizzle-orm/pg-core").PgColumn<{
|
|
2729
|
+
name: "name";
|
|
2730
|
+
tableName: "agent_events";
|
|
2731
|
+
dataType: "string";
|
|
2732
|
+
columnType: "PgText";
|
|
2733
|
+
data: string;
|
|
2734
|
+
driverParam: string;
|
|
2735
|
+
notNull: true;
|
|
2736
|
+
hasDefault: false;
|
|
2737
|
+
isPrimaryKey: false;
|
|
2738
|
+
isAutoincrement: false;
|
|
2739
|
+
hasRuntimeDefault: false;
|
|
2740
|
+
enumValues: [string, ...string[]];
|
|
2741
|
+
baseColumn: never;
|
|
2742
|
+
identity: undefined;
|
|
2743
|
+
generated: undefined;
|
|
2744
|
+
}, {}, {}>;
|
|
2745
|
+
outcome: import("drizzle-orm/pg-core").PgColumn<{
|
|
2746
|
+
name: "outcome";
|
|
2747
|
+
tableName: "agent_events";
|
|
2748
|
+
dataType: "string";
|
|
2749
|
+
columnType: "PgText";
|
|
2750
|
+
data: string;
|
|
2751
|
+
driverParam: string;
|
|
2752
|
+
notNull: true;
|
|
2753
|
+
hasDefault: false;
|
|
2754
|
+
isPrimaryKey: false;
|
|
2755
|
+
isAutoincrement: false;
|
|
2756
|
+
hasRuntimeDefault: false;
|
|
2757
|
+
enumValues: [string, ...string[]];
|
|
2758
|
+
baseColumn: never;
|
|
2759
|
+
identity: undefined;
|
|
2760
|
+
generated: undefined;
|
|
2761
|
+
}, {}, {}>;
|
|
2762
|
+
durationMs: import("drizzle-orm/pg-core").PgColumn<{
|
|
2763
|
+
name: "duration_ms";
|
|
2764
|
+
tableName: "agent_events";
|
|
2765
|
+
dataType: "number";
|
|
2766
|
+
columnType: "PgInteger";
|
|
2767
|
+
data: number;
|
|
2768
|
+
driverParam: string | number;
|
|
2769
|
+
notNull: false;
|
|
2770
|
+
hasDefault: false;
|
|
2771
|
+
isPrimaryKey: false;
|
|
2772
|
+
isAutoincrement: false;
|
|
2773
|
+
hasRuntimeDefault: false;
|
|
2774
|
+
enumValues: undefined;
|
|
2775
|
+
baseColumn: never;
|
|
2776
|
+
identity: undefined;
|
|
2777
|
+
generated: undefined;
|
|
2778
|
+
}, {}, {}>;
|
|
2779
|
+
at: import("drizzle-orm/pg-core").PgColumn<{
|
|
2780
|
+
name: "at";
|
|
2781
|
+
tableName: "agent_events";
|
|
2782
|
+
dataType: "date";
|
|
2783
|
+
columnType: "PgTimestamp";
|
|
2784
|
+
data: Date;
|
|
2785
|
+
driverParam: string;
|
|
2786
|
+
notNull: true;
|
|
2787
|
+
hasDefault: true;
|
|
2788
|
+
isPrimaryKey: false;
|
|
2789
|
+
isAutoincrement: false;
|
|
2790
|
+
hasRuntimeDefault: false;
|
|
2791
|
+
enumValues: undefined;
|
|
2792
|
+
baseColumn: never;
|
|
2793
|
+
identity: undefined;
|
|
2794
|
+
generated: undefined;
|
|
2795
|
+
}, {}, {}>;
|
|
2796
|
+
};
|
|
2797
|
+
dialect: "pg";
|
|
2798
|
+
}>;
|
|
2385
2799
|
export declare const sessionOntologyTouches: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2386
2800
|
name: "session_ontology_touches";
|
|
2387
2801
|
schema: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-schema.d.ts","sourceRoot":"","sources":["../../../src/modules/database/core-schema.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0BhB,CAAC;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAczB,CAAC;AAEJ;;;;;;GAMG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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