mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 14:20:44 +00:00
refactor: trim provider and command helper types
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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>;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user