Product identity editor (Slice 2): author a product's PRODUCT.md in-app

Each product on the Structure page gets an "Identity" action that opens the Markdown
editor (Edit/Preview, frontmatter-aware) wired to GET/PUT /products/{id}/identity, with
a starter PRODUCT.md template. Adds api.put. Saving makes the brief shared by every
agent across the product's teams (injected by the assembler from Slice 1).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
soroush.asadi
2026-06-15 18:16:59 +03:30
parent 56d41a231f
commit e579aaff91
2 changed files with 76 additions and 1 deletions
+1
View File
@@ -27,6 +27,7 @@ async function request<T>(method: string, url: string, body?: unknown): Promise<
export const api = {
get: <T>(url: string) => request<T>('GET', url),
post: <T>(url: string, body?: unknown) => request<T>('POST', url, body),
put: <T>(url: string, body?: unknown) => request<T>('PUT', url, body),
patch: <T>(url: string, body?: unknown) => request<T>('PATCH', url, body),
del: <T>(url: string) => request<T>('DELETE', url),
}