@lovrabet/rabetbase-cli 2.1.10-beta.2 → 2.1.10-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/capability.js +1 -0
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/link-create.js +1 -1
- package/lib/commands/dataset/link-delete.js +1 -1
- package/lib/commands/dataset/link-shared.js +1 -1
- package/lib/commands/dataset/link-update.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a66_0x1ccf(){const _0x3f8838=['333FrNxSR','6466980eYPDhh','delete','10HYhzuZ','13620570MKUooA','num','high-risk-write','307704CkBLMT','187364zlJCOV','Deleted\x20db\x20link\x20','41wreKoM','3266214vgtUki','1098333zFqNRX','50488boieHZ'];a66_0x1ccf=function(){return _0x3f8838;};return a66_0x1ccf();}const a66_0x3c8eac=a66_0x17ea;(function(_0x5b07a6,_0x206521){const _0x46f7f5=a66_0x17ea,_0x80dba5=_0x5b07a6();while(!![]){try{const _0x1c7fc4=parseInt(_0x46f7f5(0x83))/0x1*(-parseInt(_0x46f7f5(0x86))/0x2)+-parseInt(_0x46f7f5(0x85))/0x3+-parseInt(_0x46f7f5(0x81))/0x4*(-parseInt(_0x46f7f5(0x8a))/0x5)+-parseInt(_0x46f7f5(0x88))/0x6+parseInt(_0x46f7f5(0x84))/0x7+-parseInt(_0x46f7f5(0x80))/0x8*(-parseInt(_0x46f7f5(0x87))/0x9)+parseInt(_0x46f7f5(0x7d))/0xa;if(_0x1c7fc4===_0x206521)break;else _0x80dba5['push'](_0x80dba5['shift']());}catch(_0x4fca87){_0x80dba5['push'](_0x80dba5['shift']());}}}(a66_0x1ccf,0xd38df));function a66_0x17ea(_0x2c86c3,_0x1d076e){_0x2c86c3=_0x2c86c3-0x7d;const _0x1ccf23=a66_0x1ccf();let _0x17ea28=_0x1ccf23[_0x2c86c3];return _0x17ea28;}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':a66_0x3c8eac(0x89),'description':'Delete\x20a\x20database\x20connection\x20(dblink)\x20permanently','risk':a66_0x3c8eac(0x7f),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x5886ef){const _0x5c316f=a66_0x3c8eac,_0x4b0605=_0x5886ef[_0x5c316f(0x7e)]('id');return await deleteDbLink(_0x4b0605),{'ok':!![],'data':{'id':_0x4b0605,'deleted':!![]},'message':_0x5c316f(0x82)+_0x4b0605};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a67_0x369b2e=a67_0x92fd;function a67_0x92fd(_0x2efa35,_0x4af52f){_0x2efa35=_0x2efa35-0x93;const _0x40ad76=a67_0x40ad();let _0x92fde9=_0x40ad76[_0x2efa35];return _0x92fde9;}(function(_0x310486,_0x127841){const _0x1726f9=a67_0x92fd,_0x544f52=_0x310486();while(!![]){try{const _0x31bca1=-parseInt(_0x1726f9(0x94))/0x1*(-parseInt(_0x1726f9(0x9b))/0x2)+-parseInt(_0x1726f9(0xa2))/0x3*(-parseInt(_0x1726f9(0x96))/0x4)+parseInt(_0x1726f9(0x99))/0x5+parseInt(_0x1726f9(0x9f))/0x6+-parseInt(_0x1726f9(0x9e))/0x7*(parseInt(_0x1726f9(0xa1))/0x8)+-parseInt(_0x1726f9(0x9a))/0x9*(-parseInt(_0x1726f9(0x95))/0xa)+-parseInt(_0x1726f9(0x97))/0xb*(parseInt(_0x1726f9(0x98))/0xc);if(_0x31bca1===_0x127841)break;else _0x544f52['push'](_0x544f52['shift']());}catch(_0x5d5265){_0x544f52['push'](_0x544f52['shift']());}}}(a67_0x40ad,0xc69f7));import{getDbLinkInfo}from'../../core/api-client.js';function a67_0x40ad(){const _0x4e5657=['44912CmDMTU','9poNjDM','detail','1024399IKONtp','60mVAQrJ','1247564yZHnUa','7887qjdgol','74844uCaxni','2201735lxHcUk','2246580IXlEwo','2rUznQO','read','Get\x20one\x20database\x20connection\x20by\x20id\x20(metadata\x20+\x20analysis\x20fields;\x20password\x20redacted)','35vGLqrU','8492514RsLwma','dbName'];a67_0x40ad=function(){return _0x4e5657;};return a67_0x40ad();}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':a67_0x369b2e(0x93),'description':a67_0x369b2e(0x9d),'risk':a67_0x369b2e(0x9c),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4dae60){const _0x3ac780=a67_0x369b2e,_0x5226df=_0x4dae60['num']('id'),_0x311dbf=await getDbLinkInfo(_0x5226df);return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x311dbf),'message':'db\x20link\x20'+_0x5226df+':\x20'+_0x311dbf[_0x3ac780(0xa0)]};}};
|
package/lib/commands/db/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a68_0x579c(_0x1df060,_0x593abc){_0x1df060=_0x1df060-0x188;const _0x1e5659=a68_0x1e56();let _0x579cb5=_0x1e5659[_0x1df060];return _0x579cb5;}function a68_0x1e56(){const _0x3eff7f=['750ckRGDN','Paged\x20diff\x20between\x20live\x20database\x20schema\x20and\x20last\x20analyzed\x20snapshot\x20(new\x20/\x20deleted\x20/\x20modified\x20tables)','5121810zsTwBm','20rQTRkU','2429464xjlJcO','str','\x20row(s),\x20total\x20','number','\x20(db\x20link\x20','appCode','Filter\x20table\x20name\x20(substring\x20match\x20on\x20server)','167658FQIyif','diff','table','855009GfYZwm','2QjqHFu','5UIIePr','Page\x20size','11326LDsMCv','num','6844057FjrEkA','page','string','Page\x20index\x20(1-based)','6455256uUYkUi','length','pagesize'];a68_0x1e56=function(){return _0x3eff7f;};return a68_0x1e56();}const a68_0x2ff740=a68_0x579c;(function(_0x1e746a,_0x48a77d){const _0x3dffd3=a68_0x579c,_0x162048=_0x1e746a();while(!![]){try{const _0x241fc9=parseInt(_0x3dffd3(0x1a1))/0x1*(parseInt(_0x3dffd3(0x19d))/0x2)+-parseInt(_0x3dffd3(0x1a0))/0x3+-parseInt(_0x3dffd3(0x196))/0x4*(parseInt(_0x3dffd3(0x1a2))/0x5)+parseInt(_0x3dffd3(0x192))/0x6*(parseInt(_0x3dffd3(0x189))/0x7)+-parseInt(_0x3dffd3(0x18f))/0x8+parseInt(_0x3dffd3(0x194))/0x9+parseInt(_0x3dffd3(0x195))/0xa*(parseInt(_0x3dffd3(0x18b))/0xb);if(_0x241fc9===_0x48a77d)break;else _0x162048['push'](_0x162048['shift']());}catch(_0x3355e2){_0x162048['push'](_0x162048['shift']());}}}(a68_0x1e56,0x76300));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_0x2ff740(0x19e),'description':a68_0x2ff740(0x193),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a68_0x2ff740(0x19f),'type':a68_0x2ff740(0x18d),'description':a68_0x2ff740(0x19c)},{'name':a68_0x2ff740(0x18c),'type':a68_0x2ff740(0x199),'description':a68_0x2ff740(0x18e),'default':0x1},{'name':'pagesize','type':a68_0x2ff740(0x199),'description':a68_0x2ff740(0x188),'default':0x14}],async 'execute'(_0x470098){const _0x49f28b=a68_0x2ff740,_0x29480e=_0x470098[_0x49f28b(0x18a)]('id'),_0x7d90f4=_0x470098[_0x49f28b(0x18a)](_0x49f28b(0x18c),0x1)||0x1,_0x31e60d=_0x470098['num'](_0x49f28b(0x191),0x14)||0x14,_0xdf1786=_0x470098[_0x49f28b(0x197)](_0x49f28b(0x19f))||undefined,{totalCount:_0x51d180,tableList:_0x228cb3}=await getDbTableDiff(_0x470098[_0x49f28b(0x19b)],_0x29480e,{'pageIndex':_0x7d90f4,'pageSize':_0x31e60d,'tableName':_0xdf1786});return{'ok':!![],'data':{'dbLinkId':_0x29480e,'page':_0x7d90f4,'pageSize':_0x31e60d,'totalCount':_0x51d180,'tableList':_0x228cb3},'message':_0x228cb3[_0x49f28b(0x190)]+_0x49f28b(0x198)+_0x51d180+_0x49f28b(0x19a)+_0x29480e+')'};}};
|
package/lib/commands/db/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3460a4,_0x1fef15){const _0x3595ab=a69_0x1bf0,_0x5d7114=_0x3460a4();while(!![]){try{const _0xd7fb1b=parseInt(_0x3595ab(0xac))/0x1*(-parseInt(_0x3595ab(0xa6))/0x2)+-parseInt(_0x3595ab(0xa4))/0x3*(-parseInt(_0x3595ab(0xa3))/0x4)+-parseInt(_0x3595ab(0xa9))/0x5*(parseInt(_0x3595ab(0xab))/0x6)+-parseInt(_0x3595ab(0xa7))/0x7*(-parseInt(_0x3595ab(0xa8))/0x8)+-parseInt(_0x3595ab(0xa5))/0x9+-parseInt(_0x3595ab(0xad))/0xa+parseInt(_0x3595ab(0xaa))/0xb;if(_0xd7fb1b===_0x1fef15)break;else _0x5d7114['push'](_0x5d7114['shift']());}catch(_0x3a0724){_0x5d7114['push'](_0x5d7114['shift']());}}}(a69_0x22e8,0x22c4b));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_0x22e8(){const _0x32e11f=['1624530XtidLW','268PMDkow','3297RsbWit','1296072bzEqcA','323010rAFDIM','7SrqdKO','427640AisUwg','183845CZdaRW','5720638CUghvu','6tTxvPB','1HlSXNn'];a69_0x22e8=function(){return _0x32e11f;};return a69_0x22e8();}import{dbAnalyzeStart}from'../../commands/db/analyze-start.js';import{dbAnalyzeCancel}from'../../commands/db/analyze-cancel.js';import{dbAnalyzeStatus}from'../../commands/db/analyze-status.js';function a69_0x1bf0(_0xb2c17c,_0x49df04){_0xb2c17c=_0xb2c17c-0xa3;const _0x22e800=a69_0x22e8();let _0x1bf0e3=_0x22e800[_0xb2c17c];return _0x1bf0e3;}import{dbTables}from'../../commands/db/tables.js';import{dbDiff}from'../../commands/db/diff.js';export const dbDefinitions=[dbList,dbDetail,dbCreate,dbUpdate,dbDelete,dbTest,dbAnalyzeStart,dbAnalyzeCancel,dbAnalyzeStatus,dbTables,dbDiff];
|
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a70_0x1767a2=a70_0x333e;(function(_0x80f58f,_0x3ac2a8){const _0x40817e=a70_0x333e,_0x22799c=_0x80f58f();while(!![]){try{const _0x487754=-parseInt(_0x40817e(0x1df))/0x1+-parseInt(_0x40817e(0x1e4))/0x2*(parseInt(_0x40817e(0x1e9))/0x3)+parseInt(_0x40817e(0x1de))/0x4*(-parseInt(_0x40817e(0x1d8))/0x5)+-parseInt(_0x40817e(0x1e0))/0x6+parseInt(_0x40817e(0x1da))/0x7+-parseInt(_0x40817e(0x1e3))/0x8+parseInt(_0x40817e(0x1ea))/0x9;if(_0x487754===_0x3ac2a8)break;else _0x22799c['push'](_0x22799c['shift']());}catch(_0xa13599){_0x22799c['push'](_0x22799c['shift']());}}}(a70_0x11cf,0x52cf4));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_0x1767a2(0x1e2),'description':a70_0x1767a2(0x1eb),'risk':a70_0x1767a2(0x1e8),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a70_0x1767a2(0x1e1),'type':a70_0x1767a2(0x1e6),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a70_0x1767a2(0x1d7),'type':a70_0x1767a2(0x1e6),'description':a70_0x1767a2(0x1dc),'default':0x64}],async 'execute'(_0x588de0){const _0x370025=a70_0x1767a2,_0x51a73a=_0x588de0['num'](_0x370025(0x1e1),0x1)||0x1,_0x376a04=_0x588de0[_0x370025(0x1e7)](_0x370025(0x1d7),0x64)||0x64,{items:_0x242a69,paging:_0x35383c}=await listDbLinks(_0x588de0[_0x370025(0x1e5)],{'currentPage':_0x51a73a,'pageSize':_0x376a04}),_0x54c310=sanitizeDbLinkList(_0x242a69),_0x5b25e5=_0x35383c?_0x35383c:{'currentPage':_0x51a73a,'pageSize':_0x376a04,'rowsOnPage':_0x54c310[_0x370025(0x1db)],'totalCount':null,'note':_0x370025(0x1d6)};return{'ok':!![],'data':{'connections':_0x54c310,'paging':_0x5b25e5},'message':_0x370025(0x1d9)+_0x54c310[_0x370025(0x1db)]+_0x370025(0x1dd)};}};function a70_0x333e(_0x3af077,_0x31cbf9){_0x3af077=_0x3af077-0x1d6;const _0x11cf3c=a70_0x11cf();let _0x333e00=_0x11cf3c[_0x3af077];return _0x333e00;}function a70_0x11cf(){const _0x31a63d=['2001531OLRHGU','17555247QBiYur','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','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','pagesize','1695zMPvrQ','Found\x20','2923235yPWNKU','length','Page\x20size','\x20database\x20connection(s)','2060CcmWmI','226213BFEqmj','3208428PbxqAq','page','list','3410296TLpDIF','2XCWzBU','appCode','number','num','read'];a70_0x11cf=function(){return _0x31a63d;};return a70_0x11cf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x45bc04,_0x261fbf){const _0x122e04=a71_0x4bb5,_0x97cae2=_0x45bc04();while(!![]){try{const _0x25e9b7=parseInt(_0x122e04(0x1d8))/0x1*(-parseInt(_0x122e04(0x1de))/0x2)+-parseInt(_0x122e04(0x1c8))/0x3*(-parseInt(_0x122e04(0x1cc))/0x4)+parseInt(_0x122e04(0x1d4))/0x5+-parseInt(_0x122e04(0x1e0))/0x6*(-parseInt(_0x122e04(0x1dc))/0x7)+parseInt(_0x122e04(0x1d0))/0x8*(parseInt(_0x122e04(0x1cb))/0x9)+-parseInt(_0x122e04(0x1df))/0xa*(parseInt(_0x122e04(0x1d5))/0xb)+-parseInt(_0x122e04(0x1e5))/0xc;if(_0x25e9b7===_0x261fbf)break;else _0x97cae2['push'](_0x97cae2['shift']());}catch(_0x4ba009){_0x97cae2['push'](_0x97cae2['shift']());}}}(a71_0x1aa0,0x95c96));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x528e71){const _0x7270d=a71_0x4bb5,_0xea4ce9=_0x528e71['toLowerCase']();if(_0xea4ce9===_0x7270d(0x1cd)||_0xea4ce9===_0x7270d(0x1c7)||_0xea4ce9===_0x7270d(0x1e3))return!![];if(_0xea4ce9['includes'](_0x7270d(0x1e1))||_0xea4ce9[_0x7270d(0x1ca)](_0x7270d(0x1db))||_0xea4ce9[_0x7270d(0x1ca)](_0x7270d(0x1d6)))return!![];if(_0xea4ce9[_0x7270d(0x1ca)](_0x7270d(0x1d2))||_0xea4ce9['includes']('accesskey'))return!![];if(_0xea4ce9===_0x7270d(0x1e4)||_0xea4ce9===_0x7270d(0x1d1)||_0xea4ce9===_0x7270d(0x1cf))return!![];return![];}function a71_0x4bb5(_0x12cff1,_0x326988){_0x12cff1=_0x12cff1-0x1c5;const _0x1aa04e=a71_0x1aa0();let _0x4bb57e=_0x1aa04e[_0x12cff1];return _0x4bb57e;}export function sanitizeDbLinkForOutput(_0x4531e1){const _0x594506=a71_0x4bb5,_0x49433e={..._0x4531e1};for(const _0x90d725 of Object[_0x594506(0x1c9)](_0x49433e)){if(!shouldRedactKey(_0x90d725))continue;const _0xc37be0=_0x49433e[_0x90d725];_0xc37be0!=null&&String(_0xc37be0)['length']>0x0&&(_0x49433e[_0x90d725]=_0x594506(0x1e2));}return _0x49433e;}export function sanitizeDbLinkList(_0x2bad85){const _0x3daedc=a71_0x4bb5;return _0x2bad85[_0x3daedc(0x1ce)](_0x5114be=>sanitizeDbLinkForOutput(_0x5114be));}function a71_0x1aa0(){const _0x307e27=['credential','https://app.lovrabet.com/app/','198808sthjbB','isFinite','trim','token','4596403bFTbWK','https://daily.lovrabet.com/web-app/app/','6rFBaQJ','3135610gRpjWf','6ardRCj','secret','[redacted]','dbpassword','authorization','9844764cJZxok','number','/data/database','passwd','210465ORsvOE','keys','includes','5797971BmpGAw','56XGGfEF','password','map','jdbcurl','8EybqQg','connectionstring','privatekey','/data/er?dbId=','304450aCjojD','11pqZWsd'];a71_0x1aa0=function(){return _0x307e27;};return a71_0x1aa0();}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x1d1156){const _0x2433b4=a71_0x4bb5,_0x340b64=_0x1d1156[_0x2433b4(0x1da)]();if(!_0x340b64)return![];return DB_URL_PATTERN['test'](_0x340b64);}export function buildDbPageLinks(_0x2fca6a,_0x1b23d7){const _0x8a5760=a71_0x4bb5,_0x49f511=_0x2fca6a?.['trim']();if(!_0x49f511)return undefined;const _0x355246=typeof _0x1b23d7===_0x8a5760(0x1c5)?String(_0x1b23d7):String(_0x1b23d7??'')[_0x8a5760(0x1da)]();if(!_0x355246)return undefined;const _0x2c8b72=Number(_0x355246);if(!Number[_0x8a5760(0x1d9)](_0x2c8b72)||_0x2c8b72<=0x0)return undefined;const _0x7d9480=isDaily(normalizeEnv(getEnv()))?_0x8a5760(0x1dd)+encodeURIComponent(_0x49f511):_0x8a5760(0x1d7)+encodeURIComponent(_0x49f511),_0x2a17af=encodeURIComponent(String(_0x2c8b72));return{'databasePage':_0x7d9480+_0x8a5760(0x1c6),'erPage':_0x7d9480+_0x8a5760(0x1d3)+_0x2a17af};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x5e1c2b=a72_0x3dac;(function(_0xeac399,_0x46444d){const _0x1f65aa=a72_0x3dac,_0x47607b=_0xeac399();while(!![]){try{const _0x108750=parseInt(_0x1f65aa(0x179))/0x1+-parseInt(_0x1f65aa(0x176))/0x2+parseInt(_0x1f65aa(0x173))/0x3+-parseInt(_0x1f65aa(0x171))/0x4*(parseInt(_0x1f65aa(0x16c))/0x5)+parseInt(_0x1f65aa(0x16d))/0x6*(-parseInt(_0x1f65aa(0x178))/0x7)+parseInt(_0x1f65aa(0x170))/0x8*(parseInt(_0x1f65aa(0x172))/0x9)+parseInt(_0x1f65aa(0x174))/0xa;if(_0x108750===_0x46444d)break;else _0x47607b['push'](_0x47607b['shift']());}catch(_0x4dbc67){_0x47607b['push'](_0x47607b['shift']());}}}(a72_0x4dca,0xdeb72));function a72_0x4dca(){const _0x1e7302=['tables','1395555CIEyUz','822227MfHlTw','appCode','\x20table(s)\x20on\x20db\x20link\x20','148870vKOVZL','6JGfChb','read','length','379696eCmWFO','232Tmyxwo','18SEOwCw','2626233BTTUUt','19230950eERTfb','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','1754316USelCn'];a72_0x4dca=function(){return _0x1e7302;};return a72_0x4dca();}import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a72_0x3dac(_0x31f400,_0xa0d122){_0x31f400=_0x31f400-0x16b;const _0x4dca0c=a72_0x4dca();let _0x3dac7d=_0x4dca0c[_0x31f400];return _0x3dac7d;}export const dbTables={'service':'db','command':a72_0x5e1c2b(0x177),'description':a72_0x5e1c2b(0x175),'risk':a72_0x5e1c2b(0x16e),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x186c34){const _0x766cf=a72_0x5e1c2b,_0x5020fc=_0x186c34['num']('id'),_0x41e255=await getDbAllTableList(_0x186c34[_0x766cf(0x17a)],_0x5020fc);return{'ok':!![],'data':{'dbLinkId':_0x5020fc,'total':_0x41e255[_0x766cf(0x16f)],'tables':_0x41e255},'message':_0x41e255['length']+_0x766cf(0x16b)+_0x5020fc};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73_0x298c91=a73_0x3ec3;(function(_0x4bf200,_0x231c0e){const _0x6fd39e=a73_0x3ec3,_0x11639a=_0x4bf200();while(!![]){try{const _0x121962=parseInt(_0x6fd39e(0x128))/0x1+parseInt(_0x6fd39e(0x123))/0x2*(-parseInt(_0x6fd39e(0x120))/0x3)+parseInt(_0x6fd39e(0x117))/0x4+-parseInt(_0x6fd39e(0x11b))/0x5*(parseInt(_0x6fd39e(0x11d))/0x6)+parseInt(_0x6fd39e(0x127))/0x7*(parseInt(_0x6fd39e(0x116))/0x8)+-parseInt(_0x6fd39e(0x11a))/0x9*(-parseInt(_0x6fd39e(0x11e))/0xa)+parseInt(_0x6fd39e(0x126))/0xb*(parseInt(_0x6fd39e(0x11c))/0xc);if(_0x121962===_0x231c0e)break;else _0x11639a['push'](_0x11639a['shift']());}catch(_0x579e7d){_0x11639a['push'](_0x11639a['shift']());}}}(a73_0x2cae,0xe7b24));import{testDbLinkConnect}from'../../core/api-client.js';function a73_0x3ec3(_0x3e82ab,_0x1316d1){_0x3e82ab=_0x3e82ab-0x115;const _0x2cae2f=a73_0x2cae();let _0x3ec320=_0x2cae2f[_0x3e82ab];return _0x3ec320;}function a73_0x2cae(){const _0x262610=['12976NENOQe','792376SfvHuS','success','test','667098zAdWAI','5DRNqRI','10662072TzpSAy','3034248yJcblx','50cbBpQL','num','39129LYfqja','Connection\x20OK\x20for\x20db\x20link\x20','Connection\x20check\x20finished\x20for\x20db\x20link\x20','278HlnbMK','keys','code','11lLrRWT','2212uJoQMp','1297951reUIhc','object','data','read'];a73_0x2cae=function(){return _0x262610;};return a73_0x2cae();}import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function summarizeTestConnectResult(_0x4f044e){const _0x456837=a73_0x3ec3;if(_0x4f044e===!![]||_0x4f044e===![])return{'success':_0x4f044e};if(_0x4f044e===null||_0x4f044e===undefined)return{'type':typeof _0x4f044e};if(typeof _0x4f044e!==_0x456837(0x129))return{'type':typeof _0x4f044e};const _0x4846e8=_0x4f044e,_0x50ce90=[_0x456837(0x118),'message',_0x456837(0x125),'error','msg',_0x456837(0x12a)],_0x50268a={};for(const _0x30c2b8 of _0x50ce90){if(_0x30c2b8 in _0x4846e8)_0x50268a[_0x30c2b8]=_0x4846e8[_0x30c2b8];}return Object[_0x456837(0x124)](_0x50268a)['length']===0x0&&(_0x50268a[_0x456837(0x124)]=Object[_0x456837(0x124)](_0x4846e8)['slice'](0x0,0x14)),_0x50268a;}export const dbTest={'service':'db','command':a73_0x298c91(0x119),'description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':a73_0x298c91(0x115),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1f13a6){const _0x3364ea=a73_0x298c91,_0x4baea0=_0x1f13a6[_0x3364ea(0x11f)]('id'),_0x21bf09=await testDbLinkConnect(_0x4baea0),_0x3ee4a7=_0x21bf09===!![]||typeof _0x21bf09==='object'&&_0x21bf09!==null&&_0x21bf09[_0x3364ea(0x118)]===!![],_0x1de409=summarizeTestConnectResult(_0x21bf09);return{'ok':!![],'data':{'id':_0x4baea0,'connected':Boolean(_0x3ee4a7),'result':_0x1de409},'message':_0x3ee4a7?_0x3364ea(0x121)+_0x4baea0:_0x3364ea(0x122)+_0x4baea0+'\x20(see\x20data.result)'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a74_0x196c(_0x4bee94,_0x24acdc){_0x4bee94=_0x4bee94-0x19a;const _0x127e58=a74_0x127e();let _0x196ccd=_0x127e58[_0x4bee94];return _0x196ccd;}const a74_0xb27ef4=a74_0x196c;(function(_0x12cf73,_0x13e4f6){const _0x30e193=a74_0x196c,_0x52a281=_0x12cf73();while(!![]){try{const _0x4a5e5a=-parseInt(_0x30e193(0x1a5))/0x1+-parseInt(_0x30e193(0x19a))/0x2*(-parseInt(_0x30e193(0x1b9))/0x3)+parseInt(_0x30e193(0x1bd))/0x4+-parseInt(_0x30e193(0x1b2))/0x5+parseInt(_0x30e193(0x1bc))/0x6*(-parseInt(_0x30e193(0x1a4))/0x7)+-parseInt(_0x30e193(0x1a1))/0x8*(parseInt(_0x30e193(0x1b7))/0x9)+-parseInt(_0x30e193(0x1b8))/0xa*(-parseInt(_0x30e193(0x1ae))/0xb);if(_0x4a5e5a===_0x13e4f6)break;else _0x52a281['push'](_0x52a281['shift']());}catch(_0x3bf0b4){_0x52a281['push'](_0x52a281['shift']());}}}(a74_0x127e,0x5f47b));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a74_0x127e(){const _0x5ae4f6=['2214BvSgAr','dbName','New\x20database\x20name','num','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','dbUrl','update','56EutLyh','POST','New\x20connection\x20parameter\x20string','2226wbEEls','229826BpmAWy','dbparam','New\x20description','Updated\x20db\x20link\x20','trim','string','Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview','dbdesc','password','4411kBtmFt','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','str','dbParam','1195020svwkws','validation','dburl','username','dbDesc','848412qVvzGL','34530aYzUHE','9UkHpnG','dbname','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','12BcvFwY','526540bJtwrT'];a74_0x127e=function(){return _0x5ae4f6;};return a74_0x127e();}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_0xb27ef4(0x1a0),'description':a74_0xb27ef4(0x1af),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a74_0xb27ef4(0x1ba),'type':'string','description':a74_0xb27ef4(0x19c)},{'name':a74_0xb27ef4(0x1b4),'type':a74_0xb27ef4(0x1aa),'description':'New\x20host:port'},{'name':a74_0xb27ef4(0x1b5),'type':a74_0xb27ef4(0x1aa),'description':'New\x20username'},{'name':a74_0xb27ef4(0x1ad),'type':a74_0xb27ef4(0x1aa),'description':a74_0xb27ef4(0x1bb)},{'name':a74_0xb27ef4(0x1a6),'type':a74_0xb27ef4(0x1aa),'description':a74_0xb27ef4(0x1a3)},{'name':'dbdesc','type':'string','description':a74_0xb27ef4(0x1a7)}],async 'validate'(_0x1d1ff8){const _0x213667=a74_0xb27ef4,_0x2028f4=_0x1d1ff8['str']('dburl');if(_0x2028f4&&!validateDbUrl(_0x2028f4[_0x213667(0x1a9)]()))throw CliErrors[_0x213667(0x1b3)](_0x213667(0x19e)+_0x2028f4+'\x22');},async 'dryRun'(_0x53c58b){const _0x5384e6=a74_0xb27ef4,_0x6057ea=_0x53c58b[_0x5384e6(0x19d)]('id'),_0x1c3d0e=await getDbLinkInfo(_0x6057ea),_0x1b9f9c={..._0x1c3d0e},_0x3e0745=_0x53c58b[_0x5384e6(0x1b0)](_0x5384e6(0x1ba));if(_0x3e0745)_0x1b9f9c[_0x5384e6(0x19b)]=_0x3e0745;const _0x1c7d18=_0x53c58b[_0x5384e6(0x1b0)](_0x5384e6(0x1b4));if(_0x1c7d18)_0x1b9f9c[_0x5384e6(0x19f)]=_0x1c7d18[_0x5384e6(0x1a9)]();const _0xc8d93a=_0x53c58b['str'](_0x5384e6(0x1b5));if(_0xc8d93a)_0x1b9f9c[_0x5384e6(0x1b5)]=_0xc8d93a;const _0x5a9d2c=_0x53c58b[_0x5384e6(0x1b0)]('password');if(_0x5a9d2c)_0x1b9f9c[_0x5384e6(0x1ad)]=_0x5a9d2c;const _0x5bbaa9=_0x53c58b[_0x5384e6(0x1b0)](_0x5384e6(0x1a6));if(_0x5bbaa9)_0x1b9f9c[_0x5384e6(0x1b1)]=_0x5bbaa9;const _0x49e130=_0x53c58b[_0x5384e6(0x1b0)](_0x5384e6(0x1ac));if(_0x49e130)_0x1b9f9c[_0x5384e6(0x1b6)]=_0x49e130;const _0x5a30ec=sanitizeDbLinkForOutput(_0x1b9f9c);return{'method':_0x5384e6(0x1a2),'url':'/smartapi/dblink/update','body':_0x5a30ec,'description':_0x5384e6(0x1ab)};},async 'execute'(_0x5b9fd7){const _0x436779=a74_0xb27ef4,_0x41f161=_0x5b9fd7['num']('id'),_0x34c118=await getDbLinkInfo(_0x41f161),_0x5a0baf={..._0x34c118},_0x377021=_0x5b9fd7[_0x436779(0x1b0)](_0x436779(0x1ba));if(_0x377021)_0x5a0baf[_0x436779(0x19b)]=_0x377021;const _0x4b761d=_0x5b9fd7[_0x436779(0x1b0)](_0x436779(0x1b4));if(_0x4b761d)_0x5a0baf['dbUrl']=_0x4b761d[_0x436779(0x1a9)]();const _0x1ed70b=_0x5b9fd7[_0x436779(0x1b0)](_0x436779(0x1b5));if(_0x1ed70b)_0x5a0baf[_0x436779(0x1b5)]=_0x1ed70b;const _0x20b611=_0x5b9fd7[_0x436779(0x1b0)](_0x436779(0x1ad));if(_0x20b611)_0x5a0baf[_0x436779(0x1ad)]=_0x20b611;const _0x497908=_0x5b9fd7[_0x436779(0x1b0)](_0x436779(0x1a6));if(_0x497908)_0x5a0baf['dbParam']=_0x497908;const _0xb1ebe=_0x5b9fd7['str']('dbdesc');if(_0xb1ebe)_0x5a0baf[_0x436779(0x1b6)]=_0xb1ebe;const {id:_0x5d5f16,entity:_0x4159fb}=normalizeEntityWithIdResponse(await updateDbLink(_0x5a0baf));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x4159fb),'message':_0x436779(0x1a8)+(_0x5d5f16??_0x41f161)};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a74_0x57dd(_0xfe7595,_0x1313e7){_0xfe7595=_0xfe7595-0x177;const _0x4d0298=a74_0x4d02();let _0x57dd11=_0x4d0298[_0xfe7595];return _0x57dd11;}const a74_0x476d2b=a74_0x57dd;(function(_0x145158,_0x27c1c9){const _0x4c0d31=a74_0x57dd,_0xb54e81=_0x145158();while(!![]){try{const _0x253354=parseInt(_0x4c0d31(0x1bb))/0x1+-parseInt(_0x4c0d31(0x179))/0x2+-parseInt(_0x4c0d31(0x1a6))/0x3+-parseInt(_0x4c0d31(0x196))/0x4+parseInt(_0x4c0d31(0x1c1))/0x5*(parseInt(_0x4c0d31(0x1af))/0x6)+parseInt(_0x4c0d31(0x1b9))/0x7+parseInt(_0x4c0d31(0x19e))/0x8;if(_0x253354===_0x27c1c9)break;else _0xb54e81['push'](_0xb54e81['shift']());}catch(_0x4ed6e7){_0xb54e81['push'](_0xb54e81['shift']());}}}(a74_0x4d02,0x9895a));import a74_0x3d9271 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';import{DEFAULT_CONFIG_VALUES}from'../constant/defaults.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x3fa3eb){const _0x5bfec5=a74_0x57dd,_0x248693=GIT_COMMIT!==_0x5bfec5(0x193)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x50cebe=buildConfigFromFlags({}),_0x4dfb48=getCookie();console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x17f)](CLI_BIN_NAME+_0x5bfec5(0x1a7))),console[_0x5bfec5(0x1a9)](a74_0x3d9271['gray']('─'[_0x5bfec5(0x19d)](0x32))),console['log'](_0x5bfec5(0x1a4)+_0x248693),console['log'](_0x5bfec5(0x1c7)+process[_0x5bfec5(0x17c)]),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1be)+process['platform']+'\x20'+process[_0x5bfec5(0x19a)]),console['log'](),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x17f)](_0x5bfec5(0x19f))),console['log'](a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x1c6)[_0x5bfec5(0x19d)](0x1e)));const _0x26fa51=getGlobalConfigPath(),_0x5028da=getProjectConfigPath();console[_0x5bfec5(0x1a9)](_0x5bfec5(0x17b)+(_0x26fa51||a74_0x3d9271['gray'](_0x5bfec5(0x1bc)))),console[_0x5bfec5(0x1a9)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5028da||a74_0x3d9271[_0x5bfec5(0x1b5)]('(not\x20found)'))),console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x17f)](_0x5bfec5(0x198))),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x1b5)]('\x20\x20─'['repeat'](0x1e)));const _0x387e42=(_0x4002b9,_0x4125f1)=>{const _0x317238=_0x5bfec5;if(!_0x4125f1){console['log']('\x20\x20'+_0x4002b9[_0x317238(0x194)](0x11)+'\x20'+a74_0x3d9271[_0x317238(0x1b5)]('(no\x20file)'));return;}const _0x50a2c0=inspectCliConfigJsonFile(_0x4125f1);if(_0x50a2c0[_0x317238(0x1b8)]==='ok')console[_0x317238(0x1a9)]('\x20\x20'+_0x4002b9['padEnd'](0x11)+'\x20'+a74_0x3d9271['green'](_0x317238(0x187)));else{if(_0x50a2c0['status']==='empty')console[_0x317238(0x1a9)]('\x20\x20'+_0x4002b9[_0x317238(0x194)](0x11)+'\x20'+a74_0x3d9271[_0x317238(0x1c0)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x50a2c0[_0x317238(0x1b8)]===_0x317238(0x1c2)?console[_0x317238(0x1a9)]('\x20\x20'+_0x4002b9[_0x317238(0x194)](0x11)+'\x20'+a74_0x3d9271[_0x317238(0x1b5)](_0x317238(0x1c3))):(console[_0x317238(0x1a9)]('\x20\x20'+_0x4002b9[_0x317238(0x194)](0x11)+'\x20'+a74_0x3d9271['red'](_0x317238(0x1a2))),console[_0x317238(0x1a9)]('\x20\x20'+''['padEnd'](0x11)+'\x20'+a74_0x3d9271['red'](_0x50a2c0['message'])));}};_0x387e42(_0x5bfec5(0x1a8),_0x26fa51),_0x387e42(_0x5bfec5(0x199),_0x5028da),console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271['bold'](_0x5bfec5(0x184))),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x1c6)[_0x5bfec5(0x19d)](0x1e))),console['log'](_0x5bfec5(0x1bd)+(_0x50cebe[_0x5bfec5(0x1a5)]||a74_0x3d9271[_0x5bfec5(0x1b2)](_0x5bfec5(0x18e)))),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1b1)+_0x50cebe[_0x5bfec5(0x1c5)]),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x19b)+_0x50cebe['locale']),console['log'](_0x5bfec5(0x1b7)+_0x50cebe[_0x5bfec5(0x1aa)]),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x18f)+(_0x50cebe[_0x5bfec5(0x188)]||a74_0x3d9271['gray']('(none)'))),console[_0x5bfec5(0x1a9)]('\x20\x20currentApp:\x20\x20\x20\x20\x20\x20'+(_0x50cebe['currentApp']||a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x18c)))),console[_0x5bfec5(0x1a9)]('\x20\x20explicitAppName:\x20'+(_0x50cebe[_0x5bfec5(0x1a1)]||a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x18c)))),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x17a)+(_0x50cebe[_0x5bfec5(0x177)]||a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x17d)+DEFAULT_CONFIG_VALUES['format']+')'))),console[_0x5bfec5(0x1a9)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x50cebe['pageSize']??a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x191)))),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1c8)+_0x50cebe[_0x5bfec5(0x1ba)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x50cebe[_0x5bfec5(0x183)]),console['log'](_0x5bfec5(0x17e)+(_0x50cebe[_0x5bfec5(0x18a)]?a74_0x3d9271[_0x5bfec5(0x1b3)](_0x5bfec5(0x1ac)+_0x50cebe[_0x5bfec5(0x18a)][_0x5bfec5(0x182)]+')'):_0x4dfb48?a74_0x3d9271[_0x5bfec5(0x1b3)](_0x5bfec5(0x18b)+_0x4dfb48[_0x5bfec5(0x182)]+')'):a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x18c))));const _0x97f110=Object[_0x5bfec5(0x1a0)](_0x50cebe[_0x5bfec5(0x1b6)]);if(_0x97f110['length']>0x0){console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271['bold'](_0x5bfec5(0x18d))),console['log'](a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x1c6)[_0x5bfec5(0x19d)](0x1e)));for(const _0x3b24b3 of _0x97f110){const _0x2e3b2e=_0x50cebe['apps'][_0x3b24b3],_0x433b93=_0x3b24b3===_0x50cebe['defaultApp'],_0x3fdc48=_0x3b24b3===_0x50cebe[_0x5bfec5(0x189)],_0xbabe=_0x3fdc48?a74_0x3d9271[_0x5bfec5(0x1b3)](_0x5bfec5(0x195)):'',_0x2319d3=_0x433b93?_0x5bfec5(0x1ab):'';console[_0x5bfec5(0x1a9)]('\x20\x20'+_0x3b24b3+_0x2319d3+_0xbabe),console[_0x5bfec5(0x1a9)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x2e3b2e['appcode']);const _0xb0bbf1=buildAppDoctorFields(_0x2e3b2e,{'env':_0x50cebe[_0x5bfec5(0x1c5)],'apiDir':_0x50cebe[_0x5bfec5(0x1b0)]['apiDir']||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x50cebe['cookie']||_0x4dfb48||undefined,'accessKey':_0x50cebe[_0x5bfec5(0x186)]});console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1ae)+_0xb0bbf1[_0x5bfec5(0x1c5)][_0x5bfec5(0x19c)]+'\x20\x20'+a74_0x3d9271[_0x5bfec5(0x1b5)]('('+_0xb0bbf1['env'][_0x5bfec5(0x178)]+')')),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x192)+_0xb0bbf1[_0x5bfec5(0x1aa)][_0x5bfec5(0x19c)]+'\x20\x20'+a74_0x3d9271['gray']('('+_0xb0bbf1[_0x5bfec5(0x1aa)][_0x5bfec5(0x178)]+')'));const _0x55eef4=_0xb0bbf1[_0x5bfec5(0x18a)][_0x5bfec5(0x19c)]?a74_0x3d9271['green']('(set,\x20length='+_0xb0bbf1[_0x5bfec5(0x18a)][_0x5bfec5(0x19c)][_0x5bfec5(0x182)]+')'):a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x18c));console[_0x5bfec5(0x1a9)]('\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20'+_0x55eef4+'\x20\x20'+a74_0x3d9271[_0x5bfec5(0x1b5)]('('+_0xb0bbf1[_0x5bfec5(0x18a)]['source']+')'));const _0x1d3414=_0xb0bbf1[_0x5bfec5(0x186)]['value']?a74_0x3d9271['green'](_0x5bfec5(0x1ac)+_0xb0bbf1[_0x5bfec5(0x186)][_0x5bfec5(0x19c)][_0x5bfec5(0x182)]+')'):a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x18c));console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1ca)+_0x1d3414+'\x20\x20'+a74_0x3d9271['gray']('('+_0xb0bbf1[_0x5bfec5(0x186)][_0x5bfec5(0x178)]+')'));}}console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271['bold'](_0x5bfec5(0x1b4))),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x1b5)](_0x5bfec5(0x1c6)['repeat'](0x1e))),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x185)+getApiDomain()),console[_0x5bfec5(0x1a9)](_0x5bfec5(0x197)+getUserDomain()),console['log'](_0x5bfec5(0x180)+getRuntimeDomain()),console[_0x5bfec5(0x1a9)](),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x17f)](_0x5bfec5(0x190))),console[_0x5bfec5(0x1a9)](a74_0x3d9271[_0x5bfec5(0x1b5)]('\x20\x20─'['repeat'](0x1e)));if(_0x4dfb48){const _0x1759b3=await getIsSessionValid();console[_0x5bfec5(0x1a9)](_0x5bfec5(0x1ad)+(_0x1759b3?a74_0x3d9271[_0x5bfec5(0x1b3)]('✓\x20Valid'):a74_0x3d9271['red'](_0x5bfec5(0x181))));}else console['log'](_0x5bfec5(0x1ad)+a74_0x3d9271[_0x5bfec5(0x1b2)](_0x5bfec5(0x1c9)));return console[_0x5bfec5(0x1a9)](),{'ok':!![]};}function a74_0x4d02(){const _0x47abcd=['padEnd','\x20←\x20current','1096696BVKRlB','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','Project','arch','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','repeat','3147808RYsQnC','\x20\x20Config\x20Files','keys','explicitAppName','✗\x20Invalid\x20JSON','check','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','appCode','1141872OANEit','\x20doctor','Global','log','apiDir','\x20(default)','(set,\x20length=','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','234nABoRT','raw','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','green','\x20\x20API\x20Endpoints','gray','apps','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','4876956VMNdGh','riskLevel','289355hiVMXO','(not\x20found)','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','read','yellow','665teemov','missing','(missing)','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','env','\x20\x20─','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','\x20\x20\x20\x20accessKey:\x20\x20','format','source','209884uasetF','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','(default:\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bold','\x20\x20runtimeDomain:\x20\x20\x20','✗\x20Expired','length','verbose','\x20\x20Merged\x20Config','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','accessKey','✓\x20Valid\x20JSON','defaultApp','currentApp','cookie','(set\x20via\x20file,\x20length=','(none)','\x20\x20Apps','(not\x20set)','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20Auth','(default)','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','unknown'];a74_0x4d02=function(){return _0x47abcd;};return a74_0x4d02();}export const doctorDefinition={'service':'doctor','command':a74_0x476d2b(0x1a3),'description':a74_0x476d2b(0x1c4),'risk':a74_0x476d2b(0x1bf),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a75_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 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x22240d=a76_0x3bca;(function(_0x252bb6,_0x5a452a){const _0x367ccb=a76_0x3bca,_0x11817d=_0x252bb6();while(!![]){try{const _0x2d9cee=parseInt(_0x367ccb(0x20a))/0x1+-parseInt(_0x367ccb(0x216))/0x2*(parseInt(_0x367ccb(0x213))/0x3)+-parseInt(_0x367ccb(0x1f8))/0x4*(-parseInt(_0x367ccb(0x21f))/0x5)+-parseInt(_0x367ccb(0x221))/0x6+-parseInt(_0x367ccb(0x21e))/0x7+parseInt(_0x367ccb(0x1f9))/0x8+parseInt(_0x367ccb(0x20f))/0x9*(parseInt(_0x367ccb(0x219))/0xa);if(_0x2d9cee===_0x5a452a)break;else _0x11817d['push'](_0x11817d['shift']());}catch(_0x1614e9){_0x11817d['push'](_0x11817d['shift']());}}}(a76_0x35c0,0x60000));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';function a76_0x3bca(_0x29b50e,_0x3a6b3b){_0x29b50e=_0x29b50e-0x1f3;const _0x35c0d4=a76_0x35c0();let _0x3bca54=_0x35c0d4[_0x29b50e];return _0x3bca54;}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';function a76_0x35c0(){const _0x20df8b=['1745408pCrHSB','874880CxIucq','project','2869062irmjCt','env','\x20\x20Config:\x20','boolean','write','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','yes','16HDPjGY','3372056JchTTe','appCode','检测到旧配置文件,正在自动升级...\x0a','str','join','validation','bool','log','toLocaleString','appcode','App\x20code\x20to\x20initialize\x20with','\x20config','global','../../commands/project/init.js','\x0a✓\x20Successfully\x20initialized\x20','string','init','221054ZFUyHU','run','custom','defaultApp','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','9cgmfzV','nonInteractive','some','message','9pAAOVI','Write\x20to\x20global\x20config\x20instead\x20of\x20project','map','274438NHRpTg','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','\x20\x20Env:\x20','1899290arJdDw','Use\x20`','cwd','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','production'];a76_0x35c0=function(){return _0x20df8b;};return a76_0x35c0();}import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x5c97e0){return{'appCode':_0x5c97e0,'appName':_0x5c97e0};}function writeInitConfig(_0x106ce1,_0x2697b8,_0x1427e0){const _0x517517=a76_0x3bca,_0x1fa31b=resolveWriteConfigPath(_0x106ce1),_0x54e17a=buildCanonicalProjectConfig({},{'appCodes':_0x2697b8[_0x517517(0x215)](_0xf86f8d=>_0xf86f8d['appCode']),'env':_0x1427e0,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x517517(0x201)]()}});writeConfigFile(_0x1fa31b,_0x54e17a);const _0x476dd1=_0x106ce1==='global'?_0x517517(0x205):'project';console[_0x517517(0x200)](_0x517517(0x207)+_0x476dd1+_0x517517(0x204)),console['log']('\x20\x20Apps:\x20'+_0x2697b8['map'](_0x113cfb=>_0x113cfb[_0x517517(0x1fa)])[_0x517517(0x1fd)](',\x20')),console[_0x517517(0x200)]('\x20\x20Default:\x20'+_0x54e17a[_0x517517(0x20d)]),console[_0x517517(0x200)](_0x517517(0x218)+_0x54e17a[_0x517517(0x222)]),console[_0x517517(0x200)](_0x517517(0x1f3)+_0x1fa31b);}async function runSmartInit(_0x536679){const _0x4df3b8=a76_0x3bca,_0x10b80a=process[_0x4df3b8(0x21b)](),_0x242247=_0x536679[_0x4df3b8(0x1ff)](_0x4df3b8(0x205))?_0x4df3b8(0x205):_0x4df3b8(0x220),_0x4e056b=_0x536679[_0x4df3b8(0x1fc)](_0x4df3b8(0x222))||_0x4df3b8(0x21d),_0x84eb6f=_0x536679[_0x4df3b8(0x1fc)](_0x4df3b8(0x202))||undefined,_0x2c8f73=_0x536679[_0x4df3b8(0x1ff)](_0x4df3b8(0x220));if(_0x2c8f73){const {initConfig:_0x1e163e}=await import(_0x4df3b8(0x206));return _0x1e163e({'appcode':_0x84eb6f,'env':_0x4e056b,'autoYes':_0x536679[_0x4df3b8(0x1ff)]('yes')});}if(_0x242247===_0x4df3b8(0x220)){const _0x156328=existsSync(resolve(_0x10b80a,NEW_CONFIG_NAME)),_0x75432d=LEGACY_CONFIG_NAMES[_0x4df3b8(0x211)](_0x1175b6=>existsSync(resolve(_0x10b80a,_0x1175b6)));if(_0x75432d&&!_0x156328)return console[_0x4df3b8(0x200)](_0x4df3b8(0x1fb)),upgradeApp(_0x536679[_0x4df3b8(0x210)],{'yes':_0x536679[_0x4df3b8(0x1ff)](_0x4df3b8(0x1f7))});if(_0x156328)throw CliErrors[_0x4df3b8(0x1fe)](_0x4df3b8(0x20e),_0x4df3b8(0x21a)+CLI_BIN_NAME+_0x4df3b8(0x1f6));}if(_0x84eb6f){const _0x578ebb=validateAppcode(_0x84eb6f);if(!_0x578ebb['valid'])throw CliErrors[_0x4df3b8(0x1fe)](_0x578ebb[_0x4df3b8(0x212)]);writeInitConfig(_0x242247,[syntheticApp(_0x84eb6f)],_0x4e056b);return;}if(_0x536679[_0x4df3b8(0x210)])throw CliErrors['flagMissing'](_0x4df3b8(0x202),'Usage:\x20'+CLI_BIN_NAME+'\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]');const _0x2e26bf=getCookie(),_0x161143=await selectMultipleApps(_0x2e26bf),_0x1ab6ab=_0x161143===_0x4df3b8(0x20c)?[syntheticApp(await promptCustomAppcode())]:_0x161143;writeInitConfig(_0x242247,_0x1ab6ab,_0x4e056b);}const initFlags=[{'name':a76_0x22240d(0x205),'type':a76_0x22240d(0x1f4),'description':a76_0x22240d(0x214),'default':![]},{'name':'env','type':a76_0x22240d(0x208),'description':'Target\x20environment','default':a76_0x22240d(0x21d),'enum':[...RABETBASE_ENV_VALUES]},{'name':a76_0x22240d(0x202),'type':a76_0x22240d(0x208),'description':a76_0x22240d(0x203)},{'name':a76_0x22240d(0x220),'type':'boolean','description':a76_0x22240d(0x21c),'default':![]},{'name':a76_0x22240d(0x1f7),'type':a76_0x22240d(0x1f4),'description':'Auto-confirm\x20prompts','default':![]}];export const initDefinitions=[{'service':a76_0x22240d(0x209),'command':a76_0x22240d(0x20b),'description':a76_0x22240d(0x217),'risk':a76_0x22240d(0x1f5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x451abb){return await runSmartInit(_0x451abb),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x249357,_0xe85a51){const _0x51dd7f=a77_0x4f41,_0x2c0ba3=_0x249357();while(!![]){try{const _0x302630=-parseInt(_0x51dd7f(0xbf))/0x1+-parseInt(_0x51dd7f(0xc3))/0x2+-parseInt(_0x51dd7f(0xc8))/0x3*(-parseInt(_0x51dd7f(0xbe))/0x4)+parseInt(_0x51dd7f(0xc5))/0x5*(-parseInt(_0x51dd7f(0xc0))/0x6)+-parseInt(_0x51dd7f(0xc1))/0x7*(parseInt(_0x51dd7f(0xc7))/0x8)+parseInt(_0x51dd7f(0xc6))/0x9+-parseInt(_0x51dd7f(0xc2))/0xa*(-parseInt(_0x51dd7f(0xc4))/0xb);if(_0x302630===_0xe85a51)break;else _0x2c0ba3['push'](_0x2c0ba3['shift']());}catch(_0x2d4f34){_0x2c0ba3['push'](_0x2c0ba3['shift']());}}}(a77_0x5247,0xb70ea));function a77_0x4f41(_0x5095a9,_0x35ac1a){_0x5095a9=_0x5095a9-0xbe;const _0x5247f1=a77_0x5247();let _0x4f41b0=_0x5247f1[_0x5095a9];return _0x4f41b0;}function a77_0x5247(){const _0x3b604d=['215qdalKw','7703793pJmyhr','6092208rNakae','54687YyKQsz','92YacQgL','1374568wBASXn','52920GqWPlq','7MPDdyH','1600nIyIjS','98896wiyrjI','140206FHCAxu'];a77_0x5247=function(){return _0x3b604d;};return a77_0x5247();}import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a78_0x35570d=a78_0x42fe;(function(_0x504003,_0x5bf882){const _0x29f084=a78_0x42fe,_0x55d751=_0x504003();while(!![]){try{const _0x1d91b1=parseInt(_0x29f084(0x179))/0x1+parseInt(_0x29f084(0x168))/0x2+parseInt(_0x29f084(0x165))/0x3+parseInt(_0x29f084(0x16f))/0x4*(parseInt(_0x29f084(0x161))/0x5)+-parseInt(_0x29f084(0x15f))/0x6+parseInt(_0x29f084(0x17a))/0x7*(-parseInt(_0x29f084(0x170))/0x8)+-parseInt(_0x29f084(0x174))/0x9;if(_0x1d91b1===_0x5bf882)break;else _0x55d751['push'](_0x55d751['shift']());}catch(_0x49f6ee){_0x55d751['push'](_0x55d751['shift']());}}}(a78_0x7e84,0x99c43));import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';function a78_0x7e84(){const _0x27b6e1=['write','title','File\x20not\x20found:\x20','989983drmcOV','80101dzkckd','POST','join','Failed\x20to\x20report\x20platform\x20issue:\x20','apiError','report','compress','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','str','descriptionFile:\x20','message','issue.title','filter','issue','Issue\x20description\x20cannot\x20be\x20empty.','file','otel://','descriptionSource:\x20','trim','descriptionSource','7176948JebiUl','description-file','215PSSdjn','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','One-line\x20issue\x20summary','length','104631uiYPKH','string','issue.description','1492242iaRuBF','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','Platform\x20issue\x20reported','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.','description','utf8','10148essJYO','24GElOTu','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','validation','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','177822OPVtgE','descriptionFilePath'];a78_0x7e84=function(){return _0x27b6e1;};return a78_0x7e84();}import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';function a78_0x42fe(_0x3e4bc5,_0x2fa8df){_0x3e4bc5=_0x3e4bc5-0x155;const _0x7e84ab=a78_0x7e84();let _0x42fe2e=_0x7e84ab[_0x3e4bc5];return _0x42fe2e;}const DESCRIPTION_FILE_FLAG=a78_0x35570d(0x160);export const issueReport={'service':a78_0x35570d(0x158),'command':a78_0x35570d(0x17f),'description':a78_0x35570d(0x169),'risk':a78_0x35570d(0x176),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a78_0x35570d(0x180),'flags':[{'name':a78_0x35570d(0x177),'type':a78_0x35570d(0x166),'required':!![],'description':a78_0x35570d(0x163)},{'name':a78_0x35570d(0x16d),'type':a78_0x35570d(0x166),'description':'Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)'},{'name':DESCRIPTION_FILE_FLAG,'type':'string','description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x19638f){const _0xdc18bf=a78_0x35570d,_0x3fc25e=_0x19638f[_0xdc18bf(0x182)]('title')['trim'](),_0x10649f=_0x19638f['str']('description')['trim'](),_0x19c4a0=_0x19638f[_0xdc18bf(0x182)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x3fc25e)throw CliErrors['flagMissing']('title',_0xdc18bf(0x171));const _0x456845=_0x10649f[_0xdc18bf(0x164)]>0x0,_0x3f53=_0x19c4a0[_0xdc18bf(0x164)]>0x0;if(_0x456845===_0x3f53)throw CliErrors[_0xdc18bf(0x172)](_0xdc18bf(0x162),_0xdc18bf(0x16b));if(_0x3f53){const _0x3e4960=resolve(process['cwd'](),_0x19c4a0);if(!existsSync(_0x3e4960))throw CliErrors['validation'](_0xdc18bf(0x178)+_0x3e4960);}},async 'dryRun'(_0x548288){const _0x28226f=a78_0x35570d,_0x216837=await prepareIssueReport(_0x548288);return{'method':_0x28226f(0x17b),'url':_0x28226f(0x15b)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x216837[_0x28226f(0x177)],'issue.description':_0x216837[_0x28226f(0x16d)]}},'description':[_0x28226f(0x181),_0x28226f(0x15c)+_0x216837[_0x28226f(0x15e)],_0x216837[_0x28226f(0x175)]?_0x28226f(0x183)+_0x216837['descriptionFilePath']:null][_0x28226f(0x157)](Boolean)[_0x28226f(0x17c)]('\x0a')};},async 'execute'(_0xa89381){const _0x32d9f6=a78_0x35570d,_0x227692=await prepareIssueReport(_0xa89381);try{await sendPlatformIssueCollectLog({'title':_0x227692[_0x32d9f6(0x177)],'description':_0x227692[_0x32d9f6(0x16d)]});}catch(_0x1e13c4){throw CliErrors[_0x32d9f6(0x17e)](_0x32d9f6(0x17d)+(_0x1e13c4 instanceof Error?_0x1e13c4[_0x32d9f6(0x155)]:String(_0x1e13c4)),_0x32d9f6(0x16c));}return{'ok':!![],'message':_0x32d9f6(0x16a),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x32d9f6(0x156),_0x32d9f6(0x167)],'issue':{'title':_0x227692[_0x32d9f6(0x177)],'descriptionLength':_0x227692['description'][_0x32d9f6(0x164)],'descriptionSource':_0x227692[_0x32d9f6(0x15e)],..._0x227692[_0x32d9f6(0x175)]?{'descriptionFile':_0x227692[_0x32d9f6(0x175)]}:{}}}};}};async function prepareIssueReport(_0x1e1385){const _0x29a924=a78_0x35570d,_0x2400f5=_0x1e1385[_0x29a924(0x182)](_0x29a924(0x177))[_0x29a924(0x15d)](),_0x48b919=_0x1e1385['str'](_0x29a924(0x16d)),_0x5624a4=_0x1e1385[_0x29a924(0x182)](DESCRIPTION_FILE_FLAG)['trim']();if(!_0x5624a4){const _0x3ae809=_0x48b919;if(!_0x3ae809[_0x29a924(0x15d)]())throw CliErrors[_0x29a924(0x172)](_0x29a924(0x159),'Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.');return{'title':_0x2400f5,'description':_0x3ae809,'descriptionSource':'inline'};}const _0x2feeed=resolve(process['cwd'](),_0x5624a4),_0x32bbf0=await readFile(_0x2feeed,_0x29a924(0x16e));if(!_0x32bbf0[_0x29a924(0x15d)]())throw CliErrors['validation']('Issue\x20description\x20file\x20is\x20empty:\x20'+_0x2feeed,_0x29a924(0x173));return{'title':_0x2400f5,'description':_0x32bbf0,'descriptionSource':_0x29a924(0x15a),'descriptionFilePath':_0x2feeed};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79_0x1c6ca2=a79_0x13a1;function a79_0x13a1(_0x36e2f8,_0x3e2725){_0x36e2f8=_0x36e2f8-0x75;const _0x38f9af=a79_0x38f9();let _0x13a135=_0x38f9af[_0x36e2f8];return _0x13a135;}(function(_0xef508d,_0x3a61ea){const _0x2cc6da=a79_0x13a1,_0x270e7d=_0xef508d();while(!![]){try{const _0x3d37e3=-parseInt(_0x2cc6da(0x83))/0x1*(parseInt(_0x2cc6da(0x78))/0x2)+-parseInt(_0x2cc6da(0x76))/0x3+-parseInt(_0x2cc6da(0x7a))/0x4*(-parseInt(_0x2cc6da(0x82))/0x5)+-parseInt(_0x2cc6da(0x96))/0x6+parseInt(_0x2cc6da(0x90))/0x7+-parseInt(_0x2cc6da(0x86))/0x8*(parseInt(_0x2cc6da(0x87))/0x9)+parseInt(_0x2cc6da(0x89))/0xa*(parseInt(_0x2cc6da(0x93))/0xb);if(_0x3d37e3===_0x3a61ea)break;else _0x270e7d['push'](_0x270e7d['shift']());}catch(_0x4440c4){_0x270e7d['push'](_0x270e7d['shift']());}}}(a79_0x38f9,0x40a05));function a79_0x38f9(){const _0x20c2e6=['readLogs','*\x20Lovrabet\x20CLI\x20logs:\x0a','level','keys','message','length','5kpQXfg','14267ORECvK','details','\x20\x20\x20Duration:\x20','1138744gHooTS','27mZWcsy','command','1943930FxbYUh','en-US','*\x20Logs\x20cleared','\x20\x20\x20Details:\x20','clearLogs','success','Clear\x20command\x20history\x20logs','3604713VDrImC','logs','forEach','55GnveUL','log','*\x20No\x20logs\x20found','1999278gjEFax','show','1185129TeNIuA','\x20\x20\x20Time:\x20','74CwRwLl','duration','1843796aiBBRz','stringify'];a79_0x38f9=function(){return _0x20c2e6;};return a79_0x38f9();}import{logger}from'../../utils/logger.js';function printLogs(_0x471241){const _0x2da50c=a79_0x13a1;if(_0x471241[_0x2da50c(0x81)]===0x0){console['log'](_0x2da50c(0x95));return;}console[_0x2da50c(0x94)](_0x2da50c(0x7d)),_0x471241[_0x2da50c(0x92)]((_0x4483b0,_0x22b85d)=>{const _0x4ae12f=_0x2da50c,_0x1f782c=new Date(_0x4483b0['timestamp'])['toLocaleString'](_0x4ae12f(0x8a)),_0x1765bd=_0x4483b0['level']===_0x4ae12f(0x8e)?'√':_0x4483b0['level']==='error'?'×':_0x4483b0[_0x4ae12f(0x7e)]==='warn'?'!':'i';console['log'](_0x22b85d+0x1+'.\x20'+_0x1765bd+'\x20['+_0x4483b0[_0x4ae12f(0x88)]+']\x20'+_0x4483b0[_0x4ae12f(0x80)]),console['log'](_0x4ae12f(0x77)+_0x1f782c),_0x4483b0['duration']&&console[_0x4ae12f(0x94)](_0x4ae12f(0x85)+_0x4483b0[_0x4ae12f(0x79)]+'ms'),_0x4483b0[_0x4ae12f(0x84)]&&Object[_0x4ae12f(0x7f)](_0x4483b0[_0x4ae12f(0x84)])[_0x4ae12f(0x81)]>0x0&&console['log'](_0x4ae12f(0x8c)+JSON[_0x4ae12f(0x7b)](_0x4483b0[_0x4ae12f(0x84)],null,0x2)),console[_0x4ae12f(0x94)]('');});}export const logsDefinitions=[{'service':a79_0x1c6ca2(0x91),'command':a79_0x1c6ca2(0x75),'description':'View\x20command\x20history\x20logs','risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x4280f2){const _0x19436c=a79_0x1c6ca2;return printLogs(logger[_0x19436c(0x7c)]()),{'ok':!![]};}},{'service':a79_0x1c6ca2(0x91),'command':'clear','description':a79_0x1c6ca2(0x8f),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x5cc957){const _0x3dd03a=a79_0x1c6ca2;return logger[_0x3dd03a(0x8d)](),console['log'](_0x3dd03a(0x8b)),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x18454c,_0x41fb09){const _0x26455d=a80_0x4528,_0x35d6fe=_0x18454c();while(!![]){try{const _0x3b5257=parseInt(_0x26455d(0x1f6))/0x1+-parseInt(_0x26455d(0x1f0))/0x2*(-parseInt(_0x26455d(0x1f1))/0x3)+parseInt(_0x26455d(0x1f7))/0x4*(parseInt(_0x26455d(0x1ed))/0x5)+-parseInt(_0x26455d(0x1f5))/0x6*(-parseInt(_0x26455d(0x1f2))/0x7)+parseInt(_0x26455d(0x1ee))/0x8*(parseInt(_0x26455d(0x1f3))/0x9)+parseInt(_0x26455d(0x1ef))/0xa+-parseInt(_0x26455d(0x1f4))/0xb;if(_0x3b5257===_0x41fb09)break;else _0x35d6fe['push'](_0x35d6fe['shift']());}catch(_0x1fbb26){_0x35d6fe['push'](_0x35d6fe['shift']());}}}(a80_0x2ac8,0xddb79));function a80_0x2ac8(){const _0x508794=['584804emfkHo','1240296kIhVLs','5aTTDkF','8XuxTIJ','8247820rioLXq','3296208FIwHwv','3swfQAG','2128OcINud','1399959ZJGXHQ','36799070HVpCBt','14412oNgCfu'];a80_0x2ac8=function(){return _0x508794;};return a80_0x2ac8();}function a80_0x4528(_0x21fb58,_0x328dc9){_0x21fb58=_0x21fb58-0x1ed;const _0x2ac8b3=a80_0x2ac8();let _0x4528=_0x2ac8b3[_0x21fb58];return _0x4528;}import{menuSync}from'../../commands/menu/sync.js';import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x361f97,_0x4629ba){const _0x296ca4=a81_0x458b,_0x45f08e=_0x361f97();while(!![]){try{const _0x5367dc=parseInt(_0x296ca4(0x14f))/0x1*(-parseInt(_0x296ca4(0x15a))/0x2)+parseInt(_0x296ca4(0x147))/0x3*(parseInt(_0x296ca4(0x14b))/0x4)+parseInt(_0x296ca4(0x155))/0x5+parseInt(_0x296ca4(0x162))/0x6+parseInt(_0x296ca4(0x15b))/0x7+-parseInt(_0x296ca4(0x15d))/0x8*(-parseInt(_0x296ca4(0x150))/0x9)+parseInt(_0x296ca4(0x148))/0xa*(-parseInt(_0x296ca4(0x14d))/0xb);if(_0x5367dc===_0x4629ba)break;else _0x45f08e['push'](_0x45f08e['shift']());}catch(_0x18e00d){_0x45f08e['push'](_0x45f08e['shift']());}}}(a81_0x84e7,0x58737));function strWidth(_0x502632){const _0x152065=a81_0x458b;let _0x543bf7=0x0;for(const _0x44103 of _0x502632){_0x543bf7+=/[\u4e00-\u9fa5]/[_0x152065(0x161)](_0x44103)?0x2:0x1;}return _0x543bf7;}function padRight(_0x51f75c,_0x940078){const _0x431c48=a81_0x458b,_0x57db36=strWidth(_0x51f75c);return _0x51f75c+'\x20'['repeat'](Math[_0x431c48(0x14e)](0x0,_0x940078-_0x57db36));}function a81_0x458b(_0x669ae0,_0x327312){_0x669ae0=_0x669ae0-0x146;const _0x84e7b1=a81_0x84e7();let _0x458ba9=_0x84e7b1[_0x669ae0];return _0x458ba9;}export function renderCompareTable(_0x50a9d9,_0x692b66={}){const _0x27af50=a81_0x458b;if(_0x50a9d9[_0x27af50(0x15e)]===0x0)return'';const _0xdb6807=_0x692b66['showOnline']??!![],_0x7feb2=Math[_0x27af50(0x14e)](0x1e,..._0x50a9d9[_0x27af50(0x15c)](_0x3d5c3d=>strWidth(_0x3d5c3d[_0x27af50(0x160)]))),_0x173c18=0x4,_0x2e1de=[],_0x94fbdf='\x20\x20'+padRight(_0x27af50(0x163),_0x7feb2),_0x96299d=padRight(_0x27af50(0x153),_0x173c18),_0x4c74e5=_0xdb6807?'\x20\x20'+padRight('Platform',_0x173c18):'';_0x2e1de[_0x27af50(0x14a)](_0x94fbdf+'\x20\x20'+_0x96299d+(_0xdb6807?_0x4c74e5:'')),_0x2e1de[_0x27af50(0x14a)]('\x20\x20'+'─'[_0x27af50(0x14c)](_0x7feb2)+'\x20\x20'+'─'[_0x27af50(0x14c)](_0x173c18)+(_0xdb6807?'\x20\x20'+'─'[_0x27af50(0x14c)](_0x173c18):''));for(const _0x3e880c of _0x50a9d9){const _0x10d300=padRight(_0x3e880c['label'],_0x7feb2),_0x108a00=_0x3e880c[_0x27af50(0x151)]?'✓':'✗',_0x56ca80=padRight(_0x108a00,_0x173c18);let _0x9dc62c='\x20\x20'+_0x10d300+'\x20\x20'+_0x56ca80;if(_0xdb6807){const _0x44191e=_0x3e880c['online']?'✓':'✗';_0x9dc62c+='\x20\x20'+padRight(_0x44191e,_0x173c18);}_0x2e1de['push'](_0x9dc62c);}return _0x2e1de[_0x27af50(0x159)]('\x0a');}export function renderSyncSummary(_0x3a0327,_0x6acf07){const _0x4e0a42=a81_0x458b;if(_0x3a0327[_0x4e0a42(0x15e)]===0x0)return _0x6acf07?_0x4e0a42(0x156):'\x20\x20No\x20pages\x20to\x20sync.';const _0x3d1709=['\x20\x20'+_0x3a0327['length']+_0x4e0a42(0x154)];for(const _0x26218d of _0x3a0327){_0x3d1709[_0x4e0a42(0x14a)](_0x4e0a42(0x15f)+_0x26218d[_0x4e0a42(0x160)]+'\x20('+_0x26218d['path']+')');}return _0x3d1709[_0x4e0a42(0x159)]('\x0a');}function a81_0x84e7(){const _0x3a2455=['Menu\x20Name','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','21774QyhXRB','20ZLfHUt','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','push','160aNPiXr','repeat','11082313JnEsbY','max','3xsiYXH','432dLfdBu','local','\x20\x20\x20\x20JS:\x20\x20','Local','\x20page(s)\x20will\x20be\x20created\x20on\x20platform:','1778785HSLsDy','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','(unchanged)','\x20\x20\x20\x20CSS:\x20','join','6302Jnesat','4156159QdudPa','map','101608WMCGWs','length','\x20\x20\x20\x20•\x20','label','test','3223512qbDczB'];a81_0x84e7=function(){return _0x3a2455;};return a81_0x84e7();}export function renderUpdateSummary(_0x1f8de9,_0x388366){const _0x507933=a81_0x458b;if(_0x1f8de9[_0x507933(0x15e)]===0x0)return _0x507933(0x149);const _0x5eb4ce=['\x20\x20'+_0x1f8de9[_0x507933(0x15e)]+_0x507933(0x146),_0x507933(0x152)+(_0x388366[0x0]??'(unchanged)'),_0x507933(0x158)+(_0x388366[0x1]??_0x507933(0x157)),'','\x20\x20Affected\x20menus:\x20'+_0x1f8de9[_0x507933(0x159)](',\x20')];return _0x5eb4ce[_0x507933(0x159)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc2508c,_0x1fb841){var _0x32d40f=a82_0x43cb,_0x9ab60f=_0xc2508c();while(!![]){try{var _0x313474=parseInt(_0x32d40f(0x17f))/0x1+-parseInt(_0x32d40f(0x17d))/0x2+-parseInt(_0x32d40f(0x181))/0x3+parseInt(_0x32d40f(0x182))/0x4*(parseInt(_0x32d40f(0x17a))/0x5)+parseInt(_0x32d40f(0x17e))/0x6*(parseInt(_0x32d40f(0x17c))/0x7)+parseInt(_0x32d40f(0x180))/0x8+-parseInt(_0x32d40f(0x179))/0x9*(-parseInt(_0x32d40f(0x17b))/0xa);if(_0x313474===_0x1fb841)break;else _0x9ab60f['push'](_0x9ab60f['shift']());}catch(_0x27f498){_0x9ab60f['push'](_0x9ab60f['shift']());}}}(a82_0x46e0,0x4cd3f));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';function a82_0x46e0(){var _0x8b1f28=['3090TAnqFd','293806WfqtQS','2378672kFUjso','1806663uapmIj','92Xxgqxg','27LxNXSR','2405bhvwkU','1639490QUNdyz','4599ZqBvgK','1030994PFDhoX'];a82_0x46e0=function(){return _0x8b1f28;};return a82_0x46e0();}export*from'../../../commands/menu/shared/sync-core.js';function a82_0x43cb(_0x1014a4,_0x4d0317){_0x1014a4=_0x1014a4-0x179;var _0x46e070=a82_0x46e0();var _0x43cb53=_0x46e070[_0x1014a4];return _0x43cb53;}export*from'../../../commands/menu/shared/update-core.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x20a57d,_0x3c7443){const _0x538be6=a83_0x3b77,_0x37d9bb=_0x20a57d();while(!![]){try{const _0x2a3b53=-parseInt(_0x538be6(0x211))/0x1*(parseInt(_0x538be6(0x205))/0x2)+-parseInt(_0x538be6(0x1fd))/0x3*(-parseInt(_0x538be6(0x216))/0x4)+-parseInt(_0x538be6(0x20f))/0x5+-parseInt(_0x538be6(0x20d))/0x6*(parseInt(_0x538be6(0x20c))/0x7)+-parseInt(_0x538be6(0x1f2))/0x8*(-parseInt(_0x538be6(0x21b))/0x9)+-parseInt(_0x538be6(0x1f4))/0xa+parseInt(_0x538be6(0x214))/0xb;if(_0x2a3b53===_0x3c7443)break;else _0x37d9bb['push'](_0x37d9bb['shift']());}catch(_0x338c1d){_0x37d9bb['push'](_0x37d9bb['shift']());}}}(a83_0x3770,0x7159c));import a83_0xd9322b from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a83_0x36f258 from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x87254){const _0x4fb14b=a83_0x3b77;return _0x87254[_0x4fb14b(0x1f8)](_0x3a44ce=>{const _0x18a120=_0x4fb14b;if(_0x3a44ce?.[_0x18a120(0x20a)]==='ExitPromptError')throw CliErrors['cancelled'](_0x18a120(0x20e));throw _0x3a44ce;});}export function startSpinner(_0x10a1bc){const _0x2bb04a=a83_0x3b77;return a83_0x36f258({'text':_0x10a1bc,'color':_0x2bb04a(0x1fe)})[_0x2bb04a(0x1fc)]();}export function stopSpinner(_0x1e1c6d,_0x32f03f,_0x1e5f1f){const _0x42a10b=a83_0x3b77;_0x1e5f1f?_0x1e1c6d[_0x42a10b(0x1ff)](_0x32f03f):_0x1e1c6d[_0x42a10b(0x21d)](_0x32f03f);}export async function askConfirm(_0x274494){return onCancel(confirm({'message':_0x274494,'theme':{'prefix':''}}));}function a83_0x3b77(_0x3832ab,_0x184aff){_0x3832ab=_0x3832ab-0x1f2;const _0x37702f=a83_0x3770();let _0x3b775d=_0x37702f[_0x3832ab];return _0x3b775d;}export async function askJsUrl(_0x2a7465){const _0x593b5e=a83_0x3b77;while(!![]){const _0x3a8156=await onCancel(input({'message':_0x593b5e(0x206),'default':_0x2a7465,'theme':{'prefix':''}}));if(_0x3a8156['trim']()==='')throw CliErrors[_0x593b5e(0x204)]('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x593b5e(0x200)](_0x3a8156[_0x593b5e(0x207)]())){console[_0x593b5e(0x21e)](a83_0xd9322b[_0x593b5e(0x201)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0x16235d=startSpinner(_0x593b5e(0x217));try{const _0x4e0c85=await isUrlReachable(_0x3a8156[_0x593b5e(0x207)]());stopSpinner(_0x16235d,_0x593b5e(0x21c),_0x4e0c85);if(!_0x4e0c85){console[_0x593b5e(0x21e)](a83_0xd9322b[_0x593b5e(0x201)](_0x593b5e(0x1f7)));continue;}return _0x3a8156[_0x593b5e(0x207)]();}catch(_0x1a6dbc){stopSpinner(_0x16235d,_0x593b5e(0x21a),![]);throw _0x1a6dbc;}}}export async function askCssUrl(_0x58b152){const _0x55d8ff=a83_0x3b77;while(!![]){const _0x249ab8=await onCancel(input({'message':_0x55d8ff(0x1f9),'default':_0x58b152,'theme':{'prefix':''}}));if(_0x249ab8[_0x55d8ff(0x207)]()==='')throw CliErrors[_0x55d8ff(0x204)](_0x55d8ff(0x20e));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x55d8ff(0x200)](_0x249ab8[_0x55d8ff(0x207)]())){console[_0x55d8ff(0x21e)](a83_0xd9322b['red'](_0x55d8ff(0x209)));continue;}const _0xd4ab78=startSpinner(_0x55d8ff(0x1f3));try{const _0x189339=await isUrlReachable(_0x249ab8['trim']());stopSpinner(_0xd4ab78,'CSS\x20URL\x20checked',_0x189339);if(!_0x189339){console[_0x55d8ff(0x21e)](a83_0xd9322b[_0x55d8ff(0x201)](_0x55d8ff(0x203)));continue;}return _0x249ab8[_0x55d8ff(0x207)]();}catch(_0x84d54f){stopSpinner(_0xd4ab78,'CSS\x20URL\x20check\x20failed',![]);throw _0x84d54f;}}}export async function selectPages(_0x4c665b,_0x1dc528,_0x1c14e8){const _0x1803fc=a83_0x3b77,_0x32aece=_0x4c665b['map'](_0x108a23=>({'name':_0x108a23['label']+'\x20\x20'+(_0x1dc528[_0x1803fc(0x1fb)](_0x108a23[_0x1803fc(0x208)])?a83_0xd9322b[_0x1803fc(0x212)](_0x1803fc(0x210)):a83_0xd9322b['green'](_0x1803fc(0x1fa))),'value':_0x108a23[_0x1803fc(0x213)],'checked':_0x1c14e8?_0x1c14e8[_0x1803fc(0x215)](_0x108a23['label']):!_0x1dc528[_0x1803fc(0x1fb)](_0x108a23[_0x1803fc(0x208)])}));if(_0x32aece[_0x1803fc(0x1f5)]===0x0)throw new Error('No\x20local\x20pages\x20found.');const _0x40374=await onCancel(checkbox({'message':_0x1803fc(0x202),'choices':_0x32aece,'loop':![],'theme':{'prefix':''}}));if(_0x40374[_0x1803fc(0x1f5)]===0x0)throw new Error('No\x20menus\x20selected.');return _0x4c665b[_0x1803fc(0x20b)](_0x4c0d94=>_0x40374[_0x1803fc(0x215)](_0x4c0d94[_0x1803fc(0x213)]));}export function isInteractive(){const _0x27e868=a83_0x3b77;return process[_0x27e868(0x219)]['isTTY']===!![];}function a83_0x3770(){const _0x5646cc=['test','red','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','cancelled','10tLtAfy','\x20\x20JS\x20URL:','trim','path','\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','name','filter','7pGSrpJ','5062830hQnsQY','Cancelled.','1376105gcxjEx','[already\x20on\x20platform]','111430DulEYF','gray','label','11187407hONMKU','includes','2801444NJgWUJ','\x20\x20Checking\x20JS\x20URL\x20reachability...','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','stdin','JS\x20URL\x20check\x20failed','953694dljYzm','JS\x20URL\x20checked','fail','error','32XGZHhX','\x20\x20Checking\x20CSS\x20URL\x20reachability...','8020LPIwYq','length','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','catch','\x20\x20CSS\x20URL:','[new]','has','start','3jiCOxO','cyan','succeed'];a83_0x3770=function(){return _0x5646cc;};return a83_0x3770();}export function requireInteractive(){const _0xe9c685=a83_0x3b77;if(!isInteractive())throw new Error(_0xe9c685(0x1f6)+_0xe9c685(0x218));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a84_0x5d9119=a84_0x3bf5;(function(_0x2e963f,_0x6c81fb){const _0x41b1a0=a84_0x3bf5,_0x28be15=_0x2e963f();while(!![]){try{const _0xb36012=parseInt(_0x41b1a0(0x11e))/0x1*(parseInt(_0x41b1a0(0x114))/0x2)+-parseInt(_0x41b1a0(0x10b))/0x3*(-parseInt(_0x41b1a0(0x10c))/0x4)+-parseInt(_0x41b1a0(0x111))/0x5*(parseInt(_0x41b1a0(0x126))/0x6)+-parseInt(_0x41b1a0(0x10e))/0x7*(-parseInt(_0x41b1a0(0x10f))/0x8)+parseInt(_0x41b1a0(0x117))/0x9*(-parseInt(_0x41b1a0(0x11c))/0xa)+-parseInt(_0x41b1a0(0x113))/0xb*(parseInt(_0x41b1a0(0x115))/0xc)+-parseInt(_0x41b1a0(0x119))/0xd*(-parseInt(_0x41b1a0(0x127))/0xe);if(_0xb36012===_0x6c81fb)break;else _0x28be15['push'](_0x28be15['shift']());}catch(_0x28cae7){_0x28be15['push'](_0x28be15['shift']());}}}(a84_0x55c7,0xebfcf));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a84_0x5d9119(0x116)](),'src/pages');function a84_0x55c7(){const _0x3e3741=['53691tCRGwR','1248NIlNns','156rfywGR','cwd','45nxtNMY','endsWith','5590039oOuWbf','.tsx','slice','2579330orvlcA','isDirectory','1358mMXdjo','path','replace','concat','index.tsx','replaceAll','forEach','trim','6HYJeHE','14WZWcMc','utf-8','2265Nxnyau','3620mlnAkR','join','602dzcnIm','50544cxtAnQ','push','921465Utpymk','match'];a84_0x55c7=function(){return _0x3e3741;};return a84_0x55c7();}function a84_0x3bf5(_0x134ea7,_0x2d79f3){_0x134ea7=_0x134ea7-0x10b;const _0x55c767=a84_0x55c7();let _0x3bf532=_0x55c767[_0x134ea7];return _0x3bf532;}export function extractTitleFromComment(_0x34d37e){const _0x25f405=a84_0x5d9119;try{const _0x7aac73=readFileSync(_0x34d37e,_0x25f405(0x128)),_0x45a554=_0x7aac73[_0x25f405(0x112)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x45a554&&_0x45a554[0x1]){const _0x22fd3c=_0x45a554[0x1],_0x5b5c25=_0x22fd3c[_0x25f405(0x112)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x5b5c25&&_0x5b5c25[0x1])return _0x5b5c25[0x1][_0x25f405(0x125)]();}let _0x130830=null;const _0x534847=_0x7aac73['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x534847&&_0x534847[0x1]&&(_0x130830=_0x534847[0x1]);if(!_0x130830){const _0x4db907=_0x7aac73[_0x25f405(0x112)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x4db907&&_0x4db907[0x1]&&(_0x130830=_0x4db907[0x1]);}if(_0x130830){const _0x55fae8=new RegExp('\x5cb'+_0x130830+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x2d0074=_0x7aac73[_0x25f405(0x112)](_0x55fae8);if(_0x2d0074&&_0x2d0074[0x1])return _0x2d0074[0x1];return _0x130830;}return null;}catch(_0x504924){return null;}}export function getLocalPages(_0x934ca0=pagesDir,_0x312c30=pagesDir){const _0x4b2c29=a84_0x5d9119;let _0x3595bc=[];const _0x46180d=readdirSync(_0x934ca0);return _0x46180d[_0x4b2c29(0x124)](_0x452916=>{const _0x502f64=_0x4b2c29,_0x4b8d11=join(_0x934ca0,_0x452916),_0xe89594=statSync(_0x4b8d11);if(_0xe89594&&_0xe89594[_0x502f64(0x11d)]())_0x3595bc=_0x3595bc[_0x502f64(0x121)](getLocalPages(_0x4b8d11,_0x312c30));else{if(_0x452916[_0x502f64(0x118)](_0x502f64(0x11a))){let _0x503f62=relative(_0x312c30,_0x4b8d11);_0x503f62[_0x502f64(0x118)](_0x502f64(0x122))?_0x503f62=_0x503f62[_0x502f64(0x120)](/index\.tsx$/,''):_0x503f62=_0x503f62['replace'](/\.tsx$/,'');_0x503f62[_0x502f64(0x118)](sep)&&(_0x503f62=_0x503f62[_0x502f64(0x11b)](0x0,-0x1));const _0x153929=_0x503f62['split'](sep)[_0x502f64(0x10d)]('/'),_0x6aac59=extractTitleFromComment(_0x4b8d11),_0x4e84f2=_0x6aac59||_0x153929;_0x3595bc[_0x502f64(0x110)]({'path':_0x153929[_0x502f64(0x123)]('$',':'),'label':_0x4e84f2});}}}),_0x3595bc['filter'](_0x1e476d=>_0x1e476d[_0x4b2c29(0x11f)]!=='');}
|