@dev.fast/whiteboard 0.2.1-preview.20261006.99 → 0.2.1-preview.20261007.102
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/{account-alias-DOHN1RSH.js → account-alias-DLE9XZhi.js} +1 -1
- package/dist/agent-cli-DdfuiyOF.js +2 -0
- package/dist/{agent-cli-ChOq0ZuO.js → agent-cli-d0YJQNrR.js} +6 -6
- package/dist/{agent-client-CPQo7iTI.js → agent-client-DoaODH6I.js} +2 -2
- package/dist/{authoring-tools-Cr6Kpjsx.js → authoring-tools-Bvre8hN2.js} +2 -2
- package/dist/build-info.json +1 -1
- package/dist/{cli-hVgHcdsv.js → cli-DtolttUF.js} +1 -1
- package/dist/{cli-runner-CMmd6o_m.js → cli-runner-CSEH_mQN.js} +11 -11
- package/dist/cli.js +2 -2
- package/dist/{client-DFoh50W3.js → client-D01H2KOV.js} +2 -2
- package/dist/{desktop-discovery-DBO-PM2V.js → desktop-discovery-DK2HoBy5.js} +1 -1
- package/dist/{headless-host-CVMDNmLU.js → headless-host-YxYKMcI5.js} +3 -2
- package/dist/{local-data-CxLk75rx.js → local-data-Dy8AngNb.js} +37 -84
- package/dist/{mcp-QeF8vkdf.js → mcp-DGKhDPMs.js} +3 -3
- package/dist/{process-error-telemetry-CkiiadgB.js → process-error-telemetry-DN5BpZnc.js} +345 -13
- package/dist/{profile-4ry2f3AM.js → profile-B6jrb2QN.js} +1 -1
- package/dist/profile-D8XSrJYI.js +2 -0
- package/dist/{request-origin-D_4QIdoN.js → request-origin-BB2TENZ5.js} +1 -1
- package/dist/{review-telemetry-DEFnQsQ2.js → review-telemetry-2UlsdE4D.js} +2 -2
- package/dist/server/desktop-host.js +14 -303
- package/dist/sharing/index.d.ts +6 -10
- package/dist/sharing/index.js +1 -1
- package/dist/{src-DnwdaQ2r.js → src-DHiDJQDy.js} +7 -14
- package/dist/{stored-document-migration-DHeMpLMb.js → stored-document-migration-T9Uj5MkN.js} +1 -1
- package/dist/{tool-failure-C8zB73HV.js → tool-failure-Djeeax6q.js} +1 -1
- package/package.json +7 -8
- package/src/review-api/comparison-coverage.ts +6 -11
- package/src/review-api/http.ts +31 -4
- package/src/review-api/store.ts +0 -5
- package/src/server/desktop-server.ts +2 -13
- package/src/server/diffr-config.ts +170 -128
- package/src/server/headless-host.ts +3 -0
- package/src/server/structural-diff.ts +12 -39
- package/src/server/test-fixtures/diffr-ui-overrides.toml +38 -0
- package/dist/agent-cli-DzWfZr6G.js +0 -2
- package/dist/profile-Bh5FIrmf.js +0 -2
- package/src/server/diffr-languages.ts +0 -97
package/dist/profile-Bh5FIrmf.js
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { execFile } from "node:child_process";
|
|
2
|
-
import { lstatSync, readFileSync } from "node:fs";
|
|
3
|
-
import os from "node:os";
|
|
4
|
-
import path from "node:path";
|
|
5
|
-
import { promisify } from "node:util";
|
|
6
|
-
|
|
7
|
-
import { findReviewPackageRoot } from "@review/package-paths";
|
|
8
|
-
import { z } from "zod";
|
|
9
|
-
|
|
10
|
-
const exec = promisify(execFile);
|
|
11
|
-
|
|
12
|
-
const versionSchema = z.object({ version: z.string() });
|
|
13
|
-
|
|
14
|
-
const stampSchema = z.object({ version: z.string(), full: z.boolean() });
|
|
15
|
-
|
|
16
|
-
const pending = new Map<string, Promise<void>>();
|
|
17
|
-
|
|
18
|
-
function configuration(root: string) {
|
|
19
|
-
const installer = path.join(root, "bin/diffr-package/bin/fetch.mjs");
|
|
20
|
-
|
|
21
|
-
const { version } = versionSchema.parse(
|
|
22
|
-
JSON.parse(
|
|
23
|
-
readFileSync(path.join(root, "bin/diffr-package/package.json"), "utf8"),
|
|
24
|
-
),
|
|
25
|
-
);
|
|
26
|
-
|
|
27
|
-
const directory = path.join(
|
|
28
|
-
process.env.XDG_CACHE_HOME || path.join(os.homedir(), ".cache"),
|
|
29
|
-
"diffr",
|
|
30
|
-
version,
|
|
31
|
-
`${process.platform}-${process.arch}`,
|
|
32
|
-
"full",
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
return {
|
|
36
|
-
installer,
|
|
37
|
-
version,
|
|
38
|
-
directory,
|
|
39
|
-
binary: path.join(
|
|
40
|
-
directory,
|
|
41
|
-
process.platform === "win32" ? "diffr.exe" : "diffr",
|
|
42
|
-
),
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function installedFullDiffr(root: string): string | undefined {
|
|
47
|
-
try {
|
|
48
|
-
const { binary, directory, version } = configuration(root);
|
|
49
|
-
const stat = lstatSync(binary);
|
|
50
|
-
|
|
51
|
-
const stamp = stampSchema.parse(
|
|
52
|
-
JSON.parse(
|
|
53
|
-
readFileSync(path.join(directory, "diffr.stamp.json"), "utf8"),
|
|
54
|
-
),
|
|
55
|
-
);
|
|
56
|
-
|
|
57
|
-
if (
|
|
58
|
-
stat.isFile() &&
|
|
59
|
-
(process.platform === "win32" || stat.mode & 0o111) &&
|
|
60
|
-
stamp.full &&
|
|
61
|
-
stamp.version === version
|
|
62
|
-
)
|
|
63
|
-
return binary;
|
|
64
|
-
} catch {}
|
|
65
|
-
|
|
66
|
-
return undefined;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function installFullDiffr(
|
|
70
|
-
root = findReviewPackageRoot(import.meta.url),
|
|
71
|
-
): Promise<void> {
|
|
72
|
-
if (process.env.REVIEW_DIFFR_BINARY)
|
|
73
|
-
return Promise.reject(
|
|
74
|
-
new Error(
|
|
75
|
-
"An explicitly selected diffr executable is in use. Install its full edition separately.",
|
|
76
|
-
),
|
|
77
|
-
);
|
|
78
|
-
const { installer, directory } = configuration(root);
|
|
79
|
-
const current = pending.get(directory);
|
|
80
|
-
|
|
81
|
-
if (current) return current;
|
|
82
|
-
|
|
83
|
-
const task = exec(
|
|
84
|
-
process.execPath,
|
|
85
|
-
[installer, "--full", "--required", "--into", directory],
|
|
86
|
-
{
|
|
87
|
-
env: { ...process.env, ELECTRON_RUN_AS_NODE: "1" },
|
|
88
|
-
timeout: 180_000,
|
|
89
|
-
},
|
|
90
|
-
)
|
|
91
|
-
.then(() => {})
|
|
92
|
-
.finally(() => pending.delete(directory));
|
|
93
|
-
|
|
94
|
-
pending.set(directory, task);
|
|
95
|
-
|
|
96
|
-
return task;
|
|
97
|
-
}
|