@primitive.ai/prim 0.1.0-alpha.78 → 0.1.0-alpha.79

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.
@@ -35524,7 +35524,7 @@ function globalHookScript(spec) {
35524
35524
  const chainExit = spec.hookName === PRE_COMMIT.hookName ? "|| exit $?" : "|| true";
35525
35525
  const managedBlock = spec.hookName === POST_COMMIT.hookName ? postCommitHookBlock() : spec.hookName === POST_REWRITE.hookName ? postRewriteHookBlock() : void 0;
35526
35526
  const invocation = managedBlock ?? gatedShim(spec.binName);
35527
- const managedRepoGuard = managedBlock ? ` && ! grep -Fq '${blockMarkers(spec).start}' "$repo_hook" 2>/dev/null` : "";
35527
+ const managedRepoGuard = managedBlock ? ` && ! grep -Fq '${blockMarkers(spec).start.slice(0, -3)}'">>>" "$repo_hook" 2>/dev/null` : "";
35528
35528
  const beforeComments = managedBlock ? `${invocation}
35529
35529
  ` : "";
35530
35530
  const afterComments = managedBlock ? "" : `${invocation}
@@ -42561,7 +42561,14 @@ async function checkFeedbackCapability() {
42561
42561
  return { name: "feedback-api", status: "warn", detail: message.slice(0, 80) };
42562
42562
  }
42563
42563
  }
42564
+ function refreshOwnedGlobalHooksForHealth() {
42565
+ try {
42566
+ refreshOwnedGlobalHooks();
42567
+ } catch {
42568
+ }
42569
+ }
42564
42570
  async function collectChecks() {
42571
+ refreshOwnedGlobalHooksForHealth();
42565
42572
  const backend = await checkBackend();
42566
42573
  return [
42567
42574
  checkAuth(),
package/dist/index.js CHANGED
@@ -13254,7 +13254,7 @@ function globalHookScript(spec) {
13254
13254
  const chainExit = spec.hookName === PRE_COMMIT.hookName ? "|| exit $?" : "|| true";
13255
13255
  const managedBlock = spec.hookName === POST_COMMIT.hookName ? postCommitHookBlock() : spec.hookName === POST_REWRITE.hookName ? postRewriteHookBlock() : void 0;
13256
13256
  const invocation = managedBlock ?? gatedShim(spec.binName);
13257
- const managedRepoGuard = managedBlock ? ` && ! grep -Fq '${blockMarkers(spec).start}' "$repo_hook" 2>/dev/null` : "";
13257
+ const managedRepoGuard = managedBlock ? ` && ! grep -Fq '${blockMarkers(spec).start.slice(0, -3)}'">>>" "$repo_hook" 2>/dev/null` : "";
13258
13258
  const beforeComments = managedBlock ? `${invocation}
13259
13259
  ` : "";
13260
13260
  const afterComments = managedBlock ? "" : `${invocation}
@@ -19687,7 +19687,14 @@ async function checkFeedbackCapability() {
19687
19687
  return { name: "feedback-api", status: "warn", detail: message.slice(0, 80) };
19688
19688
  }
19689
19689
  }
19690
+ function refreshOwnedGlobalHooksForHealth() {
19691
+ try {
19692
+ refreshOwnedGlobalHooks();
19693
+ } catch {
19694
+ }
19695
+ }
19690
19696
  async function collectChecks() {
19697
+ refreshOwnedGlobalHooksForHealth();
19691
19698
  const backend = await checkBackend();
19692
19699
  return [
19693
19700
  checkAuth(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primitive.ai/prim",
3
- "version": "0.1.0-alpha.78",
3
+ "version": "0.1.0-alpha.79",
4
4
  "description": "CLI for Primitive's decision graph — passive decision capture, conflict gate, and team presence",
5
5
  "type": "module",
6
6
  "license": "MIT",