@smartergpt/lexrunner 2.1.0 → 2.2.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.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,34 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.2.0] - 2026-09-09
10
+
11
+ ### Added
12
+
13
+ - Optional explicit `gitInputs` in plan Schema 1.0.1: repository identity, acquisition
14
+ mode and frozen target/source refs and commits for single-repository integration.
15
+ - Visible `frozen` and `legacy-unbound` status, with compatibility guidance for old
16
+ plans and older strict parsers. Existing unbound plans remain supported.
17
+
18
+ ### Fixed
19
+
20
+ - Execute generated GitHub plans through the shared local CLI/MCP integration path
21
+ using frozen commits instead of PR display names. Reject moved inputs, mismatched
22
+ checkouts and failed acquisition without local-ref fallback.
23
+ - Reject passing commands that mutate tracked state, HEAD or the integration branch;
24
+ preserve unexpected changes and separate gate/post-check receipt references.
25
+ - Resolve generated gate names to executable commands. Remove guessed output paths
26
+ while retaining strict validation of explicitly declared artifacts.
27
+ - Export the complete plan JSON Schema through the installed Zod version.
28
+ - Update vulnerable runtime/test dependencies, including Hono, sharp, js-yaml and
29
+ Vitest; the prepared lockfile passes npm audit with zero reported vulnerabilities.
30
+
31
+ ### Documentation
32
+
33
+ - Explain the first integration trial, explicit local effects and retained review
34
+ boundaries; align Git test guidance with the existing isolated CI lane.
35
+ - Use canonical SmarterGPT repository links and organization publisher guidance.
36
+
9
37
  ## [2.1.0] - 2026-09-06
10
38
 
11
39
  ### Added
package/README.mcp.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # MCP Server for lexrunner
2
2
 
3
- The Model Context Protocol (MCP) server for lexrunner provides read-only tools for plan creation, gate execution, and merge operations.
3
+ The Model Context Protocol (MCP) server for lexrunner provides tools for plan creation, gate execution, and merge operations.
4
+ Plan creation can write files and gate execution runs commands. `ALLOW_MUTATIONS=false`
5
+ blocks protected mutations such as merging; it is not a read-only sandbox.
6
+
7
+ Start with [installation and interface choices](docs/first-use-compatibility.md).
4
8
 
5
9
  **Architecture:** This server is aligned with LexBrain and LexMap MCP implementations, using direct stdio JSON-RPC 2.0 protocol handling for consistency and maintainability across the Lex ecosystem.
6
10
 
package/README.md CHANGED
@@ -15,7 +15,37 @@ fit for a repository with one occasional PR and no integration-order problem.
15
15
  That evaluation is deliberately read-only. Installing the package, writing a plan, creating a
16
16
  branch, pushing, opening a PR, or merging requires separate approval.
17
17
 
18
- ## What works today
18
+ ## Start here
19
+
20
+ For your first trial, install **LexRunner only** in a GitHub repository with open
21
+ PRs. Node.js 24+ and Git are required. npm installs LexRunner's dependencies; you
22
+ do not need to install Lex, AXF, LexSona, a policy-host service, or an MCP server
23
+ separately for this CLI workflow. These examples target the 2.2.0 candidate; verify
24
+ npm availability before installation.
25
+
26
+ ```bash
27
+ npm install --save-dev @smartergpt/lexrunner@2.2.0
28
+ npx lexrunner --version
29
+ npx lexrunner weave discover --json
30
+ ```
31
+
32
+ Installation changes your package manifest, lockfile and dependencies. Discovery
33
+ reads GitHub; private repositories need an authorized `GITHUB_TOKEN` supplied to
34
+ the process. See the [merge-weave quickstart](MERGE_WEAVE_QUICKSTART.md) for setup,
35
+ authentication and the complete first-use journey:
36
+
37
+ **Discover → freeze a plan → inspect dependencies → preview gates.**
38
+
39
+ The first useful result is an inspected plan and gate preview. A dry run neither
40
+ executes gates nor proves merge eligibility. The quickstart separates local writes,
41
+ command execution, independent review and the explicit merge boundary. Single-repository
42
+ GitHub plans bind explicit refs and commits for local integration. The walkthrough
43
+ explains clean-checkout preparation, exact-input checks and separately authorized execution.
44
+
45
+ [Start the walkthrough](MERGE_WEAVE_QUICKSTART.md) ·
46
+ [Choose another SmarterGPT workflow](https://smartergpt.dev/docs/how-to-use/)
47
+
48
+ ## Add capabilities when needed
19
49
 
20
50
  LexRunner’s supported workflow has grown in layers. A normal user can stop at any layer.
21
51
 
@@ -34,31 +64,6 @@ host/reboot recovery remains release evidence, and Stage 5 fault-injection and a
34
64
  remain unproven. See [ADR-010](docs/adr/ADR-010-agent-work-orchestration-protocol.md) and the
35
65
  [headless proof boundary](docs/architecture/headless-supervisor.md).
36
66
 
37
- ## Smallest useful trial
38
-
39
- First inspect without mutation:
40
-
41
- ```bash
42
- lexrunner --version
43
- lexrunner workspace doctor --json
44
- lexrunner weave discover --json
45
- ```
46
-
47
- After approving a local, reversible artifact, freeze and inspect a plan:
48
-
49
- ```bash
50
- lexrunner weave plan --from-github --output plan.json --json
51
- lexrunner schema validate plan.json --json
52
- lexrunner weave merge-order plan.json --json
53
- lexrunner gate run plan.json --dry-run --json
54
- ```
55
-
56
- These commands do not merge. `lexrunner weave apply --execute` is a separate mutation and should be
57
- run only after reviewing the frozen plan, authority, gates, and target branch.
58
-
59
- For a guided merge-weave walkthrough, use
60
- [MERGE_WEAVE_QUICKSTART.md](MERGE_WEAVE_QUICKSTART.md).
61
-
62
67
  ## Architecture boundary
63
68
 
64
69
  LexRunner has two contracts that must not be blurred:
@@ -89,8 +94,7 @@ source tree. Canonical terms live in [`docs/TERMS.md`](docs/TERMS.md).
89
94
  ## Install and authenticate
90
95
 
91
96
  Ecosystem 3.1 requires Node.js 24 or newer. The npm package is publicly readable without
92
- an npm login. Current source uses Apache-2.0; the first package under those terms is
93
- the 2.1.0 release candidate. Earlier published versions retain their applicable licenses.
97
+ an npm login. Current source uses Apache-2.0; 2.1.0 is the first public npm release under those terms. Earlier published versions retain their applicable licenses.
94
98
 
95
99
  ```bash
96
100
  npm install --save-dev @smartergpt/lexrunner
@@ -115,11 +119,12 @@ The checked-in package version is the single source for `lexrunner --version` an
115
119
 
116
120
  <!-- BEGIN GENERATED PACKAGE VERSION -->
117
121
 
118
- Current repository package version: **2.1.0**. npm availability and dist-tags are separate
122
+ Current repository package version: **2.2.0**. npm availability and dist-tags are separate
119
123
  release evidence; inspect the registry rather than inferring publication from source metadata.
120
124
  <!-- END GENERATED PACKAGE VERSION -->
121
125
 
122
- See the [2.1.0 open-source release](docs/releases/2.1.0.md), the
126
+ See the [2.2.0 frozen-input release candidate](docs/releases/2.2.0.md), the
127
+ [2.1.0 open-source release](docs/releases/2.1.0.md), the
123
128
  [2.0.2 generated timeout correction](docs/releases/2.0.2.md), the
124
129
  [2.0.1 MCP identity correction](docs/releases/2.0.1.md), the
125
130
  [2.0.0 plan-bound evidence release](docs/releases/2.0.0.md), the
@@ -134,9 +139,11 @@ supported assisted behavior, and deferred guarantees.
134
139
 
135
140
  ## Choose a surface
136
141
 
137
- - **Human CLI:** start with `workspace doctor`, `weave discover`, `weave plan`,
138
- `weave merge-order`, and `gate run`.
139
- - **Agent/MCP:** use the matching canonical tools and bounded contracts in
142
+ - **Human CLI:** follow the [first-use walkthrough](MERGE_WEAVE_QUICKSTART.md).
143
+ - **Agent/MCP:** LexRunner ships `lexrunner-mcp`; use it for plans, gates and
144
+ integration. No MCP setup is needed for the CLI trial. Tool calls can write
145
+ artifacts or run commands even when merge mutations are disabled. See the
146
+ [compatibility and setup guide](docs/first-use-compatibility.md), plus
140
147
  [`docs/AX.md`](docs/AX.md) and [`README.mcp.md`](README.mcp.md).
141
148
  - **Assisted agent work:** run `attempt preflight` before packet construction. When it reports
142
149
  `broker_required`, use `attempt projection status|prepare` to bind the exact committed base into
@@ -16,7 +16,7 @@ import {
16
16
  hasCapability,
17
17
  parseAutopilotConfig,
18
18
  validateAutopilotConfig
19
- } from "./chunk-SHSL643G.js";
19
+ } from "./chunk-M6AAYMHH.js";
20
20
  import "./chunk-4FFGNTAV.js";
21
21
  import "./chunk-6A4IE3TI.js";
22
22
  import "./chunk-VAGHAQT2.js";