Skip to content

perf(types): import runtime values from runtime-core - #1505

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-10808-point-intx-types-value-imports-at-the-runtime-core-subpath
Oct 18, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-10808-point-intx-types-value-imports-at-the-runtime-core-subpath

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Value imports of runtime contracts (ContentBlock, TokenUsage, ToolCall, and the other runtime values those modules execute) come from @intx/types/runtime-core, so loading them does not construct the InferenceEvent union.
  • Type-only imports of @intx/types/runtime stay. They erase and do not evaluate the union.

Verification

  • bun run check passes
  • A boot probe imports the session modules and fails if inference-events evaluates; importing the runtime barrel still trips that probe

Fixes CL-10808

Value imports of runtime contracts were loading the runtime barrel, which
constructs the InferenceEvent union. Import those values from runtime-core
instead.
@linear-code

linear-code Bot commented Oct 18, 2026

Copy link
Copy Markdown

CL-10808

@corbits-triage

corbits-triage Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

@TheGreatAxios TheGreatAxios left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review · Comment

Value imports that load at boot now come from @intx/types/runtime-core, and the session probe fails if those modules still evaluate inference-events.

Findings

No findings.

Six test files had been switched to runtime-core even though they are not on the boot path. Those specifier edits are reverted in f5f7f02f. runtime still re-exports the same symbols.

@TheGreatAxios
TheGreatAxios merged commit 0f353ac into main Oct 18, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant