fix(connections): restore relay route assembly after rebase

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-07-22 16:01:08 +00:00
1 parent 7a870321c8
commit d840070615
1 file changed
+4
+4
View File
@@ -10,6 +10,7 @@ import {
type DeploymentMode,
type PermissionKey,
connectToolAppSchema,
createConnectionTriggerSchema,
createToolStdioCommandTemplateSchema,
createToolApplicationSchema,
createToolConnectionSchema,
@@ -36,6 +37,7 @@ import {
unbindToolProfileBindingSchema,
updateToolApplicationSchema,
updateToolConnectionSchema,
updateConnectionTriggerSchema,
updateToolPolicySchema,
updateToolProfileEntrySchema,
updateToolProfileWithEntriesSchema,
@@ -44,6 +46,7 @@ import { validate } from "../middleware/validate.js";
import { getActorInfo, assertBoard, assertCompanyAccess, hasCompanyAccess } from "./authz.js";
import { badRequest, forbidden, notFound, unprocessable } from "../errors.js";
import { accessService, googleSheetsRobotEmailFromEnv, logActivity, toolAccessPolicyService, toolAccessService } from "../services/index.js";
import { connectionTriggerService } from "../services/connection-relay.js";
import { ToolGatewayHttpError, type ToolGatewayService } from "../services/tool-gateway.js";
/** Allowlist (e.g. Google Sheets allowed spreadsheet ids) lives in connection config. */
@@ -90,6 +93,7 @@ export function toolAccessRoutes(
const router = Router();
const svc = toolAccessService(db, options);
const policySvc = toolAccessPolicyService(db);
const triggerSvc = connectionTriggerService(db);
function configuredPublicBaseUrl() {
const raw = (