vite-plugin-ai-annotator 1.0.2 → 1.1.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.
- package/README.md +42 -42
- package/dist/annotator/inspection.d.ts +8 -1
- package/dist/annotator/selection.d.ts +5 -2
- package/dist/annotator-toolbar.d.ts +10 -2
- package/dist/annotator-toolbar.js +354 -198
- package/dist/index.cjs +82 -62
- package/dist/mcp-stdio.d.ts +15 -0
- package/dist/rpc/define.d.ts +1 -1
- package/dist/utils/logger.d.ts +4 -4
- package/dist/vite-plugin.d.ts +6 -0
- package/dist/vite-plugin.js +1170 -5
- package/dist/vite-plugin.js.map +4 -4
- package/package.json +4 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* AI Annotator MCP CLI
|
|
4
|
+
*
|
|
5
|
+
* Stdio-based MCP server that connects to AI Annotator server via socket.io
|
|
6
|
+
* and forwards tool calls to browser sessions.
|
|
7
|
+
*
|
|
8
|
+
* Usage:
|
|
9
|
+
* node mcp-stdio.js [--server <url>]
|
|
10
|
+
*
|
|
11
|
+
* Options:
|
|
12
|
+
* --server, -s Server URL (default: http://localhost:7318)
|
|
13
|
+
* Can also use AI_ANNOTATOR_SERVER env var
|
|
14
|
+
*/
|
|
15
|
+
export {};
|
package/dist/rpc/define.d.ts
CHANGED
package/dist/utils/logger.d.ts
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Server-side logging utility
|
|
3
3
|
*/
|
|
4
4
|
export interface Logger {
|
|
5
|
-
log(...args:
|
|
6
|
-
info(...args:
|
|
7
|
-
warn(...args:
|
|
8
|
-
error(...args:
|
|
5
|
+
log(...args: unknown[]): void;
|
|
6
|
+
info(...args: unknown[]): void;
|
|
7
|
+
warn(...args: unknown[]): void;
|
|
8
|
+
error(...args: unknown[]): void;
|
|
9
9
|
}
|
|
10
10
|
export declare function createLogger(verbose: boolean): Logger;
|
|
11
11
|
export declare function createSilentLogger(): Logger;
|
package/dist/vite-plugin.d.ts
CHANGED
|
@@ -20,6 +20,12 @@ export interface AiAnnotatorOptions {
|
|
|
20
20
|
* @default false
|
|
21
21
|
*/
|
|
22
22
|
verbose?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Inject source location data attributes into HTML elements
|
|
25
|
+
* Enables precise line number detection for vanilla HTML/JS projects
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
injectSourceLoc?: boolean;
|
|
23
29
|
}
|
|
24
30
|
export declare function aiAnnotator(options?: AiAnnotatorOptions): Plugin;
|
|
25
31
|
export default aiAnnotator;
|