Skip to content

fix(mods): migrate examples to namespace API - #536

Draft
meganetaaan wants to merge 1 commit into
developfrom
fix/issue-515-mod-namespace-api
Draft

fix(mods): migrate examples to namespace API#536
meganetaaan wants to merge 1 commit into
developfrom
fix/issue-515-mod-namespace-api

Conversation

@meganetaaan

Copy link
Copy Markdown
Collaborator

概要

公式 example MOD を namespaced API へ移行し、optional button capability を安全に扱うようにします。

変更内容

検証

  • cd firmware && npm run lint: pass
  • cd firmware && npm run test:unit: pass, 31 tests
  • cd firmware && npm run check:architecture: pass, 13 tests
  • cd firmware && npm run check:legacy-names: pass
  • git diff --check: pass

未実施

  • 実機での MOD 動作確認
  • test:moddable / build

リリース影響

patch。公式サンプルの API 移行と安全性改善です。リリースノート記載推奨です。

Closes #515
関連 #507

🤖 Generated with Claude Code

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

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@meganetaaan, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 59 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1af1c1b4-6e77-4246-a145-850803c11e4f

📥 Commits

Reviewing files that changed from the base of the PR and between 092e56a and 459aa51.

📒 Files selected for processing (13)
  • firmware/host/app/app-capabilities.architecture.ts
  • firmware/host/app/capabilities.ts
  • firmware/host/app/runtime-context.ts
  • firmware/mods/examples/ai_stackchan/mod.js
  • firmware/mods/examples/ai_stackchan_api/mod.js
  • firmware/mods/examples/beacon_advertiser/mod.js
  • firmware/mods/examples/chat_audioio/mod.js
  • firmware/mods/examples/chatgpt/mod.js
  • firmware/mods/examples/dynamixel/mod.js
  • firmware/mods/examples/light/mod.js
  • firmware/mods/examples/lip_sync/mod.js
  • firmware/mods/examples/look_around/mod.js
  • firmware/mods/examples/monologue/mod.js
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/issue-515-mod-namespace-api

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.

@meganetaaan

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@meganetaaan

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

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.

MODサンプルのAPI表記を名前空間APIに統一し、button参照をoptional chaining化する

1 participant