vite-plugin-ai-annotator 1.0.2 → 1.0.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.
- 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 +332 -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/package.json +3 -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/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-ai-annotator",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "AI-powered element annotator for Vite - Pick elements and get instant AI code modifications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/vite-plugin.js",
|
|
7
7
|
"types": "dist/vite-plugin.d.ts",
|
|
8
8
|
"bin": {
|
|
9
|
-
"ai-annotator": "./dist/index.cjs"
|
|
9
|
+
"vite-plugin-ai-annotator": "./dist/index.cjs"
|
|
10
10
|
},
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@floating-ui/dom": "^1.7.4",
|
|
58
58
|
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
59
|
-
"@types/js-yaml": "^4.0.9",
|
|
60
59
|
"cors": "^2.8.5",
|
|
61
60
|
"express": "^5.1.0",
|
|
62
61
|
"html-to-image": "^1.11.13",
|
|
@@ -71,6 +70,7 @@
|
|
|
71
70
|
"@types/bun": "^1.2.20",
|
|
72
71
|
"@types/cors": "^2.8.17",
|
|
73
72
|
"@types/express": "^5.0.2",
|
|
73
|
+
"@types/js-yaml": "^4.0.9",
|
|
74
74
|
"@types/node": "^22.13.4",
|
|
75
75
|
"esbuild": "^0.25.9",
|
|
76
76
|
"tsx": "^4.7.0",
|