refactor: trim local type exports

This commit is contained in:
Peter Steinberger
2026-05-02 01:44:49 +01:00
parent 23fd8a90f9
commit 5046cbc6f9
3 changed files with 6 additions and 6 deletions

View File

@@ -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;

View File

@@ -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"

View File

@@ -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[];