@solongate/proxy 0.82.25 → 0.82.27

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.
@@ -519,7 +519,7 @@ function flagBool(flags, name) {
519
519
  // src/commands/policy.ts
520
520
  var USAGE = usage("solongate policy", "manage cloud policies", [
521
521
  ["policy list", "list all policies"],
522
- ["policy show <id> [--version N]", "show one policy (rules, mode)"],
522
+ ["policy show <id>", "show one policy (rules, mode)"],
523
523
  ["policy rules <id>", "list a policy's rules"],
524
524
  ["policy allow <id> --tool <p> [--command|--path|--url <val>]", "append an ALLOW rule"],
525
525
  ["policy revoke <id> <ruleId>", "remove a rule"],
@@ -558,8 +558,8 @@ async function run(argv) {
558
558
  }
559
559
  case "show": {
560
560
  const id = positionals[1];
561
- if (!id) return err(" Usage: policy show <id> [--version N]"), 1;
562
- const p = await api.policies.get(id, flagNum(flags, "version"));
561
+ if (!id) return err(" Usage: policy show <id>"), 1;
562
+ const p = await api.policies.get(id);
563
563
  if (json) return printJson(p), 0;
564
564
  err("");
565
565
  err(` ${bold(p.name)} ${dim(`(${p.id})`)} v${p._version}`);
@@ -668,7 +668,7 @@ function printRules(rules) {
668
668
  r.effect === "ALLOW" ? green("ALLOW") : decisionColor("DENY"),
669
669
  String(r.priority),
670
670
  cyan(truncate(r.toolPattern, 24)),
671
- dim(truncate(r.id, 22)),
671
+ dim(r.id),
672
672
  truncate(r.description || "-", 40)
673
673
  ])
674
674
  );
package/dist/index.js CHANGED
@@ -11474,8 +11474,8 @@ async function run(argv) {
11474
11474
  }
11475
11475
  case "show": {
11476
11476
  const id = positionals[1];
11477
- if (!id) return err(" Usage: policy show <id> [--version N]"), 1;
11478
- const p = await api.policies.get(id, flagNum(flags, "version"));
11477
+ if (!id) return err(" Usage: policy show <id>"), 1;
11478
+ const p = await api.policies.get(id);
11479
11479
  if (json) return printJson(p), 0;
11480
11480
  err("");
11481
11481
  err(` ${bold(p.name)} ${dim(`(${p.id})`)} v${p._version}`);
@@ -11584,7 +11584,7 @@ function printRules(rules) {
11584
11584
  r.effect === "ALLOW" ? green("ALLOW") : decisionColor2("DENY"),
11585
11585
  String(r.priority),
11586
11586
  cyan(truncate3(r.toolPattern, 24)),
11587
- dim(truncate3(r.id, 22)),
11587
+ dim(r.id),
11588
11588
  truncate3(r.description || "-", 40)
11589
11589
  ])
11590
11590
  );
@@ -11606,7 +11606,7 @@ var init_policy = __esm({
11606
11606
  init_format();
11607
11607
  USAGE = usage("solongate policy", "manage cloud policies", [
11608
11608
  ["policy list", "list all policies"],
11609
- ["policy show <id> [--version N]", "show one policy (rules, mode)"],
11609
+ ["policy show <id>", "show one policy (rules, mode)"],
11610
11610
  ["policy rules <id>", "list a policy's rules"],
11611
11611
  ["policy allow <id> --tool <p> [--command|--path|--url <val>]", "append an ALLOW rule"],
11612
11612
  ["policy revoke <id> <ruleId>", "remove a rule"],
@@ -15977,13 +15977,14 @@ function printHelp() {
15977
15977
  console.log(` ${c.dim}Usage:${c.reset} ${c.cyan}solongate${c.reset} ${c.dim}[command]${c.reset} ${c.dim}(no command opens the dataroom: all of this in a terminal UI)${c.reset}`);
15978
15978
  head("Setup & status");
15979
15979
  cmd("solongate", "open the dataroom UI (login, policies, audit, settings)");
15980
- cmd("doctor [--json]", "health check: login, policy, guard, local logs");
15980
+ cmd("doctor", "health check: login, policy, guard, local logs");
15981
+ cmd("doctor --json", "the same health check as machine-readable JSON");
15981
15982
  cmd("logs-server start", "start the local audit-log service for the dashboard (background)");
15982
15983
  cmd("logs-server stop", "stop AND disable it (only this makes it stay down)");
15983
15984
  cmd("logs-server status", "show the local audit-log service status");
15984
15985
  head("Policies");
15985
15986
  cmd("policy list", "list all policies");
15986
- cmd("policy show <id> [--version N]", "show one policy (rules, mode)");
15987
+ cmd("policy show <id>", "show one policy (rules, mode)");
15987
15988
  cmd("policy rules <id>", "list a policy's rules");
15988
15989
  cmd("policy allow <id> --tool <p> [--command|--path|--url <val>]", "add an ALLOW rule");
15989
15990
  cmd("policy revoke <id> <ruleId>", "remove a rule");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.82.25",
3
+ "version": "0.82.27",
4
4
  "description": "AI tool security proxy: protect any AI tool server with customizable policies, path/command constraints, rate limiting, and audit logging. No code changes required.",
5
5
  "type": "module",
6
6
  "bin": {