Rename ai types folder to lighthouse

This commit is contained in:
Chandrapal Badshah
2025-04-21 16:15:38 +05:30
parent 0f9387f790
commit d6254e5990
19 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { tool } from "@langchain/core/tools";
import { aiGetProviderChecks } from "@/lib/lighthouse/helperChecks";
import { checkSchema } from "@/types/ai";
import { checkSchema } from "@/types/lighthouse";
export const getProviderChecksTool = tool(
async ({ provider_type }) => {
+1 -1
View File
@@ -9,7 +9,7 @@ import {
getComplianceFrameworksSchema,
getComplianceOverviewSchema,
getCompliancesOverviewSchema,
} from "@/types/ai";
} from "@/types/lighthouse";
export const getCompliancesOverviewTool = tool(
async ({ scanId, fields, filters, page, page_size, sort }) => {
+1 -1
View File
@@ -1,7 +1,7 @@
import { tool } from "@langchain/core/tools";
import { getFindings, getMetadataInfo } from "@/actions/findings";
import { getFindingsSchema, getMetadataInfoSchema } from "@/types/ai";
import { getFindingsSchema, getMetadataInfoSchema } from "@/types/lighthouse";
export const getFindingsTool = tool(
async ({ page, pageSize, query, sort, filters }) => {
+1 -1
View File
@@ -9,7 +9,7 @@ import {
getFindingsBySeveritySchema,
getFindingsByStatusSchema,
getProvidersOverviewSchema,
} from "@/types/ai";
} from "@/types/lighthouse";
export const getProvidersOverviewTool = tool(
async ({ page, query, sort, filters }) => {
+1 -1
View File
@@ -1,7 +1,7 @@
import { tool } from "@langchain/core/tools";
import { getProvider, getProviders } from "@/actions/providers";
import { getProviderSchema, getProvidersSchema } from "@/types/ai";
import { getProviderSchema, getProvidersSchema } from "@/types/lighthouse";
export const getProvidersTool = tool(
async ({ page, query, sort, filters }) => {
+1 -1
View File
@@ -1,7 +1,7 @@
import { tool } from "@langchain/core/tools";
import { aiGetResource, aiGetResources } from "@/actions/lighthouse/resources";
import { getResourceSchema, getResourcesSchema } from "@/types/ai";
import { getResourceSchema, getResourcesSchema } from "@/types/lighthouse";
export const getResourcesTool = tool(
async ({ page, query, sort, filters, fields }) => {
+1 -1
View File
@@ -1,7 +1,7 @@
import { tool } from "@langchain/core/tools";
import { getRoleInfoById, getRoles } from "@/actions/roles";
import { getRoleSchema, getRolesSchema } from "@/types/ai";
import { getRoleSchema, getRolesSchema } from "@/types/lighthouse";
export const getRolesTool = tool(
async ({ page, query, sort, filters }) => {
+1 -1
View File
@@ -1,7 +1,7 @@
import { tool } from "@langchain/core/tools";
import { getScan, getScans } from "@/actions/scans";
import { getScanSchema, getScansSchema } from "@/types/ai";
import { getScanSchema, getScansSchema } from "@/types/lighthouse";
export const getScansTool = tool(
async ({ page, query, sort, filters }) => {
+1 -1
View File
@@ -2,7 +2,7 @@ import { tool } from "@langchain/core/tools";
import { z } from "zod";
import { getProfileInfo, getUsers } from "@/actions/users/users";
import { getUsersSchema } from "@/types/ai";
import { getUsersSchema } from "@/types/lighthouse";
export const getUsersTool = tool(
async ({ page, query, sort, filters }) => {