alpha
Login
or
Join now
kueda.net
/
tangled-cli
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
WIP: A simple cli for daily tangled use cases and AI integration. This is for my personal use right now, but happy if others get mileage from it! :)
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
tangled-cli
/
src
/
at
f4056f7901fca651977b2b95bfefefe9e685a00a
4 folders
1 file
Mark Bennett
Implement 'issue create' command
5mo ago
ee0201dc
commands
Implement 'issue create' command Add the base issue command structure with create subcommand: - Command accepts title argument and optional body via --body or --body-file - Validates authentication and repository context - Builds AT-URI and creates issue record via AT Protocol - Displays success message with issue number (rkey) and URI - Comprehensive tests covering all input methods and error cases Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5 months ago
lexicon
Generate TypeScript types from Tangled lexicons Generated type-safe client code from vendored lexicons using @atproto/lex-cli. Includes type definitions for: - Issue management (sh.tangled.repo.issue) - Pull requests (sh.tangled.repo.pull) - Repository operations - All Tangled-specific record types Note: Generated code committed to version control for: - Reviewability in PRs - No build step required for type checking - Offline development support We'll use the type definitions (interfaces) for type safety while calling AT Protocol APIs directly via @atproto/api to avoid module resolution issues with the generated client methods. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5 months ago
lib
Add Issue API layer with CRUD operations Implements comprehensive issue management via AT Protocol: - createIssue(): Create new issues with title and optional body - listIssues(): List and filter issues by repository - getIssue(): Retrieve specific issue details - updateIssue(): Update issue title and/or body with atomic CID swap - closeIssue(): Mark issue as closed via state record - deleteIssue(): Permanently delete an issue Features: - Uses generated lexicon types (IssueRecord) for type safety - Uses requireAuth() helper for authentication validation - Uses parseIssueUri() internal helper to eliminate duplication - Clear error messages with context - Repository filtering in list operations - Ownership verification for update/delete Includes comprehensive test coverage (23 tests passing) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5 months ago
utils
Add authentication validation helper Extracts duplicated auth validation logic into reusable utility: - requireAuth(): Validates client is authenticated and has active session - Throws clear error messages if not authenticated - Returns session with DID and handle This helper will be used across all API operations that require authentication, ensuring consistent error messages and reducing code duplication. Includes test coverage (3 tests passing) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5 months ago
index.ts
Register config and context commands in CLI Add the new config and context commands to the main CLI program: - tangled config: Manage CLI configuration - tangled context: Debug repository context resolution These commands are now accessible through the CLI. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5 months ago