superacli 1.1.13 → 1.1.14
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/.agents/skills/humanenv-usage/SKILL.md +19 -0
- package/AGENTS.md +62 -0
- package/CONTRIBUTING.md +6 -2
- package/cli/plugin-install-guidance.js +25 -11
- package/cli/plugins-registry.js +25 -6
- package/cli/skills-catalog.js +85 -10
- package/coverage/clover.xml +1073 -965
- package/coverage/lcov-report/cli/adapter-schema.js.html +32 -32
- package/coverage/lcov-report/cli/adapters/builtin.js.html +1 -1
- package/coverage/lcov-report/cli/adapters/http.js.html +1 -1
- package/coverage/lcov-report/cli/adapters/index.html +1 -1
- package/coverage/lcov-report/cli/adapters/mcp.js.html +1 -1
- package/coverage/lcov-report/cli/adapters/openapi.js.html +1 -1
- package/coverage/lcov-report/cli/adapters/process.js.html +1 -1
- package/coverage/lcov-report/cli/adapters/shell.js.html +1 -1
- package/coverage/lcov-report/cli/ask.js.html +1 -1
- package/coverage/lcov-report/cli/config.js.html +109 -109
- package/coverage/lcov-report/cli/discover.js.html +1 -1
- package/coverage/lcov-report/cli/executor.js.html +1 -1
- package/coverage/lcov-report/cli/help-json.js.html +1 -1
- package/coverage/lcov-report/cli/index.html +92 -92
- package/coverage/lcov-report/cli/mcp-diagnostics.js.html +1 -1
- package/coverage/lcov-report/cli/mcp-discovery.js.html +1 -1
- package/coverage/lcov-report/cli/mcp-local.js.html +1 -1
- package/coverage/lcov-report/cli/mcp-stdio-jsonrpc.js.html +1 -1
- package/coverage/lcov-report/cli/namespace-passthrough.js.html +1 -1
- package/coverage/lcov-report/cli/plan-runtime.js.html +1 -1
- package/coverage/lcov-report/cli/planner.js.html +1 -1
- package/coverage/lcov-report/cli/plugin-install-guidance.js.html +919 -877
- package/coverage/lcov-report/cli/plugins-command.js.html +452 -452
- package/coverage/lcov-report/cli/plugins-learn.js.html +60 -60
- package/coverage/lcov-report/cli/plugins-manager.js.html +133 -133
- package/coverage/lcov-report/cli/plugins-registry.js.html +105 -48
- package/coverage/lcov-report/cli/plugins-store.js.html +106 -106
- package/coverage/lcov-report/cli/skills-catalog.js.html +366 -141
- package/coverage/lcov-report/cli/skills-mcp.js.html +1 -1
- package/coverage/lcov-report/cli/skills.js.html +1 -1
- package/coverage/lcov-report/index.html +19 -19
- package/coverage/lcov-report/server/app.js.html +1 -1
- package/coverage/lcov-report/server/index.html +1 -1
- package/coverage/lcov-report/server/routes/ask.js.html +1 -1
- package/coverage/lcov-report/server/routes/commands.js.html +1 -1
- package/coverage/lcov-report/server/routes/config.js.html +1 -1
- package/coverage/lcov-report/server/routes/index.html +1 -1
- package/coverage/lcov-report/server/routes/jobs.js.html +1 -1
- package/coverage/lcov-report/server/routes/mcp.js.html +1 -1
- package/coverage/lcov-report/server/routes/plans.js.html +1 -1
- package/coverage/lcov-report/server/routes/plugins.js.html +1 -1
- package/coverage/lcov-report/server/routes/specs.js.html +1 -1
- package/coverage/lcov-report/server/services/configService.js.html +1 -1
- package/coverage/lcov-report/server/services/index.html +1 -1
- package/coverage/lcov-report/server/services/pluginsService.js.html +1 -1
- package/coverage/lcov-report/server/storage/adapter.js.html +1 -1
- package/coverage/lcov-report/server/storage/file.js.html +1 -1
- package/coverage/lcov-report/server/storage/index.html +1 -1
- package/coverage/lcov-report/server/storage/mongo.js.html +1 -1
- package/coverage/lcov.info +1423 -1120
- package/package.json +1 -1
- package/plugins/beads/install-guidance.json +10 -0
- package/plugins/beads/meta.json +5 -0
- package/plugins/codedb/meta.json +5 -0
- package/plugins/codedb/plugin.json +169 -0
- package/plugins/codedb/skills/quickstart/SKILL.md +65 -0
- package/plugins/humanenv/.agents/skills/humanenv-sdk-python-usage/SKILL.md +37 -0
- package/plugins/humanenv/.agents/skills/humanenv-usage/SKILL.md +32 -0
- package/plugins/humanenv/plugin.json +65 -0
- package/plugins/humanenv/skills/quickstart/SKILL.md +95 -0
- package/plugins/mmx/install-guidance.json +10 -0
- package/plugins/mmx/meta.json +5 -0
- package/plugins/mmx/plugin.json +413 -0
- package/plugins/mmx/skills/quickstart/SKILL.md +234 -0
- package/plugins/plugins.json +21 -9
- package/plugins/rtk/README.md +63 -0
- package/plugins/rtk/plugin.json +79 -0
- package/plugins/rtk/skills/quickstart/SKILL.md +78 -0
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"plugin": "beads",
|
|
3
|
+
"binary": "br",
|
|
4
|
+
"check": "br --version",
|
|
5
|
+
"install_steps": [
|
|
6
|
+
"curl -fsSL \"https://raw.githubusercontent.com/Dicklesworthstone/beads_rust/main/install.sh?$(date +%s)\" | bash",
|
|
7
|
+
"br --version"
|
|
8
|
+
],
|
|
9
|
+
"note": "Installation is intentionally delegated to your LLM/automation flow (dcli/scli/supercli)."
|
|
10
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Zig code intelligence server and CLI for AI agents — fast tree, outline, symbol search, trigram full-text search, O(1) word index, dependency graph, and remote GitHub repo queries",
|
|
3
|
+
"tags": ["code-intelligence", "search", "symbols", "trigram", "dependency-graph", "mcp", "zig"],
|
|
4
|
+
"has_learn": true
|
|
5
|
+
}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "codedb",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Zig code intelligence server and CLI — tree, outline, symbol search, trigram full-text search, O(1) word index, dependency graph, and remote GitHub repo queries",
|
|
5
|
+
"source": "https://github.com/justrach/codedb",
|
|
6
|
+
"checks": [
|
|
7
|
+
{ "type": "binary", "name": "codedb" }
|
|
8
|
+
],
|
|
9
|
+
"install_guidance": {
|
|
10
|
+
"plugin": "codedb",
|
|
11
|
+
"binary": "codedb",
|
|
12
|
+
"check": "codedb --version",
|
|
13
|
+
"install_steps": [
|
|
14
|
+
"curl -fsSL https://codedb.codegraff.com/install.sh | sh"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"learn": {
|
|
18
|
+
"file": "skills/quickstart/SKILL.md"
|
|
19
|
+
},
|
|
20
|
+
"commands": [
|
|
21
|
+
{
|
|
22
|
+
"namespace": "codedb",
|
|
23
|
+
"resource": "self",
|
|
24
|
+
"action": "version",
|
|
25
|
+
"description": "Print codedb version",
|
|
26
|
+
"adapter": "process",
|
|
27
|
+
"adapterConfig": {
|
|
28
|
+
"command": "codedb",
|
|
29
|
+
"baseArgs": ["--version"],
|
|
30
|
+
"missingDependencyHelp": "Install codedb: curl -fsSL https://codedb.codegraff.com/install.sh | sh"
|
|
31
|
+
},
|
|
32
|
+
"args": []
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"namespace": "codedb",
|
|
36
|
+
"resource": "tree",
|
|
37
|
+
"action": "run",
|
|
38
|
+
"description": "Show file tree with language and symbol counts",
|
|
39
|
+
"adapter": "process",
|
|
40
|
+
"adapterConfig": {
|
|
41
|
+
"command": "codedb",
|
|
42
|
+
"baseArgs": ["tree"],
|
|
43
|
+
"passthrough": true,
|
|
44
|
+
"missingDependencyHelp": "Install codedb: curl -fsSL https://codedb.codegraff.com/install.sh | sh"
|
|
45
|
+
},
|
|
46
|
+
"args": []
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"namespace": "codedb",
|
|
50
|
+
"resource": "outline",
|
|
51
|
+
"action": "run",
|
|
52
|
+
"description": "List all symbols in a file (functions, structs, imports, with line numbers)",
|
|
53
|
+
"adapter": "process",
|
|
54
|
+
"adapterConfig": {
|
|
55
|
+
"command": "codedb",
|
|
56
|
+
"baseArgs": ["outline"],
|
|
57
|
+
"positionalArgs": ["path"],
|
|
58
|
+
"missingDependencyHelp": "Install codedb: curl -fsSL https://codedb.codegraff.com/install.sh | sh"
|
|
59
|
+
},
|
|
60
|
+
"args": [
|
|
61
|
+
{ "name": "path", "type": "string", "required": true, "description": "Path to the file to outline" }
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"namespace": "codedb",
|
|
66
|
+
"resource": "find",
|
|
67
|
+
"action": "run",
|
|
68
|
+
"description": "Find where a symbol is defined across the codebase",
|
|
69
|
+
"adapter": "process",
|
|
70
|
+
"adapterConfig": {
|
|
71
|
+
"command": "codedb",
|
|
72
|
+
"baseArgs": ["find"],
|
|
73
|
+
"positionalArgs": ["name"],
|
|
74
|
+
"missingDependencyHelp": "Install codedb: curl -fsSL https://codedb.codegraff.com/install.sh | sh"
|
|
75
|
+
},
|
|
76
|
+
"args": [
|
|
77
|
+
{ "name": "name", "type": "string", "required": true, "description": "Symbol name to find" }
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"namespace": "codedb",
|
|
82
|
+
"resource": "search",
|
|
83
|
+
"action": "run",
|
|
84
|
+
"description": "Full-text search (trigram-accelerated, case-insensitive)",
|
|
85
|
+
"adapter": "process",
|
|
86
|
+
"adapterConfig": {
|
|
87
|
+
"command": "codedb",
|
|
88
|
+
"baseArgs": ["search"],
|
|
89
|
+
"positionalArgs": ["query"],
|
|
90
|
+
"missingDependencyHelp": "Install codedb: curl -fsSL https://codedb.codegraff.com/install.sh | sh"
|
|
91
|
+
},
|
|
92
|
+
"args": [
|
|
93
|
+
{ "name": "query", "type": "string", "required": true, "description": "Search query" },
|
|
94
|
+
{ "name": "max", "type": "number", "required": false, "description": "Max results to return" }
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"namespace": "codedb",
|
|
99
|
+
"resource": "search",
|
|
100
|
+
"action": "regex",
|
|
101
|
+
"description": "Regex search across the codebase",
|
|
102
|
+
"adapter": "process",
|
|
103
|
+
"adapterConfig": {
|
|
104
|
+
"command": "codedb",
|
|
105
|
+
"baseArgs": ["search", "--regex"],
|
|
106
|
+
"positionalArgs": ["pattern"],
|
|
107
|
+
"missingDependencyHelp": "Install codedb: curl -fsSL https://codedb.codegraff.com/install.sh | sh"
|
|
108
|
+
},
|
|
109
|
+
"args": [
|
|
110
|
+
{ "name": "pattern", "type": "string", "required": true, "description": "Regex pattern" }
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"namespace": "codedb",
|
|
115
|
+
"resource": "word",
|
|
116
|
+
"action": "run",
|
|
117
|
+
"description": "O(1) exact word lookup via inverted index",
|
|
118
|
+
"adapter": "process",
|
|
119
|
+
"adapterConfig": {
|
|
120
|
+
"command": "codedb",
|
|
121
|
+
"baseArgs": ["word"],
|
|
122
|
+
"positionalArgs": ["identifier"],
|
|
123
|
+
"missingDependencyHelp": "Install codedb: curl -fsSL https://codedb.codegraff.com/install.sh | sh"
|
|
124
|
+
},
|
|
125
|
+
"args": [
|
|
126
|
+
{ "name": "identifier", "type": "string", "required": true, "description": "Identifier to look up" }
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"namespace": "codedb",
|
|
131
|
+
"resource": "hot",
|
|
132
|
+
"action": "run",
|
|
133
|
+
"description": "Show recently modified files",
|
|
134
|
+
"adapter": "process",
|
|
135
|
+
"adapterConfig": {
|
|
136
|
+
"command": "codedb",
|
|
137
|
+
"baseArgs": ["hot"],
|
|
138
|
+
"missingDependencyHelp": "Install codedb: curl -fsSL https://codedb.codegraff.com/install.sh | sh"
|
|
139
|
+
},
|
|
140
|
+
"args": []
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"namespace": "codedb",
|
|
144
|
+
"resource": "nuke",
|
|
145
|
+
"action": "run",
|
|
146
|
+
"description": "Remove all codedb data, snapshots, and kill processes",
|
|
147
|
+
"adapter": "process",
|
|
148
|
+
"adapterConfig": {
|
|
149
|
+
"command": "codedb",
|
|
150
|
+
"baseArgs": ["nuke"],
|
|
151
|
+
"missingDependencyHelp": "Install codedb: curl -fsSL https://codedb.codegraff.com/install.sh | sh"
|
|
152
|
+
},
|
|
153
|
+
"args": []
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"namespace": "codedb",
|
|
157
|
+
"resource": "_",
|
|
158
|
+
"action": "_",
|
|
159
|
+
"description": "Catch-all passthrough to codedb CLI (codedb ls, codedb git status, etc.)",
|
|
160
|
+
"adapter": "process",
|
|
161
|
+
"adapterConfig": {
|
|
162
|
+
"command": "codedb",
|
|
163
|
+
"passthrough": true,
|
|
164
|
+
"missingDependencyHelp": "Install codedb: curl -fsSL https://codedb.codegraff.com/install.sh | sh"
|
|
165
|
+
},
|
|
166
|
+
"args": []
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# codedb Skill
|
|
2
|
+
|
|
3
|
+
Use the codedb plugin for fast, structured code intelligence queries via the `codedb` CLI. It provides tree-sitter-based structural parsing, trigram-accelerated full-text search, O(1) inverted word index, and reverse dependency graphs.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
### 1. Install
|
|
8
|
+
```bash
|
|
9
|
+
codedb --version
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
### 2. Explore a Codebase
|
|
13
|
+
|
|
14
|
+
Get the file tree:
|
|
15
|
+
```bash
|
|
16
|
+
dcli codedb tree run
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Outline symbols in a specific file:
|
|
20
|
+
```bash
|
|
21
|
+
dcli codedb outline run --path src/main.zig
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### 3. Find Symbols and Search
|
|
25
|
+
|
|
26
|
+
Find where a symbol is defined:
|
|
27
|
+
```bash
|
|
28
|
+
dcli codedb find run --name AgentRegistry
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Full-text search (trigram-accelerated):
|
|
32
|
+
```bash
|
|
33
|
+
dcli codedb search run --query "handleAuth"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Regex search:
|
|
37
|
+
```bash
|
|
38
|
+
dcli codedb search regex --pattern "handle[A-Z]\w+"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Exact word lookup (O(1) inverted index):
|
|
42
|
+
```bash
|
|
43
|
+
dcli codedb word run --identifier Store
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### 4. Recently Modified Files
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
dcli codedb hot run
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### 5. Nuke Codedb Data
|
|
53
|
+
|
|
54
|
+
Remove all codedb data, snapshots, and kill processes:
|
|
55
|
+
```bash
|
|
56
|
+
dcli codedb nuke run
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Agent Notes
|
|
60
|
+
|
|
61
|
+
- codedb CLI pays ~55ms process startup per invocation. For repeated queries, consider running `codedb serve` as a long-running HTTP server on `:7719` instead.
|
|
62
|
+
- Results are structured (JSON-like) rather than raw line dumps — significantly fewer tokens for AI agents.
|
|
63
|
+
- Sensitive files (.env, credentials, keys) are auto-excluded from indexing.
|
|
64
|
+
- Telemetry is on by default. Disable with `CODEDB_NO_TELEMETRY=1` or `--no-telemetry`.
|
|
65
|
+
- For passthrough of undocumented subcommands, use `dcli codedb _ _ <args...>` (e.g., `dcli codedb _ _ -- --help`).
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
skill_name: humanenv-sdk-python-usage
|
|
3
|
+
name: humanenv-sdk-python-usage
|
|
4
|
+
description: Use humanenv Python SDK to retrieve sensitives/envs. Never log/read sensitives from humanenv. They are envs for humans only.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## How to retrieve sensitives
|
|
8
|
+
|
|
9
|
+
### Python API
|
|
10
|
+
Use `humanenv.get('key')` inside your application. The returned value must be used immediately and then set to `None` to prevent memory leaks.
|
|
11
|
+
|
|
12
|
+
```python
|
|
13
|
+
import humanenv
|
|
14
|
+
|
|
15
|
+
humanenv.config(humanenv.ClientConfig(
|
|
16
|
+
server_url="http://localhost:3056",
|
|
17
|
+
project_name="my-app",
|
|
18
|
+
api_key="optional-api-key"
|
|
19
|
+
))
|
|
20
|
+
|
|
21
|
+
value = await humanenv.get("API_KEY")
|
|
22
|
+
# use value immediately
|
|
23
|
+
value = None # null after use
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### JavaScript API
|
|
27
|
+
Use `humanenv.get('key')` inside your application. The returned value must be used immediately and then set to `null` to prevent memory leaks.
|
|
28
|
+
|
|
29
|
+
### CLI (non-TTY mode)
|
|
30
|
+
Only non-API-mode envs are accessible. Do not attempt to use this to log or dump all envs.
|
|
31
|
+
|
|
32
|
+
## Rules
|
|
33
|
+
1. NEVER log env values retrieved from humanenv
|
|
34
|
+
2. NEVER dump or export multiple values at once
|
|
35
|
+
3. ALWAYS null variables after use
|
|
36
|
+
4. NEVER write sensitives to files
|
|
37
|
+
5. Do not generate scripts that use humanenv in loops or to exfiltrate data
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
skill_name: humanenv-usage
|
|
3
|
+
name: humanenv-usage
|
|
4
|
+
description: Use humanenv to retrieve sensitives/envs. Never log/read sensitives from humanenv. They are envs for humans only.
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## How to retrieve sensitives
|
|
8
|
+
|
|
9
|
+
### JavaScript API
|
|
10
|
+
Use `humanenv.get('key')` inside your application. The returned value must be used immediately and then set to `null` to prevent memory leaks.
|
|
11
|
+
|
|
12
|
+
### Python API
|
|
13
|
+
```python
|
|
14
|
+
import humanenv
|
|
15
|
+
humanenv.config(humanenv.ClientConfig(
|
|
16
|
+
server_url="http://localhost:3056",
|
|
17
|
+
project_name="my-app",
|
|
18
|
+
api_key="optional-api-key"
|
|
19
|
+
))
|
|
20
|
+
value = await humanenv.get("API_KEY")
|
|
21
|
+
value = None # null after use
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### CLI (non-TTY mode)
|
|
25
|
+
Only non-API-mode envs are accessible. Do not attempt to use this to log or dump all envs.
|
|
26
|
+
|
|
27
|
+
## Rules
|
|
28
|
+
1. NEVER log env values retrieved from humanenv
|
|
29
|
+
2. NEVER dump or export multiple values at once
|
|
30
|
+
3. ALWAYS null variables after use
|
|
31
|
+
4. NEVER write sensitives to files
|
|
32
|
+
5. Do not generate scripts that use humanenv in loops or to exfiltrate data
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "humanenv",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Secure environment variable injection - secrets for humans only",
|
|
5
|
+
"source": "https://github.com/javamosch/humanenv",
|
|
6
|
+
"checks": [
|
|
7
|
+
{ "type": "binary", "name": "humanenv" }
|
|
8
|
+
],
|
|
9
|
+
"learn": {
|
|
10
|
+
"file": "skills/quickstart/SKILL.md"
|
|
11
|
+
},
|
|
12
|
+
"commands": [
|
|
13
|
+
{
|
|
14
|
+
"namespace": "humanenv",
|
|
15
|
+
"resource": "env",
|
|
16
|
+
"action": "get",
|
|
17
|
+
"description": "Retrieve a single secret from the humanenv server",
|
|
18
|
+
"adapter": "process",
|
|
19
|
+
"adapterConfig": {
|
|
20
|
+
"command": "humanenv",
|
|
21
|
+
"baseArgs": ["get"],
|
|
22
|
+
"positionalArgs": ["key"],
|
|
23
|
+
"parseJson": true,
|
|
24
|
+
"timeout_ms": 15000,
|
|
25
|
+
"missingDependencyHelp": "Install humanenv: npm install -g humanenv"
|
|
26
|
+
},
|
|
27
|
+
"args": [
|
|
28
|
+
{ "name": "key", "type": "string", "required": true, "description": "Environment variable key to retrieve" }
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"namespace": "humanenv",
|
|
33
|
+
"resource": "env",
|
|
34
|
+
"action": "set",
|
|
35
|
+
"description": "Create or update a secret on the humanenv server",
|
|
36
|
+
"adapter": "process",
|
|
37
|
+
"adapterConfig": {
|
|
38
|
+
"command": "humanenv",
|
|
39
|
+
"baseArgs": ["set"],
|
|
40
|
+
"positionalArgs": ["key", "value"],
|
|
41
|
+
"parseJson": true,
|
|
42
|
+
"timeout_ms": 15000,
|
|
43
|
+
"missingDependencyHelp": "Install humanenv: npm install -g humanenv"
|
|
44
|
+
},
|
|
45
|
+
"args": [
|
|
46
|
+
{ "name": "key", "type": "string", "required": true, "description": "Environment variable key" },
|
|
47
|
+
{ "name": "value", "type": "string", "required": true, "description": "Environment variable value" }
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"namespace": "humanenv",
|
|
52
|
+
"resource": "_",
|
|
53
|
+
"action": "_",
|
|
54
|
+
"description": "Passthrough to humanenv CLI for auth, server, and advanced usage",
|
|
55
|
+
"adapter": "process",
|
|
56
|
+
"adapterConfig": {
|
|
57
|
+
"command": "humanenv",
|
|
58
|
+
"passthrough": true,
|
|
59
|
+
"parseJson": true,
|
|
60
|
+
"missingDependencyHelp": "Install humanenv: npm install -g humanenv"
|
|
61
|
+
},
|
|
62
|
+
"args": []
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
---
|
|
2
|
+
skill_name: quickstart
|
|
3
|
+
name: humanenv-usage
|
|
4
|
+
description: Secure environment variable injection - secrets for humans only
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# humanenv Usage
|
|
8
|
+
|
|
9
|
+
Secure environment variable injection. Secrets exist in memory only when explicitly requested — never in `.env` files, never in process environment, never persistent on disk.
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
Use humanenv when you need secrets (API keys, database credentials, tokens). Never use `.env` files or `process.env` — any process on the machine can read them.
|
|
14
|
+
|
|
15
|
+
## Quick Start
|
|
16
|
+
|
|
17
|
+
1. Human runs `humanenv server` and creates a project in the admin UI
|
|
18
|
+
2. Authenticate: `supercli humanenv _ _ auth --project-name <name> --server-url <url> --api-key <key>`
|
|
19
|
+
3. Get secrets: `supercli humanenv env get <KEY>`
|
|
20
|
+
4. Set secrets: `supercli humanenv env set <KEY> <value>`
|
|
21
|
+
|
|
22
|
+
## Commands
|
|
23
|
+
|
|
24
|
+
- `supercli humanenv env get <key>` — Retrieve single secret (returns null if not found)
|
|
25
|
+
- `supercli humanenv env set <key> <value>` — Create or update a secret
|
|
26
|
+
- `supercli humanenv _ _ <args...>` — Passthrough for auth, server, and advanced usage
|
|
27
|
+
|
|
28
|
+
## Security Rules
|
|
29
|
+
|
|
30
|
+
- **ALWAYS** null values after use: `apiKey = null`
|
|
31
|
+
- Never log, echo, or store secret values
|
|
32
|
+
- Never write secrets to files
|
|
33
|
+
- Never pass secrets as command-line arguments to other processes
|
|
34
|
+
- Request only the specific key needed — never bulk access
|
|
35
|
+
|
|
36
|
+
## Authentication
|
|
37
|
+
|
|
38
|
+
If not authenticated, tell the human:
|
|
39
|
+
|
|
40
|
+
> "I need humanenv configured to retrieve secrets safely. Run `humanenv server` once, create a project in the UI, then I can authenticate with the project name and API key."
|
|
41
|
+
|
|
42
|
+
## Error Codes
|
|
43
|
+
|
|
44
|
+
| Code | Meaning | Action |
|
|
45
|
+
|------|---------|--------|
|
|
46
|
+
| `NOT_AUTHENTICATED` | No credentials found | Run auth first |
|
|
47
|
+
| `CLIENT_NOT_WHITELISTED` | Fingerprint not approved | Ask human to approve at admin UI whitelist |
|
|
48
|
+
| `ENV_KEY_NOT_FOUND` | Key does not exist | Create via set command or admin UI |
|
|
49
|
+
| `ENV_API_MODE_ONLY` | CLI blocked for this key | Use SDK instead: `await humanenv.get('KEY')` |
|
|
50
|
+
| `AUTH_FAILED` | Authentication failed | Verify server URL, project name, API key |
|
|
51
|
+
| `AUTH_PENDING` | Fingerprint submitted, awaiting approval | Ask human to approve in admin UI |
|
|
52
|
+
|
|
53
|
+
## Install
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
npm install -g humanenv
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Verify: `humanenv` (should show credentials status)
|
|
60
|
+
|
|
61
|
+
## SDKs
|
|
62
|
+
|
|
63
|
+
### Python (recommended for Python apps)
|
|
64
|
+
|
|
65
|
+
```python
|
|
66
|
+
import humanenv
|
|
67
|
+
|
|
68
|
+
humanenv.config(humanenv.ClientConfig(
|
|
69
|
+
server_url="http://localhost:3056",
|
|
70
|
+
project_name="my-app",
|
|
71
|
+
api_key="optional-api-key"
|
|
72
|
+
))
|
|
73
|
+
|
|
74
|
+
value = await humanenv.get("API_KEY")
|
|
75
|
+
value = None # null after use
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Install: `pip install humanenv` or `pip install -e sdk/python`
|
|
79
|
+
|
|
80
|
+
### JavaScript (recommended for Node.js apps)
|
|
81
|
+
|
|
82
|
+
```javascript
|
|
83
|
+
import humanenv from 'humanenv'
|
|
84
|
+
|
|
85
|
+
humanenv.config({
|
|
86
|
+
serverUrl: 'http://localhost:3056',
|
|
87
|
+
projectName: 'my-app',
|
|
88
|
+
projectApiKey: 'optional-api-key'
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
const value = await humanenv.get('API_KEY')
|
|
92
|
+
value = null // null after use
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Install: `npm install humanenv`
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"plugin": "mmx",
|
|
3
|
+
"binary": "mmx",
|
|
4
|
+
"check": "mmx --version",
|
|
5
|
+
"install_steps": [
|
|
6
|
+
"npm install -g mmx-cli",
|
|
7
|
+
"mmx auth login --api-key sk-xxxxx"
|
|
8
|
+
],
|
|
9
|
+
"note": "Requires MiniMax Token Plan — Global: https://platform.minimax.io/subscribe/token-plan | CN: https://platform.minimaxi.com/subscribe/token-plan"
|
|
10
|
+
}
|