@lovrabet/rabetbase-cli 2.3.8 → 2.3.9-beta.2
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_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
|
+
const a92_0x55e795=a92_0x5a97;function a92_0x15f9(){const _0x49e05f=['\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','platform','missing','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','env','status','✗\x20Expired','value','defaultApp','message','(default)','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','1BBgWIf','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','40WKQVcK','accessKey','unknown','259664cVfAOp','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','appcode','351120TtMxcT','20MrXBSk','\x20\x20Merged\x20Config','log','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','gray','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20─','Global','\x20←\x20current','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','red','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','format','apps','read','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','Project','✓\x20Valid\x20JSON','riskLevel','cookie','54kQVDqo','pageSize','source','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','length','4952apTvbs','check','8755230zMJMvC','padEnd','verbose','\x20\x20Auth','363060vCYDtB','green','805617YSDEhe','\x20\x20Config\x20JSON','(set\x20via\x20file,\x20length=','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','✓\x20Valid','repeat','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','328475gHvraP','(not\x20found)','\x20(default)','(set,\x20length=','(default:\x20','currentApp','bold','slice','doctor','(none)','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','raw','appCode','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)'];a92_0x15f9=function(){return _0x49e05f;};return a92_0x15f9();}(function(_0x3e58ca,_0x395037){const _0x16af9b=a92_0x5a97,_0x167c7f=_0x3e58ca();while(!![]){try{const _0x5ac9e2=-parseInt(_0x16af9b(0xcb))/0x1*(-parseInt(_0x16af9b(0xd2))/0x2)+-parseInt(_0x16af9b(0xa4))/0x3+-parseInt(_0x16af9b(0xf2))/0x4*(-parseInt(_0x16af9b(0xd6))/0x5)+-parseInt(_0x16af9b(0xd5))/0x6+parseInt(_0x16af9b(0xac))/0x7*(-parseInt(_0x16af9b(0xcf))/0x8)+parseInt(_0x16af9b(0xed))/0x9*(-parseInt(_0x16af9b(0xa2))/0xa)+parseInt(_0x16af9b(0xf4))/0xb;if(_0x5ac9e2===_0x395037)break;else _0x167c7f['push'](_0x167c7f['shift']());}catch(_0x2dacd9){_0x167c7f['push'](_0x167c7f['shift']());}}}(a92_0x15f9,0x24e9a));import a92_0x469078 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a92_0x5a97(_0x395591,_0xfcff99){_0x395591=_0x395591-0xa1;const _0x15f959=a92_0x15f9();let _0x5a9709=_0x15f959[_0x395591];return _0x5a9709;}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(_0x2483ab){const _0x2dbbe4=a92_0x5a97,_0x16b5dd=GIT_COMMIT!==_0x2dbbe4(0xd1)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2dbbe4(0xb3)](0x0,0xa)+')':VERSION,_0x109dd8=buildConfigFromFlags({}),_0x565405=getCookie();console[_0x2dbbe4(0xd8)](),console['log'](a92_0x469078[_0x2dbbe4(0xb2)](CLI_BIN_NAME+'\x20doctor')),console['log'](a92_0x469078['gray']('─'['repeat'](0x32))),console[_0x2dbbe4(0xd8)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x16b5dd),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xe3)+process['version']),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xe8)+process[_0x2dbbe4(0xbf)]+'\x20'+process['arch']),console[_0x2dbbe4(0xd8)](),console[_0x2dbbe4(0xd8)](a92_0x469078[_0x2dbbe4(0xb2)](_0x2dbbe4(0xe4))),console['log'](a92_0x469078[_0x2dbbe4(0xda)](_0x2dbbe4(0xdd)[_0x2dbbe4(0xaa)](0x1e)));const _0x48de88=getGlobalConfigPath(),_0x4e22d6=getProjectConfigPath();console[_0x2dbbe4(0xd8)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x48de88||a92_0x469078['gray']('(not\x20found)'))),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xbc)+(_0x4e22d6||a92_0x469078[_0x2dbbe4(0xda)](_0x2dbbe4(0xad)))),console['log'](),console[_0x2dbbe4(0xd8)](a92_0x469078[_0x2dbbe4(0xb2)](_0x2dbbe4(0xa5))),console[_0x2dbbe4(0xd8)](a92_0x469078[_0x2dbbe4(0xda)](_0x2dbbe4(0xdd)[_0x2dbbe4(0xaa)](0x1e)));const _0x534f69=(_0x1caf74,_0x1b6cc2)=>{const _0x33f753=_0x2dbbe4;if(!_0x1b6cc2){console[_0x33f753(0xd8)]('\x20\x20'+_0x1caf74[_0x33f753(0xf5)](0x11)+'\x20'+a92_0x469078['gray']('(no\x20file)'));return;}const _0xb0fdeb=inspectCliConfigJsonFile(_0x1b6cc2);if(_0xb0fdeb[_0x33f753(0xc4)]==='ok')console[_0x33f753(0xd8)]('\x20\x20'+_0x1caf74[_0x33f753(0xf5)](0x11)+'\x20'+a92_0x469078[_0x33f753(0xa3)](_0x33f753(0xea)));else{if(_0xb0fdeb['status']===_0x33f753(0xb7))console[_0x33f753(0xd8)]('\x20\x20'+_0x1caf74['padEnd'](0x11)+'\x20'+a92_0x469078['yellow'](_0x33f753(0xce)));else _0xb0fdeb['status']===_0x33f753(0xc0)?console[_0x33f753(0xd8)]('\x20\x20'+_0x1caf74[_0x33f753(0xf5)](0x11)+'\x20'+a92_0x469078[_0x33f753(0xda)]('(missing)')):(console[_0x33f753(0xd8)]('\x20\x20'+_0x1caf74[_0x33f753(0xf5)](0x11)+'\x20'+a92_0x469078[_0x33f753(0xe1)]('✗\x20Invalid\x20JSON')),console[_0x33f753(0xd8)]('\x20\x20'+''[_0x33f753(0xf5)](0x11)+'\x20'+a92_0x469078[_0x33f753(0xe1)](_0xb0fdeb[_0x33f753(0xc8)])));}};_0x534f69(_0x2dbbe4(0xde),_0x48de88),_0x534f69(_0x2dbbe4(0xe9),_0x4e22d6),console[_0x2dbbe4(0xd8)](),console[_0x2dbbe4(0xd8)](a92_0x469078[_0x2dbbe4(0xb2)](_0x2dbbe4(0xd7))),console['log'](a92_0x469078['gray']('\x20\x20─'[_0x2dbbe4(0xaa)](0x1e))),console['log'](_0x2dbbe4(0xbe)+(_0x109dd8[_0x2dbbe4(0xb9)]||a92_0x469078['red'](_0x2dbbe4(0xbb)))),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xba)+_0x109dd8[_0x2dbbe4(0xc3)]),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x109dd8['locale']),console[_0x2dbbe4(0xd8)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x109dd8['apiDir']),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xd9)+(_0x109dd8['defaultApp']||a92_0x469078['gray']('(none)'))),console['log'](_0x2dbbe4(0xe0)+(_0x109dd8[_0x2dbbe4(0xb1)]||a92_0x469078[_0x2dbbe4(0xda)]('(none)'))),console['log']('\x20\x20explicitAppName:\x20'+(_0x109dd8['explicitAppName']||a92_0x469078[_0x2dbbe4(0xda)](_0x2dbbe4(0xb5)))),console['log'](_0x2dbbe4(0xc1)+(_0x109dd8[_0x2dbbe4(0xe5)]||a92_0x469078[_0x2dbbe4(0xda)](_0x2dbbe4(0xb0)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xd3)+(_0x109dd8[_0x2dbbe4(0xee)]??a92_0x469078[_0x2dbbe4(0xda)](_0x2dbbe4(0xc9)))),console['log'](_0x2dbbe4(0xf0)+_0x109dd8[_0x2dbbe4(0xeb)]),console['log'](_0x2dbbe4(0xcd)+_0x109dd8[_0x2dbbe4(0xf6)]),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xb6)+(_0x109dd8[_0x2dbbe4(0xec)]?a92_0x469078[_0x2dbbe4(0xa3)](_0x2dbbe4(0xaf)+_0x109dd8[_0x2dbbe4(0xec)][_0x2dbbe4(0xf1)]+')'):_0x565405?a92_0x469078[_0x2dbbe4(0xa3)](_0x2dbbe4(0xa6)+_0x565405[_0x2dbbe4(0xf1)]+')'):a92_0x469078[_0x2dbbe4(0xda)](_0x2dbbe4(0xb5))));const _0x4e398b=Object['keys'](_0x109dd8[_0x2dbbe4(0xe6)]);if(_0x4e398b[_0x2dbbe4(0xf1)]>0x0){console[_0x2dbbe4(0xd8)](),console['log'](a92_0x469078[_0x2dbbe4(0xb2)]('\x20\x20Apps')),console[_0x2dbbe4(0xd8)](a92_0x469078[_0x2dbbe4(0xda)](_0x2dbbe4(0xdd)['repeat'](0x1e)));for(const _0x481833 of _0x4e398b){const _0x27414b=_0x109dd8[_0x2dbbe4(0xe6)][_0x481833],_0xeda647=_0x481833===_0x109dd8[_0x2dbbe4(0xc7)],_0x468e53=_0x481833===_0x109dd8['currentApp'],_0x36a81a=_0x468e53?a92_0x469078[_0x2dbbe4(0xa3)](_0x2dbbe4(0xdf)):'',_0x250c27=_0xeda647?_0x2dbbe4(0xae):'';console[_0x2dbbe4(0xd8)]('\x20\x20'+_0x481833+_0x250c27+_0x36a81a),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xca)+_0x27414b[_0x2dbbe4(0xd4)]);const _0x39acca=buildAppDoctorFields(_0x27414b,{'env':_0x109dd8[_0x2dbbe4(0xc3)],'apiDir':_0x109dd8[_0x2dbbe4(0xb8)][_0x2dbbe4(0xc2)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x109dd8[_0x2dbbe4(0xec)]||_0x565405||undefined,'accessKey':_0x109dd8['accessKey']});console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xab)+_0x39acca[_0x2dbbe4(0xc3)][_0x2dbbe4(0xc6)]+'\x20\x20'+a92_0x469078[_0x2dbbe4(0xda)]('('+_0x39acca[_0x2dbbe4(0xc3)][_0x2dbbe4(0xef)]+')')),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xcc)+_0x39acca[_0x2dbbe4(0xc2)]['value']+'\x20\x20'+a92_0x469078[_0x2dbbe4(0xda)]('('+_0x39acca['apiDir']['source']+')'));const _0x697f22=_0x39acca[_0x2dbbe4(0xec)][_0x2dbbe4(0xc6)]?a92_0x469078[_0x2dbbe4(0xa3)](_0x2dbbe4(0xaf)+_0x39acca[_0x2dbbe4(0xec)][_0x2dbbe4(0xc6)][_0x2dbbe4(0xf1)]+')'):a92_0x469078[_0x2dbbe4(0xda)]('(none)');console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xbd)+_0x697f22+'\x20\x20'+a92_0x469078[_0x2dbbe4(0xda)]('('+_0x39acca[_0x2dbbe4(0xec)][_0x2dbbe4(0xef)]+')'));const _0x484c9f=_0x39acca[_0x2dbbe4(0xd0)][_0x2dbbe4(0xc6)]?a92_0x469078[_0x2dbbe4(0xa3)](_0x2dbbe4(0xaf)+_0x39acca[_0x2dbbe4(0xd0)]['value']['length']+')'):a92_0x469078[_0x2dbbe4(0xda)]('(none)');console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xdc)+_0x484c9f+'\x20\x20'+a92_0x469078[_0x2dbbe4(0xda)]('('+_0x39acca[_0x2dbbe4(0xd0)]['source']+')'));}}console['log'](),console[_0x2dbbe4(0xd8)](a92_0x469078[_0x2dbbe4(0xb2)]('\x20\x20API\x20Endpoints')),console[_0x2dbbe4(0xd8)](a92_0x469078[_0x2dbbe4(0xda)]('\x20\x20─'['repeat'](0x1e))),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xe2)+getApiDomain()),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xa8)+getUserDomain()),console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xa7)+getRuntimeDomain()),console[_0x2dbbe4(0xd8)](),console['log'](a92_0x469078[_0x2dbbe4(0xb2)](_0x2dbbe4(0xa1))),console[_0x2dbbe4(0xd8)](a92_0x469078['gray']('\x20\x20─'[_0x2dbbe4(0xaa)](0x1e)));if(_0x565405){const _0x53802c=await getIsSessionValid();console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xdb)+(_0x53802c?a92_0x469078[_0x2dbbe4(0xa3)](_0x2dbbe4(0xa9)):a92_0x469078[_0x2dbbe4(0xe1)](_0x2dbbe4(0xc5))));}else console[_0x2dbbe4(0xd8)](_0x2dbbe4(0xdb)+a92_0x469078[_0x2dbbe4(0xe1)]('✗\x20Not\x20logged\x20in'));return console[_0x2dbbe4(0xd8)](),{'ok':!![]};}export const doctorDefinition={'service':a92_0x55e795(0xb4),'command':a92_0x55e795(0xf3),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a92_0x55e795(0xe7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x1ab15c=a93_0xa16d;(function(_0x1a1083,_0x6d2a56){const _0x252530=a93_0xa16d,_0x88368f=_0x1a1083();while(!![]){try{const _0x568297=-parseInt(_0x252530(0x10b))/0x1*(-parseInt(_0x252530(0xff))/0x2)+-parseInt(_0x252530(0x101))/0x3+parseInt(_0x252530(0x113))/0x4+parseInt(_0x252530(0x104))/0x5*(parseInt(_0x252530(0xfe))/0x6)+-parseInt(_0x252530(0x105))/0x7*(parseInt(_0x252530(0x11d))/0x8)+-parseInt(_0x252530(0x10c))/0x9+parseInt(_0x252530(0x108))/0xa;if(_0x568297===_0x6d2a56)break;else _0x88368f['push'](_0x88368f['shift']());}catch(_0x34f11e){_0x88368f['push'](_0x88368f['shift']());}}}(a93_0x6934,0xa698d));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a93_0xa16d(_0xfe0e27,_0x9e6ef6){_0xfe0e27=_0xfe0e27-0xfc;const _0x6934fa=a93_0x6934();let _0xa16d86=_0x6934fa[_0xfe0e27];return _0xa16d86;}const FILE_FLAG={'name':a93_0x1ab15c(0x109),'type':a93_0x1ab15c(0x10a),'required':!![],'description':a93_0x1ab15c(0x100)},FILEPATH_FLAG={'name':a93_0x1ab15c(0x11b),'type':a93_0x1ab15c(0x10a),'required':!![],'description':a93_0x1ab15c(0x102)},DOWNLOAD_FLAG={'name':'download','type':a93_0x1ab15c(0x11f),'description':a93_0x1ab15c(0x107)},LONG_TERM_FLAG={'name':a93_0x1ab15c(0x10e),'type':a93_0x1ab15c(0x11f),'description':a93_0x1ab15c(0x118)};function a93_0x6934(){const _0xae0e5a=['str','boolean','/smartapi/common/uploadFile','trim','write','6iPWhpJ','132116EmPWYt','Path\x20to\x20the\x20local\x20file\x20to\x20upload','1222278gWRzvD','Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data','download','1543445jpDbVc','721189yVccQU','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','9090200eLAiHZ','file','string','17zcsQzE','8811099SmvojM','appCode','long-term','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','filePath','validation','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','1797248AgszmJ','read','bool','POST','Uploaded\x20file:\x20','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','File','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','filepath','path','56ZhUVXB'];a93_0x6934=function(){return _0xae0e5a;};return a93_0x6934();}function requireFilePath(_0x4a0e22){const _0x5f3cc7=a93_0x1ab15c,_0xf0640a=_0x4a0e22[_0x5f3cc7(0xfc)]();if(!_0xf0640a)throw CliErrors[_0x5f3cc7(0x111)]('filePath\x20is\x20required.');return _0xf0640a;}const fileUpload={'service':a93_0x1ab15c(0x109),'command':'upload','description':a93_0x1ab15c(0x112),'risk':a93_0x1ab15c(0xfd),'flags':[FILE_FLAG],async 'dryRun'(_0x1430c1){const _0x1e9019=a93_0x1ab15c,_0x2d79e0=requireDevelopmentUploadFile(_0x1430c1[_0x1e9019(0x11e)](_0x1e9019(0x109)),_0x1e9019(0x119));return{'method':_0x1e9019(0x116),'url':_0x1e9019(0x120),'body':{'appCode':_0x1430c1[_0x1e9019(0x10d)],'multipart':{'file':_0x2d79e0}},'description':'Preview:\x20upload\x20'+_0x2d79e0[_0x1e9019(0x11c)]+'\x20to\x20development\x20app\x20'+_0x1430c1['appCode']};},async 'execute'(_0x532718){const _0x313976=a93_0x1ab15c,_0x165e9d=requireDevelopmentUploadFile(_0x532718[_0x313976(0x11e)]('file'),_0x313976(0x119)),_0x31378c=await uploadDevelopmentFile(_0x532718[_0x313976(0x10d)],_0x165e9d['path']);return{'ok':!![],'data':_0x31378c,'message':_0x31378c[_0x313976(0x110)]?_0x313976(0x117)+_0x31378c[_0x313976(0x110)]+_0x313976(0x11a):_0x313976(0x10f)};}},fileQueryUrl={'service':'file','command':'query-url','description':a93_0x1ab15c(0x106),'risk':a93_0x1ab15c(0x114),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0xae597a){const _0x55df95=a93_0x1ab15c,_0x541c1f=requireFilePath(_0xae597a[_0x55df95(0x11e)]('filepath')),_0x23809d=await queryDevelopmentFileUrl(_0x541c1f,{'download':_0xae597a[_0x55df95(0x115)](_0x55df95(0x103)),'longTerm':_0xae597a['bool'](_0x55df95(0x10e))});return{'ok':!![],'data':_0x23809d};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x373c8c=a94_0x52e6;(function(_0x57710a,_0xe9bf11){const _0x10622c=a94_0x52e6,_0x221547=_0x57710a();while(!![]){try{const _0x38a514=-parseInt(_0x10622c(0x1bd))/0x1+parseInt(_0x10622c(0x1ac))/0x2+-parseInt(_0x10622c(0x1a3))/0x3+-parseInt(_0x10622c(0x1a6))/0x4*(-parseInt(_0x10622c(0x1b3))/0x5)+-parseInt(_0x10622c(0x1be))/0x6*(-parseInt(_0x10622c(0x1b2))/0x7)+-parseInt(_0x10622c(0x1ab))/0x8+-parseInt(_0x10622c(0x1c8))/0x9*(-parseInt(_0x10622c(0x1aa))/0xa);if(_0x38a514===_0xe9bf11)break;else _0x221547['push'](_0x221547['shift']());}catch(_0x473140){_0x221547['push'](_0x221547['shift']());}}}(a94_0x1b56,0x21645));function a94_0x1b56(){const _0x2145df=['log','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','some','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','str','validation','production','string','boolean','272446KCWoRS','12GGDrEP','write','custom','toLocaleString','appCode','yes','\x20\x20Config:\x20','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','检测到旧配置文件,正在自动升级...\x0a','project','27qXjRkk','\x20\x20Default:\x20','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','env','global','appcode','map','653364qTuqJv','message','flagMissing','25348mcqhvG','\x0a✓\x20Successfully\x20initialized\x20','nonInteractive','valid','1367570AEUmZg','945552XcAroy','350052xFlAmu','bool','join','Use\x20`','\x20\x20Env:\x20','Usage:\x20','515305xmdyyA','10SLUpUo'];a94_0x1b56=function(){return _0x2145df;};return a94_0x1b56();}import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';function a94_0x52e6(_0x1edee5,_0xd9e8ed){_0x1edee5=_0x1edee5-0x1a2;const _0x1b5693=a94_0x1b56();let _0x52e669=_0x1b5693[_0x1edee5];return _0x52e669;}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(_0x9b1cf7){return{'appCode':_0x9b1cf7,'appName':_0x9b1cf7};}function writeInitConfig(_0x2b8d2c,_0x4e1830,_0x5cc497){const _0x3488ee=a94_0x52e6,_0x3e4825=resolveWriteConfigPath(_0x2b8d2c),_0x10f280=buildCanonicalProjectConfig({},{'appCodes':_0x4e1830[_0x3488ee(0x1a2)](_0x1cd41c=>_0x1cd41c[_0x3488ee(0x1c2)]),'env':_0x5cc497,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x3488ee(0x1c1)]()}});writeConfigFile(_0x3e4825,_0x10f280);const _0x277252=_0x2b8d2c===_0x3488ee(0x1cc)?'global':'project';console[_0x3488ee(0x1b4)](_0x3488ee(0x1a7)+_0x277252+'\x20config'),console[_0x3488ee(0x1b4)]('\x20\x20Apps:\x20'+_0x4e1830['map'](_0x1d3ce5=>_0x1d3ce5[_0x3488ee(0x1c2)])[_0x3488ee(0x1ae)](',\x20')),console[_0x3488ee(0x1b4)](_0x3488ee(0x1c9)+_0x10f280['defaultApp']),console[_0x3488ee(0x1b4)](_0x3488ee(0x1b0)+_0x10f280['env']),console['log'](_0x3488ee(0x1c4)+_0x3e4825);}async function runSmartInit(_0x63d6e4){const _0x530e41=a94_0x52e6,_0x28a6e6=process['cwd'](),_0x34cb88=_0x63d6e4['bool'](_0x530e41(0x1cc))?_0x530e41(0x1cc):_0x530e41(0x1c7),_0x405fcd=_0x63d6e4[_0x530e41(0x1b8)]('env')||_0x530e41(0x1ba),_0x13de46=_0x63d6e4[_0x530e41(0x1b8)](_0x530e41(0x1cd))||undefined,_0x3ccab2=_0x63d6e4[_0x530e41(0x1ad)](_0x530e41(0x1c7));if(_0x3ccab2){const {initConfig:_0x430119}=await import('../../commands/project/init.js');return _0x430119({'appcode':_0x13de46,'env':_0x405fcd,'autoYes':_0x63d6e4[_0x530e41(0x1ad)](_0x530e41(0x1c3))});}if(_0x34cb88===_0x530e41(0x1c7)){const _0x3ecab6=existsSync(resolve(_0x28a6e6,NEW_CONFIG_NAME)),_0x2837a1=LEGACY_CONFIG_NAMES[_0x530e41(0x1b6)](_0x4ca196=>existsSync(resolve(_0x28a6e6,_0x4ca196)));if(_0x2837a1&&!_0x3ecab6)return console[_0x530e41(0x1b4)](_0x530e41(0x1c6)),upgradeApp(_0x63d6e4[_0x530e41(0x1a8)],{'yes':_0x63d6e4[_0x530e41(0x1ad)](_0x530e41(0x1c3))});if(_0x3ecab6)throw CliErrors[_0x530e41(0x1b9)](_0x530e41(0x1b5),_0x530e41(0x1af)+CLI_BIN_NAME+_0x530e41(0x1c5));}if(_0x13de46){const _0x40a44c=validateAppcode(_0x13de46);if(!_0x40a44c[_0x530e41(0x1a9)])throw CliErrors[_0x530e41(0x1b9)](_0x40a44c[_0x530e41(0x1a4)]);writeInitConfig(_0x34cb88,[syntheticApp(_0x13de46)],_0x405fcd);return;}if(_0x63d6e4['nonInteractive'])throw CliErrors[_0x530e41(0x1a5)](_0x530e41(0x1cd),_0x530e41(0x1b1)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x51a9b2=getCookie(),_0x4ca332=await selectMultipleApps(_0x51a9b2),_0x3f67a5=_0x4ca332===_0x530e41(0x1c0)?[syntheticApp(await promptCustomAppcode())]:_0x4ca332;writeInitConfig(_0x34cb88,_0x3f67a5,_0x405fcd);}const initFlags=[{'name':a94_0x373c8c(0x1cc),'type':a94_0x373c8c(0x1bc),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a94_0x373c8c(0x1cb),'type':'string','description':'Target\x20environment','default':a94_0x373c8c(0x1ba),'enum':[...RABETBASE_ENV_VALUES]},{'name':a94_0x373c8c(0x1cd),'type':a94_0x373c8c(0x1bb),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':a94_0x373c8c(0x1c7),'type':a94_0x373c8c(0x1bc),'description':a94_0x373c8c(0x1ca),'default':![]},{'name':a94_0x373c8c(0x1c3),'type':a94_0x373c8c(0x1bc),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':'init','command':'run','description':a94_0x373c8c(0x1b7),'risk':a94_0x373c8c(0x1bf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x2343c6){return await runSmartInit(_0x2343c6),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a95_0x14c7(_0x579d9b,_0xf21719){_0x579d9b=_0x579d9b-0xd4;const _0x52095a=a95_0x5209();let _0x14c7e2=_0x52095a[_0x579d9b];return _0x14c7e2;}(function(_0x187ed1,_0x137ee7){const _0x5aa448=a95_0x14c7,_0x487fdb=_0x187ed1();while(!![]){try{const _0x41129c=parseInt(_0x5aa448(0xdc))/0x1*(parseInt(_0x5aa448(0xde))/0x2)+parseInt(_0x5aa448(0xd8))/0x3*(parseInt(_0x5aa448(0xd7))/0x4)+-parseInt(_0x5aa448(0xdd))/0x5+parseInt(_0x5aa448(0xda))/0x6+parseInt(_0x5aa448(0xd4))/0x7*(-parseInt(_0x5aa448(0xdb))/0x8)+parseInt(_0x5aa448(0xd9))/0x9*(parseInt(_0x5aa448(0xd6))/0xa)+-parseInt(_0x5aa448(0xd5))/0xb;if(_0x41129c===_0x137ee7)break;else _0x487fdb['push'](_0x487fdb['shift']());}catch(_0x514561){_0x487fdb['push'](_0x487fdb['shift']());}}}(a95_0x5209,0xdc8ee));function a95_0x5209(){const _0x25ecef=['6533045qqgtdz','1959124PHAGPt','4858Vcorhu','4276943yQdClP','10739180xhlLXC','628504UssFbg','27MyiatW','9FBiRWP','3310992zVBxxn','16376VfEeVa','1hYDTFL'];a95_0x5209=function(){return _0x25ecef;};return a95_0x5209();}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x368f84=a96_0x14a1;(function(_0x1eeaf5,_0xf780ed){const _0x5ab36c=a96_0x14a1,_0x5d1c31=_0x1eeaf5();while(!![]){try{const _0x1aaa0d=-parseInt(_0x5ab36c(0x199))/0x1+-parseInt(_0x5ab36c(0x1b2))/0x2*(-parseInt(_0x5ab36c(0x1ac))/0x3)+-parseInt(_0x5ab36c(0x19b))/0x4+parseInt(_0x5ab36c(0x195))/0x5*(parseInt(_0x5ab36c(0x1b1))/0x6)+-parseInt(_0x5ab36c(0x1a9))/0x7*(parseInt(_0x5ab36c(0x19a))/0x8)+parseInt(_0x5ab36c(0x197))/0x9+parseInt(_0x5ab36c(0x193))/0xa;if(_0x1aaa0d===_0xf780ed)break;else _0x5d1c31['push'](_0x5d1c31['shift']());}catch(_0x409282){_0x5d1c31['push'](_0x5d1c31['shift']());}}}(a96_0x306f,0x6d484));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a96_0x368f84(0x1a1);const NUDGE_SUPPRESSED_CODES=new Set([a96_0x368f84(0x1a6),a96_0x368f84(0x1ae),'config_missing','not_in_project',a96_0x368f84(0x1af),a96_0x368f84(0x19e),'validation_error',a96_0x368f84(0x1aa)]),defaultWriter=_0x5c8967=>{const _0x977ee6=a96_0x368f84;process[_0x977ee6(0x196)]['write'](_0x5c8967);};export function shouldNudgeForError(_0x1e9557,_0x2bf697){const _0x5d5a43=a96_0x368f84;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x2bf697['service']===_0x5d5a43(0x192)&&_0x2bf697[_0x5d5a43(0x19f)]==='report')return![];if(_0x1e9557 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x5d5a43(0x1a3)](_0x1e9557[_0x5d5a43(0x19d)]);return!![];}function a96_0x14a1(_0x3c21c1,_0x194ff4){_0x3c21c1=_0x3c21c1-0x192;const _0x306fa5=a96_0x306f();let _0x14a1b7=_0x306fa5[_0x3c21c1];return _0x14a1b7;}export function printIssueReportNudgeForError(_0x2eb405,_0x362098,_0x46fa34=defaultWriter){if(!shouldNudgeForError(_0x2eb405,_0x362098))return;const _0x4117ad=buildSuggestedTitle(_0x2eb405,_0x362098);_0x46fa34(formatNudge(_0x4117ad));}function a96_0x306f(){const _0x4132cf=['stderr','6311889XDCLJW','\x20\x20Set\x20','749296KSifTQ','20920pwyUtX','1754000mDPBjD','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','code','flag_missing','command','trim','RABETBASE_DISABLE_ISSUE_NUDGE','replace','has','length','join','cancelled','=1\x20to\x20silence\x20this\x20hint.','Hit\x20a\x20','1792FPwDYU','network_error','\x20issue\x20report\x20\x5c','177759qDSEzU','\x20\x20\x20\x20--title\x20\x22','auth_required','unknown_command','\x20bug?\x20Help\x20us\x20fix\x20it:','2352666jIJAtC','16kGdLor','issue','7374000lGLAjj','message','5BxGxNa'];a96_0x306f=function(){return _0x4132cf;};return a96_0x306f();}function buildSuggestedTitle(_0x3e6916,_0x222017){const _0x1eab59=a96_0x368f84,_0x5f2060=_0x3e6916 instanceof Error?_0x3e6916[_0x1eab59(0x194)]:String(_0x3e6916),_0x568108=_0x5f2060['replace'](/[\r\n]+/g,'\x20')[_0x1eab59(0x1a2)](/\s+/g,'\x20')[_0x1eab59(0x1a0)]()['slice'](0x0,0x78)['replace'](/"/g,'\x5c\x22'),_0xf888b9=CLI_BIN_NAME+'\x20'+_0x222017['service']+'\x20'+_0x222017[_0x1eab59(0x19f)];return _0x568108[_0x1eab59(0x1a4)]>0x0?_0xf888b9+':\x20'+_0x568108:_0xf888b9;}function formatNudge(_0x178c6b){const _0x4a8f17=a96_0x368f84;return['',_0x4a8f17(0x1a8)+CLI_BIN_NAME+_0x4a8f17(0x1b0),'\x20\x20'+CLI_BIN_NAME+_0x4a8f17(0x1ab),_0x4a8f17(0x1ad)+_0x178c6b+'\x22\x20\x5c','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22',_0x4a8f17(0x19c),_0x4a8f17(0x198)+NUDGE_OPT_OUT_ENV+_0x4a8f17(0x1a7),''][_0x4a8f17(0x1a5)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97_0x1012e2=a97_0x23bc;(function(_0x4280da,_0x4aef41){const _0x12771e=a97_0x23bc,_0x5df56d=_0x4280da();while(!![]){try{const _0x38c338=-parseInt(_0x12771e(0x20a))/0x1*(-parseInt(_0x12771e(0x221))/0x2)+parseInt(_0x12771e(0x21f))/0x3*(parseInt(_0x12771e(0x1f9))/0x4)+parseInt(_0x12771e(0x1f1))/0x5*(-parseInt(_0x12771e(0x225))/0x6)+-parseInt(_0x12771e(0x216))/0x7*(parseInt(_0x12771e(0x1f8))/0x8)+parseInt(_0x12771e(0x209))/0x9*(-parseInt(_0x12771e(0x201))/0xa)+-parseInt(_0x12771e(0x224))/0xb*(-parseInt(_0x12771e(0x206))/0xc)+parseInt(_0x12771e(0x228))/0xd*(parseInt(_0x12771e(0x21d))/0xe);if(_0x38c338===_0x4aef41)break;else _0x5df56d['push'](_0x5df56d['shift']());}catch(_0x6f5d9e){_0x5df56d['push'](_0x5df56d['shift']());}}}(a97_0x138a,0x82b25));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a97_0x23bc(_0x388dbf,_0x3db291){_0x388dbf=_0x388dbf-0x1ed;const _0x138afc=a97_0x138a();let _0x23bc49=_0x138afc[_0x388dbf];return _0x23bc49;}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='description-file';export const issueReport={'service':a97_0x1012e2(0x20c),'command':a97_0x1012e2(0x226),'description':a97_0x1012e2(0x222),'risk':a97_0x1012e2(0x1fd),'requiresAuth':!![],'requiresAppCode':![],'defaultOutputFormat':'compress','flags':[{'name':a97_0x1012e2(0x215),'type':a97_0x1012e2(0x207),'required':!![],'description':a97_0x1012e2(0x22a)},{'name':'description','type':a97_0x1012e2(0x207),'description':a97_0x1012e2(0x204)},{'name':DESCRIPTION_FILE_FLAG,'type':a97_0x1012e2(0x207),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x31488c){const _0x440a9a=a97_0x1012e2,_0x4154b9=_0x31488c['str']('title')['trim'](),_0xd9dabe=_0x31488c[_0x440a9a(0x214)](_0x440a9a(0x229))[_0x440a9a(0x21c)](),_0x4f0883=_0x31488c[_0x440a9a(0x214)](DESCRIPTION_FILE_FLAG)[_0x440a9a(0x21c)]();if(!_0x4154b9)throw CliErrors[_0x440a9a(0x1f4)](_0x440a9a(0x215),_0x440a9a(0x20f));const _0x54047f=_0xd9dabe[_0x440a9a(0x210)]>0x0,_0x3f0c31=_0x4f0883[_0x440a9a(0x210)]>0x0;if(_0x54047f===_0x3f0c31)throw CliErrors[_0x440a9a(0x1fb)](_0x440a9a(0x1ff),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x3f0c31){const _0x1951fc=resolve(process['cwd'](),_0x4f0883);if(!existsSync(_0x1951fc))throw CliErrors[_0x440a9a(0x1fb)](_0x440a9a(0x1fc)+_0x1951fc);}},async 'dryRun'(_0xd9e812){const _0x35fdf1=a97_0x1012e2,_0x2f9a0d=await prepareIssueReport(_0xd9e812);return{'method':'POST','url':_0x35fdf1(0x21b)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2f9a0d['title'],'issue.description':_0x2f9a0d[_0x35fdf1(0x229)],'issue.description_original_bytes':_0x2f9a0d[_0x35fdf1(0x208)]['originalBytes'],'issue.description_truncated':_0x2f9a0d['sanitize'][_0x35fdf1(0x1f0)],'issue.description_redactions':_0x2f9a0d[_0x35fdf1(0x208)][_0x35fdf1(0x1ed)],'issue.description_redaction_kinds':_0x2f9a0d[_0x35fdf1(0x208)][_0x35fdf1(0x1f3)][_0x35fdf1(0x21e)](',')}},'description':[_0x35fdf1(0x217),'descriptionSource:\x20'+_0x2f9a0d[_0x35fdf1(0x213)],_0x2f9a0d[_0x35fdf1(0x203)]?_0x35fdf1(0x1f2)+_0x2f9a0d[_0x35fdf1(0x203)]:null,_0x2f9a0d[_0x35fdf1(0x208)][_0x35fdf1(0x1f0)]?_0x35fdf1(0x1f5)+_0x2f9a0d[_0x35fdf1(0x208)][_0x35fdf1(0x20b)]+_0x35fdf1(0x212):null,_0x2f9a0d[_0x35fdf1(0x208)][_0x35fdf1(0x1ed)]>0x0?_0x35fdf1(0x218)+_0x2f9a0d['sanitize']['redactionCount']+'\x20('+_0x2f9a0d[_0x35fdf1(0x208)][_0x35fdf1(0x1f3)]['join'](',\x20')+')':null][_0x35fdf1(0x202)](Boolean)[_0x35fdf1(0x21e)]('\x0a')};},async 'execute'(_0x3ecca4){const _0x5ec970=a97_0x1012e2,_0xadb53d=await prepareIssueReport(_0x3ecca4);try{await sendPlatformIssueCollectLog({'title':_0xadb53d[_0x5ec970(0x215)],'description':_0xadb53d['description'],'sanitize':{'originalBytes':_0xadb53d[_0x5ec970(0x208)]['originalBytes'],'truncated':_0xadb53d[_0x5ec970(0x208)][_0x5ec970(0x1f0)],'redactionCount':_0xadb53d[_0x5ec970(0x208)]['redactionCount'],'redactionKinds':_0xadb53d[_0x5ec970(0x208)][_0x5ec970(0x1f3)]}});}catch(_0x3a6937){throw CliErrors[_0x5ec970(0x1f6)](_0x5ec970(0x20e)+(_0x3a6937 instanceof Error?_0x3a6937[_0x5ec970(0x223)]:String(_0x3a6937)),_0x5ec970(0x1ef));}return{'ok':!![],'message':buildResultMessage(_0xadb53d[_0x5ec970(0x208)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title','issue.description','issue.description_original_bytes',_0x5ec970(0x1ee),'issue.description_redactions',_0x5ec970(0x227)],'issue':{'title':_0xadb53d[_0x5ec970(0x215)],'descriptionLength':_0xadb53d[_0x5ec970(0x229)][_0x5ec970(0x210)],'descriptionSource':_0xadb53d[_0x5ec970(0x213)],..._0xadb53d[_0x5ec970(0x203)]?{'descriptionFile':_0xadb53d[_0x5ec970(0x203)]}:{},'sanitize':{'originalBytes':_0xadb53d['sanitize']['originalBytes'],'truncated':_0xadb53d['sanitize']['truncated'],'redactions':_0xadb53d[_0x5ec970(0x208)][_0x5ec970(0x1ed)],'redactionKinds':_0xadb53d[_0x5ec970(0x208)]['redactionKinds']}}}};}};function a97_0x138a(){const _0x3b4f3c=['length','Platform\x20issue\x20reported\x20(','\x20bytes','descriptionSource','str','title','49980RKWjdl','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','redactions:\x20','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','utf8','otel://','trim','1020292Qaezqc','join','1159593YfZpee','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','90SKtbEG','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','message','3036uKQTLq','6ZpKZfD','report','issue.description_redaction_kinds','52FvYPEZ','description','One-line\x20issue\x20summary','Issue\x20description\x20file\x20is\x20empty:\x20','redactionCount','issue.description_truncated','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','truncated','4717570yZoicw','descriptionFile:\x20','redactionKinds','flagMissing','truncated:\x20original\x20','apiError','push','16ujnTRs','4jBZwkF','redacted\x20','validation','File\x20not\x20found:\x20','write','Issue\x20description\x20cannot\x20be\x20empty.','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','inline','3430RtqBcl','filter','descriptionFilePath','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','file','12264ckrxDd','string','sanitize','14049ZWGboj','23743lUkrIn','originalBytes','issue','\x20secret(s):\x20','Failed\x20to\x20report\x20platform\x20issue:\x20','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.'];a97_0x138a=function(){return _0x3b4f3c;};return a97_0x138a();}function buildResultMessage(_0x3ea37c){const _0x118987=a97_0x1012e2,_0x175396=[];return _0x3ea37c[_0x118987(0x1f0)]&&_0x175396[_0x118987(0x1f7)]('truncated\x20from\x20'+_0x3ea37c[_0x118987(0x20b)]+_0x118987(0x212)),_0x3ea37c[_0x118987(0x1ed)]>0x0&&_0x175396['push'](_0x118987(0x1fa)+_0x3ea37c['redactionCount']+_0x118987(0x20d)+_0x3ea37c['redactionKinds'][_0x118987(0x21e)](',\x20')),_0x175396[_0x118987(0x210)]===0x0?'Platform\x20issue\x20reported':_0x118987(0x211)+_0x175396[_0x118987(0x21e)](';\x20')+')';}async function prepareIssueReport(_0x2bfd52){const _0x36f044=a97_0x1012e2,_0xfc846=_0x2bfd52[_0x36f044(0x214)](_0x36f044(0x215))['trim'](),_0x5d424a=_0x2bfd52[_0x36f044(0x214)](_0x36f044(0x229)),_0x276884=_0x2bfd52[_0x36f044(0x214)](DESCRIPTION_FILE_FLAG)[_0x36f044(0x21c)]();if(!_0x276884){const _0x28bc06=_0x5d424a;if(!_0x28bc06['trim']())throw CliErrors[_0x36f044(0x1fb)](_0x36f044(0x1fe),_0x36f044(0x219));const _0x49926f=sanitizeIssueDescription(_0x28bc06);return{'title':_0xfc846,'description':_0x49926f[_0x36f044(0x229)],'descriptionSource':_0x36f044(0x200),'sanitize':_0x49926f};}const _0x3fb553=resolve(process['cwd'](),_0x276884),_0x5a741b=await readFile(_0x3fb553,_0x36f044(0x21a));if(!_0x5a741b[_0x36f044(0x21c)]())throw CliErrors[_0x36f044(0x1fb)](_0x36f044(0x22b)+_0x3fb553,_0x36f044(0x220));const _0x4bd7d3=sanitizeIssueDescription(_0x5a741b);return{'title':_0xfc846,'description':_0x4bd7d3[_0x36f044(0x229)],'descriptionSource':_0x36f044(0x205),'descriptionFilePath':_0x3fb553,'sanitize':_0x4bd7d3};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0x490513=a98_0x5441;(function(_0x3a4269,_0x522b77){const _0x2c3f1a=a98_0x5441,_0x4e9d75=_0x3a4269();while(!![]){try{const _0x4592f6=-parseInt(_0x2c3f1a(0x199))/0x1*(-parseInt(_0x2c3f1a(0x1ad))/0x2)+-parseInt(_0x2c3f1a(0x1a4))/0x3*(parseInt(_0x2c3f1a(0x1a6))/0x4)+-parseInt(_0x2c3f1a(0x1b5))/0x5*(parseInt(_0x2c3f1a(0x1b6))/0x6)+-parseInt(_0x2c3f1a(0x1a1))/0x7+-parseInt(_0x2c3f1a(0x19d))/0x8*(parseInt(_0x2c3f1a(0x19f))/0x9)+parseInt(_0x2c3f1a(0x1b3))/0xa+parseInt(_0x2c3f1a(0x19e))/0xb;if(_0x4592f6===_0x522b77)break;else _0x4e9d75['push'](_0x4e9d75['shift']());}catch(_0x37a2d4){_0x4e9d75['push'](_0x4e9d75['shift']());}}}(a98_0x48af,0xa07b4));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE=a98_0x490513(0x19b),REDACTION_RULES=[{'kind':'cookie','pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a98_0x490513(0x1b7)},{'kind':'authorization','pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a98_0x490513(0x198)},{'kind':a98_0x490513(0x1a8),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a98_0x490513(0x1a0)},{'kind':a98_0x490513(0x1b1),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':'REDACTED:access-key'},{'kind':a98_0x490513(0x1aa),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a98_0x490513(0x1b8)},{'kind':a98_0x490513(0x197),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a98_0x490513(0x1af)}];export function sanitizeIssueDescription(_0x1253f2){const _0x375bb4=a98_0x490513,_0x2b9ad5=Buffer['byteLength'](_0x1253f2,_0x375bb4(0x1a3)),_0x510cef=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0xce6b5a=_0x1253f2,_0xe4930e=0x0;const _0x35ba31=[];if(!_0x510cef){const _0x19ef6c=protectOssAccessKeyIds(_0xce6b5a);_0xce6b5a=_0x19ef6c[_0x375bb4(0x1a7)];for(const _0x579723 of REDACTION_RULES){let _0x4cd2ae=0x0;_0xce6b5a=_0xce6b5a[_0x375bb4(0x1b2)](_0x579723[_0x375bb4(0x1bb)],(_0x16f981,_0x18adb3)=>{const _0x5c3f3f=_0x375bb4;_0x4cd2ae+=0x1;const _0xee300b=typeof _0x18adb3===_0x5c3f3f(0x1ab)?_0x18adb3:'';return _0xee300b+'['+_0x579723[_0x5c3f3f(0x1ac)]+']';}),_0x4cd2ae>0x0&&(_0xe4930e+=_0x4cd2ae,!_0x35ba31[_0x375bb4(0x19c)](_0x579723['kind'])&&_0x35ba31[_0x375bb4(0x1a9)](_0x579723[_0x375bb4(0x1a2)]));}_0xce6b5a=_0x19ef6c['restore'](_0xce6b5a);}let _0x158012=![];if(Buffer[_0x375bb4(0x1b0)](_0xce6b5a,_0x375bb4(0x1a3))>ISSUE_DESCRIPTION_MAX_BYTES){_0x158012=!![];const _0x135902=Buffer['byteLength'](TRUNCATION_NOTICE,'utf8'),_0x4bea47=Math[_0x375bb4(0x1ae)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x135902);_0xce6b5a=sliceUtf8Bytes(_0xce6b5a,_0x4bea47)+TRUNCATION_NOTICE;}return{'description':_0xce6b5a,'originalBytes':_0x2b9ad5,'truncated':_0x158012,'redactionCount':_0xe4930e,'redactionKinds':_0x35ba31};}function a98_0x48af(){const _0x56cb2f=['private-key','push','password','string','label','86FFJJNu','max','REDACTED:bearer-jwt','byteLength','access-key','replace','1458840UNipgl','__RB_OSS_ID_','10aarQzE','2407488YEMIDG','REDACTED:cookie','REDACTED:password','from','slice','pattern','bearer-jwt','REDACTED:authorization','25198AENXRO','toString','\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]','includes','32vNlTZB','14870526ssUTgM','1325493aQqkeq','REDACTED:private-key','2383472FSgtaV','kind','utf8','12tCyCvY','subarray','191832GKGeqy','description'];a98_0x48af=function(){return _0x56cb2f;};return a98_0x48af();}function a98_0x5441(_0x20ee2f,_0x384da8){_0x20ee2f=_0x20ee2f-0x197;const _0x48af49=a98_0x48af();let _0x544137=_0x48af49[_0x20ee2f];return _0x544137;}function protectOssAccessKeyIds(_0x211104){const _0x35889a=a98_0x490513,_0x211e9a=[],_0x27bfb1=_0x211104[_0x35889a(0x1b2)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x2215db,_0x4c1f5e)=>{const _0x95d27c=_0x35889a,_0x3d7aab=_0x211e9a[_0x95d27c(0x1a9)](_0x2215db[_0x95d27c(0x1ba)](_0x4c1f5e['length']))-0x1;return _0x4c1f5e+_0x95d27c(0x1b4)+_0x3d7aab+'__';});return{'description':_0x27bfb1,'restore':_0x445c18=>_0x445c18[_0x35889a(0x1b2)](/([?&])__RB_OSS_ID_(\d+)__/g,(_0x48a313,_0x3878f2,_0x33a36e)=>{const _0x12dfae=_0x211e9a[Number(_0x33a36e)];return _0x12dfae===undefined?_0x48a313:''+_0x3878f2+_0x12dfae;})};}function sliceUtf8Bytes(_0x21c2d1,_0x1ed81d){const _0x2f285b=a98_0x490513;if(_0x1ed81d<=0x0)return'';const _0x22f0bf=Buffer[_0x2f285b(0x1b9)](_0x21c2d1,_0x2f285b(0x1a3));if(_0x22f0bf['byteLength']<=_0x1ed81d)return _0x21c2d1;let _0x4fca67=_0x1ed81d;while(_0x4fca67>0x0){const _0x399688=_0x22f0bf[_0x4fca67];if(_0x399688===undefined||(_0x399688&0xc0)!==0x80)break;_0x4fca67-=0x1;}return _0x22f0bf[_0x2f285b(0x1a5)](0x0,_0x4fca67)[_0x2f285b(0x19a)](_0x2f285b(0x1a3));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a99_0x35e1d2=a99_0x1186;(function(_0x2d183a,_0x5ed239){const _0x2668e1=a99_0x1186,_0x1476de=_0x2d183a();while(!![]){try{const _0xbcb814=parseInt(_0x2668e1(0x119))/0x1+-parseInt(_0x2668e1(0x120))/0x2+parseInt(_0x2668e1(0x110))/0x3+-parseInt(_0x2668e1(0x105))/0x4+parseInt(_0x2668e1(0x107))/0x5*(parseInt(_0x2668e1(0x10d))/0x6)+parseInt(_0x2668e1(0x10a))/0x7*(parseInt(_0x2668e1(0x10e))/0x8)+-parseInt(_0x2668e1(0x10c))/0x9;if(_0xbcb814===_0x5ed239)break;else _0x1476de['push'](_0x1476de['shift']());}catch(_0x2bdd75){_0x1476de['push'](_0x1476de['shift']());}}}(a99_0x40f7,0x64c63));function a99_0x1186(_0xf56925,_0x1cda98){_0xf56925=_0xf56925-0x102;const _0x40f7fe=a99_0x40f7();let _0x11861a=_0x40f7fe[_0xf56925];return _0x11861a;}import{logger}from'../../utils/logger.js';function printLogs(_0x4ba87){const _0x1c6b24=a99_0x1186;if(_0x4ba87[_0x1c6b24(0x111)]===0x0){console[_0x1c6b24(0x102)](_0x1c6b24(0x10b));return;}console[_0x1c6b24(0x102)](_0x1c6b24(0x104)),_0x4ba87['forEach']((_0x562203,_0x30f56a)=>{const _0x5a3099=_0x1c6b24,_0x341557=new Date(_0x562203[_0x5a3099(0x10f)])[_0x5a3099(0x106)]('en-US'),_0xbbef53=_0x562203['level']===_0x5a3099(0x116)?'√':_0x562203[_0x5a3099(0x11a)]===_0x5a3099(0x118)?'×':_0x562203['level']===_0x5a3099(0x121)?'!':'i';console[_0x5a3099(0x102)](_0x30f56a+0x1+'.\x20'+_0xbbef53+'\x20['+_0x562203[_0x5a3099(0x108)]+']\x20'+_0x562203[_0x5a3099(0x11c)]),console[_0x5a3099(0x102)]('\x20\x20\x20Time:\x20'+_0x341557),_0x562203[_0x5a3099(0x11d)]&&console['log'](_0x5a3099(0x124)+_0x562203[_0x5a3099(0x11d)]+'ms'),_0x562203[_0x5a3099(0x109)]&&Object[_0x5a3099(0x113)](_0x562203[_0x5a3099(0x109)])[_0x5a3099(0x111)]>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON[_0x5a3099(0x112)](_0x562203['details'],null,0x2)),console[_0x5a3099(0x102)]('');});}export const logsDefinitions=[{'service':a99_0x35e1d2(0x123),'command':a99_0x35e1d2(0x103),'description':a99_0x35e1d2(0x117),'risk':a99_0x35e1d2(0x11e),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x2cdd24){const _0x4687b1=a99_0x35e1d2;return printLogs(logger[_0x4687b1(0x114)]()),{'ok':!![]};}},{'service':a99_0x35e1d2(0x123),'command':'clear','description':a99_0x35e1d2(0x115),'risk':a99_0x35e1d2(0x122),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4f20f3){const _0x40659e=a99_0x35e1d2;return logger[_0x40659e(0x11b)](),console['log'](_0x40659e(0x11f)),{'ok':!![]};}}];function a99_0x40f7(){const _0x106f71=['*\x20Logs\x20cleared','174114jIUSUz','warn','write','logs','\x20\x20\x20Duration:\x20','log','show','*\x20Lovrabet\x20CLI\x20logs:\x0a','3168372xBbRbq','toLocaleString','395eifYHd','command','details','28qPxxXJ','*\x20No\x20logs\x20found','1313433mZOtzu','6642mxgWjo','1498216crxJlG','timestamp','1341594BpZssH','length','stringify','keys','readLogs','Clear\x20command\x20history\x20logs','success','View\x20command\x20history\x20logs','error','154099fZvLmb','level','clearLogs','message','duration','read'];a99_0x40f7=function(){return _0x106f71;};return a99_0x40f7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1e3a47,_0x31d54a){const _0x2efcb1=a100_0x7c21,_0x5a0f1b=_0x1e3a47();while(!![]){try{const _0x317ef2=parseInt(_0x2efcb1(0x115))/0x1+parseInt(_0x2efcb1(0x116))/0x2+parseInt(_0x2efcb1(0x10e))/0x3*(parseInt(_0x2efcb1(0x110))/0x4)+parseInt(_0x2efcb1(0x114))/0x5+-parseInt(_0x2efcb1(0x10f))/0x6*(-parseInt(_0x2efcb1(0x113))/0x7)+parseInt(_0x2efcb1(0x111))/0x8+-parseInt(_0x2efcb1(0x112))/0x9;if(_0x317ef2===_0x31d54a)break;else _0x5a0f1b['push'](_0x5a0f1b['shift']());}catch(_0x15a0a3){_0x5a0f1b['push'](_0x5a0f1b['shift']());}}}(a100_0xda2a,0x2e0fd));import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a100_0x7c21(_0x51c84d,_0x16a69d){_0x51c84d=_0x51c84d-0x10e;const _0xda2ab2=a100_0xda2a();let _0x7c2100=_0xda2ab2[_0x51c84d];return _0x7c2100;}export const menuDefinitions=[menuList,menuSync,menuUpdate];function a100_0xda2a(){const _0x1dfa29=['343616qsxCYM','60946mqvLKD','9EADkNX','1014QtfyhV','485896qDGBCN','1784736bFGcSU','11206611cDCvUw','5173JcTDrw','1736770LYHTaL'];a100_0xda2a=function(){return _0x1dfa29;};return a100_0xda2a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101_0x55b803=a101_0x13ad;(function(_0x40f78b,_0x4b30c3){const _0x4b481d=a101_0x13ad,_0x4cc296=_0x40f78b();while(!![]){try{const _0x1b539c=parseInt(_0x4b481d(0x1f4))/0x1+parseInt(_0x4b481d(0x1f9))/0x2+parseInt(_0x4b481d(0x211))/0x3+-parseInt(_0x4b481d(0x212))/0x4+-parseInt(_0x4b481d(0x1fd))/0x5+parseInt(_0x4b481d(0x1ff))/0x6+-parseInt(_0x4b481d(0x215))/0x7;if(_0x1b539c===_0x4b30c3)break;else _0x4cc296['push'](_0x4cc296['shift']());}catch(_0x1f2ab5){_0x4cc296['push'](_0x4cc296['shift']());}}}(a101_0x5f1e,0xbf301));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getMenuTree}from'../../core/api-client.js';export const menuList={'service':a101_0x55b803(0x209),'command':a101_0x55b803(0x1f6),'description':a101_0x55b803(0x1fa),'risk':a101_0x55b803(0x20c),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'verbose','type':a101_0x55b803(0x20f),'description':a101_0x55b803(0x219)}],async 'execute'(_0x584a7d){const _0x1aa070=a101_0x55b803,_0x4eea3f=_0x584a7d[_0x1aa070(0x210)](_0x1aa070(0x208)),_0x4ae2a9=await getMenuTree(_0x584a7d[_0x1aa070(0x20d)],_0x584a7d[_0x1aa070(0x207)]),_0x181996=flattenMenuItems(Array[_0x1aa070(0x1f5)](_0x4ae2a9)?_0x4ae2a9:[],{'verbose':_0x4eea3f,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x181996[_0x1aa070(0x1fe)],'menus':_0x181996},'message':_0x181996[_0x1aa070(0x1fe)]===0x0?_0x1aa070(0x213):_0x1aa070(0x205)+_0x181996[_0x1aa070(0x1fe)]+_0x1aa070(0x1fc)};}};function flattenMenuItems(_0x3cde43,_0x3b71cf){const _0x150684=a101_0x55b803,_0x2d2b05=sortMenuItems(_0x3cde43),_0x2897eb=[];for(const _0x20a452 of _0x2d2b05){_0x2897eb['push'](toMenuListItem(_0x20a452,_0x3b71cf)),Array['isArray'](_0x20a452[_0x150684(0x1f7)])&&_0x20a452['children']['length']>0x0&&_0x2897eb['push'](...flattenMenuItems(_0x20a452[_0x150684(0x1f7)],{'verbose':_0x3b71cf[_0x150684(0x208)],'parentId':_0x20a452['id'],'depth':_0x3b71cf['depth']+0x1}));}return _0x2897eb;}function a101_0x13ad(_0x4d75e9,_0x4e8e51){_0x4d75e9=_0x4d75e9-0x1f4;const _0x5f1e15=a101_0x5f1e();let _0x13ade8=_0x5f1e15[_0x4d75e9];return _0x13ade8;}function sortMenuItems(_0x21cadd){const _0x18da88=a101_0x55b803;return _0x21cadd['map']((_0x226cb1,_0x21db49)=>({'item':_0x226cb1,'index':_0x21db49}))[_0x18da88(0x206)]((_0x2f5700,_0x1441a7)=>{const _0x35310c=_0x18da88,_0x3d3002=normalizeSort(_0x2f5700['item'][_0x35310c(0x206)]),_0x784daf=normalizeSort(_0x1441a7[_0x35310c(0x217)]['sort']);if(_0x3d3002!==_0x784daf)return _0x3d3002-_0x784daf;return _0x2f5700[_0x35310c(0x20e)]-_0x1441a7['index'];})['map'](({item:_0xb69876})=>_0xb69876);}function toMenuListItem(_0x8e85c2,_0x4ca140){const _0x559427=a101_0x55b803,_0x1d54a4={'id':_0x8e85c2['id'],'parentId':_0x4ca140[_0x559427(0x1f8)],'depth':_0x4ca140[_0x559427(0x203)],'label':normalizeString(_0x8e85c2[_0x559427(0x218)]),'path':normalizeString(_0x8e85c2[_0x559427(0x20b)]),'type':normalizeString(_0x8e85c2[_0x559427(0x214)]),'visible':typeof _0x8e85c2[_0x559427(0x216)]===_0x559427(0x20f)?_0x8e85c2[_0x559427(0x216)]:null,'sort':typeof _0x8e85c2[_0x559427(0x206)]===_0x559427(0x202)&&Number[_0x559427(0x1fb)](_0x8e85c2[_0x559427(0x206)])?_0x8e85c2['sort']:null,'resources':normalizeResources(_0x8e85c2['extend']?.[_0x559427(0x21a)])};return _0x4ca140[_0x559427(0x208)]&&(_0x1d54a4['extend']=_0x8e85c2[_0x559427(0x20a)]??null),_0x1d54a4;}function a101_0x5f1e(){const _0x35d8b5=['Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','resources','POSITIVE_INFINITY','1370676csCuPd','isArray','list','children','parentId','1646478MyYoQn','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','isFinite','\x20menu(s)','5969300xiqAkX','length','7024482ZpLhZl','map','parse','number','depth','string','Found\x20','sort','cookie','verbose','menu','extend','path','read','appCode','index','boolean','bool','218595OOeQmU','2931300aGGcnp','No\x20menus\x20found.','type','5094159PuxuaG','visible','item','label'];a101_0x5f1e=function(){return _0x35d8b5;};return a101_0x5f1e();}function normalizeSort(_0x6f832){const _0x4f10ff=a101_0x55b803;return typeof _0x6f832===_0x4f10ff(0x202)&&Number[_0x4f10ff(0x1fb)](_0x6f832)?_0x6f832:Number[_0x4f10ff(0x21b)];}function normalizeString(_0x591790){return typeof _0x591790==='string'?_0x591790:'';}function normalizeResources(_0x4fae38){const _0x4ad189=a101_0x55b803;if(Array[_0x4ad189(0x1f5)](_0x4fae38))return _0x4fae38['map'](String);if(typeof _0x4fae38!==_0x4ad189(0x204))return[];try{const _0x434868=JSON[_0x4ad189(0x201)](_0x4fae38);return Array['isArray'](_0x434868)?_0x434868[_0x4ad189(0x200)](String):[];}catch{return[];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xc47a12,_0x52b1ee){const _0x2a1dcb=a102_0x4782,_0x48423c=_0xc47a12();while(!![]){try{const _0x535dba=parseInt(_0x2a1dcb(0x208))/0x1*(-parseInt(_0x2a1dcb(0x1fb))/0x2)+parseInt(_0x2a1dcb(0x1f7))/0x3*(-parseInt(_0x2a1dcb(0x20b))/0x4)+parseInt(_0x2a1dcb(0x1f0))/0x5*(-parseInt(_0x2a1dcb(0x1f1))/0x6)+parseInt(_0x2a1dcb(0x1fc))/0x7+parseInt(_0x2a1dcb(0x1f9))/0x8+-parseInt(_0x2a1dcb(0x209))/0x9+-parseInt(_0x2a1dcb(0x1fe))/0xa*(-parseInt(_0x2a1dcb(0x20a))/0xb);if(_0x535dba===_0x52b1ee)break;else _0x48423c['push'](_0x48423c['shift']());}catch(_0x237b87){_0x48423c['push'](_0x48423c['shift']());}}}(a102_0xe068,0x8a417));function a102_0x4782(_0x4a3d75,_0x3c2fd4){_0x4a3d75=_0x4a3d75-0x1ef;const _0xe068be=a102_0xe068();let _0x47826c=_0xe068be[_0x4a3d75];return _0x47826c;}function strWidth(_0x54c608){let _0x155fe4=0x0;for(const _0x4504fc of _0x54c608){_0x155fe4+=/[\u4e00-\u9fa5]/['test'](_0x4504fc)?0x2:0x1;}return _0x155fe4;}function padRight(_0x2ecc40,_0x2ba26f){const _0xc7738=a102_0x4782,_0x5af5eb=strWidth(_0x2ecc40);return _0x2ecc40+'\x20'[_0xc7738(0x1ff)](Math[_0xc7738(0x207)](0x0,_0x2ba26f-_0x5af5eb));}function a102_0xe068(){const _0x49b778=['2vQjXOn','224679oTeXSY','path','20JcKCZw','repeat','(unchanged)','local','length','online','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','Platform','showOnline','max','618031anZbzE','2000106MNPdhB','11558503tccmes','100012DpBSVp','push','\x20\x20No\x20pages\x20to\x20sync.','5QnVDRu','6309858yjFqRu','Local','\x20\x20\x20\x20•\x20','map','join','\x20\x20\x20\x20JS:\x20\x20','21LgOLtc','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','3996648KYhQod','label'];a102_0xe068=function(){return _0x49b778;};return a102_0xe068();}export function renderCompareTable(_0x1a4ea5,_0x5ede43={}){const _0x2f2790=a102_0x4782;if(_0x1a4ea5[_0x2f2790(0x202)]===0x0)return'';const _0x2f9078=_0x5ede43[_0x2f2790(0x206)]??!![],_0x414f9e=Math[_0x2f2790(0x207)](0x1e,..._0x1a4ea5[_0x2f2790(0x1f4)](_0x2fac98=>strWidth(_0x2fac98[_0x2f2790(0x1fa)]))),_0x183e7a=0x4,_0x58ab2f=[],_0x5c1c0d='\x20\x20'+padRight('Menu\x20Name',_0x414f9e),_0x22d35e=padRight(_0x2f2790(0x1f2),_0x183e7a),_0x5e96bd=_0x2f9078?'\x20\x20'+padRight(_0x2f2790(0x205),_0x183e7a):'';_0x58ab2f['push'](_0x5c1c0d+'\x20\x20'+_0x22d35e+(_0x2f9078?_0x5e96bd:'')),_0x58ab2f[_0x2f2790(0x20c)]('\x20\x20'+'─'[_0x2f2790(0x1ff)](_0x414f9e)+'\x20\x20'+'─'[_0x2f2790(0x1ff)](_0x183e7a)+(_0x2f9078?'\x20\x20'+'─'['repeat'](_0x183e7a):''));for(const _0x4f85cc of _0x1a4ea5){const _0x4eeba3=padRight(_0x4f85cc[_0x2f2790(0x1fa)],_0x414f9e),_0x369879=_0x4f85cc[_0x2f2790(0x201)]?'✓':'✗',_0x234cfa=padRight(_0x369879,_0x183e7a);let _0x16675d='\x20\x20'+_0x4eeba3+'\x20\x20'+_0x234cfa;if(_0x2f9078){const _0x2affb6=_0x4f85cc[_0x2f2790(0x203)]?'✓':'✗';_0x16675d+='\x20\x20'+padRight(_0x2affb6,_0x183e7a);}_0x58ab2f['push'](_0x16675d);}return _0x58ab2f[_0x2f2790(0x1f5)]('\x0a');}export function renderSyncSummary(_0x172d00,_0x495b76){const _0x535d9b=a102_0x4782;if(_0x172d00[_0x535d9b(0x202)]===0x0)return _0x495b76?_0x535d9b(0x1f8):_0x535d9b(0x1ef);const _0x1180c0=['\x20\x20'+_0x172d00[_0x535d9b(0x202)]+_0x535d9b(0x204)];for(const _0x5402b8 of _0x172d00){_0x1180c0[_0x535d9b(0x20c)](_0x535d9b(0x1f3)+_0x5402b8[_0x535d9b(0x1fa)]+'\x20('+_0x5402b8[_0x535d9b(0x1fd)]+')');}return _0x1180c0[_0x535d9b(0x1f5)]('\x0a');}export function renderUpdateSummary(_0x2fb1b0,_0x12d8ba){const _0x44d4bd=a102_0x4782;if(_0x2fb1b0[_0x44d4bd(0x202)]===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x29cf7b=['\x20\x20'+_0x2fb1b0['length']+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x44d4bd(0x1f6)+(_0x12d8ba[0x0]??_0x44d4bd(0x200)),'\x20\x20\x20\x20CSS:\x20'+(_0x12d8ba[0x1]??_0x44d4bd(0x200)),'','\x20\x20Affected\x20menus:\x20'+_0x2fb1b0['join'](',\x20')];return _0x29cf7b['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a103_0xe26b(){var _0x4993be=['2PIakNl','465845oKinGR','20cOMXow','42129802aQFxhH','8420229QITrjM','7549916FuRXKf','1832080FOnFzu','72meojGQ','536888rkXSnx','966555nfzipi','133xaKvKs'];a103_0xe26b=function(){return _0x4993be;};return a103_0xe26b();}(function(_0x1992d6,_0x11bd69){var _0x2ffd5a=a103_0x4fc4,_0x25cf2c=_0x1992d6();while(!![]){try{var _0x235417=-parseInt(_0x2ffd5a(0x178))/0x1*(parseInt(_0x2ffd5a(0x172))/0x2)+parseInt(_0x2ffd5a(0x170))/0x3+-parseInt(_0x2ffd5a(0x177))/0x4+-parseInt(_0x2ffd5a(0x173))/0x5*(-parseInt(_0x2ffd5a(0x179))/0x6)+-parseInt(_0x2ffd5a(0x171))/0x7*(-parseInt(_0x2ffd5a(0x17a))/0x8)+parseInt(_0x2ffd5a(0x176))/0x9*(-parseInt(_0x2ffd5a(0x174))/0xa)+parseInt(_0x2ffd5a(0x175))/0xb;if(_0x235417===_0x11bd69)break;else _0x25cf2c['push'](_0x25cf2c['shift']());}catch(_0x6c671c){_0x25cf2c['push'](_0x25cf2c['shift']());}}}(a103_0xe26b,0xe90d7));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';function a103_0x4fc4(_0xeef2df,_0x31dca8){_0xeef2df=_0xeef2df-0x170;var _0xe26bd7=a103_0xe26b();var _0x4fc4fd=_0xe26bd7[_0xeef2df];return _0x4fc4fd;}export*from'../../../commands/menu/shared/local-pages.js';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 a104_0x4aa0(){const _0x5aca32=['\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','53935SmZdmY','1722114UANJzo','path','[already\x20on\x20platform]','146526ZucCuZ','5fcUAjc','error','83764QDSnNB','No\x20menus\x20selected.','JS\x20URL\x20check\x20failed','label','3997184jTSjrB','6119675Psrnvp','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','\x20\x20Checking\x20JS\x20URL\x20reachability...','8VFwngD','includes','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','ExitPromptError','\x20\x20CSS\x20URL:','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','stdin','name','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','[new]','Cancelled.','cancelled','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','succeed','No\x20local\x20pages\x20found.','map','fail','gray','1293792OAOWiC','green','trim','test','filter','JS\x20URL\x20checked','has','red','start'];a104_0x4aa0=function(){return _0x5aca32;};return a104_0x4aa0();}function a104_0x3860(_0x4cc9f8,_0x5aba36){_0x4cc9f8=_0x4cc9f8-0x6f;const _0x4aa02f=a104_0x4aa0();let _0x3860e4=_0x4aa02f[_0x4cc9f8];return _0x3860e4;}(function(_0x15c3ad,_0x4cb814){const _0x1df109=a104_0x3860,_0x23da2e=_0x15c3ad();while(!![]){try{const _0x50ede0=-parseInt(_0x1df109(0x75))/0x1*(parseInt(_0x1df109(0x77))/0x2)+parseInt(_0x1df109(0x91))/0x3+-parseInt(_0x1df109(0x7b))/0x4+parseInt(_0x1df109(0x7c))/0x5+parseInt(_0x1df109(0x74))/0x6+-parseInt(_0x1df109(0x70))/0x7+-parseInt(_0x1df109(0x7f))/0x8*(-parseInt(_0x1df109(0x71))/0x9);if(_0x50ede0===_0x4cb814)break;else _0x23da2e['push'](_0x23da2e['shift']());}catch(_0x591dc7){_0x23da2e['push'](_0x23da2e['shift']());}}}(a104_0x4aa0,0x9fcdb));import a104_0x14abd9 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a104_0x5a744d from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x5724c4){return _0x5724c4['catch'](_0x3b8774=>{const _0x332a1d=a104_0x3860;if(_0x3b8774?.[_0x332a1d(0x86)]===_0x332a1d(0x82))throw CliErrors[_0x332a1d(0x8a)](_0x332a1d(0x89));throw _0x3b8774;});}export function startSpinner(_0x283340){const _0x1990c4=a104_0x3860;return a104_0x5a744d({'text':_0x283340,'color':'cyan'})[_0x1990c4(0x99)]();}export function stopSpinner(_0x374365,_0x535be6,_0x997319){const _0x365b58=a104_0x3860;_0x997319?_0x374365[_0x365b58(0x8c)](_0x535be6):_0x374365[_0x365b58(0x8f)](_0x535be6);}export async function askConfirm(_0x34ac03){return onCancel(confirm({'message':_0x34ac03,'theme':{'prefix':''}}));}export async function askJsUrl(_0x5c0cc3){const _0x4ed909=a104_0x3860;while(!![]){const _0x52b7bd=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x5c0cc3,'theme':{'prefix':''}}));if(_0x52b7bd[_0x4ed909(0x93)]()==='')throw CliErrors['cancelled'](_0x4ed909(0x89));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x4ed909(0x94)](_0x52b7bd[_0x4ed909(0x93)]())){console[_0x4ed909(0x76)](a104_0x14abd9[_0x4ed909(0x98)](_0x4ed909(0x8b)));continue;}const _0x475ef1=startSpinner(_0x4ed909(0x7e));try{const _0x40e1f1=await isUrlReachable(_0x52b7bd[_0x4ed909(0x93)]());stopSpinner(_0x475ef1,_0x4ed909(0x96),_0x40e1f1);if(!_0x40e1f1){console['error'](a104_0x14abd9[_0x4ed909(0x98)](_0x4ed909(0x6f)));continue;}return _0x52b7bd[_0x4ed909(0x93)]();}catch(_0x1b5794){stopSpinner(_0x475ef1,_0x4ed909(0x79),![]);throw _0x1b5794;}}}export async function askCssUrl(_0x495c15){const _0x262c01=a104_0x3860;while(!![]){const _0x39e70d=await onCancel(input({'message':_0x262c01(0x83),'default':_0x495c15,'theme':{'prefix':''}}));if(_0x39e70d['trim']()==='')throw CliErrors['cancelled']('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x39e70d[_0x262c01(0x93)]())){console[_0x262c01(0x76)](a104_0x14abd9['red']('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x5eccc6=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x457584=await isUrlReachable(_0x39e70d['trim']());stopSpinner(_0x5eccc6,'CSS\x20URL\x20checked',_0x457584);if(!_0x457584){console[_0x262c01(0x76)](a104_0x14abd9[_0x262c01(0x98)](_0x262c01(0x84)));continue;}return _0x39e70d[_0x262c01(0x93)]();}catch(_0x2ae65b){stopSpinner(_0x5eccc6,'CSS\x20URL\x20check\x20failed',![]);throw _0x2ae65b;}}}export async function selectPages(_0x275e4c,_0xb75adc,_0x23d950){const _0xe8587=a104_0x3860,_0x6b26d6=_0x275e4c[_0xe8587(0x8e)](_0x48a058=>({'name':_0x48a058[_0xe8587(0x7a)]+'\x20\x20'+(_0xb75adc[_0xe8587(0x97)](_0x48a058[_0xe8587(0x72)])?a104_0x14abd9[_0xe8587(0x90)](_0xe8587(0x73)):a104_0x14abd9[_0xe8587(0x92)](_0xe8587(0x88))),'value':_0x48a058[_0xe8587(0x7a)],'checked':_0x23d950?_0x23d950[_0xe8587(0x80)](_0x48a058[_0xe8587(0x7a)]):!_0xb75adc[_0xe8587(0x97)](_0x48a058[_0xe8587(0x72)])}));if(_0x6b26d6['length']===0x0)throw new Error(_0xe8587(0x8d));const _0x1c477a=await onCancel(checkbox({'message':_0xe8587(0x87),'choices':_0x6b26d6,'loop':![],'theme':{'prefix':''}}));if(_0x1c477a['length']===0x0)throw new Error(_0xe8587(0x78));return _0x275e4c[_0xe8587(0x95)](_0x5479d0=>_0x1c477a[_0xe8587(0x80)](_0x5479d0['label']));}export function isInteractive(){const _0x7d6d06=a104_0x3860;return process[_0x7d6d06(0x85)]['isTTY']===!![];}export function requireInteractive(){const _0x3782bf=a104_0x3860;if(!isInteractive())throw new Error(_0x3782bf(0x7d)+_0x3782bf(0x81));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a105_0x52a8fc=a105_0x16cb;(function(_0x1d5778,_0x1bb445){const _0x545370=a105_0x16cb,_0x5b569f=_0x1d5778();while(!![]){try{const _0x20c7cb=-parseInt(_0x545370(0x111))/0x1*(parseInt(_0x545370(0x105))/0x2)+-parseInt(_0x545370(0x10c))/0x3+parseInt(_0x545370(0x102))/0x4+-parseInt(_0x545370(0x110))/0x5+-parseInt(_0x545370(0x10b))/0x6*(-parseInt(_0x545370(0x10a))/0x7)+-parseInt(_0x545370(0x10f))/0x8+parseInt(_0x545370(0xfe))/0x9;if(_0x20c7cb===_0x1bb445)break;else _0x5b569f['push'](_0x5b569f['shift']());}catch(_0x50bb7b){_0x5b569f['push'](_0x5b569f['shift']());}}}(a105_0x43c3,0xc22e1));function a105_0x16cb(_0x4af882,_0x2396e7){_0x4af882=_0x4af882-0xfe;const _0x43c3a4=a105_0x43c3();let _0x16cb06=_0x43c3a4[_0x4af882];return _0x16cb06;}import{readdirSync,statSync,readFileSync}from'fs';function a105_0x43c3(){const _0x1cd3de=['2152165EpwvyK','702179JghQSk','path','endsWith','replaceAll','28969758UfYylM','cwd','src/pages','split','4010716bXFPEt','slice','filter','4mwakoK','match','isDirectory','.tsx','trim','7kLoCml','7080954UUPATy','4356321blQTGB','replace','join','10555528YTjsCh'];a105_0x43c3=function(){return _0x1cd3de;};return a105_0x43c3();}import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a105_0x52a8fc(0xff)](),a105_0x52a8fc(0x100));export function extractTitleFromComment(_0x46c8cb){const _0x568ee2=a105_0x52a8fc;try{const _0x23dec7=readFileSync(_0x46c8cb,'utf-8'),_0x5d966f=_0x23dec7[_0x568ee2(0x106)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x5d966f&&_0x5d966f[0x1]){const _0x2250ef=_0x5d966f[0x1],_0x14d7ef=_0x2250ef[_0x568ee2(0x106)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x14d7ef&&_0x14d7ef[0x1])return _0x14d7ef[0x1][_0x568ee2(0x109)]();}let _0xab524f=null;const _0x6378ef=_0x23dec7[_0x568ee2(0x106)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x6378ef&&_0x6378ef[0x1]&&(_0xab524f=_0x6378ef[0x1]);if(!_0xab524f){const _0x2a372e=_0x23dec7['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x2a372e&&_0x2a372e[0x1]&&(_0xab524f=_0x2a372e[0x1]);}if(_0xab524f){const _0x482086=new RegExp('\x5cb'+_0xab524f+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x3ee835=_0x23dec7['match'](_0x482086);if(_0x3ee835&&_0x3ee835[0x1])return _0x3ee835[0x1];return _0xab524f;}return null;}catch(_0x6a60fe){return null;}}export function getLocalPages(_0x13d9a6=pagesDir,_0x15853d=pagesDir){const _0x51e402=a105_0x52a8fc;let _0x272553=[];const _0x324c3d=readdirSync(_0x13d9a6);return _0x324c3d['forEach'](_0x13da4f=>{const _0xdde658=a105_0x16cb,_0x59e56e=join(_0x13d9a6,_0x13da4f),_0x510aa7=statSync(_0x59e56e);if(_0x510aa7&&_0x510aa7[_0xdde658(0x107)]())_0x272553=_0x272553['concat'](getLocalPages(_0x59e56e,_0x15853d));else{if(_0x13da4f[_0xdde658(0x113)](_0xdde658(0x108))){let _0x615f19=relative(_0x15853d,_0x59e56e);_0x615f19[_0xdde658(0x113)]('index.tsx')?_0x615f19=_0x615f19[_0xdde658(0x10d)](/index\.tsx$/,''):_0x615f19=_0x615f19[_0xdde658(0x10d)](/\.tsx$/,'');_0x615f19[_0xdde658(0x113)](sep)&&(_0x615f19=_0x615f19[_0xdde658(0x103)](0x0,-0x1));const _0x3d481b=_0x615f19[_0xdde658(0x101)](sep)[_0xdde658(0x10e)]('/'),_0x5c6033=extractTitleFromComment(_0x59e56e),_0x380940=_0x5c6033||_0x3d481b;_0x272553['push']({'path':_0x3d481b[_0xdde658(0x114)]('$',':'),'label':_0x380940});}}}),_0x272553[_0x51e402(0x104)](_0x4f9715=>_0x4f9715[_0x51e402(0x112)]!=='');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x176c76,_0x545bfc){const _0x2b5064=a106_0x58d8,_0x5f5391=_0x176c76();while(!![]){try{const _0xe1ed57=parseInt(_0x2b5064(0x11d))/0x1*(parseInt(_0x2b5064(0x117))/0x2)+-parseInt(_0x2b5064(0x111))/0x3*(-parseInt(_0x2b5064(0x12a))/0x4)+parseInt(_0x2b5064(0x121))/0x5+-parseInt(_0x2b5064(0x123))/0x6+-parseInt(_0x2b5064(0x128))/0x7*(-parseInt(_0x2b5064(0x12e))/0x8)+-parseInt(_0x2b5064(0x12b))/0x9+parseInt(_0x2b5064(0x11f))/0xa;if(_0xe1ed57===_0x545bfc)break;else _0x5f5391['push'](_0x5f5391['shift']());}catch(_0x218f12){_0x5f5391['push'](_0x5f5391['shift']());}}}(a106_0x431c,0x4c3d7));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(_0xae7f79){const _0x4a6b18=a106_0x58d8,_0x270189=[];return!isValidJsHttpsUrl(_0xae7f79)&&_0x270189[_0x4a6b18(0x116)](_0x4a6b18(0x125)),{'ok':_0x270189[_0x4a6b18(0x11e)]===0x0,'errors':_0x270189};}export function validateCssUrl(_0x52daf2){const _0x3c8d82=a106_0x58d8,_0x522245=[];return!isValidCssHttpsUrl(_0x52daf2)&&_0x522245[_0x3c8d82(0x116)](_0x3c8d82(0x112)),{'ok':_0x522245['length']===0x0,'errors':_0x522245};}export async function validateJsUrlReachable(_0x4c87fe){const _0x4ea456=a106_0x58d8,_0x3b2119=validateJsUrl(_0x4c87fe);if(!_0x3b2119['ok'])return _0x3b2119;const _0x320a1c=await isUrlReachable(_0x4c87fe);if(!_0x320a1c)_0x3b2119[_0x4ea456(0x124)]['push'](_0x4ea456(0x12c));return{'ok':_0x3b2119[_0x4ea456(0x124)][_0x4ea456(0x11e)]===0x0,'errors':_0x3b2119[_0x4ea456(0x124)]};}export async function validateCssUrlReachable(_0xb3d88f){const _0x4d4fb4=a106_0x58d8,_0x20db3a=validateCssUrl(_0xb3d88f);if(!_0x20db3a['ok'])return _0x20db3a;const _0x15f215=await isUrlReachable(_0xb3d88f);if(!_0x15f215)_0x20db3a['errors']['push']('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x20db3a[_0x4d4fb4(0x124)]['length']===0x0,'errors':_0x20db3a['errors']};}export function buildCompareRows(_0x3bee0b,_0x262a6f){const _0xf6f489=a106_0x58d8;return _0x3bee0b[_0xf6f489(0x120)](_0x3f635f=>({'label':_0x3f635f['label'],'path':_0x3f635f['path'],'local':!![],'online':_0x262a6f['has'](_0x3f635f[_0xf6f489(0x118)])}));}export function filterNewPages(_0x289dcd,_0x57b09b,_0x40c269){const _0x134b75=a106_0x58d8;if(_0x40c269&&_0x40c269[_0x134b75(0x11e)]>0x0){const _0x1fae7c=new Set(_0x40c269[_0x134b75(0x120)](_0xec5151=>_0xec5151[_0x134b75(0x12d)]())),_0x399892=_0x289dcd[_0x134b75(0x113)](_0x2ed22b=>_0x1fae7c[_0x134b75(0x126)](_0x2ed22b[_0x134b75(0x114)]));if(_0x399892[_0x134b75(0x11e)]===0x0)throw new Error(_0x134b75(0x11c)+[..._0x1fae7c][_0x134b75(0x11a)](',\x20'));return _0x399892;}return _0x289dcd[_0x134b75(0x113)](_0x34731a=>!_0x57b09b[_0x134b75(0x126)](_0x34731a['path']));}export function filterPagesByLabels(_0x4c5520,_0x127f6c){const _0x4bc7be=a106_0x58d8,_0xb0ba56=[],_0x5ea542=[];for(const _0xa8ade4 of _0x127f6c){const _0x26fc3b=_0xa8ade4[_0x4bc7be(0x12d)](),_0x36026c=_0x4c5520['find'](_0x42b7f2=>_0x42b7f2[_0x4bc7be(0x114)]===_0x26fc3b);if(_0x36026c)_0xb0ba56['push'](_0x36026c);else _0x5ea542['push'](_0xa8ade4);}return{'matched':_0xb0ba56,'unmatched':_0x5ea542};}function a106_0x431c(){const _0x603246=['resources','2189873ypAoJo','fulfilled','1393244JRnAeC','3652263jxVjAd','JS\x20URL\x20is\x20unreachable','trim','8SjXocx','3adkAeC','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','filter','label','value','push','56778uLIuYX','path','allSettled','join','extend','No\x20local\x20pages\x20matched\x20labels:\x20','2lURLBf','length','4832600DFhwge','map','400465bgcNLX','rejected','3379170iJwBCb','errors','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','has'];a106_0x431c=function(){return _0x603246;};return a106_0x431c();}export async function doCreateMenus(_0x6c1bc1,_0x26b5d2,_0xe33c9,_0x5a51f4){const _0x16d3be=a106_0x58d8,_0x84136e=await createMenus(_0x6c1bc1,_0x26b5d2,_0xe33c9,_0x5a51f4);return{'created':_0x84136e[_0x16d3be(0x11e)],'failed':0x0,'labels':_0xe33c9[_0x16d3be(0x120)](_0x239c58=>_0x239c58[_0x16d3be(0x114)]),'menus':_0x84136e};}export function filterMenusWithResources(_0x4aec47){const _0x189021=a106_0x58d8;return _0x4aec47[_0x189021(0x113)](_0x2978d5=>_0x2978d5[_0x189021(0x127)][_0x189021(0x11e)]>0x0);}export async function doUpdateCdnUrls(_0x9848e5,_0x304fed,_0x546255,_0x4bb176){const _0x5dbc4e=a106_0x58d8,_0x175936=_0x546255['filter'](_0xd056ab=>_0xd056ab['resources']['length']>0x0),_0x107bac=await Promise[_0x5dbc4e(0x119)](_0x175936['map'](_0x4cd810=>updateMenuCdnUrl(_0x9848e5,_0x304fed,{'id':_0x4cd810['id'],'label':_0x4cd810[_0x5dbc4e(0x114)],'path':_0x4cd810['path'],'resources':_0x4bb176,'extend':_0x4cd810[_0x5dbc4e(0x11b)]??null}))),_0x5e7257=_0x107bac[_0x5dbc4e(0x113)](_0x7d0de3=>_0x7d0de3['status']===_0x5dbc4e(0x129))['map'](_0x2511f1=>_0x2511f1[_0x5dbc4e(0x115)]),_0x11ad20=_0x107bac['filter'](_0x9c7f06=>_0x9c7f06['status']===_0x5dbc4e(0x122))[_0x5dbc4e(0x11e)];return{'updated':_0x5e7257[_0x5dbc4e(0x11e)],'failed':_0x11ad20,'menus':_0x5e7257};}function a106_0x58d8(_0x3d2e7c,_0x52d724){_0x3d2e7c=_0x3d2e7c-0x111;const _0x431cc2=a106_0x431c();let _0x58d885=_0x431cc2[_0x3d2e7c];return _0x58d885;}export async function fetchMenuData(_0x29e7d3,_0x56bf39){const _0x1b2e7d=a106_0x58d8,_0x8e72ef=getLocalPages(),_0x18b3f9=await getOnlineMenuList(_0x29e7d3,_0x56bf39),_0x341e3b=new Set(_0x18b3f9[_0x1b2e7d(0x120)](_0x41b45b=>_0x41b45b[_0x1b2e7d(0x118)]));return{'localPages':_0x8e72ef,'onlineMenuList':_0x18b3f9,'onlinePaths':_0x341e3b};}export async function fetchOnlineMenuList(_0x422ea5,_0x2e2020){return getOnlineMenuList(_0x422ea5,_0x2e2020);}
|