@cat-factory/worker 0.6.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/LICENSE +21 -0
- package/dist/app.d.ts +22 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +49 -0
- package/dist/app.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +234 -0
- package/dist/index.js.map +1 -0
- package/dist/infrastructure/ai/CloudflareModelProvider.d.ts +23 -0
- package/dist/infrastructure/ai/CloudflareModelProvider.d.ts.map +1 -0
- package/dist/infrastructure/ai/CloudflareModelProvider.js +62 -0
- package/dist/infrastructure/ai/CloudflareModelProvider.js.map +1 -0
- package/dist/infrastructure/ai/CompositeAgentExecutor.d.ts +2 -0
- package/dist/infrastructure/ai/CompositeAgentExecutor.d.ts.map +1 -0
- package/dist/infrastructure/ai/CompositeAgentExecutor.js +5 -0
- package/dist/infrastructure/ai/CompositeAgentExecutor.js.map +1 -0
- package/dist/infrastructure/ai/ContainerAgentExecutor.d.ts +2 -0
- package/dist/infrastructure/ai/ContainerAgentExecutor.d.ts.map +1 -0
- package/dist/infrastructure/ai/ContainerAgentExecutor.js +5 -0
- package/dist/infrastructure/ai/ContainerAgentExecutor.js.map +1 -0
- package/dist/infrastructure/ai/ContainerRepoBootstrapper.d.ts +2 -0
- package/dist/infrastructure/ai/ContainerRepoBootstrapper.d.ts.map +1 -0
- package/dist/infrastructure/ai/ContainerRepoBootstrapper.js +5 -0
- package/dist/infrastructure/ai/ContainerRepoBootstrapper.js.map +1 -0
- package/dist/infrastructure/ai/ContainerRepoScanner.d.ts +39 -0
- package/dist/infrastructure/ai/ContainerRepoScanner.d.ts.map +1 -0
- package/dist/infrastructure/ai/ContainerRepoScanner.js +115 -0
- package/dist/infrastructure/ai/ContainerRepoScanner.js.map +1 -0
- package/dist/infrastructure/ai/LlmFragmentSelector.d.ts +2 -0
- package/dist/infrastructure/ai/LlmFragmentSelector.d.ts.map +1 -0
- package/dist/infrastructure/ai/LlmFragmentSelector.js +4 -0
- package/dist/infrastructure/ai/LlmFragmentSelector.js.map +1 -0
- package/dist/infrastructure/ai/RunnerJobClient.d.ts +2 -0
- package/dist/infrastructure/ai/RunnerJobClient.d.ts.map +1 -0
- package/dist/infrastructure/ai/RunnerJobClient.js +5 -0
- package/dist/infrastructure/ai/RunnerJobClient.js.map +1 -0
- package/dist/infrastructure/ai/WorkersAiLlmUpstream.d.ts +28 -0
- package/dist/infrastructure/ai/WorkersAiLlmUpstream.d.ts.map +1 -0
- package/dist/infrastructure/ai/WorkersAiLlmUpstream.js +486 -0
- package/dist/infrastructure/ai/WorkersAiLlmUpstream.js.map +1 -0
- package/dist/infrastructure/ai/providerEndpoints.d.ts +17 -0
- package/dist/infrastructure/ai/providerEndpoints.d.ts.map +1 -0
- package/dist/infrastructure/ai/providerEndpoints.js +42 -0
- package/dist/infrastructure/ai/providerEndpoints.js.map +1 -0
- package/dist/infrastructure/ai/registries.d.ts +11 -0
- package/dist/infrastructure/ai/registries.d.ts.map +1 -0
- package/dist/infrastructure/ai/registries.js +14 -0
- package/dist/infrastructure/ai/registries.js.map +1 -0
- package/dist/infrastructure/auth/GitHubOAuth.d.ts +2 -0
- package/dist/infrastructure/auth/GitHubOAuth.d.ts.map +1 -0
- package/dist/infrastructure/auth/GitHubOAuth.js +3 -0
- package/dist/infrastructure/auth/GitHubOAuth.js.map +1 -0
- package/dist/infrastructure/auth/middleware.d.ts +2 -0
- package/dist/infrastructure/auth/middleware.d.ts.map +1 -0
- package/dist/infrastructure/auth/middleware.js +3 -0
- package/dist/infrastructure/auth/middleware.js.map +1 -0
- package/dist/infrastructure/auth/signing.d.ts +3 -0
- package/dist/infrastructure/auth/signing.d.ts.map +1 -0
- package/dist/infrastructure/auth/signing.js +3 -0
- package/dist/infrastructure/auth/signing.js.map +1 -0
- package/dist/infrastructure/config/agents.d.ts +6 -0
- package/dist/infrastructure/config/agents.d.ts.map +1 -0
- package/dist/infrastructure/config/agents.js +100 -0
- package/dist/infrastructure/config/agents.js.map +1 -0
- package/dist/infrastructure/config/auth.d.ts +13 -0
- package/dist/infrastructure/config/auth.d.ts.map +1 -0
- package/dist/infrastructure/config/auth.js +80 -0
- package/dist/infrastructure/config/auth.js.map +1 -0
- package/dist/infrastructure/config/cors.d.ts +2 -0
- package/dist/infrastructure/config/cors.d.ts.map +1 -0
- package/dist/infrastructure/config/cors.js +3 -0
- package/dist/infrastructure/config/cors.js.map +1 -0
- package/dist/infrastructure/config/datadog.d.ts +6 -0
- package/dist/infrastructure/config/datadog.d.ts.map +1 -0
- package/dist/infrastructure/config/datadog.js +22 -0
- package/dist/infrastructure/config/datadog.js.map +1 -0
- package/dist/infrastructure/config/documents.d.ts +5 -0
- package/dist/infrastructure/config/documents.d.ts.map +1 -0
- package/dist/infrastructure/config/documents.js +36 -0
- package/dist/infrastructure/config/documents.js.map +1 -0
- package/dist/infrastructure/config/email.d.ts +5 -0
- package/dist/infrastructure/config/email.d.ts.map +1 -0
- package/dist/infrastructure/config/email.js +12 -0
- package/dist/infrastructure/config/email.js.map +1 -0
- package/dist/infrastructure/config/environments.d.ts +5 -0
- package/dist/infrastructure/config/environments.d.ts.map +1 -0
- package/dist/infrastructure/config/environments.js +15 -0
- package/dist/infrastructure/config/environments.js.map +1 -0
- package/dist/infrastructure/config/execution.d.ts +5 -0
- package/dist/infrastructure/config/execution.d.ts.map +1 -0
- package/dist/infrastructure/config/execution.js +21 -0
- package/dist/infrastructure/config/execution.js.map +1 -0
- package/dist/infrastructure/config/fragmentLibrary.d.ts +5 -0
- package/dist/infrastructure/config/fragmentLibrary.d.ts.map +1 -0
- package/dist/infrastructure/config/fragmentLibrary.js +7 -0
- package/dist/infrastructure/config/fragmentLibrary.js.map +1 -0
- package/dist/infrastructure/config/github.d.ts +5 -0
- package/dist/infrastructure/config/github.d.ts.map +1 -0
- package/dist/infrastructure/config/github.js +25 -0
- package/dist/infrastructure/config/github.js.map +1 -0
- package/dist/infrastructure/config/index.d.ts +20 -0
- package/dist/infrastructure/config/index.d.ts.map +1 -0
- package/dist/infrastructure/config/index.js +52 -0
- package/dist/infrastructure/config/index.js.map +1 -0
- package/dist/infrastructure/config/langfuse.d.ts +10 -0
- package/dist/infrastructure/config/langfuse.d.ts.map +1 -0
- package/dist/infrastructure/config/langfuse.js +17 -0
- package/dist/infrastructure/config/langfuse.js.map +1 -0
- package/dist/infrastructure/config/observability.d.ts +10 -0
- package/dist/infrastructure/config/observability.d.ts.map +1 -0
- package/dist/infrastructure/config/observability.js +11 -0
- package/dist/infrastructure/config/observability.js.map +1 -0
- package/dist/infrastructure/config/retention.d.ts +5 -0
- package/dist/infrastructure/config/retention.d.ts.map +1 -0
- package/dist/infrastructure/config/retention.js +15 -0
- package/dist/infrastructure/config/retention.js.map +1 -0
- package/dist/infrastructure/config/runners.d.ts +5 -0
- package/dist/infrastructure/config/runners.d.ts.map +1 -0
- package/dist/infrastructure/config/runners.js +13 -0
- package/dist/infrastructure/config/runners.js.map +1 -0
- package/dist/infrastructure/config/slack.d.ts +5 -0
- package/dist/infrastructure/config/slack.d.ts.map +1 -0
- package/dist/infrastructure/config/slack.js +17 -0
- package/dist/infrastructure/config/slack.js.map +1 -0
- package/dist/infrastructure/config/spending.d.ts +4 -0
- package/dist/infrastructure/config/spending.d.ts.map +1 -0
- package/dist/infrastructure/config/spending.js +36 -0
- package/dist/infrastructure/config/spending.js.map +1 -0
- package/dist/infrastructure/config/tasks.d.ts +5 -0
- package/dist/infrastructure/config/tasks.d.ts.map +1 -0
- package/dist/infrastructure/config/tasks.js +31 -0
- package/dist/infrastructure/config/tasks.js.map +1 -0
- package/dist/infrastructure/config/utils.d.ts +6 -0
- package/dist/infrastructure/config/utils.d.ts.map +1 -0
- package/dist/infrastructure/config/utils.js +24 -0
- package/dist/infrastructure/config/utils.js.map +1 -0
- package/dist/infrastructure/container.d.ts +8 -0
- package/dist/infrastructure/container.d.ts.map +1 -0
- package/dist/infrastructure/container.js +1157 -0
- package/dist/infrastructure/container.js.map +1 -0
- package/dist/infrastructure/containers/CloudflareContainerTransport.d.ts +22 -0
- package/dist/infrastructure/containers/CloudflareContainerTransport.d.ts.map +1 -0
- package/dist/infrastructure/containers/CloudflareContainerTransport.js +129 -0
- package/dist/infrastructure/containers/CloudflareContainerTransport.js.map +1 -0
- package/dist/infrastructure/containers/ContainerInstanceRegistry.d.ts +62 -0
- package/dist/infrastructure/containers/ContainerInstanceRegistry.d.ts.map +1 -0
- package/dist/infrastructure/containers/ContainerInstanceRegistry.js +74 -0
- package/dist/infrastructure/containers/ContainerInstanceRegistry.js.map +1 -0
- package/dist/infrastructure/containers/ContainerSessionService.d.ts +2 -0
- package/dist/infrastructure/containers/ContainerSessionService.d.ts.map +1 -0
- package/dist/infrastructure/containers/ContainerSessionService.js +3 -0
- package/dist/infrastructure/containers/ContainerSessionService.js.map +1 -0
- package/dist/infrastructure/containers/ExecutionContainer.d.ts +48 -0
- package/dist/infrastructure/containers/ExecutionContainer.d.ts.map +1 -0
- package/dist/infrastructure/containers/ExecutionContainer.js +88 -0
- package/dist/infrastructure/containers/ExecutionContainer.js.map +1 -0
- package/dist/infrastructure/documents/ConfluenceProvider.d.ts +29 -0
- package/dist/infrastructure/documents/ConfluenceProvider.d.ts.map +1 -0
- package/dist/infrastructure/documents/ConfluenceProvider.js +179 -0
- package/dist/infrastructure/documents/ConfluenceProvider.js.map +1 -0
- package/dist/infrastructure/documents/GitHubDocsProvider.d.ts +42 -0
- package/dist/infrastructure/documents/GitHubDocsProvider.d.ts.map +1 -0
- package/dist/infrastructure/documents/GitHubDocsProvider.js +85 -0
- package/dist/infrastructure/documents/GitHubDocsProvider.js.map +1 -0
- package/dist/infrastructure/documents/NotionProvider.d.ts +32 -0
- package/dist/infrastructure/documents/NotionProvider.d.ts.map +1 -0
- package/dist/infrastructure/documents/NotionProvider.js +220 -0
- package/dist/infrastructure/documents/NotionProvider.js.map +1 -0
- package/dist/infrastructure/durable-objects/WorkspaceEventsHub.d.ts +20 -0
- package/dist/infrastructure/durable-objects/WorkspaceEventsHub.d.ts.map +1 -0
- package/dist/infrastructure/durable-objects/WorkspaceEventsHub.js +62 -0
- package/dist/infrastructure/durable-objects/WorkspaceEventsHub.js.map +1 -0
- package/dist/infrastructure/env.d.ts +370 -0
- package/dist/infrastructure/env.d.ts.map +1 -0
- package/dist/infrastructure/env.js +2 -0
- package/dist/infrastructure/env.js.map +1 -0
- package/dist/infrastructure/environments/HttpEnvironmentProvider.d.ts +27 -0
- package/dist/infrastructure/environments/HttpEnvironmentProvider.d.ts.map +1 -0
- package/dist/infrastructure/environments/HttpEnvironmentProvider.js +314 -0
- package/dist/infrastructure/environments/HttpEnvironmentProvider.js.map +1 -0
- package/dist/infrastructure/environments/WebCryptoSecretCipher.d.ts +2 -0
- package/dist/infrastructure/environments/WebCryptoSecretCipher.d.ts.map +1 -0
- package/dist/infrastructure/environments/WebCryptoSecretCipher.js +5 -0
- package/dist/infrastructure/environments/WebCryptoSecretCipher.js.map +1 -0
- package/dist/infrastructure/environments/sweep.d.ts +5 -0
- package/dist/infrastructure/environments/sweep.d.ts.map +1 -0
- package/dist/infrastructure/environments/sweep.js +16 -0
- package/dist/infrastructure/environments/sweep.js.map +1 -0
- package/dist/infrastructure/events/DurableObjectEventPublisher.d.ts +25 -0
- package/dist/infrastructure/events/DurableObjectEventPublisher.d.ts.map +1 -0
- package/dist/infrastructure/events/DurableObjectEventPublisher.js +64 -0
- package/dist/infrastructure/events/DurableObjectEventPublisher.js.map +1 -0
- package/dist/infrastructure/events/InAppNotificationChannel.d.ts +19 -0
- package/dist/infrastructure/events/InAppNotificationChannel.d.ts.map +1 -0
- package/dist/infrastructure/events/InAppNotificationChannel.js +22 -0
- package/dist/infrastructure/events/InAppNotificationChannel.js.map +1 -0
- package/dist/infrastructure/gateways/DoRealtimeGateway.d.ts +15 -0
- package/dist/infrastructure/gateways/DoRealtimeGateway.d.ts.map +1 -0
- package/dist/infrastructure/gateways/DoRealtimeGateway.js +20 -0
- package/dist/infrastructure/gateways/DoRealtimeGateway.js.map +1 -0
- package/dist/infrastructure/gateways/GitHubGateways.d.ts +27 -0
- package/dist/infrastructure/gateways/GitHubGateways.d.ts.map +1 -0
- package/dist/infrastructure/gateways/GitHubGateways.js +48 -0
- package/dist/infrastructure/gateways/GitHubGateways.js.map +1 -0
- package/dist/infrastructure/github/FetchGitHubClient.d.ts +2 -0
- package/dist/infrastructure/github/FetchGitHubClient.d.ts.map +1 -0
- package/dist/infrastructure/github/FetchGitHubClient.js +4 -0
- package/dist/infrastructure/github/FetchGitHubClient.js.map +1 -0
- package/dist/infrastructure/github/FetchGitHubProvisioningClient.d.ts +2 -0
- package/dist/infrastructure/github/FetchGitHubProvisioningClient.d.ts.map +1 -0
- package/dist/infrastructure/github/FetchGitHubProvisioningClient.js +5 -0
- package/dist/infrastructure/github/FetchGitHubProvisioningClient.js.map +1 -0
- package/dist/infrastructure/github/GitHubAppAuth.d.ts +2 -0
- package/dist/infrastructure/github/GitHubAppAuth.d.ts.map +1 -0
- package/dist/infrastructure/github/GitHubAppAuth.js +5 -0
- package/dist/infrastructure/github/GitHubAppAuth.js.map +1 -0
- package/dist/infrastructure/github/GitHubAppRegistry.d.ts +2 -0
- package/dist/infrastructure/github/GitHubAppRegistry.d.ts.map +1 -0
- package/dist/infrastructure/github/GitHubAppRegistry.js +4 -0
- package/dist/infrastructure/github/GitHubAppRegistry.js.map +1 -0
- package/dist/infrastructure/github/GitHubCiStatusProvider.d.ts +2 -0
- package/dist/infrastructure/github/GitHubCiStatusProvider.d.ts.map +1 -0
- package/dist/infrastructure/github/GitHubCiStatusProvider.js +4 -0
- package/dist/infrastructure/github/GitHubCiStatusProvider.js.map +1 -0
- package/dist/infrastructure/github/GitHubMergeabilityProvider.d.ts +2 -0
- package/dist/infrastructure/github/GitHubMergeabilityProvider.d.ts.map +1 -0
- package/dist/infrastructure/github/GitHubMergeabilityProvider.js +4 -0
- package/dist/infrastructure/github/GitHubMergeabilityProvider.js.map +1 -0
- package/dist/infrastructure/github/GitHubPullRequestMerger.d.ts +2 -0
- package/dist/infrastructure/github/GitHubPullRequestMerger.d.ts.map +1 -0
- package/dist/infrastructure/github/GitHubPullRequestMerger.js +4 -0
- package/dist/infrastructure/github/GitHubPullRequestMerger.js.map +1 -0
- package/dist/infrastructure/github/WebCryptoWebhookVerifier.d.ts +2 -0
- package/dist/infrastructure/github/WebCryptoWebhookVerifier.d.ts.map +1 -0
- package/dist/infrastructure/github/WebCryptoWebhookVerifier.js +5 -0
- package/dist/infrastructure/github/WebCryptoWebhookVerifier.js.map +1 -0
- package/dist/infrastructure/github/encoding.d.ts +2 -0
- package/dist/infrastructure/github/encoding.d.ts.map +1 -0
- package/dist/infrastructure/github/encoding.js +3 -0
- package/dist/infrastructure/github/encoding.js.map +1 -0
- package/dist/infrastructure/github/state.d.ts +2 -0
- package/dist/infrastructure/github/state.d.ts.map +1 -0
- package/dist/infrastructure/github/state.js +3 -0
- package/dist/infrastructure/github/state.js.map +1 -0
- package/dist/infrastructure/github/sync-consumer.d.ts +16 -0
- package/dist/infrastructure/github/sync-consumer.d.ts.map +1 -0
- package/dist/infrastructure/github/sync-consumer.js +130 -0
- package/dist/infrastructure/github/sync-consumer.js.map +1 -0
- package/dist/infrastructure/http/errorHandler.d.ts +2 -0
- package/dist/infrastructure/http/errorHandler.d.ts.map +1 -0
- package/dist/infrastructure/http/errorHandler.js +3 -0
- package/dist/infrastructure/http/errorHandler.js.map +1 -0
- package/dist/infrastructure/http/params.d.ts +2 -0
- package/dist/infrastructure/http/params.d.ts.map +1 -0
- package/dist/infrastructure/http/params.js +3 -0
- package/dist/infrastructure/http/params.js.map +1 -0
- package/dist/infrastructure/http/types.d.ts +12 -0
- package/dist/infrastructure/http/types.d.ts.map +1 -0
- package/dist/infrastructure/http/types.js +2 -0
- package/dist/infrastructure/http/types.js.map +1 -0
- package/dist/infrastructure/http/validation.d.ts +2 -0
- package/dist/infrastructure/http/validation.d.ts.map +1 -0
- package/dist/infrastructure/http/validation.js +3 -0
- package/dist/infrastructure/http/validation.js.map +1 -0
- package/dist/infrastructure/observability/logger.d.ts +3 -0
- package/dist/infrastructure/observability/logger.d.ts.map +1 -0
- package/dist/infrastructure/observability/logger.js +4 -0
- package/dist/infrastructure/observability/logger.js.map +1 -0
- package/dist/infrastructure/repositories/D1AccountInvitationRepository.d.ts +15 -0
- package/dist/infrastructure/repositories/D1AccountInvitationRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1AccountInvitationRepository.js +63 -0
- package/dist/infrastructure/repositories/D1AccountInvitationRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1AccountRepository.d.ts +15 -0
- package/dist/infrastructure/repositories/D1AccountRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1AccountRepository.js +52 -0
- package/dist/infrastructure/repositories/D1AccountRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1AgentRunRepository.d.ts +18 -0
- package/dist/infrastructure/repositories/D1AgentRunRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1AgentRunRepository.js +34 -0
- package/dist/infrastructure/repositories/D1AgentRunRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1BlockRepository.d.ts +23 -0
- package/dist/infrastructure/repositories/D1BlockRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1BlockRepository.js +101 -0
- package/dist/infrastructure/repositories/D1BlockRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1BootstrapJobRepository.d.ts +16 -0
- package/dist/infrastructure/repositories/D1BootstrapJobRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1BootstrapJobRepository.js +209 -0
- package/dist/infrastructure/repositories/D1BootstrapJobRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1BranchProjectionRepository.d.ts +12 -0
- package/dist/infrastructure/repositories/D1BranchProjectionRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1BranchProjectionRepository.js +29 -0
- package/dist/infrastructure/repositories/D1BranchProjectionRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1CheckRunProjectionRepository.d.ts +12 -0
- package/dist/infrastructure/repositories/D1CheckRunProjectionRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1CheckRunProjectionRepository.js +29 -0
- package/dist/infrastructure/repositories/D1CheckRunProjectionRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1ClarityReviewRepository.d.ts +19 -0
- package/dist/infrastructure/repositories/D1ClarityReviewRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1ClarityReviewRepository.js +75 -0
- package/dist/infrastructure/repositories/D1ClarityReviewRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1CommitProjectionRepository.d.ts +13 -0
- package/dist/infrastructure/repositories/D1CommitProjectionRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1CommitProjectionRepository.js +48 -0
- package/dist/infrastructure/repositories/D1CommitProjectionRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1ConsensusSessionRepository.d.ts +19 -0
- package/dist/infrastructure/repositories/D1ConsensusSessionRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1ConsensusSessionRepository.js +88 -0
- package/dist/infrastructure/repositories/D1ConsensusSessionRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1DatadogConnectionRepository.d.ts +17 -0
- package/dist/infrastructure/repositories/D1DatadogConnectionRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1DatadogConnectionRepository.js +47 -0
- package/dist/infrastructure/repositories/D1DatadogConnectionRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1DocumentConnectionRepository.d.ts +27 -0
- package/dist/infrastructure/repositories/D1DocumentConnectionRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1DocumentConnectionRepository.js +89 -0
- package/dist/infrastructure/repositories/D1DocumentConnectionRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1DocumentRepository.d.ts +15 -0
- package/dist/infrastructure/repositories/D1DocumentRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1DocumentRepository.js +66 -0
- package/dist/infrastructure/repositories/D1DocumentRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1EmailConnectionRepository.d.ts +13 -0
- package/dist/infrastructure/repositories/D1EmailConnectionRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1EmailConnectionRepository.js +46 -0
- package/dist/infrastructure/repositories/D1EmailConnectionRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1EnvironmentConnectionRepository.d.ts +13 -0
- package/dist/infrastructure/repositories/D1EnvironmentConnectionRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1EnvironmentConnectionRepository.js +48 -0
- package/dist/infrastructure/repositories/D1EnvironmentConnectionRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1EnvironmentRegistryRepository.d.ts +17 -0
- package/dist/infrastructure/repositories/D1EnvironmentRegistryRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1EnvironmentRegistryRepository.js +95 -0
- package/dist/infrastructure/repositories/D1EnvironmentRegistryRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1ExecutionRepository.d.ts +28 -0
- package/dist/infrastructure/repositories/D1ExecutionRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1ExecutionRepository.js +113 -0
- package/dist/infrastructure/repositories/D1ExecutionRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1FragmentSourceRepository.d.ts +15 -0
- package/dist/infrastructure/repositories/D1FragmentSourceRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1FragmentSourceRepository.js +66 -0
- package/dist/infrastructure/repositories/D1FragmentSourceRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1GitHubInstallationRepository.d.ts +17 -0
- package/dist/infrastructure/repositories/D1GitHubInstallationRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1GitHubInstallationRepository.js +79 -0
- package/dist/infrastructure/repositories/D1GitHubInstallationRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1IssueProjectionRepository.d.ts +13 -0
- package/dist/infrastructure/repositories/D1IssueProjectionRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1IssueProjectionRepository.js +36 -0
- package/dist/infrastructure/repositories/D1IssueProjectionRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1LiveContainerRepository.d.ts +17 -0
- package/dist/infrastructure/repositories/D1LiveContainerRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1LiveContainerRepository.js +40 -0
- package/dist/infrastructure/repositories/D1LiveContainerRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1LlmCallMetricRepository.d.ts +15 -0
- package/dist/infrastructure/repositories/D1LlmCallMetricRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1LlmCallMetricRepository.js +123 -0
- package/dist/infrastructure/repositories/D1LlmCallMetricRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1LocalModelEndpointRepository.d.ts +15 -0
- package/dist/infrastructure/repositories/D1LocalModelEndpointRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1LocalModelEndpointRepository.js +63 -0
- package/dist/infrastructure/repositories/D1LocalModelEndpointRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1MembershipRepository.d.ts +15 -0
- package/dist/infrastructure/repositories/D1MembershipRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1MembershipRepository.js +58 -0
- package/dist/infrastructure/repositories/D1MembershipRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1MergePresetRepository.d.ts +21 -0
- package/dist/infrastructure/repositories/D1MergePresetRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1MergePresetRepository.js +88 -0
- package/dist/infrastructure/repositories/D1MergePresetRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1ModelDefaultsRepository.d.ts +18 -0
- package/dist/infrastructure/repositories/D1ModelDefaultsRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1ModelDefaultsRepository.js +47 -0
- package/dist/infrastructure/repositories/D1ModelDefaultsRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1NotificationRepository.d.ts +20 -0
- package/dist/infrastructure/repositories/D1NotificationRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1NotificationRepository.js +81 -0
- package/dist/infrastructure/repositories/D1NotificationRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1PersonalSubscriptionRepository.d.ts +28 -0
- package/dist/infrastructure/repositories/D1PersonalSubscriptionRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1PersonalSubscriptionRepository.js +142 -0
- package/dist/infrastructure/repositories/D1PersonalSubscriptionRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1PipelineRepository.d.ts +15 -0
- package/dist/infrastructure/repositories/D1PipelineRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1PipelineRepository.js +46 -0
- package/dist/infrastructure/repositories/D1PipelineRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1PipelineScheduleRepository.d.ts +26 -0
- package/dist/infrastructure/repositories/D1PipelineScheduleRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1PipelineScheduleRepository.js +192 -0
- package/dist/infrastructure/repositories/D1PipelineScheduleRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1PromptFragmentRepository.d.ts +15 -0
- package/dist/infrastructure/repositories/D1PromptFragmentRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1PromptFragmentRepository.js +90 -0
- package/dist/infrastructure/repositories/D1PromptFragmentRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1ProviderApiKeyRepository.d.ts +21 -0
- package/dist/infrastructure/repositories/D1ProviderApiKeyRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1ProviderApiKeyRepository.js +108 -0
- package/dist/infrastructure/repositories/D1ProviderApiKeyRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1ProviderSubscriptionTokenRepository.d.ts +19 -0
- package/dist/infrastructure/repositories/D1ProviderSubscriptionTokenRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1ProviderSubscriptionTokenRepository.js +78 -0
- package/dist/infrastructure/repositories/D1ProviderSubscriptionTokenRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1PullRequestProjectionRepository.d.ts +13 -0
- package/dist/infrastructure/repositories/D1PullRequestProjectionRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1PullRequestProjectionRepository.js +32 -0
- package/dist/infrastructure/repositories/D1PullRequestProjectionRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1RateLimitRepository.d.ts +18 -0
- package/dist/infrastructure/repositories/D1RateLimitRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1RateLimitRepository.js +30 -0
- package/dist/infrastructure/repositories/D1RateLimitRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1ReferenceArchitectureRepository.d.ts +15 -0
- package/dist/infrastructure/repositories/D1ReferenceArchitectureRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1ReferenceArchitectureRepository.js +77 -0
- package/dist/infrastructure/repositories/D1ReferenceArchitectureRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1ReleaseHealthConfigRepository.d.ts +17 -0
- package/dist/infrastructure/repositories/D1ReleaseHealthConfigRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1ReleaseHealthConfigRepository.js +64 -0
- package/dist/infrastructure/repositories/D1ReleaseHealthConfigRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1RepoBlueprintRepository.d.ts +20 -0
- package/dist/infrastructure/repositories/D1RepoBlueprintRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1RepoBlueprintRepository.js +64 -0
- package/dist/infrastructure/repositories/D1RepoBlueprintRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1RepoProjectionRepository.d.ts +20 -0
- package/dist/infrastructure/repositories/D1RepoProjectionRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1RepoProjectionRepository.js +121 -0
- package/dist/infrastructure/repositories/D1RepoProjectionRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1RequirementReviewRepository.d.ts +20 -0
- package/dist/infrastructure/repositories/D1RequirementReviewRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1RequirementReviewRepository.js +76 -0
- package/dist/infrastructure/repositories/D1RequirementReviewRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1RunnerPoolConnectionRepository.d.ts +13 -0
- package/dist/infrastructure/repositories/D1RunnerPoolConnectionRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1RunnerPoolConnectionRepository.js +48 -0
- package/dist/infrastructure/repositories/D1RunnerPoolConnectionRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1ServiceFragmentDefaultsRepository.d.ts +16 -0
- package/dist/infrastructure/repositories/D1ServiceFragmentDefaultsRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1ServiceFragmentDefaultsRepository.js +27 -0
- package/dist/infrastructure/repositories/D1ServiceFragmentDefaultsRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1ServiceRepository.d.ts +19 -0
- package/dist/infrastructure/repositories/D1ServiceRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1ServiceRepository.js +114 -0
- package/dist/infrastructure/repositories/D1ServiceRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1SlackRepositories.d.ts +29 -0
- package/dist/infrastructure/repositories/D1SlackRepositories.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1SlackRepositories.js +119 -0
- package/dist/infrastructure/repositories/D1SlackRepositories.js.map +1 -0
- package/dist/infrastructure/repositories/D1TaskConnectionRepository.d.ts +27 -0
- package/dist/infrastructure/repositories/D1TaskConnectionRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1TaskConnectionRepository.js +89 -0
- package/dist/infrastructure/repositories/D1TaskConnectionRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1TaskRepository.d.ts +15 -0
- package/dist/infrastructure/repositories/D1TaskRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1TaskRepository.js +90 -0
- package/dist/infrastructure/repositories/D1TaskRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1TokenUsageRepository.d.ts +13 -0
- package/dist/infrastructure/repositories/D1TokenUsageRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1TokenUsageRepository.js +41 -0
- package/dist/infrastructure/repositories/D1TokenUsageRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1TrackerSettingsRepository.d.ts +12 -0
- package/dist/infrastructure/repositories/D1TrackerSettingsRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1TrackerSettingsRepository.js +32 -0
- package/dist/infrastructure/repositories/D1TrackerSettingsRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1UserRepository.d.ts +19 -0
- package/dist/infrastructure/repositories/D1UserRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1UserRepository.js +108 -0
- package/dist/infrastructure/repositories/D1UserRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1WorkspaceMountRepository.d.ts +19 -0
- package/dist/infrastructure/repositories/D1WorkspaceMountRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1WorkspaceMountRepository.js +115 -0
- package/dist/infrastructure/repositories/D1WorkspaceMountRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1WorkspaceRepository.d.ts +18 -0
- package/dist/infrastructure/repositories/D1WorkspaceRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1WorkspaceRepository.js +77 -0
- package/dist/infrastructure/repositories/D1WorkspaceRepository.js.map +1 -0
- package/dist/infrastructure/repositories/D1WorkspaceSettingsRepository.d.ts +17 -0
- package/dist/infrastructure/repositories/D1WorkspaceSettingsRepository.d.ts.map +1 -0
- package/dist/infrastructure/repositories/D1WorkspaceSettingsRepository.js +50 -0
- package/dist/infrastructure/repositories/D1WorkspaceSettingsRepository.js.map +1 -0
- package/dist/infrastructure/repositories/chunk.d.ts +11 -0
- package/dist/infrastructure/repositories/chunk.d.ts.map +1 -0
- package/dist/infrastructure/repositories/chunk.js +17 -0
- package/dist/infrastructure/repositories/chunk.js.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/branch.d.ts +11 -0
- package/dist/infrastructure/repositories/github-mappers/branch.d.ts.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/branch.js +22 -0
- package/dist/infrastructure/repositories/github-mappers/branch.js.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/check-run.d.ts +13 -0
- package/dist/infrastructure/repositories/github-mappers/check-run.d.ts.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/check-run.js +24 -0
- package/dist/infrastructure/repositories/github-mappers/check-run.js.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/commit.d.ts +12 -0
- package/dist/infrastructure/repositories/github-mappers/commit.d.ts.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/commit.js +22 -0
- package/dist/infrastructure/repositories/github-mappers/commit.js.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/index.d.ts +11 -0
- package/dist/infrastructure/repositories/github-mappers/index.d.ts.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/index.js +14 -0
- package/dist/infrastructure/repositories/github-mappers/index.js.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/installation.d.ts +16 -0
- package/dist/infrastructure/repositories/github-mappers/installation.d.ts.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/installation.js +29 -0
- package/dist/infrastructure/repositories/github-mappers/installation.js.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/issue.d.ts +15 -0
- package/dist/infrastructure/repositories/github-mappers/issue.d.ts.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/issue.js +29 -0
- package/dist/infrastructure/repositories/github-mappers/issue.js.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/pull-request.d.ts +18 -0
- package/dist/infrastructure/repositories/github-mappers/pull-request.d.ts.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/pull-request.js +36 -0
- package/dist/infrastructure/repositories/github-mappers/pull-request.js.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/repo.d.ts +15 -0
- package/dist/infrastructure/repositories/github-mappers/repo.d.ts.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/repo.js +31 -0
- package/dist/infrastructure/repositories/github-mappers/repo.js.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/serialize.d.ts +3 -0
- package/dist/infrastructure/repositories/github-mappers/serialize.d.ts.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/serialize.js +4 -0
- package/dist/infrastructure/repositories/github-mappers/serialize.js.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/sync-cursor.d.ts +8 -0
- package/dist/infrastructure/repositories/github-mappers/sync-cursor.d.ts.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/sync-cursor.js +4 -0
- package/dist/infrastructure/repositories/github-mappers/sync-cursor.js.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/upsert.d.ts +11 -0
- package/dist/infrastructure/repositories/github-mappers/upsert.d.ts.map +1 -0
- package/dist/infrastructure/repositories/github-mappers/upsert.js +18 -0
- package/dist/infrastructure/repositories/github-mappers/upsert.js.map +1 -0
- package/dist/infrastructure/repositories/mappers.d.ts +2 -0
- package/dist/infrastructure/repositories/mappers.d.ts.map +1 -0
- package/dist/infrastructure/repositories/mappers.js +4 -0
- package/dist/infrastructure/repositories/mappers.js.map +1 -0
- package/dist/infrastructure/runners/HttpRunnerPoolProvider.d.ts +2 -0
- package/dist/infrastructure/runners/HttpRunnerPoolProvider.d.ts.map +1 -0
- package/dist/infrastructure/runners/HttpRunnerPoolProvider.js +5 -0
- package/dist/infrastructure/runners/HttpRunnerPoolProvider.js.map +1 -0
- package/dist/infrastructure/runners/RunnerPoolTransport.d.ts +2 -0
- package/dist/infrastructure/runners/RunnerPoolTransport.d.ts.map +1 -0
- package/dist/infrastructure/runners/RunnerPoolTransport.js +5 -0
- package/dist/infrastructure/runners/RunnerPoolTransport.js.map +1 -0
- package/dist/infrastructure/runtime.d.ts +8 -0
- package/dist/infrastructure/runtime.d.ts.map +1 -0
- package/dist/infrastructure/runtime.js +13 -0
- package/dist/infrastructure/runtime.js.map +1 -0
- package/dist/infrastructure/tasks/GitHubIssuesProvider.d.ts +50 -0
- package/dist/infrastructure/tasks/GitHubIssuesProvider.d.ts.map +1 -0
- package/dist/infrastructure/tasks/GitHubIssuesProvider.js +91 -0
- package/dist/infrastructure/tasks/GitHubIssuesProvider.js.map +1 -0
- package/dist/infrastructure/tasks/JiraProvider.d.ts +29 -0
- package/dist/infrastructure/tasks/JiraProvider.d.ts.map +1 -0
- package/dist/infrastructure/tasks/JiraProvider.js +109 -0
- package/dist/infrastructure/tasks/JiraProvider.js.map +1 -0
- package/dist/infrastructure/workflows/BootstrapWorkflow.d.ts +21 -0
- package/dist/infrastructure/workflows/BootstrapWorkflow.d.ts.map +1 -0
- package/dist/infrastructure/workflows/BootstrapWorkflow.js +72 -0
- package/dist/infrastructure/workflows/BootstrapWorkflow.js.map +1 -0
- package/dist/infrastructure/workflows/ExecutionWorkflow.d.ts +15 -0
- package/dist/infrastructure/workflows/ExecutionWorkflow.d.ts.map +1 -0
- package/dist/infrastructure/workflows/ExecutionWorkflow.js +169 -0
- package/dist/infrastructure/workflows/ExecutionWorkflow.js.map +1 -0
- package/dist/infrastructure/workflows/GitHubBackfillWorkflow.d.ts +17 -0
- package/dist/infrastructure/workflows/GitHubBackfillWorkflow.d.ts.map +1 -0
- package/dist/infrastructure/workflows/GitHubBackfillWorkflow.js +24 -0
- package/dist/infrastructure/workflows/GitHubBackfillWorkflow.js.map +1 -0
- package/dist/infrastructure/workflows/WorkflowsBootstrapRunner.d.ts +15 -0
- package/dist/infrastructure/workflows/WorkflowsBootstrapRunner.d.ts.map +1 -0
- package/dist/infrastructure/workflows/WorkflowsBootstrapRunner.js +34 -0
- package/dist/infrastructure/workflows/WorkflowsBootstrapRunner.js.map +1 -0
- package/dist/infrastructure/workflows/WorkflowsWorkRunner.d.ts +31 -0
- package/dist/infrastructure/workflows/WorkflowsWorkRunner.d.ts.map +1 -0
- package/dist/infrastructure/workflows/WorkflowsWorkRunner.js +55 -0
- package/dist/infrastructure/workflows/WorkflowsWorkRunner.js.map +1 -0
- package/dist/infrastructure/workflows/retention.d.ts +35 -0
- package/dist/infrastructure/workflows/retention.d.ts.map +1 -0
- package/dist/infrastructure/workflows/retention.js +26 -0
- package/dist/infrastructure/workflows/retention.js.map +1 -0
- package/dist/infrastructure/workflows/sweeper.d.ts +57 -0
- package/dist/infrastructure/workflows/sweeper.d.ts.map +1 -0
- package/dist/infrastructure/workflows/sweeper.js +62 -0
- package/dist/infrastructure/workflows/sweeper.js.map +1 -0
- package/migrations/0001_init.sql +677 -0
- package/migrations/0002_clarity_reviews.sql +19 -0
- package/migrations/0002_consensus.sql +38 -0
- package/migrations/0002_llm_reasoning_text.sql +6 -0
- package/migrations/0002_local_model_endpoints.sql +16 -0
- package/migrations/0003_pipeline_labels_archive.sql +13 -0
- package/migrations/0003_release_health.sql +34 -0
- package/migrations/0004_run_timing_task_types.sql +24 -0
- package/package.json +65 -0
|
@@ -0,0 +1,677 @@
|
|
|
1
|
+
-- Squashed schema (final state of migrations 0001..0041 as of 2026-06-22).
|
|
2
|
+
-- Pre-1.0, no production data preserved; incremental history collapsed into one init.
|
|
3
|
+
|
|
4
|
+
PRAGMA defer_foreign_keys=TRUE;
|
|
5
|
+
CREATE TABLE workspaces (
|
|
6
|
+
id TEXT NOT NULL PRIMARY KEY,
|
|
7
|
+
name TEXT NOT NULL,
|
|
8
|
+
created_at INTEGER NOT NULL
|
|
9
|
+
, owner_user_id INTEGER, account_id TEXT, description TEXT);
|
|
10
|
+
CREATE TABLE blocks (
|
|
11
|
+
workspace_id TEXT NOT NULL,
|
|
12
|
+
id TEXT NOT NULL,
|
|
13
|
+
title TEXT NOT NULL,
|
|
14
|
+
type TEXT NOT NULL,
|
|
15
|
+
description TEXT NOT NULL DEFAULT '',
|
|
16
|
+
pos_x REAL NOT NULL DEFAULT 0,
|
|
17
|
+
pos_y REAL NOT NULL DEFAULT 0,
|
|
18
|
+
status TEXT NOT NULL,
|
|
19
|
+
progress REAL NOT NULL DEFAULT 0,
|
|
20
|
+
depends_on TEXT NOT NULL DEFAULT '[]',
|
|
21
|
+
execution_id TEXT,
|
|
22
|
+
level TEXT NOT NULL DEFAULT 'frame',
|
|
23
|
+
parent_id TEXT,
|
|
24
|
+
confidence REAL,
|
|
25
|
+
module_name TEXT,
|
|
26
|
+
fragment_ids TEXT, model_id TEXT, pull_request TEXT, merge_preset_id TEXT, pipeline_id TEXT, width REAL, height REAL, service_id TEXT, created_by INTEGER, agent_config TEXT, test_compose_path TEXT, no_infra_dependencies INTEGER, cloud_provider TEXT, instance_size TEXT, service_fragment_ids TEXT,
|
|
27
|
+
-- The account member (a product role-holder) responsible for a task; notified when
|
|
28
|
+
-- requirement review flags findings. Null when unassigned.
|
|
29
|
+
responsible_product_user_id TEXT,
|
|
30
|
+
PRIMARY KEY (workspace_id, id)
|
|
31
|
+
);
|
|
32
|
+
CREATE TABLE pipelines (
|
|
33
|
+
workspace_id TEXT NOT NULL,
|
|
34
|
+
id TEXT NOT NULL,
|
|
35
|
+
name TEXT NOT NULL,
|
|
36
|
+
agent_kinds TEXT NOT NULL DEFAULT '[]', gates TEXT, thresholds TEXT,
|
|
37
|
+
-- enabled: nullable JSON array of per-step enable flags, parallel to agent_kinds; a
|
|
38
|
+
-- step whose flag is false is kept in the pipeline but skipped at run start.
|
|
39
|
+
-- builtin: 1 for the curated seedPipelines() catalog templates (read-only — clone to
|
|
40
|
+
-- edit), NULL for user-created and cloned pipelines.
|
|
41
|
+
enabled TEXT,
|
|
42
|
+
builtin INTEGER,
|
|
43
|
+
PRIMARY KEY (workspace_id, id)
|
|
44
|
+
);
|
|
45
|
+
CREATE TABLE token_usage (
|
|
46
|
+
id TEXT NOT NULL PRIMARY KEY,
|
|
47
|
+
workspace_id TEXT NOT NULL,
|
|
48
|
+
execution_id TEXT,
|
|
49
|
+
agent_kind TEXT NOT NULL,
|
|
50
|
+
provider TEXT NOT NULL,
|
|
51
|
+
model TEXT NOT NULL,
|
|
52
|
+
input_tokens INTEGER NOT NULL DEFAULT 0,
|
|
53
|
+
output_tokens INTEGER NOT NULL DEFAULT 0,
|
|
54
|
+
cost_estimate REAL NOT NULL DEFAULT 0,
|
|
55
|
+
created_at INTEGER NOT NULL
|
|
56
|
+
);
|
|
57
|
+
CREATE TABLE github_installations (
|
|
58
|
+
installation_id INTEGER NOT NULL PRIMARY KEY,
|
|
59
|
+
workspace_id TEXT NOT NULL,
|
|
60
|
+
account_login TEXT NOT NULL,
|
|
61
|
+
target_type TEXT NOT NULL,
|
|
62
|
+
cached_token TEXT,
|
|
63
|
+
token_expires_at INTEGER,
|
|
64
|
+
created_at INTEGER NOT NULL,
|
|
65
|
+
deleted_at INTEGER
|
|
66
|
+
, account_id TEXT, app_id TEXT);
|
|
67
|
+
CREATE TABLE github_repos (
|
|
68
|
+
workspace_id TEXT NOT NULL,
|
|
69
|
+
github_id INTEGER NOT NULL,
|
|
70
|
+
installation_id INTEGER NOT NULL,
|
|
71
|
+
owner TEXT NOT NULL,
|
|
72
|
+
name TEXT NOT NULL,
|
|
73
|
+
default_branch TEXT,
|
|
74
|
+
private INTEGER NOT NULL DEFAULT 0,
|
|
75
|
+
block_id TEXT,
|
|
76
|
+
-- A monorepo-flagged repo can back more than one board service, each pinned to its
|
|
77
|
+
-- own subdirectory (see services.directory).
|
|
78
|
+
is_monorepo INTEGER NOT NULL DEFAULT 0,
|
|
79
|
+
etag TEXT,
|
|
80
|
+
synced_at INTEGER NOT NULL,
|
|
81
|
+
deleted_at INTEGER,
|
|
82
|
+
PRIMARY KEY (workspace_id, github_id)
|
|
83
|
+
);
|
|
84
|
+
CREATE TABLE github_branches (
|
|
85
|
+
workspace_id TEXT NOT NULL,
|
|
86
|
+
repo_github_id INTEGER NOT NULL,
|
|
87
|
+
name TEXT NOT NULL,
|
|
88
|
+
head_sha TEXT NOT NULL,
|
|
89
|
+
protected INTEGER NOT NULL DEFAULT 0,
|
|
90
|
+
synced_at INTEGER NOT NULL,
|
|
91
|
+
deleted_at INTEGER,
|
|
92
|
+
PRIMARY KEY (workspace_id, repo_github_id, name)
|
|
93
|
+
);
|
|
94
|
+
CREATE TABLE github_pull_requests (
|
|
95
|
+
workspace_id TEXT NOT NULL,
|
|
96
|
+
repo_github_id INTEGER NOT NULL,
|
|
97
|
+
number INTEGER NOT NULL,
|
|
98
|
+
github_id INTEGER NOT NULL,
|
|
99
|
+
title TEXT NOT NULL,
|
|
100
|
+
state TEXT NOT NULL,
|
|
101
|
+
head_ref TEXT,
|
|
102
|
+
base_ref TEXT,
|
|
103
|
+
head_sha TEXT,
|
|
104
|
+
merged INTEGER NOT NULL DEFAULT 0,
|
|
105
|
+
author TEXT,
|
|
106
|
+
gh_updated_at INTEGER,
|
|
107
|
+
synced_at INTEGER NOT NULL,
|
|
108
|
+
deleted_at INTEGER,
|
|
109
|
+
PRIMARY KEY (workspace_id, repo_github_id, number)
|
|
110
|
+
);
|
|
111
|
+
CREATE TABLE github_issues (
|
|
112
|
+
workspace_id TEXT NOT NULL,
|
|
113
|
+
repo_github_id INTEGER NOT NULL,
|
|
114
|
+
number INTEGER NOT NULL,
|
|
115
|
+
github_id INTEGER NOT NULL,
|
|
116
|
+
title TEXT NOT NULL,
|
|
117
|
+
state TEXT NOT NULL,
|
|
118
|
+
author TEXT,
|
|
119
|
+
labels TEXT NOT NULL DEFAULT '[]',
|
|
120
|
+
gh_updated_at INTEGER,
|
|
121
|
+
synced_at INTEGER NOT NULL,
|
|
122
|
+
deleted_at INTEGER,
|
|
123
|
+
PRIMARY KEY (workspace_id, repo_github_id, number)
|
|
124
|
+
);
|
|
125
|
+
CREATE TABLE github_commits (
|
|
126
|
+
workspace_id TEXT NOT NULL,
|
|
127
|
+
repo_github_id INTEGER NOT NULL,
|
|
128
|
+
sha TEXT NOT NULL,
|
|
129
|
+
message TEXT NOT NULL,
|
|
130
|
+
author TEXT,
|
|
131
|
+
authored_at INTEGER,
|
|
132
|
+
synced_at INTEGER NOT NULL,
|
|
133
|
+
PRIMARY KEY (workspace_id, repo_github_id, sha)
|
|
134
|
+
);
|
|
135
|
+
CREATE TABLE github_check_runs (
|
|
136
|
+
workspace_id TEXT NOT NULL,
|
|
137
|
+
repo_github_id INTEGER NOT NULL,
|
|
138
|
+
github_id INTEGER NOT NULL,
|
|
139
|
+
head_sha TEXT NOT NULL,
|
|
140
|
+
name TEXT NOT NULL,
|
|
141
|
+
status TEXT NOT NULL,
|
|
142
|
+
conclusion TEXT,
|
|
143
|
+
synced_at INTEGER NOT NULL,
|
|
144
|
+
PRIMARY KEY (workspace_id, repo_github_id, github_id)
|
|
145
|
+
);
|
|
146
|
+
CREATE TABLE github_rate_limits (
|
|
147
|
+
id TEXT NOT NULL PRIMARY KEY,
|
|
148
|
+
installation_id INTEGER NOT NULL,
|
|
149
|
+
resource TEXT NOT NULL,
|
|
150
|
+
limit_total INTEGER,
|
|
151
|
+
remaining INTEGER,
|
|
152
|
+
reset_at INTEGER,
|
|
153
|
+
observed_at INTEGER NOT NULL
|
|
154
|
+
);
|
|
155
|
+
CREATE TABLE environment_connections (
|
|
156
|
+
workspace_id TEXT NOT NULL,
|
|
157
|
+
provider_id TEXT NOT NULL,
|
|
158
|
+
label TEXT NOT NULL,
|
|
159
|
+
base_url TEXT NOT NULL,
|
|
160
|
+
manifest_json TEXT NOT NULL,
|
|
161
|
+
secrets_cipher TEXT NOT NULL,
|
|
162
|
+
created_at INTEGER NOT NULL,
|
|
163
|
+
deleted_at INTEGER,
|
|
164
|
+
PRIMARY KEY (workspace_id, provider_id)
|
|
165
|
+
);
|
|
166
|
+
CREATE TABLE environments (
|
|
167
|
+
id TEXT NOT NULL PRIMARY KEY,
|
|
168
|
+
workspace_id TEXT NOT NULL,
|
|
169
|
+
block_id TEXT,
|
|
170
|
+
execution_id TEXT,
|
|
171
|
+
provider_id TEXT NOT NULL,
|
|
172
|
+
external_id TEXT,
|
|
173
|
+
url TEXT,
|
|
174
|
+
status TEXT NOT NULL,
|
|
175
|
+
access_cipher TEXT,
|
|
176
|
+
provision_fields_cipher TEXT,
|
|
177
|
+
created_at INTEGER NOT NULL,
|
|
178
|
+
expires_at INTEGER,
|
|
179
|
+
last_error TEXT,
|
|
180
|
+
deleted_at INTEGER
|
|
181
|
+
);
|
|
182
|
+
CREATE TABLE reference_architectures (
|
|
183
|
+
id TEXT NOT NULL PRIMARY KEY,
|
|
184
|
+
workspace_id TEXT NOT NULL,
|
|
185
|
+
name TEXT NOT NULL,
|
|
186
|
+
description TEXT NOT NULL DEFAULT '',
|
|
187
|
+
repo_owner TEXT NOT NULL,
|
|
188
|
+
repo_name TEXT NOT NULL,
|
|
189
|
+
default_instructions TEXT NOT NULL DEFAULT '',
|
|
190
|
+
created_at INTEGER NOT NULL,
|
|
191
|
+
updated_at INTEGER NOT NULL,
|
|
192
|
+
deleted_at INTEGER
|
|
193
|
+
);
|
|
194
|
+
CREATE TABLE document_connections (
|
|
195
|
+
workspace_id TEXT NOT NULL,
|
|
196
|
+
source TEXT NOT NULL,
|
|
197
|
+
credentials TEXT NOT NULL,
|
|
198
|
+
label TEXT NOT NULL DEFAULT '',
|
|
199
|
+
created_at INTEGER NOT NULL,
|
|
200
|
+
deleted_at INTEGER,
|
|
201
|
+
PRIMARY KEY (workspace_id, source)
|
|
202
|
+
);
|
|
203
|
+
CREATE TABLE documents (
|
|
204
|
+
workspace_id TEXT NOT NULL,
|
|
205
|
+
source TEXT NOT NULL,
|
|
206
|
+
external_id TEXT NOT NULL,
|
|
207
|
+
title TEXT NOT NULL,
|
|
208
|
+
url TEXT NOT NULL,
|
|
209
|
+
excerpt TEXT NOT NULL DEFAULT '',
|
|
210
|
+
body TEXT NOT NULL DEFAULT '',
|
|
211
|
+
linked_block_id TEXT,
|
|
212
|
+
synced_at INTEGER NOT NULL,
|
|
213
|
+
deleted_at INTEGER,
|
|
214
|
+
PRIMARY KEY (workspace_id, source, external_id)
|
|
215
|
+
);
|
|
216
|
+
CREATE TABLE runner_pool_connections (
|
|
217
|
+
workspace_id TEXT NOT NULL,
|
|
218
|
+
provider_id TEXT NOT NULL,
|
|
219
|
+
label TEXT NOT NULL,
|
|
220
|
+
base_url TEXT NOT NULL,
|
|
221
|
+
manifest_json TEXT NOT NULL,
|
|
222
|
+
secrets_cipher TEXT NOT NULL,
|
|
223
|
+
created_at INTEGER NOT NULL,
|
|
224
|
+
deleted_at INTEGER,
|
|
225
|
+
PRIMARY KEY (workspace_id, provider_id)
|
|
226
|
+
);
|
|
227
|
+
CREATE TABLE task_connections (
|
|
228
|
+
workspace_id TEXT NOT NULL,
|
|
229
|
+
source TEXT NOT NULL,
|
|
230
|
+
credentials TEXT NOT NULL,
|
|
231
|
+
label TEXT NOT NULL DEFAULT '',
|
|
232
|
+
created_at INTEGER NOT NULL,
|
|
233
|
+
deleted_at INTEGER,
|
|
234
|
+
PRIMARY KEY (workspace_id, source)
|
|
235
|
+
);
|
|
236
|
+
CREATE TABLE tasks (
|
|
237
|
+
workspace_id TEXT NOT NULL,
|
|
238
|
+
source TEXT NOT NULL,
|
|
239
|
+
external_id TEXT NOT NULL,
|
|
240
|
+
title TEXT NOT NULL,
|
|
241
|
+
url TEXT NOT NULL,
|
|
242
|
+
status TEXT NOT NULL DEFAULT '',
|
|
243
|
+
type TEXT NOT NULL DEFAULT '',
|
|
244
|
+
assignee TEXT,
|
|
245
|
+
priority TEXT,
|
|
246
|
+
labels TEXT NOT NULL DEFAULT '[]',
|
|
247
|
+
description TEXT NOT NULL DEFAULT '',
|
|
248
|
+
comments TEXT NOT NULL DEFAULT '[]',
|
|
249
|
+
excerpt TEXT NOT NULL DEFAULT '',
|
|
250
|
+
linked_block_id TEXT,
|
|
251
|
+
synced_at INTEGER NOT NULL,
|
|
252
|
+
deleted_at INTEGER,
|
|
253
|
+
PRIMARY KEY (workspace_id, source, external_id)
|
|
254
|
+
);
|
|
255
|
+
CREATE TABLE accounts (
|
|
256
|
+
id TEXT NOT NULL PRIMARY KEY,
|
|
257
|
+
type TEXT NOT NULL,
|
|
258
|
+
name TEXT NOT NULL,
|
|
259
|
+
github_account_login TEXT,
|
|
260
|
+
created_at INTEGER NOT NULL
|
|
261
|
+
, default_cloud_provider TEXT, owner_user_id TEXT);
|
|
262
|
+
CREATE TABLE memberships (
|
|
263
|
+
account_id TEXT NOT NULL,
|
|
264
|
+
user_id INTEGER NOT NULL,
|
|
265
|
+
-- Combinable role set (admin / developer / product), CSV.
|
|
266
|
+
roles TEXT NOT NULL DEFAULT 'developer',
|
|
267
|
+
created_at INTEGER NOT NULL,
|
|
268
|
+
PRIMARY KEY (account_id, user_id)
|
|
269
|
+
);
|
|
270
|
+
CREATE TABLE agent_runs (
|
|
271
|
+
workspace_id TEXT NOT NULL,
|
|
272
|
+
id TEXT NOT NULL,
|
|
273
|
+
kind TEXT NOT NULL,
|
|
274
|
+
block_id TEXT,
|
|
275
|
+
status TEXT NOT NULL,
|
|
276
|
+
detail TEXT NOT NULL DEFAULT '{}',
|
|
277
|
+
subtasks TEXT,
|
|
278
|
+
error TEXT,
|
|
279
|
+
failure TEXT,
|
|
280
|
+
workflow_instance_id TEXT,
|
|
281
|
+
created_at INTEGER NOT NULL,
|
|
282
|
+
updated_at INTEGER NOT NULL, service_id TEXT,
|
|
283
|
+
PRIMARY KEY (workspace_id, id)
|
|
284
|
+
);
|
|
285
|
+
CREATE TABLE prompt_fragments (
|
|
286
|
+
fragment_id TEXT NOT NULL,
|
|
287
|
+
owner_kind TEXT NOT NULL,
|
|
288
|
+
owner_id TEXT NOT NULL,
|
|
289
|
+
version TEXT NOT NULL,
|
|
290
|
+
title TEXT NOT NULL,
|
|
291
|
+
category TEXT,
|
|
292
|
+
summary TEXT NOT NULL,
|
|
293
|
+
body TEXT NOT NULL,
|
|
294
|
+
applies_to TEXT,
|
|
295
|
+
tags TEXT,
|
|
296
|
+
source_id TEXT,
|
|
297
|
+
source_path TEXT,
|
|
298
|
+
source_sha TEXT,
|
|
299
|
+
created_at INTEGER NOT NULL,
|
|
300
|
+
updated_at INTEGER NOT NULL,
|
|
301
|
+
deleted_at INTEGER,
|
|
302
|
+
PRIMARY KEY (owner_kind, owner_id, fragment_id)
|
|
303
|
+
);
|
|
304
|
+
CREATE TABLE fragment_sources (
|
|
305
|
+
id TEXT NOT NULL PRIMARY KEY,
|
|
306
|
+
owner_kind TEXT NOT NULL,
|
|
307
|
+
owner_id TEXT NOT NULL,
|
|
308
|
+
repo_owner TEXT NOT NULL,
|
|
309
|
+
repo_name TEXT NOT NULL,
|
|
310
|
+
git_ref TEXT NOT NULL DEFAULT 'HEAD',
|
|
311
|
+
dir_path TEXT NOT NULL DEFAULT '',
|
|
312
|
+
last_synced_sha TEXT,
|
|
313
|
+
last_synced_at INTEGER,
|
|
314
|
+
created_at INTEGER NOT NULL,
|
|
315
|
+
deleted_at INTEGER,
|
|
316
|
+
UNIQUE (owner_kind, owner_id, repo_owner, repo_name, git_ref, dir_path)
|
|
317
|
+
);
|
|
318
|
+
CREATE TABLE requirement_reviews (
|
|
319
|
+
workspace_id TEXT NOT NULL,
|
|
320
|
+
id TEXT NOT NULL,
|
|
321
|
+
block_id TEXT NOT NULL,
|
|
322
|
+
status TEXT NOT NULL,
|
|
323
|
+
items TEXT NOT NULL DEFAULT '[]',
|
|
324
|
+
model TEXT,
|
|
325
|
+
incorporated_requirements TEXT,
|
|
326
|
+
created_at INTEGER NOT NULL,
|
|
327
|
+
updated_at INTEGER NOT NULL,
|
|
328
|
+
-- Reviewer-pass counter + its budget (the iterative requirements-review loop).
|
|
329
|
+
iteration INTEGER NOT NULL DEFAULT 1,
|
|
330
|
+
max_iterations INTEGER NOT NULL DEFAULT 1,
|
|
331
|
+
PRIMARY KEY (workspace_id, id)
|
|
332
|
+
);
|
|
333
|
+
CREATE TABLE live_containers (
|
|
334
|
+
container_key TEXT PRIMARY KEY,
|
|
335
|
+
kind TEXT NOT NULL,
|
|
336
|
+
workspace_id TEXT,
|
|
337
|
+
started_at INTEGER NOT NULL
|
|
338
|
+
);
|
|
339
|
+
CREATE TABLE merge_threshold_presets (
|
|
340
|
+
workspace_id TEXT NOT NULL,
|
|
341
|
+
id TEXT NOT NULL,
|
|
342
|
+
name TEXT NOT NULL,
|
|
343
|
+
max_complexity REAL NOT NULL,
|
|
344
|
+
max_risk REAL NOT NULL,
|
|
345
|
+
max_impact REAL NOT NULL,
|
|
346
|
+
ci_max_attempts INTEGER NOT NULL,
|
|
347
|
+
is_default INTEGER NOT NULL DEFAULT 0,
|
|
348
|
+
-- Per-task requirements-review loop knobs: reviewer passes before asking the human,
|
|
349
|
+
-- and the finding severity tolerated without stopping.
|
|
350
|
+
max_requirement_iterations INTEGER NOT NULL DEFAULT 3,
|
|
351
|
+
max_requirement_concern_allowed TEXT NOT NULL DEFAULT 'none',
|
|
352
|
+
created_at INTEGER NOT NULL,
|
|
353
|
+
PRIMARY KEY (workspace_id, id)
|
|
354
|
+
);
|
|
355
|
+
CREATE TABLE notifications (
|
|
356
|
+
workspace_id TEXT NOT NULL,
|
|
357
|
+
id TEXT NOT NULL,
|
|
358
|
+
type TEXT NOT NULL,
|
|
359
|
+
status TEXT NOT NULL,
|
|
360
|
+
block_id TEXT,
|
|
361
|
+
execution_id TEXT,
|
|
362
|
+
title TEXT NOT NULL,
|
|
363
|
+
body TEXT NOT NULL,
|
|
364
|
+
payload TEXT,
|
|
365
|
+
created_at INTEGER NOT NULL,
|
|
366
|
+
resolved_at INTEGER,
|
|
367
|
+
PRIMARY KEY (workspace_id, id)
|
|
368
|
+
);
|
|
369
|
+
CREATE TABLE llm_call_metrics (
|
|
370
|
+
id TEXT NOT NULL PRIMARY KEY,
|
|
371
|
+
workspace_id TEXT NOT NULL,
|
|
372
|
+
execution_id TEXT,
|
|
373
|
+
agent_kind TEXT NOT NULL,
|
|
374
|
+
provider TEXT NOT NULL,
|
|
375
|
+
model TEXT NOT NULL,
|
|
376
|
+
created_at INTEGER NOT NULL,
|
|
377
|
+
streaming INTEGER NOT NULL DEFAULT 0,
|
|
378
|
+
message_count INTEGER NOT NULL DEFAULT 0,
|
|
379
|
+
tool_count INTEGER NOT NULL DEFAULT 0,
|
|
380
|
+
request_max_tokens INTEGER,
|
|
381
|
+
prompt_tokens INTEGER NOT NULL DEFAULT 0,
|
|
382
|
+
completion_tokens INTEGER NOT NULL DEFAULT 0,
|
|
383
|
+
total_tokens INTEGER NOT NULL DEFAULT 0,
|
|
384
|
+
finish_reason TEXT,
|
|
385
|
+
upstream_ms INTEGER NOT NULL DEFAULT 0,
|
|
386
|
+
overhead_ms INTEGER NOT NULL DEFAULT 0,
|
|
387
|
+
total_ms INTEGER NOT NULL DEFAULT 0,
|
|
388
|
+
ok INTEGER NOT NULL DEFAULT 1,
|
|
389
|
+
http_status INTEGER,
|
|
390
|
+
error_message TEXT,
|
|
391
|
+
prompt_text TEXT NOT NULL DEFAULT '',
|
|
392
|
+
response_text TEXT NOT NULL DEFAULT ''
|
|
393
|
+
, prompt_prefix_count INTEGER NOT NULL DEFAULT 0, prompt_hash TEXT NOT NULL DEFAULT '', cached_prompt_tokens INTEGER NOT NULL DEFAULT 0);
|
|
394
|
+
CREATE TABLE workspace_model_defaults (
|
|
395
|
+
workspace_id TEXT NOT NULL,
|
|
396
|
+
agent_kind TEXT NOT NULL,
|
|
397
|
+
model_id TEXT NOT NULL,
|
|
398
|
+
updated_at INTEGER NOT NULL,
|
|
399
|
+
PRIMARY KEY (workspace_id, agent_kind)
|
|
400
|
+
);
|
|
401
|
+
CREATE TABLE pipeline_schedules (
|
|
402
|
+
workspace_id TEXT NOT NULL,
|
|
403
|
+
id TEXT NOT NULL,
|
|
404
|
+
block_id TEXT NOT NULL,
|
|
405
|
+
frame_id TEXT NOT NULL,
|
|
406
|
+
pipeline_id TEXT NOT NULL,
|
|
407
|
+
template TEXT NOT NULL,
|
|
408
|
+
name TEXT NOT NULL,
|
|
409
|
+
interval_hours INTEGER NOT NULL,
|
|
410
|
+
weekdays TEXT NOT NULL DEFAULT '[]',
|
|
411
|
+
window_start_hour INTEGER,
|
|
412
|
+
window_end_hour INTEGER,
|
|
413
|
+
timezone TEXT NOT NULL DEFAULT 'UTC',
|
|
414
|
+
enabled INTEGER NOT NULL DEFAULT 1,
|
|
415
|
+
last_run_at INTEGER,
|
|
416
|
+
next_run_at INTEGER NOT NULL,
|
|
417
|
+
created_at INTEGER NOT NULL, service_id TEXT,
|
|
418
|
+
PRIMARY KEY (workspace_id, id)
|
|
419
|
+
);
|
|
420
|
+
CREATE TABLE pipeline_schedule_runs (
|
|
421
|
+
workspace_id TEXT NOT NULL,
|
|
422
|
+
id TEXT NOT NULL,
|
|
423
|
+
schedule_id TEXT NOT NULL,
|
|
424
|
+
execution_id TEXT,
|
|
425
|
+
status TEXT NOT NULL,
|
|
426
|
+
started_at INTEGER NOT NULL,
|
|
427
|
+
finished_at INTEGER,
|
|
428
|
+
outcome TEXT,
|
|
429
|
+
PRIMARY KEY (workspace_id, id)
|
|
430
|
+
);
|
|
431
|
+
CREATE TABLE tracker_settings (
|
|
432
|
+
workspace_id TEXT NOT NULL PRIMARY KEY,
|
|
433
|
+
tracker TEXT,
|
|
434
|
+
jira_project_key TEXT,
|
|
435
|
+
updated_at INTEGER NOT NULL
|
|
436
|
+
);
|
|
437
|
+
CREATE TABLE services (
|
|
438
|
+
id TEXT NOT NULL PRIMARY KEY,
|
|
439
|
+
account_id TEXT,
|
|
440
|
+
frame_block_id TEXT NOT NULL,
|
|
441
|
+
installation_id INTEGER,
|
|
442
|
+
repo_github_id INTEGER,
|
|
443
|
+
created_at INTEGER NOT NULL
|
|
444
|
+
, directory TEXT);
|
|
445
|
+
CREATE TABLE workspace_services (
|
|
446
|
+
workspace_id TEXT NOT NULL,
|
|
447
|
+
service_id TEXT NOT NULL,
|
|
448
|
+
pos_x REAL NOT NULL DEFAULT 0,
|
|
449
|
+
pos_y REAL NOT NULL DEFAULT 0,
|
|
450
|
+
width REAL,
|
|
451
|
+
height REAL,
|
|
452
|
+
created_at INTEGER NOT NULL,
|
|
453
|
+
PRIMARY KEY (workspace_id, service_id)
|
|
454
|
+
);
|
|
455
|
+
CREATE TABLE github_sync_cursors (
|
|
456
|
+
installation_id INTEGER NOT NULL,
|
|
457
|
+
repo_github_id INTEGER NOT NULL,
|
|
458
|
+
kind TEXT NOT NULL,
|
|
459
|
+
etag TEXT,
|
|
460
|
+
last_synced_at INTEGER,
|
|
461
|
+
since_iso TEXT,
|
|
462
|
+
PRIMARY KEY (installation_id, repo_github_id, kind)
|
|
463
|
+
);
|
|
464
|
+
CREATE TABLE provider_subscription_tokens (
|
|
465
|
+
id TEXT NOT NULL,
|
|
466
|
+
workspace_id TEXT NOT NULL,
|
|
467
|
+
vendor TEXT NOT NULL,
|
|
468
|
+
label TEXT NOT NULL,
|
|
469
|
+
token_cipher TEXT NOT NULL,
|
|
470
|
+
created_at INTEGER NOT NULL,
|
|
471
|
+
last_used_at INTEGER,
|
|
472
|
+
window_started_at INTEGER,
|
|
473
|
+
input_tokens INTEGER NOT NULL DEFAULT 0,
|
|
474
|
+
output_tokens INTEGER NOT NULL DEFAULT 0,
|
|
475
|
+
request_count INTEGER NOT NULL DEFAULT 0,
|
|
476
|
+
deleted_at INTEGER,
|
|
477
|
+
PRIMARY KEY (id)
|
|
478
|
+
);
|
|
479
|
+
CREATE TABLE slack_connections (
|
|
480
|
+
account_id TEXT NOT NULL,
|
|
481
|
+
team_id TEXT NOT NULL,
|
|
482
|
+
team_name TEXT NOT NULL,
|
|
483
|
+
team_icon_url TEXT,
|
|
484
|
+
bot_user_id TEXT,
|
|
485
|
+
scopes TEXT,
|
|
486
|
+
token_cipher TEXT NOT NULL,
|
|
487
|
+
created_at INTEGER NOT NULL,
|
|
488
|
+
deleted_at INTEGER,
|
|
489
|
+
PRIMARY KEY (account_id)
|
|
490
|
+
);
|
|
491
|
+
CREATE TABLE slack_settings (
|
|
492
|
+
workspace_id TEXT NOT NULL,
|
|
493
|
+
routes TEXT NOT NULL DEFAULT '{}',
|
|
494
|
+
mentions_enabled INTEGER NOT NULL DEFAULT 0,
|
|
495
|
+
updated_at INTEGER NOT NULL,
|
|
496
|
+
PRIMARY KEY (workspace_id)
|
|
497
|
+
);
|
|
498
|
+
CREATE TABLE slack_member_mappings (
|
|
499
|
+
account_id TEXT NOT NULL,
|
|
500
|
+
entries TEXT NOT NULL DEFAULT '[]',
|
|
501
|
+
updated_at INTEGER NOT NULL,
|
|
502
|
+
PRIMARY KEY (account_id)
|
|
503
|
+
);
|
|
504
|
+
CREATE TABLE personal_subscriptions (
|
|
505
|
+
id TEXT NOT NULL,
|
|
506
|
+
user_id INTEGER NOT NULL,
|
|
507
|
+
vendor TEXT NOT NULL,
|
|
508
|
+
label TEXT NOT NULL,
|
|
509
|
+
token_cipher TEXT NOT NULL,
|
|
510
|
+
expires_at INTEGER,
|
|
511
|
+
created_at INTEGER NOT NULL,
|
|
512
|
+
updated_at INTEGER NOT NULL,
|
|
513
|
+
last_used_at INTEGER,
|
|
514
|
+
deleted_at INTEGER,
|
|
515
|
+
PRIMARY KEY (id)
|
|
516
|
+
);
|
|
517
|
+
CREATE TABLE subscription_activations (
|
|
518
|
+
id TEXT NOT NULL,
|
|
519
|
+
execution_id TEXT NOT NULL,
|
|
520
|
+
user_id INTEGER NOT NULL,
|
|
521
|
+
vendor TEXT NOT NULL,
|
|
522
|
+
token_cipher TEXT NOT NULL,
|
|
523
|
+
created_at INTEGER NOT NULL,
|
|
524
|
+
expires_at INTEGER NOT NULL,
|
|
525
|
+
PRIMARY KEY (id)
|
|
526
|
+
);
|
|
527
|
+
CREATE TABLE workspace_fragment_defaults (
|
|
528
|
+
workspace_id TEXT NOT NULL PRIMARY KEY,
|
|
529
|
+
fragment_ids TEXT NOT NULL,
|
|
530
|
+
updated_at INTEGER NOT NULL
|
|
531
|
+
);
|
|
532
|
+
CREATE TABLE users (
|
|
533
|
+
id TEXT PRIMARY KEY,
|
|
534
|
+
name TEXT,
|
|
535
|
+
email TEXT,
|
|
536
|
+
avatar_url TEXT,
|
|
537
|
+
created_at INTEGER NOT NULL
|
|
538
|
+
);
|
|
539
|
+
CREATE TABLE user_identities (
|
|
540
|
+
user_id TEXT NOT NULL,
|
|
541
|
+
provider TEXT NOT NULL,
|
|
542
|
+
subject TEXT NOT NULL,
|
|
543
|
+
secret TEXT,
|
|
544
|
+
metadata TEXT,
|
|
545
|
+
created_at INTEGER NOT NULL,
|
|
546
|
+
PRIMARY KEY (provider, subject)
|
|
547
|
+
);
|
|
548
|
+
CREATE TABLE email_connections (
|
|
549
|
+
account_id TEXT PRIMARY KEY,
|
|
550
|
+
provider TEXT NOT NULL,
|
|
551
|
+
from_address TEXT NOT NULL,
|
|
552
|
+
api_key_cipher TEXT NOT NULL,
|
|
553
|
+
created_at INTEGER NOT NULL,
|
|
554
|
+
updated_at INTEGER NOT NULL,
|
|
555
|
+
deleted_at INTEGER
|
|
556
|
+
);
|
|
557
|
+
CREATE TABLE account_invitations (
|
|
558
|
+
id TEXT PRIMARY KEY,
|
|
559
|
+
account_id TEXT NOT NULL,
|
|
560
|
+
email TEXT NOT NULL,
|
|
561
|
+
token_hash TEXT NOT NULL,
|
|
562
|
+
invited_by TEXT NOT NULL,
|
|
563
|
+
status TEXT NOT NULL DEFAULT 'pending',
|
|
564
|
+
expires_at INTEGER NOT NULL,
|
|
565
|
+
created_at INTEGER NOT NULL,
|
|
566
|
+
-- Combinable role set (admin / developer / product), CSV.
|
|
567
|
+
roles TEXT NOT NULL DEFAULT 'developer'
|
|
568
|
+
);
|
|
569
|
+
-- Direct-provider API-key pool (account/workspace/user scope), leased with usage-aware
|
|
570
|
+
-- rotation by the LLM proxy + inline calls. Stored as an opaque SecretCipher envelope
|
|
571
|
+
-- (AES-256-GCM) — never plaintext.
|
|
572
|
+
CREATE TABLE provider_api_keys (
|
|
573
|
+
id TEXT NOT NULL,
|
|
574
|
+
scope TEXT NOT NULL, -- 'account' | 'workspace' | 'user'
|
|
575
|
+
scope_id TEXT NOT NULL, -- account id | workspace id | usr_* id
|
|
576
|
+
provider TEXT NOT NULL, -- 'openai' | 'anthropic' | 'qwen' | 'deepseek' | 'moonshot'
|
|
577
|
+
label TEXT NOT NULL,
|
|
578
|
+
key_cipher TEXT NOT NULL, -- SecretCipher envelope (no plaintext)
|
|
579
|
+
created_at INTEGER NOT NULL,
|
|
580
|
+
last_used_at INTEGER, -- null = never leased
|
|
581
|
+
window_started_at INTEGER, -- start of the current usage window
|
|
582
|
+
input_tokens INTEGER NOT NULL DEFAULT 0, -- tokens consumed this window
|
|
583
|
+
output_tokens INTEGER NOT NULL DEFAULT 0,
|
|
584
|
+
request_count INTEGER NOT NULL DEFAULT 0,
|
|
585
|
+
deleted_at INTEGER, -- tombstone
|
|
586
|
+
PRIMARY KEY (id)
|
|
587
|
+
);
|
|
588
|
+
CREATE INDEX idx_blocks_parent ON blocks (workspace_id, parent_id);
|
|
589
|
+
CREATE INDEX idx_token_usage_created ON token_usage (created_at);
|
|
590
|
+
CREATE UNIQUE INDEX idx_gh_install_workspace
|
|
591
|
+
ON github_installations (workspace_id)
|
|
592
|
+
WHERE deleted_at IS NULL;
|
|
593
|
+
CREATE INDEX idx_gh_repos_install ON github_repos (installation_id);
|
|
594
|
+
CREATE INDEX idx_provider_api_keys_pool
|
|
595
|
+
ON provider_api_keys (scope, scope_id, provider, deleted_at);
|
|
596
|
+
CREATE INDEX idx_gh_pr_state ON github_pull_requests (workspace_id, state);
|
|
597
|
+
CREATE INDEX idx_gh_checks_sha ON github_check_runs (workspace_id, repo_github_id, head_sha);
|
|
598
|
+
CREATE INDEX idx_gh_ratelimit_observed ON github_rate_limits (observed_at);
|
|
599
|
+
CREATE INDEX idx_gh_commits_authored ON github_commits (authored_at);
|
|
600
|
+
CREATE UNIQUE INDEX idx_environment_conn_workspace
|
|
601
|
+
ON environment_connections (workspace_id)
|
|
602
|
+
WHERE deleted_at IS NULL;
|
|
603
|
+
CREATE INDEX idx_environments_block
|
|
604
|
+
ON environments (workspace_id, block_id)
|
|
605
|
+
WHERE deleted_at IS NULL;
|
|
606
|
+
CREATE INDEX idx_environments_expiry
|
|
607
|
+
ON environments (expires_at)
|
|
608
|
+
WHERE deleted_at IS NULL AND expires_at IS NOT NULL;
|
|
609
|
+
CREATE INDEX idx_reference_architectures_workspace
|
|
610
|
+
ON reference_architectures (workspace_id)
|
|
611
|
+
WHERE deleted_at IS NULL;
|
|
612
|
+
CREATE INDEX idx_documents_block
|
|
613
|
+
ON documents (workspace_id, linked_block_id);
|
|
614
|
+
CREATE UNIQUE INDEX idx_runner_pool_conn_workspace
|
|
615
|
+
ON runner_pool_connections (workspace_id)
|
|
616
|
+
WHERE deleted_at IS NULL;
|
|
617
|
+
CREATE INDEX idx_tasks_block
|
|
618
|
+
ON tasks (workspace_id, linked_block_id);
|
|
619
|
+
CREATE INDEX idx_workspaces_owner ON workspaces (owner_user_id);
|
|
620
|
+
CREATE INDEX idx_memberships_user ON memberships (user_id);
|
|
621
|
+
CREATE INDEX idx_workspaces_account ON workspaces (account_id);
|
|
622
|
+
CREATE INDEX idx_gh_install_account
|
|
623
|
+
ON github_installations (account_id)
|
|
624
|
+
WHERE deleted_at IS NULL;
|
|
625
|
+
CREATE INDEX idx_agent_runs_workspace ON agent_runs (workspace_id, created_at);
|
|
626
|
+
CREATE INDEX idx_agent_runs_status_lease ON agent_runs (status, updated_at);
|
|
627
|
+
CREATE INDEX idx_agent_runs_block ON agent_runs (workspace_id, block_id);
|
|
628
|
+
CREATE INDEX idx_prompt_fragments_owner
|
|
629
|
+
ON prompt_fragments (owner_kind, owner_id) WHERE deleted_at IS NULL;
|
|
630
|
+
CREATE INDEX idx_prompt_fragments_source
|
|
631
|
+
ON prompt_fragments (source_id) WHERE deleted_at IS NULL;
|
|
632
|
+
CREATE INDEX idx_fragment_sources_owner
|
|
633
|
+
ON fragment_sources (owner_kind, owner_id) WHERE deleted_at IS NULL;
|
|
634
|
+
CREATE INDEX idx_requirement_reviews_block ON requirement_reviews (workspace_id, block_id);
|
|
635
|
+
CREATE INDEX idx_live_containers_started ON live_containers (started_at);
|
|
636
|
+
CREATE INDEX idx_merge_presets_default
|
|
637
|
+
ON merge_threshold_presets (workspace_id, is_default);
|
|
638
|
+
CREATE INDEX idx_notifications_open ON notifications (workspace_id, status, created_at);
|
|
639
|
+
CREATE INDEX idx_notifications_block ON notifications (workspace_id, block_id, type, status);
|
|
640
|
+
CREATE INDEX idx_llm_call_metrics_execution
|
|
641
|
+
ON llm_call_metrics (workspace_id, execution_id, created_at);
|
|
642
|
+
CREATE INDEX idx_llm_call_metrics_created ON llm_call_metrics (created_at);
|
|
643
|
+
CREATE INDEX idx_pipeline_schedules_due ON pipeline_schedules (enabled, next_run_at);
|
|
644
|
+
CREATE INDEX idx_pipeline_schedules_block ON pipeline_schedules (workspace_id, block_id);
|
|
645
|
+
CREATE INDEX idx_schedule_runs_schedule
|
|
646
|
+
ON pipeline_schedule_runs (workspace_id, schedule_id, started_at);
|
|
647
|
+
CREATE INDEX idx_schedule_runs_started ON pipeline_schedule_runs (started_at);
|
|
648
|
+
CREATE INDEX idx_services_account ON services (account_id);
|
|
649
|
+
CREATE UNIQUE INDEX idx_services_frame ON services (account_id, frame_block_id);
|
|
650
|
+
CREATE INDEX idx_services_repo ON services (installation_id, repo_github_id);
|
|
651
|
+
CREATE INDEX idx_workspace_services_service ON workspace_services (service_id);
|
|
652
|
+
CREATE INDEX idx_blocks_service ON blocks (service_id);
|
|
653
|
+
CREATE INDEX idx_agent_runs_service ON agent_runs (service_id);
|
|
654
|
+
CREATE INDEX idx_pipeline_schedules_service ON pipeline_schedules (service_id);
|
|
655
|
+
CREATE INDEX idx_provider_subs_pool
|
|
656
|
+
ON provider_subscription_tokens (workspace_id, vendor, deleted_at);
|
|
657
|
+
CREATE UNIQUE INDEX idx_slack_conn_team
|
|
658
|
+
ON slack_connections (team_id) WHERE deleted_at IS NULL;
|
|
659
|
+
CREATE UNIQUE INDEX idx_personal_subs_user_vendor
|
|
660
|
+
ON personal_subscriptions (user_id, vendor)
|
|
661
|
+
WHERE deleted_at IS NULL;
|
|
662
|
+
CREATE INDEX idx_personal_subs_expiry
|
|
663
|
+
ON personal_subscriptions (expires_at)
|
|
664
|
+
WHERE deleted_at IS NULL;
|
|
665
|
+
CREATE UNIQUE INDEX idx_sub_activations_run
|
|
666
|
+
ON subscription_activations (execution_id, user_id, vendor);
|
|
667
|
+
CREATE INDEX idx_sub_activations_expiry
|
|
668
|
+
ON subscription_activations (expires_at);
|
|
669
|
+
CREATE INDEX idx_services_frame_block ON services (frame_block_id);
|
|
670
|
+
CREATE INDEX idx_blocks_id ON blocks (id);
|
|
671
|
+
CREATE UNIQUE INDEX idx_users_email ON users (email) WHERE email IS NOT NULL;
|
|
672
|
+
CREATE INDEX idx_user_identities_user ON user_identities (user_id);
|
|
673
|
+
CREATE UNIQUE INDEX idx_accounts_personal
|
|
674
|
+
ON accounts (owner_user_id)
|
|
675
|
+
WHERE type = 'personal';
|
|
676
|
+
CREATE INDEX idx_account_invitations_account ON account_invitations (account_id);
|
|
677
|
+
CREATE UNIQUE INDEX idx_account_invitations_token ON account_invitations (token_hash);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
-- Clarity (bug-report triage) reviews. The mirror of `requirement_reviews`: one row per
|
|
2
|
+
-- review, items as a JSON array, at most one live review per block. The persisted document
|
|
3
|
+
-- is the clarified bug report (`clarified_report`), the clarity analogue of the
|
|
4
|
+
-- requirements review's `incorporated_requirements`.
|
|
5
|
+
CREATE TABLE clarity_reviews (
|
|
6
|
+
workspace_id TEXT NOT NULL,
|
|
7
|
+
id TEXT NOT NULL,
|
|
8
|
+
block_id TEXT NOT NULL,
|
|
9
|
+
status TEXT NOT NULL,
|
|
10
|
+
items TEXT NOT NULL DEFAULT '[]',
|
|
11
|
+
model TEXT,
|
|
12
|
+
clarified_report TEXT,
|
|
13
|
+
iteration INTEGER NOT NULL DEFAULT 1,
|
|
14
|
+
max_iterations INTEGER NOT NULL DEFAULT 1,
|
|
15
|
+
created_at INTEGER NOT NULL,
|
|
16
|
+
updated_at INTEGER NOT NULL,
|
|
17
|
+
PRIMARY KEY (workspace_id, id)
|
|
18
|
+
);
|
|
19
|
+
CREATE INDEX idx_clarity_reviews_block ON clarity_reviews (workspace_id, block_id);
|