@lovrabet/rabetbase-cli 2.3.4-beta.4 → 2.3.5-beta.1
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/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.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-skill/index.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-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/dry-run.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/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.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/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.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/relation-audit.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/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.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/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.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/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.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/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.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/update-notice.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/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a89_0x2b9b4c=a89_0x29c1;(function(_0x11723c,_0x473695){const _0x19f589=a89_0x29c1,_0x368a5c=_0x11723c();while(!![]){try{const _0x536c6a=-parseInt(_0x19f589(0x213))/0x1+-parseInt(_0x19f589(0x23d))/0x2*(-parseInt(_0x19f589(0x20f))/0x3)+-parseInt(_0x19f589(0x232))/0x4+-parseInt(_0x19f589(0x202))/0x5*(parseInt(_0x19f589(0x1f5))/0x6)+-parseInt(_0x19f589(0x20c))/0x7*(-parseInt(_0x19f589(0x234))/0x8)+-parseInt(_0x19f589(0x241))/0x9*(parseInt(_0x19f589(0x22c))/0xa)+parseInt(_0x19f589(0x211))/0xb;if(_0x536c6a===_0x473695)break;else _0x368a5c['push'](_0x368a5c['shift']());}catch(_0x483a5c){_0x368a5c['push'](_0x368a5c['shift']());}}}(a89_0x1b54,0xc276d));function a89_0x29c1(_0x38e7f5,_0x4de526){_0x38e7f5=_0x38e7f5-0x1f2;const _0x1b54b5=a89_0x1b54();let _0x29c103=_0x1b54b5[_0x38e7f5];return _0x29c103;}function a89_0x1b54(){const _0x10d8fb=['\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','\x20doctor','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','6286844JXQtkO','\x20\x20─','184GlHgoS','\x20\x20Merged\x20Config','\x20\x20Config\x20JSON','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','env','message','\x20\x20Apps','locale','2bXtiaZ','(default)','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','(none)','12288501paEmWU','riskLevel','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','cookie','red','yellow','green','raw','24VfyUiK','log','\x20\x20Config\x20Files','arch','explicitAppName','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','read','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','(not\x20set)','appcode','354940nsbdVQ','✗\x20Not\x20logged\x20in','✗\x20Invalid\x20JSON','repeat','\x20\x20runtimeDomain:\x20\x20\x20','Project','slice','(no\x20file)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','389137JpygLg','format','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','3866199cwlRRq','length','23974214iWIuuu','keys','729223lyITus','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','✓\x20Valid','✗\x20Expired','bold','gray','source','doctor','defaultApp','version','(missing)','verbose','\x20←\x20current','apps','status','⚠\x20Empty\x20(treated\x20as\x20{})','(not\x20found)','missing','accessKey','check','value','✓\x20Valid\x20JSON','(set,\x20length=','apiDir','unknown','10dCWhrQ'];a89_0x1b54=function(){return _0x10d8fb;};return a89_0x1b54();}import a89_0x4f24f0 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(_0x2eea7d){const _0x2c1a49=a89_0x29c1,_0x2ae088=GIT_COMMIT!==_0x2c1a49(0x22b)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2c1a49(0x208)](0x0,0xa)+')':VERSION,_0x377d48=buildConfigFromFlags({}),_0x49fb15=getCookie();console[_0x2c1a49(0x1f6)](),console[_0x2c1a49(0x1f6)](a89_0x4f24f0[_0x2c1a49(0x217)](CLI_BIN_NAME+_0x2c1a49(0x230))),console[_0x2c1a49(0x1f6)](a89_0x4f24f0['gray']('─'[_0x2c1a49(0x205)](0x32))),console[_0x2c1a49(0x1f6)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x2ae088),console['log'](_0x2c1a49(0x243)+process[_0x2c1a49(0x21c)]),console[_0x2c1a49(0x1f6)](_0x2c1a49(0x20b)+process['platform']+'\x20'+process[_0x2c1a49(0x1f8)]),console[_0x2c1a49(0x1f6)](),console[_0x2c1a49(0x1f6)](a89_0x4f24f0[_0x2c1a49(0x217)](_0x2c1a49(0x1f7))),console[_0x2c1a49(0x1f6)](a89_0x4f24f0['gray']('\x20\x20─'[_0x2c1a49(0x205)](0x1e)));const _0xde52f=getGlobalConfigPath(),_0x50a03c=getProjectConfigPath();console[_0x2c1a49(0x1f6)](_0x2c1a49(0x22e)+(_0xde52f||a89_0x4f24f0[_0x2c1a49(0x218)](_0x2c1a49(0x223)))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x50a03c||a89_0x4f24f0[_0x2c1a49(0x218)](_0x2c1a49(0x223)))),console[_0x2c1a49(0x1f6)](),console['log'](a89_0x4f24f0[_0x2c1a49(0x217)](_0x2c1a49(0x236))),console[_0x2c1a49(0x1f6)](a89_0x4f24f0[_0x2c1a49(0x218)]('\x20\x20─'[_0x2c1a49(0x205)](0x1e)));const _0x42455e=(_0x44b0d9,_0x2d50bc)=>{const _0x2c443f=_0x2c1a49;if(!_0x2d50bc){console[_0x2c443f(0x1f6)]('\x20\x20'+_0x44b0d9[_0x2c443f(0x244)](0x11)+'\x20'+a89_0x4f24f0[_0x2c443f(0x218)](_0x2c443f(0x209)));return;}const _0x37d3c2=inspectCliConfigJsonFile(_0x2d50bc);if(_0x37d3c2[_0x2c443f(0x221)]==='ok')console[_0x2c443f(0x1f6)]('\x20\x20'+_0x44b0d9[_0x2c443f(0x244)](0x11)+'\x20'+a89_0x4f24f0[_0x2c443f(0x1f3)](_0x2c443f(0x228)));else{if(_0x37d3c2[_0x2c443f(0x221)]==='empty')console[_0x2c443f(0x1f6)]('\x20\x20'+_0x44b0d9[_0x2c443f(0x244)](0x11)+'\x20'+a89_0x4f24f0[_0x2c443f(0x1f2)](_0x2c443f(0x222)));else _0x37d3c2[_0x2c443f(0x221)]===_0x2c443f(0x224)?console[_0x2c443f(0x1f6)]('\x20\x20'+_0x44b0d9[_0x2c443f(0x244)](0x11)+'\x20'+a89_0x4f24f0[_0x2c443f(0x218)](_0x2c443f(0x21d))):(console['log']('\x20\x20'+_0x44b0d9[_0x2c443f(0x244)](0x11)+'\x20'+a89_0x4f24f0['red'](_0x2c443f(0x204))),console[_0x2c443f(0x1f6)]('\x20\x20'+''[_0x2c443f(0x244)](0x11)+'\x20'+a89_0x4f24f0[_0x2c443f(0x246)](_0x37d3c2[_0x2c443f(0x23a)])));}};_0x42455e(_0x2c1a49(0x1ff),_0xde52f),_0x42455e(_0x2c1a49(0x207),_0x50a03c),console[_0x2c1a49(0x1f6)](),console[_0x2c1a49(0x1f6)](a89_0x4f24f0[_0x2c1a49(0x217)](_0x2c1a49(0x235))),console[_0x2c1a49(0x1f6)](a89_0x4f24f0[_0x2c1a49(0x218)]('\x20\x20─'[_0x2c1a49(0x205)](0x1e))),console[_0x2c1a49(0x1f6)](_0x2c1a49(0x1fd)+(_0x377d48['appCode']||a89_0x4f24f0[_0x2c1a49(0x246)](_0x2c1a49(0x200)))),console[_0x2c1a49(0x1f6)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x377d48[_0x2c1a49(0x239)]),console[_0x2c1a49(0x1f6)](_0x2c1a49(0x20e)+_0x377d48[_0x2c1a49(0x23c)]),console[_0x2c1a49(0x1f6)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x377d48['apiDir']),console['log'](_0x2c1a49(0x22d)+(_0x377d48[_0x2c1a49(0x21b)]||a89_0x4f24f0[_0x2c1a49(0x218)]('(none)'))),console[_0x2c1a49(0x1f6)](_0x2c1a49(0x214)+(_0x377d48[_0x2c1a49(0x22f)]||a89_0x4f24f0[_0x2c1a49(0x218)]('(none)'))),console[_0x2c1a49(0x1f6)]('\x20\x20explicitAppName:\x20'+(_0x377d48[_0x2c1a49(0x1f9)]||a89_0x4f24f0[_0x2c1a49(0x218)](_0x2c1a49(0x240)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x377d48[_0x2c1a49(0x20d)]||a89_0x4f24f0['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x377d48['pageSize']??a89_0x4f24f0[_0x2c1a49(0x218)](_0x2c1a49(0x23e)))),console['log'](_0x2c1a49(0x1fb)+_0x377d48[_0x2c1a49(0x242)]),console[_0x2c1a49(0x1f6)](_0x2c1a49(0x1fe)+_0x377d48[_0x2c1a49(0x21e)]),console[_0x2c1a49(0x1f6)](_0x2c1a49(0x237)+(_0x377d48[_0x2c1a49(0x245)]?a89_0x4f24f0['green']('(set,\x20length='+_0x377d48[_0x2c1a49(0x245)][_0x2c1a49(0x210)]+')'):_0x49fb15?a89_0x4f24f0[_0x2c1a49(0x1f3)]('(set\x20via\x20file,\x20length='+_0x49fb15[_0x2c1a49(0x210)]+')'):a89_0x4f24f0[_0x2c1a49(0x218)](_0x2c1a49(0x240))));const _0x2ca322=Object[_0x2c1a49(0x212)](_0x377d48[_0x2c1a49(0x220)]);if(_0x2ca322['length']>0x0){console[_0x2c1a49(0x1f6)](),console[_0x2c1a49(0x1f6)](a89_0x4f24f0[_0x2c1a49(0x217)](_0x2c1a49(0x23b))),console[_0x2c1a49(0x1f6)](a89_0x4f24f0[_0x2c1a49(0x218)](_0x2c1a49(0x233)[_0x2c1a49(0x205)](0x1e)));for(const _0x2cf936 of _0x2ca322){const _0x317daf=_0x377d48['apps'][_0x2cf936],_0x26a44b=_0x2cf936===_0x377d48['defaultApp'],_0xa89e94=_0x2cf936===_0x377d48[_0x2c1a49(0x22f)],_0x1468c2=_0xa89e94?a89_0x4f24f0[_0x2c1a49(0x1f3)](_0x2c1a49(0x21f)):'',_0x497ff3=_0x26a44b?'\x20(default)':'';console[_0x2c1a49(0x1f6)]('\x20\x20'+_0x2cf936+_0x497ff3+_0x1468c2),console[_0x2c1a49(0x1f6)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x317daf[_0x2c1a49(0x201)]);const _0x9ed446=buildAppDoctorFields(_0x317daf,{'env':_0x377d48['env'],'apiDir':_0x377d48[_0x2c1a49(0x1f4)][_0x2c1a49(0x22a)]||DEFAULT_CONFIG_VALUES[_0x2c1a49(0x22a)],'cookie':_0x377d48[_0x2c1a49(0x245)]||_0x49fb15||undefined,'accessKey':_0x377d48[_0x2c1a49(0x225)]});console['log'](_0x2c1a49(0x23f)+_0x9ed446['env']['value']+'\x20\x20'+a89_0x4f24f0[_0x2c1a49(0x218)]('('+_0x9ed446['env']['source']+')')),console['log']('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x9ed446[_0x2c1a49(0x22a)][_0x2c1a49(0x227)]+'\x20\x20'+a89_0x4f24f0[_0x2c1a49(0x218)]('('+_0x9ed446[_0x2c1a49(0x22a)][_0x2c1a49(0x219)]+')'));const _0x4087f1=_0x9ed446['cookie'][_0x2c1a49(0x227)]?a89_0x4f24f0[_0x2c1a49(0x1f3)](_0x2c1a49(0x229)+_0x9ed446[_0x2c1a49(0x245)][_0x2c1a49(0x227)][_0x2c1a49(0x210)]+')'):a89_0x4f24f0['gray'](_0x2c1a49(0x240));console['log'](_0x2c1a49(0x1fa)+_0x4087f1+'\x20\x20'+a89_0x4f24f0['gray']('('+_0x9ed446[_0x2c1a49(0x245)][_0x2c1a49(0x219)]+')'));const _0x543f7f=_0x9ed446[_0x2c1a49(0x225)][_0x2c1a49(0x227)]?a89_0x4f24f0['green'](_0x2c1a49(0x229)+_0x9ed446['accessKey'][_0x2c1a49(0x227)][_0x2c1a49(0x210)]+')'):a89_0x4f24f0['gray'](_0x2c1a49(0x240));console[_0x2c1a49(0x1f6)]('\x20\x20\x20\x20accessKey:\x20\x20'+_0x543f7f+'\x20\x20'+a89_0x4f24f0[_0x2c1a49(0x218)]('('+_0x9ed446[_0x2c1a49(0x225)][_0x2c1a49(0x219)]+')'));}}console['log'](),console[_0x2c1a49(0x1f6)](a89_0x4f24f0['bold']('\x20\x20API\x20Endpoints')),console['log'](a89_0x4f24f0['gray'](_0x2c1a49(0x233)[_0x2c1a49(0x205)](0x1e))),console[_0x2c1a49(0x1f6)](_0x2c1a49(0x20a)+getApiDomain()),console['log'](_0x2c1a49(0x238)+getUserDomain()),console['log'](_0x2c1a49(0x206)+getRuntimeDomain()),console[_0x2c1a49(0x1f6)](),console[_0x2c1a49(0x1f6)](a89_0x4f24f0['bold']('\x20\x20Auth')),console[_0x2c1a49(0x1f6)](a89_0x4f24f0['gray'](_0x2c1a49(0x233)[_0x2c1a49(0x205)](0x1e)));if(_0x49fb15){const _0x3d9603=await getIsSessionValid();console[_0x2c1a49(0x1f6)](_0x2c1a49(0x231)+(_0x3d9603?a89_0x4f24f0[_0x2c1a49(0x1f3)](_0x2c1a49(0x215)):a89_0x4f24f0[_0x2c1a49(0x246)](_0x2c1a49(0x216))));}else console[_0x2c1a49(0x1f6)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a89_0x4f24f0[_0x2c1a49(0x246)](_0x2c1a49(0x203)));return console[_0x2c1a49(0x1f6)](),{'ok':!![]};}export const doctorDefinition={'service':a89_0x2b9b4c(0x21a),'command':a89_0x2b9b4c(0x226),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a89_0x2b9b4c(0x1fc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a89_0x8c6c2b=a89_0x1ed9;(function(_0x5659db,_0x2891b5){const _0xf7aee3=a89_0x1ed9,_0x229d93=_0x5659db();while(!![]){try{const _0x166826=-parseInt(_0xf7aee3(0x18d))/0x1*(-parseInt(_0xf7aee3(0x1ab))/0x2)+-parseInt(_0xf7aee3(0x1c2))/0x3+parseInt(_0xf7aee3(0x1dd))/0x4+parseInt(_0xf7aee3(0x189))/0x5*(parseInt(_0xf7aee3(0x192))/0x6)+-parseInt(_0xf7aee3(0x1d6))/0x7*(-parseInt(_0xf7aee3(0x1aa))/0x8)+parseInt(_0xf7aee3(0x1bf))/0x9*(parseInt(_0xf7aee3(0x1a3))/0xa)+-parseInt(_0xf7aee3(0x1e0))/0xb;if(_0x166826===_0x2891b5)break;else _0x229d93['push'](_0x229d93['shift']());}catch(_0x4167aa){_0x229d93['push'](_0x229d93['shift']());}}}(a89_0x38e0,0xa2eec));import a89_0x2bdf88 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';function a89_0x1ed9(_0x561162,_0x5a6920){_0x561162=_0x561162-0x188;const _0x38e0fa=a89_0x38e0();let _0x1ed989=_0x38e0fa[_0x561162];return _0x1ed989;}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(_0x46d79e){const _0x45eb4f=a89_0x1ed9,_0x5bd1bb=GIT_COMMIT!==_0x45eb4f(0x1d9)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x45eb4f(0x19c)](0x0,0xa)+')':VERSION,_0x1f192b=buildConfigFromFlags({}),_0x4da0d2=getCookie();console[_0x45eb4f(0x1bb)](),console[_0x45eb4f(0x1bb)](a89_0x2bdf88[_0x45eb4f(0x1c6)](CLI_BIN_NAME+_0x45eb4f(0x1c8))),console['log'](a89_0x2bdf88[_0x45eb4f(0x1ae)]('─'[_0x45eb4f(0x1c5)](0x32))),console['log'](_0x45eb4f(0x1a5)+_0x5bd1bb),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1b0)+process[_0x45eb4f(0x1ce)]),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1d7)+process[_0x45eb4f(0x1bc)]+'\x20'+process[_0x45eb4f(0x1b1)]),console['log'](),console['log'](a89_0x2bdf88[_0x45eb4f(0x1c6)](_0x45eb4f(0x1c3))),console['log'](a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x196)['repeat'](0x1e)));const _0x3390ee=getGlobalConfigPath(),_0x58bf78=getProjectConfigPath();console[_0x45eb4f(0x1bb)](_0x45eb4f(0x193)+(_0x3390ee||a89_0x2bdf88['gray'](_0x45eb4f(0x18b)))),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1a0)+(_0x58bf78||a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x18b)))),console[_0x45eb4f(0x1bb)](),console[_0x45eb4f(0x1bb)](a89_0x2bdf88[_0x45eb4f(0x1c6)](_0x45eb4f(0x1ad))),console[_0x45eb4f(0x1bb)](a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x196)[_0x45eb4f(0x1c5)](0x1e)));const _0x3fc268=(_0x50237c,_0x127fa8)=>{const _0x61f047=_0x45eb4f;if(!_0x127fa8){console['log']('\x20\x20'+_0x50237c[_0x61f047(0x1c9)](0x11)+'\x20'+a89_0x2bdf88['gray'](_0x61f047(0x1b7)));return;}const _0x5a9dea=inspectCliConfigJsonFile(_0x127fa8);if(_0x5a9dea[_0x61f047(0x1a9)]==='ok')console[_0x61f047(0x1bb)]('\x20\x20'+_0x50237c[_0x61f047(0x1c9)](0x11)+'\x20'+a89_0x2bdf88[_0x61f047(0x19a)]('✓\x20Valid\x20JSON'));else{if(_0x5a9dea[_0x61f047(0x1a9)]==='empty')console[_0x61f047(0x1bb)]('\x20\x20'+_0x50237c['padEnd'](0x11)+'\x20'+a89_0x2bdf88[_0x61f047(0x1c1)](_0x61f047(0x19f)));else _0x5a9dea[_0x61f047(0x1a9)]===_0x61f047(0x1c0)?console[_0x61f047(0x1bb)]('\x20\x20'+_0x50237c[_0x61f047(0x1c9)](0x11)+'\x20'+a89_0x2bdf88[_0x61f047(0x1ae)](_0x61f047(0x18c))):(console['log']('\x20\x20'+_0x50237c[_0x61f047(0x1c9)](0x11)+'\x20'+a89_0x2bdf88[_0x61f047(0x1b5)](_0x61f047(0x19b))),console[_0x61f047(0x1bb)]('\x20\x20'+''[_0x61f047(0x1c9)](0x11)+'\x20'+a89_0x2bdf88['red'](_0x5a9dea[_0x61f047(0x1d0)])));}};_0x3fc268('Global',_0x3390ee),_0x3fc268('Project',_0x58bf78),console[_0x45eb4f(0x1bb)](),console[_0x45eb4f(0x1bb)](a89_0x2bdf88[_0x45eb4f(0x1c6)]('\x20\x20Merged\x20Config')),console[_0x45eb4f(0x1bb)](a89_0x2bdf88['gray'](_0x45eb4f(0x196)[_0x45eb4f(0x1c5)](0x1e))),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1a4)+(_0x1f192b['appCode']||a89_0x2bdf88[_0x45eb4f(0x1b5)](_0x45eb4f(0x1ac)))),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1a2)+_0x1f192b[_0x45eb4f(0x1b3)]),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1b4)+_0x1f192b[_0x45eb4f(0x19d)]),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1be)+_0x1f192b[_0x45eb4f(0x1cc)]),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1a6)+(_0x1f192b[_0x45eb4f(0x1df)]||a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x197)))),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1db)+(_0x1f192b[_0x45eb4f(0x19e)]||a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x197)))),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1c4)+(_0x1f192b[_0x45eb4f(0x1d2)]||a89_0x2bdf88['gray'](_0x45eb4f(0x197)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1f192b[_0x45eb4f(0x1ba)]||a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x1cb)+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0x45eb4f(0x1cd)+(_0x1f192b[_0x45eb4f(0x1da)]??a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x1d8)))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x1f192b[_0x45eb4f(0x1b6)]),console[_0x45eb4f(0x1bb)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1f192b['verbose']),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x190)+(_0x1f192b[_0x45eb4f(0x18a)]?a89_0x2bdf88['green']('(set,\x20length='+_0x1f192b[_0x45eb4f(0x18a)]['length']+')'):_0x4da0d2?a89_0x2bdf88[_0x45eb4f(0x19a)](_0x45eb4f(0x1d5)+_0x4da0d2[_0x45eb4f(0x1d4)]+')'):a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x197))));const _0x4b4daf=Object[_0x45eb4f(0x194)](_0x1f192b['apps']);if(_0x4b4daf[_0x45eb4f(0x1d4)]>0x0){console[_0x45eb4f(0x1bb)](),console['log'](a89_0x2bdf88[_0x45eb4f(0x1c6)]('\x20\x20Apps')),console[_0x45eb4f(0x1bb)](a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x196)[_0x45eb4f(0x1c5)](0x1e)));for(const _0xc58ab6 of _0x4b4daf){const _0x2d524c=_0x1f192b[_0x45eb4f(0x198)][_0xc58ab6],_0x536a60=_0xc58ab6===_0x1f192b[_0x45eb4f(0x1df)],_0x13cf16=_0xc58ab6===_0x1f192b['currentApp'],_0x5607b0=_0x13cf16?a89_0x2bdf88[_0x45eb4f(0x19a)]('\x20←\x20current'):'',_0x1c6ee0=_0x536a60?_0x45eb4f(0x199):'';console[_0x45eb4f(0x1bb)]('\x20\x20'+_0xc58ab6+_0x1c6ee0+_0x5607b0),console['log'](_0x45eb4f(0x1b8)+_0x2d524c[_0x45eb4f(0x1d3)]);const _0x553e5b=buildAppDoctorFields(_0x2d524c,{'env':_0x1f192b['env'],'apiDir':_0x1f192b['raw']['apiDir']||DEFAULT_CONFIG_VALUES[_0x45eb4f(0x1cc)],'cookie':_0x1f192b[_0x45eb4f(0x18a)]||_0x4da0d2||undefined,'accessKey':_0x1f192b[_0x45eb4f(0x195)]});console['log']('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x553e5b[_0x45eb4f(0x1b3)][_0x45eb4f(0x1a1)]+'\x20\x20'+a89_0x2bdf88[_0x45eb4f(0x1ae)]('('+_0x553e5b[_0x45eb4f(0x1b3)]['source']+')')),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x191)+_0x553e5b['apiDir'][_0x45eb4f(0x1a1)]+'\x20\x20'+a89_0x2bdf88['gray']('('+_0x553e5b[_0x45eb4f(0x1cc)]['source']+')'));const _0xc3d711=_0x553e5b[_0x45eb4f(0x18a)][_0x45eb4f(0x1a1)]?a89_0x2bdf88[_0x45eb4f(0x19a)](_0x45eb4f(0x18f)+_0x553e5b[_0x45eb4f(0x18a)][_0x45eb4f(0x1a1)][_0x45eb4f(0x1d4)]+')'):a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x197));console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1a7)+_0xc3d711+'\x20\x20'+a89_0x2bdf88[_0x45eb4f(0x1ae)]('('+_0x553e5b[_0x45eb4f(0x18a)]['source']+')'));const _0x4e449a=_0x553e5b[_0x45eb4f(0x195)][_0x45eb4f(0x1a1)]?a89_0x2bdf88[_0x45eb4f(0x19a)](_0x45eb4f(0x18f)+_0x553e5b[_0x45eb4f(0x195)][_0x45eb4f(0x1a1)][_0x45eb4f(0x1d4)]+')'):a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x197));console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1de)+_0x4e449a+'\x20\x20'+a89_0x2bdf88[_0x45eb4f(0x1ae)]('('+_0x553e5b[_0x45eb4f(0x195)][_0x45eb4f(0x1a8)]+')'));}}console[_0x45eb4f(0x1bb)](),console[_0x45eb4f(0x1bb)](a89_0x2bdf88[_0x45eb4f(0x1c6)](_0x45eb4f(0x188))),console[_0x45eb4f(0x1bb)](a89_0x2bdf88['gray'](_0x45eb4f(0x196)[_0x45eb4f(0x1c5)](0x1e))),console['log'](_0x45eb4f(0x1bd)+getApiDomain()),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1d1)+getUserDomain()),console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1c7)+getRuntimeDomain()),console[_0x45eb4f(0x1bb)](),console[_0x45eb4f(0x1bb)](a89_0x2bdf88[_0x45eb4f(0x1c6)]('\x20\x20Auth')),console[_0x45eb4f(0x1bb)](a89_0x2bdf88[_0x45eb4f(0x1ae)](_0x45eb4f(0x196)[_0x45eb4f(0x1c5)](0x1e)));if(_0x4da0d2){const _0x468e67=await getIsSessionValid();console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1cf)+(_0x468e67?a89_0x2bdf88[_0x45eb4f(0x19a)](_0x45eb4f(0x18e)):a89_0x2bdf88[_0x45eb4f(0x1b5)](_0x45eb4f(0x1af))));}else console[_0x45eb4f(0x1bb)](_0x45eb4f(0x1cf)+a89_0x2bdf88['red'](_0x45eb4f(0x1ca)));return console[_0x45eb4f(0x1bb)](),{'ok':!![]};}export const doctorDefinition={'service':a89_0x8c6c2b(0x1dc),'command':a89_0x8c6c2b(0x1b2),'description':a89_0x8c6c2b(0x1b9),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a89_0x38e0(){const _0x4c8b65=['✗\x20Expired','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','check','env','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','riskLevel','(no\x20file)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','format','log','platform','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','981dhuDPt','missing','yellow','2459679ZgLYjp','\x20\x20Config\x20Files','\x20\x20explicitAppName:\x20','repeat','bold','\x20\x20runtimeDomain:\x20\x20\x20','\x20doctor','padEnd','✗\x20Not\x20logged\x20in','(default:\x20','apiDir','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','version','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','message','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','explicitAppName','appcode','length','(set\x20via\x20file,\x20length=','245imOnuE','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','(default)','unknown','pageSize','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','doctor','1558528GMbiyN','\x20\x20\x20\x20accessKey:\x20\x20','defaultApp','11788051oHVubw','\x20\x20API\x20Endpoints','130cKqmrL','cookie','(not\x20found)','(missing)','1iHqcIa','✓\x20Valid','(set,\x20length=','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','144198jjgrrg','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','keys','accessKey','\x20\x20─','(none)','apps','\x20(default)','green','✗\x20Invalid\x20JSON','slice','locale','currentApp','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','35010IEtokQ','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','source','status','169888qGQaeB','839094BvyBsr','(not\x20set)','\x20\x20Config\x20JSON','gray'];a89_0x38e0=function(){return _0x4c8b65;};return a89_0x38e0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90_0x132d56=a90_0x1866;function a90_0x1866(_0x5897bb,_0x22f1c5){_0x5897bb=_0x5897bb-0xea;const _0x3cd43a=a90_0x3cd4();let _0x186687=_0x3cd43a[_0x5897bb];return _0x186687;}(function(_0x2cd9c2,_0x3ad19c){const _0x5f13f1=a90_0x1866,_0x36edfe=_0x2cd9c2();while(!![]){try{const _0x3d8914=parseInt(_0x5f13f1(0x111))/0x1*(parseInt(_0x5f13f1(0x106))/0x2)+-parseInt(_0x5f13f1(0xf0))/0x3+parseInt(_0x5f13f1(0xfe))/0x4+-parseInt(_0x5f13f1(0x10a))/0x5+-parseInt(_0x5f13f1(0xf4))/0x6+-parseInt(_0x5f13f1(0xef))/0x7*(-parseInt(_0x5f13f1(0x118))/0x8)+parseInt(_0x5f13f1(0x107))/0x9;if(_0x3d8914===_0x3ad19c)break;else _0x36edfe['push'](_0x36edfe['shift']());}catch(_0xdc8a13){_0x36edfe['push'](_0x36edfe['shift']());}}}(a90_0x3cd4,0xcf5ac));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';function a90_0x3cd4(){const _0x9a9cf9=['cwd','Usage:\x20','792qbQpiE','Use\x20`','\x20\x20Apps:\x20','App\x20code\x20to\x20initialize\x20with','write','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','some','98259wSnZLr','3422409wGIMHb','bool','global','\x20\x20Default:\x20','289086AoMvXp','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','yes','init','str','Write\x20to\x20global\x20config\x20instead\x20of\x20project','message','flagMissing','检测到旧配置文件,正在自动升级...\x0a','3593260eIKMWh','project','map','production','appCode','\x0a✓\x20Successfully\x20initialized\x20','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','appcode','19808KIsfAo','1119393YTpVlg','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','valid','4494795eXLalH','\x20config','log','boolean','\x20\x20Config:\x20','env','string','53hDPpAf','../../commands/project/init.js','nonInteractive','Target\x20environment','custom'];a90_0x3cd4=function(){return _0x9a9cf9;};return a90_0x3cd4();}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(_0x434322){return{'appCode':_0x434322,'appName':_0x434322};}function writeInitConfig(_0x199a0c,_0x9f8c93,_0x1418e2){const _0x14e1c5=a90_0x1866,_0x3c7b51=resolveWriteConfigPath(_0x199a0c),_0x2db443=buildCanonicalProjectConfig({},{'appCodes':_0x9f8c93[_0x14e1c5(0x100)](_0x15ff00=>_0x15ff00[_0x14e1c5(0x102)]),'env':_0x1418e2,'metadata':{'version':getCliVersion(),'createdAt':new Date()['toLocaleString']()}});writeConfigFile(_0x3c7b51,_0x2db443);const _0x4a67c8=_0x199a0c===_0x14e1c5(0xf2)?_0x14e1c5(0xf2):_0x14e1c5(0xff);console[_0x14e1c5(0x10c)](_0x14e1c5(0x103)+_0x4a67c8+_0x14e1c5(0x10b)),console['log'](_0x14e1c5(0xea)+_0x9f8c93[_0x14e1c5(0x100)](_0x20c841=>_0x20c841['appCode'])['join'](',\x20')),console[_0x14e1c5(0x10c)](_0x14e1c5(0xf3)+_0x2db443['defaultApp']),console['log']('\x20\x20Env:\x20'+_0x2db443[_0x14e1c5(0x10f)]),console[_0x14e1c5(0x10c)](_0x14e1c5(0x10e)+_0x3c7b51);}async function runSmartInit(_0x1748e8){const _0x467255=a90_0x1866,_0xeaaca0=process[_0x467255(0x116)](),_0x509b3f=_0x1748e8[_0x467255(0xf1)]('global')?'global':'project',_0xff3643=_0x1748e8[_0x467255(0xf9)](_0x467255(0x10f))||_0x467255(0x101),_0xd995a5=_0x1748e8[_0x467255(0xf9)](_0x467255(0x105))||undefined,_0x2f2e8f=_0x1748e8[_0x467255(0xf1)]('project');if(_0x2f2e8f){const {initConfig:_0x290bf1}=await import(_0x467255(0x112));return _0x290bf1({'appcode':_0xd995a5,'env':_0xff3643,'autoYes':_0x1748e8[_0x467255(0xf1)](_0x467255(0xf7))});}if(_0x509b3f===_0x467255(0xff)){const _0x5b0d0e=existsSync(resolve(_0xeaaca0,NEW_CONFIG_NAME)),_0x41444a=LEGACY_CONFIG_NAMES[_0x467255(0xee)](_0x2c65fe=>existsSync(resolve(_0xeaaca0,_0x2c65fe)));if(_0x41444a&&!_0x5b0d0e)return console[_0x467255(0x10c)](_0x467255(0xfd)),upgradeApp(_0x1748e8[_0x467255(0x113)],{'yes':_0x1748e8['bool'](_0x467255(0xf7))});if(_0x5b0d0e)throw CliErrors['validation'](_0x467255(0x108),_0x467255(0x119)+CLI_BIN_NAME+_0x467255(0x104));}if(_0xd995a5){const _0x1a50b5=validateAppcode(_0xd995a5);if(!_0x1a50b5[_0x467255(0x109)])throw CliErrors['validation'](_0x1a50b5[_0x467255(0xfb)]);writeInitConfig(_0x509b3f,[syntheticApp(_0xd995a5)],_0xff3643);return;}if(_0x1748e8[_0x467255(0x113)])throw CliErrors[_0x467255(0xfc)]('appcode',_0x467255(0x117)+CLI_BIN_NAME+_0x467255(0xf5));const _0x5dd6fb=getCookie(),_0x306d0f=await selectMultipleApps(_0x5dd6fb),_0x3a8de8=_0x306d0f===_0x467255(0x115)?[syntheticApp(await promptCustomAppcode())]:_0x306d0f;writeInitConfig(_0x509b3f,_0x3a8de8,_0xff3643);}const initFlags=[{'name':a90_0x132d56(0xf2),'type':a90_0x132d56(0x10d),'description':a90_0x132d56(0xfa),'default':![]},{'name':a90_0x132d56(0x10f),'type':'string','description':a90_0x132d56(0x114),'default':a90_0x132d56(0x101),'enum':[...RABETBASE_ENV_VALUES]},{'name':a90_0x132d56(0x105),'type':a90_0x132d56(0x110),'description':a90_0x132d56(0xeb)},{'name':'project','type':'boolean','description':a90_0x132d56(0xf6),'default':![]},{'name':a90_0x132d56(0xf7),'type':'boolean','description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a90_0x132d56(0xf8),'command':'run','description':a90_0x132d56(0xed),'risk':a90_0x132d56(0xec),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x2c29e0){return await runSmartInit(_0x2c29e0),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a91_0x7a69(_0x4f628a,_0x48544b){_0x4f628a=_0x4f628a-0xe9;const _0x428846=a91_0x4288();let _0x7a69fb=_0x428846[_0x4f628a];return _0x7a69fb;}(function(_0x1ac094,_0x10d67d){const _0x2facb7=a91_0x7a69,_0x409e0f=_0x1ac094();while(!![]){try{const _0x34cd92=parseInt(_0x2facb7(0xee))/0x1*(parseInt(_0x2facb7(0xf0))/0x2)+-parseInt(_0x2facb7(0xed))/0x3*(parseInt(_0x2facb7(0xf3))/0x4)+parseInt(_0x2facb7(0xef))/0x5+parseInt(_0x2facb7(0xe9))/0x6+parseInt(_0x2facb7(0xec))/0x7+-parseInt(_0x2facb7(0xea))/0x8*(-parseInt(_0x2facb7(0xf2))/0x9)+-parseInt(_0x2facb7(0xeb))/0xa*(parseInt(_0x2facb7(0xf1))/0xb);if(_0x34cd92===_0x10d67d)break;else _0x409e0f['push'](_0x409e0f['shift']());}catch(_0x505477){_0x409e0f['push'](_0x409e0f['shift']());}}}(a91_0x4288,0x89eea));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a91_0x4288(){const _0x4fd271=['3OrsAmZ','180497vzCiBR','4056835MWmHOp','2sNAAbz','4345mZaQEF','1703772xkDpcZ','1506704SipIXZ','6219882WzSYjm','16aujwXI','65650SzMqVC','7893858TxiXtB'];a91_0x4288=function(){return _0x4fd271;};return a91_0x4288();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a92_0x265691=a92_0x4dd8;(function(_0x45df28,_0x37dc67){const _0x46dad9=a92_0x4dd8,_0x808266=_0x45df28();while(!![]){try{const _0x5d14e7=parseInt(_0x46dad9(0x1ad))/0x1*(-parseInt(_0x46dad9(0x1bc))/0x2)+-parseInt(_0x46dad9(0x1b4))/0x3+-parseInt(_0x46dad9(0x1ae))/0x4+parseInt(_0x46dad9(0x1b6))/0x5*(-parseInt(_0x46dad9(0x1b1))/0x6)+-parseInt(_0x46dad9(0x1c4))/0x7*(parseInt(_0x46dad9(0x1a9))/0x8)+-parseInt(_0x46dad9(0x1ca))/0x9+-parseInt(_0x46dad9(0x1bb))/0xa*(-parseInt(_0x46dad9(0x1af))/0xb);if(_0x5d14e7===_0x37dc67)break;else _0x808266['push'](_0x808266['shift']());}catch(_0x43f1b4){_0x808266['push'](_0x808266['shift']());}}}(a92_0x1bed,0xa490d));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a92_0x4dd8(_0x39bb30,_0x11dc84){_0x39bb30=_0x39bb30-0x1a9;const _0x1bed34=a92_0x1bed();let _0x4dd80d=_0x1bed34[_0x39bb30];return _0x4dd80d;}export const NUDGE_OPT_OUT_ENV=a92_0x265691(0x1b8);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled','auth_required',a92_0x265691(0x1ac),a92_0x265691(0x1b2),a92_0x265691(0x1c9),a92_0x265691(0x1c0),'validation_error',a92_0x265691(0x1b5)]),defaultWriter=_0x313ba5=>{const _0x44e5fb=a92_0x265691;process[_0x44e5fb(0x1c7)][_0x44e5fb(0x1bd)](_0x313ba5);};export function shouldNudgeForError(_0x17d9a8,_0x180b61){const _0x228b51=a92_0x265691;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x180b61[_0x228b51(0x1ab)]===_0x228b51(0x1aa)&&_0x180b61[_0x228b51(0x1cd)]===_0x228b51(0x1cc))return![];if(_0x17d9a8 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x228b51(0x1be)](_0x17d9a8['code']);return!![];}export function printIssueReportNudgeForError(_0x21559b,_0x20a55a,_0x3d28dc=defaultWriter){if(!shouldNudgeForError(_0x21559b,_0x20a55a))return;const _0x8c9e3b=buildSuggestedTitle(_0x21559b,_0x20a55a);_0x3d28dc(formatNudge(_0x8c9e3b));}function a92_0x1bed(){const _0x35e96f=['trim','1791636TvVsrS','network_error','935805xYIqIg','Hit\x20a\x20','RABETBASE_DISABLE_ISSUE_NUDGE','slice','\x20issue\x20report\x20\x5c','3010CPtfJz','1141492gqbtJK','write','has','=1\x20to\x20silence\x20this\x20hint.','flag_missing','\x20\x20Set\x20','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','replace','27237RKUOPz','message','length','stderr','\x22\x20\x5c','unknown_command','502281TYbUNJ','\x20\x20\x20\x20--title\x20\x22','report','command','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','\x20bug?\x20Help\x20us\x20fix\x20it:','256meFjIi','issue','service','config_missing','1aemXgn','3452200hgWLbJ','139645iVRXVn','join','30FaLYaT','not_in_project'];a92_0x1bed=function(){return _0x35e96f;};return a92_0x1bed();}function buildSuggestedTitle(_0x15910a,_0x3ab80e){const _0x46d8bf=a92_0x265691,_0x171469=_0x15910a instanceof Error?_0x15910a[_0x46d8bf(0x1c5)]:String(_0x15910a),_0x3ef6c0=_0x171469['replace'](/[\r\n]+/g,'\x20')[_0x46d8bf(0x1c3)](/\s+/g,'\x20')[_0x46d8bf(0x1b3)]()[_0x46d8bf(0x1b9)](0x0,0x78)[_0x46d8bf(0x1c3)](/"/g,'\x5c\x22'),_0x3a2674=CLI_BIN_NAME+'\x20'+_0x3ab80e['service']+'\x20'+_0x3ab80e[_0x46d8bf(0x1cd)];return _0x3ef6c0[_0x46d8bf(0x1c6)]>0x0?_0x3a2674+':\x20'+_0x3ef6c0:_0x3a2674;}function formatNudge(_0x4e2b39){const _0x173b2b=a92_0x265691;return['',_0x173b2b(0x1b7)+CLI_BIN_NAME+_0x173b2b(0x1cf),'\x20\x20'+CLI_BIN_NAME+_0x173b2b(0x1ba),_0x173b2b(0x1cb)+_0x4e2b39+_0x173b2b(0x1c8),_0x173b2b(0x1c2),_0x173b2b(0x1ce),_0x173b2b(0x1c1)+NUDGE_OPT_OUT_ENV+_0x173b2b(0x1bf),''][_0x173b2b(0x1b0)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x9bdfa4=a93_0x2532;(function(_0x22af7f,_0x3f318e){const _0xba8b2=a93_0x2532,_0x401bd5=_0x22af7f();while(!![]){try{const _0x4f3bf7=parseInt(_0xba8b2(0x13a))/0x1+-parseInt(_0xba8b2(0x150))/0x2+parseInt(_0xba8b2(0x134))/0x3*(parseInt(_0xba8b2(0x127))/0x4)+parseInt(_0xba8b2(0x12c))/0x5+-parseInt(_0xba8b2(0x146))/0x6+parseInt(_0xba8b2(0x147))/0x7*(-parseInt(_0xba8b2(0x140))/0x8)+parseInt(_0xba8b2(0x135))/0x9;if(_0x4f3bf7===_0x3f318e)break;else _0x401bd5['push'](_0x401bd5['shift']());}catch(_0x59a581){_0x401bd5['push'](_0x401bd5['shift']());}}}(a93_0x3ae7,0x3b74b));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a93_0x9bdfa4(0x13e);export const issueReport={'service':a93_0x9bdfa4(0x137),'command':a93_0x9bdfa4(0x158),'description':a93_0x9bdfa4(0x145),'risk':a93_0x9bdfa4(0x12f),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a93_0x9bdfa4(0x12b),'flags':[{'name':a93_0x9bdfa4(0x125),'type':a93_0x9bdfa4(0x131),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':a93_0x9bdfa4(0x120),'type':'string','description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a93_0x9bdfa4(0x131),'description':a93_0x9bdfa4(0x142)}],async 'validate'(_0x1d8c48){const _0xb448d0=a93_0x9bdfa4,_0x3a8140=_0x1d8c48['str'](_0xb448d0(0x125))[_0xb448d0(0x132)](),_0x18bdd5=_0x1d8c48[_0xb448d0(0x148)](_0xb448d0(0x120))[_0xb448d0(0x132)](),_0x44ea60=_0x1d8c48['str'](DESCRIPTION_FILE_FLAG)[_0xb448d0(0x132)]();if(!_0x3a8140)throw CliErrors[_0xb448d0(0x155)]('title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x1ece99=_0x18bdd5[_0xb448d0(0x126)]>0x0,_0x49b9c5=_0x44ea60['length']>0x0;if(_0x1ece99===_0x49b9c5)throw CliErrors[_0xb448d0(0x14a)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0xb448d0(0x128));if(_0x49b9c5){const _0x44dd3e=resolve(process[_0xb448d0(0x154)](),_0x44ea60);if(!existsSync(_0x44dd3e))throw CliErrors[_0xb448d0(0x14a)]('File\x20not\x20found:\x20'+_0x44dd3e);}},async 'dryRun'(_0x1434a2){const _0x5924df=a93_0x9bdfa4,_0x36d7dc=await prepareIssueReport(_0x1434a2);return{'method':'POST','url':_0x5924df(0x12d)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x36d7dc[_0x5924df(0x125)],'issue.description':_0x36d7dc[_0x5924df(0x120)],'issue.description_original_bytes':_0x36d7dc[_0x5924df(0x14d)][_0x5924df(0x14b)],'issue.description_truncated':_0x36d7dc[_0x5924df(0x14d)]['truncated'],'issue.description_redactions':_0x36d7dc['sanitize'][_0x5924df(0x121)],'issue.description_redaction_kinds':_0x36d7dc[_0x5924df(0x14d)][_0x5924df(0x12a)]['join'](',')}},'description':[_0x5924df(0x143),'descriptionSource:\x20'+_0x36d7dc['descriptionSource'],_0x36d7dc[_0x5924df(0x11f)]?_0x5924df(0x157)+_0x36d7dc[_0x5924df(0x11f)]:null,_0x36d7dc[_0x5924df(0x14d)][_0x5924df(0x129)]?_0x5924df(0x136)+_0x36d7dc[_0x5924df(0x14d)][_0x5924df(0x14b)]+_0x5924df(0x11d):null,_0x36d7dc[_0x5924df(0x14d)][_0x5924df(0x121)]>0x0?_0x5924df(0x152)+_0x36d7dc[_0x5924df(0x14d)][_0x5924df(0x121)]+'\x20('+_0x36d7dc[_0x5924df(0x14d)][_0x5924df(0x12a)][_0x5924df(0x124)](',\x20')+')':null][_0x5924df(0x13c)](Boolean)['join']('\x0a')};},async 'execute'(_0x20cd93){const _0x2922ab=a93_0x9bdfa4,_0x40321e=await prepareIssueReport(_0x20cd93);try{await sendPlatformIssueCollectLog({'title':_0x40321e[_0x2922ab(0x125)],'description':_0x40321e[_0x2922ab(0x120)],'sanitize':{'originalBytes':_0x40321e[_0x2922ab(0x14d)][_0x2922ab(0x14b)],'truncated':_0x40321e['sanitize'][_0x2922ab(0x129)],'redactionCount':_0x40321e[_0x2922ab(0x14d)]['redactionCount'],'redactionKinds':_0x40321e['sanitize'][_0x2922ab(0x12a)]}});}catch(_0xd63571){throw CliErrors[_0x2922ab(0x11e)](_0x2922ab(0x138)+(_0xd63571 instanceof Error?_0xd63571[_0x2922ab(0x14f)]:String(_0xd63571)),_0x2922ab(0x133));}return{'ok':!![],'message':buildResultMessage(_0x40321e[_0x2922ab(0x14d)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x2922ab(0x141),_0x2922ab(0x139),_0x2922ab(0x13b),_0x2922ab(0x12e),'issue.description_redaction_kinds'],'issue':{'title':_0x40321e['title'],'descriptionLength':_0x40321e[_0x2922ab(0x120)]['length'],'descriptionSource':_0x40321e[_0x2922ab(0x123)],..._0x40321e[_0x2922ab(0x11f)]?{'descriptionFile':_0x40321e[_0x2922ab(0x11f)]}:{},'sanitize':{'originalBytes':_0x40321e[_0x2922ab(0x14d)][_0x2922ab(0x14b)],'truncated':_0x40321e[_0x2922ab(0x14d)][_0x2922ab(0x129)],'redactions':_0x40321e[_0x2922ab(0x14d)][_0x2922ab(0x121)],'redactionKinds':_0x40321e['sanitize'][_0x2922ab(0x12a)]}}}};}};function a93_0x2532(_0xe81887,_0x5ef274){_0xe81887=_0xe81887-0x11d;const _0x3ae750=a93_0x3ae7();let _0x2532c2=_0x3ae750[_0xe81887];return _0x2532c2;}function buildResultMessage(_0x6c2189){const _0x299bb6=a93_0x9bdfa4,_0x2f278e=[];return _0x6c2189['truncated']&&_0x2f278e[_0x299bb6(0x14c)](_0x299bb6(0x153)+_0x6c2189[_0x299bb6(0x14b)]+_0x299bb6(0x11d)),_0x6c2189[_0x299bb6(0x121)]>0x0&&_0x2f278e[_0x299bb6(0x14c)](_0x299bb6(0x122)+_0x6c2189[_0x299bb6(0x121)]+_0x299bb6(0x156)+_0x6c2189[_0x299bb6(0x12a)]['join'](',\x20')),_0x2f278e[_0x299bb6(0x126)]===0x0?_0x299bb6(0x149):_0x299bb6(0x144)+_0x2f278e[_0x299bb6(0x124)](';\x20')+')';}async function prepareIssueReport(_0x75a74f){const _0x34bb9e=a93_0x9bdfa4,_0x5d3e1f=_0x75a74f['str'](_0x34bb9e(0x125))[_0x34bb9e(0x132)](),_0xdf140=_0x75a74f[_0x34bb9e(0x148)](_0x34bb9e(0x120)),_0x4c15e0=_0x75a74f[_0x34bb9e(0x148)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x4c15e0){const _0x57106d=_0xdf140;if(!_0x57106d[_0x34bb9e(0x132)]())throw CliErrors[_0x34bb9e(0x14a)]('Issue\x20description\x20cannot\x20be\x20empty.',_0x34bb9e(0x151));const _0xe04087=sanitizeIssueDescription(_0x57106d);return{'title':_0x5d3e1f,'description':_0xe04087[_0x34bb9e(0x120)],'descriptionSource':_0x34bb9e(0x13f),'sanitize':_0xe04087};}const _0x44613f=resolve(process['cwd'](),_0x4c15e0),_0xffcf71=await readFile(_0x44613f,_0x34bb9e(0x14e));if(!_0xffcf71[_0x34bb9e(0x132)]())throw CliErrors[_0x34bb9e(0x14a)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x44613f,_0x34bb9e(0x13d));const _0x36bda7=sanitizeIssueDescription(_0xffcf71);return{'title':_0x5d3e1f,'description':_0x36bda7[_0x34bb9e(0x120)],'descriptionSource':_0x34bb9e(0x130),'descriptionFilePath':_0x44613f,'sanitize':_0x36bda7};}function a93_0x3ae7(){const _0x2ede02=['Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','description-file','inline','567264DxqLlZ','issue.description','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Platform\x20issue\x20reported\x20(','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','2908866Jzryfh','42ILHNMC','str','Platform\x20issue\x20reported','validation','originalBytes','push','sanitize','utf8','message','678216ebQwgB','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','redactions:\x20','truncated\x20from\x20','cwd','flagMissing','\x20secret(s):\x20','descriptionFile:\x20','report','\x20bytes','apiError','descriptionFilePath','description','redactionCount','redacted\x20','descriptionSource','join','title','length','1121236FlknvQ','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','truncated','redactionKinds','compress','1415970NthUQb','otel://','issue.description_redactions','write','file','string','trim','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','3MQwNWB','4630356KkCRZB','truncated:\x20original\x20','issue','Failed\x20to\x20report\x20platform\x20issue:\x20','issue.description_original_bytes','414911wKpZkE','issue.description_truncated','filter'];a93_0x3ae7=function(){return _0x2ede02;};return a93_0x3ae7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a94_0x1918(_0x8333fb,_0x58c287){_0x8333fb=_0x8333fb-0xf5;const _0x1e7222=a94_0x1e72();let _0x19180a=_0x1e7222[_0x8333fb];return _0x19180a;}function a94_0x1e72(){const _0x1a6128=['kind','pattern','7209918fKzfSC','REDACTED:password','2372BDvhvn','includes','REDACTED:private-key','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','toString','1474690lnLvVO','max','password','119092ofalkQ','416KiKwaI','bearer-jwt','REDACTED:cookie','414612aVLFgf','687cKXIRQ','31514rfIvCL','push','1207248NGDHww','REDACTED:authorization','string','byteLength','private-key','cookie','REDACTED:bearer-jwt','subarray','utf8','REDACTED:access-key'];a94_0x1e72=function(){return _0x1a6128;};return a94_0x1e72();}const a94_0x72e211=a94_0x1918;(function(_0x1efa29,_0x576e2d){const _0x89ab7c=a94_0x1918,_0x159515=_0x1efa29();while(!![]){try{const _0x3f131b=parseInt(_0x89ab7c(0x108))/0x1+-parseInt(_0x89ab7c(0x104))/0x2+-parseInt(_0x89ab7c(0x109))/0x3*(parseInt(_0x89ab7c(0xfc))/0x4)+-parseInt(_0x89ab7c(0x101))/0x5+-parseInt(_0x89ab7c(0x10c))/0x6+parseInt(_0x89ab7c(0x10a))/0x7*(-parseInt(_0x89ab7c(0x105))/0x8)+parseInt(_0x89ab7c(0xfa))/0x9;if(_0x3f131b===_0x576e2d)break;else _0x159515['push'](_0x159515['shift']());}catch(_0x34eb59){_0x159515['push'](_0x159515['shift']());}}}(a94_0x1e72,0x46d49));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a94_0x72e211(0xff),REDACTION_RULES=[{'kind':a94_0x72e211(0x111),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a94_0x72e211(0x107)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a94_0x72e211(0x10d)},{'kind':a94_0x72e211(0x110),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a94_0x72e211(0xfe)},{'kind':'access-key','pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a94_0x72e211(0xf7)},{'kind':a94_0x72e211(0x103),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a94_0x72e211(0xfb)},{'kind':a94_0x72e211(0x106),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a94_0x72e211(0x112)}];export function sanitizeIssueDescription(_0x703f35){const _0x5042ec=a94_0x72e211,_0x4fc636=Buffer['byteLength'](_0x703f35,_0x5042ec(0xf6)),_0xbe4b99=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x47152a=_0x703f35,_0x304802=0x0;const _0x1a9f6e=[];if(!_0xbe4b99)for(const _0x30d1c2 of REDACTION_RULES){let _0x5c8bbb=0x0;_0x47152a=_0x47152a['replace'](_0x30d1c2[_0x5042ec(0xf9)],(_0x54b7d8,_0x153557)=>{const _0x574893=_0x5042ec;_0x5c8bbb+=0x1;const _0x29b172=typeof _0x153557===_0x574893(0x10e)?_0x153557:'';return _0x29b172+'['+_0x30d1c2['label']+']';}),_0x5c8bbb>0x0&&(_0x304802+=_0x5c8bbb,!_0x1a9f6e[_0x5042ec(0xfd)](_0x30d1c2[_0x5042ec(0xf8)])&&_0x1a9f6e[_0x5042ec(0x10b)](_0x30d1c2['kind']));}let _0x1a9a6b=![];if(Buffer['byteLength'](_0x47152a,_0x5042ec(0xf6))>ISSUE_DESCRIPTION_MAX_BYTES){_0x1a9a6b=!![];const _0x56a73f=Buffer[_0x5042ec(0x10f)](TRUNCATION_NOTICE,_0x5042ec(0xf6)),_0x57b5fa=Math[_0x5042ec(0x102)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x56a73f);_0x47152a=sliceUtf8Bytes(_0x47152a,_0x57b5fa)+TRUNCATION_NOTICE;}return{'description':_0x47152a,'originalBytes':_0x4fc636,'truncated':_0x1a9a6b,'redactionCount':_0x304802,'redactionKinds':_0x1a9f6e};}function sliceUtf8Bytes(_0x679b43,_0x5d3e10){const _0x12460a=a94_0x72e211;if(_0x5d3e10<=0x0)return'';const _0x4b2e69=Buffer['from'](_0x679b43,_0x12460a(0xf6));if(_0x4b2e69[_0x12460a(0x10f)]<=_0x5d3e10)return _0x679b43;let _0x325350=_0x5d3e10;while(_0x325350>0x0){const _0x84659e=_0x4b2e69[_0x325350];if(_0x84659e===undefined||(_0x84659e&0xc0)!==0x80)break;_0x325350-=0x1;}return _0x4b2e69[_0x12460a(0xf5)](0x0,_0x325350)[_0x12460a(0x100)]('utf8');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a95_0x467d(_0x241b2a,_0x44e8b9){_0x241b2a=_0x241b2a-0x1da;const _0xc93c84=a95_0xc93c();let _0x467de4=_0xc93c84[_0x241b2a];return _0x467de4;}const a95_0x43a8d6=a95_0x467d;function a95_0xc93c(){const _0x4b7fb5=['toLocaleString','*\x20Logs\x20cleared','1485852aPBnJL','8hvrMsw','20208tcTEvm','\x20\x20\x20Details:\x20','keys','level','command','warn','error','8147025pOJFnA','log','timestamp','1147798ienGCc','duration','4373733qbxgPG','3872ZXPWhD','success','length','1211073jKexwE','details','read','1ndBEnw','4952510JrAHFI','clearLogs','Clear\x20command\x20history\x20logs','readLogs','10kxoZEj','show','4LvcyPq','*\x20No\x20logs\x20found','stringify','logs','write'];a95_0xc93c=function(){return _0x4b7fb5;};return a95_0xc93c();}(function(_0x249bfa,_0x1e1dff){const _0x3571bd=a95_0x467d,_0x166daa=_0x249bfa();while(!![]){try{const _0x473e6f=parseInt(_0x3571bd(0x1e0))/0x1*(parseInt(_0x3571bd(0x1fa))/0x2)+parseInt(_0x3571bd(0x1dd))/0x3*(parseInt(_0x3571bd(0x1e7))/0x4)+parseInt(_0x3571bd(0x1e5))/0x5*(parseInt(_0x3571bd(0x1ee))/0x6)+-parseInt(_0x3571bd(0x1fc))/0x7+-parseInt(_0x3571bd(0x1ef))/0x8*(-parseInt(_0x3571bd(0x1f7))/0x9)+-parseInt(_0x3571bd(0x1e1))/0xa+-parseInt(_0x3571bd(0x1da))/0xb*(parseInt(_0x3571bd(0x1f0))/0xc);if(_0x473e6f===_0x1e1dff)break;else _0x166daa['push'](_0x166daa['shift']());}catch(_0x567f95){_0x166daa['push'](_0x166daa['shift']());}}}(a95_0xc93c,0xa26ad));import{logger}from'../../utils/logger.js';function printLogs(_0x2367f4){const _0x5ee9f2=a95_0x467d;if(_0x2367f4[_0x5ee9f2(0x1dc)]===0x0){console['log'](_0x5ee9f2(0x1e8));return;}console[_0x5ee9f2(0x1f8)]('*\x20Lovrabet\x20CLI\x20logs:\x0a'),_0x2367f4['forEach']((_0x116876,_0x36be6f)=>{const _0x2eb44f=_0x5ee9f2,_0x39750d=new Date(_0x116876[_0x2eb44f(0x1f9)])[_0x2eb44f(0x1ec)]('en-US'),_0x2d4bb3=_0x116876[_0x2eb44f(0x1f3)]===_0x2eb44f(0x1db)?'√':_0x116876[_0x2eb44f(0x1f3)]===_0x2eb44f(0x1f6)?'×':_0x116876['level']===_0x2eb44f(0x1f5)?'!':'i';console[_0x2eb44f(0x1f8)](_0x36be6f+0x1+'.\x20'+_0x2d4bb3+'\x20['+_0x116876[_0x2eb44f(0x1f4)]+']\x20'+_0x116876['message']),console[_0x2eb44f(0x1f8)]('\x20\x20\x20Time:\x20'+_0x39750d),_0x116876['duration']&&console[_0x2eb44f(0x1f8)]('\x20\x20\x20Duration:\x20'+_0x116876[_0x2eb44f(0x1fb)]+'ms'),_0x116876[_0x2eb44f(0x1de)]&&Object[_0x2eb44f(0x1f2)](_0x116876[_0x2eb44f(0x1de)])[_0x2eb44f(0x1dc)]>0x0&&console[_0x2eb44f(0x1f8)](_0x2eb44f(0x1f1)+JSON[_0x2eb44f(0x1e9)](_0x116876['details'],null,0x2)),console[_0x2eb44f(0x1f8)]('');});}export const logsDefinitions=[{'service':a95_0x43a8d6(0x1ea),'command':a95_0x43a8d6(0x1e6),'description':'View\x20command\x20history\x20logs','risk':a95_0x43a8d6(0x1df),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xd8a9ab){const _0x4515fb=a95_0x43a8d6;return printLogs(logger[_0x4515fb(0x1e4)]()),{'ok':!![]};}},{'service':a95_0x43a8d6(0x1ea),'command':'clear','description':a95_0x43a8d6(0x1e3),'risk':a95_0x43a8d6(0x1eb),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x21943f){const _0x20165f=a95_0x43a8d6;return logger[_0x20165f(0x1e2)](),console[_0x20165f(0x1f8)](_0x20165f(0x1ed)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x28a343,_0x276ed9){const _0x40272c=a96_0x2d3c,_0x14dfc3=_0x28a343();while(!![]){try{const _0x2024a3=-parseInt(_0x40272c(0xea))/0x1*(parseInt(_0x40272c(0xed))/0x2)+-parseInt(_0x40272c(0xef))/0x3+-parseInt(_0x40272c(0xec))/0x4*(-parseInt(_0x40272c(0xe6))/0x5)+parseInt(_0x40272c(0xe5))/0x6*(-parseInt(_0x40272c(0xee))/0x7)+parseInt(_0x40272c(0xeb))/0x8+parseInt(_0x40272c(0xe8))/0x9*(parseInt(_0x40272c(0xe7))/0xa)+-parseInt(_0x40272c(0xe9))/0xb*(-parseInt(_0x40272c(0xf0))/0xc);if(_0x2024a3===_0x276ed9)break;else _0x14dfc3['push'](_0x14dfc3['shift']());}catch(_0x4a49d6){_0x14dfc3['push'](_0x14dfc3['shift']());}}}(a96_0x59ef,0x5a12a));import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';function a96_0x59ef(){const _0x32eef0=['116128beICcq','370xUAsoW','1496481STOWVC','871491pqVnJt','12dkBhME','12HzthOY','50SpJlQU','10UyQFrM','6272748Bosqhu','247687YZxwXg','1865zTOWCM','3377736PzvFfQ'];a96_0x59ef=function(){return _0x32eef0;};return a96_0x59ef();}function a96_0x2d3c(_0x3755d1,_0x3e5874){_0x3755d1=_0x3755d1-0xe5;const _0x59efaf=a96_0x59ef();let _0x2d3cc3=_0x59efaf[_0x3755d1];return _0x2d3cc3;}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a97_0x479c(){const _0x497519=['2673128oTjYrG','2921219rPFDCk','map','read','sort','list','children','411831luJFyQ','depth','index','resources','No\x20menus\x20found.','parentId','4rSPRgH','string','parse','label','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','boolean','\x20menu(s)','isArray','menu','path','1049535xSPODn','verbose','appCode','POSITIVE_INFINITY','number','visible','length','type','129501niZkuo','25cEeqSZ','item','1676124NGjgZW','push','33126NeqadM','extend'];a97_0x479c=function(){return _0x497519;};return a97_0x479c();}function a97_0x4625(_0x2cf022,_0x1ee6fa){_0x2cf022=_0x2cf022-0xcd;const _0x479c09=a97_0x479c();let _0x462588=_0x479c09[_0x2cf022];return _0x462588;}const a97_0x255a50=a97_0x4625;(function(_0x501705,_0x78a83c){const _0x26b41e=a97_0x4625,_0x3cd003=_0x501705();while(!![]){try{const _0x1806f8=-parseInt(_0x26b41e(0xf2))/0x1*(-parseInt(_0x26b41e(0xe0))/0x2)+-parseInt(_0x26b41e(0xda))/0x3+-parseInt(_0x26b41e(0xcf))/0x4+-parseInt(_0x26b41e(0xcd))/0x5*(parseInt(_0x26b41e(0xd1))/0x6)+parseInt(_0x26b41e(0xd4))/0x7+parseInt(_0x26b41e(0xd3))/0x8+-parseInt(_0x26b41e(0xea))/0x9;if(_0x1806f8===_0x78a83c)break;else _0x3cd003['push'](_0x3cd003['shift']());}catch(_0x1718ae){_0x3cd003['push'](_0x3cd003['shift']());}}}(a97_0x479c,0x4baac));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getMenuTree}from'../../core/api-client.js';export const menuList={'service':a97_0x255a50(0xe8),'command':a97_0x255a50(0xd8),'description':'List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','risk':a97_0x255a50(0xd6),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a97_0x255a50(0xeb),'type':a97_0x255a50(0xe5),'description':a97_0x255a50(0xe4)}],async 'execute'(_0x5c7495){const _0x18c589=a97_0x255a50,_0x400143=_0x5c7495['bool'](_0x18c589(0xeb)),_0x2761e1=await getMenuTree(_0x5c7495[_0x18c589(0xec)],_0x5c7495['cookie']),_0x5e602f=flattenMenuItems(Array['isArray'](_0x2761e1)?_0x2761e1:[],{'verbose':_0x400143,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x5e602f[_0x18c589(0xf0)],'menus':_0x5e602f},'message':_0x5e602f[_0x18c589(0xf0)]===0x0?_0x18c589(0xde):'Found\x20'+_0x5e602f[_0x18c589(0xf0)]+_0x18c589(0xe6)};}};function flattenMenuItems(_0x1801e0,_0xf6a8dc){const _0x5b6580=a97_0x255a50,_0x164155=sortMenuItems(_0x1801e0),_0x2347e1=[];for(const _0x3ac88c of _0x164155){_0x2347e1[_0x5b6580(0xd0)](toMenuListItem(_0x3ac88c,_0xf6a8dc)),Array[_0x5b6580(0xe7)](_0x3ac88c['children'])&&_0x3ac88c[_0x5b6580(0xd9)]['length']>0x0&&_0x2347e1[_0x5b6580(0xd0)](...flattenMenuItems(_0x3ac88c[_0x5b6580(0xd9)],{'verbose':_0xf6a8dc[_0x5b6580(0xeb)],'parentId':_0x3ac88c['id'],'depth':_0xf6a8dc[_0x5b6580(0xdb)]+0x1}));}return _0x2347e1;}function sortMenuItems(_0x48b67c){const _0x210079=a97_0x255a50;return _0x48b67c['map']((_0x322466,_0x42895f)=>({'item':_0x322466,'index':_0x42895f}))[_0x210079(0xd7)]((_0x50c894,_0x336f5d)=>{const _0x45189d=_0x210079,_0x49fcde=normalizeSort(_0x50c894[_0x45189d(0xce)][_0x45189d(0xd7)]),_0x6ef8a2=normalizeSort(_0x336f5d[_0x45189d(0xce)]['sort']);if(_0x49fcde!==_0x6ef8a2)return _0x49fcde-_0x6ef8a2;return _0x50c894[_0x45189d(0xdc)]-_0x336f5d[_0x45189d(0xdc)];})['map'](({item:_0x586552})=>_0x586552);}function toMenuListItem(_0xc3d3d6,_0x5906d1){const _0x2f46df=a97_0x255a50,_0x2230ae={'id':_0xc3d3d6['id'],'parentId':_0x5906d1[_0x2f46df(0xdf)],'depth':_0x5906d1['depth'],'label':normalizeString(_0xc3d3d6[_0x2f46df(0xe3)]),'path':normalizeString(_0xc3d3d6[_0x2f46df(0xe9)]),'type':normalizeString(_0xc3d3d6[_0x2f46df(0xf1)]),'visible':typeof _0xc3d3d6[_0x2f46df(0xef)]===_0x2f46df(0xe5)?_0xc3d3d6[_0x2f46df(0xef)]:null,'sort':typeof _0xc3d3d6['sort']==='number'&&Number['isFinite'](_0xc3d3d6['sort'])?_0xc3d3d6[_0x2f46df(0xd7)]:null,'resources':normalizeResources(_0xc3d3d6[_0x2f46df(0xd2)]?.[_0x2f46df(0xdd)])};return _0x5906d1[_0x2f46df(0xeb)]&&(_0x2230ae[_0x2f46df(0xd2)]=_0xc3d3d6[_0x2f46df(0xd2)]??null),_0x2230ae;}function normalizeSort(_0x46f68f){const _0x5ba146=a97_0x255a50;return typeof _0x46f68f===_0x5ba146(0xee)&&Number['isFinite'](_0x46f68f)?_0x46f68f:Number[_0x5ba146(0xed)];}function normalizeString(_0x5574e8){const _0x23afd9=a97_0x255a50;return typeof _0x5574e8===_0x23afd9(0xe1)?_0x5574e8:'';}function normalizeResources(_0x41c4dd){const _0x24eb9d=a97_0x255a50;if(Array[_0x24eb9d(0xe7)](_0x41c4dd))return _0x41c4dd[_0x24eb9d(0xd5)](String);if(typeof _0x41c4dd!==_0x24eb9d(0xe1))return[];try{const _0x49de09=JSON[_0x24eb9d(0xe2)](_0x41c4dd);return Array[_0x24eb9d(0xe7)](_0x49de09)?_0x49de09[_0x24eb9d(0xd5)](String):[];}catch{return[];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a98_0x21a0(){const _0x346ba9=['path','length','3529141ZXImqL','join','149924QoIAMH','2313SzxQYo','\x20\x20Affected\x20menus:\x20','\x20\x20\x20\x20CSS:\x20','Platform','4323cEOHpV','push','2213592gROaQW','local','\x20\x20No\x20pages\x20to\x20sync.','45bpimjD','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','2247894UsDVSq','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','7phqSsW','(unchanged)','repeat','showOnline','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','\x20\x20\x20\x20JS:\x20\x20','label','max','26ONXQZe','4570jmBoRe','352968TZLQFm','test'];a98_0x21a0=function(){return _0x346ba9;};return a98_0x21a0();}function a98_0x14c6(_0x452ecf,_0x3a429b){_0x452ecf=_0x452ecf-0x85;const _0x21a068=a98_0x21a0();let _0x14c66b=_0x21a068[_0x452ecf];return _0x14c66b;}(function(_0x18e0be,_0x12aaaf){const _0x155c20=a98_0x14c6,_0x2a8be9=_0x18e0be();while(!![]){try{const _0x46eadf=-parseInt(_0x155c20(0x8c))/0x1+-parseInt(_0x155c20(0x8a))/0x2*(-parseInt(_0x155c20(0x97))/0x3)+-parseInt(_0x155c20(0x92))/0x4*(-parseInt(_0x155c20(0x9c))/0x5)+-parseInt(_0x155c20(0x9e))/0x6*(-parseInt(_0x155c20(0xa0))/0x7)+parseInt(_0x155c20(0x99))/0x8+parseInt(_0x155c20(0x93))/0x9*(-parseInt(_0x155c20(0x8b))/0xa)+-parseInt(_0x155c20(0x90))/0xb;if(_0x46eadf===_0x12aaaf)break;else _0x2a8be9['push'](_0x2a8be9['shift']());}catch(_0x53d817){_0x2a8be9['push'](_0x2a8be9['shift']());}}}(a98_0x21a0,0x34c62));function strWidth(_0x17c319){const _0x37f970=a98_0x14c6;let _0x3597aa=0x0;for(const _0x18985d of _0x17c319){_0x3597aa+=/[\u4e00-\u9fa5]/[_0x37f970(0x8d)](_0x18985d)?0x2:0x1;}return _0x3597aa;}function padRight(_0x993b26,_0xda0c3a){const _0x3ebd7e=a98_0x14c6,_0x4cec4e=strWidth(_0x993b26);return _0x993b26+'\x20'[_0x3ebd7e(0xa2)](Math['max'](0x0,_0xda0c3a-_0x4cec4e));}export function renderCompareTable(_0x5a048b,_0x10abdd={}){const _0x5b2acb=a98_0x14c6;if(_0x5a048b['length']===0x0)return'';const _0x514e67=_0x10abdd[_0x5b2acb(0xa3)]??!![],_0xd2b526=Math[_0x5b2acb(0x89)](0x1e,..._0x5a048b['map'](_0x5ed0a8=>strWidth(_0x5ed0a8[_0x5b2acb(0x88)]))),_0x2431f5=0x4,_0x29cb9c=[],_0x108fdd='\x20\x20'+padRight('Menu\x20Name',_0xd2b526),_0x5e27ff=padRight('Local',_0x2431f5),_0x297e08=_0x514e67?'\x20\x20'+padRight(_0x5b2acb(0x96),_0x2431f5):'';_0x29cb9c[_0x5b2acb(0x98)](_0x108fdd+'\x20\x20'+_0x5e27ff+(_0x514e67?_0x297e08:'')),_0x29cb9c[_0x5b2acb(0x98)]('\x20\x20'+'─'[_0x5b2acb(0xa2)](_0xd2b526)+'\x20\x20'+'─'['repeat'](_0x2431f5)+(_0x514e67?'\x20\x20'+'─'[_0x5b2acb(0xa2)](_0x2431f5):''));for(const _0x5b1595 of _0x5a048b){const _0x11da46=padRight(_0x5b1595[_0x5b2acb(0x88)],_0xd2b526),_0x210700=_0x5b1595[_0x5b2acb(0x9a)]?'✓':'✗',_0x213bdd=padRight(_0x210700,_0x2431f5);let _0x5df55b='\x20\x20'+_0x11da46+'\x20\x20'+_0x213bdd;if(_0x514e67){const _0x1cd101=_0x5b1595['online']?'✓':'✗';_0x5df55b+='\x20\x20'+padRight(_0x1cd101,_0x2431f5);}_0x29cb9c[_0x5b2acb(0x98)](_0x5df55b);}return _0x29cb9c[_0x5b2acb(0x91)]('\x0a');}export function renderSyncSummary(_0x2d68e9,_0x25ce57){const _0x435366=a98_0x14c6;if(_0x2d68e9[_0x435366(0x8f)]===0x0)return _0x25ce57?_0x435366(0x86):_0x435366(0x9b);const _0x1dee1a=['\x20\x20'+_0x2d68e9[_0x435366(0x8f)]+_0x435366(0x9f)];for(const _0x4aa77f of _0x2d68e9){_0x1dee1a[_0x435366(0x98)]('\x20\x20\x20\x20•\x20'+_0x4aa77f[_0x435366(0x88)]+'\x20('+_0x4aa77f[_0x435366(0x8e)]+')');}return _0x1dee1a[_0x435366(0x91)]('\x0a');}export function renderUpdateSummary(_0x5c1aa2,_0xfd9ae9){const _0x232112=a98_0x14c6;if(_0x5c1aa2[_0x232112(0x8f)]===0x0)return _0x232112(0x9d);const _0x4b3d0e=['\x20\x20'+_0x5c1aa2[_0x232112(0x8f)]+_0x232112(0x85),_0x232112(0x87)+(_0xfd9ae9[0x0]??_0x232112(0xa1)),_0x232112(0x95)+(_0xfd9ae9[0x1]??_0x232112(0xa1)),'',_0x232112(0x94)+_0x5c1aa2[_0x232112(0x91)](',\x20')];return _0x4b3d0e[_0x232112(0x91)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a99_0x21e1(){var _0x1edda4=['731776qxdKIB','40Buxgcu','56013sNswqQ','3530AwtAre','1511629BBCkDq','8274oEsUwH','716067XrXDDo','7539760MnSlVq','84QrNsCT','3561282EQwUnm'];a99_0x21e1=function(){return _0x1edda4;};return a99_0x21e1();}(function(_0xbcc815,_0x2fc45a){var _0x47c17b=a99_0x4f8f,_0x4b94d=_0xbcc815();while(!![]){try{var _0x529474=parseInt(_0x47c17b(0xd5))/0x1+parseInt(_0x47c17b(0xd9))/0x2+parseInt(_0x47c17b(0xdb))/0x3*(parseInt(_0x47c17b(0xd7))/0x4)+-parseInt(_0x47c17b(0xd2))/0x5*(parseInt(_0x47c17b(0xd4))/0x6)+-parseInt(_0x47c17b(0xd3))/0x7*(parseInt(_0x47c17b(0xda))/0x8)+parseInt(_0x47c17b(0xd8))/0x9+parseInt(_0x47c17b(0xd6))/0xa;if(_0x529474===_0x2fc45a)break;else _0x4b94d['push'](_0x4b94d['shift']());}catch(_0x5c02ec){_0x4b94d['push'](_0x4b94d['shift']());}}}(a99_0x21e1,0x8b42b));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 a99_0x4f8f(_0x428695,_0x5c7000){_0x428695=_0x428695-0xd2;var _0x21e13a=a99_0x21e1();var _0x4f8f74=_0x21e13a[_0x428695];return _0x4f8f74;}export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46ded1,_0x510ee5){const _0x4dd475=a100_0x6785,_0x7ad8d3=_0x46ded1();while(!![]){try{const _0x46d4a2=-parseInt(_0x4dd475(0x160))/0x1*(parseInt(_0x4dd475(0x155))/0x2)+parseInt(_0x4dd475(0x151))/0x3*(parseInt(_0x4dd475(0x15f))/0x4)+-parseInt(_0x4dd475(0x158))/0x5+-parseInt(_0x4dd475(0x159))/0x6*(-parseInt(_0x4dd475(0x153))/0x7)+parseInt(_0x4dd475(0x15d))/0x8*(parseInt(_0x4dd475(0x13a))/0x9)+parseInt(_0x4dd475(0x14b))/0xa+-parseInt(_0x4dd475(0x139))/0xb*(parseInt(_0x4dd475(0x137))/0xc);if(_0x46d4a2===_0x510ee5)break;else _0x7ad8d3['push'](_0x7ad8d3['shift']());}catch(_0x6af834){_0x7ad8d3['push'](_0x7ad8d3['shift']());}}}(a100_0x5cac,0xedac5));function a100_0x6785(_0x458837,_0x8b507e){_0x458837=_0x458837-0x136;const _0x5cacc2=a100_0x5cac();let _0x678523=_0x5cacc2[_0x458837];return _0x678523;}import a100_0xdf9d65 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a100_0x3f9c0b from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function a100_0x5cac(){const _0x4c1171=['\x20\x20JS\x20URL:','8604000QwVgow','catch','trim','red','start','stdin','1195170leGKup','isTTY','28QiXjtq','\x20\x20Checking\x20CSS\x20URL\x20reachability...','186cSlxeE','No\x20local\x20pages\x20found.','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','2508505zmRSNz','2077278YaCTpI','[new]','Cancelled.','label','3792PUbRWE','includes','8ojqfEF','15494KHlHec','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','gray','20662056qXrtqk','error','11qJBMkc','30303cWyofM','name','test','CSS\x20URL\x20check\x20failed','cancelled','has','fail','[already\x20on\x20platform]','map','JS\x20URL\x20checked','length','\x20\x20CSS\x20URL:','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','cyan','No\x20menus\x20selected.','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.'];a100_0x5cac=function(){return _0x4c1171;};return a100_0x5cac();}function onCancel(_0x3c9ea7){const _0x38630f=a100_0x6785;return _0x3c9ea7[_0x38630f(0x14c)](_0x4bb518=>{const _0x14358f=_0x38630f;if(_0x4bb518?.[_0x14358f(0x13b)]==='ExitPromptError')throw CliErrors[_0x14358f(0x13e)]('Cancelled.');throw _0x4bb518;});}export function startSpinner(_0xc709ec){const _0xbed950=a100_0x6785;return a100_0x3f9c0b({'text':_0xc709ec,'color':_0xbed950(0x147)})[_0xbed950(0x14f)]();}export function stopSpinner(_0x4b2adb,_0x474b31,_0x2a07f6){const _0x4a2acb=a100_0x6785;_0x2a07f6?_0x4b2adb['succeed'](_0x474b31):_0x4b2adb[_0x4a2acb(0x140)](_0x474b31);}export async function askConfirm(_0x511ecc){return onCancel(confirm({'message':_0x511ecc,'theme':{'prefix':''}}));}export async function askJsUrl(_0x1380a3){const _0x22c07c=a100_0x6785;while(!![]){const _0x474c67=await onCancel(input({'message':_0x22c07c(0x14a),'default':_0x1380a3,'theme':{'prefix':''}}));if(_0x474c67[_0x22c07c(0x14d)]()==='')throw CliErrors[_0x22c07c(0x13e)]('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x22c07c(0x13c)](_0x474c67[_0x22c07c(0x14d)]())){console[_0x22c07c(0x138)](a100_0xdf9d65[_0x22c07c(0x14e)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x220d72=startSpinner('\x20\x20Checking\x20JS\x20URL\x20reachability...');try{const _0x4cc823=await isUrlReachable(_0x474c67[_0x22c07c(0x14d)]());stopSpinner(_0x220d72,_0x22c07c(0x143),_0x4cc823);if(!_0x4cc823){console['error'](a100_0xdf9d65[_0x22c07c(0x14e)](_0x22c07c(0x161)));continue;}return _0x474c67[_0x22c07c(0x14d)]();}catch(_0x2a0f47){stopSpinner(_0x220d72,'JS\x20URL\x20check\x20failed',![]);throw _0x2a0f47;}}}export async function askCssUrl(_0xe213e5){const _0x4c4f0a=a100_0x6785;while(!![]){const _0x38156a=await onCancel(input({'message':_0x4c4f0a(0x145),'default':_0xe213e5,'theme':{'prefix':''}}));if(_0x38156a[_0x4c4f0a(0x14d)]()==='')throw CliErrors[_0x4c4f0a(0x13e)](_0x4c4f0a(0x15b));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x4c4f0a(0x13c)](_0x38156a['trim']())){console[_0x4c4f0a(0x138)](a100_0xdf9d65[_0x4c4f0a(0x14e)]('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x2553b0=startSpinner(_0x4c4f0a(0x154));try{const _0x4d5c9e=await isUrlReachable(_0x38156a['trim']());stopSpinner(_0x2553b0,'CSS\x20URL\x20checked',_0x4d5c9e);if(!_0x4d5c9e){console[_0x4c4f0a(0x138)](a100_0xdf9d65[_0x4c4f0a(0x14e)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x38156a[_0x4c4f0a(0x14d)]();}catch(_0x4f8540){stopSpinner(_0x2553b0,_0x4c4f0a(0x13d),![]);throw _0x4f8540;}}}export async function selectPages(_0x57e1cd,_0x325231,_0xb922d4){const _0x57909b=a100_0x6785,_0x465231=_0x57e1cd[_0x57909b(0x142)](_0x2dc53b=>({'name':_0x2dc53b['label']+'\x20\x20'+(_0x325231[_0x57909b(0x13f)](_0x2dc53b['path'])?a100_0xdf9d65[_0x57909b(0x136)](_0x57909b(0x141)):a100_0xdf9d65['green'](_0x57909b(0x15a))),'value':_0x2dc53b[_0x57909b(0x15c)],'checked':_0xb922d4?_0xb922d4['includes'](_0x2dc53b[_0x57909b(0x15c)]):!_0x325231['has'](_0x2dc53b['path'])}));if(_0x465231[_0x57909b(0x144)]===0x0)throw new Error(_0x57909b(0x156));const _0x8a3cd0=await onCancel(checkbox({'message':_0x57909b(0x146),'choices':_0x465231,'loop':![],'theme':{'prefix':''}}));if(_0x8a3cd0[_0x57909b(0x144)]===0x0)throw new Error(_0x57909b(0x148));return _0x57e1cd['filter'](_0x1b1be0=>_0x8a3cd0[_0x57909b(0x15e)](_0x1b1be0[_0x57909b(0x15c)]));}export function isInteractive(){const _0x2fb5a4=a100_0x6785;return process[_0x2fb5a4(0x150)][_0x2fb5a4(0x152)]===!![];}export function requireInteractive(){const _0x31cdcd=a100_0x6785;if(!isInteractive())throw new Error(_0x31cdcd(0x157)+_0x31cdcd(0x149));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101_0x26c3a6=a101_0x5755;(function(_0x2bd039,_0x20f91c){const _0xeebb82=a101_0x5755,_0x70fdcb=_0x2bd039();while(!![]){try{const _0x4695d7=-parseInt(_0xeebb82(0xca))/0x1*(-parseInt(_0xeebb82(0xcc))/0x2)+-parseInt(_0xeebb82(0xb8))/0x3+parseInt(_0xeebb82(0xbf))/0x4+parseInt(_0xeebb82(0xbd))/0x5+parseInt(_0xeebb82(0xc3))/0x6*(parseInt(_0xeebb82(0xb3))/0x7)+-parseInt(_0xeebb82(0xba))/0x8+-parseInt(_0xeebb82(0xc1))/0x9*(parseInt(_0xeebb82(0xb5))/0xa);if(_0x4695d7===_0x20f91c)break;else _0x70fdcb['push'](_0x70fdcb['shift']());}catch(_0x116e73){_0x70fdcb['push'](_0x70fdcb['shift']());}}}(a101_0x5e83,0x2895b));function a101_0x5e83(){const _0x12eaa8=['utf-8','match','49611ZfKPyE','isDirectory','1518816HrmEUn','concat','forEach','1043320mMtmzk','index.tsx','490796OfwGRi','path','3288861mkLwqP','push','204DJmLuJ','src/pages','trim','cwd','endsWith','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','.tsx','22tnjsnG','replaceAll','29396UyXybn','replace','17157aFnEwn','join','10jGojMT'];a101_0x5e83=function(){return _0x12eaa8;};return a101_0x5e83();}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a101_0x26c3a6(0xc6)](),a101_0x26c3a6(0xc4));function a101_0x5755(_0x24ac43,_0x1a102b){_0x24ac43=_0x24ac43-0xb2;const _0x5e83f7=a101_0x5e83();let _0x5755b9=_0x5e83f7[_0x24ac43];return _0x5755b9;}export function extractTitleFromComment(_0x2c1e00){const _0x3c3621=a101_0x26c3a6;try{const _0x32ce17=readFileSync(_0x2c1e00,_0x3c3621(0xb6)),_0x56ba73=_0x32ce17[_0x3c3621(0xb7)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x56ba73&&_0x56ba73[0x1]){const _0x157385=_0x56ba73[0x1],_0x527ead=_0x157385['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x527ead&&_0x527ead[0x1])return _0x527ead[0x1][_0x3c3621(0xc5)]();}let _0x319edc=null;const _0x3bab66=_0x32ce17[_0x3c3621(0xb7)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x3bab66&&_0x3bab66[0x1]&&(_0x319edc=_0x3bab66[0x1]);if(!_0x319edc){const _0x17e778=_0x32ce17[_0x3c3621(0xb7)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x17e778&&_0x17e778[0x1]&&(_0x319edc=_0x17e778[0x1]);}if(_0x319edc){const _0x5cf025=new RegExp('\x5cb'+_0x319edc+_0x3c3621(0xc8)),_0x48f1f6=_0x32ce17[_0x3c3621(0xb7)](_0x5cf025);if(_0x48f1f6&&_0x48f1f6[0x1])return _0x48f1f6[0x1];return _0x319edc;}return null;}catch(_0x17f8af){return null;}}export function getLocalPages(_0x370b32=pagesDir,_0x5c26ba=pagesDir){const _0x4019ed=a101_0x26c3a6;let _0x24e450=[];const _0x4937ea=readdirSync(_0x370b32);return _0x4937ea[_0x4019ed(0xbc)](_0x22a691=>{const _0xfef172=_0x4019ed,_0x1c804a=join(_0x370b32,_0x22a691),_0x29d8c3=statSync(_0x1c804a);if(_0x29d8c3&&_0x29d8c3[_0xfef172(0xb9)]())_0x24e450=_0x24e450[_0xfef172(0xbb)](getLocalPages(_0x1c804a,_0x5c26ba));else{if(_0x22a691[_0xfef172(0xc7)](_0xfef172(0xc9))){let _0x4de578=relative(_0x5c26ba,_0x1c804a);_0x4de578[_0xfef172(0xc7)](_0xfef172(0xbe))?_0x4de578=_0x4de578[_0xfef172(0xb2)](/index\.tsx$/,''):_0x4de578=_0x4de578['replace'](/\.tsx$/,'');_0x4de578[_0xfef172(0xc7)](sep)&&(_0x4de578=_0x4de578['slice'](0x0,-0x1));const _0x458b56=_0x4de578['split'](sep)[_0xfef172(0xb4)]('/'),_0x191085=extractTitleFromComment(_0x1c804a),_0x6cd39a=_0x191085||_0x458b56;_0x24e450[_0xfef172(0xc2)]({'path':_0x458b56[_0xfef172(0xcb)]('$',':'),'label':_0x6cd39a});}}}),_0x24e450['filter'](_0x3e4296=>_0x3e4296[_0x4019ed(0xc0)]!=='');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3016c0,_0x17d219){const _0x8af8dd=a102_0x369c,_0x10f4d9=_0x3016c0();while(!![]){try{const _0x4fb293=-parseInt(_0x8af8dd(0x98))/0x1+-parseInt(_0x8af8dd(0xa1))/0x2+parseInt(_0x8af8dd(0x8f))/0x3+parseInt(_0x8af8dd(0x8a))/0x4*(parseInt(_0x8af8dd(0x90))/0x5)+-parseInt(_0x8af8dd(0x9d))/0x6*(-parseInt(_0x8af8dd(0x94))/0x7)+parseInt(_0x8af8dd(0xa8))/0x8*(parseInt(_0x8af8dd(0xa5))/0x9)+-parseInt(_0x8af8dd(0xa4))/0xa*(parseInt(_0x8af8dd(0x9e))/0xb);if(_0x4fb293===_0x17d219)break;else _0x10f4d9['push'](_0x10f4d9['shift']());}catch(_0x5e23b9){_0x10f4d9['push'](_0x10f4d9['shift']());}}}(a102_0xfd91,0xe5549));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(_0x91b5b5){const _0x5cd6ff=a102_0x369c,_0x1d05b8=[];return!isValidJsHttpsUrl(_0x91b5b5)&&_0x1d05b8[_0x5cd6ff(0xa3)](_0x5cd6ff(0x9f)),{'ok':_0x1d05b8['length']===0x0,'errors':_0x1d05b8};}export function validateCssUrl(_0x4286e3){const _0x3630d9=a102_0x369c,_0xe24c9a=[];return!isValidCssHttpsUrl(_0x4286e3)&&_0xe24c9a[_0x3630d9(0xa3)](_0x3630d9(0xa2)),{'ok':_0xe24c9a[_0x3630d9(0x9c)]===0x0,'errors':_0xe24c9a};}export async function validateJsUrlReachable(_0x1ba09a){const _0x23f971=a102_0x369c,_0xa30e6b=validateJsUrl(_0x1ba09a);if(!_0xa30e6b['ok'])return _0xa30e6b;const _0x41cb06=await isUrlReachable(_0x1ba09a);if(!_0x41cb06)_0xa30e6b[_0x23f971(0x8d)][_0x23f971(0xa3)]('JS\x20URL\x20is\x20unreachable');return{'ok':_0xa30e6b[_0x23f971(0x8d)][_0x23f971(0x9c)]===0x0,'errors':_0xa30e6b[_0x23f971(0x8d)]};}export async function validateCssUrlReachable(_0x17fd08){const _0x1cfb42=a102_0x369c,_0xed1dfb=validateCssUrl(_0x17fd08);if(!_0xed1dfb['ok'])return _0xed1dfb;const _0x453a73=await isUrlReachable(_0x17fd08);if(!_0x453a73)_0xed1dfb['errors'][_0x1cfb42(0xa3)](_0x1cfb42(0xa6));return{'ok':_0xed1dfb[_0x1cfb42(0x8d)][_0x1cfb42(0x9c)]===0x0,'errors':_0xed1dfb[_0x1cfb42(0x8d)]};}function a102_0xfd91(){const _0x324986=['has','678080QPcVOQ','fulfilled','map','rejected','length','18fOmhon','2234320FHrXbF','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','path','1959542TCUtkv','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','push','70bjfSFb','981AsVlYl','CSS\x20URL\x20is\x20unreachable','status','48232crjQTX','value','32eweIft','filter','find','errors','label','2202462FhogVf','936160OwnOds','resources','join','extend','2636333LBfwVV','allSettled','trim'];a102_0xfd91=function(){return _0x324986;};return a102_0xfd91();}function a102_0x369c(_0x23230e,_0x1e31ba){_0x23230e=_0x23230e-0x89;const _0xfd91f5=a102_0xfd91();let _0x369ca4=_0xfd91f5[_0x23230e];return _0x369ca4;}export function buildCompareRows(_0x4da4ab,_0x4531f9){const _0x3fae0b=a102_0x369c;return _0x4da4ab[_0x3fae0b(0x9a)](_0x2fedf7=>({'label':_0x2fedf7[_0x3fae0b(0x8e)],'path':_0x2fedf7[_0x3fae0b(0xa0)],'local':!![],'online':_0x4531f9[_0x3fae0b(0x97)](_0x2fedf7[_0x3fae0b(0xa0)])}));}export function filterNewPages(_0x2cd90d,_0xbc0dd8,_0x57859b){const _0x33abb4=a102_0x369c;if(_0x57859b&&_0x57859b[_0x33abb4(0x9c)]>0x0){const _0x5743a0=new Set(_0x57859b[_0x33abb4(0x9a)](_0x2d38c5=>_0x2d38c5[_0x33abb4(0x96)]())),_0x4e39a4=_0x2cd90d['filter'](_0x1e1d03=>_0x5743a0['has'](_0x1e1d03['label']));if(_0x4e39a4[_0x33abb4(0x9c)]===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x5743a0][_0x33abb4(0x92)](',\x20'));return _0x4e39a4;}return _0x2cd90d[_0x33abb4(0x8b)](_0x48e520=>!_0xbc0dd8[_0x33abb4(0x97)](_0x48e520['path']));}export function filterPagesByLabels(_0x2c8e6b,_0x4aa659){const _0x595b24=a102_0x369c,_0x202fda=[],_0x31c809=[];for(const _0xc8b0 of _0x4aa659){const _0x535e9e=_0xc8b0['trim'](),_0x16e791=_0x2c8e6b[_0x595b24(0x8c)](_0x3ab822=>_0x3ab822[_0x595b24(0x8e)]===_0x535e9e);if(_0x16e791)_0x202fda[_0x595b24(0xa3)](_0x16e791);else _0x31c809['push'](_0xc8b0);}return{'matched':_0x202fda,'unmatched':_0x31c809};}export async function doCreateMenus(_0x31f236,_0x16d3df,_0x58ec75,_0x515c24){const _0x58c798=a102_0x369c,_0x24a02a=await createMenus(_0x31f236,_0x16d3df,_0x58ec75,_0x515c24);return{'created':_0x24a02a[_0x58c798(0x9c)],'failed':0x0,'labels':_0x58ec75[_0x58c798(0x9a)](_0x5231d2=>_0x5231d2[_0x58c798(0x8e)]),'menus':_0x24a02a};}export function filterMenusWithResources(_0x493277){const _0x3d09e2=a102_0x369c;return _0x493277[_0x3d09e2(0x8b)](_0x2140d3=>_0x2140d3['resources'][_0x3d09e2(0x9c)]>0x0);}export async function doUpdateCdnUrls(_0x5c4fdc,_0x4d11c3,_0x2edef5,_0xfc4a0d){const _0x4e3a44=a102_0x369c,_0x5626a1=_0x2edef5['filter'](_0x66c7cb=>_0x66c7cb[_0x4e3a44(0x91)][_0x4e3a44(0x9c)]>0x0),_0x5b6084=await Promise[_0x4e3a44(0x95)](_0x5626a1[_0x4e3a44(0x9a)](_0x25e388=>updateMenuCdnUrl(_0x5c4fdc,_0x4d11c3,{'id':_0x25e388['id'],'label':_0x25e388['label'],'path':_0x25e388[_0x4e3a44(0xa0)],'resources':_0xfc4a0d,'extend':_0x25e388[_0x4e3a44(0x93)]??null}))),_0x2b36c5=_0x5b6084['filter'](_0x130d46=>_0x130d46[_0x4e3a44(0xa7)]===_0x4e3a44(0x99))[_0x4e3a44(0x9a)](_0x3e8cfc=>_0x3e8cfc[_0x4e3a44(0x89)]),_0x23b4c7=_0x5b6084['filter'](_0x1007ac=>_0x1007ac[_0x4e3a44(0xa7)]===_0x4e3a44(0x9b))[_0x4e3a44(0x9c)];return{'updated':_0x2b36c5[_0x4e3a44(0x9c)],'failed':_0x23b4c7,'menus':_0x2b36c5};}export async function fetchMenuData(_0x4162a8,_0xde849b){const _0x257b75=a102_0x369c,_0x3dd20c=getLocalPages(),_0x20f9b3=await getOnlineMenuList(_0x4162a8,_0xde849b),_0x4f3f75=new Set(_0x20f9b3[_0x257b75(0x9a)](_0x3272fe=>_0x3272fe[_0x257b75(0xa0)]));return{'localPages':_0x3dd20c,'onlineMenuList':_0x20f9b3,'onlinePaths':_0x4f3f75};}export async function fetchOnlineMenuList(_0x3252b0,_0x58ebf8){return getOnlineMenuList(_0x3252b0,_0x58ebf8);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x18911f,_0x4e7bcb){const _0x4913d8=a103_0x3d49,_0x42ec1f=_0x18911f();while(!![]){try{const _0x83485a=-parseInt(_0x4913d8(0x15d))/0x1*(parseInt(_0x4913d8(0x15b))/0x2)+parseInt(_0x4913d8(0x180))/0x3+parseInt(_0x4913d8(0x17f))/0x4*(parseInt(_0x4913d8(0x17a))/0x5)+-parseInt(_0x4913d8(0x16a))/0x6*(-parseInt(_0x4913d8(0x168))/0x7)+parseInt(_0x4913d8(0x169))/0x8+-parseInt(_0x4913d8(0x16c))/0x9+-parseInt(_0x4913d8(0x164))/0xa*(-parseInt(_0x4913d8(0x17c))/0xb);if(_0x83485a===_0x4e7bcb)break;else _0x42ec1f['push'](_0x42ec1f['shift']());}catch(_0x2c015a){_0x42ec1f['push'](_0x42ec1f['shift']());}}}(a103_0x4188,0x42ef1));import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{createMenuRecord,getMenuTree,updateMenuRecord}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x56e080,_0x36eebe){const _0xc20f64=a103_0x3d49,_0x2b2f11=getEnv();logger[_0xc20f64(0x17d)](_0xc20f64(0x160),isProduction(_0x2b2f11)?'Fetching\x20online\x20menu\x20list...\x20(appCode:\x20'+_0x56e080+')':_0xc20f64(0x159)+_0x56e080+')');const _0x1ad523=await getMenuTree(_0x56e080,_0x36eebe);if(!_0x1ad523)return logger[_0xc20f64(0x17d)]('get-online-menu-list',_0xc20f64(0x183)),[];return logger['info'](_0xc20f64(0x160),_0xc20f64(0x176)+_0x1ad523['length']+_0xc20f64(0x15a)),_0x1ad523[_0xc20f64(0x173)](flattenMenuItem)[_0xc20f64(0x167)]();}function flattenMenuItem(_0x5d522b){const _0xcd3908=a103_0x3d49;let _0xcc98a3=[];try{const _0x10f830=_0x5d522b[_0xcd3908(0x182)]?.[_0xcd3908(0x165)];if(typeof _0x10f830===_0xcd3908(0x174)){const _0x209197=JSON[_0xcd3908(0x17e)](_0x10f830);if(Array[_0xcd3908(0x166)](_0x209197))_0xcc98a3=_0x209197[_0xcd3908(0x173)](String);}else Array[_0xcd3908(0x166)](_0x10f830)&&(_0xcc98a3=_0x10f830[_0xcd3908(0x173)](String));}catch{}const _0x21017a=[{'id':_0x5d522b['id'],'path':_0x5d522b[_0xcd3908(0x15e)],'label':_0x5d522b[_0xcd3908(0x172)],'resources':_0xcc98a3,'extend':_0x5d522b[_0xcd3908(0x182)]??null}];if(_0x5d522b[_0xcd3908(0x15f)]&&_0x5d522b['children']['length']>0x0)for(const _0xa5d927 of _0x5d522b[_0xcd3908(0x15f)]){_0x21017a[_0xcd3908(0x16f)](...flattenMenuItem(_0xa5d927));}return _0x21017a;}export async function createMenu(_0x22ec3c,_0x4975be,_0xa4209){const _0x623259=a103_0x3d49;logger[_0x623259(0x17d)]('create-menu',_0x623259(0x16b)+_0xa4209[_0x623259(0x172)]+'\x20('+_0xa4209['path']+')');const _0x2cb3b6={'appCode':_0x22ec3c,'type':_0x623259(0x177),'sort':0x0,'extend':{'loadScriptMode':_0x623259(0x175),'resources':_0xa4209[_0x623259(0x165)]?JSON[_0x623259(0x184)](_0xa4209[_0x623259(0x165)]):undefined},..._0xa4209},_0x55c824=await createMenuRecord(_0x2cb3b6,_0x4975be,_0x623259(0x171)+_0xa4209[_0x623259(0x172)]+'\x22');return logger[_0x623259(0x17d)]('create-menu',_0x623259(0x181)+_0xa4209[_0x623259(0x172)]),_0x55c824;}function a103_0x4188(){const _0x109a7c=['flat','5341xJSGtk','2605152zOnbIC','1398XZNDjk','Creating\x20menu:\x20','3769461YftOyi','update-menu-cdn-url','create-menus','push','all','Create\x20menu\x20\x22','label','map','string','import','Fetched\x20','procode','create-menu','Start\x20batch\x20menu\x20creation,\x20total\x20','8405NzvBni','Updating\x20menu\x20asset\x20links:\x20','5951TukRAX','info','parse','540VDGhyM','398475oWcfIw','Menu\x20created\x20successfully:\x20','extend','Server\x20returned\x20empty\x20menu\x20list','stringify','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','\x20online\x20menus\x20successfully','194rZDzYj','Menu\x20assets\x20synced:\x20','4058baorIf','path','children','get-online-menu-list','length','Batch\x20menu\x20creation\x20completed,\x20total\x20','Update\x20menu\x20assets\x20\x22','4130ocPCsv','resources','isArray'];a103_0x4188=function(){return _0x109a7c;};return a103_0x4188();}async function createSingleMenu(_0x2acd7d,_0x4ed8ff,_0x5dcfb0,_0x1b742f){const _0x365345=a103_0x3d49,_0x2bb401={'appCode':_0x2acd7d,'type':_0x365345(0x177),'sort':0x0,'extend':{'loadScriptMode':_0x365345(0x175),'resources':_0x1b742f?JSON[_0x365345(0x184)](_0x1b742f):undefined},'label':_0x5dcfb0[_0x365345(0x172)],'path':_0x5dcfb0[_0x365345(0x15e)]},_0x59142d=await createMenuRecord(_0x2bb401,_0x4ed8ff,_0x365345(0x171)+_0x5dcfb0['label']+'\x22');return logger[_0x365345(0x17d)](_0x365345(0x178),_0x365345(0x181)+_0x5dcfb0['label']),_0x59142d;}export async function createMenus(_0x164723,_0x227dd0,_0x1e24c7,_0x256e64){const _0x7442d6=a103_0x3d49;logger[_0x7442d6(0x17d)](_0x7442d6(0x16e),_0x7442d6(0x179)+_0x1e24c7[_0x7442d6(0x161)]);const _0xdfc68c=await Promise[_0x7442d6(0x170)](_0x1e24c7[_0x7442d6(0x173)](_0xf2e2e2=>createSingleMenu(_0x164723,_0x227dd0,_0xf2e2e2,_0x256e64)));return logger[_0x7442d6(0x17d)](_0x7442d6(0x16e),_0x7442d6(0x162)+_0x1e24c7[_0x7442d6(0x161)]),_0xdfc68c;}function a103_0x3d49(_0x411716,_0x20ed21){_0x411716=_0x411716-0x159;const _0x4188e3=a103_0x4188();let _0x3d4964=_0x4188e3[_0x411716];return _0x3d4964;}export async function updateMenuCdnUrl(_0x3fbf99,_0x5d578a,_0x3a3ae9){const _0x8c8d9b=a103_0x3d49;logger['info'](_0x8c8d9b(0x16d),_0x8c8d9b(0x17b)+_0x3a3ae9[_0x8c8d9b(0x172)]+'\x20('+_0x3a3ae9[_0x8c8d9b(0x15e)]+')');const _0x389ebf={'id':_0x3a3ae9['id'],'appCode':_0x3fbf99,'extend':{..._0x3a3ae9[_0x8c8d9b(0x182)]??{},'loadScriptMode':_0x8c8d9b(0x175),'resources':_0x3a3ae9['resources']?JSON[_0x8c8d9b(0x184)](_0x3a3ae9[_0x8c8d9b(0x165)]):undefined}},_0x2f3b2d=await updateMenuRecord(_0x389ebf,_0x5d578a,_0x8c8d9b(0x163)+_0x3a3ae9[_0x8c8d9b(0x172)]+'\x22');return logger[_0x8c8d9b(0x17d)](_0x8c8d9b(0x16d),_0x8c8d9b(0x15c)+_0x3a3ae9[_0x8c8d9b(0x172)],undefined),_0x2f3b2d;}
|