@nebutra/collab 0.2.0
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/.turbo/turbo-build.log +28 -0
- package/.turbo/turbo-test.log +14 -0
- package/.turbo/turbo-typecheck.log +4 -0
- package/CHANGELOG.md +56 -0
- package/LICENSE +676 -0
- package/README.md +0 -0
- package/dist/chunk-6XHNO2RP.js +24 -0
- package/dist/chunk-6XHNO2RP.js.map +1 -0
- package/dist/chunk-S2HTNEZN.js +32 -0
- package/dist/chunk-S2HTNEZN.js.map +1 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +220 -0
- package/dist/index.js.map +1 -0
- package/dist/store/memory.d.ts +26 -0
- package/dist/store/memory.js +7 -0
- package/dist/store/memory.js.map +1 -0
- package/dist/transport/loopback.d.ts +0 -0
- package/dist/transport/loopback.js +7 -0
- package/dist/transport/loopback.js.map +1 -0
- package/dist/types-68zA3h9k.d.ts +57 -0
- package/examples/snapshot-restore.ts +39 -0
- package/examples/tenant-isolation.ts +42 -0
- package/examples/zero-config-convergence.ts +43 -0
- package/package.json +50 -0
- package/src/__tests__/collab.test.ts +240 -0
- package/src/cli.ts +27 -0
- package/src/errors.ts +42 -0
- package/src/hub.ts +0 -0
- package/src/index.ts +42 -0
- package/src/room.ts +130 -0
- package/src/store/memory.ts +43 -0
- package/src/transport/loopback.ts +0 -0
- package/src/types.ts +64 -0
- package/tsconfig.json +12 -0
- package/tsup.config.ts +11 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
> @nebutra/collab@0.2.0 build /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/integrations/collab
|
|
3
|
+
> tsup
|
|
4
|
+
|
|
5
|
+
[34mCLI[39m Building entry: src/index.ts, src/store/memory.ts, src/transport/loopback.ts
|
|
6
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
+
[34mCLI[39m tsup v8.5.1
|
|
8
|
+
[34mCLI[39m Using tsup config: /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/integrations/collab/tsup.config.ts
|
|
9
|
+
[34mCLI[39m Target: es2022
|
|
10
|
+
[34mCLI[39m Cleaning output folder
|
|
11
|
+
[34mESM[39m Build start
|
|
12
|
+
[32mESM[39m [1mdist/index.js [22m[32m6.98 KB[39m
|
|
13
|
+
[32mESM[39m [1mdist/store/memory.js [22m[32m134.00 B[39m
|
|
14
|
+
[32mESM[39m [1mdist/transport/loopback.js [22m[32m128.00 B[39m
|
|
15
|
+
[32mESM[39m [1mdist/chunk-6XHNO2RP.js [22m[32m581.00 B[39m
|
|
16
|
+
[32mESM[39m [1mdist/chunk-S2HTNEZN.js [22m[32m817.00 B[39m
|
|
17
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m16.53 KB[39m
|
|
18
|
+
[32mESM[39m [1mdist/store/memory.js.map [22m[32m71.00 B[39m
|
|
19
|
+
[32mESM[39m [1mdist/transport/loopback.js.map [22m[32m71.00 B[39m
|
|
20
|
+
[32mESM[39m [1mdist/chunk-6XHNO2RP.js.map [22m[32m2.04 KB[39m
|
|
21
|
+
[32mESM[39m [1mdist/chunk-S2HTNEZN.js.map [22m[32m2.46 KB[39m
|
|
22
|
+
[32mESM[39m ⚡️ Build success in 112ms
|
|
23
|
+
[34mDTS[39m Build start
|
|
24
|
+
[32mDTS[39m ⚡️ Build success in 13595ms
|
|
25
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.68 KB[39m
|
|
26
|
+
[32mDTS[39m [1mdist/store/memory.d.ts [22m[32m1.04 KB[39m
|
|
27
|
+
[32mDTS[39m [1mdist/transport/loopback.d.ts [22m[32m1005.00 B[39m
|
|
28
|
+
[32mDTS[39m [1mdist/types-68zA3h9k.d.ts [22m[32m2.27 KB[39m
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
> @nebutra/collab@0.2.0 test /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/integrations/collab
|
|
3
|
+
> vitest run
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
[1m[30m[46m RUN [49m[39m[22m [36mv4.1.4 [39m[90m/home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/integrations/collab[39m
|
|
7
|
+
|
|
8
|
+
[32m✓[39m src/__tests__/collab.test.ts [2m([22m[2m14 tests[22m[2m)[22m[32m 112[2mms[22m[39m
|
|
9
|
+
|
|
10
|
+
[2m Test Files [22m [1m[32m1 passed[39m[22m[90m (1)[39m
|
|
11
|
+
[2m Tests [22m [1m[32m14 passed[39m[22m[90m (14)[39m
|
|
12
|
+
[2m Start at [22m 16:51:11
|
|
13
|
+
[2m Duration [22m 1.80s[2m (transform 559ms, setup 0ms, import 862ms, tests 112ms, environment 0ms)[22m
|
|
14
|
+
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# @nebutra/collab
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`34bd161`](https://github.com/Nebutra/Nebutra-Sailor/commit/34bd16140436c966896bf7a2276e8c20777c256f) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Capability absorption — codename `canvas` (clean-room, architecture-translation only).
|
|
8
|
+
|
|
9
|
+
- **New `@nebutra/tenant-store`** (Step-0 governance): neutral lower layer —
|
|
10
|
+
`withTenantLock` + `InMemoryTenantStore` + `TenantScopedStore`. `reel` and
|
|
11
|
+
`atelier-canvas` now both depend on it and no longer on each other;
|
|
12
|
+
duplicated store mechanics removed. `withCanvasLock`/`_resetCanvasLocks`
|
|
13
|
+
kept as deprecated back-compat aliases.
|
|
14
|
+
- **New `@nebutra/knowledge-rag`**: multi-tenant hybrid RAG pipeline
|
|
15
|
+
(recursive chunker, zero-config local + provider embedder, in-memory +
|
|
16
|
+
pgvector stores, vector+keyword hybrid, reranker, `doctor()`, agent tool).
|
|
17
|
+
WRAPs `@nebutra/search` and `@nebutra/agents`.
|
|
18
|
+
- **New `@nebutra/collab`**: multi-tenant Yjs CRDT sync layer
|
|
19
|
+
(tenant-partitioned rooms, snapshot via `withTenantLock`, pluggable
|
|
20
|
+
store/transport seams, `doctor()`).
|
|
21
|
+
- **`@nebutra/ui`**: new `NodeGraphCanvas` — interactive `@xyflow/react`
|
|
22
|
+
editor bound verbatim to the `@nebutra/reel` model; DS `Button` +
|
|
23
|
+
`@nebutra/icons` + token-themed xyflow.
|
|
24
|
+
- **`@nebutra/feature-flags`**: `CANVAS_DEMO` flag (off by default) for the
|
|
25
|
+
`apps/web` `/demo/canvas` route.
|
|
26
|
+
|
|
27
|
+
Multi-tenant isolation enforced throughout; zero external product source
|
|
28
|
+
copied; TDD with all suites green. See `docs/capabilities/canvas/`.
|
|
29
|
+
|
|
30
|
+
### Patch Changes
|
|
31
|
+
|
|
32
|
+
- [`d58d691`](https://github.com/Nebutra/Nebutra-Sailor/commit/d58d691f64cda31011f488f75a5a4ae425311704) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Cross-cutting governance extractions (audit-driven SSoT close-out).
|
|
33
|
+
|
|
34
|
+
- **New `@nebutra/provider-factory`**: the identical `explicit → env →
|
|
35
|
+
detect-chain → fallback` provider selection + production guard that ~10
|
|
36
|
+
packages hand-rolled. `@nebutra/queue` migrated as the proof consumer
|
|
37
|
+
(behaviour + exact error message preserved). Remaining factories migrate
|
|
38
|
+
incrementally on next touch.
|
|
39
|
+
- **New `@nebutra/capability-kit`**: shared `CapabilityError`
|
|
40
|
+
(code+suggestion+toJSON, subclass-safe), `DoctorReportBase`/`DoctorCheck`
|
|
41
|
+
contract, and the `doctor`/`debug` CLI runner that ~9 `src/cli.ts` files
|
|
42
|
+
copied. `@nebutra/collab` migrated as the proof consumer — `CollabError`
|
|
43
|
+
now extends `CapabilityError`, `DoctorReport` extends the shared base, the
|
|
44
|
+
CLI uses the shared runner; output + 14/14 tests unchanged.
|
|
45
|
+
- **`@nebutra/tenant-store`**: `InMemoryTenantStore` gained `delete`/`size`;
|
|
46
|
+
`@nebutra/knowledge-rag` `InMemoryVectorStore` now composes it instead of a
|
|
47
|
+
private tenant-partition Map (consistency-debt close-out for the canvas
|
|
48
|
+
governance). collab's live-`Room` registry deliberately NOT migrated
|
|
49
|
+
(object pool, not a record store — rationale in
|
|
50
|
+
docs/capabilities/canvas/ANTI_PATTERNS.md §8).
|
|
51
|
+
|
|
52
|
+
All public contracts preserved; every migrated package's suite stays green.
|
|
53
|
+
|
|
54
|
+
- Updated dependencies [[`34bd161`](https://github.com/Nebutra/Nebutra-Sailor/commit/34bd16140436c966896bf7a2276e8c20777c256f), [`d58d691`](https://github.com/Nebutra/Nebutra-Sailor/commit/d58d691f64cda31011f488f75a5a4ae425311704)]:
|
|
55
|
+
- @nebutra/tenant-store@0.2.0
|
|
56
|
+
- @nebutra/capability-kit@0.2.0
|