diff --git a/README.md b/README.md index aa0ea88..06b6d5e 100644 --- a/README.md +++ b/README.md @@ -63,16 +63,15 @@ 3. Assign necessary system resources (Skills, Node access mappings, restricted Models) to this group so its members can utilize them. ### 3. Add a New Node into the Agent Mesh -To give the AI hands-on execution power, you must register and deploy a new "Node": +To give the AI hands-on execution power, you must register and deploy a new "Node". Nodes now run as dependency-free compiled Python binaries. 1. Navigate to the **Swarm Nodes** page in the UI. 2. Click **Register Node** to generate a unique Node Slug and an Invite Auth Token. -3. In your terminal (on the machine you want to use as a node), run the node deployment script: +3. In your terminal (on the machine you want to use as a node), copy and paste the one-liner command provided in the UI! For example: ```bash - bash add_node.sh - # It will prompt you for the Node ID and Auth Token you just generated! + curl -sSL 'http://localhost:8000/api/v1/nodes/provision/sh/YOUR_NODE_ID?token=YOUR_TOKEN' | bash ``` 4. Watch the node's pulsing indicator turn green on your Swarm dashboard! -*(Note: We have extensively tested agent nodes on **macOS and Linux**. Windows deployment is not supported yet.)* +*(Note: Agent nodes compile locally to **Linux AMD64, Linux ARM64, and macOS**. If using macOS, download the source bundle or build the darwin binary locally if native execution is required.)* ### 4. Start Using Swarm Control With your LLM configured and your local node connected, you can now enter **Swarm Control** or start a Chat session! You can attach specific nodes to your chat, granting the AI agent secure hands-on access to the file systems and terminals of those environments to complete workflows autonomously. diff --git a/ai-hub/test.db-shm b/ai-hub/test.db-shm index d69d10c..c5e2b70 100644 --- a/ai-hub/test.db-shm +++ b/ai-hub/test.db-shm Binary files differ diff --git a/ai-hub/test.db-wal b/ai-hub/test.db-wal index 724b98d..799be6f 100644 --- a/ai-hub/test.db-wal +++ b/ai-hub/test.db-wal Binary files differ diff --git a/scripts/local_rebuild.sh b/scripts/local_rebuild.sh index 4478aa5..0b3b5ec 100755 --- a/scripts/local_rebuild.sh +++ b/scripts/local_rebuild.sh @@ -55,4 +55,11 @@ echo "๐Ÿงน Cleaning up unused Docker resources..." sudo docker image prune -f || true +echo "๐Ÿ—๏ธ Building standalone Agent Node binaries..." +if [ -f "agent-node/scripts/build_binaries.sh" ]; then + bash agent-node/scripts/build_binaries.sh +else + echo "โš ๏ธ agent-node/scripts/build_binaries.sh not found, skipping binary build." +fi + echo "โœจ Cleanup finished." diff --git a/setup.sh b/setup.sh index 7edc476..4205cb0 100644 --- a/setup.sh +++ b/setup.sh @@ -56,6 +56,13 @@ exit 1 fi +echo "๐Ÿ—๏ธ Building standalone Agent Node binaries (this may take a few minutes)..." +if [ -f "agent-node/scripts/build_binaries.sh" ]; then + bash agent-node/scripts/build_binaries.sh +else + echo "โš ๏ธ agent-node/scripts/build_binaries.sh not found, skipping binary build." +fi + echo "" echo "==========================================" echo "โœ… Setup Complete!"