Skip to content

feat(prisma-compute): read a build's log through the API and prisma build logs - #46

Closed
AmanVarshney01 wants to merge 1 commit into
mainfrom
feat/compute-build-logs
Closed

AmanVarshney01 wants to merge 1 commit into
mainfrom
feat/compute-build-logs

Conversation

@AmanVarshney01

Copy link
Copy Markdown
Member

What changes

The prisma-compute skill told agents that there is no build log endpoint, and that build logs is a removed command they must not run. Both are out of date:

So the skill now:

  • Documents the logs endpoint in automation-rest-api.md: the job, lines, errors, truncated, tail, the GitHub Actions-only rule, and the 503 on a GitHub rate limit. It also mentions listing failed builds with GET /v1/builds?projectId=<id>&state=failed.
  • Points the old build logs <build-id> row at npx prisma build logs --errors when npx prisma build --help lists it, and at the endpoint otherwise. Agents check --help first because the CLI they have installed may be older than the release with build.
  • Adds build to the command table in cli-command-map.md, marked as newer releases only.
  • Stops listing build logs under removed commands and under Avoid.
  • Adds "asks why a build or deploy failed" to the trigger description, and bumps the skill to 2.2.0.

🤖 Generated with Claude Code

…build logs`

The skill said there is no build log endpoint and listed `build logs`
as a removed command. `GET /v1/builds/{buildId}/logs` now returns a
GitHub Actions build's lines and error lines, and `prisma build logs`
reads it in CLI releases after 8.0.0-rc.39. Agents check
`prisma build --help` before using it, and fall back to the API.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant