feat(cli): add edit command to update tasks and topics#8
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ingest edit task <id|タイトル>コマンドを追加(--title/--importance/--statusオプション)ingest edit topic <id|名前>コマンドを追加(--name/--importanceオプション)importance_reassessedイベントを記録し、監査証跡を残す変更ファイル
src/core/taskService.tsupdateTask()関数を追加src/core/topicService.tsupdateTopic()関数を追加src/cli/commands/edit.tseditサブコマンド実装src/cli/index.tsregisterEditを登録src/core/__tests__/taskService.test.tssrc/core/__tests__/topicService.test.ts使用例
Test plan
npm test— 全73テスト通過(新規27テスト含む)--importance範囲外(0〜10 外)のバリデーション確認🤖 Generated with Claude Code