@lovrabet/rabetbase-cli 2.0.2-beta.6 → 2.0.2-beta.7
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/lib/ai-setup/config.js +1 -1
- 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 -0
- 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/app.js +1 -1
- package/lib/commands/auth.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/build.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/flags.js +1 -1
- package/lib/commands/config.js +1 -1
- package/lib/commands/create.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/doctor.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/logout.js +1 -1
- package/lib/commands/logs.js +1 -1
- package/lib/commands/mcp.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/preview.js +1 -1
- package/lib/commands/project-upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run.js +1 -1
- package/lib/commands/skill.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/save.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/start.js +1 -1
- package/lib/config/config-help.js +1 -1
- package/lib/config/main.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/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/create-app/enhanced-guided-create.js +1 -1
- package/lib/create-app/format-elapsed.js +1 -1
- package/lib/create-app/main.js +1 -1
- package/lib/create-app/non-interactive.js +1 -1
- package/lib/create-app/task-finished.js +1 -1
- package/lib/create-app/task-loading.js +1 -1
- package/lib/create-app/task-running.js +1 -1
- package/lib/create-app/task-time.js +1 -1
- package/lib/create-app/use-copy-project-template.js +1 -1
- package/lib/create-app/use-format-code.js +1 -1
- package/lib/create-app/use-install-dependencies.js +1 -1
- package/lib/errors.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/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/init/main.js +1 -1
- package/lib/mcp/McpInstallUI.js +1 -1
- package/lib/mcp/claude.js +1 -1
- package/lib/mcp/cursor.js +1 -1
- package/lib/mcp/main.js +1 -1
- package/lib/mcp/mcp-install-non-interactive.js +1 -1
- package/lib/mcp/mcp-installer.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -0
- package/lib/telemetry/otel-logger-version.js +1 -0
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -0
- package/lib/ui/IDESelector.js +1 -1
- package/lib/ui/useIDESelection.js +1 -1
- package/lib/utils/ai_config.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/logger.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/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a32_0xd4c3e2=a32_0x3f19;(function(_0x57f4b7,_0x382a47){const _0x10d563=a32_0x3f19,_0x30aca0=_0x57f4b7();while(!![]){try{const _0x29a1b8=-parseInt(_0x10d563(0x1bd))/0x1*(-parseInt(_0x10d563(0x1ba))/0x2)+parseInt(_0x10d563(0x1c2))/0x3*(-parseInt(_0x10d563(0x1bf))/0x4)+parseInt(_0x10d563(0x1b5))/0x5*(-parseInt(_0x10d563(0x1c4))/0x6)+-parseInt(_0x10d563(0x1bc))/0x7+-parseInt(_0x10d563(0x1b6))/0x8*(parseInt(_0x10d563(0x1c0))/0x9)+parseInt(_0x10d563(0x1b4))/0xa*(parseInt(_0x10d563(0x1b7))/0xb)+parseInt(_0x10d563(0x1b8))/0xc;if(_0x29a1b8===_0x382a47)break;else _0x30aca0['push'](_0x30aca0['shift']());}catch(_0x105366){_0x30aca0['push'](_0x30aca0['shift']());}}}(a32_0x505e,0x5f4a1));export const CODE_FLAG={'name':a32_0xd4c3e2(0x1b9),'type':a32_0xd4c3e2(0x1b3),'required':!![],'description':a32_0xd4c3e2(0x1c1),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a32_0xd4c3e2(0x1b2)}};function a32_0x505e(){const _0x3cc6e0=['sqlcode','3018VXdNrr','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','string','249350WsnnSB','1360huJujQ','8UMsPCD','220sIMzBR','14043072HuhGOu','code','425234jVZPeu','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','3066791pjdmqI','1QdNoxS','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','8PHTHjx','2119329YCLzHk','Dataset\x20code\x20(32-char\x20hex\x20UUID)','1021287xqOfCA'];a32_0x505e=function(){return _0x3cc6e0;};return a32_0x505e();}export const CODE_FLAG_OPTIONAL={'name':a32_0xd4c3e2(0x1b9),'type':'string','required':![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a32_0xd4c3e2(0x1b2)}};function a32_0x3f19(_0x34c2e0,_0x32bf45){_0x34c2e0=_0x34c2e0-0x1b2;const _0x505e40=a32_0x505e();let _0x3f1926=_0x505e40[_0x34c2e0];return _0x3f1926;}export const SQLCODE_FLAG={'name':a32_0xd4c3e2(0x1c3),'type':a32_0xd4c3e2(0x1b3),'required':!![],'description':a32_0xd4c3e2(0x1be),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a32_0xd4c3e2(0x1bb)}};export const SQLCODE_FLAG_OPTIONAL={'name':a32_0xd4c3e2(0x1c3),'type':'string','required':![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};
|
package/lib/commands/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a33_0x599e01=a33_0x1654;function a33_0x3163(){const _0x16d65c=['3020760vKQxEW','1181452PgBQAq','3CTRDby','config','Manage\x20project\x20configuration','537557pyoTlk','4862176hVCsOD','539096xRUwQB','10721754tOEVOg','3891013QFZlbd','6UtCRhz'];a33_0x3163=function(){return _0x16d65c;};return a33_0x3163();}(function(_0x2759d5,_0x26bb2a){const _0x1522e2=a33_0x1654,_0x5d660f=_0x2759d5();while(!![]){try{const _0x49d26f=parseInt(_0x1522e2(0x10c))/0x1+parseInt(_0x1522e2(0x103))/0x2+-parseInt(_0x1522e2(0x109))/0x3*(-parseInt(_0x1522e2(0x108))/0x4)+-parseInt(_0x1522e2(0x107))/0x5+parseInt(_0x1522e2(0x106))/0x6*(-parseInt(_0x1522e2(0x105))/0x7)+-parseInt(_0x1522e2(0x102))/0x8+parseInt(_0x1522e2(0x104))/0x9;if(_0x49d26f===_0x26bb2a)break;else _0x5d660f['push'](_0x5d660f['shift']());}catch(_0x4bd694){_0x5d660f['push'](_0x5d660f['shift']());}}}(a33_0x3163,0x806a7));function a33_0x1654(_0x12142c,_0x1a30f4){_0x12142c=_0x12142c-0x102;const _0x316358=a33_0x3163();let _0x165487=_0x316358[_0x12142c];return _0x165487;}import{jsx as a33_0x186c49}from'react/jsx-runtime';import{render}from'ink';import{Config}from'../config/main.js';export const configCommand={'name':a33_0x599e01(0x10a),'description':a33_0x599e01(0x10b),async 'run'(_0x56b71d,_0xd90aef,_0x18ce91){const _0x2b7a18={'input':['config',..._0xd90aef],'flags':_0x18ce91,'pkg':{},'help':'','updateNotifier':undefined,'showHelp':()=>{},'showVersion':()=>{}};render(a33_0x186c49(Config,{'cli':_0x2b7a18}));}};
|
package/lib/commands/create.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a34_0x28c6f2=a34_0x2564;(function(_0x2d0c0c,_0x4abfdd){const _0x1853d6=a34_0x2564,_0x1dae39=_0x2d0c0c();while(!![]){try{const _0x56db0b=parseInt(_0x1853d6(0x82))/0x1*(parseInt(_0x1853d6(0x7f))/0x2)+-parseInt(_0x1853d6(0x7e))/0x3*(-parseInt(_0x1853d6(0x80))/0x4)+parseInt(_0x1853d6(0x84))/0x5+parseInt(_0x1853d6(0x8b))/0x6+-parseInt(_0x1853d6(0x89))/0x7*(parseInt(_0x1853d6(0x87))/0x8)+parseInt(_0x1853d6(0x81))/0x9+-parseInt(_0x1853d6(0x7b))/0xa;if(_0x56db0b===_0x4abfdd)break;else _0x1dae39['push'](_0x1dae39['shift']());}catch(_0x3bfae5){_0x1dae39['push'](_0x1dae39['shift']());}}}(a34_0x1bd3,0xa1c38));import{jsx as a34_0x4d179b}from'react/jsx-runtime';function a34_0x2564(_0x473b80,_0x3c4689){_0x473b80=_0x473b80-0x7a;const _0x1bd346=a34_0x1bd3();let _0x2564d8=_0x1bd346[_0x473b80];return _0x2564d8;}import{render}from'ink';import{CreateApp}from'../create-app/main.js';function a34_0x1bd3(){const _0x20ac1e=['98985ixlMdr','Non-interactive\x20mode\x20requires\x20a\x20project\x20name.','nonInteractive','146872ilkHyt','cookie','119Qvhusf','create','5197326QkLoOx','../create-app/non-interactive.js','info','23027730bJuSjY','logger','Usage:\x20rabetbase\x20create\x20<project-name>\x20--ci','6rcsbIZ','214jgNCAq','17224QjYiGt','10620387XJBZhg','11241PgQeuD','Create\x20a\x20new\x20project'];a34_0x1bd3=function(){return _0x20ac1e;};return a34_0x1bd3();}import{CliErrors}from'../errors.js';export const createCommand={'name':'create','description':a34_0x28c6f2(0x83),async 'run'(_0x4fff0e,_0x4b52db,_0x23eedb){const _0x28ce11=a34_0x28c6f2,_0x241187=_0x4b52db[0x0]?.['trim'](),_0x508d86=_0x23eedb['env'];if(_0x4fff0e['nonInteractive']&&_0x241187){_0x4fff0e[_0x28ce11(0x7c)][_0x28ce11(0x7a)](_0x28ce11(0x8a),'非交互模式创建项目:\x20'+_0x241187);const {createProjectNonInteractive:_0x2991ed}=await import(_0x28ce11(0x8c));await _0x2991ed(_0x241187,_0x508d86);}else{if(_0x4fff0e[_0x28ce11(0x86)]&&!_0x241187)throw CliErrors['validation'](_0x28ce11(0x85),_0x28ce11(0x7d));else render(a34_0x4d179b(CreateApp,{'projectCode':_0x241187,'env':_0x508d86,'cookie':_0x4fff0e['auth'][_0x28ce11(0x88)]}));}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a35_0x20f886=a35_0x830a;(function(_0x376c64,_0x1bbbec){const _0x5d0775=a35_0x830a,_0x3372a9=_0x376c64();while(!![]){try{const _0x582ece=parseInt(_0x5d0775(0x179))/0x1+-parseInt(_0x5d0775(0x15d))/0x2+-parseInt(_0x5d0775(0x150))/0x3+-parseInt(_0x5d0775(0x154))/0x4+parseInt(_0x5d0775(0x178))/0x5+parseInt(_0x5d0775(0x169))/0x6*(-parseInt(_0x5d0775(0x174))/0x7)+-parseInt(_0x5d0775(0x16f))/0x8;if(_0x582ece===_0x1bbbec)break;else _0x3372a9['push'](_0x3372a9['shift']());}catch(_0x3a1f8f){_0x3372a9['push'](_0x3372a9['shift']());}}}(a35_0x5704,0xe62a2));import{getDatasetDetail}from'../../core/api-client.js';function a35_0x5704(){const _0x322431=['pkField','1198524jaYupQ','tableName','string','modelId','fields','dbType','description','datasetKey','displayName','1571752JLdSPL','source','dbtableConfig','code','entries','name','deleted','read','length','isArray','indexes','parse','1050nrunSb','verbose','path','toTableName','type','map','2594640Kqixme','tableComment','detail','dataType','dataset','4823dWWyRE','relations','alias','boolean','9213395WgcLAw','668418wQCPFX','toFieldLabel','options','str','bool','toField','extend','operations','method','toDatasetCode','object','filter','113793YUUznm','modelCode','doType'];a35_0x5704=function(){return _0x322431;};return a35_0x5704();}import{CODE_FLAG}from'../common/flags.js';function normalizeField(_0x299fa5){const _0x8f6859=a35_0x830a;if(_0x299fa5[_0x8f6859(0x163)])return null;const _0x3e5ef9=Boolean(_0x299fa5['displayName']!==undefined||_0x299fa5[_0x8f6859(0x152)]!==undefined);let _0x53cd8e={};if(!_0x3e5ef9&&typeof _0x299fa5['extend']==='string')try{_0x53cd8e=JSON[_0x8f6859(0x168)](_0x299fa5[_0x8f6859(0x17f)]);}catch{}const _0x32d6d2=_0x3e5ef9?_0x299fa5['name']:_0x299fa5[_0x8f6859(0x160)],_0x138576=_0x3e5ef9?_0x299fa5[_0x8f6859(0x15c)]:_0x299fa5['name'],_0x20e68e=_0x3e5ef9?_0x299fa5[_0x8f6859(0x152)]:_0x299fa5[_0x8f6859(0x16d)]||_0x299fa5[_0x8f6859(0x172)],_0x3ff9c5=_0x3e5ef9?_0x299fa5[_0x8f6859(0x153)]===!![]:_0x53cd8e[_0x8f6859(0x153)]===!![],_0x9dff00=_0x3e5ef9?_0x299fa5['required']===!![]:_0x53cd8e['required']===!![],_0x459eb2=_0x3e5ef9?_0x299fa5[_0x8f6859(0x17b)]??null:_0x53cd8e[_0x8f6859(0x17b)]??null,_0x392aef={'name':_0x32d6d2,'displayName':_0x138576||_0x32d6d2,'type':_0x20e68e,'dbType':_0x299fa5[_0x8f6859(0x159)],'pk':_0x3ff9c5,'required':_0x9dff00,'description':_0x299fa5[_0x8f6859(0x15a)]||undefined};return Array[_0x8f6859(0x166)](_0x459eb2)&&_0x459eb2[_0x8f6859(0x165)]>0x0&&(_0x392aef['options']=_0x459eb2),_0x392aef;}function a35_0x830a(_0x1dae33,_0x293889){_0x1dae33=_0x1dae33-0x14b;const _0x57048b=a35_0x5704();let _0x830af1=_0x57048b[_0x1dae33];return _0x830af1;}export const datasetDetail={'service':a35_0x20f886(0x173),'command':a35_0x20f886(0x171),'description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':a35_0x20f886(0x164),'flags':[CODE_FLAG,{'name':a35_0x20f886(0x176),'type':a35_0x20f886(0x156),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'},{'name':a35_0x20f886(0x16a),'type':a35_0x20f886(0x177),'description':'Return\x20full\x20raw\x20detail\x20object'}],async 'execute'(_0x2a9f4b){const _0x41e76b=a35_0x20f886,_0x4e4568=await getDatasetDetail(_0x2a9f4b[_0x41e76b(0x17c)](_0x41e76b(0x160))),_0x59f9a7=_0x2a9f4b[_0x41e76b(0x17d)](_0x41e76b(0x16a));if(_0x59f9a7)return{'ok':!![],'data':_0x4e4568};const _0x4d0a8a=Array[_0x41e76b(0x166)](_0x4e4568[_0x41e76b(0x158)])?_0x4e4568[_0x41e76b(0x158)]:Array['isArray'](_0x4e4568['properties'])?_0x4e4568['properties']:[],_0x58e447=_0x4d0a8a[_0x41e76b(0x16e)](_0x1747cf=>normalizeField(_0x1747cf))[_0x41e76b(0x14f)](_0x5c1b0e=>_0x5c1b0e!==null),_0x17c128=_0x4e4568[_0x41e76b(0x14b)]??{},_0x5502f8=[];for(const [_0xec30fc,_0x324502]of Object[_0x41e76b(0x161)](_0x17c128)){if(_0x324502&&typeof _0x324502===_0x41e76b(0x14e)){const _0x4107f7=_0x324502;_0x4107f7[_0x41e76b(0x14c)]&&_0x4107f7[_0x41e76b(0x16b)]&&_0x5502f8['push']({'name':_0xec30fc,'method':_0x4107f7[_0x41e76b(0x14c)],'path':_0x4107f7['path']});}}const _0x4ef5cf=_0x4e4568[_0x41e76b(0x15f)]??{},_0x4eafb4=_0x4e4568[_0x41e76b(0x173)]??{};return{'ok':!![],'data':{'id':_0x4e4568[_0x41e76b(0x157)]??_0x4e4568['id'],'name':_0x4e4568[_0x41e76b(0x162)],'code':_0x4e4568[_0x41e76b(0x151)]||_0x4e4568['code'],'description':_0x4e4568[_0x41e76b(0x15a)]||_0x4eafb4[_0x41e76b(0x170)]||undefined,'source':_0x4e4568[_0x41e76b(0x15e)]||_0x4eafb4['sourceType'],'table':_0x4ef5cf[_0x41e76b(0x155)]||_0x4eafb4[_0x41e76b(0x155)],'datasetKey':_0x4ef5cf[_0x41e76b(0x15b)],'pk':_0x4ef5cf[_0x41e76b(0x153)],'fields':_0x58e447,'operations':_0x5502f8,'indexes':Array['isArray'](_0x4eafb4[_0x41e76b(0x167)])?_0x4eafb4[_0x41e76b(0x167)]:[],'relations':Array[_0x41e76b(0x166)](_0x4e4568[_0x41e76b(0x175)])?_0x4e4568[_0x41e76b(0x175)]['map'](_0x440e96=>({'fromField':_0x440e96['fromField'],'toDataset':_0x440e96['toDatasetName'],'toCode':_0x440e96[_0x41e76b(0x14d)],'toTable':_0x440e96[_0x41e76b(0x16c)],'toField':_0x440e96[_0x41e76b(0x17e)],'labelField':_0x440e96[_0x41e76b(0x17a)]||undefined})):[],'stats':{'fieldCount':_0x58e447[_0x41e76b(0x165)],'operationCount':_0x5502f8['length']}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x421fc,_0x2864d4){const _0x14449e=a36_0x4fa5,_0xea2685=_0x421fc();while(!![]){try{const _0x45f4ee=-parseInt(_0x14449e(0x7a))/0x1+-parseInt(_0x14449e(0x7c))/0x2+-parseInt(_0x14449e(0x79))/0x3+-parseInt(_0x14449e(0x75))/0x4*(parseInt(_0x14449e(0x7b))/0x5)+parseInt(_0x14449e(0x78))/0x6*(parseInt(_0x14449e(0x7d))/0x7)+-parseInt(_0x14449e(0x74))/0x8*(parseInt(_0x14449e(0x7e))/0x9)+parseInt(_0x14449e(0x77))/0xa*(parseInt(_0x14449e(0x76))/0xb);if(_0x45f4ee===_0x2864d4)break;else _0xea2685['push'](_0xea2685['shift']());}catch(_0x3b1e31){_0xea2685['push'](_0xea2685['shift']());}}}(a36_0x336b,0x50b39));import{datasetList}from'./list.js';import{datasetDetail}from'./detail.js';import{datasetOperations}from'./operations.js';function a36_0x4fa5(_0x4eefe3,_0x4b6781){_0x4eefe3=_0x4eefe3-0x74;const _0x336bbc=a36_0x336b();let _0x4fa5f7=_0x336bbc[_0x4eefe3];return _0x4fa5f7;}import{datasetLinks}from'./links.js';function a36_0x336b(){const _0x48dec2=['9itHXym','4276616mQZiGa','2273464hjhPFj','253JpRYPj','1178690UqjKVS','5160lggoKA','1718388lWBwzg','355871tsdkvT','5pDfHBS','742368CJMckt','182EsMpCw'];a36_0x336b=function(){return _0x48dec2;};return a36_0x336b();}export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a37_0x1aa14c=a37_0x4c67;(function(_0x31a54d,_0x1e9dea){const _0x5e52e6=a37_0x4c67,_0x513486=_0x31a54d();while(!![]){try{const _0x358429=parseInt(_0x5e52e6(0xf0))/0x1+parseInt(_0x5e52e6(0x100))/0x2+parseInt(_0x5e52e6(0x104))/0x3+-parseInt(_0x5e52e6(0xe5))/0x4*(parseInt(_0x5e52e6(0xff))/0x5)+parseInt(_0x5e52e6(0xe9))/0x6*(parseInt(_0x5e52e6(0xdd))/0x7)+parseInt(_0x5e52e6(0x106))/0x8+-parseInt(_0x5e52e6(0xde))/0x9*(parseInt(_0x5e52e6(0xf2))/0xa);if(_0x358429===_0x1e9dea)break;else _0x513486['push'](_0x513486['shift']());}catch(_0x2e3423){_0x513486['push'](_0x513486['shift']());}}}(a37_0x18a8,0x67389));function a37_0x18a8(){const _0x5f3692=['boolean','25oqRhZZ','900086zSuzOf','isForeignKey','toDataset','stats','1159761apLUQH','tableName','5655928YqeqYu','datasets','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','\x20relation(s)','relations','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','links','meta','139489vactPA','15915942VDMofO','datasetName','filter','relationCount','verbose','datasetId','appCode','124460LQrIaW','fields','dataset','length','78AnedwN','reduce','Fetched\x20link\x20graph\x20for\x20','str','string','\x20database(s),\x20','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','544134RNuGfX','isPrimaryKey','10EvtfVr','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','dbName','Link\x20graph:\x20','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','datasetCode','fromField','dbId','map','tableComment','name','bool'];a37_0x18a8=function(){return _0x5f3692;};return a37_0x18a8();}import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';function a37_0x4c67(_0x56b838,_0xed0767){_0x56b838=_0x56b838-0xdc;const _0x18a8f9=a37_0x18a8();let _0x4c67b4=_0x18a8f9[_0x56b838];return _0x4c67b4;}export const datasetLinks={'service':a37_0x1aa14c(0xe7),'command':a37_0x1aa14c(0x10c),'description':a37_0x1aa14c(0xf3)+a37_0x1aa14c(0xef)+a37_0x1aa14c(0x108),'risk':'read','flags':[{'name':'db','type':a37_0x1aa14c(0xed),'description':a37_0x1aa14c(0x10b)+a37_0x1aa14c(0xf6)},{'name':a37_0x1aa14c(0xe2),'type':a37_0x1aa14c(0xfe),'description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0x18407c){const _0x8552c5=a37_0x1aa14c,_0xfc8f27=_0x18407c[_0x8552c5(0xfd)](_0x8552c5(0xe2)),{resolved:_0x40e910,error:_0x4106f5}=await resolveDb(_0x18407c[_0x8552c5(0xe4)],_0x18407c[_0x8552c5(0xec)]('db')||undefined);if(_0x4106f5)return{'ok':![],'message':_0x4106f5};const _0x368dd1=_0x40e910['map'](_0x339363=>_0x339363['dbId']),_0x3f4be5=await Promise['all'](_0x368dd1[_0x8552c5(0xfa)](_0x3db00c=>getErConfig(_0x18407c[_0x8552c5(0xe4)],_0x3db00c)));if(_0xfc8f27)return{'ok':!![],'data':_0x3f4be5[_0x8552c5(0xe8)]===0x1?_0x3f4be5[0x0]:_0x3f4be5,'message':_0x8552c5(0xeb)+_0x368dd1[_0x8552c5(0xe8)]+'\x20database(s)'};const _0x3360dd=_0x3f4be5['map'](_0x1473d9=>{const _0xaf3899=_0x8552c5,_0x14ad29=(_0x1473d9[_0xaf3899(0x107)]??[])[_0xaf3899(0xfa)](_0x3d3f15=>{const _0x46e0fd=_0xaf3899,_0x29e98c=_0x3d3f15['fields']?.[_0x46e0fd(0xe0)](_0x13ea39=>_0x13ea39[_0x46e0fd(0xf1)])[_0x46e0fd(0xfa)](_0x14f687=>_0x14f687[_0x46e0fd(0xfc)])??[],_0x3f9e67=_0x3d3f15[_0x46e0fd(0xe6)]?.[_0x46e0fd(0xe0)](_0xc27ccd=>_0xc27ccd[_0x46e0fd(0x101)])[_0x46e0fd(0xfa)](_0x1e8b71=>_0x1e8b71['name'])??[];return{'id':_0x3d3f15[_0x46e0fd(0xe3)],'name':_0x3d3f15[_0x46e0fd(0xdf)],'code':_0x3d3f15[_0x46e0fd(0xf7)],'table':_0x3d3f15[_0x46e0fd(0x105)],'comment':_0x3d3f15[_0x46e0fd(0xfb)]||undefined,'fields':(_0x3d3f15['fields']??[])[_0x46e0fd(0xfa)](_0x2151d7=>({'name':_0x2151d7[_0x46e0fd(0xfc)],'displayName':_0x2151d7['displayName'],'type':_0x2151d7['dbType'],'pk':_0x2151d7['isPrimaryKey'],'fk':_0x2151d7['isForeignKey']})),'relations':(_0x3d3f15[_0x46e0fd(0x10a)]??[])[_0x46e0fd(0xe0)](_0x18c518=>_0x18c518[_0x46e0fd(0xf8)]&&_0x18c518[_0x46e0fd(0x102)])[_0x46e0fd(0xfa)](_0x2732ca=>({'from':_0x2732ca[_0x46e0fd(0xf8)],'toDataset':_0x2732ca['toDatasetName'],'toCode':_0x2732ca[_0x46e0fd(0x102)],'toField':_0x2732ca['toField'],'joinType':_0x2732ca['joinType']||'LEFT'})),'stats':{'fieldCount':_0x3d3f15[_0x46e0fd(0xe6)]?.[_0x46e0fd(0xe8)]??0x0,'pkCount':_0x29e98c[_0x46e0fd(0xe8)],'fkCount':_0x3f9e67[_0x46e0fd(0xe8)],'relationCount':_0x3d3f15[_0x46e0fd(0x10a)]?.[_0x46e0fd(0xe8)]??0x0}};}),_0x3e0d7d=_0x14ad29[_0xaf3899(0xe0)](_0x39ce04=>_0x39ce04[_0xaf3899(0x103)][_0xaf3899(0xe1)]>0x0)['map'](_0x5f43dc=>_0x5f43dc['name']);return{'db':_0x1473d9[_0xaf3899(0xdc)]?.[_0xaf3899(0xf4)],'dbId':_0x1473d9[_0xaf3899(0xdc)]?.[_0xaf3899(0xf9)],'appCode':_0x1473d9[_0xaf3899(0xdc)]?.[_0xaf3899(0xe4)],'datasetCount':_0x14ad29[_0xaf3899(0xe8)],'connectedDatasets':_0x3e0d7d,'datasets':_0x14ad29};}),_0x1ae21f=_0x3360dd['reduce']((_0x2a9e4a,_0x3e69a6)=>_0x2a9e4a+_0x3e69a6['datasetCount'],0x0),_0x23d1ef=_0x3360dd[_0x8552c5(0xea)]((_0x4d4950,_0x1f9540)=>_0x4d4950+_0x1f9540['datasets'][_0x8552c5(0xea)]((_0xec6c50,_0x1390a2)=>_0xec6c50+_0x1390a2[_0x8552c5(0x103)]['relationCount'],0x0),0x0);return{'ok':!![],'data':_0x3360dd[_0x8552c5(0xe8)]===0x1?_0x3360dd[0x0]:{'databases':_0x3360dd},'message':_0x8552c5(0xf5)+_0x3360dd['length']+_0x8552c5(0xee)+_0x1ae21f+'\x20dataset(s),\x20'+_0x23d1ef+_0x8552c5(0x109)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38_0xc05d65=a38_0x2acc;function a38_0x11cf(){const _0x3ceb89=['tableName','verbose','trim','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','2EPGMCv','split','length','list','36474bmSPUq','code','521733gWhKqS','pkField','bool','string','37915MGyRUL','boolean','81qQMohC','allFields','90PIfSkg','dataset','description','datasetKey','dbtableConfig','164808kcwqdA','Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations','name','read','105578jyzzRS','224312ZIfBBr','str','appCode','\x20dataset(s)','dbName','source','1600130ETqRvz','map','145irvKMk'];a38_0x11cf=function(){return _0x3ceb89;};return a38_0x11cf();}(function(_0x589b70,_0x12fa7d){const _0x29e19b=a38_0x2acc,_0x3642dd=_0x589b70();while(!![]){try{const _0x37d9a8=parseInt(_0x29e19b(0x1d8))/0x1+-parseInt(_0x29e19b(0x1f3))/0x2*(-parseInt(_0x29e19b(0x1d4))/0x3)+parseInt(_0x29e19b(0x1e6))/0x4+-parseInt(_0x29e19b(0x1ee))/0x5*(-parseInt(_0x29e19b(0x1d2))/0x6)+-parseInt(_0x29e19b(0x1ec))/0x7+parseInt(_0x29e19b(0x1e1))/0x8*(-parseInt(_0x29e19b(0x1da))/0x9)+parseInt(_0x29e19b(0x1dc))/0xa*(parseInt(_0x29e19b(0x1e5))/0xb);if(_0x37d9a8===_0x12fa7d)break;else _0x3642dd['push'](_0x3642dd['shift']());}catch(_0x8e09e6){_0x3642dd['push'](_0x3642dd['shift']());}}}(a38_0x11cf,0x1c762));function a38_0x2acc(_0x508136,_0x59b7ab){_0x508136=_0x508136-0x1cf;const _0x11cf88=a38_0x11cf();let _0x2acccb=_0x11cf88[_0x508136];return _0x2acccb;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetList={'service':a38_0xc05d65(0x1dd),'command':a38_0xc05d65(0x1d1),'description':'List\x20all\x20datasets\x20with\x20metadata','risk':a38_0xc05d65(0x1e4),'flags':[{'name':a38_0xc05d65(0x1e3),'type':a38_0xc05d65(0x1d7),'description':a38_0xc05d65(0x1f2)},CODE_FLAG_OPTIONAL,{'name':a38_0xc05d65(0x1f0),'type':a38_0xc05d65(0x1d9),'description':a38_0xc05d65(0x1e2)}],async 'execute'(_0x10011d){const _0x53bf7c=a38_0xc05d65,_0x5ea081=_0x10011d[_0x53bf7c(0x1e7)]('name'),_0x45bfa1=_0x10011d[_0x53bf7c(0x1e7)](_0x53bf7c(0x1d3)),_0x2668cf=_0x10011d[_0x53bf7c(0x1d6)](_0x53bf7c(0x1f0)),_0x3f5a86=await listDatasets(_0x10011d[_0x53bf7c(0x1e8)],{..._0x5ea081&&{'name':_0x5ea081},..._0x45bfa1&&{'code':_0x45bfa1}}),_0x5637cc=_0x2668cf?_0x3f5a86:_0x3f5a86[_0x53bf7c(0x1ed)](_0x310dd8=>{const _0x4380bf=_0x53bf7c,_0x2e654a=_0x310dd8[_0x4380bf(0x1e0)]??{};return{'id':_0x310dd8['id'],'name':_0x310dd8[_0x4380bf(0x1e3)],'code':_0x310dd8[_0x4380bf(0x1d3)],'description':_0x310dd8[_0x4380bf(0x1de)],'source':_0x310dd8[_0x4380bf(0x1eb)],'db':_0x2e654a[_0x4380bf(0x1ea)],'table':_0x2e654a[_0x4380bf(0x1ef)],'datasetKey':_0x2e654a[_0x4380bf(0x1df)],'pk':_0x2e654a[_0x4380bf(0x1d5)],'fields':_0x2e654a[_0x4380bf(0x1db)]?_0x2e654a[_0x4380bf(0x1db)][_0x4380bf(0x1cf)](',')[_0x4380bf(0x1ed)](_0x44eed4=>_0x44eed4[_0x4380bf(0x1f1)]()):[]};});return{'ok':!![],'data':{'total':_0x5637cc[_0x53bf7c(0x1d0)],'datasets':_0x5637cc},'message':'Found\x20'+_0x5637cc[_0x53bf7c(0x1d0)]+_0x53bf7c(0x1e9)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39_0x2e275c=a39_0x363a;(function(_0x465e64,_0xc6d95d){const _0x325471=a39_0x363a,_0x4cee2c=_0x465e64();while(!![]){try{const _0x2e1199=-parseInt(_0x325471(0x88))/0x1*(parseInt(_0x325471(0x91))/0x2)+parseInt(_0x325471(0x9f))/0x3*(-parseInt(_0x325471(0x8c))/0x4)+parseInt(_0x325471(0x83))/0x5*(parseInt(_0x325471(0x98))/0x6)+-parseInt(_0x325471(0x8f))/0x7*(parseInt(_0x325471(0x92))/0x8)+parseInt(_0x325471(0x8e))/0x9+parseInt(_0x325471(0x96))/0xa*(parseInt(_0x325471(0x87))/0xb)+parseInt(_0x325471(0x99))/0xc;if(_0x2e1199===_0xc6d95d)break;else _0x4cee2c['push'](_0x4cee2c['shift']());}catch(_0x547023){_0x4cee2c['push'](_0x4cee2c['shift']());}}}(a39_0x8ad5,0x95f62));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../common/flags.js';function a39_0x363a(_0x4dd626,_0x3fb1ca){_0x4dd626=_0x4dd626-0x81;const _0x8ad500=a39_0x8ad5();let _0x363aa5=_0x8ad500[_0x4dd626];return _0x363aa5;}function a39_0x8ad5(){const _0x22fc13=['operation','name','bool','12CkverP','type','method','str','2967730iCdOgI','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','displayName','length','2365jubdGC','313DKJONk','alias','operations','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','420008NDRTZQ','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','6888609pmAhGy','14TtEiWJ','map','5978PrdqRP','3683192TtapCn','string','read','boolean','53910mahjhm','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','6rLyNdd','4471116QDIepA','code','verbose'];a39_0x8ad5=function(){return _0x22fc13;};return a39_0x8ad5();}export const datasetOperations={'service':'dataset','command':a39_0x2e275c(0x8a),'description':a39_0x2e275c(0x84),'risk':a39_0x2e275c(0x94),'flags':[CODE_FLAG_OPTIONAL,{'name':a39_0x2e275c(0x89),'type':a39_0x2e275c(0x93),'description':a39_0x2e275c(0x8d)},{'name':a39_0x2e275c(0x9c),'type':'string','description':a39_0x2e275c(0x97)},{'name':'verbose','type':a39_0x2e275c(0x95),'description':a39_0x2e275c(0x8b)}],async 'execute'(_0xd40551){const _0x51e7e7=a39_0x2e275c,_0x38d07a=_0xd40551[_0x51e7e7(0x82)](_0x51e7e7(0x9a)),_0x8166f=_0xd40551[_0x51e7e7(0x82)](_0x51e7e7(0x9c)),_0x4949d4=_0xd40551[_0x51e7e7(0x9e)](_0x51e7e7(0x9b));if(_0x8166f){const {dataset:_0x748b9f,operation:_0x2b60f0}=await getOperationDetail(_0xd40551['appCode'],_0x38d07a,_0x8166f);return{'ok':!![],'data':{'dataset':_0x748b9f,'operation':_0x2b60f0}};}const {dataset:_0x32abbe,operations:_0x39c7e4}=await getDatasetOperations(_0x38d07a);return{'ok':!![],'data':{'dataset':_0x32abbe,'total':_0x39c7e4[_0x51e7e7(0x86)],'operations':_0x4949d4?_0x39c7e4:_0x39c7e4[_0x51e7e7(0x90)](_0x585faf=>({'name':_0x585faf[_0x51e7e7(0x9d)],'displayName':_0x585faf[_0x51e7e7(0x85)],'type':_0x585faf[_0x51e7e7(0xa0)],'method':_0x585faf[_0x51e7e7(0x81)],'enabled':_0x585faf['enabled']}))}};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a40_0x36fea2=a40_0x4f62;(function(_0x1d316f,_0x84b84a){const _0x1323c7=a40_0x4f62,_0xaa7b4e=_0x1d316f();while(!![]){try{const _0x265a03=-parseInt(_0x1323c7(0xda))/0x1*(parseInt(_0x1323c7(0x101))/0x2)+parseInt(_0x1323c7(0xec))/0x3+parseInt(_0x1323c7(0xed))/0x4+-parseInt(_0x1323c7(0x10c))/0x5*(-parseInt(_0x1323c7(0x107))/0x6)+parseInt(_0x1323c7(0xe8))/0x7+parseInt(_0x1323c7(0xde))/0x8+parseInt(_0x1323c7(0xdc))/0x9*(-parseInt(_0x1323c7(0x105))/0xa);if(_0x265a03===_0x84b84a)break;else _0xaa7b4e['push'](_0xaa7b4e['shift']());}catch(_0x11d0cb){_0xaa7b4e['push'](_0xaa7b4e['shift']());}}}(a40_0x20c5,0x651c4));import a40_0xe5e2c9 from'chalk';import{readFileSync}from'node:fs';import{resolve,dirname}from'node:path';import{fileURLToPath}from'node:url';import{CLI_BIN_NAME}from'../constant/cli.js';import{BUILD_NUMBER}from'../generated/build-info.js';function a40_0x4f62(_0x599d17,_0x44ef27){_0x599d17=_0x599d17-0xce;const _0x20c5fc=a40_0x20c5();let _0x4f627b=_0x20c5fc[_0x599d17];return _0x4f627b;}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';async function runDoctor(_0x47c900,_0x195ae1,_0x42c0e7){const _0x4fd070=a40_0x4f62,_0x1c9708=_0x47c900[_0x4fd070(0x103)];let _0x201c52=_0x4fd070(0xd5);try{const _0xcc8ea7=resolve(dirname(fileURLToPath(import.meta.url)),'..'),_0x280db1=JSON['parse'](readFileSync(resolve(_0xcc8ea7,_0x4fd070(0xfa)),_0x4fd070(0xd4)));_0x201c52=_0x280db1[_0x4fd070(0x100)]||_0x4fd070(0xd5);}catch{}const _0x2becd4=BUILD_NUMBER?_0x201c52+'+'+BUILD_NUMBER:_0x201c52;console[_0x4fd070(0xf4)](),console['log'](a40_0xe5e2c9[_0x4fd070(0x111)](CLI_BIN_NAME+_0x4fd070(0xfd))),console['log'](a40_0xe5e2c9[_0x4fd070(0x112)]('─'[_0x4fd070(0xef)](0x32))),console[_0x4fd070(0xf4)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x2becd4),console[_0x4fd070(0xf4)](_0x4fd070(0x106)+process['version']),console[_0x4fd070(0xf4)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x4fd070(0xd8)]+'\x20'+process[_0x4fd070(0xe1)]),console[_0x4fd070(0xf4)](),console['log'](a40_0xe5e2c9[_0x4fd070(0x111)](_0x4fd070(0xf3))),console['log'](a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0xf8)[_0x4fd070(0xef)](0x1e)));const _0x4cc51b=getGlobalConfigPath(),_0x5cf11c=getProjectConfigPath();console[_0x4fd070(0xf4)](_0x4fd070(0xdb)+(_0x4cc51b||a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0xe2)))),console[_0x4fd070(0xf4)](_0x4fd070(0xfc)+(_0x5cf11c||a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0xe2)))),console[_0x4fd070(0xf4)](),console[_0x4fd070(0xf4)](a40_0xe5e2c9[_0x4fd070(0x111)](_0x4fd070(0xd3))),console[_0x4fd070(0xf4)](a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0xf8)['repeat'](0x1e)));const _0x216eb7=buildConfigFromFlags(_0x42c0e7);console[_0x4fd070(0xf4)](_0x4fd070(0xdf)+(_0x216eb7[_0x4fd070(0xfe)]||a40_0xe5e2c9[_0x4fd070(0xd7)](_0x4fd070(0x104)))),console[_0x4fd070(0xf4)](_0x4fd070(0xf9)+_0x216eb7['env']),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x216eb7['locale']),console[_0x4fd070(0xf4)](_0x4fd070(0xf6)+_0x216eb7[_0x4fd070(0xea)]),console[_0x4fd070(0xf4)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x216eb7[_0x4fd070(0xf2)]||a40_0xe5e2c9['gray'](_0x4fd070(0x113)))),console[_0x4fd070(0xf4)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x216eb7[_0x4fd070(0x110)]||a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0x113)))),console['log'](_0x4fd070(0xf7)+(_0x216eb7['explicitAppName']||a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0x113)))),console[_0x4fd070(0xf4)](_0x4fd070(0xd6)+(_0x216eb7[_0x4fd070(0xdd)]||a40_0xe5e2c9[_0x4fd070(0x112)]('(default:\x20pretty)'))),console[_0x4fd070(0xf4)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x216eb7[_0x4fd070(0x114)]??a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0xd2)))),console[_0x4fd070(0xf4)](_0x4fd070(0xff)+_0x216eb7['riskLevel']),console['log'](_0x4fd070(0x10e)+_0x216eb7[_0x4fd070(0xe0)]),console['log']('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x216eb7['cookie']?a40_0xe5e2c9['green'](_0x4fd070(0xd0)+_0x216eb7[_0x4fd070(0x10f)][_0x4fd070(0xcf)]+')'):a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0x113))));const _0x41fe61=Object[_0x4fd070(0xe9)](_0x216eb7[_0x4fd070(0xf1)]);if(_0x41fe61[_0x4fd070(0xcf)]>0x0){console[_0x4fd070(0xf4)](),console[_0x4fd070(0xf4)](a40_0xe5e2c9[_0x4fd070(0x111)](_0x4fd070(0x10d))),console[_0x4fd070(0xf4)](a40_0xe5e2c9['gray']('\x20\x20─'[_0x4fd070(0xef)](0x1e)));for(const _0x432c29 of _0x41fe61){const _0x5cbe3f=_0x216eb7[_0x4fd070(0xf1)][_0x432c29],_0xd8eb73=_0x432c29===_0x216eb7['defaultApp'],_0x218072=_0x432c29===_0x216eb7[_0x4fd070(0x110)],_0x2fca7c=_0x218072?a40_0xe5e2c9[_0x4fd070(0xf0)](_0x4fd070(0xce)):'',_0x410c30=_0xd8eb73?'\x20(default)':'';console[_0x4fd070(0xf4)]('\x20\x20'+_0x432c29+_0x410c30+_0x2fca7c),console[_0x4fd070(0xf4)](_0x4fd070(0xe3)+_0x5cbe3f[_0x4fd070(0x10b)]),console[_0x4fd070(0xf4)](_0x4fd070(0x108)+(_0x5cbe3f[_0x4fd070(0xe6)]||a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0xd9)))),console['log'](_0x4fd070(0x10a)+(_0x5cbe3f[_0x4fd070(0xea)]||a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0xd9)))),console[_0x4fd070(0xf4)](_0x4fd070(0xfb)+(_0x5cbe3f['cookie']?a40_0xe5e2c9['green'](_0x4fd070(0xee)):a40_0xe5e2c9[_0x4fd070(0x112)](_0x4fd070(0xd9))));}}console[_0x4fd070(0xf4)](),console[_0x4fd070(0xf4)](a40_0xe5e2c9[_0x4fd070(0x111)](_0x4fd070(0x102))),console[_0x4fd070(0xf4)](a40_0xe5e2c9[_0x4fd070(0x112)]('\x20\x20─'[_0x4fd070(0xef)](0x1e))),console[_0x4fd070(0xf4)](_0x4fd070(0xd1)+getApiDomain()),console[_0x4fd070(0xf4)](_0x4fd070(0x109)+getUserDomain()),console[_0x4fd070(0xf4)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x4fd070(0xf4)](),console[_0x4fd070(0xf4)](a40_0xe5e2c9[_0x4fd070(0x111)]('\x20\x20Auth')),console['log'](a40_0xe5e2c9['gray'](_0x4fd070(0xf8)[_0x4fd070(0xef)](0x1e)));const _0x4ebb47=_0x216eb7[_0x4fd070(0x10f)]||_0x47c900[_0x4fd070(0xe7)][_0x4fd070(0x10f)];if(_0x4ebb47){const _0x313f7b=await getIsSessionValid();console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x313f7b?a40_0xe5e2c9[_0x4fd070(0xf0)](_0x4fd070(0xe5)):a40_0xe5e2c9[_0x4fd070(0xd7)]('✗\x20Expired')));}else console[_0x4fd070(0xf4)](_0x4fd070(0xf5)+a40_0xe5e2c9[_0x4fd070(0xd7)](_0x4fd070(0xe4)));console['log']();}function a40_0x20c5(){const _0x944711=['2179887VWTbSH','231872IetBqP','(set)','repeat','green','apps','defaultApp','\x20\x20Config\x20Files','log','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','\x20\x20─','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','package.json','\x20\x20\x20\x20cookie:\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','appCode','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','version','2UyIuhX','\x20\x20API\x20Endpoints','config','(not\x20set)','10ijitbo','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','6SGMEWh','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20','appcode','772015AmWkAz','\x20\x20Apps','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','cookie','currentApp','bold','gray','(none)','pageSize','\x20←\x20current','length','(set,\x20length=','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20Merged\x20Config','utf-8','0.0.0','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','platform','(inherit)','405177Fsxwsq','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2947986CiWOKt','format','35384ylVpat','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','arch','(not\x20found)','\x20\x20\x20\x20appcode:\x20\x20','✗\x20Not\x20logged\x20in','✓\x20Valid','env','auth','1424192SXkRsE','keys','apiDir','Diagnose\x20CLI\x20configuration\x20and\x20connectivity'];a40_0x20c5=function(){return _0x944711;};return a40_0x20c5();}export const doctorCommand={'name':'doctor','description':a40_0x36fea2(0xeb),async 'run'(_0xb85196,_0x236498,_0x594252){await runDoctor(_0xb85196,_0x236498,_0x594252);}};
|
package/lib/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41_0x28f762=a41_0x5365;(function(_0x1b5d79,_0x2449b7){const _0x2366b7=a41_0x5365,_0x56b731=_0x1b5d79();while(!![]){try{const _0x464541=-parseInt(_0x2366b7(0x1f1))/0x1+-parseInt(_0x2366b7(0x1f0))/0x2*(parseInt(_0x2366b7(0x1f8))/0x3)+parseInt(_0x2366b7(0x1fb))/0x4+parseInt(_0x2366b7(0x1fa))/0x5+parseInt(_0x2366b7(0x1f2))/0x6*(parseInt(_0x2366b7(0x1f4))/0x7)+-parseInt(_0x2366b7(0x1ec))/0x8+parseInt(_0x2366b7(0x1f9))/0x9;if(_0x464541===_0x2449b7)break;else _0x56b731['push'](_0x56b731['shift']());}catch(_0x15dbbc){_0x56b731['push'](_0x56b731['shift']());}}}(a41_0x2635,0x4c446));import{jsx as a41_0x6b5eee}from'react/jsx-runtime';function a41_0x2635(){const _0x2f10c7=['429916RfExWo','3631536tPqllw','Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project','执行初始化配置命令','init','146074wqOPBV','117959vrSZXT','6078yBSMIV','env','3766xWAVjv','logger','yes','info','24mxneeK','2316285DMpCAy','2793745pBONAC'];a41_0x2635=function(){return _0x2f10c7;};return a41_0x2635();}function a41_0x5365(_0x1fa417,_0x40cd61){_0x1fa417=_0x1fa417-0x1ec;const _0x26356c=a41_0x2635();let _0x5365ab=_0x26356c[_0x1fa417];return _0x5365ab;}import{render}from'ink';import{Init}from'../init/main.js';export const initCommand={'name':a41_0x28f762(0x1ef),'description':a41_0x28f762(0x1ed),async 'run'(_0x450312,_0x55f652,_0x339f28){const _0xa9f35=a41_0x28f762;_0x450312[_0xa9f35(0x1f5)][_0xa9f35(0x1f7)](_0xa9f35(0x1ef),_0xa9f35(0x1ee));const _0x33fbc3=_0x339f28['appcode'],_0x1fee85=_0x339f28[_0xa9f35(0x1f3)];render(a41_0x6b5eee(Init,{'appcode':_0x33fbc3,'env':_0x1fee85,'autoYes':_0x339f28[_0xa9f35(0x1f6)]}));}};
|
package/lib/commands/logout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42_0x409639=a42_0x4faf;function a42_0x4faf(_0xbb7494,_0x58d68c){_0xbb7494=_0xbb7494-0x166;const _0x56a977=a42_0x56a9();let _0x4faf18=_0x56a977[_0xbb7494];return _0x4faf18;}(function(_0xfa132,_0x35cf55){const _0x5135b2=a42_0x4faf,_0x38985b=_0xfa132();while(!![]){try{const _0x3cbaec=parseInt(_0x5135b2(0x171))/0x1*(parseInt(_0x5135b2(0x166))/0x2)+parseInt(_0x5135b2(0x16b))/0x3*(parseInt(_0x5135b2(0x170))/0x4)+parseInt(_0x5135b2(0x172))/0x5*(-parseInt(_0x5135b2(0x176))/0x6)+parseInt(_0x5135b2(0x169))/0x7*(-parseInt(_0x5135b2(0x167))/0x8)+-parseInt(_0x5135b2(0x174))/0x9+parseInt(_0x5135b2(0x16a))/0xa+-parseInt(_0x5135b2(0x168))/0xb*(parseInt(_0x5135b2(0x173))/0xc);if(_0x3cbaec===_0x35cf55)break;else _0x38985b['push'](_0x38985b['shift']());}catch(_0x181fea){_0x38985b['push'](_0x38985b['shift']());}}}(a42_0x56a9,0xc1e85));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export const logoutCommand={'name':a42_0x409639(0x16d),'description':a42_0x409639(0x16c),async 'run'(_0x9a5e29,_0xfe3669,_0x5f4f0e){const _0x31509d=a42_0x409639;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x31509d(0x175)](_0x31509d(0x16f))):console[_0x31509d(0x175)](_0x31509d(0x16e));}};function a42_0x56a9(){const _0x5a2ea7=['logout','!\x20Not\x20logged\x20in','✓\x20Logged\x20out','5216608uGlRen','7OksvGr','1085sBZqvb','444NlrxRD','3739365BqeuVg','log','16890sFmtUr','372558ytagVQ','8iNnOjY','507133wCYnrZ','3853843RUWntJ','14688400EqXWLM','3xvMtMk','Logout\x20from\x20rabetbase'];a42_0x56a9=function(){return _0x5a2ea7;};return a42_0x56a9();}
|
package/lib/commands/logs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a43_0x11112c=a43_0x2503;function a43_0x7899(){const _0x4d3df3=['level','en-US','command','logger','details','48430701Glclqe','forEach','30HUzCQl','timestamp','*\x20No\x20logs\x20found','error','499870MZOWfj','logs','duration','View\x20or\x20clear\x20CLI\x20logs','\x20\x20\x20Time:\x20','warn','936jZoAtC','11304960ffUyFP','readLogs','1666392xsnZCR','5527825KJFxMB','*\x20Lovrabet\x20CLI\x20logs:\x0a','*\x20Logs\x20cleared','length','success','log','1138250DiqqfW','4780ygkMKO','clear','\x20\x20\x20Details:\x20','clearLogs'];a43_0x7899=function(){return _0x4d3df3;};return a43_0x7899();}(function(_0x328c22,_0x1d346d){const _0x58d3d6=a43_0x2503,_0x254549=_0x328c22();while(!![]){try{const _0x527e71=-parseInt(_0x58d3d6(0x20c))/0x1+-parseInt(_0x58d3d6(0x205))/0x2+parseInt(_0x58d3d6(0x202))/0x3*(parseInt(_0x58d3d6(0x20d))/0x4)+-parseInt(_0x58d3d6(0x206))/0x5+-parseInt(_0x58d3d6(0x1f8))/0x6*(parseInt(_0x58d3d6(0x1fc))/0x7)+-parseInt(_0x58d3d6(0x203))/0x8+parseInt(_0x58d3d6(0x1f6))/0x9;if(_0x527e71===_0x1d346d)break;else _0x254549['push'](_0x254549['shift']());}catch(_0x5a8fab){_0x254549['push'](_0x254549['shift']());}}}(a43_0x7899,0xdd660));function showLogs(_0x3a14d5){const _0x4aa74b=a43_0x2503,_0x1066da=_0x3a14d5[_0x4aa74b(0x1f4)][_0x4aa74b(0x204)]();if(_0x1066da['length']===0x0){console[_0x4aa74b(0x20b)](_0x4aa74b(0x1fa));return;}console[_0x4aa74b(0x20b)](_0x4aa74b(0x207)),_0x1066da[_0x4aa74b(0x1f7)]((_0x56a785,_0x253e65)=>{const _0x560169=_0x4aa74b,_0x144367=new Date(_0x56a785[_0x560169(0x1f9)])['toLocaleString'](_0x560169(0x1f2)),_0x241ae4=_0x56a785[_0x560169(0x211)]===_0x560169(0x20a)?'√':_0x56a785[_0x560169(0x211)]===_0x560169(0x1fb)?'×':_0x56a785['level']===_0x560169(0x201)?'!':'i';console[_0x560169(0x20b)](_0x253e65+0x1+'.\x20'+_0x241ae4+'\x20['+_0x56a785[_0x560169(0x1f3)]+']\x20'+_0x56a785['message']),console[_0x560169(0x20b)](_0x560169(0x200)+_0x144367),_0x56a785[_0x560169(0x1fe)]&&console[_0x560169(0x20b)]('\x20\x20\x20Duration:\x20'+_0x56a785[_0x560169(0x1fe)]+'ms'),_0x56a785[_0x560169(0x1f5)]&&Object['keys'](_0x56a785['details'])[_0x560169(0x209)]>0x0&&console['log'](_0x560169(0x20f)+JSON['stringify'](_0x56a785[_0x560169(0x1f5)],null,0x2)),console[_0x560169(0x20b)]('');});}function a43_0x2503(_0x2fe87b,_0x48dde6){_0x2fe87b=_0x2fe87b-0x1f2;const _0x789942=a43_0x7899();let _0x2503d6=_0x789942[_0x2fe87b];return _0x2503d6;}function clearLogs(_0x362355){const _0x2d4ec6=a43_0x2503;_0x362355[_0x2d4ec6(0x1f4)][_0x2d4ec6(0x210)](),console[_0x2d4ec6(0x20b)](_0x2d4ec6(0x208));}export const logsCommand={'name':a43_0x11112c(0x1fd),'description':a43_0x11112c(0x1ff),async 'run'(_0x51acd7,_0x5c1020,_0x111531){const _0x4cb5f0=a43_0x11112c;_0x111531[_0x4cb5f0(0x20e)]?clearLogs(_0x51acd7):showLogs(_0x51acd7);}};
|
package/lib/commands/mcp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a44_0x43475d=a44_0x589b;(function(_0x435e84,_0x53bb31){const _0x395d20=a44_0x589b,_0x3e6772=_0x435e84();while(!![]){try{const _0x520713=parseInt(_0x395d20(0x92))/0x1+-parseInt(_0x395d20(0x89))/0x2*(parseInt(_0x395d20(0x85))/0x3)+parseInt(_0x395d20(0x99))/0x4*(parseInt(_0x395d20(0x93))/0x5)+parseInt(_0x395d20(0x94))/0x6*(-parseInt(_0x395d20(0x8b))/0x7)+parseInt(_0x395d20(0x88))/0x8*(parseInt(_0x395d20(0x98))/0x9)+-parseInt(_0x395d20(0x90))/0xa*(-parseInt(_0x395d20(0x9f))/0xb)+parseInt(_0x395d20(0x8f))/0xc;if(_0x520713===_0x53bb31)break;else _0x3e6772['push'](_0x3e6772['shift']());}catch(_0x17727f){_0x3e6772['push'](_0x3e6772['shift']());}}}(a44_0x3c15,0xda6b2));import{jsx as a44_0x16ff2e}from'react/jsx-runtime';function a44_0x3c15(){const _0x150c72=['cursor','mcp','mcp-install','31699176KPPgRk','50UMqLGh','other','48474JMeFGW','3744145GkihvE','18AFtvlo','nonInteractive','mcpOther','Configure\x20MCP\x20(Model\x20Context\x20Protocol)','9YqLDQQ','4YfRSXR','enableBffSave','执行配置\x20MCP\x20命令','claude','push','info','589721FxtgZi','../mcp/mcp-install-non-interactive.js','install','3765mnqrsc','logger','length','3029552toLjon','2234kELwni','mcpClaude','4174737yCeVOu'];a44_0x3c15=function(){return _0x150c72;};return a44_0x3c15();}import{render}from'ink';import{McpInstallUI}from'../mcp/McpInstallUI.js';import{mcpCommand as a44_0x5d785f}from'../mcp/main.js';function a44_0x589b(_0x1b0f50,_0x262f60){_0x1b0f50=_0x1b0f50-0x85;const _0x3c15ab=a44_0x3c15();let _0x589b2a=_0x3c15ab[_0x1b0f50];return _0x589b2a;}export const mcpCommand={'name':a44_0x43475d(0x8d),'description':a44_0x43475d(0x97),async 'run'(_0x35d4d9,_0x394674,_0x1932e8){const _0x204d6d=a44_0x43475d,_0x359414=_0x394674[0x0];if(_0x359414===_0x204d6d(0xa1)){const _0x23f3c8=[];if(_0x1932e8['mcpCursor']||_0x1932e8[_0x204d6d(0x8c)])_0x23f3c8[_0x204d6d(0x9d)](_0x204d6d(0x8c));if(_0x1932e8[_0x204d6d(0x8a)]||_0x1932e8[_0x204d6d(0x9c)])_0x23f3c8[_0x204d6d(0x9d)](_0x204d6d(0x9c));if(_0x1932e8[_0x204d6d(0x96)])_0x23f3c8[_0x204d6d(0x9d)](_0x204d6d(0x91));_0x35d4d9[_0x204d6d(0x86)][_0x204d6d(0x9e)](_0x204d6d(0x8e),_0x204d6d(0x9b),{'preselected':_0x23f3c8});if(_0x35d4d9[_0x204d6d(0x95)]&&_0x23f3c8[_0x204d6d(0x87)]>0x0){const {installMcpNonInteractive:_0x2f11c2}=await import(_0x204d6d(0xa0));await _0x2f11c2(_0x23f3c8,_0x1932e8[_0x204d6d(0x9a)]);}else render(a44_0x16ff2e(McpInstallUI,{'preselectedIDEs':_0x23f3c8,'enableBffSave':_0x1932e8['enableBffSave']}));}else await a44_0x5d785f(_0x359414,[],_0x1932e8);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x505086,_0x2f5d49){const _0x47f933=a45_0xbd61,_0x64d93d=_0x505086();while(!![]){try{const _0x2d6c2b=parseInt(_0x47f933(0xcb))/0x1*(parseInt(_0x47f933(0xd0))/0x2)+-parseInt(_0x47f933(0xce))/0x3*(parseInt(_0x47f933(0xd1))/0x4)+-parseInt(_0x47f933(0xd2))/0x5*(parseInt(_0x47f933(0xd3))/0x6)+parseInt(_0x47f933(0xcc))/0x7+parseInt(_0x47f933(0xca))/0x8+parseInt(_0x47f933(0xc9))/0x9+-parseInt(_0x47f933(0xcf))/0xa*(-parseInt(_0x47f933(0xcd))/0xb);if(_0x2d6c2b===_0x2f5d49)break;else _0x64d93d['push'](_0x64d93d['shift']());}catch(_0x5d8eb9){_0x64d93d['push'](_0x64d93d['shift']());}}}(a45_0xf06f,0x38345));function a45_0xbd61(_0x526583,_0x15b884){_0x526583=_0x526583-0xc9;const _0xf06fcd=a45_0xf06f();let _0xbd6108=_0xf06fcd[_0x526583];return _0xbd6108;}import{menuSync}from'./sync.js';import{menuUpdate}from'./update.js';function a45_0xf06f(){const _0x3dafba=['1216386cBmndX','1791846GquLnN','2545000cudVRf','6ztFGLl','749070FbfqTK','22yPImQV','3dRryoQ','162290ltrWjK','50122SULqQa','1496436QENARA','5JQNOhn'];a45_0xf06f=function(){return _0x3dafba;};return a45_0xf06f();}export const menuDefinitions=[menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a46_0x4a64(){const _0x4c0a82=['path','\x20\x20\x20\x20JS:\x20\x20','\x20\x20\x20\x20CSS:\x20','test','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','push','max','3jsNOac','join','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','264724GXaLSc','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','online','(unchanged)','660726cBsikM','length','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20Affected\x20menus:\x20','5RLzZLE','101868WGeGXj','\x20\x20No\x20pages\x20to\x20sync.','repeat','1686601dQmPsB','map','showOnline','8sCPzpS','45063FGxsrf','\x20\x20\x20\x20•\x20','4257715zSyLNB','630wkSviV','label','512936CGKdqK'];a46_0x4a64=function(){return _0x4c0a82;};return a46_0x4a64();}function a46_0x57dc(_0x1a1473,_0x30d017){_0x1a1473=_0x1a1473-0x16f;const _0x4a64c3=a46_0x4a64();let _0x57dcf8=_0x4a64c3[_0x1a1473];return _0x57dcf8;}(function(_0x203a4e,_0x3241ec){const _0x212057=a46_0x57dc,_0x27ed16=_0x203a4e();while(!![]){try{const _0x5efa86=parseInt(_0x212057(0x17f))/0x1*(-parseInt(_0x212057(0x182))/0x2)+-parseInt(_0x212057(0x186))/0x3+-parseInt(_0x212057(0x177))/0x4+-parseInt(_0x212057(0x18a))/0x5*(-parseInt(_0x212057(0x18b))/0x6)+parseInt(_0x212057(0x18e))/0x7*(parseInt(_0x212057(0x171))/0x8)+-parseInt(_0x212057(0x172))/0x9*(-parseInt(_0x212057(0x175))/0xa)+parseInt(_0x212057(0x174))/0xb;if(_0x5efa86===_0x3241ec)break;else _0x27ed16['push'](_0x27ed16['shift']());}catch(_0x51f8d3){_0x27ed16['push'](_0x27ed16['shift']());}}}(a46_0x4a64,0x34751));function strWidth(_0x5547d7){const _0x5e76a5=a46_0x57dc;let _0x2aeb3b=0x0;for(const _0xca1324 of _0x5547d7){_0x2aeb3b+=/[\u4e00-\u9fa5]/[_0x5e76a5(0x17b)](_0xca1324)?0x2:0x1;}return _0x2aeb3b;}function padRight(_0x28c7da,_0x1c2d60){const _0x5989c5=a46_0x57dc,_0xd0141e=strWidth(_0x28c7da);return _0x28c7da+'\x20'[_0x5989c5(0x18d)](Math[_0x5989c5(0x17e)](0x0,_0x1c2d60-_0xd0141e));}export function renderCompareTable(_0x3407d4,_0x47aa49={}){const _0x310bd7=a46_0x57dc;if(_0x3407d4[_0x310bd7(0x187)]===0x0)return'';const _0x569bd2=_0x47aa49[_0x310bd7(0x170)]??!![],_0x38ce6d=Math[_0x310bd7(0x17e)](0x1e,..._0x3407d4[_0x310bd7(0x16f)](_0x2679f0=>strWidth(_0x2679f0[_0x310bd7(0x176)]))),_0x5050e9=0x4,_0x42bda2=[],_0x15d766='\x20\x20'+padRight('Menu\x20Name',_0x38ce6d),_0x344a1b=padRight('Local',_0x5050e9),_0x33f832=_0x569bd2?'\x20\x20'+padRight('Platform',_0x5050e9):'';_0x42bda2[_0x310bd7(0x17d)](_0x15d766+'\x20\x20'+_0x344a1b+(_0x569bd2?_0x33f832:'')),_0x42bda2[_0x310bd7(0x17d)]('\x20\x20'+'─'[_0x310bd7(0x18d)](_0x38ce6d)+'\x20\x20'+'─'['repeat'](_0x5050e9)+(_0x569bd2?'\x20\x20'+'─'[_0x310bd7(0x18d)](_0x5050e9):''));for(const _0x5e3a14 of _0x3407d4){const _0x1ed6f=padRight(_0x5e3a14[_0x310bd7(0x176)],_0x38ce6d),_0x52a782=_0x5e3a14['local']?'✓':'✗',_0x446bf2=padRight(_0x52a782,_0x5050e9);let _0x1abca3='\x20\x20'+_0x1ed6f+'\x20\x20'+_0x446bf2;if(_0x569bd2){const _0x27dadc=_0x5e3a14[_0x310bd7(0x184)]?'✓':'✗';_0x1abca3+='\x20\x20'+padRight(_0x27dadc,_0x5050e9);}_0x42bda2['push'](_0x1abca3);}return _0x42bda2[_0x310bd7(0x180)]('\x0a');}export function renderSyncSummary(_0x4fa46d,_0x2f3321){const _0x1b9235=a46_0x57dc;if(_0x4fa46d[_0x1b9235(0x187)]===0x0)return _0x2f3321?_0x1b9235(0x183):_0x1b9235(0x18c);const _0x482bb0=['\x20\x20'+_0x4fa46d['length']+_0x1b9235(0x17c)];for(const _0x5a4fbc of _0x4fa46d){_0x482bb0[_0x1b9235(0x17d)](_0x1b9235(0x173)+_0x5a4fbc['label']+'\x20('+_0x5a4fbc[_0x1b9235(0x178)]+')');}return _0x482bb0['join']('\x0a');}export function renderUpdateSummary(_0x508674,_0x6a117){const _0x34dcfa=a46_0x57dc;if(_0x508674[_0x34dcfa(0x187)]===0x0)return _0x34dcfa(0x181);const _0x587c3c=['\x20\x20'+_0x508674[_0x34dcfa(0x187)]+_0x34dcfa(0x188),_0x34dcfa(0x179)+(_0x6a117[0x0]??_0x34dcfa(0x185)),_0x34dcfa(0x17a)+(_0x6a117[0x1]??_0x34dcfa(0x185)),'',_0x34dcfa(0x189)+_0x508674[_0x34dcfa(0x180)](',\x20')];return _0x587c3c[_0x34dcfa(0x180)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a47_0xf855(_0x201097,_0x173af9){_0x201097=_0x201097-0xa6;var _0x277cbc=a47_0x277c();var _0xf8552e=_0x277cbc[_0x201097];return _0xf8552e;}(function(_0xceadb,_0x124ef6){var _0xb85e1e=a47_0xf855,_0xbb788c=_0xceadb();while(!![]){try{var _0x443950=-parseInt(_0xb85e1e(0xa8))/0x1+-parseInt(_0xb85e1e(0xaa))/0x2+parseInt(_0xb85e1e(0xac))/0x3+-parseInt(_0xb85e1e(0xab))/0x4+parseInt(_0xb85e1e(0xad))/0x5+-parseInt(_0xb85e1e(0xa7))/0x6+-parseInt(_0xb85e1e(0xa9))/0x7*(-parseInt(_0xb85e1e(0xa6))/0x8);if(_0x443950===_0x124ef6)break;else _0xbb788c['push'](_0xbb788c['shift']());}catch(_0x4fed24){_0xbb788c['push'](_0xbb788c['shift']());}}}(a47_0x277c,0xd3b17));export*from'./types.js';export*from'./logic.js';export*from'./compare-table.js';function a47_0x277c(){var _0x4fd543=['1254553lRYOAc','10757845iCQNmo','346064yRpixn','2901112YWTzrI','1788108pixLDD','6020100hYpErx','8stBToz','1901598BHHHsc'];a47_0x277c=function(){return _0x4fd543;};return a47_0x277c();}export*from'./inquirer.js';export*from'./valid-url.js';export*from'./local-pages.js';export*from'./service.js';export*from'./sync-core.js';export*from'./update-core.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x271541,_0x2bb225){const _0x5125cb=a48_0xc280,_0x528568=_0x271541();while(!![]){try{const _0x4dd20e=parseInt(_0x5125cb(0x1d5))/0x1*(-parseInt(_0x5125cb(0x1cc))/0x2)+parseInt(_0x5125cb(0x1c5))/0x3+parseInt(_0x5125cb(0x1c3))/0x4*(-parseInt(_0x5125cb(0x1e0))/0x5)+-parseInt(_0x5125cb(0x1e7))/0x6+parseInt(_0x5125cb(0x1d9))/0x7*(parseInt(_0x5125cb(0x1eb))/0x8)+-parseInt(_0x5125cb(0x1d3))/0x9+parseInt(_0x5125cb(0x1d7))/0xa*(parseInt(_0x5125cb(0x1cd))/0xb);if(_0x4dd20e===_0x2bb225)break;else _0x528568['push'](_0x528568['shift']());}catch(_0x22c20d){_0x528568['push'](_0x528568['shift']());}}}(a48_0x4b36,0xee13f));import a48_0x527298 from'chalk';function a48_0xc280(_0x10237f,_0x32e2d0){_0x10237f=_0x10237f-0x1c2;const _0x4b36b1=a48_0x4b36();let _0xc280df=_0x4b36b1[_0x10237f];return _0xc280df;}import{checkbox,input,confirm}from'@inquirer/prompts';import a48_0x27b2d7 from'ora';import{isUrlReachable}from'./valid-url.js';function onCancel(_0x5b86d7){const _0x5a6f98=a48_0xc280;return _0x5b86d7[_0x5a6f98(0x1cb)](_0x59a3de=>{const _0x3f26e2=_0x5a6f98;if(_0x59a3de?.[_0x3f26e2(0x1cf)]==='ExitPromptError')throw new Error(_0x3f26e2(0x1e2));throw _0x59a3de;});}export function startSpinner(_0x4e0a9e){const _0x391237=a48_0xc280;return a48_0x27b2d7({'text':_0x4e0a9e,'color':_0x391237(0x1d2)})[_0x391237(0x1ec)]();}export function stopSpinner(_0x277558,_0x363534,_0x213dc3){const _0x50cbea=a48_0xc280;_0x213dc3?_0x277558[_0x50cbea(0x1d6)](_0x363534):_0x277558['fail'](_0x363534);}export async function askConfirm(_0x357496){return onCancel(confirm({'message':_0x357496,'theme':{'prefix':''}}));}export async function askJsUrl(_0x27d024){const _0x2a3667=a48_0xc280;while(!![]){const _0x2c816a=await onCancel(input({'message':_0x2a3667(0x1dc),'default':_0x27d024,'theme':{'prefix':''}}));if(_0x2c816a[_0x2a3667(0x1c6)]()==='')throw new Error(_0x2a3667(0x1e2));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x2a3667(0x1e4)](_0x2c816a[_0x2a3667(0x1c6)]())){console[_0x2a3667(0x1dd)](a48_0x527298[_0x2a3667(0x1c2)](_0x2a3667(0x1de)));continue;}const _0x1377d9=startSpinner('\x20\x20Checking\x20JS\x20URL\x20reachability...');try{const _0x4de278=await isUrlReachable(_0x2c816a[_0x2a3667(0x1c6)]());stopSpinner(_0x1377d9,_0x2a3667(0x1ca),_0x4de278);if(!_0x4de278){console[_0x2a3667(0x1dd)](a48_0x527298[_0x2a3667(0x1c2)](_0x2a3667(0x1d8)));continue;}return _0x2c816a[_0x2a3667(0x1c6)]();}catch(_0x19221f){stopSpinner(_0x1377d9,_0x2a3667(0x1d4),![]);throw _0x19221f;}}}function a48_0x4b36(){const _0x265916=['1774129dIjvEz','label','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','\x20\x20JS\x20URL:','error','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','includes','65DtewuK','path','CANCEL','\x20\x20Checking\x20CSS\x20URL\x20reachability...','test','[already\x20on\x20platform]','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','1845894FDhGyp','isTTY','[new]','CSS\x20URL\x20checked','8aEnrqN','start','gray','No\x20menus\x20selected.','red','239316VcYRAm','map','2565498VUjihf','trim','has','\x20\x20CSS\x20URL:','length','JS\x20URL\x20checked','catch','2HrHVsw','536789xDhopm','No\x20local\x20pages\x20found.','name','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','green','cyan','283032JLWmTY','JS\x20URL\x20check\x20failed','236547xCFrBi','succeed','250faWZAn','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'];a48_0x4b36=function(){return _0x265916;};return a48_0x4b36();}export async function askCssUrl(_0x479cf8){const _0x5620ce=a48_0xc280;while(!![]){const _0x1f669=await onCancel(input({'message':_0x5620ce(0x1c8),'default':_0x479cf8,'theme':{'prefix':''}}));if(_0x1f669['trim']()==='')throw new Error(_0x5620ce(0x1e2));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x5620ce(0x1e4)](_0x1f669[_0x5620ce(0x1c6)]())){console[_0x5620ce(0x1dd)](a48_0x527298[_0x5620ce(0x1c2)](_0x5620ce(0x1db)));continue;}const _0x3f939e=startSpinner(_0x5620ce(0x1e3));try{const _0x22f74b=await isUrlReachable(_0x1f669[_0x5620ce(0x1c6)]());stopSpinner(_0x3f939e,_0x5620ce(0x1ea),_0x22f74b);if(!_0x22f74b){console[_0x5620ce(0x1dd)](a48_0x527298[_0x5620ce(0x1c2)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x1f669[_0x5620ce(0x1c6)]();}catch(_0x38ab21){stopSpinner(_0x3f939e,'CSS\x20URL\x20check\x20failed',![]);throw _0x38ab21;}}}export async function selectPages(_0x4dd7bf,_0x233f4f,_0x90db09){const _0x58d7b1=a48_0xc280,_0x36da4f=_0x4dd7bf[_0x58d7b1(0x1c4)](_0x8309d6=>({'name':_0x8309d6[_0x58d7b1(0x1da)]+'\x20\x20'+(_0x233f4f[_0x58d7b1(0x1c7)](_0x8309d6[_0x58d7b1(0x1e1)])?a48_0x527298[_0x58d7b1(0x1ed)](_0x58d7b1(0x1e5)):a48_0x527298[_0x58d7b1(0x1d1)](_0x58d7b1(0x1e9))),'value':_0x8309d6[_0x58d7b1(0x1da)],'checked':_0x90db09?_0x90db09[_0x58d7b1(0x1df)](_0x8309d6[_0x58d7b1(0x1da)]):!_0x233f4f['has'](_0x8309d6[_0x58d7b1(0x1e1)])}));if(_0x36da4f[_0x58d7b1(0x1c9)]===0x0)throw new Error(_0x58d7b1(0x1ce));const _0x518513=await onCancel(checkbox({'message':_0x58d7b1(0x1d0),'choices':_0x36da4f,'loop':![],'theme':{'prefix':''}}));if(_0x518513[_0x58d7b1(0x1c9)]===0x0)throw new Error(_0x58d7b1(0x1ee));return _0x4dd7bf['filter'](_0x43d5cd=>_0x518513[_0x58d7b1(0x1df)](_0x43d5cd[_0x58d7b1(0x1da)]));}export function isInteractive(){const _0x138277=a48_0xc280;return process['stdin'][_0x138277(0x1e8)]===!![];}export function requireInteractive(){const _0x57dece=a48_0xc280;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x57dece(0x1e6));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a49_0x8933db=a49_0x32a3;function a49_0x589c(){const _0x4501aa=['src/pages','14020dImUMc','457304QoeAEH','replace','isDirectory','cwd','.tsx','405eHHnZM','trim','forEach','4aLQgQG','match','30304xirvMo','utf-8','5011380JYfdbc','83053ASLUaB','endsWith','push','6543tLyTwk','2431230bsncSl','index.tsx','3141426axSdkp','replaceAll','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','14WwfSZu'];a49_0x589c=function(){return _0x4501aa;};return a49_0x589c();}function a49_0x32a3(_0x57af73,_0x3f2ce0){_0x57af73=_0x57af73-0x76;const _0x589ccf=a49_0x589c();let _0x32a393=_0x589ccf[_0x57af73];return _0x32a393;}(function(_0x279e85,_0xde5324){const _0x4a9b1c=a49_0x32a3,_0x3483d9=_0x279e85();while(!![]){try{const _0x3e782e=parseInt(_0x4a9b1c(0x8b))/0x1*(parseInt(_0x4a9b1c(0x86))/0x2)+parseInt(_0x4a9b1c(0x76))/0x3+parseInt(_0x4a9b1c(0x88))/0x4*(parseInt(_0x4a9b1c(0x83))/0x5)+parseInt(_0x4a9b1c(0x78))/0x6+-parseInt(_0x4a9b1c(0x7b))/0x7*(parseInt(_0x4a9b1c(0x7e))/0x8)+-parseInt(_0x4a9b1c(0x8e))/0x9*(parseInt(_0x4a9b1c(0x7d))/0xa)+-parseInt(_0x4a9b1c(0x8a))/0xb;if(_0x3e782e===_0xde5324)break;else _0x3483d9['push'](_0x3483d9['shift']());}catch(_0x533927){_0x3483d9['push'](_0x3483d9['shift']());}}}(a49_0x589c,0x80127));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve}from'path';const pagesDir=resolve(process[a49_0x8933db(0x81)](),a49_0x8933db(0x7c));export function extractTitleFromComment(_0x35be11){const _0xf56516=a49_0x8933db;try{const _0x13c43f=readFileSync(_0x35be11,_0xf56516(0x89)),_0x4ef915=_0x13c43f[_0xf56516(0x87)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x4ef915&&_0x4ef915[0x1]){const _0x3c3a5e=_0x4ef915[0x1],_0x752fbd=_0x3c3a5e['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x752fbd&&_0x752fbd[0x1])return _0x752fbd[0x1][_0xf56516(0x84)]();}let _0x290b12=null;const _0x37bb6b=_0x13c43f[_0xf56516(0x87)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x37bb6b&&_0x37bb6b[0x1]&&(_0x290b12=_0x37bb6b[0x1]);if(!_0x290b12){const _0x226a53=_0x13c43f[_0xf56516(0x87)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x226a53&&_0x226a53[0x1]&&(_0x290b12=_0x226a53[0x1]);}if(_0x290b12){const _0x408818=new RegExp('\x5cb'+_0x290b12+_0xf56516(0x7a)),_0xd48e49=_0x13c43f[_0xf56516(0x87)](_0x408818);if(_0xd48e49&&_0xd48e49[0x1])return _0xd48e49[0x1];return _0x290b12;}return null;}catch(_0x5bebb2){return null;}}export function getLocalPages(_0x128516=pagesDir,_0x4d865a=pagesDir){const _0x4a8fe9=a49_0x8933db;let _0x34b82e=[];const _0x1487b5=readdirSync(_0x128516);return _0x1487b5[_0x4a8fe9(0x85)](_0x48f07c=>{const _0x2629d6=_0x4a8fe9,_0x5211f6=join(_0x128516,_0x48f07c),_0x50ed1c=statSync(_0x5211f6);if(_0x50ed1c&&_0x50ed1c[_0x2629d6(0x80)]())_0x34b82e=_0x34b82e['concat'](getLocalPages(_0x5211f6,_0x4d865a));else{if(_0x48f07c[_0x2629d6(0x8c)](_0x2629d6(0x82))){let _0x313340=relative(_0x4d865a,_0x5211f6);_0x313340[_0x2629d6(0x8c)](_0x2629d6(0x77))?_0x313340=_0x313340['replace'](/index\.tsx$/,''):_0x313340=_0x313340[_0x2629d6(0x7f)](/\.tsx$/,'');_0x313340[_0x2629d6(0x8c)]('/')&&(_0x313340=_0x313340['slice'](0x0,-0x1));const _0x5c5b1f=extractTitleFromComment(_0x5211f6),_0x60f42b=_0x5c5b1f||_0x313340;_0x34b82e[_0x2629d6(0x8d)]({'path':_0x313340[_0x2629d6(0x79)]('$',':'),'label':_0x60f42b});}}}),_0x34b82e['filter'](_0x1b4173=>_0x1b4173['path']!=='');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x42fe81,_0xa5bfa3){const _0x5c1789=a50_0x2269,_0x10d3a6=_0x42fe81();while(!![]){try{const _0x37a93c=parseInt(_0x5c1789(0x8f))/0x1*(-parseInt(_0x5c1789(0x82))/0x2)+-parseInt(_0x5c1789(0x80))/0x3+-parseInt(_0x5c1789(0x8a))/0x4+parseInt(_0x5c1789(0x8c))/0x5+parseInt(_0x5c1789(0x7b))/0x6*(-parseInt(_0x5c1789(0x7a))/0x7)+parseInt(_0x5c1789(0x83))/0x8+parseInt(_0x5c1789(0x7f))/0x9;if(_0x37a93c===_0xa5bfa3)break;else _0x10d3a6['push'](_0x10d3a6['shift']());}catch(_0x4be841){_0x10d3a6['push'](_0x10d3a6['shift']());}}}(a50_0x350a,0xba1f3));import{getLocalPages}from'./local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'./service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'./valid-url.js';function a50_0x350a(){const _0x2b3a46=['filter','trim','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','2864492TWutcn','label','4401375JQruCu','map','path','268921uDctps','join','errors','resources','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','find','139972Hvcpda','276XbnoMt','length','has','CSS\x20URL\x20is\x20unreachable','14758380cndbvn','648195DRrvdP','rejected','10vUWxNZ','11510952bXGyIG','JS\x20URL\x20is\x20unreachable','push','No\x20local\x20pages\x20matched\x20labels:\x20'];a50_0x350a=function(){return _0x2b3a46;};return a50_0x350a();}export function validateJsUrl(_0x23679d){const _0x4f3f0a=a50_0x2269,_0x1250fe=[];return!isValidJsHttpsUrl(_0x23679d)&&_0x1250fe[_0x4f3f0a(0x85)](_0x4f3f0a(0x93)),{'ok':_0x1250fe[_0x4f3f0a(0x7c)]===0x0,'errors':_0x1250fe};}export function validateCssUrl(_0x5d8d41){const _0x1e2475=a50_0x2269,_0x3e1603=[];return!isValidCssHttpsUrl(_0x5d8d41)&&_0x3e1603['push'](_0x1e2475(0x89)),{'ok':_0x3e1603[_0x1e2475(0x7c)]===0x0,'errors':_0x3e1603};}export async function validateJsUrlReachable(_0x20059f){const _0x1cc422=a50_0x2269,_0x1d9852=validateJsUrl(_0x20059f);if(!_0x1d9852['ok'])return _0x1d9852;const _0x434988=await isUrlReachable(_0x20059f);if(!_0x434988)_0x1d9852['errors']['push'](_0x1cc422(0x84));return{'ok':_0x1d9852[_0x1cc422(0x91)][_0x1cc422(0x7c)]===0x0,'errors':_0x1d9852[_0x1cc422(0x91)]};}export async function validateCssUrlReachable(_0x154f7d){const _0x7f82dd=a50_0x2269,_0x3e574f=validateCssUrl(_0x154f7d);if(!_0x3e574f['ok'])return _0x3e574f;const _0xa33741=await isUrlReachable(_0x154f7d);if(!_0xa33741)_0x3e574f[_0x7f82dd(0x91)][_0x7f82dd(0x85)](_0x7f82dd(0x7e));return{'ok':_0x3e574f['errors']['length']===0x0,'errors':_0x3e574f[_0x7f82dd(0x91)]};}function a50_0x2269(_0x2bff43,_0x27de23){_0x2bff43=_0x2bff43-0x79;const _0x350ad9=a50_0x350a();let _0x2269ca=_0x350ad9[_0x2bff43];return _0x2269ca;}export function buildCompareRows(_0x3df5b6,_0xc68e94){const _0x41b26a=a50_0x2269;return _0x3df5b6['map'](_0x9b789b=>({'label':_0x9b789b[_0x41b26a(0x8b)],'path':_0x9b789b['path'],'local':!![],'online':_0xc68e94[_0x41b26a(0x7d)](_0x9b789b[_0x41b26a(0x8e)])}));}export function filterNewPages(_0x5e7dfd,_0x3ed3a1,_0xd53e89){const _0x4544f9=a50_0x2269;if(_0xd53e89&&_0xd53e89['length']>0x0){const _0x1fc94b=new Set(_0xd53e89[_0x4544f9(0x8d)](_0x144738=>_0x144738[_0x4544f9(0x88)]())),_0x133bab=_0x5e7dfd[_0x4544f9(0x87)](_0x235a57=>_0x1fc94b[_0x4544f9(0x7d)](_0x235a57[_0x4544f9(0x8b)]));if(_0x133bab[_0x4544f9(0x7c)]===0x0)throw new Error(_0x4544f9(0x86)+[..._0x1fc94b][_0x4544f9(0x90)](',\x20'));return _0x133bab;}return _0x5e7dfd[_0x4544f9(0x87)](_0x5de712=>!_0x3ed3a1[_0x4544f9(0x7d)](_0x5de712[_0x4544f9(0x8e)]));}export function filterPagesByLabels(_0x58de7f,_0x55e104){const _0x7fb80a=a50_0x2269,_0x3edbfb=[],_0x234e50=[];for(const _0x29fbb8 of _0x55e104){const _0x669e2d=_0x29fbb8['trim'](),_0x3cc5d6=_0x58de7f[_0x7fb80a(0x79)](_0x18ee99=>_0x18ee99[_0x7fb80a(0x8b)]===_0x669e2d);if(_0x3cc5d6)_0x3edbfb[_0x7fb80a(0x85)](_0x3cc5d6);else _0x234e50[_0x7fb80a(0x85)](_0x29fbb8);}return{'matched':_0x3edbfb,'unmatched':_0x234e50};}export async function doCreateMenus(_0x52046f,_0x523a1c,_0x3b617d,_0x2a6aec){const _0x10adf4=a50_0x2269;return await createMenus(_0x52046f,_0x523a1c,_0x3b617d,_0x2a6aec),{'created':_0x3b617d[_0x10adf4(0x7c)],'failed':0x0,'labels':_0x3b617d[_0x10adf4(0x8d)](_0x311d75=>_0x311d75['label'])};}export function filterMenusWithResources(_0x27393e){const _0x2cc834=a50_0x2269;return _0x27393e[_0x2cc834(0x87)](_0x31e072=>_0x31e072[_0x2cc834(0x92)][_0x2cc834(0x7c)]>0x0);}export async function doUpdateCdnUrls(_0x6f6b04,_0x264f59,_0x25e942,_0x358698){const _0xd1011b=a50_0x2269,_0x54a17d=_0x25e942['filter'](_0x30d5dc=>_0x30d5dc[_0xd1011b(0x92)][_0xd1011b(0x7c)]>0x0),_0x10bf84=await Promise['allSettled'](_0x54a17d['map'](_0x54ac59=>updateMenuCdnUrl(_0x6f6b04,_0x264f59,{'id':_0x54ac59['id'],'label':_0x54ac59[_0xd1011b(0x8b)],'path':_0x54ac59[_0xd1011b(0x8e)],'resources':_0x358698}))),_0x362770=_0x10bf84[_0xd1011b(0x87)](_0x442ff6=>_0x442ff6['status']===_0xd1011b(0x81))[_0xd1011b(0x7c)];return{'updated':_0x54a17d[_0xd1011b(0x7c)]-_0x362770,'failed':_0x362770};}export async function fetchMenuData(_0x4a2559,_0x5edfb8){const _0x54ad7d=a50_0x2269,_0x382566=getLocalPages(),_0xfca13=await getOnlineMenuList(_0x4a2559,_0x5edfb8),_0x45df81=new Set(_0xfca13['map'](_0x5d352=>_0x5d352[_0x54ad7d(0x8e)]));return{'localPages':_0x382566,'onlineMenuList':_0xfca13,'onlinePaths':_0x45df81};}export async function fetchOnlineMenuList(_0x3590fc,_0x3432a3){return getOnlineMenuList(_0x3590fc,_0x3432a3);}
|