moltblock 0.11.2 → 0.11.3
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/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/skill/SKILL.md +14 -22
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Moltblock — framework for evolving composite intelligences (Entities).
|
|
3
3
|
*/
|
|
4
|
-
export declare const VERSION = "0.11.
|
|
4
|
+
export declare const VERSION = "0.11.3";
|
|
5
5
|
export type { ModelBinding, BindingEntry, AgentConfig, MoltblockConfig, ChatMessage, VerifiedMemoryEntry, CheckpointEntry, OutcomeEntry, InboxEntry, StrategySuggestion, ReceivedArtifact, GovernanceConfig, } from "./types.js";
|
|
6
6
|
export { WorkingMemory } from "./memory.js";
|
|
7
7
|
export { signArtifact, verifyArtifact, artifactHash } from "./signing.js";
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
package/skill/SKILL.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: moltblock - Trust Layer for AI Agents
|
|
3
|
-
description: Verification gating for AI-generated artifacts. Policy checks
|
|
4
|
-
version: 0.11.
|
|
3
|
+
description: Verification gating for AI-generated artifacts. Policy checks to catch dangerous patterns before execution.
|
|
4
|
+
version: 0.11.2
|
|
5
5
|
metadata:
|
|
6
6
|
openclaw:
|
|
7
7
|
requires:
|
|
@@ -19,7 +19,7 @@ metadata:
|
|
|
19
19
|
homepage: https://github.com/moltblock/moltblock
|
|
20
20
|
install:
|
|
21
21
|
- kind: node
|
|
22
|
-
package: moltblock@0.11.
|
|
22
|
+
package: moltblock@0.11.3
|
|
23
23
|
bins: [moltblock]
|
|
24
24
|
---
|
|
25
25
|
|
|
@@ -27,13 +27,14 @@ metadata:
|
|
|
27
27
|
|
|
28
28
|
## Description
|
|
29
29
|
|
|
30
|
-
Moltblock provides verification gating for AI-generated artifacts. It runs policy checks
|
|
30
|
+
Moltblock provides verification gating for AI-generated artifacts. It runs policy checks to catch dangerous patterns before they reach production.
|
|
31
31
|
|
|
32
32
|
**What moltblock does:**
|
|
33
|
-
- Generates
|
|
34
|
-
-
|
|
33
|
+
- Generates artifacts via LLM API calls, then runs policy checks against the output
|
|
34
|
+
- Returns a structured verification result (pass/fail with evidence)
|
|
35
35
|
- Reads its own config files (`moltblock.json`, `~/.moltblock/moltblock.json`) if present
|
|
36
36
|
- API keys are read from environment variables at runtime and sent only to the configured LLM provider endpoint
|
|
37
|
+
- **No code execution occurs** — moltblock only performs policy checks on generated artifacts
|
|
37
38
|
|
|
38
39
|
## When to Use
|
|
39
40
|
|
|
@@ -50,7 +51,7 @@ Verify a task before execution.
|
|
|
50
51
|
### Usage
|
|
51
52
|
|
|
52
53
|
```bash
|
|
53
|
-
npx moltblock@0.11.
|
|
54
|
+
npx moltblock@0.11.3 "<task description>" --provider <provider> --json
|
|
54
55
|
```
|
|
55
56
|
|
|
56
57
|
### Parameters
|
|
@@ -60,7 +61,6 @@ npx moltblock@0.11.0 "<task description>" --provider <provider> --json
|
|
|
60
61
|
| task | Yes | The task description to verify |
|
|
61
62
|
| --provider | No | LLM provider: openai, google, zai, local (auto-detected from env) |
|
|
62
63
|
| --model | No | Model override |
|
|
63
|
-
| --test | No | Path to test file (for code verification) |
|
|
64
64
|
| --json | No | Output structured JSON result |
|
|
65
65
|
|
|
66
66
|
### Environment Variables
|
|
@@ -75,10 +75,7 @@ Moltblock auto-detects the LLM provider from whichever API key is set. If no key
|
|
|
75
75
|
|
|
76
76
|
```bash
|
|
77
77
|
# Verify a task
|
|
78
|
-
npx moltblock@0.11.
|
|
79
|
-
|
|
80
|
-
# Verify code with tests
|
|
81
|
-
npx moltblock@0.11.0 "implement a markdown-to-html converter" --test ./tests/markdown.test.ts --json
|
|
78
|
+
npx moltblock@0.11.3 "implement a function that validates email addresses" --json
|
|
82
79
|
```
|
|
83
80
|
|
|
84
81
|
### Output (JSON mode)
|
|
@@ -99,13 +96,13 @@ npx moltblock@0.11.0 "implement a markdown-to-html converter" --test ./tests/mar
|
|
|
99
96
|
Use directly with npx (recommended, no install needed):
|
|
100
97
|
|
|
101
98
|
```bash
|
|
102
|
-
npx moltblock@0.11.
|
|
99
|
+
npx moltblock@0.11.3 "your task" --json
|
|
103
100
|
```
|
|
104
101
|
|
|
105
102
|
Or install globally:
|
|
106
103
|
|
|
107
104
|
```bash
|
|
108
|
-
npm install -g moltblock@0.11.
|
|
105
|
+
npm install -g moltblock@0.11.3
|
|
109
106
|
```
|
|
110
107
|
|
|
111
108
|
## Configuration
|
|
@@ -134,16 +131,11 @@ See the [full configuration docs](https://github.com/moltblock/moltblock#configu
|
|
|
134
131
|
- npm: [npmjs.com/package/moltblock](https://www.npmjs.com/package/moltblock)
|
|
135
132
|
- License: MIT
|
|
136
133
|
|
|
137
|
-
## Security
|
|
138
|
-
|
|
139
|
-
When `--test` is used, moltblock writes LLM-generated code to a temporary file and runs vitest against it using the user-provided test file. **This executes LLM-generated code in a Node.js process on the host machine.** Mitigations:
|
|
134
|
+
## Security
|
|
140
135
|
|
|
141
|
-
|
|
142
|
-
- Generated code is written to `os.tmpdir()` and cleaned up after execution
|
|
143
|
-
- Policy rules run **before** test execution to deny known dangerous patterns (e.g. `rm -rf`, `eval`, `child_process`, filesystem writes)
|
|
144
|
-
- Without `--test`, no code execution occurs — only policy checks run against the generated artifact
|
|
136
|
+
When used as a skill, moltblock performs **policy checks only** — no code is generated, written to disk, or executed. The tool analyzes task descriptions against configurable policy rules and returns a pass/fail verification result.
|
|
145
137
|
|
|
146
|
-
|
|
138
|
+
The CLI additionally supports a `--test` flag for direct user invocation that executes code verification via vitest. This flag is not exposed to agents through this skill and should only be used directly by developers in sandboxed environments. See the [CLI documentation](https://github.com/moltblock/moltblock#security) for details.
|
|
147
139
|
|
|
148
140
|
## Disclaimer
|
|
149
141
|
|