(baseUrl: string)
| 66 | // The response declares the schema of ONE line under application/stream+json, |
| 67 | // the same convention Vercel's spec uses for getRuntimeLogs. |
| 68 | const runtimeLogsSpec = (baseUrl: string): string => |
| 69 | JSON.stringify({ |
| 70 | openapi: "3.0.3", |
| 71 | info: { title: "Runtime Logs API", version: "1.0.0" }, |
| 72 | servers: [{ url: baseUrl }], |
| 73 | paths: { |
| 74 | "/logs": { |
| 75 | get: { |
| 76 | operationId: "getRuntimeLogs", |
| 77 | summary: "Stream runtime logs for a deployment", |
| 78 | responses: { |
| 79 | "200": { |
| 80 | description: "Log lines as newline-delimited JSON", |
| 81 | content: { |
| 82 | "application/stream+json": { |
| 83 | schema: { |
| 84 | type: "object", |
| 85 | properties: { |
| 86 | level: { type: "string", enum: ["info", "warning", "error"] }, |
| 87 | message: { type: "string" }, |
| 88 | rowId: { type: "string" }, |
| 89 | timestampInMs: { type: "number" }, |
| 90 | }, |
| 91 | required: ["level", "message", "rowId", "timestampInMs"], |
| 92 | }, |
| 93 | }, |
| 94 | }, |
| 95 | }, |
| 96 | }, |
| 97 | }, |
| 98 | }, |
| 99 | }, |
| 100 | }); |
| 101 | |
| 102 | // No securitySchemes in the spec ⇒ the integration is no-auth, so the agent |
| 103 | // can wire the connection itself over the core tool (template "none"). |
no outgoing calls
no test coverage detected