feat: agent discovery docs and cast-based pact skill - #68
Merged
Conversation
…n block Adds docs/integrate.md as the canonical direct-call guide and a prebuild step that renders /llms.txt, /.well-known/pact.json, and markdown mirrors under /docs/ from the generated contract pin, failing the build if a landing doc carries a different factory address. Per-page OG descriptions.
Discovery surfaces point at skills/pact, a single knowledge skill that gives an agent the protocol model, lifecycle, safety rails, and cast commands for every read and write, including EIP-712 voucher issue and claim. No CLI or MCP server; the contracts are the interface.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…y recipe order Simulate buyPublic after the approve lands (before, it always reverts on allowance). Addresses live once, in the env block.
Reuse quoted amounts via cast --to-dec (typed output carries a [1e8] annotation), decode revert selectors with cast decode-error, BSD-safe tr and padded base64 in the link codec, jq path for the new offering address.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Scaled-down extraction of #67: keeps discovery only. #67 stays open as the full CLI / MCP / generated-skills reference.
What's in
docs/integrate.mddirect-call guide; prebuild renders/llms.txt,/.well-known/pact.json, and/docs/*.mdfrom the generated contract pin (build fails if a landing doc carries a different factory address).skills/pact: one knowledge skill (SKILL.md+references/vouchers.md) that gives an agent the protocol model, lifecycle table, safety rails, andcastcommands for every read and write, including EIP-712 voucher issue and claim viacast wallet sign --data. Install:npx skills add 0xSplits/pact.What's deliberately out (see #67)
packages/pactCLI, MCP server, generated command skills,packages/coreextraction, the CLI e2e.Validation
npm run typechecknpm test(84)npm run discoveryoutput inspected