Skip to content

feat(auth): add native credential storage - #84

Open
Windsor Nguyễn (windsornguyen) wants to merge 1 commit into
feat/cli-session-modelsfrom
feat/cli-native-credential-storage
Open

feat(auth): add native credential storage#84
Windsor Nguyễn (windsornguyen) wants to merge 1 commit into
feat/cli-session-modelsfrom
feat/cli-native-credential-storage

Conversation

@windsornguyen

Copy link
Copy Markdown
Member

Note

Authorship: AI-assisted.

Summary

Store validated sessions in the native credential manager with cross-process lifecycle locking.

Public CLI activation follows in a later layer. Hosted authentication requires a compatible server deployment.

Changes

  • package.json
  • src/auth/README.md
  • src/auth/credential-contract.ts
  • src/auth/credentials.ts
  • tests/auth/fixtures.ts
  • tests/auth/keyring-adapter.test.ts

Verification

Verified at 12b86bafc747c3dbe6f27b69481e1a7705a23ced against its immediate parent.

  • All four type-check scopes and the source build passed.
  • All 34 discovered TypeScript and native-JavaScript tests passed.
  • Source/build public-content scans and the actual package archive check passed.
  • The installed preview passed all 25 feedback tests.
  • Frozen pnpm 10.34.5 installation passed.
  • The pinned package manager regenerated the lockfile before frozen verification.

Scope

Human-written additions + deletions: 402.

Generated lockfile changes: 178.

Depends on #83. Retains #60: valid automatic retry keys.

The layer keeps its boundary implementation and direct contract tests together. Command activation and unrelated integrations remain separate.

Review focus

Credential rejection must stop its selected path. Keep token persistence, revocation, safe output, and caller identity consistent with the tested contract.

Documentation

Authentication contract at this head.

Reviewers

Signed-off-by: Windsor Nguyen <93564933+windsornguyen@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant