Skip to content

feat(catalog): add Token Plan native media - #142141

Merged
teknium1 merged 5 commits into
NousResearch:mainfrom
oliver-mee:catalog/token-plan-v2-20261020
Nov 11, 2026
Merged

teknium1 merged 5 commits into
NousResearch:mainfrom
oliver-mee:catalog/token-plan-v2-20261020

Conversation

@oliver-mee

@oliver-mee oliver-mee commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Add the standalone alibaba-token-plan-media community catalogue entry, pinned to 7b85246880f3dbcc082cd0f34753ee605d770aa5.

The source package now ships only whole-file WebSocket TTS and synchronous file ASR. The image and video backends are removed, so this entry no longer lists the unreviewed dashscope-image or dashscope-video lineage. TTS reads keys through public agent.secret_scope.get_secret, and ASR locates existing conversion binaries with shutil.which.

Chat is not part of this entry. It is being integrated into the existing bundled Alibaba provider in #143375.

Related Issue

Chat replacement: #143375, following #52915 and the maintainer's updated direction.

Type of Change

  • New feature (community catalogue metadata)

Changes Made

  • Add plugin-catalog/alibaba-token-plan-media.yaml only.
  • Re-pin the source from 54aab3e519ec267ba5526876bad9b4d9c3776bf5 to 7b85246880f3dbcc082cd0f34753ee605d770aa5.
  • Narrow the published package and its installer inventory to TTS and ASR, removing image/video registration, implementations, documentation and backend-specific tests.
  • Replace the private TTS secret helper and ASR ffmpeg finders with the requested public APIs.
  • Update the catalogue description to match the audio-only package.

How to Test

Source validation on Python 3.14:

  • python -m pytest -q: 241 passed, 12 Hermes-dependent skips.
  • Pinned Hermes 0.22.0 TTS/ASR loader and dispatcher tests: 3 passed with mocked vendor transports.
  • Pinned Hermes 0.22.0 native media admission test: 1 passed.
  • Shell syntax, Python compilation, generated README and whitespace checks passed.
  • The exact source archive contains only package metadata, catalogue, licence/notice files, tts/ and asr/; no image or video directories are present.

The catalogue structural validator at this PR head reports OK: 1 file(s) valid.

Validation details are recorded in the source validation note. No paid inference was run. Team/China ASR inference remains unverified.

Checklist

  • Read contribution and catalogue admission guidance.
  • Conventional Commits used; only catalogue metadata changed in this PR.
  • Resolve image/video overlap by narrowing the package to TTS and ASR.
  • Replace the requested private host helpers and validate native admission.
  • Revised catalogue structure validated.
  • Full Hermes tests and lint: not run for this metadata-only catalogue change.
  • Human catalogue admission remains pending.

AI assistance

AI-assisted preparation and validation by Kimi k3.1-pro, directed by the human submitter. Human code review is not inferred.


🤖 Generated with Kimi k3.1-pro
🧑‍💻 Ideated, directed and reviewed by a human, @oliver-mee

@whyyagswhy

Copy link
Copy Markdown
Contributor

Verified head SHA 8903e8f matches PR. Two new catalog entries (alibaba-token-plan-media, alibaba-token-plan-provider); both YAML parse. No tests applicable.

@alt-glitch alt-glitch added area/profiles Multi-profile isolation, HERMES_HOME scoping comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have provider/qwen Qwen / Alibaba Cloud (OAuth) tool/tts Text-to-speech and transcription tool/vision Vision analysis and image generation type/feature New feature or request labels Oct 20, 2026

@teknium1 teknium1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @oliver-mee, thanks for the two Alibaba Token Plan entries — reviewed both at cf585f15.

alibaba-token-plan-provider: can't list as built. It re-registers Hermes's bundled alibaba-token-plan / alibaba-token-plan-cn providers under the same names with different hosts (alibaba-token-plan/init.py:261-262, :308-309). We know #52915 was closed with "publish as a standalone plugin" — since then core folded Token Plan into the bundled alibaba provider, so that advice is out of date, sorry for the runaround. Please drop plugin-catalog/alibaba-token-plan-provider.yaml from this PR and send the Team profiles, tier-aware model list, reasoning mapping and host updates as a hermes-agent PR against plugins/model-providers/alibaba/__init__.py, where they're welcome. (A Team-only package that adds just alibaba-token-plan-team / -cn-team could list separately.)

alibaba-token-plan-media: the media backends are carefully built (SSRF-guarded downloads, whitelisted ffmpeg, fixed hosts). Before it can list:

  1. The image and video backends derive from the listed dashscope-image / dashscope-video plugins. Either offer the Token Plan region/tier work as PRs on rriggs/hermes-plugin-dashscope-image and -video first (it can list here if they decline or after 30 days of silence), or re-pin a package that ships only the TTS + ASR backends for now.
  2. tts/provider.py:93-95 — read keys with agent.secret_scope.get_secret(name) like your other backends, not the private tools.tool_backend_helpers.resolve_provider_secret.
  3. asr/provider.py:21, :99 — replace tools.transcription_audio._find_ffmpeg_binary/_find_ffprobe_binary with shutil.which; image/media.py:43 — use the public tools.url_safety.create_ssrf_safe_async_client (or your own public-IP check + httpx with redirects off).

We'll add a disclosure line at merge.

Push the fix, re-pin sha: here and comment when it's in; we'll review the delta from cf585f15.

@oliver-mee oliver-mee changed the title feat(catalog): add Token Plan v2 chat and native media feat(catalog): add Token Plan native media Oct 23, 2026
@alt-glitch alt-glitch removed the area/profiles Multi-profile isolation, HERMES_HOME scoping label Oct 23, 2026

@teknium1 teknium1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oliver-mee thanks for the update on alibaba-token-plan-media — we re-reviewed it at 54aab3e5. Fixed since our last pass: the PR now adds only the media entry (the extra provider YAML is gone), and the image downloads go through Hermes's SSRF-safe client with redirects off, which covers our download ask.

The new region/tier transcription profiles look clean: each reads its own key through get_secret and only talks to the two fixed Token Plan hosts.

Before it can list:

  1. One listing per lineage (still open). The image and video backends are still derived from the listed dashscope-image / dashscope-video plugins, and neither upstream repo has a PR from you yet. Either open the Token Plan region/tier work as PRs on rriggs/hermes-plugin-dashscope-image and rriggs/hermes-plugin-dashscope-video (this entry can list once they decline, or after 30 days with no answer), or re-pin a package that registers only the TTS + transcription backends for now.
  2. Private secret helper in TTS (still open). tts/provider.py:93-95 — _key() still imports the private tools.tool_backend_helpers.resolve_provider_secret. Read each key with the public agent.secret_scope.get_secret(name), the same way asr/provider.py:238 already does.
  3. Private ffmpeg finders (still open). asr/provider.py:21 and :99 still import tools.transcription_audio._find_ffmpeg_binary / _find_ffprobe_binary; use shutil.which("ffmpeg") / shutil.which("ffprobe") instead.

We'll add a disclosure line at merge.

Push the fix, re-pin sha: here and comment when it's in; we'll review the delta from 54aab3e5.

Pin the audio-only source revision that uses public secret and ffmpeg APIs and no longer ships dashscope-derived image or video backends.
@oliver-mee

Copy link
Copy Markdown
Contributor Author

Rebased on current main, head 44b7f12, and re-pinned to 7b852468, which takes your second option on the listing rule: the package registers only the TTS and transcription backends, the image and video entries are gone with it.

Both private-helper asks land in the same pin. TTS reads each key through the public agent.secret_scope.get_secret rather than resolve_provider_secret, and ASR uses shutil.which("ffmpeg") / shutil.which("ffprobe") instead of the private finders.

@teknium1 ready for the delta from 54aab3e5.

@alt-glitch alt-glitch added the area/auth Authentication, OAuth, credential pools label Nov 10, 2026

@teknium1 teknium1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed at the current pin: the blocking asks from our earlier review are fixed. Approving for the catalog; we added any disclosure line and version floor as a merge chore. Thanks!

@teknium1 teknium1 added the ci-reviewed applied to manually approve dangerous changes label Nov 10, 2026
@teknium1
teknium1 merged commit 789585e into NousResearch:main Nov 11, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/auth Authentication, OAuth, credential pools ci-reviewed applied to manually approve dangerous changes comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have provider/qwen Qwen / Alibaba Cloud (OAuth) tool/tts Text-to-speech and transcription tool/vision Vision analysis and image generation type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants