gazesight 0.4.0 → 0.5.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 +5 -3
- package/dist/chrome/background.js +7 -7
- package/dist/chrome/content.js +7 -7
- package/dist/chrome/manifest.json +1 -1
- package/dist/chrome/options.js +37 -12
- package/dist/chrome/popup.html +3 -1
- package/dist/chrome/popup.js +1 -1
- package/dist/cli/index.js +249 -60
- package/dist/firefox/background.js +1 -1
- package/dist/firefox/content.js +6 -6
- package/dist/firefox/manifest.json +1 -1
- package/dist/firefox/options.js +29 -4
- package/dist/firefox/popup.html +3 -1
- package/dist/gazesight-firefox.xpi +0 -0
- package/dist/mcp/index.js +477 -30
- package/dist/worker/visual-diff.js +21 -4
- package/package.json +2 -2
|
@@ -157,9 +157,20 @@ var fullPageCaptureSchema = captureSchema.extend({
|
|
|
157
157
|
});
|
|
158
158
|
var navigateSchema = targetSchema.extend({ url: z.url() });
|
|
159
159
|
var diffSchema = z.strictObject({
|
|
160
|
-
baseline: z.uuid()
|
|
160
|
+
baseline: z.uuid().optional().describe(
|
|
161
|
+
"A prior PNG imageReference from this session. Omit and use referenceImagePath instead to diff against an external design reference."
|
|
162
|
+
),
|
|
163
|
+
referenceImagePath: z.string().min(1).max(4096).optional().describe(
|
|
164
|
+
"Path (relative to the MCP server's working directory, or absolute) to a local PNG design reference to diff the live capture against. Exactly one of baseline/referenceImagePath is required."
|
|
165
|
+
),
|
|
161
166
|
current: z.uuid().optional(),
|
|
162
|
-
|
|
167
|
+
tabId: z.number().int().nonnegative().optional().describe(
|
|
168
|
+
"Only used with referenceImagePath when current is omitted, to select which tab to capture. Ignored otherwise (baseline's own tab is used)."
|
|
169
|
+
),
|
|
170
|
+
threshold: z.number().finite().min(0).max(1).default(0.1),
|
|
171
|
+
checkpoint: z.string().min(1).max(200).regex(/^[A-Za-z0-9_-]+$/).optional().describe(
|
|
172
|
+
"Visual Convergence best-so-far tracking id (e.g. 'hero-desktop'). Only meaningful together with referenceImagePath: persists the best-known result locally and objectively reports isBest/regressed on every call, independent of the agent's own assessment."
|
|
173
|
+
)
|
|
163
174
|
});
|
|
164
175
|
var viewportProfileSchema = z.enum([
|
|
165
176
|
"mobile-small",
|
|
@@ -172,7 +183,10 @@ var setViewportSchema = targetSchema.extend({
|
|
|
172
183
|
profile: viewportProfileSchema.optional(),
|
|
173
184
|
width: z.number().int().min(200).max(8192).optional(),
|
|
174
185
|
height: z.number().int().min(200).max(8192).optional(),
|
|
175
|
-
dedicatedPreview: z.boolean().default(true)
|
|
186
|
+
dedicatedPreview: z.boolean().default(true),
|
|
187
|
+
close: z.boolean().optional().describe(
|
|
188
|
+
"Close the current dedicated preview window instead of creating or resizing one. Width/height/profile are ignored when true. Idempotent: has no effect if no preview is open."
|
|
189
|
+
)
|
|
176
190
|
});
|
|
177
191
|
var viewportResultSchema = z.strictObject({
|
|
178
192
|
tabId: z.number().int().nonnegative(),
|
|
@@ -194,7 +208,10 @@ var viewportResultSchema = z.strictObject({
|
|
|
194
208
|
exact: z.boolean().optional(),
|
|
195
209
|
attempts: z.number().int().min(0).max(3).optional(),
|
|
196
210
|
requiresTargetSelection: z.boolean().optional(),
|
|
197
|
-
sourceWindowUnchanged: z.boolean().optional()
|
|
211
|
+
sourceWindowUnchanged: z.boolean().optional(),
|
|
212
|
+
previewClosed: z.boolean().optional().describe(
|
|
213
|
+
"Present when close:true was requested. True if a dedicated preview window was actually open and closed; false if there was none to close."
|
|
214
|
+
)
|
|
198
215
|
});
|
|
199
216
|
var domSchema = targetSchema.extend({
|
|
200
217
|
selector: z.string().min(1).max(2048).optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gazesight",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"extension:lint": "web-ext lint --source-dir dist/firefox --warnings-as-errors",
|
|
27
27
|
"extension:build": "npm run build:extension",
|
|
28
28
|
"extension:sign": "tsx scripts/sign-extension.ts",
|
|
29
|
-
"release": "npm run build && npm run extension:lint && tsx scripts/release.ts",
|
|
29
|
+
"release": "npm run build && npm run build:chrome && npm run extension:lint && tsx scripts/release.ts",
|
|
30
30
|
"test:clean-install": "node scripts/clean-install.mjs",
|
|
31
31
|
"website:dev": "vite --config apps/website/vite.config.ts",
|
|
32
32
|
"website:build": "vite build --config apps/website/vite.config.ts",
|