mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-10 08:05:22 +02:00
feat: add headless mode, redesign floating widget, refactor lifecycle callbacks (#268)
* feat: add headless widget for deployment * feat: call callbacks at the right time * feat: add onCallConnected & onCallDisconnected callback * feat: add a button with text for floating widget * feat: add headless widget for deployment * feat: call callbacks at the right time * feat: add onCallConnected & onCallDisconnected callback * feat: add a button with text for floating widget * docs: web widget * fix: format issue in pre-pr drift check * fix: fix CD to rely on pipecat dev dependey * chore: update message --------- Co-authored-by: Abhishek Kumar <abhishek@a6k.me>
This commit is contained in:
parent
31e2c135b0
commit
d2a119c38a
75 changed files with 803 additions and 485 deletions
|
|
@ -1,25 +0,0 @@
|
|||
#!/usr/bin/env pwsh
|
||||
# Setup script for using pipecat as a git submodule (Windows)
|
||||
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
$BaseDir = Split-Path -Parent $ScriptDir
|
||||
Set-Location $BaseDir
|
||||
|
||||
Write-Host "Setting up pipecat as a git submodule..."
|
||||
|
||||
# Initialize and update submodules
|
||||
Write-Host "Initializing git submodules..."
|
||||
git submodule update --init --recursive
|
||||
|
||||
# Install dograh API requirements first so pipecat's extras win on any
|
||||
# shared transitive dependencies (matches api/Dockerfile and CI workflow).
|
||||
Write-Host "Installing dograh API requirements..."
|
||||
pip install -r api/requirements.txt
|
||||
|
||||
# Install pipecat in editable mode with all extras
|
||||
Write-Host "Installing pipecat dependencies..."
|
||||
pip install -e './pipecat[cartesia,deepgram,openai,elevenlabs,groq,google,azure,sarvam,soundfile,silero,webrtc,speechmatics,openrouter,camb]'
|
||||
|
||||
Write-Host "Setup complete! Pipecat is now available as a git submodule."
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Setup script for using pipecat as a git submodule
|
||||
|
||||
# Get the project root directory (parent of scripts)
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
DOGRAH_DIR="$(dirname "$SCRIPT_DIR")"
|
||||
|
||||
cd "$DOGRAH_DIR"
|
||||
|
||||
echo "Setting up pipecat as a git submodule..."
|
||||
|
||||
# Initialize and update submodules
|
||||
echo "Initializing git submodules..."
|
||||
git submodule update --init --recursive
|
||||
|
||||
# Install dograh API requirements first so pipecat's extras win on any
|
||||
# shared transitive dependencies (matches api/Dockerfile and CI workflow).
|
||||
echo "Installing dograh API requirements..."
|
||||
pip install -r api/requirements.txt
|
||||
|
||||
# Install pipecat in editable mode with all extras
|
||||
echo "Installing pipecat dependencies..."
|
||||
pip install -e ./pipecat[cartesia,deepgram,openai,elevenlabs,groq,google,azure,sarvam,soundfile,silero,webrtc,speechmatics,openrouter,camb]
|
||||
|
||||
echo "Setup complete! Pipecat is now available as a git submodule."
|
||||
48
scripts/setup_requirements.ps1
Normal file
48
scripts/setup_requirements.ps1
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
#!/usr/bin/env pwsh
|
||||
# Setup script for using pipecat as a git submodule (Windows).
|
||||
#
|
||||
# Usage:
|
||||
# ./scripts/setup_requirements.ps1 # default: install runtime deps
|
||||
# ./scripts/setup_requirements.ps1 -Dev # also install pipecat dev deps;
|
||||
# # skips git submodule update (CI
|
||||
# # already checks out submodules).
|
||||
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[switch]$Dev
|
||||
)
|
||||
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
$BaseDir = Split-Path -Parent $ScriptDir
|
||||
Set-Location $BaseDir
|
||||
|
||||
Write-Host "Setting up pipecat as a git submodule..."
|
||||
|
||||
if (-not $Dev) {
|
||||
Write-Host "Initializing git submodules..."
|
||||
git submodule update --init --recursive
|
||||
}
|
||||
|
||||
# Install dograh API requirements first so pipecat's extras win on any
|
||||
# shared transitive dependencies (matches api/Dockerfile and CI workflow).
|
||||
Write-Host "Installing dograh API requirements..."
|
||||
pip install -r api/requirements.txt
|
||||
|
||||
if ($Dev) {
|
||||
Write-Host "Installing dograh API dev requirements..."
|
||||
pip install -r api/requirements.dev.txt
|
||||
}
|
||||
|
||||
# Install pipecat in editable mode with all extras
|
||||
Write-Host "Installing pipecat dependencies..."
|
||||
pip install -e './pipecat[cartesia,deepgram,openai,elevenlabs,groq,google,azure,sarvam,soundfile,silero,webrtc,speechmatics,openrouter,camb]'
|
||||
|
||||
if ($Dev) {
|
||||
Write-Host "Installing pipecat dev dependencies..."
|
||||
pip install --upgrade pip
|
||||
pip install --group pipecat/pyproject.toml:dev
|
||||
}
|
||||
|
||||
Write-Host "Setup complete! Requirements are installed."
|
||||
62
scripts/setup_requirements.sh
Executable file
62
scripts/setup_requirements.sh
Executable file
|
|
@ -0,0 +1,62 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Setup script for using pipecat as a git submodule.
|
||||
#
|
||||
# Usage:
|
||||
# ./scripts/setup_requirements.sh # default: install runtime deps
|
||||
# ./scripts/setup_requirements.sh --dev # also install pipecat dev deps;
|
||||
# # skips git submodule update (CI
|
||||
# # already checks out submodules).
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
DEV_MODE=0
|
||||
|
||||
while [[ $# -gt 0 ]]; do
|
||||
case "$1" in
|
||||
--dev)
|
||||
DEV_MODE=1
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
echo "Unknown argument: $1" >&2
|
||||
echo "Usage: $0 [--dev]" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Get the project root directory (parent of scripts)
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
DOGRAH_DIR="$(dirname "$SCRIPT_DIR")"
|
||||
|
||||
cd "$DOGRAH_DIR"
|
||||
|
||||
echo "Setting up pipecat as a git submodule..."
|
||||
|
||||
if [ "$DEV_MODE" -eq 0 ]; then
|
||||
echo "Initializing git submodules..."
|
||||
git submodule update --init --recursive
|
||||
fi
|
||||
|
||||
# Install dograh API requirements first so pipecat's extras win on any
|
||||
# shared transitive dependencies (matches api/Dockerfile and CI workflow).
|
||||
echo "Installing dograh API requirements..."
|
||||
pip install -r api/requirements.txt
|
||||
|
||||
if [ "$DEV_MODE" -eq 1 ]; then
|
||||
echo "Installing dograh API dev requirements..."
|
||||
pip install -r api/requirements.dev.txt
|
||||
fi
|
||||
|
||||
# Install pipecat in editable mode with all extras
|
||||
echo "Installing pipecat dependencies..."
|
||||
pip install -e ./pipecat[cartesia,deepgram,openai,elevenlabs,groq,google,azure,sarvam,soundfile,silero,webrtc,speechmatics,openrouter,camb]
|
||||
|
||||
if [ "$DEV_MODE" -eq 1 ]; then
|
||||
echo "Installing pipecat dev dependencies..."
|
||||
pip install --upgrade pip
|
||||
pip install --group pipecat/pyproject.toml:dev
|
||||
fi
|
||||
|
||||
echo "Setup complete! Requirements are installed."
|
||||
Loading…
Add table
Add a link
Reference in a new issue