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.
- package/dist/{chunk-54J2FEKI.js → chunk-5R6W4W4R.js} +2 -2
- package/dist/{chunk-DBQWQVZZ.js → chunk-72Y2GS7I.js} +13 -3
- package/dist/chunk-72Y2GS7I.js.map +1 -0
- package/dist/{chunk-543NGQTN.js → chunk-OQJHGUIN.js} +2 -2
- package/dist/cli.js +8 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/mcp/server.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-DBQWQVZZ.js.map +0 -1
- /package/dist/{chunk-54J2FEKI.js.map → chunk-5R6W4W4R.js.map} +0 -0
- /package/dist/{chunk-543NGQTN.js.map → chunk-OQJHGUIN.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
loadSession,
|
|
8
8
|
selectSummary,
|
|
9
9
|
upsertSection
|
|
10
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
16
|
+
} from "./chunk-5R6W4W4R.js";
|
|
17
17
|
import {
|
|
18
18
|
computeTrends,
|
|
19
19
|
deriveTargets,
|
|
20
20
|
renderTrends,
|
|
21
21
|
upsertTrendsSection
|
|
22
|
-
} from "./chunk-
|
|
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-
|
|
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 };
|