Skip to content

docs: Add AGENTS.md#1165

Open
alexs-mparticle wants to merge 3 commits intodevelopmentfrom
docs/no-jira-agents
Open

docs: Add AGENTS.md#1165
alexs-mparticle wants to merge 3 commits intodevelopmentfrom
docs/no-jira-agents

Conversation

@alexs-mparticle
Copy link
Collaborator

Background

Introduces an AGENTS.md file

What Has Changed

  • Add AGENTS.md file

Screenshots/Video

  • {Include any screenshots or video demonstrating the new feature or fix, if applicable}

Checklist

  • I have performed a self-review of my own code.
  • I have made corresponding changes to the documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have tested this locally.

Additional Notes

  • {Any additional information or context relevant to this PR}

Reference Issue (For employees only. Ignore if you are an outside contributor)

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an AGENTS.md guide intended to orient AI coding agents (and contributors) to the mParticle Web SDK’s architecture, workflows, and conventions.

Changes:

  • Introduces a new AGENTS.md document with common SDK guidance plus Web SDK–specific architecture and workflow notes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

AGENTS.md Outdated
Comment on lines 354 to 358
Copy link

Copilot AI Feb 16, 2026

Choose a reason for hiding this comment

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

The Key Files Reference table lists mp-instance.ts as "~61K" lines, but the current file is ~1.6K lines. This looks stale and may confuse contributors; please update the line count (or remove line counts if they’re expected to drift).

Suggested change
| Feature | Main Files | Line Count |
|---------|-----------|------------|
| Entry Point | `mparticle-instance-manager.ts` | Entry |
| Core Instance | `mp-instance.ts` | ~61K |
| Identity | `identity.js`, `identity-utils.ts`, `identity.interfaces.ts` | 1,749+ |
| Feature | Main Files | Size |
|---------|-----------|------|
| Entry Point | `mparticle-instance-manager.ts` | Entry / Small |
| Core Instance | `mp-instance.ts` | Large |
| Identity | `identity.js`, `identity-utils.ts`, `identity.interfaces.ts` | Medium |

Copilot uses AI. Check for mistakes.
AGENTS.md Outdated
Copy link
Contributor

@jaissica12 jaissica12 Feb 16, 2026

Choose a reason for hiding this comment

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

Here are the updated line counts:
| Entry Point | mparticle-instance-manager.ts | ~500 |
| Core Instance | mp-instance.ts | ~1.6K |
| Identity | identity.js, identity-utils.ts, identity.interfaces.ts | ~2.3K |

As discussed in person I believe we should not be adding line count here


### Project Structure

```
Copy link
Contributor

Choose a reason for hiding this comment

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

We should add something like this to match current project structure above /src/

/                                       # Repo root
  jest.config.js                # Jest config for TypeScript unit tests

and remove jest.config.js from line 200

AGENTS.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

lets remove this jest.config.js based on above comment

AGENTS.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets also add
jest/*.spec.ts # Jest unit tests

Copy link
Contributor

@jaissica12 jaissica12 left a comment

Choose a reason for hiding this comment

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

Added couple of comments in Project Structure and Key Files Reference section!

AGENTS.md Outdated
Copy link
Contributor

@jaissica12 jaissica12 Feb 16, 2026

Choose a reason for hiding this comment

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

#Jest unit tests only (TypeScript)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
- Remove line count column from Key Files Reference table
- Move jest.config.js to root level in Project Structure
- Add jest/*.spec.ts to test directory structure
- Clarify test command as "unit tests" for better precision
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments