mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
refactor: update import paths to use relative imports for consistency
This commit is contained in:
@@ -2,21 +2,21 @@ import OneUptimeOperation from "../Types/OneUptimeOperation";
|
||||
import ModelType from "../Types/ModelType";
|
||||
import { OneUptimeToolCallArgs } from "../Types/McpTypes";
|
||||
import MCPLogger from "../Utils/MCPLogger";
|
||||
import API from "@oneuptime/common/Utils/API";
|
||||
import URL from "@oneuptime/common/Types/API/URL";
|
||||
import Route from "@oneuptime/common/Types/API/Route";
|
||||
import Headers from "@oneuptime/common/Types/API/Headers";
|
||||
import HTTPResponse from "@oneuptime/common/Types/API/HTTPResponse";
|
||||
import HTTPErrorResponse from "@oneuptime/common/Types/API/HTTPErrorResponse";
|
||||
import { JSONObject } from "@oneuptime/common/Types/JSON";
|
||||
import DatabaseModels from "@oneuptime/common/Models/DatabaseModels/Index";
|
||||
import AnalyticsModels from "@oneuptime/common/Models/AnalyticsModels/Index";
|
||||
import { ModelSchema } from "@oneuptime/common/Utils/Schema/ModelSchema";
|
||||
import { AnalyticsModelSchema } from "@oneuptime/common/Utils/Schema/AnalyticsModelSchema";
|
||||
import { getTableColumns } from "@oneuptime/common/Types/Database/TableColumn";
|
||||
import Permission from "@oneuptime/common/Types/Permission";
|
||||
import Protocol from "@oneuptime/common/Types/API/Protocol";
|
||||
import Hostname from "@oneuptime/common/Types/API/Hostname";
|
||||
import API from "Common/Utils/API";
|
||||
import URL from "Common/Types/API/URL";
|
||||
import Route from "Common/Types/API/Route";
|
||||
import Headers from "Common/Types/API/Headers";
|
||||
import HTTPResponse from "Common/Types/API/HTTPResponse";
|
||||
import HTTPErrorResponse from "Common/Types/API/HTTPErrorResponse";
|
||||
import { JSONObject } from "Common/Types/JSON";
|
||||
import DatabaseModels from "Common/Models/DatabaseModels/Index";
|
||||
import AnalyticsModels from "Common/Models/AnalyticsModels/Index";
|
||||
import { ModelSchema } from "Common/Utils/Schema/ModelSchema";
|
||||
import { AnalyticsModelSchema } from "Common/Utils/Schema/AnalyticsModelSchema";
|
||||
import { getTableColumns } from "Common/Types/Database/TableColumn";
|
||||
import Permission from "Common/Types/Permission";
|
||||
import Protocol from "Common/Types/API/Protocol";
|
||||
import Hostname from "Common/Types/API/Hostname";
|
||||
|
||||
export interface OneUptimeApiConfig {
|
||||
url: string;
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
import DatabaseModels from "@oneuptime/common/Models/DatabaseModels/Index";
|
||||
import AnalyticsModels from "@oneuptime/common/Models/AnalyticsModels/Index";
|
||||
import DatabaseBaseModel from "@oneuptime/common/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel";
|
||||
import AnalyticsBaseModel from "@oneuptime/common/Models/AnalyticsModels/AnalyticsBaseModel/AnalyticsBaseModel";
|
||||
import DatabaseModels from "Common/Models/DatabaseModels/Index";
|
||||
import AnalyticsModels from "Common/Models/AnalyticsModels/Index";
|
||||
import DatabaseBaseModel from "Common/Models/DatabaseModels/DatabaseBaseModel/DatabaseBaseModel";
|
||||
import AnalyticsBaseModel from "Common/Models/AnalyticsModels/AnalyticsBaseModel/AnalyticsBaseModel";
|
||||
import OneUptimeOperation from "../Types/OneUptimeOperation";
|
||||
import ModelType from "../Types/ModelType";
|
||||
import { McpToolInfo, ModelToolsResult } from "../Types/McpTypes";
|
||||
import {
|
||||
ModelSchema,
|
||||
ModelSchemaType,
|
||||
} from "@oneuptime/common/Utils/Schema/ModelSchema";
|
||||
} from "Common/Utils/Schema/ModelSchema";
|
||||
import {
|
||||
AnalyticsModelSchema,
|
||||
AnalyticsModelSchemaType,
|
||||
} from "@oneuptime/common/Utils/Schema/AnalyticsModelSchema";
|
||||
} from "Common/Utils/Schema/AnalyticsModelSchema";
|
||||
import MCPLogger from "./MCPLogger";
|
||||
|
||||
export default class DynamicToolGenerator {
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
* All logs are directed to stderr to avoid interfering with the JSON-RPC protocol on stdout
|
||||
*/
|
||||
|
||||
import { LogLevel } from "@oneuptime/common/Server/EnvironmentConfig";
|
||||
import ConfigLogLevel from "@oneuptime/common/Server/Types/ConfigLogLevel";
|
||||
import { JSONObject } from "@oneuptime/common/Types/JSON";
|
||||
import Exception from "@oneuptime/common/Types/Exception/Exception";
|
||||
import { LogLevel } from "Common/Server/EnvironmentConfig";
|
||||
import ConfigLogLevel from "Common/Server/Types/ConfigLogLevel";
|
||||
import { JSONObject } from "Common/Types/JSON";
|
||||
import Exception from "Common/Types/Exception/Exception";
|
||||
|
||||
export type LogBody = string | JSONObject | Exception | Error | unknown;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user