refactor: hide runtime postbuild constants · openclaw/openclaw@331e065
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,7 @@ import { writeOfficialChannelCatalog } from "./write-official-channel-catalog.mj
|
10 | 10 | |
11 | 11 | const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), ".."); |
12 | 12 | const ROOT_RUNTIME_ALIAS_PATTERN = /^(?<base>.+\.(?:runtime|contract))-[A-Za-z0-9_-]+\.js$/u; |
13 | | -export const LEGACY_CLI_EXIT_COMPAT_CHUNKS = [ |
| 13 | +const LEGACY_CLI_EXIT_COMPAT_CHUNKS = [ |
14 | 14 | { |
15 | 15 | dest: "dist/memory-state-CcqRgDZU.js", |
16 | 16 | contents: "export function hasMemoryRuntime() {\n return false;\n}\n", |
@@ -27,7 +27,7 @@ export const LEGACY_CLI_EXIT_COMPAT_CHUNKS = [
|
27 | 27 | * |
28 | 28 | * Each entry: { src: repo-root-relative source, dest: dist-relative dest } |
29 | 29 | */ |
30 | | -export const STATIC_EXTENSION_ASSETS = [ |
| 30 | +const STATIC_EXTENSION_ASSETS = [ |
31 | 31 | // acpx MCP proxy — co-deployed alongside the acpx index bundle so that |
32 | 32 | // `path.resolve(dirname(import.meta.url), "mcp-proxy.mjs")` resolves correctly |
33 | 33 | // at runtime from the built ACPX extension directory. |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。