feat: add scoped read-only audio preview and isolated Dify transport

This commit is contained in:
2026-10-09 16:10:59 +08:00
parent 27772bec61
commit 4d0af7f3f4
36 changed files with 1517 additions and 68 deletions
+4 -1
View File
@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace app\command;
use app\common\service\followupaudio\FollowupAudioStore;
use app\common\service\followupaudio\FollowupAudioGate;
use app\common\service\followupaudio\FollowupAudioWorker;
use think\console\Command;
use think\console\Input;
@@ -42,7 +43,9 @@ final class FollowupAudioWork extends Command
$worked = $worker->runOnce();
if ($input->getOption('once') || $worked) {
$output->writeln('FOLLOWUP_AUDIO ' . json_encode(['enabled' => FollowupAudioStore::enabled(),
'audio_verified' => FollowupAudioStore::verified(), 'processed' => $worked]));
'audio_verified' => FollowupAudioStore::verified(),
'preview_only' => FollowupAudioGate::previewOnly(),
'preview_ready' => FollowupAudioGate::previewOnly() && FollowupAudioStore::ready(), 'processed' => $worked]));
}
} catch (\Throwable $e) {
$output->writeln('FOLLOWUP_AUDIO storage_or_configuration_error');