{ "schema": "agc-package-layout.v1", "description": "AGC 随包资源布局与复制规则的唯一声明。Rust 侧构建期校验与 Node 侧准备步骤共用本文件,任何一侧都不得再写第二份布局或组件白名单。含 、 占位符的字段由调用方按目标三元展开。修改布局时同步递增 layoutVersion(准备步骤的缓存 key 组成部分)。", "layoutVersion": 2, "codex": { "version": "0.155.1", "cliVersionPrefix": "codex-cli ", "manifestSchema": "genarrative-codex-sidecar.v2", "packageMetadata": { "layoutVersion": 1, "resourcesDir": "codex-resources", "pathDir": "codex-path" }, "resourceDirectory": "resources/codex", "manifestFileName": "manifest.json", "packageMetadataFileName": "codex-package.json", "noticeFileName": "NOTICE.md", "sourceRoots": ["app", "repo"], "sourceRelativePaths": [ "node_modules/@openai/codex-/vendor/", "node_modules/@openai/codex/node_modules/@openai/codex-/vendor/" ], "noticeSources": [ { "targets": ["aarch64-apple-darwin", "x86_64-apple-darwin"], "source": "resources/codex/【声明】Mac内置Codex组件-2026-09-18.md", "preserve": false }, { "targets": ["x86_64-pc-windows-msvc"], "source": "resources/codex/win-x64/NOTICE.md", "preserve": true } ], "universalGroups": [ { "name": "mac-native", "directory": "mac-native", "targets": ["aarch64-apple-darwin", "x86_64-apple-darwin"] } ], "targets": [ { "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" ] }, { "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" ] }, { "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" ] } ] }, "claudeAgent": { "version": "0.3.285", "resourceDirectory": "resources/claude-agent", "entryRelativePath": "agent-sidecar/src/index.mjs", "entryFileName": "index.mjs", "nodeModulesDirectory": "node_modules", "sdkPackageName": "@anthropic-ai/claude-agent-sdk", "sdkEntryFileName": "sdk.mjs", "sdkPackageMetadataFileName": "package.json", "sourceRoots": ["app", "repo"], "skipDirectoryNames": ["target", "node_modules"], "skipDirectoryNamePrefixes": ["."], "skipFileNamePrefixes": ["."], "skipFileNameFragments": [".test."], "targets": [ { "target": "x86_64-pc-windows-msvc", "runtimePackage": "claude-agent-sdk-win32-x64", "runtimeFileName": "claude.exe" }, { "target": "aarch64-apple-darwin", "runtimePackage": "claude-agent-sdk-darwin-arm64", "runtimeFileName": "claude" }, { "target": "x86_64-apple-darwin", "runtimePackage": "claude-agent-sdk-darwin-x64", "runtimeFileName": "claude" } ] }, "plugins": { "sourceDirectory": "plugins", "destinationDirectory": "resources/plugins", "manifestFileName": "plugin.json", "targetContainsAny": ["windows", "apple-darwin"], "subdirectories": [ { "path": "src", "origin": "source" }, { "path": "panels", "origin": "source" }, { "path": "skills", "origin": "source" }, { "path": "native/payload", "origin": "prepared", "targetContains": ["windows"], "plugin": "agc-cocos-editor", "prepare": "cocos-bridge-build", "features": ["cocos-editor-injection"] }, { "path": "dotnet/publish/win-x64", "origin": "prepared", "prepare": "unity-helper-publish", "targets": ["x86_64-pc-windows-msvc"], "features": ["unity-editor-execute"], "plugin": "agc-unity-editor" } ], "libraryStaging": [ { "plugin": "agc-godot-editor", "sourceSubdirectory": "native/gdextension", "prepare": "godot-extension-build", "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" ] } ], "nativePayloads": [ { "plugin": "agc-cocos-editor", "prepare": "cocos-bridge-build", "sourceFileName": "cocos_editor_bridge.dll", "destinationSubdirectory": "native/payload", "targets": ["x86_64-pc-windows-msvc"], "features": ["cocos-editor-injection"], "destinationFileName": "cocos-editor-bridge.dll" } ], "prepareSteps": [ { "name": "unity-helper-publish", "kind": "powershell", "workingDirectory": "plugins/agc-unity-editor/dotnet", "scriptFileName": "build.ps1", "fingerprint": { "roots": ["."], "excludeDirectoryNames": ["bin", "obj", "publish", "native-build"], "stampRelativePath": "publish/win-x64/.agc-source.sha256" }, "requiredOutputs": [ "plugins/agc-unity-editor/dotnet/publish/win-x64/Agc.Unity.Attach.exe", "plugins/agc-unity-editor/dotnet/publish/win-x64/NOTICE", "plugins/agc-unity-editor/dotnet/publish/win-x64/THIRD-PARTY-NOTICES.txt", "plugins/agc-unity-editor/dotnet/publish/win-x64/licenses/DotCraft-Apache-2.0.txt", "plugins/agc-unity-editor/dotnet/publish/win-x64/licenses/Roslyn-MIT.txt", "plugins/agc-unity-editor/dotnet/publish/win-x64/licenses/upstream.json", "plugins/agc-unity-editor/dotnet/publish/win-x64/licenses/dotnet-LICENSE.TXT", "plugins/agc-unity-editor/dotnet/publish/win-x64/licenses/dotnet-THIRD-PARTY-NOTICES.TXT", "plugins/agc-unity-editor/dotnet/publish/win-x64/licenses/microsoft.codeanalysis.common-ThirdPartyNotices.rtf", "plugins/agc-unity-editor/dotnet/publish/win-x64/licenses/microsoft.codeanalysis.csharp-ThirdPartyNotices.rtf" ] }, { "name": "godot-extension-build", "kind": "powershell", "workingDirectory": "plugins/agc-godot-editor/native/gdextension", "scriptFileName": "build.ps1", "removeEnvironment": ["PSModulePath"], "requiredOutputs": [ "plugins/agc-godot-editor/native/gdextension/bin/win-x64/agc_godot_editor.dll", "plugins/agc-godot-editor/native/gdextension/bin/win-x64/metadata.json", "plugins/agc-godot-editor/native/gdextension/vendor/LICENSE.txt", "plugins/agc-godot-editor/native/gdextension/vendor/provenance.json" ], "fingerprint": { "roots": ["."], "excludeDirectoryNames": ["bin", ".build", "native-build"], "stampRelativePath": "bin/win-x64/.agc-source.sha256" } }, { "name": "cocos-bridge-build", "kind": "cargo", "packageDirectory": "plugins/agc-cocos-editor/native/cocos-editor-bridge", "features": ["windows-injection"], "requiredOutputs": [] } ], "skipDirectoryNames": ["target", "node_modules"], "skipDirectoryNamePrefixes": ["."], "skipFileNamePrefixes": ["."], "skipFileNameFragments": [".test."] } }