Bun Spawn -> node child process in tools and seed versioning
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
name: Convert To MP3
|
||||
description: Convert audio files to MP3 320kbps, preserving metadata.
|
||||
version: 2
|
||||
version: 3
|
||||
author: pastilhas
|
||||
tags:
|
||||
- audio
|
||||
@@ -38,10 +38,13 @@ inputs:
|
||||
|
||||
Convert audio files to MP3 320kbps, preserving metadata.
|
||||
|
||||
## Important
|
||||
|
||||
- Do NOT explore, list, or inspect the target path before converting. The tool handles everything internally — file discovery, format detection, and error reporting.
|
||||
- Do NOT use bash, ls, or any other tool. Only use `convert_audio_to_mp3`.
|
||||
- Call the tool exactly once, then report the result. Nothing else.
|
||||
|
||||
## Steps
|
||||
|
||||
1. Determine whether `file_path` points to a single audio file or a directory.
|
||||
2. Call `convert_audio_to_mp3` with the appropriate mode:
|
||||
- Single file: `mode="single"`, `path=file_path`
|
||||
- Directory: `mode="batch"`, `path=file_path`
|
||||
3. Report the result to the user.
|
||||
1. If `file_path` has an audio extension (flac, wav, ogg, etc.), call `convert_audio_to_mp3(mode="single", path=file_path)`. Otherwise call `convert_audio_to_mp3(mode="batch", path=file_path)`.
|
||||
2. Print the tool's output as the final report. Do not add extra commentary.
|
||||
|
||||
Reference in New Issue
Block a user