@solongate/proxy 0.30.1 → 0.30.2

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/index.js CHANGED
@@ -1,5 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  var __getOwnPropNames = Object.getOwnPropertyNames;
3
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
4
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
5
+ }) : x)(function(x) {
6
+ if (typeof require !== "undefined") return require.apply(this, arguments);
7
+ throw Error('Dynamic require of "' + x + '" is not supported');
8
+ });
3
9
  var __esm = (fn, res) => function __init() {
4
10
  return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
5
11
  };
@@ -6220,6 +6226,19 @@ var SolonGateProxy = class {
6220
6226
  if (this.server) {
6221
6227
  const clientVersion = this.server.getClientVersion();
6222
6228
  log2(`MCP clientInfo raw: ${JSON.stringify(clientVersion)}`);
6229
+ try {
6230
+ const fs = __require("fs");
6231
+ const path = __require("path");
6232
+ const debugDir = path.resolve(".solongate");
6233
+ fs.mkdirSync(debugDir, { recursive: true });
6234
+ fs.writeFileSync(path.join(debugDir, ".debug-clientinfo"), JSON.stringify({
6235
+ clientVersion,
6236
+ agentIdBefore: this.agentId,
6237
+ agentNameBefore: this.agentName,
6238
+ ts: Date.now()
6239
+ }, null, 2));
6240
+ } catch {
6241
+ }
6223
6242
  if (clientVersion?.name) {
6224
6243
  const normalized = this.normalizeAgentName(clientVersion.name);
6225
6244
  this.agentId = normalized.id;
package/dist/lib.js CHANGED
@@ -1,3 +1,10 @@
1
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
+ }) : x)(function(x) {
4
+ if (typeof require !== "undefined") return require.apply(this, arguments);
5
+ throw Error('Dynamic require of "' + x + '" is not supported');
6
+ });
7
+
1
8
  // ../core/dist/index.js
2
9
  import { z } from "zod";
3
10
  var __defProp = Object.defineProperty;
@@ -4460,6 +4467,19 @@ var SolonGateProxy = class {
4460
4467
  if (this.server) {
4461
4468
  const clientVersion = this.server.getClientVersion();
4462
4469
  log2(`MCP clientInfo raw: ${JSON.stringify(clientVersion)}`);
4470
+ try {
4471
+ const fs = __require("fs");
4472
+ const path = __require("path");
4473
+ const debugDir = path.resolve(".solongate");
4474
+ fs.mkdirSync(debugDir, { recursive: true });
4475
+ fs.writeFileSync(path.join(debugDir, ".debug-clientinfo"), JSON.stringify({
4476
+ clientVersion,
4477
+ agentIdBefore: this.agentId,
4478
+ agentNameBefore: this.agentName,
4479
+ ts: Date.now()
4480
+ }, null, 2));
4481
+ } catch {
4482
+ }
4463
4483
  if (clientVersion?.name) {
4464
4484
  const normalized = this.normalizeAgentName(clientVersion.name);
4465
4485
  this.agentId = normalized.id;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.30.1",
3
+ "version": "0.30.2",
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": {