@runmedev/react-components 3.16.2 → 3.16.3

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.
@@ -6,6 +6,7 @@ export declare function createConnectClient<T extends DescService>(service: T, b
6
6
  export type RunnerClient = ReturnType<typeof createClient<typeof runner_pb.RunnerService>>;
7
7
  export type ParserClient = ReturnType<typeof createClient<typeof parser_pb.ParserService>>;
8
8
  export declare enum MimeType {
9
+ TextPlain = "text/plain",
9
10
  StatefulRunmeOutputItems = "stateful.runme/output-items",
10
11
  StatefulRunmeTerminal = "stateful.runme/terminal",
11
12
  VSCodeNotebookStdOut = "application/vnd.code.notebook.stdout",
@@ -1 +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,WAAW,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAG/D,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,WAAW,EACvD,OAAO,EAAE,CAAC,EACV,OAAO,EAAE,MAAM,EACf,YAAY,GAAE,WAAW,EAAO,2CAOjC;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,QAAQ,uBAA6B;IACrC,SAAS,wBAA8B;IACvC,GAAG,kBAAwB;IAC3B,QAAQ,uBAA6B;CACtC;AAED,oBAAY,gBAAgB;IAC1B,kBAAkB,iCAAuC;CAC1D;AAED,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAA"}
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,WAAW,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAG/D,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,WAAW,EACvD,OAAO,EAAE,CAAC,EACV,OAAO,EAAE,MAAM,EACf,YAAY,GAAE,WAAW,EAAO,2CAOjC;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,SAAS,eAAe;IACxB,wBAAwB,gCAAgC;IACxD,qBAAqB,4BAA4B;IACjD,oBAAoB,yCAAyC;IAC7D,oBAAoB,yCAAyC;CAC9D;AAID,oBAAY,gBAAgB;IAC1B,EAAE,OAAO;IACT,OAAO,iBAAuB;IAC9B,QAAQ,uBAA6B;IACrC,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,23 @@
1
+ import { parser_pb } from './runme/client';
2
+ /**
3
+ * Computes a 64-bit SimHash fingerprint from text
4
+ * @param text - The text to compute the hash for
5
+ * @returns A 64-bit BigInt representing the SimHash fingerprint
6
+ */
7
+ export declare function computeSimHash(text: string): bigint;
8
+ /**
9
+ * Calculates the Hamming distance between two SimHash values
10
+ * @param hash1 - First SimHash value
11
+ * @param hash2 - Second SimHash value
12
+ * @returns The number of bits that differ between the two hashes
13
+ */
14
+ export declare function hammingDistance(hash1: bigint, hash2: bigint): number;
15
+ /**
16
+ * Determines if two cells are similar based on their SimHash values
17
+ * @param cell1 - First cell to compare
18
+ * @param cell2 - Second cell to compare
19
+ * @param threshold - Hamming distance threshold (default: 3). Cells are considered similar if distance <= threshold
20
+ * @returns true if the cells are similar, false otherwise
21
+ */
22
+ export declare function areCellsSimilar(cell1: parser_pb.Cell, cell2: parser_pb.Cell, threshold: number): boolean;
23
+ //# sourceMappingURL=simhash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simhash.d.ts","sourceRoot":"","sources":["../src/simhash.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAiB1C;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAgDnD;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAepE;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,SAAS,CAAC,IAAI,EACrB,KAAK,EAAE,SAAS,CAAC,IAAI,EACrB,SAAS,EAAE,MAAM,GAChB,OAAO,CAWT"}
@@ -1 +1 @@
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/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 copy.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.2",
3
+ "version": "3.16.3",
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.2"
22
+ "@runmedev/react-console": "3.16.3"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "js-cookie": "^3.0.5",