@solongate/proxy 0.1.16 → 0.1.17

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
@@ -278,6 +278,35 @@ async function main() {
278
278
  console.error(" \u2502 To undo: solongate-init --restore \u2502");
279
279
  console.error(" \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518");
280
280
  console.error("");
281
+ const envPath = resolve2(".env");
282
+ if (!existsSync2(envPath)) {
283
+ const envContent = `# SolonGate API Keys
284
+ # Get your keys from the dashboard: https://solongate.com
285
+ # IMPORTANT: Never commit this file to git!
286
+
287
+ # Live key \u2014 enables cloud policy sync + audit logging to dashboard
288
+ SOLONGATE_API_KEY=sg_live_your_key_here
289
+
290
+ # Test key \u2014 local-only, no cloud connection (for development)
291
+ # SOLONGATE_API_KEY=sg_test_your_key_here
292
+ `;
293
+ writeFileSync(envPath, envContent);
294
+ console.error(` Created .env with placeholder API keys`);
295
+ console.error(` \u2192 Edit .env and replace with your real keys from https://solongate.com`);
296
+ console.error("");
297
+ }
298
+ const gitignorePath = resolve2(".gitignore");
299
+ if (existsSync2(gitignorePath)) {
300
+ const gitignore = readFileSync2(gitignorePath, "utf-8");
301
+ if (!gitignore.includes(".env")) {
302
+ writeFileSync(gitignorePath, gitignore.trimEnd() + "\n.env\n.env.local\n");
303
+ console.error(` Added .env to .gitignore`);
304
+ }
305
+ } else {
306
+ writeFileSync(gitignorePath, ".env\n.env.local\nnode_modules/\n");
307
+ console.error(` Created .gitignore (with .env excluded)`);
308
+ }
309
+ console.error("");
281
310
  for (const name of toProtect) {
282
311
  console.error(` \u2713 ${name} \u2014 protected (${options.policy})`);
283
312
  }
package/dist/init.js CHANGED
@@ -280,6 +280,35 @@ async function main() {
280
280
  console.error(" \u2502 To undo: solongate-init --restore \u2502");
281
281
  console.error(" \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518");
282
282
  console.error("");
283
+ const envPath = resolve(".env");
284
+ if (!existsSync(envPath)) {
285
+ const envContent = `# SolonGate API Keys
286
+ # Get your keys from the dashboard: https://solongate.com
287
+ # IMPORTANT: Never commit this file to git!
288
+
289
+ # Live key \u2014 enables cloud policy sync + audit logging to dashboard
290
+ SOLONGATE_API_KEY=sg_live_your_key_here
291
+
292
+ # Test key \u2014 local-only, no cloud connection (for development)
293
+ # SOLONGATE_API_KEY=sg_test_your_key_here
294
+ `;
295
+ writeFileSync(envPath, envContent);
296
+ console.error(` Created .env with placeholder API keys`);
297
+ console.error(` \u2192 Edit .env and replace with your real keys from https://solongate.com`);
298
+ console.error("");
299
+ }
300
+ const gitignorePath = resolve(".gitignore");
301
+ if (existsSync(gitignorePath)) {
302
+ const gitignore = readFileSync(gitignorePath, "utf-8");
303
+ if (!gitignore.includes(".env")) {
304
+ writeFileSync(gitignorePath, gitignore.trimEnd() + "\n.env\n.env.local\n");
305
+ console.error(` Added .env to .gitignore`);
306
+ }
307
+ } else {
308
+ writeFileSync(gitignorePath, ".env\n.env.local\nnode_modules/\n");
309
+ console.error(` Created .gitignore (with .env excluded)`);
310
+ }
311
+ console.error("");
283
312
  for (const name of toProtect) {
284
313
  console.error(` \u2713 ${name} \u2014 protected (${options.policy})`);
285
314
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@solongate/proxy",
3
- "version": "0.1.16",
4
- "description": "MCP security proxy protect any MCP server with policies, input validation, rate limiting, and audit logging. Zero code changes required.",
3
+ "version": "0.1.17",
4
+ "description": "MCP security proxy \u00e2\u20ac\u201d protect any MCP server with policies, input validation, rate limiting, and audit logging. Zero code changes required.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "solongate-proxy": "./dist/index.js",