@hastycapybara/tasks-cli 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -10
- package/dist/tasksmd.cjs +29 -29
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
# @hastycapybara/tasks-cli
|
|
2
2
|
|
|
3
|
-
Tasks for Markdown
|
|
3
|
+
Command line for **[Tasks for Markdown](https://github.com/W-Leester/tasks-for-markdown)**: query, add, complete and edit Obsidian Tasks-style task lines in a folder of Markdown notes — no editor required. It uses the same code as the extension (`@hastycapybara/tasks-core`), so done dates, the next occurrence of recurring tasks and field order come out exactly as they do in the editor. (한국어: [docs/api.md §7–8](https://github.com/W-Leester/tasks-for-markdown/blob/main/docs/api.md))
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
6
|
npx @hastycapybara/tasks-cli query "not done
|
|
7
7
|
due before today" --root ~/notes --md
|
|
8
8
|
|
|
9
|
-
tasksmd add "
|
|
10
|
-
tasksmd done notes/todo.md:12 --expect "- [ ]
|
|
9
|
+
tasksmd add "Monthly close #work ⏫ 📅 2026-10-05" --file notes/inbox.md
|
|
10
|
+
tasksmd done notes/todo.md:12 --expect "- [ ] the exact line" # refused if the line changed (STALE_LINE)
|
|
11
11
|
tasksmd set notes/todo.md:12 --due 2026-10-20 --priority 1
|
|
12
12
|
tasksmd postpone notes/todo.md:12 "next monday"
|
|
13
|
+
tasksmd note notes/todo.md:12 "Reply received" # add a note under the task
|
|
14
|
+
tasksmd info # version, features, settings
|
|
13
15
|
tasksmd query "not done" --json | jq '.tasks[] | select(.priority == "0") | .description'
|
|
14
16
|
```
|
|
15
17
|
|
|
16
|
-
- `--root`(
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
18
|
+
- Scans `.md`/`.markdown` under `--root` (default: current folder), honouring `.gitignore` and `tasksmd.exclude`. Settings come from `<root>/.vscode/settings.json` (`tasksmd.*`: global filter, done dates, recurrence insert position, custom statuses, due-date requirement…).
|
|
19
|
+
- Line numbers are 1-based. Output is Markdown in a terminal and JSON in a pipe; force either with `--json` / `--md`.
|
|
20
|
+
- It edits files directly. Save files that have unsaved changes in an editor first. Pass the line text with `--expect` to avoid overwriting a line that changed meanwhile.
|
|
21
|
+
- Exit codes: 0 success, 1 runtime error (`NOT_FOUND`, `STALE_LINE`, `INVALID_QUERY`, `IO`), 2 bad arguments.
|
|
20
22
|
|
|
21
|
-
## MCP
|
|
23
|
+
## MCP server (AI agents)
|
|
22
24
|
|
|
23
25
|
```bash
|
|
24
26
|
claude mcp add tasks -- npx -y @hastycapybara/tasks-cli mcp --root "$PWD"
|
|
25
27
|
```
|
|
26
|
-
등록 후 Claude Code에 "이번 주 마감인 업무 태스크 중 안 끝난 거 보여주고 계약서 검토는 완료 처리해 줘"처럼 말하면 `tasks_query`, `tasks_set_status` 도구가 호출됩니다. 도구 목록과 인자는 저장소의 docs/api.md 8절에 있습니다.
|
|
27
28
|
|
|
28
|
-
|
|
29
|
+
Then ask in plain language, e.g. "show my unfinished work tasks due this week and mark the contract review done" — the agent calls tools such as `tasks_query`, `tasks_set_status` and `tasks_add_note`. Cursor (`.cursor/mcp.json`) and VS Code (`.vscode/mcp.json`) take the same command. Tools and arguments: [docs/api.en.md §8](https://github.com/W-Leester/tasks-for-markdown/blob/main/docs/api.en.md).
|
|
30
|
+
|
|
31
|
+
MIT. The task syntax and parts of the core logic are ported from [Obsidian Tasks](https://github.com/obsidian-tasks-group/obsidian-tasks) (MIT); see the bundled NOTICE.md. Not affiliated with Obsidian.
|