Open History to see the last commit
1// Code Mode Tool API
2export { createCodeModeTool } from './create-code-mode-tool'
3export type {
4 ExecuteTypescriptInput,
5 ExecuteTypescriptOutput,
6} from './create-code-mode-tool'
7
8export { createCodeModeSystemPrompt } from './create-system-prompt'
9export { createCodeMode } from './create-code-mode'
10export { createDiscoveryTool } from './create-discovery-tool'
11
12export {
13 InMemoryAgentStore,
14 generateAgentName,
15 type AgentSession,
16 type AgentStore,
17} from './agent-store'
18
19// Bindings utilities (useful for custom implementations)
20export {
21 toolToBinding,
22 toolsToBindings,
23 createEventAwareBindings,
24} from './bindings/tool-to-binding'
25
26// Type generator (useful for custom system prompts)
27export {
28 generateTypeStubs,
29 jsonSchemaToTypeScript,
30 type TypeGeneratorOptions,
31} from './type-generator/json-schema-to-ts'
32
33// TypeScript stripping utility
34export { stripTypeScript } from './strip-typescript'
35
36// Code wrapper utility (used by isolate drivers)
37export { wrapCode } from './code-wrapper'
38
39// All types
40export type {
41 // Tool-based API types
42 CodeModeToolConfig,
43 CreateCodeModeResult,
44 CodeModeToolResult,
45 // Isolate driver interfaces (used by driver packages)
46 IsolateDriver,
47 IsolateConfig,
48 IsolateContext,
49 ExecutionResult,
50 NormalizedError,
51 // Tool binding (used by driver packages)
52 ToolBinding,
53 // Tool input types
54 CodeModeTool,
55 // Re-exported from @tanstack/ai
56 ToolExecutionContext,
57} from './types'
58
59// Secret-parameter warning configuration
60export type {
61 SecretParameterHandler,
62 SecretParameterInfo,
63} from './validate-bindings'