You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run single test file: npm test -- src/agent/base_agent.test.js
Run specific test: npm test -- -t "test_name"
Build & Development
Build for production: npm run build or npm run production
Development server: npm run dev
Start built app: npm start
Linting
Run linter: npm run lint
Auto-fix issues: npm run lint:fix
Code Style Guidelines
Module System
Use ES modules (type: "module" in package.json)
All imports/exports use .js extensions
Imports
// Named imports from same directoryimport{Agent}from'./agent/base_agent.js';import{Tool}from'../tooling/tool.js';// Default importsimportLoggerfrom'../utils/logger.js';
describe('ClassName',()=>{letinstance;beforeEach(()=>{instance=newClassName();});afterEach(()=>{jest.clearAllMocks();});test('method works correctly',()=>{expect(instance.method()).toBe(expected);});});
Tools
Tools are created using the Tool class with id, description, and function
Provide sample_input object for automatic schema generation
Tool functions receive a single destructured object parameter