Skip to content

Commit 049331b

Browse files
Vitozhu04claude
andauthored
chore(cli): keep the comment share of touched files from rising
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 193fcce commit 049331b

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

‎packages/cli/src/commands/cloud/render.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -854,8 +854,6 @@ interface SubmitOptions {
854854
reverseSessionId: string | undefined;
855855
}
856856

857-
// Only `reverse start` writes the id, after the server answered it, so a server without the
858-
// field (it rejects unknown ones) never receives it.
859857
type RenderRequestBody = CreateHyperframesRenderRequest & { reverse_session_id?: string };
860858

861859
function reverseSessionIdOf(project: ProjectInputSource): string | undefined {

‎packages/cli/src/commands/init.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,7 @@ function getSharedTemplateDir(): string {
277277
return resolveAssetDir(["..", "templates", "_shared"], ["templates", "_shared"]);
278278
}
279279

280-
// `reverse start --dir` may create the folder holding only its hyperframes.json; init keeps that file.
281-
function holdsOtherFiles(dir: string): boolean {
280+
function holdsFilesBesideProjectConfig(dir: string): boolean {
282281
return existsSync(dir) && readdirSync(dir).some((name) => name !== "hyperframes.json");
283282
}
284283

@@ -862,7 +861,7 @@ export default defineCommand({
862861
failCommand();
863862
}
864863

865-
if (holdsOtherFiles(destDir)) {
864+
if (holdsFilesBesideProjectConfig(destDir)) {
866865
console.error(c.error(`Directory already exists and is not empty: ${name}`));
867866
failCommand();
868867
}
@@ -1044,7 +1043,7 @@ export default defineCommand({
10441043
failCommand();
10451044
}
10461045

1047-
if (holdsOtherFiles(destDir)) {
1046+
if (holdsFilesBesideProjectConfig(destDir)) {
10481047
const overwrite = await clack.confirm({
10491048
message: `Directory ${c.accent(name)} already exists and is not empty. Overwrite?`,
10501049
initialValue: false,

‎packages/cli/src/commands/measure/probe.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ function normalize(info: VideoInfo, out: string): { path: string; fps: string }
6565
return { path: out, fps };
6666
}
6767

68-
/** What `measure probe` prints; `reverse start` prints the same for the video it opens. */
6968
// fallow-ignore-next-line complexity
7069
export function probeReport(video: string, normalizeTo?: string): object {
7170
const info = probeVideo(video);

0 commit comments

Comments
 (0)