@solongate/proxy 0.83.32 → 0.83.33

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.
@@ -692,7 +692,7 @@ var USAGE = usage("solongate policy", "manage cloud policies", [
692
692
  ["policy deny <id> [--command|--path|--url <val>]", "append a DENY rule"],
693
693
  ["policy revoke <id> <ruleId>", "remove a rule"],
694
694
  ["policy active", "show the resolved active policy"],
695
- ["policy activate <id> | --clear", "pin / unpin the active policy"],
695
+ ["policy activate <id> | --off", "pin the active policy, or enforce nothing"],
696
696
  ["policy dry-run <id|file.json> [--limit N] [--mode denylist|whitelist]", "replay recent traffic against rules"]
697
697
  ], "Add --json to any read command for machine-readable output.");
698
698
  async function run(argv) {
@@ -798,13 +798,15 @@ async function run(argv) {
798
798
  return 0;
799
799
  }
800
800
  case "activate": {
801
- if (flagBool(flags, "clear")) {
801
+ if (flagBool(flags, "off") || flagBool(flags, "clear")) {
802
802
  const res2 = await api.policies.setActive(null);
803
803
  if (json) return printJson(res2), 0;
804
- return err(green(" \u2713 Cleared active-policy pin.")), 0;
804
+ err(green(" \u2713 Deactivated - this project now enforces no policy."));
805
+ err(dim(" Pin one again with: solongate policy activate <id>"));
806
+ return 0;
805
807
  }
806
808
  const id = positionals[1];
807
- if (!id) return err(" Usage: policy activate <id> | policy activate --clear"), 1;
809
+ if (!id) return err(" Usage: policy activate <id> | policy activate --off"), 1;
808
810
  const res = await api.policies.setActive(id);
809
811
  if (json) return printJson(res), 0;
810
812
  err(green(` \u2713 Pinned active policy \u2192 ${res.active}`));
package/dist/index.js CHANGED
@@ -13092,13 +13092,15 @@ async function run2(argv) {
13092
13092
  return 0;
13093
13093
  }
13094
13094
  case "activate": {
13095
- if (flagBool(flags, "clear")) {
13095
+ if (flagBool(flags, "off") || flagBool(flags, "clear")) {
13096
13096
  const res2 = await api.policies.setActive(null);
13097
13097
  if (json) return printJson(res2), 0;
13098
- return err(green(" \u2713 Cleared active-policy pin.")), 0;
13098
+ err(green(" \u2713 Deactivated - this project now enforces no policy."));
13099
+ err(dim(" Pin one again with: solongate policy activate <id>"));
13100
+ return 0;
13099
13101
  }
13100
13102
  const id = positionals[1];
13101
- if (!id) return err(" Usage: policy activate <id> | policy activate --clear"), 1;
13103
+ if (!id) return err(" Usage: policy activate <id> | policy activate --off"), 1;
13102
13104
  const res = await api.policies.setActive(id);
13103
13105
  if (json) return printJson(res), 0;
13104
13106
  err(green(` \u2713 Pinned active policy \u2192 ${res.active}`));
@@ -13167,7 +13169,7 @@ var init_policy = __esm({
13167
13169
  ["policy deny <id> [--command|--path|--url <val>]", "append a DENY rule"],
13168
13170
  ["policy revoke <id> <ruleId>", "remove a rule"],
13169
13171
  ["policy active", "show the resolved active policy"],
13170
- ["policy activate <id> | --clear", "pin / unpin the active policy"],
13172
+ ["policy activate <id> | --off", "pin the active policy, or enforce nothing"],
13171
13173
  ["policy dry-run <id|file.json> [--limit N] [--mode denylist|whitelist]", "replay recent traffic against rules"]
13172
13174
  ], "Add --json to any read command for machine-readable output.");
13173
13175
  }
@@ -17515,7 +17517,7 @@ function printHelp() {
17515
17517
  cmd("policy allow <id> [--command|--path|--url <val>]", "add an ALLOW rule");
17516
17518
  cmd("policy deny <id> [--command|--path|--url <val>]", "add a DENY rule");
17517
17519
  cmd("policy revoke <id> <ruleId>", "remove a rule");
17518
- cmd("policy activate <id> | --clear", "pin / unpin the active policy");
17520
+ cmd("policy activate <id> | --off", "pin the active policy, or enforce nothing");
17519
17521
  cmd("policy active", "show the resolved active policy");
17520
17522
  cmd("policy dry-run <id|file.json> [--mode denylist|whitelist]", "replay recent traffic against rules");
17521
17523
  head("Rate limits");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.83.32",
3
+ "version": "0.83.33",
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": {
@@ -61,12 +61,12 @@
61
61
  "node": ">=20.0.0"
62
62
  },
63
63
  "optionalDependencies": {
64
- "@solongate/guard-linux-x64": "0.83.32",
65
- "@solongate/guard-linux-arm64": "0.83.32",
66
- "@solongate/guard-darwin-x64": "0.83.32",
67
- "@solongate/guard-darwin-arm64": "0.83.32",
68
- "@solongate/guard-win32-x64": "0.83.32",
69
- "@solongate/guard-win32-arm64": "0.83.32"
64
+ "@solongate/guard-linux-x64": "0.83.33",
65
+ "@solongate/guard-linux-arm64": "0.83.33",
66
+ "@solongate/guard-darwin-x64": "0.83.33",
67
+ "@solongate/guard-darwin-arm64": "0.83.33",
68
+ "@solongate/guard-win32-x64": "0.83.33",
69
+ "@solongate/guard-win32-arm64": "0.83.33"
70
70
  },
71
71
  "dependencies": {
72
72
  "@modelcontextprotocol/sdk": "^1.26.0",