feat: finish Stage 2B continuous sorter realism and local deploy

Unify CAD conveyor on / and /details, add RealSense D435i + contact paddle
physics, keep items moving through scan, lock 7×10 drop validation, and
ship Stage 2 artifacts with production on :3100 (permanent HTTPS still blocked).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Даня Архипов
2026-07-30 12:00:09 +00:00
parent 40e9b18e8d
commit acc59ec912
81 changed files with 2530 additions and 878 deletions

View File

@@ -1,17 +1,13 @@
import { test, expect } from '@playwright/test';
import { ensureRunning, openPausedCase } from './helpers';
test.describe('safety', () => {
test.beforeEach(async ({ page }) => {
await page.goto('/');
await expect(page.locator('canvas')).toBeVisible({ timeout: 60_000 });
await expect(page.getByTestId('demo-hud')).toBeVisible();
// Speed up to reach fault phases sooner
await page.getByTestId('demo-speed-2').click();
});
test.setTimeout(90_000);
test('jam case shows FAULT in status or command', async ({ page }) => {
await page.getByTestId('demo-case-8').click();
await expect(page.getByTestId('demo-case-label')).toHaveText('9/10');
await openPausedCase(page, 9, '1');
await expect(page.getByTestId('demo-case-label')).toHaveText('10/11');
await ensureRunning(page);
await expect
.poll(
@@ -20,14 +16,15 @@ test.describe('safety', () => {
const command = (await page.getByTestId('demo-command').textContent()) ?? '';
return `${status} ${command}`;
},
{ timeout: 25_000 },
{ timeout: 20_000, intervals: [50, 100, 100] },
)
.toMatch(/FAULT/i);
});
test('emergency case shows EMERGENCY in status or command', async ({ page }) => {
await page.getByTestId('demo-case-9').click();
await expect(page.getByTestId('demo-case-label')).toHaveText('10/10');
await openPausedCase(page, 10, '1');
await expect(page.getByTestId('demo-case-label')).toHaveText('11/11');
await ensureRunning(page);
await expect
.poll(
@@ -36,7 +33,7 @@ test.describe('safety', () => {
const command = (await page.getByTestId('demo-command').textContent()) ?? '';
return `${status} ${command}`;
},
{ timeout: 25_000 },
{ timeout: 20_000, intervals: [50, 100, 100] },
)
.toMatch(/EMERGENCY/i);
});