refactor: trim command option type exports · openclaw/openclaw@056c8eb
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -39,7 +39,7 @@ const EMBEDDED_FALLBACK_META = {
|
39 | 39 | } as const; |
40 | 40 | const GATEWAY_TIMEOUT_FALLBACK_SESSION_PREFIX = "gateway-fallback-"; |
41 | 41 | |
42 | | -export type AgentCliOpts = { |
| 42 | +type AgentCliOpts = { |
43 | 43 | message: string; |
44 | 44 | agent?: string; |
45 | 45 | model?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -18,7 +18,7 @@ type CleanupResolvedPaths = {
|
18 | 18 | oauthInsideState: boolean; |
19 | 19 | }; |
20 | 20 | |
21 | | -export function collectWorkspaceDirs(cfg: OpenClawConfig | undefined): string[] { |
| 21 | +function collectWorkspaceDirs(cfg: OpenClawConfig | undefined): string[] { |
22 | 22 | const dirs = new Set<string>(); |
23 | 23 | const defaults = cfg?.agents?.defaults; |
24 | 24 | if (typeof defaults?.workspace === "string" && defaults.workspace.trim()) { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -35,7 +35,7 @@ import type { GatewayDaemonRuntime } from "./daemon-runtime.js";
|
35 | 35 | |
36 | 36 | export { resolveGatewayDevMode } from "./daemon-install-plan.shared.js"; |
37 | 37 | |
38 | | -export type GatewayInstallPlan = { |
| 38 | +type GatewayInstallPlan = { |
39 | 39 | programArguments: string[]; |
40 | 40 | workingDirectory?: string; |
41 | 41 | environment: Record<string, string | undefined>; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import type { DoctorPrompter } from "./doctor-prompter.js"; |
2 | 2 | |
3 | | -export type ServiceRepairPolicy = "auto" | "external"; |
| 3 | +type ServiceRepairPolicy = "auto" | "external"; |
4 | 4 | |
5 | 5 | export const SERVICE_REPAIR_POLICY_ENV = "OPENCLAW_SERVICE_REPAIR_POLICY"; |
6 | 6 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -322,7 +322,7 @@ function buildAnthropicHeaders(apiKey: string) {
|
322 | 322 | return headers; |
323 | 323 | } |
324 | 324 | |
325 | | -export type VerificationRequest = { |
| 325 | +type VerificationRequest = { |
326 | 326 | endpoint: string; |
327 | 327 | headers: Record<string, string>; |
328 | 328 | body: Record<string, unknown>; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -34,7 +34,7 @@ import {
|
34 | 34 | toSessionDisplayRows, |
35 | 35 | } from "./sessions-table.js"; |
36 | 36 | |
37 | | -export type SessionsCleanupOptions = { |
| 37 | +type SessionsCleanupOptions = { |
38 | 38 | store?: string; |
39 | 39 | agent?: string; |
40 | 40 | allAgents?: boolean; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。