Skip to content

Releases: hwj123hwj/hwjcode

hwjcode v1.1.83

Choose a tag to compare

@github-actions github-actions released this 05 Jul 14:10
v1.1.83

hwjcode v1.1.81

Choose a tag to compare

@github-actions github-actions released this 04 Jul 18:03
fix: /loop 延迟启动 lastRunAt 时间对齐 Bug + 知识库更新 (v1.1.81)

修复 v1.1.80 引入的 3 个问题:
1. [High] 延迟 < 间隔时首轮不触发:lastRunAt 设为 now 导致
   timeForNextRun 在 firstRunAt 时刻不满足。修复为
   lastRunAt = firstRunAt - intervalMs,精确对齐。
2. [Medium] firstRunAt 从未清除:注释谎称清除了但实际没有。
   首次执行后显式置零。
3. [Medium] estimatedRuns/expiresDesc 含延迟补偿导致显示混乱:
   改用原始 expiresMs 计算显示值。

验证: tsc 零错误, 11 loop 测试通过
审核: code-reviewer 确认上游 merge 后所有 fork 特性完好
知识库: 新增 loop-delayed-start.md, 更新 loop-watchdog.md

hwjcode v1.1.80

Choose a tag to compare

@github-actions github-actions released this 04 Jul 16:22
feat: /loop 支持延迟启动和定时启动 (v1.1.80)

新增「开始时间」字段,支持三种模式:
1. 立即开始(默认,行为不变)
2. 延迟启动:5m/10m/30m/1h 后开始,或自定义延迟时长
3. 定时启动:指定精确日期时间(如 2025-07-04 18:00)

实现:
- LoopContext 新增 firstRunAt 字段(0=立即,>0=首次执行时间戳)
- 调度器新增延迟检查,到达 firstRunAt 后才执行第一轮
- 延迟启动时超时时间相应顺延
- 指定时间已过去时报错提示

验证: tsc 零错误, 11 loop 测试通过

hwjcode v1.1.79

Choose a tag to compare

@github-actions github-actions released this 04 Jul 15:08
chore: 修正 npm package 元数据 (v1.1.79)

- repository URL: OrionStarAI/EasyCode → hwj123hwj/hwjcode (全部 package.json)
- homepage: 指向 fork 的 README
- bugs: 指向 fork 的 issues
- author: Easy Code Team → hwjcode
- keywords: 替换 easycode/gemini 为 feishu/lark/worktree/parallel-development

影响 npmjs.com 包页面显示的仓库链接、issue 链接、主页。

hwjcode v1.1.78

Choose a tag to compare

@github-actions github-actions released this 04 Jul 14:43
docs: 重写 README.md + README_EN.md,突出 fork 三大核心能力

- 删除原项目营销文案,聚焦飞书集成/Worktree并行/自更新三大差异化
- 更新包名(easycode-ai→hwjcode)、命令名(easycode→hwjcode)
- 更新 GitHub 链接(OrionStarAI→hwj123hwj)
- 新增飞书命令表、自然语言触发表、与原项目差异对比表
- 中英文双版本同步更新

hwjcode v1.1.77

Choose a tag to compare

@github-actions github-actions released this 04 Jul 14:16
feat: 任务上下文持久化到 TASK.md(handoff 设计哲学)(v1.1.77)

hwjcode v1.1.76

Choose a tag to compare

@github-actions github-actions released this 04 Jul 12:44
fix: worktree 建在子目录而非 git root + agent 绑定错误 (v1.1.76)

问题1:worktree 建在子目录而非仓库根目录
根因:WorktreeManager.getWorktreesRoot() 使用 projectRoot(用户传入的路径)
而非 gitRoot。当 project_path 是 git 仓库的子目录时,worktree 建在子目录下。
修复:getWorktreesRoot() 改为优先使用 gitRoot。

问题2:worktree 内容不完整
根因:问题1的连锁反应。worktree 建在子目录意味着该 worktree 目录的父结构
不正确,虽然 git worktree 本身是完整快照,但实际体验路径不对。
修复:问题1修复后自动解决(worktree 在 git root 下 = 完整仓库快照)。

问题3:Agent 绑定错误(全部绑了 claude-code)
根因:batch_create_project_groups 工具的 agent 参数描述太弱('Optional delegate
agent. Omit for Easy Code self.'),主 agent(Claude Code)倾向于给自己建群
时填上 agent='claude-code'。
修复:强化工具描述和参数说明,明确要求'仅在用户明确要求时才设 agent 字段'。

新增测试:
- getWorktreesRoot 在子目录场景下正确解析到 git root
- create() 从子目录创建 worktree 时正确放在 git root 下
- 验证 worktree 内容包含完整仓库快照

验证: tsc 零错误, 30 worktree 测试全部通过

hwjcode v1.1.75

Choose a tag to compare

@github-actions github-actions released this 04 Jul 12:01
chore: bump version to v1.1.75

hwjcode v1.1.74

Choose a tag to compare

@github-actions github-actions released this 04 Jul 11:54
fix: 自更新外挂脚本被 SIGHUP 杀死,导致只重启不更新 (v1.1.74)

根因(真正的 bug!):
- 外挂脚本(relauncher)spawn 后,父进程 process.exit(0) 退出
- Linux 内核向同一 session 的所有进程发送 SIGHUP
- 外挂脚本是 detached 但仍在同一 session → 收到 SIGHUP 被杀
- 结果:外挂只执行到 'Helper started' 就死了,npm install 从未执行
- 进程重启了(login shell 拉起的),但 npm 没更新,所以版本不变

日志证据:
  [Relauncher] Helper started. Polling parent PID 984197...
  ← 到这里就停了!没有 'Parent exited' / 'Cleaning cache' / 'Installing'

修复(三重保险):
1. 外挂脚本开头:忽略 SIGHUP/SIGTERM/SIGINT 信号
2. 外挂脚本开头:调用 process.setsid() 创建新 session(Linux)
3. spawn 时传 env(确保环境继承)

验证: tsc 零错误, 23 self-update 测试通过

hwjcode v1.1.73

Choose a tag to compare

@github-actions github-actions released this 04 Jul 11:46
chore: bump version to v1.1.73