Skip to content

Commit b0ecf6e

Browse files
committed
chore(deadcode): trim private attempt facade
1 parent dc5c2f6 commit b0ecf6e

1 file changed

Lines changed: 16 additions & 23 deletions

File tree

src/agents/embedded-agent-runner/run/attempt.ts

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import {
3232
import { resolveContextEngineOwnerPluginId } from "../../../context-engine/registry.js";
3333
import { buildContextEngineRuntimeSettings } from "../../../context-engine/runtime-settings.js";
3434
import type { AssembleResult } from "../../../context-engine/types.js";
35+
import { diagnosticErrorCategory } from "../../../infra/diagnostic-error-metadata.js";
3536
import { emitTrustedDiagnosticEvent } from "../../../infra/diagnostic-events.js";
3637
import { resolveDiagnosticModelContentCapturePolicy } from "../../../infra/diagnostic-llm-content.js";
3738
import {
@@ -150,6 +151,7 @@ import {
150151
createCodeModeTools,
151152
resolveCodeModeConfig,
152153
} from "../../code-mode.js";
154+
import { resolveUserTimezone } from "../../date-time.js";
153155
import { DEFAULT_CONTEXT_TOKENS } from "../../defaults.js";
154156
import { resolveOpenClawReferencePaths } from "../../docs-path.js";
155157
import {
@@ -255,6 +257,10 @@ import { DEFAULT_BOOTSTRAP_FILENAME, type WorkspaceBootstrapFile } from "../../w
255257
import { isRunnerAbortError } from "../abort.js";
256258
import { isCacheTtlEligibleProvider, readLastCacheTtlTimestamp } from "../cache-ttl.js";
257259
import { resolveCompactionTimeoutMs } from "../compaction-safety-timeout.js";
260+
import {
261+
rotateTranscriptAfterCompaction,
262+
shouldRotateCompactionTranscript,
263+
} from "../compaction-successor-transcript.js";
258264
import { runContextEngineMaintenance } from "../context-engine-maintenance.js";
259265
import { applyFinalEffectiveToolPolicy } from "../effective-tool-policy.js";
260266
import { buildEmbeddedExtensionFactories } from "../extensions.js";
@@ -334,14 +340,24 @@ import { splitSdkTools } from "../tool-split.js";
334340
import { mapThinkingLevel } from "../utils.js";
335341
import { flushPendingToolResultsAfterIdle } from "../wait-for-idle-before-flush.js";
336342
import { 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";
337346
import { 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";
338353
import {
339354
applyEmbeddedAttemptToolsAllow,
340355
mergeForcedEmbeddedAttemptToolsAllow,
341356
resolveEmbeddedAttemptToolConstructionPlan,
342357
shouldCreateBundleLspRuntimeForAttempt,
343358
shouldCreateBundleMcpRuntimeForAttempt,
344359
} from "./attempt-tool-construction-plan.js";
360+
import { flushEmbeddedAttemptTrajectoryRecorder } from "./attempt-trajectory-flush-cleanup.js";
345361
import {
346362
resolveAttemptTrajectoryTerminal,
347363
resolveTerminalAssistantTexts,
@@ -357,23 +373,6 @@ import {
357373
isPrimaryBootstrapRun,
358374
remapInjectedContextFilesToWorkspace,
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";
377376
import {
378377
assembleAttemptContextEngine,
379378
buildLoopPromptCacheInfo,
@@ -520,12 +519,6 @@ export {
520519
resolvePromptModeForSession,
521520
shouldWarnOnOrphanedUserRepair,
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";
529522
export {
530523
resetEmbeddedAgentBaseStreamFnCacheForTest,
531524
resolveEmbeddedAgentBaseStreamFn,

0 commit comments

Comments
 (0)