feat(agent): add controlled task execution

This commit is contained in:
2026-09-24 04:19:02 +08:00
parent d018bcae67
commit b31033e9ce
48 changed files with 14498 additions and 86 deletions
+17
View File
@@ -0,0 +1,17 @@
export const getInternalBridgeConfig = () => {
const baseUrl =
process.env.TJWATER_AGENT_INTERNAL_BASE_URL ?? "http://127.0.0.1:8787";
const internalToken = (
process.env.AGENT_INTERNAL_TOKEN ??
process.env.TJWATER_AGENT_INTERNAL_TOKEN ??
""
).trim();
if (!internalToken) {
throw new Error(
"internal Agent tool bridge is not configured; set the same AGENT_INTERNAL_TOKEN on the Agent and OpenCode processes",
);
}
return { baseUrl, internalToken };
};