mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-15 08:40:46 +08:00
重构主控编排与运行时预热链路,统一工作区提示词/专家调度协议并补齐 wiki 记忆注入与写回闭环。
同时收敛启动与运维脚本默认行为(含 wiki worker)、更新 Admin 可观测性与相关测试,降低首轮时延并提高运行稳定性。 Made-with: Cursor
This commit is contained in:
parent
4a23b715a2
commit
dbbe3add6a
14438 changed files with 2693620 additions and 2546 deletions
69
openclaw/test/vitest/vitest.commands-light-paths.mjs
Normal file
69
openclaw/test/vitest/vitest.commands-light-paths.mjs
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
const normalizeRepoPath = (value) => value.replaceAll("\\", "/");
|
||||
|
||||
const commandsLightEntries = [
|
||||
{ source: "src/commands/cleanup-utils.ts", test: "src/commands/cleanup-utils.test.ts" },
|
||||
{
|
||||
source: "src/commands/dashboard.links.ts",
|
||||
test: "src/commands/dashboard.links.test.ts",
|
||||
},
|
||||
{ source: "src/commands/doctor-browser.ts", test: "src/commands/doctor-browser.test.ts" },
|
||||
{
|
||||
source: "src/commands/doctor-gateway-auth-token.ts",
|
||||
test: "src/commands/doctor-gateway-auth-token.test.ts",
|
||||
},
|
||||
{
|
||||
source: "src/commands/gateway-status/helpers.ts",
|
||||
test: "src/commands/gateway-status/helpers.test.ts",
|
||||
},
|
||||
{
|
||||
source: "src/commands/sandbox-formatters.ts",
|
||||
test: "src/commands/sandbox-formatters.test.ts",
|
||||
},
|
||||
{
|
||||
source: "src/commands/status-json-command.ts",
|
||||
test: "src/commands/status-json-command.test.ts",
|
||||
},
|
||||
{
|
||||
source: "src/commands/status-json-payload.ts",
|
||||
test: "src/commands/status-json-payload.test.ts",
|
||||
},
|
||||
{
|
||||
source: "src/commands/status-json-runtime.ts",
|
||||
test: "src/commands/status-json-runtime.test.ts",
|
||||
},
|
||||
{
|
||||
source: "src/commands/status-overview-rows.ts",
|
||||
test: "src/commands/status-overview-rows.test.ts",
|
||||
},
|
||||
{
|
||||
source: "src/commands/status-overview-surface.ts",
|
||||
test: "src/commands/status-overview-surface.test.ts",
|
||||
},
|
||||
{
|
||||
source: "src/commands/status-overview-values.ts",
|
||||
test: "src/commands/status-overview-values.test.ts",
|
||||
},
|
||||
{ source: "src/commands/text-format.ts", test: "src/commands/text-format.test.ts" },
|
||||
];
|
||||
|
||||
const commandsLightIncludePatternByFile = new Map(
|
||||
commandsLightEntries.flatMap(({ source, test }) => [
|
||||
[source, test],
|
||||
[test, test],
|
||||
]),
|
||||
);
|
||||
|
||||
export const commandsLightSourceFiles = commandsLightEntries.map(({ source }) => source);
|
||||
export const commandsLightTestFiles = commandsLightEntries.map(({ test }) => test);
|
||||
|
||||
export function isCommandsLightTarget(file) {
|
||||
return commandsLightIncludePatternByFile.has(normalizeRepoPath(file));
|
||||
}
|
||||
|
||||
export function isCommandsLightTestFile(file) {
|
||||
return commandsLightTestFiles.includes(normalizeRepoPath(file));
|
||||
}
|
||||
|
||||
export function resolveCommandsLightIncludePattern(file) {
|
||||
return commandsLightIncludePatternByFile.get(normalizeRepoPath(file)) ?? null;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue