@anvia/studio 0.5.8 → 0.5.10

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/README.md CHANGED
@@ -60,12 +60,18 @@ Studio exposes:
60
60
 
61
61
  ## Session Storage
62
62
 
63
- Studio uses an in-memory store by default. Sessions, traces, and pipeline run history are available while the process is running, but they do not create local files unless you opt in to SQLite. If you omit the port, Studio uses `RUNNER_PORT` and then falls back to `4021`.
63
+ Studio uses an in-memory store by default. Sessions, traces, and pipeline run history are available while the process is running, but they do not create local files unless you pass an explicit SQLite store. If you omit the port, Studio uses `RUNNER_PORT` and then falls back to `4021`.
64
64
 
65
- Set `ANVIA_STUDIO_DB` to persist Studio data in SQLite:
65
+ Pass `createSqliteSessionStore` to persist Studio data in SQLite:
66
66
 
67
- ```sh
68
- ANVIA_STUDIO_DB=.anvia/studio.sqlite node ./dist/server.js
67
+ ```ts
68
+ import { Studio, createSqliteSessionStore } from "@anvia/studio";
69
+
70
+ new Studio([agent], {
71
+ stores: {
72
+ sessions: createSqliteSessionStore({ path: ".anvia/studio.sqlite" }),
73
+ },
74
+ }).start();
69
75
  ```
70
76
 
71
77
  SQLite storage uses dedicated `anvia_studio_*` tables so it can share an application database without writing into product tables.