mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-06 23:44:36 +00:00
Tools that reach other tools declare it with reachesTools(input); MCP uses it to wait for the servers a call needs and to decide which codemode or tool_search tool to activate, instead of parsing codemode scripts and comparing parameter schemas. Namespaces get aliases, replacing codemode's MCP-specific __ suffix rule. pi-codemode no longer knows MCP: MCP_TYPESCRIPT_PREAMBLE and mcpStructuredContentSchema() are removed, and the MCP result schema describes itself, with the server's local $refs relocated so they resolve as before.
65 lines
1.6 KiB
TypeScript
65 lines
1.6 KiB
TypeScript
export {
|
|
DEFAULT_INPUT_SCHEMA_MAX_CHARS,
|
|
type RenderDeclarationsOptions,
|
|
renderDeclarations,
|
|
renderToolOutputType,
|
|
renderToolSample,
|
|
renderToolSignature,
|
|
schemaToType,
|
|
} from "./declarations.ts";
|
|
export { toCodemodeIdentifier } from "./identifier.ts";
|
|
export { CodemodeSandboxBase } from "./runtime/execution.ts";
|
|
export { CodemodeSandbox } from "./runtime/host.ts";
|
|
export {
|
|
DEFAULT_INTERRUPT_BUDGET,
|
|
InlineCodemodeSandbox,
|
|
type InlineCodemodeSandboxOptions,
|
|
} from "./runtime/inline.ts";
|
|
export {
|
|
MAX_OUTPUT_CHARS,
|
|
MAX_OUTPUT_ITEMS,
|
|
MAX_STORE_TOTAL_CHARS,
|
|
MAX_STORE_VALUE_CHARS,
|
|
} from "./runtime/prelude-source.ts";
|
|
export {
|
|
type CodemodeRemote,
|
|
type CodemodeRemoteExchange,
|
|
type CodemodeRemoteMessage,
|
|
type CodemodeRemoteReply,
|
|
type CodemodeRemoteRequest,
|
|
type CodemodeServeOptions,
|
|
RemoteCodemodeSandbox,
|
|
type RemoteCodemodeSandboxOptions,
|
|
serveCodemodeRemote,
|
|
} from "./runtime/remote.ts";
|
|
export {
|
|
CODEMODE_OPTIONS_PREFIX,
|
|
CODEMODE_SOURCE_GRAMMAR,
|
|
CodemodeSourceError,
|
|
type CodemodeSourceOptions,
|
|
type ParsedCodemodeSource,
|
|
parseCodemodeSource,
|
|
} from "./source.ts";
|
|
export type {
|
|
CodemodeCall,
|
|
CodemodeCallStatus,
|
|
CodemodeDeclaredGlobal,
|
|
CodemodeDeclaredTool,
|
|
CodemodeDuring,
|
|
CodemodeError,
|
|
CodemodeErrorKind,
|
|
CodemodeExecuteOptions,
|
|
CodemodeHostCall,
|
|
CodemodeJsonSchema,
|
|
CodemodeOutcome,
|
|
CodemodeOutputItem,
|
|
CodemodeResult,
|
|
CodemodeRun,
|
|
CodemodeRunOptions,
|
|
CodemodeSandboxBaseOptions,
|
|
CodemodeSandboxOptions,
|
|
CodemodeStoreWrites,
|
|
CodemodeTool,
|
|
CodemodeToolContext,
|
|
} from "./types.ts";
|
|
export { type CodemodeWasmModule, loadQuickJSWasm } from "./wasm.ts";
|