Commit Graph
13 Commits
Author SHA1 Message Date
Zhengshou Lai 9111a574e9 refactor: rename bin/ package to myclaude/ 2026-06-26 22:58:18 +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 bb39b80d06 refactor: clean up outdated references and orphan files
- Fix __init__.py docstring: Mybot → Myclaude
- Remove stale .gitignore entries (workspace/, knowledge/)
- Delete orphan package-lock.json from Python project
- Update README: project structure, commands, env vars
- Replace all myclaude chat references with myclaude
- Update defaultWorkingDirectory examples to ~/workspace
- Add MYCLAUDE_WORKSPACE_ROOT documentation
2026-04-23 08:55:15 +08:00
Zhengshou Lai 475a0911e2 feat(workspace): make workspace location configurable via env var
- Add MYCLAUDE_WORKSPACE_ROOT env var, default ~/workspace
- Auto-create workspace directory if it does not exist
- Move workspace/CLAUDE.md + .gitignore to workspace_template/
- Remove hardcoded symlink paths from workspace template
- Update get_workspace_root() with env-var priority logic
- Update metabot bots.json defaultWorkingDirectory to ~/workspace
2026-04-23 08:47:22 +08:00
Zhengshou Lai bebf7ba17a feat(cli): merge chat into default behavior, default cwd to workspace/
- Remove standalone chat subcommand; chat becomes default behavior
- Default --cwd resolves to workspace/ instead of repo root
- Split CLAUDE.md: repo/ for CLI dev, workspace/ for daily workflow
- Add workspace/CLAUDE.md, workspace/.gitignore for tmp files
- Ignore MCP temp artifacts (.mcp.json, .playwright-mcp/)
- Clean up removed mail subcommand files
2026-04-23 08:38:59 +08:00
Zhengshou Lai 5a665e38bb feat(mail): add IMAP/STP email subcommand
New `myclaude mail` group with:
- config: interactive account setup
- inbox: list recent messages
- read: show message by UID
- send: send email with attachments
- reply/forward: reply to or forward messages
2026-04-17 00:02:54 +08:00
Zhengshou Lai afc81dcd84 feat(cli): add upgrade alias and register mail command
- Add upgrade as an alias for update
- Register mail_cmd in CLI entrypoint
2026-04-17 00:02:46 +08:00
Zhengshou Lai f05811ef54 style(update): remove unused sys import
Oops, sys is still used by sys.executable. Restored.
2026-04-17 00:02:07 +08:00
Zhengshou Lai 686c0f736c fix(chat): register --cwd as Click option for shell completion
Replace manual ctx.args parsing with a proper @click.option using
is_flag=False and flag_value='.'. This enables tab completion for
the --cwd / -C option and directory-only path completion after it.
Also bump click dependency to >=8.3.2 to avoid the optional-value
regression in 8.3.0/8.3.1.
2026-04-17 00:00:49 +08:00
Zhengshou Lai 929d808b3e fix(chat): remove --cwd from Click options to allow optional value parsing
--cwd was defined as a Click option but also parsed manually from ctx.args,
which caused conflicts when --cwd was followed by another flag (like
--dangerously-skip-permissions). Now --cwd is parsed entirely manually,
allowing:
  --cwd alone -> use current directory
  --cwd /path -> use specified path
  (none)      -> use myclaude project root (default)
2026-04-13 09:09:53 +08:00
Zhengshou Lai 250e3dd096 feat(chat): --cwd 支持可选值,缺省为当前目录
使 --cwd 选项支持无值调用:
- --cwd 单独使用 → 默认为当前目录 "."
- --cwd /path → 使用指定路径
- --cwd=. / -C. → 等号或短选项语法

修复:--cwd 后接其他 flag 时被误认为值的歧义问题。
2026-04-13 09:02:16 +08:00
Zhengshou Lai 5ecf737de6 renaming from mybot to myclaude 2026-04-06 14:04:11 +08:00