refactor(types): remove stale internal contract aliases · openclaw/openclaw@3d787b5
vincentkoc
·
2026-06-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -28,11 +28,6 @@ export type AgentToolModelConfig =
|
28 | 28 | timeoutMs?: number; |
29 | 29 | }; |
30 | 30 | |
31 | | -export type AgentEmbeddedHarnessConfig = { |
32 | | -/** Agent runtime id. Omitted uses "openclaw"; "auto" opts into plugin harness auto-selection. */ |
33 | | -runtime?: string; |
34 | | -}; |
35 | | - |
36 | 31 | /** Runtime selection policy attached to providers, models, and agent defaults. */ |
37 | 32 | export type AgentRuntimePolicyConfig = { |
38 | 33 | /** Agent runtime id. Omitted uses "openclaw"; "auto" opts into plugin harness auto-selection. */ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,6 @@
|
2 | 2 | import type { OperatorScope } from "../gateway/operator-scopes.js"; |
3 | 3 | import type { AgentEventPayload, AgentEventStream } from "../infra/agent-events.js"; |
4 | 4 | import type { |
5 | | -PluginHookAgentContext, |
6 | 5 | PluginHookBeforeToolCallEvent, |
7 | 6 | PluginHookBeforeToolCallResult, |
8 | 7 | PluginHookToolContext, |
@@ -67,14 +66,6 @@ export type PluginSessionExtensionProjection = {
|
67 | 66 | value: PluginJsonValue; |
68 | 67 | }; |
69 | 68 | |
70 | | -export type PluginSessionExtensionPatchParams = { |
71 | | -key: string; |
72 | | -pluginId: string; |
73 | | -namespace: string; |
74 | | -value?: PluginJsonValue; |
75 | | -unset?: boolean; |
76 | | -}; |
77 | | - |
78 | 69 | export type PluginToolPolicyDecision = |
79 | 70 | | PluginHookBeforeToolCallResult |
80 | 71 | | { |
@@ -99,10 +90,6 @@ export type PluginToolMetadataRegistration = {
|
99 | 90 | tags?: string[]; |
100 | 91 | }; |
101 | 92 | |
102 | | -export type PluginCommandContinuation = { |
103 | | -continueAgent?: boolean; |
104 | | -}; |
105 | | - |
106 | 93 | export type PluginControlUiDescriptor = { |
107 | 94 | id: string; |
108 | 95 | surface: "session" | "tool" | "run" | "settings"; |
@@ -331,5 +318,3 @@ export function buildPluginAgentTurnPrepareContext(params: {
|
331 | 318 | ...(append.length > 0 ? { appendContext: append.join("\n\n") } : {}), |
332 | 319 | }; |
333 | 320 | } |
334 | | - |
335 | | -export type PluginHostHookRunContext = PluginHookAgentContext; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,18 +3,7 @@ import fs from "node:fs";
|
3 | 3 | import path from "node:path"; |
4 | 4 | import { normalizeModelCatalog } from "@openclaw/model-catalog-core/model-catalog-normalize"; |
5 | 5 | import { normalizeModelCatalogProviderId } from "@openclaw/model-catalog-core/model-catalog-refs"; |
6 | | -import type { |
7 | | -ModelCatalog, |
8 | | -ModelCatalogAlias, |
9 | | -ModelCatalogCost, |
10 | | -ModelCatalogDiscovery, |
11 | | -ModelCatalogInput, |
12 | | -ModelCatalogModel, |
13 | | -ModelCatalogProvider, |
14 | | -ModelCatalogStatus, |
15 | | -ModelCatalogSuppression, |
16 | | -ModelCatalogTieredCost, |
17 | | -} from "@openclaw/model-catalog-core/model-catalog-types"; |
| 6 | +import type { ModelCatalog } from "@openclaw/model-catalog-core/model-catalog-types"; |
18 | 7 | import { normalizeOptionalString } from "../../packages/normalization-core/src/string-coerce.js"; |
19 | 8 | import { normalizeTrimmedStringList } from "../../packages/normalization-core/src/string-normalization.js"; |
20 | 9 | import type { ChannelConfigRuntimeSchema } from "../channels/plugins/types.config.js"; |
@@ -89,15 +78,6 @@ export type PluginManifestModelSupport = {
|
89 | 78 | modelPatterns?: string[]; |
90 | 79 | }; |
91 | 80 | |
92 | | -export type PluginManifestModelCatalogInput = ModelCatalogInput; |
93 | | -export type PluginManifestModelCatalogDiscovery = ModelCatalogDiscovery; |
94 | | -export type PluginManifestModelCatalogStatus = ModelCatalogStatus; |
95 | | -export type PluginManifestModelCatalogTieredCost = ModelCatalogTieredCost; |
96 | | -export type PluginManifestModelCatalogCost = ModelCatalogCost; |
97 | | -export type PluginManifestModelCatalogModel = ModelCatalogModel; |
98 | | -export type PluginManifestModelCatalogProvider = ModelCatalogProvider; |
99 | | -export type PluginManifestModelCatalogAlias = ModelCatalogAlias; |
100 | | -export type PluginManifestModelCatalogSuppression = ModelCatalogSuppression; |
101 | 81 | export type PluginManifestModelCatalog = ModelCatalog; |
102 | 82 | |
103 | 83 | export type PluginManifestModelPricingModelIdTransform = "version-dots"; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。