refactor: hide command helper internals

This commit is contained in:
Peter Steinberger
2026-05-02 08:34:11 +01:00
parent 45d0268f9a
commit a483e43f80
4 changed files with 11 additions and 8 deletions

View File

@@ -41,7 +41,7 @@ export type DaemonActionResponse = {
};
};
export function emitDaemonActionJson(payload: DaemonActionResponse) {
function emitDaemonActionJson(payload: DaemonActionResponse) {
defaultRuntime.writeJson(payload);
}
@@ -90,7 +90,7 @@ export function buildDaemonServiceSnapshot(service: GatewayService, loaded: bool
};
}
export function createNullWriter(): Writable {
function createNullWriter(): Writable {
return new Writable({
write(_chunk, _encoding, callback) {
callback();

View File

@@ -220,7 +220,7 @@ export function parseNpmPrefixSpec(raw: string): string | null {
return trimmed.slice("npm:".length).trim();
}
export const PREFERRED_CLAWHUB_FALLBACK_DECISION = {
const PREFERRED_CLAWHUB_FALLBACK_DECISION = {
FALLBACK_TO_NPM: "fallback_to_npm",
STOP: "stop",
} as const;