Build Aff v2 CLI prototype - #382
tanishqkancharla wants to merge 23 commits into
Conversation
…ning command routes
- Introduce `parseCommandLineInput` for structured input parsing. - Implement validation for required arguments and options. - Update CLI execution to handle parsed input correctly. - Add tests for command-line input parsing and error handling.
…tests for input validation
…and error handling
- Introduced AffMiddleware and related types for middleware handling. - Updated command and group interfaces to include middleware support. - Enhanced CLI builder to utilize middleware in command execution. - Added tests for middleware functionality, including execution order and error handling. - Updated documentation to reflect new middleware capabilities.
- Refactor AffCommandHandlerArgs and AffGroupBuilder to support generic context types. - Update createConfiguredCommandBuilder and createConfiguredGroupBuilder for context-aware middleware handling. - Introduce AffMiddlewareArgs and AffMiddlewareHandler with generics for improved type contracts. - Add comprehensive type-level tests for middleware context propagation and input contracts.
…Aff v2 interfaces and functions
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
|
I’ll verify GitHub PR access first using the required OpenCode Review📋 Detailed ReviewSpec Analysis
Changed Files
Simplicity Assessment
Correctness Assessment
SummaryThe PR implements the paused Aff v2 prototype phases in line with the spec: separate Required ActionsNone Suggestions
|
Summary
packages/affordance/src/v2with bottom-up CLI, group, command, input, and middleware builders.specs/affordance-orpc-middleware-spec.md.Where this is paused
Aff.option(schema, { aliases })andAff.flag({ aliases }).Tracking
Verification
pnpm -s --filter affordance check