@lovrabet/rabetbase-cli 2.3.4 → 2.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88_0x2f9c4f=a88_0x52b9;(function(_0x43c4f5,_0x42aa12){const _0x3a812f=a88_0x52b9,_0x1205c7=_0x43c4f5();while(!![]){try{const _0x41ef80=parseInt(_0x3a812f(0xd0))/0x1*(parseInt(_0x3a812f(0xb4))/0x2)+-parseInt(_0x3a812f(0xb5))/0x3*(parseInt(_0x3a812f(0xd4))/0x4)+-parseInt(_0x3a812f(0xd5))/0x5+-parseInt(_0x3a812f(0xb6))/0x6+-parseInt(_0x3a812f(0xc9))/0x7*(parseInt(_0x3a812f(0xc2))/0x8)+-parseInt(_0x3a812f(0xb3))/0x9+parseInt(_0x3a812f(0xb2))/0xa*(parseInt(_0x3a812f(0xbe))/0xb);if(_0x41ef80===_0x42aa12)break;else _0x1205c7['push'](_0x1205c7['shift']());}catch(_0x39e0d4){_0x1205c7['push'](_0x1205c7['shift']());}}}(a88_0x5190,0x83bf8));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a88_0x52b9(_0x4cc464,_0x1daf62){_0x4cc464=_0x4cc464-0xb1;const _0x5190f9=a88_0x5190();let _0x52b91e=_0x5190f9[_0x4cc464];return _0x52b91e;}import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a88_0x2f9c4f(0xb1),'description':a88_0x2f9c4f(0xce),'risk':a88_0x2f9c4f(0xc0),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a88_0x2f9c4f(0xd3),'type':'string','description':a88_0x2f9c4f(0xbd)},{'name':a88_0x2f9c4f(0xba),'type':a88_0x2f9c4f(0xc3),'description':a88_0x2f9c4f(0xc4)},{'name':a88_0x2f9c4f(0xc5),'type':a88_0x2f9c4f(0xc3),'description':a88_0x2f9c4f(0xc6)},{'name':'password','type':a88_0x2f9c4f(0xc3),'description':a88_0x2f9c4f(0xd6)},{'name':a88_0x2f9c4f(0xbf),'type':'string','description':a88_0x2f9c4f(0xca)},{'name':a88_0x2f9c4f(0xcd),'type':a88_0x2f9c4f(0xc3),'description':a88_0x2f9c4f(0xd1)}],async 'validate'(_0xf072c){const _0x595a19=a88_0x2f9c4f,_0x140dda=_0xf072c['str'](_0x595a19(0xba));if(_0x140dda&&!validateDbUrl(_0x140dda[_0x595a19(0xc8)]()))throw CliErrors[_0x595a19(0xd7)](_0x595a19(0xcb)+_0x140dda+'\x22');},async 'dryRun'(_0x38cd64){const _0x2b2aa6=a88_0x2f9c4f,_0x5e0ec4=_0x38cd64['num']('id'),_0x302fcd=await getDbLinkInfo(_0x5e0ec4),_0x4fac1b={..._0x302fcd},_0x304b65=_0x38cd64[_0x2b2aa6(0xbb)]('dbname');if(_0x304b65)_0x4fac1b[_0x2b2aa6(0xcf)]=_0x304b65;const _0x29a12d=_0x38cd64[_0x2b2aa6(0xbb)](_0x2b2aa6(0xba));if(_0x29a12d)_0x4fac1b[_0x2b2aa6(0xc7)]=_0x29a12d['trim']();const _0x14b787=_0x38cd64['str']('username');if(_0x14b787)_0x4fac1b[_0x2b2aa6(0xc5)]=_0x14b787;const _0x334b56=_0x38cd64['str'](_0x2b2aa6(0xc1));if(_0x334b56)_0x4fac1b[_0x2b2aa6(0xc1)]=_0x334b56;const _0x16b57c=_0x38cd64[_0x2b2aa6(0xbb)](_0x2b2aa6(0xbf));if(_0x16b57c)_0x4fac1b[_0x2b2aa6(0xb8)]=_0x16b57c;const _0x4651fb=_0x38cd64['str']('dbdesc');if(_0x4651fb)_0x4fac1b['dbDesc']=_0x4651fb;const _0x3c32bf=sanitizeDbLinkForOutput(_0x4fac1b);return{'method':_0x2b2aa6(0xd2),'url':'/smartapi/dblink/update','body':_0x3c32bf,'description':_0x2b2aa6(0xb7)};},async 'execute'(_0x2108a2){const _0x2da075=a88_0x2f9c4f,_0x1b1907=_0x2108a2[_0x2da075(0xbc)]('id'),_0x328b3b=await getDbLinkInfo(_0x1b1907),_0x33589e={..._0x328b3b},_0x549a1b=_0x2108a2['str']('dbname');if(_0x549a1b)_0x33589e['dbName']=_0x549a1b;const _0x30b39e=_0x2108a2[_0x2da075(0xbb)](_0x2da075(0xba));if(_0x30b39e)_0x33589e[_0x2da075(0xc7)]=_0x30b39e[_0x2da075(0xc8)]();const _0x4f2e5a=_0x2108a2['str'](_0x2da075(0xc5));if(_0x4f2e5a)_0x33589e[_0x2da075(0xc5)]=_0x4f2e5a;const _0x224e91=_0x2108a2[_0x2da075(0xbb)](_0x2da075(0xc1));if(_0x224e91)_0x33589e[_0x2da075(0xc1)]=_0x224e91;const _0x2e4a41=_0x2108a2[_0x2da075(0xbb)](_0x2da075(0xbf));if(_0x2e4a41)_0x33589e[_0x2da075(0xb8)]=_0x2e4a41;const _0xb38444=_0x2108a2[_0x2da075(0xbb)]('dbdesc');if(_0xb38444)_0x33589e[_0x2da075(0xb9)]=_0xb38444;const {id:_0x505d87,entity:_0x1a3790}=normalizeEntityWithIdResponse(await updateDbLink(_0x33589e));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x1a3790),'message':_0x2da075(0xcc)+(_0x505d87??_0x1b1907)};}};function a88_0x5190(){const _0x238671=['928301tXROlJ','dbparam','write','password','368NnTAEK','string','New\x20host:port','username','New\x20username','dbUrl','trim','121681gqWLgs','New\x20connection\x20parameter\x20string','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','Updated\x20db\x20link\x20','dbdesc','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','dbName','367mdoXNB','New\x20description','POST','dbname','4cKktxT','1187995PzeJuo','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','validation','update','250qnYMCd','2246202xeQyjh','5374IuVERp','1493883OkogSQ','4629048hOtUXp','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','dbParam','dbDesc','dburl','str','num','New\x20database\x20name'];a88_0x5190=function(){return _0x238671;};return a88_0x5190();}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a89_0x507ae7=a89_0x55d4;(function(_0x220c55,_0xa3c5c4){const _0x5f6afc=a89_0x55d4,_0x86f6d=_0x220c55();while(!![]){try{const _0x36d73c=-parseInt(_0x5f6afc(0x19e))/0x1*(parseInt(_0x5f6afc(0x196))/0x2)+parseInt(_0x5f6afc(0x17e))/0x3+parseInt(_0x5f6afc(0x1a4))/0x4*(parseInt(_0x5f6afc(0x175))/0x5)+parseInt(_0x5f6afc(0x172))/0x6*(parseInt(_0x5f6afc(0x1a6))/0x7)+-parseInt(_0x5f6afc(0x181))/0x8+-parseInt(_0x5f6afc(0x187))/0x9+-parseInt(_0x5f6afc(0x195))/0xa*(-parseInt(_0x5f6afc(0x176))/0xb);if(_0x36d73c===_0xa3c5c4)break;else _0x86f6d['push'](_0x86f6d['shift']());}catch(_0x5d91ab){_0x86f6d['push'](_0x86f6d['shift']());}}}(a89_0x4a1e,0x67b6f));import a89_0x31aa18 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a89_0x4a1e(){const _0x32fad0=['\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','1218AwAmXv','\x20\x20Config\x20JSON','accessKey','385iwuPKU','2846173bgBMov','\x20(default)','\x20doctor','(none)','riskLevel','env','log','Project','1811829wGYODC','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','2121248IyBZnY','platform','message','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','6949926OethpW','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','empty','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','gray','\x20\x20─','check','50inlVYV','1415266cQavXd','missing','read','doctor','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','⚠\x20Empty\x20(treated\x20as\x20{})','1yYwlmi','\x20\x20\x20\x20accessKey:\x20\x20','locale','bold','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Apps','524gHJThd','slice','9037MmgOHY','apiDir','status','length','source','currentApp','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','arch','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','repeat','keys','✗\x20Not\x20logged\x20in','cookie','green','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','red','appCode','(set,\x20length=','raw','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','Global','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','apps','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Auth','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','(not\x20set)','(default)','defaultApp','\x20\x20runtimeDomain:\x20\x20\x20','value'];a89_0x4a1e=function(){return _0x32fad0;};return a89_0x4a1e();}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';function a89_0x55d4(_0x17f5f9,_0x2952c5){_0x17f5f9=_0x17f5f9-0x159;const _0x4a1ee2=a89_0x4a1e();let _0x55d4e4=_0x4a1ee2[_0x17f5f9];return _0x55d4e4;}import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x128e74){const _0xdb4343=a89_0x55d4,_0x29db0b=GIT_COMMIT!==_0xdb4343(0x18b)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xdb4343(0x1a5)](0x0,0xa)+')':VERSION,_0x50ffe3=buildConfigFromFlags({}),_0x40e346=getCookie();console[_0xdb4343(0x17c)](),console['log'](a89_0x31aa18[_0xdb4343(0x1a1)](CLI_BIN_NAME+_0xdb4343(0x178))),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x192)]('─'[_0xdb4343(0x1b0)](0x32))),console[_0xdb4343(0x17c)](_0xdb4343(0x18f)+_0x29db0b),console['log'](_0xdb4343(0x191)+process['version']),console[_0xdb4343(0x17c)](_0xdb4343(0x185)+process[_0xdb4343(0x182)]+'\x20'+process[_0xdb4343(0x1ae)]),console[_0xdb4343(0x17c)](),console['log'](a89_0x31aa18['bold']('\x20\x20Config\x20Files')),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x192)]('\x20\x20─'[_0xdb4343(0x1b0)](0x1e)));const _0x28f569=getGlobalConfigPath(),_0x589a29=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x28f569||a89_0x31aa18[_0xdb4343(0x192)]('(not\x20found)'))),console['log'](_0xdb4343(0x16a)+(_0x589a29||a89_0x31aa18[_0xdb4343(0x192)]('(not\x20found)'))),console['log'](),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x1a1)](_0xdb4343(0x173))),console['log'](a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x193)['repeat'](0x1e)));const _0x1d946c=(_0x522e93,_0x3a9187)=>{const _0x4d54d0=_0xdb4343;if(!_0x3a9187){console['log']('\x20\x20'+_0x522e93['padEnd'](0x11)+'\x20'+a89_0x31aa18[_0x4d54d0(0x192)](_0x4d54d0(0x189)));return;}const _0x33027d=inspectCliConfigJsonFile(_0x3a9187);if(_0x33027d[_0x4d54d0(0x1a8)]==='ok')console[_0x4d54d0(0x17c)]('\x20\x20'+_0x522e93['padEnd'](0x11)+'\x20'+a89_0x31aa18[_0x4d54d0(0x15b)]('✓\x20Valid\x20JSON'));else{if(_0x33027d[_0x4d54d0(0x1a8)]===_0x4d54d0(0x18c))console[_0x4d54d0(0x17c)]('\x20\x20'+_0x522e93[_0x4d54d0(0x18e)](0x11)+'\x20'+a89_0x31aa18['yellow'](_0x4d54d0(0x19d)));else _0x33027d[_0x4d54d0(0x1a8)]===_0x4d54d0(0x197)?console[_0x4d54d0(0x17c)]('\x20\x20'+_0x522e93['padEnd'](0x11)+'\x20'+a89_0x31aa18[_0x4d54d0(0x192)]('(missing)')):(console[_0x4d54d0(0x17c)]('\x20\x20'+_0x522e93[_0x4d54d0(0x18e)](0x11)+'\x20'+a89_0x31aa18[_0x4d54d0(0x15d)]('✗\x20Invalid\x20JSON')),console['log']('\x20\x20'+''['padEnd'](0x11)+'\x20'+a89_0x31aa18[_0x4d54d0(0x15d)](_0x33027d[_0x4d54d0(0x183)])));}};_0x1d946c(_0xdb4343(0x163),_0x28f569),_0x1d946c(_0xdb4343(0x17d),_0x589a29),console['log'](),console[_0xdb4343(0x17c)](a89_0x31aa18['bold']('\x20\x20Merged\x20Config')),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x193)[_0xdb4343(0x1b0)](0x1e))),console[_0xdb4343(0x17c)](_0xdb4343(0x1ac)+(_0x50ffe3[_0xdb4343(0x15e)]||a89_0x31aa18['red'](_0xdb4343(0x16c)))),console[_0xdb4343(0x17c)](_0xdb4343(0x19b)+_0x50ffe3['env']),console['log'](_0xdb4343(0x165)+_0x50ffe3[_0xdb4343(0x1a0)]),console[_0xdb4343(0x17c)](_0xdb4343(0x18d)+_0x50ffe3[_0xdb4343(0x1a7)]),console[_0xdb4343(0x17c)](_0xdb4343(0x1af)+(_0x50ffe3['defaultApp']||a89_0x31aa18['gray'](_0xdb4343(0x179)))),console[_0xdb4343(0x17c)](_0xdb4343(0x184)+(_0x50ffe3[_0xdb4343(0x1ab)]||a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x179)))),console['log'](_0xdb4343(0x162)+(_0x50ffe3[_0xdb4343(0x186)]||a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x179)))),console['log'](_0xdb4343(0x17f)+(_0x50ffe3[_0xdb4343(0x19c)]||a89_0x31aa18['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0xdb4343(0x17c)](_0xdb4343(0x188)+(_0x50ffe3['pageSize']??a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x16d)))),console['log'](_0xdb4343(0x161)+_0x50ffe3[_0xdb4343(0x17a)]),console['log'](_0xdb4343(0x171)+_0x50ffe3[_0xdb4343(0x166)]),console[_0xdb4343(0x17c)](_0xdb4343(0x18a)+(_0x50ffe3['cookie']?a89_0x31aa18[_0xdb4343(0x15b)](_0xdb4343(0x15f)+_0x50ffe3['cookie'][_0xdb4343(0x1a9)]+')'):_0x40e346?a89_0x31aa18[_0xdb4343(0x15b)]('(set\x20via\x20file,\x20length='+_0x40e346[_0xdb4343(0x1a9)]+')'):a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x179))));const _0x532c56=Object[_0xdb4343(0x1b1)](_0x50ffe3[_0xdb4343(0x167)]);if(_0x532c56[_0xdb4343(0x1a9)]>0x0){console[_0xdb4343(0x17c)](),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x1a1)](_0xdb4343(0x1a3))),console[_0xdb4343(0x17c)](a89_0x31aa18['gray'](_0xdb4343(0x193)['repeat'](0x1e)));for(const _0x543c12 of _0x532c56){const _0x11d3c3=_0x50ffe3[_0xdb4343(0x167)][_0x543c12],_0xde355f=_0x543c12===_0x50ffe3[_0xdb4343(0x16e)],_0x37aeac=_0x543c12===_0x50ffe3[_0xdb4343(0x1ab)],_0x58ea98=_0x37aeac?a89_0x31aa18[_0xdb4343(0x15b)](_0xdb4343(0x1ad)):'',_0x1344a5=_0xde355f?_0xdb4343(0x177):'';console[_0xdb4343(0x17c)]('\x20\x20'+_0x543c12+_0x1344a5+_0x58ea98),console[_0xdb4343(0x17c)](_0xdb4343(0x19a)+_0x11d3c3['appcode']);const _0x115985=buildAppDoctorFields(_0x11d3c3,{'env':_0x50ffe3['env'],'apiDir':_0x50ffe3[_0xdb4343(0x160)][_0xdb4343(0x1a7)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x50ffe3[_0xdb4343(0x15a)]||_0x40e346||undefined,'accessKey':_0x50ffe3[_0xdb4343(0x174)]});console[_0xdb4343(0x17c)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x115985[_0xdb4343(0x17b)]['value']+'\x20\x20'+a89_0x31aa18['gray']('('+_0x115985[_0xdb4343(0x17b)][_0xdb4343(0x1aa)]+')')),console[_0xdb4343(0x17c)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x115985['apiDir'][_0xdb4343(0x170)]+'\x20\x20'+a89_0x31aa18[_0xdb4343(0x192)]('('+_0x115985[_0xdb4343(0x1a7)]['source']+')'));const _0x38cacb=_0x115985['cookie'][_0xdb4343(0x170)]?a89_0x31aa18[_0xdb4343(0x15b)](_0xdb4343(0x15f)+_0x115985[_0xdb4343(0x15a)][_0xdb4343(0x170)][_0xdb4343(0x1a9)]+')'):a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x179));console[_0xdb4343(0x17c)](_0xdb4343(0x164)+_0x38cacb+'\x20\x20'+a89_0x31aa18[_0xdb4343(0x192)]('('+_0x115985[_0xdb4343(0x15a)]['source']+')'));const _0x483aae=_0x115985[_0xdb4343(0x174)]['value']?a89_0x31aa18[_0xdb4343(0x15b)](_0xdb4343(0x15f)+_0x115985['accessKey'][_0xdb4343(0x170)][_0xdb4343(0x1a9)]+')'):a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x179));console['log'](_0xdb4343(0x19f)+_0x483aae+'\x20\x20'+a89_0x31aa18['gray']('('+_0x115985[_0xdb4343(0x174)][_0xdb4343(0x1aa)]+')'));}}console[_0xdb4343(0x17c)](),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x1a1)]('\x20\x20API\x20Endpoints')),console['log'](a89_0x31aa18[_0xdb4343(0x192)](_0xdb4343(0x193)['repeat'](0x1e))),console[_0xdb4343(0x17c)](_0xdb4343(0x168)+getApiDomain()),console[_0xdb4343(0x17c)](_0xdb4343(0x1a2)+getUserDomain()),console['log'](_0xdb4343(0x16f)+getRuntimeDomain()),console[_0xdb4343(0x17c)](),console[_0xdb4343(0x17c)](a89_0x31aa18[_0xdb4343(0x1a1)](_0xdb4343(0x169))),console[_0xdb4343(0x17c)](a89_0x31aa18['gray'](_0xdb4343(0x193)[_0xdb4343(0x1b0)](0x1e)));if(_0x40e346){const _0x114e7d=await getIsSessionValid();console['log'](_0xdb4343(0x190)+(_0x114e7d?a89_0x31aa18['green'](_0xdb4343(0x180)):a89_0x31aa18[_0xdb4343(0x15d)](_0xdb4343(0x16b))));}else console[_0xdb4343(0x17c)](_0xdb4343(0x190)+a89_0x31aa18[_0xdb4343(0x15d)](_0xdb4343(0x159)));return console[_0xdb4343(0x17c)](),{'ok':!![]};}export const doctorDefinition={'service':a89_0x507ae7(0x199),'command':a89_0x507ae7(0x194),'description':a89_0x507ae7(0x15c),'risk':a89_0x507ae7(0x198),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a89_0x3d26a6=a89_0x310f;(function(_0x1f3b21,_0x301ccc){const _0xe350b1=a89_0x310f,_0x481717=_0x1f3b21();while(!![]){try{const _0x52c562=parseInt(_0xe350b1(0x1f9))/0x1*(-parseInt(_0xe350b1(0x1c8))/0x2)+parseInt(_0xe350b1(0x1d7))/0x3*(-parseInt(_0xe350b1(0x1bb))/0x4)+-parseInt(_0xe350b1(0x1f4))/0x5+-parseInt(_0xe350b1(0x1a9))/0x6+parseInt(_0xe350b1(0x1c4))/0x7*(parseInt(_0xe350b1(0x1eb))/0x8)+parseInt(_0xe350b1(0x1bf))/0x9*(-parseInt(_0xe350b1(0x1e2))/0xa)+parseInt(_0xe350b1(0x1a6))/0xb;if(_0x52c562===_0x301ccc)break;else _0x481717['push'](_0x481717['shift']());}catch(_0x4990fd){_0x481717['push'](_0x481717['shift']());}}}(a89_0x5a89,0xecfbe));import a89_0x29f5ae from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a89_0x310f(_0x4936fe,_0x25f42b){_0x4936fe=_0x4936fe-0x1a5;const _0x5a89e7=a89_0x5a89();let _0x310fac=_0x5a89e7[_0x4936fe];return _0x310fac;}function a89_0x5a89(){const _0x5f16b5=['\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','823905krXsHj','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','cookie','\x20\x20─','1967791aOxgHs','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','\x20\x20Merged\x20Config','6110LbZImL','bold','value','verbose','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20accessKey:\x20\x20','riskLevel','✓\x20Valid\x20JSON','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','format','pageSize','3wLOsua','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','apps','(not\x20found)','\x20\x20Config\x20JSON','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','appCode','90CLbblm','✗\x20Expired','(set,\x20length=','unknown','check','missing','(default)','padEnd','appcode','48XfpYHk','✗\x20Not\x20logged\x20in','read','green','red','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','doctor','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','2539500FYqUqI','\x20\x20Auth','(default:\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','485hVzrIS','raw','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','explicitAppName','\x20\x20runtimeDomain:\x20\x20\x20','source','48116475hszTvX','slice','(missing)','6291666BUawNi','arch','(none)','(set\x20via\x20file,\x20length=','locale','\x20(default)','message','defaultApp','repeat','keys','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','empty','\x20\x20Apps','platform','gray','version','status','\x20doctor','4912504rUtaJO','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','length'];a89_0x5a89=function(){return _0x5f16b5;};return a89_0x5a89();}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(_0xb5f885){const _0xa74fe3=a89_0x310f,_0x1ea6af=GIT_COMMIT!==_0xa74fe3(0x1e5)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xa74fe3(0x1a7)](0x0,0xa)+')':VERSION,_0x2523fd=buildConfigFromFlags({}),_0x39c3eb=getCookie();console['log'](),console['log'](a89_0x29f5ae['bold'](CLI_BIN_NAME+_0xa74fe3(0x1ba))),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)]('─'[_0xa74fe3(0x1b1)](0x32))),console['log'](_0xa74fe3(0x1ce)+_0x1ea6af),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1c0)+process[_0xa74fe3(0x1b8)]),console['log'](_0xa74fe3(0x1f7)+process[_0xa74fe3(0x1b6)]+'\x20'+process[_0xa74fe3(0x1aa)]),console['log'](),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1c9)]('\x20\x20Config\x20Files')),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1c3)[_0xa74fe3(0x1b1)](0x1e)));const _0x4dcd61=getGlobalConfigPath(),_0x1fa49b=getProjectConfigPath();console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1df)+(_0x4dcd61||a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1dd)))),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1da)+(_0x1fa49b||a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1dd)))),console['log'](),console['log'](a89_0x29f5ae[_0xa74fe3(0x1c9)](_0xa74fe3(0x1de))),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)]('\x20\x20─'[_0xa74fe3(0x1b1)](0x1e)));const _0x434b6c=(_0x452b9b,_0x511548)=>{const _0x3b61df=_0xa74fe3;if(!_0x511548){console[_0x3b61df(0x1d9)]('\x20\x20'+_0x452b9b[_0x3b61df(0x1e9)](0x11)+'\x20'+a89_0x29f5ae[_0x3b61df(0x1b7)]('(no\x20file)'));return;}const _0x4fdc5d=inspectCliConfigJsonFile(_0x511548);if(_0x4fdc5d[_0x3b61df(0x1b9)]==='ok')console[_0x3b61df(0x1d9)]('\x20\x20'+_0x452b9b[_0x3b61df(0x1e9)](0x11)+'\x20'+a89_0x29f5ae[_0x3b61df(0x1ee)](_0x3b61df(0x1d2)));else{if(_0x4fdc5d['status']===_0x3b61df(0x1b4))console[_0x3b61df(0x1d9)]('\x20\x20'+_0x452b9b[_0x3b61df(0x1e9)](0x11)+'\x20'+a89_0x29f5ae['yellow'](_0x3b61df(0x1db)));else _0x4fdc5d['status']===_0x3b61df(0x1e7)?console[_0x3b61df(0x1d9)]('\x20\x20'+_0x452b9b['padEnd'](0x11)+'\x20'+a89_0x29f5ae['gray'](_0x3b61df(0x1a8))):(console[_0x3b61df(0x1d9)]('\x20\x20'+_0x452b9b[_0x3b61df(0x1e9)](0x11)+'\x20'+a89_0x29f5ae['red']('✗\x20Invalid\x20JSON')),console[_0x3b61df(0x1d9)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a89_0x29f5ae[_0x3b61df(0x1ef)](_0x4fdc5d[_0x3b61df(0x1af)])));}};_0x434b6c('Global',_0x4dcd61),_0x434b6c('Project',_0x1fa49b),console[_0xa74fe3(0x1d9)](),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1c9)](_0xa74fe3(0x1c7))),console[_0xa74fe3(0x1d9)](a89_0x29f5ae['gray'](_0xa74fe3(0x1c3)['repeat'](0x1e))),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1cc)+(_0x2523fd[_0xa74fe3(0x1e1)]||a89_0x29f5ae[_0xa74fe3(0x1ef)]('(not\x20set)'))),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1f2)+_0x2523fd[_0xa74fe3(0x1c6)]),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1c5)+_0x2523fd[_0xa74fe3(0x1ad)]),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1be)+_0x2523fd[_0xa74fe3(0x1c1)]),console[_0xa74fe3(0x1d9)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x2523fd[_0xa74fe3(0x1b0)]||a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1ab)))),console['log'](_0xa74fe3(0x1fb)+(_0x2523fd['currentApp']||a89_0x29f5ae['gray'](_0xa74fe3(0x1ab)))),console[_0xa74fe3(0x1d9)]('\x20\x20explicitAppName:\x20'+(_0x2523fd[_0xa74fe3(0x1fc)]||a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1ab)))),console[_0xa74fe3(0x1d9)]('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2523fd[_0xa74fe3(0x1d5)]||a89_0x29f5ae['gray'](_0xa74fe3(0x1f6)+DEFAULT_CONFIG_VALUES[_0xa74fe3(0x1d5)]+')'))),console['log'](_0xa74fe3(0x1d4)+(_0x2523fd[_0xa74fe3(0x1d6)]??a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1e8)))),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1cf)+_0x2523fd[_0xa74fe3(0x1d1)]),console[_0xa74fe3(0x1d9)]('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2523fd[_0xa74fe3(0x1cb)]),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1cd)+(_0x2523fd[_0xa74fe3(0x1c2)]?a89_0x29f5ae[_0xa74fe3(0x1ee)](_0xa74fe3(0x1e4)+_0x2523fd[_0xa74fe3(0x1c2)][_0xa74fe3(0x1bd)]+')'):_0x39c3eb?a89_0x29f5ae['green'](_0xa74fe3(0x1ac)+_0x39c3eb[_0xa74fe3(0x1bd)]+')'):a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1ab))));const _0x47324b=Object[_0xa74fe3(0x1b2)](_0x2523fd[_0xa74fe3(0x1dc)]);if(_0x47324b[_0xa74fe3(0x1bd)]>0x0){console[_0xa74fe3(0x1d9)](),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1c9)](_0xa74fe3(0x1b5))),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1c3)[_0xa74fe3(0x1b1)](0x1e)));for(const _0xf934d4 of _0x47324b){const _0x28f80b=_0x2523fd[_0xa74fe3(0x1dc)][_0xf934d4],_0x24c044=_0xf934d4===_0x2523fd[_0xa74fe3(0x1b0)],_0x4ed27a=_0xf934d4===_0x2523fd['currentApp'],_0x59a084=_0x4ed27a?a89_0x29f5ae[_0xa74fe3(0x1ee)]('\x20←\x20current'):'',_0xbc2bc3=_0x24c044?_0xa74fe3(0x1ae):'';console['log']('\x20\x20'+_0xf934d4+_0xbc2bc3+_0x59a084),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1b3)+_0x28f80b[_0xa74fe3(0x1ea)]);const _0x458045=buildAppDoctorFields(_0x28f80b,{'env':_0x2523fd[_0xa74fe3(0x1c6)],'apiDir':_0x2523fd[_0xa74fe3(0x1fa)][_0xa74fe3(0x1c1)]||DEFAULT_CONFIG_VALUES[_0xa74fe3(0x1c1)],'cookie':_0x2523fd['cookie']||_0x39c3eb||undefined,'accessKey':_0x2523fd[_0xa74fe3(0x1e0)]});console[_0xa74fe3(0x1d9)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20'+_0x458045[_0xa74fe3(0x1c6)][_0xa74fe3(0x1ca)]+'\x20\x20'+a89_0x29f5ae[_0xa74fe3(0x1b7)]('('+_0x458045[_0xa74fe3(0x1c6)][_0xa74fe3(0x1a5)]+')')),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1f8)+_0x458045[_0xa74fe3(0x1c1)][_0xa74fe3(0x1ca)]+'\x20\x20'+a89_0x29f5ae[_0xa74fe3(0x1b7)]('('+_0x458045[_0xa74fe3(0x1c1)]['source']+')'));const _0x37a282=_0x458045['cookie'][_0xa74fe3(0x1ca)]?a89_0x29f5ae[_0xa74fe3(0x1ee)](_0xa74fe3(0x1e4)+_0x458045[_0xa74fe3(0x1c2)][_0xa74fe3(0x1ca)][_0xa74fe3(0x1bd)]+')'):a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1ab));console['log'](_0xa74fe3(0x1f0)+_0x37a282+'\x20\x20'+a89_0x29f5ae[_0xa74fe3(0x1b7)]('('+_0x458045[_0xa74fe3(0x1c2)][_0xa74fe3(0x1a5)]+')'));const _0x5d9b31=_0x458045['accessKey']['value']?a89_0x29f5ae[_0xa74fe3(0x1ee)](_0xa74fe3(0x1e4)+_0x458045[_0xa74fe3(0x1e0)][_0xa74fe3(0x1ca)]['length']+')'):a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1ab));console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1d0)+_0x5d9b31+'\x20\x20'+a89_0x29f5ae['gray']('('+_0x458045[_0xa74fe3(0x1e0)][_0xa74fe3(0x1a5)]+')'));}}console[_0xa74fe3(0x1d9)](),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1c9)]('\x20\x20API\x20Endpoints')),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1c3)[_0xa74fe3(0x1b1)](0x1e))),console['log'](_0xa74fe3(0x1d3)+getApiDomain()),console[_0xa74fe3(0x1d9)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1fd)+getRuntimeDomain()),console[_0xa74fe3(0x1d9)](),console['log'](a89_0x29f5ae[_0xa74fe3(0x1c9)](_0xa74fe3(0x1f5))),console[_0xa74fe3(0x1d9)](a89_0x29f5ae[_0xa74fe3(0x1b7)](_0xa74fe3(0x1c3)[_0xa74fe3(0x1b1)](0x1e)));if(_0x39c3eb){const _0x4fb6f3=await getIsSessionValid();console[_0xa74fe3(0x1d9)](_0xa74fe3(0x1d8)+(_0x4fb6f3?a89_0x29f5ae['green'](_0xa74fe3(0x1f3)):a89_0x29f5ae[_0xa74fe3(0x1ef)](_0xa74fe3(0x1e3))));}else console['log'](_0xa74fe3(0x1d8)+a89_0x29f5ae[_0xa74fe3(0x1ef)](_0xa74fe3(0x1ec)));return console[_0xa74fe3(0x1d9)](),{'ok':!![]};}export const doctorDefinition={'service':a89_0x3d26a6(0x1f1),'command':a89_0x3d26a6(0x1e6),'description':a89_0x3d26a6(0x1bc),'risk':a89_0x3d26a6(0x1ed),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90_0x37dfb3=a90_0x1531;(function(_0x25c550,_0x506559){const _0x4e0433=a90_0x1531,_0x3f3578=_0x25c550();while(!![]){try{const _0x46e1b7=-parseInt(_0x4e0433(0x1a2))/0x1*(-parseInt(_0x4e0433(0x1bf))/0x2)+parseInt(_0x4e0433(0x1c9))/0x3*(parseInt(_0x4e0433(0x1b8))/0x4)+parseInt(_0x4e0433(0x1a5))/0x5+-parseInt(_0x4e0433(0x1c1))/0x6*(-parseInt(_0x4e0433(0x1ad))/0x7)+-parseInt(_0x4e0433(0x1a7))/0x8+parseInt(_0x4e0433(0x1c0))/0x9*(-parseInt(_0x4e0433(0x1be))/0xa)+-parseInt(_0x4e0433(0x1d0))/0xb;if(_0x46e1b7===_0x506559)break;else _0x3f3578['push'](_0x3f3578['shift']());}catch(_0x59975e){_0x3f3578['push'](_0x3f3578['shift']());}}}(a90_0x28bb,0x410ef));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';function a90_0x1531(_0x5d908a,_0x5347a8){_0x5d908a=_0x5d908a-0x1a0;const _0x28bb6f=a90_0x28bb();let _0x15319b=_0x28bb6f[_0x5d908a];return _0x15319b;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x2f5b85){return{'appCode':_0x2f5b85,'appName':_0x2f5b85};}function writeInitConfig(_0x4e39af,_0x56839c,_0x1fddf1){const _0x5210e7=a90_0x1531,_0x425bf5=resolveWriteConfigPath(_0x4e39af),_0x5aa008=buildCanonicalProjectConfig({},{'appCodes':_0x56839c['map'](_0x1da813=>_0x1da813['appCode']),'env':_0x1fddf1,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x5210e7(0x1cc)]()}});writeConfigFile(_0x425bf5,_0x5aa008);const _0x23d1a3=_0x4e39af==='global'?_0x5210e7(0x1ce):_0x5210e7(0x1cf);console['log']('\x0a✓\x20Successfully\x20initialized\x20'+_0x23d1a3+_0x5210e7(0x1b7)),console[_0x5210e7(0x1b3)](_0x5210e7(0x1bc)+_0x56839c[_0x5210e7(0x1b6)](_0x2552b3=>_0x2552b3[_0x5210e7(0x1b2)])[_0x5210e7(0x1af)](',\x20')),console['log'](_0x5210e7(0x1b1)+_0x5aa008[_0x5210e7(0x1a6)]),console[_0x5210e7(0x1b3)](_0x5210e7(0x1a8)+_0x5aa008[_0x5210e7(0x1ca)]),console[_0x5210e7(0x1b3)](_0x5210e7(0x1ab)+_0x425bf5);}function a90_0x28bb(){const _0x32e8a0=['\x20\x20Config:\x20','boolean','37667oGCsdz','nonInteractive','join','validation','\x20\x20Default:\x20','appCode','log','Target\x20environment','Use\x20`','map','\x20config','16tIVtkp','App\x20code\x20to\x20initialize\x20with','../../commands/project/init.js','appcode','\x20\x20Apps:\x20','production','1294420ioQwEF','878BvByqv','36UtbaFF','48HWrwWd','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','run','some','write','init','flagMissing','Auto-confirm\x20prompts','250293KIWDpL','env','cwd','toLocaleString','yes','global','project','3738669UEnpnK','检测到旧配置文件,正在自动升级...\x0a','bool','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','1171YuOUSC','Write\x20to\x20global\x20config\x20instead\x20of\x20project','string','2459490lnBwdx','defaultApp','2068904bBazyw','\x20\x20Env:\x20','custom','message'];a90_0x28bb=function(){return _0x32e8a0;};return a90_0x28bb();}async function runSmartInit(_0x50d085){const _0xf9efbb=a90_0x1531,_0x22d51a=process[_0xf9efbb(0x1cb)](),_0x3581a0=_0x50d085['bool'](_0xf9efbb(0x1ce))?_0xf9efbb(0x1ce):'project',_0x2710f7=_0x50d085['str'](_0xf9efbb(0x1ca))||_0xf9efbb(0x1bd),_0x35adc2=_0x50d085['str'](_0xf9efbb(0x1bb))||undefined,_0x4f82c0=_0x50d085[_0xf9efbb(0x1a0)](_0xf9efbb(0x1cf));if(_0x4f82c0){const {initConfig:_0x4fdf6f}=await import(_0xf9efbb(0x1ba));return _0x4fdf6f({'appcode':_0x35adc2,'env':_0x2710f7,'autoYes':_0x50d085[_0xf9efbb(0x1a0)]('yes')});}if(_0x3581a0==='project'){const _0x132df2=existsSync(resolve(_0x22d51a,NEW_CONFIG_NAME)),_0x1217e0=LEGACY_CONFIG_NAMES[_0xf9efbb(0x1c4)](_0x4f2af3=>existsSync(resolve(_0x22d51a,_0x4f2af3)));if(_0x1217e0&&!_0x132df2)return console[_0xf9efbb(0x1b3)](_0xf9efbb(0x1d1)),upgradeApp(_0x50d085['nonInteractive'],{'yes':_0x50d085[_0xf9efbb(0x1a0)](_0xf9efbb(0x1cd))});if(_0x132df2)throw CliErrors['validation']('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.',_0xf9efbb(0x1b5)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x35adc2){const _0x42f596=validateAppcode(_0x35adc2);if(!_0x42f596['valid'])throw CliErrors[_0xf9efbb(0x1b0)](_0x42f596[_0xf9efbb(0x1aa)]);writeInitConfig(_0x3581a0,[syntheticApp(_0x35adc2)],_0x2710f7);return;}if(_0x50d085[_0xf9efbb(0x1ae)])throw CliErrors[_0xf9efbb(0x1c7)](_0xf9efbb(0x1bb),'Usage:\x20'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x799662=getCookie(),_0x20ec20=await selectMultipleApps(_0x799662),_0x167adc=_0x20ec20===_0xf9efbb(0x1a9)?[syntheticApp(await promptCustomAppcode())]:_0x20ec20;writeInitConfig(_0x3581a0,_0x167adc,_0x2710f7);}const initFlags=[{'name':a90_0x37dfb3(0x1ce),'type':a90_0x37dfb3(0x1ac),'description':a90_0x37dfb3(0x1a3),'default':![]},{'name':a90_0x37dfb3(0x1ca),'type':a90_0x37dfb3(0x1a4),'description':a90_0x37dfb3(0x1b4),'default':a90_0x37dfb3(0x1bd),'enum':[...RABETBASE_ENV_VALUES]},{'name':a90_0x37dfb3(0x1bb),'type':'string','description':a90_0x37dfb3(0x1b9)},{'name':a90_0x37dfb3(0x1cf),'type':a90_0x37dfb3(0x1ac),'description':a90_0x37dfb3(0x1a1),'default':![]},{'name':a90_0x37dfb3(0x1cd),'type':'boolean','description':a90_0x37dfb3(0x1c8),'default':![]}];export const initDefinitions=[{'service':a90_0x37dfb3(0x1c6),'command':a90_0x37dfb3(0x1c3),'description':a90_0x37dfb3(0x1c2),'risk':a90_0x37dfb3(0x1c5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x4168d9){return await runSmartInit(_0x4168d9),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x16f11e,_0x1c93ee){const _0x1dbe07=a91_0x12d6,_0x552067=_0x16f11e();while(!![]){try{const _0x3679cf=parseInt(_0x1dbe07(0xea))/0x1+-parseInt(_0x1dbe07(0xec))/0x2*(-parseInt(_0x1dbe07(0xe6))/0x3)+parseInt(_0x1dbe07(0xe5))/0x4*(parseInt(_0x1dbe07(0xe2))/0x5)+parseInt(_0x1dbe07(0xeb))/0x6*(parseInt(_0x1dbe07(0xe3))/0x7)+parseInt(_0x1dbe07(0xe8))/0x8*(-parseInt(_0x1dbe07(0xe4))/0x9)+parseInt(_0x1dbe07(0xe9))/0xa*(-parseInt(_0x1dbe07(0xe1))/0xb)+-parseInt(_0x1dbe07(0xe7))/0xc;if(_0x3679cf===_0x1c93ee)break;else _0x552067['push'](_0x552067['shift']());}catch(_0x5c2a0c){_0x552067['push'](_0x552067['shift']());}}}(a91_0x437b,0xb241c));function a91_0x437b(){const _0x4da1d5=['55090lutCaz','199382KvTXIb','1650RbPoZZ','1027318VdCQdO','22HDNXAd','35CHspxW','31997sibCfG','626499PJhprv','133940zeMZWq','3ZtnyvT','4194324nIeHNn','128VcpGbN'];a91_0x437b=function(){return _0x4da1d5;};return a91_0x437b();}function a91_0x12d6(_0x505428,_0x411549){_0x505428=_0x505428-0xe1;const _0x437b47=a91_0x437b();let _0x12d667=_0x437b47[_0x505428];return _0x12d667;}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a92_0x3dbb33=a92_0x522a;(function(_0x2fb5ab,_0x4cc5c7){const _0x5b96cc=a92_0x522a,_0x22d8d4=_0x2fb5ab();while(!![]){try{const _0x15b4b5=-parseInt(_0x5b96cc(0x146))/0x1+-parseInt(_0x5b96cc(0x134))/0x2*(-parseInt(_0x5b96cc(0x139))/0x3)+parseInt(_0x5b96cc(0x13f))/0x4*(-parseInt(_0x5b96cc(0x12f))/0x5)+parseInt(_0x5b96cc(0x14d))/0x6+parseInt(_0x5b96cc(0x14b))/0x7*(parseInt(_0x5b96cc(0x147))/0x8)+-parseInt(_0x5b96cc(0x13a))/0x9+-parseInt(_0x5b96cc(0x140))/0xa*(parseInt(_0x5b96cc(0x143))/0xb);if(_0x15b4b5===_0x4cc5c7)break;else _0x22d8d4['push'](_0x22d8d4['shift']());}catch(_0x4cb5ab){_0x22d8d4['push'](_0x22d8d4['shift']());}}}(a92_0x4cc4,0x5451c));import{CliError}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const NUDGE_OPT_OUT_ENV=a92_0x3dbb33(0x131);const NUDGE_SUPPRESSED_CODES=new Set([a92_0x3dbb33(0x130),a92_0x3dbb33(0x148),a92_0x3dbb33(0x13b),'not_in_project',a92_0x3dbb33(0x138),a92_0x3dbb33(0x142),a92_0x3dbb33(0x135),'network_error']),defaultWriter=_0x5f5475=>{const _0x100e00=a92_0x3dbb33;process['stderr'][_0x100e00(0x13c)](_0x5f5475);};export function shouldNudgeForError(_0x530901,_0x24bdd5){const _0x23bf1d=a92_0x3dbb33;if(process.env[NUDGE_OPT_OUT_ENV]==='1')return![];if(_0x24bdd5['service']===_0x23bf1d(0x145)&&_0x24bdd5[_0x23bf1d(0x12e)]==='report')return![];if(_0x530901 instanceof CliError)return!NUDGE_SUPPRESSED_CODES['has'](_0x530901[_0x23bf1d(0x14e)]);return!![];}function a92_0x4cc4(){const _0x54819e=['validation_error','\x20issue\x20report\x20\x5c','\x20\x20\x20\x20--description\x20\x22Steps\x20to\x20reproduce,\x20expected\x20vs\x20actual,\x20and\x20any\x20relevant\x20logs.\x22','unknown_command','1074dZqPIg','4157703eEqiWe','config_missing','write','\x20\x20Set\x20','length','32CLMcaO','96860icsebs','\x20\x20\x20\x20--title\x20\x22','flag_missing','242ZSFbNr','replace','issue','150736LdvlLj','272dxZjfF','auth_required','=1\x20to\x20silence\x20this\x20hint.','slice','139342BxTKtf','\x22\x20\x5c','2199210TmUxbr','code','command','233805nTWzwc','cancelled','RABETBASE_DISABLE_ISSUE_NUDGE','join','\x20bug?\x20Help\x20us\x20fix\x20it:','2804kEKDmp'];a92_0x4cc4=function(){return _0x54819e;};return a92_0x4cc4();}export function printIssueReportNudgeForError(_0x2b3c81,_0x7d2d0d,_0x1badb1=defaultWriter){if(!shouldNudgeForError(_0x2b3c81,_0x7d2d0d))return;const _0x4e1d11=buildSuggestedTitle(_0x2b3c81,_0x7d2d0d);_0x1badb1(formatNudge(_0x4e1d11));}function a92_0x522a(_0x907b38,_0x118495){_0x907b38=_0x907b38-0x12e;const _0x4cc41d=a92_0x4cc4();let _0x522ae7=_0x4cc41d[_0x907b38];return _0x522ae7;}function buildSuggestedTitle(_0x526804,_0x2fe69b){const _0x322e6f=a92_0x3dbb33,_0x17412b=_0x526804 instanceof Error?_0x526804['message']:String(_0x526804),_0x35908c=_0x17412b[_0x322e6f(0x144)](/[\r\n]+/g,'\x20')[_0x322e6f(0x144)](/\s+/g,'\x20')['trim']()[_0x322e6f(0x14a)](0x0,0x78)[_0x322e6f(0x144)](/"/g,'\x5c\x22'),_0x1bc4fb=CLI_BIN_NAME+'\x20'+_0x2fe69b['service']+'\x20'+_0x2fe69b[_0x322e6f(0x12e)];return _0x35908c[_0x322e6f(0x13e)]>0x0?_0x1bc4fb+':\x20'+_0x35908c:_0x1bc4fb;}function formatNudge(_0x26974a){const _0x30efa7=a92_0x3dbb33;return['','Hit\x20a\x20'+CLI_BIN_NAME+_0x30efa7(0x133),'\x20\x20'+CLI_BIN_NAME+_0x30efa7(0x136),_0x30efa7(0x141)+_0x26974a+_0x30efa7(0x14c),_0x30efa7(0x137),'\x20\x20(Cookies\x20/\x20Authorization\x20/\x20access\x20keys\x20are\x20automatically\x20redacted\x20before\x20upload.)',_0x30efa7(0x13d)+NUDGE_OPT_OUT_ENV+_0x30efa7(0x149),''][_0x30efa7(0x132)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0xc52a0a=a93_0x536d;(function(_0x2d7abe,_0x27feb0){const _0x2b0f3f=a93_0x536d,_0x5c45cc=_0x2d7abe();while(!![]){try{const _0x4b73cb=parseInt(_0x2b0f3f(0x14b))/0x1*(-parseInt(_0x2b0f3f(0x14c))/0x2)+parseInt(_0x2b0f3f(0x156))/0x3+-parseInt(_0x2b0f3f(0x135))/0x4*(-parseInt(_0x2b0f3f(0x170))/0x5)+-parseInt(_0x2b0f3f(0x165))/0x6+-parseInt(_0x2b0f3f(0x145))/0x7*(-parseInt(_0x2b0f3f(0x162))/0x8)+-parseInt(_0x2b0f3f(0x13d))/0x9*(parseInt(_0x2b0f3f(0x137))/0xa)+parseInt(_0x2b0f3f(0x139))/0xb;if(_0x4b73cb===_0x27feb0)break;else _0x5c45cc['push'](_0x5c45cc['shift']());}catch(_0x3dc658){_0x5c45cc['push'](_0x5c45cc['shift']());}}}(a93_0x2084,0xb7e44));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';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';function a93_0x2084(){const _0x44a97f=['description-file','issue.title','inline','compress','issue.description','732340YrtYQw','otel://','descriptionSource:\x20','redactionKinds','descriptionFilePath','\x20secret(s):\x20','2IPgXxX','243626ddbByZ','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','POST','filter','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','Platform\x20issue\x20reported','cwd','description','flagMissing','225642GfRKLg','utf8','length','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','join','Platform\x20issue\x20reported\x20(','push','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','trim','sanitize','str','32qSsyMa','Issue\x20description\x20cannot\x20be\x20empty.','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','3345822GXmPma','title','truncated','redactions:\x20','Failed\x20to\x20report\x20platform\x20issue:\x20','originalBytes','issue.description_redactions','truncated:\x20original\x20','report','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','redactionCount','4827865UGYcqg','One-line\x20issue\x20summary','4QKyyuP','validation','9409900gIrSiE','descriptionSource','11398266tIpVnJ','message','apiError','issue.description_redaction_kinds','9hnVIbD','file','File\x20not\x20found:\x20'];a93_0x2084=function(){return _0x44a97f;};return a93_0x2084();}function a93_0x536d(_0xddd43f,_0x24a1db){_0xddd43f=_0xddd43f-0x135;const _0x20842c=a93_0x2084();let _0x536d2f=_0x20842c[_0xddd43f];return _0x536d2f;}const DESCRIPTION_FILE_FLAG=a93_0xc52a0a(0x140);export const issueReport={'service':'issue','command':a93_0xc52a0a(0x16d),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':'write','requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a93_0xc52a0a(0x143),'flags':[{'name':a93_0xc52a0a(0x166),'type':'string','required':!![],'description':a93_0xc52a0a(0x171)},{'name':a93_0xc52a0a(0x154),'type':'string','description':a93_0xc52a0a(0x159)},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':a93_0xc52a0a(0x14e)}],async 'validate'(_0x2e87b1){const _0x59a29b=a93_0xc52a0a,_0x4287b9=_0x2e87b1[_0x59a29b(0x161)](_0x59a29b(0x166))[_0x59a29b(0x15f)](),_0x583a7e=_0x2e87b1[_0x59a29b(0x161)]('description')[_0x59a29b(0x15f)](),_0x57d4a6=_0x2e87b1[_0x59a29b(0x161)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x4287b9)throw CliErrors[_0x59a29b(0x155)]('title',_0x59a29b(0x15e));const _0x49ba91=_0x583a7e[_0x59a29b(0x158)]>0x0,_0x1f9215=_0x57d4a6[_0x59a29b(0x158)]>0x0;if(_0x49ba91===_0x1f9215)throw CliErrors[_0x59a29b(0x136)]('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x59a29b(0x15d));if(_0x1f9215){const _0x546d52=resolve(process[_0x59a29b(0x153)](),_0x57d4a6);if(!existsSync(_0x546d52))throw CliErrors[_0x59a29b(0x136)](_0x59a29b(0x13f)+_0x546d52);}},async 'dryRun'(_0x40d351){const _0x1312ef=a93_0xc52a0a,_0x1167b6=await prepareIssueReport(_0x40d351);return{'method':_0x1312ef(0x14f),'url':_0x1312ef(0x146)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x1167b6[_0x1312ef(0x166)],'issue.description':_0x1167b6[_0x1312ef(0x154)],'issue.description_original_bytes':_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x16a)],'issue.description_truncated':_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x167)],'issue.description_redactions':_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x16f)],'issue.description_redaction_kinds':_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x148)][_0x1312ef(0x15a)](',')}},'description':[_0x1312ef(0x14d),_0x1312ef(0x147)+_0x1167b6[_0x1312ef(0x138)],_0x1167b6[_0x1312ef(0x149)]?'descriptionFile:\x20'+_0x1167b6[_0x1312ef(0x149)]:null,_0x1167b6['sanitize'][_0x1312ef(0x167)]?_0x1312ef(0x16c)+_0x1167b6[_0x1312ef(0x160)]['originalBytes']+'\x20bytes':null,_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x16f)]>0x0?_0x1312ef(0x168)+_0x1167b6[_0x1312ef(0x160)][_0x1312ef(0x16f)]+'\x20('+_0x1167b6[_0x1312ef(0x160)]['redactionKinds'][_0x1312ef(0x15a)](',\x20')+')':null][_0x1312ef(0x150)](Boolean)[_0x1312ef(0x15a)]('\x0a')};},async 'execute'(_0x256f4e){const _0x3c5042=a93_0xc52a0a,_0x210583=await prepareIssueReport(_0x256f4e);try{await sendPlatformIssueCollectLog({'title':_0x210583[_0x3c5042(0x166)],'description':_0x210583[_0x3c5042(0x154)],'sanitize':{'originalBytes':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x16a)],'truncated':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x167)],'redactionCount':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x16f)],'redactionKinds':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x148)]}});}catch(_0x12ecd1){throw CliErrors[_0x3c5042(0x13b)](_0x3c5042(0x169)+(_0x12ecd1 instanceof Error?_0x12ecd1[_0x3c5042(0x13a)]:String(_0x12ecd1)),_0x3c5042(0x151));}return{'ok':!![],'message':buildResultMessage(_0x210583['sanitize']),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x3c5042(0x141),_0x3c5042(0x144),'issue.description_original_bytes','issue.description_truncated',_0x3c5042(0x16b),_0x3c5042(0x13c)],'issue':{'title':_0x210583['title'],'descriptionLength':_0x210583[_0x3c5042(0x154)][_0x3c5042(0x158)],'descriptionSource':_0x210583[_0x3c5042(0x138)],..._0x210583['descriptionFilePath']?{'descriptionFile':_0x210583[_0x3c5042(0x149)]}:{},'sanitize':{'originalBytes':_0x210583['sanitize'][_0x3c5042(0x16a)],'truncated':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x167)],'redactions':_0x210583[_0x3c5042(0x160)][_0x3c5042(0x16f)],'redactionKinds':_0x210583['sanitize'][_0x3c5042(0x148)]}}}};}};function buildResultMessage(_0x29334d){const _0x16bd0c=a93_0xc52a0a,_0x428273=[];return _0x29334d[_0x16bd0c(0x167)]&&_0x428273[_0x16bd0c(0x15c)]('truncated\x20from\x20'+_0x29334d[_0x16bd0c(0x16a)]+'\x20bytes'),_0x29334d[_0x16bd0c(0x16f)]>0x0&&_0x428273[_0x16bd0c(0x15c)]('redacted\x20'+_0x29334d[_0x16bd0c(0x16f)]+_0x16bd0c(0x14a)+_0x29334d[_0x16bd0c(0x148)][_0x16bd0c(0x15a)](',\x20')),_0x428273['length']===0x0?_0x16bd0c(0x152):_0x16bd0c(0x15b)+_0x428273[_0x16bd0c(0x15a)](';\x20')+')';}async function prepareIssueReport(_0x46ebde){const _0x35226d=a93_0xc52a0a,_0x574b65=_0x46ebde['str'](_0x35226d(0x166))[_0x35226d(0x15f)](),_0x21b8f1=_0x46ebde[_0x35226d(0x161)](_0x35226d(0x154)),_0xe93199=_0x46ebde[_0x35226d(0x161)](DESCRIPTION_FILE_FLAG)[_0x35226d(0x15f)]();if(!_0xe93199){const _0x149bbd=_0x21b8f1;if(!_0x149bbd['trim']())throw CliErrors[_0x35226d(0x136)](_0x35226d(0x163),_0x35226d(0x16e));const _0x599a6b=sanitizeIssueDescription(_0x149bbd);return{'title':_0x574b65,'description':_0x599a6b[_0x35226d(0x154)],'descriptionSource':_0x35226d(0x142),'sanitize':_0x599a6b};}const _0x5140fc=resolve(process[_0x35226d(0x153)](),_0xe93199),_0x1f4065=await readFile(_0x5140fc,_0x35226d(0x157));if(!_0x1f4065[_0x35226d(0x15f)]())throw CliErrors[_0x35226d(0x136)]('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x5140fc,_0x35226d(0x164));const _0x2c4bb8=sanitizeIssueDescription(_0x1f4065);return{'title':_0x574b65,'description':_0x2c4bb8['description'],'descriptionSource':_0x35226d(0x13e),'descriptionFilePath':_0x5140fc,'sanitize':_0x2c4bb8};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94_0x294ce9=a94_0x4918;(function(_0x34e9b6,_0x2f44eb){const _0x38d765=a94_0x4918,_0x53ecd4=_0x34e9b6();while(!![]){try{const _0x37db32=-parseInt(_0x38d765(0x111))/0x1+-parseInt(_0x38d765(0x10d))/0x2*(-parseInt(_0x38d765(0x11a))/0x3)+parseInt(_0x38d765(0x102))/0x4*(parseInt(_0x38d765(0x104))/0x5)+-parseInt(_0x38d765(0x110))/0x6+parseInt(_0x38d765(0x11b))/0x7*(parseInt(_0x38d765(0x10a))/0x8)+-parseInt(_0x38d765(0x107))/0x9+-parseInt(_0x38d765(0x11c))/0xa;if(_0x37db32===_0x2f44eb)break;else _0x53ecd4['push'](_0x53ecd4['shift']());}catch(_0x42e4a5){_0x53ecd4['push'](_0x53ecd4['shift']());}}}(a94_0x14a8,0xa2ed0));export const ISSUE_DESCRIPTION_MAX_BYTES=0x100*0x400;function a94_0x4918(_0x840cef,_0x26f699){_0x840cef=_0x840cef-0x102;const _0x14a84c=a94_0x14a8();let _0x4918c8=_0x14a84c[_0x840cef];return _0x4918c8;}function a94_0x14a8(){const _0x1f6ca8=['67410ftymqb','toString','kind','REDACTED:bearer-jwt','byteLength','REDACTED:access-key','REDACTED:private-key','cookie','includes','3qevcch','4716586msgrCC','8596990drdtkY','private-key','access-key','replace','push','authorization','48fWiIiO','REDACTED:password','149230ZyqslT','utf8','REDACTED:cookie','2809161DvJRUf','label','bearer-jwt','8ndTSnS','string','max','1983790EIVvNK','pattern','subarray','703578fAGmqs'];a94_0x14a8=function(){return _0x1f6ca8;};return a94_0x14a8();}const TRUNCATION_NOTICE='\x0a\x0a[...TRUNCATED\x20by\x20rabetbase-cli...]',REDACTION_RULES=[{'kind':a94_0x294ce9(0x118),'pattern':/(cookie\s*[:=]\s*)[^\s;,'"`]+/gi,'label':a94_0x294ce9(0x106)},{'kind':a94_0x294ce9(0x121),'pattern':/(authorization\s*:\s*)(bearer|basic|token)\s+[^\s'"`]+/gi,'label':'REDACTED:authorization'},{'kind':a94_0x294ce9(0x11d),'pattern':/-----BEGIN [A-Z0-9 ]*PRIVATE KEY-----[\s\S]*?-----END [A-Z0-9 ]*PRIVATE KEY-----/g,'label':a94_0x294ce9(0x117)},{'kind':a94_0x294ce9(0x11e),'pattern':/((?:aliyun_)?(?:access|secret)[_-]?key(?:[_-]?id)?\s*[:=]\s*)['"]?[A-Za-z0-9/+_\-]{8,}['"]?/gi,'label':a94_0x294ce9(0x116)},{'kind':'password','pattern':/(pass(?:word|wd)\s*[:=]\s*)['"]?[^\s'"`]+['"]?/gi,'label':a94_0x294ce9(0x103)},{'kind':a94_0x294ce9(0x109),'pattern':/\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b/g,'label':a94_0x294ce9(0x114)}];export function sanitizeIssueDescription(_0x2d43cf){const _0xe4daf1=a94_0x294ce9,_0x2b67f5=Buffer['byteLength'](_0x2d43cf,'utf8'),_0x2244b3=process.env.RABETBASE_ISSUE_RAW_DESCRIPTION==='1';let _0x1dcb59=_0x2d43cf,_0x1c9623=0x0;const _0x155bb6=[];if(!_0x2244b3)for(const _0xc7a00d of REDACTION_RULES){let _0x22bcc8=0x0;_0x1dcb59=_0x1dcb59[_0xe4daf1(0x11f)](_0xc7a00d[_0xe4daf1(0x10e)],(_0x58c7c6,_0x3fac08)=>{const _0x38e824=_0xe4daf1;_0x22bcc8+=0x1;const _0x5f06f6=typeof _0x3fac08===_0x38e824(0x10b)?_0x3fac08:'';return _0x5f06f6+'['+_0xc7a00d[_0x38e824(0x108)]+']';}),_0x22bcc8>0x0&&(_0x1c9623+=_0x22bcc8,!_0x155bb6[_0xe4daf1(0x119)](_0xc7a00d[_0xe4daf1(0x113)])&&_0x155bb6[_0xe4daf1(0x120)](_0xc7a00d[_0xe4daf1(0x113)]));}let _0x176ed7=![];if(Buffer[_0xe4daf1(0x115)](_0x1dcb59,_0xe4daf1(0x105))>ISSUE_DESCRIPTION_MAX_BYTES){_0x176ed7=!![];const _0x3e096c=Buffer['byteLength'](TRUNCATION_NOTICE,_0xe4daf1(0x105)),_0x4dfc0e=Math[_0xe4daf1(0x10c)](0x0,ISSUE_DESCRIPTION_MAX_BYTES-_0x3e096c);_0x1dcb59=sliceUtf8Bytes(_0x1dcb59,_0x4dfc0e)+TRUNCATION_NOTICE;}return{'description':_0x1dcb59,'originalBytes':_0x2b67f5,'truncated':_0x176ed7,'redactionCount':_0x1c9623,'redactionKinds':_0x155bb6};}function sliceUtf8Bytes(_0xbfb116,_0x29aba6){const _0x13f440=a94_0x294ce9;if(_0x29aba6<=0x0)return'';const _0x2b622f=Buffer['from'](_0xbfb116,_0x13f440(0x105));if(_0x2b622f[_0x13f440(0x115)]<=_0x29aba6)return _0xbfb116;let _0x22da46=_0x29aba6;while(_0x22da46>0x0){const _0x48619e=_0x2b622f[_0x22da46];if(_0x48619e===undefined||(_0x48619e&0xc0)!==0x80)break;_0x22da46-=0x1;}return _0x2b622f[_0x13f440(0x10f)](0x0,_0x22da46)[_0x13f440(0x112)]('utf8');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95_0x1a88e2=a95_0x50cd;(function(_0x230008,_0x2d7406){const _0x56d7ad=a95_0x50cd,_0x572f05=_0x230008();while(!![]){try{const _0x537834=parseInt(_0x56d7ad(0xf8))/0x1+parseInt(_0x56d7ad(0x10e))/0x2+parseInt(_0x56d7ad(0x102))/0x3+-parseInt(_0x56d7ad(0x10b))/0x4*(parseInt(_0x56d7ad(0x10f))/0x5)+-parseInt(_0x56d7ad(0x103))/0x6*(parseInt(_0x56d7ad(0x10a))/0x7)+parseInt(_0x56d7ad(0xfc))/0x8*(parseInt(_0x56d7ad(0x108))/0x9)+-parseInt(_0x56d7ad(0x104))/0xa*(parseInt(_0x56d7ad(0xfe))/0xb);if(_0x537834===_0x2d7406)break;else _0x572f05['push'](_0x572f05['shift']());}catch(_0x3c9f94){_0x572f05['push'](_0x572f05['shift']());}}}(a95_0x3e88,0xab3ad));function a95_0x3e88(){const _0x557cf3=['695OWUVmj','\x20\x20\x20Duration:\x20','keys','show','toLocaleString','logs','*\x20Lovrabet\x20CLI\x20logs:\x0a','read','duration','en-US','level','1128926QLBQFA','timestamp','stringify','readLogs','120wZlgtA','*\x20No\x20logs\x20found','30778vcyRhT','error','log','clear','1713288OJqKke','3271986qnADtu','6530DUMmmg','success','clearLogs','details','536859iumhnq','Clear\x20command\x20history\x20logs','7BuoAJN','15168oiwaeS','length','*\x20Logs\x20cleared','2012166ecASrn'];a95_0x3e88=function(){return _0x557cf3;};return a95_0x3e88();}import{logger}from'../../utils/logger.js';function printLogs(_0x5498af){const _0x17807e=a95_0x50cd;if(_0x5498af[_0x17807e(0x10c)]===0x0){console[_0x17807e(0x100)](_0x17807e(0xfd));return;}console[_0x17807e(0x100)](_0x17807e(0xf3)),_0x5498af['forEach']((_0x3ce613,_0x1cc7fa)=>{const _0x5dfc40=_0x17807e,_0x8511ce=new Date(_0x3ce613[_0x5dfc40(0xf9)])[_0x5dfc40(0xf1)](_0x5dfc40(0xf6)),_0x3336b8=_0x3ce613[_0x5dfc40(0xf7)]===_0x5dfc40(0x105)?'√':_0x3ce613[_0x5dfc40(0xf7)]===_0x5dfc40(0xff)?'×':_0x3ce613[_0x5dfc40(0xf7)]==='warn'?'!':'i';console['log'](_0x1cc7fa+0x1+'.\x20'+_0x3336b8+'\x20['+_0x3ce613['command']+']\x20'+_0x3ce613['message']),console[_0x5dfc40(0x100)]('\x20\x20\x20Time:\x20'+_0x8511ce),_0x3ce613[_0x5dfc40(0xf5)]&&console['log'](_0x5dfc40(0xee)+_0x3ce613[_0x5dfc40(0xf5)]+'ms'),_0x3ce613[_0x5dfc40(0x107)]&&Object[_0x5dfc40(0xef)](_0x3ce613[_0x5dfc40(0x107)])[_0x5dfc40(0x10c)]>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON[_0x5dfc40(0xfa)](_0x3ce613[_0x5dfc40(0x107)],null,0x2)),console[_0x5dfc40(0x100)]('');});}function a95_0x50cd(_0x2a3291,_0x4312f8){_0x2a3291=_0x2a3291-0xee;const _0x3e8825=a95_0x3e88();let _0x50cd55=_0x3e8825[_0x2a3291];return _0x50cd55;}export const logsDefinitions=[{'service':a95_0x1a88e2(0xf2),'command':a95_0x1a88e2(0xf0),'description':'View\x20command\x20history\x20logs','risk':a95_0x1a88e2(0xf4),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x540444){const _0x31c1f1=a95_0x1a88e2;return printLogs(logger[_0x31c1f1(0xfb)]()),{'ok':!![]};}},{'service':a95_0x1a88e2(0xf2),'command':a95_0x1a88e2(0x101),'description':a95_0x1a88e2(0x109),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x109390){const _0x33db03=a95_0x1a88e2;return logger[_0x33db03(0x106)](),console[_0x33db03(0x100)](_0x33db03(0x10d)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xa88240,_0x59540d){const _0x55b1ec=a96_0x2fcf,_0x3c3660=_0xa88240();while(!![]){try{const _0x3a48a9=parseInt(_0x55b1ec(0x7a))/0x1*(-parseInt(_0x55b1ec(0x82))/0x2)+parseInt(_0x55b1ec(0x83))/0x3+-parseInt(_0x55b1ec(0x7d))/0x4*(parseInt(_0x55b1ec(0x84))/0x5)+-parseInt(_0x55b1ec(0x81))/0x6+parseInt(_0x55b1ec(0x7e))/0x7*(-parseInt(_0x55b1ec(0x80))/0x8)+-parseInt(_0x55b1ec(0x7f))/0x9*(-parseInt(_0x55b1ec(0x7c))/0xa)+-parseInt(_0x55b1ec(0x85))/0xb*(-parseInt(_0x55b1ec(0x7b))/0xc);if(_0x3a48a9===_0x59540d)break;else _0x3c3660['push'](_0x3c3660['shift']());}catch(_0x5b2578){_0x3c3660['push'](_0x3c3660['shift']());}}}(a96_0x3fa8,0x9585a));import{menuList}from'../../commands/menu/list.js';function a96_0x2fcf(_0xeeffbc,_0x55e9ab){_0xeeffbc=_0xeeffbc-0x7a;const _0x3fa804=a96_0x3fa8();let _0x2fcf20=_0x3fa804[_0xeeffbc];return _0x2fcf20;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a96_0x3fa8(){const _0x42af29=['189FnPWpW','563120ojvVlo','6475452UxVTvC','2207432sEPUqX','1215792ieGSHh','3398170MaAtAH','11oUThZE','1CNuFGe','38303028bLEvfa','75910SjlyjL','4FDurJg','28HaKagA'];a96_0x3fa8=function(){return _0x42af29;};return a96_0x3fa8();}export const menuDefinitions=[menuList,menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97_0x5720ac=a97_0x3c6f;(function(_0x57d67a,_0x24935c){const _0x3a9516=a97_0x3c6f,_0x4ddc27=_0x57d67a();while(!![]){try{const _0x587fb7=parseInt(_0x3a9516(0x1f6))/0x1+-parseInt(_0x3a9516(0x1ed))/0x2+parseInt(_0x3a9516(0x1ea))/0x3+parseInt(_0x3a9516(0x1f5))/0x4+parseInt(_0x3a9516(0x1f0))/0x5+parseInt(_0x3a9516(0x1fd))/0x6*(-parseInt(_0x3a9516(0x1fc))/0x7)+parseInt(_0x3a9516(0x1df))/0x8*(-parseInt(_0x3a9516(0x1dc))/0x9);if(_0x587fb7===_0x24935c)break;else _0x4ddc27['push'](_0x4ddc27['shift']());}catch(_0x203b6f){_0x4ddc27['push'](_0x4ddc27['shift']());}}}(a97_0x232f,0x9bf33));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a97_0x232f(){const _0x1e9c95=['21NkbkWn','1436862hpmEXS','extend','POSITIVE_INFINITY','isArray','2463354OGTSwS','cookie','type','40iSDxTd','string','length','menu','number','push','item','Found\x20','read','parse','sort','3519378TYYVdt','bool','children','163036XmWknT','path','visible','2780795ScKZEX','boolean','Return\x20extend\x20field\x20for\x20troubleshooting\x20resource\x20parsing','\x20menu(s)','depth','578152lfwztK','933427XPXyYM','No\x20menus\x20found.','map','verbose','List\x20online\x20menu\x20facts\x20for\x20the\x20current\x20app','index'];a97_0x232f=function(){return _0x1e9c95;};return a97_0x232f();}import{getMenuTree}from'../../core/api-client.js';function a97_0x3c6f(_0x4430ca,_0x4a47d2){_0x4430ca=_0x4430ca-0x1dc;const _0x232f78=a97_0x232f();let _0x3c6fb3=_0x232f78[_0x4430ca];return _0x3c6fb3;}export const menuList={'service':a97_0x5720ac(0x1e2),'command':'list','description':a97_0x5720ac(0x1fa),'risk':a97_0x5720ac(0x1e7),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'verbose','type':a97_0x5720ac(0x1f1),'description':a97_0x5720ac(0x1f2)}],async 'execute'(_0x400408){const _0x442a65=a97_0x5720ac,_0x4281d7=_0x400408[_0x442a65(0x1eb)](_0x442a65(0x1f9)),_0x1ebad3=await getMenuTree(_0x400408['appCode'],_0x400408[_0x442a65(0x1dd)]),_0x463365=flattenMenuItems(Array[_0x442a65(0x200)](_0x1ebad3)?_0x1ebad3:[],{'verbose':_0x4281d7,'parentId':null,'depth':0x0});return{'ok':!![],'data':{'total':_0x463365[_0x442a65(0x1e1)],'menus':_0x463365},'message':_0x463365[_0x442a65(0x1e1)]===0x0?_0x442a65(0x1f7):_0x442a65(0x1e6)+_0x463365[_0x442a65(0x1e1)]+_0x442a65(0x1f3)};}};function flattenMenuItems(_0x28078d,_0x5206e0){const _0x733dc4=a97_0x5720ac,_0xe407a2=sortMenuItems(_0x28078d),_0x12bb56=[];for(const _0x11d619 of _0xe407a2){_0x12bb56[_0x733dc4(0x1e4)](toMenuListItem(_0x11d619,_0x5206e0)),Array[_0x733dc4(0x200)](_0x11d619[_0x733dc4(0x1ec)])&&_0x11d619['children']['length']>0x0&&_0x12bb56['push'](...flattenMenuItems(_0x11d619[_0x733dc4(0x1ec)],{'verbose':_0x5206e0[_0x733dc4(0x1f9)],'parentId':_0x11d619['id'],'depth':_0x5206e0[_0x733dc4(0x1f4)]+0x1}));}return _0x12bb56;}function sortMenuItems(_0x3b93b7){const _0x1ea7da=a97_0x5720ac;return _0x3b93b7[_0x1ea7da(0x1f8)]((_0x188509,_0x3639a5)=>({'item':_0x188509,'index':_0x3639a5}))[_0x1ea7da(0x1e9)]((_0x13f77d,_0x31773e)=>{const _0x1a7a44=_0x1ea7da,_0x482f72=normalizeSort(_0x13f77d[_0x1a7a44(0x1e5)]['sort']),_0xe81a55=normalizeSort(_0x31773e[_0x1a7a44(0x1e5)]['sort']);if(_0x482f72!==_0xe81a55)return _0x482f72-_0xe81a55;return _0x13f77d[_0x1a7a44(0x1fb)]-_0x31773e[_0x1a7a44(0x1fb)];})[_0x1ea7da(0x1f8)](({item:_0x4fde90})=>_0x4fde90);}function toMenuListItem(_0x481b8d,_0x2a9eda){const _0x28e42a=a97_0x5720ac,_0x1c5cd6={'id':_0x481b8d['id'],'parentId':_0x2a9eda['parentId'],'depth':_0x2a9eda[_0x28e42a(0x1f4)],'label':normalizeString(_0x481b8d['label']),'path':normalizeString(_0x481b8d[_0x28e42a(0x1ee)]),'type':normalizeString(_0x481b8d[_0x28e42a(0x1de)]),'visible':typeof _0x481b8d['visible']===_0x28e42a(0x1f1)?_0x481b8d[_0x28e42a(0x1ef)]:null,'sort':typeof _0x481b8d[_0x28e42a(0x1e9)]===_0x28e42a(0x1e3)&&Number['isFinite'](_0x481b8d[_0x28e42a(0x1e9)])?_0x481b8d[_0x28e42a(0x1e9)]:null,'resources':normalizeResources(_0x481b8d[_0x28e42a(0x1fe)]?.['resources'])};return _0x2a9eda[_0x28e42a(0x1f9)]&&(_0x1c5cd6[_0x28e42a(0x1fe)]=_0x481b8d[_0x28e42a(0x1fe)]??null),_0x1c5cd6;}function normalizeSort(_0x1357ea){const _0x55941f=a97_0x5720ac;return typeof _0x1357ea==='number'&&Number['isFinite'](_0x1357ea)?_0x1357ea:Number[_0x55941f(0x1ff)];}function normalizeString(_0x4905d9){return typeof _0x4905d9==='string'?_0x4905d9:'';}function normalizeResources(_0xf4fabf){const _0x2d929a=a97_0x5720ac;if(Array[_0x2d929a(0x200)](_0xf4fabf))return _0xf4fabf[_0x2d929a(0x1f8)](String);if(typeof _0xf4fabf!==_0x2d929a(0x1e0))return[];try{const _0x28ef7f=JSON[_0x2d929a(0x1e8)](_0xf4fabf);return Array[_0x2d929a(0x200)](_0x28ef7f)?_0x28ef7f[_0x2d929a(0x1f8)](String):[];}catch{return[];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5094c5,_0x334722){const _0x3d248b=a98_0x5435,_0x370113=_0x5094c5();while(!![]){try{const _0x77f514=-parseInt(_0x3d248b(0x110))/0x1*(parseInt(_0x3d248b(0x122))/0x2)+parseInt(_0x3d248b(0x118))/0x3+-parseInt(_0x3d248b(0x11c))/0x4*(-parseInt(_0x3d248b(0x117))/0x5)+parseInt(_0x3d248b(0x112))/0x6*(-parseInt(_0x3d248b(0x12c))/0x7)+parseInt(_0x3d248b(0x116))/0x8*(parseInt(_0x3d248b(0x124))/0x9)+parseInt(_0x3d248b(0x12e))/0xa*(parseInt(_0x3d248b(0x126))/0xb)+-parseInt(_0x3d248b(0x12a))/0xc*(parseInt(_0x3d248b(0x113))/0xd);if(_0x77f514===_0x334722)break;else _0x370113['push'](_0x370113['shift']());}catch(_0x352fe6){_0x370113['push'](_0x370113['shift']());}}}(a98_0x499c,0x4dae0));function strWidth(_0x147979){const _0x3c53c1=a98_0x5435;let _0x2010fc=0x0;for(const _0x4eb09e of _0x147979){_0x2010fc+=/[\u4e00-\u9fa5]/[_0x3c53c1(0x11e)](_0x4eb09e)?0x2:0x1;}return _0x2010fc;}function padRight(_0xc32294,_0xcc5ae7){const _0x1ed632=a98_0x5435,_0x1fa66b=strWidth(_0xc32294);return _0xc32294+'\x20'['repeat'](Math[_0x1ed632(0x12d)](0x0,_0xcc5ae7-_0x1fa66b));}function a98_0x5435(_0x215f94,_0x37e3db){_0x215f94=_0x215f94-0x110;const _0x499c6b=a98_0x499c();let _0x543599=_0x499c6b[_0x215f94];return _0x543599;}export function renderCompareTable(_0x550ee9,_0x32da46={}){const _0x4ec362=a98_0x5435;if(_0x550ee9[_0x4ec362(0x121)]===0x0)return'';const _0x41a2e8=_0x32da46['showOnline']??!![],_0x24d0c9=Math[_0x4ec362(0x12d)](0x1e,..._0x550ee9[_0x4ec362(0x11b)](_0x467987=>strWidth(_0x467987[_0x4ec362(0x115)]))),_0x283326=0x4,_0x431df2=[],_0x277705='\x20\x20'+padRight('Menu\x20Name',_0x24d0c9),_0x1ce885=padRight(_0x4ec362(0x11a),_0x283326),_0x791443=_0x41a2e8?'\x20\x20'+padRight(_0x4ec362(0x12f),_0x283326):'';_0x431df2[_0x4ec362(0x11f)](_0x277705+'\x20\x20'+_0x1ce885+(_0x41a2e8?_0x791443:'')),_0x431df2['push']('\x20\x20'+'─'[_0x4ec362(0x120)](_0x24d0c9)+'\x20\x20'+'─'[_0x4ec362(0x120)](_0x283326)+(_0x41a2e8?'\x20\x20'+'─'[_0x4ec362(0x120)](_0x283326):''));for(const _0x42037a of _0x550ee9){const _0x377fda=padRight(_0x42037a['label'],_0x24d0c9),_0x4a668d=_0x42037a[_0x4ec362(0x128)]?'✓':'✗',_0x432993=padRight(_0x4a668d,_0x283326);let _0x333d09='\x20\x20'+_0x377fda+'\x20\x20'+_0x432993;if(_0x41a2e8){const _0x1fa64d=_0x42037a['online']?'✓':'✗';_0x333d09+='\x20\x20'+padRight(_0x1fa64d,_0x283326);}_0x431df2['push'](_0x333d09);}return _0x431df2['join']('\x0a');}function a98_0x499c(){const _0xbfcef5=['length','221470DhvhMx','\x20\x20\x20\x20JS:\x20\x20','337509jqfQco','join','22vwKkzU','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','local','\x20\x20\x20\x20•\x20','13848ceSXvh','(unchanged)','1141uwSvFN','max','687730YbhtJS','Platform','2eyjWdb','\x20\x20No\x20pages\x20to\x20sync.','2658LTICHQ','5837hHpcLz','\x20\x20\x20\x20CSS:\x20','label','72bTRpzX','116505SrmVkY','916293CVVrQn','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','Local','map','60PbYaLI','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','test','push','repeat'];a98_0x499c=function(){return _0xbfcef5;};return a98_0x499c();}export function renderSyncSummary(_0x3a3cd1,_0x119ab3){const _0x569c82=a98_0x5435;if(_0x3a3cd1[_0x569c82(0x121)]===0x0)return _0x119ab3?_0x569c82(0x119):_0x569c82(0x111);const _0x594b3e=['\x20\x20'+_0x3a3cd1[_0x569c82(0x121)]+_0x569c82(0x11d)];for(const _0x373e36 of _0x3a3cd1){_0x594b3e[_0x569c82(0x11f)](_0x569c82(0x129)+_0x373e36['label']+'\x20('+_0x373e36['path']+')');}return _0x594b3e[_0x569c82(0x125)]('\x0a');}export function renderUpdateSummary(_0x12905a,_0x3aee6b){const _0x5b0e8f=a98_0x5435;if(_0x12905a[_0x5b0e8f(0x121)]===0x0)return _0x5b0e8f(0x127);const _0x1d0fbf=['\x20\x20'+_0x12905a[_0x5b0e8f(0x121)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x5b0e8f(0x123)+(_0x3aee6b[0x0]??_0x5b0e8f(0x12b)),_0x5b0e8f(0x114)+(_0x3aee6b[0x1]??_0x5b0e8f(0x12b)),'','\x20\x20Affected\x20menus:\x20'+_0x12905a[_0x5b0e8f(0x125)](',\x20')];return _0x1d0fbf[_0x5b0e8f(0x125)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46e29e,_0x43a677){var _0x1d94bf=a99_0x395c,_0x1b7719=_0x46e29e();while(!![]){try{var _0x29df66=-parseInt(_0x1d94bf(0x163))/0x1*(parseInt(_0x1d94bf(0x167))/0x2)+-parseInt(_0x1d94bf(0x15f))/0x3+-parseInt(_0x1d94bf(0x164))/0x4+-parseInt(_0x1d94bf(0x162))/0x5+parseInt(_0x1d94bf(0x160))/0x6+parseInt(_0x1d94bf(0x161))/0x7*(parseInt(_0x1d94bf(0x165))/0x8)+parseInt(_0x1d94bf(0x166))/0x9;if(_0x29df66===_0x43a677)break;else _0x1b7719['push'](_0x1b7719['shift']());}catch(_0x5f1867){_0x1b7719['push'](_0x1b7719['shift']());}}}(a99_0x249d,0xbe467));function a99_0x395c(_0x5e7fcf,_0x24678c){_0x5e7fcf=_0x5e7fcf-0x15f;var _0x249dcf=a99_0x249d();var _0x395c8e=_0x249dcf[_0x5e7fcf];return _0x395c8e;}function a99_0x249d(){var _0x2fb05e=['7776654kZjJOI','566251JZRDid','874390NQDwaP','14iJzSFd','6035648RvSYTH','88HarCiG','19075131LwlhTj','46832fmzeFJ','4543230PCqEnG'];a99_0x249d=function(){return _0x2fb05e;};return a99_0x249d();}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';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(_0x3811f1,_0x2a5867){const _0x303eef=a100_0x1baf,_0x4ce10b=_0x3811f1();while(!![]){try{const _0xfdcac6=parseInt(_0x303eef(0x180))/0x1+-parseInt(_0x303eef(0x16c))/0x2*(-parseInt(_0x303eef(0x16d))/0x3)+-parseInt(_0x303eef(0x17f))/0x4*(-parseInt(_0x303eef(0x193))/0x5)+parseInt(_0x303eef(0x177))/0x6*(-parseInt(_0x303eef(0x18f))/0x7)+-parseInt(_0x303eef(0x18c))/0x8+-parseInt(_0x303eef(0x185))/0x9+parseInt(_0x303eef(0x189))/0xa;if(_0xfdcac6===_0x2a5867)break;else _0x4ce10b['push'](_0x4ce10b['shift']());}catch(_0x3329dc){_0x4ce10b['push'](_0x4ce10b['shift']());}}}(a100_0x48cd,0x60b9a));import a100_0x3d6510 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a100_0x421376 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x2ca4e5){const _0x15b278=a100_0x1baf;return _0x2ca4e5[_0x15b278(0x182)](_0x3f28d9=>{const _0x2ecd9e=_0x15b278;if(_0x3f28d9?.[_0x2ecd9e(0x16e)]==='ExitPromptError')throw CliErrors['cancelled']('Cancelled.');throw _0x3f28d9;});}function a100_0x1baf(_0x16d997,_0x12b464){_0x16d997=_0x16d997-0x168;const _0x48cdec=a100_0x48cd();let _0x1baf32=_0x48cdec[_0x16d997];return _0x1baf32;}export function startSpinner(_0x39e0d3){const _0x5a6327=a100_0x1baf;return a100_0x421376({'text':_0x39e0d3,'color':'cyan'})[_0x5a6327(0x169)]();}function a100_0x48cd(){const _0x55fd36=['red','start','CSS\x20URL\x20check\x20failed','stdin','136wuGWHl','4593PBEDmC','name','has','CSS\x20URL\x20checked','succeed','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','fail','gray','[already\x20on\x20platform]','No\x20menus\x20selected.','1223406KhKEFt','filter','JS\x20URL\x20check\x20failed','test','JS\x20URL\x20checked','isTTY','trim','Cancelled.','15628sDUvac','482154uaouDw','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','catch','\x20\x20Checking\x20JS\x20URL\x20reachability...','includes','311472LWRQXR','No\x20local\x20pages\x20found.','cancelled','green','3896820EpCBoo','label','error','2843224laiMFD','[new]','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','21xSrjuI','path','length','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','540SePytv'];a100_0x48cd=function(){return _0x55fd36;};return a100_0x48cd();}export function stopSpinner(_0x4f729b,_0x581ca3,_0x1d1168){const _0x36e977=a100_0x1baf;_0x1d1168?_0x4f729b[_0x36e977(0x171)](_0x581ca3):_0x4f729b[_0x36e977(0x173)](_0x581ca3);}export async function askConfirm(_0x4618f8){return onCancel(confirm({'message':_0x4618f8,'theme':{'prefix':''}}));}export async function askJsUrl(_0x55ca0a){const _0x27ccd1=a100_0x1baf;while(!![]){const _0x45fe47=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x55ca0a,'theme':{'prefix':''}}));if(_0x45fe47['trim']()==='')throw CliErrors[_0x27ccd1(0x187)](_0x27ccd1(0x17e));if(!/^https:\/\/.+\.js(\?.*)?$/['test'](_0x45fe47[_0x27ccd1(0x17d)]())){console['error'](a100_0x3d6510[_0x27ccd1(0x168)](_0x27ccd1(0x181)));continue;}const _0x58a24e=startSpinner(_0x27ccd1(0x183));try{const _0x2629f0=await isUrlReachable(_0x45fe47[_0x27ccd1(0x17d)]());stopSpinner(_0x58a24e,_0x27ccd1(0x17b),_0x2629f0);if(!_0x2629f0){console[_0x27ccd1(0x18b)](a100_0x3d6510[_0x27ccd1(0x168)]('\x20\x20✗\x20JS\x20URL\x20is\x20unreachable'));continue;}return _0x45fe47['trim']();}catch(_0x46fc6f){stopSpinner(_0x58a24e,_0x27ccd1(0x179),![]);throw _0x46fc6f;}}}export async function askCssUrl(_0x493018){const _0x34c8ca=a100_0x1baf;while(!![]){const _0x2a1728=await onCancel(input({'message':'\x20\x20CSS\x20URL:','default':_0x493018,'theme':{'prefix':''}}));if(_0x2a1728[_0x34c8ca(0x17d)]()==='')throw CliErrors[_0x34c8ca(0x187)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x34c8ca(0x17a)](_0x2a1728['trim']())){console[_0x34c8ca(0x18b)](a100_0x3d6510[_0x34c8ca(0x168)](_0x34c8ca(0x192)));continue;}const _0x1edf95=startSpinner('\x20\x20Checking\x20CSS\x20URL\x20reachability...');try{const _0x4b4fc3=await isUrlReachable(_0x2a1728[_0x34c8ca(0x17d)]());stopSpinner(_0x1edf95,_0x34c8ca(0x170),_0x4b4fc3);if(!_0x4b4fc3){console['error'](a100_0x3d6510[_0x34c8ca(0x168)](_0x34c8ca(0x18e)));continue;}return _0x2a1728[_0x34c8ca(0x17d)]();}catch(_0x768d53){stopSpinner(_0x1edf95,_0x34c8ca(0x16a),![]);throw _0x768d53;}}}export async function selectPages(_0x324525,_0x3f0495,_0x19a286){const _0x29ea92=a100_0x1baf,_0x4bec68=_0x324525['map'](_0x4e3452=>({'name':_0x4e3452[_0x29ea92(0x18a)]+'\x20\x20'+(_0x3f0495[_0x29ea92(0x16f)](_0x4e3452[_0x29ea92(0x190)])?a100_0x3d6510[_0x29ea92(0x174)](_0x29ea92(0x175)):a100_0x3d6510[_0x29ea92(0x188)](_0x29ea92(0x18d))),'value':_0x4e3452[_0x29ea92(0x18a)],'checked':_0x19a286?_0x19a286[_0x29ea92(0x184)](_0x4e3452['label']):!_0x3f0495[_0x29ea92(0x16f)](_0x4e3452['path'])}));if(_0x4bec68[_0x29ea92(0x191)]===0x0)throw new Error(_0x29ea92(0x186));const _0x5c77c7=await onCancel(checkbox({'message':_0x29ea92(0x172),'choices':_0x4bec68,'loop':![],'theme':{'prefix':''}}));if(_0x5c77c7[_0x29ea92(0x191)]===0x0)throw new Error(_0x29ea92(0x176));return _0x324525[_0x29ea92(0x178)](_0x23b95b=>_0x5c77c7[_0x29ea92(0x184)](_0x23b95b[_0x29ea92(0x18a)]));}export function isInteractive(){const _0xc55df9=a100_0x1baf;return process[_0xc55df9(0x16b)][_0xc55df9(0x17c)]===!![];}export function requireInteractive(){if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+'Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101_0x3997d8=a101_0x1244;function a101_0x1244(_0x474260,_0xf03d0b){_0x474260=_0x474260-0x102;const _0x380bd5=a101_0x380b();let _0x124404=_0x380bd5[_0x474260];return _0x124404;}(function(_0x4c79d0,_0x523a09){const _0x4811dc=a101_0x1244,_0x2e3ee9=_0x4c79d0();while(!![]){try{const _0x5338aa=parseInt(_0x4811dc(0x10c))/0x1+-parseInt(_0x4811dc(0x11a))/0x2*(-parseInt(_0x4811dc(0x10e))/0x3)+-parseInt(_0x4811dc(0x115))/0x4+parseInt(_0x4811dc(0x110))/0x5+parseInt(_0x4811dc(0x11b))/0x6*(-parseInt(_0x4811dc(0x119))/0x7)+parseInt(_0x4811dc(0x109))/0x8*(-parseInt(_0x4811dc(0x107))/0x9)+parseInt(_0x4811dc(0x112))/0xa;if(_0x5338aa===_0x523a09)break;else _0x2e3ee9['push'](_0x2e3ee9['shift']());}catch(_0x15d8e8){_0x2e3ee9['push'](_0x2e3ee9['shift']());}}}(a101_0x380b,0xd7b4c));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a101_0x3997d8(0x116)](),a101_0x3997d8(0x104));function a101_0x380b(){const _0x5a920a=['4659KaAlss','split','8157440uuYtty','.tsx','3446810GCytKE','index.tsx','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','6696112ptYTBf','cwd','concat','join','28vkTUXd','2038iyBwsj','1835688wrAZeU','isDirectory','replace','replaceAll','src/pages','push','endsWith','261iXjuVQ','filter','147768mtvqIJ','match','path','758335NnyETM','slice'];a101_0x380b=function(){return _0x5a920a;};return a101_0x380b();}export function extractTitleFromComment(_0x5a4c2e){const _0x3bbfab=a101_0x3997d8;try{const _0x37ccdb=readFileSync(_0x5a4c2e,'utf-8'),_0x549168=_0x37ccdb[_0x3bbfab(0x10a)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x549168&&_0x549168[0x1]){const _0x39369c=_0x549168[0x1],_0x707d2a=_0x39369c[_0x3bbfab(0x10a)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x707d2a&&_0x707d2a[0x1])return _0x707d2a[0x1]['trim']();}let _0x331522=null;const _0x594f8c=_0x37ccdb[_0x3bbfab(0x10a)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x594f8c&&_0x594f8c[0x1]&&(_0x331522=_0x594f8c[0x1]);if(!_0x331522){const _0x278db4=_0x37ccdb[_0x3bbfab(0x10a)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x278db4&&_0x278db4[0x1]&&(_0x331522=_0x278db4[0x1]);}if(_0x331522){const _0x7a687=new RegExp('\x5cb'+_0x331522+_0x3bbfab(0x114)),_0x28c14a=_0x37ccdb[_0x3bbfab(0x10a)](_0x7a687);if(_0x28c14a&&_0x28c14a[0x1])return _0x28c14a[0x1];return _0x331522;}return null;}catch(_0x87335d){return null;}}export function getLocalPages(_0xd0e38c=pagesDir,_0x1f09b8=pagesDir){const _0x2f2e00=a101_0x3997d8;let _0x909735=[];const _0x391b15=readdirSync(_0xd0e38c);return _0x391b15['forEach'](_0x258661=>{const _0x422f91=a101_0x1244,_0x1ea265=join(_0xd0e38c,_0x258661),_0x1dac8e=statSync(_0x1ea265);if(_0x1dac8e&&_0x1dac8e[_0x422f91(0x11c)]())_0x909735=_0x909735[_0x422f91(0x117)](getLocalPages(_0x1ea265,_0x1f09b8));else{if(_0x258661[_0x422f91(0x106)](_0x422f91(0x111))){let _0x338bdb=relative(_0x1f09b8,_0x1ea265);_0x338bdb[_0x422f91(0x106)](_0x422f91(0x113))?_0x338bdb=_0x338bdb[_0x422f91(0x102)](/index\.tsx$/,''):_0x338bdb=_0x338bdb[_0x422f91(0x102)](/\.tsx$/,'');_0x338bdb[_0x422f91(0x106)](sep)&&(_0x338bdb=_0x338bdb[_0x422f91(0x10d)](0x0,-0x1));const _0x422d6b=_0x338bdb[_0x422f91(0x10f)](sep)[_0x422f91(0x118)]('/'),_0x180ed1=extractTitleFromComment(_0x1ea265),_0x13eca1=_0x180ed1||_0x422d6b;_0x909735[_0x422f91(0x105)]({'path':_0x422d6b[_0x422f91(0x103)]('$',':'),'label':_0x13eca1});}}}),_0x909735[_0x2f2e00(0x108)](_0x47fd51=>_0x47fd51[_0x2f2e00(0x10b)]!=='');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2532f0,_0x5dc5c1){const _0x49383e=a102_0x36f5,_0x5cec55=_0x2532f0();while(!![]){try{const _0x59f760=parseInt(_0x49383e(0x9c))/0x1+parseInt(_0x49383e(0x9b))/0x2+-parseInt(_0x49383e(0xab))/0x3+parseInt(_0x49383e(0x98))/0x4+parseInt(_0x49383e(0xa5))/0x5*(parseInt(_0x49383e(0x92))/0x6)+-parseInt(_0x49383e(0xa2))/0x7+parseInt(_0x49383e(0xa0))/0x8;if(_0x59f760===_0x5dc5c1)break;else _0x5cec55['push'](_0x5cec55['shift']());}catch(_0x2bf337){_0x5cec55['push'](_0x5cec55['shift']());}}}(a102_0x5732,0xc2540));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(_0x5b5e4a){const _0x544198=a102_0x36f5,_0x20b405=[];return!isValidJsHttpsUrl(_0x5b5e4a)&&_0x20b405[_0x544198(0x93)](_0x544198(0x97)),{'ok':_0x20b405[_0x544198(0xa1)]===0x0,'errors':_0x20b405};}function a102_0x36f5(_0x1e2a1d,_0x447c10){_0x1e2a1d=_0x1e2a1d-0x92;const _0x57326e=a102_0x5732();let _0x36f521=_0x57326e[_0x1e2a1d];return _0x36f521;}export function validateCssUrl(_0x584e7f){const _0x287ac3=a102_0x36f5,_0x37df6c=[];return!isValidCssHttpsUrl(_0x584e7f)&&_0x37df6c[_0x287ac3(0x93)]('CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'),{'ok':_0x37df6c[_0x287ac3(0xa1)]===0x0,'errors':_0x37df6c};}export async function validateJsUrlReachable(_0x1ea785){const _0xde788d=a102_0x36f5,_0xd06544=validateJsUrl(_0x1ea785);if(!_0xd06544['ok'])return _0xd06544;const _0x3dc5d8=await isUrlReachable(_0x1ea785);if(!_0x3dc5d8)_0xd06544[_0xde788d(0x99)][_0xde788d(0x93)]('JS\x20URL\x20is\x20unreachable');return{'ok':_0xd06544[_0xde788d(0x99)]['length']===0x0,'errors':_0xd06544['errors']};}export async function validateCssUrlReachable(_0x38a4cf){const _0x78a447=a102_0x36f5,_0x19fc7b=validateCssUrl(_0x38a4cf);if(!_0x19fc7b['ok'])return _0x19fc7b;const _0x4f2316=await isUrlReachable(_0x38a4cf);if(!_0x4f2316)_0x19fc7b[_0x78a447(0x99)][_0x78a447(0x93)](_0x78a447(0x96));return{'ok':_0x19fc7b['errors'][_0x78a447(0xa1)]===0x0,'errors':_0x19fc7b[_0x78a447(0x99)]};}export function buildCompareRows(_0xcf152a,_0xd45080){const _0x5a71d1=a102_0x36f5;return _0xcf152a[_0x5a71d1(0xa9)](_0x21b143=>({'label':_0x21b143['label'],'path':_0x21b143['path'],'local':!![],'online':_0xd45080['has'](_0x21b143[_0x5a71d1(0xa8)])}));}export function filterNewPages(_0x38e526,_0x20b6f5,_0x3c67a4){const _0x3d5a37=a102_0x36f5;if(_0x3c67a4&&_0x3c67a4['length']>0x0){const _0x35569a=new Set(_0x3c67a4[_0x3d5a37(0xa9)](_0x430701=>_0x430701[_0x3d5a37(0x9a)]())),_0x185cd1=_0x38e526[_0x3d5a37(0x94)](_0x273367=>_0x35569a[_0x3d5a37(0x9f)](_0x273367[_0x3d5a37(0xa4)]));if(_0x185cd1[_0x3d5a37(0xa1)]===0x0)throw new Error(_0x3d5a37(0x9e)+[..._0x35569a][_0x3d5a37(0xa7)](',\x20'));return _0x185cd1;}return _0x38e526['filter'](_0x427eec=>!_0x20b6f5[_0x3d5a37(0x9f)](_0x427eec[_0x3d5a37(0xa8)]));}export function filterPagesByLabels(_0x4b0809,_0x2135f6){const _0x15c204=a102_0x36f5,_0x40ebb8=[],_0x3e6c66=[];for(const _0x112453 of _0x2135f6){const _0x8b2ea=_0x112453['trim'](),_0x28a20b=_0x4b0809[_0x15c204(0xa6)](_0x4a3c71=>_0x4a3c71[_0x15c204(0xa4)]===_0x8b2ea);if(_0x28a20b)_0x40ebb8[_0x15c204(0x93)](_0x28a20b);else _0x3e6c66[_0x15c204(0x93)](_0x112453);}return{'matched':_0x40ebb8,'unmatched':_0x3e6c66};}export async function doCreateMenus(_0x4cd634,_0x251b5a,_0x5dd27b,_0x2964a0){const _0x487bd7=a102_0x36f5,_0x1676b7=await createMenus(_0x4cd634,_0x251b5a,_0x5dd27b,_0x2964a0);return{'created':_0x1676b7[_0x487bd7(0xa1)],'failed':0x0,'labels':_0x5dd27b['map'](_0x2edb69=>_0x2edb69[_0x487bd7(0xa4)]),'menus':_0x1676b7};}export function filterMenusWithResources(_0x283b05){const _0x3f47e1=a102_0x36f5;return _0x283b05['filter'](_0x4a0ff0=>_0x4a0ff0['resources'][_0x3f47e1(0xa1)]>0x0);}export async function doUpdateCdnUrls(_0x572e3a,_0x111a92,_0x220b78,_0xdf71b0){const _0x111b61=a102_0x36f5,_0x2631c6=_0x220b78[_0x111b61(0x94)](_0x49c6c8=>_0x49c6c8[_0x111b61(0xa3)][_0x111b61(0xa1)]>0x0),_0x579bfd=await Promise[_0x111b61(0xaa)](_0x2631c6[_0x111b61(0xa9)](_0x49d367=>updateMenuCdnUrl(_0x572e3a,_0x111a92,{'id':_0x49d367['id'],'label':_0x49d367[_0x111b61(0xa4)],'path':_0x49d367[_0x111b61(0xa8)],'resources':_0xdf71b0,'extend':_0x49d367[_0x111b61(0x9d)]??null}))),_0x23afd2=_0x579bfd[_0x111b61(0x94)](_0x3b1265=>_0x3b1265['status']==='fulfilled')[_0x111b61(0xa9)](_0x5af9f4=>_0x5af9f4[_0x111b61(0x95)]),_0x100e61=_0x579bfd[_0x111b61(0x94)](_0x50b6f6=>_0x50b6f6['status']==='rejected')[_0x111b61(0xa1)];return{'updated':_0x23afd2[_0x111b61(0xa1)],'failed':_0x100e61,'menus':_0x23afd2};}export async function fetchMenuData(_0x1a7ee9,_0x56a935){const _0x46f2be=a102_0x36f5,_0x13ade8=getLocalPages(),_0x27a762=await getOnlineMenuList(_0x1a7ee9,_0x56a935),_0x1283d8=new Set(_0x27a762[_0x46f2be(0xa9)](_0x15b9da=>_0x15b9da[_0x46f2be(0xa8)]));return{'localPages':_0x13ade8,'onlineMenuList':_0x27a762,'onlinePaths':_0x1283d8};}export async function fetchOnlineMenuList(_0x1ced0c,_0x5886d1){return getOnlineMenuList(_0x1ced0c,_0x5886d1);}function a102_0x5732(){const _0xaf2395=['3760698adZlqK','48xFRvFE','push','filter','value','CSS\x20URL\x20is\x20unreachable','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','763880cmUsbB','errors','trim','172756EbzQcK','1327421exznUj','extend','No\x20local\x20pages\x20matched\x20labels:\x20','has','3122376SAkmhG','length','9668876ZHGoqo','resources','label','897335eUmgFi','find','join','path','map','allSettled'];a102_0x5732=function(){return _0xaf2395;};return a102_0x5732();}
|