mirror of
https://github.com/certd/certd.git
synced 2026-05-16 05:07:32 +08:00
chore: 整理依赖
This commit is contained in:
@@ -3,8 +3,7 @@ import { RunHistory, RunnableCollection } from "./run-history.js";
|
||||
import { AbstractTaskPlugin, PluginDefine, pluginRegistry, TaskInstanceContext, UserInfo } from "../plugin/index.js";
|
||||
import { ContextFactory, IContext } from "./context.js";
|
||||
import { IStorage } from "./storage.js";
|
||||
import { createAxiosService, hashUtils, HttpRequestConfig, logger, utils } from "@certd/basic";
|
||||
import { Logger } from "log4js";
|
||||
import { createAxiosService, hashUtils, HttpRequestConfig, ILogger, logger, utils } from "@certd/basic";
|
||||
import { IAccessService } from "../access/index.js";
|
||||
import { RegistryItem } from "../registry/index.js";
|
||||
import { Decorator } from "../decorator/index.js";
|
||||
@@ -28,7 +27,7 @@ export class Executor {
|
||||
pipeline: Pipeline;
|
||||
runtime!: RunHistory;
|
||||
contextFactory: ContextFactory;
|
||||
logger: Logger;
|
||||
logger: ILogger;
|
||||
pipelineContext!: IContext;
|
||||
currentStatusMap!: RunnableCollection;
|
||||
lastStatusMap!: RunnableCollection;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { HistoryResult, Pipeline, ResultType, Runnable, RunnableMap, Stage, Step, Task } from "../dt/index.js";
|
||||
import _ from "lodash-es";
|
||||
import { buildLogger } from "@certd/basic";
|
||||
import { Logger } from "log4js";
|
||||
import { buildLogger, ILogger } from "@certd/basic";
|
||||
|
||||
export type HistoryStatus = {
|
||||
result: HistoryResult;
|
||||
@@ -25,7 +24,7 @@ export class RunHistory {
|
||||
[runnableId: string]: string[];
|
||||
} = {};
|
||||
_loggers: {
|
||||
[runnableId: string]: Logger;
|
||||
[runnableId: string]: ILogger;
|
||||
} = {};
|
||||
trigger!: RunTrigger;
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { Registrable } from "../registry/index.js";
|
||||
import { FileItem, FormItemProps, Pipeline, Runnable, Step } from "../dt/index.js";
|
||||
import { FileStore } from "../core/file-store.js";
|
||||
import { Logger } from "log4js";
|
||||
import { IAccessService } from "../access/index.js";
|
||||
import { ICnameProxyService, IEmailService } from "../service/index.js";
|
||||
import { CancelError, IContext, PluginRequestHandleReq, RunnableCollection } from "../core/index.js";
|
||||
@@ -68,7 +67,7 @@ export type TaskInstanceContext = {
|
||||
//步骤定义
|
||||
step: Step;
|
||||
//日志
|
||||
logger: Logger;
|
||||
logger: ILogger;
|
||||
//当前步骤输入参数跟上一次执行比较是否有变化
|
||||
inputChanged: boolean;
|
||||
//授权获取服务
|
||||
|
||||
Reference in New Issue
Block a user