Skip to content

refactor(config): add shared config input normalization - #505

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/shared-config-inputs
Sep 21, 2026
Merged

chenjiahan merged 1 commit into
mainfrom
chenjiahan/shared-config-inputs

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Motivation

Continue the incremental implementation of the unified configuration RFC, following #503. Shared configurations need to accept the same inputs as existing define methods, including Lint callbacks that receive the tool exports.

Changes

Add an internal RstackConfig type with all seven configuration fields and recursive, readonly extends. Normalize each shared configuration into the existing internal representation, reusing the lazy Lint wrapper with define.lint() while preserving other tool definitions.

Normalization does not evaluate factories or traverse inheritance. Package exports and define.extends() remain for subsequent PRs.

Add two runtime tests and a type fixture covering object, synchronous, and asynchronous inputs. Validation passed: builds, lint, type checking, formatting, spell checking, and the full test suite (380 passed, 1 skipped).

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 21, 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-21T08:32:54.240601Z d16b007 PR opened
ℹ️ 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

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: d16b007
Status: ✅  Deploy successful!
Preview URL: https://fc37c3ee.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-shared-config-inp.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit e8210f0 into main Sep 21, 2026
5 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/shared-config-inputs branch September 21, 2026 08:47
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