refactor: trim model planner exports · openclaw/openclaw@8e78c41
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ import path from "node:path";
|
3 | 3 | |
4 | 4 | export const CANONICAL_ROOT_MEMORY_FILENAME = "MEMORY.md"; |
5 | 5 | export const LEGACY_ROOT_MEMORY_FILENAME = "memory.md"; |
6 | | -export const ROOT_MEMORY_REPAIR_RELATIVE_DIR = ".openclaw-repair/root-memory"; |
| 6 | +const ROOT_MEMORY_REPAIR_RELATIVE_DIR = ".openclaw-repair/root-memory"; |
7 | 7 | |
8 | 8 | export function resolveCanonicalRootMemoryPath(workspaceDir: string): string { |
9 | 9 | return path.join(workspaceDir, CANONICAL_ROOT_MEMORY_FILENAME); |
@@ -17,7 +17,7 @@ export function resolveRootMemoryRepairDir(workspaceDir: string): string {
|
17 | 17 | return path.join(workspaceDir, ".openclaw-repair", "root-memory"); |
18 | 18 | } |
19 | 19 | |
20 | | -export function normalizeWorkspaceRelativePath(value: string): string { |
| 20 | +function normalizeWorkspaceRelativePath(value: string): string { |
21 | 21 | return value.trim().replace(/\\/g, "/").replace(/^\.\//, ""); |
22 | 22 | } |
23 | 23 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,24 +8,24 @@ import type {
|
8 | 8 | NormalizedModelCatalogRow, |
9 | 9 | } from "./types.js"; |
10 | 10 | |
11 | | -export type ManifestModelCatalogPlugin = { |
| 11 | +type ManifestModelCatalogPlugin = { |
12 | 12 | id: string; |
13 | 13 | providers?: readonly string[]; |
14 | 14 | modelCatalog?: Pick<ModelCatalog, "providers" | "aliases" | "suppressions" | "discovery">; |
15 | 15 | }; |
16 | 16 | |
17 | | -export type ManifestModelCatalogRegistry = { |
| 17 | +type ManifestModelCatalogRegistry = { |
18 | 18 | plugins: readonly ManifestModelCatalogPlugin[]; |
19 | 19 | }; |
20 | 20 | |
21 | | -export type ManifestModelCatalogPlanEntry = { |
| 21 | +type ManifestModelCatalogPlanEntry = { |
22 | 22 | pluginId: string; |
23 | 23 | provider: string; |
24 | 24 | discovery?: ModelCatalogDiscovery; |
25 | 25 | rows: readonly NormalizedModelCatalogRow[]; |
26 | 26 | }; |
27 | 27 | |
28 | | -export type ManifestModelCatalogConflict = { |
| 28 | +type ManifestModelCatalogConflict = { |
29 | 29 | mergeKey: string; |
30 | 30 | ref: string; |
31 | 31 | provider: string; |
@@ -34,7 +34,7 @@ export type ManifestModelCatalogConflict = {
|
34 | 34 | secondPluginId: string; |
35 | 35 | }; |
36 | 36 | |
37 | | -export type ManifestModelCatalogPlan = { |
| 37 | +type ManifestModelCatalogPlan = { |
38 | 38 | rows: readonly NormalizedModelCatalogRow[]; |
39 | 39 | entries: readonly ManifestModelCatalogPlanEntry[]; |
40 | 40 | conflicts: readonly ManifestModelCatalogConflict[]; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,13 +3,13 @@ import type { OpenClawProviderIndex } from "./provider-index/index.js";
|
3 | 3 | import { normalizeModelCatalogProviderId } from "./refs.js"; |
4 | 4 | import type { ModelCatalogProvider, NormalizedModelCatalogRow } from "./types.js"; |
5 | 5 | |
6 | | -export type ProviderIndexModelCatalogPlanEntry = { |
| 6 | +type ProviderIndexModelCatalogPlanEntry = { |
7 | 7 | provider: string; |
8 | 8 | pluginId: string; |
9 | 9 | rows: readonly NormalizedModelCatalogRow[]; |
10 | 10 | }; |
11 | 11 | |
12 | | -export type ProviderIndexModelCatalogPlan = { |
| 12 | +type ProviderIndexModelCatalogPlan = { |
13 | 13 | rows: readonly NormalizedModelCatalogRow[]; |
14 | 14 | entries: readonly ProviderIndexModelCatalogPlanEntry[]; |
15 | 15 | }; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。