Skip to content

Commit 625808c

Browse files
strzhaoclaude
andcommitted
refactor(interaction): load the press-sequence lane behind a dynamic import
Co-Authored-By: Claude Code <[email protected]>
1 parent f168edd commit 625808c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/command-runtime/src/commands/interaction/runtime/interactions.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import {
2121
} from './post-action-observation.ts';
2222
import { resolveInteractionTarget, type InteractionTarget } from './resolution.ts';
2323
import { guardResolvedTargetAgainstMotion } from './moving-target-gate.ts';
24-
import { isPressSequencePlan, tapRefSequenceCommand } from './press-sequence.ts';
2524
import { pointObservationOf } from './target-visibility-stages.ts';
2625
import { dispatchNativeRefInteraction } from './native-ref-interaction.ts';
2726
import type {
@@ -148,6 +147,8 @@ async function tapCommand(
148147
options: PressCommandOptions,
149148
action: 'click' | 'press',
150149
): Promise<PressCommandResult> {
150+
// Dynamic import: the sequence lane keeps its eager-closure cost off the command-runtime entry.
151+
const { isPressSequencePlan, tapRefSequenceCommand } = await import('./press-sequence.ts');
151152
if (isPressSequencePlan(options)) {
152153
return await tapRefSequenceCommand(runtime, options, action);
153154
}

0 commit comments

Comments
 (0)