WIP: 清理 AGC 壳热点模块编译 warning(#649) #651
Closed
suzmii
wants to merge 0 commits from
chore/agc-compile-warnings into master
pull from: chore/agc-compile-warnings
merge into: GenarrativeAI:master
GenarrativeAI:master
GenarrativeAI:perf/agc-canvas-perf
GenarrativeAI:feat/hid-inst
GenarrativeAI:codex/selection-translation-gpt-6-luna
GenarrativeAI:codex/agc-failure-history-20261008
GenarrativeAI:feat/design-anthropic
GenarrativeAI:style/polish-taonier-publish
GenarrativeAI:feat/taptap-export
GenarrativeAI:codex/agc-release-error-detail-off
GenarrativeAI:feat/gptimage2to2.5
GenarrativeAI:feat/tribo3d-integeration
GenarrativeAI:chore/rust-compile-warnings
GenarrativeAI:feat/thread-manager-fork
GenarrativeAI:codex/agc-harness-cloud-config
GenarrativeAI:chore/agc-warnings-misc
GenarrativeAI:chore/agc-warnings-session
GenarrativeAI:chore/agc-warnings-agent
GenarrativeAI:feat/tn-ads-sdk
GenarrativeAI:feat/agc-ui-motion-ux
GenarrativeAI:feat/ui-editor-model-override
GenarrativeAI:fix/agc-release-gate-channel
GenarrativeAI:fix/dev-loopback-token-trust
GenarrativeAI:fix/api-timeout
GenarrativeAI:codex/admin-gray-game-publish
GenarrativeAI:codex/remove-agc-codex-restrictions
GenarrativeAI:backup/agc-macos-dualarch-node-runtime
GenarrativeAI:codex/preview-llm-router-config
GenarrativeAI:fix/stroke-width-regression-from-285
GenarrativeAI:agent-organize
GenarrativeAI:feat/game-agent-canvas-resource-workbench-v2
GenarrativeAI:feat/agc-new-workflow
GenarrativeAI:fix/agc-release-version-sync
GenarrativeAI:codex/shared-components-followup
GenarrativeAI:codex/game-agent-runtime-interaction-design
GenarrativeAI:feat/spine-sequence-export-v2
GenarrativeAI:codex/game-agent-run
GenarrativeAI:codex/ui-spritesheet-durable-transaction-latest
GenarrativeAI:feat/art-agent-more-tools
GenarrativeAI:codex/editor-canvas-null-source-repair
GenarrativeAI:hotfix/editor-layout-2mib
GenarrativeAI:codex/showcase
No Reviewers
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Low
4
The priority is low
Priority
Medium
3
The priority is medium
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: GenarrativeAI/Genarrative#651
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "chore/agc-compile-warnings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
关联
范围(本条 lane:AGC 壳热点模块)
只处理 AGC 壳(
apps/ai-game-creator-shell/src-tauri)的三个热点模块,目标 0 条 warning:src/repository_context.rssrc/git_inspect.rssrc/patchset.rs本条 lane 不含其他模块:另有 3 条 lane 分别处理
process_session/project、agent、以及其余文件。关键决策
git_inspect.rs、patchset.rs整文件删除:两者是 master839051f53(退役 AGC 独立 Agent Runtime 与 CLI 执行面)的漏删残留,无现役调用方,不靠#[allow]或假引用维持。repository_context.rs保留 6 个顶层现役符号:redact_absolute_path_tokens、starts_absolute_path、starts_forward_slash_unc_path、starts_file_uri、is_path_boundary、consume_path_token(FILE_URI_PREFIX是函数内局部 const,不计顶层符号),另保留 2 条测试;现役调用方是src/agent/redaction.rs:88与src/agent/generation/canvas_generation.rs:1080。评审复算:本次删除 118 个顶层名字(此前正文写的 113 是 bin 口径的 warning 数,两者口径不同)。#[cfg(unix)]/#[cfg(windows)]的生产 / 测试分支,但无被外部引用的 cfg 分支。#[allow(dead_code)];main.rs只随之删掉对已删模块的 4 行引用(mod git_inspect;、mod patchset;、use git_inspect::*;、use patchset::*;)。验证命令
AGC 壳
[features] default = [],不带编辑器 feature 时build.rs的随包资源校验会 panic,因此两条命令都必须带 feature:自证口径(bin 与
--all-targets两个口径都要看)本 lane 的文件在两个口径下都是 0 条,门禁自证与清零点按两口径分别给出:
cargo check --features cocos-editor-execute,unity-editor-execute,godot-editor-execute --manifest-path apps/ai-game-creator-shell/src-tauri/Cargo.toml--all-targets全 crate 计数(lane A 实跑):bin 613 → 339;
--all-targets1214 事件 / 1034 唯一 → 938。本 PR 之外的已知残留(非本 PR 引入)
project.git_inspect/project.git_commit/project.patchset字符串另有 91 处残留(Rust 契约 11 / 前端共享契约 11 /verification.rs:821/ 提示词 15 / 文档 53),全部来自839051f53退役时未同步,非本 PR 引入,将由独立批次收尾。内容已并入 #650(单 PR 口径:用户要求不再按模块拆分 PR,避免逐分支功能测试)。分支
chore/agc-compile-warnings保留在远端作为历史,不再单独合并。Pull request closed