@1kbirds/chidori-mock-linear
v0.1.0
Published
Linear mock app and tools for Chidori TypeScript agents.
Readme
@1kbirds/chidori-mock-linear
In-memory Linear mock for agent testing. The package provides:
- A deterministic in-memory issue tracker.
- A Linear-like client facade.
- A GraphQL-style API adapter.
- A React Linear review UI.
- Seed data for users, teams, workflow states, projects, cycles, labels, issues, and comments.
Supported Surface
Client methods:
viewerusersteamsworkflowStatesprojectscycleslabelsissuesissueissueCreateissueUpdateissueArchivecommentscommentCreategraphql
GraphQL-style endpoint:
POST /graphql
The adapter routes common operation names such as viewer, teams, issues, issue, issueCreate, issueUpdate, issueArchive, commentCreate, and comments.
Review
Run verification:
npm run build
npm testStart the React review app:
npm run dev:linearThen open http://127.0.0.1:5177/.
Manual review should confirm:
- Seeded teams, workflow states, project, cycle, labels, issues, and comments render.
- Creating an issue assigns the next team identifier.
- Updating state, assignee, priority, and description mutates shared service state.
- Comments can be added to an issue.
- Archived issues disappear from the default board.
- Reset restores deterministic seeded state.
Fidelity Notes
The mock intentionally keeps all state in memory. It focuses on common Linear workflows agents need to rehearse: listing teams/issues, creating issues, changing status/assignee/priority, adding comments, archiving issues, and filtering issues. Full Linear GraphQL schema parity, attachments, documents, notifications, integrations, views, roadmap features, and OAuth are deferred.
