Skip to content

feat: add support for project runtime configs (.katrc.yaml files)#216

Merged
MacroPower merged 16 commits intomainfrom
feat/projectconfigurations
Nov 30, 2025
Merged

feat: add support for project runtime configs (.katrc.yaml files)#216
MacroPower merged 16 commits intomainfrom
feat/projectconfigurations

Conversation

@MacroPower
Copy link
Copy Markdown
Owner

@MacroPower MacroPower commented Nov 28, 2025

Projects can include their own .katrc.yaml file to define project-specific rules and profiles. For example, you can include a .katrc.yaml file at the root of your git repository to share and/or version your project-specific configuration. When kat runs, it searches for this file starting from the target path and walking up the directory tree.

Project trust is maintained in a new policy.yaml file in the global config directory. The first time you run a project with its own config, you are prompted to trust the project.

@MacroPower MacroPower force-pushed the feat/projectconfigurations branch from 8ad569d to 793b47a Compare November 28, 2025 22:34
@MacroPower MacroPower force-pushed the feat/projectconfigurations branch from 793b47a to e6b26df Compare November 29, 2025 03:31
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 29, 2025

Codecov Report

❌ Patch coverage is 76.96429% with 129 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.74%. Comparing base (9786e19) to head (8951afd).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
pkg/ui/setup/trust.go 0.00% 36 Missing ⚠️
api/file.go 77.87% 14 Missing and 11 partials ⚠️
api/v1beta1/policies/policy.go 68.42% 17 Missing and 7 partials ⚠️
pkg/policy/trust.go 74.28% 10 Missing and 8 partials ⚠️
api/v1beta1/configs/config.go 73.91% 10 Missing and 2 partials ⚠️
api/v1beta1/runtimeconfigs/runtimeconfig.go 73.91% 4 Missing and 2 partials ⚠️
pkg/command/runner.go 0.00% 3 Missing ⚠️
pkg/yaml/merge.go 83.33% 1 Missing and 1 partial ⚠️
pkg/ui/menu/menu.go 0.00% 1 Missing ⚠️
pkg/ui/theme/huh.go 0.00% 1 Missing ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #216      +/-   ##
==========================================
+ Coverage   48.19%   49.74%   +1.54%     
==========================================
  Files          59       67       +8     
  Lines        6050     6389     +339     
==========================================
+ Hits         2916     3178     +262     
- Misses       2983     3039      +56     
- Partials      151      172      +21     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@MacroPower MacroPower changed the title feat: add support for project configurations (.katrc.yaml files) feat: add support for project configurations (.kat.yaml files) Nov 29, 2025
@MacroPower MacroPower force-pushed the feat/projectconfigurations branch from 90541f3 to 42ec464 Compare November 29, 2025 18:10
@MacroPower MacroPower changed the title feat: add support for project configurations (.kat.yaml files) feat: add support for project runtime configs (.katrc.yaml files) Nov 29, 2025
@MacroPower MacroPower force-pushed the feat/projectconfigurations branch from dc1f767 to 85d41ee Compare November 29, 2025 22:12
@MacroPower MacroPower force-pushed the feat/projectconfigurations branch from c90ddca to 42458ca Compare November 30, 2025 17:39
@MacroPower MacroPower merged commit 15ae446 into main Nov 30, 2025
5 checks passed
@MacroPower MacroPower deleted the feat/projectconfigurations branch November 30, 2025 18:06
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