Skip to content

Add kitchen catalog, magnetic placement, and refined cabinet models - #1085

Merged
wass08 merged 5 commits into
pascalorg:mainfrom
sudhir9297:improvement
Oct 15, 2026
Merged

wass08 merged 5 commits into
pascalorg:mainfrom
sudhir9297:improvement

Conversation

@sudhir9297

@sudhir9297 sudhir9297 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Makes kitchen items discoverable through a searchable catalog with Add and Find-in-project actions, three-column cards, and isometric WebP thumbnails that show color on hover. Cabinet controls expose common settings first, with advanced construction options collapsed.

  • Adds magnetic ghost placement, adjacent-run joining, and add-beside/replace workflows with fit feedback.
  • Refines cabinet and appliance models while reducing geometry; fixes padding and wrapping in shared panel controls.
  • Adds run alignment, wall fillers, continuous toe-kicks, and advisory opening-clearance warnings during placement, movement, and inspection. Clearance checks account for host transforms and elevation; curved walls and wall openings remain outside the advisory calculation.
  • Shares finishing operations between inspectors and exported agent tools, with opt-in MCP registration and behavioral coverage. Existing scenes retain their default cabinet behavior.

How to test

  1. Start the editor with bun dev, open a project, and choose Build → Kitchen. Verify three-column cards, readable labels, gray thumbnails with color on hover, search, and Find-in-project selection.
  2. Place cabinets and appliances near a wall and an existing run. Verify the ghost snaps magnetically, add-beside and replace actions preview the result, and undo restores the previous run.
  3. Select a run and exercise alignment and wall fillers. Check toe-kicks and end finishes, then move a cabinet near an obstruction and verify the same clearance warning during placement, movement, and inspection. Inspect cabinet and appliance geometry in 3D.
  4. For agent integration, follow the nodes README to register the exported operation tools. Verify kitchen_finish_run applies the same run changes and kitchen_check_clearance returns the shared advisory notice.
  5. Automated validation completed: bun run check-types; bun run check (existing warnings remain); bun run skills:validate; and bunx turbo run test --filter=@pascal-app/nodes --filter=@pascal-app/editor --filter=@pascal-app/mcp --concurrency=1 (8,385 passed, one skipped). Public agent entry points were also smoke-tested in plain Node, and the tool contracts were bundled for a browser target.

Screenshots / screen recording

Not added yet.

Checklist

  • I've tested this locally with bun dev
  • My code follows the existing code style (run bun check to verify)
  • I've updated relevant documentation (if applicable)
  • This PR targets the main branch

Note

Medium Risk
Changes cabinet scene graph (fillers, alignment, hosted-item guards) and adds agent/MCP operations; heavily tested but touches core placement and kitchen run logic.

Overview
Replaces the standalone editor’s single Modular Cabinet tile with a full Kitchen flow: searchable build tools, a dedicated KitchenBrowser catalog (KitchenCollection, preset placement via beginKitchenPlacement), and Find in this project when searching. Command-palette commands register add/find kitchen actions via KitchenCommands in scene-loader.

Adds run finishing and advisory clearance: new wall-filler moduleKind, align/fill planners (finishKitchenRun, fitCabinetWallFillers, alignCabinetRun), shared cabinetPlacementNotice, and headless kitchen_finish_run / kitchen_check_clearance agent contracts plus MCP registration docs and integration tests.

Editor UX/engine: usePlacementNotice can read ephemeral placement previews without inserting a draft; BuildToolTile gains a neutral active tone; action/segmented controls wrap long labels. Cabinet geometry is refined (panels, appliances, hoods, sinks, drawers, lower tessellation) with continuous toe-kicks, wall-filler solids, and neighbor placement/finishing covered by new tests.

Reviewed by Cursor Bugbot for commit 8ca989b. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread packages/nodes/src/cabinet/tool.tsx Resolved
Comment thread packages/nodes/src/cabinet/tool.tsx Resolved
wass08 and others added 2 commits October 15, 2026 13:41
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- packages/mcp is main's again: no operationTools option on
  createPascalMcpServer and no dependency on @pascal-app/nodes. The kitchen
  tools' real-client test lives in the plugin and registers them as the
  docs say, through registerOperationTool; the agent guide and the
  pascal-3d skill leave plugin tools to the plugin's README.
- The plugin's agent-tools contracts are tested zod-only and unit-aware.
- Alt forces placement past a run's magnetic join too (E-004).
- A cabinet insertion that fails part-way undoes the writes it recorded.
- Clearance reads the level's obstacles in one pass per check, and only
  when a module has an opening; a check of a still cabinet copies nothing.
- The kitchen catalog reads the scene only while a search or the command
  palette lists placed items; fillers are no longer listed as cabinets.
- A free wall cabinet's height is the named WALL_CABINET_ELEVATION; the
  package description keeps its em dash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wass08

wass08 commented Oct 15, 2026

Copy link
Copy Markdown
Collaborator

Pushed two commits on top of this branch:

a54d46ca1 Merge main. The only conflicts were in agent-guide.ts and tool-workflows.md, where two new sections landed in the same spot. Main's newer Biome also reformats one cabinet geometry test.

8ca989be5 Review fixes.

MCP stays untouched. packages/mcp and skills/ are now byte-identical to main.

  • createPascalMcpServer gets no operationTools option, and MCP no longer depends on @pascal-app/nodes. That dependency pointed the wrong way (E-001).
  • The kitchen tools' real-client test moved to the plugin (nodes/src/agent-operations/kitchen-tools.test.ts). It registers through registerOperationTool, as agent-surfaces.md describes for plugin tools. The nodes README example now uses it too.
  • The agent guide and the pascal-3d skill no longer describe plugin tools that the MCP server never offers. The nodes README documents them.
  • New nodes/src/agent-tools/contracts.test.ts checks the plugin's contracts stay zod-only and pass the notation rules.

Behaviour

  • Alt works with the magnetic join. Alt now forces placement past a run's join as well (E-004). Before, the join could hard-block placement as "No space in this kitchen run" with no way out.
  • Rollback is back. A cabinet insertion that fails part-way undoes the writes it recorded and drops them from history.
  • Clearance check is much cheaper. It now reads the level's obstacles once per check instead of once per module, and only when some module has a door or drawer. A check of a cabinet that isn't moving no longer copies the whole scene.
  • The catalog only reads the scene when it needs to. Search results read it only while a query is typed, and the "Find …" commands only while the command palette is open. The "Add" commands register once.
  • No more fillers in search. findKitchenItems moved into the plugin with a test, and corner and wall fillers no longer show up as cabinets.
  • Nits: a free wall cabinet's 1.5 m height is now the named WALL_CABINET_ELEVATION, and package.json keeps its em dash.

Biome, skills validation, check-types, all package tests (MCP and CLI included) and the build pass locally on the merged result. The Alt and rollback fixes have no automated test, because the cabinet tool has no pointer-driven test harness. Worth a quick manual check: hold Alt near a run's end beside a wall.

🤖 Generated with Claude Code

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 8ca989b. Configure here.

wallConstraints: runWallConstraints(run, modules, nodes, { widthGrowth: module.width }),
fillerIds: new Set(
modules.filter((entry) => entry.moduleKind === 'corner-filler').map((entry) => entry.id),
),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Wall fillers ignored during insertion

Medium Severity

planRunModuleInsertion only marks corner-filler ids as fillers, so new wall-filler modules are treated as ordinary cabinets. Add-beside and magnetic join can then keep or shove those strips instead of absorbing them, which reopens the wall gap or rejects a fit that should succeed.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 8ca989b. Configure here.

'applianceInterior',
)
sprayHub.name = `${name}-spray-hub`
sprayHub.rotation.x = Math.PI / 2

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Dishwasher spray hub axis dropped

Low Severity

The dishwasher spray hub no longer sets rotation.x to lie along the spray arm. A default Y-up cylinder now reads as a vertical pin from the front, unlike the matching appliance hubs that still rotate PI / 2.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 8ca989b. Configure here.

@wass08
wass08 merged commit 44daf9e into pascalorg:main Oct 15, 2026
5 checks passed
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