@lovrabet/rabetbase-cli 2.3.7 → 2.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/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/local-file.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/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.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/file/index.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/notification/config-list.js +1 -1
- package/lib/commands/notification/index.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 a92_0x368278=a92_0x48d9;(function(_0x2f8423,_0x469bee){const _0x266459=a92_0x48d9,_0x280bd9=_0x2f8423();while(!![]){try{const _0x372474=-parseInt(_0x266459(0x15e))/0x1+parseInt(_0x266459(0x190))/0x2*(parseInt(_0x266459(0x15f))/0x3)+parseInt(_0x266459(0x177))/0x4+-parseInt(_0x266459(0x16e))/0x5+parseInt(_0x266459(0x15d))/0x6+-parseInt(_0x266459(0x193))/0x7+-parseInt(_0x266459(0x19d))/0x8*(-parseInt(_0x266459(0x167))/0x9);if(_0x372474===_0x469bee)break;else _0x280bd9['push'](_0x280bd9['shift']());}catch(_0x511b7e){_0x280bd9['push'](_0x280bd9['shift']());}}}(a92_0xa134,0xa7cfc));import a92_0x237fe from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a92_0x48d9(_0x1f6d54,_0x3cb363){_0x1f6d54=_0x1f6d54-0x14d;const _0xa13496=a92_0xa134();let _0x48d9af=_0xa13496[_0x1f6d54];return _0x48d9af;}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';function a92_0xa134(){const _0x32c40e=['Project','status','147620vBRZHZ','(set,\x20length=','raw','appcode','padEnd','\x20\x20explicitAppName:\x20','(missing)','gray','repeat','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','defaultApp','⚠\x20Empty\x20(treated\x20as\x20{})','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','(default)','✓\x20Valid','(not\x20set)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','yellow','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Apps','2yuFlxh','keys','green','3487351eaOYIu','riskLevel','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','apps','✗\x20Expired','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','392UDgraH','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','format','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20─','arch','\x20\x20Config\x20Files','source','platform','value','\x20\x20Merged\x20Config','(not\x20found)','slice','doctor','\x20\x20Auth','appCode','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','✓\x20Valid\x20JSON','(none)','(no\x20file)','currentApp','4657530WglMID','788239GUUWKC','603IRdswq','cookie','check','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','unknown','bold','missing','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','424935iAMyPC','apiDir','log','red','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','length','5765540xxXpdH','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','read','\x20doctor','\x20\x20\x20\x20accessKey:\x20\x20','verbose','locale'];a92_0xa134=function(){return _0x32c40e;};return a92_0xa134();}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(_0x3382b0){const _0x523e42=a92_0x48d9,_0x42c2af=GIT_COMMIT!==_0x523e42(0x163)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x523e42(0x153)](0x0,0xa)+')':VERSION,_0x428c9f=buildConfigFromFlags({}),_0x459a37=getCookie();console[_0x523e42(0x169)](),console[_0x523e42(0x169)](a92_0x237fe['bold'](CLI_BIN_NAME+_0x523e42(0x171))),console[_0x523e42(0x169)](a92_0x237fe[_0x523e42(0x17e)]('─'[_0x523e42(0x17f)](0x32))),console[_0x523e42(0x169)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x42c2af),console['log'](_0x523e42(0x19b)+process['version']),console['log'](_0x523e42(0x16b)+process[_0x523e42(0x14f)]+'\x20'+process[_0x523e42(0x1a3)]),console[_0x523e42(0x169)](),console[_0x523e42(0x169)](a92_0x237fe[_0x523e42(0x164)](_0x523e42(0x14d))),console['log'](a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x1a2)[_0x523e42(0x17f)](0x1e)));const _0x1a43b4=getGlobalConfigPath(),_0x91c617=getProjectConfigPath();console[_0x523e42(0x169)](_0x523e42(0x166)+(_0x1a43b4||a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x152)))),console[_0x523e42(0x169)](_0x523e42(0x186)+(_0x91c617||a92_0x237fe['gray']('(not\x20found)'))),console[_0x523e42(0x169)](),console[_0x523e42(0x169)](a92_0x237fe[_0x523e42(0x164)](_0x523e42(0x19f))),console['log'](a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x1a2)[_0x523e42(0x17f)](0x1e)));const _0x5a1cc7=(_0x2703e3,_0x16624c)=>{const _0x365398=_0x523e42;if(!_0x16624c){console[_0x365398(0x169)]('\x20\x20'+_0x2703e3['padEnd'](0x11)+'\x20'+a92_0x237fe['gray'](_0x365398(0x15b)));return;}const _0x2dcd62=inspectCliConfigJsonFile(_0x16624c);if(_0x2dcd62[_0x365398(0x176)]==='ok')console[_0x365398(0x169)]('\x20\x20'+_0x2703e3[_0x365398(0x17b)](0x11)+'\x20'+a92_0x237fe['green'](_0x365398(0x159)));else{if(_0x2dcd62[_0x365398(0x176)]==='empty')console['log']('\x20\x20'+_0x2703e3[_0x365398(0x17b)](0x11)+'\x20'+a92_0x237fe[_0x365398(0x18c)](_0x365398(0x184)));else _0x2dcd62['status']===_0x365398(0x165)?console['log']('\x20\x20'+_0x2703e3[_0x365398(0x17b)](0x11)+'\x20'+a92_0x237fe[_0x365398(0x17e)](_0x365398(0x17d))):(console[_0x365398(0x169)]('\x20\x20'+_0x2703e3['padEnd'](0x11)+'\x20'+a92_0x237fe[_0x365398(0x16a)]('✗\x20Invalid\x20JSON')),console[_0x365398(0x169)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a92_0x237fe[_0x365398(0x16a)](_0x2dcd62['message'])));}};_0x5a1cc7('Global',_0x1a43b4),_0x5a1cc7(_0x523e42(0x175),_0x91c617),console[_0x523e42(0x169)](),console[_0x523e42(0x169)](a92_0x237fe['bold'](_0x523e42(0x151))),console[_0x523e42(0x169)](a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x1a2)[_0x523e42(0x17f)](0x1e))),console[_0x523e42(0x169)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x428c9f[_0x523e42(0x156)]||a92_0x237fe['red'](_0x523e42(0x18a)))),console[_0x523e42(0x169)](_0x523e42(0x181)+_0x428c9f[_0x523e42(0x19c)]),console[_0x523e42(0x169)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x428c9f[_0x523e42(0x174)]),console[_0x523e42(0x169)](_0x523e42(0x180)+_0x428c9f['apiDir']),console[_0x523e42(0x169)](_0x523e42(0x18e)+(_0x428c9f[_0x523e42(0x183)]||a92_0x237fe[_0x523e42(0x17e)]('(none)'))),console[_0x523e42(0x169)](_0x523e42(0x182)+(_0x428c9f['currentApp']||a92_0x237fe[_0x523e42(0x17e)]('(none)'))),console[_0x523e42(0x169)](_0x523e42(0x17c)+(_0x428c9f['explicitAppName']||a92_0x237fe[_0x523e42(0x17e)]('(none)'))),console[_0x523e42(0x169)](_0x523e42(0x19e)+(_0x428c9f[_0x523e42(0x1a0)]||a92_0x237fe['gray'](_0x523e42(0x16c)+DEFAULT_CONFIG_VALUES[_0x523e42(0x1a0)]+')'))),console[_0x523e42(0x169)](_0x523e42(0x162)+(_0x428c9f['pageSize']??a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x188)))),console[_0x523e42(0x169)](_0x523e42(0x199)+_0x428c9f[_0x523e42(0x194)]),console['log'](_0x523e42(0x195)+_0x428c9f[_0x523e42(0x173)]),console['log'](_0x523e42(0x16f)+(_0x428c9f[_0x523e42(0x160)]?a92_0x237fe[_0x523e42(0x192)]('(set,\x20length='+_0x428c9f['cookie'][_0x523e42(0x16d)]+')'):_0x459a37?a92_0x237fe[_0x523e42(0x192)](_0x523e42(0x187)+_0x459a37['length']+')'):a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x15a))));const _0x3a3ebc=Object[_0x523e42(0x191)](_0x428c9f[_0x523e42(0x197)]);if(_0x3a3ebc[_0x523e42(0x16d)]>0x0){console[_0x523e42(0x169)](),console[_0x523e42(0x169)](a92_0x237fe[_0x523e42(0x164)](_0x523e42(0x18f))),console['log'](a92_0x237fe['gray'](_0x523e42(0x1a2)['repeat'](0x1e)));for(const _0x2d6b9e of _0x3a3ebc){const _0x17f4b6=_0x428c9f['apps'][_0x2d6b9e],_0x1d4c41=_0x2d6b9e===_0x428c9f[_0x523e42(0x183)],_0xb8888=_0x2d6b9e===_0x428c9f[_0x523e42(0x15c)],_0x1dba06=_0xb8888?a92_0x237fe[_0x523e42(0x192)]('\x20←\x20current'):'',_0x442d92=_0x1d4c41?'\x20(default)':'';console['log']('\x20\x20'+_0x2d6b9e+_0x442d92+_0x1dba06),console['log'](_0x523e42(0x18b)+_0x17f4b6[_0x523e42(0x17a)]);const _0x547031=buildAppDoctorFields(_0x17f4b6,{'env':_0x428c9f[_0x523e42(0x19c)],'apiDir':_0x428c9f[_0x523e42(0x179)][_0x523e42(0x168)]||DEFAULT_CONFIG_VALUES[_0x523e42(0x168)],'cookie':_0x428c9f['cookie']||_0x459a37||undefined,'accessKey':_0x428c9f[_0x523e42(0x196)]});console[_0x523e42(0x169)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x547031[_0x523e42(0x19c)][_0x523e42(0x150)]+'\x20\x20'+a92_0x237fe[_0x523e42(0x17e)]('('+_0x547031['env'][_0x523e42(0x14e)]+')')),console['log'](_0x523e42(0x19a)+_0x547031['apiDir'][_0x523e42(0x150)]+'\x20\x20'+a92_0x237fe['gray']('('+_0x547031[_0x523e42(0x168)][_0x523e42(0x14e)]+')'));const _0x14bd13=_0x547031[_0x523e42(0x160)][_0x523e42(0x150)]?a92_0x237fe['green'](_0x523e42(0x178)+_0x547031[_0x523e42(0x160)][_0x523e42(0x150)][_0x523e42(0x16d)]+')'):a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x15a));console[_0x523e42(0x169)](_0x523e42(0x18d)+_0x14bd13+'\x20\x20'+a92_0x237fe[_0x523e42(0x17e)]('('+_0x547031['cookie'][_0x523e42(0x14e)]+')'));const _0x1e31a7=_0x547031[_0x523e42(0x196)][_0x523e42(0x150)]?a92_0x237fe['green']('(set,\x20length='+_0x547031[_0x523e42(0x196)][_0x523e42(0x150)]['length']+')'):a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x15a));console[_0x523e42(0x169)](_0x523e42(0x172)+_0x1e31a7+'\x20\x20'+a92_0x237fe[_0x523e42(0x17e)]('('+_0x547031[_0x523e42(0x196)][_0x523e42(0x14e)]+')'));}}console['log'](),console[_0x523e42(0x169)](a92_0x237fe[_0x523e42(0x164)](_0x523e42(0x158))),console[_0x523e42(0x169)](a92_0x237fe[_0x523e42(0x17e)]('\x20\x20─'[_0x523e42(0x17f)](0x1e))),console[_0x523e42(0x169)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x523e42(0x169)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x523e42(0x169)](_0x523e42(0x1a1)+getRuntimeDomain()),console[_0x523e42(0x169)](),console['log'](a92_0x237fe['bold'](_0x523e42(0x155))),console[_0x523e42(0x169)](a92_0x237fe[_0x523e42(0x17e)](_0x523e42(0x1a2)[_0x523e42(0x17f)](0x1e)));if(_0x459a37){const _0x13f618=await getIsSessionValid();console[_0x523e42(0x169)](_0x523e42(0x157)+(_0x13f618?a92_0x237fe['green'](_0x523e42(0x189)):a92_0x237fe['red'](_0x523e42(0x198))));}else console[_0x523e42(0x169)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a92_0x237fe[_0x523e42(0x16a)]('✗\x20Not\x20logged\x20in'));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a92_0x368278(0x154),'command':a92_0x368278(0x161),'description':a92_0x368278(0x185),'risk':a92_0x368278(0x170),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a92_0x36dda5=a92_0x12cc;(function(_0x5e5873,_0xcb3c20){const _0x4b19be=a92_0x12cc,_0x25f181=_0x5e5873();while(!![]){try{const _0x42ff8d=parseInt(_0x4b19be(0x132))/0x1+-parseInt(_0x4b19be(0x124))/0x2*(parseInt(_0x4b19be(0x13e))/0x3)+-parseInt(_0x4b19be(0x125))/0x4*(parseInt(_0x4b19be(0x105))/0x5)+parseInt(_0x4b19be(0x117))/0x6+-parseInt(_0x4b19be(0x10b))/0x7*(-parseInt(_0x4b19be(0xfd))/0x8)+parseInt(_0x4b19be(0x10c))/0x9*(-parseInt(_0x4b19be(0x114))/0xa)+parseInt(_0x4b19be(0x138))/0xb;if(_0x42ff8d===_0xcb3c20)break;else _0x25f181['push'](_0x25f181['shift']());}catch(_0x481f51){_0x25f181['push'](_0x25f181['shift']());}}}(a92_0x535d,0xb7a29));function a92_0x535d(){const _0x9e2284=['(set,\x20length=','unknown','log','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','currentApp','1257968RoWlaP','Global','slice','green','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','check','335695QHXTlT','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','keys','\x20\x20API\x20Endpoints','\x20\x20explicitAppName:\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','21okcyZR','1927899SAEYQh','yellow','value','\x20(default)','appcode','bold','cookie','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','20UJbNQJ','\x20\x20─','red','8370540oiuOLY','version','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','repeat','status','accessKey','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','env','missing','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','length','\x20\x20Auth','3068kcVzus','40XtMGrw','apps','appCode','explicitAppName','(set\x20via\x20file,\x20length=','empty','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','padEnd','raw','Project','gray','✗\x20Invalid\x20JSON','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','1107265IlpJzW','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','apiDir','(none)','\x20\x20\x20\x20accessKey:\x20\x20','1459700WeRpkQ','source','(missing)','(not\x20found)','\x20\x20Merged\x20Config','\x20\x20Config\x20JSON','2454dNLEwQ','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','arch','platform','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'];a92_0x535d=function(){return _0x9e2284;};return a92_0x535d();}import a92_0x1b0c40 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';function a92_0x12cc(_0x26a332,_0x54815f){_0x26a332=_0x26a332-0xfb;const _0x535dbc=a92_0x535d();let _0x12ccc3=_0x535dbc[_0x26a332];return _0x12ccc3;}import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x40cfd1){const _0x27fecb=a92_0x12cc,_0x4870e0=GIT_COMMIT!==_0x27fecb(0x144)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x27fecb(0xff)](0x0,0xa)+')':VERSION,_0x2c1382=buildConfigFromFlags({}),_0x365738=getCookie();console[_0x27fecb(0x145)](),console[_0x27fecb(0x145)](a92_0x1b0c40[_0x27fecb(0x111)](CLI_BIN_NAME+'\x20doctor')),console[_0x27fecb(0x145)](a92_0x1b0c40[_0x27fecb(0x12f)]('─'['repeat'](0x32))),console[_0x27fecb(0x145)](_0x27fecb(0x142)+_0x4870e0),console[_0x27fecb(0x145)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x27fecb(0x118)]),console[_0x27fecb(0x145)](_0x27fecb(0x13f)+process[_0x27fecb(0x141)]+'\x20'+process[_0x27fecb(0x140)]),console[_0x27fecb(0x145)](),console[_0x27fecb(0x145)](a92_0x1b0c40[_0x27fecb(0x111)]('\x20\x20Config\x20Files')),console[_0x27fecb(0x145)](a92_0x1b0c40[_0x27fecb(0x12f)](_0x27fecb(0x115)[_0x27fecb(0x11a)](0x1e)));const _0x45fafc=getGlobalConfigPath(),_0x33722e=getProjectConfigPath();console['log'](_0x27fecb(0x103)+(_0x45fafc||a92_0x1b0c40['gray'](_0x27fecb(0x13b)))),console[_0x27fecb(0x145)](_0x27fecb(0x102)+(_0x33722e||a92_0x1b0c40['gray'](_0x27fecb(0x13b)))),console[_0x27fecb(0x145)](),console[_0x27fecb(0x145)](a92_0x1b0c40[_0x27fecb(0x111)](_0x27fecb(0x13d))),console[_0x27fecb(0x145)](a92_0x1b0c40[_0x27fecb(0x12f)](_0x27fecb(0x115)[_0x27fecb(0x11a)](0x1e)));const _0x35eb3c=(_0x47433e,_0x42f6d6)=>{const _0x26f0b0=_0x27fecb;if(!_0x42f6d6){console[_0x26f0b0(0x145)]('\x20\x20'+_0x47433e[_0x26f0b0(0x12c)](0x11)+'\x20'+a92_0x1b0c40[_0x26f0b0(0x12f)]('(no\x20file)'));return;}const _0x40cca0=inspectCliConfigJsonFile(_0x42f6d6);if(_0x40cca0[_0x26f0b0(0x11b)]==='ok')console[_0x26f0b0(0x145)]('\x20\x20'+_0x47433e[_0x26f0b0(0x12c)](0x11)+'\x20'+a92_0x1b0c40[_0x26f0b0(0x100)]('✓\x20Valid\x20JSON'));else{if(_0x40cca0[_0x26f0b0(0x11b)]===_0x26f0b0(0x12a))console[_0x26f0b0(0x145)]('\x20\x20'+_0x47433e[_0x26f0b0(0x12c)](0x11)+'\x20'+a92_0x1b0c40[_0x26f0b0(0x10d)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x40cca0['status']===_0x26f0b0(0x11f)?console[_0x26f0b0(0x145)]('\x20\x20'+_0x47433e[_0x26f0b0(0x12c)](0x11)+'\x20'+a92_0x1b0c40[_0x26f0b0(0x12f)](_0x26f0b0(0x13a))):(console[_0x26f0b0(0x145)]('\x20\x20'+_0x47433e[_0x26f0b0(0x12c)](0x11)+'\x20'+a92_0x1b0c40[_0x26f0b0(0x116)](_0x26f0b0(0x130))),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a92_0x1b0c40[_0x26f0b0(0x116)](_0x40cca0['message'])));}};_0x35eb3c(_0x27fecb(0xfe),_0x45fafc),_0x35eb3c(_0x27fecb(0x12e),_0x33722e),console[_0x27fecb(0x145)](),console[_0x27fecb(0x145)](a92_0x1b0c40[_0x27fecb(0x111)](_0x27fecb(0x13c))),console[_0x27fecb(0x145)](a92_0x1b0c40[_0x27fecb(0x12f)](_0x27fecb(0x115)[_0x27fecb(0x11a)](0x1e))),console[_0x27fecb(0x145)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2c1382[_0x27fecb(0x127)]||a92_0x1b0c40[_0x27fecb(0x116)]('(not\x20set)'))),console[_0x27fecb(0x145)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2c1382[_0x27fecb(0x11e)]),console[_0x27fecb(0x145)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2c1382['locale']),console[_0x27fecb(0x145)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2c1382[_0x27fecb(0x135)]),console['log'](_0x27fecb(0x106)+(_0x2c1382['defaultApp']||a92_0x1b0c40[_0x27fecb(0x12f)]('(none)'))),console[_0x27fecb(0x145)](_0x27fecb(0x119)+(_0x2c1382[_0x27fecb(0xfc)]||a92_0x1b0c40[_0x27fecb(0x12f)](_0x27fecb(0x136)))),console[_0x27fecb(0x145)](_0x27fecb(0x109)+(_0x2c1382[_0x27fecb(0x128)]||a92_0x1b0c40[_0x27fecb(0x12f)](_0x27fecb(0x136)))),console[_0x27fecb(0x145)](_0x27fecb(0x133)+(_0x2c1382[_0x27fecb(0x134)]||a92_0x1b0c40[_0x27fecb(0x12f)](_0x27fecb(0x147)+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0x27fecb(0x11d)+(_0x2c1382['pageSize']??a92_0x1b0c40['gray']('(default)'))),console[_0x27fecb(0x145)](_0x27fecb(0x113)+_0x2c1382['riskLevel']),console[_0x27fecb(0x145)](_0x27fecb(0x146)+_0x2c1382['verbose']),console[_0x27fecb(0x145)](_0x27fecb(0x101)+(_0x2c1382[_0x27fecb(0x112)]?a92_0x1b0c40[_0x27fecb(0x100)](_0x27fecb(0x143)+_0x2c1382[_0x27fecb(0x112)]['length']+')'):_0x365738?a92_0x1b0c40[_0x27fecb(0x100)](_0x27fecb(0x129)+_0x365738[_0x27fecb(0x122)]+')'):a92_0x1b0c40[_0x27fecb(0x12f)](_0x27fecb(0x136))));const _0x532e61=Object[_0x27fecb(0x107)](_0x2c1382[_0x27fecb(0x126)]);if(_0x532e61[_0x27fecb(0x122)]>0x0){console[_0x27fecb(0x145)](),console['log'](a92_0x1b0c40[_0x27fecb(0x111)]('\x20\x20Apps')),console[_0x27fecb(0x145)](a92_0x1b0c40['gray'](_0x27fecb(0x115)[_0x27fecb(0x11a)](0x1e)));for(const _0x2a2a94 of _0x532e61){const _0x35f45f=_0x2c1382['apps'][_0x2a2a94],_0x21fce4=_0x2a2a94===_0x2c1382['defaultApp'],_0x51ca37=_0x2a2a94===_0x2c1382[_0x27fecb(0xfc)],_0x2077d6=_0x51ca37?a92_0x1b0c40['green']('\x20←\x20current'):'',_0x34a38c=_0x21fce4?_0x27fecb(0x10f):'';console['log']('\x20\x20'+_0x2a2a94+_0x34a38c+_0x2077d6),console[_0x27fecb(0x145)](_0x27fecb(0x12b)+_0x35f45f[_0x27fecb(0x110)]);const _0xc47c35=buildAppDoctorFields(_0x35f45f,{'env':_0x2c1382[_0x27fecb(0x11e)],'apiDir':_0x2c1382[_0x27fecb(0x12d)][_0x27fecb(0x135)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x2c1382['cookie']||_0x365738||undefined,'accessKey':_0x2c1382[_0x27fecb(0x11c)]});console['log'](_0x27fecb(0x121)+_0xc47c35['env'][_0x27fecb(0x10e)]+'\x20\x20'+a92_0x1b0c40[_0x27fecb(0x12f)]('('+_0xc47c35['env'][_0x27fecb(0x139)]+')')),console[_0x27fecb(0x145)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0xc47c35[_0x27fecb(0x135)]['value']+'\x20\x20'+a92_0x1b0c40[_0x27fecb(0x12f)]('('+_0xc47c35[_0x27fecb(0x135)][_0x27fecb(0x139)]+')'));const _0x1b3a80=_0xc47c35['cookie'][_0x27fecb(0x10e)]?a92_0x1b0c40[_0x27fecb(0x100)](_0x27fecb(0x143)+_0xc47c35['cookie'][_0x27fecb(0x10e)]['length']+')'):a92_0x1b0c40[_0x27fecb(0x12f)](_0x27fecb(0x136));console['log'](_0x27fecb(0x131)+_0x1b3a80+'\x20\x20'+a92_0x1b0c40[_0x27fecb(0x12f)]('('+_0xc47c35[_0x27fecb(0x112)][_0x27fecb(0x139)]+')'));const _0x41093e=_0xc47c35['accessKey'][_0x27fecb(0x10e)]?a92_0x1b0c40[_0x27fecb(0x100)]('(set,\x20length='+_0xc47c35[_0x27fecb(0x11c)][_0x27fecb(0x10e)][_0x27fecb(0x122)]+')'):a92_0x1b0c40[_0x27fecb(0x12f)](_0x27fecb(0x136));console[_0x27fecb(0x145)](_0x27fecb(0x137)+_0x41093e+'\x20\x20'+a92_0x1b0c40['gray']('('+_0xc47c35[_0x27fecb(0x11c)][_0x27fecb(0x139)]+')'));}}console[_0x27fecb(0x145)](),console[_0x27fecb(0x145)](a92_0x1b0c40[_0x27fecb(0x111)](_0x27fecb(0x108))),console['log'](a92_0x1b0c40[_0x27fecb(0x12f)](_0x27fecb(0x115)[_0x27fecb(0x11a)](0x1e))),console['log'](_0x27fecb(0xfb)+getApiDomain()),console[_0x27fecb(0x145)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x27fecb(0x145)](_0x27fecb(0x120)+getRuntimeDomain()),console[_0x27fecb(0x145)](),console[_0x27fecb(0x145)](a92_0x1b0c40[_0x27fecb(0x111)](_0x27fecb(0x123))),console[_0x27fecb(0x145)](a92_0x1b0c40[_0x27fecb(0x12f)](_0x27fecb(0x115)[_0x27fecb(0x11a)](0x1e)));if(_0x365738){const _0x249ee1=await getIsSessionValid();console[_0x27fecb(0x145)](_0x27fecb(0x10a)+(_0x249ee1?a92_0x1b0c40[_0x27fecb(0x100)]('✓\x20Valid'):a92_0x1b0c40[_0x27fecb(0x116)]('✗\x20Expired')));}else console[_0x27fecb(0x145)](_0x27fecb(0x10a)+a92_0x1b0c40[_0x27fecb(0x116)]('✗\x20Not\x20logged\x20in'));return console[_0x27fecb(0x145)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a92_0x36dda5(0x104),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x173b27=a93_0x20b3;(function(_0x76a6a5,_0x186722){const _0x14cea0=a93_0x20b3,_0x4c3d22=_0x76a6a5();while(!![]){try{const _0x3937d0=-parseInt(_0x14cea0(0x174))/0x1+parseInt(_0x14cea0(0x158))/0x2+-parseInt(_0x14cea0(0x151))/0x3*(parseInt(_0x14cea0(0x169))/0x4)+parseInt(_0x14cea0(0x171))/0x5*(parseInt(_0x14cea0(0x15e))/0x6)+parseInt(_0x14cea0(0x16e))/0x7+-parseInt(_0x14cea0(0x153))/0x8*(parseInt(_0x14cea0(0x156))/0x9)+parseInt(_0x14cea0(0x176))/0xa;if(_0x3937d0===_0x186722)break;else _0x4c3d22['push'](_0x4c3d22['shift']());}catch(_0x1ad914){_0x4c3d22['push'](_0x4c3d22['shift']());}}}(a93_0x5170,0x4ace3));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';function a93_0x5170(){const _0x41faf3=['Path\x20to\x20the\x20local\x20file\x20to\x20upload','string','Uploaded\x20file:\x20','1135038SueJwR','\x20to\x20development\x20app\x20','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','boolean','str','upload','path','validation','query-url','filePath','download','4jzvwUj','write','POST','long-term','Preview:\x20upload\x20','3081505VcrykV','/smartapi/common/uploadFile','appCode','5Nhfygk','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','391683AeRUiv','trim','6680240QcWIuM','923397otxKST','file','8fpxLfw','filePath\x20is\x20required.','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','3356829baOtLU','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','162908EKZHUA','bool','filepath'];a93_0x5170=function(){return _0x41faf3;};return a93_0x5170();}function a93_0x20b3(_0x3db0c5,_0x4f8093){_0x3db0c5=_0x3db0c5-0x151;const _0x5170de=a93_0x5170();let _0x20b39e=_0x5170de[_0x3db0c5];return _0x20b39e;}import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a93_0x173b27(0x152),'type':a93_0x173b27(0x15c),'required':!![],'description':a93_0x173b27(0x15b)},FILEPATH_FLAG={'name':a93_0x173b27(0x15a),'type':a93_0x173b27(0x15c),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a93_0x173b27(0x168),'type':'boolean','description':a93_0x173b27(0x160)},LONG_TERM_FLAG={'name':'long-term','type':a93_0x173b27(0x161),'description':a93_0x173b27(0x155)};function requireFilePath(_0x39389c){const _0x43cb5f=a93_0x173b27,_0x2becd9=_0x39389c[_0x43cb5f(0x175)]();if(!_0x2becd9)throw CliErrors[_0x43cb5f(0x165)](_0x43cb5f(0x154));return _0x2becd9;}const fileUpload={'service':a93_0x173b27(0x152),'command':a93_0x173b27(0x163),'description':a93_0x173b27(0x157),'risk':a93_0x173b27(0x16a),'flags':[FILE_FLAG],async 'dryRun'(_0xdc0ed1){const _0x83522c=a93_0x173b27,_0x2cfeaa=requireDevelopmentUploadFile(_0xdc0ed1[_0x83522c(0x162)](_0x83522c(0x152)),'File');return{'method':_0x83522c(0x16b),'url':_0x83522c(0x16f),'body':{'appCode':_0xdc0ed1[_0x83522c(0x170)],'multipart':{'file':_0x2cfeaa}},'description':_0x83522c(0x16d)+_0x2cfeaa['path']+_0x83522c(0x15f)+_0xdc0ed1['appCode']};},async 'execute'(_0x2e4a23){const _0x9c77cf=a93_0x173b27,_0x565f64=requireDevelopmentUploadFile(_0x2e4a23[_0x9c77cf(0x162)](_0x9c77cf(0x152)),'File'),_0x23a1d7=await uploadDevelopmentFile(_0x2e4a23[_0x9c77cf(0x170)],_0x565f64[_0x9c77cf(0x164)]);return{'ok':!![],'data':_0x23a1d7,'message':_0x23a1d7[_0x9c77cf(0x167)]?_0x9c77cf(0x15d)+_0x23a1d7['filePath']+_0x9c77cf(0x173):_0x9c77cf(0x172)};}},fileQueryUrl={'service':a93_0x173b27(0x152),'command':a93_0x173b27(0x166),'description':'Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','risk':'read','flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0xf98450){const _0x584389=a93_0x173b27,_0x628ac3=requireFilePath(_0xf98450[_0x584389(0x162)](_0x584389(0x15a))),_0x1a5c65=await queryDevelopmentFileUrl(_0x628ac3,{'download':_0xf98450[_0x584389(0x159)](_0x584389(0x168)),'longTerm':_0xf98450[_0x584389(0x159)](_0x584389(0x16c))});return{'ok':!![],'data':_0x1a5c65};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x1b5c41=a94_0x3028;(function(_0x2af6cd,_0x171b3f){const _0x3a3b6e=a94_0x3028,_0x6474e8=_0x2af6cd();while(!![]){try{const _0x3f8199=-parseInt(_0x3a3b6e(0x123))/0x1+-parseInt(_0x3a3b6e(0x137))/0x2+-parseInt(_0x3a3b6e(0x128))/0x3+-parseInt(_0x3a3b6e(0x12e))/0x4+parseInt(_0x3a3b6e(0x126))/0x5+parseInt(_0x3a3b6e(0x148))/0x6*(parseInt(_0x3a3b6e(0x141))/0x7)+parseInt(_0x3a3b6e(0x121))/0x8;if(_0x3f8199===_0x171b3f)break;else _0x6474e8['push'](_0x6474e8['shift']());}catch(_0x2fe238){_0x6474e8['push'](_0x6474e8['shift']());}}}(a94_0x30d9,0xd42ce));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';function a94_0x30d9(){const _0x5e0f41=['1025166pzqOHk','\x20\x20Env:\x20','appCode','str','init','valid','cwd','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','env','yes','34629XHmskr','custom','log','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x0a✓\x20Successfully\x20initialized\x20','string','flagMissing','288ghcEeo','\x20\x20Default:\x20','boolean','17799440NsSEbG','检测到旧配置文件,正在自动升级...\x0a','570744pIdoOO','App\x20code\x20to\x20initialize\x20with','\x20config','1148480BSQYvM','toLocaleString','148470pihdEZ','Use\x20`','Write\x20to\x20global\x20config\x20instead\x20of\x20project','appcode','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','bool','2760780UCKwkM','project','validation','nonInteractive','Target\x20environment','write','production','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','global'];a94_0x30d9=function(){return _0x5e0f41;};return a94_0x30d9();}import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x18ded5){return{'appCode':_0x18ded5,'appName':_0x18ded5};}function writeInitConfig(_0x592f55,_0x250324,_0x2099ed){const _0x2bab04=a94_0x3028,_0x4dcf6f=resolveWriteConfigPath(_0x592f55),_0x3a3bd7=buildCanonicalProjectConfig({},{'appCodes':_0x250324['map'](_0x4dfbb3=>_0x4dfbb3[_0x2bab04(0x139)]),'env':_0x2099ed,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x2bab04(0x127)]()}});writeConfigFile(_0x4dcf6f,_0x3a3bd7);const _0x13e52b=_0x592f55==='global'?_0x2bab04(0x136):_0x2bab04(0x12f);console['log'](_0x2bab04(0x145)+_0x13e52b+_0x2bab04(0x125)),console['log']('\x20\x20Apps:\x20'+_0x250324['map'](_0x542a5e=>_0x542a5e[_0x2bab04(0x139)])['join'](',\x20')),console[_0x2bab04(0x143)](_0x2bab04(0x11f)+_0x3a3bd7['defaultApp']),console[_0x2bab04(0x143)](_0x2bab04(0x138)+_0x3a3bd7[_0x2bab04(0x13f)]),console[_0x2bab04(0x143)]('\x20\x20Config:\x20'+_0x4dcf6f);}async function runSmartInit(_0x395840){const _0x547ee4=a94_0x3028,_0x5863a1=process[_0x547ee4(0x13d)](),_0x4acb6c=_0x395840['bool'](_0x547ee4(0x136))?_0x547ee4(0x136):_0x547ee4(0x12f),_0x27f716=_0x395840[_0x547ee4(0x13a)](_0x547ee4(0x13f))||_0x547ee4(0x134),_0x5a29eb=_0x395840['str'](_0x547ee4(0x12b))||undefined,_0x504446=_0x395840[_0x547ee4(0x12d)](_0x547ee4(0x12f));if(_0x504446){const {initConfig:_0x3b5df7}=await import('../../commands/project/init.js');return _0x3b5df7({'appcode':_0x5a29eb,'env':_0x27f716,'autoYes':_0x395840[_0x547ee4(0x12d)]('yes')});}if(_0x4acb6c===_0x547ee4(0x12f)){const _0x4721ed=existsSync(resolve(_0x5863a1,NEW_CONFIG_NAME)),_0x716dee=LEGACY_CONFIG_NAMES['some'](_0x20388a=>existsSync(resolve(_0x5863a1,_0x20388a)));if(_0x716dee&&!_0x4721ed)return console['log'](_0x547ee4(0x122)),upgradeApp(_0x395840[_0x547ee4(0x131)],{'yes':_0x395840[_0x547ee4(0x12d)](_0x547ee4(0x140))});if(_0x4721ed)throw CliErrors[_0x547ee4(0x130)](_0x547ee4(0x144),_0x547ee4(0x129)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x5a29eb){const _0xc54186=validateAppcode(_0x5a29eb);if(!_0xc54186[_0x547ee4(0x13c)])throw CliErrors[_0x547ee4(0x130)](_0xc54186['message']);writeInitConfig(_0x4acb6c,[syntheticApp(_0x5a29eb)],_0x27f716);return;}if(_0x395840['nonInteractive'])throw CliErrors[_0x547ee4(0x147)](_0x547ee4(0x12b),'Usage:\x20'+CLI_BIN_NAME+_0x547ee4(0x12c));const _0x3344aa=getCookie(),_0x599ae3=await selectMultipleApps(_0x3344aa),_0x2a4049=_0x599ae3===_0x547ee4(0x142)?[syntheticApp(await promptCustomAppcode())]:_0x599ae3;writeInitConfig(_0x4acb6c,_0x2a4049,_0x27f716);}function a94_0x3028(_0x216b5b,_0x5ed634){_0x216b5b=_0x216b5b-0x11f;const _0x30d975=a94_0x30d9();let _0x3028d8=_0x30d975[_0x216b5b];return _0x3028d8;}const initFlags=[{'name':'global','type':a94_0x1b5c41(0x120),'description':a94_0x1b5c41(0x12a),'default':![]},{'name':a94_0x1b5c41(0x13f),'type':a94_0x1b5c41(0x146),'description':a94_0x1b5c41(0x132),'default':a94_0x1b5c41(0x134),'enum':[...RABETBASE_ENV_VALUES]},{'name':a94_0x1b5c41(0x12b),'type':'string','description':a94_0x1b5c41(0x124)},{'name':a94_0x1b5c41(0x12f),'type':a94_0x1b5c41(0x120),'description':a94_0x1b5c41(0x13e),'default':![]},{'name':a94_0x1b5c41(0x140),'type':a94_0x1b5c41(0x120),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a94_0x1b5c41(0x13b),'command':'run','description':a94_0x1b5c41(0x135),'risk':a94_0x1b5c41(0x133),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x40699f){return await runSmartInit(_0x40699f),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a95_0x29dc(){const _0x43528f=['136146eVtNug','833020xIMhmQ','72oWrdkH','81441uMpCBB','1130352sXCCCE','656690BSdEnW','5729590nsZeHb','112QaqhbB','2sVzJIb','2312485PgCEae'];a95_0x29dc=function(){return _0x43528f;};return a95_0x29dc();}(function(_0x497a95,_0x155f4f){const _0xf983f3=a95_0x10d3,_0x221a7a=_0x497a95();while(!![]){try{const _0x3b5e42=parseInt(_0xf983f3(0x157))/0x1*(-parseInt(_0xf983f3(0x154))/0x2)+parseInt(_0xf983f3(0x153))/0x3+parseInt(_0xf983f3(0x150))/0x4+-parseInt(_0xf983f3(0x158))/0x5+-parseInt(_0xf983f3(0x159))/0x6*(-parseInt(_0xf983f3(0x156))/0x7)+-parseInt(_0xf983f3(0x151))/0x8*(-parseInt(_0xf983f3(0x152))/0x9)+parseInt(_0xf983f3(0x155))/0xa;if(_0x3b5e42===_0x155f4f)break;else _0x221a7a['push'](_0x221a7a['shift']());}catch(_0x2f3d00){_0x221a7a['push'](_0x221a7a['shift']());}}}(a95_0x29dc,0x75fec));import{issueReport}from'../../commands/issue/report.js';function a95_0x10d3(_0x4bec93,_0x47ab2f){_0x4bec93=_0x4bec93-0x150;const _0x29dc76=a95_0x29dc();let _0x10d344=_0x29dc76[_0x4bec93];return _0x10d344;}export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a96_0x247ae1=a96_0x232a;function a96_0x232a(_0x1c9ca3,_0x12e201){_0x1c9ca3=_0x1c9ca3-0x128;const _0x4af16f=a96_0x4af1();let _0x232a64=_0x4af16f[_0x1c9ca3];return _0x232a64;}(function(_0x29d75a,_0x7b52c3){const _0x277c9a=a96_0x232a,_0xee654a=_0x29d75a();while(!![]){try{const _0x287369=parseInt(_0x277c9a(0x140))/0x1+-parseInt(_0x277c9a(0x145))/0x2*(-parseInt(_0x277c9a(0x136))/0x3)+parseInt(_0x277c9a(0x12e))/0x4*(-parseInt(_0x277c9a(0x141))/0x5)+-parseInt(_0x277c9a(0x132))/0x6*(parseInt(_0x277c9a(0x147))/0x7)+parseInt(_0x277c9a(0x144))/0x8+parseInt(_0x277c9a(0x13d))/0x9+parseInt(_0x277c9a(0x133))/0xa*(-parseInt(_0x277c9a(0x12a))/0xb);if(_0x287369===_0x7b52c3)break;else _0xee654a['push'](_0xee654a['shift']());}catch(_0x3a859c){_0xee654a['push'](_0xee654a['shift']());}}}(a96_0x4af1,0x8521e));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a96_0x247ae1(0x12f);const NUDGE_SUPPRESSED_CODES=new Set(['cancelled',a96_0x247ae1(0x149),a96_0x247ae1(0x13a),a96_0x247ae1(0x138),a96_0x247ae1(0x14a),a96_0x247ae1(0x12d),'validation_error',a96_0x247ae1(0x142)]),defaultWriter=_0x2ab0dc=>{const _0x5f55ae=a96_0x247ae1;process[_0x5f55ae(0x13e)][_0x5f55ae(0x130)](_0x2ab0dc);};export function shouldNudgeForError(_0x5ef011,_0x2126f2){const _0x1379d9=a96_0x247ae1;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x2126f2[_0x1379d9(0x14b)]===_0x1379d9(0x12b)&&_0x2126f2[_0x1379d9(0x148)]===_0x1379d9(0x13c))return![];if(_0x5ef011 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x1379d9(0x13b)](_0x5ef011[_0x1379d9(0x14d)]);return!![];}export function printIssueReportNudgeForError(_0x2a38bc,_0x3aa63a,_0x38c4=defaultWriter){if(!shouldNudgeForError(_0x2a38bc,_0x3aa63a))return;const _0x5a5291=buildSuggestedTitle(_0x2a38bc,_0x3aa63a);_0x38c4(formatNudge(_0x5a5291));}function buildSuggestedTitle(_0x1f4241,_0x3b9c1e){const _0x56ed8b=a96_0x247ae1,_0x15f700=_0x1f4241 instanceof Error?_0x1f4241['message']:String(_0x1f4241),_0x403a85=_0x15f700[_0x56ed8b(0x14c)](/[\r\n]+/g,'\x20')[_0x56ed8b(0x14c)](/\s+/g,'\x20')[_0x56ed8b(0x143)]()[_0x56ed8b(0x12c)](0x0,0x78)[_0x56ed8b(0x14c)](/"/g,'\x5c\x22'),_0x29bcd0=CLI_BIN_NAME+'\x20'+_0x3b9c1e['service']+'\x20'+_0x3b9c1e['command'];return _0x403a85[_0x56ed8b(0x137)]>0x0?_0x29bcd0+':\x20'+_0x403a85:_0x29bcd0;}function a96_0x4af1(){const _0x3ff6e3=['1254345TemLaS','network_error','trim','3884832bWKlKZ','1810JMMdnh','=1\x20to\x20silence\x20this\x20hint.','2412074LLWlvQ','command','auth_required','unknown_command','service','replace','code','join','\x20\x20\x20\x20--title\x20\x22','33OLvTBf','issue','slice','flag_missing','12xuTOps','RABETBASE_DISABLE_ISSUE_NUDGE','write','Hit\x20a\x20','6jbRJOl','1827250XsbZXU','\x20issue\x20report\x20\x5c','\x22\x20\x5c','2085UsbAnf','length','not_in_project','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','config_missing','has','report','8853201jDLMKZ','stderr','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','92406cULpyT'];a96_0x4af1=function(){return _0x3ff6e3;};return a96_0x4af1();}function formatNudge(_0xcd6911){const _0x173892=a96_0x247ae1;return['',_0x173892(0x131)+CLI_BIN_NAME+'\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20'+CLI_BIN_NAME+_0x173892(0x134),_0x173892(0x129)+_0xcd6911+_0x173892(0x135),_0x173892(0x13f),_0x173892(0x139),'\x20\x20Set\x20'+NUDGE_OPT_OUT_ENV+_0x173892(0x146),''][_0x173892(0x128)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97_0x1e6940=a97_0x349b;(function(_0x48bf8c,_0x4f318d){const _0x394303=a97_0x349b,_0x969163=_0x48bf8c();while(!![]){try{const _0x4afd07=-parseInt(_0x394303(0xba))/0x1*(parseInt(_0x394303(0xa2))/0x2)+-parseInt(_0x394303(0xb7))/0x3*(parseInt(_0x394303(0xc5))/0x4)+-parseInt(_0x394303(0xb0))/0x5+parseInt(_0x394303(0xc6))/0x6+parseInt(_0x394303(0xa0))/0x7+-parseInt(_0x394303(0xa3))/0x8*(-parseInt(_0x394303(0xc2))/0x9)+-parseInt(_0x394303(0xac))/0xa*(-parseInt(_0x394303(0xb6))/0xb);if(_0x4afd07===_0x4f318d)break;else _0x969163['push'](_0x969163['shift']());}catch(_0x4fcb6e){_0x969163['push'](_0x969163['shift']());}}}(a97_0x1013,0x7f014));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a97_0x349b(_0xa6f189,_0x21f69b){_0xa6f189=_0xa6f189-0x90;const _0x101306=a97_0x1013();let _0x349b08=_0x101306[_0xa6f189];return _0x349b08;}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=a97_0x1e6940(0x90);export const issueReport={'service':a97_0x1e6940(0xbc),'command':'report','description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':a97_0x1e6940(0xb2),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':a97_0x1e6940(0x9c),'flags':[{'name':a97_0x1e6940(0x91),'type':a97_0x1e6940(0x9f),'required':!![],'description':a97_0x1e6940(0xb1)},{'name':a97_0x1e6940(0xa5),'type':a97_0x1e6940(0x9f),'description':a97_0x1e6940(0x98)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x516738){const _0xaf1819=a97_0x1e6940,_0x3ce92e=_0x516738[_0xaf1819(0x9d)]('title')[_0xaf1819(0x94)](),_0x4189fb=_0x516738[_0xaf1819(0x9d)](_0xaf1819(0xa5))[_0xaf1819(0x94)](),_0x3bb3c4=_0x516738['str'](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x3ce92e)throw CliErrors['flagMissing'](_0xaf1819(0x91),_0xaf1819(0x96));const _0x330075=_0x4189fb[_0xaf1819(0xbf)]>0x0,_0x4f8190=_0x3bb3c4[_0xaf1819(0xbf)]>0x0;if(_0x330075===_0x4f8190)throw CliErrors[_0xaf1819(0x92)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x4f8190){const _0x17f627=resolve(process['cwd'](),_0x3bb3c4);if(!existsSync(_0x17f627))throw CliErrors[_0xaf1819(0x92)](_0xaf1819(0xc7)+_0x17f627);}},async 'dryRun'(_0x58a751){const _0x849d2d=a97_0x1e6940,_0x16b506=await prepareIssueReport(_0x58a751);return{'method':_0x849d2d(0xaa),'url':_0x849d2d(0xc1)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x16b506[_0x849d2d(0x91)],'issue.description':_0x16b506[_0x849d2d(0xa5)],'issue.description_original_bytes':_0x16b506[_0x849d2d(0x93)][_0x849d2d(0xab)],'issue.description_truncated':_0x16b506[_0x849d2d(0x93)][_0x849d2d(0x95)],'issue.description_redactions':_0x16b506[_0x849d2d(0x93)][_0x849d2d(0x9a)],'issue.description_redaction_kinds':_0x16b506['sanitize']['redactionKinds'][_0x849d2d(0xa4)](',')}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','descriptionSource:\x20'+_0x16b506['descriptionSource'],_0x16b506[_0x849d2d(0xae)]?'descriptionFile:\x20'+_0x16b506['descriptionFilePath']:null,_0x16b506[_0x849d2d(0x93)]['truncated']?_0x849d2d(0xb3)+_0x16b506[_0x849d2d(0x93)][_0x849d2d(0xab)]+_0x849d2d(0xbe):null,_0x16b506['sanitize']['redactionCount']>0x0?_0x849d2d(0xad)+_0x16b506[_0x849d2d(0x93)][_0x849d2d(0x9a)]+'\x20('+_0x16b506[_0x849d2d(0x93)][_0x849d2d(0xb5)]['join'](',\x20')+')':null]['filter'](Boolean)[_0x849d2d(0xa4)]('\x0a')};},async 'execute'(_0xe739f9){const _0x18900c=a97_0x1e6940,_0x2e512b=await prepareIssueReport(_0xe739f9);try{await sendPlatformIssueCollectLog({'title':_0x2e512b[_0x18900c(0x91)],'description':_0x2e512b[_0x18900c(0xa5)],'sanitize':{'originalBytes':_0x2e512b[_0x18900c(0x93)][_0x18900c(0xab)],'truncated':_0x2e512b[_0x18900c(0x93)][_0x18900c(0x95)],'redactionCount':_0x2e512b[_0x18900c(0x93)][_0x18900c(0x9a)],'redactionKinds':_0x2e512b[_0x18900c(0x93)]['redactionKinds']}});}catch(_0x592f3a){throw CliErrors['apiError'](_0x18900c(0xc4)+(_0x592f3a instanceof Error?_0x592f3a['message']:String(_0x592f3a)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':buildResultMessage(_0x2e512b[_0x18900c(0x93)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x18900c(0xa9),_0x18900c(0xc3),_0x18900c(0xa7),'issue.description_truncated',_0x18900c(0x97),'issue.description_redaction_kinds'],'issue':{'title':_0x2e512b[_0x18900c(0x91)],'descriptionLength':_0x2e512b[_0x18900c(0xa5)]['length'],'descriptionSource':_0x2e512b[_0x18900c(0x9e)],..._0x2e512b[_0x18900c(0xae)]?{'descriptionFile':_0x2e512b['descriptionFilePath']}:{},'sanitize':{'originalBytes':_0x2e512b[_0x18900c(0x93)]['originalBytes'],'truncated':_0x2e512b['sanitize']['truncated'],'redactions':_0x2e512b[_0x18900c(0x93)][_0x18900c(0x9a)],'redactionKinds':_0x2e512b['sanitize']['redactionKinds']}}}};}};function buildResultMessage(_0x58f875){const _0x3799f7=a97_0x1e6940,_0x379a60=[];return _0x58f875[_0x3799f7(0x95)]&&_0x379a60[_0x3799f7(0xa8)](_0x3799f7(0xa1)+_0x58f875['originalBytes']+_0x3799f7(0xbe)),_0x58f875[_0x3799f7(0x9a)]>0x0&&_0x379a60[_0x3799f7(0xa8)](_0x3799f7(0xb8)+_0x58f875[_0x3799f7(0x9a)]+_0x3799f7(0xb4)+_0x58f875[_0x3799f7(0xb5)][_0x3799f7(0xa4)](',\x20')),_0x379a60[_0x3799f7(0xbf)]===0x0?'Platform\x20issue\x20reported':_0x3799f7(0x9b)+_0x379a60[_0x3799f7(0xa4)](';\x20')+')';}async function prepareIssueReport(_0x558266){const _0x225970=a97_0x1e6940,_0x1eafb6=_0x558266[_0x225970(0x9d)](_0x225970(0x91))['trim'](),_0x57b613=_0x558266[_0x225970(0x9d)](_0x225970(0xa5)),_0xa55060=_0x558266['str'](DESCRIPTION_FILE_FLAG)[_0x225970(0x94)]();if(!_0xa55060){const _0x28c6e1=_0x57b613;if(!_0x28c6e1['trim']())throw CliErrors[_0x225970(0x92)](_0x225970(0xbb),_0x225970(0xaf));const _0x2bbc1a=sanitizeIssueDescription(_0x28c6e1);return{'title':_0x1eafb6,'description':_0x2bbc1a['description'],'descriptionSource':_0x225970(0xa6),'sanitize':_0x2bbc1a};}const _0x1d6780=resolve(process[_0x225970(0xbd)](),_0xa55060),_0x47f226=await readFile(_0x1d6780,'utf8');if(!_0x47f226[_0x225970(0x94)]())throw CliErrors['validation'](_0x225970(0xc0)+_0x1d6780,_0x225970(0xb9));const _0x1bf0c4=sanitizeIssueDescription(_0x47f226);return{'title':_0x1eafb6,'description':_0x1bf0c4['description'],'descriptionSource':_0x225970(0x99),'descriptionFilePath':_0x1d6780,'sanitize':_0x1bf0c4};}function a97_0x1013(){const _0x2df5b6=['File\x20not\x20found:\x20','description-file','title','validation','sanitize','trim','truncated','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','issue.description_redactions','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','file','redactionCount','Platform\x20issue\x20reported\x20(','compress','str','descriptionSource','string','3616137MBEmpR','truncated\x20from\x20','742QRjiiX','7576728FleCZz','join','description','inline','issue.description_original_bytes','push','issue.title','POST','originalBytes','270DIXKeq','redactions:\x20','descriptionFilePath','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','2046535AMpDKY','One-line\x20issue\x20summary','write','truncated:\x20original\x20','\x20secret(s):\x20','redactionKinds','110231OwopWm','9vMGoio','redacted\x20','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','1143csIDgu','Issue\x20description\x20cannot\x20be\x20empty.','issue','cwd','\x20bytes','length','Issue\x20description\x20file\x20is\x20empty:\x20','otel://','9ahntVc','issue.description','Failed\x20to\x20report\x20platform\x20issue:\x20','720312xWpQgL','957342aCyQjx'];a97_0x1013=function(){return _0x2df5b6;};return a97_0x1013();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a98_0x5ce904=a98_0x10df;(function(_0x3e5e5b,_0x216cff){const _0x1ff126=a98_0x10df,_0x5a5149=_0x3e5e5b();while(!![]){try{const _0x9bf2fe=-parseInt(_0x1ff126(0x183))/0x1+-parseInt(_0x1ff126(0x191))/0x2*(-parseInt(_0x1ff126(0x195))/0x3)+parseInt(_0x1ff126(0x17e))/0x4+-parseInt(_0x1ff126(0x18e))/0x5*(parseInt(_0x1ff126(0x194))/0x6)+-parseInt(_0x1ff126(0x19a))/0x7+parseInt(_0x1ff126(0x18d))/0x8*(parseInt(_0x1ff126(0x181))/0x9)+parseInt(_0x1ff126(0x197))/0xa;if(_0x9bf2fe===_0x216cff)break;else _0x5a5149['push'](_0x5a5149['shift']());}catch(_0x503bf7){_0x5a5149['push'](_0x5a5149['shift']());}}}(a98_0x1f6a,0x3607e));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a98_0x10df(_0x3ab309,_0x2de149){_0x3ab309=_0x3ab309-0x17d;const _0x1f6a98=a98_0x1f6a();let _0x10df40=_0x1f6a98[_0x3ab309];return _0x10df40;}const TRUNCATION_NOTICE=a98_0x5ce904(0x182),REDACTION_RULES=[{'kind':a98_0x5ce904(0x17f),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a98_0x5ce904(0x19d)},{'kind':a98_0x5ce904(0x1a0),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a98_0x5ce904(0x187)},{'kind':a98_0x5ce904(0x199),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a98_0x5ce904(0x196),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':'REDACTED:password'},{'kind':a98_0x5ce904(0x198),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a98_0x5ce904(0x192)}];function a98_0x1f6a(){const _0x125f64=['includes','pattern','from','392Fmwdoq','1785335UrYUfX','byteLength','string','6rcmvuO','REDACTED:bearer-jwt','__RB_OSS_ID_','6rYXUWb','185391PSXKDX','password','1545140qqIGIr','bearer-jwt','access-key','1702330PeOjMn','label','kind','REDACTED:authorization','restore','push','private-key','max','1615356rmHGNT','cookie','utf8','34263GJovFe','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','108720DJhuDr','replace','slice','toString','REDACTED:private-key','length','subarray'];a98_0x1f6a=function(){return _0x125f64;};return a98_0x1f6a();}export function sanitizeIssueDescription(_0x3da566){const _0x2fa0c4=a98_0x5ce904,_0x5efe29=Buffer[_0x2fa0c4(0x18f)](_0x3da566,_0x2fa0c4(0x180)),_0x2eebd9=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x151201=_0x3da566,_0xb4c470=0x0;const _0x9b53e3=[];if(!_0x2eebd9){const _0x15dfca=protectOssAccessKeyIds(_0x151201);_0x151201=_0x15dfca['description'];for(const _0x3866ff of REDACTION_RULES){let _0x2f3b84=0x0;_0x151201=_0x151201['replace'](_0x3866ff[_0x2fa0c4(0x18b)],(_0x9daf93,_0x342b3f)=>{const _0x3ecd7b=_0x2fa0c4;_0x2f3b84+=0x1;const _0x5f031b=typeof _0x342b3f===_0x3ecd7b(0x190)?_0x342b3f:'';return _0x5f031b+'['+_0x3866ff[_0x3ecd7b(0x19b)]+']';}),_0x2f3b84>0x0&&(_0xb4c470+=_0x2f3b84,!_0x9b53e3[_0x2fa0c4(0x18a)](_0x3866ff[_0x2fa0c4(0x19c)])&&_0x9b53e3[_0x2fa0c4(0x19f)](_0x3866ff[_0x2fa0c4(0x19c)]));}_0x151201=_0x15dfca[_0x2fa0c4(0x19e)](_0x151201);}let _0x2e79b5=![];if(Buffer[_0x2fa0c4(0x18f)](_0x151201,_0x2fa0c4(0x180))>ISSUE_DESCRIPTION_MAX_BYTES){_0x2e79b5=!![];const _0x14d9c1=Buffer[_0x2fa0c4(0x18f)](TRUNCATION_NOTICE,_0x2fa0c4(0x180)),_0x89284f=Math[_0x2fa0c4(0x17d)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x14d9c1);_0x151201=sliceUtf8Bytes(_0x151201,_0x89284f)+TRUNCATION_NOTICE;}return{'description':_0x151201,'originalBytes':_0x5efe29,'truncated':_0x2e79b5,'redactionCount':_0xb4c470,'redactionKinds':_0x9b53e3};}function protectOssAccessKeyIds(_0x3a2244){const _0x147f86=a98_0x5ce904,_0x4c0d8f=[],_0x18ab77=_0x3a2244[_0x147f86(0x184)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x464937,_0x164386)=>{const _0xa1d44=_0x147f86,_0x5181fb=_0x4c0d8f['push'](_0x464937[_0xa1d44(0x185)](_0x164386[_0xa1d44(0x188)]))-0x1;return _0x164386+_0xa1d44(0x193)+_0x5181fb+'__';});return{'description':_0x18ab77,'restore':_0x4bdf40=>_0x4bdf40[_0x147f86(0x184)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x3d4638,_0xa064d4,_0x412766)=>{const _0x1bfcba=_0x4c0d8f[Number(_0x412766)];return _0x1bfcba===undefined?_0x3d4638:''+_0xa064d4+_0x1bfcba;})};}function sliceUtf8Bytes(_0x245bb3,_0x20962e){const _0x10ad2c=a98_0x5ce904;if(_0x20962e<=0x0)return'';const _0x27b9a8=Buffer[_0x10ad2c(0x18c)](_0x245bb3,_0x10ad2c(0x180));if(_0x27b9a8[_0x10ad2c(0x18f)]<=_0x20962e)return _0x245bb3;let _0x2b6f20=_0x20962e;while(_0x2b6f20>0x0){const _0x23ebd1=_0x27b9a8[_0x2b6f20];if(_0x23ebd1===undefined||(_0x23ebd1&0xc0)!==0x80)break;_0x2b6f20-=0x1;}return _0x27b9a8[_0x10ad2c(0x189)](0x0,_0x2b6f20)[_0x10ad2c(0x186)](_0x10ad2c(0x180));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a99_0x3deb(_0x5171da,_0x3ba2b5){_0x5171da=_0x5171da-0x178;const _0x45ede6=a99_0x45ed();let _0x3deb6a=_0x45ede6[_0x5171da];return _0x3deb6a;}const a99_0x1ec52c=a99_0x3deb;(function(_0x4afde3,_0x164a1e){const _0x100d46=a99_0x3deb,_0x8989a2=_0x4afde3();while(!![]){try{const _0x35a6a9=parseInt(_0x100d46(0x179))/0x1+-parseInt(_0x100d46(0x19a))/0x2+parseInt(_0x100d46(0x196))/0x3+-parseInt(_0x100d46(0x180))/0x4*(-parseInt(_0x100d46(0x17f))/0x5)+-parseInt(_0x100d46(0x184))/0x6*(parseInt(_0x100d46(0x18f))/0x7)+parseInt(_0x100d46(0x185))/0x8+parseInt(_0x100d46(0x195))/0x9*(-parseInt(_0x100d46(0x182))/0xa);if(_0x35a6a9===_0x164a1e)break;else _0x8989a2['push'](_0x8989a2['shift']());}catch(_0x2a8184){_0x8989a2['push'](_0x8989a2['shift']());}}}(a99_0x45ed,0xe284e));import{logger}from'../../utils/logger.js';function a99_0x45ed(){const _0x3ba26e=['*\x20Logs\x20cleared','duration','*\x20Lovrabet\x20CLI\x20logs:\x0a','346035iuErIF','20pjcHGe','Clear\x20command\x20history\x20logs','17230kZjjWU','\x20\x20\x20Details:\x20','6ptGCoO','3571144kkIyOf','write','keys','error','logs','level','show','details','log','length','12735716WbRcrY','\x20\x20\x20Duration:\x20','message','read','View\x20command\x20history\x20logs','command','963FMTdug','2377146iYQoMM','success','toLocaleString','*\x20No\x20logs\x20found','519054ZChgPS','timestamp','1606288XyxBBQ','stringify','warn'];a99_0x45ed=function(){return _0x3ba26e;};return a99_0x45ed();}function printLogs(_0x4f50b6){const _0x46238f=a99_0x3deb;if(_0x4f50b6['length']===0x0){console[_0x46238f(0x18d)](_0x46238f(0x199));return;}console[_0x46238f(0x18d)](_0x46238f(0x17e)),_0x4f50b6['forEach']((_0x418ecf,_0x1ed8f7)=>{const _0x5ae19b=_0x46238f,_0x4e36e3=new Date(_0x418ecf[_0x5ae19b(0x178)])[_0x5ae19b(0x198)]('en-US'),_0x441f7c=_0x418ecf[_0x5ae19b(0x18a)]===_0x5ae19b(0x197)?'√':_0x418ecf[_0x5ae19b(0x18a)]===_0x5ae19b(0x188)?'×':_0x418ecf[_0x5ae19b(0x18a)]===_0x5ae19b(0x17b)?'!':'i';console[_0x5ae19b(0x18d)](_0x1ed8f7+0x1+'.\x20'+_0x441f7c+'\x20['+_0x418ecf[_0x5ae19b(0x194)]+']\x20'+_0x418ecf[_0x5ae19b(0x191)]),console[_0x5ae19b(0x18d)]('\x20\x20\x20Time:\x20'+_0x4e36e3),_0x418ecf[_0x5ae19b(0x17d)]&&console['log'](_0x5ae19b(0x190)+_0x418ecf[_0x5ae19b(0x17d)]+'ms'),_0x418ecf[_0x5ae19b(0x18c)]&&Object[_0x5ae19b(0x187)](_0x418ecf[_0x5ae19b(0x18c)])[_0x5ae19b(0x18e)]>0x0&&console[_0x5ae19b(0x18d)](_0x5ae19b(0x183)+JSON[_0x5ae19b(0x17a)](_0x418ecf[_0x5ae19b(0x18c)],null,0x2)),console[_0x5ae19b(0x18d)]('');});}export const logsDefinitions=[{'service':a99_0x1ec52c(0x189),'command':a99_0x1ec52c(0x18b),'description':a99_0x1ec52c(0x193),'risk':a99_0x1ec52c(0x192),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4b9c14){return printLogs(logger['readLogs']()),{'ok':!![]};}},{'service':'logs','command':'clear','description':a99_0x1ec52c(0x181),'risk':a99_0x1ec52c(0x186),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2b1264){const _0x381530=a99_0x1ec52c;return logger['clearLogs'](),console['log'](_0x381530(0x17c)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1df7a0,_0x29ec9a){const _0x920ca7=a100_0x4003,_0x1a76c2=_0x1df7a0();while(!![]){try{const _0xa9d1a5=-parseInt(_0x920ca7(0xa0))/0x1*(parseInt(_0x920ca7(0x97))/0x2)+parseInt(_0x920ca7(0x9d))/0x3+parseInt(_0x920ca7(0x9e))/0x4+parseInt(_0x920ca7(0x96))/0x5*(-parseInt(_0x920ca7(0x9f))/0x6)+parseInt(_0x920ca7(0x9b))/0x7*(parseInt(_0x920ca7(0x9a))/0x8)+-parseInt(_0x920ca7(0x9c))/0x9*(parseInt(_0x920ca7(0x98))/0xa)+parseInt(_0x920ca7(0x99))/0xb;if(_0xa9d1a5===_0x29ec9a)break;else _0x1a76c2['push'](_0x1a76c2['shift']());}catch(_0x41d376){_0x1a76c2['push'](_0x1a76c2['shift']());}}}(a100_0x231f,0x933b5));import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';function a100_0x4003(_0x4d54fd,_0x5c4ed2){_0x4d54fd=_0x4d54fd-0x96;const _0x231f9d=a100_0x231f();let _0x400352=_0x231f9d[_0x4d54fd];return _0x400352;}import{menuUpdate}from'../../commands/menu/update.js';function a100_0x231f(){const _0x1cfd3e=['6hmYFen','1117FcZFHm','670285ObnEsc','82CwgjWn','6919910MGjcTy','1256013vHbqLC','4353704aqdATA','7eEcqaM','9iLZdBA','2405298hqISwr','58976GniuMx'];a100_0x231f=function(){return _0x1cfd3e;};return a100_0x231f();}export const menuDefinitions=[menuList,menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a101_0x5902e6=a101_0x19d4;(function(_0xece0f3,_0x181231){const _0x4bc960=a101_0x19d4,_0xd623f2=_0xece0f3();while(!![]){try{const _0x339aa5=parseInt(_0x4bc960(0xcc))/0x1*(parseInt(_0x4bc960(0xdc))/0x2)+-parseInt(_0x4bc960(0xd5))/0x3*(-parseInt(_0x4bc960(0xc1))/0x4)+-parseInt(_0x4bc960(0xb9))/0x5*(parseInt(_0x4bc960(0xb7))/0x6)+parseInt(_0x4bc960(0xbb))/0x7*(-parseInt(_0x4bc960(0xda))/0x8)+parseInt(_0x4bc960(0xc6))/0x9+-parseInt(_0x4bc960(0xdd))/0xa*(-parseInt(_0x4bc960(0xcd))/0xb)+parseInt(_0x4bc960(0xb5))/0xc*(parseInt(_0x4bc960(0xb6))/0xd);if(_0x339aa5===_0x181231)break;else _0xd623f2['push'](_0xd623f2['shift']());}catch(_0x1e0c7f){_0xd623f2['push'](_0xd623f2['shift']());}}}(a101_0x1bae,0x28564));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a101_0x19d4(_0x25f1bf,_0x2f27f0){_0x25f1bf=_0x25f1bf-0xb5;const _0x1bae98=a101_0x1bae();let _0x19d416=_0x1bae98[_0x25f1bf];return _0x19d416;}import{getMenuTree}from'../../core/api-client.js';function a101_0x1bae(){const _0x347cbd=['visible','verbose','10601FsLwQX','11exNlqc','number','isFinite','map','appCode','menu','read','string','480552UYLkfJ','resources','push','cookie','length','1041320oWSeLB','children','10ZRXUcl','835980zzEBpg','index','isArray','12FuAckL','1898273LliwEv','426nMfppQ','item','16000MEVmkF','bool','7ZOMDeg','extend','label','No\x20menus\x20found.','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','boolean','4zMkyIC','sort','path','parse','POSITIVE_INFINITY','717993tDDlRM','list','Found\x20','depth'];a101_0x1bae=function(){return _0x347cbd;};return a101_0x1bae();}export const menuList={'service':a101_0x5902e6(0xd2),'command':a101_0x5902e6(0xc7),'description':'List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','risk':a101_0x5902e6(0xd3),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a101_0x5902e6(0xcb),'type':a101_0x5902e6(0xc0),'description':a101_0x5902e6(0xbf)}],async 'execute'(_0x400f30){const _0x34530f=a101_0x5902e6,_0x2188ca=_0x400f30[_0x34530f(0xba)](_0x34530f(0xcb)),_0x5c1ad7=await getMenuTree(_0x400f30[_0x34530f(0xd1)],_0x400f30[_0x34530f(0xd8)]),_0x582ba4=flattenMenuItems(Array[_0x34530f(0xdf)](_0x5c1ad7)?_0x5c1ad7:[],{'verbose':_0x2188ca,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x582ba4[_0x34530f(0xd9)],'menus':_0x582ba4},'message':_0x582ba4[_0x34530f(0xd9)]===0x0?_0x34530f(0xbe):_0x34530f(0xc8)+_0x582ba4[_0x34530f(0xd9)]+'\x20menu(s)'};}};function flattenMenuItems(_0x5d1594,_0x4ddd38){const _0x3ddc59=a101_0x5902e6,_0x2cf241=sortMenuItems(_0x5d1594),_0x4cadec=[];for(const _0x43b250 of _0x2cf241){_0x4cadec[_0x3ddc59(0xd7)](toMenuListItem(_0x43b250,_0x4ddd38)),Array[_0x3ddc59(0xdf)](_0x43b250['children'])&&_0x43b250['children'][_0x3ddc59(0xd9)]>0x0&&_0x4cadec[_0x3ddc59(0xd7)](...flattenMenuItems(_0x43b250[_0x3ddc59(0xdb)],{'verbose':_0x4ddd38[_0x3ddc59(0xcb)],'parentId':_0x43b250['id'],'depth':_0x4ddd38['depth']+0x1}));}return _0x4cadec;}function sortMenuItems(_0x23859b){const _0x305e9f=a101_0x5902e6;return _0x23859b[_0x305e9f(0xd0)]((_0x1432b5,_0x14e337)=>({'item':_0x1432b5,'index':_0x14e337}))['sort']((_0x583195,_0x271972)=>{const _0x1390ec=_0x305e9f,_0x34b8e6=normalizeSort(_0x583195[_0x1390ec(0xb8)]['sort']),_0x3c5d4f=normalizeSort(_0x271972[_0x1390ec(0xb8)][_0x1390ec(0xc2)]);if(_0x34b8e6!==_0x3c5d4f)return _0x34b8e6-_0x3c5d4f;return _0x583195[_0x1390ec(0xde)]-_0x271972[_0x1390ec(0xde)];})[_0x305e9f(0xd0)](({item:_0x252093})=>_0x252093);}function toMenuListItem(_0x50c737,_0xed9592){const _0x6d8889=a101_0x5902e6,_0x24a1e4={'id':_0x50c737['id'],'parentId':_0xed9592['parentId'],'depth':_0xed9592[_0x6d8889(0xc9)],'label':normalizeString(_0x50c737[_0x6d8889(0xbd)]),'path':normalizeString(_0x50c737[_0x6d8889(0xc3)]),'type':normalizeString(_0x50c737['type']),'visible':typeof _0x50c737[_0x6d8889(0xca)]==='boolean'?_0x50c737[_0x6d8889(0xca)]:null,'sort':typeof _0x50c737['sort']===_0x6d8889(0xce)&&Number[_0x6d8889(0xcf)](_0x50c737[_0x6d8889(0xc2)])?_0x50c737[_0x6d8889(0xc2)]:null,'resources':normalizeResources(_0x50c737[_0x6d8889(0xbc)]?.[_0x6d8889(0xd6)])};return _0xed9592[_0x6d8889(0xcb)]&&(_0x24a1e4[_0x6d8889(0xbc)]=_0x50c737[_0x6d8889(0xbc)]??null),_0x24a1e4;}function normalizeSort(_0x577490){const _0x33da71=a101_0x5902e6;return typeof _0x577490===_0x33da71(0xce)&&Number[_0x33da71(0xcf)](_0x577490)?_0x577490:Number[_0x33da71(0xc5)];}function normalizeString(_0xd0abce){const _0x26c65d=a101_0x5902e6;return typeof _0xd0abce===_0x26c65d(0xd4)?_0xd0abce:'';}function normalizeResources(_0x5d46a3){const _0x1cb973=a101_0x5902e6;if(Array[_0x1cb973(0xdf)](_0x5d46a3))return _0x5d46a3[_0x1cb973(0xd0)](String);if(typeof _0x5d46a3!==_0x1cb973(0xd4))return[];try{const _0xd2a950=JSON[_0x1cb973(0xc4)](_0x5d46a3);return Array['isArray'](_0xd2a950)?_0xd2a950['map'](String):[];}catch{return[];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a102_0x5606(){const _0x3f78a3=['max','Menu\x20Name','\x20\x20\x20\x20•\x20','329215SGSqxz','Platform','local','showOnline','path','\x20\x20Affected\x20menus:\x20','repeat','Local','12kGjsaA','1439152ILACHm','map','length','\x20\x20\x20\x20JS:\x20\x20','1730556rYftQF','label','973413BzBeUY','233241MdSRCw','online','6irmpwX','push','6kLkiji','(unchanged)','536910KTLZCd','83951SZBnfC','test','join','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','\x20\x20\x20\x20CSS:\x20'];a102_0x5606=function(){return _0x3f78a3;};return a102_0x5606();}(function(_0x3b070e,_0x419640){const _0x501141=a102_0x458f,_0x2a166c=_0x3b070e();while(!![]){try{const _0x2848d4=-parseInt(_0x501141(0x138))/0x1+-parseInt(_0x501141(0x154))/0x2*(parseInt(_0x501141(0x150))/0x3)+-parseInt(_0x501141(0x148))/0x4*(-parseInt(_0x501141(0x140))/0x5)+-parseInt(_0x501141(0x152))/0x6*(parseInt(_0x501141(0x14f))/0x7)+parseInt(_0x501141(0x149))/0x8+parseInt(_0x501141(0x14d))/0x9+parseInt(_0x501141(0x137))/0xa;if(_0x2848d4===_0x419640)break;else _0x2a166c['push'](_0x2a166c['shift']());}catch(_0x564df8){_0x2a166c['push'](_0x2a166c['shift']());}}}(a102_0x5606,0x28ceb));function strWidth(_0x27f5f1){const _0x3f4dd4=a102_0x458f;let _0x2b46d3=0x0;for(const _0x36b9c1 of _0x27f5f1){_0x2b46d3+=/[\u4e00-\u9fa5]/[_0x3f4dd4(0x139)](_0x36b9c1)?0x2:0x1;}return _0x2b46d3;}function padRight(_0x1c01d0,_0x4f4320){const _0x5bf73c=a102_0x458f,_0xd574a6=strWidth(_0x1c01d0);return _0x1c01d0+'\x20'[_0x5bf73c(0x146)](Math[_0x5bf73c(0x13d)](0x0,_0x4f4320-_0xd574a6));}export function renderCompareTable(_0x54c604,_0x4a8252={}){const _0xe528e=a102_0x458f;if(_0x54c604[_0xe528e(0x14b)]===0x0)return'';const _0x2535f7=_0x4a8252[_0xe528e(0x143)]??!![],_0x4f8489=Math['max'](0x1e,..._0x54c604[_0xe528e(0x14a)](_0x197d8b=>strWidth(_0x197d8b[_0xe528e(0x14e)]))),_0x673ac=0x4,_0x155963=[],_0x591706='\x20\x20'+padRight(_0xe528e(0x13e),_0x4f8489),_0x47afd4=padRight(_0xe528e(0x147),_0x673ac),_0x3d234c=_0x2535f7?'\x20\x20'+padRight(_0xe528e(0x141),_0x673ac):'';_0x155963[_0xe528e(0x153)](_0x591706+'\x20\x20'+_0x47afd4+(_0x2535f7?_0x3d234c:'')),_0x155963[_0xe528e(0x153)]('\x20\x20'+'─'[_0xe528e(0x146)](_0x4f8489)+'\x20\x20'+'─'[_0xe528e(0x146)](_0x673ac)+(_0x2535f7?'\x20\x20'+'─'[_0xe528e(0x146)](_0x673ac):''));for(const _0x49d11f of _0x54c604){const _0x1a38b7=padRight(_0x49d11f['label'],_0x4f8489),_0x6ae1e7=_0x49d11f[_0xe528e(0x142)]?'✓':'✗',_0x150da2=padRight(_0x6ae1e7,_0x673ac);let _0x4db76c='\x20\x20'+_0x1a38b7+'\x20\x20'+_0x150da2;if(_0x2535f7){const _0x1010cf=_0x49d11f[_0xe528e(0x151)]?'✓':'✗';_0x4db76c+='\x20\x20'+padRight(_0x1010cf,_0x673ac);}_0x155963[_0xe528e(0x153)](_0x4db76c);}return _0x155963['join']('\x0a');}function a102_0x458f(_0x59de22,_0x484af8){_0x59de22=_0x59de22-0x136;const _0x560697=a102_0x5606();let _0x458f0e=_0x560697[_0x59de22];return _0x458f0e;}export function renderSyncSummary(_0x596c09,_0x40e40c){const _0x63ad8e=a102_0x458f;if(_0x596c09['length']===0x0)return _0x40e40c?'\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.':'\x20\x20No\x20pages\x20to\x20sync.';const _0x100018=['\x20\x20'+_0x596c09['length']+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x3215cf of _0x596c09){_0x100018[_0x63ad8e(0x153)](_0x63ad8e(0x13f)+_0x3215cf[_0x63ad8e(0x14e)]+'\x20('+_0x3215cf[_0x63ad8e(0x144)]+')');}return _0x100018[_0x63ad8e(0x13a)]('\x0a');}export function renderUpdateSummary(_0x177918,_0x3901a5){const _0x362bfc=a102_0x458f;if(_0x177918[_0x362bfc(0x14b)]===0x0)return _0x362bfc(0x13b);const _0x4067f6=['\x20\x20'+_0x177918['length']+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x362bfc(0x14c)+(_0x3901a5[0x0]??'(unchanged)'),_0x362bfc(0x13c)+(_0x3901a5[0x1]??_0x362bfc(0x136)),'',_0x362bfc(0x145)+_0x177918[_0x362bfc(0x13a)](',\x20')];return _0x4067f6[_0x362bfc(0x13a)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x22e228,_0xc7ac49){var _0xa305f4=a103_0x3ffe,_0x1b884d=_0x22e228();while(!![]){try{var _0x546006=parseInt(_0xa305f4(0xbe))/0x1+-parseInt(_0xa305f4(0xc2))/0x2+-parseInt(_0xa305f4(0xc6))/0x3*(-parseInt(_0xa305f4(0xc3))/0x4)+-parseInt(_0xa305f4(0xc1))/0x5+-parseInt(_0xa305f4(0xc4))/0x6*(-parseInt(_0xa305f4(0xc5))/0x7)+parseInt(_0xa305f4(0xc0))/0x8+-parseInt(_0xa305f4(0xbf))/0x9;if(_0x546006===_0xc7ac49)break;else _0x1b884d['push'](_0x1b884d['shift']());}catch(_0xab3897){_0x1b884d['push'](_0x1b884d['shift']());}}}(a103_0x5973,0x69ad5));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';function a103_0x3ffe(_0x56df56,_0x115d73){_0x56df56=_0x56df56-0xbe;var _0x597387=a103_0x5973();var _0x3ffeae=_0x597387[_0x56df56];return _0x3ffeae;}export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';function a103_0x5973(){var _0x232d3b=['3085998gWqJSC','7NIcGXB','119001pkGVwH','483495hXGJtt','5081238aHRqLR','220744UQFbKG','1332855BffOip','316170peiSVJ','40ezXstz'];a103_0x5973=function(){return _0x232d3b;};return a103_0x5973();}export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a104_0x3f27(){const _0xb37310=['JS\x20URL\x20check\x20failed','cancelled','\x20\x20JS\x20URL:','\x20\x20CSS\x20URL:','label','Cancelled.','isTTY','path','6642688tdYcbj','CSS\x20URL\x20check\x20failed','error','red','name','JS\x20URL\x20checked','[new]','cyan','stdin','6166790LxpCaP','trim','includes','gray','70hCTLNf','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','12680540aTTgbX','CSS\x20URL\x20checked','length','[already\x20on\x20platform]','succeed','321558xQzlMF','No\x20menus\x20selected.','3892446CoIXRG','485889KWXyXX','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','has','No\x20local\x20pages\x20found.','catch','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','12AYpBFZ','1koXnRo','1533358BgiCnA','start','test','ExitPromptError','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','\x20\x20Checking\x20JS\x20URL\x20reachability...','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','filter','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.'];a104_0x3f27=function(){return _0xb37310;};return a104_0x3f27();}(function(_0x3c00b5,_0xb492bd){const _0xa00332=a104_0x28cb,_0x3dc1ba=_0x3c00b5();while(!![]){try{const _0x44284d=parseInt(_0xa00332(0x154))/0x1*(-parseInt(_0xa00332(0x155))/0x2)+parseInt(_0xa00332(0x14d))/0x3*(parseInt(_0xa00332(0x153))/0x4)+-parseInt(_0xa00332(0x143))/0x5*(-parseInt(_0xa00332(0x14a))/0x6)+parseInt(_0xa00332(0x16f))/0x7+parseInt(_0xa00332(0x166))/0x8+-parseInt(_0xa00332(0x14c))/0x9+-parseInt(_0xa00332(0x145))/0xa;if(_0x44284d===_0xb492bd)break;else _0x3dc1ba['push'](_0x3dc1ba['shift']());}catch(_0x944c36){_0x3dc1ba['push'](_0x3dc1ba['shift']());}}}(a104_0x3f27,0x7540e));import a104_0xc50eba from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a104_0x1bd91e from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x42f2e8){const _0x861bd0=a104_0x28cb;return _0x42f2e8[_0x861bd0(0x151)](_0x371295=>{const _0x484c58=_0x861bd0;if(_0x371295?.[_0x484c58(0x16a)]===_0x484c58(0x158))throw CliErrors['cancelled'](_0x484c58(0x163));throw _0x371295;});}export function startSpinner(_0x245ed8){const _0x5d4d99=a104_0x28cb;return a104_0x1bd91e({'text':_0x245ed8,'color':_0x5d4d99(0x16d)})[_0x5d4d99(0x156)]();}export function stopSpinner(_0x8fb668,_0x279821,_0x2eda8e){const _0x3f1206=a104_0x28cb;_0x2eda8e?_0x8fb668[_0x3f1206(0x149)](_0x279821):_0x8fb668['fail'](_0x279821);}function a104_0x28cb(_0x1ce577,_0x5d54b3){_0x1ce577=_0x1ce577-0x143;const _0x3f279f=a104_0x3f27();let _0x28cb04=_0x3f279f[_0x1ce577];return _0x28cb04;}export async function askConfirm(_0x300f56){return onCancel(confirm({'message':_0x300f56,'theme':{'prefix':''}}));}export async function askJsUrl(_0x47941c){const _0x5df43a=a104_0x28cb;while(!![]){const _0x569c79=await onCancel(input({'message':_0x5df43a(0x160),'default':_0x47941c,'theme':{'prefix':''}}));if(_0x569c79[_0x5df43a(0x170)]()==='')throw CliErrors['cancelled']('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x5df43a(0x157)](_0x569c79['trim']())){console[_0x5df43a(0x168)](a104_0xc50eba[_0x5df43a(0x169)](_0x5df43a(0x15b)));continue;}const _0x33459b=startSpinner(_0x5df43a(0x15a));try{const _0x3120aa=await isUrlReachable(_0x569c79[_0x5df43a(0x170)]());stopSpinner(_0x33459b,_0x5df43a(0x16b),_0x3120aa);if(!_0x3120aa){console[_0x5df43a(0x168)](a104_0xc50eba[_0x5df43a(0x169)](_0x5df43a(0x14e)));continue;}return _0x569c79[_0x5df43a(0x170)]();}catch(_0x43bc99){stopSpinner(_0x33459b,_0x5df43a(0x15e),![]);throw _0x43bc99;}}}export async function askCssUrl(_0x4a650b){const _0x942c2b=a104_0x28cb;while(!![]){const _0x417ce7=await onCancel(input({'message':_0x942c2b(0x161),'default':_0x4a650b,'theme':{'prefix':''}}));if(_0x417ce7[_0x942c2b(0x170)]()==='')throw CliErrors[_0x942c2b(0x15f)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x942c2b(0x157)](_0x417ce7[_0x942c2b(0x170)]())){console[_0x942c2b(0x168)](a104_0xc50eba[_0x942c2b(0x169)](_0x942c2b(0x152)));continue;}const _0x4f38ae=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x519e41=await isUrlReachable(_0x417ce7[_0x942c2b(0x170)]());stopSpinner(_0x4f38ae,_0x942c2b(0x146),_0x519e41);if(!_0x519e41){console[_0x942c2b(0x168)](a104_0xc50eba[_0x942c2b(0x169)](_0x942c2b(0x159)));continue;}return _0x417ce7[_0x942c2b(0x170)]();}catch(_0x24224b){stopSpinner(_0x4f38ae,_0x942c2b(0x167),![]);throw _0x24224b;}}}export async function selectPages(_0x24c830,_0x43cb3b,_0x50fefc){const _0x8d9470=a104_0x28cb,_0xb3b6c1=_0x24c830['map'](_0x395577=>({'name':_0x395577[_0x8d9470(0x162)]+'\x20\x20'+(_0x43cb3b[_0x8d9470(0x14f)](_0x395577[_0x8d9470(0x165)])?a104_0xc50eba[_0x8d9470(0x172)](_0x8d9470(0x148)):a104_0xc50eba['green'](_0x8d9470(0x16c))),'value':_0x395577['label'],'checked':_0x50fefc?_0x50fefc[_0x8d9470(0x171)](_0x395577[_0x8d9470(0x162)]):!_0x43cb3b[_0x8d9470(0x14f)](_0x395577[_0x8d9470(0x165)])}));if(_0xb3b6c1[_0x8d9470(0x147)]===0x0)throw new Error(_0x8d9470(0x150));const _0x4eac34=await onCancel(checkbox({'message':_0x8d9470(0x144),'choices':_0xb3b6c1,'loop':![],'theme':{'prefix':''}}));if(_0x4eac34['length']===0x0)throw new Error(_0x8d9470(0x14b));return _0x24c830[_0x8d9470(0x15c)](_0x24eb5b=>_0x4eac34[_0x8d9470(0x171)](_0x24eb5b['label']));}export function isInteractive(){const _0x30651d=a104_0x28cb;return process[_0x30651d(0x16e)][_0x30651d(0x164)]===!![];}export function requireInteractive(){const _0x53d893=a104_0x28cb;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x53d893(0x15d));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a105_0x43d64d=a105_0x1d3c;(function(_0x46e538,_0x400557){const _0x12b5bb=a105_0x1d3c,_0x110aec=_0x46e538();while(!![]){try{const _0x5c2cf3=-parseInt(_0x12b5bb(0x1b4))/0x1*(-parseInt(_0x12b5bb(0x1bc))/0x2)+-parseInt(_0x12b5bb(0x1b9))/0x3+-parseInt(_0x12b5bb(0x1bb))/0x4+-parseInt(_0x12b5bb(0x1cc))/0x5+-parseInt(_0x12b5bb(0x1c4))/0x6*(parseInt(_0x12b5bb(0x1c0))/0x7)+parseInt(_0x12b5bb(0x1ca))/0x8*(-parseInt(_0x12b5bb(0x1b7))/0x9)+parseInt(_0x12b5bb(0x1c3))/0xa*(parseInt(_0x12b5bb(0x1c9))/0xb);if(_0x5c2cf3===_0x400557)break;else _0x110aec['push'](_0x110aec['shift']());}catch(_0x5c544f){_0x110aec['push'](_0x110aec['shift']());}}}(a105_0x15ea,0x28c4d));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),a105_0x43d64d(0x1bd));function a105_0x1d3c(_0x554d8c,_0x18a7ad){_0x554d8c=_0x554d8c-0x1b4;const _0x15eac5=a105_0x15ea();let _0x1d3c12=_0x15eac5[_0x554d8c];return _0x1d3c12;}export function extractTitleFromComment(_0x2fa190){const _0x2a9915=a105_0x43d64d;try{const _0x2ffa38=readFileSync(_0x2fa190,_0x2a9915(0x1c5)),_0xf4bec8=_0x2ffa38['match'](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0xf4bec8&&_0xf4bec8[0x1]){const _0x486faa=_0xf4bec8[0x1],_0x490d8a=_0x486faa[_0x2a9915(0x1be)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x490d8a&&_0x490d8a[0x1])return _0x490d8a[0x1][_0x2a9915(0x1c2)]();}let _0x521c99=null;const _0x13142f=_0x2ffa38[_0x2a9915(0x1be)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x13142f&&_0x13142f[0x1]&&(_0x521c99=_0x13142f[0x1]);if(!_0x521c99){const _0x48e2be=_0x2ffa38['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x48e2be&&_0x48e2be[0x1]&&(_0x521c99=_0x48e2be[0x1]);}if(_0x521c99){const _0x483698=new RegExp('\x5cb'+_0x521c99+_0x2a9915(0x1ba)),_0x3e6d78=_0x2ffa38[_0x2a9915(0x1be)](_0x483698);if(_0x3e6d78&&_0x3e6d78[0x1])return _0x3e6d78[0x1];return _0x521c99;}return null;}catch(_0xf4d84c){return null;}}function a105_0x15ea(){const _0x5aa2c7=['7612176qudxBU','232TlGUBi','replace','1509415KXIjnw','3063jfCuNs','concat','split','83205NyfbjN','filter','666489emstfr','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','1308700YXgfno','6XfEafx','src/pages','match','endsWith','14hlqlkX','isDirectory','trim','20fhBTcE','320718qTnJpo','utf-8','index.tsx','join','forEach'];a105_0x15ea=function(){return _0x5aa2c7;};return a105_0x15ea();}export function getLocalPages(_0x28a85d=pagesDir,_0x2a3462=pagesDir){const _0x32fe2b=a105_0x43d64d;let _0x30ac99=[];const _0x4a8f73=readdirSync(_0x28a85d);return _0x4a8f73[_0x32fe2b(0x1c8)](_0x1dcea4=>{const _0x371b8b=_0x32fe2b,_0x30acad=join(_0x28a85d,_0x1dcea4),_0x2a9c06=statSync(_0x30acad);if(_0x2a9c06&&_0x2a9c06[_0x371b8b(0x1c1)]())_0x30ac99=_0x30ac99[_0x371b8b(0x1b5)](getLocalPages(_0x30acad,_0x2a3462));else{if(_0x1dcea4['endsWith']('.tsx')){let _0x3e8878=relative(_0x2a3462,_0x30acad);_0x3e8878[_0x371b8b(0x1bf)](_0x371b8b(0x1c6))?_0x3e8878=_0x3e8878[_0x371b8b(0x1cb)](/index\.tsx$/,''):_0x3e8878=_0x3e8878['replace'](/\.tsx$/,'');_0x3e8878[_0x371b8b(0x1bf)](sep)&&(_0x3e8878=_0x3e8878['slice'](0x0,-0x1));const _0x26a539=_0x3e8878[_0x371b8b(0x1b6)](sep)[_0x371b8b(0x1c7)]('/'),_0x50a74d=extractTitleFromComment(_0x30acad),_0x1a00fe=_0x50a74d||_0x26a539;_0x30ac99['push']({'path':_0x26a539['replaceAll']('$',':'),'label':_0x1a00fe});}}}),_0x30ac99[_0x32fe2b(0x1b8)](_0x3d77ac=>_0x3d77ac['path']!=='');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x169035,_0xefcaab){const _0x55f363=a106_0x39eb,_0x17e97f=_0x169035();while(!![]){try{const _0x462a0c=parseInt(_0x55f363(0xf1))/0x1+parseInt(_0x55f363(0xe1))/0x2+-parseInt(_0x55f363(0xf9))/0x3*(parseInt(_0x55f363(0xf2))/0x4)+parseInt(_0x55f363(0xeb))/0x5+parseInt(_0x55f363(0xe5))/0x6+-parseInt(_0x55f363(0xfb))/0x7*(parseInt(_0x55f363(0xf7))/0x8)+parseInt(_0x55f363(0xea))/0x9*(-parseInt(_0x55f363(0xf5))/0xa);if(_0x462a0c===_0xefcaab)break;else _0x17e97f['push'](_0x17e97f['shift']());}catch(_0x273aa4){_0x17e97f['push'](_0x17e97f['shift']());}}}(a106_0x367b,0x52261));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';function a106_0x367b(){const _0xf4a8a6=['map','CSS\x20URL\x20is\x20unreachable','errors','fulfilled','219811sbihYc','16pPVwNK','label','allSettled','1080JWUype','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','20392ySCjfA','join','59664aSpilO','filter','721xANJRK','path','134878lUPTpy','resources','rejected','trim','3071850MkUInm','value','push','has','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','50976IktxUd','2455335RYIMvE','length'];a106_0x367b=function(){return _0xf4a8a6;};return a106_0x367b();}import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';function a106_0x39eb(_0x305546,_0x1f7f88){_0x305546=_0x305546-0xe1;const _0x367b72=a106_0x367b();let _0x39eb89=_0x367b72[_0x305546];return _0x39eb89;}export function validateJsUrl(_0x44493d){const _0xa59e80=a106_0x39eb,_0x4b8e3f=[];return!isValidJsHttpsUrl(_0x44493d)&&_0x4b8e3f[_0xa59e80(0xe7)](_0xa59e80(0xe9)),{'ok':_0x4b8e3f['length']===0x0,'errors':_0x4b8e3f};}export function validateCssUrl(_0x4a5a6d){const _0x2bf079=a106_0x39eb,_0x4fac9c=[];return!isValidCssHttpsUrl(_0x4a5a6d)&&_0x4fac9c['push'](_0x2bf079(0xf6)),{'ok':_0x4fac9c[_0x2bf079(0xec)]===0x0,'errors':_0x4fac9c};}export async function validateJsUrlReachable(_0x21c3e8){const _0xc99fb=a106_0x39eb,_0x45b18a=validateJsUrl(_0x21c3e8);if(!_0x45b18a['ok'])return _0x45b18a;const _0x13cf2a=await isUrlReachable(_0x21c3e8);if(!_0x13cf2a)_0x45b18a[_0xc99fb(0xef)][_0xc99fb(0xe7)]('JS\x20URL\x20is\x20unreachable');return{'ok':_0x45b18a[_0xc99fb(0xef)][_0xc99fb(0xec)]===0x0,'errors':_0x45b18a[_0xc99fb(0xef)]};}export async function validateCssUrlReachable(_0x5ef099){const _0x386019=a106_0x39eb,_0x1d591b=validateCssUrl(_0x5ef099);if(!_0x1d591b['ok'])return _0x1d591b;const _0x363563=await isUrlReachable(_0x5ef099);if(!_0x363563)_0x1d591b[_0x386019(0xef)]['push'](_0x386019(0xee));return{'ok':_0x1d591b['errors'][_0x386019(0xec)]===0x0,'errors':_0x1d591b[_0x386019(0xef)]};}export function buildCompareRows(_0x187f5d,_0x40dfb6){const _0x700b64=a106_0x39eb;return _0x187f5d[_0x700b64(0xed)](_0x3e9747=>({'label':_0x3e9747[_0x700b64(0xf3)],'path':_0x3e9747[_0x700b64(0xfc)],'local':!![],'online':_0x40dfb6['has'](_0x3e9747[_0x700b64(0xfc)])}));}export function filterNewPages(_0x1c3fca,_0x1fb274,_0x19dceb){const _0xeaa6b1=a106_0x39eb;if(_0x19dceb&&_0x19dceb['length']>0x0){const _0x518954=new Set(_0x19dceb['map'](_0x240635=>_0x240635[_0xeaa6b1(0xe4)]())),_0x39017d=_0x1c3fca[_0xeaa6b1(0xfa)](_0x499e77=>_0x518954[_0xeaa6b1(0xe8)](_0x499e77[_0xeaa6b1(0xf3)]));if(_0x39017d[_0xeaa6b1(0xec)]===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x518954][_0xeaa6b1(0xf8)](',\x20'));return _0x39017d;}return _0x1c3fca[_0xeaa6b1(0xfa)](_0x2817d1=>!_0x1fb274[_0xeaa6b1(0xe8)](_0x2817d1[_0xeaa6b1(0xfc)]));}export function filterPagesByLabels(_0x3edbb2,_0x180dc0){const _0x103108=a106_0x39eb,_0x32649b=[],_0x2920b8=[];for(const _0x524773 of _0x180dc0){const _0x3a3f7f=_0x524773['trim'](),_0x10333c=_0x3edbb2['find'](_0x131a7b=>_0x131a7b[_0x103108(0xf3)]===_0x3a3f7f);if(_0x10333c)_0x32649b[_0x103108(0xe7)](_0x10333c);else _0x2920b8['push'](_0x524773);}return{'matched':_0x32649b,'unmatched':_0x2920b8};}export async function doCreateMenus(_0x319a71,_0x2250bc,_0x592f07,_0x10f92c){const _0x32a882=a106_0x39eb,_0x274110=await createMenus(_0x319a71,_0x2250bc,_0x592f07,_0x10f92c);return{'created':_0x274110[_0x32a882(0xec)],'failed':0x0,'labels':_0x592f07[_0x32a882(0xed)](_0x2e2e16=>_0x2e2e16[_0x32a882(0xf3)]),'menus':_0x274110};}export function filterMenusWithResources(_0x2d841d){const _0x19e1d8=a106_0x39eb;return _0x2d841d[_0x19e1d8(0xfa)](_0x2e941d=>_0x2e941d[_0x19e1d8(0xe2)][_0x19e1d8(0xec)]>0x0);}export async function doUpdateCdnUrls(_0x3af64c,_0xd296e7,_0x58bc51,_0x3bc9cb){const _0x5ec6df=a106_0x39eb,_0x60cf68=_0x58bc51[_0x5ec6df(0xfa)](_0x21708d=>_0x21708d['resources']['length']>0x0),_0x634f93=await Promise[_0x5ec6df(0xf4)](_0x60cf68[_0x5ec6df(0xed)](_0x5de6f9=>updateMenuCdnUrl(_0x3af64c,_0xd296e7,{'id':_0x5de6f9['id'],'label':_0x5de6f9['label'],'path':_0x5de6f9[_0x5ec6df(0xfc)],'resources':_0x3bc9cb,'extend':_0x5de6f9['extend']??null}))),_0x4c6015=_0x634f93[_0x5ec6df(0xfa)](_0x3f0d69=>_0x3f0d69['status']===_0x5ec6df(0xf0))[_0x5ec6df(0xed)](_0x436bd5=>_0x436bd5[_0x5ec6df(0xe6)]),_0x1ee7a1=_0x634f93[_0x5ec6df(0xfa)](_0xd55273=>_0xd55273['status']===_0x5ec6df(0xe3))[_0x5ec6df(0xec)];return{'updated':_0x4c6015[_0x5ec6df(0xec)],'failed':_0x1ee7a1,'menus':_0x4c6015};}export async function fetchMenuData(_0x177333,_0x27290e){const _0x1d309b=a106_0x39eb,_0x158d07=getLocalPages(),_0x12acd8=await getOnlineMenuList(_0x177333,_0x27290e),_0x36705d=new Set(_0x12acd8['map'](_0xc06f5c=>_0xc06f5c[_0x1d309b(0xfc)]));return{'localPages':_0x158d07,'onlineMenuList':_0x12acd8,'onlinePaths':_0x36705d};}export async function fetchOnlineMenuList(_0x3816df,_0x8ee5ab){return getOnlineMenuList(_0x3816df,_0x8ee5ab);}
|