Highlights
- Modular Embedded C/C++ Skeleton Parser (
tools/repo-skeleton):
- Dedicated
c-cpp-parser.js supporting .c/.h/.cpp/.hpp/.cc/.cxx/.c++/.hh/.hxx/.h++/.inl/.inc while preserving lazy loading and C# support.
- Handles
extern "C" transparent containers, typedef struct/union/enum & function-pointer typedefs, #if/#elif/#else/#endif brace-depth balancing, #if 0 dead-code isolation, multiline/function-like #define macros + constant macro block folding, large static lookup table initializers, C++ member initializer {} lists, raw strings, multi-group hex/binary/decimal digit separators (0xDEAD'BEEF'CAFE), and operator().
- Default directory ignores expanded for C/C++ build/IDE artifacts (
Objects, Listings, .cache, .clangd, .vs, .idea, cmake-build-*), plus a new --exclude <dir1,dir2> flag on tokless skeleton / repo-skeleton.
read-guard-hook.js dynamically derives guarded code extensions from registry.js, allows ByteOffset reads, caps oversized header skeletons at 120 items, and provides segment previews when no symbols are present.
- Multi-Source Antigravity CLI Audit & Dual-Model Cache Cliff Attribution (
tools/agy-audit):
- Auto-discovers
~/.gemini/antigravity, antigravity-cli, and antigravity-ide with --source cli|app|ide|all and --data-dir, plus node:sqlite read-only metadata lookup and .jsonl title fallback.
- Added
tokless audit list, latest / latest~N session aliases (tokless audit session latest, tokless audit compare latest~1 latest), position-independent --json, and new programmatic exports (listSessions, formatSessionListMarkdown).
- Tracks per-step
model switches to separate Orchestrator / dual-model model_switch Prefix Cache cliffs from idle_ttl_expired and prefix_mutated_or_evicted.
audit project now recognizes .agents/.agent/_agents/_agent (rules, skills, MCP configs, and agents), trigger: model_decision / glob frontmatter, and reports objective per-turn & 30-step snowball token bills without arbitrary line-count policing.
- Engineering & Documentation Polish:
- Added
npm run bump -- <version> (scripts/bump-version.js) and version-parity test gates across package.json and plugin.json.
- Streamlined
README.md / README.en.md with deep-dive mechanics and API/contributor guides extracted to docs/, and added a repository change-sync map in AGENTS.md.
中文更新说明
- 模块化 C/C++ 嵌入式语法骨架解析器(
tokless skeleton):
- 独立拆分
c-cpp-parser.js(支持 .c/.h/.cpp/.hpp/.cc/.cxx/.hh/.hxx/.inl/.inc 等 12 种 C/C++ 后缀,保持按需惰性加载),完整支持 extern "C" 穿透、typedef 结构体/枚举/函数指针、#if/#else/#endif 分支括号平衡、#if 0 死代码隔离、宏块智能折叠、大型静态查找表、C++ 成员初始化列表 {} 与多段十六进制/二进制数字分隔符。
- 默认忽略
Objects、Listings、.clangd、cmake-build-* 等常见构建产物目录,并新增 --exclude <dir1,dir2> 参数。
- Antigravity 多源 CLI 审计与双模型切换断层归因(
tokless audit):
- 支持
antigravity / antigravity-cli / antigravity-ide 多源检索(--source cli|app|ide|all),新增 audit list 与 latest / latest~1 快捷别名。
- 精准识别跨模型/Orchestrator 往返引发的
model_switch 缓存重算断层,并与闲置超时 idle_ttl_expired 解耦。
audit project 全面兼容 .agents/.agent/_agents/_agent 配置目录及 model_decision 按需规则,移除死板的行数违规盖章,改为客观展示每轮与 30 步滚雪球 Token 账单。
- 版本脚本与文档精简:新增
npm run bump -- <version> 一键同步版本号脚本与测试一致性锁;精简双语主 README 并将原理解析与 API/扩展指南抽离至 docs/。
Acknowledgments
Special thanks to @Jefferyu for contributing PR #3!