Skip to content

Commit 4e96ca0

Browse files
committed
chore(deadcode): prune unused attempt reexports
1 parent 84ccba6 commit 4e96ca0

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

src/agents/embedded-agent-runner/run/attempt.model-diagnostic-events.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ import type {
3535
} from "../../../plugins/hook-types.js";
3636
import type { StreamFn } from "../../runtime/index.js";
3737

38-
export { diagnosticErrorCategory };
39-
4038
type ModelCallDiagnosticContext = {
4139
runId: string;
4240
sessionKey?: string;

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

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ import {
358358
remapInjectedContextFilesToWorkspace,
359359
} from "./attempt.bootstrap-context.js";
360360
export { buildContextEnginePromptCacheInfo } from "./attempt.context-engine-helpers.js";
361+
import { diagnosticErrorCategory } from "../../../infra/diagnostic-error-metadata.js";
361362
import { resolveUserTimezone } from "../../date-time.js";
362363
import {
363364
rotateTranscriptAfterCompaction,
@@ -390,10 +391,7 @@ import {
390391
normalizeMessagesForCurrentPromptBoundary,
391392
normalizeMessagesForLlmBoundary,
392393
} from "./attempt.llm-boundary.js";
393-
import {
394-
diagnosticErrorCategory,
395-
wrapStreamFnWithDiagnosticModelCallEvents,
396-
} from "./attempt.model-diagnostic-events.js";
394+
import { wrapStreamFnWithDiagnosticModelCallEvents } from "./attempt.model-diagnostic-events.js";
397395
import {
398396
buildAfterTurnRuntimeContext,
399397
buildAfterTurnRuntimeContextFromUsage,
@@ -521,13 +519,7 @@ export {
521519
resolvePromptBuildHookResult,
522520
resolvePromptModeForSession,
523521
shouldWarnOnOrphanedUserRepair,
524-
shouldInjectHeartbeatPrompt,
525522
} from "./attempt.prompt-helpers.js";
526-
export {
527-
persistSessionsYieldContextMessage,
528-
queueSessionsYieldInterruptMessage,
529-
stripSessionsYieldArtifacts,
530-
} from "./attempt.sessions-yield.js";
531523
export { wrapStreamFnRepairMalformedToolCallArguments } from "./attempt.tool-call-argument-repair.js";
532524
export {
533525
wrapStreamFnPromoteStandaloneTextToolCalls,

0 commit comments

Comments
 (0)