chore(spec): 综合清理 + legacy-layer 迁移 spec/plan/data
主要改动: - 切到 funplay-cocos-mcp v0.5.1 (用户级配置, 项目级 .mcp.json 删除) - 仓库文档/CLAUDE.md/.gitignore 等清理过时 cocos-mcp-server 引用 - memory 文件同步: cocos-mcp-setup/path/blocker/spriteframe-uuid/prefab-persist 等加 funplay 实测警告 - memory 新建 funplay-cocos-mcp-pending-verification.md (后已被实测覆盖) - spec/plan/data: - docs/superpowers/specs/2026-09-02-legacy-layer-migration-design.md - docs/superpowers/plans/2026-09-02-legacy-layer-migration.md - docs/superpowers/data/layer-spirit-summary.json - YouleNexus: profiles.ts / defaults.ts / PlayerInfoView.prefab / scene 改动 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,16 +5,17 @@ const { ccclass, property } = _decorator;
|
||||
/**
|
||||
* PlayerInfoView: 响应式视图组件(自包含,便于 Cocos 编辑器挂载)。
|
||||
*
|
||||
* 设计取舍:不 import framework/store-binder,以避免 framework/ 的 .ts 在
|
||||
* cocos-mcp-server 的 mount_script 下出现 ctor 错误(framework/ 路径下
|
||||
* .ts 不被 Cocos 3.8 当 Component 子类编译;见 memory cocos-mcp-mount-script-blocker)。
|
||||
* 设计取舍:不 import framework/store-binder,让本组件保持"纯 cc.Component 子类 +
|
||||
* 极简内联 binder"的单文件结构,方便通过 funplay-cocos-mcp 的 mount 流程挂到 prefab
|
||||
* (挂脚本路径与持久化限制见 memory `prefab-persist-mount-script` /
|
||||
* `cocos-mcp-mount-script-path`)。
|
||||
*
|
||||
* 实际订阅契约与 framework/ui/store-binder 一致:
|
||||
* - bindTo(binder) 接收外部 binder 实例
|
||||
* - 调用方持有 binder,内部 subscribe + 自动刷新 Label.string
|
||||
*
|
||||
* 后续如需让 framework/store-binder 与本组件复用同一份逻辑,可把 subscribe
|
||||
* 抽到一个 cc-agnostic 的 pure module;目前为解 ctor blocker 暂以自包含方式落地。
|
||||
* 抽到一个 cc-agnostic 的 pure module;目前以"单文件自包含"落地,优先确保编辑器挂载稳定。
|
||||
*/
|
||||
|
||||
/** 内联极简 binder(语义与 framework/ui/store-binder 对齐) */
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.24",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "b9890bf8-c8e3-40f9-afef-d985493033b9",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
Reference in New Issue
Block a user