@solongate/proxy 0.82.22 → 0.82.23
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 -28
- package/dist/index.js +0 -30
- package/package.json +1 -1
package/dist/commands/index.js
CHANGED
|
@@ -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]
|
|
@@ -16008,8 +15980,6 @@ function printHelp() {
|
|
|
16008
15980
|
cmd("policy allow <id> --tool <p> [--command|--path|--url <val>]", "add an ALLOW rule");
|
|
16009
15981
|
cmd("policy revoke <id> <ruleId>", "remove a rule");
|
|
16010
15982
|
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
15983
|
cmd("policy active", "show the resolved active policy");
|
|
16014
15984
|
cmd("policy dry-run <id|file.json> [--mode denylist|whitelist]", "replay recent traffic against rules");
|
|
16015
15985
|
head("Rate limits");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solongate/proxy",
|
|
3
|
-
"version": "0.82.
|
|
3
|
+
"version": "0.82.23",
|
|
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": {
|