@lovrabet/rabetbase-cli 2.0.2-beta.6 → 2.0.2-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
package/lib/commands/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a33_0x55efc0=a33_0x2760;(function(_0x299af9,_0x3d3bef){const _0x13d70a=a33_0x2760,_0x12c001=_0x299af9();while(!![]){try{const _0x26fa3e=-parseInt(_0x13d70a(0x19b))/0x1+-parseInt(_0x13d70a(0x1a3))/0x2*(-parseInt(_0x13d70a(0x19e))/0x3)+-parseInt(_0x13d70a(0x1a2))/0x4+parseInt(_0x13d70a(0x19a))/0x5+parseInt(_0x13d70a(0x19c))/0x6+parseInt(_0x13d70a(0x19d))/0x7+-parseInt(_0x13d70a(0x1a0))/0x8;if(_0x26fa3e===_0x3d3bef)break;else _0x12c001['push'](_0x12c001['shift']());}catch(_0x4392d9){_0x12c001['push'](_0x12c001['shift']());}}}(a33_0x1c0f,0x3c01b));import{jsx as a33_0x33887f}from'react/jsx-runtime';import{render}from'ink';function a33_0x1c0f(){const _0x2aaede=['6045792bsXafu','Manage\x20project\x20configuration','687524qLxslq','186094rapvlB','752770FmThZI','331463eYNsjc','2553552QPiRxk','3244318TwYOQy','15LxsNVc','config'];a33_0x1c0f=function(){return _0x2aaede;};return a33_0x1c0f();}import{Config}from'../config/main.js';function a33_0x2760(_0x19dd74,_0x2be23b){_0x19dd74=_0x19dd74-0x19a;const _0x1c0f24=a33_0x1c0f();let _0x276073=_0x1c0f24[_0x19dd74];return _0x276073;}export const configCommand={'name':'config','description':a33_0x55efc0(0x1a1),async 'run'(_0x46388b,_0x1ac60f,_0x3ab5b2){const _0x1e9d6c=a33_0x55efc0,_0x1ecf07={'input':[_0x1e9d6c(0x19f),..._0x1ac60f],'flags':_0x3ab5b2,'pkg':{},'help':'','updateNotifier':undefined,'showHelp':()=>{},'showVersion':()=>{}};render(a33_0x33887f(Config,{'cli':_0x1ecf07}));}};
|
package/lib/commands/create.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a34_0x215dc3=a34_0x2fd2;(function(_0x2978bc,_0x2d82a3){const _0x262cc8=a34_0x2fd2,_0x362b57=_0x2978bc();while(!![]){try{const _0x481054=-parseInt(_0x262cc8(0x1f8))/0x1*(parseInt(_0x262cc8(0x1fd))/0x2)+-parseInt(_0x262cc8(0x1eb))/0x3*(-parseInt(_0x262cc8(0x1f4))/0x4)+-parseInt(_0x262cc8(0x1ef))/0x5+parseInt(_0x262cc8(0x1f0))/0x6*(-parseInt(_0x262cc8(0x1f9))/0x7)+-parseInt(_0x262cc8(0x1ff))/0x8*(-parseInt(_0x262cc8(0x1ee))/0x9)+parseInt(_0x262cc8(0x1fe))/0xa+parseInt(_0x262cc8(0x1f5))/0xb*(parseInt(_0x262cc8(0x1e9))/0xc);if(_0x481054===_0x2d82a3)break;else _0x362b57['push'](_0x362b57['shift']());}catch(_0x38e8dd){_0x362b57['push'](_0x362b57['shift']());}}}(a34_0x3a24,0x80ec6));import{jsx as a34_0x1e1d11}from'react/jsx-runtime';function a34_0x3a24(){const _0x2da4a0=['446rEwYsI','5561230caMYCa','110648XRqhPm','auth','180qyfhlz','Create\x20a\x20new\x20project','201UpyKak','cookie','nonInteractive','81HDwnEW','1645505xpXQPX','12Soguit','非交互模式创建项目:\x20','info','Non-interactive\x20mode\x20requires\x20a\x20project\x20name.','22476UHrpAW','282975pCbXTb','logger','validation','1699HHsCVl','724157HbcdEo','trim','create','env'];a34_0x3a24=function(){return _0x2da4a0;};return a34_0x3a24();}function a34_0x2fd2(_0x210ce3,_0x267218){_0x210ce3=_0x210ce3-0x1e9;const _0x3a245a=a34_0x3a24();let _0x2fd224=_0x3a245a[_0x210ce3];return _0x2fd224;}import{render}from'ink';import{CreateApp}from'../create-app/main.js';import{CliErrors}from'../errors.js';export const createCommand={'name':'create','description':a34_0x215dc3(0x1ea),async 'run'(_0x115674,_0x44b745,_0x1b6fc3){const _0x1f0d8b=a34_0x215dc3,_0x278622=_0x44b745[0x0]?.[_0x1f0d8b(0x1fa)](),_0x235165=_0x1b6fc3[_0x1f0d8b(0x1fc)];if(_0x115674['nonInteractive']&&_0x278622){_0x115674[_0x1f0d8b(0x1f6)][_0x1f0d8b(0x1f2)](_0x1f0d8b(0x1fb),_0x1f0d8b(0x1f1)+_0x278622);const {createProjectNonInteractive:_0x144a10}=await import('../create-app/non-interactive.js');await _0x144a10(_0x278622,_0x235165);}else{if(_0x115674[_0x1f0d8b(0x1ed)]&&!_0x278622)throw CliErrors[_0x1f0d8b(0x1f7)](_0x1f0d8b(0x1f3),'Usage:\x20rabetbase\x20create\x20<project-name>\x20--ci');else render(a34_0x1e1d11(CreateApp,{'projectCode':_0x278622,'env':_0x235165,'cookie':_0x115674[_0x1f0d8b(0x200)][_0x1f0d8b(0x1ec)]}));}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a35_0x4e7486=a35_0x37eb;function a35_0x37eb(_0x25073f,_0x59ae4d){_0x25073f=_0x25073f-0x14e;const _0x2366a6=a35_0x2366();let _0x37eb73=_0x2366a6[_0x25073f];return _0x37eb73;}(function(_0x3bc237,_0x3b255a){const _0x28ac87=a35_0x37eb,_0x509be8=_0x3bc237();while(!![]){try{const _0x136a71=parseInt(_0x28ac87(0x157))/0x1*(parseInt(_0x28ac87(0x17e))/0x2)+parseInt(_0x28ac87(0x16c))/0x3*(parseInt(_0x28ac87(0x158))/0x4)+parseInt(_0x28ac87(0x180))/0x5+-parseInt(_0x28ac87(0x186))/0x6+parseInt(_0x28ac87(0x178))/0x7+-parseInt(_0x28ac87(0x17d))/0x8*(-parseInt(_0x28ac87(0x151))/0x9)+-parseInt(_0x28ac87(0x173))/0xa;if(_0x136a71===_0x3b255a)break;else _0x509be8['push'](_0x509be8['shift']());}catch(_0x701dfb){_0x509be8['push'](_0x509be8['shift']());}}}(a35_0x2366,0x1f1d9));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG}from'../common/flags.js';function normalizeField(_0x4be2d2){const _0x18585b=a35_0x37eb;if(_0x4be2d2[_0x18585b(0x187)])return null;const _0x305afa=Boolean(_0x4be2d2['displayName']!==undefined||_0x4be2d2[_0x18585b(0x15e)]!==undefined);let _0x84fbf1={};if(!_0x305afa&&typeof _0x4be2d2[_0x18585b(0x160)]===_0x18585b(0x16b))try{_0x84fbf1=JSON[_0x18585b(0x175)](_0x4be2d2[_0x18585b(0x160)]);}catch{}const _0x3e8fac=_0x305afa?_0x4be2d2[_0x18585b(0x174)]:_0x4be2d2[_0x18585b(0x14e)],_0x2d050d=_0x305afa?_0x4be2d2[_0x18585b(0x150)]:_0x4be2d2[_0x18585b(0x174)],_0x2adae2=_0x305afa?_0x4be2d2[_0x18585b(0x15e)]:_0x4be2d2[_0x18585b(0x16d)]||_0x4be2d2[_0x18585b(0x15c)],_0x5389da=_0x305afa?_0x4be2d2[_0x18585b(0x17b)]===!![]:_0x84fbf1[_0x18585b(0x17b)]===!![],_0x2fa82a=_0x305afa?_0x4be2d2[_0x18585b(0x16f)]===!![]:_0x84fbf1[_0x18585b(0x16f)]===!![],_0x18425b=_0x305afa?_0x4be2d2[_0x18585b(0x172)]??null:_0x84fbf1[_0x18585b(0x172)]??null,_0x151b3f={'name':_0x3e8fac,'displayName':_0x2d050d||_0x3e8fac,'type':_0x2adae2,'dbType':_0x4be2d2[_0x18585b(0x16a)],'pk':_0x5389da,'required':_0x2fa82a,'description':_0x4be2d2[_0x18585b(0x182)]||undefined};return Array[_0x18585b(0x166)](_0x18425b)&&_0x18425b['length']>0x0&&(_0x151b3f[_0x18585b(0x172)]=_0x18425b),_0x151b3f;}function a35_0x2366(){const _0x1fe4d5=['properties','1195572YxyxwE','toDatasetCode','fields','pkField','datasetKey','8tXUeYi','26bykIpn','fromField','268900frnrjR','detail','description','indexes','path','toFieldLabel','279240KmIhuA','deleted','verbose','code','toDatasetName','displayName','559377YOeaVr','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','map','entries','push','method','8429kSORJb','16RQQKUQ','dataset','object','boolean','dataType','tableComment','doType','operations','extend','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','sourceType','source','bool','filter','isArray','tableName','Return\x20full\x20raw\x20detail\x20object','modelId','dbType','string','188184zmFCXo','type','length','required','relations','alias','options','4732290LszLxt','name','parse','read'];a35_0x2366=function(){return _0x1fe4d5;};return a35_0x2366();}export const datasetDetail={'service':a35_0x4e7486(0x159),'command':a35_0x4e7486(0x181),'description':a35_0x4e7486(0x152),'risk':a35_0x4e7486(0x176),'flags':[CODE_FLAG,{'name':a35_0x4e7486(0x171),'type':a35_0x4e7486(0x16b),'description':a35_0x4e7486(0x161)},{'name':a35_0x4e7486(0x188),'type':a35_0x4e7486(0x15b),'description':a35_0x4e7486(0x168)}],async 'execute'(_0x4e9550){const _0x3060a3=a35_0x4e7486,_0x4f31c1=await getDatasetDetail(_0x4e9550['str'](_0x3060a3(0x14e))),_0x25efb1=_0x4e9550[_0x3060a3(0x164)](_0x3060a3(0x188));if(_0x25efb1)return{'ok':!![],'data':_0x4f31c1};const _0x5f08cb=Array[_0x3060a3(0x166)](_0x4f31c1[_0x3060a3(0x17a)])?_0x4f31c1['fields']:Array[_0x3060a3(0x166)](_0x4f31c1[_0x3060a3(0x177)])?_0x4f31c1[_0x3060a3(0x177)]:[],_0x5dc95f=_0x5f08cb['map'](_0x3e5ce6=>normalizeField(_0x3e5ce6))[_0x3060a3(0x165)](_0x1f2ba1=>_0x1f2ba1!==null),_0x27c409=_0x4f31c1[_0x3060a3(0x15f)]??{},_0x36dc9c=[];for(const [_0x5d1b7b,_0x1b8bab]of Object[_0x3060a3(0x154)](_0x27c409)){if(_0x1b8bab&&typeof _0x1b8bab===_0x3060a3(0x15a)){const _0x450ceb=_0x1b8bab;_0x450ceb[_0x3060a3(0x156)]&&_0x450ceb['path']&&_0x36dc9c[_0x3060a3(0x155)]({'name':_0x5d1b7b,'method':_0x450ceb[_0x3060a3(0x156)],'path':_0x450ceb[_0x3060a3(0x184)]});}}const _0x25fc80=_0x4f31c1['dbtableConfig']??{},_0x393bf3=_0x4f31c1[_0x3060a3(0x159)]??{};return{'ok':!![],'data':{'id':_0x4f31c1[_0x3060a3(0x169)]??_0x4f31c1['id'],'name':_0x4f31c1[_0x3060a3(0x174)],'code':_0x4f31c1['modelCode']||_0x4f31c1[_0x3060a3(0x14e)],'description':_0x4f31c1[_0x3060a3(0x182)]||_0x393bf3[_0x3060a3(0x15d)]||undefined,'source':_0x4f31c1[_0x3060a3(0x163)]||_0x393bf3[_0x3060a3(0x162)],'table':_0x25fc80[_0x3060a3(0x167)]||_0x393bf3[_0x3060a3(0x167)],'datasetKey':_0x25fc80[_0x3060a3(0x17c)],'pk':_0x25fc80[_0x3060a3(0x17b)],'fields':_0x5dc95f,'operations':_0x36dc9c,'indexes':Array[_0x3060a3(0x166)](_0x393bf3[_0x3060a3(0x183)])?_0x393bf3[_0x3060a3(0x183)]:[],'relations':Array[_0x3060a3(0x166)](_0x4f31c1['relations'])?_0x4f31c1[_0x3060a3(0x170)][_0x3060a3(0x153)](_0x5bee7e=>({'fromField':_0x5bee7e[_0x3060a3(0x17f)],'toDataset':_0x5bee7e[_0x3060a3(0x14f)],'toCode':_0x5bee7e[_0x3060a3(0x179)],'toTable':_0x5bee7e['toTableName'],'toField':_0x5bee7e['toField'],'labelField':_0x5bee7e[_0x3060a3(0x185)]||undefined})):[],'stats':{'fieldCount':_0x5dc95f[_0x3060a3(0x16e)],'operationCount':_0x36dc9c[_0x3060a3(0x16e)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2dc964,_0xe56d25){const _0x127534=a36_0x3abd,_0x48c85c=_0x2dc964();while(!![]){try{const _0x4cb7e5=parseInt(_0x127534(0x18d))/0x1*(-parseInt(_0x127534(0x188))/0x2)+-parseInt(_0x127534(0x192))/0x3*(-parseInt(_0x127534(0x18b))/0x4)+parseInt(_0x127534(0x189))/0x5*(-parseInt(_0x127534(0x190))/0x6)+-parseInt(_0x127534(0x191))/0x7+parseInt(_0x127534(0x18f))/0x8+parseInt(_0x127534(0x18a))/0x9*(-parseInt(_0x127534(0x18e))/0xa)+parseInt(_0x127534(0x18c))/0xb;if(_0x4cb7e5===_0xe56d25)break;else _0x48c85c['push'](_0x48c85c['shift']());}catch(_0x1e8159){_0x48c85c['push'](_0x48c85c['shift']());}}}(a36_0x1d60,0xa30db));import{datasetList}from'./list.js';function a36_0x1d60(){const _0x3d5e89=['2hnARfC','13855hakQdU','9RWYddZ','1196UEviJM','8145775ynNjQo','747910qLQCcU','416940IBuWps','6983272tELGxa','1662PJRfDJ','5047273DEXoDk','13371HUEgod'];a36_0x1d60=function(){return _0x3d5e89;};return a36_0x1d60();}import{datasetDetail}from'./detail.js';function a36_0x3abd(_0xc6edd6,_0xd62002){_0xc6edd6=_0xc6edd6-0x188;const _0x1d60d1=a36_0x1d60();let _0x3abd3a=_0x1d60d1[_0xc6edd6];return _0x3abd3a;}import{datasetOperations}from'./operations.js';import{datasetLinks}from'./links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a37_0x2d756b=a37_0x1ee5;(function(_0x83f359,_0xefb4b7){const _0x6c92ed=a37_0x1ee5,_0x410fce=_0x83f359();while(!![]){try{const _0x6d360b=-parseInt(_0x6c92ed(0xc9))/0x1*(-parseInt(_0x6c92ed(0xd1))/0x2)+-parseInt(_0x6c92ed(0xc4))/0x3+-parseInt(_0x6c92ed(0xe0))/0x4*(parseInt(_0x6c92ed(0xb8))/0x5)+-parseInt(_0x6c92ed(0xe6))/0x6+parseInt(_0x6c92ed(0xbd))/0x7+-parseInt(_0x6c92ed(0xcd))/0x8*(-parseInt(_0x6c92ed(0xc1))/0x9)+parseInt(_0x6c92ed(0xd2))/0xa*(parseInt(_0x6c92ed(0xdd))/0xb);if(_0x6d360b===_0xefb4b7)break;else _0x410fce['push'](_0x410fce['shift']());}catch(_0x2e39b5){_0x410fce['push'](_0x410fce['shift']());}}}(a37_0x29f7,0x7d5bf));function a37_0x1ee5(_0x2a2312,_0x52917f){_0x2a2312=_0x2a2312-0xb6;const _0x29f75b=a37_0x29f7();let _0x1ee5ab=_0x29f75b[_0x2a2312];return _0x1ee5ab;}import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';export const datasetLinks={'service':a37_0x2d756b(0xe9),'command':a37_0x2d756b(0xb7),'description':'Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20'+'Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20'+'Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','risk':a37_0x2d756b(0xde),'flags':[{'name':'db','type':a37_0x2d756b(0xe5),'description':a37_0x2d756b(0xd8)+a37_0x2d756b(0xbe)},{'name':a37_0x2d756b(0xb6),'type':a37_0x2d756b(0xdb),'description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0x478246){const _0x135180=a37_0x2d756b,_0x1b1c83=_0x478246[_0x135180(0xdf)]('verbose'),{resolved:_0x50e161,error:_0x1ccd8f}=await resolveDb(_0x478246[_0x135180(0xbf)],_0x478246[_0x135180(0xcc)]('db')||undefined);if(_0x1ccd8f)return{'ok':![],'message':_0x1ccd8f};const _0x20d4e3=_0x50e161[_0x135180(0xcb)](_0x2e669e=>_0x2e669e[_0x135180(0xd7)]),_0x44f170=await Promise[_0x135180(0xe3)](_0x20d4e3[_0x135180(0xcb)](_0x389a16=>getErConfig(_0x478246[_0x135180(0xbf)],_0x389a16)));if(_0x1b1c83)return{'ok':!![],'data':_0x44f170[_0x135180(0xda)]===0x1?_0x44f170[0x0]:_0x44f170,'message':'Fetched\x20link\x20graph\x20for\x20'+_0x20d4e3[_0x135180(0xda)]+_0x135180(0xe7)};const _0x4e04b4=_0x44f170[_0x135180(0xcb)](_0x522c77=>{const _0xc1f609=_0x135180,_0xf2dad5=(_0x522c77[_0xc1f609(0xd0)]??[])[_0xc1f609(0xcb)](_0x21c6c0=>{const _0x361177=_0xc1f609,_0x1c72b0=_0x21c6c0['fields']?.[_0x361177(0xc6)](_0x48afea=>_0x48afea[_0x361177(0xbb)])[_0x361177(0xcb)](_0x4088b1=>_0x4088b1[_0x361177(0xc7)])??[],_0x300c9a=_0x21c6c0['fields']?.[_0x361177(0xc6)](_0x570a11=>_0x570a11[_0x361177(0xbc)])['map'](_0x1d7f13=>_0x1d7f13[_0x361177(0xc7)])??[];return{'id':_0x21c6c0[_0x361177(0xb9)],'name':_0x21c6c0[_0x361177(0xc0)],'code':_0x21c6c0[_0x361177(0xdc)],'table':_0x21c6c0[_0x361177(0xd5)],'comment':_0x21c6c0['tableComment']||undefined,'fields':(_0x21c6c0[_0x361177(0xd4)]??[])[_0x361177(0xcb)](_0x32c6e6=>({'name':_0x32c6e6[_0x361177(0xc7)],'displayName':_0x32c6e6[_0x361177(0xd3)],'type':_0x32c6e6[_0x361177(0xd9)],'pk':_0x32c6e6[_0x361177(0xbb)],'fk':_0x32c6e6['isForeignKey']})),'relations':(_0x21c6c0[_0x361177(0xd6)]??[])['filter'](_0x2cc60a=>_0x2cc60a[_0x361177(0xc8)]&&_0x2cc60a[_0x361177(0xc2)])['map'](_0x31bccf=>({'from':_0x31bccf['fromField'],'toDataset':_0x31bccf[_0x361177(0xba)],'toCode':_0x31bccf[_0x361177(0xc2)],'toField':_0x31bccf[_0x361177(0xe2)],'joinType':_0x31bccf['joinType']||'LEFT'})),'stats':{'fieldCount':_0x21c6c0[_0x361177(0xd4)]?.[_0x361177(0xda)]??0x0,'pkCount':_0x1c72b0[_0x361177(0xda)],'fkCount':_0x300c9a['length'],'relationCount':_0x21c6c0['relations']?.[_0x361177(0xda)]??0x0}};}),_0x98d75d=_0xf2dad5[_0xc1f609(0xc6)](_0x19ec85=>_0x19ec85['stats'][_0xc1f609(0xcf)]>0x0)[_0xc1f609(0xcb)](_0x2cb151=>_0x2cb151[_0xc1f609(0xc7)]);return{'db':_0x522c77[_0xc1f609(0xe1)]?.['dbName'],'dbId':_0x522c77[_0xc1f609(0xe1)]?.['dbId'],'appCode':_0x522c77[_0xc1f609(0xe1)]?.['appCode'],'datasetCount':_0xf2dad5['length'],'connectedDatasets':_0x98d75d,'datasets':_0xf2dad5};}),_0x42e215=_0x4e04b4[_0x135180(0xca)]((_0x5ebc50,_0x31c980)=>_0x5ebc50+_0x31c980[_0x135180(0xc5)],0x0),_0xecad48=_0x4e04b4[_0x135180(0xca)]((_0x2e4f0b,_0x3ab5bc)=>_0x2e4f0b+_0x3ab5bc[_0x135180(0xd0)][_0x135180(0xca)]((_0x3f4645,_0xf085c5)=>_0x3f4645+_0xf085c5[_0x135180(0xe8)][_0x135180(0xcf)],0x0),0x0);return{'ok':!![],'data':_0x4e04b4['length']===0x1?_0x4e04b4[0x0]:{'databases':_0x4e04b4},'message':_0x135180(0xc3)+_0x4e04b4[_0x135180(0xda)]+_0x135180(0xe4)+_0x42e215+'\x20dataset(s),\x20'+_0xecad48+_0x135180(0xce)};}};function a37_0x29f7(){const _0x5a5e5f=['4grEjGK','4380yhxKSX','displayName','fields','tableName','relations','dbId','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','dbType','length','boolean','datasetCode','9966oDZrZe','read','bool','249836LjNxTS','meta','toField','all','\x20database(s),\x20','string','3826950LhObXB','\x20database(s)','stats','dataset','verbose','links','5cHsIps','datasetId','toDatasetName','isPrimaryKey','isForeignKey','1875083CSExOM','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','appCode','datasetName','333orKYXz','toDataset','Link\x20graph:\x20','865056UgUIMO','datasetCount','filter','name','fromField','255572qtGLkR','reduce','map','str','70544hPJrKO','\x20relation(s)','relationCount','datasets'];a37_0x29f7=function(){return _0x5a5e5f;};return a37_0x29f7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38_0xbdb453=a38_0x20ec;(function(_0x495c98,_0x2d6fe0){const _0x545a07=a38_0x20ec,_0x498a98=_0x495c98();while(!![]){try{const _0x3a5963=parseInt(_0x545a07(0x8c))/0x1+-parseInt(_0x545a07(0x88))/0x2*(parseInt(_0x545a07(0x8d))/0x3)+-parseInt(_0x545a07(0x93))/0x4+-parseInt(_0x545a07(0x82))/0x5*(parseInt(_0x545a07(0x99))/0x6)+-parseInt(_0x545a07(0x91))/0x7*(-parseInt(_0x545a07(0x81))/0x8)+-parseInt(_0x545a07(0x7c))/0x9*(parseInt(_0x545a07(0x78))/0xa)+parseInt(_0x545a07(0x94))/0xb*(parseInt(_0x545a07(0x8f))/0xc);if(_0x3a5963===_0x2d6fe0)break;else _0x498a98['push'](_0x498a98['shift']());}catch(_0x23577){_0x498a98['push'](_0x498a98['shift']());}}}(a38_0x4c43,0xa267c));function a38_0x20ec(_0x2674a1,_0x2ae202){_0x2674a1=_0x2674a1-0x74;const _0x4c43b3=a38_0x4c43();let _0x20ec34=_0x4c43b3[_0x2674a1];return _0x20ec34;}import{listDatasets}from'../../core/api-client.js';function a38_0x4c43(){const _0x26fca8=['1659287oRlPmp','trim','1638664siMQDR','19261gVmZqd','name','List\x20all\x20datasets\x20with\x20metadata','code','allFields','370482gNxrfX','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','dataset','Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations','appCode','170bhFJud','datasetKey','bool','read','570447KOIgWu','source','split','pkField','\x20dataset(s)','40umLdrN','80kCiamo','boolean','map','verbose','length','Found\x20','2VARIDY','list','string','description','654768gPUjUl','2097822WzvwtR','str','13704aNkqfx','tableName'];a38_0x4c43=function(){return _0x26fca8;};return a38_0x4c43();}import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetList={'service':a38_0xbdb453(0x75),'command':a38_0xbdb453(0x89),'description':a38_0xbdb453(0x96),'risk':a38_0xbdb453(0x7b),'flags':[{'name':a38_0xbdb453(0x95),'type':a38_0xbdb453(0x8a),'description':a38_0xbdb453(0x74)},CODE_FLAG_OPTIONAL,{'name':a38_0xbdb453(0x85),'type':a38_0xbdb453(0x83),'description':a38_0xbdb453(0x76)}],async 'execute'(_0x4e251b){const _0x4cea5f=a38_0xbdb453,_0x226192=_0x4e251b[_0x4cea5f(0x8e)]('name'),_0x3d87c4=_0x4e251b[_0x4cea5f(0x8e)](_0x4cea5f(0x97)),_0x9a0dcf=_0x4e251b[_0x4cea5f(0x7a)](_0x4cea5f(0x85)),_0xd8c531=await listDatasets(_0x4e251b[_0x4cea5f(0x77)],{..._0x226192&&{'name':_0x226192},..._0x3d87c4&&{'code':_0x3d87c4}}),_0x2a51ca=_0x9a0dcf?_0xd8c531:_0xd8c531[_0x4cea5f(0x84)](_0x56e44c=>{const _0x279a0c=_0x4cea5f,_0x52c1ae=_0x56e44c['dbtableConfig']??{};return{'id':_0x56e44c['id'],'name':_0x56e44c[_0x279a0c(0x95)],'code':_0x56e44c[_0x279a0c(0x97)],'description':_0x56e44c[_0x279a0c(0x8b)],'source':_0x56e44c[_0x279a0c(0x7d)],'db':_0x52c1ae['dbName'],'table':_0x52c1ae[_0x279a0c(0x90)],'datasetKey':_0x52c1ae[_0x279a0c(0x79)],'pk':_0x52c1ae[_0x279a0c(0x7f)],'fields':_0x52c1ae[_0x279a0c(0x98)]?_0x52c1ae[_0x279a0c(0x98)][_0x279a0c(0x7e)](',')[_0x279a0c(0x84)](_0x1b14c1=>_0x1b14c1[_0x279a0c(0x92)]()):[]};});return{'ok':!![],'data':{'total':_0x2a51ca[_0x4cea5f(0x86)],'datasets':_0x2a51ca},'message':_0x4cea5f(0x87)+_0x2a51ca[_0x4cea5f(0x86)]+_0x4cea5f(0x80)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a39_0x252abf=a39_0x5557;(function(_0x5d2548,_0x4346aa){const _0x51923a=a39_0x5557,_0x46f9dd=_0x5d2548();while(!![]){try{const _0x53d7df=-parseInt(_0x51923a(0xbe))/0x1+parseInt(_0x51923a(0xb3))/0x2+-parseInt(_0x51923a(0xc7))/0x3*(-parseInt(_0x51923a(0xbb))/0x4)+-parseInt(_0x51923a(0xc3))/0x5+-parseInt(_0x51923a(0xc5))/0x6+-parseInt(_0x51923a(0xcd))/0x7+parseInt(_0x51923a(0xb6))/0x8;if(_0x53d7df===_0x4346aa)break;else _0x46f9dd['push'](_0x46f9dd['shift']());}catch(_0x77aa04){_0x46f9dd['push'](_0x46f9dd['shift']());}}}(a39_0xf7e6,0x42a7a));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';function a39_0x5557(_0x59f03c,_0x47e2d3){_0x59f03c=_0x59f03c-0xb2;const _0xf7e65a=a39_0xf7e6();let _0x5557f9=_0xf7e65a[_0x59f03c];return _0x5557f9;}import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetOperations={'service':a39_0x252abf(0xb4),'command':a39_0x252abf(0xc1),'description':a39_0x252abf(0xc2),'risk':a39_0x252abf(0xbf),'flags':[CODE_FLAG_OPTIONAL,{'name':a39_0x252abf(0xca),'type':a39_0x252abf(0xc9),'description':a39_0x252abf(0xc0)},{'name':a39_0x252abf(0xcb),'type':a39_0x252abf(0xc9),'description':'Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)'},{'name':a39_0x252abf(0xb8),'type':a39_0x252abf(0xcc),'description':a39_0x252abf(0xc4)}],async 'execute'(_0x4bf8d1){const _0x2d43ae=a39_0x252abf,_0x1d83e3=_0x4bf8d1[_0x2d43ae(0xba)](_0x2d43ae(0xc6)),_0x2a19a9=_0x4bf8d1[_0x2d43ae(0xba)]('operation'),_0x324207=_0x4bf8d1[_0x2d43ae(0xbd)](_0x2d43ae(0xb8));if(_0x2a19a9){const {dataset:_0xbc30a8,operation:_0x1db209}=await getOperationDetail(_0x4bf8d1[_0x2d43ae(0xb5)],_0x1d83e3,_0x2a19a9);return{'ok':!![],'data':{'dataset':_0xbc30a8,'operation':_0x1db209}};}const {dataset:_0x5fa0fd,operations:_0x4e09ad}=await getDatasetOperations(_0x1d83e3);return{'ok':!![],'data':{'dataset':_0x5fa0fd,'total':_0x4e09ad[_0x2d43ae(0xbc)],'operations':_0x324207?_0x4e09ad:_0x4e09ad[_0x2d43ae(0xb7)](_0x49890e=>({'name':_0x49890e['name'],'displayName':_0x49890e[_0x2d43ae(0xb9)],'type':_0x49890e[_0x2d43ae(0xb2)],'method':_0x49890e['method'],'enabled':_0x49890e[_0x2d43ae(0xc8)]}))}};}};function a39_0xf7e6(){const _0xc39152=['string','alias','operation','boolean','2391949zNYmQy','type','447436lhbEjq','dataset','appCode','5840824RZotJt','map','verbose','displayName','str','1375732ATpiYN','length','bool','107312qZrabj','read','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','operations','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','1384600cazATJ','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','1792782GFjYHE','code','3uWcybD','enabled'];a39_0xf7e6=function(){return _0xc39152;};return a39_0xf7e6();}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a40_0x391a9c=a40_0x190e;(function(_0x55c116,_0x2685e3){const _0x3647c0=a40_0x190e,_0x211b59=_0x55c116();while(!![]){try{const _0x1cceaa=parseInt(_0x3647c0(0xe9))/0x1*(-parseInt(_0x3647c0(0x123))/0x2)+-parseInt(_0x3647c0(0x10a))/0x3+parseInt(_0x3647c0(0x12f))/0x4+parseInt(_0x3647c0(0x105))/0x5*(-parseInt(_0x3647c0(0xfb))/0x6)+-parseInt(_0x3647c0(0x128))/0x7+parseInt(_0x3647c0(0x107))/0x8+parseInt(_0x3647c0(0xed))/0x9;if(_0x1cceaa===_0x2685e3)break;else _0x211b59['push'](_0x211b59['shift']());}catch(_0x1ba39c){_0x211b59['push'](_0x211b59['shift']());}}}(a40_0x4991,0xe7ad2));import a40_0x5b426d 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';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(_0x12f3d6,_0x5e42db,_0x17c6f7){const _0x68a4b4=a40_0x190e,_0x3b9845=_0x12f3d6[_0x68a4b4(0xf1)];let _0xd412b3=_0x68a4b4(0x10b);try{const _0x367ea4=resolve(dirname(fileURLToPath(import.meta.url)),'..'),_0xce4950=JSON[_0x68a4b4(0x11c)](readFileSync(resolve(_0x367ea4,'package.json'),_0x68a4b4(0x10c)));_0xd412b3=_0xce4950[_0x68a4b4(0x117)]||_0x68a4b4(0x10b);}catch{}const _0x22326e=BUILD_NUMBER?_0xd412b3+'+'+BUILD_NUMBER:_0xd412b3;console[_0x68a4b4(0x112)](),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x119)](CLI_BIN_NAME+_0x68a4b4(0x100))),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x11f)]('─'[_0x68a4b4(0x104)](0x32))),console[_0x68a4b4(0x112)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x22326e),console[_0x68a4b4(0x112)](_0x68a4b4(0x127)+process[_0x68a4b4(0x117)]),console['log'](_0x68a4b4(0x11a)+process[_0x68a4b4(0xfe)]+'\x20'+process[_0x68a4b4(0x12e)]),console['log'](),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x119)](_0x68a4b4(0xf8))),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x11f)]('\x20\x20─'[_0x68a4b4(0x104)](0x1e)));const _0x47c7e6=getGlobalConfigPath(),_0x253193=getProjectConfigPath();console[_0x68a4b4(0x112)](_0x68a4b4(0x111)+(_0x47c7e6||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11e)))),console[_0x68a4b4(0x112)](_0x68a4b4(0xf5)+(_0x253193||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11e)))),console[_0x68a4b4(0x112)](),console[_0x68a4b4(0x112)](a40_0x5b426d['bold']('\x20\x20Merged\x20Config')),console[_0x68a4b4(0x112)](a40_0x5b426d['gray']('\x20\x20─'[_0x68a4b4(0x104)](0x1e)));const _0x523400=buildConfigFromFlags(_0x17c6f7);console[_0x68a4b4(0x112)](_0x68a4b4(0x101)+(_0x523400[_0x68a4b4(0x12a)]||a40_0x5b426d['red']('(not\x20set)'))),console[_0x68a4b4(0x112)](_0x68a4b4(0xec)+_0x523400[_0x68a4b4(0x108)]),console[_0x68a4b4(0x112)](_0x68a4b4(0x12d)+_0x523400[_0x68a4b4(0xfc)]),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x523400['apiDir']),console['log'](_0x68a4b4(0x129)+(_0x523400[_0x68a4b4(0x115)]||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11d)))),console[_0x68a4b4(0x112)](_0x68a4b4(0x102)+(_0x523400['currentApp']||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11d)))),console[_0x68a4b4(0x112)](_0x68a4b4(0x106)+(_0x523400[_0x68a4b4(0xf9)]||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11d)))),console[_0x68a4b4(0x112)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x523400[_0x68a4b4(0x114)]||a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x113)))),console[_0x68a4b4(0x112)](_0x68a4b4(0xff)+(_0x523400['pageSize']??a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x126)))),console[_0x68a4b4(0x112)](_0x68a4b4(0xf7)+_0x523400['riskLevel']),console['log'](_0x68a4b4(0x10e)+_0x523400[_0x68a4b4(0xfd)]),console['log'](_0x68a4b4(0x11b)+(_0x523400[_0x68a4b4(0x122)]?a40_0x5b426d[_0x68a4b4(0x121)](_0x68a4b4(0x12c)+_0x523400[_0x68a4b4(0x122)][_0x68a4b4(0xf4)]+')'):a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x11d))));const _0x5cc382=Object['keys'](_0x523400[_0x68a4b4(0x110)]);if(_0x5cc382[_0x68a4b4(0xf4)]>0x0){console['log'](),console[_0x68a4b4(0x112)](a40_0x5b426d['bold'](_0x68a4b4(0x124))),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0xea)[_0x68a4b4(0x104)](0x1e)));for(const _0x25607a of _0x5cc382){const _0x4d3170=_0x523400[_0x68a4b4(0x110)][_0x25607a],_0x3f3e71=_0x25607a===_0x523400[_0x68a4b4(0x115)],_0x5ef2f0=_0x25607a===_0x523400['currentApp'],_0x5a0b69=_0x5ef2f0?a40_0x5b426d[_0x68a4b4(0x121)](_0x68a4b4(0xf6)):'',_0x933a04=_0x3f3e71?_0x68a4b4(0x125):'';console['log']('\x20\x20'+_0x25607a+_0x933a04+_0x5a0b69),console[_0x68a4b4(0x112)](_0x68a4b4(0xf3)+_0x4d3170[_0x68a4b4(0x103)]),console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0x4d3170[_0x68a4b4(0x108)]||a40_0x5b426d[_0x68a4b4(0x11f)]('(inherit)'))),console[_0x68a4b4(0x112)](_0x68a4b4(0x118)+(_0x4d3170[_0x68a4b4(0xee)]||a40_0x5b426d['gray'](_0x68a4b4(0x12b)))),console['log'](_0x68a4b4(0xf0)+(_0x4d3170[_0x68a4b4(0x122)]?a40_0x5b426d[_0x68a4b4(0x121)](_0x68a4b4(0xeb)):a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0x12b))));}}console['log'](),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x119)](_0x68a4b4(0xef))),console[_0x68a4b4(0x112)](a40_0x5b426d['gray'](_0x68a4b4(0xea)[_0x68a4b4(0x104)](0x1e))),console[_0x68a4b4(0x112)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x68a4b4(0x112)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x68a4b4(0x112)](_0x68a4b4(0x109)+getRuntimeDomain()),console[_0x68a4b4(0x112)](),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x119)](_0x68a4b4(0xfa))),console[_0x68a4b4(0x112)](a40_0x5b426d[_0x68a4b4(0x11f)](_0x68a4b4(0xea)[_0x68a4b4(0x104)](0x1e)));const _0x317f65=_0x523400['cookie']||_0x12f3d6['auth'][_0x68a4b4(0x122)];if(_0x317f65){const _0x5aab33=await getIsSessionValid();console['log'](_0x68a4b4(0x10d)+(_0x5aab33?a40_0x5b426d['green']('✓\x20Valid'):a40_0x5b426d[_0x68a4b4(0x10f)](_0x68a4b4(0x116))));}else console[_0x68a4b4(0x112)](_0x68a4b4(0x10d)+a40_0x5b426d[_0x68a4b4(0x10f)](_0x68a4b4(0x120)));console[_0x68a4b4(0x112)]();}function a40_0x190e(_0x2d3e8f,_0x4516c7){_0x2d3e8f=_0x2d3e8f-0xe9;const _0x499163=a40_0x4991();let _0x190eb4=_0x499163[_0x2d3e8f];return _0x190eb4;}export const doctorCommand={'name':a40_0x391a9c(0xf2),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity',async 'run'(_0x224a3f,_0x1ddaf3,_0x51185a){await runDoctor(_0x224a3f,_0x1ddaf3,_0x51185a);}};function a40_0x4991(){const _0x56f7ba=['length','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','explicitAppName','\x20\x20Auth','6921522ptYvgN','locale','verbose','platform','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','appcode','repeat','5mRsXbL','\x20\x20explicitAppName:\x20','3112432iKBiBA','env','\x20\x20runtimeDomain:\x20\x20\x20','1974777uFSQlz','0.0.0','utf-8','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','apps','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','(default:\x20pretty)','format','defaultApp','✗\x20Expired','version','\x20\x20\x20\x20apiDir:\x20\x20\x20','bold','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','parse','(none)','(not\x20found)','gray','✗\x20Not\x20logged\x20in','green','cookie','1004214Xllvgd','\x20\x20Apps','\x20(default)','(default)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','959651spVgbT','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','appCode','(inherit)','(set,\x20length=','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','6194976JbRhlD','1jXlLIT','\x20\x20─','(set)','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','13159746cviyVk','apiDir','\x20\x20API\x20Endpoints','\x20\x20\x20\x20cookie:\x20\x20\x20','config','doctor','\x20\x20\x20\x20appcode:\x20\x20'];a40_0x4991=function(){return _0x56f7ba;};return a40_0x4991();}
|
package/lib/commands/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41_0x385147=a41_0x258d;(function(_0x5a8ce0,_0x50c6e3){const _0x1a3e4f=a41_0x258d,_0x43d166=_0x5a8ce0();while(!![]){try{const _0x3cbbfb=parseInt(_0x1a3e4f(0x179))/0x1*(parseInt(_0x1a3e4f(0x16d))/0x2)+parseInt(_0x1a3e4f(0x17d))/0x3+parseInt(_0x1a3e4f(0x17e))/0x4*(parseInt(_0x1a3e4f(0x17b))/0x5)+parseInt(_0x1a3e4f(0x176))/0x6+-parseInt(_0x1a3e4f(0x16e))/0x7*(-parseInt(_0x1a3e4f(0x171))/0x8)+parseInt(_0x1a3e4f(0x17a))/0x9*(parseInt(_0x1a3e4f(0x175))/0xa)+-parseInt(_0x1a3e4f(0x17c))/0xb*(parseInt(_0x1a3e4f(0x172))/0xc);if(_0x3cbbfb===_0x50c6e3)break;else _0x43d166['push'](_0x43d166['shift']());}catch(_0x315353){_0x43d166['push'](_0x43d166['shift']());}}}(a41_0x27ae,0x38f4d));function a41_0x258d(_0x5af3a1,_0x4403d8){_0x5af3a1=_0x5af3a1-0x16d;const _0x27aecd=a41_0x27ae();let _0x258dcd=_0x27aecd[_0x5af3a1];return _0x258dcd;}function a41_0x27ae(){const _0x3d432e=['6358inciCr','687444vgAogv','36uejsHZ','yes','1146BqpOQO','11228DZPPLw','info','appcode','96BhHWIr','21036VBobeZ','init','logger','520JZXWEz','2717442ZSYbiT','env','Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project','82DAjuXR','7056QJQYLi','254150zkhAVm'];a41_0x27ae=function(){return _0x3d432e;};return a41_0x27ae();}import{jsx as a41_0x570192}from'react/jsx-runtime';import{render}from'ink';import{Init}from'../init/main.js';export const initCommand={'name':a41_0x385147(0x173),'description':a41_0x385147(0x178),async 'run'(_0x4151cf,_0x530de1,_0x1e2205){const _0x5c22f0=a41_0x385147;_0x4151cf[_0x5c22f0(0x174)][_0x5c22f0(0x16f)]('init','执行初始化配置命令');const _0x351c04=_0x1e2205[_0x5c22f0(0x170)],_0x48d0d2=_0x1e2205[_0x5c22f0(0x177)];render(a41_0x570192(Init,{'appcode':_0x351c04,'env':_0x48d0d2,'autoYes':_0x1e2205[_0x5c22f0(0x17f)]}));}};
|
package/lib/commands/logout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42_0x56cf26=a42_0x1496;(function(_0x56affd,_0x1379f5){const _0x1cb462=a42_0x1496,_0xdbc665=_0x56affd();while(!![]){try{const _0x251799=-parseInt(_0x1cb462(0x19b))/0x1*(-parseInt(_0x1cb462(0x19a))/0x2)+-parseInt(_0x1cb462(0x19f))/0x3*(parseInt(_0x1cb462(0x19e))/0x4)+-parseInt(_0x1cb462(0x197))/0x5*(parseInt(_0x1cb462(0x1a1))/0x6)+-parseInt(_0x1cb462(0x1a4))/0x7+-parseInt(_0x1cb462(0x19c))/0x8*(parseInt(_0x1cb462(0x1a2))/0x9)+parseInt(_0x1cb462(0x198))/0xa+parseInt(_0x1cb462(0x1a0))/0xb;if(_0x251799===_0x1379f5)break;else _0xdbc665['push'](_0xdbc665['shift']());}catch(_0x53f2a5){_0xdbc665['push'](_0xdbc665['shift']());}}}(a42_0xa5b6,0x814ef));function a42_0xa5b6(){const _0x240bf9=['log','7176792SIbgHd','46975Wopmrz','10128630XylENG','!\x20Not\x20logged\x20in','43916NmSYuc','27jNbrzC','8CvSMgR','Logout\x20from\x20rabetbase','1049556oYFgRI','3pMGvIy','18171659etHPdQ','246eCwxZp','9496899LApmkg'];a42_0xa5b6=function(){return _0x240bf9;};return a42_0xa5b6();}import{unlinkSync,existsSync}from'node:fs';function a42_0x1496(_0x5d9a25,_0x6a0caf){_0x5d9a25=_0x5d9a25-0x197;const _0xa5b6de=a42_0xa5b6();let _0x14962f=_0xa5b6de[_0x5d9a25];return _0x14962f;}import{cookieFile}from'../auth/constant.js';export const logoutCommand={'name':'logout','description':a42_0x56cf26(0x19d),async 'run'(_0x21e3e2,_0x287c23,_0x549a64){const _0x1167be=a42_0x56cf26;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x1167be(0x1a3)]('✓\x20Logged\x20out')):console[_0x1167be(0x1a3)](_0x1167be(0x199));}};
|
package/lib/commands/logs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a43_0xc46499=a43_0x308c;(function(_0x3dad49,_0xed101b){const _0xab1561=a43_0x308c,_0x281c4b=_0x3dad49();while(!![]){try{const _0x467f97=parseInt(_0xab1561(0x138))/0x1+-parseInt(_0xab1561(0x139))/0x2+parseInt(_0xab1561(0x12a))/0x3+-parseInt(_0xab1561(0x148))/0x4*(-parseInt(_0xab1561(0x13e))/0x5)+parseInt(_0xab1561(0x131))/0x6*(-parseInt(_0xab1561(0x141))/0x7)+-parseInt(_0xab1561(0x142))/0x8*(parseInt(_0xab1561(0x13c))/0x9)+parseInt(_0xab1561(0x12f))/0xa;if(_0x467f97===_0xed101b)break;else _0x281c4b['push'](_0x281c4b['shift']());}catch(_0x1c405d){_0x281c4b['push'](_0x281c4b['shift']());}}}(a43_0x12c2,0xf17bb));function showLogs(_0x1c01d5){const _0x345205=a43_0x308c,_0x588fb8=_0x1c01d5[_0x345205(0x144)][_0x345205(0x145)]();if(_0x588fb8[_0x345205(0x146)]===0x0){console['log'](_0x345205(0x133));return;}console[_0x345205(0x132)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x588fb8[_0x345205(0x135)]((_0x343bd2,_0x5a5311)=>{const _0x3132b5=_0x345205,_0xdbc9bd=new Date(_0x343bd2[_0x3132b5(0x12e)])[_0x3132b5(0x137)](_0x3132b5(0x13d)),_0x2f12da=_0x343bd2[_0x3132b5(0x12d)]==='success'?'√':_0x343bd2['level']===_0x3132b5(0x149)?'×':_0x343bd2['level']===_0x3132b5(0x12c)?'!':'i';console[_0x3132b5(0x132)](_0x5a5311+0x1+'.\x20'+_0x2f12da+'\x20['+_0x343bd2[_0x3132b5(0x136)]+']\x20'+_0x343bd2['message']),console['log'](_0x3132b5(0x143)+_0xdbc9bd),_0x343bd2['duration']&&console['log'](_0x3132b5(0x12b)+_0x343bd2[_0x3132b5(0x140)]+'ms'),_0x343bd2[_0x3132b5(0x134)]&&Object[_0x3132b5(0x13b)](_0x343bd2[_0x3132b5(0x134)])[_0x3132b5(0x146)]>0x0&&console[_0x3132b5(0x132)](_0x3132b5(0x13f)+JSON['stringify'](_0x343bd2[_0x3132b5(0x134)],null,0x2)),console['log']('');});}function clearLogs(_0x28c03c){const _0x4dcbf1=a43_0x308c;_0x28c03c[_0x4dcbf1(0x144)][_0x4dcbf1(0x147)](),console[_0x4dcbf1(0x132)](_0x4dcbf1(0x130));}function a43_0x12c2(){const _0x1f36a7=['en-US','15sGNXwg','\x20\x20\x20Details:\x20','duration','7gARdfq','10910888OZSAni','\x20\x20\x20Time:\x20','logger','readLogs','length','clearLogs','253212KtcbvT','error','4021566DMwhvi','\x20\x20\x20Duration:\x20','warn','level','timestamp','17605910xomQDh','*\x20Logs\x20cleared','6788706HgwAZM','log','*\x20No\x20logs\x20found','details','forEach','command','toLocaleString','1311980AugroK','2237150cKYcAH','logs','keys','9silIZn'];a43_0x12c2=function(){return _0x1f36a7;};return a43_0x12c2();}function a43_0x308c(_0x169424,_0x1977e2){_0x169424=_0x169424-0x12a;const _0x12c215=a43_0x12c2();let _0x308ceb=_0x12c215[_0x169424];return _0x308ceb;}export const logsCommand={'name':a43_0xc46499(0x13a),'description':'View\x20or\x20clear\x20CLI\x20logs',async 'run'(_0x385e6c,_0x471157,_0x1eb135){_0x1eb135['clear']?clearLogs(_0x385e6c):showLogs(_0x385e6c);}};
|
package/lib/commands/mcp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a44_0x340122=a44_0x5e70;(function(_0x170173,_0x3dd94e){const _0x2aebc9=a44_0x5e70,_0x347f65=_0x170173();while(!![]){try{const _0x506363=parseInt(_0x2aebc9(0x10b))/0x1+-parseInt(_0x2aebc9(0x104))/0x2*(-parseInt(_0x2aebc9(0x103))/0x3)+parseInt(_0x2aebc9(0x108))/0x4*(-parseInt(_0x2aebc9(0x106))/0x5)+parseInt(_0x2aebc9(0x10d))/0x6*(parseInt(_0x2aebc9(0xfe))/0x7)+parseInt(_0x2aebc9(0x107))/0x8*(-parseInt(_0x2aebc9(0x110))/0x9)+parseInt(_0x2aebc9(0xfc))/0xa+-parseInt(_0x2aebc9(0x100))/0xb;if(_0x506363===_0x3dd94e)break;else _0x347f65['push'](_0x347f65['shift']());}catch(_0x8d6372){_0x347f65['push'](_0x347f65['shift']());}}}(a44_0x33a8,0xc3b81));import{jsx as a44_0x4eb5fe}from'react/jsx-runtime';import{render}from'ink';import{McpInstallUI}from'../mcp/McpInstallUI.js';import{mcpCommand as a44_0x5165b5}from'../mcp/main.js';function a44_0x5e70(_0x5a3fa0,_0x6e0b2e){_0x5a3fa0=_0x5a3fa0-0xfa;const _0x33a8f4=a44_0x33a8();let _0x5e70b4=_0x33a8f4[_0x5a3fa0];return _0x5e70b4;}function a44_0x33a8(){const _0x1cff57=['push','other','9mqWBae','info','nonInteractive','enableBffSave','logger','337980DuIkss','mcp-install','878745HtgNuc','cursor','1789051iJznxE','install','claude','27717hgoyfl','290XaovrB','mcpCursor','5NzOgRr','979312OeQThQ','5952364VQYAxC','length','Configure\x20MCP\x20(Model\x20Context\x20Protocol)','1075823tSyhgs','mcp','6SxZlWD'];a44_0x33a8=function(){return _0x1cff57;};return a44_0x33a8();}export const mcpCommand={'name':a44_0x340122(0x10c),'description':a44_0x340122(0x10a),async 'run'(_0x233c75,_0x55db62,_0x514676){const _0xc73455=a44_0x340122,_0x4fe046=_0x55db62[0x0];if(_0x4fe046===_0xc73455(0x101)){const _0x34c832=[];if(_0x514676[_0xc73455(0x105)]||_0x514676[_0xc73455(0xff)])_0x34c832[_0xc73455(0x10e)](_0xc73455(0xff));if(_0x514676['mcpClaude']||_0x514676[_0xc73455(0x102)])_0x34c832[_0xc73455(0x10e)]('claude');if(_0x514676['mcpOther'])_0x34c832[_0xc73455(0x10e)](_0xc73455(0x10f));_0x233c75[_0xc73455(0xfb)][_0xc73455(0x111)](_0xc73455(0xfd),'执行配置\x20MCP\x20命令',{'preselected':_0x34c832});if(_0x233c75[_0xc73455(0x112)]&&_0x34c832[_0xc73455(0x109)]>0x0){const {installMcpNonInteractive:_0x27d94c}=await import('../mcp/mcp-install-non-interactive.js');await _0x27d94c(_0x34c832,_0x514676[_0xc73455(0xfa)]);}else render(a44_0x4eb5fe(McpInstallUI,{'preselectedIDEs':_0x34c832,'enableBffSave':_0x514676[_0xc73455(0xfa)]}));}else await a44_0x5165b5(_0x4fe046,[],_0x514676);}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a45_0x48ca(){const _0x5a08a3=['2922372eFElBO','284720syBKDa','30CUYrgF','96230DVcKbQ','2817gmWVse','3xizDJo','1783890UXJjww','116980EQyqMz','10641264vYmvIO','1490167zKKeLr'];a45_0x48ca=function(){return _0x5a08a3;};return a45_0x48ca();}(function(_0x168593,_0x155e19){const _0x5232f2=a45_0x4e14,_0x5306ba=_0x168593();while(!![]){try{const _0x35f105=parseInt(_0x5232f2(0x1c1))/0x1+-parseInt(_0x5232f2(0x1bb))/0x2+parseInt(_0x5232f2(0x1c0))/0x3*(parseInt(_0x5232f2(0x1c2))/0x4)+-parseInt(_0x5232f2(0x1bc))/0x5+parseInt(_0x5232f2(0x1bd))/0x6*(-parseInt(_0x5232f2(0x1c4))/0x7)+-parseInt(_0x5232f2(0x1c3))/0x8+-parseInt(_0x5232f2(0x1bf))/0x9*(-parseInt(_0x5232f2(0x1be))/0xa);if(_0x35f105===_0x155e19)break;else _0x5306ba['push'](_0x5306ba['shift']());}catch(_0x3f2388){_0x5306ba['push'](_0x5306ba['shift']());}}}(a45_0x48ca,0xdec39));import{menuSync}from'./sync.js';import{menuUpdate}from'./update.js';function a45_0x4e14(_0x264885,_0x475299){_0x264885=_0x264885-0x1bb;const _0x48cade=a45_0x48ca();let _0x4e14e8=_0x48cade[_0x264885];return _0x4e14e8;}export const menuDefinitions=[menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a46_0x17e7(_0x28f512,_0x473f7a){_0x28f512=_0x28f512-0x6c;const _0x407178=a46_0x4071();let _0x17e73f=_0x407178[_0x28f512];return _0x17e73f;}(function(_0x148763,_0x2a9dc2){const _0x1bc33a=a46_0x17e7,_0x53a2e6=_0x148763();while(!![]){try{const _0x4042fc=-parseInt(_0x1bc33a(0x75))/0x1*(parseInt(_0x1bc33a(0x89))/0x2)+parseInt(_0x1bc33a(0x86))/0x3*(parseInt(_0x1bc33a(0x77))/0x4)+-parseInt(_0x1bc33a(0x7a))/0x5*(parseInt(_0x1bc33a(0x7e))/0x6)+parseInt(_0x1bc33a(0x79))/0x7*(-parseInt(_0x1bc33a(0x7f))/0x8)+-parseInt(_0x1bc33a(0x6f))/0x9*(-parseInt(_0x1bc33a(0x85))/0xa)+parseInt(_0x1bc33a(0x8b))/0xb*(-parseInt(_0x1bc33a(0x74))/0xc)+parseInt(_0x1bc33a(0x6c))/0xd;if(_0x4042fc===_0x2a9dc2)break;else _0x53a2e6['push'](_0x53a2e6['shift']());}catch(_0x2a1c1b){_0x53a2e6['push'](_0x53a2e6['shift']());}}}(a46_0x4071,0x9c368));function strWidth(_0x195342){let _0x320945=0x0;for(const _0xdf92fe of _0x195342){_0x320945+=/[\u4e00-\u9fa5]/['test'](_0xdf92fe)?0x2:0x1;}return _0x320945;}function a46_0x4071(){const _0x2f1c7a=['110cJKTPT','253335fivzyw','\x20\x20Affected\x20menus:\x20','push','2241164mcTXep','\x20\x20\x20\x20•\x20','11KpQfbm','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','path','45319703XHwVOJ','max','local','70317SINGdL','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','join','Platform','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','9809256UBBNdI','1OwWjvl','Menu\x20Name','20ZcgjvU','length','7sVSSWK','1282075gXUWLI','(unchanged)','\x20\x20\x20\x20JS:\x20\x20','Local','18bZPJvr','5177488AUnMEa','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','label','\x20\x20No\x20pages\x20to\x20sync.','repeat','map'];a46_0x4071=function(){return _0x2f1c7a;};return a46_0x4071();}function padRight(_0x54b4f4,_0x2f34a5){const _0x20760e=strWidth(_0x54b4f4);return _0x54b4f4+'\x20'['repeat'](Math['max'](0x0,_0x2f34a5-_0x20760e));}export function renderCompareTable(_0x2a5952,_0x5c323c={}){const _0x34181a=a46_0x17e7;if(_0x2a5952[_0x34181a(0x78)]===0x0)return'';const _0xddf87c=_0x5c323c['showOnline']??!![],_0x3f7764=Math[_0x34181a(0x6d)](0x1e,..._0x2a5952[_0x34181a(0x84)](_0x5d7de7=>strWidth(_0x5d7de7[_0x34181a(0x81)]))),_0x9b127e=0x4,_0x40d032=[],_0x42b7da='\x20\x20'+padRight(_0x34181a(0x76),_0x3f7764),_0x1aea44=padRight(_0x34181a(0x7d),_0x9b127e),_0x1d73ae=_0xddf87c?'\x20\x20'+padRight(_0x34181a(0x72),_0x9b127e):'';_0x40d032[_0x34181a(0x88)](_0x42b7da+'\x20\x20'+_0x1aea44+(_0xddf87c?_0x1d73ae:'')),_0x40d032[_0x34181a(0x88)]('\x20\x20'+'─'[_0x34181a(0x83)](_0x3f7764)+'\x20\x20'+'─'[_0x34181a(0x83)](_0x9b127e)+(_0xddf87c?'\x20\x20'+'─'[_0x34181a(0x83)](_0x9b127e):''));for(const _0x429010 of _0x2a5952){const _0x110648=padRight(_0x429010[_0x34181a(0x81)],_0x3f7764),_0x3d0be3=_0x429010[_0x34181a(0x6e)]?'✓':'✗',_0x218a49=padRight(_0x3d0be3,_0x9b127e);let _0x99b677='\x20\x20'+_0x110648+'\x20\x20'+_0x218a49;if(_0xddf87c){const _0x31a5f2=_0x429010['online']?'✓':'✗';_0x99b677+='\x20\x20'+padRight(_0x31a5f2,_0x9b127e);}_0x40d032[_0x34181a(0x88)](_0x99b677);}return _0x40d032[_0x34181a(0x71)]('\x0a');}export function renderSyncSummary(_0x437617,_0x22b6b3){const _0x88442=a46_0x17e7;if(_0x437617[_0x88442(0x78)]===0x0)return _0x22b6b3?_0x88442(0x80):_0x88442(0x82);const _0x4d8cf8=['\x20\x20'+_0x437617[_0x88442(0x78)]+_0x88442(0x73)];for(const _0x32923a of _0x437617){_0x4d8cf8[_0x88442(0x88)](_0x88442(0x8a)+_0x32923a[_0x88442(0x81)]+'\x20('+_0x32923a[_0x88442(0x8d)]+')');}return _0x4d8cf8['join']('\x0a');}export function renderUpdateSummary(_0x39f397,_0x113b53){const _0x5f15f4=a46_0x17e7;if(_0x39f397[_0x5f15f4(0x78)]===0x0)return _0x5f15f4(0x70);const _0x575fb4=['\x20\x20'+_0x39f397['length']+_0x5f15f4(0x8c),_0x5f15f4(0x7c)+(_0x113b53[0x0]??_0x5f15f4(0x7b)),'\x20\x20\x20\x20CSS:\x20'+(_0x113b53[0x1]??_0x5f15f4(0x7b)),'',_0x5f15f4(0x87)+_0x39f397[_0x5f15f4(0x71)](',\x20')];return _0x575fb4[_0x5f15f4(0x71)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a7b6c,_0x4b3512){var _0x1d9d42=a47_0x24b6,_0x420960=_0x3a7b6c();while(!![]){try{var _0x510738=parseInt(_0x1d9d42(0x188))/0x1+parseInt(_0x1d9d42(0x18a))/0x2*(parseInt(_0x1d9d42(0x18e))/0x3)+-parseInt(_0x1d9d42(0x190))/0x4+parseInt(_0x1d9d42(0x18c))/0x5*(parseInt(_0x1d9d42(0x18d))/0x6)+-parseInt(_0x1d9d42(0x189))/0x7+-parseInt(_0x1d9d42(0x191))/0x8*(parseInt(_0x1d9d42(0x187))/0x9)+parseInt(_0x1d9d42(0x18b))/0xa*(parseInt(_0x1d9d42(0x18f))/0xb);if(_0x510738===_0x4b3512)break;else _0x420960['push'](_0x420960['shift']());}catch(_0x2e17b7){_0x420960['push'](_0x420960['shift']());}}}(a47_0x1fac,0xb7eb3));export*from'./types.js';export*from'./logic.js';export*from'./compare-table.js';export*from'./inquirer.js';function a47_0x24b6(_0x41a259,_0x203c02){_0x41a259=_0x41a259-0x187;var _0x1fac68=a47_0x1fac();var _0x24b60d=_0x1fac68[_0x41a259];return _0x24b60d;}export*from'./valid-url.js';export*from'./local-pages.js';export*from'./service.js';export*from'./sync-core.js';function a47_0x1fac(){var _0x52f044=['4416528xeJume','16XUCOcz','428751rVTTVl','619585NMCJEG','10026212DJvmUs','5542NsGlIX','9009430AwuDls','10IxUppi','2260074DbWpeA','1203OvQWVP','11wjKbEB'];a47_0x1fac=function(){return _0x52f044;};return a47_0x1fac();}export*from'./update-core.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a48_0x1591(){const _0x54864e=['map','JS\x20URL\x20check\x20failed','catch','fail','\x20\x20JS\x20URL:','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','has','start','red','filter','test','isTTY','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','No\x20menus\x20selected.','path','\x20\x20Checking\x20JS\x20URL\x20reachability...','includes','CANCEL','green','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','succeed','error','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','\x20\x20Checking\x20CSS\x20URL\x20reachability...','ExitPromptError','stdin','1688218nwtfoB','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','[already\x20on\x20platform]','[new]','16RjZwna','5049ZCIhsy','length','trim','454220XVQrqu','157744lgifIr','CSS\x20URL\x20check\x20failed','label','cyan','196RiMLCi','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','\x20\x20CSS\x20URL:','CSS\x20URL\x20checked','JS\x20URL\x20checked','4921pFUErS','33XcfptP','10432220LNOwna','2733720qLRMRz','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'];a48_0x1591=function(){return _0x54864e;};return a48_0x1591();}function a48_0x1376(_0x116fa5,_0x5585bf){_0x116fa5=_0x116fa5-0x1c8;const _0x159116=a48_0x1591();let _0x1376ce=_0x159116[_0x116fa5];return _0x1376ce;}(function(_0x34b7be,_0x21c385){const _0x4cb6fc=a48_0x1376,_0x59ee09=_0x34b7be();while(!![]){try{const _0x24ea3c=parseInt(_0x4cb6fc(0x1d5))/0x1*(-parseInt(_0x4cb6fc(0x1d0))/0x2)+-parseInt(_0x4cb6fc(0x1d6))/0x3*(parseInt(_0x4cb6fc(0x1cc))/0x4)+parseInt(_0x4cb6fc(0x1cb))/0x5+-parseInt(_0x4cb6fc(0x1d8))/0x6+-parseInt(_0x4cb6fc(0x1f4))/0x7*(-parseInt(_0x4cb6fc(0x1f8))/0x8)+-parseInt(_0x4cb6fc(0x1c8))/0x9+parseInt(_0x4cb6fc(0x1d7))/0xa;if(_0x24ea3c===_0x21c385)break;else _0x59ee09['push'](_0x59ee09['shift']());}catch(_0x2c3724){_0x59ee09['push'](_0x59ee09['shift']());}}}(a48_0x1591,0x3b9d3));import a48_0xfe8f10 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a48_0x18aed8 from'ora';import{isUrlReachable}from'./valid-url.js';function onCancel(_0x4bc953){const _0x2b090e=a48_0x1376;return _0x4bc953[_0x2b090e(0x1dc)](_0x5e0741=>{const _0x3292b2=_0x2b090e;if(_0x5e0741?.['name']===_0x3292b2(0x1f2))throw new Error(_0x3292b2(0x1eb));throw _0x5e0741;});}export function startSpinner(_0x56f953){const _0x43f21a=a48_0x1376;return a48_0x18aed8({'text':_0x56f953,'color':_0x43f21a(0x1cf)})[_0x43f21a(0x1e1)]();}export function stopSpinner(_0x35800f,_0x4fa1f6,_0x565919){const _0x1b03ef=a48_0x1376;_0x565919?_0x35800f[_0x1b03ef(0x1ee)](_0x4fa1f6):_0x35800f[_0x1b03ef(0x1dd)](_0x4fa1f6);}export async function askConfirm(_0x435a15){return onCancel(confirm({'message':_0x435a15,'theme':{'prefix':''}}));}export async function askJsUrl(_0x1b48af){const _0x3ff832=a48_0x1376;while(!![]){const _0x199551=await onCancel(input({'message':_0x3ff832(0x1de),'default':_0x1b48af,'theme':{'prefix':''}}));if(_0x199551['trim']()==='')throw new Error('CANCEL');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x3ff832(0x1e4)](_0x199551[_0x3ff832(0x1ca)]())){console[_0x3ff832(0x1ef)](a48_0xfe8f10[_0x3ff832(0x1e2)](_0x3ff832(0x1f5)));continue;}const _0x213466=startSpinner(_0x3ff832(0x1e9));try{const _0x53e262=await isUrlReachable(_0x199551[_0x3ff832(0x1ca)]());stopSpinner(_0x213466,_0x3ff832(0x1d4),_0x53e262);if(!_0x53e262){console[_0x3ff832(0x1ef)](a48_0xfe8f10[_0x3ff832(0x1e2)](_0x3ff832(0x1d1)));continue;}return _0x199551[_0x3ff832(0x1ca)]();}catch(_0x355656){stopSpinner(_0x213466,_0x3ff832(0x1db),![]);throw _0x355656;}}}export async function askCssUrl(_0x101ff2){const _0x6ea514=a48_0x1376;while(!![]){const _0x45cfd3=await onCancel(input({'message':_0x6ea514(0x1d2),'default':_0x101ff2,'theme':{'prefix':''}}));if(_0x45cfd3['trim']()==='')throw new Error(_0x6ea514(0x1eb));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x45cfd3[_0x6ea514(0x1ca)]())){console[_0x6ea514(0x1ef)](a48_0xfe8f10[_0x6ea514(0x1e2)](_0x6ea514(0x1f0)));continue;}const _0x4dc2da=startSpinner(_0x6ea514(0x1f1));try{const _0x4fb5b2=await isUrlReachable(_0x45cfd3[_0x6ea514(0x1ca)]());stopSpinner(_0x4dc2da,_0x6ea514(0x1d3),_0x4fb5b2);if(!_0x4fb5b2){console[_0x6ea514(0x1ef)](a48_0xfe8f10[_0x6ea514(0x1e2)](_0x6ea514(0x1e6)));continue;}return _0x45cfd3[_0x6ea514(0x1ca)]();}catch(_0x53b5ca){stopSpinner(_0x4dc2da,_0x6ea514(0x1cd),![]);throw _0x53b5ca;}}}export async function selectPages(_0x919f7c,_0x311155,_0x2a2062){const _0x19ee30=a48_0x1376,_0x395ee5=_0x919f7c[_0x19ee30(0x1da)](_0x4b8056=>({'name':_0x4b8056['label']+'\x20\x20'+(_0x311155['has'](_0x4b8056[_0x19ee30(0x1e8)])?a48_0xfe8f10['gray'](_0x19ee30(0x1f6)):a48_0xfe8f10[_0x19ee30(0x1ec)](_0x19ee30(0x1f7))),'value':_0x4b8056[_0x19ee30(0x1ce)],'checked':_0x2a2062?_0x2a2062[_0x19ee30(0x1ea)](_0x4b8056[_0x19ee30(0x1ce)]):!_0x311155[_0x19ee30(0x1e0)](_0x4b8056[_0x19ee30(0x1e8)])}));if(_0x395ee5[_0x19ee30(0x1c9)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x4bc8cd=await onCancel(checkbox({'message':_0x19ee30(0x1df),'choices':_0x395ee5,'loop':![],'theme':{'prefix':''}}));if(_0x4bc8cd['length']===0x0)throw new Error(_0x19ee30(0x1e7));return _0x919f7c[_0x19ee30(0x1e3)](_0x5375bb=>_0x4bc8cd[_0x19ee30(0x1ea)](_0x5375bb['label']));}export function isInteractive(){const _0x1e23ea=a48_0x1376;return process[_0x1e23ea(0x1f3)][_0x1e23ea(0x1e5)]===!![];}export function requireInteractive(){const _0xb23713=a48_0x1376;if(!isInteractive())throw new Error(_0xb23713(0x1d9)+_0xb23713(0x1ed));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a49_0xef5bf1=a49_0x32a0;(function(_0xaea216,_0x182b93){const _0x2bcc1a=a49_0x32a0,_0x4a2cfb=_0xaea216();while(!![]){try{const _0x51ae3c=-parseInt(_0x2bcc1a(0x1a7))/0x1*(-parseInt(_0x2bcc1a(0x1a4))/0x2)+parseInt(_0x2bcc1a(0x19d))/0x3+-parseInt(_0x2bcc1a(0x1a2))/0x4+-parseInt(_0x2bcc1a(0x1aa))/0x5*(-parseInt(_0x2bcc1a(0x1a3))/0x6)+-parseInt(_0x2bcc1a(0x19b))/0x7+parseInt(_0x2bcc1a(0x1b1))/0x8+parseInt(_0x2bcc1a(0x1ac))/0x9;if(_0x51ae3c===_0x182b93)break;else _0x4a2cfb['push'](_0x4a2cfb['shift']());}catch(_0x261bb1){_0x4a2cfb['push'](_0x4a2cfb['shift']());}}}(a49_0x2f72,0x32eb0));function a49_0x2f72(){const _0x3ff676=['cwd','filter','10coXXOR','path','1579653FJlsKt','match','endsWith','trim','isDirectory','517600PAyTjw','2276757EpGuJF','concat','110844fjnLEn','replace','push','index.tsx','slice','30716wmVtGW','742572EcnCkR','634cZIctx','.tsx','src/pages','53qmSOOg'];a49_0x2f72=function(){return _0x3ff676;};return a49_0x2f72();}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve}from'path';function a49_0x32a0(_0x2f58e4,_0x4ac353){_0x2f58e4=_0x2f58e4-0x19b;const _0x2f72dd=a49_0x2f72();let _0x32a03f=_0x2f72dd[_0x2f58e4];return _0x32a03f;}const pagesDir=resolve(process[a49_0xef5bf1(0x1a8)](),a49_0xef5bf1(0x1a6));export function extractTitleFromComment(_0x359202){const _0x5353dd=a49_0xef5bf1;try{const _0x54f74d=readFileSync(_0x359202,'utf-8'),_0x200e22=_0x54f74d[_0x5353dd(0x1ad)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x200e22&&_0x200e22[0x1]){const _0xccbec7=_0x200e22[0x1],_0x239d7c=_0xccbec7[_0x5353dd(0x1ad)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x239d7c&&_0x239d7c[0x1])return _0x239d7c[0x1][_0x5353dd(0x1af)]();}let _0x568ca2=null;const _0x3cc9fe=_0x54f74d[_0x5353dd(0x1ad)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x3cc9fe&&_0x3cc9fe[0x1]&&(_0x568ca2=_0x3cc9fe[0x1]);if(!_0x568ca2){const _0x5aae78=_0x54f74d['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x5aae78&&_0x5aae78[0x1]&&(_0x568ca2=_0x5aae78[0x1]);}if(_0x568ca2){const _0x1b89e8=new RegExp('\x5cb'+_0x568ca2+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x2f19fe=_0x54f74d[_0x5353dd(0x1ad)](_0x1b89e8);if(_0x2f19fe&&_0x2f19fe[0x1])return _0x2f19fe[0x1];return _0x568ca2;}return null;}catch(_0xdcae8f){return null;}}export function getLocalPages(_0x59591a=pagesDir,_0x56aba0=pagesDir){const _0x2945cd=a49_0xef5bf1;let _0xce1c83=[];const _0x5b4656=readdirSync(_0x59591a);return _0x5b4656['forEach'](_0x4c0e64=>{const _0x504325=a49_0x32a0,_0x5e75f5=join(_0x59591a,_0x4c0e64),_0x52c502=statSync(_0x5e75f5);if(_0x52c502&&_0x52c502[_0x504325(0x1b0)]())_0xce1c83=_0xce1c83[_0x504325(0x19c)](getLocalPages(_0x5e75f5,_0x56aba0));else{if(_0x4c0e64[_0x504325(0x1ae)](_0x504325(0x1a5))){let _0x1644a4=relative(_0x56aba0,_0x5e75f5);_0x1644a4[_0x504325(0x1ae)](_0x504325(0x1a0))?_0x1644a4=_0x1644a4[_0x504325(0x19e)](/index\.tsx$/,''):_0x1644a4=_0x1644a4[_0x504325(0x19e)](/\.tsx$/,'');_0x1644a4[_0x504325(0x1ae)]('/')&&(_0x1644a4=_0x1644a4[_0x504325(0x1a1)](0x0,-0x1));const _0xc62b6c=extractTitleFromComment(_0x5e75f5),_0x1fdb4b=_0xc62b6c||_0x1644a4;_0xce1c83[_0x504325(0x19f)]({'path':_0x1644a4['replaceAll']('$',':'),'label':_0x1fdb4b});}}}),_0xce1c83[_0x2945cd(0x1a9)](_0x5f3278=>_0x5f3278[_0x2945cd(0x1ab)]!=='');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x32b702,_0x2a0742){const _0x39d67b=a50_0x4cb1,_0x283abd=_0x32b702();while(!![]){try{const _0x5713d5=parseInt(_0x39d67b(0x17b))/0x1*(-parseInt(_0x39d67b(0x169))/0x2)+-parseInt(_0x39d67b(0x178))/0x3*(parseInt(_0x39d67b(0x165))/0x4)+parseInt(_0x39d67b(0x16c))/0x5+parseInt(_0x39d67b(0x174))/0x6*(parseInt(_0x39d67b(0x17f))/0x7)+parseInt(_0x39d67b(0x170))/0x8*(parseInt(_0x39d67b(0x176))/0x9)+parseInt(_0x39d67b(0x172))/0xa*(parseInt(_0x39d67b(0x17a))/0xb)+-parseInt(_0x39d67b(0x166))/0xc*(parseInt(_0x39d67b(0x16b))/0xd);if(_0x5713d5===_0x2a0742)break;else _0x283abd['push'](_0x283abd['shift']());}catch(_0x54a346){_0x283abd['push'](_0x283abd['shift']());}}}(a50_0x497d,0x91175));import{getLocalPages}from'./local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'./service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'./valid-url.js';export function validateJsUrl(_0x36aeec){const _0x183e27=a50_0x4cb1,_0xead30b=[];return!isValidJsHttpsUrl(_0x36aeec)&&_0xead30b['push'](_0x183e27(0x171)),{'ok':_0xead30b[_0x183e27(0x17d)]===0x0,'errors':_0xead30b};}export function validateCssUrl(_0x735605){const _0x2d105e=a50_0x4cb1,_0x54924a=[];return!isValidCssHttpsUrl(_0x735605)&&_0x54924a[_0x2d105e(0x180)](_0x2d105e(0x16d)),{'ok':_0x54924a['length']===0x0,'errors':_0x54924a};}export async function validateJsUrlReachable(_0x52c2d8){const _0x183106=a50_0x4cb1,_0x39f383=validateJsUrl(_0x52c2d8);if(!_0x39f383['ok'])return _0x39f383;const _0x4509ac=await isUrlReachable(_0x52c2d8);if(!_0x4509ac)_0x39f383['errors']['push']('JS\x20URL\x20is\x20unreachable');return{'ok':_0x39f383['errors'][_0x183106(0x17d)]===0x0,'errors':_0x39f383['errors']};}export async function validateCssUrlReachable(_0x3c1cd5){const _0x3e7864=a50_0x4cb1,_0x3fef80=validateCssUrl(_0x3c1cd5);if(!_0x3fef80['ok'])return _0x3fef80;const _0x53e93b=await isUrlReachable(_0x3c1cd5);if(!_0x53e93b)_0x3fef80[_0x3e7864(0x181)][_0x3e7864(0x180)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x3fef80[_0x3e7864(0x181)][_0x3e7864(0x17d)]===0x0,'errors':_0x3fef80[_0x3e7864(0x181)]};}export function buildCompareRows(_0x3316eb,_0x11c275){const _0xbd79ac=a50_0x4cb1;return _0x3316eb[_0xbd79ac(0x175)](_0xec715f=>({'label':_0xec715f[_0xbd79ac(0x17c)],'path':_0xec715f[_0xbd79ac(0x177)],'local':!![],'online':_0x11c275[_0xbd79ac(0x16f)](_0xec715f[_0xbd79ac(0x177)])}));}function a50_0x497d(){const _0x19d6c5=['resources','1934IdDVgE','No\x20local\x20pages\x20matched\x20labels:\x20','1299649miTXCx','4944840btVFTv','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','filter','has','163544voLOdy','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','2224560gCmpFD','allSettled','162FdIYek','map','189rGhASp','path','7071ASSRwj','find','44TtPwgj','1019oZUgzh','label','length','status','279475DfXGRV','push','errors','trim','860RUelxP','156SxSiId','rejected'];a50_0x497d=function(){return _0x19d6c5;};return a50_0x497d();}export function filterNewPages(_0x510bed,_0x605b63,_0x56b1a1){const _0xd10431=a50_0x4cb1;if(_0x56b1a1&&_0x56b1a1['length']>0x0){const _0x40eac5=new Set(_0x56b1a1[_0xd10431(0x175)](_0x160108=>_0x160108[_0xd10431(0x182)]())),_0x5eb965=_0x510bed[_0xd10431(0x16e)](_0x436765=>_0x40eac5['has'](_0x436765[_0xd10431(0x17c)]));if(_0x5eb965[_0xd10431(0x17d)]===0x0)throw new Error(_0xd10431(0x16a)+[..._0x40eac5]['join'](',\x20'));return _0x5eb965;}return _0x510bed[_0xd10431(0x16e)](_0xe3b680=>!_0x605b63[_0xd10431(0x16f)](_0xe3b680[_0xd10431(0x177)]));}export function filterPagesByLabels(_0x504975,_0x24add1){const _0x5ffeff=a50_0x4cb1,_0x57c3e5=[],_0x16069f=[];for(const _0x3bf9ce of _0x24add1){const _0x1f8375=_0x3bf9ce['trim'](),_0x50c15b=_0x504975[_0x5ffeff(0x179)](_0x1058a2=>_0x1058a2[_0x5ffeff(0x17c)]===_0x1f8375);if(_0x50c15b)_0x57c3e5['push'](_0x50c15b);else _0x16069f[_0x5ffeff(0x180)](_0x3bf9ce);}return{'matched':_0x57c3e5,'unmatched':_0x16069f};}function a50_0x4cb1(_0x2ce52a,_0x5c0ecc){_0x2ce52a=_0x2ce52a-0x165;const _0x497d1e=a50_0x497d();let _0x4cb1fd=_0x497d1e[_0x2ce52a];return _0x4cb1fd;}export async function doCreateMenus(_0x57700f,_0x438973,_0x498ec0,_0x59435d){const _0x3293de=a50_0x4cb1;return await createMenus(_0x57700f,_0x438973,_0x498ec0,_0x59435d),{'created':_0x498ec0[_0x3293de(0x17d)],'failed':0x0,'labels':_0x498ec0[_0x3293de(0x175)](_0x5b4663=>_0x5b4663[_0x3293de(0x17c)])};}export function filterMenusWithResources(_0x53b84b){const _0x3679c1=a50_0x4cb1;return _0x53b84b[_0x3679c1(0x16e)](_0x2a8b82=>_0x2a8b82['resources'][_0x3679c1(0x17d)]>0x0);}export async function doUpdateCdnUrls(_0x114d4b,_0x4afbce,_0x1446b3,_0x3f172c){const _0x5280ae=a50_0x4cb1,_0x1c68cd=_0x1446b3[_0x5280ae(0x16e)](_0x53b211=>_0x53b211[_0x5280ae(0x168)]['length']>0x0),_0x49008d=await Promise[_0x5280ae(0x173)](_0x1c68cd[_0x5280ae(0x175)](_0x25ca84=>updateMenuCdnUrl(_0x114d4b,_0x4afbce,{'id':_0x25ca84['id'],'label':_0x25ca84[_0x5280ae(0x17c)],'path':_0x25ca84[_0x5280ae(0x177)],'resources':_0x3f172c}))),_0x46dc28=_0x49008d['filter'](_0x55c847=>_0x55c847[_0x5280ae(0x17e)]===_0x5280ae(0x167))['length'];return{'updated':_0x1c68cd[_0x5280ae(0x17d)]-_0x46dc28,'failed':_0x46dc28};}export async function fetchMenuData(_0x5a533f,_0x1c0278){const _0x449286=a50_0x4cb1,_0x44d4ab=getLocalPages(),_0x42de52=await getOnlineMenuList(_0x5a533f,_0x1c0278),_0x222c23=new Set(_0x42de52[_0x449286(0x175)](_0x1c32f3=>_0x1c32f3[_0x449286(0x177)]));return{'localPages':_0x44d4ab,'onlineMenuList':_0x42de52,'onlinePaths':_0x222c23};}export async function fetchOnlineMenuList(_0x581c74,_0x43eace){return getOnlineMenuList(_0x581c74,_0x43eace);}
|