enact-cli 1.0.10 → 1.0.11
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/README.md +36 -2
- package/dist/index.js +1521 -134
- package/dist/index.js.bak +1521 -134
- package/dist/mcp-server.js +3006 -303
- package/dist/mcp-server.js.bak +3006 -303
- package/dist/web/static/app.js +591 -0
- package/dist/web/static/index.html +117 -0
- package/dist/web/static/style.css +287 -0
- package/package.json +4 -3
- package/src/web/static/app.js +591 -0
- package/src/web/static/index.html +117 -0
- package/src/web/static/style.css +287 -0
- package/dist/enact +0 -0
- package/dist/enact-linux +0 -0
- package/dist/enact-macos +0 -0
- package/dist/enact-windows.exe +0 -0
- package/dist/lib/enact-direct.js +0 -8223
- package/dist/mcp-direct.js +0 -21593
- package/dist/mcp-direct.js.bak +0 -21593
- package/dist/mcp-entry.js +0 -21665
- package/dist/mcp-entry.js.bak +0 -21665
package/README.md
CHANGED
|
@@ -7,9 +7,10 @@ Official CLI for the Enact Protocol - package, secure, and discover AI tools.
|
|
|
7
7
|
- 🔍 **Search & Discovery** - Find AI tools in the Enact ecosystem
|
|
8
8
|
- ⚡ **Execute Tools** - Run tools directly with secure execution
|
|
9
9
|
- 📦 **Publishing** - Publish your own tools to the registry
|
|
10
|
-
- 🔐 **Security** -
|
|
10
|
+
- 🔐 **Security** - **Mandatory cryptographic signing and verification** for all tool execution
|
|
11
11
|
- 🎯 **MCP Integration** - Full Model Context Protocol support
|
|
12
12
|
- 🚀 **Direct Library** - Use as a library in your applications
|
|
13
|
+
- 🌐 **Environment Manager** - Web-based interface for managing environment variables
|
|
13
14
|
|
|
14
15
|
## Installation
|
|
15
16
|
|
|
@@ -61,13 +62,46 @@ enact exec author/tool-name --input '{"key": "value"}'
|
|
|
61
62
|
|
|
62
63
|
### MCP Server Usage
|
|
63
64
|
```bash
|
|
64
|
-
# Start the comprehensive MCP server
|
|
65
|
+
# Start the comprehensive MCP server (includes web-based environment manager)
|
|
65
66
|
enact-mcp-server
|
|
66
67
|
|
|
67
68
|
# Start the MCP server
|
|
68
69
|
enact-mcp
|
|
69
70
|
```
|
|
70
71
|
|
|
72
|
+
#### Environment Manager Web Interface
|
|
73
|
+
|
|
74
|
+
The MCP server includes a built-in web interface for managing environment variables:
|
|
75
|
+
|
|
76
|
+
- **URL**: `http://localhost:5555` (when MCP server is running)
|
|
77
|
+
- **Features**: Package-based environment variable management
|
|
78
|
+
- **File Structure**: `~/.enact/env/{namespace}/.env`
|
|
79
|
+
|
|
80
|
+
See [ENVIRONMENT_MANAGER.md](./ENVIRONMENT_MANAGER.md) for detailed usage instructions.
|
|
81
|
+
|
|
82
|
+
## Security
|
|
83
|
+
|
|
84
|
+
🔐 **Mandatory Signature Verification** - All tools must be cryptographically signed and verified before execution.
|
|
85
|
+
|
|
86
|
+
**Verification Policies:**
|
|
87
|
+
- `permissive` - Require 1+ valid signatures (default)
|
|
88
|
+
- `enterprise` - Require author + reviewer signatures
|
|
89
|
+
- `paranoid` - Require author + reviewer + approver signatures
|
|
90
|
+
|
|
91
|
+
**Example Usage:**
|
|
92
|
+
```bash
|
|
93
|
+
# Tools are automatically verified before execution
|
|
94
|
+
enact exec my-org/secure-tool
|
|
95
|
+
|
|
96
|
+
# Use strict enterprise policy
|
|
97
|
+
enact exec critical-tool --verify-policy enterprise
|
|
98
|
+
|
|
99
|
+
# Sign your own tools
|
|
100
|
+
enact sign sign my-tool.yaml --role author
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
📋 **See [MANDATORY_SIGNATURE_VERIFICATION.md](./MANDATORY_SIGNATURE_VERIFICATION.md) for complete security documentation.**
|
|
104
|
+
|
|
71
105
|
### Library Usage
|
|
72
106
|
```typescript
|
|
73
107
|
import { executeToolByName, searchTools } from 'enact-cli/dist/lib/enact-direct.js';
|