Skip to content

v0.0.4: replace --kv with --args, add update notification - #5

Merged
wang1212 merged 4 commits into
mainfrom
docs/update-skill
Aug 28, 2026
Merged

v0.0.4: replace --kv with --args, add update notification#5
wang1212 merged 4 commits into
mainfrom
docs/update-skill

Conversation

@wang1212

Copy link
Copy Markdown
Contributor

Changes

Breaking: Simplified argument passing

  • Removed --kv (key=value, key:=value) option and all its parsing logic
  • Added --args <json> as the single way to pass tool arguments as a JSON object
  • Fixes: parameterless tools no longer crash without --kv (cac type:[String] bug)
  • Fixes: parse errors now handled by withClient with formatted JSON output

New: Update notification

  • Checks npm registry for latest version with 1-hour cache (~/.weavefox/update-check.json)
  • Non-blocking: 3s timeout, silent on offline/errors
  • Notified only in human mode (--json mode skipped)

Docs

  • Updated README.md, README.zh-CN.md, AGENTS.md, SKILL.md

- Remove --kv (key=value, key:=value) option and parseToolArgs/parseKvValue
- Add --args <json> as the single way to pass arguments as a JSON object
- Fix: parameterless tools no longer crash without --kv (cac type:[String] bug)
- Fix: parse errors now handled by withClient (formatted JSON output)
- Update README.md, README.zh-CN.md, AGENTS.md, SKILL.md docs
- New src/update-check.ts: checks npm registry for latest version
- Cache stored in ~/.weavefox/update-check.json (1h TTL)
- Non-blocking: fetch with 3s timeout, silent on offline/timeout
- Notification shown only in human mode (--json skipped)
- Integrated into all commands via printUpdateNotice()
@wang1212
wang1212 merged commit e344ff7 into main Aug 28, 2026
2 checks passed
@wang1212
wang1212 deleted the docs/update-skill branch August 28, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant