@agent-native/pinpoint 0.1.8 → 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
  | --------------- | -------------------- | -------------------------------------- |
package/dist/cli.js CHANGED
@@ -9,7 +9,7 @@ var command = process.argv[2];
9
9
  if (command === "init") {
10
10
  init();
11
11
  } else {
12
- console.log("Usage: npx @agent-native/pinpoint init");
12
+ console.log("Usage: npx @agent-native/pinpoint@latest init");
13
13
  console.log("");
14
14
  console.log("Commands:");
15
15
  console.log(" init Copy agent scripts and skill to your project");
package/dist/cli.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n// @agent-native/pinpoint — CLI for project setup\n// MIT License\n//\n// Usage: npx @agent-native/pinpoint init\n\nimport { existsSync, mkdirSync, cpSync, readdirSync } from \"node:fs\";\nimport { resolve, dirname, join } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\n\nconst __dirname = dirname(fileURLToPath(import.meta.url));\nconst command = process.argv[2];\n\nif (command === \"init\") {\n init();\n} else {\n console.log(\"Usage: npx @agent-native/pinpoint init\");\n console.log(\"\");\n console.log(\"Commands:\");\n console.log(\" init Copy agent scripts and skill to your project\");\n process.exit(0);\n}\n\nfunction init() {\n const projectRoot = process.cwd();\n\n // 1. Copy agent scripts to scripts/\n const scriptsSource = resolve(__dirname, \"../src/scripts\");\n const scriptsDest = resolve(projectRoot, \"scripts\");\n\n if (!existsSync(scriptsDest)) {\n mkdirSync(scriptsDest, { recursive: true });\n }\n\n const scriptFiles = readdirSync(scriptsSource).filter((f) =>\n f.endsWith(\".ts\"),\n );\n let copiedScripts = 0;\n\n for (const file of scriptFiles) {\n const dest = join(scriptsDest, file);\n if (existsSync(dest)) {\n console.log(` skip scripts/${file} (already exists)`);\n } else {\n cpSync(join(scriptsSource, file), dest);\n console.log(` added scripts/${file}`);\n copiedScripts++;\n }\n }\n\n // 2. Copy agent skill if .agents/ directory pattern exists\n const skillSource = resolve(__dirname, \"../.agents/skills/pinpoint\");\n const skillDest = resolve(projectRoot, \".agents/skills/pinpoint\");\n\n if (existsSync(skillSource)) {\n if (!existsSync(skillDest)) {\n mkdirSync(skillDest, { recursive: true });\n }\n const skillFile = join(skillSource, \"SKILL.md\");\n const skillDestFile = join(skillDest, \"SKILL.md\");\n if (existsSync(skillFile)) {\n if (existsSync(skillDestFile)) {\n console.log(\n \" skip .agents/skills/pinpoint/SKILL.md (already exists)\",\n );\n } else {\n cpSync(skillFile, skillDestFile);\n console.log(\" added .agents/skills/pinpoint/SKILL.md\");\n }\n }\n }\n\n console.log(\"\");\n console.log(\n copiedScripts > 0\n ? \"Pinpoint initialized. Agent scripts are in scripts/.\"\n : \"Pinpoint already initialized. No new files copied.\",\n );\n console.log(\"\");\n console.log(\"Next steps:\");\n console.log(\n \" 1. Add <Pinpoint /> to your client: import { Pinpoint } from '@agent-native/pinpoint/react'\",\n );\n console.log(\n ' 2. Add middleware to your server: app.use(\"/api/pins\", pagePinRoutes())',\n );\n}\n"],"mappings":";;;AAMA,SAAS,YAAY,WAAW,QAAQ,mBAAmB;AAC3D,SAAS,SAAS,SAAS,YAAY;AACvC,SAAS,qBAAqB;AAE9B,IAAM,YAAY,QAAQ,cAAc,YAAY,GAAG,CAAC;AACxD,IAAM,UAAU,QAAQ,KAAK,CAAC;AAE9B,IAAI,YAAY,QAAQ;AACtB,OAAK;AACP,OAAO;AACL,UAAQ,IAAI,wCAAwC;AACpD,UAAQ,IAAI,EAAE;AACd,UAAQ,IAAI,WAAW;AACvB,UAAQ,IAAI,wDAAwD;AACpE,UAAQ,KAAK,CAAC;AAChB;AAEA,SAAS,OAAO;AACd,QAAM,cAAc,QAAQ,IAAI;AAGhC,QAAM,gBAAgB,QAAQ,WAAW,gBAAgB;AACzD,QAAM,cAAc,QAAQ,aAAa,SAAS;AAElD,MAAI,CAAC,WAAW,WAAW,GAAG;AAC5B,cAAU,aAAa,EAAE,WAAW,KAAK,CAAC;AAAA,EAC5C;AAEA,QAAM,cAAc,YAAY,aAAa,EAAE;AAAA,IAAO,CAAC,MACrD,EAAE,SAAS,KAAK;AAAA,EAClB;AACA,MAAI,gBAAgB;AAEpB,aAAW,QAAQ,aAAa;AAC9B,UAAM,OAAO,KAAK,aAAa,IAAI;AACnC,QAAI,WAAW,IAAI,GAAG;AACpB,cAAQ,IAAI,mBAAmB,IAAI,mBAAmB;AAAA,IACxD,OAAO;AACL,aAAO,KAAK,eAAe,IAAI,GAAG,IAAI;AACtC,cAAQ,IAAI,mBAAmB,IAAI,EAAE;AACrC;AAAA,IACF;AAAA,EACF;AAGA,QAAM,cAAc,QAAQ,WAAW,4BAA4B;AACnE,QAAM,YAAY,QAAQ,aAAa,yBAAyB;AAEhE,MAAI,WAAW,WAAW,GAAG;AAC3B,QAAI,CAAC,WAAW,SAAS,GAAG;AAC1B,gBAAU,WAAW,EAAE,WAAW,KAAK,CAAC;AAAA,IAC1C;AACA,UAAM,YAAY,KAAK,aAAa,UAAU;AAC9C,UAAM,gBAAgB,KAAK,WAAW,UAAU;AAChD,QAAI,WAAW,SAAS,GAAG;AACzB,UAAI,WAAW,aAAa,GAAG;AAC7B,gBAAQ;AAAA,UACN;AAAA,QACF;AAAA,MACF,OAAO;AACL,eAAO,WAAW,aAAa;AAC/B,gBAAQ,IAAI,0CAA0C;AAAA,MACxD;AAAA,IACF;AAAA,EACF;AAEA,UAAQ,IAAI,EAAE;AACd,UAAQ;AAAA,IACN,gBAAgB,IACZ,yDACA;AAAA,EACN;AACA,UAAQ,IAAI,EAAE;AACd,UAAQ,IAAI,aAAa;AACzB,UAAQ;AAAA,IACN;AAAA,EACF;AACA,UAAQ;AAAA,IACN;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n// @agent-native/pinpoint — CLI for project setup\n// MIT License\n//\n// Usage: npx @agent-native/pinpoint@latest init\n\nimport { existsSync, mkdirSync, cpSync, readdirSync } from \"node:fs\";\nimport { resolve, dirname, join } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\n\nconst __dirname = dirname(fileURLToPath(import.meta.url));\nconst command = process.argv[2];\n\nif (command === \"init\") {\n init();\n} else {\n console.log(\"Usage: npx @agent-native/pinpoint@latest init\");\n console.log(\"\");\n console.log(\"Commands:\");\n console.log(\" init Copy agent scripts and skill to your project\");\n process.exit(0);\n}\n\nfunction init() {\n const projectRoot = process.cwd();\n\n // 1. Copy agent scripts to scripts/\n const scriptsSource = resolve(__dirname, \"../src/scripts\");\n const scriptsDest = resolve(projectRoot, \"scripts\");\n\n if (!existsSync(scriptsDest)) {\n mkdirSync(scriptsDest, { recursive: true });\n }\n\n const scriptFiles = readdirSync(scriptsSource).filter((f) =>\n f.endsWith(\".ts\"),\n );\n let copiedScripts = 0;\n\n for (const file of scriptFiles) {\n const dest = join(scriptsDest, file);\n if (existsSync(dest)) {\n console.log(` skip scripts/${file} (already exists)`);\n } else {\n cpSync(join(scriptsSource, file), dest);\n console.log(` added scripts/${file}`);\n copiedScripts++;\n }\n }\n\n // 2. Copy agent skill if .agents/ directory pattern exists\n const skillSource = resolve(__dirname, \"../.agents/skills/pinpoint\");\n const skillDest = resolve(projectRoot, \".agents/skills/pinpoint\");\n\n if (existsSync(skillSource)) {\n if (!existsSync(skillDest)) {\n mkdirSync(skillDest, { recursive: true });\n }\n const skillFile = join(skillSource, \"SKILL.md\");\n const skillDestFile = join(skillDest, \"SKILL.md\");\n if (existsSync(skillFile)) {\n if (existsSync(skillDestFile)) {\n console.log(\n \" skip .agents/skills/pinpoint/SKILL.md (already exists)\",\n );\n } else {\n cpSync(skillFile, skillDestFile);\n console.log(\" added .agents/skills/pinpoint/SKILL.md\");\n }\n }\n }\n\n console.log(\"\");\n console.log(\n copiedScripts > 0\n ? \"Pinpoint initialized. Agent scripts are in scripts/.\"\n : \"Pinpoint already initialized. No new files copied.\",\n );\n console.log(\"\");\n console.log(\"Next steps:\");\n console.log(\n \" 1. Add <Pinpoint /> to your client: import { Pinpoint } from '@agent-native/pinpoint/react'\",\n );\n console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1C;AACA,UAAM,YAAY,KAAK,aAAa,UAAU;AAC9C,UAAM,gBAAgB,KAAK,WAAW,UAAU;AAChD,QAAI,WAAW,SAAS,GAAG;AACzB,UAAI,WAAW,aAAa,GAAG;AAC7B,gBAAQ;AAAA,UACN;AAAA,QACF;AAAA,MACF,OAAO;AACL,eAAO,WAAW,aAAa;AAC/B,gBAAQ,IAAI,0CAA0C;AAAA,MACxD;AAAA,IACF;AAAA,EACF;AAEA,UAAQ,IAAI,EAAE;AACd,UAAQ;AAAA,IACN,gBAAgB,IACZ,yDACA;AAAA,EACN;AACA,UAAQ,IAAI,EAAE;AACd,UAAQ,IAAI,aAAa;AACzB,UAAQ;AAAA,IACN;AAAA,EACF;AACA,UAAQ;AAAA,IACN;AAAA,EACF;AACF;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-native/pinpoint",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "type": "module",
5
5
  "description": "Visual feedback and annotation tool for agent-native web applications",
6
6
  "license": "MIT",