chore: auto-commit (23 archivos)
- app.md - backend/auth.go - backend/db.go - backend/dist/assets/index-CPqSy0gZ.js - backend/dist/index.html - backend/handlers.go - backend/main.go - frontend/src/App.tsx - frontend/src/api.ts - frontend/src/components/KanbanCard.tsx - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import type {
|
||||
Board,
|
||||
Card,
|
||||
CardHistoryResponse,
|
||||
CardMessage,
|
||||
Column,
|
||||
Metrics,
|
||||
MetricsFilter,
|
||||
@@ -22,6 +23,10 @@ export function getBoard(): Promise<Board> {
|
||||
return fetchJSON("/board");
|
||||
}
|
||||
|
||||
export function getFlags(): Promise<Record<string, boolean>> {
|
||||
return fetchJSON("/flags");
|
||||
}
|
||||
|
||||
export function createColumn(name: string): Promise<Column> {
|
||||
return fetchJSON("/columns", { method: "POST", body: JSON.stringify({ name }) });
|
||||
}
|
||||
@@ -112,6 +117,25 @@ export function cardHistory(id: string): Promise<CardHistoryResponse> {
|
||||
return fetchJSON(`/cards/${id}/history`);
|
||||
}
|
||||
|
||||
export function listCardMessages(id: string): Promise<CardMessage[]> {
|
||||
return fetchJSON(`/cards/${id}/messages`);
|
||||
}
|
||||
|
||||
export function createCardMessage(id: string, body: string): Promise<CardMessage> {
|
||||
return fetchJSON(`/cards/${id}/messages`, {
|
||||
method: "POST",
|
||||
body: JSON.stringify({ body }),
|
||||
});
|
||||
}
|
||||
|
||||
export function deleteCardMessage(cardId: string, messageId: string): Promise<void> {
|
||||
return fetchJSON(`/cards/${cardId}/messages/${messageId}`, { method: "DELETE" });
|
||||
}
|
||||
|
||||
export function duplicateCard(id: string): Promise<Card> {
|
||||
return fetchJSON(`/cards/${id}/duplicate`, { method: "POST" });
|
||||
}
|
||||
|
||||
export interface ChatMessage {
|
||||
role: "user" | "assistant";
|
||||
content: string;
|
||||
|
||||
Reference in New Issue
Block a user