diff --git a/apps/ai-game-creator-shell/scripts/start-dev-stack.mjs b/apps/ai-game-creator-shell/scripts/start-dev-stack.mjs index df4d99980..6d15e497a 100644 --- a/apps/ai-game-creator-shell/scripts/start-dev-stack.mjs +++ b/apps/ai-game-creator-shell/scripts/start-dev-stack.mjs @@ -50,7 +50,6 @@ const { viteHost, vitePort, apiPort, - bgfilterWorkerPort, spacetimePort, backendDatabase, backendSpacetimeDataDir, @@ -737,8 +736,8 @@ export { preflightExistingVite, readChildFailure, readLinuxProcessGroupAlive, - resolveDevStackProfile, resolveBackendTargetsFromState, + resolveDevStackProfile, runWindowsTaskkill, spawnChild, stopChild, diff --git a/apps/ai-game-creator-shell/src/view/project-development/resourceProjectionModel.ts b/apps/ai-game-creator-shell/src/view/project-development/resourceProjectionModel.ts index 82dcb4269..9d0422b01 100644 --- a/apps/ai-game-creator-shell/src/view/project-development/resourceProjectionModel.ts +++ b/apps/ai-game-creator-shell/src/view/project-development/resourceProjectionModel.ts @@ -60,7 +60,7 @@ function fileName(path: string) { function isConcreteTaskArtifactPath(path: string) { const normalizedPath = path.trim(); - return normalizedPath.length > 0 && !/[*?\[\]{}]/u.test(normalizedPath); + return normalizedPath.length > 0 && !/[*?[\]{}]/u.test(normalizedPath); } export function classifyProjectedResource(input: { diff --git a/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts b/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts index 67cb5a6a6..a8bb6012a 100644 --- a/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts +++ b/apps/ai-game-creator-shell/tests/appSurface/home.suite.ts @@ -1,6 +1,6 @@ +import type { RunnableGameVersion } from '../../../../packages/shared/src/contracts/gameCreationApp'; import type { ProjectSupervisorComponentProps } from '../../src/features/app-shell/model'; import { WorkspaceLauncherShell } from '../../src/features/app-shell/WorkspaceLauncher'; -import type { RunnableGameVersion } from '../../../../packages/shared/src/contracts/gameCreationApp'; import { act, App, diff --git a/apps/ai-game-creator-shell/tests/resourceCanvasLayoutModel.test.ts b/apps/ai-game-creator-shell/tests/resourceCanvasLayoutModel.test.ts index 3de69b81c..fd57d11c8 100644 --- a/apps/ai-game-creator-shell/tests/resourceCanvasLayoutModel.test.ts +++ b/apps/ai-game-creator-shell/tests/resourceCanvasLayoutModel.test.ts @@ -4,12 +4,12 @@ import { createEmptyResourceCanvasLayout, moveResourceCanvasPosition, reconcileResourceCanvasLayout, - resourceCanvasContentWidth, RESOURCE_CANVAS_CARD_HEIGHT, RESOURCE_CANVAS_CARD_WIDTH, RESOURCE_CANVAS_COLUMN_GAP, RESOURCE_CANVAS_ROW_GAP, RESOURCE_CANVAS_SECTION_HORIZONTAL_PADDING, + resourceCanvasContentWidth, type ResourceCanvasItem, } from '../src/view/project-development/resourceCanvasLayoutModel'; diff --git a/apps/ai-game-creator-shell/tests/start-dev-stack.test.ts b/apps/ai-game-creator-shell/tests/start-dev-stack.test.ts index a178a6e08..80c183deb 100644 --- a/apps/ai-game-creator-shell/tests/start-dev-stack.test.ts +++ b/apps/ai-game-creator-shell/tests/start-dev-stack.test.ts @@ -12,8 +12,8 @@ import { isProcessGroupAlive, preflightExistingVite, readLinuxProcessGroupAlive, - resolveDevStackProfile, resolveBackendTargetsFromState, + resolveDevStackProfile, runWindowsTaskkill, spawnChild, stopChild, diff --git a/scripts/deploy/maintenance-on.sh b/scripts/deploy/maintenance-on.sh index 48b6b8a2c..c1102c2aa 100644 --- a/scripts/deploy/maintenance-on.sh +++ b/scripts/deploy/maintenance-on.sh @@ -37,19 +37,6 @@ replace_file_atomically() { mv -f "${source_file}" "${target_file}" } -replace_file_atomically() { - local source_file="$1" - local target_file="$2" - - if [[ -d "${target_file}" && ! -L "${target_file}" ]]; then - echo "[maintenance] 原子替换目标不能是目录: ${target_file}" >&2 - exit 1 - fi - # 源文件与目标文件位于同一目录,POSIX rename 语义即可保证原子替换。 - # 不使用 GNU mv 专属的 -T,确保 macOS/BSD 本地门禁也能执行。 - mv -f "${source_file}" "${target_file}" -} - while [[ $# -gt 0 ]]; do case "$1" in --page-file)