@lovrabet/rabetbase-cli 2.1.11 → 2.1.12-beta.1
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 +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a66_0x925b(_0x5d4acb,_0x4a5efb){_0x5d4acb=_0x5d4acb-0x10f;const _0x599009=a66_0x5990();let _0x925b48=_0x599009[_0x5d4acb];return _0x925b48;}const a66_0x49894d=a66_0x925b;function a66_0x5990(){const _0x3bcdaf=['308GZQEyU','329280AJKOyy','9iUfclh','158nFPtAV','96TAdbWM','1592750WOKTsa','Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','4487MXAQfE','2164504PkRLGv','5821255hfGSwk','251512GMIDgy','num','531955ZkLqnG','9mNtLEu'];a66_0x5990=function(){return _0x3bcdaf;};return a66_0x5990();}(function(_0x1f7011,_0x3591fe){const _0x43622d=a66_0x925b,_0x573ff9=_0x1f7011();while(!![]){try{const _0x495958=parseInt(_0x43622d(0x112))/0x1*(-parseInt(_0x43622d(0x11c))/0x2)+-parseInt(_0x43622d(0x11b))/0x3*(-parseInt(_0x43622d(0x113))/0x4)+parseInt(_0x43622d(0x117))/0x5*(parseInt(_0x43622d(0x10f))/0x6)+parseInt(_0x43622d(0x119))/0x7*(-parseInt(_0x43622d(0x115))/0x8)+-parseInt(_0x43622d(0x118))/0x9*(parseInt(_0x43622d(0x110))/0xa)+-parseInt(_0x43622d(0x114))/0xb+-parseInt(_0x43622d(0x11a))/0xc;if(_0x495958===_0x3591fe)break;else _0x573ff9['push'](_0x573ff9['shift']());}catch(_0x45be48){_0x573ff9['push'](_0x573ff9['shift']());}}}(a66_0x5990,0xd4df5));import{deleteDbLink}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDelete={'service':'db','command':'delete','description':a66_0x49894d(0x111),'risk':'high-risk-write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3e909c){const _0x31957e=a66_0x49894d,_0x21309b=_0x3e909c[_0x31957e(0x116)]('id');return await deleteDbLink(_0x21309b),{'ok':!![],'data':{'id':_0x21309b,'deleted':!![]},'message':'Deleted\x20db\x20link\x20'+_0x21309b};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x2df32a=a67_0x1c7b;function a67_0x1c7b(_0x47871c,_0x4e29cb){_0x47871c=_0x47871c-0x8d;const _0x2f7fe8=a67_0x2f7f();let _0x1c7b9f=_0x2f7fe8[_0x47871c];return _0x1c7b9f;}(function(_0x437a5d,_0x567b95){const _0x511632=a67_0x1c7b,_0x4c653c=_0x437a5d();while(!![]){try{const _0x43801d=-parseInt(_0x511632(0x97))/0x1*(parseInt(_0x511632(0x9a))/0x2)+-parseInt(_0x511632(0x8d))/0x3*(parseInt(_0x511632(0x93))/0x4)+parseInt(_0x511632(0x9b))/0x5+parseInt(_0x511632(0x98))/0x6+-parseInt(_0x511632(0x95))/0x7+-parseInt(_0x511632(0x92))/0x8*(-parseInt(_0x511632(0x8f))/0x9)+-parseInt(_0x511632(0x99))/0xa*(-parseInt(_0x511632(0x8e))/0xb);if(_0x43801d===_0x567b95)break;else _0x4c653c['push'](_0x4c653c['shift']());}catch(_0x378141){_0x4c653c['push'](_0x4c653c['shift']());}}}(a67_0x2f7f,0xc656e));import{getDbLinkInfo}from'../../core/api-client.js';function a67_0x2f7f(){const _0x5e2de4=['586753mEanNZ','1125078StOvJO','180JuJeSg','2IiPgGp','6351880HAJtzK','738609iQEjcN','893453QNTXBt','27nrFMTY','dbName','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','1392184anpgrE','16afDmrU','read','7406063wLsAmG','db\x20link\x20'];a67_0x2f7f=function(){return _0x5e2de4;};return a67_0x2f7f();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput}from'../../commands/db/shared.js';export const dbDetail={'service':'db','command':'detail','description':a67_0x2df32a(0x91),'risk':a67_0x2df32a(0x94),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x117cf2){const _0x5c20cf=a67_0x2df32a,_0x422a57=_0x117cf2['num']('id'),_0x29da1c=await getDbLinkInfo(_0x422a57);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x29da1c),'message':_0x5c20cf(0x96)+_0x422a57+':\x20'+_0x29da1c[_0x5c20cf(0x90)]};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x1bb281=a68_0x4992;(function(_0x31d95a,_0x1259e6){const _0x463e72=a68_0x4992,_0x5a48c3=_0x31d95a();while(!![]){try{const _0x44b3e4=-parseInt(_0x463e72(0xae))/0x1+-parseInt(_0x463e72(0xc2))/0x2*(-parseInt(_0x463e72(0xb8))/0x3)+parseInt(_0x463e72(0xc6))/0x4*(-parseInt(_0x463e72(0xbc))/0x5)+-parseInt(_0x463e72(0xb4))/0x6+parseInt(_0x463e72(0xc0))/0x7+parseInt(_0x463e72(0xbe))/0x8*(parseInt(_0x463e72(0xc5))/0x9)+-parseInt(_0x463e72(0xb6))/0xa*(-parseInt(_0x463e72(0xbb))/0xb);if(_0x44b3e4===_0x1259e6)break;else _0x5a48c3['push'](_0x5a48c3['shift']());}catch(_0x358112){_0x5a48c3['push'](_0x5a48c3['shift']());}}}(a68_0x1663,0x86e4f));import{getDbTableDiff}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbDiff={'service':'db','command':a68_0x1bb281(0xb2),'description':a68_0x1bb281(0xb0),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a68_0x1bb281(0xb3),'type':a68_0x1bb281(0xc4),'description':a68_0x1bb281(0xb1)},{'name':a68_0x1bb281(0xb5),'type':a68_0x1bb281(0xb7),'description':a68_0x1bb281(0xc1),'default':0x1},{'name':a68_0x1bb281(0xaf),'type':a68_0x1bb281(0xb7),'description':'Page\x20size','default':0x14}],async 'execute'(_0x3a3b26){const _0x441e9d=a68_0x1bb281,_0x569068=_0x3a3b26[_0x441e9d(0xba)]('id'),_0x570b6f=_0x3a3b26['num']('page',0x1)||0x1,_0x47c9ff=_0x3a3b26[_0x441e9d(0xba)](_0x441e9d(0xaf),0x14)||0x14,_0x86fe3b=_0x3a3b26[_0x441e9d(0xc3)](_0x441e9d(0xb3))||undefined,{totalCount:_0x265348,tableList:_0x5c617e}=await getDbTableDiff(_0x3a3b26[_0x441e9d(0xbd)],_0x569068,{'pageIndex':_0x570b6f,'pageSize':_0x47c9ff,'tableName':_0x86fe3b});return{'ok':!![],'data':{'dbLinkId':_0x569068,'page':_0x570b6f,'pageSize':_0x47c9ff,'totalCount':_0x265348,'tableList':_0x5c617e},'message':_0x5c617e[_0x441e9d(0xb9)]+_0x441e9d(0xbf)+_0x265348+'\x20(db\x20link\x20'+_0x569068+')'};}};function a68_0x4992(_0xb295bb,_0x33880b){_0xb295bb=_0xb295bb-0xae;const _0x166331=a68_0x1663();let _0x499216=_0x166331[_0xb295bb];return _0x499216;}function a68_0x1663(){const _0x57284e=['Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','diff','table','3883746VvEzKx','page','11409750YUsyiA','number','33eTgkZs','length','num','11YDGMVt','15TkZcNJ','appCode','1031848GUmVgj','\x20row(s),\x20total\x20','6443010kuZinC','Page\x20index\x20(1-based)','26076AOUsSk','str','string','45YCgoQm','1218340ZPnxXK','736155QeBbqm','pagesize','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)'];a68_0x1663=function(){return _0x57284e;};return a68_0x1663();}
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3aa5b8,_0x47b1ba){const _0x46079a=a69_0xcb94,_0x274878=_0x3aa5b8();while(!![]){try{const _0x26ce5e=-parseInt(_0x46079a(0xee))/0x1+-parseInt(_0x46079a(0xe8))/0x2*(parseInt(_0x46079a(0xe5))/0x3)+parseInt(_0x46079a(0xef))/0x4+parseInt(_0x46079a(0xec))/0x5*(parseInt(_0x46079a(0xe6))/0x6)+parseInt(_0x46079a(0xf0))/0x7*(-parseInt(_0x46079a(0xe7))/0x8)+-parseInt(_0x46079a(0xeb))/0x9*(-parseInt(_0x46079a(0xe9))/0xa)+parseInt(_0x46079a(0xed))/0xb*(parseInt(_0x46079a(0xea))/0xc);if(_0x26ce5e===_0x47b1ba)break;else _0x274878['push'](_0x274878['shift']());}catch(_0x5a733e){_0x274878['push'](_0x274878['shift']());}}}(a69_0x49e8,0x88b19));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';function a69_0x49e8(){const _0x1e6c28=['595430NxPlPI','177468fheVjk','144uZYxXo','91105pUpKzZ','11cMnyLt','663005UOEOYQ','3330940xkfaSs','6027077TWmaRf','843450nbvmbw','186nqjhwE','8sgumUr','2KXJBGx'];a69_0x49e8=function(){return _0x1e6c28;};return a69_0x49e8();}import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';function a69_0xcb94(_0x513a39,_0x179622){_0x513a39=_0x513a39-0xe5;const _0x49e8e9=a69_0x49e8();let _0xcb9435=_0x49e8e9[_0x513a39];return _0xcb9435;}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_0x2bc215=a70_0x2d72;function a70_0x2d72(_0x476899,_0x316a11){_0x476899=_0x476899-0x1c1;const _0x2137fc=a70_0x2137();let _0x2d7242=_0x2137fc[_0x476899];return _0x2d7242;}(function(_0x205a1c,_0xd9ad2d){const _0xdda527=a70_0x2d72,_0x46bb78=_0x205a1c();while(!![]){try{const _0x54506f=-parseInt(_0xdda527(0x1c7))/0x1*(-parseInt(_0xdda527(0x1cb))/0x2)+parseInt(_0xdda527(0x1cf))/0x3*(-parseInt(_0xdda527(0x1cc))/0x4)+parseInt(_0xdda527(0x1cd))/0x5+-parseInt(_0xdda527(0x1c9))/0x6+-parseInt(_0xdda527(0x1ce))/0x7+-parseInt(_0xdda527(0x1ca))/0x8+parseInt(_0xdda527(0x1d0))/0x9;if(_0x54506f===_0xd9ad2d)break;else _0x46bb78['push'](_0x46bb78['shift']());}catch(_0x1fa368){_0x46bb78['push'](_0x46bb78['shift']());}}}(a70_0x2137,0xd42cf));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a70_0x2137(){const _0x329043=['Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','read','number','Page\x20size','length','appCode','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','\x20database\x20connection(s)','num','1vVSWQj','page','5790204iwclkD','6477744rBIhRY','2949212NInMXJ','2468584ULmmtR','2403555ZuZAyq','6448764sdeyLb','3lYsEww','20042136CuOLlv'];a70_0x2137=function(){return _0x329043;};return a70_0x2137();}import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':'list','description':a70_0x2bc215(0x1c4),'risk':a70_0x2bc215(0x1d2),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a70_0x2bc215(0x1c8),'type':a70_0x2bc215(0x1d3),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':'pagesize','type':a70_0x2bc215(0x1d3),'description':a70_0x2bc215(0x1c1),'default':0x64}],async 'execute'(_0x1627c){const _0x2b5136=a70_0x2bc215,_0x199916=_0x1627c[_0x2b5136(0x1c6)](_0x2b5136(0x1c8),0x1)||0x1,_0x59f41e=_0x1627c[_0x2b5136(0x1c6)]('pagesize',0x64)||0x64,{items:_0x5b1f9d,paging:_0x286fce}=await listDbLinks(_0x1627c[_0x2b5136(0x1c3)],{'currentPage':_0x199916,'pageSize':_0x59f41e}),_0x42c6ae=sanitizeDbLinkList(_0x5b1f9d),_0x5d215a=_0x286fce?_0x286fce:{'currentPage':_0x199916,'pageSize':_0x59f41e,'rowsOnPage':_0x42c6ae[_0x2b5136(0x1c2)],'totalCount':null,'note':_0x2b5136(0x1d1)};return{'ok':!![],'data':{'connections':_0x42c6ae,'paging':_0x5d215a},'message':'Found\x20'+_0x42c6ae['length']+_0x2b5136(0x1c5)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a71_0xf13a(){const _0x483925=['accesskey','2288148txFxdq','secret','584688WBfkud','passwd','length','number','28RLmcQJ','includes','913048nUTeXK','5107566gqinCW','connectionstring','3978975ZoPwPK','password','isFinite','4WYncRN','token','1230tpduhG','test','https://app.lovrabet.com/app/','/data/er?dbId=','trim','https://daily.lovrabet.com/web-app/app/','privatekey','/data/database','toLowerCase','142155uJFMrc','791434tRGdsz','keys','jdbcurl','authorization'];a71_0xf13a=function(){return _0x483925;};return a71_0xf13a();}function a71_0x252f(_0x278b71,_0x87a654){_0x278b71=_0x278b71-0x1c2;const _0xf13a23=a71_0xf13a();let _0x252ff2=_0xf13a23[_0x278b71];return _0x252ff2;}(function(_0x970edd,_0x11c3e6){const _0x50d9c3=a71_0x252f,_0x1de4df=_0x970edd();while(!![]){try{const _0x13895e=parseInt(_0x50d9c3(0x1c2))/0x1+parseInt(_0x50d9c3(0x1d4))/0x2+-parseInt(_0x50d9c3(0x1d9))/0x3*(parseInt(_0x50d9c3(0x1c8))/0x4)+parseInt(_0x50d9c3(0x1c5))/0x5+parseInt(_0x50d9c3(0x1c3))/0x6+parseInt(_0x50d9c3(0x1df))/0x7*(parseInt(_0x50d9c3(0x1db))/0x8)+parseInt(_0x50d9c3(0x1d3))/0x9*(-parseInt(_0x50d9c3(0x1ca))/0xa);if(_0x13895e===_0x11c3e6)break;else _0x1de4df['push'](_0x1de4df['shift']());}catch(_0x2243d6){_0x1de4df['push'](_0x1de4df['shift']());}}}(a71_0xf13a,0x847c8));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x681c67){const _0x184f62=a71_0x252f,_0x4e76df=_0x681c67[_0x184f62(0x1d2)]();if(_0x4e76df===_0x184f62(0x1c6)||_0x4e76df===_0x184f62(0x1dc)||_0x4e76df==='dbpassword')return!![];if(_0x4e76df[_0x184f62(0x1e0)](_0x184f62(0x1da))||_0x4e76df[_0x184f62(0x1e0)](_0x184f62(0x1c9))||_0x4e76df[_0x184f62(0x1e0)]('credential'))return!![];if(_0x4e76df[_0x184f62(0x1e0)](_0x184f62(0x1d0))||_0x4e76df[_0x184f62(0x1e0)](_0x184f62(0x1d8)))return!![];if(_0x4e76df===_0x184f62(0x1d7)||_0x4e76df===_0x184f62(0x1c4)||_0x4e76df===_0x184f62(0x1d6))return!![];return![];}export function sanitizeDbLinkForOutput(_0x5889b4){const _0x5009e5=a71_0x252f,_0x24659e={..._0x5889b4};for(const _0x1b9add of Object[_0x5009e5(0x1d5)](_0x24659e)){if(!shouldRedactKey(_0x1b9add))continue;const _0x4b5b11=_0x24659e[_0x1b9add];_0x4b5b11!=null&&String(_0x4b5b11)[_0x5009e5(0x1dd)]>0x0&&(_0x24659e[_0x1b9add]='[redacted]');}return _0x24659e;}export function sanitizeDbLinkList(_0xc7424){return _0xc7424['map'](_0x3c4473=>sanitizeDbLinkForOutput(_0x3c4473));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x3ec140){const _0x4b03a4=a71_0x252f,_0x1105c3=_0x3ec140[_0x4b03a4(0x1ce)]();if(!_0x1105c3)return![];return DB_URL_PATTERN[_0x4b03a4(0x1cb)](_0x1105c3);}export function buildDbPageLinks(_0x355440,_0x3f0428){const _0x5834ee=a71_0x252f,_0x85ebdc=_0x355440?.['trim']();if(!_0x85ebdc)return undefined;const _0x21018b=typeof _0x3f0428===_0x5834ee(0x1de)?String(_0x3f0428):String(_0x3f0428??'')[_0x5834ee(0x1ce)]();if(!_0x21018b)return undefined;const _0xf83dd9=Number(_0x21018b);if(!Number[_0x5834ee(0x1c7)](_0xf83dd9)||_0xf83dd9<=0x0)return undefined;const _0x2c16d2=isDaily(normalizeEnv(getEnv()))?_0x5834ee(0x1cf)+encodeURIComponent(_0x85ebdc):_0x5834ee(0x1cc)+encodeURIComponent(_0x85ebdc),_0x446852=encodeURIComponent(String(_0xf83dd9));return{'databasePage':_0x2c16d2+_0x5834ee(0x1d1),'erPage':_0x2c16d2+_0x5834ee(0x1cd)+_0x446852};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x16b5e4=a72_0x3f27;(function(_0x21e259,_0x47c5b0){const _0xf1e64b=a72_0x3f27,_0x5c78a2=_0x21e259();while(!![]){try{const _0x16888a=parseInt(_0xf1e64b(0x9d))/0x1+-parseInt(_0xf1e64b(0xa4))/0x2+-parseInt(_0xf1e64b(0x9c))/0x3*(parseInt(_0xf1e64b(0xa2))/0x4)+parseInt(_0xf1e64b(0xa0))/0x5+parseInt(_0xf1e64b(0x98))/0x6*(-parseInt(_0xf1e64b(0x97))/0x7)+-parseInt(_0xf1e64b(0x9f))/0x8+parseInt(_0xf1e64b(0xa3))/0x9*(parseInt(_0xf1e64b(0xa1))/0xa);if(_0x16888a===_0x47c5b0)break;else _0x5c78a2['push'](_0x5c78a2['shift']());}catch(_0x26ab74){_0x5c78a2['push'](_0x5c78a2['shift']());}}}(a72_0x57a3,0x89473));function a72_0x57a3(){const _0x89385d=['\x20table(s)\x20on\x20db\x20link\x20','tables','appCode','1098153lWRonT','594165aNGBFh','length','835784wWTQJB','2500025WRYlaD','373390GDUewo','8SSvVvg','369KkzKLo','2057158WlauMW','num','28LyRsnX','296436BXkyaw'];a72_0x57a3=function(){return _0x89385d;};return a72_0x57a3();}function a72_0x3f27(_0x4e8080,_0x5bef2){_0x4e8080=_0x4e8080-0x97;const _0x57a384=a72_0x57a3();let _0x3f27ed=_0x57a384[_0x4e8080];return _0x3f27ed;}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':a72_0x16b5e4(0x9a),'description':'List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x34eaa8){const _0x5226bc=a72_0x16b5e4,_0x197a3c=_0x34eaa8[_0x5226bc(0xa5)]('id'),_0x2b9cc2=await getDbAllTableList(_0x34eaa8[_0x5226bc(0x9b)],_0x197a3c);return{'ok':!![],'data':{'dbLinkId':_0x197a3c,'total':_0x2b9cc2[_0x5226bc(0x9e)],'tables':_0x2b9cc2},'message':_0x2b9cc2['length']+_0x5226bc(0x99)+_0x197a3c};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x2e87b7=a73_0x4055;(function(_0x27c530,_0x29475d){const _0x381ae5=a73_0x4055,_0x3d6c97=_0x27c530();while(!![]){try{const _0x23fb80=parseInt(_0x381ae5(0xcb))/0x1*(parseInt(_0x381ae5(0xc6))/0x2)+parseInt(_0x381ae5(0xd5))/0x3*(-parseInt(_0x381ae5(0xc8))/0x4)+-parseInt(_0x381ae5(0xc5))/0x5*(parseInt(_0x381ae5(0xcd))/0x6)+-parseInt(_0x381ae5(0xd1))/0x7+-parseInt(_0x381ae5(0xd4))/0x8+parseInt(_0x381ae5(0xcf))/0x9*(-parseInt(_0x381ae5(0xcc))/0xa)+parseInt(_0x381ae5(0xd6))/0xb;if(_0x23fb80===_0x29475d)break;else _0x3d6c97['push'](_0x3d6c97['shift']());}catch(_0x260954){_0x3d6c97['push'](_0x3d6c97['shift']());}}}(a73_0x4749,0x2f451));import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a73_0x4749(){const _0x5a43d9=['10QjmLUd','6dScOZt','error','3415059fAVEIB','read','681240fXDYUX','msg','Connection\x20check\x20finished\x20for\x20db\x20link\x20','1835168AxvUcm','6DkcfuV','9609985JKQJlJ','test','714290FMafGc','626oKJSIt','success','364984YcXKHw','keys','Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','1123RIUewH'];a73_0x4749=function(){return _0x5a43d9;};return a73_0x4749();}function summarizeTestConnectResult(_0x1e752d){const _0x31fa00=a73_0x4055;if(_0x1e752d===!![]||_0x1e752d===![])return{'success':_0x1e752d};if(_0x1e752d===null||_0x1e752d===undefined)return{'type':typeof _0x1e752d};if(typeof _0x1e752d!=='object')return{'type':typeof _0x1e752d};const _0x3a1ea3=_0x1e752d,_0x432ece=['success','message','code',_0x31fa00(0xce),_0x31fa00(0xd2),'data'],_0x3c18e4={};for(const _0x13cba6 of _0x432ece){if(_0x13cba6 in _0x3a1ea3)_0x3c18e4[_0x13cba6]=_0x3a1ea3[_0x13cba6];}return Object[_0x31fa00(0xc9)](_0x3c18e4)['length']===0x0&&(_0x3c18e4[_0x31fa00(0xc9)]=Object[_0x31fa00(0xc9)](_0x3a1ea3)['slice'](0x0,0x14)),_0x3c18e4;}function a73_0x4055(_0x5680f1,_0xc69c82){_0x5680f1=_0x5680f1-0xc5;const _0x47495b=a73_0x4749();let _0x405576=_0x47495b[_0x5680f1];return _0x405576;}export const dbTest={'service':'db','command':a73_0x2e87b7(0xd7),'description':a73_0x2e87b7(0xca),'risk':a73_0x2e87b7(0xd0),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x23b4db){const _0x445567=a73_0x2e87b7,_0x485b84=_0x23b4db['num']('id'),_0xa3081e=await testDbLinkConnect(_0x485b84),_0x4b7b22=_0xa3081e===!![]||typeof _0xa3081e==='object'&&_0xa3081e!==null&&_0xa3081e[_0x445567(0xc7)]===!![],_0x17e50a=summarizeTestConnectResult(_0xa3081e);return{'ok':!![],'data':{'id':_0x485b84,'connected':Boolean(_0x4b7b22),'result':_0x17e50a},'message':_0x4b7b22?'Connection\x20OK\x20for\x20db\x20link\x20'+_0x485b84:_0x445567(0xd3)+_0x485b84+'\x20(see\x20data.result)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x5d0b97=a74_0x36d6;(function(_0x1dcc5c,_0x126f62){const _0x3c4318=a74_0x36d6,_0x3fc779=_0x1dcc5c();while(!![]){try{const _0x51358c=parseInt(_0x3c4318(0xf6))/0x1+parseInt(_0x3c4318(0xd9))/0x2+parseInt(_0x3c4318(0xd8))/0x3+parseInt(_0x3c4318(0xfa))/0x4*(-parseInt(_0x3c4318(0xfc))/0x5)+-parseInt(_0x3c4318(0xe5))/0x6*(-parseInt(_0x3c4318(0xf8))/0x7)+parseInt(_0x3c4318(0xdc))/0x8*(parseInt(_0x3c4318(0xdd))/0x9)+-parseInt(_0x3c4318(0xf7))/0xa;if(_0x51358c===_0x126f62)break;else _0x3fc779['push'](_0x3fc779['shift']());}catch(_0x400577){_0x3fc779['push'](_0x3fc779['shift']());}}}(a74_0x1e0f,0xa3ba4));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';export const dbUpdate={'service':'db','command':a74_0x5d0b97(0xf5),'description':a74_0x5d0b97(0xed),'risk':a74_0x5d0b97(0xdb),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'dbname','type':'string','description':a74_0x5d0b97(0xe0)},{'name':a74_0x5d0b97(0xec),'type':'string','description':a74_0x5d0b97(0xf2)},{'name':a74_0x5d0b97(0xe7),'type':a74_0x5d0b97(0xde),'description':a74_0x5d0b97(0xe3)},{'name':'password','type':'string','description':a74_0x5d0b97(0xda)},{'name':a74_0x5d0b97(0xfb),'type':a74_0x5d0b97(0xde),'description':a74_0x5d0b97(0xf4)},{'name':'dbdesc','type':a74_0x5d0b97(0xde),'description':a74_0x5d0b97(0xe8)}],async 'validate'(_0x3c781b){const _0x1ba38e=a74_0x5d0b97,_0x59014d=_0x3c781b[_0x1ba38e(0xe6)](_0x1ba38e(0xec));if(_0x59014d&&!validateDbUrl(_0x59014d['trim']()))throw CliErrors[_0x1ba38e(0xf9)](_0x1ba38e(0xf3)+_0x59014d+'\x22');},async 'dryRun'(_0x1de485){const _0x2a6086=a74_0x5d0b97,_0x27b7b5=_0x1de485['num']('id'),_0x3ef3bf=await getDbLinkInfo(_0x27b7b5),_0xd28731={..._0x3ef3bf},_0x2ebe85=_0x1de485['str'](_0x2a6086(0xe2));if(_0x2ebe85)_0xd28731[_0x2a6086(0xef)]=_0x2ebe85;const _0x172c7a=_0x1de485['str'](_0x2a6086(0xec));if(_0x172c7a)_0xd28731['dbUrl']=_0x172c7a[_0x2a6086(0xf1)]();const _0xb08d86=_0x1de485[_0x2a6086(0xe6)](_0x2a6086(0xe7));if(_0xb08d86)_0xd28731[_0x2a6086(0xe7)]=_0xb08d86;const _0x43e321=_0x1de485[_0x2a6086(0xe6)](_0x2a6086(0xeb));if(_0x43e321)_0xd28731[_0x2a6086(0xeb)]=_0x43e321;const _0x22002d=_0x1de485[_0x2a6086(0xe6)]('dbparam');if(_0x22002d)_0xd28731[_0x2a6086(0xdf)]=_0x22002d;const _0x3c8ea8=_0x1de485[_0x2a6086(0xe6)](_0x2a6086(0xe9));if(_0x3c8ea8)_0xd28731[_0x2a6086(0xe4)]=_0x3c8ea8;const _0x3b97f0=sanitizeDbLinkForOutput(_0xd28731);return{'method':'POST','url':'/smartapi/dblink/update','body':_0x3b97f0,'description':_0x2a6086(0xea)};},async 'execute'(_0x1a153e){const _0xd11547=a74_0x5d0b97,_0x348054=_0x1a153e[_0xd11547(0xe1)]('id'),_0x1c393d=await getDbLinkInfo(_0x348054),_0x4e798d={..._0x1c393d},_0x30961b=_0x1a153e['str']('dbname');if(_0x30961b)_0x4e798d[_0xd11547(0xef)]=_0x30961b;const _0x24f2bb=_0x1a153e[_0xd11547(0xe6)](_0xd11547(0xec));if(_0x24f2bb)_0x4e798d[_0xd11547(0xf0)]=_0x24f2bb['trim']();const _0x5bd025=_0x1a153e[_0xd11547(0xe6)]('username');if(_0x5bd025)_0x4e798d[_0xd11547(0xe7)]=_0x5bd025;const _0x1e8e4c=_0x1a153e[_0xd11547(0xe6)](_0xd11547(0xeb));if(_0x1e8e4c)_0x4e798d['password']=_0x1e8e4c;const _0x7de784=_0x1a153e['str']('dbparam');if(_0x7de784)_0x4e798d[_0xd11547(0xdf)]=_0x7de784;const _0x48a4f0=_0x1a153e[_0xd11547(0xe6)](_0xd11547(0xe9));if(_0x48a4f0)_0x4e798d[_0xd11547(0xe4)]=_0x48a4f0;const {id:_0x1cfe5f,entity:_0x2ad592}=normalizeEntityWithIdResponse(await updateDbLink(_0x4e798d));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2ad592),'message':_0xd11547(0xee)+(_0x1cfe5f??_0x348054)};}};function a74_0x36d6(_0x58cda9,_0x4300f7){_0x58cda9=_0x58cda9-0xd8;const _0x1e0f01=a74_0x1e0f();let _0x36d68d=_0x1e0f01[_0x58cda9];return _0x36d68d;}function a74_0x1e0f(){const _0x24f0d9=['6499790XJtFHS','7mybJoN','validation','8XEawHU','dbparam','3261045ajdhkS','1164621qPtGQG','210432yHCIMW','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','write','3471480QsPNCS','9ucVDBJ','string','dbParam','New\x20database\x20name','num','dbname','New\x20username','dbDesc','2559498mhyRrF','str','username','New\x20description','dbdesc','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','password','dburl','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','Updated\x20db\x20link\x20','dbName','dbUrl','trim','New\x20host:port','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','New\x20connection\x20parameter\x20string','update','1271084yEfYXL'];a74_0x1e0f=function(){return _0x24f0d9;};return a74_0x1e0f();}
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
const a75_0x2132a1=a75_0x4730;(function(_0x4de58c,_0x2ab3d7){const _0x238596=a75_0x4730,_0x301cba=_0x4de58c();while(!![]){try{const _0xa69e41=parseInt(_0x238596(0x154))/0x1*(-parseInt(_0x238596(0x156))/0x2)+parseInt(_0x238596(0x198))/0x3*(-parseInt(_0x238596(0x17c))/0x4)+parseInt(_0x238596(0x17a))/0x5+parseInt(_0x238596(0x186))/0x6+parseInt(_0x238596(0x166))/0x7*(-parseInt(_0x238596(0x193))/0x8)+parseInt(_0x238596(0x144))/0x9*(parseInt(_0x238596(0x172))/0xa)+parseInt(_0x238596(0x176))/0xb;if(_0xa69e41===_0x2ab3d7)break;else _0x301cba['push'](_0x301cba['shift']());}catch(_0x551229){_0x301cba['push'](_0x301cba['shift']());}}}(a75_0x4717,0x354a0));function a75_0x4730(_0x1d786e,_0x2729f7){_0x1d786e=_0x1d786e-0x142;const _0x47178f=a75_0x4717();let _0x4730eb=_0x47178f[_0x1d786e];return _0x4730eb;}import a75_0x3eafde from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';function a75_0x4717(){const _0xdda26d=['\x20\x20Config\x20JSON','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','keys','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(missing)','locale','cookie','arch','✗\x20Not\x20logged\x20in','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','1476559mppsfL','padEnd','verbose','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20found)','\x20\x20runtimeDomain:\x20\x20\x20','✗\x20Invalid\x20JSON','value','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','slice','apiDir','230AuKVwY','✓\x20Valid','length','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','4768412LzyXQv','riskLevel','currentApp','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','1381380wKSHlh','missing','4CafKrm','message','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','green','\x20\x20\x20\x20appcode:\x20\x20\x20\x20','✗\x20Expired','\x20\x20Config\x20Files','explicitAppName','729660ScDLXw','defaultApp','appcode','pageSize','Global','check','env','doctor','(not\x20set)','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apps','(set\x20via\x20file,\x20length=','\x20\x20Merged\x20Config','8yEwqYv','gray','\x20\x20Apps','format','(set,\x20length=','469089lYxqWE','read','red','11943zLsikM','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(none)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','status','\x20\x20\x20\x20accessKey:\x20\x20','log','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','(no\x20file)','bold','\x20\x20─','platform','repeat','unknown','\x20doctor','92109mVShub','\x20←\x20current','6bTvdge','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(default)','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'];a75_0x4717=function(){return _0xdda26d;};return a75_0x4717();}import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x20a701){const _0x1efdbf=a75_0x4730,_0x927009=GIT_COMMIT!==_0x1efdbf(0x152)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x1efdbf(0x170)](0x0,0xa)+')':VERSION,_0x57a8a8=buildConfigFromFlags({}),_0x31c4c4=getCookie();console['log'](),console[_0x1efdbf(0x14b)](a75_0x3eafde[_0x1efdbf(0x14e)](CLI_BIN_NAME+_0x1efdbf(0x153))),console[_0x1efdbf(0x14b)](a75_0x3eafde[_0x1efdbf(0x194)]('─'[_0x1efdbf(0x151)](0x32))),console[_0x1efdbf(0x14b)](_0x1efdbf(0x17f)+_0x927009),console[_0x1efdbf(0x14b)](_0x1efdbf(0x147)+process['version']),console[_0x1efdbf(0x14b)](_0x1efdbf(0x16f)+process[_0x1efdbf(0x150)]+'\x20'+process[_0x1efdbf(0x163)]),console[_0x1efdbf(0x14b)](),console[_0x1efdbf(0x14b)](a75_0x3eafde['bold'](_0x1efdbf(0x184))),console[_0x1efdbf(0x14b)](a75_0x3eafde['gray'](_0x1efdbf(0x14f)['repeat'](0x1e)));const _0x4290d0=getGlobalConfigPath(),_0x546ad9=getProjectConfigPath();console[_0x1efdbf(0x14b)](_0x1efdbf(0x18f)+(_0x4290d0||a75_0x3eafde[_0x1efdbf(0x194)](_0x1efdbf(0x16a)))),console['log'](_0x1efdbf(0x169)+(_0x546ad9||a75_0x3eafde[_0x1efdbf(0x194)](_0x1efdbf(0x16a)))),console[_0x1efdbf(0x14b)](),console[_0x1efdbf(0x14b)](a75_0x3eafde['bold'](_0x1efdbf(0x15b))),console[_0x1efdbf(0x14b)](a75_0x3eafde[_0x1efdbf(0x194)](_0x1efdbf(0x14f)[_0x1efdbf(0x151)](0x1e)));const _0x4f1992=(_0xe41fbb,_0x5983cb)=>{const _0x59b196=_0x1efdbf;if(!_0x5983cb){console['log']('\x20\x20'+_0xe41fbb['padEnd'](0x11)+'\x20'+a75_0x3eafde[_0x59b196(0x194)](_0x59b196(0x14d)));return;}const _0x8c97b=inspectCliConfigJsonFile(_0x5983cb);if(_0x8c97b[_0x59b196(0x149)]==='ok')console[_0x59b196(0x14b)]('\x20\x20'+_0xe41fbb['padEnd'](0x11)+'\x20'+a75_0x3eafde[_0x59b196(0x181)]('✓\x20Valid\x20JSON'));else{if(_0x8c97b[_0x59b196(0x149)]==='empty')console[_0x59b196(0x14b)]('\x20\x20'+_0xe41fbb[_0x59b196(0x167)](0x11)+'\x20'+a75_0x3eafde['yellow']('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x8c97b[_0x59b196(0x149)]===_0x59b196(0x17b)?console[_0x59b196(0x14b)]('\x20\x20'+_0xe41fbb[_0x59b196(0x167)](0x11)+'\x20'+a75_0x3eafde[_0x59b196(0x194)](_0x59b196(0x160))):(console[_0x59b196(0x14b)]('\x20\x20'+_0xe41fbb['padEnd'](0x11)+'\x20'+a75_0x3eafde[_0x59b196(0x143)](_0x59b196(0x16c))),console[_0x59b196(0x14b)]('\x20\x20'+''[_0x59b196(0x167)](0x11)+'\x20'+a75_0x3eafde[_0x59b196(0x143)](_0x8c97b[_0x59b196(0x17d)])));}};_0x4f1992(_0x1efdbf(0x18a),_0x4290d0),_0x4f1992('Project',_0x546ad9),console['log'](),console[_0x1efdbf(0x14b)](a75_0x3eafde['bold'](_0x1efdbf(0x192))),console[_0x1efdbf(0x14b)](a75_0x3eafde[_0x1efdbf(0x194)](_0x1efdbf(0x14f)['repeat'](0x1e))),console[_0x1efdbf(0x14b)](_0x1efdbf(0x15d)+(_0x57a8a8['appCode']||a75_0x3eafde[_0x1efdbf(0x143)](_0x1efdbf(0x18e)))),console['log'](_0x1efdbf(0x145)+_0x57a8a8[_0x1efdbf(0x18c)]),console[_0x1efdbf(0x14b)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x57a8a8[_0x1efdbf(0x161)]),console['log'](_0x1efdbf(0x14c)+_0x57a8a8['apiDir']),console['log'](_0x1efdbf(0x16e)+(_0x57a8a8[_0x1efdbf(0x187)]||a75_0x3eafde[_0x1efdbf(0x194)](_0x1efdbf(0x146)))),console[_0x1efdbf(0x14b)](_0x1efdbf(0x17e)+(_0x57a8a8[_0x1efdbf(0x178)]||a75_0x3eafde[_0x1efdbf(0x194)]('(none)'))),console[_0x1efdbf(0x14b)]('\x20\x20explicitAppName:\x20'+(_0x57a8a8[_0x1efdbf(0x185)]||a75_0x3eafde[_0x1efdbf(0x194)]('(none)'))),console[_0x1efdbf(0x14b)](_0x1efdbf(0x158)+(_0x57a8a8[_0x1efdbf(0x196)]||a75_0x3eafde['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x1efdbf(0x14b)](_0x1efdbf(0x165)+(_0x57a8a8[_0x1efdbf(0x189)]??a75_0x3eafde[_0x1efdbf(0x194)]('(default)'))),console[_0x1efdbf(0x14b)](_0x1efdbf(0x157)+_0x57a8a8[_0x1efdbf(0x177)]),console[_0x1efdbf(0x14b)](_0x1efdbf(0x15f)+_0x57a8a8[_0x1efdbf(0x168)]),console['log']('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x57a8a8[_0x1efdbf(0x162)]?a75_0x3eafde['green']('(set,\x20length='+_0x57a8a8['cookie'][_0x1efdbf(0x174)]+')'):_0x31c4c4?a75_0x3eafde[_0x1efdbf(0x181)](_0x1efdbf(0x191)+_0x31c4c4[_0x1efdbf(0x174)]+')'):a75_0x3eafde[_0x1efdbf(0x194)]('(none)')));const _0x5871c2=Object[_0x1efdbf(0x15e)](_0x57a8a8[_0x1efdbf(0x190)]);if(_0x5871c2[_0x1efdbf(0x174)]>0x0){console['log'](),console['log'](a75_0x3eafde['bold'](_0x1efdbf(0x195))),console['log'](a75_0x3eafde[_0x1efdbf(0x194)](_0x1efdbf(0x14f)[_0x1efdbf(0x151)](0x1e)));for(const _0x58d0de of _0x5871c2){const _0x5525cd=_0x57a8a8[_0x1efdbf(0x190)][_0x58d0de],_0x38d26a=_0x58d0de===_0x57a8a8['defaultApp'],_0x2610a3=_0x58d0de===_0x57a8a8[_0x1efdbf(0x178)],_0x4bba66=_0x2610a3?a75_0x3eafde[_0x1efdbf(0x181)](_0x1efdbf(0x155)):'',_0x43e481=_0x38d26a?_0x1efdbf(0x159):'';console[_0x1efdbf(0x14b)]('\x20\x20'+_0x58d0de+_0x43e481+_0x4bba66),console[_0x1efdbf(0x14b)](_0x1efdbf(0x182)+_0x5525cd[_0x1efdbf(0x188)]);const _0x3778b6=buildAppDoctorFields(_0x5525cd,{'env':_0x57a8a8[_0x1efdbf(0x18c)],'apiDir':_0x57a8a8['raw'][_0x1efdbf(0x171)]||DEFAULT_CONFIG_VALUES[_0x1efdbf(0x171)],'cookie':_0x57a8a8[_0x1efdbf(0x162)]||_0x31c4c4||undefined,'accessKey':_0x57a8a8['accessKey']});console[_0x1efdbf(0x14b)](_0x1efdbf(0x175)+_0x3778b6['env']['value']+'\x20\x20'+a75_0x3eafde[_0x1efdbf(0x194)]('('+_0x3778b6['env']['source']+')')),console[_0x1efdbf(0x14b)](_0x1efdbf(0x180)+_0x3778b6[_0x1efdbf(0x171)][_0x1efdbf(0x16d)]+'\x20\x20'+a75_0x3eafde[_0x1efdbf(0x194)]('('+_0x3778b6[_0x1efdbf(0x171)][_0x1efdbf(0x148)]+')'));const _0x16afe9=_0x3778b6[_0x1efdbf(0x162)]['value']?a75_0x3eafde[_0x1efdbf(0x181)](_0x1efdbf(0x197)+_0x3778b6['cookie'][_0x1efdbf(0x16d)][_0x1efdbf(0x174)]+')'):a75_0x3eafde[_0x1efdbf(0x194)](_0x1efdbf(0x146));console[_0x1efdbf(0x14b)](_0x1efdbf(0x15a)+_0x16afe9+'\x20\x20'+a75_0x3eafde[_0x1efdbf(0x194)]('('+_0x3778b6[_0x1efdbf(0x162)][_0x1efdbf(0x148)]+')'));const _0x2fd174=_0x3778b6['accessKey']['value']?a75_0x3eafde[_0x1efdbf(0x181)](_0x1efdbf(0x197)+_0x3778b6['accessKey'][_0x1efdbf(0x16d)][_0x1efdbf(0x174)]+')'):a75_0x3eafde[_0x1efdbf(0x194)]('(none)');console[_0x1efdbf(0x14b)](_0x1efdbf(0x14a)+_0x2fd174+'\x20\x20'+a75_0x3eafde[_0x1efdbf(0x194)]('('+_0x3778b6['accessKey'][_0x1efdbf(0x148)]+')'));}}console[_0x1efdbf(0x14b)](),console[_0x1efdbf(0x14b)](a75_0x3eafde[_0x1efdbf(0x14e)]('\x20\x20API\x20Endpoints')),console[_0x1efdbf(0x14b)](a75_0x3eafde[_0x1efdbf(0x194)](_0x1efdbf(0x14f)[_0x1efdbf(0x151)](0x1e))),console[_0x1efdbf(0x14b)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x1efdbf(0x14b)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x1efdbf(0x14b)](_0x1efdbf(0x16b)+getRuntimeDomain()),console[_0x1efdbf(0x14b)](),console[_0x1efdbf(0x14b)](a75_0x3eafde['bold']('\x20\x20Auth')),console[_0x1efdbf(0x14b)](a75_0x3eafde[_0x1efdbf(0x194)](_0x1efdbf(0x14f)[_0x1efdbf(0x151)](0x1e)));if(_0x31c4c4){const _0x2f1a0c=await getIsSessionValid();console[_0x1efdbf(0x14b)](_0x1efdbf(0x15c)+(_0x2f1a0c?a75_0x3eafde['green'](_0x1efdbf(0x173)):a75_0x3eafde['red'](_0x1efdbf(0x183))));}else console[_0x1efdbf(0x14b)](_0x1efdbf(0x15c)+a75_0x3eafde[_0x1efdbf(0x143)](_0x1efdbf(0x164)));return console[_0x1efdbf(0x14b)](),{'ok':!![]};}export const doctorDefinition={'service':a75_0x2132a1(0x18d),'command':a75_0x2132a1(0x18b),'description':a75_0x2132a1(0x179),'risk':a75_0x2132a1(0x142),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x4eab98=a76_0xb87c;(function(_0x525a73,_0x153c68){const _0x30571e=a76_0xb87c,_0x4e6c45=_0x525a73();while(!![]){try{const _0x281f22=-parseInt(_0x30571e(0x18d))/0x1+parseInt(_0x30571e(0x1b1))/0x2*(-parseInt(_0x30571e(0x19a))/0x3)+parseInt(_0x30571e(0x187))/0x4*(-parseInt(_0x30571e(0x19d))/0x5)+-parseInt(_0x30571e(0x186))/0x6+parseInt(_0x30571e(0x183))/0x7+-parseInt(_0x30571e(0x199))/0x8*(-parseInt(_0x30571e(0x197))/0x9)+-parseInt(_0x30571e(0x18c))/0xa*(-parseInt(_0x30571e(0x19f))/0xb);if(_0x281f22===_0x153c68)break;else _0x4e6c45['push'](_0x4e6c45['shift']());}catch(_0x3b17d1){_0x4e6c45['push'](_0x4e6c45['shift']());}}}(a76_0x16d8,0x7f061));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';function a76_0xb87c(_0x4cda50,_0x6740c2){_0x4cda50=_0x4cda50-0x182;const _0x16d869=a76_0x16d8();let _0xb87c85=_0x16d869[_0x4cda50];return _0xb87c85;}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(_0x57d0d7){return{'appCode':_0x57d0d7,'appName':_0x57d0d7};}function writeInitConfig(_0x3b3209,_0x4629ac,_0x15e60f){const _0x24faae=a76_0xb87c,_0x8522f3=resolveWriteConfigPath(_0x3b3209),_0xa3dc0e=buildCanonicalProjectConfig({},{'appCodes':_0x4629ac[_0x24faae(0x1a1)](_0xb3e659=>_0xb3e659[_0x24faae(0x184)]),'env':_0x15e60f,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x24faae(0x188)]()}});writeConfigFile(_0x8522f3,_0xa3dc0e);const _0x1350a2=_0x3b3209===_0x24faae(0x19c)?_0x24faae(0x19c):_0x24faae(0x1a3);console[_0x24faae(0x1af)](_0x24faae(0x19e)+_0x1350a2+_0x24faae(0x190)),console[_0x24faae(0x1af)](_0x24faae(0x1ac)+_0x4629ac[_0x24faae(0x1a1)](_0x13e8eb=>_0x13e8eb[_0x24faae(0x184)])['join'](',\x20')),console[_0x24faae(0x1af)](_0x24faae(0x1b0)+_0xa3dc0e[_0x24faae(0x18a)]),console[_0x24faae(0x1af)](_0x24faae(0x194)+_0xa3dc0e['env']),console['log']('\x20\x20Config:\x20'+_0x8522f3);}function a76_0x16d8(){const _0x1d4d30=['检测到旧配置文件,正在自动升级...\x0a','\x20config','message','Target\x20environment','string','\x20\x20Env:\x20','env','valid','9pAArzy','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','5095624lGecYE','168WdTEaG','yes','global','5cCRmAI','\x0a✓\x20Successfully\x20initialized\x20','12630607VcaFUv','../../commands/project/init.js','map','nonInteractive','project','production','appcode','write','bool','str','Write\x20to\x20global\x20config\x20instead\x20of\x20project','boolean','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','\x20\x20Apps:\x20','validation','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','log','\x20\x20Default:\x20','3824xFKaGb','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','1477777ZaSFrz','appCode','Usage:\x20','3670182XZPQLF','1395972kUwZIN','toLocaleString','App\x20code\x20to\x20initialize\x20with','defaultApp','custom','10YXnbQo','408250MsJOtt','Use\x20`'];a76_0x16d8=function(){return _0x1d4d30;};return a76_0x16d8();}async function runSmartInit(_0x10a056){const _0x57cc52=a76_0xb87c,_0xf1f64f=process['cwd'](),_0x403c00=_0x10a056['bool'](_0x57cc52(0x19c))?'global':_0x57cc52(0x1a3),_0x166eff=_0x10a056['str']('env')||'production',_0x2f17d2=_0x10a056[_0x57cc52(0x1a8)]('appcode')||undefined,_0x55b001=_0x10a056[_0x57cc52(0x1a7)](_0x57cc52(0x1a3));if(_0x55b001){const {initConfig:_0x109533}=await import(_0x57cc52(0x1a0));return _0x109533({'appcode':_0x2f17d2,'env':_0x166eff,'autoYes':_0x10a056['bool'](_0x57cc52(0x19b))});}if(_0x403c00===_0x57cc52(0x1a3)){const _0x149418=existsSync(resolve(_0xf1f64f,NEW_CONFIG_NAME)),_0x79af68=LEGACY_CONFIG_NAMES['some'](_0x3f0362=>existsSync(resolve(_0xf1f64f,_0x3f0362)));if(_0x79af68&&!_0x149418)return console['log'](_0x57cc52(0x18f)),upgradeApp(_0x10a056['nonInteractive'],{'yes':_0x10a056[_0x57cc52(0x1a7)](_0x57cc52(0x19b))});if(_0x149418)throw CliErrors[_0x57cc52(0x1ad)](_0x57cc52(0x198),_0x57cc52(0x18e)+CLI_BIN_NAME+_0x57cc52(0x1ab));}if(_0x2f17d2){const _0x2fa693=validateAppcode(_0x2f17d2);if(!_0x2fa693[_0x57cc52(0x196)])throw CliErrors[_0x57cc52(0x1ad)](_0x2fa693[_0x57cc52(0x191)]);writeInitConfig(_0x403c00,[syntheticApp(_0x2f17d2)],_0x166eff);return;}if(_0x10a056[_0x57cc52(0x1a2)])throw CliErrors['flagMissing'](_0x57cc52(0x1a5),_0x57cc52(0x185)+CLI_BIN_NAME+_0x57cc52(0x1ae));const _0x208dc0=getCookie(),_0x1adacf=await selectMultipleApps(_0x208dc0),_0x49a8d6=_0x1adacf===_0x57cc52(0x18b)?[syntheticApp(await promptCustomAppcode())]:_0x1adacf;writeInitConfig(_0x403c00,_0x49a8d6,_0x166eff);}const initFlags=[{'name':a76_0x4eab98(0x19c),'type':a76_0x4eab98(0x1aa),'description':a76_0x4eab98(0x1a9),'default':![]},{'name':a76_0x4eab98(0x195),'type':a76_0x4eab98(0x193),'description':a76_0x4eab98(0x192),'default':a76_0x4eab98(0x1a4),'enum':[...RABETBASE_ENV_VALUES]},{'name':a76_0x4eab98(0x1a5),'type':'string','description':a76_0x4eab98(0x189)},{'name':a76_0x4eab98(0x1a3),'type':'boolean','description':a76_0x4eab98(0x182),'default':![]},{'name':a76_0x4eab98(0x19b),'type':a76_0x4eab98(0x1aa),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':'init','command':'run','description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':a76_0x4eab98(0x1a6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x345ac0){return await runSmartInit(_0x345ac0),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a77_0x50b6(_0x43ae60,_0x858cb5){_0x43ae60=_0x43ae60-0x1ed;const _0x4909b3=a77_0x4909();let _0x50b642=_0x4909b3[_0x43ae60];return _0x50b642;}(function(_0x319827,_0xd13b25){const _0x297de3=a77_0x50b6,_0x3ae926=_0x319827();while(!![]){try{const _0x5b48dc=-parseInt(_0x297de3(0x1f4))/0x1+-parseInt(_0x297de3(0x1ef))/0x2+parseInt(_0x297de3(0x1f3))/0x3*(-parseInt(_0x297de3(0x1f2))/0x4)+parseInt(_0x297de3(0x1ee))/0x5*(parseInt(_0x297de3(0x1f5))/0x6)+parseInt(_0x297de3(0x1f1))/0x7+parseInt(_0x297de3(0x1f0))/0x8*(-parseInt(_0x297de3(0x1ed))/0x9)+parseInt(_0x297de3(0x1f6))/0xa;if(_0x5b48dc===_0xd13b25)break;else _0x3ae926['push'](_0x3ae926['shift']());}catch(_0x1740bf){_0x3ae926['push'](_0x3ae926['shift']());}}}(a77_0x4909,0xafeef));function a77_0x4909(){const _0x20986e=['109135AWtSRJ','1079066dwqoVV','1081288QFNTRp','2865177bIUmQP','84gOUJgp','10077SQbvwh','1308825lzzGMl','132xWNDFe','18851760cWBuDp','9iDTWST'];a77_0x4909=function(){return _0x20986e;};return a77_0x4909();}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a78_0x5ba07b=a78_0x5882;function a78_0x5ab4(){const _0x3ca6d6=['utf8','POST','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','descriptionSource:\x20','descriptionFile:\x20','1600AUgzPC','One-line\x20issue\x20summary','join','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','issue.description','filter','4135689KWyUIx','Failed\x20to\x20report\x20platform\x20issue:\x20','string','427295etWKvA','otel://','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','147675vZoMSk','flagMissing','785yZDYdS','Issue\x20description\x20file\x20is\x20empty:\x20','287gubuLp','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','description-file','compress','description','descriptionFilePath','write','51176rddwMd','6fFYMUC','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','apiError','file','message','cwd','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','validation','length','descriptionSource','trim','File\x20not\x20found:\x20','issue.title','issue','30782kRHQoo','title','16638opicsH','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Issue\x20description\x20cannot\x20be\x20empty.','2741056OYrxda','report','inline','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','str'];a78_0x5ab4=function(){return _0x3ca6d6;};return a78_0x5ab4();}(function(_0x2a627c,_0x39100d){const _0x182538=a78_0x5882,_0x38c41e=_0x2a627c();while(!![]){try{const _0x32e9bc=-parseInt(_0x182538(0x198))/0x1+parseInt(_0x182538(0x180))/0x2*(-parseInt(_0x182538(0x172))/0x3)+-parseInt(_0x182538(0x185))/0x4+parseInt(_0x182538(0x19d))/0x5*(-parseInt(_0x182538(0x182))/0x6)+-parseInt(_0x182538(0x19f))/0x7*(-parseInt(_0x182538(0x171))/0x8)+-parseInt(_0x182538(0x195))/0x9+parseInt(_0x182538(0x18f))/0xa*(parseInt(_0x182538(0x19b))/0xb);if(_0x32e9bc===_0x39100d)break;else _0x38c41e['push'](_0x38c41e['shift']());}catch(_0x11fabc){_0x38c41e['push'](_0x38c41e['shift']());}}}(a78_0x5ab4,0x5ad56));import{existsSync}from'node:fs';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_0x5ba07b(0x16c);function a78_0x5882(_0x3150fe,_0x265729){_0x3150fe=_0x3150fe-0x16b;const _0x5ab436=a78_0x5ab4();let _0x588249=_0x5ab436[_0x3150fe];return _0x588249;}export const issueReport={'service':a78_0x5ba07b(0x17f),'command':a78_0x5ba07b(0x186),'description':a78_0x5ba07b(0x18c),'risk':a78_0x5ba07b(0x170),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a78_0x5ba07b(0x16d),'flags':[{'name':a78_0x5ba07b(0x181),'type':a78_0x5ba07b(0x197),'required':!![],'description':a78_0x5ba07b(0x190)},{'name':'description','type':a78_0x5ba07b(0x197),'description':a78_0x5ba07b(0x16b)},{'name':DESCRIPTION_FILE_FLAG,'type':a78_0x5ba07b(0x197),'description':a78_0x5ba07b(0x173)}],async 'validate'(_0x321e81){const _0x28777f=a78_0x5ba07b,_0x515906=_0x321e81[_0x28777f(0x189)](_0x28777f(0x181))['trim'](),_0x500947=_0x321e81[_0x28777f(0x189)](_0x28777f(0x16e))['trim'](),_0x30a993=_0x321e81[_0x28777f(0x189)](DESCRIPTION_FILE_FLAG)[_0x28777f(0x17c)]();if(!_0x515906)throw CliErrors[_0x28777f(0x19c)]('title','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.');const _0x5abbf8=_0x500947[_0x28777f(0x17a)]>0x0,_0x5563e9=_0x30a993[_0x28777f(0x17a)]>0x0;if(_0x5abbf8===_0x5563e9)throw CliErrors['validation'](_0x28777f(0x178),_0x28777f(0x183));if(_0x5563e9){const _0x5c13e2=resolve(process[_0x28777f(0x177)](),_0x30a993);if(!existsSync(_0x5c13e2))throw CliErrors[_0x28777f(0x179)](_0x28777f(0x17d)+_0x5c13e2);}},async 'dryRun'(_0x3a56d7){const _0x136893=a78_0x5ba07b,_0x10ace1=await prepareIssueReport(_0x3a56d7);return{'method':_0x136893(0x18b),'url':_0x136893(0x199)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x10ace1[_0x136893(0x181)],'issue.description':_0x10ace1[_0x136893(0x16e)]}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x136893(0x18d)+_0x10ace1[_0x136893(0x17b)],_0x10ace1[_0x136893(0x16f)]?_0x136893(0x18e)+_0x10ace1[_0x136893(0x16f)]:null][_0x136893(0x194)](Boolean)[_0x136893(0x191)]('\x0a')};},async 'execute'(_0x4b417c){const _0xf961ca=a78_0x5ba07b,_0x4c3fc2=await prepareIssueReport(_0x4b417c);try{await sendPlatformIssueCollectLog({'title':_0x4c3fc2['title'],'description':_0x4c3fc2[_0xf961ca(0x16e)]});}catch(_0x162955){throw CliErrors[_0xf961ca(0x174)](_0xf961ca(0x196)+(_0x162955 instanceof Error?_0x162955[_0xf961ca(0x176)]:String(_0x162955)),_0xf961ca(0x19a));}return{'ok':!![],'message':'Platform\x20issue\x20reported','data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0xf961ca(0x17e),_0xf961ca(0x193)],'issue':{'title':_0x4c3fc2[_0xf961ca(0x181)],'descriptionLength':_0x4c3fc2['description'][_0xf961ca(0x17a)],'descriptionSource':_0x4c3fc2['descriptionSource'],..._0x4c3fc2[_0xf961ca(0x16f)]?{'descriptionFile':_0x4c3fc2[_0xf961ca(0x16f)]}:{}}}};}};async function prepareIssueReport(_0x3f3020){const _0x246c58=a78_0x5ba07b,_0x303fcd=_0x3f3020[_0x246c58(0x189)]('title')[_0x246c58(0x17c)](),_0x2b0773=_0x3f3020['str']('description'),_0x7c22ff=_0x3f3020[_0x246c58(0x189)](DESCRIPTION_FILE_FLAG)[_0x246c58(0x17c)]();if(!_0x7c22ff){const _0x8701b5=_0x2b0773;if(!_0x8701b5['trim']())throw CliErrors['validation'](_0x246c58(0x184),_0x246c58(0x188));return{'title':_0x303fcd,'description':_0x8701b5,'descriptionSource':_0x246c58(0x187)};}const _0x2f7a4f=resolve(process[_0x246c58(0x177)](),_0x7c22ff),_0x26a573=await readFile(_0x2f7a4f,_0x246c58(0x18a));if(!_0x26a573[_0x246c58(0x17c)]())throw CliErrors['validation'](_0x246c58(0x19e)+_0x2f7a4f,_0x246c58(0x192));return{'title':_0x303fcd,'description':_0x26a573,'descriptionSource':_0x246c58(0x175),'descriptionFilePath':_0x2f7a4f};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a79_0x3702(){const _0x32fdf1=['clearLogs','length','clear','7466rvLWDv','duration','keys','*\x20Logs\x20cleared','message','toLocaleString','error','9PusLQL','forEach','386328jRXFLT','logs','4082730AdidaL','4154678teAMaU','timestamp','View\x20command\x20history\x20logs','show','log','*\x20Lovrabet\x20CLI\x20logs:\x0a','Clear\x20command\x20history\x20logs','9406330IjZlsX','200vTOkSx','7usWDJs','warn','stringify','\x20\x20\x20Time:\x20','40rKJdIz','138465rlPHiZ','read','\x20\x20\x20Details:\x20','details','success','write','level','en-US','4222655ZoHuaa','readLogs','\x20\x20\x20Duration:\x20'];a79_0x3702=function(){return _0x32fdf1;};return a79_0x3702();}function a79_0x2146(_0x4d4a5f,_0x41ea82){_0x4d4a5f=_0x4d4a5f-0x160;const _0x3702fd=a79_0x3702();let _0x21468a=_0x3702fd[_0x4d4a5f];return _0x21468a;}const a79_0xb98f99=a79_0x2146;(function(_0x583d63,_0x9db5fa){const _0x5a67dc=a79_0x2146,_0x1b9e55=_0x583d63();while(!![]){try{const _0x4e7ed1=parseInt(_0x5a67dc(0x17c))/0x1*(-parseInt(_0x5a67dc(0x168))/0x2)+parseInt(_0x5a67dc(0x16e))/0x3*(parseInt(_0x5a67dc(0x16d))/0x4)+parseInt(_0x5a67dc(0x176))/0x5+-parseInt(_0x5a67dc(0x187))/0x6+-parseInt(_0x5a67dc(0x169))/0x7*(-parseInt(_0x5a67dc(0x185))/0x8)+parseInt(_0x5a67dc(0x183))/0x9*(parseInt(_0x5a67dc(0x167))/0xa)+-parseInt(_0x5a67dc(0x160))/0xb;if(_0x4e7ed1===_0x9db5fa)break;else _0x1b9e55['push'](_0x1b9e55['shift']());}catch(_0x4466a6){_0x1b9e55['push'](_0x1b9e55['shift']());}}}(a79_0x3702,0x77b0c));import{logger}from'../../utils/logger.js';function printLogs(_0x458b95){const _0x58782d=a79_0x2146;if(_0x458b95[_0x58782d(0x17a)]===0x0){console[_0x58782d(0x164)]('*\x20No\x20logs\x20found');return;}console[_0x58782d(0x164)](_0x58782d(0x165)),_0x458b95[_0x58782d(0x184)]((_0x3419b3,_0x532db5)=>{const _0x65d8ab=_0x58782d,_0x26171c=new Date(_0x3419b3[_0x65d8ab(0x161)])[_0x65d8ab(0x181)](_0x65d8ab(0x175)),_0x45b149=_0x3419b3[_0x65d8ab(0x174)]===_0x65d8ab(0x172)?'√':_0x3419b3[_0x65d8ab(0x174)]===_0x65d8ab(0x182)?'×':_0x3419b3[_0x65d8ab(0x174)]===_0x65d8ab(0x16a)?'!':'i';console[_0x65d8ab(0x164)](_0x532db5+0x1+'.\x20'+_0x45b149+'\x20['+_0x3419b3['command']+']\x20'+_0x3419b3[_0x65d8ab(0x180)]),console[_0x65d8ab(0x164)](_0x65d8ab(0x16c)+_0x26171c),_0x3419b3[_0x65d8ab(0x17d)]&&console[_0x65d8ab(0x164)](_0x65d8ab(0x178)+_0x3419b3['duration']+'ms'),_0x3419b3[_0x65d8ab(0x171)]&&Object[_0x65d8ab(0x17e)](_0x3419b3[_0x65d8ab(0x171)])[_0x65d8ab(0x17a)]>0x0&&console[_0x65d8ab(0x164)](_0x65d8ab(0x170)+JSON[_0x65d8ab(0x16b)](_0x3419b3[_0x65d8ab(0x171)],null,0x2)),console[_0x65d8ab(0x164)]('');});}export const logsDefinitions=[{'service':a79_0xb98f99(0x186),'command':a79_0xb98f99(0x163),'description':a79_0xb98f99(0x162),'risk':a79_0xb98f99(0x16f),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xfdd69e){const _0x4a6775=a79_0xb98f99;return printLogs(logger[_0x4a6775(0x177)]()),{'ok':!![]};}},{'service':a79_0xb98f99(0x186),'command':a79_0xb98f99(0x17b),'description':a79_0xb98f99(0x166),'risk':a79_0xb98f99(0x173),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0xd6cfac){const _0x34e028=a79_0xb98f99;return logger[_0x34e028(0x179)](),console[_0x34e028(0x164)](_0x34e028(0x17f)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x11b4a8,_0x472123){const _0x3f55c6=a80_0x42b4,_0xed0e4=_0x11b4a8();while(!![]){try{const _0x44f10e=parseInt(_0x3f55c6(0x187))/0x1*(parseInt(_0x3f55c6(0x185))/0x2)+-parseInt(_0x3f55c6(0x186))/0x3*(-parseInt(_0x3f55c6(0x18f))/0x4)+parseInt(_0x3f55c6(0x188))/0x5*(-parseInt(_0x3f55c6(0x18c))/0x6)+parseInt(_0x3f55c6(0x18b))/0x7+-parseInt(_0x3f55c6(0x18e))/0x8*(-parseInt(_0x3f55c6(0x18d))/0x9)+-parseInt(_0x3f55c6(0x190))/0xa+-parseInt(_0x3f55c6(0x18a))/0xb*(parseInt(_0x3f55c6(0x189))/0xc);if(_0x44f10e===_0x472123)break;else _0xed0e4['push'](_0xed0e4['shift']());}catch(_0x33f34e){_0xed0e4['push'](_0xed0e4['shift']());}}}(a80_0x2005,0x4c7d6));import{menuSync}from'../../commands/menu/sync.js';function a80_0x2005(){const _0xe61ebe=['1856kvKRGD','4mQkwTV','5457310WQiBhp','873238wNxMlP','1010091gWuOYo','1ydgBcH','5vcXKGo','37428QOgujT','803LqMOvn','630763xaMjlr','1246566TGwaJA','16722qtKGBI'];a80_0x2005=function(){return _0xe61ebe;};return a80_0x2005();}function a80_0x42b4(_0x5cf95b,_0x585ecc){_0x5cf95b=_0x5cf95b-0x185;const _0x20054c=a80_0x2005();let _0x42b44d=_0x20054c[_0x5cf95b];return _0x42b44d;}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a81_0x48c7(_0x58e001,_0x59ae50){_0x58e001=_0x58e001-0x1d9;const _0xadf326=a81_0xadf3();let _0x48c71c=_0xadf326[_0x58e001];return _0x48c71c;}(function(_0x51c370,_0x24f71e){const _0x56ad00=a81_0x48c7,_0x1f6adb=_0x51c370();while(!![]){try{const _0x5433f3=-parseInt(_0x56ad00(0x1ea))/0x1+parseInt(_0x56ad00(0x1e1))/0x2*(parseInt(_0x56ad00(0x1dc))/0x3)+-parseInt(_0x56ad00(0x1f3))/0x4+-parseInt(_0x56ad00(0x1ef))/0x5+-parseInt(_0x56ad00(0x1da))/0x6+-parseInt(_0x56ad00(0x1e6))/0x7*(parseInt(_0x56ad00(0x1f0))/0x8)+parseInt(_0x56ad00(0x1e8))/0x9*(parseInt(_0x56ad00(0x1e7))/0xa);if(_0x5433f3===_0x24f71e)break;else _0x1f6adb['push'](_0x1f6adb['shift']());}catch(_0x54b906){_0x1f6adb['push'](_0x1f6adb['shift']());}}}(a81_0xadf3,0x7c174));function a81_0xadf3(){const _0x26ea02=['join','max','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','\x20\x20Affected\x20menus:\x20','1235345VPiMuy','2968oGKjvo','Local','repeat','162120tKJLAA','Platform','online','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','map','push','4503522kfyoyh','label','9akGHZm','(unchanged)','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','test','\x20\x20No\x20pages\x20to\x20sync.','578652OTKpSl','path','\x20\x20\x20\x20JS:\x20\x20','\x20\x20\x20\x20•\x20','length','11389WMPKcV','10CkiCtR','14061888PGBZRE','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','280331GXAtQw'];a81_0xadf3=function(){return _0x26ea02;};return a81_0xadf3();}function strWidth(_0x62f9ba){const _0x323b92=a81_0x48c7;let _0x27223f=0x0;for(const _0xba2279 of _0x62f9ba){_0x27223f+=/[\u4e00-\u9fa5]/[_0x323b92(0x1df)](_0xba2279)?0x2:0x1;}return _0x27223f;}function padRight(_0x49ff2f,_0x23a0fb){const _0x5d0991=a81_0x48c7,_0x3231d6=strWidth(_0x49ff2f);return _0x49ff2f+'\x20'[_0x5d0991(0x1f2)](Math[_0x5d0991(0x1ec)](0x0,_0x23a0fb-_0x3231d6));}export function renderCompareTable(_0x5a2399,_0x1d6dca={}){const _0x17a3ba=a81_0x48c7;if(_0x5a2399[_0x17a3ba(0x1e5)]===0x0)return'';const _0x2a1191=_0x1d6dca['showOnline']??!![],_0x53c0b4=Math[_0x17a3ba(0x1ec)](0x1e,..._0x5a2399[_0x17a3ba(0x1f7)](_0xa001f3=>strWidth(_0xa001f3[_0x17a3ba(0x1db)]))),_0x5ec05d=0x4,_0x3781e7=[],_0x52408d='\x20\x20'+padRight('Menu\x20Name',_0x53c0b4),_0x88fe15=padRight(_0x17a3ba(0x1f1),_0x5ec05d),_0x532a0e=_0x2a1191?'\x20\x20'+padRight(_0x17a3ba(0x1f4),_0x5ec05d):'';_0x3781e7[_0x17a3ba(0x1d9)](_0x52408d+'\x20\x20'+_0x88fe15+(_0x2a1191?_0x532a0e:'')),_0x3781e7[_0x17a3ba(0x1d9)]('\x20\x20'+'─'[_0x17a3ba(0x1f2)](_0x53c0b4)+'\x20\x20'+'─'[_0x17a3ba(0x1f2)](_0x5ec05d)+(_0x2a1191?'\x20\x20'+'─'[_0x17a3ba(0x1f2)](_0x5ec05d):''));for(const _0x506afe of _0x5a2399){const _0x267dd3=padRight(_0x506afe[_0x17a3ba(0x1db)],_0x53c0b4),_0x4039d6=_0x506afe['local']?'✓':'✗',_0x2b68f4=padRight(_0x4039d6,_0x5ec05d);let _0x8855f7='\x20\x20'+_0x267dd3+'\x20\x20'+_0x2b68f4;if(_0x2a1191){const _0x15c3d5=_0x506afe[_0x17a3ba(0x1f5)]?'✓':'✗';_0x8855f7+='\x20\x20'+padRight(_0x15c3d5,_0x5ec05d);}_0x3781e7[_0x17a3ba(0x1d9)](_0x8855f7);}return _0x3781e7['join']('\x0a');}export function renderSyncSummary(_0x32118b,_0x377933){const _0x5c855a=a81_0x48c7;if(_0x32118b[_0x5c855a(0x1e5)]===0x0)return _0x377933?_0x5c855a(0x1f6):_0x5c855a(0x1e0);const _0x2175a8=['\x20\x20'+_0x32118b[_0x5c855a(0x1e5)]+_0x5c855a(0x1de)];for(const _0xf248ee of _0x32118b){_0x2175a8['push'](_0x5c855a(0x1e4)+_0xf248ee[_0x5c855a(0x1db)]+'\x20('+_0xf248ee[_0x5c855a(0x1e2)]+')');}return _0x2175a8[_0x5c855a(0x1eb)]('\x0a');}export function renderUpdateSummary(_0x49f02a,_0x21aee4){const _0x3a9667=a81_0x48c7;if(_0x49f02a[_0x3a9667(0x1e5)]===0x0)return _0x3a9667(0x1ed);const _0x13fa66=['\x20\x20'+_0x49f02a[_0x3a9667(0x1e5)]+_0x3a9667(0x1e9),_0x3a9667(0x1e3)+(_0x21aee4[0x0]??'(unchanged)'),'\x20\x20\x20\x20CSS:\x20'+(_0x21aee4[0x1]??_0x3a9667(0x1dd)),'',_0x3a9667(0x1ee)+_0x49f02a['join'](',\x20')];return _0x13fa66['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2824f4,_0x3ed492){var _0x41d828=a82_0x1d32,_0x278c83=_0x2824f4();while(!![]){try{var _0xf03f2c=parseInt(_0x41d828(0x80))/0x1*(-parseInt(_0x41d828(0x8b))/0x2)+-parseInt(_0x41d828(0x88))/0x3+parseInt(_0x41d828(0x85))/0x4*(-parseInt(_0x41d828(0x89))/0x5)+-parseInt(_0x41d828(0x81))/0x6*(parseInt(_0x41d828(0x83))/0x7)+-parseInt(_0x41d828(0x8a))/0x8*(parseInt(_0x41d828(0x86))/0x9)+-parseInt(_0x41d828(0x87))/0xa+-parseInt(_0x41d828(0x82))/0xb*(-parseInt(_0x41d828(0x84))/0xc);if(_0xf03f2c===_0x3ed492)break;else _0x278c83['push'](_0x278c83['shift']());}catch(_0x35889a){_0x278c83['push'](_0x278c83['shift']());}}}(a82_0x57ab,0xb9fe8));function a82_0x57ab(){var _0x463c9e=['12740600lkONMA','2241360xsRtpK','76930IKspvI','96saeqVF','463486NyUCBF','1wnbOtc','12OrWQIs','33oEOxIc','2706186BXbGoz','22008348NAdBTf','136fsbKYx','893259evAphQ'];a82_0x57ab=function(){return _0x463c9e;};return a82_0x57ab();}export*from'../../../commands/menu/shared/types.js';function a82_0x1d32(_0x579ded,_0x24b0c7){_0x579ded=_0x579ded-0x80;var _0x57ab5c=a82_0x57ab();var _0x1d32b9=_0x57ab5c[_0x579ded];return _0x1d32b9;}export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2e18b1,_0x409526){const _0x5aaef4=a83_0x4517,_0x486271=_0x2e18b1();while(!![]){try{const _0x4672ea=-parseInt(_0x5aaef4(0x180))/0x1+-parseInt(_0x5aaef4(0x170))/0x2+-parseInt(_0x5aaef4(0x17f))/0x3*(-parseInt(_0x5aaef4(0x187))/0x4)+-parseInt(_0x5aaef4(0x18d))/0x5+parseInt(_0x5aaef4(0x16b))/0x6*(-parseInt(_0x5aaef4(0x18c))/0x7)+-parseInt(_0x5aaef4(0x185))/0x8+parseInt(_0x5aaef4(0x179))/0x9*(parseInt(_0x5aaef4(0x188))/0xa);if(_0x4672ea===_0x409526)break;else _0x486271['push'](_0x486271['shift']());}catch(_0x4c361b){_0x486271['push'](_0x486271['shift']());}}}(a83_0x5f3d,0x7188f));import a83_0x24deb9 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a83_0x5708c1 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function a83_0x4517(_0x289a3c,_0x38fe9d){_0x289a3c=_0x289a3c-0x15e;const _0x5f3d44=a83_0x5f3d();let _0x4517df=_0x5f3d44[_0x289a3c];return _0x4517df;}function onCancel(_0x1a5c45){return _0x1a5c45['catch'](_0xbfa14d=>{const _0x1abe6a=a83_0x4517;if(_0xbfa14d?.[_0x1abe6a(0x168)]===_0x1abe6a(0x181))throw CliErrors[_0x1abe6a(0x167)]('Cancelled.');throw _0xbfa14d;});}export function startSpinner(_0x26ce48){const _0xe10aa5=a83_0x4517;return a83_0x5708c1({'text':_0x26ce48,'color':_0xe10aa5(0x17d)})[_0xe10aa5(0x162)]();}export function stopSpinner(_0x5dff1b,_0x2ea807,_0x466583){_0x466583?_0x5dff1b['succeed'](_0x2ea807):_0x5dff1b['fail'](_0x2ea807);}export async function askConfirm(_0x65ed3d){return onCancel(confirm({'message':_0x65ed3d,'theme':{'prefix':''}}));}export async function askJsUrl(_0x1500b2){const _0xe8bb0c=a83_0x4517;while(!![]){const _0x21fb38=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x1500b2,'theme':{'prefix':''}}));if(_0x21fb38[_0xe8bb0c(0x16e)]()==='')throw CliErrors[_0xe8bb0c(0x167)]('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/[_0xe8bb0c(0x17a)](_0x21fb38[_0xe8bb0c(0x16e)]())){console[_0xe8bb0c(0x186)](a83_0x24deb9[_0xe8bb0c(0x184)](_0xe8bb0c(0x171)));continue;}const _0x1ab8d2=startSpinner(_0xe8bb0c(0x163));try{const _0x40cb0c=await isUrlReachable(_0x21fb38[_0xe8bb0c(0x16e)]());stopSpinner(_0x1ab8d2,_0xe8bb0c(0x16c),_0x40cb0c);if(!_0x40cb0c){console['error'](a83_0x24deb9['red'](_0xe8bb0c(0x164)));continue;}return _0x21fb38[_0xe8bb0c(0x16e)]();}catch(_0x430c4f){stopSpinner(_0x1ab8d2,_0xe8bb0c(0x173),![]);throw _0x430c4f;}}}function a83_0x5f3d(){const _0x4c4467=['red','7015792ljkIsb','error','94248oSholz','550Ylungu','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','CSS\x20URL\x20check\x20failed','No\x20local\x20pages\x20found.','823655eDGVUj','3671615WprNXr','filter','\x20\x20Checking\x20CSS\x20URL\x20reachability...','gray','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','start','\x20\x20Checking\x20JS\x20URL\x20reachability...','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','label','has','cancelled','name','length','No\x20menus\x20selected.','18sthTbi','JS\x20URL\x20checked','[new]','trim','[already\x20on\x20platform]','305390Ofysvm','\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','isTTY','JS\x20URL\x20check\x20failed','path','Cancelled.','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','green','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','361377lBegzZ','test','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','stdin','cyan','\x20\x20CSS\x20URL:','111MBlQCN','498183HkRmNd','ExitPromptError','map','CSS\x20URL\x20checked'];a83_0x5f3d=function(){return _0x4c4467;};return a83_0x5f3d();}export async function askCssUrl(_0x2b90cc){const _0x5e9905=a83_0x4517;while(!![]){const _0x8771fb=await onCancel(input({'message':_0x5e9905(0x17e),'default':_0x2b90cc,'theme':{'prefix':''}}));if(_0x8771fb[_0x5e9905(0x16e)]()==='')throw CliErrors['cancelled'](_0x5e9905(0x175));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x5e9905(0x17a)](_0x8771fb[_0x5e9905(0x16e)]())){console['error'](a83_0x24deb9['red'](_0x5e9905(0x178)));continue;}const _0x4244cb=startSpinner(_0x5e9905(0x15f));try{const _0x8a4f01=await isUrlReachable(_0x8771fb[_0x5e9905(0x16e)]());stopSpinner(_0x4244cb,_0x5e9905(0x183),_0x8a4f01);if(!_0x8a4f01){console[_0x5e9905(0x186)](a83_0x24deb9[_0x5e9905(0x184)](_0x5e9905(0x189)));continue;}return _0x8771fb['trim']();}catch(_0x26a366){stopSpinner(_0x4244cb,_0x5e9905(0x18a),![]);throw _0x26a366;}}}export async function selectPages(_0x49f147,_0x475522,_0x49cc19){const _0xb68ad8=a83_0x4517,_0x248275=_0x49f147[_0xb68ad8(0x182)](_0x167b7a=>({'name':_0x167b7a['label']+'\x20\x20'+(_0x475522[_0xb68ad8(0x166)](_0x167b7a[_0xb68ad8(0x174)])?a83_0x24deb9[_0xb68ad8(0x160)](_0xb68ad8(0x16f)):a83_0x24deb9[_0xb68ad8(0x177)](_0xb68ad8(0x16d))),'value':_0x167b7a[_0xb68ad8(0x165)],'checked':_0x49cc19?_0x49cc19['includes'](_0x167b7a[_0xb68ad8(0x165)]):!_0x475522['has'](_0x167b7a[_0xb68ad8(0x174)])}));if(_0x248275[_0xb68ad8(0x169)]===0x0)throw new Error(_0xb68ad8(0x18b));const _0x52895a=await onCancel(checkbox({'message':_0xb68ad8(0x176),'choices':_0x248275,'loop':![],'theme':{'prefix':''}}));if(_0x52895a[_0xb68ad8(0x169)]===0x0)throw new Error(_0xb68ad8(0x16a));return _0x49f147[_0xb68ad8(0x15e)](_0x4d625a=>_0x52895a['includes'](_0x4d625a[_0xb68ad8(0x165)]));}export function isInteractive(){const _0x2dcee8=a83_0x4517;return process[_0x2dcee8(0x17c)][_0x2dcee8(0x172)]===!![];}export function requireInteractive(){const _0x451495=a83_0x4517;if(!isInteractive())throw new Error(_0x451495(0x161)+_0x451495(0x17b));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a84_0xb8dcfe=a84_0xc4cc;(function(_0x1e3d0c,_0x3e9498){const _0x1ec545=a84_0xc4cc,_0x1026f3=_0x1e3d0c();while(!![]){try{const _0x232e73=-parseInt(_0x1ec545(0x107))/0x1+-parseInt(_0x1ec545(0x109))/0x2*(-parseInt(_0x1ec545(0x101))/0x3)+parseInt(_0x1ec545(0xfd))/0x4+-parseInt(_0x1ec545(0x100))/0x5+parseInt(_0x1ec545(0x10a))/0x6*(-parseInt(_0x1ec545(0x108))/0x7)+parseInt(_0x1ec545(0xfe))/0x8+-parseInt(_0x1ec545(0x104))/0x9*(-parseInt(_0x1ec545(0x10b))/0xa);if(_0x232e73===_0x3e9498)break;else _0x1026f3['push'](_0x1026f3['shift']());}catch(_0x21abf5){_0x1026f3['push'](_0x1026f3['shift']());}}}(a84_0x58c9,0x723bd));import{readdirSync,statSync,readFileSync}from'fs';function a84_0x58c9(){const _0x59e08b=['3JaoLex','split','replaceAll','27TyphyW','src/pages','endsWith','181521aGCYNK','1464925jNEteV','1495718OLGDGM','12aaaigN','990530dpVCQm','index.tsx','push','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','replace','trim','match','join','.tsx','slice','1727500oQzIPn','1957824HawkIf','path','3268245kAsKwH'];a84_0x58c9=function(){return _0x59e08b;};return a84_0x58c9();}import{join,relative,resolve,sep}from'path';function a84_0xc4cc(_0x398237,_0x2fe960){_0x398237=_0x398237-0xf5;const _0x58c912=a84_0x58c9();let _0xc4cc0c=_0x58c912[_0x398237];return _0xc4cc0c;}const pagesDir=resolve(process['cwd'](),a84_0xb8dcfe(0x105));export function extractTitleFromComment(_0x59897b){const _0xb1c7bc=a84_0xb8dcfe;try{const _0x80d22c=readFileSync(_0x59897b,'utf-8'),_0x1789c4=_0x80d22c[_0xb1c7bc(0xf9)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x1789c4&&_0x1789c4[0x1]){const _0x1f5221=_0x1789c4[0x1],_0x282cea=_0x1f5221[_0xb1c7bc(0xf9)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x282cea&&_0x282cea[0x1])return _0x282cea[0x1][_0xb1c7bc(0xf8)]();}let _0x3b2306=null;const _0x15d92f=_0x80d22c[_0xb1c7bc(0xf9)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x15d92f&&_0x15d92f[0x1]&&(_0x3b2306=_0x15d92f[0x1]);if(!_0x3b2306){const _0x7a6605=_0x80d22c['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x7a6605&&_0x7a6605[0x1]&&(_0x3b2306=_0x7a6605[0x1]);}if(_0x3b2306){const _0x4e769c=new RegExp('\x5cb'+_0x3b2306+_0xb1c7bc(0xf6)),_0x401716=_0x80d22c['match'](_0x4e769c);if(_0x401716&&_0x401716[0x1])return _0x401716[0x1];return _0x3b2306;}return null;}catch(_0x3e6861){return null;}}export function getLocalPages(_0x541dde=pagesDir,_0x1cd4ca=pagesDir){const _0x2b2c84=a84_0xb8dcfe;let _0x14019a=[];const _0x2e072c=readdirSync(_0x541dde);return _0x2e072c['forEach'](_0x449d9d=>{const _0x58fd7f=a84_0xc4cc,_0x366a88=join(_0x541dde,_0x449d9d),_0x12d5f8=statSync(_0x366a88);if(_0x12d5f8&&_0x12d5f8['isDirectory']())_0x14019a=_0x14019a['concat'](getLocalPages(_0x366a88,_0x1cd4ca));else{if(_0x449d9d[_0x58fd7f(0x106)](_0x58fd7f(0xfb))){let _0x50f79d=relative(_0x1cd4ca,_0x366a88);_0x50f79d[_0x58fd7f(0x106)](_0x58fd7f(0x10c))?_0x50f79d=_0x50f79d['replace'](/index\.tsx$/,''):_0x50f79d=_0x50f79d[_0x58fd7f(0xf7)](/\.tsx$/,'');_0x50f79d['endsWith'](sep)&&(_0x50f79d=_0x50f79d[_0x58fd7f(0xfc)](0x0,-0x1));const _0x2277ef=_0x50f79d[_0x58fd7f(0x102)](sep)[_0x58fd7f(0xfa)]('/'),_0x2e57f4=extractTitleFromComment(_0x366a88),_0xb7b9df=_0x2e57f4||_0x2277ef;_0x14019a[_0x58fd7f(0xf5)]({'path':_0x2277ef[_0x58fd7f(0x103)]('$',':'),'label':_0xb7b9df});}}}),_0x14019a['filter'](_0x31bd9c=>_0x31bd9c[_0x2b2c84(0xff)]!=='');}
|