Commit Graph

55 Commits

  • feat(ai): Implement Zod-based tool validation and improve Agent API
    - Replace JSON Schema with Zod schemas for tool parameter definitions
    - Add runtime validation for all tool calls at provider level
    - Create shared validation module with detailed error formatting
    - Update Agent API with comprehensive event system
    - Add agent tests with calculator tool for multi-turn execution
    - Add abort test to verify proper handling of aborted requests
    - Update documentation with detailed event flow examples
    - Rename generate.ts to stream.ts for clarity
  • Fix pi-agent CLI execution issue when installed globally
    - Remove isMainModule check that was preventing execution via npm symlink
    - CLI now runs main function directly when executed
    - Bump version to 0.5.1
  • Fix npm publishing warnings and clean up package.json files
    - Fixed repository URLs to use git+https:// format
    - Removed tsconfig.tsbuildinfo from clean scripts
    - Updated README with clearer build instructions and dependency order
    - Fixed bin paths to reference dist/cli.js correctly
    - Ready for npm publishing with no warnings
  • Initial monorepo setup with npm workspaces and dual TypeScript configuration
    - Set up npm workspaces for three packages: pi-tui, pi-agent, and pi (pods)
    - Implemented dual TypeScript configuration:
      - Root tsconfig.json with path mappings for development and type checking
      - Package-specific tsconfig.build.json for clean production builds
    - Configured lockstep versioning with sync script for inter-package dependencies
    - Added comprehensive documentation for development and publishing workflows
    - All packages at version 0.5.0 ready for npm publishing