Skip to content

ai-actions v2.0.0: ノートメニュー起点に再設計 - #46

Merged
hitalin merged 1 commit into
mainfrom
feat/ai-actions-v2
Aug 14, 2026
Merged

hitalin merged 1 commit into
mainfrom
feat/ai-actions-v2

Conversation

@hitalin

@hitalin hitalin commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

ai-actions を v1 (クリップボード経由・コマンドパレット起動) から v2 に作り直し、公開する。

v2 の入出力

v1 は「コマンドパレットで実行 → クリップボードを読む → 結果をクリップボードに書き戻す」で、何が入力になったのか・結果がどこに出たのかが画面上に一切見えなかった。v2 は起点も出力もすべて可視な UI 面に置く。

呼び出し面 アクション
ノート「…」メニュー 翻訳 / 要約 / 返信案
ユーザーメニュー ユーザー紹介
投稿フォーム AI 推敲 (v1 の校正の移行先)

自動実行は持たず、AI 呼び出しは常に「ユーザーのクリック 1 回 = 課金 1 回」。空・ダイレクト・長文・CW の各ガードはすべて ai.chat より前に置いている。

返信案の暫定措置を外した (notedeck#1073)

下書きは開いて投稿する時点で返信リンクが外れ、通常のノートとして飛んでいた。そのため宛先だけでも届くよう、生成した返信本文の先頭に @user@host を機械的に足していた。本文が汚れるうえ返信スレッドは繋がらないままの暫定措置だった。

本体が下書きの返信・引用・チャンネルの文脈を復元するようになったので、メンションの前置をやめて AI の出力をそのまま下書きに入れる。

注意: 復元は NoteDeck 1.52.0 以降。それ未満の本体では返信リンクが外れ、暫定措置も無いため宛先が本文にも残らない。meta.jsonminNoteDeckVersion を入れてあるが、このフィールドは現状ストア側・本体側とも読んでいないためインストールは防げない。

関連

  • notedeck#1055 (v2 再設計の経緯)
  • notedeck#1073 (下書きの返信・引用・チャンネル文脈の復元)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Improved AI-generated reply drafts by preserving reply context when drafts are reopened.
    • Drafts now contain only the generated response and use a standard saved notification.
    • Added a minimum supported NoteDeck version requirement for the updated reply-draft experience.
  • Documentation

    • Updated reply-draft guidance to reflect restored reply context and current version requirements.
  • Chores

    • Refreshed registry metadata timestamps and the AI Actions plugin checksum.

返信の下書きは開いて投稿する時点で返信リンクが外れ、通常のノートとして飛んで
いた (notedeck#1073)。そのため宛先だけでも届くよう、生成した返信本文の先頭に
`@user@host` を機械的に足していた。本文が汚れるうえ、返信スレッドは繋がらない
ままの暫定措置だった。

本体が下書きの返信・引用の文脈を復元するようになったので、メンションの前置を
やめて AI の出力をそのまま下書きに入れる。復元された本体でしか正しく動かない
ため meta.json に minNoteDeckVersion を入れた。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@hitalin
hitalin merged commit 30ec8e5 into main Aug 14, 2026
1 of 2 checks passed
@hitalin
hitalin deleted the feat/ai-actions-v2 branch August 14, 2026 16:52
@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 58b85513-f86f-4503-8d60-74ef18006be9

📥 Commits

Reviewing files that changed from the base of the PR and between e1c4d66 and 0eecec6.

📒 Files selected for processing (9)
  • public/registry/index.json
  • public/registry/plugins.json
  • public/registry/plugins/ai-actions/api.json
  • public/registry/plugins/ai-actions/meta.json
  • public/registry/plugins/ai-actions/plugin.is
  • public/registry/queries.json
  • public/registry/skills.json
  • public/registry/themes.json
  • public/registry/widgets.json

📝 Walkthrough

Walkthrough

The PR updates AI Actions reply-draft creation to preserve reply context through replyId, adds a minimum NoteDeck version, and refreshes registry timestamps and plugin checksum metadata.

Changes

AI Actions reply drafts

Layer / File(s) Summary
Reply-draft behavior and compatibility
public/registry/plugins/ai-actions/meta.json, public/registry/plugins/ai-actions/api.json, public/registry/plugins/ai-actions/plugin.is
Reply drafts now save the AI response with replyId and visibility. The generated mention and link-loss warning were removed. The metadata requires NoteDeck 1.52.0, and the documentation reflects reply-context restoration.
Registry publication metadata
public/registry/plugins.json, public/registry/index.json, public/registry/queries.json, public/registry/skills.json, public/registry/themes.json, public/registry/widgets.json
Registry timestamps were updated. The ai-actions checksum and update timestamp were replaced. Registry counts and creation timestamps remain unchanged.

Estimated code review effort: 2 (Simple) | ~10 minutes

Sequence Diagram(s)

sequenceDiagram
  participant AI as ai-actions plugin
  participant DraftStore as Draft store
  participant NoteDeck
  AI->>DraftStore: Save generated response with replyId and visibility
  AI->>NoteDeck: Show standard draft-saved notification
  NoteDeck->>DraftStore: Open saved draft
  DraftStore-->>NoteDeck: Restore reply context
Loading
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/ai-actions-v2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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