Skip to content

chore: add an AGENTS.md#2528

Merged
WilliamBergamin merged 4 commits intomainfrom
add-agents-md
Mar 2, 2026
Merged

chore: add an AGENTS.md#2528
WilliamBergamin merged 4 commits intomainfrom
add-agents-md

Conversation

@WilliamBergamin
Copy link
Copy Markdown
Contributor

Summary

This PRs aims to add an AGENTS.md to help LLM help maintainers maintain this project

Requirements

@WilliamBergamin WilliamBergamin requested a review from zimeg March 2, 2026 17:32
@WilliamBergamin WilliamBergamin self-assigned this Mar 2, 2026
@WilliamBergamin WilliamBergamin requested a review from a team as a code owner March 2, 2026 17:32
@WilliamBergamin WilliamBergamin added semver:patch enhancement M-T: A feature request for new functionality labels Mar 2, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 2, 2026

⚠️ No Changeset found

Latest commit: 5745f14

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.17%. Comparing base (29063e0) to head (5745f14).
⚠️ Report is 3 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2528   +/-   ##
=======================================
  Coverage   93.17%   93.17%           
=======================================
  Files          40       40           
  Lines       11384    11384           
  Branches      726      726           
=======================================
  Hits        10607    10607           
  Misses        765      765           
  Partials       12       12           
Flag Coverage Δ
cli-hooks 95.42% <ø> (ø)
cli-test 94.79% <ø> (ø)
oauth 77.39% <ø> (ø)
socket-mode 61.87% <ø> (ø)
web-api 98.12% <ø> (ø)
webhook 96.66% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Member

@zimeg zimeg left a comment

Choose a reason for hiding this comment

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

@WilliamBergamin The agents come alive! 🤖 ✨

Thanks for bringing these initializations to the node packages - I'm leaving a few notes from unstaged changes but am so excited to refine this ongoing!

Comment thread .claude/settings.json
Comment thread AGENTS.md
| `OptionalTeamAssignable` | Optional `team_id` |
| `LocaleAware` | Optional `include_locale` |

Also reuse namespace-specific mixins from the same file (e.g., `Channel`, `ChannelAndTS`, `AsUser` in `chat.ts`).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

📣 note: This is a good practice to continue for now, but I'd be so curious in "flattening" these arguments for each method...

Comment thread AGENTS.md Outdated
Comment on lines +267 to +289
## Code Generation Details

### `scripts/generate-web-api-types.sh`

Entry point for response type generation. It:

1. Clones or pulls `slackapi/java-slack-sdk` into `tmp/`
2. Runs `npm install` in `scripts/` to install quicktype
3. Executes `scripts/code_generator.rb`
4. Runs `npm run lint:fix` on `packages/web-api`

### `scripts/code_generator.rb`

The Ruby script that does the actual generation:

- Iterates over JSON files in `tmp/java-slack-sdk/json-logs/samples/api/`
- Converts method names to PascalCase (e.g., `chat.postMessage` → `ChatPostMessage`)
- Runs quicktype with `--just-types --all-properties-optional` to generate TypeScript interfaces
- Prepends a "DO NOT EDIT" banner and `import type { WebAPICallResult } from '../../WebClient'`
- Converts the root interface to a type alias intersected with `WebAPICallResult`
- Regenerates `packages/web-api/src/types/response/index.ts` with all exports
- Special handling: `admin.analytics.getFile` exports multiple types (`AdminAnalyticsGetFileResponse`, `AdminAnalyticsMemberDetails`, `AdminAnalyticsPublicChannelDetails`, `AdminAnalyticsPublicChannelMetadataDetails`)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🪓 suggestion(non-blocking): I'm unsure if this is covered alright earlier, but I'd want to avoid adding too much about this script unless it's needed!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I agree 💯 I also saw this and hesitated, axing it now 🪓

Comment thread AGENTS.md
- Streaming support via `chatStream()` using `ChatStreamer`
- Rate limiting with emitted events

## Common Pitfalls
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🌟 praise: These are nice callouts! I might have need this sometimes before...

Copy link
Copy Markdown
Contributor

@srtaalej srtaalej left a comment

Choose a reason for hiding this comment

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

this looks great! with @zimeg 's suggestions i think this is ready to merge 😁 🚀

@WilliamBergamin WilliamBergamin enabled auto-merge (squash) March 2, 2026 19:48
@WilliamBergamin WilliamBergamin merged commit 57f4f22 into main Mar 2, 2026
57 of 58 checks passed
@WilliamBergamin WilliamBergamin deleted the add-agents-md branch March 2, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement M-T: A feature request for new functionality semver:patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants