mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
fix(status): preserve summary facade
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
});
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user