mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:50:46 +00:00
refactor: hide command helper internals
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user