@rohan-protocol/webmcp 0.6.1 → 0.7.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.
Files changed (2) hide show
  1. package/README.md +14 -40
  2. package/package.json +48 -47
package/README.md CHANGED
@@ -1,51 +1,25 @@
1
- @rohan-protocol/webmcp
1
+ # @rohan-protocol/webmcp (v0.7.0)
2
2
 
3
- ![Bild](https://img.shields.io/badge/NPM-v0.6.0-blue?style=for-the-badge)
4
- ![Bild](https://img.shields.io/badge/License-MIT-yellow.svg?style=for-the-badge)
3
+ Browser-native WebMCP Shield with Zero-Width Unicode Sanitization (V-07) and in-memory cryptographic commitment generation.
5
4
 
6
- Browser-native WebMCP shield with client-side memory sanitization.
7
- Protects front-end copilots and React applications from zero-width Unicode injection attacks and leaks.
8
- Features
5
+ ---
9
6
 
10
- Zero-Width Unicode Defense (V-07): Sanitizes inputs against invisible Unicode character smuggling [\u200B-\u200D\uFEFF].
11
-
12
- In-Memory Witness Zeroization (V-02): Scrubs private web form fields and prompt inputs from browser memory.
13
-
14
- React Hooks & Provider: 3-line drop-in integration for Next.js, React, and browser extensions.
15
-
16
- Installation
17
- code Bash
7
+ ## 📦 Installation
18
8
 
9
+ ```bash
19
10
  npm install @rohan-protocol/webmcp
11
+ ```
20
12
 
21
- Quickstart
22
- code Tsx
23
-
24
- import { RohanWebMcpProvider, useRohanWebMcp } from '@rohan-protocol/webmcp';
25
-
26
- export default function App() {
27
- return (
28
- <RohanWebMcpProvider apiKey={process.env.NEXT_PUBLIC_ROHAN_API_KEY}>
29
- <YourAgentInterface />
30
- </RohanWebMcpProvider>
31
- );
32
- }
13
+ ---
33
14
 
34
- function YourAgentInterface() {
35
- const { shieldAndSubmit, isProving } = useRohanWebMcp();
15
+ ## 🌟 Browser-Native Features
36
16
 
37
- const handleAction = async () => {
38
- const receipt = await shieldAndSubmit({
39
- agentId: "did:midnight:web-agent",
40
- intent: "submit_confidential_web_intent",
41
- formData: { email: "partner@example.com", termsAccepted: true }
42
- });
43
- console.log("Confirmed on Midnight:", receipt.txHash);
44
- };
17
+ * **Zero-Width Character Sanitizer (V-07):** Strips invisible Unicode steganography and prompt-injection vectors from DOM inputs before processing.
18
+ * **SubtleCrypto Native Hashing:** Derives 32-byte SHA-256 intent commitments directly via `window.crypto.subtle` in client RAM.
19
+ * **Safe In-Memory Zeroize:** Clears sensitive witness buffers on client execution completion.
45
20
 
46
- return <button onClick={handleAction} disabled={isProving}>Execute ZK Handshake</button>;
47
- }
21
+ ---
48
22
 
49
- License
23
+ ## 📜 License
50
24
 
51
- MIT © Rohan Protocol.
25
+ Apache-2.0
package/package.json CHANGED
@@ -1,47 +1,48 @@
1
- {
2
- "name": "@rohan-protocol/webmcp",
3
- "version": "0.6.1",
4
- "description": "Browser-Native Zero-Knowledge Shield for WebMCP and AI Web Agents",
5
- "type": "module",
6
- "keywords": [
7
- "webmcp",
8
- "mcp",
9
- "model-context-protocol",
10
- "browser-mcp",
11
- "zero-knowledge",
12
- "midnight-network",
13
- "zk-handshake",
14
- "semantic-firewall",
15
- "chrome-ai"
16
- ],
17
- "main": "./dist/index.js",
18
- "types": "./dist/index.d.ts",
19
- "exports": {
20
- ".": {
21
- "types": "./dist/index.d.ts",
22
- "import": "./dist/index.js"
23
- }
24
- },
25
- "files": [
26
- "dist",
27
- "README.md"
28
- ],
29
- "scripts": {
30
- "build": "tsc",
31
- "clean": "rm -rf dist"
32
- },
33
- "peerDependencies": {
34
- "react": ">=18.0.0",
35
- "react-dom": ">=18.0.0"
36
- },
37
- "dependencies": {
38
- "@rohan-protocol/sdk": "^0.6.0"
39
- },
40
- "devDependencies": {
41
- "@types/react": "^18.3.0",
42
- "@types/react-dom": "^18.3.0",
43
- "react": "^18.3.0",
44
- "react-dom": "^18.3.0",
45
- "typescript": "^5.5.0"
46
- }
47
- }
1
+ {
2
+ "name": "@rohan-protocol/webmcp",
3
+ "version": "0.7.0",
4
+ "description": "Browser-Native Zero-Knowledge Shield for WebMCP and AI Web Agents",
5
+ "type": "module",
6
+ "keywords": [
7
+ "webmcp",
8
+ "mcp",
9
+ "model-context-protocol",
10
+ "browser-mcp",
11
+ "zero-knowledge",
12
+ "midnight-network",
13
+ "zk-handshake",
14
+ "semantic-firewall",
15
+ "chrome-ai"
16
+ ],
17
+ "main": "./dist/index.js",
18
+ "types": "./dist/index.d.ts",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/index.js"
23
+ }
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "README.md"
28
+ ],
29
+ "scripts": {
30
+ "build": "tsc",
31
+ "clean": "rm -rf dist",
32
+ "test": "node --test tests/*.test.js"
33
+ },
34
+ "peerDependencies": {
35
+ "react": ">=18.0.0",
36
+ "react-dom": ">=18.0.0"
37
+ },
38
+ "dependencies": {
39
+ "@rohan-protocol/sdk": "^0.7.0"
40
+ },
41
+ "devDependencies": {
42
+ "@types/react": "^18.3.0",
43
+ "@types/react-dom": "^18.3.0",
44
+ "react": "^18.3.0",
45
+ "react-dom": "^18.3.0",
46
+ "typescript": "^5.5.0"
47
+ }
48
+ }