@runmedev/react-components 3.16.5-jlewi.2 → 3.16.5

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/dist/storage.d.ts CHANGED
@@ -10,7 +10,29 @@ export interface SessionRecord<T> {
10
10
  data: T;
11
11
  }
12
12
  export type SessionNotebook = SessionRecord<Notebook>;
13
- export declare class SessionStorage extends Dexie {
13
+ /**
14
+ * Storage interface for session persistence.
15
+ * Implementations can use IndexedDB (Dexie), Supabase Postgres, or other backends.
16
+ */
17
+ export interface ISessionStorage {
18
+ /** The owner/user identifier, used for scoping queries and RLS */
19
+ readonly principal: string;
20
+ /** Save or update a notebook for a session */
21
+ saveNotebook(id: string, notebook: Notebook): Promise<void> | void;
22
+ /** Load a single session by id */
23
+ loadSession(id: string): Promise<SessionNotebook | undefined>;
24
+ /** Load multiple sessions by their ids */
25
+ loadSessions(ids: string[]): Promise<SessionNotebook[]>;
26
+ /** List all sessions for the principal (sorted by updated desc) */
27
+ listSessions(): Promise<SessionNotebook[]>;
28
+ /** List session ids that are still active (created in last 24 hours and valid) */
29
+ listActiveSessions(): Promise<string[]>;
30
+ /** Delete a session by id */
31
+ deleteSession(id: string): Promise<void>;
32
+ /** Create a new session and return its id */
33
+ createSession(): Promise<string | undefined>;
34
+ }
35
+ export declare class DexieSessionStorage extends Dexie implements ISessionStorage {
14
36
  sessions: Table<SessionNotebook, string>;
15
37
  readonly principal: string;
16
38
  readonly client: RunnerClient;
@@ -26,4 +48,6 @@ export declare class SessionStorage extends Dexie {
26
48
  createSession(): Promise<string | undefined>;
27
49
  }
28
50
  export declare function generateSessionName(): string;
51
+ /** @deprecated Use DexieSessionStorage directly. Alias for backwards compatibility. */
52
+ export { DexieSessionStorage as SessionStorage };
29
53
  //# sourceMappingURL=storage.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QA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Aa,mBAAoB,SAAQ,KAAM,YAAW,eAAe;IACvE,QAAQ,EAAG,KAAK,CAAC,eAAe,EAAE,MAAM,CAAC,CAAA;IACzC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAA;IAE7B,OAAO,CAAC,WAAW,CAAoD;gBAE3D,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY;IA8BhE,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ;IAY3C,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC;IAK7D,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC;IAMvD,YAAY,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;IAIhD,OAAO,CAAC,KAAK;IAKP,kBAAkB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAuCvC,aAAa,CAAC,EAAE,EAAE,MAAM;IAIxB,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;CAkBnD;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED,uFAAuF;AACvF,OAAO,EAAE,mBAAmB,IAAI,cAAc,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"root":["../src/app.tsx","../src/index.tsx","../src/layout.tsx","../src/main.tsx","../src/simhash.ts","../src/storage.ts","../src/token.ts","../src/vite-env.d.ts","../src/components/notfound.tsx","../src/components/topnavigation.tsx","../src/components/index.tsx","../src/components/actions/actions.tsx","../src/components/actions/cellconsole.tsx","../src/components/actions/editor.tsx","../src/components/actions/icons.tsx","../src/components/appconsole/appconsole.tsx","../src/components/chat/chat.tsx","../src/components/files/viewer.tsx","../src/components/login/login.tsx","../src/components/settings/settings.tsx","../src/contexts/agentcontext.tsx","../src/contexts/cellcontext.tsx","../src/contexts/outputcontext.tsx","../src/contexts/settingscontext.tsx","../src/contexts/index.tsx","../src/runme/client.ts","../src/types/test.d.ts"],"version":"5.8.3"}
1
+ {"root":["../src/app.tsx","../src/index.tsx","../src/layout.tsx","../src/main.tsx","../src/simhash.ts","../src/storage.ts","../src/token.ts","../src/vite-env.d.ts","../src/components/notfound.tsx","../src/components/topnavigation.tsx","../src/components/index.tsx","../src/components/actions/actions.tsx","../src/components/actions/cellconsole.tsx","../src/components/actions/editor.tsx","../src/components/actions/icons.tsx","../src/components/chat/chat.tsx","../src/components/files/viewer.tsx","../src/components/login/login.tsx","../src/components/settings/settings.tsx","../src/contexts/agentcontext.tsx","../src/contexts/cellcontext.tsx","../src/contexts/outputcontext.tsx","../src/contexts/settingscontext.tsx","../src/contexts/index.tsx","../src/runme/client.ts","../src/types/test.d.ts"],"version":"5.8.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@runmedev/react-components",
3
- "version": "3.16.5-jlewi.2",
3
+ "version": "3.16.5",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "private": false,
@@ -19,7 +19,7 @@
19
19
  "dist"
20
20
  ],
21
21
  "devDependencies": {
22
- "@runmedev/react-console": "3.16.5-jlewi.2"
22
+ "@runmedev/react-console": "3.16.5"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "js-cookie": "^3.0.5",
@@ -1,8 +0,0 @@
1
- /**
2
- * AppConsole console panel rendered with Runme's ConsoleView web component.
3
- *
4
- * Intended to provide a console for interacting with the app iteself.
5
- * Right now its just a stub that echoes input.
6
- */
7
- export default function AppConsole(): import("react/jsx-runtime").JSX.Element;
8
- //# sourceMappingURL=AppConsole.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppConsole.d.ts","sourceRoot":"","sources":["../../../src/components/AppConsole/AppConsole.tsx"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,4CA8GjC"}