@lovrabet/rabetbase-cli 2.1.7-beta.6 → 2.1.7-beta.7
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/templates/projects/sub-app-react-demo/README.md +1 -1
package/lib/commands/db/list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a68_0x24d5(){const _0x4488b0=['appCode','length','number','81SiTwzK','1989620hSjisW','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','12318964unIJIp','2230ZFVjHN','page','3475NnaHXy','Page\x20index\x20(1-based)','Found\x20','\x20database\x20connection(s)','11mEBsCu','num','Page\x20size','27hogXIQ','Server\x20omitted\x20paging\x20metadata;\x20totalCount\x20is\x20unknown\x20—\x20rowsOnPage\x20is\x20this\x20page\x20only','pagesize','5370tmNlfY','2488xIBDem','11454eGSmiJ','3518392uUkDmK','12390012ujmhyI'];a68_0x24d5=function(){return _0x4488b0;};return a68_0x24d5();}const a68_0x367de7=a68_0x502f;function a68_0x502f(_0x22ab72,_0x36c124){_0x22ab72=_0x22ab72-0xe0;const _0x24d59b=a68_0x24d5();let _0x502f7d=_0x24d59b[_0x22ab72];return _0x502f7d;}(function(_0x5161a2,_0x10fc7a){const _0x2f5a2b=a68_0x502f,_0x5d35c9=_0x5161a2();while(!![]){try{const _0x3144ad=parseInt(_0x2f5a2b(0xed))/0x1*(parseInt(_0x2f5a2b(0xe4))/0x2)+parseInt(_0x2f5a2b(0xf0))/0x3*(parseInt(_0x2f5a2b(0xf1))/0x4)+parseInt(_0x2f5a2b(0xe6))/0x5*(parseInt(_0x2f5a2b(0xf2))/0x6)+parseInt(_0x2f5a2b(0xe3))/0x7+-parseInt(_0x2f5a2b(0xf3))/0x8+-parseInt(_0x2f5a2b(0xe0))/0x9*(parseInt(_0x2f5a2b(0xe1))/0xa)+-parseInt(_0x2f5a2b(0xea))/0xb*(parseInt(_0x2f5a2b(0xf4))/0xc);if(_0x3144ad===_0x10fc7a)break;else _0x5d35c9['push'](_0x5d35c9['shift']());}catch(_0x227e0a){_0x5d35c9['push'](_0x5d35c9['shift']());}}}(a68_0x24d5,0xec1de));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':'list','description':a68_0x367de7(0xe2),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':a68_0x367de7(0xe5),'type':'number','description':a68_0x367de7(0xe7),'default':0x1},{'name':'pagesize','type':a68_0x367de7(0xf7),'description':a68_0x367de7(0xec),'default':0x64}],async 'execute'(_0x49aeee){const _0x4e9ed8=a68_0x367de7,_0x3e8eea=_0x49aeee[_0x4e9ed8(0xeb)](_0x4e9ed8(0xe5),0x1)||0x1,_0x1d3267=_0x49aeee['num'](_0x4e9ed8(0xef),0x64)||0x64,{items:_0x1c8f8e,paging:_0x264e50}=await listDbLinks(_0x49aeee[_0x4e9ed8(0xf5)],{'currentPage':_0x3e8eea,'pageSize':_0x1d3267}),_0x5f2110=sanitizeDbLinkList(_0x1c8f8e),_0x255d13=_0x264e50?_0x264e50:{'currentPage':_0x3e8eea,'pageSize':_0x1d3267,'rowsOnPage':_0x5f2110[_0x4e9ed8(0xf6)],'totalCount':null,'note':_0x4e9ed8(0xee)};return{'ok':!![],'data':{'connections':_0x5f2110,'paging':_0x255d13},'message':_0x4e9ed8(0xe8)+_0x5f2110[_0x4e9ed8(0xf6)]+_0x4e9ed8(0xe9)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x468680,_0x88f397){const _0x1f7971=a69_0x1d41,_0x337526=_0x468680();while(!![]){try{const _0x233192=parseInt(_0x1f7971(0x10d))/0x1+parseInt(_0x1f7971(0x104))/0x2+parseInt(_0x1f7971(0x103))/0x3+-parseInt(_0x1f7971(0x111))/0x4*(parseInt(_0x1f7971(0x10f))/0x5)+parseInt(_0x1f7971(0x117))/0x6+-parseInt(_0x1f7971(0x115))/0x7+-parseInt(_0x1f7971(0x10b))/0x8*(-parseInt(_0x1f7971(0x102))/0x9);if(_0x233192===_0x88f397)break;else _0x337526['push'](_0x337526['shift']());}catch(_0x4038f9){_0x337526['push'](_0x337526['shift']());}}}(a69_0x1864,0xd0984));import{getEnv,isDaily,normalizeEnv}from'../../constant/env.js';function shouldRedactKey(_0x3b0118){const _0x24ae02=a69_0x1d41,_0x152e2f=_0x3b0118[_0x24ae02(0x116)]();if(_0x152e2f===_0x24ae02(0x106)||_0x152e2f===_0x24ae02(0x110)||_0x152e2f===_0x24ae02(0x10c))return!![];if(_0x152e2f[_0x24ae02(0x10a)](_0x24ae02(0x112))||_0x152e2f[_0x24ae02(0x10a)](_0x24ae02(0x114))||_0x152e2f['includes']('credential'))return!![];if(_0x152e2f[_0x24ae02(0x10a)]('privatekey')||_0x152e2f[_0x24ae02(0x10a)]('accesskey'))return!![];if(_0x152e2f==='authorization'||_0x152e2f==='connectionstring'||_0x152e2f==='jdbcurl')return!![];return![];}function a69_0x1864(){const _0x10c20f=['isFinite','126285rlrGLQ','passwd','236OagGWP','secret','length','token','6420666ULClep','toLowerCase','3339450UvbJRn','https://app.lovrabet.com/app/','[redacted]','/data/er?dbId=','2473272lQimnO','63042ByDtwA','1903574dmHhZm','number','password','test','/data/database','trim','includes','16SMZXRR','dbpassword','1182813vcGMep'];a69_0x1864=function(){return _0x10c20f;};return a69_0x1864();}export function sanitizeDbLinkForOutput(_0x225b1f){const _0x550dcc=a69_0x1d41,_0x4bf8c6={..._0x225b1f};for(const _0x24fa6a of Object['keys'](_0x4bf8c6)){if(!shouldRedactKey(_0x24fa6a))continue;const _0x493260=_0x4bf8c6[_0x24fa6a];_0x493260!=null&&String(_0x493260)[_0x550dcc(0x113)]>0x0&&(_0x4bf8c6[_0x24fa6a]=_0x550dcc(0x119));}return _0x4bf8c6;}export function sanitizeDbLinkList(_0x6f433f){return _0x6f433f['map'](_0x40963a=>sanitizeDbLinkForOutput(_0x40963a));}const DB_URL_PATTERN=/^[^\s:]+(?::\d+)?$/;function a69_0x1d41(_0x13a1d6,_0x287b4f){_0x13a1d6=_0x13a1d6-0x101;const _0x186439=a69_0x1864();let _0x1d4110=_0x186439[_0x13a1d6];return _0x1d4110;}export function validateDbUrl(_0x4c2550){const _0x4b8b72=a69_0x1d41,_0xa2e78e=_0x4c2550['trim']();if(!_0xa2e78e)return![];return DB_URL_PATTERN[_0x4b8b72(0x107)](_0xa2e78e);}export function buildDbPageLinks(_0xa03684,_0x110078){const _0x4f406b=a69_0x1d41,_0x361ffd=_0xa03684?.['trim']();if(!_0x361ffd)return undefined;const _0x190e3d=typeof _0x110078===_0x4f406b(0x105)?String(_0x110078):String(_0x110078??'')[_0x4f406b(0x109)]();if(!_0x190e3d)return undefined;const _0x58d467=Number(_0x190e3d);if(!Number[_0x4f406b(0x10e)](_0x58d467)||_0x58d467<=0x0)return undefined;const _0x3d49b3=isDaily(normalizeEnv(getEnv()))?'https://daily.lovrabet.com/web-app/app/'+encodeURIComponent(_0x361ffd):_0x4f406b(0x118)+encodeURIComponent(_0x361ffd),_0x12bb54=encodeURIComponent(String(_0x58d467));return{'databasePage':_0x3d49b3+_0x4f406b(0x108),'erPage':_0x3d49b3+_0x4f406b(0x101)+_0x12bb54};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a70_0x56d7(){const _0x3a1165=['2UJmuJs','length','90Zngeiu','List\x20physical\x20tables\x20for\x20a\x20database\x20connection\x20(tags\x20show\x20analysis\x20state\x20vs\x20schema\x20drift)','23723OCCnBN','1074952NyhAVW','200306PFIBIm','\x20table(s)\x20on\x20db\x20link\x20','1696610MaOrkl','tables','appCode','9LwyrJl','1379248miBlXa','1086015TaxoVh','num','193653BPusrZ'];a70_0x56d7=function(){return _0x3a1165;};return a70_0x56d7();}const a70_0x3c3e37=a70_0x538a;(function(_0x24546c,_0x1e53ab){const _0xf6a6db=a70_0x538a,_0x259cad=_0x24546c();while(!![]){try{const _0x5b18ff=-parseInt(_0xf6a6db(0x130))/0x1*(-parseInt(_0xf6a6db(0x13a))/0x2)+-parseInt(_0xf6a6db(0x139))/0x3+-parseInt(_0xf6a6db(0x12f))/0x4+parseInt(_0xf6a6db(0x137))/0x5+-parseInt(_0xf6a6db(0x12c))/0x6*(-parseInt(_0xf6a6db(0x12e))/0x7)+parseInt(_0xf6a6db(0x136))/0x8*(parseInt(_0xf6a6db(0x135))/0x9)+-parseInt(_0xf6a6db(0x132))/0xa;if(_0x5b18ff===_0x1e53ab)break;else _0x259cad['push'](_0x259cad['shift']());}catch(_0x3e4fde){_0x259cad['push'](_0x259cad['shift']());}}}(a70_0x56d7,0x21a48));function a70_0x538a(_0x19d798,_0x2c00a2){_0x19d798=_0x19d798-0x12c;const _0x56d7c2=a70_0x56d7();let _0x538a2f=_0x56d7c2[_0x19d798];return _0x538a2f;}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':a70_0x3c3e37(0x133),'description':a70_0x3c3e37(0x12d),'risk':'read','flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4e8520){const _0x24a2b2=a70_0x3c3e37,_0xdaec26=_0x4e8520[_0x24a2b2(0x138)]('id'),_0x410991=await getDbAllTableList(_0x4e8520[_0x24a2b2(0x134)],_0xdaec26);return{'ok':!![],'data':{'dbLinkId':_0xdaec26,'total':_0x410991[_0x24a2b2(0x13b)],'tables':_0x410991},'message':_0x410991[_0x24a2b2(0x13b)]+_0x24a2b2(0x131)+_0xdaec26};}};
|
package/lib/commands/db/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a71_0x50dd3c=a71_0x3d2f;(function(_0x50991b,_0x1c7ae1){const _0x2ba35c=a71_0x3d2f,_0x23a923=_0x50991b();while(!![]){try{const _0x30e068=-parseInt(_0x2ba35c(0x83))/0x1*(parseInt(_0x2ba35c(0x78))/0x2)+parseInt(_0x2ba35c(0x72))/0x3*(-parseInt(_0x2ba35c(0x77))/0x4)+-parseInt(_0x2ba35c(0x7e))/0x5*(-parseInt(_0x2ba35c(0x87))/0x6)+parseInt(_0x2ba35c(0x74))/0x7+-parseInt(_0x2ba35c(0x80))/0x8+parseInt(_0x2ba35c(0x88))/0x9*(parseInt(_0x2ba35c(0x81))/0xa)+-parseInt(_0x2ba35c(0x76))/0xb*(-parseInt(_0x2ba35c(0x82))/0xc);if(_0x30e068===_0x1c7ae1)break;else _0x23a923['push'](_0x23a923['shift']());}catch(_0x50959a){_0x23a923['push'](_0x23a923['shift']());}}}(a71_0x32dc,0x333bf));function a71_0x32dc(){const _0x11bf8b=['Test\x20connectivity\x20to\x20the\x20configured\x20database\x20(uses\x20saved\x20credentials\x20on\x20server)','22JWopCT','1583548cpfzuT','242vmcVuV','object','error','slice','success','read','268390bJYeKY','Connection\x20OK\x20for\x20db\x20link\x20','179944UaXfSI','9820igVlgL','3857736gxRAvY','3251mPXtJy','keys','data','\x20(see\x20data.result)','6ZSdQhQ','1962LUJUEh','3OXKpHK','Connection\x20check\x20finished\x20for\x20db\x20link\x20','776272kAzbOo'];a71_0x32dc=function(){return _0x11bf8b;};return a71_0x32dc();}import{testDbLinkConnect}from'../../core/api-client.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a71_0x3d2f(_0x43a007,_0x2628aa){_0x43a007=_0x43a007-0x72;const _0x32dcc5=a71_0x32dc();let _0x3d2f78=_0x32dcc5[_0x43a007];return _0x3d2f78;}function summarizeTestConnectResult(_0x23ca3c){const _0x549273=a71_0x3d2f;if(_0x23ca3c===!![]||_0x23ca3c===![])return{'success':_0x23ca3c};if(_0x23ca3c===null||_0x23ca3c===undefined)return{'type':typeof _0x23ca3c};if(typeof _0x23ca3c!==_0x549273(0x79))return{'type':typeof _0x23ca3c};const _0x36090d=_0x23ca3c,_0x4a52e2=[_0x549273(0x7c),'message','code',_0x549273(0x7a),'msg',_0x549273(0x85)],_0xe01af1={};for(const _0x296491 of _0x4a52e2){if(_0x296491 in _0x36090d)_0xe01af1[_0x296491]=_0x36090d[_0x296491];}return Object[_0x549273(0x84)](_0xe01af1)['length']===0x0&&(_0xe01af1[_0x549273(0x84)]=Object['keys'](_0x36090d)[_0x549273(0x7b)](0x0,0x14)),_0xe01af1;}export const dbTest={'service':'db','command':'test','description':a71_0x50dd3c(0x75),'risk':a71_0x50dd3c(0x7d),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x38d8bf){const _0xc35e45=a71_0x50dd3c,_0x4982d2=_0x38d8bf['num']('id'),_0x45e1d1=await testDbLinkConnect(_0x4982d2),_0x17a886=_0x45e1d1===!![]||typeof _0x45e1d1===_0xc35e45(0x79)&&_0x45e1d1!==null&&_0x45e1d1[_0xc35e45(0x7c)]===!![],_0x52d17c=summarizeTestConnectResult(_0x45e1d1);return{'ok':!![],'data':{'id':_0x4982d2,'connected':Boolean(_0x17a886),'result':_0x52d17c},'message':_0x17a886?_0xc35e45(0x7f)+_0x4982d2:_0xc35e45(0x73)+_0x4982d2+_0xc35e45(0x86)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72_0x1fd9f9=a72_0x22d5;(function(_0x3ed585,_0x4e0e03){const _0x475188=a72_0x22d5,_0x59c7db=_0x3ed585();while(!![]){try{const _0x288e85=-parseInt(_0x475188(0x93))/0x1+-parseInt(_0x475188(0x95))/0x2+-parseInt(_0x475188(0x90))/0x3*(-parseInt(_0x475188(0x94))/0x4)+-parseInt(_0x475188(0x9c))/0x5*(parseInt(_0x475188(0x98))/0x6)+parseInt(_0x475188(0x92))/0x7+-parseInt(_0x475188(0x97))/0x8+parseInt(_0x475188(0x81))/0x9;if(_0x288e85===_0x4e0e03)break;else _0x59c7db['push'](_0x59c7db['shift']());}catch(_0x18f9ef){_0x59c7db['push'](_0x59c7db['shift']());}}}(a72_0x118f,0x5a71d));function a72_0x118f(){const _0x52a254=['710657nEgcIQ','2076OgZjif','857718vfLoNV','trim','3999168lvQVnZ','1002AlQUFS','str','update','dbUrl','18815ymhAkX','dbdesc','dbname','dburl','dbName','16866180ilXdQY','Update\x20an\x20existing\x20database\x20connection.\x20Only\x20supplied\x20fields\x20are\x20overwritten;\x20others\x20keep\x20server\x20values','num','write','Updated\x20db\x20link\x20','dbDesc','New\x20description','dbParam','POST','Invalid\x20--dburl:\x20expected\x20host:port,\x20got\x20\x22','username','validation','password','string','New\x20password\x20(omit\x20to\x20leave\x20unchanged).\x20Empty\x20string\x20may\x20be\x20treated\x20as\x20no-op\x20or\x20rejected\x20by\x20API','2571ldgPAD','New\x20database\x20name','2236437SKdbRs'];a72_0x118f=function(){return _0x52a254;};return a72_0x118f();}import{getDbLinkInfo,updateDbLink}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,DBLINK_ID_FLAG}from'../../commands/common/flags.js';import{sanitizeDbLinkForOutput,validateDbUrl}from'../../commands/db/shared.js';function a72_0x22d5(_0x10e41d,_0x1f6a0c){_0x10e41d=_0x10e41d-0x81;const _0x118f6f=a72_0x118f();let _0x22d52e=_0x118f6f[_0x10e41d];return _0x22d52e;}import{normalizeEntityWithIdResponse}from'../../utils/entity-with-id.js';export const dbUpdate={'service':'db','command':a72_0x1fd9f9(0x9a),'description':a72_0x1fd9f9(0x82),'risk':a72_0x1fd9f9(0x84),'flags':[DBLINK_ID_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a72_0x1fd9f9(0x9e),'type':a72_0x1fd9f9(0x8e),'description':a72_0x1fd9f9(0x91)},{'name':'dburl','type':a72_0x1fd9f9(0x8e),'description':'New\x20host:port'},{'name':a72_0x1fd9f9(0x8b),'type':a72_0x1fd9f9(0x8e),'description':'New\x20username'},{'name':a72_0x1fd9f9(0x8d),'type':a72_0x1fd9f9(0x8e),'description':a72_0x1fd9f9(0x8f)},{'name':'dbparam','type':a72_0x1fd9f9(0x8e),'description':'New\x20connection\x20parameter\x20string'},{'name':a72_0x1fd9f9(0x9d),'type':a72_0x1fd9f9(0x8e),'description':a72_0x1fd9f9(0x87)}],async 'validate'(_0x16631c){const _0x2358d7=a72_0x1fd9f9,_0xf0828c=_0x16631c['str']('dburl');if(_0xf0828c&&!validateDbUrl(_0xf0828c[_0x2358d7(0x96)]()))throw CliErrors[_0x2358d7(0x8c)](_0x2358d7(0x8a)+_0xf0828c+'\x22');},async 'dryRun'(_0x5c1187){const _0x2481d9=a72_0x1fd9f9,_0x5ecb16=_0x5c1187[_0x2481d9(0x83)]('id'),_0x102e42=await getDbLinkInfo(_0x5ecb16),_0x3a28c6={..._0x102e42},_0x488765=_0x5c1187[_0x2481d9(0x99)](_0x2481d9(0x9e));if(_0x488765)_0x3a28c6[_0x2481d9(0xa0)]=_0x488765;const _0x24a9e7=_0x5c1187[_0x2481d9(0x99)](_0x2481d9(0x9f));if(_0x24a9e7)_0x3a28c6['dbUrl']=_0x24a9e7[_0x2481d9(0x96)]();const _0x2e07a4=_0x5c1187['str']('username');if(_0x2e07a4)_0x3a28c6[_0x2481d9(0x8b)]=_0x2e07a4;const _0x2941d3=_0x5c1187[_0x2481d9(0x99)]('password');if(_0x2941d3)_0x3a28c6[_0x2481d9(0x8d)]=_0x2941d3;const _0xf9631b=_0x5c1187['str']('dbparam');if(_0xf9631b)_0x3a28c6[_0x2481d9(0x88)]=_0xf9631b;const _0x414c86=_0x5c1187[_0x2481d9(0x99)](_0x2481d9(0x9d));if(_0x414c86)_0x3a28c6[_0x2481d9(0x86)]=_0x414c86;const _0x394ea7=sanitizeDbLinkForOutput(_0x3a28c6);return{'method':_0x2481d9(0x89),'url':'/smartapi/dblink/update','body':_0x394ea7,'description':'Merged\x20server\x20record\x20with\x20CLI\x20overrides;\x20password\x20redacted\x20in\x20preview'};},async 'execute'(_0x4c6d23){const _0x3a3dbc=a72_0x1fd9f9,_0x209fb9=_0x4c6d23[_0x3a3dbc(0x83)]('id'),_0x558189=await getDbLinkInfo(_0x209fb9),_0x105815={..._0x558189},_0x16057c=_0x4c6d23[_0x3a3dbc(0x99)]('dbname');if(_0x16057c)_0x105815['dbName']=_0x16057c;const _0x1e60c5=_0x4c6d23[_0x3a3dbc(0x99)](_0x3a3dbc(0x9f));if(_0x1e60c5)_0x105815[_0x3a3dbc(0x9b)]=_0x1e60c5[_0x3a3dbc(0x96)]();const _0x44c236=_0x4c6d23['str']('username');if(_0x44c236)_0x105815[_0x3a3dbc(0x8b)]=_0x44c236;const _0x3de39d=_0x4c6d23[_0x3a3dbc(0x99)]('password');if(_0x3de39d)_0x105815['password']=_0x3de39d;const _0x1bef60=_0x4c6d23[_0x3a3dbc(0x99)]('dbparam');if(_0x1bef60)_0x105815[_0x3a3dbc(0x88)]=_0x1bef60;const _0x420686=_0x4c6d23['str'](_0x3a3dbc(0x9d));if(_0x420686)_0x105815[_0x3a3dbc(0x86)]=_0x420686;const {id:_0x125940,entity:_0x2e6f5f}=normalizeEntityWithIdResponse(await updateDbLink(_0x105815));return{'ok':!![],'data':sanitizeDbLinkForOutput(_0x2e6f5f),'message':_0x3a3dbc(0x85)+(_0x125940??_0x209fb9)};}};
|
package/lib/commands/doctor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
+
const a73_0x3bba66=a73_0x12a6;(function(_0x447e43,_0x3d1391){const _0x371b18=a73_0x12a6,_0x203380=_0x447e43();while(!![]){try{const _0x4caf04=parseInt(_0x371b18(0x1b3))/0x1+parseInt(_0x371b18(0x170))/0x2+parseInt(_0x371b18(0x17b))/0x3*(-parseInt(_0x371b18(0x1ca))/0x4)+-parseInt(_0x371b18(0x181))/0x5+-parseInt(_0x371b18(0x198))/0x6*(-parseInt(_0x371b18(0x1b9))/0x7)+parseInt(_0x371b18(0x199))/0x8*(-parseInt(_0x371b18(0x18a))/0x9)+parseInt(_0x371b18(0x17e))/0xa;if(_0x4caf04===_0x3d1391)break;else _0x203380['push'](_0x203380['shift']());}catch(_0x614e83){_0x203380['push'](_0x203380['shift']());}}}(a73_0x2667,0x5c425));import a73_0x55cc79 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';function a73_0x2667(){const _0x54adb0=['\x20(default)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','7FcVZct','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','env','explicitAppName','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','currentApp','arch','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','accessKey','length','repeat','\x20←\x20current','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','source','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','8YLharH','version','gray','1336804rwkPAd','Project','\x20\x20Merged\x20Config','✓\x20Valid\x20JSON','(not\x20found)','slice','(no\x20file)','defaultApp','read','\x20\x20\x20\x20cookie:\x20\x20\x20\x20\x20','log','66117XOWrDX','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','yellow','667650miwRYj','apiDir','check','1071275iPcIoi','padEnd','✗\x20Not\x20logged\x20in','raw','green','(default)','\x20\x20API\x20Endpoints','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20apiDir:\x20\x20\x20\x20\x20','5615856vVbIOa','✓\x20Valid','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20JSON','status','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','(not\x20set)','message','⚠\x20Empty\x20(treated\x20as\x20{})','pageSize','(none)','(missing)','1379622QwPvjJ','8XpehfQ','riskLevel','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','cookie','✗\x20Expired','value','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20runtimeDomain:\x20\x20\x20','missing','verbose','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','(set,\x20length=','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','red','\x20\x20Apps','\x20\x20\x20\x20accessKey:\x20\x20','✗\x20Invalid\x20JSON','(set\x20via\x20file,\x20length=','format','bold','\x20doctor','unknown','doctor','apps','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','\x20\x20explicitAppName:\x20','295106QIAqLJ','\x20\x20Auth','appcode','\x20\x20─'];a73_0x2667=function(){return _0x54adb0;};return a73_0x2667();}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';import{buildAppDoctorFields}from'../config/schema.js';function a73_0x12a6(_0x104cea,_0x523587){_0x104cea=_0x104cea-0x170;const _0x2667ee=a73_0x2667();let _0x12a6b3=_0x2667ee[_0x104cea];return _0x12a6b3;}async function execute(_0x2b693f){const _0x45c1c1=a73_0x12a6,_0x25dff2=GIT_COMMIT!==_0x45c1c1(0x1ae)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x45c1c1(0x175)](0x0,0xa)+')':VERSION,_0x160fd1=buildConfigFromFlags({}),_0x4ce668=getCookie();console[_0x45c1c1(0x17a)](),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1ac)](CLI_BIN_NAME+_0x45c1c1(0x1ad))),console[_0x45c1c1(0x17a)](a73_0x55cc79['gray']('─'[_0x45c1c1(0x1c5)](0x32))),console[_0x45c1c1(0x17a)](_0x45c1c1(0x19b)+_0x25dff2),console[_0x45c1c1(0x17a)](_0x45c1c1(0x18c)+process[_0x45c1c1(0x1cb)]),console[_0x45c1c1(0x17a)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process[_0x45c1c1(0x1c1)]),console['log'](),console['log'](a73_0x55cc79[_0x45c1c1(0x1ac)](_0x45c1c1(0x1be))),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x1b6)[_0x45c1c1(0x1c5)](0x1e)));const _0x59b2f9=getGlobalConfigPath(),_0x19e252=getProjectConfigPath();console[_0x45c1c1(0x17a)](_0x45c1c1(0x1a5)+(_0x59b2f9||a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x174)))),console[_0x45c1c1(0x17a)](_0x45c1c1(0x191)+(_0x19e252||a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x174)))),console['log'](),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1ac)](_0x45c1c1(0x18f))),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x1b6)[_0x45c1c1(0x1c5)](0x1e)));const _0x1bbc23=(_0x4e4b5b,_0x475a6c)=>{const _0x64979c=_0x45c1c1;if(!_0x475a6c){console[_0x64979c(0x17a)]('\x20\x20'+_0x4e4b5b[_0x64979c(0x182)](0x11)+'\x20'+a73_0x55cc79['gray'](_0x64979c(0x176)));return;}const _0x42095e=inspectCliConfigJsonFile(_0x475a6c);if(_0x42095e[_0x64979c(0x190)]==='ok')console['log']('\x20\x20'+_0x4e4b5b[_0x64979c(0x182)](0x11)+'\x20'+a73_0x55cc79[_0x64979c(0x185)](_0x64979c(0x173)));else{if(_0x42095e['status']==='empty')console[_0x64979c(0x17a)]('\x20\x20'+_0x4e4b5b[_0x64979c(0x182)](0x11)+'\x20'+a73_0x55cc79[_0x64979c(0x17d)](_0x64979c(0x194)));else _0x42095e[_0x64979c(0x190)]===_0x64979c(0x1a1)?console[_0x64979c(0x17a)]('\x20\x20'+_0x4e4b5b[_0x64979c(0x182)](0x11)+'\x20'+a73_0x55cc79['gray'](_0x64979c(0x197))):(console['log']('\x20\x20'+_0x4e4b5b[_0x64979c(0x182)](0x11)+'\x20'+a73_0x55cc79['red'](_0x64979c(0x1a9))),console[_0x64979c(0x17a)]('\x20\x20'+''[_0x64979c(0x182)](0x11)+'\x20'+a73_0x55cc79[_0x64979c(0x1a6)](_0x42095e[_0x64979c(0x193)])));}};_0x1bbc23('Global',_0x59b2f9),_0x1bbc23(_0x45c1c1(0x171),_0x19e252),console['log'](),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1ac)](_0x45c1c1(0x172))),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x1b6)[_0x45c1c1(0x1c5)](0x1e))),console[_0x45c1c1(0x17a)](_0x45c1c1(0x1ba)+(_0x160fd1['appCode']||a73_0x55cc79[_0x45c1c1(0x1a6)](_0x45c1c1(0x192)))),console[_0x45c1c1(0x17a)](_0x45c1c1(0x1bd)+_0x160fd1[_0x45c1c1(0x1bb)]),console[_0x45c1c1(0x17a)](_0x45c1c1(0x1c2)+_0x160fd1['locale']),console['log']('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x160fd1[_0x45c1c1(0x17f)]),console[_0x45c1c1(0x17a)](_0x45c1c1(0x1a3)+(_0x160fd1['defaultApp']||a73_0x55cc79['gray'](_0x45c1c1(0x196)))),console[_0x45c1c1(0x17a)](_0x45c1c1(0x1c7)+(_0x160fd1[_0x45c1c1(0x1c0)]||a73_0x55cc79[_0x45c1c1(0x1cc)]('(none)'))),console[_0x45c1c1(0x17a)](_0x45c1c1(0x1b2)+(_0x160fd1[_0x45c1c1(0x1bc)]||a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x196)))),console['log'](_0x45c1c1(0x1c9)+(_0x160fd1[_0x45c1c1(0x1ab)]||a73_0x55cc79['gray']('(default:\x20'+DEFAULT_CONFIG_VALUES[_0x45c1c1(0x1ab)]+')'))),console[_0x45c1c1(0x17a)](_0x45c1c1(0x18d)+(_0x160fd1[_0x45c1c1(0x195)]??a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x186)))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x160fd1[_0x45c1c1(0x19a)]),console[_0x45c1c1(0x17a)](_0x45c1c1(0x18e)+_0x160fd1[_0x45c1c1(0x1a2)]),console['log'](_0x45c1c1(0x19f)+(_0x160fd1[_0x45c1c1(0x19c)]?a73_0x55cc79['green']('(set,\x20length='+_0x160fd1['cookie'][_0x45c1c1(0x1c4)]+')'):_0x4ce668?a73_0x55cc79[_0x45c1c1(0x185)](_0x45c1c1(0x1aa)+_0x4ce668[_0x45c1c1(0x1c4)]+')'):a73_0x55cc79['gray']('(none)')));const _0x467033=Object['keys'](_0x160fd1[_0x45c1c1(0x1b0)]);if(_0x467033['length']>0x0){console[_0x45c1c1(0x17a)](),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1ac)](_0x45c1c1(0x1a7))),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x1b6)['repeat'](0x1e)));for(const _0x475ee3 of _0x467033){const _0x29899c=_0x160fd1['apps'][_0x475ee3],_0x503fa7=_0x475ee3===_0x160fd1[_0x45c1c1(0x177)],_0x19ceaa=_0x475ee3===_0x160fd1[_0x45c1c1(0x1c0)],_0x3a4f76=_0x19ceaa?a73_0x55cc79[_0x45c1c1(0x185)](_0x45c1c1(0x1c6)):'',_0x43b48b=_0x503fa7?_0x45c1c1(0x1b7):'';console[_0x45c1c1(0x17a)]('\x20\x20'+_0x475ee3+_0x43b48b+_0x3a4f76),console[_0x45c1c1(0x17a)]('\x20\x20\x20\x20appcode:\x20\x20\x20\x20'+_0x29899c[_0x45c1c1(0x1b5)]);const _0x3c7b02=buildAppDoctorFields(_0x29899c,{'env':_0x160fd1['env'],'apiDir':_0x160fd1[_0x45c1c1(0x184)][_0x45c1c1(0x17f)]||DEFAULT_CONFIG_VALUES['apiDir'],'cookie':_0x160fd1[_0x45c1c1(0x19c)]||_0x4ce668||undefined,'accessKey':_0x160fd1['accessKey']});console[_0x45c1c1(0x17a)](_0x45c1c1(0x188)+_0x3c7b02[_0x45c1c1(0x1bb)][_0x45c1c1(0x19e)]+'\x20\x20'+a73_0x55cc79[_0x45c1c1(0x1cc)]('('+_0x3c7b02['env'][_0x45c1c1(0x1c8)]+')')),console[_0x45c1c1(0x17a)](_0x45c1c1(0x189)+_0x3c7b02['apiDir'][_0x45c1c1(0x19e)]+'\x20\x20'+a73_0x55cc79[_0x45c1c1(0x1cc)]('('+_0x3c7b02[_0x45c1c1(0x17f)][_0x45c1c1(0x1c8)]+')'));const _0x573d7b=_0x3c7b02[_0x45c1c1(0x19c)][_0x45c1c1(0x19e)]?a73_0x55cc79[_0x45c1c1(0x185)](_0x45c1c1(0x1a4)+_0x3c7b02['cookie']['value']['length']+')'):a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x196));console['log'](_0x45c1c1(0x179)+_0x573d7b+'\x20\x20'+a73_0x55cc79[_0x45c1c1(0x1cc)]('('+_0x3c7b02['cookie'][_0x45c1c1(0x1c8)]+')'));const _0x70e4aa=_0x3c7b02['accessKey'][_0x45c1c1(0x19e)]?a73_0x55cc79[_0x45c1c1(0x185)](_0x45c1c1(0x1a4)+_0x3c7b02[_0x45c1c1(0x1c3)][_0x45c1c1(0x19e)][_0x45c1c1(0x1c4)]+')'):a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x196));console[_0x45c1c1(0x17a)](_0x45c1c1(0x1a8)+_0x70e4aa+'\x20\x20'+a73_0x55cc79[_0x45c1c1(0x1cc)]('('+_0x3c7b02['accessKey']['source']+')'));}}console[_0x45c1c1(0x17a)](),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1ac)](_0x45c1c1(0x187))),console['log'](a73_0x55cc79['gray'](_0x45c1c1(0x1b6)[_0x45c1c1(0x1c5)](0x1e))),console[_0x45c1c1(0x17a)](_0x45c1c1(0x1b8)+getApiDomain()),console[_0x45c1c1(0x17a)](_0x45c1c1(0x17c)+getUserDomain()),console['log'](_0x45c1c1(0x1a0)+getRuntimeDomain()),console[_0x45c1c1(0x17a)](),console['log'](a73_0x55cc79[_0x45c1c1(0x1ac)](_0x45c1c1(0x1b4))),console[_0x45c1c1(0x17a)](a73_0x55cc79[_0x45c1c1(0x1cc)](_0x45c1c1(0x1b6)[_0x45c1c1(0x1c5)](0x1e)));if(_0x4ce668){const _0x57c928=await getIsSessionValid();console[_0x45c1c1(0x17a)](_0x45c1c1(0x1bf)+(_0x57c928?a73_0x55cc79[_0x45c1c1(0x185)](_0x45c1c1(0x18b)):a73_0x55cc79[_0x45c1c1(0x1a6)](_0x45c1c1(0x19d))));}else console[_0x45c1c1(0x17a)](_0x45c1c1(0x1bf)+a73_0x55cc79[_0x45c1c1(0x1a6)](_0x45c1c1(0x183)));return console['log'](),{'ok':!![]};}export const doctorDefinition={'service':a73_0x3bba66(0x1af),'command':a73_0x3bba66(0x180),'description':a73_0x3bba66(0x1b1),'risk':a73_0x3bba66(0x178),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74_0x597337=a74_0x16c9;(function(_0x1928f2,_0x9031df){const _0x47956b=a74_0x16c9,_0x45c153=_0x1928f2();while(!![]){try{const _0x461c59=parseInt(_0x47956b(0x1a9))/0x1+parseInt(_0x47956b(0x1af))/0x2+-parseInt(_0x47956b(0x1ac))/0x3+parseInt(_0x47956b(0x1c8))/0x4+-parseInt(_0x47956b(0x1ab))/0x5*(parseInt(_0x47956b(0x1b6))/0x6)+-parseInt(_0x47956b(0x1bb))/0x7*(parseInt(_0x47956b(0x1cb))/0x8)+parseInt(_0x47956b(0x1cd))/0x9;if(_0x461c59===_0x9031df)break;else _0x45c153['push'](_0x45c153['shift']());}catch(_0x564b9d){_0x45c153['push'](_0x45c153['shift']());}}}(a74_0xa553,0xf35d7));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';function a74_0xa553(){const _0x119bae=['bool','\x0a✓\x20Successfully\x20initialized\x20','Auto-confirm\x20prompts','6oCkmcY','init','Usage:\x20','write','map','6502986tbcaEB','project','global','log','Target\x20environment','env','yes','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','message','appcode','\x20\x20Config:\x20','validation','str','995136KQMsNy','检测到旧配置文件,正在自动升级...\x0a','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','8nNpMfK','cwd','15263766PaKKqA','boolean','custom','toLocaleString','valid','defaultApp','../../commands/project/init.js','\x20\x20Default:\x20','nonInteractive','some','appCode','656275fSmhNM','join','6748220yOSGjZ','2430900jdsCTk','string','run','2969464qGZeuM','Use\x20`','App\x20code\x20to\x20initialize\x20with','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]'];a74_0xa553=function(){return _0x119bae;};return a74_0xa553();}import{buildCanonicalProjectConfig}from'../../config/schema.js';function syntheticApp(_0x2d797c){return{'appCode':_0x2d797c,'appName':_0x2d797c};}function writeInitConfig(_0x5089a7,_0x10b827,_0x5b0c5c){const _0x46ad41=a74_0x16c9,_0x56a6ae=resolveWriteConfigPath(_0x5089a7),_0x260a48=buildCanonicalProjectConfig({},{'appCodes':_0x10b827[_0x46ad41(0x1ba)](_0x2ec4e2=>_0x2ec4e2[_0x46ad41(0x1a8)]),'env':_0x5b0c5c,'metadata':{'version':getCliVersion(),'createdAt':new Date()[_0x46ad41(0x1d0)]()}});writeConfigFile(_0x56a6ae,_0x260a48);const _0x99d646=_0x5089a7==='global'?_0x46ad41(0x1bd):'project';console[_0x46ad41(0x1be)](_0x46ad41(0x1b4)+_0x99d646+'\x20config'),console['log']('\x20\x20Apps:\x20'+_0x10b827[_0x46ad41(0x1ba)](_0x551d30=>_0x551d30[_0x46ad41(0x1a8)])[_0x46ad41(0x1aa)](',\x20')),console['log'](_0x46ad41(0x1a5)+_0x260a48[_0x46ad41(0x1a3)]),console[_0x46ad41(0x1be)]('\x20\x20Env:\x20'+_0x260a48[_0x46ad41(0x1c0)]),console[_0x46ad41(0x1be)](_0x46ad41(0x1c5)+_0x56a6ae);}function a74_0x16c9(_0x28fc04,_0x292ee8){_0x28fc04=_0x28fc04-0x1a3;const _0xa55331=a74_0xa553();let _0x16c9ab=_0xa55331[_0x28fc04];return _0x16c9ab;}async function runSmartInit(_0x5633be){const _0x46f5fd=a74_0x16c9,_0xf4372d=process[_0x46f5fd(0x1cc)](),_0x3c958f=_0x5633be[_0x46f5fd(0x1b3)](_0x46f5fd(0x1bd))?'global':_0x46f5fd(0x1bc),_0x5bc325=_0x5633be[_0x46f5fd(0x1c7)](_0x46f5fd(0x1c0))||'production',_0x56bda9=_0x5633be[_0x46f5fd(0x1c7)](_0x46f5fd(0x1c4))||undefined,_0x1e3183=_0x5633be[_0x46f5fd(0x1b3)](_0x46f5fd(0x1bc));if(_0x1e3183){const {initConfig:_0x245d2e}=await import(_0x46f5fd(0x1a4));return _0x245d2e({'appcode':_0x56bda9,'env':_0x5bc325,'autoYes':_0x5633be[_0x46f5fd(0x1b3)](_0x46f5fd(0x1c1))});}if(_0x3c958f==='project'){const _0x3c8c92=existsSync(resolve(_0xf4372d,NEW_CONFIG_NAME)),_0x79f62e=LEGACY_CONFIG_NAMES[_0x46f5fd(0x1a7)](_0x42981e=>existsSync(resolve(_0xf4372d,_0x42981e)));if(_0x79f62e&&!_0x3c8c92)return console['log'](_0x46f5fd(0x1c9)),upgradeApp(_0x5633be[_0x46f5fd(0x1a6)],{'yes':_0x5633be[_0x46f5fd(0x1b3)](_0x46f5fd(0x1c1))});if(_0x3c8c92)throw CliErrors[_0x46f5fd(0x1c6)]('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.',_0x46f5fd(0x1b0)+CLI_BIN_NAME+'\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.');}if(_0x56bda9){const _0xbe3ac9=validateAppcode(_0x56bda9);if(!_0xbe3ac9[_0x46f5fd(0x1d1)])throw CliErrors['validation'](_0xbe3ac9[_0x46f5fd(0x1c3)]);writeInitConfig(_0x3c958f,[syntheticApp(_0x56bda9)],_0x5bc325);return;}if(_0x5633be[_0x46f5fd(0x1a6)])throw CliErrors['flagMissing'](_0x46f5fd(0x1c4),_0x46f5fd(0x1b8)+CLI_BIN_NAME+_0x46f5fd(0x1b2));const _0x23cc37=getCookie(),_0x4b4f99=await selectMultipleApps(_0x23cc37),_0xbc0737=_0x4b4f99===_0x46f5fd(0x1cf)?[syntheticApp(await promptCustomAppcode())]:_0x4b4f99;writeInitConfig(_0x3c958f,_0xbc0737,_0x5bc325);}const initFlags=[{'name':'global','type':a74_0x597337(0x1ce),'description':'Write\x20to\x20global\x20config\x20instead\x20of\x20project','default':![]},{'name':a74_0x597337(0x1c0),'type':a74_0x597337(0x1ad),'description':a74_0x597337(0x1bf),'default':'production','enum':[...RABETBASE_ENV_VALUES]},{'name':a74_0x597337(0x1c4),'type':a74_0x597337(0x1ad),'description':a74_0x597337(0x1b1)},{'name':a74_0x597337(0x1bc),'type':a74_0x597337(0x1ce),'description':a74_0x597337(0x1c2),'default':![]},{'name':'yes','type':a74_0x597337(0x1ce),'description':a74_0x597337(0x1b5),'default':![]}];export const initDefinitions=[{'service':a74_0x597337(0x1b7),'command':a74_0x597337(0x1ae),'description':a74_0x597337(0x1ca),'risk':a74_0x597337(0x1b9),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x103b90){return await runSmartInit(_0x103b90),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x29e3ed,_0x3bf9ae){const _0x59812e=a75_0x5af5,_0x211974=_0x29e3ed();while(!![]){try{const _0xe00342=parseInt(_0x59812e(0x194))/0x1+parseInt(_0x59812e(0x192))/0x2+-parseInt(_0x59812e(0x197))/0x3*(-parseInt(_0x59812e(0x193))/0x4)+parseInt(_0x59812e(0x191))/0x5*(-parseInt(_0x59812e(0x195))/0x6)+-parseInt(_0x59812e(0x196))/0x7+parseInt(_0x59812e(0x190))/0x8+-parseInt(_0x59812e(0x18f))/0x9;if(_0xe00342===_0x3bf9ae)break;else _0x211974['push'](_0x211974['shift']());}catch(_0x5903f6){_0x211974['push'](_0x211974['shift']());}}}(a75_0x38d1,0x631bd));import{issueReport}from'../../commands/issue/report.js';function a75_0x38d1(){const _0x340f61=['22395faGMKc','8417124dHwdmB','4763608NwvrbQ','739955BmAqCb','1397756JiBsfr','244nvHcdG','112636tnSKna','6WPgqPS','2612078kwqigY'];a75_0x38d1=function(){return _0x340f61;};return a75_0x38d1();}function a75_0x5af5(_0x4533c1,_0x185583){_0x4533c1=_0x4533c1-0x18f;const _0x38d166=a75_0x38d1();let _0x5af52e=_0x38d166[_0x4533c1];return _0x5af52e;}export const issueDefinitions=[issueReport];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a76_0x2780(){const _0x4895d3=['issue.title','Issue\x20description\x20file\x20is\x20empty:\x20','length','11dmaxBA','685UJLcCQ','18nJVgYE','descriptionSource','validation','compress','message','issue','title','2564AHgkKY','Write\x20markdown\x20context\x20into\x20the\x20file\x20before\x20retrying.','join','trim','27240wqjVEi','otel://','file','POST','descriptionSource:\x20','873826czkgHc','1340164ZERRhl','write','Report\x20a\x20platform\x20issue\x20with\x20title\x20and\x20markdown\x20context','description','4587vsrcAF','4806230baKrcW','11102100rxmHhP','report','Platform\x20issue\x20reported','Provide\x20non-empty\x20markdown\x20content\x20via\x20--description\x20or\x20--description-file.','1ANJvTa','inline','File\x20not\x20found:\x20','Issue\x20description\x20cannot\x20be\x20empty.','Failed\x20to\x20report\x20platform\x20issue:\x20','filter','descriptionFilePath','Provide\x20--title\x20with\x20a\x20one-line\x20issue\x20summary.','str','Inline\x20markdown\x20issue\x20description\x20(alternative\x20to\x20--description-file)','apiError','string','16gJbxqw','Provide\x20exactly\x20one\x20of\x20--description\x20or\x20--description-file.','issue.description','157670jPlRzv'];a76_0x2780=function(){return _0x4895d3;};return a76_0x2780();}const a76_0x137c88=a76_0x1cf8;(function(_0x4f9a5a,_0x409a33){const _0x4f380f=a76_0x1cf8,_0x7f7037=_0x4f9a5a();while(!![]){try{const _0x28c595=parseInt(_0x4f380f(0x134))/0x1*(parseInt(_0x4f380f(0x129))/0x2)+-parseInt(_0x4f380f(0x12e))/0x3*(-parseInt(_0x4f380f(0x120))/0x4)+-parseInt(_0x4f380f(0x118))/0x5*(parseInt(_0x4f380f(0x124))/0x6)+parseInt(_0x4f380f(0x12a))/0x7*(parseInt(_0x4f380f(0x140))/0x8)+-parseInt(_0x4f380f(0x119))/0x9*(parseInt(_0x4f380f(0x143))/0xa)+parseInt(_0x4f380f(0x117))/0xb*(-parseInt(_0x4f380f(0x130))/0xc)+parseInt(_0x4f380f(0x12f))/0xd;if(_0x28c595===_0x409a33)break;else _0x7f7037['push'](_0x7f7037['shift']());}catch(_0x3a46d4){_0x7f7037['push'](_0x7f7037['shift']());}}}(a76_0x2780,0x9044f));function a76_0x1cf8(_0x33a3f2,_0x1e0963){_0x33a3f2=_0x33a3f2-0x115;const _0x27807b=a76_0x2780();let _0x1cf875=_0x27807b[_0x33a3f2];return _0x1cf875;}import{existsSync}from'node:fs';import{readFile}from'node:fs/promises';import{resolve}from'node:path';import{CliErrors}from'../../errors.js';import{PLATFORM_ISSUE_SPAN_NAME,PLATFORM_ISSUE_TRACE_NAME,sendPlatformIssueCollectLog}from'../../telemetry/send-platform-issue-collect-log.js';const DESCRIPTION_FILE_FLAG='description-file';export const issueReport={'service':a76_0x137c88(0x11e),'command':a76_0x137c88(0x131),'description':a76_0x137c88(0x12c),'risk':a76_0x137c88(0x12b),'requiresAuth':![],'requiresAppCode':![],'defaultOutputFormat':a76_0x137c88(0x11c),'flags':[{'name':a76_0x137c88(0x11f),'type':a76_0x137c88(0x13f),'required':!![],'description':'One-line\x20issue\x20summary'},{'name':'description','type':a76_0x137c88(0x13f),'description':a76_0x137c88(0x13d)},{'name':DESCRIPTION_FILE_FLAG,'type':a76_0x137c88(0x13f),'description':'Path\x20to\x20a\x20markdown\x20file\x20whose\x20contents\x20become\x20issue.description'}],async 'validate'(_0x31874a){const _0x25f97b=a76_0x137c88,_0x210db1=_0x31874a[_0x25f97b(0x13c)](_0x25f97b(0x11f))['trim'](),_0xd8bbb9=_0x31874a['str']('description')[_0x25f97b(0x123)](),_0x170236=_0x31874a['str'](DESCRIPTION_FILE_FLAG)[_0x25f97b(0x123)]();if(!_0x210db1)throw CliErrors['flagMissing'](_0x25f97b(0x11f),_0x25f97b(0x13b));const _0x3bb876=_0xd8bbb9['length']>0x0,_0x315c53=_0x170236[_0x25f97b(0x116)]>0x0;if(_0x3bb876===_0x315c53)throw CliErrors['validation'](_0x25f97b(0x141),'Use\x20--description\x20for\x20short\x20markdown\x20text,\x20or\x20--description-file\x20for\x20full\x20issue\x20context.');if(_0x315c53){const _0x405d4d=resolve(process['cwd'](),_0x170236);if(!existsSync(_0x405d4d))throw CliErrors[_0x25f97b(0x11b)](_0x25f97b(0x136)+_0x405d4d);}},async 'dryRun'(_0x2ae368){const _0x140b62=a76_0x137c88,_0x4eac7a=await prepareIssueReport(_0x2ae368);return{'method':_0x140b62(0x127),'url':_0x140b62(0x125)+PLATFORM_ISSUE_TRACE_NAME+'/'+PLATFORM_ISSUE_SPAN_NAME,'body':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logData':{'issue.title':_0x4eac7a[_0x140b62(0x11f)],'issue.description':_0x4eac7a[_0x140b62(0x12d)]}},'description':['Send\x20platform\x20issue\x20collect\x20log\x20via\x20the\x20CLI\x20telemetry\x20adapter',_0x140b62(0x128)+_0x4eac7a[_0x140b62(0x11a)],_0x4eac7a[_0x140b62(0x13a)]?'descriptionFile:\x20'+_0x4eac7a[_0x140b62(0x13a)]:null][_0x140b62(0x139)](Boolean)[_0x140b62(0x122)]('\x0a')};},async 'execute'(_0x3ddd5f){const _0xa33388=a76_0x137c88,_0x25c839=await prepareIssueReport(_0x3ddd5f);try{await sendPlatformIssueCollectLog({'title':_0x25c839[_0xa33388(0x11f)],'description':_0x25c839[_0xa33388(0x12d)]});}catch(_0x42a750){throw CliErrors[_0xa33388(0x13e)](_0xa33388(0x138)+(_0x42a750 instanceof Error?_0x42a750[_0xa33388(0x11d)]:String(_0x42a750)),'Check\x20telemetry\x20configuration\x20and\x20network\x20reachability,\x20then\x20retry.');}return{'ok':!![],'message':_0xa33388(0x132),'data':{'traceName':PLATFORM_ISSUE_TRACE_NAME,'spanName':PLATFORM_ISSUE_SPAN_NAME,'logDataKeys':[_0xa33388(0x144),_0xa33388(0x142)],'issue':{'title':_0x25c839[_0xa33388(0x11f)],'descriptionLength':_0x25c839[_0xa33388(0x12d)][_0xa33388(0x116)],'descriptionSource':_0x25c839[_0xa33388(0x11a)],..._0x25c839[_0xa33388(0x13a)]?{'descriptionFile':_0x25c839[_0xa33388(0x13a)]}:{}}}};}};async function prepareIssueReport(_0x357d5f){const _0x278002=a76_0x137c88,_0x24681d=_0x357d5f['str']('title')['trim'](),_0x2781f6=_0x357d5f[_0x278002(0x13c)](_0x278002(0x12d)),_0x4e06b6=_0x357d5f[_0x278002(0x13c)](DESCRIPTION_FILE_FLAG)[_0x278002(0x123)]();if(!_0x4e06b6){const _0x102e3a=_0x2781f6;if(!_0x102e3a['trim']())throw CliErrors[_0x278002(0x11b)](_0x278002(0x137),_0x278002(0x133));return{'title':_0x24681d,'description':_0x102e3a,'descriptionSource':_0x278002(0x135)};}const _0x20b440=resolve(process['cwd'](),_0x4e06b6),_0x4e8050=await readFile(_0x20b440,'utf8');if(!_0x4e8050[_0x278002(0x123)]())throw CliErrors[_0x278002(0x11b)](_0x278002(0x115)+_0x20b440,_0x278002(0x121));return{'title':_0x24681d,'description':_0x4e8050,'descriptionSource':_0x278002(0x126),'descriptionFilePath':_0x20b440};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a77_0x3fbc8b=a77_0x3acb;function a77_0x57ae(){const _0x408440=['warn','log','message','\x20\x20\x20Details:\x20','View\x20command\x20history\x20logs','8451880VRBGWs','write','clearLogs','command','logs','clear','keys','3948SHmeqK','level','9837XrhOzj','read','duration','timestamp','length','readLogs','en-US','4694844OPHCMU','2720020cmnoKC','success','\x20\x20\x20Time:\x20','3359664amULrx','10230850tpNrSN','forEach','430ibsdGz','*\x20No\x20logs\x20found','16pqzSgI','*\x20Lovrabet\x20CLI\x20logs:\x0a','show','stringify','\x20\x20\x20Duration:\x20','details','error'];a77_0x57ae=function(){return _0x408440;};return a77_0x57ae();}(function(_0x10169f,_0x203550){const _0x266606=a77_0x3acb,_0x61d196=_0x10169f();while(!![]){try{const _0x27f395=-parseInt(_0x266606(0x112))/0x1*(-parseInt(_0x266606(0x102))/0x2)+parseInt(_0x266606(0x10b))/0x3+-parseInt(_0x266606(0x10c))/0x4+-parseInt(_0x266606(0xfb))/0x5+-parseInt(_0x266606(0x10f))/0x6+parseInt(_0x266606(0x110))/0x7+-parseInt(_0x266606(0x114))/0x8*(-parseInt(_0x266606(0x104))/0x9);if(_0x27f395===_0x203550)break;else _0x61d196['push'](_0x61d196['shift']());}catch(_0x579d27){_0x61d196['push'](_0x61d196['shift']());}}}(a77_0x57ae,0xe73eb));import{logger}from'../../utils/logger.js';function a77_0x3acb(_0x1b1330,_0x56c442){_0x1b1330=_0x1b1330-0xfb;const _0x57aeb3=a77_0x57ae();let _0x3acb01=_0x57aeb3[_0x1b1330];return _0x3acb01;}function printLogs(_0x253fee){const _0x27c2a8=a77_0x3acb;if(_0x253fee[_0x27c2a8(0x108)]===0x0){console[_0x27c2a8(0x11c)](_0x27c2a8(0x113));return;}console['log'](_0x27c2a8(0x115)),_0x253fee[_0x27c2a8(0x111)]((_0x5cbf8c,_0x3487a8)=>{const _0x1e8ab7=_0x27c2a8,_0x1703de=new Date(_0x5cbf8c[_0x1e8ab7(0x107)])['toLocaleString'](_0x1e8ab7(0x10a)),_0x1a058f=_0x5cbf8c[_0x1e8ab7(0x103)]===_0x1e8ab7(0x10d)?'√':_0x5cbf8c[_0x1e8ab7(0x103)]===_0x1e8ab7(0x11a)?'×':_0x5cbf8c['level']===_0x1e8ab7(0x11b)?'!':'i';console[_0x1e8ab7(0x11c)](_0x3487a8+0x1+'.\x20'+_0x1a058f+'\x20['+_0x5cbf8c[_0x1e8ab7(0xfe)]+']\x20'+_0x5cbf8c[_0x1e8ab7(0x11d)]),console['log'](_0x1e8ab7(0x10e)+_0x1703de),_0x5cbf8c[_0x1e8ab7(0x106)]&&console[_0x1e8ab7(0x11c)](_0x1e8ab7(0x118)+_0x5cbf8c['duration']+'ms'),_0x5cbf8c[_0x1e8ab7(0x119)]&&Object[_0x1e8ab7(0x101)](_0x5cbf8c[_0x1e8ab7(0x119)])[_0x1e8ab7(0x108)]>0x0&&console['log'](_0x1e8ab7(0x11e)+JSON[_0x1e8ab7(0x117)](_0x5cbf8c['details'],null,0x2)),console['log']('');});}export const logsDefinitions=[{'service':'logs','command':a77_0x3fbc8b(0x116),'description':a77_0x3fbc8b(0x11f),'risk':a77_0x3fbc8b(0x105),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x1f8216){const _0x3f41d3=a77_0x3fbc8b;return printLogs(logger[_0x3f41d3(0x109)]()),{'ok':!![]};}},{'service':a77_0x3fbc8b(0xff),'command':a77_0x3fbc8b(0x100),'description':'Clear\x20command\x20history\x20logs','risk':a77_0x3fbc8b(0xfc),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x35d3b2){const _0xdb3711=a77_0x3fbc8b;return logger[_0xdb3711(0xfd)](),console[_0xdb3711(0x11c)]('*\x20Logs\x20cleared'),{'ok':!![]};}}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e0616,_0x166009){const _0x2c7c11=a78_0x435e,_0x2a9e0f=_0x4e0616();while(!![]){try{const _0x5eb17b=-parseInt(_0x2c7c11(0x17b))/0x1*(-parseInt(_0x2c7c11(0x176))/0x2)+parseInt(_0x2c7c11(0x172))/0x3+parseInt(_0x2c7c11(0x179))/0x4*(parseInt(_0x2c7c11(0x178))/0x5)+parseInt(_0x2c7c11(0x171))/0x6+-parseInt(_0x2c7c11(0x170))/0x7*(-parseInt(_0x2c7c11(0x175))/0x8)+-parseInt(_0x2c7c11(0x17a))/0x9*(-parseInt(_0x2c7c11(0x173))/0xa)+-parseInt(_0x2c7c11(0x177))/0xb*(parseInt(_0x2c7c11(0x174))/0xc);if(_0x5eb17b===_0x166009)break;else _0x2a9e0f['push'](_0x2a9e0f['shift']());}catch(_0x56fedd){_0x2a9e0f['push'](_0x2a9e0f['shift']());}}}(a78_0x2287,0xee7aa));import{menuSync}from'../../commands/menu/sync.js';function a78_0x435e(_0x5acca0,_0x38ffc2){_0x5acca0=_0x5acca0-0x170;const _0x228781=a78_0x2287();let _0x435edb=_0x228781[_0x5acca0];return _0x435edb;}function a78_0x2287(){const _0x3ba72e=['30tlLLpK','372iWGUDQ','1150280jhdOvS','30274DQhqlX','1167793dgLJRj','30NNzcIW','603696rAGvsK','1217241pzEtoP','22QrSuwV','21gEXONh','3520872lIQFLU','4816173mFNhsm'];a78_0x2287=function(){return _0x3ba72e;};return a78_0x2287();}import{menuUpdate}from'../../commands/menu/update.js';export const menuDefinitions=[menuSync,menuUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a79_0xdff5(){const _0x393179=['length','Platform','219898FJMaox','label','12134565OoVafc','local','path','2487687IRJYAr','\x20\x20\x20\x20JS:\x20\x20','9214824feuKsT','45zFbsrL','68308NrZSSY','\x20\x20Affected\x20menus:\x20','max','map','test','Menu\x20Name','Local','online','3104380GLVyzA','\x20\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform.','join','repeat','showOnline','300DGUtrJ','(unchanged)','\x20\x20\x20\x20•\x20','75515oJHxKI','push'];a79_0xdff5=function(){return _0x393179;};return a79_0xdff5();}function a79_0x2c99(_0x48847e,_0x5d33b9){_0x48847e=_0x48847e-0xa1;const _0xdff5e0=a79_0xdff5();let _0x2c9933=_0xdff5e0[_0x48847e];return _0x2c9933;}(function(_0x344a25,_0x479753){const _0x4d6216=a79_0x2c99,_0x4410be=_0x344a25();while(!![]){try{const _0x5f599d=parseInt(_0x4d6216(0xad))/0x1+parseInt(_0x4d6216(0xa5))/0x2+parseInt(_0x4d6216(0xb6))/0x3+parseInt(_0x4d6216(0xba))/0x4*(parseInt(_0x4d6216(0xb9))/0x5)+parseInt(_0x4d6216(0xaa))/0x6*(-parseInt(_0x4d6216(0xb1))/0x7)+parseInt(_0x4d6216(0xb8))/0x8+-parseInt(_0x4d6216(0xb3))/0x9;if(_0x5f599d===_0x479753)break;else _0x4410be['push'](_0x4410be['shift']());}catch(_0x3ec603){_0x4410be['push'](_0x4410be['shift']());}}}(a79_0xdff5,0xcdee7));function strWidth(_0x350a55){const _0xb245b8=a79_0x2c99;let _0x4aee2c=0x0;for(const _0x1b6199 of _0x350a55){_0x4aee2c+=/[\u4e00-\u9fa5]/[_0xb245b8(0xa1)](_0x1b6199)?0x2:0x1;}return _0x4aee2c;}function padRight(_0x48171e,_0x2c71db){const _0x23518a=a79_0x2c99,_0x4f6008=strWidth(_0x48171e);return _0x48171e+'\x20'[_0x23518a(0xa8)](Math[_0x23518a(0xbc)](0x0,_0x2c71db-_0x4f6008));}export function renderCompareTable(_0x5b0f08,_0x474d93={}){const _0x4158e8=a79_0x2c99;if(_0x5b0f08[_0x4158e8(0xaf)]===0x0)return'';const _0x3f294f=_0x474d93[_0x4158e8(0xa9)]??!![],_0x20e13f=Math[_0x4158e8(0xbc)](0x1e,..._0x5b0f08[_0x4158e8(0xbd)](_0x498225=>strWidth(_0x498225[_0x4158e8(0xb2)]))),_0x5c007d=0x4,_0x12b343=[],_0x490b5d='\x20\x20'+padRight(_0x4158e8(0xa2),_0x20e13f),_0x3eb8db=padRight(_0x4158e8(0xa3),_0x5c007d),_0x1c4369=_0x3f294f?'\x20\x20'+padRight(_0x4158e8(0xb0),_0x5c007d):'';_0x12b343[_0x4158e8(0xae)](_0x490b5d+'\x20\x20'+_0x3eb8db+(_0x3f294f?_0x1c4369:'')),_0x12b343[_0x4158e8(0xae)]('\x20\x20'+'─'[_0x4158e8(0xa8)](_0x20e13f)+'\x20\x20'+'─'[_0x4158e8(0xa8)](_0x5c007d)+(_0x3f294f?'\x20\x20'+'─'[_0x4158e8(0xa8)](_0x5c007d):''));for(const _0x5ec4b0 of _0x5b0f08){const _0x2affef=padRight(_0x5ec4b0[_0x4158e8(0xb2)],_0x20e13f),_0x26fe1c=_0x5ec4b0[_0x4158e8(0xb4)]?'✓':'✗',_0x17b81d=padRight(_0x26fe1c,_0x5c007d);let _0x4526fb='\x20\x20'+_0x2affef+'\x20\x20'+_0x17b81d;if(_0x3f294f){const _0x25dd14=_0x5ec4b0[_0x4158e8(0xa4)]?'✓':'✗';_0x4526fb+='\x20\x20'+padRight(_0x25dd14,_0x5c007d);}_0x12b343[_0x4158e8(0xae)](_0x4526fb);}return _0x12b343[_0x4158e8(0xa7)]('\x0a');}export function renderSyncSummary(_0x3d06a8,_0x2ae7a4){const _0x3f3698=a79_0x2c99;if(_0x3d06a8['length']===0x0)return _0x2ae7a4?_0x3f3698(0xa6):'\x20\x20No\x20pages\x20to\x20sync.';const _0x447abe=['\x20\x20'+_0x3d06a8[_0x3f3698(0xaf)]+'\x20page(s)\x20will\x20be\x20created\x20on\x20platform:'];for(const _0x24241c of _0x3d06a8){_0x447abe[_0x3f3698(0xae)](_0x3f3698(0xac)+_0x24241c[_0x3f3698(0xb2)]+'\x20('+_0x24241c[_0x3f3698(0xb5)]+')');}return _0x447abe[_0x3f3698(0xa7)]('\x0a');}export function renderUpdateSummary(_0x3f18d3,_0x590e25){const _0x5d5178=a79_0x2c99;if(_0x3f18d3[_0x5d5178(0xaf)]===0x0)return'\x20\x20No\x20menus\x20with\x20existing\x20resources\x20found.';const _0x187dbf=['\x20\x20'+_0x3f18d3[_0x5d5178(0xaf)]+'\x20menu(s)\x20will\x20be\x20updated\x20with\x20new\x20assets:',_0x5d5178(0xb7)+(_0x590e25[0x0]??_0x5d5178(0xab)),'\x20\x20\x20\x20CSS:\x20'+(_0x590e25[0x1]??_0x5d5178(0xab)),'',_0x5d5178(0xbb)+_0x3f18d3['join'](',\x20')];return _0x187dbf[_0x5d5178(0xa7)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41e103,_0x3b0046){var _0x5a80e1=a80_0x30b3,_0x3ea70b=_0x41e103();while(!![]){try{var _0x4f23f0=parseInt(_0x5a80e1(0x13b))/0x1+parseInt(_0x5a80e1(0x137))/0x2*(parseInt(_0x5a80e1(0x134))/0x3)+-parseInt(_0x5a80e1(0x136))/0x4*(-parseInt(_0x5a80e1(0x13a))/0x5)+-parseInt(_0x5a80e1(0x132))/0x6+-parseInt(_0x5a80e1(0x133))/0x7*(parseInt(_0x5a80e1(0x139))/0x8)+parseInt(_0x5a80e1(0x138))/0x9+-parseInt(_0x5a80e1(0x135))/0xa;if(_0x4f23f0===_0x3b0046)break;else _0x3ea70b['push'](_0x3ea70b['shift']());}catch(_0x559bf1){_0x3ea70b['push'](_0x3ea70b['shift']());}}}(a80_0x5cf5,0xac86d));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';function a80_0x5cf5(){var _0x3926fc=['2297202hLDAqQ','1139747esRoEe','3wouQgB','14205480mOzoDP','448528gfcDzc','2740178hIdBrd','7025382tOvAqE','16IVfMRE','5ChWhxc','572907uDwKPo'];a80_0x5cf5=function(){return _0x3926fc;};return a80_0x5cf5();}function a80_0x30b3(_0x20bf00,_0x2f0ca0){_0x20bf00=_0x20bf00-0x132;var _0x5cf55a=a80_0x5cf5();var _0x30b315=_0x5cf55a[_0x20bf00];return _0x30b315;}export*from'../../../commands/menu/shared/valid-url.js';export*from'../../../commands/menu/shared/local-pages.js';export*from'../../../commands/menu/shared/service.js';export*from'../../../commands/menu/shared/sync-core.js';export*from'../../../commands/menu/shared/update-core.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5ea1a6,_0x26879a){const _0x52287e=a81_0x5394,_0x38fa5d=_0x5ea1a6();while(!![]){try{const _0x223f53=parseInt(_0x52287e(0x1da))/0x1+parseInt(_0x52287e(0x1cc))/0x2+-parseInt(_0x52287e(0x1cb))/0x3+parseInt(_0x52287e(0x1e3))/0x4*(parseInt(_0x52287e(0x1c2))/0x5)+-parseInt(_0x52287e(0x1c3))/0x6+-parseInt(_0x52287e(0x1d6))/0x7+-parseInt(_0x52287e(0x1ec))/0x8*(-parseInt(_0x52287e(0x1ca))/0x9);if(_0x223f53===_0x26879a)break;else _0x38fa5d['push'](_0x38fa5d['shift']());}catch(_0x13ab10){_0x38fa5d['push'](_0x38fa5d['shift']());}}}(a81_0x25b3,0xa18d3));import a81_0x2578fb from'chalk';import{checkbox,input,confirm}from'@inquirer/prompts';import a81_0x43ab4a from'ora';import{isUrlReachable}from'../../../commands/menu/shared/valid-url.js';import{CliErrors}from'../../../errors.js';function onCancel(_0x332e2f){return _0x332e2f['catch'](_0x343815=>{const _0x142753=a81_0x5394;if(_0x343815?.[_0x142753(0x1dc)]==='ExitPromptError')throw CliErrors[_0x142753(0x1c4)](_0x142753(0x1d3));throw _0x343815;});}function a81_0x25b3(){const _0x201caa=['Use\x20--yes\x20to\x20run\x20in\x20non-interactive\x20mode,\x20or\x20pipe\x20data\x20via\x20--params.','error','green','1286868xwQQnS','CSS\x20URL\x20checked','name','path','[new]','fail','JS\x20URL\x20check\x20failed','\x20\x20Checking\x20CSS\x20URL\x20reachability...','filter','1680sTpOcW','includes','JS\x20URL\x20checked','length','label','\x20\x20✗\x20CSS\x20URL\x20is\x20unreachable','start','red','No\x20local\x20pages\x20found.','376SlziCc','\x20\x20Select\x20menus\x20to\x20sync\x20(space\x20to\x20toggle,\x20a=all,\x20i=invert):','8660ngAcFS','4363680EWADXx','cancelled','trim','stdin','cyan','This\x20command\x20requires\x20an\x20interactive\x20terminal.\x20','has','22671BECyzM','3195546RLuVWW','2408504bMUVos','isTTY','gray','test','map','[already\x20on\x20platform]','No\x20menus\x20selected.','Cancelled.','\x20\x20CSS\x20URL:','\x20\x20✗\x20JS\x20URL\x20is\x20unreachable','6179432FDpzLO'];a81_0x25b3=function(){return _0x201caa;};return a81_0x25b3();}export function startSpinner(_0x598bde){const _0xdac32=a81_0x5394;return a81_0x43ab4a({'text':_0x598bde,'color':_0xdac32(0x1c7)})[_0xdac32(0x1e9)]();}export function stopSpinner(_0x43f2b9,_0x89e8e6,_0x1bb8d5){const _0x4ec757=a81_0x5394;_0x1bb8d5?_0x43f2b9['succeed'](_0x89e8e6):_0x43f2b9[_0x4ec757(0x1df)](_0x89e8e6);}export async function askConfirm(_0x3e910b){return onCancel(confirm({'message':_0x3e910b,'theme':{'prefix':''}}));}export async function askJsUrl(_0x5b5545){const _0x77ac76=a81_0x5394;while(!![]){const _0x313fee=await onCancel(input({'message':'\x20\x20JS\x20URL:','default':_0x5b5545,'theme':{'prefix':''}}));if(_0x313fee[_0x77ac76(0x1c5)]()==='')throw CliErrors[_0x77ac76(0x1c4)](_0x77ac76(0x1d3));if(!/^https:\/\/.+\.js(\?.*)?$/[_0x77ac76(0x1cf)](_0x313fee[_0x77ac76(0x1c5)]())){console[_0x77ac76(0x1d8)](a81_0x2578fb[_0x77ac76(0x1ea)]('\x20\x20✗\x20JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'));continue;}const _0xbe488f=startSpinner('\x20\x20Checking\x20JS\x20URL\x20reachability...');try{const _0x183ae0=await isUrlReachable(_0x313fee[_0x77ac76(0x1c5)]());stopSpinner(_0xbe488f,_0x77ac76(0x1e5),_0x183ae0);if(!_0x183ae0){console[_0x77ac76(0x1d8)](a81_0x2578fb[_0x77ac76(0x1ea)](_0x77ac76(0x1d5)));continue;}return _0x313fee[_0x77ac76(0x1c5)]();}catch(_0x498168){stopSpinner(_0xbe488f,_0x77ac76(0x1e0),![]);throw _0x498168;}}}export async function askCssUrl(_0x599c17){const _0x496657=a81_0x5394;while(!![]){const _0x40549b=await onCancel(input({'message':_0x496657(0x1d4),'default':_0x599c17,'theme':{'prefix':''}}));if(_0x40549b['trim']()==='')throw CliErrors[_0x496657(0x1c4)](_0x496657(0x1d3));if(!/^https:\/\/.+\.css(\?.*)?$/['test'](_0x40549b[_0x496657(0x1c5)]())){console[_0x496657(0x1d8)](a81_0x2578fb[_0x496657(0x1ea)]('\x20\x20✗\x20CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL'));continue;}const _0x2f8ed9=startSpinner(_0x496657(0x1e1));try{const _0x126ae=await isUrlReachable(_0x40549b[_0x496657(0x1c5)]());stopSpinner(_0x2f8ed9,_0x496657(0x1db),_0x126ae);if(!_0x126ae){console[_0x496657(0x1d8)](a81_0x2578fb['red'](_0x496657(0x1e8)));continue;}return _0x40549b[_0x496657(0x1c5)]();}catch(_0x58e600){stopSpinner(_0x2f8ed9,'CSS\x20URL\x20check\x20failed',![]);throw _0x58e600;}}}function a81_0x5394(_0x259c5c,_0x22d188){_0x259c5c=_0x259c5c-0x1c2;const _0x25b31f=a81_0x25b3();let _0x53944f=_0x25b31f[_0x259c5c];return _0x53944f;}export async function selectPages(_0x534fdc,_0x4635a4,_0x56c5ef){const _0x67fb32=a81_0x5394,_0x1aff42=_0x534fdc[_0x67fb32(0x1d0)](_0x517aa6=>({'name':_0x517aa6[_0x67fb32(0x1e7)]+'\x20\x20'+(_0x4635a4['has'](_0x517aa6[_0x67fb32(0x1dd)])?a81_0x2578fb[_0x67fb32(0x1ce)](_0x67fb32(0x1d1)):a81_0x2578fb[_0x67fb32(0x1d9)](_0x67fb32(0x1de))),'value':_0x517aa6[_0x67fb32(0x1e7)],'checked':_0x56c5ef?_0x56c5ef[_0x67fb32(0x1e4)](_0x517aa6[_0x67fb32(0x1e7)]):!_0x4635a4[_0x67fb32(0x1c9)](_0x517aa6['path'])}));if(_0x1aff42[_0x67fb32(0x1e6)]===0x0)throw new Error(_0x67fb32(0x1eb));const _0x1db61e=await onCancel(checkbox({'message':_0x67fb32(0x1ed),'choices':_0x1aff42,'loop':![],'theme':{'prefix':''}}));if(_0x1db61e['length']===0x0)throw new Error(_0x67fb32(0x1d2));return _0x534fdc[_0x67fb32(0x1e2)](_0x22fe9e=>_0x1db61e[_0x67fb32(0x1e4)](_0x22fe9e[_0x67fb32(0x1e7)]));}export function isInteractive(){const _0x554f49=a81_0x5394;return process[_0x554f49(0x1c6)][_0x554f49(0x1cd)]===!![];}export function requireInteractive(){const _0x3fce4c=a81_0x5394;if(!isInteractive())throw new Error(_0x3fce4c(0x1c8)+_0x3fce4c(0x1d7));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82_0x4369ed=a82_0xc13b;function a82_0x29f5(){const _0x2addb2=['1288272emBGNc','split','path','3725048SlZnJm','endsWith','651443XeGMuJ','replaceAll','utf-8','forEach','join','src/pages','436eKlKpC','246108zGnRED','replace','cwd','slice','concat','16850390OYLmfp','trim','filter','9qwIMuq','7160AoABgp','match','push','3402581hTCUAt','6BcNStp','isDirectory','.tsx'];a82_0x29f5=function(){return _0x2addb2;};return a82_0x29f5();}(function(_0x2dd2b1,_0xa8aba2){const _0x532b2f=a82_0xc13b,_0x42e741=_0x2dd2b1();while(!![]){try{const _0x1756de=-parseInt(_0x532b2f(0x95))/0x1+-parseInt(_0x532b2f(0x80))/0x2*(parseInt(_0x532b2f(0x8d))/0x3)+-parseInt(_0x532b2f(0x7f))/0x4*(parseInt(_0x532b2f(0x89))/0x5)+-parseInt(_0x532b2f(0x90))/0x6+parseInt(_0x532b2f(0x8c))/0x7+-parseInt(_0x532b2f(0x93))/0x8*(parseInt(_0x532b2f(0x88))/0x9)+parseInt(_0x532b2f(0x85))/0xa;if(_0x1756de===_0xa8aba2)break;else _0x42e741['push'](_0x42e741['shift']());}catch(_0x3f739b){_0x42e741['push'](_0x42e741['shift']());}}}(a82_0x29f5,0x6ab94));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process[a82_0x4369ed(0x82)](),a82_0x4369ed(0x7e));export function extractTitleFromComment(_0x9fd327){const _0x3f87a6=a82_0x4369ed;try{const _0x5a4884=readFileSync(_0x9fd327,_0x3f87a6(0x7b)),_0x3c54a5=_0x5a4884['match'](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x3c54a5&&_0x3c54a5[0x1]){const _0x5bb99b=_0x3c54a5[0x1],_0x1902ab=_0x5bb99b[_0x3f87a6(0x8a)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x1902ab&&_0x1902ab[0x1])return _0x1902ab[0x1][_0x3f87a6(0x86)]();}let _0xa8617=null;const _0x383d33=_0x5a4884[_0x3f87a6(0x8a)](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x383d33&&_0x383d33[0x1]&&(_0xa8617=_0x383d33[0x1]);if(!_0xa8617){const _0xf266c7=_0x5a4884[_0x3f87a6(0x8a)](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0xf266c7&&_0xf266c7[0x1]&&(_0xa8617=_0xf266c7[0x1]);}if(_0xa8617){const _0x29e260=new RegExp('\x5cb'+_0xa8617+'\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]'),_0x2ff33d=_0x5a4884[_0x3f87a6(0x8a)](_0x29e260);if(_0x2ff33d&&_0x2ff33d[0x1])return _0x2ff33d[0x1];return _0xa8617;}return null;}catch(_0xbb97){return null;}}function a82_0xc13b(_0x185d74,_0x3c622c){_0x185d74=_0x185d74-0x7b;const _0x29f528=a82_0x29f5();let _0xc13b15=_0x29f528[_0x185d74];return _0xc13b15;}export function getLocalPages(_0x4c847e=pagesDir,_0x4062ac=pagesDir){const _0x1acc9d=a82_0x4369ed;let _0x37c397=[];const _0x430429=readdirSync(_0x4c847e);return _0x430429[_0x1acc9d(0x7c)](_0x2407cb=>{const _0xb1a7db=_0x1acc9d,_0x23adb1=join(_0x4c847e,_0x2407cb),_0x320308=statSync(_0x23adb1);if(_0x320308&&_0x320308[_0xb1a7db(0x8e)]())_0x37c397=_0x37c397[_0xb1a7db(0x84)](getLocalPages(_0x23adb1,_0x4062ac));else{if(_0x2407cb[_0xb1a7db(0x94)](_0xb1a7db(0x8f))){let _0x394360=relative(_0x4062ac,_0x23adb1);_0x394360[_0xb1a7db(0x94)]('index.tsx')?_0x394360=_0x394360[_0xb1a7db(0x81)](/index\.tsx$/,''):_0x394360=_0x394360['replace'](/\.tsx$/,'');_0x394360['endsWith'](sep)&&(_0x394360=_0x394360[_0xb1a7db(0x83)](0x0,-0x1));const _0x54ae75=_0x394360[_0xb1a7db(0x91)](sep)[_0xb1a7db(0x7d)]('/'),_0x566116=extractTitleFromComment(_0x23adb1),_0x8ac242=_0x566116||_0x54ae75;_0x37c397[_0xb1a7db(0x8b)]({'path':_0x54ae75[_0xb1a7db(0x96)]('$',':'),'label':_0x8ac242});}}}),_0x37c397[_0x1acc9d(0x87)](_0x2ed22d=>_0x2ed22d[_0x1acc9d(0x92)]!=='');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5033d5,_0x2069bb){const _0x105190=a83_0xe8db,_0x1608cb=_0x5033d5();while(!![]){try{const _0x26ca7f=parseInt(_0x105190(0x199))/0x1+-parseInt(_0x105190(0x194))/0x2*(parseInt(_0x105190(0x197))/0x3)+parseInt(_0x105190(0x198))/0x4*(parseInt(_0x105190(0x18d))/0x5)+parseInt(_0x105190(0x19c))/0x6*(parseInt(_0x105190(0x195))/0x7)+parseInt(_0x105190(0x1a1))/0x8*(-parseInt(_0x105190(0x1a5))/0x9)+-parseInt(_0x105190(0x18c))/0xa+parseInt(_0x105190(0x196))/0xb;if(_0x26ca7f===_0x2069bb)break;else _0x1608cb['push'](_0x1608cb['shift']());}catch(_0x7756d6){_0x1608cb['push'](_0x1608cb['shift']());}}}(a83_0x48ed,0x74087));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';function a83_0x48ed(){const _0x61629b=['trim','find','status','3098690YVcwRa','5jrzMJz','label','errors','join','No\x20local\x20pages\x20matched\x20labels:\x20','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','resources','752yuzFFY','537369DLarqz','5017133seXUhY','5667AlZErL','1310944CtQdaM','574215zMurSY','has','value','18UvkKQX','filter','push','fulfilled','rejected','743608mooYpU','map','length','path','9vGNKcK','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL'];a83_0x48ed=function(){return _0x61629b;};return a83_0x48ed();}import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0xf79f23){const _0x337387=a83_0xe8db,_0x5a01ca=[];return!isValidJsHttpsUrl(_0xf79f23)&&_0x5a01ca[_0x337387(0x19e)](_0x337387(0x1a6)),{'ok':_0x5a01ca[_0x337387(0x1a3)]===0x0,'errors':_0x5a01ca};}export function validateCssUrl(_0x20d747){const _0x3c7805=a83_0xe8db,_0x9548=[];return!isValidCssHttpsUrl(_0x20d747)&&_0x9548[_0x3c7805(0x19e)](_0x3c7805(0x192)),{'ok':_0x9548[_0x3c7805(0x1a3)]===0x0,'errors':_0x9548};}export async function validateJsUrlReachable(_0x1281af){const _0x51e72d=a83_0xe8db,_0x553f5c=validateJsUrl(_0x1281af);if(!_0x553f5c['ok'])return _0x553f5c;const _0x2408ab=await isUrlReachable(_0x1281af);if(!_0x2408ab)_0x553f5c[_0x51e72d(0x18f)][_0x51e72d(0x19e)]('JS\x20URL\x20is\x20unreachable');return{'ok':_0x553f5c['errors'][_0x51e72d(0x1a3)]===0x0,'errors':_0x553f5c[_0x51e72d(0x18f)]};}export async function validateCssUrlReachable(_0x30a85c){const _0xb01a43=a83_0xe8db,_0x7402ae=validateCssUrl(_0x30a85c);if(!_0x7402ae['ok'])return _0x7402ae;const _0x17a999=await isUrlReachable(_0x30a85c);if(!_0x17a999)_0x7402ae[_0xb01a43(0x18f)][_0xb01a43(0x19e)]('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x7402ae[_0xb01a43(0x18f)]['length']===0x0,'errors':_0x7402ae['errors']};}export function buildCompareRows(_0x50fd97,_0x3d2191){const _0x2d2c9b=a83_0xe8db;return _0x50fd97[_0x2d2c9b(0x1a2)](_0x76b931=>({'label':_0x76b931[_0x2d2c9b(0x18e)],'path':_0x76b931[_0x2d2c9b(0x1a4)],'local':!![],'online':_0x3d2191[_0x2d2c9b(0x19a)](_0x76b931[_0x2d2c9b(0x1a4)])}));}export function filterNewPages(_0x2bf3de,_0x229fac,_0x378531){const _0xa5d46=a83_0xe8db;if(_0x378531&&_0x378531[_0xa5d46(0x1a3)]>0x0){const _0x236d6a=new Set(_0x378531['map'](_0x50217b=>_0x50217b[_0xa5d46(0x1a7)]())),_0x4c73f5=_0x2bf3de[_0xa5d46(0x19d)](_0x145e85=>_0x236d6a['has'](_0x145e85[_0xa5d46(0x18e)]));if(_0x4c73f5[_0xa5d46(0x1a3)]===0x0)throw new Error(_0xa5d46(0x191)+[..._0x236d6a][_0xa5d46(0x190)](',\x20'));return _0x4c73f5;}return _0x2bf3de[_0xa5d46(0x19d)](_0x38a0fd=>!_0x229fac['has'](_0x38a0fd[_0xa5d46(0x1a4)]));}export function filterPagesByLabels(_0xa996b4,_0xbf9577){const _0x1abf68=a83_0xe8db,_0x3a2865=[],_0x24e774=[];for(const _0x50f108 of _0xbf9577){const _0x5c5e90=_0x50f108[_0x1abf68(0x1a7)](),_0x38375d=_0xa996b4[_0x1abf68(0x18a)](_0x5d4ed1=>_0x5d4ed1[_0x1abf68(0x18e)]===_0x5c5e90);if(_0x38375d)_0x3a2865[_0x1abf68(0x19e)](_0x38375d);else _0x24e774[_0x1abf68(0x19e)](_0x50f108);}return{'matched':_0x3a2865,'unmatched':_0x24e774};}export async function doCreateMenus(_0x47c1cf,_0x5b33d6,_0x2c4b2a,_0x2a47a3){const _0x3a76e8=a83_0xe8db,_0x3d66f3=await createMenus(_0x47c1cf,_0x5b33d6,_0x2c4b2a,_0x2a47a3);return{'created':_0x3d66f3[_0x3a76e8(0x1a3)],'failed':0x0,'labels':_0x2c4b2a['map'](_0x49c419=>_0x49c419['label']),'menus':_0x3d66f3};}function a83_0xe8db(_0x428317,_0x49ed49){_0x428317=_0x428317-0x18a;const _0x48ed89=a83_0x48ed();let _0xe8dbe0=_0x48ed89[_0x428317];return _0xe8dbe0;}export function filterMenusWithResources(_0xdc5773){const _0x16ff5f=a83_0xe8db;return _0xdc5773[_0x16ff5f(0x19d)](_0x4a768b=>_0x4a768b[_0x16ff5f(0x193)][_0x16ff5f(0x1a3)]>0x0);}export async function doUpdateCdnUrls(_0x4a02c1,_0x36ab62,_0x274c9b,_0x4efdce){const _0x2b7f09=a83_0xe8db,_0x161413=_0x274c9b[_0x2b7f09(0x19d)](_0x3a5753=>_0x3a5753[_0x2b7f09(0x193)]['length']>0x0),_0x4b2c24=await Promise['allSettled'](_0x161413[_0x2b7f09(0x1a2)](_0x2532bf=>updateMenuCdnUrl(_0x4a02c1,_0x36ab62,{'id':_0x2532bf['id'],'label':_0x2532bf[_0x2b7f09(0x18e)],'path':_0x2532bf[_0x2b7f09(0x1a4)],'resources':_0x4efdce}))),_0x3e8598=_0x4b2c24[_0x2b7f09(0x19d)](_0x16dcda=>_0x16dcda[_0x2b7f09(0x18b)]===_0x2b7f09(0x19f))[_0x2b7f09(0x1a2)](_0x71a7fe=>_0x71a7fe[_0x2b7f09(0x19b)]),_0x508dc1=_0x4b2c24[_0x2b7f09(0x19d)](_0x368d0c=>_0x368d0c[_0x2b7f09(0x18b)]===_0x2b7f09(0x1a0))[_0x2b7f09(0x1a3)];return{'updated':_0x3e8598[_0x2b7f09(0x1a3)],'failed':_0x508dc1,'menus':_0x3e8598};}export async function fetchMenuData(_0x1b1917,_0x1cd901){const _0x41435c=a83_0xe8db,_0x5cc75c=getLocalPages(),_0x48e703=await getOnlineMenuList(_0x1b1917,_0x1cd901),_0x2672a9=new Set(_0x48e703['map'](_0x36b4f1=>_0x36b4f1[_0x41435c(0x1a4)]));return{'localPages':_0x5cc75c,'onlineMenuList':_0x48e703,'onlinePaths':_0x2672a9};}export async function fetchOnlineMenuList(_0x5c3f8b,_0x18fbf8){return getOnlineMenuList(_0x5c3f8b,_0x18fbf8);}
|