lace-mcp 0.0.2-alpha.28 → 0.0.2-alpha.29
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/SKILL.md +6 -3
- package/dist/cli.js +681 -451
- package/package.json +1 -1
package/SKILL.md
CHANGED
|
@@ -7,14 +7,16 @@ description: Use when implementing approved Lace decisions, applying approved UI
|
|
|
7
7
|
|
|
8
8
|
Lace surfaces adoption insights as actionable decisions. When a decision is approved in the Lace overlay, this skill turns it into a code change.
|
|
9
9
|
|
|
10
|
+
Comments come from two places: review pages (`source: "review"`) and pins dropped on the user's live screen (`source: "screen-context"`). Both flow through `search_comments` and `apply_comment` identically.
|
|
11
|
+
|
|
10
12
|
## Steps
|
|
11
13
|
|
|
12
14
|
1. Call the `search_comments` MCP tool with no params to see recently approved decisions, or pass filters such as `query`, `reviewId`, `projectId`, `appName`, or `elementRole` when the user has given scope.
|
|
13
15
|
2. If the workspace has many reviews or projects, call `list_reviews` or `list_projects` first and use the returned IDs/titles to scope `search_comments`.
|
|
14
16
|
3. If there is exactly one relevant decision, proceed with it. If there are multiple plausible matches, ask the user which one to implement.
|
|
15
17
|
4. Call `apply_comment` with the chosen decision ID.
|
|
16
|
-
5. Use `include: "instructions"` by default. Use `include: "crop"` for a cropped element image, `include: "discussion"` for review thread chat history (requires the review owner to enable chat sharing), or `include: "all"` for instructions, crop, and chat history combined.
|
|
17
|
-
6. Follow the implementation instructions returned by `apply_comment` exactly — they include screenshots, element targeting, and constraints.
|
|
18
|
+
5. Use `include: "instructions"` by default. Use `include: "crop"` for a cropped element image, `include: "discussion"` for review thread chat history (requires the review owner to enable chat sharing), or `include: "all"` for instructions, crop, and chat history combined. Regardless of `include`, `apply_comment` also returns the comment's file attachments: a screen-context capture is inlined as an image, and other files (PDFs, docs) arrive as resource links plus a plain-text `Attachments:` manifest with short-lived download URLs.
|
|
19
|
+
6. Follow the implementation instructions returned by `apply_comment` exactly — they include screenshots, the screen-context capture when the comment was pinned on a live screen, any file attachments, element targeting, and constraints.
|
|
18
20
|
7. Implement the minimal code change described. Do not refactor or modify anything outside the target element.
|
|
19
21
|
|
|
20
22
|
## Element Grounding Strategies
|
|
@@ -27,8 +29,9 @@ When `apply_comment` returns metadata, use these fields to locate the target ele
|
|
|
27
29
|
4. **Bbox coordinates** — normalized 0–100 percentages. Use as a spatial hint (top-left vs bottom-right), not a pixel-precise locator. Helpful when text matching is ambiguous.
|
|
28
30
|
5. **Anchor state** — `anchor_state="detached"` means the element moved since the review. Fall back to text + role matching, then sibling context, then ask the user. `anchor_state="reanchored"` means the system re-found it — trust the current metadata.
|
|
29
31
|
6. **Crop image** — `include="crop"` returns both the full page screenshot and a zoomed crop of the target element. Use the full screenshot for spatial context and the crop for visual detail.
|
|
32
|
+
7. **Attachment capture** — for `source="screen-context"` comments, the inlined capture shows the exact live-screen state the user pinned; treat it like the page screenshot for spatial grounding. Open linked file attachments if the comment references them.
|
|
30
33
|
|
|
31
|
-
**Priority order:** visible text + role → DOM context / siblings → vocabulary neighbors → bbox position → crop image.
|
|
34
|
+
**Priority order:** visible text + role → DOM context / siblings → vocabulary neighbors → bbox position → crop image. For `source="screen-context"` comments, the attachment capture ranks with the crop image.
|
|
32
35
|
|
|
33
36
|
## Troubleshooting
|
|
34
37
|
|