xonecas.io
5875
Os

ollama-space-molt-player / commit 8e6b07e

Merge pull request #1 from sacenox/refactor-new-client-internals

Refactor new client internals

xonecas2026-02-03 8e6b07e1ee2efdb5fa6add2f1d24eb586c5304dd parent d6d9f66parent 846887b

69 files changed

This diff is too big to show in full. The first 1000 lines are below, and every file is listed with its counts.

.gitignore+3−4
@@ -1,9 +1,8 @@
11 node_modules/
2-.spacemolt-bot-*.json
3-memory-*.sqlite
2+dist/
3+build/
44 *.sqlite
55 *.log
66 .env
77 .DS_Store
8-dist/
9-build/
8+prompt-length-findings.md
.gitmodules+0−4
@@ -1,4 +0,0 @@
1-[submodule "client"]
2- path = client
3- url = git@github.com:sacenox/client.git
4- branch = fix/handle-multiple-json-per-frame
.prettierrc.json+9−0
@@ -0,0 +1,9 @@
1+{
2+ "useTabs": true,
3+ "tabWidth": 2,
4+ "semi": true,
5+ "singleQuote": false,
6+ "trailingComma": "all",
7+ "printWidth": 100,
8+ "arrowParens": "always"
9+}
AGENTS.md+99−165
@@ -1,209 +1,143 @@
1-# Agent Guide for ollama-spacemolt-player
1+# Agent Guidelines
22
3-Help coding agents work safely and consistently in this repo.
3+## Project Overview
44
5-## Important References
5+This is an autonomous AI agent client for SpaceMolt, an MMO for AI agents. The client uses MCP (Model Context Protocol) to communicate with the game server and Ollama for local LLM inference with tool calling.
66
7-**Game Server WebSocket API**: https://www.spacemolt.com/api.md
7+## Architecture
88
9-The `client/` folder in the root is a reference client that includes the library used to connect to the game server.
9+### Core Components
1010
11-When testing, **reuse existing accounts** when possible. Memory DB files (`memory-*.sqlite`) are in the root and git-ignored. Examples: `memory-test-cli-override.sqlite`, `memory-swarm-01.sqlite`.
11+- **MCP Client** (`mcp-client.ts`): Connects to SpaceMolt's MCP server, discovers tools, executes tool calls
12+- **Ollama Client** (`ollama.ts`): Wraps Ollama's `/api/chat` endpoint with tool support
13+- **Game Client** (`game-client.ts`): Orchestrates the agent loop between MCP and Ollama
14+- **Database** (`db.ts`): SQLite persistence for accounts and message history
1215
13-## Repo Snapshot
16+### Agent Loop
1417
15-- **Runtime**: Bun (TypeScript, ESM)
16-- **UI**: Terminal UI via `blessed`
17-- **LLM**: Local Ollama HTTP API
18-- **Data**: SQLite via `bun:sqlite` at `memory-{name}.sqlite`
19-- **Game client**: SpaceMolt reference client (git submodule in `client/`)
20-
21-## Key Paths
22-
23-- `src/index.ts` - Main entry (orchestrates client + LLM + memory + output)
24-- `src/config.ts` - Configuration and CLI args parsing
25-- `src/ollama.ts` - Ollama HTTP client
26-- `src/memory.ts` - SQLite memory store
27-- `src/prompt.ts` - LLM prompt building
28-- `src/actions.ts` - Action validation and dispatch
29-- `src/game-state.ts` - Game state tracking
30-- `src/registration.ts` - Registration flow
31-- `src/output/tui-output.ts` - Interactive TUI output
32-- `src/output/file-logger-output.ts` - Headless log output
33-- `src/output-interface.ts` - Output interface definition
34-- `src/swarm.ts` - Swarm orchestrator for multiple bots
35-- `src/tui/` - TUI components (layout, formatters, colors, utils)
36-- `src/types.ts` - Type definitions
37-- `src/utils.ts` - Shared utilities
38-- `src/constants.ts` - Constants
39-
40-## Commands
41-
42-### Install
43-```bash
44-bun install
4518 ```
46-
47-### Run Single Bot (Interactive)
48-```bash
49-bun run ollama-play --name <instance-name>
19+1. LLM receives messages + available tools
20+2. LLM responds with tool_calls (or content)
21+3. Execute each tool call via MCP
22+4. Append results to messages
23+5. Repeat until LLM responds without tool calls (max 10 iterations)
24+6. Wait 1 second, start next round
5025 ```
5126
52-Required:
53-- `--name` or `-n`: Instance name (determines DB: `memory-{name}.sqlite`)
54-
55-Optional character overrides (new registrations only):
56-- `--empire` or `-e`: solarian, voidborn, crimson, nebula, outerrim
57-- `--alignment` or `-a`: lawful, good, neutral, chaotic, evil
58-- `--speech-style` or `-s`: mythic, punny, gritty, scholarly
59-
60-Note: Personality is now custom-generated by the LLM during registration (title + behavior description). The old `--personality` flag has been removed.
27+### Message Persistence
6128
62-Examples:
63-```bash
64-bun run ollama-play -n alice
65-bun run ollama-play -n test-bot -e crimson -a evil -s gritty
66-```
29+All interactions are saved to SQLite:
6730
68-### Run Non-Interactive (Headless)
69-```bash
70-bun run ollama-play --name <instance-name> --non-interactive [--max-ticks <number>]
71-```
31+- Tool calls saved as `{ tool, arguments }` (sender: client)
32+- Tool results saved as `{ tool, success, content }` (sender: server)
33+- Final LLM responses saved as `{ response }` (sender: client)
7234
73-Output:
74-- `ui-{name}.log` - UI output with timestamps
75-- `debug-{name}.log` - Debug info (prompts, responses, thinking)
35+On restart, message history is restored to provide context continuity.
7636
77-Example:
78-```bash
79-bun run ollama-play --name test-bot --non-interactive --max-ticks 100
80-```
37+## Code Conventions
8138
82-### Run Swarm
83-```bash
84-bun run swarm [--count 5] [--prefix swarm] [--empire <empire>] [--alignment <alignment>] [--speech-style <style>]
85-```
39+### TypeScript
8640
87-Defaults:
88-- Count: 5
89-- Prefix: swarm (creates swarm-01, swarm-02, etc.)
90-- Model: ministral-3:8b
91-- Thinking: false
41+- Use strict TypeScript with `noEmit` for type checking
42+- Prefer interfaces over types for object shapes
43+- Use explicit return types on public methods
9244
93-Example:
94-```bash
95-bun run swarm --count 10 --empire crimson --alignment evil --speech-style gritty
96-```
45+### Error Handling
9746
98-### Format and Lint
99-```bash
100-bun run biome:format
101-bun run biome:lint
102-```
47+- Log errors with `logClientError()`, include context
48+- Don't swallow errors silently
49+- MCP tool failures should be passed to LLM (it learns from errors)
10350
10451 ### Testing
10552
106-Manual testing only. No test runner configured.
53+- Tests use Bun's built-in test runner
54+- Mock external services (Ollama, MCP) in tests
55+- Run `bun run check` before committing
10756
108-Prefer reusing existing accounts:
109-- `test-cli-override` → `memory-test-cli-override.sqlite`
110-- `test-bot-1` → `memory-test-bot-1.sqlite`
111-- `swarm-01` through `swarm-05` → `memory-swarm-*.sqlite`
57+### Formatting
11258
113-If you see `Invalid username or token`, delete the instance DB and rerun.
59+- Prettier handles formatting
60+- Run `bun run check:format` to format all files
11461
115-## Environment Variables
62+## File Organization
11663
117-- `OLLAMA_URL` - Ollama server URL (default: `http://localhost:11434`)
118-- `OLLAMA_MODEL` - Model name (default: `qwen3:8b`)
119-- `OLLAMA_TEMPERATURE` - Temperature (default: `0.5`)
120-- `OLLAMA_THINKING` - Enable thinking mode (default: `true`)
121-- `SPACEMOLT_URL` - Game WebSocket URL (default: `wss://game.spacemolt.com/ws`)
122-- `DEBUG` - Enable TUI prompt pane (default: `false`)
123-- `MEMORY_DB` - Override DB path (default: `memory-{name}.sqlite`)
64+```
65+packages/client/src/
66+├── mcp-client.ts # MCP connection and tool execution
67+├── ollama.ts # Ollama chat API
68+├── game-client.ts # Main orchestration
69+├── db.ts # SQLite persistence
70+├── types.ts # TypeScript types
71+├── logging.ts # Structured logging
72+├── archetypes.ts # Character personalities
73+├── model-config.ts # Model configuration loader
74+├── cli.ts # CLI argument parser
75+└── index.ts # Entry point
76+```
12477
125-Timeout is configured in `src/config.ts` as `ollamaTimeoutMs` (60000ms).
78+## Adding New Features
12679
127-## Code Style Guidelines
80+### New Tool Handling
12881
129-### Formatting
130-- Use Biome for formatting and linting
131-- Let Biome handle formatting; avoid manual changes
132-
133-### Naming Conventions
134-- Types/interfaces: `PascalCase`
135-- Classes: `PascalCase`
136-- Functions and variables: `camelCase`
137-- Global constants: `SCREAMING_SNAKE_CASE`
138-- Local constants: `camelCase`
139-- File names: `lowercase` with `.ts`
140-
141-### Types and Strictness
142-- `strict` TypeScript enabled; avoid `any`
143-- Use `unknown` then narrow or validate
144-- Prefer explicit return types for public functions
145-- Prefer `null` over `undefined` for intentionally absent values
82+Tools come dynamically from MCP. To add special handling for a tool result:
14683
147-### Error Handling
148-- Use `try/catch` around external I/O (HTTP, file, DB)
149-- Throw typed errors where appropriate (e.g., `OllamaTimeoutError`)
150-- Validate external inputs; return structured errors (e.g., `validateAction`)
151-- Log errors with context; keep user-facing messages concise
84+```typescript
85+// In game-client.ts executeToolCall()
86+if (name === "your_tool" && result.success) {
87+ await this.handleYourToolSuccess(args, result.content);
88+}
89+```
15290
153-### Side Effects and State
154-- Keep side effects in `src/index.ts`; helper modules should be pure
155-- Avoid hidden global state; prefer explicit parameters
156-- Use small, focused functions for validation and formatting
91+### New Model Support
92+
93+Add to `player-models.json`:
94+
95+```json
96+{
97+ "your-model": {
98+ "displayName": "Your Model",
99+ "ollama": {
100+ "model": "actual-ollama-model-name",
101+ "options": { "temperature": 0.7 }
102+ },
103+ "recommendedMessages": 50
104+ }
105+}
106+```
157107
158-### Prompts and LLM Outputs
159-- LLM calls must expect malformed output; parse defensively
160-- Enforce JSON-only responses and validate fields before use
161-- Keep prompt updates in `src/prompt.ts`
108+Model must support Ollama's tool calling format.
162109
163-### TUI
164-- TUI is now in `src/output/tui-output.ts` and `src/tui/` directory
165-- Use `blessed` widgets; keep rendering in output modules
166-- Avoid Unicode-heavy UI unless needed (uses `fullUnicode: false`)
110+## Common Tasks
167111
168-### SQLite / Memory
169-- Centralize DB operations in `src/memory.ts`
170-- Serialize JSON using helper functions; guard against stringify errors
171-- Keep text fields reasonably bounded
112+### Running the Client
172113
173-### Game Client
174-- Use the reference client from `client/` submodule
175-- Do not modify `client/` unless the change is intended for upstream
114+```bash
115+cd packages/client
116+bun start -- -i test1 -v
117+```
176118
177-## Editing Safety
119+### Running Tests
178120
179-- Do not edit or commit `memory-*.sqlite` files
180-- Do not commit secrets or credentials
181-- Keep changes minimal and aligned with current architecture
182-- All DB files and logs are git-ignored
121+```bash
122+bun run check # All checks
123+bun test # Tests only
124+bun test --watch # Watch mode
125+```
183126
184-## Conventions in This Repo
127+### Debugging
185128
186-- Use small, focused helpers for formatting and validation
187-- Prefer explicit `if` branches over implicit coercion
188-- Use early returns for invalid states
189-- Maintain descriptive log messages for output
129+Enable verbose mode with `-v` flag to see:
190130
191-## When Adding New Features
131+- Tool calls and arguments
132+- Tool results
133+- LLM thinking (if model supports it)
192134
193-- Update prompts and validation together
194-- Add to memory tracking only if it improves LLM context
195-- Keep tick timing aligned with server tick (10s; local uses 11s)
196-- Update both `src/output/tui-output.ts` and `src/output/file-logger-output.ts` for UI changes
135+## Key Design Decisions
197136
198-## If You Add Tests Later
137+1. **LLM has full agency**: The client doesn't make decisions - the LLM decides everything including when to poll notifications, how to handle rate limits, what to do next.
199138
200-- Document the test framework and single-test command here
201-- Prefer a runner that supports file and name filtering
139+2. **MCP over WebSocket**: Uses HTTP-based MCP transport instead of WebSocket for simpler connection handling.
202140
203-## Quick Review Checklist
141+3. **In-memory + SQLite**: Messages kept in memory for fast access, persisted to SQLite for restart recovery.
204142
205-```bash
206-bun run biome:lint
207-bun run biome:format
208-bun run ollama-play --name test-bot --non-interactive --max-ticks 10
209-```
143+4. **Single agent loop**: One round at a time, max 10 tool iterations per round, 1 second delay between rounds.
README.md+91−96
@@ -1,133 +1,128 @@
1-# Space Molt: Ollama Player
1+# ollama-spacemolt-player
22
3-Let a locally hosted LLM play [Space Molt](https://www.spacemolt.com/).
4-
5-![Screenshot](tui_preview.png)
3+Autonomous AI agent that plays [SpaceMolt](https://spacemolt.com) using local LLMs via Ollama.
64
75 ## Overview
86
9-An AI agent that plays Space Molt using local Ollama LLMs. The agent:
10-- Registers and manages accounts automatically
11-- Makes decisions based on game state and memory
12-- Tracks actions and outcomes for context
13-- Runs in interactive TUI mode or headless for testing
14-
15-## Important Links
16-
17-- **Game Server API**: https://www.spacemolt.com/api.md
18-- **Reference Client**: `client/` submodule (SpaceMolt client library)
19-
20-## Tech Stack
7+This client connects to SpaceMolt's MCP (Model Context Protocol) server and uses Ollama's native tool calling to let an LLM play the game autonomously. The LLM has full agency - it decides when to mine, trade, fight, chat with other players, and explore the galaxy.
218
22-- **Runtime**: Bun (TypeScript, ESM)
23-- **UI**: Terminal UI via `blessed` (`src/output/tui-output.ts`)
24-- **LLM**: Local Ollama HTTP API (`src/ollama.ts`)
25-- **Memory**: SQLite via `bun:sqlite` (`src/memory.ts`)
26-- **Game Client**: SpaceMolt reference client in `client/` submodule
9+## Architecture
2710
28-## Setup
29-
30-```bash
31-bun install
11+```
12+┌──────────────────────────────────────────────────────────┐
13+│ GameClient │
14+│ │
15+│ ┌─────────────┐ ┌─────────────────────┐ │
16+│ │ MCP Client │◄───────►│ SpaceMolt MCP │ │
17+│ │ (94 tools) │ │ game.spacemolt.com │ │
18+│ └──────┬──────┘ └─────────────────────┘ │
19+│ │ │
20+│ ▼ │
21+│ ┌─────────────┐ ┌─────────────────────┐ │
22+│ │ Ollama Chat │◄───────►│ Ollama Server │ │
23+│ │ (tool calls)│ │ (local LLM) │ │
24+│ └─────────────┘ └─────────────────────┘ │
25+│ │
26+│ Agent Loop: LLM → tool_calls → MCP execute → repeat │
27+└──────────────────────────────────────────────────────────┘
3228 ```
3329
34-## Usage
30+### How It Works
3531
36-### Run Single Bot (Interactive TUI)
32+1. **MCP Connection**: Client connects to `https://game.spacemolt.com/mcp` and discovers 94 game tools
33+2. **Tool Conversion**: MCP tools are converted to Ollama's tool format
34+3. **Agent Loop**: LLM receives game context, makes tool calls, results fed back, repeat
35+4. **Persistence**: All tool calls and results saved to SQLite for context restoration on restart
3736
38-```bash
39-bun run ollama-play --name <instance-name>
40-```
37+## Quick Start
4138
42-Required:
43-- `--name` or `-n`: Instance name (determines DB file: `memory-{name}.sqlite`)
39+### Prerequisites
4440
45-Optional character overrides (new registrations only):
46-- `--empire` or `-e`: solarian, voidborn, crimson, nebula, outerrim
47-- `--alignment` or `-a`: lawful, good, neutral, chaotic, evil
48-- `--personality` or `-p`: cartographer, merchant, warrior, diplomat, pragmatist
49-- `--speech-style` or `-s`: mythic, punny, gritty, scholarly
41+- [Bun](https://bun.sh) v1.0+
42+- [Ollama](https://ollama.ai) running locally
5043
51-Example:
5244 ```bash
53-bun run ollama-play -n alice
54-bun run ollama-play -n test-bot -e crimson -a evil -p warrior
55-```
56-
57-### Run in Non-Interactive Mode (Headless)
45+# Install recommended model
46+ollama pull qwen3:8b
5847
59-For testing/debugging without TUI:
48+# Clone and install
49+git clone https://github.com/sacenox/ollama-space-molt-player.git
50+cd ollama-space-molt-player
51+bun install
6052
61-```bash
62-bun run ollama-play --name <instance-name> --non-interactive [--max-ticks <number>]
53+# Start playing
54+cd packages/client
55+bun start
6356 ```
6457
65-Output is written to:
66-- `ui-{name}.log` - UI output with timestamps
67-- `debug-{name}.log` - Debug info (prompts, responses, thinking)
58+### CLI Options
6859
69-Example:
7060 ```bash
71-bun run ollama-play --name test-bot --non-interactive --max-ticks 100
61+bun start [OPTIONS]
62+
63+Options:
64+ -i, --instance <id> Instance ID (4 chars, auto-generated if not provided)
65+ -m, --model <name> Model config name (default: qwen3-8b)
66+ -a, --archetype <name> Character archetype: diplomat, opportunist, agitator
67+ --hint <text> Guidance injected into LLM context
68+ --ollama-timeout <ms> Ollama API timeout (default: 30000)
69+ -s, --server <url> MCP server URL (default: https://game.spacemolt.com/mcp)
70+ -cw, --context-window <n> Max messages in context (default: 50)
71+ -v, --verbose Verbose logging
7272 ```
7373
74-### Run Swarm (Multiple Bots)
74+### Examples
7575
7676 ```bash
77-bun run swarm --count 5 --empire crimson --alignment evil --personality warrior
78-```
77+# New character with diplomat personality
78+bun start -- -i abc1 -a diplomat
7979
80-Options:
81-- `--count` or `-c`: Number of bots (default: 5)
82-- `--prefix` or `-p`: Instance name prefix (default: swarm)
83-- `--restart-delay`: Restart delay in ms (default: 10000)
84-- `--empire`, `--alignment`, `--personality`, `--speech-style`: Character overrides
80+# Resume existing instance with hint
81+bun start -- -i abc1 --hint "Focus on mining titanium"
8582
86-Swarm mode:
87-- Uses `OLLAMA_THINKING=false` and `OLLAMA_MODEL=ministral-3:8b` per bot
88-- Orchestration logs: `swarm.log`
89-- Individual bot logs: `ui-<name>.log` and `debug-<name>.log`
83+# Use different model
84+bun start -- -m llama3.1-8b
85+```
9086
91-## Testing
87+## Project Structure
9288
93-**Reuse existing accounts** when possible to avoid creating new accounts on every run.
89+```
90+packages/client/
91+├── src/
92+│ ├── mcp-client.ts # MCP SDK connection, tool discovery, execution
93+│ ├── ollama.ts # Ollama chat API with tool calling
94+│ ├── game-client.ts # Agent loop orchestration
95+│ ├── db.ts # SQLite persistence
96+│ ├── archetypes.ts # Character personalities
97+│ ├── logging.ts # Structured logging
98+│ └── cli.ts # CLI argument parser
99+└── tests/
100+```
94101
95-Credentials are stored in instance SQLite DBs (`memory-{name}.sqlite`) and are git-ignored.
102+## Models
96103
97-Known test instances:
98-- `test-cli-override` → `memory-test-cli-override.sqlite`
99-- `test-bot-1` → `memory-test-bot-1.sqlite`
100-- `swarm-01` through `swarm-05` → `memory-swarm-*.sqlite`
104+Configured in `player-models.json`:
101105
102-If you see `Invalid username or token`, delete the instance DB and rerun to create a new account.
106+| Config Name | Model | Tool Support | Notes |
107+| ------------ | ------------ | ------------ | -------------------- |
108+| qwen3-8b | qwen3:8b | Yes | Default, recommended |
109+| qwen3-4b | qwen3:4b | Yes | Lighter weight |
110+| llama3.1-8b | llama3.1:8b | Yes | Good alternative |
111+| mistral-nemo | mistral-nemo | Yes | Larger context |
103112
104-## Environment Variables
113+## Development
105114
106-- `OLLAMA_URL` - Ollama server URL (default: `http://localhost:11434`)
107-- `OLLAMA_MODEL` - Model name (default: `qwen3:8b`)
108-- `OLLAMA_TEMPERATURE` - Temperature (default: `0.5`)
109-- `OLLAMA_THINKING` - Enable thinking mode for Qwen3 (default: `true`)
110-- `SPACEMOLT_URL` - Game server WebSocket URL (default: `wss://game.spacemolt.com/ws`)
111-- `DEBUG` - Enable TUI prompt pane when `true`
112-- `MEMORY_DB` - Override memory DB path (default: `memory-{name}.sqlite`)
115+```bash
116+# Run all checks
117+bun run check
113118
114-## Key Files
119+# Run tests
120+bun test
115121
116-- `src/index.ts` - Main entry (orchestrates client + LLM + memory + TUI)
117-- `src/config.ts` - Configuration and CLI args parsing
118-- `src/ollama.ts` - Ollama HTTP client
119-- `src/memory.ts` - SQLite memory store
120-- `src/prompt.ts` - LLM prompt building
121-- `src/actions.ts` - Action validation and dispatch
122-- `src/game-state.ts` - Game state tracking
123-- `src/registration.ts` - Registration flow
124-- `src/output/tui-output.ts` - Interactive TUI output
125-- `src/output/file-logger-output.ts` - Headless log output
126-- `src/swarm.ts` - Swarm orchestrator
122+# Format code
123+bun run check:format
124+```
127125
128-## Formatting and Linting
126+## License
129127
130-```bash
131-bun run biome:format
132-bun run biome:lint
133-```
128+MIT
biome.json+0−23
@@ -1,23 +0,0 @@
1-{
2- "$schema": "https://biomejs.dev/schemas/2.3.13/schema.json",
3- "files": {
4- "includes": [
5- "**/*",
6- "!client",
7- "!node_modules",
8- "!dist",
9- "!bun.lock",
10- "!memory.sqlite",
11- "!.spacemolt-bot-credentials.json"
12- ]
13- },
14- "formatter": {
15- "enabled": true
16- },
17- "linter": {
18- "enabled": true,
19- "rules": {
20- "recommended": true
21- }
22- }
23-}
bun.lock+207−16
@@ -3,41 +3,232 @@
33 "configVersion": 1,
44 "workspaces": {
55 "": {
6- "name": "ollama-spacemolt-player",
6+ "name": "ollama-spacemolt-workspace",
7+ "devDependencies": {
8+ "@types/bun": "^1.3.8",
9+ "glob": "^13.0.0",
10+ "prettier": "^3.8.1",
11+ "typescript": "^5.9.3",
12+ },
13+ },
14+ "packages/client": {
15+ "name": "@spacemolt/client",
16+ "version": "0.1.0",
717 "dependencies": {
8- "blessed": "^0.1.81",
18+ "@modelcontextprotocol/sdk": "^1.25.3",
919 },
1020 "devDependencies": {
11- "@biomejs/biome": "^2.3.13",
12- "@types/blessed": "^0.1.21",
21+ "@types/bun": "latest",
1322 },
1423 },
1524 },
1625 "packages": {
17- "@biomejs/biome": ["@biomejs/biome@2.3.13", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.3.13", "@biomejs/cli-darwin-x64": "2.3.13", "@biomejs/cli-linux-arm64": "2.3.13", "@biomejs/cli-linux-arm64-musl": "2.3.13", "@biomejs/cli-linux-x64": "2.3.13", "@biomejs/cli-linux-x64-musl": "2.3.13", "@biomejs/cli-win32-arm64": "2.3.13", "@biomejs/cli-win32-x64": "2.3.13" }, "bin": { "biome": "bin/biome" } }, "sha512-Fw7UsV0UAtWIBIm0M7g5CRerpu1eKyKAXIazzxhbXYUyMkwNrkX/KLkGI7b+uVDQ5cL …
26+ "@hono/node-server": ["@hono/node-server@1.19.9", "", { "peerDependencies": { "hono": "^4" } }, "sha512-vHL6w3ecZsky+8P5MD+eFfaGTyCeOHUIFYMGpQGbrBTSmNNoxv0if69rEZ5giu36weC5saFuznL411gRX7bJDw=="],
27+
28+ "@isaacs/balanced-match": ["@isaacs/balanced-match@4.0.1", "", {}, "sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ=="],
29+
30+ "@isaacs/brace-expansion": ["@isaacs/brace-expansion@5.0.0", "", { "dependencies": { "@isaacs/balanced-match": "^4.0.1" } }, "sha512-ZT55BDLV0yv0RBm2czMiZ+SqCGO7AvmOM3G/w2xhVPH+te0aKgFjmBvGlL1dH+ql2tgGO3MVrbb3jCKyvpgnxA=="],
31+
32+ "@modelcontextprotocol/sdk": ["@modelcontextprotocol/sdk@1.25.3", "", { "dependencies": { "@hono/node-server": "^1.19.9", "ajv": "^8.17.1", "ajv-formats": "^3.0.1", "content-type": "^1.0.5", "cors": "^2.8.5", "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", "eventsource-parser": "^3.0.0", "express": "^5.0.1", "express-rate-limit": "^7.5.0", "jose": "^6.1.1", "json-schema-typed": "^8.0.2", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", "zod": "^3.25 || ^4.0", "zod-to-json-schema": "^3.25. …
33+
34+ "@spacemolt/client": ["@spacemolt/client@workspace:packages/client"],
35+
36+ "@types/bun": ["@types/bun@1.3.8", "", { "dependencies": { "bun-types": "1.3.8" } }, "sha512-3LvWJ2q5GerAXYxO2mffLTqOzEu5qnhEAlh48Vnu8WQfnmSwbgagjGZV6BoHKJztENYEDn6QmVd949W4uESRJA=="],
37+
38+ "@types/node": ["@types/node@25.2.0", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-DZ8VwRFUNzuqJ5khrvwMXHmvPe+zGayJhr2CDNiKB1WBE1ST8Djl00D0IC4vvNmHMdj6DlbYRIaFE7WHjlDl5w=="],
39+
40+ "accepts": ["accepts@2.0.0", "", { "dependencies": { "mime-types": "^3.0.0", "negotiator": "^1.0.0" } }, "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng=="],
41+
42+ "ajv": ["ajv@8.17.1", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g=="],
43+
44+ "ajv-formats": ["ajv-formats@3.0.1", "", { "dependencies": { "ajv": "^8.0.0" } }, "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ=="],
45+
46+ "body-parser": ["body-parser@2.2.2", "", { "dependencies": { "bytes": "^3.1.2", "content-type": "^1.0.5", "debug": "^4.4.3", "http-errors": "^2.0.0", "iconv-lite": "^0.7.0", "on-finished": "^2.4.1", "qs": "^6.14.1", "raw-body": "^3.0.1", "type-is": "^2.0.1" } }, "sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA=="],
47+
48+ "bun-types": ["bun-types@1.3.8", "", { "dependencies": { "@types/node": "*" } }, "sha512-fL99nxdOWvV4LqjmC+8Q9kW3M4QTtTR1eePs94v5ctGqU8OeceWrSUaRw3JYb7tU3FkMIAjkueehrHPPPGKi5Q=="],
49+
50+ "bytes": ["bytes@3.1.2", "", {}, "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg=="],
51+
52+ "call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="],
53+
54+ "call-bound": ["call-bound@1.0.4", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "get-intrinsic": "^1.3.0" } }, "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg=="],
55+
56+ "content-disposition": ["content-disposition@1.0.1", "", {}, "sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q=="],
57+
58+ "content-type": ["content-type@1.0.5", "", {}, "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA=="],
59+
60+ "cookie": ["cookie@0.7.2", "", {}, "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w=="],
61+
62+ "cookie-signature": ["cookie-signature@1.2.2", "", {}, "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg=="],
63+
64+ "cors": ["cors@2.8.6", "", { "dependencies": { "object-assign": "^4", "vary": "^1" } }, "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw=="],
65+
66+ "cross-spawn": ["cross-spawn@7.0.6", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="],
67+
68+ "debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="],
69+
70+ "depd": ["depd@2.0.0", "", {}, "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw=="],
71+
72+ "dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="],
73+
74+ "ee-first": ["ee-first@1.1.1", "", {}, "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="],
75+
76+ "encodeurl": ["encodeurl@2.0.0", "", {}, "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg=="],
77+
78+ "es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="],
79+
80+ "es-errors": ["es-errors@1.3.0", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="],
81+
82+ "es-object-atoms": ["es-object-atoms@1.1.1", "", { "dependencies": { "es-errors": "^1.3.0" } }, "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA=="],
83+
84+ "escape-html": ["escape-html@1.0.3", "", {}, "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="],
85+
86+ "etag": ["etag@1.8.1", "", {}, "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg=="],
87+
88+ "eventsource": ["eventsource@3.0.7", "", { "dependencies": { "eventsource-parser": "^3.0.1" } }, "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA=="],
89+
90+ "eventsource-parser": ["eventsource-parser@3.0.6", "", {}, "sha512-Vo1ab+QXPzZ4tCa8SwIHJFaSzy4R6SHf7BY79rFBDf0idraZWAkYrDjDj8uWaSm3S2TK+hJ7/t1CEmZ7jXw+pg=="],
91+
92+ "express": ["express@5.2.1", "", { "dependencies": { "accepts": "^2.0.0", "body-parser": "^2.2.1", "content-disposition": "^1.0.0", "content-type": "^1.0.5", "cookie": "^0.7.1", "cookie-signature": "^1.2.1", "debug": "^4.4.0", "depd": "^2.0.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "finalhandler": "^2.1.0", "fresh": "^2.0.0", "http-errors": "^2.0.0", "merge-descriptors": "^2.0.0", "mime-types": "^3.0.0", "on-finished": "^2.4.1", "once": "^1.4.0", "parseurl": "^1.3 …
93+
94+ "express-rate-limit": ["express-rate-limit@7.5.1", "", { "peerDependencies": { "express": ">= 4.11" } }, "sha512-7iN8iPMDzOMHPUYllBEsQdWVB6fPDMPqwjBaFrgr4Jgr/+okjvzAy+UHlYYL/Vs0OsOrMkwS6PJDkFlJwoxUnw=="],
95+
96+ "fast-deep-equal": ["fast-deep-equal@3.1.3", "", {}, "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="],
97+
98+ "fast-uri": ["fast-uri@3.1.0", "", {}, "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA=="],
99+
100+ "finalhandler": ["finalhandler@2.1.1", "", { "dependencies": { "debug": "^4.4.0", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "on-finished": "^2.4.1", "parseurl": "^1.3.3", "statuses": "^2.0.1" } }, "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA=="],
101+
102+ "forwarded": ["forwarded@0.2.0", "", {}, "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow=="],
103+
104+ "fresh": ["fresh@2.0.0", "", {}, "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A=="],
105+
106+ "function-bind": ["function-bind@1.1.2", "", {}, "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="],
107+
108+ "get-intrinsic": ["get-intrinsic@1.3.0", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="],
109+
110+ "get-proto": ["get-proto@1.0.1", "", { "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" } }, "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g=="],
111+
112+ "glob": ["glob@13.0.0", "", { "dependencies": { "minimatch": "^10.1.1", "minipass": "^7.1.2", "path-scurry": "^2.0.0" } }, "sha512-tvZgpqk6fz4BaNZ66ZsRaZnbHvP/jG3uKJvAZOwEVUL4RTA5nJeeLYfyN9/VA8NX/V3IBG+hkeuGpKjvELkVhA=="],
113+
114+ "gopd": ["gopd@1.2.0", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="],
18115
19- "@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.3.13", "", { "os": "darwin", "cpu": "arm64" }, "sha512-0OCwP0/BoKzyJHnFdaTk/i7hIP9JHH9oJJq6hrSCPmJPo8JWcJhprK4gQlhFzrwdTBAW4Bjt/RmCf3ZZe59gwQ=="],
116+ "has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="],
20117
21- "@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.3.13", "", { "os": "darwin", "cpu": "x64" }, "sha512-AGr8OoemT/ejynbIu56qeil2+F2WLkIjn2d8jGK1JkchxnMUhYOfnqc9sVzcRxpG9Ycvw4weQ5sprRvtb7Yhcw=="],
118+ "hasown": ["hasown@2.0.2", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ=="],
22119
23- "@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.3.13", "", { "os": "linux", "cpu": "arm64" }, "sha512-xvOiFkrDNu607MPMBUQ6huHmBG1PZLOrqhtK6pXJW3GjfVqJg0Z/qpTdhXfcqWdSZHcT+Nct2fOgewZvytESkw=="],
120+ "hono": ["hono@4.11.7", "", {}, "sha512-l7qMiNee7t82bH3SeyUCt9UF15EVmaBvsppY2zQtrbIhl/yzBTny+YUxsVjSjQ6gaqaeVtZmGocom8TzBlA4Yw=="],
24121
25- "@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.3.13", "", { "os": "linux", "cpu": "arm64" }, "sha512-TUdDCSY+Eo/EHjhJz7P2GnWwfqet+lFxBZzGHldrvULr59AgahamLs/N85SC4+bdF86EhqDuuw9rYLvLFWWlXA=="],
122+ "http-errors": ["http-errors@2.0.1", "", { "dependencies": { "depd": "~2.0.0", "inherits": "~2.0.4", "setprototypeof": "~1.2.0", "statuses": "~2.0.2", "toidentifier": "~1.0.1" } }, "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ=="],
26123
27- "@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.3.13", "", { "os": "linux", "cpu": "x64" }, "sha512-s+YsZlgiXNq8XkgHs6xdvKDFOj/bwTEevqEY6rC2I3cBHbxXYU1LOZstH3Ffw9hE5tE1sqT7U23C00MzkXztMw=="],
124+ "iconv-lite": ["iconv-lite@0.7.2", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3.0.0" } }, "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw=="],
28125
29- "@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.3.13", "", { "os": "linux", "cpu": "x64" }, "sha512-0bdwFVSbbM//Sds6OjtnmQGp4eUjOTt6kHvR/1P0ieR9GcTUAlPNvPC3DiavTqq302W34Ae2T6u5VVNGuQtGlQ=="],
126+ "inherits": ["inherits@2.0.4", "", {}, "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="],
30127
31- "@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.3.13", "", { "os": "win32", "cpu": "arm64" }, "sha512-QweDxY89fq0VvrxME+wS/BXKmqMrOTZlN9SqQ79kQSIc3FrEwvW/PvUegQF6XIVaekncDykB5dzPqjbwSKs9DA=="],
128+ "ipaddr.js": ["ipaddr.js@1.9.1", "", {}, "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="],
32129
33- "@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.3.13", "", { "os": "win32", "cpu": "x64" }, "sha512-trDw2ogdM2lyav9WFQsdsfdVy1dvZALymRpgmWsvSez0BJzBjulhOT/t+wyKeh3pZWvwP3VMs1SoOKwO3wecMQ=="],
130+ "is-promise": ["is-promise@4.0.0", "", {}, "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ=="],
34131
35- "@types/blessed": ["@types/blessed@0.1.27", "", { "dependencies": { "@types/node": "*" } }, "sha512-ZOQGjLvWDclAXp0rW5iuUBXeD6Gr1PkitN7tj7/G8FCoSzTsij6OhXusOzMKhwrZ9YlL2Pmu0d6xJ9zVvk+Hsg=="],
132+ "isexe": ["isexe@2.0.0", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="],
36133
37- "@types/node": ["@types/node@25.1.0", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-t7frlewr6+cbx+9Ohpl0NOTKXZNV9xHRmNOvql47BFJKcEG1CxtxlPEEe+gR9uhVWM4DwhnvTF110mIL4yP9RA=="],
134+ "jose": ["jose@6.1.3", "", {}, "sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ=="],
38135
39- "blessed": ["blessed@0.1.81", "", { "bin": { "blessed": "./bin/tput.js" } }, "sha512-LoF5gae+hlmfORcG1M5+5XZi4LBmvlXTzwJWzUlPryN/SJdSflZvROM2TwkT0GMpq7oqT48NRd4GS7BiVBc5OQ=="],
136+ "json-schema-traverse": ["json-schema-traverse@1.0.0", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="],
137+
138+ "json-schema-typed": ["json-schema-typed@8.0.2", "", {}, "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA=="],
139+
140+ "lru-cache": ["lru-cache@11.2.5", "", {}, "sha512-vFrFJkWtJvJnD5hg+hJvVE8Lh/TcMzKnTgCWmtBipwI5yLX/iX+5UB2tfuyODF5E7k9xEzMdYgGqaSb1c0c5Yw=="],
141+
142+ "math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="],
143+
144+ "media-typer": ["media-typer@1.1.0", "", {}, "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw=="],
145+
146+ "merge-descriptors": ["merge-descriptors@2.0.0", "", {}, "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g=="],
147+
148+ "mime-db": ["mime-db@1.54.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="],
149+
150+ "mime-types": ["mime-types@3.0.2", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="],
151+
152+ "minimatch": ["minimatch@10.1.1", "", { "dependencies": { "@isaacs/brace-expansion": "^5.0.0" } }, "sha512-enIvLvRAFZYXJzkCYG5RKmPfrFArdLv+R+lbQ53BmIMLIry74bjKzX6iHAm8WYamJkhSSEabrWN5D97XnKObjQ=="],
153+
154+ "minipass": ["minipass@7.1.2", "", {}, "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw=="],
155+
156+ "ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],
157+
158+ "negotiator": ["negotiator@1.0.0", "", {}, "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg=="],
159+
160+ "object-assign": ["object-assign@4.1.1", "", {}, "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg=="],
161+
162+ "object-inspect": ["object-inspect@1.13.4", "", {}, "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew=="],
163+
164+ "on-finished": ["on-finished@2.4.1", "", { "dependencies": { "ee-first": "1.1.1" } }, "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg=="],
165+
166+ "once": ["once@1.4.0", "", { "dependencies": { "wrappy": "1" } }, "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w=="],
167+
168+ "parseurl": ["parseurl@1.3.3", "", {}, "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="],
169+
170+ "path-key": ["path-key@3.1.1", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="],
171+
172+ "path-scurry": ["path-scurry@2.0.1", "", { "dependencies": { "lru-cache": "^11.0.0", "minipass": "^7.1.2" } }, "sha512-oWyT4gICAu+kaA7QWk/jvCHWarMKNs6pXOGWKDTr7cw4IGcUbW+PeTfbaQiLGheFRpjo6O9J0PmyMfQPjH71oA=="],
173+
174+ "path-to-regexp": ["path-to-regexp@8.3.0", "", {}, "sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA=="],
175+
176+ "pkce-challenge": ["pkce-challenge@5.0.1", "", {}, "sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ=="],
177+
178+ "prettier": ["prettier@3.8.1", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg=="],
179+
180+ "proxy-addr": ["proxy-addr@2.0.7", "", { "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" } }, "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg=="],
181+
182+ "qs": ["qs@6.14.1", "", { "dependencies": { "side-channel": "^1.1.0" } }, "sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ=="],
183+
184+ "range-parser": ["range-parser@1.2.1", "", {}, "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="],
185+
186+ "raw-body": ["raw-body@3.0.2", "", { "dependencies": { "bytes": "~3.1.2", "http-errors": "~2.0.1", "iconv-lite": "~0.7.0", "unpipe": "~1.0.0" } }, "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA=="],
187+
188+ "require-from-string": ["require-from-string@2.0.2", "", {}, "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="],
189+
190+ "router": ["router@2.2.0", "", { "dependencies": { "debug": "^4.4.0", "depd": "^2.0.0", "is-promise": "^4.0.0", "parseurl": "^1.3.3", "path-to-regexp": "^8.0.0" } }, "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ=="],
191+
192+ "safer-buffer": ["safer-buffer@2.1.2", "", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="],
193+
194+ "send": ["send@1.2.1", "", { "dependencies": { "debug": "^4.4.3", "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "etag": "^1.8.1", "fresh": "^2.0.0", "http-errors": "^2.0.1", "mime-types": "^3.0.2", "ms": "^2.1.3", "on-finished": "^2.4.1", "range-parser": "^1.2.1", "statuses": "^2.0.2" } }, "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ=="],
195+
196+ "serve-static": ["serve-static@2.2.1", "", { "dependencies": { "encodeurl": "^2.0.0", "escape-html": "^1.0.3", "parseurl": "^1.3.3", "send": "^1.2.0" } }, "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw=="],
197+
198+ "setprototypeof": ["setprototypeof@1.2.0", "", {}, "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="],
199+
200+ "shebang-command": ["shebang-command@2.0.0", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="],
201+
202+ "shebang-regex": ["shebang-regex@3.0.0", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="],
203+
204+ "side-channel": ["side-channel@1.1.0", "", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3", "side-channel-list": "^1.0.0", "side-channel-map": "^1.0.1", "side-channel-weakmap": "^1.0.2" } }, "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw=="],
205+
206+ "side-channel-list": ["side-channel-list@1.0.0", "", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3" } }, "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA=="],
207+
208+ "side-channel-map": ["side-channel-map@1.0.1", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3" } }, "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA=="],
209+
210+ "side-channel-weakmap": ["side-channel-weakmap@1.0.2", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3", "side-channel-map": "^1.0.1" } }, "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A=="],
211+
212+ "statuses": ["statuses@2.0.2", "", {}, "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw=="],
213+
214+ "toidentifier": ["toidentifier@1.0.1", "", {}, "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA=="],
215+
216+ "type-is": ["type-is@2.0.1", "", { "dependencies": { "content-type": "^1.0.5", "media-typer": "^1.1.0", "mime-types": "^3.0.0" } }, "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw=="],
217+
218+ "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
40219
41220 "undici-types": ["undici-types@7.16.0", "", {}, "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw=="],
221+
222+ "unpipe": ["unpipe@1.0.0", "", {}, "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ=="],
223+
224+ "vary": ["vary@1.1.2", "", {}, "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg=="],
225+
226+ "which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="],
227+
228+ "wrappy": ["wrappy@1.0.2", "", {}, "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="],
229+
230+ "zod": ["zod@4.3.6", "", {}, "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg=="],
231+
232+ "zod-to-json-schema": ["zod-to-json-schema@3.25.1", "", { "peerDependencies": { "zod": "^3.25 || ^4" } }, "sha512-pM/SU9d3YAggzi6MtR4h7ruuQlqKtad8e9S0fmxcMi+ueAK5Korys/aWcV9LIIHTVbj01NdzxcnXSN+O74ZIVA=="],
42233 }
43234 }
client+0−1
@@ -1 +0,0 @@
1-Subproject commit 4c0027fd263bd687302942f295569a83f2a21991
docs/2026-02-03-client-refactor-design.md+304−0
@@ -0,0 +1,304 @@
1+# Client Refactor Design
2+
3+## Motivation
4+
5+The current implementation has three core issues:
6+
7+1. **Behavior bias** - Prompt and translation layer bias LLM player behavior
8+2. **Translation complexity** - Translation layer creates bug surface and complicates development
9+3. **Tight coupling** - TUI and client logic are not properly decoupled
10+
11+## Goals
12+
13+### Architecture
14+
15+- **Reduce abstraction** - Minimize layers between client and server
16+- **Simplify protocol** - Streamline game update forwarding to LLM player
17+- **Direct server sync** - Use MOTD messages and [Game Server API](https://www.spacemolt.com/api.md) for quick updates
18+- **Workspace structure** - Migrate to [Bun Workspaces](https://bun.com/docs/pm/workspaces)
19+- **Package separation** - Split TUI and Client into separate packages with TUI imported by client
20+- **Shared code across both packages** - Like types, test tools, or other future utilities, should be in a shared package in this workspace.
21+- **Unified tooling** - Bun scripts in repo root (with/without TUI), shared Prettier config
22+
23+### Database
24+
25+- **Simplified schema** - Two tables only:
26+ - `account_details`: credentials, username, id, hint, prompt
27+ - `messages`: raw JSON server communication, id, tick, client/server sender enum
28+- **Proper indexing** - Optimized for query patterns, tick for sorting by it
29+- **Size management** - Truncate messages table to 5000 rows max sorted by tick when read.
30+- **SQLite with Bun** - Continue using Bun to interact with SQLite
31+- **Instancing** - Use a unique ID for each database instance, this ID is used as argument to bind future runs to a specific instance. use memory-{instance-name}.sqlite for the file pattern, instance name should be a simple random generation of 4 character.
32+
33+### Performance
34+
35+- **Token efficiency** - Reduce tokens sent per tick
36+- **Fast failures** - Quick Ollama timeouts to avoid losing ticks
37+- **Optimized prompting** - Fewer Ollama calls, faster prompt generation per tick
38+
39+### Testing
40+
41+- **Combined approach** - Unit tests + manual visual tests for TUI (print UI components to terminal or screenshot the TUI)
42+- **Coverage target** - 80% test coverage at the end of the refactor in the client code.
43+- **TUI** - test scripts to run manually to create screenshots for visual inspection.
44+
45+## Non-Goals
46+
47+- **No backward compatibility** - New DB schema, fresh start
48+- **No legacy code reuse** - Apply lessons learned to build clean foundation
49+
50+## Client Design
51+
52+### Core Principles
53+
54+- **Direct connection** - Connect to `wss://game.spacemolt.com/ws` without intermediate libraries
55+- **Server sync** - Use [api.md](https://www.spacemolt.com/api.md) to maintain client-server compatibility
56+- **API merging** - Extend game server API while maintaining JSON protocol consistency
57+- **Registration shadowing** - Hook register command to generate player prompt along with registration
58+- **Instances** - Each running client instance has an independent database file. Complete data separation between instances.
59+- **Errors** - When showing errors to the LLM, always use the language found in the api.md document from the server. If we need to add our own messaging at any time, use neutral terms without bias, let the LLM decide based on his configured bias.
60+
61+### Ollama
62+
63+- A ollama server will be available. manually controlled by the user.
64+- A single call per tick, sends full JSON context including prompt.
65+- Used in the registatrion flow
66+- Ollama calls need to fail fast, they should resolve in less than 1 tick so that the player doesn't loose more than 1 turn waiting for generation.
67+- If the ollama call fails add a client error message
68+- Model thinking should be a cli argument of the client and not saved anywhere in it's entirety as it's usually a lot of tokens. Default to thinking on but at the lowest values for quick thinking. (You can assume the model is qwen3:8b as default.)
69+- Model temperature should be a config value as well, with a high creativity temprature (1.2)
70+
71+### Registration flow
72+
73+- When the LLM player calls register it will do so with the same arguments the server api requires.
74+- We will intercept and use those arguments to prompt the LLM for a bias prompt based on Name and empire + a behavuour archtype that fits the MMO RPG genre for a sci fi universe of Crustaceans Cosmos.
75+- Archtypes are suggested gameplay styles defined in code, as constants, it should be a concise excerpt defining a common gamestyle suitable for an Online multiplayer rpg game.
76+ - **The Diplomat** (Good): Seeks alliances through negotiation and mutual benefit. Prioritizes faction reputation, mediates conflicts in forums, and builds cooperative trade networks. Values honor and collective prosperity.
77+ - **The Opportunist** (Neutral): Adapts strategy based on maximum personal gain. Engages in strategic alliances when beneficial, participates in forums to gather intelligence, and switches loyalties based on opportunity. Values pragmatism and survival.
78+ - **The Agitator** (Evil): Thrives on chaos and manipulation. Spreads misinformation in forums, provokes faction conflicts, forms temporary alliances to backstab later, and profits from instability. Values power and dominance through deception.
79+ - Archetypes can be specified via config too (and cli).
80+- Once started the registatrion flow needs to complete, retry with the LLM showing clear errors if any.
81+
82+### Client Flow
83+
84+**1. Initialization**
85+
86+- Parse CLI arguments (each custom API field has corresponding CLI arg; currently just hint)
87+- Check for existing account:
88+ - If exists: auto-login and continue
89+ - **Note**: Auto-login only at boot; respect LLM logout decisions (no re-login)
90+
91+**2. Main Loop** (Server tick-driven)
92+
93+Client reacts to server `tick` messages instead of using a fixed interval timer. This ensures perfect synchronization with server tick boundaries and prevents rate-limiting errors.
94+
95+**Tick Synchronization:**
96+
97+- Server sends `tick` message every 10 seconds
98+- Client receives tick message and immediately processes:
99+ - Updates `currentTick` value
100+ - Debounces duplicate tick messages (tracks `lastProcessedTick`)
101+ - Resets watchdog timer (detects missing ticks after 20 seconds)
102+ - Triggers LLM prompt and command generation
103+
104+**Each tick processing:**
105+
106+a. **Prompt LLM**
107+
108+- Check for hint updates in database
109+- Provide: game event history + combined API + prompt + hint
110+- On client error: create client event in DB (avoid behavioral bias, do use words that can be interpreted as suggestions or directions), continue to next tick
111+
112+b. **Forward Response**
113+
114+- Send LLM reply to server
115+- On connection failure: create client message, continue to next tick
116+
117+c. **Wait for next server tick**
118+
119+**Safety mechanisms:**
120+
121+- **Duplicate detection**: Ignores duplicate tick messages using `lastProcessedTick` tracking
122+- **Processing lock**: Prevents parallel tick processing when LLM response time exceeds tick interval
123+ - Uses `isProcessingTick` flag to ensure only one tick processes at a time
124+ - Skips subsequent ticks if previous tick still processing (logs skip, no DB entry)
125+ - Prevents rate limiting violations and resource waste from parallel LLM calls
126+- **Watchdog timer**: Warns if no tick received within `tick_rate * 2` (20 seconds)
127+- **Connection monitoring**: Logs watchdog timeouts as client errors in database
128+
129+### API Extensions
130+
131+**Custom Registration Command**
132+
133+- Hook registration to inject character prompt and hint when LLM creates new character
134+
135+**LLM Player Prompt Field**
136+
137+- New JSON API field describing player character
138+- **Single point of behavioral bias** - Only place to influence LLM toward character traits
139+- Generated from registration personality traits
140+- Hint injection capability (refreshed every tick) from the database
141+
142+**Format**:
143+
144+```jsonc
145+{
146+ "prompt": "...", // Generated at registration
147+ "hint": "...", // Optional injected message
148+ // Standard commands from https://www.spacemolt.com/api.md
149+}
150+```
151+
152+### Output
153+
154+- When running without TUI, print human-readable log lines without omitting information for every message. No log files, no multiple instance support.
155+
156+### Client API Data Formats
157+
158+**What the LLM receives each tick:**
159+
160+```jsonc
161+{
162+ "prompt": "...",
Cut short: this commit's diff is over 1000 lines.
package.json+15−12
Cut short: this commit's diff is over 1000 lines.
packages/client/README.md+222−0
Cut short: this commit's diff is over 1000 lines.
packages/client/package.json+20−0
Cut short: this commit's diff is over 1000 lines.
packages/client/src/archetypes.ts+52−0
Cut short: this commit's diff is over 1000 lines.
packages/client/src/cli.ts+166−0
Cut short: this commit's diff is over 1000 lines.
packages/client/src/db.ts+208−0
Cut short: this commit's diff is over 1000 lines.
packages/client/src/game-client.ts+374−0
Cut short: this commit's diff is over 1000 lines.
packages/client/src/index.ts+102−0
Cut short: this commit's diff is over 1000 lines.
packages/client/src/logging.ts+234−0
Cut short: this commit's diff is over 1000 lines.
packages/client/src/mcp-client.ts+119−0
Cut short: this commit's diff is over 1000 lines.
packages/client/src/model-config.ts+88−0
Cut short: this commit's diff is over 1000 lines.
packages/client/src/ollama.ts+125−0
Cut short: this commit's diff is over 1000 lines.
packages/client/src/types.ts+46−0
Cut short: this commit's diff is over 1000 lines.
packages/client/tests/cli.test.ts+121−0
Cut short: this commit's diff is over 1000 lines.
packages/client/tests/db.test.ts+224−0
Cut short: this commit's diff is over 1000 lines.
packages/client/tests/model-config.test.ts+78−0
Cut short: this commit's diff is over 1000 lines.
packages/client/tests/ollama.test.ts+246−0
Cut short: this commit's diff is over 1000 lines.
packages/client/tsconfig.json+9−0
Cut short: this commit's diff is over 1000 lines.
player-models.json+57−0
Cut short: this commit's diff is over 1000 lines.
scripts/generate-prompt-from-db.ts+0−1142
Cut short: this commit's diff is over 1000 lines.
scripts/mock-prompt.ts+0−325
Cut short: this commit's diff is over 1000 lines.
scripts/strip-comments.test.ts+129−0
Cut short: this commit's diff is over 1000 lines.
scripts/strip-comments.ts+204−0
Cut short: this commit's diff is over 1000 lines.
src/actions.ts+0−353
Cut short: this commit's diff is over 1000 lines.
src/config.ts+0−133
Cut short: this commit's diff is over 1000 lines.
src/constants.ts+0−160
Cut short: this commit's diff is over 1000 lines.
src/game-state.ts+0−62
Cut short: this commit's diff is over 1000 lines.
src/index.ts+0−1025
Cut short: this commit's diff is over 1000 lines.
src/memory.ts+0−493
Cut short: this commit's diff is over 1000 lines.
src/ollama.ts+0−136
Cut short: this commit's diff is over 1000 lines.
src/output-interface.ts+0−14
Cut short: this commit's diff is over 1000 lines.
src/output/file-logger-output.ts+0−234
Cut short: this commit's diff is over 1000 lines.
src/output/tui-output.ts+0−47
Cut short: this commit's diff is over 1000 lines.
src/prompt.ts+0−1308
Cut short: this commit's diff is over 1000 lines.
src/registration.ts+0−696
Cut short: this commit's diff is over 1000 lines.
src/swarm.ts+0−347
Cut short: this commit's diff is over 1000 lines.
src/tui/formatters.ts+0−384
Cut short: this commit's diff is over 1000 lines.
src/tui/index.ts+0−497
Cut short: this commit's diff is over 1000 lines.
src/tui/layout.ts+0−200
Cut short: this commit's diff is over 1000 lines.
src/tui/panels/action-result.ts+0−345
Cut short: this commit's diff is over 1000 lines.
src/tui/panels/context.ts+0−57
Cut short: this commit's diff is over 1000 lines.
src/tui/panels/game-status.ts+0−186
Cut short: this commit's diff is over 1000 lines.
src/tui/panels/log.ts+0−155
Cut short: this commit's diff is over 1000 lines.
src/tui/panels/navigation.ts+0−138
Cut short: this commit's diff is over 1000 lines.
src/tui/panels/player.ts+0−69
Cut short: this commit's diff is over 1000 lines.
src/tui/panels/ship.ts+0−51
Cut short: this commit's diff is over 1000 lines.
src/tui/panels/tactical.ts+0−99
Cut short: this commit's diff is over 1000 lines.
src/tui/theme.ts+0−109
Cut short: this commit's diff is over 1000 lines.
src/tui/widgets.ts+0−74
Cut short: this commit's diff is over 1000 lines.
src/types.ts+0−97
Cut short: this commit's diff is over 1000 lines.
src/utils.ts+0−95
Cut short: this commit's diff is over 1000 lines.
test-arrow.ts+0−4
Cut short: this commit's diff is over 1000 lines.
test-border-alignment.ts+0−31
Cut short: this commit's diff is over 1000 lines.
test-solution-line.ts+0−25
Cut short: this commit's diff is over 1000 lines.
test-tui-render.ts+0−125
Cut short: this commit's diff is over 1000 lines.
tests/tui/panels/action-result.test.ts+0−129
Cut short: this commit's diff is over 1000 lines.
tests/tui/panels/game-status.test.ts+0−135
Cut short: this commit's diff is over 1000 lines.
tsconfig.json+9−7
Cut short: this commit's diff is over 1000 lines.
tui-render-test.txt+0−314
Cut short: this commit's diff is over 1000 lines.
tui_preview.png+0−0
Binary file, not shown.