feat(AICodeWorker): v1.6.0 preset快捷参数系统 + 低算力模型友好manifest#367
Merged
Conversation
v1.6.0 主要改动: 1. 新增 preset 快捷参数系统(AICodeWorker.js) - 7个内置预设:index/read/scan/bug/set/append/create - 低算力模型只需传 preset + targetPath,插件自动生成完整任务书、mode 和 projectPath - applyPreset() 函数自动推导 projectPath(statSync 判断目录/文件) - 缺少必填参数时返回明确错误,列出可用预设 2. 重写 plugin-manifest.json(低算力友好格式) - 顶部:7个预设速查表 + 复制即用的 VCP 调用示例 - 中部:白话触发词 → 预设对照表(避免低算力模型猜测) - 底部:填空模板 + 六要素任务书格式 + 完整参数表 3. 新增 README.md - 三种模式说明、preset 用法、配置表、返回字段说明、安全机制
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
AICodeWorker v1.6.0 新增
preset快捷参数系统,大幅降低低算力模型(如小参数模型)的使用门槛。主要改动
1. preset 快捷参数(
AICodeWorker.js)新增 7 个内置预设,低算力模型只需传
preset+targetPath,插件自动生成完整任务书、工作模式和项目路径:indexreadscanbugsetappendcreateapplyPreset()自动从targetPath推导projectPath(fs.statSync判断是目录还是文件),并验证必填参数。2. 重写
plugin-manifest.json(低算力友好格式)3. 新增
README.md涵盖三种工作模式、preset 用法示例、配置说明、返回字段表、安全机制介绍。
文件变更
Plugin/AICodeWorker/AICodeWorker.js— preset 系统核心逻辑Plugin/AICodeWorker/plugin-manifest.json— 重写为低算力友好格式Plugin/AICodeWorker/README.md— 新增文档Plugin/AICodeWorker/config.env.example— 小幅更新注释向下兼容
preset参数完全可选。不传 preset 时行为与 v1.5 完全一致,现有调用无需修改。