add dockerfile for rowboat app

This commit is contained in:
ramnique 2025-01-13 17:08:47 +05:30
parent 6e5795d922
commit 33ac1cca70
7 changed files with 80 additions and 16 deletions

View file

@ -1,17 +1,6 @@
import { Workflow } from "@/app/lib/types";
import { projectsCollection } from "./mongodb";
import crypto from 'crypto';
import { z } from "zod";
export async function generateWebhookJwtSecret(projectId: string): Promise<string> {
const secret = crypto.randomBytes(32).toString('hex');
await projectsCollection.updateOne(
{ _id: projectId },
{ $set: { webhookJwtSecret: secret, webhookJwtSecretUpdatedAt: new Date().toISOString() } }
);
return secret;
}
export const baseWorkflow: z.infer<typeof Workflow> = {
projectId: "",
createdAt: "",

View file

@ -1,6 +1,6 @@
"use client";
import { DataSource, Workflow, WorkflowAgent, WorkflowPrompt, WorkflowTool, WithStringId } from "@/app/lib/types";
import { useReducer, Reducer, useState, useCallback, useEffect, useRef, Dispatch } from "react";
import { useReducer, Reducer, useState, useCallback, useEffect, useRef } from "react";
import { produce, applyPatches, enablePatches, produceWithPatches, Patch } from 'immer';
import { AgentConfig } from "./agent_config";
import { ToolConfig } from "./tool_config";