e30e75b5d4
Code Quality / Oxlint + Oxfmt (push) Waiting to run
Code Quality / Template Sync (push) Waiting to run
Code Quality / Build Changed Packages (push) Waiting to run
Code Quality / Test Changed Packages (push) Waiting to run
Deploy Expo Example / Deploy Production (push) Waiting to run
Deploy Ink Example / Deploy Production (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-stream, 3.12) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.10) (push) Waiting to run
Python Tests / pytest (assistant-ui-sync-server-api, 3.12) (push) Waiting to run
Deploy Shadcn Registry / Deploy Production (push) Waiting to run
Template Metrics / LOC + Bundle Size (push) Waiting to run
Changesets / Create Version PR (push) Has been cancelled
State Management Test
This is a test project for the assistant-stream state management functionality. It demonstrates various state operations and updates over time.
Features
- Simple State Test: Basic state updates with primitive values
- Complex Test: Nested state updates with objects and arrays
- String Operations: String concatenation and method testing
- List Operations: List manipulation with append, extend, and other operations
- Dictionary Operations: Dictionary manipulation with various methods
Setup
-
Install the requirements:
pip install -r requirements.txt -
Run the server:
python server.py -
Open your browser to http://localhost:8000
-
Click on the different test buttons to see state updates in action
Implementation Details
This test server demonstrates the following state management features:
- Primitive values (strings, numbers, booleans)
- Nested state objects
- String operations (concatenation, methods)
- List operations (append, extend, indexing)
- Dictionary operations (get, setdefault, keys/values)
Each test endpoint updates state over time with various operations to showcase the functionality of the StateProxy and StateManager classes.