@solongate/proxy 0.82.36 → 0.82.37
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/dist/commands/index.js +0 -9
- package/dist/index.js +0 -10
- package/package.json +1 -1
package/dist/commands/index.js
CHANGED
|
@@ -524,7 +524,6 @@ function flagBool(flags, name) {
|
|
|
524
524
|
var USAGE = usage("solongate policy", "manage cloud policies", [
|
|
525
525
|
["policy list", "list all policies"],
|
|
526
526
|
["policy show <id>", "show one policy (rules, mode)"],
|
|
527
|
-
["policy rules <id>", "list a policy's rules"],
|
|
528
527
|
["policy allow <id> --tool <p> [--command|--path|--url <val>]", "append an ALLOW rule"],
|
|
529
528
|
["policy revoke <id> <ruleId>", "remove a rule"],
|
|
530
529
|
["policy active", "show the resolved active policy"],
|
|
@@ -573,14 +572,6 @@ async function run(argv) {
|
|
|
573
572
|
printRules(p.rules);
|
|
574
573
|
return 0;
|
|
575
574
|
}
|
|
576
|
-
case "rules": {
|
|
577
|
-
const id = positionals[1];
|
|
578
|
-
if (!id) return err(" Usage: policy rules <id>"), 1;
|
|
579
|
-
const p = await api.policies.get(id);
|
|
580
|
-
if (json) return printJson(p.rules), 0;
|
|
581
|
-
printRules(p.rules);
|
|
582
|
-
return 0;
|
|
583
|
-
}
|
|
584
575
|
case "allow": {
|
|
585
576
|
const id = positionals[1];
|
|
586
577
|
if (!id) return err(" Usage: policy allow <id> --tool <pattern> [--command|--path|--url <val>]"), 1;
|
package/dist/index.js
CHANGED
|
@@ -11752,14 +11752,6 @@ async function run(argv) {
|
|
|
11752
11752
|
printRules(p.rules);
|
|
11753
11753
|
return 0;
|
|
11754
11754
|
}
|
|
11755
|
-
case "rules": {
|
|
11756
|
-
const id = positionals[1];
|
|
11757
|
-
if (!id) return err(" Usage: policy rules <id>"), 1;
|
|
11758
|
-
const p = await api.policies.get(id);
|
|
11759
|
-
if (json) return printJson(p.rules), 0;
|
|
11760
|
-
printRules(p.rules);
|
|
11761
|
-
return 0;
|
|
11762
|
-
}
|
|
11763
11755
|
case "allow": {
|
|
11764
11756
|
const id = positionals[1];
|
|
11765
11757
|
if (!id) return err(" Usage: policy allow <id> --tool <pattern> [--command|--path|--url <val>]"), 1;
|
|
@@ -11874,7 +11866,6 @@ var init_policy = __esm({
|
|
|
11874
11866
|
USAGE = usage("solongate policy", "manage cloud policies", [
|
|
11875
11867
|
["policy list", "list all policies"],
|
|
11876
11868
|
["policy show <id>", "show one policy (rules, mode)"],
|
|
11877
|
-
["policy rules <id>", "list a policy's rules"],
|
|
11878
11869
|
["policy allow <id> --tool <p> [--command|--path|--url <val>]", "append an ALLOW rule"],
|
|
11879
11870
|
["policy revoke <id> <ruleId>", "remove a rule"],
|
|
11880
11871
|
["policy active", "show the resolved active policy"],
|
|
@@ -16252,7 +16243,6 @@ function printHelp() {
|
|
|
16252
16243
|
head("Policies");
|
|
16253
16244
|
cmd("policy list", "list all policies");
|
|
16254
16245
|
cmd("policy show <id>", "show one policy (rules, mode)");
|
|
16255
|
-
cmd("policy rules <id>", "list a policy's rules");
|
|
16256
16246
|
cmd("policy allow <id> --tool <p> [--command|--path|--url <val>]", "add an ALLOW rule");
|
|
16257
16247
|
cmd("policy revoke <id> <ruleId>", "remove a rule");
|
|
16258
16248
|
cmd("policy activate <id> | --clear", "pin / unpin the active policy");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solongate/proxy",
|
|
3
|
-
"version": "0.82.
|
|
3
|
+
"version": "0.82.37",
|
|
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": {
|