@lovrabet/rabetbase-cli 2.1.7-beta.4 → 2.1.7-beta.6
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/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/link-create.js +1 -1
- package/lib/commands/dataset/link-delete.js +1 -1
- package/lib/commands/dataset/link-shared.js +1 -1
- package/lib/commands/dataset/link-update.js +1 -1
- package/lib/commands/dataset/links.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a68_0x3bab39=a68_0x4bc0;(function(_0x138da2,_0x20ab6c){const _0x3c2cc6=a68_0x4bc0,_0x2e06d5=_0x138da2();while(!![]){try{const _0x28b4a3=parseInt(_0x3c2cc6(0xbf))/0x1*(parseInt(_0x3c2cc6(0xbd))/0x2)+parseInt(_0x3c2cc6(0xb7))/0x3*(-parseInt(_0x3c2cc6(0xba))/0x4)+parseInt(_0x3c2cc6(0xb1))/0x5*(parseInt(_0x3c2cc6(0xc1))/0x6)+-parseInt(_0x3c2cc6(0xb4))/0x7+-parseInt(_0x3c2cc6(0xbb))/0x8+-parseInt(_0x3c2cc6(0xb3))/0x9+-parseInt(_0x3c2cc6(0xc5))/0xa*(-parseInt(_0x3c2cc6(0xb9))/0xb);if(_0x28b4a3===_0x20ab6c)break;else _0x2e06d5['push'](_0x2e06d5['shift']());}catch(_0x4e99ff){_0x2e06d5['push'](_0x2e06d5['shift']());}}}(a68_0x1ac6,0x1d237));import{listDbLinks}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a68_0x4bc0(_0x571b97,_0x13b759){_0x571b97=_0x571b97-0xb1;const _0x1ac648=a68_0x1ac6();let _0x4bc07e=_0x1ac648[_0x571b97];return _0x4bc07e;}import{sanitizeDbLinkList}from'../../commands/db/shared.js';export const dbList={'service':'db','command':a68_0x3bab39(0xbc),'description':'List\x20database\x20connections\x20(dblinks)\x20for\x20the\x20current\x20app\x20with\x20analysis\x20status\x20—\x20for\x20AI\x20to\x20pick\x20ids\x20before\x20db\x20detail\x20/\x20analyze\x20/\x20tables','risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a68_0x3bab39(0xc4),'type':a68_0x3bab39(0xb8),'description':'Page\x20index\x20(1-based)','default':0x1},{'name':a68_0x3bab39(0xb2),'type':'number','description':a68_0x3bab39(0xc6),'default':0x64}],async 'execute'(_0x453872){const _0x526abd=a68_0x3bab39,_0x1234b5=_0x453872['num'](_0x526abd(0xc4),0x1)||0x1,_0x1c2694=_0x453872[_0x526abd(0xb5)]('pagesize',0x64)||0x64,{items:_0x4ef50e,paging:_0x12e712}=await listDbLinks(_0x453872[_0x526abd(0xc3)],{'currentPage':_0x1234b5,'pageSize':_0x1c2694}),_0x27b2b8=sanitizeDbLinkList(_0x4ef50e),_0x41fe35=_0x12e712?_0x12e712:{'currentPage':_0x1234b5,'pageSize':_0x1c2694,'rowsOnPage':_0x27b2b8[_0x526abd(0xc0)],'totalCount':null,'note':_0x526abd(0xc2)};return{'ok':!![],'data':{'connections':_0x27b2b8,'paging':_0x41fe35},'message':_0x526abd(0xb6)+_0x27b2b8[_0x526abd(0xc0)]+_0x526abd(0xbe)};}};function a68_0x1ac6(){const _0x2fc13f=['page','281110eTpVWw','Page\x20size','1011860UItlxd','pagesize','1076625JmFzkv','1275666kdosnr','num','Found\x20','226743UqplRI','number','209tiybfN','12sdrXUj','1475728KUUrTY','list','154VZciJj','\x20database\x20connection(s)','1246yzeXyU','length','6qxmexN','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','appCode'];a68_0x1ac6=function(){return _0x2fc13f;};return a68_0x1ac6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a69_0x3f55(){const _0x2f2b2c=['number','340qIAZEN','2wiPBSR','keys','passwd','token','credential','password','38751DXmMmY','3504640wvfxhU','dbpassword','map','length','42878XJapof','/data/er?dbId=','54BdqGCZ','https://app.lovrabet.com/app/','236iEFbbF','privatekey','secret','connectionstring','accesskey','trim','465458ZdNKBj','toLowerCase','893212MruekO','jdbcurl','includes','test','isFinite','3380664jnkkaW','6612237AClRCW'];a69_0x3f55=function(){return _0x2f2b2c;};return a69_0x3f55();}(function(_0x4ffc4c,_0x14d78a){const _0x245bd9=a69_0x1dcb,_0x4dcb57=_0x4ffc4c();while(!![]){try{const _0x2977fe=parseInt(_0x245bd9(0x137))/0x1*(parseInt(_0x245bd9(0x140))/0x2)+parseInt(_0x245bd9(0x126))/0x3*(-parseInt(_0x245bd9(0x12f))/0x4)+-parseInt(_0x245bd9(0x127))/0x5+-parseInt(_0x245bd9(0x12d))/0x6*(-parseInt(_0x245bd9(0x135))/0x7)+-parseInt(_0x245bd9(0x13c))/0x8+parseInt(_0x245bd9(0x13d))/0x9+-parseInt(_0x245bd9(0x13f))/0xa*(-parseInt(_0x245bd9(0x12b))/0xb);if(_0x2977fe===_0x14d78a)break;else _0x4dcb57['push'](_0x4dcb57['shift']());}catch(_0x3ec2bc){_0x4dcb57['push'](_0x4dcb57['shift']());}}}(a69_0x3f55,0x738b5));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x2fef7d){const _0x411e3=a69_0x1dcb,_0x36eec2=_0x2fef7d[_0x411e3(0x136)]();if(_0x36eec2===_0x411e3(0x125)||_0x36eec2===_0x411e3(0x122)||_0x36eec2===_0x411e3(0x128))return!![];if(_0x36eec2[_0x411e3(0x139)](_0x411e3(0x131))||_0x36eec2[_0x411e3(0x139)](_0x411e3(0x123))||_0x36eec2[_0x411e3(0x139)](_0x411e3(0x124)))return!![];if(_0x36eec2[_0x411e3(0x139)](_0x411e3(0x130))||_0x36eec2[_0x411e3(0x139)](_0x411e3(0x133)))return!![];if(_0x36eec2==='authorization'||_0x36eec2===_0x411e3(0x132)||_0x36eec2===_0x411e3(0x138))return!![];return![];}export function sanitizeDbLinkForOutput(_0x302c44){const _0x44b883=a69_0x1dcb,_0x1eb153={..._0x302c44};for(const _0x33e5dd of Object[_0x44b883(0x121)](_0x1eb153)){if(!shouldRedactKey(_0x33e5dd))continue;const _0x492f21=_0x1eb153[_0x33e5dd];_0x492f21!=null&&String(_0x492f21)[_0x44b883(0x12a)]>0x0&&(_0x1eb153[_0x33e5dd]='[redacted]');}return _0x1eb153;}function a69_0x1dcb(_0xa49769,_0x11a75d){_0xa49769=_0xa49769-0x121;const _0x3f55ac=a69_0x3f55();let _0x1dcbf4=_0x3f55ac[_0xa49769];return _0x1dcbf4;}export function sanitizeDbLinkList(_0x77cdda){const _0x4792b1=a69_0x1dcb;return _0x77cdda[_0x4792b1(0x129)](_0x1ad2a7=>sanitizeDbLinkForOutput(_0x1ad2a7));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;export function validateDbUrl(_0x506b1d){const _0x4e0bdd=a69_0x1dcb,_0x417258=_0x506b1d[_0x4e0bdd(0x134)]();if(!_0x417258)return![];return DB_URL_PATTERN[_0x4e0bdd(0x13a)](_0x417258);}export function buildDbPageLinks(_0x6f6729,_0x5243ee){const _0x255699=a69_0x1dcb,_0x2c3799=_0x6f6729?.[_0x255699(0x134)]();if(!_0x2c3799)return undefined;const _0x41ac7c=typeof _0x5243ee===_0x255699(0x13e)?String(_0x5243ee):String(_0x5243ee??'')[_0x255699(0x134)]();if(!_0x41ac7c)return undefined;const _0x443934=Number(_0x41ac7c);if(!Number[_0x255699(0x13b)](_0x443934)||_0x443934<=0x0)return undefined;const _0x4e0062=isDaily(normalizeEnv(getEnv()))?'https://daily.lovrabet.com/web-app/app/'+encodeURIComponent(_0x2c3799):_0x255699(0x12e)+encodeURIComponent(_0x2c3799),_0x1f8d7a=encodeURIComponent(String(_0x443934));return{'databasePage':_0x4e0062+'/data/database','erPage':_0x4e0062+_0x255699(0x12c)+_0x1f8d7a};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a70_0x8c537d=a70_0x5911;function a70_0x2025(){const _0x40b468=['153MfONGZ','3SgmtbT','132375ufRKQd','8433ktmsdl','2878887NiiKrA','162rzvTQe','3129URwTtb','read','appCode','36FOEYAU','110540ahykib','129106bUcGPB','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','1466179lJFkcD','num','796CZndhj','length','\x20table(s)\x20on\x20db\x20link\x20','27960GpNFgD'];a70_0x2025=function(){return _0x40b468;};return a70_0x2025();}function a70_0x5911(_0x5d975c,_0x5b4add){_0x5d975c=_0x5d975c-0x160;const _0x20251e=a70_0x2025();let _0x591121=_0x20251e[_0x5d975c];return _0x591121;}(function(_0xc1f6db,_0xae3160){const _0x3bdd44=a70_0x5911,_0x2bc475=_0xc1f6db();while(!![]){try{const _0x2e40f3=-parseInt(_0x3bdd44(0x16d))/0x1*(-parseInt(_0x3bdd44(0x164))/0x2)+-parseInt(_0x3bdd44(0x16f))/0x3*(-parseInt(_0x3bdd44(0x168))/0x4)+-parseInt(_0x3bdd44(0x16e))/0x5*(-parseInt(_0x3bdd44(0x171))/0x6)+parseInt(_0x3bdd44(0x172))/0x7*(-parseInt(_0x3bdd44(0x16b))/0x8)+-parseInt(_0x3bdd44(0x16c))/0x9*(-parseInt(_0x3bdd44(0x163))/0xa)+parseInt(_0x3bdd44(0x170))/0xb*(parseInt(_0x3bdd44(0x162))/0xc)+parseInt(_0x3bdd44(0x166))/0xd;if(_0x2e40f3===_0xae3160)break;else _0x2bc475['push'](_0x2bc475['shift']());}catch(_0xb92c95){_0x2bc475['push'](_0x2bc475['shift']());}}}(a70_0x2025,0xf20e4));import{getDbAllTableList}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbTables={'service':'db','command':'tables','description':a70_0x8c537d(0x165),'risk':a70_0x8c537d(0x160),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x2532c0){const _0x47d2df=a70_0x8c537d,_0x2815d6=_0x2532c0[_0x47d2df(0x167)]('id'),_0x3b5a13=await getDbAllTableList(_0x2532c0[_0x47d2df(0x161)],_0x2815d6);return{'ok':!![],'data':{'dbLinkId':_0x2815d6,'total':_0x3b5a13[_0x47d2df(0x169)],'tables':_0x3b5a13},'message':_0x3b5a13[_0x47d2df(0x169)]+_0x47d2df(0x16a)+_0x2815d6};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1af40b,_0x2aecf0){const _0x17d821=a71_0x256e,_0x3511b4=_0x1af40b();while(!![]){try{const _0x2f3205=-parseInt(_0x17d821(0xc6))/0x1+parseInt(_0x17d821(0xd4))/0x2+parseInt(_0x17d821(0xd3))/0x3*(-parseInt(_0x17d821(0xca))/0x4)+-parseInt(_0x17d821(0xc8))/0x5*(parseInt(_0x17d821(0xd2))/0x6)+parseInt(_0x17d821(0xc7))/0x7+parseInt(_0x17d821(0xcf))/0x8*(parseInt(_0x17d821(0xce))/0x9)+-parseInt(_0x17d821(0xc9))/0xa*(-parseInt(_0x17d821(0xcc))/0xb);if(_0x2f3205===_0x2aecf0)break;else _0x3511b4['push'](_0x3511b4['shift']());}catch(_0x2b9088){_0x3511b4['push'](_0x3511b4['shift']());}}}(a71_0x38c9,0x3d279));function a71_0x38c9(){const _0x315645=['\x20(see\x20data.result)','error','num','slice','Connection\x20check\x20finished\x20for\x20db\x20link\x20','475609sUFyLY','1404081MeQDRc','530hCDkuO','8921410AGCgdE','20yQTJhb','Connection\x20OK\x20for\x20db\x20link\x20','11Mpgnug','keys','9gnzoiQ','431056rleyHN','object','success','27228pOtQdW','166227vNpoeX','675130hJHanc','msg'];a71_0x38c9=function(){return _0x315645;};return a71_0x38c9();}import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a71_0x256e(_0x4d128e,_0x410022){_0x4d128e=_0x4d128e-0xc1;const _0x38c925=a71_0x38c9();let _0x256e4e=_0x38c925[_0x4d128e];return _0x256e4e;}function summarizeTestConnectResult(_0x1e6b08){const _0x2a5319=a71_0x256e;if(_0x1e6b08===!![]||_0x1e6b08===![])return{'success':_0x1e6b08};if(_0x1e6b08===null||_0x1e6b08===undefined)return{'type':typeof _0x1e6b08};if(typeof _0x1e6b08!==_0x2a5319(0xd0))return{'type':typeof _0x1e6b08};const _0x4fcae0=_0x1e6b08,_0x395a32=[_0x2a5319(0xd1),'message','code',_0x2a5319(0xc2),_0x2a5319(0xd5),'data'],_0x2c1e72={};for(const _0x551526 of _0x395a32){if(_0x551526 in _0x4fcae0)_0x2c1e72[_0x551526]=_0x4fcae0[_0x551526];}return Object[_0x2a5319(0xcd)](_0x2c1e72)['length']===0x0&&(_0x2c1e72[_0x2a5319(0xcd)]=Object[_0x2a5319(0xcd)](_0x4fcae0)[_0x2a5319(0xc4)](0x0,0x14)),_0x2c1e72;}export const dbTest={'service':'db','command':'test','description':'Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','risk':'read','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1aa3e3){const _0x3c5976=a71_0x256e,_0x3a4d03=_0x1aa3e3[_0x3c5976(0xc3)]('id'),_0x3793d0=await testDbLinkConnect(_0x3a4d03),_0x55d16a=_0x3793d0===!![]||typeof _0x3793d0===_0x3c5976(0xd0)&&_0x3793d0!==null&&_0x3793d0[_0x3c5976(0xd1)]===!![],_0x2d64be=summarizeTestConnectResult(_0x3793d0);return{'ok':!![],'data':{'id':_0x3a4d03,'connected':Boolean(_0x55d16a),'result':_0x2d64be},'message':_0x55d16a?_0x3c5976(0xcb)+_0x3a4d03:_0x3c5976(0xc5)+_0x3a4d03+_0x3c5976(0xc1)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x5011af=a72_0x2647;(function(_0x2caa2e,_0x5e2a96){const _0x20debd=a72_0x2647,_0x3b1f26=_0x2caa2e();while(!![]){try{const _0x34f484=-parseInt(_0x20debd(0x1cb))/0x1+-parseInt(_0x20debd(0x1d2))/0x2*(-parseInt(_0x20debd(0x1c5))/0x3)+parseInt(_0x20debd(0x1c2))/0x4+parseInt(_0x20debd(0x1b5))/0x5+-parseInt(_0x20debd(0x1cf))/0x6+-parseInt(_0x20debd(0x1d4))/0x7*(parseInt(_0x20debd(0x1d8))/0x8)+parseInt(_0x20debd(0x1c7))/0x9*(parseInt(_0x20debd(0x1c1))/0xa);if(_0x34f484===_0x5e2a96)break;else _0x3b1f26['push'](_0x3b1f26['shift']());}catch(_0x21164d){_0x3b1f26['push'](_0x3b1f26['shift']());}}}(a72_0x8917,0x7e6bb));import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';function a72_0x2647(_0xa48d24,_0x16630c){_0xa48d24=_0xa48d24-0x1b5;const _0x8917d2=a72_0x8917();let _0x2647fe=_0x8917d2[_0xa48d24];return _0x2647fe;}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';function a72_0x8917(){const _0x12320a=['dbName','/smartapi/dblink/update','dbdesc','New\x20connection\x20parameter\x20string','dbParam','validation','10WTfDwd','2123868DWPwdj','Updated\x20db\x20link\x20','num','18504QxtwnN','New\x20database\x20name','6406650LrOpnn','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','New\x20username','username','267170EicCqy','dbUrl','trim','POST','6147936vntLGA','dbname','dburl','190bKMmaK','update','158767EVXzVI','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','string','128BhKKBQ','1718820zKTTGE','New\x20host:port','New\x20description','dbparam','password','str'];a72_0x8917=function(){return _0x12320a;};return a72_0x8917();}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a72_0x5011af(0x1d3),'description':a72_0x5011af(0x1d5),'risk':'write','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a72_0x5011af(0x1d0),'type':'string','description':a72_0x5011af(0x1c6)},{'name':a72_0x5011af(0x1d1),'type':a72_0x5011af(0x1d7),'description':a72_0x5011af(0x1b6)},{'name':'username','type':a72_0x5011af(0x1d7),'description':a72_0x5011af(0x1c9)},{'name':a72_0x5011af(0x1b9),'type':a72_0x5011af(0x1d7),'description':a72_0x5011af(0x1d6)},{'name':a72_0x5011af(0x1b8),'type':a72_0x5011af(0x1d7),'description':a72_0x5011af(0x1be)},{'name':a72_0x5011af(0x1bd),'type':a72_0x5011af(0x1d7),'description':a72_0x5011af(0x1b7)}],async 'validate'(_0x4d24fc){const _0x4862a7=a72_0x5011af,_0x1c26a8=_0x4d24fc[_0x4862a7(0x1ba)]('dburl');if(_0x1c26a8&&!validateDbUrl(_0x1c26a8[_0x4862a7(0x1cd)]()))throw CliErrors[_0x4862a7(0x1c0)](_0x4862a7(0x1c8)+_0x1c26a8+'\x22');},async 'dryRun'(_0x13bd96){const _0x46e969=a72_0x5011af,_0x1f2df0=_0x13bd96['num']('id'),_0x358c9c=await getDbLinkInfo(_0x1f2df0),_0x40d551={..._0x358c9c},_0x23ed08=_0x13bd96[_0x46e969(0x1ba)]('dbname');if(_0x23ed08)_0x40d551[_0x46e969(0x1bb)]=_0x23ed08;const _0x4071e5=_0x13bd96['str'](_0x46e969(0x1d1));if(_0x4071e5)_0x40d551[_0x46e969(0x1cc)]=_0x4071e5[_0x46e969(0x1cd)]();const _0x4c7079=_0x13bd96[_0x46e969(0x1ba)](_0x46e969(0x1ca));if(_0x4c7079)_0x40d551[_0x46e969(0x1ca)]=_0x4c7079;const _0x323185=_0x13bd96[_0x46e969(0x1ba)](_0x46e969(0x1b9));if(_0x323185)_0x40d551[_0x46e969(0x1b9)]=_0x323185;const _0x3816c1=_0x13bd96['str']('dbparam');if(_0x3816c1)_0x40d551['dbParam']=_0x3816c1;const _0x2e4556=_0x13bd96[_0x46e969(0x1ba)](_0x46e969(0x1bd));if(_0x2e4556)_0x40d551['dbDesc']=_0x2e4556;const _0x45cc61=sanitizeDbLinkForOutput(_0x40d551);return{'method':_0x46e969(0x1ce),'url':_0x46e969(0x1bc),'body':_0x45cc61,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0x42ac6d){const _0x19f500=a72_0x5011af,_0x406c84=_0x42ac6d[_0x19f500(0x1c4)]('id'),_0xda57fc=await getDbLinkInfo(_0x406c84),_0x7d6b6c={..._0xda57fc},_0x400ffe=_0x42ac6d[_0x19f500(0x1ba)]('dbname');if(_0x400ffe)_0x7d6b6c[_0x19f500(0x1bb)]=_0x400ffe;const _0x3dc0a6=_0x42ac6d[_0x19f500(0x1ba)]('dburl');if(_0x3dc0a6)_0x7d6b6c[_0x19f500(0x1cc)]=_0x3dc0a6[_0x19f500(0x1cd)]();const _0x54f77e=_0x42ac6d[_0x19f500(0x1ba)](_0x19f500(0x1ca));if(_0x54f77e)_0x7d6b6c[_0x19f500(0x1ca)]=_0x54f77e;const _0x69f91f=_0x42ac6d[_0x19f500(0x1ba)](_0x19f500(0x1b9));if(_0x69f91f)_0x7d6b6c[_0x19f500(0x1b9)]=_0x69f91f;const _0x49202f=_0x42ac6d['str'](_0x19f500(0x1b8));if(_0x49202f)_0x7d6b6c[_0x19f500(0x1bf)]=_0x49202f;const _0x7f07be=_0x42ac6d[_0x19f500(0x1ba)](_0x19f500(0x1bd));if(_0x7f07be)_0x7d6b6c['dbDesc']=_0x7f07be;const {id:_0x51b962,entity:_0x36bc5e}=normalizeEntityWithIdResponse(await updateDbLink(_0x7d6b6c));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x36bc5e),'message':_0x19f500(0x1c3)+(_0x51b962??_0x406c84)};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a73_0xf9a3(_0x4edc3d,_0x38c8bd){_0x4edc3d=_0x4edc3d-0x124;const _0x56550a=a73_0x5655();let _0xf9a34=_0x56550a[_0x4edc3d];return _0xf9a34;}const a73_0x41fc62=a73_0xf9a3;(function(_0x154148,_0x459dd9){const _0x217369=a73_0xf9a3,_0x23f063=_0x154148();while(!![]){try{const _0x27f412=parseInt(_0x217369(0x16f))/0x1*(-parseInt(_0x217369(0x134))/0x2)+parseInt(_0x217369(0x159))/0x3+parseInt(_0x217369(0x14b))/0x4*(-parseInt(_0x217369(0x14c))/0x5)+parseInt(_0x217369(0x126))/0x6+-parseInt(_0x217369(0x178))/0x7*(-parseInt(_0x217369(0x171))/0x8)+parseInt(_0x217369(0x143))/0x9*(parseInt(_0x217369(0x125))/0xa)+parseInt(_0x217369(0x14a))/0xb;if(_0x27f412===_0x459dd9)break;else _0x23f063['push'](_0x23f063['shift']());}catch(_0x11952d){_0x23f063['push'](_0x23f063['shift']());}}}(a73_0x5655,0xbc9e3));import a73_0x34759e from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a73_0x5655(){const _0x3c52a5=['defaultApp','riskLevel','(default)','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','pageSize','\x20\x20\x20\x20accessKey:\x20\x20','(no\x20file)','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','1LHsjOr','\x20\x20─','6096SKxOXN','log','\x20\x20Config\x20JSON','(not\x20found)','\x20\x20API\x20Endpoints','unknown','check','644JdTxCR','yellow','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','✗\x20Expired','\x20\x20Config\x20Files','keys','(not\x20set)','1169590ySnrpw','3650442XxCNNO','\x20←\x20current','\x20\x20Apps','verbose','arch','appCode','source','env','platform','accessKey','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','length','(missing)','603736KxYZrT','padEnd','currentApp','Global','apps','gray','message','red','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','bold','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','(none)','✓\x20Valid\x20JSON','72SsTQAs','apiDir','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20explicitAppName:\x20','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','✗\x20Not\x20logged\x20in','(default:\x20','6445989BOgPxQ','2908DdapLX','7745iQrVNF','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','(set,\x20length=','explicitAppName','doctor','cookie','\x20\x20Auth','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','status','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Merged\x20Config','1164LISAnk','⚠\x20Empty\x20(treated\x20as\x20{})','value','repeat','\x20(default)','green','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','empty','read','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','Project'];a73_0x5655=function(){return _0x3c52a5;};return a73_0x5655();}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(_0x590568){const _0x3d729b=a73_0xf9a3,_0x1a8153=GIT_COMMIT!==_0x3d729b(0x176)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION,_0x2044b8=buildConfigFromFlags({}),_0xed39fc=getCookie();console['log'](),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x13d)](CLI_BIN_NAME+'\x20doctor')),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x139)]('─'[_0x3d729b(0x15c)](0x32))),console[_0x3d729b(0x172)](_0x3d729b(0x147)+_0x1a8153),console[_0x3d729b(0x172)](_0x3d729b(0x145)+process['version']),console[_0x3d729b(0x172)](_0x3d729b(0x14d)+process[_0x3d729b(0x12e)]+'\x20'+process[_0x3d729b(0x12a)]),console[_0x3d729b(0x172)](),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x13d)](_0x3d729b(0x17c))),console['log'](a73_0x34759e[_0x3d729b(0x139)]('\x20\x20─'[_0x3d729b(0x15c)](0x1e)));const _0x40212d=getGlobalConfigPath(),_0x1384d4=getProjectConfigPath();console[_0x3d729b(0x172)](_0x3d729b(0x153)+(_0x40212d||a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x174)))),console[_0x3d729b(0x172)]('\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1384d4||a73_0x34759e['gray'](_0x3d729b(0x174)))),console[_0x3d729b(0x172)](),console[_0x3d729b(0x172)](a73_0x34759e['bold'](_0x3d729b(0x173))),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x170)[_0x3d729b(0x15c)](0x1e)));const _0x9f70c9=(_0x536612,_0x3aa989)=>{const _0x5edfd7=_0x3d729b;if(!_0x3aa989){console[_0x5edfd7(0x172)]('\x20\x20'+_0x536612[_0x5edfd7(0x135)](0x11)+'\x20'+a73_0x34759e[_0x5edfd7(0x139)](_0x5edfd7(0x16b)));return;}const _0x2464d0=inspectCliConfigJsonFile(_0x3aa989);if(_0x2464d0['status']==='ok')console[_0x5edfd7(0x172)]('\x20\x20'+_0x536612[_0x5edfd7(0x135)](0x11)+'\x20'+a73_0x34759e[_0x5edfd7(0x15e)](_0x5edfd7(0x142)));else{if(_0x2464d0[_0x5edfd7(0x156)]===_0x5edfd7(0x160))console[_0x5edfd7(0x172)]('\x20\x20'+_0x536612['padEnd'](0x11)+'\x20'+a73_0x34759e[_0x5edfd7(0x179)](_0x5edfd7(0x15a)));else _0x2464d0['status']==='missing'?console[_0x5edfd7(0x172)]('\x20\x20'+_0x536612[_0x5edfd7(0x135)](0x11)+'\x20'+a73_0x34759e[_0x5edfd7(0x139)](_0x5edfd7(0x133))):(console['log']('\x20\x20'+_0x536612[_0x5edfd7(0x135)](0x11)+'\x20'+a73_0x34759e[_0x5edfd7(0x13b)]('✗\x20Invalid\x20JSON')),console[_0x5edfd7(0x172)]('\x20\x20'+''[_0x5edfd7(0x135)](0x11)+'\x20'+a73_0x34759e[_0x5edfd7(0x13b)](_0x2464d0[_0x5edfd7(0x13a)])));}};_0x9f70c9(_0x3d729b(0x137),_0x40212d),_0x9f70c9(_0x3d729b(0x163),_0x1384d4),console[_0x3d729b(0x172)](),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x13d)](_0x3d729b(0x158))),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x170)[_0x3d729b(0x15c)](0x1e))),console[_0x3d729b(0x172)](_0x3d729b(0x130)+(_0x2044b8[_0x3d729b(0x12b)]||a73_0x34759e[_0x3d729b(0x13b)](_0x3d729b(0x124)))),console[_0x3d729b(0x172)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2044b8[_0x3d729b(0x12d)]),console[_0x3d729b(0x172)](_0x3d729b(0x154)+_0x2044b8['locale']),console[_0x3d729b(0x172)](_0x3d729b(0x155)+_0x2044b8[_0x3d729b(0x144)]),console['log'](_0x3d729b(0x16c)+(_0x2044b8[_0x3d729b(0x164)]||a73_0x34759e[_0x3d729b(0x139)]('(none)'))),console[_0x3d729b(0x172)](_0x3d729b(0x162)+(_0x2044b8[_0x3d729b(0x136)]||a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x141)))),console[_0x3d729b(0x172)](_0x3d729b(0x146)+(_0x2044b8[_0x3d729b(0x14f)]||a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x141)))),console['log']('\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2044b8[_0x3d729b(0x140)]||a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x149)+DEFAULT_CONFIG_VALUES[_0x3d729b(0x140)]+')'))),console[_0x3d729b(0x172)](_0x3d729b(0x168)+(_0x2044b8[_0x3d729b(0x169)]??a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x166)))),console['log'](_0x3d729b(0x16d)+_0x2044b8[_0x3d729b(0x165)]),console['log'](_0x3d729b(0x167)+_0x2044b8[_0x3d729b(0x129)]),console[_0x3d729b(0x172)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2044b8[_0x3d729b(0x151)]?a73_0x34759e['green'](_0x3d729b(0x14e)+_0x2044b8[_0x3d729b(0x151)][_0x3d729b(0x132)]+')'):_0xed39fc?a73_0x34759e[_0x3d729b(0x15e)]('(set\x20via\x20file,\x20length='+_0xed39fc[_0x3d729b(0x132)]+')'):a73_0x34759e['gray'](_0x3d729b(0x141))));const _0x25e2fb=Object[_0x3d729b(0x17d)](_0x2044b8[_0x3d729b(0x138)]);if(_0x25e2fb['length']>0x0){console[_0x3d729b(0x172)](),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x13d)](_0x3d729b(0x128))),console['log'](a73_0x34759e[_0x3d729b(0x139)]('\x20\x20─'['repeat'](0x1e)));for(const _0x3158e8 of _0x25e2fb){const _0xc1a16b=_0x2044b8[_0x3d729b(0x138)][_0x3158e8],_0x4da911=_0x3158e8===_0x2044b8[_0x3d729b(0x164)],_0x1c5c57=_0x3158e8===_0x2044b8[_0x3d729b(0x136)],_0x11f382=_0x1c5c57?a73_0x34759e[_0x3d729b(0x15e)](_0x3d729b(0x127)):'',_0x205e3f=_0x4da911?_0x3d729b(0x15d):'';console[_0x3d729b(0x172)]('\x20\x20'+_0x3158e8+_0x205e3f+_0x11f382),console[_0x3d729b(0x172)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0xc1a16b['appcode']);const _0x29fec4=buildAppDoctorFields(_0xc1a16b,{'env':_0x2044b8[_0x3d729b(0x12d)],'apiDir':_0x2044b8['raw']['apiDir']||DEFAULT_CONFIG_VALUES[_0x3d729b(0x144)],'cookie':_0x2044b8['cookie']||_0xed39fc||undefined,'accessKey':_0x2044b8['accessKey']});console[_0x3d729b(0x172)](_0x3d729b(0x16e)+_0x29fec4[_0x3d729b(0x12d)][_0x3d729b(0x15b)]+'\x20\x20'+a73_0x34759e['gray']('('+_0x29fec4['env'][_0x3d729b(0x12c)]+')')),console[_0x3d729b(0x172)](_0x3d729b(0x13c)+_0x29fec4[_0x3d729b(0x144)][_0x3d729b(0x15b)]+'\x20\x20'+a73_0x34759e[_0x3d729b(0x139)]('('+_0x29fec4[_0x3d729b(0x144)][_0x3d729b(0x12c)]+')'));const _0x3f9c7d=_0x29fec4['cookie'][_0x3d729b(0x15b)]?a73_0x34759e['green'](_0x3d729b(0x14e)+_0x29fec4[_0x3d729b(0x151)][_0x3d729b(0x15b)][_0x3d729b(0x132)]+')'):a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x141));console[_0x3d729b(0x172)](_0x3d729b(0x15f)+_0x3f9c7d+'\x20\x20'+a73_0x34759e[_0x3d729b(0x139)]('('+_0x29fec4[_0x3d729b(0x151)][_0x3d729b(0x12c)]+')'));const _0x2abe27=_0x29fec4[_0x3d729b(0x12f)][_0x3d729b(0x15b)]?a73_0x34759e[_0x3d729b(0x15e)]('(set,\x20length='+_0x29fec4[_0x3d729b(0x12f)][_0x3d729b(0x15b)][_0x3d729b(0x132)]+')'):a73_0x34759e[_0x3d729b(0x139)](_0x3d729b(0x141));console['log'](_0x3d729b(0x16a)+_0x2abe27+'\x20\x20'+a73_0x34759e[_0x3d729b(0x139)]('('+_0x29fec4['accessKey']['source']+')'));}}console[_0x3d729b(0x172)](),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x13d)](_0x3d729b(0x175))),console['log'](a73_0x34759e[_0x3d729b(0x139)]('\x20\x20─'[_0x3d729b(0x15c)](0x1e))),console[_0x3d729b(0x172)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console[_0x3d729b(0x172)](_0x3d729b(0x17a)+getUserDomain()),console[_0x3d729b(0x172)](_0x3d729b(0x157)+getRuntimeDomain()),console[_0x3d729b(0x172)](),console[_0x3d729b(0x172)](a73_0x34759e[_0x3d729b(0x13d)](_0x3d729b(0x152))),console[_0x3d729b(0x172)](a73_0x34759e['gray'](_0x3d729b(0x170)[_0x3d729b(0x15c)](0x1e)));if(_0xed39fc){const _0x58fef7=await getIsSessionValid();console[_0x3d729b(0x172)](_0x3d729b(0x13f)+(_0x58fef7?a73_0x34759e['green'](_0x3d729b(0x131)):a73_0x34759e['red'](_0x3d729b(0x17b))));}else console[_0x3d729b(0x172)](_0x3d729b(0x13f)+a73_0x34759e[_0x3d729b(0x13b)](_0x3d729b(0x148)));return console[_0x3d729b(0x172)](),{'ok':!![]};}export const doctorDefinition={'service':a73_0x41fc62(0x150),'command':a73_0x41fc62(0x177),'description':a73_0x41fc62(0x13e),'risk':a73_0x41fc62(0x161),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
1
|
+
const a73_0x3661fc=a73_0x5dee;(function(_0x265dfc,_0x4ce2b7){const _0x4cbc2c=a73_0x5dee,_0x1c575f=_0x265dfc();while(!![]){try{const _0x198542=-parseInt(_0x4cbc2c(0x1df))/0x1+parseInt(_0x4cbc2c(0x1b9))/0x2+-parseInt(_0x4cbc2c(0x1c6))/0x3+-parseInt(_0x4cbc2c(0x1ba))/0x4+parseInt(_0x4cbc2c(0x204))/0x5+parseInt(_0x4cbc2c(0x1db))/0x6+parseInt(_0x4cbc2c(0x201))/0x7;if(_0x198542===_0x4ce2b7)break;else _0x1c575f['push'](_0x1c575f['shift']());}catch(_0x497b64){_0x1c575f['push'](_0x1c575f['shift']());}}}(a73_0x4251,0xc560d));function a73_0x4251(){const _0x28a1d9=['4036359MxZpGH','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','(not\x20found)','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','(not\x20set)','value','env','verbose','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','keys','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','platform','accessKey','read','✓\x20Valid','arch','(set,\x20length=','padEnd','✓\x20Valid\x20JSON','3413712CttYoe','\x20(default)','✗\x20Invalid\x20JSON','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','208948DayCYd','(no\x20file)','\x20\x20explicitAppName:\x20','check','bold','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','appCode','gray','format','\x20\x20Merged\x20Config','locale','\x20\x20runtimeDomain:\x20\x20\x20','(none)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','explicitAppName','defaultApp','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','source','slice','empty','red','appcode','status','(set\x20via\x20file,\x20length=','raw','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','log','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','(missing)','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Expired','cookie','10816204GJkIuD','version','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','385960CZPcWy','(default:\x20','✗\x20Not\x20logged\x20in','Global','apps','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','\x20\x20Apps','riskLevel','1445610NcllqU','2205036Vsyusj','\x20\x20\x20\x20accessKey:\x20\x20','\x20\x20Auth','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','apiDir','unknown','yellow','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','green','repeat'];a73_0x4251=function(){return _0x28a1d9;};return a73_0x4251();}import a73_0x53a46a 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 a73_0x5dee(_0x5f3e95,_0x4e3f68){_0x5f3e95=_0x5f3e95-0x1b9;const _0x425134=a73_0x4251();let _0x5deeef=_0x425134[_0x5f3e95];return _0x5deeef;}import{buildAppDoctorFields}from'../config/schema.js';async function execute(_0x163922){const _0xedbf09=a73_0x5dee,_0x1c89db=GIT_COMMIT!==_0xedbf09(0x1bf)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xedbf09(0x1f2)](0x0,0xa)+')':VERSION,_0x2e5cc4=buildConfigFromFlags({}),_0x2c28de=getCookie();console[_0xedbf09(0x1fa)](),console[_0xedbf09(0x1fa)](a73_0x53a46a[_0xedbf09(0x1e3)](CLI_BIN_NAME+_0xedbf09(0x1ed))),console['log'](a73_0x53a46a[_0xedbf09(0x1e6)]('─'[_0xedbf09(0x1c5)](0x32))),console[_0xedbf09(0x1fa)](_0xedbf09(0x1f9)+_0x1c89db),console[_0xedbf09(0x1fa)](_0xedbf09(0x1de)+process[_0xedbf09(0x202)]),console[_0xedbf09(0x1fa)](_0xedbf09(0x1d2)+process[_0xedbf09(0x1d3)]+'\x20'+process[_0xedbf09(0x1d7)]),console['log'](),console[_0xedbf09(0x1fa)](a73_0x53a46a['bold']('\x20\x20Config\x20Files')),console[_0xedbf09(0x1fa)](a73_0x53a46a[_0xedbf09(0x1e6)](_0xedbf09(0x1c3)['repeat'](0x1e)));const _0x1cc905=getGlobalConfigPath(),_0x51c124=getProjectConfigPath();console[_0xedbf09(0x1fa)](_0xedbf09(0x1c7)+(_0x1cc905||a73_0x53a46a['gray'](_0xedbf09(0x1c9)))),console[_0xedbf09(0x1fa)](_0xedbf09(0x1ec)+(_0x51c124||a73_0x53a46a[_0xedbf09(0x1e6)](_0xedbf09(0x1c9)))),console[_0xedbf09(0x1fa)](),console[_0xedbf09(0x1fa)](a73_0x53a46a[_0xedbf09(0x1e3)]('\x20\x20Config\x20JSON')),console[_0xedbf09(0x1fa)](a73_0x53a46a['gray'](_0xedbf09(0x1c3)['repeat'](0x1e)));const _0x3d3316=(_0x58175d,_0x483e78)=>{const _0x3286dd=_0xedbf09;if(!_0x483e78){console[_0x3286dd(0x1fa)]('\x20\x20'+_0x58175d['padEnd'](0x11)+'\x20'+a73_0x53a46a['gray'](_0x3286dd(0x1e0)));return;}const _0x154ebe=inspectCliConfigJsonFile(_0x483e78);if(_0x154ebe['status']==='ok')console[_0x3286dd(0x1fa)]('\x20\x20'+_0x58175d[_0x3286dd(0x1d9)](0x11)+'\x20'+a73_0x53a46a['green'](_0x3286dd(0x1da)));else{if(_0x154ebe[_0x3286dd(0x1f6)]===_0x3286dd(0x1f3))console[_0x3286dd(0x1fa)]('\x20\x20'+_0x58175d['padEnd'](0x11)+'\x20'+a73_0x53a46a[_0x3286dd(0x1c0)]('⚠\x20Empty\x20(treated\x20as\x20{})'));else _0x154ebe['status']==='missing'?console[_0x3286dd(0x1fa)]('\x20\x20'+_0x58175d['padEnd'](0x11)+'\x20'+a73_0x53a46a[_0x3286dd(0x1e6)](_0x3286dd(0x1fd))):(console[_0x3286dd(0x1fa)]('\x20\x20'+_0x58175d[_0x3286dd(0x1d9)](0x11)+'\x20'+a73_0x53a46a[_0x3286dd(0x1f4)](_0x3286dd(0x1dd))),console[_0x3286dd(0x1fa)]('\x20\x20'+''[_0x3286dd(0x1d9)](0x11)+'\x20'+a73_0x53a46a[_0x3286dd(0x1f4)](_0x154ebe['message'])));}};_0x3d3316(_0xedbf09(0x207),_0x1cc905),_0x3d3316('Project',_0x51c124),console[_0xedbf09(0x1fa)](),console[_0xedbf09(0x1fa)](a73_0x53a46a[_0xedbf09(0x1e3)](_0xedbf09(0x1e8))),console['log'](a73_0x53a46a[_0xedbf09(0x1e6)](_0xedbf09(0x1c3)[_0xedbf09(0x1c5)](0x1e))),console['log'](_0xedbf09(0x1bd)+(_0x2e5cc4[_0xedbf09(0x1e5)]||a73_0x53a46a[_0xedbf09(0x1f4)](_0xedbf09(0x1cc)))),console[_0xedbf09(0x1fa)](_0xedbf09(0x1f0)+_0x2e5cc4[_0xedbf09(0x1ce)]),console[_0xedbf09(0x1fa)](_0xedbf09(0x1c2)+_0x2e5cc4[_0xedbf09(0x1e9)]),console[_0xedbf09(0x1fa)](_0xedbf09(0x1c1)+_0x2e5cc4[_0xedbf09(0x1be)]),console['log']('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x2e5cc4[_0xedbf09(0x1ef)]||a73_0x53a46a['gray'](_0xedbf09(0x1eb)))),console[_0xedbf09(0x1fa)](_0xedbf09(0x209)+(_0x2e5cc4['currentApp']||a73_0x53a46a[_0xedbf09(0x1e6)](_0xedbf09(0x1eb)))),console[_0xedbf09(0x1fa)](_0xedbf09(0x1e1)+(_0x2e5cc4[_0xedbf09(0x1ee)]||a73_0x53a46a[_0xedbf09(0x1e6)]('(none)'))),console[_0xedbf09(0x1fa)](_0xedbf09(0x1fe)+(_0x2e5cc4['format']||a73_0x53a46a['gray'](_0xedbf09(0x205)+DEFAULT_CONFIG_VALUES[_0xedbf09(0x1e7)]+')'))),console[_0xedbf09(0x1fa)]('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2e5cc4['pageSize']??a73_0x53a46a[_0xedbf09(0x1e6)]('(default)'))),console[_0xedbf09(0x1fa)](_0xedbf09(0x1e4)+_0x2e5cc4[_0xedbf09(0x20b)]),console['log'](_0xedbf09(0x1fb)+_0x2e5cc4[_0xedbf09(0x1cf)]),console[_0xedbf09(0x1fa)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2e5cc4[_0xedbf09(0x200)]?a73_0x53a46a[_0xedbf09(0x1c4)](_0xedbf09(0x1d8)+_0x2e5cc4['cookie']['length']+')'):_0x2c28de?a73_0x53a46a['green'](_0xedbf09(0x1f7)+_0x2c28de[_0xedbf09(0x1fc)]+')'):a73_0x53a46a['gray']('(none)')));const _0x13ff20=Object[_0xedbf09(0x1d1)](_0x2e5cc4[_0xedbf09(0x208)]);if(_0x13ff20[_0xedbf09(0x1fc)]>0x0){console[_0xedbf09(0x1fa)](),console[_0xedbf09(0x1fa)](a73_0x53a46a[_0xedbf09(0x1e3)](_0xedbf09(0x20a))),console[_0xedbf09(0x1fa)](a73_0x53a46a[_0xedbf09(0x1e6)]('\x20\x20─'['repeat'](0x1e)));for(const _0x1a2ef2 of _0x13ff20){const _0x2d31ec=_0x2e5cc4[_0xedbf09(0x208)][_0x1a2ef2],_0x32f94a=_0x1a2ef2===_0x2e5cc4['defaultApp'],_0x49fcc9=_0x1a2ef2===_0x2e5cc4[_0xedbf09(0x1c8)],_0x3e04c8=_0x49fcc9?a73_0x53a46a[_0xedbf09(0x1c4)]('\x20←\x20current'):'',_0x765796=_0x32f94a?_0xedbf09(0x1dc):'';console['log']('\x20\x20'+_0x1a2ef2+_0x765796+_0x3e04c8),console[_0xedbf09(0x1fa)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x2d31ec[_0xedbf09(0x1f5)]);const _0x52edeb=buildAppDoctorFields(_0x2d31ec,{'env':_0x2e5cc4['env'],'apiDir':_0x2e5cc4[_0xedbf09(0x1f8)][_0xedbf09(0x1be)]||DEFAULT_CONFIG_VALUES[_0xedbf09(0x1be)],'cookie':_0x2e5cc4[_0xedbf09(0x200)]||_0x2c28de||undefined,'accessKey':_0x2e5cc4[_0xedbf09(0x1d4)]});console[_0xedbf09(0x1fa)](_0xedbf09(0x1d0)+_0x52edeb[_0xedbf09(0x1ce)]['value']+'\x20\x20'+a73_0x53a46a['gray']('('+_0x52edeb[_0xedbf09(0x1ce)]['source']+')')),console[_0xedbf09(0x1fa)](_0xedbf09(0x1cb)+_0x52edeb[_0xedbf09(0x1be)][_0xedbf09(0x1cd)]+'\x20\x20'+a73_0x53a46a[_0xedbf09(0x1e6)]('('+_0x52edeb[_0xedbf09(0x1be)]['source']+')'));const _0x19e2f8=_0x52edeb[_0xedbf09(0x200)][_0xedbf09(0x1cd)]?a73_0x53a46a[_0xedbf09(0x1c4)](_0xedbf09(0x1d8)+_0x52edeb[_0xedbf09(0x200)][_0xedbf09(0x1cd)][_0xedbf09(0x1fc)]+')'):a73_0x53a46a[_0xedbf09(0x1e6)](_0xedbf09(0x1eb));console[_0xedbf09(0x1fa)](_0xedbf09(0x203)+_0x19e2f8+'\x20\x20'+a73_0x53a46a[_0xedbf09(0x1e6)]('('+_0x52edeb['cookie'][_0xedbf09(0x1f1)]+')'));const _0x3e4289=_0x52edeb[_0xedbf09(0x1d4)][_0xedbf09(0x1cd)]?a73_0x53a46a[_0xedbf09(0x1c4)](_0xedbf09(0x1d8)+_0x52edeb['accessKey'][_0xedbf09(0x1cd)][_0xedbf09(0x1fc)]+')'):a73_0x53a46a['gray'](_0xedbf09(0x1eb));console[_0xedbf09(0x1fa)](_0xedbf09(0x1bb)+_0x3e4289+'\x20\x20'+a73_0x53a46a['gray']('('+_0x52edeb[_0xedbf09(0x1d4)][_0xedbf09(0x1f1)]+')'));}}console[_0xedbf09(0x1fa)](),console[_0xedbf09(0x1fa)](a73_0x53a46a[_0xedbf09(0x1e3)]('\x20\x20API\x20Endpoints')),console[_0xedbf09(0x1fa)](a73_0x53a46a[_0xedbf09(0x1e6)]('\x20\x20─'[_0xedbf09(0x1c5)](0x1e))),console[_0xedbf09(0x1fa)]('\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20'+getApiDomain()),console['log']('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0xedbf09(0x1fa)](_0xedbf09(0x1ea)+getRuntimeDomain()),console[_0xedbf09(0x1fa)](),console[_0xedbf09(0x1fa)](a73_0x53a46a['bold'](_0xedbf09(0x1bc))),console[_0xedbf09(0x1fa)](a73_0x53a46a[_0xedbf09(0x1e6)](_0xedbf09(0x1c3)[_0xedbf09(0x1c5)](0x1e)));if(_0x2c28de){const _0x465aa9=await getIsSessionValid();console[_0xedbf09(0x1fa)](_0xedbf09(0x1ca)+(_0x465aa9?a73_0x53a46a[_0xedbf09(0x1c4)](_0xedbf09(0x1d6)):a73_0x53a46a[_0xedbf09(0x1f4)](_0xedbf09(0x1ff))));}else console[_0xedbf09(0x1fa)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a73_0x53a46a[_0xedbf09(0x1f4)](_0xedbf09(0x206)));return console[_0xedbf09(0x1fa)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':a73_0x3661fc(0x1e2),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a73_0x3661fc(0x1d5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x491a26=a74_0x3237;(function(_0x53adfb,_0x324d75){const _0x1edeb8=a74_0x3237,_0x2ddb6a=_0x53adfb();while(!![]){try{const _0x3092ca=-parseInt(_0x1edeb8(0xd5))/0x1+parseInt(_0x1edeb8(0xd1))/0x2+-parseInt(_0x1edeb8(0xb1))/0x3+parseInt(_0x1edeb8(0xaf))/0x4*(-parseInt(_0x1edeb8(0xab))/0x5)+parseInt(_0x1edeb8(0xcd))/0x6+-parseInt(_0x1edeb8(0xb8))/0x7+parseInt(_0x1edeb8(0xac))/0x8;if(_0x3092ca===_0x324d75)break;else _0x2ddb6a['push'](_0x2ddb6a['shift']());}catch(_0x3c87a3){_0x2ddb6a['push'](_0x2ddb6a['shift']());}}}(a74_0x2a61,0x6384f));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{RABETBASE_ENV_VALUES}from'../../constant/env.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x14bd5d){return{'appCode':_0x14bd5d,'appName':_0x14bd5d};}function a74_0x3237(_0x541ff4,_0x5f30c7){_0x541ff4=_0x541ff4-0xa8;const _0x2a61ae=a74_0x2a61();let _0x32376a=_0x2a61ae[_0x541ff4];return _0x32376a;}function a74_0x2a61(){const _0x4aaff6=['\x20config','message','5aDgpbF','11016640IiIjCr','log','project','781268jgvgpM','\x20\x20Default:\x20','696279gfynji','\x20\x20Env:\x20','flagMissing','bool','some','custom','appcode','3488926ulKOuO','Auto-confirm\x20prompts','Usage:\x20','validation','defaultApp','global','boolean','\x0a✓\x20Successfully\x20initialized\x20','str','nonInteractive','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','map','init','Write\x20to\x20global\x20config\x20instead\x20of\x20project','toLocaleString','yes','检测到旧配置文件,正在自动升级...\x0a','Target\x20environment','production','valid','1175394JJZwrb','\x20\x20Config:\x20','string','env','839256URQAxD','cwd','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','../../commands/project/init.js','659148TdyQZO','Use\x20`','appCode'];a74_0x2a61=function(){return _0x4aaff6;};return a74_0x2a61();}function writeInitConfig(_0x29c840,_0x20818c,_0x19b05d){const _0x39d5f4=a74_0x3237,_0x510a5=resolveWriteConfigPath(_0x29c840),_0x4a2f22=buildCanonicalProjectConfig({},{'appCodes':_0x20818c['map'](_0x4209e9=>_0x4209e9[_0x39d5f4(0xa8)]),'env':_0x19b05d,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x39d5f4(0xc7)]()}});writeConfigFile(_0x510a5,_0x4a2f22);const _0x2ee715=_0x29c840===_0x39d5f4(0xbd)?'global':_0x39d5f4(0xae);console[_0x39d5f4(0xad)](_0x39d5f4(0xbf)+_0x2ee715+_0x39d5f4(0xa9)),console[_0x39d5f4(0xad)]('\x20\x20Apps:\x20'+_0x20818c[_0x39d5f4(0xc4)](_0x4d2f3b=>_0x4d2f3b[_0x39d5f4(0xa8)])['join'](',\x20')),console['log'](_0x39d5f4(0xb0)+_0x4a2f22[_0x39d5f4(0xbc)]),console['log'](_0x39d5f4(0xb2)+_0x4a2f22[_0x39d5f4(0xd0)]),console[_0x39d5f4(0xad)](_0x39d5f4(0xce)+_0x510a5);}async function runSmartInit(_0x3238a0){const _0x22a123=a74_0x3237,_0x3006d9=process[_0x22a123(0xd2)](),_0x4a278c=_0x3238a0[_0x22a123(0xb4)]('global')?'global':_0x22a123(0xae),_0x3e6467=_0x3238a0[_0x22a123(0xc0)](_0x22a123(0xd0))||_0x22a123(0xcb),_0x3cc87f=_0x3238a0[_0x22a123(0xc0)](_0x22a123(0xb7))||undefined,_0x87221e=_0x3238a0['bool'](_0x22a123(0xae));if(_0x87221e){const {initConfig:_0xe3352d}=await import(_0x22a123(0xd4));return _0xe3352d({'appcode':_0x3cc87f,'env':_0x3e6467,'autoYes':_0x3238a0['bool'](_0x22a123(0xc8))});}if(_0x4a278c===_0x22a123(0xae)){const _0x20345d=existsSync(resolve(_0x3006d9,NEW_CONFIG_NAME)),_0x57053f=LEGACY_CONFIG_NAMES[_0x22a123(0xb5)](_0x172176=>existsSync(resolve(_0x3006d9,_0x172176)));if(_0x57053f&&!_0x20345d)return console[_0x22a123(0xad)](_0x22a123(0xc9)),upgradeApp(_0x3238a0[_0x22a123(0xc1)],{'yes':_0x3238a0[_0x22a123(0xb4)]('yes')});if(_0x20345d)throw CliErrors[_0x22a123(0xbb)]('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.',_0x22a123(0xd6)+CLI_BIN_NAME+_0x22a123(0xc3));}if(_0x3cc87f){const _0x51a95e=validateAppcode(_0x3cc87f);if(!_0x51a95e[_0x22a123(0xcc)])throw CliErrors[_0x22a123(0xbb)](_0x51a95e[_0x22a123(0xaa)]);writeInitConfig(_0x4a278c,[syntheticApp(_0x3cc87f)],_0x3e6467);return;}if(_0x3238a0[_0x22a123(0xc1)])throw CliErrors[_0x22a123(0xb3)](_0x22a123(0xb7),_0x22a123(0xba)+CLI_BIN_NAME+_0x22a123(0xd3));const _0x2f937d=getCookie(),_0x41b2ca=await selectMultipleApps(_0x2f937d),_0x596b41=_0x41b2ca===_0x22a123(0xb6)?[syntheticApp(await promptCustomAppcode())]:_0x41b2ca;writeInitConfig(_0x4a278c,_0x596b41,_0x3e6467);}const initFlags=[{'name':a74_0x491a26(0xbd),'type':'boolean','description':a74_0x491a26(0xc6),'default':![]},{'name':a74_0x491a26(0xd0),'type':a74_0x491a26(0xcf),'description':a74_0x491a26(0xca),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a74_0x491a26(0xb7),'type':a74_0x491a26(0xcf),'description':'App\x20code\x20to\x20initialize\x20with'},{'name':a74_0x491a26(0xae),'type':a74_0x491a26(0xbe),'description':a74_0x491a26(0xc2),'default':![]},{'name':a74_0x491a26(0xc8),'type':a74_0x491a26(0xbe),'description':a74_0x491a26(0xb9),'default':![]}];export const initDefinitions=[{'service':a74_0x491a26(0xc5),'command':'run','description':'Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x8de8ec){return await runSmartInit(_0x8de8ec),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a75_0x3dba(_0x3a59fc,_0x21ae69){_0x3a59fc=_0x3a59fc-0x14b;const _0x31a287=a75_0x31a2();let _0x3dba21=_0x31a287[_0x3a59fc];return _0x3dba21;}(function(_0x2b9d4f,_0x4e30d6){const _0x270dc9=a75_0x3dba,_0x4061c9=_0x2b9d4f();while(!![]){try{const _0x473563=-parseInt(_0x270dc9(0x154))/0x1+parseInt(_0x270dc9(0x14e))/0x2*(parseInt(_0x270dc9(0x150))/0x3)+parseInt(_0x270dc9(0x14b))/0x4+-parseInt(_0x270dc9(0x14c))/0x5+parseInt(_0x270dc9(0x152))/0x6*(-parseInt(_0x270dc9(0x14d))/0x7)+parseInt(_0x270dc9(0x153))/0x8*(parseInt(_0x270dc9(0x14f))/0x9)+parseInt(_0x270dc9(0x151))/0xa;if(_0x473563===_0x4e30d6)break;else _0x4061c9['push'](_0x4061c9['shift']());}catch(_0x85b19c){_0x4061c9['push'](_0x4061c9['shift']());}}}(a75_0x31a2,0x2bc0c));import{issueReport}from'../../commands/issue/report.js';export const issueDefinitions=[issueReport];function a75_0x31a2(){const _0x95b131=['1278294dUIRMf','8piJZTx','142545zZOZSN','230576YlEPJj','1435925dotSFY','7EjnIeD','669650LhjjeR','2184516ZvYvzV','3DypmEC','1867980TjYuuL'];a75_0x31a2=function(){return _0x95b131;};return a75_0x31a2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76_0x2363aa=a76_0x5ad1;(function(_0x20e3ca,_0x5d61c7){const _0x2cf10c=a76_0x5ad1,_0x2f2f47=_0x20e3ca();while(!![]){try{const _0xb0e11=-parseInt(_0x2cf10c(0x1ea))/0x1*(parseInt(_0x2cf10c(0x1ca))/0x2)+-parseInt(_0x2cf10c(0x1df))/0x3*(parseInt(_0x2cf10c(0x1de))/0x4)+parseInt(_0x2cf10c(0x1c5))/0x5*(-parseInt(_0x2cf10c(0x1d8))/0x6)+parseInt(_0x2cf10c(0x1d3))/0x7+parseInt(_0x2cf10c(0x1d0))/0x8+-parseInt(_0x2cf10c(0x1db))/0x9*(-parseInt(_0x2cf10c(0x1da))/0xa)+parseInt(_0x2cf10c(0x1d9))/0xb;if(_0xb0e11===_0x5d61c7)break;else _0x2f2f47['push'](_0x2f2f47['shift']());}catch(_0x2ef7c2){_0x2f2f47['push'](_0x2f2f47['shift']());}}}(a76_0x1b82,0xa585b));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';function a76_0x5ad1(_0x517075,_0x2c0645){_0x517075=_0x517075-0x1be;const _0x1b82d4=a76_0x1b82();let _0x5ad13f=_0x1b82d4[_0x517075];return _0x5ad13f;}const DESCRIPTION_FILE_FLAG=a76_0x2363aa(0x1e2);function a76_0x1b82(){const _0x4303a1=['length','str','title','3RdILNB','otel://','Issue\x20description\x20file\x20is\x20empty:\x20','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','utf8','flagMissing','Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','126325pKqDch','descriptionSource','POST','validation','trim','878452QUHSQm','file','cwd','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','description','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','10305128qWLoYc','apiError','Issue\x20description\x20cannot\x20be\x20empty.','4473063HCEoza','issue','Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter','Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description','Failed\x20to\x20report\x20platform\x20issue:\x20','210DEeLvu','18124898HNdDvb','51330UVWaHx','387oKzIJg','descriptionFile:\x20','compress','260dSBiWt','42261VbFlle','join','descriptionFilePath','description-file','write','One-line\x20issue\x20summary','issue.title','string'];a76_0x1b82=function(){return _0x4303a1;};return a76_0x1b82();}export const issueReport={'service':a76_0x2363aa(0x1d4),'command':'report','description':a76_0x2363aa(0x1c4),'risk':a76_0x2363aa(0x1e3),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a76_0x2363aa(0x1dd),'flags':[{'name':a76_0x2363aa(0x1e9),'type':a76_0x2363aa(0x1e6),'required':!![],'description':a76_0x2363aa(0x1e4)},{'name':a76_0x2363aa(0x1ce),'type':a76_0x2363aa(0x1e6),'description':a76_0x2363aa(0x1c0)},{'name':DESCRIPTION_FILE_FLAG,'type':a76_0x2363aa(0x1e6),'description':a76_0x2363aa(0x1d6)}],async 'validate'(_0x310146){const _0x350a2c=a76_0x2363aa,_0x2a0dcf=_0x310146[_0x350a2c(0x1e8)]('title')[_0x350a2c(0x1c9)](),_0x48fc02=_0x310146[_0x350a2c(0x1e8)](_0x350a2c(0x1ce))['trim'](),_0x5b466c=_0x310146[_0x350a2c(0x1e8)](DESCRIPTION_FILE_FLAG)[_0x350a2c(0x1c9)]();if(!_0x2a0dcf)throw CliErrors[_0x350a2c(0x1c2)]('title',_0x350a2c(0x1cd));const _0x55add7=_0x48fc02[_0x350a2c(0x1e7)]>0x0,_0x3b2448=_0x5b466c[_0x350a2c(0x1e7)]>0x0;if(_0x55add7===_0x3b2448)throw CliErrors['validation']('Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.',_0x350a2c(0x1c3));if(_0x3b2448){const _0x1f5a6a=resolve(process[_0x350a2c(0x1cc)](),_0x5b466c);if(!existsSync(_0x1f5a6a))throw CliErrors[_0x350a2c(0x1c8)]('File\x20not\x20found:\x20'+_0x1f5a6a);}},async 'dryRun'(_0x302ca3){const _0x3a047f=a76_0x2363aa,_0x11c0e0=await prepareIssueReport(_0x302ca3);return{'method':_0x3a047f(0x1c7),'url':_0x3a047f(0x1be)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x11c0e0['title'],'issue.description':_0x11c0e0['description']}},'description':[_0x3a047f(0x1d5),'descriptionSource:\x20'+_0x11c0e0[_0x3a047f(0x1c6)],_0x11c0e0[_0x3a047f(0x1e1)]?_0x3a047f(0x1dc)+_0x11c0e0[_0x3a047f(0x1e1)]:null]['filter'](Boolean)[_0x3a047f(0x1e0)]('\x0a')};},async 'execute'(_0x162e1a){const _0x13584d=a76_0x2363aa,_0x3fc6e5=await prepareIssueReport(_0x162e1a);try{await sendPlatformIssueCollectLog({'title':_0x3fc6e5[_0x13584d(0x1e9)],'description':_0x3fc6e5[_0x13584d(0x1ce)]});}catch(_0xdf9141){throw CliErrors[_0x13584d(0x1d1)](_0x13584d(0x1d7)+(_0xdf9141 instanceof Error?_0xdf9141['message']:String(_0xdf9141)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':'Platform\x20issue\x20reported','data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0x13584d(0x1e5),'issue.description'],'issue':{'title':_0x3fc6e5[_0x13584d(0x1e9)],'descriptionLength':_0x3fc6e5[_0x13584d(0x1ce)]['length'],'descriptionSource':_0x3fc6e5[_0x13584d(0x1c6)],..._0x3fc6e5[_0x13584d(0x1e1)]?{'descriptionFile':_0x3fc6e5[_0x13584d(0x1e1)]}:{}}}};}};async function prepareIssueReport(_0x1fb80f){const _0x2bed8d=a76_0x2363aa,_0x52f939=_0x1fb80f[_0x2bed8d(0x1e8)](_0x2bed8d(0x1e9))[_0x2bed8d(0x1c9)](),_0x234f6a=_0x1fb80f[_0x2bed8d(0x1e8)]('description'),_0x595ea7=_0x1fb80f[_0x2bed8d(0x1e8)](DESCRIPTION_FILE_FLAG)[_0x2bed8d(0x1c9)]();if(!_0x595ea7){const _0x30aed1=_0x234f6a;if(!_0x30aed1[_0x2bed8d(0x1c9)]())throw CliErrors['validation'](_0x2bed8d(0x1d2),_0x2bed8d(0x1cf));return{'title':_0x52f939,'description':_0x30aed1,'descriptionSource':'inline'};}const _0x144b68=resolve(process[_0x2bed8d(0x1cc)](),_0x595ea7),_0x5a554f=await readFile(_0x144b68,_0x2bed8d(0x1c1));if(!_0x5a554f['trim']())throw CliErrors['validation'](_0x2bed8d(0x1bf)+_0x144b68,'Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.');return{'title':_0x52f939,'description':_0x5a554f,'descriptionSource':_0x2bed8d(0x1cb),'descriptionFilePath':_0x144b68};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a77_0x18d0(_0x5bdaab,_0x5c69bd){_0x5bdaab=_0x5bdaab-0x1a8;const _0x544196=a77_0x5441();let _0x18d054=_0x544196[_0x5bdaab];return _0x18d054;}const a77_0x1f7811=a77_0x18d0;(function(_0x30d78f,_0x3c07ac){const _0xc2d676=a77_0x18d0,_0x320f84=_0x30d78f();while(!![]){try{const _0x1732d8=parseInt(_0xc2d676(0x1b1))/0x1+-parseInt(_0xc2d676(0x1ab))/0x2*(parseInt(_0xc2d676(0x1b9))/0x3)+-parseInt(_0xc2d676(0x1b2))/0x4+-parseInt(_0xc2d676(0x1bd))/0x5*(parseInt(_0xc2d676(0x1c0))/0x6)+-parseInt(_0xc2d676(0x1c7))/0x7+parseInt(_0xc2d676(0x1cf))/0x8*(-parseInt(_0xc2d676(0x1cb))/0x9)+-parseInt(_0xc2d676(0x1ca))/0xa*(-parseInt(_0xc2d676(0x1b0))/0xb);if(_0x1732d8===_0x3c07ac)break;else _0x320f84['push'](_0x320f84['shift']());}catch(_0x3f9f6d){_0x320f84['push'](_0x320f84['shift']());}}}(a77_0x5441,0xb8d0b));import{logger}from'../../utils/logger.js';function printLogs(_0x3bfc15){const _0x12055f=a77_0x18d0;if(_0x3bfc15[_0x12055f(0x1ae)]===0x0){console[_0x12055f(0x1b5)](_0x12055f(0x1c6));return;}console[_0x12055f(0x1b5)](_0x12055f(0x1ce)),_0x3bfc15[_0x12055f(0x1b4)]((_0x15337b,_0x24e97d)=>{const _0x4e743b=_0x12055f,_0xb48f30=new Date(_0x15337b[_0x4e743b(0x1b7)])[_0x4e743b(0x1bc)](_0x4e743b(0x1ac)),_0x30a65c=_0x15337b[_0x4e743b(0x1a9)]===_0x4e743b(0x1be)?'√':_0x15337b['level']===_0x4e743b(0x1c2)?'×':_0x15337b[_0x4e743b(0x1a9)]===_0x4e743b(0x1c5)?'!':'i';console[_0x4e743b(0x1b5)](_0x24e97d+0x1+'.\x20'+_0x30a65c+'\x20['+_0x15337b[_0x4e743b(0x1b6)]+']\x20'+_0x15337b[_0x4e743b(0x1cc)]),console[_0x4e743b(0x1b5)](_0x4e743b(0x1ad)+_0xb48f30),_0x15337b[_0x4e743b(0x1cd)]&&console['log'](_0x4e743b(0x1bf)+_0x15337b['duration']+'ms'),_0x15337b[_0x4e743b(0x1bb)]&&Object[_0x4e743b(0x1ba)](_0x15337b[_0x4e743b(0x1bb)])[_0x4e743b(0x1ae)]>0x0&&console[_0x4e743b(0x1b5)](_0x4e743b(0x1c4)+JSON['stringify'](_0x15337b[_0x4e743b(0x1bb)],null,0x2)),console[_0x4e743b(0x1b5)]('');});}function a77_0x5441(){const _0x2b783a=['Clear\x20command\x20history\x20logs','9JEwGMn','keys','details','toLocaleString','5gTsIVF','success','\x20\x20\x20Duration:\x20','571866wBiQcC','logs','error','View\x20command\x20history\x20logs','\x20\x20\x20Details:\x20','warn','*\x20No\x20logs\x20found','653436qCdXOr','write','readLogs','10mThXzW','9189oyUrbv','message','duration','*\x20Lovrabet\x20CLI\x20logs:\x0a','8072EKjYZi','read','level','show','578706SzbHoY','en-US','\x20\x20\x20Time:\x20','length','clear','37024306zZCUYV','142412fAORma','2657392cQERoT','clearLogs','forEach','log','command','timestamp'];a77_0x5441=function(){return _0x2b783a;};return a77_0x5441();}export const logsDefinitions=[{'service':a77_0x1f7811(0x1c1),'command':a77_0x1f7811(0x1aa),'description':a77_0x1f7811(0x1c3),'risk':a77_0x1f7811(0x1a8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x275d6a){const _0x166584=a77_0x1f7811;return printLogs(logger[_0x166584(0x1c9)]()),{'ok':!![]};}},{'service':a77_0x1f7811(0x1c1),'command':a77_0x1f7811(0x1af),'description':a77_0x1f7811(0x1b8),'risk':a77_0x1f7811(0x1c8),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x408af5){const _0x89b51a=a77_0x1f7811;return logger[_0x89b51a(0x1b3)](),console[_0x89b51a(0x1b5)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d2862,_0x28bb56){const _0x5e7fc4=a78_0x48d4,_0xd703e0=_0x2d2862();while(!![]){try{const _0x272208=parseInt(_0x5e7fc4(0xdc))/0x1+-parseInt(_0x5e7fc4(0xe3))/0x2+-parseInt(_0x5e7fc4(0xdd))/0x3+parseInt(_0x5e7fc4(0xde))/0x4+parseInt(_0x5e7fc4(0xdf))/0x5+parseInt(_0x5e7fc4(0xe0))/0x6*(-parseInt(_0x5e7fc4(0xe1))/0x7)+-parseInt(_0x5e7fc4(0xe2))/0x8*(-parseInt(_0x5e7fc4(0xe4))/0x9);if(_0x272208===_0x28bb56)break;else _0xd703e0['push'](_0xd703e0['shift']());}catch(_0x3397e4){_0xd703e0['push'](_0xd703e0['shift']());}}}(a78_0x15c4,0xa46d3));import{menuSync}from'../../commands/menu/sync.js';function a78_0x48d4(_0x4cece1,_0x164e5d){_0x4cece1=_0x4cece1-0xdc;const _0x15c4db=a78_0x15c4();let _0x48d477=_0x15c4db[_0x4cece1];return _0x48d477;}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];function a78_0x15c4(){const _0x42dbe3=['950927BpzwoW','1775211gMKQbZ','4126532sOuHxa','3271375HHMNRm','6RlxirU','5408242cciKVr','1233704zSylBb','2123280iZVlHr','27UCWbEi'];a78_0x15c4=function(){return _0x42dbe3;};return a78_0x15c4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x32d838,_0x2ee261){const _0x1cacae=a79_0x9588,_0x426a0d=_0x32d838();while(!![]){try{const _0x46583c=parseInt(_0x1cacae(0xee))/0x1*(-parseInt(_0x1cacae(0x105))/0x2)+parseInt(_0x1cacae(0xf1))/0x3*(parseInt(_0x1cacae(0xff))/0x4)+parseInt(_0x1cacae(0x102))/0x5*(parseInt(_0x1cacae(0x109))/0x6)+parseInt(_0x1cacae(0x103))/0x7+parseInt(_0x1cacae(0x106))/0x8*(parseInt(_0x1cacae(0xf7))/0x9)+parseInt(_0x1cacae(0xef))/0xa*(-parseInt(_0x1cacae(0xf8))/0xb)+parseInt(_0x1cacae(0xfc))/0xc*(parseInt(_0x1cacae(0xfe))/0xd);if(_0x46583c===_0x2ee261)break;else _0x426a0d['push'](_0x426a0d['shift']());}catch(_0x35f180){_0x426a0d['push'](_0x426a0d['shift']());}}}(a79_0x3475,0x6bea7));function a79_0x3475(){const _0x293f10=['792JxNjlw','test','path','306yfyiRX','label','Platform','online','\x20\x20\x20\x20JS:\x20\x20','repeat','1eqlvIE','10460UvCtDo','join','210201ymFgAz','\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.','showOnline','\x20\x20\x20\x20CSS:\x20','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','local','33849otjkxe','2035cqTUID','length','\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:','(unchanged)','12EQmaQS','\x20\x20\x20\x20•\x20','1392937foEAMZ','4mIFqCg','max','Menu\x20Name','17565qgOJym','4045461kxRhmW','push','1342216ZjXzHy'];a79_0x3475=function(){return _0x293f10;};return a79_0x3475();}function strWidth(_0x327e7c){const _0x1bd628=a79_0x9588;let _0x12bfc8=0x0;for(const _0x4325be of _0x327e7c){_0x12bfc8+=/[\u4e00-\u9fa5]/[_0x1bd628(0x107)](_0x4325be)?0x2:0x1;}return _0x12bfc8;}function padRight(_0x4574e8,_0x443ce4){const _0x11fec4=a79_0x9588,_0x41e959=strWidth(_0x4574e8);return _0x4574e8+'\x20'[_0x11fec4(0xed)](Math[_0x11fec4(0x100)](0x0,_0x443ce4-_0x41e959));}export function renderCompareTable(_0x1a8ca7,_0x33eb70={}){const _0x4daa70=a79_0x9588;if(_0x1a8ca7['length']===0x0)return'';const _0x1b6067=_0x33eb70[_0x4daa70(0xf3)]??!![],_0x35986c=Math['max'](0x1e,..._0x1a8ca7['map'](_0x1fc99e=>strWidth(_0x1fc99e[_0x4daa70(0x10a)]))),_0x5a8019=0x4,_0x5b48f1=[],_0x288e7a='\x20\x20'+padRight(_0x4daa70(0x101),_0x35986c),_0x4fb75b=padRight('Local',_0x5a8019),_0x3f4023=_0x1b6067?'\x20\x20'+padRight(_0x4daa70(0xea),_0x5a8019):'';_0x5b48f1[_0x4daa70(0x104)](_0x288e7a+'\x20\x20'+_0x4fb75b+(_0x1b6067?_0x3f4023:'')),_0x5b48f1[_0x4daa70(0x104)]('\x20\x20'+'─'[_0x4daa70(0xed)](_0x35986c)+'\x20\x20'+'─'[_0x4daa70(0xed)](_0x5a8019)+(_0x1b6067?'\x20\x20'+'─'[_0x4daa70(0xed)](_0x5a8019):''));for(const _0x20f25f of _0x1a8ca7){const _0x3c3591=padRight(_0x20f25f['label'],_0x35986c),_0x37fd4f=_0x20f25f[_0x4daa70(0xf6)]?'✓':'✗',_0x1cbf91=padRight(_0x37fd4f,_0x5a8019);let _0x2b8cf2='\x20\x20'+_0x3c3591+'\x20\x20'+_0x1cbf91;if(_0x1b6067){const _0x205957=_0x20f25f[_0x4daa70(0xeb)]?'✓':'✗';_0x2b8cf2+='\x20\x20'+padRight(_0x205957,_0x5a8019);}_0x5b48f1[_0x4daa70(0x104)](_0x2b8cf2);}return _0x5b48f1['join']('\x0a');}function a79_0x9588(_0x364f44,_0x180fc1){_0x364f44=_0x364f44-0xea;const _0x347528=a79_0x3475();let _0x9588b8=_0x347528[_0x364f44];return _0x9588b8;}export function renderSyncSummary(_0x21f423,_0x16371c){const _0x14b060=a79_0x9588;if(_0x21f423[_0x14b060(0xf9)]===0x0)return _0x16371c?_0x14b060(0xf5):'\x20\x20No\x20pages\x20to\x20sync.';const _0x1d39b5=['\x20\x20'+_0x21f423[_0x14b060(0xf9)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x42f634 of _0x21f423){_0x1d39b5[_0x14b060(0x104)](_0x14b060(0xfd)+_0x42f634['label']+'\x20('+_0x42f634[_0x14b060(0x108)]+')');}return _0x1d39b5[_0x14b060(0xf0)]('\x0a');}export function renderUpdateSummary(_0x1405e6,_0x576e26){const _0x3ebb4c=a79_0x9588;if(_0x1405e6['length']===0x0)return _0x3ebb4c(0xf2);const _0x479742=['\x20\x20'+_0x1405e6[_0x3ebb4c(0xf9)]+_0x3ebb4c(0xfa),_0x3ebb4c(0xec)+(_0x576e26[0x0]??_0x3ebb4c(0xfb)),_0x3ebb4c(0xf4)+(_0x576e26[0x1]??'(unchanged)'),'','\x20\x20Affected\x20menus:\x20'+_0x1405e6[_0x3ebb4c(0xf0)](',\x20')];return _0x479742[_0x3ebb4c(0xf0)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x575d4d,_0x10616a){var _0x1fc3c2=a80_0x3ea9,_0x1d1dce=_0x575d4d();while(!![]){try{var _0x4a9923=-parseInt(_0x1fc3c2(0x7a))/0x1+-parseInt(_0x1fc3c2(0x7c))/0x2+parseInt(_0x1fc3c2(0x76))/0x3*(parseInt(_0x1fc3c2(0x78))/0x4)+-parseInt(_0x1fc3c2(0x79))/0x5+-parseInt(_0x1fc3c2(0x7d))/0x6+-parseInt(_0x1fc3c2(0x77))/0x7+parseInt(_0x1fc3c2(0x7b))/0x8;if(_0x4a9923===_0x10616a)break;else _0x1d1dce['push'](_0x1d1dce['shift']());}catch(_0x35513b){_0x1d1dce['push'](_0x1d1dce['shift']());}}}(a80_0x4811,0xb66c4));export*from'../../../commands/menu/shared/types.js';export*from'../../../commands/menu/shared/logic.js';export*from'../../../commands/menu/shared/compare-table.js';export*from'../../../commands/menu/shared/inquirer.js';export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';function a80_0x4811(){var _0x2e2456=['4326189axYqcz','788eRyuve','2067500zxnOQr','1269422rVvDSm','28745424AQezGh','1722744lNBtrc','3965820kATFxG','14883ApfZOu'];a80_0x4811=function(){return _0x2e2456;};return a80_0x4811();}export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';function a80_0x3ea9(_0x44b92e,_0x4d443d){_0x44b92e=_0x44b92e-0x76;var _0x4811fc=a80_0x4811();var _0x3ea9fe=_0x4811fc[_0x44b92e];return _0x3ea9fe;}export*from'../../../commands/menu/shared/update-core.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e014a,_0x4a2c3b){const _0x5dccc6=a81_0xe080,_0xe1ed17=_0x4e014a();while(!![]){try{const _0x49b903=parseInt(_0x5dccc6(0xcc))/0x1+-parseInt(_0x5dccc6(0xe8))/0x2*(-parseInt(_0x5dccc6(0xe1))/0x3)+-parseInt(_0x5dccc6(0xdf))/0x4+-parseInt(_0x5dccc6(0xc3))/0x5+-parseInt(_0x5dccc6(0xd9))/0x6+parseInt(_0x5dccc6(0xe5))/0x7+parseInt(_0x5dccc6(0xcd))/0x8*(-parseInt(_0x5dccc6(0xeb))/0x9);if(_0x49b903===_0x4a2c3b)break;else _0xe1ed17['push'](_0xe1ed17['shift']());}catch(_0x37cf65){_0xe1ed17['push'](_0xe1ed17['shift']());}}}(a81_0x23d5,0x7ca0f));import a81_0x8bf3d0 from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a81_0x49e620 from'ora';function a81_0x23d5(){const _0x72705d=['stdin','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','ExitPromptError','2308974RWNRXQ','filter','Cancelled.','length','\x20\x20CSS\x20URL:','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','2177044AYZdxB','\x20\x20JS\x20URL:','3lokAmY','CSS\x20URL\x20checked','test','map','7136304ZnmzvP','JS\x20URL\x20check\x20failed','label','676154TXLEDL','cyan','error','1271367rJtJHq','red','isTTY','[already\x20on\x20platform]','399775QZKoUs','path','\x20\x20Checking\x20JS\x20URL\x20reachability...','start','cancelled','name','\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','303238YboKoX','8RsgHAE','No\x20local\x20pages\x20found.','\x20\x20Checking\x20CSS\x20URL\x20reachability...','Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','No\x20menus\x20selected.','has','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','CSS\x20URL\x20check\x20failed','trim'];a81_0x23d5=function(){return _0x72705d;};return a81_0x23d5();}import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x5ca262){return _0x5ca262['catch'](_0x3e3710=>{const _0x5988e1=a81_0xe080;if(_0x3e3710?.[_0x5988e1(0xc8)]===_0x5988e1(0xd8))throw CliErrors[_0x5988e1(0xc7)](_0x5988e1(0xdb));throw _0x3e3710;});}function a81_0xe080(_0x1796e0,_0x413fa6){_0x1796e0=_0x1796e0-0xc1;const _0x23d5ac=a81_0x23d5();let _0xe0800e=_0x23d5ac[_0x1796e0];return _0xe0800e;}export function startSpinner(_0x393603){const _0x3fcc51=a81_0xe080;return a81_0x49e620({'text':_0x393603,'color':_0x3fcc51(0xe9)})[_0x3fcc51(0xc6)]();}export function stopSpinner(_0x31a5bf,_0x42d97e,_0x1a1932){_0x1a1932?_0x31a5bf['succeed'](_0x42d97e):_0x31a5bf['fail'](_0x42d97e);}export async function askConfirm(_0x3759d1){return onCancel(confirm({'message':_0x3759d1,'theme':{'prefix':''}}));}export async function askJsUrl(_0x3557ac){const _0x1e7fef=a81_0xe080;while(!![]){const _0x6ecdd2=await onCancel(input({'message':_0x1e7fef(0xe0),'default':_0x3557ac,'theme':{'prefix':''}}));if(_0x6ecdd2[_0x1e7fef(0xd5)]()==='')throw CliErrors[_0x1e7fef(0xc7)]('Cancelled.');if(!/^https:\/\/.+\.js(\?.*)?$/[_0x1e7fef(0xe3)](_0x6ecdd2['trim']())){console[_0x1e7fef(0xea)](a81_0x8bf3d0[_0x1e7fef(0xec)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0xe01f55=startSpinner(_0x1e7fef(0xc5));try{const _0x3f4dfc=await isUrlReachable(_0x6ecdd2[_0x1e7fef(0xd5)]());stopSpinner(_0xe01f55,'JS\x20URL\x20checked',_0x3f4dfc);if(!_0x3f4dfc){console[_0x1e7fef(0xea)](a81_0x8bf3d0[_0x1e7fef(0xec)](_0x1e7fef(0xd3)));continue;}return _0x6ecdd2[_0x1e7fef(0xd5)]();}catch(_0xb7571f){stopSpinner(_0xe01f55,_0x1e7fef(0xe6),![]);throw _0xb7571f;}}}export async function askCssUrl(_0x36a69f){const _0x3f4e65=a81_0xe080;while(!![]){const _0x542419=await onCancel(input({'message':_0x3f4e65(0xdd),'default':_0x36a69f,'theme':{'prefix':''}}));if(_0x542419[_0x3f4e65(0xd5)]()==='')throw CliErrors[_0x3f4e65(0xc7)](_0x3f4e65(0xdb));if(!/^https:\/\/.+\.css(\?.*)?$/[_0x3f4e65(0xe3)](_0x542419[_0x3f4e65(0xd5)]())){console[_0x3f4e65(0xea)](a81_0x8bf3d0['red'](_0x3f4e65(0xcb)));continue;}const _0x2901f5=startSpinner(_0x3f4e65(0xcf));try{const _0x42e40d=await isUrlReachable(_0x542419[_0x3f4e65(0xd5)]());stopSpinner(_0x2901f5,_0x3f4e65(0xe2),_0x42e40d);if(!_0x42e40d){console['error'](a81_0x8bf3d0[_0x3f4e65(0xec)](_0x3f4e65(0xd7)));continue;}return _0x542419[_0x3f4e65(0xd5)]();}catch(_0x4a8051){stopSpinner(_0x2901f5,_0x3f4e65(0xd4),![]);throw _0x4a8051;}}}export async function selectPages(_0x6a21d2,_0x3f31b5,_0x475b60){const _0x49ca78=a81_0xe080,_0x124a62=_0x6a21d2[_0x49ca78(0xe4)](_0x4b75e7=>({'name':_0x4b75e7['label']+'\x20\x20'+(_0x3f31b5[_0x49ca78(0xd2)](_0x4b75e7[_0x49ca78(0xc4)])?a81_0x8bf3d0['gray'](_0x49ca78(0xc2)):a81_0x8bf3d0[_0x49ca78(0xca)]('[new]')),'value':_0x4b75e7[_0x49ca78(0xe7)],'checked':_0x475b60?_0x475b60['includes'](_0x4b75e7['label']):!_0x3f31b5[_0x49ca78(0xd2)](_0x4b75e7[_0x49ca78(0xc4)])}));if(_0x124a62[_0x49ca78(0xdc)]===0x0)throw new Error(_0x49ca78(0xce));const _0x326346=await onCancel(checkbox({'message':_0x49ca78(0xc9),'choices':_0x124a62,'loop':![],'theme':{'prefix':''}}));if(_0x326346['length']===0x0)throw new Error(_0x49ca78(0xd1));return _0x6a21d2[_0x49ca78(0xda)](_0x2485d9=>_0x326346['includes'](_0x2485d9[_0x49ca78(0xe7)]));}export function isInteractive(){const _0x213dcc=a81_0xe080;return process[_0x213dcc(0xd6)][_0x213dcc(0xc1)]===!![];}export function requireInteractive(){const _0x3c89d3=a81_0xe080;if(!isInteractive())throw new Error(_0x3c89d3(0xde)+_0x3c89d3(0xd0));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x40cdf5=a82_0x4e2b;function a82_0x3966(){const _0x52ddf0=['4213647PzJLZz','path','match','.tsx','slice','26517700zckxBX','cwd','trim','replaceAll','forEach','concat','endsWith','7gnCXAM','isDirectory','join','4647848KeaHVg','2339860SrJOgW','10BteXnC','split','436721CySeaM','900822TUVvKk','6obrTIc','replace','src/pages','filter','1391754kCpCyC','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'];a82_0x3966=function(){return _0x52ddf0;};return a82_0x3966();}(function(_0x2a9b18,_0x1a2f6c){const _0x1e4c7f=a82_0x4e2b,_0x43ca47=_0x2a9b18();while(!![]){try{const _0x2026a9=-parseInt(_0x1e4c7f(0xc1))/0x1*(parseInt(_0x1e4c7f(0xc3))/0x2)+-parseInt(_0x1e4c7f(0xc2))/0x3+-parseInt(_0x1e4c7f(0xbe))/0x4*(parseInt(_0x1e4c7f(0xbf))/0x5)+-parseInt(_0x1e4c7f(0xc7))/0x6+-parseInt(_0x1e4c7f(0xba))/0x7*(-parseInt(_0x1e4c7f(0xbd))/0x8)+parseInt(_0x1e4c7f(0xc9))/0x9+parseInt(_0x1e4c7f(0xce))/0xa;if(_0x2026a9===_0x1a2f6c)break;else _0x43ca47['push'](_0x43ca47['shift']());}catch(_0x1b10e4){_0x43ca47['push'](_0x43ca47['shift']());}}}(a82_0x3966,0xa81e0));function a82_0x4e2b(_0x82fb3b,_0x6f8876){_0x82fb3b=_0x82fb3b-0xb6;const _0x396600=a82_0x3966();let _0x4e2b1c=_0x396600[_0x82fb3b];return _0x4e2b1c;}import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a82_0x40cdf5(0xcf)](),a82_0x40cdf5(0xc5));export function extractTitleFromComment(_0xe4622a){const _0x3f8989=a82_0x40cdf5;try{const _0x79eea8=readFileSync(_0xe4622a,'utf-8'),_0x1634f7=_0x79eea8[_0x3f8989(0xcb)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x1634f7&&_0x1634f7[0x1]){const _0x5cdb52=_0x1634f7[0x1],_0x32b589=_0x5cdb52[_0x3f8989(0xcb)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x32b589&&_0x32b589[0x1])return _0x32b589[0x1][_0x3f8989(0xd0)]();}let _0x46e1de=null;const _0x4afacc=_0x79eea8[_0x3f8989(0xcb)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x4afacc&&_0x4afacc[0x1]&&(_0x46e1de=_0x4afacc[0x1]);if(!_0x46e1de){const _0x5d8423=_0x79eea8[_0x3f8989(0xcb)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x5d8423&&_0x5d8423[0x1]&&(_0x46e1de=_0x5d8423[0x1]);}if(_0x46e1de){const _0x527ed7=new RegExp('\x5cb'+_0x46e1de+_0x3f8989(0xc8)),_0x494c39=_0x79eea8[_0x3f8989(0xcb)](_0x527ed7);if(_0x494c39&&_0x494c39[0x1])return _0x494c39[0x1];return _0x46e1de;}return null;}catch(_0x4234e9){return null;}}export function getLocalPages(_0x3583c5=pagesDir,_0x26ebdf=pagesDir){const _0x539a6c=a82_0x40cdf5;let _0x249302=[];const _0x1b84be=readdirSync(_0x3583c5);return _0x1b84be[_0x539a6c(0xb7)](_0x2e05fc=>{const _0x1b4bfd=_0x539a6c,_0x20c7d7=join(_0x3583c5,_0x2e05fc),_0x393822=statSync(_0x20c7d7);if(_0x393822&&_0x393822[_0x1b4bfd(0xbb)]())_0x249302=_0x249302[_0x1b4bfd(0xb8)](getLocalPages(_0x20c7d7,_0x26ebdf));else{if(_0x2e05fc['endsWith'](_0x1b4bfd(0xcc))){let _0x31c237=relative(_0x26ebdf,_0x20c7d7);_0x31c237[_0x1b4bfd(0xb9)]('index.tsx')?_0x31c237=_0x31c237[_0x1b4bfd(0xc4)](/index\.tsx$/,''):_0x31c237=_0x31c237[_0x1b4bfd(0xc4)](/\.tsx$/,'');_0x31c237[_0x1b4bfd(0xb9)](sep)&&(_0x31c237=_0x31c237[_0x1b4bfd(0xcd)](0x0,-0x1));const _0x191af1=_0x31c237[_0x1b4bfd(0xc0)](sep)[_0x1b4bfd(0xbc)]('/'),_0x476e95=extractTitleFromComment(_0x20c7d7),_0x864ce9=_0x476e95||_0x191af1;_0x249302['push']({'path':_0x191af1[_0x1b4bfd(0xb6)]('$',':'),'label':_0x864ce9});}}}),_0x249302[_0x539a6c(0xc6)](_0xb2eba8=>_0xb2eba8[_0x539a6c(0xca)]!=='');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a83_0x1fcf(){const _0x1fef10=['has','174146jzOyiv','resources','rejected','allSettled','5935160PmCRRm','join','errors','label','1045512LfgDXX','push','77iTcJvu','5zdoiNE','3888054EtHCVY','find','filter','3346803fbgwvf','965896nKehIp','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','4NbauAP','map','CSS\x20URL\x20is\x20unreachable','trim','No\x20local\x20pages\x20matched\x20labels:\x20','length','JS\x20URL\x20is\x20unreachable','value','1102335awiEvB','status','path','fulfilled','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'];a83_0x1fcf=function(){return _0x1fef10;};return a83_0x1fcf();}(function(_0x309790,_0xcecb9f){const _0x647649=a83_0x2228,_0xd7c147=_0x309790();while(!![]){try{const _0xe869fc=-parseInt(_0x647649(0x172))/0x1+-parseInt(_0x647649(0x164))/0x2*(-parseInt(_0x647649(0x16c))/0x3)+-parseInt(_0x647649(0x17a))/0x4+parseInt(_0x647649(0x17d))/0x5*(-parseInt(_0x647649(0x17e))/0x6)+parseInt(_0x647649(0x17c))/0x7*(parseInt(_0x647649(0x182))/0x8)+parseInt(_0x647649(0x181))/0x9+-parseInt(_0x647649(0x176))/0xa;if(_0xe869fc===_0xcecb9f)break;else _0xd7c147['push'](_0xd7c147['shift']());}catch(_0x98dced){_0xd7c147['push'](_0xd7c147['shift']());}}}(a83_0x1fcf,0xb9037));function a83_0x2228(_0xfa8ef0,_0x541324){_0xfa8ef0=_0xfa8ef0-0x164;const _0x1fcf3f=a83_0x1fcf();let _0x222885=_0x1fcf3f[_0xfa8ef0];return _0x222885;}import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x1d8795){const _0x2d76c6=a83_0x2228,_0x19a6d2=[];return!isValidJsHttpsUrl(_0x1d8795)&&_0x19a6d2[_0x2d76c6(0x17b)](_0x2d76c6(0x170)),{'ok':_0x19a6d2['length']===0x0,'errors':_0x19a6d2};}export function validateCssUrl(_0x1ab5e6){const _0x4ce8b0=a83_0x2228,_0x555c48=[];return!isValidCssHttpsUrl(_0x1ab5e6)&&_0x555c48[_0x4ce8b0(0x17b)](_0x4ce8b0(0x183)),{'ok':_0x555c48[_0x4ce8b0(0x169)]===0x0,'errors':_0x555c48};}export async function validateJsUrlReachable(_0x980a00){const _0x39e063=a83_0x2228,_0x13c654=validateJsUrl(_0x980a00);if(!_0x13c654['ok'])return _0x13c654;const _0x20cbae=await isUrlReachable(_0x980a00);if(!_0x20cbae)_0x13c654[_0x39e063(0x178)]['push'](_0x39e063(0x16a));return{'ok':_0x13c654[_0x39e063(0x178)]['length']===0x0,'errors':_0x13c654[_0x39e063(0x178)]};}export async function validateCssUrlReachable(_0x1c8bc5){const _0x46d0ef=a83_0x2228,_0x50a59d=validateCssUrl(_0x1c8bc5);if(!_0x50a59d['ok'])return _0x50a59d;const _0x297f58=await isUrlReachable(_0x1c8bc5);if(!_0x297f58)_0x50a59d['errors'][_0x46d0ef(0x17b)](_0x46d0ef(0x166));return{'ok':_0x50a59d[_0x46d0ef(0x178)][_0x46d0ef(0x169)]===0x0,'errors':_0x50a59d['errors']};}export function buildCompareRows(_0x41b5aa,_0x37648f){const _0x30ea94=a83_0x2228;return _0x41b5aa[_0x30ea94(0x165)](_0x4eb515=>({'label':_0x4eb515[_0x30ea94(0x179)],'path':_0x4eb515['path'],'local':!![],'online':_0x37648f[_0x30ea94(0x171)](_0x4eb515[_0x30ea94(0x16e)])}));}export function filterNewPages(_0x70445d,_0x52cde4,_0x3c8bb4){const _0x544496=a83_0x2228;if(_0x3c8bb4&&_0x3c8bb4[_0x544496(0x169)]>0x0){const _0x486fca=new Set(_0x3c8bb4[_0x544496(0x165)](_0x294429=>_0x294429[_0x544496(0x167)]())),_0x15a625=_0x70445d[_0x544496(0x180)](_0x1bf6a0=>_0x486fca['has'](_0x1bf6a0['label']));if(_0x15a625[_0x544496(0x169)]===0x0)throw new Error(_0x544496(0x168)+[..._0x486fca][_0x544496(0x177)](',\x20'));return _0x15a625;}return _0x70445d[_0x544496(0x180)](_0x18d856=>!_0x52cde4[_0x544496(0x171)](_0x18d856[_0x544496(0x16e)]));}export function filterPagesByLabels(_0x3300bf,_0x839b0c){const _0x591851=a83_0x2228,_0x186bc8=[],_0x4a350c=[];for(const _0x51ea2f of _0x839b0c){const _0x5dd8de=_0x51ea2f['trim'](),_0x3d9267=_0x3300bf[_0x591851(0x17f)](_0x356b98=>_0x356b98[_0x591851(0x179)]===_0x5dd8de);if(_0x3d9267)_0x186bc8['push'](_0x3d9267);else _0x4a350c[_0x591851(0x17b)](_0x51ea2f);}return{'matched':_0x186bc8,'unmatched':_0x4a350c};}export async function doCreateMenus(_0x115d50,_0x465152,_0x3321bd,_0x3b2f8f){const _0xff1b87=a83_0x2228,_0x3a4e63=await createMenus(_0x115d50,_0x465152,_0x3321bd,_0x3b2f8f);return{'created':_0x3a4e63[_0xff1b87(0x169)],'failed':0x0,'labels':_0x3321bd['map'](_0x38ebed=>_0x38ebed[_0xff1b87(0x179)]),'menus':_0x3a4e63};}export function filterMenusWithResources(_0x189809){const _0x394a8b=a83_0x2228;return _0x189809[_0x394a8b(0x180)](_0x54a752=>_0x54a752[_0x394a8b(0x173)][_0x394a8b(0x169)]>0x0);}export async function doUpdateCdnUrls(_0x1c2fa3,_0x265fcb,_0xca1075,_0x1c0886){const _0x1be083=a83_0x2228,_0x5f36fa=_0xca1075[_0x1be083(0x180)](_0x33b1c1=>_0x33b1c1['resources']['length']>0x0),_0x840722=await Promise[_0x1be083(0x175)](_0x5f36fa['map'](_0x592b9b=>updateMenuCdnUrl(_0x1c2fa3,_0x265fcb,{'id':_0x592b9b['id'],'label':_0x592b9b[_0x1be083(0x179)],'path':_0x592b9b['path'],'resources':_0x1c0886}))),_0x59fac1=_0x840722[_0x1be083(0x180)](_0x3b9619=>_0x3b9619['status']===_0x1be083(0x16f))[_0x1be083(0x165)](_0x444793=>_0x444793[_0x1be083(0x16b)]),_0x204d36=_0x840722['filter'](_0x477112=>_0x477112[_0x1be083(0x16d)]===_0x1be083(0x174))[_0x1be083(0x169)];return{'updated':_0x59fac1[_0x1be083(0x169)],'failed':_0x204d36,'menus':_0x59fac1};}export async function fetchMenuData(_0xdb140c,_0x13297){const _0xabe7ed=a83_0x2228,_0x792d66=getLocalPages(),_0x199fde=await getOnlineMenuList(_0xdb140c,_0x13297),_0x4bca20=new Set(_0x199fde[_0xabe7ed(0x165)](_0x2911d9=>_0x2911d9['path']));return{'localPages':_0x792d66,'onlineMenuList':_0x199fde,'onlinePaths':_0x4bca20};}export async function fetchOnlineMenuList(_0x2c1301,_0x2d1052){return getOnlineMenuList(_0x2c1301,_0x2d1052);}
|