@meetopenbot/fish-audio 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -5,7 +5,7 @@ Fish Audio specialist agent for OpenBot: MCP-backed voices, speech, transcriptio
5
5
  ## Features (MVP)
6
6
 
7
7
  - **Agent** — OpenAI + Fish Audio's official MCP (`https://api.fish.audio/mcp`)
8
- - **Auth** — API key via the `FISH_API_KEY` workspace variable
8
+ - **Auth** — API key, connected once for the whole workspace by a workspace owner
9
9
 
10
10
  ## Setup
11
11
 
@@ -20,7 +20,11 @@ plugins:
20
20
  model: openai/gpt-6-luna
21
21
  ```
22
22
 
23
- Store the key as a secret workspace variable named `FISH_API_KEY`. LLM calls use `OPENAI_API_KEY` when set (BYOK), otherwise OpenBot Credits.
23
+ Connect the key from the **Connect Fish Audio** card OpenBot shows the first time the agent runs, or from **Settings → Agents** (open the agent). It is a workspace account: one key for the whole workspace, and only a workspace owner can connect it. Other members are asked to have an owner connect it. The key is checked before saving, stored encrypted by the runtime, and never shown again. Workspace variables are not used for it.
24
+
25
+ On a self-hosted runtime you can instead set `FISH_API_KEY` in the runtime host's environment (not as a workspace variable).
26
+
27
+ LLM calls use `OPENAI_API_KEY` when set (BYOK), otherwise OpenBot Credits.
24
28
 
25
29
  ## Build
26
30
 
package/dist/index.js CHANGED
@@ -30,7 +30,14 @@ export const plugin = await defineMcpAgent({
30
30
  name: 'Fish Audio',
31
31
  description: 'Fish Audio MCP-backed specialist agent for voices, speech, transcription, and media',
32
32
  models: { providers: ['openai'], default: 'openai/gpt-6-luna' },
33
- secret: { envKeys: ['FISH_API_KEY'], docsUrl: 'https://fish.audio/app/api-keys' },
33
+ connection: {
34
+ kind: 'apiKey',
35
+ id: 'fish-audio',
36
+ // One paid account and its credits, shared by the workspace.
37
+ scope: 'workspace',
38
+ envKey: 'FISH_API_KEY',
39
+ docsUrl: 'https://fish.audio/app/api-keys',
40
+ },
34
41
  mcp: {
35
42
  url: 'https://api.fish.audio/mcp',
36
43
  headers: (apiKey) => ({ Authorization: `Bearer ${apiKey}` }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetopenbot/fish-audio",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Fish Audio MCP-backed specialist agent for OpenBot",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -19,7 +19,7 @@
19
19
  "dist"
20
20
  ],
21
21
  "dependencies": {
22
- "@meetopenbot/plugin-sdk": "^1.3.0"
22
+ "@meetopenbot/plugin-sdk": "^2.0.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/node": "^20.10.1",