The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore(tools): remove audio podcast tool specs and flows
Steven Enamakele8b16392fe16
diff --git a/app/scripts/e2e-run-all-flows.sh b/app/scripts/e2e-run-all-flows.shindex 6496d72a0b..d9d51eb2a6 100755--- a/app/scripts/e2e-run-all-flows.sh+++ b/app/scripts/e2e-run-all-flows.sh@@ -420,7 +420,6 @@ if should_run_suite "system"; thenecho "## Running suite: system"run "test/e2e/specs/local-model-runtime.spec.ts" "local-model" "system"run "test/e2e/specs/voice-mode.spec.ts" "voice-mode" "system"- run "test/e2e/specs/audio-toolkit-flow.spec.ts" "audio-toolkit" "system"run "test/e2e/specs/tauri-commands.spec.ts" "tauri-commands" "system"# service-connectivity-flow tests the old sidecar service model removed in# PR #1061 (core is now in-process). Skip by not setting OPENHUMAN_SERVICE_MOCK=1.diff --git a/app/src/features/conversations/tools/__fixtures__/coreToolNames.json b/app/src/features/conversations/tools/__fixtures__/coreToolNames.jsonindex 831be49a4e..c1640bebe8 100644--- a/app/src/features/conversations/tools/__fixtures__/coreToolNames.json+++ b/app/src/features/conversations/tools/__fixtures__/coreToolNames.json@@ -4,9 +4,6 @@"artifact_get","artifact_list","ask_user_clarification",- "audio_email_podcast",- "audio_generate_and_email_podcast",- "audio_generate_podcast","await_workflow","browser","browser_open",diff --git a/app/src/features/conversations/tools/toolPhrases.ts b/app/src/features/conversations/tools/toolPhrases.tsindex ab9163bd58..e6377cd744 100644--- a/app/src/features/conversations/tools/toolPhrases.ts+++ b/app/src/features/conversations/tools/toolPhrases.ts@@ -90,12 +90,7 @@ export const TOOL_PHRASES = {checkMediaModels: { active: 'Checking media models', done: 'Checked media models' },createDocument: { active: 'Creating document', done: 'Created document' },createPresentation: { active: 'Creating presentation', done: 'Created presentation' },- generatePodcast: { active: 'Generating podcast', done: 'Generated podcast' },- emailPodcast: { active: 'Emailing podcast', done: 'Emailed podcast' },- createAndEmailPodcast: {- active: 'Creating and emailing podcast',- done: 'Created and emailed podcast',- },+// ── Memory ──────────────────────────────────────────────────────────────recallMemories: { active: 'Recalling memories', done: 'Recalled memories' },diff --git a/app/src/features/conversations/tools/toolSpecs.ts b/app/src/features/conversations/tools/toolSpecs.tsindex de8b1accb6..ceda73ec81 100644--- a/app/src/features/conversations/tools/toolSpecs.ts+++ b/app/src/features/conversations/tools/toolSpecs.ts@@ -71,7 +71,6 @@ import {PackagePlusIcon,PackageSearchIcon,PlugIcon,- PodcastIcon,PowerIcon,PresentationIcon,ReceiptIcon,@@ -266,13 +265,7 @@ export const EXACT_TOOL_SPECS: Record<string, ToolSpec> = {generate_presentation: spec('createPresentation', PresentationIcon, 'media', {chip: chip.text('title'),}),- audio_generate_podcast: spec('generatePodcast', PodcastIcon, 'media', {- chip: chip.text('title', 'topic'),- }),- audio_email_podcast: spec('emailPodcast', PodcastIcon, 'media', { chip: chip.text('to') }),- audio_generate_and_email_podcast: spec('createAndEmailPodcast', PodcastIcon, 'media', {- chip: chip.text('title', 'topic'),- }),+// ── Memory ──────────────────────────────────────────────────────────────// The single memory tool: recall asks a `question`, fetch a `query`, learn stores `text`.diff --git a/app/test/e2e/specs/audio-toolkit-flow.spec.ts b/app/test/e2e/specs/audio-toolkit-flow.spec.tsdeleted file mode 100644index d36504637e..0000000000--- a/app/test/e2e/specs/audio-toolkit-flow.spec.ts+++ /dev/null@@ -1,83 +0,0 @@-import { waitForApp } from '../helpers/app-helpers';-import { callOpenhumanRpc } from '../helpers/core-rpc';-import { resetApp } from '../helpers/reset-app';-import { startMockServer, stopMockServer } from '../mock-server';--const USER_ID = 'e2e-audio-toolkit';--describe('Audio toolkit flow', () => {- before(async function beforeSuite() {- this.timeout(90_000);- await startMockServer();- await waitForApp();- await resetApp(USER_ID);- });-- after(async () => {- await stopMockServer();- });-- it('generates an mp3 artifact and captures the email attachment in the workspace', async () => {- const response = await callOpenhumanRpc<{- result: {- audio: { output_path: string; file_name: string; bytes_written: number; format: string };- email: { mode: string; capture_path?: string | null; attachment_name: string };- };- }>('openhuman.audio_toolkit_generate_and_email_podcast', {- text: 'This is the weekly AI podcast briefing for the team.',- title: 'Weekly briefing',- to: '[email protected]',- subject: 'Your weekly audio briefing',- body: 'Attached is the latest audio briefing.',- format: 'mp3',- });-- expect(response.ok).toBe(true);- const result = (response.result?.result ?? response.result) as- | {- audio: { output_path: string; file_name: string; bytes_written: number; format: string };- email: { mode: string; capture_path?: string | null; attachment_name: string };- }- | undefined;- expect(result?.audio.format).toBe('mp3');- expect(result?.audio.bytes_written).toBeGreaterThan(0);- expect(result?.email.mode).toBe('capture');- expect(result?.email.capture_path).toBeTruthy();-- const workspaceFiles = await callOpenhumanRpc<{- result: { entries: Array<{ rel_path: string; size: number; is_dir: boolean }> };- }>('openhuman.test_support_list_workspace_files', { rel_root: 'artifacts', max_depth: 4 });- expect(workspaceFiles.ok).toBe(true);- const entries =- (- (workspaceFiles.result?.result ?? workspaceFiles.result) as- | { entries?: Array<{ rel_path: string; size: number; is_dir: boolean }> }- | undefined- )?.entries ?? [];- const audioArtifact = entries.find(- e =>- e.rel_path === result?.audio.output_path ||- !!result?.audio.output_path?.endsWith(`/${e.rel_path}`) ||- e.rel_path.endsWith(`/${result?.audio.output_path ?? ''}`)- );- expect(audioArtifact?.size ?? 0).toBeGreaterThan(0);- const capturedEmail = entries.find(- e =>- e.rel_path === result?.email.capture_path ||- !!result?.email.capture_path?.endsWith(`/${e.rel_path}`) ||- e.rel_path.endsWith(`/${result?.email.capture_path ?? ''}`)- );- expect(capturedEmail?.size ?? 0).toBeGreaterThan(0);-- const emailRead = await callOpenhumanRpc<{ result: { content_utf8: string } }>(- 'openhuman.test_support_read_workspace_file',- { rel_path: result?.email.capture_path, max_bytes: 131072 }- );- expect(emailRead.ok).toBe(true);- const wire =- ((emailRead.result?.result ?? emailRead.result) as { content_utf8?: string } | undefined)- ?.content_utf8 ?? '';- expect(wire).toContain('Subject: Your weekly audio briefing');- expect(wire).toContain(result?.email.attachment_name ?? 'weekly-briefing.mp3');- });-});diff --git a/app/test/playwright/specs/audio-toolkit-flow.spec.ts b/app/test/playwright/specs/audio-toolkit-flow.spec.tsdeleted file mode 100644index 9c06bbbe32..0000000000--- a/app/test/playwright/specs/audio-toolkit-flow.spec.ts+++ /dev/null@@ -1,114 +0,0 @@-import { expect, test } from '@playwright/test';-import { promises as fs } from 'node:fs';-import path from 'node:path';--import { bootAuthenticatedPage, callCoreRpc } from '../helpers/core-rpc';--function workspaceDir(): string {- const ws = process.env.OPENHUMAN_WORKSPACE;- if (!ws) throw new Error('OPENHUMAN_WORKSPACE not set for audio-toolkit-flow');- return ws;-}--test.describe('Audio toolkit flow', () => {- test.beforeEach(async ({ page }, testInfo) => {- const slug = testInfo.title.toLowerCase().replace(/[^a-z0-9]+/g, '-');- await bootAuthenticatedPage(page, `pw-audio-toolkit-${slug}`, '/home');- });-- test('generates an mp3 artifact and captures the email attachment in the workspace', async () => {- let generatedAndEmailed: {- audio: { output_path: string; file_name: string; bytes_written: number; format: string };- email: { mode: string; capture_path?: string | null; attachment_name: string };- } | null = null;-- try {- const response = await callCoreRpc<{- result?: {- audio: { output_path: string; file_name: string; bytes_written: number; format: string };- email: { mode: string; capture_path?: string | null; attachment_name: string };- };- audio?: { output_path: string; file_name: string; bytes_written: number; format: string };- email?: { mode: string; capture_path?: string | null; attachment_name: string };- }>('openhuman.audio_toolkit_generate_and_email_podcast', {- text: 'This is the weekly AI podcast briefing for the team.',- title: 'Weekly briefing',- to: '[email protected]',- subject: 'Your weekly audio briefing',- body: 'Attached is the latest audio briefing.',- format: 'mp3',- });-- generatedAndEmailed =- response.result && 'audio' in response.result- ? response.result- : (response as unknown as {- audio: {- output_path: string;- file_name: string;- bytes_written: number;- format: string;- };- email: { mode: string; capture_path?: string | null; attachment_name: string };- });- } catch (error) {- const message = error instanceof Error ? error.message : String(error);- expect(message).toContain('email channel is not configured');- }-- if (generatedAndEmailed) {- expect(generatedAndEmailed.audio.format).toBe('mp3');- expect(generatedAndEmailed.audio.bytes_written).toBeGreaterThan(0);- expect(generatedAndEmailed.email.mode).toBe('capture');- expect(generatedAndEmailed.email.capture_path).toBeTruthy();-- const audioPath = path.join(- workspaceDir(),- 'workspace',- generatedAndEmailed.audio.output_path- );- const capturePath = path.join(- workspaceDir(),- 'workspace',- generatedAndEmailed.email.capture_path ?? ''- );- const audioStat = await fs.stat(audioPath);- const emailWire = await fs.readFile(capturePath, 'utf8');-- expect(audioStat.size).toBeGreaterThan(0);- expect(emailWire).toContain('Subject: Your weekly audio briefing');- expect(emailWire).toContain(- generatedAndEmailed.email.attachment_name ?? 'weekly-briefing.mp3'- );- return;- }-- const generated = await callCoreRpc<{- result?: { output_path: string; file_name: string; bytes_written: number; format: string };- output_path?: string;- file_name?: string;- bytes_written?: number;- format?: string;- }>('openhuman.audio_toolkit_generate_podcast', {- text: 'This is the weekly AI podcast briefing for the team.',- title: 'Weekly briefing',- format: 'mp3',- });-- const audio =- generated.result && 'output_path' in generated.result- ? generated.result- : (generated as unknown as {- output_path: string;- file_name: string;- bytes_written: number;- format: string;- });-- expect(audio.format).toBe('mp3');- expect(audio.bytes_written).toBeGreaterThan(0);- const audioPath = path.join(workspaceDir(), 'workspace', audio.output_path);- const audioStat = await fs.stat(audioPath);- expect(audioStat.size).toBeGreaterThan(0);- });-});diff --git a/scripts/mock-api/routes/__tests__/audio.test.mjs b/scripts/mock-api/routes/__tests__/audio.test.mjsindex 99a7b4276d..6b9bd1d77b 100644--- a/scripts/mock-api/routes/__tests__/audio.test.mjs+++ b/scripts/mock-api/routes/__tests__/audio.test.mjs@@ -73,7 +73,7 @@ test("mock audio speech route honors behavior overrides", async () => {});test("mock audio transcription route returns deterministic text", async () => {- setMockBehavior("audioTranscriptionText", "Podcast transcription.");+ setMockBehavior("audioTranscriptionText", "Speech transcription.");const res = createRes();const handled = await handleAudio({method: "POST",@@ -83,5 +83,5 @@ test("mock audio transcription route returns deterministic text", async () => {});assert.equal(handled, true);- assert.equal(JSON.parse(res.body).text, "Podcast transcription.");+ assert.equal(JSON.parse(res.body).text, "Speech transcription.");});