From a01fcef941f3f963a2a89bc95786d74690cefe2e Mon Sep 17 00:00:00 2001 From: bernatsampera Date: Mon, 10 Aug 2026 09:27:50 +0200 Subject: [PATCH] Remove dead model code: FlowManifest, FlowStep, module version field Co-Authored-By: Claude Opus 4.6 (1M context) --- gcontext/dashboard.py | 1 - gcontext/models.py | 15 --------------- web/src/Modules.jsx | 1 - 3 files changed, 17 deletions(-) diff --git a/gcontext/dashboard.py b/gcontext/dashboard.py index 0117cfb..9359695 100644 --- a/gcontext/dashboard.py +++ b/gcontext/dashboard.py @@ -86,7 +86,6 @@ async def api_modules(request: Request) -> JSONResponse: result.append({ "name": mname, "description": mod.description, - "version": mod.version, "tags": mod.tags, "files": state.module_files(root, mname), }) diff --git a/gcontext/models.py b/gcontext/models.py index 07be592..055c9c6 100644 --- a/gcontext/models.py +++ b/gcontext/models.py @@ -6,7 +6,6 @@ from pydantic import BaseModel class ModuleManifest(BaseModel): name: str description: str - version: str = "0.1.0" author: str = "" tags: list[str] = [] @@ -16,17 +15,3 @@ class ConnectionManifest(BaseModel): description: str = "" secrets: list[str] = [] deps: list[str] = [] - - -class FlowStep(BaseModel): - id: str - description: str = "" - needs: list[str] = [] - produces: list[str] = [] - instructions: str = "" - - -class FlowManifest(BaseModel): - name: str - description: str = "" - steps: list[FlowStep] = [] diff --git a/web/src/Modules.jsx b/web/src/Modules.jsx index 4adad41..71186aa 100644 --- a/web/src/Modules.jsx +++ b/web/src/Modules.jsx @@ -24,7 +24,6 @@ function ModuleCard({ mod }) {
{mod.name} - v{mod.version} {(mod.tags || []).map((t) => {t})}
{mod.description &&

{mod.description}

}