@shahmilsaari/memory-core 0.2.11 → 0.2.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shahmilsaari/memory-core",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "description": "Universal AI memory core — generate AI context files from architecture profiles with RAG support",
5
5
  "type": "module",
6
6
  "bin": {
@@ -9,7 +9,7 @@ rules:
9
9
  - Services own all business logic — they accept and return domain types, not HTTP types
10
10
  - Always pass context.Context as the first parameter for cancellation and deadline propagation
11
11
  - Return errors explicitly — never panic in library or service code. Reserve panic only for unrecoverable startup failures.
12
- - Wrap errors with context using fmt.Errorf("operation: %w", err) to preserve the original error
12
+ - Wrap errors at each layer boundary using fmt.Errorf with the %w verb this chains errors so errors.Is and errors.As work across layers
13
13
  - Define small, single-method interfaces at the point of use, not at the point of implementation
14
14
  - Use struct-based request/response types for all handler inputs and outputs
15
15
  - Validate all incoming request data before passing to the service layer