chore: 更新仓库 URL (ecs-framework → esengine)

仓库已从 esengine/ecs-framework 重命名为 esengine/esengine
更新所有引用旧 URL 的文件
This commit is contained in:
yhh
2025-12-08 21:23:37 +08:00
parent c3b7250f85
commit 240b165970
350 changed files with 611 additions and 611 deletions

View File

@@ -8,7 +8,7 @@
* 使用注册表模式替代原型修改,实现更清晰的架构。
*/
import type { Component, ComponentType, Entity } from '@esengine/ecs-framework';
import type { Component, ComponentType, Entity } from '@esengine/esengine';
import type { IGizmoProvider, IGizmoRenderData } from './IGizmoProvider';
/**

View File

@@ -8,7 +8,7 @@
* 使用 Rust WebGL 渲染器实现高性能 gizmo 显示。
*/
import type { Entity } from '@esengine/ecs-framework';
import type { Entity } from '@esengine/esengine';
/**
* Gizmo type enumeration

View File

@@ -3,8 +3,8 @@
* Unified Plugin Manager
*/
import { createLogger, ComponentRegistry } from '@esengine/ecs-framework';
import type { IScene, ServiceContainer, IService } from '@esengine/ecs-framework';
import { createLogger, ComponentRegistry } from '@esengine/esengine';
import type { IScene, ServiceContainer, IService } from '@esengine/esengine';
import type {
ModuleManifest,
IPlugin,

View File

@@ -12,7 +12,7 @@
* Uses .meta files to persistently store each asset's GUID.
*/
import { Core, createLogger, PlatformDetector, type IService } from '@esengine/ecs-framework';
import { Core, createLogger, PlatformDetector, type IService } from '@esengine/esengine';
import { MessageHub } from './MessageHub';
import {
AssetMetaManager,

View File

@@ -6,7 +6,7 @@
* 管理构建管线和执行构建任务。
*/
import type { IService } from '@esengine/ecs-framework';
import type { IService } from '@esengine/esengine';
import type {
IBuildPipeline,
IBuildPipelineRegistry,

View File

@@ -430,7 +430,7 @@ export class WeChatBuildPipeline implements IBuildPipeline {
bundleName: 'user-code',
minify: wxConfig.isRelease,
sourceMap: wxConfig.sourceMap,
external: ['@esengine/ecs-framework', '@esengine/core'],
external: ['@esengine/esengine', '@esengine/core'],
projectRoot: context.projectRoot,
define: {
'process.env.NODE_ENV': wxConfig.isRelease ? '"production"' : '"development"',
@@ -468,7 +468,7 @@ export class WeChatBuildPipeline implements IBuildPipeline {
console.log(`[WeChatBuild] Copied WeChat runtime | 复制微信运行时: ${count} files`);
} else {
// Fallback to standard runtime | 回退到标准运行时
const stdRuntimeSrc = `${context.projectRoot}/node_modules/@esengine/ecs-framework/dist`;
const stdRuntimeSrc = `${context.projectRoot}/node_modules/@esengine/esengine/dist`;
const hasStdRuntime = await fs.pathExists(stdRuntimeSrc);
if (hasStdRuntime) {
const count = await fs.copyDirectory(stdRuntimeSrc, runtimeDst, ['*.js']);

View File

@@ -421,7 +421,7 @@ export class WebBuildPipeline implements IBuildPipeline {
bundleName: 'user-code',
minify: webConfig.isRelease,
sourceMap: webConfig.sourceMap,
external: ['@esengine/ecs-framework', '@esengine/core'],
external: ['@esengine/esengine', '@esengine/core'],
projectRoot: context.projectRoot,
define: {
'process.env.NODE_ENV': webConfig.isRelease ? '"production"' : '"development"'

View File

@@ -1,4 +1,4 @@
import { IService } from '@esengine/ecs-framework';
import { IService } from '@esengine/esengine';
import { ICompiler } from './ICompiler';
export class CompilerRegistry implements IService {

View File

@@ -5,7 +5,7 @@
*/
import { injectable } from 'tsyringe';
import type { IService } from '@esengine/ecs-framework';
import type { IService } from '@esengine/esengine';
import type { ComponentAction } from '../Plugin/EditorModule';
// Re-export ComponentAction type from Plugin system
export type { ComponentAction } from '../Plugin/EditorModule';

View File

@@ -1,6 +1,6 @@
import type { IService } from '@esengine/ecs-framework';
import { Injectable } from '@esengine/ecs-framework';
import { createLogger } from '@esengine/ecs-framework';
import type { IService } from '@esengine/esengine';
import { Injectable } from '@esengine/esengine';
import { createLogger } from '@esengine/esengine';
import { MessageHub } from './MessageHub';
const logger = createLogger('ComponentDiscoveryService');

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { Component, IService, createLogger } from '@esengine/ecs-framework';
import { Component, IService, createLogger } from '@esengine/esengine';
const logger = createLogger('ComponentInspectorRegistry');

View File

@@ -1,4 +1,4 @@
import { Injectable, IService, Component } from '@esengine/ecs-framework';
import { Injectable, IService, Component } from '@esengine/esengine';
export interface ComponentTypeInfo {
name: string;

View File

@@ -5,7 +5,7 @@
*/
import { injectable } from 'tsyringe';
import type { IService } from '@esengine/ecs-framework';
import type { IService } from '@esengine/esengine';
import type { EntityCreationTemplate } from '../Types/UITypes';
@injectable()

View File

@@ -1,4 +1,4 @@
import { Injectable, IService, Entity, Core, HierarchyComponent } from '@esengine/ecs-framework';
import { Injectable, IService, Entity, Core, HierarchyComponent } from '@esengine/esengine';
import { MessageHub } from './MessageHub';
export interface EntityTreeNode {

View File

@@ -1,4 +1,4 @@
import { IService, createLogger } from '@esengine/ecs-framework';
import { IService, createLogger } from '@esengine/esengine';
import { IFieldEditor, IFieldEditorRegistry, FieldEditorContext } from './IFieldEditor';
const logger = createLogger('FieldEditorRegistry');

View File

@@ -1,4 +1,4 @@
import { IService } from '@esengine/ecs-framework';
import { IService } from '@esengine/esengine';
import type { FileActionHandler, FileCreationTemplate } from '../Plugin/EditorModule';
// Re-export for backwards compatibility

View File

@@ -7,7 +7,7 @@ export interface CompileResult {
import type { IFileSystem } from './IFileSystem';
import type { IDialog } from './IDialog';
import type { IService, ServiceType } from '@esengine/ecs-framework';
import type { IService, ServiceType } from '@esengine/esengine';
export interface CompilerModuleContext {
fileSystem: IFileSystem;

View File

@@ -1,5 +1,5 @@
import { IInspectorProvider, InspectorContext } from './IInspectorProvider';
import { IService } from '@esengine/ecs-framework';
import { IService } from '@esengine/esengine';
import React from 'react';
export class InspectorRegistry implements IService {

View File

@@ -1,6 +1,6 @@
import type { IService } from '@esengine/ecs-framework';
import { Injectable } from '@esengine/ecs-framework';
import { createLogger } from '@esengine/ecs-framework';
import type { IService } from '@esengine/esengine';
import { Injectable } from '@esengine/esengine';
import { createLogger } from '@esengine/esengine';
const logger = createLogger('LocaleService');

View File

@@ -1,5 +1,5 @@
import type { IService } from '@esengine/ecs-framework';
import { Injectable, LogLevel } from '@esengine/ecs-framework';
import type { IService } from '@esengine/esengine';
import { Injectable, LogLevel } from '@esengine/esengine';
export interface LogEntry {
id: number;

View File

@@ -1,6 +1,6 @@
import type { IService } from '@esengine/ecs-framework';
import { Injectable } from '@esengine/ecs-framework';
import { createLogger } from '@esengine/ecs-framework';
import type { IService } from '@esengine/esengine';
import { Injectable } from '@esengine/esengine';
import { createLogger } from '@esengine/esengine';
const logger = createLogger('MessageHub');

View File

@@ -6,7 +6,7 @@
* 管理编辑器工具的隔离预览场景(瓦片地图编辑器、材质预览等)
*/
import { Scene, EntitySystem, Entity } from '@esengine/ecs-framework';
import { Scene, EntitySystem, Entity } from '@esengine/esengine';
/**
* Configuration for creating a preview scene

View File

@@ -1,6 +1,6 @@
import type { IService } from '@esengine/ecs-framework';
import { Injectable } from '@esengine/ecs-framework';
import { createLogger, Scene } from '@esengine/ecs-framework';
import type { IService } from '@esengine/esengine';
import { Injectable } from '@esengine/esengine';
import { createLogger, Scene } from '@esengine/esengine';
import { MessageHub } from './MessageHub';
import type { IFileAPI } from '../Types/IFileAPI';

View File

@@ -1,6 +1,6 @@
import type { IService, PropertyOptions, PropertyAction, PropertyControl, AssetType, EnumOption } from '@esengine/ecs-framework';
import { Injectable, Component, getPropertyMetadata } from '@esengine/ecs-framework';
import { createLogger } from '@esengine/ecs-framework';
import type { IService, PropertyOptions, PropertyAction, PropertyControl, AssetType, EnumOption } from '@esengine/esengine';
import { Injectable, Component, getPropertyMetadata } from '@esengine/esengine';
import { createLogger } from '@esengine/esengine';
const logger = createLogger('PropertyMetadata');

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { IService, createLogger } from '@esengine/ecs-framework';
import { IService, createLogger } from '@esengine/esengine';
import { IPropertyRenderer, IPropertyRendererRegistry, PropertyContext } from './IPropertyRenderer';
const logger = createLogger('PropertyRendererRegistry');

View File

@@ -1,5 +1,5 @@
import type { IService } from '@esengine/ecs-framework';
import { Injectable, Core, createLogger, SceneSerializer, Scene } from '@esengine/ecs-framework';
import type { IService } from '@esengine/esengine';
import { Injectable, Core, createLogger, SceneSerializer, Scene } from '@esengine/esengine';
import type { SceneResourceManager } from '@esengine/asset-system';
import type { MessageHub } from './MessageHub';
import type { IFileAPI } from '../Types/IFileAPI';

View File

@@ -1,4 +1,4 @@
import type { Scene, Entity } from '@esengine/ecs-framework';
import type { Scene, Entity } from '@esengine/esengine';
/**
* 默认实体创建函数类型

View File

@@ -1,6 +1,6 @@
import type { IService } from '@esengine/ecs-framework';
import { Injectable } from '@esengine/ecs-framework';
import { createLogger } from '@esengine/ecs-framework';
import type { IService } from '@esengine/esengine';
import { Injectable } from '@esengine/esengine';
import { createLogger } from '@esengine/esengine';
import type { ISerializer } from '../Plugin/EditorModule';
const logger = createLogger('SerializerRegistry');

View File

@@ -1,4 +1,4 @@
import { Injectable, IService } from '@esengine/ecs-framework';
import { Injectable, IService } from '@esengine/esengine';
export type SettingType = 'string' | 'number' | 'boolean' | 'select' | 'color' | 'range' | 'pluginList' | 'collisionMatrix' | 'moduleList';

View File

@@ -1,6 +1,6 @@
import type { IService } from '@esengine/ecs-framework';
import { Injectable } from '@esengine/ecs-framework';
import { createLogger } from '@esengine/ecs-framework';
import type { IService } from '@esengine/esengine';
import { Injectable } from '@esengine/esengine';
import { createLogger } from '@esengine/esengine';
import type { MenuItem, ToolbarItem, PanelDescriptor } from '../Types/UITypes';
const logger = createLogger('UIRegistry');

View File

@@ -6,8 +6,8 @@
* 提供用户脚本的编译、加载和热更新功能。
*/
import type { IService } from '@esengine/ecs-framework';
import { Injectable, createLogger, PlatformDetector, ComponentRegistry as CoreComponentRegistry } from '@esengine/ecs-framework';
import type { IService } from '@esengine/esengine';
import { Injectable, createLogger, PlatformDetector, ComponentRegistry as CoreComponentRegistry } from '@esengine/esengine';
import type {
IUserCodeService,
UserScriptInfo,
@@ -182,7 +182,7 @@ export class UserCodeService implements IService, IUserCodeService {
// Build alias map for framework dependencies | 构建框架依赖的别名映射
const shimPath = `${outputDir}${sep}_shim_ecs_framework.js`.replace(/\\/g, '/');
const alias: Record<string, string> = {
'@esengine/ecs-framework': shimPath,
'@esengine/esengine': shimPath,
'@esengine/core': shimPath,
'@esengine/engine-core': shimPath,
'@esengine/math': shimPath
@@ -913,10 +913,10 @@ export class UserCodeService implements IService, IUserCodeService {
* So the relative path from entry to scripts is: ../../scripts/
*
* For IIFE format, we inject shims that map global variables to module imports.
* This allows user code to use `import { Component } from '@esengine/ecs-framework'`
* This allows user code to use `import { Component } from '@esengine/esengine'`
* while actually accessing `window.__ESENGINE_FRAMEWORK__`.
* 对于 IIFE 格式,我们注入 shim 将全局变量映射到模块导入。
* 这使用户代码可以使用 `import { Component } from '@esengine/ecs-framework'`
* 这使用户代码可以使用 `import { Component } from '@esengine/esengine'`
* 实际上访问的是 `window.__ESENGINE_FRAMEWORK__`。
*/
private _buildEntryPoint(
@@ -970,11 +970,11 @@ export class UserCodeService implements IService, IUserCodeService {
const sep = outputDir.includes('\\') ? '\\' : '/';
const shimPaths: string[] = [];
// Create shim for @esengine/ecs-framework | 为 @esengine/ecs-framework 创建 shim
// Create shim for @esengine/esengine | 为 @esengine/esengine 创建 shim
// This uses window.__ESENGINE__.ecsFramework set by PluginSDKRegistry
// 这使用 PluginSDKRegistry 设置的 window.__ESENGINE__.ecsFramework
const ecsShimPath = `${outputDir}${sep}_shim_ecs_framework.js`;
const ecsShimContent = `// Shim for @esengine/ecs-framework
const ecsShimContent = `// Shim for @esengine/esengine
// Maps to window.__ESENGINE__.ecsFramework set by PluginSDKRegistry
module.exports = (typeof window !== 'undefined' && window.__ESENGINE__ && window.__ESENGINE__.ecsFramework) || {};
`;
@@ -990,7 +990,7 @@ module.exports = (typeof window !== 'undefined' && window.__ESENGINE__ && window
*/
private _getExternalDependencies(target: UserCodeTarget): string[] {
const common = [
'@esengine/ecs-framework',
'@esengine/esengine',
'@esengine/engine-core',
'@esengine/core',
'@esengine/math'

View File

@@ -57,7 +57,7 @@
*
* ```typescript
* // scripts/Player.ts
* import { Component, Serialize, Property } from '@esengine/ecs-framework';
* import { Component, Serialize, Property } from '@esengine/esengine';
*
* export class PlayerComponent extends Component {
* @Serialize()

View File

@@ -1,4 +1,4 @@
import { IService } from '@esengine/ecs-framework';
import { IService } from '@esengine/esengine';
import { ComponentType } from 'react';
/**