@kiran_nandi_123/conxa 1.0.5 → 1.0.7

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
@@ -3,13 +3,30 @@
3
3
  CLI for installing and running Conxa automation plugins on top of the
4
4
  shared `conxa` MCP runtime.
5
5
 
6
- ## Install plugins
7
-
8
- ```
9
- npx -y conxa install <plugin_id>
10
- ```
11
-
12
- Plugin refs accepted:
6
+ ## Install plugins
7
+
8
+ PowerShell on Windows:
9
+
10
+ ```powershell
11
+ npx.cmd -y "@kiran_nandi_123/conxa" install "cannonboldoff-hue/render"
12
+ ```
13
+
14
+ Generic shell:
15
+
16
+ ```
17
+ npx -y "@kiran_nandi_123/conxa" install <plugin_id>
18
+ ```
19
+
20
+ Avoid running downloaded scripts inline with `irm` + `scriptblock`. If you need
21
+ the PowerShell installer, download and inspect it first:
22
+
23
+ ```powershell
24
+ irm "https://cdn.jsdelivr.net/npm/@kiran_nandi_123/conxa/scripts/install.ps1" -OutFile ".\install-conxa.ps1"
25
+ Get-Content ".\install-conxa.ps1"
26
+ powershell -ExecutionPolicy Bypass -File ".\install-conxa.ps1" "cannonboldoff-hue/render"
27
+ ```
28
+
29
+ Plugin refs accepted:
13
30
 
14
31
  - `acme/hr-onboarding` — GitHub `owner/repo` (cloned via git)
15
32
  - `acme/hr-onboarding@v1.0.0` — pinned version (git tag)
package/lib/cli.js CHANGED
@@ -85,14 +85,15 @@ function _releaseLock() {
85
85
 
86
86
  // ─── Claude Code integration ─────────────────────────────────────────────────
87
87
 
88
- function _registerGlobalMcp() {
89
- let claudeJson = {};
90
- try { claudeJson = JSON.parse(fs.readFileSync(CLAUDE_JSON, "utf8")); } catch (_) {}
91
- const existing = claudeJson.mcpServers && claudeJson.mcpServers.conxa;
92
- if (existing && existing.type === "stdio" && existing.command === "node" && existing.args && existing.args[0] === SERVER_JS) return;
93
- if (!claudeJson.mcpServers) claudeJson.mcpServers = {};
94
- claudeJson.mcpServers.conxa = { type: "stdio", command: "node", args: [SERVER_JS] };
95
- try {
88
+ function _registerGlobalMcp() {
89
+ let claudeJson = {};
90
+ try { claudeJson = JSON.parse(fs.readFileSync(CLAUDE_JSON, "utf8")); } catch (_) {}
91
+ const nodeCommand = process.execPath || "node";
92
+ const existing = claudeJson.mcpServers && claudeJson.mcpServers.conxa;
93
+ if (existing && existing.type === "stdio" && existing.command === nodeCommand && existing.args && existing.args[0] === SERVER_JS) return;
94
+ if (!claudeJson.mcpServers) claudeJson.mcpServers = {};
95
+ claudeJson.mcpServers.conxa = { type: "stdio", command: nodeCommand, args: [SERVER_JS] };
96
+ try {
96
97
  _atomicWrite(CLAUDE_JSON, JSON.stringify(claudeJson, null, 2) + "\n");
97
98
  process.stderr.write(`[conxa] Registered conxa MCP server in ${CLAUDE_JSON}\n`);
98
99
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiran_nandi_123/conxa",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Conxa CLI — install and manage shared-runtime automation plugins",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -6,4 +6,14 @@ if (-not (Get-Command node -ErrorAction SilentlyContinue)) {
6
6
  $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
7
7
  }
8
8
 
9
- npx -y "@kiran_nandi_123/conxa" install $PluginId
9
+ $NpxCommand = Get-Command npx.cmd -ErrorAction SilentlyContinue
10
+ if (-not $NpxCommand) {
11
+ $NpxCommand = Get-Command npx -ErrorAction SilentlyContinue
12
+ }
13
+
14
+ if (-not $NpxCommand) {
15
+ throw "[conxa] npx not found. Install Node.js LTS, then retry."
16
+ }
17
+
18
+ $NpxPath = if ($NpxCommand.Source) { $NpxCommand.Source } else { $NpxCommand.Path }
19
+ & $NpxPath -y "@kiran_nandi_123/conxa" install $PluginId