Files
ai-terminal-assistant/packages/core/src/repomap/index.ts
T
kurihada c3db79c00d feat: 支持 Bun standalone 单文件打包
- core: 工具描述从文件系统加载改为编译时内联生成
- core: 添加 WASM 加载器支持嵌入式 WASM 数据
- core: bash-parser 使用动态导入 web-tree-sitter
- server: 添加静态文件托管支持 (--static 参数)
- server: 新增 standalone 入口点 (嵌入 Web UI + WASM)
- scripts: 添加 build-standalone.ts 构建脚本
- 更新 .gitignore 忽略生成文件
2025-12-30 13:57:29 +08:00

30 lines
671 B
TypeScript

/**
* RepoMap 模块
*
* 使用 AST 分析和 PageRank 算法生成代码仓库地图
* 参考 Aider 的实现
*/
// 主类
export { RepoMap, createRepoMap } from './repomap.js';
// Tag 提取
export { TagExtractor } from './tags/index.js';
// WASM 加载器(用于 standalone 构建)
export { setEmbeddedWasm, hasEmbeddedWasm } from './tags/wasm-loader.js';
// PageRank 排序
export {
Graph,
pagerank,
distributeRanksToDefinitions,
type PageRankOptions,
} from './ranking/index.js';
// 缓存
export { DiskCache, createDiskCache } from './cache/index.js';
// 类型
export type { Tag, TagCacheEntry, RepoMapConfig, GraphEdge } from './types.js';