@lovrabet/rabetbase-cli 2.1.7-beta.8 → 2.1.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
|
-
const
|
|
1
|
+
function a68_0x11ef(_0x59202b,_0xda14aa){_0x59202b=_0x59202b-0x66;const _0x554372=a68_0x5543();let _0x11ef4e=_0x554372[_0x59202b];return _0x11ef4e;}const a68_0x39b253=a68_0x11ef;(function(_0x2e90aa,_0x417065){const _0x6dc89f=a68_0x11ef,_0x223864=_0x2e90aa();while(!![]){try{const _0x54c1f1=parseInt(_0x6dc89f(0x66))/0x1*(-parseInt(_0x6dc89f(0x79))/0x2)+-parseInt(_0x6dc89f(0x75))/0x3*(-parseInt(_0x6dc89f(0x72))/0x4)+-parseInt(_0x6dc89f(0x70))/0x5*(-parseInt(_0x6dc89f(0x7c))/0x6)+-parseInt(_0x6dc89f(0x6f))/0x7*(-parseInt(_0x6dc89f(0x6d))/0x8)+parseInt(_0x6dc89f(0x69))/0x9*(-parseInt(_0x6dc89f(0x78))/0xa)+parseInt(_0x6dc89f(0x6e))/0xb+-parseInt(_0x6dc89f(0x67))/0xc;if(_0x54c1f1===_0x417065)break;else _0x223864['push'](_0x223864['shift']());}catch(_0x52c5f1){_0x223864['push'](_0x223864['shift']());}}}(a68_0x5543,0xad034));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';function a68_0x5543(){const _0x1c58b2=['Page\x20index\x20(1-based)','1022481LmFkBg','17957076zYHUFc','length','198XHtrOA','num','pagesize','number','896KlNlSP','8196628DpYzfy','49679yAIGTG','65BlVKCB','Page\x20size','4TBQjsg','Found\x20','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','3140919iRMUHC','\x20database\x20connection(s)','list','94910YrnNYP','2oZhglV','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','appCode','392022UYfiuq','page','read'];a68_0x5543=function(){return _0x1c58b2;};return a68_0x5543();}export const dbList={'service':'db','command':a68_0x39b253(0x77),'description':a68_0x39b253(0x7a),'risk':a68_0x39b253(0x7e),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':'number','description':a68_0x39b253(0x7f),'default':0x1},{'name':a68_0x39b253(0x6b),'type':a68_0x39b253(0x6c),'description':a68_0x39b253(0x71),'default':0x64}],async 'execute'(_0x417056){const _0x44f09a=a68_0x39b253,_0xe7e343=_0x417056['num'](_0x44f09a(0x7d),0x1)||0x1,_0x4a6f23=_0x417056[_0x44f09a(0x6a)]('pagesize',0x64)||0x64,{items:_0x185927,paging:_0x378b2b}=await listDbLinks(_0x417056[_0x44f09a(0x7b)],{'currentPage':_0xe7e343,'pageSize':_0x4a6f23}),_0x4f6ba6=sanitizeDbLinkList(_0x185927),_0x1016bf=_0x378b2b?_0x378b2b:{'currentPage':_0xe7e343,'pageSize':_0x4a6f23,'rowsOnPage':_0x4f6ba6[_0x44f09a(0x68)],'totalCount':null,'note':_0x44f09a(0x74)};return{'ok':!![],'data':{'connections':_0x4f6ba6,'paging':_0x1016bf},'message':_0x44f09a(0x73)+_0x4f6ba6[_0x44f09a(0x68)]+_0x44f09a(0x76)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a69_0x1ebb(_0x3acf30,_0x5b2df3){_0x3acf30=_0x3acf30-0x119;const _0x51f159=a69_0x51f1();let _0x1ebbb1=_0x51f159[_0x3acf30];return _0x1ebbb1;}(function(_0x83c15b,_0xfc29ae){const _0x4c57e7=a69_0x1ebb,_0x280846=_0x83c15b();while(!![]){try{const _0x28eb54=-parseInt(_0x4c57e7(0x136))/0x1*(-parseInt(_0x4c57e7(0x121))/0x2)+-parseInt(_0x4c57e7(0x11f))/0x3*(parseInt(_0x4c57e7(0x126))/0x4)+-parseInt(_0x4c57e7(0x12b))/0x5*(parseInt(_0x4c57e7(0x12e))/0x6)+-parseInt(_0x4c57e7(0x12c))/0x7*(parseInt(_0x4c57e7(0x11a))/0x8)+parseInt(_0x4c57e7(0x131))/0x9*(parseInt(_0x4c57e7(0x119))/0xa)+parseInt(_0x4c57e7(0x134))/0xb*(-parseInt(_0x4c57e7(0x128))/0xc)+parseInt(_0x4c57e7(0x123))/0xd;if(_0x28eb54===_0xfc29ae)break;else _0x280846['push'](_0x280846['shift']());}catch(_0x4eef2c){_0x280846['push'](_0x280846['shift']());}}}(a69_0x51f1,0xa5b62));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x409e2c){const _0x49e8db=a69_0x1ebb,_0x363317=_0x409e2c[_0x49e8db(0x132)]();if(_0x363317==='password'||_0x363317===_0x49e8db(0x12a)||_0x363317===_0x49e8db(0x125))return!![];if(_0x363317[_0x49e8db(0x12f)](_0x49e8db(0x120))||_0x363317[_0x49e8db(0x12f)]('token')||_0x363317[_0x49e8db(0x12f)](_0x49e8db(0x122)))return!![];if(_0x363317[_0x49e8db(0x12f)](_0x49e8db(0x11c))||_0x363317[_0x49e8db(0x12f)]('accesskey'))return!![];if(_0x363317==='authorization'||_0x363317==='connectionstring'||_0x363317===_0x49e8db(0x133))return!![];return![];}export function sanitizeDbLinkForOutput(_0x369dfb){const _0x172dec=a69_0x1ebb,_0x46abd8={..._0x369dfb};for(const _0x2ea575 of Object[_0x172dec(0x130)](_0x46abd8)){if(!shouldRedactKey(_0x2ea575))continue;const _0xafd957=_0x46abd8[_0x2ea575];_0xafd957!=null&&String(_0xafd957)[_0x172dec(0x11d)]>0x0&&(_0x46abd8[_0x2ea575]=_0x172dec(0x137));}return _0x46abd8;}export function sanitizeDbLinkList(_0x128794){return _0x128794['map'](_0x72401d=>sanitizeDbLinkForOutput(_0x72401d));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a69_0x51f1(){const _0x28237b=['298360WMIqUy','42RUrDjw','/data/er?dbId=','126aGQykM','includes','keys','2088801CtdtMv','toLowerCase','jdbcurl','302038FRjfbP','/data/database','93pKpUiN','[redacted]','30uAEYyi','586696yRrIer','trim','privatekey','length','number','3823143gHPenw','secret','13386bGcxtV','credential','40252901StcjmO','isFinite','dbpassword','4kMTXbw','test','336XJfKsp','https://app.lovrabet.com/app/','passwd'];a69_0x51f1=function(){return _0x28237b;};return a69_0x51f1();}export function validateDbUrl(_0x5c71de){const _0x267ddf=a69_0x1ebb,_0x17f2a9=_0x5c71de[_0x267ddf(0x11b)]();if(!_0x17f2a9)return![];return DB_URL_PATTERN[_0x267ddf(0x127)](_0x17f2a9);}export function buildDbPageLinks(_0x191aed,_0x3d3dff){const _0x3a735f=a69_0x1ebb,_0x522bb9=_0x191aed?.[_0x3a735f(0x11b)]();if(!_0x522bb9)return undefined;const _0x5917cd=typeof _0x3d3dff===_0x3a735f(0x11e)?String(_0x3d3dff):String(_0x3d3dff??'')[_0x3a735f(0x11b)]();if(!_0x5917cd)return undefined;const _0x1af2c9=Number(_0x5917cd);if(!Number[_0x3a735f(0x124)](_0x1af2c9)||_0x1af2c9<=0x0)return undefined;const _0x40e33d=isDaily(normalizeEnv(getEnv()))?'https://daily.lovrabet.com/web-app/app/'+encodeURIComponent(_0x522bb9):_0x3a735f(0x129)+encodeURIComponent(_0x522bb9),_0x41a7aa=encodeURIComponent(String(_0x1af2c9));return{'databasePage':_0x40e33d+_0x3a735f(0x135),'erPage':_0x40e33d+_0x3a735f(0x12d)+_0x41a7aa};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70_0x494951=a70_0xaae4;(function(_0x29899f,_0x42604e){const _0x3b2966=a70_0xaae4,_0x28c3d3=_0x29899f();while(!![]){try{const _0x3899b5=parseInt(_0x3b2966(0xc1))/0x1*(parseInt(_0x3b2966(0xca))/0x2)+parseInt(_0x3b2966(0xcb))/0x3*(parseInt(_0x3b2966(0xc8))/0x4)+parseInt(_0x3b2966(0xc9))/0x5*(-parseInt(_0x3b2966(0xbe))/0x6)+-parseInt(_0x3b2966(0xc2))/0x7*(parseInt(_0x3b2966(0xc3))/0x8)+-parseInt(_0x3b2966(0xc6))/0x9+-parseInt(_0x3b2966(0xbd))/0xa+parseInt(_0x3b2966(0xbf))/0xb;if(_0x3899b5===_0x42604e)break;else _0x28c3d3['push'](_0x28c3d3['shift']());}catch(_0xa0b0c5){_0x28c3d3['push'](_0x28c3d3['shift']());}}}(a70_0x513a,0xc2933));function a70_0x513a(){const _0x49d168=['length','55JMKNcu','8282393BjLYBs','8rXERtM','read','appCode','5087016RxQEme','num','604UXSroo','676155Dmphie','36118RchEjv','14724gvIRwc','tables','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','13971080oZNfrs','66MyVDTU','40652678NXArqj'];a70_0x513a=function(){return _0x49d168;};return a70_0x513a();}function a70_0xaae4(_0x49a4b2,_0x37a080){_0x49a4b2=_0x49a4b2-0xbd;const _0x513a8f=a70_0x513a();let _0xaae4db=_0x513a8f[_0x49a4b2];return _0xaae4db;}import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a70_0x494951(0xcc),'description':a70_0x494951(0xcd),'risk':a70_0x494951(0xc4),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1fd4cf){const _0x4e5b68=a70_0x494951,_0x549227=_0x1fd4cf[_0x4e5b68(0xc7)]('id'),_0x1aa514=await getDbAllTableList(_0x1fd4cf[_0x4e5b68(0xc5)],_0x549227);return{'ok':!![],'data':{'dbLinkId':_0x549227,'total':_0x1aa514[_0x4e5b68(0xc0)],'tables':_0x1aa514},'message':_0x1aa514['length']+'\x20table(s)\x20on\x20db\x20link\x20'+_0x549227};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71_0x2b0411=a71_0x1613;(function(_0xcd0b86,_0x3d94d7){const _0x51da90=a71_0x1613,_0x1aab8d=_0xcd0b86();while(!![]){try{const _0x29c473=-parseInt(_0x51da90(0x1b3))/0x1+-parseInt(_0x51da90(0x1b7))/0x2*(parseInt(_0x51da90(0x1b0))/0x3)+-parseInt(_0x51da90(0x1bc))/0x4+parseInt(_0x51da90(0x1c1))/0x5+parseInt(_0x51da90(0x1b6))/0x6+parseInt(_0x51da90(0x1bb))/0x7+parseInt(_0x51da90(0x1bf))/0x8;if(_0x29c473===_0x3d94d7)break;else _0x1aab8d['push'](_0x1aab8d['shift']());}catch(_0x5178db){_0x1aab8d['push'](_0x1aab8d['shift']());}}}(a71_0x52f2,0xd1df9));import{testDbLinkConnect}from'../../core/api-client.js';function a71_0x1613(_0x5954c4,_0x5a6bb3){_0x5954c4=_0x5954c4-0x1ad;const _0x52f24d=a71_0x52f2();let _0x1613a0=_0x52f24d[_0x5954c4];return _0x1613a0;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x29b899){const _0x23f496=a71_0x1613;if(_0x29b899===!![]||_0x29b899===![])return{'success':_0x29b899};if(_0x29b899===null||_0x29b899===undefined)return{'type':typeof _0x29b899};if(typeof _0x29b899!==_0x23f496(0x1c2))return{'type':typeof _0x29b899};const _0x2d233d=_0x29b899,_0x4d3c24=[_0x23f496(0x1b4),_0x23f496(0x1b5),_0x23f496(0x1b9),_0x23f496(0x1ae),'msg',_0x23f496(0x1bd)],_0x336650={};for(const _0x40f7db of _0x4d3c24){if(_0x40f7db in _0x2d233d)_0x336650[_0x40f7db]=_0x2d233d[_0x40f7db];}return Object[_0x23f496(0x1b1)](_0x336650)[_0x23f496(0x1af)]===0x0&&(_0x336650['keys']=Object[_0x23f496(0x1b1)](_0x2d233d)[_0x23f496(0x1c0)](0x0,0x14)),_0x336650;}function a71_0x52f2(){const _0x3d144d=['length','33fOkYKk','keys','Connection\x20check\x20finished\x20for\x20db\x20link\x20','1671148SrHGOz','success','message','2723826asTOWo','19466kAQkDE','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','code','num','3799747XPXagE','6391120dtDZQO','data','read','25352792TaBXPO','slice','348705ITOVBC','object','test','error'];a71_0x52f2=function(){return _0x3d144d;};return a71_0x52f2();}export const dbTest={'service':'db','command':a71_0x2b0411(0x1ad),'description':a71_0x2b0411(0x1b8),'risk':a71_0x2b0411(0x1be),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x54956c){const _0x5cfd92=a71_0x2b0411,_0x2f748e=_0x54956c[_0x5cfd92(0x1ba)]('id'),_0x5a6a54=await testDbLinkConnect(_0x2f748e),_0x505d80=_0x5a6a54===!![]||typeof _0x5a6a54==='object'&&_0x5a6a54!==null&&_0x5a6a54[_0x5cfd92(0x1b4)]===!![],_0x25e862=summarizeTestConnectResult(_0x5a6a54);return{'ok':!![],'data':{'id':_0x2f748e,'connected':Boolean(_0x505d80),'result':_0x25e862},'message':_0x505d80?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x2f748e:_0x5cfd92(0x1b2)+_0x2f748e+'\x20(see\x20data.result)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x5885d0=a72_0x4d56;(function(_0x48983c,_0x4a1208){const _0x17e5b8=a72_0x4d56,_0x5904c1=_0x48983c();while(!![]){try{const _0x31e12a=parseInt(_0x17e5b8(0xb2))/0x1+parseInt(_0x17e5b8(0xb4))/0x2+-parseInt(_0x17e5b8(0xaf))/0x3*(parseInt(_0x17e5b8(0xc6))/0x4)+-parseInt(_0x17e5b8(0xc2))/0x5+parseInt(_0x17e5b8(0xc9))/0x6*(parseInt(_0x17e5b8(0xb8))/0x7)+-parseInt(_0x17e5b8(0xbc))/0x8*(parseInt(_0x17e5b8(0xb0))/0x9)+-parseInt(_0x17e5b8(0xba))/0xa;if(_0x31e12a===_0x4a1208)break;else _0x5904c1['push'](_0x5904c1['shift']());}catch(_0x3ec321){_0x5904c1['push'](_0x5904c1['shift']());}}}(a72_0x2aad,0x5cafd));function a72_0x2aad(){const _0x142a04=['num','validation','6ZlDXeW','18sKnwiR','Updated\x20db\x20link\x20','743531GiOJSL','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','1495812aRwtOu','dbparam','str','New\x20description','17276dAgkCn','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','6456790JCyqjM','username','632440khXItN','dburl','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','New\x20username','dbname','dbUrl','1044825GZfWDy','dbParam','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','POST','1328420KZgPMU','password','dbName','1374MtociV','dbdesc','dbDesc','string','New\x20connection\x20parameter\x20string','write','trim'];a72_0x2aad=function(){return _0x142a04;};return a72_0x2aad();}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a72_0x4d56(_0x45bb18,_0x3ad061){_0x45bb18=_0x45bb18-0xa8;const _0x2aadb4=a72_0x2aad();let _0x4d56bf=_0x2aadb4[_0x45bb18];return _0x4d56bf;}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';export const dbUpdate={'service':'db','command':'update','description':a72_0x5885d0(0xbe),'risk':a72_0x5885d0(0xab),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a72_0x5885d0(0xc0),'type':a72_0x5885d0(0xa9),'description':'New\x20database\x20name'},{'name':'dburl','type':a72_0x5885d0(0xa9),'description':'New\x20host:port'},{'name':a72_0x5885d0(0xbb),'type':a72_0x5885d0(0xa9),'description':a72_0x5885d0(0xbf)},{'name':a72_0x5885d0(0xc7),'type':a72_0x5885d0(0xa9),'description':a72_0x5885d0(0xb3)},{'name':a72_0x5885d0(0xb5),'type':a72_0x5885d0(0xa9),'description':a72_0x5885d0(0xaa)},{'name':a72_0x5885d0(0xca),'type':a72_0x5885d0(0xa9),'description':a72_0x5885d0(0xb7)}],async 'validate'(_0x2638b7){const _0x1c9ff3=a72_0x5885d0,_0x26faca=_0x2638b7[_0x1c9ff3(0xb6)](_0x1c9ff3(0xbd));if(_0x26faca&&!validateDbUrl(_0x26faca['trim']()))throw CliErrors[_0x1c9ff3(0xae)](_0x1c9ff3(0xb9)+_0x26faca+'\x22');},async 'dryRun'(_0x240532){const _0x27adc6=a72_0x5885d0,_0x500098=_0x240532[_0x27adc6(0xad)]('id'),_0x50027b=await getDbLinkInfo(_0x500098),_0x11fc7d={..._0x50027b},_0x30ac84=_0x240532[_0x27adc6(0xb6)](_0x27adc6(0xc0));if(_0x30ac84)_0x11fc7d['dbName']=_0x30ac84;const _0x46a048=_0x240532[_0x27adc6(0xb6)](_0x27adc6(0xbd));if(_0x46a048)_0x11fc7d[_0x27adc6(0xc1)]=_0x46a048['trim']();const _0x1c8734=_0x240532[_0x27adc6(0xb6)](_0x27adc6(0xbb));if(_0x1c8734)_0x11fc7d[_0x27adc6(0xbb)]=_0x1c8734;const _0x3cae41=_0x240532[_0x27adc6(0xb6)]('password');if(_0x3cae41)_0x11fc7d[_0x27adc6(0xc7)]=_0x3cae41;const _0x584055=_0x240532[_0x27adc6(0xb6)]('dbparam');if(_0x584055)_0x11fc7d[_0x27adc6(0xc3)]=_0x584055;const _0xaa4e4c=_0x240532[_0x27adc6(0xb6)](_0x27adc6(0xca));if(_0xaa4e4c)_0x11fc7d[_0x27adc6(0xa8)]=_0xaa4e4c;const _0x59b166=sanitizeDbLinkForOutput(_0x11fc7d);return{'method':_0x27adc6(0xc5),'url':'/smartapi/dblink/update','body':_0x59b166,'description':_0x27adc6(0xc4)};},async 'execute'(_0x5b3446){const _0x3057e2=a72_0x5885d0,_0x215de7=_0x5b3446[_0x3057e2(0xad)]('id'),_0x3781fe=await getDbLinkInfo(_0x215de7),_0x42d205={..._0x3781fe},_0x202f7c=_0x5b3446[_0x3057e2(0xb6)]('dbname');if(_0x202f7c)_0x42d205[_0x3057e2(0xc8)]=_0x202f7c;const _0x15d2e5=_0x5b3446['str'](_0x3057e2(0xbd));if(_0x15d2e5)_0x42d205[_0x3057e2(0xc1)]=_0x15d2e5[_0x3057e2(0xac)]();const _0x2aba6a=_0x5b3446[_0x3057e2(0xb6)]('username');if(_0x2aba6a)_0x42d205[_0x3057e2(0xbb)]=_0x2aba6a;const _0x3349f7=_0x5b3446[_0x3057e2(0xb6)](_0x3057e2(0xc7));if(_0x3349f7)_0x42d205[_0x3057e2(0xc7)]=_0x3349f7;const _0x281a2c=_0x5b3446['str'](_0x3057e2(0xb5));if(_0x281a2c)_0x42d205[_0x3057e2(0xc3)]=_0x281a2c;const _0x50f7d4=_0x5b3446[_0x3057e2(0xb6)]('dbdesc');if(_0x50f7d4)_0x42d205[_0x3057e2(0xa8)]=_0x50f7d4;const {id:_0x39c3af,entity:_0x54a847}=normalizeEntityWithIdResponse(await updateDbLink(_0x42d205));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x54a847),'message':_0x3057e2(0xb1)+(_0x39c3af??_0x215de7)};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
const a73_0x2546b3=a73_0x4e0e;function a73_0x4e0e(_0x2d92bd,_0x250ade){_0x2d92bd=_0x2d92bd-0x17a;const _0xe56d33=a73_0xe56d();let _0x4e0e3b=_0xe56d33[_0x2d92bd];return _0x4e0e3b;}(function(_0x38a6ad,_0x5366df){const _0x3c3f1c=a73_0x4e0e,_0x59a5e9=_0x38a6ad();while(!![]){try{const _0xc7e53f=-parseInt(_0x3c3f1c(0x17c))/0x1+parseInt(_0x3c3f1c(0x1bc))/0x2+parseInt(_0x3c3f1c(0x17e))/0x3*(-parseInt(_0x3c3f1c(0x18f))/0x4)+parseInt(_0x3c3f1c(0x1a8))/0x5*(-parseInt(_0x3c3f1c(0x1af))/0x6)+-parseInt(_0x3c3f1c(0x1c4))/0x7+-parseInt(_0x3c3f1c(0x1ba))/0x8*(parseInt(_0x3c3f1c(0x1d0))/0x9)+-parseInt(_0x3c3f1c(0x1d5))/0xa*(-parseInt(_0x3c3f1c(0x195))/0xb);if(_0xc7e53f===_0x5366df)break;else _0x59a5e9['push'](_0x59a5e9['shift']());}catch(_0x484144){_0x59a5e9['push'](_0x59a5e9['shift']());}}}(a73_0xe56d,0xb51bc));import a73_0x56e797 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';function a73_0xe56d(){const _0x112e13=['\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','source','log','1648eAUZLf','\x20\x20Auth','2014196JePtgu','\x20\x20Config\x20JSON','cookie','(default)','message','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','check','2289525gVhoxM','Global','riskLevel','apiDir','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','defaultApp','✓\x20Valid\x20JSON','doctor','\x20\x20Config\x20Files','slice','version','14607CdnWdQ','(default:\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','empty','29439030Livdev','✗\x20Not\x20logged\x20in','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20\x20\x20accessKey:\x20\x20','928314kQyUZd','(none)','1437miAfpp','raw','yellow','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','status','platform','Project','\x20\x20API\x20Endpoints','env','gray','(missing)','locale','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2064gWpTAE','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20runtimeDomain:\x20\x20\x20','repeat','✗\x20Expired','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','11ZWQCEX','value','(not\x20set)','format','missing','green','bold','currentApp','(set,\x20length=','appcode','length','✗\x20Invalid\x20JSON','read','verbose','✓\x20Valid','unknown','arch','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','3070YLaLFH','(set\x20via\x20file,\x20length=','\x20\x20Apps','\x20(default)','red','appCode','keys','13410DDvHOP','apps','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)'];a73_0xe56d=function(){return _0x112e13;};return a73_0xe56d();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x55c723){const _0x58cb56=a73_0x4e0e,_0x2db180=GIT_COMMIT!==_0x58cb56(0x1a4)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x58cb56(0x1ce)](0x0,0xa)+')':VERSION,_0x2780d3=buildConfigFromFlags({}),_0x4feee0=getCookie();console['log'](),console['log'](a73_0x56e797['bold'](CLI_BIN_NAME+'\x20doctor')),console['log'](a73_0x56e797[_0x58cb56(0x189)]('─'[_0x58cb56(0x192)](0x32))),console[_0x58cb56(0x1b9)](_0x58cb56(0x1b3)+_0x2db180),console[_0x58cb56(0x1b9)](_0x58cb56(0x18e)+process[_0x58cb56(0x1cf)]),console['log'](_0x58cb56(0x1b5)+process[_0x58cb56(0x185)]+'\x20'+process[_0x58cb56(0x1a5)]),console[_0x58cb56(0x1b9)](),console[_0x58cb56(0x1b9)](a73_0x56e797['bold'](_0x58cb56(0x1cd))),console[_0x58cb56(0x1b9)](a73_0x56e797['gray'](_0x58cb56(0x1d3)[_0x58cb56(0x192)](0x1e)));const _0xac49f5=getGlobalConfigPath(),_0x3f3d29=getProjectConfigPath();console[_0x58cb56(0x1b9)](_0x58cb56(0x1d9)+(_0xac49f5||a73_0x56e797[_0x58cb56(0x189)](_0x58cb56(0x1b6)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3f3d29||a73_0x56e797[_0x58cb56(0x189)](_0x58cb56(0x1b6)))),console[_0x58cb56(0x1b9)](),console[_0x58cb56(0x1b9)](a73_0x56e797[_0x58cb56(0x19b)](_0x58cb56(0x1bd))),console[_0x58cb56(0x1b9)](a73_0x56e797[_0x58cb56(0x189)](_0x58cb56(0x1d3)['repeat'](0x1e)));const _0xef25d5=(_0x153fb0,_0x20914d)=>{const _0x416734=_0x58cb56;if(!_0x20914d){console[_0x416734(0x1b9)]('\x20\x20'+_0x153fb0[_0x416734(0x182)](0x11)+'\x20'+a73_0x56e797[_0x416734(0x189)](_0x416734(0x1c2)));return;}const _0x16c7e7=inspectCliConfigJsonFile(_0x20914d);if(_0x16c7e7['status']==='ok')console[_0x416734(0x1b9)]('\x20\x20'+_0x153fb0['padEnd'](0x11)+'\x20'+a73_0x56e797[_0x416734(0x19a)](_0x416734(0x1cb)));else{if(_0x16c7e7[_0x416734(0x184)]===_0x416734(0x1d4))console[_0x416734(0x1b9)]('\x20\x20'+_0x153fb0[_0x416734(0x182)](0x11)+'\x20'+a73_0x56e797[_0x416734(0x180)](_0x416734(0x17a)));else _0x16c7e7[_0x416734(0x184)]===_0x416734(0x199)?console[_0x416734(0x1b9)]('\x20\x20'+_0x153fb0['padEnd'](0x11)+'\x20'+a73_0x56e797[_0x416734(0x189)](_0x416734(0x18a))):(console['log']('\x20\x20'+_0x153fb0[_0x416734(0x182)](0x11)+'\x20'+a73_0x56e797['red'](_0x416734(0x1a0))),console[_0x416734(0x1b9)]('\x20\x20'+''[_0x416734(0x182)](0x11)+'\x20'+a73_0x56e797[_0x416734(0x1ac)](_0x16c7e7[_0x416734(0x1c0)])));}};_0xef25d5(_0x58cb56(0x1c5),_0xac49f5),_0xef25d5(_0x58cb56(0x186),_0x3f3d29),console['log'](),console['log'](a73_0x56e797[_0x58cb56(0x19b)](_0x58cb56(0x18d))),console['log'](a73_0x56e797[_0x58cb56(0x189)](_0x58cb56(0x1d3)['repeat'](0x1e))),console[_0x58cb56(0x1b9)](_0x58cb56(0x18c)+(_0x2780d3[_0x58cb56(0x1ad)]||a73_0x56e797['red'](_0x58cb56(0x197)))),console['log'](_0x58cb56(0x1a6)+_0x2780d3['env']),console[_0x58cb56(0x1b9)](_0x58cb56(0x1c8)+_0x2780d3[_0x58cb56(0x18b)]),console['log'](_0x58cb56(0x1b4)+_0x2780d3[_0x58cb56(0x1c7)]),console[_0x58cb56(0x1b9)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x2780d3[_0x58cb56(0x1ca)]||a73_0x56e797[_0x58cb56(0x189)](_0x58cb56(0x17d)))),console[_0x58cb56(0x1b9)](_0x58cb56(0x1c9)+(_0x2780d3[_0x58cb56(0x19c)]||a73_0x56e797[_0x58cb56(0x189)](_0x58cb56(0x17d)))),console['log']('\x20\x20explicitAppName:\x20'+(_0x2780d3['explicitAppName']||a73_0x56e797['gray']('(none)'))),console[_0x58cb56(0x1b9)](_0x58cb56(0x181)+(_0x2780d3[_0x58cb56(0x198)]||a73_0x56e797[_0x58cb56(0x189)](_0x58cb56(0x1d1)+DEFAULT_CONFIG_VALUES[_0x58cb56(0x198)]+')'))),console[_0x58cb56(0x1b9)](_0x58cb56(0x194)+(_0x2780d3['pageSize']??a73_0x56e797[_0x58cb56(0x189)](_0x58cb56(0x1bf)))),console['log'](_0x58cb56(0x1b7)+_0x2780d3[_0x58cb56(0x1c6)]),console['log'](_0x58cb56(0x1d8)+_0x2780d3[_0x58cb56(0x1a2)]),console[_0x58cb56(0x1b9)](_0x58cb56(0x1b2)+(_0x2780d3[_0x58cb56(0x1be)]?a73_0x56e797['green'](_0x58cb56(0x19d)+_0x2780d3[_0x58cb56(0x1be)][_0x58cb56(0x19f)]+')'):_0x4feee0?a73_0x56e797[_0x58cb56(0x19a)](_0x58cb56(0x1a9)+_0x4feee0[_0x58cb56(0x19f)]+')'):a73_0x56e797[_0x58cb56(0x189)](_0x58cb56(0x17d))));const _0x53fab7=Object[_0x58cb56(0x1ae)](_0x2780d3[_0x58cb56(0x1b0)]);if(_0x53fab7[_0x58cb56(0x19f)]>0x0){console[_0x58cb56(0x1b9)](),console[_0x58cb56(0x1b9)](a73_0x56e797[_0x58cb56(0x19b)](_0x58cb56(0x1aa))),console[_0x58cb56(0x1b9)](a73_0x56e797['gray']('\x20\x20─'['repeat'](0x1e)));for(const _0xc77cf4 of _0x53fab7){const _0x6cf949=_0x2780d3['apps'][_0xc77cf4],_0x3a5dfd=_0xc77cf4===_0x2780d3[_0x58cb56(0x1ca)],_0xe84626=_0xc77cf4===_0x2780d3[_0x58cb56(0x19c)],_0x1ba5ee=_0xe84626?a73_0x56e797[_0x58cb56(0x19a)]('\x20←\x20current'):'',_0x46bbac=_0x3a5dfd?_0x58cb56(0x1ab):'';console['log']('\x20\x20'+_0xc77cf4+_0x46bbac+_0x1ba5ee),console[_0x58cb56(0x1b9)](_0x58cb56(0x183)+_0x6cf949[_0x58cb56(0x19e)]);const _0x4f5b34=buildAppDoctorFields(_0x6cf949,{'env':_0x2780d3['env'],'apiDir':_0x2780d3[_0x58cb56(0x17f)]['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x2780d3[_0x58cb56(0x1be)]||_0x4feee0||undefined,'accessKey':_0x2780d3['accessKey']});console['log'](_0x58cb56(0x1d2)+_0x4f5b34[_0x58cb56(0x188)][_0x58cb56(0x196)]+'\x20\x20'+a73_0x56e797[_0x58cb56(0x189)]('('+_0x4f5b34['env']['source']+')')),console[_0x58cb56(0x1b9)](_0x58cb56(0x1da)+_0x4f5b34[_0x58cb56(0x1c7)]['value']+'\x20\x20'+a73_0x56e797[_0x58cb56(0x189)]('('+_0x4f5b34[_0x58cb56(0x1c7)][_0x58cb56(0x1b8)]+')'));const _0xc90cef=_0x4f5b34[_0x58cb56(0x1be)][_0x58cb56(0x196)]?a73_0x56e797[_0x58cb56(0x19a)](_0x58cb56(0x19d)+_0x4f5b34['cookie']['value'][_0x58cb56(0x19f)]+')'):a73_0x56e797[_0x58cb56(0x189)](_0x58cb56(0x17d));console[_0x58cb56(0x1b9)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0xc90cef+'\x20\x20'+a73_0x56e797[_0x58cb56(0x189)]('('+_0x4f5b34[_0x58cb56(0x1be)]['source']+')'));const _0xaa81=_0x4f5b34[_0x58cb56(0x1a7)][_0x58cb56(0x196)]?a73_0x56e797[_0x58cb56(0x19a)](_0x58cb56(0x19d)+_0x4f5b34[_0x58cb56(0x1a7)][_0x58cb56(0x196)][_0x58cb56(0x19f)]+')'):a73_0x56e797[_0x58cb56(0x189)]('(none)');console['log'](_0x58cb56(0x17b)+_0xaa81+'\x20\x20'+a73_0x56e797[_0x58cb56(0x189)]('('+_0x4f5b34[_0x58cb56(0x1a7)][_0x58cb56(0x1b8)]+')'));}}console['log'](),console[_0x58cb56(0x1b9)](a73_0x56e797[_0x58cb56(0x19b)](_0x58cb56(0x187))),console[_0x58cb56(0x1b9)](a73_0x56e797[_0x58cb56(0x189)]('\x20\x20─'[_0x58cb56(0x192)](0x1e))),console['log'](_0x58cb56(0x1d7)+getApiDomain()),console[_0x58cb56(0x1b9)](_0x58cb56(0x1b1)+getUserDomain()),console['log'](_0x58cb56(0x191)+getRuntimeDomain()),console[_0x58cb56(0x1b9)](),console['log'](a73_0x56e797[_0x58cb56(0x19b)](_0x58cb56(0x1bb))),console[_0x58cb56(0x1b9)](a73_0x56e797[_0x58cb56(0x189)](_0x58cb56(0x1d3)[_0x58cb56(0x192)](0x1e)));if(_0x4feee0){const _0xe6433c=await getIsSessionValid();console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xe6433c?a73_0x56e797['green'](_0x58cb56(0x1a3)):a73_0x56e797['red'](_0x58cb56(0x193))));}else console[_0x58cb56(0x1b9)](_0x58cb56(0x1c1)+a73_0x56e797[_0x58cb56(0x1ac)](_0x58cb56(0x1d6)));return console[_0x58cb56(0x1b9)](),{'ok':!![]};}export const doctorDefinition={'service':a73_0x2546b3(0x1cc),'command':a73_0x2546b3(0x1c3),'description':a73_0x2546b3(0x190),'risk':a73_0x2546b3(0x1a1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0xf7c048=a74_0x31fc;(function(_0x239302,_0x3d7213){const _0x12fa38=a74_0x31fc,_0x66f03e=_0x239302();while(!![]){try{const _0x1fceac=parseInt(_0x12fa38(0x14f))/0x1+-parseInt(_0x12fa38(0x15a))/0x2*(parseInt(_0x12fa38(0x146))/0x3)+parseInt(_0x12fa38(0x175))/0x4*(-parseInt(_0x12fa38(0x15b))/0x5)+-parseInt(_0x12fa38(0x168))/0x6*(parseInt(_0x12fa38(0x147))/0x7)+parseInt(_0x12fa38(0x161))/0x8*(parseInt(_0x12fa38(0x151))/0x9)+parseInt(_0x12fa38(0x16e))/0xa+parseInt(_0x12fa38(0x174))/0xb;if(_0x1fceac===_0x3d7213)break;else _0x66f03e['push'](_0x66f03e['shift']());}catch(_0x5e632f){_0x66f03e['push'](_0x66f03e['shift']());}}}(a74_0x2ccf,0x55d77));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';function a74_0x2ccf(){const _0x429f50=['yes','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','Use\x20`','\x20\x20Env:\x20','5199632EzikoX','bool','log','../../commands/project/init.js','defaultApp','flagMissing','检测到旧配置文件,正在自动升级...\x0a','2960598TRXhlP','cwd','valid','map','init','string','2616030Yqqjfj','write','run','str','\x20config','appcode','7278997XGfSTF','1051016OxYPiq','production','nonInteractive','appCode','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','custom','72LwwsHt','7nbUUBC','Usage:\x20','boolean','env','Auto-confirm\x20prompts','Write\x20to\x20global\x20config\x20instead\x20of\x20project','\x0a✓\x20Successfully\x20initialized\x20','\x20\x20Config:\x20','232240lfKCBt','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','9XdwysU','global','project','\x20\x20Apps:\x20','some','Target\x20environment','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','toLocaleString','validation','36248QuLaQq','10XYlduq','message'];a74_0x2ccf=function(){return _0x429f50;};return a74_0x2ccf();}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_0x31fc(_0xf37b0a,_0x205b23){_0xf37b0a=_0xf37b0a-0x141;const _0x2ccf36=a74_0x2ccf();let _0x31fc75=_0x2ccf36[_0xf37b0a];return _0x31fc75;}import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x1b4cc2){return{'appCode':_0x1b4cc2,'appName':_0x1b4cc2};}function writeInitConfig(_0x1a6fc5,_0x56c761,_0x46cf71){const _0x5598c1=a74_0x31fc,_0x5828f1=resolveWriteConfigPath(_0x1a6fc5),_0x230af4=buildCanonicalProjectConfig({},{'appCodes':_0x56c761[_0x5598c1(0x16b)](_0x376576=>_0x376576[_0x5598c1(0x143)]),'env':_0x46cf71,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x5598c1(0x158)]()}});writeConfigFile(_0x5828f1,_0x230af4);const _0x55fa9f=_0x1a6fc5===_0x5598c1(0x152)?_0x5598c1(0x152):_0x5598c1(0x153);console['log'](_0x5598c1(0x14d)+_0x55fa9f+_0x5598c1(0x172)),console[_0x5598c1(0x163)](_0x5598c1(0x154)+_0x56c761[_0x5598c1(0x16b)](_0x3237fb=>_0x3237fb['appCode'])['join'](',\x20')),console[_0x5598c1(0x163)]('\x20\x20Default:\x20'+_0x230af4[_0x5598c1(0x165)]),console[_0x5598c1(0x163)](_0x5598c1(0x160)+_0x230af4[_0x5598c1(0x14a)]),console['log'](_0x5598c1(0x14e)+_0x5828f1);}async function runSmartInit(_0x58359b){const _0x3a6828=a74_0x31fc,_0x310848=process[_0x3a6828(0x169)](),_0x2dec50=_0x58359b[_0x3a6828(0x162)]('global')?_0x3a6828(0x152):_0x3a6828(0x153),_0x519f00=_0x58359b[_0x3a6828(0x171)]('env')||_0x3a6828(0x141),_0x57df07=_0x58359b[_0x3a6828(0x171)](_0x3a6828(0x173))||undefined,_0x402f11=_0x58359b[_0x3a6828(0x162)](_0x3a6828(0x153));if(_0x402f11){const {initConfig:_0x494bd5}=await import(_0x3a6828(0x164));return _0x494bd5({'appcode':_0x57df07,'env':_0x519f00,'autoYes':_0x58359b[_0x3a6828(0x162)](_0x3a6828(0x15d))});}if(_0x2dec50===_0x3a6828(0x153)){const _0x4197d8=existsSync(resolve(_0x310848,NEW_CONFIG_NAME)),_0x55785f=LEGACY_CONFIG_NAMES[_0x3a6828(0x155)](_0x21d53b=>existsSync(resolve(_0x310848,_0x21d53b)));if(_0x55785f&&!_0x4197d8)return console[_0x3a6828(0x163)](_0x3a6828(0x167)),upgradeApp(_0x58359b[_0x3a6828(0x142)],{'yes':_0x58359b[_0x3a6828(0x162)](_0x3a6828(0x15d))});if(_0x4197d8)throw CliErrors[_0x3a6828(0x159)](_0x3a6828(0x15e),_0x3a6828(0x15f)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x57df07){const _0x4d5985=validateAppcode(_0x57df07);if(!_0x4d5985[_0x3a6828(0x16a)])throw CliErrors[_0x3a6828(0x159)](_0x4d5985[_0x3a6828(0x15c)]);writeInitConfig(_0x2dec50,[syntheticApp(_0x57df07)],_0x519f00);return;}if(_0x58359b[_0x3a6828(0x142)])throw CliErrors[_0x3a6828(0x166)](_0x3a6828(0x173),_0x3a6828(0x148)+CLI_BIN_NAME+_0x3a6828(0x144));const _0x4a0039=getCookie(),_0x47844e=await selectMultipleApps(_0x4a0039),_0x43f610=_0x47844e===_0x3a6828(0x145)?[syntheticApp(await promptCustomAppcode())]:_0x47844e;writeInitConfig(_0x2dec50,_0x43f610,_0x519f00);}const initFlags=[{'name':a74_0xf7c048(0x152),'type':a74_0xf7c048(0x149),'description':a74_0xf7c048(0x14c),'default':![]},{'name':a74_0xf7c048(0x14a),'type':'string','description':a74_0xf7c048(0x156),'default':a74_0xf7c048(0x141),'enum':[...RABETBASE_ENV_VALUES]},{'name':a74_0xf7c048(0x173),'type':a74_0xf7c048(0x16d),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':a74_0xf7c048(0x153),'type':'boolean','description':a74_0xf7c048(0x157),'default':![]},{'name':a74_0xf7c048(0x15d),'type':a74_0xf7c048(0x149),'description':a74_0xf7c048(0x14b),'default':![]}];export const initDefinitions=[{'service':a74_0xf7c048(0x16c),'command':a74_0xf7c048(0x170),'description':a74_0xf7c048(0x150),'risk':a74_0xf7c048(0x16f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0xa37319){return await runSmartInit(_0xa37319),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x32f82c,_0x41edb0){const _0x48ac0e=a75_0x1048,_0x2dd190=_0x32f82c();while(!![]){try{const _0x4551bb=parseInt(_0x48ac0e(0xb4))/0x1+parseInt(_0x48ac0e(0xbd))/0x2+parseInt(_0x48ac0e(0xb8))/0x3+parseInt(_0x48ac0e(0xb5))/0x4*(parseInt(_0x48ac0e(0xb6))/0x5)+-parseInt(_0x48ac0e(0xb7))/0x6*(parseInt(_0x48ac0e(0xbc))/0x7)+parseInt(_0x48ac0e(0xb9))/0x8*(-parseInt(_0x48ac0e(0xbb))/0x9)+-parseInt(_0x48ac0e(0xba))/0xa;if(_0x4551bb===_0x41edb0)break;else _0x2dd190['push'](_0x2dd190['shift']());}catch(_0x5c8cfd){_0x2dd190['push'](_0x2dd190['shift']());}}}(a75_0x1cf0,0xc645f));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a75_0x1048(_0x1c81e7,_0x36fd3d){_0x1c81e7=_0x1c81e7-0xb4;const _0x1cf0ce=a75_0x1cf0();let _0x104854=_0x1cf0ce[_0x1c81e7];return _0x104854;}function a75_0x1cf0(){const _0x207f12=['800829YkGluS','3158360oligxE','10CJtvfg','852738GTYfYz','2031168nbktBt','1609464RurOJY','23771100qDFqvR','45egPQwX','21ESGkrG','3128912CRQVFO'];a75_0x1cf0=function(){return _0x207f12;};return a75_0x1cf0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x34aa4a=a76_0x37b2;(function(_0x44fb49,_0x341b75){const _0x3d762d=a76_0x37b2,_0x593af2=_0x44fb49();while(!![]){try{const _0x1f5da5=-parseInt(_0x3d762d(0x1c9))/0x1+-parseInt(_0x3d762d(0x1df))/0x2+parseInt(_0x3d762d(0x1cf))/0x3*(-parseInt(_0x3d762d(0x1de))/0x4)+parseInt(_0x3d762d(0x1be))/0x5*(parseInt(_0x3d762d(0x1b9))/0x6)+parseInt(_0x3d762d(0x1bc))/0x7*(-parseInt(_0x3d762d(0x1d0))/0x8)+parseInt(_0x3d762d(0x1dd))/0x9*(parseInt(_0x3d762d(0x1d8))/0xa)+-parseInt(_0x3d762d(0x1c7))/0xb*(-parseInt(_0x3d762d(0x1d4))/0xc);if(_0x1f5da5===_0x341b75)break;else _0x593af2['push'](_0x593af2['shift']());}catch(_0x2c4817){_0x593af2['push'](_0x593af2['shift']());}}}(a76_0xe345,0x7a4b6));function a76_0xe345(){const _0x255b7b=['filter','Issue\x20description\x20cannot\x20be\x20empty.','string','issue','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','15RQweQl','492616xOMril','message','trim','write','20772060bWncGg','descriptionFile:\x20','One-line\x20issue\x20summary','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','10JouueG','descriptionFilePath','Failed\x20to\x20report\x20platform\x20issue:\x20','flagMissing','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','2137662yulfIu','388688MBAnDv','1371320BNQAGX','apiError','cwd','utf8','Platform\x20issue\x20reported','title','File\x20not\x20found:\x20','Issue\x20description\x20file\x20is\x20empty:\x20','2241132Ipepvu','inline','file','21gYCNRm','length','5PWCIRC','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','report','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','descriptionSource','descriptionSource:\x20','validation','str','description-file','11yVQvVq','description','484876AemnsP'];a76_0xe345=function(){return _0x255b7b;};return a76_0xe345();}function a76_0x37b2(_0x1acb87,_0x3367b3){_0x1acb87=_0x1acb87-0x1b7;const _0xe3454e=a76_0xe345();let _0x37b2cf=_0xe3454e[_0x1acb87];return _0x37b2cf;}import{existsSync}from'node:fs';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';const DESCRIPTION_FILE_FLAG=a76_0x34aa4a(0x1c6);export const issueReport={'service':a76_0x34aa4a(0x1cd),'command':a76_0x34aa4a(0x1c0),'description':a76_0x34aa4a(0x1dc),'risk':a76_0x34aa4a(0x1d3),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':'title','type':'string','required':!![],'description':a76_0x34aa4a(0x1d6)},{'name':a76_0x34aa4a(0x1c8),'type':a76_0x34aa4a(0x1cc),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a76_0x34aa4a(0x1cc),'description':a76_0x34aa4a(0x1ce)}],async 'validate'(_0x59344c){const _0x163cf3=a76_0x34aa4a,_0x4148c0=_0x59344c[_0x163cf3(0x1c5)]('title')[_0x163cf3(0x1d2)](),_0x44fbe0=_0x59344c['str'](_0x163cf3(0x1c8))['trim'](),_0x42e789=_0x59344c[_0x163cf3(0x1c5)](DESCRIPTION_FILE_FLAG)[_0x163cf3(0x1d2)]();if(!_0x4148c0)throw CliErrors[_0x163cf3(0x1db)]('title',_0x163cf3(0x1c1));const _0x484854=_0x44fbe0[_0x163cf3(0x1bd)]>0x0,_0x30b971=_0x42e789[_0x163cf3(0x1bd)]>0x0;if(_0x484854===_0x30b971)throw CliErrors[_0x163cf3(0x1c4)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x30b971){const _0xb322bb=resolve(process[_0x163cf3(0x1e1)](),_0x42e789);if(!existsSync(_0xb322bb))throw CliErrors[_0x163cf3(0x1c4)](_0x163cf3(0x1b7)+_0xb322bb);}},async 'dryRun'(_0x50cca6){const _0x536b01=a76_0x34aa4a,_0x1527d4=await prepareIssueReport(_0x50cca6);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':_0x1527d4['title'],'issue.description':_0x1527d4[_0x536b01(0x1c8)]}},'description':[_0x536b01(0x1bf),_0x536b01(0x1c3)+_0x1527d4[_0x536b01(0x1c2)],_0x1527d4[_0x536b01(0x1d9)]?_0x536b01(0x1d5)+_0x1527d4[_0x536b01(0x1d9)]:null][_0x536b01(0x1ca)](Boolean)['join']('\x0a')};},async 'execute'(_0x20faca){const _0x4ed771=a76_0x34aa4a,_0x7d0f1e=await prepareIssueReport(_0x20faca);try{await sendPlatformIssueCollectLog({'title':_0x7d0f1e[_0x4ed771(0x1e4)],'description':_0x7d0f1e[_0x4ed771(0x1c8)]});}catch(_0x395678){throw CliErrors[_0x4ed771(0x1e0)](_0x4ed771(0x1da)+(_0x395678 instanceof Error?_0x395678[_0x4ed771(0x1d1)]:String(_0x395678)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':_0x4ed771(0x1e3),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title','issue.description'],'issue':{'title':_0x7d0f1e[_0x4ed771(0x1e4)],'descriptionLength':_0x7d0f1e[_0x4ed771(0x1c8)][_0x4ed771(0x1bd)],'descriptionSource':_0x7d0f1e[_0x4ed771(0x1c2)],..._0x7d0f1e[_0x4ed771(0x1d9)]?{'descriptionFile':_0x7d0f1e[_0x4ed771(0x1d9)]}:{}}}};}};async function prepareIssueReport(_0x3910e1){const _0x2e7ba1=a76_0x34aa4a,_0x51c4c1=_0x3910e1[_0x2e7ba1(0x1c5)](_0x2e7ba1(0x1e4))[_0x2e7ba1(0x1d2)](),_0x2bd58f=_0x3910e1[_0x2e7ba1(0x1c5)](_0x2e7ba1(0x1c8)),_0x335ef6=_0x3910e1[_0x2e7ba1(0x1c5)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x335ef6){const _0x1d4f15=_0x2bd58f;if(!_0x1d4f15[_0x2e7ba1(0x1d2)]())throw CliErrors[_0x2e7ba1(0x1c4)](_0x2e7ba1(0x1cb),_0x2e7ba1(0x1d7));return{'title':_0x51c4c1,'description':_0x1d4f15,'descriptionSource':_0x2e7ba1(0x1ba)};}const _0x117836=resolve(process['cwd'](),_0x335ef6),_0x27e0d1=await readFile(_0x117836,_0x2e7ba1(0x1e2));if(!_0x27e0d1[_0x2e7ba1(0x1d2)]())throw CliErrors['validation'](_0x2e7ba1(0x1b8)+_0x117836,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');return{'title':_0x51c4c1,'description':_0x27e0d1,'descriptionSource':_0x2e7ba1(0x1bb),'descriptionFilePath':_0x117836};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77_0x4c9b45=a77_0xfe3d;(function(_0x33017f,_0x4990ed){const _0x30d3e4=a77_0xfe3d,_0x4ab53c=_0x33017f();while(!![]){try{const _0x38e7f8=parseInt(_0x30d3e4(0xb4))/0x1+-parseInt(_0x30d3e4(0xca))/0x2+-parseInt(_0x30d3e4(0xbe))/0x3+parseInt(_0x30d3e4(0xb6))/0x4+parseInt(_0x30d3e4(0xc5))/0x5*(-parseInt(_0x30d3e4(0xbd))/0x6)+-parseInt(_0x30d3e4(0xaf))/0x7+parseInt(_0x30d3e4(0xb3))/0x8;if(_0x38e7f8===_0x4990ed)break;else _0x4ab53c['push'](_0x4ab53c['shift']());}catch(_0x313d5d){_0x4ab53c['push'](_0x4ab53c['shift']());}}}(a77_0x56bc,0x94f3d));function a77_0xfe3d(_0x32a8d6,_0x5cf160){_0x32a8d6=_0x32a8d6-0xad;const _0x56bc8a=a77_0x56bc();let _0xfe3dec=_0x56bc8a[_0x32a8d6];return _0xfe3dec;}function a77_0x56bc(){const _0x1ed2e9=['173005TAlCxT','log','View\x20command\x20history\x20logs','timestamp','readLogs','180436uwwySm','details','logs','\x20\x20\x20Details:\x20','Clear\x20command\x20history\x20logs','1430289rEjMdp','*\x20No\x20logs\x20found','clear','duration','1153568RIRgkr','1141609MIIoIE','success','3013956Napclj','forEach','level','*\x20Logs\x20cleared','clearLogs','error','stringify','180wOwITt','289830hqBUVD','\x20\x20\x20Time:\x20','\x20\x20\x20Duration:\x20','length','toLocaleString','read','command'];a77_0x56bc=function(){return _0x1ed2e9;};return a77_0x56bc();}import{logger}from'../../utils/logger.js';function printLogs(_0x24f3d6){const _0x44d637=a77_0xfe3d;if(_0x24f3d6['length']===0x0){console[_0x44d637(0xc6)](_0x44d637(0xb0));return;}console['log']('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x24f3d6[_0x44d637(0xb7)]((_0x3c9c08,_0x52a67a)=>{const _0x2857ef=_0x44d637,_0x3fe3ab=new Date(_0x3c9c08[_0x2857ef(0xc8)])[_0x2857ef(0xc2)]('en-US'),_0xa4fedb=_0x3c9c08[_0x2857ef(0xb8)]===_0x2857ef(0xb5)?'√':_0x3c9c08[_0x2857ef(0xb8)]===_0x2857ef(0xbb)?'×':_0x3c9c08[_0x2857ef(0xb8)]==='warn'?'!':'i';console['log'](_0x52a67a+0x1+'.\x20'+_0xa4fedb+'\x20['+_0x3c9c08[_0x2857ef(0xc4)]+']\x20'+_0x3c9c08['message']),console['log'](_0x2857ef(0xbf)+_0x3fe3ab),_0x3c9c08[_0x2857ef(0xb2)]&&console[_0x2857ef(0xc6)](_0x2857ef(0xc0)+_0x3c9c08[_0x2857ef(0xb2)]+'ms'),_0x3c9c08[_0x2857ef(0xcb)]&&Object['keys'](_0x3c9c08[_0x2857ef(0xcb)])[_0x2857ef(0xc1)]>0x0&&console[_0x2857ef(0xc6)](_0x2857ef(0xad)+JSON[_0x2857ef(0xbc)](_0x3c9c08[_0x2857ef(0xcb)],null,0x2)),console[_0x2857ef(0xc6)]('');});}export const logsDefinitions=[{'service':'logs','command':'show','description':a77_0x4c9b45(0xc7),'risk':a77_0x4c9b45(0xc3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xa1dd05){const _0x36ec6e=a77_0x4c9b45;return printLogs(logger[_0x36ec6e(0xc9)]()),{'ok':!![]};}},{'service':a77_0x4c9b45(0xcc),'command':a77_0x4c9b45(0xb1),'description':a77_0x4c9b45(0xae),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x496077){const _0x1d6871=a77_0x4c9b45;return logger[_0x1d6871(0xba)](),console[_0x1d6871(0xc6)](_0x1d6871(0xb9)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x83b436,_0xfbf974){const _0x82bf33=a78_0xfdf9,_0x13faaf=_0x83b436();while(!![]){try{const _0x330fa6=-parseInt(_0x82bf33(0x166))/0x1*(-parseInt(_0x82bf33(0x164))/0x2)+parseInt(_0x82bf33(0x168))/0x3+parseInt(_0x82bf33(0x169))/0x4+parseInt(_0x82bf33(0x165))/0x5+parseInt(_0x82bf33(0x167))/0x6+parseInt(_0x82bf33(0x16b))/0x7+parseInt(_0x82bf33(0x16a))/0x8*(-parseInt(_0x82bf33(0x163))/0x9);if(_0x330fa6===_0xfbf974)break;else _0x13faaf['push'](_0x13faaf['shift']());}catch(_0x2289e6){_0x13faaf['push'](_0x13faaf['shift']());}}}(a78_0x5da8,0x99679));import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a78_0x5da8(){const _0x5c6c67=['351PcpfbF','1464926JgZUZS','4532885VvGkab','1XeBSnP','735900lFXoBn','1637457jOwViJ','2693752oznRvJ','684248vASNwU','6881749rOrTVN'];a78_0x5da8=function(){return _0x5c6c67;};return a78_0x5da8();}function a78_0xfdf9(_0x4e966a,_0x2ddefd){_0x4e966a=_0x4e966a-0x163;const _0x5da8d5=a78_0x5da8();let _0xfdf967=_0x5da8d5[_0x4e966a];return _0xfdf967;}export const menuDefinitions=[menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5628ab,_0x201ad2){const _0x410652=a79_0x27ee,_0x4877eb=_0x5628ab();while(!![]){try{const _0x180ce0=-parseInt(_0x410652(0x81))/0x1+-parseInt(_0x410652(0x8d))/0x2+parseInt(_0x410652(0x8e))/0x3*(parseInt(_0x410652(0x8b))/0x4)+parseInt(_0x410652(0x94))/0x5+-parseInt(_0x410652(0x8c))/0x6+parseInt(_0x410652(0x8f))/0x7+parseInt(_0x410652(0x92))/0x8;if(_0x180ce0===_0x201ad2)break;else _0x4877eb['push'](_0x4877eb['shift']());}catch(_0x590987){_0x4877eb['push'](_0x4877eb['shift']());}}}(a79_0x1ac9,0xc8f7b));function strWidth(_0x4dcbef){const _0x171194=a79_0x27ee;let _0x1df45e=0x0;for(const _0x337f15 of _0x4dcbef){_0x1df45e+=/[\u4e00-\u9fa5]/[_0x171194(0x82)](_0x337f15)?0x2:0x1;}return _0x1df45e;}function a79_0x1ac9(){const _0x200bcb=['test','push','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','length','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','repeat','\x20\x20\x20\x20•\x20','\x20\x20Affected\x20menus:\x20','join','364556wPBZpg','7873050vIXdmd','2972090tlSJCK','9sapVvI','6418363NgRoBA','label','path','9929440eZiJGv','(unchanged)','6858535GYtUzX','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20\x20\x20CSS:\x20','Platform','showOnline','local','Local','\x20\x20No\x20pages\x20to\x20sync.','online','181830oLBQEF'];a79_0x1ac9=function(){return _0x200bcb;};return a79_0x1ac9();}function padRight(_0x51abc4,_0x15cb5d){const _0x1e1bdf=a79_0x27ee,_0x13f93f=strWidth(_0x51abc4);return _0x51abc4+'\x20'[_0x1e1bdf(0x87)](Math['max'](0x0,_0x15cb5d-_0x13f93f));}function a79_0x27ee(_0x3b71ae,_0x45ab27){_0x3b71ae=_0x3b71ae-0x80;const _0x1ac906=a79_0x1ac9();let _0x27eecd=_0x1ac906[_0x3b71ae];return _0x27eecd;}export function renderCompareTable(_0x373594,_0x30ea06={}){const _0x39aa90=a79_0x27ee;if(_0x373594[_0x39aa90(0x85)]===0x0)return'';const _0x4865bc=_0x30ea06[_0x39aa90(0x98)]??!![],_0x203a52=Math['max'](0x1e,..._0x373594['map'](_0x308bf3=>strWidth(_0x308bf3[_0x39aa90(0x90)]))),_0x3f3dc6=0x4,_0x4efe26=[],_0x8a1826='\x20\x20'+padRight('Menu\x20Name',_0x203a52),_0x95fd52=padRight(_0x39aa90(0x9a),_0x3f3dc6),_0x350d3f=_0x4865bc?'\x20\x20'+padRight(_0x39aa90(0x97),_0x3f3dc6):'';_0x4efe26['push'](_0x8a1826+'\x20\x20'+_0x95fd52+(_0x4865bc?_0x350d3f:'')),_0x4efe26[_0x39aa90(0x83)]('\x20\x20'+'─'[_0x39aa90(0x87)](_0x203a52)+'\x20\x20'+'─'[_0x39aa90(0x87)](_0x3f3dc6)+(_0x4865bc?'\x20\x20'+'─'[_0x39aa90(0x87)](_0x3f3dc6):''));for(const _0x196ce6 of _0x373594){const _0x20ef8c=padRight(_0x196ce6[_0x39aa90(0x90)],_0x203a52),_0x2646cd=_0x196ce6[_0x39aa90(0x99)]?'✓':'✗',_0x86bef4=padRight(_0x2646cd,_0x3f3dc6);let _0x259794='\x20\x20'+_0x20ef8c+'\x20\x20'+_0x86bef4;if(_0x4865bc){const _0x2927bb=_0x196ce6[_0x39aa90(0x80)]?'✓':'✗';_0x259794+='\x20\x20'+padRight(_0x2927bb,_0x3f3dc6);}_0x4efe26[_0x39aa90(0x83)](_0x259794);}return _0x4efe26['join']('\x0a');}export function renderSyncSummary(_0x37e773,_0x1381ff){const _0xac1c02=a79_0x27ee;if(_0x37e773[_0xac1c02(0x85)]===0x0)return _0x1381ff?_0xac1c02(0x84):_0xac1c02(0x9b);const _0x1c717b=['\x20\x20'+_0x37e773[_0xac1c02(0x85)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x570b63 of _0x37e773){_0x1c717b[_0xac1c02(0x83)](_0xac1c02(0x88)+_0x570b63['label']+'\x20('+_0x570b63[_0xac1c02(0x91)]+')');}return _0x1c717b['join']('\x0a');}export function renderUpdateSummary(_0x1c3ba5,_0x22ad8e){const _0x401034=a79_0x27ee;if(_0x1c3ba5[_0x401034(0x85)]===0x0)return _0x401034(0x86);const _0x4d8a08=['\x20\x20'+_0x1c3ba5[_0x401034(0x85)]+_0x401034(0x95),'\x20\x20\x20\x20JS:\x20\x20'+(_0x22ad8e[0x0]??_0x401034(0x93)),_0x401034(0x96)+(_0x22ad8e[0x1]??_0x401034(0x93)),'',_0x401034(0x89)+_0x1c3ba5[_0x401034(0x8a)](',\x20')];return _0x4d8a08['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x20b947,_0x461055){var _0x323009=a80_0x54f3,_0x5cc22c=_0x20b947();while(!![]){try{var _0x4644a4=parseInt(_0x323009(0x12d))/0x1*(parseInt(_0x323009(0x126))/0x2)+parseInt(_0x323009(0x124))/0x3*(-parseInt(_0x323009(0x127))/0x4)+parseInt(_0x323009(0x125))/0x5*(parseInt(_0x323009(0x128))/0x6)+-parseInt(_0x323009(0x12e))/0x7+-parseInt(_0x323009(0x12b))/0x8*(-parseInt(_0x323009(0x129))/0x9)+parseInt(_0x323009(0x12a))/0xa+-parseInt(_0x323009(0x12c))/0xb;if(_0x4644a4===_0x461055)break;else _0x5cc22c['push'](_0x5cc22c['shift']());}catch(_0x5777fc){_0x5cc22c['push'](_0x5cc22c['shift']());}}}(a80_0x13b2,0xde00a));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';function a80_0x13b2(){var _0x1b0a3f=['1179196IkuesE','748482uKDKzT','4194bmOHlA','11779120AVswiq','26768UDUYXT','31614924LeZknr','967188HmHOzS','5241978WDnnGp','3QXFtsN','45poRzwg','2MplFqD'];a80_0x13b2=function(){return _0x1b0a3f;};return a80_0x13b2();}export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';function a80_0x54f3(_0x4cd09e,_0xc0c6bd){_0x4cd09e=_0x4cd09e-0x124;var _0x13b280=a80_0x13b2();var _0x54f3c0=_0x13b280[_0x4cd09e];return _0x54f3c0;}export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x43099a,_0x579481){const _0x3949f3=a81_0x2735,_0x33e49=_0x43099a();while(!![]){try{const _0x4c4f26=-parseInt(_0x3949f3(0xbf))/0x1+-parseInt(_0x3949f3(0xa4))/0x2+-parseInt(_0x3949f3(0xa6))/0x3*(parseInt(_0x3949f3(0xb0))/0x4)+parseInt(_0x3949f3(0x9b))/0x5*(parseInt(_0x3949f3(0xb8))/0x6)+parseInt(_0x3949f3(0x9e))/0x7+-parseInt(_0x3949f3(0xc2))/0x8*(parseInt(_0x3949f3(0xc3))/0x9)+-parseInt(_0x3949f3(0x9d))/0xa*(-parseInt(_0x3949f3(0xbc))/0xb);if(_0x4c4f26===_0x579481)break;else _0x33e49['push'](_0x33e49['shift']());}catch(_0x3b5803){_0x33e49['push'](_0x33e49['shift']());}}}(a81_0x2b7f,0x7c115));import a81_0x2e59b3 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a81_0x43b4df from'ora';function a81_0x2b7f(){const _0x4cad89=['555204Wvwona','cyan','ExitPromptError','includes','11091619JcuGBV','JS\x20URL\x20checked','name','401475TfRUjf','\x20\x20Checking\x20JS\x20URL\x20reachability...','length','6448rAjDnE','6084GeXcav','CSS\x20URL\x20check\x20failed','test','Cancelled.','has','label','error','35nAmIrj','No\x20local\x20pages\x20found.','10CpOubl','212086ibcZvH','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','green','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','\x20\x20JS\x20URL:','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','188548HltLcm','catch','57IaJsoZ','gray','JS\x20URL\x20check\x20failed','CSS\x20URL\x20checked','fail','map','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','filter','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','[already\x20on\x20platform]','28964mZigqr','trim','stdin','path','isTTY','\x20\x20CSS\x20URL:','red','No\x20menus\x20selected.'];a81_0x2b7f=function(){return _0x4cad89;};return a81_0x2b7f();}import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x7951cb){const _0x256c19=a81_0x2735;return _0x7951cb[_0x256c19(0xa5)](_0x1930cf=>{const _0x4edb38=_0x256c19;if(_0x1930cf?.[_0x4edb38(0xbe)]===_0x4edb38(0xba))throw CliErrors['cancelled'](_0x4edb38(0xc6));throw _0x1930cf;});}export function startSpinner(_0xe43c34){const _0x50fe23=a81_0x2735;return a81_0x43b4df({'text':_0xe43c34,'color':_0x50fe23(0xb9)})['start']();}function a81_0x2735(_0x3038c3,_0x4f44a4){_0x3038c3=_0x3038c3-0x99;const _0x2b7f58=a81_0x2b7f();let _0x2735d7=_0x2b7f58[_0x3038c3];return _0x2735d7;}export function stopSpinner(_0x596b15,_0x36fbdd,_0x24834f){const _0x50655e=a81_0x2735;_0x24834f?_0x596b15['succeed'](_0x36fbdd):_0x596b15[_0x50655e(0xaa)](_0x36fbdd);}export async function askConfirm(_0x1bc947){return onCancel(confirm({'message':_0x1bc947,'theme':{'prefix':''}}));}export async function askJsUrl(_0x440c7e){const _0x3b69ae=a81_0x2735;while(!![]){const _0x142bf4=await onCancel(input({'message':_0x3b69ae(0xa2),'default':_0x440c7e,'theme':{'prefix':''}}));if(_0x142bf4['trim']()==='')throw CliErrors['cancelled'](_0x3b69ae(0xc6));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x3b69ae(0xc5)](_0x142bf4[_0x3b69ae(0xb1)]())){console[_0x3b69ae(0x9a)](a81_0x2e59b3[_0x3b69ae(0xb6)](_0x3b69ae(0x9f)));continue;}const _0x227471=startSpinner(_0x3b69ae(0xc0));try{const _0x54104a=await isUrlReachable(_0x142bf4['trim']());stopSpinner(_0x227471,_0x3b69ae(0xbd),_0x54104a);if(!_0x54104a){console['error'](a81_0x2e59b3['red']('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0x142bf4[_0x3b69ae(0xb1)]();}catch(_0xb9a83c){stopSpinner(_0x227471,_0x3b69ae(0xa8),![]);throw _0xb9a83c;}}}export async function askCssUrl(_0x4a1592){const _0x1640a2=a81_0x2735;while(!![]){const _0x8b5fea=await onCancel(input({'message':_0x1640a2(0xb5),'default':_0x4a1592,'theme':{'prefix':''}}));if(_0x8b5fea[_0x1640a2(0xb1)]()==='')throw CliErrors['cancelled']('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x8b5fea[_0x1640a2(0xb1)]())){console['error'](a81_0x2e59b3[_0x1640a2(0xb6)](_0x1640a2(0xa3)));continue;}const _0x12addd=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x49a9a6=await isUrlReachable(_0x8b5fea['trim']());stopSpinner(_0x12addd,_0x1640a2(0xa9),_0x49a9a6);if(!_0x49a9a6){console[_0x1640a2(0x9a)](a81_0x2e59b3[_0x1640a2(0xb6)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x8b5fea[_0x1640a2(0xb1)]();}catch(_0x2e39a7){stopSpinner(_0x12addd,_0x1640a2(0xc4),![]);throw _0x2e39a7;}}}export async function selectPages(_0x3f0bd2,_0x33c741,_0x49c831){const _0x9f3a8a=a81_0x2735,_0x39b691=_0x3f0bd2[_0x9f3a8a(0xab)](_0x3a47f9=>({'name':_0x3a47f9[_0x9f3a8a(0x99)]+'\x20\x20'+(_0x33c741[_0x9f3a8a(0xc7)](_0x3a47f9[_0x9f3a8a(0xb3)])?a81_0x2e59b3[_0x9f3a8a(0xa7)](_0x9f3a8a(0xaf)):a81_0x2e59b3[_0x9f3a8a(0xa0)]('[new]')),'value':_0x3a47f9[_0x9f3a8a(0x99)],'checked':_0x49c831?_0x49c831[_0x9f3a8a(0xbb)](_0x3a47f9[_0x9f3a8a(0x99)]):!_0x33c741[_0x9f3a8a(0xc7)](_0x3a47f9[_0x9f3a8a(0xb3)])}));if(_0x39b691['length']===0x0)throw new Error(_0x9f3a8a(0x9c));const _0x55e998=await onCancel(checkbox({'message':_0x9f3a8a(0xa1),'choices':_0x39b691,'loop':![],'theme':{'prefix':''}}));if(_0x55e998[_0x9f3a8a(0xc1)]===0x0)throw new Error(_0x9f3a8a(0xb7));return _0x3f0bd2[_0x9f3a8a(0xad)](_0x4c656f=>_0x55e998[_0x9f3a8a(0xbb)](_0x4c656f[_0x9f3a8a(0x99)]));}export function isInteractive(){const _0x3aa414=a81_0x2735;return process[_0x3aa414(0xb2)][_0x3aa414(0xb4)]===!![];}export function requireInteractive(){const _0x1f3316=a81_0x2735;if(!isInteractive())throw new Error(_0x1f3316(0xac)+_0x1f3316(0xae));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a82_0x16bd(){const _0xbcb4c2=['join','7086033JtIkQB','4115566gYeWXI','push','cwd','replace','935878XCnNgZ','.tsx','85cvpAtt','replaceAll','concat','match','1836308oXaZes','16032sDPIoP','trim','slice','filter','3yYvyzi','isDirectory','src/pages','forEach','5954584vsvYTX','index.tsx','endsWith','246462AIJMXj'];a82_0x16bd=function(){return _0xbcb4c2;};return a82_0x16bd();}const a82_0x25109a=a82_0x3c59;(function(_0x8c4cd6,_0x44033f){const _0x394183=a82_0x3c59,_0x1985f1=_0x8c4cd6();while(!![]){try{const _0x31df20=-parseInt(_0x394183(0x85))/0x1+parseInt(_0x394183(0x7e))/0x2*(-parseInt(_0x394183(0x89))/0x3)+-parseInt(_0x394183(0x84))/0x4+parseInt(_0x394183(0x80))/0x5*(-parseInt(_0x394183(0x90))/0x6)+parseInt(_0x394183(0x7a))/0x7+parseInt(_0x394183(0x8d))/0x8+parseInt(_0x394183(0x79))/0x9;if(_0x31df20===_0x44033f)break;else _0x1985f1['push'](_0x1985f1['shift']());}catch(_0x3b078a){_0x1985f1['push'](_0x1985f1['shift']());}}}(a82_0x16bd,0x74c21));function a82_0x3c59(_0xe4ddca,_0x4c6726){_0xe4ddca=_0xe4ddca-0x78;const _0x16bd63=a82_0x16bd();let _0x3c5965=_0x16bd63[_0xe4ddca];return _0x3c5965;}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a82_0x25109a(0x7c)](),a82_0x25109a(0x8b));export function extractTitleFromComment(_0x2bf460){const _0x2cecb5=a82_0x25109a;try{const _0x4ea935=readFileSync(_0x2bf460,'utf-8'),_0x3c936e=_0x4ea935[_0x2cecb5(0x83)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x3c936e&&_0x3c936e[0x1]){const _0x4501df=_0x3c936e[0x1],_0x231dd0=_0x4501df[_0x2cecb5(0x83)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x231dd0&&_0x231dd0[0x1])return _0x231dd0[0x1][_0x2cecb5(0x86)]();}let _0x523b14=null;const _0x208f9a=_0x4ea935[_0x2cecb5(0x83)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x208f9a&&_0x208f9a[0x1]&&(_0x523b14=_0x208f9a[0x1]);if(!_0x523b14){const _0x3e6f00=_0x4ea935[_0x2cecb5(0x83)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x3e6f00&&_0x3e6f00[0x1]&&(_0x523b14=_0x3e6f00[0x1]);}if(_0x523b14){const _0x1891bc=new RegExp('\x5cb'+_0x523b14+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x4e0e13=_0x4ea935[_0x2cecb5(0x83)](_0x1891bc);if(_0x4e0e13&&_0x4e0e13[0x1])return _0x4e0e13[0x1];return _0x523b14;}return null;}catch(_0x9c15da){return null;}}export function getLocalPages(_0x565403=pagesDir,_0x23bf16=pagesDir){const _0x3388e2=a82_0x25109a;let _0xfef6ab=[];const _0x310c94=readdirSync(_0x565403);return _0x310c94[_0x3388e2(0x8c)](_0x1d9f5c=>{const _0x5d2700=_0x3388e2,_0x501ca9=join(_0x565403,_0x1d9f5c),_0x1b9eb7=statSync(_0x501ca9);if(_0x1b9eb7&&_0x1b9eb7[_0x5d2700(0x8a)]())_0xfef6ab=_0xfef6ab[_0x5d2700(0x82)](getLocalPages(_0x501ca9,_0x23bf16));else{if(_0x1d9f5c[_0x5d2700(0x8f)](_0x5d2700(0x7f))){let _0xe39da2=relative(_0x23bf16,_0x501ca9);_0xe39da2[_0x5d2700(0x8f)](_0x5d2700(0x8e))?_0xe39da2=_0xe39da2['replace'](/index\.tsx$/,''):_0xe39da2=_0xe39da2[_0x5d2700(0x7d)](/\.tsx$/,'');_0xe39da2[_0x5d2700(0x8f)](sep)&&(_0xe39da2=_0xe39da2[_0x5d2700(0x87)](0x0,-0x1));const _0x2b74d1=_0xe39da2['split'](sep)[_0x5d2700(0x78)]('/'),_0x16b770=extractTitleFromComment(_0x501ca9),_0x21d7b4=_0x16b770||_0x2b74d1;_0xfef6ab[_0x5d2700(0x7b)]({'path':_0x2b74d1[_0x5d2700(0x81)]('$',':'),'label':_0x21d7b4});}}}),_0xfef6ab[_0x3388e2(0x88)](_0x2a3912=>_0x2a3912['path']!=='');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1c5260,_0x25d523){const _0x4b7abc=a83_0x2b5d,_0x5a59d9=_0x1c5260();while(!![]){try{const _0x388771=-parseInt(_0x4b7abc(0x1eb))/0x1*(-parseInt(_0x4b7abc(0x1ee))/0x2)+-parseInt(_0x4b7abc(0x1e3))/0x3+-parseInt(_0x4b7abc(0x1f8))/0x4+parseInt(_0x4b7abc(0x1f7))/0x5+parseInt(_0x4b7abc(0x1ef))/0x6*(parseInt(_0x4b7abc(0x1ec))/0x7)+-parseInt(_0x4b7abc(0x1f2))/0x8*(-parseInt(_0x4b7abc(0x1f6))/0x9)+-parseInt(_0x4b7abc(0x1f1))/0xa;if(_0x388771===_0x25d523)break;else _0x5a59d9['push'](_0x5a59d9['shift']());}catch(_0x185e1a){_0x5a59d9['push'](_0x5a59d9['shift']());}}}(a83_0x139f,0xbf0c9));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x114f3f){const _0x5c5e8c=a83_0x2b5d,_0x32587e=[];return!isValidJsHttpsUrl(_0x114f3f)&&_0x32587e['push'](_0x5c5e8c(0x1fd)),{'ok':_0x32587e[_0x5c5e8c(0x1e7)]===0x0,'errors':_0x32587e};}export function validateCssUrl(_0x1fff82){const _0x6fd066=a83_0x2b5d,_0xc1a2d4=[];return!isValidCssHttpsUrl(_0x1fff82)&&_0xc1a2d4['push'](_0x6fd066(0x1f3)),{'ok':_0xc1a2d4[_0x6fd066(0x1e7)]===0x0,'errors':_0xc1a2d4};}export async function validateJsUrlReachable(_0x1acf3e){const _0xe21596=a83_0x2b5d,_0xe596cb=validateJsUrl(_0x1acf3e);if(!_0xe596cb['ok'])return _0xe596cb;const _0x1361c4=await isUrlReachable(_0x1acf3e);if(!_0x1361c4)_0xe596cb[_0xe21596(0x1fb)][_0xe21596(0x1e4)]('JS\x20URL\x20is\x20unreachable');return{'ok':_0xe596cb[_0xe21596(0x1fb)][_0xe21596(0x1e7)]===0x0,'errors':_0xe596cb['errors']};}export async function validateCssUrlReachable(_0x405b20){const _0x2a193d=a83_0x2b5d,_0x560fe8=validateCssUrl(_0x405b20);if(!_0x560fe8['ok'])return _0x560fe8;const _0x30e7f5=await isUrlReachable(_0x405b20);if(!_0x30e7f5)_0x560fe8['errors']['push'](_0x2a193d(0x1f0));return{'ok':_0x560fe8[_0x2a193d(0x1fb)][_0x2a193d(0x1e7)]===0x0,'errors':_0x560fe8['errors']};}export function buildCompareRows(_0x63653,_0x129c1b){const _0x200fdc=a83_0x2b5d;return _0x63653['map'](_0x19d2e7=>({'label':_0x19d2e7[_0x200fdc(0x1fc)],'path':_0x19d2e7[_0x200fdc(0x1ea)],'local':!![],'online':_0x129c1b[_0x200fdc(0x1fa)](_0x19d2e7[_0x200fdc(0x1ea)])}));}export function filterNewPages(_0xe45ae4,_0x5669eb,_0x55045b){const _0x20cbf9=a83_0x2b5d;if(_0x55045b&&_0x55045b['length']>0x0){const _0x47ac0e=new Set(_0x55045b[_0x20cbf9(0x1e9)](_0x2a0784=>_0x2a0784['trim']())),_0x1285b7=_0xe45ae4[_0x20cbf9(0x1f9)](_0x1efea9=>_0x47ac0e[_0x20cbf9(0x1fa)](_0x1efea9['label']));if(_0x1285b7[_0x20cbf9(0x1e7)]===0x0)throw new Error(_0x20cbf9(0x1ed)+[..._0x47ac0e][_0x20cbf9(0x1f5)](',\x20'));return _0x1285b7;}return _0xe45ae4['filter'](_0x1681dd=>!_0x5669eb[_0x20cbf9(0x1fa)](_0x1681dd[_0x20cbf9(0x1ea)]));}export function filterPagesByLabels(_0x3cffc9,_0x166daa){const _0x21ea1d=a83_0x2b5d,_0x23bb87=[],_0x20d536=[];for(const _0x26e154 of _0x166daa){const _0x270edf=_0x26e154[_0x21ea1d(0x1e5)](),_0x38a550=_0x3cffc9['find'](_0x8a8ec7=>_0x8a8ec7['label']===_0x270edf);if(_0x38a550)_0x23bb87[_0x21ea1d(0x1e4)](_0x38a550);else _0x20d536[_0x21ea1d(0x1e4)](_0x26e154);}return{'matched':_0x23bb87,'unmatched':_0x20d536};}export async function doCreateMenus(_0x115c87,_0x182ff9,_0x5072e4,_0x1b5ef0){const _0x50d9bf=a83_0x2b5d,_0x46d225=await createMenus(_0x115c87,_0x182ff9,_0x5072e4,_0x1b5ef0);return{'created':_0x46d225[_0x50d9bf(0x1e7)],'failed':0x0,'labels':_0x5072e4[_0x50d9bf(0x1e9)](_0x788c51=>_0x788c51[_0x50d9bf(0x1fc)]),'menus':_0x46d225};}function a83_0x139f(){const _0x45b00f=['length','status','map','path','2693ODRlnV','1116766GOPhUo','No\x20local\x20pages\x20matched\x20labels:\x20','514uxGTvK','6ScAZzR','CSS\x20URL\x20is\x20unreachable','5838540AwDIFu','8OjTwNp','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','resources','join','10667196VJydCc','1680385wcsobm','803160vfJIza','filter','has','errors','label','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','value','allSettled','rejected','2417337RWqwSc','push','trim','fulfilled'];a83_0x139f=function(){return _0x45b00f;};return a83_0x139f();}export function filterMenusWithResources(_0x50ec58){const _0xaee317=a83_0x2b5d;return _0x50ec58[_0xaee317(0x1f9)](_0x142c66=>_0x142c66[_0xaee317(0x1f4)][_0xaee317(0x1e7)]>0x0);}export async function doUpdateCdnUrls(_0x4dc90c,_0x3945d0,_0x47cef4,_0x1b4550){const _0x5cb48a=a83_0x2b5d,_0x2a621c=_0x47cef4[_0x5cb48a(0x1f9)](_0x5847b2=>_0x5847b2['resources'][_0x5cb48a(0x1e7)]>0x0),_0x14d8b9=await Promise[_0x5cb48a(0x1e1)](_0x2a621c[_0x5cb48a(0x1e9)](_0x5c34d1=>updateMenuCdnUrl(_0x4dc90c,_0x3945d0,{'id':_0x5c34d1['id'],'label':_0x5c34d1[_0x5cb48a(0x1fc)],'path':_0x5c34d1[_0x5cb48a(0x1ea)],'resources':_0x1b4550}))),_0x3de945=_0x14d8b9[_0x5cb48a(0x1f9)](_0x3b6bef=>_0x3b6bef[_0x5cb48a(0x1e8)]===_0x5cb48a(0x1e6))[_0x5cb48a(0x1e9)](_0x24ac56=>_0x24ac56[_0x5cb48a(0x1e0)]),_0xd844c2=_0x14d8b9['filter'](_0xce9f14=>_0xce9f14[_0x5cb48a(0x1e8)]===_0x5cb48a(0x1e2))[_0x5cb48a(0x1e7)];return{'updated':_0x3de945[_0x5cb48a(0x1e7)],'failed':_0xd844c2,'menus':_0x3de945};}export async function fetchMenuData(_0x132af7,_0x4dbce9){const _0x8d6725=a83_0x2b5d,_0x299fb0=getLocalPages(),_0x873ad0=await getOnlineMenuList(_0x132af7,_0x4dbce9),_0x511b58=new Set(_0x873ad0['map'](_0x911d26=>_0x911d26[_0x8d6725(0x1ea)]));return{'localPages':_0x299fb0,'onlineMenuList':_0x873ad0,'onlinePaths':_0x511b58};}function a83_0x2b5d(_0x1e0403,_0x47b95f){_0x1e0403=_0x1e0403-0x1e0;const _0x139fef=a83_0x139f();let _0x2b5d4b=_0x139fef[_0x1e0403];return _0x2b5d4b;}export async function fetchOnlineMenuList(_0x19856d,_0x2c6ceb){return getOnlineMenuList(_0x19856d,_0x2c6ceb);}
|