feat: add scoped read-only audio preview and isolated Dify transport
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user