Skip to content

feat(cli): integrate aliyun bl invocation and authentication - #298

Merged
XXPermanentXX merged 3 commits into
mainfrom
feat/aliyun-bl-integration
Nov 3, 2026
Merged

XXPermanentXX merged 3 commits into
mainfrom
feat/aliyun-bl-integration

Conversation

@XXPermanentXX

Copy link
Copy Markdown
Collaborator

Integrate Bailian CLI with aliyun bl, including host-aware command references and credentials supplied by Aliyun CLI.

  • Render help, recovery hints, examples, and structured command invocations through the shared command-reference API. Keep the executable separate from fixed subcommands.
  • Resolve complete AK/SK/STS groups in this order: command flags → Bailian environment variables → selected Bailian config → Alibaba Cloud environment variables.
  • Obtain Console tokens internally when missing or expired. Share token issuance within a Client while keeping concurrent business requests independent; keep automatically acquired credentials in memory and retain the existing local-token persistence behavior.
  • Isolate host update checks and cover invocation, credential priority, refresh, concurrency, and persistence boundaries.

Validation after merging main (a7cb810c):

  • vp check: passed, 0 errors and 2 existing warnings.
  • Core build: passed.
  • Targeted regression: 13 files, 229 passed and 4 live-gated skipped; 23.45s, Node 26.13.0, 2 workers.
  • Real default Aliyun OAuth: auth status, OpenAPI seats, Console app list, and concurrent Console quota calls all passed without a profile override; isolated Bailian config remained unchanged.
  • Full CI is pending on this PR. Local acceptance covered macOS source execution through Aliyun CLI master, not a cross-platform binary matrix.

Supersedes #292.

- Add Aliyun host integration
- Centralize command formatting and rendering
- Adapt help, errors, and command guidance
- Unify introspection and executable command output
- Separate credential failures from recovery guidance
- Require explicit formatters in internal helpers
- Update version parsing and reference generation
- Add regression coverage and maintenance guidelines
- Add Bailian AK/SK/STS environment variables and credential precedence
- Acquire and refresh Console tokens through the shared credential chain
- Deduplicate concurrent token exchanges and preserve persistence boundaries
- Extract Console session management from Client
- Add authentication regression coverage and update setup documentation
…ation

# Conflicts:
#	packages/core/src/console/gateway.ts
@XXPermanentXX
XXPermanentXX merged commit bb88591 into main Nov 3, 2026
7 checks passed
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