@dev.fast/whiteboard 0.2.1-preview.20261006.99 → 0.2.1-preview.20261007.101

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.
Files changed (37) hide show
  1. package/dist/{account-alias-DOHN1RSH.js → account-alias-DLE9XZhi.js} +1 -1
  2. package/dist/agent-cli-DdfuiyOF.js +2 -0
  3. package/dist/{agent-cli-ChOq0ZuO.js → agent-cli-d0YJQNrR.js} +6 -6
  4. package/dist/{agent-client-CPQo7iTI.js → agent-client-DoaODH6I.js} +2 -2
  5. package/dist/{authoring-tools-Cr6Kpjsx.js → authoring-tools-Bvre8hN2.js} +2 -2
  6. package/dist/build-info.json +1 -1
  7. package/dist/{cli-hVgHcdsv.js → cli-DtolttUF.js} +1 -1
  8. package/dist/{cli-runner-CMmd6o_m.js → cli-runner-CSEH_mQN.js} +11 -11
  9. package/dist/cli.js +2 -2
  10. package/dist/{client-DFoh50W3.js → client-D01H2KOV.js} +2 -2
  11. package/dist/{desktop-discovery-DBO-PM2V.js → desktop-discovery-DK2HoBy5.js} +1 -1
  12. package/dist/{headless-host-CVMDNmLU.js → headless-host-YxYKMcI5.js} +3 -2
  13. package/dist/{local-data-CxLk75rx.js → local-data-Dy8AngNb.js} +37 -84
  14. package/dist/{mcp-QeF8vkdf.js → mcp-DGKhDPMs.js} +3 -3
  15. package/dist/{process-error-telemetry-CkiiadgB.js → process-error-telemetry-DN5BpZnc.js} +345 -13
  16. package/dist/{profile-4ry2f3AM.js → profile-B6jrb2QN.js} +1 -1
  17. package/dist/profile-D8XSrJYI.js +2 -0
  18. package/dist/{request-origin-D_4QIdoN.js → request-origin-BB2TENZ5.js} +1 -1
  19. package/dist/{review-telemetry-DEFnQsQ2.js → review-telemetry-2UlsdE4D.js} +2 -2
  20. package/dist/server/desktop-host.js +14 -303
  21. package/dist/sharing/index.d.ts +6 -10
  22. package/dist/sharing/index.js +1 -1
  23. package/dist/{src-DnwdaQ2r.js → src-DHiDJQDy.js} +7 -14
  24. package/dist/{stored-document-migration-DHeMpLMb.js → stored-document-migration-T9Uj5MkN.js} +1 -1
  25. package/dist/{tool-failure-C8zB73HV.js → tool-failure-Djeeax6q.js} +1 -1
  26. package/package.json +8 -9
  27. package/src/review-api/comparison-coverage.ts +6 -11
  28. package/src/review-api/http.ts +31 -4
  29. package/src/review-api/store.ts +0 -5
  30. package/src/server/desktop-server.ts +2 -13
  31. package/src/server/diffr-config.ts +170 -128
  32. package/src/server/headless-host.ts +3 -0
  33. package/src/server/structural-diff.ts +12 -39
  34. package/src/server/test-fixtures/diffr-ui-overrides.toml +38 -0
  35. package/dist/agent-cli-DzWfZr6G.js +0 -2
  36. package/dist/profile-Bh5FIrmf.js +0 -2
  37. package/src/server/diffr-languages.ts +0 -97
@@ -0,0 +1,38 @@
1
+ # Overrides saved by Whiteboard 0.1.10. Migration must retain these comments.
2
+ version = 1
3
+
4
+ [plugins.bundled.context]
5
+ enabled = false # Collapse unchanged lines
6
+ lines = 17 # Context lines
7
+
8
+ [plugins.bundled.test-bodies]
9
+ enabled = false # Collapse test bodies
10
+
11
+ [plugins.bundled.deleted-bodies]
12
+ enabled = false # Collapse deleted function bodies
13
+
14
+ [plugins.bundled.removed-runs]
15
+ enabled = false # Collapse long removed stretches
16
+
17
+ [plugins.bundled.group]
18
+ enabled = false # Group adjacent folds; retired
19
+
20
+ [plugins.bundled.hide-files]
21
+ enabled = true # Hide files by tag
22
+ tags = ["test", "generated"]
23
+ deleted = false # Hide deleted files
24
+
25
+ [plugins.bundled.summarize]
26
+ enabled = true # Enable summaries
27
+ provider = "openai" # Provider
28
+ api_key = "synthetic-key" # API key
29
+ model = "custom-model" # Model
30
+ endpoint = "http://127.0.0.1:9/v1" # Endpoint URL
31
+ system_prompt = ''' Use my exact custom instructions.
32
+ Keep # inside the prompt, and answer with JSON if I ask for it.
33
+ ''' # Prompt
34
+ tests = false # Include tests
35
+ max_concurrency = 2 # Old ignored option
36
+
37
+ [diff]
38
+ byte_limit = 123456 # Unrelated file-only override
@@ -1,2 +0,0 @@
1
- import { n as runReviewAgentCli } from "./agent-cli-ChOq0ZuO.js";
2
- export { runReviewAgentCli };
@@ -1,2 +0,0 @@
1
- import { t as openReviewProfile } from "./profile-4ry2f3AM.js";
2
- export { openReviewProfile };
@@ -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
- }