0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
Commit graph

6 commits

Author SHA1 Message Date
Ehindero Israel
9c1df2e153
Refactor GitHub triage command and consolidate skills (#19106)
Co-authored-by: Ehindero Israel <ehindero@Ehinderos-MacBook-Pro.local>
Co-authored-by: Mastra Code (openai/gpt-5.5) <noreply@mastra.ai>
2026-07-10 16:17:08 +02:00
Abhi Aiyer
b2d549369c
chore: consolidate slash commands to .mastracode as single source of truth (#14693)
## Summary

Move all slash command files to `.mastracode/commands/` and replace the
files in `.claude/commands/`, `.cursor/commands/`, and
`.opencode/command/` with symlinks pointing back to
`.mastracode/commands/`.

This means edits to any command file only need to happen in one place.

## Changes

- Created `.mastracode/commands/` with all 12 command files (canonical
copies)
- Replaced all files in `.claude/commands/`, `.cursor/commands/`,
`.opencode/command/` with symlinks
- Updated `AGENTS.md` to reference `.mastracode/commands/changeset.md`

## Test Plan

- Verified all symlinks resolve correctly (`cat` through each directory
returns identical content)
- No code changes — only config/docs files affected

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **New Features**
* Added comprehensive command documentation and workflow guidance for
managing GitHub issues, pull requests, changesets, and CI/CD processes.
* Introduced structured command specifications for bulk issue
resolution, debugging workflows, and collaborative code review
processes.

* **Documentation**
* Added detailed instructions for conventional commits, PR creation,
linting fixes, and changelog management.
  * Centralized command definitions across development tools.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Mastra Code (anthropic/claude-opus-4-6) <noreply@mastra.ai>
2026-03-25 14:26:55 -05:00
Daniel Lew
ec02fe1fcb
feat: add /gh-bulk-issues slash command for parallel issue solving (#14041)
Co-authored-by: Mastra Code (anthropic/claude-opus-4-6) <noreply@mastra.ai>
2026-03-09 17:54:59 -04:00
Abhi Aiyer
cb8c38e6f8
feat(memory, opencode): add @mastra/opencode plugin and standalone observe() API (#12925)
Adds `@mastra/opencode` — a plugin that brings Mastra Observational
Memory into [OpenCode](https://opencode.ai) sessions. Also enhances the
core `observe()` API to support external integrations.

The plugin hooks into OpenCode's lifecycle to automatically observe
conversations, inject compressed observations into the system prompt,
and discard already-observed messages — keeping context lean as
conversations grow.

```ts
// .opencode/mastra.json
{ "model": "google/gemini-2.5-flash", "scope": "thread" }
```

```ts
// Standalone observe() with external messages and lifecycle hooks
await om.observe({
  threadId,
  messages: externalMessages,
  hooks: {
    onObservationStart: () => showToast('Observing...'),
    onObservationEnd: () => showToast('Done!'),
  },
});
```

Core `@mastra/memory` changes: `observe()` now takes object params
(breaking), accepts external messages without double-storing, includes
threshold checks, and exports `OBSERVATION_CONTEXT_PROMPT` /
`OBSERVATION_CONTINUATION_HINT` for reuse by integrations.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* OpenCode plugin integration for Observational Memory with session
wiring and status reporting
* Standalone observe() API that accepts external messages and lifecycle
hooks
(onObservationStart/onObservationEnd/onReflectionStart/onReflectionEnd)
* New public observation helpers and prompts for injecting observations
and continuation hints
* Progress/status tools and a memory observations command plus an
example standalone observe script

* **Breaking**
* observe() signature changed to an object parameter: update calls to
use { threadId, resourceId, messages, hooks }

* **Tests**
* Added test suite covering the standalone observe() API and hook
behavior
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Tyler Barnes <tylerdbarnes@gmail.com>
Co-authored-by: Mastra Code <noreply@mastra.ai>
2026-02-11 14:20:05 -08:00
Roamin
1fccbc70cd
fix(.opencode): update make-moves command to use OpenCode argument sy… (#11524) 2026-01-05 16:28:21 +01:00
Abhi Aiyer
4c621669f4
fix(convex): add missing title field to threads table schema (#11356)
The Convex threads table schema was missing the `title` field, causing
this error when creating threads:

```
Error: Failed to insert or update a document in table "mastra_threads" 
because it does not match the schema: Object contains extra field `title` 
that is not in the validator.
```

The root cause was that the Convex schema was hardcoded and got out of
sync with the core `TABLE_SCHEMAS`. This happened because importing from
`@mastra/core/storage` pulls in Node.js dependencies that break in
Convex's sandboxed schema evaluation environment.

The fix adds a new `@mastra/core/storage/constants` export path that
only includes schema constants without Node.js deps. The Convex schema
now dynamically builds from `TABLE_SCHEMAS`, so it stays in sync
automatically.

Also added schema sync tests to catch drift early.

Fixes #11319

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Bug Fixes**
* Fixed a schema mismatch in the Convex threads table that prevented
inserts/updates.

* **New Features**
* Dynamic schema construction aligned with core storage constants to
keep table definitions in sync.
* Public exports added for mastraThreadsTable and mastraMessagesTable
(and related table name constants) for easier integration.

* **Tests**
* Added schema synchronization tests to detect missing fields between
core schemas and Convex tables.

* **Documentation**
* Added contributor workflow and PR guidance docs and a build/config
helper.

<sub>✏️ Tip: You can customize this high-level summary in your review
settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-12-22 14:47:36 -08:00