fix(status): preserve summary facade

This commit is contained in:
Vincent Koc
2026-07-29 18:22:31 +08:00
parent c433a39e5d
commit b335c337bf
3 changed files with 13 additions and 1 deletions
+2
View File
@@ -101,6 +101,8 @@ const rootEntries = [
"openclaw.mjs!",
"src/index.ts!",
"src/entry.ts!",
// Shipped compatibility facade for statusCommand and getStatusSummary.
"src/commands/status.ts!",
"src/cli/daemon-cli.ts!",
"src/agents/code-mode.worker.ts!",
// Worker-thread and script entrypoints import contracts that production Knip cannot trace.
+9
View File
@@ -0,0 +1,9 @@
import { describe, expect, it } from "vitest";
import { getStatusSummary as getStatusSummaryFromOwner } from "../status/summary.js";
import { getStatusSummary as getStatusSummaryFromCommandFacade } from "./status.js";
describe("status command public API", () => {
it("preserves the shipped summary builder export", () => {
expect(getStatusSummaryFromCommandFacade).toBe(getStatusSummaryFromOwner);
});
});
+2 -1
View File
@@ -1,4 +1,5 @@
// Public status command barrel.
// Exposes CLI orchestration without importing owner implementation details.
// Keeps the shipped command facade while owner implementations live outside commands.
export { statusCommand } from "./status.command.js";
export { getStatusSummary } from "../status/summary.js";