multicorn-shield 0.13.0 → 1.1.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.
@@ -696,7 +696,7 @@ async function beforeToolCall(event, ctx) {
696
696
  );
697
697
  if (config.apiKey.length === 0) {
698
698
  pluginLogger?.warn(
699
- "Multicorn Shield: No API key found. Run 'npx multicorn-proxy init' or set MULTICORN_API_KEY."
699
+ "Multicorn Shield: No API key found. Run 'npx multicorn-shield init' or set MULTICORN_API_KEY."
700
700
  );
701
701
  console.error("[SHIELD] DECISION: allow (no API key)");
702
702
  return void 0;
@@ -886,7 +886,7 @@ var plugin = {
886
886
  api.logger.info("Multicorn Shield plugin registered.");
887
887
  if (config.apiKey.length === 0) {
888
888
  api.logger.error(
889
- "Multicorn Shield: No API key found. Run 'npx multicorn-proxy init' or set MULTICORN_API_KEY."
889
+ "Multicorn Shield: No API key found. Run 'npx multicorn-shield init' or set MULTICORN_API_KEY."
890
890
  );
891
891
  } else {
892
892
  api.logger.info(`Multicorn Shield connecting to ${config.baseUrl}`);
package/dist/proxy.cjs CHANGED
@@ -76,7 +76,7 @@ function buildServiceUnreachableResponse(id, dashboardUrl) {
76
76
  };
77
77
  }
78
78
  function buildAuthErrorResponse(id) {
79
- const message = "Action blocked: Shield API key is invalid or has been revoked. Run npx multicorn-proxy init to reconfigure.";
79
+ const message = "Action blocked: Shield API key is invalid or has been revoked. Run npx multicorn-shield init to reconfigure.";
80
80
  return {
81
81
  jsonrpc: "2.0",
82
82
  id,
package/dist/proxy.js CHANGED
@@ -74,7 +74,7 @@ function buildServiceUnreachableResponse(id, dashboardUrl) {
74
74
  };
75
75
  }
76
76
  function buildAuthErrorResponse(id) {
77
- const message = "Action blocked: Shield API key is invalid or has been revoked. Run npx multicorn-proxy init to reconfigure.";
77
+ const message = "Action blocked: Shield API key is invalid or has been revoked. Run npx multicorn-shield init to reconfigure.";
78
78
  return {
79
79
  jsonrpc: "2.0",
80
80
  id,
@@ -22259,6 +22259,69 @@ function getClaudeDesktopConfigPath() {
22259
22259
  );
22260
22260
  }
22261
22261
  }
22262
+ var INIT_WIZARD_PLATFORM_REGISTRY = [
22263
+ { slug: "openclaw", displayName: "OpenClaw", section: "native", detectable: true },
22264
+ { slug: "claude-code", displayName: "Claude Code", section: "native", detectable: true },
22265
+ { slug: "windsurf", displayName: "Windsurf", section: "native", detectable: true },
22266
+ { slug: "cline", displayName: "Cline", section: "native", detectable: false },
22267
+ { slug: "gemini-cli", displayName: "Gemini CLI", section: "native", detectable: false },
22268
+ {
22269
+ slug: "cursor",
22270
+ displayName: "Cursor",
22271
+ section: "hosted",
22272
+ prereqUrl: "https://www.cursor.com/downloads",
22273
+ detectable: true
22274
+ },
22275
+ {
22276
+ slug: "claude-desktop",
22277
+ displayName: "Claude Desktop",
22278
+ section: "hosted",
22279
+ prereqUrl: "https://claude.ai/download",
22280
+ detectable: false
22281
+ },
22282
+ {
22283
+ slug: "github-copilot",
22284
+ displayName: "GitHub Copilot",
22285
+ section: "hosted",
22286
+ prereqUrl: "https://docs.github.com/en/copilot/get-started",
22287
+ detectable: false
22288
+ },
22289
+ {
22290
+ slug: "kilo-code",
22291
+ displayName: "Kilo Code",
22292
+ section: "hosted",
22293
+ prereqUrl: "https://kilocode.ai/docs/getting-started",
22294
+ detectable: false
22295
+ },
22296
+ {
22297
+ slug: "continue-dev",
22298
+ displayName: "Continue",
22299
+ section: "hosted",
22300
+ prereqUrl: "https://docs.continue.dev/ide-extensions/install",
22301
+ detectable: false
22302
+ },
22303
+ {
22304
+ slug: "goose",
22305
+ displayName: "Goose",
22306
+ section: "hosted",
22307
+ prereqUrl: "https://goose-docs.ai/docs/quickstart/",
22308
+ detectable: false
22309
+ },
22310
+ { slug: "other-mcp", displayName: "Local MCP / Other", section: "hosted", detectable: false }
22311
+ ];
22312
+ (() => {
22313
+ const itemsFor = (section) => INIT_WIZARD_PLATFORM_REGISTRY.filter((e) => e.section === section).map((e) => ({
22314
+ platform: e.slug,
22315
+ label: e.displayName
22316
+ }));
22317
+ return [
22318
+ { title: "Recommended (native plugin)", items: itemsFor("native") },
22319
+ { title: "Hosted proxy (MCP only)", items: itemsFor("hosted") }
22320
+ ];
22321
+ })();
22322
+ Object.fromEntries(
22323
+ INIT_WIZARD_PLATFORM_REGISTRY.map((e, i) => [i + 1, e.slug])
22324
+ );
22262
22325
 
22263
22326
  // src/extension/config-reader.ts
22264
22327
  var EXTENSION_BACKUP_FILENAME = "extension-backup.json";
@@ -22359,7 +22422,7 @@ async function writeExtensionBackup(claudeDesktopConfigPath, mcpServers) {
22359
22422
 
22360
22423
  // package.json
22361
22424
  var package_default = {
22362
- version: "0.13.0"};
22425
+ version: "1.1.0"};
22363
22426
 
22364
22427
  // src/package-meta.ts
22365
22428
  var PACKAGE_VERSION = package_default.version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multicorn-shield",
3
- "version": "0.13.0",
3
+ "version": "1.1.0",
4
4
  "description": "The control layer for AI agents: permissions, consent, spending limits, and audit logging.",
5
5
  "license": "MIT",
6
6
  "author": "Multicorn AI Pty Ltd",
@@ -31,8 +31,8 @@
31
31
  }
32
32
  },
33
33
  "bin": {
34
- "multicorn-proxy": "./dist/multicorn-proxy.js",
35
- "multicorn-shield": "./dist/multicorn-shield.js"
34
+ "multicorn-shield": "./dist/multicorn-shield.js",
35
+ "multicorn-proxy": "./dist/multicorn-proxy.js"
36
36
  },
37
37
  "files": [
38
38
  "dist",
@@ -13,7 +13,7 @@ Native Shield integration for [Windsurf](https://windsurf.com) using [Cascade Ho
13
13
  2. Run the wizard and pick **Windsurf**, then **Native plugin (recommended)**.
14
14
 
15
15
  ```bash
16
- npx multicorn-proxy init
16
+ npx multicorn-shield init
17
17
  ```
18
18
 
19
19
  3. Restart Windsurf (quit fully, then reopen) so hooks load.
@@ -43,7 +43,7 @@ Hooks run shell commands with **your user permissions**. They can read the JSON
43
43
 
44
44
  ## Hosted proxy alternative
45
45
 
46
- If you only need MCP traffic governed, use **Hosted proxy** in `npx multicorn-proxy init` and paste the proxy URL into `~/.codeium/windsurf/mcp_config.json` instead.
46
+ If you only need MCP traffic governed, use **Hosted proxy** in `npx multicorn-shield init` and paste the proxy URL into `~/.codeium/windsurf/mcp_config.json` instead.
47
47
 
48
48
  ## Windows
49
49