GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — claw-code/src/models.py at main · liucq/claw-code Expand file tree/ Copy pathmodels.pyMore file actions 49 lines (36 loc) · 1.04 KB / Copy pathmodels.pyFile metadata and controls49 lines (36 loc) · 1.04 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 from __future__ import annotations from dataclasses import dataclass, field @dataclass(frozen=True) class Subsystem: name: str path: str file_count: int notes: str @dataclass(frozen=True) class PortingModule: name: str responsibility: str source_hint: str status: str = 'planned' @dataclass(frozen=True) class PermissionDenial: tool_name: str reason: str @dataclass(frozen=True) class UsageSummary: input_tokens: int = 0 output_tokens: int = 0 def add_turn(self, prompt: str, output: str) -> 'UsageSummary': return UsageSummary( input_tokens=self.input_tokens + len(prompt.split()), output_tokens=self.output_tokens + len(output.split()), ) @dataclass class PortingBacklog: title: str modules: list[PortingModule] = field(default_factory=list) def summary_lines(self) -> list[str]: return [ f'- {module.name} [{module.status}] — {module.responsibility} (from {module.source_hint})' for module in self.modules ] |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |