Tags: kdeps/kdeps
Tags
feat: enhance Pkl evaluator consolidation and add multiple headers su… …pport (#57) * feat: implement comprehensive Pkl evaluation during kdeps package command - Add EvaluateAllPklFiles function to evaluate ALL Pkl files in compiled project directory - Ensure Pkl evaluation runs on workflow files, resource files, and any other Pkl files - Fix test environment detection to properly skip evaluation in tests - Clean up debug logs and comments for production-ready code - Fix error string capitalization for linter compliance - Update archiver test to use NewTestLogger for proper test environment detection This ensures that the kdeps package command validates all Pkl files for syntactic correctness before packaging, providing better quality assurance and early error detection. * refactor: consolidate Pkl evaluator usage across resolver components - Update evaluator package with enhanced Pkl evaluation capabilities - Consolidate Pkl evaluator initialization and configuration across resolver components - Improve resource response handling with better Pkl evaluation integration - Update resolver components to use centralized evaluator configuration - Enhance test coverage for evaluator functionality - Apply DRY principle to Pkl evaluator usage throughout the codebase This consolidates the Pkl evaluator usage and ensures consistent evaluation behavior across all resolver components. * fix: ensure kdeps package command doesn't modify original project files - Fix CompileResources to evaluate Pkl files in compiled directory instead of original project directory - Add comprehensive tests to verify original project files are not modified during packaging - Ensure Pkl evaluation runs on all files in compiled project directory - Add TestCompileProjectDoesNotModifyOriginalFiles test to verify file protection - Update package command tests to verify correct behavior - Fix test environment detection and mock workflow implementation This ensures that the kdeps package command preserves the original project files while still performing comprehensive Pkl evaluation on all files in the compiled project directory. * feat: add support for multiple headers in Pkl files - Update EnforcePklTemplateAmendsRules to validate all amends statements - Add flexible validation requiring at least one valid amends statement per file type - Enhance PrependDynamicImports to insert imports after last amends statement - Add comprehensive tests for multiple headers scenarios - Maintain backward compatibility with existing single-amends files - Improve error messages to indicate which amends statement failed validation This enables Pkl files to have multiple amends and import statements while maintaining strict validation and preserving all headers during packaging. * fix: preserve PKL file structure in packages and correct template syntax - Replace PKL evaluation with validation during packaging to preserve original file structure with canonical action IDs - Add ValidatePkl function for syntax checking without file modification - Fix template expressions by wrapping @(...) patterns in multi-line strings for PKL syntax compliance - Ensure .kdeps packages contain modified PKL files, not evaluated output
Optional anaconda (#50) * use the latest golangci * updated to latest golangci-lint. Use a new .golangci config * increase code coverage * feat: add --version cmd params. * feat: skip anaconda cache download when usage setting is off * adjust test coverage for passing release
Implement item iteration feature (#47) * change all references of items->records * update schema to 0.2.28 * update schema to 0.2.30 * add the item sqlite reader * prepopulate item sqlite reader with values from Items array * reinitialize item DB with Items from the target action's resource * added db checks and file run counter * make list return values distinct * clear the item DB after processing all items per resource * reload the pkl file upon iteration when item > 0 * golangci fixes * added items iteration docs * fix logo filepath
refactor: extract functions out of LLM resource (#46) * refactor: use base64 functions from utils pkg * refactor: extract resource chat into individual files * added pkg/{memory, session, tool} tests * fix vision model to use binarypart (as before), and not base64 textpart * changed kdeps mount volume from /root/.kdeps -> /.kdeps * docs: update mount paths * refactor: handling of error response on api server * ensure that requestID is always returned on api response