rcb-hsccmxhy 1.0.0 → 1.0.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/dist/types.d.ts
CHANGED
|
@@ -342,3 +342,35 @@ export interface FileSystemProvider {
|
|
|
342
342
|
relative(from: string, to: string): string;
|
|
343
343
|
isAbsolute(path: string): boolean;
|
|
344
344
|
}
|
|
345
|
+
/** Mention click handler function type */
|
|
346
|
+
export type MentionInterceptor = (mention: string) => void;
|
|
347
|
+
/** File click handler function type */
|
|
348
|
+
export type FileInterceptor = (filePath: string) => void;
|
|
349
|
+
/**
|
|
350
|
+
* Count tokens in text using tiktoken (cl100k_base encoding)
|
|
351
|
+
*/
|
|
352
|
+
export declare function countTokens(text: string): number;
|
|
353
|
+
/**
|
|
354
|
+
* Create browser-based file system (OPFS)
|
|
355
|
+
*/
|
|
356
|
+
export declare function createBrowserFileSystem(): Promise<FileSystemProvider>;
|
|
357
|
+
/**
|
|
358
|
+
* Add a custom tool dynamically after mount
|
|
359
|
+
*/
|
|
360
|
+
export declare function addCustomTool(tool: BrowserTool): void;
|
|
361
|
+
/**
|
|
362
|
+
* Remove a tool by name
|
|
363
|
+
*/
|
|
364
|
+
export declare function removeTool(name: string): boolean;
|
|
365
|
+
/**
|
|
366
|
+
* Get all registered tools
|
|
367
|
+
*/
|
|
368
|
+
export declare function getRegisteredTools(): BrowserTool[];
|
|
369
|
+
/**
|
|
370
|
+
* Set interceptor for @mention clicks in AI output
|
|
371
|
+
*/
|
|
372
|
+
export declare function setOpenMentionInterceptor(handler: MentionInterceptor): void;
|
|
373
|
+
/**
|
|
374
|
+
* Set interceptor for file link clicks in AI output
|
|
375
|
+
*/
|
|
376
|
+
export declare function setOpenFileInterceptor(handler: FileInterceptor): void;
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rcb-hsccmxhy",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "./dist/rcb-hsccmxhy.umd.
|
|
6
|
+
"main": "./dist/rcb-hsccmxhy.umd.js",
|
|
7
7
|
"module": "./dist/rcb-hsccmxhy.js",
|
|
8
8
|
"types": "./dist/types.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"import": "./dist/rcb-hsccmxhy.js",
|
|
12
|
-
"require": "./dist/rcb-hsccmxhy.umd.
|
|
12
|
+
"require": "./dist/rcb-hsccmxhy.umd.js",
|
|
13
13
|
"types": "./dist/types.d.ts"
|
|
14
14
|
},
|
|
15
15
|
"./style.css": "./dist/rcb-hsccmxhy.css"
|
|
File without changes
|