Commit Graph
10 Commits
Author SHA1 Message Date
Zhengshou Lai c07b132f6d feat(mycodex): 对齐 resume options,支持 -r/--resume/--continue/--last/--all
- 新增 _translate_codex_extra,将 -r/--resume 映射为 codex resume

- --continue 映射为 codex continue,--last/--all 映射为 resume --last/--all

- 更新 help 文案与 README 用法示例

- 补充 5 个 codex resume option 单元测试,50 tests passed
2026-07-07 09:05:09 +08:00
Zhengshou Lai 10530479d0 feat: 添加 mycodex 入口,支持 OpenAI Codex CLI
- 在 launcher 中注册 codex 后端,兼容 ~/.codex/sessions 日期嵌套目录

- 解析 session_meta.payload.cwd 过滤当前目录会话

- 添加 myagents codex 子命令与 mycodex 独立入口、补全及 Makefile 链接

- 更新 pyproject.toml 控制台脚本与 README 文档

- 补充 codex 相关单元测试,45 tests passed
2026-07-07 08:40:16 +08:00
Zhengshou Lai 7f1aa9f27e rename: myclaude -> myagents 2026-07-01 23:27:14 +08:00
Zhengshou Lai 1db0187b70 test(cli): repair stale bin.* imports and cover passthrough/--list
Tests still imported and patched the old bin.* package (renamed to
myclaude.* earlier), breaking collection. Point them at myclaude.* and
add coverage for the new claude-flag passthrough and --list session
listing.
2026-06-27 21:44:14 +08:00
Zhengshou Lai 2bcfc0b82e feat(cli): default to --dangerously-skip-permissions, remove explicit option
Always forward --dangerously-skip-permissions to claude binary without
requiring the user to pass the flag manually. Removes the option from
help output and CLI signature.

- Remove --dangerously-skip-permissions click option
- Always append the flag to the claude command
- Update tests to assert default behavior and help output
- Extend .gitignore with desktop build/release directories
2026-05-27 11:23:48 +08:00
Zhengshou Lai b580eecc43 fix: expanduser in project_root, remove redundant cwd, add tests
- get_myclaude_project_root() now expands ~ in MYCLAUDE_PROJECT_ROOT
  (was resolving to ./~/path instead of $HOME/path)
- Extract hardcoded 16/8 depth limits as _MAX_WALK_DEPTH / _MAX_SOURCE_DEPTH
- Remove redundant cwd= from _run_pip_editable (already specified via -e)
- Add test_cwd_invalid_directory and test_env_var_expands_tilde
- Remove incorrect test_extra_args_forwarded (click.Group does not
  support forwarding arbitrary args; ctx.args is always empty)
2026-05-27 11:23:14 +08:00
Zhengshou Lai 480ee311f2 style: format with black and fix ruff SIM117 warnings
- Merge nested with statements in test_project_root.py
- Reformat multi-line calls in test_cli.py and update.py
2026-05-27 11:23:13 +08:00
Zhengshou Lai ab597d1d02 refactor: rename source dir to bin, reorganize templates, remove personal info
- Rename myclaude/ source directory → bin/
- Update all Python imports (myclaude.* → bin.*) and mock patch paths
- Update pyproject.toml: entry point and packages config
- Move workspace_template/ → templates/workspace/ for future extensibility
- Migrate .claude/skills/ to global ~/.claude/skills/ and remove local copies
- Remove SessionStart hook (sync-global.sh) from settings.local.json
- Remove unrelated script rename_funcs_to_snake.py
- Remove personal info (name, org, paths) from CLAUDE.md, README.md, settings
- Update .gitignore with standard Python/runtime exclusions
- Clean .DS_Store, __pycache__, .mypy_cache, .pytest_cache, .ruff_cache,
  .playwright-mcp runtime files
2026-04-26 09:37:13 +08:00
Zhengshou Lai 45ba5ab84b fix(cli): correct forwarded flag name to --dangerously-skip-permissions
Claude CLI uses --dangerously-skip-permissions, not --dangerously-allow-browser-control.
Update option name, help text, and all test references.
2026-04-23 09:02:28 +08:00
Zhengshou Lai 29fafc39db test: add pytest suite for core modules
- Add pytest dependency and config to pyproject.toml
- Test project_root: env var priority, fallback, directory creation
- Test CLI: help, version, subcommands, default behavior, options
2026-04-23 09:00:44 +08:00