@lovrabet/rabetbase-cli 2.3.4-beta.4 → 2.3.4
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_0x507ae7=a89_0x55d4;(function(_0x220c55,_0xa3c5c4){const _0x5f6afc=a89_0x55d4,_0x86f6d=_0x220c55();while(!![]){try{const _0x36d73c=-parseInt(_0x5f6afc(0x19e))/0x1*(parseInt(_0x5f6afc(0x196))/0x2)+parseInt(_0x5f6afc(0x17e))/0x3+parseInt(_0x5f6afc(0x1a4))/0x4*(parseInt(_0x5f6afc(0x175))/0x5)+parseInt(_0x5f6afc(0x172))/0x6*(parseInt(_0x5f6afc(0x1a6))/0x7)+-parseInt(_0x5f6afc(0x181))/0x8+-parseInt(_0x5f6afc(0x187))/0x9+-parseInt(_0x5f6afc(0x195))/0xa*(-parseInt(_0x5f6afc(0x176))/0xb);if(_0x36d73c===_0xa3c5c4)break;else _0x86f6d['push'](_0x86f6d['shift']());}catch(_0x5d91ab){_0x86f6d['push'](_0x86f6d['shift']());}}}(a89_0x4a1e,0x67b6f));import a89_0x31aa18 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a89_0x4a1e(){const _0x32fad0=['\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','1218AwAmXv','\x20\x20Config\x20JSON','accessKey','385iwuPKU','2846173bgBMov','\x20(default)','\x20doctor','(none)','riskLevel','env','log','Project','1811829wGYODC','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','2121248IyBZnY','platform','message','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','6949926OethpW','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','empty','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20\x20─','check','50inlVYV','1415266cQavXd','missing','read','doctor','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','⚠\x20Empty\x20(treated\x20as\x20{})','1yYwlmi','\x20\x20\x20\x20accessKey:\x20\x20','locale','bold','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Apps','524gHJThd','slice','9037MmgOHY','apiDir','status','length','source','currentApp','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','arch','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','repeat','keys','✗\x20Not\x20logged\x20in','cookie','green','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','red','appCode','(set,\x20length=','raw','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','Global','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','apps','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','(not\x20set)','(default)','defaultApp','\x20\x20runtimeDomain:\x20\x20\x20','value'];a89_0x4a1e=function(){return _0x32fad0;};return a89_0x4a1e();}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';function a89_0x55d4(_0x17f5f9,_0x2952c5){_0x17f5f9=_0x17f5f9-0x159;const _0x4a1ee2=a89_0x4a1e();let _0x55d4e4=_0x4a1ee2[_0x17f5f9];return _0x55d4e4;}import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x128e74){const _0xdb4343=a89_0x55d4,_0x29db0b=GIT_COMMIT!==_0xdb4343(0x18b)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xdb4343(0x1a5)](0x0,0xa)+')':VERSION,_0x50ffe3=buildConfigFromFlags({}),_0x40e346=getCookie();console[_0xdb4343(0x17c)](),console['log'](a89_0x31aa18[_0xdb4343(0x1a1)](CLI_BIN_NAME+_0xdb4343(0x178))),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x192)]('─'[_0xdb4343(0x1b0)](0x32))),console[_0xdb4343(0x17c)](_0xdb4343(0x18f)+_0x29db0b),console['log'](_0xdb4343(0x191)+process['version']),console[_0xdb4343(0x17c)](_0xdb4343(0x185)+process[_0xdb4343(0x182)]+'\x20'+process[_0xdb4343(0x1ae)]),console[_0xdb4343(0x17c)](),console['log'](a89_0x31aa18['bold']('\x20\x20Config\x20Files')),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x192)]('\x20\x20─'[_0xdb4343(0x1b0)](0x1e)));const _0x28f569=getGlobalConfigPath(),_0x589a29=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x28f569||a89_0x31aa18[_0xdb4343(0x192)]('(not\x20found)'))),console['log'](_0xdb4343(0x16a)+(_0x589a29||a89_0x31aa18[_0xdb4343(0x192)]('(not\x20found)'))),console['log'](),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x1a1)](_0xdb4343(0x173))),console['log'](a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x193)['repeat'](0x1e)));const _0x1d946c=(_0x522e93,_0x3a9187)=>{const _0x4d54d0=_0xdb4343;if(!_0x3a9187){console['log']('\x20\x20'+_0x522e93['padEnd'](0x11)+'\x20'+a89_0x31aa18[_0x4d54d0(0x192)](_0x4d54d0(0x189)));return;}const _0x33027d=inspectCliConfigJsonFile(_0x3a9187);if(_0x33027d[_0x4d54d0(0x1a8)]==='ok')console[_0x4d54d0(0x17c)]('\x20\x20'+_0x522e93['padEnd'](0x11)+'\x20'+a89_0x31aa18[_0x4d54d0(0x15b)]('✓\x20Valid\x20JSON'));else{if(_0x33027d[_0x4d54d0(0x1a8)]===_0x4d54d0(0x18c))console[_0x4d54d0(0x17c)]('\x20\x20'+_0x522e93[_0x4d54d0(0x18e)](0x11)+'\x20'+a89_0x31aa18['yellow'](_0x4d54d0(0x19d)));else _0x33027d[_0x4d54d0(0x1a8)]===_0x4d54d0(0x197)?console[_0x4d54d0(0x17c)]('\x20\x20'+_0x522e93['padEnd'](0x11)+'\x20'+a89_0x31aa18[_0x4d54d0(0x192)]('(missing)')):(console[_0x4d54d0(0x17c)]('\x20\x20'+_0x522e93[_0x4d54d0(0x18e)](0x11)+'\x20'+a89_0x31aa18[_0x4d54d0(0x15d)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a89_0x31aa18[_0x4d54d0(0x15d)](_0x33027d[_0x4d54d0(0x183)])));}};_0x1d946c(_0xdb4343(0x163),_0x28f569),_0x1d946c(_0xdb4343(0x17d),_0x589a29),console['log'](),console[_0xdb4343(0x17c)](a89_0x31aa18['bold']('\x20\x20Merged\x20Config')),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x193)[_0xdb4343(0x1b0)](0x1e))),console[_0xdb4343(0x17c)](_0xdb4343(0x1ac)+(_0x50ffe3[_0xdb4343(0x15e)]||a89_0x31aa18['red'](_0xdb4343(0x16c)))),console[_0xdb4343(0x17c)](_0xdb4343(0x19b)+_0x50ffe3['env']),console['log'](_0xdb4343(0x165)+_0x50ffe3[_0xdb4343(0x1a0)]),console[_0xdb4343(0x17c)](_0xdb4343(0x18d)+_0x50ffe3[_0xdb4343(0x1a7)]),console[_0xdb4343(0x17c)](_0xdb4343(0x1af)+(_0x50ffe3['defaultApp']||a89_0x31aa18['gray'](_0xdb4343(0x179)))),console[_0xdb4343(0x17c)](_0xdb4343(0x184)+(_0x50ffe3[_0xdb4343(0x1ab)]||a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x179)))),console['log'](_0xdb4343(0x162)+(_0x50ffe3[_0xdb4343(0x186)]||a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x179)))),console['log'](_0xdb4343(0x17f)+(_0x50ffe3[_0xdb4343(0x19c)]||a89_0x31aa18['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0xdb4343(0x17c)](_0xdb4343(0x188)+(_0x50ffe3['pageSize']??a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x16d)))),console['log'](_0xdb4343(0x161)+_0x50ffe3[_0xdb4343(0x17a)]),console['log'](_0xdb4343(0x171)+_0x50ffe3[_0xdb4343(0x166)]),console[_0xdb4343(0x17c)](_0xdb4343(0x18a)+(_0x50ffe3['cookie']?a89_0x31aa18[_0xdb4343(0x15b)](_0xdb4343(0x15f)+_0x50ffe3['cookie'][_0xdb4343(0x1a9)]+')'):_0x40e346?a89_0x31aa18[_0xdb4343(0x15b)]('(set\x20via\x20file,\x20length='+_0x40e346[_0xdb4343(0x1a9)]+')'):a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x179))));const _0x532c56=Object[_0xdb4343(0x1b1)](_0x50ffe3[_0xdb4343(0x167)]);if(_0x532c56[_0xdb4343(0x1a9)]>0x0){console[_0xdb4343(0x17c)](),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x1a1)](_0xdb4343(0x1a3))),console[_0xdb4343(0x17c)](a89_0x31aa18['gray'](_0xdb4343(0x193)['repeat'](0x1e)));for(const _0x543c12 of _0x532c56){const _0x11d3c3=_0x50ffe3[_0xdb4343(0x167)][_0x543c12],_0xde355f=_0x543c12===_0x50ffe3[_0xdb4343(0x16e)],_0x37aeac=_0x543c12===_0x50ffe3[_0xdb4343(0x1ab)],_0x58ea98=_0x37aeac?a89_0x31aa18[_0xdb4343(0x15b)](_0xdb4343(0x1ad)):'',_0x1344a5=_0xde355f?_0xdb4343(0x177):'';console[_0xdb4343(0x17c)]('\x20\x20'+_0x543c12+_0x1344a5+_0x58ea98),console[_0xdb4343(0x17c)](_0xdb4343(0x19a)+_0x11d3c3['appcode']);const _0x115985=buildAppDoctorFields(_0x11d3c3,{'env':_0x50ffe3['env'],'apiDir':_0x50ffe3[_0xdb4343(0x160)][_0xdb4343(0x1a7)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x50ffe3[_0xdb4343(0x15a)]||_0x40e346||undefined,'accessKey':_0x50ffe3[_0xdb4343(0x174)]});console[_0xdb4343(0x17c)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x115985[_0xdb4343(0x17b)]['value']+'\x20\x20'+a89_0x31aa18['gray']('('+_0x115985[_0xdb4343(0x17b)][_0xdb4343(0x1aa)]+')')),console[_0xdb4343(0x17c)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x115985['apiDir'][_0xdb4343(0x170)]+'\x20\x20'+a89_0x31aa18[_0xdb4343(0x192)]('('+_0x115985[_0xdb4343(0x1a7)]['source']+')'));const _0x38cacb=_0x115985['cookie'][_0xdb4343(0x170)]?a89_0x31aa18[_0xdb4343(0x15b)](_0xdb4343(0x15f)+_0x115985[_0xdb4343(0x15a)][_0xdb4343(0x170)][_0xdb4343(0x1a9)]+')'):a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x179));console[_0xdb4343(0x17c)](_0xdb4343(0x164)+_0x38cacb+'\x20\x20'+a89_0x31aa18[_0xdb4343(0x192)]('('+_0x115985[_0xdb4343(0x15a)]['source']+')'));const _0x483aae=_0x115985[_0xdb4343(0x174)]['value']?a89_0x31aa18[_0xdb4343(0x15b)](_0xdb4343(0x15f)+_0x115985['accessKey'][_0xdb4343(0x170)][_0xdb4343(0x1a9)]+')'):a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x179));console['log'](_0xdb4343(0x19f)+_0x483aae+'\x20\x20'+a89_0x31aa18['gray']('('+_0x115985[_0xdb4343(0x174)][_0xdb4343(0x1aa)]+')'));}}console[_0xdb4343(0x17c)](),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x1a1)]('\x20\x20API\x20Endpoints')),console['log'](a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x193)['repeat'](0x1e))),console[_0xdb4343(0x17c)](_0xdb4343(0x168)+getApiDomain()),console[_0xdb4343(0x17c)](_0xdb4343(0x1a2)+getUserDomain()),console['log'](_0xdb4343(0x16f)+getRuntimeDomain()),console[_0xdb4343(0x17c)](),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x1a1)](_0xdb4343(0x169))),console[_0xdb4343(0x17c)](a89_0x31aa18['gray'](_0xdb4343(0x193)[_0xdb4343(0x1b0)](0x1e)));if(_0x40e346){const _0x114e7d=await getIsSessionValid();console['log'](_0xdb4343(0x190)+(_0x114e7d?a89_0x31aa18['green'](_0xdb4343(0x180)):a89_0x31aa18[_0xdb4343(0x15d)](_0xdb4343(0x16b))));}else console[_0xdb4343(0x17c)](_0xdb4343(0x190)+a89_0x31aa18[_0xdb4343(0x15d)](_0xdb4343(0x159)));return console[_0xdb4343(0x17c)](),{'ok':!![]};}export const doctorDefinition={'service':a89_0x507ae7(0x199),'command':a89_0x507ae7(0x194),'description':a89_0x507ae7(0x15c),'risk':a89_0x507ae7(0x198),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90_0xaa739=a90_0x463b;(function(_0x480f29,_0x43eb88){const _0x559d91=a90_0x463b,_0x189a63=_0x480f29();while(!![]){try{const _0x383808=-parseInt(_0x559d91(0xd0))/0x1*(parseInt(_0x559d91(0xc7))/0x2)+parseInt(_0x559d91(0xc5))/0x3*(parseInt(_0x559d91(0xce))/0x4)+parseInt(_0x559d91(0xdb))/0x5+parseInt(_0x559d91(0xdc))/0x6*(parseInt(_0x559d91(0xc8))/0x7)+-parseInt(_0x559d91(0xe4))/0x8*(parseInt(_0x559d91(0xda))/0x9)+parseInt(_0x559d91(0xd4))/0xa+-parseInt(_0x559d91(0xd5))/0xb;if(_0x383808===_0x43eb88)break;else _0x189a63['push'](_0x189a63['shift']());}catch(_0xdfa350){_0x189a63['push'](_0x189a63['shift']());}}}(a90_0x3157,0x9f0fe));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(_0x174675){return{'appCode':_0x174675,'appName':_0x174675};}function a90_0x3157(){const _0x3c40de=['\x20\x20Env:\x20','boolean','\x20\x20Apps:\x20','136ZJYOaE','\x0a✓\x20Successfully\x20initialized\x20','write','project','\x20config','env','检测到旧配置文件,正在自动升级...\x0a','str','map','\x20\x20Config:\x20','validation','init','appcode','../../commands/project/init.js','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','toLocaleString','log','3VYyHNX','nonInteractive','4ccIXne','1692145yqcxLd','custom','valid','Write\x20to\x20global\x20config\x20instead\x20of\x20project','string','bool','2007592ytxBvA','run','326567SqVmDh','yes','global','flagMissing','6709280mZVJUA','6323592JGeulu','production','some','\x20\x20Default:\x20','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','171009faSyRy','313875JPRzpF','24dvcMBt','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','appCode','Auto-confirm\x20prompts','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.'];a90_0x3157=function(){return _0x3c40de;};return a90_0x3157();}function a90_0x463b(_0x41ad4e,_0x449900){_0x41ad4e=_0x41ad4e-0xc5;const _0x315730=a90_0x3157();let _0x463b61=_0x315730[_0x41ad4e];return _0x463b61;}function writeInitConfig(_0x1e23ab,_0x6498ec,_0x1a146e){const _0x15758d=a90_0x463b,_0x18b84b=resolveWriteConfigPath(_0x1e23ab),_0x430cc8=buildCanonicalProjectConfig({},{'appCodes':_0x6498ec[_0x15758d(0xec)](_0x59136e=>_0x59136e[_0x15758d(0xde)]),'env':_0x1a146e,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x15758d(0xf3)]()}});writeConfigFile(_0x18b84b,_0x430cc8);const _0x2b7e8a=_0x1e23ab===_0x15758d(0xd2)?_0x15758d(0xd2):'project';console[_0x15758d(0xf4)](_0x15758d(0xe5)+_0x2b7e8a+_0x15758d(0xe8)),console['log'](_0x15758d(0xe3)+_0x6498ec['map'](_0x377714=>_0x377714['appCode'])['join'](',\x20')),console['log'](_0x15758d(0xd8)+_0x430cc8['defaultApp']),console[_0x15758d(0xf4)](_0x15758d(0xe1)+_0x430cc8['env']),console[_0x15758d(0xf4)](_0x15758d(0xed)+_0x18b84b);}async function runSmartInit(_0x2ca235){const _0x1fc026=a90_0x463b,_0x2c2c6f=process['cwd'](),_0x49b4f0=_0x2ca235[_0x1fc026(0xcd)](_0x1fc026(0xd2))?_0x1fc026(0xd2):_0x1fc026(0xe7),_0x3d230e=_0x2ca235[_0x1fc026(0xeb)](_0x1fc026(0xe9))||_0x1fc026(0xd6),_0x27c524=_0x2ca235['str']('appcode')||undefined,_0x2d36b5=_0x2ca235[_0x1fc026(0xcd)](_0x1fc026(0xe7));if(_0x2d36b5){const {initConfig:_0x1665ce}=await import(_0x1fc026(0xf1));return _0x1665ce({'appcode':_0x27c524,'env':_0x3d230e,'autoYes':_0x2ca235[_0x1fc026(0xcd)](_0x1fc026(0xd1))});}if(_0x49b4f0==='project'){const _0x46cc76=existsSync(resolve(_0x2c2c6f,NEW_CONFIG_NAME)),_0x1d06be=LEGACY_CONFIG_NAMES[_0x1fc026(0xd7)](_0x36d893=>existsSync(resolve(_0x2c2c6f,_0x36d893)));if(_0x1d06be&&!_0x46cc76)return console[_0x1fc026(0xf4)](_0x1fc026(0xea)),upgradeApp(_0x2ca235[_0x1fc026(0xc6)],{'yes':_0x2ca235['bool']('yes')});if(_0x46cc76)throw CliErrors[_0x1fc026(0xee)](_0x1fc026(0xf2),'Use\x20`'+CLI_BIN_NAME+_0x1fc026(0xe0));}if(_0x27c524){const _0x1d30d8=validateAppcode(_0x27c524);if(!_0x1d30d8[_0x1fc026(0xca)])throw CliErrors[_0x1fc026(0xee)](_0x1d30d8['message']);writeInitConfig(_0x49b4f0,[syntheticApp(_0x27c524)],_0x3d230e);return;}if(_0x2ca235[_0x1fc026(0xc6)])throw CliErrors[_0x1fc026(0xd3)](_0x1fc026(0xf0),'Usage:\x20'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x551ed7=getCookie(),_0x494dd0=await selectMultipleApps(_0x551ed7),_0x48bff6=_0x494dd0===_0x1fc026(0xc9)?[syntheticApp(await promptCustomAppcode())]:_0x494dd0;writeInitConfig(_0x49b4f0,_0x48bff6,_0x3d230e);}const initFlags=[{'name':'global','type':'boolean','description':a90_0xaa739(0xcb),'default':![]},{'name':a90_0xaa739(0xe9),'type':'string','description':'Target\x20environment','default':a90_0xaa739(0xd6),'enum':[...RABETBASE_ENV_VALUES]},{'name':a90_0xaa739(0xf0),'type':a90_0xaa739(0xcc),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':a90_0xaa739(0xe7),'type':a90_0xaa739(0xe2),'description':a90_0xaa739(0xdd),'default':![]},{'name':a90_0xaa739(0xd1),'type':a90_0xaa739(0xe2),'description':a90_0xaa739(0xdf),'default':![]}];export const initDefinitions=[{'service':a90_0xaa739(0xef),'command':a90_0xaa739(0xcf),'description':a90_0xaa739(0xd9),'risk':a90_0xaa739(0xe6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x261d19){return await runSmartInit(_0x261d19),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a91_0x4e33(_0x56394e,_0x39f76a){_0x56394e=_0x56394e-0x110;const _0x99be32=a91_0x99be();let _0x4e3392=_0x99be32[_0x56394e];return _0x4e3392;}(function(_0x1c7f0c,_0x494fdd){const _0x100bd6=a91_0x4e33,_0x25d834=_0x1c7f0c();while(!![]){try{const _0x1f8dec=-parseInt(_0x100bd6(0x110))/0x1+-parseInt(_0x100bd6(0x119))/0x2*(parseInt(_0x100bd6(0x114))/0x3)+parseInt(_0x100bd6(0x111))/0x4*(-parseInt(_0x100bd6(0x116))/0x5)+parseInt(_0x100bd6(0x11a))/0x6+parseInt(_0x100bd6(0x117))/0x7*(-parseInt(_0x100bd6(0x113))/0x8)+parseInt(_0x100bd6(0x118))/0x9*(parseInt(_0x100bd6(0x112))/0xa)+parseInt(_0x100bd6(0x115))/0xb;if(_0x1f8dec===_0x494fdd)break;else _0x25d834['push'](_0x25d834['shift']());}catch(_0x25ea90){_0x25d834['push'](_0x25d834['shift']());}}}(a91_0x99be,0xb608f));import{issueReport}from'../../commands/issue/report.js';function a91_0x99be(){const _0x4132ce=['48542956uMiXCa','7005175khntup','5411jEbWZt','18fOvgNi','230Anazhc','48210FMuNkG','602446bHwgYV','4LMsTdf','5177270bsfDaP','13584xkfaqI','36387csQyuT'];a91_0x99be=function(){return _0x4132ce;};return a91_0x99be();}export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a92_0x22e208=a92_0x1d06;function a92_0x1d06(_0x334dd2,_0x4cb0d0){_0x334dd2=_0x334dd2-0x100;const _0x312f5b=a92_0x312f();let _0x1d061f=_0x312f5b[_0x334dd2];return _0x1d061f;}function a92_0x312f(){const _0x5384ff=['335190xqIENi','Hit\x20a\x20','2285266upPNae','\x20\x20Set\x20','=1\x20to\x20silence\x20this\x20hint.','\x20bug?\x20Help\x20us\x20fix\x20it:','flag_missing','RABETBASE_DISABLE_ISSUE_NUDGE','validation_error','75ZwsKzq','slice','join','write','stderr','138dUGPfa','trim','length','8266888WwOdlm','\x20\x20\x20\x20--title\x20\x22','15807070RqilWt','has','auth_required','report','replace','not_in_project','command','77768hoqSnB','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','2459176nfvYUg','27bjpggD','service','\x20issue\x20report\x20\x5c','1579315EnQVMA','unknown_command','message','network_error'];a92_0x312f=function(){return _0x5384ff;};return a92_0x312f();}(function(_0x53a7fb,_0x49b164){const _0x2030be=a92_0x1d06,_0x4303b2=_0x53a7fb();while(!![]){try{const _0x5202f4=parseInt(_0x2030be(0x116))/0x1+-parseInt(_0x2030be(0x11c))/0x2+-parseInt(_0x2030be(0x123))/0x3*(parseInt(_0x2030be(0x110))/0x4)+-parseInt(_0x2030be(0x11a))/0x5*(-parseInt(_0x2030be(0x104))/0x6)+-parseInt(_0x2030be(0x107))/0x7+-parseInt(_0x2030be(0x112))/0x8*(parseInt(_0x2030be(0x113))/0x9)+parseInt(_0x2030be(0x109))/0xa;if(_0x5202f4===_0x49b164)break;else _0x4303b2['push'](_0x4303b2['shift']());}catch(_0xa3b27c){_0x4303b2['push'](_0x4303b2['shift']());}}}(a92_0x312f,0xecd36));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a92_0x22e208(0x121);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a92_0x22e208(0x10b),'config_missing',a92_0x22e208(0x10e),a92_0x22e208(0x117),a92_0x22e208(0x120),a92_0x22e208(0x122),a92_0x22e208(0x119)]),defaultWriter=_0x529f9a=>{const _0x351144=a92_0x22e208;process[_0x351144(0x103)][_0x351144(0x102)](_0x529f9a);};export function shouldNudgeForError(_0x2835ed,_0x67df29){const _0x54b360=a92_0x22e208;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x67df29[_0x54b360(0x114)]==='issue'&&_0x67df29[_0x54b360(0x10f)]===_0x54b360(0x10c))return![];if(_0x2835ed instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x54b360(0x10a)](_0x2835ed['code']);return!![];}export function printIssueReportNudgeForError(_0x49b765,_0x5de228,_0xf5b13a=defaultWriter){if(!shouldNudgeForError(_0x49b765,_0x5de228))return;const _0x820e6a=buildSuggestedTitle(_0x49b765,_0x5de228);_0xf5b13a(formatNudge(_0x820e6a));}function buildSuggestedTitle(_0x403915,_0x5c4b79){const _0x2a434c=a92_0x22e208,_0x595eca=_0x403915 instanceof Error?_0x403915[_0x2a434c(0x118)]:String(_0x403915),_0xadf2e5=_0x595eca[_0x2a434c(0x10d)](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x2a434c(0x105)]()[_0x2a434c(0x100)](0x0,0x78)[_0x2a434c(0x10d)](/"/g,'\x5c\x22'),_0x185365=CLI_BIN_NAME+'\x20'+_0x5c4b79['service']+'\x20'+_0x5c4b79[_0x2a434c(0x10f)];return _0xadf2e5[_0x2a434c(0x106)]>0x0?_0x185365+':\x20'+_0xadf2e5:_0x185365;}function formatNudge(_0x45da9f){const _0xefebd=a92_0x22e208;return['',_0xefebd(0x11b)+CLI_BIN_NAME+_0xefebd(0x11f),'\x20\x20'+CLI_BIN_NAME+_0xefebd(0x115),_0xefebd(0x108)+_0x45da9f+'\x22\x20\x5c','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0xefebd(0x111),_0xefebd(0x11d)+NUDGE_OPT_OUT_ENV+_0xefebd(0x11e),''][_0xefebd(0x101)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x2fbfd1=a93_0x4b67;(function(_0x1da1db,_0x3b20a8){const _0x3cab11=a93_0x4b67,_0x33f288=_0x1da1db();while(!![]){try{const _0x3f4f8b=-parseInt(_0x3cab11(0x158))/0x1*(parseInt(_0x3cab11(0x155))/0x2)+parseInt(_0x3cab11(0x144))/0x3*(-parseInt(_0x3cab11(0x15f))/0x4)+parseInt(_0x3cab11(0x147))/0x5*(-parseInt(_0x3cab11(0x138))/0x6)+parseInt(_0x3cab11(0x156))/0x7*(-parseInt(_0x3cab11(0x135))/0x8)+parseInt(_0x3cab11(0x14c))/0x9+-parseInt(_0x3cab11(0x14a))/0xa+parseInt(_0x3cab11(0x14d))/0xb;if(_0x3f4f8b===_0x3b20a8)break;else _0x33f288['push'](_0x33f288['shift']());}catch(_0x454afa){_0x33f288['push'](_0x33f288['shift']());}}}(a93_0x86aa,0xb365e));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a93_0x86aa(){const _0x21759d=['23238479zNpDfH','sanitize','push','\x20bytes','issue.description_truncated','string','length','validation','1054268kHpsxy','28THzMQc','descriptionFile:\x20','1BTbspq','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','title','filter','issue.title','descriptionSource','join','300isZnBi','POST','truncated\x20from\x20','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','inline','Failed\x20to\x20report\x20platform\x20issue:\x20','redactionCount','Issue\x20description\x20cannot\x20be\x20empty.','description-file','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','722680fVgLoC','truncated','descriptionFilePath','42wGNTby','message','compress','redactionKinds','issue.description','originalBytes','trim','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','otel://','cwd','flagMissing','One-line\x20issue\x20summary','3723KoWetj','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','str','201270tjAtrl','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','description','13507210hopinv','issue.description_redaction_kinds','11126457laWYLM'];a93_0x86aa=function(){return _0x21759d;};return a93_0x86aa();}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_0x2fbfd1(0x132);export const issueReport={'service':'issue','command':'report','description':a93_0x2fbfd1(0x162),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a93_0x2fbfd1(0x13a),'flags':[{'name':'title','type':a93_0x2fbfd1(0x152),'required':!![],'description':a93_0x2fbfd1(0x143)},{'name':a93_0x2fbfd1(0x149),'type':a93_0x2fbfd1(0x152),'description':a93_0x2fbfd1(0x134)},{'name':DESCRIPTION_FILE_FLAG,'type':a93_0x2fbfd1(0x152),'description':a93_0x2fbfd1(0x13f)}],async 'validate'(_0x29009b){const _0x525745=a93_0x2fbfd1,_0x543e57=_0x29009b[_0x525745(0x146)](_0x525745(0x15a))[_0x525745(0x13e)](),_0x33e4d1=_0x29009b['str']('description')[_0x525745(0x13e)](),_0xbd77b=_0x29009b['str'](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x543e57)throw CliErrors[_0x525745(0x142)]('title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x152acb=_0x33e4d1[_0x525745(0x153)]>0x0,_0x4ff947=_0xbd77b[_0x525745(0x153)]>0x0;if(_0x152acb===_0x4ff947)throw CliErrors[_0x525745(0x154)](_0x525745(0x145),_0x525745(0x159));if(_0x4ff947){const _0x3f6094=resolve(process[_0x525745(0x141)](),_0xbd77b);if(!existsSync(_0x3f6094))throw CliErrors[_0x525745(0x154)]('File\x20not\x20found:\x20'+_0x3f6094);}},async 'dryRun'(_0x59dce8){const _0x3efd3d=a93_0x2fbfd1,_0x8eda6a=await prepareIssueReport(_0x59dce8);return{'method':_0x3efd3d(0x160),'url':_0x3efd3d(0x140)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x8eda6a[_0x3efd3d(0x15a)],'issue.description':_0x8eda6a['description'],'issue.description_original_bytes':_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x13d)],'issue.description_truncated':_0x8eda6a['sanitize'][_0x3efd3d(0x136)],'issue.description_redactions':_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x130)],'issue.description_redaction_kinds':_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x13b)][_0x3efd3d(0x15e)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionSource:\x20'+_0x8eda6a['descriptionSource'],_0x8eda6a[_0x3efd3d(0x137)]?_0x3efd3d(0x157)+_0x8eda6a[_0x3efd3d(0x137)]:null,_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x136)]?'truncated:\x20original\x20'+_0x8eda6a['sanitize'][_0x3efd3d(0x13d)]+_0x3efd3d(0x150):null,_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x130)]>0x0?'redactions:\x20'+_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x130)]+'\x20('+_0x8eda6a[_0x3efd3d(0x14e)][_0x3efd3d(0x13b)]['join'](',\x20')+')':null][_0x3efd3d(0x15b)](Boolean)[_0x3efd3d(0x15e)]('\x0a')};},async 'execute'(_0x5cc3db){const _0x209e1c=a93_0x2fbfd1,_0x4cafe6=await prepareIssueReport(_0x5cc3db);try{await sendPlatformIssueCollectLog({'title':_0x4cafe6['title'],'description':_0x4cafe6[_0x209e1c(0x149)],'sanitize':{'originalBytes':_0x4cafe6[_0x209e1c(0x14e)][_0x209e1c(0x13d)],'truncated':_0x4cafe6[_0x209e1c(0x14e)]['truncated'],'redactionCount':_0x4cafe6[_0x209e1c(0x14e)][_0x209e1c(0x130)],'redactionKinds':_0x4cafe6['sanitize']['redactionKinds']}});}catch(_0x3b86f7){throw CliErrors['apiError'](_0x209e1c(0x164)+(_0x3b86f7 instanceof Error?_0x3b86f7[_0x209e1c(0x139)]:String(_0x3b86f7)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x4cafe6['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x209e1c(0x15c),_0x209e1c(0x13c),'issue.description_original_bytes',_0x209e1c(0x151),'issue.description_redactions',_0x209e1c(0x14b)],'issue':{'title':_0x4cafe6[_0x209e1c(0x15a)],'descriptionLength':_0x4cafe6[_0x209e1c(0x149)][_0x209e1c(0x153)],'descriptionSource':_0x4cafe6[_0x209e1c(0x15d)],..._0x4cafe6[_0x209e1c(0x137)]?{'descriptionFile':_0x4cafe6['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x4cafe6[_0x209e1c(0x14e)][_0x209e1c(0x13d)],'truncated':_0x4cafe6['sanitize'][_0x209e1c(0x136)],'redactions':_0x4cafe6[_0x209e1c(0x14e)]['redactionCount'],'redactionKinds':_0x4cafe6[_0x209e1c(0x14e)]['redactionKinds']}}}};}};function buildResultMessage(_0x454491){const _0x1df60b=a93_0x2fbfd1,_0x4c1501=[];return _0x454491['truncated']&&_0x4c1501['push'](_0x1df60b(0x161)+_0x454491['originalBytes']+_0x1df60b(0x150)),_0x454491[_0x1df60b(0x130)]>0x0&&_0x4c1501[_0x1df60b(0x14f)]('redacted\x20'+_0x454491[_0x1df60b(0x130)]+'\x20secret(s):\x20'+_0x454491['redactionKinds']['join'](',\x20')),_0x4c1501['length']===0x0?'Platform\x20issue\x20reported':'Platform\x20issue\x20reported\x20('+_0x4c1501[_0x1df60b(0x15e)](';\x20')+')';}function a93_0x4b67(_0x75a3a9,_0x3b94ea){_0x75a3a9=_0x75a3a9-0x130;const _0x86aa66=a93_0x86aa();let _0x4b6729=_0x86aa66[_0x75a3a9];return _0x4b6729;}async function prepareIssueReport(_0xc43bec){const _0x5585bb=a93_0x2fbfd1,_0x2aadac=_0xc43bec[_0x5585bb(0x146)]('title')[_0x5585bb(0x13e)](),_0x9facf2=_0xc43bec['str'](_0x5585bb(0x149)),_0x1775e8=_0xc43bec['str'](DESCRIPTION_FILE_FLAG)[_0x5585bb(0x13e)]();if(!_0x1775e8){const _0x439de6=_0x9facf2;if(!_0x439de6['trim']())throw CliErrors[_0x5585bb(0x154)](_0x5585bb(0x131),_0x5585bb(0x148));const _0x40eca0=sanitizeIssueDescription(_0x439de6);return{'title':_0x2aadac,'description':_0x40eca0[_0x5585bb(0x149)],'descriptionSource':_0x5585bb(0x163),'sanitize':_0x40eca0};}const _0xe3a970=resolve(process[_0x5585bb(0x141)](),_0x1775e8),_0xfd2d42=await readFile(_0xe3a970,'utf8');if(!_0xfd2d42[_0x5585bb(0x13e)]())throw CliErrors[_0x5585bb(0x154)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0xe3a970,_0x5585bb(0x133));const _0x32ac44=sanitizeIssueDescription(_0xfd2d42);return{'title':_0x2aadac,'description':_0x32ac44[_0x5585bb(0x149)],'descriptionSource':'file','descriptionFilePath':_0xe3a970,'sanitize':_0x32ac44};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x48daba=a94_0x59d2;(function(_0x387cfa,_0x2c7875){const _0x22ed66=a94_0x59d2,_0x35008d=_0x387cfa();while(!![]){try{const _0x21abbb=-parseInt(_0x22ed66(0x16b))/0x1*(-parseInt(_0x22ed66(0x15f))/0x2)+-parseInt(_0x22ed66(0x155))/0x3+-parseInt(_0x22ed66(0x169))/0x4+-parseInt(_0x22ed66(0x153))/0x5*(parseInt(_0x22ed66(0x15e))/0x6)+parseInt(_0x22ed66(0x152))/0x7+-parseInt(_0x22ed66(0x156))/0x8+parseInt(_0x22ed66(0x16a))/0x9;if(_0x21abbb===_0x2c7875)break;else _0x35008d['push'](_0x35008d['shift']());}catch(_0x304f6f){_0x35008d['push'](_0x35008d['shift']());}}}(a94_0x244d,0x3dd89));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a94_0x244d(){const _0x3cac38=['REDACTED:bearer-jwt','1031728nVdFjy','1188837fLhXtW','2TYfJTi','bearer-jwt','3349773RbQNPT','279535WYwesm','toString','71577mRoUea','3001088tbGXgE','utf8','REDACTED:private-key','REDACTED:cookie','replace','REDACTED:password','access-key','max','12XPOGyL','411430VqHBbV','REDACTED:access-key','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','kind','byteLength','includes','label','cookie','from'];a94_0x244d=function(){return _0x3cac38;};return a94_0x244d();}function a94_0x59d2(_0x59d141,_0xc827c7){_0x59d141=_0x59d141-0x152;const _0x244de9=a94_0x244d();let _0x59d276=_0x244de9[_0x59d141];return _0x59d276;}const TRUNCATION_NOTICE=a94_0x48daba(0x161),REDACTION_RULES=[{'kind':a94_0x48daba(0x166),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a94_0x48daba(0x159)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':'private-key','pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a94_0x48daba(0x158)},{'kind':a94_0x48daba(0x15c),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a94_0x48daba(0x160)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a94_0x48daba(0x15b)},{'kind':a94_0x48daba(0x16c),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a94_0x48daba(0x168)}];export function sanitizeIssueDescription(_0x59c2dc){const _0x50930d=a94_0x48daba,_0x468b64=Buffer['byteLength'](_0x59c2dc,'utf8'),_0x45154b=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x2f2dfc=_0x59c2dc,_0x1f1f60=0x0;const _0x19c3e3=[];if(!_0x45154b)for(const _0x516661 of REDACTION_RULES){let _0x1e61d1=0x0;_0x2f2dfc=_0x2f2dfc[_0x50930d(0x15a)](_0x516661['pattern'],(_0x453054,_0x3fb630)=>{const _0x33a831=_0x50930d;_0x1e61d1+=0x1;const _0x250278=typeof _0x3fb630==='string'?_0x3fb630:'';return _0x250278+'['+_0x516661[_0x33a831(0x165)]+']';}),_0x1e61d1>0x0&&(_0x1f1f60+=_0x1e61d1,!_0x19c3e3[_0x50930d(0x164)](_0x516661[_0x50930d(0x162)])&&_0x19c3e3['push'](_0x516661[_0x50930d(0x162)]));}let _0x2604ca=![];if(Buffer[_0x50930d(0x163)](_0x2f2dfc,_0x50930d(0x157))>ISSUE_DESCRIPTION_MAX_BYTES){_0x2604ca=!![];const _0x7bb68f=Buffer[_0x50930d(0x163)](TRUNCATION_NOTICE,_0x50930d(0x157)),_0x4d7b0c=Math[_0x50930d(0x15d)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x7bb68f);_0x2f2dfc=sliceUtf8Bytes(_0x2f2dfc,_0x4d7b0c)+TRUNCATION_NOTICE;}return{'description':_0x2f2dfc,'originalBytes':_0x468b64,'truncated':_0x2604ca,'redactionCount':_0x1f1f60,'redactionKinds':_0x19c3e3};}function sliceUtf8Bytes(_0xca3f58,_0x34355e){const _0x141951=a94_0x48daba;if(_0x34355e<=0x0)return'';const _0x5976d9=Buffer[_0x141951(0x167)](_0xca3f58,_0x141951(0x157));if(_0x5976d9[_0x141951(0x163)]<=_0x34355e)return _0xca3f58;let _0x4aa334=_0x34355e;while(_0x4aa334>0x0){const _0x4bc8ef=_0x5976d9[_0x4aa334];if(_0x4bc8ef===undefined||(_0x4bc8ef&0xc0)!==0x80)break;_0x4aa334-=0x1;}return _0x5976d9['subarray'](0x0,_0x4aa334)[_0x141951(0x154)](_0x141951(0x157));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95_0x1d8fda=a95_0x3af4;function a95_0x3af4(_0x141ea1,_0x50aa41){_0x141ea1=_0x141ea1-0x10e;const _0x2995ed=a95_0x2995();let _0x3af441=_0x2995ed[_0x141ea1];return _0x3af441;}(function(_0x89be13,_0x2c7ce5){const _0x1ea87f=a95_0x3af4,_0x2fa556=_0x89be13();while(!![]){try{const _0x409dca=parseInt(_0x1ea87f(0x115))/0x1*(-parseInt(_0x1ea87f(0x129))/0x2)+parseInt(_0x1ea87f(0x114))/0x3+parseInt(_0x1ea87f(0x10f))/0x4+-parseInt(_0x1ea87f(0x127))/0x5*(parseInt(_0x1ea87f(0x132))/0x6)+-parseInt(_0x1ea87f(0x12d))/0x7+parseInt(_0x1ea87f(0x119))/0x8+parseInt(_0x1ea87f(0x12e))/0x9;if(_0x409dca===_0x2c7ce5)break;else _0x2fa556['push'](_0x2fa556['shift']());}catch(_0x164226){_0x2fa556['push'](_0x2fa556['shift']());}}}(a95_0x2995,0xb02e2));import{logger}from'../../utils/logger.js';function a95_0x2995(){const _0x390f7a=['41pLxAPL','duration','\x20\x20\x20Details:\x20','\x20\x20\x20Duration:\x20','2505344ZlGcuA','clearLogs','\x20\x20\x20Time:\x20','length','error','log','keys','success','readLogs','*\x20Lovrabet\x20CLI\x20logs:\x0a','read','stringify','message','details','56995IBTwLr','toLocaleString','23042TCoHhP','en-US','warn','clear','5655328sCOKCY','10097928pxCNdu','write','logs','Clear\x20command\x20history\x20logs','354UYzwOO','level','forEach','2635020lhrMLt','*\x20Logs\x20cleared','show','*\x20No\x20logs\x20found','timestamp','1741575FpDGiY'];a95_0x2995=function(){return _0x390f7a;};return a95_0x2995();}function printLogs(_0x3d2cf8){const _0x334569=a95_0x3af4;if(_0x3d2cf8['length']===0x0){console[_0x334569(0x11e)](_0x334569(0x112));return;}console['log'](_0x334569(0x122)),_0x3d2cf8[_0x334569(0x10e)]((_0x26e02c,_0x2dc076)=>{const _0x1e9aff=_0x334569,_0x3d8086=new Date(_0x26e02c[_0x1e9aff(0x113)])[_0x1e9aff(0x128)](_0x1e9aff(0x12a)),_0x54655a=_0x26e02c['level']===_0x1e9aff(0x120)?'√':_0x26e02c['level']===_0x1e9aff(0x11d)?'×':_0x26e02c[_0x1e9aff(0x133)]===_0x1e9aff(0x12b)?'!':'i';console[_0x1e9aff(0x11e)](_0x2dc076+0x1+'.\x20'+_0x54655a+'\x20['+_0x26e02c['command']+']\x20'+_0x26e02c[_0x1e9aff(0x125)]),console[_0x1e9aff(0x11e)](_0x1e9aff(0x11b)+_0x3d8086),_0x26e02c[_0x1e9aff(0x116)]&&console[_0x1e9aff(0x11e)](_0x1e9aff(0x118)+_0x26e02c[_0x1e9aff(0x116)]+'ms'),_0x26e02c[_0x1e9aff(0x126)]&&Object[_0x1e9aff(0x11f)](_0x26e02c[_0x1e9aff(0x126)])[_0x1e9aff(0x11c)]>0x0&&console[_0x1e9aff(0x11e)](_0x1e9aff(0x117)+JSON[_0x1e9aff(0x124)](_0x26e02c[_0x1e9aff(0x126)],null,0x2)),console[_0x1e9aff(0x11e)]('');});}export const logsDefinitions=[{'service':a95_0x1d8fda(0x130),'command':a95_0x1d8fda(0x111),'description':'View\x20command\x20history\x20logs','risk':a95_0x1d8fda(0x123),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x37b680){const _0x4145e9=a95_0x1d8fda;return printLogs(logger[_0x4145e9(0x121)]()),{'ok':!![]};}},{'service':a95_0x1d8fda(0x130),'command':a95_0x1d8fda(0x12c),'description':a95_0x1d8fda(0x131),'risk':a95_0x1d8fda(0x12f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xb684cc){const _0xd4ddc9=a95_0x1d8fda;return logger[_0xd4ddc9(0x11a)](),console[_0xd4ddc9(0x11e)](_0xd4ddc9(0x110)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x43db8d,_0x3232e1){const _0x50c67b=a96_0x3918,_0x2babbd=_0x43db8d();while(!![]){try{const _0x4fa67d=-parseInt(_0x50c67b(0x18c))/0x1*(parseInt(_0x50c67b(0x18d))/0x2)+-parseInt(_0x50c67b(0x191))/0x3*(-parseInt(_0x50c67b(0x193))/0x4)+-parseInt(_0x50c67b(0x18a))/0x5+parseInt(_0x50c67b(0x192))/0x6*(-parseInt(_0x50c67b(0x18b))/0x7)+parseInt(_0x50c67b(0x188))/0x8+parseInt(_0x50c67b(0x189))/0x9*(-parseInt(_0x50c67b(0x190))/0xa)+-parseInt(_0x50c67b(0x18e))/0xb*(-parseInt(_0x50c67b(0x18f))/0xc);if(_0x4fa67d===_0x3232e1)break;else _0x2babbd['push'](_0x2babbd['shift']());}catch(_0x149d4c){_0x2babbd['push'](_0x2babbd['shift']());}}}(a96_0x572f,0x88c76));import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';function a96_0x3918(_0x25c47c,_0x3bb4ff){_0x25c47c=_0x25c47c-0x188;const _0x572f48=a96_0x572f();let _0x3918e5=_0x572f48[_0x25c47c];return _0x3918e5;}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];function a96_0x572f(){const _0x547612=['18933648BxLsiB','6030nUNeKi','159iKbURc','997554Dxtkpn','61472LXpuNm','1656528ZLOQPh','9045bYWEcL','1337035dYxTOm','7SJkFTH','999447avrdhm','2AXvwax','11RMsDwa'];a96_0x572f=function(){return _0x547612;};return a96_0x572f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97_0x5813c4=a97_0x13c2;(function(_0x574a61,_0x5b949d){const _0x545c9f=a97_0x13c2,_0x4e82fb=_0x574a61();while(!![]){try{const _0x21483a=parseInt(_0x545c9f(0x158))/0x1*(-parseInt(_0x545c9f(0x166))/0x2)+parseInt(_0x545c9f(0x16a))/0x3+-parseInt(_0x545c9f(0x15a))/0x4*(parseInt(_0x545c9f(0x170))/0x5)+parseInt(_0x545c9f(0x17f))/0x6*(parseInt(_0x545c9f(0x180))/0x7)+parseInt(_0x545c9f(0x179))/0x8+parseInt(_0x545c9f(0x15f))/0x9*(parseInt(_0x545c9f(0x15c))/0xa)+parseInt(_0x545c9f(0x165))/0xb;if(_0x21483a===_0x5b949d)break;else _0x4e82fb['push'](_0x4e82fb['shift']());}catch(_0x17916f){_0x4e82fb['push'](_0x4e82fb['shift']());}}}(a97_0xa339,0x4f015));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a97_0x13c2(_0x1671aa,_0x477622){_0x1671aa=_0x1671aa-0x158;const _0xa3396a=a97_0xa339();let _0x13c2d7=_0xa3396a[_0x1671aa];return _0x13c2d7;}import{getMenuTree}from'../../core/api-client.js';function a97_0xa339(){const _0x758a7f=['117bJNLek','bool','index','depth','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','verbose','7366172SYulmm','8LqWxyA','item','string','resources','1357437pkuInD','number','children','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','map','\x20menu(s)','5btdZfX','appCode','label','No\x20menus\x20found.','menu','length','cookie','visible','type','1004312ncRJCj','Found\x20','sort','push','isArray','read','6diuQGt','402892AELqnV','POSITIVE_INFINITY','extend','156363DliiSq','parentId','2331608otzkBl','boolean','174410ACCeeh','parse','list'];a97_0xa339=function(){return _0x758a7f;};return a97_0xa339();}export const menuList={'service':a97_0x5813c4(0x174),'command':a97_0x5813c4(0x15e),'description':a97_0x5813c4(0x163),'risk':a97_0x5813c4(0x17e),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a97_0x5813c4(0x164),'type':a97_0x5813c4(0x15b),'description':a97_0x5813c4(0x16d)}],async 'execute'(_0x241115){const _0x4307ee=a97_0x5813c4,_0x2f6eed=_0x241115[_0x4307ee(0x160)](_0x4307ee(0x164)),_0x7f2235=await getMenuTree(_0x241115[_0x4307ee(0x171)],_0x241115[_0x4307ee(0x176)]),_0x40e855=flattenMenuItems(Array[_0x4307ee(0x17d)](_0x7f2235)?_0x7f2235:[],{'verbose':_0x2f6eed,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x40e855[_0x4307ee(0x175)],'menus':_0x40e855},'message':_0x40e855['length']===0x0?_0x4307ee(0x173):_0x4307ee(0x17a)+_0x40e855[_0x4307ee(0x175)]+_0x4307ee(0x16f)};}};function flattenMenuItems(_0x40b760,_0x564319){const _0x22fdfa=a97_0x5813c4,_0x162f43=sortMenuItems(_0x40b760),_0x47790f=[];for(const _0x1eede4 of _0x162f43){_0x47790f[_0x22fdfa(0x17c)](toMenuListItem(_0x1eede4,_0x564319)),Array[_0x22fdfa(0x17d)](_0x1eede4[_0x22fdfa(0x16c)])&&_0x1eede4[_0x22fdfa(0x16c)]['length']>0x0&&_0x47790f['push'](...flattenMenuItems(_0x1eede4[_0x22fdfa(0x16c)],{'verbose':_0x564319[_0x22fdfa(0x164)],'parentId':_0x1eede4['id'],'depth':_0x564319[_0x22fdfa(0x162)]+0x1}));}return _0x47790f;}function sortMenuItems(_0x427478){const _0x53ccb9=a97_0x5813c4;return _0x427478[_0x53ccb9(0x16e)]((_0x57d48f,_0xb9ba66)=>({'item':_0x57d48f,'index':_0xb9ba66}))[_0x53ccb9(0x17b)]((_0x366c3e,_0x3a0082)=>{const _0x24c6b6=_0x53ccb9,_0x309636=normalizeSort(_0x366c3e[_0x24c6b6(0x167)]['sort']),_0x529661=normalizeSort(_0x3a0082['item'][_0x24c6b6(0x17b)]);if(_0x309636!==_0x529661)return _0x309636-_0x529661;return _0x366c3e[_0x24c6b6(0x161)]-_0x3a0082[_0x24c6b6(0x161)];})['map'](({item:_0x49b26e})=>_0x49b26e);}function toMenuListItem(_0x5dc463,_0x11815c){const _0x358935=a97_0x5813c4,_0x38452c={'id':_0x5dc463['id'],'parentId':_0x11815c[_0x358935(0x159)],'depth':_0x11815c[_0x358935(0x162)],'label':normalizeString(_0x5dc463[_0x358935(0x172)]),'path':normalizeString(_0x5dc463['path']),'type':normalizeString(_0x5dc463[_0x358935(0x178)]),'visible':typeof _0x5dc463[_0x358935(0x177)]===_0x358935(0x15b)?_0x5dc463[_0x358935(0x177)]:null,'sort':typeof _0x5dc463[_0x358935(0x17b)]===_0x358935(0x16b)&&Number['isFinite'](_0x5dc463[_0x358935(0x17b)])?_0x5dc463[_0x358935(0x17b)]:null,'resources':normalizeResources(_0x5dc463[_0x358935(0x182)]?.[_0x358935(0x169)])};return _0x11815c[_0x358935(0x164)]&&(_0x38452c['extend']=_0x5dc463['extend']??null),_0x38452c;}function normalizeSort(_0x348805){const _0x1df1e3=a97_0x5813c4;return typeof _0x348805==='number'&&Number['isFinite'](_0x348805)?_0x348805:Number[_0x1df1e3(0x181)];}function normalizeString(_0x1b3ad5){return typeof _0x1b3ad5==='string'?_0x1b3ad5:'';}function normalizeResources(_0x289ad8){const _0x646d44=a97_0x5813c4;if(Array[_0x646d44(0x17d)](_0x289ad8))return _0x289ad8[_0x646d44(0x16e)](String);if(typeof _0x289ad8!==_0x646d44(0x168))return[];try{const _0xfa1827=JSON[_0x646d44(0x15d)](_0x289ad8);return Array[_0x646d44(0x17d)](_0xfa1827)?_0xfa1827[_0x646d44(0x16e)](String):[];}catch{return[];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x25810a,_0x556bb8){const _0x1d4a67=a98_0x3bd5,_0x47ba0c=_0x25810a();while(!![]){try{const _0x2596b1=-parseInt(_0x1d4a67(0x124))/0x1*(parseInt(_0x1d4a67(0x11c))/0x2)+parseInt(_0x1d4a67(0x126))/0x3+parseInt(_0x1d4a67(0x11e))/0x4*(parseInt(_0x1d4a67(0x12a))/0x5)+parseInt(_0x1d4a67(0x132))/0x6+parseInt(_0x1d4a67(0x12b))/0x7*(parseInt(_0x1d4a67(0x116))/0x8)+-parseInt(_0x1d4a67(0x125))/0x9*(-parseInt(_0x1d4a67(0x133))/0xa)+parseInt(_0x1d4a67(0x134))/0xb*(-parseInt(_0x1d4a67(0x130))/0xc);if(_0x2596b1===_0x556bb8)break;else _0x47ba0c['push'](_0x47ba0c['shift']());}catch(_0x83eabb){_0x47ba0c['push'](_0x47ba0c['shift']());}}}(a98_0x10b7,0x3e4d2));function strWidth(_0x48cb9f){const _0x633f2f=a98_0x3bd5;let _0x27388c=0x0;for(const _0x49e17c of _0x48cb9f){_0x27388c+=/[\u4e00-\u9fa5]/[_0x633f2f(0x119)](_0x49e17c)?0x2:0x1;}return _0x27388c;}function a98_0x3bd5(_0x2c723b,_0x2176ae){_0x2c723b=_0x2c723b-0x115;const _0x10b777=a98_0x10b7();let _0x3bd5e7=_0x10b777[_0x2c723b];return _0x3bd5e7;}function padRight(_0x57cb65,_0x365211){const _0x527674=a98_0x3bd5,_0x337bec=strWidth(_0x57cb65);return _0x57cb65+'\x20'['repeat'](Math[_0x527674(0x136)](0x0,_0x365211-_0x337bec));}export function renderCompareTable(_0x9925d5,_0x423b7c={}){const _0x321777=a98_0x3bd5;if(_0x9925d5[_0x321777(0x11f)]===0x0)return'';const _0x507850=_0x423b7c[_0x321777(0x121)]??!![],_0x46bfcd=Math[_0x321777(0x136)](0x1e,..._0x9925d5[_0x321777(0x127)](_0x2175d7=>strWidth(_0x2175d7[_0x321777(0x12e)]))),_0x20c938=0x4,_0x4608f4=[],_0xba66db='\x20\x20'+padRight(_0x321777(0x129),_0x46bfcd),_0x2f463d=padRight(_0x321777(0x11d),_0x20c938),_0x2fc873=_0x507850?'\x20\x20'+padRight(_0x321777(0x118),_0x20c938):'';_0x4608f4[_0x321777(0x12d)](_0xba66db+'\x20\x20'+_0x2f463d+(_0x507850?_0x2fc873:'')),_0x4608f4[_0x321777(0x12d)]('\x20\x20'+'─'[_0x321777(0x120)](_0x46bfcd)+'\x20\x20'+'─'[_0x321777(0x120)](_0x20c938)+(_0x507850?'\x20\x20'+'─'[_0x321777(0x120)](_0x20c938):''));for(const _0x41f8c of _0x9925d5){const _0x4d8005=padRight(_0x41f8c[_0x321777(0x12e)],_0x46bfcd),_0x3f9c97=_0x41f8c[_0x321777(0x122)]?'✓':'✗',_0x3abe3d=padRight(_0x3f9c97,_0x20c938);let _0x7b517e='\x20\x20'+_0x4d8005+'\x20\x20'+_0x3abe3d;if(_0x507850){const _0x19079a=_0x41f8c['online']?'✓':'✗';_0x7b517e+='\x20\x20'+padRight(_0x19079a,_0x20c938);}_0x4608f4[_0x321777(0x12d)](_0x7b517e);}return _0x4608f4[_0x321777(0x135)]('\x0a');}export function renderSyncSummary(_0x505480,_0x48f1ce){const _0x169d10=a98_0x3bd5;if(_0x505480['length']===0x0)return _0x48f1ce?_0x169d10(0x115):'\x20\x20No\x20pages\x20to\x20sync.';const _0x3e1426=['\x20\x20'+_0x505480[_0x169d10(0x11f)]+_0x169d10(0x12c)];for(const _0x1b8e9b of _0x505480){_0x3e1426[_0x169d10(0x12d)](_0x169d10(0x12f)+_0x1b8e9b['label']+'\x20('+_0x1b8e9b[_0x169d10(0x131)]+')');}return _0x3e1426[_0x169d10(0x135)]('\x0a');}function a98_0x10b7(){const _0x301de0=['\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','1187288EHzBGv','\x20\x20\x20\x20JS:\x20\x20','Platform','test','\x20\x20\x20\x20CSS:\x20','(unchanged)','2AWEYfC','Local','111204KPseak','length','repeat','showOnline','local','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','194961jAZuwd','27HyeJcj','29523TEZPaP','map','\x20\x20Affected\x20menus:\x20','Menu\x20Name','30Ylcico','7awtENM','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','push','label','\x20\x20\x20\x20•\x20','1476HVFbcv','path','2297562ffXfuy','200390NTstTm','28435MSgVMv','join','max'];a98_0x10b7=function(){return _0x301de0;};return a98_0x10b7();}export function renderUpdateSummary(_0x243c95,_0x42b574){const _0x12bb3e=a98_0x3bd5;if(_0x243c95['length']===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x415865=['\x20\x20'+_0x243c95['length']+_0x12bb3e(0x123),_0x12bb3e(0x117)+(_0x42b574[0x0]??_0x12bb3e(0x11b)),_0x12bb3e(0x11a)+(_0x42b574[0x1]??_0x12bb3e(0x11b)),'',_0x12bb3e(0x128)+_0x243c95[_0x12bb3e(0x135)](',\x20')];return _0x415865[_0x12bb3e(0x135)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ad413,_0x40700e){var _0xef5444=a99_0x1cbe,_0x4dbe2c=_0x2ad413();while(!![]){try{var _0x190853=parseInt(_0xef5444(0x139))/0x1+parseInt(_0xef5444(0x13b))/0x2+parseInt(_0xef5444(0x140))/0x3*(parseInt(_0xef5444(0x13a))/0x4)+parseInt(_0xef5444(0x142))/0x5*(-parseInt(_0xef5444(0x141))/0x6)+-parseInt(_0xef5444(0x13e))/0x7+-parseInt(_0xef5444(0x13c))/0x8*(parseInt(_0xef5444(0x13f))/0x9)+parseInt(_0xef5444(0x13d))/0xa;if(_0x190853===_0x40700e)break;else _0x4dbe2c['push'](_0x4dbe2c['shift']());}catch(_0x527fef){_0x4dbe2c['push'](_0x4dbe2c['shift']());}}}(a99_0x24ff,0x94f2a));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';function a99_0x1cbe(_0x588180,_0x2b71de){_0x588180=_0x588180-0x139;var _0x24ffea=a99_0x24ff();var _0x1cbea9=_0x24ffea[_0x588180];return _0x1cbea9;}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_0x24ff(){var _0x231226=['3318721TGHegQ','7371JFMLDQ','8577fGGUky','2756562wigVpL','10uJLPOM','125403jczNRi','668HUYwvW','337558PspGQx','2632CJuDBf','15008630IcsHyS'];a99_0x24ff=function(){return _0x231226;};return a99_0x24ff();}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(_0x416487,_0x204e0c){const _0x5a923a=a100_0x3ad1,_0x4b8473=_0x416487();while(!![]){try{const _0x199faa=parseInt(_0x5a923a(0x211))/0x1+parseInt(_0x5a923a(0x200))/0x2+-parseInt(_0x5a923a(0x217))/0x3*(parseInt(_0x5a923a(0x21a))/0x4)+parseInt(_0x5a923a(0x207))/0x5+parseInt(_0x5a923a(0x214))/0x6+-parseInt(_0x5a923a(0x21b))/0x7*(parseInt(_0x5a923a(0x208))/0x8)+parseInt(_0x5a923a(0x209))/0x9*(-parseInt(_0x5a923a(0x1fc))/0xa);if(_0x199faa===_0x204e0c)break;else _0x4b8473['push'](_0x4b8473['shift']());}catch(_0x59a135){_0x4b8473['push'](_0x4b8473['shift']());}}}(a100_0x34b4,0x96fa9));import a100_0x5105ee from'chalk';function a100_0x34b4(){const _0x353d48=['\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','1597056xlgcCF','7UdTjqI','No\x20menus\x20selected.','[new]','green','test','\x20\x20JS\x20URL:','stdin','fail','has','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','red','\x20\x20Checking\x20JS\x20URL\x20reachability...','45700SakcqE','filter','path','\x20\x20Checking\x20CSS\x20URL\x20reachability...','692580FFyGAK','includes','label','No\x20local\x20pages\x20found.','trim','\x20\x20CSS\x20URL:','cancelled','2453310fSripn','1155504zKVAod','3006fPqqdl','length','error','Cancelled.','catch','succeed','isTTY','JS\x20URL\x20checked','931116klfvYP','[already\x20on\x20platform]','name','5522538rwiLlr','gray','CSS\x20URL\x20check\x20failed','3uRlOvB','CSS\x20URL\x20checked'];a100_0x34b4=function(){return _0x353d48;};return a100_0x34b4();}import{checkbox,input,confirm}from'@inquirer/prompts';import a100_0x5928dc from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x4e31de){const _0x1334e4=a100_0x3ad1;return _0x4e31de[_0x1334e4(0x20d)](_0x5f4db2=>{const _0x11a92d=_0x1334e4;if(_0x5f4db2?.[_0x11a92d(0x213)]==='ExitPromptError')throw CliErrors[_0x11a92d(0x206)]('Cancelled.');throw _0x5f4db2;});}export function startSpinner(_0x3cd240){return a100_0x5928dc({'text':_0x3cd240,'color':'cyan'})['start']();}export function stopSpinner(_0x3a2671,_0x15cb8d,_0x5c9ec5){const _0x5eb678=a100_0x3ad1;_0x5c9ec5?_0x3a2671[_0x5eb678(0x20e)](_0x15cb8d):_0x3a2671[_0x5eb678(0x1f6)](_0x15cb8d);}export async function askConfirm(_0x598f5f){return onCancel(confirm({'message':_0x598f5f,'theme':{'prefix':''}}));}export async function askJsUrl(_0x5abfdc){const _0x2bd493=a100_0x3ad1;while(!![]){const _0x4d2ed0=await onCancel(input({'message':_0x2bd493(0x1f4),'default':_0x5abfdc,'theme':{'prefix':''}}));if(_0x4d2ed0[_0x2bd493(0x204)]()==='')throw CliErrors[_0x2bd493(0x206)](_0x2bd493(0x20c));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x2bd493(0x21f)](_0x4d2ed0[_0x2bd493(0x204)]())){console['error'](a100_0x5105ee[_0x2bd493(0x1fa)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0xddb1b4=startSpinner(_0x2bd493(0x1fb));try{const _0x742f6e=await isUrlReachable(_0x4d2ed0[_0x2bd493(0x204)]());stopSpinner(_0xddb1b4,_0x2bd493(0x210),_0x742f6e);if(!_0x742f6e){console[_0x2bd493(0x20b)](a100_0x5105ee[_0x2bd493(0x1fa)](_0x2bd493(0x219)));continue;}return _0x4d2ed0[_0x2bd493(0x204)]();}catch(_0x51e1d0){stopSpinner(_0xddb1b4,'JS\x20URL\x20check\x20failed',![]);throw _0x51e1d0;}}}export async function askCssUrl(_0x2afc56){const _0x53cfd5=a100_0x3ad1;while(!![]){const _0x256bd4=await onCancel(input({'message':_0x53cfd5(0x205),'default':_0x2afc56,'theme':{'prefix':''}}));if(_0x256bd4[_0x53cfd5(0x204)]()==='')throw CliErrors[_0x53cfd5(0x206)](_0x53cfd5(0x20c));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x256bd4['trim']())){console[_0x53cfd5(0x20b)](a100_0x5105ee[_0x53cfd5(0x1fa)]('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x177801=startSpinner(_0x53cfd5(0x1ff));try{const _0x1d4c2c=await isUrlReachable(_0x256bd4[_0x53cfd5(0x204)]());stopSpinner(_0x177801,_0x53cfd5(0x218),_0x1d4c2c);if(!_0x1d4c2c){console['error'](a100_0x5105ee[_0x53cfd5(0x1fa)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x256bd4[_0x53cfd5(0x204)]();}catch(_0x218dfc){stopSpinner(_0x177801,_0x53cfd5(0x216),![]);throw _0x218dfc;}}}export async function selectPages(_0x472cba,_0x2f4fa2,_0x34c630){const _0x232c72=a100_0x3ad1,_0x4f4123=_0x472cba['map'](_0x2399a9=>({'name':_0x2399a9[_0x232c72(0x202)]+'\x20\x20'+(_0x2f4fa2[_0x232c72(0x1f7)](_0x2399a9[_0x232c72(0x1fe)])?a100_0x5105ee[_0x232c72(0x215)](_0x232c72(0x212)):a100_0x5105ee[_0x232c72(0x21e)](_0x232c72(0x21d))),'value':_0x2399a9[_0x232c72(0x202)],'checked':_0x34c630?_0x34c630['includes'](_0x2399a9[_0x232c72(0x202)]):!_0x2f4fa2['has'](_0x2399a9[_0x232c72(0x1fe)])}));if(_0x4f4123[_0x232c72(0x20a)]===0x0)throw new Error(_0x232c72(0x203));const _0x5b7a87=await onCancel(checkbox({'message':_0x232c72(0x1f9),'choices':_0x4f4123,'loop':![],'theme':{'prefix':''}}));if(_0x5b7a87[_0x232c72(0x20a)]===0x0)throw new Error(_0x232c72(0x21c));return _0x472cba[_0x232c72(0x1fd)](_0x3c7fa1=>_0x5b7a87[_0x232c72(0x201)](_0x3c7fa1[_0x232c72(0x202)]));}export function isInteractive(){const _0x5ce2e9=a100_0x3ad1;return process[_0x5ce2e9(0x1f5)][_0x5ce2e9(0x20f)]===!![];}function a100_0x3ad1(_0x4ca284,_0x4b2317){_0x4ca284=_0x4ca284-0x1f4;const _0x34b494=a100_0x34b4();let _0x3ad1e9=_0x34b494[_0x4ca284];return _0x3ad1e9;}export function requireInteractive(){const _0x2af8f2=a100_0x3ad1;if(!isInteractive())throw new Error(_0x2af8f2(0x1f8)+'Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101_0x2ecf98=a101_0x3132;(function(_0x45934f,_0x21dc73){const _0x1404a1=a101_0x3132,_0x256d2d=_0x45934f();while(!![]){try{const _0x509b54=-parseInt(_0x1404a1(0x98))/0x1+-parseInt(_0x1404a1(0x8c))/0x2+parseInt(_0x1404a1(0x9a))/0x3*(parseInt(_0x1404a1(0x9f))/0x4)+parseInt(_0x1404a1(0xa0))/0x5+parseInt(_0x1404a1(0x96))/0x6+-parseInt(_0x1404a1(0x8d))/0x7+parseInt(_0x1404a1(0x8b))/0x8;if(_0x509b54===_0x21dc73)break;else _0x256d2d['push'](_0x256d2d['shift']());}catch(_0x5dd533){_0x256d2d['push'](_0x256d2d['shift']());}}}(a101_0xb7f1,0x23ca8));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a101_0x2ecf98(0x8e)](),a101_0x2ecf98(0x91));export function extractTitleFromComment(_0x223f7d){const _0x1b36d6=a101_0x2ecf98;try{const _0x28ce3d=readFileSync(_0x223f7d,_0x1b36d6(0x9d)),_0x326265=_0x28ce3d['match'](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x326265&&_0x326265[0x1]){const _0x4a48ef=_0x326265[0x1],_0x53cb57=_0x4a48ef[_0x1b36d6(0x8f)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x53cb57&&_0x53cb57[0x1])return _0x53cb57[0x1][_0x1b36d6(0x9b)]();}let _0x53eab0=null;const _0x2963c0=_0x28ce3d['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x2963c0&&_0x2963c0[0x1]&&(_0x53eab0=_0x2963c0[0x1]);if(!_0x53eab0){const _0x1d0597=_0x28ce3d[_0x1b36d6(0x8f)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x1d0597&&_0x1d0597[0x1]&&(_0x53eab0=_0x1d0597[0x1]);}if(_0x53eab0){const _0x5c076e=new RegExp('\x5cb'+_0x53eab0+_0x1b36d6(0x92)),_0x4a68b5=_0x28ce3d[_0x1b36d6(0x8f)](_0x5c076e);if(_0x4a68b5&&_0x4a68b5[0x1])return _0x4a68b5[0x1];return _0x53eab0;}return null;}catch(_0x17f8a6){return null;}}function a101_0x3132(_0x3f6e27,_0x5b149a){_0x3f6e27=_0x3f6e27-0x89;const _0xb7f19f=a101_0xb7f1();let _0x313238=_0xb7f19f[_0x3f6e27];return _0x313238;}export function getLocalPages(_0xf90e99=pagesDir,_0x1e88f7=pagesDir){const _0x525abb=a101_0x2ecf98;let _0x3d8b51=[];const _0x5990a9=readdirSync(_0xf90e99);return _0x5990a9[_0x525abb(0xa1)](_0x20c182=>{const _0x11e966=_0x525abb,_0x43fab3=join(_0xf90e99,_0x20c182),_0x518271=statSync(_0x43fab3);if(_0x518271&&_0x518271[_0x11e966(0x93)]())_0x3d8b51=_0x3d8b51[_0x11e966(0xa2)](getLocalPages(_0x43fab3,_0x1e88f7));else{if(_0x20c182[_0x11e966(0x95)]('.tsx')){let _0x47d7d0=relative(_0x1e88f7,_0x43fab3);_0x47d7d0[_0x11e966(0x95)](_0x11e966(0x8a))?_0x47d7d0=_0x47d7d0['replace'](/index\.tsx$/,''):_0x47d7d0=_0x47d7d0[_0x11e966(0x97)](/\.tsx$/,'');_0x47d7d0[_0x11e966(0x95)](sep)&&(_0x47d7d0=_0x47d7d0[_0x11e966(0x89)](0x0,-0x1));const _0x314a3b=_0x47d7d0[_0x11e966(0x9c)](sep)['join']('/'),_0x51c088=extractTitleFromComment(_0x43fab3),_0x5c7e83=_0x51c088||_0x314a3b;_0x3d8b51[_0x11e966(0x99)]({'path':_0x314a3b[_0x11e966(0x9e)]('$',':'),'label':_0x5c7e83});}}}),_0x3d8b51[_0x525abb(0x90)](_0x309a8c=>_0x309a8c[_0x525abb(0x94)]!=='');}function a101_0xb7f1(){const _0x5c2429=['src/pages','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','isDirectory','path','endsWith','1654800HzeUkX','replace','121799jrEhBB','push','639987ADFlzE','trim','split','utf-8','replaceAll','4PnOQmJ','40090IukoFD','forEach','concat','slice','index.tsx','2662880WEXVKd','562720XiVFQv','1961736cfynkd','cwd','match','filter'];a101_0xb7f1=function(){return _0x5c2429;};return a101_0xb7f1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4bd830,_0x438e80){const _0xbf4635=a102_0x3672,_0x1b74a2=_0x4bd830();while(!![]){try{const _0x2a2fb2=parseInt(_0xbf4635(0x10c))/0x1+parseInt(_0xbf4635(0x112))/0x2+parseInt(_0xbf4635(0x109))/0x3+-parseInt(_0xbf4635(0x103))/0x4*(parseInt(_0xbf4635(0x100))/0x5)+parseInt(_0xbf4635(0xfb))/0x6+parseInt(_0xbf4635(0x10e))/0x7*(parseInt(_0xbf4635(0x110))/0x8)+parseInt(_0xbf4635(0xf8))/0x9*(-parseInt(_0xbf4635(0x113))/0xa);if(_0x2a2fb2===_0x438e80)break;else _0x1b74a2['push'](_0x1b74a2['shift']());}catch(_0x38572c){_0x1b74a2['push'](_0x1b74a2['shift']());}}}(a102_0x5481,0xdc2a7));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(_0x285720){const _0x22ff2f=a102_0x3672,_0x278ec4=[];return!isValidJsHttpsUrl(_0x285720)&&_0x278ec4[_0x22ff2f(0x10f)]('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x278ec4[_0x22ff2f(0x104)]===0x0,'errors':_0x278ec4};}export function validateCssUrl(_0x5c9522){const _0x153452=a102_0x3672,_0x3c5c68=[];return!isValidCssHttpsUrl(_0x5c9522)&&_0x3c5c68[_0x153452(0x10f)](_0x153452(0x107)),{'ok':_0x3c5c68[_0x153452(0x104)]===0x0,'errors':_0x3c5c68};}export async function validateJsUrlReachable(_0x5f5177){const _0x32f95e=a102_0x3672,_0x2fbdba=validateJsUrl(_0x5f5177);if(!_0x2fbdba['ok'])return _0x2fbdba;const _0x70b5df=await isUrlReachable(_0x5f5177);if(!_0x70b5df)_0x2fbdba['errors'][_0x32f95e(0x10f)](_0x32f95e(0x10d));return{'ok':_0x2fbdba[_0x32f95e(0xf6)][_0x32f95e(0x104)]===0x0,'errors':_0x2fbdba['errors']};}export async function validateCssUrlReachable(_0x2f1728){const _0x22468f=a102_0x3672,_0x5a15c3=validateCssUrl(_0x2f1728);if(!_0x5a15c3['ok'])return _0x5a15c3;const _0xf41b4a=await isUrlReachable(_0x2f1728);if(!_0xf41b4a)_0x5a15c3[_0x22468f(0xf6)][_0x22468f(0x10f)](_0x22468f(0x105));return{'ok':_0x5a15c3['errors'][_0x22468f(0x104)]===0x0,'errors':_0x5a15c3['errors']};}export function buildCompareRows(_0x8c0f86,_0x4d1f4e){const _0x725821=a102_0x3672;return _0x8c0f86['map'](_0x33addf=>({'label':_0x33addf[_0x725821(0xf7)],'path':_0x33addf[_0x725821(0x108)],'local':!![],'online':_0x4d1f4e[_0x725821(0x10a)](_0x33addf[_0x725821(0x108)])}));}export function filterNewPages(_0x1a3577,_0x333c0d,_0x1510f0){const _0x513463=a102_0x3672;if(_0x1510f0&&_0x1510f0['length']>0x0){const _0xac75d3=new Set(_0x1510f0['map'](_0x1268e0=>_0x1268e0[_0x513463(0xfd)]())),_0x1d75f0=_0x1a3577['filter'](_0x2edb1e=>_0xac75d3[_0x513463(0x10a)](_0x2edb1e[_0x513463(0xf7)]));if(_0x1d75f0[_0x513463(0x104)]===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0xac75d3][_0x513463(0x10b)](',\x20'));return _0x1d75f0;}return _0x1a3577[_0x513463(0xfc)](_0x42fbae=>!_0x333c0d[_0x513463(0x10a)](_0x42fbae['path']));}export function filterPagesByLabels(_0x318f34,_0x131056){const _0x147a53=a102_0x3672,_0x3ab357=[],_0x4f7d04=[];for(const _0x55ef63 of _0x131056){const _0x21192b=_0x55ef63['trim'](),_0x1dffef=_0x318f34[_0x147a53(0xff)](_0x306361=>_0x306361['label']===_0x21192b);if(_0x1dffef)_0x3ab357[_0x147a53(0x10f)](_0x1dffef);else _0x4f7d04[_0x147a53(0x10f)](_0x55ef63);}return{'matched':_0x3ab357,'unmatched':_0x4f7d04};}function a102_0x3672(_0x518cef,_0x1c05f1){_0x518cef=_0x518cef-0xf6;const _0x54810b=a102_0x5481();let _0x36724b=_0x54810b[_0x518cef];return _0x36724b;}export async function doCreateMenus(_0x139fe4,_0x4a486b,_0x240424,_0x59eed7){const _0x406c4c=a102_0x3672,_0x496999=await createMenus(_0x139fe4,_0x4a486b,_0x240424,_0x59eed7);return{'created':_0x496999[_0x406c4c(0x104)],'failed':0x0,'labels':_0x240424[_0x406c4c(0xf9)](_0x20cd05=>_0x20cd05[_0x406c4c(0xf7)]),'menus':_0x496999};}export function filterMenusWithResources(_0x496d38){const _0x582e20=a102_0x3672;return _0x496d38['filter'](_0x3e5fdb=>_0x3e5fdb[_0x582e20(0xfe)]['length']>0x0);}export async function doUpdateCdnUrls(_0x23d1b8,_0x5a530f,_0x4568af,_0x205055){const _0x2b6fd3=a102_0x3672,_0x45b9a2=_0x4568af[_0x2b6fd3(0xfc)](_0x128067=>_0x128067['resources'][_0x2b6fd3(0x104)]>0x0),_0x523003=await Promise[_0x2b6fd3(0x101)](_0x45b9a2[_0x2b6fd3(0xf9)](_0x2ade0b=>updateMenuCdnUrl(_0x23d1b8,_0x5a530f,{'id':_0x2ade0b['id'],'label':_0x2ade0b[_0x2b6fd3(0xf7)],'path':_0x2ade0b[_0x2b6fd3(0x108)],'resources':_0x205055,'extend':_0x2ade0b[_0x2b6fd3(0x114)]??null}))),_0x5c21e8=_0x523003[_0x2b6fd3(0xfc)](_0x44e6f1=>_0x44e6f1[_0x2b6fd3(0x102)]===_0x2b6fd3(0xfa))[_0x2b6fd3(0xf9)](_0x6197e1=>_0x6197e1[_0x2b6fd3(0x106)]),_0x3cf2ee=_0x523003[_0x2b6fd3(0xfc)](_0x271794=>_0x271794['status']===_0x2b6fd3(0x111))[_0x2b6fd3(0x104)];return{'updated':_0x5c21e8[_0x2b6fd3(0x104)],'failed':_0x3cf2ee,'menus':_0x5c21e8};}function a102_0x5481(){const _0x5af2f8=['8509194aljgJM','filter','trim','resources','find','305vtzCZT','allSettled','status','66228hfsiJQ','length','CSS\x20URL\x20is\x20unreachable','value','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','path','3339003tJBpew','has','join','320850mlgiRO','JS\x20URL\x20is\x20unreachable','21emDGei','push','1641192wWtYDt','rejected','2904750rwLomG','10LRfmvV','extend','errors','label','27072864cEizvG','map','fulfilled'];a102_0x5481=function(){return _0x5af2f8;};return a102_0x5481();}export async function fetchMenuData(_0xc49a2a,_0x3753c4){const _0x781bd9=a102_0x3672,_0x4c9b75=getLocalPages(),_0x2da06f=await getOnlineMenuList(_0xc49a2a,_0x3753c4),_0x51608d=new Set(_0x2da06f[_0x781bd9(0xf9)](_0x449edc=>_0x449edc[_0x781bd9(0x108)]));return{'localPages':_0x4c9b75,'onlineMenuList':_0x2da06f,'onlinePaths':_0x51608d};}export async function fetchOnlineMenuList(_0x434683,_0x4d8e83){return getOnlineMenuList(_0x434683,_0x4d8e83);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5eaec4,_0x14a788){const _0x5c7255=a103_0x3fac,_0x1a1856=_0x5eaec4();while(!![]){try{const _0x5ab675=parseInt(_0x5c7255(0x174))/0x1+-parseInt(_0x5c7255(0x16f))/0x2+-parseInt(_0x5c7255(0x163))/0x3+parseInt(_0x5c7255(0x162))/0x4+-parseInt(_0x5c7255(0x164))/0x5*(parseInt(_0x5c7255(0x15d))/0x6)+parseInt(_0x5c7255(0x160))/0x7*(parseInt(_0x5c7255(0x15e))/0x8)+parseInt(_0x5c7255(0x15a))/0x9*(parseInt(_0x5c7255(0x168))/0xa);if(_0x5ab675===_0x14a788)break;else _0x1a1856['push'](_0x1a1856['shift']());}catch(_0x164cd0){_0x1a1856['push'](_0x1a1856['shift']());}}}(a103_0x54c3,0xc945a));import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';function a103_0x54c3(){const _0x7f0b22=['path','Menu\x20created\x20successfully:\x20','resources','Batch\x20menu\x20creation\x20completed,\x20total\x20','Creating\x20menu:\x20','children','Start\x20batch\x20menu\x20creation,\x20total\x20','info','6981507pkUegy','create-menu','procode','3732786GBmJvb','128176cCrAHW','push','336SJzLCK','label','5630280RPZSdh','96942yzVpGQ','10uAmZVk','update-menu-cdn-url','Create\x20menu\x20\x22','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','10MAhcSg','create-menus','length','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','import','map','stringify','2032230TrBplI','isArray','extend','string','parse','164752WLbngB','get-online-menu-list','Updating\x20menu\x20asset\x20links:\x20'];a103_0x54c3=function(){return _0x7f0b22;};return a103_0x54c3();}function a103_0x3fac(_0x2f0c8a,_0x5c27c9){_0x2f0c8a=_0x2f0c8a-0x156;const _0x54c33d=a103_0x54c3();let _0x3fac63=_0x54c33d[_0x2f0c8a];return _0x3fac63;}import{createMenuRecord,getMenuTree,updateMenuRecord}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x234d20,_0x1ce56f){const _0x5add4f=a103_0x3fac,_0x43713c=getEnv();logger[_0x5add4f(0x159)](_0x5add4f(0x175),isProduction(_0x43713c)?_0x5add4f(0x167)+_0x234d20+')':_0x5add4f(0x16b)+_0x234d20+')');const _0xe34843=await getMenuTree(_0x234d20,_0x1ce56f);if(!_0xe34843)return logger[_0x5add4f(0x159)](_0x5add4f(0x175),'Server\x20returned\x20empty\x20menu\x20list'),[];return logger[_0x5add4f(0x159)](_0x5add4f(0x175),'Fetched\x20'+_0xe34843['length']+'\x20online\x20menus\x20successfully'),_0xe34843[_0x5add4f(0x16d)](flattenMenuItem)['flat']();}function flattenMenuItem(_0x25a88d){const _0x43afc5=a103_0x3fac;let _0x37f588=[];try{const _0xc83629=_0x25a88d[_0x43afc5(0x171)]?.[_0x43afc5(0x179)];if(typeof _0xc83629===_0x43afc5(0x172)){const _0x24242b=JSON[_0x43afc5(0x173)](_0xc83629);if(Array[_0x43afc5(0x170)](_0x24242b))_0x37f588=_0x24242b[_0x43afc5(0x16d)](String);}else Array[_0x43afc5(0x170)](_0xc83629)&&(_0x37f588=_0xc83629[_0x43afc5(0x16d)](String));}catch{}const _0x556993=[{'id':_0x25a88d['id'],'path':_0x25a88d[_0x43afc5(0x177)],'label':_0x25a88d[_0x43afc5(0x161)],'resources':_0x37f588,'extend':_0x25a88d[_0x43afc5(0x171)]??null}];if(_0x25a88d['children']&&_0x25a88d[_0x43afc5(0x157)][_0x43afc5(0x16a)]>0x0)for(const _0x2c7dbd of _0x25a88d[_0x43afc5(0x157)]){_0x556993[_0x43afc5(0x15f)](...flattenMenuItem(_0x2c7dbd));}return _0x556993;}export async function createMenu(_0x114e23,_0x50b6d5,_0x401f33){const _0x52565e=a103_0x3fac;logger[_0x52565e(0x159)](_0x52565e(0x15b),_0x52565e(0x156)+_0x401f33[_0x52565e(0x161)]+'\x20('+_0x401f33[_0x52565e(0x177)]+')');const _0x3da2f1={'appCode':_0x114e23,'type':_0x52565e(0x15c),'sort':0x0,'extend':{'loadScriptMode':_0x52565e(0x16c),'resources':_0x401f33[_0x52565e(0x179)]?JSON['stringify'](_0x401f33[_0x52565e(0x179)]):undefined},..._0x401f33},_0xa618f5=await createMenuRecord(_0x3da2f1,_0x50b6d5,_0x52565e(0x166)+_0x401f33[_0x52565e(0x161)]+'\x22');return logger['info'](_0x52565e(0x15b),_0x52565e(0x178)+_0x401f33[_0x52565e(0x161)]),_0xa618f5;}async function createSingleMenu(_0x5c9a47,_0x20ee3e,_0x45109f,_0x28be3b){const _0x323710=a103_0x3fac,_0x5b0eee={'appCode':_0x5c9a47,'type':_0x323710(0x15c),'sort':0x0,'extend':{'loadScriptMode':_0x323710(0x16c),'resources':_0x28be3b?JSON[_0x323710(0x16e)](_0x28be3b):undefined},'label':_0x45109f[_0x323710(0x161)],'path':_0x45109f[_0x323710(0x177)]},_0x256c86=await createMenuRecord(_0x5b0eee,_0x20ee3e,_0x323710(0x166)+_0x45109f[_0x323710(0x161)]+'\x22');return logger[_0x323710(0x159)](_0x323710(0x15b),'Menu\x20created\x20successfully:\x20'+_0x45109f['label']),_0x256c86;}export async function createMenus(_0x533e5f,_0x124863,_0x5334e4,_0x37b432){const _0x2107de=a103_0x3fac;logger[_0x2107de(0x159)]('create-menus',_0x2107de(0x158)+_0x5334e4[_0x2107de(0x16a)]);const _0x28a489=await Promise['all'](_0x5334e4[_0x2107de(0x16d)](_0x63e485=>createSingleMenu(_0x533e5f,_0x124863,_0x63e485,_0x37b432)));return logger[_0x2107de(0x159)](_0x2107de(0x169),_0x2107de(0x17a)+_0x5334e4['length']),_0x28a489;}export async function updateMenuCdnUrl(_0x1b8992,_0x86bab7,_0x3a23ff){const _0x504f8e=a103_0x3fac;logger[_0x504f8e(0x159)](_0x504f8e(0x165),_0x504f8e(0x176)+_0x3a23ff[_0x504f8e(0x161)]+'\x20('+_0x3a23ff['path']+')');const _0x976665={'id':_0x3a23ff['id'],'appCode':_0x1b8992,'extend':{..._0x3a23ff[_0x504f8e(0x171)]??{},'loadScriptMode':'import','resources':_0x3a23ff['resources']?JSON[_0x504f8e(0x16e)](_0x3a23ff[_0x504f8e(0x179)]):undefined}},_0x4fc832=await updateMenuRecord(_0x976665,_0x86bab7,'Update\x20menu\x20assets\x20\x22'+_0x3a23ff[_0x504f8e(0x161)]+'\x22');return logger[_0x504f8e(0x159)](_0x504f8e(0x165),'Menu\x20assets\x20synced:\x20'+_0x3a23ff[_0x504f8e(0x161)],undefined),_0x4fc832;}
|