feat(tools): add reusable execution contexts for shell, filesystem, and browser tools

This commit is contained in:
2026-05-15 05:38:35 +00:00
parent f183bf19ac
commit f138495edf
10 changed files with 604 additions and 103 deletions
+29
View File
@@ -12,6 +12,35 @@ export type {
TAgentCacheRetention,
TAgentCacheSetting,
} from './smartagent.interfaces.js';
export {
createBrowserTools,
createFilesystemTools,
createLocalToolExecutionContext,
createShellTools,
filesystemTool,
formatShellResult,
formatToolOutput,
shellTool,
} from '../ts_tools/index.js';
export type {
IBrowserToolInput,
ICreateBrowserToolsOptions,
ICreateFilesystemToolsOptions,
ICreateShellToolsOptions,
IFilesystemToolOptions,
ILocalToolExecutionContextOptions,
IShellToolOptions,
IToolBrowserContext,
IToolExecutionContext,
IToolFilesystemContext,
IToolFilesystemListOptions,
IToolFilesystemReadOptions,
IToolPermissionRequest,
IToolRunOptions,
IToolShellContext,
IToolShellResult,
TBrowserToolAction,
} from '../ts_tools/index.js';
// Re-export tool() and z so consumers can define tools without extra imports
export { tool, jsonSchema } from '@push.rocks/smartai';