-
[OPIK-5696][TS SDK] Align TS wizard to also save project_name to ~/.opik.config (#6134)
发布于
2026-04-09 10:40:36 +00:00 - [OPIK-5696] Add
saveToOpikConfigStepto save configuration to~/.opik.configin the Node.js SDK
- Introduced
saveToOpikConfigStepto manage Opik configuration as an INI file with merging support. - Integrated
saveToOpikConfigStepinto the Node.js configuration wizard. - Updated step exports for inclusion in the configuration flow.
- [OPIK-5696] Add unit testing support via Vitest for Node.js SDK configuration tool
- Introduced Vitest for testing the Node.js SDK configuration tool.
- Exported
parseOpikSectionandserializeOpikSectionfor unit testing. - Added comprehensive test cases for
parseOpikSection,serializeOpikSection, andsaveToOpikConfigSteplogic. - Updated
tsconfig.jsonto includetestsdirectory. - Added new test scripts to
package.jsonand updated workflows to run tests for the configuration tool.
- [OPIK-5696] Refactor configuration handling to use
inipackage and improve file path resolution
- Replaced custom INI parsing/serialization logic with the
inipackage to simplify code and improve maintainability. - Added support for
OPIK_CONFIG_PATHenvironment variable to allow custom configuration file paths. - Implemented fallback mechanism for invalid or non-existent
OPIK_CONFIG_PATHdirectories. - Updated tests to reflect
inipackage integration and new path resolution logic.
- [OPIK-5696] Ensure parent directory creation for custom OPIK_CONFIG_PATH and update fallback handling
- Added logic to create directories recursively when
OPIK_CONFIG_PATHparent directory is missing. - Improved error handling and warnings for directory creation failures.
- Enhanced tests to validate directory creation and fallback behaviors.
- [OPIK-5696] Add environment isolation for
OPIK_CONFIG_PATHin tests
- Introduced setup/teardown logic to ensure
OPIK_CONFIG_PATHis isolated during tests. - Removed redundant
process.env.OPIK_CONFIG_PATHcleanup from individual test cases.
下载附件
- [OPIK-5696] Add