Repository navigation
Add Rask commands - #167
Open
nichikaX27 wants to merge 117 commits into
Open
Add Rask commands #167nichikaX27 wants to merge 117 commits into
nichikaX27 wants to merge 117 commits into
Conversation
- execute rask-cli command "task list" - show tasks within the next week
to use date from one week ago and improve result handling
search documents by keywords instead of date
extract and display AI task details with links
improved error handling and debugging output
…sk URL formatting
…ate response messages
Delete google_calendar_gateway.rb
Refactor task_reminder.rb to use rask_cli_driver.rb
# Conflicts: # lib/swimmy/service.rb
Create minutes uploader
Fix base.rb
# Conflicts: # lib/swimmy/command/base.rb # lib/swimmy/service.rb
Add rtask_to_gc command
Solve Conflict and Rename Rask
- Gemfile.lock: restore nomlab/swimmy's lockfile and re-resolve only the rspotify dependencies required by the Gemfile (the previous lockfile pinned http-cookie 1.1.4 and had inconsistent version_gem constraints) - exe/swimmy: re-enable MQTT client initialization - app.rb: re-enable spreadsheet initialization - calendar_service.rb: drop a stray comment line - log.txt: remove empty file Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Task: allow due_at to be nil, and make url's argument optional so the plain reader still works - TaskList: convert the Time due_at with to_datetime instead of DateTime.parse, and show tasks without a due date - task_reminder command: do not return before posting "no tasks" message - resource.rb: remove autoloads for deleted rtask/rtask_to_gc resources Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Keep the lockfile identical to nomlab/swimmy so the Rask changes do not carry unrelated dependency updates. The missing rspotify entries in the upstream lockfile should be fixed in a separate pull request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refacftor task_reminder.rb to use rask.rb
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.
概要
追加機能
RaskDriver を追加した.
また RaskDriver を利用し,以下の4つのコマンドを追加した.
RaskDriver
機能
Rask の CLI である rask-cli を swimmy から呼び出し,Rask のタスク・文書・ユーザ・プロジェクトを取得したり,タスクを作成したりできる.
クラスメソッドだけで構成しているため,インスタンスを作らずに以下のように呼び出せる.
詳細は
docs/rask_cli_driver.mdに記載した.該当ファイル
lib/swimmy/service/rask.rblib/swimmy/resource/document.rblib/swimmy/resource/task.rblib/swimmy/resource/user.rblib/swimmy/resource/project.rblib/swimmy/resource/id_name.rbdocs/rask_cli_driver.mdspec/rask_spec.rbhomework コマンド
機能
Rask に登録された議事録から宿題(アクションアイテム)を抽出し,担当者ごとにタスク作成用のリンクを表示する.
使用方法
swimmy homework <文書名>と入力すると,<文書名>に一致する Rask の文書から宿題を抽出し,担当者名と宿題番号をタスク作成用のリンクとして表示する.各リンクを開くと,Rask のタスク作成画面が,説明欄に元の議事録の該当の宿題へのリンクを記入した状態で開く.
議事録中の宿題は,以下の形式で記述されたものを抽出する.
<文書名>を指定しなかった場合は使用方法を,宿題が見つからなかった場合はその旨を表示する.
特徴
Rask の CLI(rask-cli)を呼び出す
Swimmy::Service::Raskを通じて文書を取得している.該当ファイル
lib/swimmy/command/homework.rblib/swimmy/service/homework.rblib/swimmy/resource/homework.rbminutes_uploader コマンド
機能
実行した日に New, GN 少なくとも一方の検討打合せの予定がカレンダに登録されている場合,その検討打合せで使用する前回の議事録のページ URL と議事録作成のページの URL をアップロードする.
使用方法
swimmy minutes_uploaderと入力する.特徴
rask-cli を利用して,rask の文書データを取得している.
該当ファイル
lib/swimmy/command/minutes_uploader.rblib/swimmy/service/calendar_gateway.rblib/swimmy/service/meeting_event_selector.rblib/swimmy/service/minutes_selector.rblib/swimmy/resource/meeting_event.rblib/swimmy/resource/minutes.rbrtask_to_gc コマンド
機能
Rask に登録されている当月分のタスクを Google カレンダに追加する.
使用方法
swimmy rtask_to_gc と入力する.
特徴
rask-cli を利用して,rask のタスクデータを取得している.
該当ファイル
./lib/swimmy/command/rtask_to_gc.rb
./lib/swimmy/service/rtask_to_gc.rb
./lib/swimmy/resource/this_month.rb
./lib/swimmy/resource/calender_service.rb
task_reminder コマンド
機能
コマンドを実行した人のタスクを一覧表示する.
使用方法
swimmy task_reminderと入力する.特徴
rask-cli を利用して,rask のタスクデータを取得している.
該当ファイル
lib/swimmy/command/task_reminder.rblib/swimmy/resource/task_reminder.rb