Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .agents/code-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

## Exports
- If a particular interface or type is not exported but needs to be, change the file so it is exported.
- **No re-exports from other packages:** Do not re-export types or values from other libraries/packages. Consumers should import directly from the canonical source. This applies especially when refactoring or moving files — fix the references at each call site to point to the original package instead of creating proxy re-exports.

## String Comparison

Expand Down
8 changes: 4 additions & 4 deletions .agents/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This file outlines the testing strategy, patterns, and constraints for the Basep
- **Integration Tests:** Use the `.int.test.ts` suffix.
- **Test Helpers:** Place shared setup code or utilities in `src/tests/` or create `*.test-helper.ts` files.
- Before creating mock data or test objects, check for an existing `*.test-helper.ts` or `*.test-utils.ts` file in the same package (see [Test Helper Reference](#test-helper-reference) below).
- Example: to mock a `ProjectDefinition`, use `createTestProjectDefinition()` from `packages/project-builder-lib/src/definition/project-definition-container.test-utils.ts`.
- Example: to mock a `ProjectDefinition`, use `createTestProjectDefinition()` from `packages/project-builder-lib/src/testing/project-definition-container.test-helper.ts`.
- If no helper exists and the mock would be useful across multiple test files, create a new `*.test-helper.ts` file following the factory function pattern (e.g., `createTest<ObjectName>()`) and add an entry to the reference table below.
- **Manual Mocks:** Place manual mocks in `src/__mocks__/`.

Expand Down Expand Up @@ -103,10 +103,10 @@ const files = await globby(['**/*.ts'], { fs: fsAdapter });
| sync | `src/tests/logger.test-utils.ts` | `createTestLogger`, `createConsoleLogger` |
| sync | `src/templates/extractor/test-utils/plugin-test-utils.ts` | `createMockPluginApi`, `createPluginInstance` |
| ui-components | `src/tests/render.test-helper.tsx` | `renderWithProviders` |
| project-builder-lib | `src/definition/project-definition-container.test-utils.ts` | `createTestProjectDefinition`, `createTestProjectDefinitionContainer` |
| project-builder-lib | `src/schema/definition.test-helper.ts` | `createTestFeature`, `createTestModel`, `createTestScalarField` |
| project-builder-lib | `src/testing/project-definition-container.test-helper.ts` | `createTestProjectDefinition`, `createTestProjectDefinitionContainer`, `createTestEntityServiceContext` |
| project-builder-lib | `src/testing/definition-helpers.test-helper.ts` | `createTestFeature`, `createTestModel`, `createTestScalarField` |
| project-builder-lib | `src/plugins/plugins.test-utils.ts` | `createTestPluginMetadata`, `createTestMigration` |
| project-builder-lib | `src/references/expression-stub-parser.test-helper.ts` | `stubParser`, `StubParserWithSlots` |
| project-builder-lib | `src/testing/expression-stub-parser.test-helper.ts` | `stubParser`, `StubParserWithSlots` |
| code-morph | `src/morphers/tests/morpher.test-helper.ts` | `runMorpherTests` |
| project-builder-server | `src/tests/chokidar.test-helper.ts` | `MockFSWatcher`, `emitMockFsWatcherEvent` |
| project-builder-cli | `e2e/fixtures/server-fixture.test-helper.ts` | Playwright test fixtures (`test`, `addProject`) |
5 changes: 5 additions & 0 deletions .changeset/add-immutable-set-utility.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@baseplate-dev/utils': patch
---

Add `immutableSet` utility for immutable deep updates to objects and arrays.
7 changes: 7 additions & 0 deletions .changeset/mcp-definition-entity-actions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@baseplate-dev/project-builder-server': patch
'@baseplate-dev/project-builder-lib': patch
'@baseplate-dev/project-builder-dev': patch
---

Add MCP actions for reading and writing project definition entities, including draft session support for staging changes before committing.
Loading