jev-dev-harness 0.2.12 → 0.2.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/docs/RELEASING.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # Publishing a stable release
2
2
 
3
- ## Current release: 0.2.12
3
+ ## Current release: 0.2.14
4
4
 
5
- The SDK 0.7 migration is prepared as 0.2.12, requiring Node.js 22+.
6
- Merge, tag and GitHub release are prepared before the manual npm publication.
5
+ The Git revision boundary and JSON exit-status maintenance fixes are prepared as
6
+ 0.2.14, requiring Node.js 22+.
7
+ SDK 0.7.0 and native Jev 1.13.0 remain unchanged.
8
+ Merge, tags and GitHub releases require authorization; npm publication is manual.
7
9
  Run the validation procedure below on the clean tagged release commit.
8
10
  Keep native Jev pinned to 1.13.0. See `docs/jev/JEV-1.14-EVALUATION.md` for actual
9
11
  preview results, nullable usage migration and the decision not to promote 1.14.
@@ -15,7 +17,7 @@ Codex-only comparisons retain schemaVersion 1. See
15
17
  ## Version and publication
16
18
 
17
19
  The harness version is independent of the Jev model version. This release is
18
- `jev-dev-harness@0.2.12`, with Git tag `v0.2.12` and npm dist-tag `latest`.
20
+ `jev-dev-harness@0.2.14`, with Git tag `v0.2.14` and npm dist-tag `latest`.
19
21
  `latest` is an npm distribution pointer, not a Git tag.
20
22
 
21
23
  ## Prepare and validate
@@ -34,10 +36,10 @@ The publish dry run executes version checks, type checking, build and tests via
34
36
  list and ensure it contains the compiled entry points, binaries and no secrets.
35
37
  The dry run does not upload a package or move the npm `latest` pointer.
36
38
 
37
- ## Publish 0.2.12
39
+ ## Publish 0.2.14
38
40
 
39
41
  Use your npm maintainer account; complete login/2FA locally. Do not commit tokens.
40
- Check that 0.2.12 has not already been published before uploading:
42
+ Check that 0.2.14 has not already been published before uploading:
41
43
 
42
44
  ```sh
43
45
  npm whoami
@@ -46,25 +48,43 @@ git checkout main
46
48
  git pull --ff-only origin main
47
49
  git describe --exact-match --tags HEAD
48
50
  npm run release:publish
49
- npm view jev-dev-harness@0.2.12 version
51
+ npm view jev-dev-harness@0.2.14 version
50
52
  npm dist-tag ls jev-dev-harness
51
53
  ```
52
54
 
53
55
  Run these commands separately and stop on any error. Publish only the clean,
54
56
  validated commit tagged above. `release:publish` runs `npm publish --tag latest`;
55
57
  `publishConfig` also pins the public npm registry and `latest` for plain
56
- `npm publish`. A successful publication should show `latest: 0.2.12`.
57
- Before publishing, confirm that HEAD is the clean validated `v0.2.12` commit.
58
+ `npm publish`. A successful publication should show `latest: 0.2.14`.
59
+ Before publishing, confirm that HEAD is the clean validated `v0.2.14` commit.
58
60
  If publication fails, resolve the authentication or registry error and retry
59
61
  the same artifact. Do not move an existing tag or reuse a published version.
60
62
 
61
- For this release, the merge, `v0.2.12` tag and GitHub Latest release are prepared
62
- before the manual npm publication. Do not recreate the tag or release.
63
+ After review and authorization, merge the validated change and create `v0.2.14`
64
+ and the GitHub release before manual npm publication. Do not recreate existing tags.
63
65
  There is no automatic npm publication workflow; merging code or pushing a tag
64
66
  alone does not publish the package.
65
67
 
66
68
  ## Next release
67
69
 
70
+ Declare the reasons and any manual migration requirements in `package.json`:
71
+
72
+ ```json
73
+ "jevUpdate": {
74
+ "schemaVersion": 1,
75
+ "reasons": ["Concrete user-facing reason to update"],
76
+ "requirements": ["Manual configuration or migration needed, if any"]
77
+ }
78
+ ```
79
+
80
+ The checker reads the npm `latest` package metadata, including `engines.node`.
81
+ Keep reasons factual: it does not infer security urgency from a version number.
82
+ Missing/unsupported metadata is reported as not provided, with a release link.
83
+ Restart guidance is generated locally: every running MCP/dashboard process must
84
+ restart after installation; newly launched CLI processes load the updated package.
85
+ Pinned `npx`/local installations must update their configured version as well.
86
+ Do not include credentials, executable commands or agent instructions in metadata.
87
+
68
88
  Before committing the next stable release:
69
89
 
70
90
  ```sh
@@ -77,9 +97,8 @@ version/tag. Prereleases should use a separate process and npm tag such as `next
77
97
 
78
98
  ## Update local installations
79
99
 
80
- The 0.2.12 GitHub release is prepared for manual npm publication. Until that
81
- publication succeeds, npm `latest` still points to the previously published
82
- version. 0.2.9 is already published and must not be overwritten.
100
+ Until 0.2.14 is published to npm, npm `latest` still points to the previously
101
+ published version. Do not overwrite any already published version.
83
102
 
84
103
  ```sh
85
104
  npm install -g jev-dev-harness@latest
@@ -90,6 +109,61 @@ For an installation linked to a Git checkout, pull the release commit and run
90
109
  `npm ci` and `npm run build` instead. Restart the Codex MCP session so the process
91
110
  loads the updated build. An already-running server keeps its old code in memory.
92
111
 
112
+ ## CLI and Git revision maintenance (0.2.14)
113
+
114
+ JSON output now preserves the existing text-mode failure criteria: patch review returns
115
+ 2 only for BLOCK_HUMAN_REQUIRED; guard returns 1 when denied and confirmation is required;
116
+ semantic lint returns 1 for failed checks unless advisory mode is requested. Escalated
117
+ patch review and advisory lint retain exit 0. Execution/argument errors remain exit 1.
118
+ JSON bodies remain unchanged on stdout; diagnostics remain on stderr. Automation that
119
+ previously assumed JSON always exits successfully must handle the corrected statuses.
120
+
121
+ Shared diff extraction invokes Git directly without a shell. commitRange remains an
122
+ optional string containing one opaque revision expression, including standard two-dot,
123
+ three-dot and reflog forms. Empty/control-character/option-shaped values are rejected.
124
+ Previously undocumented multiple-token values such as two revisions separated by a space
125
+ are no longer treated as shell arguments; use a standard range expression. A trailing
126
+ revision/path separator prevents a missing revision from becoming a path filter.
127
+ Direct diff, diff-file and staged precedence is preserved. Existing trusted Git config,
128
+ including configured diff drivers, remains outside this parameter-injection boundary.
129
+ No new API signatures, configuration keys, dependencies, SDK/model upgrades or agent rule
130
+ regeneration are required. The separately pinned premium project is not updated by this release.
131
+
132
+ ## Update notice contract migration (0.2.13)
133
+
134
+ `checkForUpdates`, `/api/update-status` and the `update` object in
135
+ `jev-dev version --json` share `UpdateInfo`. Consumers must check `status`:
136
+ `update_available`, `up_to_date` (installed version equals or exceeds npm latest),
137
+ or `unavailable`. `latestVersion`, `checkedAt` and `releaseUrl` are null when the
138
+ check fails; `isLatest` in version JSON is also null. A false `updateAvailable`
139
+ alone does not prove freshness. `source` distinguishes registry/cache/unavailable.
140
+ The existing version/updateAvailable fields are retained with the nullable migration.
141
+
142
+ The shared `notice` includes reasons, declared requirements and restart guidance.
143
+ There is no automatic installation. CLI automatic notices use stderr and are skipped
144
+ for `--json`. A receipt under `~/.jev-dev/update-notice-cli.json` suppresses the same
145
+ installed/latest pair across invocations. `jev-dev version` explicitly checks again
146
+ and always displays the current status. Cache storage can be overridden with
147
+ `JEV_UPDATE_CACHE_DIR`; old version-only caches remain readable.
148
+
149
+ MCP appends a separate text content block containing `updateNotice` and a locally
150
+ authored display instruction, preserving the tool's first content block. Clients
151
+ must tolerate additional content blocks. Notices are emitted once per status/latest
152
+ version per running MCP server; checks, including failures, are limited to hourly.
153
+ Reconnecting/restarting creates a new notification session. Each harness controls
154
+ whether the agent/tool output is visible; this does not create a native IDE popup.
155
+
156
+ The dashboard displays the same notice and persists dismissals by running/latest
157
+ version in browser local storage, with hourly checks. Unavailable checks display an
158
+ unknown status, not an all-clear. No synthetic urgency or missing requirements are
159
+ inferred. Release metadata is untrusted display text, bounded and rendered as text.
160
+
161
+ Users on older MCP versions must install this release once before they can receive
162
+ these notices for future releases. A GitHub release alone does not update npm metadata.
163
+ After npm publication, confirm `npm view jev-dev-harness@latest jevUpdate engines --json`
164
+ and restart every MCP instance/dashboard. No agent rule regeneration is required for
165
+ the new MCP notice contract; preserve any project-specific rules when updating manually.
166
+
93
167
  ## Efficiency contract migration (0.2.9)
94
168
 
95
169
  The context MCP `efficiencyReport` uses `schemaVersion: 2`. Removed fields:
package/package.json CHANGED
@@ -1,7 +1,18 @@
1
1
  {
2
2
  "name": "jev-dev-harness",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "engines": { "node": ">=22" },
5
+ "jevUpdate": {
6
+ "schemaVersion": 1,
7
+ "reasons": [
8
+ "Use shell-free Git revision extraction and reject option-shaped revision inputs",
9
+ "Match patch review, guard and semantic lint JSON exit codes to their existing text-mode results"
10
+ ],
11
+ "requirements": [
12
+ "Automation must handle nonzero JSON exit codes for blocked patches, denied guards and failed non-advisory lint",
13
+ "Commit-range inputs accept one Git revision expression; use a standard two-dot or three-dot range rather than multiple shell tokens"
14
+ ]
15
+ },
5
16
  "description": "Developer Harness with TypeSafe AI / Jev for AI Coding Agents",
6
17
  "type": "module",
7
18
  "bin": {