Skip to content

fix: support built-in localization runtime, preview, and builder hooks - #923

Draft
sekiroxxxx wants to merge 11 commits into
cocos:mainfrom
sekiroxxxx:codex/localization-preview-host
Draft

fix: support built-in localization runtime, preview, and builder hooks#923
sekiroxxxx wants to merge 11 commits into
cocos:mainfrom
sekiroxxxx:codex/localization-preview-host

Conversation

@sekiroxxxx

@sekiroxxxx sekiroxxxx commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Provide CLI integration for packaged Localization extensions while preserving existing project-extension priority and upstream browser-preview behavior.

Changes

  • Share packaged extension-root resolution and a guarded development override.
  • Discover and reconcile the builtin Localization AssetDB mount with conflict checks and idempotent reconciliation.
  • Load project and builtin Preview contributions with manifest-name de-duplication, owner-root validation, failure isolation and unload handling.
  • Discover builtin Builder hook entries through the existing hook ABI and failure policy.

Verification

  • Node.js 22.17: 5 targeted Jest suites, 31 tests passed.
  • CLI compile and generate:dts:ci passed.
  • Paired PinK client typecheck and core/extension compilation passed.
  • The 16-file source/test diff excludes development docs, Golden capture tools and manual verification assets.

Remaining gates

This is a Draft PR. Matching PinK packaging and host integration must consume these CLI changes before release.
Real builtin cold-start, Browser Preview lifecycle, Builder/OpenPaaS execution and final package validation remain pending. Full disable, grants and legacy-copy ownership are not claimed complete.

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.

1 participant