mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:50:43 +00:00
refactor: trim local type exports
This commit is contained in:
@@ -9,7 +9,7 @@ import {
|
||||
INTERNAL_RUNTIME_CONTEXT_END,
|
||||
} from "./internal-runtime-context.js";
|
||||
|
||||
export type AgentTaskCompletionInternalEvent = {
|
||||
type AgentTaskCompletionInternalEvent = {
|
||||
type: typeof AGENT_INTERNAL_EVENT_TYPE_TASK_COMPLETION;
|
||||
source: AgentInternalEventSource;
|
||||
childSessionKey: string;
|
||||
|
||||
@@ -5,16 +5,16 @@ export type CliCommandPluginLoadPolicy =
|
||||
| "always"
|
||||
| "text-only"
|
||||
| ((ctx: { argv: string[]; commandPath: string[]; jsonOutputMode: boolean }) => boolean);
|
||||
export type CliRouteConfigGuardPolicy = "never" | "always" | "when-suppressed";
|
||||
type CliRouteConfigGuardPolicy = "never" | "always" | "when-suppressed";
|
||||
export type CliPluginRegistryScope = "all" | "channels" | "configured-channels";
|
||||
export type CliPluginRegistryPolicy = {
|
||||
scope: CliPluginRegistryScope;
|
||||
};
|
||||
export type CliNetworkProxyPolicy = "default" | "bypass";
|
||||
export type CliNetworkProxyPolicyResolver =
|
||||
type CliNetworkProxyPolicyResolver =
|
||||
| CliNetworkProxyPolicy
|
||||
| ((ctx: { argv: string[]; commandPath: string[] }) => CliNetworkProxyPolicy);
|
||||
export type CliRoutedCommandId =
|
||||
type CliRoutedCommandId =
|
||||
| "health"
|
||||
| "status"
|
||||
| "gateway-status"
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
export type StructuredCommandPathMatchRule = {
|
||||
type StructuredCommandPathMatchRule = {
|
||||
pattern: readonly string[];
|
||||
exact?: boolean;
|
||||
};
|
||||
|
||||
export type CommandPathMatchRule = readonly string[] | StructuredCommandPathMatchRule;
|
||||
type CommandPathMatchRule = readonly string[] | StructuredCommandPathMatchRule;
|
||||
|
||||
type NormalizedCommandPathMatchRule = {
|
||||
pattern: readonly string[];
|
||||
|
||||
Reference in New Issue
Block a user