@lovrabet/rabetbase-cli 2.0.12 → 2.1.1-beta.0
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 +2 -2
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/doc.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/new.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -0
- package/lib/commands/db/analyze-start.js +1 -0
- package/lib/commands/db/analyze-status.js +1 -0
- package/lib/commands/db/create.js +1 -0
- package/lib/commands/db/delete.js +1 -0
- package/lib/commands/db/detail.js +1 -0
- package/lib/commands/db/diff.js +1 -0
- package/lib/commands/db/index.js +1 -0
- package/lib/commands/db/list.js +1 -0
- package/lib/commands/db/shared.js +1 -0
- package/lib/commands/db/tables.js +1 -0
- package/lib/commands/db/test.js +1 -0
- package/lib/commands/db/update.js +1 -0
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -0
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -0
- package/lib/commands/sql/validate.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -251,7 +251,7 @@ your-project/
|
|
|
251
251
|
```json
|
|
252
252
|
{
|
|
253
253
|
"appcode": "your-app-code",
|
|
254
|
-
"env": "
|
|
254
|
+
"env": "production",
|
|
255
255
|
"createdAt": "2025/1/5 10:30:00",
|
|
256
256
|
"version": "1.1.15"
|
|
257
257
|
}
|
|
@@ -262,7 +262,7 @@ your-project/
|
|
|
262
262
|
| 字段 | 说明 | 可选值 |
|
|
263
263
|
|------|------|--------|
|
|
264
264
|
| `appcode` | 应用代码,用于标识您的应用 | 字母、数字、`-` 和 `_` |
|
|
265
|
-
| `env` | 运行环境 | `"
|
|
265
|
+
| `env` | 运行环境 | `"production"` 或 `"daily"` |
|
|
266
266
|
| `createdAt` | 配置创建时间(自动生成) | - |
|
|
267
267
|
| `version` | CLI 版本(自动生成) | - |
|
|
268
268
|
|
package/lib/api/api-doc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x585105,_0x4a5e15){const _0x3da8d8=a0_0x4334,_0x5072ea=_0x585105();while(!![]){try{const _0x2fd077=parseInt(_0x3da8d8(0x7a))/0x1*(parseInt(_0x3da8d8(0x95))/0x2)+-parseInt(_0x3da8d8(0x74))/0x3*(-parseInt(_0x3da8d8(0x81))/0x4)+parseInt(_0x3da8d8(0x8f))/0x5*(parseInt(_0x3da8d8(0x73))/0x6)+-parseInt(_0x3da8d8(0x7c))/0x7*(parseInt(_0x3da8d8(0x80))/0x8)+-parseInt(_0x3da8d8(0x87))/0x9*(parseInt(_0x3da8d8(0x93))/0xa)+parseInt(_0x3da8d8(0x7b))/0xb*(-parseInt(_0x3da8d8(0x72))/0xc)+-parseInt(_0x3da8d8(0x7e))/0xd;if(_0x2fd077===_0x4a5e15)break;else _0x5072ea['push'](_0x5072ea['shift']());}catch(_0x503f11){_0x5072ea['push'](_0x5072ea['shift']());}}}(a0_0x42cb,0xcbd0a));import{mkdirSync,writeFileSync}from'node:fs';function a0_0x42cb(){const _0x1a1174=['\x20datasets\x20to\x20generate\x20docs\x20for\x0a','tableName','error','/api/node-toolbox/api-doc-generator','生成文档失败:\x20','datasetCode','length','5860MWSXnw','✓\x20Generated:\x20','utf8','.md\x20-\x20','10lfFxxU','message','34Naoexx','Fetch\x20doc\x20(','Waiting\x203\x20seconds...\x0a','24fUDXYJ','5544voSrLW','560121BcVrfR','POST','✗\x20Failed:\x20','success','api-doc','markdown','29720DtkwLN','2605163ervxkC','2580403GosLls','log','3258034vZVisd','):\x20missing\x20data.markdown\x20field','8gKkgeV','16fSFAIt','Invalid\x20response\x20format\x20(','name','join','.md','string','3665313ctfVZt'];a0_0x42cb=function(){return _0x1a1174;};return a0_0x42cb();}import a0_0x58645f from'node:path';function a0_0x4334(_0x3b5c73,_0x52423d){_0x3b5c73=_0x3b5c73-0x72;const _0x42cb65=a0_0x42cb();let _0x433416=_0x42cb65[_0x3b5c73];return _0x433416;}import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x241700){const _0x4859d1=a0_0x4334,{appCode:_0x5a6df0,cookie:_0x35f06b,datasetCode:_0x683f6c,datasetId:_0x547b86,extraParams:_0x38a779}=_0x241700,_0x298663=getApiDomain()+_0x4859d1(0x8b),_0x32a0d1=await platformFetch(_0x298663,{'method':_0x4859d1(0x75),'body':{'appCode':_0x5a6df0,'datasetCode':_0x683f6c,'datasetId':_0x547b86,..._0x38a779||{}},'cookie':_0x35f06b,'label':_0x4859d1(0x96)+_0x683f6c+')'});if(!_0x32a0d1||typeof _0x32a0d1['markdown']!==_0x4859d1(0x86))throw new Error(_0x4859d1(0x82)+_0x683f6c+_0x4859d1(0x7f));return _0x32a0d1[_0x4859d1(0x79)];}function delay(_0x2caad0){return new Promise(_0x194abc=>setTimeout(_0x194abc,_0x2caad0));}export async function generateDatasetDocs(_0x18990a,_0x1d9ffb,_0x2a63fe,_0xdbc224='./docs',_0x33dadc,_0x1f6c26){const _0x1d3b4f=a0_0x4334;mkdirSync(_0xdbc224,{'recursive':!![]});const _0x5be11d=[],_0x31c263=_0x18990a[_0x1d3b4f(0x8e)];console[_0x1d3b4f(0x7d)]('\x0a'+_0x31c263+_0x1d3b4f(0x88));for(let _0x256435=0x0;_0x256435<_0x18990a[_0x1d3b4f(0x8e)];_0x256435++){const _0x467968=_0x18990a[_0x256435],_0x48d6f7=_0x256435+0x1,_0x5d7704=_0x467968[_0x1d3b4f(0x89)];try{console[_0x1d3b4f(0x7d)]('['+_0x48d6f7+'/'+_0x31c263+']\x20Generating:\x20'+_0x5d7704+'.md\x20('+_0x467968['name']+')');if(_0x33dadc)_0x33dadc(_0x48d6f7,_0x31c263,_0x5d7704);const _0xadc465=await fetchDatasetDoc({'appCode':_0x1d9ffb,'cookie':_0x2a63fe,'datasetCode':_0x467968[_0x1d3b4f(0x8d)],'datasetId':_0x467968['id'],'enableAI':![],'extraParams':_0x1f6c26}),_0x355c16=a0_0x58645f[_0x1d3b4f(0x84)](_0xdbc224,_0x5d7704+_0x1d3b4f(0x85));writeFileSync(_0x355c16,_0xadc465,{'encoding':_0x1d3b4f(0x91)}),console[_0x1d3b4f(0x7d)](_0x1d3b4f(0x90)+_0x5d7704+_0x1d3b4f(0x85)),logger[_0x1d3b4f(0x77)](_0x1d3b4f(0x78),'生成文档成功:\x20'+_0x5d7704,undefined,{'datasetCode':_0x467968['datasetCode'],'datasetName':_0x467968[_0x1d3b4f(0x83)],'filePath':_0x355c16,'progress':_0x48d6f7+'/'+_0x31c263}),_0x5be11d['push']({'datasetCode':_0x467968[_0x1d3b4f(0x8d)],'datasetName':_0x467968[_0x1d3b4f(0x83)],'filePath':_0x355c16,'success':!![]});if(_0x48d6f7<_0x31c263)await delay(0x1388);}catch(_0x199545){const _0xff53d8=_0x199545 instanceof Error?_0x199545[_0x1d3b4f(0x94)]:String(_0x199545);console['log'](_0x1d3b4f(0x76)+_0x5d7704+_0x1d3b4f(0x92)+_0xff53d8),logger[_0x1d3b4f(0x8a)]('api-doc',_0x1d3b4f(0x8c)+_0x467968[_0x1d3b4f(0x8d)],{'datasetCode':_0x467968[_0x1d3b4f(0x8d)],'datasetName':_0x467968[_0x1d3b4f(0x83)],'error':_0xff53d8,'progress':_0x48d6f7+'/'+_0x31c263}),_0x5be11d['push']({'datasetCode':_0x467968['datasetCode'],'datasetName':_0x467968[_0x1d3b4f(0x83)],'filePath':'','success':![],'error':_0xff53d8}),_0x48d6f7<_0x31c263&&(console[_0x1d3b4f(0x7d)](_0x1d3b4f(0x97)),await delay(0xbb8));}}return _0x5be11d;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2d0265,_0x3614cf){const _0x5409ed=a1_0x1238,_0xf82a25=_0x2d0265();while(!![]){try{const _0xedab10=parseInt(_0x5409ed(0x6a))/0x1*(parseInt(_0x5409ed(0x6d))/0x2)+parseInt(_0x5409ed(0x68))/0x3*(parseInt(_0x5409ed(0x6b))/0x4)+parseInt(_0x5409ed(0x71))/0x5*(parseInt(_0x5409ed(0x77))/0x6)+parseInt(_0x5409ed(0x66))/0x7+parseInt(_0x5409ed(0x76))/0x8*(-parseInt(_0x5409ed(0x73))/0x9)+-parseInt(_0x5409ed(0x6f))/0xa*(-parseInt(_0x5409ed(0x72))/0xb)+-parseInt(_0x5409ed(0x65))/0xc;if(_0xedab10===_0x3614cf)break;else _0xf82a25['push'](_0xf82a25['shift']());}catch(_0x4167b1){_0xf82a25['push'](_0xf82a25['shift']());}}}(a1_0x3ced,0xe870c));import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';function a1_0x3ced(){const _0x2bb421=['20673bZxGbS','length','187048kwDRBz','492tJzGrY','info','18TpCotl','configArray','9980JparQU','name','23885XQUVba','6974ODZocY','9862821lnURoK','map','replace','8UuqCWM','1434sYJwee','trim','36814056FDFFfq','5672261nnJTla','&otype=array'];a1_0x3ced=function(){return _0x2bb421;};return a1_0x3ced();}import{platformFetch}from'../core/api-client.js';function cleanNewlines(_0x5d331f){const _0xac318d=a1_0x1238;return _0x5d331f[_0xac318d(0x75)](/[\r\n]+/g,'\x20')[_0xac318d(0x78)]();}function cleanDatasetName(_0x462e13){const _0x2dec75=a1_0x1238;if(!_0x462e13[_0x2dec75(0x70)])return _0x462e13;return{..._0x462e13,'name':cleanNewlines(_0x462e13[_0x2dec75(0x70)])};}function a1_0x1238(_0x32e6e0,_0x3dd725){_0x32e6e0=_0x32e6e0-0x65;const _0x3ced4e=a1_0x3ced();let _0x1238e=_0x3ced4e[_0x32e6e0];return _0x1238e;}export async function fetchModelList(_0x491696,_0x1896f5){const _0x1ecd99=a1_0x1238,_0x392a8f=getEnv(),_0x4a404c=getApiDomain()+'/api/node-toolbox/dataset/model-list?appcode='+_0x491696+_0x1ecd99(0x67);logger[_0x1ecd99(0x6c)]('fetch-model-list','正在从服务器拉取模型列表...\x20(环境:\x20'+_0x392a8f+')',{'apiUrl':_0x4a404c});const _0x3ef0c7=await platformFetch(_0x4a404c,{'cookie':_0x1896f5,'label':'Fetch\x20datasets'}),_0x2edc12=(_0x3ef0c7[_0x1ecd99(0x6e)]??[])[_0x1ecd99(0x74)](cleanDatasetName);return{'configArray':_0x2edc12,'count':_0x2edc12[_0x1ecd99(0x69)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f2f5d,_0x205f4f){const _0x2e7d38=a2_0x36f7,_0x27c807=_0x1f2f5d();while(!![]){try{const _0x1d766a=parseInt(_0x2e7d38(0x1c8))/0x1+-parseInt(_0x2e7d38(0x1d7))/0x2+parseInt(_0x2e7d38(0x1d9))/0x3*(parseInt(_0x2e7d38(0x1e4))/0x4)+parseInt(_0x2e7d38(0x1cc))/0x5+parseInt(_0x2e7d38(0x1c2))/0x6+parseInt(_0x2e7d38(0x1dd))/0x7*(parseInt(_0x2e7d38(0x1be))/0x8)+-parseInt(_0x2e7d38(0x1c7))/0x9*(parseInt(_0x2e7d38(0x1cf))/0xa);if(_0x1d766a===_0x205f4f)break;else _0x27c807['push'](_0x27c807['shift']());}catch(_0x53c4f2){_0x27c807['push'](_0x27c807['shift']());}}}(a2_0x2e3e,0x7000b));import a2_0x6c32d from'prettier';function a2_0x2e3e(){const _0x3ab9a9=['api','{\x20apiConfigName:\x20','81930FWPLqi','length','forEach','../..','key','tableName','api.ts.tpl','datasetCode','1348374pfLPSs','\x20config\x20set\x20app\x20<value>`','18jJGAjY','toUpperCase','test','alias','1134DGojsP','name','success','dirname','resolve','client.ts.tpl','-client','563476uvjDrV','join','typescript','API\x20文件生成成功!','27152loAOWo','replace',',\x20env:\x20\x22','.ts','3839610lcfSzt','utf8','format','\x22\x20}','replaceApiContent','2025HlRQsK','276600vSYXKb','client','CONFIG_NAMES.DEFAULT','init-api','3323990senrqi'];a2_0x2e3e=function(){return _0x3ab9a9;};return a2_0x2e3e();}import{mkdirSync,writeFileSync,readFileSync}from'node:fs';function a2_0x36f7(_0xdd8683,_0x7e7fe4){_0xdd8683=_0xdd8683-0x1bb;const _0x2e3e8d=a2_0x2e3e();let _0x36f790=_0x2e3e8d[_0xdd8683];return _0x36f790;}import a2_0x34084 from'node:path';import{fileURLToPath}from'node:url';import{TemplateReplacer}from'../utils/template-replacer.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{logger}from'../utils/logger.js';import{isProduction}from'../constant/env.js';export async function generateApiFile(_0x1ca7e6,_0x5e8acc,_0xdbf9e5,_0x332b8f,_0x1b759d,_0xfe8eb,_0x4c55d2){const _0x184b79=a2_0x36f7;if(!_0xdbf9e5)throw new Error('Please\x20configure\x20app\x20code\x20first\x20via\x20`'+CLI_BIN_NAME+_0x184b79(0x1d8));const _0x40f109=_0x332b8f&&!_0x4c55d2,_0x5cfa15=_0x4c55d2||_0xdbf9e5,_0x1b3c02=_0x40f109?_0x184b79(0x1ca):'\x22'+_0x5cfa15+'\x22',_0x255e94=!isProduction(_0x1b759d);let _0x2c10a3;if(_0x40f109)_0x255e94?_0x2c10a3=_0x184b79(0x1ce)+_0x1b3c02+_0x184b79(0x1c0)+_0x1b759d+_0x184b79(0x1c5):_0x2c10a3='';else{const _0xa25480=_0x255e94?_0x184b79(0x1c0)+_0x1b759d+'\x22':'';_0x2c10a3='{\x20apiConfigName:\x20\x22'+_0x5cfa15+'\x22'+_0xa25480+'\x20}';}const _0x1f1afc=_0x5e8acc?_0x5e8acc+'-api':_0x184b79(0x1cd),_0x2aef54=_0x5e8acc?_0x5e8acc+_0x184b79(0x1e3):_0x184b79(0x1c9),_0x3d02b5=_0x5e8acc&&!/^app-[a-f0-9]+$/i[_0x184b79(0x1db)](_0x5e8acc)?_0x5e8acc[_0x184b79(0x1bf)](/-/g,'_')[_0x184b79(0x1da)]():'LOVRABET',_0x53eb99=[];_0x1ca7e6[_0x184b79(0x1d1)](_0x155a02=>{const _0x4f141f=_0x184b79;_0x53eb99['push']({'datasetCode':_0x155a02[_0x4f141f(0x1d6)],'tableName':_0x155a02[_0x4f141f(0x1d4)],'name':_0x155a02[_0x4f141f(0x1de)]||'','alias':_0x155a02[_0x4f141f(0x1dc)]||_0x155a02[_0x4f141f(0x1d3)]});});const _0x202659=fileURLToPath(import.meta.url),_0x11160a=a2_0x34084[_0x184b79(0x1e1)](a2_0x34084[_0x184b79(0x1e0)](_0x202659),_0x184b79(0x1d2)),_0x909295=a2_0x34084['join'](_0x11160a,'templates/generate-api'),_0x46710a=a2_0x34084[_0x184b79(0x1bb)](_0x909295,_0x184b79(0x1d5)),_0x2acba0=a2_0x34084['join'](_0x909295,_0x184b79(0x1e2)),_0x4c786c=_0xfe8eb;mkdirSync(_0x4c786c,{'recursive':!![]});const _0x5746a2=_0x53eb99[0x0]?.['alias'],_0x2e8069=readFileSync(_0x46710a,_0x184b79(0x1c3)),_0x1a760e=TemplateReplacer[_0x184b79(0x1c6)](_0x2e8069,_0xdbf9e5,_0x53eb99,_0x5746a2,_0x1f1afc,_0x1b3c02,undefined,_0x3d02b5),_0x44b7c3=await a2_0x6c32d[_0x184b79(0x1c4)](_0x1a760e,{'parser':_0x184b79(0x1bc)}),_0x2deac8=a2_0x34084[_0x184b79(0x1bb)](_0x4c786c,_0x1f1afc+_0x184b79(0x1c1));writeFileSync(_0x2deac8,_0x44b7c3,{'encoding':_0x184b79(0x1c3)});const _0x1db1b2=readFileSync(_0x2acba0,'utf8'),_0x104a95=TemplateReplacer[_0x184b79(0x1c6)](_0x1db1b2,_0xdbf9e5,_0x53eb99,_0x5746a2,_0x1f1afc,_0x1b3c02,_0x2c10a3,_0x3d02b5),_0x3c3e02=await a2_0x6c32d[_0x184b79(0x1c4)](_0x104a95,{'parser':_0x184b79(0x1bc)}),_0x59909=a2_0x34084[_0x184b79(0x1bb)](_0x4c786c,_0x2aef54+_0x184b79(0x1c1));writeFileSync(_0x59909,_0x3c3e02,{'encoding':_0x184b79(0x1c3)});const _0x550328=_0x53eb99[_0x184b79(0x1d0)];return logger[_0x184b79(0x1df)](_0x184b79(0x1cb),_0x184b79(0x1bd),undefined,{'apiFile':_0x2deac8,'clientFile':_0x59909,'modelCount':_0x550328,'configName':_0x1b3c02}),{'modelCount':_0x550328,'apiFilePath':_0x2deac8,'clientFilePath':_0x59909,'configName':_0x1b3c02};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xb6e3cd,_0x188cca){const _0x500107=a3_0x27b9,_0x2afd6d=_0xb6e3cd();while(!![]){try{const _0x9d615b=-parseInt(_0x500107(0x159))/0x1+-parseInt(_0x500107(0x15e))/0x2*(-parseInt(_0x500107(0x15d))/0x3)+-parseInt(_0x500107(0x151))/0x4*(-parseInt(_0x500107(0x154))/0x5)+parseInt(_0x500107(0x15f))/0x6+parseInt(_0x500107(0x15b))/0x7+parseInt(_0x500107(0x158))/0x8*(parseInt(_0x500107(0x160))/0x9)+parseInt(_0x500107(0x152))/0xa*(-parseInt(_0x500107(0x153))/0xb);if(_0x9d615b===_0x188cca)break;else _0x2afd6d['push'](_0x2afd6d['shift']());}catch(_0xe36868){_0x2afd6d['push'](_0x2afd6d['shift']());}}}(a3_0x5a34,0x32396));function a3_0x27b9(_0xf8e704,_0x4ed316){_0xf8e704=_0xf8e704-0x151;const _0x5a34c6=a3_0x5a34();let _0x27b9b8=_0x5a34c6[_0xf8e704];return _0x27b9b8;}import{getIsSessionValid}from'../auth/is-session-valid.js';import{authServer}from'../auth/auth-server.js';import{confirm}from'@inquirer/prompts';import a3_0x4be3cc from'ora';function a3_0x5a34(){const _0x3f0f72=['*\x20Login\x20successful!','3046136mtgJTk','234262JXbJGX','√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.','340382fiQRyE','start','3YohmUU','261506uXBQYt','1080144CrDdbc','9HopKMP','log','No\x20valid\x20session.\x20Login\x20now?','36YtrzCh','10sETJfu','4301099plDeDa','50455MFTSAq','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','stop'];a3_0x5a34=function(){return _0x3f0f72;};return a3_0x5a34();}export async function runAuthServer(){const _0x22e9f2=a3_0x27b9,_0x5b711b=await getIsSessionValid();if(_0x5b711b){console[_0x22e9f2(0x161)](_0x22e9f2(0x15a));return;}const _0x147d13=await confirm({'message':_0x22e9f2(0x162),'default':!![]});if(!_0x147d13)return;const _0x2a4c66=a3_0x4be3cc(_0x22e9f2(0x155))[_0x22e9f2(0x15c)](),_0x3ee75d=await authServer({'silent':!![]});_0x2a4c66[_0x22e9f2(0x156)](),_0x3ee75d?console[_0x22e9f2(0x161)](_0x22e9f2(0x157)):console['log']('!\x20Login\x20failed.');}
|
package/lib/auth/auth-server.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a4_0x82999a=a4_0x3e83;(function(_0x2c74c7,_0x1031c3){const _0x561d06=a4_0x3e83,_0x1aac98=_0x2c74c7();while(!![]){try{const _0x2e4e4a=parseInt(_0x561d06(0xe2))/0x1+-parseInt(_0x561d06(0x102))/0x2+parseInt(_0x561d06(0xef))/0x3*(-parseInt(_0x561d06(0xed))/0x4)+parseInt(_0x561d06(0xf1))/0x5*(parseInt(_0x561d06(0xf7))/0x6)+parseInt(_0x561d06(0xfe))/0x7*(parseInt(_0x561d06(0xf0))/0x8)+-parseInt(_0x561d06(0x104))/0x9+-parseInt(_0x561d06(0xeb))/0xa*(-parseInt(_0x561d06(0xfc))/0xb);if(_0x2e4e4a===_0x1031c3)break;else _0x1aac98['push'](_0x1aac98['shift']());}catch(_0x1f50a5){_0x1aac98['push'](_0x1aac98['shift']());}}}(a4_0x3010,0xa498a));import{writeFileSync}from'node:fs';import a4_0x1d62e8 from'node:https';import{getUserDomain}from'../constant/domain.js';import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';import{cookieFile}from'../auth/constant.js';function a4_0x3e83(_0x299f5d,_0x287c22){_0x299f5d=_0x299f5d-0xe1;const _0x301051=a4_0x3010();let _0x3e83f5=_0x301051[_0x299f5d];return _0x3e83f5;}export async function authServer(_0x338b90){const _0xcc1c1a=a4_0x3e83,_0x45d8cd=_0x338b90?.[_0xcc1c1a(0x100)]||![];if(await getIsSessionValid())return!![];const _0x1e17b3=await(await fetch('https://g.yuntooai.com/cert/lovrabet-dev.json'))[_0xcc1c1a(0xf8)]();return new Promise(async(_0x507b75,_0x1158c4)=>{const _0x56e56f=_0xcc1c1a;let _0x31b3b5=0x0;const _0x2ee80a=a4_0x1d62e8[_0x56e56f(0xf4)](_0x1e17b3,async(_0x193ad3,_0x242b97)=>{const _0x19c694=_0x56e56f,_0x90b021=getUserDomain(),_0x38b34c=_0x193ad3[_0x19c694(0xf5)][_0x19c694(0x105)]||'',_0x32509a=await fetch(_0x90b021+_0x19c694(0xe5),{'headers':{'cookie':_0x38b34c}})[_0x19c694(0x106)](_0x339164=>_0x339164[_0x19c694(0xf8)]()),_0x269afe=_0x32509a&&_0x32509a['session']&&_0x32509a[_0x19c694(0xe1)];if(_0x269afe){writeFileSync(cookieFile,_0x38b34c,_0x19c694(0x10c)),_0x507b75(!![]);const _0x60179c='Login\x20Successful',_0x4c3163='Login\x20successful.\x20Please\x20return\x20to\x20the\x20CLI\x20to\x20continue.\x20This\x20window\x20will\x20close\x20in\x20'+'<span\x20id=\x22t\x22>5</span>'+_0x19c694(0xec),_0x5f1bb7='Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.',_0x2b74e1='<!doctype\x20html>\x0a<html>\x0a<head><meta\x20charset=\x22utf-8\x22><title>'+_0x60179c+'</title></head>\x0a<body>\x0a\x20\x20<div>'+_0x4c3163+'</div>\x0a\x20\x20<div\x20id=\x22manualMsg\x22\x20style=\x22display:none;margin-top:10px;color:#d00;\x22>'+_0x5f1bb7+_0x19c694(0x103);_0x242b97[_0x19c694(0x10d)](0xc8,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x242b97[_0x19c694(0x109)](_0x2b74e1),_0x2ee80a[_0x19c694(0xf2)]();}else{const _0xf5c27d=''+encodeURIComponent(_0x19c694(0xe3)+_0x31b3b5);_0x242b97[_0x19c694(0x10d)](0x12e,{'location':_0x90b021+_0x19c694(0x101)+_0xf5c27d}),_0x242b97[_0x19c694(0x109)]();return;}});_0x2ee80a[_0x56e56f(0xff)](0x0,_0x56e56f(0xe7),()=>{const _0x5eb65e=_0x56e56f,_0x4d81dd=_0x2ee80a['address']();_0x31b3b5=typeof _0x4d81dd===_0x5eb65e(0xe6)&&_0x4d81dd?_0x4d81dd[_0x5eb65e(0xfb)]:Number(_0x4d81dd);const _0x23b2ff=_0x5eb65e(0xe3)+_0x31b3b5;!_0x45d8cd&&(console[_0x5eb65e(0xf3)](_0x5eb65e(0xf6)),console[_0x5eb65e(0xf3)](_0x5eb65e(0xee),_0x23b2ff),console[_0x5eb65e(0xf3)](_0x5eb65e(0xf9)),console[_0x5eb65e(0xf3)](''),console['log']('💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.'),console[_0x5eb65e(0xf3)]('')),openInBrowser(_0x23b2ff)[_0x5eb65e(0x106)](_0x540adf=>{const _0x41ad2d=_0x5eb65e;!_0x45d8cd&&(_0x540adf?console['log'](_0x41ad2d(0x107)):(console[_0x41ad2d(0xf3)](_0x41ad2d(0xe8)),console[_0x41ad2d(0xf3)]('🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x23b2ff)),console[_0x41ad2d(0xf3)](''));})[_0x5eb65e(0xe4)](()=>{const _0xbd1d7f=_0x5eb65e;!_0x45d8cd&&(console[_0xbd1d7f(0xf3)]('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0xbd1d7f(0xf3)](_0xbd1d7f(0xea),_0x23b2ff),console['log'](''));});}),_0x2ee80a['on'](_0x56e56f(0x108),_0x1004b5=>{!_0x45d8cd&&console['error']('Auth\x20server\x20error:',_0x1004b5),_0x1158c4(_0x1004b5);});});}function openInBrowser(_0x4fbbf9){return new Promise(_0x1dc505=>{const _0x31ed36=a4_0x3e83,_0x436c49=process[_0x31ed36(0xe9)];let _0x31a233;if(_0x436c49===_0x31ed36(0x10e))_0x31a233='cmd\x20/c\x20start\x20\x22\x22\x20\x22'+_0x4fbbf9+'\x22';else _0x436c49===_0x31ed36(0x10b)?_0x31a233=_0x31ed36(0x10a)+_0x4fbbf9+'\x22':_0x31a233=_0x31ed36(0xfd)+_0x4fbbf9+'\x22';exec(_0x31a233,_0x4b52ad=>{_0x4b52ad?_0x1dc505(![]):_0x1dc505(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a4_0x82999a(0xf3)](a4_0x82999a(0xfa),isAuth);}function a4_0x3010(){const _0x1c30da=['end','open\x20\x22','darwin','utf-8','writeHead','win32','user','364926KZUEjc','https://dev.lovrabet.com:','catch','/api/auth/get-session','object','127.0.0.1','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','platform','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','4422280gZzKQN','\x20seconds.','290468Frzfst','📍\x20Login\x20URL:','3ZwERHt','2006712tohZuY','8045IySppA','close','log','createServer','headers','🔐\x20Starting\x20login\x20service...','3966CKWAsa','json','🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...','isAuth','port','33xSITrQ','xdg-open\x20\x22','7WJvOTj','listen','silent','/sign-in?redirect=','2421152OiLsss','</div>\x0a\x20\x20<script>\x0a\x20\x20(function(){\x0a\x20\x20\x20\x20var\x20t\x20=\x205;\x0a\x20\x20\x20\x20var\x20el\x20=\x20document.getElementById(\x27t\x27);\x0a\x20\x20\x20\x20var\x20manual\x20=\x20document.getElementById(\x27manualMsg\x27);\x0a\x20\x20\x20\x20var\x20id\x20=\x20setInterval(function(){\x0a\x20\x20\x20\x20\x20\x20t--;\x0a\x20\x20\x20\x20\x20\x20if\x20(t\x20<=\x200)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20clearInterval(id);\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20\x270\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x20window.close();\x20}\x20catch(e)\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20//\x20如果自动关闭无效,显示文本提示让用户手动关闭\x0a\x20\x20\x20\x20\x20\x20\x20\x20setTimeout(function(){\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!window.closed)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20manual.style.display\x20=\x20\x27block\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20},\x20300);\x0a\x20\x20\x20\x20\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20el.textContent\x20=\x20String(t);\x0a\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20},\x201000);\x0a\x20\x20})();\x0a\x20\x20</script>\x0a</body>\x0a</html>','9437571DqBwIG','cookie','then','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','error'];a4_0x3010=function(){return _0x1c30da;};return a4_0x3010();}
|
package/lib/auth/constant.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a5_0x1fbd1e=a5_0x4c39;function a5_0x4c39(_0xe3e985,_0x2caaa4){_0xe3e985=_0xe3e985-0x1ba;const _0x4b13a0=a5_0x4b13();let _0x4c397b=_0x4b13a0[_0xe3e985];return _0x4c397b;}(function(_0x1ddd27,_0x5d4e79){const _0x12afa7=a5_0x4c39,_0x38ccc2=_0x1ddd27();while(!![]){try{const _0x5cf37d=-parseInt(_0x12afa7(0x1c4))/0x1*(-parseInt(_0x12afa7(0x1bc))/0x2)+-parseInt(_0x12afa7(0x1be))/0x3+-parseInt(_0x12afa7(0x1c2))/0x4+-parseInt(_0x12afa7(0x1c6))/0x5*(-parseInt(_0x12afa7(0x1c1))/0x6)+parseInt(_0x12afa7(0x1c0))/0x7*(parseInt(_0x12afa7(0x1bf))/0x8)+-parseInt(_0x12afa7(0x1c5))/0x9*(parseInt(_0x12afa7(0x1c3))/0xa)+parseInt(_0x12afa7(0x1ba))/0xb*(parseInt(_0x12afa7(0x1bd))/0xc);if(_0x5cf37d===_0x5d4e79)break;else _0x38ccc2['push'](_0x38ccc2['shift']());}catch(_0xd1683e){_0x38ccc2['push'](_0x38ccc2['shift']());}}}(a5_0x4b13,0x9ce0f));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export const configDir=join(homedir(),a5_0x1fbd1e(0x1bb));export const cookieFile=join(configDir,'cookie');mkdirSync(configDir,{'recursive':!![]});function a5_0x4b13(){const _0x22c774=['1avuYNk','2635155tYJBym','620QLQeBo','38830SfAZHB','.lovrabet','194898XfOOSB','1788LXQspw','2731515aJeApk','8Tbyalv','2462803wbqTRD','58452oapNeu','178344Crqjji','20AmYVyr'];a5_0x4b13=function(){return _0x22c774;};return a5_0x4b13();}
|
package/lib/auth/get-cookie.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x163d32,_0x59539d){var _0x203714=a6_0x5d22,_0x5675b5=_0x163d32();while(!![]){try{var _0x564167=parseInt(_0x203714(0x87))/0x1*(-parseInt(_0x203714(0x8b))/0x2)+parseInt(_0x203714(0x8f))/0x3+parseInt(_0x203714(0x8a))/0x4+-parseInt(_0x203714(0x89))/0x5+-parseInt(_0x203714(0x8c))/0x6+-parseInt(_0x203714(0x8e))/0x7*(parseInt(_0x203714(0x88))/0x8)+parseInt(_0x203714(0x8d))/0x9*(parseInt(_0x203714(0x86))/0xa);if(_0x564167===_0x59539d)break;else _0x5675b5['push'](_0x5675b5['shift']());}catch(_0x361b98){_0x5675b5['push'](_0x5675b5['shift']());}}}(a6_0x4214,0xb86c1));import{readFileSync}from'node:fs';function a6_0x4214(){var _0x5616ca=['3883660mxgmDh','558MtcSsM','5576982LckjZs','12159QeCwdc','3909101bBmdeJ','2145246tnMYhq','17540AySrxa','2738XglmUZ','8XYdSNX','5242080feNPLG'];a6_0x4214=function(){return _0x5616ca;};return a6_0x4214();}import{cookieFile}from'../auth/constant.js';function a6_0x5d22(_0x2b0b33,_0x2c2f35){_0x2b0b33=_0x2b0b33-0x86;var _0x421456=a6_0x4214();var _0x5d22b8=_0x421456[_0x2b0b33];return _0x5d22b8;}export function getCookie(){try{return readFileSync(cookieFile,'utf-8');}catch{}return'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b1ffb,_0x2d09d6){const _0x41d5c4=a7_0xe7ab,_0x24ad6e=_0x1b1ffb();while(!![]){try{const _0x281823=parseInt(_0x41d5c4(0x1a9))/0x1+-parseInt(_0x41d5c4(0x1a1))/0x2*(-parseInt(_0x41d5c4(0x1a3))/0x3)+-parseInt(_0x41d5c4(0x1ad))/0x4*(-parseInt(_0x41d5c4(0x1a7))/0x5)+-parseInt(_0x41d5c4(0x1a5))/0x6*(parseInt(_0x41d5c4(0x1ac))/0x7)+parseInt(_0x41d5c4(0x1ab))/0x8+-parseInt(_0x41d5c4(0x1a6))/0x9+parseInt(_0x41d5c4(0x1a4))/0xa*(-parseInt(_0x41d5c4(0x1af))/0xb);if(_0x281823===_0x2d09d6)break;else _0x24ad6e['push'](_0x24ad6e['shift']());}catch(_0x3e93d4){_0x24ad6e['push'](_0x24ad6e['shift']());}}}(a7_0x214e,0xe4001));function a7_0xe7ab(_0x5955f3,_0x44e662){_0x5955f3=_0x5955f3-0x1a1;const _0x214e04=a7_0x214e();let _0xe7abc0=_0x214e04[_0x5955f3];return _0xe7abc0;}import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a7_0x214e(){const _0x4b35d8=['7022008QazshE','7Icbnsd','124552cMAtdv','utf-8','66eDEmHe','801968qKjiNp','/api/auth/get-session','9ahCSGT','1458990ienGaw','5153172sZyVfK','2883357bEwMvc','40GcNtjJ','json','658711FklPzr','session'];a7_0x214e=function(){return _0x4b35d8;};return a7_0x214e();}import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x22831b=a7_0xe7ab;try{if(!existsSync(cookieFile))return null;const _0xd33bd6=readFileSync(cookieFile,_0x22831b(0x1ae)),_0x4bd35d=await fetch(getUserDomain()+_0x22831b(0x1a2),{'headers':{'cookie':_0xd33bd6}});if(!_0x4bd35d['ok'])return null;const _0x6940a=await _0x4bd35d[_0x22831b(0x1a8)]();if(!_0x6940a[_0x22831b(0x1aa)]||!_0x6940a['user'])return null;return _0x6940a;}catch{return null;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x52e9f3,_0x1e8a64){const _0xec39a4=a8_0x52a8,_0x5601bb=_0x52e9f3();while(!![]){try{const _0x57fa15=-parseInt(_0xec39a4(0x132))/0x1+parseInt(_0xec39a4(0x13a))/0x2+parseInt(_0xec39a4(0x136))/0x3+parseInt(_0xec39a4(0x138))/0x4*(-parseInt(_0xec39a4(0x135))/0x5)+-parseInt(_0xec39a4(0x139))/0x6*(-parseInt(_0xec39a4(0x13d))/0x7)+parseInt(_0xec39a4(0x131))/0x8+-parseInt(_0xec39a4(0x13e))/0x9*(parseInt(_0xec39a4(0x13b))/0xa);if(_0x57fa15===_0x1e8a64)break;else _0x5601bb['push'](_0x5601bb['shift']());}catch(_0xc4de0b){_0x5601bb['push'](_0x5601bb['shift']());}}}(a8_0x4d43,0x2577d));function a8_0x52a8(_0x1fcfec,_0x22f631){_0x1fcfec=_0x1fcfec-0x130;const _0x4d432f=a8_0x4d43();let _0x52a8e6=_0x4d432f[_0x1fcfec];return _0x52a8e6;}import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';function a8_0x4d43(){const _0x339b93=['25326EGQcoo','10593rOrgcH','session','utf-8','258920cQLwTm','5267ZArLMa','/api/auth/get-session','user','125pSOUPi','471234vPHipJ','json','46556DozZTb','486cSIvov','228670cljguI','1250rJGHEc','then'];a8_0x4d43=function(){return _0x339b93;};return a8_0x4d43();}import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x43787f=a8_0x52a8;try{if(!existsSync(cookieFile))return![];const _0x124cbf=readFileSync(cookieFile,_0x43787f(0x130)),_0x25cbff=await fetch(getUserDomain()+_0x43787f(0x133),{'headers':{'cookie':_0x124cbf}})[_0x43787f(0x13c)](_0x34c39b=>_0x34c39b[_0x43787f(0x137)]());return _0x25cbff&&_0x25cbff[_0x43787f(0x13f)]&&_0x25cbff[_0x43787f(0x134)];}catch{}return![];}
|
package/lib/auth/logout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x48d98b,_0x430d30){var _0x2446d8=a9_0x188d,_0x4d3024=_0x48d98b();while(!![]){try{var _0x358262=parseInt(_0x2446d8(0x82))/0x1*(-parseInt(_0x2446d8(0x8a))/0x2)+parseInt(_0x2446d8(0x88))/0x3+parseInt(_0x2446d8(0x89))/0x4*(-parseInt(_0x2446d8(0x85))/0x5)+parseInt(_0x2446d8(0x80))/0x6*(-parseInt(_0x2446d8(0x87))/0x7)+parseInt(_0x2446d8(0x81))/0x8+parseInt(_0x2446d8(0x84))/0x9+-parseInt(_0x2446d8(0x83))/0xa;if(_0x358262===_0x430d30)break;else _0x4d3024['push'](_0x4d3024['shift']());}catch(_0x556927){_0x4d3024['push'](_0x4d3024['shift']());}}}(a9_0x519c,0x460da));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';function a9_0x519c(){var _0x4c0ce1=['105AEFjlO','947856PwZzPT','4uuKRwt','112MrFaLE','!\x20Not\x20logged\x20in','95610rAsrhD','4241112YHKncO','1317gLIkXS','3331460WRLOae','2790333WPaNOt','1116335ivBMOk','log'];a9_0x519c=function(){return _0x4c0ce1;};return a9_0x519c();}function a9_0x188d(_0xd9c809,_0x32a8f8){_0xd9c809=_0xd9c809-0x7f;var _0x519cb8=a9_0x519c();var _0x188d79=_0x519cb8[_0xd9c809];return _0x188d79;}export function logout(){var _0x27fca9=a9_0x188d;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x27fca9(0x86)]('✓\x20Logged\x20out')):console['log'](_0x27fca9(0x7f));}
|
package/lib/cli-flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10_0x36b3d3=a10_0x455f;(function(_0x1fa50e,_0x2ef34d){const _0x1f4984=a10_0x455f,_0x593d2b=_0x1fa50e();while(!![]){try{const _0x1d2859=-parseInt(_0x1f4984(0xe9))/0x1*(parseInt(_0x1f4984(0xef))/0x2)+parseInt(_0x1f4984(0xf0))/0x3*(-parseInt(_0x1f4984(0xea))/0x4)+parseInt(_0x1f4984(0xe7))/0x5+parseInt(_0x1f4984(0xe8))/0x6+parseInt(_0x1f4984(0xed))/0x7*(-parseInt(_0x1f4984(0xf1))/0x8)+parseInt(_0x1f4984(0xec))/0x9+-parseInt(_0x1f4984(0xee))/0xa;if(_0x1d2859===_0x2ef34d)break;else _0x593d2b['push'](_0x593d2b['shift']());}catch(_0x2445c4){_0x593d2b['push'](_0x593d2b['shift']());}}}(a10_0x4796,0xab5e6));function a10_0x455f(_0x41a779,_0x5e694f){_0x41a779=_0x41a779-0xe7;const _0x4796be=a10_0x4796();let _0x455fdc=_0x4796be[_0x41a779];return _0x455fdc;}export const dynamicCliFlags={'enableBffSave':{'type':a10_0x36b3d3(0xeb)}};function a10_0x4796(){const _0x5c4900=['12QIjusY','9576EmTBFt','3109145blCyqx','6752226wEPKJS','355PhfmpP','194872qlODVQ','boolean','10016073SjCYbh','3815awgCNo','6928790bMouOf','3482GcnNIG'];a10_0x4796=function(){return _0x5c4900;};return a10_0x4796();}
|
package/lib/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
2
|
+
const a11_0x4d6a6b=a11_0x14fa;(function(_0x4fd4c5,_0x11a582){const _0x56fe38=a11_0x14fa,_0x334200=_0x4fd4c5();while(!![]){try{const _0x326900=-parseInt(_0x56fe38(0x14e))/0x1+parseInt(_0x56fe38(0x141))/0x2+parseInt(_0x56fe38(0x13e))/0x3+parseInt(_0x56fe38(0x143))/0x4+-parseInt(_0x56fe38(0x158))/0x5+-parseInt(_0x56fe38(0x160))/0x6+parseInt(_0x56fe38(0x13f))/0x7*(parseInt(_0x56fe38(0x148))/0x8);if(_0x326900===_0x11a582)break;else _0x334200['push'](_0x334200['shift']());}catch(_0xa60356){_0x334200['push'](_0x334200['shift']());}}}(a11_0x2209,0x3628f));import a11_0x39f54a from'meow';import{showHelp}from'./help.js';function a11_0x2209(){const _0x41b893=['appCode','slice','input','stderr','152490bZhgmu','riskLevel','log','env','`\x20in\x20v2.0.\x0a','defaultCommand','format','code','cookie','now','hint','./cli-flags.js','help','pageSize','301032ZwrqXU','415877vXYrhP','unknownCommand','48538SGpWjx','exitCode','459752OcircF','./context.js','apiDomain','string','explicitAppName','48HUsmhm','./constant/domain.js','raw','cancelled','⚠\x20`','wildcardDef','62270atMJXT','userDomain','Error:\x20','message','unknown_service','error','command','flags','appcode','./constant/env.js','1432465otYaPK','\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a','ExitPromptError','write'];a11_0x2209=function(){return _0x41b893;};return a11_0x2209();}import{CliError,CliErrors}from'./errors.js';import{isKnownService,getServiceEntry,findDefinition,deprecatedAliases}from'./commands/registry.js';import{runCommand}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';function a11_0x14fa(_0xdce8ef,_0x35e5aa){_0xdce8ef=_0xdce8ef-0x13a;const _0x22098a=a11_0x2209();let _0x14fa9b=_0x22098a[_0xdce8ef];return _0x14fa9b;}import{getCookie}from'./auth/get-cookie.js';import{getApiDomain}from'./constant/domain.js';import{CLI_BIN_NAME,buildMeowFlags}from'./constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'./generated/build-info.js';import{reportCliHelpTrace}from'./telemetry/cli-help-trace.js';import{reportCommandTrace}from'./telemetry/cli-command-trace.js';import{isNonInteractive as a11_0x2d8fa2}from'./utils/is-non-interactive.js';import{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import(a11_0x4d6a6b(0x13b)))['dynamicCliFlags'];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[a11_0x4d6a6b(0x15d)](0x0,0xa)+')':VERSION,cli=a11_0x39f54a(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x406d31=a11_0x4d6a6b;let _0x2fa965=cli[_0x406d31(0x15e)][0x0],_0x2ef16e=cli[_0x406d31(0x15e)][0x1];const _0x5401fb=cli[_0x406d31(0x155)];if(!_0x2fa965){await reportCliHelpTrace('global'),showHelp();return;}const _0x2eafe3=deprecatedAliases[_0x2fa965];if(_0x2eafe3&&!isKnownService(_0x2fa965)){const _0x50a31f=_0x2ef16e?CLI_BIN_NAME+'\x20'+_0x2fa965+'\x20'+_0x2ef16e:CLI_BIN_NAME+'\x20'+_0x2fa965,_0x2eb428=CLI_BIN_NAME+'\x20'+_0x2eafe3['service']+'\x20'+_0x2eafe3[_0x406d31(0x154)];console['error'](_0x406d31(0x14c)+_0x50a31f+'`\x20has\x20been\x20moved\x20to\x20`'+_0x2eb428+_0x406d31(0x164)+_0x406d31(0x159)),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x2fa965)){await reportCliHelpTrace(_0x406d31(0x152),{'service':_0x2fa965}),showHelp();return;}const _0x2642ba=getServiceEntry(_0x2fa965);if(_0x5401fb[_0x406d31(0x163)]&&typeof _0x5401fb[_0x406d31(0x163)]===_0x406d31(0x146)){const {initEnv:_0x511b84}=await import(_0x406d31(0x157));_0x511b84(_0x5401fb['env']);}const {buildConfigFromFlags:_0x50a8e6}=await import(_0x406d31(0x144)),_0x3b4c38=_0x50a8e6(_0x5401fb);if(!_0x5401fb[_0x406d31(0x163)]&&_0x3b4c38[_0x406d31(0x163)]){const {initEnv:_0x22ef58}=await import(_0x406d31(0x157));_0x22ef58(_0x3b4c38[_0x406d31(0x163)]);}if(_0x3b4c38[_0x406d31(0x14a)]?.[_0x406d31(0x145)]||_0x3b4c38[_0x406d31(0x14a)]?.[_0x406d31(0x14f)]||_0x3b4c38[_0x406d31(0x14a)]?.['runtimeDomain']){const {initDomains:_0x479492}=await import(_0x406d31(0x149));_0x479492({'apiDomain':_0x3b4c38[_0x406d31(0x14a)][_0x406d31(0x145)]||undefined,'userDomain':_0x3b4c38[_0x406d31(0x14a)][_0x406d31(0x14f)]||undefined,'runtimeDomain':_0x3b4c38['raw']['runtimeDomain']||undefined});}if(!_0x2ef16e){if(_0x2642ba[_0x406d31(0x165)])_0x2ef16e=_0x2642ba[_0x406d31(0x165)];else{if(_0x2642ba[_0x406d31(0x14d)]){if(_0x5401fb[_0x406d31(0x13c)]){console[_0x406d31(0x162)](generateCommandHelp(_0x2642ba[_0x406d31(0x14d)]));return;}await dispatchDeclarative(_0x2642ba[_0x406d31(0x14d)],_0x2fa965,'',[],_0x5401fb,_0x3b4c38);return;}else{printServiceHelp(_0x2fa965);return;}}}if(_0x5401fb[_0x406d31(0x13c)]&&!findDefinition(_0x2fa965,_0x2ef16e)){printServiceHelp(_0x2fa965);return;}{let _0x4aeee0=findDefinition(_0x2fa965,_0x2ef16e),_0x21248a=cli[_0x406d31(0x15e)][_0x406d31(0x15d)](0x2);if(!_0x4aeee0){if(_0x2642ba['wildcardDef']){if(_0x5401fb[_0x406d31(0x13c)]){console[_0x406d31(0x162)](generateCommandHelp(_0x2642ba[_0x406d31(0x14d)]));return;}_0x4aeee0=_0x2642ba['wildcardDef'],_0x21248a=[_0x2ef16e,...cli[_0x406d31(0x15e)]['slice'](0x2)];}else{printServiceHelp(_0x2fa965),await handleErrorAsync(CliErrors[_0x406d31(0x140)](_0x2fa965+'\x20'+_0x2ef16e));return;}}if(_0x5401fb['help']){console[_0x406d31(0x162)](generateCommandHelp(_0x4aeee0));return;}await dispatchDeclarative(_0x4aeee0,_0x2fa965,_0x2ef16e,_0x21248a,_0x5401fb,_0x3b4c38);}}async function dispatchDeclarative(_0x1d2b6b,_0x524c9d,_0xe8ebf6,_0x82ac2e,_0x59471f,_0x3d0c42){const _0x1259c1=a11_0x4d6a6b,_0x3b69c5=Date[_0x1259c1(0x169)]();let _0x5b4cf7;try{await runCommand(_0x1d2b6b,{'rawFlags':_0x59471f,'args':_0x82ac2e,'resolveAppCode':()=>_0x3d0c42[_0x1259c1(0x15c)]||_0x59471f[_0x1259c1(0x156)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x3d0c42[_0x1259c1(0x168)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a11_0x2d8fa2(_0x59471f),'defaultFormat':_0x3d0c42[_0x1259c1(0x166)],'defaultPageSize':_0x3d0c42[_0x1259c1(0x13d)],'defaultVerbose':_0x3d0c42['verbose'],'apiDir':_0x3d0c42['apiDir'],'riskLevel':_0x3d0c42[_0x1259c1(0x161)],'selectedAppName':_0x3d0c42[_0x1259c1(0x147)]});}catch(_0x2baa6f){_0x5b4cf7=_0x2baa6f;}await reportCommandTrace({'service':_0x524c9d,'command':_0xe8ebf6,'flags':_0x59471f,'durationMs':Date['now']()-_0x3b69c5,'error':_0x5b4cf7});if(_0x5b4cf7)await handleErrorAsync(_0x5b4cf7);}function printServiceHelp(_0x49d1ae){const _0x4fc3c0=a11_0x4d6a6b;console[_0x4fc3c0(0x162)](generateServiceHelp(_0x49d1ae));}async function handleErrorAsync(_0x1855ab){const _0x410888=a11_0x4d6a6b;if(_0x1855ab instanceof Error&&_0x1855ab['name']===_0x410888(0x15a))return process['stderr']['write']('\x0aCancelled.\x0a'),await exitWithOtelShutdown(0x0);if(_0x1855ab instanceof CliError){if(_0x1855ab[_0x410888(0x167)]===_0x410888(0x14b))return process[_0x410888(0x15f)][_0x410888(0x15b)]('\x0a'+_0x1855ab[_0x410888(0x151)]+'\x0a'),await exitWithOtelShutdown(0x0);console[_0x410888(0x153)](_0x410888(0x150)+_0x1855ab[_0x410888(0x151)]);if(_0x1855ab[_0x410888(0x13a)])console[_0x410888(0x153)]('Hint:\x20'+_0x1855ab[_0x410888(0x13a)]);return await exitWithOtelShutdown(_0x1855ab[_0x410888(0x142)]);}return console[_0x410888(0x153)]('Unexpected\x20error:',_0x1855ab),await exitWithOtelShutdown(0x1);}
|
package/lib/commands/api/doc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x33942a=a12_0x2360;(function(_0x47082d,_0x46dc8d){const _0x42ca0e=a12_0x2360,_0x328f07=_0x47082d();while(!![]){try{const _0x192813=-parseInt(_0x42ca0e(0x1ef))/0x1+parseInt(_0x42ca0e(0x1e0))/0x2+-parseInt(_0x42ca0e(0x209))/0x3+-parseInt(_0x42ca0e(0x1fe))/0x4+parseInt(_0x42ca0e(0x211))/0x5+parseInt(_0x42ca0e(0x20d))/0x6+parseInt(_0x42ca0e(0x208))/0x7;if(_0x192813===_0x46dc8d)break;else _0x328f07['push'](_0x328f07['shift']());}catch(_0x36cc05){_0x328f07['push'](_0x328f07['shift']());}}}(a12_0x32a2,0x2e4f3));import a12_0x3d8f3a from'ora';import{fetchModelList}from'../../api/fetch-model-list.js';function a12_0x2360(_0x1f8981,_0x1efac4){_0x1f8981=_0x1f8981-0x1e0;const _0x32a2fc=a12_0x32a2();let _0x2360a7=_0x32a2fc[_0x1f8981];return _0x2360a7;}import{generateDatasetDocs}from'../../api/api-doc.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a12_0x32a2(){const _0x221d9f=['\x1b[90m*\x20Generating\x20docs\x20for:\x20','Invalid\x20--params:\x20','doc','validation','...','Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','Output\x20directory\x20(default:\x20./docs)','stdout','datasetCode','join','362749YKSPry','filter','output','\x20file(s)','datasetName','Doc\x20generation:\x20','Fetching\x20dataset\x20list\x20for\x20','Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for','\x1b[0m','Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','./docs','datasetcode','\x20succeeded,\x20','\x20dataset(s)\x1b[0m','253764HTyPyd','.md','api','Doc\x20generation\x20complete:\x20','appCode','params','string','succeed','write','split','1288798kRzxUX','49869sRutWA','\x0d\x20\x20[','cookie','str','181128WKtqWD','None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20','Failed\x20to\x20fetch\x20datasets','):\x20','956135nSZCdv','\x20doc(s)\x20failed','some','✓\x20Generated\x20','success','453934QgNrVU','isArray','length','!\x20No\x20datasets\x20found.','start'];a12_0x32a2=function(){return _0x221d9f;};return a12_0x32a2();}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiDoc={'service':a12_0x33942a(0x200),'command':a12_0x33942a(0x1e7),'description':a12_0x33942a(0x1ea),'risk':a12_0x33942a(0x206),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a12_0x33942a(0x1f1),'type':a12_0x33942a(0x204),'description':a12_0x33942a(0x1eb)},{'name':a12_0x33942a(0x1fb),'type':a12_0x33942a(0x204),'description':a12_0x33942a(0x1f6)},{'name':'params','type':a12_0x33942a(0x204),'description':a12_0x33942a(0x1f8)}],async 'execute'(_0x1d8763){const _0x113463=a12_0x33942a,_0x5d9547=_0x1d8763['str']('output')||_0x113463(0x1fa),_0x10790e=_0x1d8763[_0x113463(0x20c)](_0x113463(0x1fb)),_0x19168e=_0x1d8763['str'](_0x113463(0x203));let _0x29a27c;if(_0x19168e)try{_0x29a27c=JSON['parse'](_0x19168e);if(typeof _0x29a27c!=='object'||_0x29a27c===null||Array[_0x113463(0x1e1)](_0x29a27c))throw new Error('must\x20be\x20a\x20JSON\x20object');}catch(_0x1faeca){throw CliErrors[_0x113463(0x1e8)](_0x113463(0x1e6)+(_0x1faeca instanceof Error?_0x1faeca['message']:String(_0x1faeca)),_0x113463(0x1f9));}let _0x5667f7;if(_0x10790e){const _0x3bf0f3=_0x10790e[_0x113463(0x207)](',')['map'](_0xa16b5c=>_0xa16b5c['trim']())[_0x113463(0x1f0)](_0x2eac5e=>_0x2eac5e[_0x113463(0x1e2)]>0x0);if(_0x3bf0f3[_0x113463(0x1e2)]===0x0)throw CliErrors[_0x113463(0x1e8)]('--datasetcode\x20cannot\x20be\x20empty.');_0x5667f7=new Set(_0x3bf0f3),writeCliSideChannelLine(_0x113463(0x1e5)+_0x3bf0f3[_0x113463(0x1ee)](',\x20')+_0x113463(0x1f7));}const _0x562244=a12_0x3d8f3a(_0x113463(0x1f5)+_0x1d8763[_0x113463(0x202)]+_0x113463(0x1e9))[_0x113463(0x1e4)]();let _0x29e7ac;try{({configArray:_0x29e7ac}=await fetchModelList(_0x1d8763['appCode'],_0x1d8763[_0x113463(0x20b)]),_0x562244[_0x113463(0x205)]('Fetched\x20'+_0x29e7ac[_0x113463(0x1e2)]+'\x20dataset(s)'));}catch(_0x355e80){_0x562244['fail'](_0x113463(0x20f));throw _0x355e80;}if(_0x29e7ac[_0x113463(0x1e2)]===0x0)return writeCliSideChannelLine(_0x113463(0x1e3)),{'ok':!![]};let _0x26e56f=_0x29e7ac;if(_0x5667f7){_0x26e56f=_0x29e7ac['filter'](_0x1132fc=>_0x5667f7['has'](_0x1132fc[_0x113463(0x1ed)]));const _0x17966d=[..._0x5667f7][_0x113463(0x1f0)](_0x11bd3b=>!_0x29e7ac[_0x113463(0x213)](_0xff3e63=>_0xff3e63[_0x113463(0x1ed)]===_0x11bd3b));_0x17966d[_0x113463(0x1e2)]>0x0&&writeCliSideChannelLine('\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20'+_0x17966d[_0x113463(0x1ee)](',\x20')+_0x113463(0x1f7));if(_0x26e56f[_0x113463(0x1e2)]===0x0)throw CliErrors[_0x113463(0x1e8)](_0x113463(0x20e)+[..._0x5667f7]['join'](',\x20'));writeCliSideChannelLine('\x1b[90m*\x20Filtered\x20'+_0x26e56f['length']+'\x20of\x20'+_0x29e7ac[_0x113463(0x1e2)]+_0x113463(0x1fd));}let _0x15582c=0x0;const _0x5e7986=await generateDatasetDocs(_0x26e56f,_0x1d8763[_0x113463(0x202)],_0x1d8763['cookie'],_0x5d9547,(_0x73177c,_0x377e3f,_0x8029f4)=>{const _0x4da0a6=_0x113463;_0x15582c=_0x73177c,process[_0x4da0a6(0x1ec)][_0x4da0a6(0x206)](_0x4da0a6(0x20a)+String(_0x73177c)['padStart'](String(_0x377e3f)['length'])+'/'+_0x377e3f+']\x20'+_0x8029f4+_0x4da0a6(0x1ff));},_0x29a27c);if(_0x15582c>0x0)process[_0x113463(0x1ec)][_0x113463(0x206)]('\x0a');const _0xc566e2=_0x5e7986[_0x113463(0x1f0)](_0x5f12ca=>_0x5f12ca[_0x113463(0x215)])['length'],_0x188dfd=_0x5e7986[_0x113463(0x1f0)](_0x1d48a5=>!_0x1d48a5['success'])[_0x113463(0x1e2)];writeCliSideChannelLine(''),writeCliSideChannelLine(_0x113463(0x214)+_0xc566e2+'\x20doc(s)\x20in\x20'+_0x5d9547);if(_0x188dfd>0x0){writeCliSideChannelLine('!\x20'+_0x188dfd+_0x113463(0x212));for(const _0x3b8f50 of _0x5e7986['filter'](_0x1c4a77=>!_0x1c4a77['success'])){writeCliSideChannelLine('\x20\x20•\x20'+_0x3b8f50[_0x113463(0x1f3)]+'\x20('+_0x3b8f50[_0x113463(0x1ed)]+_0x113463(0x210)+_0x3b8f50['error']);}}return{'ok':_0x188dfd===0x0,'message':_0x188dfd>0x0?_0x113463(0x1f4)+_0xc566e2+_0x113463(0x1fc)+_0x188dfd+'\x20failed':_0x113463(0x201)+_0xc566e2+_0x113463(0x1f2)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1f4612,_0x3ee6d3){const _0x360659=a13_0x5bc2,_0x296cac=_0x1f4612();while(!![]){try{const _0x4744cd=parseInt(_0x360659(0x1e9))/0x1+parseInt(_0x360659(0x1ed))/0x2+parseInt(_0x360659(0x1e7))/0x3+parseInt(_0x360659(0x1ea))/0x4*(parseInt(_0x360659(0x1e4))/0x5)+parseInt(_0x360659(0x1ec))/0x6*(parseInt(_0x360659(0x1e6))/0x7)+parseInt(_0x360659(0x1eb))/0x8*(parseInt(_0x360659(0x1e8))/0x9)+parseInt(_0x360659(0x1e3))/0xa*(-parseInt(_0x360659(0x1e5))/0xb);if(_0x4744cd===_0x3ee6d3)break;else _0x296cac['push'](_0x296cac['shift']());}catch(_0x21c9e1){_0x296cac['push'](_0x296cac['shift']());}}}(a13_0x459f,0xf2986));import{apiList}from'../../commands/api/list.js';import{apiPull}from'../../commands/api/pull.js';import{apiDoc}from'../../commands/api/doc.js';export const apiDefinitions=[apiList,apiPull,apiDoc];function a13_0x5bc2(_0x40826c,_0x3b88c3){_0x40826c=_0x40826c-0x1e3;const _0x459fc7=a13_0x459f();let _0x5bc2b6=_0x459fc7[_0x40826c];return _0x5bc2b6;}function a13_0x459f(){const _0x1807cf=['2079nlITdh','3413604fetbEA','8614602Ntjjmb','1100126BWVVPg','572aFKLdh','16HjtLuZ','28722BIxIrW','1759326JRkBAc','184120vafniv','10590RxuCKY','3443Eplqwp'];a13_0x459f=function(){return _0x1807cf;};return a13_0x459f();}
|
package/lib/commands/api/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a14_0x2cb6(){const _0x339842=['production','4236456NapVWZ','global','push','111459EczsAx','api','9OrPQfd','isDefault','list','1815702AkFyLH','map','1542340uCTPHh','2GCerDO','name','cookie','4946277GrqHRw','env','appCode','List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','read','1372280TaWXyA','appcode','12AFjEnD','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','boolean','str','388511kWgOnz'];a14_0x2cb6=function(){return _0x339842;};return a14_0x2cb6();}function a14_0x246b(_0xb1dc2e,_0x53782f){_0xb1dc2e=_0xb1dc2e-0xc8;const _0x2cb604=a14_0x2cb6();let _0x246b63=_0x2cb604[_0xb1dc2e];return _0x246b63;}const a14_0x4853ec=a14_0x246b;(function(_0x3081d3,_0x18011c){const _0x30e24c=a14_0x246b,_0x5cdc89=_0x3081d3();while(!![]){try{const _0x30bf90=parseInt(_0x30e24c(0xe2))/0x1*(-parseInt(_0x30e24c(0xd4))/0x2)+-parseInt(_0x30e24c(0xcc))/0x3*(parseInt(_0x30e24c(0xde))/0x4)+-parseInt(_0x30e24c(0xd3))/0x5+parseInt(_0x30e24c(0xd1))/0x6+parseInt(_0x30e24c(0xd7))/0x7+-parseInt(_0x30e24c(0xc9))/0x8*(-parseInt(_0x30e24c(0xce))/0x9)+-parseInt(_0x30e24c(0xdc))/0xa;if(_0x30bf90===_0x18011c)break;else _0x5cdc89['push'](_0x5cdc89['shift']());}catch(_0x3af492){_0x5cdc89['push'](_0x5cdc89['shift']());}}}(a14_0x2cb6,0x90cdf));import{initEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{resolveTargetApps}from'../../commands/api/shared.js';export const apiList={'service':a14_0x4853ec(0xcd),'command':a14_0x4853ec(0xd0),'description':a14_0x4853ec(0xda),'risk':a14_0x4853ec(0xdb),'requiresAppCode':!![],'defaultOutputFormat':'pretty','flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a14_0x4853ec(0xca),'type':a14_0x4853ec(0xe0),'description':a14_0x4853ec(0xdf),'default':![]}],async 'execute'(_0x1dfeb7){const _0x4a4d54=a14_0x4853ec,_0x5fd2d6=_0x1dfeb7[_0x4a4d54(0xe1)]('appcode'),_0x199b4d=resolveTargetApps(_0x1dfeb7,_0x5fd2d6);if(_0x199b4d){const _0x52fd4e=[];for(const _0x34d83e of _0x199b4d){const _0x1a5661=_0x34d83e[_0x4a4d54(0xd6)]||_0x1dfeb7['cookie'],_0x40e639=_0x34d83e[_0x4a4d54(0xd8)]||_0x4a4d54(0xc8);initEnv(_0x40e639);const {configArray:_0x698de6}=await fetchModelList(_0x34d83e['appcode'],_0x1a5661);_0x52fd4e[_0x4a4d54(0xcb)](..._0x698de6[_0x4a4d54(0xd2)](_0x2ef207=>({..._0x2ef207,'_appName':_0x34d83e[_0x4a4d54(0xd5)],'_appCode':_0x34d83e[_0x4a4d54(0xdd)],'_env':_0x40e639,'_isDefault':_0x34d83e[_0x4a4d54(0xcf)]})));}return{'ok':!![],'data':_0x52fd4e};}const {configArray:_0xbc5b3c}=await fetchModelList(_0x1dfeb7[_0x4a4d54(0xd9)],_0x1dfeb7[_0x4a4d54(0xd6)]);return{'ok':!![],'data':_0xbc5b3c};}};
|
package/lib/commands/api/pull.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a15_0x3bb4(){const _0x41bc15=['message','2xLVSUv','isDefault','output','\x20model(s)','7785350tjOLNq','global','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','Pulled\x20','start','pull','Failed:\x20','21IFOrUs','\x20failed','5qTsSPf','client','Output\x20directory\x20(default:\x20','11vJtdQA','\x20app(s)\x20failed','cookie','\x20\x20•\x20','-client','string','...','join','api','slice','Pulling\x20API\x20config\x20for\x20','268536ckQVVN','str','\x20dataset(s)\x20→\x20','.ts',')...','\x20succeeded,\x20','appCode','-api','succeed','\x20dataset(s),\x20generated\x20','length','143744NZBqTO','name','1943406WwTmIW','env','405584ykPvWy','804747PlFUBf','apiDir','Pulling\x20','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','appcode','write','clientFilePath','apiFilePath','modelCount','643590MTyOAY'];a15_0x3bb4=function(){return _0x41bc15;};return a15_0x3bb4();}const a15_0x3ec777=a15_0x44b1;(function(_0x47f93e,_0x4310ab){const _0x3b9277=a15_0x44b1,_0x4eaf20=_0x47f93e();while(!![]){try{const _0x202bef=parseInt(_0x3b9277(0x18b))/0x1+parseInt(_0x3b9277(0x19b))/0x2*(-parseInt(_0x3b9277(0x190))/0x3)+-parseInt(_0x3b9277(0x1b6))/0x4*(-parseInt(_0x3b9277(0x1a8))/0x5)+-parseInt(_0x3b9277(0x18d))/0x6+-parseInt(_0x3b9277(0x1a6))/0x7*(parseInt(_0x3b9277(0x18f))/0x8)+-parseInt(_0x3b9277(0x199))/0x9+parseInt(_0x3b9277(0x19f))/0xa*(parseInt(_0x3b9277(0x1ab))/0xb);if(_0x202bef===_0x4310ab)break;else _0x4eaf20['push'](_0x4eaf20['shift']());}catch(_0xb72030){_0x4eaf20['push'](_0x4eaf20['shift']());}}}(a15_0x3bb4,0x2a65b));import a15_0x1748e4 from'ora';import a15_0x5c8835 from'node:path';import{initEnv,getEnv}from'../../constant/env.js';import{fetchModelList}from'../../api/fetch-model-list.js';import{generateApiFile}from'../../api/generate-api-file.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{DEFAULT_API_DIR}from'../../constant/paths.js';import{resolveTargetApps}from'../../commands/api/shared.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a15_0x44b1(_0xe7766b,_0x3a45a7){_0xe7766b=_0xe7766b-0x182;const _0x3bb4ab=a15_0x3bb4();let _0x44b1a3=_0x3bb4ab[_0xe7766b];return _0x44b1a3;}export const apiPull={'service':'api','command':a15_0x3ec777(0x1a4),'description':a15_0x3ec777(0x1a1)+DEFAULT_API_DIR+'/)','risk':a15_0x3ec777(0x195),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':'output','type':a15_0x3ec777(0x1b0),'description':a15_0x3ec777(0x1aa)+DEFAULT_API_DIR+'/)'},{'name':a15_0x3ec777(0x1a0),'type':'boolean','description':a15_0x3ec777(0x193),'default':![]}],async 'execute'(_0x2bdf8c){const _0x10dead=a15_0x3ec777,_0x158818=_0x2bdf8c[_0x10dead(0x1b7)]('appcode'),_0x1d19a2=_0x2bdf8c[_0x10dead(0x1b7)](_0x10dead(0x19d))||undefined,_0xc7de04=resolveTargetApps(_0x2bdf8c,_0x158818);if(_0xc7de04){let _0x570262=0x0,_0x2f0d5a=0x0;for(const _0x25ddc8 of _0xc7de04){const _0x107386=_0x25ddc8['cookie']||_0x2bdf8c[_0x10dead(0x1ad)],_0x53fc62=_0x25ddc8[_0x10dead(0x18e)]||'production';initEnv(_0x53fc62);const _0x56385e=_0x25ddc8[_0x10dead(0x191)]||_0x1d19a2||_0x2bdf8c[_0x10dead(0x191)]||DEFAULT_API_DIR,_0x5babe7=_0x25ddc8[_0x10dead(0x19c)]?'':_0x25ddc8[_0x10dead(0x18c)]||_0x25ddc8[_0x10dead(0x194)],_0x840e9=a15_0x1748e4(_0x10dead(0x192)+_0x25ddc8[_0x10dead(0x18c)]+'\x20('+_0x25ddc8[_0x10dead(0x194)]+_0x10dead(0x184))[_0x10dead(0x1a3)]();try{const {configArray:_0x2faa52}=await fetchModelList(_0x25ddc8[_0x10dead(0x194)],_0x107386),_0x4563ae=await generateApiFile(_0x2faa52,_0x5babe7,_0x25ddc8[_0x10dead(0x194)],_0x25ddc8['isDefault'],_0x53fc62,_0x56385e,_0x25ddc8[_0x10dead(0x18c)]);_0x840e9[_0x10dead(0x188)](_0x25ddc8[_0x10dead(0x18c)]+':\x20'+_0x2faa52[_0x10dead(0x18a)]+_0x10dead(0x182)+_0x4563ae[_0x10dead(0x198)]+_0x10dead(0x19e)),writeCliSideChannelLine(_0x10dead(0x1ae)+_0x4563ae[_0x10dead(0x197)]),writeCliSideChannelLine(_0x10dead(0x1ae)+_0x4563ae[_0x10dead(0x196)]),_0x570262++;}catch(_0x46efc9){_0x840e9['fail'](_0x25ddc8['name']+':\x20'+(_0x46efc9 instanceof Error?_0x46efc9[_0x10dead(0x19a)]:String(_0x46efc9))),_0x2f0d5a++;}}writeCliSideChannelLine('');if(_0x2f0d5a>0x0)writeCliSideChannelLine('!\x20'+_0x2f0d5a+_0x10dead(0x1ac));return{'ok':_0x2f0d5a===0x0,'message':'Done:\x20'+_0x570262+_0x10dead(0x185)+_0x2f0d5a+_0x10dead(0x1a7)};}const _0x550961=_0x158818&&_0x158818['includes']('-')?_0x158818['split']('-')[_0x10dead(0x1b4)](0x1)[_0x10dead(0x1b2)]('-'):'',_0x223754=_0x1d19a2||_0x2bdf8c[_0x10dead(0x191)]||DEFAULT_API_DIR,_0x1be716=!_0x158818,_0x294294=a15_0x1748e4(_0x10dead(0x1b5)+_0x2bdf8c['appCode']+_0x10dead(0x1b1))['start']();try{const {configArray:_0x45d9ac}=await fetchModelList(_0x2bdf8c[_0x10dead(0x186)],_0x2bdf8c[_0x10dead(0x1ad)]),_0x34e6f0=await generateApiFile(_0x45d9ac,_0x550961,_0x2bdf8c['appCode'],_0x1be716,getEnv(),_0x223754);_0x294294[_0x10dead(0x188)](_0x10dead(0x1a2)+_0x45d9ac[_0x10dead(0x18a)]+_0x10dead(0x189)+_0x34e6f0[_0x10dead(0x198)]+'\x20model(s)');const _0x4026b4=_0x550961?_0x550961+_0x10dead(0x187):_0x10dead(0x1b3),_0x4bdc4f=_0x550961?_0x550961+_0x10dead(0x1af):_0x10dead(0x1a9);return writeCliSideChannelLine('\x20\x20•\x20'+a15_0x5c8835[_0x10dead(0x1b2)](_0x223754,_0x4026b4+'.ts')),writeCliSideChannelLine(_0x10dead(0x1ae)+a15_0x5c8835[_0x10dead(0x1b2)](_0x223754,_0x4bdc4f+_0x10dead(0x183))),{'ok':!![],'data':{'datasetCount':_0x45d9ac[_0x10dead(0x18a)],'modelCount':_0x34e6f0[_0x10dead(0x198)]}};}catch(_0xe51f59){_0x294294['fail'](_0x10dead(0x1a5)+(_0xe51f59 instanceof Error?_0xe51f59[_0x10dead(0x19a)]:String(_0xe51f59)));throw _0xe51f59;}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a16_0x2b1f(_0x4a5263,_0x5eea41){_0x4a5263=_0x4a5263-0xb1;const _0x340cde=a16_0x340c();let _0x2b1f45=_0x340cde[_0x4a5263];return _0x2b1f45;}(function(_0x29153a,_0xf43621){const _0x33c6c5=a16_0x2b1f,_0x1f01a0=_0x29153a();while(!![]){try{const _0x5bc71d=parseInt(_0x33c6c5(0xbc))/0x1*(parseInt(_0x33c6c5(0xba))/0x2)+parseInt(_0x33c6c5(0xb5))/0x3+-parseInt(_0x33c6c5(0xc0))/0x4*(-parseInt(_0x33c6c5(0xc5))/0x5)+-parseInt(_0x33c6c5(0xbb))/0x6*(-parseInt(_0x33c6c5(0xb7))/0x7)+parseInt(_0x33c6c5(0xc3))/0x8*(parseInt(_0x33c6c5(0xc1))/0x9)+parseInt(_0x33c6c5(0xbd))/0xa+-parseInt(_0x33c6c5(0xb3))/0xb;if(_0x5bc71d===_0xf43621)break;else _0x1f01a0['push'](_0x1f01a0['shift']());}catch(_0x1eb46e){_0x1f01a0['push'](_0x1f01a0['shift']());}}}(a16_0x340c,0x6e459));import{getMultiAppConfigs}from'../../utils/config.js';function a16_0x340c(){const _0x285b34=['selectedAppName','App\x20\x22','31591769DJuDuG','name','2084373dggWUl','length','84eVdvSu','filter','global','14UFsivm','165588KityWc','68963NQXzTe','1399000NhrlgD','project','merged','11668VUERdc','6963219wIedHw','map','8MfilpZ','validation','1545uBeWIX'];a16_0x340c=function(){return _0x285b34;};return a16_0x340c();}import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0x4a6296,_0x7b2227){const _0x19449b=a16_0x2b1f;if(_0x7b2227)return null;const _0x56afdf=_0x4a6296['bool'](_0x19449b(0xb9))?_0x19449b(0xbf):_0x19449b(0xbe);let _0x152611=getMultiAppConfigs(_0x56afdf);if(!_0x152611||_0x152611['length']===0x0)return null;if(_0x4a6296[_0x19449b(0xb1)]){const _0x5238e2=_0x152611[_0x19449b(0xb8)](_0x54f3e8=>_0x54f3e8[_0x19449b(0xb4)]===_0x4a6296[_0x19449b(0xb1)]);if(_0x5238e2[_0x19449b(0xb6)]===0x0){const _0x2432de=_0x152611[_0x19449b(0xc2)](_0x1367b9=>_0x1367b9[_0x19449b(0xb4)])['join'](',\x20');throw CliErrors[_0x19449b(0xc4)](_0x19449b(0xb2)+_0x4a6296['selectedAppName']+'\x22\x20not\x20found\x20in\x20config.\x20Available:\x20'+_0x2432de);}_0x152611=_0x5238e2;}return _0x152611;}
|
package/lib/commands/app/add.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0x4afedc=a17_0x1901;(function(_0x2e41d3,_0x89e2fc){const _0x4e2a4e=a17_0x1901,_0x1385ed=_0x2e41d3();while(!![]){try{const _0x590ccf=-parseInt(_0x4e2a4e(0xfe))/0x1*(-parseInt(_0x4e2a4e(0x101))/0x2)+parseInt(_0x4e2a4e(0x109))/0x3+-parseInt(_0x4e2a4e(0xeb))/0x4+-parseInt(_0x4e2a4e(0xef))/0x5*(-parseInt(_0x4e2a4e(0xfa))/0x6)+-parseInt(_0x4e2a4e(0x10b))/0x7+parseInt(_0x4e2a4e(0x10f))/0x8+-parseInt(_0x4e2a4e(0xff))/0x9;if(_0x590ccf===_0x89e2fc)break;else _0x1385ed['push'](_0x1385ed['shift']());}catch(_0x40f072){_0x1385ed['push'](_0x1385ed['shift']());}}}(a17_0x2717,0x47551));function a17_0x2717(){const _0xf9a65c=['Updated','\x22\x20(appcode:\x20','Access\x20key','Default\x20page\x20size','defaultFormat','appcode','1635372rTiXfh','Add\x20or\x20update\x20an\x20app\x20in\x20config','3383506nBEjgE','accessKey','entries','string','1955400JItBBf','number','flagMissing','apiDir','Added','Missing\x20app\x20name.','keys','Risk\x20level','App\x20code','Usage:\x20','bool','apps','format','global','434808KdJoNC','boolean','args','defaultApp','5bbOOvE','App\x20profile\x20name','riskLevel','str','Auth\x20cookie','trim','locale','API\x20directory\x20path','pageSize','\x20app\x20add\x20<name>\x20--appcode\x20<code>','length','3364710NYwfin','name','env','Use\x20global\x20config\x20scope','38848QVvvdV','5243769GWqHHz','validation','6ekwovC','cookie'];a17_0x2717=function(){return _0xf9a65c;};return a17_0x2717();}import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{readConfig,writeConfig,scopeLabel,migrateLegacySingleApp}from'../../commands/app/shared.js';const PROFILE_FLAG_KEYS={'env':'env','apiDir':a17_0x4afedc(0x112),'cookie':a17_0x4afedc(0x102),'accessKey':a17_0x4afedc(0x10c),'defaultFormat':a17_0x4afedc(0xe9),'pageSize':a17_0x4afedc(0xf7),'riskLevel':'riskLevel','locale':a17_0x4afedc(0xf5)};function a17_0x1901(_0x27b390,_0x5981b6){_0x27b390=_0x27b390-0xe1;const _0x2717b9=a17_0x2717();let _0x190174=_0x2717b9[_0x27b390];return _0x190174;}async function validateArgs(_0x553e9e){const _0x10a089=a17_0x4afedc,_0xe76c60=_0x553e9e[_0x10a089(0xed)][0x0]?.['trim']();if(!_0xe76c60)throw CliErrors[_0x10a089(0x100)](_0x10a089(0xe2),_0x10a089(0xe6)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');}async function execute(_0x5037db){const _0x384d87=a17_0x4afedc,_0x1e6720=_0x5037db['args'][0x0]?.[_0x384d87(0xf4)]();if(!_0x1e6720)throw CliErrors[_0x384d87(0x100)](_0x384d87(0xe2),'Usage:\x20'+CLI_BIN_NAME+_0x384d87(0xf8));const _0x409857=_0x5037db[_0x384d87(0xf2)](_0x384d87(0x108));if(!_0x409857)throw CliErrors[_0x384d87(0x111)](_0x384d87(0x108),_0x384d87(0xe6)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20<code>');const _0x2cf342={'global':_0x5037db[_0x384d87(0xe7)](_0x384d87(0xea))},_0x788ac2=readConfig(_0x2cf342);if(!_0x788ac2['apps'])_0x788ac2['apps']={};let _0x593279;Object[_0x384d87(0xe3)](_0x788ac2[_0x384d87(0xe8)])[_0x384d87(0xf9)]===0x0&&(_0x593279=migrateLegacySingleApp(_0x788ac2,_0x1e6720));const _0x19bac9={'appcode':_0x409857};for(const [_0x252146,_0x9cf445]of Object[_0x384d87(0x10d)](PROFILE_FLAG_KEYS)){const _0x2e45b8=_0x5037db[_0x384d87(0xf2)](_0x252146);_0x2e45b8&&(_0x19bac9[_0x9cf445]=_0x9cf445==='pageSize'?Number(_0x2e45b8):_0x2e45b8);}const _0x2b08aa=_0x788ac2[_0x384d87(0xe8)],_0x5d8469=!!_0x2b08aa[_0x1e6720];_0x2b08aa[_0x1e6720]=_0x19bac9;if(!_0x788ac2['defaultApp'])_0x788ac2['defaultApp']=_0x1e6720;writeConfig(_0x788ac2,_0x2cf342);const _0x4a346c=!_0x5d8469&&_0x788ac2[_0x384d87(0xee)]===_0x1e6720?'\x20Set\x20as\x20default\x20app.':'',_0x327b04=(_0x5d8469?_0x384d87(0x103):_0x384d87(0xe1))+'\x20app\x20\x22'+_0x1e6720+_0x384d87(0x104)+_0x409857+')'+scopeLabel(_0x2cf342)+'.'+_0x4a346c;return{'ok':!![],'message':_0x593279?_0x593279+'\x0a'+_0x327b04:_0x327b04};}export const appAddDefinition={'service':'app','command':'add','description':a17_0x4afedc(0x10a),'risk':'write','requiresAuth':![],'requiresAppCode':![],'args':[{'name':a17_0x4afedc(0xfb),'description':a17_0x4afedc(0xf0),'required':!![]}],'flags':[{'name':'appcode','type':a17_0x4afedc(0x10e),'description':a17_0x4afedc(0xe5),'required':!![]},{'name':'global','type':a17_0x4afedc(0xec),'description':a17_0x4afedc(0xfd),'default':![]},{'name':a17_0x4afedc(0xfc),'type':a17_0x4afedc(0x10e),'description':'Target\x20environment'},{'name':'apiDir','type':'string','description':a17_0x4afedc(0xf6)},{'name':a17_0x4afedc(0x102),'type':a17_0x4afedc(0x10e),'description':a17_0x4afedc(0xf3),'hidden':!![]},{'name':a17_0x4afedc(0x10c),'type':a17_0x4afedc(0x10e),'description':a17_0x4afedc(0x105),'hidden':!![]},{'name':a17_0x4afedc(0x107),'type':a17_0x4afedc(0x10e),'description':'Default\x20output\x20format\x20for\x20this\x20app\x20(profile)'},{'name':'pageSize','type':a17_0x4afedc(0x110),'description':a17_0x4afedc(0x106)},{'name':a17_0x4afedc(0xf1),'type':'string','description':a17_0x4afedc(0xe4)},{'name':a17_0x4afedc(0xf5),'type':a17_0x4afedc(0x10e),'description':'Locale'}],'validate':validateArgs,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4f2622,_0x348aae){const _0x168794=a18_0x5549,_0x37a8be=_0x4f2622();while(!![]){try{const _0x437640=parseInt(_0x168794(0xfd))/0x1*(-parseInt(_0x168794(0x100))/0x2)+parseInt(_0x168794(0x104))/0x3+-parseInt(_0x168794(0xfc))/0x4*(parseInt(_0x168794(0x102))/0x5)+-parseInt(_0x168794(0x103))/0x6+parseInt(_0x168794(0xfe))/0x7+-parseInt(_0x168794(0xff))/0x8*(parseInt(_0x168794(0x101))/0x9)+parseInt(_0x168794(0xfb))/0xa;if(_0x437640===_0x348aae)break;else _0x37a8be['push'](_0x37a8be['shift']());}catch(_0x441507){_0x37a8be['push'](_0x37a8be['shift']());}}}(a18_0x2269,0x5f8d5));import{appListDefinition}from'../../commands/app/list.js';function a18_0x5549(_0x2b89d6,_0x46758f){_0x2b89d6=_0x2b89d6-0xfb;const _0x226948=a18_0x2269();let _0x5549b0=_0x226948[_0x2b89d6];return _0x5549b0;}import{appRemoteDefinition}from'../../commands/app/remote.js';import{appUseDefinition}from'../../commands/app/use.js';import{appAddDefinition}from'../../commands/app/add.js';import{appRemoveDefinition}from'../../commands/app/remove.js';function a18_0x2269(){const _0x3c3835=['155GLirDZ','1722552DEadVE','1497840ZAyUSr','9096850OQRued','75060DfUfMY','86yOaBGW','4370947ZkCtJN','873608nkpqNM','2744hyMxec','54apIYsy'];a18_0x2269=function(){return _0x3c3835;};return a18_0x2269();}export const appDefinitions=[appListDefinition,appRemoteDefinition,appUseDefinition,appAddDefinition,appRemoveDefinition];
|