@lovrabet/rabetbase-cli 2.2.3-beta.1 → 2.2.3-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/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.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-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-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/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/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-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/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/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/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.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/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.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 a77_0x2f2fb7=a77_0x2a45;(function(_0x569dcc,_0x5293f8){const _0x10d54f=a77_0x2a45,_0x334a1a=_0x569dcc();while(!![]){try{const _0x3ce34e=parseInt(_0x10d54f(0xa0))/0x1*(-parseInt(_0x10d54f(0x96))/0x2)+parseInt(_0x10d54f(0x88))/0x3*(-parseInt(_0x10d54f(0xc7))/0x4)+-parseInt(_0x10d54f(0xb4))/0x5*(-parseInt(_0x10d54f(0x90))/0x6)+-parseInt(_0x10d54f(0xa3))/0x7+-parseInt(_0x10d54f(0xe1))/0x8*(parseInt(_0x10d54f(0x9c))/0x9)+parseInt(_0x10d54f(0xa5))/0xa*(-parseInt(_0x10d54f(0xa9))/0xb)+parseInt(_0x10d54f(0xb0))/0xc*(parseInt(_0x10d54f(0xb9))/0xd);if(_0x3ce34e===_0x5293f8)break;else _0x334a1a['push'](_0x334a1a['shift']());}catch(_0x329215){_0x334a1a['push'](_0x334a1a['shift']());}}}(a77_0x4a08,0x4bf34));import a77_0x216b3a 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';function a77_0x4a08(){const _0x6a169c=['\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','apps','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','read','arch','env','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','padEnd','\x20\x20─','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','pageSize','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20(default)','defaultApp','\x20\x20Config\x20JSON','856PNvZav','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','4653Mlffys','(no\x20file)','format','Global','log','(set\x20via\x20file,\x20length=','bold','(not\x20found)','14634WKJxDJ','check','currentApp','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Auth','✗\x20Invalid\x20JSON','2lGCyAZ','yellow','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','value','green','cookie','30339XpomGJ','✓\x20Valid\x20JSON','doctor','source','481259xJbJjj','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','1613857ADPEFd','riskLevel','940kSJQyX','(default)','(none)','⚠\x20Empty\x20(treated\x20as\x20{})','41503RXZyii','gray','raw','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','status','unknown','repeat','3612ygtfMg','\x20\x20Apps','keys','\x20\x20\x20\x20accessKey:\x20\x20','315cfFzon','apiDir','\x20←\x20current','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','78754dZscqI','red','appcode','verbose','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','locale','✗\x20Expired','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','appCode','slice','\x20doctor','missing','✓\x20Valid','(set,\x20length=','616VkmNCR','accessKey','(default:\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'];a77_0x4a08=function(){return _0x6a169c;};return a77_0x4a08();}function a77_0x2a45(_0xa9f290,_0xca1dcb){_0xa9f290=_0xa9f290-0x87;const _0x4a088d=a77_0x4a08();let _0x2a4558=_0x4a088d[_0xa9f290];return _0x2a4558;}import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x21d2e9){const _0x24b7f8=a77_0x2a45,_0x3a4a0a=GIT_COMMIT!==_0x24b7f8(0xae)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x24b7f8(0xc2)](0x0,0xa)+')':VERSION,_0xf3ed5c=buildConfigFromFlags({}),_0x44aae6=getCookie();console[_0x24b7f8(0x8c)](),console[_0x24b7f8(0x8c)](a77_0x216b3a['bold'](CLI_BIN_NAME+_0x24b7f8(0xc3))),console[_0x24b7f8(0x8c)](a77_0x216b3a[_0x24b7f8(0xaa)]('─'[_0x24b7f8(0xaf)](0x32))),console['log'](_0x24b7f8(0xce)+_0x3a4a0a),console[_0x24b7f8(0x8c)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x24b7f8(0xd1)]),console[_0x24b7f8(0x8c)](_0x24b7f8(0xcb)+process['platform']+'\x20'+process[_0x24b7f8(0xd3)]),console['log'](),console[_0x24b7f8(0x8c)](a77_0x216b3a[_0x24b7f8(0x8e)](_0x24b7f8(0xda))),console[_0x24b7f8(0x8c)](a77_0x216b3a[_0x24b7f8(0xaa)](_0x24b7f8(0xd8)[_0x24b7f8(0xaf)](0x1e)));const _0x5a16a3=getGlobalConfigPath(),_0x4a8139=getProjectConfigPath();console[_0x24b7f8(0x8c)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5a16a3||a77_0x216b3a['gray'](_0x24b7f8(0x8f)))),console[_0x24b7f8(0x8c)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4a8139||a77_0x216b3a['gray'](_0x24b7f8(0x8f)))),console[_0x24b7f8(0x8c)](),console[_0x24b7f8(0x8c)](a77_0x216b3a[_0x24b7f8(0x8e)](_0x24b7f8(0xe0))),console['log'](a77_0x216b3a[_0x24b7f8(0xaa)]('\x20\x20─'['repeat'](0x1e)));const _0x488c2e=(_0x348f44,_0x400a57)=>{const _0x116d84=_0x24b7f8;if(!_0x400a57){console[_0x116d84(0x8c)]('\x20\x20'+_0x348f44['padEnd'](0x11)+'\x20'+a77_0x216b3a[_0x116d84(0xaa)](_0x116d84(0x89)));return;}const _0x2daaf2=inspectCliConfigJsonFile(_0x400a57);if(_0x2daaf2[_0x116d84(0xad)]==='ok')console[_0x116d84(0x8c)]('\x20\x20'+_0x348f44[_0x116d84(0xd7)](0x11)+'\x20'+a77_0x216b3a[_0x116d84(0x9a)](_0x116d84(0x9d)));else{if(_0x2daaf2['status']==='empty')console[_0x116d84(0x8c)]('\x20\x20'+_0x348f44[_0x116d84(0xd7)](0x11)+'\x20'+a77_0x216b3a[_0x116d84(0x97)](_0x116d84(0xa8)));else _0x2daaf2[_0x116d84(0xad)]===_0x116d84(0xc4)?console[_0x116d84(0x8c)]('\x20\x20'+_0x348f44[_0x116d84(0xd7)](0x11)+'\x20'+a77_0x216b3a['gray'](_0x116d84(0xb8))):(console[_0x116d84(0x8c)]('\x20\x20'+_0x348f44['padEnd'](0x11)+'\x20'+a77_0x216b3a['red'](_0x116d84(0x95))),console[_0x116d84(0x8c)]('\x20\x20'+''[_0x116d84(0xd7)](0x11)+'\x20'+a77_0x216b3a[_0x116d84(0xba)](_0x2daaf2['message'])));}};_0x488c2e(_0x24b7f8(0x8b),_0x5a16a3),_0x488c2e('Project',_0x4a8139),console[_0x24b7f8(0x8c)](),console[_0x24b7f8(0x8c)](a77_0x216b3a[_0x24b7f8(0x8e)]('\x20\x20Merged\x20Config')),console[_0x24b7f8(0x8c)](a77_0x216b3a[_0x24b7f8(0xaa)]('\x20\x20─'[_0x24b7f8(0xaf)](0x1e))),console[_0x24b7f8(0x8c)](_0x24b7f8(0xd0)+(_0xf3ed5c[_0x24b7f8(0xc1)]||a77_0x216b3a[_0x24b7f8(0xba)]('(not\x20set)'))),console[_0x24b7f8(0x8c)](_0x24b7f8(0xd9)+_0xf3ed5c[_0x24b7f8(0xd4)]),console[_0x24b7f8(0x8c)](_0x24b7f8(0xa1)+_0xf3ed5c[_0x24b7f8(0xbe)]),console[_0x24b7f8(0x8c)](_0x24b7f8(0x87)+_0xf3ed5c[_0x24b7f8(0xb5)]),console[_0x24b7f8(0x8c)](_0x24b7f8(0xd5)+(_0xf3ed5c[_0x24b7f8(0xdf)]||a77_0x216b3a[_0x24b7f8(0xaa)]('(none)'))),console[_0x24b7f8(0x8c)](_0x24b7f8(0x93)+(_0xf3ed5c[_0x24b7f8(0x92)]||a77_0x216b3a[_0x24b7f8(0xaa)](_0x24b7f8(0xa7)))),console['log']('\x20\x20explicitAppName:\x20'+(_0xf3ed5c['explicitAppName']||a77_0x216b3a[_0x24b7f8(0xaa)](_0x24b7f8(0xa7)))),console[_0x24b7f8(0x8c)](_0x24b7f8(0xc0)+(_0xf3ed5c[_0x24b7f8(0x8a)]||a77_0x216b3a[_0x24b7f8(0xaa)](_0x24b7f8(0xc9)+DEFAULT_CONFIG_VALUES[_0x24b7f8(0x8a)]+')'))),console[_0x24b7f8(0x8c)](_0x24b7f8(0xca)+(_0xf3ed5c[_0x24b7f8(0xdb)]??a77_0x216b3a[_0x24b7f8(0xaa)](_0x24b7f8(0xa6)))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0xf3ed5c[_0x24b7f8(0xa4)]),console['log'](_0x24b7f8(0xb7)+_0xf3ed5c[_0x24b7f8(0xbc)]),console[_0x24b7f8(0x8c)](_0x24b7f8(0xbd)+(_0xf3ed5c[_0x24b7f8(0x9b)]?a77_0x216b3a[_0x24b7f8(0x9a)](_0x24b7f8(0xc6)+_0xf3ed5c[_0x24b7f8(0x9b)][_0x24b7f8(0xa2)]+')'):_0x44aae6?a77_0x216b3a['green'](_0x24b7f8(0x8d)+_0x44aae6['length']+')'):a77_0x216b3a[_0x24b7f8(0xaa)](_0x24b7f8(0xa7))));const _0x3e88c0=Object[_0x24b7f8(0xb2)](_0xf3ed5c['apps']);if(_0x3e88c0[_0x24b7f8(0xa2)]>0x0){console['log'](),console[_0x24b7f8(0x8c)](a77_0x216b3a[_0x24b7f8(0x8e)](_0x24b7f8(0xb1))),console[_0x24b7f8(0x8c)](a77_0x216b3a[_0x24b7f8(0xaa)]('\x20\x20─'[_0x24b7f8(0xaf)](0x1e)));for(const _0x3c4dc2 of _0x3e88c0){const _0x36537f=_0xf3ed5c[_0x24b7f8(0xcf)][_0x3c4dc2],_0x1240b8=_0x3c4dc2===_0xf3ed5c[_0x24b7f8(0xdf)],_0xd2ca72=_0x3c4dc2===_0xf3ed5c[_0x24b7f8(0x92)],_0x536066=_0xd2ca72?a77_0x216b3a[_0x24b7f8(0x9a)](_0x24b7f8(0xb6)):'',_0x31a19e=_0x1240b8?_0x24b7f8(0xde):'';console[_0x24b7f8(0x8c)]('\x20\x20'+_0x3c4dc2+_0x31a19e+_0x536066),console[_0x24b7f8(0x8c)](_0x24b7f8(0xdd)+_0x36537f[_0x24b7f8(0xbb)]);const _0x160867=buildAppDoctorFields(_0x36537f,{'env':_0xf3ed5c[_0x24b7f8(0xd4)],'apiDir':_0xf3ed5c[_0x24b7f8(0xab)][_0x24b7f8(0xb5)]||DEFAULT_CONFIG_VALUES[_0x24b7f8(0xb5)],'cookie':_0xf3ed5c[_0x24b7f8(0x9b)]||_0x44aae6||undefined,'accessKey':_0xf3ed5c[_0x24b7f8(0xc8)]});console[_0x24b7f8(0x8c)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x160867['env'][_0x24b7f8(0x99)]+'\x20\x20'+a77_0x216b3a[_0x24b7f8(0xaa)]('('+_0x160867['env'][_0x24b7f8(0x9f)]+')')),console[_0x24b7f8(0x8c)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x160867['apiDir'][_0x24b7f8(0x99)]+'\x20\x20'+a77_0x216b3a[_0x24b7f8(0xaa)]('('+_0x160867[_0x24b7f8(0xb5)][_0x24b7f8(0x9f)]+')'));const _0x169591=_0x160867['cookie']['value']?a77_0x216b3a[_0x24b7f8(0x9a)](_0x24b7f8(0xc6)+_0x160867[_0x24b7f8(0x9b)][_0x24b7f8(0x99)][_0x24b7f8(0xa2)]+')'):a77_0x216b3a['gray']('(none)');console[_0x24b7f8(0x8c)](_0x24b7f8(0x98)+_0x169591+'\x20\x20'+a77_0x216b3a['gray']('('+_0x160867[_0x24b7f8(0x9b)]['source']+')'));const _0x2fcaa4=_0x160867[_0x24b7f8(0xc8)][_0x24b7f8(0x99)]?a77_0x216b3a[_0x24b7f8(0x9a)](_0x24b7f8(0xc6)+_0x160867[_0x24b7f8(0xc8)]['value'][_0x24b7f8(0xa2)]+')'):a77_0x216b3a[_0x24b7f8(0xaa)](_0x24b7f8(0xa7));console['log'](_0x24b7f8(0xb3)+_0x2fcaa4+'\x20\x20'+a77_0x216b3a[_0x24b7f8(0xaa)]('('+_0x160867['accessKey'][_0x24b7f8(0x9f)]+')'));}}console['log'](),console[_0x24b7f8(0x8c)](a77_0x216b3a[_0x24b7f8(0x8e)]('\x20\x20API\x20Endpoints')),console[_0x24b7f8(0x8c)](a77_0x216b3a[_0x24b7f8(0xaa)](_0x24b7f8(0xd8)['repeat'](0x1e))),console['log'](_0x24b7f8(0xac)+getApiDomain()),console[_0x24b7f8(0x8c)](_0x24b7f8(0xcc)+getUserDomain()),console[_0x24b7f8(0x8c)](_0x24b7f8(0xd6)+getRuntimeDomain()),console[_0x24b7f8(0x8c)](),console['log'](a77_0x216b3a[_0x24b7f8(0x8e)](_0x24b7f8(0x94))),console[_0x24b7f8(0x8c)](a77_0x216b3a[_0x24b7f8(0xaa)](_0x24b7f8(0xd8)[_0x24b7f8(0xaf)](0x1e)));if(_0x44aae6){const _0x504e7a=await getIsSessionValid();console['log'](_0x24b7f8(0xcd)+(_0x504e7a?a77_0x216b3a[_0x24b7f8(0x9a)](_0x24b7f8(0xc5)):a77_0x216b3a[_0x24b7f8(0xba)](_0x24b7f8(0xbf))));}else console[_0x24b7f8(0x8c)](_0x24b7f8(0xcd)+a77_0x216b3a[_0x24b7f8(0xba)]('✗\x20Not\x20logged\x20in'));return console[_0x24b7f8(0x8c)](),{'ok':!![]};}export const doctorDefinition={'service':a77_0x2f2fb7(0x9e),'command':a77_0x2f2fb7(0x91),'description':a77_0x2f2fb7(0xdc),'risk':a77_0x2f2fb7(0xd2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a77_0x59cc21=a77_0x1bb5;function a77_0x1bb5(_0x405d0c,_0x19f2dc){_0x405d0c=_0x405d0c-0x8c;const _0x5de5ee=a77_0x5de5();let _0x1bb570=_0x5de5ee[_0x405d0c];return _0x1bb570;}(function(_0x3f62af,_0x22996c){const _0x238594=a77_0x1bb5,_0x19ba58=_0x3f62af();while(!![]){try{const _0x11095e=parseInt(_0x238594(0xa3))/0x1+parseInt(_0x238594(0x97))/0x2+-parseInt(_0x238594(0xb5))/0x3*(-parseInt(_0x238594(0xa8))/0x4)+parseInt(_0x238594(0xd1))/0x5+parseInt(_0x238594(0xa2))/0x6+parseInt(_0x238594(0x92))/0x7*(-parseInt(_0x238594(0xaf))/0x8)+parseInt(_0x238594(0x8e))/0x9*(-parseInt(_0x238594(0x99))/0xa);if(_0x11095e===_0x22996c)break;else _0x19ba58['push'](_0x19ba58['shift']());}catch(_0x190751){_0x19ba58['push'](_0x19ba58['shift']());}}}(a77_0x5de5,0x31dcb));import a77_0x5ed719 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a77_0x5de5(){const _0x57962e=['red','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','explicitAppName','(none)','622360njcoqP','⚠\x20Empty\x20(treated\x20as\x20{})','platform','(not\x20set)','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','cookie','3vmtHTK','currentApp','✗\x20Not\x20logged\x20in','check','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20←\x20current','✗\x20Invalid\x20JSON','unknown','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','locale','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','defaultApp','raw','log','padEnd','\x20\x20Config\x20Files','length','(not\x20found)','(set,\x20length=','empty','Project','\x20\x20runtimeDomain:\x20\x20\x20','✗\x20Expired','repeat','gray','1973080QEBivP','status','yellow','apiDir','appCode','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','bold','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','green','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','\x20\x20explicitAppName:\x20','read','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','pageSize','(missing)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','6777081aUhUUc','format','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(default)','7vNlaup','env','riskLevel','missing','accessKey','505592hijKIu','✓\x20Valid\x20JSON','10taYHjh','\x20\x20Config\x20JSON','\x20doctor','Global','value','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','\x20\x20Auth','586266CbQdNz','33386YoZTLT','source','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','apps','1026120nhdYhI','keys'];a77_0x5de5=function(){return _0x57962e;};return a77_0x5de5();}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(_0x4f62ab){const _0x5541ac=a77_0x1bb5,_0x15806a=GIT_COMMIT!==_0x5541ac(0xbe)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x143dec=buildConfigFromFlags({}),_0x22781e=getCookie();console['log'](),console[_0x5541ac(0xc5)](a77_0x5ed719[_0x5541ac(0xda)](CLI_BIN_NAME+_0x5541ac(0x9b))),console[_0x5541ac(0xc5)](a77_0x5ed719[_0x5541ac(0xd0)]('─'[_0x5541ac(0xcf)](0x32))),console[_0x5541ac(0xc5)](_0x5541ac(0xbb)+_0x15806a),console[_0x5541ac(0xc5)](_0x5541ac(0x90)+process['version']),console['log'](_0x5541ac(0xa6)+process[_0x5541ac(0xb1)]+'\x20'+process['arch']),console[_0x5541ac(0xc5)](),console[_0x5541ac(0xc5)](a77_0x5ed719[_0x5541ac(0xda)](_0x5541ac(0xc7))),console[_0x5541ac(0xc5)](a77_0x5ed719[_0x5541ac(0xd0)](_0x5541ac(0xa0)['repeat'](0x1e)));const _0xa278bf=getGlobalConfigPath(),_0x246023=getProjectConfigPath();console[_0x5541ac(0xc5)](_0x5541ac(0xdb)+(_0xa278bf||a77_0x5ed719[_0x5541ac(0xd0)](_0x5541ac(0xc9)))),console[_0x5541ac(0xc5)](_0x5541ac(0x8d)+(_0x246023||a77_0x5ed719[_0x5541ac(0xd0)](_0x5541ac(0xc9)))),console['log'](),console['log'](a77_0x5ed719['bold'](_0x5541ac(0x9a))),console[_0x5541ac(0xc5)](a77_0x5ed719[_0x5541ac(0xd0)](_0x5541ac(0xa0)[_0x5541ac(0xcf)](0x1e)));const _0x23db1c=(_0x4aea68,_0x102433)=>{const _0x1c2d56=_0x5541ac;if(!_0x102433){console[_0x1c2d56(0xc5)]('\x20\x20'+_0x4aea68[_0x1c2d56(0xc6)](0x11)+'\x20'+a77_0x5ed719[_0x1c2d56(0xd0)](_0x1c2d56(0xde)));return;}const _0x38483b=inspectCliConfigJsonFile(_0x102433);if(_0x38483b[_0x1c2d56(0xd2)]==='ok')console[_0x1c2d56(0xc5)]('\x20\x20'+_0x4aea68[_0x1c2d56(0xc6)](0x11)+'\x20'+a77_0x5ed719[_0x1c2d56(0xdc)](_0x1c2d56(0x98)));else{if(_0x38483b[_0x1c2d56(0xd2)]===_0x1c2d56(0xcb))console['log']('\x20\x20'+_0x4aea68[_0x1c2d56(0xc6)](0x11)+'\x20'+a77_0x5ed719[_0x1c2d56(0xd3)](_0x1c2d56(0xb0)));else _0x38483b[_0x1c2d56(0xd2)]===_0x1c2d56(0x95)?console[_0x1c2d56(0xc5)]('\x20\x20'+_0x4aea68['padEnd'](0x11)+'\x20'+a77_0x5ed719[_0x1c2d56(0xd0)](_0x1c2d56(0x8c))):(console['log']('\x20\x20'+_0x4aea68[_0x1c2d56(0xc6)](0x11)+'\x20'+a77_0x5ed719[_0x1c2d56(0xaa)](_0x1c2d56(0xbd))),console[_0x1c2d56(0xc5)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a77_0x5ed719[_0x1c2d56(0xaa)](_0x38483b['message'])));}};_0x23db1c(_0x5541ac(0x9c),_0xa278bf),_0x23db1c(_0x5541ac(0xcc),_0x246023),console[_0x5541ac(0xc5)](),console[_0x5541ac(0xc5)](a77_0x5ed719[_0x5541ac(0xda)]('\x20\x20Merged\x20Config')),console[_0x5541ac(0xc5)](a77_0x5ed719[_0x5541ac(0xd0)](_0x5541ac(0xa0)['repeat'](0x1e))),console[_0x5541ac(0xc5)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x143dec[_0x5541ac(0xd5)]||a77_0x5ed719['red'](_0x5541ac(0xb2)))),console[_0x5541ac(0xc5)](_0x5541ac(0xb9)+_0x143dec[_0x5541ac(0x93)]),console[_0x5541ac(0xc5)](_0x5541ac(0x9e)+_0x143dec[_0x5541ac(0xc1)]),console[_0x5541ac(0xc5)](_0x5541ac(0xab)+_0x143dec[_0x5541ac(0xd4)]),console[_0x5541ac(0xc5)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x143dec[_0x5541ac(0xc3)]||a77_0x5ed719['gray'](_0x5541ac(0xae)))),console[_0x5541ac(0xc5)](_0x5541ac(0xd7)+(_0x143dec[_0x5541ac(0xb6)]||a77_0x5ed719[_0x5541ac(0xd0)](_0x5541ac(0xae)))),console[_0x5541ac(0xc5)](_0x5541ac(0xdf)+(_0x143dec[_0x5541ac(0xad)]||a77_0x5ed719[_0x5541ac(0xd0)](_0x5541ac(0xae)))),console['log'](_0x5541ac(0xe1)+(_0x143dec[_0x5541ac(0x8f)]||a77_0x5ed719[_0x5541ac(0xd0)](_0x5541ac(0xac)+DEFAULT_CONFIG_VALUES[_0x5541ac(0x8f)]+')'))),console[_0x5541ac(0xc5)](_0x5541ac(0x9f)+(_0x143dec[_0x5541ac(0xe3)]??a77_0x5ed719[_0x5541ac(0xd0)]('(default)'))),console[_0x5541ac(0xc5)](_0x5541ac(0xba)+_0x143dec[_0x5541ac(0x94)]),console[_0x5541ac(0xc5)](_0x5541ac(0xdd)+_0x143dec['verbose']),console['log']('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x143dec[_0x5541ac(0xb4)]?a77_0x5ed719[_0x5541ac(0xdc)](_0x5541ac(0xca)+_0x143dec[_0x5541ac(0xb4)][_0x5541ac(0xc8)]+')'):_0x22781e?a77_0x5ed719[_0x5541ac(0xdc)]('(set\x20via\x20file,\x20length='+_0x22781e[_0x5541ac(0xc8)]+')'):a77_0x5ed719[_0x5541ac(0xd0)](_0x5541ac(0xae))));const _0x5c1492=Object[_0x5541ac(0xa9)](_0x143dec[_0x5541ac(0xa7)]);if(_0x5c1492[_0x5541ac(0xc8)]>0x0){console['log'](),console[_0x5541ac(0xc5)](a77_0x5ed719[_0x5541ac(0xda)]('\x20\x20Apps')),console[_0x5541ac(0xc5)](a77_0x5ed719[_0x5541ac(0xd0)](_0x5541ac(0xa0)[_0x5541ac(0xcf)](0x1e)));for(const _0x5c68bf of _0x5c1492){const _0x3f8f15=_0x143dec[_0x5541ac(0xa7)][_0x5c68bf],_0x319527=_0x5c68bf===_0x143dec[_0x5541ac(0xc3)],_0x528fdb=_0x5c68bf===_0x143dec['currentApp'],_0xc8d1a3=_0x528fdb?a77_0x5ed719[_0x5541ac(0xdc)](_0x5541ac(0xbc)):'',_0x1a299c=_0x319527?_0x5541ac(0x91):'';console[_0x5541ac(0xc5)]('\x20\x20'+_0x5c68bf+_0x1a299c+_0xc8d1a3),console[_0x5541ac(0xc5)](_0x5541ac(0xc0)+_0x3f8f15['appcode']);const _0x29c49b=buildAppDoctorFields(_0x3f8f15,{'env':_0x143dec['env'],'apiDir':_0x143dec[_0x5541ac(0xc4)][_0x5541ac(0xd4)]||DEFAULT_CONFIG_VALUES[_0x5541ac(0xd4)],'cookie':_0x143dec['cookie']||_0x22781e||undefined,'accessKey':_0x143dec[_0x5541ac(0x96)]});console[_0x5541ac(0xc5)](_0x5541ac(0xb3)+_0x29c49b[_0x5541ac(0x93)][_0x5541ac(0x9d)]+'\x20\x20'+a77_0x5ed719[_0x5541ac(0xd0)]('('+_0x29c49b[_0x5541ac(0x93)]['source']+')')),console[_0x5541ac(0xc5)](_0x5541ac(0xbf)+_0x29c49b[_0x5541ac(0xd4)][_0x5541ac(0x9d)]+'\x20\x20'+a77_0x5ed719[_0x5541ac(0xd0)]('('+_0x29c49b['apiDir'][_0x5541ac(0xa4)]+')'));const _0x3910c2=_0x29c49b['cookie'][_0x5541ac(0x9d)]?a77_0x5ed719[_0x5541ac(0xdc)](_0x5541ac(0xca)+_0x29c49b[_0x5541ac(0xb4)]['value']['length']+')'):a77_0x5ed719[_0x5541ac(0xd0)](_0x5541ac(0xae));console[_0x5541ac(0xc5)](_0x5541ac(0xd6)+_0x3910c2+'\x20\x20'+a77_0x5ed719[_0x5541ac(0xd0)]('('+_0x29c49b[_0x5541ac(0xb4)]['source']+')'));const _0xc8e981=_0x29c49b[_0x5541ac(0x96)]['value']?a77_0x5ed719[_0x5541ac(0xdc)](_0x5541ac(0xca)+_0x29c49b['accessKey'][_0x5541ac(0x9d)][_0x5541ac(0xc8)]+')'):a77_0x5ed719[_0x5541ac(0xd0)](_0x5541ac(0xae));console[_0x5541ac(0xc5)](_0x5541ac(0xe2)+_0xc8e981+'\x20\x20'+a77_0x5ed719[_0x5541ac(0xd0)]('('+_0x29c49b[_0x5541ac(0x96)][_0x5541ac(0xa4)]+')'));}}console[_0x5541ac(0xc5)](),console[_0x5541ac(0xc5)](a77_0x5ed719[_0x5541ac(0xda)](_0x5541ac(0xd8))),console[_0x5541ac(0xc5)](a77_0x5ed719[_0x5541ac(0xd0)](_0x5541ac(0xa0)[_0x5541ac(0xcf)](0x1e))),console[_0x5541ac(0xc5)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x5541ac(0xc5)](_0x5541ac(0xc2)+getUserDomain()),console[_0x5541ac(0xc5)](_0x5541ac(0xcd)+getRuntimeDomain()),console['log'](),console[_0x5541ac(0xc5)](a77_0x5ed719['bold'](_0x5541ac(0xa1))),console['log'](a77_0x5ed719[_0x5541ac(0xd0)]('\x20\x20─'['repeat'](0x1e)));if(_0x22781e){const _0x10058d=await getIsSessionValid();console[_0x5541ac(0xc5)](_0x5541ac(0xa5)+(_0x10058d?a77_0x5ed719['green']('✓\x20Valid'):a77_0x5ed719['red'](_0x5541ac(0xce))));}else console[_0x5541ac(0xc5)](_0x5541ac(0xa5)+a77_0x5ed719[_0x5541ac(0xaa)](_0x5541ac(0xb7)));return console[_0x5541ac(0xc5)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a77_0x59cc21(0xb8),'description':a77_0x59cc21(0xd9),'risk':a77_0x59cc21(0xe0),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a78_0x4b1216=a78_0x2a90;(function(_0x14ed39,_0x3e07af){const _0x1f8dd5=a78_0x2a90,_0x49ff3b=_0x14ed39();while(!![]){try{const _0x16a84a=parseInt(_0x1f8dd5(0x1c1))/0x1*(-parseInt(_0x1f8dd5(0x1ab))/0x2)+-parseInt(_0x1f8dd5(0x1b4))/0x3*(-parseInt(_0x1f8dd5(0x1a8))/0x4)+-parseInt(_0x1f8dd5(0x1ac))/0x5*(parseInt(_0x1f8dd5(0x1d1))/0x6)+-parseInt(_0x1f8dd5(0x1af))/0x7+parseInt(_0x1f8dd5(0x1b2))/0x8*(-parseInt(_0x1f8dd5(0x1bc))/0x9)+-parseInt(_0x1f8dd5(0x1c6))/0xa*(parseInt(_0x1f8dd5(0x1c0))/0xb)+parseInt(_0x1f8dd5(0x1b8))/0xc;if(_0x16a84a===_0x3e07af)break;else _0x49ff3b['push'](_0x49ff3b['shift']());}catch(_0x4b9d5c){_0x49ff3b['push'](_0x49ff3b['shift']());}}}(a78_0x1bca,0xe380c));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';function a78_0x1bca(){const _0x4f61f4=['valid','89937LICaPi','boolean','yes','defaultApp','311179hleLOa','2VqNQZj','\x20\x20Env:\x20','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','validation','some','200eJKKTQ','appcode','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','log','project','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','Auto-confirm\x20prompts','toLocaleString','appCode','message','global','66dPblUE','map','\x20\x20Apps:\x20','join','str','检测到旧配置文件,正在自动升级...\x0a','production','556pXZuZZ','\x20\x20Default:\x20','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','124936UByLPl','647135nfvnZe','string','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','11767952pMngLq','\x0a✓\x20Successfully\x20initialized\x20','cwd','144inuFye','env','8301kfCEDK','../../commands/project/init.js','Target\x20environment','write','54271944Mgdqod','bool','\x20\x20Config:\x20'];a78_0x1bca=function(){return _0x4f61f4;};return a78_0x1bca();}import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';function a78_0x2a90(_0x21886e,_0x85a5b1){_0x21886e=_0x21886e-0x1a5;const _0x1bcafa=a78_0x1bca();let _0x2a90c4=_0x1bcafa[_0x21886e];return _0x2a90c4;}import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x3c4626){return{'appCode':_0x3c4626,'appName':_0x3c4626};}function writeInitConfig(_0x49c91e,_0x3b3f62,_0x33eff7){const _0x3edf59=a78_0x2a90,_0x46f98f=resolveWriteConfigPath(_0x49c91e),_0x1d1dc4=buildCanonicalProjectConfig({},{'appCodes':_0x3b3f62[_0x3edf59(0x1d2)](_0x3c46b3=>_0x3c46b3[_0x3edf59(0x1ce)]),'env':_0x33eff7,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x3edf59(0x1cd)]()}});writeConfigFile(_0x46f98f,_0x1d1dc4);const _0x1ce666=_0x49c91e===_0x3edf59(0x1d0)?_0x3edf59(0x1d0):_0x3edf59(0x1ca);console['log'](_0x3edf59(0x1b0)+_0x1ce666+'\x20config'),console[_0x3edf59(0x1c9)](_0x3edf59(0x1d3)+_0x3b3f62[_0x3edf59(0x1d2)](_0x276bb9=>_0x276bb9[_0x3edf59(0x1ce)])[_0x3edf59(0x1d4)](',\x20')),console[_0x3edf59(0x1c9)](_0x3edf59(0x1a9)+_0x1d1dc4[_0x3edf59(0x1bf)]),console['log'](_0x3edf59(0x1c2)+_0x1d1dc4[_0x3edf59(0x1b3)]),console['log'](_0x3edf59(0x1ba)+_0x46f98f);}async function runSmartInit(_0x3c7bcd){const _0x210d4e=a78_0x2a90,_0xb1114a=process[_0x210d4e(0x1b1)](),_0x1e574d=_0x3c7bcd[_0x210d4e(0x1b9)]('global')?'global':'project',_0x1e8f0e=_0x3c7bcd[_0x210d4e(0x1a5)](_0x210d4e(0x1b3))||_0x210d4e(0x1a7),_0x1a187d=_0x3c7bcd['str'](_0x210d4e(0x1c7))||undefined,_0x1b3ac1=_0x3c7bcd['bool'](_0x210d4e(0x1ca));if(_0x1b3ac1){const {initConfig:_0x3db221}=await import(_0x210d4e(0x1b5));return _0x3db221({'appcode':_0x1a187d,'env':_0x1e8f0e,'autoYes':_0x3c7bcd['bool'](_0x210d4e(0x1be))});}if(_0x1e574d===_0x210d4e(0x1ca)){const _0x26c704=existsSync(resolve(_0xb1114a,NEW_CONFIG_NAME)),_0x1c3c30=LEGACY_CONFIG_NAMES[_0x210d4e(0x1c5)](_0x346108=>existsSync(resolve(_0xb1114a,_0x346108)));if(_0x1c3c30&&!_0x26c704)return console[_0x210d4e(0x1c9)](_0x210d4e(0x1a6)),upgradeApp(_0x3c7bcd['nonInteractive'],{'yes':_0x3c7bcd['bool'](_0x210d4e(0x1be))});if(_0x26c704)throw CliErrors[_0x210d4e(0x1c4)](_0x210d4e(0x1cb),'Use\x20`'+CLI_BIN_NAME+_0x210d4e(0x1aa));}if(_0x1a187d){const _0x292a4d=validateAppcode(_0x1a187d);if(!_0x292a4d[_0x210d4e(0x1bb)])throw CliErrors[_0x210d4e(0x1c4)](_0x292a4d[_0x210d4e(0x1cf)]);writeInitConfig(_0x1e574d,[syntheticApp(_0x1a187d)],_0x1e8f0e);return;}if(_0x3c7bcd['nonInteractive'])throw CliErrors['flagMissing']('appcode','Usage:\x20'+CLI_BIN_NAME+_0x210d4e(0x1c8));const _0x339911=getCookie(),_0x29eaa7=await selectMultipleApps(_0x339911),_0x22fa0f=_0x29eaa7==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x29eaa7;writeInitConfig(_0x1e574d,_0x22fa0f,_0x1e8f0e);}const initFlags=[{'name':a78_0x4b1216(0x1d0),'type':a78_0x4b1216(0x1bd),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a78_0x4b1216(0x1b3),'type':a78_0x4b1216(0x1ad),'description':a78_0x4b1216(0x1b6),'default':a78_0x4b1216(0x1a7),'enum':[...RABETBASE_ENV_VALUES]},{'name':a78_0x4b1216(0x1c7),'type':a78_0x4b1216(0x1ad),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':a78_0x4b1216(0x1ca),'type':a78_0x4b1216(0x1bd),'description':a78_0x4b1216(0x1ae),'default':![]},{'name':a78_0x4b1216(0x1be),'type':a78_0x4b1216(0x1bd),'description':a78_0x4b1216(0x1cc),'default':![]}];export const initDefinitions=[{'service':'init','command':'run','description':a78_0x4b1216(0x1c3),'risk':a78_0x4b1216(0x1b7),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x144061){return await runSmartInit(_0x144061),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a79_0x4b49(){const _0x2b6c8e=['3261516hTYeac','5865750rTcPud','9531AGpUlH','48cCJBGG','1080825kylhYR','2763032VpJGgW','45983AhxxBg','264WHuXli','722240gGGemO','9ZDAoYk'];a79_0x4b49=function(){return _0x2b6c8e;};return a79_0x4b49();}(function(_0x3630e4,_0x55e3c4){const _0x12a84f=a79_0x551c,_0x4a8ed3=_0x3630e4();while(!![]){try{const _0x207e51=-parseInt(_0x12a84f(0x1e8))/0x1+parseInt(_0x12a84f(0x1e7))/0x2*(parseInt(_0x12a84f(0x1ec))/0x3)+parseInt(_0x12a84f(0x1ea))/0x4+parseInt(_0x12a84f(0x1ee))/0x5+-parseInt(_0x12a84f(0x1ed))/0x6*(parseInt(_0x12a84f(0x1e6))/0x7)+-parseInt(_0x12a84f(0x1ef))/0x8*(-parseInt(_0x12a84f(0x1e9))/0x9)+-parseInt(_0x12a84f(0x1eb))/0xa;if(_0x207e51===_0x55e3c4)break;else _0x4a8ed3['push'](_0x4a8ed3['shift']());}catch(_0x2e1ca1){_0x4a8ed3['push'](_0x4a8ed3['shift']());}}}(a79_0x4b49,0x6a2e8));function a79_0x551c(_0x1818ce,_0x5cb6c9){_0x1818ce=_0x1818ce-0x1e6;const _0x4b49cc=a79_0x4b49();let _0x551cae=_0x4b49cc[_0x1818ce];return _0x551cae;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a80_0x22ab(){const _0x462acc=['code','cancelled','1261673RIPJEC','4665fauism','11159950NCsFwp','stderr','=1\x20to\x20silence\x20this\x20hint.','join','\x20bug?\x20Help\x20us\x20fix\x20it:','\x20\x20Set\x20','command','has','replace','slice','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','validation_error','134985TpPDgx','message','100hzvoRh','18323877qHaSAA','Hit\x20a\x20','1136502QkAOSt','network_error','1Wrdosj','issue','4740iZbESM','\x20issue\x20report\x20\x5c','RABETBASE_DISABLE_ISSUE_NUDGE','write','24FOHLNS','\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)','service','2028770ZUyqvB','trim'];a80_0x22ab=function(){return _0x462acc;};return a80_0x22ab();}const a80_0x4fb59a=a80_0xddd0;(function(_0x25d8ce,_0x14644f){const _0x903c80=a80_0xddd0,_0x4d0bed=_0x25d8ce();while(!![]){try{const _0x5ce852=parseInt(_0x903c80(0x1d4))/0x1*(-parseInt(_0x903c80(0x1bb))/0x2)+-parseInt(_0x903c80(0x1cd))/0x3*(parseInt(_0x903c80(0x1cf))/0x4)+-parseInt(_0x903c80(0x1c0))/0x5*(-parseInt(_0x903c80(0x1d6))/0x6)+parseInt(_0x903c80(0x1bf))/0x7*(-parseInt(_0x903c80(0x1b8))/0x8)+-parseInt(_0x903c80(0x1d2))/0x9+parseInt(_0x903c80(0x1c1))/0xa+parseInt(_0x903c80(0x1d0))/0xb;if(_0x5ce852===_0x14644f)break;else _0x4d0bed['push'](_0x4d0bed['shift']());}catch(_0x43229f){_0x4d0bed['push'](_0x4d0bed['shift']());}}}(a80_0x22ab,0xadfa9));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a80_0xddd0(_0x17ad09,_0x384ffd){_0x17ad09=_0x17ad09-0x1b7;const _0x22aba7=a80_0x22ab();let _0xddd0ca=_0x22aba7[_0x17ad09];return _0xddd0ca;}export const NUDGE_OPT_OUT_ENV=a80_0x4fb59a(0x1d8);const NUDGE_SUPPRESSED_CODES=new Set([a80_0x4fb59a(0x1be),'auth_required','config_missing','not_in_project','unknown_command','flag_missing',a80_0x4fb59a(0x1cc),a80_0x4fb59a(0x1d3)]),defaultWriter=_0x182f0b=>{const _0x418674=a80_0x4fb59a;process[_0x418674(0x1c2)][_0x418674(0x1b7)](_0x182f0b);};export function shouldNudgeForError(_0x3821c3,_0x147a52){const _0x1faf43=a80_0x4fb59a;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x147a52[_0x1faf43(0x1ba)]===_0x1faf43(0x1d5)&&_0x147a52[_0x1faf43(0x1c7)]==='report')return![];if(_0x3821c3 instanceof CliError)return!NUDGE_SUPPRESSED_CODES[_0x1faf43(0x1c8)](_0x3821c3[_0x1faf43(0x1bd)]);return!![];}export function printIssueReportNudgeForError(_0x1c4e14,_0x5b3dd5,_0x620a84=defaultWriter){if(!shouldNudgeForError(_0x1c4e14,_0x5b3dd5))return;const _0xe2b24e=buildSuggestedTitle(_0x1c4e14,_0x5b3dd5);_0x620a84(formatNudge(_0xe2b24e));}function buildSuggestedTitle(_0x3acb86,_0x2821ba){const _0x36801a=a80_0x4fb59a,_0x34db91=_0x3acb86 instanceof Error?_0x3acb86[_0x36801a(0x1ce)]:String(_0x3acb86),_0x42cd83=_0x34db91[_0x36801a(0x1c9)](/[\r\n]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x36801a(0x1bc)]()[_0x36801a(0x1ca)](0x0,0x78)[_0x36801a(0x1c9)](/"/g,'\x5c\x22'),_0x3984d8=CLI_BIN_NAME+'\x20'+_0x2821ba[_0x36801a(0x1ba)]+'\x20'+_0x2821ba[_0x36801a(0x1c7)];return _0x42cd83['length']>0x0?_0x3984d8+':\x20'+_0x42cd83:_0x3984d8;}function formatNudge(_0x47ae49){const _0x3f2cba=a80_0x4fb59a;return['',_0x3f2cba(0x1d1)+CLI_BIN_NAME+_0x3f2cba(0x1c5),'\x20\x20'+CLI_BIN_NAME+_0x3f2cba(0x1d7),'\x20\x20\x20\x20--title\x20\x22'+_0x47ae49+'\x22\x20\x5c',_0x3f2cba(0x1cb),_0x3f2cba(0x1b9),_0x3f2cba(0x1c6)+NUDGE_OPT_OUT_ENV+_0x3f2cba(0x1c3),''][_0x3f2cba(0x1c4)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a81_0x2025(_0x572e4f,_0x4d491d){_0x572e4f=_0x572e4f-0x18e;const _0x32caa3=a81_0x32ca();let _0x202583=_0x32caa3[_0x572e4f];return _0x202583;}const a81_0x5e0c25=a81_0x2025;(function(_0x51a0e5,_0x4e73f9){const _0x2621bb=a81_0x2025,_0x4c3977=_0x51a0e5();while(!![]){try{const _0x44ce05=parseInt(_0x2621bb(0x1c3))/0x1*(parseInt(_0x2621bb(0x1b0))/0x2)+-parseInt(_0x2621bb(0x1ba))/0x3*(parseInt(_0x2621bb(0x1a4))/0x4)+parseInt(_0x2621bb(0x1c1))/0x5+parseInt(_0x2621bb(0x1c7))/0x6*(-parseInt(_0x2621bb(0x1bd))/0x7)+-parseInt(_0x2621bb(0x1c8))/0x8*(parseInt(_0x2621bb(0x1c2))/0x9)+-parseInt(_0x2621bb(0x1b1))/0xa+-parseInt(_0x2621bb(0x193))/0xb*(parseInt(_0x2621bb(0x1cc))/0xc);if(_0x44ce05===_0x4e73f9)break;else _0x4c3977['push'](_0x4c3977['shift']());}catch(_0xfe0d){_0x4c3977['push'](_0x4c3977['shift']());}}}(a81_0x32ca,0x7d226));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{sanitizeIssueDescription}from'../../commands/issue/shared.js';function a81_0x32ca(){const _0x1542c0=['Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','title','description','redacted\x20','sanitize','58ojmeFX','2902410Dizggg','descriptionSource:\x20','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','report','redactionKinds','issue.description_redaction_kinds','issue.description','message','str','123036KAMKCo','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','490623phUwIB','descriptionSource','redactionCount','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','4313875pqtohP','323775kFvAKS','34583iSLRHc','File\x20not\x20found:\x20','issue.title','POST','42ofduuf','8OPkRuU','description-file','join','Platform\x20issue\x20reported','708SqzifI','flagMissing','length','string','filter','redactions:\x20','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','54109ognkzE','utf8','trim','issue.description_original_bytes','push','One-line\x20issue\x20summary','truncated','descriptionFilePath','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','descriptionFile:\x20','Failed\x20to\x20report\x20platform\x20issue:\x20','Platform\x20issue\x20reported\x20(','originalBytes','\x20bytes','\x20secret(s):\x20','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','truncated\x20from\x20','24VyBWYn','validation','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','cwd','compress','issue'];a81_0x32ca=function(){return _0x1542c0;};return a81_0x32ca();}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG=a81_0x5e0c25(0x1c9);export const issueReport={'service':a81_0x5e0c25(0x1a9),'command':a81_0x5e0c25(0x1b4),'description':a81_0x5e0c25(0x1b3),'risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a81_0x5e0c25(0x1a8),'flags':[{'name':'title','type':a81_0x5e0c25(0x18f),'required':!![],'description':a81_0x5e0c25(0x198)},{'name':a81_0x5e0c25(0x1ad),'type':a81_0x5e0c25(0x18f),'description':a81_0x5e0c25(0x19b)},{'name':DESCRIPTION_FILE_FLAG,'type':a81_0x5e0c25(0x18f),'description':a81_0x5e0c25(0x1aa)}],async 'validate'(_0x406bf2){const _0x299c91=a81_0x5e0c25,_0x50fe2f=_0x406bf2[_0x299c91(0x1b9)](_0x299c91(0x1ac))['trim'](),_0x1f8cfb=_0x406bf2[_0x299c91(0x1b9)](_0x299c91(0x1ad))[_0x299c91(0x195)](),_0x4e8987=_0x406bf2[_0x299c91(0x1b9)](DESCRIPTION_FILE_FLAG)[_0x299c91(0x195)]();if(!_0x50fe2f)throw CliErrors[_0x299c91(0x1cd)]('title',_0x299c91(0x1a6));const _0x1be068=_0x1f8cfb[_0x299c91(0x18e)]>0x0,_0x197fb7=_0x4e8987[_0x299c91(0x18e)]>0x0;if(_0x1be068===_0x197fb7)throw CliErrors[_0x299c91(0x1a5)](_0x299c91(0x192),_0x299c91(0x1ab));if(_0x197fb7){const _0x1d615a=resolve(process[_0x299c91(0x1a7)](),_0x4e8987);if(!existsSync(_0x1d615a))throw CliErrors[_0x299c91(0x1a5)](_0x299c91(0x1c4)+_0x1d615a);}},async 'dryRun'(_0x3d6d1a){const _0x24649d=a81_0x5e0c25,_0x44a739=await prepareIssueReport(_0x3d6d1a);return{'method':_0x24649d(0x1c6),'url':'otel://'+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x44a739[_0x24649d(0x1ac)],'issue.description':_0x44a739[_0x24649d(0x1ad)],'issue.description_original_bytes':_0x44a739[_0x24649d(0x1af)][_0x24649d(0x19f)],'issue.description_truncated':_0x44a739[_0x24649d(0x1af)][_0x24649d(0x199)],'issue.description_redactions':_0x44a739[_0x24649d(0x1af)][_0x24649d(0x1bf)],'issue.description_redaction_kinds':_0x44a739[_0x24649d(0x1af)][_0x24649d(0x1b5)][_0x24649d(0x1ca)](',')}},'description':[_0x24649d(0x1a2),_0x24649d(0x1b2)+_0x44a739[_0x24649d(0x1be)],_0x44a739['descriptionFilePath']?_0x24649d(0x19c)+_0x44a739[_0x24649d(0x19a)]:null,_0x44a739[_0x24649d(0x1af)]['truncated']?'truncated:\x20original\x20'+_0x44a739[_0x24649d(0x1af)][_0x24649d(0x19f)]+'\x20bytes':null,_0x44a739[_0x24649d(0x1af)][_0x24649d(0x1bf)]>0x0?_0x24649d(0x191)+_0x44a739[_0x24649d(0x1af)][_0x24649d(0x1bf)]+'\x20('+_0x44a739[_0x24649d(0x1af)][_0x24649d(0x1b5)][_0x24649d(0x1ca)](',\x20')+')':null][_0x24649d(0x190)](Boolean)['join']('\x0a')};},async 'execute'(_0x2119ef){const _0x399f3e=a81_0x5e0c25,_0x20b95d=await prepareIssueReport(_0x2119ef);try{await sendPlatformIssueCollectLog({'title':_0x20b95d[_0x399f3e(0x1ac)],'description':_0x20b95d[_0x399f3e(0x1ad)],'sanitize':{'originalBytes':_0x20b95d['sanitize'][_0x399f3e(0x19f)],'truncated':_0x20b95d[_0x399f3e(0x1af)]['truncated'],'redactionCount':_0x20b95d[_0x399f3e(0x1af)]['redactionCount'],'redactionKinds':_0x20b95d['sanitize'][_0x399f3e(0x1b5)]}});}catch(_0x5205f1){throw CliErrors['apiError'](_0x399f3e(0x19d)+(_0x5205f1 instanceof Error?_0x5205f1[_0x399f3e(0x1b8)]:String(_0x5205f1)),_0x399f3e(0x1bc));}return{'ok':!![],'message':buildResultMessage(_0x20b95d[_0x399f3e(0x1af)]),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x399f3e(0x1c5),_0x399f3e(0x1b7),_0x399f3e(0x196),'issue.description_truncated','issue.description_redactions',_0x399f3e(0x1b6)],'issue':{'title':_0x20b95d[_0x399f3e(0x1ac)],'descriptionLength':_0x20b95d[_0x399f3e(0x1ad)][_0x399f3e(0x18e)],'descriptionSource':_0x20b95d['descriptionSource'],..._0x20b95d[_0x399f3e(0x19a)]?{'descriptionFile':_0x20b95d[_0x399f3e(0x19a)]}:{},'sanitize':{'originalBytes':_0x20b95d[_0x399f3e(0x1af)][_0x399f3e(0x19f)],'truncated':_0x20b95d[_0x399f3e(0x1af)][_0x399f3e(0x199)],'redactions':_0x20b95d[_0x399f3e(0x1af)][_0x399f3e(0x1bf)],'redactionKinds':_0x20b95d[_0x399f3e(0x1af)][_0x399f3e(0x1b5)]}}}};}};function buildResultMessage(_0x439387){const _0x220177=a81_0x5e0c25,_0x204a1c=[];return _0x439387[_0x220177(0x199)]&&_0x204a1c[_0x220177(0x197)](_0x220177(0x1a3)+_0x439387[_0x220177(0x19f)]+_0x220177(0x1a0)),_0x439387[_0x220177(0x1bf)]>0x0&&_0x204a1c[_0x220177(0x197)](_0x220177(0x1ae)+_0x439387[_0x220177(0x1bf)]+_0x220177(0x1a1)+_0x439387[_0x220177(0x1b5)][_0x220177(0x1ca)](',\x20')),_0x204a1c[_0x220177(0x18e)]===0x0?_0x220177(0x1cb):_0x220177(0x19e)+_0x204a1c[_0x220177(0x1ca)](';\x20')+')';}async function prepareIssueReport(_0xc54a75){const _0x3aa242=a81_0x5e0c25,_0x40047e=_0xc54a75['str'](_0x3aa242(0x1ac))[_0x3aa242(0x195)](),_0x8dc0f8=_0xc54a75[_0x3aa242(0x1b9)]('description'),_0x2fdf63=_0xc54a75[_0x3aa242(0x1b9)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x2fdf63){const _0x271e1f=_0x8dc0f8;if(!_0x271e1f['trim']())throw CliErrors[_0x3aa242(0x1a5)]('Issue\x20description\x20cannot\x20be\x20empty.',_0x3aa242(0x1bb));const _0x3fb2cd=sanitizeIssueDescription(_0x271e1f);return{'title':_0x40047e,'description':_0x3fb2cd[_0x3aa242(0x1ad)],'descriptionSource':'inline','sanitize':_0x3fb2cd};}const _0x4e18dd=resolve(process[_0x3aa242(0x1a7)](),_0x2fdf63),_0x53d159=await readFile(_0x4e18dd,_0x3aa242(0x194));if(!_0x53d159[_0x3aa242(0x195)]())throw CliErrors[_0x3aa242(0x1a5)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x4e18dd,_0x3aa242(0x1c0));const _0x4a7c34=sanitizeIssueDescription(_0x53d159);return{'title':_0x40047e,'description':_0x4a7c34[_0x3aa242(0x1ad)],'descriptionSource':'file','descriptionFilePath':_0x4e18dd,'sanitize':_0x4a7c34};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a82_0x37e8c3=a82_0x4dfe;(function(_0x4308c8,_0x3e80ab){const _0x2c8704=a82_0x4dfe,_0x383170=_0x4308c8();while(!![]){try{const _0x341e0d=-parseInt(_0x2c8704(0x16f))/0x1*(parseInt(_0x2c8704(0x17d))/0x2)+parseInt(_0x2c8704(0x184))/0x3*(-parseInt(_0x2c8704(0x16d))/0x4)+-parseInt(_0x2c8704(0x17e))/0x5*(parseInt(_0x2c8704(0x188))/0x6)+-parseInt(_0x2c8704(0x183))/0x7+parseInt(_0x2c8704(0x178))/0x8*(-parseInt(_0x2c8704(0x170))/0x9)+-parseInt(_0x2c8704(0x182))/0xa*(parseInt(_0x2c8704(0x179))/0xb)+-parseInt(_0x2c8704(0x17a))/0xc*(-parseInt(_0x2c8704(0x172))/0xd);if(_0x341e0d===_0x3e80ab)break;else _0x383170['push'](_0x383170['shift']());}catch(_0x239f15){_0x383170['push'](_0x383170['shift']());}}}(a82_0x2640,0x45971));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a82_0x2640(){const _0x3897cf=['replace','20148jybGjQ','utf8','3891GGBcRp','2017377CNwWcc','REDACTED:private-key','20619118IjWZya','pattern','push','REDACTED:authorization','bearer-jwt','private-key','8hfStmn','744414FgzzSC','12KtcnMk','REDACTED:bearer-jwt','from','92HDonrB','1595635PFQdwL','REDACTED:password','includes','access-key','50gBsszJ','1647604bppofw','3hodEFN','password','label','kind','6csfCvb','byteLength','cookie','authorization','REDACTED:access-key','subarray','max'];a82_0x2640=function(){return _0x3897cf;};return a82_0x2640();}function a82_0x4dfe(_0xe93ff2,_0x253be0){_0xe93ff2=_0xe93ff2-0x16b;const _0x264031=a82_0x2640();let _0x4dfe04=_0x264031[_0xe93ff2];return _0x4dfe04;}const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a82_0x37e8c3(0x18a),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':'REDACTED:cookie'},{'kind':a82_0x37e8c3(0x18b),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':a82_0x37e8c3(0x175)},{'kind':a82_0x37e8c3(0x177),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a82_0x37e8c3(0x171)},{'kind':a82_0x37e8c3(0x181),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a82_0x37e8c3(0x18c)},{'kind':a82_0x37e8c3(0x185),'pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a82_0x37e8c3(0x17f)},{'kind':a82_0x37e8c3(0x176),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a82_0x37e8c3(0x17b)}];export function sanitizeIssueDescription(_0x534666){const _0x5b2294=a82_0x37e8c3,_0x313f42=Buffer[_0x5b2294(0x189)](_0x534666,_0x5b2294(0x16e)),_0x5e6ebe=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x252ecf=_0x534666,_0x5f3fb7=0x0;const _0x1c4c48=[];if(!_0x5e6ebe)for(const _0x37345d of REDACTION_RULES){let _0x399682=0x0;_0x252ecf=_0x252ecf[_0x5b2294(0x16c)](_0x37345d[_0x5b2294(0x173)],(_0x559c0b,_0x1f842e)=>{const _0x170b39=_0x5b2294;_0x399682+=0x1;const _0x16dc78=typeof _0x1f842e==='string'?_0x1f842e:'';return _0x16dc78+'['+_0x37345d[_0x170b39(0x186)]+']';}),_0x399682>0x0&&(_0x5f3fb7+=_0x399682,!_0x1c4c48[_0x5b2294(0x180)](_0x37345d[_0x5b2294(0x187)])&&_0x1c4c48[_0x5b2294(0x174)](_0x37345d[_0x5b2294(0x187)]));}let _0x36d747=![];if(Buffer[_0x5b2294(0x189)](_0x252ecf,_0x5b2294(0x16e))>ISSUE_DESCRIPTION_MAX_BYTES){_0x36d747=!![];const _0x5fc67e=Buffer[_0x5b2294(0x189)](TRUNCATION_NOTICE,_0x5b2294(0x16e)),_0x4410d0=Math[_0x5b2294(0x16b)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x5fc67e);_0x252ecf=sliceUtf8Bytes(_0x252ecf,_0x4410d0)+TRUNCATION_NOTICE;}return{'description':_0x252ecf,'originalBytes':_0x313f42,'truncated':_0x36d747,'redactionCount':_0x5f3fb7,'redactionKinds':_0x1c4c48};}function sliceUtf8Bytes(_0x44c6f4,_0x1907e5){const _0x11c4eb=a82_0x37e8c3;if(_0x1907e5<=0x0)return'';const _0x7e098f=Buffer[_0x11c4eb(0x17c)](_0x44c6f4,_0x11c4eb(0x16e));if(_0x7e098f[_0x11c4eb(0x189)]<=_0x1907e5)return _0x44c6f4;let _0x5eee21=_0x1907e5;while(_0x5eee21>0x0){const _0x3d5d17=_0x7e098f[_0x5eee21];if(_0x3d5d17===undefined||(_0x3d5d17&0xc0)!==0x80)break;_0x5eee21-=0x1;}return _0x7e098f[_0x11c4eb(0x18d)](0x0,_0x5eee21)['toString'](_0x11c4eb(0x16e));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a83_0x207a82=a83_0x18fb;function a83_0x18fb(_0x8a49b5,_0x10bd44){_0x8a49b5=_0x8a49b5-0xfe;const _0x17a1a2=a83_0x17a1();let _0x18fb15=_0x17a1a2[_0x8a49b5];return _0x18fb15;}(function(_0x353571,_0x4ab9f2){const _0x3c2196=a83_0x18fb,_0x4a5ad6=_0x353571();while(!![]){try{const _0x2d8961=-parseInt(_0x3c2196(0x102))/0x1*(-parseInt(_0x3c2196(0x101))/0x2)+-parseInt(_0x3c2196(0x117))/0x3*(-parseInt(_0x3c2196(0x10e))/0x4)+parseInt(_0x3c2196(0x103))/0x5*(parseInt(_0x3c2196(0x10f))/0x6)+-parseInt(_0x3c2196(0x106))/0x7+parseInt(_0x3c2196(0x114))/0x8+parseInt(_0x3c2196(0x100))/0x9+-parseInt(_0x3c2196(0x10c))/0xa;if(_0x2d8961===_0x4ab9f2)break;else _0x4a5ad6['push'](_0x4a5ad6['shift']());}catch(_0x49bd1b){_0x4a5ad6['push'](_0x4a5ad6['shift']());}}}(a83_0x17a1,0x5dacf));import{logger}from'../../utils/logger.js';function printLogs(_0x1cb17b){const _0x3f588d=a83_0x18fb;if(_0x1cb17b[_0x3f588d(0x10b)]===0x0){console[_0x3f588d(0x109)](_0x3f588d(0x10d));return;}console[_0x3f588d(0x109)](_0x3f588d(0x116)),_0x1cb17b[_0x3f588d(0x113)]((_0x1767bc,_0x13e0eb)=>{const _0x555726=_0x3f588d,_0x22a9ff=new Date(_0x1767bc['timestamp'])[_0x555726(0x119)]('en-US'),_0x4e441e=_0x1767bc['level']===_0x555726(0x11a)?'√':_0x1767bc['level']==='error'?'×':_0x1767bc[_0x555726(0x112)]===_0x555726(0xff)?'!':'i';console[_0x555726(0x109)](_0x13e0eb+0x1+'.\x20'+_0x4e441e+'\x20['+_0x1767bc['command']+']\x20'+_0x1767bc[_0x555726(0x11b)]),console[_0x555726(0x109)](_0x555726(0x11c)+_0x22a9ff),_0x1767bc[_0x555726(0x111)]&&console[_0x555726(0x109)](_0x555726(0x108)+_0x1767bc[_0x555726(0x111)]+'ms'),_0x1767bc[_0x555726(0x107)]&&Object['keys'](_0x1767bc['details'])[_0x555726(0x10b)]>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON['stringify'](_0x1767bc['details'],null,0x2)),console[_0x555726(0x109)]('');});}export const logsDefinitions=[{'service':a83_0x207a82(0x10a),'command':'show','description':a83_0x207a82(0x105),'risk':a83_0x207a82(0x118),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x22a790){const _0x223ebc=a83_0x207a82;return printLogs(logger[_0x223ebc(0xfe)]()),{'ok':!![]};}},{'service':a83_0x207a82(0x10a),'command':'clear','description':'Clear\x20command\x20history\x20logs','risk':a83_0x207a82(0x104),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4c25e2){const _0x3c94e0=a83_0x207a82;return logger[_0x3c94e0(0x115)](),console[_0x3c94e0(0x109)](_0x3c94e0(0x110)),{'ok':!![]};}}];function a83_0x17a1(){const _0x417e9b=['write','View\x20command\x20history\x20logs','2398627MHRYqj','details','\x20\x20\x20Duration:\x20','log','logs','length','4109700YYYTPx','*\x20No\x20logs\x20found','16TeYrKb','18aJNiiy','*\x20Logs\x20cleared','duration','level','forEach','332312QKVJPm','clearLogs','*\x20Lovrabet\x20CLI\x20logs:\x0a','9069XIUNPY','read','toLocaleString','success','message','\x20\x20\x20Time:\x20','readLogs','warn','6464934CVIESY','236JkIpRe','557OPTNAQ','499405HvMWGQ'];a83_0x17a1=function(){return _0x417e9b;};return a83_0x17a1();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a84_0x3574(_0x2d55a7,_0x45fae5){_0x2d55a7=_0x2d55a7-0x1aa;const _0x142973=a84_0x1429();let _0x3574a9=_0x142973[_0x2d55a7];return _0x3574a9;}(function(_0x45d0da,_0x5e54f1){const _0x1f9d37=a84_0x3574,_0x3d9e81=_0x45d0da();while(!![]){try{const _0x496748=parseInt(_0x1f9d37(0x1aa))/0x1+parseInt(_0x1f9d37(0x1b0))/0x2*(-parseInt(_0x1f9d37(0x1b3))/0x3)+parseInt(_0x1f9d37(0x1b1))/0x4+-parseInt(_0x1f9d37(0x1ae))/0x5+parseInt(_0x1f9d37(0x1ab))/0x6+parseInt(_0x1f9d37(0x1af))/0x7*(-parseInt(_0x1f9d37(0x1ac))/0x8)+-parseInt(_0x1f9d37(0x1ad))/0x9*(-parseInt(_0x1f9d37(0x1b2))/0xa);if(_0x496748===_0x5e54f1)break;else _0x3d9e81['push'](_0x3d9e81['shift']());}catch(_0x441f6f){_0x3d9e81['push'](_0x3d9e81['shift']());}}}(a84_0x1429,0xd4df4));function a84_0x1429(){const _0x5a0868=['1836531sioBng','4739820sbohrQ','11737544nUIisx','6abpNZb','3763748idxcxk','50ejqeQp','409389KfnzGC','754595cVGfbP','7141452yEQYJK','8wBsNyK'];a84_0x1429=function(){return _0x5a0868;};return a84_0x1429();}import{menuList}from'../../commands/menu/list.js';import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuList,menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a85_0x16c4d4=a85_0x237c;(function(_0x3df3e0,_0x1b6125){const _0x5d3104=a85_0x237c,_0x18ebbc=_0x3df3e0();while(!![]){try{const _0x408be5=-parseInt(_0x5d3104(0x164))/0x1+parseInt(_0x5d3104(0x15e))/0x2+parseInt(_0x5d3104(0x155))/0x3+parseInt(_0x5d3104(0x157))/0x4*(-parseInt(_0x5d3104(0x169))/0x5)+-parseInt(_0x5d3104(0x14b))/0x6*(parseInt(_0x5d3104(0x151))/0x7)+parseInt(_0x5d3104(0x147))/0x8+-parseInt(_0x5d3104(0x156))/0x9*(-parseInt(_0x5d3104(0x146))/0xa);if(_0x408be5===_0x1b6125)break;else _0x18ebbc['push'](_0x18ebbc['shift']());}catch(_0x38c6db){_0x18ebbc['push'](_0x18ebbc['shift']());}}}(a85_0x1308,0x6ab30));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getApiDomain}from'../../constant/domain.js';import{platformFetch}from'../../core/api-client.js';export const menuList={'service':'menu','command':a85_0x16c4d4(0x15c),'description':'List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a85_0x16c4d4(0x14f),'type':'boolean','description':a85_0x16c4d4(0x14e)}],async 'execute'(_0x35f914){const _0x1c5638=a85_0x16c4d4,_0x82f11f=_0x35f914[_0x1c5638(0x163)](_0x1c5638(0x14f)),_0xe8e64b=await platformFetch(getApiDomain()+_0x1c5638(0x168)+_0x35f914['appCode'],{'cookie':_0x35f914[_0x1c5638(0x15d)],'label':'Fetch\x20menu\x20list'}),_0x52834b=flattenMenuItems(Array['isArray'](_0xe8e64b)?_0xe8e64b:[],{'verbose':_0x82f11f,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x52834b['length'],'menus':_0x52834b},'message':_0x52834b[_0x1c5638(0x161)]===0x0?'No\x20menus\x20found.':'Found\x20'+_0x52834b[_0x1c5638(0x161)]+_0x1c5638(0x14a)};}};function flattenMenuItems(_0x551772,_0x291f34){const _0x121f09=a85_0x16c4d4,_0x16c243=sortMenuItems(_0x551772),_0x3925ff=[];for(const _0xe2c366 of _0x16c243){_0x3925ff[_0x121f09(0x15a)](toMenuListItem(_0xe2c366,_0x291f34)),Array['isArray'](_0xe2c366[_0x121f09(0x14c)])&&_0xe2c366[_0x121f09(0x14c)][_0x121f09(0x161)]>0x0&&_0x3925ff[_0x121f09(0x15a)](...flattenMenuItems(_0xe2c366[_0x121f09(0x14c)],{'verbose':_0x291f34[_0x121f09(0x14f)],'parentId':_0xe2c366['id'],'depth':_0x291f34[_0x121f09(0x149)]+0x1}));}return _0x3925ff;}function a85_0x237c(_0x500a38,_0x230de8){_0x500a38=_0x500a38-0x146;const _0x13081d=a85_0x1308();let _0x237c02=_0x13081d[_0x500a38];return _0x237c02;}function sortMenuItems(_0x1eb024){const _0x55d48e=a85_0x16c4d4;return _0x1eb024[_0x55d48e(0x166)]((_0x2f8a18,_0x55ac1e)=>({'item':_0x2f8a18,'index':_0x55ac1e}))[_0x55d48e(0x167)]((_0x19ff7c,_0x1fee3d)=>{const _0x29ce44=_0x55d48e,_0x5a55de=normalizeSort(_0x19ff7c[_0x29ce44(0x154)][_0x29ce44(0x167)]),_0x4364b9=normalizeSort(_0x1fee3d[_0x29ce44(0x154)][_0x29ce44(0x167)]);if(_0x5a55de!==_0x4364b9)return _0x5a55de-_0x4364b9;return _0x19ff7c[_0x29ce44(0x162)]-_0x1fee3d['index'];})['map'](({item:_0x2d4cd4})=>_0x2d4cd4);}function toMenuListItem(_0x2ce1df,_0x33d897){const _0x3e83b8=a85_0x16c4d4,_0x3f953a={'id':_0x2ce1df['id'],'parentId':_0x33d897['parentId'],'depth':_0x33d897[_0x3e83b8(0x149)],'label':normalizeString(_0x2ce1df[_0x3e83b8(0x153)]),'path':normalizeString(_0x2ce1df[_0x3e83b8(0x150)]),'type':normalizeString(_0x2ce1df[_0x3e83b8(0x158)]),'visible':typeof _0x2ce1df[_0x3e83b8(0x160)]===_0x3e83b8(0x148)?_0x2ce1df[_0x3e83b8(0x160)]:null,'sort':typeof _0x2ce1df[_0x3e83b8(0x167)]===_0x3e83b8(0x15b)&&Number[_0x3e83b8(0x16a)](_0x2ce1df[_0x3e83b8(0x167)])?_0x2ce1df[_0x3e83b8(0x167)]:null,'resources':normalizeResources(_0x2ce1df['extend']?.[_0x3e83b8(0x165)])};return _0x33d897[_0x3e83b8(0x14f)]&&(_0x3f953a['extend']=_0x2ce1df[_0x3e83b8(0x14d)]??null),_0x3f953a;}function normalizeSort(_0x41a7b4){const _0x8346c5=a85_0x16c4d4;return typeof _0x41a7b4===_0x8346c5(0x15b)&&Number['isFinite'](_0x41a7b4)?_0x41a7b4:Number[_0x8346c5(0x15f)];}function normalizeString(_0x3d3c13){const _0x317eba=a85_0x16c4d4;return typeof _0x3d3c13===_0x317eba(0x159)?_0x3d3c13:'';}function normalizeResources(_0x56042c){const _0x5c348d=a85_0x16c4d4;if(Array[_0x5c348d(0x152)](_0x56042c))return _0x56042c[_0x5c348d(0x166)](String);if(typeof _0x56042c!==_0x5c348d(0x159))return[];try{const _0xb1413e=JSON['parse'](_0x56042c);return Array[_0x5c348d(0x152)](_0xb1413e)?_0xb1413e[_0x5c348d(0x166)](String):[];}catch{return[];}}function a85_0x1308(){const _0x1c99c9=['type','string','push','number','list','cookie','288340ovtGGN','POSITIVE_INFINITY','visible','length','index','bool','381933vpoXKT','resources','map','sort','/smartapi/menu/find?appCode=','1788355criRzI','isFinite','3550CaNkoO','2856taVGPy','boolean','depth','\x20menu(s)','27798SjzYKy','children','extend','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','verbose','path','917hsMxOT','isArray','label','item','434028mXJbve','46953qwrhXC','8xaHuyF'];a85_0x1308=function(){return _0x1c99c9;};return a85_0x1308();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a86_0x43fd(){const _0x2ef3da=['online','29260395ArOMBE','(unchanged)','1123080EaSckk','local','\x20\x20\x20\x20CSS:\x20','5LwvSdn','17OpOsxA','10BbxFQc','label','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','length','3294104nhrKgc','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','\x20\x20\x20\x20•\x20','push','showOnline','Platform','\x20\x20No\x20pages\x20to\x20sync.','join','2510564ljeJcx','7519260stnhcy','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','max','39890mfivag','\x20\x20Affected\x20menus:\x20','6475824mXaKah','repeat','Local'];a86_0x43fd=function(){return _0x2ef3da;};return a86_0x43fd();}(function(_0x3f9350,_0x478723){const _0x27c995=a86_0x2cdb,_0x1fdbfc=_0x3f9350();while(!![]){try{const _0x3279a4=-parseInt(_0x27c995(0x10d))/0x1*(-parseInt(_0x27c995(0x101))/0x2)+-parseInt(_0x27c995(0x109))/0x3+parseInt(_0x27c995(0xfd))/0x4*(-parseInt(_0x27c995(0x10c))/0x5)+-parseInt(_0x27c995(0x103))/0x6+-parseInt(_0x27c995(0xfe))/0x7+parseInt(_0x27c995(0x112))/0x8+parseInt(_0x27c995(0x107))/0x9*(parseInt(_0x27c995(0x10e))/0xa);if(_0x3279a4===_0x478723)break;else _0x1fdbfc['push'](_0x1fdbfc['shift']());}catch(_0x9411fa){_0x1fdbfc['push'](_0x1fdbfc['shift']());}}}(a86_0x43fd,0xceaa2));function strWidth(_0x3b036a){let _0x4bb109=0x0;for(const _0x5b7eb8 of _0x3b036a){_0x4bb109+=/[\u4e00-\u9fa5]/['test'](_0x5b7eb8)?0x2:0x1;}return _0x4bb109;}function padRight(_0x4f38ad,_0x4eeabd){const _0x2649ce=a86_0x2cdb,_0x19316d=strWidth(_0x4f38ad);return _0x4f38ad+'\x20'[_0x2649ce(0x104)](Math[_0x2649ce(0x100)](0x0,_0x4eeabd-_0x19316d));}function a86_0x2cdb(_0x592d80,_0x5e400d){_0x592d80=_0x592d80-0xf9;const _0x43fdbf=a86_0x43fd();let _0x2cdbed=_0x43fdbf[_0x592d80];return _0x2cdbed;}export function renderCompareTable(_0x4df3f6,_0x582170={}){const _0x571c07=a86_0x2cdb;if(_0x4df3f6[_0x571c07(0x111)]===0x0)return'';const _0x2da82b=_0x582170[_0x571c07(0xf9)]??!![],_0x125ecf=Math[_0x571c07(0x100)](0x1e,..._0x4df3f6['map'](_0x63d65d=>strWidth(_0x63d65d[_0x571c07(0x10f)]))),_0x29c651=0x4,_0x30ac1e=[],_0x378715='\x20\x20'+padRight('Menu\x20Name',_0x125ecf),_0xbab585=padRight(_0x571c07(0x105),_0x29c651),_0x30e754=_0x2da82b?'\x20\x20'+padRight(_0x571c07(0xfa),_0x29c651):'';_0x30ac1e[_0x571c07(0x116)](_0x378715+'\x20\x20'+_0xbab585+(_0x2da82b?_0x30e754:'')),_0x30ac1e[_0x571c07(0x116)]('\x20\x20'+'─'[_0x571c07(0x104)](_0x125ecf)+'\x20\x20'+'─'[_0x571c07(0x104)](_0x29c651)+(_0x2da82b?'\x20\x20'+'─'['repeat'](_0x29c651):''));for(const _0x977d6b of _0x4df3f6){const _0x3b38e3=padRight(_0x977d6b[_0x571c07(0x10f)],_0x125ecf),_0x159f3a=_0x977d6b[_0x571c07(0x10a)]?'✓':'✗',_0x13527d=padRight(_0x159f3a,_0x29c651);let _0x31529a='\x20\x20'+_0x3b38e3+'\x20\x20'+_0x13527d;if(_0x2da82b){const _0x30814d=_0x977d6b[_0x571c07(0x106)]?'✓':'✗';_0x31529a+='\x20\x20'+padRight(_0x30814d,_0x29c651);}_0x30ac1e['push'](_0x31529a);}return _0x30ac1e[_0x571c07(0xfc)]('\x0a');}export function renderSyncSummary(_0xc7550c,_0x48710d){const _0x21a00c=a86_0x2cdb;if(_0xc7550c[_0x21a00c(0x111)]===0x0)return _0x48710d?_0x21a00c(0x110):_0x21a00c(0xfb);const _0x2d4153=['\x20\x20'+_0xc7550c[_0x21a00c(0x111)]+_0x21a00c(0x113)];for(const _0x1f2a5e of _0xc7550c){_0x2d4153['push'](_0x21a00c(0x115)+_0x1f2a5e[_0x21a00c(0x10f)]+'\x20('+_0x1f2a5e['path']+')');}return _0x2d4153[_0x21a00c(0xfc)]('\x0a');}export function renderUpdateSummary(_0xbb27ae,_0x144528){const _0x4a233e=a86_0x2cdb;if(_0xbb27ae['length']===0x0)return _0x4a233e(0x114);const _0x4e8c18=['\x20\x20'+_0xbb27ae[_0x4a233e(0x111)]+_0x4a233e(0xff),'\x20\x20\x20\x20JS:\x20\x20'+(_0x144528[0x0]??_0x4a233e(0x108)),_0x4a233e(0x10b)+(_0x144528[0x1]??_0x4a233e(0x108)),'',_0x4a233e(0x102)+_0xbb27ae[_0x4a233e(0xfc)](',\x20')];return _0x4e8c18[_0x4a233e(0xfc)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x49fad4,_0x290236){var _0x4b107f=a87_0x71d2,_0xaf0d17=_0x49fad4();while(!![]){try{var _0x54d85d=parseInt(_0x4b107f(0x169))/0x1*(parseInt(_0x4b107f(0x16b))/0x2)+-parseInt(_0x4b107f(0x16d))/0x3*(-parseInt(_0x4b107f(0x167))/0x4)+parseInt(_0x4b107f(0x16a))/0x5*(parseInt(_0x4b107f(0x168))/0x6)+-parseInt(_0x4b107f(0x16e))/0x7+parseInt(_0x4b107f(0x166))/0x8+parseInt(_0x4b107f(0x16c))/0x9+-parseInt(_0x4b107f(0x16f))/0xa;if(_0x54d85d===_0x290236)break;else _0xaf0d17['push'](_0xaf0d17['shift']());}catch(_0x292a40){_0xaf0d17['push'](_0xaf0d17['shift']());}}}(a87_0x4132,0x71d96));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';function a87_0x4132(){var _0x58b2c7=['2139928kuppTG','1527404kFiQda','42XTGldf','472WKuKrF','372045RFjnQs','2974EjusHQ','7611606TPxLmx','3RVKWGl','446012LcyfJN','21877610vCUVxi'];a87_0x4132=function(){return _0x58b2c7;};return a87_0x4132();}export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';function a87_0x71d2(_0x4e0246,_0x26ae46){_0x4e0246=_0x4e0246-0x166;var _0x4132be=a87_0x4132();var _0x71d274=_0x4132be[_0x4e0246];return _0x71d274;}export*from'../../../commands/menu/shared/valid-url.js';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(_0x53b26a,_0x47209b){const _0x2eef60=a88_0x4337,_0x12fe10=_0x53b26a();while(!![]){try{const _0x129cf3=parseInt(_0x2eef60(0x9b))/0x1+parseInt(_0x2eef60(0xa4))/0x2+parseInt(_0x2eef60(0x8a))/0x3*(parseInt(_0x2eef60(0x9f))/0x4)+-parseInt(_0x2eef60(0x82))/0x5*(-parseInt(_0x2eef60(0x87))/0x6)+parseInt(_0x2eef60(0x84))/0x7+parseInt(_0x2eef60(0xab))/0x8*(parseInt(_0x2eef60(0xa3))/0x9)+-parseInt(_0x2eef60(0x8c))/0xa;if(_0x129cf3===_0x47209b)break;else _0x12fe10['push'](_0x12fe10['shift']());}catch(_0x4f63e8){_0x12fe10['push'](_0x12fe10['shift']());}}}(a88_0x1da2,0x3982a));import a88_0x45463d from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a88_0x946529 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x76239){const _0x344335=a88_0x4337;return _0x76239[_0x344335(0xa2)](_0x37dc8a=>{const _0x5bc1b4=_0x344335;if(_0x37dc8a?.[_0x5bc1b4(0x95)]===_0x5bc1b4(0xa6))throw CliErrors[_0x5bc1b4(0x8b)]('Cancelled.');throw _0x37dc8a;});}function a88_0x1da2(){const _0x3de69b=['name','[new]','fail','\x20\x20JS\x20URL:','length','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','392906jtwhVg','includes','error','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','510676oZPXzm','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','No\x20local\x20pages\x20found.','catch','324PdGEGq','272194vCtgvs','map','ExitPromptError','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','trim','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','CSS\x20URL\x20check\x20failed','33304YsCVRj','test','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','isTTY','JS\x20URL\x20check\x20failed','[already\x20on\x20platform]','CSS\x20URL\x20checked','1254695sLEZUO','red','1069124MulVnN','succeed','gray','6KhPnEQ','stdin','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','3VlMFgM','cancelled','9746490tQDcyg','No\x20menus\x20selected.','\x20\x20Checking\x20JS\x20URL\x20reachability...','path','start','Cancelled.','cyan','label','\x20\x20CSS\x20URL:'];a88_0x1da2=function(){return _0x3de69b;};return a88_0x1da2();}export function startSpinner(_0x372196){const _0x11b740=a88_0x4337;return a88_0x946529({'text':_0x372196,'color':_0x11b740(0x92)})[_0x11b740(0x90)]();}export function stopSpinner(_0x4dfe1d,_0x1a3438,_0x1bfc2b){const _0x2262af=a88_0x4337;_0x1bfc2b?_0x4dfe1d[_0x2262af(0x85)](_0x1a3438):_0x4dfe1d[_0x2262af(0x97)](_0x1a3438);}export async function askConfirm(_0x14344a){return onCancel(confirm({'message':_0x14344a,'theme':{'prefix':''}}));}function a88_0x4337(_0x49855e,_0x31805b){_0x49855e=_0x49855e-0x7c;const _0x1da202=a88_0x1da2();let _0x4337e8=_0x1da202[_0x49855e];return _0x4337e8;}export async function askJsUrl(_0x408aaa){const _0x1c7490=a88_0x4337;while(!![]){const _0x3cc7cf=await onCancel(input({'message':_0x1c7490(0x98),'default':_0x408aaa,'theme':{'prefix':''}}));if(_0x3cc7cf[_0x1c7490(0xa8)]()==='')throw CliErrors[_0x1c7490(0x8b)](_0x1c7490(0x91));if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x3cc7cf['trim']())){console[_0x1c7490(0x9d)](a88_0x45463d['red'](_0x1c7490(0x7d)));continue;}const _0x23fe87=startSpinner(_0x1c7490(0x8e));try{const _0x4c8572=await isUrlReachable(_0x3cc7cf['trim']());stopSpinner(_0x23fe87,'JS\x20URL\x20checked',_0x4c8572);if(!_0x4c8572){console[_0x1c7490(0x9d)](a88_0x45463d[_0x1c7490(0x83)](_0x1c7490(0x9a)));continue;}return _0x3cc7cf[_0x1c7490(0xa8)]();}catch(_0x38e015){stopSpinner(_0x23fe87,_0x1c7490(0x7f),![]);throw _0x38e015;}}}export async function askCssUrl(_0x19e4a6){const _0x1a08f7=a88_0x4337;while(!![]){const _0x272307=await onCancel(input({'message':_0x1a08f7(0x94),'default':_0x19e4a6,'theme':{'prefix':''}}));if(_0x272307[_0x1a08f7(0xa8)]()==='')throw CliErrors[_0x1a08f7(0x8b)](_0x1a08f7(0x91));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x1a08f7(0x7c)](_0x272307[_0x1a08f7(0xa8)]())){console[_0x1a08f7(0x9d)](a88_0x45463d[_0x1a08f7(0x83)](_0x1a08f7(0x9e)));continue;}const _0x1d5a5c=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x25d7d5=await isUrlReachable(_0x272307[_0x1a08f7(0xa8)]());stopSpinner(_0x1d5a5c,_0x1a08f7(0x81),_0x25d7d5);if(!_0x25d7d5){console[_0x1a08f7(0x9d)](a88_0x45463d[_0x1a08f7(0x83)](_0x1a08f7(0xa7)));continue;}return _0x272307[_0x1a08f7(0xa8)]();}catch(_0x5b9ae1){stopSpinner(_0x1d5a5c,_0x1a08f7(0xaa),![]);throw _0x5b9ae1;}}}export async function selectPages(_0x5cd98f,_0x24ddc5,_0x2357bf){const _0x492258=a88_0x4337,_0x12ab5c=_0x5cd98f[_0x492258(0xa5)](_0x23a8e3=>({'name':_0x23a8e3[_0x492258(0x93)]+'\x20\x20'+(_0x24ddc5['has'](_0x23a8e3[_0x492258(0x8f)])?a88_0x45463d[_0x492258(0x86)](_0x492258(0x80)):a88_0x45463d['green'](_0x492258(0x96))),'value':_0x23a8e3[_0x492258(0x93)],'checked':_0x2357bf?_0x2357bf[_0x492258(0x9c)](_0x23a8e3[_0x492258(0x93)]):!_0x24ddc5['has'](_0x23a8e3['path'])}));if(_0x12ab5c[_0x492258(0x99)]===0x0)throw new Error(_0x492258(0xa1));const _0x509916=await onCancel(checkbox({'message':_0x492258(0xa9),'choices':_0x12ab5c,'loop':![],'theme':{'prefix':''}}));if(_0x509916[_0x492258(0x99)]===0x0)throw new Error(_0x492258(0x8d));return _0x5cd98f['filter'](_0xdce5be=>_0x509916['includes'](_0xdce5be['label']));}export function isInteractive(){const _0x351382=a88_0x4337;return process[_0x351382(0x88)][_0x351382(0x7e)]===!![];}export function requireInteractive(){const _0xd59b75=a88_0x4337;if(!isInteractive())throw new Error(_0xd59b75(0x89)+_0xd59b75(0xa0));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a89_0xa33731=a89_0x464f;(function(_0x2a8f16,_0x12e273){const _0x16af85=a89_0x464f,_0x2dbd63=_0x2a8f16();while(!![]){try{const _0x37b5b8=parseInt(_0x16af85(0x83))/0x1*(-parseInt(_0x16af85(0x79))/0x2)+parseInt(_0x16af85(0x87))/0x3*(-parseInt(_0x16af85(0x93))/0x4)+parseInt(_0x16af85(0x8b))/0x5*(-parseInt(_0x16af85(0x8f))/0x6)+-parseInt(_0x16af85(0x7f))/0x7*(-parseInt(_0x16af85(0x7c))/0x8)+parseInt(_0x16af85(0x7e))/0x9*(parseInt(_0x16af85(0x91))/0xa)+parseInt(_0x16af85(0x80))/0xb+parseInt(_0x16af85(0x77))/0xc*(parseInt(_0x16af85(0x88))/0xd);if(_0x37b5b8===_0x12e273)break;else _0x2dbd63['push'](_0x2dbd63['shift']());}catch(_0x1be0b5){_0x2dbd63['push'](_0x2dbd63['shift']());}}}(a89_0xd202,0x6ae95));function a89_0x464f(_0x1dfabe,_0x31a546){_0x1dfabe=_0x1dfabe-0x77;const _0xd202e3=a89_0xd202();let _0x464fd0=_0xd202e3[_0x1dfabe];return _0x464fd0;}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';function a89_0xd202(){const _0x7ded91=['match','17mbGDwB','forEach','join','cwd','807hSUoaK','323869IzgzdH','concat','endsWith','235tzFicr','split','slice','utf-8','45102wMlwnh','index.tsx','4714920AxHeLD','src/pages','9868UkGAhj','12qFMWSR','filter','67472yDMuFJ','trim','.tsx','88UUlSeU','replace','9TcNqEK','521003StjpPK','7845409aQYvfi','replaceAll'];a89_0xd202=function(){return _0x7ded91;};return a89_0xd202();}const pagesDir=resolve(process[a89_0xa33731(0x86)](),a89_0xa33731(0x92));export function extractTitleFromComment(_0x44f8d1){const _0x346e67=a89_0xa33731;try{const _0x2c8fce=readFileSync(_0x44f8d1,_0x346e67(0x8e)),_0x207d6d=_0x2c8fce['match'](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x207d6d&&_0x207d6d[0x1]){const _0x55e848=_0x207d6d[0x1],_0x279fdf=_0x55e848['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x279fdf&&_0x279fdf[0x1])return _0x279fdf[0x1][_0x346e67(0x7a)]();}let _0x2ded89=null;const _0x4e01f2=_0x2c8fce[_0x346e67(0x82)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x4e01f2&&_0x4e01f2[0x1]&&(_0x2ded89=_0x4e01f2[0x1]);if(!_0x2ded89){const _0x10033a=_0x2c8fce[_0x346e67(0x82)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x10033a&&_0x10033a[0x1]&&(_0x2ded89=_0x10033a[0x1]);}if(_0x2ded89){const _0x530589=new RegExp('\x5cb'+_0x2ded89+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x46cb21=_0x2c8fce[_0x346e67(0x82)](_0x530589);if(_0x46cb21&&_0x46cb21[0x1])return _0x46cb21[0x1];return _0x2ded89;}return null;}catch(_0x28c715){return null;}}export function getLocalPages(_0x4f21d4=pagesDir,_0x538e0d=pagesDir){const _0x374131=a89_0xa33731;let _0x47fb7c=[];const _0x557ff9=readdirSync(_0x4f21d4);return _0x557ff9[_0x374131(0x84)](_0x534182=>{const _0x1ac652=_0x374131,_0x5b40c8=join(_0x4f21d4,_0x534182),_0x48e13e=statSync(_0x5b40c8);if(_0x48e13e&&_0x48e13e['isDirectory']())_0x47fb7c=_0x47fb7c[_0x1ac652(0x89)](getLocalPages(_0x5b40c8,_0x538e0d));else{if(_0x534182[_0x1ac652(0x8a)](_0x1ac652(0x7b))){let _0x15958f=relative(_0x538e0d,_0x5b40c8);_0x15958f[_0x1ac652(0x8a)](_0x1ac652(0x90))?_0x15958f=_0x15958f[_0x1ac652(0x7d)](/index\.tsx$/,''):_0x15958f=_0x15958f['replace'](/\.tsx$/,'');_0x15958f['endsWith'](sep)&&(_0x15958f=_0x15958f[_0x1ac652(0x8d)](0x0,-0x1));const _0x4c2455=_0x15958f[_0x1ac652(0x8c)](sep)[_0x1ac652(0x85)]('/'),_0x1bf4f9=extractTitleFromComment(_0x5b40c8),_0x26fe2e=_0x1bf4f9||_0x4c2455;_0x47fb7c['push']({'path':_0x4c2455[_0x1ac652(0x81)]('$',':'),'label':_0x26fe2e});}}}),_0x47fb7c[_0x374131(0x78)](_0xb6af90=>_0xb6af90['path']!=='');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2985d8,_0x2027c8){const _0x44c96b=a90_0x3d45,_0x3e9642=_0x2985d8();while(!![]){try{const _0x4eeb4f=parseInt(_0x44c96b(0x142))/0x1*(-parseInt(_0x44c96b(0x132))/0x2)+-parseInt(_0x44c96b(0x14c))/0x3+-parseInt(_0x44c96b(0x144))/0x4+parseInt(_0x44c96b(0x12f))/0x5*(-parseInt(_0x44c96b(0x139))/0x6)+-parseInt(_0x44c96b(0x14d))/0x7*(parseInt(_0x44c96b(0x131))/0x8)+-parseInt(_0x44c96b(0x146))/0x9+-parseInt(_0x44c96b(0x13d))/0xa*(-parseInt(_0x44c96b(0x136))/0xb);if(_0x4eeb4f===_0x2027c8)break;else _0x3e9642['push'](_0x3e9642['shift']());}catch(_0x42c3c8){_0x3e9642['push'](_0x3e9642['shift']());}}}(a90_0x413a,0x6bccf));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(_0x30c3d7){const _0x335a93=a90_0x3d45,_0x2e90a2=[];return!isValidJsHttpsUrl(_0x30c3d7)&&_0x2e90a2['push']('JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'),{'ok':_0x2e90a2[_0x335a93(0x130)]===0x0,'errors':_0x2e90a2};}export function validateCssUrl(_0x17daab){const _0x148bad=a90_0x3d45,_0x27bbd8=[];return!isValidCssHttpsUrl(_0x17daab)&&_0x27bbd8['push'](_0x148bad(0x145)),{'ok':_0x27bbd8[_0x148bad(0x130)]===0x0,'errors':_0x27bbd8};}export async function validateJsUrlReachable(_0xf68f82){const _0x3266ec=a90_0x3d45,_0x37c97a=validateJsUrl(_0xf68f82);if(!_0x37c97a['ok'])return _0x37c97a;const _0xa2b65c=await isUrlReachable(_0xf68f82);if(!_0xa2b65c)_0x37c97a[_0x3266ec(0x133)][_0x3266ec(0x148)](_0x3266ec(0x13c));return{'ok':_0x37c97a[_0x3266ec(0x133)][_0x3266ec(0x130)]===0x0,'errors':_0x37c97a[_0x3266ec(0x133)]};}function a90_0x3d45(_0x33639b,_0x31b876){_0x33639b=_0x33639b-0x12f;const _0x413a67=a90_0x413a();let _0x3d457d=_0x413a67[_0x33639b];return _0x3d457d;}export async function validateCssUrlReachable(_0x2fa726){const _0x56ca95=a90_0x3d45,_0x119531=validateCssUrl(_0x2fa726);if(!_0x119531['ok'])return _0x119531;const _0x40255e=await isUrlReachable(_0x2fa726);if(!_0x40255e)_0x119531[_0x56ca95(0x133)][_0x56ca95(0x148)](_0x56ca95(0x13f));return{'ok':_0x119531[_0x56ca95(0x133)][_0x56ca95(0x130)]===0x0,'errors':_0x119531[_0x56ca95(0x133)]};}export function buildCompareRows(_0x3053e5,_0x5b76f9){const _0x328538=a90_0x3d45;return _0x3053e5[_0x328538(0x140)](_0x32bf5c=>({'label':_0x32bf5c['label'],'path':_0x32bf5c[_0x328538(0x138)],'local':!![],'online':_0x5b76f9[_0x328538(0x137)](_0x32bf5c[_0x328538(0x138)])}));}export function filterNewPages(_0x49ab74,_0xf8b21c,_0xc91a65){const _0xeba25f=a90_0x3d45;if(_0xc91a65&&_0xc91a65[_0xeba25f(0x130)]>0x0){const _0x39542e=new Set(_0xc91a65[_0xeba25f(0x140)](_0x1ee6db=>_0x1ee6db[_0xeba25f(0x149)]())),_0x34dfdf=_0x49ab74[_0xeba25f(0x13a)](_0x1ecca8=>_0x39542e[_0xeba25f(0x137)](_0x1ecca8[_0xeba25f(0x14b)]));if(_0x34dfdf[_0xeba25f(0x130)]===0x0)throw new Error(_0xeba25f(0x143)+[..._0x39542e]['join'](',\x20'));return _0x34dfdf;}return _0x49ab74['filter'](_0x248068=>!_0xf8b21c[_0xeba25f(0x137)](_0x248068[_0xeba25f(0x138)]));}export function filterPagesByLabels(_0x33c67b,_0x5a39b2){const _0x504be9=a90_0x3d45,_0x521282=[],_0x39bf80=[];for(const _0x453f1a of _0x5a39b2){const _0x38e2ea=_0x453f1a[_0x504be9(0x149)](),_0x18a66c=_0x33c67b[_0x504be9(0x147)](_0x59896f=>_0x59896f[_0x504be9(0x14b)]===_0x38e2ea);if(_0x18a66c)_0x521282[_0x504be9(0x148)](_0x18a66c);else _0x39bf80[_0x504be9(0x148)](_0x453f1a);}return{'matched':_0x521282,'unmatched':_0x39bf80};}function a90_0x413a(){const _0x546195=['filter','extend','JS\x20URL\x20is\x20unreachable','36947650yFBAGc','allSettled','CSS\x20URL\x20is\x20unreachable','map','fulfilled','377769qsMJba','No\x20local\x20pages\x20matched\x20labels:\x20','2413720DEitmH','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','5111307ouoBSy','find','push','trim','status','label','1430829yWVOYG','1071RQMlYy','5srcwOd','length','18760nIFtib','4sOHzSD','errors','value','rejected','11cZIPwx','has','path','2943570UhaWgX'];a90_0x413a=function(){return _0x546195;};return a90_0x413a();}export async function doCreateMenus(_0x57532b,_0x3212b8,_0x8f682b,_0x30969c){const _0x138224=a90_0x3d45,_0xd1120e=await createMenus(_0x57532b,_0x3212b8,_0x8f682b,_0x30969c);return{'created':_0xd1120e[_0x138224(0x130)],'failed':0x0,'labels':_0x8f682b[_0x138224(0x140)](_0x44719e=>_0x44719e[_0x138224(0x14b)]),'menus':_0xd1120e};}export function filterMenusWithResources(_0x207011){const _0x1bc4ca=a90_0x3d45;return _0x207011['filter'](_0x2eeb06=>_0x2eeb06['resources'][_0x1bc4ca(0x130)]>0x0);}export async function doUpdateCdnUrls(_0x46f7ee,_0x2a845a,_0x139222,_0x2b56ea){const _0xd560c0=a90_0x3d45,_0x4c6a4d=_0x139222[_0xd560c0(0x13a)](_0x11705c=>_0x11705c['resources'][_0xd560c0(0x130)]>0x0),_0x34b78b=await Promise[_0xd560c0(0x13e)](_0x4c6a4d[_0xd560c0(0x140)](_0x3bbe41=>updateMenuCdnUrl(_0x46f7ee,_0x2a845a,{'id':_0x3bbe41['id'],'label':_0x3bbe41[_0xd560c0(0x14b)],'path':_0x3bbe41['path'],'resources':_0x2b56ea,'extend':_0x3bbe41[_0xd560c0(0x13b)]??null}))),_0x3cea4f=_0x34b78b[_0xd560c0(0x13a)](_0x1d7012=>_0x1d7012[_0xd560c0(0x14a)]===_0xd560c0(0x141))[_0xd560c0(0x140)](_0x4844cd=>_0x4844cd[_0xd560c0(0x134)]),_0x4145d5=_0x34b78b[_0xd560c0(0x13a)](_0x496e52=>_0x496e52[_0xd560c0(0x14a)]===_0xd560c0(0x135))[_0xd560c0(0x130)];return{'updated':_0x3cea4f['length'],'failed':_0x4145d5,'menus':_0x3cea4f};}export async function fetchMenuData(_0x29066c,_0x576757){const _0xbac5aa=a90_0x3d45,_0x1bf9bd=getLocalPages(),_0x35b624=await getOnlineMenuList(_0x29066c,_0x576757),_0x567f68=new Set(_0x35b624[_0xbac5aa(0x140)](_0x2eb355=>_0x2eb355[_0xbac5aa(0x138)]));return{'localPages':_0x1bf9bd,'onlineMenuList':_0x35b624,'onlinePaths':_0x567f68};}export async function fetchOnlineMenuList(_0x72a5b,_0x725ee9){return getOnlineMenuList(_0x72a5b,_0x725ee9);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x55dc1c,_0x3289c2){const _0x2dcbd8=a91_0x779c,_0x1da2b7=_0x55dc1c();while(!![]){try{const _0x3c3f47=parseInt(_0x2dcbd8(0x130))/0x1+parseInt(_0x2dcbd8(0x117))/0x2+-parseInt(_0x2dcbd8(0x13b))/0x3+parseInt(_0x2dcbd8(0x12a))/0x4*(-parseInt(_0x2dcbd8(0x126))/0x5)+parseInt(_0x2dcbd8(0x125))/0x6+parseInt(_0x2dcbd8(0x137))/0x7*(parseInt(_0x2dcbd8(0x12b))/0x8)+-parseInt(_0x2dcbd8(0x122))/0x9*(-parseInt(_0x2dcbd8(0x11b))/0xa);if(_0x3c3f47===_0x3289c2)break;else _0x1da2b7['push'](_0x1da2b7['shift']());}catch(_0x856049){_0x1da2b7['push'](_0x1da2b7['shift']());}}}(a91_0x2d5e,0x624f6));function a91_0x779c(_0x301f47,_0x39152a){_0x301f47=_0x301f47-0x116;const _0x2d5eff=a91_0x2d5e();let _0x779c8e=_0x2d5eff[_0x301f47];return _0x779c8e;}import{getApiDomain}from'../../../constant/domain.js';import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x5b217b,_0x1d7b85){const _0x113aaf=a91_0x779c,_0x52e712=getEnv();logger[_0x113aaf(0x13a)](_0x113aaf(0x133),isProduction(_0x52e712)?_0x113aaf(0x116)+_0x5b217b+')':_0x113aaf(0x11d)+_0x5b217b+')');const _0x19719c=await platformFetch(getApiDomain()+_0x113aaf(0x129)+_0x5b217b,{'cookie':_0x1d7b85,'label':_0x113aaf(0x139)});if(!_0x19719c)return logger[_0x113aaf(0x13a)](_0x113aaf(0x133),_0x113aaf(0x132)),[];return logger[_0x113aaf(0x13a)]('get-online-menu-list',_0x113aaf(0x13e)+_0x19719c[_0x113aaf(0x136)]+'\x20online\x20menus\x20successfully'),_0x19719c[_0x113aaf(0x134)](flattenMenuItem)['flat']();}function flattenMenuItem(_0x24024b){const _0x262fb5=a91_0x779c;let _0x33b3fd=[];try{const _0x28fd87=_0x24024b[_0x262fb5(0x140)]?.[_0x262fb5(0x141)];if(typeof _0x28fd87===_0x262fb5(0x12c)){const _0x4af556=JSON['parse'](_0x28fd87);if(Array[_0x262fb5(0x119)](_0x4af556))_0x33b3fd=_0x4af556[_0x262fb5(0x134)](String);}else Array[_0x262fb5(0x119)](_0x28fd87)&&(_0x33b3fd=_0x28fd87['map'](String));}catch{}const _0x4ac4e9=[{'id':_0x24024b['id'],'path':_0x24024b[_0x262fb5(0x12f)],'label':_0x24024b[_0x262fb5(0x118)],'resources':_0x33b3fd,'extend':_0x24024b[_0x262fb5(0x140)]??null}];if(_0x24024b[_0x262fb5(0x12d)]&&_0x24024b[_0x262fb5(0x12d)][_0x262fb5(0x136)]>0x0)for(const _0x593072 of _0x24024b[_0x262fb5(0x12d)]){_0x4ac4e9[_0x262fb5(0x12e)](...flattenMenuItem(_0x593072));}return _0x4ac4e9;}function a91_0x2d5e(){const _0x4fb6bb=['create-menus','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','Create\x20menu\x20\x22','stringify','Start\x20batch\x20menu\x20creation,\x20total\x20','/smartapi/menu/create','1287AySbdF','all','Menu\x20created\x20successfully:\x20','131022kMYnwk','11015lsveGC','procode','POST','/smartapi/menu/find?appCode=','1408fiLAHK','408QwyrSz','string','children','push','path','221698WeyrLY','Updating\x20menu\x20asset\x20links:\x20','Server\x20returned\x20empty\x20menu\x20list','get-online-menu-list','map','create-menu','length','35735RlMVax','Menu\x20assets\x20synced:\x20','Fetch\x20menu\x20list','info','291648Umqgnt','Batch\x20menu\x20creation\x20completed,\x20total\x20','update-menu-cdn-url','Fetched\x20','import','extend','resources','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','268218mXzIKZ','label','isArray','/smartapi/menu/update','44570wvvyxL'];a91_0x2d5e=function(){return _0x4fb6bb;};return a91_0x2d5e();}export async function createMenu(_0x2865bf,_0x5a0441,_0xf69c44){const _0x13797a=a91_0x779c;logger[_0x13797a(0x13a)](_0x13797a(0x135),'Creating\x20menu:\x20'+_0xf69c44[_0x13797a(0x118)]+'\x20('+_0xf69c44[_0x13797a(0x12f)]+')');const _0x10238e={'appCode':_0x2865bf,'type':'procode','sort':0x0,'extend':{'loadScriptMode':'import','resources':_0xf69c44[_0x13797a(0x141)]?JSON[_0x13797a(0x11f)](_0xf69c44[_0x13797a(0x141)]):undefined},..._0xf69c44},_0x1b9cef=await platformFetch(getApiDomain()+_0x13797a(0x121),{'method':_0x13797a(0x128),'body':_0x10238e,'cookie':_0x5a0441,'label':_0x13797a(0x11e)+_0xf69c44[_0x13797a(0x118)]+'\x22'});return logger['info'](_0x13797a(0x135),'Menu\x20created\x20successfully:\x20'+_0xf69c44['label']),_0x1b9cef;}async function createSingleMenu(_0x3c2211,_0x1e00e4,_0x3063eb,_0x331201){const _0x6067d0=a91_0x779c,_0x15e76f={'appCode':_0x3c2211,'type':_0x6067d0(0x127),'sort':0x0,'extend':{'loadScriptMode':_0x6067d0(0x13f),'resources':_0x331201?JSON[_0x6067d0(0x11f)](_0x331201):undefined},'label':_0x3063eb[_0x6067d0(0x118)],'path':_0x3063eb[_0x6067d0(0x12f)]},_0x747b=await platformFetch(getApiDomain()+_0x6067d0(0x121),{'method':_0x6067d0(0x128),'body':_0x15e76f,'cookie':_0x1e00e4,'label':'Create\x20menu\x20\x22'+_0x3063eb['label']+'\x22'});return logger[_0x6067d0(0x13a)](_0x6067d0(0x135),_0x6067d0(0x124)+_0x3063eb[_0x6067d0(0x118)]),_0x747b;}export async function createMenus(_0x5c1665,_0x1a65b2,_0x5aaad6,_0xd5bd4){const _0x2ddb2c=a91_0x779c;logger[_0x2ddb2c(0x13a)]('create-menus',_0x2ddb2c(0x120)+_0x5aaad6[_0x2ddb2c(0x136)]);const _0x499c77=await Promise[_0x2ddb2c(0x123)](_0x5aaad6['map'](_0x8db123=>createSingleMenu(_0x5c1665,_0x1a65b2,_0x8db123,_0xd5bd4)));return logger[_0x2ddb2c(0x13a)](_0x2ddb2c(0x11c),_0x2ddb2c(0x13c)+_0x5aaad6['length']),_0x499c77;}export async function updateMenuCdnUrl(_0x2481f0,_0x65888e,_0x2b5362){const _0x4df4bd=a91_0x779c;logger['info'](_0x4df4bd(0x13d),_0x4df4bd(0x131)+_0x2b5362[_0x4df4bd(0x118)]+'\x20('+_0x2b5362['path']+')');const _0x5be53f={'id':_0x2b5362['id'],'appCode':_0x2481f0,'extend':{..._0x2b5362[_0x4df4bd(0x140)]??{},'loadScriptMode':_0x4df4bd(0x13f),'resources':_0x2b5362[_0x4df4bd(0x141)]?JSON[_0x4df4bd(0x11f)](_0x2b5362['resources']):undefined}},_0x311f9f=await platformFetch(getApiDomain()+_0x4df4bd(0x11a),{'method':_0x4df4bd(0x128),'body':_0x5be53f,'cookie':_0x65888e,'label':'Update\x20menu\x20assets\x20\x22'+_0x2b5362[_0x4df4bd(0x118)]+'\x22'});return logger[_0x4df4bd(0x13a)](_0x4df4bd(0x13d),_0x4df4bd(0x138)+_0x2b5362[_0x4df4bd(0x118)],undefined),_0x311f9f;}
|