troxy-cli 1.2.1 → 1.2.2
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 +2 -11
- package/package.json +1 -1
package/bin/troxy.js
CHANGED
|
@@ -3,7 +3,6 @@ import { runInit } from '../src/init.js';
|
|
|
3
3
|
import { runUninstall } from '../src/uninstall.js';
|
|
4
4
|
import { runMcp } from '../src/mcp-server.js';
|
|
5
5
|
import { runLogin, clearSession, requireKey, getKeySource } from '../src/auth.js';
|
|
6
|
-
import { runCards } from '../src/cards.js';
|
|
7
6
|
import { runPolicies } from '../src/policies.js';
|
|
8
7
|
import { runMcps } from '../src/mcps.js';
|
|
9
8
|
import { runActivity } from '../src/activity.js';
|
|
@@ -88,10 +87,6 @@ switch (command) {
|
|
|
88
87
|
break;
|
|
89
88
|
|
|
90
89
|
// ── Resources (read-only: --key or saved config; write: login) ─
|
|
91
|
-
case 'cards':
|
|
92
|
-
await runCards(positional, flags);
|
|
93
|
-
break;
|
|
94
|
-
|
|
95
90
|
case 'policies':
|
|
96
91
|
await runPolicies(positional, flags);
|
|
97
92
|
break;
|
|
@@ -134,11 +129,10 @@ switch (command) {
|
|
|
134
129
|
|
|
135
130
|
// ── Shorthand: troxy list [resource] ──────────────────────────
|
|
136
131
|
case 'list':
|
|
137
|
-
if (!sub || sub === '
|
|
138
|
-
if (sub === 'policies') { await runPolicies(['list'], flags); break; }
|
|
132
|
+
if (!sub || sub === 'policies') { await runPolicies(['list'], flags); break; }
|
|
139
133
|
if (sub === 'mcps') { await runMcps(['list'], flags); break; }
|
|
140
134
|
if (sub === 'activity') { await runActivity(flags); break; }
|
|
141
|
-
console.error(` Unknown resource: ${sub}. Try:
|
|
135
|
+
console.error(` Unknown resource: ${sub}. Try: policies, mcps, activity\n`);
|
|
142
136
|
process.exit(1);
|
|
143
137
|
|
|
144
138
|
// ── Status ────────────────────────────────────────────────────
|
|
@@ -205,7 +199,6 @@ switch (command) {
|
|
|
205
199
|
troxy policies list
|
|
206
200
|
troxy policies describe --name "Block Amazon"
|
|
207
201
|
troxy mcps list
|
|
208
|
-
troxy cards list
|
|
209
202
|
troxy activity [--limit 50] [--mine]
|
|
210
203
|
troxy insights [--period 7]
|
|
211
204
|
|
|
@@ -214,8 +207,6 @@ switch (command) {
|
|
|
214
207
|
troxy policies enable --name "X"
|
|
215
208
|
troxy policies disable --name "X"
|
|
216
209
|
troxy policies delete --name "X"
|
|
217
|
-
troxy cards create --name "Personal" [--budget 500]
|
|
218
|
-
troxy cards delete --name "Personal"
|
|
219
210
|
|
|
220
211
|
Override key for a single command: --key txy-...
|
|
221
212
|
`);
|