data timeout fixes; research agent improvements
This commit is contained in:
66
bin/deploy
66
bin/deploy
@@ -109,72 +109,6 @@ if [ "$PROJECT" != "lifecycle-sidecar" ]; then
|
||||
rsync -a --checksum --delete protobuf/ $PROJECT/protobuf/
|
||||
fi
|
||||
|
||||
# For gateway: copy Python API files for research subagent
|
||||
if [ "$PROJECT" == "gateway" ]; then
|
||||
echo "Copying Python API files for research subagent..."
|
||||
|
||||
# Create api-source directory
|
||||
mkdir -p gateway/src/harness/subagents/research/api-source
|
||||
|
||||
# Copy all Python API files (for easy future expansion)
|
||||
cp sandbox/dexorder/api/*.py gateway/src/harness/subagents/research/api-source/
|
||||
|
||||
# Generate api-reference.md with verbatim Python source code
|
||||
API_REF="gateway/src/harness/subagents/research/memory/api-reference.md"
|
||||
|
||||
cat > "$API_REF" << 'HEADER'
|
||||
# Dexorder Research API Reference
|
||||
|
||||
This file contains the complete Python API source code with full docstrings.
|
||||
These files are copied verbatim from `sandbox/dexorder/api/`.
|
||||
|
||||
The API provides access to market data and charting capabilities for research scripts.
|
||||
|
||||
---
|
||||
|
||||
## Overview
|
||||
|
||||
Research scripts access the API via:
|
||||
```python
|
||||
from dexorder.api import get_api
|
||||
api = get_api()
|
||||
```
|
||||
|
||||
The API instance provides:
|
||||
- `api.data` - DataAPI for fetching OHLC market data
|
||||
- `api.charting` - ChartingAPI for creating financial charts
|
||||
|
||||
---
|
||||
|
||||
## Complete API Source Code
|
||||
|
||||
The following sections contain the verbatim Python source files with complete
|
||||
type hints, docstrings, and examples.
|
||||
|
||||
HEADER
|
||||
|
||||
# Append each Python file
|
||||
for py_file in api.py data_api.py charting_api.py __init__.py; do
|
||||
if [ -f "sandbox/dexorder/api/$py_file" ]; then
|
||||
echo "" >> "$API_REF"
|
||||
echo "### $py_file" >> "$API_REF"
|
||||
echo '```python' >> "$API_REF"
|
||||
cat "sandbox/dexorder/api/$py_file" >> "$API_REF"
|
||||
echo '```' >> "$API_REF"
|
||||
echo "" >> "$API_REF"
|
||||
fi
|
||||
done
|
||||
|
||||
cat >> "$API_REF" << 'FOOTER'
|
||||
|
||||
---
|
||||
|
||||
For practical usage patterns and complete working examples, see `usage-examples.md`.
|
||||
FOOTER
|
||||
|
||||
echo "Generated api-reference.md with Python API source code"
|
||||
fi
|
||||
|
||||
docker build $NO_CACHE -f $PROJECT/Dockerfile --build-arg="CONFIG=$CONFIG" --build-arg="DEPLOYMENT=$DEPLOYMENT" -t dexorder/ai-$PROJECT:latest $PROJECT || exit 1
|
||||
|
||||
# Cleanup is handled by trap
|
||||
|
||||
6
bin/dev
6
bin/dev
@@ -511,9 +511,9 @@ deep_restart() {
|
||||
# Force restart iceberg-catalog since it depends on postgres and minio
|
||||
echo -e "${GREEN}→${NC} Force restarting iceberg-catalog (depends on postgres/minio)..."
|
||||
kubectl delete pod -l app=iceberg-catalog 2>/dev/null || true
|
||||
# Remove all sandbox deployments and services to free quota
|
||||
echo -e "${GREEN}→${NC} Removing all sandbox deployments and services..."
|
||||
kubectl delete deployments,services --all -n sandbox 2>/dev/null || true
|
||||
# Remove all sandbox deployments, services, and PVCs to fully reset user state
|
||||
echo -e "${GREEN}→${NC} Removing all sandbox deployments, services, and PVCs..."
|
||||
kubectl delete deployments,services,pvc --all -n sandbox 2>/dev/null || true
|
||||
;;
|
||||
*)
|
||||
echo -e "${RED}Error: Unknown service '$service'${NC}"
|
||||
|
||||
Reference in New Issue
Block a user