@runmedev/react-components 3.15.0 → 3.15.2
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/LICENSE +201 -0
- package/dist/app/index.css +1 -1
- package/dist/app/index.js +167 -155
- package/dist/components/Actions/Actions.d.ts.map +1 -1
- package/dist/components/Actions/CellConsole.d.ts +22 -0
- package/dist/components/Actions/CellConsole.d.ts.map +1 -0
- package/dist/components/Actions/Editor.d.ts +2 -1
- package/dist/components/Actions/Editor.d.ts.map +1 -1
- package/dist/components/Files/Viewer.d.ts.map +1 -1
- package/dist/components/TopNavigation.d.ts.map +1 -1
- package/dist/contexts/AgentContext.d.ts.map +1 -1
- package/dist/contexts/CellContext.d.ts +20 -16
- package/dist/contexts/CellContext.d.ts.map +1 -1
- package/dist/contexts/SettingsContext.d.ts +3 -0
- package/dist/contexts/SettingsContext.d.ts.map +1 -1
- package/dist/react-components.cjs +1196 -1176
- package/dist/react-components.css +1 -1
- package/dist/react-components.mjs +29574 -24955
- package/dist/runme/client.d.ts +25 -0
- package/dist/runme/client.d.ts.map +1 -0
- package/dist/storage.d.ts +29 -0
- package/dist/storage.d.ts.map +1 -0
- package/dist/token.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -10
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as parser_pb from '@buf/stateful_runme.bufbuild_es/runme/parser/v1/parser_pb';
|
|
2
|
+
import * as runner_pb from '@buf/stateful_runme.bufbuild_es/runme/runner/v2/runner_pb';
|
|
3
|
+
import { DescService } from '@bufbuild/protobuf';
|
|
4
|
+
import { createClient } from '@connectrpc/connect';
|
|
5
|
+
export declare function createConnectClient<T extends DescService>(service: T, baseURL: string): import("@connectrpc/connect").Client<T>;
|
|
6
|
+
export type RunnerClient = ReturnType<typeof createClient<typeof runner_pb.RunnerService>>;
|
|
7
|
+
export type ParserClient = ReturnType<typeof createClient<typeof parser_pb.ParserService>>;
|
|
8
|
+
export declare enum MimeType {
|
|
9
|
+
StatefulRunmeOutputItems = "stateful.runme/output-items",
|
|
10
|
+
StatefulRunmeTerminal = "stateful.runme/terminal",
|
|
11
|
+
VSCodeNotebookStdOut = "application/vnd.code.notebook.stdout",
|
|
12
|
+
VSCodeNotebookStdErr = "application/vnd.code.notebook.stderr"
|
|
13
|
+
}
|
|
14
|
+
export declare enum RunmeMetadataKey {
|
|
15
|
+
ID = "id",
|
|
16
|
+
RunmeID = "runme.dev/id",
|
|
17
|
+
LastRunID = "runme.dev/lastRunID",
|
|
18
|
+
Pid = "runme.dev/pid",
|
|
19
|
+
ExitCode = "runme.dev/exitCode"
|
|
20
|
+
}
|
|
21
|
+
export declare enum AgentMetadataKey {
|
|
22
|
+
PreviousResponseId = "runme.dev/previousResponseId"
|
|
23
|
+
}
|
|
24
|
+
export { parser_pb, runner_pb };
|
|
25
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/runme/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,2DAA2D,CAAA;AACtF,OAAO,KAAK,SAAS,MAAM,2DAA2D,CAAA;AACtF,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAKlD,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,WAAW,EACvD,OAAO,EAAE,CAAC,EACV,OAAO,EAAE,MAAM,2CAiBhB;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,CACnC,OAAO,YAAY,CAAC,OAAO,SAAS,CAAC,aAAa,CAAC,CACpD,CAAA;AACD,MAAM,MAAM,YAAY,GAAG,UAAU,CACnC,OAAO,YAAY,CAAC,OAAO,SAAS,CAAC,aAAa,CAAC,CACpD,CAAA;AAED,oBAAY,QAAQ;IAClB,wBAAwB,gCAAgC;IACxD,qBAAqB,4BAA4B;IACjD,oBAAoB,yCAAyC;IAC7D,oBAAoB,yCAAyC;CAC9D;AAID,oBAAY,gBAAgB;IAC1B,EAAE,OAAO;IACT,OAAO,iBAAuB;IAC9B,SAAS,wBAA8B;IACvC,GAAG,kBAAwB;IAC3B,QAAQ,uBAA6B;CACtC;AAED,oBAAY,gBAAgB;IAC1B,kBAAkB,iCAAuC;CAC1D;AAED,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Notebook } from '@buf/stateful_runme.bufbuild_es/runme/parser/v1/parser_pb';
|
|
2
|
+
import Dexie, { Table } from 'dexie';
|
|
3
|
+
import { RunnerClient } from './runme/client';
|
|
4
|
+
export interface SessionRecord<T> {
|
|
5
|
+
id: string;
|
|
6
|
+
principal: string;
|
|
7
|
+
name: string;
|
|
8
|
+
created: number;
|
|
9
|
+
updated: number;
|
|
10
|
+
data: T;
|
|
11
|
+
}
|
|
12
|
+
export type SessionNotebook = SessionRecord<Notebook>;
|
|
13
|
+
export declare class SessionStorage extends Dexie {
|
|
14
|
+
sessions: Table<SessionNotebook, string>;
|
|
15
|
+
readonly principal: string;
|
|
16
|
+
readonly client: RunnerClient;
|
|
17
|
+
private saveSubject;
|
|
18
|
+
constructor(namespace: string, principal: string, client: RunnerClient);
|
|
19
|
+
saveNotebook(id: string, notebook: Notebook): Promise<void>;
|
|
20
|
+
loadSession(id: string): Promise<SessionNotebook | undefined>;
|
|
21
|
+
loadSessions(ids: string[]): Promise<SessionNotebook[]>;
|
|
22
|
+
listSessions(): Promise<SessionNotebook[]>;
|
|
23
|
+
private query;
|
|
24
|
+
listActiveSessions(): Promise<string[]>;
|
|
25
|
+
deleteSession(id: string): Promise<void>;
|
|
26
|
+
createSession(): Promise<string | undefined>;
|
|
27
|
+
}
|
|
28
|
+
export declare function generateSessionName(): string;
|
|
29
|
+
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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,SAAS,CAAC;CAkBnD;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C"}
|
package/dist/token.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../src/token.
|
|
1
|
+
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../src/token.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAEX,MAAM,yDAAyD,CAAA;AAIhE,eAAO,MAAM,oBAAoB,UAAsC,CAAA;AACvE,eAAO,MAAM,kBAAkB,UAA8C,CAAA;AAG7E,wBAAgB,eAAe,IAAI,MAAM,GAAG,SAAS,CAWpD;AAGD,wBAAgB,cAAc,IAAI,UAAU,CAsB3C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["../src/app.tsx","../src/index.tsx","../src/layout.tsx","../src/main.tsx","../src/token.
|
|
1
|
+
{"root":["../src/app.tsx","../src/index.tsx","../src/layout.tsx","../src/main.tsx","../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/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.15.
|
|
3
|
+
"version": "3.15.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -19,21 +19,25 @@
|
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@runmedev/react-console": "
|
|
23
|
-
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"clean": "rimraf dist"
|
|
22
|
+
"@runmedev/react-console": "3.15.2"
|
|
26
23
|
},
|
|
27
24
|
"peerDependencies": {
|
|
25
|
+
"@radix-ui/react-dropdown-menu": "^2.1.15",
|
|
26
|
+
"@radix-ui/react-icons": "^1.3.2",
|
|
27
|
+
"@radix-ui/themes": "^3.2.1",
|
|
28
28
|
"react": "^19.0.0",
|
|
29
29
|
"react-dom": "^19.0.0",
|
|
30
30
|
"react-router": "^7.4.0",
|
|
31
|
-
"react-router-dom": "^7.5.0"
|
|
32
|
-
"@radix-ui/react-dropdown-menu": "^2.1.15",
|
|
33
|
-
"@radix-ui/react-icons": "^1.3.2",
|
|
34
|
-
"@radix-ui/themes": "^3.2.1"
|
|
31
|
+
"react-router-dom": "^7.5.0"
|
|
35
32
|
},
|
|
36
33
|
"publishConfig": {
|
|
37
34
|
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"clean": "rimraf dist",
|
|
38
|
+
"test": "vitest",
|
|
39
|
+
"test:ui": "vitest --ui",
|
|
40
|
+
"test:run": "vitest run",
|
|
41
|
+
"test:coverage": "vitest run --coverage"
|
|
38
42
|
}
|
|
39
|
-
}
|
|
43
|
+
}
|