Skip to content

refactor(config): add internal config layer primitives - #503

Merged
chenjiahan merged 2 commits into
mainfrom
chenjiahan/refactor-config-layers
Sep 21, 2026
Merged

chenjiahan merged 2 commits into
mainfrom
chenjiahan/refactor-config-layers

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Sep 19, 2026

Copy link
Copy Markdown
Member

Motivation

Provide the internal configuration resolution foundation for define.extends() proposed in RFC #504. Shared configurations need to preserve layer order while resolving only the tool required by the current command.

Changes

Add resolveConfigLayers, which accepts an ordered array of existing configuration definitions and resolves the selected tool sequentially. It forwards native App and Lib parameters, distinguishes missing configurations from explicitly empty ones, and preserves Staged task generators without invoking them.

The helper is internal and does not change current CLI behavior. The public API, nested inheritance, tool-specific merging, test inheritance, and loader integration will follow in separate PRs.

Validation: builds passed, along with 4 focused tests and lint, type, and format checks.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 19, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-21T06:26:19.247570Z 4eeae90 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 19, 2026

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4eeae90
Status: ✅  Deploy successful!
Preview URL: https://e8b115cf.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-refactor-config-l.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit 0da5847 into main Sep 21, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/refactor-config-layers branch September 21, 2026 08:19
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