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
/
lib
/
at
fix-persist-refreshed-session
7 files
Ken-ichi Ueda
fix: reuse valid access tokens instead of refreshing every command
4w ago
39187400
.gitkeep
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
api-client.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
config.ts
Implement configuration management with precedence Add config system for persisting user preferences: - Load config with precedence: TANGLED_REMOTE env var > local .tangledrc > user ~/.tangledrc > system /etc/tangledrc - Uses cosmiconfig for flexible config file support - setLocalRemote/setUserRemote: Save remote selection - clearLocalRemote/clearUserRemote: Clear saved remote - Integrates with Git to save local config in repository root This allows users to configure their preferred remote once and have it automatically selected for ambiguous cases. Includes comprehensive test coverage (16 tests) for all precedence scenarios and error cases. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5 months ago
constellation.ts
Add constellation.ts client for cross-PDS record indexing Introduces getBacklinks() which queries constellation.microcosm.blue to find AT Protocol records that reference a given URI, across all PDSs. This is the foundation for fixing multi-collaborator issue queries. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5 months ago
context.ts
Add biome v2 and apply format/lint changes.
5 months ago
issues-api.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
session.ts
Move session metadata from keychain to plain file to prevent credential loss The current-session-metadata keychain entry was getting wiped by transient errors (e.g. network failure on wake) in the resumeSession() catch block, forcing users to re-authenticate unnecessarily. Changes: - Store session metadata in ~/.config/tangled/session.json (not keychain) so it survives sleep/wake cycles and keychain lock events - Don't clear metadata on transient agent.resumeSession() failures — only clear when loadSession() definitively returns null (no stored credentials) - Update session.test.ts to mock node:fs/promises with in-memory storage - Update api-client.test.ts to reflect new non-clearing behavior Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
5 months ago