@lovrabet/rabetbase-cli 2.1.7-beta.3 → 2.1.7-beta.5
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
|
+
const a68_0x415d88=a68_0x4dd2;(function(_0x43111c,_0x4cccaa){const _0x1d2fbd=a68_0x4dd2,_0x4cdd5b=_0x43111c();while(!![]){try{const _0x345cba=parseInt(_0x1d2fbd(0x1ee))/0x1*(parseInt(_0x1d2fbd(0x1e8))/0x2)+parseInt(_0x1d2fbd(0x1e0))/0x3+-parseInt(_0x1d2fbd(0x1ea))/0x4*(parseInt(_0x1d2fbd(0x1db))/0x5)+parseInt(_0x1d2fbd(0x1da))/0x6+parseInt(_0x1d2fbd(0x1dc))/0x7+parseInt(_0x1d2fbd(0x1de))/0x8*(parseInt(_0x1d2fbd(0x1dd))/0x9)+parseInt(_0x1d2fbd(0x1ec))/0xa*(-parseInt(_0x1d2fbd(0x1df))/0xb);if(_0x345cba===_0x4cccaa)break;else _0x4cdd5b['push'](_0x4cdd5b['shift']());}catch(_0xf92cf1){_0x4cdd5b['push'](_0x4cdd5b['shift']());}}}(a68_0x2f68,0x46125));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a68_0x4dd2(_0x9ddaac,_0x4fc892){_0x9ddaac=_0x9ddaac-0x1d9;const _0x2f686a=a68_0x2f68();let _0x4dd20b=_0x2f686a[_0x9ddaac];return _0x4dd20b;}function a68_0x2f68(){const _0x27953f=['99565VpmZTn','read','1046388EatqQp','35410oqFvAH','429128SxsIFL','24777KpDSin','1416bPQKWH','1861486YZzpCW','998724BhVUlo','Page\x20size','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','length','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','Found\x20','page','pagesize','4DwKGKP','number','260gIhhpc','appCode','30wrEDPl','num'];a68_0x2f68=function(){return _0x27953f;};return a68_0x2f68();}import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':'list','description':a68_0x415d88(0x1e2),'risk':a68_0x415d88(0x1d9),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a68_0x415d88(0x1e6),'type':a68_0x415d88(0x1e9),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a68_0x415d88(0x1e7),'type':a68_0x415d88(0x1e9),'description':a68_0x415d88(0x1e1),'default':0x64}],async 'execute'(_0x9dfd8a){const _0x24fa32=a68_0x415d88,_0x2ca5c6=_0x9dfd8a[_0x24fa32(0x1ed)](_0x24fa32(0x1e6),0x1)||0x1,_0x4a1675=_0x9dfd8a['num'](_0x24fa32(0x1e7),0x64)||0x64,{items:_0x5b8e33,paging:_0x3c93ec}=await listDbLinks(_0x9dfd8a[_0x24fa32(0x1eb)],{'currentPage':_0x2ca5c6,'pageSize':_0x4a1675}),_0x5671f4=sanitizeDbLinkList(_0x5b8e33),_0x100939=_0x3c93ec?_0x3c93ec:{'currentPage':_0x2ca5c6,'pageSize':_0x4a1675,'rowsOnPage':_0x5671f4[_0x24fa32(0x1e3)],'totalCount':null,'note':_0x24fa32(0x1e4)};return{'ok':!![],'data':{'connections':_0x5671f4,'paging':_0x100939},'message':_0x24fa32(0x1e5)+_0x5671f4[_0x24fa32(0x1e3)]+'\x20database\x20connection(s)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1376b0,_0x5b429a){const _0x1f7447=a69_0x5881,_0x8586ce=_0x1376b0();while(!![]){try{const _0x413437=-parseInt(_0x1f7447(0x151))/0x1+-parseInt(_0x1f7447(0x145))/0x2+-parseInt(_0x1f7447(0x14f))/0x3+parseInt(_0x1f7447(0x14a))/0x4*(-parseInt(_0x1f7447(0x143))/0x5)+parseInt(_0x1f7447(0x13e))/0x6+-parseInt(_0x1f7447(0x147))/0x7+parseInt(_0x1f7447(0x13f))/0x8*(parseInt(_0x1f7447(0x142))/0x9);if(_0x413437===_0x5b429a)break;else _0x8586ce['push'](_0x8586ce['shift']());}catch(_0x3bd5e0){_0x8586ce['push'](_0x8586ce['shift']());}}}(a69_0x2157,0x198be));function a69_0x2157(){const _0x5d84be=['323530aGuODZ','/data/er?dbId=','826210pyebFJ','toLowerCase','https://app.lovrabet.com/app/','20lTYjye','jdbcurl','test','accesskey','/data/database','607569XSmclr','keys','153654qTQZSh','password','map','trim','authorization','passwd','connectionstring','isFinite','https://daily.lovrabet.com/web-app/app/','526998mXkNYm','8bvxnVe','length','includes','6291693BTKHAD','46300rdEEsn','privatekey'];a69_0x2157=function(){return _0x5d84be;};return a69_0x2157();}import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0xacfab7){const _0x371074=a69_0x5881,_0x164688=_0xacfab7[_0x371074(0x148)]();if(_0x164688===_0x371074(0x152)||_0x164688===_0x371074(0x156)||_0x164688==='dbpassword')return!![];if(_0x164688['includes']('secret')||_0x164688[_0x371074(0x141)]('token')||_0x164688['includes']('credential'))return!![];if(_0x164688[_0x371074(0x141)](_0x371074(0x144))||_0x164688[_0x371074(0x141)](_0x371074(0x14d)))return!![];if(_0x164688===_0x371074(0x155)||_0x164688===_0x371074(0x157)||_0x164688===_0x371074(0x14b))return!![];return![];}export function sanitizeDbLinkForOutput(_0x58b19f){const _0x301f8d=a69_0x5881,_0x4011b0={..._0x58b19f};for(const _0xc51b30 of Object[_0x301f8d(0x150)](_0x4011b0)){if(!shouldRedactKey(_0xc51b30))continue;const _0x37e5de=_0x4011b0[_0xc51b30];_0x37e5de!=null&&String(_0x37e5de)[_0x301f8d(0x140)]>0x0&&(_0x4011b0[_0xc51b30]='[redacted]');}return _0x4011b0;}export function sanitizeDbLinkList(_0x257dd9){const _0x43f296=a69_0x5881;return _0x257dd9[_0x43f296(0x153)](_0x2b4b82=>sanitizeDbLinkForOutput(_0x2b4b82));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x195048){const _0x45fba8=a69_0x5881,_0x27e9d6=_0x195048[_0x45fba8(0x154)]();if(!_0x27e9d6)return![];return DB_URL_PATTERN[_0x45fba8(0x14c)](_0x27e9d6);}function a69_0x5881(_0x9ab707,_0x4da883){_0x9ab707=_0x9ab707-0x13c;const _0x2157f6=a69_0x2157();let _0x58814b=_0x2157f6[_0x9ab707];return _0x58814b;}export function buildDbPageLinks(_0x1ebfa1,_0x25b6a0){const _0x23ed01=a69_0x5881,_0x45fb13=_0x1ebfa1?.[_0x23ed01(0x154)]();if(!_0x45fb13)return undefined;const _0x41a518=typeof _0x25b6a0==='number'?String(_0x25b6a0):String(_0x25b6a0??'')[_0x23ed01(0x154)]();if(!_0x41a518)return undefined;const _0x5ee11c=Number(_0x41a518);if(!Number[_0x23ed01(0x13c)](_0x5ee11c)||_0x5ee11c<=0x0)return undefined;const _0x186010=isDaily(normalizeEnv(getEnv()))?_0x23ed01(0x13d)+encodeURIComponent(_0x45fb13):_0x23ed01(0x149)+encodeURIComponent(_0x45fb13),_0x5d7ff9=encodeURIComponent(String(_0x5ee11c));return{'databasePage':_0x186010+_0x23ed01(0x14e),'erPage':_0x186010+_0x23ed01(0x146)+_0x5d7ff9};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a70_0xb0160c=a70_0x4636;function a70_0x4636(_0x2ab8df,_0x418323){_0x2ab8df=_0x2ab8df-0x141;const _0x163a03=a70_0x163a();let _0x463611=_0x163a03[_0x2ab8df];return _0x463611;}(function(_0x1fe33e,_0x37f1c9){const _0x716d21=a70_0x4636,_0x5bdc86=_0x1fe33e();while(!![]){try{const _0x3b60ea=parseInt(_0x716d21(0x14b))/0x1+parseInt(_0x716d21(0x14a))/0x2*(parseInt(_0x716d21(0x141))/0x3)+-parseInt(_0x716d21(0x145))/0x4+parseInt(_0x716d21(0x142))/0x5*(-parseInt(_0x716d21(0x147))/0x6)+parseInt(_0x716d21(0x144))/0x7+-parseInt(_0x716d21(0x14d))/0x8*(-parseInt(_0x716d21(0x148))/0x9)+parseInt(_0x716d21(0x14e))/0xa;if(_0x3b60ea===_0x37f1c9)break;else _0x5bdc86['push'](_0x5bdc86['shift']());}catch(_0x1fa04f){_0x5bdc86['push'](_0x5bdc86['shift']());}}}(a70_0x163a,0x302f8));import{getDbAllTableList}from'../../core/api-client.js';function a70_0x163a(){const _0x255103=['37860vKpOqa','645yGwlrH','tables','1429379uVyRzo','1212648xoJgEQ','read','17634VfcyWb','1341NyOQIL','num','18rlrcbd','108562ojtpXl','length','15664SaqYSk','1615800vdejku'];a70_0x163a=function(){return _0x255103;};return a70_0x163a();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a70_0xb0160c(0x143),'description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':a70_0xb0160c(0x146),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x26c4dc){const _0x31a29a=a70_0xb0160c,_0x34bcf9=_0x26c4dc[_0x31a29a(0x149)]('id'),_0x323abc=await getDbAllTableList(_0x26c4dc['appCode'],_0x34bcf9);return{'ok':!![],'data':{'dbLinkId':_0x34bcf9,'total':_0x323abc[_0x31a29a(0x14c)],'tables':_0x323abc},'message':_0x323abc['length']+'\x20table(s)\x20on\x20db\x20link\x20'+_0x34bcf9};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a71_0x1553(_0x33d60b,_0x3e4fbe){_0x33d60b=_0x33d60b-0x126;const _0x16ca5c=a71_0x16ca();let _0x155310=_0x16ca5c[_0x33d60b];return _0x155310;}const a71_0x466a42=a71_0x1553;(function(_0x181269,_0xbe94a3){const _0x101abf=a71_0x1553,_0x59ef99=_0x181269();while(!![]){try{const _0x1ddcf7=-parseInt(_0x101abf(0x12b))/0x1+parseInt(_0x101abf(0x12a))/0x2+-parseInt(_0x101abf(0x13d))/0x3*(parseInt(_0x101abf(0x137))/0x4)+-parseInt(_0x101abf(0x13c))/0x5*(parseInt(_0x101abf(0x12e))/0x6)+parseInt(_0x101abf(0x131))/0x7+-parseInt(_0x101abf(0x134))/0x8*(parseInt(_0x101abf(0x13a))/0x9)+parseInt(_0x101abf(0x12f))/0xa;if(_0x1ddcf7===_0xbe94a3)break;else _0x59ef99['push'](_0x59ef99['shift']());}catch(_0x30bff2){_0x59ef99['push'](_0x59ef99['shift']());}}}(a71_0x16ca,0x29fc3));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a71_0x16ca(){const _0xd04197=['\x20(see\x20data.result)','659818IVcyen','319355XdKzYs','code','message','5970qJkVVO','5416790cJaRNL','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','2227967vbSJkD','object','Connection\x20check\x20finished\x20for\x20db\x20link\x20','115288JYsTpx','num','keys','4CuaDvR','error','Connection\x20OK\x20for\x20db\x20link\x20','171vEuqib','msg','1255LRLRGR','524967VXvlrb','success','read','length'];a71_0x16ca=function(){return _0xd04197;};return a71_0x16ca();}function summarizeTestConnectResult(_0x9e8dfc){const _0x5126e0=a71_0x1553;if(_0x9e8dfc===!![]||_0x9e8dfc===![])return{'success':_0x9e8dfc};if(_0x9e8dfc===null||_0x9e8dfc===undefined)return{'type':typeof _0x9e8dfc};if(typeof _0x9e8dfc!==_0x5126e0(0x132))return{'type':typeof _0x9e8dfc};const _0x29558e=_0x9e8dfc,_0x303275=[_0x5126e0(0x126),_0x5126e0(0x12d),_0x5126e0(0x12c),_0x5126e0(0x138),_0x5126e0(0x13b),'data'],_0x3582f5={};for(const _0xc1b957 of _0x303275){if(_0xc1b957 in _0x29558e)_0x3582f5[_0xc1b957]=_0x29558e[_0xc1b957];}return Object['keys'](_0x3582f5)[_0x5126e0(0x128)]===0x0&&(_0x3582f5[_0x5126e0(0x136)]=Object[_0x5126e0(0x136)](_0x29558e)['slice'](0x0,0x14)),_0x3582f5;}export const dbTest={'service':'db','command':'test','description':a71_0x466a42(0x130),'risk':a71_0x466a42(0x127),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x103eaf){const _0x2506ca=a71_0x466a42,_0x332fe4=_0x103eaf[_0x2506ca(0x135)]('id'),_0x158c4e=await testDbLinkConnect(_0x332fe4),_0x41e62a=_0x158c4e===!![]||typeof _0x158c4e===_0x2506ca(0x132)&&_0x158c4e!==null&&_0x158c4e[_0x2506ca(0x126)]===!![],_0x1cf42e=summarizeTestConnectResult(_0x158c4e);return{'ok':!![],'data':{'id':_0x332fe4,'connected':Boolean(_0x41e62a),'result':_0x1cf42e},'message':_0x41e62a?_0x2506ca(0x139)+_0x332fe4:_0x2506ca(0x133)+_0x332fe4+_0x2506ca(0x129)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x5781fe=a72_0x86be;(function(_0x46757b,_0x4336b7){const _0x239e73=a72_0x86be,_0x217f07=_0x46757b();while(!![]){try{const _0x55321b=parseInt(_0x239e73(0x79))/0x1+-parseInt(_0x239e73(0x96))/0x2*(-parseInt(_0x239e73(0x90))/0x3)+-parseInt(_0x239e73(0x84))/0x4*(-parseInt(_0x239e73(0x81))/0x5)+-parseInt(_0x239e73(0x80))/0x6*(-parseInt(_0x239e73(0x82))/0x7)+-parseInt(_0x239e73(0x7c))/0x8*(-parseInt(_0x239e73(0x7e))/0x9)+-parseInt(_0x239e73(0x92))/0xa*(-parseInt(_0x239e73(0x88))/0xb)+-parseInt(_0x239e73(0x8e))/0xc*(parseInt(_0x239e73(0x8a))/0xd);if(_0x55321b===_0x4336b7)break;else _0x217f07['push'](_0x217f07['shift']());}catch(_0x11d291){_0x217f07['push'](_0x217f07['shift']());}}}(a72_0x3a32,0xa7ea8));function a72_0x86be(_0x1f593f,_0x127e28){_0x1f593f=_0x1f593f-0x76;const _0x3a32ac=a72_0x3a32();let _0x86be4f=_0x3a32ac[_0x1f593f];return _0x86be4f;}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';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_0x3a32(){const _0x30fb25=['trim','450908FnnEiL','dbdesc','New\x20host:port','2168YFMDfY','dbParam','20583HUnBEG','dbparam','11862LfFytt','10630quXRjr','3227cktNDZ','dburl','56pjSzDH','write','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','55CfGbfe','New\x20description','770523hNhDpN','password','username','string','660knJZGZ','POST','24clYYiF','New\x20username','2515510wVkJTx','update','str','dbname','169522ScfIsP','dbDesc','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dbUrl','dbName','/smartapi/dblink/update','num','validation'];a72_0x3a32=function(){return _0x30fb25;};return a72_0x3a32();}export const dbUpdate={'service':'db','command':a72_0x5781fe(0x93),'description':a72_0x5781fe(0x87),'risk':a72_0x5781fe(0x85),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a72_0x5781fe(0x95),'type':'string','description':'New\x20database\x20name'},{'name':a72_0x5781fe(0x83),'type':a72_0x5781fe(0x8d),'description':a72_0x5781fe(0x7b)},{'name':a72_0x5781fe(0x8c),'type':a72_0x5781fe(0x8d),'description':a72_0x5781fe(0x91)},{'name':a72_0x5781fe(0x8b),'type':'string','description':a72_0x5781fe(0x86)},{'name':a72_0x5781fe(0x7f),'type':'string','description':'New\x20connection\x20parameter\x20string'},{'name':a72_0x5781fe(0x7a),'type':a72_0x5781fe(0x8d),'description':a72_0x5781fe(0x89)}],async 'validate'(_0x158623){const _0x27d58c=a72_0x5781fe,_0x2bdaa3=_0x158623[_0x27d58c(0x94)](_0x27d58c(0x83));if(_0x2bdaa3&&!validateDbUrl(_0x2bdaa3[_0x27d58c(0x78)]()))throw CliErrors[_0x27d58c(0x77)](_0x27d58c(0x98)+_0x2bdaa3+'\x22');},async 'dryRun'(_0x1790c0){const _0x3e6e4b=a72_0x5781fe,_0x577281=_0x1790c0[_0x3e6e4b(0x76)]('id'),_0x1a015c=await getDbLinkInfo(_0x577281),_0x48630a={..._0x1a015c},_0x5920d2=_0x1790c0['str'](_0x3e6e4b(0x95));if(_0x5920d2)_0x48630a[_0x3e6e4b(0x9a)]=_0x5920d2;const _0x37191c=_0x1790c0['str']('dburl');if(_0x37191c)_0x48630a[_0x3e6e4b(0x99)]=_0x37191c['trim']();const _0x2f9a39=_0x1790c0['str']('username');if(_0x2f9a39)_0x48630a[_0x3e6e4b(0x8c)]=_0x2f9a39;const _0x58d2bc=_0x1790c0['str']('password');if(_0x58d2bc)_0x48630a['password']=_0x58d2bc;const _0x47502b=_0x1790c0[_0x3e6e4b(0x94)](_0x3e6e4b(0x7f));if(_0x47502b)_0x48630a[_0x3e6e4b(0x7d)]=_0x47502b;const _0x440f8a=_0x1790c0[_0x3e6e4b(0x94)](_0x3e6e4b(0x7a));if(_0x440f8a)_0x48630a[_0x3e6e4b(0x97)]=_0x440f8a;const _0x3432f9=sanitizeDbLinkForOutput(_0x48630a);return{'method':_0x3e6e4b(0x8f),'url':_0x3e6e4b(0x9b),'body':_0x3432f9,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0x3cd928){const _0x1dc827=a72_0x5781fe,_0x5dfc65=_0x3cd928[_0x1dc827(0x76)]('id'),_0x23fa6f=await getDbLinkInfo(_0x5dfc65),_0x18c347={..._0x23fa6f},_0x194746=_0x3cd928[_0x1dc827(0x94)](_0x1dc827(0x95));if(_0x194746)_0x18c347['dbName']=_0x194746;const _0x4fee6e=_0x3cd928[_0x1dc827(0x94)]('dburl');if(_0x4fee6e)_0x18c347[_0x1dc827(0x99)]=_0x4fee6e[_0x1dc827(0x78)]();const _0xe71c31=_0x3cd928[_0x1dc827(0x94)](_0x1dc827(0x8c));if(_0xe71c31)_0x18c347['username']=_0xe71c31;const _0xbe253b=_0x3cd928[_0x1dc827(0x94)](_0x1dc827(0x8b));if(_0xbe253b)_0x18c347[_0x1dc827(0x8b)]=_0xbe253b;const _0x1a4f66=_0x3cd928['str'](_0x1dc827(0x7f));if(_0x1a4f66)_0x18c347[_0x1dc827(0x7d)]=_0x1a4f66;const _0x2b8b1b=_0x3cd928[_0x1dc827(0x94)]('dbdesc');if(_0x2b8b1b)_0x18c347['dbDesc']=_0x2b8b1b;const {id:_0x29ecfc,entity:_0x35fedb}=normalizeEntityWithIdResponse(await updateDbLink(_0x18c347));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x35fedb),'message':'Updated\x20db\x20link\x20'+(_0x29ecfc??_0x5dfc65)};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a73_0x162bd3=a73_0x38aa;(function(_0x46ef56,_0x1daa63){const _0x43290b=a73_0x38aa,_0x912d97=_0x46ef56();while(!![]){try{const _0x45f929=parseInt(_0x43290b(0x1bb))/0x1*(parseInt(_0x43290b(0x1cb))/0x2)+-parseInt(_0x43290b(0x189))/0x3*(parseInt(_0x43290b(0x18c))/0x4)+parseInt(_0x43290b(0x196))/0x5+-parseInt(_0x43290b(0x1b4))/0x6+parseInt(_0x43290b(0x1c3))/0x7+-parseInt(_0x43290b(0x1b0))/0x8*(-parseInt(_0x43290b(0x1a6))/0x9)+-parseInt(_0x43290b(0x1b6))/0xa;if(_0x45f929===_0x1daa63)break;else _0x912d97['push'](_0x912d97['shift']());}catch(_0x811a23){_0x912d97['push'](_0x912d97['shift']());}}}(a73_0x1c1e,0x4beba));function a73_0x1c1e(){const _0x2291c8=['\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','format','source','1090748uJitIC','log','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','value','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','cookie','arch','platform','green','gray','\x20\x20Config\x20Files','\x20←\x20current','length','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','doctor','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','appcode','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','18267cXPkpL','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','message','92QFxnJf','red','slice','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','repeat','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','empty','\x20\x20─','(not\x20found)','915345dQfOcv','(not\x20set)','\x20\x20\x20\x20accessKey:\x20\x20','env','read','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','pageSize','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','✗\x20Expired','padEnd','\x20\x20explicitAppName:\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','(default)','currentApp','27MEtguZ','apps','\x20\x20Merged\x20Config','Global','check','apiDir','missing','(set,\x20length=','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','353528dIVVYa','locale','version','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','1950330RNdVxf','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','4562030vhMVov','(none)','appCode','\x20\x20Apps','\x20\x20API\x20Endpoints','1KeMwqf','\x20\x20Auth','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','status','Project','2598813NPUjCT','bold'];a73_0x1c1e=function(){return _0x2291c8;};return a73_0x1c1e();}import a73_0x30e558 from'chalk';function a73_0x38aa(_0x89954b,_0xee7cf8){_0x89954b=_0x89954b-0x17d;const _0x1c1e51=a73_0x1c1e();let _0x38aaf7=_0x1c1e51[_0x89954b];return _0x38aaf7;}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(_0x34d850){const _0x5de2b3=a73_0x38aa,_0x4fc244=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x5de2b3(0x18e)](0x0,0xa)+')':VERSION,_0x4e7af6=buildConfigFromFlags({}),_0x52fda9=getCookie();console[_0x5de2b3(0x1cc)](),console[_0x5de2b3(0x1cc)](a73_0x30e558[_0x5de2b3(0x1c4)](CLI_BIN_NAME+'\x20doctor')),console[_0x5de2b3(0x1cc)](a73_0x30e558[_0x5de2b3(0x17f)]('─'[_0x5de2b3(0x191)](0x32))),console[_0x5de2b3(0x1cc)](_0x5de2b3(0x1b5)+_0x4fc244),console[_0x5de2b3(0x1cc)](_0x5de2b3(0x183)+process[_0x5de2b3(0x1b2)]),console[_0x5de2b3(0x1cc)](_0x5de2b3(0x1c5)+process[_0x5de2b3(0x17d)]+'\x20'+process[_0x5de2b3(0x1d1)]),console['log'](),console['log'](a73_0x30e558[_0x5de2b3(0x1c4)](_0x5de2b3(0x180))),console[_0x5de2b3(0x1cc)](a73_0x30e558['gray'](_0x5de2b3(0x194)['repeat'](0x1e)));const _0x40c1ae=getGlobalConfigPath(),_0x4f0ca3=getProjectConfigPath();console[_0x5de2b3(0x1cc)](_0x5de2b3(0x1bf)+(_0x40c1ae||a73_0x30e558[_0x5de2b3(0x17f)](_0x5de2b3(0x195)))),console[_0x5de2b3(0x1cc)](_0x5de2b3(0x18f)+(_0x4f0ca3||a73_0x30e558[_0x5de2b3(0x17f)](_0x5de2b3(0x195)))),console[_0x5de2b3(0x1cc)](),console[_0x5de2b3(0x1cc)](a73_0x30e558[_0x5de2b3(0x1c4)]('\x20\x20Config\x20JSON')),console['log'](a73_0x30e558['gray'](_0x5de2b3(0x194)['repeat'](0x1e)));const _0x5d481c=(_0x5d6797,_0x462f92)=>{const _0xcf4d3f=_0x5de2b3;if(!_0x462f92){console[_0xcf4d3f(0x1cc)]('\x20\x20'+_0x5d6797[_0xcf4d3f(0x1a1)](0x11)+'\x20'+a73_0x30e558[_0xcf4d3f(0x17f)](_0xcf4d3f(0x19f)));return;}const _0x10f767=inspectCliConfigJsonFile(_0x462f92);if(_0x10f767['status']==='ok')console[_0xcf4d3f(0x1cc)]('\x20\x20'+_0x5d6797['padEnd'](0x11)+'\x20'+a73_0x30e558[_0xcf4d3f(0x17e)](_0xcf4d3f(0x1c8)));else{if(_0x10f767[_0xcf4d3f(0x1c1)]===_0xcf4d3f(0x193))console[_0xcf4d3f(0x1cc)]('\x20\x20'+_0x5d6797[_0xcf4d3f(0x1a1)](0x11)+'\x20'+a73_0x30e558['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x10f767[_0xcf4d3f(0x1c1)]===_0xcf4d3f(0x1ac)?console[_0xcf4d3f(0x1cc)]('\x20\x20'+_0x5d6797['padEnd'](0x11)+'\x20'+a73_0x30e558[_0xcf4d3f(0x17f)]('(missing)')):(console[_0xcf4d3f(0x1cc)]('\x20\x20'+_0x5d6797[_0xcf4d3f(0x1a1)](0x11)+'\x20'+a73_0x30e558[_0xcf4d3f(0x18d)]('✗\x20Invalid\x20JSON')),console[_0xcf4d3f(0x1cc)]('\x20\x20'+''[_0xcf4d3f(0x1a1)](0x11)+'\x20'+a73_0x30e558[_0xcf4d3f(0x18d)](_0x10f767[_0xcf4d3f(0x18b)])));}};_0x5d481c(_0x5de2b3(0x1a9),_0x40c1ae),_0x5d481c(_0x5de2b3(0x1c2),_0x4f0ca3),console[_0x5de2b3(0x1cc)](),console[_0x5de2b3(0x1cc)](a73_0x30e558[_0x5de2b3(0x1c4)](_0x5de2b3(0x1a8))),console[_0x5de2b3(0x1cc)](a73_0x30e558[_0x5de2b3(0x17f)](_0x5de2b3(0x194)[_0x5de2b3(0x191)](0x1e))),console[_0x5de2b3(0x1cc)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4e7af6[_0x5de2b3(0x1b8)]||a73_0x30e558[_0x5de2b3(0x18d)](_0x5de2b3(0x197)))),console[_0x5de2b3(0x1cc)](_0x5de2b3(0x1bd)+_0x4e7af6[_0x5de2b3(0x199)]),console[_0x5de2b3(0x1cc)](_0x5de2b3(0x1ae)+_0x4e7af6[_0x5de2b3(0x1b1)]),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4e7af6[_0x5de2b3(0x1ab)]),console['log'](_0x5de2b3(0x1c7)+(_0x4e7af6[_0x5de2b3(0x184)]||a73_0x30e558[_0x5de2b3(0x17f)]('(none)'))),console[_0x5de2b3(0x1cc)](_0x5de2b3(0x18a)+(_0x4e7af6[_0x5de2b3(0x1a5)]||a73_0x30e558[_0x5de2b3(0x17f)](_0x5de2b3(0x1b7)))),console[_0x5de2b3(0x1cc)](_0x5de2b3(0x1a2)+(_0x4e7af6['explicitAppName']||a73_0x30e558[_0x5de2b3(0x17f)](_0x5de2b3(0x1b7)))),console[_0x5de2b3(0x1cc)](_0x5de2b3(0x190)+(_0x4e7af6[_0x5de2b3(0x1c9)]||a73_0x30e558['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x5de2b3(0x1c9)]+')'))),console[_0x5de2b3(0x1cc)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4e7af6[_0x5de2b3(0x19d)]??a73_0x30e558[_0x5de2b3(0x17f)](_0x5de2b3(0x1a4)))),console['log'](_0x5de2b3(0x1a3)+_0x4e7af6['riskLevel']),console['log'](_0x5de2b3(0x19e)+_0x4e7af6['verbose']),console[_0x5de2b3(0x1cc)](_0x5de2b3(0x1cf)+(_0x4e7af6[_0x5de2b3(0x1d0)]?a73_0x30e558[_0x5de2b3(0x17e)]('(set,\x20length='+_0x4e7af6[_0x5de2b3(0x1d0)]['length']+')'):_0x52fda9?a73_0x30e558[_0x5de2b3(0x17e)](_0x5de2b3(0x1be)+_0x52fda9['length']+')'):a73_0x30e558[_0x5de2b3(0x17f)](_0x5de2b3(0x1b7))));const _0x3c2915=Object['keys'](_0x4e7af6[_0x5de2b3(0x1a7)]);if(_0x3c2915['length']>0x0){console[_0x5de2b3(0x1cc)](),console['log'](a73_0x30e558[_0x5de2b3(0x1c4)](_0x5de2b3(0x1b9))),console[_0x5de2b3(0x1cc)](a73_0x30e558[_0x5de2b3(0x17f)]('\x20\x20─'[_0x5de2b3(0x191)](0x1e)));for(const _0x2e6a0a of _0x3c2915){const _0x2b4c93=_0x4e7af6[_0x5de2b3(0x1a7)][_0x2e6a0a],_0xe26bb2=_0x2e6a0a===_0x4e7af6['defaultApp'],_0x2be1a0=_0x2e6a0a===_0x4e7af6[_0x5de2b3(0x1a5)],_0x542b82=_0x2be1a0?a73_0x30e558['green'](_0x5de2b3(0x181)):'',_0x35e956=_0xe26bb2?'\x20(default)':'';console[_0x5de2b3(0x1cc)]('\x20\x20'+_0x2e6a0a+_0x35e956+_0x542b82),console[_0x5de2b3(0x1cc)](_0x5de2b3(0x19c)+_0x2b4c93[_0x5de2b3(0x187)]);const _0x646c2f=buildAppDoctorFields(_0x2b4c93,{'env':_0x4e7af6['env'],'apiDir':_0x4e7af6['raw'][_0x5de2b3(0x1ab)]||DEFAULT_CONFIG_VALUES[_0x5de2b3(0x1ab)],'cookie':_0x4e7af6[_0x5de2b3(0x1d0)]||_0x52fda9||undefined,'accessKey':_0x4e7af6[_0x5de2b3(0x1af)]});console['log'](_0x5de2b3(0x1cd)+_0x646c2f[_0x5de2b3(0x199)]['value']+'\x20\x20'+a73_0x30e558[_0x5de2b3(0x17f)]('('+_0x646c2f['env'][_0x5de2b3(0x1ca)]+')')),console[_0x5de2b3(0x1cc)](_0x5de2b3(0x1b3)+_0x646c2f[_0x5de2b3(0x1ab)][_0x5de2b3(0x1ce)]+'\x20\x20'+a73_0x30e558['gray']('('+_0x646c2f[_0x5de2b3(0x1ab)][_0x5de2b3(0x1ca)]+')'));const _0x152c43=_0x646c2f[_0x5de2b3(0x1d0)]['value']?a73_0x30e558[_0x5de2b3(0x17e)](_0x5de2b3(0x1ad)+_0x646c2f['cookie'][_0x5de2b3(0x1ce)][_0x5de2b3(0x182)]+')'):a73_0x30e558['gray'](_0x5de2b3(0x1b7));console[_0x5de2b3(0x1cc)](_0x5de2b3(0x1c0)+_0x152c43+'\x20\x20'+a73_0x30e558[_0x5de2b3(0x17f)]('('+_0x646c2f[_0x5de2b3(0x1d0)][_0x5de2b3(0x1ca)]+')'));const _0x4aa543=_0x646c2f['accessKey'][_0x5de2b3(0x1ce)]?a73_0x30e558[_0x5de2b3(0x17e)]('(set,\x20length='+_0x646c2f[_0x5de2b3(0x1af)][_0x5de2b3(0x1ce)][_0x5de2b3(0x182)]+')'):a73_0x30e558['gray']('(none)');console[_0x5de2b3(0x1cc)](_0x5de2b3(0x198)+_0x4aa543+'\x20\x20'+a73_0x30e558[_0x5de2b3(0x17f)]('('+_0x646c2f[_0x5de2b3(0x1af)][_0x5de2b3(0x1ca)]+')'));}}console[_0x5de2b3(0x1cc)](),console[_0x5de2b3(0x1cc)](a73_0x30e558['bold'](_0x5de2b3(0x1ba))),console[_0x5de2b3(0x1cc)](a73_0x30e558['gray'](_0x5de2b3(0x194)[_0x5de2b3(0x191)](0x1e))),console[_0x5de2b3(0x1cc)](_0x5de2b3(0x19b)+getApiDomain()),console[_0x5de2b3(0x1cc)](_0x5de2b3(0x192)+getUserDomain()),console[_0x5de2b3(0x1cc)](_0x5de2b3(0x1c6)+getRuntimeDomain()),console[_0x5de2b3(0x1cc)](),console['log'](a73_0x30e558['bold'](_0x5de2b3(0x1bc))),console[_0x5de2b3(0x1cc)](a73_0x30e558[_0x5de2b3(0x17f)]('\x20\x20─'[_0x5de2b3(0x191)](0x1e)));if(_0x52fda9){const _0x30d176=await getIsSessionValid();console['log'](_0x5de2b3(0x188)+(_0x30d176?a73_0x30e558[_0x5de2b3(0x17e)]('✓\x20Valid'):a73_0x30e558[_0x5de2b3(0x18d)](_0x5de2b3(0x1a0))));}else console[_0x5de2b3(0x1cc)](_0x5de2b3(0x188)+a73_0x30e558['red']('✗\x20Not\x20logged\x20in'));return console[_0x5de2b3(0x1cc)](),{'ok':!![]};}export const doctorDefinition={'service':a73_0x162bd3(0x185),'command':a73_0x162bd3(0x1aa),'description':a73_0x162bd3(0x186),'risk':a73_0x162bd3(0x19a),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
function a73_0x2425(){const _0x408a4e=['appCode','\x20←\x20current','\x20(default)','accessKey','repeat','(set,\x20length=','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','format','arch','keys','env','appcode','(default:\x20','defaultApp','1868zhhfaD','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','apiDir','missing','bold','5207176HWBRow','(set\x20via\x20file,\x20length=','\x20\x20Apps','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','\x20\x20Auth','586Tecrex','doctor','gray','cookie','\x20\x20Config\x20Files','empty','3snLoIe','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','value','✓\x20Valid','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','9538235CeqvfU','verbose','25405290rlNhuW','source','status','log','8844312GPYseE','100700sKzXiY','(not\x20found)','platform','apps','(not\x20set)','padEnd','check','(none)','red','green','\x20\x20Merged\x20Config','unknown','344SsALZl','✗\x20Expired','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','8703oioAXT','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','Project','length','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','raw','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','currentApp','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','slice','yellow'];a73_0x2425=function(){return _0x408a4e;};return a73_0x2425();}const a73_0x56213c=a73_0x19ff;(function(_0x575ffc,_0x5c1dd4){const _0x4b1eb9=a73_0x19ff,_0x1926e0=_0x575ffc();while(!![]){try{const _0x393565=parseInt(_0x4b1eb9(0x213))/0x1*(-parseInt(_0x4b1eb9(0x220))/0x2)+parseInt(_0x4b1eb9(0x226))/0x3*(-parseInt(_0x4b1eb9(0x219))/0x4)+-parseInt(_0x4b1eb9(0x1e1))/0x5+parseInt(_0x4b1eb9(0x1e0))/0x6+-parseInt(_0x4b1eb9(0x1da))/0x7+parseInt(_0x4b1eb9(0x1ed))/0x8*(-parseInt(_0x4b1eb9(0x1f1))/0x9)+parseInt(_0x4b1eb9(0x1dc))/0xa;if(_0x393565===_0x5c1dd4)break;else _0x1926e0['push'](_0x1926e0['shift']());}catch(_0x57dba4){_0x1926e0['push'](_0x1926e0['shift']());}}}(a73_0x2425,0xb4f11));import a73_0x49252a 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(_0x20f93a){const _0x51de12=a73_0x19ff,_0x553cd4=GIT_COMMIT!==_0x51de12(0x1ec)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x51de12(0x200)](0x0,0xa)+')':VERSION,_0x5eeaef=buildConfigFromFlags({}),_0x49a562=getCookie();console[_0x51de12(0x1df)](),console[_0x51de12(0x1df)](a73_0x49252a['bold'](CLI_BIN_NAME+'\x20doctor')),console[_0x51de12(0x1df)](a73_0x49252a[_0x51de12(0x222)]('─'[_0x51de12(0x206)](0x32))),console[_0x51de12(0x1df)](_0x51de12(0x1fc)+_0x553cd4),console[_0x51de12(0x1df)](_0x51de12(0x1f2)+process['version']),console[_0x51de12(0x1df)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x51de12(0x1e3)]+'\x20'+process[_0x51de12(0x20d)]),console['log'](),console[_0x51de12(0x1df)](a73_0x49252a[_0x51de12(0x218)](_0x51de12(0x224))),console[_0x51de12(0x1df)](a73_0x49252a[_0x51de12(0x222)](_0x51de12(0x1f3)[_0x51de12(0x206)](0x1e)));const _0x2cd721=getGlobalConfigPath(),_0x428053=getProjectConfigPath();console[_0x51de12(0x1df)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2cd721||a73_0x49252a[_0x51de12(0x222)](_0x51de12(0x1e2)))),console['log'](_0x51de12(0x21d)+(_0x428053||a73_0x49252a[_0x51de12(0x222)](_0x51de12(0x1e2)))),console['log'](),console[_0x51de12(0x1df)](a73_0x49252a[_0x51de12(0x218)]('\x20\x20Config\x20JSON')),console['log'](a73_0x49252a[_0x51de12(0x222)]('\x20\x20─'['repeat'](0x1e)));const _0x97b8bf=(_0xaa0d04,_0x58fdab)=>{const _0x2f257b=_0x51de12;if(!_0x58fdab){console['log']('\x20\x20'+_0xaa0d04[_0x2f257b(0x1e6)](0x11)+'\x20'+a73_0x49252a[_0x2f257b(0x222)]('(no\x20file)'));return;}const _0x48a3db=inspectCliConfigJsonFile(_0x58fdab);if(_0x48a3db[_0x2f257b(0x1de)]==='ok')console[_0x2f257b(0x1df)]('\x20\x20'+_0xaa0d04[_0x2f257b(0x1e6)](0x11)+'\x20'+a73_0x49252a[_0x2f257b(0x1ea)](_0x2f257b(0x20b)));else{if(_0x48a3db[_0x2f257b(0x1de)]===_0x2f257b(0x225))console['log']('\x20\x20'+_0xaa0d04[_0x2f257b(0x1e6)](0x11)+'\x20'+a73_0x49252a[_0x2f257b(0x201)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x48a3db[_0x2f257b(0x1de)]===_0x2f257b(0x217)?console['log']('\x20\x20'+_0xaa0d04[_0x2f257b(0x1e6)](0x11)+'\x20'+a73_0x49252a[_0x2f257b(0x222)](_0x2f257b(0x21e))):(console[_0x2f257b(0x1df)]('\x20\x20'+_0xaa0d04[_0x2f257b(0x1e6)](0x11)+'\x20'+a73_0x49252a[_0x2f257b(0x1e9)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''[_0x2f257b(0x1e6)](0x11)+'\x20'+a73_0x49252a[_0x2f257b(0x1e9)](_0x48a3db['message'])));}};_0x97b8bf(_0x51de12(0x1ff),_0x2cd721),_0x97b8bf(_0x51de12(0x1f7),_0x428053),console[_0x51de12(0x1df)](),console['log'](a73_0x49252a['bold'](_0x51de12(0x1eb))),console['log'](a73_0x49252a[_0x51de12(0x222)](_0x51de12(0x1f3)[_0x51de12(0x206)](0x1e))),console[_0x51de12(0x1df)](_0x51de12(0x1f9)+(_0x5eeaef[_0x51de12(0x202)]||a73_0x49252a[_0x51de12(0x1e9)](_0x51de12(0x1e5)))),console['log'](_0x51de12(0x208)+_0x5eeaef[_0x51de12(0x20f)]),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5eeaef['locale']),console[_0x51de12(0x1df)](_0x51de12(0x209)+_0x5eeaef[_0x51de12(0x216)]),console[_0x51de12(0x1df)](_0x51de12(0x1d8)+(_0x5eeaef['defaultApp']||a73_0x49252a['gray']('(none)'))),console[_0x51de12(0x1df)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x5eeaef[_0x51de12(0x1fd)]||a73_0x49252a[_0x51de12(0x222)]('(none)'))),console[_0x51de12(0x1df)](_0x51de12(0x1d9)+(_0x5eeaef['explicitAppName']||a73_0x49252a[_0x51de12(0x222)](_0x51de12(0x1e8)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5eeaef['format']||a73_0x49252a[_0x51de12(0x222)](_0x51de12(0x211)+DEFAULT_CONFIG_VALUES[_0x51de12(0x20c)]+')'))),console[_0x51de12(0x1df)](_0x51de12(0x227)+(_0x5eeaef['pageSize']??a73_0x49252a['gray']('(default)'))),console[_0x51de12(0x1df)](_0x51de12(0x1f6)+_0x5eeaef[_0x51de12(0x1fa)]),console[_0x51de12(0x1df)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5eeaef[_0x51de12(0x1db)]),console[_0x51de12(0x1df)](_0x51de12(0x1fe)+(_0x5eeaef[_0x51de12(0x223)]?a73_0x49252a[_0x51de12(0x1ea)]('(set,\x20length='+_0x5eeaef['cookie']['length']+')'):_0x49a562?a73_0x49252a[_0x51de12(0x1ea)](_0x51de12(0x21a)+_0x49a562[_0x51de12(0x1f8)]+')'):a73_0x49252a[_0x51de12(0x222)](_0x51de12(0x1e8))));const _0x5af424=Object[_0x51de12(0x20e)](_0x5eeaef[_0x51de12(0x1e4)]);if(_0x5af424['length']>0x0){console['log'](),console[_0x51de12(0x1df)](a73_0x49252a['bold'](_0x51de12(0x21b))),console[_0x51de12(0x1df)](a73_0x49252a[_0x51de12(0x222)](_0x51de12(0x1f3)[_0x51de12(0x206)](0x1e)));for(const _0x38eb04 of _0x5af424){const _0x1c9968=_0x5eeaef[_0x51de12(0x1e4)][_0x38eb04],_0xbec67e=_0x38eb04===_0x5eeaef[_0x51de12(0x212)],_0x1ddaf5=_0x38eb04===_0x5eeaef[_0x51de12(0x1fd)],_0x241536=_0x1ddaf5?a73_0x49252a[_0x51de12(0x1ea)](_0x51de12(0x203)):'',_0x23ee32=_0xbec67e?_0x51de12(0x204):'';console[_0x51de12(0x1df)]('\x20\x20'+_0x38eb04+_0x23ee32+_0x241536),console[_0x51de12(0x1df)](_0x51de12(0x1f5)+_0x1c9968[_0x51de12(0x210)]);const _0x280ec9=buildAppDoctorFields(_0x1c9968,{'env':_0x5eeaef[_0x51de12(0x20f)],'apiDir':_0x5eeaef[_0x51de12(0x1fb)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x51de12(0x216)],'cookie':_0x5eeaef['cookie']||_0x49a562||undefined,'accessKey':_0x5eeaef[_0x51de12(0x205)]});console[_0x51de12(0x1df)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x280ec9[_0x51de12(0x20f)][_0x51de12(0x228)]+'\x20\x20'+a73_0x49252a['gray']('('+_0x280ec9[_0x51de12(0x20f)][_0x51de12(0x1dd)]+')')),console['log']('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x280ec9[_0x51de12(0x216)][_0x51de12(0x228)]+'\x20\x20'+a73_0x49252a['gray']('('+_0x280ec9[_0x51de12(0x216)][_0x51de12(0x1dd)]+')'));const _0x4c2b6f=_0x280ec9[_0x51de12(0x223)][_0x51de12(0x228)]?a73_0x49252a[_0x51de12(0x1ea)]('(set,\x20length='+_0x280ec9['cookie'][_0x51de12(0x228)]['length']+')'):a73_0x49252a[_0x51de12(0x222)](_0x51de12(0x1e8));console[_0x51de12(0x1df)](_0x51de12(0x20a)+_0x4c2b6f+'\x20\x20'+a73_0x49252a[_0x51de12(0x222)]('('+_0x280ec9[_0x51de12(0x223)][_0x51de12(0x1dd)]+')'));const _0x4f6acc=_0x280ec9[_0x51de12(0x205)]['value']?a73_0x49252a[_0x51de12(0x1ea)](_0x51de12(0x207)+_0x280ec9['accessKey']['value'][_0x51de12(0x1f8)]+')'):a73_0x49252a[_0x51de12(0x222)](_0x51de12(0x1e8));console[_0x51de12(0x1df)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x4f6acc+'\x20\x20'+a73_0x49252a[_0x51de12(0x222)]('('+_0x280ec9[_0x51de12(0x205)][_0x51de12(0x1dd)]+')'));}}console[_0x51de12(0x1df)](),console[_0x51de12(0x1df)](a73_0x49252a[_0x51de12(0x218)]('\x20\x20API\x20Endpoints')),console[_0x51de12(0x1df)](a73_0x49252a[_0x51de12(0x222)](_0x51de12(0x1f3)['repeat'](0x1e))),console[_0x51de12(0x1df)](_0x51de12(0x1ef)+getApiDomain()),console['log'](_0x51de12(0x214)+getUserDomain()),console[_0x51de12(0x1df)](_0x51de12(0x21c)+getRuntimeDomain()),console['log'](),console[_0x51de12(0x1df)](a73_0x49252a[_0x51de12(0x218)](_0x51de12(0x21f))),console[_0x51de12(0x1df)](a73_0x49252a[_0x51de12(0x222)](_0x51de12(0x1f3)['repeat'](0x1e)));if(_0x49a562){const _0x6bdc60=await getIsSessionValid();console['log'](_0x51de12(0x1f0)+(_0x6bdc60?a73_0x49252a[_0x51de12(0x1ea)](_0x51de12(0x229)):a73_0x49252a['red'](_0x51de12(0x1ee))));}else console[_0x51de12(0x1df)](_0x51de12(0x1f0)+a73_0x49252a[_0x51de12(0x1e9)](_0x51de12(0x215)));return console[_0x51de12(0x1df)](),{'ok':!![]};}function a73_0x19ff(_0x47ba93,_0x42f45b){_0x47ba93=_0x47ba93-0x1d8;const _0x24256b=a73_0x2425();let _0x19ffa3=_0x24256b[_0x47ba93];return _0x19ffa3;}export const doctorDefinition={'service':a73_0x56213c(0x221),'command':a73_0x56213c(0x1e7),'description':a73_0x56213c(0x1f4),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a74_0x34495f=a74_0x155a;function a74_0x155a(_0x52b9b4,_0x15b492){_0x52b9b4=_0x52b9b4-0xf9;const _0x5f2dca=a74_0x5f2d();let _0x155adc=_0x5f2dca[_0x52b9b4];return _0x155adc;}(function(_0x5957f7,_0x47e697){const _0x32a066=a74_0x155a,_0x46247b=_0x5957f7();while(!![]){try{const _0x495c53=parseInt(_0x32a066(0x11d))/0x1+parseInt(_0x32a066(0x111))/0x2+parseInt(_0x32a066(0x10f))/0x3+parseInt(_0x32a066(0x124))/0x4+parseInt(_0x32a066(0x112))/0x5+parseInt(_0x32a066(0x11f))/0x6+parseInt(_0x32a066(0x104))/0x7*(-parseInt(_0x32a066(0x121))/0x8);if(_0x495c53===_0x47e697)break;else _0x46247b['push'](_0x46247b['shift']());}catch(_0x298e0f){_0x46247b['push'](_0x46247b['shift']());}}}(a74_0x5f2d,0xe8ab6));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';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x53195d){return{'appCode':_0x53195d,'appName':_0x53195d};}function writeInitConfig(_0x582d34,_0x51ebd3,_0x2f6e35){const _0x5a435f=a74_0x155a,_0x26a682=resolveWriteConfigPath(_0x582d34),_0x508df8=buildCanonicalProjectConfig({},{'appCodes':_0x51ebd3[_0x5a435f(0xfa)](_0xfd81fb=>_0xfd81fb[_0x5a435f(0x11a)]),'env':_0x2f6e35,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x5a435f(0x10b)]()}});writeConfigFile(_0x26a682,_0x508df8);const _0x4ed03c=_0x582d34===_0x5a435f(0x116)?_0x5a435f(0x116):_0x5a435f(0x118);console[_0x5a435f(0x109)](_0x5a435f(0x106)+_0x4ed03c+_0x5a435f(0x123)),console[_0x5a435f(0x109)](_0x5a435f(0x10d)+_0x51ebd3[_0x5a435f(0xfa)](_0x11f9aa=>_0x11f9aa[_0x5a435f(0x11a)])[_0x5a435f(0x100)](',\x20')),console[_0x5a435f(0x109)]('\x20\x20Default:\x20'+_0x508df8['defaultApp']),console[_0x5a435f(0x109)]('\x20\x20Env:\x20'+_0x508df8[_0x5a435f(0xfd)]),console[_0x5a435f(0x109)](_0x5a435f(0x120)+_0x26a682);}async function runSmartInit(_0xd464ef){const _0xe04c7=a74_0x155a,_0x55f1b6=process[_0xe04c7(0x102)](),_0x529aec=_0xd464ef[_0xe04c7(0x105)](_0xe04c7(0x116))?_0xe04c7(0x116):_0xe04c7(0x118),_0x2923de=_0xd464ef[_0xe04c7(0x122)]('env')||'production',_0xcf5f6d=_0xd464ef[_0xe04c7(0x122)]('appcode')||undefined,_0x3f6a83=_0xd464ef[_0xe04c7(0x105)](_0xe04c7(0x118));if(_0x3f6a83){const {initConfig:_0x44a936}=await import(_0xe04c7(0xfb));return _0x44a936({'appcode':_0xcf5f6d,'env':_0x2923de,'autoYes':_0xd464ef[_0xe04c7(0x105)](_0xe04c7(0x115))});}if(_0x529aec===_0xe04c7(0x118)){const _0x50bcf7=existsSync(resolve(_0x55f1b6,NEW_CONFIG_NAME)),_0x27fc04=LEGACY_CONFIG_NAMES[_0xe04c7(0x108)](_0x492744=>existsSync(resolve(_0x55f1b6,_0x492744)));if(_0x27fc04&&!_0x50bcf7)return console[_0xe04c7(0x109)]('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0xd464ef[_0xe04c7(0x119)],{'yes':_0xd464ef[_0xe04c7(0x105)](_0xe04c7(0x115))});if(_0x50bcf7)throw CliErrors[_0xe04c7(0x107)](_0xe04c7(0xfc),'Use\x20`'+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0xcf5f6d){const _0x473d25=validateAppcode(_0xcf5f6d);if(!_0x473d25[_0xe04c7(0x11b)])throw CliErrors[_0xe04c7(0x107)](_0x473d25[_0xe04c7(0xfe)]);writeInitConfig(_0x529aec,[syntheticApp(_0xcf5f6d)],_0x2923de);return;}if(_0xd464ef[_0xe04c7(0x119)])throw CliErrors[_0xe04c7(0x10e)](_0xe04c7(0x103),_0xe04c7(0x110)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x300806=getCookie(),_0x1bc3aa=await selectMultipleApps(_0x300806),_0xf5b327=_0x1bc3aa===_0xe04c7(0x117)?[syntheticApp(await promptCustomAppcode())]:_0x1bc3aa;writeInitConfig(_0x529aec,_0xf5b327,_0x2923de);}const initFlags=[{'name':a74_0x34495f(0x116),'type':a74_0x34495f(0x10c),'description':a74_0x34495f(0x101),'default':![]},{'name':a74_0x34495f(0xfd),'type':a74_0x34495f(0x10a),'description':'Target\x20environment','default':a74_0x34495f(0x114),'enum':[...RABETBASE_ENV_VALUES]},{'name':a74_0x34495f(0x103),'type':a74_0x34495f(0x10a),'description':a74_0x34495f(0x11c)},{'name':a74_0x34495f(0x118),'type':'boolean','description':a74_0x34495f(0x11e),'default':![]},{'name':'yes','type':a74_0x34495f(0x10c),'description':a74_0x34495f(0xf9),'default':![]}];function a74_0x5f2d(){const _0x46cc13=['\x0a✓\x20Successfully\x20initialized\x20','validation','some','log','string','toLocaleString','boolean','\x20\x20Apps:\x20','flagMissing','5570568iSyOaS','Usage:\x20','1301684lMuLYD','6823905lYruLd','run','production','yes','global','custom','project','nonInteractive','appCode','valid','App\x20code\x20to\x20initialize\x20with','1148467qWnrJB','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','1284360Ztrhtt','\x20\x20Config:\x20','16bTuWOR','str','\x20config','5954424ixbLmy','Auto-confirm\x20prompts','map','../../commands/project/init.js','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','env','message','init','join','Write\x20to\x20global\x20config\x20instead\x20of\x20project','cwd','appcode','20197093EmUtaT','bool'];a74_0x5f2d=function(){return _0x46cc13;};return a74_0x5f2d();}export const initDefinitions=[{'service':a74_0x34495f(0xff),'command':a74_0x34495f(0x113),'description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x3ac0fc){return await runSmartInit(_0x3ac0fc),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5919ba,_0x448ee6){const _0x138640=a75_0x5965,_0x1e9b40=_0x5919ba();while(!![]){try{const _0x3762f6=-parseInt(_0x138640(0x11e))/0x1+parseInt(_0x138640(0x114))/0x2+-parseInt(_0x138640(0x11c))/0x3*(parseInt(_0x138640(0x11a))/0x4)+-parseInt(_0x138640(0x11b))/0x5*(parseInt(_0x138640(0x11d))/0x6)+-parseInt(_0x138640(0x115))/0x7*(-parseInt(_0x138640(0x116))/0x8)+parseInt(_0x138640(0x117))/0x9*(-parseInt(_0x138640(0x118))/0xa)+parseInt(_0x138640(0x119))/0xb;if(_0x3762f6===_0x448ee6)break;else _0x1e9b40['push'](_0x1e9b40['shift']());}catch(_0x404262){_0x1e9b40['push'](_0x1e9b40['shift']());}}}(a75_0x19a2,0x1a6e1));import{issueReport}from'../../commands/issue/report.js';function a75_0x5965(_0x408ccb,_0x55bd02){_0x408ccb=_0x408ccb-0x114;const _0x19a2c9=a75_0x19a2();let _0x59652b=_0x19a2c9[_0x408ccb];return _0x59652b;}function a75_0x19a2(){const _0x210949=['81724sjwLAW','394394PoJNrB','14nYsFPP','678416nRCrwT','15894vZLjXR','100MfHKqd','595012IOOdtY','4fToJdJ','5CXLvOO','359277dGIMsX','560958TuqJPV'];a75_0x19a2=function(){return _0x210949;};return a75_0x19a2();}export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0xdc292a=a76_0x2163;function a76_0x2163(_0x73245e,_0x5c343b){_0x73245e=_0x73245e-0x194;const _0x4207f3=a76_0x4207();let _0x2163da=_0x4207f3[_0x73245e];return _0x2163da;}(function(_0xa9c985,_0x43637e){const _0x24a274=a76_0x2163,_0x4d7591=_0xa9c985();while(!![]){try{const _0x226bc4=-parseInt(_0x24a274(0x194))/0x1*(parseInt(_0x24a274(0x1a9))/0x2)+parseInt(_0x24a274(0x1a4))/0x3+-parseInt(_0x24a274(0x1af))/0x4*(-parseInt(_0x24a274(0x19b))/0x5)+-parseInt(_0x24a274(0x19d))/0x6*(-parseInt(_0x24a274(0x196))/0x7)+parseInt(_0x24a274(0x1a5))/0x8*(parseInt(_0x24a274(0x198))/0x9)+-parseInt(_0x24a274(0x195))/0xa+parseInt(_0x24a274(0x1bf))/0xb*(-parseInt(_0x24a274(0x1ac))/0xc);if(_0x226bc4===_0x43637e)break;else _0x4d7591['push'](_0x4d7591['shift']());}catch(_0x166a77){_0x4d7591['push'](_0x4d7591['shift']());}}}(a76_0x4207,0x79bb6));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a76_0x4207(){const _0x3e6be5=['Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','Platform\x20issue\x20reported','cwd','422839PckfmX','5862820gWiGKo','28RAfcEC','length','198fFhloA','title','apiError','205zoEFCq','descriptionSource','1150788fjinzT','Issue\x20description\x20file\x20is\x20empty:\x20','inline','write','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','description-file','file','2254023FeGwxH','10616Dlzdoy','otel://','descriptionFile:\x20','Failed\x20to\x20report\x20platform\x20issue:\x20','2ZkEiZQ','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','73092MxJCsf','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','trim','53740kMmkFW','issue','str','File\x20not\x20found:\x20','join','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','report','issue.title','validation','filter','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionFilePath','Issue\x20description\x20cannot\x20be\x20empty.','string','issue.description','description','1067nOHrSu','message','utf8'];a76_0x4207=function(){return _0x3e6be5;};return a76_0x4207();}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a76_0xdc292a(0x1a2);export const issueReport={'service':a76_0xdc292a(0x1b0),'command':a76_0xdc292a(0x1b5),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':a76_0xdc292a(0x1a0),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a76_0xdc292a(0x199),'type':a76_0xdc292a(0x1bc),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':a76_0xdc292a(0x1be),'type':a76_0xdc292a(0x1bc),'description':a76_0xdc292a(0x1aa)},{'name':DESCRIPTION_FILE_FLAG,'type':a76_0xdc292a(0x1bc),'description':a76_0xdc292a(0x1ad)}],async 'validate'(_0x17ef36){const _0x2d500b=a76_0xdc292a,_0x5748f7=_0x17ef36[_0x2d500b(0x1b1)](_0x2d500b(0x199))[_0x2d500b(0x1ae)](),_0x5c914c=_0x17ef36[_0x2d500b(0x1b1)](_0x2d500b(0x1be))['trim'](),_0x4b2070=_0x17ef36[_0x2d500b(0x1b1)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x5748f7)throw CliErrors['flagMissing'](_0x2d500b(0x199),_0x2d500b(0x1c2));const _0x1fb618=_0x5c914c[_0x2d500b(0x197)]>0x0,_0x3714b6=_0x4b2070['length']>0x0;if(_0x1fb618===_0x3714b6)throw CliErrors['validation']('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(_0x3714b6){const _0x1ee87e=resolve(process[_0x2d500b(0x1c4)](),_0x4b2070);if(!existsSync(_0x1ee87e))throw CliErrors[_0x2d500b(0x1b7)](_0x2d500b(0x1b2)+_0x1ee87e);}},async 'dryRun'(_0x587f70){const _0x3029c2=a76_0xdc292a,_0x4f1a09=await prepareIssueReport(_0x587f70);return{'method':'POST','url':_0x3029c2(0x1a6)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4f1a09[_0x3029c2(0x199)],'issue.description':_0x4f1a09['description']}},'description':[_0x3029c2(0x1b9),'descriptionSource:\x20'+_0x4f1a09[_0x3029c2(0x19c)],_0x4f1a09[_0x3029c2(0x1ba)]?_0x3029c2(0x1a7)+_0x4f1a09[_0x3029c2(0x1ba)]:null][_0x3029c2(0x1b8)](Boolean)[_0x3029c2(0x1b3)]('\x0a')};},async 'execute'(_0xfe153e){const _0x4b03d8=a76_0xdc292a,_0x7bddae=await prepareIssueReport(_0xfe153e);try{await sendPlatformIssueCollectLog({'title':_0x7bddae[_0x4b03d8(0x199)],'description':_0x7bddae[_0x4b03d8(0x1be)]});}catch(_0x55c7a8){throw CliErrors[_0x4b03d8(0x19a)](_0x4b03d8(0x1a8)+(_0x55c7a8 instanceof Error?_0x55c7a8[_0x4b03d8(0x1c0)]:String(_0x55c7a8)),_0x4b03d8(0x1ab));}return{'ok':!![],'message':_0x4b03d8(0x1c3),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x4b03d8(0x1b6),_0x4b03d8(0x1bd)],'issue':{'title':_0x7bddae[_0x4b03d8(0x199)],'descriptionLength':_0x7bddae[_0x4b03d8(0x1be)][_0x4b03d8(0x197)],'descriptionSource':_0x7bddae['descriptionSource'],..._0x7bddae[_0x4b03d8(0x1ba)]?{'descriptionFile':_0x7bddae['descriptionFilePath']}:{}}}};}};async function prepareIssueReport(_0x43c6b9){const _0x1c4d18=a76_0xdc292a,_0x5c6ebc=_0x43c6b9[_0x1c4d18(0x1b1)](_0x1c4d18(0x199))['trim'](),_0xe0960d=_0x43c6b9[_0x1c4d18(0x1b1)](_0x1c4d18(0x1be)),_0x50cff7=_0x43c6b9[_0x1c4d18(0x1b1)](DESCRIPTION_FILE_FLAG)[_0x1c4d18(0x1ae)]();if(!_0x50cff7){const _0x8af313=_0xe0960d;if(!_0x8af313[_0x1c4d18(0x1ae)]())throw CliErrors[_0x1c4d18(0x1b7)](_0x1c4d18(0x1bb),_0x1c4d18(0x1a1));return{'title':_0x5c6ebc,'description':_0x8af313,'descriptionSource':_0x1c4d18(0x19f)};}const _0x526dc6=resolve(process[_0x1c4d18(0x1c4)](),_0x50cff7),_0x242276=await readFile(_0x526dc6,_0x1c4d18(0x1c1));if(!_0x242276[_0x1c4d18(0x1ae)]())throw CliErrors[_0x1c4d18(0x1b7)](_0x1c4d18(0x19e)+_0x526dc6,_0x1c4d18(0x1b4));return{'title':_0x5c6ebc,'description':_0x242276,'descriptionSource':_0x1c4d18(0x1a3),'descriptionFilePath':_0x526dc6};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a77_0x1582bf=a77_0x27e8;function a77_0xdca6(){const _0x2f8d54=['1389942JPUisT','\x20\x20\x20Time:\x20','240vtusAo','\x20\x20\x20Details:\x20','clear','logs','level','command','warn','3611993kivXll','length','details','7915790Klpwvu','message','log','show','keys','stringify','timestamp','4226068fzUSln','*\x20Lovrabet\x20CLI\x20logs:\x0a','2905cPeVTe','*\x20Logs\x20cleared','toLocaleString','forEach','duration','2556040zVFZmu','readLogs','read','190ktkGcL','\x20\x20\x20Duration:\x20','1998258YeoscC','error','6qBfqDc','View\x20command\x20history\x20logs'];a77_0xdca6=function(){return _0x2f8d54;};return a77_0xdca6();}function a77_0x27e8(_0x4c1134,_0xb1a204){_0x4c1134=_0x4c1134-0x13e;const _0xdca6ff=a77_0xdca6();let _0x27e801=_0xdca6ff[_0x4c1134];return _0x27e801;}(function(_0x5c1bf1,_0x4c4d43){const _0x53ec17=a77_0x27e8,_0x3adddc=_0x5c1bf1();while(!![]){try{const _0x438124=-parseInt(_0x53ec17(0x15a))/0x1*(-parseInt(_0x53ec17(0x13f))/0x2)+-parseInt(_0x53ec17(0x141))/0x3+-parseInt(_0x53ec17(0x158))/0x4+-parseInt(_0x53ec17(0x151))/0x5+parseInt(_0x53ec17(0x143))/0x6*(parseInt(_0x53ec17(0x14e))/0x7)+-parseInt(_0x53ec17(0x15f))/0x8+-parseInt(_0x53ec17(0x145))/0x9*(-parseInt(_0x53ec17(0x147))/0xa);if(_0x438124===_0x4c4d43)break;else _0x3adddc['push'](_0x3adddc['shift']());}catch(_0x35b3aa){_0x3adddc['push'](_0x3adddc['shift']());}}}(a77_0xdca6,0xd5304));import{logger}from'../../utils/logger.js';function printLogs(_0xfc2a13){const _0x4f6634=a77_0x27e8;if(_0xfc2a13[_0x4f6634(0x14f)]===0x0){console[_0x4f6634(0x153)]('*\x20No\x20logs\x20found');return;}console[_0x4f6634(0x153)](_0x4f6634(0x159)),_0xfc2a13[_0x4f6634(0x15d)]((_0x1d871b,_0x34fb59)=>{const _0x25275d=_0x4f6634,_0x5938e1=new Date(_0x1d871b[_0x25275d(0x157)])[_0x25275d(0x15c)]('en-US'),_0x46007e=_0x1d871b['level']==='success'?'√':_0x1d871b[_0x25275d(0x14b)]===_0x25275d(0x142)?'×':_0x1d871b['level']===_0x25275d(0x14d)?'!':'i';console[_0x25275d(0x153)](_0x34fb59+0x1+'.\x20'+_0x46007e+'\x20['+_0x1d871b[_0x25275d(0x14c)]+']\x20'+_0x1d871b[_0x25275d(0x152)]),console[_0x25275d(0x153)](_0x25275d(0x146)+_0x5938e1),_0x1d871b[_0x25275d(0x15e)]&&console[_0x25275d(0x153)](_0x25275d(0x140)+_0x1d871b[_0x25275d(0x15e)]+'ms'),_0x1d871b[_0x25275d(0x150)]&&Object[_0x25275d(0x155)](_0x1d871b['details'])[_0x25275d(0x14f)]>0x0&&console[_0x25275d(0x153)](_0x25275d(0x148)+JSON[_0x25275d(0x156)](_0x1d871b[_0x25275d(0x150)],null,0x2)),console[_0x25275d(0x153)]('');});}export const logsDefinitions=[{'service':a77_0x1582bf(0x14a),'command':a77_0x1582bf(0x154),'description':a77_0x1582bf(0x144),'risk':a77_0x1582bf(0x13e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1badfa){const _0x4bee2b=a77_0x1582bf;return printLogs(logger[_0x4bee2b(0x160)]()),{'ok':!![]};}},{'service':'logs','command':a77_0x1582bf(0x149),'description':'Clear\x20command\x20history\x20logs','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x49bddd){const _0x429acf=a77_0x1582bf;return logger['clearLogs'](),console[_0x429acf(0x153)](_0x429acf(0x15b)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a78_0xc7f4(){const _0x1ec981=['1374559KTkVzX','5136aNRyFR','13888550ElPzxP','375816LpszHG','3828esogRj','2upmmpY','1597680wdoWNP','671nakvqs','8199xpPbpk','21qrFuXm','644076TSrNmx','7415uBrhsw'];a78_0xc7f4=function(){return _0x1ec981;};return a78_0xc7f4();}(function(_0x591ea5,_0x433123){const _0x576880=a78_0x2236,_0x2bb385=_0x591ea5();while(!![]){try{const _0x344a52=parseInt(_0x576880(0x119))/0x1*(-parseInt(_0x576880(0x11e))/0x2)+parseInt(_0x576880(0x11f))/0x3+-parseInt(_0x576880(0x11d))/0x4*(parseInt(_0x576880(0x118))/0x5)+parseInt(_0x576880(0x117))/0x6*(parseInt(_0x576880(0x116))/0x7)+-parseInt(_0x576880(0x11a))/0x8*(parseInt(_0x576880(0x121))/0x9)+parseInt(_0x576880(0x11b))/0xa+-parseInt(_0x576880(0x120))/0xb*(-parseInt(_0x576880(0x11c))/0xc);if(_0x344a52===_0x433123)break;else _0x2bb385['push'](_0x2bb385['shift']());}catch(_0xa82864){_0x2bb385['push'](_0x2bb385['shift']());}}}(a78_0xc7f4,0xbd41f));import{menuSync}from'../../commands/menu/sync.js';function a78_0x2236(_0x2599f5,_0x5b2a5d){_0x2599f5=_0x2599f5-0x116;const _0xc7f45f=a78_0xc7f4();let _0x22360e=_0xc7f45f[_0x2599f5];return _0x22360e;}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x288ffc,_0x16507d){const _0x2a5c9d=a79_0x3114,_0x4ab6b0=_0x288ffc();while(!![]){try{const _0x43cb5d=-parseInt(_0x2a5c9d(0x173))/0x1+parseInt(_0x2a5c9d(0x174))/0x2+-parseInt(_0x2a5c9d(0x17c))/0x3+parseInt(_0x2a5c9d(0x188))/0x4*(parseInt(_0x2a5c9d(0x17a))/0x5)+-parseInt(_0x2a5c9d(0x17f))/0x6*(parseInt(_0x2a5c9d(0x172))/0x7)+-parseInt(_0x2a5c9d(0x175))/0x8+parseInt(_0x2a5c9d(0x16f))/0x9*(parseInt(_0x2a5c9d(0x16d))/0xa);if(_0x43cb5d===_0x16507d)break;else _0x4ab6b0['push'](_0x4ab6b0['shift']());}catch(_0x14f22c){_0x4ab6b0['push'](_0x4ab6b0['shift']());}}}(a79_0x193a,0xb0f91));function strWidth(_0x375cb7){const _0x4d9e44=a79_0x3114;let _0x39d964=0x0;for(const _0x1978ac of _0x375cb7){_0x39d964+=/[\u4e00-\u9fa5]/[_0x4d9e44(0x176)](_0x1978ac)?0x2:0x1;}return _0x39d964;}function padRight(_0x1e9ef7,_0x440e7e){const _0x4f2c5b=a79_0x3114,_0x5f1993=strWidth(_0x1e9ef7);return _0x1e9ef7+'\x20'[_0x4f2c5b(0x185)](Math[_0x4f2c5b(0x17d)](0x0,_0x440e7e-_0x5f1993));}function a79_0x193a(){const _0x262c21=['push','label','repeat','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','(unchanged)','33380mOSzrP','1676610tZAQHQ','Menu\x20Name','72LOMWxk','path','Platform','474005jmzFJG','169287rSXDGK','1131370byOPAG','2999840YACEqh','test','\x20\x20\x20\x20CSS:\x20','\x20\x20Affected\x20menus:\x20','length','350goqVBE','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','3056490pRhrxt','max','join','18QUihge','showOnline','\x20\x20\x20\x20JS:\x20\x20','map'];a79_0x193a=function(){return _0x262c21;};return a79_0x193a();}function a79_0x3114(_0x213a07,_0x2e8674){_0x213a07=_0x213a07-0x16d;const _0x193ab5=a79_0x193a();let _0x311443=_0x193ab5[_0x213a07];return _0x311443;}export function renderCompareTable(_0x5c0e2d,_0x37f90b={}){const _0x3fff13=a79_0x3114;if(_0x5c0e2d[_0x3fff13(0x179)]===0x0)return'';const _0x4fabea=_0x37f90b[_0x3fff13(0x180)]??!![],_0x56b596=Math['max'](0x1e,..._0x5c0e2d[_0x3fff13(0x182)](_0x3de104=>strWidth(_0x3de104[_0x3fff13(0x184)]))),_0x3e31d0=0x4,_0x33f987=[],_0x2a2554='\x20\x20'+padRight(_0x3fff13(0x16e),_0x56b596),_0x1d3801=padRight('Local',_0x3e31d0),_0x336e71=_0x4fabea?'\x20\x20'+padRight(_0x3fff13(0x171),_0x3e31d0):'';_0x33f987[_0x3fff13(0x183)](_0x2a2554+'\x20\x20'+_0x1d3801+(_0x4fabea?_0x336e71:'')),_0x33f987[_0x3fff13(0x183)]('\x20\x20'+'─'[_0x3fff13(0x185)](_0x56b596)+'\x20\x20'+'─'['repeat'](_0x3e31d0)+(_0x4fabea?'\x20\x20'+'─'[_0x3fff13(0x185)](_0x3e31d0):''));for(const _0x1af663 of _0x5c0e2d){const _0x58249c=padRight(_0x1af663[_0x3fff13(0x184)],_0x56b596),_0x79d6bb=_0x1af663['local']?'✓':'✗',_0xdc65a9=padRight(_0x79d6bb,_0x3e31d0);let _0x383378='\x20\x20'+_0x58249c+'\x20\x20'+_0xdc65a9;if(_0x4fabea){const _0x557068=_0x1af663['online']?'✓':'✗';_0x383378+='\x20\x20'+padRight(_0x557068,_0x3e31d0);}_0x33f987[_0x3fff13(0x183)](_0x383378);}return _0x33f987[_0x3fff13(0x17e)]('\x0a');}export function renderSyncSummary(_0x3b646b,_0x19c530){const _0x15693b=a79_0x3114;if(_0x3b646b[_0x15693b(0x179)]===0x0)return _0x19c530?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':'\x20\x20No\x20pages\x20to\x20sync.';const _0x2871b0=['\x20\x20'+_0x3b646b[_0x15693b(0x179)]+_0x15693b(0x186)];for(const _0x2c8011 of _0x3b646b){_0x2871b0[_0x15693b(0x183)]('\x20\x20\x20\x20•\x20'+_0x2c8011[_0x15693b(0x184)]+'\x20('+_0x2c8011[_0x15693b(0x170)]+')');}return _0x2871b0[_0x15693b(0x17e)]('\x0a');}export function renderUpdateSummary(_0x24a214,_0x479cce){const _0x430780=a79_0x3114;if(_0x24a214[_0x430780(0x179)]===0x0)return _0x430780(0x17b);const _0xb84cea=['\x20\x20'+_0x24a214[_0x430780(0x179)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x430780(0x181)+(_0x479cce[0x0]??_0x430780(0x187)),_0x430780(0x177)+(_0x479cce[0x1]??'(unchanged)'),'',_0x430780(0x178)+_0x24a214['join'](',\x20')];return _0xb84cea[_0x430780(0x17e)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2dd8c7,_0x212c5e){var _0xe6a653=a80_0x5a8f,_0x5f91df=_0x2dd8c7();while(!![]){try{var _0x5f9140=parseInt(_0xe6a653(0xd1))/0x1+parseInt(_0xe6a653(0xcf))/0x2*(-parseInt(_0xe6a653(0xd3))/0x3)+parseInt(_0xe6a653(0xd6))/0x4+parseInt(_0xe6a653(0xd4))/0x5*(-parseInt(_0xe6a653(0xd5))/0x6)+-parseInt(_0xe6a653(0xd2))/0x7+parseInt(_0xe6a653(0xd7))/0x8+parseInt(_0xe6a653(0xd0))/0x9*(parseInt(_0xe6a653(0xd8))/0xa);if(_0x5f9140===_0x212c5e)break;else _0x5f91df['push'](_0x5f91df['shift']());}catch(_0x3f5009){_0x5f91df['push'](_0x5f91df['shift']());}}}(a80_0x138b,0x2804e));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';function a80_0x5a8f(_0x5574eb,_0xe3aa36){_0x5574eb=_0x5574eb-0xcf;var _0x138b1d=a80_0x138b();var _0x5a8fdb=_0x138b1d[_0x5574eb];return _0x5a8fdb;}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_0x138b(){var _0x387919=['6261VeQhoC','87865wKkhQW','6EOufai','606980AJTzTp','3640MjpBUK','3910bsBbYL','214qBIxOK','2250VclKoN','197260zHQykk','296870HluzIG'];a80_0x138b=function(){return _0x387919;};return a80_0x138b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x196d01,_0x2bff36){const _0x39bd7e=a81_0x29ca,_0x48f68f=_0x196d01();while(!![]){try{const _0x5dd4c9=-parseInt(_0x39bd7e(0x15f))/0x1+-parseInt(_0x39bd7e(0x163))/0x2*(-parseInt(_0x39bd7e(0x155))/0x3)+parseInt(_0x39bd7e(0x169))/0x4*(-parseInt(_0x39bd7e(0x14c))/0x5)+-parseInt(_0x39bd7e(0x14a))/0x6*(parseInt(_0x39bd7e(0x152))/0x7)+-parseInt(_0x39bd7e(0x15c))/0x8+-parseInt(_0x39bd7e(0x142))/0x9*(parseInt(_0x39bd7e(0x15b))/0xa)+parseInt(_0x39bd7e(0x159))/0xb;if(_0x5dd4c9===_0x2bff36)break;else _0x48f68f['push'](_0x48f68f['shift']());}catch(_0x2a1535){_0x48f68f['push'](_0x48f68f['shift']());}}}(a81_0x4a2b,0x2b286));import a81_0x14e104 from'chalk';function a81_0x4a2b(){const _0x100b73=['stdin','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','307486HBJKgE','\x20\x20CSS\x20URL:','No\x20local\x20pages\x20found.','CSS\x20URL\x20checked','158332dYQUPs','JS\x20URL\x20checked','\x20\x20JS\x20URL:','CSS\x20URL\x20check\x20failed','[new]','cancelled','96QgHjgx','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','label','error','start','cyan','Cancelled.','name','ExitPromptError','[already\x20on\x20platform]','205533JRVsUf','length','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','filter','test','No\x20menus\x20selected.','has','succeed','156GfxZjF','map','155IbaUDp','catch','red','isTTY','includes','trim','43673nfuuei','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','6OiPzDg','path','\x20\x20Checking\x20CSS\x20URL\x20reachability...','\x20\x20Checking\x20JS\x20URL\x20reachability...','9377401TtUItX','fail','80MiZhWV','1447272lYMFxM'];a81_0x4a2b=function(){return _0x100b73;};return a81_0x4a2b();}import{checkbox,input,confirm}from'@inquirer/prompts';import a81_0x322b39 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x52b131){const _0x233475=a81_0x29ca;return _0x52b131[_0x233475(0x14d)](_0x2e7525=>{const _0x261a09=_0x233475;if(_0x2e7525?.[_0x261a09(0x13f)]===_0x261a09(0x140))throw CliErrors[_0x261a09(0x168)]('Cancelled.');throw _0x2e7525;});}export function startSpinner(_0x4997ac){const _0x1ccac3=a81_0x29ca;return a81_0x322b39({'text':_0x4997ac,'color':_0x1ccac3(0x16e)})[_0x1ccac3(0x16d)]();}export function stopSpinner(_0x5a7b77,_0xb93606,_0x1c0648){const _0x680291=a81_0x29ca;_0x1c0648?_0x5a7b77[_0x680291(0x149)](_0xb93606):_0x5a7b77[_0x680291(0x15a)](_0xb93606);}function a81_0x29ca(_0x2324a6,_0x18a76a){_0x2324a6=_0x2324a6-0x13f;const _0x4a2b97=a81_0x4a2b();let _0x29ca54=_0x4a2b97[_0x2324a6];return _0x29ca54;}export async function askConfirm(_0x122e43){return onCancel(confirm({'message':_0x122e43,'theme':{'prefix':''}}));}export async function askJsUrl(_0xf2bfb){const _0x323379=a81_0x29ca;while(!![]){const _0xb26c4c=await onCancel(input({'message':_0x323379(0x165),'default':_0xf2bfb,'theme':{'prefix':''}}));if(_0xb26c4c[_0x323379(0x151)]()==='')throw CliErrors['cancelled'](_0x323379(0x16f));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x323379(0x146)](_0xb26c4c['trim']())){console[_0x323379(0x16c)](a81_0x14e104[_0x323379(0x14e)](_0x323379(0x154)));continue;}const _0x364c12=startSpinner(_0x323379(0x158));try{const _0x31b806=await isUrlReachable(_0xb26c4c[_0x323379(0x151)]());stopSpinner(_0x364c12,_0x323379(0x164),_0x31b806);if(!_0x31b806){console['error'](a81_0x14e104[_0x323379(0x14e)]('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0xb26c4c[_0x323379(0x151)]();}catch(_0xb59cab){stopSpinner(_0x364c12,'JS\x20URL\x20check\x20failed',![]);throw _0xb59cab;}}}export async function askCssUrl(_0x553a95){const _0x5bc3e8=a81_0x29ca;while(!![]){const _0x158cb2=await onCancel(input({'message':_0x5bc3e8(0x160),'default':_0x553a95,'theme':{'prefix':''}}));if(_0x158cb2[_0x5bc3e8(0x151)]()==='')throw CliErrors['cancelled'](_0x5bc3e8(0x16f));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x5bc3e8(0x146)](_0x158cb2[_0x5bc3e8(0x151)]())){console[_0x5bc3e8(0x16c)](a81_0x14e104[_0x5bc3e8(0x14e)](_0x5bc3e8(0x16a)));continue;}const _0x2aa486=startSpinner(_0x5bc3e8(0x157));try{const _0x52c222=await isUrlReachable(_0x158cb2[_0x5bc3e8(0x151)]());stopSpinner(_0x2aa486,_0x5bc3e8(0x162),_0x52c222);if(!_0x52c222){console[_0x5bc3e8(0x16c)](a81_0x14e104['red'](_0x5bc3e8(0x15e)));continue;}return _0x158cb2['trim']();}catch(_0x27c32a){stopSpinner(_0x2aa486,_0x5bc3e8(0x166),![]);throw _0x27c32a;}}}export async function selectPages(_0x3fcbb0,_0x274786,_0x18c253){const _0x29b35c=a81_0x29ca,_0x49d9f3=_0x3fcbb0[_0x29b35c(0x14b)](_0x4e4f29=>({'name':_0x4e4f29[_0x29b35c(0x16b)]+'\x20\x20'+(_0x274786[_0x29b35c(0x148)](_0x4e4f29['path'])?a81_0x14e104['gray'](_0x29b35c(0x141)):a81_0x14e104['green'](_0x29b35c(0x167))),'value':_0x4e4f29[_0x29b35c(0x16b)],'checked':_0x18c253?_0x18c253['includes'](_0x4e4f29['label']):!_0x274786[_0x29b35c(0x148)](_0x4e4f29[_0x29b35c(0x156)])}));if(_0x49d9f3[_0x29b35c(0x143)]===0x0)throw new Error(_0x29b35c(0x161));const _0x192fcf=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x49d9f3,'loop':![],'theme':{'prefix':''}}));if(_0x192fcf['length']===0x0)throw new Error(_0x29b35c(0x147));return _0x3fcbb0[_0x29b35c(0x145)](_0x76a466=>_0x192fcf[_0x29b35c(0x150)](_0x76a466[_0x29b35c(0x16b)]));}export function isInteractive(){const _0x5c47c8=a81_0x29ca;return process[_0x5c47c8(0x15d)][_0x5c47c8(0x14f)]===!![];}export function requireInteractive(){const _0x4d0a82=a81_0x29ca;if(!isInteractive())throw new Error(_0x4d0a82(0x153)+_0x4d0a82(0x144));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x8647fd=a82_0x3435;function a82_0x39aa(){const _0x56ddd9=['1840938uycJwD','182812oNAgaw','1663835ZqxeCg','23923305UxRRmP','isDirectory','14cLXzkv','trim','concat','split','endsWith','forEach','9594888PTIkkB','10dVuMYK','1235132JyvBJe','match','replace','index.tsx','replaceAll','36pDvSzE','utf-8','.tsx','592417NTdYFv','cwd'];a82_0x39aa=function(){return _0x56ddd9;};return a82_0x39aa();}(function(_0x525e1c,_0x429e76){const _0x253a04=a82_0x3435,_0x5f0d79=_0x525e1c();while(!![]){try{const _0x1e9374=parseInt(_0x253a04(0xed))/0x1*(-parseInt(_0x253a04(0xf1))/0x2)+-parseInt(_0x253a04(0xec))/0x3+parseInt(_0x253a04(0xf9))/0x4+parseInt(_0x253a04(0xee))/0x5+parseInt(_0x253a04(0xfe))/0x6*(parseInt(_0x253a04(0xea))/0x7)+-parseInt(_0x253a04(0xf7))/0x8+-parseInt(_0x253a04(0xef))/0x9*(-parseInt(_0x253a04(0xf8))/0xa);if(_0x1e9374===_0x429e76)break;else _0x5f0d79['push'](_0x5f0d79['shift']());}catch(_0x2de08d){_0x5f0d79['push'](_0x5f0d79['shift']());}}}(a82_0x39aa,0xae826));import{readdirSync,statSync,readFileSync}from'fs';function a82_0x3435(_0xd17ed1,_0x7ddc01){_0xd17ed1=_0xd17ed1-0xe8;const _0x39aa6e=a82_0x39aa();let _0x34358e=_0x39aa6e[_0xd17ed1];return _0x34358e;}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a82_0x8647fd(0xeb)](),'src/pages');export function extractTitleFromComment(_0x3390c3){const _0x245fee=a82_0x8647fd;try{const _0x33024=readFileSync(_0x3390c3,_0x245fee(0xe8)),_0x10824=_0x33024[_0x245fee(0xfa)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x10824&&_0x10824[0x1]){const _0x1250fe=_0x10824[0x1],_0x4218f3=_0x1250fe['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x4218f3&&_0x4218f3[0x1])return _0x4218f3[0x1][_0x245fee(0xf2)]();}let _0x25760d=null;const _0x8e3b7f=_0x33024['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x8e3b7f&&_0x8e3b7f[0x1]&&(_0x25760d=_0x8e3b7f[0x1]);if(!_0x25760d){const _0x312a33=_0x33024[_0x245fee(0xfa)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x312a33&&_0x312a33[0x1]&&(_0x25760d=_0x312a33[0x1]);}if(_0x25760d){const _0x16c901=new RegExp('\x5cb'+_0x25760d+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x2e7bbe=_0x33024[_0x245fee(0xfa)](_0x16c901);if(_0x2e7bbe&&_0x2e7bbe[0x1])return _0x2e7bbe[0x1];return _0x25760d;}return null;}catch(_0x340121){return null;}}export function getLocalPages(_0x331f6f=pagesDir,_0xece97b=pagesDir){const _0x1cf8c5=a82_0x8647fd;let _0x599cbc=[];const _0x882dad=readdirSync(_0x331f6f);return _0x882dad[_0x1cf8c5(0xf6)](_0x2eb981=>{const _0x2f1878=_0x1cf8c5,_0x1f8f6b=join(_0x331f6f,_0x2eb981),_0x1165c5=statSync(_0x1f8f6b);if(_0x1165c5&&_0x1165c5[_0x2f1878(0xf0)]())_0x599cbc=_0x599cbc[_0x2f1878(0xf3)](getLocalPages(_0x1f8f6b,_0xece97b));else{if(_0x2eb981[_0x2f1878(0xf5)](_0x2f1878(0xe9))){let _0x2d490f=relative(_0xece97b,_0x1f8f6b);_0x2d490f[_0x2f1878(0xf5)](_0x2f1878(0xfc))?_0x2d490f=_0x2d490f[_0x2f1878(0xfb)](/index\.tsx$/,''):_0x2d490f=_0x2d490f[_0x2f1878(0xfb)](/\.tsx$/,'');_0x2d490f['endsWith'](sep)&&(_0x2d490f=_0x2d490f['slice'](0x0,-0x1));const _0x510b81=_0x2d490f[_0x2f1878(0xf4)](sep)['join']('/'),_0x263eac=extractTitleFromComment(_0x1f8f6b),_0x578c27=_0x263eac||_0x510b81;_0x599cbc['push']({'path':_0x510b81[_0x2f1878(0xfd)]('$',':'),'label':_0x578c27});}}}),_0x599cbc['filter'](_0x4ab553=>_0x4ab553['path']!=='');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x474fd9,_0x3c967d){const _0x5e59c2=a83_0x247a,_0x3d777c=_0x474fd9();while(!![]){try{const _0x3306df=parseInt(_0x5e59c2(0x147))/0x1+-parseInt(_0x5e59c2(0x145))/0x2+parseInt(_0x5e59c2(0x146))/0x3+-parseInt(_0x5e59c2(0x140))/0x4+parseInt(_0x5e59c2(0x13f))/0x5*(-parseInt(_0x5e59c2(0x138))/0x6)+parseInt(_0x5e59c2(0x13a))/0x7+parseInt(_0x5e59c2(0x13e))/0x8;if(_0x3306df===_0x3c967d)break;else _0x3d777c['push'](_0x3d777c['shift']());}catch(_0x37832e){_0x3d777c['push'](_0x3d777c['shift']());}}}(a83_0x344c,0x2564f));function a83_0x247a(_0x45dc6d,_0x4c8d02){_0x45dc6d=_0x45dc6d-0x138;const _0x344c15=a83_0x344c();let _0x247a30=_0x344c15[_0x45dc6d];return _0x247a30;}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(_0x4c423e){const _0x59a97e=a83_0x247a,_0x3469ca=[];return!isValidJsHttpsUrl(_0x4c423e)&&_0x3469ca['push']('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x3469ca[_0x59a97e(0x13c)]===0x0,'errors':_0x3469ca};}export function validateCssUrl(_0x477cb5){const _0x1dcd09=a83_0x247a,_0x1fe727=[];return!isValidCssHttpsUrl(_0x477cb5)&&_0x1fe727[_0x1dcd09(0x142)](_0x1dcd09(0x14a)),{'ok':_0x1fe727[_0x1dcd09(0x13c)]===0x0,'errors':_0x1fe727};}export async function validateJsUrlReachable(_0x219380){const _0x331016=a83_0x247a,_0x2d3d2a=validateJsUrl(_0x219380);if(!_0x2d3d2a['ok'])return _0x2d3d2a;const _0x2f6d47=await isUrlReachable(_0x219380);if(!_0x2f6d47)_0x2d3d2a[_0x331016(0x14c)][_0x331016(0x142)]('JS\x20URL\x20is\x20unreachable');return{'ok':_0x2d3d2a[_0x331016(0x14c)]['length']===0x0,'errors':_0x2d3d2a[_0x331016(0x14c)]};}export async function validateCssUrlReachable(_0x4deda1){const _0x53f9bf=a83_0x247a,_0x425b99=validateCssUrl(_0x4deda1);if(!_0x425b99['ok'])return _0x425b99;const _0x491b50=await isUrlReachable(_0x4deda1);if(!_0x491b50)_0x425b99[_0x53f9bf(0x14c)][_0x53f9bf(0x142)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x425b99[_0x53f9bf(0x14c)][_0x53f9bf(0x13c)]===0x0,'errors':_0x425b99['errors']};}function a83_0x344c(){const _0x50dbc0=['length','trim','1617408oaEGcn','140gZDvaI','1175784mEEwAS','resources','push','filter','status','352250CJuFth','749295qcWLSE','103106AtHEyz','label','No\x20local\x20pages\x20matched\x20labels:\x20','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','has','errors','value','fulfilled','map','find','6936kCiuaf','join','703913vantOe','path'];a83_0x344c=function(){return _0x50dbc0;};return a83_0x344c();}export function buildCompareRows(_0x377ae5,_0x2a827c){const _0x1cd094=a83_0x247a;return _0x377ae5[_0x1cd094(0x14f)](_0x14e00b=>({'label':_0x14e00b[_0x1cd094(0x148)],'path':_0x14e00b['path'],'local':!![],'online':_0x2a827c[_0x1cd094(0x14b)](_0x14e00b[_0x1cd094(0x13b)])}));}export function filterNewPages(_0x1f719e,_0x1b8543,_0x49ed8a){const _0x3c5fae=a83_0x247a;if(_0x49ed8a&&_0x49ed8a[_0x3c5fae(0x13c)]>0x0){const _0x4ebbdd=new Set(_0x49ed8a[_0x3c5fae(0x14f)](_0x735d12=>_0x735d12[_0x3c5fae(0x13d)]())),_0x3c1ada=_0x1f719e[_0x3c5fae(0x143)](_0x487df6=>_0x4ebbdd[_0x3c5fae(0x14b)](_0x487df6[_0x3c5fae(0x148)]));if(_0x3c1ada[_0x3c5fae(0x13c)]===0x0)throw new Error(_0x3c5fae(0x149)+[..._0x4ebbdd][_0x3c5fae(0x139)](',\x20'));return _0x3c1ada;}return _0x1f719e[_0x3c5fae(0x143)](_0x3a5e67=>!_0x1b8543[_0x3c5fae(0x14b)](_0x3a5e67[_0x3c5fae(0x13b)]));}export function filterPagesByLabels(_0x308c80,_0x325b64){const _0x584d64=a83_0x247a,_0x17aa60=[],_0x1d63f0=[];for(const _0x26973e of _0x325b64){const _0x25d202=_0x26973e[_0x584d64(0x13d)](),_0x4239b8=_0x308c80[_0x584d64(0x150)](_0x4ee222=>_0x4ee222[_0x584d64(0x148)]===_0x25d202);if(_0x4239b8)_0x17aa60[_0x584d64(0x142)](_0x4239b8);else _0x1d63f0[_0x584d64(0x142)](_0x26973e);}return{'matched':_0x17aa60,'unmatched':_0x1d63f0};}export async function doCreateMenus(_0x556378,_0x3f34e3,_0x3e6834,_0x18a15b){const _0x2e8d1e=a83_0x247a,_0x3da2bd=await createMenus(_0x556378,_0x3f34e3,_0x3e6834,_0x18a15b);return{'created':_0x3da2bd[_0x2e8d1e(0x13c)],'failed':0x0,'labels':_0x3e6834[_0x2e8d1e(0x14f)](_0x3ba8ca=>_0x3ba8ca[_0x2e8d1e(0x148)]),'menus':_0x3da2bd};}export function filterMenusWithResources(_0x4aba9){const _0x5ccdea=a83_0x247a;return _0x4aba9['filter'](_0x5d928c=>_0x5d928c[_0x5ccdea(0x141)]['length']>0x0);}export async function doUpdateCdnUrls(_0xfb3b16,_0x305aac,_0x19f705,_0x52b408){const _0x11e2aa=a83_0x247a,_0x317371=_0x19f705[_0x11e2aa(0x143)](_0x194177=>_0x194177[_0x11e2aa(0x141)][_0x11e2aa(0x13c)]>0x0),_0x1016cc=await Promise['allSettled'](_0x317371[_0x11e2aa(0x14f)](_0x94489=>updateMenuCdnUrl(_0xfb3b16,_0x305aac,{'id':_0x94489['id'],'label':_0x94489[_0x11e2aa(0x148)],'path':_0x94489['path'],'resources':_0x52b408}))),_0x2e1bac=_0x1016cc[_0x11e2aa(0x143)](_0x253019=>_0x253019[_0x11e2aa(0x144)]===_0x11e2aa(0x14e))['map'](_0x48dd92=>_0x48dd92[_0x11e2aa(0x14d)]),_0x299d3e=_0x1016cc['filter'](_0x269653=>_0x269653[_0x11e2aa(0x144)]==='rejected')[_0x11e2aa(0x13c)];return{'updated':_0x2e1bac[_0x11e2aa(0x13c)],'failed':_0x299d3e,'menus':_0x2e1bac};}export async function fetchMenuData(_0x5a58a6,_0x200307){const _0x33d674=a83_0x247a,_0x29003d=getLocalPages(),_0x3d706a=await getOnlineMenuList(_0x5a58a6,_0x200307),_0x5ae65e=new Set(_0x3d706a['map'](_0x11f4c3=>_0x11f4c3[_0x33d674(0x13b)]));return{'localPages':_0x29003d,'onlineMenuList':_0x3d706a,'onlinePaths':_0x5ae65e};}export async function fetchOnlineMenuList(_0x2d8ef6,_0xcb8ed0){return getOnlineMenuList(_0x2d8ef6,_0xcb8ed0);}
|