Skip to content

feat(cli): add edit command to update tasks and topics#8

Merged
hideack merged 2 commits into
mainfrom
feat/edit-command
Apr 14, 2026
Merged

feat(cli): add edit command to update tasks and topics#8
hideack merged 2 commits into
mainfrom
feat/edit-command

Conversation

@hideack

@hideack hideack commented Apr 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • ingest edit task <id|タイトル> コマンドを追加(--title / --importance / --status オプション)
  • ingest edit topic <id|名前> コマンドを追加(--name / --importance オプション)
  • タスクの importance 変更時は importance_reassessed イベントを記録し、監査証跡を残す

変更ファイル

ファイル 内容
src/core/taskService.ts updateTask() 関数を追加
src/core/topicService.ts updateTopic() 関数を追加
src/cli/commands/edit.ts edit サブコマンド実装
src/cli/index.ts registerEdit を登録
src/core/__tests__/taskService.test.ts taskService のユニットテスト(16ケース)
src/core/__tests__/topicService.test.ts topicService のユニットテスト(11ケース)

使用例

# タスクのタイトルと重要度を変更
ingest edit task "旧タイトル" --title "新タイトル" --importance 8.5

# タスクのステータスを変更
ingest edit task <task-id> --status paused

# トピックの名前と基本重要度を変更
ingest edit topic "旧名前" --name "新名前" --importance 7.0

Test plan

  • npm test — 全73テスト通過(新規27テスト含む)
  • 存在しないタスク/トピック指定時のエラー終了確認
  • --importance 範囲外(0〜10 外)のバリデーション確認
  • オプション未指定時のエラー終了確認

🤖 Generated with Claude Code

hideack and others added 2 commits April 14, 2026 08:22
Add `ingest edit task` and `ingest edit topic` subcommands that allow
users to update registered records (title, importance, status for tasks;
name, base_importance for topics). Importance changes on tasks are
recorded as importance_reassessed events for audit trail.

Also add updateTask() and updateTopic() service methods, and unit tests
for both taskService and topicService.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Document ingest edit task / ingest edit topic in SKILL.md (usage rules),
commands.md (reference), and examples.md (scenario #6).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hideack hideack merged commit 9f07b3f into main Apr 14, 2026
1 check passed
@hideack hideack deleted the feat/edit-command branch April 14, 2026 02:41
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