21 lines
584 B
JavaScript
21 lines
584 B
JavaScript
const INTERFACE_AVAILABILITY_ENTRY = new URL(
|
|
"../interface-availability/run.mjs",
|
|
import.meta.url,
|
|
).href;
|
|
const API_LIST_UPDATE_ENTRY = new URL("../api-list-update/run.mjs", import.meta.url).href;
|
|
|
|
export const DEFAULT_API_DOC_AGENT_SCRIPT = "interface";
|
|
|
|
export const API_DOC_AGENT_SCRIPTS = {
|
|
interface: {
|
|
name: "interface",
|
|
description: "接口可用性检查脚本",
|
|
entry: INTERFACE_AVAILABILITY_ENTRY,
|
|
},
|
|
"api-list-update": {
|
|
name: "api-list-update",
|
|
description: "扫描 src/api 并更新接口配置",
|
|
entry: API_LIST_UPDATE_ENTRY,
|
|
},
|
|
};
|