hermes-cursor-acp 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/bin/cli.js +5 -2
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -9,8 +9,11 @@ const fs = require("node:fs");
9
9
  const os = require("node:os");
10
10
  const path = require("node:path");
11
11
 
12
- const REPO = "https://github.com/neerazz/hermes-cursor-acp";
13
- const PLUGIN = "cursor-acp";
12
+ const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "..", "package.json"), "utf8"));
13
+ let REPO = pkg.repository?.url || "https://github.com/neerazz/hermes-cursor-acp";
14
+ if (REPO.startsWith("git+")) REPO = REPO.slice(4);
15
+ if (REPO.endsWith(".git")) REPO = REPO.slice(0, -4);
16
+ const PLUGIN = pkg.name.replace(/^hermes-/, "");
14
17
  const CURSOR_INSTALLER = "https://cursor.com/install";
15
18
  const HERMES_DOCS = "https://hermes-agent.nousresearch.com/docs";
16
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hermes-cursor-acp",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "One-command Cursor subscription models for Hermes Agent: installs the cursor-acp provider plugin and verifies the Cursor CLI ACP server.",
5
5
  "bin": {
6
6
  "hermes-cursor-acp": "bin/cli.js"