Skip to content

feat(kernel): ✨ Add typed environment schema#13

Merged
haskou merged 2 commits into
mainfrom
feat/typed-environment-schema
Jun 26, 2026
Merged

feat(kernel): ✨ Add typed environment schema#13
haskou merged 2 commits into
mainfrom
feat/typed-environment-schema

Conversation

@haskou

@haskou haskou commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds typed environment schemas for Kernel so applications can declare expected variables, types and required/default values.
  • Parses string, number and boolean environment values after loading dotenv files.
  • Throws KernelEnvironmentValidationError when required variables are missing or values cannot be parsed.
  • Updates the example and docs to use kernel.environment with inferred types.

Validation

  • yarn format:check
  • yarn lint
  • yarn typecheck
  • yarn test:coverage (100%)
  • yarn docs:build
  • yarn build
  • yarn --cwd example typecheck
  • npx -y depcheck --json

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bb26b312b6

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/Kernel.ts
@codecov-commenter

codecov-commenter commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@haskou haskou merged commit 34e5afd into main Jun 26, 2026
2 checks passed
@haskou haskou deleted the feat/typed-environment-schema branch June 26, 2026 13:00
github-actions Bot added a commit that referenced this pull request Jun 26, 2026
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