diff --git a/.env.example b/.env.example index 1a80fc02..e3b629ee 100644 --- a/.env.example +++ b/.env.example @@ -1,15 +1,15 @@ # Database Configuration -DATABASE_URL=postgres://ironclaw:password@localhost:5432/ironclaw +DATABASE_URL=postgres://localhost/ironclaw DATABASE_POOL_SIZE=10 # LLM Provider (NEAR AI) # NEAR AI provides a unified interface to all models with user authentication -# Session token is stored in ~/.near-agent/session.json and managed automatically. +# Session token is stored in ~/.ironclaw/session.json and managed automatically. # On first run, the agent will open a browser for OAuth authentication. NEARAI_MODEL=claude-3-5-sonnet-20241022 NEARAI_BASE_URL=https://cloud-api.near.ai NEARAI_AUTH_URL=https://private.near.ai -# NEARAI_SESSION_PATH=~/.near-agent/session.json # optional, default shown +# NEARAI_SESSION_PATH=~/.ironclaw/session.json # optional, default shown # Channel Configuration # CLI is always enabled diff --git a/README.md b/README.md index ce78526a..194b9e15 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ IronClaw is the AI assistant you can actually trust with your personal and profe ### Prerequisites - Rust 1.85+ -- PostgreSQL 15+ with pgvector extension +- PostgreSQL 15+ with [pgvector](https://github.com/pgvector/pgvector) extension - NEAR AI account (authentication handled via setup wizard) ### Build @@ -97,7 +97,7 @@ psql ironclaw -c "CREATE EXTENSION IF NOT EXISTS vector;" Run the setup wizard to configure IronClaw: ```bash -ironclaw setup +ironclaw onboard ``` The wizard handles database connection, NEAR AI authentication (via browser OAuth), @@ -191,7 +191,7 @@ External content passes through multiple security layers: ```bash # First-time setup (configures database, auth, etc.) -ironclaw setup +ironclaw onboard # Start interactive REPL cargo run @@ -210,6 +210,7 @@ cargo fmt cargo clippy --all --benches --tests --examples --all-features # Run tests +createdb ironclaw_test cargo test # Run specific test diff --git a/channels-src/slack/build.sh b/channels-src/slack/build.sh index 5b568c8d..5ab678f9 100755 --- a/channels-src/slack/build.sh +++ b/channels-src/slack/build.sh @@ -30,7 +30,7 @@ if [ -f "$WASM_PATH" ]; then wasm-tools strip slack.wasm -o slack.wasm echo "Built: slack.wasm ($(du -h slack.wasm | cut -f1))" - echo "Copy slack.wasm and slack.capabilities.json to ~/.near-agent/channels/" + echo "Copy slack.wasm and slack.capabilities.json to ~/.ironclaw/channels/" else echo "Error: WASM output not found at $WASM_PATH" exit 1 diff --git a/channels-src/telegram/build.sh b/channels-src/telegram/build.sh index 531ab762..3e4d7808 100755 --- a/channels-src/telegram/build.sh +++ b/channels-src/telegram/build.sh @@ -32,8 +32,8 @@ if [ -f "$WASM_PATH" ]; then echo "Built: telegram.wasm ($(du -h telegram.wasm | cut -f1))" echo "" echo "To install:" - echo " mkdir -p ~/.near-agent/channels" - echo " cp telegram.wasm telegram.capabilities.json ~/.near-agent/channels/" + echo " mkdir -p ~/.ironclaw/channels" + echo " cp telegram.wasm telegram.capabilities.json ~/.ironclaw/channels/" echo "" echo "Then add your bot token to secrets:" echo " # Set TELEGRAM_BOT_TOKEN in your environment or secrets store" diff --git a/channels-src/telegram/telegram.wasm b/channels-src/telegram/telegram.wasm index 14791860..f739b982 100644 Binary files a/channels-src/telegram/telegram.wasm and b/channels-src/telegram/telegram.wasm differ diff --git a/src/channels/web/types.rs b/src/channels/web/types.rs index 85420211..e476a0f6 100644 --- a/src/channels/web/types.rs +++ b/src/channels/web/types.rs @@ -314,6 +314,7 @@ impl WsServerMessage { SseEvent::Thinking { .. } => "thinking", SseEvent::ToolStarted { .. } => "tool_started", SseEvent::ToolCompleted { .. } => "tool_completed", + SseEvent::ToolResult { .. } => "tool_result", SseEvent::StreamChunk { .. } => "stream_chunk", SseEvent::Status { .. } => "status", SseEvent::ApprovalNeeded { .. } => "approval_needed",