@ingcreators/annot-mcp 0.1.0 → 0.1.1

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.
@@ -190,6 +190,10 @@ export declare const annotateScreenshotTool: {
190
190
  };
191
191
  })[];
192
192
  };
193
+ readonly Locator: {
194
+ type: string;
195
+ minLength: number;
196
+ };
193
197
  readonly BBox: {
194
198
  type: string;
195
199
  required: string[];
@@ -250,10 +254,6 @@ export declare const annotateScreenshotTool: {
250
254
  };
251
255
  };
252
256
  };
253
- readonly Locator: {
254
- type: string;
255
- minLength: number;
256
- };
257
257
  };
258
258
  };
259
259
  };
@@ -62,18 +62,6 @@ export declare const annotateUrlTool: {
62
62
  readonly $defs: {
63
63
  readonly LocatorAnnotation: {
64
64
  oneOf: ({
65
- type: string;
66
- required: string[];
67
- additionalProperties: boolean;
68
- properties: {
69
- type: {
70
- const: string;
71
- };
72
- svgFragment: {
73
- type: string;
74
- };
75
- };
76
- } | {
77
65
  type: string;
78
66
  required: string[];
79
67
  additionalProperties: boolean;
@@ -257,8 +245,24 @@ export declare const annotateUrlTool: {
257
245
  required: string[];
258
246
  }[];
259
247
  }[];
248
+ } | {
249
+ type: string;
250
+ required: string[];
251
+ additionalProperties: boolean;
252
+ properties: {
253
+ type: {
254
+ const: string;
255
+ };
256
+ svgFragment: {
257
+ type: string;
258
+ };
259
+ };
260
260
  })[];
261
261
  };
262
+ readonly Locator: {
263
+ type: string;
264
+ minLength: number;
265
+ };
262
266
  readonly BBox: {
263
267
  type: string;
264
268
  required: string[];
@@ -319,10 +323,6 @@ export declare const annotateUrlTool: {
319
323
  };
320
324
  };
321
325
  };
322
- readonly Locator: {
323
- type: string;
324
- minLength: number;
325
- };
326
326
  };
327
327
  };
328
328
  };
@@ -40,6 +40,10 @@ export declare const redactScreenshotTool: {
40
40
  };
41
41
  };
42
42
  };
43
+ readonly Locator: {
44
+ type: string;
45
+ minLength: number;
46
+ };
43
47
  readonly BBox: {
44
48
  type: string;
45
49
  required: string[];
@@ -100,10 +104,6 @@ export declare const redactScreenshotTool: {
100
104
  };
101
105
  };
102
106
  };
103
- readonly Locator: {
104
- type: string;
105
- minLength: number;
106
- };
107
107
  };
108
108
  };
109
109
  };
@@ -77,6 +77,10 @@ export declare const redactUrlTool: {
77
77
  required: string[];
78
78
  }[];
79
79
  };
80
+ readonly Locator: {
81
+ type: string;
82
+ minLength: number;
83
+ };
80
84
  readonly BBox: {
81
85
  type: string;
82
86
  required: string[];
@@ -137,10 +141,6 @@ export declare const redactUrlTool: {
137
141
  };
138
142
  };
139
143
  };
140
- readonly Locator: {
141
- type: string;
142
- minLength: number;
143
- };
144
144
  };
145
145
  };
146
146
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ingcreators/annot-mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Model Context Protocol server exposing the Annot headless annotator as agent-callable tools. Drop into Claude Desktop / Claude Code / Cursor and let an AI agent compose Annot with @playwright/mcp + GitHub MCP for one-turn bug-report autopilot, visual-diff PR review, and locator-first annotation workflows.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "ingcreators",
@@ -56,7 +56,7 @@
56
56
  "@napi-rs/canvas": "^0.1.0",
57
57
  "pixelmatch": "^7.1.0",
58
58
  "playwright-core": "^1.50.0",
59
- "@ingcreators/annot-annotator": "0.1.0"
59
+ "@ingcreators/annot-annotator": "0.2.0"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "vite build",
@@ -1,34 +0,0 @@
1
- export interface BoundingBox {
2
- x: number;
3
- y: number;
4
- width: number;
5
- height: number;
6
- }
7
- export interface Point {
8
- x: number;
9
- y: number;
10
- }
11
- export interface RectOptions {
12
- stroke?: string;
13
- strokeWidth?: number;
14
- fill?: string;
15
- }
16
- export interface ArrowOptions {
17
- color?: string;
18
- strokeWidth?: number;
19
- }
20
- export interface TextOptions {
21
- color?: string;
22
- fontSize?: number;
23
- anchor?: "start" | "middle" | "end";
24
- }
25
- /** Outline a bounding box with an SVG `<rect>`. */
26
- export declare function rectForBoundingBox(bbox: BoundingBox, opts?: RectOptions): string;
27
- /**
28
- * Draw an arrow from `from` to `to`. Inlines a unique-id `<marker>`
29
- * definition so the helper is self-contained — call it twice and
30
- * each call produces a distinct arrowhead marker.
31
- */
32
- export declare function arrowBetween(from: Point, to: Point, opts?: ArrowOptions): string;
33
- /** Drop a text label at a position. */
34
- export declare function textAt(at: Point, content: string, opts?: TextOptions): string;
@@ -1,10 +0,0 @@
1
- import { BboxAnnotation } from './types.js';
2
- /**
3
- * Convert a list of bbox-flavour annotations into a single SVG
4
- * fragment string. The fragment is suitable as the
5
- * `annotationsSvg` payload for `@ingcreators/annot-annotator`.
6
- *
7
- * Phase 1 emits the bare fragments only (no `<svg>` wrapper); the
8
- * annotator's sanitiser handles wrapping at rasterise time.
9
- */
10
- export declare function bboxAnnotationsToSvg(annotations: readonly BboxAnnotation[]): string;