d2d78fa3d4
Project CI / AI game creator shell Rust crates (pull_request) Successful in 1m34s
Project CI / Backend tests (pull_request) Failing after 16s
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Failing after 2m3s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 2m7s
Project CI / Repository checks (pull_request) Failing after 25s
Project CI / Native shell tests (pull_request) Failing after 1m44s
Project CI / Frontend tests (pull_request) Successful in 2m12s
Project CI / AI game creator shell web tests (pull_request) Successful in 2m3s
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Successful in 7m30s
修复 --no-bundle 构建前的资源准备接线。 拒绝插件随包目录中的未声明文件并同步Rust校验。 增加staging替换失败后的旧资源恢复与回归测试。
164 lines
5.5 KiB
Rust
164 lines
5.5 KiB
Rust
// @generated by apps/ai-game-creator-shell/scripts/check-package-layout.mjs
|
|
// 来源:build_support/package-layout.json。不要手工编辑本文件。
|
|
// 修改随包资源布局请编辑声明文件,然后运行
|
|
// npm run agc:bundled-resources:sync(在仓库根目录)
|
|
// 门禁会校验两者一致(npm run agc:typecheck 链内含 check-package-layout.mjs)。
|
|
|
|
pub const DECLARATION_SCHEMA: &str = "agc-package-layout.v1";
|
|
pub const LAYOUT_VERSION: u64 = 2;
|
|
|
|
pub const CODEX_VERSION: &str = "0.155.1";
|
|
pub const CODEX_CLI_VERSION: &str = "codex-cli 0.155.1";
|
|
pub const CODEX_MANIFEST_SCHEMA: &str = "genarrative-codex-sidecar.v2";
|
|
|
|
pub const CLAUDE_AGENT_SDK_VERSION: &str = "0.3.285";
|
|
|
|
pub const GODOT_BUNDLE_FILES: &[&str] = &["bin/win-x64/agc_godot_editor.dll", "bin/win-x64/metadata.json", "vendor/LICENSE.txt", "vendor/provenance.json"];
|
|
|
|
pub const CODEX: Codex = Codex {
|
|
package_metadata: PackageMetadata {
|
|
layout_version: 1,
|
|
resources_dir: "codex-resources",
|
|
path_dir: "codex-path",
|
|
},
|
|
resource_directory: "resources/codex",
|
|
manifest_file_name: "manifest.json",
|
|
package_metadata_file_name: "codex-package.json",
|
|
notice_file_name: "NOTICE.md",
|
|
source_roots: &["app", "repo"],
|
|
source_relative_paths: &["node_modules/@openai/codex-<platform>/vendor/<target>", "node_modules/@openai/codex/node_modules/@openai/codex-<platform>/vendor/<target>"],
|
|
notice_sources: &[
|
|
NoticeSource {
|
|
targets: &["aarch64-apple-darwin", "x86_64-apple-darwin"],
|
|
source: "resources/codex/【声明】Mac内置Codex组件-2026-09-18.md",
|
|
preserve: false,
|
|
},
|
|
NoticeSource {
|
|
targets: &["x86_64-pc-windows-msvc"],
|
|
source: "resources/codex/win-x64/NOTICE.md",
|
|
preserve: true,
|
|
}
|
|
],
|
|
universal_groups: &[
|
|
UniversalGroup {
|
|
name: "mac-native",
|
|
directory: "mac-native",
|
|
targets: &["aarch64-apple-darwin", "x86_64-apple-darwin"],
|
|
}
|
|
],
|
|
targets: &[
|
|
CodexTarget {
|
|
target: "x86_64-pc-windows-msvc",
|
|
platform: "win32-x64",
|
|
directory: "win-x64",
|
|
executable: "bin/codex.exe",
|
|
files: &["bin/codex.exe", "bin/codex-code-mode-host.exe", "codex-path/rg.exe", "codex-resources/codex-command-runner.exe", "codex-resources/codex-windows-sandbox-setup.exe", "codex-package.json"],
|
|
},
|
|
CodexTarget {
|
|
target: "aarch64-apple-darwin",
|
|
platform: "darwin-arm64",
|
|
directory: "mac-native/darwin-arm64",
|
|
executable: "bin/codex",
|
|
files: &["bin/codex", "bin/codex-code-mode-host", "codex-path/rg", "codex-resources/zsh/bin/zsh", "codex-package.json"],
|
|
},
|
|
CodexTarget {
|
|
target: "x86_64-apple-darwin",
|
|
platform: "darwin-x64",
|
|
directory: "mac-native/darwin-x64",
|
|
executable: "bin/codex",
|
|
files: &["bin/codex", "bin/codex-code-mode-host", "codex-path/rg", "codex-resources/zsh/bin/zsh", "codex-package.json"],
|
|
}
|
|
],
|
|
};
|
|
|
|
pub const CLAUDE_AGENT: ClaudeAgent = ClaudeAgent {
|
|
version: "0.3.285",
|
|
resource_directory: "resources/claude-agent",
|
|
entry_relative_path: "agent-sidecar/src/index.mjs",
|
|
entry_file_name: "index.mjs",
|
|
node_modules_directory: "node_modules",
|
|
sdk_package_name: "@anthropic-ai/claude-agent-sdk",
|
|
sdk_entry_file_name: "sdk.mjs",
|
|
sdk_package_metadata_file_name: "package.json",
|
|
targets: &[
|
|
ClaudeAgentTarget {
|
|
target: "x86_64-pc-windows-msvc",
|
|
runtime_package: "claude-agent-sdk-win32-x64",
|
|
runtime_file_name: "claude.exe",
|
|
},
|
|
ClaudeAgentTarget {
|
|
target: "aarch64-apple-darwin",
|
|
runtime_package: "claude-agent-sdk-darwin-arm64",
|
|
runtime_file_name: "claude",
|
|
},
|
|
ClaudeAgentTarget {
|
|
target: "x86_64-apple-darwin",
|
|
runtime_package: "claude-agent-sdk-darwin-x64",
|
|
runtime_file_name: "claude",
|
|
}
|
|
],
|
|
};
|
|
|
|
pub const PLUGINS: Plugins = Plugins {
|
|
source_directory: "plugins",
|
|
destination_directory: "resources/plugins",
|
|
manifest_file_name: "plugin.json",
|
|
target_contains_any: &["windows", "apple-darwin"],
|
|
subdirectories: &[
|
|
Subdirectory {
|
|
path: "src",
|
|
plugin: "",
|
|
origin: "source",
|
|
target_contains: &[],
|
|
targets: &[],
|
|
features: &[],
|
|
},
|
|
Subdirectory {
|
|
path: "panels",
|
|
plugin: "",
|
|
origin: "source",
|
|
target_contains: &[],
|
|
targets: &[],
|
|
features: &[],
|
|
},
|
|
Subdirectory {
|
|
path: "skills",
|
|
plugin: "",
|
|
origin: "source",
|
|
target_contains: &[],
|
|
targets: &[],
|
|
features: &[],
|
|
},
|
|
Subdirectory {
|
|
path: "native/payload",
|
|
plugin: "agc-cocos-editor",
|
|
origin: "prepared",
|
|
target_contains: &["windows"],
|
|
targets: &[],
|
|
features: &["cocos-editor-injection"],
|
|
},
|
|
Subdirectory {
|
|
path: "dotnet/publish/win-x64",
|
|
plugin: "agc-unity-editor",
|
|
origin: "prepared",
|
|
target_contains: &[],
|
|
targets: &["x86_64-pc-windows-msvc"],
|
|
features: &["unity-editor-execute"],
|
|
}
|
|
],
|
|
library_staging: &[
|
|
LibraryStaging {
|
|
plugin: "agc-godot-editor",
|
|
source_subdirectory: "native/gdextension",
|
|
targets: &["x86_64-pc-windows-msvc"],
|
|
features: &["godot-editor-execute"],
|
|
layout: "godot-bundle",
|
|
files: &["bin/win-x64/agc_godot_editor.dll", "bin/win-x64/metadata.json", "vendor/LICENSE.txt", "vendor/provenance.json"],
|
|
}
|
|
],
|
|
skip_directory_names: &["target", "node_modules"],
|
|
skip_directory_name_prefixes: &["."],
|
|
skip_file_name_prefixes: &["."],
|
|
skip_file_name_fragments: &[".test."],
|
|
};
|