21 lines
646 B
Bash
Executable File
21 lines
646 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Handy external_script 可选入口:转写 → 回廊洗字 → 命中「需求整理」则投递 Cursor 计划「语音·需求整理」
|
|
# 未命中则走通用 Agent/粘贴(与 handy_paste_or_karuo_agent.sh 相同)
|
|
set -euo pipefail
|
|
|
|
if [[ $# -lt 1 ]]; then
|
|
echo "handy_voice_requirement: missing transcription" >&2
|
|
exit 1
|
|
fi
|
|
|
|
KARUO_AI_ROOT="${KARUO_AI_ROOT:-/Users/karuo/Documents/个人/卡若AI}"
|
|
PIPE="${KARUO_AI_ROOT}/运营中枢/工作台/脚本/karuo_voice_pipeline.py"
|
|
|
|
if [[ ! -f "$PIPE" ]]; then
|
|
echo "missing pipeline: $PIPE" >&2
|
|
exit 2
|
|
fi
|
|
|
|
python3 "$PIPE" "$1" --source handy_requirement
|
|
exit $?
|