mt-tech 1.0.6 → 1.0.8
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/README.md +11 -309
- package/dist/commands/ai-api.js +1 -1
- package/dist/commands/api.js +1 -1
- package/dist/index.js +1 -1
- package/oclif.manifest.json +19 -11
- package/package.json +2 -4
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ $ npm install -g mt-tech
|
|
|
20
20
|
$ mt-tech COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ mt-tech (--version)
|
|
23
|
-
mt-tech/1.0.
|
|
23
|
+
mt-tech/1.0.8 darwin-arm64 node-v25.8.2
|
|
24
24
|
$ mt-tech --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ mt-tech COMMAND
|
|
@@ -32,16 +32,6 @@ USAGE
|
|
|
32
32
|
* [`mt-tech ai-api URI`](#mt-tech-ai-api-uri)
|
|
33
33
|
* [`mt-tech api URI`](#mt-tech-api-uri)
|
|
34
34
|
* [`mt-tech help [COMMAND]`](#mt-tech-help-command)
|
|
35
|
-
* [`mt-tech plugins`](#mt-tech-plugins)
|
|
36
|
-
* [`mt-tech plugins add PLUGIN`](#mt-tech-plugins-add-plugin)
|
|
37
|
-
* [`mt-tech plugins:inspect PLUGIN...`](#mt-tech-pluginsinspect-plugin)
|
|
38
|
-
* [`mt-tech plugins install PLUGIN`](#mt-tech-plugins-install-plugin)
|
|
39
|
-
* [`mt-tech plugins link PATH`](#mt-tech-plugins-link-path)
|
|
40
|
-
* [`mt-tech plugins remove [PLUGIN]`](#mt-tech-plugins-remove-plugin)
|
|
41
|
-
* [`mt-tech plugins reset`](#mt-tech-plugins-reset)
|
|
42
|
-
* [`mt-tech plugins uninstall [PLUGIN]`](#mt-tech-plugins-uninstall-plugin)
|
|
43
|
-
* [`mt-tech plugins unlink [PLUGIN]`](#mt-tech-plugins-unlink-plugin)
|
|
44
|
-
* [`mt-tech plugins update`](#mt-tech-plugins-update)
|
|
45
35
|
|
|
46
36
|
## `mt-tech ai-api URI`
|
|
47
37
|
|
|
@@ -49,18 +39,19 @@ USAGE
|
|
|
49
39
|
|
|
50
40
|
```
|
|
51
41
|
USAGE
|
|
52
|
-
$ mt-tech ai-api URI -t <value> -d <value> [--env test|staging|prod] [--format json|text]
|
|
42
|
+
$ mt-tech ai-api URI -t <value> -d <value> [--env test|staging|prod] [--format json|text] [-w <value>]
|
|
53
43
|
|
|
54
44
|
ARGUMENTS
|
|
55
45
|
URI AI 网关接口路径
|
|
56
46
|
|
|
57
47
|
FLAGS
|
|
58
|
-
-d, --data=<value>
|
|
59
|
-
-t, --token=<value>
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
48
|
+
-d, --data=<value> (required) 请求体,JSON 格式字符串
|
|
49
|
+
-t, --token=<value> (required) 授权 token
|
|
50
|
+
-w, --swimlane=<value> 指定泳道名(如 jiayunfeng-kuxxe),通过 swimlane 请求头路由,仅 test 环境生效
|
|
51
|
+
--env=<option> [default: prod] 指定环境:test、staging、prod
|
|
52
|
+
<options: test|staging|prod>
|
|
53
|
+
--format=<option> [default: json] 输出格式:json(格式化)、text(紧凑)
|
|
54
|
+
<options: json|text>
|
|
64
55
|
|
|
65
56
|
DESCRIPTION
|
|
66
57
|
美团技术服务合作中心 AI 网关通用请求 CLI
|
|
@@ -76,7 +67,7 @@ EXAMPLES
|
|
|
76
67
|
```
|
|
77
68
|
USAGE
|
|
78
69
|
$ mt-tech api URI -d <value> -b <value> -s <value> [--env test|staging|prod] [--format json|text] [-a
|
|
79
|
-
<value>] [-z <value>]
|
|
70
|
+
<value>] [-z <value>] [-w <value>]
|
|
80
71
|
|
|
81
72
|
ARGUMENTS
|
|
82
73
|
URI 美团技术服务合作中心api网关接口路径
|
|
@@ -86,6 +77,7 @@ FLAGS
|
|
|
86
77
|
-b, --businessId=<value> (required) 业务 ID
|
|
87
78
|
-d, --developerId=<value> (required) 开发者 ID
|
|
88
79
|
-s, --signKey=<value> (required) 开发者签名密钥
|
|
80
|
+
-w, --swimlane=<value> 指定泳道名(如 jiayunfeng-kuxxe),通过 swimlane 请求头路由,仅 test 环境生效
|
|
89
81
|
-z, --biz=<value> 业务参数,JSON 格式字符串
|
|
90
82
|
--env=<option> [default: prod] 指定环境:test、staging、prod
|
|
91
83
|
<options: test|staging|prod>
|
|
@@ -118,296 +110,6 @@ DESCRIPTION
|
|
|
118
110
|
```
|
|
119
111
|
|
|
120
112
|
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.2.41/src/commands/help.ts)_
|
|
121
|
-
|
|
122
|
-
## `mt-tech plugins`
|
|
123
|
-
|
|
124
|
-
List installed plugins.
|
|
125
|
-
|
|
126
|
-
```
|
|
127
|
-
USAGE
|
|
128
|
-
$ mt-tech plugins [--json] [--core]
|
|
129
|
-
|
|
130
|
-
FLAGS
|
|
131
|
-
--core Show core plugins.
|
|
132
|
-
|
|
133
|
-
GLOBAL FLAGS
|
|
134
|
-
--json Format output as json.
|
|
135
|
-
|
|
136
|
-
DESCRIPTION
|
|
137
|
-
List installed plugins.
|
|
138
|
-
|
|
139
|
-
EXAMPLES
|
|
140
|
-
$ mt-tech plugins
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.59/src/commands/plugins/index.ts)_
|
|
144
|
-
|
|
145
|
-
## `mt-tech plugins add PLUGIN`
|
|
146
|
-
|
|
147
|
-
Installs a plugin into mt-tech.
|
|
148
|
-
|
|
149
|
-
```
|
|
150
|
-
USAGE
|
|
151
|
-
$ mt-tech plugins add PLUGIN... [--json] [-f] [-h] [-s | -v]
|
|
152
|
-
|
|
153
|
-
ARGUMENTS
|
|
154
|
-
PLUGIN... Plugin to install.
|
|
155
|
-
|
|
156
|
-
FLAGS
|
|
157
|
-
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
|
|
158
|
-
-h, --help Show CLI help.
|
|
159
|
-
-s, --silent Silences npm output.
|
|
160
|
-
-v, --verbose Show verbose npm output.
|
|
161
|
-
|
|
162
|
-
GLOBAL FLAGS
|
|
163
|
-
--json Format output as json.
|
|
164
|
-
|
|
165
|
-
DESCRIPTION
|
|
166
|
-
Installs a plugin into mt-tech.
|
|
167
|
-
|
|
168
|
-
Uses npm to install plugins.
|
|
169
|
-
|
|
170
|
-
Installation of a user-installed plugin will override a core plugin.
|
|
171
|
-
|
|
172
|
-
Use the MT_TECH_NPM_LOG_LEVEL environment variable to set the npm loglevel.
|
|
173
|
-
Use the MT_TECH_NPM_REGISTRY environment variable to set the npm registry.
|
|
174
|
-
|
|
175
|
-
ALIASES
|
|
176
|
-
$ mt-tech plugins add
|
|
177
|
-
|
|
178
|
-
EXAMPLES
|
|
179
|
-
Install a plugin from npm registry.
|
|
180
|
-
|
|
181
|
-
$ mt-tech plugins add myplugin
|
|
182
|
-
|
|
183
|
-
Install a plugin from a github url.
|
|
184
|
-
|
|
185
|
-
$ mt-tech plugins add https://github.com/someuser/someplugin
|
|
186
|
-
|
|
187
|
-
Install a plugin from a github slug.
|
|
188
|
-
|
|
189
|
-
$ mt-tech plugins add someuser/someplugin
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
## `mt-tech plugins:inspect PLUGIN...`
|
|
193
|
-
|
|
194
|
-
Displays installation properties of a plugin.
|
|
195
|
-
|
|
196
|
-
```
|
|
197
|
-
USAGE
|
|
198
|
-
$ mt-tech plugins inspect PLUGIN...
|
|
199
|
-
|
|
200
|
-
ARGUMENTS
|
|
201
|
-
PLUGIN... [default: .] Plugin to inspect.
|
|
202
|
-
|
|
203
|
-
FLAGS
|
|
204
|
-
-h, --help Show CLI help.
|
|
205
|
-
-v, --verbose
|
|
206
|
-
|
|
207
|
-
GLOBAL FLAGS
|
|
208
|
-
--json Format output as json.
|
|
209
|
-
|
|
210
|
-
DESCRIPTION
|
|
211
|
-
Displays installation properties of a plugin.
|
|
212
|
-
|
|
213
|
-
EXAMPLES
|
|
214
|
-
$ mt-tech plugins inspect myplugin
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.59/src/commands/plugins/inspect.ts)_
|
|
218
|
-
|
|
219
|
-
## `mt-tech plugins install PLUGIN`
|
|
220
|
-
|
|
221
|
-
Installs a plugin into mt-tech.
|
|
222
|
-
|
|
223
|
-
```
|
|
224
|
-
USAGE
|
|
225
|
-
$ mt-tech plugins install PLUGIN... [--json] [-f] [-h] [-s | -v]
|
|
226
|
-
|
|
227
|
-
ARGUMENTS
|
|
228
|
-
PLUGIN... Plugin to install.
|
|
229
|
-
|
|
230
|
-
FLAGS
|
|
231
|
-
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
|
|
232
|
-
-h, --help Show CLI help.
|
|
233
|
-
-s, --silent Silences npm output.
|
|
234
|
-
-v, --verbose Show verbose npm output.
|
|
235
|
-
|
|
236
|
-
GLOBAL FLAGS
|
|
237
|
-
--json Format output as json.
|
|
238
|
-
|
|
239
|
-
DESCRIPTION
|
|
240
|
-
Installs a plugin into mt-tech.
|
|
241
|
-
|
|
242
|
-
Uses npm to install plugins.
|
|
243
|
-
|
|
244
|
-
Installation of a user-installed plugin will override a core plugin.
|
|
245
|
-
|
|
246
|
-
Use the MT_TECH_NPM_LOG_LEVEL environment variable to set the npm loglevel.
|
|
247
|
-
Use the MT_TECH_NPM_REGISTRY environment variable to set the npm registry.
|
|
248
|
-
|
|
249
|
-
ALIASES
|
|
250
|
-
$ mt-tech plugins add
|
|
251
|
-
|
|
252
|
-
EXAMPLES
|
|
253
|
-
Install a plugin from npm registry.
|
|
254
|
-
|
|
255
|
-
$ mt-tech plugins install myplugin
|
|
256
|
-
|
|
257
|
-
Install a plugin from a github url.
|
|
258
|
-
|
|
259
|
-
$ mt-tech plugins install https://github.com/someuser/someplugin
|
|
260
|
-
|
|
261
|
-
Install a plugin from a github slug.
|
|
262
|
-
|
|
263
|
-
$ mt-tech plugins install someuser/someplugin
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.59/src/commands/plugins/install.ts)_
|
|
267
|
-
|
|
268
|
-
## `mt-tech plugins link PATH`
|
|
269
|
-
|
|
270
|
-
Links a plugin into the CLI for development.
|
|
271
|
-
|
|
272
|
-
```
|
|
273
|
-
USAGE
|
|
274
|
-
$ mt-tech plugins link PATH [-h] [--install] [-v]
|
|
275
|
-
|
|
276
|
-
ARGUMENTS
|
|
277
|
-
PATH [default: .] path to plugin
|
|
278
|
-
|
|
279
|
-
FLAGS
|
|
280
|
-
-h, --help Show CLI help.
|
|
281
|
-
-v, --verbose
|
|
282
|
-
--[no-]install Install dependencies after linking the plugin.
|
|
283
|
-
|
|
284
|
-
DESCRIPTION
|
|
285
|
-
Links a plugin into the CLI for development.
|
|
286
|
-
|
|
287
|
-
Installation of a linked plugin will override a user-installed or core plugin.
|
|
288
|
-
|
|
289
|
-
e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
|
|
290
|
-
command will override the user-installed or core plugin implementation. This is useful for development work.
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
EXAMPLES
|
|
294
|
-
$ mt-tech plugins link myplugin
|
|
295
|
-
```
|
|
296
|
-
|
|
297
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.59/src/commands/plugins/link.ts)_
|
|
298
|
-
|
|
299
|
-
## `mt-tech plugins remove [PLUGIN]`
|
|
300
|
-
|
|
301
|
-
Removes a plugin from the CLI.
|
|
302
|
-
|
|
303
|
-
```
|
|
304
|
-
USAGE
|
|
305
|
-
$ mt-tech plugins remove [PLUGIN...] [-h] [-v]
|
|
306
|
-
|
|
307
|
-
ARGUMENTS
|
|
308
|
-
[PLUGIN...] plugin to uninstall
|
|
309
|
-
|
|
310
|
-
FLAGS
|
|
311
|
-
-h, --help Show CLI help.
|
|
312
|
-
-v, --verbose
|
|
313
|
-
|
|
314
|
-
DESCRIPTION
|
|
315
|
-
Removes a plugin from the CLI.
|
|
316
|
-
|
|
317
|
-
ALIASES
|
|
318
|
-
$ mt-tech plugins unlink
|
|
319
|
-
$ mt-tech plugins remove
|
|
320
|
-
|
|
321
|
-
EXAMPLES
|
|
322
|
-
$ mt-tech plugins remove myplugin
|
|
323
|
-
```
|
|
324
|
-
|
|
325
|
-
## `mt-tech plugins reset`
|
|
326
|
-
|
|
327
|
-
Remove all user-installed and linked plugins.
|
|
328
|
-
|
|
329
|
-
```
|
|
330
|
-
USAGE
|
|
331
|
-
$ mt-tech plugins reset [--hard] [--reinstall]
|
|
332
|
-
|
|
333
|
-
FLAGS
|
|
334
|
-
--hard Delete node_modules and package manager related files in addition to uninstalling plugins.
|
|
335
|
-
--reinstall Reinstall all plugins after uninstalling.
|
|
336
|
-
```
|
|
337
|
-
|
|
338
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.59/src/commands/plugins/reset.ts)_
|
|
339
|
-
|
|
340
|
-
## `mt-tech plugins uninstall [PLUGIN]`
|
|
341
|
-
|
|
342
|
-
Removes a plugin from the CLI.
|
|
343
|
-
|
|
344
|
-
```
|
|
345
|
-
USAGE
|
|
346
|
-
$ mt-tech plugins uninstall [PLUGIN...] [-h] [-v]
|
|
347
|
-
|
|
348
|
-
ARGUMENTS
|
|
349
|
-
[PLUGIN...] plugin to uninstall
|
|
350
|
-
|
|
351
|
-
FLAGS
|
|
352
|
-
-h, --help Show CLI help.
|
|
353
|
-
-v, --verbose
|
|
354
|
-
|
|
355
|
-
DESCRIPTION
|
|
356
|
-
Removes a plugin from the CLI.
|
|
357
|
-
|
|
358
|
-
ALIASES
|
|
359
|
-
$ mt-tech plugins unlink
|
|
360
|
-
$ mt-tech plugins remove
|
|
361
|
-
|
|
362
|
-
EXAMPLES
|
|
363
|
-
$ mt-tech plugins uninstall myplugin
|
|
364
|
-
```
|
|
365
|
-
|
|
366
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.59/src/commands/plugins/uninstall.ts)_
|
|
367
|
-
|
|
368
|
-
## `mt-tech plugins unlink [PLUGIN]`
|
|
369
|
-
|
|
370
|
-
Removes a plugin from the CLI.
|
|
371
|
-
|
|
372
|
-
```
|
|
373
|
-
USAGE
|
|
374
|
-
$ mt-tech plugins unlink [PLUGIN...] [-h] [-v]
|
|
375
|
-
|
|
376
|
-
ARGUMENTS
|
|
377
|
-
[PLUGIN...] plugin to uninstall
|
|
378
|
-
|
|
379
|
-
FLAGS
|
|
380
|
-
-h, --help Show CLI help.
|
|
381
|
-
-v, --verbose
|
|
382
|
-
|
|
383
|
-
DESCRIPTION
|
|
384
|
-
Removes a plugin from the CLI.
|
|
385
|
-
|
|
386
|
-
ALIASES
|
|
387
|
-
$ mt-tech plugins unlink
|
|
388
|
-
$ mt-tech plugins remove
|
|
389
|
-
|
|
390
|
-
EXAMPLES
|
|
391
|
-
$ mt-tech plugins unlink myplugin
|
|
392
|
-
```
|
|
393
|
-
|
|
394
|
-
## `mt-tech plugins update`
|
|
395
|
-
|
|
396
|
-
Update installed plugins.
|
|
397
|
-
|
|
398
|
-
```
|
|
399
|
-
USAGE
|
|
400
|
-
$ mt-tech plugins update [-h] [-v]
|
|
401
|
-
|
|
402
|
-
FLAGS
|
|
403
|
-
-h, --help Show CLI help.
|
|
404
|
-
-v, --verbose
|
|
405
|
-
|
|
406
|
-
DESCRIPTION
|
|
407
|
-
Update installed plugins.
|
|
408
|
-
```
|
|
409
|
-
|
|
410
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.59/src/commands/plugins/update.ts)_
|
|
411
113
|
<!-- commandsstop -->
|
|
412
114
|
* [`mt-tech api URI`](#mt-tech-api-uri)
|
|
413
115
|
* [`mt-tech help [COMMAND]`](#mt-tech-help-command)
|
package/dist/commands/ai-api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1a3e84=_0x4963;(function(_0x3ccd06,_0x1e1fb1){const _0xd1fe6a=_0x4963,_0x458023=_0x3ccd06();while(!![]){try{const _0x439c99=-parseInt(_0xd1fe6a(0xff))/0x1+-parseInt(_0xd1fe6a(0x107))/0x2+parseInt(_0xd1fe6a(0x101))/0x3*(parseInt(_0xd1fe6a(0xf3))/0x4)+parseInt(_0xd1fe6a(0x10e))/0x5*(parseInt(_0xd1fe6a(0x10f))/0x6)+parseInt(_0xd1fe6a(0xf0))/0x7*(-parseInt(_0xd1fe6a(0x126))/0x8)+-parseInt(_0xd1fe6a(0x105))/0x9+parseInt(_0xd1fe6a(0xfa))/0xa*(parseInt(_0xd1fe6a(0x106))/0xb);if(_0x439c99===_0x1e1fb1)break;else _0x458023['push'](_0x458023['shift']());}catch(_0x573efc){_0x458023['push'](_0x458023['shift']());}}}(_0x1244,0x3954d));import{Args as _0xf03cae,Command as _0x5670f6,Flags as _0x47238e}from'@oclif/core';const _0x37e6d2={};_0x37e6d2[_0x1a3e84(0x12f)]='https://mcp-open-cater.meituan.com',_0x37e6d2['staging']=_0x1a3e84(0x11b),_0x37e6d2[_0x1a3e84(0x113)]=_0x1a3e84(0x12b);var w=_0x37e6d2;function p(_0x2a78b0,_0x3224de){const _0x2e373c=_0x1a3e84,_0x552d3a={};_0x552d3a['hRNzR']=function(_0x333e9c,_0x3ac628){return _0x333e9c!==_0x3ac628;},_0x552d3a[_0x2e373c(0x10c)]='test';const _0xa00df0=_0x552d3a;let _0x7617af=w[_0x2a78b0];if(!_0x7617af)throw new Error(_0x2e373c(0x12d)+_0x2a78b0+_0x2e373c(0x139));if(_0x3224de&&_0xa00df0['hRNzR'](_0x2a78b0,_0xa00df0[_0x2e373c(0x10c)]))throw new Error('泳道功能仅支持\x20test\x20环境,staging/prod\x20环境不支持指定泳道');return _0x7617af;}function u(_0x4e0bee){return _0x4e0bee?{'swimlane':_0x4e0bee}:{};}const _0x2d1624={};_0x2d1624['description']=_0x1a3e84(0x125),_0x2d1624[_0x1a3e84(0x109)]=!0x0;const _0x40f279={};function _0x4963(_0x3f065e,_0x125ee0){_0x3f065e=_0x3f065e-0xf0;const _0x1244b7=_0x1244();let _0x4963b0=_0x1244b7[_0x3f065e];if(_0x4963['Nqqwtw']===undefined){var _0x146c28=function(_0x1dc6d8){const _0xbc73ee='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c9991='',_0x215839='';for(let _0x2e01ee=0x0,_0xb9210d,_0x46bcff,_0x55dd05=0x0;_0x46bcff=_0x1dc6d8['charAt'](_0x55dd05++);~_0x46bcff&&(_0xb9210d=_0x2e01ee%0x4?_0xb9210d*0x40+_0x46bcff:_0x46bcff,_0x2e01ee++%0x4)?_0x1c9991+=String['fromCharCode'](0xff&_0xb9210d>>(-0x2*_0x2e01ee&0x6)):0x0){_0x46bcff=_0xbc73ee['indexOf'](_0x46bcff);}for(let _0x102288=0x0,_0xd07c1a=_0x1c9991['length'];_0x102288<_0xd07c1a;_0x102288++){_0x215839+='%'+('00'+_0x1c9991['charCodeAt'](_0x102288)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x215839);};_0x4963['UkXjbS']=_0x146c28,_0x4963['psBgMD']={},_0x4963['Nqqwtw']=!![];}const _0x4cbba7=_0x1244b7[0x0],_0x4a935b=_0x3f065e+_0x4cbba7,_0x1b6943=_0x4963['psBgMD'][_0x4a935b];return!_0x1b6943?(_0x4963b0=_0x4963['UkXjbS'](_0x4963b0),_0x4963['psBgMD'][_0x4a935b]=_0x4963b0):_0x4963b0=_0x1b6943,_0x4963b0;}_0x40f279[_0x1a3e84(0x11f)]=_0x1a3e84(0x119),_0x40f279[_0x1a3e84(0x127)]='prod',_0x40f279[_0x1a3e84(0xf9)]=[_0x1a3e84(0x113),'staging',_0x1a3e84(0x12f)];const _0x3b39f4={};_0x3b39f4['description']=_0x1a3e84(0x112),_0x3b39f4['default']=_0x1a3e84(0x120),_0x3b39f4['options']=[_0x1a3e84(0x120),_0x1a3e84(0x138)];const _0x3075bd={};_0x3075bd['char']='t',_0x3075bd[_0x1a3e84(0x11f)]=_0x1a3e84(0x123),_0x3075bd[_0x1a3e84(0x109)]=!0x0;const _0x8fbb41={};_0x8fbb41[_0x1a3e84(0x133)]='d',_0x8fbb41[_0x1a3e84(0x11f)]='请求体,JSON\x20格式字符串',_0x8fbb41['required']=!0x0;const _0x592dbc={};function _0x1244(){const _0x5e43ce=['Ahr0Chm6lY9Ty3aUC2PZDc5ZDc5Zyw5RDwfPlMnVBq','yxjNCW','ic0G','sfruucdPLjNOR686ia','zgvZy3jPChrPB24','ANnVBG','vgLTzw91DevYCM9Y','AMD3CNa','5O6i5P2dihrVA2vU','cUwoN+wNI+wtJEw6LdOG','quKG572r5ywZ5O6L5y+J6lEV5B6e','ohPzvvHzsq','zgvMyxvSDa','zM9YBwf0','C3rYAw5N','ue9tva','Ahr0Chm6lY9Ty3aTB3bLBI1JyxrLCI50zxn0lM1LAxr1yw4Uy29T','5OYh5A6A5RoZ6ygt5zcn77Yi5AAcigPPyxL1BMzLBMCTA3v4EgxVViNVViZPGjROV4CGC3DPBwXHBMuG6k+35Rgc5As06lEV55sX77Ym5lUfihrLC3qG546V5Akd55sF5Pwi','5PYQ55+L546V5AkdoIa','v09ru00','ChjVza','seDXD3u','ls1KyxrHiowpGUAvSos4JEAyR+wqIoAZLEEAHcbku09oioAGVow8JZOG','zw52','y2HHCG','5zon5BQu6kEJ5P6q5AsX6lsLoIa','v3nHD1a','C2XPy2u','pcu9ignVBMzPzY5IAw4Gjt4Gpcu9ignVBw1HBMqUAwqGjt4Gl3yXl2fWAs92B3LHz2uVB3bLBMfWAs9XDwvYEsaTlxrVA2vUpxH4EcaTlwrHDge9j3SIA2v5iJOIDMfSDwuIFsC','Dgv4Da','77Ym5PsV5OYb55Qe546V5Akd77YADgvZDooaGxn0ywDPBMFJGifWCM9K','CgfYC2u','r0rpB3C','nJqZotG2C1nTAhnl','5PYQ55+L6zsz6k+V','DhjHy2vjza','mJmYEMzlEg53','yxbWBgLJyxrPB24VANnVBG','BxnN','qvbjioMuMEIVRZOG','CNvU','tgXlB2O','B3b0Aw9UCW','ody4mtbIwvbjv1m','zxjYB3i','B3b0Aw9U','C3rHDhvZvgv4Da','weHjy3i','mtu4mtC4tgzKzfDW','ufjvuwW','mtGWmZbnsNrQt2u','y29Kzq','Bg9N','C3rYAw5NAwz5','mZC0mdy0m0f3Cg9LAq','nJi3rerluMrx','mZm1ntjcvgXhy0G','6k+35Rgc6lAf5PE277Ym6k+35Qoa5P+L572r57UC6l+E5O6L','CMvXDwLYzwq','tu9UrwS','DxjP','t3Dvtxm','6l+E5O6L6zsz6k+VoIa','ntq1Efjbww9H','nda3ng5lDe1Urq','DgLTzw91Da','lcb0CMfJzuLKoIa','6l6t5yE65Qc85BYp77YAANnVBU+8IoAGVow8J+wmLU+8IEoaGxrLEhtVViJNTkFLH5hVViK','DgvZDa','EerTEgO','ywLszxf1zxn0','BMfTzq','C3DPBwXHBMu','zgf0yq','5OYh5A6A546V5Akd77YADgvZDooaGxn0ywDPBMFJGifWCM9K','576o5zUI5OQa5PYV5PYn5yQH5zci5l2C5lIT5B+diefjioE9KEwfS+MaMUEuQoIVT+AXGIbdteK'];_0x1244=function(){return _0x5e43ce;};return _0x1244();}_0x592dbc['char']='w',_0x592dbc[_0x1a3e84(0x11f)]=_0x1a3e84(0x12c),_0x592dbc[_0x1a3e84(0x109)]=!0x1;var g=class r extends _0x5670f6{static [_0x1a3e84(0x11f)]=_0x1a3e84(0x11a);static ['examples']=[_0x1a3e84(0x137)];static [_0x1a3e84(0x11c)]={'uri':_0xf03cae[_0x1a3e84(0x129)](_0x2d1624)};static ['flags']={'env':_0x47238e['option'](_0x40f279)(),'format':_0x47238e[_0x1a3e84(0xfc)](_0x3b39f4)(),'token':_0x47238e['string'](_0x3075bd),'data':_0x47238e[_0x1a3e84(0x129)](_0x8fbb41),'swimlane':_0x47238e['string'](_0x592dbc)};async[_0x1a3e84(0xf7)](){const _0x141ae4=_0x1a3e84,_0x1d2845={'bYtbj':function(_0x2ac579,_0x1da75a,_0x5c5172){return _0x2ac579(_0x1da75a,_0x5c5172);},'WsawP':function(_0x2429b7,_0x22eea4){return _0x2429b7(_0x22eea4);},'xDmxj':function(_0x490c02,_0x3e2b2a){return _0x490c02(_0x3e2b2a);},'MOnEk':function(_0x311f45,_0x44c6d5){return _0x311f45===_0x44c6d5;},'LlKoj':_0x141ae4(0x120)};let {args:_0x46d98a,flags:_0x2e7cd8}=await this[_0x141ae4(0x13a)](r),_0x32498a;try{_0x32498a=_0x1d2845['bYtbj'](p,_0x2e7cd8[_0x141ae4(0x132)],_0x2e7cd8[_0x141ae4(0x117)]);}catch(_0x5d1621){this['error'](_0x1d2845[_0x141ae4(0x135)](String,_0x5d1621));return;}let _0x2dbbd5;try{_0x2dbbd5=JSON[_0x141ae4(0x13a)](_0x2e7cd8[_0x141ae4(0x118)]);}catch{this[_0x141ae4(0xfb)](_0x141ae4(0x131)+_0x2e7cd8[_0x141ae4(0x118)]);}try{let _0x7955c5=await this[_0x141ae4(0x115)](_0x46d98a[_0x141ae4(0x10b)],_0x2dbbd5,_0x2e7cd8['token'],_0x32498a,_0x1d2845[_0x141ae4(0x114)](u,_0x2e7cd8['swimlane']));_0x1d2845[_0x141ae4(0x10a)](_0x2e7cd8[_0x141ae4(0x128)],_0x1d2845[_0x141ae4(0xf8)])?this['log'](JSON[_0x141ae4(0x104)](_0x7955c5,null,0x2)):this[_0x141ae4(0x103)](JSON[_0x141ae4(0x104)](_0x7955c5));}catch(_0x3d039f){this['error'](_0x1d2845[_0x141ae4(0x114)](String,_0x3d039f));}}async['aiRequest'](_0x4a601a,_0x754bad,_0x582364,_0x1dbf7d,_0x77477e={}){const _0xdeae3d=_0x1a3e84,_0x61f220={'vDvdG':function(_0xde8e83,_0x574dc5){return _0xde8e83+_0x574dc5;},'WOQSM':function(_0x2ff768,_0x37acc1,_0x45c1fb){return _0x2ff768(_0x37acc1,_0x45c1fb);},'HGqwu':_0xdeae3d(0x12a),'qGtsV':function(_0x3949fe,_0x329f45){return _0x3949fe instanceof _0x329f45;},'GDOow':function(_0x5245ae,_0x56233b){return _0x5245ae===_0x56233b;},'XHIcr':_0xdeae3d(0x121),'PRUQl':_0xdeae3d(0x108),'jgwrp':function(_0x5df40c,_0x5505b7){return _0x5df40c===_0x5505b7;}};let _0x32e378=_0x61f220['vDvdG'](_0x1dbf7d,_0x4a601a),_0x35ae59;try{const _0x1f9279={'Content-Type':_0xdeae3d(0xf4),'Authorization':_0x582364,..._0x77477e};_0x35ae59=await _0x61f220[_0xdeae3d(0x12e)](fetch,_0x32e378,{'method':_0x61f220[_0xdeae3d(0x130)],'headers':_0x1f9279,'body':JSON[_0xdeae3d(0x104)](_0x754bad),'signal':AbortSignal[_0xdeae3d(0x110)](0x7530)});}catch(_0xbbdac3){throw _0x61f220['qGtsV'](_0xbbdac3,DOMException)&&_0x61f220[_0xdeae3d(0x13b)](_0xbbdac3[_0xdeae3d(0x116)],_0x61f220[_0xdeae3d(0xfe)])?new Error(_0x61f220[_0xdeae3d(0x100)]):new Error(_0xdeae3d(0x10d)+_0xbbdac3);}if(!_0x35ae59['ok'])throw new Error(_0xdeae3d(0x11e)+_0x35ae59['status']+'\x20'+_0x35ae59[_0xdeae3d(0xfd)]);let _0x3f7d55;try{_0x3f7d55=await _0x35ae59[_0xdeae3d(0x120)]();}catch(_0x398364){let _0x4275d6=await _0x35ae59['text']();throw new Error(_0xdeae3d(0x134)+_0x398364+_0xdeae3d(0x124)+_0x4275d6[_0xdeae3d(0x136)](0x0,0x1f4));}if(_0x61f220[_0xdeae3d(0x122)](_0x3f7d55[_0xdeae3d(0x102)],0x0))return _0x3f7d55[_0xdeae3d(0x118)]??_0x3f7d55;throw new Error(_0xdeae3d(0xf6)+_0x3f7d55[_0xdeae3d(0x102)]+_0xdeae3d(0x11d)+(_0x3f7d55[_0xdeae3d(0xf5)]??_0xdeae3d(0xf1))+_0xdeae3d(0x111)+(_0x3f7d55[_0xdeae3d(0xf2)]??'-'));}};export{g as default};
|
package/dist/commands/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xb260c9=_0x5ca9;(function(_0x478e39,_0x46d96f){const _0x1aca49=_0x5ca9,_0x55c258=_0x478e39();while(!![]){try{const _0x369f5e=parseInt(_0x1aca49(0x109))/0x1+parseInt(_0x1aca49(0x137))/0x2+parseInt(_0x1aca49(0x148))/0x3*(-parseInt(_0x1aca49(0x101))/0x4)+parseInt(_0x1aca49(0x103))/0x5*(-parseInt(_0x1aca49(0x11a))/0x6)+parseInt(_0x1aca49(0xff))/0x7+-parseInt(_0x1aca49(0x12f))/0x8*(-parseInt(_0x1aca49(0x10e))/0x9)+parseInt(_0x1aca49(0x12c))/0xa*(-parseInt(_0x1aca49(0x144))/0xb);if(_0x369f5e===_0x46d96f)break;else _0x55c258['push'](_0x55c258['shift']());}catch(_0x1c27f2){_0x55c258['push'](_0x55c258['shift']());}}}(_0x5e25,0x5ac5e));import{Command as _0x3ece50,Flags as _0x58b13d,Args as _0x138fa8}from'@oclif/core';import*as _0x50ccf0 from'crypto';const _0x1ad550={};function _0x5e25(){const _0x1ab5f6=['wNvqAeS','ue9tva','DgLTzw91Da','zgLNzxn0','yxbWBgLJyxrPB24VEc13D3CTzM9YBs11CMXLBMnVzgvK','Ahr0Chm6lY9Ty3aTB3bLBI1JyxrLCI50zxn0lM1LAxr1yw4Uy29Tl2nVCMDP','C2LNBG','CMvXDwLYzwq','zgvZy3jPChrPB24','C3rYAw5NAwz5','zfLTBwm','6k+35Rgc6lAf5PE277Ym6k+35Qoa5P+L572r57UC6l+E5O6L','re1Pt1a','Ahr0Chm6lY9Ty3aTB3bLBI1JyxrLCI5TzwL0DwfUlMnVBs9JB3jNAq','ru5wx1vstfm','mtbMuwPzvxm','yNvZAw5LC3njza','vvrgltG','mty4otG0Cxb1sLzc','qvfeDgG','5PYQ55+L6zsz6k+V','C2LNBKTLEq','C2XPy2u','B0v1Evi','6l+E5O6L6zsz6k+VoIa','y2HHCG','mte2nJq5og5TELftAq','Bg9N','cUwoN+wNI+wtJEw6LdOG','AhrwEeO','ChjVza','z2v0u2LNBG','C3rYAw5N','DxjP','BwfW','DgvZDa','ANnVBG','zgv2zwXVCgvYswq','5O6i5P2dihrVA2vU77Ym5lIn6zYa6kAb6yM05P2d55Qe5O6L5y+J5y+V5lIn5lYG','mtaWmdm4mtHgsvrcsxa','ic0G','yML6','B3b0Aw9U','mJu4mJmXr0j0z3Ps','DhPwthO','zw52','6l6t5yE65Qc85BYp','Agv4','ndyXody5mxPqr0nYAq','yxjNCW','nfvztuDMyq','CNvU','mJK5mZy1vefTA0ve','t1bFu1vdq0vtuW','5zon5BQu6kEJ5P6q5AsX6lsLoIa','DxrMoa','BwnXAhu','5lIA5yQHieLe','mZuZmJyZBNLctwr6','uePusMu','yxbWqxv0AfrVA2vU','tNHOCuW','C3rHz2LUzW','odfKD3j6AMK','BxnN','y0HLs0q','A2v5CW','zNHfDhi','5OYh5A6A546V5Akd77YADgvZDooaGxn0ywDPBMFJGifWCM9K','suzvB1u','EKv4u3K','DxbKyxrL','C3rHDhvZ','CgfYC2u','B3b0Aw9UCW','ndjSDeP0rgy','DLbPqwW','DKnuA3e'];_0x5e25=function(){return _0x1ab5f6;};return _0x5e25();}_0x1ad550['description']='美团技术服务合作中心api网关接口路径',_0x1ad550['required']=!0x0;const _0x1f6a3b={};_0x1f6a3b[_0xb260c9(0x125)]=_0xb260c9(0x113),_0x1f6a3b['default']=_0xb260c9(0x13b),_0x1f6a3b[_0xb260c9(0x119)]=[_0xb260c9(0x140),_0xb260c9(0x10d),_0xb260c9(0x13b)];const _0x31ccd4={};_0x31ccd4['description']=_0xb260c9(0xfd),_0x31ccd4['default']=_0xb260c9(0x141),_0x31ccd4['options']=['json','text'];const _0x12801c={};_0x12801c['char']='a',_0x12801c[_0xb260c9(0x125)]=_0xb260c9(0x143),_0x12801c[_0xb260c9(0x124)]=!0x1;const _0x216a5a={};function _0x5ca9(_0x5d6225,_0x375367){_0x5d6225=_0x5d6225-0xfd;const _0x5e254b=_0x5e25();let _0x5ca924=_0x5e254b[_0x5d6225];if(_0x5ca9['UuxuQP']===undefined){var _0x211341=function(_0x54ec27){const _0x3d1713='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3ffc2e='',_0x373dc1='';for(let _0x3edcab=0x0,_0xe98aa9,_0x434972,_0x1094b0=0x0;_0x434972=_0x54ec27['charAt'](_0x1094b0++);~_0x434972&&(_0xe98aa9=_0x3edcab%0x4?_0xe98aa9*0x40+_0x434972:_0x434972,_0x3edcab++%0x4)?_0x3ffc2e+=String['fromCharCode'](0xff&_0xe98aa9>>(-0x2*_0x3edcab&0x6)):0x0){_0x434972=_0x3d1713['indexOf'](_0x434972);}for(let _0x41a28c=0x0,_0x5b910d=_0x3ffc2e['length'];_0x41a28c<_0x5b910d;_0x41a28c++){_0x373dc1+='%'+('00'+_0x3ffc2e['charCodeAt'](_0x41a28c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x373dc1);};_0x5ca9['HxHgLX']=_0x211341,_0x5ca9['nQFCFv']={},_0x5ca9['UuxuQP']=!![];}const _0x468aca=_0x5e254b[0x0],_0x4cfd54=_0x5d6225+_0x468aca,_0x39cfa9=_0x5ca9['nQFCFv'][_0x4cfd54];return!_0x39cfa9?(_0x5ca924=_0x5ca9['HxHgLX'](_0x5ca924),_0x5ca9['nQFCFv'][_0x4cfd54]=_0x5ca924):_0x5ca924=_0x39cfa9,_0x5ca924;}_0x216a5a[_0xb260c9(0x136)]='d',_0x216a5a[_0xb260c9(0x125)]='开发者\x20ID',_0x216a5a[_0xb260c9(0x124)]=!0x0;const _0x2b64dd={};_0x2b64dd[_0xb260c9(0x136)]='b',_0x2b64dd[_0xb260c9(0x125)]=_0xb260c9(0x108),_0x2b64dd[_0xb260c9(0x124)]=!0x0;const _0x4d19d3={};_0x4d19d3['char']='s',_0x4d19d3[_0xb260c9(0x125)]='开发者签名密钥',_0x4d19d3[_0xb260c9(0x124)]=!0x0;const _0x41c3e8={};_0x41c3e8['char']='z',_0x41c3e8[_0xb260c9(0x125)]='业务参数,JSON\x20格式字符串',_0x41c3e8['required']=!0x1;const _0x3b70f9={};_0x3b70f9['prod']=_0xb260c9(0x12a),_0x3b70f9[_0xb260c9(0x10d)]='https://mcp.sjst.st.sankuai.com/corgi',_0x3b70f9['test']=_0xb260c9(0x122);var h=class g extends _0x3ece50{static [_0xb260c9(0x125)]='美团技术服务合作中心api网关接口通用请求cli';static ['examples']=['<%=\x20config.bin\x20%>\x20<%=\x20command.id\x20%>\x20/rms/data/api/v1/poi/settlement_method/query\x20--appAuthToken=xxx\x20--developerId=xxx\x20--businessId=xx\x20--signKey=xxx\x20--biz=\x27{\x22test\x22:\x22xxx\x22}\x27'];static [_0xb260c9(0x100)]={'uri':_0x138fa8[_0xb260c9(0x13d)](_0x1ad550)};static ['flags']={'env':_0x58b13d[_0xb260c9(0x147)](_0x1f6a3b)(),'format':_0x58b13d[_0xb260c9(0x147)](_0x31ccd4)(),'appAuthToken':_0x58b13d[_0xb260c9(0x13d)](_0x12801c),'developerId':_0x58b13d[_0xb260c9(0x13d)](_0x216a5a),'businessId':_0x58b13d[_0xb260c9(0x13d)](_0x2b64dd),'signKey':_0x58b13d['string'](_0x4d19d3),'biz':_0x58b13d[_0xb260c9(0x13d)](_0x41c3e8)};static [_0xb260c9(0x12b)]=_0x3b70f9;async[_0xb260c9(0x102)](){const _0x1b8a5d=_0xb260c9,_0x457085={'dYmmc':function(_0x5be1b8,_0x317e22){return _0x5be1b8==_0x317e22;},'oEuyR':_0x1b8a5d(0x13d),'PHwxq':_0x1b8a5d(0x141),'htVxJ':function(_0x4cad3b,_0x23a74b){return _0x4cad3b(_0x23a74b);}};let {flags:_0xff9f51}=await this[_0x1b8a5d(0x118)](g),{args:_0x31b96e}=await this[_0x1b8a5d(0x118)](g),_0x4c2895=g[_0x1b8a5d(0x12b)][_0xff9f51[_0x1b8a5d(0x14a)]];try{const _0x59b117={};_0x59b117[_0x1b8a5d(0x13e)]=_0x31b96e[_0x1b8a5d(0x13e)],_0x59b117[_0x1b8a5d(0x10b)]=_0xff9f51['appAuthToken'],_0x59b117[_0x1b8a5d(0x142)]=_0xff9f51[_0x1b8a5d(0x142)],_0x59b117[_0x1b8a5d(0x12d)]=_0xff9f51[_0x1b8a5d(0x12d)],_0x59b117['signKey']=_0xff9f51[_0x1b8a5d(0x132)],_0x59b117[_0x1b8a5d(0x146)]=_0xff9f51[_0x1b8a5d(0x146)];let _0x1002a5=await this['corgiRequest'](_0x59b117,_0x4c2895),_0x432743=_0x457085[_0x1b8a5d(0x127)](typeof _0x1002a5,_0x457085[_0x1b8a5d(0x134)])?JSON['parse'](_0x1002a5):_0x1002a5;_0xff9f51['format']===_0x457085['PHwxq']?this[_0x1b8a5d(0x138)](JSON['stringify'](_0x432743,null,0x2)):this[_0x1b8a5d(0x138)](JSON[_0x1b8a5d(0x126)](_0x1002a5));}catch(_0x519f66){this['error'](_0x457085[_0x1b8a5d(0x13a)](String,_0x519f66));}}[_0xb260c9(0x13c)](_0x482713,_0x7f7657){const _0x2050ce=_0xb260c9,_0xc437df={'fxEtr':function(_0x5448b5,_0x124c89){return _0x5448b5===_0x124c89;},'NxhqL':_0x2050ce(0x123),'oHDwz':function(_0x271184,_0x50c928){return _0x271184!==_0x50c928;},'DMiOP':function(_0x51dd33,_0xc523a5){return _0x51dd33+_0xc523a5;},'vCTkq':function(_0x44f89a,_0x4cbd4a){return _0x44f89a(_0x4cbd4a);},'IFUoU':'sha1','vPiAl':_0x2050ce(0xfe)};let _0x2dd820=Object[_0x2050ce(0x111)](_0x7f7657)['sort'](),_0x3abc00=_0x482713;for(let _0x49257a of _0x2dd820){if(_0xc437df[_0x2050ce(0x112)](_0x49257a,_0xc437df[_0x2050ce(0x10c)]))continue;let _0x2ca3fb=_0x7f7657[_0x49257a];!_0x2ca3fb&&_0xc437df['oHDwz'](_0x2ca3fb,0x0)||(_0x3abc00+=_0xc437df[_0x2050ce(0x129)](_0x49257a,_0xc437df[_0x2050ce(0x11c)](String,_0x2ca3fb)));}return _0x50ccf0['createHash'](_0xc437df[_0x2050ce(0x114)])[_0x2050ce(0x116)](_0x3abc00,_0x2050ce(0x106))[_0x2050ce(0x120)](_0xc437df[_0x2050ce(0x11b)]);}async['corgiRequest'](_0x3a040e,_0x352c17){const _0x28f782=_0xb260c9,_0x285e6e={};_0x285e6e['AQDth']=function(_0x348dc3,_0x5c9507){return _0x348dc3/_0x5c9507;},_0x285e6e[_0x28f782(0x11d)]=_0x28f782(0x12e),_0x285e6e[_0x28f782(0x107)]=function(_0x58d78c,_0x1ab71e){return _0x58d78c+_0x1ab71e;},_0x285e6e['opDxT']=_0x28f782(0x11e),_0x285e6e[_0x28f782(0x115)]=_0x28f782(0x121),_0x285e6e[_0x28f782(0x149)]=function(_0x18c6b0,_0x493fb0){return _0x18c6b0===_0x493fb0;},_0x285e6e[_0x28f782(0x110)]=_0x28f782(0x128),_0x285e6e[_0x28f782(0x10a)]=_0x28f782(0x104);const _0x2592bb=_0x285e6e;let {uri:_0x20f07,appAuthToken:_0x584e7e,developerId:_0x5e4595,businessId:_0x629858,signKey:_0x3c1100,biz:_0x243dbe}=_0x3a040e,_0x41b202={'timestamp':Math['floor'](_0x2592bb[_0x28f782(0x130)](Date['now'](),0x3e8)),'charset':_0x2592bb[_0x28f782(0x11d)],'developerId':_0x5e4595,'version':'2','businessId':_0x629858};_0x584e7e&&(_0x41b202[_0x28f782(0x10b)]=_0x584e7e),_0x243dbe&&(_0x41b202['biz']=_0x243dbe),_0x41b202[_0x28f782(0x123)]=this[_0x28f782(0x13c)](_0x3c1100,_0x41b202);let _0x3466d7=new URLSearchParams(Object['entries'](_0x41b202)[_0x28f782(0x13f)](([_0x543580,_0x2b3c1a])=>[_0x543580,String(_0x2b3c1a)])),_0x77318e;try{_0x77318e=await fetch(_0x2592bb[_0x28f782(0x107)](_0x352c17,_0x20f07),{'method':_0x2592bb['opDxT'],'headers':{'Content-Type':_0x2592bb[_0x28f782(0x115)]},'body':_0x3466d7,'signal':AbortSignal[_0x28f782(0x11f)](0x7530)});}catch(_0xf5165e){throw _0xf5165e instanceof DOMException&&_0x2592bb[_0x28f782(0x149)](_0xf5165e['name'],'TimeoutError')?new Error(_0x2592bb['cHeKD']):new Error(_0x28f782(0x135)+_0xf5165e);}if(!_0x77318e['ok'])throw new Error('HTTP\x20错误:\x20'+_0x77318e[_0x28f782(0x117)]+'\x20'+_0x77318e['statusText']);let _0x3dd613;try{_0x3dd613=await _0x77318e[_0x28f782(0x141)]();}catch(_0x2f3093){let _0x5b35be=await _0x77318e['text']();throw new Error(_0x28f782(0x105)+_0x2f3093+_0x28f782(0x139)+_0x5b35be[_0x28f782(0x133)](0x0,0x1f4));}if(_0x2592bb[_0x28f782(0x149)](_0x3dd613['code'],_0x2592bb[_0x28f782(0x10a)]))return _0x3dd613['data']??_0x3dd613;throw new Error('API\x20错误:\x20'+_0x3dd613['code']+_0x28f782(0x145)+(_0x3dd613[_0x28f782(0x10f)]??_0x28f782(0x131)));}};export{h as default};
|
|
1
|
+
const _0xcb14d7=_0x375e;(function(_0x5687d9,_0x3d1fc1){const _0x37a07f=_0x375e,_0x1bc7dc=_0x5687d9();while(!![]){try{const _0x3adc8c=-parseInt(_0x37a07f(0xa9))/0x1+-parseInt(_0x37a07f(0xcf))/0x2*(-parseInt(_0x37a07f(0xc1))/0x3)+-parseInt(_0x37a07f(0xab))/0x4*(-parseInt(_0x37a07f(0x7f))/0x5)+parseInt(_0x37a07f(0x9a))/0x6*(-parseInt(_0x37a07f(0xc0))/0x7)+parseInt(_0x37a07f(0xb7))/0x8+parseInt(_0x37a07f(0x90))/0x9+-parseInt(_0x37a07f(0x92))/0xa*(parseInt(_0x37a07f(0xcb))/0xb);if(_0x3adc8c===_0x3d1fc1)break;else _0x1bc7dc['push'](_0x1bc7dc['shift']());}catch(_0x32a90f){_0x1bc7dc['push'](_0x1bc7dc['shift']());}}}(_0x1fd4,0x32c6c));import{Command as _0x5ee3d4,Flags as _0x110f8d,Args as _0x4ddda3}from'@oclif/core';import*as _0x27255e from'crypto';function _0x375e(_0x431861,_0x3c71e4){_0x431861=_0x431861-0x70;const _0x1fd4ec=_0x1fd4();let _0x375e1f=_0x1fd4ec[_0x431861];if(_0x375e['faYhjp']===undefined){var _0x257ba2=function(_0x3c0f44){const _0x30718f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1e3dfd='',_0x2077de='';for(let _0x4adc78=0x0,_0x26ce99,_0xfaa448,_0x2a6549=0x0;_0xfaa448=_0x3c0f44['charAt'](_0x2a6549++);~_0xfaa448&&(_0x26ce99=_0x4adc78%0x4?_0x26ce99*0x40+_0xfaa448:_0xfaa448,_0x4adc78++%0x4)?_0x1e3dfd+=String['fromCharCode'](0xff&_0x26ce99>>(-0x2*_0x4adc78&0x6)):0x0){_0xfaa448=_0x30718f['indexOf'](_0xfaa448);}for(let _0x9ab27=0x0,_0x1d5171=_0x1e3dfd['length'];_0x9ab27<_0x1d5171;_0x9ab27++){_0x2077de+='%'+('00'+_0x1e3dfd['charCodeAt'](_0x9ab27)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2077de);};_0x375e['cJewVe']=_0x257ba2,_0x375e['NDMADZ']={},_0x375e['faYhjp']=!![];}const _0x4a326b=_0x1fd4ec[0x0],_0x71b814=_0x431861+_0x4a326b,_0x175ed8=_0x375e['NDMADZ'][_0x71b814];return!_0x175ed8?(_0x375e1f=_0x375e['cJewVe'](_0x375e1f),_0x375e['NDMADZ'][_0x71b814]=_0x375e1f):_0x375e1f=_0x175ed8,_0x375e1f;}const _0x50b440={};_0x50b440[_0xcb14d7(0x9c)]='https://mcp-open-cater.meituan.com',_0x50b440[_0xcb14d7(0x76)]='https://mcp.sjst.st.sankuai.com',_0x50b440[_0xcb14d7(0x93)]=_0xcb14d7(0x8a);var S=_0x50b440;function m(_0x51f053,_0x382f45){const _0x2214a0=_0xcb14d7,_0x5badef={};_0x5badef['mTFTf']=function(_0x5c4865,_0x50c695){return _0x5c4865!==_0x50c695;},_0x5badef[_0x2214a0(0x77)]=_0x2214a0(0xa1);const _0x4f48cc=_0x5badef;let _0x2a9af2=S[_0x51f053];if(!_0x2a9af2)throw new Error('未知环境:\x20'+_0x51f053+',支持的环境:test、staging、prod');if(_0x382f45&&_0x4f48cc['mTFTf'](_0x51f053,_0x2214a0(0x93)))throw new Error(_0x4f48cc[_0x2214a0(0x77)]);return _0x2a9af2;}function f(_0x59db3d){return _0x59db3d?{'swimlane':_0x59db3d}:{};}const _0x55492b={};_0x55492b[_0xcb14d7(0x73)]='美团技术服务合作中心api网关接口路径',_0x55492b[_0xcb14d7(0xa5)]=!0x0;const _0x22c7e8={};_0x22c7e8[_0xcb14d7(0x73)]=_0xcb14d7(0x91),_0x22c7e8['default']='prod',_0x22c7e8['options']=[_0xcb14d7(0x93),'staging',_0xcb14d7(0x9c)];const _0x2ccd88={};_0x2ccd88[_0xcb14d7(0x73)]=_0xcb14d7(0x87),_0x2ccd88[_0xcb14d7(0xae)]='json',_0x2ccd88[_0xcb14d7(0xb1)]=[_0xcb14d7(0x8e),_0xcb14d7(0x88)];const _0x4e1897={};_0x4e1897[_0xcb14d7(0xc6)]='a',_0x4e1897[_0xcb14d7(0x73)]=_0xcb14d7(0x85),_0x4e1897['required']=!0x1;const _0x162faa={};_0x162faa['char']='d',_0x162faa[_0xcb14d7(0x73)]=_0xcb14d7(0x79),_0x162faa[_0xcb14d7(0xa5)]=!0x0;const _0x596126={};_0x596126[_0xcb14d7(0xc6)]='b',_0x596126['description']=_0xcb14d7(0xc2),_0x596126['required']=!0x0;const _0x4dd27e={};_0x4dd27e['char']='s',_0x4dd27e[_0xcb14d7(0x73)]=_0xcb14d7(0x9e),_0x4dd27e[_0xcb14d7(0xa5)]=!0x0;const _0xa50f39={};_0xa50f39['char']='z',_0xa50f39[_0xcb14d7(0x73)]=_0xcb14d7(0xba),_0xa50f39[_0xcb14d7(0xa5)]=!0x1;const _0x202809={};_0x202809[_0xcb14d7(0xc6)]='w',_0x202809[_0xcb14d7(0x73)]=_0xcb14d7(0xbb),_0x202809[_0xcb14d7(0xa5)]=!0x1;var l=class r extends _0x5ee3d4{static ['description']='美团技术服务合作中心api网关接口通用请求cli';static [_0xcb14d7(0xbf)]=[_0xcb14d7(0xa2)];static ['args']={'uri':_0x4ddda3[_0xcb14d7(0x74)](_0x55492b)};static [_0xcb14d7(0xb6)]={'env':_0x110f8d[_0xcb14d7(0xb8)](_0x22c7e8)(),'format':_0x110f8d['option'](_0x2ccd88)(),'appAuthToken':_0x110f8d[_0xcb14d7(0x74)](_0x4e1897),'developerId':_0x110f8d[_0xcb14d7(0x74)](_0x162faa),'businessId':_0x110f8d[_0xcb14d7(0x74)](_0x596126),'signKey':_0x110f8d['string'](_0x4dd27e),'biz':_0x110f8d[_0xcb14d7(0x74)](_0xa50f39),'swimlane':_0x110f8d[_0xcb14d7(0x74)](_0x202809)};async[_0xcb14d7(0x7b)](){const _0xe93634=_0xcb14d7,_0x40d256={'qKkzD':function(_0x4e9776,_0x4f6264){return _0x4e9776+_0x4f6264;},'aLfAT':function(_0x410c12,_0x27af04,_0x5585dc){return _0x410c12(_0x27af04,_0x5585dc);},'yjUYe':_0xe93634(0x8b),'ZvCZh':function(_0x4c8276,_0xcfdc4b){return _0x4c8276(_0xcfdc4b);},'slNYQ':function(_0x47cd4f,_0x4900d1){return _0x47cd4f(_0x4900d1);},'xMmuB':function(_0xf53f9f,_0x493816){return _0xf53f9f==_0x493816;},'gkjoB':_0xe93634(0x74),'PdzYD':function(_0x21b4db,_0x4966cd){return _0x21b4db===_0x4966cd;},'udGWG':_0xe93634(0x8e),'kLvFE':function(_0x5ed308,_0x52ab97){return _0x5ed308(_0x52ab97);}};let {flags:_0x2ba802}=await this[_0xe93634(0xb9)](r),{args:_0x561b62}=await this[_0xe93634(0xb9)](r),_0x1b8819;try{_0x1b8819=_0x40d256[_0xe93634(0xb0)](_0x40d256[_0xe93634(0x72)](m,_0x2ba802['env'],_0x2ba802['swimlane']),_0x40d256[_0xe93634(0xbe)]);}catch(_0x22bfad){this[_0xe93634(0x7a)](_0x40d256[_0xe93634(0x9f)](String,_0x22bfad));return;}try{const _0x2ac84a={};_0x2ac84a['uri']=_0x561b62[_0xe93634(0x9b)],_0x2ac84a['appAuthToken']=_0x2ba802['appAuthToken'],_0x2ac84a['developerId']=_0x2ba802['developerId'],_0x2ac84a[_0xe93634(0xa0)]=_0x2ba802[_0xe93634(0xa0)],_0x2ac84a['signKey']=_0x2ba802[_0xe93634(0xa4)],_0x2ac84a[_0xe93634(0xa7)]=_0x2ba802[_0xe93634(0xa7)];let _0x58115a=await this[_0xe93634(0x7c)](_0x2ac84a,_0x1b8819,_0x40d256[_0xe93634(0x84)](f,_0x2ba802['swimlane'])),_0xbe9301=_0x40d256[_0xe93634(0x82)](typeof _0x58115a,_0x40d256[_0xe93634(0x7e)])?JSON[_0xe93634(0xb9)](_0x58115a):_0x58115a;_0x40d256['PdzYD'](_0x2ba802[_0xe93634(0x98)],_0x40d256['udGWG'])?this[_0xe93634(0x75)](JSON[_0xe93634(0xad)](_0xbe9301,null,0x2)):this[_0xe93634(0x75)](JSON['stringify'](_0x58115a));}catch(_0x143518){this[_0xe93634(0x7a)](_0x40d256[_0xe93634(0xc9)](String,_0x143518));}}[_0xcb14d7(0x8d)](_0x42e7b6,_0x2826ca){const _0x8717e0=_0xcb14d7,_0x19e57b={'IRovM':'sign','wZAFv':function(_0x486196,_0x193b4e){return _0x486196+_0x193b4e;},'jaczm':function(_0x551238,_0x505e27){return _0x551238(_0x505e27);},'feTHS':'sha1','XRlwl':'hex'};let _0x2ababa=Object[_0x8717e0(0x71)](_0x2826ca)['sort'](),_0x46d50b=_0x42e7b6;for(let _0x4107db of _0x2ababa){if(_0x4107db===_0x19e57b[_0x8717e0(0xb4)])continue;let _0xf4089=_0x2826ca[_0x4107db];!_0xf4089&&_0xf4089!==0x0||(_0x46d50b+=_0x19e57b['wZAFv'](_0x4107db,_0x19e57b[_0x8717e0(0x99)](String,_0xf4089)));}return _0x27255e['createHash'](_0x19e57b[_0x8717e0(0xc4)])[_0x8717e0(0x96)](_0x46d50b,_0x8717e0(0x81))[_0x8717e0(0xaf)](_0x19e57b[_0x8717e0(0xb2)]);}async[_0xcb14d7(0x7c)](_0x2a04a5,_0xae6dcc,_0x529e14={}){const _0x55d7ce=_0xcb14d7,_0x1741b5={'SVHIL':function(_0x4fc0b3,_0x526bf3){return _0x4fc0b3/_0x526bf3;},'qnWxn':function(_0x4804d6,_0x1d86fb,_0xebee58){return _0x4804d6(_0x1d86fb,_0xebee58);},'UNAGt':function(_0x2560df,_0x282911){return _0x2560df+_0x282911;},'zfpEQ':_0x55d7ce(0x97),'AKZax':_0x55d7ce(0xb5),'RxguE':function(_0x3b1033,_0x5e9cc8){return _0x3b1033 instanceof _0x5e9cc8;},'dSLcG':_0x55d7ce(0x83),'ZjBTl':function(_0xb838f5,_0x7f60a3){return _0xb838f5===_0x7f60a3;},'aDNui':_0x55d7ce(0xbd)};let {uri:_0x1040be,appAuthToken:_0x233e25,developerId:_0x22d39f,businessId:_0x3670e6,signKey:_0x5d34f0,biz:_0x55f783}=_0x2a04a5,_0x354f47={'timestamp':Math[_0x55d7ce(0xac)](_0x1741b5[_0x55d7ce(0x89)](Date[_0x55d7ce(0xce)](),0x3e8)),'charset':_0x55d7ce(0xa6),'developerId':_0x22d39f,'version':'2','businessId':_0x3670e6};_0x233e25&&(_0x354f47['appAuthToken']=_0x233e25),_0x55f783&&(_0x354f47[_0x55d7ce(0xa7)]=_0x55f783),_0x354f47[_0x55d7ce(0x8c)]=this[_0x55d7ce(0x8d)](_0x5d34f0,_0x354f47);let _0x2bad3c=new URLSearchParams(Object['entries'](_0x354f47)['map'](([_0x4b223c,_0x4ec5a6])=>[_0x4b223c,String(_0x4ec5a6)])),_0x3841d5;try{_0x3841d5=await _0x1741b5[_0x55d7ce(0x86)](fetch,_0x1741b5[_0x55d7ce(0xca)](_0xae6dcc,_0x1040be),{'method':_0x1741b5[_0x55d7ce(0xa3)],'headers':{'Content-Type':_0x1741b5[_0x55d7ce(0x95)],..._0x529e14},'body':_0x2bad3c,'signal':AbortSignal[_0x55d7ce(0xaa)](0x7530)});}catch(_0x2be9d5){throw _0x1741b5[_0x55d7ce(0xa8)](_0x2be9d5,DOMException)&&_0x2be9d5[_0x55d7ce(0xc7)]===_0x55d7ce(0xbc)?new Error(_0x1741b5[_0x55d7ce(0xc3)]):new Error('连接错误:\x20'+_0x2be9d5);}if(!_0x3841d5['ok'])throw new Error(_0x55d7ce(0x8f)+_0x3841d5['status']+'\x20'+_0x3841d5[_0x55d7ce(0x94)]);let _0x58cab1;try{_0x58cab1=await _0x3841d5[_0x55d7ce(0x8e)]();}catch(_0x51beec){let _0x3c4f80=await _0x3841d5[_0x55d7ce(0x88)]();throw new Error(_0x55d7ce(0xcc)+_0x51beec+_0x55d7ce(0xcd)+_0x3c4f80[_0x55d7ce(0x78)](0x0,0x1f4));}if(_0x1741b5[_0x55d7ce(0x70)](_0x58cab1[_0x55d7ce(0x80)],_0x55d7ce(0xc8)))return _0x58cab1[_0x55d7ce(0x7d)]??_0x58cab1;throw new Error(_0x55d7ce(0x9d)+_0x58cab1[_0x55d7ce(0x80)]+_0x55d7ce(0xc5)+(_0x58cab1['msg']??_0x1741b5[_0x55d7ce(0xb3)]));}};export{l as default};function _0x1fd4(){const _0x6d27d7=['C2Xowve','5O6i5P2dihrVA2vU77Ym5lIn6zYa6kAb6yM05P2d55Qe5O6L5y+J5y+V5lIn5lYG','Cw5xEg4','6l6t5yE65Qc85BYp','Dgv4Da','u1zisuW','Ahr0Chm6lY9Ty3aTB3bLBI1JyxrLCI50zxn0lM1LAxr1yw4Uy29T','l2nVCMDP','C2LNBG','z2v0u2LNBG','ANnVBG','sfruucdPLjNOR686ia','nta5mJiWrMzcvuro','5OYh5A6A546V5Akd77YADgvZDooaGxn0ywDPBMFJGifWCM9K','mtaZota5mgnjuMHktq','DgvZDa','C3rHDhvZvgv4Da','quTAyxG','DxbKyxrL','ue9tva','zM9YBwf0','AMfJEM0','ndjrDuTTzui','DxjP','ChjVza','qvbjioMuMEIVRZOG','5BYa5y+r6icf562+5zcn5A+g6zkL','wNzdwMG','yNvZAw5LC3njza','5RoZ6ygt5yQF6io95lUf5PsV5OYbihrLC3qG546V5Akd77YmC3rHz2LUzY9WCM9KioEoR+wIG+s4JEAuR+AmGEAmH+wUMUAZS+MbKW','pcu9ignVBMzPzY5IAw4Gjt4Gpcu9ignVBw1HBMqUAwqGjt4Gl3jTCY9KyxrHl2fWAs92ms9WB2KVC2v0DgXLBwvUDf9TzxrOB2qVCxvLCNKGls1HChbbDxrOvg9Rzw49EhH4ic0Tzgv2zwXVCgvYswq9EhH4ic0TyNvZAw5LC3njzd14EcaTlxnPz25lzxK9EhH4ic0TyML6psD7iNrLC3qIoIj4EhGIFsC','EMzWrve','C2LNBKTLEq','CMvXDwLYzwq','vvrgltG','yML6','uNHNDuu','ntq2ntHKtxvvyK0','DgLTzw91Da','ndmZndKYsvHSq2XS','zMXVB3i','C3rYAw5NAwz5','zgvMyxvSDa','zgLNzxn0','CuTREKq','B3b0Aw9UCW','wfjSD2W','yuroDwK','svjVDK0','yxbWBgLJyxrPB24VEc13D3CTzM9YBs11CMXLBMnVzgvK','zMXHz3m','mJC2ndm0nfvitgzfAW','B3b0Aw9U','CgfYC2u','5lIA5yQH5y+c5PwW77YmsLnptIdMOlZLVi/LRzFNRkBKUli','5OYh5A6A5RoZ6ygt5zcn77Yi5AAcigPPyxL1BMzLBMCTA3v4EgxVViNVViZPGjROV4CGC3DPBwXHBMuG6k+35Rgc5As06lEV55sX77Ym5lUfihrLC3qG546V5Akd55sF5Pwi','vgLTzw91DevYCM9Y','5PYQ55+L6zsz6k+V','EwPvwwu','zxHHBxbSzxm','ndiWmdDNAeLnAu4','ntq1mvn5y21wrG','5lIA5yQHieLe','zfnmy0C','zMvusfm','ic0G','y2HHCG','BMfTzq','t1bFu1vdq0vtuW','A0X2rKu','vu5br3q','ntvZwwnTAxa','5zon5BQu6kEJ5P6q5AsX6lsLoIa','cUwoN+wNI+wtJEw6LdOG','BM93','mJi2DLbdBK14','wMPcvgW','A2v5CW','yuXMqvq','zgvZy3jPChrPB24','C3rYAw5N','Bg9N','C3rHz2LUzW','CxDUD0u','C2XPy2u','5BYa5y+r6icfieLe','zxjYB3i','CNvU','y29Yz2Lszxf1zxn0','zgf0yq','z2TQB0i','mtbfsNPJCM8','y29Kzq','DxrMoa','Ee1TDui','6k+35Rgc6lAf5PE277Ym6k+35Qoa5P+L572r57UC6l+E5O6L'];_0x1fd4=function(){return _0x6d27d7;};return _0x1fd4();}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x10f7de,_0x1a7d56){var _0x4c1a83=_0x366a,_0x181260=_0x10f7de();while(!![]){try{var _0x1d7c77=parseInt(_0x4c1a83(0x1cb))/0x1+-parseInt(_0x4c1a83(0x1ce))/0x2+-parseInt(_0x4c1a83(0x1c7))/0x3*(parseInt(_0x4c1a83(0x1c9))/0x4)+-parseInt(_0x4c1a83(0x1cd))/0x5*(parseInt(_0x4c1a83(0x1c8))/0x6)+parseInt(_0x4c1a83(0x1c6))/0x7+parseInt(_0x4c1a83(0x1cc))/0x8*(parseInt(_0x4c1a83(0x1ca))/0x9)+-parseInt(_0x4c1a83(0x1c5))/0xa*(parseInt(_0x4c1a83(0x1c4))/0xb);if(_0x1d7c77===_0x1a7d56)break;else _0x181260['push'](_0x181260['shift']());}catch(_0x59aad6){_0x181260['push'](_0x181260['shift']());}}}(_0x16b9,0x28cfe));import{run as _0x4dbe70}from'@oclif/core';function _0x16b9(){var _0x564cbd=['ndK2mtj5qwfytwm','ntK3nJLIEe5cqLy','mJmXmtqXz3HHDfnH','mZyWug5JDMPw','mtm1nJGWwMv4yMzQ','mJy0ntuYANbnrxjQ','nZGXrfPwDMjL','ntG3mfDUDKrACa','mtKXnZy1n1zLt3zduq','nJzft0rbqu4','ndjMtgH6vgK'];_0x16b9=function(){return _0x564cbd;};return _0x16b9();}function _0x366a(_0x48aafd,_0x40cbfb){_0x48aafd=_0x48aafd-0x1c4;var _0x16b9e9=_0x16b9();var _0x366a76=_0x16b9e9[_0x48aafd];if(_0x366a['eipGLv']===undefined){var _0x1353ed=function(_0x7ca851){var _0x329dab='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x4dbe70='',_0x720470='';for(var _0x50a6ba=0x0,_0x1cd31d,_0x8c67a6,_0x14997f=0x0;_0x8c67a6=_0x7ca851['charAt'](_0x14997f++);~_0x8c67a6&&(_0x1cd31d=_0x50a6ba%0x4?_0x1cd31d*0x40+_0x8c67a6:_0x8c67a6,_0x50a6ba++%0x4)?_0x4dbe70+=String['fromCharCode'](0xff&_0x1cd31d>>(-0x2*_0x50a6ba&0x6)):0x0){_0x8c67a6=_0x329dab['indexOf'](_0x8c67a6);}for(var _0x56c1a6=0x0,_0x5a4e7d=_0x4dbe70['length'];_0x56c1a6<_0x5a4e7d;_0x56c1a6++){_0x720470+='%'+('00'+_0x4dbe70['charCodeAt'](_0x56c1a6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x720470);};_0x366a['ZwpRNr']=_0x1353ed,_0x366a['yqwAOQ']={},_0x366a['eipGLv']=!![];}var _0x310aa9=_0x16b9e9[0x0],_0x173152=_0x48aafd+_0x310aa9,_0x58eb7d=_0x366a['yqwAOQ'][_0x173152];return!_0x58eb7d?(_0x366a76=_0x366a['ZwpRNr'](_0x366a76),_0x366a['yqwAOQ'][_0x173152]=_0x366a76):_0x366a76=_0x58eb7d,_0x366a76;}export{_0x4dbe70 as run};
|
package/oclif.manifest.json
CHANGED
|
@@ -56,6 +56,15 @@
|
|
|
56
56
|
"hasDynamicHelp": false,
|
|
57
57
|
"multiple": false,
|
|
58
58
|
"type": "option"
|
|
59
|
+
},
|
|
60
|
+
"swimlane": {
|
|
61
|
+
"char": "w",
|
|
62
|
+
"description": "指定泳道名(如 jiayunfeng-kuxxe),通过 swimlane 请求头路由,仅 test 环境生效",
|
|
63
|
+
"name": "swimlane",
|
|
64
|
+
"required": false,
|
|
65
|
+
"hasDynamicHelp": false,
|
|
66
|
+
"multiple": false,
|
|
67
|
+
"type": "option"
|
|
59
68
|
}
|
|
60
69
|
},
|
|
61
70
|
"hasDynamicHelp": false,
|
|
@@ -66,11 +75,6 @@
|
|
|
66
75
|
"pluginType": "core",
|
|
67
76
|
"strict": true,
|
|
68
77
|
"enableJsonFlag": false,
|
|
69
|
-
"ENV_URLS": {
|
|
70
|
-
"prod": "https://mcp-open-cater.meituan.com",
|
|
71
|
-
"staging": "https://mcp.sjst.st.sankuai.com",
|
|
72
|
-
"test": "https://mcp-open-cater.test.meituan.com"
|
|
73
|
-
},
|
|
74
78
|
"isESM": true,
|
|
75
79
|
"relativePath": [
|
|
76
80
|
"dist",
|
|
@@ -161,6 +165,15 @@
|
|
|
161
165
|
"hasDynamicHelp": false,
|
|
162
166
|
"multiple": false,
|
|
163
167
|
"type": "option"
|
|
168
|
+
},
|
|
169
|
+
"swimlane": {
|
|
170
|
+
"char": "w",
|
|
171
|
+
"description": "指定泳道名(如 jiayunfeng-kuxxe),通过 swimlane 请求头路由,仅 test 环境生效",
|
|
172
|
+
"name": "swimlane",
|
|
173
|
+
"required": false,
|
|
174
|
+
"hasDynamicHelp": false,
|
|
175
|
+
"multiple": false,
|
|
176
|
+
"type": "option"
|
|
164
177
|
}
|
|
165
178
|
},
|
|
166
179
|
"hasDynamicHelp": false,
|
|
@@ -171,11 +184,6 @@
|
|
|
171
184
|
"pluginType": "core",
|
|
172
185
|
"strict": true,
|
|
173
186
|
"enableJsonFlag": false,
|
|
174
|
-
"ENV_URLS": {
|
|
175
|
-
"prod": "https://mcp-open-cater.meituan.com/corgi",
|
|
176
|
-
"staging": "https://mcp.sjst.st.sankuai.com/corgi",
|
|
177
|
-
"test": "https://mcp-open-cater.test.meituan.com/corgi"
|
|
178
|
-
},
|
|
179
187
|
"isESM": true,
|
|
180
188
|
"relativePath": [
|
|
181
189
|
"dist",
|
|
@@ -184,5 +192,5 @@
|
|
|
184
192
|
]
|
|
185
193
|
}
|
|
186
194
|
},
|
|
187
|
-
"version": "1.0.
|
|
195
|
+
"version": "1.0.8"
|
|
188
196
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mt-tech",
|
|
3
3
|
"description": "美团技术服务合作中心通用cli",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.8",
|
|
5
5
|
"author": "zhaoyuehui02",
|
|
6
6
|
"bin": {
|
|
7
7
|
"mt-tech": "./bin/run.js"
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@oclif/core": "^4",
|
|
15
15
|
"@oclif/plugin-help": "^6",
|
|
16
|
-
"@oclif/plugin-plugins": "^5",
|
|
17
16
|
"@sec/cliguard": "^1.3.3"
|
|
18
17
|
},
|
|
19
18
|
"devDependencies": {
|
|
@@ -58,8 +57,7 @@
|
|
|
58
57
|
"dirname": "mt-tech",
|
|
59
58
|
"commands": "./dist/commands",
|
|
60
59
|
"plugins": [
|
|
61
|
-
"@oclif/plugin-help"
|
|
62
|
-
"@oclif/plugin-plugins"
|
|
60
|
+
"@oclif/plugin-help"
|
|
63
61
|
],
|
|
64
62
|
"topicSeparator": " ",
|
|
65
63
|
"topics": {
|