refactor: trim core barrel exports · openclaw/openclaw@11560f8
steipete
·
2026-05-02
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -21,14 +21,6 @@ import {
|
21 | 21 | shouldStripProviderAuthEnvVarsForAcpServer, |
22 | 22 | } from "./client-helpers.js"; |
23 | 23 | |
24 | | -export { |
25 | | -buildAcpClientStripKeys, |
26 | | -resolveAcpClientSpawnEnv, |
27 | | -resolveAcpClientSpawnInvocation, |
28 | | -resolvePermissionRequest, |
29 | | -shouldStripProviderAuthEnvVarsForAcpServer, |
30 | | -} from "./client-helpers.js"; |
31 | | - |
32 | 24 | type AcpClientOptions = { |
33 | 25 | cwd?: string; |
34 | 26 | serverCommand?: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -7,21 +7,12 @@ import { resolveCodexNativeWebSearchConfig } from "./codex-native-web-search.sha
|
7 | 7 | import { resolveDefaultModelForAgent } from "./model-selection.js"; |
8 | 8 | export { |
9 | 9 | buildCodexNativeWebSearchTool, |
10 | | -type CodexNativeSearchActivation, |
11 | | -type CodexNativeSearchPayloadPatchResult, |
12 | | -hasAvailableCodexAuth, |
13 | | -hasCodexNativeWebSearchTool, |
14 | | -isCodexNativeSearchEligibleModel, |
15 | 10 | patchCodexNativeWebSearchPayload, |
16 | 11 | resolveCodexNativeSearchActivation, |
17 | 12 | shouldSuppressManagedWebSearchTool, |
18 | 13 | } from "./codex-native-web-search-core.js"; |
19 | 14 | export { |
20 | | -type CodexNativeSearchContextSize, |
21 | | -type CodexNativeSearchMode, |
22 | | -type CodexNativeSearchUserLocation, |
23 | 15 | describeCodexNativeWebSearch, |
24 | | -type ResolvedCodexNativeWebSearchConfig, |
25 | 16 | resolveCodexNativeWebSearchConfig, |
26 | 17 | } from "./codex-native-web-search.shared.js"; |
27 | 18 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -35,9 +35,7 @@ import { clearCliSessionInStore } from "./session-store.js";
|
35 | 35 | import type { AgentCommandOpts } from "./types.js"; |
36 | 36 | |
37 | 37 | export { |
38 | | -claudeCliSessionTranscriptHasContent, |
39 | 38 | createAcpVisibleTextAccumulator, |
40 | | -resolveFallbackRetryPrompt, |
41 | 39 | sessionFileHasContent, |
42 | 40 | } from "./attempt-execution.helpers.js"; |
43 | 41 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { shouldHandleTextCommands } from "../commands-registry.js"; |
2 | | -import { emitResetCommandHooks } from "./commands-reset-hooks.js"; |
3 | 2 | import { maybeHandleResetCommand } from "./commands-reset.js"; |
4 | 3 | import type { |
5 | 4 | CommandHandler, |
6 | 5 | CommandHandlerResult, |
7 | 6 | HandleCommandsParams, |
8 | 7 | } from "./commands-types.js"; |
9 | | -export { emitResetCommandHooks } from "./commands-reset-hooks.js"; |
10 | 8 | let commandHandlersRuntimePromise: Promise<typeof import("./commands-handlers.runtime.js")> | null = |
11 | 9 | null; |
12 | 10 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -218,5 +218,3 @@ export const formatAuthLabel = (auth: { label: string; source: string }) => {
|
218 | 218 | } |
219 | 219 | return `${auth.label} (${auth.source})`; |
220 | 220 | }; |
221 | | - |
222 | | -export { resolveProfileOverride } from "./directive-handling.auth-profile.js"; |
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | export type { |
2 | 2 | BlockReplyContext, |
3 | 3 | GetReplyOptions, |
4 | | -ModelSelectedContext, |
5 | 4 | ReplyThreadingPolicy, |
6 | | -SourceReplyDeliveryMode, |
7 | 5 | TypingPolicy, |
8 | 6 | } from "./get-reply-options.types.js"; |
9 | | -export { getReplyPayloadMetadata, setReplyPayloadMetadata } from "./reply-payload.js"; |
10 | | -export type { ReplyPayload, ReplyPayloadMetadata } from "./reply-payload.js"; |
| 7 | +export { setReplyPayloadMetadata } from "./reply-payload.js"; |
| 8 | +export type { ReplyPayload } from "./reply-payload.js"; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -23,8 +23,6 @@ import {
|
23 | 23 | } from "./shared.js"; |
24 | 24 | import { formatConfigChannelsStatusLines } from "./status-config-format.js"; |
25 | 25 | |
26 | | -export { formatConfigChannelsStatusLines } from "./status-config-format.js"; |
27 | | - |
28 | 26 | export type ChannelsStatusOptions = { |
29 | 27 | json?: boolean; |
30 | 28 | probe?: boolean; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,6 @@ import { formatGitInstallLabel, type UpdateCheckResult } from "../../infra/updat
|
10 | 10 | import { normalizeOptionalString } from "../../shared/string-coerce.js"; |
11 | 11 | import { formatUpdateOneLiner, resolveUpdateAvailability } from "../status.update.js"; |
12 | 12 | |
13 | | -export { formatDurationPrecise } from "../../infra/format-time/format-duration.ts"; |
14 | 13 | export { formatTimeAgo } from "../../infra/format-time/format-relative.ts"; |
15 | 14 | |
16 | 15 | export type StatusOverviewRow = { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,15 +5,15 @@ import { createEmptyTaskAuditSummary } from "../tasks/task-registry.audit.shared
|
5 | 5 | import { createEmptyTaskRegistrySummary } from "../tasks/task-registry.summary.js"; |
6 | 6 | import { buildTailscaleHttpsUrl, resolveGatewayProbeSnapshot } from "./status.scan.shared.js"; |
7 | 7 | |
8 | | -export function buildColdStartUpdateResult(): UpdateCheckResult { |
| 8 | +function buildColdStartUpdateResult(): UpdateCheckResult { |
9 | 9 | return { |
10 | 10 | root: null, |
11 | 11 | installKind: "unknown", |
12 | 12 | packageManager: "unknown", |
13 | 13 | }; |
14 | 14 | } |
15 | 15 | |
16 | | -export function buildColdStartAgentLocalStatuses() { |
| 16 | +function buildColdStartAgentLocalStatuses() { |
17 | 17 | return { |
18 | 18 | defaultId: "main", |
19 | 19 | agents: [], |
@@ -43,7 +43,7 @@ export function buildColdStartStatusSummary() {
|
43 | 43 | }; |
44 | 44 | } |
45 | 45 | |
46 | | -export function shouldSkipStatusScanNetworkChecks(params: { |
| 46 | +function shouldSkipStatusScanNetworkChecks(params: { |
47 | 47 | coldStart: boolean; |
48 | 48 | hasConfiguredChannels: boolean; |
49 | 49 | all?: boolean; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -159,7 +159,7 @@ async function applyLocalStatusRpcFallback(params: {
|
159 | 159 | }; |
160 | 160 | } |
161 | 161 | |
162 | | -export function hasExplicitMemorySearchConfig(cfg: OpenClawConfig, agentId: string): boolean { |
| 162 | +function hasExplicitMemorySearchConfig(cfg: OpenClawConfig, agentId: string): boolean { |
163 | 163 | if ( |
164 | 164 | cfg.agents?.defaults && |
165 | 165 | Object.prototype.hasOwnProperty.call(cfg.agents.defaults, "memorySearch") |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。