@agent-native/pinpoint 0.1.5 → 0.1.9

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 CHANGED
@@ -17,7 +17,7 @@ pnpm add @agent-native/pinpoint
17
17
  ### Step 2: Initialize agent actions and skill
18
18
 
19
19
  ```sh
20
- npx @agent-native/pinpoint init
20
+ npx @agent-native/pinpoint@latest init
21
21
  ```
22
22
 
23
23
  This copies agent actions to `actions/` and the Pinpoint skill to `.agents/skills/pinpoint/`. No manual file copying needed.
@@ -91,7 +91,7 @@ Pins are stored as individual JSON files in `data/pins/{uuid}.json`:
91
91
  - `selector` — CSS selector to find the element in the DOM
92
92
  - `comment` — what the user wants changed
93
93
 
94
- **Agent commands** (available after `npx @agent-native/pinpoint init`):
94
+ **Agent commands** (available after `npx @agent-native/pinpoint@latest init`):
95
95
 
96
96
  - `pnpm action get-pins --status open` — list unresolved pins
97
97
  - `pnpm action resolve-pin --id <uuid>` — mark as resolved after fixing
@@ -174,7 +174,7 @@ pnpm add @agent-native/pinpoint
174
174
  ### 2. Initialize
175
175
 
176
176
  ```sh
177
- npx @agent-native/pinpoint init
177
+ npx @agent-native/pinpoint@latest init
178
178
  ```
179
179
 
180
180
  Copies agent actions to `actions/` and the Pinpoint skill to `.agents/skills/pinpoint/`.
@@ -249,8 +249,8 @@ All options can be passed as props to `<Pinpoint />` or as the config object to
249
249
  ## CLI
250
250
 
251
251
  ```sh
252
- npx @agent-native/pinpoint init # Copy actions and skill to your project
253
- npx @agent-native/pinpoint # Show help
252
+ npx @agent-native/pinpoint@latest init # Copy actions and skill to your project
253
+ npx @agent-native/pinpoint@latest # Show help
254
254
  ```
255
255
 
256
256
  ## Keyboard Shortcuts
@@ -294,7 +294,7 @@ app.use("/api/pins", pagePinRoutes({ dataDir: "data/pins" }));
294
294
 
295
295
  ## Agent Actions
296
296
 
297
- Available after running `npx @agent-native/pinpoint init`:
297
+ Available after running `npx @agent-native/pinpoint@latest init`:
298
298
 
299
299
  | Action | Purpose | Args |
300
300
  | --------------- | -------------------- | -------------------------------------- |
@@ -2989,7 +2989,6 @@ var Toolbar = (props) => {
2989
2989
  bottom: EDGE_GAP
2990
2990
  });
2991
2991
  const [reservedRight, setReservedRight] = createSignal(0);
2992
- const [dragging, setDragging] = createSignal(false);
2993
2992
  const [dragStart, setDragStart] = createSignal({
2994
2993
  x: 0,
2995
2994
  y: 0,
@@ -3032,7 +3031,6 @@ var Toolbar = (props) => {
3032
3031
  };
3033
3032
  function handleMouseDown(e) {
3034
3033
  if (props.expanded) return;
3035
- setDragging(true);
3036
3034
  setDidDrag(false);
3037
3035
  setDragStart({
3038
3036
  x: e.clientX,
@@ -3052,14 +3050,13 @@ var Toolbar = (props) => {
3052
3050
  });
3053
3051
  };
3054
3052
  const handleUp = () => {
3055
- setDragging(false);
3056
3053
  window.removeEventListener("mousemove", handleMove);
3057
3054
  window.removeEventListener("mouseup", handleUp);
3058
3055
  };
3059
3056
  window.addEventListener("mousemove", handleMove);
3060
3057
  window.addEventListener("mouseup", handleUp);
3061
3058
  }
3062
- function handleClick(e) {
3059
+ function handleClick() {
3063
3060
  if (props.expanded) return;
3064
3061
  if (didDrag()) return;
3065
3062
  props.onToggleExpand();
@@ -4100,7 +4097,6 @@ var PinpointApp = (props) => {
4100
4097
  const [active, setActive] = createSignal(false);
4101
4098
  const [expanded, setExpanded] = createSignal(false);
4102
4099
  const [pins, setPins] = createSignal([]);
4103
- const [hoveredElement, setHoveredElement] = createSignal(null);
4104
4100
  const [hoveredRect, setHoveredRect] = createSignal(null);
4105
4101
  const [selectedElement, setSelectedElement] = createSignal(null);
4106
4102
  const [selectedContext, setSelectedContext] = createSignal(null);
@@ -4159,7 +4155,6 @@ var PinpointApp = (props) => {
4159
4155
  ignoreSelector: "#pinpoint-root, [data-pinpoint-marker]",
4160
4156
  blockInteractions: blockInteractions(),
4161
4157
  onHover: (element, rect) => {
4162
- setHoveredElement(element);
4163
4158
  setHoveredRect(rect);
4164
4159
  if (element && rect) {
4165
4160
  const framework = detectFramework();
@@ -4501,7 +4496,6 @@ var PinpointApp = (props) => {
4501
4496
  picker.deactivate();
4502
4497
  dragSelect.deactivate();
4503
4498
  textSelect.deactivate();
4504
- setHoveredElement(null);
4505
4499
  setHoveredRect(null);
4506
4500
  setSelectionLabelInfo(null);
4507
4501
  }
@@ -4927,4 +4921,4 @@ export {
4927
4921
  mountPinpoint,
4928
4922
  unmountPinpoint
4929
4923
  };
4930
- //# sourceMappingURL=chunk-SI7E6GTM.js.map
4924
+ //# sourceMappingURL=chunk-6YK47AB5.js.map