@soulcraft/brainy 5.6.2 β 5.6.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 +6 -0
- package/README.md +29 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [5.6.3](https://github.com/soulcraftlabs/brainy/compare/v5.6.2...v5.6.3) (2025-11-11)
|
|
6
|
+
|
|
7
|
+
- docs: add entity versioning to fork section (3e81fd8)
|
|
8
|
+
- docs: add asOf() time-travel to fork section (5706b71)
|
|
9
|
+
|
|
10
|
+
|
|
5
11
|
### [5.6.2](https://github.com/soulcraftlabs/brainy/compare/v5.6.1...v5.6.2) (2025-11-11)
|
|
6
12
|
|
|
7
13
|
- fix: update tests for Stage 3 CANONICAL taxonomy (42 nouns, 127 verbs) (c5dcdf6)
|
package/README.md
CHANGED
|
@@ -236,9 +236,9 @@ Brainy automatically:
|
|
|
236
236
|
|
|
237
237
|
**You write business logic. Brainy handles infrastructure.**
|
|
238
238
|
|
|
239
|
-
### π **
|
|
239
|
+
### π **Git-Style Version Control** β Database & Entity Level (v5.0.0+)
|
|
240
240
|
|
|
241
|
-
**Clone your entire database in <100ms.
|
|
241
|
+
**Clone your entire database in <100ms. Track every entity change. Full Git-style workflow.**
|
|
242
242
|
|
|
243
243
|
```javascript
|
|
244
244
|
// Fork instantly - Snowflake-style copy-on-write
|
|
@@ -257,19 +257,44 @@ const result = await brain.merge('test-migration', 'main', {
|
|
|
257
257
|
})
|
|
258
258
|
|
|
259
259
|
console.log(result) // { added: 1, modified: 0, conflicts: 0 }
|
|
260
|
+
|
|
261
|
+
// Time-travel: Query database at any past commit (read-only)
|
|
262
|
+
const commits = await brain.getHistory({ limit: 10 })
|
|
263
|
+
const snapshot = await brain.asOf(commits[5].id)
|
|
264
|
+
const pastResults = await snapshot.find({ query: 'historical data' })
|
|
265
|
+
await snapshot.close()
|
|
266
|
+
|
|
267
|
+
// Entity versioning: Track changes to individual entities (v5.3.0+)
|
|
268
|
+
const userId = await brain.add({ type: 'user', data: { name: 'Alice' } })
|
|
269
|
+
await brain.versions.save(userId, { tag: 'v1.0', description: 'Initial profile' })
|
|
270
|
+
|
|
271
|
+
await brain.update(userId, { data: { name: 'Alice Smith', role: 'admin' } })
|
|
272
|
+
await brain.versions.save(userId, { tag: 'v2.0', description: 'Added role' })
|
|
273
|
+
|
|
274
|
+
// Compare versions or restore previous state
|
|
275
|
+
const diff = await brain.versions.compare(userId, 1, 2) // See what changed
|
|
276
|
+
await brain.versions.restore(userId, 1) // Restore v1.0
|
|
260
277
|
```
|
|
261
278
|
|
|
262
|
-
**
|
|
279
|
+
**Database-level version control (v5.0.0):**
|
|
263
280
|
- β
`fork()` - Instant clone in <100ms
|
|
264
281
|
- β
`merge()` - Merge with conflict resolution
|
|
265
282
|
- β
`commit()` - Snapshot state
|
|
283
|
+
- β
`asOf()` - Time-travel queries (query at any commit)
|
|
266
284
|
- β
`getHistory()` - View commit history
|
|
267
285
|
- β
`checkout()`, `listBranches()` - Full branch management
|
|
268
286
|
- β
CLI support for all features
|
|
269
287
|
|
|
288
|
+
**Entity-level version control (v5.3.0):**
|
|
289
|
+
- β
`versions.save()` - Save entity snapshots with tags
|
|
290
|
+
- β
`versions.restore()` - Restore previous versions
|
|
291
|
+
- β
`versions.compare()` - Diff between versions
|
|
292
|
+
- β
`versions.list()` - View version history
|
|
293
|
+
- β
Automatic deduplication (content-addressable storage)
|
|
294
|
+
|
|
270
295
|
**How it works:** Snowflake-style COW shares HNSW index structures, copying only modified nodes (10-20% memory overhead).
|
|
271
296
|
|
|
272
|
-
**Perfect for:** Safe migrations, A/B testing, feature branches, distributed development
|
|
297
|
+
**Perfect for:** Safe migrations, A/B testing, feature branches, distributed development, time-travel debugging, audit trails, document versioning, compliance tracking
|
|
273
298
|
|
|
274
299
|
[β See Full Documentation](docs/features/instant-fork.md)
|
|
275
300
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soulcraft/brainy",
|
|
3
|
-
"version": "5.6.
|
|
3
|
+
"version": "5.6.3",
|
|
4
4
|
"description": "Universal Knowledge Protocolβ’ - World's first Triple Intelligence database unifying vector, graph, and document search in one API. Stage 3 CANONICAL: 42 nouns Γ 127 verbs covering 96-97% of all human knowledge.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|