multicorn-shield 1.1.0 → 1.3.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/CHANGELOG.md +29 -0
- package/dist/multicorn-proxy.js +2723 -2430
- package/dist/multicorn-shield.js +2677 -2383
- package/dist/openclaw-hook/handler.js +3 -3
- package/dist/openclaw-plugin/multicorn-shield.js +3 -3
- package/dist/shield-extension.js +32 -37
- package/package.json +2 -1
- package/plugins/cline/hooks/scripts/shared.cjs +49 -12
- package/plugins/gemini-cli/hooks/scripts/shared.cjs +49 -12
- package/plugins/multicorn-shield/.claude-plugin/plugin.json +8 -0
- package/plugins/multicorn-shield/hooks/hooks.json +26 -0
- package/plugins/multicorn-shield/hooks/scripts/claude-code-tool-map.cjs +138 -0
- package/plugins/multicorn-shield/hooks/scripts/post-tool-use.cjs +253 -0
- package/plugins/multicorn-shield/hooks/scripts/pre-tool-use.cjs +642 -0
- package/plugins/multicorn-shield/skills/shield-governance/SKILL.md +24 -0
- package/plugins/windsurf/hooks/scripts/post-action.cjs +60 -12
- package/plugins/windsurf/hooks/scripts/pre-action.cjs +60 -12
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,35 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## Release checklist
|
|
9
|
+
|
|
10
|
+
- Bump `version` in `package.json` before publishing to npm.
|
|
11
|
+
|
|
12
|
+
## [1.2.0] - 2026-05-06
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- Agents now remember which project directory they were set up in - running `init` from different repos creates separate agents on the same platform (e.g. one Cursor agent per project)
|
|
17
|
+
- When a platform already has agents registered, the wizard offers to replace a specific one, add a new agent alongside them, or skip to another platform
|
|
18
|
+
- If the current directory already has an agent for the selected platform, the wizard detects it and offers a targeted replace prompt
|
|
19
|
+
- Default agent names now include the project folder (e.g. `multicorn-dashboard-cursor` instead of `cursor`)
|
|
20
|
+
- Extracted Claude Code tool-to-Shield mapping into dedicated module (`src/hooks/claude-code-tool-map.ts`), exported as CommonJS for hook scripts
|
|
21
|
+
- Updated plugin hook scripts to v1.2.0
|
|
22
|
+
- After API key validation, `init` may warn when the installed `multicorn-shield` is older than the version published on npm (fetch errors are ignored)
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
|
|
26
|
+
- Claude Code path in `init` writes PreToolUse and PostToolUse command hooks to `~/.claude/settings.json` (script paths resolve via the installed `multicorn-shield` package). Marketplace and `claude plugin install` steps were removed from the wizard
|
|
27
|
+
- "Next steps" after setup complete only lists how to start or restart each platform (no repeated paste-into-file instructions)
|
|
28
|
+
- Agent resolution now picks the most specific workspace match when multiple agents share a platform - falls back to the original behaviour for existing setups
|
|
29
|
+
- Native hook scripts (Cline, Claude Code, Windsurf, Gemini CLI) use workspace-aware agent resolution. Claude Code hooks use `PWD` when set, then longest matching `workspacePath`, then `defaultAgent`, then the first `claude-code` agent
|
|
30
|
+
- Replacing an agent no longer removes all agents for that platform - only the specific one being replaced
|
|
31
|
+
|
|
32
|
+
### Fixed
|
|
33
|
+
|
|
34
|
+
- Stripe/payment tools incorrectly classified as `execute` instead of `write` in tool mapper
|
|
35
|
+
- If the old Claude Code plugin is still installed, `init` prints a note that hooks now live in `settings.json` and suggests `claude plugin uninstall multicorn-shield@multicorn-shield`
|
|
36
|
+
|
|
8
37
|
## [1.1.0] - 2026-05-06
|
|
9
38
|
|
|
10
39
|
### Added
|