pm-context 2026.7.20 → 2026.7.23

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
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026.7.23 - 2026-07-23
4
+
5
+ ### Fixed
6
+
7
+ - Recommend pm merge reconcile (2026.7.22) over raw history-repair in Multi-agent merge safety docs ([pm-context-164t](https://github.com/unbraind/pm-context/blob/main/.agents/pm/issues/pm-context-164t.toon))
8
+
9
+ ### Other
10
+
11
+ - Adopt pm field-aware merge driver for multi-agent branch-merge safety ([pm-context-4apx](https://github.com/unbraind/pm-context/blob/main/.agents/pm/chores/pm-context-4apx.toon))
12
+
3
13
  ## 2026.7.14 - 2026-07-14
4
14
 
5
15
  ### Fixed
package/README.md CHANGED
@@ -116,3 +116,22 @@ Options:
116
116
  Project management is context management. `pm-context` makes that concrete by
117
117
  turning pm's source-of-truth items into portable context that can be reviewed,
118
118
  sent to another agent, or attached to a pull request.
119
+
120
+ ## Multi-agent merge safety
121
+
122
+ This repo tracks its project management in `.agents/pm/` and ships a committed `.gitattributes`
123
+ that maps those tracker artifacts to pm-cli's field-aware Git merge drivers, so concurrent-branch
124
+ tracker edits merge cleanly instead of hard-conflicting. The driver **definitions** live in
125
+ per-clone Git config; `npm install` / `npm ci` wires them automatically via the `prepare` script (a portable Node guard, `scripts/prepare-merge-driver.mjs`: it runs
126
+ `pm merge install` only when the `pm` CLI is on `PATH`, and no-ops cleanly otherwise so
127
+ production / `--omit=dev` installs are not broken; being Node-based it behaves identically
128
+ on POSIX shells and Windows `cmd.exe`). To (re)run manually: `npm run merge:install`.
129
+
130
+ After merging a branch that touched `.agents/pm/`, reconcile any residual history-hash drift with
131
+ **`pm merge reconcile`** (pm-cli ≥ 2026.7.22): preview with `pm merge reconcile --dry-run`, apply with
132
+ `pm merge reconcile --message "post-merge reconcile"`, then confirm with `pm validate`, which scans the
133
+ whole tracker and flags remaining history drift across **every** affected item (`pm merge reconcile`
134
+ itself lists each affected stream in its output; `pm history --verify <id>` spot-checks one item). The field-aware driver already unions every author's
135
+ content, so `reconcile` only re-greens the hash chain (no data loss) — see the authoritative
136
+ [pm-cli merge-safety guide](https://github.com/unbraind/pm-cli/blob/main/docs/MERGE_SAFETY.md). The
137
+ older blunt `pm history-repair --all` remains available as a lower-level primitive.
package/dist/index.js CHANGED
@@ -853,7 +853,7 @@ function setupCommands(api) {
853
853
  }
854
854
  export default defineExtension({
855
855
  name: "pm-context",
856
- version: "2026.7.20",
856
+ version: "2026.7.23",
857
857
  description: "Generate deterministic pm context packs for agent handoffs, reviews, and status briefs",
858
858
  activate(api) {
859
859
  setupCommands(api);
package/manifest.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pm-context",
3
- "version": "2026.7.20",
3
+ "version": "2026.7.23",
4
4
  "description": "Generate deterministic pm context packs for agent handoffs, reviews, and status briefs",
5
5
  "author": "@unbraind",
6
6
  "entry": "dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pm-context",
3
- "version": "2026.7.20",
3
+ "version": "2026.7.23",
4
4
  "description": "Generate deterministic pm context packs for agent handoffs, reviews, and status briefs",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,7 +26,9 @@
26
26
  "changelog:check": "pm-changelog --pm-root .agents/pm --mode replace --output CHANGELOG.md --all-release-tags --release-version-from-package --item-url-base https://github.com/unbraind/pm-context/blob/main/.agents/pm --check",
27
27
  "release:notes": "pm-changelog --pm-root .agents/pm --stdout --since-previous-tag --until-release-tag --release-version-from-package --item-url-base https://github.com/unbraind/pm-context/blob/main/.agents/pm --pm-bin ./node_modules/.bin/pm --github-step-summary",
28
28
  "release:check": "npm run typecheck && npm run build && npm test && npm run audit:prod && npm run pack:dry-run && npm run changelog:check",
29
- "prepublishOnly": "npm run release:check"
29
+ "prepublishOnly": "npm run release:check",
30
+ "prepare": "node scripts/prepare-merge-driver.mjs",
31
+ "merge:install": "pm merge install"
30
32
  },
31
33
  "keywords": [
32
34
  "pm-cli",
@@ -50,7 +52,7 @@
50
52
  },
51
53
  "devDependencies": {
52
54
  "@types/node": "^26.1.1",
53
- "@unbrained/pm-cli": "^2026.7.10",
55
+ "@unbrained/pm-cli": "^2026.7.22",
54
56
  "pm-changelog": "^2026.7.10",
55
57
  "typescript": "^7.0.2"
56
58
  },