Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
Add 7 new agents, centralize theming, reorganize skills, sanitize exports
trohitga410fc570776
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.ymlnew file mode 100644index 00000000..385b33bb--- /dev/null+++ b/.github/actions/setup/action.yml@@ -0,0 +1,49 @@+# Composite action for shared environment setup across all workflows.+# Eliminates duplicated Node/Python/uv setup.+#+# Usage:+# - uses: ./.github/actions/setup+# - uses: ./.github/actions/setup+# with:+# install-go: 'true'++name: 'Setup MachinaOS Environment'+description: 'Setup Node.js, Python, and uv. Optionally Go.'++inputs:+ node-version:+ description: 'Node.js version'+ default: '20'+ python-version:+ description: 'Python version'+ default: '3.12'+ go-version:+ description: 'Go version (only used if install-go is true)'+ default: '1.21'+ install-go:+ description: 'Whether to install Go'+ default: 'false'++runs:+ using: composite+ steps:+ - name: Setup Node.js+ uses: actions/setup-node@v4+ with:+ node-version: ${{ inputs.node-version }}+ cache: 'npm'++ - name: Setup Python+ uses: actions/setup-python@v5+ with:+ python-version: ${{ inputs.python-version }}++ - name: Setup Go+ if: inputs.install-go == 'true'+ uses: actions/setup-go@v5+ with:+ go-version: ${{ inputs.go-version }}++ - name: Install uv+ shell: bash+ run: curl -LsSf https://astral.sh/uv/install.sh | sh && echo "$HOME/.cargo/bin" >> $GITHUB_PATHdiff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.ymldeleted file mode 100644index ebdc8283..00000000--- a/.github/workflows/build-binaries.yml+++ /dev/null@@ -1,102 +0,0 @@-# Build and release pre-compiled binaries for all platforms-# Triggers on version tags (v*.*.*)-# Uses native runners for CGO compilation (required for WhatsApp SQLite)--name: Build Binaries--on:- push:- tags:- - 'v*.*.*'- workflow_dispatch:--permissions:- contents: write--jobs:- build-go-binaries:- name: Build Go (${{ matrix.goos }}-${{ matrix.goarch }})- strategy:- matrix:- include:- - os: ubuntu-latest- goos: linux- goarch: amd64- suffix: ''- - os: macos-15- goos: darwin- goarch: amd64- suffix: ''- - os: macos-latest- goos: darwin- goarch: arm64- suffix: ''- - os: windows-latest- goos: windows- goarch: amd64- suffix: '.exe'- runs-on: ${{ matrix.os }}-- steps:- - name: Checkout- uses: actions/checkout@v4-- - name: Setup Go- uses: actions/setup-go@v5- with:- go-version: '1.24'- cache-dependency-path: server/whatsapp-rpc/go.sum-- - name: Setup MSYS2 (Windows)- if: matrix.os == 'windows-latest'- uses: msys2/setup-msys2@v2- with:- msystem: MINGW64- update: false- install: mingw-w64-x86_64-gcc-- - name: Build WhatsApp RPC Server- working-directory: server/whatsapp-rpc- env:- CGO_ENABLED: 1- CC: ${{ matrix.os == 'windows-latest' && 'C:/msys64/mingw64/bin/gcc.exe' || 'gcc' }}- run: go build -ldflags="-s -w" -o whatsapp-rpc-server-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.suffix }} ./src/go/cmd/server-- - name: Upload artifact- uses: actions/upload-artifact@v4- with:- name: whatsapp-rpc-server-${{ matrix.goos }}-${{ matrix.goarch }}- path: server/whatsapp-rpc/whatsapp-rpc-server-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.suffix }}- retention-days: 1-- release:- name: Create Release- needs: build-go-binaries- runs-on: ubuntu-latest- steps:- - name: Checkout- uses: actions/checkout@v4- with:- fetch-depth: 0-- - name: Download all artifacts- uses: actions/download-artifact@v4- with:- path: binaries- merge-multiple: true-- - name: Generate checksums- working-directory: binaries- run: |- sha256sum whatsapp-rpc-server-* > checksums-sha256.txt- cat checksums-sha256.txt-- - name: Create GitHub Release- uses: softprops/action-gh-release@v1- with:- generate_release_notes: true- draft: false- prerelease: ${{ contains(github.ref, '-alpha') || contains(github.ref, '-beta') || contains(github.ref, '-rc') }}- files: |- binaries/whatsapp-rpc-server-*- binaries/checksums-sha256.txtdiff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 4ed0ecb0..09a4e3a2 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -1,5 +1,5 @@-# CI workflow - runs on every push and PR to main-# Validates build and linting before merge+# CI workflow - validates on every push and PR to main+# Delegates all validation to predeploy.ymlname: CI@@ -10,32 +10,5 @@ on:branches: [main]jobs:- build:- runs-on: ubuntu-latest- steps:- - name: Checkout- uses: actions/checkout@v4-- - name: Setup Node.js- uses: actions/setup-node@v4- with:- node-version: '20'-- - name: Setup Python- uses: actions/setup-python@v5- with:- python-version: '3.12'-- - name: Setup Go- uses: actions/setup-go@v5- with:- go-version: '1.21'-- - name: Install uv- run: curl -LsSf https://astral.sh/uv/install.sh | sh && echo "$HOME/.cargo/bin" >> $GITHUB_PATH-- - name: Build all services- run: npm run build-- - name: Lint client- run: cd client && npm run lint+ predeploy:+ uses: ./.github/workflows/predeploy.ymldiff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.ymlnew file mode 100644index 00000000..109c6f20--- /dev/null+++ b/.github/workflows/deploy.yml@@ -0,0 +1,70 @@+# Reusable publish workflow called by release.yml+# Publishes to both npm (OIDC) and GitHub Packages++name: Deploy++on:+ workflow_call:++jobs:+ publish-npm:+ runs-on: ubuntu-latest+ permissions:+ contents: read+ id-token: write+ steps:+ - name: Checkout+ uses: actions/checkout@v4++ - name: Setup environment+ uses: ./.github/actions/setup++ - name: Setup Node.js (npm registry)+ uses: actions/setup-node@v4+ with:+ node-version: '20'+ registry-url: 'https://registry.npmjs.org'++ - name: Upgrade npm for OIDC support+ run: npm install -g npm@latest++ - name: Build all services+ run: npm run build++ - name: Publish to npm+ run: npm publish --access public --provenance++ publish-github-packages:+ runs-on: ubuntu-latest+ permissions:+ contents: read+ packages: write+ steps:+ - name: Checkout+ uses: actions/checkout@v4++ - name: Setup environment+ uses: ./.github/actions/setup++ - name: Setup Node.js (GitHub Packages)+ uses: actions/setup-node@v4+ with:+ node-version: '20'+ registry-url: 'https://npm.pkg.github.com'++ - name: Build all services+ run: npm run build++ - name: Configure scoped package+ run: |+ node -e "+ const pkg = require('./package.json');+ pkg.name = '@trohitg/machinaos';+ pkg.publishConfig = { registry: 'https://npm.pkg.github.com' };+ require('fs').writeFileSync('package.json', JSON.stringify(pkg, null, 2));+ "++ - name: Publish to GitHub Packages+ run: npm publish+ env:+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.ymlnew file mode 100644index 00000000..4d0f5786--- /dev/null+++ b/.github/workflows/docker-build.yml@@ -0,0 +1,17 @@+# Docker build validation - scoped to Dockerfile and compose changes+# Delegates to predeploy.yml to avoid duplicating docker build logic++name: Docker Build++on:+ pull_request:+ branches: [main]+ paths:+ - 'client/Dockerfile'+ - 'server/Dockerfile'+ - 'docker/Dockerfile.whatsapp'+ - 'docker-compose*.yml'++jobs:+ predeploy:+ uses: ./.github/workflows/predeploy.ymldiff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.ymldeleted file mode 100644index d2dccce9..00000000--- a/.github/workflows/npm-publish-github-packages.yml+++ /dev/null@@ -1,56 +0,0 @@-# Publish to GitHub Packages when a version tag is pushed-# Uses GITHUB_TOKEN for authentication (no secrets needed)--name: Publish to GitHub Packages--on:- push:- tags:- - 'v*.*.*'--jobs:- publish:- runs-on: ubuntu-latest- permissions:- contents: read- packages: write- steps:- - name: Checkout- uses: actions/checkout@v4-- - name: Setup Node.js- uses: actions/setup-node@v4- with:- node-version: '20'- registry-url: 'https://npm.pkg.github.com'-- - name: Setup Python- uses: actions/setup-python@v5- with:- python-version: '3.12'-- - name: Setup Go- uses: actions/setup-go@v5- with:- go-version: '1.21'-- - name: Install uv- run: curl -LsSf https://astral.sh/uv/install.sh | sh && echo "$HOME/.cargo/bin" >> $GITHUB_PATH-- - name: Build all services- run: npm run build-- - name: Configure package for GitHub Packages- run: |- # GitHub Packages requires scoped package name- node -e "- const pkg = require('./package.json');- pkg.name = '@trohitg/machinaos';- pkg.publishConfig = { registry: 'https://npm.pkg.github.com' };- require('fs').writeFileSync('package.json', JSON.stringify(pkg, null, 2));- "-- - name: Publish to GitHub Packages- run: npm publish- env:- NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.ymldeleted file mode 100644index ad2ba5eb..00000000--- a/.github/workflows/npm-publish.yml+++ /dev/null@@ -1,55 +0,0 @@-# Publish to npm registry using OIDC Trusted Publishing-# No npm token required - uses GitHub OIDC authentication-#-# Setup: Go to npmjs.com → Package Settings → Trusted Publishers-# Add: Owner: trohitg, Repo: MachinaOS, Workflow: npm-publish.yml-#-# Reference: https://docs.npmjs.com/trusted-publishers/--name: Publish to npm--on:- push:- tags:- - 'v*.*.*'- release:- types: [published]- workflow_dispatch:--jobs:- publish:- runs-on: ubuntu-latest- permissions:- contents: read- id-token: write- steps:- - name: Checkout- uses: actions/checkout@v4-- - name: Setup Node.js- uses: actions/setup-node@v4- with:- node-version: '20'- registry-url: 'https://registry.npmjs.org'-- - name: Setup Python- uses: actions/setup-python@v5- with:- python-version: '3.12'-- - name: Setup Go- uses: actions/setup-go@v5- with:- go-version: '1.21'-- - name: Install uv- run: curl -LsSf https://astral.sh/uv/install.sh | sh && echo "$HOME/.cargo/bin" >> $GITHUB_PATH-- - name: Upgrade npm for OIDC support- run: npm install -g npm@latest-- - name: Build all services- run: npm run build-- - name: Publish to npm- run: npm publish --access public --provenancediff --git a/.github/workflows/predeploy.yml b/.github/workflows/predeploy.ymlnew file mode 100644index 00000000..d980aed7--- /dev/null+++ b/.github/workflows/predeploy.yml@@ -0,0 +1,182 @@+# Reusable validation workflow called by ci.yml, release.yml, and docker-build.yml+# Jobs: build-and-lint, docker-build, docker-compose-test, test-install (cross-platform)++name: Predeploy++on:+ workflow_call:++jobs:+ build-and-lint:+ runs-on: ubuntu-latest+ steps:+ - name: Checkout+ uses: actions/checkout@v4++ - name: Setup environment+ uses: ./.github/actions/setup++ - name: Build all services+ run: npm run build++ - name: Lint client+ run: cd client && npm run lint++ docker-build:+ runs-on: ubuntu-latest+ steps:+ - name: Checkout+ uses: actions/checkout@v4++ - name: Set up Docker Buildx+ uses: docker/setup-buildx-action@v3++ - name: Build Frontend Image+ uses: docker/build-push-action@v6+ with:+ context: ./client+ file: ./client/Dockerfile+ target: production+ push: false+ cache-from: type=gha+ cache-to: type=gha,mode=max++ - name: Build Backend Image+ uses: docker/build-push-action@v6+ with:+ context: ./server+ file: ./server/Dockerfile+ push: false+ cache-from: type=gha+ cache-to: type=gha,mode=max++ - name: Build WhatsApp Image+ uses: docker/build-push-action@v6+ with:+ context: ./docker+ file: ./docker/Dockerfile.whatsapp+ push: false+ cache-from: type=gha+ cache-to: type=gha,mode=max++ docker-compose-test:+ needs: docker-build+ runs-on: ubuntu-latest+ steps:+ - name: Checkout+ uses: actions/checkout@v4++ - name: Create .env from template+ run: cp .env.template .env++ - name: Build with Docker Compose+ run: docker compose -f docker-compose.prod.yml build++ - name: Start services+ run: docker compose -f docker-compose.prod.yml up -d++ - name: Wait for healthy services+ run: |+ for i in $(seq 1 30); do+ if curl -sf http://localhost:3010/health > /dev/null 2>&1; then+ echo "Backend healthy after $((i*2))s"+ break+ fi+ if [ $i -eq 30 ]; then+ echo "Timeout waiting for backend"+ exit 1+ fi+ sleep 2+ done+ curl -f http://localhost:3000 || exit 1+ docker compose -f docker-compose.prod.yml ps++ - name: Show logs on failure+ if: failure()+ run: docker compose -f docker-compose.prod.yml logs++ - name: Stop services+ if: always()+ run: docker compose -f docker-compose.prod.yml down -v++ test-install:+ runs-on: ${{ matrix.os }}+ strategy:+ fail-fast: false+ matrix:+ os: [ubuntu-latest, macos-latest, windows-latest]+ node-version: [18, 20, 22]+ steps:+ - name: Checkout+ uses: actions/checkout@v4++ - name: Setup Node.js ${{ matrix.node-version }}+ uses: actions/setup-node@v4+ with:+ node-version: ${{ matrix.node-version }}++ # Python and uv are NOT pre-installed - install.js handles them+ # This tests the real user experience of `npm install -g machinaos`++ - name: Pack npm package+ run: npm pack++ - name: Test global install+ shell: bash+ run: |+ npm install -g machinaos-*.tgz++ # Verify CLI is available+ machinaos --help++ # Check installed files exist+ INSTALL_PATH=$(npm root -g)/machinaos+ echo "Installed to: $INSTALL_PATH"+ ls -la "$INSTALL_PATH"++ # Verify key files+ test -f "$INSTALL_PATH/.env" && echo ".env created"+ test -d "$INSTALL_PATH/client" && echo "client/ exists"+ test -d "$INSTALL_PATH/server" && echo "server/ exists"++ - name: Verify Python environment+ shell: bash+ run: |+ INSTALL_PATH=$(npm root -g)/machinaos+ cd "$INSTALL_PATH/server"++ if [ -d ".venv" ]; then+ echo "Python venv created successfully"+ ls -la .venv/bin 2>/dev/null || ls -la .venv/Scripts 2>/dev/null+ else+ echo "Warning: .venv not found"+ fi++ - name: Verify client build+ shell: bash+ run: |+ INSTALL_PATH=$(npm root -g)/machinaos++ if [ -d "$INSTALL_PATH/client/dist" ]; then+ echo "Client built successfully"+ ls -la "$INSTALL_PATH/client/dist"+ else+ echo "Warning: client/dist not found"+ fi++ - name: Test machinaos start+ shell: bash+ timeout-minutes: 2+ run: |+ machinaos start &+ PID=$!++ sleep 10++ if kill -0 $PID 2>/dev/null; then+ echo "machinaos start: OK - process running"+ kill $PID 2>/dev/null || true+ else+ echo "machinaos start: FAILED - process exited"+ exit 1+ fidiff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlnew file mode 100644index 00000000..b410fdc0--- /dev/null+++ b/.github/workflows/release.yml@@ -0,0 +1,23 @@+# Release workflow - chained: predeploy validation gate -> deploy publish+# Triggers on version tags and GitHub releases++name: Release++on:+ push:+ tags: ['v*.*.*']+ release:+ types: [published]+ workflow_dispatch:++jobs:+ predeploy:+ uses: ./.github/workflows/predeploy.yml++ deploy:+ needs: predeploy+ uses: ./.github/workflows/deploy.yml+ permissions:+ contents: read+ id-token: write+ packages: writediff --git a/.github/workflows/test-install.yml b/.github/workflows/test-install.ymldeleted file mode 100644index 099cda18..00000000--- a/.github/workflows/test-install.yml+++ /dev/null@@ -1,105 +0,0 @@-name: Test npm Install--on:- push:- branches: [main]- paths:- - 'scripts/**'- - 'package.json'- - '.github/workflows/test-install.yml'- pull_request:- branches: [main]- workflow_dispatch:--jobs:- test-install:- runs-on: ${{ matrix.os }}- strategy:- fail-fast: false- matrix:- os: [ubuntu-latest, macos-latest, windows-latest]- node-version: [18, 20, 22]-- steps:- - name: Checkout- uses: actions/checkout@v4-- - name: Setup Node.js ${{ matrix.node-version }}- uses: actions/setup-node@v4- with:- node-version: ${{ matrix.node-version }}-- # Python and uv are NOT pre-installed - install.js handles them- # This tests the real user experience of `npm install -g machinaos`-- - name: Pack npm package- run: npm pack-- - name: Test global install- shell: bash- run: |- # Install the packed tarball globally- # This tests the full installation flow including Python/uv detection and installation- npm install -g machinaos-*.tgz-- # Verify CLI is available- machinaos --help-- # Check installed files exist- INSTALL_PATH=$(npm root -g)/machinaos- echo "Installed to: $INSTALL_PATH"- ls -la "$INSTALL_PATH"-- # Verify key files- test -f "$INSTALL_PATH/.env" && echo ".env created"- test -d "$INSTALL_PATH/client" && echo "client/ exists"- test -d "$INSTALL_PATH/server" && echo "server/ exists"- test -f "$INSTALL_PATH/server/whatsapp-rpc/bin/whatsapp-rpc-server"* && echo "WhatsApp binary exists"-- - name: Verify Python environment- shell: bash- run: |- INSTALL_PATH=$(npm root -g)/machinaos- cd "$INSTALL_PATH/server"-- # Check venv was created- if [ -d ".venv" ]; then- echo "Python venv created successfully"- ls -la .venv/bin 2>/dev/null || ls -la .venv/Scripts 2>/dev/null- else- echo "Warning: .venv not found"- fi-- - name: Verify client build- shell: bash- run: |- INSTALL_PATH=$(npm root -g)/machinaos-- # Check client dist was built- if [ -d "$INSTALL_PATH/client/dist" ]; then- echo "Client built successfully"- ls -la "$INSTALL_PATH/client/dist"- else- echo "Warning: client/dist not found"- fi-- - name: Test machinaos start- shell: bash- timeout-minutes: 2- run: |- # Start machinaos in background and verify it starts successfully- machinaos start &- PID=$!-- # Wait a few seconds for startup- sleep 10-- # Check if process is still running (it should be)- if kill -0 $PID 2>/dev/null; then- echo "machinaos start: OK - process running"- # Clean shutdown- kill $PID 2>/dev/null || true- else- echo "machinaos start: FAILED - process exited"- exit 1- fidiff --git a/CLAUDE.md b/CLAUDE.mdindex 34fdb4b2..932faade 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -11,7 +11,7 @@ This is a React Flow-based workflow automation platform implementing n8n-inspire|----------|-------------|| **[Node Creation Guide](./docs-internal/node_creation.md)** | Complete guide for creating new nodes (frontend definitions, backend handlers, config nodes, triggers) || **[AI Tool Node Guide](./docs-internal/ai_tool_node_creation.md)** | Detailed guide for creating dedicated AI Agent tool nodes (schemas, handlers, toolkits) |-| **[Specialized Agent Guide](./docs-internal/specialized_agent_node_creation.md)** | Guide for creating specialized AI agents (Android, Coding, Web, Social, Task) with full AI configuration |+| **[Specialized Agent Guide](./docs-internal/specialized_agent_node_creation.md)** | Guide for creating specialized AI agents (Android, Coding, Web, Task, Social, Travel, Tool, Productivity, Payments, Consumer) with full AI configuration || **[Dual-Purpose Tool Guide](./docs-internal/dual_purpose_tool_node_creation.md)** | Guide for nodes that work as both workflow nodes AND AI Agent tools (e.g., whatsappSend) || **[Workflow Schema](./docs-internal/workflow-schema.md)** | JSON schema for workflows, edge handle conventions, config node architecture || **[Execution Engine Design](./docs-internal/DESIGN.md)** | Architecture patterns, design standards, and implementation details for the workflow execution engine |@@ -19,6 +19,7 @@ This is a React Flow-based workflow automation platform implementing n8n-inspire| **[Setup Guide](./docs-internal/SETUP.md)** | Development environment setup and installation instructions || **[Scripts Reference](./docs-internal/SCRIPTS.md)** | Available npm/shell scripts and their usage || **[Server Documentation](./docs-internal/server-readme.md)** | Python backend architecture and API documentation |+| **[Skill Creation Guide](./server/skills/GUIDE.md)** | How to create new skills (folder structure, SKILL.md format, metadata, supporting files) || **[Polyglot Server](../polyglot-server/ARCHITECTURE.md)** | Plugin registry microservice with MCP gateway (optional integration) |## Design Principles & Standards@@ -284,8 +285,8 @@ class CacheEntry(SQLModel, table=True):## Codebase Summary- **Hybrid architecture**: Node.js + Python + React TypeScript-- **63 implemented workflow nodes** with clean service separation (6 AI models + 3 AI agents/memory + 5 specialized agents + 10 skills + 4 dedicated tools + 2 dual-purpose tools + 16 Android + 4 WhatsApp + 3 Location + 1 Code + 3 Utility + 6 Document)-- **WebSocket-First Architecture**: WebSocket as primary frontend-backend communication (25 message types)+- **68 implemented workflow nodes** with clean service separation (6 AI models + 3 AI agents/memory + 10 specialized agents + 10 skills + 4 dedicated tools + 2 dual-purpose tools + 16 Android + 4 WhatsApp + 3 Location + 1 Code + 3 Utility + 6 Document)+- **WebSocket-First Architecture**: WebSocket as primary frontend-backend communication (32 message types)- **Recent optimizations**: REST APIs replaced with WebSocket, AI endpoints migrated to Python, Android automation integrated## Architecture Refactoring@@ -309,7 +310,7 @@ The project was completely refactored from schema-based node definitions to expl- `src/nodeDefinitions/aiModelNodes.ts` - AI chat model definitions using factory pattern- `src/nodeDefinitions/aiAgentNodes.ts` - AI agent and processing components- `src/nodeDefinitions/skillNodes.ts` - Skill node definitions (10 nodes including masterSkill)-- `src/nodeDefinitions/specializedAgentNodes.ts` - Specialized AI agent definitions (5 nodes) with shared AI_AGENT_PROPERTIES+- `src/nodeDefinitions/specializedAgentNodes.ts` - Specialized AI agent definitions (10 nodes) with shared AI_AGENT_PROPERTIES and centralized dracula theming- `src/nodeDefinitions/androidServiceNodes.ts` - 16 Android service nodes (monitoring, apps, automation, sensors, media)- `src/nodeDefinitions/androidDeviceNodes.ts` - Android device setup and ADB port forwarding- `src/nodeDefinitions/locationNodes.ts` - Google Maps and location services@@ -427,7 +428,7 @@ React Flow edges use dynamic Dracula colors via `getEdgeStyles(theme.dracula)`:### WebSocket-First ArchitectureThe project uses WebSocket as the primary communication method between frontend and backend, replacing most REST API calls:- `src/contexts/WebSocketContext.tsx` - Central WebSocket context with request/response pattern-- `server/routers/websocket.py` - WebSocket endpoint with 25 message handlers+- `server/routers/websocket.py` - WebSocket endpoint with 32 message handlers- `server/services/status_broadcaster.py` - Connection management and broadcasting## Implemented Node Types@@ -461,15 +462,23 @@ Skill nodes connect to Zeenie's `input-skill` handle to provide capabilities def- **customSkill**: User-created custom skill with configurable capabilities (select from database)#### Skill Node Architecture-Skills are modular capabilities defined in Markdown files:+Skills are organized in subfolders under `server/skills/`. Each top-level folder appears as an option in the Master Skill node's folder dropdown. See **[Skill Creation Guide](./server/skills/GUIDE.md)** for full documentation.+```server/skills/-├── claude-assistant/SKILL.md # Default assistant behavior-├── whatsapp-skill/SKILL.md # WhatsApp messaging-├── memory-skill/SKILL.md # Memory management-├── maps-skill/SKILL.md # Location services-├── http-skill/SKILL.md # HTTP requests-└── scheduler-skill/SKILL.md # Task scheduling+├── GUIDE.md # Skill creation guide+├── assistant/ # General-purpose assistant skills+│ ├── assistant-personality/SKILL.md+│ ├── code-skill/SKILL.md+│ ├── http-skill/SKILL.md+│ ├── maps-skill/SKILL.md+│ ├── memory-skill/SKILL.md+│ ├── scheduler-skill/SKILL.md+│ ├── web-search-skill/SKILL.md+│ └── whatsapp-skill/SKILL.md+└── android/ # Android device control skills+ ├── personality/SKILL.md+ └── skill/SKILL.md```**SKILL.md Format:**@@ -481,16 +490,25 @@ allowed-tools: tool1 tool2metadata:author: machinaversion: "1.0"+ category: general+ icon: "🔧"+ color: "#6366F1"---# Skill Instructions (Markdown)Detailed instructions loaded when skill is activated.```+**Skill Content Lifecycle:**+1. First load reads from SKILL.md on disk, seeds to database+2. Database is source of truth after first activation+3. Users edit instructions in UI, edits saved to DB only+4. "Reset to Default" reloads from original SKILL.md file+#### Skill Content Editor-Skill nodes display a code editor (markdown syntax highlighting) to view and edit SKILL.md content:+Skill nodes display an Ant Design `Input.TextArea` (markdown content) to view and edit instructions:- Instructions loaded automatically when skill node is selected-- Save button writes changes back to SKILL.md file+- Save button writes changes back to database- Uses `get_skill_content` / `save_skill_content` WebSocket handlers- **No Input/Output panels**: Skill nodes only show the middle section (parameters + editor) in the parameter panel@@ -500,7 +518,7 @@ Skill nodes display a code editor (markdown syntax highlighting) to view and edi| `client/src/nodeDefinitions/skillNodes.ts` | Skill node definitions with factory pattern || `client/src/hooks/useParameterPanel.ts` | Loads/saves skill content for skill nodes || `server/services/skill_loader.py` | SkillLoader for filesystem and database skills |-| `server/routers/websocket.py` | `get_skill_content`, `save_skill_content` handlers |+| `server/routers/websocket.py` | `get_skill_content`, `save_skill_content`, `list_skill_folders`, `scan_skill_folder` handlers |#### Master Skill EditorThe Master Skill node uses a custom split-panel editor (`MasterSkillEditor.tsx`) instead of standard parameters:@@ -508,7 +526,7 @@ The Master Skill node uses a custom split-panel editor (`MasterSkillEditor.tsx`)**UI Layout:**```+----------------------------------------------------------+-| Master Skill Editor |+| [Folder Dropdown: assistant v] |+----------------------------------------------------------+| +--------------------+ +--------------------------------+ || | SKILLS LIST | | SKILL INSTRUCTIONS | |@@ -524,6 +542,23 @@ The Master Skill node uses a custom split-panel editor (`MasterSkillEditor.tsx`)+----------------------------------------------------------+```+**Folder Dropdown:**+- Ant Design `Select` listing available skill folders from backend via `list_skill_folders` WebSocket handler+- Shows loading/disabled state while folders are being fetched+- Uses `getPopupContainer` to ensure dropdown renders correctly regardless of parent overflow+- Default folder: `assistant`++**Icon Resolution Priority:**+Skill icons are resolved in this order (node definition first for SVG support):+1. `skillNodes.ts` node definition icon (supports SVG data URIs, e.g., WhatsApp logo)+2. SKILL.md metadata `icon` field (emoji strings)+3. Default fallback++Implemented via `getNodeDefaults()` helper that looks up icon/color from `skillNodes.ts` by matching `skillName` property.++**Keyboard Handling:**+The editor uses a native DOM `addEventListener('keydown')` on a wrapper div (via `useRef`) to `stopPropagation()` for Ctrl/Meta key events. This prevents React Flow's document-level `useKeyPress` hook from intercepting Ctrl+A (select all) and other Ctrl shortcuts inside the textarea. React synthetic `stopPropagation()` is insufficient because React Flow uses native `document.addEventListener`.+**Data Structure:**```typescript// skillsConfig parameter stored in node parameters@@ -557,9 +592,10 @@ if skill_type == 'masterSkill':**Key Files:**| File | Description ||------|-------------|-| `client/src/components/parameterPanel/MasterSkillEditor.tsx` | Split-panel skill aggregator UI |+| `client/src/components/parameterPanel/MasterSkillEditor.tsx` | Split-panel skill aggregator UI with folder dropdown || `client/src/nodeDefinitions/skillNodes.ts` | masterSkill node definition || `server/services/handlers/ai.py` | Expands masterSkill into individual skills |+| `server/skills/GUIDE.md` | Skill creation guide |### AI Agent Tool Nodes (3 dedicated + 6 dual-purpose)Tool nodes connect to AI Agent's `input-tools` handle to provide capabilities the agent can invoke during reasoning.@@ -569,8 +605,8 @@ Tool nodes connect to AI Agent's `input-tools` handle to provide capabilities th- **currentTimeTool**: Get current date/time with timezone support- **webSearchTool**: Web search via DuckDuckGo (free, uses `ddgs` library) or Serper API with configurable max results-### Specialized AI Agents (5 nodes)-Specialized agents are AI Agents pre-configured for specific domains. They inherit full AI Agent functionality (provider, model, prompt, system message, thinking/reasoning) while being tailored for specific capabilities. All specialized agents route to `handle_chat_agent` in the backend and support the same input handles.+### Specialized AI Agents (10 nodes)+Specialized agents are AI Agents pre-configured for specific domains. They inherit full AI Agent functionality (provider, model, prompt, system message, thinking/reasoning) while being tailored for specific capabilities. All specialized agents route to `handle_chat_agent` in the backend and support the same input handles. Node colors use centralized dracula theme constants imported from `client/src/styles/theme.ts`.**Input Handles:**- `input-main` - Main data input (auto-prompting fallback)@@ -584,12 +620,20 @@ Specialized agents are AI Agents pre-configured for specific domains. They inher- **web_agent**: Web Control Agent - AI agent for web automation. Connect web/browser nodes (scraper, HTTP, browser) as tools.- **task_agent**: Task Management Agent - AI agent for task automation. Connect scheduling nodes (scheduler, reminders) as tools.- **social_agent**: Social Media Agent - AI agent for social messaging. Connect messaging nodes (WhatsApp, Telegram) as tools.+- **travel_agent**: Travel Agent - AI agent for travel planning. Connect location, maps, and scheduling nodes as tools.+- **tool_agent**: Tool Agent - AI agent for tool orchestration. Connect any combination of tool nodes for flexible automation.+- **productivity_agent**: Productivity Agent - AI agent for productivity workflows. Connect scheduling, task, and utility nodes as tools.+- **payments_agent**: Payments Agent - AI agent for payment processing. Connect payment, invoice, and financial tool nodes.+- **consumer_agent**: Consumer Agent - AI agent for consumer interactions. Connect customer support, product, and order management tools.**Backend Routing:**Specialized agents are detected by `SPECIALIZED_AGENT_TYPES` and routed to `handle_chat_agent`:```python-# In node_executor.py-SPECIALIZED_AGENT_TYPES = {'android_agent', 'coding_agent', 'web_agent', 'task_agent', 'social_agent'}+# In node_executor.py - all specialized agents route to handle_chat_agent+SPECIALIZED_AGENT_TYPES = {+ 'android_agent', 'coding_agent', 'web_agent', 'task_agent', 'social_agent',+ 'travel_agent', 'tool_agent', 'productivity_agent', 'payments_agent', 'consumer_agent'+}```**Direct Android Service Tools:**@@ -903,7 +947,7 @@ See **[Scripts Reference](./docs-internal/SCRIPTS.md)** for full documentation.## Current Status✅ **INodeProperties System**: Fully implemented with 41 functional components-✅ **WebSocket-First Architecture**: 25 message handlers replacing REST APIs+✅ **WebSocket-First Architecture**: 32 message handlers replacing REST APIs✅ **Code Editor**: Python executor with syntax-highlighted editor (react-simple-code-editor + prismjs) and console output✅ **Component Palette**: Emoji icons with distinct dracula-themed category colors, localStorage persistence for collapsed sections✅ **Android Integration**: 16 Android service nodes with ADB automation and remote WebSocket support@@ -1384,7 +1428,8 @@ const sampleSchemas = {// Node types that use the AI output schemaconst aiAgentTypes = ['aiAgent', 'chatAgent',- 'android_agent', 'coding_agent', 'web_agent', 'task_agent', 'social_agent' // Specialized agents+ 'android_agent', 'coding_agent', 'web_agent', 'task_agent', 'social_agent',+ 'travel_agent', 'tool_agent', 'productivity_agent', 'payments_agent', 'consumer_agent'];const isAI = nodeTypeLower.includes('chatmodel') || aiAgentTypes.includes(nodeType);```@@ -1406,24 +1451,27 @@ The `AIAgentNode.tsx` component uses a configuration-driven pattern to support m#### AGENT_CONFIGS Object```typescript+type ThemeColorKey = 'purple' | 'cyan' | 'green' | 'pink' | 'orange' | 'yellow' | 'red';+interface AgentConfig {- icon: React.ReactNode; // Lucide-style SVG icons+ icon: React.ReactNode;title: string;subtitle: string;- accentColor: string;+ themeColorKey: ThemeColorKey; // References dracula theme constantbottomHandles: Array<{ id: string; label: string; position: string }>;+ leftHandles?: Array<{ id: string; label: string; position: string }>;+ topOutputHandle?: { id: string; label: string };+ width?: number;+ height?: number;}-// Lucide-style SVG icons defined as React components-const RobotIcon = ({ size, color }) => <svg>...</svg>; // Robot with antenna-const ZeenieIcon = ({ size, color }) => <svg>...</svg>; // MessageSquare bubble-+// Color resolved at runtime: dracula[config.themeColorKey]const AGENT_CONFIGS: Record<string, AgentConfig> = {aiAgent: {icon: <RobotIcon />,title: 'AI Agent',subtitle: 'LangGraph Agent',- accentColor: '#9333EA', // Purple+ themeColorKey: 'purple',bottomHandles: [{ id: 'input-memory', label: 'Memory', position: '35%' },{ id: 'input-tools', label: 'Tool', position: '65%' },@@ -1433,12 +1481,15 @@ const AGENT_CONFIGS: Record<string, AgentConfig> = {icon: <ZeenieIcon />,title: 'Zeenie',subtitle: 'Conversational Agent',- accentColor: '#3B82F6', // Blue+ themeColorKey: 'cyan',bottomHandles: [{ id: 'input-memory', label: 'Memory', position: '35%' },{ id: 'input-skill', label: 'Skill', position: '65%' },],},+ // ... 10 specialized agents (android_agent, coding_agent, web_agent, task_agent,+ // social_agent, travel_agent, tool_agent, productivity_agent, payments_agent, consumer_agent)+ // each with themeColorKey, standard Skill/Tool bottom handles, Memory left handle};```@@ -1577,15 +1628,20 @@ Child broadcasts its own status updates (executing, success, error)The system supports specialized agent variants that inherit from the base AI Agent architecture:-| Agent Type | Node Type | Purpose | Theme Color |-|------------|-----------|---------|-------------|-| AI Agent | `aiAgent` | General-purpose LangGraph agent | Purple |-| Zeenie | `chatAgent` | Personal assistant with skills | Cyan |-| Android Control | `android_agent` | Device automation | Green |-| Coding Agent | `coding_agent` | Code execution | Cyan |-| Web Control | `web_agent` | Browser automation | Pink |-| Task Management | `task_agent` | Task automation | Purple |-| Social Media | `social_agent` | Social messaging | Green |+| Agent Type | Node Type | Icon | Theme Color (dracula) |+|------------|-----------|------|-----------------------|+| AI Agent | `aiAgent` | Robot SVG | purple |+| Zeenie | `chatAgent` | Chat SVG | cyan |+| Android Control | `android_agent` | robot | green |+| Coding Agent | `coding_agent` | laptop | cyan |+| Web Control | `web_agent` | globe | pink |+| Task Management | `task_agent` | clipboard | purple |+| Social Media | `social_agent` | phone | green |+| Travel Agent | `travel_agent` | plane | orange |+| Tool Agent | `tool_agent` | wrench | yellow |+| Productivity | `productivity_agent` | clock | cyan |+| Payments | `payments_agent` | credit card | green |+| Consumer | `consumer_agent` | cart | purple |All specialized agents share the same handle configuration:- **Left**: `input-main` (Input), `input-memory` (Memory)@@ -1679,11 +1735,14 @@ The project deploys using Docker Compose with nginx reverse proxy.- Depends on: redis, whatsapp- Size: ~528 MB-**WhatsApp (`whatsapp/Dockerfile`):**-- Multi-stage Go build with CGO for SQLite-- whatsmeow library for WhatsApp Web protocol-- Health check endpoint on port 5000-- Size: ~25 MB+**WhatsApp (`docker/Dockerfile.whatsapp`):**+- Uses npm package `whatsapp-rpc` with pre-built binaries+- Node.js 20-alpine base with `npx whatsapp-rpc api --foreground`+- Binary downloaded from GitHub releases during npm postinstall+- Exposed on port 9400 (configurable via `PORT`, `WHATSAPP_RPC_PORT` env vars, or `--port` CLI flag)+- QR codes generated as base64 PNG in memory (no file I/O)+- Also published to PyPI as `whatsapp-rpc` (async Python client)+- Size: ~150 MB (includes Node.js runtime)**Redis:**- Official redis:7-alpine image@@ -1717,7 +1776,9 @@ services:ports: ["${VITE_CLIENT_PORT:-3000}:${VITE_CLIENT_PORT:-3000}"]whatsapp:- build: ./server/whatsapp-rpc+ build:+ context: .+ dockerfile: docker/Dockerfile.whatsappports: ["${WHATSAPP_RPC_PORT:-9400}:${WHATSAPP_RPC_PORT:-9400}"]```@@ -1749,10 +1810,12 @@ services:test: ["CMD", "redis-cli", "ping"]whatsapp:- build: ./whatsapp- ports: ["5000:5000"]+ build:+ context: .+ dockerfile: docker/Dockerfile.whatsapp+ ports: ["9400:9400"]healthcheck:- test: ["CMD", "wget", "-q", "--spider", "http://localhost:5000/health"]+ test: ["CMD", "wget", "-q", "--spider", "http://localhost:9400/health"]backend:build: ./server@@ -1869,7 +1932,7 @@ docker-compose -f docker-compose.prod.yml up --build# Access locally# Frontend: http://localhost:3000# Backend API: http://localhost:3010-# WhatsApp: http://localhost:5000+# WhatsApp RPC: http://localhost:9400# Redis: localhost:6379# Stop all containers@@ -2387,7 +2450,8 @@ Tool Node (calculatorTool) → (tool output) → AI Agent (input-tools handle)### Key Files| File | Description ||------|-------------|-| `client/src/nodeDefinitions/toolNodes.ts` | Tool and specialized agent node definitions + AI_AGENT_PROPERTIES |+| `client/src/nodeDefinitions/toolNodes.ts` | Tool node definitions (calculatorTool, currentTimeTool, webSearchTool, androidTool) |+| `client/src/nodeDefinitions/specializedAgentNodes.ts` | Specialized agent definitions (10 nodes) + AI_AGENT_PROPERTIES + SPECIALIZED_AGENT_TYPES || `server/services/handlers/tools.py` | Tool execution handlers || `server/services/ai.py` | `_get_tool_schema()` - Pydantic schemas for tools || `server/services/handlers/ai.py` | Tool discovery from edges |@@ -2438,10 +2502,20 @@ android_agent: {4. **TOOL_NODE_TYPES**: Add to array in `toolNodes.ts`### Adding New Specialized Agents-1. **Frontend Definition**: Add node definition in `specializedAgentNodes.ts` with `group: ['agent', 'ai']` and `properties: AI_AGENT_PROPERTIES`-2. **AIAgentNode Config**: Add config to `AGENT_CONFIGS` in `AIAgentNode.tsx` with icon, title, subtitle, accentColor, bottomHandles-3. **Dashboard Mapping**: `SPECIALIZED_AGENT_TYPES` array automatically maps to `AIAgentNode` component-4. **SPECIALIZED_AGENT_TYPES**: Add to array in `toolNodes.ts`+**Frontend (5 files):**+1. **Node Definition**: Add to `specializedAgentNodes.ts` with `group: ['agent', 'ai']`, `properties: AI_AGENT_PROPERTIES`, and `defaults.color: dracula.<color>`+2. **SPECIALIZED_AGENT_TYPES**: Add to array in `specializedAgentNodes.ts`+3. **AIAgentNode Config**: Add to `AGENT_CONFIGS` in `AIAgentNode.tsx` with icon, title, subtitle, `themeColorKey`, standard handles (Skill 25%, Tool 75%, Memory 70%), 260x160px+4. **MiddleSection.tsx**: Add to `AGENT_WITH_SKILLS_TYPES` array+5. **InputSection.tsx**: Add to both `AGENT_WITH_SKILLS_TYPES` and `aiAgentTypes` arrays++**Backend (4 files):**+6. **constants.py**: Add to `AI_AGENT_TYPES` frozenset+7. **node_executor.py**: Add handler registry entry mapping to `partial(handle_chat_agent, ...)`+8. **handlers/tools.py**: Add to delegation check tuple in `execute_tool()`+9. **ai.py**: Add entries to `DEFAULT_TOOL_NAMES`, `DEFAULT_TOOL_DESCRIPTIONS`, and `DelegateToAgentSchema` condition++**No changes needed:** `Dashboard.tsx` auto-maps via `SPECIALIZED_AGENT_TYPES.forEach()`### Tool Execution AnimationTool nodes display execution status via the standard node status system:@@ -2840,11 +2914,11 @@ export interface AndroidStatus {## WhatsApp Integration### Overview-WhatsApp nodes use square design with integrated QR code viewing and proper error handling. The integration proxies all requests through the Python backend to the WhatsApp Flask service on port 5000.+WhatsApp nodes use square design with integrated QR code viewing and proper error handling. The integration proxies all requests through the Python backend to the WhatsApp RPC service (default port 9400, configurable via `WHATSAPP_RPC_PORT` env var or `--port` CLI flag).### Architecture```-Frontend (WhatsAppNode.tsx) → Python Backend (/api/whatsapp/*) → WhatsApp Flask Service (localhost:5000)+Frontend (WhatsAppNode.tsx) → Python Backend (/api/whatsapp/*) → WhatsApp RPC Service (localhost:${WHATSAPP_RPC_PORT:-9400})```### Key Features@@ -3348,7 +3422,7 @@ def has_real_android_devices(self) -> bool:Updated `client_left` and presence handlers use `has_real_android_devices()` instead of checking total device count.-### WebSocket Message Types (28 Handlers)+### WebSocket Message Types (32 Handlers)#### Request/Response Messages (Client -> Server -> Client)| Message Type | Description |@@ -3378,6 +3452,10 @@ Updated `client_left` and presence handlers use `has_real_android_devices()` ins| `send_chat_message` | Send chat message, optionally to specific node || `get_chat_messages` | Get chat history for session || `clear_chat_messages` | Clear chat history for session |+| `get_skill_content` | Get skill instructions from database or SKILL.md file |+| `save_skill_content` | Save skill instructions to database |+| `list_skill_folders` | List available skill folders under server/skills/ |+| `scan_skill_folder` | Scan a folder for skills, returns name/description/metadata || `ping` | Keep-alive request |#### Broadcast Messages (Server -> All Clients)@@ -3535,7 +3613,7 @@ This function:- **Performance**: Fast HMR updates and clean TypeScript compilation- **AI Architecture**: 5-layer system with factory pattern and secure credential management- **Android Architecture**: Factory-based node creation with ADB integration for device automation-- **WebSocket-First Architecture**: 25 message handlers replace REST APIs for parameters, execution, API keys, Android, and WhatsApp operations+- **WebSocket-First Architecture**: 32 message handlers replace REST APIs for parameters, execution, API keys, Android, WhatsApp, and skill operations- **WebSocket Hooks**: Dedicated React hooks (useWhatsApp, useExecution, useApiKeys, useAndroidOperations, useParameterPanel) for clean component integration- **WebSocket Support**: Persistent remote Android device connections via WebSocket proxy with background tasks- Connection stays alive across multiple API requests until switched to local ADB@@ -3560,11 +3638,12 @@ This function:- **WhatsApp Integration**: Square node design with QR code viewer, proper error handling, no crashes- Critical fix: Added "routers.whatsapp" to dependency injection wiring- All endpoints use safe JSON parsing with comprehensive error handling- - Backend proxies all requests to WhatsApp Flask service (port 5000)+ - Backend proxies all requests to WhatsApp RPC service (default port 9400, configurable)- Returns proper HTTP status codes (503, 504, 410) instead of mock data- Python server never crashes when WhatsApp service is unavailable- WebSocket handlers for status, QR code, send message, and start connection- useWhatsApp hook provides clean React component integration+ - Uses external npm package `whatsapp-rpc` with pre-built Go binaries- **Event-Driven Triggers**: Generic trigger node architecture with asyncio.Future- `server/services/event_waiter.py` - Waiter registration, dispatch, cancellation- TRIGGER_REGISTRY for extensible trigger types (WhatsApp, Webhook, future: Email, MQTT, Telegram)@@ -3608,8 +3687,15 @@ This function:- Frontend creates anonymous user with owner privileges when disabled- AuthContext includes retry logic (5 retries, exponential backoff) for startup race conditions- Pydantic Settings accepts `vite_auth_enabled` field (required due to `extra="forbid"`)-- **npm ci Optimization**: Faster Docker builds and CI/CD- - `client/Dockerfile` uses `npm ci` instead of `npm install` (2x faster)- - `package.json` build script uses `npm ci` for root and whatsapp-rpc- - `client/package-lock.json` generated for npm ci support (workspace child)+- **whatsapp-rpc Package**: External dependency for WhatsApp integration+ - Published to npm as `whatsapp-rpc` (unscoped) and GitHub Packages as `@trohitg/whatsapp-rpc`+ - Published to PyPI as `whatsapp-rpc` (async Python client)+ - Cross-platform binaries built via GitHub Actions (linux/amd64, linux/arm64, darwin/amd64, darwin/arm64, windows/amd64)+ - Binary downloaded from GitHub releases during npm postinstall+ - Configurable port via `--port` CLI flag, `PORT` or `WHATSAPP_RPC_PORT` env vars (default: 9400)+ - QR codes generated as base64 PNG in memory (no file I/O, no `data/qr` directory)+ - Source: https://github.com/trohitg/whatsapp-rpc+- **Node Data Architecture**: `node.data` only stores `label` (display name). All parameters are stored in the database via `save_node_parameters` WebSocket handler. This prevents parameter bloat in workflow JSON exports and keeps React Flow state lightweight. `useDragAndDrop.ts` saves default parameters to DB on drop, not to `node.data`.+- **Workflow Export Sanitization**: `exportWorkflow()` in `useWorkflow.ts` strips transient fields (`selected`, `dragging`, `width`, `height`, `measured`, `positionAbsolute`) from nodes and edges before export. Only `id`, `type`, `position`, `data.label` are included per node.+- **Skill System Architecture**: Skills organized in `server/skills/<folder>/` subfolders. Each folder appears in Master Skill dropdown. DB is source of truth for skill instructions (seeded from SKILL.md on first load). Icon resolution: node definition (SVG) > SKILL.md metadata (emoji) > fallback. Native DOM keydown handler prevents React Flow from intercepting Ctrl shortcuts in skill editor.- never use emojis in prints\ No newline at end of filediff --git a/client/src/Dashboard.tsx b/client/src/Dashboard.tsxindex 7c5bcd2a..e35b6f0f 100644--- a/client/src/Dashboard.tsx+++ b/client/src/Dashboard.tsx@@ -110,14 +110,7 @@ const createNodeTypes = (): Record<string, React.ComponentType<any>> => {// Specialized agent nodes use AIAgentNode (rectangular card with bottom handles)types[type] = AIAgentNode;} else if (TOOL_NODE_TYPES.includes(type)) {- // Tool node component mapping:- // - webSearchTool: SquareNode (square shape like utility nodes)- // - calculatorTool, currentTimeTool: ModelNode (circular)- if (type === 'webSearchTool') {- types[type] = SquareNode;- } else {- types[type] = ModelNode;- }+ types[type] = SquareNode;} else if (SKILL_NODE_TYPES.includes(type)) {// Skill nodes use ToolkitNode (vertical handle layout like Android Toolkit)types[type] = ToolkitNode;diff --git a/client/src/components/AIAgentNode.tsx b/client/src/components/AIAgentNode.tsxindex eebad5f6..bf32efb7 100644--- a/client/src/components/AIAgentNode.tsx+++ b/client/src/components/AIAgentNode.tsx@@ -198,6 +198,86 @@ const AGENT_CONFIGS: Record<string, AgentConfig> = {width: 260,height: 160,},+ travel_agent: {+ icon: <span style={{ fontSize: '28px' }}>✈️</span>,+ title: 'Travel Agent',+ subtitle: 'Travel Planning',+ themeColorKey: 'orange',+ bottomHandles: [+ { id: 'input-skill', label: 'Skill', position: '25%' },+ { id: 'input-tools', label: 'Tool', position: '75%' },+ ],+ leftHandles: [+ { id: 'input-memory', label: 'Memory', position: '70%' },+ ],+ topOutputHandle: { id: 'output-top', label: 'Output' },+ width: 260,+ height: 160,+ },+ tool_agent: {+ icon: <span style={{ fontSize: '28px' }}>🔧</span>,+ title: 'Tool Agent',+ subtitle: 'Tool Orchestration',+ themeColorKey: 'yellow',+ bottomHandles: [+ { id: 'input-skill', label: 'Skill', position: '25%' },+ { id: 'input-tools', label: 'Tool', position: '75%' },+ ],+ leftHandles: [+ { id: 'input-memory', label: 'Memory', position: '70%' },+ ],+ topOutputHandle: { id: 'output-top', label: 'Output' },+ width: 260,+ height: 160,+ },+ productivity_agent: {+ icon: <span style={{ fontSize: '28px' }}>⏰</span>,+ title: 'Productivity Agent',+ subtitle: 'Productivity',+ themeColorKey: 'cyan',+ bottomHandles: [+ { id: 'input-skill', label: 'Skill', position: '25%' },+ { id: 'input-tools', label: 'Tool', position: '75%' },+ ],+ leftHandles: [+ { id: 'input-memory', label: 'Memory', position: '70%' },+ ],+ topOutputHandle: { id: 'output-top', label: 'Output' },+ width: 260,+ height: 160,+ },+ payments_agent: {+ icon: <span style={{ fontSize: '28px' }}>💳</span>,+ title: 'Payments Agent',+ subtitle: 'Payment Processing',+ themeColorKey: 'green',+ bottomHandles: [+ { id: 'input-skill', label: 'Skill', position: '25%' },+ { id: 'input-tools', label: 'Tool', position: '75%' },+ ],+ leftHandles: [+ { id: 'input-memory', label: 'Memory', position: '70%' },+ ],+ topOutputHandle: { id: 'output-top', label: 'Output' },+ width: 260,+ height: 160,+ },+ consumer_agent: {+ icon: <span style={{ fontSize: '28px' }}>🛒</span>,+ title: 'Consumer Agent',+ subtitle: 'Consumer Support',+ themeColorKey: 'purple',+ bottomHandles: [+ { id: 'input-skill', label: 'Skill', position: '25%' },+ { id: 'input-tools', label: 'Tool', position: '75%' },+ ],+ leftHandles: [+ { id: 'input-memory', label: 'Memory', position: '70%' },+ ],+ topOutputHandle: { id: 'output-top', label: 'Output' },+ width: 260,+ height: 160,+ },};const AIAgentNode: React.FC<NodeProps<NodeData>> = ({ id, type, data, isConnectable, selected }) => {diff --git a/client/src/components/ModelNode.tsx b/client/src/components/ModelNode.tsxindex 634a0fcc..fd08af1e 100644--- a/client/src/components/ModelNode.tsx+++ b/client/src/components/ModelNode.tsx@@ -31,9 +31,6 @@ const ModelNode: React.FC<NodeProps<NodeData>> = ({ id, type, data, isConnectablconst executionStatus = nodeStatus?.status || 'idle';const isExecuting = executionStatus === 'executing' || executionStatus === 'waiting';- // Check if this is a tool node (for status indicator tooltip)- const isToolNode = type ? ['calculatorTool', 'currentTimeTool', 'webSearchTool'].includes(type) : false;-const definition = nodeDefinitions[type as keyof typeof nodeDefinitions];// Determine provider from node definition or type@@ -230,13 +227,11 @@ const ModelNode: React.FC<NodeProps<NodeData>> = ({ id, type, data, isConnectabl? 'Executing...': isMemoryNode? 'Memory node ready'- : isToolNode- ? 'Tool ready'- : isConfigured- ? 'Model configured and ready'- : hasApiKey- ? 'API key found, model needs configuration'- : 'API key required'+ : isConfigured+ ? 'Model configured and ready'+ : hasApiKey+ ? 'API key found, model needs configuration'+ : 'API key required'}/>diff --git a/client/src/components/parameterPanel/InputSection.tsx b/client/src/components/parameterPanel/InputSection.tsxindex 05143857..794e05ce 100644--- a/client/src/components/parameterPanel/InputSection.tsx+++ b/client/src/components/parameterPanel/InputSection.tsx@@ -86,7 +86,8 @@ const InputSection: React.FC<InputSectionProps> = ({ nodeId, visible = true }) =// Agent node types that support skills (have input-skill handle)const AGENT_WITH_SKILLS_TYPES = ['aiAgent', 'chatAgent', 'android_agent', 'coding_agent',- 'web_agent', 'task_agent', 'social_agent'+ 'web_agent', 'task_agent', 'social_agent', 'travel_agent',+ 'tool_agent', 'productivity_agent', 'payments_agent', 'consumer_agent'];// Check if current node is an agent that shows skills in Middle Sectionconst isAgentWithSkills = AGENT_WITH_SKILLS_TYPES.includes(currentNodeType || '');@@ -474,7 +475,7 @@ const InputSection: React.FC<InputSectionProps> = ({ nodeId, visible = true }) =const isMemory = nodeType === 'simpleMemory';const nodeTypeLower = nodeType.toLowerCase();// AI agent types that use the AI output schema- const aiAgentTypes = ['aiAgent', 'chatAgent', 'android_agent', 'coding_agent', 'web_agent', 'task_agent', 'social_agent'];+ const aiAgentTypes = ['aiAgent', 'chatAgent', 'android_agent', 'coding_agent', 'web_agent', 'task_agent', 'social_agent', 'travel_agent', 'tool_agent', 'productivity_agent', 'payments_agent', 'consumer_agent'];const isAI = !isMemory && (nodeTypeLower.includes('chatmodel') || aiAgentTypes.includes(nodeType));const isFile = nodeType.includes('file');const isWhatsAppDb = nodeType === 'whatsappDb';diff --git a/client/src/components/parameterPanel/MasterSkillEditor.tsx b/client/src/components/parameterPanel/MasterSkillEditor.tsxindex 1f3972fe..cb237c77 100644--- a/client/src/components/parameterPanel/MasterSkillEditor.tsx+++ b/client/src/components/parameterPanel/MasterSkillEditor.tsx@@ -1,20 +1,19 @@/*** MasterSkillEditor - Editor for Master Skill node*- * Split panel showing available skills with enable/disable toggles on left,- * and selected skill's markdown instructions on right.+ * Split panel: left side has folder input, search, and skill toggles.+ * Right side shows selected skill's markdown instructions.*- * Skills are loaded from the skill folder (server/skills/).+ * Skills loaded from skillFolder (server/skills/<folder>/) or built-in list.* The skillsConfig uses skillName (folder name) as keys.*/-import React, { useState, useEffect, useCallback, useMemo } from 'react';-import { Input, Checkbox, Button, Spin, List, Badge, Empty, Tooltip, Alert } from 'antd';-import { SearchOutlined, ReloadOutlined, InfoCircleOutlined } from '@ant-design/icons';+import React, { useState, useEffect, useCallback, useMemo, useRef } from 'react';+import { Input, Select, Checkbox, Button, Spin, List, Badge, Empty, Tooltip, Alert } from 'antd';+import { SearchOutlined, ReloadOutlined, InfoCircleOutlined, FolderOutlined } from '@ant-design/icons';import { useAppTheme } from '../../hooks/useAppTheme';import { useWebSocket } from '../../contexts/WebSocketContext';import { skillNodes, SKILL_NODE_TYPES } from '../../nodeDefinitions/skillNodes';-import CodeEditor from '../ui/CodeEditor';// Skill configuration stored in node parameters// Key is skillName (folder name like 'whatsapp-skill')@@ -40,8 +39,26 @@ interface AvailableSkill {interface MasterSkillEditorProps {skillsConfig: MasterSkillConfig;onConfigChange: (config: MasterSkillConfig) => void;+ skillFolder?: string;+ onSkillFolderChange?: (folder: string) => void;}+// Lookup icon/color from skillNodes.ts definitions by skill name+const getNodeDefaults = (skillName: string): { icon: string; color: string } => {+ for (const type of SKILL_NODE_TYPES) {+ const nodeDef = skillNodes[type];+ if (!nodeDef) continue;+ const skillNameProp = nodeDef.properties?.find(p => p.name === 'skillName');+ if (skillNameProp?.default === skillName) {+ return {+ icon: nodeDef.icon || '',+ color: (nodeDef.defaults?.color as string) || '#6366F1'+ };+ }+ }+ return { icon: '', color: '' };+};+// Helper to render icon (handles emojis and SVG data URIs)const renderSkillIcon = (icon: string, size: number = 16) => {if (icon.startsWith('data:') || icon.startsWith('http')) {@@ -52,7 +69,9 @@ const renderSkillIcon = (icon: string, size: number = 16) => {const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({skillsConfig,- onConfigChange+ onConfigChange,+ skillFolder,+ onSkillFolderChange}) => {const theme = useAppTheme();const { sendRequest } = useWebSocket();@@ -60,9 +79,99 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({const [isLoading, setIsLoading] = useState(false);const [defaultInstructions, setDefaultInstructions] = useState<Record<string, string>>({});const [searchQuery, setSearchQuery] = useState('');+ const [folderSkills, setFolderSkills] = useState<AvailableSkill[]>([]);+ const [folderLoading, setFolderLoading] = useState(false);+ const [availableFolders, setAvailableFolders] = useState<Array<{ name: string; skill_count: number }>>([]);+ const [foldersLoaded, setFoldersLoaded] = useState(false);+ const hasFetchedFolders = useRef(false);+ const editorWrapperRef = useRef<HTMLDivElement>(null);++ // Native DOM keydown handler to stop React Flow's document-level listeners+ // from intercepting standard text editing shortcuts (Ctrl+A, Ctrl+C, etc.)+ // React synthetic stopPropagation doesn't prevent native document.addEventListener handlers.+ useEffect(() => {+ const el = editorWrapperRef.current;+ if (!el) return;++ const handler = (e: KeyboardEvent) => {+ if (e.ctrlKey || e.metaKey) {+ e.stopPropagation();+ }+ };+ el.addEventListener('keydown', handler);+ return () => el.removeEventListener('keydown', handler);+ });++ // Fetch available skill folders on mount+ useEffect(() => {+ if (hasFetchedFolders.current) return;+ hasFetchedFolders.current = true;++ const fetchFolders = async () => {+ try {+ const response = await sendRequest<{+ success: boolean;+ folders: Array<{ name: string; skill_count: number }>;+ }>('list_skill_folders', {});++ if (response?.success && response.folders) {+ setAvailableFolders(response.folders);+ }+ } catch (error) {+ console.error('[MasterSkillEditor] Failed to list skill folders:', error);+ } finally {+ setFoldersLoaded(true);+ }+ };++ fetchFolders();+ }, [sendRequest]);- // Build list of available skills from node definitions+ // Fetch skills from folder when skillFolder is set+ useEffect(() => {+ if (!skillFolder) {+ setFolderSkills([]);+ return;+ }++ const fetchFolderSkills = async () => {+ setFolderLoading(true);+ try {+ const response = await sendRequest<{+ success: boolean;+ skills: Array<{ name: string; description: string; metadata?: Record<string, any> }>;+ error?: string;+ }>('scan_skill_folder', { folder: skillFolder });++ if (response?.success && response.skills) {+ setFolderSkills(response.skills.map(s => {+ const defaults = getNodeDefaults(s.name);+ return {+ type: s.name,+ skillName: s.name,+ displayName: s.name.split('-').map(w => w[0].toUpperCase() + w.slice(1)).join(' '),+ icon: defaults.icon || s.metadata?.icon || '📄',+ color: defaults.color || s.metadata?.color || '#6366F1',+ description: s.description || ''+ };+ }));+ }+ } catch (error) {+ console.error('[MasterSkillEditor] Failed to scan skill folder:', error);+ } finally {+ setFolderLoading(false);+ }+ };++ fetchFolderSkills();+ }, [skillFolder, sendRequest]);++ // Build list of available skills - from folder scan or node definitionsconst availableSkills = useMemo<AvailableSkill[]>(() => {+ if (skillFolder && folderSkills.length > 0) {+ return folderSkills;+ }+return SKILL_NODE_TYPES.filter(type => type !== 'customSkill' && type !== 'masterSkill').map(type => {@@ -82,7 +191,7 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({};}).filter((s): s is AvailableSkill => s !== null);- }, []);+ }, [skillFolder, folderSkills]);// Filter skills based on search queryconst filteredSkills = useMemo(() => {@@ -200,10 +309,13 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({const selectedSkillConfig = selectedSkillName ? skillsConfig[selectedSkillName] : undefined;const enabledCount = Object.values(skillsConfig).filter(c => c?.enabled).length;+ console.log('[MasterSkillEditor] RENDER', { skillFolder, onSkillFolderChange: !!onSkillFolderChange, skillsConfig: Object.keys(skillsConfig) });+return (<div style={{display: 'flex',- height: '100%',+ flex: 1,+ minHeight: 0,gap: theme.spacing.md,overflow: 'hidden'}}>@@ -251,12 +363,36 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({/></div>+ {/* Skill Folder Dropdown */}+ <div style={{ padding: theme.spacing.sm, borderBottom: `1px solid ${theme.colors.border}`, flexShrink: 0 }}>+ <Select+ value={skillFolder || 'assistant'}+ onChange={(value) => {+ onSkillFolderChange?.(value);+ setSelectedSkillName(null);+ }}+ loading={!foldersLoaded}+ disabled={!foldersLoaded}+ getPopupContainer={(trigger) => trigger.parentElement || document.body}+ style={{ width: '100%' }}+ suffixIcon={<FolderOutlined style={{ color: theme.colors.textSecondary }} />}+ options={availableFolders.map(f => ({+ value: f.name,+ label: `${f.name} (${f.skill_count})`,+ }))}+ />+ </div>+{/* Skills List */}<div style={{ flex: 1, overflowY: 'auto' }}>- {filteredSkills.length === 0 ? (+ {folderLoading ? (+ <div style={{ display: 'flex', justifyContent: 'center', marginTop: theme.spacing.lg }}>+ <Spin tip="Scanning folder..." />+ </div>+ ) : filteredSkills.length === 0 ? (<Emptyimage={Empty.PRESENTED_IMAGE_SIMPLE}- description="No skills found"+ description={skillFolder ? `No skills found in skills/${skillFolder}/` : 'No skills found'}style={{ marginTop: theme.spacing.lg }}/>) : (@@ -387,21 +523,32 @@ const MasterSkillEditor: React.FC<MasterSkillEditorProps> = ({)}</div>- {/* Code Editor */}- <div style={{ flex: 1, padding: theme.spacing.md, overflow: 'hidden', display: 'flex', flexDirection: 'column' }}>+ {/* Skill Instructions Editor */}+ <div ref={editorWrapperRef} style={{ flex: 1, padding: theme.spacing.md, overflow: 'hidden', display: 'flex', flexDirection: 'column' }}>{isLoading ? (<div style={{ flex: 1, display: 'flex', alignItems: 'center', justifyContent: 'center' }}><Spin tip="Loading..." /></div>) : (- <div style={{ flex: 1, minHeight: 0 }}>- <CodeEditor- value={selectedSkillConfig?.instructions || defaultInstructions[selectedSkillName!] || ''}- onChange={(value) => handleUpdateInstructions(selectedSkillName!, value)}- language="markdown"- placeholder="Loading skill instructions..."- />- </div>+ <Input.TextArea+ value={selectedSkillConfig?.instructions || defaultInstructions[selectedSkillName!] || ''}+ onChange={(e) => handleUpdateInstructions(selectedSkillName!, e.target.value)}+ placeholder="Loading skill instructions..."+ spellCheck={false}+ autoSize={false}+ style={{+ flex: 1,+ minHeight: 0,+ resize: 'none',+ fontFamily: "'Consolas', 'Monaco', 'Fira Code', monospace",+ fontSize: 13,+ lineHeight: 1.5,+ backgroundColor: theme.colors.backgroundAlt,+ color: theme.colors.text,+ borderColor: theme.colors.border,+ borderRadius: theme.borderRadius.md,+ }}+ />)}{/* Enable hint */}diff --git a/client/src/components/parameterPanel/MiddleSection.tsx b/client/src/components/parameterPanel/MiddleSection.tsxindex 2ee48f61..2dbb1a4c 100644--- a/client/src/components/parameterPanel/MiddleSection.tsx+++ b/client/src/components/parameterPanel/MiddleSection.tsx@@ -22,7 +22,12 @@ const AGENT_WITH_SKILLS_TYPES = ['coding_agent','web_agent','task_agent',- 'social_agent'+ 'social_agent',+ 'travel_agent',+ 'tool_agent',+ 'productivity_agent',+ 'payments_agent',+ 'consumer_agent'];interface ConnectedSkill {@@ -131,6 +136,7 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({// Check if this is a master skill node (needs split panel layout)const isMasterSkillNode = nodeDefinition.name === 'masterSkill';+ console.log('[MiddleSection] nodeDefinition.name:', nodeDefinition.name, 'isMasterSkillNode:', isMasterSkillNode);// Check if this is a memory node with markdown editorconst isMemoryNode = nodeDefinition.name === 'simpleMemory';@@ -305,10 +311,12 @@ const MiddleSection: React.FC<MiddleSectionProps> = ({<div style={{ flex: 1, display: 'flex', flexDirection: 'column', minHeight: 0, overflow: 'hidden' }}>{/* Master Skill Editor - Full panel for masterSkill nodes */}{isMasterSkillNode ? (- <div style={{ flex: 1, padding: theme.spacing.lg, overflow: 'hidden' }}>+ <div style={{ flex: 1, display: 'flex', flexDirection: 'column', padding: theme.spacing.lg, overflow: 'hidden' }}><MasterSkillEditorskillsConfig={parameters.skillsConfig || {}}onConfigChange={(config) => onParameterChange('skillsConfig', config)}+ skillFolder={parameters.skillFolder || 'assistant'}+ onSkillFolderChange={(folder) => onParameterChange('skillFolder', folder)}/></div>) : (diff --git a/client/src/components/ui/CodeEditor.tsx b/client/src/components/ui/CodeEditor.tsxindex d8ea3e9c..cb024abd 100644--- a/client/src/components/ui/CodeEditor.tsx+++ b/client/src/components/ui/CodeEditor.tsx@@ -36,7 +36,7 @@ const CodeEditor: React.FC<CodeEditorProps> = ({<div style={{height: '100%',borderRadius: theme.borderRadius.md,- overflow: 'hidden',+ overflow: 'auto',border: `1px solid ${theme.colors.border}`}}><style>{`@@ -69,8 +69,8 @@ const CodeEditor: React.FC<CodeEditorProps> = ({backgroundColor: theme.colors.backgroundAlt,color: theme.colors.text,minHeight: '100%',- height: '100%',- overflow: 'auto'+ height: 'auto',+ overflow: 'visible'}}/></div>diff --git a/client/src/components/ui/ComponentPalette.tsx b/client/src/components/ui/ComponentPalette.tsxindex bac57565..bdce6aa1 100644--- a/client/src/components/ui/ComponentPalette.tsx+++ b/client/src/components/ui/ComponentPalette.tsx@@ -19,11 +19,11 @@ const CATEGORY_EMOJIS: Record<string, string> = {android: '📱',chat: '💭',code: '💻',- data: '🗄️',- util: '🔧',+ document: '🗄️',+ utility: '🔧',};-// Categories that should be merged into 'social' (Social Media Platforms)+// Categories that should be merged into 'social' (Social Media)const SOCIAL_CATEGORIES = ['whatsapp', 'social'];// Categories shown in simple (noob) mode - only AI related@@ -57,24 +57,24 @@ const ComponentPalette: React.FC<ComponentPaletteProps> = ({android: colors.categoryAndroid || theme.dracula.cyan,chat: colors.categoryChat || theme.dracula.yellow,code: colors.categoryCode || theme.dracula.orange,- data: colors.categoryTrigger || theme.dracula.pink,- util: colors.categoryUtil || theme.dracula.purple,+ document: colors.categoryTrigger || theme.dracula.pink,+ utility: colors.categoryUtil || theme.dracula.purple,};const labelMap: Record<string, string> = {- workflow: 'Workflow',+ workflow: 'Workflows',trigger: 'Triggers',ai: 'AI',agent: 'AI Agents',model: 'AI Models',skill: 'AI Skills',tool: 'AI Tools',- location: 'Google Maps',- social: 'Social Media Platforms',+ location: 'Location',+ social: 'Social',android: 'Android',chat: 'Chat',- code: 'Code Executors',- data: 'Data',- util: 'Utilities',+ code: 'Code',+ document: 'Documents',+ utility: 'Utilities',};return {icon: CATEGORY_EMOJIS[key] || '📦',diff --git a/client/src/hooks/useDragAndDrop.ts b/client/src/hooks/useDragAndDrop.tsindex 84c8647f..41d0fe28 100644--- a/client/src/hooks/useDragAndDrop.ts+++ b/client/src/hooks/useDragAndDrop.ts@@ -79,16 +79,16 @@ export const useDragAndDrop = ({ nodes, setNodes, saveNodeParameters }: UseDragAtype: nodeData.type,position,data: {- ...(nodeData.data || {}),- label: uniqueLabel, // Add unique label for template resolution+ label: uniqueLabel, // Only UI-display fields in node.data (not parameters)},};- // Save node parameters to database immediately via WebSocket (including hidden parameters)- if (newNode.data && Object.keys(newNode.data).length > 0 && saveNodeParameters) {+ // Save full default parameters to DB only (not to node.data)+ const defaults = nodeData.data || {};+ if (Object.keys(defaults).length > 0 && saveNodeParameters) {try {- await saveNodeParameters(newNode.id, newNode.data);- console.log(`[DragAndDrop] Saved default parameters for node ${newNode.id}:`, newNode.data);+ await saveNodeParameters(newNode.id, { ...defaults, label: uniqueLabel });+ console.log(`[DragAndDrop] Saved default parameters for node ${newNode.id}`);} catch (error) {console.error(`[DragAndDrop] Failed to save parameters for node ${newNode.id}:`, error);}diff --git a/client/src/hooks/useParameterPanel.ts b/client/src/hooks/useParameterPanel.tsindex 6aba74be..4f830878 100644--- a/client/src/hooks/useParameterPanel.ts+++ b/client/src/hooks/useParameterPanel.ts@@ -5,7 +5,7 @@ import { useWebSocket } from '../contexts/WebSocketContext';import { SKILL_NODE_TYPES } from '../nodeDefinitions/skillNodes';export const useParameterPanel = () => {- const { selectedNode, setSelectedNode, updateNodeData } = useAppStore();+ const { selectedNode, setSelectedNode } = useAppStore();const [parameters, setParameters] = useState<any>({});const [originalParameters, setOriginalParameters] = useState<any>({});const [isLoading, setIsLoading] = useState(false);@@ -54,22 +54,24 @@ export const useParameterPanel = () => {console.log('[useParameterPanel] Defaults:', defaults);console.log('[useParameterPanel] Saved from backend:', savedParams);- // For skill nodes, load skill content (instructions) from SKILL.md files- if (SKILL_NODE_TYPES.includes(nodeType) && nodeType !== 'customSkill') {+ // For skill nodes, seed instructions from SKILL.md only if DB has none yet+ if (SKILL_NODE_TYPES.includes(nodeType) && nodeType !== 'customSkill' && nodeType !== 'masterSkill') {const skillName = initialParams.skillName;- if (skillName) {+ if (skillName && !initialParams.instructions) {try {- console.log('[useParameterPanel] Loading skill content for:', skillName);+ console.log('[useParameterPanel] Seeding skill content from SKILL.md for:', skillName);const skillResult = await sendRequest('get_skill_content', { skill_name: skillName });if (skillResult?.success && skillResult?.instructions) {initialParams = {...initialParams,instructions: skillResult.instructions};- console.log('[useParameterPanel] Loaded skill instructions:', skillResult.instructions.substring(0, 100) + '...');+ // Auto-save seeded instructions to DB so next load uses DB directly+ await saveNodeParameters(nodeId, initialParams);+ console.log('[useParameterPanel] Seeded and saved skill instructions for:', skillName);}} catch (skillErr) {- console.error('[useParameterPanel] Failed to load skill content:', skillErr);+ console.error('[useParameterPanel] Failed to seed skill content:', skillErr);}}}@@ -113,32 +115,9 @@ export const useParameterPanel = () => {const success = await saveNodeParameters(selectedNode.id, parameters);if (success) {- // For skill nodes, also save skill content (instructions) to SKILL.md files- if (selectedNode.type && SKILL_NODE_TYPES.includes(selectedNode.type) && selectedNode.type !== 'customSkill') {- const skillName = parameters.skillName;- const instructions = parameters.instructions;- if (skillName && instructions !== undefined) {- try {- console.log('[useParameterPanel] Saving skill content for:', skillName);- const skillResult = await sendRequest('save_skill_content', {- skill_name: skillName,- instructions: instructions- });- if (!skillResult?.success) {- console.error('[useParameterPanel] Failed to save skill content:', skillResult?.error);- setError(skillResult?.error || 'Failed to save skill content');- } else {- console.log('[useParameterPanel] Skill content saved successfully');- }- } catch (skillErr) {- console.error('[useParameterPanel] Failed to save skill content:', skillErr);- setError('Failed to save skill content');- }- }- }-- // Also update the node data in store for faster loading- updateNodeData(selectedNode.id, parameters);+ // DB is the source of truth for parameters.+ // node.data only stores UI-display fields (label, disabled).+ // Do NOT copy parameters to node.data to prevent data leaking into exports.setOriginalParameters({ ...parameters });} else {setError('Failed to save parameters');@@ -150,7 +129,7 @@ export const useParameterPanel = () => {setIsSaving(false);}}- }, [selectedNode, parameters, updateNodeData, saveNodeParameters, sendRequest]);+ }, [selectedNode, parameters, saveNodeParameters]);const handleCancel = useCallback(() => {setParameters({ ...originalParameters });@@ -158,6 +137,7 @@ export const useParameterPanel = () => {}, [originalParameters, setSelectedNode]);const nodeDefinition = selectedNode?.type ? nodeDefinitions[selectedNode.type] : null;+ console.log('[useParameterPanel] selectedNode.type:', selectedNode?.type, 'nodeDefinition.name:', nodeDefinition?.name);return {selectedNode,diff --git a/client/src/nodeDefinitions/schedulerNodes.ts b/client/src/nodeDefinitions/schedulerNodes.tsindex c4748b19..bd19ace9 100644--- a/client/src/nodeDefinitions/schedulerNodes.ts+++ b/client/src/nodeDefinitions/schedulerNodes.ts@@ -7,10 +7,10 @@ export const schedulerNodes: Record<string, INodeTypeDescription> = {displayName: 'Timer',name: 'timer',icon: '⏱️',- group: ['utility', 'workflow'],+ group: ['utility', 'workflow', 'tool'],version: 1,subtitle: '={{$parameter["duration"]}} {{$parameter["unit"]}}',- description: 'Wait for a specified duration before continuing',+ description: 'Wait for a specified duration before continuing. Can also be used as an AI Agent tool.',defaults: { name: 'Timer', color: '#10b981' },inputs: [{name: 'main',@@ -18,12 +18,20 @@ export const schedulerNodes: Record<string, INodeTypeDescription> = {type: 'main' as NodeConnectionType,description: 'Trigger to start timer'}],- outputs: [{- name: 'main',- displayName: 'Output',- type: 'main' as NodeConnectionType,- description: 'timestamp, elapsed_ms, duration, unit'- }],+ outputs: [+ {+ name: 'main',+ displayName: 'Output',+ type: 'main' as NodeConnectionType,+ description: 'timestamp, elapsed_ms, duration, unit'+ },+ {+ name: 'tool',+ displayName: 'Tool',+ type: 'main' as NodeConnectionType,+ description: 'Connect to AI Agent tool handle'+ }+ ],properties: [{displayName: 'Duration',@@ -57,18 +65,26 @@ export const schedulerNodes: Record<string, INodeTypeDescription> = {displayName: 'Cron Scheduler',name: 'cronScheduler',icon: '⏰',- group: ['trigger', 'workflow'],+ group: ['trigger', 'workflow', 'tool'],version: 1,subtitle: '={{$parameter["frequency"]}}',- description: 'Trigger workflow execution on a schedule',+ description: 'Trigger workflow execution on a schedule. Can also be used as an AI Agent tool.',defaults: { name: 'Cron Scheduler', color: '#6366f1' },inputs: [],- outputs: [{- name: 'main',- displayName: 'Trigger',- type: 'main' as NodeConnectionType,- description: 'timestamp, iteration, scheduled_time, next_run'- }],+ outputs: [+ {+ name: 'main',+ displayName: 'Trigger',+ type: 'main' as NodeConnectionType,+ description: 'timestamp, iteration, scheduled_time, next_run'+ },+ {+ name: 'tool',+ displayName: 'Tool',+ type: 'main' as NodeConnectionType,+ description: 'Connect to AI Agent tool handle'+ }+ ],properties: [// Duration Type{@@ -98,7 +114,7 @@ export const schedulerNodes: Record<string, INodeTypeDescription> = {},{displayName: 'Interval',- name: 'intervalMinutes',+ name: 'interval_minutes',type: 'number',default: 5,description: 'Run every X minutes (1-59)',@@ -106,7 +122,7 @@ export const schedulerNodes: Record<string, INodeTypeDescription> = {},{displayName: 'Interval',- name: 'intervalHours',+ name: 'interval_hours',type: 'number',default: 1,description: 'Run every X hours (1-23)',@@ -115,7 +131,7 @@ export const schedulerNodes: Record<string, INodeTypeDescription> = {// Time for daily{displayName: 'At Time',- name: 'dailyTime',+ name: 'daily_time',type: 'options',default: '09:00',options: [@@ -154,7 +170,7 @@ export const schedulerNodes: Record<string, INodeTypeDescription> = {},{displayName: 'At Time',- name: 'weeklyTime',+ name: 'weekly_time',type: 'options',default: '09:00',options: [@@ -171,7 +187,7 @@ export const schedulerNodes: Record<string, INodeTypeDescription> = {// Day of month + Time for monthly{displayName: 'On Day',- name: 'monthDay',+ name: 'month_day',type: 'options',default: '1',options: [@@ -183,7 +199,7 @@ export const schedulerNodes: Record<string, INodeTypeDescription> = {},{displayName: 'At Time',- name: 'monthlyTime',+ name: 'monthly_time',type: 'options',default: '09:00',options: [diff --git a/client/src/nodeDefinitions/skillNodes.ts b/client/src/nodeDefinitions/skillNodes.tsindex 780e5516..facd8394 100644--- a/client/src/nodeDefinitions/skillNodes.ts+++ b/client/src/nodeDefinitions/skillNodes.ts@@ -10,7 +10,7 @@ import { WHATSAPP_CONNECT_ICON } from './whatsappNodes';// ============================================================================// Factory function for creating skill node definitions-function createSkillNode(config: {+export function createSkillNode(config: {name: string;displayName: string;icon: string;@@ -190,6 +190,13 @@ export const skillNodes: Record<string, INodeTypeDescription> = {description: 'Connect to AI Agent skill handle'}],properties: [+ {+ displayName: 'Skill Folder',+ name: 'skillFolder',+ type: 'string',+ default: 'assistant',+ description: 'Subfolder under server/skills/ to scan for skills.'+ },{displayName: 'Skills Configuration',name: 'skillsConfig',diff --git a/client/src/nodeDefinitions/specializedAgentNodes.ts b/client/src/nodeDefinitions/specializedAgentNodes.tsindex bfc92924..58e921e3 100644--- a/client/src/nodeDefinitions/specializedAgentNodes.ts+++ b/client/src/nodeDefinitions/specializedAgentNodes.ts@@ -4,6 +4,7 @@ import {NodeConnectionType,INodeProperties} from '../types/INodeProperties';+import { dracula } from '../styles/theme';// ============================================================================// SHARED AI AGENT PROPERTIES - Used by Specialized Agent Nodes@@ -126,7 +127,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {version: 1,subtitle: 'Device Control',description: 'AI Agent specialized for Android device control. Connect skills, memory, and tool nodes to enable Android automation capabilities.',- defaults: { name: 'Android Control Agent', color: '#3DDC84' },+ defaults: { name: 'Android Control Agent', color: dracula.green },inputs: [{name: 'main',@@ -171,7 +172,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {version: 1,subtitle: 'Code Execution',description: 'AI Agent specialized for code execution. Connect skills, memory, and code executor nodes to enable coding capabilities.',- defaults: { name: 'Coding Agent', color: '#61DAFB' },+ defaults: { name: 'Coding Agent', color: dracula.cyan },inputs: [{name: 'main',@@ -216,7 +217,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {version: 1,subtitle: 'Browser Automation',description: 'AI Agent specialized for web automation. Connect skills, memory, and web control nodes to enable browser automation and HTTP capabilities.',- defaults: { name: 'Web Control Agent', color: '#FF6B6B' },+ defaults: { name: 'Web Control Agent', color: dracula.pink },inputs: [{name: 'main',@@ -261,7 +262,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {version: 1,subtitle: 'Task Automation',description: 'AI Agent specialized for task management. Connect skills, memory, and task nodes to enable scheduling and reminder capabilities.',- defaults: { name: 'Task Management Agent', color: '#9B59B6' },+ defaults: { name: 'Task Management Agent', color: dracula.purple },inputs: [{name: 'main',@@ -306,7 +307,7 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {version: 1,subtitle: 'Social Messaging',description: 'AI Agent specialized for social media. Connect skills, memory, and messaging nodes to enable WhatsApp, Telegram, and other social capabilities.',- defaults: { name: 'Social Media Agent', color: '#25D366' },+ defaults: { name: 'Social Media Agent', color: dracula.green },inputs: [{name: 'main',@@ -340,6 +341,231 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {description: 'Agent output'}],properties: AI_AGENT_PROPERTIES+ },++ // Travel Agent - AI Agent with travel planning capabilities+ travel_agent: {+ displayName: 'Travel Agent',+ name: 'travel_agent',+ icon: '✈️',+ group: ['agent', 'ai'],+ version: 1,+ subtitle: 'Travel Planning',+ description: 'AI Agent specialized for travel planning. Connect skills, memory, and tool nodes to enable itinerary building, location lookups, and travel recommendations.',+ defaults: { name: 'Travel Agent', color: dracula.orange },+ inputs: [+ {+ name: 'main',+ displayName: 'Input',+ type: 'main' as NodeConnectionType,+ description: 'Agent input'+ },+ {+ name: 'skill',+ displayName: 'Skill',+ type: 'main' as NodeConnectionType,+ description: 'Skill nodes that provide context and instructions'+ },+ {+ name: 'memory',+ displayName: 'Memory',+ type: 'main' as NodeConnectionType,+ description: 'Memory node for conversation history'+ },+ {+ name: 'tools',+ displayName: 'Tool',+ type: 'main' as NodeConnectionType,+ description: 'Tool nodes for travel planning (maps, HTTP, search, etc.)'+ }+ ],+ outputs: [{+ name: 'main',+ displayName: 'Output',+ type: 'main' as NodeConnectionType,+ description: 'Agent output'+ }],+ properties: AI_AGENT_PROPERTIES+ },++ // Tool Agent - AI Agent for orchestrating multiple tools+ tool_agent: {+ displayName: 'Tool Agent',+ name: 'tool_agent',+ icon: '🔧',+ group: ['agent', 'ai'],+ version: 1,+ subtitle: 'Tool Orchestration',+ description: 'AI Agent specialized for tool orchestration. Connect skills, memory, and multiple tool nodes to enable multi-tool workflows and complex task execution.',+ defaults: { name: 'Tool Agent', color: dracula.yellow },+ inputs: [+ {+ name: 'main',+ displayName: 'Input',+ type: 'main' as NodeConnectionType,+ description: 'Agent input'+ },+ {+ name: 'skill',+ displayName: 'Skill',+ type: 'main' as NodeConnectionType,+ description: 'Skill nodes that provide context and instructions'+ },+ {+ name: 'memory',+ displayName: 'Memory',+ type: 'main' as NodeConnectionType,+ description: 'Memory node for conversation history'+ },+ {+ name: 'tools',+ displayName: 'Tool',+ type: 'main' as NodeConnectionType,+ description: 'Tool nodes to orchestrate (calculators, HTTP, search, code, etc.)'+ }+ ],+ outputs: [{+ name: 'main',+ displayName: 'Output',+ type: 'main' as NodeConnectionType,+ description: 'Agent output'+ }],+ properties: AI_AGENT_PROPERTIES+ },++ // Productivity Agent - AI Agent for productivity and time management+ productivity_agent: {+ displayName: 'Productivity Agent',+ name: 'productivity_agent',+ icon: '⏰',+ group: ['agent', 'ai'],+ version: 1,+ subtitle: 'Productivity',+ description: 'AI Agent specialized for productivity. Connect skills, memory, and tool nodes to enable scheduling, reminders, note-taking, and workflow automation.',+ defaults: { name: 'Productivity Agent', color: dracula.cyan },+ inputs: [+ {+ name: 'main',+ displayName: 'Input',+ type: 'main' as NodeConnectionType,+ description: 'Agent input'+ },+ {+ name: 'skill',+ displayName: 'Skill',+ type: 'main' as NodeConnectionType,+ description: 'Skill nodes that provide context and instructions'+ },+ {+ name: 'memory',+ displayName: 'Memory',+ type: 'main' as NodeConnectionType,+ description: 'Memory node for conversation history'+ },+ {+ name: 'tools',+ displayName: 'Tool',+ type: 'main' as NodeConnectionType,+ description: 'Tool nodes for productivity (scheduler, HTTP, code, etc.)'+ }+ ],+ outputs: [{+ name: 'main',+ displayName: 'Output',+ type: 'main' as NodeConnectionType,+ description: 'Agent output'+ }],+ properties: AI_AGENT_PROPERTIES+ },++ // Payments Agent - AI Agent for payment processing and financial operations+ payments_agent: {+ displayName: 'Payments Agent',+ name: 'payments_agent',+ icon: '💳',+ group: ['agent', 'ai'],+ version: 1,+ subtitle: 'Payment Processing',+ description: 'AI Agent specialized for payment processing. Connect skills, memory, and tool nodes to enable payment workflows, invoice generation, and financial operations.',+ defaults: { name: 'Payments Agent', color: dracula.green },+ inputs: [+ {+ name: 'main',+ displayName: 'Input',+ type: 'main' as NodeConnectionType,+ description: 'Agent input'+ },+ {+ name: 'skill',+ displayName: 'Skill',+ type: 'main' as NodeConnectionType,+ description: 'Skill nodes that provide context and instructions'+ },+ {+ name: 'memory',+ displayName: 'Memory',+ type: 'main' as NodeConnectionType,+ description: 'Memory node for conversation history'+ },+ {+ name: 'tools',+ displayName: 'Tool',+ type: 'main' as NodeConnectionType,+ description: 'Tool nodes for payment processing (HTTP, code, etc.)'+ }+ ],+ outputs: [{+ name: 'main',+ displayName: 'Output',+ type: 'main' as NodeConnectionType,+ description: 'Agent output'+ }],+ properties: AI_AGENT_PROPERTIES+ },++ // Consumer Agent - AI Agent for consumer interactions and support+ consumer_agent: {+ displayName: 'Consumer Agent',+ name: 'consumer_agent',+ icon: '🛒',+ group: ['agent', 'ai'],+ version: 1,+ subtitle: 'Consumer Support',+ description: 'AI Agent specialized for consumer interactions. Connect skills, memory, and tool nodes to enable customer support, product recommendations, and order management.',+ defaults: { name: 'Consumer Agent', color: dracula.purple },+ inputs: [+ {+ name: 'main',+ displayName: 'Input',+ type: 'main' as NodeConnectionType,+ description: 'Agent input'+ },+ {+ name: 'skill',+ displayName: 'Skill',+ type: 'main' as NodeConnectionType,+ description: 'Skill nodes that provide context and instructions'+ },+ {+ name: 'memory',+ displayName: 'Memory',+ type: 'main' as NodeConnectionType,+ description: 'Memory node for conversation history'+ },+ {+ name: 'tools',+ displayName: 'Tool',+ type: 'main' as NodeConnectionType,+ description: 'Tool nodes for consumer operations (HTTP, search, code, etc.)'+ }+ ],+ outputs: [{+ name: 'main',+ displayName: 'Output',+ type: 'main' as NodeConnectionType,+ description: 'Agent output'+ }],+ properties: AI_AGENT_PROPERTIES}};@@ -348,4 +574,4 @@ export const specializedAgentNodes: Record<string, INodeTypeDescription> = {// ============================================================================// List of specialized agent node types for identification-export const SPECIALIZED_AGENT_TYPES = ['android_agent', 'coding_agent', 'web_agent', 'task_agent', 'social_agent'];+export const SPECIALIZED_AGENT_TYPES = ['android_agent', 'coding_agent', 'web_agent', 'task_agent', 'social_agent', 'travel_agent', 'tool_agent', 'productivity_agent', 'payments_agent', 'consumer_agent'];diff --git a/client/src/store/useAppStore.ts b/client/src/store/useAppStore.tsindex 217cd3bb..07e26ead 100644--- a/client/src/store/useAppStore.ts+++ b/client/src/store/useAppStore.ts@@ -6,7 +6,8 @@ import { theme } from '../styles/theme';import {exportWorkflowToJSON as exportToJSON,exportWorkflowToFile as exportToFile,- importWorkflowFromJSON as importFromJSON+ importWorkflowFromJSON as importFromJSON,+ sanitizeNodes} from '../utils/workflowExport';import { workflowApi } from '../services/workflowApi';@@ -202,11 +203,12 @@ export const useAppStore = create<AppStore>((set, get) => ({lastModified: new Date(),};- // Save to database+ // Save to database - sanitize node.data to only include UI fields (label, disabled, condition).+ // Parameters live in the DB node_parameters table, not in node.data.const success = await workflowApi.saveWorkflow(updatedWorkflow.id,updatedWorkflow.name,- { nodes: updatedWorkflow.nodes, edges: updatedWorkflow.edges }+ { nodes: sanitizeNodes(updatedWorkflow.nodes), edges: updatedWorkflow.edges });if (!success) {@@ -331,11 +333,11 @@ export const useAppStore = create<AppStore>((set, get) => ({nodes: migratedNodes};- // Save migrated workflow to database+ // Save migrated workflow to database (sanitize node.data)await workflowApi.saveWorkflow(migratedWorkflow.id,migratedWorkflow.name,- { nodes: migratedWorkflow.nodes, edges: migratedWorkflow.edges }+ { nodes: sanitizeNodes(migratedWorkflow.nodes), edges: migratedWorkflow.edges });set({diff --git a/client/src/utils/workflowExport.ts b/client/src/utils/workflowExport.tsindex bff83e8f..0f68e377 100644--- a/client/src/utils/workflowExport.ts+++ b/client/src/utils/workflowExport.ts@@ -3,8 +3,31 @@* Handles exporting workflows to JSON files and importing from JSON*/+import { Node } from 'reactflow';import { WorkflowData } from '../store/useAppStore';import { validateWorkflow, serializeWorkflow, deserializeWorkflow } from '../schemas/workflowSchema';+import packageJson from '../../../package.json';++// Use project version from package.json for workflow exports+const APP_VERSION = packageJson.version;++// Fields allowed in node.data for export/save - everything else is parameter data+// that belongs in the DB and should not leak into exported JSON files.+export const UI_DATA_FIELDS = new Set(['label', 'disabled', 'condition']);++/**+ * Strip node.data down to UI-essential fields only.+ * Prevents personal data (phone numbers, contact names, API keys, etc.)+ * from leaking into exported workflow JSON files.+ */+export function sanitizeNodes(nodes: Node[]): Node[] {+ return nodes.map(node => ({+ ...node,+ data: Object.fromEntries(+ Object.entries(node.data || {}).filter(([key]) => UI_DATA_FIELDS.has(key))+ )+ }));+}/*** Export workflow to JSON file@@ -19,9 +42,10 @@ export function exportWorkflowToFile(workflow: WorkflowData): void {const workflowJSON = {...workflow,+ nodes: sanitizeNodes(workflow.nodes),createdAt: workflow.createdAt.toISOString(),lastModified: workflow.lastModified.toISOString(),- version: '1.0.0'+ version: APP_VERSION};const jsonString = serializeWorkflow(workflowJSON);@@ -81,9 +105,10 @@ export function exportWorkflowToJSON(workflow: WorkflowData): string {const workflowJSON = {...workflow,+ nodes: sanitizeNodes(workflow.nodes),createdAt: workflow.createdAt.toISOString(),lastModified: workflow.lastModified.toISOString(),- version: '1.0.0'+ version: APP_VERSION};return serializeWorkflow(workflowJSON);diff --git a/import.json b/import.jsonnew file mode 100644index 00000000..5d0f3a61--- /dev/null+++ b/import.json@@ -0,0 +1,1444 @@+{+ "id": "workflow-1770193554285-u4c3iyjm0",+ "name": "Test",+ "nodes": [+ {+ "id": "assistantPersonality-1769755203568",+ "type": "assistantPersonality",+ "position": {+ "x": 1800,+ "y": 180+ },+ "data": {+ "label": "Assistant Personality"+ },+ "width": 112,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 1800,+ "y": 180+ },+ "dragging": false+ },+ {+ "id": "chatTrigger-1769755237666",+ "type": "chatTrigger",+ "position": {+ "x": 980,+ "y": 160+ },+ "data": {+ "label": "Chat Trigger"+ },+ "width": 67,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 980,+ "y": 160+ },+ "dragging": true+ },+ {+ "id": "webSearchTool-1769755286327",+ "type": "webSearchTool",+ "position": {+ "x": 1840,+ "y": 880+ },+ "data": {+ "label": "Web Search Tool"+ },+ "width": 91,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 1840,+ "y": 880+ },+ "dragging": true+ },+ {+ "id": "httpRequest-1769755308753",+ "type": "httpRequest",+ "position": {+ "x": 1700,+ "y": 880+ },+ "data": {+ "label": "HTTP Request"+ },+ "width": 76,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 1700,+ "y": 880+ },+ "dragging": false+ },+ {+ "id": "batteryMonitor-1769755671312",+ "type": "batteryMonitor",+ "position": {+ "x": 880,+ "y": 880+ },+ "data": {+ "label": "Battery Monitor"+ },+ "width": 87,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 880,+ "y": 880+ },+ "dragging": false+ },+ {+ "id": "appLauncher-1769755673740",+ "type": "appLauncher",+ "position": {+ "x": 1000,+ "y": 880+ },+ "data": {+ "label": "App Launcher"+ },+ "width": 75,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 1000,+ "y": 880+ },+ "dragging": false+ },+ {+ "id": "appList-1769755676665",+ "type": "appList",+ "position": {+ "x": 1320,+ "y": 880+ },+ "data": {+ "label": "App List"+ },+ "width": 60,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 1320,+ "y": 880+ },+ "dragging": false+ },+ {+ "id": "simpleMemory-1769876597527",+ "type": "simpleMemory",+ "position": {+ "x": 1700,+ "y": 180+ },+ "data": {+ "label": "Simple Memory"+ },+ "width": 87,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 1700,+ "y": 180+ },+ "dragging": true+ },+ {+ "id": "location-1769884704270",+ "type": "location",+ "position": {+ "x": 800,+ "y": 880+ },+ "data": {+ "label": "Location"+ },+ "width": 60,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 800,+ "y": 880+ },+ "dragging": false+ },+ {+ "id": "systemInfo-1769884739936",+ "type": "systemInfo",+ "position": {+ "x": 1220,+ "y": 880+ },+ "data": {+ "label": "System Info"+ },+ "width": 64,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 1220,+ "y": 880+ },+ "dragging": false+ },+ {+ "id": "deviceStateAutomation-1769884748460",+ "type": "deviceStateAutomation",+ "position": {+ "x": 1100,+ "y": 880+ },+ "data": {+ "label": "Device State"+ },+ "width": 67,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 1100,+ "y": 880+ },+ "dragging": false+ },+ {+ "id": "pythonExecutor-1769889650412",+ "type": "pythonExecutor",+ "position": {+ "x": 2220,+ "y": 880+ },+ "data": {+ "label": "Python Executor"+ },+ "width": 89,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 2220,+ "y": 880+ },+ "dragging": false+ },+ {+ "id": "javascriptExecutor-1769889652348",+ "type": "javascriptExecutor",+ "position": {+ "x": 2360,+ "y": 880+ },+ "data": {+ "label": "JavaScript Executor"+ },+ "width": 105,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 2360,+ "y": 880+ },+ "dragging": true+ },+ {+ "id": "whatsappReceive-1769893112838",+ "type": "whatsappReceive",+ "position": {+ "x": 960,+ "y": 20+ },+ "data": {+ "label": "WhatsApp Receive"+ },+ "width": 101,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 960,+ "y": 20+ },+ "dragging": false+ },+ {+ "id": "socialReceive-1770042669065",+ "type": "socialReceive",+ "position": {+ "x": 1280,+ "y": -80+ },+ "data": {+ "label": "Social Receive"+ },+ "width": 260,+ "height": 160,+ "selected": false,+ "positionAbsolute": {+ "x": 1280,+ "y": -80+ },+ "dragging": false+ },+ {+ "id": "whatsappSend-1770051996917",+ "type": "whatsappSend",+ "position": {+ "x": 2860,+ "y": 20+ },+ "data": {+ "label": "WhatsApp Send"+ },+ "width": 87,+ "height": 82,+ "selected": true,+ "positionAbsolute": {+ "x": 2860,+ "y": 20+ },+ "dragging": true+ },+ {+ "id": "chatAgent-1770060581808",+ "type": "chatAgent",+ "position": {+ "x": 1880,+ "y": -80+ },+ "data": {+ "label": "Zeenie"+ },+ "width": 260,+ "height": 160,+ "selected": false,+ "positionAbsolute": {+ "x": 1880,+ "y": -80+ },+ "dragging": false+ },+ {+ "id": "gmaps_locations-1770070846926",+ "type": "gmaps_locations",+ "position": {+ "x": 3240,+ "y": 880+ },+ "data": {+ "label": "GMaps Locations"+ },+ "width": 93,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 3240,+ "y": 880+ },+ "dragging": false+ },+ {+ "id": "gmaps_nearby_places-1770070848430",+ "type": "gmaps_nearby_places",+ "position": {+ "x": 3340,+ "y": 880+ },+ "data": {+ "label": "GMaps Nearby Places"+ },+ "width": 118,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 3340,+ "y": 880+ },+ "dragging": true+ },+ {+ "id": "coding_agent-1770070861999",+ "type": "coding_agent",+ "position": {+ "x": 2020,+ "y": 520+ },+ "data": {+ "label": "Coding Agent"+ },+ "width": 260,+ "height": 160,+ "selected": false,+ "positionAbsolute": {+ "x": 2020,+ "y": 520+ },+ "dragging": false+ },+ {+ "id": "web_agent-1770070863433",+ "type": "web_agent",+ "position": {+ "x": 1540,+ "y": 520+ },+ "data": {+ "label": "Web Control Agent"+ },+ "width": 260,+ "height": 160,+ "selected": false,+ "positionAbsolute": {+ "x": 1540,+ "y": 520+ },+ "dragging": true+ },+ {+ "id": "task_agent-1770070864827",+ "type": "task_agent",+ "position": {+ "x": 2580,+ "y": 520+ },+ "data": {+ "label": "Task Management Agent"+ },+ "width": 260,+ "height": 160,+ "selected": false,+ "positionAbsolute": {+ "x": 2580,+ "y": 520+ },+ "dragging": false+ },+ {+ "id": "socialSend-1770073309846",+ "type": "socialSend",+ "position": {+ "x": 2400,+ "y": -40+ },+ "data": {+ "label": "Social Send"+ },+ "width": 260,+ "height": 160,+ "selected": false,+ "positionAbsolute": {+ "x": 2400,+ "y": -40+ },+ "dragging": false+ },+ {+ "id": "whatsappDb-1770080085316",+ "type": "whatsappDb",+ "position": {+ "x": 3060,+ "y": 880+ },+ "data": {+ "label": "WhatsApp DB"+ },+ "width": 76,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 3060,+ "y": 880+ },+ "dragging": false+ },+ {+ "id": "android_agent-1770080279045",+ "type": "android_agent",+ "position": {+ "x": 1000,+ "y": 520+ },+ "data": {+ "label": "Android Control Agent"+ },+ "width": 260,+ "height": 160,+ "selected": false,+ "positionAbsolute": {+ "x": 1000,+ "y": 520+ },+ "dragging": true+ },+ {+ "id": "masterSkill-1770080471262",+ "type": "masterSkill",+ "position": {+ "x": 700,+ "y": 880+ },+ "data": {+ "label": "Master Skill 1"+ },+ "width": 71,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 700,+ "y": 880+ },+ "dragging": false+ },+ {+ "id": "masterSkill-1770193690331",+ "type": "masterSkill",+ "position": {+ "x": 1940,+ "y": 180+ },+ "data": {+ "label": "Master Skill 2"+ },+ "width": 73,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 1940,+ "y": 180+ },+ "dragging": false+ },+ {+ "id": "masterSkill-1770193844078",+ "type": "masterSkill",+ "position": {+ "x": 1500,+ "y": 880+ },+ "data": {+ "label": "Master Skill 3"+ },+ "width": 73,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 1500,+ "y": 880+ },+ "dragging": false+ },+ {+ "id": "masterSkill-1770193849164",+ "type": "masterSkill",+ "position": {+ "x": 2000,+ "y": 880+ },+ "data": {+ "label": "Master Skill 4"+ },+ "width": 73,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 2000,+ "y": 880+ },+ "dragging": false+ },+ {+ "id": "simpleMemory-1770194610205",+ "type": "simpleMemory",+ "position": {+ "x": 760,+ "y": 660+ },+ "data": {+ "label": "Simple Memory 1"+ },+ "width": 95,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 760,+ "y": 660+ },+ "dragging": true+ },+ {+ "id": "simpleMemory-1770194632219",+ "type": "simpleMemory",+ "position": {+ "x": 1400,+ "y": 660+ },+ "data": {+ "label": "Simple Memory 2"+ },+ "width": 97,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 1400,+ "y": 660+ },+ "dragging": false+ },+ {+ "id": "simpleMemory-1770194967215",+ "type": "simpleMemory",+ "position": {+ "x": 1900,+ "y": 680+ },+ "data": {+ "label": "Simple Memory 3"+ },+ "width": 97,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 1900,+ "y": 680+ },+ "dragging": true+ },+ {+ "id": "console-1770195247780",+ "type": "console",+ "position": {+ "x": 2220,+ "y": 160+ },+ "data": {+ "label": "Console 1"+ },+ "width": 60,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 2220,+ "y": 160+ },+ "dragging": true+ },+ {+ "id": "console-1770195249519",+ "type": "console",+ "position": {+ "x": 1320,+ "y": 560+ },+ "data": {+ "label": "Console 2"+ },+ "width": 60,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 1320,+ "y": 560+ },+ "dragging": false+ },+ {+ "id": "console-1770195251903",+ "type": "console",+ "position": {+ "x": 1860,+ "y": 540+ },+ "data": {+ "label": "Console 3"+ },+ "width": 60,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 1860,+ "y": 540+ },+ "dragging": false+ },+ {+ "id": "console-1770195252563",+ "type": "console",+ "position": {+ "x": 2320,+ "y": 540+ },+ "data": {+ "label": "Console 4"+ },+ "width": 60,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 2320,+ "y": 540+ },+ "dragging": false+ },+ {+ "id": "console-1770213610482",+ "type": "console",+ "position": {+ "x": 2880,+ "y": 440+ },+ "data": {+ "label": "Console"+ },+ "width": 60,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 2880,+ "y": 440+ },+ "dragging": false+ },+ {+ "id": "masterSkill-1770213648261",+ "type": "masterSkill",+ "position": {+ "x": 2560,+ "y": 880+ },+ "data": {+ "label": "Master Skill"+ },+ "width": 63,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 2560,+ "y": 880+ },+ "dragging": false+ },+ {+ "id": "simpleMemory-1770213659809",+ "type": "simpleMemory",+ "position": {+ "x": 2440,+ "y": 660+ },+ "data": {+ "label": "Simple Memory 4"+ },+ "width": 97,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 2440,+ "y": 660+ },+ "dragging": false+ },+ {+ "id": "social_agent-1770213991252",+ "type": "social_agent",+ "position": {+ "x": 3020,+ "y": 520+ },+ "data": {+ "label": "Social Media Agent"+ },+ "width": 260,+ "height": 160,+ "selected": false,+ "positionAbsolute": {+ "x": 3020,+ "y": 520+ },+ "dragging": false+ },+ {+ "id": "whatsappSend-1770214044603",+ "type": "whatsappSend",+ "position": {+ "x": 3140,+ "y": 880+ },+ "data": {+ "label": "WhatsApp Send 1"+ },+ "width": 95,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 3140,+ "y": 880+ },+ "dragging": false+ },+ {+ "id": "masterSkill-1770214062703",+ "type": "masterSkill",+ "position": {+ "x": 2900,+ "y": 880+ },+ "data": {+ "label": "Master Skill 5"+ },+ "width": 73,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 2900,+ "y": 880+ },+ "dragging": false+ },+ {+ "id": "simpleMemory-1770214068738",+ "type": "simpleMemory",+ "position": {+ "x": 2820,+ "y": 720+ },+ "data": {+ "label": "Simple Memory 5"+ },+ "width": 97,+ "height": 82,+ "selected": false,+ "positionAbsolute": {+ "x": 2820,+ "y": 720+ },+ "dragging": false+ }+ ],+ "edges": [+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "whatsappReceive-1769893112838",+ "sourceHandle": "output-main",+ "target": "socialReceive-1770042669065",+ "targetHandle": "input-main",+ "id": "reactflow__edge-whatsappReceive-1769893112838output-main-socialReceive-1770042669065input-main",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "assistantPersonality-1769755203568",+ "sourceHandle": "output-main",+ "target": "chatAgent-1770060581808",+ "targetHandle": "input-skill",+ "id": "reactflow__edge-assistantPersonality-1769755203568output-main-chatAgent-1770060581808input-skill",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "simpleMemory-1769876597527",+ "sourceHandle": "output-memory",+ "target": "chatAgent-1770060581808",+ "targetHandle": "input-memory",+ "id": "reactflow__edge-simpleMemory-1769876597527output-memory-chatAgent-1770060581808input-memory",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "socialReceive-1770042669065",+ "sourceHandle": "output-media",+ "target": "chatAgent-1770060581808",+ "targetHandle": "input-main",+ "id": "reactflow__edge-socialReceive-1770042669065output-media-chatAgent-1770060581808input-main",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "socialReceive-1770042669065",+ "sourceHandle": "output-metadata",+ "target": "chatAgent-1770060581808",+ "targetHandle": "input-main",+ "id": "reactflow__edge-socialReceive-1770042669065output-metadata-chatAgent-1770060581808input-main",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "socialReceive-1770042669065",+ "sourceHandle": "output-message",+ "target": "chatAgent-1770060581808",+ "targetHandle": "input-main",+ "id": "reactflow__edge-socialReceive-1770042669065output-message-chatAgent-1770060581808input-main",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "masterSkill-1770080471262",+ "sourceHandle": "output-main",+ "target": "android_agent-1770080279045",+ "targetHandle": "input-skill",+ "id": "reactflow__edge-masterSkill-1770080471262output-main-android_agent-1770080279045input-skill",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "appLauncher-1769755673740",+ "sourceHandle": "output-tool",+ "target": "android_agent-1770080279045",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-appLauncher-1769755673740output-tool-android_agent-1770080279045input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "batteryMonitor-1769755671312",+ "sourceHandle": "output-tool",+ "target": "android_agent-1770080279045",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-batteryMonitor-1769755671312output-tool-android_agent-1770080279045input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "deviceStateAutomation-1769884748460",+ "sourceHandle": "output-tool",+ "target": "android_agent-1770080279045",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-deviceStateAutomation-1769884748460output-tool-android_agent-1770080279045input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "systemInfo-1769884739936",+ "sourceHandle": "output-tool",+ "target": "android_agent-1770080279045",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-systemInfo-1769884739936output-tool-android_agent-1770080279045input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "appList-1769755676665",+ "sourceHandle": "output-tool",+ "target": "android_agent-1770080279045",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-appList-1769755676665output-tool-android_agent-1770080279045input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "location-1769884704270",+ "sourceHandle": "output-tool",+ "target": "android_agent-1770080279045",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-location-1769884704270output-tool-android_agent-1770080279045input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "masterSkill-1770193690331",+ "sourceHandle": "output-main",+ "target": "chatAgent-1770060581808",+ "targetHandle": "input-skill",+ "id": "reactflow__edge-masterSkill-1770193690331output-main-chatAgent-1770060581808input-skill",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "httpRequest-1769755308753",+ "sourceHandle": "output-tool",+ "target": "web_agent-1770070863433",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-httpRequest-1769755308753output-tool-web_agent-1770070863433input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "webSearchTool-1769755286327",+ "sourceHandle": "output-tool",+ "target": "web_agent-1770070863433",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-webSearchTool-1769755286327output-tool-web_agent-1770070863433input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "pythonExecutor-1769889650412",+ "sourceHandle": "output-tool",+ "target": "coding_agent-1770070861999",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-pythonExecutor-1769889650412output-tool-coding_agent-1770070861999input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "javascriptExecutor-1769889652348",+ "sourceHandle": "output-tool",+ "target": "coding_agent-1770070861999",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-javascriptExecutor-1769889652348output-tool-coding_agent-1770070861999input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "masterSkill-1770193844078",+ "sourceHandle": "output-main",+ "target": "web_agent-1770070863433",+ "targetHandle": "input-skill",+ "id": "reactflow__edge-masterSkill-1770193844078output-main-web_agent-1770070863433input-skill",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "masterSkill-1770193849164",+ "sourceHandle": "output-main",+ "target": "coding_agent-1770070861999",+ "targetHandle": "input-skill",+ "id": "reactflow__edge-masterSkill-1770193849164output-main-coding_agent-1770070861999input-skill",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "web_agent-1770070863433",+ "sourceHandle": "output-top",+ "target": "chatAgent-1770060581808",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-web_agent-1770070863433output-top-chatAgent-1770060581808input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "simpleMemory-1770194610205",+ "sourceHandle": "output-memory",+ "target": "android_agent-1770080279045",+ "targetHandle": "input-memory",+ "id": "reactflow__edge-simpleMemory-1770194610205output-memory-android_agent-1770080279045input-memory",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "simpleMemory-1770194632219",+ "sourceHandle": "output-memory",+ "target": "web_agent-1770070863433",+ "targetHandle": "input-memory",+ "id": "reactflow__edge-simpleMemory-1770194632219output-memory-web_agent-1770070863433input-memory",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "coding_agent-1770070861999",+ "sourceHandle": "output-top",+ "target": "chatAgent-1770060581808",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-coding_agent-1770070861999output-top-chatAgent-1770060581808input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "simpleMemory-1770194967215",+ "sourceHandle": "output-memory",+ "target": "coding_agent-1770070861999",+ "targetHandle": "input-memory",+ "id": "reactflow__edge-simpleMemory-1770194967215output-memory-coding_agent-1770070861999input-memory",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "chatAgent-1770060581808",+ "sourceHandle": "output-main",+ "target": "console-1770195247780",+ "targetHandle": "input-main",+ "id": "reactflow__edge-chatAgent-1770060581808output-main-console-1770195247780input-main",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "android_agent-1770080279045",+ "sourceHandle": "output-main",+ "target": "console-1770195249519",+ "targetHandle": "input-main",+ "id": "reactflow__edge-android_agent-1770080279045output-main-console-1770195249519input-main",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "web_agent-1770070863433",+ "sourceHandle": "output-main",+ "target": "console-1770195251903",+ "targetHandle": "input-main",+ "id": "reactflow__edge-web_agent-1770070863433output-main-console-1770195251903input-main",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "coding_agent-1770070861999",+ "sourceHandle": "output-main",+ "target": "console-1770195252563",+ "targetHandle": "input-main",+ "id": "reactflow__edge-coding_agent-1770070861999output-main-console-1770195252563input-main",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "android_agent-1770080279045",+ "sourceHandle": "output-top",+ "target": "chatAgent-1770060581808",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-android_agent-1770080279045output-top-chatAgent-1770060581808input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "chatAgent-1770060581808",+ "sourceHandle": "output-main",+ "target": "socialSend-1770073309846",+ "targetHandle": "input-message",+ "id": "reactflow__edge-chatAgent-1770060581808output-main-socialSend-1770073309846input-message",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "task_agent-1770070864827",+ "sourceHandle": "output-top",+ "target": "chatAgent-1770060581808",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-task_agent-1770070864827output-top-chatAgent-1770060581808input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "task_agent-1770070864827",+ "sourceHandle": "output-main",+ "target": "console-1770213610482",+ "targetHandle": "input-main",+ "id": "reactflow__edge-task_agent-1770070864827output-main-console-1770213610482input-main",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "masterSkill-1770213648261",+ "sourceHandle": "output-main",+ "target": "task_agent-1770070864827",+ "targetHandle": "input-skill",+ "id": "reactflow__edge-masterSkill-1770213648261output-main-task_agent-1770070864827input-skill",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "simpleMemory-1770213659809",+ "sourceHandle": "output-memory",+ "target": "task_agent-1770070864827",+ "targetHandle": "input-memory",+ "id": "reactflow__edge-simpleMemory-1770213659809output-memory-task_agent-1770070864827input-memory",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "chatTrigger-1769755237666",+ "sourceHandle": "output-main",+ "target": "socialReceive-1770042669065",+ "targetHandle": "input-main",+ "id": "reactflow__edge-chatTrigger-1769755237666output-main-socialReceive-1770042669065input-main",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "socialSend-1770073309846",+ "sourceHandle": "output-main",+ "target": "whatsappSend-1770051996917",+ "targetHandle": "input-main",+ "id": "reactflow__edge-socialSend-1770073309846output-main-whatsappSend-1770051996917input-main",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "social_agent-1770213991252",+ "sourceHandle": "output-top",+ "target": "chatAgent-1770060581808",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-social_agent-1770213991252output-top-chatAgent-1770060581808input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "whatsappDb-1770080085316",+ "sourceHandle": "output-tool",+ "target": "social_agent-1770213991252",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-whatsappDb-1770080085316output-tool-social_agent-1770213991252input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "whatsappSend-1770214044603",+ "sourceHandle": "output-tool",+ "target": "social_agent-1770213991252",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-whatsappSend-1770214044603output-tool-social_agent-1770213991252input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "simpleMemory-1770214068738",+ "sourceHandle": "output-memory",+ "target": "social_agent-1770213991252",+ "targetHandle": "input-memory",+ "id": "reactflow__edge-simpleMemory-1770214068738output-memory-social_agent-1770213991252input-memory",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "masterSkill-1770214062703",+ "sourceHandle": "output-main",+ "target": "social_agent-1770213991252",+ "targetHandle": "input-skill",+ "id": "reactflow__edge-masterSkill-1770214062703output-main-social_agent-1770213991252input-skill",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "gmaps_locations-1770070846926",+ "sourceHandle": "output-tool",+ "target": "social_agent-1770213991252",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-gmaps_locations-1770070846926output-tool-social_agent-1770213991252input-tools",+ "selected": false+ },+ {+ "type": "smoothstep",+ "animated": true,+ "style": {+ "stroke": "#8be9fd",+ "strokeWidth": 3+ },+ "source": "gmaps_nearby_places-1770070848430",+ "sourceHandle": "output-tool",+ "target": "social_agent-1770213991252",+ "targetHandle": "input-tools",+ "id": "reactflow__edge-gmaps_nearby_places-1770070848430output-tool-social_agent-1770213991252input-tools",+ "selected": false+ }+ ],+ "createdAt": "2026-02-04T02:56:18.326Z",+ "lastModified": "2026-02-04T14:12:50.257Z",+ "version": "0.0.9"+}\ No newline at end of filediff --git a/package-lock.json b/package-lock.jsonindex 113dd37b..cafa86ab 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,13 @@{"name": "machinaos",- "version": "0.0.2",+ "version": "0.0.9","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "machinaos",- "version": "0.0.2",+ "version": "0.0.9",+ "hasInstallScript": true,"license": "MIT","workspaces": ["client"@@ -14,7 +15,8 @@"dependencies": {"concurrently": "^9.2.1","cross-env": "^7.0.3",- "rimraf": "^6.0.1"+ "rimraf": "^6.0.1",+ "whatsapp-rpc": "^0.0.5"},"bin": {"machinaos": "bin/cli.js"@@ -5857,6 +5859,29 @@"node": ">=0.10.0"}},+ "node_modules/execa": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz",+ "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==",+ "license": "MIT",+ "dependencies": {+ "cross-spawn": "^7.0.3",+ "get-stream": "^8.0.1",+ "human-signals": "^5.0.0",+ "is-stream": "^3.0.0",+ "merge-stream": "^2.0.0",+ "npm-run-path": "^5.1.0",+ "onetime": "^6.0.0",+ "signal-exit": "^4.1.0",+ "strip-final-newline": "^3.0.0"+ },+ "engines": {+ "node": ">=16.17"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/execa?sponsor=1"+ }+ },"node_modules/extend": {"version": "3.0.2","resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",@@ -6107,6 +6132,24 @@"node": ">=6"}},+ "node_modules/get-stream": {+ "version": "8.0.1",+ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz",+ "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==",+ "license": "MIT",+ "engines": {+ "node": ">=16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/get-them-args": {+ "version": "1.3.2",+ "resolved": "https://registry.npmjs.org/get-them-args/-/get-them-args-1.3.2.tgz",+ "integrity": "sha512-LRn8Jlk+DwZE4GTlDbT3Hikd1wSHgLMme/+7ddlqKd7ldwR6LjJgTVWzBnR01wnYGe4KgrXjg287RaI22UHmAw==",+ "license": "MIT"+ },"node_modules/get-value": {"version": "2.0.6","resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz",@@ -6521,6 +6564,15 @@"url": "https://github.com/sponsors/wooorm"}},+ "node_modules/human-signals": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz",+ "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=16.17.0"+ }+ },"node_modules/iconv-lite": {"version": "0.6.3","resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",@@ -6736,6 +6788,18 @@"node": ">=0.10.0"}},+ "node_modules/is-stream": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz",+ "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==",+ "license": "MIT",+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/isexe": {"version": "2.0.0","resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",@@ -6856,6 +6920,19 @@"resolved": "https://registry.npmjs.org/khroma/-/khroma-2.1.0.tgz","integrity": "sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw=="},+ "node_modules/kill-port": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/kill-port/-/kill-port-2.0.1.tgz",+ "integrity": "sha512-e0SVOV5jFo0mx8r7bS29maVWp17qGqLBZ5ricNSajON6//kmb7qqqNnml4twNE8Dtj97UQD+gNFOaipS/q1zzQ==",+ "license": "MIT",+ "dependencies": {+ "get-them-args": "1.3.2",+ "shell-exec": "1.0.2"+ },+ "bin": {+ "kill-port": "cli.js"+ }+ },"node_modules/langium": {"version": "3.3.1","resolved": "https://registry.npmjs.org/langium/-/langium-3.3.1.tgz",@@ -7413,6 +7490,12 @@"url": "https://opencollective.com/unified"}},+ "node_modules/merge-stream": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",+ "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",+ "license": "MIT"+ },"node_modules/merge-value": {"version": "1.0.0","resolved": "https://registry.npmjs.org/merge-value/-/merge-value-1.0.0.tgz",@@ -8261,6 +8344,18 @@],"license": "MIT"},+ "node_modules/mimic-fn": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz",+ "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/minimatch": {"version": "3.1.2","resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",@@ -8367,6 +8462,33 @@"node": ">=0.10.0"}},+ "node_modules/npm-run-path": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz",+ "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==",+ "license": "MIT",+ "dependencies": {+ "path-key": "^4.0.0"+ },+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/npm-run-path/node_modules/path-key": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz",+ "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/numeral": {"version": "2.0.6","resolved": "https://registry.npmjs.org/numeral/-/numeral-2.0.6.tgz",@@ -8397,6 +8519,21 @@"url": "https://github.com/sindresorhus/on-change?sponsor=1"}},+ "node_modules/onetime": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz",+ "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==",+ "license": "MIT",+ "dependencies": {+ "mimic-fn": "^4.0.0"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/oniguruma-parser": {"version": "0.12.1","resolved": "https://registry.npmjs.org/oniguruma-parser/-/oniguruma-parser-0.12.1.tgz",@@ -10281,6 +10418,12 @@"node": ">=8"}},+ "node_modules/shell-exec": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/shell-exec/-/shell-exec-1.0.2.tgz",+ "integrity": "sha512-jyVd+kU2X+mWKMmGhx4fpWbPsjvD53k9ivqetutVW/BQ+WIZoDoP4d8vUMGezV6saZsiNoW2f9GIhg9Dondohg==",+ "license": "MIT"+ },"node_modules/shell-quote": {"version": "1.8.3","resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.3.tgz",@@ -10333,6 +10476,18 @@}}},+ "node_modules/signal-exit": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",+ "license": "ISC",+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },"node_modules/source-map-js": {"version": "1.2.1","resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",@@ -10435,6 +10590,18 @@"node": ">=8"}},+ "node_modules/strip-final-newline": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz",+ "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==",+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/strip-json-comments": {"version": "3.1.1","resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",@@ -11201,6 +11368,46 @@"url": "https://github.com/sponsors/wooorm"}},+ "node_modules/whatsapp-rpc": {+ "version": "0.0.5",+ "resolved": "https://registry.npmjs.org/whatsapp-rpc/-/whatsapp-rpc-0.0.5.tgz",+ "integrity": "sha512-k7mXm1bZdnpP22FA/tLrQEyAOGX9Dzz+qKgbv54SW8l3M34bTZApNDWWZmfz3V/7f5fjQ08gRy4mjGN5l9rXLw==",+ "hasInstallScript": true,+ "license": "MIT",+ "dependencies": {+ "chalk": "^5.3.0",+ "commander": "^11.1.0",+ "execa": "^8.0.1",+ "kill-port": "^2.0.1"+ },+ "bin": {+ "whatsapp-rpc": "scripts/cli.js"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/whatsapp-rpc/node_modules/chalk": {+ "version": "5.6.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.2.tgz",+ "integrity": "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==",+ "license": "MIT",+ "engines": {+ "node": "^12.17.0 || ^14.13 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },+ "node_modules/whatsapp-rpc/node_modules/commander": {+ "version": "11.1.0",+ "resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz",+ "integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==",+ "license": "MIT",+ "engines": {+ "node": ">=16"+ }+ },"node_modules/which": {"version": "2.0.2","resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",diff --git a/scripts/start.js b/scripts/start.jsindex 4e57fc44..2ba34eaa 100644--- a/scripts/start.js+++ b/scripts/start.js@@ -196,9 +196,11 @@ log('Starting services...');log('Press Ctrl+C to stop (use npm run stop to kill all services)\n');// Detect if we should run dev mode (vite) or production mode (static serve)+// Check for vite in both root (npm workspaces hoist here) and client node_modulesconst clientDist = resolve(ROOT, 'client', 'dist', 'index.html');-const clientNodeModules = resolve(ROOT, 'client', 'node_modules');-const isProduction = existsSync(clientDist) && !existsSync(clientNodeModules);+const hasVite = existsSync(resolve(ROOT, 'node_modules', 'vite'))+ || existsSync(resolve(ROOT, 'client', 'node_modules', 'vite'));+const isProduction = existsSync(clientDist) && !hasVite;if (isProduction) {log('Mode: Production (serving pre-built client)');diff --git a/server/constants.py b/server/constants.pyindex d59306be..9981f5b0 100644--- a/server/constants.py+++ b/server/constants.py@@ -27,6 +27,11 @@ AI_AGENT_TYPES: FrozenSet[str] = frozenset(['web_agent','task_agent','social_agent',+ 'travel_agent',+ 'tool_agent',+ 'productivity_agent',+ 'payments_agent',+ 'consumer_agent',])AI_MEMORY_TYPES: FrozenSet[str] = frozenset([diff --git a/server/main.py b/server/main.pyindex 5815e26c..fdecf275 100644--- a/server/main.py+++ b/server/main.py@@ -139,8 +139,8 @@ async def lifespan(app: FastAPI):logger.info("Temporal integration initialized successfully")except Exception as e:- logger.error(f"Failed to initialize Temporal: {str(e)}")- logger.warning("Falling back to Redis/sequential execution")+ logger.warning(f"Temporal not available (optional): {str(e)}")+ logger.info("Continuing without Temporal - using local parallel/sequential execution")logger.info("Services started successfully")yielddiff --git a/server/models/nodes.py b/server/models/nodes.pyindex 2edbb3cd..08f0fbae 100644--- a/server/models/nodes.py+++ b/server/models/nodes.py@@ -206,17 +206,18 @@ class StartNodeParams(BaseNodeParams):class CronSchedulerParams(BaseNodeParams):- """Parameters for cron scheduler node."""+ """Parameters for cron scheduler node. Also used as AI tool schema."""type: Literal["cronScheduler"]- frequency: Literal["seconds", "minutes", "hours", "days", "weeks", "months", "once"] = "minutes"- interval: int = Field(default=5, ge=1)- interval_minutes: int = Field(default=5, alias="intervalMinutes", ge=1)- interval_hours: int = Field(default=1, alias="intervalHours", ge=1)- daily_time: str = Field(default="09:00", alias="dailyTime")- weekly_time: str = Field(default="09:00", alias="weeklyTime")- weekday: str = Field(default="1")- monthly_time: str = Field(default="09:00", alias="monthlyTime")- month_day: str = Field(default="1", alias="monthDay")+ frequency: Literal["seconds", "minutes", "hours", "days", "weeks", "months", "once"] = Field(default="minutes", description="Schedule frequency")+ interval: int = Field(default=5, ge=1, description="Interval for seconds frequency (5-59)")+ interval_minutes: int = Field(default=5, ge=1, description="Interval for minutes frequency (1-59)")+ interval_hours: int = Field(default=1, ge=1, description="Interval for hours frequency (1-23)")+ daily_time: str = Field(default="09:00", description="Time for daily frequency (HH:MM format)")+ weekly_time: str = Field(default="09:00", description="Time for weekly frequency (HH:MM format)")+ weekday: str = Field(default="1", description="Day of week for weekly: '0'=Sunday .. '6'=Saturday")+ monthly_time: str = Field(default="09:00", description="Time for monthly frequency (HH:MM format)")+ month_day: str = Field(default="1", description="Day of month: '1'-'28' or 'L' for last day")+ timezone: str = Field(default="UTC", description="Timezone e.g. UTC, America/New_York, Asia/Tokyo")class WorkflowTriggerParams(BaseNodeParams):diff --git a/server/routers/websocket.py b/server/routers/websocket.pyindex f6bc3446..39eff719 100644--- a/server/routers/websocket.py+++ b/server/routers/websocket.py@@ -1738,6 +1738,62 @@ async def handle_save_skill_content(data: Dict[str, Any], websocket: WebSocket)return {"success": False, "error": f"Skill '{skill_name}' not found"}+@ws_handler()+async def handle_list_skill_folders(data: Dict[str, Any], websocket: WebSocket) -> Dict[str, Any]:+ """List top-level subdirectories under server/skills/.++ Returns folder names for the skill folder dropdown in MasterSkillEditor.+ """+ from pathlib import Path++ server_dir = Path(__file__).parent.parent+ skills_dir = server_dir / "skills"++ folders = []+ if skills_dir.exists():+ for item in sorted(skills_dir.iterdir()):+ if item.is_dir() and not item.name.startswith('.'):+ # Count SKILL.md files inside+ skill_count = len(list(item.rglob("SKILL.md")))+ folders.append({+ "name": item.name,+ "skill_count": skill_count+ })++ return {"success": True, "folders": folders}+++@ws_handler("folder")+async def handle_scan_skill_folder(data: Dict[str, Any], websocket: WebSocket) -> Dict[str, Any]:+ """Scan a subfolder under server/skills/ for SKILL.md files.++ Returns list of discovered skills with their metadata.+ Used by MasterSkillEditor when skillFolder is set.+ """+ from pathlib import Path+ from services.skill_loader import get_skill_loader++ folder = data["folder"]+ server_dir = Path(__file__).parent.parent+ target_dir = server_dir / "skills" / folder++ if not target_dir.exists():+ return {"success": False, "error": f"Folder not found: skills/{folder}"}++ skill_loader = get_skill_loader()+ skills = []+ for skill_md in target_dir.rglob("SKILL.md"):+ metadata = skill_loader._parse_skill_metadata(skill_md)+ if metadata:+ skills.append({+ "name": metadata.name,+ "description": metadata.description,+ "metadata": metadata.metadata+ })++ return {"success": True, "skills": skills, "folder": folder}++@ws_handler()async def handle_get_user_skills(data: Dict[str, Any], websocket: WebSocket) -> Dict[str, Any]:"""Get all user-created skills."""@@ -2067,6 +2123,8 @@ MESSAGE_HANDLERS: Dict[str, MessageHandler] = {# Skill Content (built-in and user skills)"get_skill_content": handle_get_skill_content,"save_skill_content": handle_save_skill_content,+ "scan_skill_folder": handle_scan_skill_folder,+ "list_skill_folders": handle_list_skill_folders,# Memory and Skill Clear/Reset"clear_memory": handle_clear_memory,diff --git a/server/services/ai.py b/server/services/ai.pyindex a7f9fdfa..9324e28d 100644--- a/server/services/ai.py+++ b/server/services/ai.py@@ -29,6 +29,7 @@ import jsonfrom core.config import Settingsfrom core.logging import get_logger, log_execution_time, log_api_callfrom services.auth import AuthService+from constants import ANDROID_SERVICE_NODE_TYPESlogger = get_logger(__name__)@@ -564,11 +565,11 @@ def create_agent_node(chat_model):# Model wants to use toolspending_tool_calls = response.tool_callsshould_continue = True- logger.info(f"[LangGraph] Agent requesting {len(pending_tool_calls)} tool call(s)")+ logger.debug(f"[LangGraph] Agent requesting {len(pending_tool_calls)} tool call(s)")# Debug: log raw tool calls to diagnose empty args issuefor tc in pending_tool_calls:- logger.info(f"[LangGraph] Raw tool_call object: {tc}")- logger.info(f"[LangGraph] Tool call type: {type(tc)}, keys: {tc.keys() if hasattr(tc, 'keys') else 'N/A'}")+ logger.debug(f"[LangGraph] Raw tool_call object: {tc}")+ logger.debug(f"[LangGraph] Tool call type: {type(tc)}, keys: {tc.keys() if hasattr(tc, 'keys') else 'N/A'}")return {"messages": [response], # Will be appended via operator.add@@ -603,12 +604,12 @@ def create_tool_node(tool_executor: Callable):tool_args = tool_call.get("args", {})tool_id = tool_call.get("id", "")- logger.info(f"[LangGraph] Executing tool: {tool_name} (args={tool_args})")+ logger.debug(f"[LangGraph] Executing tool: {tool_name} (args={tool_args})")try:# Directly await the async tool executor (proper async pattern)result = await tool_executor(tool_name, tool_args)- logger.info(f"[LangGraph] Tool {tool_name} returned: {str(result)[:100]}")+ logger.debug(f"[LangGraph] Tool {tool_name} returned: {str(result)[:100]}")except Exception as e:logger.error(f"[LangGraph] Tool execution failed: {tool_name}", error=str(e))result = {"error": str(e)}@@ -620,7 +621,7 @@ def create_tool_node(tool_executor: Callable):name=tool_name))- logger.info(f"[LangGraph] Tool {tool_name} completed, result added to messages")+ logger.debug(f"[LangGraph] Tool {tool_name} completed, result added to messages")return {"messages": tool_messages,@@ -1139,27 +1140,27 @@ class AIService:# Debug: Log response structure for o-series reasoning modelsif thinking_config and thinking_config.enabled:- logger.info(f"[AI Debug] Response type: {type(response).__name__}")- logger.info(f"[AI Debug] Response content type: {type(response.content)}")- logger.info(f"[AI Debug] Response content: {response.content[:500] if isinstance(response.content, str) else response.content}")+ logger.debug(f"[AI Debug] Response type: {type(response).__name__}")+ logger.debug(f"[AI Debug] Response content type: {type(response.content)}")+ logger.debug(f"[AI Debug] Response content: {response.content[:500] if isinstance(response.content, str) else response.content}")if hasattr(response, 'content_blocks'):- logger.info(f"[AI Debug] content_blocks: {response.content_blocks}")+ logger.debug(f"[AI Debug] content_blocks: {response.content_blocks}")if hasattr(response, 'additional_kwargs'):- logger.info(f"[AI Debug] additional_kwargs: {response.additional_kwargs}")+ logger.debug(f"[AI Debug] additional_kwargs: {response.additional_kwargs}")if hasattr(response, 'response_metadata'):- logger.info(f"[AI Debug] response_metadata: {response.response_metadata}")+ logger.debug(f"[AI Debug] response_metadata: {response.response_metadata}")# Extract text and thinking content from responsetext_content, thinking_content = extract_thinking_from_response(response)# Debug: Log extraction results- logger.info(f"[AI Debug] Extracted text_content: {repr(text_content[:200] if text_content else None)}")- logger.info(f"[AI Debug] Extracted thinking_content: {repr(thinking_content[:200] if thinking_content else None)}")+ logger.debug(f"[AI Debug] Extracted text_content: {repr(text_content[:200] if text_content else None)}")+ logger.debug(f"[AI Debug] Extracted thinking_content: {repr(thinking_content[:200] if thinking_content else None)}")# Use extracted text if available, fall back to raw contentresponse_text = text_content if text_content else response.content- logger.info(f"[AI Debug] Final response_text: {repr(response_text[:200] if response_text else None)}")+ logger.debug(f"[AI Debug] Final response_text: {repr(response_text[:200] if response_text else None)}")result = {"response": response_text,@@ -1185,7 +1186,7 @@ class AIService:"result": result,"execution_time": time.time() - start_time}- logger.info(f"[AI Debug] Returning final_result: success={final_result['success']}, result.response={repr(result.get('response', 'MISSING')[:100] if result.get('response') else 'None')}")+ logger.debug(f"[AI Debug] Returning final_result: success={final_result['success']}, result.response={repr(result.get('response', 'MISSING')[:100] if result.get('response') else 'None')}")return final_resultexcept Exception as e:@@ -1233,13 +1234,13 @@ class AIService:model = 'unknown'# EARLY LOG: Entry point for debugging- logger.info(f"[AIAgent] execute_agent called: node_id={node_id}, workflow_id={workflow_id}, skill_count={len(skill_data) if skill_data else 0}, tool_count={len(tool_data) if tool_data else 0}")+ logger.debug(f"[AIAgent] execute_agent called: node_id={node_id}, workflow_id={workflow_id}, skill_count={len(skill_data) if skill_data else 0}, tool_count={len(tool_data) if tool_data else 0}")if skill_data:for i, sd in enumerate(skill_data):logger.debug(f"[AIAgent] Skill {i}: type={sd.get('node_type')}, label={sd.get('label')}")if tool_data:for i, td in enumerate(tool_data):- logger.info(f"[AIAgent] Tool {i}: type={td.get('node_type')}, node_id={td.get('node_id')}")+ logger.debug(f"[AIAgent] Tool {i}: type={td.get('node_type')}, node_id={td.get('node_id')}")# Helper to broadcast status updates with workflow_id for proper scopingasync def broadcast_status(phase: str, details: Dict[str, Any] = None):@@ -1277,7 +1278,7 @@ class AIService:skill_prompt = skill_loader.get_registry_prompt(skill_names)if skill_prompt:system_message = f"{system_message}\n\n{skill_prompt}"- logger.info(f"[AIAgent] Enhanced system message with {len(skill_names)} skill contexts")+ logger.debug(f"[AIAgent] Enhanced system message with {len(skill_names)} skill contexts")# Flatten options collection from frontendoptions = parameters.get('options', {})@@ -1290,7 +1291,7 @@ class AIService:temperature = float(flattened.get('temperature', 0.7))max_tokens = int(flattened.get('max_tokens') or flattened.get('maxTokens') or 1000)- logger.info(f"[LangGraph] Agent: {provider}/{model}, tools={len(tool_data) if tool_data else 0}")+ logger.debug(f"[LangGraph] Agent: {provider}/{model}, tools={len(tool_data) if tool_data else 0}")# If no model specified or model doesn't match provider, use default from registryif not model or not is_model_valid_for_provider(model, provider):@@ -1314,7 +1315,7 @@ class AIService:level=flattened.get('thinkingLevel', 'medium'),format=flattened.get('reasoningFormat', 'parsed'),)- logger.info(f"[LangGraph] Thinking enabled: budget={thinking_config.budget}, effort={thinking_config.effort}")+ logger.debug(f"[LangGraph] Thinking enabled: budget={thinking_config.budget}, effort={thinking_config.effort}")# Broadcast: Initializing modelawait broadcast_status("initializing", {@@ -1397,7 +1398,7 @@ class AIService:if tool:tools.append(tool)tool_configs[tool.name] = config- logger.info(f"[LangGraph] Registered tool: name={tool.name}, node_id={config.get('node_id')}")+ logger.debug(f"[LangGraph] Registered tool: name={tool.name}, node_id={config.get('node_id')}")logger.debug(f"[LangGraph] Built {len(tools)} tools")@@ -1410,9 +1411,9 @@ class AIService:tool_node_id = config.get('node_id')# Log tool execution details for debugging glow animation- logger.info(f"[LangGraph] Executing tool: {tool_name} (args={tool_args})")- logger.info(f"[LangGraph] Available tool configs: {list(tool_configs.keys())}")- logger.info(f"[LangGraph] Tool node_id={tool_node_id}, workflow_id={workflow_id}, broadcaster={'yes' if broadcaster else 'no'}")+ logger.debug(f"[LangGraph] Executing tool: {tool_name} (args={tool_args})")+ logger.debug(f"[LangGraph] Available tool configs: {list(tool_configs.keys())}")+ logger.debug(f"[LangGraph] Tool node_id={tool_node_id}, workflow_id={workflow_id}, broadcaster={'yes' if broadcaster else 'no'}")# Broadcast executing status to the AI Agent nodeawait broadcast_status("executing_tool", {@@ -1649,7 +1650,7 @@ class AIService:provider = 'unknown'model = 'unknown'- logger.info(f"[ChatAgent] execute_chat_agent called: node_id={node_id}, workflow_id={workflow_id}, skill_count={len(skill_data) if skill_data else 0}, tool_count={len(tool_data) if tool_data else 0}")+ logger.debug(f"[ChatAgent] execute_chat_agent called: node_id={node_id}, workflow_id={workflow_id}, skill_count={len(skill_data) if skill_data else 0}, tool_count={len(tool_data) if tool_data else 0}")async def broadcast_status(phase: str, details: Dict[str, Any] = None):if broadcaster:@@ -1686,7 +1687,7 @@ class AIService:skill_prompt = skill_loader.get_registry_prompt(skill_names)if skill_prompt:system_message = f"{system_message}\n\n{skill_prompt}"- logger.info(f"[ChatAgent] Enhanced system message with {len(skill_names)} skill contexts")+ logger.debug(f"[ChatAgent] Enhanced system message with {len(skill_names)} skill contexts")# Build tools from tool_data using same method as AI Agent# This supports ALL tool types: calculatorTool, currentTimeTool, webSearchTool, androidTool, httpRequest@@ -1704,11 +1705,11 @@ class AIService:if tool:all_tools.append(tool)tool_node_configs[tool.name] = config- logger.info(f"[ChatAgent] Built tool: {tool.name} (type={config.get('node_type')}, node_id={config.get('node_id')})")+ logger.debug(f"[ChatAgent] Built tool: {tool.name} (type={config.get('node_type')}, node_id={config.get('node_id')})")- logger.info(f"[ChatAgent] Built {len(all_tools)} tools from tool_data")+ logger.debug(f"[ChatAgent] Built {len(all_tools)} tools from tool_data")- logger.info(f"[ChatAgent] Total tools available: {len(all_tools)}")+ logger.debug(f"[ChatAgent] Total tools available: {len(all_tools)}")# Debug: log all tool schemas to verify they're correctfor t in all_tools:schema = t.get_input_schema().model_json_schema()@@ -1724,7 +1725,7 @@ class AIService:temperature = float(flattened.get('temperature', 0.7))max_tokens = int(flattened.get('max_tokens') or flattened.get('maxTokens') or 1000)- logger.info(f"[ChatAgent] Provider: {provider}, Model: {model}")+ logger.debug(f"[ChatAgent] Provider: {provider}, Model: {model}")# Validate model for providerif not model or not is_model_valid_for_provider(model, provider):@@ -1827,7 +1828,7 @@ class AIService:if all_tools:# Use LangGraph for tool execution (like AI Agent)- logger.info(f"[ChatAgent] Using LangGraph with {len(all_tools)} tools")+ logger.debug(f"[ChatAgent] Using LangGraph with {len(all_tools)} tools")# Create tool executor callback - same pattern as AI Agent# Uses handlers/tools.py execute_tool() for actual execution@@ -1835,16 +1836,16 @@ class AIService:"""Execute a tool by name using handlers/tools.py (same as AI Agent)."""from services.handlers.tools import execute_tool- logger.info(f"[ChatAgent] Executing tool: {tool_name}, args={tool_args}")+ logger.debug(f"[ChatAgent] Executing tool: {tool_name}, args={tool_args}")# Get tool node config (contains node_id, node_type, parameters)config = tool_node_configs.get(tool_name, {})tool_node_id = config.get('node_id')- logger.info(f"[ChatAgent] Tool config: node_id={tool_node_id}, node_type={config.get('node_type')}, workflow_id={workflow_id}")+ logger.debug(f"[ChatAgent] Tool config: node_id={tool_node_id}, node_type={config.get('node_type')}, workflow_id={workflow_id}")# Broadcast executing status to tool node for glow effectif tool_node_id and broadcaster:- logger.info(f"[ChatAgent] Broadcasting 'executing' status to node {tool_node_id}")+ logger.debug(f"[ChatAgent] Broadcasting 'executing' status to node {tool_node_id}")await broadcaster.update_node_status(tool_node_id,"executing",@@ -1867,7 +1868,7 @@ class AIService:try:# Execute via handlers/tools.py - same pattern as AI Agentresult = await execute_tool(tool_name, tool_args, config)- logger.info(f"[ChatAgent] Tool executed successfully: {tool_name}")+ logger.debug(f"[ChatAgent] Tool executed successfully: {tool_name}")# Broadcast success to tool nodeif tool_node_id and broadcaster:@@ -2061,8 +2062,37 @@ class AIService:'whatsappDb': 'whatsapp_db','gmaps_locations': 'geocode','gmaps_nearby_places': 'nearby_places',+ 'timer': 'timer',+ 'cronScheduler': 'cron_scheduler','aiAgent': 'delegate_to_ai_agent','chatAgent': 'delegate_to_chat_agent',+ 'android_agent': 'delegate_to_android_agent',+ 'coding_agent': 'delegate_to_coding_agent',+ 'web_agent': 'delegate_to_web_agent',+ 'task_agent': 'delegate_to_task_agent',+ 'social_agent': 'delegate_to_social_agent',+ 'travel_agent': 'delegate_to_travel_agent',+ 'tool_agent': 'delegate_to_tool_agent',+ 'productivity_agent': 'delegate_to_productivity_agent',+ 'payments_agent': 'delegate_to_payments_agent',+ 'consumer_agent': 'delegate_to_consumer_agent',+ # Android service nodes (direct tool usage)+ 'batteryMonitor': 'android_battery',+ 'networkMonitor': 'android_network',+ 'systemInfo': 'android_system_info',+ 'location': 'android_location',+ 'appLauncher': 'android_app_launcher',+ 'appList': 'android_app_list',+ 'wifiAutomation': 'android_wifi',+ 'bluetoothAutomation': 'android_bluetooth',+ 'audioAutomation': 'android_audio',+ 'deviceStateAutomation': 'android_device_state',+ 'screenControlAutomation': 'android_screen_control',+ 'airplaneModeControl': 'android_airplane_mode',+ 'motionDetection': 'android_motion_detection',+ 'environmentalSensors': 'android_environmental_sensors',+ 'cameraControl': 'android_camera',+ 'mediaControl': 'android_media',}DEFAULT_TOOL_DESCRIPTIONS = {'calculatorTool': 'Perform mathematical calculations. Operations: add, subtract, multiply, divide, power, sqrt, mod, abs',@@ -2075,8 +2105,37 @@ class AIService:'whatsappDb': 'Query WhatsApp database - list contacts, search groups, get contact/group info, retrieve chat history.','gmaps_locations': 'Geocode addresses to coordinates or reverse geocode coordinates to addresses using Google Maps.','gmaps_nearby_places': 'Search for nearby places (restaurants, hospitals, banks, etc.) using Google Maps Places API.',+ 'timer': 'Wait/sleep for a specified duration. Specify duration (1-3600) and unit (seconds, minutes, or hours). Returns timestamp and elapsed time after waiting.',+ 'cronScheduler': 'Schedule a delayed or recurring execution. Supports seconds, minutes, hours, daily, weekly, monthly frequencies with timezone. Use frequency to set schedule type, then set the relevant interval/time parameters.','aiAgent': 'Delegate a task to another AI Agent. The agent works independently without blocking.','chatAgent': 'Delegate a task to a Chat Agent. The agent works independently without blocking.',+ 'android_agent': 'Delegate a task to an Android Control Agent for device automation. Works independently.',+ 'coding_agent': 'Delegate a task to a Coding Agent for code execution. Works independently.',+ 'web_agent': 'Delegate a task to a Web Control Agent for web automation. Works independently.',+ 'task_agent': 'Delegate a task to a Task Management Agent for task automation. Works independently.',+ 'social_agent': 'Delegate a task to a Social Media Agent for social messaging. Works independently.',+ 'travel_agent': 'Delegate a task to a Travel Agent for travel planning and itinerary building. Works independently.',+ 'tool_agent': 'Delegate a task to a Tool Agent for multi-tool orchestration and complex task execution. Works independently.',+ 'productivity_agent': 'Delegate a task to a Productivity Agent for scheduling, reminders, and workflow automation. Works independently.',+ 'payments_agent': 'Delegate a task to a Payments Agent for payment processing, invoice generation, and financial operations. Works independently.',+ 'consumer_agent': 'Delegate a task to a Consumer Agent for customer support, product recommendations, and order management. Works independently.',+ # Android service nodes (direct tool usage)+ 'batteryMonitor': 'Monitor Android battery status, level, charging state, temperature, and health.',+ 'networkMonitor': 'Monitor Android network connectivity, type, and internet availability.',+ 'systemInfo': 'Get Android device and OS information including version, API level, memory, hardware.',+ 'location': 'Get Android GPS location with latitude, longitude, accuracy, and provider.',+ 'appLauncher': 'Launch Android applications by package name.',+ 'appList': 'Get list of installed Android applications with package names and versions.',+ 'wifiAutomation': 'Control Android WiFi - enable, disable, get status, scan for networks.',+ 'bluetoothAutomation': 'Control Android Bluetooth - enable, disable, get status, paired devices.',+ 'audioAutomation': 'Control Android volume and audio - get/set volume, mute, unmute.',+ 'deviceStateAutomation': 'Control Android device state - airplane mode, screen, power save, brightness.',+ 'screenControlAutomation': 'Control Android screen - brightness, wake, auto-brightness, timeout.',+ 'airplaneModeControl': 'Monitor and control Android airplane mode.',+ 'motionDetection': 'Read Android accelerometer and gyroscope - detect motion, shake, orientation.',+ 'environmentalSensors': 'Read Android environmental sensors - temperature, humidity, pressure, light.',+ 'cameraControl': 'Control Android camera - get info, take photos, camera capabilities.',+ 'mediaControl': 'Control Android media playback - volume, playback control, play media files.',}try:@@ -2240,6 +2299,26 @@ class AIService:return WebSearchSchema+ # Timer tool schema (dual-purpose: workflow node + AI tool)+ if node_type == 'timer':+ class TimerSchema(BaseModel):+ """Wait/sleep for a specified duration before continuing."""+ duration: int = Field(+ default=5,+ description="Duration to wait (1-3600)"+ )+ unit: str = Field(+ default="seconds",+ description="Time unit: 'seconds', 'minutes', or 'hours'"+ )++ return TimerSchema++ # Cron Scheduler tool schema (reuses CronSchedulerParams from models/nodes.py)+ if node_type == 'cronScheduler':+ from models.nodes import CronSchedulerParams+ return CronSchedulerParams+# WhatsApp send schema (existing node used as tool)if node_type == 'whatsappSend':class WhatsAppSendSchema(BaseModel):@@ -2404,6 +2483,46 @@ class AIService:return SocialSendSchema+ # Direct Android service node schema (connected directly to AI Agent tools handle)+ if node_type in ANDROID_SERVICE_NODE_TYPES:+ from services.android_service import SERVICE_ACTIONS++ _svc_id_map = {+ 'batteryMonitor': 'battery',+ 'networkMonitor': 'network',+ 'systemInfo': 'system_info',+ 'location': 'location',+ 'appLauncher': 'app_launcher',+ 'appList': 'app_list',+ 'wifiAutomation': 'wifi_automation',+ 'bluetoothAutomation': 'bluetooth_automation',+ 'audioAutomation': 'audio_automation',+ 'deviceStateAutomation': 'device_state',+ 'screenControlAutomation': 'screen_control',+ 'airplaneModeControl': 'airplane_mode',+ 'motionDetection': 'motion_detection',+ 'environmentalSensors': 'environmental_sensors',+ 'cameraControl': 'camera_control',+ 'mediaControl': 'media_control',+ }+ svc_id = _svc_id_map.get(node_type, node_type)+ actions = SERVICE_ACTIONS.get(svc_id, [])+ action_list = [a['value'] for a in actions] if actions else ['status']+ actions_desc = ', '.join(action_list)++ class AndroidServiceSchema(BaseModel):+ """Schema for a direct Android service tool."""+ action: str = Field(+ default=action_list[0] if action_list else 'status',+ description=f"Action to perform. Available: {actions_desc}"+ )+ parameters: Optional[Dict[str, Any]] = Field(+ default=None,+ description="Action-specific parameters (e.g., {{package_name: 'com.app'}} for app_launcher, {{volume: 50}} for audio)"+ )++ return AndroidServiceSchema+# Android toolkit schema - dynamic based on connected services# Follows LangChain dynamic tool binding patternif node_type == 'androidTool':@@ -2497,7 +2616,7 @@ class AIService:return NearbyPlacesSchema# AI Agent delegation schema (fire-and-forget async delegation)- if node_type in ('aiAgent', 'chatAgent'):+ if node_type in ('aiAgent', 'chatAgent', 'android_agent', 'coding_agent', 'web_agent', 'task_agent', 'social_agent', 'travel_agent', 'tool_agent', 'productivity_agent', 'payments_agent', 'consumer_agent'):agent_label = params.get('label', node_type)class DelegateToAgentSchema(BaseModel):diff --git a/server/services/android/client.py b/server/services/android/client.pyindex c4c2efd9..678b1950 100644--- a/server/services/android/client.py+++ b/server/services/android/client.py@@ -84,7 +84,7 @@ class RelayWebSocketClient:Tuple of (success: bool, error_message: str)"""try:- logger.info("[Relay] Connecting...", url=self.url)+ logger.debug("[Relay] Connecting...", url=self.url)timeout = aiohttp.ClientTimeout(total=None, connect=10, sock_read=300)self.session = aiohttp.ClientSession(timeout=timeout)@@ -97,7 +97,7 @@ class RelayWebSocketClient:self.connected = Trueself._running = True- logger.info("[Relay] WebSocket connected, waiting for server message...", url=self.base_url)+ logger.debug("[Relay] WebSocket connected, waiting for server message...", url=self.base_url)# Wait for connection.established eventmsg = await asyncio.wait_for(self.ws.receive(), timeout=10.0)@@ -105,7 +105,7 @@ class RelayWebSocketClient:if msg.type == aiohttp.WSMsgType.TEXT:data = json.loads(msg.data)method = data.get("method")- logger.info("[Relay] Received initial message", method=method)+ logger.debug("[Relay] Received initial message", method=method)# Handle both "welcome" and "connection.established" methodsif method in ("welcome", "connection.established"):@@ -167,7 +167,7 @@ class RelayWebSocketClient:Set to False when disconnecting due to connection drop(will try to auto-reconnect later)."""- logger.info("[Relay] Disconnecting...", clear_stored_session=clear_stored_session)+ logger.debug("[Relay] Disconnecting...", clear_stored_session=clear_stored_session)self._running = False# Cancel background tasks@@ -204,7 +204,7 @@ class RelayWebSocketClient:# Broadcast relay disconnection (fully disconnected from relay server)await broadcast_relay_disconnected()- logger.info("[Relay] Disconnected")+ logger.debug("[Relay] Disconnected")async def _clear_stored_session(self):"""Clear stored pairing session from database."""@@ -213,7 +213,7 @@ class RelayWebSocketClient:database = container.database()await database.clear_android_relay_session()- logger.info("[Relay] Cleared stored pairing session")+ logger.debug("[Relay] Cleared stored pairing session")except Exception as e:logger.warning("[Relay] Failed to clear stored session", error=str(e))@@ -231,7 +231,7 @@ class RelayWebSocketClient:async def _receive_loop(self):"""Background task to receive messages."""- logger.info("[Relay] Receive loop started")+ logger.debug("[Relay] Receive loop started")unexpected_disconnect = Falsetry:while self._running and self.ws and not self.ws.closed:@@ -263,7 +263,7 @@ class RelayWebSocketClient:finally:self._running = Falseself.connected = False- logger.info("[Relay] Receive loop stopped")+ logger.debug("[Relay] Receive loop stopped")# Broadcast relay disconnection if connection dropped unexpectedlyif unexpected_disconnect:@@ -299,7 +299,7 @@ class RelayWebSocketClient:"""Handle incoming JSON-RPC message."""# Log ALL incoming messages for debuggingmethod = data.get("method", "")- logger.info("[Relay] Received message", method=method, has_result="result" in data, has_error="error" in data)+ logger.debug("[Relay] Received message", method=method, has_result="result" in data, has_error="error" in data)# Check if response to pending requestif is_response(data):@@ -380,7 +380,7 @@ class RelayWebSocketClient:device_name=self.paired_device_name,session_token=self.session_token)- logger.info("[Relay] Pairing session saved for auto-reconnect")+ logger.debug("[Relay] Pairing session saved for auto-reconnect")except Exception as e:logger.warning("[Relay] Failed to save pairing session", error=str(e))@@ -416,20 +416,19 @@ class RelayWebSocketClient:# Schema: params = {"data": {...}}data = params.get("data", {})- logger.info("[Relay] relay.message received",- data_keys=list(data.keys()) if isinstance(data, dict) else "not_dict",- data=data)+ logger.debug("[Relay] relay.message received",+ data_keys=list(data.keys()) if isinstance(data, dict) else "not_dict")# Route to service response queue if matching request_id# Android app uses "request_id" (underscore), not "requestId" (camelCase)request_id = data.get("request_id")- logger.info("[Relay] Checking request_id", request_id=request_id, waiting_for=list(self._service_queues.keys()))+ logger.debug("[Relay] Checking request_id", request_id=request_id, waiting_for=list(self._service_queues.keys()))if request_id and request_id in self._service_queues:- logger.info("[Relay] Routing to service queue", request_id=request_id)+ logger.debug("[Relay] Routing to service queue", request_id=request_id)await self._service_queues[request_id].put(data)elif self.on_relay_message:- logger.info("[Relay] Passing to on_relay_message callback")+ logger.debug("[Relay] Passing to on_relay_message callback")await self.on_relay_message(data)else:logger.warning("[Relay] Unhandled relay message", request_id=request_id, data=data)@@ -491,11 +490,11 @@ class RelayWebSocketClient:if not self.paired:raise Exception("Not paired with Android device")- logger.info("[Relay] Sending relay.send RPC", data=data)+ logger.debug("[Relay] Sending relay.send RPC", service=data.get("service"), action=data.get("action"))# Schema: {"jsonrpc": "2.0", "method": "relay.send", "params": {"data": {...}}, "id": 1}result = await self.call("relay.send", {"data": data}, timeout=timeout)- logger.info("[Relay] relay.send RPC response", result=result)+ logger.debug("[Relay] relay.send RPC response", delivered=result.get("delivered") if isinstance(result, dict) else None)return result# =========================================================================@@ -545,15 +544,15 @@ class RelayWebSocketClient:"params": parameters or {}}, timeout=5.0)- logger.info("[Relay] Sent service request",+ logger.debug("[Relay] Sent service request",request_id=request_id,service_id=service_id,action=action)# Wait for response- logger.info("[Relay] Waiting for response", request_id=request_id, timeout=timeout)+ logger.debug("[Relay] Waiting for response", request_id=request_id, timeout=timeout)response = await asyncio.wait_for(response_queue.get(), timeout=timeout)- logger.info("[Relay] Service response received", request_id=request_id, response_keys=list(response.keys()) if isinstance(response, dict) else "not_dict")+ logger.debug("[Relay] Service response received", request_id=request_id)return responseexcept asyncio.TimeoutError:diff --git a/server/services/android_service.py b/server/services/android_service.pyindex 701dbfc0..d9b39cf1 100644--- a/server/services/android_service.py+++ b/server/services/android_service.py@@ -231,13 +231,12 @@ class AndroidService:device_id = relay_client.paired_device_iddevice_name = relay_client.paired_device_name- logger.info(+ logger.debug("[Android Service] Sending relay service request",service_id=service_id,action=action,device_id=device_id,- device_name=device_name,- parameters=parameters+ device_name=device_name)# Send service request via relay@@ -259,9 +258,8 @@ class AndroidService:# 2. {"data": {...}} (success implied)# 3. {"success": false, "error": "..."}# 4. Raw data object without wrapper- logger.info("[Android Service] Raw relay response",- response_keys=list(response.keys()) if isinstance(response, dict) else "not_dict",- response=response)+ logger.debug("[Android Service] Raw relay response",+ response_keys=list(response.keys()) if isinstance(response, dict) else "not_dict")# Check for explicit success field, otherwise infer from data presenceif 'success' in response:@@ -273,10 +271,10 @@ class AndroidService:data = response.get('data', response if 'success' not in response and 'error' not in response else {})error_msg = response.get('error')- logger.info("[Android Service] Relay response parsed",- success=success,- has_data=bool(data),- error=error_msg)+ logger.debug("[Android Service] Relay response parsed",+ success=success,+ has_data=bool(data),+ error=error_msg)if success:result = {@@ -316,7 +314,7 @@ class AndroidService:log_execution_time(logger, f"android_service_{service_id}_{action}_relay", start_time, time.time())- logger.info(+ logger.debug("[Android Service] Relay execution completed",node_id=node_id,service_id=service_id,@@ -381,7 +379,7 @@ class AndroidService:if relay_client and relay_client.is_paired():# Use relay for remote Android device- logger.info(+ logger.debug("[Android Service] Using relay connection",node_id=node_id,service_id=service_id,@@ -393,7 +391,7 @@ class AndroidService:else:# Use local HTTP connectionbase_url = f"http://{android_host}:{android_port}/api"- logger.info(+ logger.debug("[Android Service] Using local HTTP connection",node_id=node_id,service_id=service_id,@@ -443,7 +441,7 @@ class AndroidService:log_execution_time(logger, f"android_service_{service_id}_{action}", start_time, time.time())- logger.info(+ logger.debug("[Android Service] Execution completed",node_id=node_id,service_id=service_id,diff --git a/server/services/handlers/ai.py b/server/services/handlers/ai.pyindex 9914e43d..36e5b02c 100644--- a/server/services/handlers/ai.py+++ b/server/services/handlers/ai.py@@ -51,6 +51,10 @@ async def _collect_agent_connections(# Log incoming edges for debuggingincoming_edges = [e for e in edges if e.get('target') == node_id]logger.info(f"{log_prefix} Incoming edges to {node_id}: {len(incoming_edges)}")+ if not incoming_edges:+ # Debug: show all edge targets to diagnose missing connections+ edge_targets = set(e.get('target') for e in edges)+ logger.debug(f"{log_prefix} All edge targets in graph: {edge_targets}")for e in incoming_edges:logger.debug(f"{log_prefix} Edge: source={e.get('source')}, targetHandle={e.get('targetHandle')}")@@ -109,23 +113,19 @@ async def _collect_agent_connections(if not skill_cfg.get('enabled', False):continue- # Load instructions: use customized if available, otherwise load from skill folder- instructions = ''- if skill_cfg.get('isCustomized', False) and skill_cfg.get('instructions'):- # Use customized instructions from config- instructions = skill_cfg.get('instructions', '')- logger.debug(f"{log_prefix} Using customized instructions for {skill_key}")+ # DB is source of truth - use instructions from skillsConfig+ instructions = skill_cfg.get('instructions', '')+ if instructions:+ logger.debug(f"{log_prefix} Using DB instructions for {skill_key}")else:- # Load from skill folder via skill_loader+ # Fallback: load from skill folder for legacy data missing instructionstry:skill = skill_loader.load_skill(skill_key)if skill:instructions = skill.instructions- logger.debug(f"{log_prefix} Loaded instructions from skill folder for {skill_key}")+ logger.debug(f"{log_prefix} Fallback: loaded instructions from skill folder for {skill_key}")except Exception as e:logger.warning(f"{log_prefix} Failed to load skill {skill_key}: {e}")- # Fallback to config instructions if available- instructions = skill_cfg.get('instructions', '')# Create a skill entry for each enabled skill in the configskill_entry = {diff --git a/server/services/handlers/android.py b/server/services/handlers/android.pyindex 2dc962d4..f11700b8 100644--- a/server/services/handlers/android.py+++ b/server/services/handlers/android.py@@ -34,7 +34,27 @@ async def handle_android_service("""logger.debug(f"[ANDROID DEBUG] Matched! node_type={node_type}")- service_id = parameters.get('service_id', 'battery')+ # Derive service_id from node_type (primary) since hidden params may not be in DB.+ # Same map used in handlers/tools.py _execute_android_service().+ SERVICE_ID_MAP = {+ 'batteryMonitor': 'battery',+ 'networkMonitor': 'network',+ 'systemInfo': 'system_info',+ 'location': 'location',+ 'appLauncher': 'app_launcher',+ 'appList': 'app_list',+ 'wifiAutomation': 'wifi_automation',+ 'bluetoothAutomation': 'bluetooth_automation',+ 'audioAutomation': 'audio_automation',+ 'deviceStateAutomation': 'device_state',+ 'screenControlAutomation': 'screen_control',+ 'airplaneModeControl': 'airplane_mode',+ 'motionDetection': 'motion_detection',+ 'environmentalSensors': 'environmental_sensors',+ 'cameraControl': 'camera_control',+ 'mediaControl': 'media_control',+ }+ service_id = SERVICE_ID_MAP.get(node_type, parameters.get('service_id', 'battery'))action = parameters.get('action', 'status')service_params = parameters.get('parameters', {})android_host = parameters.get('android_host', 'localhost')@@ -54,7 +74,7 @@ async def handle_android_service(if key in parameters and parameters[key]:service_params[key] = parameters[key]- logger.debug(f"[ANDROID DEBUG] Extracted params: service_id={service_id}, action={action}, host={android_host}, port={android_port}, service_params={service_params}")+ logger.debug(f"[ANDROID DEBUG] node_type={node_type} -> service_id={service_id}, action={action}, host={android_host}, port={android_port}, service_params={service_params}")logger.debug(f"[ANDROID DEBUG] About to call android_service.execute_service")result = await android_service.execute_service(diff --git a/server/services/handlers/tools.py b/server/services/handlers/tools.pyindex 9d82d620..f3ee9223 100644--- a/server/services/handlers/tools.py+++ b/server/services/handlers/tools.py@@ -41,7 +41,7 @@ async def execute_tool(tool_name: str, tool_args: Dict[str, Any],"""node_type = config.get('node_type', '')- logger.info(f"[Tool] Executing tool '{tool_name}' (node_type: {node_type})")+ logger.debug(f"[Tool] Executing tool '{tool_name}' (node_type: {node_type})")# Calculator toolif node_type == 'calculatorTool':@@ -67,6 +67,30 @@ async def execute_tool(tool_name: str, tool_args: Dict[str, Any],if node_type == 'webSearchTool':return await _execute_web_search(tool_args, config.get('parameters', {}))+ # Timer tool (dual-purpose: workflow node + AI tool)+ # LLM fills duration/unit via Pydantic schema; calls existing handle_timer handler+ if node_type == 'timer':+ from services.handlers.utility import handle_timer+ parameters = {**config.get('parameters', {}), **tool_args}+ return await handle_timer(+ node_id=config.get('node_id', 'tool_timer'),+ node_type='timer',+ parameters=parameters,+ context={}+ )++ # Cron Scheduler tool (dual-purpose: workflow node + AI tool)+ # LLM fills schedule params via CronSchedulerParams schema; calls existing handler+ if node_type == 'cronScheduler':+ from services.handlers.utility import handle_cron_scheduler+ parameters = {**config.get('parameters', {}), **tool_args}+ return await handle_cron_scheduler(+ node_id=config.get('node_id', 'tool_cron_scheduler'),+ node_type='cronScheduler',+ parameters=parameters,+ context={}+ )+# WhatsApp send (existing node used as tool)if node_type == 'whatsappSend':return await _execute_whatsapp_send(tool_args, config.get('parameters', {}))@@ -92,7 +116,8 @@ async def execute_tool(tool_name: str, tool_args: Dict[str, Any],return await _execute_nearby_places(tool_args, config.get('parameters', {}))# AI Agent delegation (fire-and-forget async delegation)- if node_type in ('aiAgent', 'chatAgent'):+ # Includes specialized agents: android_agent, coding_agent, web_agent, task_agent, social_agent+ if node_type in ('aiAgent', 'chatAgent', 'android_agent', 'coding_agent', 'web_agent', 'task_agent', 'social_agent', 'travel_agent', 'tool_agent', 'productivity_agent', 'payments_agent', 'consumer_agent'):return await _execute_delegated_agent(tool_args, config)# Generic fallback for unknown node types@@ -134,7 +159,7 @@ async def _execute_calculator(args: Dict[str, Any]) -> Dict[str, Any]:try:result = operations[operation]()- logger.info(f"[Calculator] {operation}({a}, {b}) = {result}")+ logger.debug(f"[Calculator] {operation}({a}, {b}) = {result}")return {"operation": operation,"a": a,@@ -179,7 +204,7 @@ async def _execute_http_request(args: Dict[str, Any],except:default_headers = {}- logger.info(f"[HTTP Tool] {method} {full_url}")+ logger.debug(f"[HTTP Tool] {method} {full_url}")try:async with httpx.AsyncClient(timeout=30.0) as client:@@ -276,7 +301,7 @@ except Exception as e:temp_path = f.nametry:- logger.info(f"[Python Tool] Executing code (timeout: {timeout}s)")+ logger.debug(f"[Python Tool] Executing code (timeout: {timeout}s)")result = subprocess.run(['python', temp_path],capture_output=True,@@ -358,7 +383,7 @@ try {{temp_path = f.nametry:- logger.info(f"[JavaScript Tool] Executing code (timeout: {timeout}s)")+ logger.debug(f"[JavaScript Tool] Executing code (timeout: {timeout}s)")result = subprocess.run(['node', temp_path],capture_output=True,@@ -416,7 +441,7 @@ async def _execute_current_time(args: Dict[str, Any],"day_of_week": now.strftime("%A"),"timestamp": int(now.timestamp())}- logger.info(f"[CurrentTime] {timezone_str}: {result['datetime']}")+ logger.debug(f"[CurrentTime] {timezone_str}: {result['datetime']}")return resultexcept Exception as e:logger.error(f"[CurrentTime] Error: {e}")@@ -1139,6 +1164,24 @@ async def _execute_delegated_agent(args: Dict[str, Any],# Get child agent parameters from databasechild_params = await database.get_node_parameters(node_id) or {}+ # Inject API key - delegated agents bypass NodeExecutor._inject_api_keys,+ # so we must resolve the key here from the credential store+ if not child_params.get('api_key') and not child_params.get('apiKey'):+ from constants import detect_ai_provider+ provider = detect_ai_provider(node_type, child_params)+ key = await ai_service.auth.get_api_key(provider, "default")+ if key:+ child_params['api_key'] = key+ logger.debug(f"[Delegated Agent] Injected API key for provider={provider}")++ # Inject default model if not set+ if not child_params.get('model'):+ from constants import detect_ai_provider+ provider = detect_ai_provider(node_type, child_params)+ models = await ai_service.auth.get_stored_models(provider, "default")+ if models:+ child_params['model'] = models[0]+# Build prompt from task + contextfull_prompt = task_descriptionif task_context:@@ -1158,6 +1201,8 @@ async def _execute_delegated_agent(args: Dict[str, Any],agent_label = child_params.get('label', node_type)logger.info(f"[Delegated Agent] Starting task {task_id} for '{agent_label}' (node: {node_id})")+ logger.debug(f"[Delegated Agent] Context: {len(nodes)} nodes, {len(edges)} edges, "+ f"edge_targets={set(e.get('target') for e in edges)}")# Define the background coroutineasync def run_child_agent():diff --git a/server/services/handlers/utility.py b/server/services/handlers/utility.pyindex 4e8cc091..5c2aa0fe 100644--- a/server/services/handlers/utility.py+++ b/server/services/handlers/utility.py@@ -422,9 +422,9 @@ def _calculate_wait_seconds(parameters: Dict[str, Any]) -> int:case 'seconds':return int(parameters.get('interval', 30))case 'minutes':- return int(parameters.get('intervalMinutes', 5)) * 60+ return int(parameters.get('interval_minutes', 5)) * 60case 'hours':- return int(parameters.get('intervalHours', 1)) * 3600+ return int(parameters.get('interval_hours', 1)) * 3600case 'days':return 24 * 3600 # Wait 24 hourscase 'weeks':@@ -461,23 +461,23 @@ def _get_schedule_description(parameters: Dict[str, Any]) -> str:interval = parameters.get('interval', 30)return f"Every {interval} seconds"case 'minutes':- interval = parameters.get('intervalMinutes', 5)+ interval = parameters.get('interval_minutes', 5)return f"Every {interval} minutes"case 'hours':- interval = parameters.get('intervalHours', 1)+ interval = parameters.get('interval_hours', 1)return f"Every {interval} hours"case 'days':- time_str = parameters.get('dailyTime', '09:00')+ time_str = parameters.get('daily_time', '09:00')return f"Daily at {time_str}"case 'weeks':weekday = parameters.get('weekday', '1')- time_str = parameters.get('weeklyTime', '09:00')+ time_str = parameters.get('weekly_time', '09:00')days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']day_name = days[int(weekday)] if weekday.isdigit() else weekdayreturn f"Weekly on {day_name} at {time_str}"case 'months':- day = parameters.get('monthDay', '1')- time_str = parameters.get('monthlyTime', '09:00')+ day = parameters.get('month_day', '1')+ time_str = parameters.get('monthly_time', '09:00')return f"Monthly on day {day} at {time_str}"case 'once':return "Once (no repeat)"diff --git a/server/services/node_executor.py b/server/services/node_executor.pyindex 76938002..2dce9900 100644--- a/server/services/node_executor.py+++ b/server/services/node_executor.py@@ -114,6 +114,11 @@ class NodeExecutor:'web_agent': partial(handle_chat_agent, ai_service=self.ai_service, database=self.database),'task_agent': partial(handle_chat_agent, ai_service=self.ai_service, database=self.database),'social_agent': partial(handle_chat_agent, ai_service=self.ai_service, database=self.database),+ 'travel_agent': partial(handle_chat_agent, ai_service=self.ai_service, database=self.database),+ 'tool_agent': partial(handle_chat_agent, ai_service=self.ai_service, database=self.database),+ 'productivity_agent': partial(handle_chat_agent, ai_service=self.ai_service, database=self.database),+ 'payments_agent': partial(handle_chat_agent, ai_service=self.ai_service, database=self.database),+ 'consumer_agent': partial(handle_chat_agent, ai_service=self.ai_service, database=self.database),'simpleMemory': handle_simple_memory,# Maps'gmaps_create': partial(handle_create_map, maps_service=self.maps_service),diff --git a/server/services/skill_loader.py b/server/services/skill_loader.pyindex 4bb36c9c..bb67bba0 100644--- a/server/services/skill_loader.py+++ b/server/services/skill_loader.py@@ -68,24 +68,21 @@ class SkillLoader:"""self._registry.clear()- # Scan filesystem directories+ # Scan filesystem directories (recursive - finds SKILL.md in any subdirectory)for skill_dir in self._skill_dirs:if not skill_dir.exists():logger.debug(f"[SkillLoader] Skill directory not found: {skill_dir}")continue- for skill_path in skill_dir.iterdir():- if skill_path.is_dir():- skill_md = skill_path / "SKILL.md"- if skill_md.exists():- try:- metadata = self._parse_skill_metadata(skill_md)- if metadata:- metadata.path = skill_path- self._registry[metadata.name] = metadata- logger.debug(f"[SkillLoader] Loaded skill: {metadata.name}")- except Exception as e:- logger.error(f"[SkillLoader] Failed to parse {skill_md}: {e}")+ for skill_md in skill_dir.rglob("SKILL.md"):+ try:+ metadata = self._parse_skill_metadata(skill_md)+ if metadata:+ metadata.path = skill_md.parent+ self._registry[metadata.name] = metadata+ logger.debug(f"[SkillLoader] Loaded skill: {metadata.name}")+ except Exception as e:+ logger.error(f"[SkillLoader] Failed to parse {skill_md}: {e}")logger.info(f"[SkillLoader] Loaded {len(self._registry)} skills from filesystem")return self._registrydiff --git a/server/skills/GUIDE.md b/server/skills/GUIDE.mdnew file mode 100644index 00000000..53ed59d7--- /dev/null+++ b/server/skills/GUIDE.md@@ -0,0 +1,137 @@+# Skill Creation Guide++This guide explains how to create new skills for MachinaOs.++## Folder Structure++Skills are organized in subfolders under `server/skills/`:++```+server/skills/+├── GUIDE.md # This file+├── assistant/ # General-purpose assistant skills+│ ├── assistant-personality/SKILL.md+│ ├── code-skill/SKILL.md+│ ├── http-skill/SKILL.md+│ ├── maps-skill/SKILL.md+│ ├── memory-skill/SKILL.md+│ ├── scheduler-skill/SKILL.md+│ ├── web-search-skill/SKILL.md+│ └── whatsapp-skill/SKILL.md+└── android/ # Android device control skills+ ├── personality/SKILL.md+ └── skill/SKILL.md+```++Each top-level folder (e.g. `assistant`, `android`) appears as an option in the Master Skill node's folder dropdown. Skills inside are discovered recursively via `SKILL.md` files.++## Creating a New Skill++### 1. Create the skill directory++```+server/skills/<folder>/<skill-name>/SKILL.md+```++- `<folder>` - Group folder (use an existing one or create a new one)+- `<skill-name>` - Lowercase with hyphens (e.g. `my-new-skill`)++### 2. Write the SKILL.md file++Every skill requires a single `SKILL.md` file with YAML frontmatter followed by markdown instructions:++```markdown+---+name: my-new-skill+description: Brief description visible to the LLM when listing available skills+allowed-tools: tool1 tool2+metadata:+ author: your-name+ version: "1.0"+ category: general+ icon: "🔧"+ color: "#6366F1"+---++# My New Skill++Instructions for the AI model go here. Write in clear markdown.+The AI reads these instructions when the skill is activated.++## What This Skill Does++Describe the skill's capabilities.++## How to Use++Provide usage guidelines, examples, and constraints.+```++### Frontmatter Fields++| Field | Required | Description |+|-------|----------|-------------|+| `name` | Yes | Lowercase, hyphens only. Must match pattern `^[a-z0-9]+(-[a-z0-9]+)*$` |+| `description` | Yes | One-line summary shown in skill lists and to the LLM |+| `allowed-tools` | No | Space-delimited list of tool names the skill can use |+| `metadata` | No | Arbitrary key-value pairs (icon, color, category, version, author) |++### Name Format Rules++- Lowercase letters and numbers only+- Words separated by single hyphens+- No consecutive hyphens+- Examples: `my-skill`, `web-search-skill`, `code-skill`+- Invalid: `My_Skill`, `my--skill`, `MySkill`++## Optional Supporting Files++Skills can include additional files that are loaded alongside the main instructions:++```+server/skills/assistant/my-new-skill/+├── SKILL.md # Required: main skill file+├── scripts/ # Optional: code snippets+│ ├── helper.py+│ └── utils.js+└── references/ # Optional: reference documents+ ├── api-docs.md+ ├── config.json+ └── examples.txt+```++- **scripts/**: All files loaded as text, available to the AI as code context+- **references/**: Only `.md`, `.txt`, `.json` files loaded as reference material++## Creating a New Folder Group++To create a new skill group (appears as a new option in the folder dropdown):++1. Create a directory under `server/skills/`:+ ```+ mkdir server/skills/my-group+ ```++2. Add at least one skill with a `SKILL.md` file inside it:+ ```+ mkdir server/skills/my-group/my-skill+ # Create SKILL.md with frontmatter + instructions+ ```++3. The folder will automatically appear in the Master Skill node dropdown.++## How Skills Are Used++1. **Master Skill Node**: Select a folder from the dropdown. Enable/disable individual skills with checkboxes. Edit instructions inline.++2. **Individual Skill Nodes**: Each built-in skill also has a dedicated node in the Component Palette (e.g. WhatsApp Skill, Memory Skill). These connect directly to an AI Agent's skill handle.++3. **At Execution Time**: When the AI Agent runs, enabled skills' instructions are injected into the system prompt, giving the AI context about its available capabilities.++## Skill Content Lifecycle++1. **First Load**: Instructions are read from the `SKILL.md` file on disk+2. **Seeded to DB**: On first activation, instructions are saved to the database+3. **DB is Source of Truth**: Subsequent loads read from the database+4. **Customization**: Users can edit instructions in the UI. Edits are saved to DB only+5. **Reset**: "Reset to Default" reloads from the original `SKILL.md` file on diskdiff --git a/server/skills/android/personality/SKILL.md b/server/skills/android/personality/SKILL.mdnew file mode 100644index 00000000..1c596ef5--- /dev/null+++ b/server/skills/android/personality/SKILL.md@@ -0,0 +1,57 @@+---+name: android-personality+description: Android device assistant personality. Use when the user wants to interact with their Android phone or tablet in a natural, conversational way.+metadata:+ author: machina+ version: "1.0"+ category: assistant+ icon: "🤖"+ color: "#3DDC84"+---++# Android Device Assistant++You are an Android device assistant. Your role is to help users interact with their Android phone or tablet naturally and efficiently.++## Core Principles++1. **Device-Aware**: Always consider the device context - battery level, connectivity, and current state+2. **Action-Oriented**: Translate user requests into specific device actions+3. **Proactive**: Suggest related actions when helpful (e.g., "WiFi is off, want me to enable it?")+4. **Clear Feedback**: Always confirm what was done and report the result++## Communication Style++- Be concise and direct - users want quick device control+- Use plain language, not technical jargon+- Report device status in a readable format+- When an action fails, explain why and suggest alternatives++## Response Guidelines++When the user asks about their device:+1. Identify which Android service is needed (battery, wifi, bluetooth, apps, location, etc.)+2. Execute the appropriate action+3. Report the result clearly+4. Suggest follow-up actions if relevant++## Device Interaction Patterns++**Status Queries**: "What's my battery?", "Am I connected to WiFi?"+- Fetch the current status and present it clearly++**Control Actions**: "Turn off WiFi", "Set volume to 50%"+- Execute the action and confirm success++**Information Requests**: "What apps are installed?", "Where is my phone?"+- Retrieve the data and present it in a readable format++**Multi-Step Tasks**: "Save battery" (disable WiFi + reduce brightness + enable power save)+- Break into steps, execute each, and report progress++## Error Handling++- If the device is not connected, tell the user to check their connection+- If a permission is denied, guide the user to enable it in settings+- If an action fails, provide the error and suggest alternatives+- Never silently fail - always report what happeneddiff --git a/server/skills/android-skill/SKILL.md b/server/skills/android/skill/SKILL.mdsimilarity index 98%rename from server/skills/android-skill/SKILL.mdrename to server/skills/android/skill/SKILL.mdindex 94f8e4c8..50f03fa0 100644--- a/server/skills/android-skill/SKILL.md+++ b/server/skills/android/skill/SKILL.md@@ -5,6 +5,8 @@ metadata:author: machinaversion: "2.0"category: device+ icon: "📱"+ color: "#3DDC84"---# Android Device Controldiff --git a/server/skills/assistant-personality/SKILL.md b/server/skills/assistant/assistant-personality/SKILL.mdsimilarity index 97%rename from server/skills/assistant-personality/SKILL.mdrename to server/skills/assistant/assistant-personality/SKILL.mdindex 221f317e..6f27dfb4 100644--- a/server/skills/assistant-personality/SKILL.md+++ b/server/skills/assistant/assistant-personality/SKILL.md@@ -5,6 +5,8 @@ metadata:author: machinaversion: "1.0"category: assistant+ icon: "✨"+ color: "#D97706"---# Assistant Personalitydiff --git a/server/skills/code-skill/SKILL.md b/server/skills/assistant/code-skill/SKILL.mdsimilarity index 99%rename from server/skills/code-skill/SKILL.mdrename to server/skills/assistant/code-skill/SKILL.mdindex febdfb8b..9b421f4c 100644--- a/server/skills/code-skill/SKILL.md+++ b/server/skills/assistant/code-skill/SKILL.md@@ -6,6 +6,8 @@ metadata:author: machinaversion: "3.0"category: code+ icon: "💻"+ color: "#F59E0B"---# Code Executiondiff --git a/server/skills/http-skill/SKILL.md b/server/skills/assistant/http-skill/SKILL.mdsimilarity index 99%rename from server/skills/http-skill/SKILL.mdrename to server/skills/assistant/http-skill/SKILL.mdindex e3f0b67e..f6582ce4 100644--- a/server/skills/http-skill/SKILL.md+++ b/server/skills/assistant/http-skill/SKILL.md@@ -6,6 +6,8 @@ metadata:author: machinaversion: "2.0"category: integration+ icon: "🌐"+ color: "#EF4444"---# HTTP Requestsdiff --git a/server/skills/maps-skill/SKILL.md b/server/skills/assistant/maps-skill/SKILL.mdsimilarity index 99%rename from server/skills/maps-skill/SKILL.mdrename to server/skills/assistant/maps-skill/SKILL.mdindex e0007217..e9fe169b 100644--- a/server/skills/maps-skill/SKILL.md+++ b/server/skills/assistant/maps-skill/SKILL.md@@ -5,6 +5,8 @@ metadata:author: machinaversion: "3.0"category: location+ icon: "🗺️"+ color: "#4285F4"---# Location Servicesdiff --git a/server/skills/memory-skill/SKILL.md b/server/skills/assistant/memory-skill/SKILL.mdsimilarity index 99%rename from server/skills/memory-skill/SKILL.mdrename to server/skills/assistant/memory-skill/SKILL.mdindex c3e83a7f..cf3a7c46 100644--- a/server/skills/memory-skill/SKILL.md+++ b/server/skills/assistant/memory-skill/SKILL.md@@ -6,6 +6,8 @@ metadata:author: machinaversion: "2.0"category: memory+ icon: "🧠"+ color: "#8B5CF6"---# Memory Management Skilldiff --git a/server/skills/scheduler-skill/SKILL.md b/server/skills/assistant/scheduler-skill/SKILL.mdsimilarity index 98%rename from server/skills/scheduler-skill/SKILL.mdrename to server/skills/assistant/scheduler-skill/SKILL.mdindex f4e1263b..1819198e 100644--- a/server/skills/scheduler-skill/SKILL.md+++ b/server/skills/assistant/scheduler-skill/SKILL.md@@ -5,6 +5,8 @@ metadata:author: machinaversion: "2.0"category: automation+ icon: "⏰"+ color: "#10B981"---# Task Schedulingdiff --git a/server/skills/web-search-skill/SKILL.md b/server/skills/assistant/web-search-skill/SKILL.mdsimilarity index 99%rename from server/skills/web-search-skill/SKILL.mdrename to server/skills/assistant/web-search-skill/SKILL.mdindex 84d0c273..fc6fe4f3 100644--- a/server/skills/web-search-skill/SKILL.md+++ b/server/skills/assistant/web-search-skill/SKILL.md@@ -6,6 +6,8 @@ metadata:author: machinaversion: "1.0"category: search+ icon: "🔍"+ color: "#bd93f9"---# Web Search Skilldiff --git a/server/skills/whatsapp-skill/SKILL.md b/server/skills/assistant/whatsapp-skill/SKILL.mdsimilarity index 99%rename from server/skills/whatsapp-skill/SKILL.mdrename to server/skills/assistant/whatsapp-skill/SKILL.mdindex fd38fcb2..cb86845e 100644--- a/server/skills/whatsapp-skill/SKILL.md+++ b/server/skills/assistant/whatsapp-skill/SKILL.md@@ -5,6 +5,8 @@ metadata:author: machinaversion: "3.0"category: messaging+ icon: "💬"+ color: "#25D366"---# WhatsApp Messaging Skill