viyv-browser-mcp 0.6.4 → 0.6.5

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/dist/index.js CHANGED
@@ -2973,6 +2973,37 @@ var PAGE_DATA_EXTRACT_RETURNS = `{
2973
2973
  }`;
2974
2974
  var PAGE_DATA_EXTRACT_RELATED = ["get_page_text", "javascript_exec", "sm_fetch"];
2975
2975
 
2976
+ // src/tools/viyv/feedback.ts
2977
+ var FEEDBACK_DESCRIPTION = `Visual feedback/review system. Actions: list, get, add, reply, resolve, reopen, complete.
2978
+ Pin comments to page elements for human-AI review workflow.`;
2979
+ var FEEDBACK_DETAIL = `Collaborative review system for pinning feedback to UI elements.
2980
+
2981
+ Actions:
2982
+ - list: Get feedback threads for the current tab's URL. Filter by status (default: open).
2983
+ Returns: url_pattern, selector, element_tag, text_preview, created_by, latest_comment.
2984
+ - get: Get full thread details including all comments. Requires thread_id.
2985
+ - add: Create new thread on an element. Requires ref (from read_page) or selector + body.
2986
+ - reply: Add comment to existing thread. Requires thread_id + body.
2987
+ - resolve: Mark thread as resolved. Requires thread_id. Optional resolution_note.
2988
+ - reopen: Reopen a resolved thread. Requires thread_id.
2989
+ - complete: Archive/dismiss a thread (removes pin). Requires thread_id.
2990
+
2991
+ Workflow: list \u2192 get (for full context) \u2192 fix code \u2192 resolve.
2992
+ Element targeting: Use ref from read_page output, or provide a CSS selector.
2993
+ Threads persist across page reloads via element selectors.
2994
+ Users see pins on the page and can interact via inline popovers.
2995
+ Status flow: open \u2192 resolved \u2192 completed (or open \u2192 completed).`;
2996
+ var FEEDBACK_RETURNS = `{
2997
+ // list: { threads[{ thread_id, status, url_pattern, selector, element_tag, text_preview, created_by, created_by_type, comment_count, latest_comment, created_at }], total }
2998
+ // get: { thread_id, status, url_pattern, url_exact, selector, element_tag, text_preview, created_by, resolution?, comments[{ comment_id, author_type, author_name, body, created_at }] }
2999
+ // add: { thread_id, comment_id }
3000
+ // reply: { thread_id, comment_id, comment_count }
3001
+ // resolve: { thread_id, status }
3002
+ // reopen: { thread_id, status }
3003
+ // complete: { thread_id, archived }
3004
+ }`;
3005
+ var FEEDBACK_RELATED = ["read_page", "screenshot", "find"];
3006
+
2976
3007
  // src/tools/index.ts
2977
3008
  var navigateTool = {
2978
3009
  name: "navigate",
@@ -3555,6 +3586,24 @@ var browserHealthTool = {
3555
3586
  related: BROWSER_HEALTH_RELATED,
3556
3587
  inputSchema: z.object({})
3557
3588
  };
3589
+ var feedbackTool = {
3590
+ name: "feedback",
3591
+ description: FEEDBACK_DESCRIPTION,
3592
+ detail: FEEDBACK_DETAIL,
3593
+ returns: FEEDBACK_RETURNS,
3594
+ category: "viyv",
3595
+ related: FEEDBACK_RELATED,
3596
+ inputSchema: z.object({
3597
+ tabId: z.coerce.number().describe("Tab ID"),
3598
+ action: z.enum(["list", "get", "add", "reply", "resolve", "reopen", "complete"]).describe("Operation to perform"),
3599
+ ref: z.string().optional().describe("Element ref from read_page (for add)"),
3600
+ selector: z.string().optional().describe("CSS selector (for add, alternative to ref)"),
3601
+ body: z.string().optional().describe("Comment text (for add/reply)"),
3602
+ thread_id: z.string().optional().describe("Thread ID (for reply/resolve/reopen/complete)"),
3603
+ resolution_note: z.string().optional().describe("Resolution note (for resolve)"),
3604
+ status: z.enum(["open", "resolved", "completed", "all"]).optional().describe("Status filter (for list, default: open)")
3605
+ })
3606
+ };
3558
3607
  var smCapabilitiesTool = {
3559
3608
  name: "sm_capabilities",
3560
3609
  description: SM_CAPABILITIES_DESCRIPTION,
@@ -4382,6 +4431,7 @@ var allTools = [
4382
4431
  artifactFromPageTool,
4383
4432
  pageDataExtractTool,
4384
4433
  browserHealthTool,
4434
+ feedbackTool,
4385
4435
  // Semantic (12)
4386
4436
  smCapabilitiesTool,
4387
4437
  smInvokeTool,