@tempo-ai/visual-review 0.0.135 → 0.0.136-staging.1
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/bin.js +1 -1
- package/dist/{chunk-2UFZ3B2T.js → chunk-74VMTZO5.js} +85 -41
- package/dist/chunk-74VMTZO5.js.map +1 -0
- package/dist/{cli-VRX7XEKM.js → cli-UGQOXTPM.js} +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2UFZ3B2T.js.map +0 -1
- /package/dist/{cli-VRX7XEKM.js.map → cli-UGQOXTPM.js.map} +0 -0
package/dist/bin.js
CHANGED
|
@@ -7,7 +7,7 @@ async function main(argv = process.argv.slice(2)) {
|
|
|
7
7
|
const [command, ...commandArgs] = argv;
|
|
8
8
|
switch (command) {
|
|
9
9
|
case "capture":
|
|
10
|
-
return await (await import("./cli-
|
|
10
|
+
return await (await import("./cli-UGQOXTPM.js")).main(commandArgs);
|
|
11
11
|
case "claim":
|
|
12
12
|
return await (await import("./claim-WYI6X53C.js")).main(commandArgs);
|
|
13
13
|
case "report":
|
|
@@ -11474,7 +11474,7 @@ var require_source_map_consumer = __commonJS({
|
|
|
11474
11474
|
sourceMap = util.parseSourceMapInput(aSourceMap);
|
|
11475
11475
|
}
|
|
11476
11476
|
var version = util.getArg(sourceMap, "version");
|
|
11477
|
-
var
|
|
11477
|
+
var sections3 = util.getArg(sourceMap, "sections");
|
|
11478
11478
|
if (version != this._version) {
|
|
11479
11479
|
throw new Error("Unsupported version: " + version);
|
|
11480
11480
|
}
|
|
@@ -11484,7 +11484,7 @@ var require_source_map_consumer = __commonJS({
|
|
|
11484
11484
|
line: -1,
|
|
11485
11485
|
column: 0
|
|
11486
11486
|
};
|
|
11487
|
-
this._sections =
|
|
11487
|
+
this._sections = sections3.map(function(s) {
|
|
11488
11488
|
if (s.url) {
|
|
11489
11489
|
throw new Error("Support for url field in sections not implemented.");
|
|
11490
11490
|
}
|
|
@@ -39799,10 +39799,46 @@ import { readFile as readFile27 } from "fs/promises";
|
|
|
39799
39799
|
import path40 from "path";
|
|
39800
39800
|
|
|
39801
39801
|
// ../tempo-devserver/managed-dependency-migration.ts
|
|
39802
|
-
var import_yaml2 = __toESM(require_dist(), 1);
|
|
39803
39802
|
import { readFile as readFile4, unlink } from "fs/promises";
|
|
39804
39803
|
import path7 from "path";
|
|
39805
39804
|
|
|
39805
|
+
// ../tempo-devserver/managed-lockfile-parser.ts
|
|
39806
|
+
var import_yaml = __toESM(require_dist(), 1);
|
|
39807
|
+
var sections = ["dependencies", "devDependencies", "optionalDependencies"];
|
|
39808
|
+
function parseManagedLockfile(request) {
|
|
39809
|
+
if (request.packageManager === "pnpm") {
|
|
39810
|
+
const parsed = (0, import_yaml.parse)(request.source);
|
|
39811
|
+
const importer = request.importer || ".";
|
|
39812
|
+
const entry = parsed?.importers?.[importer] ?? (importer === "." ? parsed : null);
|
|
39813
|
+
if (!entry) return null;
|
|
39814
|
+
return Object.fromEntries(
|
|
39815
|
+
sections.map((section) => [
|
|
39816
|
+
section,
|
|
39817
|
+
Object.fromEntries(
|
|
39818
|
+
Object.entries(entry[section] ?? {}).map(([name, value]) => [
|
|
39819
|
+
name,
|
|
39820
|
+
typeof value === "object" && value !== null ? value.specifier : entry.specifiers?.[name]
|
|
39821
|
+
]).sort(([a], [b]) => a.localeCompare(b))
|
|
39822
|
+
)
|
|
39823
|
+
])
|
|
39824
|
+
);
|
|
39825
|
+
} else if (request.packageManager === "npm") {
|
|
39826
|
+
const importer = request.importer;
|
|
39827
|
+
const entry = JSON.parse(request.source).packages?.[importer];
|
|
39828
|
+
return entry ? Object.fromEntries(
|
|
39829
|
+
sections.map((section) => [
|
|
39830
|
+
section,
|
|
39831
|
+
Object.fromEntries(
|
|
39832
|
+
Object.entries(entry[section] ?? {}).sort(
|
|
39833
|
+
([a], [b]) => a.localeCompare(b)
|
|
39834
|
+
)
|
|
39835
|
+
)
|
|
39836
|
+
])
|
|
39837
|
+
) : null;
|
|
39838
|
+
}
|
|
39839
|
+
return null;
|
|
39840
|
+
}
|
|
39841
|
+
|
|
39806
39842
|
// ../../modules/abortable-wait/index.ts
|
|
39807
39843
|
function abortableWait(cancelledMessage) {
|
|
39808
39844
|
const error = () => {
|
|
@@ -40202,7 +40238,7 @@ var MissingRootDepsError = class extends TempoDevServerError {
|
|
|
40202
40238
|
// ../tempo-sdk/package.json
|
|
40203
40239
|
var package_default = {
|
|
40204
40240
|
name: "tempo-sdk",
|
|
40205
|
-
version: "0.0.
|
|
40241
|
+
version: "0.0.87",
|
|
40206
40242
|
publishConfig: {
|
|
40207
40243
|
tag: "sdk-v2-latest"
|
|
40208
40244
|
},
|
|
@@ -40448,7 +40484,7 @@ import { access as access2, readFile as readFile3 } from "fs/promises";
|
|
|
40448
40484
|
import path6 from "path";
|
|
40449
40485
|
|
|
40450
40486
|
// ../tempo-devserver/package-manager.ts
|
|
40451
|
-
var
|
|
40487
|
+
var import_yaml2 = __toESM(require_dist(), 1);
|
|
40452
40488
|
import { access, readdir, readFile as readFile2, realpath as realpath2 } from "fs/promises";
|
|
40453
40489
|
import path5 from "path";
|
|
40454
40490
|
import picomatch from "picomatch";
|
|
@@ -40543,7 +40579,7 @@ async function isOutsideAncestorPnpmWorkspace(packageRoot) {
|
|
|
40543
40579
|
async function pnpmWorkspaceListsPackage(workspaceFile, relativeDir) {
|
|
40544
40580
|
let parsed;
|
|
40545
40581
|
try {
|
|
40546
|
-
parsed = (0,
|
|
40582
|
+
parsed = (0, import_yaml2.parse)(await readFile2(workspaceFile, "utf-8"));
|
|
40547
40583
|
} catch {
|
|
40548
40584
|
return true;
|
|
40549
40585
|
}
|
|
@@ -40568,7 +40604,7 @@ async function readWorkspacePatterns(root2) {
|
|
|
40568
40604
|
const workspaceFile = path5.join(root2, "pnpm-workspace.yaml");
|
|
40569
40605
|
if (await fileExists(workspaceFile)) {
|
|
40570
40606
|
try {
|
|
40571
|
-
const parsed = (0,
|
|
40607
|
+
const parsed = (0, import_yaml2.parse)(await readFile2(workspaceFile, "utf-8"));
|
|
40572
40608
|
return Array.isArray(parsed?.packages) ? normalizeWorkspacePatterns(parsed.packages) : [];
|
|
40573
40609
|
} catch {
|
|
40574
40610
|
return null;
|
|
@@ -40757,11 +40793,11 @@ async function exclusive(key2, work, signal) {
|
|
|
40757
40793
|
if (preparations.get(key2) === result) preparations.delete(key2);
|
|
40758
40794
|
}
|
|
40759
40795
|
}
|
|
40760
|
-
var
|
|
40796
|
+
var sections2 = ["dependencies", "devDependencies", "optionalDependencies"];
|
|
40761
40797
|
function dependencies(source) {
|
|
40762
40798
|
const pkg = source === null ? {} : JSON.parse(source);
|
|
40763
40799
|
return Object.fromEntries(
|
|
40764
|
-
|
|
40800
|
+
sections2.map((section) => [
|
|
40765
40801
|
section,
|
|
40766
40802
|
Object.fromEntries(
|
|
40767
40803
|
Object.entries(pkg[section] ?? {}).sort(
|
|
@@ -40804,40 +40840,23 @@ async function managedLockfilePlan(packageRoot) {
|
|
|
40804
40840
|
packageManager: upgrade.packageManager
|
|
40805
40841
|
};
|
|
40806
40842
|
}
|
|
40807
|
-
async function lockedDependencies(packageRoot) {
|
|
40843
|
+
async function lockedDependencies(packageRoot, parse4) {
|
|
40808
40844
|
const plan = await managedLockfilePlan(packageRoot);
|
|
40809
40845
|
const lock = await readOptional(plan.lockfile);
|
|
40810
40846
|
if (lock === null) return null;
|
|
40811
|
-
|
|
40812
|
-
|
|
40813
|
-
|
|
40814
|
-
|
|
40815
|
-
|
|
40816
|
-
return Object.fromEntries(
|
|
40817
|
-
sections.map((section) => [
|
|
40818
|
-
section,
|
|
40819
|
-
Object.fromEntries(
|
|
40820
|
-
Object.entries(entry[section] ?? {}).map(([name, value]) => [
|
|
40821
|
-
name,
|
|
40822
|
-
typeof value === "object" && value !== null ? value.specifier : entry.specifiers?.[name]
|
|
40823
|
-
]).sort(([a], [b]) => a.localeCompare(b))
|
|
40824
|
-
)
|
|
40825
|
-
])
|
|
40826
|
-
);
|
|
40827
|
-
} else if (plan.packageManager === "npm") {
|
|
40828
|
-
const importer = path7.relative(plan.directory, packageRoot).split(path7.sep).join("/");
|
|
40829
|
-
const entry = JSON.parse(lock).packages?.[importer];
|
|
40830
|
-
return entry ? dependencies(JSON.stringify(entry)) : null;
|
|
40831
|
-
}
|
|
40832
|
-
return null;
|
|
40847
|
+
return await (parse4 ?? parseManagedLockfile)({
|
|
40848
|
+
packageManager: plan.packageManager,
|
|
40849
|
+
source: lock,
|
|
40850
|
+
importer: path7.relative(plan.directory, packageRoot).split(path7.sep).join("/")
|
|
40851
|
+
});
|
|
40833
40852
|
}
|
|
40834
|
-
async function hasLegacySdkLock(packageRoot) {
|
|
40853
|
+
async function hasLegacySdkLock(packageRoot, parse4) {
|
|
40835
40854
|
const raw = await readOptional(path7.join(packageRoot, "package.json"));
|
|
40836
40855
|
if (raw === null) return false;
|
|
40837
40856
|
const pkg = JSON.parse(raw);
|
|
40838
40857
|
const declared = pkg.dependencies?.["tempo-sdk"] ?? pkg.devDependencies?.["tempo-sdk"];
|
|
40839
40858
|
if (declared !== TEMPO_SDK_CHANNEL) return false;
|
|
40840
|
-
const entries = await lockedDependencies(packageRoot);
|
|
40859
|
+
const entries = await lockedDependencies(packageRoot, parse4);
|
|
40841
40860
|
const locked = entries?.dependencies?.["tempo-sdk"] ?? entries?.devDependencies?.["tempo-sdk"];
|
|
40842
40861
|
return typeof locked === "string" && locked !== declared && managedTempoSdkSpec(locked) === TEMPO_SDK_CHANNEL;
|
|
40843
40862
|
}
|
|
@@ -40860,7 +40879,12 @@ async function prepareManagedDependencyMigration(options) {
|
|
|
40860
40879
|
const current = await readOptional(manifest);
|
|
40861
40880
|
if (current === null) continue;
|
|
40862
40881
|
if (JSON.stringify(dependencies(current)) !== JSON.stringify(expected)) {
|
|
40863
|
-
if (JSON.stringify(
|
|
40882
|
+
if (JSON.stringify(
|
|
40883
|
+
await lockedDependencies(
|
|
40884
|
+
path7.dirname(manifest),
|
|
40885
|
+
options.parseManagedLockfile
|
|
40886
|
+
)
|
|
40887
|
+
) === JSON.stringify(dependencies(current)))
|
|
40864
40888
|
continue;
|
|
40865
40889
|
throw new ValidationError(
|
|
40866
40890
|
`Dependencies changed during Tempo's migration: ${manifest}. Update this package's lockfile with your package manager, then retry.`
|
|
@@ -40873,7 +40897,8 @@ async function prepareManagedDependencyMigration(options) {
|
|
|
40873
40897
|
key2,
|
|
40874
40898
|
...options.packageRoots ?? []
|
|
40875
40899
|
])) {
|
|
40876
|
-
if (!roots.has(root2) && await hasLegacySdkLock(root2
|
|
40900
|
+
if (!roots.has(root2) && await hasLegacySdkLock(root2, options.parseManagedLockfile))
|
|
40901
|
+
roots.add(root2);
|
|
40877
40902
|
}
|
|
40878
40903
|
if (!roots.size && !Object.keys(pending).length) return;
|
|
40879
40904
|
if (roots.size && options.updateSdk) {
|
|
@@ -51669,6 +51694,11 @@ var TempoHostProcess = class _TempoHostProcess {
|
|
|
51669
51694
|
// scripts.stop exists. In this mode the child was only a launcher; HTTP is
|
|
51670
51695
|
// the liveness authority until stop/restart runs the external teardown.
|
|
51671
51696
|
this.launcherFinished = false;
|
|
51697
|
+
// A clean launcher exit sets `stopped` at once but persists the ownership
|
|
51698
|
+
// record before `launcherFinished` flips. Readiness treats that window as
|
|
51699
|
+
// live and awaits it instead of reporting the launcher dead. Cleared if the
|
|
51700
|
+
// handoff fails.
|
|
51701
|
+
this.launcherHandoff = null;
|
|
51672
51702
|
this.readinessConfirmed = false;
|
|
51673
51703
|
this.launcherStopRequired = false;
|
|
51674
51704
|
this.terminalExitNotified = false;
|
|
@@ -51813,8 +51843,16 @@ ${output}` : "";
|
|
|
51813
51843
|
this.stopped = true;
|
|
51814
51844
|
const cleanLauncherExit = !this.intentionalStop && !this.readinessConfirmed && code === 0 && signal == null;
|
|
51815
51845
|
if (cleanLauncherExit && this.stopCommand) {
|
|
51816
|
-
|
|
51817
|
-
|
|
51846
|
+
this.launcherHandoff = (async () => {
|
|
51847
|
+
try {
|
|
51848
|
+
await this.onLauncherHandoff?.();
|
|
51849
|
+
} catch (error) {
|
|
51850
|
+
this.launcherHandoff = null;
|
|
51851
|
+
throw error;
|
|
51852
|
+
}
|
|
51853
|
+
this.launcherFinished = true;
|
|
51854
|
+
})();
|
|
51855
|
+
await this.launcherHandoff;
|
|
51818
51856
|
this.lastExitCrashed = false;
|
|
51819
51857
|
devLog("process:launcher_finished", {
|
|
51820
51858
|
pid: this.child.pid ?? null,
|
|
@@ -52062,6 +52100,8 @@ Hint: ${current.hint}` : "";
|
|
|
52062
52100
|
message: error.message
|
|
52063
52101
|
};
|
|
52064
52102
|
}
|
|
52103
|
+
await this.launcherHandoff?.catch(() => {
|
|
52104
|
+
});
|
|
52065
52105
|
if (this.stopped && !this.launcherFinished) {
|
|
52066
52106
|
return {
|
|
52067
52107
|
ok: false,
|
|
@@ -52147,9 +52187,12 @@ Hint: ${current.hint}` : "";
|
|
|
52147
52187
|
timeoutMs,
|
|
52148
52188
|
this.expectedProjectRoot,
|
|
52149
52189
|
this.expectedIdentity,
|
|
52150
|
-
() => !this.stopped || this.launcherFinished
|
|
52190
|
+
() => !this.stopped || this.launcherFinished || this.launcherHandoff !== null
|
|
52151
52191
|
);
|
|
52152
|
-
const
|
|
52192
|
+
const handoff = this.launcherHandoff;
|
|
52193
|
+
await handoff?.catch(() => {
|
|
52194
|
+
});
|
|
52195
|
+
const publicUrl = handoff && !this.launcherFinished ? null : probeResult.url;
|
|
52153
52196
|
if (!publicUrl) {
|
|
52154
52197
|
const crashed = this.lastExitCrashed;
|
|
52155
52198
|
const probeBlocked = !crashed && !this.stopped && !probeResult.sawResponder;
|
|
@@ -53237,6 +53280,7 @@ var TempoDevServer = class _TempoDevServer {
|
|
|
53237
53280
|
projectRoot: this.projectRoot,
|
|
53238
53281
|
tempoRoot: this.tempoRoot,
|
|
53239
53282
|
packageRoots: options.packageRoots,
|
|
53283
|
+
parseManagedLockfile: this.config.parseManagedLockfile,
|
|
53240
53284
|
// The legacy repair is needed once per runtime, not on every canvas
|
|
53241
53285
|
// edit/admission. New managed edits always have the cheap journal check.
|
|
53242
53286
|
checkLegacySdkLock: !this.checkedLegacyDependencyLock,
|
|
@@ -63797,4 +63841,4 @@ export {
|
|
|
63797
63841
|
buildBaselineCaptureArgs,
|
|
63798
63842
|
main
|
|
63799
63843
|
};
|
|
63800
|
-
//# sourceMappingURL=chunk-
|
|
63844
|
+
//# sourceMappingURL=chunk-74VMTZO5.js.map
|