@nebutra/atelier-canvas 1.0.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 +33 -0
- package/.turbo/turbo-test.log +15 -0
- package/.turbo/turbo-typecheck.log +4 -0
- package/CHANGELOG.md +50 -0
- package/LICENSE +676 -0
- package/dist/agent/index.d.ts +69 -0
- package/dist/agent/index.js +166 -0
- package/dist/agent/index.js.map +1 -0
- package/dist/chunk-AVQEQBLX.js +43 -0
- package/dist/chunk-AVQEQBLX.js.map +1 -0
- package/dist/chunk-JYV7NRGL.js +96 -0
- package/dist/chunk-JYV7NRGL.js.map +1 -0
- package/dist/chunk-X5VVODXM.js +71 -0
- package/dist/chunk-X5VVODXM.js.map +1 -0
- package/dist/index.d.ts +88 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/store/memory.d.ts +22 -0
- package/dist/store/memory.js +7 -0
- package/dist/store/memory.js.map +1 -0
- package/dist/store/prisma.d.ts +69 -0
- package/dist/store/prisma.js +7 -0
- package/dist/store/prisma.js.map +1 -0
- package/dist/types-Dw9o09h2.d.ts +80 -0
- package/package.json +57 -0
- package/src/__tests__/atelier-canvas.test.ts +96 -0
- package/src/agent/__tests__/agent.test.ts +74 -0
- package/src/agent/agent.ts +34 -0
- package/src/agent/index.ts +16 -0
- package/src/agent/prompts.ts +64 -0
- package/src/agent/tools.ts +148 -0
- package/src/index.ts +33 -0
- package/src/lock.ts +39 -0
- package/src/placement.ts +67 -0
- package/src/service.ts +115 -0
- package/src/store/memory.ts +59 -0
- package/src/store/prisma.ts +119 -0
- package/src/types.ts +92 -0
- package/tsconfig.json +12 -0
- package/tsup.config.ts +11 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
> @nebutra/atelier-canvas@1.0.0 build /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/ai/atelier-canvas
|
|
3
|
+
> tsup
|
|
4
|
+
|
|
5
|
+
[34mCLI[39m Building entry: src/index.ts, src/agent/index.ts, src/store/memory.ts, src/store/prisma.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/ai/atelier-canvas/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[32m410.00 B[39m
|
|
13
|
+
[32mESM[39m [1mdist/agent/index.js [22m[32m5.83 KB[39m
|
|
14
|
+
[32mESM[39m [1mdist/store/memory.js [22m[32m130.00 B[39m
|
|
15
|
+
[32mESM[39m [1mdist/chunk-JYV7NRGL.js [22m[32m3.00 KB[39m
|
|
16
|
+
[32mESM[39m [1mdist/chunk-AVQEQBLX.js [22m[32m1.10 KB[39m
|
|
17
|
+
[32mESM[39m [1mdist/store/prisma.js [22m[32m126.00 B[39m
|
|
18
|
+
[32mESM[39m [1mdist/chunk-X5VVODXM.js [22m[32m1.99 KB[39m
|
|
19
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m71.00 B[39m
|
|
20
|
+
[32mESM[39m [1mdist/agent/index.js.map [22m[32m12.44 KB[39m
|
|
21
|
+
[32mESM[39m [1mdist/store/memory.js.map [22m[32m71.00 B[39m
|
|
22
|
+
[32mESM[39m [1mdist/chunk-JYV7NRGL.js.map [22m[32m9.68 KB[39m
|
|
23
|
+
[32mESM[39m [1mdist/chunk-AVQEQBLX.js.map [22m[32m2.70 KB[39m
|
|
24
|
+
[32mESM[39m [1mdist/store/prisma.js.map [22m[32m71.00 B[39m
|
|
25
|
+
[32mESM[39m [1mdist/chunk-X5VVODXM.js.map [22m[32m5.56 KB[39m
|
|
26
|
+
[32mESM[39m ⚡️ Build success in 67ms
|
|
27
|
+
[34mDTS[39m Build start
|
|
28
|
+
[32mDTS[39m ⚡️ Build success in 5055ms
|
|
29
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m3.84 KB[39m
|
|
30
|
+
[32mDTS[39m [1mdist/agent/index.d.ts [22m[32m6.63 KB[39m
|
|
31
|
+
[32mDTS[39m [1mdist/store/memory.d.ts [22m[32m976.00 B[39m
|
|
32
|
+
[32mDTS[39m [1mdist/store/prisma.d.ts [22m[32m2.55 KB[39m
|
|
33
|
+
[32mDTS[39m [1mdist/types-Dw9o09h2.d.ts [22m[32m2.95 KB[39m
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
> @nebutra/atelier-canvas@1.0.0 test /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/ai/atelier-canvas
|
|
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/ai/atelier-canvas[39m
|
|
7
|
+
|
|
8
|
+
[32m✓[39m src/__tests__/atelier-canvas.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 40[2mms[22m[39m
|
|
9
|
+
[32m✓[39m src/agent/__tests__/agent.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 15[2mms[22m[39m
|
|
10
|
+
|
|
11
|
+
[2m Test Files [22m [1m[32m2 passed[39m[22m[90m (2)[39m
|
|
12
|
+
[2m Tests [22m [1m[32m12 passed[39m[22m[90m (12)[39m
|
|
13
|
+
[2m Start at [22m 16:51:21
|
|
14
|
+
[2m Duration [22m 2.45s[2m (transform 1.21s, setup 0ms, import 2.36s, tests 55ms, environment 4ms)[22m
|
|
15
|
+
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# @nebutra/atelier-canvas
|
|
2
|
+
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`092a1ce`](https://github.com/Nebutra/Nebutra-Sailor/commit/092a1ce810965e2d81767642e4bad05b80df81f4) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Add the Atelier agentic creative-canvas capability.
|
|
8
|
+
|
|
9
|
+
- `@nebutra/agents`: new image/video **generation modality**
|
|
10
|
+
(`@nebutra/agents/generation`) on the same env-key-gated provider layer as
|
|
11
|
+
the LLM fallback chain, with a deterministic always-available mock provider.
|
|
12
|
+
- `@nebutra/atelier-canvas`: new package — server-authoritative non-overlap
|
|
13
|
+
placement, persist-then-broadcast consistency, per-`(tenant,canvas)`
|
|
14
|
+
serialization, tenant-scoped store (in-memory + Prisma adapter). The
|
|
15
|
+
`./agent` subpath adds the creative-direction prompt strategy + generation
|
|
16
|
+
tool + `AgentConfig` factory (optional `@nebutra/agents` peer).
|
|
17
|
+
- `@nebutra/feature-flags`: new `FLAGS.ATELIER_CANVAS` (off by default).
|
|
18
|
+
|
|
19
|
+
Additive `AtelierCanvas` Prisma model. A flag-gated `/atelier` demo route in
|
|
20
|
+
`apps/web` exercises the loop end-to-end with the mock provider (no AI key
|
|
21
|
+
required).
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- [`34bd161`](https://github.com/Nebutra/Nebutra-Sailor/commit/34bd16140436c966896bf7a2276e8c20777c256f) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Capability absorption — codename `canvas` (clean-room, architecture-translation only).
|
|
26
|
+
|
|
27
|
+
- **New `@nebutra/tenant-store`** (Step-0 governance): neutral lower layer —
|
|
28
|
+
`withTenantLock` + `InMemoryTenantStore` + `TenantScopedStore`. `reel` and
|
|
29
|
+
`atelier-canvas` now both depend on it and no longer on each other;
|
|
30
|
+
duplicated store mechanics removed. `withCanvasLock`/`_resetCanvasLocks`
|
|
31
|
+
kept as deprecated back-compat aliases.
|
|
32
|
+
- **New `@nebutra/knowledge-rag`**: multi-tenant hybrid RAG pipeline
|
|
33
|
+
(recursive chunker, zero-config local + provider embedder, in-memory +
|
|
34
|
+
pgvector stores, vector+keyword hybrid, reranker, `doctor()`, agent tool).
|
|
35
|
+
WRAPs `@nebutra/search` and `@nebutra/agents`.
|
|
36
|
+
- **New `@nebutra/collab`**: multi-tenant Yjs CRDT sync layer
|
|
37
|
+
(tenant-partitioned rooms, snapshot via `withTenantLock`, pluggable
|
|
38
|
+
store/transport seams, `doctor()`).
|
|
39
|
+
- **`@nebutra/ui`**: new `NodeGraphCanvas` — interactive `@xyflow/react`
|
|
40
|
+
editor bound verbatim to the `@nebutra/reel` model; DS `Button` +
|
|
41
|
+
`@nebutra/icons` + token-themed xyflow.
|
|
42
|
+
- **`@nebutra/feature-flags`**: `CANVAS_DEMO` flag (off by default) for the
|
|
43
|
+
`apps/web` `/demo/canvas` route.
|
|
44
|
+
|
|
45
|
+
Multi-tenant isolation enforced throughout; zero external product source
|
|
46
|
+
copied; TDD with all suites green. See `docs/capabilities/canvas/`.
|
|
47
|
+
|
|
48
|
+
- Updated dependencies [[`092a1ce`](https://github.com/Nebutra/Nebutra-Sailor/commit/092a1ce810965e2d81767642e4bad05b80df81f4), [`34bd161`](https://github.com/Nebutra/Nebutra-Sailor/commit/34bd16140436c966896bf7a2276e8c20777c256f), [`d58d691`](https://github.com/Nebutra/Nebutra-Sailor/commit/d58d691f64cda31011f488f75a5a4ae425311704)]:
|
|
49
|
+
- @nebutra/agents@1.1.0
|
|
50
|
+
- @nebutra/tenant-store@0.2.0
|