Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .changeset/evlog-error-catalog.md

This file was deleted.

16 changes: 16 additions & 0 deletions packages/github-tools-eve-extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @github-tools/eve-extension

## 0.7.0

### Minor Changes

- [#127](https://github.com/vercel-labs/github-tools/pull/127) [`d6a0ef3`](https://github.com/vercel-labs/github-tools/commit/d6a0ef32a79dcc80e43111b786629b87223c566d) Thanks [@HugoRCD](https://github.com/HugoRCD)! - Structured error catalog (evlog): classifiable failures now carry a stable `code`, a `why` (technical cause), and a `fix` (actionable remedy) instead of a bare message.

- GitHub API errors are mapped by status: `UNAUTHORIZED` (401), `FORBIDDEN` (403), `RATE_LIMITED` (403/429, with reset info), `NOT_FOUND` (404 — explicitly states GitHub masks no-access private resources as 404), `VALIDATION_FAILED` (422). Unmapped statuses pass through; the original Octokit error stays as `cause`.
- An expired `VERCEL_OIDC_TOKEN` now throws `OIDC_TOKEN_EXPIRED` with the exact expiry time before any Connect request, instead of surfacing as an opaque 403. `@vercel/connect` failures map to `CONNECT_NOT_AUTHORIZED`, `CONNECT_USER_NOT_CONNECTED`, and `CONNECT_INSTALLATION_REQUIRED`.
- In the eve extension, failing tools return `{ error: { code, message, why, fix, link } }` to the model; unclassified failures keep the plain message string.
- The catalog is exported as `githubToolsErrors`; use evlog's `parseError` to read the structure from thrown errors in AI SDK apps.

### Patch Changes

- Updated dependencies [[`d6a0ef3`](https://github.com/vercel-labs/github-tools/commit/d6a0ef32a79dcc80e43111b786629b87223c566d)]:
- @github-tools/sdk@1.16.0

## 0.6.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/github-tools-eve-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@github-tools/eve-extension",
"version": "0.6.0",
"version": "0.7.0",
"description": "GitHub tools for eve, distributed as a mountable eve extension (https://eve.dev/docs/extensions)",
"author": "HugoRCD <hugo.richard@vercel.com>",
"repository": {
Expand Down
11 changes: 11 additions & 0 deletions packages/github-tools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @github-tools/sdk

## 1.16.0

### Minor Changes

- [#127](https://github.com/vercel-labs/github-tools/pull/127) [`d6a0ef3`](https://github.com/vercel-labs/github-tools/commit/d6a0ef32a79dcc80e43111b786629b87223c566d) Thanks [@HugoRCD](https://github.com/HugoRCD)! - Structured error catalog (evlog): classifiable failures now carry a stable `code`, a `why` (technical cause), and a `fix` (actionable remedy) instead of a bare message.

- GitHub API errors are mapped by status: `UNAUTHORIZED` (401), `FORBIDDEN` (403), `RATE_LIMITED` (403/429, with reset info), `NOT_FOUND` (404 — explicitly states GitHub masks no-access private resources as 404), `VALIDATION_FAILED` (422). Unmapped statuses pass through; the original Octokit error stays as `cause`.
- An expired `VERCEL_OIDC_TOKEN` now throws `OIDC_TOKEN_EXPIRED` with the exact expiry time before any Connect request, instead of surfacing as an opaque 403. `@vercel/connect` failures map to `CONNECT_NOT_AUTHORIZED`, `CONNECT_USER_NOT_CONNECTED`, and `CONNECT_INSTALLATION_REQUIRED`.
- In the eve extension, failing tools return `{ error: { code, message, why, fix, link } }` to the model; unclassified failures keep the plain message string.
- The catalog is exported as `githubToolsErrors`; use evlog's `parseError` to read the structure from thrown errors in AI SDK apps.

## 1.15.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/github-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@github-tools/sdk",
"version": "1.15.0",
"version": "1.16.0",
"description": "A typed tool layer for GitHub AI agents, with presets, human approval, and durable execution. Works with eve, the AI SDK, Vercel Workflow, and Chat SDK",
"author": "HugoRCD <hugo.richard@vercel.com",
"repository": {
Expand Down