feat: harden A2A funnel and paid proposal intake
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 7s

This commit is contained in:
OG T
2026-06-11 11:28:08 +08:00
parent a1856d08bc
commit 745ff300b5
128 changed files with 3265 additions and 853 deletions

View File

@@ -1,10 +1,15 @@
import { v4 as uuidv4 } from "uuid";
const API_BASE = "http://192.168.0.110:3000/api";
const MCP_API_BASE = "http://192.168.0.110:3000/api/mcp";
const API_KEY = "super-secret-mcp-key";
const API_BASE = (process.env.VIBEWORK_API_BASE || process.env.VIBEWORK_API_URL || process.env.API_BASE_URL || "http://192.168.0.188:3004/api").replace(/\/$/, "");
const MCP_API_BASE = (process.env.VIBEWORK_MCP_BASE || process.env.VIBEWORK_MCP_URL || process.env.MCP_API_BASE_URL || "http://192.168.0.188:3004/api/mcp").replace(/\/$/, "");
const API_KEY = process.env.MCP_API_KEY?.trim();
async function callTool(tool: string, payload: any) {
if (!API_KEY) {
console.error("[simulate-agent] MCP_API_KEY is required.");
process.exit(1);
}
async function callTool(tool: string, payload: unknown) {
const res = await fetch(`${MCP_API_BASE}/${tool}`, {
method: "POST",
headers: {