Skip to content

Agentic onboarding support in parallel-cli#99

Open
sergei1152 wants to merge 2 commits intomainfrom
serj.agentic_onboarding_pt1_better_configs
Open

Agentic onboarding support in parallel-cli#99
sergei1152 wants to merge 2 commits intomainfrom
serj.agentic_onboarding_pt1_better_configs

Conversation

@sergei1152
Copy link
Copy Markdown
Contributor

@sergei1152 sergei1152 commented May 7, 2026

Summary

  • migrate CLI auth to a multi-org OAuth/device-flow model with persisted control API tokens, refresh handling, and client registration
  • add richer login flows (email, google, sso) plus prepaid balance commands backed by the service API
  • expand skills installation flows and service/auth test coverage across the CLI

Details

  • introduce structured auth storage in auth.json, including selected org state, org-scoped API keys, control API tokens, and registered client_id
  • add service API helpers and generated types for app provisioning, API key creation, and prepaid balance operations
  • update CLI commands to use the new auth client path for search/extract and add balance get / balance add
  • add project/global skills install, uninstall, and reinstall flows, plus local standalone binary build guidance
  • extend tests for auth refresh behavior, credential migration, service API requests, login UX variants, and new CLI commands

@sergei1152 sergei1152 force-pushed the serj.agentic_onboarding_pt1_better_configs branch 2 times, most recently from 2eb9356 to f46ccf2 Compare May 8, 2026 04:32
@sergei1152 sergei1152 marked this pull request as ready for review May 8, 2026 04:35
@sergei1152 sergei1152 force-pushed the serj.agentic_onboarding_pt1_better_configs branch 2 times, most recently from a51bc2d to 4632c36 Compare May 8, 2026 19:07
@sergei1152 sergei1152 force-pushed the serj.agentic_onboarding_pt1_better_configs branch 2 times, most recently from 327c006 to 939a400 Compare May 8, 2026 19:53
@sergei1152
Copy link
Copy Markdown
Contributor Author

Ready for review. One notable difference is, whilst we accept the PARALLEL_API_KEY environment variable, it is now no l onger preferred if valid credentials exist. @NormallyGaussian

if legacy_raw is None:
return None
creds = _credentials_from_dict(_migrate_v0(legacy_raw))
save(creds)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we clean up the legacy credentials file?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah we can.

@sergei1152 sergei1152 force-pushed the serj.agentic_onboarding_pt1_better_configs branch from 939a400 to 57a7729 Compare May 8, 2026 22:45
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.

2 participants