mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-23 19:08:22 -06:00
perf: trim setup detection worker imports (#127053)
Amp-Thread-ID: https://ampcode.com/threads/T-01a021f4-76a1-76f1-8758-25d0466913af Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
committed by
GitHub
parent
ac724b1e41
commit
3b295b374c
@@ -1,41 +1,41 @@
|
||||
import { loadPersistedAuthProfileStore } from "../agents/auth-profiles/persisted.js";
|
||||
import {
|
||||
import type { loadPersistedAuthProfileStore } from "../agents/auth-profiles/persisted.js";
|
||||
import type {
|
||||
loadAuthProfileStoreForRuntime,
|
||||
updateAuthProfileStoreWithLock,
|
||||
} from "../agents/auth-profiles/store.js";
|
||||
import { readCodexCliActiveApiKey } from "../agents/cli-credentials.js";
|
||||
import type { readCodexCliActiveApiKey } from "../agents/cli-credentials.js";
|
||||
import type { AgentExecutionAuthBinding } from "../agents/execution-auth-binding.js";
|
||||
import {
|
||||
import type {
|
||||
detectInferenceBackends,
|
||||
type InferenceBackendKind,
|
||||
InferenceBackendKind,
|
||||
} from "../commands/onboard-inference.js";
|
||||
import type { OpenClawConfig } from "../config/types.openclaw.js";
|
||||
import { createSubsystemLogger } from "../logging/subsystem.js";
|
||||
import { enablePluginInConfig } from "../plugins/enable.js";
|
||||
import {
|
||||
type ProviderAuthChoiceMetadata,
|
||||
import type { enablePluginInConfig } from "../plugins/enable.js";
|
||||
import type {
|
||||
ProviderAuthChoiceMetadata,
|
||||
resolveManifestProviderAuthChoice,
|
||||
resolveManifestProviderAuthChoices,
|
||||
} from "../plugins/provider-auth-choices.js";
|
||||
import { resolvePluginProvidersCore } from "../plugins/providers.runtime.js";
|
||||
import type { resolvePluginProvidersCore } from "../plugins/providers.runtime.js";
|
||||
import type { SetupRecommendedInstall } from "../plugins/recommended-tool-installs.js";
|
||||
import type { ProviderAuthResult } from "../plugins/types.js";
|
||||
import type { RuntimeEnv } from "../runtime.js";
|
||||
import { resolveUserPath } from "../utils.js";
|
||||
import type { WizardPrompter } from "../wizard/prompts.js";
|
||||
import { loadAuthoredSetupConfig } from "./onboarding-welcome.js";
|
||||
import { probeLocalCommand } from "./probes.js";
|
||||
import type { probeLocalCommand } from "./probes.js";
|
||||
import type {
|
||||
SetupInferenceAuthOption,
|
||||
SetupInferenceManualProvider,
|
||||
SetupInferencePrepareOption,
|
||||
} from "./setup-inference-auth-options.js";
|
||||
import { resolveSetupInferenceCandidateBrandId } from "./setup-inference-brand.js";
|
||||
import {
|
||||
import type {
|
||||
captureSystemAgentOwnerPluginArtifacts,
|
||||
type createSystemAgentVerifiedInferenceBinding,
|
||||
type SystemAgentVerifiedInferenceBinding,
|
||||
type SystemAgentVerifiedInferenceDeps,
|
||||
createSystemAgentVerifiedInferenceBinding,
|
||||
SystemAgentVerifiedInferenceBinding,
|
||||
SystemAgentVerifiedInferenceDeps,
|
||||
} from "./verified-inference.js";
|
||||
|
||||
export const setupInferenceLog = createSubsystemLogger("system-agent/setup-inference");
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
import { parentPort, workerData } from "node:worker_threads";
|
||||
import { listRecommendedToolInstalls } from "../plugins/recommended-tool-installs.js";
|
||||
import {
|
||||
detectSetupInference,
|
||||
listManualSetupInferenceOptions,
|
||||
type SetupInferenceDetection,
|
||||
} from "./setup-inference.js";
|
||||
import type { SetupInferenceDetection } from "./setup-inference-core.js";
|
||||
import { detectSetupInference, listManualSetupInferenceOptions } from "./setup-inference-detect.js";
|
||||
|
||||
if (!parentPort) {
|
||||
throw new Error("setup inference detection worker requires a parent port");
|
||||
|
||||
Reference in New Issue
Block a user