@solongate/proxy 0.82.44 → 0.82.45

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.
Files changed (2) hide show
  1. package/dist/index.js +22 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -16167,24 +16167,37 @@ function printHelp() {
16167
16167
  console.log(` ${c.dim}Details for a command: ${c.reset}${c.cyan}solongate <command> help${c.reset}${c.dim} \xB7 Dashboard: ${c.reset}${c.cyan}https://dashboard.solongate.com${c.reset}`);
16168
16168
  console.log("");
16169
16169
  }
16170
- var AGENT_ENV_MARKERS = [
16170
+ var AGENT_ENV_PREFIXES = [
16171
16171
  "CLAUDECODE",
16172
16172
  "CLAUDE_CODE",
16173
- "CLAUDE_CODE_ENTRYPOINT",
16173
+ "CLAUDE_AGENT",
16174
16174
  "ANTIGRAVITY",
16175
- "ANTIGRAVITY_CLI",
16175
+ "CORTEX_",
16176
+ "CASCADE_",
16177
+ "WINDSURF",
16178
+ "JETSKI",
16179
+ "EXA_",
16176
16180
  "GEMINI_CLI",
16177
- "CURSOR_TRACE_ID",
16178
- "AIDER_CHAT",
16181
+ "GEMINI_SESSION",
16182
+ "GEMINI_PROJECT",
16183
+ "GEMINI_CWD",
16184
+ "CURSOR",
16185
+ "AIDER",
16179
16186
  "OPENAI_CODEX",
16180
- "CODEX_SANDBOX",
16187
+ "CODEX_",
16181
16188
  "OPENCLAW",
16182
- "REPLIT_CLI",
16183
- "DEVIN_session"
16189
+ "REPLIT",
16190
+ "DEVIN"
16184
16191
  ];
16192
+ function agentMarker() {
16193
+ for (const k of Object.keys(process.env)) {
16194
+ if (AGENT_ENV_PREFIXES.some((p) => k === p || k.startsWith(p))) return k;
16195
+ }
16196
+ return null;
16197
+ }
16185
16198
  function assertHumanTerminal() {
16186
16199
  if (process.env["SOLONGATE_INTERNAL"] === "1") return;
16187
- const marker = AGENT_ENV_MARKERS.find((k) => process.env[k]);
16200
+ const marker = agentMarker();
16188
16201
  const isTty = Boolean(process.stdin.isTTY && process.stdout.isTTY);
16189
16202
  if (isTty && !marker) return;
16190
16203
  const w = (s) => void process.stderr.write(s + "\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.82.44",
3
+ "version": "0.82.45",
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": {