For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/sdk/module-loader/functions/migrateV2toV3.md.
  • 简体中文
  • Function: migrateV2toV3()

    function migrateV2toV3(v2: ManifestV2): ManifestV3;

    Defined in: module-loader/manifest.ts:249

    v2 → v3 迁移。保守策略:

    • 所有 v2 必需字段原样复制;
    • semantic 全部默认空(不强填臆造值),依赖用户在下一轮手动补全;
    • 输入缺失字段(requires/permissions 缺失)默认空数组——沙箱里跑测的临时模块常常 只写 id/name,运行时兼容;catalog 投影路径仍以 schemaVersion 校验为准。
    • 允许 readonly 输入。

    Parameters

    ParameterType
    v2ManifestV2

    Returns

    ManifestV3