mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-22 18:45:19 +02:00
add dockerfile for rowboat app
This commit is contained in:
parent
6e5795d922
commit
33ac1cca70
7 changed files with 80 additions and 16 deletions
|
|
@ -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: "",
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue