feat: 15 logic component Workers + cypher-executor auth/credentials routing
Component Workers: - Deploys if_control, switch, filter, merge, try_catch, wait, set, array_ops, string_ops, number_ops, date_ops, validate_json, ai_transform_compile, ai_transform_run, foreach_control as independent Workers, backing cypher-executor's SVC_* service bindings (fast internal RPC for logic components). cypher-executor routing: - New routes: /auth (recipe resolution), /credentials (CRUD), /webhooks/named (user-friendly alias for cmp_/rec_ hashes). - auth-recipe-seeds.ts: 20 pre-built platform auth recipes (Google Sheets, Gmail, Telegram, etc.) seeded into RECIPES KV. - graph-executor + cypher-handlers + search-nodes updated for the new resolution chain. - scripts/seed-auth-recipes.ts: one-shot tool to push seeds to KV. - wrangler.toml: 15 SVC_* bindings wired to the new logic Workers. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -28,6 +28,7 @@ export async function executeWebhookGraph(
|
||||
graph: Record<string, unknown>,
|
||||
triggerContext: Record<string, unknown>,
|
||||
token: string,
|
||||
apiKey?: string,
|
||||
): Promise<{ success: boolean; data?: unknown; error?: string; trace?: unknown; duration_ms: number }> {
|
||||
const parsed = graphSchema.safeParse(graph);
|
||||
if (!parsed.success) {
|
||||
@@ -35,7 +36,7 @@ export async function executeWebhookGraph(
|
||||
}
|
||||
|
||||
const loader = createComponentLoader(env);
|
||||
const executor = new GraphExecutor(loader, undefined, env);
|
||||
const executor = new GraphExecutor(loader, undefined, env, apiKey);
|
||||
const start = Date.now();
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user