From 8bf20fec8ebe9231fa35a9d38634e4251bcf996f Mon Sep 17 00:00:00 2001 From: Sebastian Otaegui Date: Sat, 6 Jun 2026 13:21:38 -0300 Subject: [PATCH] feat(runtime): re-export RuntimeOptions from package entry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit createRuntime is the package's primary library entry point but its parameter type RuntimeOptions was not re-exported from src/index.ts. Consumers wrapping createRuntime had to reach for Parameters[0] just to name the shape — the same friction #199 is filed to eliminate for Runtime.connect's ConnectOptions. Strictly additive. RuntimeOptions's transitive references (ServerDefinition, RuntimeLogger) are already public, so this is a true one-liner with no cascading exports. Wrapped the existing single-line export into a multi-line block to keep the diff reviewable as the list grows. Closes #200. --- src/index.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 95015be1..d9c665d3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,7 +2,14 @@ export type { CommandSpec, ServerDefinition } from './config.js'; export { loadServerDefinitions } from './config.js'; export type { CallResult, ConnectionIssue, ImageContent } from './result-utils.js'; export { createCallResult, describeConnectionIssue, wrapCallResult } from './result-utils.js'; -export type { CallOptions, ListToolsOptions, Runtime, RuntimeLogger, ServerToolInfo } from './runtime.js'; +export type { + CallOptions, + ListToolsOptions, + Runtime, + RuntimeLogger, + RuntimeOptions, + ServerToolInfo, +} from './runtime.js'; export { callOnce, createRuntime } from './runtime.js'; export type { GeneratedRuntimeContext } from './generated-daemon-runtime.js'; export { createGeneratedKeepAliveRuntime } from './generated-daemon-runtime.js';