21 lines
597 B
JavaScript
21 lines
597 B
JavaScript
const INTERFACE_AVAILABILITY_ENTRY = new URL(
|
|
"../scripts/interface-availability/run.mjs",
|
|
import.meta.url,
|
|
).href;
|
|
const API_LIST_UPDATE_ENTRY = new URL("../scripts/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 并更新接口.md",
|
|
entry: API_LIST_UPDATE_ENTRY,
|
|
},
|
|
};
|