diff options
| author | soryu <soryu@soryu.co> | 2026-05-17 21:22:34 +0100 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-05-17 21:22:34 +0100 |
| commit | 857e717e6343fa5c2ae96664bdc64741d5ba6830 (patch) | |
| tree | 0f3898d9e2e2a3c312358dbf70c44f4ab1cf3648 /makima/src/llm/templates.rs | |
| parent | ce29ae801bcc5a0ba76d5a8d1565242ab267a47d (diff) | |
| download | soryu-857e717e6343fa5c2ae96664bdc64741d5ba6830.tar.gz soryu-857e717e6343fa5c2ae96664bdc64741d5ba6830.zip | |
chore: remove LLM module + all dependent surfacesremove-llm
Wholesale removal of the LLM integration layer. ~14,200 LOC deleted
across backend and frontend. All chat-driven UIs go with it.
## Backend
- Delete `src/llm/` (7,400 LOC): claude/groq clients, contract_tools,
contract_evaluator, discuss_tools, mesh_tools, phase_guidance,
task_output, templates, markdown round-trip, tools, transcript_analyzer.
- Delete handlers wholly dependent on LLM:
- `chat.rs` (file-level LLM chat at /files/{id}/chat)
- `mesh_chat.rs` (mesh & task LLM chat + history)
- `templates.rs` (/contract-types listing)
- Strip LLM uses from `mesh_daemon.rs`:
- `compute_action_directive` (used phase_guidance::check_deliverables_met
to nudge supervisors with "all tasks done" messages). The auto-PR
path below still fires when all tasks finish, so no behaviour lost.
- `crate::llm::markdown_to_body` → inline 1-line replacement that
wraps markdown content in a single BodyElement::Markdown. The
editor re-parses on display, so round-trip is preserved.
- Drop routes: /files/{id}/chat, /mesh/chat, /mesh/chat/history,
/mesh/tasks/{id}/chat, /contract-types.
- Drop the matching openapi registrations.
## Frontend
- Delete components that were LLM-only:
- `mesh/UnifiedMeshChatInput.tsx`
- `listen/DiscussContractModal.tsx`
- `listen/TranscriptAnalysisPanel.tsx`
- `listen/ContractPickerModal.tsx`
- `files/CliInput.tsx`
- Delete the entire /listen page (its primary value-add was
voice → LLM analysis → contract creation; without LLM the page is
just a transcript display with no obvious user purpose).
- Delete `hooks/useMeshChatHistory.ts` and `lib/listenApi.ts`
(transcript-analysis API client to the already-Phase-5-removed
listen handlers).
- Strip api.ts of LLM exports: LlmModel, ChatMessage/Request/Response,
UserQuestion/Answer, chatWithFile, MeshChat* types & functions,
getMeshChatHistory, clearMeshChatHistory, chatWithMeshContext,
ContractTypeTemplate, listContractTypes, chatWithContract,
getContractChatHistory, clearContractChatHistory, discussContract,
PhaseDefinition, DeliverableDefinition.
- mesh.tsx: drop UnifiedMeshChatInput render + the chatContext memo +
handleTaskUpdatedFromCli (only consumer was the input).
- files.tsx: drop CliInput render + handleGenerateFromElement +
handleBodyUpdate + handleClearFocus + suggestedPrompt state (all
CliInput-only).
- NavStrip: drop the /listen link.
- main.tsx: drop the /listen route.
## Net diff: 37 files changed, 58 insertions, 14,281 deletions.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'makima/src/llm/templates.rs')
| -rw-r--r-- | makima/src/llm/templates.rs | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/makima/src/llm/templates.rs b/makima/src/llm/templates.rs deleted file mode 100644 index 48b7515..0000000 --- a/makima/src/llm/templates.rs +++ /dev/null @@ -1,80 +0,0 @@ -//! Contract type template definitions. -//! -//! Defines the available contract types and their workflow phases. - -use serde::{Deserialize, Serialize}; -use utoipa::ToSchema; - -// ============================================================================= -// Contract Type Templates (Workflow Definitions) -// ============================================================================= - -/// A contract type template defining a workflow -#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)] -#[serde(rename_all = "camelCase")] -pub struct ContractTypeTemplate { - /// Unique identifier (e.g., 'simple', 'specification', 'feature-development') - pub id: String, - /// Display name - pub name: String, - /// What this contract type is for - pub description: String, - /// Ordered list of phases in the workflow - pub phases: Vec<String>, - /// Starting phase - pub default_phase: String, - /// True for built-in types ('simple', 'specification') - pub is_builtin: bool, -} - -/// Get all available contract type templates -pub fn all_contract_types() -> Vec<ContractTypeTemplate> { - vec![ - simple_contract_type(), - specification_contract_type(), - execute_contract_type(), - ] -} - -/// Simple contract type with basic plan/execute workflow -fn simple_contract_type() -> ContractTypeTemplate { - ContractTypeTemplate { - id: "simple".to_string(), - name: "Simple".to_string(), - description: "A basic workflow for straightforward tasks with planning and execution phases." - .to_string(), - phases: vec!["plan".to_string(), "execute".to_string()], - default_phase: "plan".to_string(), - is_builtin: true, - } -} - -/// Specification contract type with full research-to-review workflow -fn specification_contract_type() -> ContractTypeTemplate { - ContractTypeTemplate { - id: "specification".to_string(), - name: "Specification".to_string(), - description: "A comprehensive workflow for complex projects requiring research, specification, planning, execution, and review.".to_string(), - phases: vec![ - "research".to_string(), - "specify".to_string(), - "plan".to_string(), - "execute".to_string(), - "review".to_string(), - ], - default_phase: "research".to_string(), - is_builtin: true, - } -} - -/// Execute-only contract type for immediate task execution -fn execute_contract_type() -> ContractTypeTemplate { - ContractTypeTemplate { - id: "execute".to_string(), - name: "Execute".to_string(), - description: "A minimal workflow with only an execute phase for immediate task execution without planning documents.".to_string(), - phases: vec!["execute".to_string()], - default_phase: "execute".to_string(), - is_builtin: true, - } -} |
