Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/review-desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@dev.fast/review-protocol": "workspace:*"
},
"devDependencies": {
"@dev.fast/diffr": "0.1.7",
"@dev.fast/diffr": "0.1.8",
"@dev.fast/review-canvas": "workspace:*",
"@types/node": "24.12.2",
"jsdom": "29.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/review-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"typecheck": "pnpm -w exec tsc -p packages/review-protocol/tsconfig.json --noEmit"
},
"dependencies": {
"@dev.fast/diffr": "0.1.7",
"@dev.fast/diffr": "0.1.8",
"@dev.fast/json": "workspace:*",
"@dev.fast/trace-protocol": "workspace:*",
"zod": "4.4.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/review/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"zod": "4.4.3"
},
"devDependencies": {
"@dev.fast/diffr": "0.1.7",
"@dev.fast/diffr": "0.1.8",
"@dev.fast/json": "workspace:*",
"@dev.fast/local-vcs": "^0.1.0",
"@dev.fast/review-protocol": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/review/src/server/diffr-config.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ if (args[0] === 'config' && args[1] === 'show') {
let value = args[3]; try { value = JSON.parse(value); } catch {}
object[keys.at(-1)] = value;
fs.writeFileSync(state, JSON.stringify(config));
} else if (!args.includes('--config')) {
} else if (!args.includes('--no-index')) {
console.log(JSON.stringify({type:'start',version:4,lhs:{type:'revision',rev:'base'},rhs:{type:'revision',rev:'head'},files:[]}));
console.log(JSON.stringify({type:'complete',succeeded:0,failed:0}));
} else {
const temporary = args[args.indexOf('--config') + 1];
const temporary = require('node:path').join(process.env.XDG_CONFIG_HOME, 'diffr', 'config.toml');
fs.writeFileSync(${JSON.stringify(path.join(root, "test-config"))}, fs.readFileSync(temporary));
fs.writeFileSync(${JSON.stringify(path.join(root, "test-path"))}, temporary);
const mode = process.env.TEST_MODE;
Expand Down
15 changes: 9 additions & 6 deletions packages/review/src/server/diffr-config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { execFile } from "node:child_process";
import { mkdtemp, rm, writeFile } from "node:fs/promises";
import { mkdir, mkdtemp, rm, writeFile } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { promisify } from "node:util";
Expand Down Expand Up @@ -257,9 +257,9 @@ export async function testDiffrSummarizer(
};

delete options.api_key;
const configPath = join(directory, "config.toml");
await mkdir(join(directory, "diffr"));
await writeFile(
configPath,
join(directory, "diffr", "config.toml"),
stringify({
version: 1,
plugins: {
Expand All @@ -278,8 +278,6 @@ export async function testDiffrSummarizer(

const output = await diffr(
[
"--config",
configPath,
"--no-index",
"--format",
"ndjson",
Expand All @@ -290,7 +288,12 @@ export async function testDiffrSummarizer(
],
directory,
{
env: { ...process.env, GEMINI_API_KEY: apiKey, GOOGLE_API_KEY: "" },
env: {
...process.env,
XDG_CONFIG_HOME: directory,
GEMINI_API_KEY: apiKey,
GOOGLE_API_KEY: "",
},
signal: deadline,
},
);
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ verifyDepsBeforeRun: false
minimumReleaseAge: 10080
minimumReleaseAgeStrict: true
minimumReleaseAgeExclude:
- "@dev.fast/diffr@0.1.7"
- "@dev.fast/diffr@0.1.8"

overrides:
# @dev.fast/review declares a registry range; this override is what makes
Expand Down
Loading