@solongate/proxy 0.45.0 → 0.46.0
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/hooks/guard.bundled.mjs +2 -2
- package/hooks/guard.mjs +2 -2
- package/package.json +1 -1
package/hooks/guard.bundled.mjs
CHANGED
|
@@ -6967,7 +6967,7 @@ async function getOpaWasmBytes(policy) {
|
|
|
6967
6967
|
try {
|
|
6968
6968
|
const res = await fetch(
|
|
6969
6969
|
API_URL + "/api/v1/policies/" + encodeURIComponent(policy.id) + "/wasm",
|
|
6970
|
-
{ headers: AUTH_HEADERS, signal: AbortSignal.timeout(
|
|
6970
|
+
{ headers: AUTH_HEADERS, signal: AbortSignal.timeout(8e3) }
|
|
6971
6971
|
);
|
|
6972
6972
|
if (!res.ok)
|
|
6973
6973
|
return stale;
|
|
@@ -7159,7 +7159,7 @@ process.stdin.on("end", async () => {
|
|
|
7159
7159
|
}
|
|
7160
7160
|
if (!dashboardPolicy) {
|
|
7161
7161
|
try {
|
|
7162
|
-
const res = await fetch(API_URL + "/api/v1/policies/active?agent_id=" + encodeURIComponent(AGENT_ID || ""), { headers: AUTH_HEADERS, signal: AbortSignal.timeout(
|
|
7162
|
+
const res = await fetch(API_URL + "/api/v1/policies/active?agent_id=" + encodeURIComponent(AGENT_ID || ""), { headers: AUTH_HEADERS, signal: AbortSignal.timeout(8e3) });
|
|
7163
7163
|
if (res.ok) {
|
|
7164
7164
|
const body = await res.json();
|
|
7165
7165
|
if (body && body.policy) {
|
package/hooks/guard.mjs
CHANGED
|
@@ -731,7 +731,7 @@ async function getOpaWasmBytes(policy) {
|
|
|
731
731
|
try {
|
|
732
732
|
const res = await fetch(
|
|
733
733
|
API_URL + '/api/v1/policies/' + encodeURIComponent(policy.id) + '/wasm',
|
|
734
|
-
{ headers: AUTH_HEADERS, signal: AbortSignal.timeout(
|
|
734
|
+
{ headers: AUTH_HEADERS, signal: AbortSignal.timeout(8000) },
|
|
735
735
|
);
|
|
736
736
|
if (!res.ok) return stale; // API has no compiled WASM right now → last known good
|
|
737
737
|
const bundle = Buffer.from(await res.arrayBuffer());
|
|
@@ -1000,7 +1000,7 @@ process.stdin.on('end', async () => {
|
|
|
1000
1000
|
// Refresh from API if cache expired
|
|
1001
1001
|
if (!dashboardPolicy) {
|
|
1002
1002
|
try {
|
|
1003
|
-
const res = await fetch(API_URL + '/api/v1/policies/active?agent_id=' + encodeURIComponent(AGENT_ID || ''), { headers: AUTH_HEADERS, signal: AbortSignal.timeout(
|
|
1003
|
+
const res = await fetch(API_URL + '/api/v1/policies/active?agent_id=' + encodeURIComponent(AGENT_ID || ''), { headers: AUTH_HEADERS, signal: AbortSignal.timeout(8000) });
|
|
1004
1004
|
if (res.ok) {
|
|
1005
1005
|
const body = await res.json();
|
|
1006
1006
|
if (body && body.policy) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solongate/proxy",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.46.0",
|
|
4
4
|
"description": "AI tool security proxy — protect any AI tool server with customizable policies, path/command constraints, rate limiting, and audit logging. Zero code changes required.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|