@lovrabet/rabetbase-cli 2.1.7-beta.7 → 2.1.7-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/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.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/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.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/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/link-create.js +1 -1
- package/lib/commands/dataset/link-delete.js +1 -1
- package/lib/commands/dataset/link-shared.js +1 -1
- package/lib/commands/dataset/link-update.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.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/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a68_0x1f0059=a68_0xc8d0;(function(_0x921da3,_0x472d58){const _0x32dac1=a68_0xc8d0,_0x339995=_0x921da3();while(!![]){try{const _0x4fea50=parseInt(_0x32dac1(0x13e))/0x1+-parseInt(_0x32dac1(0x147))/0x2+parseInt(_0x32dac1(0x13a))/0x3+parseInt(_0x32dac1(0x145))/0x4*(parseInt(_0x32dac1(0x13b))/0x5)+-parseInt(_0x32dac1(0x139))/0x6*(-parseInt(_0x32dac1(0x13c))/0x7)+-parseInt(_0x32dac1(0x14c))/0x8*(parseInt(_0x32dac1(0x138))/0x9)+-parseInt(_0x32dac1(0x13f))/0xa;if(_0x4fea50===_0x472d58)break;else _0x339995['push'](_0x339995['shift']());}catch(_0x5af493){_0x339995['push'](_0x339995['shift']());}}}(a68_0x1f57,0x3033c));function a68_0xc8d0(_0x1046f9,_0x473ffc){_0x1046f9=_0x1046f9-0x137;const _0x1f5739=a68_0x1f57();let _0xc8d00d=_0x1f5739[_0x1046f9];return _0xc8d00d;}import{listDbLinks}from'../../core/api-client.js';function a68_0x1f57(){const _0x36214b=['1992424GcvQUy','number','224590IoCfwX','2324960lThdxy','num','\x20database\x20connection(s)','list','Found\x20','page','188992qFlfOB','length','491856yBpCDi','pagesize','appCode','Page\x20size','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','44504zDlvUG','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','270lteMTw','6YXzrFN','575352YtirRm','15aGMirQ'];a68_0x1f57=function(){return _0x36214b;};return a68_0x1f57();}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a68_0x1f0059(0x142),'description':a68_0x1f0059(0x137),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':'number','description':'Page\x20index\x20(1-based)','default':0x1},{'name':a68_0x1f0059(0x148),'type':a68_0x1f0059(0x13d),'description':a68_0x1f0059(0x14a),'default':0x64}],async 'execute'(_0x87f33e){const _0x5d321b=a68_0x1f0059,_0xbba92e=_0x87f33e[_0x5d321b(0x140)](_0x5d321b(0x144),0x1)||0x1,_0x5055b5=_0x87f33e['num'](_0x5d321b(0x148),0x64)||0x64,{items:_0x23da89,paging:_0x453bfb}=await listDbLinks(_0x87f33e[_0x5d321b(0x149)],{'currentPage':_0xbba92e,'pageSize':_0x5055b5}),_0x10ae56=sanitizeDbLinkList(_0x23da89),_0x555df1=_0x453bfb?_0x453bfb:{'currentPage':_0xbba92e,'pageSize':_0x5055b5,'rowsOnPage':_0x10ae56['length'],'totalCount':null,'note':_0x5d321b(0x14b)};return{'ok':!![],'data':{'connections':_0x10ae56,'paging':_0x555df1},'message':_0x5d321b(0x143)+_0x10ae56[_0x5d321b(0x146)]+_0x5d321b(0x141)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a69_0x33b3(){const _0x3d043a=['password','46eTMiKz','toLowerCase','jdbcurl','privatekey','228wNnoRO','/data/database','dbpassword','/data/er?dbId=','273610ILrNNR','4388350gjRTeH','keys','passwd','6034512ygceOm','1256TAnavk','10zOfWEF','secret','map','includes','36001ZdFGrN','isFinite','18kLsuyP','token','number','1997768sbdIVe','439791ZlIbGn','test','credential','length','3963HQijAw','accesskey','connectionstring','trim','https://daily.lovrabet.com/web-app/app/'];a69_0x33b3=function(){return _0x3d043a;};return a69_0x33b3();}(function(_0x3af0a7,_0x209c2a){const _0x3ba60f=a69_0x5b7c,_0x5879ba=_0x3af0a7();while(!![]){try{const _0x264fb8=-parseInt(_0x3ba60f(0x194))/0x1+-parseInt(_0x3ba60f(0x18c))/0x2*(-parseInt(_0x3ba60f(0x186))/0x3)+-parseInt(_0x3ba60f(0x1a3))/0x4*(parseInt(_0x3ba60f(0x19a))/0x5)+parseInt(_0x3ba60f(0x198))/0x6+parseInt(_0x3ba60f(0x19e))/0x7*(-parseInt(_0x3ba60f(0x199))/0x8)+parseInt(_0x3ba60f(0x1a0))/0x9*(parseInt(_0x3ba60f(0x195))/0xa)+-parseInt(_0x3ba60f(0x182))/0xb*(-parseInt(_0x3ba60f(0x190))/0xc);if(_0x264fb8===_0x209c2a)break;else _0x5879ba['push'](_0x5879ba['shift']());}catch(_0x59c23b){_0x5879ba['push'](_0x5879ba['shift']());}}}(a69_0x33b3,0x90e5b));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x203d93){const _0x2a87de=a69_0x5b7c,_0x401ba8=_0x203d93[_0x2a87de(0x18d)]();if(_0x401ba8===_0x2a87de(0x18b)||_0x401ba8===_0x2a87de(0x197)||_0x401ba8===_0x2a87de(0x192))return!![];if(_0x401ba8[_0x2a87de(0x19d)](_0x2a87de(0x19b))||_0x401ba8['includes'](_0x2a87de(0x1a1))||_0x401ba8[_0x2a87de(0x19d)](_0x2a87de(0x184)))return!![];if(_0x401ba8[_0x2a87de(0x19d)](_0x2a87de(0x18f))||_0x401ba8[_0x2a87de(0x19d)](_0x2a87de(0x187)))return!![];if(_0x401ba8==='authorization'||_0x401ba8===_0x2a87de(0x188)||_0x401ba8===_0x2a87de(0x18e))return!![];return![];}export function sanitizeDbLinkForOutput(_0x6d1579){const _0x2405dc=a69_0x5b7c,_0x2fc0ca={..._0x6d1579};for(const _0x111717 of Object[_0x2405dc(0x196)](_0x2fc0ca)){if(!shouldRedactKey(_0x111717))continue;const _0x58c9f2=_0x2fc0ca[_0x111717];_0x58c9f2!=null&&String(_0x58c9f2)[_0x2405dc(0x185)]>0x0&&(_0x2fc0ca[_0x111717]='[redacted]');}return _0x2fc0ca;}export function sanitizeDbLinkList(_0x1e892f){const _0x3d7830=a69_0x5b7c;return _0x1e892f[_0x3d7830(0x19c)](_0x4f5682=>sanitizeDbLinkForOutput(_0x4f5682));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a69_0x5b7c(_0x52834e,_0x2268df){_0x52834e=_0x52834e-0x182;const _0x33b3f8=a69_0x33b3();let _0x5b7cb2=_0x33b3f8[_0x52834e];return _0x5b7cb2;}export function validateDbUrl(_0x394923){const _0x4fffcf=a69_0x5b7c,_0x3ad056=_0x394923[_0x4fffcf(0x189)]();if(!_0x3ad056)return![];return DB_URL_PATTERN[_0x4fffcf(0x183)](_0x3ad056);}export function buildDbPageLinks(_0x136e9f,_0x3af9ab){const _0x47abb1=a69_0x5b7c,_0x4a67fb=_0x136e9f?.['trim']();if(!_0x4a67fb)return undefined;const _0x2108d0=typeof _0x3af9ab===_0x47abb1(0x1a2)?String(_0x3af9ab):String(_0x3af9ab??'')[_0x47abb1(0x189)]();if(!_0x2108d0)return undefined;const _0x330df5=Number(_0x2108d0);if(!Number[_0x47abb1(0x19f)](_0x330df5)||_0x330df5<=0x0)return undefined;const _0x29dae1=isDaily(normalizeEnv(getEnv()))?_0x47abb1(0x18a)+encodeURIComponent(_0x4a67fb):'https://app.lovrabet.com/app/'+encodeURIComponent(_0x4a67fb),_0x3a90ec=encodeURIComponent(String(_0x330df5));return{'databasePage':_0x29dae1+_0x47abb1(0x191),'erPage':_0x29dae1+_0x47abb1(0x193)+_0x3a90ec};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a70_0x325af8=a70_0x131f;(function(_0x346184,_0x29380b){const _0x209d8e=a70_0x131f,_0x252d47=_0x346184();while(!![]){try{const _0x496842=-parseInt(_0x209d8e(0x1dd))/0x1+-parseInt(_0x209d8e(0x1db))/0x2*(-parseInt(_0x209d8e(0x1d9))/0x3)+parseInt(_0x209d8e(0x1da))/0x4*(-parseInt(_0x209d8e(0x1d4))/0x5)+-parseInt(_0x209d8e(0x1d8))/0x6*(parseInt(_0x209d8e(0x1dc))/0x7)+parseInt(_0x209d8e(0x1e1))/0x8+-parseInt(_0x209d8e(0x1d5))/0x9+parseInt(_0x209d8e(0x1d6))/0xa;if(_0x496842===_0x29380b)break;else _0x252d47['push'](_0x252d47['shift']());}catch(_0x30d779){_0x252d47['push'](_0x252d47['shift']());}}}(a70_0x1321,0xea525));import{getDbAllTableList}from'../../core/api-client.js';function a70_0x131f(_0x2ade72,_0x206a8d){_0x2ade72=_0x2ade72-0x1d3;const _0x1321a0=a70_0x1321();let _0x131f61=_0x1321a0[_0x2ade72];return _0x131f61;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a70_0x1321(){const _0x5d9440=['82aGBTRZ','50029GpxXih','854538arvris','appCode','read','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','13331952LoMxqX','tables','6540IBPXGZ','7216947QWeqUt','13193320MjaHcO','length','1032etkszu','66156uOtxTr','136TRjmJc'];a70_0x1321=function(){return _0x5d9440;};return a70_0x1321();}export const dbTables={'service':'db','command':a70_0x325af8(0x1d3),'description':a70_0x325af8(0x1e0),'risk':a70_0x325af8(0x1df),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5b4aee){const _0x318b10=a70_0x325af8,_0x17bf07=_0x5b4aee['num']('id'),_0x73ce17=await getDbAllTableList(_0x5b4aee[_0x318b10(0x1de)],_0x17bf07);return{'ok':!![],'data':{'dbLinkId':_0x17bf07,'total':_0x73ce17[_0x318b10(0x1d7)],'tables':_0x73ce17},'message':_0x73ce17[_0x318b10(0x1d7)]+'\x20table(s)\x20on\x20db\x20link\x20'+_0x17bf07};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x32d2f7=a71_0x3513;(function(_0x132cd8,_0x3ca30c){const _0x138915=a71_0x3513,_0x5c617a=_0x132cd8();while(!![]){try{const _0xebea4c=-parseInt(_0x138915(0xb4))/0x1+-parseInt(_0x138915(0xbb))/0x2+-parseInt(_0x138915(0xc2))/0x3*(-parseInt(_0x138915(0xbc))/0x4)+-parseInt(_0x138915(0xb8))/0x5+parseInt(_0x138915(0xbd))/0x6+parseInt(_0x138915(0xb3))/0x7+-parseInt(_0x138915(0xc0))/0x8;if(_0xebea4c===_0x3ca30c)break;else _0x5c617a['push'](_0x5c617a['shift']());}catch(_0x9750a5){_0x5c617a['push'](_0x5c617a['shift']());}}}(a71_0x65c2,0xe5925));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a71_0x3513(_0x24388a,_0x4b7252){_0x24388a=_0x24388a-0xb2;const _0x65c2fa=a71_0x65c2();let _0x351339=_0x65c2fa[_0x24388a];return _0x351339;}function summarizeTestConnectResult(_0x1df19d){const _0x4a9b82=a71_0x3513;if(_0x1df19d===!![]||_0x1df19d===![])return{'success':_0x1df19d};if(_0x1df19d===null||_0x1df19d===undefined)return{'type':typeof _0x1df19d};if(typeof _0x1df19d!==_0x4a9b82(0xc7))return{'type':typeof _0x1df19d};const _0x5d1264=_0x1df19d,_0x1be65f=[_0x4a9b82(0xb6),_0x4a9b82(0xbf),'code',_0x4a9b82(0xc4),_0x4a9b82(0xc1),_0x4a9b82(0xc5)],_0x2a0f0a={};for(const _0x2a5afa of _0x1be65f){if(_0x2a5afa in _0x5d1264)_0x2a0f0a[_0x2a5afa]=_0x5d1264[_0x2a5afa];}return Object['keys'](_0x2a0f0a)[_0x4a9b82(0xba)]===0x0&&(_0x2a0f0a[_0x4a9b82(0xb2)]=Object['keys'](_0x5d1264)[_0x4a9b82(0xb5)](0x0,0x14)),_0x2a0f0a;}function a71_0x65c2(){const _0x51437c=['808847tuGDwi','slice','success','num','1956295PlVDwd','Connection\x20check\x20finished\x20for\x20db\x20link\x20','length','1442690ImDRqP','100IZZykQ','10355790Ixtlsk','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','message','2169912pdwlsv','msg','154335ldJzHF','\x20(see\x20data.result)','error','data','Connection\x20OK\x20for\x20db\x20link\x20','object','keys','846475XqVNCT'];a71_0x65c2=function(){return _0x51437c;};return a71_0x65c2();}export const dbTest={'service':'db','command':'test','description':a71_0x32d2f7(0xbe),'risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x54f238){const _0x166c8d=a71_0x32d2f7,_0x514e51=_0x54f238[_0x166c8d(0xb7)]('id'),_0x2259dc=await testDbLinkConnect(_0x514e51),_0x4e52c3=_0x2259dc===!![]||typeof _0x2259dc===_0x166c8d(0xc7)&&_0x2259dc!==null&&_0x2259dc[_0x166c8d(0xb6)]===!![],_0x5944b2=summarizeTestConnectResult(_0x2259dc);return{'ok':!![],'data':{'id':_0x514e51,'connected':Boolean(_0x4e52c3),'result':_0x5944b2},'message':_0x4e52c3?_0x166c8d(0xc6)+_0x514e51:_0x166c8d(0xb9)+_0x514e51+_0x166c8d(0xc3)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x4aae61=a72_0x526d;(function(_0x33de2b,_0x9b6dc3){const _0x383636=a72_0x526d,_0xfe3639=_0x33de2b();while(!![]){try{const _0x2c9de6=-parseInt(_0x383636(0x11f))/0x1*(parseInt(_0x383636(0x113))/0x2)+-parseInt(_0x383636(0x127))/0x3*(parseInt(_0x383636(0x123))/0x4)+-parseInt(_0x383636(0x12c))/0x5*(-parseInt(_0x383636(0x114))/0x6)+-parseInt(_0x383636(0x11a))/0x7+-parseInt(_0x383636(0x11b))/0x8+parseInt(_0x383636(0x121))/0x9*(-parseInt(_0x383636(0x12f))/0xa)+parseInt(_0x383636(0x116))/0xb;if(_0x2c9de6===_0x9b6dc3)break;else _0xfe3639['push'](_0xfe3639['shift']());}catch(_0x6dd105){_0xfe3639['push'](_0xfe3639['shift']());}}}(a72_0x32a3,0xeb0cd));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a72_0x32a3(){const _0x4db75e=['48865729NTJXTL','str','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','dbUrl','8605786nHQDdY','1958408sbKKOX','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','num','dbname','21gJtxvg','Updated\x20db\x20link\x20','411813UHPwuK','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','326128XMhYuo','dbdesc','dbParam','New\x20description','3MdVcYI','New\x20connection\x20parameter\x20string','dbDesc','string','username','295VQKHGa','password','dburl','50KnonAc','/smartapi/dblink/update','trim','dbparam','write','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','dbName','validation','182646eBxTIV','22650VutRVR','POST'];a72_0x32a3=function(){return _0x4db75e;};return a72_0x32a3();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a72_0x526d(_0x595324,_0x3ce6eb){_0x595324=_0x595324-0x10f;const _0x32a307=a72_0x32a3();let _0x526d59=_0x32a307[_0x595324];return _0x526d59;}export const dbUpdate={'service':'db','command':'update','description':a72_0x4aae61(0x110),'risk':a72_0x4aae61(0x10f),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a72_0x4aae61(0x11e),'type':a72_0x4aae61(0x12a),'description':'New\x20database\x20name'},{'name':'dburl','type':a72_0x4aae61(0x12a),'description':'New\x20host:port'},{'name':a72_0x4aae61(0x12b),'type':a72_0x4aae61(0x12a),'description':'New\x20username'},{'name':a72_0x4aae61(0x12d),'type':a72_0x4aae61(0x12a),'description':a72_0x4aae61(0x118)},{'name':'dbparam','type':'string','description':a72_0x4aae61(0x128)},{'name':a72_0x4aae61(0x124),'type':'string','description':a72_0x4aae61(0x126)}],async 'validate'(_0xef1292){const _0x17d72e=a72_0x4aae61,_0x52060e=_0xef1292[_0x17d72e(0x117)]('dburl');if(_0x52060e&&!validateDbUrl(_0x52060e[_0x17d72e(0x131)]()))throw CliErrors[_0x17d72e(0x112)](_0x17d72e(0x122)+_0x52060e+'\x22');},async 'dryRun'(_0x20f9ac){const _0x55cfb3=a72_0x4aae61,_0x3cf461=_0x20f9ac[_0x55cfb3(0x11d)]('id'),_0x3151d9=await getDbLinkInfo(_0x3cf461),_0x4a8a24={..._0x3151d9},_0x2a5b5f=_0x20f9ac[_0x55cfb3(0x117)](_0x55cfb3(0x11e));if(_0x2a5b5f)_0x4a8a24[_0x55cfb3(0x111)]=_0x2a5b5f;const _0x3c63a6=_0x20f9ac[_0x55cfb3(0x117)](_0x55cfb3(0x12e));if(_0x3c63a6)_0x4a8a24[_0x55cfb3(0x119)]=_0x3c63a6[_0x55cfb3(0x131)]();const _0x51af94=_0x20f9ac['str'](_0x55cfb3(0x12b));if(_0x51af94)_0x4a8a24[_0x55cfb3(0x12b)]=_0x51af94;const _0x5a1245=_0x20f9ac[_0x55cfb3(0x117)](_0x55cfb3(0x12d));if(_0x5a1245)_0x4a8a24['password']=_0x5a1245;const _0x317dfe=_0x20f9ac[_0x55cfb3(0x117)](_0x55cfb3(0x132));if(_0x317dfe)_0x4a8a24[_0x55cfb3(0x125)]=_0x317dfe;const _0x3fc111=_0x20f9ac[_0x55cfb3(0x117)](_0x55cfb3(0x124));if(_0x3fc111)_0x4a8a24['dbDesc']=_0x3fc111;const _0x31fb49=sanitizeDbLinkForOutput(_0x4a8a24);return{'method':_0x55cfb3(0x115),'url':_0x55cfb3(0x130),'body':_0x31fb49,'description':_0x55cfb3(0x11c)};},async 'execute'(_0x2dc4d0){const _0xac8398=a72_0x4aae61,_0x58f087=_0x2dc4d0['num']('id'),_0x4a0d6a=await getDbLinkInfo(_0x58f087),_0xc55d3f={..._0x4a0d6a},_0x3188a5=_0x2dc4d0['str']('dbname');if(_0x3188a5)_0xc55d3f['dbName']=_0x3188a5;const _0x346080=_0x2dc4d0[_0xac8398(0x117)](_0xac8398(0x12e));if(_0x346080)_0xc55d3f[_0xac8398(0x119)]=_0x346080[_0xac8398(0x131)]();const _0x2b343c=_0x2dc4d0['str'](_0xac8398(0x12b));if(_0x2b343c)_0xc55d3f[_0xac8398(0x12b)]=_0x2b343c;const _0x302347=_0x2dc4d0[_0xac8398(0x117)](_0xac8398(0x12d));if(_0x302347)_0xc55d3f[_0xac8398(0x12d)]=_0x302347;const _0x2e0403=_0x2dc4d0['str'](_0xac8398(0x132));if(_0x2e0403)_0xc55d3f[_0xac8398(0x125)]=_0x2e0403;const _0x5babdf=_0x2dc4d0[_0xac8398(0x117)](_0xac8398(0x124));if(_0x5babdf)_0xc55d3f[_0xac8398(0x129)]=_0x5babdf;const {id:_0x2f9a95,entity:_0x104e8a}=normalizeEntityWithIdResponse(await updateDbLink(_0xc55d3f));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x104e8a),'message':_0xac8398(0x120)+(_0x2f9a95??_0x58f087)};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a73_0x3bba66=a73_0x12a6;(function(_0x447e43,_0x3d1391){const _0x371b18=a73_0x12a6,_0x203380=_0x447e43();while(!![]){try{const _0x4caf04=parseInt(_0x371b18(0x1b3))/0x1+parseInt(_0x371b18(0x170))/0x2+parseInt(_0x371b18(0x17b))/0x3*(-parseInt(_0x371b18(0x1ca))/0x4)+-parseInt(_0x371b18(0x181))/0x5+-parseInt(_0x371b18(0x198))/0x6*(-parseInt(_0x371b18(0x1b9))/0x7)+parseInt(_0x371b18(0x199))/0x8*(-parseInt(_0x371b18(0x18a))/0x9)+parseInt(_0x371b18(0x17e))/0xa;if(_0x4caf04===_0x3d1391)break;else _0x203380['push'](_0x203380['shift']());}catch(_0x614e83){_0x203380['push'](_0x203380['shift']());}}}(a73_0x2667,0x5c425));import a73_0x55cc79 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a73_0x2667(){const _0x54adb0=['\x20(default)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','7FcVZct','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','explicitAppName','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','arch','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','length','repeat','\x20←\x20current','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','source','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','8YLharH','version','gray','1336804rwkPAd','Project','\x20\x20Merged\x20Config','✓\x20Valid\x20JSON','(not\x20found)','slice','(no\x20file)','defaultApp','read','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','log','66117XOWrDX','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','yellow','667650miwRYj','apiDir','check','1071275iPcIoi','padEnd','✗\x20Not\x20logged\x20in','raw','green','(default)','\x20\x20API\x20Endpoints','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','5615856vVbIOa','✓\x20Valid','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','status','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','message','⚠\x20Empty\x20(treated\x20as\x20{})','pageSize','(none)','(missing)','1379622QwPvjJ','8XpehfQ','riskLevel','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','cookie','✗\x20Expired','value','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','missing','verbose','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','(set,\x20length=','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','\x20\x20Apps','\x20\x20\x20\x20accessKey:\x20\x20','✗\x20Invalid\x20JSON','(set\x20via\x20file,\x20length=','format','bold','\x20doctor','unknown','doctor','apps','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20explicitAppName:\x20','295106QIAqLJ','\x20\x20Auth','appcode','\x20\x20─'];a73_0x2667=function(){return _0x54adb0;};return a73_0x2667();}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';function a73_0x12a6(_0x104cea,_0x523587){_0x104cea=_0x104cea-0x170;const _0x2667ee=a73_0x2667();let _0x12a6b3=_0x2667ee[_0x104cea];return _0x12a6b3;}async function execute(_0x2b693f){const _0x45c1c1=a73_0x12a6,_0x25dff2=GIT_COMMIT!==_0x45c1c1(0x1ae)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x45c1c1(0x175)](0x0,0xa)+')':VERSION,_0x160fd1=buildConfigFromFlags({}),_0x4ce668=getCookie();console[_0x45c1c1(0x17a)](),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1ac)](CLI_BIN_NAME+_0x45c1c1(0x1ad))),console[_0x45c1c1(0x17a)](a73_0x55cc79['gray']('─'[_0x45c1c1(0x1c5)](0x32))),console[_0x45c1c1(0x17a)](_0x45c1c1(0x19b)+_0x25dff2),console[_0x45c1c1(0x17a)](_0x45c1c1(0x18c)+process[_0x45c1c1(0x1cb)]),console[_0x45c1c1(0x17a)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process[_0x45c1c1(0x1c1)]),console['log'](),console['log'](a73_0x55cc79[_0x45c1c1(0x1ac)](_0x45c1c1(0x1be))),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x1b6)[_0x45c1c1(0x1c5)](0x1e)));const _0x59b2f9=getGlobalConfigPath(),_0x19e252=getProjectConfigPath();console[_0x45c1c1(0x17a)](_0x45c1c1(0x1a5)+(_0x59b2f9||a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x174)))),console[_0x45c1c1(0x17a)](_0x45c1c1(0x191)+(_0x19e252||a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x174)))),console['log'](),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1ac)](_0x45c1c1(0x18f))),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x1b6)[_0x45c1c1(0x1c5)](0x1e)));const _0x1bbc23=(_0x4e4b5b,_0x475a6c)=>{const _0x64979c=_0x45c1c1;if(!_0x475a6c){console[_0x64979c(0x17a)]('\x20\x20'+_0x4e4b5b[_0x64979c(0x182)](0x11)+'\x20'+a73_0x55cc79['gray'](_0x64979c(0x176)));return;}const _0x42095e=inspectCliConfigJsonFile(_0x475a6c);if(_0x42095e[_0x64979c(0x190)]==='ok')console['log']('\x20\x20'+_0x4e4b5b[_0x64979c(0x182)](0x11)+'\x20'+a73_0x55cc79[_0x64979c(0x185)](_0x64979c(0x173)));else{if(_0x42095e['status']==='empty')console[_0x64979c(0x17a)]('\x20\x20'+_0x4e4b5b[_0x64979c(0x182)](0x11)+'\x20'+a73_0x55cc79[_0x64979c(0x17d)](_0x64979c(0x194)));else _0x42095e[_0x64979c(0x190)]===_0x64979c(0x1a1)?console[_0x64979c(0x17a)]('\x20\x20'+_0x4e4b5b[_0x64979c(0x182)](0x11)+'\x20'+a73_0x55cc79['gray'](_0x64979c(0x197))):(console['log']('\x20\x20'+_0x4e4b5b[_0x64979c(0x182)](0x11)+'\x20'+a73_0x55cc79['red'](_0x64979c(0x1a9))),console[_0x64979c(0x17a)]('\x20\x20'+''[_0x64979c(0x182)](0x11)+'\x20'+a73_0x55cc79[_0x64979c(0x1a6)](_0x42095e[_0x64979c(0x193)])));}};_0x1bbc23('Global',_0x59b2f9),_0x1bbc23(_0x45c1c1(0x171),_0x19e252),console['log'](),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1ac)](_0x45c1c1(0x172))),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x1b6)[_0x45c1c1(0x1c5)](0x1e))),console[_0x45c1c1(0x17a)](_0x45c1c1(0x1ba)+(_0x160fd1['appCode']||a73_0x55cc79[_0x45c1c1(0x1a6)](_0x45c1c1(0x192)))),console[_0x45c1c1(0x17a)](_0x45c1c1(0x1bd)+_0x160fd1[_0x45c1c1(0x1bb)]),console[_0x45c1c1(0x17a)](_0x45c1c1(0x1c2)+_0x160fd1['locale']),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x160fd1[_0x45c1c1(0x17f)]),console[_0x45c1c1(0x17a)](_0x45c1c1(0x1a3)+(_0x160fd1['defaultApp']||a73_0x55cc79['gray'](_0x45c1c1(0x196)))),console[_0x45c1c1(0x17a)](_0x45c1c1(0x1c7)+(_0x160fd1[_0x45c1c1(0x1c0)]||a73_0x55cc79[_0x45c1c1(0x1cc)]('(none)'))),console[_0x45c1c1(0x17a)](_0x45c1c1(0x1b2)+(_0x160fd1[_0x45c1c1(0x1bc)]||a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x196)))),console['log'](_0x45c1c1(0x1c9)+(_0x160fd1[_0x45c1c1(0x1ab)]||a73_0x55cc79['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x45c1c1(0x1ab)]+')'))),console[_0x45c1c1(0x17a)](_0x45c1c1(0x18d)+(_0x160fd1[_0x45c1c1(0x195)]??a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x186)))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x160fd1[_0x45c1c1(0x19a)]),console[_0x45c1c1(0x17a)](_0x45c1c1(0x18e)+_0x160fd1[_0x45c1c1(0x1a2)]),console['log'](_0x45c1c1(0x19f)+(_0x160fd1[_0x45c1c1(0x19c)]?a73_0x55cc79['green']('(set,\x20length='+_0x160fd1['cookie'][_0x45c1c1(0x1c4)]+')'):_0x4ce668?a73_0x55cc79[_0x45c1c1(0x185)](_0x45c1c1(0x1aa)+_0x4ce668[_0x45c1c1(0x1c4)]+')'):a73_0x55cc79['gray']('(none)')));const _0x467033=Object['keys'](_0x160fd1[_0x45c1c1(0x1b0)]);if(_0x467033['length']>0x0){console[_0x45c1c1(0x17a)](),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1ac)](_0x45c1c1(0x1a7))),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x1b6)['repeat'](0x1e)));for(const _0x475ee3 of _0x467033){const _0x29899c=_0x160fd1['apps'][_0x475ee3],_0x503fa7=_0x475ee3===_0x160fd1[_0x45c1c1(0x177)],_0x19ceaa=_0x475ee3===_0x160fd1[_0x45c1c1(0x1c0)],_0x3a4f76=_0x19ceaa?a73_0x55cc79[_0x45c1c1(0x185)](_0x45c1c1(0x1c6)):'',_0x43b48b=_0x503fa7?_0x45c1c1(0x1b7):'';console[_0x45c1c1(0x17a)]('\x20\x20'+_0x475ee3+_0x43b48b+_0x3a4f76),console[_0x45c1c1(0x17a)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x29899c[_0x45c1c1(0x1b5)]);const _0x3c7b02=buildAppDoctorFields(_0x29899c,{'env':_0x160fd1['env'],'apiDir':_0x160fd1[_0x45c1c1(0x184)][_0x45c1c1(0x17f)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x160fd1[_0x45c1c1(0x19c)]||_0x4ce668||undefined,'accessKey':_0x160fd1['accessKey']});console[_0x45c1c1(0x17a)](_0x45c1c1(0x188)+_0x3c7b02[_0x45c1c1(0x1bb)][_0x45c1c1(0x19e)]+'\x20\x20'+a73_0x55cc79[_0x45c1c1(0x1cc)]('('+_0x3c7b02['env'][_0x45c1c1(0x1c8)]+')')),console[_0x45c1c1(0x17a)](_0x45c1c1(0x189)+_0x3c7b02['apiDir'][_0x45c1c1(0x19e)]+'\x20\x20'+a73_0x55cc79[_0x45c1c1(0x1cc)]('('+_0x3c7b02[_0x45c1c1(0x17f)][_0x45c1c1(0x1c8)]+')'));const _0x573d7b=_0x3c7b02[_0x45c1c1(0x19c)][_0x45c1c1(0x19e)]?a73_0x55cc79[_0x45c1c1(0x185)](_0x45c1c1(0x1a4)+_0x3c7b02['cookie']['value']['length']+')'):a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x196));console['log'](_0x45c1c1(0x179)+_0x573d7b+'\x20\x20'+a73_0x55cc79[_0x45c1c1(0x1cc)]('('+_0x3c7b02['cookie'][_0x45c1c1(0x1c8)]+')'));const _0x70e4aa=_0x3c7b02['accessKey'][_0x45c1c1(0x19e)]?a73_0x55cc79[_0x45c1c1(0x185)](_0x45c1c1(0x1a4)+_0x3c7b02[_0x45c1c1(0x1c3)][_0x45c1c1(0x19e)][_0x45c1c1(0x1c4)]+')'):a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x196));console[_0x45c1c1(0x17a)](_0x45c1c1(0x1a8)+_0x70e4aa+'\x20\x20'+a73_0x55cc79[_0x45c1c1(0x1cc)]('('+_0x3c7b02['accessKey']['source']+')'));}}console[_0x45c1c1(0x17a)](),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1ac)](_0x45c1c1(0x187))),console['log'](a73_0x55cc79['gray'](_0x45c1c1(0x1b6)[_0x45c1c1(0x1c5)](0x1e))),console[_0x45c1c1(0x17a)](_0x45c1c1(0x1b8)+getApiDomain()),console[_0x45c1c1(0x17a)](_0x45c1c1(0x17c)+getUserDomain()),console['log'](_0x45c1c1(0x1a0)+getRuntimeDomain()),console[_0x45c1c1(0x17a)](),console['log'](a73_0x55cc79[_0x45c1c1(0x1ac)](_0x45c1c1(0x1b4))),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x1b6)[_0x45c1c1(0x1c5)](0x1e)));if(_0x4ce668){const _0x57c928=await getIsSessionValid();console[_0x45c1c1(0x17a)](_0x45c1c1(0x1bf)+(_0x57c928?a73_0x55cc79[_0x45c1c1(0x185)](_0x45c1c1(0x18b)):a73_0x55cc79[_0x45c1c1(0x1a6)](_0x45c1c1(0x19d))));}else console[_0x45c1c1(0x17a)](_0x45c1c1(0x1bf)+a73_0x55cc79[_0x45c1c1(0x1a6)](_0x45c1c1(0x183)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a73_0x3bba66(0x1af),'command':a73_0x3bba66(0x180),'description':a73_0x3bba66(0x1b1),'risk':a73_0x3bba66(0x178),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a73_0x32de29=a73_0x2872;(function(_0x2823af,_0x4885f7){const _0x67eb12=a73_0x2872,_0x5a5b93=_0x2823af();while(!![]){try{const _0x505cbc=parseInt(_0x67eb12(0x116))/0x1+parseInt(_0x67eb12(0x123))/0x2+parseInt(_0x67eb12(0x114))/0x3+-parseInt(_0x67eb12(0xf2))/0x4+parseInt(_0x67eb12(0x122))/0x5*(-parseInt(_0x67eb12(0xe8))/0x6)+-parseInt(_0x67eb12(0xee))/0x7*(-parseInt(_0x67eb12(0xed))/0x8)+parseInt(_0x67eb12(0x10b))/0x9;if(_0x505cbc===_0x4885f7)break;else _0x5a5b93['push'](_0x5a5b93['shift']());}catch(_0x97fe99){_0x5a5b93['push'](_0x5a5b93['shift']());}}}(a73_0x1afb,0x61dd5));function a73_0x1afb(){const _0x530111=['(set\x20via\x20file,\x20length=','repeat','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','check','pageSize','bold','appCode','padEnd','explicitAppName','⚠\x20Empty\x20(treated\x20as\x20{})','(none)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default)','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','(no\x20file)','source','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','keys','\x20\x20explicitAppName:\x20','1480743AnJlpa','green','appcode','yellow','currentApp','Project','slice','doctor','(missing)','1034031AxEtgd','✗\x20Not\x20logged\x20in','419357apVAGf','missing','(default:\x20','apiDir','(set,\x20length=','env','log','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','red','platform','accessKey','✓\x20Valid\x20JSON','5kMJnFY','1092384wMLcYD','version','gray','locale','(not\x20found)','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','✓\x20Valid','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','status','cookie','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','\x20\x20Apps','verbose','\x20\x20─','4418322kMdnRQ','format','(not\x20set)','riskLevel','arch','496HhtYAi','48286fgxvnD','value','length','\x20←\x20current','3060756AAOgOh','Global','\x20(default)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'];a73_0x1afb=function(){return _0x530111;};return a73_0x1afb();}function a73_0x2872(_0x10e189,_0x104178){_0x10e189=_0x10e189-0xdc;const _0x1afb8e=a73_0x1afb();let _0x2872db=_0x1afb8e[_0x10e189];return _0x2872db;}import a73_0x4751ad from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x5f1599){const _0x3f9951=a73_0x2872,_0x59cbaa=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3f9951(0x111)](0x0,0xa)+')':VERSION,_0x462033=buildConfigFromFlags({}),_0x544943=getCookie();console[_0x3f9951(0x11c)](),console[_0x3f9951(0x11c)](a73_0x4751ad[_0x3f9951(0xfb)](CLI_BIN_NAME+'\x20doctor')),console[_0x3f9951(0x11c)](a73_0x4751ad[_0x3f9951(0x125)]('─'[_0x3f9951(0xf7)](0x32))),console['log']('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x59cbaa),console[_0x3f9951(0x11c)](_0x3f9951(0xf8)+process[_0x3f9951(0x124)]),console[_0x3f9951(0x11c)](_0x3f9951(0xdd)+process[_0x3f9951(0x11f)]+'\x20'+process[_0x3f9951(0xec)]),console[_0x3f9951(0x11c)](),console[_0x3f9951(0x11c)](a73_0x4751ad[_0x3f9951(0xfb)]('\x20\x20Config\x20Files')),console[_0x3f9951(0x11c)](a73_0x4751ad[_0x3f9951(0x125)](_0x3f9951(0xe7)[_0x3f9951(0xf7)](0x1e)));const _0x573456=getGlobalConfigPath(),_0x5c5e0b=getProjectConfigPath();console['log'](_0x3f9951(0x108)+(_0x573456||a73_0x4751ad[_0x3f9951(0x125)](_0x3f9951(0x127)))),console[_0x3f9951(0x11c)](_0x3f9951(0x101)+(_0x5c5e0b||a73_0x4751ad[_0x3f9951(0x125)](_0x3f9951(0x127)))),console[_0x3f9951(0x11c)](),console[_0x3f9951(0x11c)](a73_0x4751ad[_0x3f9951(0xfb)]('\x20\x20Config\x20JSON')),console[_0x3f9951(0x11c)](a73_0x4751ad[_0x3f9951(0x125)](_0x3f9951(0xe7)[_0x3f9951(0xf7)](0x1e)));const _0x133749=(_0x373fb2,_0x5f4bec)=>{const _0x213bc9=_0x3f9951;if(!_0x5f4bec){console[_0x213bc9(0x11c)]('\x20\x20'+_0x373fb2['padEnd'](0x11)+'\x20'+a73_0x4751ad['gray'](_0x213bc9(0x105)));return;}const _0x21efa8=inspectCliConfigJsonFile(_0x5f4bec);if(_0x21efa8[_0x213bc9(0xdf)]==='ok')console[_0x213bc9(0x11c)]('\x20\x20'+_0x373fb2[_0x213bc9(0xfd)](0x11)+'\x20'+a73_0x4751ad[_0x213bc9(0x10c)](_0x213bc9(0x121)));else{if(_0x21efa8[_0x213bc9(0xdf)]==='empty')console[_0x213bc9(0x11c)]('\x20\x20'+_0x373fb2[_0x213bc9(0xfd)](0x11)+'\x20'+a73_0x4751ad[_0x213bc9(0x10e)](_0x213bc9(0xff)));else _0x21efa8[_0x213bc9(0xdf)]===_0x213bc9(0x117)?console[_0x213bc9(0x11c)]('\x20\x20'+_0x373fb2[_0x213bc9(0xfd)](0x11)+'\x20'+a73_0x4751ad[_0x213bc9(0x125)](_0x213bc9(0x113))):(console['log']('\x20\x20'+_0x373fb2[_0x213bc9(0xfd)](0x11)+'\x20'+a73_0x4751ad[_0x213bc9(0x11e)]('✗\x20Invalid\x20JSON')),console[_0x213bc9(0x11c)]('\x20\x20'+''[_0x213bc9(0xfd)](0x11)+'\x20'+a73_0x4751ad[_0x213bc9(0x11e)](_0x21efa8[_0x213bc9(0xe4)])));}};_0x133749(_0x3f9951(0xf3),_0x573456),_0x133749(_0x3f9951(0x110),_0x5c5e0b),console[_0x3f9951(0x11c)](),console[_0x3f9951(0x11c)](a73_0x4751ad[_0x3f9951(0xfb)]('\x20\x20Merged\x20Config')),console[_0x3f9951(0x11c)](a73_0x4751ad[_0x3f9951(0x125)](_0x3f9951(0xe7)['repeat'](0x1e))),console[_0x3f9951(0x11c)](_0x3f9951(0xe3)+(_0x462033[_0x3f9951(0xfc)]||a73_0x4751ad['red'](_0x3f9951(0xea)))),console[_0x3f9951(0x11c)](_0x3f9951(0x129)+_0x462033['env']),console[_0x3f9951(0x11c)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x462033[_0x3f9951(0x126)]),console[_0x3f9951(0x11c)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x462033[_0x3f9951(0x119)]),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x462033[_0x3f9951(0xde)]||a73_0x4751ad['gray'](_0x3f9951(0x100)))),console[_0x3f9951(0x11c)](_0x3f9951(0xe1)+(_0x462033['currentApp']||a73_0x4751ad[_0x3f9951(0x125)](_0x3f9951(0x100)))),console[_0x3f9951(0x11c)](_0x3f9951(0x10a)+(_0x462033[_0x3f9951(0xfe)]||a73_0x4751ad[_0x3f9951(0x125)](_0x3f9951(0x100)))),console[_0x3f9951(0x11c)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x462033['format']||a73_0x4751ad[_0x3f9951(0x125)](_0x3f9951(0x118)+DEFAULT_CONFIG_VALUES[_0x3f9951(0xe9)]+')'))),console[_0x3f9951(0x11c)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x462033[_0x3f9951(0xfa)]??a73_0x4751ad[_0x3f9951(0x125)](_0x3f9951(0x102)))),console[_0x3f9951(0x11c)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x462033[_0x3f9951(0xeb)]),console[_0x3f9951(0x11c)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x462033[_0x3f9951(0xe6)]),console[_0x3f9951(0x11c)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x462033[_0x3f9951(0xe0)]?a73_0x4751ad[_0x3f9951(0x10c)](_0x3f9951(0x11a)+_0x462033[_0x3f9951(0xe0)][_0x3f9951(0xf0)]+')'):_0x544943?a73_0x4751ad[_0x3f9951(0x10c)](_0x3f9951(0xf6)+_0x544943[_0x3f9951(0xf0)]+')'):a73_0x4751ad['gray'](_0x3f9951(0x100))));const _0x3ec937=Object[_0x3f9951(0x109)](_0x462033['apps']);if(_0x3ec937['length']>0x0){console[_0x3f9951(0x11c)](),console[_0x3f9951(0x11c)](a73_0x4751ad[_0x3f9951(0xfb)](_0x3f9951(0xe5))),console[_0x3f9951(0x11c)](a73_0x4751ad[_0x3f9951(0x125)](_0x3f9951(0xe7)[_0x3f9951(0xf7)](0x1e)));for(const _0xa36d29 of _0x3ec937){const _0x4d8b55=_0x462033['apps'][_0xa36d29],_0x38ee88=_0xa36d29===_0x462033[_0x3f9951(0xde)],_0x10841c=_0xa36d29===_0x462033[_0x3f9951(0x10f)],_0x45c417=_0x10841c?a73_0x4751ad[_0x3f9951(0x10c)](_0x3f9951(0xf1)):'',_0x10bf77=_0x38ee88?_0x3f9951(0xf4):'';console[_0x3f9951(0x11c)]('\x20\x20'+_0xa36d29+_0x10bf77+_0x45c417),console[_0x3f9951(0x11c)](_0x3f9951(0x12a)+_0x4d8b55[_0x3f9951(0x10d)]);const _0x244e94=buildAppDoctorFields(_0x4d8b55,{'env':_0x462033[_0x3f9951(0x11b)],'apiDir':_0x462033['raw']['apiDir']||DEFAULT_CONFIG_VALUES[_0x3f9951(0x119)],'cookie':_0x462033[_0x3f9951(0xe0)]||_0x544943||undefined,'accessKey':_0x462033[_0x3f9951(0x120)]});console[_0x3f9951(0x11c)](_0x3f9951(0x103)+_0x244e94[_0x3f9951(0x11b)]['value']+'\x20\x20'+a73_0x4751ad[_0x3f9951(0x125)]('('+_0x244e94[_0x3f9951(0x11b)][_0x3f9951(0x106)]+')')),console[_0x3f9951(0x11c)](_0x3f9951(0x11d)+_0x244e94[_0x3f9951(0x119)][_0x3f9951(0xef)]+'\x20\x20'+a73_0x4751ad[_0x3f9951(0x125)]('('+_0x244e94[_0x3f9951(0x119)][_0x3f9951(0x106)]+')'));const _0x47fde9=_0x244e94[_0x3f9951(0xe0)][_0x3f9951(0xef)]?a73_0x4751ad[_0x3f9951(0x10c)](_0x3f9951(0x11a)+_0x244e94[_0x3f9951(0xe0)][_0x3f9951(0xef)]['length']+')'):a73_0x4751ad['gray'](_0x3f9951(0x100));console[_0x3f9951(0x11c)](_0x3f9951(0x107)+_0x47fde9+'\x20\x20'+a73_0x4751ad[_0x3f9951(0x125)]('('+_0x244e94[_0x3f9951(0xe0)][_0x3f9951(0x106)]+')'));const _0x523f64=_0x244e94[_0x3f9951(0x120)]['value']?a73_0x4751ad[_0x3f9951(0x10c)](_0x3f9951(0x11a)+_0x244e94[_0x3f9951(0x120)]['value'][_0x3f9951(0xf0)]+')'):a73_0x4751ad[_0x3f9951(0x125)](_0x3f9951(0x100));console[_0x3f9951(0x11c)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x523f64+'\x20\x20'+a73_0x4751ad[_0x3f9951(0x125)]('('+_0x244e94['accessKey'][_0x3f9951(0x106)]+')'));}}console[_0x3f9951(0x11c)](),console[_0x3f9951(0x11c)](a73_0x4751ad[_0x3f9951(0xfb)]('\x20\x20API\x20Endpoints')),console[_0x3f9951(0x11c)](a73_0x4751ad[_0x3f9951(0x125)](_0x3f9951(0xe7)[_0x3f9951(0xf7)](0x1e))),console[_0x3f9951(0x11c)](_0x3f9951(0xf5)+getApiDomain()),console[_0x3f9951(0x11c)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log'](_0x3f9951(0xe2)+getRuntimeDomain()),console['log'](),console['log'](a73_0x4751ad['bold']('\x20\x20Auth')),console[_0x3f9951(0x11c)](a73_0x4751ad[_0x3f9951(0x125)](_0x3f9951(0xe7)[_0x3f9951(0xf7)](0x1e)));if(_0x544943){const _0x3cb050=await getIsSessionValid();console[_0x3f9951(0x11c)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3cb050?a73_0x4751ad[_0x3f9951(0x10c)](_0x3f9951(0xdc)):a73_0x4751ad['red']('✗\x20Expired')));}else console['log'](_0x3f9951(0x128)+a73_0x4751ad[_0x3f9951(0x11e)](_0x3f9951(0x115)));return console[_0x3f9951(0x11c)](),{'ok':!![]};}export const doctorDefinition={'service':a73_0x32de29(0x112),'command':a73_0x32de29(0xf9),'description':a73_0x32de29(0x104),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x235bfa=a74_0x5d80;function a74_0x5d80(_0x15df33,_0x514f8d){_0x15df33=_0x15df33-0x1f3;const _0x55acfc=a74_0x55ac();let _0x5d80e9=_0x55acfc[_0x15df33];return _0x5d80e9;}(function(_0x47ee73,_0x700a34){const _0x44d078=a74_0x5d80,_0x3dc7c6=_0x47ee73();while(!![]){try{const _0x1d9fcf=-parseInt(_0x44d078(0x21c))/0x1+parseInt(_0x44d078(0x201))/0x2+-parseInt(_0x44d078(0x211))/0x3+parseInt(_0x44d078(0x20d))/0x4*(parseInt(_0x44d078(0x20b))/0x5)+parseInt(_0x44d078(0x204))/0x6+parseInt(_0x44d078(0x202))/0x7*(-parseInt(_0x44d078(0x217))/0x8)+-parseInt(_0x44d078(0x1fc))/0x9*(parseInt(_0x44d078(0x214))/0xa);if(_0x1d9fcf===_0x700a34)break;else _0x3dc7c6['push'](_0x3dc7c6['shift']());}catch(_0x3c0f87){_0x3dc7c6['push'](_0x3dc7c6['shift']());}}}(a74_0x55ac,0x47bd9));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';function a74_0x55ac(){const _0x109df7=['../../commands/project/init.js','645070qHBxfr','nonInteractive','appcode','328408YkYCmd','toLocaleString','write','message','init','34965yhgclm','appCode','Write\x20to\x20global\x20config\x20instead\x20of\x20project','cwd','valid','string','bool','global','run','\x20\x20Apps:\x20','project','join','env','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','36Jdnbog','检测到旧配置文件,正在自动升级...\x0a','custom','boolean','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','997096XfHpwt','35iYYPeY','some','106308WFMtYv','log','map','str','\x20\x20Default:\x20','flagMissing','yes','1605uVaYKe','validation','3928hIuqqc','Target\x20environment','Usage:\x20','production','118173gXRgHd','\x0a✓\x20Successfully\x20initialized\x20'];a74_0x55ac=function(){return _0x109df7;};return a74_0x55ac();}import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x474b00){return{'appCode':_0x474b00,'appName':_0x474b00};}function writeInitConfig(_0x1b7469,_0x27366b,_0x4128bb){const _0x4ebbca=a74_0x5d80,_0x1ac729=resolveWriteConfigPath(_0x1b7469),_0x3398e7=buildCanonicalProjectConfig({},{'appCodes':_0x27366b['map'](_0x46fc98=>_0x46fc98[_0x4ebbca(0x21d)]),'env':_0x4128bb,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x4ebbca(0x218)]()}});writeConfigFile(_0x1ac729,_0x3398e7);const _0x56c737=_0x1b7469==='global'?_0x4ebbca(0x1f5):_0x4ebbca(0x1f8);console[_0x4ebbca(0x205)](_0x4ebbca(0x212)+_0x56c737+'\x20config'),console[_0x4ebbca(0x205)](_0x4ebbca(0x1f7)+_0x27366b[_0x4ebbca(0x206)](_0x5b26bd=>_0x5b26bd[_0x4ebbca(0x21d)])[_0x4ebbca(0x1f9)](',\x20')),console[_0x4ebbca(0x205)](_0x4ebbca(0x208)+_0x3398e7['defaultApp']),console['log']('\x20\x20Env:\x20'+_0x3398e7['env']),console[_0x4ebbca(0x205)]('\x20\x20Config:\x20'+_0x1ac729);}async function runSmartInit(_0x5e3361){const _0x5ba962=a74_0x5d80,_0x4e190f=process[_0x5ba962(0x21f)](),_0x590f84=_0x5e3361['bool'](_0x5ba962(0x1f5))?_0x5ba962(0x1f5):'project',_0x3c0ea3=_0x5e3361[_0x5ba962(0x207)]('env')||'production',_0x120189=_0x5e3361[_0x5ba962(0x207)](_0x5ba962(0x216))||undefined,_0x133d0e=_0x5e3361[_0x5ba962(0x1f4)]('project');if(_0x133d0e){const {initConfig:_0xe0f9ef}=await import(_0x5ba962(0x213));return _0xe0f9ef({'appcode':_0x120189,'env':_0x3c0ea3,'autoYes':_0x5e3361[_0x5ba962(0x1f4)]('yes')});}if(_0x590f84===_0x5ba962(0x1f8)){const _0x351d52=existsSync(resolve(_0x4e190f,NEW_CONFIG_NAME)),_0x33e5e6=LEGACY_CONFIG_NAMES[_0x5ba962(0x203)](_0x373a0d=>existsSync(resolve(_0x4e190f,_0x373a0d)));if(_0x33e5e6&&!_0x351d52)return console['log'](_0x5ba962(0x1fd)),upgradeApp(_0x5e3361[_0x5ba962(0x215)],{'yes':_0x5e3361['bool'](_0x5ba962(0x20a))});if(_0x351d52)throw CliErrors['validation']('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','Use\x20`'+CLI_BIN_NAME+_0x5ba962(0x1fb));}if(_0x120189){const _0x2873d9=validateAppcode(_0x120189);if(!_0x2873d9[_0x5ba962(0x220)])throw CliErrors[_0x5ba962(0x20c)](_0x2873d9[_0x5ba962(0x21a)]);writeInitConfig(_0x590f84,[syntheticApp(_0x120189)],_0x3c0ea3);return;}if(_0x5e3361[_0x5ba962(0x215)])throw CliErrors[_0x5ba962(0x209)](_0x5ba962(0x216),_0x5ba962(0x20f)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0xa83256=getCookie(),_0x303d3a=await selectMultipleApps(_0xa83256),_0x3ada32=_0x303d3a===_0x5ba962(0x1fe)?[syntheticApp(await promptCustomAppcode())]:_0x303d3a;writeInitConfig(_0x590f84,_0x3ada32,_0x3c0ea3);}const initFlags=[{'name':a74_0x235bfa(0x1f5),'type':a74_0x235bfa(0x1ff),'description':a74_0x235bfa(0x21e),'default':![]},{'name':a74_0x235bfa(0x1fa),'type':a74_0x235bfa(0x1f3),'description':a74_0x235bfa(0x20e),'default':a74_0x235bfa(0x210),'enum':[...RABETBASE_ENV_VALUES]},{'name':'appcode','type':a74_0x235bfa(0x1f3),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':'project','type':'boolean','description':a74_0x235bfa(0x200),'default':![]},{'name':a74_0x235bfa(0x20a),'type':a74_0x235bfa(0x1ff),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a74_0x235bfa(0x21b),'command':a74_0x235bfa(0x1f6),'description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a74_0x235bfa(0x219),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x512899){return await runSmartInit(_0x512899),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a75_0x5b00(){const _0xb4fa65=['1374kvNrsH','4048000JHlylX','8qKbVZo','1442352pOCfcg','312090UIYrXh','8232pDkeIY','79075omlAQm','68zWjFvK','3374280bHCLnG','528098JIIaUb'];a75_0x5b00=function(){return _0xb4fa65;};return a75_0x5b00();}function a75_0x194a(_0x32f330,_0xa2b3c0){_0x32f330=_0x32f330-0x16f;const _0x5b0069=a75_0x5b00();let _0x194a68=_0x5b0069[_0x32f330];return _0x194a68;}(function(_0x4be54a,_0x4a1264){const _0x184aaa=a75_0x194a,_0x2636c3=_0x4be54a();while(!![]){try{const _0x16cf67=parseInt(_0x184aaa(0x175))/0x1+-parseInt(_0x184aaa(0x170))/0x2+-parseInt(_0x184aaa(0x174))/0x3+parseInt(_0x184aaa(0x178))/0x4*(-parseInt(_0x184aaa(0x177))/0x5)+-parseInt(_0x184aaa(0x171))/0x6*(-parseInt(_0x184aaa(0x176))/0x7)+-parseInt(_0x184aaa(0x173))/0x8*(-parseInt(_0x184aaa(0x16f))/0x9)+parseInt(_0x184aaa(0x172))/0xa;if(_0x16cf67===_0x4a1264)break;else _0x2636c3['push'](_0x2636c3['shift']());}catch(_0x147c27){_0x2636c3['push'](_0x2636c3['shift']());}}}(a75_0x5b00,0x54d22));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a76_0xec5c9=a76_0x3fea;(function(_0x23b801,_0x51fbfb){const _0x169040=a76_0x3fea,_0x5d1dd7=_0x23b801();while(!![]){try{const _0x210a75=parseInt(_0x169040(0x195))/0x1*(-parseInt(_0x169040(0x19f))/0x2)+-parseInt(_0x169040(0x1a5))/0x3*(parseInt(_0x169040(0x18e))/0x4)+parseInt(_0x169040(0x17e))/0x5+parseInt(_0x169040(0x19c))/0x6+-parseInt(_0x169040(0x183))/0x7+-parseInt(_0x169040(0x1a3))/0x8+-parseInt(_0x169040(0x19e))/0x9*(-parseInt(_0x169040(0x1a4))/0xa);if(_0x210a75===_0x51fbfb)break;else _0x5d1dd7['push'](_0x5d1dd7['shift']());}catch(_0x2c3524){_0x5d1dd7['push'](_0x5d1dd7['shift']());}}}(a76_0x1778,0xc23e5));import{existsSync}from'node:fs';function a76_0x1778(){const _0x287eaa=['Failed\x20to\x20report\x20platform\x20issue:\x20','Issue\x20description\x20file\x20is\x20empty:\x20','28zDMxcR','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','write','description-file','One-line\x20issue\x20summary','compress','trim','32569cZBoGE','validation','descriptionSource:\x20','inline','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','length','description','4157052xrtvQy','descriptionSource','9kiQVVM','44ChcyGi','join','apiError','flagMissing','8005368hMtPmE','34915340OtttUX','496992mvujdA','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','title','cwd','file','report','descriptionFile:\x20','descriptionFilePath','4614850pCDCTB','string','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','10044216CjrmPs','message','issue.description','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','filter','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','str','Platform\x20issue\x20reported'];a76_0x1778=function(){return _0x287eaa;};return a76_0x1778();}import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';function a76_0x3fea(_0x5c36c,_0x7061cb){_0x5c36c=_0x5c36c-0x17b;const _0x177873=a76_0x1778();let _0x3feac9=_0x177873[_0x5c36c];return _0x3feac9;}const DESCRIPTION_FILE_FLAG=a76_0xec5c9(0x191);export const issueReport={'service':'issue','command':a76_0xec5c9(0x17b),'description':a76_0xec5c9(0x181),'risk':a76_0xec5c9(0x190),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a76_0xec5c9(0x193),'flags':[{'name':'title','type':a76_0xec5c9(0x17f),'required':!![],'description':a76_0xec5c9(0x192)},{'name':a76_0xec5c9(0x19b),'type':'string','description':a76_0xec5c9(0x182)},{'name':DESCRIPTION_FILE_FLAG,'type':a76_0xec5c9(0x17f),'description':a76_0xec5c9(0x186)}],async 'validate'(_0x34485a){const _0x1e9490=a76_0xec5c9,_0x88df6e=_0x34485a[_0x1e9490(0x18a)](_0x1e9490(0x1a8))[_0x1e9490(0x194)](),_0x230eaa=_0x34485a[_0x1e9490(0x18a)](_0x1e9490(0x19b))['trim'](),_0xda1ab0=_0x34485a[_0x1e9490(0x18a)](DESCRIPTION_FILE_FLAG)[_0x1e9490(0x194)]();if(!_0x88df6e)throw CliErrors[_0x1e9490(0x1a2)](_0x1e9490(0x1a8),_0x1e9490(0x180));const _0x3f9afc=_0x230eaa['length']>0x0,_0x2121b8=_0xda1ab0[_0x1e9490(0x19a)]>0x0;if(_0x3f9afc===_0x2121b8)throw CliErrors[_0x1e9490(0x196)](_0x1e9490(0x199),_0x1e9490(0x1a7));if(_0x2121b8){const _0x48eb44=resolve(process[_0x1e9490(0x1a9)](),_0xda1ab0);if(!existsSync(_0x48eb44))throw CliErrors[_0x1e9490(0x196)]('File\x20not\x20found:\x20'+_0x48eb44);}},async 'dryRun'(_0x2a0db1){const _0x14fc3e=a76_0xec5c9,_0x54ad26=await prepareIssueReport(_0x2a0db1);return{'method':'POST','url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x54ad26[_0x14fc3e(0x1a8)],'issue.description':_0x54ad26[_0x14fc3e(0x19b)]}},'description':[_0x14fc3e(0x1a6),_0x14fc3e(0x197)+_0x54ad26['descriptionSource'],_0x54ad26[_0x14fc3e(0x17d)]?_0x14fc3e(0x17c)+_0x54ad26['descriptionFilePath']:null][_0x14fc3e(0x188)](Boolean)[_0x14fc3e(0x1a0)]('\x0a')};},async 'execute'(_0x49afb2){const _0xfb848d=a76_0xec5c9,_0x66077=await prepareIssueReport(_0x49afb2);try{await sendPlatformIssueCollectLog({'title':_0x66077['title'],'description':_0x66077['description']});}catch(_0x440b0d){throw CliErrors[_0xfb848d(0x1a1)](_0xfb848d(0x18c)+(_0x440b0d instanceof Error?_0x440b0d[_0xfb848d(0x184)]:String(_0x440b0d)),_0xfb848d(0x18f));}return{'ok':!![],'message':_0xfb848d(0x18b),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0xfb848d(0x185)],'issue':{'title':_0x66077[_0xfb848d(0x1a8)],'descriptionLength':_0x66077[_0xfb848d(0x19b)][_0xfb848d(0x19a)],'descriptionSource':_0x66077[_0xfb848d(0x19d)],..._0x66077['descriptionFilePath']?{'descriptionFile':_0x66077[_0xfb848d(0x17d)]}:{}}}};}};async function prepareIssueReport(_0x57710c){const _0x247188=a76_0xec5c9,_0x407933=_0x57710c[_0x247188(0x18a)](_0x247188(0x1a8))[_0x247188(0x194)](),_0x150192=_0x57710c[_0x247188(0x18a)](_0x247188(0x19b)),_0x32ca7b=_0x57710c[_0x247188(0x18a)](DESCRIPTION_FILE_FLAG)[_0x247188(0x194)]();if(!_0x32ca7b){const _0x4aafe=_0x150192;if(!_0x4aafe[_0x247188(0x194)]())throw CliErrors[_0x247188(0x196)]('Issue\x20description\x20cannot\x20be\x20empty.',_0x247188(0x187));return{'title':_0x407933,'description':_0x4aafe,'descriptionSource':_0x247188(0x198)};}const _0x3f4d4f=resolve(process[_0x247188(0x1a9)](),_0x32ca7b),_0x20032f=await readFile(_0x3f4d4f,'utf8');if(!_0x20032f[_0x247188(0x194)]())throw CliErrors[_0x247188(0x196)](_0x247188(0x18d)+_0x3f4d4f,_0x247188(0x189));return{'title':_0x407933,'description':_0x20032f,'descriptionSource':_0x247188(0x1aa),'descriptionFilePath':_0x3f4d4f};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77_0x4f6c44=a77_0x3260;function a77_0x342a(){const _0x590d7f=['duration','command','680116HHcQHT','6TnBBPE','592830sAEdgU','5TFGsma','443681sqvkgL','*\x20No\x20logs\x20found','show','logs','Clear\x20command\x20history\x20logs','1576slrRTx','details','forEach','279nJYGTg','View\x20command\x20history\x20logs','1554432OuVTsj','*\x20Logs\x20cleared','en-US','\x20\x20\x20Details:\x20','length','readLogs','log','stringify','keys','toLocaleString','26850EdTAVt','clear','error','message','366XRLsVR','1190068MygNIF','timestamp','level','24avMUfl','write','warn','success'];a77_0x342a=function(){return _0x590d7f;};return a77_0x342a();}(function(_0x3b8a07,_0x293da5){const _0x511366=a77_0x3260,_0x3ed4be=_0x3b8a07();while(!![]){try{const _0x268b70=-parseInt(_0x511366(0x13c))/0x1*(-parseInt(_0x511366(0x14f))/0x2)+-parseInt(_0x511366(0x148))/0x3+-parseInt(_0x511366(0x146))/0x4*(parseInt(_0x511366(0x149))/0x5)+-parseInt(_0x511366(0x147))/0x6*(parseInt(_0x511366(0x14a))/0x7)+parseInt(_0x511366(0x154))/0x8+parseInt(_0x511366(0x152))/0x9*(-parseInt(_0x511366(0x15e))/0xa)+-parseInt(_0x511366(0x13d))/0xb*(-parseInt(_0x511366(0x140))/0xc);if(_0x268b70===_0x293da5)break;else _0x3ed4be['push'](_0x3ed4be['shift']());}catch(_0x263854){_0x3ed4be['push'](_0x3ed4be['shift']());}}}(a77_0x342a,0x2d1ff));import{logger}from'../../utils/logger.js';function a77_0x3260(_0x4665cf,_0x3e977f){_0x4665cf=_0x4665cf-0x13b;const _0x342ae9=a77_0x342a();let _0x326043=_0x342ae9[_0x4665cf];return _0x326043;}function printLogs(_0x57eb82){const _0x5b402a=a77_0x3260;if(_0x57eb82['length']===0x0){console['log'](_0x5b402a(0x14b));return;}console[_0x5b402a(0x15a)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x57eb82[_0x5b402a(0x151)]((_0x2d408d,_0x3366f0)=>{const _0x2ee695=_0x5b402a,_0x2a82bf=new Date(_0x2d408d[_0x2ee695(0x13e)])[_0x2ee695(0x15d)](_0x2ee695(0x156)),_0x2d491c=_0x2d408d['level']===_0x2ee695(0x143)?'√':_0x2d408d[_0x2ee695(0x13f)]===_0x2ee695(0x160)?'×':_0x2d408d[_0x2ee695(0x13f)]===_0x2ee695(0x142)?'!':'i';console['log'](_0x3366f0+0x1+'.\x20'+_0x2d491c+'\x20['+_0x2d408d[_0x2ee695(0x145)]+']\x20'+_0x2d408d[_0x2ee695(0x13b)]),console['log']('\x20\x20\x20Time:\x20'+_0x2a82bf),_0x2d408d[_0x2ee695(0x144)]&&console['log']('\x20\x20\x20Duration:\x20'+_0x2d408d[_0x2ee695(0x144)]+'ms'),_0x2d408d[_0x2ee695(0x150)]&&Object[_0x2ee695(0x15c)](_0x2d408d['details'])[_0x2ee695(0x158)]>0x0&&console[_0x2ee695(0x15a)](_0x2ee695(0x157)+JSON[_0x2ee695(0x15b)](_0x2d408d[_0x2ee695(0x150)],null,0x2)),console[_0x2ee695(0x15a)]('');});}export const logsDefinitions=[{'service':a77_0x4f6c44(0x14d),'command':a77_0x4f6c44(0x14c),'description':a77_0x4f6c44(0x153),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4a773c){const _0x5cb68c=a77_0x4f6c44;return printLogs(logger[_0x5cb68c(0x159)]()),{'ok':!![]};}},{'service':a77_0x4f6c44(0x14d),'command':a77_0x4f6c44(0x15f),'description':a77_0x4f6c44(0x14e),'risk':a77_0x4f6c44(0x141),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5add97){const _0x336a2d=a77_0x4f6c44;return logger['clearLogs'](),console[_0x336a2d(0x15a)](_0x336a2d(0x155)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x9d60b6,_0x5d4bad){const _0x5ec956=a78_0x2871,_0x3156d4=_0x9d60b6();while(!![]){try{const _0x1835f5=parseInt(_0x5ec956(0xdb))/0x1+-parseInt(_0x5ec956(0xd8))/0x2*(-parseInt(_0x5ec956(0xd9))/0x3)+-parseInt(_0x5ec956(0xdc))/0x4*(parseInt(_0x5ec956(0xde))/0x5)+-parseInt(_0x5ec956(0xd7))/0x6+parseInt(_0x5ec956(0xdf))/0x7+parseInt(_0x5ec956(0xdd))/0x8+parseInt(_0x5ec956(0xd6))/0x9*(-parseInt(_0x5ec956(0xda))/0xa);if(_0x1835f5===_0x5d4bad)break;else _0x3156d4['push'](_0x3156d4['shift']());}catch(_0x496f2c){_0x3156d4['push'](_0x3156d4['shift']());}}}(a78_0x5071,0x7c5e9));function a78_0x5071(){const _0x23c645=['5764176RHQiTk','247215YeCkxT','4582655GESjHL','9mfGyoY','575082WWptEU','764PjzwgH','867jnGEHe','2775050CkpKQB','39943owyKGH','52dwAiQj'];a78_0x5071=function(){return _0x23c645;};return a78_0x5071();}function a78_0x2871(_0x36b258,_0x20fea){_0x36b258=_0x36b258-0xd6;const _0x50715d=a78_0x5071();let _0x28710f=_0x50715d[_0x36b258];return _0x28710f;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5cef72,_0x4d8b70){const _0x15df3f=a79_0x5f21,_0x1ece1f=_0x5cef72();while(!![]){try{const _0x1c38bf=parseInt(_0x15df3f(0xae))/0x1*(-parseInt(_0x15df3f(0x99))/0x2)+parseInt(_0x15df3f(0x9f))/0x3*(-parseInt(_0x15df3f(0xaa))/0x4)+-parseInt(_0x15df3f(0xb3))/0x5*(parseInt(_0x15df3f(0xa1))/0x6)+-parseInt(_0x15df3f(0xac))/0x7+parseInt(_0x15df3f(0xa4))/0x8*(-parseInt(_0x15df3f(0xb7))/0x9)+-parseInt(_0x15df3f(0xa2))/0xa*(-parseInt(_0x15df3f(0xa9))/0xb)+parseInt(_0x15df3f(0xa8))/0xc;if(_0x1c38bf===_0x4d8b70)break;else _0x1ece1f['push'](_0x1ece1f['shift']());}catch(_0x26cf4e){_0x1ece1f['push'](_0x1ece1f['shift']());}}}(a79_0x239a,0x7452a));function a79_0x239a(){const _0xd684d=['\x20\x20Affected\x20menus:\x20','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','test','25745880AllfUw','11FqXKFI','20wSORgA','max','2416764ixhKpQ','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','791187lnBWYn','repeat','path','\x20\x20\x20\x20CSS:\x20','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','20mxEdwm','label','(unchanged)','push','8261685IWaSCv','online','\x20\x20No\x20pages\x20to\x20sync.','2hMvTzB','showOnline','length','\x20\x20\x20\x20•\x20','Menu\x20Name','Platform','17331gYXEOa','Local','698556tqeenG','8799610MDihLO','join','8ytXYVa'];a79_0x239a=function(){return _0xd684d;};return a79_0x239a();}function strWidth(_0x375576){const _0x158ac0=a79_0x5f21;let _0x117ad9=0x0;for(const _0x339817 of _0x375576){_0x117ad9+=/[\u4e00-\u9fa5]/[_0x158ac0(0xa7)](_0x339817)?0x2:0x1;}return _0x117ad9;}function padRight(_0x3bedfc,_0x298629){const _0x1d097d=a79_0x5f21,_0x3adab8=strWidth(_0x3bedfc);return _0x3bedfc+'\x20'[_0x1d097d(0xaf)](Math[_0x1d097d(0xab)](0x0,_0x298629-_0x3adab8));}export function renderCompareTable(_0x16eeb,_0x485a7b={}){const _0x498e39=a79_0x5f21;if(_0x16eeb['length']===0x0)return'';const _0x5bd34a=_0x485a7b[_0x498e39(0x9a)]??!![],_0x596a23=Math['max'](0x1e,..._0x16eeb['map'](_0x1c258e=>strWidth(_0x1c258e[_0x498e39(0xb4)]))),_0x79d529=0x4,_0x2e3f53=[],_0xcad9ae='\x20\x20'+padRight(_0x498e39(0x9d),_0x596a23),_0x432160=padRight(_0x498e39(0xa0),_0x79d529),_0x214c55=_0x5bd34a?'\x20\x20'+padRight(_0x498e39(0x9e),_0x79d529):'';_0x2e3f53[_0x498e39(0xb6)](_0xcad9ae+'\x20\x20'+_0x432160+(_0x5bd34a?_0x214c55:'')),_0x2e3f53[_0x498e39(0xb6)]('\x20\x20'+'─'[_0x498e39(0xaf)](_0x596a23)+'\x20\x20'+'─'[_0x498e39(0xaf)](_0x79d529)+(_0x5bd34a?'\x20\x20'+'─'[_0x498e39(0xaf)](_0x79d529):''));for(const _0x1a53a0 of _0x16eeb){const _0x189bb2=padRight(_0x1a53a0['label'],_0x596a23),_0x5f3871=_0x1a53a0['local']?'✓':'✗',_0x59eb8d=padRight(_0x5f3871,_0x79d529);let _0x3332e6='\x20\x20'+_0x189bb2+'\x20\x20'+_0x59eb8d;if(_0x5bd34a){const _0x214e4c=_0x1a53a0[_0x498e39(0xb8)]?'✓':'✗';_0x3332e6+='\x20\x20'+padRight(_0x214e4c,_0x79d529);}_0x2e3f53[_0x498e39(0xb6)](_0x3332e6);}return _0x2e3f53[_0x498e39(0xa3)]('\x0a');}function a79_0x5f21(_0x338a42,_0x1d2341){_0x338a42=_0x338a42-0x98;const _0x239a4e=a79_0x239a();let _0x5f21f1=_0x239a4e[_0x338a42];return _0x5f21f1;}export function renderSyncSummary(_0x398088,_0x1b133a){const _0x497b28=a79_0x5f21;if(_0x398088['length']===0x0)return _0x1b133a?_0x497b28(0xad):_0x497b28(0x98);const _0x1806c9=['\x20\x20'+_0x398088['length']+_0x497b28(0xa6)];for(const _0xf35f78 of _0x398088){_0x1806c9[_0x497b28(0xb6)](_0x497b28(0x9c)+_0xf35f78[_0x497b28(0xb4)]+'\x20('+_0xf35f78[_0x497b28(0xb0)]+')');}return _0x1806c9[_0x497b28(0xa3)]('\x0a');}export function renderUpdateSummary(_0x2d0ff6,_0x489be5){const _0x38e1c7=a79_0x5f21;if(_0x2d0ff6[_0x38e1c7(0x9b)]===0x0)return _0x38e1c7(0xb2);const _0x136258=['\x20\x20'+_0x2d0ff6[_0x38e1c7(0x9b)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20\x20\x20JS:\x20\x20'+(_0x489be5[0x0]??_0x38e1c7(0xb5)),_0x38e1c7(0xb1)+(_0x489be5[0x1]??_0x38e1c7(0xb5)),'',_0x38e1c7(0xa5)+_0x2d0ff6[_0x38e1c7(0xa3)](',\x20')];return _0x136258[_0x38e1c7(0xa3)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a80_0x2191(_0x2478c5,_0x432800){_0x2478c5=_0x2478c5-0xe0;var _0x4b3cc5=a80_0x4b3c();var _0x21915a=_0x4b3cc5[_0x2478c5];return _0x21915a;}(function(_0x2b7cd8,_0x38bd0d){var _0x229b09=a80_0x2191,_0x1f04a2=_0x2b7cd8();while(!![]){try{var _0x13601e=parseInt(_0x229b09(0xe9))/0x1*(-parseInt(_0x229b09(0xea))/0x2)+parseInt(_0x229b09(0xe1))/0x3+-parseInt(_0x229b09(0xe3))/0x4*(-parseInt(_0x229b09(0xe8))/0x5)+parseInt(_0x229b09(0xe4))/0x6*(parseInt(_0x229b09(0xe7))/0x7)+-parseInt(_0x229b09(0xe2))/0x8*(-parseInt(_0x229b09(0xe6))/0x9)+-parseInt(_0x229b09(0xe0))/0xa+-parseInt(_0x229b09(0xe5))/0xb;if(_0x13601e===_0x38bd0d)break;else _0x1f04a2['push'](_0x1f04a2['shift']());}catch(_0x4bdd88){_0x1f04a2['push'](_0x1f04a2['shift']());}}}(a80_0x4b3c,0x6c5a3));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';function a80_0x4b3c(){var _0xb4e622=['1952343LktyJn','2723fBaPUi','15akOrUX','46167bSLqtL','14uAepjX','4536660yRmKAe','2004009YMorYI','8agylSf','351004ltQxlh','11358eTNSmH','7303054BjknNp'];a80_0x4b3c=function(){return _0xb4e622;};return a80_0x4b3c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3ab177,_0x425082){const _0x42e844=a81_0x3625,_0x533cf5=_0x3ab177();while(!![]){try{const _0x59e418=-parseInt(_0x42e844(0x1ca))/0x1+-parseInt(_0x42e844(0x1e0))/0x2*(parseInt(_0x42e844(0x1d0))/0x3)+parseInt(_0x42e844(0x1d3))/0x4+parseInt(_0x42e844(0x1d4))/0x5+parseInt(_0x42e844(0x1db))/0x6+parseInt(_0x42e844(0x1ee))/0x7+parseInt(_0x42e844(0x1d2))/0x8;if(_0x59e418===_0x425082)break;else _0x533cf5['push'](_0x533cf5['shift']());}catch(_0x40464e){_0x533cf5['push'](_0x533cf5['shift']());}}}(a81_0x1b70,0x31653));import a81_0x5a7fca from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a81_0x2a9e9c from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';function a81_0x3625(_0x17fc69,_0x3dce30){_0x17fc69=_0x17fc69-0x1c9;const _0x1b70ec=a81_0x1b70();let _0x362559=_0x1b70ec[_0x17fc69];return _0x362559;}import{CliErrors}from'../../../errors.js';function onCancel(_0x4cdef1){return _0x4cdef1['catch'](_0x3ca51d=>{const _0x4990a6=a81_0x3625;if(_0x3ca51d?.[_0x4990a6(0x1e3)]===_0x4990a6(0x1cd))throw CliErrors[_0x4990a6(0x1cb)](_0x4990a6(0x1e8));throw _0x3ca51d;});}export function startSpinner(_0x156860){const _0x3330e3=a81_0x3625;return a81_0x2a9e9c({'text':_0x156860,'color':'cyan'})[_0x3330e3(0x1d9)]();}export function stopSpinner(_0x5977e4,_0x2277d6,_0x5939f9){const _0xf55598=a81_0x3625;_0x5939f9?_0x5977e4[_0xf55598(0x1c9)](_0x2277d6):_0x5977e4[_0xf55598(0x1ec)](_0x2277d6);}export async function askConfirm(_0x4ecdf9){return onCancel(confirm({'message':_0x4ecdf9,'theme':{'prefix':''}}));}export async function askJsUrl(_0x5343bb){const _0x45b56f=a81_0x3625;while(!![]){const _0x44c29c=await onCancel(input({'message':_0x45b56f(0x1cc),'default':_0x5343bb,'theme':{'prefix':''}}));if(_0x44c29c['trim']()==='')throw CliErrors[_0x45b56f(0x1cb)]('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x45b56f(0x1d6)](_0x44c29c[_0x45b56f(0x1e5)]())){console[_0x45b56f(0x1ed)](a81_0x5a7fca[_0x45b56f(0x1e1)](_0x45b56f(0x1f0)));continue;}const _0x4756d5=startSpinner('\x20\x20Checking\x20JS\x20URL\x20reachability...');try{const _0x30ccb1=await isUrlReachable(_0x44c29c['trim']());stopSpinner(_0x4756d5,_0x45b56f(0x1dd),_0x30ccb1);if(!_0x30ccb1){console[_0x45b56f(0x1ed)](a81_0x5a7fca[_0x45b56f(0x1e1)](_0x45b56f(0x1cf)));continue;}return _0x44c29c[_0x45b56f(0x1e5)]();}catch(_0x1bcf61){stopSpinner(_0x4756d5,_0x45b56f(0x1ea),![]);throw _0x1bcf61;}}}export async function askCssUrl(_0x3dd0b2){const _0x305d31=a81_0x3625;while(!![]){const _0x39668b=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x3dd0b2,'theme':{'prefix':''}}));if(_0x39668b['trim']()==='')throw CliErrors[_0x305d31(0x1cb)](_0x305d31(0x1e8));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x305d31(0x1d6)](_0x39668b[_0x305d31(0x1e5)]())){console[_0x305d31(0x1ed)](a81_0x5a7fca['red'](_0x305d31(0x1d1)));continue;}const _0x1c4806=startSpinner(_0x305d31(0x1d5));try{const _0x5b568e=await isUrlReachable(_0x39668b[_0x305d31(0x1e5)]());stopSpinner(_0x1c4806,_0x305d31(0x1f4),_0x5b568e);if(!_0x5b568e){console[_0x305d31(0x1ed)](a81_0x5a7fca['red']('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x39668b[_0x305d31(0x1e5)]();}catch(_0x49da5d){stopSpinner(_0x1c4806,_0x305d31(0x1f5),![]);throw _0x49da5d;}}}export async function selectPages(_0x2eb383,_0x1c3590,_0x3d3a4b){const _0xcf5f6f=a81_0x3625,_0x225df6=_0x2eb383[_0xcf5f6f(0x1ef)](_0x5c391d=>({'name':_0x5c391d[_0xcf5f6f(0x1e2)]+'\x20\x20'+(_0x1c3590[_0xcf5f6f(0x1e7)](_0x5c391d[_0xcf5f6f(0x1dc)])?a81_0x5a7fca[_0xcf5f6f(0x1ce)](_0xcf5f6f(0x1d8)):a81_0x5a7fca[_0xcf5f6f(0x1f3)](_0xcf5f6f(0x1e4))),'value':_0x5c391d[_0xcf5f6f(0x1e2)],'checked':_0x3d3a4b?_0x3d3a4b[_0xcf5f6f(0x1da)](_0x5c391d[_0xcf5f6f(0x1e2)]):!_0x1c3590[_0xcf5f6f(0x1e7)](_0x5c391d[_0xcf5f6f(0x1dc)])}));if(_0x225df6['length']===0x0)throw new Error(_0xcf5f6f(0x1f1));const _0x277621=await onCancel(checkbox({'message':_0xcf5f6f(0x1eb),'choices':_0x225df6,'loop':![],'theme':{'prefix':''}}));if(_0x277621[_0xcf5f6f(0x1de)]===0x0)throw new Error(_0xcf5f6f(0x1d7));return _0x2eb383[_0xcf5f6f(0x1f6)](_0x2583fa=>_0x277621['includes'](_0x2583fa[_0xcf5f6f(0x1e2)]));}export function isInteractive(){const _0x26be15=a81_0x3625;return process[_0x26be15(0x1df)][_0x26be15(0x1e9)]===!![];}function a81_0x1b70(){const _0x59062b=['isTTY','JS\x20URL\x20check\x20failed','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','fail','error','1185275ggHnvh','map','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','No\x20local\x20pages\x20found.','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','green','CSS\x20URL\x20checked','CSS\x20URL\x20check\x20failed','filter','succeed','371573sbruzO','cancelled','\x20\x20JS\x20URL:','ExitPromptError','gray','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','397206dYCtBr','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','3342184qkpVqt','378316xeqfaM','1444245uCWDDg','\x20\x20Checking\x20CSS\x20URL\x20reachability...','test','No\x20menus\x20selected.','[already\x20on\x20platform]','start','includes','3456OpoOPb','path','JS\x20URL\x20checked','length','stdin','6yMhzpw','red','label','name','[new]','trim','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','has','Cancelled.'];a81_0x1b70=function(){return _0x59062b;};return a81_0x1b70();}export function requireInteractive(){const _0x10ed11=a81_0x3625;if(!isInteractive())throw new Error(_0x10ed11(0x1f2)+_0x10ed11(0x1e6));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x3a7b45=a82_0x1fb4;function a82_0x1fb4(_0x80e339,_0x46c540){_0x80e339=_0x80e339-0xc7;const _0x1a73af=a82_0x1a73();let _0x1fb49c=_0x1a73af[_0x80e339];return _0x1fb49c;}(function(_0x5098a1,_0x3fdb74){const _0x3f0672=a82_0x1fb4,_0x58811f=_0x5098a1();while(!![]){try{const _0x54f9f3=-parseInt(_0x3f0672(0xdd))/0x1*(-parseInt(_0x3f0672(0xd1))/0x2)+-parseInt(_0x3f0672(0xce))/0x3*(-parseInt(_0x3f0672(0xd2))/0x4)+-parseInt(_0x3f0672(0xcd))/0x5*(-parseInt(_0x3f0672(0xdb))/0x6)+parseInt(_0x3f0672(0xda))/0x7*(-parseInt(_0x3f0672(0xd0))/0x8)+parseInt(_0x3f0672(0xd9))/0x9*(parseInt(_0x3f0672(0xdc))/0xa)+-parseInt(_0x3f0672(0xdf))/0xb+-parseInt(_0x3f0672(0xc7))/0xc;if(_0x54f9f3===_0x3fdb74)break;else _0x58811f['push'](_0x58811f['shift']());}catch(_0x6ec559){_0x58811f['push'](_0x58811f['shift']());}}}(a82_0x1a73,0xef722));import{readdirSync,statSync,readFileSync}from'fs';function a82_0x1a73(){const _0x3dd9df=['join','5GchJdN','630243BhNBjU','concat','16aKbneA','15706cPFjom','8kwTifi','cwd','replace','forEach','isDirectory','filter','src/pages','9YwEsbb','5644737ysRONt','11558334iKRubl','17581310PEkIch','221rrrzTH','endsWith','19679924vcaFUC','trim','17490708DvbeLL','path','match','split','slice'];a82_0x1a73=function(){return _0x3dd9df;};return a82_0x1a73();}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a82_0x3a7b45(0xd3)](),a82_0x3a7b45(0xd8));export function extractTitleFromComment(_0x27e7ff){const _0x5e4390=a82_0x3a7b45;try{const _0x445d57=readFileSync(_0x27e7ff,'utf-8'),_0xf9f253=_0x445d57['match'](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0xf9f253&&_0xf9f253[0x1]){const _0x9f2f7a=_0xf9f253[0x1],_0x41e825=_0x9f2f7a[_0x5e4390(0xc9)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x41e825&&_0x41e825[0x1])return _0x41e825[0x1][_0x5e4390(0xe0)]();}let _0x27cd1f=null;const _0x38981f=_0x445d57[_0x5e4390(0xc9)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x38981f&&_0x38981f[0x1]&&(_0x27cd1f=_0x38981f[0x1]);if(!_0x27cd1f){const _0x1353bb=_0x445d57['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x1353bb&&_0x1353bb[0x1]&&(_0x27cd1f=_0x1353bb[0x1]);}if(_0x27cd1f){const _0x24d4fa=new RegExp('\x5cb'+_0x27cd1f+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x522a8d=_0x445d57[_0x5e4390(0xc9)](_0x24d4fa);if(_0x522a8d&&_0x522a8d[0x1])return _0x522a8d[0x1];return _0x27cd1f;}return null;}catch(_0x1bcbd3){return null;}}export function getLocalPages(_0x446669=pagesDir,_0x33bf37=pagesDir){const _0x295feb=a82_0x3a7b45;let _0x47c677=[];const _0x376f7e=readdirSync(_0x446669);return _0x376f7e[_0x295feb(0xd5)](_0x31e718=>{const _0x4ada77=_0x295feb,_0x220d6f=join(_0x446669,_0x31e718),_0x803616=statSync(_0x220d6f);if(_0x803616&&_0x803616[_0x4ada77(0xd6)]())_0x47c677=_0x47c677[_0x4ada77(0xcf)](getLocalPages(_0x220d6f,_0x33bf37));else{if(_0x31e718[_0x4ada77(0xde)]('.tsx')){let _0x4a8694=relative(_0x33bf37,_0x220d6f);_0x4a8694[_0x4ada77(0xde)]('index.tsx')?_0x4a8694=_0x4a8694['replace'](/index\.tsx$/,''):_0x4a8694=_0x4a8694[_0x4ada77(0xd4)](/\.tsx$/,'');_0x4a8694['endsWith'](sep)&&(_0x4a8694=_0x4a8694[_0x4ada77(0xcb)](0x0,-0x1));const _0x52966b=_0x4a8694[_0x4ada77(0xca)](sep)[_0x4ada77(0xcc)]('/'),_0x3b14cc=extractTitleFromComment(_0x220d6f),_0x4982ce=_0x3b14cc||_0x52966b;_0x47c677['push']({'path':_0x52966b['replaceAll']('$',':'),'label':_0x4982ce});}}}),_0x47c677[_0x295feb(0xd7)](_0x1e0128=>_0x1e0128[_0x295feb(0xc8)]!=='');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a83_0x2c6d(){const _0x49c151=['CSS\x20URL\x20is\x20unreachable','status','rejected','join','8064621NbvMUk','698XxjkIS','4ZGdOtP','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','resources','10aOokhH','push','6393219mLgMTf','map','456usYbta','5DuqjHR','1722182cUGExW','errors','label','path','3824823lipuTP','has','trim','3877768CIvtST','length','filter','find','6106446LqLCCo','12RfDHPB','value'];a83_0x2c6d=function(){return _0x49c151;};return a83_0x2c6d();}(function(_0x5a27e8,_0x4771a9){const _0x356de7=a83_0x4d31,_0x3e092e=_0x5a27e8();while(!![]){try{const _0x3752b5=-parseInt(_0x356de7(0x1b7))/0x1*(parseInt(_0x356de7(0x1af))/0x2)+parseInt(_0x356de7(0x1a0))/0x3*(parseInt(_0x356de7(0x1b0))/0x4)+-parseInt(_0x356de7(0x19b))/0x5*(-parseInt(_0x356de7(0x1a7))/0x6)+-parseInt(_0x356de7(0x1b5))/0x7+parseInt(_0x356de7(0x1a3))/0x8+parseInt(_0x356de7(0x1ae))/0x9*(-parseInt(_0x356de7(0x1b3))/0xa)+-parseInt(_0x356de7(0x19c))/0xb*(parseInt(_0x356de7(0x1a8))/0xc);if(_0x3752b5===_0x4771a9)break;else _0x3e092e['push'](_0x3e092e['shift']());}catch(_0x432307){_0x3e092e['push'](_0x3e092e['shift']());}}}(a83_0x2c6d,0x9f417));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';function a83_0x4d31(_0x41277e,_0x208724){_0x41277e=_0x41277e-0x19b;const _0x2c6d75=a83_0x2c6d();let _0x4d3169=_0x2c6d75[_0x41277e];return _0x4d3169;}import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x443288){const _0x5829cd=a83_0x4d31,_0x54517b=[];return!isValidJsHttpsUrl(_0x443288)&&_0x54517b[_0x5829cd(0x1b4)](_0x5829cd(0x1b1)),{'ok':_0x54517b[_0x5829cd(0x1a4)]===0x0,'errors':_0x54517b};}export function validateCssUrl(_0x4ade48){const _0x9dbb69=a83_0x4d31,_0x35fd48=[];return!isValidCssHttpsUrl(_0x4ade48)&&_0x35fd48[_0x9dbb69(0x1b4)]('CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'),{'ok':_0x35fd48['length']===0x0,'errors':_0x35fd48};}export async function validateJsUrlReachable(_0x3a7264){const _0x31905c=a83_0x4d31,_0x204cf9=validateJsUrl(_0x3a7264);if(!_0x204cf9['ok'])return _0x204cf9;const _0x546805=await isUrlReachable(_0x3a7264);if(!_0x546805)_0x204cf9['errors']['push']('JS\x20URL\x20is\x20unreachable');return{'ok':_0x204cf9['errors'][_0x31905c(0x1a4)]===0x0,'errors':_0x204cf9[_0x31905c(0x19d)]};}export async function validateCssUrlReachable(_0x4df2bd){const _0x37eaee=a83_0x4d31,_0x35a4a6=validateCssUrl(_0x4df2bd);if(!_0x35a4a6['ok'])return _0x35a4a6;const _0x51dde7=await isUrlReachable(_0x4df2bd);if(!_0x51dde7)_0x35a4a6['errors'][_0x37eaee(0x1b4)](_0x37eaee(0x1aa));return{'ok':_0x35a4a6[_0x37eaee(0x19d)][_0x37eaee(0x1a4)]===0x0,'errors':_0x35a4a6['errors']};}export function buildCompareRows(_0x3e7d38,_0x3c7b8b){const _0xd503c7=a83_0x4d31;return _0x3e7d38[_0xd503c7(0x1b6)](_0x581f85=>({'label':_0x581f85[_0xd503c7(0x19e)],'path':_0x581f85[_0xd503c7(0x19f)],'local':!![],'online':_0x3c7b8b['has'](_0x581f85[_0xd503c7(0x19f)])}));}export function filterNewPages(_0x2bd062,_0x5af07f,_0x411083){const _0x4d9ba=a83_0x4d31;if(_0x411083&&_0x411083[_0x4d9ba(0x1a4)]>0x0){const _0x36ad42=new Set(_0x411083['map'](_0xb673d4=>_0xb673d4[_0x4d9ba(0x1a2)]())),_0x4c9915=_0x2bd062['filter'](_0x3bb53b=>_0x36ad42[_0x4d9ba(0x1a1)](_0x3bb53b['label']));if(_0x4c9915[_0x4d9ba(0x1a4)]===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x36ad42][_0x4d9ba(0x1ad)](',\x20'));return _0x4c9915;}return _0x2bd062[_0x4d9ba(0x1a5)](_0x1ff5f7=>!_0x5af07f[_0x4d9ba(0x1a1)](_0x1ff5f7[_0x4d9ba(0x19f)]));}export function filterPagesByLabels(_0x38a4c6,_0x179137){const _0x219e04=a83_0x4d31,_0x8bdae1=[],_0x5abf12=[];for(const _0x1b339f of _0x179137){const _0x590af=_0x1b339f['trim'](),_0x5cd43b=_0x38a4c6[_0x219e04(0x1a6)](_0xe0a8de=>_0xe0a8de[_0x219e04(0x19e)]===_0x590af);if(_0x5cd43b)_0x8bdae1[_0x219e04(0x1b4)](_0x5cd43b);else _0x5abf12[_0x219e04(0x1b4)](_0x1b339f);}return{'matched':_0x8bdae1,'unmatched':_0x5abf12};}export async function doCreateMenus(_0x53e9dd,_0x339061,_0x4807d8,_0x4addd2){const _0x5359e5=a83_0x4d31,_0x546c78=await createMenus(_0x53e9dd,_0x339061,_0x4807d8,_0x4addd2);return{'created':_0x546c78[_0x5359e5(0x1a4)],'failed':0x0,'labels':_0x4807d8[_0x5359e5(0x1b6)](_0x50e12b=>_0x50e12b[_0x5359e5(0x19e)]),'menus':_0x546c78};}export function filterMenusWithResources(_0x2b9d20){const _0x35b868=a83_0x4d31;return _0x2b9d20[_0x35b868(0x1a5)](_0x3ac742=>_0x3ac742[_0x35b868(0x1b2)][_0x35b868(0x1a4)]>0x0);}export async function doUpdateCdnUrls(_0x590a47,_0x36f69d,_0x373a10,_0x5e5ae4){const _0x2bc89f=a83_0x4d31,_0x8dd7b5=_0x373a10[_0x2bc89f(0x1a5)](_0xea0a21=>_0xea0a21[_0x2bc89f(0x1b2)]['length']>0x0),_0x41e201=await Promise['allSettled'](_0x8dd7b5[_0x2bc89f(0x1b6)](_0x5ae4a8=>updateMenuCdnUrl(_0x590a47,_0x36f69d,{'id':_0x5ae4a8['id'],'label':_0x5ae4a8['label'],'path':_0x5ae4a8[_0x2bc89f(0x19f)],'resources':_0x5e5ae4}))),_0x574bf2=_0x41e201['filter'](_0x1e7cf7=>_0x1e7cf7[_0x2bc89f(0x1ab)]==='fulfilled')[_0x2bc89f(0x1b6)](_0x3f9ee5=>_0x3f9ee5[_0x2bc89f(0x1a9)]),_0x1e05c5=_0x41e201['filter'](_0x23fb62=>_0x23fb62[_0x2bc89f(0x1ab)]===_0x2bc89f(0x1ac))['length'];return{'updated':_0x574bf2[_0x2bc89f(0x1a4)],'failed':_0x1e05c5,'menus':_0x574bf2};}export async function fetchMenuData(_0x1a56b5,_0x1d44a9){const _0xf6f8d5=a83_0x4d31,_0x3bc517=getLocalPages(),_0x32d453=await getOnlineMenuList(_0x1a56b5,_0x1d44a9),_0xc6bd99=new Set(_0x32d453[_0xf6f8d5(0x1b6)](_0x457fef=>_0x457fef[_0xf6f8d5(0x19f)]));return{'localPages':_0x3bc517,'onlineMenuList':_0x32d453,'onlinePaths':_0xc6bd99};}export async function fetchOnlineMenuList(_0x2da1a4,_0x59908b){return getOnlineMenuList(_0x2da1a4,_0x59908b);}
|