@solongate/proxy 0.82.22 → 0.82.24

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.
@@ -503,8 +503,6 @@ var USAGE = `${bold("solongate policy")} \u2014 manage cloud policies
503
503
  policy allow <id> --tool <p> [--command|--path|--url <val>]
504
504
  Append an ALLOW rule
505
505
  policy revoke <id> <ruleId> Remove a rule
506
- policy versions <id> List version history
507
- policy rollback <id> <version> Roll back to a version
508
506
  policy active Show the resolved active policy
509
507
  policy activate <id> | --clear Pin / unpin the active policy
510
508
  policy dry-run <id|file.json> [--limit N] [--mode denylist|whitelist]
@@ -589,32 +587,6 @@ async function run(argv) {
589
587
  err(green(` \u2713 Revoked ${ruleId}`) + dim(` \u2192 v${res.policy_version}`));
590
588
  return 0;
591
589
  }
592
- case "versions": {
593
- const id = positionals[1];
594
- if (!id) return err(" Usage: policy versions <id>"), 1;
595
- const { versions: versions2 } = await api.policies.versions(id, { limit: flagNum(flags, "limit") });
596
- if (json) return printJson(versions2), 0;
597
- table(
598
- ["VER", "RULES", "REASON", "BY", "WHEN"],
599
- versions2.map((v) => [
600
- `v${v.version}`,
601
- String(v.rules_count),
602
- truncate(v.reason || "\u2014", 40),
603
- dim(truncate(v.created_by || "\u2014", 18)),
604
- dim(v.created_at)
605
- ])
606
- );
607
- return 0;
608
- }
609
- case "rollback": {
610
- const id = positionals[1];
611
- const version = Number(positionals[2]);
612
- if (!id || !Number.isFinite(version)) return err(" Usage: policy rollback <id> <version>"), 1;
613
- const res = await api.policies.rollback(id, version);
614
- if (json) return printJson(res), 0;
615
- err(green(` \u2713 Rolled back ${res.policy_id} from v${res.rolled_back_from} \u2192 v${res.version}`));
616
- return 0;
617
- }
618
590
  case "active": {
619
591
  const a = await api.policies.active();
620
592
  if (json) return printJson(a), 0;
package/dist/index.js CHANGED
@@ -11499,32 +11499,6 @@ async function run(argv) {
11499
11499
  err(green(` \u2713 Revoked ${ruleId}`) + dim(` \u2192 v${res.policy_version}`));
11500
11500
  return 0;
11501
11501
  }
11502
- case "versions": {
11503
- const id = positionals[1];
11504
- if (!id) return err(" Usage: policy versions <id>"), 1;
11505
- const { versions: versions2 } = await api.policies.versions(id, { limit: flagNum(flags, "limit") });
11506
- if (json) return printJson(versions2), 0;
11507
- table(
11508
- ["VER", "RULES", "REASON", "BY", "WHEN"],
11509
- versions2.map((v) => [
11510
- `v${v.version}`,
11511
- String(v.rules_count),
11512
- truncate3(v.reason || "\u2014", 40),
11513
- dim(truncate3(v.created_by || "\u2014", 18)),
11514
- dim(v.created_at)
11515
- ])
11516
- );
11517
- return 0;
11518
- }
11519
- case "rollback": {
11520
- const id = positionals[1];
11521
- const version = Number(positionals[2]);
11522
- if (!id || !Number.isFinite(version)) return err(" Usage: policy rollback <id> <version>"), 1;
11523
- const res = await api.policies.rollback(id, version);
11524
- if (json) return printJson(res), 0;
11525
- err(green(` \u2713 Rolled back ${res.policy_id} from v${res.rolled_back_from} \u2192 v${res.version}`));
11526
- return 0;
11527
- }
11528
11502
  case "active": {
11529
11503
  const a = await api.policies.active();
11530
11504
  if (json) return printJson(a), 0;
@@ -11616,8 +11590,6 @@ var init_policy = __esm({
11616
11590
  policy allow <id> --tool <p> [--command|--path|--url <val>]
11617
11591
  Append an ALLOW rule
11618
11592
  policy revoke <id> <ruleId> Remove a rule
11619
- policy versions <id> List version history
11620
- policy rollback <id> <version> Roll back to a version
11621
11593
  policy active Show the resolved active policy
11622
11594
  policy activate <id> | --clear Pin / unpin the active policy
11623
11595
  policy dry-run <id|file.json> [--limit N] [--mode denylist|whitelist]
@@ -16000,7 +15972,9 @@ function printHelp() {
16000
15972
  head("Setup & status");
16001
15973
  cmd("solongate", "open the dataroom UI (login, policies, audit, settings)");
16002
15974
  cmd("doctor [--json]", "health check: login, policy, guard, local logs");
16003
- cmd("logs-server", "serve local audit logs to the dashboard");
15975
+ cmd("logs-server start", "start the local audit-log service for the dashboard (background)");
15976
+ cmd("logs-server stop", "stop AND disable it (only this makes it stay down)");
15977
+ cmd("logs-server status", "show the local audit-log service status");
16004
15978
  head("Policies");
16005
15979
  cmd("policy list", "list all policies");
16006
15980
  cmd("policy show <id> [--version N]", "show one policy (rules, mode)");
@@ -16008,8 +15982,6 @@ function printHelp() {
16008
15982
  cmd("policy allow <id> --tool <p> [--command|--path|--url <val>]", "add an ALLOW rule");
16009
15983
  cmd("policy revoke <id> <ruleId>", "remove a rule");
16010
15984
  cmd("policy activate <id> | --clear", "pin / unpin the active policy");
16011
- cmd("policy rollback <id> <version>", "roll back to a version");
16012
- cmd("policy versions <id>", "version history");
16013
15985
  cmd("policy active", "show the resolved active policy");
16014
15986
  cmd("policy dry-run <id|file.json> [--mode denylist|whitelist]", "replay recent traffic against rules");
16015
15987
  head("Rate limits");
@@ -16039,6 +16011,7 @@ function printHelp() {
16039
16011
  cmd("webhooks add --url <https://\u2026> [--events denials|allowed|all]", "event webhook");
16040
16012
  cmd("webhooks remove <id>");
16041
16013
  head("Policy sync");
16014
+ cmd("list [--policy-id <ID>]", "list cloud policies (or show one)");
16042
16015
  cmd("pull --policy-id <ID> [--file f]", "pull a cloud policy to a local file");
16043
16016
  cmd("push --policy-id <ID> [--file f]", "push a local policy file to the cloud");
16044
16017
  console.log("");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.82.22",
3
+ "version": "0.82.24",
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": {