@runmedev/react-components 3.14.3 → 3.15.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.
@@ -1 +1 @@
1
- {"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../src/components/Actions/Actions.tsx"],"names":[],"mappings":"AAIA,OAAO,2CAA2C,CAAA;AA2SlD,iBAAS,OAAO,4CAuCf;AAED,eAAe,OAAO,CAAA"}
1
+ {"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../src/components/Actions/Actions.tsx"],"names":[],"mappings":"AAIA,OAAO,2CAA2C,CAAA;AA+SlD,iBAAS,OAAO,4CAuCf;AAED,eAAe,OAAO,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/Chat.tsx"],"names":[],"mappings":"AA+QA,iBAAS,IAAI,4CAiDZ;AAED,eAAe,IAAI,CAAA"}
1
+ {"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../src/components/Chat/Chat.tsx"],"names":[],"mappings":"AA6QA,iBAAS,IAAI,4CAiDZ;AAED,eAAe,IAAI,CAAA"}
@@ -1,8 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { type FC } from 'react';
3
- import * as blocks_pb from '@buf/stateful_runme.bufbuild_es/agent/v1/blocks_pb';
3
+ import * as service_pb from '@buf/stateful_runme.bufbuild_es/agent/v1/service_pb';
4
4
  import { createClient } from '@connectrpc/connect';
5
- export type AgentClient = ReturnType<typeof createClient<typeof blocks_pb.BlocksService>>;
5
+ export type AgentClient = ReturnType<typeof createClient<typeof service_pb.MessagesService>>;
6
6
  type ClientContextType = {
7
7
  client?: AgentClient;
8
8
  setClient: (client: AgentClient) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"AgentContext.d.ts","sourceRoot":"","sources":["../../src/contexts/AgentContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAKV,MAAM,O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 import { Cell, CellKind, CellRole } from '@buf/stateful_runme.bufbuild_es/runme/parser/v1/parser_pb';
3
+ type CellContextType = {
4
+ useColumns: () => {
5
+ chat: Cell[];
6
+ actions: Cell[];
7
+ files: Cell[];
8
+ };
9
+ sequence: number;
10
+ incrementSequence: () => void;
11
+ sendOutputCell: (outputCell: Cell) => Promise<void>;
12
+ createOutputCell: (inputCell: Cell) => Cell;
13
+ sendUserCell: (text: string) => Promise<void>;
14
+ addCodeCell: () => void;
15
+ isInputDisabled: boolean;
16
+ isTyping: boolean;
17
+ runCodeCell: (cell: Cell) => void;
18
+ resetSession: () => void;
19
+ };
20
+ export declare const useCell: () => CellContextType;
21
+ export declare const CellProvider: ({ children }: {
22
+ children: ReactNode;
23
+ }) => import("react/jsx-runtime").JSX.Element;
24
+ declare const TypingCell: Cell;
25
+ declare enum MimeType {
26
+ StatefulRunmeOutputItems = "stateful.runme/output-items",
27
+ StatefulRunmeTerminal = "stateful.runme/terminal",
28
+ VSCodeNotebookStdOut = "application/vnd.code.notebook.stdout",
29
+ VSCodeNotebookStdErr = "application/vnd.code.notebook.stderr"
30
+ }
31
+ export { type Cell, CellRole, CellKind, TypingCell, MimeType };
32
+ //# sourceMappingURL=CellContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CellContext.d.ts","sourceRoot":"","sources":["../../src/contexts/CellContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAMV,MAAM,OAAO,CAAA;AAMd,OAAO,EACL,IAAI,EACJ,QAAQ,EAGR,QAAQ,EAET,MAAM,2DAA2D,CAAA;AAQlE,KAAK,eAAe,GAAG;IAErB,UAAU,EAAE,MAAM;QAChB,IAAI,EAAE,IAAI,EAAE,CAAA;QACZ,OAAO,EAAE,IAAI,EAAE,CAAA;QACf,KAAK,EAAE,IAAI,EAAE,CAAA;KACd,CAAA;IAGD,QAAQ,EAAE,MAAM,CAAA;IAEhB,iBAAiB,EAAE,MAAM,IAAI,CAAA;IAI7B,cAAc,EAAE,CAAC,UAAU,EAAE,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACnD,gBAAgB,EAAE,CAAC,SAAS,EAAE,IAAI,KAAK,IAAI,CAAA;IAC3C,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC7C,WAAW,EAAE,MAAM,IAAI,CAAA;IAEvB,eAAe,EAAE,OAAO,CAAA;IACxB,QAAQ,EAAE,OAAO,CAAA;IAEjB,WAAW,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAA;IAEjC,YAAY,EAAE,MAAM,IAAI,CAAA;CACzB,CAAA;AAKD,eAAO,MAAM,OAAO,uBAMnB,CAAA;AAOD,eAAO,MAAM,YAAY,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,4CAwNjE,CAAA;AAED,QAAA,MAAM,UAAU,MAId,CAAA;AAEF,aAAK,QAAQ;IACX,wBAAwB,gCAAgC;IACxD,qBAAqB,4BAA4B;IACjD,oBAAoB,yCAAyC;IAC7D,oBAAoB,yCAAyC;CAC9D;AAED,OAAO,EAAE,KAAK,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,CAAA"}
@@ -1,4 +1,4 @@
1
1
  export { AgentClientProvider, useClient } from './AgentContext';
2
- export { BlockProvider, useBlock } from './BlockContext';
2
+ export { CellProvider, useCell } from './CellContext';
3
3
  export { SettingsProvider, useSettings } from './SettingsContext';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contexts/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACxD,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/contexts/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC/D,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA"}