Skip to content

Conversation

@ulivz
Copy link
Member

@ulivz ulivz commented Dec 8, 2025

Summary

Added config file support with defineConfig function, refactored types to extract common options, and ensured CLI/Node.js API/Config API are isomorphic.

Configuration Example

import { defineConfig } from 'pnpm-dev-kit';

export default defineConfig({
  common: {
    tagPrefix: 'v',
    dryRun: false,
  },
  ai: {
    useAi: true,
    model: 'gpt-4o',
  },
  filter: {
    filterTypes: ['feat', 'fix', 'perf'],
  },
  release: {
    changelog: true,
    pushTag: true,
    createGithubRelease: true,
  },
});

Checklist

  • Added or updated necessary tests (Optional).
  • Updated documentation to align with changes (Optional).
  • Verified no breaking changes, or prepared solutions for any occurring breaking changes (Optional).
  • My change does not involve to above items.

- Add @tarko/config-loader 0.3.0 dependency for config loading
- Implement defineConfig function for TypeScript configuration
- Refactor types to extract common options (CommonOptions, AIOptions, FilterOptions)
- Add PDKConfig interface with namespaced command-specific options
- Implement loadPDKConfig and mergeOptions utilities
- Update CLI to load and merge configuration with CLI arguments
- Add comprehensive configuration documentation and examples
- Ensure CLI, Node.js API, and Config API are isomorphic
@netlify
Copy link

netlify bot commented Dec 8, 2025

Deploy Preview for tarko canceled.

Name Link
🔨 Latest commit 34e064a
🔍 Latest deploy log https://app.netlify.com/projects/tarko/deploys/6936fc436403070008ad31bd

@netlify
Copy link

netlify bot commented Dec 8, 2025

Deploy Preview for agent-tars-docs canceled.

Name Link
🔨 Latest commit 34e064a
🔍 Latest deploy log https://app.netlify.com/projects/agent-tars-docs/deploys/6936fc43697fb10007afe24a

@ulivz ulivz changed the title feat(pdk): add configuration system support feat(pdk): add config file support Dec 8, 2025
@codecov
Copy link

codecov bot commented Dec 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 14.27%. Comparing base (9bd2948) to head (34e064a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1759   +/-   ##
=======================================
  Coverage   14.27%   14.27%           
=======================================
  Files         250      250           
  Lines        8565     8565           
  Branches     1674     1674           
=======================================
  Hits         1223     1223           
  Misses       7166     7166           
  Partials      176      176           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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