Skip to content

fix(plugins): mfm-search-engine の ### メタデータから https:// を除く - #101

Merged
hitalin merged 1 commit into
mainfrom
fix/mfm-search-engine-meta-slashes
Nov 4, 2026
Merged

hitalin merged 1 commit into
mainfrom
fix/mfm-search-engine-meta-slashes

Conversation

@hitalin

@hitalin hitalin commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator

なぜ

#100 で etherscan-autolink / web-search は直したが、mfm-search-engine の config.engine の description にも https:// が残っていた。NoteDeck 1.103 までは ### 内の // 以降をコメントとして落とすため config が丸ごと消え、起動時に Plugin:config.engine が null で resolveTemplate の trim() が落ちる (notedeck-dev/notedeck#1340 のログはこのプラグイン)。NoteDeck 側は notedeck-dev/notedeck#1341 で直るが、今の 1.103.0 でも動くようにする。

何を

  • description から // を除き、例はスキーム無し (search.example.com/?q=) にする
  • スキームの無い設定値には https:// を足す (etherscan-autolink と同じ扱い)。https:// 付きの値は従来どおり通る
  • 設定値が文字列でない / 空のときは警告に落とす (null で落ちない)
  • version 1.0.1、pnpm registry:build 済み

確認

  • ### ブロック内の // がゼロ (1.103 までの素朴な除去でも壊れない)
  • AiScript 1.2.1 の Parser で構文が通り、NoteDeck の parsePluginMeta で config.engine が読める (vitest の使い捨てテストで確認)
  • pnpm contract:verify 合格 158 / 不合格 0
  • 実機では未確認

🤖 Generated with Claude Code

…の解析で // 以降が消えて Plugin:config が空になる)

#100 で etherscan-autolink / web-search は直したが、このプラグインの
config.engine の description にも https:// が残っていた。NoteDeck 1.103 までは
### 内の // 以降をコメントとして落とすため config が丸ごと消え、起動時に
Plugin:config.engine が null で resolveTemplate の trim() が落ちていた
(notedeck#1340)。

- description から // を除き、例はスキーム無し (search.example.com/?q=) にする
- スキームの無い設定値には https:// を足す (etherscan-autolink と同じ扱い)
- 設定値が文字列でない / 空のときは警告に落とす
- version 1.0.1

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@hitalin hitalin self-assigned this Nov 4, 2026
@hitalin
hitalin merged commit 3b07f6c into main Nov 4, 2026
4 of 5 checks passed
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