jsgui3-server 0.0.138 → 0.0.140

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 (57) hide show
  1. package/AGENTS.md +87 -0
  2. package/README.md +12 -0
  3. package/docs/GUIDE_TO_AGENTIC_WORKFLOWS_BY_GROK.md +19 -0
  4. package/docs/advanced-usage-examples.md +1360 -0
  5. package/docs/agent-development-guide.md +386 -0
  6. package/docs/api-reference.md +916 -0
  7. package/docs/broken-functionality-tracker.md +285 -0
  8. package/docs/bundling-system-deep-dive.md +525 -0
  9. package/docs/cli-reference.md +393 -0
  10. package/docs/comprehensive-documentation.md +1403 -0
  11. package/docs/configuration-reference.md +808 -0
  12. package/docs/controls-development.md +859 -0
  13. package/docs/documentation-review/CURRENT_REVIEW.md +95 -0
  14. package/docs/function-publishers-json-apis.md +847 -0
  15. package/docs/getting-started-with-json.md +518 -0
  16. package/docs/minification-compression-sourcemaps-status.md +482 -0
  17. package/docs/minification-compression-sourcemaps-test-results.md +205 -0
  18. package/docs/publishers-guide.md +313 -0
  19. package/docs/resources-guide.md +615 -0
  20. package/docs/serve-helpers.md +406 -0
  21. package/docs/simple-server-api-design.md +13 -0
  22. package/docs/system-architecture.md +275 -0
  23. package/docs/troubleshooting.md +698 -0
  24. package/examples/json/README.md +115 -0
  25. package/examples/json/basic-api/README.md +345 -0
  26. package/examples/json/basic-api/server.js +199 -0
  27. package/examples/json/simple-api/README.md +125 -0
  28. package/examples/json/simple-api/diagnostic-report.json +73 -0
  29. package/examples/json/simple-api/diagnostic-test.js +433 -0
  30. package/examples/json/simple-api/server-debug.md +58 -0
  31. package/examples/json/simple-api/server.js +91 -0
  32. package/examples/json/simple-api/test.js +215 -0
  33. package/http/responders/static/Static_Route_HTTP_Responder.js +1 -2
  34. package/package.json +19 -8
  35. package/publishers/helpers/assigners/static-compressed-response-buffers/Single_Control_Webpage_Server_Static_Compressed_Response_Buffers_Assigner.js +65 -12
  36. package/publishers/helpers/preparers/static/bundle/Static_Routes_Responses_Webpage_Bundle_Preparer.js +6 -1
  37. package/publishers/http-function-publisher.js +59 -38
  38. package/publishers/http-webpage-publisher.js +48 -1
  39. package/resources/processors/bundlers/js/esbuild/Advanced_JS_Bundler_Using_ESBuild.js +38 -146
  40. package/resources/processors/bundlers/js/esbuild/Core_JS_Non_Minifying_Bundler_Using_ESBuild.js +54 -5
  41. package/resources/processors/bundlers/js/esbuild/Core_JS_Single_File_Minifying_Bundler_Using_ESBuild.js +36 -4
  42. package/serve-factory.js +36 -9
  43. package/server.js +10 -4
  44. package/test-report.json +0 -0
  45. package/tests/README.md +250 -0
  46. package/tests/assigners.test.js +316 -0
  47. package/tests/bundlers.test.js +329 -0
  48. package/tests/configuration-validation.test.js +530 -0
  49. package/tests/content-analysis.test.js +641 -0
  50. package/tests/end-to-end.test.js +496 -0
  51. package/tests/error-handling.test.js +746 -0
  52. package/tests/performance.test.js +653 -0
  53. package/tests/publishers.test.js +395 -0
  54. package/tests/temp_invalid.js +7 -0
  55. package/tests/temp_invalid_utf8.js +1 -0
  56. package/tests/temp_malformed.js +10 -0
  57. package/tests/test-runner.js +261 -0
@@ -0,0 +1,285 @@
1
+ # Broken Functionality Tracker
2
+
3
+ ## When to Read
4
+
5
+ This document tracks known broken or incomplete functionality in JSGUI3 Server. Read this when:
6
+ - You encounter errors or unexpected behavior
7
+ - You're working on fixing broken features
8
+ - You need to understand what functionality is unreliable
9
+ - You're planning development work and want to avoid broken areas
10
+ - You discover new broken functionality that needs documentation
11
+
12
+ **Critical**: If you find broken functionality, document it here immediately with full details.
13
+
14
+ ## Current Status Overview
15
+
16
+ | Category | Working | Broken | Incomplete | Total |
17
+ |----------|---------|--------|------------|-------|
18
+ | Core Server | 8 | 2 | 1 | 11 |
19
+ | Publishers | 3 | 1 | 2 | 6 |
20
+ | Resources | 2 | 0 | 0 | 2 |
21
+ | Controls | 1 | 0 | 1 | 2 |
22
+ | CLI | 3 | 0 | 1 | 4 |
23
+ | Bundling | 3 | 1 | 0 | 4 |
24
+ | **Total** | **21** | **4** | **5** | **29** |
25
+
26
+ ## Critical Issues (Block Core Functionality)
27
+
28
+ ### 🔴 1. Website Publisher Incomplete
29
+ **Status**: BROKEN - Critical
30
+ **Location**: `publishers/http-website-publisher.js`
31
+ **Issue**: Contains comment "Possibly missing website publishing code"
32
+ **Impact**: Multi-page websites cannot be served correctly
33
+ **Error Symptoms**:
34
+ - Server fails to start with website configuration
35
+ - Routes not properly registered for multi-page sites
36
+ - 404 errors for non-root pages
37
+ **Workaround**: Use single-page applications only
38
+ **Priority**: HIGH - Blocks multi-page website functionality
39
+ **Assigned**: Unassigned
40
+ **Last Updated**: 2025-11-02
41
+
42
+ ### 🔴 2. Server Ready Signal Confusion
43
+ **Status**: BROKEN - Critical
44
+ **Location**: `server.js` start() method
45
+ **Issue**: Multiple "ready" events emitted, unclear when server is truly ready
46
+ **Impact**: Race conditions, CLI exits prematurely, unreliable startup
47
+ **Error Symptoms**:
48
+ - CLI reports "Server ready" before server is actually listening
49
+ - Bundling errors occur after "ready" signal
50
+ - Inconsistent startup timing
51
+ **Workaround**: Add manual delays in scripts
52
+ **Priority**: HIGH - Affects all server startups
53
+ **Assigned**: Unassigned
54
+ **Last Updated**: 2025-11-02
55
+
56
+ ## High Priority Issues (Major Features Broken)
57
+
58
+ ### 🟠 3. No Default Holding Page
59
+ **Status**: INCOMPLETE - High Priority
60
+ **Location**: Server startup logic
61
+ **Issue**: No default page served when no content configured
62
+ **Impact**: Server fails to start or serves errors with minimal config
63
+ **Error Symptoms**:
64
+ - 404 for all routes when no controls configured
65
+ - Unhelpful error messages for new users
66
+ - No fallback content available
67
+ **Workaround**: Always provide explicit control configuration
68
+ **Priority**: HIGH - Affects new user experience
69
+ **Assigned**: Unassigned
70
+ **Last Updated**: 2025-11-02
71
+
72
+ ### 🟠 4. Admin Interface Not Available
73
+ **Status**: INCOMPLETE - High Priority
74
+ **Location**: Server startup and routing
75
+ **Issue**: `/admin` route not automatically configured
76
+ **Impact**: No default administrative interface
77
+ **Error Symptoms**:
78
+ - 404 at `/admin` route
79
+ - No way to inspect server status
80
+ - Admin controls exist but not accessible
81
+ **Workaround**: None - admin interface completely unavailable
82
+ **Priority**: MEDIUM - Planned feature not implemented
83
+ **Assigned**: Unassigned
84
+ **Last Updated**: 2025-11-02
85
+
86
+ ## Medium Priority Issues (Annoying but Workable)
87
+
88
+ ### 🟡 5. CSS Bundling Unreliable
89
+ **Status**: BROKEN - Medium Priority
90
+ **Location**: Bundling system, various files
91
+ **Issue**: Legacy bundle paths, dead code, NYI markers
92
+ **Impact**: CSS may not bundle correctly in some cases
93
+ **Error Symptoms**:
94
+ - Missing styles in served pages
95
+ - CSS not extracted from control classes
96
+ - Inconsistent bundling behavior
97
+ **Workaround**: Use inline styles or external CSS
98
+ **Priority**: MEDIUM - Affects styling but not core functionality
99
+ **Assigned**: Unassigned
100
+ **Last Updated**: 2025-11-02
101
+
102
+ ### 🟡 6. Inconsistent Error Handling
103
+ **Status**: BROKEN - Medium Priority
104
+ **Location**: Throughout codebase
105
+ **Issue**: Mix of callbacks, promises, and events for error handling
106
+ **Impact**: Unpredictable error propagation and reporting
107
+ **Error Symptoms**:
108
+ - Some errors swallowed silently
109
+ - Inconsistent error formats
110
+ - Difficult debugging of failures
111
+ **Workaround**: Add extensive logging and error checking
112
+ **Priority**: MEDIUM - Affects debugging but not core runtime
113
+ **Assigned**: Unassigned
114
+ **Last Updated**: 2025-11-02
115
+
116
+ ## Low Priority Issues (Code Quality)
117
+
118
+ ### 🟢 7. Obsolete Code Not Removed
119
+ **Status**: CODE QUALITY - Low Priority
120
+ **Location**: `website/website.js`
121
+ **Issue**: `Obselete_Style_Website` class still present
122
+ **Impact**: Codebase confusion, maintenance burden
123
+ **Error Symptoms**: None (dead code)
124
+ **Workaround**: N/A
125
+ **Priority**: LOW - Cleanup task
126
+ **Assigned**: Unassigned
127
+ **Last Updated**: 2025-11-02
128
+
129
+ ### 🟢 8. Inconsistent Property Naming
130
+ **Status**: CODE QUALITY - Low Priority
131
+ **Location**: Various files
132
+ **Issue**: Multiple names for same concept (`src_path_client_js`, `disk_path_client_js`, etc.)
133
+ **Impact**: API confusion, maintenance difficulty
134
+ **Error Symptoms**: None (naming inconsistency)
135
+ **Workaround**: Use any of the supported names
136
+ **Priority**: LOW - Standardization task
137
+ **Assigned**: Unassigned
138
+ **Last Updated**: 2025-11-02
139
+
140
+ ## Recently Fixed Issues
141
+
142
+ ### ✅ 9. Server.serve() API
143
+ **Status**: FIXED
144
+ **Resolution**: Implemented simplified server startup API
145
+ **Date Fixed**: 2025-11-02
146
+ **Notes**: New API provides auto-discovery and promise-based startup
147
+
148
+ ### ✅ 10. CLI Basic Functionality
149
+ **Status**: FIXED
150
+ **Resolution**: Basic CLI implemented with serve command
151
+ **Date Fixed**: 2025-11-02
152
+ **Notes**: Environment variable support and help/version commands working
153
+
154
+ ## Issue Tracking Template
155
+
156
+ When documenting new broken functionality, use this template:
157
+
158
+ ```
159
+ ### 🔴 [Issue Number]. [Descriptive Title]
160
+ **Status**: [BROKEN|INCOMPLETE|CODE QUALITY] - [Critical|High|Medium|Low] Priority
161
+ **Location**: [file.js:line or file.js method]
162
+ **Issue**: [Clear description of what's broken]
163
+ **Impact**: [What functionality is affected]
164
+ **Error Symptoms**:
165
+ - [Specific error messages or behaviors]
166
+ - [How to reproduce]
167
+ - [Expected vs actual behavior]
168
+ **Workaround**: [How to work around the issue]
169
+ **Priority**: [HIGH|MEDIUM|LOW] - [Reason for priority]
170
+ **Assigned**: [Agent name or Unassigned]
171
+ **Last Updated**: [YYYY-MM-DD]
172
+ **Dependencies**: [Related issues or prerequisites]
173
+ **Reproduction Steps**:
174
+ 1. [Step by step to reproduce]
175
+ 2. [Expected result]
176
+ 3. [Actual result]
177
+ **Test Case**: [Code to reproduce the issue]
178
+ **Related Issues**: [Links to related broken functionality]
179
+ ```
180
+
181
+ ## Testing Status for Broken Features
182
+
183
+ ### Website Publisher
184
+ - **Test Case**: Create multi-page website configuration
185
+ - **Expected**: All pages serve correctly
186
+ - **Actual**: Likely fails or serves incomplete content
187
+ - **Last Tested**: Not tested (known broken)
188
+
189
+ ### Server Ready Signal
190
+ - **Test Case**: Start server and check timing of ready events
191
+ - **Expected**: Single clear "Server ready" message after all setup complete
192
+ - **Actual**: Multiple ready events, unclear timing
193
+ - **Last Tested**: 2025-11-02 (confirmed broken)
194
+
195
+ ### Default Holding Page
196
+ - **Test Case**: Start server with no configuration
197
+ - **Expected**: Serves helpful default page
198
+ - **Actual**: 404 or error
199
+ - **Last Tested**: Not tested (known incomplete)
200
+
201
+ ### Admin Interface
202
+ - **Test Case**: Access `/admin` route on running server
203
+ - **Expected**: Admin interface with server status
204
+ - **Actual**: 404 error
205
+ - **Last Tested**: 2025-11-02 (confirmed missing)
206
+
207
+ ## Impact Assessment
208
+
209
+ ### User Experience Impact
210
+ - **New Users**: High impact - default holding page missing, unclear error messages
211
+ - **Developers**: Medium impact - inconsistent APIs, poor error handling
212
+ - **Production**: High impact - broken website publisher affects multi-page apps
213
+
214
+ ### Development Impact
215
+ - **Maintenance**: Medium - obsolete code, inconsistent naming
216
+ - **Debugging**: High - poor error handling makes issues hard to track
217
+ - **Testing**: High - unreliable ready signals affect automated testing
218
+
219
+ ### Business Impact
220
+ - **Reliability**: High - critical features broken
221
+ - **Scalability**: Medium - bundling issues affect performance
222
+ - **Adoption**: High - poor first experience with missing defaults
223
+
224
+ ## Mitigation Strategies
225
+
226
+ ### Immediate (Next Sprint)
227
+ 1. Fix server ready signal consolidation
228
+ 2. Implement default holding page
229
+ 3. Complete website publisher investigation
230
+
231
+ ### Short Term (1-2 Weeks)
232
+ 1. Add admin interface routing
233
+ 2. Clean up CSS bundling code
234
+ 3. Standardize error handling patterns
235
+
236
+ ### Long Term (1 Month)
237
+ 1. Remove obsolete code
238
+ 2. Standardize naming conventions
239
+ 3. Add comprehensive test coverage
240
+
241
+ ## Monitoring and Alerts
242
+
243
+ ### Automated Checks
244
+ - [ ] Server startup time monitoring
245
+ - [ ] Ready signal timing validation
246
+ - [ ] Default page availability check
247
+ - [ ] Admin route accessibility test
248
+
249
+ ### Manual Verification
250
+ - [ ] Multi-page website creation test
251
+ - [ ] CSS bundling verification
252
+ - [ ] Error handling consistency check
253
+ - [ ] API naming standardization audit
254
+
255
+ ## Dependencies and Blockers
256
+
257
+ ### Blocked Features
258
+ - **Multi-page websites**: Blocked by website publisher issues
259
+ - **Admin interface**: Blocked by missing routing
260
+ - **Production deployment**: Affected by ready signal issues
261
+ - **User onboarding**: Blocked by missing default page
262
+
263
+ ### Risk Assessment
264
+ - **High Risk**: Server ready signal (affects all deployments)
265
+ - **Medium Risk**: Website publisher (affects complex applications)
266
+ - **Low Risk**: Code quality issues (maintenance burden only)
267
+
268
+ ## Success Metrics
269
+
270
+ ### Completion Criteria
271
+ - [ ] All critical issues resolved
272
+ - [ ] Multi-page websites working
273
+ - [ ] Clear single ready signal
274
+ - [ ] Default holding page available
275
+ - [ ] Admin interface accessible
276
+
277
+ ### Quality Gates
278
+ - [ ] All high-priority issues fixed
279
+ - [ ] Test coverage for fixed functionality
280
+ - [ ] Documentation updated for changes
281
+ - [ ] No new broken functionality introduced
282
+
283
+ ---
284
+
285
+ **Remember**: This document is the authoritative source for tracking broken functionality. Update it immediately when you discover new issues or fix existing ones. Use the template above for consistent documentation.