From 52bda43e3cbe24c87a3c251ea483ca18ad694049 Mon Sep 17 00:00:00 2001 From: cneicy Date: Wed, 26 Aug 2026 12:48:31 +0800 Subject: [PATCH] chore(editor): localize context entry points --- Development~/UnityProject/Packages/manifest.json | 10 +++++----- Editor/ShrinkContextDiagnosticsWindow.cs | 6 +++--- README.md | 2 +- Runtime/ShrinkAppCompositionProfile.cs | 2 +- package.json | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Development~/UnityProject/Packages/manifest.json b/Development~/UnityProject/Packages/manifest.json index 3c9f0c0..b835c39 100644 --- a/Development~/UnityProject/Packages/manifest.json +++ b/Development~/UnityProject/Packages/manifest.json @@ -11,12 +11,12 @@ "dependencies": { "com.unity.test-framework": "1.1.33", "com.cneicy.shrink-context-app-adapter": "file:../../..", - "com.cneicy.shrink-app-starter-basic": "0.1.2", + "com.cneicy.shrink-app-starter-basic": "0.2.0", "com.cneicy.shrink-command": "0.2.0", - "com.cneicy.shrink-command-integration-app": "0.1.0", - "com.cneicy.shrink-datasaver-integration-app": "0.1.0", - "com.cneicy.shrink-network": "0.2.0", - "com.cneicy.shrink-network-integration-app": "0.1.0", + "com.cneicy.shrink-command-integration-app": "0.1.1", + "com.cneicy.shrink-datasaver-integration-app": "0.1.1", + "com.cneicy.shrink-network": "0.2.1", + "com.cneicy.shrink-network-integration-app": "0.1.1", "com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask#7c0f199fe0d3fc528024488ccd671e6c7b27745b" }, "testables": [ diff --git a/Editor/ShrinkContextDiagnosticsWindow.cs b/Editor/ShrinkContextDiagnosticsWindow.cs index d2f6c3d..0ea32a8 100644 --- a/Editor/ShrinkContextDiagnosticsWindow.cs +++ b/Editor/ShrinkContextDiagnosticsWindow.cs @@ -28,10 +28,10 @@ namespace ShrinkContext.AppAdapter.Editor private ShrinkContextBenchmarkReport? _benchmarkReport; private string? _benchmarkError; - [MenuItem("ShrinkSDK/Cordis/诊断与组合")] + [MenuItem("ShrinkSDK/上下文/诊断与组合")] public static void ShowWindow() { - var window = GetWindow("Cordis Diagnostics"); + var window = GetWindow("Context 诊断与组合"); window.minSize = new Vector2(720f, 520f); } @@ -167,7 +167,7 @@ namespace ShrinkContext.AppAdapter.Editor if (_profile == null) { EditorGUILayout.HelpBox( - "未选择 Composition Profile。可通过 Assets/Create/ShrinkSDK/Cordis/Composition Profile 创建。", + "未选择组合配置。可通过 Assets/Create/ShrinkSDK/上下文/组合配置创建。", MessageType.Info); return; } diff --git a/README.md b/README.md index 3a7df8b..c8b480c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ ShrinkApp ↔ ShrinkContext 的桥接层:提供当前默认的 ContextLoader | `ShrinkAppLoaderHost` | 加载器驱动的 ShrinkApp 宿主:发现安装器(注入覆盖可测试)、应用声明式组合、经 `ShrinkContextLoader` 增量协调、运行中按模块开关 | | `ShrinkAppCompositionProfile` | ScriptableObject/JSON 组合文档:描述条目启用、显式排除、isolate 与 intercept;组件工厂仍由代码目录注册 | | `ShrinkAppLoaderBootstrapper` | `hostingMode == ContextLoader` 时自动创建常驻宿主,应用 `Resources/ShrinkAppComposition`,并把服务容器接回 `ShrinkApp.Services` | -| `ShrinkContextDiagnosticsWindow` | `ShrinkSDK/Cordis/诊断与组合`:查看运行时 fiber/依赖/事务、编辑 Profile JSON、读取可选的 ModFramework 常驻统计并运行容量基准 | +| `ShrinkContextDiagnosticsWindow` | `ShrinkSDK/上下文/诊断与组合`:查看运行时 fiber/依赖/事务、编辑 Profile JSON、读取可选的 ModFramework 常驻统计并运行容量基准 | ## 启用方式 diff --git a/Runtime/ShrinkAppCompositionProfile.cs b/Runtime/ShrinkAppCompositionProfile.cs index 1d093ab..08ba00c 100644 --- a/Runtime/ShrinkAppCompositionProfile.cs +++ b/Runtime/ShrinkAppCompositionProfile.cs @@ -242,7 +242,7 @@ namespace ShrinkContext.AppAdapter } } - [CreateAssetMenu(fileName = DefaultResourceName, menuName = "ShrinkSDK/Cordis/Composition Profile")] + [CreateAssetMenu(fileName = DefaultResourceName, menuName = "ShrinkSDK/上下文/组合配置")] public sealed class ShrinkAppCompositionProfile : ScriptableObject { public const string DefaultResourceName = "ShrinkAppComposition"; diff --git a/package.json b/package.json index 8847b82..e2fb9ac 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "com.cneicy.shrink-context-app-adapter", - "version": "0.1.2", + "version": "0.1.3", "displayName": "ShrinkContext - ShrinkApp Adapter", "description": "把现有 IShrinkAppModuleInstaller 包装为 ShrinkContext 组件:依赖缺失改为等待而非抛错,模块激活由响应式余效应驱动。", "unity": "2022.3", "dependencies": { "com.cneicy.shrink-context-core": "0.1.0", - "com.cneicy.shrink-app-core": "0.1.1", + "com.cneicy.shrink-app-core": "0.1.2", "com.cneicy.shrink-eventbus": "2.0.0", "com.cysharp.unitask": "2.5.10", "com.unity.modules.jsonserialize": "1.0.0"