troxy-cli 1.30.14 → 1.30.15
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 -8
- package/package.json +1 -1
- package/src/mcps.js +2 -3
- package/src/simulate.js +5 -7
package/bin/troxy.js
CHANGED
|
@@ -5,7 +5,6 @@ import { runMcp } from '../src/mcp-server.js';
|
|
|
5
5
|
import { runPause, runResume } from '../src/pause.js';
|
|
6
6
|
import { runLogin, clearSession, requireKey, requireJwt, loadSession, getKeySource } from '../src/auth.js';
|
|
7
7
|
import { loadConfig } from '../src/config.js';
|
|
8
|
-
import { runPolicies } from '../src/policies.js';
|
|
9
8
|
import { runMcps } from '../src/mcps.js';
|
|
10
9
|
import { runActivity } from '../src/activity.js';
|
|
11
10
|
import { runSettings } from '../src/settings.js';
|
|
@@ -307,7 +306,7 @@ switch (command) {
|
|
|
307
306
|
troxy pay --merchant <name> --amount <n> [options]
|
|
308
307
|
|
|
309
308
|
Simulates a payment evaluation request, identical to what your AI agent sends.
|
|
310
|
-
|
|
309
|
+
Login required.
|
|
311
310
|
|
|
312
311
|
By default, payments that come back ALLOW or NOTIFY are auto-confirmed as
|
|
313
312
|
successful charges, so rows land on their final badge in the dashboard
|
|
@@ -403,10 +402,6 @@ switch (command) {
|
|
|
403
402
|
break;
|
|
404
403
|
|
|
405
404
|
// ── Resources (read-only: --key or saved config; write: login) ─
|
|
406
|
-
case 'policies':
|
|
407
|
-
await runPolicies(positional, flags, multiFlags);
|
|
408
|
-
break;
|
|
409
|
-
|
|
410
405
|
case 'mcps':
|
|
411
406
|
await runMcps(positional, flags);
|
|
412
407
|
break;
|
|
@@ -516,12 +511,11 @@ switch (command) {
|
|
|
516
511
|
|
|
517
512
|
// ── Shorthand: troxy list [resource] ──────────────────────────
|
|
518
513
|
case 'list':
|
|
519
|
-
if (!sub || sub === 'policies') { await runPolicies(['list'], flags); break; }
|
|
520
514
|
if (sub === 'mcps') { await runMcps(['list'], flags); break; }
|
|
521
515
|
if (sub === 'activity') { await runActivity(flags); break; }
|
|
522
516
|
if (sub === 'approvals') { await runApprovals(['list'], flags); break; }
|
|
523
517
|
if (sub === 'secrets') { await runSecrets(['list'], flags); break; }
|
|
524
|
-
console.error(` Unknown resource: ${sub}. Try:
|
|
518
|
+
console.error(` Unknown resource: ${sub}. Try: mcps, activity, approvals, secrets\n`);
|
|
525
519
|
process.exit(1);
|
|
526
520
|
|
|
527
521
|
// ── Status ────────────────────────────────────────────────────
|
package/package.json
CHANGED
package/src/mcps.js
CHANGED
|
@@ -49,18 +49,17 @@ export async function runMcps([sub, ...args], flags) {
|
|
|
49
49
|
if (!mcps.length) { console.log('\n No MCP connections yet.\n'); return; }
|
|
50
50
|
console.log();
|
|
51
51
|
table(
|
|
52
|
-
['Name', 'Prefix', 'Status', 'Last Seen', '
|
|
52
|
+
['Name', 'Prefix', 'Status', 'Last Seen', 'Default Action', 'Me'],
|
|
53
53
|
mcps.map(m => [
|
|
54
54
|
m.name,
|
|
55
55
|
m.token_prefix,
|
|
56
56
|
m.connected ? '● connected' : '○ offline',
|
|
57
57
|
m.last_seen,
|
|
58
|
-
m.policies_assigned,
|
|
59
58
|
m.default_action,
|
|
60
59
|
m.is_me ? '← you' : '',
|
|
61
60
|
]),
|
|
62
61
|
);
|
|
63
|
-
console.log(
|
|
62
|
+
console.log();
|
|
64
63
|
break;
|
|
65
64
|
}
|
|
66
65
|
|
package/src/simulate.js
CHANGED
|
@@ -47,7 +47,7 @@ const HELP = {
|
|
|
47
47
|
|
|
48
48
|
Simulates a message evaluation (/evaluate/email) - the checkpoint an agent
|
|
49
49
|
calls before sending on any channel: email, WhatsApp, Telegram, Slack,
|
|
50
|
-
Teams, Discord, SMS.
|
|
50
|
+
Teams, Discord, SMS. Login required.
|
|
51
51
|
|
|
52
52
|
Required:
|
|
53
53
|
--recipient <address> Who it's going to (address, phone, handle, or channel name)
|
|
@@ -65,8 +65,7 @@ const HELP = {
|
|
|
65
65
|
`,
|
|
66
66
|
signin: ` troxy signin --site <domain> [--type login|signup]
|
|
67
67
|
|
|
68
|
-
Simulates a login/signup evaluation (/evaluate/login).
|
|
69
|
-
Access & privacy policies. Login required.
|
|
68
|
+
Simulates a login/signup evaluation (/evaluate/login). Login required.
|
|
70
69
|
|
|
71
70
|
Required:
|
|
72
71
|
--site <domain> Site the agent is signing into (e.g. "coinbase.com")
|
|
@@ -82,7 +81,7 @@ const HELP = {
|
|
|
82
81
|
|
|
83
82
|
Simulates a consequential-action evaluation (/evaluate/action) - deletes,
|
|
84
83
|
drops, overwrites, force-pushes, grants, exports, and other actions with
|
|
85
|
-
real consequences.
|
|
84
|
+
real consequences. Login required.
|
|
86
85
|
|
|
87
86
|
Required:
|
|
88
87
|
--verb <verb> delete, drop, destroy, overwrite, force_push, share,
|
|
@@ -104,8 +103,7 @@ const HELP = {
|
|
|
104
103
|
'model-call': ` troxy model-call --model <id> --provider <name> [options]
|
|
105
104
|
|
|
106
105
|
Simulates a model-usage evaluation (/evaluate/model) - what an agent calls
|
|
107
|
-
before starting a run on a given model.
|
|
108
|
-
policies. Login required.
|
|
106
|
+
before starting a run on a given model. Login required.
|
|
109
107
|
|
|
110
108
|
Required:
|
|
111
109
|
--model <id> Model id, e.g. claude-opus-5
|
|
@@ -125,7 +123,7 @@ const HELP = {
|
|
|
125
123
|
Simulates a sensitive-data evaluation (/evaluate/secrets) - the checkpoint
|
|
126
124
|
an agent calls before sending, writing, or publishing content that might
|
|
127
125
|
contain a secret. Content is scanned server-side; you don't pre-classify it.
|
|
128
|
-
|
|
126
|
+
Login required.
|
|
129
127
|
|
|
130
128
|
Required:
|
|
131
129
|
--content <text> The text/code/data about to be sent or written
|