发布

  • [OPIK-5696][TS SDK] Align TS wizard to also save project_name to ~/.opik.config (#6134)

    frostbyte_neo 发布于 2026-04-09 10:40:36 +00:00

    • [OPIK-5696] Add saveToOpikConfigStep to save configuration to ~/.opik.config in the Node.js SDK
    • Introduced saveToOpikConfigStep to manage Opik configuration as an INI file with merging support.
    • Integrated saveToOpikConfigStep into 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 parseOpikSection and serializeOpikSection for unit testing.
    • Added comprehensive test cases for parseOpikSection, serializeOpikSection, and saveToOpikConfigStep logic.
    • Updated tsconfig.json to include tests directory.
    • Added new test scripts to package.json and updated workflows to run tests for the configuration tool.
    • [OPIK-5696] Refactor configuration handling to use ini package and improve file path resolution
    • Replaced custom INI parsing/serialization logic with the ini package to simplify code and improve maintainability.
    • Added support for OPIK_CONFIG_PATH environment variable to allow custom configuration file paths.
    • Implemented fallback mechanism for invalid or non-existent OPIK_CONFIG_PATH directories.
    • Updated tests to reflect ini package 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_PATH parent 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_PATH in tests
    • Introduced setup/teardown logic to ensure OPIK_CONFIG_PATH is isolated during tests.
    • Removed redundant process.env.OPIK_CONFIG_PATH cleanup from individual test cases.
    下载附件