文件最后提交记录最后更新时间
init.sh 安装脚本问题修复,修复冗余安装问题、global 模式安装等问题 Co-authored-by: yanhf<yanhaifeng5@huawei.com> # message auto-generated for no-merge-commit merge: !143 merge sync into master init.sh 安装脚本问题修复,修复冗余安装问题、global 模式安装等问题 Created-by: yanhf Commit-by: yanhf Merged-by: cann-robot Description: 针对 ops-direct-invoke 和 pypto-op-orchestrator 两个插件的 init.sh 安装脚本,修复冗余安装问题,只安装当前需要的agents和skills,修复了 global 模式下在多目录 启动时环境检查失败、相对路径无法解析的问题,并对脚本安装流程做了多项增强。 问题背景 在 global 模式下安装后,用户在非插件目录(如 /mnt/workspace/gitCode/cann/test)启动 claude 或 opencode 时: • AGENTS.md/CLAUDE.md 中的相对路径命令(如 bash workflows/scripts/verify_environment.sh)无法解析 • asc-devkit / pypto 资源在 CWD 下找不到 • init_operator_project.sh 输出中的下一步提示使用相对路径,导致 Claude 读取输出后执行失败 • 交互式确认提示 是否继续安装?[y/N] 阻塞了自动化/脚本化安装 改动内容 新特性 • 【算子直调 ops-direct-invoke】global 模式下自动生成绝对路径版的 AGENTS.md/CLAUDE.md 副本,替换所有 workflows/、 c-devkit/ 相对路径为绝对路径 • 【PyPTO pypto-op-orchestrator】global 模式下自动生成绝对路径版的 CLAUDE.md 副本 • 【算子直调 ops-direct-invoke】global 模式下自动创建 asc-devkit symlink 到 ~/.config/opencode/asc-devkit 或 ~/.c ude/asc-devkit • 【PyPTO pypto-op-orchestrator】global 模式下自动创建 pypto symlink 到 ~/.claude/pypto 或 ~/.config/opencode/pyp 问题修复 • 【算子直调 ops-direct-invoke】修复 verify_environment.sh 的 detect_asc_devkit() 函数,支持通过 readlink -f 解析 ymlink 真实路径,并增加 ~/.config/opencode/asc-devkit 和 ~/.claude/asc-devkit 回退检测 • 【算子直调 ops-direct-invoke】修复 init_operator_project.sh 和 verify_environment.sh 的输出提示,在 CWD 不存在 对路径时自动输出绝对路径,避免 global 模式下执行失败 代码重构 • 统一 ops-direct-invoke/init.sh 和 pypto-op-orchestrator/init.sh 结构,迁移 agents 从 ops/agents/ 到 plugins-off ial/*/agents/ • 删除两个插件 init.sh 中的交互式确认提示 是否继续安装?[y/N],改为无条件直接安装,支持 CI/容器/插件安装的无人值 场景 关联的Issue 无 测试 • project 模式验证:在 ops-direct-invoke/ 插件目录下启动 opencode,确认环境检查正常通过,asc-devkit 正确发现 • global opencode 验证:在 /mnt/workspace/gitCode/cann/test 目录下启动 opencode,确认 ~/.config/opencode/AGENTS.m 路径已替换为绝对路径,workflows 脚本可正常执行 • global claude 验证:在 /mnt/workspace/gitCode/cann/test 目录下启动 claude,确认 ~/.claude/CLAUDE.md 为绝对路径 本,init_operator_project.sh 和 verify_environment.sh 输出绝对路径提示 • pypto global 验证:执行 init.sh global claude,确认 ~/.claude/pypto symlink 已创建,health check 通过 文档更新 无 类型标签 • [ ] 🌟 新特性 • [x] 🐛 Bug 修复 • [x] ♻️ 代码重构 • [x] 🔧 配置变更 See merge request: cann/skills!1431 个月前
feat: add CRLF line-ending detection test and .gitattributes Co-authored-by: yanhf<yanhaifeng5@huawei.com> # message auto-generated for no-merge-commit merge: !183 merge master into master feat: add CRLF line-ending detection test and .gitattributes Created-by: yanhf Commit-by: yanhf Merged-by: cann-robot Description: 新特性 New Features - 【代码看护】新增行尾检测单元测试 tests/unit/test-line-endings.sh:扫描仓库中所有文本文件,检测 DOS 风格 CRLF 行尾,发现时报告 FAIL。已集成到 --fast 默认拦截链,排在所有单测首位执行。 - 【代码看护】新增 .gitattributes:对所有文本文件类型(.c .h .py .sh .md .yaml .json 等)强制 eol=lf,从 Git 层防止未来提交引入 CRLF 行尾。 问题修复 Bug Fix - 【代码看护】修复 22 个存量文件的 CRLF 行尾问题:涉及 ops/ascendc-direct-invoke-template、ops/ascendc-registry-invoke-template、ops/ascendc-code-review、plugins- official/ops-direct-invoke、model/teams/infer-model-optimize-team 等模块。使用 dos2unix 统一转换为 Unix LF。 --- 关联的Issue --- 测试 - 新增的 tests/unit/test-line-endings.sh 已通过 20 项场景验证(含 CRLF 检测、二进制排除、目录排除、混合行尾、空文件等边缘用例),全部 PASS - run-tests.sh --fast 集成验证通过,测试项共 10 个,新测试排首位并 PASS - 修复后真实仓库扫描 882 个文件,确认无 CRLF 残留 --- 文档更新 无 --- 类型标签 - [x] 🌟 新特性 - [x] 🐛 Bug 修复 - [x] 🧪 测试用例 - [x] 🔧 配置变更 See merge request: cann/cannbot-skills!18324 天前
agent team适配asys命令 Co-authored-by: w1694521740<wushizhen@huawei.com> # message auto-generated for no-merge-commit merge: !160 merge master into master agent team适配asys命令 Created-by: w1694521740 Commit-by: w1694521740 Merged-by: cann-robot Description: ## 描述 【算子直调 ops-direct-invoke】统一 environment.json 字段名从嵌套点号格式(cann.version、npu.available、compiler.bisheng_path)改为扁平格式(cann_version、npu_available、bisheng_path),涉及 Architect/Developer/Reviewer Agent、task-prompts、review-checklist、AGENTS.md 共 6 个文件。 ### 举例: #### 新特性 New Features - 【仿真 ops-simulator】新增Ascend 950 仿真Skill:支持 Ascend 950 仿真,并且输出性能分析报告和流水线图。 - 【PyPTO】【pypto-op-design】新增 Skill:pypto-op-design,PyPTO算子方案设计,含快速参考和设计模板。 #### 问题修复 Bug Fix 【算子直调 ops-direct-invoke】修改verify_environment.sh脚本,返回environment.json 固定为1的bug,应该按实际设备的npu count返回。 --> ## 关联的Issue <!-- https://gitcode.com/cann/skills/issues/83> ## 测试 <!--描述进行了哪些测试来验证你的改动。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🌟 新特性 - [ ] ✨ 特性增强 - [ ] 🐛 Bug 修复 - [ ] ⚡ 性能优化 - [ ] 🧪 测试用例 - [ ] 📦 构建 / CI - [ ] 📝 文档更新 - [ ] 🔧 配置变更 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] ♻️ 代码重构 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/cannbot-skills!16029 天前