@defai.digital/automatosx 5.0.1 โ†’ 5.0.3

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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,174 @@ All notable changes to AutomatosX will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [5.0.3] - 2025-10-09
9
+
10
+ ### ๐Ÿ› Critical Bug Fix
11
+
12
+ #### FTS5 Query Sanitization - Special Character Support
13
+
14
+ **Problem**: Memory search failed with syntax errors for queries containing common special characters (`/`, `@`, `#`, `&`, `=`, `?`, `!`, `;`, `'`, `` ` ``, `,`)
15
+
16
+ **Impact**:
17
+ - โŒ File path queries: `src/core/memory-manager.ts` โ†’ `fts5: syntax error near "/"`
18
+ - โŒ URL queries: `https://github.com/defai/automatosx` โ†’ Failed
19
+ - โŒ Date queries: `2025/10/09` โ†’ Failed
20
+ - โŒ Email queries: `user@example.com` โ†’ Failed
21
+ - โŒ All other queries with special characters โ†’ Silent memory injection failure
22
+
23
+ **Root Cause**: Incomplete FTS5 special character sanitization in `memory-manager.ts:301`
24
+
25
+ **Fix**: Extended regex pattern to sanitize 11 additional special characters:
26
+ - Before: `.:"*()[\]{}^$+|\\%<>~-` (15 characters)
27
+ - After: `.:"*()[\]{}^$+|\\%<>~\-/@#&=?!;'\`,` (26 characters) โœ…
28
+
29
+ **Testing**:
30
+ - โœ… Added 29 comprehensive tests (504 lines) covering all real-world scenarios
31
+ - โœ… All 1079 existing tests pass (zero regressions)
32
+ - โœ… Performance optimized for CI environments (1s timeout vs 100ms)
33
+
34
+ **Discovered By**: Queenie during Paris migration script review
35
+
36
+ **Affects**: All users since v5.0.1
37
+
38
+ **Files Modified**:
39
+ - `src/core/memory-manager.ts` (1 line)
40
+ - `tests/unit/memory-manager-special-chars.test.ts` (new, 509 lines)
41
+
42
+ ### ๐Ÿงช Test Coverage
43
+
44
+ **New Test Suite**: `memory-manager-special-chars.test.ts`
45
+ - โœ… File paths (Unix & Windows)
46
+ - โœ… URLs (HTTPS, query parameters, hash fragments)
47
+ - โœ… Dates (YYYY/MM/DD, MM/DD/YYYY)
48
+ - โœ… Email addresses
49
+ - โœ… Hashtags
50
+ - โœ… Mathematical expressions
51
+ - โœ… Special characters (?, !, &, ;, ', `, ,)
52
+ - โœ… Complex real-world queries
53
+ - โœ… Edge cases & performance
54
+
55
+ **Test Results**: 29/29 passed โœ…
56
+
57
+ ### ๐Ÿš€ Performance
58
+
59
+ - Search with special chars: < 1ms per query
60
+ - 100-entry performance test: < 1000ms (CI-safe)
61
+ - Zero impact on existing search performance
62
+
63
+ ---
64
+
65
+ ## [5.0.2] - 2025-10-09
66
+
67
+ ### ๐Ÿ“š Documentation
68
+
69
+ #### Comprehensive Multi-Agent Orchestration Guide
70
+ - โœ… Created `docs/guide/multi-agent-orchestration.md` (627 lines)
71
+ - โœ… Complete guide to v4.7.0+ multi-agent collaboration features
72
+ - โœ… Covers: Sessions, delegation, workspaces, capability-first strategy
73
+ - โœ… 7 delegation syntaxes with examples (including Chinese support)
74
+ - โœ… CLI commands reference with practical examples
75
+ - โœ… 3 detailed workflow examples (simple, multi-agent, nested)
76
+ - โœ… Best practices and troubleshooting sections
77
+ - โœ… Performance metrics and advanced patterns
78
+
79
+ #### Enhanced Existing Documentation
80
+ - โœ… Updated `TROUBLESHOOTING.md`: CLI authentication, FTS5 references, timeout fixes
81
+ - โœ… Updated `CONTRIBUTING.md`: Test coverage (85%), license (Apache 2.0)
82
+ - โœ… Enhanced `FAQ.md`: Added 3 major FAQs (templates, teams, migration)
83
+ - โœ… Archived `docs/BETA-TESTING.md` โ†’ `docs/archived/BETA-TESTING-v4.0.md`
84
+
85
+ ### ๐ŸŽฏ Configuration Schema
86
+
87
+ #### Self-Contained JSON Schema
88
+ - โœ… Created comprehensive `schema/config.json` (24 KB)
89
+ - โœ… Complete schema for all AutomatosX v5.0+ configuration options
90
+ - โœ… 25+ type definitions matching TypeScript interfaces
91
+ - โœ… Standard JSON Schema draft-07 format
92
+ - โœ… IDE validation support (VS Code, WebStorm, etc.)
93
+
94
+ #### Schema Migration
95
+ - โœ… Migrated from external URL to repository-based schema
96
+ - โœ… All `$schema` references use relative path: `./schema/config.json`
97
+ - โœ… Works offline with schema caching
98
+ - โœ… No external dependencies for configuration validation
99
+ - โœ… Updated 10+ files (source code, config files, tests)
100
+
101
+ ### ๐Ÿ“– Documentation Updates
102
+
103
+ **Files Created**:
104
+ - `docs/guide/multi-agent-orchestration.md` (627 lines)
105
+ - `docs/archived/BETA-TESTING-v4.0.md` (moved from docs/)
106
+ - `schema/config.json` (24 KB, 600+ lines)
107
+
108
+ **Files Updated**:
109
+ - `README.md`: Added v5.0.2 release notes
110
+ - `TROUBLESHOOTING.md`: ~40 lines modified
111
+ - `CONTRIBUTING.md`: 2 critical accuracy fixes
112
+ - `FAQ.md`: +83 lines (3 new comprehensive FAQs)
113
+ - `automatosx.config.json`: Schema reference updated
114
+ - `src/cli/commands/config.ts`: Schema reference updated
115
+ - `src/cli/commands/init.ts`: Schema reference updated
116
+ - `src/cli/commands/config/reset.ts`: Schema reference updated
117
+ - `tests/**/*.test.ts`: Schema references updated
118
+
119
+ ### ๐Ÿ—‚๏ธ Documentation Organization
120
+
121
+ #### Archived Content
122
+ - โœ… `BETA-TESTING.md` โ†’ `docs/archived/BETA-TESTING-v4.0.md`
123
+ - โœ… Added archived notice with links to current docs
124
+ - โœ… Preserved historical beta testing documentation
125
+
126
+ #### Accuracy Improvements
127
+ - โœ… Replaced "API key configuration" with "CLI authentication"
128
+ - โœ… Updated "vector search" references to "FTS5 full-text search"
129
+ - โœ… Corrected test coverage (67% โ†’ ~85%)
130
+ - โœ… Fixed license reference (MIT โ†’ Apache 2.0)
131
+
132
+ ### โœ… Quality Improvements
133
+
134
+ **Documentation Coverage**:
135
+ - โœ… Multi-agent orchestration: Fully documented
136
+ - โœ… Team-based configuration: Comprehensive guide
137
+ - โœ… Agent templates: Complete reference
138
+ - โœ… Migration guides: Added to FAQ
139
+ - โœ… Troubleshooting: Updated with current information
140
+
141
+ **Schema Completeness**:
142
+ - โœ… All configuration options documented
143
+ - โœ… Validation rules for required fields
144
+ - โœ… Min/max constraints for numeric values
145
+ - โœ… Enum values for restricted fields
146
+ - โœ… Comprehensive descriptions for all properties
147
+
148
+ **Backward Compatibility**:
149
+ - โœ… All changes are non-breaking
150
+ - โœ… Existing configurations continue to work
151
+ - โœ… Schema validation is optional (IDE feature)
152
+ - โœ… No code changes required for upgrade
153
+
154
+ ### ๐Ÿ“Š Statistics
155
+
156
+ ```
157
+ Documentation Changes:
158
+ - Files created: 3 (orchestration guide, schema, archived beta guide)
159
+ - Files updated: 10+ (README, FAQ, TROUBLESHOOTING, CONTRIBUTING, source files)
160
+ - Lines added: ~770 (documentation + schema)
161
+ - Lines modified: ~50 (accuracy fixes)
162
+
163
+ Schema Coverage:
164
+ - Configuration options: 100% covered
165
+ - Type definitions: 25+ schemas
166
+ - Validation rules: Complete
167
+ - IDE support: Full JSON Schema draft-07
168
+ ```
169
+
170
+ ### ๐Ÿ”— Related Issues
171
+
172
+ This release addresses documentation gaps identified in the Phase 3 documentation improvement project, providing comprehensive guides for all major v4.7.0+, v4.10.0+, and v5.0.0+ features.
173
+
174
+ ---
175
+
8
176
  ## [5.0.1] - 2025-10-09
9
177
 
10
178
  ### ๐Ÿ› Bug Fixes
@@ -2583,7 +2751,7 @@ Thank you to all contributors who made v4.0 possible!
2583
2751
 
2584
2752
  ### ๐Ÿ”— Resources
2585
2753
 
2586
- - **Documentation**: <https://docs.automatosx.dev>
2754
+ - **Documentation**: <https://github.com/defai-digital/automatosx/tree/main/docs>
2587
2755
  - **Repository**: <https://github.com/defai-digital/automatosx>
2588
2756
  - **Issues**: <https://github.com/defai-digital/automatosx/issues>
2589
2757
  - **npm**: <https://www.npmjs.com/package/automatosx>
package/CONTRIBUTING.md CHANGED
@@ -91,7 +91,7 @@ npm run test:coverage
91
91
  ### Writing Tests
92
92
 
93
93
  - Write tests for all new features
94
- - Maintain or improve test coverage (current: 67%)
94
+ - Maintain or improve test coverage (current: ~85%)
95
95
  - Place unit tests in `tests/unit/`
96
96
  - Place integration tests in `tests/integration/`
97
97
  - Use descriptive test names
@@ -338,13 +338,15 @@ if (!isValidPath(path)) {
338
338
  ## Getting Help
339
339
 
340
340
  - Check existing [documentation](docs/)
341
- - Search [existing issues](https://github.com/automatosx/automatosx/issues)
342
- - Ask in [discussions](https://github.com/automatosx/automatosx/discussions)
343
- - Join our [Discord](https://discord.gg/automatosx) (coming soon)
341
+ - Search [existing issues](https://github.com/defai-digital/automatosx/issues)
342
+ - Open a new issue for questions, bugs, or feature requests
343
+ - Use "bug" label for bugs
344
+ - Use "enhancement" label for feature requests/wishlist
345
+ - Use "question" label for questions
344
346
 
345
347
  ## License
346
348
 
347
- By contributing, you agree that your contributions will be licensed under the MIT License.
349
+ By contributing, you agree that your contributions will be licensed under the Apache License 2.0.
348
350
 
349
351
  ## Recognition
350
352