refactor: trim crestodian and daemon internals · openclaw/openclaw@6f52b06
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,7 @@ import fs from "node:fs/promises";
|
2 | 2 | import path from "node:path"; |
3 | 3 | import { resolveStateDir } from "../config/paths.js"; |
4 | 4 | |
5 | | -export type CrestodianAuditEntry = { |
| 5 | +type CrestodianAuditEntry = { |
6 | 6 | timestamp: string; |
7 | 7 | operation: string; |
8 | 8 | summary: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,7 +7,7 @@ import {
|
7 | 7 | } from "./operations.js"; |
8 | 8 | import { loadCrestodianOverview, type CrestodianOverview } from "./overview.js"; |
9 | 9 | |
10 | | -export type CrestodianDialogueOptions = { |
| 10 | +type CrestodianDialogueOptions = { |
11 | 11 | loadOverview?: typeof loadCrestodianOverview; |
12 | 12 | planWithAssistant?: CrestodianAssistantPlanner; |
13 | 13 | }; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@ import {
|
5 | 5 | type FutureConfigActionBlock, |
6 | 6 | } from "../config/future-version-guard.js"; |
7 | 7 | |
8 | | -export async function readFutureConfigActionBlock( |
| 8 | +async function readFutureConfigActionBlock( |
9 | 9 | action: string, |
10 | 10 | ): Promise<FutureConfigActionBlock | null> { |
11 | 11 | try { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,7 @@ export function resolveHomeDir(env: Record<string, string | undefined>): string
|
13 | 13 | return home; |
14 | 14 | } |
15 | 15 | |
16 | | -export function resolveUserPathWithHome(input: string, home?: string): string { |
| 16 | +function resolveUserPathWithHome(input: string, home?: string): string { |
17 | 17 | const trimmed = input.trim(); |
18 | 18 | if (!trimmed) { |
19 | 19 | return trimmed; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。