From fa2b57f17762ca7d162c635ea124c7ef97ad7571 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Wed, 20 May 2026 21:56:11 +0000 Subject: [PATCH] openclaw: enable recruiter-api plugin (allowlist + manifest contracts) Plugin needs three things to load under OpenClaw 2026.5.x: 1. plugins.allow includes 'recruiter-api' (doctor --fix overwrites the ConfigMap-baked value, so re-patch via 'openclaw config patch --stdin' in the startup command after doctor runs). 2. 'openclaw plugins enable recruiter-api' to flip its registry entry. 3. manifest declares contracts.tools (added in recruiter-responder commit 83ffd9fa). Plus: VIKTOR_CHAT_ID env wired from secret/openclaw.viktor_chat_id so the plugin's polling loop knows which Telegram chat to deliver into. Co-Authored-By: Claude Opus 4.7 --- stacks/openclaw/main.tf | 8 +++++++- stacks/recruiter-responder/terragrunt.hcl | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/stacks/openclaw/main.tf b/stacks/openclaw/main.tf index 158ecfbb..3d670f7f 100644 --- a/stacks/openclaw/main.tf +++ b/stacks/openclaw/main.tf @@ -183,7 +183,7 @@ resource "kubernetes_config_map" "openclaw_config" { } } plugins = { - allow = ["memory-core"] + allow = ["memory-core", "recruiter-api"] slots = { memory = "memory-core" } load = { # /app/extensions is the legacy bundled-plugins path; OpenClaw @@ -516,6 +516,12 @@ resource "kubernetes_deployment" "openclaw" { node openclaw.mjs mcp set ha "{\"url\":\"$HA_SOFIA_MCP_URL\",\"transport\":\"streamable-http\"}" 2>/dev/null node openclaw.mjs mcp set context7 '{"command":"npx","args":["-y","@upstash/context7-mcp"]}' 2>/dev/null node openclaw.mjs mcp set playwright '{"url":"http://localhost:3000/mcp","transport":"streamable-http"}' 2>/dev/null + # doctor --fix overwrites plugins.allow with its bundled-plugins + # list. Re-add our third-party plugin to the allow list via + # `config patch`, then enable it. (Same pattern as mcp set above.) + echo '{"plugins":{"allow":["memory-core","recruiter-api","telegram","openrouter","brave","openai","codex"]}}' \ + | node openclaw.mjs config patch --stdin 2>/dev/null || true + node openclaw.mjs plugins enable recruiter-api 2>/dev/null || true exec node openclaw.mjs gateway --allow-unconfigured --bind lan EOC ] diff --git a/stacks/recruiter-responder/terragrunt.hcl b/stacks/recruiter-responder/terragrunt.hcl index ba47b0f7..9f09ba90 100644 --- a/stacks/recruiter-responder/terragrunt.hcl +++ b/stacks/recruiter-responder/terragrunt.hcl @@ -19,5 +19,5 @@ dependency "external-secrets" { inputs = { # Override per-deploy in CI / commit. - image_tag = "d7892396" + image_tag = "83ffd9fa" }