Skip to content

docs: Add AGENTS.md and refresh SDK docs#270

Merged
michaelsmueller merged 2 commits into
mainfrom
offp-530
Jun 16, 2026
Merged

docs: Add AGENTS.md and refresh SDK docs#270
michaelsmueller merged 2 commits into
mainfrom
offp-530

Conversation

@michaelsmueller

@michaelsmueller michaelsmueller commented Jun 15, 2026

Copy link
Copy Markdown
Contributor
Type Ticket
Chore N/A

Problem

maple-js had no agent/dev context files (unlike the rest of the workspace), and the README's address examples were stale — they used addresses.mainnet.X, but the exported addresses object is keyed by project, not network. engines.node also still said >=22 while the rest of the stack has moved to Node 24.

Solution

  • Add AGENTS.md as canonical context per the Maple workspace convention, plus CLAUDE.md (@AGENTS.md) and .cursorrules / GEMINI.md symlinks; gitignore the .local variants.
  • Refresh README.md: add Development and Releasing sections (the latter documents the npm OIDC trusted-publishing flow), fix the project-keyed address examples, add sepolia-prod, and note Base Mainnet is deprecated.
  • Bump engines.node to >=24.14.1 to match the stack: hub runs node:24 in prod, every active .nvmrc pins 24.14.1, and maple-webapp already declares >=24.14.1.

Summary by CodeRabbit

  • Documentation

    • Updated README with revised table of contents plus new Development and Releasing sections (pinned tooling setup, build/test/lint/format commands, and a release workflow with trusted publishing and attestation verification).
    • Refreshed contract address docs to use project-keyed identifiers (e.g., mainnet-prod, sepolia-dev, base-mainnet-prod marked deprecated) and updated connection examples accordingly.
  • Chores

    • Increased minimum supported Node.js version to 24.14.1
    • Updated local override guidance references and ignore rules for personal context overrides.

@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
📝 Walkthrough

Walkthrough

Introduces AGENTS.md as a canonical AI agent context file covering the Maple TypeScript SDK's tooling, commands, repo structure, release process, and naming conventions. .cursorrules, CLAUDE.md, and GEMINI.md are redirected to reference it. .gitignore gains ignore rules for personal override files. package.json Node.js requirement is bumped to >=24.14.1 to align with documented stack. README.md is updated with project-keyed address examples and new Development/Releasing sections.

Changes

Agent Docs Consolidation and README Updates

Layer / File(s) Summary
AGENTS.md creation and agent file unification
AGENTS.md, .cursorrules, CLAUDE.md, GEMINI.md, .gitignore, package.json
AGENTS.md is created as the single-source conventions file covering stack (Node 24.14.1, Yarn 4), commands, repo layout, release workflow, and contract naming. .cursorrules and GEMINI.md become symlinks to it; CLAUDE.md adds an @AGENTS.md reference. .gitignore adds ignore entries for AGENTS.local.md and CLAUDE.local.md personal overrides. package.json engines.node is updated to >=24.14.1 to align with the documented dev stack.
README address pattern and workflow docs
README.md
Table of Contents is reordered to add Development and Releasing entries. Address examples are updated from addresses.mainnet to addresses['mainnet-prod']. New Development and Releasing sections document Yarn 4/corepack setup, build/test/lint/format commands, and the npm publish/release procedure using OIDC trusted publishing.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐇 A single scroll now holds the lore,
Three agent files point to one door.
mainnet-prod the address reads,
Node 24 blooms with all the deeds.
One hop, one truth, one tidy warren —
No rules left forgotten or foreign! 🌿

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main changes: adding AGENTS.md and refreshing SDK documentation in README, which are the primary objectives.
Description check ✅ Passed The description follows the template structure with Type, Ticket, Problem, and Solution sections all properly completed with sufficient detail about changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch offp-530

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (2)
AGENTS.md (1)

29-38: ⚡ Quick win

Specify language identifier for the code block.

The directory structure code block at line 29 is missing a language identifier. While tree structures don't have a strict language, adding one (e.g., tree, text, or bash) helps linters and documentation renderers.

📝 Proposed fix
 ## Structure
 
-```
+```tree
 src/
 ├── abis/        # Contract ABI JSON — source of truth, committed
 ├── addresses/   # Deployed addresses per project: {network}-{env}.ts
 ├── helpers/     # Unsigned/signed transaction serialisation utils
 ├── typechain/   # Generated ethers v5 typings — gitignored, built from abis/
 └── index.ts     # Public API — contract factories, addresses, utils
 scripts/build-typechain.js   # ABI -> typechain codegen
 config.json                  # typechain generation config
-```
+```
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` around lines 29 - 38, The code block displaying the directory
structure starting with src/ and containing abis/, addresses/, helpers/,
typechain/, and index.ts is missing a language identifier on its opening fence.
Update the opening triple backticks from ``` to ```tree to properly specify the
code block format, which will help linters and documentation renderers correctly
process the tree structure.
README.md (1)

211-211: ⚡ Quick win

Clarify the phrasing "A different Offchain dev approves the deployment."

Line 211 uses the phrasing "A different Offchain dev," which is grammatically awkward. The term "Offchain" may also need verification for casing/hyphenation consistency (e.g., "off-chain" or "offchain"). Depending on your team's canonical terminology, consider rephrasing to "An offchain developer from a different team approves" or similar for clarity.

📝 Suggested rephrase
-4. A different Offchain dev approves the deployment.
+4. An offchain developer from a different team approves the deployment.

Adjust the term "offchain" to match your codebase's canonical naming (e.g., "off-chain" if that is preferred).

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@README.md` at line 211, On line 211 of README.md, rephrase the awkward
phrasing "A different Offchain dev approves the deployment" to be more
grammatically clear, such as "An offchain developer from a different team
approves the deployment." Additionally, verify the canonical casing and
hyphenation of the term "offchain" by checking how it is used elsewhere in the
README and codebase (it may be "offchain", "off-chain", or "Offchain") and
ensure consistency with that standard throughout the sentence.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@AGENTS.md`:
- Around line 29-38: The code block displaying the directory structure starting
with src/ and containing abis/, addresses/, helpers/, typechain/, and index.ts
is missing a language identifier on its opening fence. Update the opening triple
backticks from ``` to ```tree to properly specify the code block format, which
will help linters and documentation renderers correctly process the tree
structure.

In `@README.md`:
- Line 211: On line 211 of README.md, rephrase the awkward phrasing "A different
Offchain dev approves the deployment" to be more grammatically clear, such as
"An offchain developer from a different team approves the deployment."
Additionally, verify the canonical casing and hyphenation of the term "offchain"
by checking how it is used elsewhere in the README and codebase (it may be
"offchain", "off-chain", or "Offchain") and ensure consistency with that
standard throughout the sentence.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: cf9843ad-fe12-4238-b1db-b65ed4a1a2b2

📥 Commits

Reviewing files that changed from the base of the PR and between 734a2d6 and 687464d.

📒 Files selected for processing (6)
  • .cursorrules
  • .gitignore
  • AGENTS.md
  • CLAUDE.md
  • GEMINI.md
  • README.md
✅ Files skipped from review due to trivial changes (3)
  • .cursorrules
  • CLAUDE.md
  • GEMINI.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • .gitignore

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (3)
AGENTS.md (3)

29-29: 💤 Low value

Add language identifier to fenced code block.

The Structure code block should specify a language (e.g., bash` or txt`) to comply with markdown best practices.

Fix code fence
 ## Structure
 
-```
+```bash
 src/
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` at line 29, The fenced code block in AGENTS.md at line 29 is
missing a language identifier on the opening fence. Modify the opening triple
backticks to include a language identifier (such as "bash" or "txt") to comply
with markdown best practices. Change the opening fence from ``` to ```bash (or
the appropriate language) to properly indicate the code block type for the file
structure content that follows.

Source: Linters/SAST tools


47-47: 💤 Low value

Standardize "off-chain" spelling across documentation.

Both AGENTS.md and README.md use "Offchain dev" where the standard English spelling is "off-chain" (hyphenated) in technical/blockchain contexts.

  • AGENTS.md#L47: Change "A different Offchain dev approves the deployment." to use "off-chain dev".
  • README.md#L211: Change "A different Offchain dev approves the deployment." to use "off-chain dev".
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` at line 47, Standardize the spelling of "Offchain dev" to
"off-chain dev" (with hyphenation) across both documentation files. In AGENTS.md
at line 47, change "A *different* Offchain dev approves the deployment." to use
"off-chain dev". In README.md at line 211, change "A different Offchain dev
approves the deployment." to use "off-chain dev". This ensures consistent
technical spelling across all documentation in alignment with standard
blockchain terminology conventions.

Source: Linters/SAST tools


46-46: 💤 Low value

Ensure consistent GitHub capitalization.

Line 46 should use "GitHub" (capital "H") when referring to the platform/service.

Fix capitalization
-2. Create a GitHub Release tagged `vX.Y.Z` (must match `package.json`).
-3. The **Publish Release** workflow (`.github/workflows/release.yaml`) runs in the `npm` environment.
+2. Create a GitHub Release tagged `vX.Y.Z` (must match `package.json`).
+3. The **Publish Release** workflow (`.GitHub/workflows/release.yaml`) runs in the `npm` environment.

Note: The .github/ directory is a GitHub convention, so the path itself should use lowercase .github/, but any prose reference to the platform should be "GitHub".

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` at line 46, In the AGENTS.md file at line 46, ensure consistent
capitalization of the GitHub platform name. When referring to the GitHub
platform or service in prose (not the `.github/` directory path which should
remain lowercase), use "GitHub" with a capital "H". Review the line containing
the Publish Release workflow reference and update any prose references to the
platform from lowercase "github" to "GitHub" while keeping the
`.github/workflows/release.yaml` file path in lowercase.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@AGENTS.md`:
- Line 29: The fenced code block in AGENTS.md at line 29 is missing a language
identifier on the opening fence. Modify the opening triple backticks to include
a language identifier (such as "bash" or "txt") to comply with markdown best
practices. Change the opening fence from ``` to ```bash (or the appropriate
language) to properly indicate the code block type for the file structure
content that follows.
- Line 47: Standardize the spelling of "Offchain dev" to "off-chain dev" (with
hyphenation) across both documentation files. In AGENTS.md at line 47, change "A
*different* Offchain dev approves the deployment." to use "off-chain dev". In
README.md at line 211, change "A different Offchain dev approves the
deployment." to use "off-chain dev". This ensures consistent technical spelling
across all documentation in alignment with standard blockchain terminology
conventions.
- Line 46: In the AGENTS.md file at line 46, ensure consistent capitalization of
the GitHub platform name. When referring to the GitHub platform or service in
prose (not the `.github/` directory path which should remain lowercase), use
"GitHub" with a capital "H". Review the line containing the Publish Release
workflow reference and update any prose references to the platform from
lowercase "github" to "GitHub" while keeping the
`.github/workflows/release.yaml` file path in lowercase.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: dd6dc966-be4c-465c-9829-0540aa442175

📥 Commits

Reviewing files that changed from the base of the PR and between 687464d and 3b0c7f4.

📒 Files selected for processing (7)
  • .cursorrules
  • .gitignore
  • AGENTS.md
  • CLAUDE.md
  • GEMINI.md
  • README.md
  • package.json
✅ Files skipped from review due to trivial changes (4)
  • CLAUDE.md
  • .cursorrules
  • GEMINI.md
  • .gitignore

@garlab garlab left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, consider comments

Comment thread AGENTS.md Outdated
Comment thread AGENTS.md

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@AGENTS.md`:
- Around line 29-38: The code fence in the directory tree listing at lines 29-38
in AGENTS.md is missing a language tag specification. Add the language tag
"text" to the opening fence delimiter to comply with markdown linting rules and
resolve the MD040 warning. Change the opening triple backticks followed by a
newline to triple backticks followed by "text" and then a newline.

In `@README.md`:
- Line 218: Correct the typo in the word "infomration" by changing it to
"information" in the sentence about technical resources for Maple Protocol. This
is a straightforward spelling correction where letters are out of order.
- Around line 55-58: The import statement in the README example is incomplete.
The code snippet uses `addresses['mainnet-prod'].MapleToken` but only imports
`mapleGlobals` from '`@maplelabs/maple-js`', leaving the `addresses` object
undefined. Update the import statement to destructure both `mapleGlobals` and
`addresses` from the '`@maplelabs/maple-js`' package so the example code will run
as written.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 6910a55e-7c13-459b-875e-8228b96986d2

📥 Commits

Reviewing files that changed from the base of the PR and between ed62b9a and 48cbd5f.

📒 Files selected for processing (7)
  • .cursorrules
  • .gitignore
  • AGENTS.md
  • CLAUDE.md
  • GEMINI.md
  • README.md
  • package.json
✅ Files skipped from review due to trivial changes (4)
  • CLAUDE.md
  • GEMINI.md
  • .gitignore
  • .cursorrules
🚧 Files skipped from review as they are similar to previous changes (1)
  • package.json

Comment thread AGENTS.md Outdated
Comment thread README.md
Comment thread README.md Outdated
@michaelsmueller

Copy link
Copy Markdown
Contributor Author

@coderabbitai resolve

@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown
✅ Action performed

Comments resolved. Approval is disabled; enable reviews.request_changes_workflow to allow explicit top-level @coderabbitai resolve or @coderabbitai approve commands.

@michaelsmueller michaelsmueller requested a review from garlab June 15, 2026 15:31
@michaelsmueller michaelsmueller merged commit 49d1ad8 into main Jun 16, 2026
5 checks passed
@michaelsmueller michaelsmueller deleted the offp-530 branch June 16, 2026 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants