troxy-cli 1.29.18 → 1.29.19

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/bin/troxy.js CHANGED
@@ -227,7 +227,7 @@ switch (command) {
227
227
 
228
228
  // Re-point every real consumer (MCP client configs, the background service) at the new
229
229
  // key BEFORE revoking the old one — otherwise every consumer, which holds the key via
230
- // ENV rather than config.json, keeps presenting the now-revoked key and payment control
230
+ // ENV rather than config.json, keeps presenting the now-revoked key and policy enforcement
231
231
  // goes down until the user thinks to re-run init. (H6)
232
232
  await reprovisionKeyConsumers(newKey, existing.agentName || 'my-agent');
233
233
 
@@ -747,7 +747,7 @@ switch (command) {
747
747
  Everything else requires: troxy login
748
748
 
749
749
  MCP
750
- troxy pause Pause this MCP (blocks all payments)
750
+ troxy pause Pause this MCP (blocks all checkpoints)
751
751
  troxy resume Resume this MCP
752
752
  troxy mcps list All MCPs in your account
753
753
  troxy mcps rename --name "x" Rename this machine's MCP
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "troxy-cli",
3
- "version": "1.29.18",
3
+ "version": "1.29.19",
4
4
  "description": "A secure control layer for AI agents: policies across payments, messages, logins, destructive actions, model usage, and secrets, all enforceable from the CLI",
5
5
  "homepage": "https://troxy.io",
6
6
  "bugs": {
@@ -11,6 +11,7 @@
11
11
  "troxy": "bin/troxy.js"
12
12
  },
13
13
  "scripts": {
14
+ "preinstall": "node scripts/check-node.js",
14
15
  "test": "node --test src/tests/*.test.js"
15
16
  },
16
17
  "dependencies": {
@@ -30,7 +31,8 @@
30
31
  },
31
32
  "files": [
32
33
  "bin/",
33
- "src/"
34
+ "src/",
35
+ "scripts/check-node.js"
34
36
  ],
35
37
  "keywords": [
36
38
  "mcp",
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ const major = parseInt(process.versions.node.split('.')[0], 10);
3
+ if (major < 18) {
4
+ console.error(`\ntroxy-cli requires Node >=18, you have ${process.version}.\nInstall a newer Node (e.g. via nvm: https://github.com/nvm-sh/nvm) and retry.\n`);
5
+ process.exit(1);
6
+ }