refactor: trim provider and command helper types

This commit is contained in:
Peter Steinberger
2026-05-02 03:35:04 +01:00
parent fe5faaacc3
commit 12213d57a6
3 changed files with 6 additions and 6 deletions

View File

@@ -8,13 +8,13 @@ import type { RuntimeVersionEnv } from "../version.js";
import { resolveRuntimeServiceVersion } from "../version.js";
import { normalizeProviderId } from "./provider-id.js";
export type ProviderAttributionVerification =
type ProviderAttributionVerification =
| "vendor-documented"
| "vendor-hidden-api-spec"
| "vendor-sdk-hook-only"
| "internal-runtime";
export type ProviderAttributionHook =
type ProviderAttributionHook =
| "request-headers"
| "default-headers"
| "user-agent-extra"

View File

@@ -1,10 +1,10 @@
import type { ToolDisplaySpec as ToolDisplaySpecBase } from "./tool-display-common.js";
export type ToolDisplaySpec = ToolDisplaySpecBase & {
type ToolDisplaySpec = ToolDisplaySpecBase & {
emoji?: string;
};
export type ToolDisplayConfig = {
type ToolDisplayConfig = {
version: number;
fallback: ToolDisplaySpec;
tools: Record<string, ToolDisplaySpec>;

View File

@@ -23,7 +23,7 @@ export type CommandCategory =
| "tools"
| "docks";
export type CommandArgType = "string" | "number" | "boolean";
type CommandArgType = "string" | "number" | "boolean";
export type CommandArgChoiceContext = {
cfg?: OpenClawConfig;
@@ -36,7 +36,7 @@ export type CommandArgChoiceContext = {
export type CommandArgChoice = string | { value: string; label: string };
export type CommandArgChoicesProvider = (context: CommandArgChoiceContext) => CommandArgChoice[];
type CommandArgChoicesProvider = (context: CommandArgChoiceContext) => CommandArgChoice[];
export type CommandArgDefinition = {
name: string;