edgeone-cli 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/client.d.ts +53 -53
- package/dist/api/client.js +2 -196
- package/dist/api/client.js.map +1 -1
- package/dist/api/signer.d.ts +46 -46
- package/dist/api/signer.js +2 -100
- package/dist/api/signer.js.map +1 -1
- package/dist/commands/config.d.ts +18 -18
- package/dist/commands/config.js +2 -265
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/edgeone.d.ts +13 -13
- package/dist/commands/edgeone.js +2 -415
- package/dist/commands/edgeone.js.map +1 -1
- package/dist/edgeone/tasks/prefetch.d.ts +22 -22
- package/dist/edgeone/tasks/prefetch.js +2 -16
- package/dist/edgeone/tasks/prefetch.js.map +1 -1
- package/dist/edgeone/tasks/purge.d.ts +22 -22
- package/dist/edgeone/tasks/purge.js +2 -16
- package/dist/edgeone/tasks/purge.js.map +1 -1
- package/dist/errors/codes.d.ts +66 -66
- package/dist/errors/codes.js +2 -134
- package/dist/errors/codes.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -27
- package/dist/index.js.map +1 -1
- package/dist/utils/crypto.d.ts +12 -12
- package/dist/utils/crypto.js +2 -86
- package/dist/utils/crypto.js.map +1 -1
- package/dist/utils/signature.js +2 -48
- package/dist/utils/signature.js.map +1 -1
- package/package.json +3 -1
package/dist/commands/config.js
CHANGED
|
@@ -1,265 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import inquirer from 'inquirer';
|
|
4
|
-
import fs from 'fs';
|
|
5
|
-
import path from 'path';
|
|
6
|
-
import os from 'os';
|
|
7
|
-
import { encrypt, decrypt, isEncrypted } from '../utils/crypto.js';
|
|
8
|
-
const CONFIG_DIR = path.join(os.homedir(), '.edgeone-cli');
|
|
9
|
-
const CONFIG_FILE = path.join(CONFIG_DIR, 'config.json');
|
|
10
|
-
/**
|
|
11
|
-
* 确保配置目录存在
|
|
12
|
-
*/
|
|
13
|
-
function ensureConfigDir() {
|
|
14
|
-
if (!fs.existsSync(CONFIG_DIR)) {
|
|
15
|
-
fs.mkdirSync(CONFIG_DIR, { recursive: true });
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* 读取配置(自动解密,自动迁移旧格式)
|
|
20
|
-
*/
|
|
21
|
-
function readConfig() {
|
|
22
|
-
if (fs.existsSync(CONFIG_FILE)) {
|
|
23
|
-
const content = fs.readFileSync(CONFIG_FILE, 'utf-8');
|
|
24
|
-
const stored = JSON.parse(content);
|
|
25
|
-
let secretKey = stored.secretKey;
|
|
26
|
-
let needsMigration = !stored.encrypted;
|
|
27
|
-
// 如果是加密格式或检测到是加密数据,则解密
|
|
28
|
-
if (stored.encrypted || isEncrypted(stored.secretKey)) {
|
|
29
|
-
try {
|
|
30
|
-
secretKey = decrypt(stored.secretKey);
|
|
31
|
-
needsMigration = false;
|
|
32
|
-
}
|
|
33
|
-
catch {
|
|
34
|
-
// 解密失败,可能是旧格式明文
|
|
35
|
-
needsMigration = false;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
const config = {
|
|
39
|
-
secretId: stored.secretId,
|
|
40
|
-
secretKey: secretKey,
|
|
41
|
-
endpoint: stored.endpoint,
|
|
42
|
-
mode: stored.mode || 'production', // 默认为生产模式
|
|
43
|
-
domainIdList: stored.domainIdList || [] // 默认为空数组
|
|
44
|
-
};
|
|
45
|
-
// 自动迁移:检测到旧格式明文配置,自动转为加密格式
|
|
46
|
-
if (needsMigration) {
|
|
47
|
-
writeConfig(config);
|
|
48
|
-
console.log(chalk.gray('💡 配置已自动升级为加密格式'));
|
|
49
|
-
}
|
|
50
|
-
return config;
|
|
51
|
-
}
|
|
52
|
-
return null;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* 写入配置(自动加密 SecretKey)
|
|
56
|
-
*/
|
|
57
|
-
function writeConfig(config) {
|
|
58
|
-
ensureConfigDir();
|
|
59
|
-
// 加密 secretKey
|
|
60
|
-
const encryptedSecretKey = encrypt(config.secretKey);
|
|
61
|
-
const stored = {
|
|
62
|
-
secretId: config.secretId,
|
|
63
|
-
secretKey: encryptedSecretKey,
|
|
64
|
-
endpoint: config.endpoint,
|
|
65
|
-
mode: config.mode,
|
|
66
|
-
domainIdList: config.domainIdList,
|
|
67
|
-
encrypted: true
|
|
68
|
-
};
|
|
69
|
-
fs.writeFileSync(CONFIG_FILE, JSON.stringify(stored, null, 2), 'utf-8');
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* 遮盖字符串中间部分
|
|
73
|
-
*/
|
|
74
|
-
function maskString(str, showLength = 4) {
|
|
75
|
-
if (!str)
|
|
76
|
-
return 'N/A';
|
|
77
|
-
if (str.length <= showLength * 2)
|
|
78
|
-
return str;
|
|
79
|
-
return str.slice(0, showLength) + '****' + str.slice(-showLength);
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* 显示配置
|
|
83
|
-
*/
|
|
84
|
-
function showConfig() {
|
|
85
|
-
const config = readConfig();
|
|
86
|
-
if (!config) {
|
|
87
|
-
console.log(chalk.yellow('⚠ 未找到配置文件,请先运行 "edgeone-cli config init"'));
|
|
88
|
-
return;
|
|
89
|
-
}
|
|
90
|
-
const modeText = config.mode === 'debug' ? '调试模式' : '生产模式';
|
|
91
|
-
const modeColor = config.mode === 'debug' ? chalk.yellow : chalk.green;
|
|
92
|
-
console.log(chalk.cyan('\n📋 当前配置:\n'));
|
|
93
|
-
console.log(chalk.gray('─'.repeat(40)));
|
|
94
|
-
console.log(` SecretId: ${chalk.green(maskString(config.secretId))}`);
|
|
95
|
-
console.log(` SecretKey: ${chalk.green(maskString(config.secretKey))}`);
|
|
96
|
-
console.log(` 接口请求域名: ${chalk.yellow(config.endpoint || 'teo.tencentcloudapi.com')}`);
|
|
97
|
-
console.log(` 运行模式: ${modeColor(modeText)}`);
|
|
98
|
-
if (config.domainIdList && config.domainIdList.length > 0) {
|
|
99
|
-
console.log(` 域名ID列表: ${chalk.yellow(config.domainIdList.join(', '))}`);
|
|
100
|
-
}
|
|
101
|
-
console.log(chalk.gray('─'.repeat(40)));
|
|
102
|
-
}
|
|
103
|
-
// 创建配置命令
|
|
104
|
-
const configCmd = new Command('config')
|
|
105
|
-
.description('管理 EdgeOne 配置');
|
|
106
|
-
// 初始化配置
|
|
107
|
-
configCmd
|
|
108
|
-
.command('init')
|
|
109
|
-
.description('初始化配置')
|
|
110
|
-
.action(async () => {
|
|
111
|
-
console.log(chalk.cyan('\n🔧 开始初始化 EdgeOne 配置\n'));
|
|
112
|
-
const answers = await inquirer.prompt([
|
|
113
|
-
{
|
|
114
|
-
type: 'input',
|
|
115
|
-
name: 'secretId',
|
|
116
|
-
message: '请输入 SecretId:',
|
|
117
|
-
validate: (input) => input.trim() !== '' || 'SecretId 不能为空'
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
type: 'password',
|
|
121
|
-
name: 'secretKey',
|
|
122
|
-
message: '请输入 SecretKey:',
|
|
123
|
-
mask: '*',
|
|
124
|
-
validate: (input) => input.trim() !== '' || 'SecretKey 不能为空'
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
type: 'input',
|
|
128
|
-
name: 'endpoint',
|
|
129
|
-
message: '请输入接口请求域名:',
|
|
130
|
-
default: 'teo.tencentcloudapi.com'
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
type: 'list',
|
|
134
|
-
name: 'mode',
|
|
135
|
-
message: '请选择运行模式:',
|
|
136
|
-
choices: [
|
|
137
|
-
{ name: '生产模式 (不显示调试信息)', value: 'production' },
|
|
138
|
-
{ name: '调试模式 (显示详细请求信息)', value: 'debug' }
|
|
139
|
-
],
|
|
140
|
-
default: 'production'
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
type: 'input',
|
|
144
|
-
name: 'domainIdList',
|
|
145
|
-
message: '请输入域名ID列表(多个用逗号分隔,留空跳过):',
|
|
146
|
-
default: ''
|
|
147
|
-
}
|
|
148
|
-
]);
|
|
149
|
-
// 处理域名ID列表
|
|
150
|
-
let domainIds = [];
|
|
151
|
-
const domainIdInput = answers.domainIdList;
|
|
152
|
-
if (domainIdInput && domainIdInput.trim()) {
|
|
153
|
-
domainIds = domainIdInput.split(',').map(id => id.trim()).filter(id => id !== '');
|
|
154
|
-
}
|
|
155
|
-
writeConfig({
|
|
156
|
-
secretId: answers.secretId,
|
|
157
|
-
secretKey: answers.secretKey,
|
|
158
|
-
endpoint: answers.endpoint || 'teo.tencentcloudapi.com',
|
|
159
|
-
mode: answers.mode || 'production',
|
|
160
|
-
domainIdList: domainIds
|
|
161
|
-
});
|
|
162
|
-
console.log(chalk.green('\n✅ 配置已加密保存到: ' + CONFIG_FILE));
|
|
163
|
-
});
|
|
164
|
-
// 显示配置
|
|
165
|
-
configCmd
|
|
166
|
-
.command('show')
|
|
167
|
-
.description('显示当前配置')
|
|
168
|
-
.action(showConfig);
|
|
169
|
-
// 删除配置
|
|
170
|
-
configCmd
|
|
171
|
-
.command('remove')
|
|
172
|
-
.description('删除配置文件')
|
|
173
|
-
.action(async () => {
|
|
174
|
-
if (!fs.existsSync(CONFIG_FILE)) {
|
|
175
|
-
console.log(chalk.yellow('⚠ 配置文件不存在'));
|
|
176
|
-
return;
|
|
177
|
-
}
|
|
178
|
-
const { confirm } = await inquirer.prompt([
|
|
179
|
-
{
|
|
180
|
-
type: 'confirm',
|
|
181
|
-
name: 'confirm',
|
|
182
|
-
message: '确定要删除配置文件吗?',
|
|
183
|
-
default: false
|
|
184
|
-
}
|
|
185
|
-
]);
|
|
186
|
-
if (confirm) {
|
|
187
|
-
fs.unlinkSync(CONFIG_FILE);
|
|
188
|
-
console.log(chalk.green('✅ 配置文件已删除'));
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
console.log(chalk.gray('已取消'));
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
// 编辑配置
|
|
195
|
-
configCmd
|
|
196
|
-
.command('edit')
|
|
197
|
-
.description('编辑配置项')
|
|
198
|
-
.action(async () => {
|
|
199
|
-
const config = readConfig();
|
|
200
|
-
if (!config) {
|
|
201
|
-
console.log(chalk.yellow('⚠ 未找到配置文件,请先运行 "edgeone-cli config init"'));
|
|
202
|
-
return;
|
|
203
|
-
}
|
|
204
|
-
const answers = await inquirer.prompt([
|
|
205
|
-
{
|
|
206
|
-
type: 'list',
|
|
207
|
-
name: 'field',
|
|
208
|
-
message: '选择要修改的配置项:',
|
|
209
|
-
choices: [
|
|
210
|
-
{ name: 'SecretId', value: 'secretId' },
|
|
211
|
-
{ name: 'SecretKey', value: 'secretKey' },
|
|
212
|
-
{ name: '接口请求域名', value: 'endpoint' },
|
|
213
|
-
{ name: '运行模式', value: 'mode' },
|
|
214
|
-
{ name: '域名ID列表', value: 'domainIdList' }
|
|
215
|
-
]
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
type: 'input',
|
|
219
|
-
name: 'value',
|
|
220
|
-
message: (answers) => `请输入新的 ${answers.field}:`,
|
|
221
|
-
when: (answers) => answers.field !== 'secretKey' && answers.field !== 'mode' && answers.field !== 'domainIdList',
|
|
222
|
-
validate: (input) => input.trim() !== '' || '不能为空'
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
type: 'password',
|
|
226
|
-
name: 'value',
|
|
227
|
-
message: '请输入新的 SecretKey:',
|
|
228
|
-
mask: '*',
|
|
229
|
-
when: (answers) => answers.field === 'secretKey',
|
|
230
|
-
validate: (input) => input.trim() !== '' || '不能为空'
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
type: 'list',
|
|
234
|
-
name: 'value',
|
|
235
|
-
message: '请选择运行模式:',
|
|
236
|
-
when: (answers) => answers.field === 'mode',
|
|
237
|
-
choices: [
|
|
238
|
-
{ name: '生产模式 (不显示调试信息)', value: 'production' },
|
|
239
|
-
{ name: '调试模式 (显示详细请求信息)', value: 'debug' }
|
|
240
|
-
]
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
type: 'input',
|
|
244
|
-
name: 'value',
|
|
245
|
-
message: '请输入域名ID列表(多个用逗号分隔):',
|
|
246
|
-
when: (answers) => answers.field === 'domainIdList',
|
|
247
|
-
default: ''
|
|
248
|
-
}
|
|
249
|
-
]);
|
|
250
|
-
if (answers.field === 'domainIdList') {
|
|
251
|
-
const domainIdInput = answers.value;
|
|
252
|
-
const domainIds = domainIdInput && domainIdInput.trim()
|
|
253
|
-
? domainIdInput.split(',').map(id => id.trim()).filter(id => id !== '')
|
|
254
|
-
: [];
|
|
255
|
-
config[answers.field] = domainIds;
|
|
256
|
-
}
|
|
257
|
-
else {
|
|
258
|
-
config[answers.field] = answers.value;
|
|
259
|
-
}
|
|
260
|
-
writeConfig(config);
|
|
261
|
-
console.log(chalk.green('✅ 配置已更新'));
|
|
262
|
-
});
|
|
263
|
-
export default configCmd;
|
|
264
|
-
export { readConfig, CONFIG_FILE };
|
|
265
|
-
//# sourceMappingURL=config.js.map
|
|
1
|
+
import{Command as e}from"commander";import o from"chalk";import n from"inquirer";import t from"fs";import i from"path";import c from"os";import{encrypt as s,decrypt as d,isEncrypted as r}from"../utils/crypto.js";const a=i.join(c.homedir(),".edgeone-cli"),l=i.join(a,"config.json");function m(){if(t.existsSync(l)){const e=t.readFileSync(l,"utf-8"),n=JSON.parse(e);let i=n.secretKey,c=!n.encrypted;if(n.encrypted||r(n.secretKey))try{i=d(n.secretKey),c=!1}catch{c=!1}const s={secretId:n.secretId,secretKey:i,endpoint:n.endpoint,mode:n.mode||"production",domainIdList:n.domainIdList||[]};return c&&(p(s),console.log(o.gray("💡 配置已自动升级为加密格式"))),s}return null}function p(e){t.existsSync(a)||t.mkdirSync(a,{recursive:!0});const o=s(e.secretKey),n={secretId:e.secretId,secretKey:o,endpoint:e.endpoint,mode:e.mode,domainIdList:e.domainIdList,encrypted:!0};t.writeFileSync(l,JSON.stringify(n,null,2),"utf-8")}function y(e,o=4){return e?e.length<=2*o?e:e.slice(0,o)+"****"+e.slice(-o):"N/A"}const u=new e("config").description("管理 EdgeOne 配置");u.command("init").description("初始化配置").action(async()=>{console.log(o.cyan("\n🔧 开始初始化 EdgeOne 配置\n"));const e=await n.prompt([{type:"input",name:"secretId",message:"请输入 SecretId:",validate:e=>""!==e.trim()||"SecretId 不能为空"},{type:"password",name:"secretKey",message:"请输入 SecretKey:",mask:"*",validate:e=>""!==e.trim()||"SecretKey 不能为空"},{type:"input",name:"endpoint",message:"请输入接口请求域名:",default:"teo.tencentcloudapi.com"},{type:"list",name:"mode",message:"请选择运行模式:",choices:[{name:"生产模式 (不显示调试信息)",value:"production"},{name:"调试模式 (显示详细请求信息)",value:"debug"}],default:"production"},{type:"input",name:"domainIdList",message:"请输入域名ID列表(多个用逗号分隔,留空跳过):",default:""}]);let t=[];const i=e.domainIdList;i&&i.trim()&&(t=i.split(",").map(e=>e.trim()).filter(e=>""!==e)),p({secretId:e.secretId,secretKey:e.secretKey,endpoint:e.endpoint||"teo.tencentcloudapi.com",mode:e.mode||"production",domainIdList:t}),console.log(o.green("\n✅ 配置已加密保存到: "+l))}),u.command("show").description("显示当前配置").action(function(){const e=m();if(!e)return void console.log(o.yellow('⚠ 未找到配置文件,请先运行 "edgeone-cli config init"'));const n="debug"===e.mode?"调试模式":"生产模式",t="debug"===e.mode?o.yellow:o.green;console.log(o.cyan("\n📋 当前配置:\n")),console.log(o.gray("─".repeat(40))),console.log(` SecretId: ${o.green(y(e.secretId))}`),console.log(` SecretKey: ${o.green(y(e.secretKey))}`),console.log(` 接口请求域名: ${o.yellow(e.endpoint||"teo.tencentcloudapi.com")}`),console.log(` 运行模式: ${t(n)}`),e.domainIdList&&e.domainIdList.length>0&&console.log(` 域名ID列表: ${o.yellow(e.domainIdList.join(", "))}`),console.log(o.gray("─".repeat(40)))}),u.command("remove").description("删除配置文件").action(async()=>{if(!t.existsSync(l))return void console.log(o.yellow("⚠ 配置文件不存在"));const{confirm:e}=await n.prompt([{type:"confirm",name:"confirm",message:"确定要删除配置文件吗?",default:!1}]);e?(t.unlinkSync(l),console.log(o.green("✅ 配置文件已删除"))):console.log(o.gray("已取消"))}),u.command("edit").description("编辑配置项").action(async()=>{const e=m();if(!e)return void console.log(o.yellow('⚠ 未找到配置文件,请先运行 "edgeone-cli config init"'));const t=await n.prompt([{type:"list",name:"field",message:"选择要修改的配置项:",choices:[{name:"SecretId",value:"secretId"},{name:"SecretKey",value:"secretKey"},{name:"接口请求域名",value:"endpoint"},{name:"运行模式",value:"mode"},{name:"域名ID列表",value:"domainIdList"}]},{type:"input",name:"value",message:e=>`请输入新的 ${e.field}:`,when:e=>"secretKey"!==e.field&&"mode"!==e.field&&"domainIdList"!==e.field,validate:e=>""!==e.trim()||"不能为空"},{type:"password",name:"value",message:"请输入新的 SecretKey:",mask:"*",when:e=>"secretKey"===e.field,validate:e=>""!==e.trim()||"不能为空"},{type:"list",name:"value",message:"请选择运行模式:",when:e=>"mode"===e.field,choices:[{name:"生产模式 (不显示调试信息)",value:"production"},{name:"调试模式 (显示详细请求信息)",value:"debug"}]},{type:"input",name:"value",message:"请输入域名ID列表(多个用逗号分隔):",when:e=>"domainIdList"===e.field,default:""}]);if("domainIdList"===t.field){const o=t.value,n=o&&o.trim()?o.split(",").map(e=>e.trim()).filter(e=>""!==e):[];e[t.field]=n}else e[t.field]=t.value;p(e),console.log(o.green("✅ 配置已更新"))});export default u;export{m as readConfig,l as CONFIG_FILE};
|
|
2
|
+
//# sourceMappingURL=commands\config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","
|
|
1
|
+
{"version":3,"file":"A:\\edgeone-cli\\dist\\commands\\config.js","names":["Command","chalk","inquirer","fs","path","os","encrypt","decrypt","isEncrypted","CONFIG_DIR","join","homedir","CONFIG_FILE","readConfig","existsSync","content","readFileSync","stored","JSON","parse","secretKey","needsMigration","encrypted","config","secretId","endpoint","mode","domainIdList","writeConfig","console","log","gray","mkdirSync","recursive","encryptedSecretKey","writeFileSync","stringify","maskString","str","showLength","length","slice","configCmd","description","command","action","async","cyan","answers","prompt","type","name","message","validate","input","trim","mask","default","choices","value","domainIds","domainIdInput","split","map","id","filter","green","yellow","modeText","modeColor","repeat","confirm","unlinkSync","field","when"],"sources":["../../src/commands/config.ts"],"mappings":"kBAASA,MAAe,mBACjBC,MAAW,eACXC,MAAc,kBACdC,MAAQ,YACRC,MAAU,cACVC,MAAQ,uBACNC,aAASC,iBAASC,MAAmB,qBAqB9C,MAAMC,EAAaL,EAAKM,KAAKL,EAAGM,UAAW,gBACrCC,EAAcR,EAAKM,KAAKD,EAAY,eAc1C,SAASI,IACP,GAAIV,EAAGW,WAAWF,GAAc,CAC9B,MAAMG,EAAUZ,EAAGa,aAAaJ,EAAa,SACvCK,EAASC,KAAKC,MAAMJ,GAE1B,IAAIK,EAAYH,EAAOG,UACnBC,GAAkBJ,EAAOK,UAG7B,GAAIL,EAAOK,WAAad,EAAYS,EAAOG,WACzC,IACEA,EAAYb,EAAQU,EAAOG,WAC3BC,GAAiB,CACnB,CAAE,MAEAA,GAAiB,CACnB,CAGF,MAAME,EAAiB,CACrBC,SAAUP,EAAOO,SACjBJ,UAAWA,EACXK,SAAUR,EAAOQ,SACjBC,KAAMT,EAAOS,MAAQ,aACrBC,aAAcV,EAAOU,cAAgB,IASvC,OALIN,IACFO,EAAYL,GACZM,QAAQC,IAAI7B,EAAM8B,KAAK,qBAGlBR,CACT,CACA,OAAO,IACT,CAKA,SAASK,EAAYL,GAjDdpB,EAAGW,WAAWL,IACjBN,EAAG6B,UAAUvB,EAAY,CAAEwB,WAAW,IAoDxC,MAAMC,EAAqB5B,EAAQiB,EAAOH,WAEpCH,EAAuB,CAC3BO,SAAUD,EAAOC,SACjBJ,UAAWc,EACXT,SAAUF,EAAOE,SACjBC,KAAMH,EAAOG,KACbC,aAAcJ,EAAOI,aACrBL,WAAW,GAGbnB,EAAGgC,cAAcvB,EAAaM,KAAKkB,UAAUnB,EAAQ,KAAM,GAAI,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aQ,MAAO,aAC5B,CAAER,KAAM,SAAUQ,MAAO,YACzB,CAAER,KAAM,OAAQQ,MAAO,QACvB,CAAER,KAAM,SAAUQ,MAAO,kBAG7B,CACET,KAAM,QACNC,KAAM,QACNC,QAAUJ,GAAiB,SAASA,EAAQyB,SAC5CC,KAAO1B,GAAmC,cAAlBA,EAAQyB,OAA2C,SAAlBzB,EAAQyB,OAAsC,iBAAlBzB,EAAQyB,MAC7FpB,SAAWC,GAAmC,KAAjBA,EAAMC,QAAiB,QAEtD,CACEL,KAAM,WACNC,KAAM,QACNC,QAAS,mBACTI,KAAM,IACNkB,KAAO1B,GAAmC,cAAlBA,EAAQyB,MAChCpB,SAAWC,GAAmC,KAAjBA,EAAMC,QAAiB,QAEtD,CACEL,KAAM,OACNC,KAAM,QACNC,QAAS,WACTsB,KAAO1B,GAAmC,SAAlBA,EAAQyB,MAChCf,QAAS,CACP,CAAEP,KAAM,iBAAkBQ,MAAO,cACjC,CAAER,KAAM,kBAAmBQ,MAAO,WAGtC,CACET,KAAM,QACNC,KAAM,QACNC,QAAS,sBACTsB,KAAO1B,GAAmC,iBAAlBA,EAAQyB,MAChChB,QAAS,MAIb,GAAsB,iBAAlBT,EAAQyB,MAA0B,CACpC,MAAMZ,EAAgBb,EAAQW,MACxBC,EAAYC,GAAiBA,EAAcN,OAC7CM,EAAcC,MAAM,KAAKC,IAAIC,GAAMA,EAAGT,QAAQU,OAAOD,GAAa,KAAPA,GAC3D,GACHzC,EAAeyB,EAAQyB,OAASb,CACnC,MACGrC,EAAeyB,EAAQyB,OAASzB,EAAQW,MAE3C/B,EAAYL,GACZM,QAAQC,IAAI7B,EAAMiE,MAAM,6BAGbxB,SACN7B,gBAAYD","ignoreList":[]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
/**
|
|
3
|
-
* 创建清除缓存命令
|
|
4
|
-
*/
|
|
5
|
-
export declare function createPurgeCommand(): Command;
|
|
6
|
-
/**
|
|
7
|
-
* 创建预热命令
|
|
8
|
-
*/
|
|
9
|
-
export declare function createPrefetchCommand(): Command;
|
|
10
|
-
/**
|
|
11
|
-
* 创建历史记录命令
|
|
12
|
-
*/
|
|
13
|
-
export declare function createHistoryCommand(): Command;
|
|
1
|
+
import { Command } from "commander";
|
|
2
|
+
/**
|
|
3
|
+
* 创建清除缓存命令
|
|
4
|
+
*/
|
|
5
|
+
export declare function createPurgeCommand(): Command;
|
|
6
|
+
/**
|
|
7
|
+
* 创建预热命令
|
|
8
|
+
*/
|
|
9
|
+
export declare function createPrefetchCommand(): Command;
|
|
10
|
+
/**
|
|
11
|
+
* 创建历史记录命令
|
|
12
|
+
*/
|
|
13
|
+
export declare function createHistoryCommand(): Command;
|
|
14
14
|
//# sourceMappingURL=edgeone.d.ts.map
|