snapshot: NODE1 production state 2026-02-09
Complete snapshot of /opt/microdao-daarion/ from NODE1 (144.76.224.179).
This represents the actual running production code that has diverged
significantly from the previous main branch.
Key changes from old main:
- Gateway (http_api.py): expanded from ~40KB to 164KB with full agent support
- Router: new /v1/agents/{id}/infer endpoint with vision + DeepSeek routing
- Behavior Policy: SOWA v2.2 (3-level: FULL/ACK/SILENT)
- Agent Registry: config/agent_registry.yml as single source of truth
- 13 agents configured (was 3)
- Memory service integration
- CrewAI teams and roles
Excluded from snapshot: venv/, .env, data/, backups, .tgz archives
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
33
scripts/memory/create_agent_collections.sh
Executable file
33
scripts/memory/create_agent_collections.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
# Create standard Qdrant collections for a new agent
|
||||
# Usage: ./create_agent_collections.sh <agent_id>
|
||||
|
||||
AGENT_ID=$1
|
||||
QDRANT_URL=${QDRANT_URL:-http://localhost:6333}
|
||||
DIMENSION=1024
|
||||
|
||||
if [ -z "$AGENT_ID" ]; then
|
||||
echo "Usage: $0 <agent_id>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
COLLECTIONS=("messages" "docs" "memory_items" "user_context")
|
||||
|
||||
echo "Creating collections for agent: $AGENT_ID"
|
||||
|
||||
for type in "${COLLECTIONS[@]}"; do
|
||||
collection="${AGENT_ID}_${type}"
|
||||
echo -n " ${collection}... "
|
||||
|
||||
RESULT=$(curl -sS -X PUT "${QDRANT_URL}/collections/${collection}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d {vectors: {size: "${DIMENSION}", distance: Cosine}} 2>&1)
|
||||
|
||||
if echo "$RESULT" | grep -q "true"; then
|
||||
echo "created"
|
||||
else
|
||||
echo "exists or error"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "Done!"
|
||||
Reference in New Issue
Block a user