From 46cd12e60333b54495843e34d793dc53d8c22039 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 17:45:27 +0000 Subject: [PATCH 1/2] Initial plan From 0b7d92ecfb6b0445618a915981076ae0ad1c8d3c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 17:50:37 +0000 Subject: [PATCH 2/2] Add OpenClaw service integration support Co-authored-by: lippytm <65956507+lippytm@users.noreply.github.com> --- .env.example | 6 ++++++ src/config/index.ts | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/.env.example b/.env.example index 8839be6..446f833 100644 --- a/.env.example +++ b/.env.example @@ -22,3 +22,9 @@ VECTOR_DB_ENABLED=false # VECTOR_DB_TYPE=pinecone|weaviate|chroma # VECTOR_DB_API_KEY=your-api-key # VECTOR_DB_ENDPOINT=https://your-instance.vectordb.com + +# OpenClaw Configuration (Optional) +# Set OPENCLAW_ENABLED=true to enable OpenClaw features +# OPENCLAW_ENABLED=false +# OPENCLAW_API_KEY=your-api-key +# SERVICE_BASE_URL_OPENCLAW=https://api.openclaw.com diff --git a/src/config/index.ts b/src/config/index.ts index 61c983c..ca76761 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -38,6 +38,14 @@ export const ConfigSchema = z.object({ endpoint: z.string().url().optional(), }) .optional(), + + openClaw: z + .object({ + enabled: z.coerce.boolean().default(false), + apiKey: z.string().optional(), + baseUrl: z.string().url().optional(), + }) + .optional(), }); export type Config = z.infer; @@ -70,6 +78,11 @@ export function loadConfig(): Config { apiKey: process.env.VECTOR_DB_API_KEY, endpoint: process.env.VECTOR_DB_ENDPOINT, }, + openClaw: { + enabled: process.env.OPENCLAW_ENABLED, + apiKey: process.env.OPENCLAW_API_KEY, + baseUrl: process.env.SERVICE_BASE_URL_OPENCLAW, + }, }; // Parse and validate configuration