troxy-cli 1.29.54 → 1.29.55

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "troxy-cli",
3
- "version": "1.29.54",
3
+ "version": "1.29.55",
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": {
package/src/daemon.js CHANGED
@@ -23,7 +23,7 @@ import { api } from './api.js';
23
23
  import { createInterceptor } from './interceptor.js';
24
24
  import { enabledProviders, interceptHostsFor, troxyRouteFor } from './providers.js';
25
25
  import { ensureInterceptionCerts } from './tls-ca.js';
26
- import { migrateBaseUrlProxyToInterception, claudeCodeSettingsPath, refreshTroxyGuardMod } from './init.js';
26
+ import { migrateBaseUrlProxyToInterception, claudeCodeSettingsPath } from './init.js';
27
27
 
28
28
  const INTERVAL_MS = 60_000;
29
29
 
@@ -139,8 +139,6 @@ export async function runDaemon() {
139
139
  process.on('unhandledRejection', (err) => {
140
140
  process.stderr.write(`[troxy-daemon] unhandled rejection (continuing): ${err?.stack || err}\n`);
141
141
  });
142
- // A CLI upgrade (npm or troxy update) then a daemon restart brings the mod up to date.
143
- refreshTroxyGuardMod().catch((err) => process.stderr.write(`[troxy-daemon] mod refresh failed: ${err.message}\n`));
144
142
 
145
143
  const cfg = loadConfig();
146
144
  if (!cfg?.apiKey) {
package/src/init.js CHANGED
@@ -38,9 +38,10 @@ export async function installTroxyGuardMod(home = os.homedir(), detectFn = detec
38
38
  return true;
39
39
  }
40
40
 
41
- // Only `troxy init` used to install the mod, so a CLI upgrade left the old mod running.
42
- // Re-copy it when the installed one is stamped with a different CLI version; a machine
43
- // without the mod (never ran init, or uninstalled) is left alone.
41
+ // Only `troxy init` used to install the mod, so `troxy update` left the old mod running.
42
+ // Called from `troxy update` only: re-copies it when the installed one is stamped with a
43
+ // different CLI version. A machine without the mod (never ran init, or uninstalled) is
44
+ // left alone.
44
45
  export async function refreshTroxyGuardMod(home = os.homedir(), detectFn = detectInstalledClaudeCodeVersion) {
45
46
  const manifest = path.join(home, '.claude', 'skills', 'troxy-guard', '.claude-plugin', 'plugin.json');
46
47
  let installed;