@mutmutco/opencode-mmi 2.48.2 → 2.50.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/dist/index.js CHANGED
@@ -153,6 +153,10 @@ function shellBlockReason(command) {
153
153
  if (logDump && !boundedLogCommand(cmd)) {
154
154
  return 'Full log dumps flood context. Re-run with `Get-Content file.log -Tail 80`, `... | Select-Object -Last 80` (PowerShell), or `tail -n 80 file.log` (Bash).';
155
155
  }
156
+ if (/\bgit(?:\s+(?:-C\s+\S+|--no-pager|-c\s+\S+))*\s+push\b/i.test(cmd) &&
157
+ /(?:\s--delete\s|\s-d\s)/i.test(cmd)) {
158
+ return 'Raw `git push --delete` fails when GitHub already removed the branch on merge. Use `mmi-cli pr land <n> --json` or `mmi-cli pr merge <n>` for idempotent branch/worktree cleanup instead.';
159
+ }
156
160
  return undefined;
157
161
  }
158
162
  async function beforeTool(input, output) {
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@mutmutco/opencode-mmi",
3
- "version": "2.48.2",
3
+ "version": "2.50.0",
4
4
  "description": "MMI Future OpenCode adapter — registers mmi, secrets, stage, rcand, release, hotfix, bootstrap, grind, build, handoff, coop, and browser-automation skills, workflow commands, and deterministic guardrail hooks.",
5
5
  "type": "module",
6
+ "main": "./dist/index.js",
6
7
  "license": "UNLICENSED",
7
8
  "author": {
8
9
  "name": "MMI Future",
@@ -21,6 +22,10 @@
21
22
  ".": {
22
23
  "types": "./dist/index.d.ts",
23
24
  "import": "./dist/index.js"
25
+ },
26
+ "./server": {
27
+ "types": "./dist/index.d.ts",
28
+ "import": "./dist/index.js"
24
29
  }
25
30
  },
26
31
  "files": [
@@ -306,6 +306,11 @@ Auto-detection rules are also encoded in `cli/src/grind-policy.ts` (test fixture
306
306
 
307
307
  ## Phase 2 — Judge (fresh eyes)
308
308
 
309
+ **Re-sync before the diff pin (#1978):** `origin/development` can advance while a grind runs (sibling
310
+ PRs merge). Before each Phase 2 round, `git fetch origin development` and rebase the grind branch
311
+ onto `origin/development` (or merge when rebase is unsafe) so the pinned diff reflects **only this
312
+ grind's commits** — never reverse-deltas from merged siblings that would produce false blockers.
313
+
309
314
  **Mechanism:** spawn parallel lenses → each returns strict JSON → Phase 2b synthesizer produces
310
315
  `PanelReport` → triage uses **`PanelReport.blockers` only**. Not vote, not debate.
311
316
 
@@ -81,7 +81,8 @@ before building (fail fast; do not waste a full grind on a PR you cannot land).
81
81
  checkout to an up-to-date `development`). Base must be `development`. Never land promotion PRs.
82
82
  Cleanup is **automatic at the branch/PR boundary** — a successful land/merge removes that grind
83
83
  worktree + local branch and fast-forwards the checkout onto `development` (when its tree is clean);
84
- never hand-run `git checkout development` / `git worktree remove` afterward (#1606). For shared
84
+ never hand-run `git checkout development` / `git worktree remove` / `git push origin --delete` afterward
85
+ (#1606, #1995). For shared
85
86
  sequential same-repo work, make the execution group one branch/PR where possible; do not land each
86
87
  issue separately and then pretend the same active worktree continues. Active-batch PR:
87
88
  `pr land <n> --preserve-worktree --json` skips local cleanup; clean at end (#1888).