moltblock 0.11.2 → 0.11.4

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 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.2";
4
+ export declare const VERSION = "0.11.4";
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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Moltblock — framework for evolving composite intelligences (Entities).
3
3
  */
4
- export const VERSION = "0.11.2";
4
+ export const VERSION = "0.11.4";
5
5
  // Memory
6
6
  export { WorkingMemory } from "./memory.js";
7
7
  // Signing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moltblock",
3
- "version": "0.11.2",
3
+ "version": "0.11.4",
4
4
  "description": "Framework for building evolving composite AI intelligences (Entities)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/skill/SKILL.md CHANGED
@@ -1,7 +1,9 @@
1
1
  ---
2
2
  name: moltblock - Trust Layer for AI Agents
3
- description: Verification gating for AI-generated artifacts. Policy checks and code verification to catch dangerous patterns before execution.
4
- version: 0.11.0
3
+ description: Verification gating for AI-generated artifacts. Policy checks to catch dangerous patterns before execution.
4
+ version: 0.11.4
5
+ homepage: https://github.com/moltblock/moltblock
6
+ repository: https://github.com/moltblock/moltblock
5
7
  metadata:
6
8
  openclaw:
7
9
  requires:
@@ -19,7 +21,7 @@ metadata:
19
21
  homepage: https://github.com/moltblock/moltblock
20
22
  install:
21
23
  - kind: node
22
- package: moltblock@0.11.0
24
+ package: moltblock@0.11.4
23
25
  bins: [moltblock]
24
26
  ---
25
27
 
@@ -27,13 +29,14 @@ metadata:
27
29
 
28
30
  ## Description
29
31
 
30
- Moltblock provides verification gating for AI-generated artifacts. It runs policy checks and optional code verification (via vitest) to catch dangerous patterns before they reach production.
32
+ Moltblock provides verification gating for AI-generated artifacts. It runs policy checks to catch dangerous patterns before they reach production.
31
33
 
32
34
  **What moltblock does:**
33
- - Generates code via LLM API calls, then runs policy checks against the output
34
- - When `--test` is provided, executes vitest to verify generated code against a user-provided test file (see **Security: Test Execution** below)
35
+ - Generates artifacts via LLM API calls, then runs policy checks against the output
36
+ - Returns a structured verification result (pass/fail with evidence)
35
37
  - Reads its own config files (`moltblock.json`, `~/.moltblock/moltblock.json`) if present
36
38
  - API keys are read from environment variables at runtime and sent only to the configured LLM provider endpoint
39
+ - **No code execution occurs** — moltblock only performs policy checks on generated artifacts
37
40
 
38
41
  ## When to Use
39
42
 
@@ -50,7 +53,7 @@ Verify a task before execution.
50
53
  ### Usage
51
54
 
52
55
  ```bash
53
- npx moltblock@0.11.0 "<task description>" --provider <provider> --json
56
+ npx moltblock@0.11.4 "<task description>" --provider <provider> --json
54
57
  ```
55
58
 
56
59
  ### Parameters
@@ -60,7 +63,6 @@ npx moltblock@0.11.0 "<task description>" --provider <provider> --json
60
63
  | task | Yes | The task description to verify |
61
64
  | --provider | No | LLM provider: openai, google, zai, local (auto-detected from env) |
62
65
  | --model | No | Model override |
63
- | --test | No | Path to test file (for code verification) |
64
66
  | --json | No | Output structured JSON result |
65
67
 
66
68
  ### Environment Variables
@@ -75,10 +77,7 @@ Moltblock auto-detects the LLM provider from whichever API key is set. If no key
75
77
 
76
78
  ```bash
77
79
  # Verify a task
78
- npx moltblock@0.11.0 "implement a function that validates email addresses" --json
79
-
80
- # Verify code with tests
81
- npx moltblock@0.11.0 "implement a markdown-to-html converter" --test ./tests/markdown.test.ts --json
80
+ npx moltblock@0.11.4 "implement a function that validates email addresses" --json
82
81
  ```
83
82
 
84
83
  ### Output (JSON mode)
@@ -99,13 +98,13 @@ npx moltblock@0.11.0 "implement a markdown-to-html converter" --test ./tests/mar
99
98
  Use directly with npx (recommended, no install needed):
100
99
 
101
100
  ```bash
102
- npx moltblock@0.11.0 "your task" --json
101
+ npx moltblock@0.11.4 "your task" --json
103
102
  ```
104
103
 
105
104
  Or install globally:
106
105
 
107
106
  ```bash
108
- npm install -g moltblock@0.11.0
107
+ npm install -g moltblock@0.11.4
109
108
  ```
110
109
 
111
110
  ## Configuration
@@ -134,16 +133,11 @@ See the [full configuration docs](https://github.com/moltblock/moltblock#configu
134
133
  - npm: [npmjs.com/package/moltblock](https://www.npmjs.com/package/moltblock)
135
134
  - License: MIT
136
135
 
137
- ## Security: Test Execution
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:
136
+ ## Security
140
137
 
141
- - The test file path must be provided explicitly by the user moltblock does not select or generate test files
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
138
+ 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
139
 
146
- **Residual risk:** Policy rules are pattern-based and cannot catch all dangerous code. LLM-generated code executed via `--test` may perform arbitrary actions within the permissions of the Node.js process. Users should review generated code or run moltblock in a sandboxed environment when verifying untrusted tasks.
140
+ 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
141
 
148
142
  ## Disclaimer
149
143