coaia-visualizer 1.6.2 → 1.6.4

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.
Files changed (48) hide show
  1. package/cli.ts +11 -5
  2. package/components/chart-detail-editable.tsx +2 -0
  3. package/components/chart-detail.tsx +6 -1
  4. package/components/edit-action-step.tsx +2 -0
  5. package/components/github-provenance.tsx +226 -0
  6. package/components/relation-graph.tsx +91 -27
  7. package/dist/cli.js +9 -5
  8. package/index.tsx +26 -0
  9. package/lib/chart-editor.ts +3 -3
  10. package/lib/github-provenance.ts +316 -0
  11. package/lib/jsonl-parser.ts +2 -2
  12. package/lib/types.ts +15 -2
  13. package/package.json +31 -1
  14. package/.dockerignore +0 -9
  15. package/COMPLETE_IMPLEMENTATION_REPORT.md +0 -215
  16. package/QUICK_START_MCP_TESTING.md +0 -236
  17. package/STC.md +0 -24
  18. package/STCGOAL.md +0 -0
  19. package/STCISSUE.md +0 -48
  20. package/STCKIN.md +0 -0
  21. package/STCMASTERY.md +0 -0
  22. package/STUDY_REPORT.md +0 -510
  23. package/direct-test.sh +0 -180
  24. package/docker-compose.test.yml +0 -69
  25. package/jgwill.coaia-visualizer-8--496dca71-d476-4ac9-ba9f-376add118dd8--260208.txt +0 -2612
  26. package/mcp/dist/api-client.d.ts +0 -138
  27. package/mcp/dist/api-client.d.ts.map +0 -1
  28. package/mcp/dist/api-client.js +0 -115
  29. package/mcp/dist/api-client.js.map +0 -1
  30. package/mcp/dist/index.d.ts +0 -2
  31. package/mcp/dist/index.d.ts.map +0 -1
  32. package/mcp/dist/index.js +0 -286
  33. package/mcp/dist/index.js.map +0 -1
  34. package/mcp/dist/tools/index.d.ts +0 -18
  35. package/mcp/dist/tools/index.d.ts.map +0 -1
  36. package/mcp/dist/tools/index.js +0 -322
  37. package/mcp/dist/tools/index.js.map +0 -1
  38. package/mcp/package-lock.json +0 -210
  39. package/test-data/test-master.jsonl +0 -11
  40. package/test-results/.last-run.json +0 -4
  41. package/test-scripts/README.md +0 -325
  42. package/test-scripts/rich-jsonl-preservation.spec.ts +0 -118
  43. package/test-scripts/run-all-tests.sh +0 -38
  44. package/test-scripts/test-01-basic-operations.sh +0 -87
  45. package/test-scripts/test-02-telescope-creation.sh +0 -91
  46. package/test-scripts/test-03-navigation.sh +0 -87
  47. package/test-scripts/test-global-cli.spec.ts +0 -220
  48. package/test-scripts/verify-global-cli.sh +0 -87
@@ -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!
package/STC.md DELETED
@@ -1,24 +0,0 @@
1
-
2
- ## Activity Log Entry (2026-04-17T18:59:43Z)
3
- - **Bot**: @stcissue
4
- - **Event**: issues.opened
5
- - **Issue**: #17
6
-
7
-
8
- ## Activity Log Entry (2026-05-09T18:21:47Z)
9
- - **Bot**: @stcissue
10
- - **Event**: issues.opened
11
- - **Issue**: #18
12
-
13
-
14
- ## Activity Log Entry (2026-05-13T08:33:56Z)
15
- - **Bot**: @stcissue
16
- - **Event**: issues.opened
17
- - **Issue**: #19
18
-
19
-
20
- ## Activity Log Entry (2026-05-19T06:53:31Z)
21
- - **Bot**: @stcissue
22
- - **Event**: issues.opened
23
- - **Issue**: #20
24
-
package/STCGOAL.md DELETED
File without changes
package/STCISSUE.md DELETED
@@ -1,48 +0,0 @@
1
-
2
- ## Issue #17 - Parent chart due date not applied before adding action steps
3
-
4
- - **Repository**: jgwill/coaia-visualizer
5
- - **State**: open
6
- - **Category**: technical
7
- - **Logged**: 2026-04-17T18:59:43Z
8
- - **GitHub Link**: https://github.com/jgwill/coaia-visualizer/issues/17
9
-
10
- ### Current Reality
11
- Issue being tracked via @stcissue bot.
12
-
13
-
14
- ## Issue #18 - Render GitHub Project runtime-memory provenance in a non-breaking way
15
-
16
- - **Repository**: jgwill/coaia-visualizer
17
- - **State**: open
18
- - **Category**: technical
19
- - **Logged**: 2026-05-09T18:21:47Z
20
- - **GitHub Link**: https://github.com/jgwill/coaia-visualizer/issues/18
21
-
22
- ### Current Reality
23
- Issue being tracked via @stcissue bot.
24
-
25
-
26
- ## Issue #19 - nightly release: coaia-visualizer-mcp@1.6.0
27
-
28
- - **Repository**: jgwill/coaia-visualizer
29
- - **State**: open
30
- - **Category**: technical
31
- - **Logged**: 2026-05-13T08:33:56Z
32
- - **GitHub Link**: https://github.com/jgwill/coaia-visualizer/issues/19
33
-
34
- ### Current Reality
35
- Issue being tracked via @stcissue bot.
36
-
37
-
38
- ## Issue #20 - Render rich COAIA JSONL metadata with chart/action/beat projections
39
-
40
- - **Repository**: jgwill/coaia-visualizer
41
- - **State**: open
42
- - **Category**: technical
43
- - **Logged**: 2026-05-19T06:53:31Z
44
- - **GitHub Link**: https://github.com/jgwill/coaia-visualizer/issues/20
45
-
46
- ### Current Reality
47
- Issue being tracked via @stcissue bot.
48
-
package/STCKIN.md DELETED
File without changes
package/STCMASTERY.md DELETED
File without changes