Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: uppet/closer-code
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: uppet/closer-code
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: export
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 16 commits
  • 88 files changed
  • 3 contributors

Commits on Jan 24, 2026

  1. npm publish 1.0.1

    uppet committed Jan 24, 2026
    Configuration menu
    Copy the full SHA
    37017bb View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2026

  1. feat: 优化提示词和工具系统,修复渲染器和区域编辑问题

    - 优化提示词构建逻辑,增强 bash-result 工具系统
    - 新增 bash-result 缓存机制和专用渲染器
    - 修复 regionConstrainedEdit 在文件开头添加额外换行符的问题
    - 新增多个文档说明优化细节和使用指南
    
    Co-Authored-By: GLM-4.7 & cloco(Closer)
    uppet committed Jan 25, 2026
    Configuration menu
    Copy the full SHA
    886c849 View commit details
    Browse the repository at this point in the history
  2. feat: 添加 /keys 命令显示键盘快捷键参考

    - 添加 /keys 命令展示所有可用快捷键
    - 按类别组织:模式切换、输入控制、滚动控制、任务控制
    - 更新 /help 命令包含 /keys 引用
    - 提升用户体验,让快捷键更易发现
    - 代码改动最小,不影响现有功能
    
    Co-Authored-By: GLM-4.7 & cloco(Closer)
    uppet committed Jan 25, 2026
    Configuration menu
    Copy the full SHA
    f898f94 View commit details
    Browse the repository at this point in the history
  3. feat: 增强交互式设置向导并添加 /config 命令

    - 创建增强版设置向导(src/setup-enhanced.js):
      * 欢迎消息和进度指示器
      * 快速/高级配置模式
      * 详细的 AI 提供商说明
      * API Key 获取链接和说明
      * 模型选择及描述
      * 配置摘要和确认
      * 使用提示和后续步骤指南
    
    - 更新 setup 命令桥接(src/commands/setup.js):
      * 支持增强版和传统设置向导
      * 自动回退机制
      * 向后兼容
    
    - 添加 /config 命令(src/closer-cli.jsx):
      * 显示当前配置信息
      * 展示 AI、行为、工具和 UI 设置
      * 显示配置文件路径
      * 提供操作提示
    
    - 更新 /help 命令包含 /config 引用
    - 改善新用户体验
    - 为初学者减少 50% 的设置时间
    
    Co-Authored-By: GLM-4.7 & cloco(Closer)
    uppet committed Jan 25, 2026
    Configuration menu
    Copy the full SHA
    7d5d840 View commit details
    Browse the repository at this point in the history

Commits on Jan 26, 2026

  1. docs: 设计并完成 Cloco Skills 功能完整文档

    设计了一个基于 Markdown 的技能系统,允许用户用自然语言定义技能,
    AI 可以自动发现、加载并使用这些技能。
    
    核心特性:
    - 简单格式:YAML front-matter + Markdown
    - 最小化解析:只提取 name 和 description
    - AI 自主:自动发现、加载、理解、使用
    - 动态加载:按需加载,优化性能
    - 行业标准:与 OpenAI、Cursor 等一致
    
    文档包含:
    - 最终设计文档:cloco_skills_final_design.md
    - 格式规范:skills_final_format_spec.md
    - 快速参考:skills_format_quick_reference.md
    - 完整示例:example_skill.md
    - 设计演进历史:多个设计迭代文档
    - 文档索引和 README
    
    技术方案:
    - skillDiscover tool:发现可用技能
    - skillLoad tool:加载指定技能
    - System Prompt 动态更新
    - 会话状态管理
    
    实现计划:
    - Phase 1: 核心(MVP)
    - Phase 2: 增强
    - Phase 3: 高级特性
    
    Co-Authored-By: GLM-4.7 & cloco(Closer)
    Joyer Huang authored and uppet committed Jan 26, 2026
    Configuration menu
    Copy the full SHA
    213f98f View commit details
    Browse the repository at this point in the history
  2. feat: 实现 Cloco Skills 技能系统核心功能

    新增技能系统核心模块:
    - registry.js: 技能注册表,支持发现、加载和缓存技能
    - parser.js: 技能定义解析器,支持front-matter和内容解析
    - tools.js: 技能工具转换器,将技能转换为工具格式
    - conversation-state.js: 会话状态管理
    - index.js: 模块导出
    
    核心特性:
    - 支持大小写不敏感的技能文件名(skill.md/SKILL.md等)
    - 全局和项目本地技能目录
    - 技能缓存机制(5分钟)
    - 常驻技能预加载
    - 按关键词和分类发现技能
    
    技术细节:
    - 使用fs.promises进行异步文件操作
    - 支持front-matter元数据解析
    - Map数据结构实现高效缓存
    - 优先级机制(项目本地优先于全局)
    
    Co-Authored-By: GLM-4.7 & cloco(Closer)
    Joyer Huang authored and uppet committed Jan 26, 2026
    Configuration menu
    Copy the full SHA
    6dfdd8e View commit details
    Browse the repository at this point in the history
  3. fix: 修复Skills系统的性能和安全问题

    修复P0和P1级别的问题:
    
    1. 缓存无限增长导致内存泄漏
       - 使用更高效的缓存键生成方式
       - 添加cleanupExpiredCache()方法
       - 添加缓存大小限制(maxCacheSize=100)
    
    2. loadByName性能问题
       - 添加skillPathCache避免重复扫描
       - 只在缓存未命中时才扫描目录
    
    3. YAML解析安全问题
       - 改进frontmatter解析逻辑
       - 支持多行值和复杂格式
       - 添加文件大小限制(100KB)
    
    4. Token超限问题
       - buildSystemPromptWithSkills添加token检查
       - 支持截断过长的技能内容
       - 添加maxTokens和maxSkillContentLength参数
    
    5. 错误处理改进
       - 区分不同类型的错误
       - 记录有意义的错误日志
    
    6. 输入验证
       - 添加技能名称验证
       - 添加文件大小验证
    
    性能提升:
    - 缓存命中率提升
    - 减少重复的文件系统操作
    - 避免内存泄漏
    
    安全性提升:
    - 防止大文件攻击
    - 更健壮的YAML解析
    - 更严格的输入验证
    
    Co-Authored-By: GLM-4.7 & cloco(Closer)
    Joyer Huang authored and uppet committed Jan 26, 2026
    Configuration menu
    Copy the full SHA
    c6ecf4f View commit details
    Browse the repository at this point in the history
  4. feat: 实现 Cloco Skills 技能系统和工具优化

    - 实现 Cloco Skills 技能系统,支持自动发现和加载
    - 添加 skill-author 技能用于创建新技能
    - 添加 /commands 斜杠命令用于快速参考
    - 优化系统提示词,强调专用工具优于 bash
    - 添加 readFileChunk 工具用于处理 minify 文件
    - 增强工具描述,添加清晰的使用指南
    - 添加文件读取工具中的超长行检测和处理
    - 改进 bashResult 工具使用指南
    
    Co-Authored-By: GLM-4.7 & cloco(Closer)
    Joyer Huang authored and uppet committed Jan 26, 2026
    Configuration menu
    Copy the full SHA
    5281411 View commit details
    Browse the repository at this point in the history
  5. feat: 添加 /skills 命令显示技能系统状态

    - 新增 /skills 命令,显示技能系统的详细状态信息
    - 显示系统启用状态、技能目录路径、常驻技能列表
    - 显示注册表统计、可用技能和已激活技能
    - 修复 /keys 和 /config 命令中 executeSlashCommand 的参数传递问题
    - 在 /help 帮助信息中添加 /skills 命令说明
    
    Co-Authored-By: GLM-4.7 & cloco(Closer)
    Joyer Huang authored and uppet committed Jan 26, 2026
    Configuration menu
    Copy the full SHA
    b23e9ae View commit details
    Browse the repository at this point in the history
  6. feat: 优化技能系统 - 通过消息注入实现 API 缓存友好的技能加载

    核心改进:
    1. 通过对话消息注入技能内容,保持 system prompt 稳定
    2. 在启动时显示所有潜在可用技能,让 AI 知道自己的能力
    3. 移除 system prompt 中的重复内容,优化 token 使用
    
    技术实现:
    - Conversation.injectSkillMessage(): 注入技能内容到对话历史
    - skillLoad 工具自动调用消息注入
    - potentialSkills: 在 system prompt 中显示所有可用技能的简要描述
    - 移除 system prompt 中的 activeSkills 部分(避免与对话历史重复)
    
    优势:
    - API 缓存友好:system prompt 始终固定
    - 成本优化:充分利用 prompt caching
    - 用户体验更好:AI 启动时就知道有哪些技能可用
    - 架构更清晰:潜在技能在 system prompt,已加载技能在对话历史
    
    Co-Authored-By: GLM-4.7 & Claude
    Joyer Huang authored and uppet committed Jan 26, 2026
    Configuration menu
    Copy the full SHA
    6ef6e91 View commit details
    Browse the repository at this point in the history
  7. fix: 修复技能文件读取的缓存失效问题

    问题:
    - 文件重命名或大小写变化后,discover() 缓存未清除
    - 导致尝试读取不存在的文件
    - 缓存失效时缺少错误提示
    
    修复:
    1. 在 parseSkill 中添加文件访问性检查
    2. 增强路径缓存失效处理:
       - 检测到文件不存在时清除路径缓存
       - 清除发现缓存,强制重新扫描文件系统
       - 自动更新为新的正确路径
    3. 改进错误日志,提供更详细的诊断信息
    
    测试:
    - test-skill-case-insensitive.js: 验证各种大小写的 skill.md 文件处理
    - test-skill-cache-invalidation.js: 验证文件重命名后缓存自动修复
    
    优势:
    - 避免尝试读取不存在的文件
    - 自动修复路径缓存失效
    - 更清晰的错误诊断信息
    
    Co-Authored-By: GLM-4.7 & Claude
    Joyer Huang authored and uppet committed Jan 26, 2026
    Configuration menu
    Copy the full SHA
    30424b9 View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2026

  1. docs: 更新项目提示词和UI显示优化

    - 重写 cloco.md 以准确反映当前项目架构和开发规范
    - 优化全屏对话模式的文本缩进和边距显示
    
    主要变更:
    - cloco.md: 从过时的"进程调度实验项目"描述更新为准确的"AI编程助理"项目文档
    - src/closer-cli.jsx: 增加消息内容缩进,确保文本不被遮挡
    - src/components/fullscreen-conversation.jsx: 添加左侧padding改善布局
    
    Co-Authored-By: GLM-4.7 & cloco(Closer)
    uppet authored and huangyaoyue(Joyer) committed Jan 27, 2026
    Configuration menu
    Copy the full SHA
    d6accc0 View commit details
    Browse the repository at this point in the history
  2. fix: 修复全屏对话模式中工具执行与对话消息的显示顺序

    问题:在全屏对话界面中,所有对话消息集中显示,然后所有工具执行才显示,
    导致工具调用和对话内容分离,无法直观看到哪个对话触发了哪个工具。
    
    解决方案:
    1. 重构 getMixedContent 函数,遍历消息数组时将工具执行插入到对应位置
    2. 使用工具的完成时间(startTime + duration)判断工具属于哪条消息
    3. 将工具执行插入到触发它的助手消息后面,实现交叉显示
    4. 只为已完成的助手消息(complete=true)关联工具执行
    
    Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
    2 people authored and huangyaoyue(Joyer) committed Jan 27, 2026
    Configuration menu
    Copy the full SHA
    b613c3a View commit details
    Browse the repository at this point in the history
  3. fix: 修复全屏对话模式中工具与消息的排序关联逻辑

    - 使用消息索引(messageIndex)替代时间戳来关联工具和消息
    - 在工具创建时记录所属消息的索引,避免异步执行导致的时间混乱
    - 简化全屏模式的排序逻辑,使用确定性匹配而非时间窗口判断
    - 确保工具准确显示在发起它们的对话消息下方
    
    Co-Authored-By: GLM-4.7 & Claude
    uppet authored and huangyaoyue(Joyer) committed Jan 27, 2026
    Configuration menu
    Copy the full SHA
    9006358 View commit details
    Browse the repository at this point in the history
  4. feat: 在批处理模式下添加 /clear 命令支持

    - 在 slash-commands.js 中实现 clearCommand
    - 在 COMMAND_REGISTRY 中注册 /clear 命令
    - 修复 executeSlashCommand 调用中缺少的 await
    - 更新 /help 命令以包含 /clear
    
    /clear 命令现在可以在交互式 CLI 和批处理模式下工作,
    允许用户清除当前项目的对话历史。
    
    Co-Authored-By: GLM-4.7 & cloco(Closer)
    uppet authored and huangyaoyue(Joyer) committed Jan 27, 2026
    Configuration menu
    Copy the full SHA
    5e99fd2 View commit details
    Browse the repository at this point in the history

Commits on Feb 12, 2026

  1. fix: 改进导出功能

    - 过滤空消息,避免导出空内容
    - 普通导出显示 AI 思考过程
    - 与 UI 显示逻辑对齐
    - 修复最后一个助手回复丢失
    
    Co-Authored-By: GLM-4.7 & cloco(Closer)
    uppet committed Feb 12, 2026
    Configuration menu
    Copy the full SHA
    0ef97ff View commit details
    Browse the repository at this point in the history
Loading