coaia-visualizer 1.5.9 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,236 +0,0 @@
1
- # Quick Start: MCP Testing Environment
2
-
3
- ## TL;DR - Run Tests in 3 Steps
4
-
5
- ### 1. Navigate to Project
6
- ```bash
7
- cd /workspace/repos/jgwill/coaia-visualizer-feat-4
8
- ```
9
-
10
- ### 2. Run All Tests
11
- ```bash
12
- ./run-mcp-tests.sh
13
- ```
14
-
15
- ### 3. Check Results
16
- ```bash
17
- cat test-results/test-summary.txt
18
- ```
19
-
20
- **Done!** ✅ All tests run automatically.
21
-
22
- ---
23
-
24
- ## What This Does
25
-
26
- - ✅ Builds Docker images (visualizer app + MCP server + test runner)
27
- - ✅ Starts all services in isolated Docker network
28
- - ✅ Runs complete test suite non-interactively
29
- - ✅ Generates results in `test-results/` directory
30
- - ✅ Cleans up all containers
31
-
32
- ## Test Results
33
-
34
- The suite validates:
35
-
36
- | Test | What It Tests | Validates |
37
- | ----------- | ------------------------ | ------------------------------------------ |
38
- | **Test 01** | Chart creation & listing | API connectivity, CRUD operations |
39
- | **Test 02** | Telescope functionality | Sub-chart creation, both telescope methods |
40
- | **Test 03** | Navigation & hierarchy | Parent-child relationships, search |
41
-
42
- ## Files Overview
43
-
44
- ```
45
- Key Files Created:
46
- ├── docker-compose.test.yml # Docker orchestration
47
- ├── Dockerfile.app # Next.js build
48
- ├── Dockerfile.test # Test runner
49
- ├── mcp/Dockerfile # MCP server build
50
- ├── run-mcp-tests.sh # Main test script
51
- ├── test-scripts/ # Individual tests
52
- │ ├── run-all-tests.sh
53
- │ ├── test-01-basic-operations.sh
54
- │ ├── test-02-telescope-creation.sh
55
- │ ├── test-03-navigation.sh
56
- │ └── README.md # Detailed guide
57
- ├── test-data/ # Test fixtures
58
- ├── validate-mcp.sh # Quick validation
59
- └── MCP_TESTING_COMPLETE.md # Full documentation
60
- ```
61
-
62
- ## Quick Commands
63
-
64
- ### Run full test suite
65
- ```bash
66
- ./run-mcp-tests.sh
67
- ```
68
-
69
- ### Quick validation (no Docker)
70
- ```bash
71
- bash validate-mcp.sh
72
- ```
73
-
74
- ### View test results
75
- ```bash
76
- cat test-results/test-summary.txt
77
- ```
78
-
79
- ### See individual test output
80
- ```bash
81
- cat test-results/test-02/telescope-existing-action.json | jq .
82
- ```
83
-
84
- ### Start services manually
85
- ```bash
86
- docker-compose -f docker-compose.test.yml up -d visualizer-app mcp-server
87
- ```
88
-
89
- ### Run single test manually
90
- ```bash
91
- docker-compose -f docker-compose.test.yml run --rm test-runner \
92
- /test-scripts/test-02-telescope-creation.sh
93
- ```
94
-
95
- ### Stop services
96
- ```bash
97
- docker-compose -f docker-compose.test.yml down
98
- ```
99
-
100
- ### View service logs
101
- ```bash
102
- docker-compose -f docker-compose.test.yml logs visualizer-app
103
- docker-compose -f docker-compose.test.yml logs mcp-server
104
- ```
105
-
106
- ## MCP Tools Available
107
-
108
- After deployment with Claude Desktop, you can use:
109
-
110
- - `create_chart` - Create new structural tension chart
111
- - `update_chart` - Update existing chart
112
- - `delete_chart` - Remove chart
113
- - `search_charts` - Search charts
114
- - `add_action_step` - Add action (optionally telescoped)
115
- - `create_telescoped_chart` - **NEW** Telescope existing action
116
-
117
- ## Using with Claude Desktop
118
-
119
- 1. **Start visualizer:**
120
- ```bash
121
- npm run dev
122
- ```
123
-
124
- 2. **Configure Claude** with MCP server path
125
-
126
- 3. **Restart Claude Desktop**
127
-
128
- 4. **Use telescope tool in conversation:**
129
- - "Create a sub-chart for action X"
130
- - "Telescope this action"
131
- - "Drill down into this step"
132
-
133
- ## Troubleshooting
134
-
135
- | Issue | Solution |
136
- | ------------------ | ------------------------------------------------------------ |
137
- | Docker build fails | `docker-compose -f docker-compose.test.yml build --no-cache` |
138
- | Tests don't run | Check Docker is running: `docker ps` |
139
- | API not responding | Check logs: `docker-compose -f docker-compose.test.yml logs` |
140
- | Empty test results | Verify API endpoint: `curl http://localhost:4321/api/charts` |
141
-
142
- ## Environment Notes
143
-
144
- ### Optional API Keys
145
- - `ANTHROPIC_API_KEY` - For claude-code CLI testing
146
- - `GOOGLE_API_KEY` - For gemini-cli testing
147
-
148
- Tests work fine without these - they use direct HTTP calls instead.
149
-
150
- ### System Requirements
151
- - Docker & Docker Compose
152
- - Node.js 20+
153
- - npm/pnpm
154
- - ~5GB disk space for Docker images
155
- - ~5-10 minutes for first run (builds images)
156
-
157
- ## Test Results Locations
158
-
159
- ```
160
- test-results/
161
- ├── test-01/ # Basic operations
162
- │ ├── create-response.json # Chart creation response
163
- │ ├── list-response.json # List charts response
164
- │ └── chart-id.txt # ID for next test
165
-
166
- ├── test-02/ # Telescope operations
167
- │ ├── telescope-existing-action.json
168
- │ ├── final-chart-state.json
169
- │ └── telescoped-chart-id.txt # ID for test-03
170
-
171
- ├── test-03/ # Navigation
172
- │ ├── parent-chart.json # Parent chart state
173
- │ ├── navigation-summary.txt # Navigation results
174
-
175
- └── test-summary.txt # Overall pass/fail
176
- ```
177
-
178
- ## Docker Network Details
179
-
180
- All services run in isolated Docker network:
181
-
182
- ```
183
- Network: test-network
184
- ├── visualizer-app:4321 (Next.js app)
185
- ├── mcp-server (stdin/stdout)
186
- └── test-runner (bash/curl)
187
-
188
- Data Flow:
189
- Test Scripts --HTTP--> API:4321 <--HTTP--> MCP Server
190
- ```
191
-
192
- ## CI/CD Integration
193
-
194
- To add to your CI pipeline:
195
-
196
- ```yaml
197
- # GitHub Actions example
198
- - name: Run MCP Tests
199
- run: |
200
- cd /workspace/repos/jgwill/coaia-visualizer-feat-4
201
- chmod +x run-mcp-tests.sh
202
- ./run-mcp-tests.sh
203
- ```
204
-
205
- Results automatically saved to `test-results/` for review.
206
-
207
- ## Architecture Overview
208
-
209
- ```
210
- ┌─────────────────────────────────┐
211
- │ run-mcp-tests.sh │
212
- │ (Main Orchestrator) │
213
- └──────────────┬──────────────────┘
214
-
215
- ├─ Builds Docker images
216
- ├─ Starts services
217
- ├─ Runs test suite
218
- ├─ Generates results
219
- └─ Cleans up
220
- ```
221
-
222
- ## Full Documentation
223
-
224
- For detailed information, see:
225
- - `MCP_TESTING_COMPLETE.md` - Complete guide
226
- - `MCP_TESTING_SETUP.md` - Setup details
227
- - `test-scripts/README.md` - Test documentation
228
- - `MCP_TESTING_IMPLEMENTATION_SUMMARY.md` - Implementation details
229
-
230
- ---
231
-
232
- ## Status
233
-
234
- ✅ **Ready to Use**
235
-
236
- All infrastructure is in place. Run `./run-mcp-tests.sh` to test!
@@ -1,247 +0,0 @@
1
- # 🎯 Telescoped Chart Navigation - User Guide
2
-
3
- ## Quick Start
4
-
5
- ### What are Telescoped Charts?
6
-
7
- In structural tension methodology, **every action step is actually a full structural tension chart** with its own:
8
- - Desired outcome (what you want to create)
9
- - Current reality (where you actually are)
10
- - Action steps (which are also charts)
11
-
12
- This creates an **infinite fractal structure** where you can zoom into any action and work on it as a complete chart.
13
-
14
- ### Visual Indicators
15
-
16
- When viewing a master chart's actions, you'll see two types:
17
-
18
- **Regular Actions** (simple todo items):
19
- \`\`\`
20
- ┌──────────────────────────┐
21
- │ ○ Action 1 │
22
- │ Do something simple │
23
- └──────────────────────────┘
24
- \`\`\`
25
-
26
- **Telescoped Charts** (full structural tension charts):
27
- \`\`\`
28
- ┌─────────────────────────────────────┐
29
- │ ○ Action 1 📊 Chart [👁 Open ›] │ ← Gradient background
30
- │ Complex multi-step task ▓ │ ← Colored border
31
- └─────────────────────────────────────┘ ← Hover for shadow
32
- \`\`\`
33
-
34
- Key visual differences:
35
- - 🎨 **Gradient background** (subtle primary color)
36
- - 🔲 **Colored border** (primary color, brightens on hover)
37
- - 📊 **"Chart" badge** (bold, with icon)
38
- - 👁 **"Open" button** (prominent, with icons)
39
-
40
- ## How to Use
41
-
42
- ### 1. Navigate Into a Telescoped Chart
43
-
44
- 1. Find an action with the **"📊 Chart"** badge
45
- 2. Click the **"👁 Open ›"** button on the right
46
- 3. You'll navigate into that action as a full chart
47
-
48
- ### 2. Work Within the Sub-Chart
49
-
50
- Once inside, you can:
51
- - ✏️ **Edit the desired outcome** (click the pencil icon)
52
- - 📝 **Edit current reality** (add observations)
53
- - ➕ **Add action steps** (these become Level 2 charts)
54
- - ✅ **Mark complete** (advances parent's current reality)
55
- - 📅 **Set due dates**
56
- - 🗑️ **Delete the chart**
57
-
58
- ### 3. Navigate Deeper
59
-
60
- Any action steps you add to the sub-chart can themselves be opened as charts:
61
- - Add an action to a Level 1 chart → creates Level 2 chart
62
- - Add an action to a Level 2 chart → creates Level 3 chart
63
- - Continue infinitely...
64
-
65
- ### 4. Navigate Back
66
-
67
- Click **"← Back to Parent Chart"** at the top to return to the previous level.
68
-
69
- The app maintains a navigation stack, so you can:
70
- \`\`\`
71
- Level 0 (Master)
72
- → Level 1 (First action)
73
- → Level 2 (Sub-action)
74
- → Level 3 (Sub-sub-action)
75
- \`\`\`
76
-
77
- Press back repeatedly to climb back up the hierarchy.
78
-
79
- ## Example Workflow
80
-
81
- ### Creating a Multi-Level Chart
82
-
83
- **Step 1: Create Master Chart**
84
- \`\`\`
85
- Chart: "Build COAIA Feature"
86
- Desired Outcome: Complete feature implementation
87
- Current Reality: Have basic structure, need details
88
- \`\`\`
89
-
90
- **Step 2: Add Action Steps**
91
- \`\`\`
92
- Action 1: "Implement core logic"
93
- Current Reality: "Have file structure, need methods"
94
- → Creates chart_2 as Level 1
95
-
96
- Action 2: "Add UI components"
97
- Current Reality: "UI design done, need implementation"
98
- → Creates chart_3 as Level 1
99
- \`\`\`
100
-
101
- **Step 3: Navigate Into "Implement core logic"**
102
-
103
- Click **"👁 Open ›"** on Action 1
104
-
105
- Now viewing chart_2 as a full chart:
106
- \`\`\`
107
- Chart 2 (Level 1)
108
- Desired Outcome: Implement core logic
109
- Current Reality: Have file structure, need methods
110
-
111
- You can now add sub-actions:
112
- Action 1: "Write parser methods"
113
- Action 2: "Add validation logic"
114
- \`\`\`
115
-
116
- **Step 4: Navigate Deeper**
117
-
118
- Click **"👁 Open ›"** on "Write parser methods"
119
-
120
- Now viewing chart_3 (Level 2):
121
- \`\`\`
122
- Chart 3 (Level 2)
123
- Desired Outcome: Write parser methods
124
- Current Reality: Have empty functions, need implementation
125
- \`\`\`
126
-
127
- **Step 5: Navigate Back**
128
-
129
- - Click **"← Back"** once → returns to chart_2 (Level 1)
130
- - Click **"← Back"** again → returns to chart_1 (Level 0)
131
-
132
- ## Design Features
133
-
134
- ### Color Coding
135
-
136
- **Light Mode**:
137
- - Telescoped charts: Light blue/primary gradient
138
- - Border: Blue, brightens on hover
139
- - Badge: Solid blue with white text
140
- - Button: Blue with white icons
141
-
142
- **Dark Mode**:
143
- - Telescoped charts: Subtle colored gradient
144
- - Border: Colored, brightens on hover
145
- - Badge: Solid color with dark text
146
- - Button: Colored with appropriate contrast
147
-
148
- ### Interactive States
149
-
150
- **Hover**:
151
- - Border color intensifies
152
- - Shadow appears underneath card
153
- - Button shadow deepens
154
-
155
- **Focus** (keyboard navigation):
156
- - Visible focus ring around buttons
157
- - High contrast for accessibility
158
-
159
- **Completed**:
160
- - Muted background
161
- - Text has line-through
162
- - Can still be opened to view details
163
-
164
- ## Keyboard Shortcuts
165
-
166
- - **Tab**: Navigate between actions
167
- - **Enter/Space**: Click focused button
168
- - **Shift+Tab**: Navigate backwards
169
-
170
- ## Mobile Experience
171
-
172
- On mobile devices:
173
- - **Touch targets** are large enough for easy tapping
174
- - **Badge wraps** to next line if needed
175
- - **"Open" button** maintains size for easy access
176
- - **Scrolling** works smoothly through action lists
177
-
178
- ## Tips & Tricks
179
-
180
- ### When to Create Telescoped Charts
181
-
182
- Create a telescoped chart (action step) when:
183
- - ✅ The task has multiple sub-steps
184
- - ✅ You need to track progress on sub-components
185
- - ✅ The task has its own structural tension
186
- - ✅ You want to maintain the advancing pattern at multiple levels
187
-
188
- Use simple actions when:
189
- - ✅ The task is genuinely atomic
190
- - ✅ No sub-planning needed
191
- - ✅ Quick checkbox completion is sufficient
192
-
193
- ### Organizing Deep Hierarchies
194
-
195
- For complex projects:
196
- \`\`\`
197
- Level 0: Project goal
198
- Level 1: Major features/phases
199
- Level 2: Specific implementation tasks
200
- Level 3: Detailed sub-tasks
201
- Level 4: Implementation details
202
- \`\`\`
203
-
204
- ### Completing Charts at Different Levels
205
-
206
- When you mark a Level 2 action complete:
207
- - ✅ The Level 2 chart's desired outcome is marked complete
208
- - ✅ The Level 1 chart's current reality gets "Completed: {action}" added
209
- - ✅ This creates momentum up the hierarchy
210
-
211
- ## Troubleshooting
212
-
213
- **Q: I don't see the "Open" button**
214
-
215
- A: The action might not be a telescoped chart. Only actions with the "📊 Chart" badge can be opened. Regular actions don't have this button.
216
-
217
- **Q: The "Open" button doesn't work**
218
-
219
- A: Make sure you've loaded a file with properly structured telescoped charts. The test file `feat-4-mcp-api/test-telescoped-charts.jsonl` has examples.
220
-
221
- **Q: I can't find the back button**
222
-
223
- A: The "← Back to Parent Chart" button only appears when you're viewing a sub-chart (Level 1+). It won't show on Level 0 (master) charts.
224
-
225
- **Q: How deep can I nest charts?**
226
-
227
- A: Infinitely! The system supports unlimited nesting levels (0 → 1 → 2 → 3 → ...).
228
-
229
- ## Screenshots
230
-
231
- Check the `screenshots/` directory for visual examples:
232
- - `improved-01-actions.png`: Action list with telescoped charts
233
- - `improved-02-action-detail.png`: Close-up of telescoped action
234
- - `improved-03-after-open.png`: Sub-chart view after navigation
235
-
236
- ## Related Documentation
237
-
238
- - **UI_GUIDE.md**: Detailed design specifications
239
- - **TELESCOPED_CHART_NAVIGATION.md**: Technical implementation
240
- - **IMPLEMENTATION_COMPLETE.md**: Development summary
241
- - **FEATURE_4_COMPLETE.md**: Full Feature 4 documentation
242
-
243
- ## Support
244
-
245
- The telescoped chart navigation has been fully tested and verified with automated Playwright tests. All functionality is production-ready.
246
-
247
- **Version: 1.4.0**
package/STC.md DELETED
File without changes
package/STCGOAL.md DELETED
File without changes
package/STCISSUE.md DELETED
File without changes
package/STCKIN.md DELETED
File without changes
package/STCMASTERY.md DELETED
File without changes