





















@@ -32,6 +32,7 @@ import {
3232import { resolveContextEngineOwnerPluginId } from "../../../context-engine/registry.js";
3333import { buildContextEngineRuntimeSettings } from "../../../context-engine/runtime-settings.js";
3434import type { AssembleResult } from "../../../context-engine/types.js";
35+import { diagnosticErrorCategory } from "../../../infra/diagnostic-error-metadata.js";
3536import { emitTrustedDiagnosticEvent } from "../../../infra/diagnostic-events.js";
3637import { resolveDiagnosticModelContentCapturePolicy } from "../../../infra/diagnostic-llm-content.js";
3738import {
@@ -150,6 +151,7 @@ import {
150151createCodeModeTools,
151152resolveCodeModeConfig,
152153} from "../../code-mode.js";
154+import { resolveUserTimezone } from "../../date-time.js";
153155import { DEFAULT_CONTEXT_TOKENS } from "../../defaults.js";
154156import { resolveOpenClawReferencePaths } from "../../docs-path.js";
155157import {
@@ -255,6 +257,10 @@ import { DEFAULT_BOOTSTRAP_FILENAME, type WorkspaceBootstrapFile } from "../../w
255257import { isRunnerAbortError } from "../abort.js";
256258import { isCacheTtlEligibleProvider, readLastCacheTtlTimestamp } from "../cache-ttl.js";
257259import { resolveCompactionTimeoutMs } from "../compaction-safety-timeout.js";
260+import {
261+rotateTranscriptAfterCompaction,
262+shouldRotateCompactionTranscript,
263+} from "../compaction-successor-transcript.js";
258264import { runContextEngineMaintenance } from "../context-engine-maintenance.js";
259265import { applyFinalEffectiveToolPolicy } from "../effective-tool-policy.js";
260266import { buildEmbeddedExtensionFactories } from "../extensions.js";
@@ -334,14 +340,24 @@ import { splitSdkTools } from "../tool-split.js";
334340import { mapThinkingLevel } from "../utils.js";
335341import { flushPendingToolResultsAfterIdle } from "../wait-for-idle-before-flush.js";
336342import { abortable as abortableWithSignal } from "./abortable.js";
343+import { releaseEmbeddedAttemptSessionLockForAbort } from "./attempt-abort.js";
344+import { resolveAttemptWorkspaceBootstrapRouting } from "./attempt-bootstrap-routing.js";
345+import { configureEmbeddedAttemptHttpRuntime } from "./attempt-http-runtime.js";
337346import { createEmbeddedAgentSessionWithResourceLoader } from "./attempt-session.js";
347+import {
348+createEmbeddedRunStageTracker,
349+formatEmbeddedRunStageSummary,
350+shouldWarnEmbeddedRunStageSummary,
351+} from "./attempt-stage-timing.js";
352+import { buildAttemptSystemPrompt } from "./attempt-system-prompt.js";
338353import {
339354applyEmbeddedAttemptToolsAllow,
340355mergeForcedEmbeddedAttemptToolsAllow,
341356resolveEmbeddedAttemptToolConstructionPlan,
342357shouldCreateBundleLspRuntimeForAttempt,
343358shouldCreateBundleMcpRuntimeForAttempt,
344359} from "./attempt-tool-construction-plan.js";
360+import { flushEmbeddedAttemptTrajectoryRecorder } from "./attempt-trajectory-flush-cleanup.js";
345361import {
346362resolveAttemptTrajectoryTerminal,
347363resolveTerminalAssistantTexts,
@@ -357,23 +373,6 @@ import {
357373isPrimaryBootstrapRun,
358374remapInjectedContextFilesToWorkspace,
359375} from "./attempt.bootstrap-context.js";
360-export { buildContextEnginePromptCacheInfo } from "./attempt.context-engine-helpers.js";
361-import { diagnosticErrorCategory } from "../../../infra/diagnostic-error-metadata.js";
362-import { resolveUserTimezone } from "../../date-time.js";
363-import {
364-rotateTranscriptAfterCompaction,
365-shouldRotateCompactionTranscript,
366-} from "../compaction-successor-transcript.js";
367-import { releaseEmbeddedAttemptSessionLockForAbort } from "./attempt-abort.js";
368-import { resolveAttemptWorkspaceBootstrapRouting } from "./attempt-bootstrap-routing.js";
369-import { configureEmbeddedAttemptHttpRuntime } from "./attempt-http-runtime.js";
370-import {
371-createEmbeddedRunStageTracker,
372-formatEmbeddedRunStageSummary,
373-shouldWarnEmbeddedRunStageSummary,
374-} from "./attempt-stage-timing.js";
375-import { buildAttemptSystemPrompt } from "./attempt-system-prompt.js";
376-import { flushEmbeddedAttemptTrajectoryRecorder } from "./attempt-trajectory-flush-cleanup.js";
377376import {
378377assembleAttemptContextEngine,
379378buildLoopPromptCacheInfo,
@@ -520,12 +519,6 @@ export {
520519resolvePromptModeForSession,
521520shouldWarnOnOrphanedUserRepair,
522521} from "./attempt.prompt-helpers.js";
523-export { wrapStreamFnRepairMalformedToolCallArguments } from "./attempt.tool-call-argument-repair.js";
524-export {
525-wrapStreamFnPromoteStandaloneTextToolCalls,
526-wrapStreamFnSanitizeMalformedToolCalls,
527-wrapStreamFnTrimToolCallNames,
528-} from "./attempt.tool-call-normalization.js";
529522export {
530523resetEmbeddedAgentBaseStreamFnCacheForTest,
531524resolveEmbeddedAgentBaseStreamFn,
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。