mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:10:44 +00:00
refactor: trim crestodian and daemon internals
This commit is contained in:
@@ -2,7 +2,7 @@ import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { resolveStateDir } from "../config/paths.js";
|
||||
|
||||
export type CrestodianAuditEntry = {
|
||||
type CrestodianAuditEntry = {
|
||||
timestamp: string;
|
||||
operation: string;
|
||||
summary: string;
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
} from "./operations.js";
|
||||
import { loadCrestodianOverview, type CrestodianOverview } from "./overview.js";
|
||||
|
||||
export type CrestodianDialogueOptions = {
|
||||
type CrestodianDialogueOptions = {
|
||||
loadOverview?: typeof loadCrestodianOverview;
|
||||
planWithAssistant?: CrestodianAssistantPlanner;
|
||||
};
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
type FutureConfigActionBlock,
|
||||
} from "../config/future-version-guard.js";
|
||||
|
||||
export async function readFutureConfigActionBlock(
|
||||
async function readFutureConfigActionBlock(
|
||||
action: string,
|
||||
): Promise<FutureConfigActionBlock | null> {
|
||||
try {
|
||||
|
||||
@@ -13,7 +13,7 @@ export function resolveHomeDir(env: Record<string, string | undefined>): string
|
||||
return home;
|
||||
}
|
||||
|
||||
export function resolveUserPathWithHome(input: string, home?: string): string {
|
||||
function resolveUserPathWithHome(input: string, home?: string): string {
|
||||
const trimmed = input.trim();
|
||||
if (!trimmed) {
|
||||
return trimmed;
|
||||
|
||||
Reference in New Issue
Block a user