rcb-hsccmxhy 1.0.1 → 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.
Files changed (2) hide show
  1. package/dist/types.d.ts +32 -0
  2. package/package.json +1 -1
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,6 +1,6 @@
1
1
  {
2
2
  "name": "rcb-hsccmxhy",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/rcb-hsccmxhy.umd.js",