A module move the report sees through
A React storefront moves its money helpers from src/utils/ to src/lib/, reorders them and lets the formatter spread them over more lines. Git shows one file deleted, one file added and an edited import: every line of the helpers is in the diff.
None of it changes what the code does. Aburi pairs each helper with its old self by fingerprint, so the report lists them as moved rather than as a removal and an unrelated addition. It reports no API or logic change anywhere, and the cart's calls into the helpers read as unchanged.
Configuration
json
{
"$schema": "https://aburi.dev/schema/aburi.config.v1.json",
"languages": ["@aburi/lang-typescript"],
"frameworks": ["@aburi/framework-react"]
}The change
diff
diff --git a/src/Cart.tsx b/src/Cart.tsx
index be8e1e5..4c67345 100644
--- a/src/Cart.tsx
+++ b/src/Cart.tsx
@@ -1,4 +1,4 @@
-import { formatCents, type Line, totalCents } from "./utils/money"
+import { formatCents, type Line, totalCents } from "./lib/money"
export function Cart({ lines }: { lines: Line[] }) {
if (lines.length === 0) return <p>Your cart is empty.</p>
diff --git a/src/lib/money.ts b/src/lib/money.ts
new file mode 100644
index 0000000..088ffc0
--- /dev/null
+++ b/src/lib/money.ts
@@ -0,0 +1,20 @@
+export type Line = {
+ sku: string
+ name: string
+ quantity: number
+ unitCents: number
+}
+
+export function formatCents(cents: number, currency = "USD"): string {
+ return new Intl.NumberFormat("en-US", {
+ style: "currency",
+ currency,
+ }).format(cents / 100)
+}
+
+export function totalCents(lines: Line[]): number {
+ return lines.reduce(
+ (sum, line) => sum + line.quantity * line.unitCents,
+ 0,
+ )
+}
diff --git a/src/utils/money.ts b/src/utils/money.ts
deleted file mode 100644
index 77eb6e4..0000000
--- a/src/utils/money.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-export type Line = { sku: string; name: string; quantity: number; unitCents: number }
-
-export function totalCents(lines: Line[]): number {
- return lines.reduce((sum, line) => sum + line.quantity * line.unitCents, 0)
-}
-
-export function formatCents(cents: number, currency = "USD"): string {
- return new Intl.NumberFormat("en-US", { style: "currency", currency }).format(cents / 100)
-}What aburi diff reports
Aburi diff: HEAD~1..HEAD
Summary: +0 added · -0 removed · ~0 changed · 3 moved · 0 moved+changed
🔀 Moved
3 moved (no semantic change)
Line:src/utils/money.ts→src/lib/money.ts(dropped-weak-match)formatCents,totalCents:src/utils/money.ts→src/lib/money.ts(logic-fingerprint+name-disambiguation)