@lovrabet/rabetbase-cli 2.1.10-beta.2 → 2.1.10-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/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 -0
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/link-create.js +1 -1
- package/lib/commands/dataset/link-delete.js +1 -1
- package/lib/commands/dataset/link-shared.js +1 -1
- package/lib/commands/dataset/link-update.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.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/report.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.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/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/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
|
-
function
|
|
1
|
+
function a66_0x3085(){const _0x24a34d=['98620CfehrA','589627orIQAq','delete','6695864QVlcWx','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','6RLsSDH','Deleted\x20db\x20link\x20','8yVyUXK','384970YiHWAe','739803PwQUQi','1837644UJcfwb','212IBrSnQ','121SHzVCl','6955158qWAMBR','36UwjLky'];a66_0x3085=function(){return _0x24a34d;};return a66_0x3085();}const a66_0x7d147b=a66_0x49d9;(function(_0xa25ee1,_0x306b25){const _0x192643=a66_0x49d9,_0x215c7d=_0xa25ee1();while(!![]){try{const _0x36f20a=parseInt(_0x192643(0xdd))/0x1+parseInt(_0x192643(0xe3))/0x2*(-parseInt(_0x192643(0xe5))/0x3)+-parseInt(_0x192643(0xe7))/0x4*(parseInt(_0x192643(0xdc))/0x5)+-parseInt(_0x192643(0xe1))/0x6*(-parseInt(_0x192643(0xda))/0x7)+-parseInt(_0x192643(0xdf))/0x8+-parseInt(_0x192643(0xdb))/0x9*(-parseInt(_0x192643(0xe4))/0xa)+-parseInt(_0x192643(0xd9))/0xb*(-parseInt(_0x192643(0xe6))/0xc);if(_0x36f20a===_0x306b25)break;else _0x215c7d['push'](_0x215c7d['shift']());}catch(_0x29ca3f){_0x215c7d['push'](_0x215c7d['shift']());}}}(a66_0x3085,0x86ffd));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a66_0x49d9(_0x3133e4,_0x5e48bb){_0x3133e4=_0x3133e4-0xd9;const _0x308557=a66_0x3085();let _0x49d99f=_0x308557[_0x3133e4];return _0x49d99f;}export const dbDelete={'service':'db','command':a66_0x7d147b(0xde),'description':a66_0x7d147b(0xe0),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x19170b){const _0x473f55=a66_0x7d147b,_0x2322a4=_0x19170b['num']('id');return await deleteDbLink(_0x2322a4),{'ok':!![],'data':{'id':_0x2322a4,'deleted':!![]},'message':_0x473f55(0xe2)+_0x2322a4};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x21d4a9=a67_0x9505;(function(_0x24d749,_0x2bb270){const _0x3103a6=a67_0x9505,_0x27522a=_0x24d749();while(!![]){try{const _0x22f51e=-parseInt(_0x3103a6(0xf4))/0x1*(-parseInt(_0x3103a6(0xed))/0x2)+-parseInt(_0x3103a6(0xea))/0x3*(parseInt(_0x3103a6(0xe6))/0x4)+-parseInt(_0x3103a6(0xee))/0x5*(-parseInt(_0x3103a6(0xeb))/0x6)+parseInt(_0x3103a6(0xf5))/0x7*(parseInt(_0x3103a6(0xf0))/0x8)+-parseInt(_0x3103a6(0xef))/0x9*(-parseInt(_0x3103a6(0xe7))/0xa)+parseInt(_0x3103a6(0xe8))/0xb*(-parseInt(_0x3103a6(0xf3))/0xc)+-parseInt(_0x3103a6(0xe9))/0xd;if(_0x22f51e===_0x2bb270)break;else _0x27522a['push'](_0x27522a['shift']());}catch(_0x3b3532){_0x27522a['push'](_0x27522a['shift']());}}}(a67_0x266a,0x2729e));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';function a67_0x9505(_0x3aa7cf,_0xb36adb){_0x3aa7cf=_0x3aa7cf-0xe6;const _0x266a52=a67_0x266a();let _0x950518=_0x266a52[_0x3aa7cf];return _0x950518;}function a67_0x266a(){const _0xc0e5c1=['650837GxVdMt','846417FPRnPl','4833rMepKj','30AhQAbk','db\x20link\x20','32772hjfhRi','6415hcmZfM','117yKPhNT','8uVJxEm','dbName','read','12IcaxCS','9VDaBNk','1874068AipUCB','492inCWPU','47100oZaMWu'];a67_0x266a=function(){return _0xc0e5c1;};return a67_0x266a();}export const dbDetail={'service':'db','command':'detail','description':'Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','risk':a67_0x21d4a9(0xf2),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1e960b){const _0x5faa0d=a67_0x21d4a9,_0x52ac86=_0x1e960b['num']('id'),_0xf806c=await getDbLinkInfo(_0x52ac86);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0xf806c),'message':_0x5faa0d(0xec)+_0x52ac86+':\x20'+_0xf806c[_0x5faa0d(0xf1)]};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x2d68c0=a68_0x4f70;(function(_0x4b2a72,_0x3a56e7){const _0x1fdc6c=a68_0x4f70,_0x4b5fce=_0x4b2a72();while(!![]){try{const _0x37ca41=-parseInt(_0x1fdc6c(0x1ca))/0x1+-parseInt(_0x1fdc6c(0x1c6))/0x2*(-parseInt(_0x1fdc6c(0x1ce))/0x3)+parseInt(_0x1fdc6c(0x1d5))/0x4+-parseInt(_0x1fdc6c(0x1d2))/0x5+-parseInt(_0x1fdc6c(0x1d0))/0x6+-parseInt(_0x1fdc6c(0x1c4))/0x7+parseInt(_0x1fdc6c(0x1cc))/0x8;if(_0x37ca41===_0x3a56e7)break;else _0x4b5fce['push'](_0x4b5fce['shift']());}catch(_0x564169){_0x4b5fce['push'](_0x4b5fce['shift']());}}}(a68_0x3263,0xd6071));import{getDbTableDiff}from'../../core/api-client.js';function a68_0x3263(){const _0x3b6109=['Page\x20size','1672292zqVarA','appCode','18624304VjKyTN','pagesize','3779601syFMjn','string','5341530BNaOJK','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','1409685SoXTYX','num','Page\x20index\x20(1-based)','1598452IgaXjF','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','1864639nTIKpb','page','2ELOUGF','number','table'];a68_0x3263=function(){return _0x3b6109;};return a68_0x3263();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a68_0x4f70(_0x533126,_0xb2cdd5){_0x533126=_0x533126-0x1c4;const _0x3263d5=a68_0x3263();let _0x4f7017=_0x3263d5[_0x533126];return _0x4f7017;}export const dbDiff={'service':'db','command':'diff','description':a68_0x2d68c0(0x1d1),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a68_0x2d68c0(0x1c8),'type':a68_0x2d68c0(0x1cf),'description':a68_0x2d68c0(0x1d6)},{'name':a68_0x2d68c0(0x1c5),'type':a68_0x2d68c0(0x1c7),'description':a68_0x2d68c0(0x1d4),'default':0x1},{'name':'pagesize','type':a68_0x2d68c0(0x1c7),'description':a68_0x2d68c0(0x1c9),'default':0x14}],async 'execute'(_0x3015a5){const _0x55d852=a68_0x2d68c0,_0x39e51e=_0x3015a5[_0x55d852(0x1d3)]('id'),_0x1c6046=_0x3015a5[_0x55d852(0x1d3)](_0x55d852(0x1c5),0x1)||0x1,_0x1b7433=_0x3015a5[_0x55d852(0x1d3)](_0x55d852(0x1cd),0x14)||0x14,_0x2c70ae=_0x3015a5['str'](_0x55d852(0x1c8))||undefined,{totalCount:_0x562ddf,tableList:_0x2f6a2a}=await getDbTableDiff(_0x3015a5[_0x55d852(0x1cb)],_0x39e51e,{'pageIndex':_0x1c6046,'pageSize':_0x1b7433,'tableName':_0x2c70ae});return{'ok':!![],'data':{'dbLinkId':_0x39e51e,'page':_0x1c6046,'pageSize':_0x1b7433,'totalCount':_0x562ddf,'tableList':_0x2f6a2a},'message':_0x2f6a2a['length']+'\x20row(s),\x20total\x20'+_0x562ddf+'\x20(db\x20link\x20'+_0x39e51e+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x517468,_0x4ebaed){const _0x202777=a69_0x1c19,_0x36da16=_0x517468();while(!![]){try{const _0x4eab63=-parseInt(_0x202777(0xd1))/0x1*(-parseInt(_0x202777(0xd2))/0x2)+-parseInt(_0x202777(0xd0))/0x3+parseInt(_0x202777(0xd7))/0x4*(parseInt(_0x202777(0xd5))/0x5)+-parseInt(_0x202777(0xd8))/0x6+parseInt(_0x202777(0xd4))/0x7+-parseInt(_0x202777(0xd6))/0x8+-parseInt(_0x202777(0xd3))/0x9*(-parseInt(_0x202777(0xcf))/0xa);if(_0x4eab63===_0x4ebaed)break;else _0x36da16['push'](_0x36da16['shift']());}catch(_0x313828){_0x36da16['push'](_0x36da16['shift']());}}}(a69_0x5cba,0x465a2));import{dbList}from'../../commands/db/list.js';import{dbDetail}from'../../commands/db/detail.js';import{dbCreate}from'../../commands/db/create.js';import{dbUpdate}from'../../commands/db/update.js';function a69_0x1c19(_0x5ba1f8,_0x35eb00){_0x5ba1f8=_0x5ba1f8-0xcf;const _0x5cba6f=a69_0x5cba();let _0x1c193f=_0x5cba6f[_0x5ba1f8];return _0x1c193f;}import{dbDelete}from'../../commands/db/delete.js';function a69_0x5cba(){const _0x3bac1b=['1425906svbquc','2239RwFMTf','114qLMmWW','9KoJlDc','674513uPnEEt','39470lCYPCd','1211880XYWOVS','132fIuLXy','1399380FWlOAn','6636950mZqyhx'];a69_0x5cba=function(){return _0x3bac1b;};return a69_0x5cba();}import{dbTest}from'../../commands/db/test.js';import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
|
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a70_0x2b1af7=a70_0x4ee8;(function(_0x35aefd,_0x256201){const _0x363066=a70_0x4ee8,_0x3321d8=_0x35aefd();while(!![]){try{const _0x396a4c=-parseInt(_0x363066(0x174))/0x1+parseInt(_0x363066(0x176))/0x2*(parseInt(_0x363066(0x171))/0x3)+-parseInt(_0x363066(0x16d))/0x4*(parseInt(_0x363066(0x167))/0x5)+parseInt(_0x363066(0x16e))/0x6+-parseInt(_0x363066(0x17c))/0x7*(parseInt(_0x363066(0x165))/0x8)+parseInt(_0x363066(0x17a))/0x9+parseInt(_0x363066(0x172))/0xa*(-parseInt(_0x363066(0x166))/0xb);if(_0x396a4c===_0x256201)break;else _0x3321d8['push'](_0x3321d8['shift']());}catch(_0xc7331e){_0x3321d8['push'](_0x3321d8['shift']());}}}(a70_0x16fe,0x27d67));import{listDbLinks}from'../../core/api-client.js';function a70_0x16fe(){const _0x148963=['appCode','569898pYvHPy','\x20database\x20connection(s)','14WnXeli','392680QsTBbg','583jaXGXo','5AXzRGi','num','Page\x20size','Found\x20','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','read','344968uAKYmI','1657140JjZFpz','number','page','57327dNQAqC','8660TScyWK','List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','194444nvXCUu','length','26RzcipO','Page\x20index\x20(1-based)','pagesize'];a70_0x16fe=function(){return _0x148963;};return a70_0x16fe();}function a70_0x4ee8(_0x3dbaa5,_0x127a2b){_0x3dbaa5=_0x3dbaa5-0x165;const _0x16fe1b=a70_0x16fe();let _0x4ee8f4=_0x16fe1b[_0x3dbaa5];return _0x4ee8f4;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':'list','description':a70_0x2b1af7(0x173),'risk':a70_0x2b1af7(0x16c),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a70_0x2b1af7(0x170),'type':a70_0x2b1af7(0x16f),'description':a70_0x2b1af7(0x177),'default':0x1},{'name':a70_0x2b1af7(0x178),'type':'number','description':a70_0x2b1af7(0x169),'default':0x64}],async 'execute'(_0xeb26d3){const _0x10ef4a=a70_0x2b1af7,_0x2216d3=_0xeb26d3[_0x10ef4a(0x168)](_0x10ef4a(0x170),0x1)||0x1,_0x1d44f3=_0xeb26d3['num'](_0x10ef4a(0x178),0x64)||0x64,{items:_0x223095,paging:_0x5c65d9}=await listDbLinks(_0xeb26d3[_0x10ef4a(0x179)],{'currentPage':_0x2216d3,'pageSize':_0x1d44f3}),_0x193f09=sanitizeDbLinkList(_0x223095),_0x59cd69=_0x5c65d9?_0x5c65d9:{'currentPage':_0x2216d3,'pageSize':_0x1d44f3,'rowsOnPage':_0x193f09[_0x10ef4a(0x175)],'totalCount':null,'note':_0x10ef4a(0x16b)};return{'ok':!![],'data':{'connections':_0x193f09,'paging':_0x59cd69},'message':_0x10ef4a(0x16a)+_0x193f09['length']+_0x10ef4a(0x17b)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x381e49,_0x16c072){const _0x358aeb=a71_0x31d0,_0x476ca0=_0x381e49();while(!![]){try{const _0x2fd034=-parseInt(_0x358aeb(0xba))/0x1+-parseInt(_0x358aeb(0xc1))/0x2*(-parseInt(_0x358aeb(0xc0))/0x3)+-parseInt(_0x358aeb(0xb4))/0x4+-parseInt(_0x358aeb(0xcf))/0x5*(-parseInt(_0x358aeb(0xca))/0x6)+-parseInt(_0x358aeb(0xc3))/0x7*(parseInt(_0x358aeb(0xb7))/0x8)+-parseInt(_0x358aeb(0xb8))/0x9*(parseInt(_0x358aeb(0xc8))/0xa)+parseInt(_0x358aeb(0xd2))/0xb;if(_0x2fd034===_0x16c072)break;else _0x476ca0['push'](_0x476ca0['shift']());}catch(_0x29ff72){_0x476ca0['push'](_0x476ca0['shift']());}}}(a71_0x18b4,0x39017));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x939f9c){const _0x42783c=a71_0x31d0,_0x4f6ec4=_0x939f9c[_0x42783c(0xb9)]();if(_0x4f6ec4===_0x42783c(0xce)||_0x4f6ec4===_0x42783c(0xbb)||_0x4f6ec4===_0x42783c(0xcc))return!![];if(_0x4f6ec4[_0x42783c(0xb3)](_0x42783c(0xbf))||_0x4f6ec4[_0x42783c(0xb3)](_0x42783c(0xbe))||_0x4f6ec4['includes'](_0x42783c(0xd1)))return!![];if(_0x4f6ec4[_0x42783c(0xb3)](_0x42783c(0xc4))||_0x4f6ec4[_0x42783c(0xb3)](_0x42783c(0xc6)))return!![];if(_0x4f6ec4===_0x42783c(0xb5)||_0x4f6ec4===_0x42783c(0xcb)||_0x4f6ec4===_0x42783c(0xb6))return!![];return![];}function a71_0x31d0(_0x47faa8,_0x25979f){_0x47faa8=_0x47faa8-0xb3;const _0x18b4a7=a71_0x18b4();let _0x31d0a4=_0x18b4a7[_0x47faa8];return _0x31d0a4;}export function sanitizeDbLinkForOutput(_0x374735){const _0x18e106=a71_0x31d0,_0x581b90={..._0x374735};for(const _0x5eba5b of Object['keys'](_0x581b90)){if(!shouldRedactKey(_0x5eba5b))continue;const _0x5f16b4=_0x581b90[_0x5eba5b];_0x5f16b4!=null&&String(_0x5f16b4)[_0x18e106(0xbd)]>0x0&&(_0x581b90[_0x5eba5b]=_0x18e106(0xc5));}return _0x581b90;}export function sanitizeDbLinkList(_0xacc44c){const _0x16c301=a71_0x31d0;return _0xacc44c[_0x16c301(0xd3)](_0x5b721e=>sanitizeDbLinkForOutput(_0x5b721e));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x1deca9){const _0x5d73c8=a71_0x31d0,_0x58160e=_0x1deca9[_0x5d73c8(0xcd)]();if(!_0x58160e)return![];return DB_URL_PATTERN[_0x5d73c8(0xc9)](_0x58160e);}function a71_0x18b4(){const _0x2a00fd=['5EwdpWA','/data/database','credential','13072708tYBoKc','map','includes','1706196QkNQNw','authorization','jdbcurl','2553344LDHGPz','9NjnDsh','toLowerCase','254509fAklan','passwd','https://daily.lovrabet.com/web-app/app/','length','token','secret','2466lzvYPS','32YJMYAe','number','7VYGHfN','privatekey','[redacted]','accesskey','isFinite','1971490CQNsGT','test','1375740KrfddA','connectionstring','dbpassword','trim','password'];a71_0x18b4=function(){return _0x2a00fd;};return a71_0x18b4();}export function buildDbPageLinks(_0x3cb3e0,_0x5690c5){const _0x4f9250=a71_0x31d0,_0x5080da=_0x3cb3e0?.[_0x4f9250(0xcd)]();if(!_0x5080da)return undefined;const _0x5be413=typeof _0x5690c5===_0x4f9250(0xc2)?String(_0x5690c5):String(_0x5690c5??'')['trim']();if(!_0x5be413)return undefined;const _0x3e7f8d=Number(_0x5be413);if(!Number[_0x4f9250(0xc7)](_0x3e7f8d)||_0x3e7f8d<=0x0)return undefined;const _0x802094=isDaily(normalizeEnv(getEnv()))?_0x4f9250(0xbc)+encodeURIComponent(_0x5080da):'https://app.lovrabet.com/app/'+encodeURIComponent(_0x5080da),_0x3130bf=encodeURIComponent(String(_0x3e7f8d));return{'databasePage':_0x802094+_0x4f9250(0xd0),'erPage':_0x802094+'/data/er?dbId='+_0x3130bf};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x2dc0ca=a72_0x3f68;(function(_0x9100b4,_0x4ba87d){const _0x19009e=a72_0x3f68,_0x3b3097=_0x9100b4();while(!![]){try{const _0x2b8fea=-parseInt(_0x19009e(0xb9))/0x1*(-parseInt(_0x19009e(0xbc))/0x2)+parseInt(_0x19009e(0xb2))/0x3*(-parseInt(_0x19009e(0xb8))/0x4)+parseInt(_0x19009e(0xba))/0x5+-parseInt(_0x19009e(0xb3))/0x6*(-parseInt(_0x19009e(0xad))/0x7)+parseInt(_0x19009e(0xb1))/0x8+-parseInt(_0x19009e(0xb6))/0x9*(-parseInt(_0x19009e(0xb0))/0xa)+-parseInt(_0x19009e(0xbb))/0xb;if(_0x2b8fea===_0x4ba87d)break;else _0x3b3097['push'](_0x3b3097['shift']());}catch(_0x735abb){_0x3b3097['push'](_0x3b3097['shift']());}}}(a72_0x5537,0x831a5));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':'tables','description':a72_0x2dc0ca(0xb4),'risk':a72_0x2dc0ca(0xaf),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x45e533){const _0x2eaee6=a72_0x2dc0ca,_0x3c5d8f=_0x45e533[_0x2eaee6(0xb7)]('id'),_0x52d8f5=await getDbAllTableList(_0x45e533[_0x2eaee6(0xb5)],_0x3c5d8f);return{'ok':!![],'data':{'dbLinkId':_0x3c5d8f,'total':_0x52d8f5['length'],'tables':_0x52d8f5},'message':_0x52d8f5['length']+_0x2eaee6(0xae)+_0x3c5d8f};}};function a72_0x3f68(_0x42b09d,_0xb07228){_0x42b09d=_0x42b09d-0xad;const _0x55377f=a72_0x5537();let _0x3f68ee=_0x55377f[_0x42b09d];return _0x3f68ee;}function a72_0x5537(){const _0x44f114=['796vFqefZ','1TvMKnQ','1180045nlJLvm','5256966LaIRAM','1409306jtcHYO','88214ZwuQdY','\x20table(s)\x20on\x20db\x20link\x20','read','190wnjPRI','2010320bzTPbV','12297UsMwAh','6pldNAf','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','appCode','296550ExvPhq','num'];a72_0x5537=function(){return _0x44f114;};return a72_0x5537();}
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0xe2f985=a73_0x4fce;function a73_0x4fce(_0x4ec696,_0x372851){_0x4ec696=_0x4ec696-0x131;const _0x38a135=a73_0x38a1();let _0x4fce10=_0x38a135[_0x4ec696];return _0x4fce10;}(function(_0x4037f9,_0x3053c4){const _0x658044=a73_0x4fce,_0x436350=_0x4037f9();while(!![]){try{const _0x337f54=parseInt(_0x658044(0x135))/0x1*(-parseInt(_0x658044(0x13d))/0x2)+parseInt(_0x658044(0x141))/0x3+parseInt(_0x658044(0x143))/0x4+parseInt(_0x658044(0x146))/0x5+-parseInt(_0x658044(0x134))/0x6+-parseInt(_0x658044(0x13f))/0x7*(-parseInt(_0x658044(0x132))/0x8)+-parseInt(_0x658044(0x140))/0x9;if(_0x337f54===_0x3053c4)break;else _0x436350['push'](_0x436350['shift']());}catch(_0x1eac41){_0x436350['push'](_0x436350['shift']());}}}(a73_0x38a1,0xdc160));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a73_0x38a1(){const _0x4c1948=['3262150mExzYu','object','4162952DGyEzC','Connection\x20check\x20finished\x20for\x20db\x20link\x20','10075680xlYUEm','10111DxyDWP','msg','read','code','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','\x20(see\x20data.result)','num','keys','6kaSuIm','message','7fMTsNd','6495570JdUhFC','4202853IedsRW','success','3036260zBsIeh','slice','data'];a73_0x38a1=function(){return _0x4c1948;};return a73_0x38a1();}function summarizeTestConnectResult(_0x3134f3){const _0x1b900f=a73_0x4fce;if(_0x3134f3===!![]||_0x3134f3===![])return{'success':_0x3134f3};if(_0x3134f3===null||_0x3134f3===undefined)return{'type':typeof _0x3134f3};if(typeof _0x3134f3!==_0x1b900f(0x131))return{'type':typeof _0x3134f3};const _0x446650=_0x3134f3,_0x24ff83=[_0x1b900f(0x142),_0x1b900f(0x13e),_0x1b900f(0x138),'error',_0x1b900f(0x136),_0x1b900f(0x145)],_0x43c73c={};for(const _0x30fa90 of _0x24ff83){if(_0x30fa90 in _0x446650)_0x43c73c[_0x30fa90]=_0x446650[_0x30fa90];}return Object[_0x1b900f(0x13c)](_0x43c73c)['length']===0x0&&(_0x43c73c['keys']=Object['keys'](_0x446650)[_0x1b900f(0x144)](0x0,0x14)),_0x43c73c;}export const dbTest={'service':'db','command':'test','description':a73_0xe2f985(0x139),'risk':a73_0xe2f985(0x137),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4a82d5){const _0xd28a66=a73_0xe2f985,_0xfbcd29=_0x4a82d5[_0xd28a66(0x13b)]('id'),_0x4c4dc2=await testDbLinkConnect(_0xfbcd29),_0x465957=_0x4c4dc2===!![]||typeof _0x4c4dc2===_0xd28a66(0x131)&&_0x4c4dc2!==null&&_0x4c4dc2[_0xd28a66(0x142)]===!![],_0x29b64f=summarizeTestConnectResult(_0x4c4dc2);return{'ok':!![],'data':{'id':_0xfbcd29,'connected':Boolean(_0x465957),'result':_0x29b64f},'message':_0x465957?'Connection\x20OK\x20for\x20db\x20link\x20'+_0xfbcd29:_0xd28a66(0x133)+_0xfbcd29+_0xd28a66(0x13a)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x6a3595=a74_0x4ac3;(function(_0x32dbd8,_0x1539f4){const _0x271c3c=a74_0x4ac3,_0x402db5=_0x32dbd8();while(!![]){try{const _0x362430=-parseInt(_0x271c3c(0x17c))/0x1*(parseInt(_0x271c3c(0x184))/0x2)+parseInt(_0x271c3c(0x16e))/0x3+parseInt(_0x271c3c(0x17b))/0x4+parseInt(_0x271c3c(0x170))/0x5*(-parseInt(_0x271c3c(0x174))/0x6)+-parseInt(_0x271c3c(0x16d))/0x7+-parseInt(_0x271c3c(0x182))/0x8*(parseInt(_0x271c3c(0x16c))/0x9)+parseInt(_0x271c3c(0x188))/0xa;if(_0x362430===_0x1539f4)break;else _0x402db5['push'](_0x402db5['shift']());}catch(_0x482923){_0x402db5['push'](_0x402db5['shift']());}}}(a74_0x1243,0xcc8ec));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a74_0x4ac3(_0xe61b0b,_0x5d3993){_0xe61b0b=_0xe61b0b-0x16c;const _0x124332=a74_0x1243();let _0x4ac326=_0x124332[_0xe61b0b];return _0x4ac326;}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a74_0x1243(){const _0x56fb72=['username','string','26647930OQyMwN','dbname','validation','9enebSL','5670798ShHQEK','3252822UDMajE','dbName','1850335YQIDDn','dbdesc','trim','Updated\x20db\x20link\x20','24TrOUUu','num','dbparam','write','dburl','dbDesc','password','601436nskOeG','96073RNMrZF','POST','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','dbUrl','New\x20description','str','789320pOPMAf','dbParam','14tZpOvU','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values'];a74_0x1243=function(){return _0x56fb72;};return a74_0x1243();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':'update','description':a74_0x6a3595(0x185),'risk':a74_0x6a3595(0x177),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a74_0x6a3595(0x189),'type':a74_0x6a3595(0x187),'description':'New\x20database\x20name'},{'name':a74_0x6a3595(0x178),'type':a74_0x6a3595(0x187),'description':'New\x20host:port'},{'name':a74_0x6a3595(0x186),'type':a74_0x6a3595(0x187),'description':'New\x20username'},{'name':a74_0x6a3595(0x17a),'type':a74_0x6a3595(0x187),'description':a74_0x6a3595(0x17e)},{'name':a74_0x6a3595(0x176),'type':a74_0x6a3595(0x187),'description':'New\x20connection\x20parameter\x20string'},{'name':'dbdesc','type':a74_0x6a3595(0x187),'description':a74_0x6a3595(0x180)}],async 'validate'(_0x26fed3){const _0x48aa98=a74_0x6a3595,_0x48007d=_0x26fed3[_0x48aa98(0x181)](_0x48aa98(0x178));if(_0x48007d&&!validateDbUrl(_0x48007d[_0x48aa98(0x172)]()))throw CliErrors[_0x48aa98(0x18a)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x48007d+'\x22');},async 'dryRun'(_0x121182){const _0x4737d4=a74_0x6a3595,_0x28e28c=_0x121182[_0x4737d4(0x175)]('id'),_0x33fa38=await getDbLinkInfo(_0x28e28c),_0x33dc51={..._0x33fa38},_0x5ddade=_0x121182[_0x4737d4(0x181)]('dbname');if(_0x5ddade)_0x33dc51[_0x4737d4(0x16f)]=_0x5ddade;const _0x2f2795=_0x121182['str'](_0x4737d4(0x178));if(_0x2f2795)_0x33dc51[_0x4737d4(0x17f)]=_0x2f2795['trim']();const _0x2cc33=_0x121182[_0x4737d4(0x181)](_0x4737d4(0x186));if(_0x2cc33)_0x33dc51[_0x4737d4(0x186)]=_0x2cc33;const _0x4750ed=_0x121182['str'](_0x4737d4(0x17a));if(_0x4750ed)_0x33dc51[_0x4737d4(0x17a)]=_0x4750ed;const _0x143dfe=_0x121182['str'](_0x4737d4(0x176));if(_0x143dfe)_0x33dc51[_0x4737d4(0x183)]=_0x143dfe;const _0xf0795=_0x121182[_0x4737d4(0x181)](_0x4737d4(0x171));if(_0xf0795)_0x33dc51['dbDesc']=_0xf0795;const _0x2f8743=sanitizeDbLinkForOutput(_0x33dc51);return{'method':_0x4737d4(0x17d),'url':'/smartapi/dblink/update','body':_0x2f8743,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0xc85fb0){const _0x5ed39c=a74_0x6a3595,_0x4f72cc=_0xc85fb0[_0x5ed39c(0x175)]('id'),_0x447188=await getDbLinkInfo(_0x4f72cc),_0x3fab32={..._0x447188},_0x8df192=_0xc85fb0[_0x5ed39c(0x181)](_0x5ed39c(0x189));if(_0x8df192)_0x3fab32['dbName']=_0x8df192;const _0x313a92=_0xc85fb0['str'](_0x5ed39c(0x178));if(_0x313a92)_0x3fab32[_0x5ed39c(0x17f)]=_0x313a92[_0x5ed39c(0x172)]();const _0x3e4062=_0xc85fb0[_0x5ed39c(0x181)]('username');if(_0x3e4062)_0x3fab32[_0x5ed39c(0x186)]=_0x3e4062;const _0x2a2474=_0xc85fb0[_0x5ed39c(0x181)](_0x5ed39c(0x17a));if(_0x2a2474)_0x3fab32[_0x5ed39c(0x17a)]=_0x2a2474;const _0x26a68b=_0xc85fb0[_0x5ed39c(0x181)]('dbparam');if(_0x26a68b)_0x3fab32[_0x5ed39c(0x183)]=_0x26a68b;const _0x410c19=_0xc85fb0[_0x5ed39c(0x181)](_0x5ed39c(0x171));if(_0x410c19)_0x3fab32[_0x5ed39c(0x179)]=_0x410c19;const {id:_0x565b7b,entity:_0x260ac8}=normalizeEntityWithIdResponse(await updateDbLink(_0x3fab32));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x260ac8),'message':_0x5ed39c(0x173)+(_0x565b7b??_0x4f72cc)};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a74_0x57dd(_0xfe7595,_0x1313e7){_0xfe7595=_0xfe7595-0x177;const _0x4d0298=a74_0x4d02();let _0x57dd11=_0x4d0298[_0xfe7595];return _0x57dd11;}const a74_0x476d2b=a74_0x57dd;(function(_0x145158,_0x27c1c9){const _0x4c0d31=a74_0x57dd,_0xb54e81=_0x145158();while(!![]){try{const _0x253354=parseInt(_0x4c0d31(0x1bb))/0x1+-parseInt(_0x4c0d31(0x179))/0x2+-parseInt(_0x4c0d31(0x1a6))/0x3+-parseInt(_0x4c0d31(0x196))/0x4+parseInt(_0x4c0d31(0x1c1))/0x5*(parseInt(_0x4c0d31(0x1af))/0x6)+parseInt(_0x4c0d31(0x1b9))/0x7+parseInt(_0x4c0d31(0x19e))/0x8;if(_0x253354===_0x27c1c9)break;else _0xb54e81['push'](_0xb54e81['shift']());}catch(_0x4ed6e7){_0xb54e81['push'](_0xb54e81['shift']());}}}(a74_0x4d02,0x9895a));import a74_0x3d9271 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x3fa3eb){const _0x5bfec5=a74_0x57dd,_0x248693=GIT_COMMIT!==_0x5bfec5(0x193)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x50cebe=buildConfigFromFlags({}),_0x4dfb48=getCookie();console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x17f)](CLI_BIN_NAME+_0x5bfec5(0x1a7))),console[_0x5bfec5(0x1a9)](a74_0x3d9271['gray']('─'[_0x5bfec5(0x19d)](0x32))),console['log'](_0x5bfec5(0x1a4)+_0x248693),console['log'](_0x5bfec5(0x1c7)+process[_0x5bfec5(0x17c)]),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1be)+process['platform']+'\x20'+process[_0x5bfec5(0x19a)]),console['log'](),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x17f)](_0x5bfec5(0x19f))),console['log'](a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x1c6)[_0x5bfec5(0x19d)](0x1e)));const _0x26fa51=getGlobalConfigPath(),_0x5028da=getProjectConfigPath();console[_0x5bfec5(0x1a9)](_0x5bfec5(0x17b)+(_0x26fa51||a74_0x3d9271['gray'](_0x5bfec5(0x1bc)))),console[_0x5bfec5(0x1a9)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5028da||a74_0x3d9271[_0x5bfec5(0x1b5)]('(not\x20found)'))),console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x17f)](_0x5bfec5(0x198))),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x1b5)]('\x20\x20─'['repeat'](0x1e)));const _0x387e42=(_0x4002b9,_0x4125f1)=>{const _0x317238=_0x5bfec5;if(!_0x4125f1){console['log']('\x20\x20'+_0x4002b9[_0x317238(0x194)](0x11)+'\x20'+a74_0x3d9271[_0x317238(0x1b5)]('(no\x20file)'));return;}const _0x50a2c0=inspectCliConfigJsonFile(_0x4125f1);if(_0x50a2c0[_0x317238(0x1b8)]==='ok')console[_0x317238(0x1a9)]('\x20\x20'+_0x4002b9['padEnd'](0x11)+'\x20'+a74_0x3d9271['green'](_0x317238(0x187)));else{if(_0x50a2c0['status']==='empty')console[_0x317238(0x1a9)]('\x20\x20'+_0x4002b9[_0x317238(0x194)](0x11)+'\x20'+a74_0x3d9271[_0x317238(0x1c0)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x50a2c0[_0x317238(0x1b8)]===_0x317238(0x1c2)?console[_0x317238(0x1a9)]('\x20\x20'+_0x4002b9[_0x317238(0x194)](0x11)+'\x20'+a74_0x3d9271[_0x317238(0x1b5)](_0x317238(0x1c3))):(console[_0x317238(0x1a9)]('\x20\x20'+_0x4002b9[_0x317238(0x194)](0x11)+'\x20'+a74_0x3d9271['red'](_0x317238(0x1a2))),console[_0x317238(0x1a9)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a74_0x3d9271['red'](_0x50a2c0['message'])));}};_0x387e42(_0x5bfec5(0x1a8),_0x26fa51),_0x387e42(_0x5bfec5(0x199),_0x5028da),console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271['bold'](_0x5bfec5(0x184))),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x1c6)[_0x5bfec5(0x19d)](0x1e))),console['log'](_0x5bfec5(0x1bd)+(_0x50cebe[_0x5bfec5(0x1a5)]||a74_0x3d9271[_0x5bfec5(0x1b2)](_0x5bfec5(0x18e)))),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1b1)+_0x50cebe[_0x5bfec5(0x1c5)]),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x19b)+_0x50cebe['locale']),console['log'](_0x5bfec5(0x1b7)+_0x50cebe[_0x5bfec5(0x1aa)]),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x18f)+(_0x50cebe[_0x5bfec5(0x188)]||a74_0x3d9271['gray']('(none)'))),console[_0x5bfec5(0x1a9)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x50cebe['currentApp']||a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x18c)))),console[_0x5bfec5(0x1a9)]('\x20\x20explicitAppName:\x20'+(_0x50cebe[_0x5bfec5(0x1a1)]||a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x18c)))),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x17a)+(_0x50cebe[_0x5bfec5(0x177)]||a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x17d)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x5bfec5(0x1a9)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x50cebe['pageSize']??a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x191)))),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1c8)+_0x50cebe[_0x5bfec5(0x1ba)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x50cebe[_0x5bfec5(0x183)]),console['log'](_0x5bfec5(0x17e)+(_0x50cebe[_0x5bfec5(0x18a)]?a74_0x3d9271[_0x5bfec5(0x1b3)](_0x5bfec5(0x1ac)+_0x50cebe[_0x5bfec5(0x18a)][_0x5bfec5(0x182)]+')'):_0x4dfb48?a74_0x3d9271[_0x5bfec5(0x1b3)](_0x5bfec5(0x18b)+_0x4dfb48[_0x5bfec5(0x182)]+')'):a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x18c))));const _0x97f110=Object[_0x5bfec5(0x1a0)](_0x50cebe[_0x5bfec5(0x1b6)]);if(_0x97f110['length']>0x0){console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271['bold'](_0x5bfec5(0x18d))),console['log'](a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x1c6)[_0x5bfec5(0x19d)](0x1e)));for(const _0x3b24b3 of _0x97f110){const _0x2e3b2e=_0x50cebe['apps'][_0x3b24b3],_0x433b93=_0x3b24b3===_0x50cebe['defaultApp'],_0x3fdc48=_0x3b24b3===_0x50cebe[_0x5bfec5(0x189)],_0xbabe=_0x3fdc48?a74_0x3d9271[_0x5bfec5(0x1b3)](_0x5bfec5(0x195)):'',_0x2319d3=_0x433b93?_0x5bfec5(0x1ab):'';console[_0x5bfec5(0x1a9)]('\x20\x20'+_0x3b24b3+_0x2319d3+_0xbabe),console[_0x5bfec5(0x1a9)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x2e3b2e['appcode']);const _0xb0bbf1=buildAppDoctorFields(_0x2e3b2e,{'env':_0x50cebe[_0x5bfec5(0x1c5)],'apiDir':_0x50cebe[_0x5bfec5(0x1b0)]['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x50cebe['cookie']||_0x4dfb48||undefined,'accessKey':_0x50cebe[_0x5bfec5(0x186)]});console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1ae)+_0xb0bbf1[_0x5bfec5(0x1c5)][_0x5bfec5(0x19c)]+'\x20\x20'+a74_0x3d9271[_0x5bfec5(0x1b5)]('('+_0xb0bbf1['env'][_0x5bfec5(0x178)]+')')),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x192)+_0xb0bbf1[_0x5bfec5(0x1aa)][_0x5bfec5(0x19c)]+'\x20\x20'+a74_0x3d9271['gray']('('+_0xb0bbf1[_0x5bfec5(0x1aa)][_0x5bfec5(0x178)]+')'));const _0x55eef4=_0xb0bbf1[_0x5bfec5(0x18a)][_0x5bfec5(0x19c)]?a74_0x3d9271['green']('(set,\x20length='+_0xb0bbf1[_0x5bfec5(0x18a)][_0x5bfec5(0x19c)][_0x5bfec5(0x182)]+')'):a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x18c));console[_0x5bfec5(0x1a9)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x55eef4+'\x20\x20'+a74_0x3d9271[_0x5bfec5(0x1b5)]('('+_0xb0bbf1[_0x5bfec5(0x18a)]['source']+')'));const _0x1d3414=_0xb0bbf1[_0x5bfec5(0x186)]['value']?a74_0x3d9271['green'](_0x5bfec5(0x1ac)+_0xb0bbf1[_0x5bfec5(0x186)][_0x5bfec5(0x19c)][_0x5bfec5(0x182)]+')'):a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x18c));console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1ca)+_0x1d3414+'\x20\x20'+a74_0x3d9271['gray']('('+_0xb0bbf1[_0x5bfec5(0x186)][_0x5bfec5(0x178)]+')'));}}console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271['bold'](_0x5bfec5(0x1b4))),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x1c6)['repeat'](0x1e))),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x185)+getApiDomain()),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x197)+getUserDomain()),console['log'](_0x5bfec5(0x180)+getRuntimeDomain()),console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x17f)](_0x5bfec5(0x190))),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x1b5)]('\x20\x20─'['repeat'](0x1e)));if(_0x4dfb48){const _0x1759b3=await getIsSessionValid();console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1ad)+(_0x1759b3?a74_0x3d9271[_0x5bfec5(0x1b3)]('✓\x20Valid'):a74_0x3d9271['red'](_0x5bfec5(0x181))));}else console['log'](_0x5bfec5(0x1ad)+a74_0x3d9271[_0x5bfec5(0x1b2)](_0x5bfec5(0x1c9)));return console[_0x5bfec5(0x1a9)](),{'ok':!![]};}function a74_0x4d02(){const _0x47abcd=['padEnd','\x20←\x20current','1096696BVKRlB','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','Project','arch','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','repeat','3147808RYsQnC','\x20\x20Config\x20Files','keys','explicitAppName','✗\x20Invalid\x20JSON','check','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','appCode','1141872OANEit','\x20doctor','Global','log','apiDir','\x20(default)','(set,\x20length=','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','234nABoRT','raw','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','green','\x20\x20API\x20Endpoints','gray','apps','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','4876956VMNdGh','riskLevel','289355hiVMXO','(not\x20found)','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','read','yellow','665teemov','missing','(missing)','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','env','\x20\x20─','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','\x20\x20\x20\x20accessKey:\x20\x20','format','source','209884uasetF','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','(default:\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','\x20\x20runtimeDomain:\x20\x20\x20','✗\x20Expired','length','verbose','\x20\x20Merged\x20Config','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','accessKey','✓\x20Valid\x20JSON','defaultApp','currentApp','cookie','(set\x20via\x20file,\x20length=','(none)','\x20\x20Apps','(not\x20set)','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Auth','(default)','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','unknown'];a74_0x4d02=function(){return _0x47abcd;};return a74_0x4d02();}export const doctorDefinition={'service':'doctor','command':a74_0x476d2b(0x1a3),'description':a74_0x476d2b(0x1c4),'risk':a74_0x476d2b(0x1bf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a75_0x21d1f8=a75_0x4669;(function(_0x2881a8,_0x33ec7b){const _0x291a91=a75_0x4669,_0x14ff62=_0x2881a8();while(!![]){try{const _0x25fd89=parseInt(_0x291a91(0x74))/0x1+-parseInt(_0x291a91(0x93))/0x2+parseInt(_0x291a91(0x9d))/0x3+-parseInt(_0x291a91(0x98))/0x4+-parseInt(_0x291a91(0xa9))/0x5*(-parseInt(_0x291a91(0x92))/0x6)+parseInt(_0x291a91(0x8c))/0x7*(parseInt(_0x291a91(0x9f))/0x8)+-parseInt(_0x291a91(0xaa))/0x9*(parseInt(_0x291a91(0xc0))/0xa);if(_0x25fd89===_0x33ec7b)break;else _0x14ff62['push'](_0x14ff62['shift']());}catch(_0x229bb5){_0x14ff62['push'](_0x14ff62['shift']());}}}(a75_0x2f18,0x45fff));import a75_0x54ad07 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';function a75_0x4669(_0x149ff7,_0x1e3588){_0x149ff7=_0x149ff7-0x6a;const _0x2f18b7=a75_0x2f18();let _0x4669fe=_0x2f18b7[_0x149ff7];return _0x4669fe;}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';function a75_0x2f18(){const _0x5d34df=['✓\x20Valid\x20JSON','repeat','currentApp','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','length','\x20\x20─','\x20\x20Config\x20Files','status','version','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','accessKey','apiDir','missing','empty','380xYoUgJ','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','(set,\x20length=','verbose','\x20\x20\x20\x20accessKey:\x20\x20','✗\x20Invalid\x20JSON','defaultApp','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','source','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','72821sfpRKZ','pageSize','(default:\x20','message','cookie','green','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','doctor','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','format','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','Global','padEnd','✗\x20Expired','\x20(default)','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','(not\x20set)','(no\x20file)','raw','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','env','(none)','7omarSr','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','unknown','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','3343776RCvwQi','314356lrFrWd','gray','red','appcode','⚠\x20Empty\x20(treated\x20as\x20{})','576940rGulWe','\x20\x20Config\x20JSON','\x20\x20Auth','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','1655040RrbIXG','apps','1391784YbNqbG','\x20\x20explicitAppName:\x20','read','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','yellow','bold','\x20\x20Merged\x20Config','check','Project','5MzCSOc','181809tIYRRh','keys','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','value','\x20\x20Apps','\x20doctor'];a75_0x2f18=function(){return _0x5d34df;};return a75_0x2f18();}async function execute(_0x18768e){const _0x59d2d0=a75_0x4669,_0x2804fa=GIT_COMMIT!==_0x59d2d0(0x90)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x4725e0=buildConfigFromFlags({}),_0x4f1ac6=getCookie();console[_0x59d2d0(0x7b)](),console[_0x59d2d0(0x7b)](a75_0x54ad07['bold'](CLI_BIN_NAME+_0x59d2d0(0xaf))),console['log'](a75_0x54ad07[_0x59d2d0(0x94)]('─'['repeat'](0x32))),console[_0x59d2d0(0x7b)](_0x59d2d0(0x7d)+_0x2804fa),console[_0x59d2d0(0x7b)](_0x59d2d0(0x91)+process[_0x59d2d0(0xb9)]),console[_0x59d2d0(0x7b)](_0x59d2d0(0x73)+process['platform']+'\x20'+process['arch']),console[_0x59d2d0(0x7b)](),console['log'](a75_0x54ad07['bold'](_0x59d2d0(0xb7))),console[_0x59d2d0(0x7b)](a75_0x54ad07[_0x59d2d0(0x94)](_0x59d2d0(0xb6)[_0x59d2d0(0xb1)](0x1e)));const _0xc7c919=getGlobalConfigPath(),_0x1d9bd1=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xc7c919||a75_0x54ad07[_0x59d2d0(0x94)](_0x59d2d0(0xb4)))),console[_0x59d2d0(0x7b)](_0x59d2d0(0x70)+(_0x1d9bd1||a75_0x54ad07['gray']('(not\x20found)'))),console['log'](),console[_0x59d2d0(0x7b)](a75_0x54ad07[_0x59d2d0(0xa5)](_0x59d2d0(0x99))),console[_0x59d2d0(0x7b)](a75_0x54ad07[_0x59d2d0(0x94)](_0x59d2d0(0xb6)[_0x59d2d0(0xb1)](0x1e)));const _0x5265c5=(_0x344c3d,_0x48c4bb)=>{const _0x1e2039=_0x59d2d0;if(!_0x48c4bb){console[_0x1e2039(0x7b)]('\x20\x20'+_0x344c3d[_0x1e2039(0x81)](0x11)+'\x20'+a75_0x54ad07['gray'](_0x1e2039(0x87)));return;}const _0x17991a=inspectCliConfigJsonFile(_0x48c4bb);if(_0x17991a[_0x1e2039(0xb8)]==='ok')console[_0x1e2039(0x7b)]('\x20\x20'+_0x344c3d['padEnd'](0x11)+'\x20'+a75_0x54ad07[_0x1e2039(0x79)](_0x1e2039(0xb0)));else{if(_0x17991a[_0x1e2039(0xb8)]===_0x1e2039(0xbf))console['log']('\x20\x20'+_0x344c3d['padEnd'](0x11)+'\x20'+a75_0x54ad07[_0x1e2039(0xa4)](_0x1e2039(0x97)));else _0x17991a[_0x1e2039(0xb8)]===_0x1e2039(0xbe)?console['log']('\x20\x20'+_0x344c3d[_0x1e2039(0x81)](0x11)+'\x20'+a75_0x54ad07[_0x1e2039(0x94)](_0x1e2039(0xbb))):(console[_0x1e2039(0x7b)]('\x20\x20'+_0x344c3d['padEnd'](0x11)+'\x20'+a75_0x54ad07['red'](_0x1e2039(0x6e))),console[_0x1e2039(0x7b)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a75_0x54ad07['red'](_0x17991a[_0x1e2039(0x77)])));}};_0x5265c5(_0x59d2d0(0x80),_0xc7c919),_0x5265c5(_0x59d2d0(0xa8),_0x1d9bd1),console[_0x59d2d0(0x7b)](),console[_0x59d2d0(0x7b)](a75_0x54ad07[_0x59d2d0(0xa5)](_0x59d2d0(0xa6))),console[_0x59d2d0(0x7b)](a75_0x54ad07[_0x59d2d0(0x94)]('\x20\x20─'[_0x59d2d0(0xb1)](0x1e))),console[_0x59d2d0(0x7b)](_0x59d2d0(0xa3)+(_0x4725e0['appCode']||a75_0x54ad07['red'](_0x59d2d0(0x86)))),console[_0x59d2d0(0x7b)](_0x59d2d0(0x8e)+_0x4725e0[_0x59d2d0(0x8a)]),console[_0x59d2d0(0x7b)](_0x59d2d0(0xa2)+_0x4725e0['locale']),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4725e0[_0x59d2d0(0xbd)]),console[_0x59d2d0(0x7b)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x4725e0[_0x59d2d0(0x6f)]||a75_0x54ad07[_0x59d2d0(0x94)](_0x59d2d0(0x8b)))),console[_0x59d2d0(0x7b)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x4725e0[_0x59d2d0(0xb2)]||a75_0x54ad07[_0x59d2d0(0x94)](_0x59d2d0(0x8b)))),console[_0x59d2d0(0x7b)](_0x59d2d0(0xa0)+(_0x4725e0['explicitAppName']||a75_0x54ad07[_0x59d2d0(0x94)](_0x59d2d0(0x8b)))),console[_0x59d2d0(0x7b)](_0x59d2d0(0x84)+(_0x4725e0[_0x59d2d0(0x7e)]||a75_0x54ad07[_0x59d2d0(0x94)](_0x59d2d0(0x76)+DEFAULT_CONFIG_VALUES[_0x59d2d0(0x7e)]+')'))),console[_0x59d2d0(0x7b)](_0x59d2d0(0xba)+(_0x4725e0[_0x59d2d0(0x75)]??a75_0x54ad07[_0x59d2d0(0x94)]('(default)'))),console[_0x59d2d0(0x7b)](_0x59d2d0(0x89)+_0x4725e0['riskLevel']),console['log'](_0x59d2d0(0xb3)+_0x4725e0[_0x59d2d0(0x6c)]),console[_0x59d2d0(0x7b)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4725e0[_0x59d2d0(0x78)]?a75_0x54ad07[_0x59d2d0(0x79)](_0x59d2d0(0x6b)+_0x4725e0[_0x59d2d0(0x78)]['length']+')'):_0x4f1ac6?a75_0x54ad07['green'](_0x59d2d0(0x71)+_0x4f1ac6[_0x59d2d0(0xb5)]+')'):a75_0x54ad07[_0x59d2d0(0x94)](_0x59d2d0(0x8b))));const _0x143224=Object[_0x59d2d0(0xab)](_0x4725e0[_0x59d2d0(0x9e)]);if(_0x143224[_0x59d2d0(0xb5)]>0x0){console[_0x59d2d0(0x7b)](),console[_0x59d2d0(0x7b)](a75_0x54ad07[_0x59d2d0(0xa5)](_0x59d2d0(0xae))),console['log'](a75_0x54ad07[_0x59d2d0(0x94)](_0x59d2d0(0xb6)[_0x59d2d0(0xb1)](0x1e)));for(const _0x2b4d87 of _0x143224){const _0xb85ced=_0x4725e0[_0x59d2d0(0x9e)][_0x2b4d87],_0x50bbea=_0x2b4d87===_0x4725e0[_0x59d2d0(0x6f)],_0x49feb1=_0x2b4d87===_0x4725e0[_0x59d2d0(0xb2)],_0x2687e0=_0x49feb1?a75_0x54ad07[_0x59d2d0(0x79)]('\x20←\x20current'):'',_0x19d597=_0x50bbea?_0x59d2d0(0x83):'';console[_0x59d2d0(0x7b)]('\x20\x20'+_0x2b4d87+_0x19d597+_0x2687e0),console[_0x59d2d0(0x7b)](_0x59d2d0(0x8d)+_0xb85ced[_0x59d2d0(0x96)]);const _0x509f02=buildAppDoctorFields(_0xb85ced,{'env':_0x4725e0[_0x59d2d0(0x8a)],'apiDir':_0x4725e0[_0x59d2d0(0x88)][_0x59d2d0(0xbd)]||DEFAULT_CONFIG_VALUES[_0x59d2d0(0xbd)],'cookie':_0x4725e0[_0x59d2d0(0x78)]||_0x4f1ac6||undefined,'accessKey':_0x4725e0['accessKey']});console['log'](_0x59d2d0(0x7f)+_0x509f02[_0x59d2d0(0x8a)][_0x59d2d0(0xad)]+'\x20\x20'+a75_0x54ad07[_0x59d2d0(0x94)]('('+_0x509f02[_0x59d2d0(0x8a)][_0x59d2d0(0x72)]+')')),console['log'](_0x59d2d0(0x9c)+_0x509f02['apiDir']['value']+'\x20\x20'+a75_0x54ad07['gray']('('+_0x509f02[_0x59d2d0(0xbd)][_0x59d2d0(0x72)]+')'));const _0x371193=_0x509f02[_0x59d2d0(0x78)][_0x59d2d0(0xad)]?a75_0x54ad07[_0x59d2d0(0x79)]('(set,\x20length='+_0x509f02[_0x59d2d0(0x78)]['value'][_0x59d2d0(0xb5)]+')'):a75_0x54ad07[_0x59d2d0(0x94)](_0x59d2d0(0x8b));console[_0x59d2d0(0x7b)](_0x59d2d0(0x9b)+_0x371193+'\x20\x20'+a75_0x54ad07[_0x59d2d0(0x94)]('('+_0x509f02['cookie'][_0x59d2d0(0x72)]+')'));const _0x1184b3=_0x509f02['accessKey'][_0x59d2d0(0xad)]?a75_0x54ad07['green']('(set,\x20length='+_0x509f02[_0x59d2d0(0xbc)]['value'][_0x59d2d0(0xb5)]+')'):a75_0x54ad07[_0x59d2d0(0x94)]('(none)');console[_0x59d2d0(0x7b)](_0x59d2d0(0x6d)+_0x1184b3+'\x20\x20'+a75_0x54ad07['gray']('('+_0x509f02[_0x59d2d0(0xbc)]['source']+')'));}}console[_0x59d2d0(0x7b)](),console[_0x59d2d0(0x7b)](a75_0x54ad07['bold']('\x20\x20API\x20Endpoints')),console[_0x59d2d0(0x7b)](a75_0x54ad07['gray'](_0x59d2d0(0xb6)[_0x59d2d0(0xb1)](0x1e))),console['log'](_0x59d2d0(0xac)+getApiDomain()),console[_0x59d2d0(0x7b)](_0x59d2d0(0x6a)+getUserDomain()),console[_0x59d2d0(0x7b)](_0x59d2d0(0x8f)+getRuntimeDomain()),console[_0x59d2d0(0x7b)](),console[_0x59d2d0(0x7b)](a75_0x54ad07[_0x59d2d0(0xa5)](_0x59d2d0(0x9a))),console[_0x59d2d0(0x7b)](a75_0x54ad07[_0x59d2d0(0x94)](_0x59d2d0(0xb6)['repeat'](0x1e)));if(_0x4f1ac6){const _0x596002=await getIsSessionValid();console['log'](_0x59d2d0(0x7a)+(_0x596002?a75_0x54ad07[_0x59d2d0(0x79)](_0x59d2d0(0x85)):a75_0x54ad07[_0x59d2d0(0x95)](_0x59d2d0(0x82))));}else console[_0x59d2d0(0x7b)](_0x59d2d0(0x7a)+a75_0x54ad07['red']('✗\x20Not\x20logged\x20in'));return console[_0x59d2d0(0x7b)](),{'ok':!![]};}export const doctorDefinition={'service':a75_0x21d1f8(0x7c),'command':a75_0x21d1f8(0xa7),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a75_0x21d1f8(0xa1),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x3be48d=a76_0x3505;(function(_0x12968f,_0x464798){const _0x28223f=a76_0x3505,_0x571519=_0x12968f();while(!![]){try{const _0x3d8c6f=-parseInt(_0x28223f(0x13c))/0x1*(parseInt(_0x28223f(0x11a))/0x2)+parseInt(_0x28223f(0x121))/0x3*(parseInt(_0x28223f(0x138))/0x4)+parseInt(_0x28223f(0x12c))/0x5+parseInt(_0x28223f(0x139))/0x6+parseInt(_0x28223f(0x122))/0x7+parseInt(_0x28223f(0x11c))/0x8*(-parseInt(_0x28223f(0x119))/0x9)+-parseInt(_0x28223f(0x13e))/0xa;if(_0x3d8c6f===_0x464798)break;else _0x571519['push'](_0x571519['shift']());}catch(_0x31fee2){_0x571519['push'](_0x571519['shift']());}}}(a76_0x4793,0xc5c24));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';function a76_0x3505(_0x5de873,_0x22721b){_0x5de873=_0x5de873-0x115;const _0x47938e=a76_0x4793();let _0x3505ec=_0x47938e[_0x5de873];return _0x3505ec;}import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x11a3f0){return{'appCode':_0x11a3f0,'appName':_0x11a3f0};}function writeInitConfig(_0x24c328,_0xe0f3f9,_0x5768b2){const _0x242c83=a76_0x3505,_0x2bec4f=resolveWriteConfigPath(_0x24c328),_0x288ccb=buildCanonicalProjectConfig({},{'appCodes':_0xe0f3f9[_0x242c83(0x118)](_0x2b7914=>_0x2b7914[_0x242c83(0x129)]),'env':_0x5768b2,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x242c83(0x12a)]()}});writeConfigFile(_0x2bec4f,_0x288ccb);const _0x46f469=_0x24c328===_0x242c83(0x116)?_0x242c83(0x116):_0x242c83(0x130);console['log'](_0x242c83(0x11e)+_0x46f469+_0x242c83(0x13d)),console['log'](_0x242c83(0x125)+_0xe0f3f9[_0x242c83(0x118)](_0x5adfcf=>_0x5adfcf[_0x242c83(0x129)])[_0x242c83(0x12d)](',\x20')),console[_0x242c83(0x124)]('\x20\x20Default:\x20'+_0x288ccb['defaultApp']),console[_0x242c83(0x124)]('\x20\x20Env:\x20'+_0x288ccb[_0x242c83(0x127)]),console[_0x242c83(0x124)](_0x242c83(0x13a)+_0x2bec4f);}function a76_0x4793(){const _0x2bb86c=['toLocaleString','bool','7083895TFkJgq','join','init','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','project','production','../../commands/project/init.js','nonInteractive','Auto-confirm\x20prompts','string','yes','str','12QTNfpj','4817850qBSeFG','\x20\x20Config:\x20','custom','1154edZpKo','\x20config','13040520qmgysX','appcode','App\x20code\x20to\x20initialize\x20with','global','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','map','234aGVhPF','1244ifXFPs','Usage:\x20','278792eMLabS','boolean','\x0a✓\x20Successfully\x20initialized\x20','flagMissing','valid','912447hbMPtf','4240131fbDomo','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','log','\x20\x20Apps:\x20','validation','env','Target\x20environment','appCode'];a76_0x4793=function(){return _0x2bb86c;};return a76_0x4793();}async function runSmartInit(_0x413bfa){const _0x1d61be=a76_0x3505,_0x372d86=process['cwd'](),_0x3d6e4f=_0x413bfa['bool'](_0x1d61be(0x116))?_0x1d61be(0x116):_0x1d61be(0x130),_0x463f78=_0x413bfa['str'](_0x1d61be(0x127))||_0x1d61be(0x131),_0x50bd73=_0x413bfa[_0x1d61be(0x137)](_0x1d61be(0x13f))||undefined,_0x300f04=_0x413bfa[_0x1d61be(0x12b)]('project');if(_0x300f04){const {initConfig:_0x555b6d}=await import(_0x1d61be(0x132));return _0x555b6d({'appcode':_0x50bd73,'env':_0x463f78,'autoYes':_0x413bfa['bool'](_0x1d61be(0x136))});}if(_0x3d6e4f===_0x1d61be(0x130)){const _0x25b9ae=existsSync(resolve(_0x372d86,NEW_CONFIG_NAME)),_0x27d216=LEGACY_CONFIG_NAMES['some'](_0x28651d=>existsSync(resolve(_0x372d86,_0x28651d)));if(_0x27d216&&!_0x25b9ae)return console['log']('检测到旧配置文件,正在自动升级...\x0a'),upgradeApp(_0x413bfa[_0x1d61be(0x133)],{'yes':_0x413bfa['bool'](_0x1d61be(0x136))});if(_0x25b9ae)throw CliErrors[_0x1d61be(0x126)](_0x1d61be(0x123),'Use\x20`'+CLI_BIN_NAME+_0x1d61be(0x117));}if(_0x50bd73){const _0xe2eb83=validateAppcode(_0x50bd73);if(!_0xe2eb83[_0x1d61be(0x120)])throw CliErrors['validation'](_0xe2eb83['message']);writeInitConfig(_0x3d6e4f,[syntheticApp(_0x50bd73)],_0x463f78);return;}if(_0x413bfa['nonInteractive'])throw CliErrors[_0x1d61be(0x11f)](_0x1d61be(0x13f),_0x1d61be(0x11b)+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x1b9dff=getCookie(),_0x30b757=await selectMultipleApps(_0x1b9dff),_0x4bd264=_0x30b757===_0x1d61be(0x13b)?[syntheticApp(await promptCustomAppcode())]:_0x30b757;writeInitConfig(_0x3d6e4f,_0x4bd264,_0x463f78);}const initFlags=[{'name':a76_0x3be48d(0x116),'type':a76_0x3be48d(0x11d),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a76_0x3be48d(0x127),'type':a76_0x3be48d(0x135),'description':a76_0x3be48d(0x128),'default':a76_0x3be48d(0x131),'enum':[...RABETBASE_ENV_VALUES]},{'name':a76_0x3be48d(0x13f),'type':a76_0x3be48d(0x135),'description':a76_0x3be48d(0x115)},{'name':'project','type':'boolean','description':'Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','default':![]},{'name':a76_0x3be48d(0x136),'type':a76_0x3be48d(0x11d),'description':a76_0x3be48d(0x134),'default':![]}];export const initDefinitions=[{'service':a76_0x3be48d(0x12e),'command':'run','description':a76_0x3be48d(0x12f),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x3b83d5){return await runSmartInit(_0x3b83d5),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x13cb15,_0x5d0112){const _0x222860=a77_0x5a23,_0x550f76=_0x13cb15();while(!![]){try{const _0x146ae6=parseInt(_0x222860(0x1f4))/0x1+-parseInt(_0x222860(0x1f3))/0x2+-parseInt(_0x222860(0x1f0))/0x3*(parseInt(_0x222860(0x1ee))/0x4)+parseInt(_0x222860(0x1f2))/0x5*(-parseInt(_0x222860(0x1f6))/0x6)+parseInt(_0x222860(0x1f5))/0x7*(-parseInt(_0x222860(0x1ed))/0x8)+-parseInt(_0x222860(0x1f1))/0x9+parseInt(_0x222860(0x1ef))/0xa;if(_0x146ae6===_0x5d0112)break;else _0x550f76['push'](_0x550f76['shift']());}catch(_0x555635){_0x550f76['push'](_0x550f76['shift']());}}}(a77_0x29a6,0x6e13a));import{issueReport}from'../../commands/issue/report.js';function a77_0x5a23(_0x9d0c38,_0x3addf9){_0x9d0c38=_0x9d0c38-0x1ed;const _0x29a6b6=a77_0x29a6();let _0x5a23f7=_0x29a6b6[_0x9d0c38];return _0x5a23f7;}export const issueDefinitions=[issueReport];function a77_0x29a6(){const _0x3d1340=['13408ZgarcX','544MDzImg','24832110vqdPVi','19038iVVQok','5032701KUcWoa','115865Ajfthe','811194jHiOic','539148eHFJSp','1267dZpJHv','114JqAVrP'];a77_0x29a6=function(){return _0x3d1340;};return a77_0x29a6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a78_0x41fe99=a78_0x165c;(function(_0x39436d,_0x3acd6a){const _0x489641=a78_0x165c,_0x1fe465=_0x39436d();while(!![]){try{const _0x3f9e67=parseInt(_0x489641(0x1de))/0x1*(parseInt(_0x489641(0x200))/0x2)+-parseInt(_0x489641(0x1e5))/0x3*(-parseInt(_0x489641(0x209))/0x4)+parseInt(_0x489641(0x1f2))/0x5+parseInt(_0x489641(0x1fd))/0x6*(parseInt(_0x489641(0x1fb))/0x7)+-parseInt(_0x489641(0x1f8))/0x8+-parseInt(_0x489641(0x207))/0x9*(-parseInt(_0x489641(0x1ec))/0xa)+parseInt(_0x489641(0x1e4))/0xb*(-parseInt(_0x489641(0x204))/0xc);if(_0x3f9e67===_0x3acd6a)break;else _0x1fe465['push'](_0x1fe465['shift']());}catch(_0x59ab11){_0x1fe465['push'](_0x1fe465['shift']());}}}(a78_0x419c,0xf3282));function a78_0x165c(_0x417d46,_0x316127){_0x417d46=_0x417d46-0x1db;const _0x419c35=a78_0x419c();let _0x165cac=_0x419c35[_0x417d46];return _0x165cac;}import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';function a78_0x419c(){const _0x192973=['issue','9455550MeRyFO','issue.description','message','descriptionSource','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Issue\x20description\x20file\x20is\x20empty:\x20','3886456HpzWPu','cwd','title','7EpAoFZ','descriptionFilePath','10866390ilYmOE','One-line\x20issue\x20summary','length','59798mFUrHF','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','compress','Platform\x20issue\x20reported','13776fYZjZV','validation','descriptionFile:\x20','1588932naupIr','file','2264UyHylI','trim','write','description','22pksQzn','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','inline','string','Issue\x20description\x20cannot\x20be\x20empty.','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','45331fJgyWC','2334fYXWgf','File\x20not\x20found:\x20','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','utf8','descriptionSource:\x20','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','otel://','80BUQXZq','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','filter','str','apiError'];a78_0x419c=function(){return _0x192973;};return a78_0x419c();}import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';export const issueReport={'service':a78_0x41fe99(0x1f1),'command':'report','description':a78_0x41fe99(0x1ea),'risk':a78_0x41fe99(0x1dc),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a78_0x41fe99(0x202),'flags':[{'name':'title','type':a78_0x41fe99(0x1e1),'required':!![],'description':a78_0x41fe99(0x1fe)},{'name':a78_0x41fe99(0x1dd),'type':a78_0x41fe99(0x1e1),'description':a78_0x41fe99(0x1e7)},{'name':DESCRIPTION_FILE_FLAG,'type':a78_0x41fe99(0x1e1),'description':a78_0x41fe99(0x201)}],async 'validate'(_0x3e7c7e){const _0x4a680b=a78_0x41fe99,_0x66cf52=_0x3e7c7e[_0x4a680b(0x1ef)](_0x4a680b(0x1fa))['trim'](),_0x3f7ce7=_0x3e7c7e['str'](_0x4a680b(0x1dd))[_0x4a680b(0x1db)](),_0x40d336=_0x3e7c7e[_0x4a680b(0x1ef)](DESCRIPTION_FILE_FLAG)[_0x4a680b(0x1db)]();if(!_0x66cf52)throw CliErrors['flagMissing'](_0x4a680b(0x1fa),'Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x162ca8=_0x3f7ce7[_0x4a680b(0x1ff)]>0x0,_0xe048eb=_0x40d336[_0x4a680b(0x1ff)]>0x0;if(_0x162ca8===_0xe048eb)throw CliErrors[_0x4a680b(0x205)](_0x4a680b(0x1ed),_0x4a680b(0x1f6));if(_0xe048eb){const _0x327722=resolve(process[_0x4a680b(0x1f9)](),_0x40d336);if(!existsSync(_0x327722))throw CliErrors[_0x4a680b(0x205)](_0x4a680b(0x1e6)+_0x327722);}},async 'dryRun'(_0x2ac984){const _0x596808=a78_0x41fe99,_0x2c0690=await prepareIssueReport(_0x2ac984);return{'method':'POST','url':_0x596808(0x1eb)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x2c0690[_0x596808(0x1fa)],'issue.description':_0x2c0690['description']}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x596808(0x1e9)+_0x2c0690[_0x596808(0x1f5)],_0x2c0690['descriptionFilePath']?_0x596808(0x206)+_0x2c0690[_0x596808(0x1fc)]:null][_0x596808(0x1ee)](Boolean)['join']('\x0a')};},async 'execute'(_0xe1d76f){const _0x4aba95=a78_0x41fe99,_0x3fc43b=await prepareIssueReport(_0xe1d76f);try{await sendPlatformIssueCollectLog({'title':_0x3fc43b[_0x4aba95(0x1fa)],'description':_0x3fc43b[_0x4aba95(0x1dd)]});}catch(_0x1ccd23){throw CliErrors[_0x4aba95(0x1f0)]('Failed\x20to\x20report\x20platform\x20issue:\x20'+(_0x1ccd23 instanceof Error?_0x1ccd23[_0x4aba95(0x1f4)]:String(_0x1ccd23)),_0x4aba95(0x1e3));}return{'ok':!![],'message':_0x4aba95(0x203),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':['issue.title',_0x4aba95(0x1f3)],'issue':{'title':_0x3fc43b[_0x4aba95(0x1fa)],'descriptionLength':_0x3fc43b[_0x4aba95(0x1dd)][_0x4aba95(0x1ff)],'descriptionSource':_0x3fc43b['descriptionSource'],..._0x3fc43b[_0x4aba95(0x1fc)]?{'descriptionFile':_0x3fc43b[_0x4aba95(0x1fc)]}:{}}}};}};async function prepareIssueReport(_0x9a8ac7){const _0x56904b=a78_0x41fe99,_0x569d3e=_0x9a8ac7['str']('title')['trim'](),_0x4205e9=_0x9a8ac7[_0x56904b(0x1ef)](_0x56904b(0x1dd)),_0x2660ea=_0x9a8ac7['str'](DESCRIPTION_FILE_FLAG)[_0x56904b(0x1db)]();if(!_0x2660ea){const _0x2dda7b=_0x4205e9;if(!_0x2dda7b[_0x56904b(0x1db)]())throw CliErrors[_0x56904b(0x205)](_0x56904b(0x1e2),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');return{'title':_0x569d3e,'description':_0x2dda7b,'descriptionSource':_0x56904b(0x1e0)};}const _0x369c52=resolve(process[_0x56904b(0x1f9)](),_0x2660ea),_0x188798=await readFile(_0x369c52,_0x56904b(0x1e8));if(!_0x188798['trim']())throw CliErrors['validation'](_0x56904b(0x1f7)+_0x369c52,_0x56904b(0x1df));return{'title':_0x569d3e,'description':_0x188798,'descriptionSource':_0x56904b(0x208),'descriptionFilePath':_0x369c52};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79_0x1e93bb=a79_0x364b;(function(_0x11c424,_0x43cf03){const _0x717719=a79_0x364b,_0x5c1b3a=_0x11c424();while(!![]){try{const _0x1d669f=parseInt(_0x717719(0x1d2))/0x1+parseInt(_0x717719(0x1c9))/0x2*(parseInt(_0x717719(0x1d3))/0x3)+parseInt(_0x717719(0x1cf))/0x4*(-parseInt(_0x717719(0x1d9))/0x5)+parseInt(_0x717719(0x1ca))/0x6+-parseInt(_0x717719(0x1ce))/0x7*(parseInt(_0x717719(0x1c7))/0x8)+-parseInt(_0x717719(0x1bc))/0x9*(parseInt(_0x717719(0x1d0))/0xa)+parseInt(_0x717719(0x1d8))/0xb;if(_0x1d669f===_0x43cf03)break;else _0x5c1b3a['push'](_0x5c1b3a['shift']());}catch(_0x374ae7){_0x5c1b3a['push'](_0x5c1b3a['shift']());}}}(a79_0x2e48,0x1a239));function a79_0x364b(_0xc4114f,_0x7d3f8e){_0xc4114f=_0xc4114f-0x1ba;const _0x2e487d=a79_0x2e48();let _0x364b43=_0x2e487d[_0xc4114f];return _0x364b43;}import{logger}from'../../utils/logger.js';function a79_0x2e48(){const _0xd0db88=['success','en-US','*\x20Logs\x20cleared','log','*\x20Lovrabet\x20CLI\x20logs:\x0a','timestamp','View\x20command\x20history\x20logs','stringify','message','command','79608HwGaLZ','toLocaleString','4mSbKAT','275640KchbWr','logs','error','clear','14ISwRBW','48IDkhEW','170IPRZsW','\x20\x20\x20Details:\x20','13792txQGVa','236343OUJWsx','*\x20No\x20logs\x20found','level','length','clearLogs','1975424XGfnBK','73285lwCMdh','show','keys','duration','details','readLogs','Clear\x20command\x20history\x20logs','49779LyuCtD'];a79_0x2e48=function(){return _0xd0db88;};return a79_0x2e48();}function printLogs(_0x333c21){const _0x3f9715=a79_0x364b;if(_0x333c21['length']===0x0){console[_0x3f9715(0x1c0)](_0x3f9715(0x1d4));return;}console[_0x3f9715(0x1c0)](_0x3f9715(0x1c1)),_0x333c21['forEach']((_0x548d05,_0x56ffa6)=>{const _0x4da180=_0x3f9715,_0x379e9f=new Date(_0x548d05[_0x4da180(0x1c2)])[_0x4da180(0x1c8)](_0x4da180(0x1be)),_0xc3584c=_0x548d05[_0x4da180(0x1d5)]===_0x4da180(0x1bd)?'√':_0x548d05[_0x4da180(0x1d5)]===_0x4da180(0x1cc)?'×':_0x548d05[_0x4da180(0x1d5)]==='warn'?'!':'i';console[_0x4da180(0x1c0)](_0x56ffa6+0x1+'.\x20'+_0xc3584c+'\x20['+_0x548d05[_0x4da180(0x1c6)]+']\x20'+_0x548d05[_0x4da180(0x1c5)]),console[_0x4da180(0x1c0)]('\x20\x20\x20Time:\x20'+_0x379e9f),_0x548d05[_0x4da180(0x1dc)]&&console[_0x4da180(0x1c0)]('\x20\x20\x20Duration:\x20'+_0x548d05[_0x4da180(0x1dc)]+'ms'),_0x548d05[_0x4da180(0x1dd)]&&Object[_0x4da180(0x1db)](_0x548d05['details'])[_0x4da180(0x1d6)]>0x0&&console['log'](_0x4da180(0x1d1)+JSON[_0x4da180(0x1c4)](_0x548d05[_0x4da180(0x1dd)],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':a79_0x1e93bb(0x1cb),'command':a79_0x1e93bb(0x1da),'description':a79_0x1e93bb(0x1c3),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x527302){const _0x1dade5=a79_0x1e93bb;return printLogs(logger[_0x1dade5(0x1ba)]()),{'ok':!![]};}},{'service':'logs','command':a79_0x1e93bb(0x1cd),'description':a79_0x1e93bb(0x1bb),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x7d850a){const _0x478ea8=a79_0x1e93bb;return logger[_0x478ea8(0x1d7)](),console[_0x478ea8(0x1c0)](_0x478ea8(0x1bf)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a80_0x1fcb(_0x21114f,_0x3fe746){_0x21114f=_0x21114f-0x99;const _0x61e259=a80_0x61e2();let _0x1fcbef=_0x61e259[_0x21114f];return _0x1fcbef;}(function(_0x39801a,_0xc48ba3){const _0x4b7ed5=a80_0x1fcb,_0x503936=_0x39801a();while(!![]){try{const _0x72f3e4=parseInt(_0x4b7ed5(0xa2))/0x1*(parseInt(_0x4b7ed5(0x9a))/0x2)+parseInt(_0x4b7ed5(0x9d))/0x3*(parseInt(_0x4b7ed5(0x99))/0x4)+-parseInt(_0x4b7ed5(0xa1))/0x5+parseInt(_0x4b7ed5(0x9f))/0x6+-parseInt(_0x4b7ed5(0x9b))/0x7*(-parseInt(_0x4b7ed5(0x9e))/0x8)+parseInt(_0x4b7ed5(0xa0))/0x9+-parseInt(_0x4b7ed5(0x9c))/0xa;if(_0x72f3e4===_0xc48ba3)break;else _0x503936['push'](_0x503936['shift']());}catch(_0x388247){_0x503936['push'](_0x503936['shift']());}}}(a80_0x61e2,0xeebbb));import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';function a80_0x61e2(){const _0x285c25=['1368vIeSpx','8UamXtt','4197642OBurqT','774081nWnhpr','1528520vfyAYo','1158744HfFuNC','10992uduCLe','2KywSoN','7479906sRYvLa','29824510UGnKLw'];a80_0x61e2=function(){return _0x285c25;};return a80_0x61e2();}export const menuDefinitions=[menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xda3d7b,_0x48242f){const _0x2683af=a81_0x1458,_0x37a2f1=_0xda3d7b();while(!![]){try{const _0x35ca7f=parseInt(_0x2683af(0xf5))/0x1+parseInt(_0x2683af(0xfe))/0x2+parseInt(_0x2683af(0x109))/0x3*(parseInt(_0x2683af(0x10b))/0x4)+-parseInt(_0x2683af(0xf0))/0x5+-parseInt(_0x2683af(0xf7))/0x6+-parseInt(_0x2683af(0x102))/0x7*(parseInt(_0x2683af(0xef))/0x8)+parseInt(_0x2683af(0x104))/0x9;if(_0x35ca7f===_0x48242f)break;else _0x37a2f1['push'](_0x37a2f1['shift']());}catch(_0x23f4b9){_0x37a2f1['push'](_0x37a2f1['shift']());}}}(a81_0x1fb8,0x20af3));function strWidth(_0x10637c){const _0x55433d=a81_0x1458;let _0x3242f6=0x0;for(const _0x929c61 of _0x10637c){_0x3242f6+=/[\u4e00-\u9fa5]/[_0x55433d(0x10a)](_0x929c61)?0x2:0x1;}return _0x3242f6;}function a81_0x1fb8(){const _0x23d072=['522567goXbfO','online','showOnline','join','\x20\x20Affected\x20menus:\x20','3993BICRHj','test','496PuqbPl','\x20\x20\x20\x20•\x20','176pSJSyP','862790cARnpB','Local','length','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','repeat','253995RsqyYE','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','361626GqSEOM','\x20\x20No\x20pages\x20to\x20sync.','push','local','map','label','Platform','166316ZkAvFA','\x20\x20\x20\x20CSS:\x20','Menu\x20Name','(unchanged)','61586CjITtn','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.'];a81_0x1fb8=function(){return _0x23d072;};return a81_0x1fb8();}function a81_0x1458(_0x2c654a,_0x4b7b8d){_0x2c654a=_0x2c654a-0xef;const _0x1fb817=a81_0x1fb8();let _0x1458d7=_0x1fb817[_0x2c654a];return _0x1458d7;}function padRight(_0x56073b,_0x525c87){const _0x347b6f=a81_0x1458,_0x5e30b4=strWidth(_0x56073b);return _0x56073b+'\x20'[_0x347b6f(0xf4)](Math['max'](0x0,_0x525c87-_0x5e30b4));}export function renderCompareTable(_0xe67b60,_0x134dfa={}){const _0x44b2a9=a81_0x1458;if(_0xe67b60[_0x44b2a9(0xf2)]===0x0)return'';const _0xd53553=_0x134dfa[_0x44b2a9(0x106)]??!![],_0x214f61=Math['max'](0x1e,..._0xe67b60[_0x44b2a9(0xfb)](_0x3974d4=>strWidth(_0x3974d4['label']))),_0x4585f6=0x4,_0x48dd6f=[],_0x829a8='\x20\x20'+padRight(_0x44b2a9(0x100),_0x214f61),_0x1f2e79=padRight(_0x44b2a9(0xf1),_0x4585f6),_0xa140c4=_0xd53553?'\x20\x20'+padRight(_0x44b2a9(0xfd),_0x4585f6):'';_0x48dd6f[_0x44b2a9(0xf9)](_0x829a8+'\x20\x20'+_0x1f2e79+(_0xd53553?_0xa140c4:'')),_0x48dd6f['push']('\x20\x20'+'─'[_0x44b2a9(0xf4)](_0x214f61)+'\x20\x20'+'─'[_0x44b2a9(0xf4)](_0x4585f6)+(_0xd53553?'\x20\x20'+'─'['repeat'](_0x4585f6):''));for(const _0x2354a1 of _0xe67b60){const _0xd86513=padRight(_0x2354a1[_0x44b2a9(0xfc)],_0x214f61),_0x3dddf9=_0x2354a1[_0x44b2a9(0xfa)]?'✓':'✗',_0x457a33=padRight(_0x3dddf9,_0x4585f6);let _0x4bd395='\x20\x20'+_0xd86513+'\x20\x20'+_0x457a33;if(_0xd53553){const _0x3bb969=_0x2354a1[_0x44b2a9(0x105)]?'✓':'✗';_0x4bd395+='\x20\x20'+padRight(_0x3bb969,_0x4585f6);}_0x48dd6f[_0x44b2a9(0xf9)](_0x4bd395);}return _0x48dd6f[_0x44b2a9(0x107)]('\x0a');}export function renderSyncSummary(_0x38eb9f,_0x33a537){const _0xdd622b=a81_0x1458;if(_0x38eb9f[_0xdd622b(0xf2)]===0x0)return _0x33a537?_0xdd622b(0xf6):_0xdd622b(0xf8);const _0x5f1b0f=['\x20\x20'+_0x38eb9f[_0xdd622b(0xf2)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x41cfac of _0x38eb9f){_0x5f1b0f[_0xdd622b(0xf9)](_0xdd622b(0x10c)+_0x41cfac[_0xdd622b(0xfc)]+'\x20('+_0x41cfac['path']+')');}return _0x5f1b0f['join']('\x0a');}export function renderUpdateSummary(_0x56fe22,_0x388e4e){const _0x1cbdb0=a81_0x1458;if(_0x56fe22[_0x1cbdb0(0xf2)]===0x0)return _0x1cbdb0(0x103);const _0xf873a9=['\x20\x20'+_0x56fe22[_0x1cbdb0(0xf2)]+_0x1cbdb0(0xf3),'\x20\x20\x20\x20JS:\x20\x20'+(_0x388e4e[0x0]??'(unchanged)'),_0x1cbdb0(0xff)+(_0x388e4e[0x1]??_0x1cbdb0(0x101)),'',_0x1cbdb0(0x108)+_0x56fe22[_0x1cbdb0(0x107)](',\x20')];return _0xf873a9[_0x1cbdb0(0x107)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1617b9,_0x4a9d80){var _0x575625=a82_0x3aad,_0x5905c1=_0x1617b9();while(!![]){try{var _0x321a53=parseInt(_0x575625(0x1e6))/0x1*(-parseInt(_0x575625(0x1e9))/0x2)+-parseInt(_0x575625(0x1e2))/0x3+-parseInt(_0x575625(0x1ea))/0x4+parseInt(_0x575625(0x1e3))/0x5*(parseInt(_0x575625(0x1e8))/0x6)+parseInt(_0x575625(0x1e7))/0x7+parseInt(_0x575625(0x1e5))/0x8+parseInt(_0x575625(0x1e4))/0x9;if(_0x321a53===_0x4a9d80)break;else _0x5905c1['push'](_0x5905c1['shift']());}catch(_0x5a3e54){_0x5905c1['push'](_0x5905c1['shift']());}}}(a82_0x1f19,0xa227b));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';function a82_0x3aad(_0x4c08b3,_0x13b914){_0x4c08b3=_0x4c08b3-0x1e2;var _0x1f1994=a82_0x1f19();var _0x3aad85=_0x1f1994[_0x4c08b3];return _0x3aad85;}export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';function a82_0x1f19(){var _0x5880b1=['690zlYHOx','1611244Rxicdm','1573940pgkhUb','3516549qXlnsg','43145JDEfMm','5127741ouRcUA','8448744ZPFuJV','1SYLJiu','2921100nzwTgC'];a82_0x1f19=function(){return _0x5880b1;};return a82_0x1f19();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x21eba7,_0x397505){const _0x2350c0=a83_0x40a7,_0x5b2f9e=_0x21eba7();while(!![]){try{const _0x18d233=-parseInt(_0x2350c0(0x145))/0x1+-parseInt(_0x2350c0(0x124))/0x2+parseInt(_0x2350c0(0x129))/0x3*(-parseInt(_0x2350c0(0x127))/0x4)+-parseInt(_0x2350c0(0x143))/0x5+-parseInt(_0x2350c0(0x131))/0x6+-parseInt(_0x2350c0(0x130))/0x7+parseInt(_0x2350c0(0x13e))/0x8;if(_0x18d233===_0x397505)break;else _0x5b2f9e['push'](_0x5b2f9e['shift']());}catch(_0x1a2563){_0x5b2f9e['push'](_0x5b2f9e['shift']());}}}(a83_0x1787,0x3031f));import a83_0x317306 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a83_0x419e26 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x44f8f3){const _0x58e084=a83_0x40a7;return _0x44f8f3[_0x58e084(0x148)](_0x887d2f=>{const _0x5c981b=_0x58e084;if(_0x887d2f?.[_0x5c981b(0x12c)]===_0x5c981b(0x138))throw CliErrors[_0x5c981b(0x123)](_0x5c981b(0x135));throw _0x887d2f;});}export function startSpinner(_0x2be1a9){const _0x1afe22=a83_0x40a7;return a83_0x419e26({'text':_0x2be1a9,'color':_0x1afe22(0x12b)})[_0x1afe22(0x146)]();}export function stopSpinner(_0x120237,_0x73a509,_0x4ae24c){const _0x3506c2=a83_0x40a7;_0x4ae24c?_0x120237[_0x3506c2(0x140)](_0x73a509):_0x120237['fail'](_0x73a509);}export async function askConfirm(_0x18d94a){return onCancel(confirm({'message':_0x18d94a,'theme':{'prefix':''}}));}function a83_0x1787(){const _0x513890=['[new]','697580ApFqYQ','trim','142773gweuCl','start','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','catch','[already\x20on\x20platform]','red','has','CSS\x20URL\x20check\x20failed','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','cancelled','363160eacdJx','JS\x20URL\x20check\x20failed','JS\x20URL\x20checked','1412396qQEKUo','test','3uAzUAc','gray','cyan','name','isTTY','CSS\x20URL\x20checked','\x20\x20Checking\x20JS\x20URL\x20reachability...','258412hQfXPP','1722846vtAFCS','\x20\x20Checking\x20CSS\x20URL\x20reachability...','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','Cancelled.','green','label','ExitPromptError','error','\x20\x20JS\x20URL:','No\x20local\x20pages\x20found.','path','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','10707456oIrVLK','\x20\x20CSS\x20URL:','succeed','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'];a83_0x1787=function(){return _0x513890;};return a83_0x1787();}export async function askJsUrl(_0x56694d){const _0x1a1452=a83_0x40a7;while(!![]){const _0x572c09=await onCancel(input({'message':_0x1a1452(0x13a),'default':_0x56694d,'theme':{'prefix':''}}));if(_0x572c09[_0x1a1452(0x144)]()==='')throw CliErrors['cancelled'](_0x1a1452(0x135));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x1a1452(0x128)](_0x572c09[_0x1a1452(0x144)]())){console[_0x1a1452(0x139)](a83_0x317306[_0x1a1452(0x14a)](_0x1a1452(0x141)));continue;}const _0x58ea4c=startSpinner(_0x1a1452(0x12f));try{const _0x1bee06=await isUrlReachable(_0x572c09[_0x1a1452(0x144)]());stopSpinner(_0x58ea4c,_0x1a1452(0x126),_0x1bee06);if(!_0x1bee06){console['error'](a83_0x317306[_0x1a1452(0x14a)](_0x1a1452(0x134)));continue;}return _0x572c09[_0x1a1452(0x144)]();}catch(_0x42c014){stopSpinner(_0x58ea4c,_0x1a1452(0x125),![]);throw _0x42c014;}}}export async function askCssUrl(_0x147cc7){const _0x3b1dc8=a83_0x40a7;while(!![]){const _0x53d8bc=await onCancel(input({'message':_0x3b1dc8(0x13f),'default':_0x147cc7,'theme':{'prefix':''}}));if(_0x53d8bc[_0x3b1dc8(0x144)]()==='')throw CliErrors['cancelled'](_0x3b1dc8(0x135));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x3b1dc8(0x128)](_0x53d8bc[_0x3b1dc8(0x144)]())){console[_0x3b1dc8(0x139)](a83_0x317306['red'](_0x3b1dc8(0x133)));continue;}const _0x3d641e=startSpinner(_0x3b1dc8(0x132));try{const _0x2906d0=await isUrlReachable(_0x53d8bc[_0x3b1dc8(0x144)]());stopSpinner(_0x3d641e,_0x3b1dc8(0x12e),_0x2906d0);if(!_0x2906d0){console['error'](a83_0x317306[_0x3b1dc8(0x14a)](_0x3b1dc8(0x147)));continue;}return _0x53d8bc[_0x3b1dc8(0x144)]();}catch(_0x279d06){stopSpinner(_0x3d641e,_0x3b1dc8(0x121),![]);throw _0x279d06;}}}function a83_0x40a7(_0xce7b62,_0x361e7a){_0xce7b62=_0xce7b62-0x120;const _0x1787e8=a83_0x1787();let _0x40a72c=_0x1787e8[_0xce7b62];return _0x40a72c;}export async function selectPages(_0x3ecc53,_0x333ff8,_0x3bade2){const _0x58f049=a83_0x40a7,_0x127384=_0x3ecc53['map'](_0x3fd00e=>({'name':_0x3fd00e[_0x58f049(0x137)]+'\x20\x20'+(_0x333ff8[_0x58f049(0x120)](_0x3fd00e[_0x58f049(0x13c)])?a83_0x317306[_0x58f049(0x12a)](_0x58f049(0x149)):a83_0x317306[_0x58f049(0x136)](_0x58f049(0x142))),'value':_0x3fd00e[_0x58f049(0x137)],'checked':_0x3bade2?_0x3bade2['includes'](_0x3fd00e[_0x58f049(0x137)]):!_0x333ff8['has'](_0x3fd00e[_0x58f049(0x13c)])}));if(_0x127384['length']===0x0)throw new Error(_0x58f049(0x13b));const _0x35fc67=await onCancel(checkbox({'message':_0x58f049(0x122),'choices':_0x127384,'loop':![],'theme':{'prefix':''}}));if(_0x35fc67['length']===0x0)throw new Error('No\x20menus\x20selected.');return _0x3ecc53['filter'](_0x3cf90a=>_0x35fc67['includes'](_0x3cf90a[_0x58f049(0x137)]));}export function isInteractive(){const _0x3b7d96=a83_0x40a7;return process['stdin'][_0x3b7d96(0x12d)]===!![];}export function requireInteractive(){const _0x4ccf65=a83_0x40a7;if(!isInteractive())throw new Error('This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20'+_0x4ccf65(0x13d));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a84_0x1952fc=a84_0x434c;function a84_0x434c(_0x1aa12d,_0x46e31c){_0x1aa12d=_0x1aa12d-0x160;const _0x47b800=a84_0x47b8();let _0x434c9e=_0x47b800[_0x1aa12d];return _0x434c9e;}function a84_0x47b8(){const _0xfbd52=['694468bRVzfX','185rbgehD','match','8XlCGTn','15301uaPKGw','slice','130098BJwzCU','push','12LhiKQk','split','replaceAll','replace','cwd','3362400zYblXw','6852GrIeIp','918913LOTcVf','isDirectory','index.tsx','utf-8','join','2JkFriy','trim','path','forEach','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','filter','endsWith','3100851apNatc','121471xYCnTi'];a84_0x47b8=function(){return _0xfbd52;};return a84_0x47b8();}(function(_0x4d9c88,_0x19fc2e){const _0x31e089=a84_0x434c,_0xd0d85f=_0x4d9c88();while(!![]){try{const _0x641223=parseInt(_0x31e089(0x163))/0x1*(-parseInt(_0x31e089(0x168))/0x2)+-parseInt(_0x31e089(0x179))/0x3*(-parseInt(_0x31e089(0x171))/0x4)+-parseInt(_0x31e089(0x172))/0x5*(-parseInt(_0x31e089(0x177))/0x6)+parseInt(_0x31e089(0x170))/0x7*(parseInt(_0x31e089(0x174))/0x8)+parseInt(_0x31e089(0x16f))/0x9+parseInt(_0x31e089(0x161))/0xa+-parseInt(_0x31e089(0x175))/0xb*(parseInt(_0x31e089(0x162))/0xc);if(_0x641223===_0x19fc2e)break;else _0xd0d85f['push'](_0xd0d85f['shift']());}catch(_0x25df09){_0xd0d85f['push'](_0xd0d85f['shift']());}}}(a84_0x47b8,0x759a1));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a84_0x1952fc(0x160)](),'src/pages');export function extractTitleFromComment(_0xf3592c){const _0x3d9561=a84_0x1952fc;try{const _0x29f799=readFileSync(_0xf3592c,_0x3d9561(0x166)),_0x20c4d7=_0x29f799[_0x3d9561(0x173)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x20c4d7&&_0x20c4d7[0x1]){const _0x2d075a=_0x20c4d7[0x1],_0x20edf7=_0x2d075a[_0x3d9561(0x173)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x20edf7&&_0x20edf7[0x1])return _0x20edf7[0x1][_0x3d9561(0x169)]();}let _0x1fed2b=null;const _0x1cdd4b=_0x29f799[_0x3d9561(0x173)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x1cdd4b&&_0x1cdd4b[0x1]&&(_0x1fed2b=_0x1cdd4b[0x1]);if(!_0x1fed2b){const _0x48fe1c=_0x29f799[_0x3d9561(0x173)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x48fe1c&&_0x48fe1c[0x1]&&(_0x1fed2b=_0x48fe1c[0x1]);}if(_0x1fed2b){const _0x334985=new RegExp('\x5cb'+_0x1fed2b+_0x3d9561(0x16c)),_0x214d00=_0x29f799[_0x3d9561(0x173)](_0x334985);if(_0x214d00&&_0x214d00[0x1])return _0x214d00[0x1];return _0x1fed2b;}return null;}catch(_0x537abf){return null;}}export function getLocalPages(_0x43fd43=pagesDir,_0x3f2f5d=pagesDir){const _0x3d802a=a84_0x1952fc;let _0x46255a=[];const _0x4e8b54=readdirSync(_0x43fd43);return _0x4e8b54[_0x3d802a(0x16b)](_0x26aa27=>{const _0x1db494=_0x3d802a,_0x538a2a=join(_0x43fd43,_0x26aa27),_0x25862b=statSync(_0x538a2a);if(_0x25862b&&_0x25862b[_0x1db494(0x164)]())_0x46255a=_0x46255a['concat'](getLocalPages(_0x538a2a,_0x3f2f5d));else{if(_0x26aa27[_0x1db494(0x16e)]('.tsx')){let _0x35a430=relative(_0x3f2f5d,_0x538a2a);_0x35a430[_0x1db494(0x16e)](_0x1db494(0x165))?_0x35a430=_0x35a430[_0x1db494(0x17c)](/index\.tsx$/,''):_0x35a430=_0x35a430['replace'](/\.tsx$/,'');_0x35a430['endsWith'](sep)&&(_0x35a430=_0x35a430[_0x1db494(0x176)](0x0,-0x1));const _0x1af2cb=_0x35a430[_0x1db494(0x17a)](sep)[_0x1db494(0x167)]('/'),_0x5a9061=extractTitleFromComment(_0x538a2a),_0x39f7c8=_0x5a9061||_0x1af2cb;_0x46255a[_0x1db494(0x178)]({'path':_0x1af2cb[_0x1db494(0x17b)]('$',':'),'label':_0x39f7c8});}}}),_0x46255a[_0x3d802a(0x16d)](_0x4e6be6=>_0x4e6be6[_0x3d802a(0x16a)]!=='');}
|