@lovrabet/rabetbase-cli 2.1.10-beta.4 → 2.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/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_0x1434(){const _0x4b89b8=['num','delete','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','279088PBITFF','147105AYKVcC','24VbGNkb','368990yrsAyR','376ShlwFu','1903mwKAsX','237JyEybE','456411dxBGgo','108730YgSusm','11673DNSKjD','30884qTitiE'];a66_0x1434=function(){return _0x4b89b8;};return a66_0x1434();}const a66_0x19a1c1=a66_0x4c45;(function(_0x1dedfc,_0x2ce6db){const _0x20c052=a66_0x4c45,_0x392922=_0x1dedfc();while(!![]){try{const _0x31b910=-parseInt(_0x20c052(0x10b))/0x1+-parseInt(_0x20c052(0x104))/0x2+-parseInt(_0x20c052(0x10a))/0x3*(parseInt(_0x20c052(0x10e))/0x4)+parseInt(_0x20c052(0x107))/0x5*(-parseInt(_0x20c052(0x106))/0x6)+-parseInt(_0x20c052(0x105))/0x7+parseInt(_0x20c052(0x108))/0x8*(parseInt(_0x20c052(0x10d))/0x9)+parseInt(_0x20c052(0x10c))/0xa*(parseInt(_0x20c052(0x109))/0xb);if(_0x31b910===_0x2ce6db)break;else _0x392922['push'](_0x392922['shift']());}catch(_0x37ce37){_0x392922['push'](_0x392922['shift']());}}}(a66_0x1434,0x6681b));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a66_0x4c45(_0x243f72,_0x4592ec){_0x243f72=_0x243f72-0x101;const _0x1434dd=a66_0x1434();let _0x4c45cf=_0x1434dd[_0x243f72];return _0x4c45cf;}export const dbDelete={'service':'db','command':a66_0x19a1c1(0x102),'description':a66_0x19a1c1(0x103),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x238c17){const _0x1ecd55=a66_0x19a1c1,_0x1b7a30=_0x238c17[_0x1ecd55(0x101)]('id');return await deleteDbLink(_0x1b7a30),{'ok':!![],'data':{'id':_0x1b7a30,'deleted':!![]},'message':'Deleted\x20db\x20link\x20'+_0x1b7a30};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x327378=a67_0x3bc3;(function(_0x3f13d,_0x3d91b9){const _0x6d966d=a67_0x3bc3,_0x4c5877=_0x3f13d();while(!![]){try{const _0xb83144=-parseInt(_0x6d966d(0x1fc))/0x1*(parseInt(_0x6d966d(0x1fe))/0x2)+-parseInt(_0x6d966d(0x1fd))/0x3*(parseInt(_0x6d966d(0x1f4))/0x4)+parseInt(_0x6d966d(0x200))/0x5*(-parseInt(_0x6d966d(0x1f8))/0x6)+parseInt(_0x6d966d(0x1f9))/0x7*(parseInt(_0x6d966d(0x1f6))/0x8)+-parseInt(_0x6d966d(0x1fa))/0x9*(-parseInt(_0x6d966d(0x1f2))/0xa)+parseInt(_0x6d966d(0x1ee))/0xb+parseInt(_0x6d966d(0x1ef))/0xc*(parseInt(_0x6d966d(0x1fb))/0xd);if(_0xb83144===_0x3d91b9)break;else _0x4c5877['push'](_0x4c5877['shift']());}catch(_0x2f8c13){_0x4c5877['push'](_0x4c5877['shift']());}}}(a67_0x5a37,0xb7463));import{getDbLinkInfo}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a67_0x3bc3(_0x5f5d96,_0x46e12e){_0x5f5d96=_0x5f5d96-0x1ee;const _0x5a37fa=a67_0x5a37();let _0x3bc371=_0x5a37fa[_0x5f5d96];return _0x3bc371;}import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':a67_0x327378(0x1f3),'description':a67_0x327378(0x1ff),'risk':a67_0x327378(0x1f0),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3ddbb2){const _0x5b37d2=a67_0x327378,_0x36ec6c=_0x3ddbb2[_0x5b37d2(0x1f5)]('id'),_0x2e8db4=await getDbLinkInfo(_0x36ec6c);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2e8db4),'message':_0x5b37d2(0x1f7)+_0x36ec6c+':\x20'+_0x2e8db4[_0x5b37d2(0x1f1)]};}};function a67_0x5a37(){const _0x57bab3=['660ioLvah','num','8aGAfJe','db\x20link\x20','6FDNybQ','6482595XOssAA','2478699YBlRWV','1388491bhTmWg','11EkxOdR','26346yVMlTa','170038iDEjLb','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','4865830kUcVCF','561374oBlnSd','228YjCpFa','read','dbName','40cuBOsk','detail'];a67_0x5a37=function(){return _0x57bab3;};return a67_0x5a37();}
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a68_0x2a63d8=a68_0x3e7f;(function(_0x54292c,_0x12c2c1){const _0x249115=a68_0x3e7f,_0x5c1f26=_0x54292c();while(!![]){try{const _0x257fb2=-parseInt(_0x249115(0x1f2))/0x1*(-parseInt(_0x249115(0x1f7))/0x2)+-parseInt(_0x249115(0x1fe))/0x3+-parseInt(_0x249115(0x1fd))/0x4+-parseInt(_0x249115(0x205))/0x5+parseInt(_0x249115(0x201))/0x6+-parseInt(_0x249115(0x203))/0x7+parseInt(_0x249115(0x1f6))/0x8;if(_0x257fb2===_0x12c2c1)break;else _0x5c1f26['push'](_0x5c1f26['shift']());}catch(_0x32c6dd){_0x5c1f26['push'](_0x5c1f26['shift']());}}}(a68_0x5db8,0x3d5be));function a68_0x3e7f(_0x27b7a3,_0x418f39){_0x27b7a3=_0x27b7a3-0x1f1;const _0x5db857=a68_0x5db8();let _0x3e7fb0=_0x5db857[_0x27b7a3];return _0x3e7fb0;}import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a68_0x5db8(){const _0x538956=['str','\x20row(s),\x20total\x20','5173944oNiwmD','8STkSEK','pagesize','read','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','Page\x20size','length','846064QLeHOC','580272fzAZWd','diff','appCode','680796CFgPNx','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','1096452lGeVPc','number','891015mWJFCL','num','57724AExuUg','table'];a68_0x5db8=function(){return _0x538956;};return a68_0x5db8();}export const dbDiff={'service':'db','command':a68_0x2a63d8(0x1ff),'description':a68_0x2a63d8(0x202),'risk':a68_0x2a63d8(0x1f9),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a68_0x2a63d8(0x1f3),'type':'string','description':a68_0x2a63d8(0x1fa)},{'name':'page','type':a68_0x2a63d8(0x204),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a68_0x2a63d8(0x1f8),'type':'number','description':a68_0x2a63d8(0x1fb),'default':0x14}],async 'execute'(_0x2a2b4f){const _0x10d156=a68_0x2a63d8,_0xc92bcd=_0x2a2b4f[_0x10d156(0x1f1)]('id'),_0x1debe2=_0x2a2b4f['num']('page',0x1)||0x1,_0x12745d=_0x2a2b4f[_0x10d156(0x1f1)](_0x10d156(0x1f8),0x14)||0x14,_0x130846=_0x2a2b4f[_0x10d156(0x1f4)](_0x10d156(0x1f3))||undefined,{totalCount:_0x922a73,tableList:_0xbd3ae9}=await getDbTableDiff(_0x2a2b4f[_0x10d156(0x200)],_0xc92bcd,{'pageIndex':_0x1debe2,'pageSize':_0x12745d,'tableName':_0x130846});return{'ok':!![],'data':{'dbLinkId':_0xc92bcd,'page':_0x1debe2,'pageSize':_0x12745d,'totalCount':_0x922a73,'tableList':_0xbd3ae9},'message':_0xbd3ae9[_0x10d156(0x1fc)]+_0x10d156(0x1f5)+_0x922a73+'\x20(db\x20link\x20'+_0xc92bcd+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a69_0x1aed(_0x501c80,_0x23c1e0){_0x501c80=_0x501c80-0x6f;const _0x439231=a69_0x4392();let _0x1aed0e=_0x439231[_0x501c80];return _0x1aed0e;}function a69_0x4392(){const _0x55959e=['900862ZfYOFz','22UFygId','372NWYgRO','210213uQAuMz','290WVJhJZ','8656728tMCLIF','100750ibTVwo','1gSkStg','4218809XNzfWr','4479qhFeBB','102GNCLst','1151704tdXFpL'];a69_0x4392=function(){return _0x55959e;};return a69_0x4392();}(function(_0x479c33,_0x542ee5){const _0x544a2a=a69_0x1aed,_0x469559=_0x479c33();while(!![]){try{const _0x1fa9d5=parseInt(_0x544a2a(0x7a))/0x1*(parseInt(_0x544a2a(0x73))/0x2)+-parseInt(_0x544a2a(0x70))/0x3*(parseInt(_0x544a2a(0x75))/0x4)+parseInt(_0x544a2a(0x79))/0x5*(parseInt(_0x544a2a(0x71))/0x6)+parseInt(_0x544a2a(0x6f))/0x7+-parseInt(_0x544a2a(0x72))/0x8+parseInt(_0x544a2a(0x76))/0x9*(parseInt(_0x544a2a(0x77))/0xa)+-parseInt(_0x544a2a(0x74))/0xb*(parseInt(_0x544a2a(0x78))/0xc);if(_0x1fa9d5===_0x542ee5)break;else _0x469559['push'](_0x469559['shift']());}catch(_0x114650){_0x469559['push'](_0x469559['shift']());}}}(a69_0x4392,0x54d1d));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';import{dbDelete}from'../../commands/db/delete.js';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
|
-
const
|
|
1
|
+
const a70_0x2f58b1=a70_0x52fe;(function(_0x4498a9,_0x5f0e40){const _0x580ad0=a70_0x52fe,_0x82fce9=_0x4498a9();while(!![]){try{const _0x459787=-parseInt(_0x580ad0(0x1b4))/0x1*(-parseInt(_0x580ad0(0x1a6))/0x2)+-parseInt(_0x580ad0(0x1b0))/0x3+-parseInt(_0x580ad0(0x1b1))/0x4*(parseInt(_0x580ad0(0x1a3))/0x5)+-parseInt(_0x580ad0(0x1a7))/0x6*(parseInt(_0x580ad0(0x1a5))/0x7)+parseInt(_0x580ad0(0x1af))/0x8+parseInt(_0x580ad0(0x1a8))/0x9+parseInt(_0x580ad0(0x1b3))/0xa;if(_0x459787===_0x5f0e40)break;else _0x82fce9['push'](_0x82fce9['shift']());}catch(_0x271867){_0x82fce9['push'](_0x82fce9['shift']());}}}(a70_0x3b83,0x8793d));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a70_0x2f58b1(0x1a2),'description':'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','risk':a70_0x2f58b1(0x1aa),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'page','type':a70_0x2f58b1(0x1ae),'description':a70_0x2f58b1(0x1b2),'default':0x1},{'name':a70_0x2f58b1(0x1ab),'type':'number','description':a70_0x2f58b1(0x19f),'default':0x64}],async 'execute'(_0x2e24fe){const _0x318cc0=a70_0x2f58b1,_0x44a0f3=_0x2e24fe[_0x318cc0(0x1ac)](_0x318cc0(0x1b5),0x1)||0x1,_0x83463c=_0x2e24fe['num']('pagesize',0x64)||0x64,{items:_0x3cb616,paging:_0x27cbc9}=await listDbLinks(_0x2e24fe[_0x318cc0(0x1a0)],{'currentPage':_0x44a0f3,'pageSize':_0x83463c}),_0x575176=sanitizeDbLinkList(_0x3cb616),_0x1f1507=_0x27cbc9?_0x27cbc9:{'currentPage':_0x44a0f3,'pageSize':_0x83463c,'rowsOnPage':_0x575176[_0x318cc0(0x1a4)],'totalCount':null,'note':_0x318cc0(0x1a1)};return{'ok':!![],'data':{'connections':_0x575176,'paging':_0x1f1507},'message':_0x318cc0(0x1a9)+_0x575176[_0x318cc0(0x1a4)]+_0x318cc0(0x1ad)};}};function a70_0x52fe(_0xacf8f3,_0x4a7963){_0xacf8f3=_0xacf8f3-0x19f;const _0x3b836d=a70_0x3b83();let _0x52fe36=_0x3b836d[_0xacf8f3];return _0x52fe36;}function a70_0x3b83(){const _0x452b9b=['240750mlKssx','length','644oOwDAH','207446QDwHbg','48036dXVMEB','2131839qFfDIv','Found\x20','read','pagesize','num','\x20database\x20connection(s)','number','975616QiGFNA','1019439rgZAAU','8BTikpP','Page\x20index\x20(1-based)','10579980nEWZEZ','3AQuhmc','page','Page\x20size','appCode','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','list'];a70_0x3b83=function(){return _0x452b9b;};return a70_0x3b83();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x579689,_0x3f9a89){const _0x99b893=a71_0x5ea4,_0x55fc18=_0x579689();while(!![]){try{const _0x2ed530=parseInt(_0x99b893(0x122))/0x1+-parseInt(_0x99b893(0x13e))/0x2*(parseInt(_0x99b893(0x13b))/0x3)+parseInt(_0x99b893(0x13a))/0x4+parseInt(_0x99b893(0x136))/0x5*(-parseInt(_0x99b893(0x140))/0x6)+-parseInt(_0x99b893(0x138))/0x7+-parseInt(_0x99b893(0x13d))/0x8*(-parseInt(_0x99b893(0x128))/0x9)+-parseInt(_0x99b893(0x126))/0xa*(parseInt(_0x99b893(0x12b))/0xb);if(_0x2ed530===_0x3f9a89)break;else _0x55fc18['push'](_0x55fc18['shift']());}catch(_0x2d778a){_0x55fc18['push'](_0x55fc18['shift']());}}}(a71_0x322b,0xe1784));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x16710f){const _0x5387be=a71_0x5ea4,_0x4c7679=_0x16710f[_0x5387be(0x129)]();if(_0x4c7679===_0x5387be(0x133)||_0x4c7679===_0x5387be(0x139)||_0x4c7679===_0x5387be(0x12e))return!![];if(_0x4c7679[_0x5387be(0x125)]('secret')||_0x4c7679[_0x5387be(0x125)](_0x5387be(0x12c))||_0x4c7679[_0x5387be(0x125)](_0x5387be(0x132)))return!![];if(_0x4c7679[_0x5387be(0x125)]('privatekey')||_0x4c7679[_0x5387be(0x125)](_0x5387be(0x123)))return!![];if(_0x4c7679===_0x5387be(0x12a)||_0x4c7679===_0x5387be(0x13c)||_0x4c7679===_0x5387be(0x121))return!![];return![];}export function sanitizeDbLinkForOutput(_0x2fd7e7){const _0x25ca09=a71_0x5ea4,_0x4d95de={..._0x2fd7e7};for(const _0x48bc8d of Object[_0x25ca09(0x130)](_0x4d95de)){if(!shouldRedactKey(_0x48bc8d))continue;const _0x51828a=_0x4d95de[_0x48bc8d];_0x51828a!=null&&String(_0x51828a)[_0x25ca09(0x137)]>0x0&&(_0x4d95de[_0x48bc8d]=_0x25ca09(0x134));}return _0x4d95de;}export function sanitizeDbLinkList(_0x4f36f1){const _0x1d2b79=a71_0x5ea4;return _0x4f36f1[_0x1d2b79(0x13f)](_0xa826a=>sanitizeDbLinkForOutput(_0xa826a));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a71_0x322b(){const _0x4b6c76=['6XxSksX','jdbcurl','1688615TomtAp','accesskey','isFinite','includes','410PlQXYh','/data/er?dbId=','9oYLqWZ','toLowerCase','authorization','75603KSKRXH','token','number','dbpassword','/data/database','keys','https://app.lovrabet.com/app/','credential','password','[redacted]','trim','3325935aVEdlv','length','9005983aferww','passwd','4494172gjTvXw','123858uRJxsY','connectionstring','3419896qBapqb','4GPLgAO','map'];a71_0x322b=function(){return _0x4b6c76;};return a71_0x322b();}export function validateDbUrl(_0x354721){const _0x22b338=a71_0x5ea4,_0x45a341=_0x354721[_0x22b338(0x135)]();if(!_0x45a341)return![];return DB_URL_PATTERN['test'](_0x45a341);}function a71_0x5ea4(_0x5cade9,_0x2e39ae){_0x5cade9=_0x5cade9-0x121;const _0x322b77=a71_0x322b();let _0x5ea435=_0x322b77[_0x5cade9];return _0x5ea435;}export function buildDbPageLinks(_0x4750b0,_0x534520){const _0xd39bb4=a71_0x5ea4,_0x4d39f4=_0x4750b0?.[_0xd39bb4(0x135)]();if(!_0x4d39f4)return undefined;const _0xe7af69=typeof _0x534520===_0xd39bb4(0x12d)?String(_0x534520):String(_0x534520??'')[_0xd39bb4(0x135)]();if(!_0xe7af69)return undefined;const _0xf5141e=Number(_0xe7af69);if(!Number[_0xd39bb4(0x124)](_0xf5141e)||_0xf5141e<=0x0)return undefined;const _0x2b5f98=isDaily(normalizeEnv(getEnv()))?'https://daily.lovrabet.com/web-app/app/'+encodeURIComponent(_0x4d39f4):_0xd39bb4(0x131)+encodeURIComponent(_0x4d39f4),_0x5f2234=encodeURIComponent(String(_0xf5141e));return{'databasePage':_0x2b5f98+_0xd39bb4(0x12f),'erPage':_0x2b5f98+_0xd39bb4(0x127)+_0x5f2234};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x1e66a7=a72_0x55b1;(function(_0x269ca7,_0xefb2f){const _0x18968a=a72_0x55b1,_0x3f7880=_0x269ca7();while(!![]){try{const _0x17275e=parseInt(_0x18968a(0x18b))/0x1+-parseInt(_0x18968a(0x183))/0x2*(-parseInt(_0x18968a(0x192))/0x3)+-parseInt(_0x18968a(0x18d))/0x4*(-parseInt(_0x18968a(0x18e))/0x5)+-parseInt(_0x18968a(0x185))/0x6+-parseInt(_0x18968a(0x191))/0x7*(-parseInt(_0x18968a(0x184))/0x8)+-parseInt(_0x18968a(0x186))/0x9+parseInt(_0x18968a(0x18a))/0xa*(-parseInt(_0x18968a(0x187))/0xb);if(_0x17275e===_0xefb2f)break;else _0x3f7880['push'](_0x3f7880['shift']());}catch(_0x15dd0f){_0x3f7880['push'](_0x3f7880['shift']());}}}(a72_0x3c71,0xd5947));import{getDbAllTableList}from'../../core/api-client.js';function a72_0x55b1(_0x15d724,_0x38dfde){_0x15d724=_0x15d724-0x183;const _0x3c71cd=a72_0x3c71();let _0x55b111=_0x3c71cd[_0x15d724];return _0x55b111;}function a72_0x3c71(){const _0x13cb6b=['8836nhKryr','1095Vwqhbf','length','num','704403FaeRLn','2226513NXKDTJ','\x20table(s)\x20on\x20db\x20link\x20','4gmuuxh','32ValMYu','8243958jzUZnl','6484185uTCFDe','8156302SsLAFo','read','tables','10tItIlL','1340134MXGPiL','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)'];a72_0x3c71=function(){return _0x13cb6b;};return a72_0x3c71();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':a72_0x1e66a7(0x189),'description':a72_0x1e66a7(0x18c),'risk':a72_0x1e66a7(0x188),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4c6c55){const _0x2a08a4=a72_0x1e66a7,_0x5be482=_0x4c6c55[_0x2a08a4(0x190)]('id'),_0x4c271e=await getDbAllTableList(_0x4c6c55['appCode'],_0x5be482);return{'ok':!![],'data':{'dbLinkId':_0x5be482,'total':_0x4c271e[_0x2a08a4(0x18f)],'tables':_0x4c271e},'message':_0x4c271e[_0x2a08a4(0x18f)]+_0x2a08a4(0x193)+_0x5be482};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x171fca=a73_0x3d7d;(function(_0x7102a0,_0x5e53d8){const _0x3a269f=a73_0x3d7d,_0x3b6c20=_0x7102a0();while(!![]){try{const _0x1cd943=parseInt(_0x3a269f(0xce))/0x1*(-parseInt(_0x3a269f(0xc5))/0x2)+parseInt(_0x3a269f(0xbf))/0x3*(-parseInt(_0x3a269f(0xd0))/0x4)+parseInt(_0x3a269f(0xc9))/0x5*(-parseInt(_0x3a269f(0xd4))/0x6)+-parseInt(_0x3a269f(0xd1))/0x7+-parseInt(_0x3a269f(0xd2))/0x8*(-parseInt(_0x3a269f(0xc8))/0x9)+parseInt(_0x3a269f(0xcf))/0xa*(parseInt(_0x3a269f(0xbc))/0xb)+parseInt(_0x3a269f(0xc3))/0xc;if(_0x1cd943===_0x5e53d8)break;else _0x3b6c20['push'](_0x3b6c20['shift']());}catch(_0x3247b4){_0x3b6c20['push'](_0x3b6c20['shift']());}}}(a73_0x4e54,0x5b69b));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x2f4bd5){const _0x3fb430=a73_0x3d7d;if(_0x2f4bd5===!![]||_0x2f4bd5===![])return{'success':_0x2f4bd5};if(_0x2f4bd5===null||_0x2f4bd5===undefined)return{'type':typeof _0x2f4bd5};if(typeof _0x2f4bd5!==_0x3fb430(0xcc))return{'type':typeof _0x2f4bd5};const _0x3a4826=_0x2f4bd5,_0x4928bf=['success',_0x3fb430(0xc4),_0x3fb430(0xbe),_0x3fb430(0xbd),_0x3fb430(0xc7),_0x3fb430(0xc6)],_0x47b668={};for(const _0x426cd4 of _0x4928bf){if(_0x426cd4 in _0x3a4826)_0x47b668[_0x426cd4]=_0x3a4826[_0x426cd4];}return Object['keys'](_0x47b668)[_0x3fb430(0xc2)]===0x0&&(_0x47b668[_0x3fb430(0xcb)]=Object[_0x3fb430(0xcb)](_0x3a4826)[_0x3fb430(0xc0)](0x0,0x14)),_0x47b668;}export const dbTest={'service':'db','command':a73_0x171fca(0xcd),'description':a73_0x171fca(0xd3),'risk':a73_0x171fca(0xca),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x547c0a){const _0x50671e=a73_0x171fca,_0x15b5c5=_0x547c0a[_0x50671e(0xc1)]('id'),_0x5a3f38=await testDbLinkConnect(_0x15b5c5),_0x11ce49=_0x5a3f38===!![]||typeof _0x5a3f38==='object'&&_0x5a3f38!==null&&_0x5a3f38['success']===!![],_0x1423f8=summarizeTestConnectResult(_0x5a3f38);return{'ok':!![],'data':{'id':_0x15b5c5,'connected':Boolean(_0x11ce49),'result':_0x1423f8},'message':_0x11ce49?_0x50671e(0xbb)+_0x15b5c5:'Connection\x20check\x20finished\x20for\x20db\x20link\x20'+_0x15b5c5+'\x20(see\x20data.result)'};}};function a73_0x3d7d(_0x56d72b,_0x1c6f8f){_0x56d72b=_0x56d72b-0xbb;const _0x4e54c5=a73_0x4e54();let _0x3d7d82=_0x4e54c5[_0x56d72b];return _0x3d7d82;}function a73_0x4e54(){const _0x228d6d=['18400872PjDlMY','message','4LbfesY','data','msg','108IZhBnK','245grCtgb','read','keys','object','test','267145IwGyhu','2200uETpCF','648bvdCQd','1179514FCIVfJ','116504XXQiUA','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','66414UjUNQN','Connection\x20OK\x20for\x20db\x20link\x20','24497kZimPD','error','code','10713oCOWAx','slice','num','length'];a73_0x4e54=function(){return _0x228d6d;};return a73_0x4e54();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a74_0x98b432=a74_0x3ebe;(function(_0x575a82,_0x231fae){const _0x2f25d2=a74_0x3ebe,_0x4b272a=_0x575a82();while(!![]){try{const _0x3b2473=parseInt(_0x2f25d2(0x1e5))/0x1+parseInt(_0x2f25d2(0x1d0))/0x2*(parseInt(_0x2f25d2(0x1e2))/0x3)+-parseInt(_0x2f25d2(0x1db))/0x4*(-parseInt(_0x2f25d2(0x1e1))/0x5)+-parseInt(_0x2f25d2(0x1e6))/0x6*(parseInt(_0x2f25d2(0x1e8))/0x7)+parseInt(_0x2f25d2(0x1e4))/0x8+-parseInt(_0x2f25d2(0x1ee))/0x9+-parseInt(_0x2f25d2(0x1dc))/0xa;if(_0x3b2473===_0x231fae)break;else _0x4b272a['push'](_0x4b272a['shift']());}catch(_0x9e5ccb){_0x4b272a['push'](_0x4b272a['shift']());}}}(a74_0x1335,0x1bbc5));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';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';function a74_0x3ebe(_0x18029b,_0x17d84e){_0x18029b=_0x18029b-0x1cc;const _0x1335d6=a74_0x1335();let _0x3ebed4=_0x1335d6[_0x18029b];return _0x3ebed4;}function a74_0x1335(){const _0x3aa4bf=['138thJLPC','trim','username','New\x20host:port','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','num','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','string','New\x20connection\x20parameter\x20string','dburl','write','5152wUDzlq','1218530kNRcsg','dbName','validation','POST','update','445tQFRsa','7701Ytzldw','dbdesc','426184DnKBDk','97846nznuHu','444AilRzw','dbDesc','1715iUNSLi','dbname','New\x20description','New\x20database\x20name','New\x20username','dbParam','1703574cYiGgE','str','password','/smartapi/dblink/update','dbparam'];a74_0x1335=function(){return _0x3aa4bf;};return a74_0x1335();}export const dbUpdate={'service':'db','command':a74_0x98b432(0x1e0),'description':a74_0x98b432(0x1d4),'risk':a74_0x98b432(0x1da),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a74_0x98b432(0x1e9),'type':a74_0x98b432(0x1d7),'description':a74_0x98b432(0x1eb)},{'name':'dburl','type':'string','description':a74_0x98b432(0x1d3)},{'name':a74_0x98b432(0x1d2),'type':a74_0x98b432(0x1d7),'description':a74_0x98b432(0x1ec)},{'name':a74_0x98b432(0x1cd),'type':'string','description':'New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API'},{'name':a74_0x98b432(0x1cf),'type':a74_0x98b432(0x1d7),'description':a74_0x98b432(0x1d8)},{'name':'dbdesc','type':a74_0x98b432(0x1d7),'description':a74_0x98b432(0x1ea)}],async 'validate'(_0x203987){const _0x424736=a74_0x98b432,_0x5be022=_0x203987[_0x424736(0x1cc)](_0x424736(0x1d9));if(_0x5be022&&!validateDbUrl(_0x5be022[_0x424736(0x1d1)]()))throw CliErrors[_0x424736(0x1de)]('Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22'+_0x5be022+'\x22');},async 'dryRun'(_0x38dc62){const _0x36c3f1=a74_0x98b432,_0x39edcd=_0x38dc62[_0x36c3f1(0x1d5)]('id'),_0x4ed9f1=await getDbLinkInfo(_0x39edcd),_0x2fa2cf={..._0x4ed9f1},_0x41bbcf=_0x38dc62[_0x36c3f1(0x1cc)](_0x36c3f1(0x1e9));if(_0x41bbcf)_0x2fa2cf[_0x36c3f1(0x1dd)]=_0x41bbcf;const _0x53603f=_0x38dc62[_0x36c3f1(0x1cc)]('dburl');if(_0x53603f)_0x2fa2cf['dbUrl']=_0x53603f['trim']();const _0x2f750a=_0x38dc62[_0x36c3f1(0x1cc)]('username');if(_0x2f750a)_0x2fa2cf[_0x36c3f1(0x1d2)]=_0x2f750a;const _0x4b7570=_0x38dc62[_0x36c3f1(0x1cc)](_0x36c3f1(0x1cd));if(_0x4b7570)_0x2fa2cf[_0x36c3f1(0x1cd)]=_0x4b7570;const _0x872fbf=_0x38dc62[_0x36c3f1(0x1cc)](_0x36c3f1(0x1cf));if(_0x872fbf)_0x2fa2cf[_0x36c3f1(0x1ed)]=_0x872fbf;const _0xb55747=_0x38dc62[_0x36c3f1(0x1cc)](_0x36c3f1(0x1e3));if(_0xb55747)_0x2fa2cf['dbDesc']=_0xb55747;const _0x6621c9=sanitizeDbLinkForOutput(_0x2fa2cf);return{'method':_0x36c3f1(0x1df),'url':_0x36c3f1(0x1ce),'body':_0x6621c9,'description':_0x36c3f1(0x1d6)};},async 'execute'(_0x28cc4c){const _0x173f02=a74_0x98b432,_0x75d308=_0x28cc4c[_0x173f02(0x1d5)]('id'),_0xd94b92=await getDbLinkInfo(_0x75d308),_0x2d589b={..._0xd94b92},_0x31feeb=_0x28cc4c[_0x173f02(0x1cc)](_0x173f02(0x1e9));if(_0x31feeb)_0x2d589b['dbName']=_0x31feeb;const _0x5e60a4=_0x28cc4c[_0x173f02(0x1cc)](_0x173f02(0x1d9));if(_0x5e60a4)_0x2d589b['dbUrl']=_0x5e60a4[_0x173f02(0x1d1)]();const _0x45e9ba=_0x28cc4c['str'](_0x173f02(0x1d2));if(_0x45e9ba)_0x2d589b[_0x173f02(0x1d2)]=_0x45e9ba;const _0x32ca2a=_0x28cc4c[_0x173f02(0x1cc)](_0x173f02(0x1cd));if(_0x32ca2a)_0x2d589b[_0x173f02(0x1cd)]=_0x32ca2a;const _0x596d89=_0x28cc4c[_0x173f02(0x1cc)](_0x173f02(0x1cf));if(_0x596d89)_0x2d589b['dbParam']=_0x596d89;const _0x339692=_0x28cc4c[_0x173f02(0x1cc)](_0x173f02(0x1e3));if(_0x339692)_0x2d589b[_0x173f02(0x1e7)]=_0x339692;const {id:_0x547d55,entity:_0x25db4f}=normalizeEntityWithIdResponse(await updateDbLink(_0x2d589b));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x25db4f),'message':'Updated\x20db\x20link\x20'+(_0x547d55??_0x75d308)};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a75_0x8d96a8=a75_0x27b1;(function(_0x18d345,_0x442e66){const _0x43411a=a75_0x27b1,_0x286695=_0x18d345();while(!![]){try{const _0x5ae974=parseInt(_0x43411a(0x21d))/0x1+parseInt(_0x43411a(0x1c9))/0x2*(parseInt(_0x43411a(0x21a))/0x3)+parseInt(_0x43411a(0x20e))/0x4+-parseInt(_0x43411a(0x20f))/0x5+parseInt(_0x43411a(0x1f1))/0x6+-parseInt(_0x43411a(0x211))/0x7*(parseInt(_0x43411a(0x214))/0x8)+-parseInt(_0x43411a(0x217))/0x9;if(_0x5ae974===_0x442e66)break;else _0x286695['push'](_0x286695['shift']());}catch(_0x5da754){_0x286695['push'](_0x286695['shift']());}}}(a75_0x2660,0xa1c25));function a75_0x2660(){const _0x2f15be=['empty','green','1141592wIMhbk','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','message','7344792JyaxyP','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','5568MFMpNm','apps','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','135862TQOaLk','yellow','check','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','✓\x20Valid','\x20\x20─','1054UYqSDn','unknown','\x20\x20Auth','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','explicitAppName','✗\x20Invalid\x20JSON','doctor','(default)','red','\x20doctor','status','\x20\x20explicitAppName:\x20','log','riskLevel','version','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','appCode','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','keys','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(default:\x20','✗\x20Not\x20logged\x20in','(none)','locale','\x20\x20Config\x20Files','✓\x20Valid\x20JSON','appcode','(set,\x20length=','read','(no\x20file)','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Merged\x20Config','Project','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','repeat','accessKey','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1961178XcSFNM','gray','\x20\x20Apps','length','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','env','padEnd','value','slice','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','cookie','defaultApp','source','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','(not\x20found)','raw','pageSize','missing','\x20(default)','(not\x20set)','platform','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','3638992vuNdjn','78690YXqxqq','apiDir','42acFhyX'];a75_0x2660=function(){return _0x2f15be;};return a75_0x2660();}import a75_0x5c8c20 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';function a75_0x27b1(_0x4ff733,_0x5911d0){_0x4ff733=_0x4ff733-0x1c4;const _0x266080=a75_0x2660();let _0x27b13d=_0x266080[_0x4ff733];return _0x27b13d;}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(_0x2127e8){const _0x4287c5=a75_0x27b1,_0x376877=GIT_COMMIT!==_0x4287c5(0x1ca)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4287c5(0x1fb)](0x0,0xa)+')':VERSION,_0x22bc58=buildConfigFromFlags({}),_0x3d0723=getCookie();console[_0x4287c5(0x1d7)](),console['log'](a75_0x5c8c20['bold'](CLI_BIN_NAME+_0x4287c5(0x1d4))),console[_0x4287c5(0x1d7)](a75_0x5c8c20[_0x4287c5(0x1f2)]('─'[_0x4287c5(0x1ee)](0x32))),console['log'](_0x4287c5(0x1ed)+_0x376877),console['log'](_0x4287c5(0x20a)+process[_0x4287c5(0x1d9)]),console[_0x4287c5(0x1d7)](_0x4287c5(0x1ea)+process[_0x4287c5(0x209)]+'\x20'+process['arch']),console[_0x4287c5(0x1d7)](),console[_0x4287c5(0x1d7)](a75_0x5c8c20[_0x4287c5(0x1dd)](_0x4287c5(0x1e4))),console[_0x4287c5(0x1d7)](a75_0x5c8c20[_0x4287c5(0x1f2)](_0x4287c5(0x1c8)[_0x4287c5(0x1ee)](0x1e)));const _0x5dd8b7=getGlobalConfigPath(),_0xb1663a=getProjectConfigPath();console[_0x4287c5(0x1d7)](_0x4287c5(0x1dc)+(_0x5dd8b7||a75_0x5c8c20[_0x4287c5(0x1f2)]('(not\x20found)'))),console[_0x4287c5(0x1d7)](_0x4287c5(0x1c5)+(_0xb1663a||a75_0x5c8c20['gray'](_0x4287c5(0x203)))),console['log'](),console[_0x4287c5(0x1d7)](a75_0x5c8c20[_0x4287c5(0x1dd)]('\x20\x20Config\x20JSON')),console['log'](a75_0x5c8c20[_0x4287c5(0x1f2)]('\x20\x20─'[_0x4287c5(0x1ee)](0x1e)));const _0x56ae27=(_0x106672,_0x2b3fe0)=>{const _0x34909c=_0x4287c5;if(!_0x2b3fe0){console[_0x34909c(0x1d7)]('\x20\x20'+_0x106672[_0x34909c(0x1f9)](0x11)+'\x20'+a75_0x5c8c20[_0x34909c(0x1f2)](_0x34909c(0x1e9)));return;}const _0x14472e=inspectCliConfigJsonFile(_0x2b3fe0);if(_0x14472e[_0x34909c(0x1d5)]==='ok')console[_0x34909c(0x1d7)]('\x20\x20'+_0x106672['padEnd'](0x11)+'\x20'+a75_0x5c8c20['green'](_0x34909c(0x1e5)));else{if(_0x14472e[_0x34909c(0x1d5)]===_0x34909c(0x212))console[_0x34909c(0x1d7)]('\x20\x20'+_0x106672[_0x34909c(0x1f9)](0x11)+'\x20'+a75_0x5c8c20[_0x34909c(0x21e)](_0x34909c(0x1f5)));else _0x14472e['status']===_0x34909c(0x206)?console[_0x34909c(0x1d7)]('\x20\x20'+_0x106672[_0x34909c(0x1f9)](0x11)+'\x20'+a75_0x5c8c20[_0x34909c(0x1f2)]('(missing)')):(console[_0x34909c(0x1d7)]('\x20\x20'+_0x106672['padEnd'](0x11)+'\x20'+a75_0x5c8c20[_0x34909c(0x1d3)](_0x34909c(0x1d0))),console[_0x34909c(0x1d7)]('\x20\x20'+''[_0x34909c(0x1f9)](0x11)+'\x20'+a75_0x5c8c20['red'](_0x14472e[_0x34909c(0x216)])));}};_0x56ae27('Global',_0x5dd8b7),_0x56ae27(_0x4287c5(0x1ec),_0xb1663a),console[_0x4287c5(0x1d7)](),console[_0x4287c5(0x1d7)](a75_0x5c8c20[_0x4287c5(0x1dd)](_0x4287c5(0x1eb))),console[_0x4287c5(0x1d7)](a75_0x5c8c20[_0x4287c5(0x1f2)](_0x4287c5(0x1c8)[_0x4287c5(0x1ee)](0x1e))),console[_0x4287c5(0x1d7)](_0x4287c5(0x21c)+(_0x22bc58[_0x4287c5(0x1db)]||a75_0x5c8c20[_0x4287c5(0x1d3)](_0x4287c5(0x208)))),console[_0x4287c5(0x1d7)](_0x4287c5(0x1ce)+_0x22bc58['env']),console['log']('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x22bc58[_0x4287c5(0x1e3)]),console[_0x4287c5(0x1d7)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x22bc58[_0x4287c5(0x210)]),console['log'](_0x4287c5(0x1da)+(_0x22bc58['defaultApp']||a75_0x5c8c20[_0x4287c5(0x1f2)](_0x4287c5(0x1e2)))),console[_0x4287c5(0x1d7)](_0x4287c5(0x1f7)+(_0x22bc58[_0x4287c5(0x202)]||a75_0x5c8c20[_0x4287c5(0x1f2)](_0x4287c5(0x1e2)))),console[_0x4287c5(0x1d7)](_0x4287c5(0x1d6)+(_0x22bc58[_0x4287c5(0x1cf)]||a75_0x5c8c20[_0x4287c5(0x1f2)](_0x4287c5(0x1e2)))),console['log'](_0x4287c5(0x1f0)+(_0x22bc58[_0x4287c5(0x20b)]||a75_0x5c8c20[_0x4287c5(0x1f2)](_0x4287c5(0x1e0)+DEFAULT_CONFIG_VALUES['format']+')'))),console['log'](_0x4287c5(0x20d)+(_0x22bc58[_0x4287c5(0x205)]??a75_0x5c8c20['gray'](_0x4287c5(0x1d2)))),console[_0x4287c5(0x1d7)](_0x4287c5(0x1cc)+_0x22bc58[_0x4287c5(0x1d8)]),console[_0x4287c5(0x1d7)](_0x4287c5(0x20c)+_0x22bc58['verbose']),console[_0x4287c5(0x1d7)](_0x4287c5(0x1df)+(_0x22bc58[_0x4287c5(0x1fd)]?a75_0x5c8c20[_0x4287c5(0x213)](_0x4287c5(0x1e7)+_0x22bc58['cookie'][_0x4287c5(0x1f4)]+')'):_0x3d0723?a75_0x5c8c20[_0x4287c5(0x213)]('(set\x20via\x20file,\x20length='+_0x3d0723['length']+')'):a75_0x5c8c20[_0x4287c5(0x1f2)]('(none)')));const _0x5523fa=Object[_0x4287c5(0x1de)](_0x22bc58[_0x4287c5(0x21b)]);if(_0x5523fa[_0x4287c5(0x1f4)]>0x0){console[_0x4287c5(0x1d7)](),console['log'](a75_0x5c8c20['bold'](_0x4287c5(0x1f3))),console[_0x4287c5(0x1d7)](a75_0x5c8c20[_0x4287c5(0x1f2)](_0x4287c5(0x1c8)[_0x4287c5(0x1ee)](0x1e)));for(const _0x491c9d of _0x5523fa){const _0x3b641e=_0x22bc58[_0x4287c5(0x21b)][_0x491c9d],_0x8f4aac=_0x491c9d===_0x22bc58[_0x4287c5(0x1fe)],_0x4cda10=_0x491c9d===_0x22bc58['currentApp'],_0x1d0a7e=_0x4cda10?a75_0x5c8c20[_0x4287c5(0x213)](_0x4287c5(0x1c6)):'',_0x1c532e=_0x8f4aac?_0x4287c5(0x207):'';console[_0x4287c5(0x1d7)]('\x20\x20'+_0x491c9d+_0x1c532e+_0x1d0a7e),console[_0x4287c5(0x1d7)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x3b641e[_0x4287c5(0x1e6)]);const _0x595ce1=buildAppDoctorFields(_0x3b641e,{'env':_0x22bc58[_0x4287c5(0x1f8)],'apiDir':_0x22bc58[_0x4287c5(0x204)]['apiDir']||DEFAULT_CONFIG_VALUES[_0x4287c5(0x210)],'cookie':_0x22bc58[_0x4287c5(0x1fd)]||_0x3d0723||undefined,'accessKey':_0x22bc58[_0x4287c5(0x1ef)]});console[_0x4287c5(0x1d7)](_0x4287c5(0x201)+_0x595ce1['env'][_0x4287c5(0x1fa)]+'\x20\x20'+a75_0x5c8c20[_0x4287c5(0x1f2)]('('+_0x595ce1[_0x4287c5(0x1f8)][_0x4287c5(0x1ff)]+')')),console['log'](_0x4287c5(0x219)+_0x595ce1[_0x4287c5(0x210)][_0x4287c5(0x1fa)]+'\x20\x20'+a75_0x5c8c20[_0x4287c5(0x1f2)]('('+_0x595ce1[_0x4287c5(0x210)]['source']+')'));const _0x1b353c=_0x595ce1[_0x4287c5(0x1fd)][_0x4287c5(0x1fa)]?a75_0x5c8c20[_0x4287c5(0x213)]('(set,\x20length='+_0x595ce1[_0x4287c5(0x1fd)][_0x4287c5(0x1fa)][_0x4287c5(0x1f4)]+')'):a75_0x5c8c20[_0x4287c5(0x1f2)](_0x4287c5(0x1e2));console[_0x4287c5(0x1d7)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x1b353c+'\x20\x20'+a75_0x5c8c20['gray']('('+_0x595ce1[_0x4287c5(0x1fd)][_0x4287c5(0x1ff)]+')'));const _0x5e5afb=_0x595ce1[_0x4287c5(0x1ef)]['value']?a75_0x5c8c20['green']('(set,\x20length='+_0x595ce1['accessKey'][_0x4287c5(0x1fa)][_0x4287c5(0x1f4)]+')'):a75_0x5c8c20[_0x4287c5(0x1f2)]('(none)');console[_0x4287c5(0x1d7)](_0x4287c5(0x218)+_0x5e5afb+'\x20\x20'+a75_0x5c8c20[_0x4287c5(0x1f2)]('('+_0x595ce1[_0x4287c5(0x1ef)]['source']+')'));}}console[_0x4287c5(0x1d7)](),console['log'](a75_0x5c8c20[_0x4287c5(0x1dd)]('\x20\x20API\x20Endpoints')),console[_0x4287c5(0x1d7)](a75_0x5c8c20[_0x4287c5(0x1f2)](_0x4287c5(0x1c8)['repeat'](0x1e))),console[_0x4287c5(0x1d7)](_0x4287c5(0x215)+getApiDomain()),console[_0x4287c5(0x1d7)](_0x4287c5(0x1f6)+getUserDomain()),console[_0x4287c5(0x1d7)](_0x4287c5(0x200)+getRuntimeDomain()),console[_0x4287c5(0x1d7)](),console[_0x4287c5(0x1d7)](a75_0x5c8c20['bold'](_0x4287c5(0x1cb))),console['log'](a75_0x5c8c20[_0x4287c5(0x1f2)](_0x4287c5(0x1c8)[_0x4287c5(0x1ee)](0x1e)));if(_0x3d0723){const _0x141b5c=await getIsSessionValid();console[_0x4287c5(0x1d7)](_0x4287c5(0x1cd)+(_0x141b5c?a75_0x5c8c20[_0x4287c5(0x213)](_0x4287c5(0x1c7)):a75_0x5c8c20[_0x4287c5(0x1d3)]('✗\x20Expired')));}else console[_0x4287c5(0x1d7)](_0x4287c5(0x1cd)+a75_0x5c8c20[_0x4287c5(0x1d3)](_0x4287c5(0x1e1)));return console[_0x4287c5(0x1d7)](),{'ok':!![]};}export const doctorDefinition={'service':a75_0x8d96a8(0x1d1),'command':a75_0x8d96a8(0x1c4),'description':a75_0x8d96a8(0x1fc),'risk':a75_0x8d96a8(0x1e8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a75_0x207cc1=a75_0x3a11;(function(_0xd46451,_0x200a42){const _0x3477cf=a75_0x3a11,_0x531756=_0xd46451();while(!![]){try{const _0x8ff98d=-parseInt(_0x3477cf(0x189))/0x1*(parseInt(_0x3477cf(0x164))/0x2)+parseInt(_0x3477cf(0x168))/0x3+parseInt(_0x3477cf(0x156))/0x4+-parseInt(_0x3477cf(0x18c))/0x5+-parseInt(_0x3477cf(0x1a2))/0x6*(-parseInt(_0x3477cf(0x1a7))/0x7)+parseInt(_0x3477cf(0x17f))/0x8*(parseInt(_0x3477cf(0x16d))/0x9)+-parseInt(_0x3477cf(0x16c))/0xa*(parseInt(_0x3477cf(0x170))/0xb);if(_0x8ff98d===_0x200a42)break;else _0x531756['push'](_0x531756['shift']());}catch(_0xba3347){_0x531756['push'](_0x531756['shift']());}}}(a75_0xc1cd,0x1ed72));import a75_0x463884 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';function a75_0xc1cd(){const _0x21b2e0=['904236wcNcYq','gray','accessKey','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','message','format','raw','cookie','Global','source','(none)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid\x20JSON','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','169034dmqnhv','(default:\x20','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','358869MVobIK','yellow','arch','✓\x20Valid','2253430OqRZZT','468UOkAQg','(set,\x20length=','\x20\x20Apps','11LjLsJL','\x20\x20Merged\x20Config','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','currentApp','appCode','apiDir','value','appcode','apps','slice','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','riskLevel','18896yBwdYC','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','missing','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','⚠\x20Empty\x20(treated\x20as\x20{})','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','platform','doctor','env','1jhyEBF','log','green','594715rgoIMa','\x20(default)','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','\x20\x20─','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','version','(missing)','repeat','padEnd','✗\x20Expired','empty','(default)','bold','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','length','red','✗\x20Invalid\x20JSON','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','(not\x20set)','(no\x20file)','173238sFBihp','✗\x20Not\x20logged\x20in','\x20\x20Config\x20JSON','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','21DVGIEu','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp'];a75_0xc1cd=function(){return _0x21b2e0;};return a75_0xc1cd();}import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a75_0x3a11(_0x3802f9,_0xaa0e2c){_0x3802f9=_0x3802f9-0x154;const _0xc1cd01=a75_0xc1cd();let _0x3a11a5=_0xc1cd01[_0x3802f9];return _0x3a11a5;}import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x26055a){const _0xec19a9=a75_0x3a11,_0x437c5c=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xec19a9(0x17c)](0x0,0xa)+')':VERSION,_0x5c6df6=buildConfigFromFlags({}),_0x2a73b9=getCookie();console[_0xec19a9(0x18a)](),console[_0xec19a9(0x18a)](a75_0x463884[_0xec19a9(0x198)](CLI_BIN_NAME+'\x20doctor')),console[_0xec19a9(0x18a)](a75_0x463884['gray']('─'['repeat'](0x32))),console[_0xec19a9(0x18a)]('\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20'+_0x437c5c),console['log'](_0xec19a9(0x180)+process[_0xec19a9(0x191)]),console[_0xec19a9(0x18a)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0xec19a9(0x186)]+'\x20'+process[_0xec19a9(0x16a)]),console['log'](),console[_0xec19a9(0x18a)](a75_0x463884[_0xec19a9(0x198)](_0xec19a9(0x1a6))),console['log'](a75_0x463884[_0xec19a9(0x157)](_0xec19a9(0x18f)[_0xec19a9(0x193)](0x1e)));const _0xcb94ec=getGlobalConfigPath(),_0x1aac0a=getProjectConfigPath();console[_0xec19a9(0x18a)](_0xec19a9(0x161)+(_0xcb94ec||a75_0x463884[_0xec19a9(0x157)]('(not\x20found)'))),console['log']('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1aac0a||a75_0x463884['gray'](_0xec19a9(0x181)))),console[_0xec19a9(0x18a)](),console[_0xec19a9(0x18a)](a75_0x463884[_0xec19a9(0x198)](_0xec19a9(0x1a4))),console['log'](a75_0x463884[_0xec19a9(0x157)](_0xec19a9(0x18f)[_0xec19a9(0x193)](0x1e)));const _0x1b9fed=(_0x4f5525,_0x36ede8)=>{const _0x1f2ade=_0xec19a9;if(!_0x36ede8){console[_0x1f2ade(0x18a)]('\x20\x20'+_0x4f5525[_0x1f2ade(0x194)](0x11)+'\x20'+a75_0x463884[_0x1f2ade(0x157)](_0x1f2ade(0x1a1)));return;}const _0x24ea0d=inspectCliConfigJsonFile(_0x36ede8);if(_0x24ea0d[_0x1f2ade(0x175)]==='ok')console[_0x1f2ade(0x18a)]('\x20\x20'+_0x4f5525[_0x1f2ade(0x194)](0x11)+'\x20'+a75_0x463884['green'](_0x1f2ade(0x162)));else{if(_0x24ea0d['status']===_0x1f2ade(0x196))console[_0x1f2ade(0x18a)]('\x20\x20'+_0x4f5525[_0x1f2ade(0x194)](0x11)+'\x20'+a75_0x463884[_0x1f2ade(0x169)](_0x1f2ade(0x184)));else _0x24ea0d[_0x1f2ade(0x175)]===_0x1f2ade(0x182)?console[_0x1f2ade(0x18a)]('\x20\x20'+_0x4f5525[_0x1f2ade(0x194)](0x11)+'\x20'+a75_0x463884[_0x1f2ade(0x157)](_0x1f2ade(0x192))):(console[_0x1f2ade(0x18a)]('\x20\x20'+_0x4f5525['padEnd'](0x11)+'\x20'+a75_0x463884[_0x1f2ade(0x19c)](_0x1f2ade(0x19d))),console[_0x1f2ade(0x18a)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a75_0x463884[_0x1f2ade(0x19c)](_0x24ea0d[_0x1f2ade(0x15a)])));}};_0x1b9fed(_0xec19a9(0x15e),_0xcb94ec),_0x1b9fed('Project',_0x1aac0a),console[_0xec19a9(0x18a)](),console[_0xec19a9(0x18a)](a75_0x463884[_0xec19a9(0x198)](_0xec19a9(0x171))),console[_0xec19a9(0x18a)](a75_0x463884[_0xec19a9(0x157)](_0xec19a9(0x18f)[_0xec19a9(0x193)](0x1e))),console[_0xec19a9(0x18a)]('\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5c6df6[_0xec19a9(0x177)]||a75_0x463884['red'](_0xec19a9(0x1a0)))),console[_0xec19a9(0x18a)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5c6df6[_0xec19a9(0x188)]),console[_0xec19a9(0x18a)](_0xec19a9(0x167)+_0x5c6df6['locale']),console['log'](_0xec19a9(0x154)+_0x5c6df6[_0xec19a9(0x178)]),console['log'](_0xec19a9(0x159)+(_0x5c6df6['defaultApp']||a75_0x463884['gray'](_0xec19a9(0x160)))),console['log']('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x5c6df6['currentApp']||a75_0x463884[_0xec19a9(0x157)]('(none)'))),console[_0xec19a9(0x18a)](_0xec19a9(0x19a)+(_0x5c6df6['explicitAppName']||a75_0x463884[_0xec19a9(0x157)](_0xec19a9(0x160)))),console[_0xec19a9(0x18a)](_0xec19a9(0x174)+(_0x5c6df6['format']||a75_0x463884[_0xec19a9(0x157)](_0xec19a9(0x165)+DEFAULT_CONFIG_VALUES[_0xec19a9(0x15b)]+')'))),console['log'](_0xec19a9(0x1a5)+(_0x5c6df6['pageSize']??a75_0x463884[_0xec19a9(0x157)](_0xec19a9(0x197)))),console[_0xec19a9(0x18a)](_0xec19a9(0x17d)+_0x5c6df6[_0xec19a9(0x17e)]),console['log'](_0xec19a9(0x199)+_0x5c6df6['verbose']),console[_0xec19a9(0x18a)](_0xec19a9(0x163)+(_0x5c6df6['cookie']?a75_0x463884['green'](_0xec19a9(0x16e)+_0x5c6df6[_0xec19a9(0x15d)][_0xec19a9(0x19b)]+')'):_0x2a73b9?a75_0x463884[_0xec19a9(0x18b)]('(set\x20via\x20file,\x20length='+_0x2a73b9[_0xec19a9(0x19b)]+')'):a75_0x463884[_0xec19a9(0x157)](_0xec19a9(0x160))));const _0x651341=Object['keys'](_0x5c6df6[_0xec19a9(0x17b)]);if(_0x651341[_0xec19a9(0x19b)]>0x0){console[_0xec19a9(0x18a)](),console['log'](a75_0x463884['bold'](_0xec19a9(0x16f))),console[_0xec19a9(0x18a)](a75_0x463884['gray'](_0xec19a9(0x18f)[_0xec19a9(0x193)](0x1e)));for(const _0x5b08e5 of _0x651341){const _0x43a4d3=_0x5c6df6[_0xec19a9(0x17b)][_0x5b08e5],_0x108b5b=_0x5b08e5===_0x5c6df6[_0xec19a9(0x155)],_0x33b8be=_0x5b08e5===_0x5c6df6[_0xec19a9(0x176)],_0x3bf547=_0x33b8be?a75_0x463884[_0xec19a9(0x18b)]('\x20←\x20current'):'',_0x3c958c=_0x108b5b?_0xec19a9(0x18d):'';console[_0xec19a9(0x18a)]('\x20\x20'+_0x5b08e5+_0x3c958c+_0x3bf547),console[_0xec19a9(0x18a)](_0xec19a9(0x190)+_0x43a4d3[_0xec19a9(0x17a)]);const _0x2690e3=buildAppDoctorFields(_0x43a4d3,{'env':_0x5c6df6[_0xec19a9(0x188)],'apiDir':_0x5c6df6[_0xec19a9(0x15c)]['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x5c6df6[_0xec19a9(0x15d)]||_0x2a73b9||undefined,'accessKey':_0x5c6df6[_0xec19a9(0x158)]});console[_0xec19a9(0x18a)](_0xec19a9(0x172)+_0x2690e3['env'][_0xec19a9(0x179)]+'\x20\x20'+a75_0x463884[_0xec19a9(0x157)]('('+_0x2690e3[_0xec19a9(0x188)]['source']+')')),console[_0xec19a9(0x18a)]('\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20'+_0x2690e3[_0xec19a9(0x178)][_0xec19a9(0x179)]+'\x20\x20'+a75_0x463884['gray']('('+_0x2690e3[_0xec19a9(0x178)][_0xec19a9(0x15f)]+')'));const _0x202b6a=_0x2690e3[_0xec19a9(0x15d)][_0xec19a9(0x179)]?a75_0x463884[_0xec19a9(0x18b)](_0xec19a9(0x16e)+_0x2690e3[_0xec19a9(0x15d)][_0xec19a9(0x179)][_0xec19a9(0x19b)]+')'):a75_0x463884[_0xec19a9(0x157)](_0xec19a9(0x160));console[_0xec19a9(0x18a)](_0xec19a9(0x18e)+_0x202b6a+'\x20\x20'+a75_0x463884[_0xec19a9(0x157)]('('+_0x2690e3[_0xec19a9(0x15d)][_0xec19a9(0x15f)]+')'));const _0x223635=_0x2690e3[_0xec19a9(0x158)][_0xec19a9(0x179)]?a75_0x463884[_0xec19a9(0x18b)](_0xec19a9(0x16e)+_0x2690e3[_0xec19a9(0x158)][_0xec19a9(0x179)][_0xec19a9(0x19b)]+')'):a75_0x463884['gray'](_0xec19a9(0x160));console['log'](_0xec19a9(0x166)+_0x223635+'\x20\x20'+a75_0x463884[_0xec19a9(0x157)]('('+_0x2690e3[_0xec19a9(0x158)][_0xec19a9(0x15f)]+')'));}}console[_0xec19a9(0x18a)](),console[_0xec19a9(0x18a)](a75_0x463884[_0xec19a9(0x198)](_0xec19a9(0x19f))),console['log'](a75_0x463884['gray'](_0xec19a9(0x18f)[_0xec19a9(0x193)](0x1e))),console[_0xec19a9(0x18a)](_0xec19a9(0x19e)+getApiDomain()),console['log'](_0xec19a9(0x185)+getUserDomain()),console[_0xec19a9(0x18a)](_0xec19a9(0x173)+getRuntimeDomain()),console[_0xec19a9(0x18a)](),console[_0xec19a9(0x18a)](a75_0x463884[_0xec19a9(0x198)]('\x20\x20Auth')),console['log'](a75_0x463884['gray']('\x20\x20─'['repeat'](0x1e)));if(_0x2a73b9){const _0x164f81=await getIsSessionValid();console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x164f81?a75_0x463884[_0xec19a9(0x18b)](_0xec19a9(0x16b)):a75_0x463884[_0xec19a9(0x19c)](_0xec19a9(0x195))));}else console[_0xec19a9(0x18a)](_0xec19a9(0x183)+a75_0x463884['red'](_0xec19a9(0x1a3)));return console[_0xec19a9(0x18a)](),{'ok':!![]};}export const doctorDefinition={'service':a75_0x207cc1(0x187),'command':'check','description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x27c902=a76_0x3dec;(function(_0x33be56,_0x153c01){const _0x31e803=a76_0x3dec,_0x440b1e=_0x33be56();while(!![]){try{const _0x343f3b=parseInt(_0x31e803(0x103))/0x1*(-parseInt(_0x31e803(0xe1))/0x2)+parseInt(_0x31e803(0xf5))/0x3*(parseInt(_0x31e803(0xef))/0x4)+-parseInt(_0x31e803(0xe7))/0x5+-parseInt(_0x31e803(0xec))/0x6*(parseInt(_0x31e803(0xf4))/0x7)+-parseInt(_0x31e803(0xe8))/0x8+-parseInt(_0x31e803(0xe3))/0x9+parseInt(_0x31e803(0x104))/0xa;if(_0x343f3b===_0x153c01)break;else _0x440b1e['push'](_0x440b1e['shift']());}catch(_0x10b043){_0x440b1e['push'](_0x440b1e['shift']());}}}(a76_0x51a1,0x45521));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';function a76_0x51a1(){const _0x1201d5=['检测到旧配置文件,正在自动升级...\x0a','Auto-confirm\x20prompts','Write\x20to\x20global\x20config\x20instead\x20of\x20project','valid','boolean','run','1QsEhtH','16668150WZcBiN','map','nonInteractive','validation','Target\x20environment','init','\x20config','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','appCode','\x0a✓\x20Successfully\x20initialized\x20','env','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','Use\x20`','201826DTFdmq','join','5014476rIdUNd','log','\x20\x20Config:\x20','production','37060SyHZur','3614440VsEMQE','project','string','\x20\x20Apps:\x20','39858PrYjRE','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','2936hqVavK','../../commands/project/init.js','str','global','yes','532MoBCLk','978QVKwiU','flagMissing','bool','defaultApp','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','appcode','Usage:\x20','toLocaleString'];a76_0x51a1=function(){return _0x1201d5;};return a76_0x51a1();}function a76_0x3dec(_0xa29d7c,_0x3416cf){_0xa29d7c=_0xa29d7c-0xd9;const _0x51a1e2=a76_0x51a1();let _0x3dec2f=_0x51a1e2[_0xa29d7c];return _0x3dec2f;}import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0xf51b31){return{'appCode':_0xf51b31,'appName':_0xf51b31};}function writeInitConfig(_0x3992e8,_0x5a1cdc,_0x4f7c77){const _0x142f73=a76_0x3dec,_0x59f939=resolveWriteConfigPath(_0x3992e8),_0x3af706=buildCanonicalProjectConfig({},{'appCodes':_0x5a1cdc[_0x142f73(0x105)](_0x436c76=>_0x436c76['appCode']),'env':_0x4f7c77,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x142f73(0xfc)]()}});writeConfigFile(_0x59f939,_0x3af706);const _0x4472b5=_0x3992e8===_0x142f73(0xf2)?'global':_0x142f73(0xe9);console[_0x142f73(0xe4)](_0x142f73(0xdd)+_0x4472b5+_0x142f73(0xda)),console['log'](_0x142f73(0xeb)+_0x5a1cdc[_0x142f73(0x105)](_0x4b99ca=>_0x4b99ca[_0x142f73(0xdc)])[_0x142f73(0xe2)](',\x20')),console[_0x142f73(0xe4)]('\x20\x20Default:\x20'+_0x3af706[_0x142f73(0xf8)]),console['log']('\x20\x20Env:\x20'+_0x3af706[_0x142f73(0xde)]),console[_0x142f73(0xe4)](_0x142f73(0xe5)+_0x59f939);}async function runSmartInit(_0x57bdce){const _0x56df86=a76_0x3dec,_0xb2d7d6=process['cwd'](),_0x1d0392=_0x57bdce['bool']('global')?_0x56df86(0xf2):_0x56df86(0xe9),_0x4a7187=_0x57bdce[_0x56df86(0xf1)](_0x56df86(0xde))||'production',_0x4eea12=_0x57bdce[_0x56df86(0xf1)](_0x56df86(0xfa))||undefined,_0x1d3632=_0x57bdce[_0x56df86(0xf7)](_0x56df86(0xe9));if(_0x1d3632){const {initConfig:_0x5609ba}=await import(_0x56df86(0xf0));return _0x5609ba({'appcode':_0x4eea12,'env':_0x4a7187,'autoYes':_0x57bdce['bool']('yes')});}if(_0x1d0392==='project'){const _0x7df00a=existsSync(resolve(_0xb2d7d6,NEW_CONFIG_NAME)),_0x17602c=LEGACY_CONFIG_NAMES['some'](_0x277fcb=>existsSync(resolve(_0xb2d7d6,_0x277fcb)));if(_0x17602c&&!_0x7df00a)return console['log'](_0x56df86(0xfd)),upgradeApp(_0x57bdce[_0x56df86(0x106)],{'yes':_0x57bdce[_0x56df86(0xf7)](_0x56df86(0xf3))});if(_0x7df00a)throw CliErrors[_0x56df86(0x107)](_0x56df86(0xf9),_0x56df86(0xe0)+CLI_BIN_NAME+_0x56df86(0xdf));}if(_0x4eea12){const _0x1eecd7=validateAppcode(_0x4eea12);if(!_0x1eecd7[_0x56df86(0x100)])throw CliErrors[_0x56df86(0x107)](_0x1eecd7['message']);writeInitConfig(_0x1d0392,[syntheticApp(_0x4eea12)],_0x4a7187);return;}if(_0x57bdce['nonInteractive'])throw CliErrors[_0x56df86(0xf6)]('appcode',_0x56df86(0xfb)+CLI_BIN_NAME+_0x56df86(0xee));const _0x55a872=getCookie(),_0x1bb19b=await selectMultipleApps(_0x55a872),_0x57068d=_0x1bb19b==='custom'?[syntheticApp(await promptCustomAppcode())]:_0x1bb19b;writeInitConfig(_0x1d0392,_0x57068d,_0x4a7187);}const initFlags=[{'name':a76_0x27c902(0xf2),'type':'boolean','description':a76_0x27c902(0xff),'default':![]},{'name':a76_0x27c902(0xde),'type':a76_0x27c902(0xea),'description':a76_0x27c902(0x108),'default':a76_0x27c902(0xe6),'enum':[...RABETBASE_ENV_VALUES]},{'name':a76_0x27c902(0xfa),'type':a76_0x27c902(0xea),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':a76_0x27c902(0xe9),'type':'boolean','description':a76_0x27c902(0xdb),'default':![]},{'name':a76_0x27c902(0xf3),'type':a76_0x27c902(0x101),'description':a76_0x27c902(0xfe),'default':![]}];export const initDefinitions=[{'service':a76_0x27c902(0xd9),'command':a76_0x27c902(0x102),'description':a76_0x27c902(0xed),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x29d806){return await runSmartInit(_0x29d806),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x7bf0ac,_0xeacb02){const _0x56c0b5=a77_0x2475,_0x53a3b1=_0x7bf0ac();while(!![]){try{const _0x655498=-parseInt(_0x56c0b5(0x13d))/0x1*(parseInt(_0x56c0b5(0x13e))/0x2)+-parseInt(_0x56c0b5(0x141))/0x3*(-parseInt(_0x56c0b5(0x139))/0x4)+parseInt(_0x56c0b5(0x13c))/0x5+-parseInt(_0x56c0b5(0x13f))/0x6*(parseInt(_0x56c0b5(0x138))/0x7)+parseInt(_0x56c0b5(0x13a))/0x8+parseInt(_0x56c0b5(0x13b))/0x9+parseInt(_0x56c0b5(0x140))/0xa;if(_0x655498===_0xeacb02)break;else _0x53a3b1['push'](_0x53a3b1['shift']());}catch(_0x2fa587){_0x53a3b1['push'](_0x53a3b1['shift']());}}}(a77_0x4803,0x70cd9));function a77_0x2475(_0x5a0910,_0x39ac14){_0x5a0910=_0x5a0910-0x138;const _0x480326=a77_0x4803();let _0x2475c2=_0x480326[_0x5a0910];return _0x2475c2;}import{issueReport}from'../../commands/issue/report.js';function a77_0x4803(){const _0x5a6a4b=['1430740EMONxY','690988nntftW','2GNBXno','6nBqpGL','3145710dohVXY','258SlpGJc','3190621CqPuiD','32808xhfhmq','2299632wKTqiB','137583yzIcBZ'];a77_0x4803=function(){return _0x5a6a4b;};return a77_0x4803();}export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a78_0x37a4(){const _0x27990d=['Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','message','46774yjJNfZ','write','627242NXaAVZ','description','length','50HjwaUd','Failed\x20to\x20report\x20platform\x20issue:\x20','flagMissing','81228vdbkkH','Issue\x20description\x20file\x20is\x20empty:\x20','15OuobBU','compress','str','inline','986954mdxscK','descriptionFilePath','title','64gQjUnF','validation','descriptionFile:\x20','308IkHlVm','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','trim','descriptionSource','50090lXKPNW','otel://','POST','report','Issue\x20description\x20cannot\x20be\x20empty.','issue.title','232796LnLhhr','issue.description','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','filter','description-file','1179zuxxdM','utf8','file','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','One-line\x20issue\x20summary','issue','descriptionSource:\x20','string','cwd','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','118290mFMvNh','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','join','Platform\x20issue\x20reported','apiError','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter'];a78_0x37a4=function(){return _0x27990d;};return a78_0x37a4();}const a78_0x5c5de3=a78_0x4758;(function(_0x5488c8,_0x5b88d3){const _0x23f3c4=a78_0x4758,_0x557a8f=_0x5488c8();while(!![]){try{const _0x3d7606=-parseInt(_0x23f3c4(0x17e))/0x1+parseInt(_0x23f3c4(0x157))/0x2+-parseInt(_0x23f3c4(0x188))/0x3*(-parseInt(_0x23f3c4(0x167))/0x4)+parseInt(_0x23f3c4(0x183))/0x5*(-parseInt(_0x23f3c4(0x176))/0x6)+parseInt(_0x23f3c4(0x180))/0x7*(parseInt(_0x23f3c4(0x15a))/0x8)+parseInt(_0x23f3c4(0x16c))/0x9*(-parseInt(_0x23f3c4(0x161))/0xa)+-parseInt(_0x23f3c4(0x15d))/0xb*(parseInt(_0x23f3c4(0x186))/0xc);if(_0x3d7606===_0x5b88d3)break;else _0x557a8f['push'](_0x557a8f['shift']());}catch(_0x19c65b){_0x557a8f['push'](_0x557a8f['shift']());}}}(a78_0x37a4,0x64825));import{existsSync}from'node:fs';function a78_0x4758(_0x1d3daf,_0x42b650){_0x1d3daf=_0x1d3daf-0x156;const _0x37a43b=a78_0x37a4();let _0x4758bb=_0x37a43b[_0x1d3daf];return _0x4758bb;}import{readFile}from'node:fs/promises';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=a78_0x5c5de3(0x16b);export const issueReport={'service':a78_0x5c5de3(0x171),'command':a78_0x5c5de3(0x164),'description':'Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','risk':a78_0x5c5de3(0x17f),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a78_0x5c5de3(0x189),'flags':[{'name':a78_0x5c5de3(0x159),'type':a78_0x5c5de3(0x173),'required':!![],'description':a78_0x5c5de3(0x170)},{'name':'description','type':a78_0x5c5de3(0x173),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':a78_0x5c5de3(0x173),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x43f150){const _0x4fe474=a78_0x5c5de3,_0x3962eb=_0x43f150[_0x4fe474(0x18a)](_0x4fe474(0x159))[_0x4fe474(0x15f)](),_0x7294b1=_0x43f150[_0x4fe474(0x18a)](_0x4fe474(0x181))[_0x4fe474(0x15f)](),_0xb0e538=_0x43f150[_0x4fe474(0x18a)](DESCRIPTION_FILE_FLAG)[_0x4fe474(0x15f)]();if(!_0x3962eb)throw CliErrors[_0x4fe474(0x185)](_0x4fe474(0x159),_0x4fe474(0x175));const _0x353816=_0x7294b1[_0x4fe474(0x182)]>0x0,_0x418448=_0xb0e538['length']>0x0;if(_0x353816===_0x418448)throw CliErrors[_0x4fe474(0x15b)](_0x4fe474(0x169),_0x4fe474(0x16f));if(_0x418448){const _0x459fa1=resolve(process[_0x4fe474(0x174)](),_0xb0e538);if(!existsSync(_0x459fa1))throw CliErrors[_0x4fe474(0x15b)]('File\x20not\x20found:\x20'+_0x459fa1);}},async 'dryRun'(_0x4279ee){const _0x333d8f=a78_0x5c5de3,_0x4f6e5d=await prepareIssueReport(_0x4279ee);return{'method':_0x333d8f(0x163),'url':_0x333d8f(0x162)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4f6e5d[_0x333d8f(0x159)],'issue.description':_0x4f6e5d['description']}},'description':[_0x333d8f(0x17b),_0x333d8f(0x172)+_0x4f6e5d[_0x333d8f(0x160)],_0x4f6e5d['descriptionFilePath']?_0x333d8f(0x15c)+_0x4f6e5d[_0x333d8f(0x158)]:null][_0x333d8f(0x16a)](Boolean)[_0x333d8f(0x178)]('\x0a')};},async 'execute'(_0x4ed024){const _0x2bc753=a78_0x5c5de3,_0x251aca=await prepareIssueReport(_0x4ed024);try{await sendPlatformIssueCollectLog({'title':_0x251aca['title'],'description':_0x251aca[_0x2bc753(0x181)]});}catch(_0x360765){throw CliErrors[_0x2bc753(0x17a)](_0x2bc753(0x184)+(_0x360765 instanceof Error?_0x360765[_0x2bc753(0x17d)]:String(_0x360765)),_0x2bc753(0x17c));}return{'ok':!![],'message':_0x2bc753(0x179),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x2bc753(0x166),_0x2bc753(0x168)],'issue':{'title':_0x251aca[_0x2bc753(0x159)],'descriptionLength':_0x251aca[_0x2bc753(0x181)][_0x2bc753(0x182)],'descriptionSource':_0x251aca[_0x2bc753(0x160)],..._0x251aca[_0x2bc753(0x158)]?{'descriptionFile':_0x251aca[_0x2bc753(0x158)]}:{}}}};}};async function prepareIssueReport(_0x961a11){const _0x367030=a78_0x5c5de3,_0x4b83d5=_0x961a11[_0x367030(0x18a)](_0x367030(0x159))[_0x367030(0x15f)](),_0x89400e=_0x961a11[_0x367030(0x18a)](_0x367030(0x181)),_0x480ded=_0x961a11[_0x367030(0x18a)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x480ded){const _0x199e3b=_0x89400e;if(!_0x199e3b[_0x367030(0x15f)]())throw CliErrors[_0x367030(0x15b)](_0x367030(0x165),_0x367030(0x177));return{'title':_0x4b83d5,'description':_0x199e3b,'descriptionSource':_0x367030(0x156)};}const _0x557aaf=resolve(process[_0x367030(0x174)](),_0x480ded),_0x52fc8b=await readFile(_0x557aaf,_0x367030(0x16d));if(!_0x52fc8b[_0x367030(0x15f)]())throw CliErrors[_0x367030(0x15b)](_0x367030(0x187)+_0x557aaf,_0x367030(0x15e));return{'title':_0x4b83d5,'description':_0x52fc8b,'descriptionSource':_0x367030(0x16e),'descriptionFilePath':_0x557aaf};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79_0x206c90=a79_0x54bf;(function(_0x582225,_0x3ec662){const _0x548e40=a79_0x54bf,_0x541d30=_0x582225();while(!![]){try{const _0x19eca7=parseInt(_0x548e40(0x179))/0x1*(-parseInt(_0x548e40(0x17e))/0x2)+parseInt(_0x548e40(0x175))/0x3+parseInt(_0x548e40(0x16c))/0x4*(-parseInt(_0x548e40(0x176))/0x5)+parseInt(_0x548e40(0x178))/0x6*(-parseInt(_0x548e40(0x173))/0x7)+-parseInt(_0x548e40(0x17c))/0x8*(-parseInt(_0x548e40(0x168))/0x9)+parseInt(_0x548e40(0x181))/0xa+-parseInt(_0x548e40(0x185))/0xb;if(_0x19eca7===_0x3ec662)break;else _0x541d30['push'](_0x541d30['shift']());}catch(_0x2713dd){_0x541d30['push'](_0x541d30['shift']());}}}(a79_0x3b25,0x99bb1));import{logger}from'../../utils/logger.js';function printLogs(_0x49ed8c){const _0x815883=a79_0x54bf;if(_0x49ed8c[_0x815883(0x17d)]===0x0){console[_0x815883(0x184)]('*\x20No\x20logs\x20found');return;}console['log'](_0x815883(0x172)),_0x49ed8c[_0x815883(0x167)]((_0x55026a,_0x190eae)=>{const _0x4bd050=_0x815883,_0x4c6b27=new Date(_0x55026a['timestamp'])[_0x4bd050(0x17b)](_0x4bd050(0x16e)),_0x28a997=_0x55026a['level']===_0x4bd050(0x17f)?'√':_0x55026a[_0x4bd050(0x16f)]===_0x4bd050(0x180)?'×':_0x55026a[_0x4bd050(0x16f)]===_0x4bd050(0x186)?'!':'i';console['log'](_0x190eae+0x1+'.\x20'+_0x28a997+'\x20['+_0x55026a[_0x4bd050(0x182)]+']\x20'+_0x55026a[_0x4bd050(0x187)]),console[_0x4bd050(0x184)]('\x20\x20\x20Time:\x20'+_0x4c6b27),_0x55026a[_0x4bd050(0x16a)]&&console[_0x4bd050(0x184)](_0x4bd050(0x16b)+_0x55026a['duration']+'ms'),_0x55026a[_0x4bd050(0x165)]&&Object[_0x4bd050(0x174)](_0x55026a[_0x4bd050(0x165)])['length']>0x0&&console['log']('\x20\x20\x20Details:\x20'+JSON[_0x4bd050(0x171)](_0x55026a[_0x4bd050(0x165)],null,0x2)),console[_0x4bd050(0x184)]('');});}function a79_0x54bf(_0x2cc1b0,_0x418707){_0x2cc1b0=_0x2cc1b0-0x165;const _0x3b2534=a79_0x3b25();let _0x54bf47=_0x3b2534[_0x2cc1b0];return _0x54bf47;}export const logsDefinitions=[{'service':a79_0x206c90(0x183),'command':a79_0x206c90(0x170),'description':a79_0x206c90(0x17a),'risk':a79_0x206c90(0x166),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4014b3){const _0x5b627c=a79_0x206c90;return printLogs(logger[_0x5b627c(0x177)]()),{'ok':!![]};}},{'service':a79_0x206c90(0x183),'command':'clear','description':'Clear\x20command\x20history\x20logs','risk':a79_0x206c90(0x169),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x530398){const _0x5350d5=a79_0x206c90;return logger['clearLogs'](),console[_0x5350d5(0x184)](_0x5350d5(0x16d)),{'ok':!![]};}}];function a79_0x3b25(){const _0x28b032=['read','forEach','27cLYUrg','write','duration','\x20\x20\x20Duration:\x20','12AVidxb','*\x20Logs\x20cleared','en-US','level','show','stringify','*\x20Lovrabet\x20CLI\x20logs:\x0a','6874CrqAuX','keys','1212789zfSGmf','1007330MhIlBM','readLogs','438CACGGQ','3YfjyOo','View\x20command\x20history\x20logs','toLocaleString','3299624SorEBU','length','498562lwpsiS','success','error','11621450PwTHHa','command','logs','log','8251749LHWmxG','warn','message','details'];a79_0x3b25=function(){return _0x28b032;};return a79_0x3b25();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a3280,_0x40fdbd){const _0x5e4113=a80_0xec4b,_0x46ddf1=_0x3a3280();while(!![]){try{const _0x384894=-parseInt(_0x5e4113(0x1a9))/0x1*(parseInt(_0x5e4113(0x1a3))/0x2)+parseInt(_0x5e4113(0x1a6))/0x3+-parseInt(_0x5e4113(0x1a1))/0x4+parseInt(_0x5e4113(0x1a8))/0x5+-parseInt(_0x5e4113(0x1a5))/0x6+parseInt(_0x5e4113(0x1a4))/0x7+-parseInt(_0x5e4113(0x1a7))/0x8*(-parseInt(_0x5e4113(0x1a2))/0x9);if(_0x384894===_0x40fdbd)break;else _0x46ddf1['push'](_0x46ddf1['shift']());}catch(_0x1823a3){_0x46ddf1['push'](_0x46ddf1['shift']());}}}(a80_0x5bee,0x3d70e));import{menuSync}from'../../commands/menu/sync.js';function a80_0x5bee(){const _0x3f0702=['1gOdvEh','1215620PrNuBY','6264OCASqk','154578AuAEwb','1625358eURjFV','802008RadErC','830427PyYjMA','312AYbciM','1151885EpJPSF'];a80_0x5bee=function(){return _0x3f0702;};return a80_0x5bee();}function a80_0xec4b(_0x112275,_0x5a82ca){_0x112275=_0x112275-0x1a1;const _0x5bee67=a80_0x5bee();let _0xec4bc8=_0x5bee67[_0x112275];return _0xec4bc8;}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3a386f,_0x2dd468){const _0x434fdd=a81_0x3c52,_0x1c0cdc=_0x3a386f();while(!![]){try{const _0x411e4e=parseInt(_0x434fdd(0x162))/0x1*(parseInt(_0x434fdd(0x16b))/0x2)+-parseInt(_0x434fdd(0x175))/0x3+parseInt(_0x434fdd(0x163))/0x4+parseInt(_0x434fdd(0x174))/0x5*(-parseInt(_0x434fdd(0x166))/0x6)+-parseInt(_0x434fdd(0x177))/0x7+parseInt(_0x434fdd(0x167))/0x8+-parseInt(_0x434fdd(0x16a))/0x9;if(_0x411e4e===_0x2dd468)break;else _0x1c0cdc['push'](_0x1c0cdc['shift']());}catch(_0x490194){_0x1c0cdc['push'](_0x1c0cdc['shift']());}}}(a81_0x1c17,0x3a1e6));function a81_0x3c52(_0x298bd5,_0x410972){_0x298bd5=_0x298bd5-0x15e;const _0x1c17af=a81_0x1c17();let _0x3c52a0=_0x1c17af[_0x298bd5];return _0x3c52a0;}function strWidth(_0x5e0111){const _0x2cfc81=a81_0x3c52;let _0x4bfd12=0x0;for(const _0x2e38a1 of _0x5e0111){_0x4bfd12+=/[\u4e00-\u9fa5]/[_0x2cfc81(0x16e)](_0x2e38a1)?0x2:0x1;}return _0x4bfd12;}function padRight(_0x23323c,_0x2d688a){const _0x446b7b=a81_0x3c52,_0x5db256=strWidth(_0x23323c);return _0x23323c+'\x20'[_0x446b7b(0x16d)](Math[_0x446b7b(0x15e)](0x0,_0x2d688a-_0x5db256));}export function renderCompareTable(_0x3ff113,_0x2e74ce={}){const _0x25ec8f=a81_0x3c52;if(_0x3ff113[_0x25ec8f(0x165)]===0x0)return'';const _0x628f1c=_0x2e74ce['showOnline']??!![],_0x5eadf8=Math[_0x25ec8f(0x15e)](0x1e,..._0x3ff113[_0x25ec8f(0x171)](_0x4cf1b9=>strWidth(_0x4cf1b9['label']))),_0x212a47=0x4,_0x563dd0=[],_0x302028='\x20\x20'+padRight(_0x25ec8f(0x161),_0x5eadf8),_0x5abb0c=padRight('Local',_0x212a47),_0x31723d=_0x628f1c?'\x20\x20'+padRight(_0x25ec8f(0x164),_0x212a47):'';_0x563dd0[_0x25ec8f(0x168)](_0x302028+'\x20\x20'+_0x5abb0c+(_0x628f1c?_0x31723d:'')),_0x563dd0[_0x25ec8f(0x168)]('\x20\x20'+'─'[_0x25ec8f(0x16d)](_0x5eadf8)+'\x20\x20'+'─'[_0x25ec8f(0x16d)](_0x212a47)+(_0x628f1c?'\x20\x20'+'─'['repeat'](_0x212a47):''));for(const _0x180db7 of _0x3ff113){const _0x59d8f8=padRight(_0x180db7[_0x25ec8f(0x170)],_0x5eadf8),_0x4968b4=_0x180db7['local']?'✓':'✗',_0x1c4d5a=padRight(_0x4968b4,_0x212a47);let _0x1a2551='\x20\x20'+_0x59d8f8+'\x20\x20'+_0x1c4d5a;if(_0x628f1c){const _0x4d486f=_0x180db7[_0x25ec8f(0x178)]?'✓':'✗';_0x1a2551+='\x20\x20'+padRight(_0x4d486f,_0x212a47);}_0x563dd0[_0x25ec8f(0x168)](_0x1a2551);}return _0x563dd0[_0x25ec8f(0x169)]('\x0a');}export function renderSyncSummary(_0x4e1cfd,_0x5ad172){const _0x318735=a81_0x3c52;if(_0x4e1cfd[_0x318735(0x165)]===0x0)return _0x5ad172?_0x318735(0x160):'\x20\x20No\x20pages\x20to\x20sync.';const _0x56cb8a=['\x20\x20'+_0x4e1cfd[_0x318735(0x165)]+_0x318735(0x176)];for(const _0x5f0c6e of _0x4e1cfd){_0x56cb8a['push'](_0x318735(0x179)+_0x5f0c6e[_0x318735(0x170)]+'\x20('+_0x5f0c6e[_0x318735(0x172)]+')');}return _0x56cb8a[_0x318735(0x169)]('\x0a');}export function renderUpdateSummary(_0x4f8b48,_0x3bf059){const _0x18d236=a81_0x3c52;if(_0x4f8b48['length']===0x0)return _0x18d236(0x15f);const _0x3fee98=['\x20\x20'+_0x4f8b48[_0x18d236(0x165)]+_0x18d236(0x173),_0x18d236(0x16c)+(_0x3bf059[0x0]??_0x18d236(0x17a)),'\x20\x20\x20\x20CSS:\x20'+(_0x3bf059[0x1]??_0x18d236(0x17a)),'',_0x18d236(0x16f)+_0x4f8b48[_0x18d236(0x169)](',\x20')];return _0x3fee98['join']('\x0a');}function a81_0x1c17(){const _0x462c05=['6lbaBNn','3533520loWnHX','push','join','301761eWnCRl','205826tkfCLW','\x20\x20\x20\x20JS:\x20\x20','repeat','test','\x20\x20Affected\x20menus:\x20','label','map','path','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','2136635srTUqN','743940VPuOGg','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','1409128YlFlXK','online','\x20\x20\x20\x20•\x20','(unchanged)','max','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','Menu\x20Name','3byVhcT','1591060LEGhrG','Platform','length'];a81_0x1c17=function(){return _0x462c05;};return a81_0x1c17();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4172eb,_0x12603b){var _0x4153d8=a82_0xe7b5,_0x4eda5d=_0x4172eb();while(!![]){try{var _0x583f95=-parseInt(_0x4153d8(0x8f))/0x1*(parseInt(_0x4153d8(0x96))/0x2)+-parseInt(_0x4153d8(0x93))/0x3*(-parseInt(_0x4153d8(0x8e))/0x4)+-parseInt(_0x4153d8(0x92))/0x5*(-parseInt(_0x4153d8(0x94))/0x6)+parseInt(_0x4153d8(0x90))/0x7*(-parseInt(_0x4153d8(0x95))/0x8)+-parseInt(_0x4153d8(0x91))/0x9+parseInt(_0x4153d8(0x97))/0xa*(parseInt(_0x4153d8(0x98))/0xb)+parseInt(_0x4153d8(0x99))/0xc;if(_0x583f95===_0x12603b)break;else _0x4eda5d['push'](_0x4eda5d['shift']());}catch(_0x48b216){_0x4eda5d['push'](_0x4eda5d['shift']());}}}(a82_0x2e27,0x505d5));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_0xe7b5(_0x49b92c,_0x4ab0a9){_0x49b92c=_0x49b92c-0x8e;var _0x2e2751=a82_0x2e27();var _0xe7b523=_0x2e2751[_0x49b92c];return _0xe7b523;}export*from'../../../commands/menu/shared/service.js';function a82_0x2e27(){var _0x1983a2=['9647976wqhbLz','12Zrmojz','5pIMJaW','4249714ZJywHl','3738141PvgKiy','65zWEOFt','447615CjLTYv','16326aJHFXK','8YBmRVR','47108HkLtAI','80ZXCHsJ','250811YQqVtA'];a82_0x2e27=function(){return _0x1983a2;};return a82_0x2e27();}export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4805da,_0x3970c8){const _0x19e5b2=a83_0x4395,_0x44af0b=_0x4805da();while(!![]){try{const _0x4e871f=parseInt(_0x19e5b2(0xd2))/0x1+-parseInt(_0x19e5b2(0xb8))/0x2*(parseInt(_0x19e5b2(0xb4))/0x3)+parseInt(_0x19e5b2(0xc3))/0x4+parseInt(_0x19e5b2(0xb1))/0x5*(parseInt(_0x19e5b2(0xc9))/0x6)+-parseInt(_0x19e5b2(0xc6))/0x7+parseInt(_0x19e5b2(0xc7))/0x8*(parseInt(_0x19e5b2(0xbd))/0x9)+parseInt(_0x19e5b2(0xb0))/0xa*(-parseInt(_0x19e5b2(0xb7))/0xb);if(_0x4e871f===_0x3970c8)break;else _0x44af0b['push'](_0x44af0b['shift']());}catch(_0x2564e8){_0x44af0b['push'](_0x44af0b['shift']());}}}(a83_0xf878,0x8f183));import a83_0x16e2c2 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';function a83_0x4395(_0x249e61,_0xdbfeca){_0x249e61=_0x249e61-0xac;const _0xf8788e=a83_0xf878();let _0x43955d=_0xf8788e[_0x249e61];return _0x43955d;}import a83_0x19ef49 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x37a6fe){const _0x592cd1=a83_0x4395;return _0x37a6fe[_0x592cd1(0xb2)](_0x4357d8=>{const _0x4063be=_0x592cd1;if(_0x4357d8?.[_0x4063be(0xbe)]===_0x4063be(0xb3))throw CliErrors[_0x4063be(0xd4)](_0x4063be(0xb5));throw _0x4357d8;});}export function startSpinner(_0x447d8f){const _0x35a4d0=a83_0x4395;return a83_0x19ef49({'text':_0x447d8f,'color':'cyan'})[_0x35a4d0(0xcf)]();}export function stopSpinner(_0x3c93f2,_0x5c8596,_0x215de5){const _0x1323bf=a83_0x4395;_0x215de5?_0x3c93f2[_0x1323bf(0xae)](_0x5c8596):_0x3c93f2[_0x1323bf(0xd3)](_0x5c8596);}export async function askConfirm(_0x33a957){return onCancel(confirm({'message':_0x33a957,'theme':{'prefix':''}}));}function a83_0xf878(){const _0xde21f2=['60009VdNTTc','Cancelled.','error','18197102bidExu','6DzKrQO','filter','includes','No\x20menus\x20selected.','green','574038ltUYmp','name','No\x20local\x20pages\x20found.','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','path','isTTY','3684048ULRqne','length','\x20\x20Checking\x20CSS\x20URL\x20reachability...','1347199DHbpvI','8LigOwi','\x20\x20CSS\x20URL:','366ABdxHj','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','gray','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','test','label','start','red','has','856040omZfeG','fail','cancelled','\x20\x20Checking\x20JS\x20URL\x20reachability...','trim','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','succeed','JS\x20URL\x20checked','10dzkzno','53445LCujjB','catch','ExitPromptError'];a83_0xf878=function(){return _0xde21f2;};return a83_0xf878();}export async function askJsUrl(_0x1e484f){const _0x148dae=a83_0x4395;while(!![]){const _0x3f5e84=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x1e484f,'theme':{'prefix':''}}));if(_0x3f5e84['trim']()==='')throw CliErrors[_0x148dae(0xd4)](_0x148dae(0xb5));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x148dae(0xcd)](_0x3f5e84['trim']())){console[_0x148dae(0xb6)](a83_0x16e2c2[_0x148dae(0xd0)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x881186=startSpinner(_0x148dae(0xd5));try{const _0x53fcc0=await isUrlReachable(_0x3f5e84['trim']());stopSpinner(_0x881186,_0x148dae(0xaf),_0x53fcc0);if(!_0x53fcc0){console[_0x148dae(0xb6)](a83_0x16e2c2['red'](_0x148dae(0xca)));continue;}return _0x3f5e84[_0x148dae(0xac)]();}catch(_0x163b21){stopSpinner(_0x881186,'JS\x20URL\x20check\x20failed',![]);throw _0x163b21;}}}export async function askCssUrl(_0x37d172){const _0x41cf5e=a83_0x4395;while(!![]){const _0x3d6380=await onCancel(input({'message':_0x41cf5e(0xc8),'default':_0x37d172,'theme':{'prefix':''}}));if(_0x3d6380[_0x41cf5e(0xac)]()==='')throw CliErrors[_0x41cf5e(0xd4)]('Cancelled.');if(!/^https:\/\/.+\.css(\?.*)?$/[_0x41cf5e(0xcd)](_0x3d6380[_0x41cf5e(0xac)]())){console[_0x41cf5e(0xb6)](a83_0x16e2c2['red'](_0x41cf5e(0xcc)));continue;}const _0x3017d8=startSpinner(_0x41cf5e(0xc5));try{const _0xef2e77=await isUrlReachable(_0x3d6380[_0x41cf5e(0xac)]());stopSpinner(_0x3017d8,'CSS\x20URL\x20checked',_0xef2e77);if(!_0xef2e77){console[_0x41cf5e(0xb6)](a83_0x16e2c2['red']('\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable'));continue;}return _0x3d6380[_0x41cf5e(0xac)]();}catch(_0x396d63){stopSpinner(_0x3017d8,'CSS\x20URL\x20check\x20failed',![]);throw _0x396d63;}}}export async function selectPages(_0x2c9832,_0x11ccf2,_0x2dd41b){const _0x1d0cf2=a83_0x4395,_0x108541=_0x2c9832['map'](_0x35cdfe=>({'name':_0x35cdfe['label']+'\x20\x20'+(_0x11ccf2[_0x1d0cf2(0xd1)](_0x35cdfe[_0x1d0cf2(0xc1)])?a83_0x16e2c2[_0x1d0cf2(0xcb)]('[already\x20on\x20platform]'):a83_0x16e2c2[_0x1d0cf2(0xbc)]('[new]')),'value':_0x35cdfe['label'],'checked':_0x2dd41b?_0x2dd41b[_0x1d0cf2(0xba)](_0x35cdfe['label']):!_0x11ccf2[_0x1d0cf2(0xd1)](_0x35cdfe[_0x1d0cf2(0xc1)])}));if(_0x108541[_0x1d0cf2(0xc4)]===0x0)throw new Error(_0x1d0cf2(0xbf));const _0x4a17df=await onCancel(checkbox({'message':'\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','choices':_0x108541,'loop':![],'theme':{'prefix':''}}));if(_0x4a17df[_0x1d0cf2(0xc4)]===0x0)throw new Error(_0x1d0cf2(0xbb));return _0x2c9832[_0x1d0cf2(0xb9)](_0x830b01=>_0x4a17df[_0x1d0cf2(0xba)](_0x830b01[_0x1d0cf2(0xce)]));}export function isInteractive(){const _0x3b2fd8=a83_0x4395;return process['stdin'][_0x3b2fd8(0xc2)]===!![];}export function requireInteractive(){const _0x20befb=a83_0x4395;if(!isInteractive())throw new Error(_0x20befb(0xc0)+_0x20befb(0xad));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x36d69a,_0x432014){const _0x51c430=a84_0x5946,_0x15e715=_0x36d69a();while(!![]){try{const _0x17c6d1=-parseInt(_0x51c430(0xd2))/0x1+parseInt(_0x51c430(0xd6))/0x2+parseInt(_0x51c430(0xe0))/0x3*(parseInt(_0x51c430(0xd8))/0x4)+-parseInt(_0x51c430(0xe6))/0x5*(parseInt(_0x51c430(0xd7))/0x6)+-parseInt(_0x51c430(0xe9))/0x7*(-parseInt(_0x51c430(0xdf))/0x8)+-parseInt(_0x51c430(0xe7))/0x9+parseInt(_0x51c430(0xd4))/0xa*(parseInt(_0x51c430(0xe5))/0xb);if(_0x17c6d1===_0x432014)break;else _0x15e715['push'](_0x15e715['shift']());}catch(_0x5ee896){_0x15e715['push'](_0x15e715['shift']());}}}(a84_0x179d,0xd1a10));function a84_0x5946(_0x3417c7,_0x19df63){_0x3417c7=_0x3417c7-0xd2;const _0x179da4=a84_0x179d();let _0x5946e5=_0x179da4[_0x3417c7];return _0x5946e5;}function a84_0x179d(){const _0x3c452d=['concat','5028037fXcHza','match','749892wfWcoO','utf-8','8118510CXNSpo','path','273604AUXZEe','24bWACmK','4njDUdF','trim','slice','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','.tsx','push','isDirectory','8FFyuni','535917kjEVeT','forEach','join','endsWith','replace','33XEOvnR','1248035bmsKkS','7760925MiWzEQ'];a84_0x179d=function(){return _0x3c452d;};return a84_0x179d();}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),'src/pages');export function extractTitleFromComment(_0x573e97){const _0xdce5fe=a84_0x5946;try{const _0x2fc815=readFileSync(_0x573e97,_0xdce5fe(0xd3)),_0x28c3e4=_0x2fc815[_0xdce5fe(0xea)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x28c3e4&&_0x28c3e4[0x1]){const _0xbaa0a8=_0x28c3e4[0x1],_0x327c9e=_0xbaa0a8['match'](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x327c9e&&_0x327c9e[0x1])return _0x327c9e[0x1][_0xdce5fe(0xd9)]();}let _0x460523=null;const _0x1e7ae3=_0x2fc815[_0xdce5fe(0xea)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x1e7ae3&&_0x1e7ae3[0x1]&&(_0x460523=_0x1e7ae3[0x1]);if(!_0x460523){const _0x2947f2=_0x2fc815[_0xdce5fe(0xea)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x2947f2&&_0x2947f2[0x1]&&(_0x460523=_0x2947f2[0x1]);}if(_0x460523){const _0x3fa6ee=new RegExp('\x5cb'+_0x460523+_0xdce5fe(0xdb)),_0x580b27=_0x2fc815[_0xdce5fe(0xea)](_0x3fa6ee);if(_0x580b27&&_0x580b27[0x1])return _0x580b27[0x1];return _0x460523;}return null;}catch(_0x5cffc9){return null;}}export function getLocalPages(_0x3500d2=pagesDir,_0xa562c9=pagesDir){const _0x494c07=a84_0x5946;let _0x11233f=[];const _0x2ab129=readdirSync(_0x3500d2);return _0x2ab129[_0x494c07(0xe1)](_0x3f2934=>{const _0xe0cf9c=_0x494c07,_0x554aab=join(_0x3500d2,_0x3f2934),_0x4004d3=statSync(_0x554aab);if(_0x4004d3&&_0x4004d3[_0xe0cf9c(0xde)]())_0x11233f=_0x11233f[_0xe0cf9c(0xe8)](getLocalPages(_0x554aab,_0xa562c9));else{if(_0x3f2934[_0xe0cf9c(0xe3)](_0xe0cf9c(0xdc))){let _0x1f21e7=relative(_0xa562c9,_0x554aab);_0x1f21e7[_0xe0cf9c(0xe3)]('index.tsx')?_0x1f21e7=_0x1f21e7[_0xe0cf9c(0xe4)](/index\.tsx$/,''):_0x1f21e7=_0x1f21e7[_0xe0cf9c(0xe4)](/\.tsx$/,'');_0x1f21e7[_0xe0cf9c(0xe3)](sep)&&(_0x1f21e7=_0x1f21e7[_0xe0cf9c(0xda)](0x0,-0x1));const _0x12574e=_0x1f21e7['split'](sep)[_0xe0cf9c(0xe2)]('/'),_0x57a31a=extractTitleFromComment(_0x554aab),_0x1a32df=_0x57a31a||_0x12574e;_0x11233f[_0xe0cf9c(0xdd)]({'path':_0x12574e['replaceAll']('$',':'),'label':_0x1a32df});}}}),_0x11233f['filter'](_0x1175fe=>_0x1175fe[_0x494c07(0xd5)]!=='');}
|