Files
arnold.cui-agent d5807c794b feat(core): convert tspath functions with consolidated struct face (#28)
## 背景

函数迁移战役的基础分支 PR:全模块 struct 草稿重生成 + 已收官的 tspath 函数产物。fswatch 与各模块分支 base 在本分支之上,经各自 PR 合入。

## 变更内容

- struct --all 重放 derive kit:较 main 树 0 删 69 增 derive(含 ComparisonPath、FanotifyHandleKey 等资格修复)
- tspath 函数迁移:373 候选 372 产出,292 精确体、80 测试哨兵、10 签名降级
- worktrees.md 拓扑约定(两仓六分支六 worktree,tspath 为基础)

## 自测结果

- cargo check 零错误(无哨兵红)
- tspath-only 清单重生成验证逐字节一致(dirty=0)

---

## 第二轮:func-check 确认项修复(d11dd8f)

### 背景

csv-records/func-check/report.md(143 文件全覆盖)确认 high 3 项、medium 6 项,本轮按报告行动建议修复生成器并重生成;生成器侧提交在 tsox-scripts feat/func-tspath(19d1e99、81df547)。

### 变更内容

- high#1 多值重赋回写:forceEncodeDynamicURIPathSegment1 的 let 遮蔽丢弃分割结果改为解构赋值回写
- high#2 map 缺键零值读:getCommonParentsWorker 扇出分支 new_groups[&key] 先读后插 panic 改 get+unwrap_or_default
- high#3 字节切片守卫:字符串切片改走 go_str_slice(越界 panic 与 Go 对齐,切点落多字节字符内部就近取整),叶子按使用注入 helper
- medium#1 nil 旗标:commonDirectoryOfFiles 的 is_empty 误判改为运行时 <name>_is_nil 旗标,对齐 Go nil/空切片可分辨语义
- medium#2-3 hex 严格对齐 + err 极性:奇数长度与 + 前缀拒绝;差分实跑新暴露既有极性反转(合法输入全被拒)一并修复
- medium#4-6 四 tools 模块重生成:修正错树解析后 gen_proto/import_localization/machotool/gen_preferences 被清空字段全部恢复(gen_proto、machotool 与 main 基线逐字节一致)

### 自测结果

- cargo check --all-targets:非哨兵错误 0,!todo 哨兵 80 与分支基线持平
- /tmp 差分 harness(path 依赖本分支实跑)10 用例全过,覆盖报告全部反例输入;go test ./internal/tspath/ 原树全绿交叉验证
- 脚本侧单测 99 通过(新增回归 6)

Reviewed-on: #28
Reviewed-by: arnold.cui <arnold.cui@idealjs.com>
Co-authored-by: arnold.cui-agent <arnold.cui-agent@idealjs.com>
2026-11-22 12:42:54 +00:00

121 lines
2.9 KiB
TOML

# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "aho-corasick"
version = "1.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
dependencies = [
"memchr",
]
[[package]]
name = "memchr"
version = "2.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
[[package]]
name = "proc-macro2"
version = "1.0.107"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
dependencies = [
"unicode-ident",
]
[[package]]
name = "quote"
version = "1.0.47"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
dependencies = [
"proc-macro2",
]
[[package]]
name = "regex"
version = "1.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
dependencies = [
"aho-corasick",
"memchr",
"regex-automata",
"regex-syntax",
]
[[package]]
name = "regex-automata"
version = "0.4.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
dependencies = [
"aho-corasick",
"memchr",
"regex-syntax",
]
[[package]]
name = "regex-syntax"
version = "0.8.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
[[package]]
name = "serde"
version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
dependencies = [
"serde_core",
"serde_derive",
]
[[package]]
name = "serde_core"
version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
version = "1.0.229"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "syn"
version = "3.0.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
dependencies = [
"proc-macro2",
"quote",
"unicode-ident",
]
[[package]]
name = "tsox"
version = "0.1.0"
dependencies = [
"regex",
"serde",
]
[[package]]
name = "unicode-ident"
version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"