@lovrabet/rabetbase-cli 2.3.7-beta.2 → 2.3.7-beta.3
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/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_0x2d7cf4=a92_0x26ca;(function(_0x3d4b8a,_0x395e8f){const _0x2f1266=a92_0x26ca,_0x31c0f5=_0x3d4b8a();while(!![]){try{const _0x4578d0=parseInt(_0x2f1266(0x184))/0x1*(parseInt(_0x2f1266(0x178))/0x2)+parseInt(_0x2f1266(0x169))/0x3+parseInt(_0x2f1266(0x1b6))/0x4*(-parseInt(_0x2f1266(0x1ac))/0x5)+-parseInt(_0x2f1266(0x19b))/0x6+-parseInt(_0x2f1266(0x166))/0x7+-parseInt(_0x2f1266(0x16e))/0x8*(parseInt(_0x2f1266(0x188))/0x9)+parseInt(_0x2f1266(0x1ae))/0xa*(parseInt(_0x2f1266(0x19e))/0xb);if(_0x4578d0===_0x395e8f)break;else _0x31c0f5['push'](_0x31c0f5['shift']());}catch(_0x1820a5){_0x31c0f5['push'](_0x31c0f5['shift']());}}}(a92_0x4f03,0xc0916));function a92_0x4f03(){const _0x40bd55=['\x20←\x20current','36YKLPBK','platform','(no\x20file)','explicitAppName','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','Global','8287804jNxYPJ','read','\x20\x20\x20\x20accessKey:\x20\x20','137001QJkwrF','slice','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','appcode','519016Vifdqm','✓\x20Valid\x20JSON','accessKey','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','✓\x20Valid','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','keys','(not\x20set)','length','852762MZQVLs','\x20\x20Config\x20JSON','locale','verbose','(none)','value','yellow','(set\x20via\x20file,\x20length=','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','(set,\x20length=','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','1ySVHKx','appCode','format','(not\x20found)','198cyBAOh','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','Project','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','padEnd','✗\x20Invalid\x20JSON','status','red','cookie','currentApp','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','empty','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','doctor','bold','version','missing','gray','6605688KzPioU','pageSize','source','2409682WfYVhn','apps','(default)','log','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','(missing)','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','message','\x20doctor','defaultApp','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','74030tuXrGb','\x20(default)','190rojnDS','(default:\x20','repeat','\x20\x20─','env','\x20\x20Auth','⚠\x20Empty\x20(treated\x20as\x20{})'];a92_0x4f03=function(){return _0x40bd55;};return a92_0x4f03();}import a92_0x1136ee from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x2847de){const _0x38a84c=a92_0x26ca,_0x53cbba=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x38a84c(0x16a)](0x0,0xa)+')':VERSION,_0x4174d4=buildConfigFromFlags({}),_0x123e40=getCookie();console[_0x38a84c(0x1a1)](),console[_0x38a84c(0x1a1)](a92_0x1136ee[_0x38a84c(0x197)](CLI_BIN_NAME+_0x38a84c(0x1a7))),console[_0x38a84c(0x1a1)](a92_0x1136ee['gray']('─'[_0x38a84c(0x1b0)](0x32))),console['log'](_0x38a84c(0x183)+_0x53cbba),console['log']('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x38a84c(0x198)]),console[_0x38a84c(0x1a1)](_0x38a84c(0x16b)+process[_0x38a84c(0x1b7)]+'\x20'+process['arch']),console['log'](),console[_0x38a84c(0x1a1)](a92_0x1136ee['bold']('\x20\x20Config\x20Files')),console[_0x38a84c(0x1a1)](a92_0x1136ee[_0x38a84c(0x19a)](_0x38a84c(0x1b1)[_0x38a84c(0x1b0)](0x1e)));const _0x54cd02=getGlobalConfigPath(),_0x2aea5f=getProjectConfigPath();console[_0x38a84c(0x1a1)](_0x38a84c(0x1ba)+(_0x54cd02||a92_0x1136ee[_0x38a84c(0x19a)](_0x38a84c(0x187)))),console['log'](_0x38a84c(0x193)+(_0x2aea5f||a92_0x1136ee[_0x38a84c(0x19a)](_0x38a84c(0x187)))),console[_0x38a84c(0x1a1)](),console['log'](a92_0x1136ee['bold'](_0x38a84c(0x179))),console[_0x38a84c(0x1a1)](a92_0x1136ee['gray']('\x20\x20─'[_0x38a84c(0x1b0)](0x1e)));const _0x2188cb=(_0x2d224d,_0x252706)=>{const _0x1dedfb=_0x38a84c;if(!_0x252706){console[_0x1dedfb(0x1a1)]('\x20\x20'+_0x2d224d['padEnd'](0x11)+'\x20'+a92_0x1136ee[_0x1dedfb(0x19a)](_0x1dedfb(0x1b8)));return;}const _0xfb7014=inspectCliConfigJsonFile(_0x252706);if(_0xfb7014['status']==='ok')console[_0x1dedfb(0x1a1)]('\x20\x20'+_0x2d224d['padEnd'](0x11)+'\x20'+a92_0x1136ee[_0x1dedfb(0x1a5)](_0x1dedfb(0x16f)));else{if(_0xfb7014[_0x1dedfb(0x18f)]===_0x1dedfb(0x194))console[_0x1dedfb(0x1a1)]('\x20\x20'+_0x2d224d[_0x1dedfb(0x18d)](0x11)+'\x20'+a92_0x1136ee[_0x1dedfb(0x17e)](_0x1dedfb(0x1b4)));else _0xfb7014['status']===_0x1dedfb(0x199)?console[_0x1dedfb(0x1a1)]('\x20\x20'+_0x2d224d[_0x1dedfb(0x18d)](0x11)+'\x20'+a92_0x1136ee[_0x1dedfb(0x19a)](_0x1dedfb(0x1a3))):(console[_0x1dedfb(0x1a1)]('\x20\x20'+_0x2d224d[_0x1dedfb(0x18d)](0x11)+'\x20'+a92_0x1136ee['red'](_0x1dedfb(0x18e))),console[_0x1dedfb(0x1a1)]('\x20\x20'+''[_0x1dedfb(0x18d)](0x11)+'\x20'+a92_0x1136ee[_0x1dedfb(0x190)](_0xfb7014[_0x1dedfb(0x1a6)])));}};_0x2188cb(_0x38a84c(0x165),_0x54cd02),_0x2188cb(_0x38a84c(0x18b),_0x2aea5f),console[_0x38a84c(0x1a1)](),console[_0x38a84c(0x1a1)](a92_0x1136ee['bold']('\x20\x20Merged\x20Config')),console[_0x38a84c(0x1a1)](a92_0x1136ee[_0x38a84c(0x19a)](_0x38a84c(0x1b1)[_0x38a84c(0x1b0)](0x1e))),console['log'](_0x38a84c(0x1a4)+(_0x4174d4[_0x38a84c(0x185)]||a92_0x1136ee[_0x38a84c(0x190)](_0x38a84c(0x176)))),console[_0x38a84c(0x1a1)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4174d4[_0x38a84c(0x1b2)]),console[_0x38a84c(0x1a1)](_0x38a84c(0x1a9)+_0x4174d4[_0x38a84c(0x17a)]),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4174d4['apiDir']),console['log'](_0x38a84c(0x174)+(_0x4174d4[_0x38a84c(0x1a8)]||a92_0x1136ee[_0x38a84c(0x19a)](_0x38a84c(0x17c)))),console[_0x38a84c(0x1a1)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x4174d4['currentApp']||a92_0x1136ee[_0x38a84c(0x19a)]('(none)'))),console[_0x38a84c(0x1a1)](_0x38a84c(0x181)+(_0x4174d4[_0x38a84c(0x1b9)]||a92_0x1136ee['gray'](_0x38a84c(0x17c)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4174d4[_0x38a84c(0x186)]||a92_0x1136ee[_0x38a84c(0x19a)](_0x38a84c(0x1af)+DEFAULT_CONFIG_VALUES[_0x38a84c(0x186)]+')'))),console['log'](_0x38a84c(0x18a)+(_0x4174d4[_0x38a84c(0x19c)]??a92_0x1136ee['gray'](_0x38a84c(0x1a0)))),console[_0x38a84c(0x1a1)](_0x38a84c(0x1bb)+_0x4174d4['riskLevel']),console[_0x38a84c(0x1a1)](_0x38a84c(0x189)+_0x4174d4[_0x38a84c(0x17b)]),console[_0x38a84c(0x1a1)](_0x38a84c(0x180)+(_0x4174d4[_0x38a84c(0x191)]?a92_0x1136ee[_0x38a84c(0x1a5)](_0x38a84c(0x182)+_0x4174d4[_0x38a84c(0x191)]['length']+')'):_0x123e40?a92_0x1136ee[_0x38a84c(0x1a5)](_0x38a84c(0x17f)+_0x123e40[_0x38a84c(0x177)]+')'):a92_0x1136ee['gray'](_0x38a84c(0x17c))));const _0x1a1dc2=Object[_0x38a84c(0x175)](_0x4174d4[_0x38a84c(0x19f)]);if(_0x1a1dc2[_0x38a84c(0x177)]>0x0){console[_0x38a84c(0x1a1)](),console[_0x38a84c(0x1a1)](a92_0x1136ee['bold']('\x20\x20Apps')),console['log'](a92_0x1136ee['gray'](_0x38a84c(0x1b1)['repeat'](0x1e)));for(const _0xb3733d of _0x1a1dc2){const _0x13d776=_0x4174d4[_0x38a84c(0x19f)][_0xb3733d],_0x1f7398=_0xb3733d===_0x4174d4['defaultApp'],_0x4a8dc5=_0xb3733d===_0x4174d4[_0x38a84c(0x192)],_0x17f46c=_0x4a8dc5?a92_0x1136ee[_0x38a84c(0x1a5)](_0x38a84c(0x1b5)):'',_0x1c91cb=_0x1f7398?_0x38a84c(0x1ad):'';console[_0x38a84c(0x1a1)]('\x20\x20'+_0xb3733d+_0x1c91cb+_0x17f46c),console[_0x38a84c(0x1a1)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x13d776[_0x38a84c(0x16d)]);const _0xb8f425=buildAppDoctorFields(_0x13d776,{'env':_0x4174d4[_0x38a84c(0x1b2)],'apiDir':_0x4174d4['raw'][_0x38a84c(0x172)]||DEFAULT_CONFIG_VALUES[_0x38a84c(0x172)],'cookie':_0x4174d4['cookie']||_0x123e40||undefined,'accessKey':_0x4174d4[_0x38a84c(0x170)]});console[_0x38a84c(0x1a1)](_0x38a84c(0x1ab)+_0xb8f425[_0x38a84c(0x1b2)][_0x38a84c(0x17d)]+'\x20\x20'+a92_0x1136ee[_0x38a84c(0x19a)]('('+_0xb8f425[_0x38a84c(0x1b2)][_0x38a84c(0x19d)]+')')),console['log'](_0x38a84c(0x1a2)+_0xb8f425[_0x38a84c(0x172)]['value']+'\x20\x20'+a92_0x1136ee[_0x38a84c(0x19a)]('('+_0xb8f425[_0x38a84c(0x172)]['source']+')'));const _0xd5cd58=_0xb8f425['cookie'][_0x38a84c(0x17d)]?a92_0x1136ee[_0x38a84c(0x1a5)](_0x38a84c(0x182)+_0xb8f425['cookie']['value'][_0x38a84c(0x177)]+')'):a92_0x1136ee[_0x38a84c(0x19a)](_0x38a84c(0x17c));console[_0x38a84c(0x1a1)](_0x38a84c(0x18c)+_0xd5cd58+'\x20\x20'+a92_0x1136ee[_0x38a84c(0x19a)]('('+_0xb8f425[_0x38a84c(0x191)][_0x38a84c(0x19d)]+')'));const _0x437315=_0xb8f425[_0x38a84c(0x170)][_0x38a84c(0x17d)]?a92_0x1136ee[_0x38a84c(0x1a5)]('(set,\x20length='+_0xb8f425[_0x38a84c(0x170)][_0x38a84c(0x17d)][_0x38a84c(0x177)]+')'):a92_0x1136ee['gray'](_0x38a84c(0x17c));console[_0x38a84c(0x1a1)](_0x38a84c(0x168)+_0x437315+'\x20\x20'+a92_0x1136ee[_0x38a84c(0x19a)]('('+_0xb8f425[_0x38a84c(0x170)][_0x38a84c(0x19d)]+')'));}}console[_0x38a84c(0x1a1)](),console[_0x38a84c(0x1a1)](a92_0x1136ee[_0x38a84c(0x197)](_0x38a84c(0x16c))),console[_0x38a84c(0x1a1)](a92_0x1136ee[_0x38a84c(0x19a)]('\x20\x20─'[_0x38a84c(0x1b0)](0x1e))),console[_0x38a84c(0x1a1)](_0x38a84c(0x195)+getApiDomain()),console[_0x38a84c(0x1a1)](_0x38a84c(0x1aa)+getUserDomain()),console[_0x38a84c(0x1a1)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x38a84c(0x1a1)](),console[_0x38a84c(0x1a1)](a92_0x1136ee['bold'](_0x38a84c(0x1b3))),console[_0x38a84c(0x1a1)](a92_0x1136ee[_0x38a84c(0x19a)](_0x38a84c(0x1b1)[_0x38a84c(0x1b0)](0x1e)));if(_0x123e40){const _0x5f39b6=await getIsSessionValid();console[_0x38a84c(0x1a1)](_0x38a84c(0x171)+(_0x5f39b6?a92_0x1136ee[_0x38a84c(0x1a5)](_0x38a84c(0x173)):a92_0x1136ee['red']('✗\x20Expired')));}else console[_0x38a84c(0x1a1)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a92_0x1136ee[_0x38a84c(0x190)]('✗\x20Not\x20logged\x20in'));return console['log'](),{'ok':!![]};}function a92_0x26ca(_0x2f4a7f,_0x340580){_0x2f4a7f=_0x2f4a7f-0x165;const _0x4f0339=a92_0x4f03();let _0x26cade=_0x4f0339[_0x2f4a7f];return _0x26cade;}export const doctorDefinition={'service':a92_0x2d7cf4(0x196),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a92_0x2d7cf4(0x167),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a92_0x4ed710=a92_0x1abf;(function(_0x28665e,_0x2555c2){const _0x27fd30=a92_0x1abf,_0x2f6103=_0x28665e();while(!![]){try{const _0x33390d=parseInt(_0x27fd30(0x1c4))/0x1+parseInt(_0x27fd30(0x199))/0x2+parseInt(_0x27fd30(0x1d6))/0x3*(parseInt(_0x27fd30(0x1d0))/0x4)+parseInt(_0x27fd30(0x1da))/0x5*(-parseInt(_0x27fd30(0x19c))/0x6)+parseInt(_0x27fd30(0x1c9))/0x7+parseInt(_0x27fd30(0x1ad))/0x8*(-parseInt(_0x27fd30(0x1d1))/0x9)+-parseInt(_0x27fd30(0x1a6))/0xa;if(_0x33390d===_0x2555c2)break;else _0x2f6103['push'](_0x2f6103['shift']());}catch(_0x38a4d2){_0x2f6103['push'](_0x2f6103['shift']());}}}(a92_0x1162,0xd9efa));import a92_0x435e3f from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a92_0x1abf(_0x486859,_0x47c07a){_0x486859=_0x486859-0x182;const _0x1162a0=a92_0x1162();let _0x1abffa=_0x1162a0[_0x486859];return _0x1abffa;}import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x3bfef3){const _0x5cdac3=a92_0x1abf,_0x16d440=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x5cdac3(0x1b5)](0x0,0xa)+')':VERSION,_0x4a9a1c=buildConfigFromFlags({}),_0xd80e95=getCookie();console[_0x5cdac3(0x1a9)](),console[_0x5cdac3(0x1a9)](a92_0x435e3f[_0x5cdac3(0x1b8)](CLI_BIN_NAME+_0x5cdac3(0x1ca))),console[_0x5cdac3(0x1a9)](a92_0x435e3f[_0x5cdac3(0x197)]('─'[_0x5cdac3(0x188)](0x32))),console['log'](_0x5cdac3(0x1b9)+_0x16d440),console[_0x5cdac3(0x1a9)](_0x5cdac3(0x1c1)+process[_0x5cdac3(0x18f)]),console[_0x5cdac3(0x1a9)](_0x5cdac3(0x1c8)+process[_0x5cdac3(0x1b3)]+'\x20'+process[_0x5cdac3(0x1ac)]),console[_0x5cdac3(0x1a9)](),console[_0x5cdac3(0x1a9)](a92_0x435e3f[_0x5cdac3(0x1b8)](_0x5cdac3(0x18d))),console['log'](a92_0x435e3f[_0x5cdac3(0x197)](_0x5cdac3(0x190)[_0x5cdac3(0x188)](0x1e)));const _0x1b5dd0=getGlobalConfigPath(),_0x1469c7=getProjectConfigPath();console[_0x5cdac3(0x1a9)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1b5dd0||a92_0x435e3f[_0x5cdac3(0x197)](_0x5cdac3(0x1cc)))),console[_0x5cdac3(0x1a9)](_0x5cdac3(0x1a5)+(_0x1469c7||a92_0x435e3f[_0x5cdac3(0x197)](_0x5cdac3(0x1cc)))),console['log'](),console[_0x5cdac3(0x1a9)](a92_0x435e3f[_0x5cdac3(0x1b8)](_0x5cdac3(0x1d8))),console['log'](a92_0x435e3f[_0x5cdac3(0x197)](_0x5cdac3(0x190)[_0x5cdac3(0x188)](0x1e)));const _0x4cf12d=(_0xdf67cd,_0x5caeb6)=>{const _0x41244d=_0x5cdac3;if(!_0x5caeb6){console['log']('\x20\x20'+_0xdf67cd[_0x41244d(0x1ce)](0x11)+'\x20'+a92_0x435e3f[_0x41244d(0x197)](_0x41244d(0x1dd)));return;}const _0x13b50c=inspectCliConfigJsonFile(_0x5caeb6);if(_0x13b50c[_0x41244d(0x191)]==='ok')console[_0x41244d(0x1a9)]('\x20\x20'+_0xdf67cd[_0x41244d(0x1ce)](0x11)+'\x20'+a92_0x435e3f[_0x41244d(0x1ab)](_0x41244d(0x1a1)));else{if(_0x13b50c['status']===_0x41244d(0x1d2))console['log']('\x20\x20'+_0xdf67cd['padEnd'](0x11)+'\x20'+a92_0x435e3f[_0x41244d(0x1c3)](_0x41244d(0x1bf)));else _0x13b50c[_0x41244d(0x191)]===_0x41244d(0x184)?console['log']('\x20\x20'+_0xdf67cd[_0x41244d(0x1ce)](0x11)+'\x20'+a92_0x435e3f[_0x41244d(0x197)](_0x41244d(0x186))):(console['log']('\x20\x20'+_0xdf67cd[_0x41244d(0x1ce)](0x11)+'\x20'+a92_0x435e3f['red'](_0x41244d(0x1cf))),console['log']('\x20\x20'+''[_0x41244d(0x1ce)](0x11)+'\x20'+a92_0x435e3f['red'](_0x13b50c[_0x41244d(0x1d9)])));}};_0x4cf12d(_0x5cdac3(0x196),_0x1b5dd0),_0x4cf12d(_0x5cdac3(0x19d),_0x1469c7),console['log'](),console[_0x5cdac3(0x1a9)](a92_0x435e3f[_0x5cdac3(0x1b8)](_0x5cdac3(0x194))),console[_0x5cdac3(0x1a9)](a92_0x435e3f[_0x5cdac3(0x197)](_0x5cdac3(0x190)[_0x5cdac3(0x188)](0x1e))),console[_0x5cdac3(0x1a9)](_0x5cdac3(0x1bc)+(_0x4a9a1c[_0x5cdac3(0x1d7)]||a92_0x435e3f[_0x5cdac3(0x1db)](_0x5cdac3(0x189)))),console['log'](_0x5cdac3(0x1a3)+_0x4a9a1c['env']),console[_0x5cdac3(0x1a9)](_0x5cdac3(0x1aa)+_0x4a9a1c['locale']),console[_0x5cdac3(0x1a9)](_0x5cdac3(0x18e)+_0x4a9a1c[_0x5cdac3(0x1d4)]),console['log'](_0x5cdac3(0x1b4)+(_0x4a9a1c[_0x5cdac3(0x1ba)]||a92_0x435e3f[_0x5cdac3(0x197)](_0x5cdac3(0x1a8)))),console['log'](_0x5cdac3(0x19e)+(_0x4a9a1c['currentApp']||a92_0x435e3f['gray'](_0x5cdac3(0x1a8)))),console[_0x5cdac3(0x1a9)](_0x5cdac3(0x1b6)+(_0x4a9a1c[_0x5cdac3(0x1b2)]||a92_0x435e3f[_0x5cdac3(0x197)](_0x5cdac3(0x1a8)))),console[_0x5cdac3(0x1a9)](_0x5cdac3(0x1b0)+(_0x4a9a1c[_0x5cdac3(0x19b)]||a92_0x435e3f[_0x5cdac3(0x197)](_0x5cdac3(0x1c2)+DEFAULT_CONFIG_VALUES[_0x5cdac3(0x19b)]+')'))),console[_0x5cdac3(0x1a9)](_0x5cdac3(0x1c6)+(_0x4a9a1c['pageSize']??a92_0x435e3f['gray'](_0x5cdac3(0x19a)))),console[_0x5cdac3(0x1a9)](_0x5cdac3(0x1a0)+_0x4a9a1c[_0x5cdac3(0x1cb)]),console[_0x5cdac3(0x1a9)](_0x5cdac3(0x195)+_0x4a9a1c[_0x5cdac3(0x187)]),console[_0x5cdac3(0x1a9)](_0x5cdac3(0x18a)+(_0x4a9a1c[_0x5cdac3(0x18c)]?a92_0x435e3f[_0x5cdac3(0x1ab)](_0x5cdac3(0x1a7)+_0x4a9a1c[_0x5cdac3(0x18c)]['length']+')'):_0xd80e95?a92_0x435e3f[_0x5cdac3(0x1ab)]('(set\x20via\x20file,\x20length='+_0xd80e95[_0x5cdac3(0x1cd)]+')'):a92_0x435e3f[_0x5cdac3(0x197)](_0x5cdac3(0x1a8))));const _0x1c12e3=Object[_0x5cdac3(0x183)](_0x4a9a1c[_0x5cdac3(0x1bb)]);if(_0x1c12e3[_0x5cdac3(0x1cd)]>0x0){console[_0x5cdac3(0x1a9)](),console[_0x5cdac3(0x1a9)](a92_0x435e3f['bold'](_0x5cdac3(0x1c7))),console[_0x5cdac3(0x1a9)](a92_0x435e3f[_0x5cdac3(0x197)]('\x20\x20─'[_0x5cdac3(0x188)](0x1e)));for(const _0x4c11eb of _0x1c12e3){const _0x254398=_0x4a9a1c[_0x5cdac3(0x1bb)][_0x4c11eb],_0x4c6fa5=_0x4c11eb===_0x4a9a1c[_0x5cdac3(0x1ba)],_0x1516a2=_0x4c11eb===_0x4a9a1c[_0x5cdac3(0x1b1)],_0x731374=_0x1516a2?a92_0x435e3f[_0x5cdac3(0x1ab)](_0x5cdac3(0x198)):'',_0x44871d=_0x4c6fa5?'\x20(default)':'';console['log']('\x20\x20'+_0x4c11eb+_0x44871d+_0x731374),console[_0x5cdac3(0x1a9)](_0x5cdac3(0x1a4)+_0x254398['appcode']);const _0x3ccdf6=buildAppDoctorFields(_0x254398,{'env':_0x4a9a1c['env'],'apiDir':_0x4a9a1c['raw']['apiDir']||DEFAULT_CONFIG_VALUES[_0x5cdac3(0x1d4)],'cookie':_0x4a9a1c[_0x5cdac3(0x18c)]||_0xd80e95||undefined,'accessKey':_0x4a9a1c[_0x5cdac3(0x193)]});console['log'](_0x5cdac3(0x182)+_0x3ccdf6[_0x5cdac3(0x1c5)][_0x5cdac3(0x1a2)]+'\x20\x20'+a92_0x435e3f['gray']('('+_0x3ccdf6[_0x5cdac3(0x1c5)][_0x5cdac3(0x1bd)]+')')),console[_0x5cdac3(0x1a9)](_0x5cdac3(0x1c0)+_0x3ccdf6[_0x5cdac3(0x1d4)][_0x5cdac3(0x1a2)]+'\x20\x20'+a92_0x435e3f['gray']('('+_0x3ccdf6[_0x5cdac3(0x1d4)][_0x5cdac3(0x1bd)]+')'));const _0xaabb2f=_0x3ccdf6['cookie'][_0x5cdac3(0x1a2)]?a92_0x435e3f['green'](_0x5cdac3(0x1a7)+_0x3ccdf6['cookie']['value']['length']+')'):a92_0x435e3f[_0x5cdac3(0x197)]('(none)');console[_0x5cdac3(0x1a9)](_0x5cdac3(0x1d5)+_0xaabb2f+'\x20\x20'+a92_0x435e3f['gray']('('+_0x3ccdf6[_0x5cdac3(0x18c)][_0x5cdac3(0x1bd)]+')'));const _0x5a4981=_0x3ccdf6[_0x5cdac3(0x193)][_0x5cdac3(0x1a2)]?a92_0x435e3f[_0x5cdac3(0x1ab)](_0x5cdac3(0x1a7)+_0x3ccdf6[_0x5cdac3(0x193)][_0x5cdac3(0x1a2)][_0x5cdac3(0x1cd)]+')'):a92_0x435e3f[_0x5cdac3(0x197)](_0x5cdac3(0x1a8));console[_0x5cdac3(0x1a9)](_0x5cdac3(0x19f)+_0x5a4981+'\x20\x20'+a92_0x435e3f[_0x5cdac3(0x197)]('('+_0x3ccdf6['accessKey'][_0x5cdac3(0x1bd)]+')'));}}console[_0x5cdac3(0x1a9)](),console['log'](a92_0x435e3f[_0x5cdac3(0x1b8)]('\x20\x20API\x20Endpoints')),console[_0x5cdac3(0x1a9)](a92_0x435e3f[_0x5cdac3(0x197)](_0x5cdac3(0x190)['repeat'](0x1e))),console['log'](_0x5cdac3(0x1dc)+getApiDomain()),console[_0x5cdac3(0x1a9)](_0x5cdac3(0x185)+getUserDomain()),console[_0x5cdac3(0x1a9)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x5cdac3(0x1a9)](),console['log'](a92_0x435e3f[_0x5cdac3(0x1b8)](_0x5cdac3(0x1d3))),console[_0x5cdac3(0x1a9)](a92_0x435e3f[_0x5cdac3(0x197)]('\x20\x20─'[_0x5cdac3(0x188)](0x1e)));if(_0xd80e95){const _0x100172=await getIsSessionValid();console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x100172?a92_0x435e3f[_0x5cdac3(0x1ab)](_0x5cdac3(0x18b)):a92_0x435e3f[_0x5cdac3(0x1db)](_0x5cdac3(0x1ae))));}else console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a92_0x435e3f[_0x5cdac3(0x1db)](_0x5cdac3(0x1b7)));return console[_0x5cdac3(0x1a9)](),{'ok':!![]};}export const doctorDefinition={'service':a92_0x4ed710(0x1be),'command':a92_0x4ed710(0x1af),'description':a92_0x4ed710(0x192),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a92_0x1162(){const _0x165a9b=['apps','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','doctor','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','yellow','12536rGsNjm','env','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Apps','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','5547794uWsBrx','\x20doctor','riskLevel','(not\x20found)','length','padEnd','✗\x20Invalid\x20JSON','2516SDqlDU','9vzpsSf','empty','\x20\x20Auth','apiDir','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','6339YoRGmv','appCode','\x20\x20Config\x20JSON','message','2284795bJWUbg','red','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','keys','missing','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(missing)','verbose','repeat','(not\x20set)','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','cookie','\x20\x20Config\x20Files','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','\x20\x20─','status','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','accessKey','\x20\x20Merged\x20Config','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','Global','gray','\x20←\x20current','3553452ULPCRp','(default)','format','6rLIoOa','Project','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','value','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','9348590qpowNR','(set,\x20length=','(none)','log','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','arch','13011176fOpIHh','✗\x20Expired','check','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','explicitAppName','platform','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','slice','\x20\x20explicitAppName:\x20','✗\x20Not\x20logged\x20in','bold','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','defaultApp'];a92_0x1162=function(){return _0x165a9b;};return a92_0x1162();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a93_0x54d7(_0x196e63,_0x20dd73){_0x196e63=_0x196e63-0x1ab;const _0x2d33e8=a93_0x2d33();let _0x54d77f=_0x2d33e8[_0x196e63];return _0x54d77f;}const a93_0x3bbcd4=a93_0x54d7;(function(_0x10f484,_0x5f183b){const _0x695d56=a93_0x54d7,_0x41dfc0=_0x10f484();while(!![]){try{const _0x717cb5=-parseInt(_0x695d56(0x1d0))/0x1+-parseInt(_0x695d56(0x1b8))/0x2+-parseInt(_0x695d56(0x1ba))/0x3*(parseInt(_0x695d56(0x1c0))/0x4)+parseInt(_0x695d56(0x1cb))/0x5+parseInt(_0x695d56(0x1c7))/0x6*(parseInt(_0x695d56(0x1c5))/0x7)+-parseInt(_0x695d56(0x1bb))/0x8*(-parseInt(_0x695d56(0x1af))/0x9)+parseInt(_0x695d56(0x1b3))/0xa;if(_0x717cb5===_0x5f183b)break;else _0x41dfc0['push'](_0x41dfc0['shift']());}catch(_0x39c7a3){_0x41dfc0['push'](_0x41dfc0['shift']());}}}(a93_0x2d33,0xf16cf));function a93_0x2d33(){const _0x482eba=['Preview:\x20upload\x20','POST','1895874brEdUa','Uploaded\x20file.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','long-term','file','path','2133bZEvZB','filePath','boolean','trim','21313970KLHvoQ','download','Uploaded\x20file:\x20','Upload\x20a\x20local\x20file\x20and\x20return\x20filePath\x20for\x20durable\x20references','Return\x20a\x20short-lived\x20download\x20URL\x20instead\x20of\x20a\x20short-lived\x20preview\x20URL','3052354HREdPV','query-url','4656xjnxcQ','1448PMqqNu','.\x20Store\x20filePath\x20for\x20durable\x20references;\x20use\x20file\x20query-url\x20for\x20short-lived\x20access.','string','appCode','str','3648TGfDjm','validation','Return\x20a\x203-year\x20URL\x20for\x20URL-only\x20content\x20embedding\x20such\x20as\x20rich\x20text,\x20Markdown,\x20or\x20HTML','Path\x20to\x20the\x20local\x20file\x20to\x20upload','read','14ASXeLB','filepath','5155008MXtfYb','filePath\x20is\x20required.','bool','Query\x20a\x20short-lived\x20URL\x20for\x20preview,\x20download,\x20or\x20immediate\x20access','9668620jPgIKC','File','/smartapi/common/uploadFile'];a93_0x2d33=function(){return _0x482eba;};return a93_0x2d33();}import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,uploadDevelopmentFile}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';const FILE_FLAG={'name':a93_0x3bbcd4(0x1ad),'type':a93_0x3bbcd4(0x1bd),'required':!![],'description':a93_0x3bbcd4(0x1c3)},FILEPATH_FLAG={'name':a93_0x3bbcd4(0x1c6),'type':a93_0x3bbcd4(0x1bd),'required':!![],'description':'Development\x20filePath\x20returned\x20by\x20file\x20upload;\x20store\x20it\x20in\x20file\x20fields\x20and\x20durable\x20data'},DOWNLOAD_FLAG={'name':a93_0x3bbcd4(0x1b4),'type':a93_0x3bbcd4(0x1b1),'description':a93_0x3bbcd4(0x1b7)},LONG_TERM_FLAG={'name':a93_0x3bbcd4(0x1ac),'type':'boolean','description':a93_0x3bbcd4(0x1c2)};function requireFilePath(_0x324fca){const _0x526591=a93_0x3bbcd4,_0x10792=_0x324fca[_0x526591(0x1b2)]();if(!_0x10792)throw CliErrors[_0x526591(0x1c1)](_0x526591(0x1c8));return _0x10792;}const fileUpload={'service':a93_0x3bbcd4(0x1ad),'command':'upload','description':a93_0x3bbcd4(0x1b6),'risk':'write','flags':[FILE_FLAG],async 'dryRun'(_0x5a815c){const _0xee75a1=a93_0x3bbcd4,_0x259a68=requireDevelopmentUploadFile(_0x5a815c['str'](_0xee75a1(0x1ad)),_0xee75a1(0x1cc));return{'method':_0xee75a1(0x1cf),'url':_0xee75a1(0x1cd),'body':{'appCode':_0x5a815c[_0xee75a1(0x1be)],'multipart':{'file':_0x259a68}},'description':_0xee75a1(0x1ce)+_0x259a68['path']+'\x20to\x20development\x20app\x20'+_0x5a815c[_0xee75a1(0x1be)]};},async 'execute'(_0x4c2bb3){const _0x51f314=a93_0x3bbcd4,_0x4b6ada=requireDevelopmentUploadFile(_0x4c2bb3['str'](_0x51f314(0x1ad)),'File'),_0xe23dd5=await uploadDevelopmentFile(_0x4c2bb3['appCode'],_0x4b6ada[_0x51f314(0x1ae)]);return{'ok':!![],'data':_0xe23dd5,'message':_0xe23dd5['filePath']?_0x51f314(0x1b5)+_0xe23dd5[_0x51f314(0x1b0)]+_0x51f314(0x1bc):_0x51f314(0x1ab)};}},fileQueryUrl={'service':a93_0x3bbcd4(0x1ad),'command':a93_0x3bbcd4(0x1b9),'description':a93_0x3bbcd4(0x1ca),'risk':a93_0x3bbcd4(0x1c4),'flags':[FILEPATH_FLAG,DOWNLOAD_FLAG,LONG_TERM_FLAG],async 'execute'(_0x17f06a){const _0x44f28b=a93_0x3bbcd4,_0x3d94ea=requireFilePath(_0x17f06a[_0x44f28b(0x1bf)](_0x44f28b(0x1c6))),_0x47f06a=await queryDevelopmentFileUrl(_0x3d94ea,{'download':_0x17f06a[_0x44f28b(0x1c9)](_0x44f28b(0x1b4)),'longTerm':_0x17f06a[_0x44f28b(0x1c9)](_0x44f28b(0x1ac))});return{'ok':!![],'data':_0x47f06a};}};export const fileDefinitions=[fileUpload,fileQueryUrl];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x2d8496=a94_0x30e6;function a94_0x30e6(_0x7d0d96,_0x127c82){_0x7d0d96=_0x7d0d96-0x1b5;const _0xe97456=a94_0xe974();let _0x30e67a=_0xe97456[_0x7d0d96];return _0x30e67a;}(function(_0x151f87,_0x3f0d63){const _0x1af757=a94_0x30e6,_0x4c3961=_0x151f87();while(!![]){try{const _0x1ef9b1=-parseInt(_0x1af757(0x1c9))/0x1+parseInt(_0x1af757(0x1e6))/0x2*(-parseInt(_0x1af757(0x1ea))/0x3)+parseInt(_0x1af757(0x1d8))/0x4*(parseInt(_0x1af757(0x1ce))/0x5)+parseInt(_0x1af757(0x1b6))/0x6+parseInt(_0x1af757(0x1bb))/0x7+-parseInt(_0x1af757(0x1e5))/0x8*(parseInt(_0x1af757(0x1c4))/0x9)+parseInt(_0x1af757(0x1e3))/0xa*(parseInt(_0x1af757(0x1be))/0xb);if(_0x1ef9b1===_0x3f0d63)break;else _0x4c3961['push'](_0x4c3961['shift']());}catch(_0x496c25){_0x4c3961['push'](_0x4c3961['shift']());}}}(a94_0xe974,0xd4e4e));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a94_0xe974(){const _0xb196ec=['1736286uvgWZJ','valid','join','project','\x20\x20Config:\x20','588355trsYkZ','flagMissing','production','bool','validation','App\x20code\x20to\x20initialize\x20with','run','\x0a✓\x20Successfully\x20initialized\x20','\x20\x20Default:\x20','init','24QWYuSj','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','str','\x20\x20Apps:\x20','string','defaultApp','env','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','cwd','toLocaleString','boolean','445480UmOGPJ','Auto-confirm\x20prompts','8JLtSDk','43030TbzKJb','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','some','map','9mnKZSr','检测到旧配置文件,正在自动升级...\x0a','10417500oKRQHB','Write\x20to\x20global\x20config\x20instead\x20of\x20project','appCode','global','Usage:\x20','2618896wRezKl','appcode','nonInteractive','11hVcSEL','yes','log','Target\x20environment','custom','Use\x20`','1692963kdLWZD','\x20\x20Env:\x20','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','write','message'];a94_0xe974=function(){return _0xb196ec;};return a94_0xe974();}function syntheticApp(_0x201262){return{'appCode':_0x201262,'appName':_0x201262};}function writeInitConfig(_0x288ee1,_0xb3a6fd,_0x3cbae8){const _0x38cd7c=a94_0x30e6,_0x421024=resolveWriteConfigPath(_0x288ee1),_0x411303=buildCanonicalProjectConfig({},{'appCodes':_0xb3a6fd[_0x38cd7c(0x1e9)](_0x4464a8=>_0x4464a8['appCode']),'env':_0x3cbae8,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x38cd7c(0x1e1)]()}});writeConfigFile(_0x421024,_0x411303);const _0xb671ed=_0x288ee1===_0x38cd7c(0x1b9)?'global':_0x38cd7c(0x1cc);console[_0x38cd7c(0x1c0)](_0x38cd7c(0x1d5)+_0xb671ed+'\x20config'),console['log'](_0x38cd7c(0x1db)+_0xb3a6fd[_0x38cd7c(0x1e9)](_0x49f649=>_0x49f649[_0x38cd7c(0x1b8)])[_0x38cd7c(0x1cb)](',\x20')),console[_0x38cd7c(0x1c0)](_0x38cd7c(0x1d6)+_0x411303[_0x38cd7c(0x1dd)]),console['log'](_0x38cd7c(0x1c5)+_0x411303[_0x38cd7c(0x1de)]),console[_0x38cd7c(0x1c0)](_0x38cd7c(0x1cd)+_0x421024);}async function runSmartInit(_0x4a5b0c){const _0x160b6f=a94_0x30e6,_0x4dc03e=process[_0x160b6f(0x1e0)](),_0x6859a=_0x4a5b0c[_0x160b6f(0x1d1)](_0x160b6f(0x1b9))?'global':'project',_0x193b2d=_0x4a5b0c['str'](_0x160b6f(0x1de))||_0x160b6f(0x1d0),_0x2b3db7=_0x4a5b0c[_0x160b6f(0x1da)]('appcode')||undefined,_0x5d19f1=_0x4a5b0c['bool'](_0x160b6f(0x1cc));if(_0x5d19f1){const {initConfig:_0x31a9f5}=await import('../../commands/project/init.js');return _0x31a9f5({'appcode':_0x2b3db7,'env':_0x193b2d,'autoYes':_0x4a5b0c[_0x160b6f(0x1d1)](_0x160b6f(0x1bf))});}if(_0x6859a==='project'){const _0xcac057=existsSync(resolve(_0x4dc03e,NEW_CONFIG_NAME)),_0x4c14a1=LEGACY_CONFIG_NAMES[_0x160b6f(0x1e8)](_0x3bcd6b=>existsSync(resolve(_0x4dc03e,_0x3bcd6b)));if(_0x4c14a1&&!_0xcac057)return console[_0x160b6f(0x1c0)](_0x160b6f(0x1b5)),upgradeApp(_0x4a5b0c['nonInteractive'],{'yes':_0x4a5b0c[_0x160b6f(0x1d1)](_0x160b6f(0x1bf))});if(_0xcac057)throw CliErrors['validation'](_0x160b6f(0x1d9),_0x160b6f(0x1c3)+CLI_BIN_NAME+_0x160b6f(0x1c6));}if(_0x2b3db7){const _0x481819=validateAppcode(_0x2b3db7);if(!_0x481819[_0x160b6f(0x1ca)])throw CliErrors[_0x160b6f(0x1d2)](_0x481819[_0x160b6f(0x1c8)]);writeInitConfig(_0x6859a,[syntheticApp(_0x2b3db7)],_0x193b2d);return;}if(_0x4a5b0c[_0x160b6f(0x1bd)])throw CliErrors[_0x160b6f(0x1cf)]('appcode',_0x160b6f(0x1ba)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x59649d=getCookie(),_0x5a825d=await selectMultipleApps(_0x59649d),_0x5836c4=_0x5a825d===_0x160b6f(0x1c2)?[syntheticApp(await promptCustomAppcode())]:_0x5a825d;writeInitConfig(_0x6859a,_0x5836c4,_0x193b2d);}const initFlags=[{'name':'global','type':a94_0x2d8496(0x1e2),'description':a94_0x2d8496(0x1b7),'default':![]},{'name':a94_0x2d8496(0x1de),'type':'string','description':a94_0x2d8496(0x1c1),'default':a94_0x2d8496(0x1d0),'enum':[...RABETBASE_ENV_VALUES]},{'name':a94_0x2d8496(0x1bc),'type':a94_0x2d8496(0x1dc),'description':a94_0x2d8496(0x1d3)},{'name':'project','type':a94_0x2d8496(0x1e2),'description':a94_0x2d8496(0x1df),'default':![]},{'name':a94_0x2d8496(0x1bf),'type':'boolean','description':a94_0x2d8496(0x1e4),'default':![]}];export const initDefinitions=[{'service':a94_0x2d8496(0x1d7),'command':a94_0x2d8496(0x1d4),'description':a94_0x2d8496(0x1e7),'risk':a94_0x2d8496(0x1c7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x45a1e5){return await runSmartInit(_0x45a1e5),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a95_0x225a(){const _0x50abce=['2721PDwhjy','36JNQmef','1795510GywXQt','1638kIBVqD','19416ufWraH','2385460qadrgK','5dXaRgN','7716876hlaYBf','2696iHtHLZ','1020636gxQrKm','16585580wAuJPz'];a95_0x225a=function(){return _0x50abce;};return a95_0x225a();}(function(_0x267255,_0x1488b2){const _0x2a5dfd=a95_0x48fa,_0x44a29e=_0x267255();while(!![]){try{const _0x41c42e=-parseInt(_0x2a5dfd(0xc4))/0x1+-parseInt(_0x2a5dfd(0xc3))/0x2*(-parseInt(_0x2a5dfd(0xc6))/0x3)+parseInt(_0x2a5dfd(0xcb))/0x4*(-parseInt(_0x2a5dfd(0xcc))/0x5)+parseInt(_0x2a5dfd(0xc2))/0x6+parseInt(_0x2a5dfd(0xc9))/0x7*(parseInt(_0x2a5dfd(0xca))/0x8)+parseInt(_0x2a5dfd(0xc7))/0x9*(parseInt(_0x2a5dfd(0xc8))/0xa)+-parseInt(_0x2a5dfd(0xc5))/0xb;if(_0x41c42e===_0x1488b2)break;else _0x44a29e['push'](_0x44a29e['shift']());}catch(_0x4cf4d7){_0x44a29e['push'](_0x44a29e['shift']());}}}(a95_0x225a,0xa39ab));import{issueReport}from'../../commands/issue/report.js';function a95_0x48fa(_0x14201f,_0x5226e4){_0x14201f=_0x14201f-0xc2;const _0x225a66=a95_0x225a();let _0x48fad8=_0x225a66[_0x14201f];return _0x48fad8;}export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x1326e6=a96_0x4c49;function a96_0x4c49(_0x4c3891,_0x35bccd){_0x4c3891=_0x4c3891-0xda;const _0x4984a6=a96_0x4984();let _0x4c4915=_0x4984a6[_0x4c3891];return _0x4c4915;}(function(_0x5e2a4e,_0xb5c92c){const _0x3f1561=a96_0x4c49,_0x1bfd3a=_0x5e2a4e();while(!![]){try{const _0x5e5737=-parseInt(_0x3f1561(0xf7))/0x1*(-parseInt(_0x3f1561(0xef))/0x2)+parseInt(_0x3f1561(0xf4))/0x3*(parseInt(_0x3f1561(0xea))/0x4)+parseInt(_0x3f1561(0xeb))/0x5+-parseInt(_0x3f1561(0xf9))/0x6+parseInt(_0x3f1561(0xec))/0x7*(parseInt(_0x3f1561(0xed))/0x8)+-parseInt(_0x3f1561(0xdf))/0x9*(parseInt(_0x3f1561(0xe1))/0xa)+-parseInt(_0x3f1561(0xf3))/0xb;if(_0x5e5737===_0xb5c92c)break;else _0x1bfd3a['push'](_0x1bfd3a['shift']());}catch(_0x2fd52c){_0x1bfd3a['push'](_0x1bfd3a['shift']());}}}(a96_0x4984,0xa46d7));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a96_0x1326e6(0xe4);const NUDGE_SUPPRESSED_CODES=new Set([a96_0x1326e6(0xe9),a96_0x1326e6(0xdd),a96_0x1326e6(0xf8),'not_in_project',a96_0x1326e6(0xf6),'flag_missing',a96_0x1326e6(0xe2),a96_0x1326e6(0xe8)]),defaultWriter=_0x231639=>{const _0x1a2909=a96_0x1326e6;process[_0x1a2909(0xfd)][_0x1a2909(0xfb)](_0x231639);};export function shouldNudgeForError(_0x3a98d4,_0x2fa7bf){const _0x4dcb5b=a96_0x1326e6;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x2fa7bf[_0x4dcb5b(0xee)]==='issue'&&_0x2fa7bf[_0x4dcb5b(0xde)]===_0x4dcb5b(0xfa))return![];if(_0x3a98d4 instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x3a98d4[_0x4dcb5b(0xfc)]);return!![];}export function printIssueReportNudgeForError(_0x50f86f,_0xace0d9,_0x4b9d08=defaultWriter){if(!shouldNudgeForError(_0x50f86f,_0xace0d9))return;const _0x32a0f7=buildSuggestedTitle(_0x50f86f,_0xace0d9);_0x4b9d08(formatNudge(_0x32a0f7));}function buildSuggestedTitle(_0x406511,_0x5195b0){const _0x4bf67b=a96_0x1326e6,_0x48c292=_0x406511 instanceof Error?_0x406511[_0x4bf67b(0xf0)]:String(_0x406511),_0x3fc204=_0x48c292[_0x4bf67b(0xfe)](/[\r\n]+/g,'\x20')[_0x4bf67b(0xfe)](/\s+/g,'\x20')[_0x4bf67b(0xf2)]()[_0x4bf67b(0xf1)](0x0,0x78)[_0x4bf67b(0xfe)](/"/g,'\x5c\x22'),_0x33d724=CLI_BIN_NAME+'\x20'+_0x5195b0[_0x4bf67b(0xee)]+'\x20'+_0x5195b0[_0x4bf67b(0xde)];return _0x3fc204['length']>0x0?_0x33d724+':\x20'+_0x3fc204:_0x33d724;}function a96_0x4984(){const _0x4492bc=['277361zjIrcF','144MJbxpd','service','58082QcfWtR','message','slice','trim','14333979ZcLHVT','3FPLbje','\x22\x20\x5c','unknown_command','23SlisyW','config_missing','7353060UWyEXk','report','write','code','stderr','replace','\x20\x20Set\x20','=1\x20to\x20silence\x20this\x20hint.','Hit\x20a\x20','auth_required','command','18zAiAzP','\x20bug?\x20Help\x20us\x20fix\x20it:','2188020cWCodi','validation_error','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','RABETBASE_DISABLE_ISSUE_NUDGE','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','\x20\x20\x20\x20--title\x20\x22','join','network_error','cancelled','4698644KrVhIn','5419400kwpobQ'];a96_0x4984=function(){return _0x4492bc;};return a96_0x4984();}function formatNudge(_0x3a7570){const _0x2e46b9=a96_0x1326e6;return['',_0x2e46b9(0xdc)+CLI_BIN_NAME+_0x2e46b9(0xe0),'\x20\x20'+CLI_BIN_NAME+'\x20issue\x20report\x20\x5c',_0x2e46b9(0xe6)+_0x3a7570+_0x2e46b9(0xf5),_0x2e46b9(0xe5),_0x2e46b9(0xe3),_0x2e46b9(0xda)+NUDGE_OPT_OUT_ENV+_0x2e46b9(0xdb),''][_0x2e46b9(0xe7)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97_0xd18d9e=a97_0x24df;(function(_0x5685d2,_0xb51ec){const _0x10254e=a97_0x24df,_0x15f0cf=_0x5685d2();while(!![]){try{const _0x27f41c=-parseInt(_0x10254e(0x19d))/0x1*(-parseInt(_0x10254e(0x1a5))/0x2)+-parseInt(_0x10254e(0x167))/0x3*(parseInt(_0x10254e(0x18f))/0x4)+-parseInt(_0x10254e(0x182))/0x5*(-parseInt(_0x10254e(0x1a4))/0x6)+parseInt(_0x10254e(0x192))/0x7+-parseInt(_0x10254e(0x17c))/0x8*(parseInt(_0x10254e(0x198))/0x9)+parseInt(_0x10254e(0x1a2))/0xa+parseInt(_0x10254e(0x173))/0xb;if(_0x27f41c===_0xb51ec)break;else _0x15f0cf['push'](_0x15f0cf['shift']());}catch(_0xa1bcf7){_0x15f0cf['push'](_0x15f0cf['shift']());}}}(a97_0x1ff2,0x51555));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a97_0x24df(_0x1dbe20,_0x2a37f6){_0x1dbe20=_0x1dbe20-0x166;const _0x1ff2e5=a97_0x1ff2();let _0x24df73=_0x1ff2e5[_0x1dbe20];return _0x24df73;}import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';function a97_0x1ff2(){const _0xcdf0cc=['issue.description','redactionKinds','POST','description','One-line\x20issue\x20summary','redactionCount','Platform\x20issue\x20reported\x20(','1051868PuiHmG','length','inline','10374ewkHTZ','push','title','description-file','utf8','redacted\x20','27ueQUbM','report','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','sanitize','5WuIRXw','truncated:\x20original\x20','\x20secret(s):\x20','write','issue.description_original_bytes','6625620GgLlln','redactions:\x20','2712hSMAdl','4226yLxIYz','compress','str','3qtfjRg','descriptionFilePath','filter','Issue\x20description\x20cannot\x20be\x20empty.','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','flagMissing','Failed\x20to\x20report\x20platform\x20issue:\x20','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','File\x20not\x20found:\x20','\x20bytes','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','validation','2717770ZCglXD','descriptionFile:\x20','issue.description_truncated','truncated','join','string','otel://','message','descriptionSource','1004392rFionk','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','issue','file','trim','originalBytes','565TQckOQ','cwd','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Platform\x20issue\x20reported','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','issue.title'];a97_0x1ff2=function(){return _0xcdf0cc;};return a97_0x1ff2();}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a97_0xd18d9e(0x195);export const issueReport={'service':a97_0xd18d9e(0x17e),'command':a97_0xd18d9e(0x199),'description':a97_0xd18d9e(0x16e),'risk':a97_0xd18d9e(0x1a0),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a97_0xd18d9e(0x1a6),'flags':[{'name':'title','type':a97_0xd18d9e(0x178),'required':!![],'description':a97_0xd18d9e(0x18c)},{'name':a97_0xd18d9e(0x18b),'type':a97_0xd18d9e(0x178),'description':a97_0xd18d9e(0x16b)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a97_0xd18d9e(0x17d)}],async 'validate'(_0x21aa3a){const _0x46d035=a97_0xd18d9e,_0x389537=_0x21aa3a[_0x46d035(0x166)](_0x46d035(0x194))[_0x46d035(0x180)](),_0x5ac92f=_0x21aa3a[_0x46d035(0x166)](_0x46d035(0x18b))[_0x46d035(0x180)](),_0x2d692b=_0x21aa3a['str'](DESCRIPTION_FILE_FLAG)[_0x46d035(0x180)]();if(!_0x389537)throw CliErrors[_0x46d035(0x16c)](_0x46d035(0x194),_0x46d035(0x19b));const _0x444ab7=_0x5ac92f[_0x46d035(0x190)]>0x0,_0x1fbd09=_0x2d692b['length']>0x0;if(_0x444ab7===_0x1fbd09)throw CliErrors[_0x46d035(0x172)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x46d035(0x186));if(_0x1fbd09){const _0x174672=resolve(process['cwd'](),_0x2d692b);if(!existsSync(_0x174672))throw CliErrors['validation'](_0x46d035(0x16f)+_0x174672);}},async 'dryRun'(_0x11fde8){const _0x19c4b6=a97_0xd18d9e,_0x1ff67f=await prepareIssueReport(_0x11fde8);return{'method':_0x19c4b6(0x18a),'url':_0x19c4b6(0x179)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1ff67f['title'],'issue.description':_0x1ff67f[_0x19c4b6(0x18b)],'issue.description_original_bytes':_0x1ff67f[_0x19c4b6(0x19c)][_0x19c4b6(0x181)],'issue.description_truncated':_0x1ff67f[_0x19c4b6(0x19c)][_0x19c4b6(0x176)],'issue.description_redactions':_0x1ff67f['sanitize'][_0x19c4b6(0x18d)],'issue.description_redaction_kinds':_0x1ff67f[_0x19c4b6(0x19c)]['redactionKinds']['join'](',')}},'description':[_0x19c4b6(0x184),'descriptionSource:\x20'+_0x1ff67f[_0x19c4b6(0x17b)],_0x1ff67f[_0x19c4b6(0x168)]?_0x19c4b6(0x174)+_0x1ff67f[_0x19c4b6(0x168)]:null,_0x1ff67f['sanitize'][_0x19c4b6(0x176)]?_0x19c4b6(0x19e)+_0x1ff67f[_0x19c4b6(0x19c)][_0x19c4b6(0x181)]+_0x19c4b6(0x170):null,_0x1ff67f[_0x19c4b6(0x19c)][_0x19c4b6(0x18d)]>0x0?_0x19c4b6(0x1a3)+_0x1ff67f[_0x19c4b6(0x19c)][_0x19c4b6(0x18d)]+'\x20('+_0x1ff67f[_0x19c4b6(0x19c)][_0x19c4b6(0x189)][_0x19c4b6(0x177)](',\x20')+')':null][_0x19c4b6(0x169)](Boolean)[_0x19c4b6(0x177)]('\x0a')};},async 'execute'(_0x33764f){const _0x1146b1=a97_0xd18d9e,_0x1030e2=await prepareIssueReport(_0x33764f);try{await sendPlatformIssueCollectLog({'title':_0x1030e2[_0x1146b1(0x194)],'description':_0x1030e2[_0x1146b1(0x18b)],'sanitize':{'originalBytes':_0x1030e2['sanitize'][_0x1146b1(0x181)],'truncated':_0x1030e2[_0x1146b1(0x19c)][_0x1146b1(0x176)],'redactionCount':_0x1030e2[_0x1146b1(0x19c)][_0x1146b1(0x18d)],'redactionKinds':_0x1030e2[_0x1146b1(0x19c)][_0x1146b1(0x189)]}});}catch(_0x5a2367){throw CliErrors['apiError'](_0x1146b1(0x16d)+(_0x5a2367 instanceof Error?_0x5a2367[_0x1146b1(0x17a)]:String(_0x5a2367)),_0x1146b1(0x19a));}return{'ok':!![],'message':buildResultMessage(_0x1030e2[_0x1146b1(0x19c)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x1146b1(0x187),_0x1146b1(0x188),_0x1146b1(0x1a1),_0x1146b1(0x175),'issue.description_redactions','issue.description_redaction_kinds'],'issue':{'title':_0x1030e2['title'],'descriptionLength':_0x1030e2[_0x1146b1(0x18b)][_0x1146b1(0x190)],'descriptionSource':_0x1030e2['descriptionSource'],..._0x1030e2[_0x1146b1(0x168)]?{'descriptionFile':_0x1030e2[_0x1146b1(0x168)]}:{},'sanitize':{'originalBytes':_0x1030e2[_0x1146b1(0x19c)]['originalBytes'],'truncated':_0x1030e2['sanitize'][_0x1146b1(0x176)],'redactions':_0x1030e2[_0x1146b1(0x19c)][_0x1146b1(0x18d)],'redactionKinds':_0x1030e2['sanitize'][_0x1146b1(0x189)]}}}};}};function buildResultMessage(_0x4d5bb5){const _0x1ee672=a97_0xd18d9e,_0x58e7a6=[];return _0x4d5bb5[_0x1ee672(0x176)]&&_0x58e7a6[_0x1ee672(0x193)]('truncated\x20from\x20'+_0x4d5bb5['originalBytes']+_0x1ee672(0x170)),_0x4d5bb5[_0x1ee672(0x18d)]>0x0&&_0x58e7a6[_0x1ee672(0x193)](_0x1ee672(0x197)+_0x4d5bb5['redactionCount']+_0x1ee672(0x19f)+_0x4d5bb5[_0x1ee672(0x189)][_0x1ee672(0x177)](',\x20')),_0x58e7a6['length']===0x0?_0x1ee672(0x185):_0x1ee672(0x18e)+_0x58e7a6[_0x1ee672(0x177)](';\x20')+')';}async function prepareIssueReport(_0x3e7692){const _0x53c4cd=a97_0xd18d9e,_0xfc78ab=_0x3e7692[_0x53c4cd(0x166)](_0x53c4cd(0x194))[_0x53c4cd(0x180)](),_0x1b260e=_0x3e7692['str'](_0x53c4cd(0x18b)),_0x83edaa=_0x3e7692[_0x53c4cd(0x166)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x83edaa){const _0x32846c=_0x1b260e;if(!_0x32846c[_0x53c4cd(0x180)]())throw CliErrors[_0x53c4cd(0x172)](_0x53c4cd(0x16a),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');const _0x3f2fcc=sanitizeIssueDescription(_0x32846c);return{'title':_0xfc78ab,'description':_0x3f2fcc['description'],'descriptionSource':_0x53c4cd(0x191),'sanitize':_0x3f2fcc};}const _0x4dcd87=resolve(process[_0x53c4cd(0x183)](),_0x83edaa),_0x2fcb78=await readFile(_0x4dcd87,_0x53c4cd(0x196));if(!_0x2fcb78['trim']())throw CliErrors[_0x53c4cd(0x172)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x4dcd87,_0x53c4cd(0x171));const _0x3daad0=sanitizeIssueDescription(_0x2fcb78);return{'title':_0xfc78ab,'description':_0x3daad0['description'],'descriptionSource':_0x53c4cd(0x17f),'descriptionFilePath':_0x4dcd87,'sanitize':_0x3daad0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0x81a950=a98_0x4156;function a98_0x5864(){const _0x6a1523=['length','utf8','REDACTED:password','max','subarray','2444esCwXH','bearer-jwt','includes','4985xnzNEs','authorization','8ljuuHA','3932894GMVKlv','from','656205rDOHiL','kind','REDACTED:bearer-jwt','string','slice','description','byteLength','push','replace','label','4393476jCwgPh','restore','9449244CrAKDn','734274nthZFb','390348XqBslY','access-key','REDACTED:authorization','REDACTED:access-key','password','private-key'];a98_0x5864=function(){return _0x6a1523;};return a98_0x5864();}(function(_0x4c80ad,_0x510102){const _0x15f55b=a98_0x4156,_0x36fad6=_0x4c80ad();while(!![]){try{const _0x529d50=-parseInt(_0x15f55b(0x9d))/0x1+parseInt(_0x15f55b(0xab))/0x2+parseInt(_0x15f55b(0xaa))/0x3+-parseInt(_0x15f55b(0x95))/0x4*(parseInt(_0x15f55b(0x98))/0x5)+parseInt(_0x15f55b(0xa7))/0x6+-parseInt(_0x15f55b(0x9b))/0x7*(parseInt(_0x15f55b(0x9a))/0x8)+parseInt(_0x15f55b(0xa9))/0x9;if(_0x529d50===_0x510102)break;else _0x36fad6['push'](_0x36fad6['shift']());}catch(_0xe2caf5){_0x36fad6['push'](_0x36fad6['shift']());}}}(a98_0x5864,0x60680));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':'cookie','pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a98_0x81a950(0x99),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a98_0x81a950(0xad)},{'kind':a98_0x81a950(0xb0),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':'REDACTED:private-key'},{'kind':a98_0x81a950(0xac),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a98_0x81a950(0xae)},{'kind':a98_0x81a950(0xaf),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a98_0x81a950(0x92)},{'kind':a98_0x81a950(0x96),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a98_0x81a950(0x9f)}];export function sanitizeIssueDescription(_0x110a2c){const _0xfbba80=a98_0x81a950,_0x541216=Buffer['byteLength'](_0x110a2c,_0xfbba80(0x91)),_0x518c98=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x569ef2=_0x110a2c,_0x3019a4=0x0;const _0x47b7f3=[];if(!_0x518c98){const _0x5a9a88=protectOssAccessKeyIds(_0x569ef2);_0x569ef2=_0x5a9a88[_0xfbba80(0xa2)];for(const _0xc7398e of REDACTION_RULES){let _0x1a9cf7=0x0;_0x569ef2=_0x569ef2['replace'](_0xc7398e['pattern'],(_0x108ae3,_0x397021)=>{const _0x1f1a75=_0xfbba80;_0x1a9cf7+=0x1;const _0x11f013=typeof _0x397021===_0x1f1a75(0xa0)?_0x397021:'';return _0x11f013+'['+_0xc7398e[_0x1f1a75(0xa6)]+']';}),_0x1a9cf7>0x0&&(_0x3019a4+=_0x1a9cf7,!_0x47b7f3[_0xfbba80(0x97)](_0xc7398e['kind'])&&_0x47b7f3[_0xfbba80(0xa4)](_0xc7398e[_0xfbba80(0x9e)]));}_0x569ef2=_0x5a9a88[_0xfbba80(0xa8)](_0x569ef2);}let _0x322042=![];if(Buffer[_0xfbba80(0xa3)](_0x569ef2,_0xfbba80(0x91))>ISSUE_DESCRIPTION_MAX_BYTES){_0x322042=!![];const _0x42e040=Buffer[_0xfbba80(0xa3)](TRUNCATION_NOTICE,_0xfbba80(0x91)),_0x46cdd0=Math[_0xfbba80(0x93)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x42e040);_0x569ef2=sliceUtf8Bytes(_0x569ef2,_0x46cdd0)+TRUNCATION_NOTICE;}return{'description':_0x569ef2,'originalBytes':_0x541216,'truncated':_0x322042,'redactionCount':_0x3019a4,'redactionKinds':_0x47b7f3};}function protectOssAccessKeyIds(_0x3a255b){const _0x2c9933=a98_0x81a950,_0x4f6e4c=[],_0x384721=_0x3a255b[_0x2c9933(0xa5)](/([?&])OSSAccessKeyId=([A-Za-z0-9/+_\-]{8,})/gi,(_0x50f98d,_0x5c1972)=>{const _0x47f503=_0x2c9933,_0x157dfb=_0x4f6e4c[_0x47f503(0xa4)](_0x50f98d[_0x47f503(0xa1)](_0x5c1972[_0x47f503(0xb1)]))-0x1;return _0x5c1972+'__RB_OSS_ID_'+_0x157dfb+'__';});return{'description':_0x384721,'restore':_0x261b36=>_0x261b36['replace'](/([?&])__RB_OSS_ID_(\d+)__/g,(_0xf6bc03,_0x1d5a96,_0x4b62bb)=>{const _0x2a747d=_0x4f6e4c[Number(_0x4b62bb)];return _0x2a747d===undefined?_0xf6bc03:''+_0x1d5a96+_0x2a747d;})};}function a98_0x4156(_0x458414,_0x2d51f6){_0x458414=_0x458414-0x91;const _0x5864c6=a98_0x5864();let _0x4156f5=_0x5864c6[_0x458414];return _0x4156f5;}function sliceUtf8Bytes(_0x42f9a5,_0x291976){const _0x26d78c=a98_0x81a950;if(_0x291976<=0x0)return'';const _0x485c7e=Buffer[_0x26d78c(0x9c)](_0x42f9a5,_0x26d78c(0x91));if(_0x485c7e['byteLength']<=_0x291976)return _0x42f9a5;let _0x21d280=_0x291976;while(_0x21d280>0x0){const _0x2f68f9=_0x485c7e[_0x21d280];if(_0x2f68f9===undefined||(_0x2f68f9&0xc0)!==0x80)break;_0x21d280-=0x1;}return _0x485c7e[_0x26d78c(0x94)](0x0,_0x21d280)['toString']('utf8');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99_0x57aef0=a99_0x43ab;(function(_0x4a2663,_0x58da07){const _0x23f073=a99_0x43ab,_0x33224e=_0x4a2663();while(!![]){try{const _0x106230=parseInt(_0x23f073(0x15d))/0x1*(-parseInt(_0x23f073(0x153))/0x2)+-parseInt(_0x23f073(0x14e))/0x3*(-parseInt(_0x23f073(0x14b))/0x4)+parseInt(_0x23f073(0x159))/0x5*(parseInt(_0x23f073(0x163))/0x6)+parseInt(_0x23f073(0x14d))/0x7*(-parseInt(_0x23f073(0x15f))/0x8)+-parseInt(_0x23f073(0x147))/0x9*(parseInt(_0x23f073(0x15b))/0xa)+-parseInt(_0x23f073(0x151))/0xb+parseInt(_0x23f073(0x15e))/0xc;if(_0x106230===_0x58da07)break;else _0x33224e['push'](_0x33224e['shift']());}catch(_0x43736e){_0x33224e['push'](_0x33224e['shift']());}}}(a99_0x1e87,0xe990a));import{logger}from'../../utils/logger.js';function a99_0x43ab(_0x5e9143,_0x3e59b8){_0x5e9143=_0x5e9143-0x146;const _0x1e8717=a99_0x1e87();let _0x43ab63=_0x1e8717[_0x5e9143];return _0x43ab63;}function a99_0x1e87(){const _0x12b53c=['*\x20No\x20logs\x20found','logs','*\x20Lovrabet\x20CLI\x20logs:\x0a','9krenDv','forEach','level','error','1179004rwVjSQ','stringify','4014752MqUsNg','6Dxjtlb','readLogs','read','11884488FGOTXy','details','52oZcqcX','command','show','toLocaleString','en-US','Clear\x20command\x20history\x20logs','60cosGMS','message','18636280Rprlqm','warn','18286GeYxyM','48717792LfWXah','8nDZXjI','log','length','\x20\x20\x20Time:\x20','150186WMsDqH','success'];a99_0x1e87=function(){return _0x12b53c;};return a99_0x1e87();}function printLogs(_0x33a251){const _0x40cd68=a99_0x43ab;if(_0x33a251[_0x40cd68(0x161)]===0x0){console['log'](_0x40cd68(0x165));return;}console[_0x40cd68(0x160)](_0x40cd68(0x146)),_0x33a251[_0x40cd68(0x148)]((_0x2e18e7,_0x4f2a7d)=>{const _0x2bf8d1=_0x40cd68,_0x4548c2=new Date(_0x2e18e7['timestamp'])[_0x2bf8d1(0x156)](_0x2bf8d1(0x157)),_0x1526e0=_0x2e18e7[_0x2bf8d1(0x149)]===_0x2bf8d1(0x164)?'√':_0x2e18e7[_0x2bf8d1(0x149)]===_0x2bf8d1(0x14a)?'×':_0x2e18e7['level']===_0x2bf8d1(0x15c)?'!':'i';console[_0x2bf8d1(0x160)](_0x4f2a7d+0x1+'.\x20'+_0x1526e0+'\x20['+_0x2e18e7[_0x2bf8d1(0x154)]+']\x20'+_0x2e18e7[_0x2bf8d1(0x15a)]),console[_0x2bf8d1(0x160)](_0x2bf8d1(0x162)+_0x4548c2),_0x2e18e7['duration']&&console[_0x2bf8d1(0x160)]('\x20\x20\x20Duration:\x20'+_0x2e18e7['duration']+'ms'),_0x2e18e7[_0x2bf8d1(0x152)]&&Object['keys'](_0x2e18e7[_0x2bf8d1(0x152)])['length']>0x0&&console[_0x2bf8d1(0x160)]('\x20\x20\x20Details:\x20'+JSON[_0x2bf8d1(0x14c)](_0x2e18e7[_0x2bf8d1(0x152)],null,0x2)),console[_0x2bf8d1(0x160)]('');});}export const logsDefinitions=[{'service':a99_0x57aef0(0x166),'command':a99_0x57aef0(0x155),'description':'View\x20command\x20history\x20logs','risk':a99_0x57aef0(0x150),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x48953e){const _0x47f08b=a99_0x57aef0;return printLogs(logger[_0x47f08b(0x14f)]()),{'ok':!![]};}},{'service':a99_0x57aef0(0x166),'command':'clear','description':a99_0x57aef0(0x158),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xa4c9b4){const _0x6e96e1=a99_0x57aef0;return logger['clearLogs'](),console[_0x6e96e1(0x160)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x547c0a,_0x4ac9cf){const _0xbf7f83=a100_0x11d3,_0x124fa1=_0x547c0a();while(!![]){try{const _0x452714=parseInt(_0xbf7f83(0x1da))/0x1*(parseInt(_0xbf7f83(0x1de))/0x2)+parseInt(_0xbf7f83(0x1d8))/0x3+-parseInt(_0xbf7f83(0x1d7))/0x4+-parseInt(_0xbf7f83(0x1d9))/0x5*(parseInt(_0xbf7f83(0x1dc))/0x6)+parseInt(_0xbf7f83(0x1db))/0x7+parseInt(_0xbf7f83(0x1d6))/0x8*(-parseInt(_0xbf7f83(0x1d5))/0x9)+parseInt(_0xbf7f83(0x1dd))/0xa;if(_0x452714===_0x4ac9cf)break;else _0x124fa1['push'](_0x124fa1['shift']());}catch(_0x4b4fb7){_0x124fa1['push'](_0x124fa1['shift']());}}}(a100_0x3f9d,0xd596f));import{menuList}from'../../commands/menu/list.js';function a100_0x3f9d(){const _0x1c21d0=['1986auIaxw','22711680twCCuD','6tMSJpc','8662023tpVXdg','8yckTrC','3229580eCeKSC','809148cChJTb','25975iQkxHW','535571hnATrH','1516571jLRIgg'];a100_0x3f9d=function(){return _0x1c21d0;};return a100_0x3f9d();}function a100_0x11d3(_0x35c078,_0x15b7a1){_0x35c078=_0x35c078-0x1d5;const _0x3f9d4e=a100_0x3f9d();let _0x11d3eb=_0x3f9d4e[_0x35c078];return _0x11d3eb;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101_0x5cbc35=a101_0x5c3a;(function(_0x596778,_0x357cb6){const _0x3f479a=a101_0x5c3a,_0x6cc940=_0x596778();while(!![]){try{const _0x4b2277=parseInt(_0x3f479a(0x1dc))/0x1+-parseInt(_0x3f479a(0x1e4))/0x2+-parseInt(_0x3f479a(0x1e5))/0x3+parseInt(_0x3f479a(0x1f3))/0x4+parseInt(_0x3f479a(0x1e2))/0x5*(parseInt(_0x3f479a(0x1e0))/0x6)+parseInt(_0x3f479a(0x1e8))/0x7*(-parseInt(_0x3f479a(0x1f4))/0x8)+parseInt(_0x3f479a(0x1ef))/0x9;if(_0x4b2277===_0x357cb6)break;else _0x6cc940['push'](_0x6cc940['shift']());}catch(_0x48d431){_0x6cc940['push'](_0x6cc940['shift']());}}}(a101_0x512b,0xb89d7));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getMenuTree}from'../../core/api-client.js';export const menuList={'service':a101_0x5cbc35(0x1fa),'command':a101_0x5cbc35(0x1df),'description':'List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a101_0x5cbc35(0x200),'type':a101_0x5cbc35(0x1de),'description':a101_0x5cbc35(0x1fe)}],async 'execute'(_0x423152){const _0x4ea486=a101_0x5cbc35,_0x333cdd=_0x423152[_0x4ea486(0x1e3)]('verbose'),_0x4db43c=await getMenuTree(_0x423152['appCode'],_0x423152['cookie']),_0x1ce9bd=flattenMenuItems(Array[_0x4ea486(0x1ea)](_0x4db43c)?_0x4db43c:[],{'verbose':_0x333cdd,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x1ce9bd[_0x4ea486(0x1fc)],'menus':_0x1ce9bd},'message':_0x1ce9bd[_0x4ea486(0x1fc)]===0x0?_0x4ea486(0x1f2):_0x4ea486(0x1fd)+_0x1ce9bd[_0x4ea486(0x1fc)]+_0x4ea486(0x1e7)};}};function flattenMenuItems(_0x3fe0e1,_0x17a9a9){const _0x192c5f=a101_0x5cbc35,_0x217e11=sortMenuItems(_0x3fe0e1),_0x48a3b6=[];for(const _0x5b5ffa of _0x217e11){_0x48a3b6[_0x192c5f(0x1e6)](toMenuListItem(_0x5b5ffa,_0x17a9a9)),Array['isArray'](_0x5b5ffa[_0x192c5f(0x1ee)])&&_0x5b5ffa[_0x192c5f(0x1ee)][_0x192c5f(0x1fc)]>0x0&&_0x48a3b6['push'](...flattenMenuItems(_0x5b5ffa['children'],{'verbose':_0x17a9a9['verbose'],'parentId':_0x5b5ffa['id'],'depth':_0x17a9a9[_0x192c5f(0x1eb)]+0x1}));}return _0x48a3b6;}function sortMenuItems(_0x48b6ea){const _0x375c3b=a101_0x5cbc35;return _0x48b6ea[_0x375c3b(0x1e1)]((_0x2d0068,_0x5446d5)=>({'item':_0x2d0068,'index':_0x5446d5}))[_0x375c3b(0x1ff)]((_0x2d6366,_0x42cfb2)=>{const _0x424a02=_0x375c3b,_0x204cf2=normalizeSort(_0x2d6366[_0x424a02(0x1f6)]['sort']),_0x1b5387=normalizeSort(_0x42cfb2['item'][_0x424a02(0x1ff)]);if(_0x204cf2!==_0x1b5387)return _0x204cf2-_0x1b5387;return _0x2d6366['index']-_0x42cfb2['index'];})[_0x375c3b(0x1e1)](({item:_0xee8569})=>_0xee8569);}function toMenuListItem(_0x479020,_0x3ada04){const _0x199972=a101_0x5cbc35,_0x5b9fa3={'id':_0x479020['id'],'parentId':_0x3ada04[_0x199972(0x1f5)],'depth':_0x3ada04[_0x199972(0x1eb)],'label':normalizeString(_0x479020[_0x199972(0x1f1)]),'path':normalizeString(_0x479020[_0x199972(0x1f0)]),'type':normalizeString(_0x479020[_0x199972(0x1ec)]),'visible':typeof _0x479020[_0x199972(0x1f8)]==='boolean'?_0x479020[_0x199972(0x1f8)]:null,'sort':typeof _0x479020[_0x199972(0x1ff)]===_0x199972(0x1f7)&&Number['isFinite'](_0x479020[_0x199972(0x1ff)])?_0x479020['sort']:null,'resources':normalizeResources(_0x479020[_0x199972(0x1dd)]?.[_0x199972(0x1f9)])};return _0x3ada04[_0x199972(0x200)]&&(_0x5b9fa3[_0x199972(0x1dd)]=_0x479020[_0x199972(0x1dd)]??null),_0x5b9fa3;}function normalizeSort(_0x97f822){const _0x37f479=a101_0x5cbc35;return typeof _0x97f822==='number'&&Number[_0x37f479(0x1fb)](_0x97f822)?_0x97f822:Number['POSITIVE_INFINITY'];}function a101_0x512b(){const _0x3ebcf4=['Found\x20','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','sort','verbose','147637CeJoDf','extend','boolean','list','222hXyggb','map','156125CRDKOZ','bool','1507594uHvyXu','2546562YoiHRJ','push','\x20menu(s)','7PUmTcN','parse','isArray','depth','type','string','children','4288356iiEscP','path','label','No\x20menus\x20found.','3603800TiccEU','2572496AobeOs','parentId','item','number','visible','resources','menu','isFinite','length'];a101_0x512b=function(){return _0x3ebcf4;};return a101_0x512b();}function a101_0x5c3a(_0x2837e4,_0x57e3ac){_0x2837e4=_0x2837e4-0x1dc;const _0x512b92=a101_0x512b();let _0x5c3ac5=_0x512b92[_0x2837e4];return _0x5c3ac5;}function normalizeString(_0x19c564){return typeof _0x19c564==='string'?_0x19c564:'';}function normalizeResources(_0x388d5f){const _0x19f29e=a101_0x5cbc35;if(Array[_0x19f29e(0x1ea)](_0x388d5f))return _0x388d5f[_0x19f29e(0x1e1)](String);if(typeof _0x388d5f!==_0x19f29e(0x1ed))return[];try{const _0x17bffb=JSON[_0x19f29e(0x1e9)](_0x388d5f);return Array['isArray'](_0x17bffb)?_0x17bffb[_0x19f29e(0x1e1)](String):[];}catch{return[];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x576fca,_0xf35002){const _0x4e24f1=a102_0x5925,_0x44201b=_0x576fca();while(!![]){try{const _0x4dc010=-parseInt(_0x4e24f1(0x14e))/0x1*(-parseInt(_0x4e24f1(0x14c))/0x2)+-parseInt(_0x4e24f1(0x15d))/0x3+-parseInt(_0x4e24f1(0x159))/0x4+-parseInt(_0x4e24f1(0x15e))/0x5*(-parseInt(_0x4e24f1(0x15b))/0x6)+parseInt(_0x4e24f1(0x161))/0x7+parseInt(_0x4e24f1(0x151))/0x8+parseInt(_0x4e24f1(0x14d))/0x9;if(_0x4dc010===_0xf35002)break;else _0x44201b['push'](_0x44201b['shift']());}catch(_0x2cf689){_0x44201b['push'](_0x44201b['shift']());}}}(a102_0x20ff,0x845a4));function strWidth(_0x1e79b5){let _0x5bc93b=0x0;for(const _0x5b4d66 of _0x1e79b5){_0x5bc93b+=/[\u4e00-\u9fa5]/['test'](_0x5b4d66)?0x2:0x1;}return _0x5bc93b;}function padRight(_0x409d9f,_0x3ef4a3){const _0x257e3d=a102_0x5925,_0x1c4869=strWidth(_0x409d9f);return _0x409d9f+'\x20'['repeat'](Math[_0x257e3d(0x169)](0x0,_0x3ef4a3-_0x1c4869));}export function renderCompareTable(_0x4b0256,_0x396acb={}){const _0x2e882e=a102_0x5925;if(_0x4b0256[_0x2e882e(0x157)]===0x0)return'';const _0xb19c4c=_0x396acb[_0x2e882e(0x160)]??!![],_0xd4025=Math['max'](0x1e,..._0x4b0256[_0x2e882e(0x158)](_0x221cd8=>strWidth(_0x221cd8[_0x2e882e(0x164)]))),_0x961296=0x4,_0x3881d3=[],_0xf52dc6='\x20\x20'+padRight('Menu\x20Name',_0xd4025),_0x124120=padRight(_0x2e882e(0x15a),_0x961296),_0xab3a5e=_0xb19c4c?'\x20\x20'+padRight(_0x2e882e(0x165),_0x961296):'';_0x3881d3[_0x2e882e(0x163)](_0xf52dc6+'\x20\x20'+_0x124120+(_0xb19c4c?_0xab3a5e:'')),_0x3881d3[_0x2e882e(0x163)]('\x20\x20'+'─'[_0x2e882e(0x15f)](_0xd4025)+'\x20\x20'+'─'[_0x2e882e(0x15f)](_0x961296)+(_0xb19c4c?'\x20\x20'+'─'[_0x2e882e(0x15f)](_0x961296):''));for(const _0x1c5fce of _0x4b0256){const _0x51a572=padRight(_0x1c5fce[_0x2e882e(0x164)],_0xd4025),_0x6f7360=_0x1c5fce['local']?'✓':'✗',_0x325925=padRight(_0x6f7360,_0x961296);let _0x48bed9='\x20\x20'+_0x51a572+'\x20\x20'+_0x325925;if(_0xb19c4c){const _0x49ec78=_0x1c5fce[_0x2e882e(0x152)]?'✓':'✗';_0x48bed9+='\x20\x20'+padRight(_0x49ec78,_0x961296);}_0x3881d3[_0x2e882e(0x163)](_0x48bed9);}return _0x3881d3['join']('\x0a');}function a102_0x5925(_0x2052e7,_0x46d9ff){_0x2052e7=_0x2052e7-0x14c;const _0x20ff39=a102_0x20ff();let _0x592539=_0x20ff39[_0x2052e7];return _0x592539;}export function renderSyncSummary(_0x1f422d,_0x32a3b8){const _0xef6ce2=a102_0x5925;if(_0x1f422d[_0xef6ce2(0x157)]===0x0)return _0x32a3b8?_0xef6ce2(0x153):_0xef6ce2(0x15c);const _0x366b42=['\x20\x20'+_0x1f422d[_0xef6ce2(0x157)]+_0xef6ce2(0x167)];for(const _0x27c1ab of _0x1f422d){_0x366b42[_0xef6ce2(0x163)](_0xef6ce2(0x150)+_0x27c1ab[_0xef6ce2(0x164)]+'\x20('+_0x27c1ab['path']+')');}return _0x366b42[_0xef6ce2(0x155)]('\x0a');}function a102_0x20ff(){const _0x5a2fd1=['6593818feKQwH','\x20\x20Affected\x20menus:\x20','push','label','Platform','\x20\x20\x20\x20CSS:\x20','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','max','160TQLEBi','111168inWQyj','5749RaoQAx','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','\x20\x20\x20\x20•\x20','4697456UiRQnK','online','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','\x20\x20\x20\x20JS:\x20\x20','join','(unchanged)','length','map','4107772GUAOzj','Local','1116426hwYknb','\x20\x20No\x20pages\x20to\x20sync.','1855320wFGFSd','5fjNJvW','repeat','showOnline'];a102_0x20ff=function(){return _0x5a2fd1;};return a102_0x20ff();}export function renderUpdateSummary(_0x58099e,_0x3de1ed){const _0x244977=a102_0x5925;if(_0x58099e[_0x244977(0x157)]===0x0)return _0x244977(0x168);const _0x1aee6a=['\x20\x20'+_0x58099e['length']+_0x244977(0x14f),_0x244977(0x154)+(_0x3de1ed[0x0]??_0x244977(0x156)),_0x244977(0x166)+(_0x3de1ed[0x1]??_0x244977(0x156)),'',_0x244977(0x162)+_0x58099e['join'](',\x20')];return _0x1aee6a['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x45117b,_0x418cbf){var _0x6a2c9f=a103_0x5a53,_0x2715a4=_0x45117b();while(!![]){try{var _0x1d5596=parseInt(_0x6a2c9f(0x80))/0x1*(parseInt(_0x6a2c9f(0x7c))/0x2)+parseInt(_0x6a2c9f(0x7f))/0x3*(parseInt(_0x6a2c9f(0x7d))/0x4)+-parseInt(_0x6a2c9f(0x86))/0x5*(-parseInt(_0x6a2c9f(0x7a))/0x6)+-parseInt(_0x6a2c9f(0x82))/0x7*(parseInt(_0x6a2c9f(0x84))/0x8)+parseInt(_0x6a2c9f(0x81))/0x9+-parseInt(_0x6a2c9f(0x85))/0xa*(-parseInt(_0x6a2c9f(0x83))/0xb)+-parseInt(_0x6a2c9f(0x7e))/0xc*(parseInt(_0x6a2c9f(0x7b))/0xd);if(_0x1d5596===_0x418cbf)break;else _0x2715a4['push'](_0x2715a4['shift']());}catch(_0x24e85d){_0x2715a4['push'](_0x2715a4['shift']());}}}(a103_0x1368,0xbd6c1));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';function a103_0x5a53(_0x1a33bb,_0x2ef96f){_0x1a33bb=_0x1a33bb-0x7a;var _0x136823=a103_0x1368();var _0x5a5316=_0x136823[_0x1a33bb];return _0x5a5316;}function a103_0x1368(){var _0x2bfa02=['3239292JLMueq','274101uIfuAJ','114332tyaZCr','8171028Jecwia','4829503HDFtFQ','11SSPUZP','8CAyGgR','819710epvSmV','326135BvBAcj','6huFNrV','65NwBOgl','26IWHzVm','12yYrhuv'];a103_0x1368=function(){return _0x2bfa02;};return a103_0x1368();}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_0x11ef(_0x194e84,_0x506771){_0x194e84=_0x194e84-0x6a;const _0x441e2c=a104_0x441e();let _0x11efdd=_0x441e2c[_0x194e84];return _0x11efdd;}(function(_0x5d7e1a,_0x1f2859){const _0x59c12b=a104_0x11ef,_0x2b89fc=_0x5d7e1a();while(!![]){try{const _0x539662=parseInt(_0x59c12b(0x79))/0x1*(parseInt(_0x59c12b(0x74))/0x2)+parseInt(_0x59c12b(0x6c))/0x3+parseInt(_0x59c12b(0x7f))/0x4*(parseInt(_0x59c12b(0x86))/0x5)+parseInt(_0x59c12b(0x8b))/0x6+parseInt(_0x59c12b(0x70))/0x7*(-parseInt(_0x59c12b(0x88))/0x8)+parseInt(_0x59c12b(0x6f))/0x9+-parseInt(_0x59c12b(0x78))/0xa;if(_0x539662===_0x1f2859)break;else _0x2b89fc['push'](_0x2b89fc['shift']());}catch(_0x4b4755){_0x2b89fc['push'](_0x2b89fc['shift']());}}}(a104_0x441e,0x96a87));import a104_0xaac258 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a104_0x1f1ed7 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x15309b){return _0x15309b['catch'](_0x2806f0=>{const _0x1609c5=a104_0x11ef;if(_0x2806f0?.[_0x1609c5(0x8c)]==='ExitPromptError')throw CliErrors[_0x1609c5(0x8e)]('Cancelled.');throw _0x2806f0;});}export function startSpinner(_0x1c0df0){const _0x45aee3=a104_0x11ef;return a104_0x1f1ed7({'text':_0x1c0df0,'color':'cyan'})[_0x45aee3(0x72)]();}export function stopSpinner(_0xc657cb,_0x4048de,_0x22ee98){const _0x186291=a104_0x11ef;_0x22ee98?_0xc657cb[_0x186291(0x84)](_0x4048de):_0xc657cb[_0x186291(0x83)](_0x4048de);}export async function askConfirm(_0x47e1a6){return onCancel(confirm({'message':_0x47e1a6,'theme':{'prefix':''}}));}export async function askJsUrl(_0x53ac0e){const _0x51adc2=a104_0x11ef;while(!![]){const _0x187de1=await onCancel(input({'message':_0x51adc2(0x7c),'default':_0x53ac0e,'theme':{'prefix':''}}));if(_0x187de1[_0x51adc2(0x82)]()==='')throw CliErrors[_0x51adc2(0x8e)](_0x51adc2(0x80));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x51adc2(0x77)](_0x187de1[_0x51adc2(0x82)]())){console[_0x51adc2(0x7e)](a104_0xaac258[_0x51adc2(0x7a)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x593fe4=startSpinner(_0x51adc2(0x6b));try{const _0x3529c5=await isUrlReachable(_0x187de1[_0x51adc2(0x82)]());stopSpinner(_0x593fe4,'JS\x20URL\x20checked',_0x3529c5);if(!_0x3529c5){console[_0x51adc2(0x7e)](a104_0xaac258[_0x51adc2(0x7a)](_0x51adc2(0x71)));continue;}return _0x187de1[_0x51adc2(0x82)]();}catch(_0x472121){stopSpinner(_0x593fe4,_0x51adc2(0x73),![]);throw _0x472121;}}}export async function askCssUrl(_0x3f7f7c){const _0x18f613=a104_0x11ef;while(!![]){const _0x42c45d=await onCancel(input({'message':_0x18f613(0x87),'default':_0x3f7f7c,'theme':{'prefix':''}}));if(_0x42c45d[_0x18f613(0x82)]()==='')throw CliErrors['cancelled'](_0x18f613(0x80));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x42c45d[_0x18f613(0x82)]())){console[_0x18f613(0x7e)](a104_0xaac258[_0x18f613(0x7a)](_0x18f613(0x91)));continue;}const _0x4a9fb9=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x3e0b0d=await isUrlReachable(_0x42c45d['trim']());stopSpinner(_0x4a9fb9,_0x18f613(0x92),_0x3e0b0d);if(!_0x3e0b0d){console[_0x18f613(0x7e)](a104_0xaac258[_0x18f613(0x7a)]('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x42c45d[_0x18f613(0x82)]();}catch(_0x5675ca){stopSpinner(_0x4a9fb9,_0x18f613(0x76),![]);throw _0x5675ca;}}}export async function selectPages(_0x1f5dab,_0x2d2af0,_0x528e25){const _0xae6769=a104_0x11ef,_0x6ed083=_0x1f5dab[_0xae6769(0x6a)](_0x25a216=>({'name':_0x25a216['label']+'\x20\x20'+(_0x2d2af0['has'](_0x25a216[_0xae6769(0x89)])?a104_0xaac258[_0xae6769(0x90)]('[already\x20on\x20platform]'):a104_0xaac258[_0xae6769(0x6d)](_0xae6769(0x8d))),'value':_0x25a216['label'],'checked':_0x528e25?_0x528e25[_0xae6769(0x85)](_0x25a216[_0xae6769(0x75)]):!_0x2d2af0[_0xae6769(0x81)](_0x25a216[_0xae6769(0x89)])}));if(_0x6ed083[_0xae6769(0x8a)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x3d7c81=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x6ed083,'loop':![],'theme':{'prefix':''}}));if(_0x3d7c81[_0xae6769(0x8a)]===0x0)throw new Error('No\x20menus\x20selected.');return _0x1f5dab['filter'](_0x195420=>_0x3d7c81[_0xae6769(0x85)](_0x195420[_0xae6769(0x75)]));}function a104_0x441e(){const _0x305974=['name','[new]','cancelled','isTTY','gray','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','CSS\x20URL\x20checked','map','\x20\x20Checking\x20JS\x20URL\x20reachability...','3419883dXHHQY','green','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','7329609qjsZKF','189bOcKff','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','start','JS\x20URL\x20check\x20failed','208130tCfJjH','label','CSS\x20URL\x20check\x20failed','test','20406920RXeEoG','11WAAfsf','red','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','\x20\x20JS\x20URL:','stdin','error','37588MzNpUH','Cancelled.','has','trim','fail','succeed','includes','160PuomXR','\x20\x20CSS\x20URL:','233352QsueIt','path','length','273414GegTif'];a104_0x441e=function(){return _0x305974;};return a104_0x441e();}export function isInteractive(){const _0x4388ff=a104_0x11ef;return process[_0x4388ff(0x7d)][_0x4388ff(0x8f)]===!![];}export function requireInteractive(){const _0x3b9cf2=a104_0x11ef;if(!isInteractive())throw new Error(_0x3b9cf2(0x7b)+_0x3b9cf2(0x6e));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x544b3b,_0xd38921){const _0x56cd57=a105_0x525f,_0x55ca0c=_0x544b3b();while(!![]){try{const _0xc5ca57=-parseInt(_0x56cd57(0xb8))/0x1+-parseInt(_0x56cd57(0xba))/0x2+-parseInt(_0x56cd57(0xb3))/0x3+parseInt(_0x56cd57(0xac))/0x4+-parseInt(_0x56cd57(0xaf))/0x5+parseInt(_0x56cd57(0xb7))/0x6+-parseInt(_0x56cd57(0xb0))/0x7*(-parseInt(_0x56cd57(0xb9))/0x8);if(_0xc5ca57===_0xd38921)break;else _0x55ca0c['push'](_0x55ca0c['shift']());}catch(_0x25ad16){_0x55ca0c['push'](_0x55ca0c['shift']());}}}(a105_0x488c,0x7fa04));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),'src/pages');function a105_0x488c(){const _0x19abc7=['964131AUPFpQ','2745632qGKpPa','638004DWbZdC','index.tsx','.tsx','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','replace','4086808XpWsxw','slice','push','1809470sAnFUl','28WKMAQL','match','trim','2323056tqSINk','endsWith','concat','join','3285702wuLfqN'];a105_0x488c=function(){return _0x19abc7;};return a105_0x488c();}function a105_0x525f(_0x3da6e7,_0x59c8a2){_0x3da6e7=_0x3da6e7-0xaa;const _0x488ccf=a105_0x488c();let _0x525fed=_0x488ccf[_0x3da6e7];return _0x525fed;}export function extractTitleFromComment(_0x2bdf42){const _0x5b7606=a105_0x525f;try{const _0x2d7041=readFileSync(_0x2bdf42,'utf-8'),_0x26b64d=_0x2d7041['match'](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x26b64d&&_0x26b64d[0x1]){const _0x39d03b=_0x26b64d[0x1],_0x3f4242=_0x39d03b[_0x5b7606(0xb1)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x3f4242&&_0x3f4242[0x1])return _0x3f4242[0x1][_0x5b7606(0xb2)]();}let _0x233e71=null;const _0x23a13e=_0x2d7041[_0x5b7606(0xb1)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x23a13e&&_0x23a13e[0x1]&&(_0x233e71=_0x23a13e[0x1]);if(!_0x233e71){const _0x522c82=_0x2d7041[_0x5b7606(0xb1)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x522c82&&_0x522c82[0x1]&&(_0x233e71=_0x522c82[0x1]);}if(_0x233e71){const _0x17eb16=new RegExp('\x5cb'+_0x233e71+_0x5b7606(0xaa)),_0x8f6aae=_0x2d7041[_0x5b7606(0xb1)](_0x17eb16);if(_0x8f6aae&&_0x8f6aae[0x1])return _0x8f6aae[0x1];return _0x233e71;}return null;}catch(_0x5caee1){return null;}}export function getLocalPages(_0x168a87=pagesDir,_0x27dc6b=pagesDir){let _0x49783c=[];const _0x1969df=readdirSync(_0x168a87);return _0x1969df['forEach'](_0x473d8b=>{const _0x3d1530=a105_0x525f,_0x51d221=join(_0x168a87,_0x473d8b),_0x48c74a=statSync(_0x51d221);if(_0x48c74a&&_0x48c74a['isDirectory']())_0x49783c=_0x49783c[_0x3d1530(0xb5)](getLocalPages(_0x51d221,_0x27dc6b));else{if(_0x473d8b[_0x3d1530(0xb4)](_0x3d1530(0xbc))){let _0x39021d=relative(_0x27dc6b,_0x51d221);_0x39021d['endsWith'](_0x3d1530(0xbb))?_0x39021d=_0x39021d[_0x3d1530(0xab)](/index\.tsx$/,''):_0x39021d=_0x39021d[_0x3d1530(0xab)](/\.tsx$/,'');_0x39021d[_0x3d1530(0xb4)](sep)&&(_0x39021d=_0x39021d[_0x3d1530(0xad)](0x0,-0x1));const _0x45c434=_0x39021d['split'](sep)[_0x3d1530(0xb6)]('/'),_0xc675c8=extractTitleFromComment(_0x51d221),_0x14e5fe=_0xc675c8||_0x45c434;_0x49783c[_0x3d1530(0xae)]({'path':_0x45c434['replaceAll']('$',':'),'label':_0x14e5fe});}}}),_0x49783c['filter'](_0x50f587=>_0x50f587['path']!=='');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1d4966,_0x147eae){const _0x370543=a106_0x34b5,_0x1893bd=_0x1d4966();while(!![]){try{const _0x189c47=-parseInt(_0x370543(0xd8))/0x1+-parseInt(_0x370543(0xd7))/0x2*(parseInt(_0x370543(0xce))/0x3)+-parseInt(_0x370543(0xe3))/0x4*(parseInt(_0x370543(0xe9))/0x5)+parseInt(_0x370543(0xd3))/0x6*(parseInt(_0x370543(0xd6))/0x7)+parseInt(_0x370543(0xe1))/0x8+-parseInt(_0x370543(0xd0))/0x9*(parseInt(_0x370543(0xdc))/0xa)+-parseInt(_0x370543(0xe0))/0xb*(-parseInt(_0x370543(0xdd))/0xc);if(_0x189c47===_0x147eae)break;else _0x1893bd['push'](_0x1893bd['shift']());}catch(_0x2cbc76){_0x1893bd['push'](_0x1893bd['shift']());}}}(a106_0x1402,0x19012));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(_0x50a727){const _0x40b8e4=a106_0x34b5,_0x1c1007=[];return!isValidJsHttpsUrl(_0x50a727)&&_0x1c1007[_0x40b8e4(0xd1)](_0x40b8e4(0xdb)),{'ok':_0x1c1007['length']===0x0,'errors':_0x1c1007};}export function validateCssUrl(_0x2a3cc8){const _0x149bb9=a106_0x34b5,_0x4cb8ca=[];return!isValidCssHttpsUrl(_0x2a3cc8)&&_0x4cb8ca['push'](_0x149bb9(0xd4)),{'ok':_0x4cb8ca['length']===0x0,'errors':_0x4cb8ca};}function a106_0x1402(){const _0x3ab7e4=['path','filter','join','39JorLXh','allSettled','227538sufjYg','push','trim','280578NLYFGY','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','extend','7dUlOwB','23972EkuFnt','18219wmfgdt','rejected','length','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','40uKupuX','411876KdqYnE','has','find','99iLsphC','271656VSrpht','JS\x20URL\x20is\x20unreachable','48176iaveDa','label','fulfilled','status','map','errors','5uESFwj','resources'];a106_0x1402=function(){return _0x3ab7e4;};return a106_0x1402();}export async function validateJsUrlReachable(_0x4a02d5){const _0x35a593=a106_0x34b5,_0x44c922=validateJsUrl(_0x4a02d5);if(!_0x44c922['ok'])return _0x44c922;const _0x28a728=await isUrlReachable(_0x4a02d5);if(!_0x28a728)_0x44c922['errors'][_0x35a593(0xd1)](_0x35a593(0xe2));return{'ok':_0x44c922[_0x35a593(0xe8)]['length']===0x0,'errors':_0x44c922[_0x35a593(0xe8)]};}export async function validateCssUrlReachable(_0x4d0e84){const _0x31e0c5=a106_0x34b5,_0x448998=validateCssUrl(_0x4d0e84);if(!_0x448998['ok'])return _0x448998;const _0x175207=await isUrlReachable(_0x4d0e84);if(!_0x175207)_0x448998[_0x31e0c5(0xe8)][_0x31e0c5(0xd1)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x448998[_0x31e0c5(0xe8)]['length']===0x0,'errors':_0x448998[_0x31e0c5(0xe8)]};}export function buildCompareRows(_0xb1f491,_0x48fdbb){const _0x3e86a9=a106_0x34b5;return _0xb1f491['map'](_0x1aed97=>({'label':_0x1aed97[_0x3e86a9(0xe4)],'path':_0x1aed97['path'],'local':!![],'online':_0x48fdbb[_0x3e86a9(0xde)](_0x1aed97['path'])}));}function a106_0x34b5(_0x4aaa4e,_0x366813){_0x4aaa4e=_0x4aaa4e-0xcd;const _0x14028e=a106_0x1402();let _0x34b501=_0x14028e[_0x4aaa4e];return _0x34b501;}export function filterNewPages(_0x3817db,_0x40ea80,_0x2ec1b0){const _0x416205=a106_0x34b5;if(_0x2ec1b0&&_0x2ec1b0[_0x416205(0xda)]>0x0){const _0x2b094e=new Set(_0x2ec1b0['map'](_0x6860a0=>_0x6860a0[_0x416205(0xd2)]())),_0x336f3b=_0x3817db['filter'](_0x50914f=>_0x2b094e[_0x416205(0xde)](_0x50914f[_0x416205(0xe4)]));if(_0x336f3b[_0x416205(0xda)]===0x0)throw new Error('No\x20local\x20pages\x20matched\x20labels:\x20'+[..._0x2b094e][_0x416205(0xcd)](',\x20'));return _0x336f3b;}return _0x3817db[_0x416205(0xec)](_0x306b36=>!_0x40ea80['has'](_0x306b36[_0x416205(0xeb)]));}export function filterPagesByLabels(_0x32d773,_0x15cd69){const _0x2b3937=a106_0x34b5,_0x488229=[],_0x467f29=[];for(const _0x315672 of _0x15cd69){const _0xa347fc=_0x315672['trim'](),_0x325e6a=_0x32d773[_0x2b3937(0xdf)](_0x4ab7c9=>_0x4ab7c9[_0x2b3937(0xe4)]===_0xa347fc);if(_0x325e6a)_0x488229[_0x2b3937(0xd1)](_0x325e6a);else _0x467f29[_0x2b3937(0xd1)](_0x315672);}return{'matched':_0x488229,'unmatched':_0x467f29};}export async function doCreateMenus(_0x416a5d,_0x39dbb5,_0x3261cd,_0x5a1ccd){const _0x15d71b=a106_0x34b5,_0x201b90=await createMenus(_0x416a5d,_0x39dbb5,_0x3261cd,_0x5a1ccd);return{'created':_0x201b90['length'],'failed':0x0,'labels':_0x3261cd[_0x15d71b(0xe7)](_0x28e958=>_0x28e958[_0x15d71b(0xe4)]),'menus':_0x201b90};}export function filterMenusWithResources(_0x12d450){const _0x577df6=a106_0x34b5;return _0x12d450[_0x577df6(0xec)](_0x431831=>_0x431831[_0x577df6(0xea)][_0x577df6(0xda)]>0x0);}export async function doUpdateCdnUrls(_0x4bc2b5,_0x10997a,_0x2be97c,_0x3c7af5){const _0x43770b=a106_0x34b5,_0xdf9b58=_0x2be97c[_0x43770b(0xec)](_0x2101df=>_0x2101df[_0x43770b(0xea)][_0x43770b(0xda)]>0x0),_0x2dd256=await Promise[_0x43770b(0xcf)](_0xdf9b58[_0x43770b(0xe7)](_0x1e66ef=>updateMenuCdnUrl(_0x4bc2b5,_0x10997a,{'id':_0x1e66ef['id'],'label':_0x1e66ef[_0x43770b(0xe4)],'path':_0x1e66ef[_0x43770b(0xeb)],'resources':_0x3c7af5,'extend':_0x1e66ef[_0x43770b(0xd5)]??null}))),_0x39a88f=_0x2dd256[_0x43770b(0xec)](_0x414f81=>_0x414f81['status']===_0x43770b(0xe5))[_0x43770b(0xe7)](_0x42af00=>_0x42af00['value']),_0x27b109=_0x2dd256[_0x43770b(0xec)](_0x3b8dc0=>_0x3b8dc0[_0x43770b(0xe6)]===_0x43770b(0xd9))[_0x43770b(0xda)];return{'updated':_0x39a88f['length'],'failed':_0x27b109,'menus':_0x39a88f};}export async function fetchMenuData(_0x338b8d,_0x1a45e9){const _0x503b4f=a106_0x34b5,_0x23cf1e=getLocalPages(),_0xe796c=await getOnlineMenuList(_0x338b8d,_0x1a45e9),_0x5dc9b4=new Set(_0xe796c[_0x503b4f(0xe7)](_0x28283b=>_0x28283b[_0x503b4f(0xeb)]));return{'localPages':_0x23cf1e,'onlineMenuList':_0xe796c,'onlinePaths':_0x5dc9b4};}export async function fetchOnlineMenuList(_0x1dc21f,_0x2612b5){return getOnlineMenuList(_0x1dc21f,_0x2612b5);}
|