chore(web-ui): regen api types — document-generation endpoints (#214) #387

Merged
chaim merged 1 commits from worktree-regen-api-types-214 into main 2026-06-30 20:06:32 +00:00
Owner

מה ולמה

Production מגישה כעת 2 endpoints חדשים להפקת-מסמכים (נפרסו עם #214/#386) שלא היו ב-web-ui/src/lib/api/types.ts. הרצתי npm run api:types (מושך את ה-OpenAPI מ-PROD: https://legal-ai.nautilus.marcusgroup.org/openapi.json) כדי ליישר את ה-generated client למשטח הפרוס.

הרגנרציה הוסיפה 3 paths (תוספות בלבד, פלט-גנרטור — לא ערוך-יד):

  • POST /api/cases/{case_number}/generate/party-claims-summary (#214)
  • POST /api/cases/{case_number}/generate/interim-draft (#214)
  • /api/status-model (drift שהצטבר מאז הרגנרציה האחרונה)

Invariants — הצהרה (חובה)

  • נוגע / מקיים:
    • X6 (UI↔API contract in sync) — ה-generated types תואמים כעת למשטח-ה-API הפרוס; אין drift.
    • G2 (מקור-אמת יחיד / single generated client) — פלט openapi-typescript בלבד; לא נגעתי ידנית בקובץ המגונרט.

צ'קליסט — פרוטוקול כתיבת-קוד

  • קראתי את docs/spec/00-constitution.md + ספ-התחום הרלוונטי (X6) לפני הכתיבה
  • השינוי לא יוצר מסלול מקביל ליכולת קיימת (G2) ולא מתקן תסמין בקריאה (G1)
  • לא הוספתי מגע-Paperclip מחוץ ל-Platform Port (G12) — לא רלוונטי, רק regen של types
  • אין בליעה שקטה של שגיאות — לא רלוונטי
  • בדקתי מול docs/spec/gap-audit.md — לא נגעתי ב-GAP/FU ממופה
  • בדיקות עוברות — npx tsc --noEmit clean
  • לא data-migration

אימות

  • npm run api:types (מ-web-ui/) — משך OpenAPI מ-PROD, כתב מחדש את src/lib/api/types.ts.
  • git diff — +148 שורות, תוספות בלבד (0 הסרות), 3 paths חדשים.
  • npx tsc --noEmit — עובר נקי (exit 0). הרצתי tsc בלבד (לא next build) כי symlink של node_modules ב-worktree שובר Turbopack.

🤖 Generated with Claude Code

## מה ולמה Production מגישה כעת 2 endpoints חדשים להפקת-מסמכים (נפרסו עם #214/#386) שלא היו ב-`web-ui/src/lib/api/types.ts`. הרצתי `npm run api:types` (מושך את ה-OpenAPI מ-PROD: `https://legal-ai.nautilus.marcusgroup.org/openapi.json`) כדי ליישר את ה-generated client למשטח הפרוס. הרגנרציה הוסיפה 3 paths (תוספות בלבד, פלט-גנרטור — **לא** ערוך-יד): - `POST /api/cases/{case_number}/generate/party-claims-summary` (#214) - `POST /api/cases/{case_number}/generate/interim-draft` (#214) - `/api/status-model` (drift שהצטבר מאז הרגנרציה האחרונה) ## Invariants — הצהרה (חובה) - **נוגע / מקיים:** - **X6 (UI↔API contract in sync)** — ה-generated types תואמים כעת למשטח-ה-API הפרוס; אין drift. - **G2 (מקור-אמת יחיד / single generated client)** — פלט `openapi-typescript` בלבד; לא נגעתי ידנית בקובץ המגונרט. ## צ'קליסט — פרוטוקול כתיבת-קוד - [x] קראתי את `docs/spec/00-constitution.md` + ספ-התחום הרלוונטי (X6) לפני הכתיבה - [x] השינוי **לא** יוצר מסלול מקביל ליכולת קיימת (G2) ולא מתקן תסמין בקריאה (G1) - [x] **לא** הוספתי מגע-Paperclip מחוץ ל-Platform Port (G12) — לא רלוונטי, רק regen של types - [x] אין בליעה שקטה של שגיאות — לא רלוונטי - [x] בדקתי מול `docs/spec/gap-audit.md` — לא נגעתי ב-GAP/FU ממופה - [x] בדיקות עוברות — `npx tsc --noEmit` clean - [x] **לא** data-migration ## אימות - `npm run api:types` (מ-`web-ui/`) — משך OpenAPI מ-PROD, כתב מחדש את `src/lib/api/types.ts`. - `git diff` — +148 שורות, תוספות בלבד (0 הסרות), 3 paths חדשים. - `npx tsc --noEmit` — עובר נקי (exit 0). הרצתי tsc בלבד (לא `next build`) כי symlink של node_modules ב-worktree שובר Turbopack. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chaim added 1 commit 2026-06-30 20:06:05 +00:00
chore(web-ui): regen api types — document-generation endpoints (#214)
All checks were successful
G12 Leak-Guard / leak-guard (pull_request) Successful in 5s
Lint — undefined names / undefined-names (pull_request) Successful in 10s
40a2032e0d
Regenerate web-ui/src/lib/api/types.ts from the PROD OpenAPI schema
(https://legal-ai.nautilus.marcusgroup.org/openapi.json) via `npm run api:types`.

Adds 3 drifted paths (pure additions, generated — not hand-edited):
- POST /api/cases/{case_number}/generate/party-claims-summary  (#214)
- POST /api/cases/{case_number}/generate/interim-draft          (#214)
- /api/status-model                                             (drift)

Invariants:
- X6 (UI<->API contract in sync) — generated types now match the deployed surface.
- G2 (single generated client) — openapi-typescript output only, no hand edits.

Verified: `npx tsc --noEmit` passes clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
chaim merged commit 88977b2f10 into main 2026-06-30 20:06:32 +00:00
chaim deleted branch worktree-regen-api-types-214 2026-06-30 20:06:32 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ezer-mishpati/legal-ai#387