mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-06-03 19:25:19 +02:00
housekeeping: renames, unused imports
This commit is contained in:
parent
85adfcd139
commit
f7a3c8579d
59 changed files with 72 additions and 80 deletions
|
|
@ -8,7 +8,7 @@ import {
|
|||
updateSubscriptionPlan as libUpdateSubscriptionPlan,
|
||||
getEligibleModels as libGetEligibleModels
|
||||
} from "../lib/billing";
|
||||
import { authCheck } from "./auth_actions";
|
||||
import { authCheck } from "./auth.actions";
|
||||
import { USE_BILLING } from "../lib/feature_flags";
|
||||
import {
|
||||
AuthorizeRequest,
|
||||
|
|
@ -4,13 +4,10 @@ import {
|
|||
listToolkits as libListToolkits,
|
||||
listTools as libListTools,
|
||||
getConnectedAccount as libGetConnectedAccount,
|
||||
deleteConnectedAccount as libDeleteConnectedAccount,
|
||||
listAuthConfigs as libListAuthConfigs,
|
||||
createAuthConfig as libCreateAuthConfig,
|
||||
getToolkit as libGetToolkit,
|
||||
createConnectedAccount as libCreateConnectedAccount,
|
||||
getAuthConfig as libGetAuthConfig,
|
||||
deleteAuthConfig as libDeleteAuthConfig,
|
||||
ZToolkit,
|
||||
ZGetToolkitResponse,
|
||||
ZTool,
|
||||
|
|
@ -20,7 +17,7 @@ import {
|
|||
ZCredentials,
|
||||
} from "@/app/lib/composio/composio";
|
||||
import { ComposioConnectedAccount } from "@/app/lib/types/project_types";
|
||||
import { getProjectConfig, projectAuthCheck } from "./project_actions";
|
||||
import { getProjectConfig, projectAuthCheck } from "./project.actions";
|
||||
import { projectsCollection } from "../lib/mongodb";
|
||||
import { container } from "@/di/container";
|
||||
import { ICreateComposioTriggerDeploymentController } from "@/src/interface-adapters/controllers/composio-trigger-deployments/create-composio-trigger-deployment.controller";
|
||||
|
|
@ -28,7 +25,7 @@ import { IListComposioTriggerDeploymentsController } from "@/src/interface-adapt
|
|||
import { IDeleteComposioTriggerDeploymentController } from "@/src/interface-adapters/controllers/composio-trigger-deployments/delete-composio-trigger-deployment.controller";
|
||||
import { IListComposioTriggerTypesController } from "@/src/interface-adapters/controllers/composio-trigger-deployments/list-composio-trigger-types.controller";
|
||||
import { IDeleteComposioConnectedAccountController } from "@/src/interface-adapters/controllers/composio/delete-composio-connected-account.controller";
|
||||
import { authCheck } from "./auth_actions";
|
||||
import { authCheck } from "./auth.actions";
|
||||
|
||||
const createComposioTriggerDeploymentController = container.resolve<ICreateComposioTriggerDeploymentController>("createComposioTriggerDeploymentController");
|
||||
const listComposioTriggerDeploymentsController = container.resolve<IListComposioTriggerDeploymentsController>("listComposioTriggerDeploymentsController");
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
import { container } from "@/di/container";
|
||||
import { IListConversationsController } from "@/src/interface-adapters/controllers/conversations/list-conversations.controller";
|
||||
import { IFetchConversationController } from "@/src/interface-adapters/controllers/conversations/fetch-conversation.controller";
|
||||
import { authCheck } from "./auth_actions";
|
||||
import { authCheck } from "./auth.actions";
|
||||
|
||||
const listConversationsController = container.resolve<IListConversationsController>('listConversationsController');
|
||||
const fetchConversationController = container.resolve<IFetchConversationController>('fetchConversationController');
|
||||
|
|
@ -7,9 +7,9 @@ import {
|
|||
Workflow} from "../lib/types/workflow_types";
|
||||
import { DataSource } from "../lib/types/datasource_types";
|
||||
import { z } from 'zod';
|
||||
import { projectAuthCheck } from "./project_actions";
|
||||
import { projectAuthCheck } from "./project.actions";
|
||||
import { redisClient } from "../lib/redis";
|
||||
import { authorizeUserAction, logUsage } from "./billing_actions";
|
||||
import { authorizeUserAction, logUsage } from "./billing.actions";
|
||||
import { USE_BILLING } from "../lib/feature_flags";
|
||||
import { WithStringId } from "../lib/types/types";
|
||||
import { getEditAgentInstructionsResponse } from "../lib/copilot/copilot";
|
||||
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
import { projectsCollection } from '../lib/mongodb';
|
||||
import { z } from 'zod';
|
||||
import { projectAuthCheck } from './project_actions';
|
||||
import { projectAuthCheck } from './project.actions';
|
||||
import { CustomMcpServer } from '../lib/types/project_types';
|
||||
import { getMcpClient } from '../lib/mcp';
|
||||
import { WorkflowTool } from '../lib/types/workflow_types';
|
||||
import { authCheck } from './auth_actions';
|
||||
import { authCheck } from './auth.actions';
|
||||
|
||||
type McpServerType = z.infer<typeof CustomMcpServer>;
|
||||
|
||||
|
|
@ -4,7 +4,7 @@ import { dataSourcesCollection, dataSourceDocsCollection } from "../lib/mongodb"
|
|||
import { z } from 'zod';
|
||||
import { GetObjectCommand, PutObjectCommand } from "@aws-sdk/client-s3";
|
||||
import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
|
||||
import { projectAuthCheck } from "./project_actions";
|
||||
import { projectAuthCheck } from "./project.actions";
|
||||
import { WithStringId } from "../lib/types/types";
|
||||
import { DataSourceDoc } from "../lib/types/datasource_types";
|
||||
import { DataSource } from "../lib/types/datasource_types";
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
import { container } from "@/di/container";
|
||||
import { IListJobsController } from "@/src/interface-adapters/controllers/jobs/list-jobs.controller";
|
||||
import { IFetchJobController } from "@/src/interface-adapters/controllers/jobs/fetch-job.controller";
|
||||
import { authCheck } from "./auth_actions";
|
||||
import { authCheck } from "./auth.actions";
|
||||
import { JobFiltersSchema } from "@/src/application/repositories/jobs.repository.interface";
|
||||
import { z } from "zod";
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
"use server";
|
||||
import { z } from "zod";
|
||||
import { WorkflowTool } from "../lib/types/workflow_types";
|
||||
import { projectAuthCheck } from "./project_actions";
|
||||
import { projectAuthCheck } from "./project.actions";
|
||||
import { projectsCollection } from "../lib/mongodb";
|
||||
import { Project } from "../lib/types/project_types";
|
||||
import { McpServerTool, convertMcpServerToolToWorkflowTool } from "../lib/types/types";
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
import { z } from 'zod';
|
||||
import { Workflow } from "../lib/types/workflow_types";
|
||||
import { Message } from "@/app/lib/types/types";
|
||||
import { authCheck } from './auth_actions';
|
||||
import { authCheck } from './auth.actions';
|
||||
import { container } from '@/di/container';
|
||||
import { Conversation } from '@/src/entities/models/conversation';
|
||||
import { ICreatePlaygroundConversationController } from '@/src/interface-adapters/controllers/conversations/create-playground-conversation.controller';
|
||||
|
|
|
|||
|
|
@ -1,17 +1,16 @@
|
|||
'use server';
|
||||
import { redirect } from "next/navigation";
|
||||
import { ObjectId } from "mongodb";
|
||||
import { db, dataSourcesCollection, projectsCollection, dataSourceDocsCollection } from "../lib/mongodb";
|
||||
import { db, dataSourcesCollection, projectsCollection } from "../lib/mongodb";
|
||||
import { z } from 'zod';
|
||||
import crypto from 'crypto';
|
||||
import { revalidatePath } from "next/cache";
|
||||
import { templates } from "../lib/project_templates";
|
||||
import { authCheck } from "./auth_actions";
|
||||
import { authCheck } from "./auth.actions";
|
||||
import { User, WithStringId } from "../lib/types/types";
|
||||
import { ApiKey } from "@/src/entities/models/api-key";
|
||||
import { Project } from "../lib/types/project_types";
|
||||
import { USE_AUTH } from "../lib/feature_flags";
|
||||
import { authorizeUserAction } from "./billing_actions";
|
||||
import { authorizeUserAction } from "./billing.actions";
|
||||
import { Workflow } from "../lib/types/workflow_types";
|
||||
import { container } from "@/di/container";
|
||||
import { IProjectActionAuthorizationPolicy } from "@/src/application/policies/project-action-authorization.policy";
|
||||
|
|
@ -20,7 +19,6 @@ import { IListApiKeysController } from "@/src/interface-adapters/controllers/api
|
|||
import { IDeleteApiKeyController } from "@/src/interface-adapters/controllers/api-keys/delete-api-key.controller";
|
||||
import { IApiKeysRepository } from "@/src/application/repositories/api-keys.repository.interface";
|
||||
import { IProjectMembersRepository } from "@/src/application/repositories/project-members.repository.interface";
|
||||
const KLAVIS_API_KEY = process.env.KLAVIS_API_KEY || '';
|
||||
|
||||
const projectActionAuthorizationPolicy = container.resolve<IProjectActionAuthorizationPolicy>('projectActionAuthorizationPolicy');
|
||||
const createApiKeyController = container.resolve<ICreateApiKeyController>('createApiKeyController');
|
||||
|
|
@ -6,7 +6,7 @@ import { IListRecurringJobRulesController } from "@/src/interface-adapters/contr
|
|||
import { IFetchRecurringJobRuleController } from "@/src/interface-adapters/controllers/recurring-job-rules/fetch-recurring-job-rule.controller";
|
||||
import { IToggleRecurringJobRuleController } from "@/src/interface-adapters/controllers/recurring-job-rules/toggle-recurring-job-rule.controller";
|
||||
import { IDeleteRecurringJobRuleController } from "@/src/interface-adapters/controllers/recurring-job-rules/delete-recurring-job-rule.controller";
|
||||
import { authCheck } from "./auth_actions";
|
||||
import { authCheck } from "./auth.actions";
|
||||
import { z } from "zod";
|
||||
import { Message } from "@/app/lib/types/types";
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { ICreateScheduledJobRuleController } from "@/src/interface-adapters/cont
|
|||
import { IListScheduledJobRulesController } from "@/src/interface-adapters/controllers/scheduled-job-rules/list-scheduled-job-rules.controller";
|
||||
import { IFetchScheduledJobRuleController } from "@/src/interface-adapters/controllers/scheduled-job-rules/fetch-scheduled-job-rule.controller";
|
||||
import { IDeleteScheduledJobRuleController } from "@/src/interface-adapters/controllers/scheduled-job-rules/delete-scheduled-job-rule.controller";
|
||||
import { authCheck } from "./auth_actions";
|
||||
import { authCheck } from "./auth.actions";
|
||||
import { z } from "zod";
|
||||
import { Message } from "@/app/lib/types/types";
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import twilio from 'twilio';
|
|||
import { Twilio } from 'twilio';
|
||||
import { z } from "zod";
|
||||
import { WithStringId } from "../lib/types/types";
|
||||
import { projectAuthCheck } from "./project_actions";
|
||||
import { projectAuthCheck } from "./project.actions";
|
||||
|
||||
// Helper function to serialize MongoDB documents
|
||||
function serializeConfig(config: any) {
|
||||
|
|
@ -10,7 +10,7 @@ import { SectionHeading } from "@/components/ui/section-heading";
|
|||
import { HorizontalDivider } from "@/components/ui/horizontal-divider";
|
||||
import { WithStringId } from "@/app/lib/types/types";
|
||||
import clsx from 'clsx';
|
||||
import { getCustomerPortalUrl } from "../actions/billing_actions";
|
||||
import { getCustomerPortalUrl } from "../actions/billing.actions";
|
||||
|
||||
const planDetails = {
|
||||
free: {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
import { MongoClient } from "mongodb";
|
||||
import { User, Webpage } from "./types/types";
|
||||
import { User } from "./types/types";
|
||||
import { Workflow } from "./types/workflow_types";
|
||||
import { ApiKey } from "@/src/entities/models/api-key";
|
||||
import { ProjectMember } from "@/src/entities/models/project-member";
|
||||
import { Project } from "./types/project_types";
|
||||
import { EmbeddingDoc } from "./types/datasource_types";
|
||||
import { DataSourceDoc } from "./types/datasource_types";
|
||||
import { DataSource } from "./types/datasource_types";
|
||||
import { TwilioConfig, TwilioInboundCall } from "./types/voice_types";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import { z } from "zod";
|
||||
import { MCPServer } from "./types";
|
||||
import { Workflow, WorkflowTool } from "./workflow_types";
|
||||
import { Workflow } from "./workflow_types";
|
||||
|
||||
export const ComposioConnectedAccount = z.object({
|
||||
id: z.string(),
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { useState } from "react";
|
|||
import { Input } from "@/components/ui/input";
|
||||
import { FormStatusButton } from "@/app/lib/components/form-status-button";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { updateUserEmail } from "../actions/auth_actions";
|
||||
import { updateUserEmail } from "../actions/auth.actions";
|
||||
import { tokens } from "@/app/styles/design-tokens";
|
||||
import { SectionHeading } from "@/components/ui/section-heading";
|
||||
import { HorizontalDivider } from "@/components/ui/horizontal-divider";
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { Metadata } from "next";
|
|||
import { Spinner, Dropdown, DropdownMenu, DropdownItem, DropdownTrigger, Modal, ModalContent, ModalHeader, ModalBody, ModalFooter, Input, useDisclosure, Divider, Textarea } from "@heroui/react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { ReactNode, useEffect, useState } from "react";
|
||||
import { getProjectConfig, updateProjectName, updateWebhookUrl, deleteProject, rotateSecret } from "../../../actions/project_actions";
|
||||
import { getProjectConfig, updateProjectName, updateWebhookUrl, deleteProject, rotateSecret } from "../../../actions/project.actions";
|
||||
import { CopyButton } from "../../../../components/common/copy-button";
|
||||
import { InputField } from "../../../lib/components/input-field";
|
||||
import { EyeIcon, EyeOffIcon, Settings, Plus, MoreVertical } from "lucide-react";
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import { ReactNode, useEffect, useState, useCallback } from "react";
|
||||
import { Spinner, Dropdown, Modal, ModalContent, ModalHeader, ModalBody, ModalFooter, Input, useDisclosure } from "@heroui/react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { getProjectConfig, createApiKey, deleteApiKey, listApiKeys, deleteProject, rotateSecret, updateProjectName } from "../../../../actions/project_actions";
|
||||
import { getProjectConfig, createApiKey, deleteApiKey, listApiKeys, deleteProject, rotateSecret, updateProjectName } from "../../../../actions/project.actions";
|
||||
import { CopyButton } from "../../../../../components/common/copy-button";
|
||||
import { EyeIcon, EyeOffIcon, PlusIcon, Trash2Icon } from "lucide-react";
|
||||
import { WithStringId } from "../../../../lib/types/types";
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { useState, useEffect, useCallback } from 'react';
|
|||
import { Spinner } from "@heroui/react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Textarea } from "@/components/ui/textarea";
|
||||
import { configureTwilioNumber, getTwilioConfigs, deleteTwilioConfig } from "../../../../actions/voice_actions";
|
||||
import { configureTwilioNumber, getTwilioConfigs, deleteTwilioConfig } from "../../../../actions/twilio.actions";
|
||||
import { TwilioConfig, TwilioConfigParams } from "../../../../lib/types/voice_types";
|
||||
import { CheckCircleIcon, XCircleIcon, InfoIcon, EyeOffIcon, EyeIcon } from "lucide-react";
|
||||
import { Section } from './project';
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import { useEffect, useMemo, useState } from "react";
|
||||
import { Spinner } from "@heroui/react";
|
||||
import { Panel } from "@/components/common/panel-common";
|
||||
import { fetchConversation } from "@/app/actions/conversation_actions";
|
||||
import { fetchConversation } from "@/app/actions/conversation.actions";
|
||||
import { Conversation } from "@/src/entities/models/conversation";
|
||||
import { Turn } from "@/src/entities/models/turn";
|
||||
import { z } from "zod";
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { useCallback, useEffect, useMemo, useState } from "react";
|
|||
import { Link, Spinner } from "@heroui/react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Panel } from "@/components/common/panel-common";
|
||||
import { listConversations } from "@/app/actions/conversation_actions";
|
||||
import { listConversations } from "@/app/actions/conversation.actions";
|
||||
import { z } from "zod";
|
||||
import { ListedConversationItem } from "@/src/application/repositories/conversations.repository.interface";
|
||||
import { isToday, isThisWeek, isThisMonth } from "@/lib/utils/date";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { useCallback, useRef, useState } from "react";
|
||||
import { getCopilotResponseStream } from "@/app/actions/copilot_actions";
|
||||
import { getCopilotResponseStream } from "@/app/actions/copilot.actions";
|
||||
import { CopilotMessage } from "@/app/lib/types/copilot_types";
|
||||
import { Workflow } from "@/app/lib/types/workflow_types";
|
||||
import { DataSource } from "@/app/lib/types/datasource_types";
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import { usePreviewModal } from "../workflow/preview-modal";
|
|||
import { Modal, ModalContent, ModalHeader, ModalBody, ModalFooter, Select, SelectItem, Chip, SelectSection } from "@heroui/react";
|
||||
import { PreviewModalProvider } from "../workflow/preview-modal";
|
||||
import { CopilotMessage } from "@/app/lib/types/copilot_types";
|
||||
import { getCopilotAgentInstructions } from "@/app/actions/copilot_actions";
|
||||
import { getCopilotAgentInstructions } from "@/app/actions/copilot.actions";
|
||||
import { Dropdown as CustomDropdown } from "../../../lib/components/dropdown";
|
||||
import { createAtMentions } from "../../../lib/components/atmentions";
|
||||
import { Textarea } from "@/components/ui/textarea";
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import { Panel } from "@/components/common/panel-common";
|
|||
import { Button } from "@/components/ui/button";
|
||||
import { DataSourceIcon } from "@/app/lib/components/datasource-icon";
|
||||
import { Tooltip } from "@heroui/react";
|
||||
import { getDataSource, listDocsInDataSource, deleteDocsFromDataSource, getDownloadUrlForFile, addDocsToDataSource, getUploadUrlsForFilesDataSource } from "@/app/actions/datasource_actions";
|
||||
import { getDataSource, listDocsInDataSource, deleteDocsFromDataSource, getDownloadUrlForFile, addDocsToDataSource, getUploadUrlsForFilesDataSource } from "@/app/actions/data-source.actions";
|
||||
import { InputField } from "@/app/lib/components/input-field";
|
||||
import { DataSourceDoc } from "../../../lib/types/datasource_types";
|
||||
import { RelativeTime } from "@primer/react";
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import { useEffect, useMemo, useState } from "react";
|
||||
import { Spinner } from "@heroui/react";
|
||||
import { Panel } from "@/components/common/panel-common";
|
||||
import { fetchJob } from "@/app/actions/job_actions";
|
||||
import { fetchJob } from "@/app/actions/job.actions";
|
||||
import { Job } from "@/src/entities/models/job";
|
||||
import { z } from "zod";
|
||||
import Link from "next/link";
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { useCallback, useEffect, useMemo, useState } from "react";
|
|||
import { Link, Spinner } from "@heroui/react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Panel } from "@/components/common/panel-common";
|
||||
import { listJobs } from "@/app/actions/job_actions";
|
||||
import { listJobs } from "@/app/actions/job.actions";
|
||||
import { z } from "zod";
|
||||
import { ListedJobItem, JobFiltersSchema } from "@/src/application/repositories/jobs.repository.interface";
|
||||
import { isToday, isThisWeek, isThisMonth } from "@/lib/utils/date";
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import { DataSourceIcon } from "../../../../lib/components/datasource-icon";
|
|||
import { z } from "zod";
|
||||
import { ScrapeSource } from "../components/scrape-source";
|
||||
import { FilesSource } from "../components/files-source";
|
||||
import { getDataSource, updateDataSource } from "../../../../actions/datasource_actions";
|
||||
import { getDataSource, updateDataSource } from "../../../../actions/data-source.actions";
|
||||
import { TextSource } from "../components/text-source";
|
||||
import { Panel } from "@/components/common/panel-common";
|
||||
import { Section, SectionRow, SectionLabel, SectionContent } from "../components/section";
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use client';
|
||||
|
||||
import { deleteDataSource } from "../../../../actions/datasource_actions";
|
||||
import { deleteDataSource } from "../../../../actions/data-source.actions";
|
||||
import { FormStatusButton } from "../../../../lib/components/form-status-button";
|
||||
|
||||
export function DeleteSource({
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { DataSourceDoc, DataSource } from "../../../../lib/types/datasource_type
|
|||
import { z } from "zod";
|
||||
import { useCallback, useEffect, useState } from "react";
|
||||
import { useDropzone } from "react-dropzone";
|
||||
import { deleteDocsFromDataSource, getUploadUrlsForFilesDataSource, addDocsToDataSource, getDownloadUrlForFile, listDocsInDataSource } from "../../../../actions/datasource_actions";
|
||||
import { deleteDocsFromDataSource, getUploadUrlsForFilesDataSource, addDocsToDataSource, getDownloadUrlForFile, listDocsInDataSource } from "../../../../actions/data-source.actions";
|
||||
import { RelativeTime } from "@primer/react";
|
||||
import { Pagination, Spinner } from "@heroui/react";
|
||||
import { DownloadIcon } from "lucide-react";
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { WithStringId } from "../../../../lib/types/types";
|
|||
import { DataSourceDoc, DataSource } from "../../../../lib/types/datasource_types";
|
||||
import { z } from "zod";
|
||||
import { Recrawl } from "./web-recrawl";
|
||||
import { deleteDocsFromDataSource, listDocsInDataSource, recrawlWebDataSource, addDocsToDataSource } from "../../../../actions/datasource_actions";
|
||||
import { deleteDocsFromDataSource, listDocsInDataSource, recrawlWebDataSource, addDocsToDataSource } from "../../../../actions/data-source.actions";
|
||||
import { useState, useEffect } from "react";
|
||||
import { Spinner, Pagination } from "@heroui/react";
|
||||
import { ExternalLinkIcon, PlusIcon } from "lucide-react";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
'use client';
|
||||
import { getDataSource } from "../../../../actions/datasource_actions";
|
||||
import { getDataSource } from "../../../../actions/data-source.actions";
|
||||
import { DataSource } from "../../../../lib/types/datasource_types";
|
||||
import { useEffect, useState } from "react";
|
||||
import { z } from 'zod';
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import { useEffect, useState } from "react";
|
|||
import { WithStringId } from "../../../../lib/types/types";
|
||||
import { DataSource } from "../../../../lib/types/datasource_types";
|
||||
import { z } from "zod";
|
||||
import { listDataSources } from "../../../../actions/datasource_actions";
|
||||
import { listDataSources } from "../../../../actions/data-source.actions";
|
||||
import { Panel } from "@/components/common/panel-common";
|
||||
import { PlusIcon } from "lucide-react";
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { useState, useEffect } from "react";
|
|||
import { Textarea } from "@/components/ui/textarea";
|
||||
import { FormStatusButton } from "../../../../lib/components/form-status-button";
|
||||
import { Spinner } from "@heroui/react";
|
||||
import { addDocsToDataSource, deleteDocsFromDataSource, listDocsInDataSource } from "../../../../actions/datasource_actions";
|
||||
import { addDocsToDataSource, deleteDocsFromDataSource, listDocsInDataSource } from "../../../../actions/data-source.actions";
|
||||
import { Section } from "./section";
|
||||
|
||||
export function TextSource({
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
'use client';
|
||||
import { toggleDataSource } from "../../../../actions/datasource_actions";
|
||||
import { toggleDataSource } from "../../../../actions/data-source.actions";
|
||||
import { Spinner } from "@heroui/react";
|
||||
import { useState } from "react";
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import { Input, Select, SelectItem } from "@heroui/react"
|
||||
import { Textarea } from "@/components/ui/textarea"
|
||||
import { useState } from "react";
|
||||
import { createDataSource, addDocsToDataSource } from "../../../../actions/datasource_actions";
|
||||
import { createDataSource, addDocsToDataSource } from "../../../../actions/data-source.actions";
|
||||
import { FormStatusButton } from "../../../../lib/components/form-status-button";
|
||||
import { DataSourceIcon } from "../../../../lib/components/datasource-icon";
|
||||
import { PlusIcon } from "lucide-react";
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { PictureImg } from '@/components/ui/picture-img';
|
|||
import { Button, Checkbox, Input } from '@heroui/react';
|
||||
import { ChevronLeft, ChevronRight, Search, X } from 'lucide-react';
|
||||
import { Workflow, WorkflowTool } from '@/app/lib/types/workflow_types';
|
||||
import { listTools } from '@/app/actions/composio_actions';
|
||||
import { listTools } from '@/app/actions/composio.actions';
|
||||
import { z } from 'zod';
|
||||
import { ZTool, ZListResponse } from '@/app/lib/composio/composio';
|
||||
import { SlidePanel } from '@/components/ui/slide-panel';
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ import { Input } from '@/components/ui/input';
|
|||
import { Info, Plus, Trash2 } from 'lucide-react';
|
||||
import { z } from 'zod';
|
||||
import { Workflow, WorkflowTool } from '@/app/lib/types/workflow_types';
|
||||
import { getProjectConfig } from '@/app/actions/project_actions';
|
||||
import { addServer, removeServer } from '@/app/actions/custom_mcp_server_actions';
|
||||
import { fetchTools } from "@/app/actions/custom_mcp_server_actions";
|
||||
import { getProjectConfig } from '@/app/actions/project.actions';
|
||||
import { addServer, removeServer } from '@/app/actions/custom-mcp-server.actions';
|
||||
import { fetchTools } from "@/app/actions/custom-mcp-server.actions";
|
||||
import { ServerCard } from './ServerCard';
|
||||
import { McpToolsPanel } from './McpToolsPanel';
|
||||
import { ProjectWideChangeConfirmationModal } from '@/components/common/project-wide-change-confirmation-modal';
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@ import { useParams } from 'next/navigation';
|
|||
import { Button } from '@/components/ui/button';
|
||||
import { RefreshCw, Search } from 'lucide-react';
|
||||
import clsx from 'clsx';
|
||||
import { listToolkits } from '@/app/actions/composio_actions';
|
||||
import { getProjectConfig } from '@/app/actions/project_actions';
|
||||
import { listToolkits } from '@/app/actions/composio.actions';
|
||||
import { getProjectConfig } from '@/app/actions/project.actions';
|
||||
import { z } from 'zod';
|
||||
import { ZToolkit, ZListResponse, ZTool } from '@/app/lib/composio/composio';
|
||||
import { Project } from '@/app/lib/types/project_types';
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import { z } from 'zod';
|
|||
import { Chip } from '@heroui/react';
|
||||
import { Server, MoreVertical } from 'lucide-react';
|
||||
import { Workflow, WorkflowTool } from '@/app/lib/types/workflow_types';
|
||||
import { fetchTools } from "@/app/actions/custom_mcp_server_actions";
|
||||
import { fetchTools } from "@/app/actions/custom-mcp-server.actions";
|
||||
import { Dropdown, DropdownTrigger, DropdownMenu, DropdownItem } from '@heroui/react';
|
||||
import { Button } from '@heroui/react';
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { Button } from '@/components/ui/button';
|
|||
import { Input } from '@/components/ui/input';
|
||||
import { Switch } from '@/components/ui/switch';
|
||||
import { MCPServer, McpTool } from '@/app/lib/types/types';
|
||||
import { testMcpTool } from '@/app/actions/mcp_actions';
|
||||
import { testMcpTool } from '@/app/actions/mcp.actions';
|
||||
import { Copy, ChevronDown, ChevronRight, X, Trash2 } from 'lucide-react';
|
||||
import type { z } from 'zod';
|
||||
import clsx from 'clsx';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { useState, useCallback, useEffect } from 'react';
|
|||
import { Modal, ModalContent, ModalHeader, ModalBody, ModalFooter, Spinner, Button as HeroButton, Input } from "@heroui/react";
|
||||
import { PictureImg } from '@/components/ui/picture-img';
|
||||
import { Wrench, Shield, Key, Globe, ArrowLeft } from "lucide-react";
|
||||
import { getToolkit, createComposioManagedOauth2ConnectedAccount, syncConnectedAccount, listToolkits, createCustomConnectedAccount } from '@/app/actions/composio_actions';
|
||||
import { getToolkit, createComposioManagedOauth2ConnectedAccount, syncConnectedAccount, listToolkits, createCustomConnectedAccount } from '@/app/actions/composio.actions';
|
||||
import { z } from 'zod';
|
||||
import { ZGetToolkitResponse, ZToolkit, ZComposioField, ZAuthScheme } from '@/app/lib/composio/composio';
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import { useState, useEffect } from "react";
|
||||
import { Spinner, Button, Input } from "@heroui/react";
|
||||
import { getProjectConfig, updateWebhookUrl } from "@/app/actions/project_actions";
|
||||
import { getProjectConfig, updateWebhookUrl } from "@/app/actions/project.actions";
|
||||
import { clsx } from "clsx";
|
||||
import { ProjectWideChangeConfirmationModal } from '@/components/common/project-wide-change-confirmation-modal';
|
||||
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@ import { z } from "zod";
|
|||
import { useCallback, useEffect, useState } from "react";
|
||||
import { WorkflowEditor } from "./workflow_editor";
|
||||
import { Spinner } from "@heroui/react";
|
||||
import { listDataSources } from "../../../actions/datasource_actions";
|
||||
import { revertToLiveWorkflow } from "@/app/actions/project_actions";
|
||||
import { getProjectConfig } from "@/app/actions/project_actions";
|
||||
import { listDataSources } from "../../../actions/data-source.actions";
|
||||
import { revertToLiveWorkflow } from "@/app/actions/project.actions";
|
||||
import { getProjectConfig } from "@/app/actions/project.actions";
|
||||
import { Workflow, WorkflowTool } from "@/app/lib/types/workflow_types";
|
||||
import { getEligibleModels } from "@/app/actions/billing_actions";
|
||||
import { getEligibleModels } from "@/app/actions/billing.actions";
|
||||
import { ModelsResponse } from "@/app/lib/types/billing_types";
|
||||
|
||||
export function App({
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { Button, Card, CardBody, CardHeader, Spinner } from '@heroui/react';
|
|||
import { ChevronLeft, ChevronRight, ZapIcon, ArrowLeft } from 'lucide-react';
|
||||
import { z } from 'zod';
|
||||
import { ComposioTriggerType } from '@/src/entities/models/composio-trigger-type';
|
||||
import { listComposioTriggerTypes } from '@/app/actions/composio_actions';
|
||||
import { listComposioTriggerTypes } from '@/app/actions/composio.actions';
|
||||
import { ZToolkit } from '@/app/lib/composio/composio';
|
||||
|
||||
interface ComposioTriggerTypesPanelProps {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import { Modal, ModalContent, ModalHeader, ModalBody, ModalFooter } from '@herou
|
|||
import { Button } from '@/components/ui/button';
|
||||
import { Form } from '../../sources/new/form';
|
||||
import { FilesSource } from '../../sources/components/files-source';
|
||||
import { getDataSource } from '../../../../actions/datasource_actions';
|
||||
import { getDataSource } from '../../../../actions/data-source.actions';
|
||||
import { WithStringId } from '../../../../lib/types/types';
|
||||
import { DataSource } from '../../../../lib/types/datasource_types';
|
||||
import { z } from 'zod';
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { Plus, Trash2, ZapIcon } from 'lucide-react';
|
|||
import { z } from 'zod';
|
||||
import { ComposioTriggerDeployment } from '@/src/entities/models/composio-trigger-deployment';
|
||||
import { ComposioTriggerType } from '@/src/entities/models/composio-trigger-type';
|
||||
import { listComposioTriggerDeployments, deleteComposioTriggerDeployment, createComposioTriggerDeployment } from '@/app/actions/composio_actions';
|
||||
import { listComposioTriggerDeployments, deleteComposioTriggerDeployment, createComposioTriggerDeployment } from '@/app/actions/composio.actions';
|
||||
import { SelectComposioToolkit } from '../../tools/components/SelectComposioToolkit';
|
||||
import { ComposioTriggerTypesPanel } from './ComposioTriggerTypesPanel';
|
||||
import { TriggerConfigForm } from './TriggerConfigForm';
|
||||
|
|
|
|||
|
|
@ -21,9 +21,9 @@ import { Modal, ModalContent, ModalHeader, ModalBody, ModalFooter } from "@herou
|
|||
import { ToolsModal } from './components/ToolsModal';
|
||||
import { DataSourcesModal } from './components/DataSourcesModal';
|
||||
import { DataSourceIcon } from '../../../lib/components/datasource-icon';
|
||||
import { deleteDataSource } from '../../../actions/datasource_actions';
|
||||
import { deleteDataSource } from '../../../actions/data-source.actions';
|
||||
import { ToolkitAuthModal } from '../tools/components/ToolkitAuthModal';
|
||||
import { deleteConnectedAccount } from '@/app/actions/composio_actions';
|
||||
import { deleteConnectedAccount } from '@/app/actions/composio.actions';
|
||||
import { ProjectWideChangeConfirmationModal } from '@/components/common/project-wide-change-confirmation-modal';
|
||||
import { SHOW_PROMPTS_SECTION, SHOW_VISUALIZATION } from '../../../lib/feature_flags';
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import { Button, Spinner, Modal, ModalContent, ModalHeader, ModalBody, ModalFoot
|
|||
import { z } from "zod";
|
||||
import { WorkflowTool } from "@/app/lib/types/workflow_types";
|
||||
import { RefreshCwIcon } from "lucide-react";
|
||||
import { fetchMcpTools } from "@/app/actions/mcp_actions";
|
||||
import { fetchMcpTools } from "@/app/actions/mcp.actions";
|
||||
|
||||
interface McpImportToolsProps {
|
||||
projectId: string;
|
||||
|
|
|
|||
|
|
@ -22,9 +22,9 @@ import {
|
|||
ResizablePanelGroup,
|
||||
} from "@/components/ui/resizable"
|
||||
import { Copilot } from "../copilot/app";
|
||||
import { publishWorkflow } from "@/app/actions/project_actions";
|
||||
import { saveWorkflow } from "@/app/actions/project_actions";
|
||||
import { updateProjectName } from "@/app/actions/project_actions";
|
||||
import { publishWorkflow } from "@/app/actions/project.actions";
|
||||
import { saveWorkflow } from "@/app/actions/project.actions";
|
||||
import { updateProjectName } from "@/app/actions/project.actions";
|
||||
import { BackIcon, HamburgerIcon, WorkflowIcon } from "../../../lib/components/icons";
|
||||
import { CopyIcon, ImportIcon, RadioIcon, RedoIcon, ServerIcon, Sparkles, UndoIcon, RocketIcon, PenLine, AlertTriangle, DownloadIcon, XIcon, SettingsIcon, ChevronDownIcon, PhoneIcon, MessageCircleIcon, ZapIcon } from "lucide-react";
|
||||
import { EntityList } from "./entity_list";
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
import { Project } from "../lib/types/project_types";
|
||||
import { useEffect, useState } from "react";
|
||||
import { z } from "zod";
|
||||
import { listProjects } from "../actions/project_actions";
|
||||
import { listProjects } from "../actions/project.actions";
|
||||
import { BuildAssistantSection } from "./components/build-assistant-section";
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use client';
|
||||
|
||||
import { useState, useRef, useEffect } from "react";
|
||||
import { listTemplates, listProjects } from "@/app/actions/project_actions";
|
||||
import { listTemplates, listProjects } from "@/app/actions/project.actions";
|
||||
import { createProjectWithOptions, createProjectFromJsonWithOptions, createProjectFromTemplate } from "../lib/project-creation-utils";
|
||||
import { useRouter } from 'next/navigation';
|
||||
import clsx from 'clsx';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
import { useState, useEffect } from "react";
|
||||
import { useRouter } from 'next/navigation';
|
||||
import { listTemplates } from "@/app/actions/project_actions";
|
||||
import { listTemplates } from "@/app/actions/project.actions";
|
||||
import { createProjectFromTemplate } from "../lib/project-creation-utils";
|
||||
import { PictureImg } from '@/components/ui/picture-img';
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
import { ReactNode, useEffect, useState } from 'react';
|
||||
import Sidebar from './sidebar';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import { getCustomer } from '../../../actions/billing_actions';
|
||||
import { getCustomer } from '../../../actions/billing.actions';
|
||||
import { Button } from '@heroui/react';
|
||||
import { useRouter } from 'next/navigation';
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ import {
|
|||
LogsIcon,
|
||||
Clock
|
||||
} from "lucide-react";
|
||||
import { getProjectConfig } from "@/app/actions/project_actions";
|
||||
import { getProjectConfig } from "@/app/actions/project.actions";
|
||||
import { createProjectWithOptions } from "../../lib/project-creation-utils";
|
||||
import { useTheme } from "@/app/providers/theme-provider";
|
||||
import { USE_PRODUCT_TOUR } from '@/app/lib/feature_flags';
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import Link from "next/link";
|
|||
import { useEffect, useState } from "react";
|
||||
import clsx from "clsx";
|
||||
import Menu from "./menu";
|
||||
import { getProjectConfig } from "@/app/actions/project_actions";
|
||||
import { getProjectConfig } from "@/app/actions/project.actions";
|
||||
import { FolderOpenIcon, PanelLeftCloseIcon, PanelLeftOpenIcon } from "lucide-react";
|
||||
|
||||
export function Nav({
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
"use client";
|
||||
|
||||
import { createProject, createProjectFromWorkflowJson } from "@/app/actions/project_actions";
|
||||
import { createProject, createProjectFromWorkflowJson } from "@/app/actions/project.actions";
|
||||
|
||||
export interface CreateProjectOptions {
|
||||
name: string;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { Modal, ModalContent, ModalHeader, ModalBody, ModalFooter, Spinner } from "@heroui/react";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { AlertCircle, CheckIcon } from "lucide-react";
|
||||
import { getPrices, getCustomer, updateSubscriptionPlan } from "@/app/actions/billing_actions";
|
||||
import { getPrices, getCustomer, updateSubscriptionPlan } from "@/app/actions/billing.actions";
|
||||
import { useEffect, useState } from "react";
|
||||
import { PricesResponse, SubscriptionPlan } from "@/app/lib/types/billing_types";
|
||||
import { z } from "zod";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue