diff options
| author | soryu <soryu@soryu.co> | 2026-01-26 19:30:50 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-26 19:30:50 +0000 |
| commit | ccfcf753f67541b5fba8746f4f60d7498a54f44a (patch) | |
| tree | 1f469fe0fa7affa3a2d92dafafde46ec89391dc5 /makima/frontend/src/lib | |
| parent | cb4f2fc40dbabb40de948512eee74c7e46264665 (diff) | |
| download | soryu-ccfcf753f67541b5fba8746f4f60d7498a54f44a.tar.gz soryu-ccfcf753f67541b5fba8746f4f60d7498a54f44a.zip | |
[WIP] Heartbeat checkpoint - 2026-01-26 19:30:50 UTC
Diffstat (limited to 'makima/frontend/src/lib')
| -rw-r--r-- | makima/frontend/src/lib/api.ts | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/makima/frontend/src/lib/api.ts b/makima/frontend/src/lib/api.ts index 64ce591..9af7f3c 100644 --- a/makima/frontend/src/lib/api.ts +++ b/makima/frontend/src/lib/api.ts @@ -2045,42 +2045,6 @@ export async function getTemplate(id: string): Promise<FileTemplate> { } // ============================================================================= -// Contract Type Templates (Workflow Definitions) -// ============================================================================= - -/** A contract type template defining a workflow */ -export interface ContractTypeTemplate { - /** Unique identifier (e.g., 'simple', 'specification', 'feature-development') */ - id: string; - /** Display name */ - name: string; - /** What this contract type is for */ - description: string; - /** Ordered list of phases in the workflow */ - phases: string[]; - /** Starting phase */ - defaultPhase: string; - /** True for built-in types ('simple', 'specification') */ - isBuiltin: boolean; -} - -export interface ListContractTypesResponse { - contractTypes: ContractTypeTemplate[]; -} - -/** - * List all available contract type templates. - * Returns built-in types (simple, specification) and any custom types. - */ -export async function listContractTypes(): Promise<ListContractTypesResponse> { - const res = await authFetch(`${API_BASE}/api/v1/contract-types`); - if (!res.ok) { - throw new Error(`Failed to list contract types: ${res.statusText}`); - } - return res.json(); -} - -// ============================================================================= // Supervisor Question Types and Functions // ============================================================================= |
