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
/
utils
/
at
f4056f7901fca651977b2b95bfefefe9e685a00a
7 files
Mark Bennett
Add authentication validation helper
5mo ago
528dbeac
.gitkeep
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
at-uri.ts
Add AT-URI utilities and issue validation New utilities: - parseAtUri(): Parse AT-URI into components (did, collection, rkey) - resolveHandleToDid(): Resolve handle to DID via AT Protocol - buildRepoAtUri(): Construct repository AT-URI from owner and repo name New validation schemas: - issueTitleSchema: 1-256 characters - issueBodySchema: Optional, max 50,000 characters - atUriSchema: Validate AT-URI format Includes comprehensive test coverage (45 tests passing) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5 months ago
auth-helpers.ts
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
body-input.ts
Add body input handling utility Supports multiple input methods following GitHub CLI patterns: - Direct string input via --body flag - File input via --body-file <path> - Stdin input via --body-file - (tested via integration tests) Features: - Validates that only one input method is used - Handles empty strings correctly - Clear error messages for file not found, permission denied, etc. Includes comprehensive test coverage (12 tests passing) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5 months ago
git.ts
Implement Git utilities for parsing tangled.org remote URLs Add utilities to parse and validate tangled.org Git remote URLs: - isTangledRemote(): Check if URL points to tangled.org - parseTangledRemote(): Extract owner, repo name, protocol from URL - Support both SSH (git@tangled.org:owner/repo.git) and HTTPS (https://tangled.org/owner/repo) formats - Parse owner as DID (did:plc:...) or AT Protocol handle - Extract repository name and protocol information Uses validation helpers from validation.ts for DID and handle checking. Includes comprehensive test coverage (17 tests) for all URL formats and edge cases. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5 months ago
prompts.ts
Add prompts for remote selection and config persistence Extend prompts module with: - promptForRemoteSelection(): Interactive picker for Git remotes with default to "origin" if present - promptToSaveRemote(): Confirmation prompt to persist remote choice to .tangledrc config file These prompts are used by context resolution when multiple tangled.org remotes exist and user input is needed. Includes comprehensive test coverage (10 tests total, 5 new tests). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5 months ago
validation.ts
Add AT-URI utilities and issue validation New utilities: - parseAtUri(): Parse AT-URI into components (did, collection, rkey) - resolveHandleToDid(): Resolve handle to DID via AT Protocol - buildRepoAtUri(): Construct repository AT-URI from owner and repo name New validation schemas: - issueTitleSchema: 1-256 characters - issueBodySchema: Optional, max 50,000 characters - atUriSchema: Validate AT-URI format Includes comprehensive test coverage (45 tests passing) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5 months ago