Fix prototype service runtime dependencies

This commit is contained in:
root 2026-03-14 05:32:21 +00:00
parent a5e8890df2
commit 19b58b3ea0
5 changed files with 7 additions and 1 deletions

3
pnpm-lock.yaml generated
View File

@ -650,6 +650,9 @@ importers:
'@fastify/swagger':
specifier: ^9.4.2
version: 9.7.0
'@fastify/swagger-ui':
specifier: ^5.2.5
version: 5.2.5
fastify:
specifier: ^5.2.1
version: 5.7.4

View File

@ -28,6 +28,7 @@
"@fastify/cors": "^10.0.2",
"@fastify/rate-limit": "^10.3.0",
"@fastify/swagger": "^9.4.2",
"@fastify/swagger-ui": "^5.2.5",
"fastify": "^5.2.1",
"fastify-metrics": "^10.3.0",
"jose": "^6.0.8",

View File

@ -59,7 +59,7 @@ const CONTAINER_DEFS: Record<string, ContainerConfig> = {
maintenance_windows: { partitionKeyPath: '/productId' },
// Scheduled jobs
job_definitions: { partitionKeyPath: '/productId' },
job_runs: { partitionKeyPath: '/productId:jobName' },
job_runs: { partitionKeyPath: '/pk' },
// Telemetry (client diagnostics — see docs/WINDSURF/CLIENT_TELEMETRY_DESIGN.md)
telemetry_events: { partitionKeyPath: '/pk', defaultTtl: 30 * 86400 },
telemetry_error_clusters: { partitionKeyPath: '/pk', defaultTtl: 90 * 86400 },

View File

@ -105,6 +105,7 @@ export async function executeJob(
// Create run record
const run: JobRunDoc = {
id: runId,
pk: `${def.productId}:${def.name}`,
jobName: def.name,
productId: def.productId,
status: 'running',

View File

@ -50,6 +50,7 @@ export const JobRunSchema = z.object({
export type JobRun = z.infer<typeof JobRunSchema>;
export interface JobRunDoc extends JobRun {
pk: string;
_ts?: number;
_etag?: string;
}