-
Notifications
You must be signed in to change notification settings - Fork 32
feat(guard): add Mastra support as @arcjet/guard/mastra/v1 #6226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
144a54f
feat(guard): add Mastra support as @arcjet/guard/mastra/v1
cursoragent 37533cf
docs(guard): split peers, move examples to arcjet/examples
cursoragent 4a0df16
fix(guard): harden mastra/v1 gates and close coverage gaps
cursoragent 68b5096
docs(guard): split peer installs and lock examples guidance
cursoragent fc8255b
docs(guard): keep README peer-install split without drive-by reformat
cursoragent fe6e1a0
fix(guard): address mastra/v1 review and restore lockfile overrides
cursoragent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| # Agent guidance | ||
|
|
||
| ## Examples live in `arcjet/examples` | ||
|
|
||
| Do not add application examples under `examples/` in this repository. | ||
|
|
||
| Examples were removed from this SDK in | ||
| [#6217](https://github.com/arcjet/arcjet-js/pull/6217). New and remaining | ||
| examples belong in [`arcjet/examples`](https://github.com/arcjet/examples). | ||
| The current migration PR is | ||
| [arcjet/examples#193](https://github.com/arcjet/examples/pull/193) — add | ||
| Guard / adapter demos there (or a follow-up on that repo), not here. | ||
|
|
||
| That includes: | ||
|
|
||
| - Framework apps (`nextjs-*`, `express-*`, …) | ||
| - Guard integration demos (`nextjs-ai-agent`, `eve-agent`, `mastra-agent`) | ||
|
|
||
| Follow `arcjet/examples` CONTRIBUTING.md and its canonical example pattern | ||
| (`package.json` metadata, templated README, Dockerfile, `compose.yaml`, | ||
| devcontainer, LICENSE). Pin Arcjet packages to published versions. Standalone | ||
| AI examples that need a model key stay out of the default compose/CI matrix. | ||
|
|
||
| Do not restore `.github/workflows/reusable-examples.yml` or re-add an | ||
| `examples` CI job in this repo for new work. | ||
|
|
||
| README and skill links should point at | ||
| `https://github.com/arcjet/examples/tree/main/examples/<name>`, not at a | ||
| path under this repository. | ||
|
|
||
| ## Integration work: review before a PR | ||
|
|
||
| For Guard vendor integrations and other integration work, keep going on a | ||
| branch and push it. Do not open a pull request until David confirms after | ||
| reviewing the code. The final report must include the exact branch name, | ||
| commit SHA, and a concise diff summary. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.