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
26 changes: 0 additions & 26 deletions .changeset/eve-attribution-edit-files.md

This file was deleted.

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

## 0.15.0

### Minor Changes

- [#274](https://github.com/vercel-labs/github-tools/pull/274) [`cdc83c7`](https://github.com/vercel-labs/github-tools/commit/cdc83c79480a6cd5e8b4f128f81193a2c9ca9abf) Thanks [@HugoRCD](https://github.com/HugoRCD)! - Add the attribution footer to pull requests that `editFiles` opens, and let `attribution.footer` take a template.

With `attribution` on, a call that ran with a person's token added the footer only to `createPullRequest`. A pull request opened by `editFiles` with `pullRequest` got no footer, even though its description tells the model to prefer it over `createPullRequest`. It now gets the footer too.

The default footer now names the App by its display name, the person, and where they asked from:

> Generated by [Evi](https://github.com/apps/evlogai) for @HugoRCD from a [Slack thread](https://app.slack.com/client/…).

It was `Generated by [evlogai](https://github.com/apps/evlogai).`. Naming the person costs one `GET /user` call per pull request.

`attribution.footer` also accepts a template whose tokens the extension fills from each call: `{app}` (the App as a link), `{app.name}` (its display name), `{requester}` (`@<login>`), `{channel}` (such as `Slack` or `Linear`) and `{origin}` (a link to the Slack thread, the Linear issue by name, or the channel's name). An unknown token fails when the extension mounts. A function that gets the App and returns the line also works.

```ts
export default githubExtension({
connector: 'github/my-connector',
actAs: 'caller',
attribution: { footer: 'Opened by {app.name} in {channel} for {requester}.' },
})
```

`@github-tools/sdk/eve-runtime` exports `fillGithubFooter`, `githubFooterTokens`, `githubAppFooterValues`, `githubChannelFooterValues`, `githubLogin`, `GITHUB_FOOTER_TOKENS` and `DEFAULT_GITHUB_FOOTER`, `GithubAppBot` gains an optional `name`, which footers show in place of the slug when it is set, and `withGithubAppFooter(body, bot, footer?)` takes the filled line as an optional third argument.

### Patch Changes

- Updated dependencies [[`cdc83c7`](https://github.com/vercel-labs/github-tools/commit/cdc83c79480a6cd5e8b4f128f81193a2c9ca9abf)]:
- @github-tools/sdk@1.24.0

## 0.14.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.14.0",
"version": "0.15.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
26 changes: 26 additions & 0 deletions packages/github-tools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# @github-tools/sdk

## 1.24.0

### Minor Changes

- [#274](https://github.com/vercel-labs/github-tools/pull/274) [`cdc83c7`](https://github.com/vercel-labs/github-tools/commit/cdc83c79480a6cd5e8b4f128f81193a2c9ca9abf) Thanks [@HugoRCD](https://github.com/HugoRCD)! - Add the attribution footer to pull requests that `editFiles` opens, and let `attribution.footer` take a template.

With `attribution` on, a call that ran with a person's token added the footer only to `createPullRequest`. A pull request opened by `editFiles` with `pullRequest` got no footer, even though its description tells the model to prefer it over `createPullRequest`. It now gets the footer too.

The default footer now names the App by its display name, the person, and where they asked from:

> Generated by [Evi](https://github.com/apps/evlogai) for @HugoRCD from a [Slack thread](https://app.slack.com/client/…).

It was `Generated by [evlogai](https://github.com/apps/evlogai).`. Naming the person costs one `GET /user` call per pull request.

`attribution.footer` also accepts a template whose tokens the extension fills from each call: `{app}` (the App as a link), `{app.name}` (its display name), `{requester}` (`@<login>`), `{channel}` (such as `Slack` or `Linear`) and `{origin}` (a link to the Slack thread, the Linear issue by name, or the channel's name). An unknown token fails when the extension mounts. A function that gets the App and returns the line also works.

```ts
export default githubExtension({
connector: 'github/my-connector',
actAs: 'caller',
attribution: { footer: 'Opened by {app.name} in {channel} for {requester}.' },
})
```

`@github-tools/sdk/eve-runtime` exports `fillGithubFooter`, `githubFooterTokens`, `githubAppFooterValues`, `githubChannelFooterValues`, `githubLogin`, `GITHUB_FOOTER_TOKENS` and `DEFAULT_GITHUB_FOOTER`, `GithubAppBot` gains an optional `name`, which footers show in place of the slug when it is set, and `withGithubAppFooter(body, bot, footer?)` takes the filled line as an optional third argument.

## 1.23.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.23.0",
"version": "1.24.0",
"description": "A typed tool layer for GitHub AI agents, with presets, human approval, and durable execution. Works with eve, the AI SDK, TanStack AI, Vercel Workflow, and Chat SDK",
"author": "HugoRCD <hugo.richard@vercel.com>",
"repository": {
Expand Down