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
/
tests
/
utils
/
at
fix-persist-refreshed-session
9 files
Ken-ichi Ueda
fix: reuse valid access tokens instead of refreshing every command
4w ago
39187400
at-uri.test.ts
refactor: rename repoAtUri for accuracy * Repos are identified by their DID now, hence the name change * Update tests accordingly * Consolidate @atproto/identity usage into pds-resolver.ts by moving resolveHandleToDid there; at-uri.ts re-exports it and no longer imports @atproto/identity directly Co-authored-by: Claude (claude-sonnet-4-6) <noreply@anthropic.com>
2 months ago
auth-helpers.test.ts
fix: report auth state based on session validation Instead of trusting cached metadata, it actually ensures the session is valid, and distinguishes between lack of auth and an expired session. Co-authored-by: Claude (claude-opus-4-8) <noreply@anthropic.com>
1 month ago
body-input.test.ts
Test stdin reading in body-input via process mock Replaces the skipped stdin placeholder with three real tests covering: - reading a single data chunk from stdin - concatenating multiple chunks - propagating stdin error events process.stdin is non-configurable on the real process object, so the tests mock the entire node:process module using a Proxy that intercepts the stdin property and returns a local EventEmitter fixture while forwarding all other property accesses to the real module. The readFromStdin Promise constructor registers handlers synchronously, so events can be emitted immediately after readBodyInput returns its pending Promise without needing setImmediate. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5 months ago
formatting.test.ts
Add --json output with field filtering to issue commands Adds GitHub CLI-style --json [fields] option to issue list, view, create, and edit commands. When --json is passed, outputs machine- readable JSON instead of human-readable text. An optional comma- separated field list filters the output to only the requested fields. Adds outputJson() utility to src/utils/formatting.ts for reuse across future commands. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5 months ago
git.test.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
jwt.test.ts
fix: reuse valid access tokens instead of refreshing every command Each tang call refreshed the access token, rotating the single-use refresh token every time. If a command was interrupted or overlapped another, the stored token got revoked before the new one was saved, forcing re-auth. This reuses a still-valid cached token and only refreshes when it has actually expired. Co-authored-by: Claude (claude-opus-4-8) <noreply@anthropic.com>
1 month ago
pds-resolver.test.ts
refactor: rename repoAtUri for accuracy * Repos are identified by their DID now, hence the name change * Update tests accordingly * Consolidate @atproto/identity usage into pds-resolver.ts by moving resolveHandleToDid there; at-uri.ts re-exports it and no longer imports @atproto/identity directly Co-authored-by: Claude (claude-sonnet-4-6) <noreply@anthropic.com>
2 months ago
prompts.test.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.test.ts
Apply code formatting to source files Auto-format source files with Biome formatter (import organization, spacing, etc.). Generated lexicon files are now excluded from formatting. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5 months ago