step 2: add thread safe state commands and cache model
This commit is contained in:
14
AGENTS.md
14
AGENTS.md
@@ -2,15 +2,16 @@
|
||||
|
||||
## Current status
|
||||
|
||||
Step 1 complete.
|
||||
Step 2 complete.
|
||||
|
||||
## Completed steps
|
||||
|
||||
Step 1 - Public API contract and pure core.
|
||||
Step 2 - Thread-safe state, commands, overlays, and cache model.
|
||||
|
||||
## Current step
|
||||
|
||||
Step 2 - Thread-safe state, commands, overlays, and cache model.
|
||||
Step 3 - Widget shell, sizing system, and GUI-thread frame pump.
|
||||
|
||||
## Design decisions
|
||||
|
||||
@@ -33,11 +34,18 @@ None yet.
|
||||
- Created initial package, examples, tests, and agent-log structure.
|
||||
- Implemented public exports, exceptions, common types, tile provider registry, projection helpers, cache dataclasses, and GUI-dependent API stubs.
|
||||
- Added Step 1 tests for imports, providers, projection, and cache dataclasses.
|
||||
- Implemented global configuration, logical MapState, map registry, and current map context stack.
|
||||
- Implemented DirtyFlags, MapCommand, CommandKind, and coalescing MapCommandQueue.
|
||||
- Implemented logical marker, polyline, trajectory, and layer state models.
|
||||
- Implemented public runtime overlay/view/layer/provider/cache/debug wrappers against logical state without Dear PyGui calls.
|
||||
- Implemented memory cache metadata, disk cache path generation, metadata read/write, disk size scanning, and prune planning.
|
||||
- Added Step 2 tests for command coalescing, overlay/view isolation, copied trajectory inputs, coordinate length validation, layer state, disk path generation, and prune ordering.
|
||||
- Ran `uv run pytest`.
|
||||
- Ran `uv run ruff check .`.
|
||||
- Ran `uv run ruff format .`.
|
||||
- Ran `uv run ruff format --check .`.
|
||||
- Ran `uv run pyright`.
|
||||
|
||||
## Next action
|
||||
|
||||
Implement Step 2.
|
||||
Implement Step 3.
|
||||
|
||||
Reference in New Issue
Block a user