@lovrabet/rabetbase-cli 2.0.13 → 2.1.1
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 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- 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
|
-
const
|
|
1
|
+
function a0_0x688e(){const _0x45d84a=['.md','/api/node-toolbox/api-doc-generator','markdown','push','生成文档成功:\x20','message','):\x20missing\x20data.markdown\x20field','21745CZcPvb','Fetch\x20doc\x20(','.md\x20(','419282hXAMbe','146184YQJYTI','658096OltjMU','7QQPSOz','utf8','396274UXwqMd','datasetCode','name','./docs','log','join','api-doc','9877380DoIkWK','✓\x20Generated:\x20','11JJoSqi','POST','\x20datasets\x20to\x20generate\x20docs\x20for\x0a','9FDPFam','length','18IAFMxs','Invalid\x20response\x20format\x20(','error','550416ABUyyF',']\x20Generating:\x20'];a0_0x688e=function(){return _0x45d84a;};return a0_0x688e();}const a0_0x44b03e=a0_0x244e;(function(_0xb5376b,_0x15a000){const _0x5cf7ff=a0_0x244e,_0x1ed0c5=_0xb5376b();while(!![]){try{const _0x4e2022=-parseInt(_0x5cf7ff(0xcd))/0x1+-parseInt(_0x5cf7ff(0xc8))/0x2+parseInt(_0x5cf7ff(0xd9))/0x3*(-parseInt(_0x5cf7ff(0xc9))/0x4)+parseInt(_0x5cf7ff(0xc5))/0x5+-parseInt(_0x5cf7ff(0xbc))/0x6*(-parseInt(_0x5cf7ff(0xcb))/0x7)+parseInt(_0x5cf7ff(0xca))/0x8*(-parseInt(_0x5cf7ff(0xdb))/0x9)+-parseInt(_0x5cf7ff(0xd4))/0xa*(-parseInt(_0x5cf7ff(0xd6))/0xb);if(_0x4e2022===_0x15a000)break;else _0x1ed0c5['push'](_0x1ed0c5['shift']());}catch(_0x4b7b92){_0x1ed0c5['push'](_0x1ed0c5['shift']());}}}(a0_0x688e,0x31be2));import{mkdirSync,writeFileSync}from'node:fs';import a0_0x338e03 from'node:path';import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{platformFetch}from'../core/api-client.js';export async function fetchDatasetDoc(_0x338e65){const _0x31f19c=a0_0x244e,{appCode:_0x25f3e0,cookie:_0xca559b,datasetCode:_0x17b876,datasetId:_0x56dc1e,extraParams:_0x380cd3}=_0x338e65,_0x2b2967=getApiDomain()+_0x31f19c(0xbf),_0x26290b=await platformFetch(_0x2b2967,{'method':_0x31f19c(0xd7),'body':{'appCode':_0x25f3e0,'datasetCode':_0x17b876,'datasetId':_0x56dc1e,..._0x380cd3||{}},'cookie':_0xca559b,'label':_0x31f19c(0xc6)+_0x17b876+')'});if(!_0x26290b||typeof _0x26290b[_0x31f19c(0xc0)]!=='string')throw new Error(_0x31f19c(0xdc)+_0x17b876+_0x31f19c(0xc4));return _0x26290b[_0x31f19c(0xc0)];}function delay(_0x46987c){return new Promise(_0x4676d5=>setTimeout(_0x4676d5,_0x46987c));}function a0_0x244e(_0x3d247c,_0x19fb55){_0x3d247c=_0x3d247c-0xbb;const _0x688e85=a0_0x688e();let _0x244e2a=_0x688e85[_0x3d247c];return _0x244e2a;}export async function generateDatasetDocs(_0x18d150,_0x13ee0d,_0x9e46f0,_0xc536aa=a0_0x44b03e(0xd0),_0x4ded63,_0x5d465e){const _0xafbe56=a0_0x44b03e;mkdirSync(_0xc536aa,{'recursive':!![]});const _0x4fda91=[],_0x4e77b3=_0x18d150[_0xafbe56(0xda)];console[_0xafbe56(0xd1)]('\x0a'+_0x4e77b3+_0xafbe56(0xd8));for(let _0x5c11f7=0x0;_0x5c11f7<_0x18d150[_0xafbe56(0xda)];_0x5c11f7++){const _0x24a2fa=_0x18d150[_0x5c11f7],_0x2d0b60=_0x5c11f7+0x1,_0x40abeb=_0x24a2fa['tableName'];try{console[_0xafbe56(0xd1)]('['+_0x2d0b60+'/'+_0x4e77b3+_0xafbe56(0xbd)+_0x40abeb+_0xafbe56(0xc7)+_0x24a2fa[_0xafbe56(0xcf)]+')');if(_0x4ded63)_0x4ded63(_0x2d0b60,_0x4e77b3,_0x40abeb);const _0x56c3ed=await fetchDatasetDoc({'appCode':_0x13ee0d,'cookie':_0x9e46f0,'datasetCode':_0x24a2fa[_0xafbe56(0xce)],'datasetId':_0x24a2fa['id'],'enableAI':![],'extraParams':_0x5d465e}),_0x14a898=a0_0x338e03[_0xafbe56(0xd2)](_0xc536aa,_0x40abeb+'.md');writeFileSync(_0x14a898,_0x56c3ed,{'encoding':_0xafbe56(0xcc)}),console[_0xafbe56(0xd1)](_0xafbe56(0xd5)+_0x40abeb+_0xafbe56(0xbe)),logger['success'](_0xafbe56(0xd3),_0xafbe56(0xc2)+_0x40abeb,undefined,{'datasetCode':_0x24a2fa[_0xafbe56(0xce)],'datasetName':_0x24a2fa[_0xafbe56(0xcf)],'filePath':_0x14a898,'progress':_0x2d0b60+'/'+_0x4e77b3}),_0x4fda91[_0xafbe56(0xc1)]({'datasetCode':_0x24a2fa[_0xafbe56(0xce)],'datasetName':_0x24a2fa[_0xafbe56(0xcf)],'filePath':_0x14a898,'success':!![]});if(_0x2d0b60<_0x4e77b3)await delay(0x1388);}catch(_0x5ba987){const _0x23b4f1=_0x5ba987 instanceof Error?_0x5ba987[_0xafbe56(0xc3)]:String(_0x5ba987);console[_0xafbe56(0xd1)]('✗\x20Failed:\x20'+_0x40abeb+'.md\x20-\x20'+_0x23b4f1),logger[_0xafbe56(0xbb)]('api-doc','生成文档失败:\x20'+_0x24a2fa['datasetCode'],{'datasetCode':_0x24a2fa[_0xafbe56(0xce)],'datasetName':_0x24a2fa[_0xafbe56(0xcf)],'error':_0x23b4f1,'progress':_0x2d0b60+'/'+_0x4e77b3}),_0x4fda91[_0xafbe56(0xc1)]({'datasetCode':_0x24a2fa['datasetCode'],'datasetName':_0x24a2fa[_0xafbe56(0xcf)],'filePath':'','success':![],'error':_0x23b4f1}),_0x2d0b60<_0x4e77b3&&(console['log']('Waiting\x203\x20seconds...\x0a'),await delay(0xbb8));}}return _0x4fda91;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x311078,_0x3f44dc){const _0x409e13=a1_0x1901,_0x5d9e99=_0x311078();while(!![]){try{const _0x2f42a8=parseInt(_0x409e13(0x117))/0x1*(parseInt(_0x409e13(0x10e))/0x2)+-parseInt(_0x409e13(0x105))/0x3+parseInt(_0x409e13(0x107))/0x4+-parseInt(_0x409e13(0x10d))/0x5+-parseInt(_0x409e13(0x106))/0x6*(parseInt(_0x409e13(0x113))/0x7)+parseInt(_0x409e13(0x108))/0x8*(-parseInt(_0x409e13(0x110))/0x9)+-parseInt(_0x409e13(0x114))/0xa*(-parseInt(_0x409e13(0x10c))/0xb);if(_0x2f42a8===_0x3f44dc)break;else _0x5d9e99['push'](_0x5d9e99['shift']());}catch(_0x59c684){_0x5d9e99['push'](_0x5d9e99['shift']());}}}(a1_0x211d,0xd09a7));import{getApiDomain}from'../constant/domain.js';import{logger}from'../utils/logger.js';import{getEnv}from'../constant/env.js';function a1_0x211d(){const _0x4bc16f=['replace','Fetch\x20datasets','671TyDaVi','7855915oaFyxS','3073566HDzNEp','fetch-model-list','99JkZWqS','&otype=array','trim','777441GUHdAp','268440lgwFmS','map','configArray','1rWLQRN','/api/node-toolbox/dataset/model-list?appcode=','3171717yiGEjR','42xRmDLq','4920056CBNhzg','104712oFwxcV','name'];a1_0x211d=function(){return _0x4bc16f;};return a1_0x211d();}import{platformFetch}from'../core/api-client.js';function a1_0x1901(_0x4a5959,_0xc1de0a){_0x4a5959=_0x4a5959-0x105;const _0x211d75=a1_0x211d();let _0x190161=_0x211d75[_0x4a5959];return _0x190161;}function cleanNewlines(_0x18e957){const _0x563187=a1_0x1901;return _0x18e957[_0x563187(0x10a)](/[\r\n]+/g,'\x20')[_0x563187(0x112)]();}function cleanDatasetName(_0x367e68){const _0x425259=a1_0x1901;if(!_0x367e68[_0x425259(0x109)])return _0x367e68;return{..._0x367e68,'name':cleanNewlines(_0x367e68['name'])};}export async function fetchModelList(_0xd61558,_0x423c12){const _0x3bc97d=a1_0x1901,_0x32ece4=getEnv(),_0x30cce2=getApiDomain()+_0x3bc97d(0x118)+_0xd61558+_0x3bc97d(0x111);logger['info'](_0x3bc97d(0x10f),'正在从服务器拉取模型列表...\x20(环境:\x20'+_0x32ece4+')',{'apiUrl':_0x30cce2});const _0x5f55b8=await platformFetch(_0x30cce2,{'cookie':_0x423c12,'label':_0x3bc97d(0x10b)}),_0x3652bc=(_0x5f55b8[_0x3bc97d(0x116)]??[])[_0x3bc97d(0x115)](cleanDatasetName);return{'configArray':_0x3652bc,'count':_0x3652bc['length']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x549bfa,_0x336d1e){const _0x29cdc3=a2_0xf456,_0x401cb4=_0x549bfa();while(!![]){try{const _0x2f2181=-parseInt(_0x29cdc3(0x1eb))/0x1+-parseInt(_0x29cdc3(0x200))/0x2+-parseInt(_0x29cdc3(0x1ee))/0x3+-parseInt(_0x29cdc3(0x203))/0x4+parseInt(_0x29cdc3(0x1fb))/0x5+-parseInt(_0x29cdc3(0x1e8))/0x6*(-parseInt(_0x29cdc3(0x1ea))/0x7)+parseInt(_0x29cdc3(0x1f6))/0x8*(parseInt(_0x29cdc3(0x1e9))/0x9);if(_0x2f2181===_0x336d1e)break;else _0x401cb4['push'](_0x401cb4['shift']());}catch(_0x255ffd){_0x401cb4['push'](_0x401cb4['shift']());}}}(a2_0x4a48,0x95bb4));function a2_0x4a48(){const _0x314bae=['API\x20文件生成成功!','Please\x20configure\x20app\x20code\x20first\x20via\x20`','test','.ts','8BnzrQF','api.ts.tpl','\x22\x20}','resolve','-client','721365IPMUgm','{\x20apiConfigName:\x20\x22','alias','toUpperCase','name','843334YtsElg','\x20config\x20set\x20app\x20<value>`','format','2869020aFITUM','{\x20apiConfigName:\x20','LOVRABET','typescript','api','join','client.ts.tpl','utf8','forEach','init-api','replaceApiContent','24FropFw','20006082YKIpLw','1104145NXpdYD','1024506BRGXQq','success','push','664149qdYTlY','datasetCode','dirname','key'];a2_0x4a48=function(){return _0x314bae;};return a2_0x4a48();}function a2_0xf456(_0x15b58f,_0x15708c){_0x15b58f=_0x15b58f-0x1e1;const _0x4a488c=a2_0x4a48();let _0xf4567c=_0x4a488c[_0x15b58f];return _0xf4567c;}import a2_0x22fffe from'prettier';import{mkdirSync,writeFileSync,readFileSync}from'node:fs';import a2_0x317c08 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(_0x13fcff,_0x16adbf,_0xc9db7a,_0x234c18,_0x2004ee,_0x5a91a1,_0x113a76){const _0x331ef7=a2_0xf456;if(!_0xc9db7a)throw new Error(_0x331ef7(0x1f3)+CLI_BIN_NAME+_0x331ef7(0x201));const _0x379587=_0x234c18&&!_0x113a76,_0x2b8604=_0x113a76||_0xc9db7a,_0x5c6b8a=_0x379587?'CONFIG_NAMES.DEFAULT':'\x22'+_0x2b8604+'\x22',_0x5b9870=!isProduction(_0x2004ee);let _0x36d1d4;if(_0x379587)_0x5b9870?_0x36d1d4=_0x331ef7(0x204)+_0x5c6b8a+',\x20env:\x20\x22'+_0x2004ee+_0x331ef7(0x1f8):_0x36d1d4='';else{const _0x49d098=_0x5b9870?',\x20env:\x20\x22'+_0x2004ee+'\x22':'';_0x36d1d4=_0x331ef7(0x1fc)+_0x2b8604+'\x22'+_0x49d098+'\x20}';}const _0x5de0fc=_0x16adbf?_0x16adbf+'-api':_0x331ef7(0x1e1),_0x5c5429=_0x16adbf?_0x16adbf+_0x331ef7(0x1fa):'client',_0x4bfcc4=_0x16adbf&&!/^app-[a-f0-9]+$/i[_0x331ef7(0x1f4)](_0x16adbf)?_0x16adbf['replace'](/-/g,'_')[_0x331ef7(0x1fe)]():_0x331ef7(0x205),_0x471a51=[];_0x13fcff[_0x331ef7(0x1e5)](_0x4baf1c=>{const _0x4e1300=_0x331ef7;_0x471a51[_0x4e1300(0x1ed)]({'datasetCode':_0x4baf1c[_0x4e1300(0x1ef)],'tableName':_0x4baf1c['tableName'],'name':_0x4baf1c[_0x4e1300(0x1ff)]||'','alias':_0x4baf1c[_0x4e1300(0x1fd)]||_0x4baf1c[_0x4e1300(0x1f1)]});});const _0x5d9281=fileURLToPath(import.meta.url),_0x339c26=a2_0x317c08[_0x331ef7(0x1f9)](a2_0x317c08[_0x331ef7(0x1f0)](_0x5d9281),'../..'),_0x3ccc5f=a2_0x317c08[_0x331ef7(0x1e2)](_0x339c26,'templates/generate-api'),_0xc7b36a=a2_0x317c08['join'](_0x3ccc5f,_0x331ef7(0x1f7)),_0x1680d7=a2_0x317c08[_0x331ef7(0x1e2)](_0x3ccc5f,_0x331ef7(0x1e3)),_0x436345=_0x5a91a1;mkdirSync(_0x436345,{'recursive':!![]});const _0x598b00=_0x471a51[0x0]?.[_0x331ef7(0x1fd)],_0x4d868d=readFileSync(_0xc7b36a,_0x331ef7(0x1e4)),_0x542770=TemplateReplacer[_0x331ef7(0x1e7)](_0x4d868d,_0xc9db7a,_0x471a51,_0x598b00,_0x5de0fc,_0x5c6b8a,undefined,_0x4bfcc4),_0x1b0da9=await a2_0x22fffe['format'](_0x542770,{'parser':'typescript'}),_0xda904a=a2_0x317c08['join'](_0x436345,_0x5de0fc+_0x331ef7(0x1f5));writeFileSync(_0xda904a,_0x1b0da9,{'encoding':_0x331ef7(0x1e4)});const _0x2104c5=readFileSync(_0x1680d7,_0x331ef7(0x1e4)),_0x425975=TemplateReplacer[_0x331ef7(0x1e7)](_0x2104c5,_0xc9db7a,_0x471a51,_0x598b00,_0x5de0fc,_0x5c6b8a,_0x36d1d4,_0x4bfcc4),_0x1efbef=await a2_0x22fffe[_0x331ef7(0x202)](_0x425975,{'parser':_0x331ef7(0x206)}),_0xdd708c=a2_0x317c08[_0x331ef7(0x1e2)](_0x436345,_0x5c5429+_0x331ef7(0x1f5));writeFileSync(_0xdd708c,_0x1efbef,{'encoding':'utf8'});const _0x1d9700=_0x471a51['length'];return logger[_0x331ef7(0x1ec)](_0x331ef7(0x1e6),_0x331ef7(0x1f2),undefined,{'apiFile':_0xda904a,'clientFile':_0xdd708c,'modelCount':_0x1d9700,'configName':_0x5c6b8a}),{'modelCount':_0x1d9700,'apiFilePath':_0xda904a,'clientFilePath':_0xdd708c,'configName':_0x5c6b8a};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe3c20b,_0x461321){const _0x33fec3=a3_0x394d,_0x34f89e=_0xe3c20b();while(!![]){try{const _0x318562=parseInt(_0x33fec3(0x1b0))/0x1+-parseInt(_0x33fec3(0x1a8))/0x2+-parseInt(_0x33fec3(0x1a4))/0x3*(-parseInt(_0x33fec3(0x1b2))/0x4)+parseInt(_0x33fec3(0x1a7))/0x5*(parseInt(_0x33fec3(0x1af))/0x6)+-parseInt(_0x33fec3(0x1a5))/0x7*(-parseInt(_0x33fec3(0x1a9))/0x8)+parseInt(_0x33fec3(0x1ad))/0x9*(-parseInt(_0x33fec3(0x1aa))/0xa)+-parseInt(_0x33fec3(0x1ae))/0xb;if(_0x318562===_0x461321)break;else _0x34f89e['push'](_0x34f89e['shift']());}catch(_0xa916c5){_0x34f89e['push'](_0x34f89e['shift']());}}}(a3_0x38e6,0xddddd));import{getIsSessionValid}from'../auth/is-session-valid.js';function a3_0x394d(_0x7a231f,_0x5a5079){_0x7a231f=_0x7a231f-0x1a4;const _0x38e61f=a3_0x38e6();let _0x394d41=_0x38e61f[_0x7a231f];return _0x394d41;}import{authServer}from'../auth/auth-server.js';import{confirm}from'@inquirer/prompts';import a3_0x12dee5 from'ora';export async function runAuthServer(){const _0x38cb61=a3_0x394d,_0x21093c=await getIsSessionValid();if(_0x21093c){console[_0x38cb61(0x1b1)]('√\x20Valid\x20session\x20detected,\x20no\x20login\x20required.');return;}const _0x103fcd=await confirm({'message':_0x38cb61(0x1a6),'default':!![]});if(!_0x103fcd)return;const _0xb0ef30=a3_0x12dee5(_0x38cb61(0x1ab))['start'](),_0x3e6d9b=await authServer({'silent':!![]});_0xb0ef30[_0x38cb61(0x1ac)](),_0x3e6d9b?console[_0x38cb61(0x1b1)]('*\x20Login\x20successful!'):console[_0x38cb61(0x1b1)]('!\x20Login\x20failed.');}function a3_0x38e6(){const _0x225eab=['30reNXlO','903749gCvUOg','log','172JybLTb','93099ADCMVW','887943zUjuPS','No\x20valid\x20session.\x20Login\x20now?','331345dETocU','222258oTIcLH','96GunKFR','2359730Wwtlcp','Logging\x20in...\x20Please\x20complete\x20login\x20in\x20your\x20browser.','stop','63DFMRjB','15619956zMpsXs'];a3_0x38e6=function(){return _0x225eab;};return a3_0x38e6();}
|
package/lib/auth/auth-server.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a4_0x178fb4=a4_0x4958;(function(_0x3a5a2f,_0x5318fa){const _0x5e57ef=a4_0x4958,_0x2f010f=_0x3a5a2f();while(!![]){try{const _0x9ce8c3=-parseInt(_0x5e57ef(0x14a))/0x1*(-parseInt(_0x5e57ef(0x132))/0x2)+-parseInt(_0x5e57ef(0x11d))/0x3+parseInt(_0x5e57ef(0x12c))/0x4+parseInt(_0x5e57ef(0x135))/0x5*(-parseInt(_0x5e57ef(0x137))/0x6)+parseInt(_0x5e57ef(0x12e))/0x7+-parseInt(_0x5e57ef(0x120))/0x8*(-parseInt(_0x5e57ef(0x11c))/0x9)+-parseInt(_0x5e57ef(0x12a))/0xa;if(_0x9ce8c3===_0x5318fa)break;else _0x2f010f['push'](_0x2f010f['shift']());}catch(_0x51d90b){_0x2f010f['push'](_0x2f010f['shift']());}}}(a4_0x36b9,0x39bad));import{writeFileSync}from'node:fs';import a4_0x1341c9 from'node:https';import{getUserDomain}from'../constant/domain.js';import{exec}from'node:child_process';import{getIsSessionValid}from'../auth/is-session-valid.js';function a4_0x36b9(){const _0xa3e7b2=['188724AZcyWD','catch','https://g.yuntooai.com/cert/lovrabet-dev.json','utf-8','153gcPPLA','862710IhLEJX','end','🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:','185176JFFBeZ','https://dev.lovrabet.com:','\x20seconds.','🔐\x20Starting\x20login\x20service...','platform','log','Login\x20Successful','error','isAuth','📍\x20Login\x20URL:','2028940znYfWU','💡\x20If\x20the\x20browser\x20does\x20not\x20open\x20automatically,\x20copy\x20the\x20login\x20URL\x20above\x20into\x20your\x20browser.','1104012EtHcEU','/sign-in?redirect=','1292760eIzUKl','cmd\x20/c\x20start\x20\x22\x22\x20\x22','xdg-open\x20\x22','Unable\x20to\x20close\x20automatically.\x20Please\x20close\x20this\x20tab\x20or\x20window\x20manually.','2ymyehU','silent','win32','58515lAHdfR','open\x20\x22','162lnFZDm','cookie','127.0.0.1','</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>','listen','session','json','</title></head>\x0a<body>\x0a\x20\x20<div>','darwin','⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically','port','✅\x20Browser\x20opened.\x20Please\x20complete\x20login\x20in\x20the\x20browser.','headers','Login\x20successful.\x20Please\x20return\x20to\x20the\x20CLI\x20to\x20continue.\x20This\x20window\x20will\x20close\x20in\x20','writeHead','close','Auth\x20server\x20error:','address','createServer'];a4_0x36b9=function(){return _0xa3e7b2;};return a4_0x36b9();}import{cookieFile}from'../auth/constant.js';function a4_0x4958(_0x1e05ea,_0x49e6e2){_0x1e05ea=_0x1e05ea-0x11b;const _0x36b938=a4_0x36b9();let _0x4958b7=_0x36b938[_0x1e05ea];return _0x4958b7;}export async function authServer(_0x190a34){const _0x47b943=a4_0x4958,_0x201d7d=_0x190a34?.[_0x47b943(0x133)]||![];if(await getIsSessionValid())return!![];const _0x45925a=await(await fetch(_0x47b943(0x14c)))['json']();return new Promise(async(_0x2ddd75,_0x5bf065)=>{const _0x292220=_0x47b943;let _0x5915da=0x0;const _0x44e5d2=a4_0x1341c9[_0x292220(0x149)](_0x45925a,async(_0x4ce288,_0x428ae9)=>{const _0x22cac1=_0x292220,_0x292731=getUserDomain(),_0x30f4ea=_0x4ce288[_0x22cac1(0x143)][_0x22cac1(0x138)]||'',_0x513bc6=await fetch(_0x292731+'/api/auth/get-session',{'headers':{'cookie':_0x30f4ea}})['then'](_0x8ccd94=>_0x8ccd94[_0x22cac1(0x13d)]()),_0x160c1a=_0x513bc6&&_0x513bc6[_0x22cac1(0x13c)]&&_0x513bc6['user'];if(_0x160c1a){writeFileSync(cookieFile,_0x30f4ea,_0x22cac1(0x11b)),_0x2ddd75(!![]);const _0x5e21b0=_0x22cac1(0x126),_0x1e7a80=_0x22cac1(0x144)+'<span\x20id=\x22t\x22>5</span>'+_0x22cac1(0x122),_0x3e9b4b=_0x22cac1(0x131),_0x4d1e40='<!doctype\x20html>\x0a<html>\x0a<head><meta\x20charset=\x22utf-8\x22><title>'+_0x5e21b0+_0x22cac1(0x13e)+_0x1e7a80+'</div>\x0a\x20\x20<div\x20id=\x22manualMsg\x22\x20style=\x22display:none;margin-top:10px;color:#d00;\x22>'+_0x3e9b4b+_0x22cac1(0x13a);_0x428ae9['writeHead'](0xc8,{'Content-Type':'text/html;\x20charset=utf-8'}),_0x428ae9[_0x22cac1(0x11e)](_0x4d1e40),_0x44e5d2[_0x22cac1(0x146)]();}else{const _0x836046=''+encodeURIComponent(_0x22cac1(0x121)+_0x5915da);_0x428ae9[_0x22cac1(0x145)](0x12e,{'location':_0x292731+_0x22cac1(0x12d)+_0x836046}),_0x428ae9[_0x22cac1(0x11e)]();return;}});_0x44e5d2[_0x292220(0x13b)](0x0,_0x292220(0x139),()=>{const _0x23ff2b=_0x292220,_0xb383fe=_0x44e5d2[_0x23ff2b(0x148)]();_0x5915da=typeof _0xb383fe==='object'&&_0xb383fe?_0xb383fe[_0x23ff2b(0x141)]:Number(_0xb383fe);const _0x53e4e1='https://dev.lovrabet.com:'+_0x5915da;!_0x201d7d&&(console['log'](_0x23ff2b(0x123)),console['log'](_0x23ff2b(0x129),_0x53e4e1),console[_0x23ff2b(0x125)]('🌐\x20Attempting\x20to\x20open\x20browser\x20automatically...'),console['log'](''),console[_0x23ff2b(0x125)](_0x23ff2b(0x12b)),console[_0x23ff2b(0x125)]('')),openInBrowser(_0x53e4e1)['then'](_0x28cf1d=>{const _0xf90a21=_0x23ff2b;!_0x201d7d&&(_0x28cf1d?console[_0xf90a21(0x125)](_0xf90a21(0x142)):(console[_0xf90a21(0x125)](_0xf90a21(0x140)),console[_0xf90a21(0x125)]('🔗\x20Please\x20copy\x20the\x20login\x20URL\x20into\x20your\x20browser:',_0x53e4e1)),console[_0xf90a21(0x125)](''));})[_0x23ff2b(0x14b)](()=>{const _0x1e9a81=_0x23ff2b;!_0x201d7d&&(console['log']('⚠️\x20\x20Failed\x20to\x20open\x20browser\x20automatically'),console[_0x1e9a81(0x125)](_0x1e9a81(0x11f),_0x53e4e1),console[_0x1e9a81(0x125)](''));});}),_0x44e5d2['on'](_0x292220(0x127),_0x8c9dd7=>{const _0x1eb9f4=_0x292220;!_0x201d7d&&console['error'](_0x1eb9f4(0x147),_0x8c9dd7),_0x5bf065(_0x8c9dd7);});});}function openInBrowser(_0x36d10a){return new Promise(_0x1edc88=>{const _0x28e3c5=a4_0x4958,_0x1d5422=process[_0x28e3c5(0x124)];let _0x2251c1;if(_0x1d5422===_0x28e3c5(0x134))_0x2251c1=_0x28e3c5(0x12f)+_0x36d10a+'\x22';else _0x1d5422===_0x28e3c5(0x13f)?_0x2251c1=_0x28e3c5(0x136)+_0x36d10a+'\x22':_0x2251c1=_0x28e3c5(0x130)+_0x36d10a+'\x22';exec(_0x2251c1,_0x274eca=>{_0x274eca?_0x1edc88(![]):_0x1edc88(!![]);});});}if(import.meta.main){const isAuth=await authServer();console[a4_0x178fb4(0x125)](a4_0x178fb4(0x128),isAuth);}
|
package/lib/auth/constant.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a5_0x30b6ea=a5_0xce65;function a5_0x8eb0(){const _0x29448a=['74697BvhHhX','655202mOJXKq','1ilMfHk','8925570XKXQnj','5BkYsWn','.lovrabet','2781891RqhXnl','11xrqWBy','3142644nWyHhk','958664NCoQRl','232bNVIrn','2570466jaZXGN'];a5_0x8eb0=function(){return _0x29448a;};return a5_0x8eb0();}(function(_0x2dd25a,_0x26aa79){const _0x54270e=a5_0xce65,_0x2a9128=_0x2dd25a();while(!![]){try{const _0x2984b1=parseInt(_0x54270e(0xdd))/0x1*(parseInt(_0x54270e(0xdc))/0x2)+parseInt(_0x54270e(0xe3))/0x3+parseInt(_0x54270e(0xe4))/0x4+parseInt(_0x54270e(0xdf))/0x5*(parseInt(_0x54270e(0xda))/0x6)+-parseInt(_0x54270e(0xdb))/0x7*(parseInt(_0x54270e(0xe5))/0x8)+-parseInt(_0x54270e(0xe1))/0x9+parseInt(_0x54270e(0xde))/0xa*(-parseInt(_0x54270e(0xe2))/0xb);if(_0x2984b1===_0x26aa79)break;else _0x2a9128['push'](_0x2a9128['shift']());}catch(_0x406509){_0x2a9128['push'](_0x2a9128['shift']());}}}(a5_0x8eb0,0x81e8f));import{mkdirSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a5_0xce65(_0x4ffc52,_0x17adaf){_0x4ffc52=_0x4ffc52-0xda;const _0x8eb0da=a5_0x8eb0();let _0xce6557=_0x8eb0da[_0x4ffc52];return _0xce6557;}export const configDir=join(homedir(),a5_0x30b6ea(0xe0));export const cookieFile=join(configDir,'cookie');mkdirSync(configDir,{'recursive':!![]});
|
package/lib/auth/get-cookie.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4d9f28,_0x387e16){var _0x57eadc=a6_0x5518,_0x3bbaf7=_0x4d9f28();while(!![]){try{var _0x3a6305=-parseInt(_0x57eadc(0x15a))/0x1*(parseInt(_0x57eadc(0x158))/0x2)+-parseInt(_0x57eadc(0x15e))/0x3+-parseInt(_0x57eadc(0x157))/0x4+parseInt(_0x57eadc(0x15b))/0x5+-parseInt(_0x57eadc(0x15f))/0x6*(parseInt(_0x57eadc(0x156))/0x7)+-parseInt(_0x57eadc(0x15c))/0x8*(-parseInt(_0x57eadc(0x160))/0x9)+parseInt(_0x57eadc(0x15d))/0xa;if(_0x3a6305===_0x387e16)break;else _0x3bbaf7['push'](_0x3bbaf7['shift']());}catch(_0xc21302){_0x3bbaf7['push'](_0x3bbaf7['shift']());}}}(a6_0x36e9,0x996a7));function a6_0x5518(_0x141d56,_0x418d7a){_0x141d56=_0x141d56-0x156;var _0x36e940=a6_0x36e9();var _0x551818=_0x36e940[_0x141d56];return _0x551818;}import{readFileSync}from'node:fs';function a6_0x36e9(){var _0x386cc3=['1sCZejh','5354995eRhlrK','8raobGD','5832270FxegMW','33405YdgLAf','18IfNijj','4831101KEmzEI','2622830OTOjEk','633200DZsYzW','538238VIjGjU','utf-8'];a6_0x36e9=function(){return _0x386cc3;};return a6_0x36e9();}import{cookieFile}from'../auth/constant.js';export function getCookie(){var _0x11f1b2=a6_0x5518;try{return readFileSync(cookieFile,_0x11f1b2(0x159));}catch{}return'';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a7_0xa702(_0x217324,_0x507976){_0x217324=_0x217324-0x179;const _0x3538b4=a7_0x3538();let _0xa702e6=_0x3538b4[_0x217324];return _0xa702e6;}(function(_0x44aec2,_0x533d3e){const _0x516a38=a7_0xa702,_0xe506bd=_0x44aec2();while(!![]){try{const _0x34f996=parseInt(_0x516a38(0x183))/0x1+-parseInt(_0x516a38(0x17d))/0x2+-parseInt(_0x516a38(0x179))/0x3+-parseInt(_0x516a38(0x184))/0x4*(-parseInt(_0x516a38(0x17e))/0x5)+-parseInt(_0x516a38(0x17a))/0x6*(parseInt(_0x516a38(0x17f))/0x7)+parseInt(_0x516a38(0x185))/0x8+parseInt(_0x516a38(0x180))/0x9;if(_0x34f996===_0x533d3e)break;else _0xe506bd['push'](_0xe506bd['shift']());}catch(_0x7041a9){_0xe506bd['push'](_0xe506bd['shift']());}}}(a7_0x3538,0xc05ed));import{existsSync,readFileSync}from'node:fs';import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getSessionUserInfo(){const _0x42ed62=a7_0xa702;try{if(!existsSync(cookieFile))return null;const _0x489fea=readFileSync(cookieFile,_0x42ed62(0x17c)),_0x3c6246=await fetch(getUserDomain()+_0x42ed62(0x181),{'headers':{'cookie':_0x489fea}});if(!_0x3c6246['ok'])return null;const _0x7f5c98=await _0x3c6246[_0x42ed62(0x182)]();if(!_0x7f5c98[_0x42ed62(0x17b)]||!_0x7f5c98['user'])return null;return _0x7f5c98;}catch{return null;}}function a7_0x3538(){const _0x441e4a=['1228120pZnGMD','5tBXVjN','413rShdAf','2663532vyKkPz','/api/auth/get-session','json','1176850AVHteP','1475044Gcvdhz','1268664zISeBp','1674570yOdlqt','4062lylmKE','session','utf-8'];a7_0x3538=function(){return _0x441e4a;};return a7_0x3538();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a8_0x5712(){const _0x4e135a=['474957kvWkWF','session','4298478xbDOAS','then','3343410qEBBPP','805236unBsir','json','/api/auth/get-session','709396qrAXgB','5062350seIjgv','utf-8','user','3697821acmVmq'];a8_0x5712=function(){return _0x4e135a;};return a8_0x5712();}(function(_0x3492d5,_0x576b2e){const _0x4fca19=a8_0x93f1,_0x3e53bb=_0x3492d5();while(!![]){try{const _0x153214=-parseInt(_0x4fca19(0x123))/0x1+parseInt(_0x4fca19(0x11e))/0x2+-parseInt(_0x4fca19(0x122))/0x3+-parseInt(_0x4fca19(0x128))/0x4+parseInt(_0x4fca19(0x11f))/0x5+parseInt(_0x4fca19(0x125))/0x6+parseInt(_0x4fca19(0x127))/0x7;if(_0x153214===_0x576b2e)break;else _0x3e53bb['push'](_0x3e53bb['shift']());}catch(_0x512b69){_0x3e53bb['push'](_0x3e53bb['shift']());}}}(a8_0x5712,0x9f432));import{existsSync,readFileSync}from'node:fs';function a8_0x93f1(_0x2b504b,_0x4a932b){_0x2b504b=_0x2b504b-0x11e;const _0x571254=a8_0x5712();let _0x93f14e=_0x571254[_0x2b504b];return _0x93f14e;}import{getUserDomain}from'../constant/domain.js';import{cookieFile}from'../auth/constant.js';export async function getIsSessionValid(){const _0x2af349=a8_0x93f1;try{if(!existsSync(cookieFile))return![];const _0x57cdfd=readFileSync(cookieFile,_0x2af349(0x120)),_0x70ad9e=await fetch(getUserDomain()+_0x2af349(0x12a),{'headers':{'cookie':_0x57cdfd}})[_0x2af349(0x126)](_0x472e0d=>_0x472e0d[_0x2af349(0x129)]());return _0x70ad9e&&_0x70ad9e[_0x2af349(0x124)]&&_0x70ad9e[_0x2af349(0x121)];}catch{}return![];}
|
package/lib/auth/logout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a9_0x1990(){var _0xc82b1c=['857688aaiKXk','88PsMWyK','4jlZuHz','17432MgLzyX','2370858CszGPW','676aCYHHS','361949IhTlqH','18UHjDsi','4659IekyeJ','3346680qAiJhS','991030iLROBi','!\x20Not\x20logged\x20in','3773jKaVjU'];a9_0x1990=function(){return _0xc82b1c;};return a9_0x1990();}(function(_0x2397a1,_0x4fe054){var _0x4645e7=a9_0x3ec5,_0x1fbccc=_0x2397a1();while(!![]){try{var _0x4c89c3=-parseInt(_0x4645e7(0x103))/0x1*(parseInt(_0x4645e7(0xff))/0x2)+parseInt(_0x4645e7(0x105))/0x3*(-parseInt(_0x4645e7(0x102))/0x4)+parseInt(_0x4645e7(0x106))/0x5+-parseInt(_0x4645e7(0x101))/0x6+parseInt(_0x4645e7(0xfc))/0x7*(parseInt(_0x4645e7(0x100))/0x8)+-parseInt(_0x4645e7(0x104))/0x9*(parseInt(_0x4645e7(0x107))/0xa)+-parseInt(_0x4645e7(0xfe))/0xb*(-parseInt(_0x4645e7(0xfd))/0xc);if(_0x4c89c3===_0x4fe054)break;else _0x1fbccc['push'](_0x1fbccc['shift']());}catch(_0x53a369){_0x1fbccc['push'](_0x1fbccc['shift']());}}}(a9_0x1990,0xcc141));import{unlinkSync,existsSync}from'node:fs';function a9_0x3ec5(_0x16b09d,_0x313ffd){_0x16b09d=_0x16b09d-0xfc;var _0x19909f=a9_0x1990();var _0x3ec553=_0x19909f[_0x16b09d];return _0x3ec553;}import{cookieFile}from'../auth/constant.js';export function logout(){var _0x272e4d=a9_0x3ec5;existsSync(cookieFile)?(unlinkSync(cookieFile),console['log']('✓\x20Logged\x20out')):console['log'](_0x272e4d(0x108));}
|
package/lib/cli-flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a10_0x4a38a1=a10_0x4391;function a10_0x4391(_0x464611,_0x1af20c){_0x464611=_0x464611-0xfe;const _0x54dd3f=a10_0x54dd();let _0x439157=_0x54dd3f[_0x464611];return _0x439157;}(function(_0x5049ee,_0xc6f1bb){const _0x1982c6=a10_0x4391,_0x5f4fce=_0x5049ee();while(!![]){try{const _0x31743d=parseInt(_0x1982c6(0x105))/0x1+parseInt(_0x1982c6(0x102))/0x2+-parseInt(_0x1982c6(0x108))/0x3*(parseInt(_0x1982c6(0x100))/0x4)+-parseInt(_0x1982c6(0x107))/0x5*(parseInt(_0x1982c6(0xff))/0x6)+parseInt(_0x1982c6(0x103))/0x7*(-parseInt(_0x1982c6(0x106))/0x8)+parseInt(_0x1982c6(0xfe))/0x9+-parseInt(_0x1982c6(0x104))/0xa*(-parseInt(_0x1982c6(0x101))/0xb);if(_0x31743d===_0xc6f1bb)break;else _0x5f4fce['push'](_0x5f4fce['shift']());}catch(_0xfa09eb){_0x5f4fce['push'](_0x5f4fce['shift']());}}}(a10_0x54dd,0xc2ee2));function a10_0x54dd(){const _0x7f3420=['128228qDTAJv','2309087pFJkwz','1741028BHsVAJ','5310627WZlPDu','10nZgQPR','1220620TNStnB','8RYcYOt','3275NaAkVt','60lmtJej','boolean','10487376pvTdUm','11616fmEfJY'];a10_0x54dd=function(){return _0x7f3420;};return a10_0x54dd();}export const dynamicCliFlags={'enableBffSave':{'type':a10_0x4a38a1(0x109)}};
|
package/lib/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
2
|
+
const a11_0x35b473=a11_0x1041;(function(_0x1748bc,_0xffdc91){const _0x31e854=a11_0x1041,_0x10e710=_0x1748bc();while(!![]){try{const _0x1b5b40=-parseInt(_0x31e854(0x1ef))/0x1*(-parseInt(_0x31e854(0x1d2))/0x2)+-parseInt(_0x31e854(0x1db))/0x3*(parseInt(_0x31e854(0x1fb))/0x4)+-parseInt(_0x31e854(0x1ee))/0x5+parseInt(_0x31e854(0x1c9))/0x6+parseInt(_0x31e854(0x1cb))/0x7+-parseInt(_0x31e854(0x1ca))/0x8+-parseInt(_0x31e854(0x1f6))/0x9;if(_0x1b5b40===_0xffdc91)break;else _0x10e710['push'](_0x10e710['shift']());}catch(_0x2dc2f2){_0x10e710['push'](_0x10e710['shift']());}}}(a11_0x275a,0xf36f9));import a11_0x1cd803 from'meow';import{showHelp}from'./help.js';import{CliError,CliErrors}from'./errors.js';import{isKnownService,getServiceEntry,findDefinition,deprecatedAliases}from'./commands/registry.js';function a11_0x1041(_0x22b8e7,_0x53bdbe){_0x22b8e7=_0x22b8e7-0x1c9;const _0x275a11=a11_0x275a();let _0x1041a1=_0x275a11[_0x22b8e7];return _0x1041a1;}import{runCommand}from'./framework/runner.js';import{generateCommandHelp,generateServiceHelp,generateFullHelp}from'./framework/help.js';function a11_0x275a(){const _0x42d80d=['./constant/domain.js','cancelled','stderr','explicitAppName','./context.js','message','defaultCommand','global','apiDir','appCode','unknownCommand','string','2637190QpgAJc','794373jlOqmr','`\x20has\x20been\x20moved\x20to\x20`','apiDomain','command','Hint:\x20','appcode','hint','2400660GqMvvF','write','env','input','./constant/env.js','8USeYAE','2977398nPhiNc','3024392KwYcNz','11187456BlPDdA','`\x20in\x20v2.0.\x0a','userDomain','riskLevel','\x0aCancelled.\x0a','Error:\x20','\x20\x20Please\x20update\x20your\x20command\x20and\x20try\x20again.\x0a','2fmTkRC','now','help','ExitPromptError','verbose','Unexpected\x20error:','error','raw','unknown','1079211KQemOm','service','⚠\x20`','slice','wildcardDef','log','cookie'];a11_0x275a=function(){return _0x42d80d;};return a11_0x275a();}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_0x3094dc}from'./utils/is-non-interactive.js';import{registerOtelShutdownOnExit,exitWithOtelShutdown}from'./telemetry/register-otel-exit-shutdown.js';let dynamicCliFlags=null;try{dynamicCliFlags=(await import('./cli-flags.js'))['dynamicCliFlags'];}catch{}const helpText=generateFullHelp(),cliVersion=GIT_COMMIT!==a11_0x35b473(0x1da)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,cli=a11_0x1cd803(helpText,{'importMeta':import.meta,'version':cliVersion,'flags':{...buildMeowFlags(),...dynamicCliFlags||{}}});registerOtelShutdownOnExit(),await run();async function run(){const _0x332b29=a11_0x35b473;let _0x401784=cli['input'][0x0],_0x1c1ac6=cli[_0x332b29(0x1f9)][0x1];const _0x2d9e7f=cli['flags'];if(!_0x401784){await reportCliHelpTrace(_0x332b29(0x1e9)),showHelp();return;}const _0x19e125=deprecatedAliases[_0x401784];if(_0x19e125&&!isKnownService(_0x401784)){const _0x22322a=_0x1c1ac6?CLI_BIN_NAME+'\x20'+_0x401784+'\x20'+_0x1c1ac6:CLI_BIN_NAME+'\x20'+_0x401784,_0x503fe2=CLI_BIN_NAME+'\x20'+_0x19e125[_0x332b29(0x1dc)]+'\x20'+_0x19e125[_0x332b29(0x1f2)];console[_0x332b29(0x1d8)](_0x332b29(0x1dd)+_0x22322a+_0x332b29(0x1f0)+_0x503fe2+_0x332b29(0x1cc)+_0x332b29(0x1d1)),await exitWithOtelShutdown(0x1);}if(!isKnownService(_0x401784)){await reportCliHelpTrace('unknown_service',{'service':_0x401784}),showHelp();return;}const _0x3f5c40=getServiceEntry(_0x401784);if(_0x2d9e7f[_0x332b29(0x1f8)]&&typeof _0x2d9e7f[_0x332b29(0x1f8)]===_0x332b29(0x1ed)){const {initEnv:_0xa05051}=await import(_0x332b29(0x1fa));_0xa05051(_0x2d9e7f['env']);}const {buildConfigFromFlags:_0x3b30bf}=await import(_0x332b29(0x1e6)),_0x37e7c8=_0x3b30bf(_0x2d9e7f);if(!_0x2d9e7f[_0x332b29(0x1f8)]&&_0x37e7c8[_0x332b29(0x1f8)]){const {initEnv:_0x5e1caf}=await import('./constant/env.js');_0x5e1caf(_0x37e7c8[_0x332b29(0x1f8)]);}if(_0x37e7c8['raw']?.[_0x332b29(0x1f1)]||_0x37e7c8[_0x332b29(0x1d9)]?.[_0x332b29(0x1cd)]||_0x37e7c8[_0x332b29(0x1d9)]?.['runtimeDomain']){const {initDomains:_0xd4db3d}=await import(_0x332b29(0x1e2));_0xd4db3d({'apiDomain':_0x37e7c8[_0x332b29(0x1d9)][_0x332b29(0x1f1)]||undefined,'userDomain':_0x37e7c8['raw']['userDomain']||undefined,'runtimeDomain':_0x37e7c8[_0x332b29(0x1d9)]['runtimeDomain']||undefined});}if(!_0x1c1ac6){if(_0x3f5c40['defaultCommand'])_0x1c1ac6=_0x3f5c40[_0x332b29(0x1e8)];else{if(_0x3f5c40['wildcardDef']){if(_0x2d9e7f[_0x332b29(0x1d4)]){console['log'](generateCommandHelp(_0x3f5c40[_0x332b29(0x1df)]));return;}await dispatchDeclarative(_0x3f5c40['wildcardDef'],_0x401784,'',[],_0x2d9e7f,_0x37e7c8);return;}else{printServiceHelp(_0x401784);return;}}}if(_0x2d9e7f[_0x332b29(0x1d4)]&&!findDefinition(_0x401784,_0x1c1ac6)){printServiceHelp(_0x401784);return;}{let _0x13bb19=findDefinition(_0x401784,_0x1c1ac6),_0x498e81=cli[_0x332b29(0x1f9)][_0x332b29(0x1de)](0x2);if(!_0x13bb19){if(_0x3f5c40[_0x332b29(0x1df)]){if(_0x2d9e7f['help']){console[_0x332b29(0x1e0)](generateCommandHelp(_0x3f5c40[_0x332b29(0x1df)]));return;}_0x13bb19=_0x3f5c40[_0x332b29(0x1df)],_0x498e81=[_0x1c1ac6,...cli[_0x332b29(0x1f9)][_0x332b29(0x1de)](0x2)];}else{printServiceHelp(_0x401784),await handleErrorAsync(CliErrors[_0x332b29(0x1ec)](_0x401784+'\x20'+_0x1c1ac6));return;}}if(_0x2d9e7f['help']){console[_0x332b29(0x1e0)](generateCommandHelp(_0x13bb19));return;}await dispatchDeclarative(_0x13bb19,_0x401784,_0x1c1ac6,_0x498e81,_0x2d9e7f,_0x37e7c8);}}async function dispatchDeclarative(_0x123e11,_0x4dc0d6,_0x5a15dd,_0x3aa75b,_0x132a68,_0x578a2c){const _0x35c5a8=a11_0x35b473,_0x53e28d=Date[_0x35c5a8(0x1d3)]();let _0x22b5cd;try{await runCommand(_0x123e11,{'rawFlags':_0x132a68,'args':_0x3aa75b,'resolveAppCode':()=>_0x578a2c[_0x35c5a8(0x1eb)]||_0x132a68[_0x35c5a8(0x1f4)]||process.env.RABETBASE_APPCODE||process.env.LOVRABET_APPCODE||undefined,'resolveCookie':()=>_0x578a2c[_0x35c5a8(0x1e1)]||getCookie(),'resolveApiDomain':()=>getApiDomain(),'isNonInteractive':a11_0x3094dc(_0x132a68),'defaultFormat':_0x578a2c['format'],'defaultPageSize':_0x578a2c['pageSize'],'defaultVerbose':_0x578a2c[_0x35c5a8(0x1d6)],'apiDir':_0x578a2c[_0x35c5a8(0x1ea)],'riskLevel':_0x578a2c[_0x35c5a8(0x1ce)],'selectedAppName':_0x578a2c[_0x35c5a8(0x1e5)]});}catch(_0x5bf610){_0x22b5cd=_0x5bf610;}await reportCommandTrace({'service':_0x4dc0d6,'command':_0x5a15dd,'flags':_0x132a68,'durationMs':Date['now']()-_0x53e28d,'error':_0x22b5cd});if(_0x22b5cd)await handleErrorAsync(_0x22b5cd);}function printServiceHelp(_0x44fa38){console['log'](generateServiceHelp(_0x44fa38));}async function handleErrorAsync(_0x16c0ab){const _0xadcd37=a11_0x35b473;if(_0x16c0ab instanceof Error&&_0x16c0ab['name']===_0xadcd37(0x1d5))return process[_0xadcd37(0x1e4)][_0xadcd37(0x1f7)](_0xadcd37(0x1cf)),await exitWithOtelShutdown(0x0);if(_0x16c0ab instanceof CliError){if(_0x16c0ab['code']===_0xadcd37(0x1e3))return process['stderr'][_0xadcd37(0x1f7)]('\x0a'+_0x16c0ab[_0xadcd37(0x1e7)]+'\x0a'),await exitWithOtelShutdown(0x0);console['error'](_0xadcd37(0x1d0)+_0x16c0ab['message']);if(_0x16c0ab[_0xadcd37(0x1f5)])console[_0xadcd37(0x1d8)](_0xadcd37(0x1f3)+_0x16c0ab[_0xadcd37(0x1f5)]);return await exitWithOtelShutdown(_0x16c0ab['exitCode']);}return console['error'](_0xadcd37(0x1d7),_0x16c0ab),await exitWithOtelShutdown(0x1);}
|
package/lib/commands/api/doc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a12_0x2953d8=a12_0x15b1;(function(_0x1882f0,_0x4bb414){const _0x2038a4=a12_0x15b1,_0x37292f=_0x1882f0();while(!![]){try{const _0x285ce7=-parseInt(_0x2038a4(0x1e3))/0x1*(-parseInt(_0x2038a4(0x1c3))/0x2)+-parseInt(_0x2038a4(0x1ee))/0x3*(-parseInt(_0x2038a4(0x1f6))/0x4)+parseInt(_0x2038a4(0x1df))/0x5*(-parseInt(_0x2038a4(0x1c0))/0x6)+parseInt(_0x2038a4(0x1c8))/0x7*(-parseInt(_0x2038a4(0x1d9))/0x8)+-parseInt(_0x2038a4(0x1fc))/0x9*(-parseInt(_0x2038a4(0x1d7))/0xa)+-parseInt(_0x2038a4(0x1ce))/0xb*(parseInt(_0x2038a4(0x1f4))/0xc)+parseInt(_0x2038a4(0x1c4))/0xd;if(_0x285ce7===_0x4bb414)break;else _0x37292f['push'](_0x37292f['shift']());}catch(_0x10ee09){_0x37292f['push'](_0x37292f['shift']());}}}(a12_0x2aa4,0xef010));import a12_0x4b9309 from'ora';function a12_0x15b1(_0x2a5a62,_0x173104){_0x2a5a62=_0x2a5a62-0x1bb;const _0x2aa468=a12_0x2aa4();let _0x15b141=_0x2aa468[_0x2a5a62];return _0x15b141;}import{fetchModelList}from'../../api/fetch-model-list.js';import{generateDatasetDocs}from'../../api/api-doc.js';function a12_0x2aa4(){const _0x35a594=['40hipnDX','\x20succeeded,\x20','some','\x1b[0m','7jRRftx','isArray','join','api','\x20dataset(s)\x1b[0m','stdout','appCode','object','\x20doc(s)\x20in\x20','\x20doc(s)\x20failed','datasetcode','1956PSwoQN','succeed','filter','!\x20No\x20datasets\x20found.','fail','datasetName','6105828teEHCh','✓\x20Generated\x20','9748hxhGTd','Invalid\x20--params:\x20','Extra\x20params\x20passed\x20to\x20the\x20doc\x20generator\x20(JSON\x20object)','Doc\x20generation:\x20','params','parse','3113307KObWxf','\x1b[90m*\x20Filtered\x20','\x0d\x20\x20[','doc','...','cookie','string','datasetCode','855426tFJcwc','start','--datasetcode\x20cannot\x20be\x20empty.','124130PhznTz','26179712nMOiTt','padStart','str','message','7BOSfqA','Output\x20directory\x20(default:\x20./docs)','must\x20be\x20a\x20JSON\x20object','Fetching\x20dataset\x20list\x20for\x20','Provide\x20a\x20valid\x20JSON\x20object,\x20e.g.\x20--params\x20\x27{\x22key\x22:\x22value\x22}\x27','has','22zHEGvd','Fetched\x20','\x20dataset(s)','\x20file(s)','map','length','output','./docs','\x20\x20•\x20','20qlKVsd','):\x20','12735064cQXLTs','\x20of\x20','validation','split','success','write'];a12_0x2aa4=function(){return _0x35a594;};return a12_0x2aa4();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export const apiDoc={'service':a12_0x2953d8(0x1e6),'command':a12_0x2953d8(0x1bb),'description':'Generate\x20markdown\x20documentation\x20for\x20all\x20datasets','risk':a12_0x2953d8(0x1de),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a12_0x2953d8(0x1d4),'type':a12_0x2953d8(0x1be),'description':a12_0x2953d8(0x1c9)},{'name':a12_0x2953d8(0x1ed),'type':a12_0x2953d8(0x1be),'description':'Filter:\x20comma-separated\x20dataset\x20codes\x20to\x20generate\x20docs\x20for'},{'name':a12_0x2953d8(0x1fa),'type':'string','description':a12_0x2953d8(0x1f8)}],async 'execute'(_0x4ad663){const _0x5f540d=a12_0x2953d8,_0x445018=_0x4ad663['str']('output')||_0x5f540d(0x1d5),_0x38480a=_0x4ad663[_0x5f540d(0x1c6)](_0x5f540d(0x1ed)),_0xeb8e1e=_0x4ad663[_0x5f540d(0x1c6)](_0x5f540d(0x1fa));let _0x27bd64;if(_0xeb8e1e)try{_0x27bd64=JSON[_0x5f540d(0x1fb)](_0xeb8e1e);if(typeof _0x27bd64!==_0x5f540d(0x1ea)||_0x27bd64===null||Array[_0x5f540d(0x1e4)](_0x27bd64))throw new Error(_0x5f540d(0x1ca));}catch(_0xc0374c){throw CliErrors[_0x5f540d(0x1db)](_0x5f540d(0x1f7)+(_0xc0374c instanceof Error?_0xc0374c[_0x5f540d(0x1c7)]:String(_0xc0374c)),_0x5f540d(0x1cc));}let _0x407fbb;if(_0x38480a){const _0x4033a7=_0x38480a[_0x5f540d(0x1dc)](',')[_0x5f540d(0x1d2)](_0xa4d62c=>_0xa4d62c['trim']())[_0x5f540d(0x1f0)](_0x59f52e=>_0x59f52e[_0x5f540d(0x1d3)]>0x0);if(_0x4033a7[_0x5f540d(0x1d3)]===0x0)throw CliErrors['validation'](_0x5f540d(0x1c2));_0x407fbb=new Set(_0x4033a7),writeCliSideChannelLine('\x1b[90m*\x20Generating\x20docs\x20for:\x20'+_0x4033a7[_0x5f540d(0x1e5)](',\x20')+'\x1b[0m');}const _0x296c90=a12_0x4b9309(_0x5f540d(0x1cb)+_0x4ad663['appCode']+_0x5f540d(0x1bc))[_0x5f540d(0x1c1)]();let _0x4d4d94;try{({configArray:_0x4d4d94}=await fetchModelList(_0x4ad663[_0x5f540d(0x1e9)],_0x4ad663['cookie']),_0x296c90[_0x5f540d(0x1ef)](_0x5f540d(0x1cf)+_0x4d4d94[_0x5f540d(0x1d3)]+_0x5f540d(0x1d0)));}catch(_0x556379){_0x296c90[_0x5f540d(0x1f2)]('Failed\x20to\x20fetch\x20datasets');throw _0x556379;}if(_0x4d4d94[_0x5f540d(0x1d3)]===0x0)return writeCliSideChannelLine(_0x5f540d(0x1f1)),{'ok':!![]};let _0x9f1d70=_0x4d4d94;if(_0x407fbb){_0x9f1d70=_0x4d4d94[_0x5f540d(0x1f0)](_0x1f1cf2=>_0x407fbb[_0x5f540d(0x1cd)](_0x1f1cf2[_0x5f540d(0x1bf)]));const _0x5c6f59=[..._0x407fbb][_0x5f540d(0x1f0)](_0x385923=>!_0x4d4d94[_0x5f540d(0x1e1)](_0x2b483a=>_0x2b483a[_0x5f540d(0x1bf)]===_0x385923));_0x5c6f59[_0x5f540d(0x1d3)]>0x0&&writeCliSideChannelLine('\x1b[33m!\x20The\x20following\x20dataset\x20codes\x20do\x20not\x20exist:\x20'+_0x5c6f59['join'](',\x20')+_0x5f540d(0x1e2));if(_0x9f1d70[_0x5f540d(0x1d3)]===0x0)throw CliErrors['validation']('None\x20of\x20the\x20specified\x20dataset\x20codes\x20exist:\x20'+[..._0x407fbb][_0x5f540d(0x1e5)](',\x20'));writeCliSideChannelLine(_0x5f540d(0x1fd)+_0x9f1d70[_0x5f540d(0x1d3)]+_0x5f540d(0x1da)+_0x4d4d94['length']+_0x5f540d(0x1e7));}let _0x5160f5=0x0;const _0x15578e=await generateDatasetDocs(_0x9f1d70,_0x4ad663[_0x5f540d(0x1e9)],_0x4ad663[_0x5f540d(0x1bd)],_0x445018,(_0x2e76bc,_0x27036b,_0x372c78)=>{const _0x3f7172=_0x5f540d;_0x5160f5=_0x2e76bc,process[_0x3f7172(0x1e8)][_0x3f7172(0x1de)](_0x3f7172(0x1fe)+String(_0x2e76bc)[_0x3f7172(0x1c5)](String(_0x27036b)[_0x3f7172(0x1d3)])+'/'+_0x27036b+']\x20'+_0x372c78+'.md');},_0x27bd64);if(_0x5160f5>0x0)process[_0x5f540d(0x1e8)]['write']('\x0a');const _0x137bff=_0x15578e[_0x5f540d(0x1f0)](_0x3bc769=>_0x3bc769[_0x5f540d(0x1dd)])[_0x5f540d(0x1d3)],_0xe81308=_0x15578e[_0x5f540d(0x1f0)](_0x3e8745=>!_0x3e8745[_0x5f540d(0x1dd)])[_0x5f540d(0x1d3)];writeCliSideChannelLine(''),writeCliSideChannelLine(_0x5f540d(0x1f5)+_0x137bff+_0x5f540d(0x1eb)+_0x445018);if(_0xe81308>0x0){writeCliSideChannelLine('!\x20'+_0xe81308+_0x5f540d(0x1ec));for(const _0x3b754b of _0x15578e[_0x5f540d(0x1f0)](_0xd4b8af=>!_0xd4b8af[_0x5f540d(0x1dd)])){writeCliSideChannelLine(_0x5f540d(0x1d6)+_0x3b754b[_0x5f540d(0x1f3)]+'\x20('+_0x3b754b[_0x5f540d(0x1bf)]+_0x5f540d(0x1d8)+_0x3b754b['error']);}}return{'ok':_0xe81308===0x0,'message':_0xe81308>0x0?_0x5f540d(0x1f9)+_0x137bff+_0x5f540d(0x1e0)+_0xe81308+'\x20failed':'Doc\x20generation\x20complete:\x20'+_0x137bff+_0x5f540d(0x1d1)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2a0013,_0x2f30e3){const _0x1ba6d4=a13_0x5542,_0x41378d=_0x2a0013();while(!![]){try{const _0x546cb0=-parseInt(_0x1ba6d4(0x188))/0x1*(-parseInt(_0x1ba6d4(0x186))/0x2)+parseInt(_0x1ba6d4(0x18f))/0x3*(-parseInt(_0x1ba6d4(0x185))/0x4)+-parseInt(_0x1ba6d4(0x18e))/0x5+parseInt(_0x1ba6d4(0x18b))/0x6*(-parseInt(_0x1ba6d4(0x187))/0x7)+parseInt(_0x1ba6d4(0x18c))/0x8*(-parseInt(_0x1ba6d4(0x184))/0x9)+parseInt(_0x1ba6d4(0x189))/0xa*(parseInt(_0x1ba6d4(0x18a))/0xb)+parseInt(_0x1ba6d4(0x18d))/0xc;if(_0x546cb0===_0x2f30e3)break;else _0x41378d['push'](_0x41378d['shift']());}catch(_0x1d86b1){_0x41378d['push'](_0x41378d['shift']());}}}(a13_0x53be,0x920f4));import{apiList}from'../../commands/api/list.js';function a13_0x53be(){const _0x4753e6=['6399526eRcihv','1115786XkQKqX','10WXQskw','2912855GmseDl','6rpCvYP','3511192meppXi','30577584RaSpTu','5730505EewxlL','3ENUyhX','9baqHoF','3324980mKIkVI','2ZEuadN'];a13_0x53be=function(){return _0x4753e6;};return a13_0x53be();}function a13_0x5542(_0x11a139,_0x355d4c){_0x11a139=_0x11a139-0x184;const _0x53be8e=a13_0x53be();let _0x5542fa=_0x53be8e[_0x11a139];return _0x5542fa;}import{apiPull}from'../../commands/api/pull.js';import{apiDoc}from'../../commands/api/doc.js';export const apiDefinitions=[apiList,apiPull,apiDoc];
|
package/lib/commands/api/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a14_0x21abbc=a14_0x3547;function a14_0x1bb6(){const _0x2b80ea=['802665WFkEVt','5783634CyQqWn','6795600XamasO','39DIoPqz','58736uRHzWu','pretty','appcode','cookie','global','26628AwFNIR','1377IVLruX','5285868wynBEj','boolean','api','appCode','2710chLKfv','push','7VRpgNN','name','list','str','env','isDefault','production','94413jLhHMr','read','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)'];a14_0x1bb6=function(){return _0x2b80ea;};return a14_0x1bb6();}function a14_0x3547(_0x5472a2,_0x508a2a){_0x5472a2=_0x5472a2-0x1e2;const _0x1bb64c=a14_0x1bb6();let _0x35470e=_0x1bb64c[_0x5472a2];return _0x35470e;}(function(_0x38e307,_0x33cff3){const _0x1a362e=a14_0x3547,_0x3aa2fc=_0x38e307();while(!![]){try{const _0x44bde2=parseInt(_0x1a362e(0x1ef))/0x1+parseInt(_0x1a362e(0x1f8))/0x2*(-parseInt(_0x1a362e(0x1f2))/0x3)+parseInt(_0x1a362e(0x1fa))/0x4+parseInt(_0x1a362e(0x1f1))/0x5+-parseInt(_0x1a362e(0x1f0))/0x6*(-parseInt(_0x1a362e(0x1e5))/0x7)+parseInt(_0x1a362e(0x1f3))/0x8*(-parseInt(_0x1a362e(0x1f9))/0x9)+parseInt(_0x1a362e(0x1e3))/0xa*(-parseInt(_0x1a362e(0x1ec))/0xb);if(_0x44bde2===_0x33cff3)break;else _0x3aa2fc['push'](_0x3aa2fc['shift']());}catch(_0x5806fa){_0x3aa2fc['push'](_0x3aa2fc['shift']());}}}(a14_0x1bb6,0xc95d6));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_0x21abbc(0x1fc),'command':a14_0x21abbc(0x1e7),'description':'List\x20all\x20datasets/models\x20for\x20the\x20configured\x20app(s)','risk':a14_0x21abbc(0x1ed),'requiresAppCode':!![],'defaultOutputFormat':a14_0x21abbc(0x1f4),'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':a14_0x21abbc(0x1f7),'type':a14_0x21abbc(0x1fb),'description':a14_0x21abbc(0x1ee),'default':![]}],async 'execute'(_0xbd0361){const _0x1a96f2=a14_0x21abbc,_0x5a7145=_0xbd0361[_0x1a96f2(0x1e8)](_0x1a96f2(0x1f5)),_0x3660a7=resolveTargetApps(_0xbd0361,_0x5a7145);if(_0x3660a7){const _0x558942=[];for(const _0x32aa17 of _0x3660a7){const _0x2482a=_0x32aa17[_0x1a96f2(0x1f6)]||_0xbd0361[_0x1a96f2(0x1f6)],_0x16822f=_0x32aa17[_0x1a96f2(0x1e9)]||_0x1a96f2(0x1eb);initEnv(_0x16822f);const {configArray:_0x1b3cae}=await fetchModelList(_0x32aa17[_0x1a96f2(0x1f5)],_0x2482a);_0x558942[_0x1a96f2(0x1e4)](..._0x1b3cae['map'](_0x53327d=>({..._0x53327d,'_appName':_0x32aa17[_0x1a96f2(0x1e6)],'_appCode':_0x32aa17[_0x1a96f2(0x1f5)],'_env':_0x16822f,'_isDefault':_0x32aa17[_0x1a96f2(0x1ea)]})));}return{'ok':!![],'data':_0x558942};}const {configArray:_0x49869f}=await fetchModelList(_0xbd0361[_0x1a96f2(0x1e2)],_0xbd0361[_0x1a96f2(0x1f6)]);return{'ok':!![],'data':_0x49869f};}};
|
package/lib/commands/api/pull.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a15_0x4767b3=a15_0xf770;(function(_0x5f39dc,_0x2ae183){const _0x548831=a15_0xf770,_0x13f66e=_0x5f39dc();while(!![]){try{const _0x1ddee3=parseInt(_0x548831(0x20b))/0x1+-parseInt(_0x548831(0x1d9))/0x2+parseInt(_0x548831(0x1f5))/0x3*(-parseInt(_0x548831(0x1f2))/0x4)+-parseInt(_0x548831(0x209))/0x5+parseInt(_0x548831(0x1e6))/0x6*(-parseInt(_0x548831(0x201))/0x7)+-parseInt(_0x548831(0x1e4))/0x8*(parseInt(_0x548831(0x1ee))/0x9)+-parseInt(_0x548831(0x1d8))/0xa*(-parseInt(_0x548831(0x1e0))/0xb);if(_0x1ddee3===_0x2ae183)break;else _0x13f66e['push'](_0x13f66e['shift']());}catch(_0x34868d){_0x13f66e['push'](_0x13f66e['shift']());}}}(a15_0x1034,0x3e7f5));function a15_0x1034(){const _0x491a2e=['write','\x20dataset(s),\x20generated\x20','succeed','\x20dataset(s)\x20→\x20','isDefault','18HrKgnR','Pulling\x20','\x20succeeded,\x20','boolean','5132UZeAzw','name','\x20model(s)','741uFvYRv','cookie','api','Pull\x20datasets\x20and\x20generate\x20API\x20config\x20files\x20(','-client','Pulling\x20API\x20config\x20for\x20','split','join','Pulled\x20','appcode','global','Output\x20directory\x20(default:\x20','7mBHxPY','appCode','.ts','message','env','\x20failed','start','str','517160xmjvFq','production','269889xXEeUW','...','\x20\x20•\x20','includes','10jlbnGx','372062gvucIo','\x20app(s)\x20failed','fail','pull','clientFilePath','-api','client','11516483tYCiFo','Failed:\x20','length','Resolve\x20apps\x20from\x20merged\x20global+project\x20config\x20(default:\x20project\x20apps\x20only)','357680cgehJE','apiDir','2190414mGdPDx','Done:\x20','modelCount'];a15_0x1034=function(){return _0x491a2e;};return a15_0x1034();}import a15_0x26581e from'ora';function a15_0xf770(_0x34ae0a,_0x5e7341){_0x34ae0a=_0x34ae0a-0x1d6;const _0x1034cd=a15_0x1034();let _0xf77079=_0x1034cd[_0x34ae0a];return _0xf77079;}import a15_0x175b06 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';export const apiPull={'service':a15_0x4767b3(0x1f7),'command':a15_0x4767b3(0x1dc),'description':a15_0x4767b3(0x1f8)+DEFAULT_API_DIR+'/)','risk':a15_0x4767b3(0x1e9),'requiresAppCode':!![],'hasFormat':![],'flags':[{...APPCODE_FLAG_OPTIONAL,'hidden':!![]},{'name':'output','type':'string','description':a15_0x4767b3(0x200)+DEFAULT_API_DIR+'/)'},{'name':a15_0x4767b3(0x1ff),'type':a15_0x4767b3(0x1f1),'description':a15_0x4767b3(0x1e3),'default':![]}],async 'execute'(_0x5ace8d){const _0xb3023c=a15_0x4767b3,_0x2a1b26=_0x5ace8d[_0xb3023c(0x208)](_0xb3023c(0x1fe)),_0x518fc3=_0x5ace8d[_0xb3023c(0x208)]('output')||undefined,_0x53fb02=resolveTargetApps(_0x5ace8d,_0x2a1b26);if(_0x53fb02){let _0x505a8f=0x0,_0x1d1b71=0x0;for(const _0x1f1d55 of _0x53fb02){const _0x57d8f1=_0x1f1d55['cookie']||_0x5ace8d[_0xb3023c(0x1f6)],_0x38ace1=_0x1f1d55[_0xb3023c(0x205)]||_0xb3023c(0x20a);initEnv(_0x38ace1);const _0x9586b=_0x1f1d55[_0xb3023c(0x1e5)]||_0x518fc3||_0x5ace8d[_0xb3023c(0x1e5)]||DEFAULT_API_DIR,_0x3d89a3=_0x1f1d55[_0xb3023c(0x1ed)]?'':_0x1f1d55[_0xb3023c(0x1f3)]||_0x1f1d55[_0xb3023c(0x1fe)],_0x198c0a=a15_0x26581e(_0xb3023c(0x1ef)+_0x1f1d55[_0xb3023c(0x1f3)]+'\x20('+_0x1f1d55[_0xb3023c(0x1fe)]+')...')[_0xb3023c(0x207)]();try{const {configArray:_0x30158f}=await fetchModelList(_0x1f1d55[_0xb3023c(0x1fe)],_0x57d8f1),_0x5c0117=await generateApiFile(_0x30158f,_0x3d89a3,_0x1f1d55[_0xb3023c(0x1fe)],_0x1f1d55[_0xb3023c(0x1ed)],_0x38ace1,_0x9586b,_0x1f1d55['name']);_0x198c0a[_0xb3023c(0x1eb)](_0x1f1d55['name']+':\x20'+_0x30158f[_0xb3023c(0x1e2)]+_0xb3023c(0x1ec)+_0x5c0117[_0xb3023c(0x1e8)]+_0xb3023c(0x1f4)),writeCliSideChannelLine(_0xb3023c(0x1d6)+_0x5c0117['apiFilePath']),writeCliSideChannelLine(_0xb3023c(0x1d6)+_0x5c0117[_0xb3023c(0x1dd)]),_0x505a8f++;}catch(_0x29fddb){_0x198c0a['fail'](_0x1f1d55['name']+':\x20'+(_0x29fddb instanceof Error?_0x29fddb[_0xb3023c(0x204)]:String(_0x29fddb))),_0x1d1b71++;}}writeCliSideChannelLine('');if(_0x1d1b71>0x0)writeCliSideChannelLine('!\x20'+_0x1d1b71+_0xb3023c(0x1da));return{'ok':_0x1d1b71===0x0,'message':_0xb3023c(0x1e7)+_0x505a8f+_0xb3023c(0x1f0)+_0x1d1b71+_0xb3023c(0x206)};}const _0x10458c=_0x2a1b26&&_0x2a1b26[_0xb3023c(0x1d7)]('-')?_0x2a1b26[_0xb3023c(0x1fb)]('-')['slice'](0x1)[_0xb3023c(0x1fc)]('-'):'',_0x118ef6=_0x518fc3||_0x5ace8d[_0xb3023c(0x1e5)]||DEFAULT_API_DIR,_0x36f8f6=!_0x2a1b26,_0x4f5348=a15_0x26581e(_0xb3023c(0x1fa)+_0x5ace8d[_0xb3023c(0x202)]+_0xb3023c(0x20c))[_0xb3023c(0x207)]();try{const {configArray:_0x4df95a}=await fetchModelList(_0x5ace8d['appCode'],_0x5ace8d['cookie']),_0x21c98f=await generateApiFile(_0x4df95a,_0x10458c,_0x5ace8d[_0xb3023c(0x202)],_0x36f8f6,getEnv(),_0x118ef6);_0x4f5348[_0xb3023c(0x1eb)](_0xb3023c(0x1fd)+_0x4df95a[_0xb3023c(0x1e2)]+_0xb3023c(0x1ea)+_0x21c98f[_0xb3023c(0x1e8)]+_0xb3023c(0x1f4));const _0x5958e0=_0x10458c?_0x10458c+_0xb3023c(0x1de):_0xb3023c(0x1f7),_0x23e330=_0x10458c?_0x10458c+_0xb3023c(0x1f9):_0xb3023c(0x1df);return writeCliSideChannelLine('\x20\x20•\x20'+a15_0x175b06[_0xb3023c(0x1fc)](_0x118ef6,_0x5958e0+_0xb3023c(0x203))),writeCliSideChannelLine(_0xb3023c(0x1d6)+a15_0x175b06[_0xb3023c(0x1fc)](_0x118ef6,_0x23e330+'.ts')),{'ok':!![],'data':{'datasetCount':_0x4df95a['length'],'modelCount':_0x21c98f[_0xb3023c(0x1e8)]}};}catch(_0x5e3046){_0x4f5348[_0xb3023c(0x1db)](_0xb3023c(0x1e1)+(_0x5e3046 instanceof Error?_0x5e3046[_0xb3023c(0x204)]:String(_0x5e3046)));throw _0x5e3046;}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x28bbe0,_0x2301e3){const _0x27820a=a16_0x344f,_0x31035f=_0x28bbe0();while(!![]){try{const _0x28d2e8=parseInt(_0x27820a(0x19d))/0x1+parseInt(_0x27820a(0x194))/0x2+-parseInt(_0x27820a(0x196))/0x3*(-parseInt(_0x27820a(0x198))/0x4)+parseInt(_0x27820a(0x1a3))/0x5+parseInt(_0x27820a(0x1a8))/0x6+parseInt(_0x27820a(0x19a))/0x7*(-parseInt(_0x27820a(0x1a0))/0x8)+parseInt(_0x27820a(0x19f))/0x9*(-parseInt(_0x27820a(0x1a1))/0xa);if(_0x28d2e8===_0x2301e3)break;else _0x31035f['push'](_0x31035f['shift']());}catch(_0x4708e9){_0x31035f['push'](_0x31035f['shift']());}}}(a16_0x5df2,0x2c152));import{getMultiAppConfigs}from'../../utils/config.js';import{CliErrors}from'../../errors.js';export function resolveTargetApps(_0xf68a20,_0x5f2845){const _0x233c2f=a16_0x344f;if(_0x5f2845)return null;const _0x193b80=_0xf68a20[_0x233c2f(0x1a9)](_0x233c2f(0x195))?_0x233c2f(0x19b):_0x233c2f(0x19e);let _0x25d233=getMultiAppConfigs(_0x193b80);if(!_0x25d233||_0x25d233[_0x233c2f(0x199)]===0x0)return null;if(_0xf68a20[_0x233c2f(0x19c)]){const _0x37ef91=_0x25d233[_0x233c2f(0x1a2)](_0x273404=>_0x273404[_0x233c2f(0x1a4)]===_0xf68a20[_0x233c2f(0x19c)]);if(_0x37ef91[_0x233c2f(0x199)]===0x0){const _0xc61139=_0x25d233['map'](_0x406327=>_0x406327[_0x233c2f(0x1a4)])[_0x233c2f(0x197)](',\x20');throw CliErrors[_0x233c2f(0x1a5)](_0x233c2f(0x1a7)+_0xf68a20[_0x233c2f(0x19c)]+_0x233c2f(0x1a6)+_0xc61139);}_0x25d233=_0x37ef91;}return _0x25d233;}function a16_0x344f(_0x4aef76,_0x784cf){_0x4aef76=_0x4aef76-0x194;const _0x5df2ee=a16_0x5df2();let _0x344f65=_0x5df2ee[_0x4aef76];return _0x344f65;}function a16_0x5df2(){const _0x3a7396=['length','7eUoLeT','merged','selectedAppName','55766gDoUui','project','7067052pVFZho','2231384IBSZvk','10fCMkKK','filter','1335480kIqfAU','name','validation','\x22\x20not\x20found\x20in\x20config.\x20Available:\x20','App\x20\x22','1728624AYKjJs','bool','683770YYuGEr','global','6rrkqwm','join','583724vgvkHY'];a16_0x5df2=function(){return _0x3a7396;};return a16_0x5df2();}
|
package/lib/commands/app/add.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a17_0x130718=a17_0x1ab8;(function(_0x4e4bf1,_0x1cfa1a){const _0x2e55f7=a17_0x1ab8,_0x877ac7=_0x4e4bf1();while(!![]){try{const _0x5aaab1=-parseInt(_0x2e55f7(0x181))/0x1*(-parseInt(_0x2e55f7(0x18f))/0x2)+-parseInt(_0x2e55f7(0x1a7))/0x3*(-parseInt(_0x2e55f7(0x19a))/0x4)+parseInt(_0x2e55f7(0x1b2))/0x5*(parseInt(_0x2e55f7(0x1ae))/0x6)+-parseInt(_0x2e55f7(0x18e))/0x7+parseInt(_0x2e55f7(0x182))/0x8+-parseInt(_0x2e55f7(0x1b1))/0x9*(parseInt(_0x2e55f7(0x1a6))/0xa)+parseInt(_0x2e55f7(0x1a8))/0xb;if(_0x5aaab1===_0x1cfa1a)break;else _0x877ac7['push'](_0x877ac7['shift']());}catch(_0x31a129){_0x877ac7['push'](_0x877ac7['shift']());}}}(a17_0x4dd3,0x5afa5));function a17_0x4dd3(){const _0x4540a1=['15tbARsq','5955939SdqFRr','Access\x20key','App\x20profile\x20name','Usage:\x20','global','args','3198xqllrC','apiDir','riskLevel','5746203ZrJXGU','1315nUNMUq','defaultFormat','89YbNcFr','279328eNNfTB','write','Risk\x20level','apps','flagMissing','\x20app\x20add\x20<name>\x20--appcode\x20<code>','App\x20code','Add\x20or\x20update\x20an\x20app\x20in\x20config','entries','env','Target\x20environment','Added','2965347PatkCg','14332rhjNyb','\x20app\x20\x22','format','Default\x20output\x20format\x20for\x20this\x20app\x20(profile)','add','string','validation','locale','defaultApp','cookie','appcode','64332uuicxY','pageSize','keys','length','boolean','Missing\x20app\x20name.','\x22\x20(appcode:\x20','Auth\x20cookie','trim','bool','number','str','10DixPHF'];a17_0x4dd3=function(){return _0x4540a1;};return a17_0x4dd3();}import{CliErrors}from'../../errors.js';function a17_0x1ab8(_0x15abba,_0x2b4106){_0x15abba=_0x15abba-0x181;const _0x4dd360=a17_0x4dd3();let _0x1ab8a8=_0x4dd360[_0x15abba];return _0x1ab8a8;}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_0x130718(0x1af),'cookie':a17_0x130718(0x198),'accessKey':'accessKey','defaultFormat':a17_0x130718(0x191),'pageSize':a17_0x130718(0x19b),'riskLevel':a17_0x130718(0x1b0),'locale':a17_0x130718(0x196)};async function validateArgs(_0x570030){const _0x4ad23b=a17_0x130718,_0x4135ea=_0x570030[_0x4ad23b(0x1ad)][0x0]?.[_0x4ad23b(0x1a2)]();if(!_0x4135ea)throw CliErrors['validation'](_0x4ad23b(0x19f),_0x4ad23b(0x1ab)+CLI_BIN_NAME+_0x4ad23b(0x187));}async function execute(_0x59a740){const _0x24c8cf=a17_0x130718,_0x4f3214=_0x59a740[_0x24c8cf(0x1ad)][0x0]?.['trim']();if(!_0x4f3214)throw CliErrors[_0x24c8cf(0x195)](_0x24c8cf(0x19f),_0x24c8cf(0x1ab)+CLI_BIN_NAME+_0x24c8cf(0x187));const _0x1377ad=_0x59a740[_0x24c8cf(0x1a5)](_0x24c8cf(0x199));if(!_0x1377ad)throw CliErrors[_0x24c8cf(0x186)](_0x24c8cf(0x199),'Usage:\x20'+CLI_BIN_NAME+_0x24c8cf(0x187));const _0x452261={'global':_0x59a740[_0x24c8cf(0x1a3)](_0x24c8cf(0x1ac))},_0x36831c=readConfig(_0x452261);if(!_0x36831c[_0x24c8cf(0x185)])_0x36831c[_0x24c8cf(0x185)]={};let _0x3d6283;Object[_0x24c8cf(0x19c)](_0x36831c[_0x24c8cf(0x185)])[_0x24c8cf(0x19d)]===0x0&&(_0x3d6283=migrateLegacySingleApp(_0x36831c,_0x4f3214));const _0x544ef0={'appcode':_0x1377ad};for(const [_0x5cb570,_0x178fcd]of Object[_0x24c8cf(0x18a)](PROFILE_FLAG_KEYS)){const _0x27c78b=_0x59a740[_0x24c8cf(0x1a5)](_0x5cb570);_0x27c78b&&(_0x544ef0[_0x178fcd]=_0x178fcd===_0x24c8cf(0x19b)?Number(_0x27c78b):_0x27c78b);}const _0x576046=_0x36831c[_0x24c8cf(0x185)],_0xa2320c=!!_0x576046[_0x4f3214];_0x576046[_0x4f3214]=_0x544ef0;if(!_0x36831c[_0x24c8cf(0x197)])_0x36831c[_0x24c8cf(0x197)]=_0x4f3214;writeConfig(_0x36831c,_0x452261);const _0x4c20e1=!_0xa2320c&&_0x36831c[_0x24c8cf(0x197)]===_0x4f3214?'\x20Set\x20as\x20default\x20app.':'',_0x214dbd=(_0xa2320c?'Updated':_0x24c8cf(0x18d))+_0x24c8cf(0x190)+_0x4f3214+_0x24c8cf(0x1a0)+_0x1377ad+')'+scopeLabel(_0x452261)+'.'+_0x4c20e1;return{'ok':!![],'message':_0x3d6283?_0x3d6283+'\x0a'+_0x214dbd:_0x214dbd};}export const appAddDefinition={'service':'app','command':a17_0x130718(0x193),'description':a17_0x130718(0x189),'risk':a17_0x130718(0x183),'requiresAuth':![],'requiresAppCode':![],'args':[{'name':'name','description':a17_0x130718(0x1aa),'required':!![]}],'flags':[{'name':a17_0x130718(0x199),'type':a17_0x130718(0x194),'description':a17_0x130718(0x188),'required':!![]},{'name':a17_0x130718(0x1ac),'type':a17_0x130718(0x19e),'description':'Use\x20global\x20config\x20scope','default':![]},{'name':a17_0x130718(0x18b),'type':a17_0x130718(0x194),'description':a17_0x130718(0x18c)},{'name':'apiDir','type':a17_0x130718(0x194),'description':'API\x20directory\x20path'},{'name':a17_0x130718(0x198),'type':a17_0x130718(0x194),'description':a17_0x130718(0x1a1),'hidden':!![]},{'name':'accessKey','type':'string','description':a17_0x130718(0x1a9),'hidden':!![]},{'name':a17_0x130718(0x1b3),'type':a17_0x130718(0x194),'description':a17_0x130718(0x192)},{'name':a17_0x130718(0x19b),'type':a17_0x130718(0x1a4),'description':'Default\x20page\x20size'},{'name':a17_0x130718(0x1b0),'type':a17_0x130718(0x194),'description':a17_0x130718(0x184)},{'name':a17_0x130718(0x196),'type':a17_0x130718(0x194),'description':'Locale'}],'validate':validateArgs,'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x12d427,_0x1ecb2b){const _0x4479b8=a18_0x3843,_0x479818=_0x12d427();while(!![]){try{const _0x13e310=parseInt(_0x4479b8(0x79))/0x1+parseInt(_0x4479b8(0x7b))/0x2*(-parseInt(_0x4479b8(0x7c))/0x3)+parseInt(_0x4479b8(0x81))/0x4*(-parseInt(_0x4479b8(0x7f))/0x5)+parseInt(_0x4479b8(0x7d))/0x6+-parseInt(_0x4479b8(0x80))/0x7+parseInt(_0x4479b8(0x7e))/0x8+-parseInt(_0x4479b8(0x78))/0x9*(parseInt(_0x4479b8(0x7a))/0xa);if(_0x13e310===_0x1ecb2b)break;else _0x479818['push'](_0x479818['shift']());}catch(_0x272bfd){_0x479818['push'](_0x479818['shift']());}}}(a18_0x4825,0x8d2e9));function a18_0x3843(_0x147446,_0x43da3c){_0x147446=_0x147446-0x78;const _0x4825fd=a18_0x4825();let _0x384377=_0x4825fd[_0x147446];return _0x384377;}function a18_0x4825(){const _0x1317f=['45xErGqq','1007035UVIBkX','1813630VGbIDY','202RzsiDT','12507MLLMMk','1819806prxwfh','8722904YjhrCe','431595LdJShm','2857505opPLIg','4mlAHGU'];a18_0x4825=function(){return _0x1317f;};return a18_0x4825();}import{appListDefinition}from'../../commands/app/list.js';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';export const appDefinitions=[appListDefinition,appRemoteDefinition,appUseDefinition,appAddDefinition,appRemoveDefinition];
|