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:
@@ -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),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user