@davesheffer/hunch 1.22.1 → 1.22.2

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/README.md CHANGED
@@ -179,7 +179,7 @@ does not host that repository. Give teammates and CI normal Git access, keep cre
179
179
  the Git credential helper, and have one maintainer connect it:
180
180
 
181
181
  ```bash
182
- npm i -g @davesheffer/hunch@1.22.1
182
+ npm i -g @davesheffer/hunch@1.22.2
183
183
  hunch shared --repo git@github.com:acme/project-hunch-memory.git
184
184
  git add .gitignore .hunch/team.json
185
185
  git commit -m "chore: connect shared Hunch memory"
@@ -189,7 +189,7 @@ git push
189
189
  Teammates then install the same version and run:
190
190
 
191
191
  ```bash
192
- npm i -g @davesheffer/hunch@1.22.1
192
+ npm i -g @davesheffer/hunch@1.22.2
193
193
  git pull
194
194
  hunch init
195
195
  hunch doctor
@@ -707,17 +707,12 @@ export function commitAndPushHunch(hunchDir, message, opts) {
707
707
  if (!contractReady(opts.remote)
708
708
  || mergeRemote(hunchDir, env, CAPTURE_REMOTE_TIMEOUT_MS, opts.remote) === "failed")
709
709
  return "committed";
710
- // Hooks are disabled in the merge seam, but another process can still
711
- // rewrite Git configuration. Check once after merge and once at the
712
- // actual push seam; either refusal leaves the private commit local.
713
- if (unsafeOverlayPublication(hunchDir, opts.protectedRepoRoot) || !contractReady(opts.remote)) {
714
- console.error(`hunch: private memory was committed locally, but the overlay publication boundary changed during sync. Nothing was pushed.`);
715
- return "committed";
716
- }
717
710
  // Push tracked (not via run): a no-upstream/offline/rejected push must report
718
711
  // "committed", not overclaim "pushed" — the next flush's merge+push retries.
719
- if (unsafeOverlayPublication(hunchDir, opts.protectedRepoRoot) || !contractReady(opts.remote))
720
- return "committed";
712
+ // pushWithOneRemoteAdvanceRetry performs the publication and remote-contract
713
+ // proof immediately before its push seam. Repeating the same expensive proof
714
+ // twice here adds no intervening mutation boundary and materially slows large
715
+ // graph refreshes on process-spawn-sensitive platforms such as Windows.
721
716
  if (pushWithOneRemoteAdvanceRetry(hunchDir, env, opts.protectedRepoRoot, CAPTURE_REMOTE_TIMEOUT_MS, opts.remote))
722
717
  return "pushed";
723
718
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@davesheffer/hunch",
3
- "version": "1.22.1",
3
+ "version": "1.22.2",
4
4
  "mcpName": "io.github.davesheffer/hunch",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Dave Sheffer <dave.sheffer1@gmail.com>",
package/server.json CHANGED
@@ -7,13 +7,13 @@
7
7
  "source": "github"
8
8
  },
9
9
  "websiteUrl": "https://hunch-pi.vercel.app",
10
- "version": "1.22.1",
10
+ "version": "1.22.2",
11
11
  "packages": [
12
12
  {
13
13
  "registryType": "npm",
14
14
  "registryBaseUrl": "https://registry.npmjs.org",
15
15
  "identifier": "@davesheffer/hunch",
16
- "version": "1.22.1",
16
+ "version": "1.22.2",
17
17
  "runtimeHint": "npx",
18
18
  "packageArguments": [
19
19
  {