BREAKING CHANGE(api): Migrate public API to ai-sdk v6 and refactor core agent architecture: replace class-based DualAgent/Driver/Guardian with a single runAgent function; introduce ts_tools factories for tools, a compactMessages compaction subpath, and truncateOutput utility; simplify ToolRegistry to return ToolSet and remove legacy BaseToolWrapper/tool classes; update package exports and dependencies and bump major version.
This commit is contained in:
30
ts_tools/plugins.ts
Normal file
30
ts_tools/plugins.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
// node native
|
||||
import * as path from 'path';
|
||||
import * as fs from 'fs';
|
||||
|
||||
export { path, fs };
|
||||
|
||||
// zod
|
||||
import { z } from 'zod';
|
||||
|
||||
export { z };
|
||||
|
||||
// ai-sdk
|
||||
import { tool } from '@push.rocks/smartai';
|
||||
|
||||
export { tool };
|
||||
|
||||
export type { ToolSet } from 'ai';
|
||||
|
||||
// @push.rocks scope
|
||||
import * as smartfs from '@push.rocks/smartfs';
|
||||
import * as smartshell from '@push.rocks/smartshell';
|
||||
import * as smartrequest from '@push.rocks/smartrequest';
|
||||
|
||||
export { smartfs, smartshell, smartrequest };
|
||||
|
||||
// cross-folder import
|
||||
import { truncateOutput } from '../ts/smartagent.utils.truncation.js';
|
||||
|
||||
export { truncateOutput };
|
||||
export type { ITruncateResult } from '../ts/smartagent.utils.truncation.js';
|
||||
Reference in New Issue
Block a user