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
package/AGENTS.md CHANGED
@@ -5,6 +5,93 @@
5
5
  - Update existing agent-authored code to match these conventions when you make changes.
6
6
  - If you must diverge from this convention, document the reason directly in the relevant file.
7
7
 
8
+ ## Documentation Index
9
+
10
+ ### Core Documentation
11
+ - **[README.md](../README.md)** - Main project overview, quick start guide, and architecture overview
12
+ - **[docs/comprehensive-documentation.md](docs/comprehensive-documentation.md)** - Detailed technical documentation with API reference and examples
13
+ - **[docs/simple-server-api-design.md](docs/simple-server-api-design.md)** - Server API design principles and implementation guide
14
+
15
+ ### System Architecture & Integration
16
+ - **[docs/system-architecture.md](docs/system-architecture.md)** - Complete system architecture overview and component integration
17
+
18
+ ### Component Development Guides
19
+ - **[docs/controls-development.md](docs/controls-development.md)** - Guide for developing custom JSGUI3 controls
20
+ - **[docs/publishers-guide.md](docs/publishers-guide.md)** - Guide for publishers and content serving
21
+ - **[docs/resources-guide.md](docs/resources-guide.md)** - Guide for resources and data abstraction
22
+
23
+ ### Specialized Documentation
24
+ - **[docs/GUIDE_TO_AGENTIC_WORKFLOWS_BY_GROK.md](docs/GUIDE_TO_AGENTIC_WORKFLOWS_BY_GROK.md)** - Comprehensive guide to agentic workflows and autonomous task execution
25
+
26
+ ### Technical References
27
+ - **[docs/api-reference.md](docs/api-reference.md)** - Complete API reference for classes, methods, and utilities
28
+ - **[docs/configuration-reference.md](docs/configuration-reference.md)** - Detailed configuration options and examples
29
+ - **[docs/cli-reference.md](docs/cli-reference.md)** - Command-line interface reference
30
+ - **[docs/serve-helpers.md](docs/serve-helpers.md)** - Internal helper utilities reference
31
+ - **[docs/troubleshooting.md](docs/troubleshooting.md)** - Troubleshooting guide with solutions
32
+ - **[docs/bundling-system-deep-dive.md](docs/bundling-system-deep-dive.md)** - Deep technical dive into the bundling system
33
+ - **[docs/advanced-usage-examples.md](docs/advanced-usage-examples.md)** - Advanced usage patterns and examples
34
+
35
+ ### Agent Development
36
+ - **[docs/agent-development-guide.md](docs/agent-development-guide.md)** - Guide for AI agents working on this codebase
37
+ - **[docs/broken-functionality-tracker.md](docs/broken-functionality-tracker.md)** - Tracker for broken/incomplete functionality
38
+
39
+ ### Review and Maintenance
40
+ - **[docs/documentation-review/CURRENT_REVIEW.md](docs/documentation-review/CURRENT_REVIEW.md)** - Current documentation review status and known issues
41
+
42
+ ## Task → Doc Quick Map
43
+
44
+ ### Getting Started
45
+ - **First-time setup and basic usage** → `README.md` (Quick Start section)
46
+ - **Understanding project architecture** → `README.md` (Architecture Overview) or `docs/comprehensive-documentation.md`
47
+
48
+ ### Development Tasks
49
+ - **Creating new controls/components** → `docs/comprehensive-documentation.md` (Control System section)
50
+ - **Setting up server and API endpoints** → `docs/simple-server-api-design.md` or `docs/comprehensive-documentation.md` (API Reference)
51
+ - **Working with data binding** → `docs/comprehensive-documentation.md` (Data Binding Architecture)
52
+
53
+ ### Advanced Development
54
+ - **Complex multi-phase projects** → `docs/GUIDE_TO_AGENTIC_WORKFLOWS_BY_GROK.md` (Part IX)
55
+ - **Error handling and recovery** → `docs/GUIDE_TO_AGENTIC_WORKFLOWS_BY_GROK.md` (Part VIII)
56
+ - **Performance optimization** → `docs/comprehensive-documentation.md` (Performance Considerations)
57
+ - **System architecture** → `docs/system-architecture.md`
58
+ - **Custom control development** → `docs/controls-development.md`
59
+ - **Publisher system** → `docs/publishers-guide.md`
60
+ - **Resource management** → `docs/resources-guide.md`
61
+
62
+ ### Agent Development
63
+ - **Agentic workflow patterns** → `docs/GUIDE_TO_AGENTIC_WORKFLOWS_BY_GROK.md`
64
+ - **Tool integration and usage** → `docs/GUIDE_TO_AGENTIC_WORKFLOWS_BY_GROK.md` (Part V)
65
+ - **Quality assurance** → `docs/GUIDE_TO_AGENTIC_WORKFLOWS_BY_GROK.md` (Part VI)
66
+
67
+ ### Deployment and Production
68
+ - **Production deployment** → `docs/comprehensive-documentation.md` (Deployment & Production)
69
+ - **Performance tuning** → `docs/comprehensive-documentation.md` (Performance Considerations)
70
+ - **Security considerations** → `docs/comprehensive-documentation.md` (Security section)
71
+
72
+ ## Tooling
73
+
74
+ ### Development Tools
75
+ - **Package Management**: npm/yarn for dependency management
76
+ - **Version Control**: Git for source code management
77
+ - **Code Quality**: ESLint for code linting and style enforcement
78
+ - **Testing**: Mocha for unit and integration testing
79
+
80
+ ### Build and Bundling
81
+ - **JavaScript Bundling**: ESBuild for fast JS bundling and minification
82
+ - **CSS Processing**: Built-in CSS extraction and bundling from control definitions
83
+ - **Asset Management**: Automatic handling of static assets and resources
84
+
85
+ ### Server Tools
86
+ - **HTTP Server**: Built-in Node.js HTTP server with WebSocket support
87
+ - **API Framework**: Function-based API endpoints with automatic JSON/text handling
88
+ - **Static File Serving**: Efficient serving of CSS, JS, and other assets
89
+
90
+ ### Development Workflow
91
+ - **Hot Reloading**: Restart server on code changes (manual restart required)
92
+ - **Debug Mode**: Enable with `JSGUI_DEBUG=1` for verbose logging
93
+ - **Environment Variables**: Support for `PORT`, `HOST`, `JSGUI_DEBUG` configuration
94
+
8
95
  ## Reference Guide
9
96
 
10
97
  The [GUIDE_TO_AGENTIC_WORKFLOWS_BY_GROK.md](docs/GUIDE_TO_AGENTIC_WORKFLOWS_BY_GROK.md) provides comprehensive principles for autonomous AI task execution. It covers foundational concepts, context gathering, planning strategies, execution patterns, tool integration, quality assurance, communication, error handling, and advanced techniques for complex multi-phase projects. This guide is useful for agents to master agentic workflows, ensuring systematic, goal-directed processes for independent task completion, with emphasis on responsibility, continuous learning, and quality gates.
package/README.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Jsgui3 Server
2
2
 
3
+ ## When to Read
4
+
5
+ This is the primary entry point for understanding the JSGUI3 Server project. Read this document first when:
6
+ - You're new to the project and need an overview
7
+ - You want to understand the architecture and core concepts
8
+ - You're looking for quick start guides and basic usage examples
9
+ - You need to understand the project's capabilities and limitations
10
+
11
+ **Note:** For detailed API documentation, see [docs/comprehensive-documentation.md](docs/comprehensive-documentation.md). For advanced server API design, see [docs/simple-server-api-design.md](docs/simple-server-api-design.md).
12
+
13
+ # Jsgui3 Server
14
+
3
15
  JSGUI3 Server is a Node.js-based application server for serving modern JavaScript GUI applications to web clients. It provides a complete runtime environment for delivering dynamic, component-based user interfaces with integrated data binding, event handling, and automatic CSS/JS bundling.
4
16
 
5
17
  ## Quick Start
@@ -1,5 +1,24 @@
1
1
  # Guide to Agentic Workflows by Grok
2
2
 
3
+ ## When to Read
4
+
5
+ This comprehensive guide covers principles and patterns for autonomous AI task execution. Read this when:
6
+ - You're developing or working with AI agents that need to execute complex, multi-step tasks
7
+ - You want to understand systematic approaches to autonomous problem-solving
8
+ - You're designing frameworks for AI task execution and workflow management
9
+ - You need guidance on error handling, quality assurance, and continuous improvement in AI systems
10
+ - You're interested in advanced patterns for coordinating multiple AI agents or complex projects
11
+
12
+ **Note:** This is a specialized guide for AI agent development. For JSGUI3 Server documentation, see [README.md](../README.md) or [docs/comprehensive-documentation.md](docs/comprehensive-documentation.md).
13
+
14
+ **Split Recommendation:** This document (2070 lines) is very large and covers multiple complex topics. Consider splitting into focused sections:
15
+ - Part I-II: Foundations and Context Gathering
16
+ - Part III-IV: Planning and Execution
17
+ - Part V-VII: Tools, Quality Assurance, and Communication
18
+ - Part VIII-XII: Error Handling, Advanced Patterns, and Future Directions
19
+
20
+ # Guide to Agentic Workflows by Grok
21
+
3
22
  *A Comprehensive Framework for Autonomous AI Task Execution*
4
23
 
5
24
  ---