altimate-receipts 0.6.1 → 0.6.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.
@@ -7,7 +7,7 @@ import {
7
7
  loadSession,
8
8
  selectSummary,
9
9
  upsertSection
10
- } from "./chunk-DBQWQVZZ.js";
10
+ } from "./chunk-72Y2GS7I.js";
11
11
 
12
12
  // src/report/sessions.ts
13
13
  async function deriveTargets(opts) {
@@ -259,4 +259,4 @@ export {
259
259
  renderTrends,
260
260
  upsertTrendsSection
261
261
  };
262
- //# sourceMappingURL=chunk-543NGQTN.js.map
262
+ //# sourceMappingURL=chunk-OQJHGUIN.js.map
package/dist/cli.js CHANGED
@@ -13,18 +13,19 @@ import {
13
13
  renderShareMarkdown,
14
14
  sliceByBranch,
15
15
  toDsseEnvelope
16
- } from "./chunk-54J2FEKI.js";
16
+ } from "./chunk-5R6W4W4R.js";
17
17
  import {
18
18
  computeTrends,
19
19
  deriveTargets,
20
20
  renderTrends,
21
21
  upsertTrendsSection
22
- } from "./chunk-543NGQTN.js";
22
+ } from "./chunk-OQJHGUIN.js";
23
23
  import {
24
24
  agentIds,
25
25
  anyDetected,
26
26
  buildReceipt,
27
27
  collectGuardrails,
28
+ cwdAtFirstGit,
28
29
  deriveFindings,
29
30
  deriveSpans,
30
31
  formatCostAlways,
@@ -43,7 +44,7 @@ import {
43
44
  selectSummary,
44
45
  upsertGuardrailsSection,
45
46
  verifyBundle
46
- } from "./chunk-DBQWQVZZ.js";
47
+ } from "./chunk-72Y2GS7I.js";
47
48
 
48
49
  // src/cli.ts
49
50
  import { spawnSync as spawnSync5 } from "child_process";
@@ -411,6 +412,10 @@ async function runHookPrePush(dialect, stdin, generate) {
411
412
  if (!isGitPush(payload.tool_input.command)) {
412
413
  return { exit: 0 };
413
414
  }
415
+ const locus = cwdAtFirstGit(payload.tool_input.command, process.cwd());
416
+ if (locus.kind === "known" && existsSync3(locus.path)) {
417
+ process.chdir(locus.path);
418
+ }
414
419
  pendingCommit = isGitCommit(payload.tool_input.command);
415
420
  } else if (!gitStdinPushesBranch(stdin)) {
416
421
  return { exit: 0 };