commit 14359ac713bb746f66091c8ecafc9742c2694582
parent 17309a7d39fbb3594d40d53f36601d20774a4e6d
Author: Henry Unite <unitehenry@gmail.com>
Date: Mon, 19 Oct 2026 21:02:30 +0000
chore: format with prettier (via scripts/format)
Diffstat:
2 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/command.ts b/command.ts
@@ -7,7 +7,10 @@ import type { OpenpodContext } from "./setup";
export async function cleanupOpenpod(
sessionID: string,
- deps: { writeLog: (message: string, level?: string) => void; openpodRoot: string },
+ deps: {
+ writeLog: (message: string, level?: string) => void;
+ openpodRoot: string;
+ },
): Promise<void> {
const { writeLog, openpodRoot } = deps;
if (!sessionID || typeof sessionID !== "string") return;
@@ -50,9 +53,7 @@ export async function cleanupOpenpod(
}
}
-export async function clearAllOpenpod(
- deps: OpenpodContext,
-): Promise<void> {
+export async function clearAllOpenpod(deps: OpenpodContext): Promise<void> {
const { writeLog, openpodRoot } = deps;
writeLog("[clear] starting full openpod cleanup");
diff --git a/prompt.ts b/prompt.ts
@@ -54,7 +54,7 @@ export async function registerPrompt(
const remoteResult = spawnSync(
"git",
["-C", source, "remote", "get-url", "origin"],
- { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }
+ { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] },
);
if (remoteResult.status === 0 && remoteResult.stdout.trim()) {
@@ -64,7 +64,7 @@ export async function registerPrompt(
const symrefResult = spawnSync(
"git",
["-C", source, "ls-remote", "--symref", remoteUrl, "HEAD"],
- { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }
+ { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] },
);
let cloneArgs = [remoteUrl, target];
@@ -79,7 +79,9 @@ export async function registerPrompt(
writeLog(`cloning latest default branch ${branch} from remote`);
cloneArgs = ["--branch", branch, remoteUrl, target];
} else {
- writeLog(`cloning from remote ${remoteUrl} (using remote default branch)`);
+ writeLog(
+ `cloning from remote ${remoteUrl} (using remote default branch)`,
+ );
}
} else {
writeLog(`cloning from remote ${remoteUrl} (default branch)`);
@@ -95,14 +97,16 @@ export async function registerPrompt(
// Fallback: no "origin" remote, clone from local source and try to
// respect its origin/HEAD if present.
- writeLog("no origin remote configured, falling back to local source clone");
+ writeLog(
+ "no origin remote configured, falling back to local source clone",
+ );
let args = [source, target];
const headRef = spawnSync(
"git",
["-C", source, "symbolic-ref", "--quiet", "refs/remotes/origin/HEAD"],
- { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] }
+ { encoding: "utf8", stdio: ["ignore", "pipe", "ignore"] },
);
if (headRef.status === 0 && headRef.stdout) {