@lovrabet/rabetbase-cli 2.0.4-beta.3 → 2.0.4-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/logout.js +1 -1
  11. package/lib/cli-flags.js +1 -1
  12. package/lib/cli.js +1 -1
  13. package/lib/commands/api/doc.js +1 -1
  14. package/lib/commands/api/index.js +1 -1
  15. package/lib/commands/api/list.js +1 -1
  16. package/lib/commands/api/pull.js +1 -1
  17. package/lib/commands/app/add.js +1 -1
  18. package/lib/commands/app/index.js +1 -1
  19. package/lib/commands/app/list.js +1 -1
  20. package/lib/commands/app/remote.js +1 -1
  21. package/lib/commands/app/remove.js +1 -1
  22. package/lib/commands/app/shared.js +1 -1
  23. package/lib/commands/app/use.js +1 -1
  24. package/lib/commands/auth.js +1 -1
  25. package/lib/commands/bff/delete.js +1 -1
  26. package/lib/commands/bff/detail.js +1 -1
  27. package/lib/commands/bff/index.js +1 -1
  28. package/lib/commands/bff/list.js +1 -1
  29. package/lib/commands/bff/new.js +1 -1
  30. package/lib/commands/bff/pull.js +1 -1
  31. package/lib/commands/bff/push.js +1 -1
  32. package/lib/commands/bff/status.js +1 -1
  33. package/lib/commands/build.js +1 -1
  34. package/lib/commands/cli-update.js +1 -1
  35. package/lib/commands/codegen/index.js +1 -1
  36. package/lib/commands/codegen/sdk.js +1 -1
  37. package/lib/commands/codegen/sql.js +1 -1
  38. package/lib/commands/common/app-selector.js +1 -1
  39. package/lib/commands/common/flags.js +1 -1
  40. package/lib/commands/common/validate.js +1 -1
  41. package/lib/commands/config/get.js +1 -1
  42. package/lib/commands/config/index.js +1 -1
  43. package/lib/commands/config/list.js +1 -1
  44. package/lib/commands/config/set.js +1 -1
  45. package/lib/commands/config/shared.js +1 -1
  46. package/lib/commands/create.js +1 -1
  47. package/lib/commands/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/doctor.js +1 -1
  53. package/lib/commands/init.js +1 -1
  54. package/lib/commands/logout.js +1 -1
  55. package/lib/commands/logs.js +1 -1
  56. package/lib/commands/menu/index.js +1 -1
  57. package/lib/commands/menu/shared/compare-table.js +1 -1
  58. package/lib/commands/menu/shared/index.js +1 -1
  59. package/lib/commands/menu/shared/inquirer.js +1 -1
  60. package/lib/commands/menu/shared/local-pages.js +1 -1
  61. package/lib/commands/menu/shared/logic.js +1 -1
  62. package/lib/commands/menu/shared/service.js +1 -1
  63. package/lib/commands/menu/shared/sync-core.js +1 -1
  64. package/lib/commands/menu/shared/update-core.js +1 -1
  65. package/lib/commands/menu/shared/valid-url.js +1 -1
  66. package/lib/commands/menu/sync.js +1 -1
  67. package/lib/commands/menu/update.js +1 -1
  68. package/lib/commands/preview.js +1 -1
  69. package/lib/commands/project-upgrade.js +1 -1
  70. package/lib/commands/registry.js +1 -1
  71. package/lib/commands/run.js +1 -1
  72. package/lib/commands/skill.js +1 -1
  73. package/lib/commands/smart-init.js +1 -1
  74. package/lib/commands/sql/detail.js +1 -1
  75. package/lib/commands/sql/exec.js +1 -1
  76. package/lib/commands/sql/index.js +1 -1
  77. package/lib/commands/sql/list.js +1 -1
  78. package/lib/commands/sql/save.js +1 -1
  79. package/lib/commands/sql/validate.js +1 -1
  80. package/lib/commands/start.js +1 -1
  81. package/lib/constant/cli.js +1 -1
  82. package/lib/constant/domain.js +1 -1
  83. package/lib/constant/env.js +1 -1
  84. package/lib/context.js +1 -1
  85. package/lib/core/alias-resolver.js +1 -1
  86. package/lib/core/api-client.js +1 -1
  87. package/lib/core/bff/config.js +1 -1
  88. package/lib/core/bff/file-system.js +1 -1
  89. package/lib/core/bff/hash.js +1 -1
  90. package/lib/core/bff/lock.js +1 -1
  91. package/lib/core/bff/utils.js +1 -1
  92. package/lib/core/db-resolver.js +1 -1
  93. package/lib/core/sql-validator.js +1 -1
  94. package/lib/create-app/enhanced-guided-create.js +1 -1
  95. package/lib/create-app/format-elapsed.js +1 -1
  96. package/lib/create-app/main.js +1 -1
  97. package/lib/create-app/non-interactive.js +1 -1
  98. package/lib/create-app/use-copy-project-template.js +1 -1
  99. package/lib/create-app/use-format-code.js +1 -1
  100. package/lib/create-app/use-install-dependencies.js +1 -1
  101. package/lib/errors.js +1 -1
  102. package/lib/framework/flags.js +1 -1
  103. package/lib/framework/help.js +1 -1
  104. package/lib/framework/index.js +1 -1
  105. package/lib/framework/output.js +1 -1
  106. package/lib/framework/response.js +1 -1
  107. package/lib/framework/runner.js +1 -1
  108. package/lib/framework/types.js +1 -1
  109. package/lib/generated/build-info.js +1 -1
  110. package/lib/help.js +1 -1
  111. package/lib/init/main.js +1 -1
  112. package/lib/skills/main.js +1 -1
  113. package/lib/skills/npx-skills-add.js +1 -1
  114. package/lib/telemetry/cli-help-trace.js +1 -1
  115. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  116. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  117. package/lib/telemetry/send-cli-trace-log.js +1 -1
  118. package/lib/utils/ai_config.js +1 -1
  119. package/lib/utils/cdn-config.js +1 -1
  120. package/lib/utils/check-sdk-version.js +1 -1
  121. package/lib/utils/cli-version-check.js +1 -1
  122. package/lib/utils/config.js +1 -1
  123. package/lib/utils/copy-directory.js +1 -1
  124. package/lib/utils/file-utils.js +1 -1
  125. package/lib/utils/guides-cdn.js +1 -1
  126. package/lib/utils/http-client.js +1 -1
  127. package/lib/utils/is-non-interactive.js +1 -1
  128. package/lib/utils/logger.js +1 -1
  129. package/lib/utils/platform.js +1 -1
  130. package/lib/utils/rules-cdn.js +1 -1
  131. package/lib/utils/sleep.js +1 -1
  132. package/lib/utils/template-replacer.js +1 -1
  133. package/lib/utils/version.js +1 -1
  134. package/lib/utils/with-active-cookie.js +1 -1
  135. package/package.json +3 -3
@@ -1 +1 @@
1
- const a35_0x22350c=a35_0x55b0;(function(_0x1ee8e6,_0xcd0b97){const _0x293ff1=a35_0x55b0,_0x48fa73=_0x1ee8e6();while(!![]){try{const _0x554db9=parseInt(_0x293ff1(0x8b))/0x1*(-parseInt(_0x293ff1(0x85))/0x2)+-parseInt(_0x293ff1(0x86))/0x3+parseInt(_0x293ff1(0x88))/0x4+-parseInt(_0x293ff1(0x79))/0x5+-parseInt(_0x293ff1(0x7c))/0x6+-parseInt(_0x293ff1(0x89))/0x7+parseInt(_0x293ff1(0x81))/0x8;if(_0x554db9===_0xcd0b97)break;else _0x48fa73['push'](_0x48fa73['shift']());}catch(_0x38db17){_0x48fa73['push'](_0x48fa73['shift']());}}}(a35_0x4c18,0x791ce));function a35_0x55b0(_0x2f5e75,_0x2cbe22){_0x2f5e75=_0x2f5e75-0x75;const _0x4c181b=a35_0x4c18();let _0x55b043=_0x4c181b[_0x2f5e75];return _0x55b043;}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const codegenSdk={'service':a35_0x22350c(0x7a),'command':a35_0x22350c(0x84),'description':a35_0x22350c(0x75),'risk':a35_0x22350c(0x7d),'flags':[CODE_FLAG_OPTIONAL,{'name':a35_0x22350c(0x83),'type':a35_0x22350c(0x78),'description':a35_0x22350c(0x80)},{'name':a35_0x22350c(0x7f),'type':'string','required':!![],'description':a35_0x22350c(0x82)},{'name':'skip-imports','type':a35_0x22350c(0x7e),'description':a35_0x22350c(0x8a)}],async 'execute'(_0x5400af){const _0x535bdc=a35_0x22350c,{dataset:_0x19d6d2,operation:_0x2913ea}=await getOperationDetail(_0x5400af['appCode'],_0x5400af['str'](_0x535bdc(0x76)),_0x5400af[_0x535bdc(0x77)]('operation')),_0x10042c=generateSdkCode(_0x19d6d2,_0x2913ea,{'includeImports':!_0x5400af[_0x535bdc(0x87)]('skip-imports')});return{'ok':!![],'data':{'dataset':{'name':_0x19d6d2['name'],'code':_0x19d6d2[_0x535bdc(0x76)],'tableName':_0x19d6d2[_0x535bdc(0x7b)]},'operation':_0x5400af['str'](_0x535bdc(0x7f)),'code':_0x10042c}};}};function a35_0x4c18(){const _0x4ac2bf=['codegen','tableName','1326768AmvWWl','read','boolean','operation','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','20137784UViWzj','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','alias','sdk','8782ToxVCK','2364477HfOWfQ','bool','1579204tMvuke','3595263ZMnMGi','Omit\x20import\x20statements\x20from\x20generated\x20code','37ekcoJt','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','code','str','string','3652915MAsFie'];a35_0x4c18=function(){return _0x4ac2bf;};return a35_0x4c18();}
1
+ const a35_0x477f76=a35_0x6bd9;(function(_0x197893,_0x16ccec){const _0x4230be=a35_0x6bd9,_0x516ca9=_0x197893();while(!![]){try{const _0xf8b7d8=-parseInt(_0x4230be(0x7c))/0x1+parseInt(_0x4230be(0x70))/0x2+-parseInt(_0x4230be(0x7f))/0x3*(parseInt(_0x4230be(0x74))/0x4)+-parseInt(_0x4230be(0x78))/0x5*(-parseInt(_0x4230be(0x6e))/0x6)+parseInt(_0x4230be(0x75))/0x7+parseInt(_0x4230be(0x81))/0x8*(-parseInt(_0x4230be(0x72))/0x9)+parseInt(_0x4230be(0x7a))/0xa*(-parseInt(_0x4230be(0x7d))/0xb);if(_0xf8b7d8===_0x16ccec)break;else _0x516ca9['push'](_0x516ca9['shift']());}catch(_0x4c254e){_0x516ca9['push'](_0x516ca9['shift']());}}}(a35_0x4ca1,0x68da3));function a35_0x6bd9(_0x3c6e95,_0x1be4e1){_0x3c6e95=_0x3c6e95-0x6b;const _0x4ca172=a35_0x4ca1();let _0x6bd9ef=_0x4ca172[_0x3c6e95];return _0x6bd9ef;}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a35_0x4ca1(){const _0x1fa77c=['2677048hbjtyh','name','4167UdHQCb','tableName','8jSKhDS','codegen','code','operation','892578sXXfvS','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','1418006mtKcpt','sdk','6429177OYswuP','str','612AsjjsO','1245482WKkLMK','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','skip-imports','25UMqjHK','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','10qYCBdn','string','31031EHHpVE'];a35_0x4ca1=function(){return _0x1fa77c;};return a35_0x4ca1();}import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const codegenSdk={'service':a35_0x477f76(0x6b),'command':a35_0x477f76(0x71),'description':a35_0x477f76(0x6f),'risk':'read','flags':[CODE_FLAG_OPTIONAL,{'name':'alias','type':a35_0x477f76(0x7b),'description':a35_0x477f76(0x76)},{'name':a35_0x477f76(0x6d),'type':a35_0x477f76(0x7b),'required':!![],'description':a35_0x477f76(0x79)},{'name':a35_0x477f76(0x77),'type':'boolean','description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x2fd78c){const _0x17c35f=a35_0x477f76,{dataset:_0x3023a8,operation:_0x26b2f8}=await getOperationDetail(_0x2fd78c['appCode'],_0x2fd78c[_0x17c35f(0x73)](_0x17c35f(0x6c)),_0x2fd78c[_0x17c35f(0x73)](_0x17c35f(0x6d))),_0xd1d4a0=generateSdkCode(_0x3023a8,_0x26b2f8,{'includeImports':!_0x2fd78c['bool'](_0x17c35f(0x77))});return{'ok':!![],'data':{'dataset':{'name':_0x3023a8[_0x17c35f(0x7e)],'code':_0x3023a8[_0x17c35f(0x6c)],'tableName':_0x3023a8[_0x17c35f(0x80)]},'operation':_0x2fd78c['str'](_0x17c35f(0x6d)),'code':_0xd1d4a0}};}};
@@ -1 +1 @@
1
- const a36_0x59fb04=a36_0x4c94;(function(_0x5d9edd,_0x7d2871){const _0x4a2535=a36_0x4c94,_0x3ee3c8=_0x5d9edd();while(!![]){try{const _0x19f553=-parseInt(_0x4a2535(0x17c))/0x1+parseInt(_0x4a2535(0x180))/0x2+parseInt(_0x4a2535(0x181))/0x3*(parseInt(_0x4a2535(0x16d))/0x4)+parseInt(_0x4a2535(0x16b))/0x5*(-parseInt(_0x4a2535(0x17f))/0x6)+parseInt(_0x4a2535(0x169))/0x7*(parseInt(_0x4a2535(0x177))/0x8)+-parseInt(_0x4a2535(0x172))/0x9*(-parseInt(_0x4a2535(0x17a))/0xa)+-parseInt(_0x4a2535(0x183))/0xb*(parseInt(_0x4a2535(0x170))/0xc);if(_0x19f553===_0x7d2871)break;else _0x3ee3c8['push'](_0x3ee3c8['shift']());}catch(_0x16613f){_0x3ee3c8['push'](_0x3ee3c8['shift']());}}}(a36_0x520d,0xcf5a3));function a36_0x4c94(_0x41e97c,_0x3dd6e8){_0x41e97c=_0x41e97c-0x168;const _0x520def=a36_0x520d();let _0x4c94f7=_0x520def[_0x41e97c];return _0x4c94f7;}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../common/flags.js';function a36_0x520d(){const _0x4085e0=['7vYyLkT','Omit\x20import\x20statements\x20from\x20generated\x20code','145yhMnbm','sqlCode','4sBPlgw','appCode','bff','11016LehWoJ','sql','904356tLMLIb','sqlcode','target','string','sdk','8500208BeLAiW','no-imports','bool','160IgEyGh','read','1505565YIPgaM','codegen','str','16230xwkwwP','2810846sXrozW','3673638QluzzC','boolean','34353yBpADQ','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query'];a36_0x520d=function(){return _0x4085e0;};return a36_0x520d();}export const codegenSql={'service':a36_0x59fb04(0x17d),'command':a36_0x59fb04(0x171),'description':a36_0x59fb04(0x168),'risk':a36_0x59fb04(0x17b),'flags':[SQLCODE_FLAG,{'name':a36_0x59fb04(0x174),'type':a36_0x59fb04(0x175),'description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':a36_0x59fb04(0x176),'enum':['sdk',a36_0x59fb04(0x16f)]},{'name':a36_0x59fb04(0x178),'type':a36_0x59fb04(0x182),'description':a36_0x59fb04(0x16a)}],async 'execute'(_0x477b80){const _0x1c0b8b=a36_0x59fb04,_0x4c9069=await getSqlQueryInfo(_0x477b80[_0x1c0b8b(0x16e)],_0x477b80[_0x1c0b8b(0x17e)](_0x1c0b8b(0x173))),_0x15f6d0=_0x477b80[_0x1c0b8b(0x17e)](_0x1c0b8b(0x174))||_0x1c0b8b(0x176),_0x2f9b7b=generateSqlCodeTemplate(_0x4c9069,{'target':_0x15f6d0,'includeImports':!_0x477b80[_0x1c0b8b(0x179)](_0x1c0b8b(0x178))});return{'ok':!![],'data':{'sqlCode':_0x4c9069[_0x1c0b8b(0x16c)],'sqlName':_0x4c9069['sqlName'],'target':_0x15f6d0,'code':_0x2f9b7b}};}};
1
+ const a36_0x4e2271=a36_0x1605;(function(_0x3e5031,_0x2e4794){const _0x2638ba=a36_0x1605,_0x78e40d=_0x3e5031();while(!![]){try{const _0x310340=parseInt(_0x2638ba(0x17d))/0x1*(parseInt(_0x2638ba(0x16d))/0x2)+parseInt(_0x2638ba(0x178))/0x3+-parseInt(_0x2638ba(0x169))/0x4*(parseInt(_0x2638ba(0x16c))/0x5)+-parseInt(_0x2638ba(0x171))/0x6*(parseInt(_0x2638ba(0x17c))/0x7)+-parseInt(_0x2638ba(0x17f))/0x8*(parseInt(_0x2638ba(0x174))/0x9)+parseInt(_0x2638ba(0x173))/0xa+-parseInt(_0x2638ba(0x17b))/0xb*(-parseInt(_0x2638ba(0x16b))/0xc);if(_0x310340===_0x2e4794)break;else _0x78e40d['push'](_0x78e40d['shift']());}catch(_0x5a9242){_0x78e40d['push'](_0x78e40d['shift']());}}}(a36_0x5d8f,0xf027c));function a36_0x1605(_0x119b9f,_0x4f56de){_0x119b9f=_0x119b9f-0x169;const _0x5d8f3d=a36_0x5d8f();let _0x160539=_0x5d8f3d[_0x119b9f];return _0x160539;}function a36_0x5d8f(){const _0x942e98=['codegen','boolean','352OKIjZq','154gjtmre','1iradRz','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','736184PeGQsL','appCode','sdk','no-imports','18604PViESK','sqlcode','1501692vPQkTL','1430oSnQqD','2677778jwsiAL','read','bff','target','395628FFFaRE','Omit\x20import\x20statements\x20from\x20generated\x20code','1080660ZdSfkR','180Hkekbu','str','sqlName','sql','460473BSCxDL'];a36_0x5d8f=function(){return _0x942e98;};return a36_0x5d8f();}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../common/flags.js';export const codegenSql={'service':a36_0x4e2271(0x179),'command':a36_0x4e2271(0x177),'description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':a36_0x4e2271(0x16e),'flags':[SQLCODE_FLAG,{'name':a36_0x4e2271(0x170),'type':'string','description':a36_0x4e2271(0x17e),'default':a36_0x4e2271(0x181),'enum':[a36_0x4e2271(0x181),a36_0x4e2271(0x16f)]},{'name':'no-imports','type':a36_0x4e2271(0x17a),'description':a36_0x4e2271(0x172)}],async 'execute'(_0x328d1d){const _0x2ddd27=a36_0x4e2271,_0x3cd01e=await getSqlQueryInfo(_0x328d1d[_0x2ddd27(0x180)],_0x328d1d['str'](_0x2ddd27(0x16a))),_0x444b63=_0x328d1d[_0x2ddd27(0x175)](_0x2ddd27(0x170))||_0x2ddd27(0x181),_0x462f55=generateSqlCodeTemplate(_0x3cd01e,{'target':_0x444b63,'includeImports':!_0x328d1d['bool'](_0x2ddd27(0x182))});return{'ok':!![],'data':{'sqlCode':_0x3cd01e['sqlCode'],'sqlName':_0x3cd01e[_0x2ddd27(0x176)],'target':_0x444b63,'code':_0x462f55}};}};
@@ -1 +1 @@
1
- (function(_0x1da522,_0xdbf8dd){const _0x3b2ca0=a37_0x1cf7,_0x89b5f7=_0x1da522();while(!![]){try{const _0x1fe00e=parseInt(_0x3b2ca0(0x198))/0x1*(parseInt(_0x3b2ca0(0x178))/0x2)+parseInt(_0x3b2ca0(0x190))/0x3*(-parseInt(_0x3b2ca0(0x187))/0x4)+-parseInt(_0x3b2ca0(0x18f))/0x5+parseInt(_0x3b2ca0(0x182))/0x6*(parseInt(_0x3b2ca0(0x194))/0x7)+-parseInt(_0x3b2ca0(0x19a))/0x8*(parseInt(_0x3b2ca0(0x186))/0x9)+parseInt(_0x3b2ca0(0x19e))/0xa+-parseInt(_0x3b2ca0(0x1a0))/0xb*(-parseInt(_0x3b2ca0(0x191))/0xc);if(_0x1fe00e===_0xdbf8dd)break;else _0x89b5f7['push'](_0x89b5f7['shift']());}catch(_0x524af6){_0x89b5f7['push'](_0x89b5f7['shift']());}}}(a37_0x3929,0x6f962));import{input,checkbox,select}from'@inquirer/prompts';import a37_0x540658 from'chalk';import{validateAppcode}from'./validate.js';function a37_0x1cf7(_0x2bbd5a,_0x217148){_0x2bbd5a=_0x2bbd5a-0x178;const _0x3929b7=a37_0x3929();let _0x1cf7a7=_0x3929b7[_0x2bbd5a];return _0x1cf7a7;}import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';export async function promptCustomAppcode(){const _0x27ddfb=a37_0x1cf7,_0x2e530e=await input({'message':_0x27ddfb(0x195),'validate':_0x387c37=>{const _0x2099d9=_0x27ddfb,_0x56bda6=validateAppcode(_0x387c37[_0x2099d9(0x193)]());return _0x56bda6[_0x2099d9(0x185)]||_0x56bda6['message']||_0x2099d9(0x17f);}});return _0x2e530e[_0x27ddfb(0x193)]();}export async function promptAppSelection(_0x45d2e1){const _0x58378c=a37_0x1cf7,_0x1f7139=[{'name':a37_0x540658[_0x58378c(0x17e)](_0x58378c(0x18b)),'value':-0x1},..._0x45d2e1[_0x58378c(0x180)]((_0x342618,_0x285b7d)=>({'name':_0x342618[_0x58378c(0x19c)]+'\x20\x20'+a37_0x540658[_0x58378c(0x18c)]('('+_0x342618['appCode']+')'),'value':_0x285b7d}))],_0x5edfd8=await checkbox({'message':_0x58378c(0x197)+a37_0x540658[_0x58378c(0x181)](_0x45d2e1['length'])+_0x58378c(0x184),'choices':_0x1f7139,'loop':![]});if(_0x5edfd8[_0x58378c(0x18a)](-0x1))return _0x58378c(0x19b);if(_0x5edfd8['length']===0x0)return _0x58378c(0x19b);return _0x5edfd8[_0x58378c(0x180)](_0x105612=>_0x45d2e1[_0x105612]);}export async function promptSingleAppSelection(_0x5cd547){const _0x41e028=a37_0x1cf7,_0x5b3ae5=[{'name':a37_0x540658[_0x41e028(0x18c)]('(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)'),'value':_0x41e028(0x17b)},{'name':a37_0x540658[_0x41e028(0x17e)](_0x41e028(0x18b)),'value':_0x41e028(0x19b)},..._0x5cd547[_0x41e028(0x180)](_0x36f40b=>({'name':_0x36f40b[_0x41e028(0x19c)]+'\x20\x20'+a37_0x540658[_0x41e028(0x18c)]('('+_0x36f40b['appCode']+')'),'value':_0x36f40b[_0x41e028(0x18d)]}))],_0x4f5e62=await select({'message':_0x41e028(0x18e),'choices':_0x5b3ae5});if(_0x4f5e62==='skip')return'skip';if(_0x4f5e62==='custom')return _0x41e028(0x19b);return _0x5cd547['find'](_0x14b05b=>_0x14b05b[_0x41e028(0x18d)]===_0x4f5e62);}export async function selectSingleAppcode(_0x4c4b51){const _0x41f438=a37_0x1cf7;if(!_0x4c4b51)return console['log'](a37_0x540658[_0x41f438(0x18c)]('(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)')),_fallbackOrSkip();console[_0x41f438(0x17d)](_0x41f438(0x189));let _0x4bad41;try{_0x4bad41=await withActiveCookie(_0x4c4b51,()=>listRemoteApps());}catch(_0x183676){console[_0x41f438(0x17d)](a37_0x540658[_0x41f438(0x17e)](_0x41f438(0x196)));if(_0x183676 instanceof Error)console[_0x41f438(0x17d)](a37_0x540658[_0x41f438(0x18c)](_0x41f438(0x17a)+_0x183676[_0x41f438(0x199)]+')'));return _fallbackOrSkip();}if(_0x4bad41[_0x41f438(0x19d)]===0x0)return console['log'](a37_0x540658[_0x41f438(0x17e)](_0x41f438(0x17c))),_fallbackOrSkip();const _0x57f3ef=await promptSingleAppSelection(_0x4bad41);if(_0x57f3ef===_0x41f438(0x17b))return'';if(_0x57f3ef==='custom')return promptCustomAppcode();return _0x57f3ef[_0x41f438(0x18d)];}export async function selectMultipleApps(_0x3b74db){const _0xf04ee6=a37_0x1cf7;console[_0xf04ee6(0x17d)](_0xf04ee6(0x189));let _0x375243;try{_0x375243=await withActiveCookie(_0x3b74db,()=>listRemoteApps());}catch(_0x59cf45){console[_0xf04ee6(0x17d)](_0xf04ee6(0x19f));if(_0x59cf45 instanceof Error)console['log'](_0xf04ee6(0x17a)+_0x59cf45[_0xf04ee6(0x199)]+')');return _0xf04ee6(0x19b);}if(_0x375243[_0xf04ee6(0x19d)]===0x0)return console[_0xf04ee6(0x17d)](_0xf04ee6(0x192)),'custom';return promptAppSelection(_0x375243);}async function _fallbackOrSkip(){const _0x2194b3=a37_0x1cf7,_0x156cfe=await select({'message':_0x2194b3(0x188),'choices':[{'name':a37_0x540658[_0x2194b3(0x18c)](_0x2194b3(0x183)),'value':_0x2194b3(0x17b)},{'name':a37_0x540658['yellow']('✎\x20手动输入'),'value':_0x2194b3(0x179)}]});if(_0x156cfe==='skip')return'';return promptCustomAppcode();}function a37_0x3929(){const _0x3caad1=['2750blBJfm','20422Siqjds','manual','\x20\x20(','skip','未找到可用应用。','log','yellow','Invalid\x20App\x20Code','map','cyan','26646EQWMPp','(跳过,稍后配置)','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','valid','126shDXbc','4YGDZJd','App\x20Code:','正在获取可用应用列表...','includes','✎\x20自定义输入\x20appcode','gray','appCode','请选择要绑定的应用:','1908785kKazTt','2060382PKdjTJ','42276lPDvXI','\x0a未找到可用应用。','trim','329nPpXuE','请输入\x20App\x20Code:','无法获取远程应用列表,请手动输入。','获取到\x20','18PPRfeO','message','102048oCUhIH','custom','appName','length','4309180cMOuKL','\x0a无法获取远程应用列表,请手动输入。'];a37_0x3929=function(){return _0x3caad1;};return a37_0x3929();}
1
+ (function(_0x44e6ef,_0x2a7fe5){const _0x2b4921=a37_0x1825,_0x1cdbd8=_0x44e6ef();while(!![]){try{const _0x40b7fb=-parseInt(_0x2b4921(0xbd))/0x1+parseInt(_0x2b4921(0xbf))/0x2*(-parseInt(_0x2b4921(0xb9))/0x3)+parseInt(_0x2b4921(0xc6))/0x4+-parseInt(_0x2b4921(0xda))/0x5*(parseInt(_0x2b4921(0xcd))/0x6)+-parseInt(_0x2b4921(0xd0))/0x7+-parseInt(_0x2b4921(0xba))/0x8+parseInt(_0x2b4921(0xd3))/0x9;if(_0x40b7fb===_0x2a7fe5)break;else _0x1cdbd8['push'](_0x1cdbd8['shift']());}catch(_0x279586){_0x1cdbd8['push'](_0x1cdbd8['shift']());}}}(a37_0x201c,0x679d0));import{input,checkbox,select}from'@inquirer/prompts';function a37_0x201c(){const _0x20da10=['无法获取远程应用列表,请手动输入。','1879972kCSmLD','获取到\x20','gray','\x0a未找到可用应用。','log','custom','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','5520MgYJdi','App\x20Code:','yellow','1920800clwEoS','请选择要绑定的应用:','skip','13607622LySoRA','length','message','manual','\x0a无法获取远程应用列表,请手动输入。','appName','✎\x20自定义输入\x20appcode','2335EENvrt','\x20\x20(','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','(跳过,稍后配置)','899733NsPifG','171192qNCpSo','map','正在获取可用应用列表...','532201qVSQBI','find','2zUuBrY','trim','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','appCode','valid','Invalid\x20App\x20Code'];a37_0x201c=function(){return _0x20da10;};return a37_0x201c();}import a37_0x4fd491 from'chalk';import{validateAppcode}from'./validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';export async function promptCustomAppcode(){const _0x79fe1a=a37_0x1825,_0xe985c=await input({'message':'请输入\x20App\x20Code:','validate':_0x398b2b=>{const _0x1dbf53=a37_0x1825,_0x3654b0=validateAppcode(_0x398b2b[_0x1dbf53(0xc0)]());return _0x3654b0[_0x1dbf53(0xc3)]||_0x3654b0[_0x1dbf53(0xd5)]||_0x1dbf53(0xc4);}});return _0xe985c[_0x79fe1a(0xc0)]();}export async function promptAppSelection(_0x4102fd){const _0x220918=a37_0x1825,_0x121ed0=[{'name':a37_0x4fd491[_0x220918(0xcf)](_0x220918(0xd9)),'value':-0x1},..._0x4102fd['map']((_0x14546b,_0xf68faf)=>({'name':_0x14546b[_0x220918(0xd8)]+'\x20\x20'+a37_0x4fd491[_0x220918(0xc8)]('('+_0x14546b[_0x220918(0xc2)]+')'),'value':_0xf68faf}))],_0x173e1a=await checkbox({'message':_0x220918(0xc7)+a37_0x4fd491['cyan'](_0x4102fd['length'])+_0x220918(0xcc),'choices':_0x121ed0,'loop':![]});if(_0x173e1a['includes'](-0x1))return _0x220918(0xcb);if(_0x173e1a[_0x220918(0xd4)]===0x0)return _0x220918(0xcb);return _0x173e1a[_0x220918(0xbb)](_0x245447=>_0x4102fd[_0x245447]);}function a37_0x1825(_0x2df1ca,_0x218f00){_0x2df1ca=_0x2df1ca-0xb8;const _0x201cd7=a37_0x201c();let _0x182577=_0x201cd7[_0x2df1ca];return _0x182577;}export async function promptSingleAppSelection(_0x10a7c4){const _0x45dd73=a37_0x1825,_0x42631a=[{'name':a37_0x4fd491['gray'](_0x45dd73(0xdc)),'value':_0x45dd73(0xd2)},{'name':a37_0x4fd491[_0x45dd73(0xcf)]('✎\x20自定义输入\x20appcode'),'value':_0x45dd73(0xcb)},..._0x10a7c4[_0x45dd73(0xbb)](_0x178406=>({'name':_0x178406[_0x45dd73(0xd8)]+'\x20\x20'+a37_0x4fd491[_0x45dd73(0xc8)]('('+_0x178406[_0x45dd73(0xc2)]+')'),'value':_0x178406[_0x45dd73(0xc2)]}))],_0x5ee117=await select({'message':_0x45dd73(0xd1),'choices':_0x42631a});if(_0x5ee117===_0x45dd73(0xd2))return _0x45dd73(0xd2);if(_0x5ee117===_0x45dd73(0xcb))return _0x45dd73(0xcb);return _0x10a7c4[_0x45dd73(0xbe)](_0x49003e=>_0x49003e[_0x45dd73(0xc2)]===_0x5ee117);}export async function selectSingleAppcode(_0x20bfbf){const _0x3d6d97=a37_0x1825;if(!_0x20bfbf)return console[_0x3d6d97(0xca)](a37_0x4fd491['gray'](_0x3d6d97(0xc1))),_fallbackOrSkip();console[_0x3d6d97(0xca)](_0x3d6d97(0xbc));let _0x4d5a84;try{_0x4d5a84=await withActiveCookie(_0x20bfbf,()=>listRemoteApps());}catch(_0x59c144){console[_0x3d6d97(0xca)](a37_0x4fd491[_0x3d6d97(0xcf)](_0x3d6d97(0xc5)));if(_0x59c144 instanceof Error)console[_0x3d6d97(0xca)](a37_0x4fd491['gray'](_0x3d6d97(0xdb)+_0x59c144['message']+')'));return _fallbackOrSkip();}if(_0x4d5a84['length']===0x0)return console[_0x3d6d97(0xca)](a37_0x4fd491[_0x3d6d97(0xcf)]('未找到可用应用。')),_fallbackOrSkip();const _0x53f52c=await promptSingleAppSelection(_0x4d5a84);if(_0x53f52c===_0x3d6d97(0xd2))return'';if(_0x53f52c===_0x3d6d97(0xcb))return promptCustomAppcode();return _0x53f52c[_0x3d6d97(0xc2)];}export async function selectMultipleApps(_0x382a50){const _0x15ded3=a37_0x1825;console[_0x15ded3(0xca)]('正在获取可用应用列表...');let _0x2effff;try{_0x2effff=await withActiveCookie(_0x382a50,()=>listRemoteApps());}catch(_0x16c6d4){console['log'](_0x15ded3(0xd7));if(_0x16c6d4 instanceof Error)console[_0x15ded3(0xca)](_0x15ded3(0xdb)+_0x16c6d4[_0x15ded3(0xd5)]+')');return _0x15ded3(0xcb);}if(_0x2effff[_0x15ded3(0xd4)]===0x0)return console[_0x15ded3(0xca)](_0x15ded3(0xc9)),_0x15ded3(0xcb);return promptAppSelection(_0x2effff);}async function _fallbackOrSkip(){const _0x286d28=a37_0x1825,_0x7abb22=await select({'message':_0x286d28(0xce),'choices':[{'name':a37_0x4fd491[_0x286d28(0xc8)](_0x286d28(0xb8)),'value':_0x286d28(0xd2)},{'name':a37_0x4fd491[_0x286d28(0xcf)]('✎\x20手动输入'),'value':_0x286d28(0xd6)}]});if(_0x7abb22===_0x286d28(0xd2))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a38_0x544b81=a38_0xaabb;(function(_0x434dad,_0x4d0fc4){const _0x5c420a=a38_0xaabb,_0x329458=_0x434dad();while(!![]){try{const _0xc70d93=parseInt(_0x5c420a(0x1d4))/0x1+parseInt(_0x5c420a(0x1dc))/0x2+parseInt(_0x5c420a(0x1de))/0x3+parseInt(_0x5c420a(0x1dd))/0x4+parseInt(_0x5c420a(0x1d3))/0x5*(-parseInt(_0x5c420a(0x1cf))/0x6)+parseInt(_0x5c420a(0x1da))/0x7*(parseInt(_0x5c420a(0x1d8))/0x8)+-parseInt(_0x5c420a(0x1d5))/0x9;if(_0xc70d93===_0x4d0fc4)break;else _0x329458['push'](_0x329458['shift']());}catch(_0x2d17c9){_0x329458['push'](_0x329458['shift']());}}}(a38_0x5315,0x19a93));export const CODE_FLAG={'name':a38_0x544b81(0x1db),'type':a38_0x544b81(0x1d7),'required':!![],'description':a38_0x544b81(0x1df),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x544b81(0x1ce)}};export const CODE_FLAG_OPTIONAL={'name':'code','type':'string','required':![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x544b81(0x1ce)}};function a38_0x5315(){const _0x4b663a=['20656vEAFHP','353202etBwnH','Dataset\x20code\x20(32-char\x20hex\x20UUID)','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','6kcpItC','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','appcode','274085srmvKR','148279IAFzAn','2661957LWGYPT','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','string','9688DHWnNW','sqlcode','497DkCqzf','code','197078mOwoww'];a38_0x5315=function(){return _0x4b663a;};return a38_0x5315();}function a38_0xaabb(_0xe12d17,_0x225e63){_0xe12d17=_0xe12d17-0x1ce;const _0x53153c=a38_0x5315();let _0xaabb14=_0x53153c[_0xe12d17];return _0xaabb14;}export const SQLCODE_FLAG={'name':a38_0x544b81(0x1d9),'type':a38_0x544b81(0x1d7),'required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const APPCODE_FLAG_OPTIONAL={'name':a38_0x544b81(0x1d2),'type':a38_0x544b81(0x1d7),'required':![],'description':a38_0x544b81(0x1d1)};export const SQLCODE_FLAG_OPTIONAL={'name':'sqlcode','type':a38_0x544b81(0x1d7),'required':![],'description':a38_0x544b81(0x1d0),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a38_0x544b81(0x1d6)}};
1
+ const a38_0x5bc37a=a38_0xa31c;(function(_0x2e6663,_0x42ecc4){const _0x434fa0=a38_0xa31c,_0x2f1ab0=_0x2e6663();while(!![]){try{const _0x834dae=-parseInt(_0x434fa0(0xd1))/0x1+parseInt(_0x434fa0(0xc7))/0x2*(parseInt(_0x434fa0(0xcc))/0x3)+parseInt(_0x434fa0(0xc0))/0x4*(parseInt(_0x434fa0(0xd2))/0x5)+parseInt(_0x434fa0(0xcf))/0x6+parseInt(_0x434fa0(0xc2))/0x7+-parseInt(_0x434fa0(0xd0))/0x8*(parseInt(_0x434fa0(0xc5))/0x9)+parseInt(_0x434fa0(0xc8))/0xa*(-parseInt(_0x434fa0(0xca))/0xb);if(_0x834dae===_0x42ecc4)break;else _0x2f1ab0['push'](_0x2f1ab0['shift']());}catch(_0x24d9d1){_0x2f1ab0['push'](_0x2f1ab0['shift']());}}}(a38_0x278e,0x809cb));function a38_0xa31c(_0x2d3b34,_0x4ef929){_0x2d3b34=_0x2d3b34-0xc0;const _0x278e0e=a38_0x278e();let _0xa31c7c=_0x278e0e[_0x2d3b34];return _0xa31c7c;}export const CODE_FLAG={'name':a38_0x5bc37a(0xc1),'type':a38_0x5bc37a(0xc4),'required':!![],'description':a38_0x5bc37a(0xc6),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x5bc37a(0xce)}};export const CODE_FLAG_OPTIONAL={'name':a38_0x5bc37a(0xc1),'type':'string','required':![],'description':a38_0x5bc37a(0xc6),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x5bc37a(0xce)}};function a38_0x278e(){const _0xbeefd9=['code','1086610GsauCf','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','string','36gNJwVQ','Dataset\x20code\x20(32-char\x20hex\x20UUID)','1506wHcVYV','370UCoeGJ','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','292611jMsZJz','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','3459Aralyj','sqlcode','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','5613906SQRXDS','1588624HzPtvf','176334LIhyyr','55nAzkKi','appcode','190032ImLFyr'];a38_0x278e=function(){return _0xbeefd9;};return a38_0x278e();}export const SQLCODE_FLAG={'name':a38_0x5bc37a(0xcd),'type':a38_0x5bc37a(0xc4),'required':!![],'description':a38_0x5bc37a(0xcb),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a38_0x5bc37a(0xc9)}};export const APPCODE_FLAG_OPTIONAL={'name':a38_0x5bc37a(0xd3),'type':'string','required':![],'description':a38_0x5bc37a(0xc3)};export const SQLCODE_FLAG_OPTIONAL={'name':a38_0x5bc37a(0xcd),'type':'string','required':![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a38_0x5bc37a(0xc9)}};
@@ -1 +1 @@
1
- function a39_0x587b(){const _0x25d9e2=['2705076LtcyGw','3bEqyXf','App\x20Code\x20cannot\x20exceed\x20100\x20characters','test','6RbsdLb','214630OzWvTD','122948TRFVeZ','1771917lzVEfk','1233lpzNIF','length','trim','12111KMOrJp','590kbEsBG','2paGgCO','1272tDqKAM','1290248VtxIYP','App\x20Code\x20cannot\x20be\x20empty'];a39_0x587b=function(){return _0x25d9e2;};return a39_0x587b();}function a39_0x3576(_0x217747,_0xd35efd){_0x217747=_0x217747-0x91;const _0x587b21=a39_0x587b();let _0x3576b0=_0x587b21[_0x217747];return _0x3576b0;}(function(_0x304f05,_0xb202b7){const _0x5f4e86=a39_0x3576,_0x2bbe96=_0x304f05();while(!![]){try{const _0x49449a=-parseInt(_0x5f4e86(0x95))/0x1*(parseInt(_0x5f4e86(0x9f))/0x2)+-parseInt(_0x5f4e86(0x9a))/0x3*(-parseInt(_0x5f4e86(0x97))/0x4)+-parseInt(_0x5f4e86(0x9e))/0x5*(parseInt(_0x5f4e86(0x9d))/0x6)+parseInt(_0x5f4e86(0xa0))/0x7+parseInt(_0x5f4e86(0x96))/0x8*(-parseInt(_0x5f4e86(0xa1))/0x9)+parseInt(_0x5f4e86(0x94))/0xa*(parseInt(_0x5f4e86(0x93))/0xb)+-parseInt(_0x5f4e86(0x99))/0xc;if(_0x49449a===_0xb202b7)break;else _0x2bbe96['push'](_0x2bbe96['shift']());}catch(_0x53f3aa){_0x2bbe96['push'](_0x2bbe96['shift']());}}}(a39_0x587b,0x378f4));export function validateAppcode(_0x513d87){const _0x4d3b8f=a39_0x3576,_0x592732=_0x513d87[_0x4d3b8f(0x92)]();if(!_0x592732)return{'valid':![],'message':_0x4d3b8f(0x98)};if(_0x592732[_0x4d3b8f(0x91)]>0x64)return{'valid':![],'message':_0x4d3b8f(0x9b)};if(!/^[A-Za-z0-9_-]+$/[_0x4d3b8f(0x9c)](_0x592732))return{'valid':![],'message':'Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'};return{'valid':!![]};}
1
+ function a39_0x304d(_0x1ce8b7,_0x434ee4){_0x1ce8b7=_0x1ce8b7-0x1cf;const _0x1967be=a39_0x1967();let _0x304db8=_0x1967be[_0x1ce8b7];return _0x304db8;}function a39_0x1967(){const _0x3ffe5c=['4476672LSewss','18CWUPEV','3447684oPzVti','trim','116936iVMCRr','3252016YYxmVA','App\x20Code\x20cannot\x20exceed\x20100\x20characters','4GCakCI','1675950deWDEj','2045407yLYMyq','2326865BaIpyI','test','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'];a39_0x1967=function(){return _0x3ffe5c;};return a39_0x1967();}(function(_0x1c61ad,_0x1551fa){const _0xc5f43f=a39_0x304d,_0x49b0ce=_0x1c61ad();while(!![]){try{const _0x599774=parseInt(_0xc5f43f(0x1d3))/0x1+parseInt(_0xc5f43f(0x1d7))/0x2+-parseInt(_0xc5f43f(0x1d1))/0x3+parseInt(_0xc5f43f(0x1d6))/0x4*(-parseInt(_0xc5f43f(0x1d9))/0x5)+parseInt(_0xc5f43f(0x1cf))/0x6+-parseInt(_0xc5f43f(0x1d8))/0x7+-parseInt(_0xc5f43f(0x1d4))/0x8*(-parseInt(_0xc5f43f(0x1d0))/0x9);if(_0x599774===_0x1551fa)break;else _0x49b0ce['push'](_0x49b0ce['shift']());}catch(_0x5a309e){_0x49b0ce['push'](_0x49b0ce['shift']());}}}(a39_0x1967,0x943f9));export function validateAppcode(_0x25f537){const _0x410f7c=a39_0x304d,_0x42d2a9=_0x25f537[_0x410f7c(0x1d2)]();if(!_0x42d2a9)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0x42d2a9['length']>0x64)return{'valid':![],'message':_0x410f7c(0x1d5)};if(!/^[A-Za-z0-9_-]+$/[_0x410f7c(0x1da)](_0x42d2a9))return{'valid':![],'message':_0x410f7c(0x1db)};return{'valid':!![]};}
@@ -1 +1 @@
1
- const a40_0x1f5b52=a40_0x4053;(function(_0x270bd6,_0x41679f){const _0x40b7b9=a40_0x4053,_0x384fca=_0x270bd6();while(!![]){try{const _0x461bef=-parseInt(_0x40b7b9(0xa0))/0x1+parseInt(_0x40b7b9(0x94))/0x2+parseInt(_0x40b7b9(0x99))/0x3*(parseInt(_0x40b7b9(0xa3))/0x4)+-parseInt(_0x40b7b9(0x9b))/0x5+-parseInt(_0x40b7b9(0x9c))/0x6*(parseInt(_0x40b7b9(0x92))/0x7)+parseInt(_0x40b7b9(0x90))/0x8*(parseInt(_0x40b7b9(0x9f))/0x9)+parseInt(_0x40b7b9(0x95))/0xa;if(_0x461bef===_0x41679f)break;else _0x384fca['push'](_0x384fca['shift']());}catch(_0x181a76){_0x384fca['push'](_0x384fca['shift']());}}}(a40_0x4432,0x19674));import{CliErrors}from'../../errors.js';function a40_0x4432(){const _0x4318d0=['app','2072StWWjc','string','742TWJwBw','Missing\x20key.','195146TWKYPz','1847890WugfuQ','Config\x20key\x20to\x20read','validation','Get\x20a\x20config\x20value\x20by\x20key','18099XEjPZS','str','941550HBRrLs','8220yrbBAC','appcode','Key\x20not\x20found:\x20','4410RXgeOy','92350VrGYCL','Usage:\x20','\x20config\x20get\x20--key\x20<key>','80dXQXlA','read','key'];a40_0x4432=function(){return _0x4318d0;};return a40_0x4432();}import{readConfig}from'../../utils/config.js';function a40_0x4053(_0x13f88b,_0x1fdc12){_0x13f88b=_0x13f88b-0x8d;const _0x4432cf=a40_0x4432();let _0x4053dd=_0x4432cf[_0x13f88b];return _0x4053dd;}import{CLI_BIN_NAME}from'../../constant/cli.js';async function execute(_0x339265){const _0x57e5d4=a40_0x4053,_0x4059eb=_0x339265[_0x57e5d4(0x9a)](_0x57e5d4(0x8e));if(!_0x4059eb)throw CliErrors['validation'](_0x57e5d4(0x93),_0x57e5d4(0xa1)+CLI_BIN_NAME+_0x57e5d4(0xa2));const _0x100de6=readConfig(),_0x37af93=_0x4059eb===_0x57e5d4(0x8f)?_0x57e5d4(0x9d):_0x4059eb,_0x343cac=_0x100de6[_0x37af93];if(_0x343cac===undefined)throw CliErrors[_0x57e5d4(0x97)](_0x57e5d4(0x9e)+_0x4059eb);return{'ok':!![],'data':typeof _0x343cac==='object'?_0x343cac:{[_0x37af93]:_0x343cac},'message':typeof _0x343cac==='object'?undefined:String(_0x343cac)};}export const configGetDefinition={'service':'config','command':'get','description':a40_0x1f5b52(0x98),'risk':a40_0x1f5b52(0x8d),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a40_0x1f5b52(0x8e),'type':a40_0x1f5b52(0x91),'description':a40_0x1f5b52(0x96),'required':!![]}],'execute':execute};
1
+ function a40_0x574b(_0x5b7c82,_0x5be1d0){_0x5b7c82=_0x5b7c82-0xdc;const _0x16621f=a40_0x1662();let _0x574bd2=_0x16621f[_0x5b7c82];return _0x574bd2;}const a40_0x189bc1=a40_0x574b;(function(_0x5b4034,_0x24749f){const _0x26e319=a40_0x574b,_0x229cb9=_0x5b4034();while(!![]){try{const _0x33f11e=-parseInt(_0x26e319(0xe3))/0x1+-parseInt(_0x26e319(0xe0))/0x2+parseInt(_0x26e319(0xec))/0x3*(parseInt(_0x26e319(0xeb))/0x4)+-parseInt(_0x26e319(0xe6))/0x5*(parseInt(_0x26e319(0xe5))/0x6)+-parseInt(_0x26e319(0xed))/0x7+parseInt(_0x26e319(0xee))/0x8+-parseInt(_0x26e319(0xef))/0x9*(-parseInt(_0x26e319(0xf1))/0xa);if(_0x33f11e===_0x24749f)break;else _0x229cb9['push'](_0x229cb9['shift']());}catch(_0x276897){_0x229cb9['push'](_0x229cb9['shift']());}}}(a40_0x1662,0xbb5fb));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a40_0x1662(){const _0x1406cd=['read','string','1225921VpXENn','Key\x20not\x20found:\x20','2898uTyYjn','3525koAIQX','validation','key','object','Get\x20a\x20config\x20value\x20by\x20key','1176432uqblld','15bJUGyn','1754081iaMxuV','12024952KaxeBm','9OwhwcT','app','30020uoftOZ','Usage:\x20','Config\x20key\x20to\x20read','Missing\x20key.','\x20config\x20get\x20--key\x20<key>','784318QWsYGs'];a40_0x1662=function(){return _0x1406cd;};return a40_0x1662();}async function execute(_0x402fa4){const _0x112a6b=a40_0x574b,_0x4a480a=_0x402fa4['str'](_0x112a6b(0xe8));if(!_0x4a480a)throw CliErrors[_0x112a6b(0xe7)](_0x112a6b(0xde),_0x112a6b(0xdc)+CLI_BIN_NAME+_0x112a6b(0xdf));const _0x138eb0=readConfig(),_0x29f0c0=_0x4a480a===_0x112a6b(0xf0)?'appcode':_0x4a480a,_0x27fc90=_0x138eb0[_0x29f0c0];if(_0x27fc90===undefined)throw CliErrors['validation'](_0x112a6b(0xe4)+_0x4a480a);return{'ok':!![],'data':typeof _0x27fc90===_0x112a6b(0xe9)?_0x27fc90:{[_0x29f0c0]:_0x27fc90},'message':typeof _0x27fc90===_0x112a6b(0xe9)?undefined:String(_0x27fc90)};}export const configGetDefinition={'service':'config','command':'get','description':a40_0x189bc1(0xea),'risk':a40_0x189bc1(0xe1),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a40_0x189bc1(0xe8),'type':a40_0x189bc1(0xe2),'description':a40_0x189bc1(0xdd),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x15f46c,_0x2095eb){const _0x305953=a41_0x2e10,_0x2e9caa=_0x15f46c();while(!![]){try{const _0x22f122=-parseInt(_0x305953(0x151))/0x1+parseInt(_0x305953(0x14f))/0x2+parseInt(_0x305953(0x155))/0x3*(-parseInt(_0x305953(0x157))/0x4)+-parseInt(_0x305953(0x158))/0x5*(parseInt(_0x305953(0x153))/0x6)+parseInt(_0x305953(0x152))/0x7+-parseInt(_0x305953(0x150))/0x8+parseInt(_0x305953(0x156))/0x9*(parseInt(_0x305953(0x154))/0xa);if(_0x22f122===_0x2095eb)break;else _0x2e9caa['push'](_0x2e9caa['shift']());}catch(_0x4eb0f0){_0x2e9caa['push'](_0x2e9caa['shift']());}}}(a41_0x22b0,0xaf7c3));import{configListDefinition}from'./list.js';import{configGetDefinition}from'./get.js';function a41_0x22b0(){const _0x235c6a=['957560eOsjTp','716475eDJgpw','5807102KAKiWL','1126362TTAoYR','10eIzfQu','3TlgiIt','1615995UlZgHJ','2331412lhSKXa','5bRIftk','2632792qTUHmI'];a41_0x22b0=function(){return _0x235c6a;};return a41_0x22b0();}import{configSetDefinition}from'./set.js';function a41_0x2e10(_0x2fec66,_0x37086e){_0x2fec66=_0x2fec66-0x14f;const _0x22b0c3=a41_0x22b0();let _0x2e10c5=_0x22b0c3[_0x2fec66];return _0x2e10c5;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x184b19,_0x1fa213){const _0x3fafe3=a41_0x1cdb,_0x2c6bc9=_0x184b19();while(!![]){try{const _0x7a1bb7=-parseInt(_0x3fafe3(0x1b9))/0x1*(-parseInt(_0x3fafe3(0x1b7))/0x2)+-parseInt(_0x3fafe3(0x1bc))/0x3+parseInt(_0x3fafe3(0x1ba))/0x4+parseInt(_0x3fafe3(0x1b8))/0x5+-parseInt(_0x3fafe3(0x1be))/0x6*(parseInt(_0x3fafe3(0x1bd))/0x7)+parseInt(_0x3fafe3(0x1bb))/0x8*(parseInt(_0x3fafe3(0x1bf))/0x9)+parseInt(_0x3fafe3(0x1c0))/0xa;if(_0x7a1bb7===_0x1fa213)break;else _0x2c6bc9['push'](_0x2c6bc9['shift']());}catch(_0x3c14c9){_0x2c6bc9['push'](_0x2c6bc9['shift']());}}}(a41_0x5a47,0x8fd8d));import{configListDefinition}from'./list.js';function a41_0x1cdb(_0x164e83,_0x2cfbf2){_0x164e83=_0x164e83-0x1b7;const _0x5a4732=a41_0x5a47();let _0x1cdb7c=_0x5a4732[_0x164e83];return _0x1cdb7c;}import{configGetDefinition}from'./get.js';import{configSetDefinition}from'./set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];function a41_0x5a47(){const _0x3fd018=['7624xlIcJp','2860857YlIkvU','126zMvGlm','214386igCUII','990SPOefL','3636020SVqQQx','4WscuRl','4395865FZeEMT','333001EkdIFw','689468HauXKQ'];a41_0x5a47=function(){return _0x3fd018;};return a41_0x5a47();}
@@ -1 +1 @@
1
- const a42_0x4edbed=a42_0x546f;(function(_0x1949ce,_0x48dbf8){const _0x2a2536=a42_0x546f,_0x9af5ad=_0x1949ce();while(!![]){try{const _0xe7333=-parseInt(_0x2a2536(0x83))/0x1+parseInt(_0x2a2536(0x80))/0x2*(parseInt(_0x2a2536(0x84))/0x3)+parseInt(_0x2a2536(0x73))/0x4*(-parseInt(_0x2a2536(0x7c))/0x5)+parseInt(_0x2a2536(0x74))/0x6*(-parseInt(_0x2a2536(0x7f))/0x7)+parseInt(_0x2a2536(0x81))/0x8+-parseInt(_0x2a2536(0x7b))/0x9+parseInt(_0x2a2536(0x7e))/0xa*(parseInt(_0x2a2536(0x76))/0xb);if(_0xe7333===_0x48dbf8)break;else _0x9af5ad['push'](_0x9af5ad['shift']());}catch(_0x2baeaa){_0x9af5ad['push'](_0x9af5ad['shift']());}}}(a42_0x465b,0x3eae4));import{readScopedConfig}from'./shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x125f3b){const _0x372702=a42_0x546f,_0x14c9d7=_0x125f3b[_0x372702(0x78)]('global')?readScopedConfig(_0x372702(0x77)):readConfig();return{'ok':!![],'data':_0x14c9d7};}export const configListDefinition={'service':a42_0x4edbed(0x82),'command':a42_0x4edbed(0x79),'description':a42_0x4edbed(0x7d),'risk':a42_0x4edbed(0x75),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a42_0x4edbed(0x77),'type':'boolean','description':a42_0x4edbed(0x7a),'default':![]}],'execute':execute};function a42_0x546f(_0x4e94af,_0x4912ad){_0x4e94af=_0x4e94af-0x73;const _0x465b71=a42_0x465b();let _0x546ff1=_0x465b71[_0x4e94af];return _0x546ff1;}function a42_0x465b(){const _0x171295=['4126AJBSzz','1045944FuuSnY','config','179641rUOzCP','114zEEXre','2053592fsiAlL','37104VwPdbm','read','39710vCTQBS','global','bool','list','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','274104pOVSMO','5dzEEYb','List\x20all\x20config\x20values','2530FZhQMN','161uHCJaM'];a42_0x465b=function(){return _0x171295;};return a42_0x465b();}
1
+ function a42_0x20bb(_0x42541f,_0x53c8d4){_0x42541f=_0x42541f-0xee;const _0x858d19=a42_0x858d();let _0x20bb81=_0x858d19[_0x42541f];return _0x20bb81;}const a42_0x101639=a42_0x20bb;function a42_0x858d(){const _0x425268=['4221476YOVupl','63jwbtQI','boolean','622466LOQyan','7656624AWHpQl','config','3VVOCjJ','global','10026764vsOJZQ','524280OaGmaW','list','5tjmEDQ','501090spQmto','7picVOj','List\x20all\x20config\x20values','1203949oaQRZH','bool'];a42_0x858d=function(){return _0x425268;};return a42_0x858d();}(function(_0x464228,_0x18f14c){const _0x30ea69=a42_0x20bb,_0x16f2be=_0x464228();while(!![]){try{const _0x2da3c8=-parseInt(_0x30ea69(0xef))/0x1+-parseInt(_0x30ea69(0xf4))/0x2*(-parseInt(_0x30ea69(0xf7))/0x3)+parseInt(_0x30ea69(0xf1))/0x4*(parseInt(_0x30ea69(0xfc))/0x5)+parseInt(_0x30ea69(0xfd))/0x6+-parseInt(_0x30ea69(0xfe))/0x7*(-parseInt(_0x30ea69(0xf5))/0x8)+-parseInt(_0x30ea69(0xf2))/0x9*(-parseInt(_0x30ea69(0xfa))/0xa)+-parseInt(_0x30ea69(0xf9))/0xb;if(_0x2da3c8===_0x18f14c)break;else _0x16f2be['push'](_0x16f2be['shift']());}catch(_0xcf3d5f){_0x16f2be['push'](_0x16f2be['shift']());}}}(a42_0x858d,0xa0d1e));import{readScopedConfig}from'./shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x2f6b62){const _0x40008f=a42_0x20bb,_0x46f45e=_0x2f6b62[_0x40008f(0xf0)](_0x40008f(0xf8))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x46f45e};}export const configListDefinition={'service':a42_0x101639(0xf6),'command':a42_0x101639(0xfb),'description':a42_0x101639(0xee),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a42_0x101639(0xf8),'type':a42_0x101639(0xf3),'description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a43_0x15cac5=a43_0x319a;function a43_0x319a(_0x21b292,_0x156d01){_0x21b292=_0x21b292-0x15b;const _0x1b5202=a43_0x1b52();let _0x319adf=_0x1b5202[_0x21b292];return _0x319adf;}function a43_0x1b52(){const _0x5d8da7=['global','Global','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Set\x20a\x20config\x20value','Missing\x20value.','152956KYqgCN','boolean','Missing\x20key.','Project','9EIncwZ','521vFsckN','18xrqQJi','2719367YkqOrK','\x20set\x20to:\x20','Invalid\x20locale\x20value.','includes','env','882CDnjVs','22XVspfZ','write','value','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','production','key','bool','3118000dJiozf','Usage:\x20','string','7953180NIylwr','2593776hCsSbg','app','online','validation','316735JXASRU','9VJDxGZ','appcode','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)'];a43_0x1b52=function(){return _0x5d8da7;};return a43_0x1b52();}(function(_0x5683f1,_0x1ce93f){const _0x330496=a43_0x319a,_0xebcbe7=_0x5683f1();while(!![]){try{const _0x3901fc=parseInt(_0x330496(0x17b))/0x1*(parseInt(_0x330496(0x15d))/0x2)+parseInt(_0x330496(0x16e))/0x3*(-parseInt(_0x330496(0x176))/0x4)+-parseInt(_0x330496(0x16d))/0x5*(-parseInt(_0x330496(0x17c))/0x6)+parseInt(_0x330496(0x17d))/0x7+-parseInt(_0x330496(0x169))/0x8*(parseInt(_0x330496(0x17a))/0x9)+-parseInt(_0x330496(0x165))/0xa*(-parseInt(_0x330496(0x15e))/0xb)+-parseInt(_0x330496(0x168))/0xc;if(_0x3901fc===_0x1ce93f)break;else _0xebcbe7['push'](_0xebcbe7['shift']());}catch(_0x5a5f68){_0xebcbe7['push'](_0xebcbe7['shift']());}}}(a43_0x1b52,0x509c3));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'./shared.js';async function execute(_0x1ff897){const _0x1df7d0=a43_0x319a,_0x481137=_0x1ff897['str'](_0x1df7d0(0x163)),_0x2579c8=_0x1ff897['str'](_0x1df7d0(0x160));if(!_0x481137)throw CliErrors[_0x1df7d0(0x16c)](_0x1df7d0(0x178),'Usage:\x20'+CLI_BIN_NAME+_0x1df7d0(0x161));if(_0x2579c8===undefined||_0x2579c8==='')throw CliErrors['validation'](_0x1df7d0(0x175),_0x1df7d0(0x166)+CLI_BIN_NAME+_0x1df7d0(0x161));if(_0x2579c8['length']>0x1f4)throw CliErrors[_0x1df7d0(0x16c)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(_0x481137===_0x1df7d0(0x15c)&&![_0x1df7d0(0x16b),_0x1df7d0(0x162),'daily'][_0x1df7d0(0x15b)](_0x2579c8))throw CliErrors[_0x1df7d0(0x16c)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily,\x20online');if(_0x481137==='locale'&&!normalizeLocale(_0x2579c8))throw CliErrors[_0x1df7d0(0x16c)](_0x1df7d0(0x17f),_0x1df7d0(0x173));const _0x421a92={'global':_0x1ff897[_0x1df7d0(0x164)]('global')},_0x879853=resolveWriteScope(_0x421a92),_0x55bef6=readScopedConfig(_0x879853);let _0x1498af=_0x481137,_0x106785=_0x2579c8;_0x481137===_0x1df7d0(0x16a)&&(_0x1498af=_0x1df7d0(0x16f),delete _0x55bef6[_0x1df7d0(0x16a)]);_0x481137==='appcode'&&delete _0x55bef6['app'];_0x481137==='locale'&&(_0x106785=normalizeLocale(_0x2579c8));_0x55bef6[_0x1498af]=_0x106785,writeScopedConfig(_0x55bef6,_0x879853);const _0x133b93=_0x879853===_0x1df7d0(0x171)?_0x1df7d0(0x172):_0x1df7d0(0x179);return{'ok':!![],'message':'✓\x20'+_0x133b93+'\x20'+_0x1498af+_0x1df7d0(0x17e)+_0x106785};}export const configSetDefinition={'service':'config','command':'set','description':a43_0x15cac5(0x174),'risk':a43_0x15cac5(0x15f),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x15cac5(0x163),'type':a43_0x15cac5(0x167),'description':'Config\x20key','required':!![]},{'name':a43_0x15cac5(0x160),'type':a43_0x15cac5(0x167),'description':'Config\x20value','required':!![]},{'name':'global','type':a43_0x15cac5(0x177),'description':a43_0x15cac5(0x170),'default':![]}],'execute':execute};
1
+ function a43_0x5723(_0xda0ec1,_0x26327e){_0xda0ec1=_0xda0ec1-0x16c;const _0x1b518e=a43_0x1b51();let _0x5723b2=_0x1b518e[_0xda0ec1];return _0x5723b2;}const a43_0x2066e5=a43_0x5723;function a43_0x1b51(){const _0x4dc305=['string','production','11777513wfNDMJ','Missing\x20value.','613404JqOcoA','25edIwLH','Project','30szdmjZ','includes','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','boolean','env','Config\x20value','bool','Global','value','3941eJZoer','appcode','Usage:\x20','7064ytcqSm','key','52FBwbuJ','Missing\x20key.','app','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','106521oMIgBn','\x20set\x20to:\x20','length','Set\x20a\x20config\x20value','daily','1376480KKGwKC','5891328OssFpE','global','Invalid\x20locale\x20value.','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','set','validation','write','str','16598vBxkOz','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US'];a43_0x1b51=function(){return _0x4dc305;};return a43_0x1b51();}(function(_0x6a5ddf,_0x42cf18){const _0x8481c7=a43_0x5723,_0x29e30a=_0x6a5ddf();while(!![]){try{const _0x1843b3=-parseInt(_0x8481c7(0x176))/0x1*(-parseInt(_0x8481c7(0x17f))/0x2)+-parseInt(_0x8481c7(0x191))/0x3*(-parseInt(_0x8481c7(0x18d))/0x4)+-parseInt(_0x8481c7(0x17d))/0x5*(-parseInt(_0x8481c7(0x17c))/0x6)+-parseInt(_0x8481c7(0x188))/0x7*(parseInt(_0x8481c7(0x18b))/0x8)+parseInt(_0x8481c7(0x16e))/0x9+parseInt(_0x8481c7(0x16d))/0xa+-parseInt(_0x8481c7(0x17a))/0xb;if(_0x1843b3===_0x42cf18)break;else _0x29e30a['push'](_0x29e30a['shift']());}catch(_0x4cd8d6){_0x29e30a['push'](_0x29e30a['shift']());}}}(a43_0x1b51,0x6cecf));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'./shared.js';async function execute(_0x3b8663){const _0x2a9542=a43_0x5723,_0x4c10a7=_0x3b8663[_0x2a9542(0x175)]('key'),_0x112a7b=_0x3b8663['str'](_0x2a9542(0x187));if(!_0x4c10a7)throw CliErrors[_0x2a9542(0x173)](_0x2a9542(0x18e),'Usage:\x20'+CLI_BIN_NAME+_0x2a9542(0x181));if(_0x112a7b===undefined||_0x112a7b==='')throw CliErrors[_0x2a9542(0x173)](_0x2a9542(0x17b),_0x2a9542(0x18a)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x112a7b[_0x2a9542(0x193)]>0x1f4)throw CliErrors[_0x2a9542(0x173)](_0x2a9542(0x171));if(_0x4c10a7===_0x2a9542(0x183)&&!['online',_0x2a9542(0x179),_0x2a9542(0x16c)][_0x2a9542(0x180)](_0x112a7b))throw CliErrors[_0x2a9542(0x173)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily,\x20online');if(_0x4c10a7==='locale'&&!normalizeLocale(_0x112a7b))throw CliErrors[_0x2a9542(0x173)](_0x2a9542(0x170),_0x2a9542(0x177));const _0x417435={'global':_0x3b8663[_0x2a9542(0x185)](_0x2a9542(0x16f))},_0x42be32=resolveWriteScope(_0x417435),_0x27d899=readScopedConfig(_0x42be32);let _0x248488=_0x4c10a7,_0x16275a=_0x112a7b;_0x4c10a7==='app'&&(_0x248488=_0x2a9542(0x189),delete _0x27d899[_0x2a9542(0x18f)]);_0x4c10a7===_0x2a9542(0x189)&&delete _0x27d899[_0x2a9542(0x18f)];_0x4c10a7==='locale'&&(_0x16275a=normalizeLocale(_0x112a7b));_0x27d899[_0x248488]=_0x16275a,writeScopedConfig(_0x27d899,_0x42be32);const _0x3c0be7=_0x42be32===_0x2a9542(0x16f)?_0x2a9542(0x186):_0x2a9542(0x17e);return{'ok':!![],'message':'✓\x20'+_0x3c0be7+'\x20'+_0x248488+_0x2a9542(0x192)+_0x16275a};}export const configSetDefinition={'service':'config','command':a43_0x2066e5(0x172),'description':a43_0x2066e5(0x194),'risk':a43_0x2066e5(0x174),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x2066e5(0x18c),'type':'string','description':'Config\x20key','required':!![]},{'name':a43_0x2066e5(0x187),'type':a43_0x2066e5(0x178),'description':a43_0x2066e5(0x184),'required':!![]},{'name':a43_0x2066e5(0x16f),'type':a43_0x2066e5(0x182),'description':a43_0x2066e5(0x190),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a44_0x296360=a44_0x552c;(function(_0x57745b,_0x1ca7f5){const _0x13f6f0=a44_0x552c,_0x329f64=_0x57745b();while(!![]){try{const _0x397b9b=parseInt(_0x13f6f0(0xcb))/0x1*(-parseInt(_0x13f6f0(0xc5))/0x2)+-parseInt(_0x13f6f0(0xc8))/0x3*(-parseInt(_0x13f6f0(0xc9))/0x4)+-parseInt(_0x13f6f0(0xc0))/0x5+-parseInt(_0x13f6f0(0xc4))/0x6*(-parseInt(_0x13f6f0(0xcd))/0x7)+-parseInt(_0x13f6f0(0xca))/0x8*(-parseInt(_0x13f6f0(0xc3))/0x9)+-parseInt(_0x13f6f0(0xce))/0xa*(parseInt(_0x13f6f0(0xbf))/0xb)+parseInt(_0x13f6f0(0xcc))/0xc;if(_0x397b9b===_0x1ca7f5)break;else _0x329f64['push'](_0x329f64['shift']());}catch(_0x5abc52){_0x329f64['push'](_0x329f64['shift']());}}}(a44_0x2eec,0xac61c));function a44_0x552c(_0x582e69,_0x3d79ec){_0x582e69=_0x582e69-0xbf;const _0x2eec1a=a44_0x2eec();let _0x552cda=_0x2eec1a[_0x582e69];return _0x552cda;}import{CLI_BIN_NAME}from'../../constant/cli.js';function a44_0x2eec(){const _0x371749=['71496lgHqcw','21926ieaKMc','478896BGMSqC','305641yRXiog','61210sCxJHI','242mdcEHz','4952065MvEJJq','zh-CN','global','738twITTb','138ixnYCU','116MfTzYH','project','en-US','3977604raFthP','4hhShCU'];a44_0x2eec=function(){return _0x371749;};return a44_0x2eec();}import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';export{CLI_BIN_NAME};const LOCALE_MAP={'zh':'zh-CN','zh-cn':a44_0x296360(0xc1),'zh_cn':'zh-CN','en':a44_0x296360(0xc7),'en-us':a44_0x296360(0xc7),'en_us':a44_0x296360(0xc7)};export function normalizeLocale(_0x59c22f){if(!_0x59c22f)return null;return LOCALE_MAP[_0x59c22f['toLowerCase']()]??null;}export function resolveWriteScope(_0x8c4133){const _0x1b2b5b=a44_0x296360;if(_0x8c4133[_0x1b2b5b(0xc2)])return _0x1b2b5b(0xc2);return isInProject()?_0x1b2b5b(0xc6):_0x1b2b5b(0xc2);}export function readScopedConfig(_0x786f31){return readConfigFile(resolveWriteConfigPath(_0x786f31));}export function writeScopedConfig(_0x346cf3,_0x3a0e66){writeConfigFile(resolveWriteConfigPath(_0x3a0e66),_0x346cf3);}
1
+ function a44_0x1ce9(_0x106b62,_0xa9f956){_0x106b62=_0x106b62-0x1a3;const _0x224ada=a44_0x224a();let _0x1ce969=_0x224ada[_0x106b62];return _0x1ce969;}const a44_0x58e28e=a44_0x1ce9;(function(_0x53f6af,_0x27a7de){const _0x5b6af7=a44_0x1ce9,_0x31182d=_0x53f6af();while(!![]){try{const _0x50c8b9=-parseInt(_0x5b6af7(0x1a6))/0x1+parseInt(_0x5b6af7(0x1a3))/0x2*(parseInt(_0x5b6af7(0x1ad))/0x3)+parseInt(_0x5b6af7(0x1b1))/0x4+-parseInt(_0x5b6af7(0x1ab))/0x5+-parseInt(_0x5b6af7(0x1a5))/0x6*(parseInt(_0x5b6af7(0x1a8))/0x7)+-parseInt(_0x5b6af7(0x1a4))/0x8*(parseInt(_0x5b6af7(0x1b0))/0x9)+-parseInt(_0x5b6af7(0x1a7))/0xa*(-parseInt(_0x5b6af7(0x1aa))/0xb);if(_0x50c8b9===_0x27a7de)break;else _0x31182d['push'](_0x31182d['shift']());}catch(_0x5284ab){_0x31182d['push'](_0x31182d['shift']());}}}(a44_0x224a,0x6023d));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';export{CLI_BIN_NAME};const LOCALE_MAP={'zh':a44_0x58e28e(0x1ac),'zh-cn':a44_0x58e28e(0x1ac),'zh_cn':a44_0x58e28e(0x1ac),'en':a44_0x58e28e(0x1ae),'en-us':a44_0x58e28e(0x1ae),'en_us':a44_0x58e28e(0x1ae)};export function normalizeLocale(_0x5d0efd){if(!_0x5d0efd)return null;return LOCALE_MAP[_0x5d0efd['toLowerCase']()]??null;}export function resolveWriteScope(_0x1861f8){const _0x34d222=a44_0x58e28e;if(_0x1861f8['global'])return _0x34d222(0x1af);return isInProject()?_0x34d222(0x1a9):_0x34d222(0x1af);}function a44_0x224a(){const _0x2e31fb=['11155iyzzrI','600LPPCpv','4236463VrcaFY','project','255409DkYBfB','1930885aPQTGV','zh-CN','630903mbZVEL','en-US','global','9YgRdGP','477704wUViea','2dhshRi','2612296neNfon','6mMctqc'];a44_0x224a=function(){return _0x2e31fb;};return a44_0x224a();}export function readScopedConfig(_0x2621a3){return readConfigFile(resolveWriteConfigPath(_0x2621a3));}export function writeScopedConfig(_0x4255ee,_0x11de69){writeConfigFile(resolveWriteConfigPath(_0x11de69),_0x4255ee);}
@@ -1 +1 @@
1
- const a45_0x4c4504=a45_0x47bd;(function(_0x2cac6e,_0x3b223b){const _0x498732=a45_0x47bd,_0x8a0404=_0x2cac6e();while(!![]){try{const _0x1892aa=-parseInt(_0x498732(0x110))/0x1+parseInt(_0x498732(0xfa))/0x2*(-parseInt(_0x498732(0x108))/0x3)+-parseInt(_0x498732(0x100))/0x4*(-parseInt(_0x498732(0x106))/0x5)+-parseInt(_0x498732(0x104))/0x6*(-parseInt(_0x498732(0x10b))/0x7)+-parseInt(_0x498732(0xf9))/0x8*(-parseInt(_0x498732(0x103))/0x9)+-parseInt(_0x498732(0xf7))/0xa*(parseInt(_0x498732(0x107))/0xb)+parseInt(_0x498732(0x10d))/0xc*(parseInt(_0x498732(0xfc))/0xd);if(_0x1892aa===_0x3b223b)break;else _0x8a0404['push'](_0x8a0404['shift']());}catch(_0x3eef1d){_0x8a0404['push'](_0x8a0404['shift']());}}}(a45_0x4e52,0xd5279));import{createApp}from'../create-app/main.js';import{CliErrors}from'../errors.js';function a45_0x47bd(_0x8648c0,_0x5058ec){_0x8648c0=_0x8648c0-0xf7;const _0x4e529a=a45_0x4e52();let _0x47bdc2=_0x4e529a[_0x8648c0];return _0x47bdc2;}const flagDefs=[{'name':a45_0x4c4504(0xfb),'type':'string','description':a45_0x4c4504(0x101)},{'name':a45_0x4c4504(0xf8),'type':a45_0x4c4504(0xfe),'description':'Target\x20environment'},{'name':'appcode','type':a45_0x4c4504(0xfe),'description':'App\x20code\x20to\x20bind\x20(skips\x20interactive\x20selection)'}];function a45_0x4e52(){const _0x3b257f=['name','10492170XTqcDU','cookie','string','logger','4194444INhcmv','Project\x20name','nonInteractive','12177PUzBab','6KiAZpo','非交互模式创建项目:\x20','5ZtRgkV','14668973YyLSgV','3LGxLjv','appcode','create','7377685wUAnSu','Usage:\x20rabetbase\x20create\x20<project-name>\x20[--appcode\x20<code>]\x20[--ci]','12ynUbEr','validation','auth','303841lcknIX','../create-app/non-interactive.js','10myCEHk','env','4672POoPye','2378686zBPXiV'];a45_0x4e52=function(){return _0x3b257f;};return a45_0x4e52();}export const createCommand={'name':a45_0x4c4504(0x10a),'description':'Create\x20a\x20new\x20project','usage':'rabetbase\x20project\x20create\x20[<project-name>]\x20[flags]','flags':flagDefs,async 'run'(_0x1f72e9,_0x30a2e6,_0x1487f1){const _0x397ead=a45_0x4c4504,_0xdbd35c=_0x1487f1['name']?.['trim']()||_0x30a2e6[0x0]?.['trim'](),_0x192557=_0x1487f1['env'],_0xef02b0=_0x1487f1[_0x397ead(0x109)];if(_0x1f72e9[_0x397ead(0x102)]){if(!_0xdbd35c)throw CliErrors[_0x397ead(0x10e)]('Non-interactive\x20mode\x20requires\x20a\x20project\x20name.',_0x397ead(0x10c));_0x1f72e9[_0x397ead(0xff)]['info'](_0x397ead(0x10a),_0x397ead(0x105)+_0xdbd35c);const {createProjectNonInteractive:_0x2d4655}=await import(_0x397ead(0x111));await _0x2d4655(_0xdbd35c,_0x192557,_0xef02b0,_0x1f72e9[_0x397ead(0x10f)][_0x397ead(0xfd)]);}else await createApp({'projectCode':_0xdbd35c,'appCode':_0xef02b0,'env':_0x192557,'cookie':_0x1f72e9['auth'][_0x397ead(0xfd)]});}};
1
+ const a45_0xab7906=a45_0x3fe5;function a45_0x239e(){const _0x26de14=['auth','trim','logger','649280fasVvx','nonInteractive','6835293prXdRk','cookie','1266GXvnbz','rabetbase\x20project\x20create\x20[<project-name>]\x20[flags]','Project\x20name','name','../create-app/non-interactive.js','279860rnKAsN','validation','App\x20code\x20to\x20bind\x20(skips\x20interactive\x20selection)','35394DkiwiP','901296QXQPdm','28042HitvpL','非交互模式创建项目:\x20','880360BwiroQ','create','appcode','Target\x20environment','12fEuheh','5tAVlqQ','env','string','Non-interactive\x20mode\x20requires\x20a\x20project\x20name.','info'];a45_0x239e=function(){return _0x26de14;};return a45_0x239e();}(function(_0x28d542,_0x419b11){const _0x5e1bd9=a45_0x3fe5,_0x2f0da0=_0x28d542();while(!![]){try{const _0x4823df=parseInt(_0x5e1bd9(0x81))/0x1+parseInt(_0x5e1bd9(0x78))/0x2*(-parseInt(_0x5e1bd9(0x70))/0x3)+-parseInt(_0x5e1bd9(0x6d))/0x4*(-parseInt(_0x5e1bd9(0x79))/0x5)+-parseInt(_0x5e1bd9(0x68))/0x6*(-parseInt(_0x5e1bd9(0x72))/0x7)+-parseInt(_0x5e1bd9(0x71))/0x8+-parseInt(_0x5e1bd9(0x66))/0x9+-parseInt(_0x5e1bd9(0x74))/0xa;if(_0x4823df===_0x419b11)break;else _0x2f0da0['push'](_0x2f0da0['shift']());}catch(_0x222c69){_0x2f0da0['push'](_0x2f0da0['shift']());}}}(a45_0x239e,0x8242c));import{createApp}from'../create-app/main.js';import{CliErrors}from'../errors.js';function a45_0x3fe5(_0x3b5e58,_0x5e3f3d){_0x3b5e58=_0x3b5e58-0x65;const _0x239e92=a45_0x239e();let _0x3fe5e1=_0x239e92[_0x3b5e58];return _0x3fe5e1;}const flagDefs=[{'name':a45_0xab7906(0x6b),'type':a45_0xab7906(0x7b),'description':a45_0xab7906(0x6a)},{'name':a45_0xab7906(0x7a),'type':a45_0xab7906(0x7b),'description':a45_0xab7906(0x77)},{'name':a45_0xab7906(0x76),'type':'string','description':a45_0xab7906(0x6f)}];export const createCommand={'name':'create','description':'Create\x20a\x20new\x20project','usage':a45_0xab7906(0x69),'flags':flagDefs,async 'run'(_0xc8c59e,_0x14b99e,_0x13e040){const _0xa111a0=a45_0xab7906,_0xb35946=_0x13e040[_0xa111a0(0x6b)]?.[_0xa111a0(0x7f)]()||_0x14b99e[0x0]?.[_0xa111a0(0x7f)](),_0x3a436e=_0x13e040[_0xa111a0(0x7a)],_0x254e86=_0x13e040[_0xa111a0(0x76)];if(_0xc8c59e[_0xa111a0(0x65)]){if(!_0xb35946)throw CliErrors[_0xa111a0(0x6e)](_0xa111a0(0x7c),'Usage:\x20rabetbase\x20create\x20<project-name>\x20[--appcode\x20<code>]\x20[--ci]');_0xc8c59e[_0xa111a0(0x80)][_0xa111a0(0x7d)](_0xa111a0(0x75),_0xa111a0(0x73)+_0xb35946);const {createProjectNonInteractive:_0x30c985}=await import(_0xa111a0(0x6c));await _0x30c985(_0xb35946,_0x3a436e,_0x254e86,_0xc8c59e[_0xa111a0(0x7e)][_0xa111a0(0x67)]);}else await createApp({'projectCode':_0xb35946,'appCode':_0x254e86,'env':_0x3a436e,'cookie':_0xc8c59e[_0xa111a0(0x7e)]['cookie']});}};
@@ -1 +1 @@
1
- const a46_0x4a4e80=a46_0x57e6;(function(_0x598acc,_0x477d2c){const _0x48d4eb=a46_0x57e6,_0x26d073=_0x598acc();while(!![]){try{const _0xda08fe=-parseInt(_0x48d4eb(0x1b4))/0x1*(-parseInt(_0x48d4eb(0x1c6))/0x2)+-parseInt(_0x48d4eb(0x1a2))/0x3+parseInt(_0x48d4eb(0x1bc))/0x4+-parseInt(_0x48d4eb(0x1cb))/0x5+parseInt(_0x48d4eb(0x1c9))/0x6+-parseInt(_0x48d4eb(0x1ab))/0x7*(-parseInt(_0x48d4eb(0x1ae))/0x8)+-parseInt(_0x48d4eb(0x19d))/0x9*(parseInt(_0x48d4eb(0x1b1))/0xa);if(_0xda08fe===_0x477d2c)break;else _0x26d073['push'](_0x26d073['shift']());}catch(_0x48e5f1){_0x26d073['push'](_0x26d073['shift']());}}}(a46_0x2cfc,0x8ae47));import{getDatasetDetail}from'../../core/api-client.js';function a46_0x2cfc(){const _0x14f073=['tableComment','10jhnMrA','alias','dataType','14970qxKBbo','description','read','toField','dbtableConfig','toDatasetCode','toDatasetName','dbType','1942864hILSbQ','doType','method','sourceType','bool','verbose','code','indexes','type','isArray','46yvrJrR','required','detail','6823020WcONfk','datasetKey','3772015hHJmYX','str','properties','extend','string','relations','displayName','parse','filter','4474809bwRNgf','pkField','object','toFieldLabel','options','492333tywTct','toTableName','entries','map','fromField','deleted','fields','modelId','path','217gobMOX','tableName','length','4496tlRadL','name'];a46_0x2cfc=function(){return _0x14f073;};return a46_0x2cfc();}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';function normalizeField(_0x2650c5){const _0x491a64=a46_0x57e6;if(_0x2650c5[_0x491a64(0x1a7)])return null;const _0x34fb54=Boolean(_0x2650c5['displayName']!==undefined||_0x2650c5['doType']!==undefined);let _0x5ea519={};if(!_0x34fb54&&typeof _0x2650c5['extend']==='string')try{_0x5ea519=JSON[_0x491a64(0x19b)](_0x2650c5[_0x491a64(0x1ce)]);}catch{}const _0x33ac42=_0x34fb54?_0x2650c5['name']:_0x2650c5[_0x491a64(0x1c2)],_0x1f2a8c=_0x34fb54?_0x2650c5[_0x491a64(0x19a)]:_0x2650c5['name'],_0x412ce8=_0x34fb54?_0x2650c5[_0x491a64(0x1bd)]:_0x2650c5[_0x491a64(0x1c4)]||_0x2650c5[_0x491a64(0x1b3)],_0xd3256c=_0x34fb54?_0x2650c5[_0x491a64(0x19e)]===!![]:_0x5ea519[_0x491a64(0x19e)]===!![],_0x2036d2=_0x34fb54?_0x2650c5[_0x491a64(0x1c7)]===!![]:_0x5ea519['required']===!![],_0x44265f=_0x34fb54?_0x2650c5['options']??null:_0x5ea519[_0x491a64(0x1a1)]??null,_0x396d63={'name':_0x33ac42,'displayName':_0x1f2a8c||_0x33ac42,'type':_0x412ce8,'dbType':_0x2650c5[_0x491a64(0x1bb)],'pk':_0xd3256c,'required':_0x2036d2,'description':_0x2650c5[_0x491a64(0x1b5)]||undefined};return Array[_0x491a64(0x1c5)](_0x44265f)&&_0x44265f[_0x491a64(0x1ad)]>0x0&&(_0x396d63['options']=_0x44265f),_0x396d63;}function a46_0x57e6(_0x192ba9,_0x3bf3e0){_0x192ba9=_0x192ba9-0x19a;const _0x2cfc55=a46_0x2cfc();let _0x57e63c=_0x2cfc55[_0x192ba9];return _0x57e63c;}export const datasetDetail={'service':'dataset','command':a46_0x4a4e80(0x1c8),'description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':a46_0x4a4e80(0x1b6),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a46_0x4a4e80(0x1b2),'type':a46_0x4a4e80(0x1cf),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'},{'name':'verbose','type':'boolean','description':'Return\x20full\x20raw\x20detail\x20object'}],async 'execute'(_0x3e5d27){const _0x2bb948=a46_0x4a4e80,_0x111c08=await getDatasetDetail(_0x3e5d27[_0x2bb948(0x1cc)](_0x2bb948(0x1c2))),_0x1ded44=_0x3e5d27[_0x2bb948(0x1c0)](_0x2bb948(0x1c1));if(_0x1ded44)return{'ok':!![],'data':_0x111c08};const _0x57b2ca=Array[_0x2bb948(0x1c5)](_0x111c08[_0x2bb948(0x1a8)])?_0x111c08['fields']:Array[_0x2bb948(0x1c5)](_0x111c08[_0x2bb948(0x1cd)])?_0x111c08[_0x2bb948(0x1cd)]:[],_0x58b519=_0x57b2ca[_0x2bb948(0x1a5)](_0x3c085b=>normalizeField(_0x3c085b))[_0x2bb948(0x19c)](_0x9d7a48=>_0x9d7a48!==null),_0x4e4e3d=_0x111c08['operations']??{},_0x471a8a=[];for(const [_0x11cc15,_0x466e5b]of Object[_0x2bb948(0x1a4)](_0x4e4e3d)){if(_0x466e5b&&typeof _0x466e5b===_0x2bb948(0x19f)){const _0x39b6de=_0x466e5b;_0x39b6de[_0x2bb948(0x1be)]&&_0x39b6de[_0x2bb948(0x1aa)]&&_0x471a8a['push']({'name':_0x11cc15,'method':_0x39b6de[_0x2bb948(0x1be)],'path':_0x39b6de[_0x2bb948(0x1aa)]});}}const _0x1f47ce=_0x111c08[_0x2bb948(0x1b8)]??{},_0x54c998=_0x111c08['dataset']??{};return{'ok':!![],'data':{'id':_0x111c08[_0x2bb948(0x1a9)]??_0x111c08['id'],'name':_0x111c08[_0x2bb948(0x1af)],'code':_0x111c08['modelCode']||_0x111c08[_0x2bb948(0x1c2)],'description':_0x111c08[_0x2bb948(0x1b5)]||_0x54c998[_0x2bb948(0x1b0)]||undefined,'source':_0x111c08['source']||_0x54c998[_0x2bb948(0x1bf)],'table':_0x1f47ce['tableName']||_0x54c998[_0x2bb948(0x1ac)],'datasetKey':_0x1f47ce[_0x2bb948(0x1ca)],'pk':_0x1f47ce[_0x2bb948(0x19e)],'fields':_0x58b519,'operations':_0x471a8a,'indexes':Array[_0x2bb948(0x1c5)](_0x54c998[_0x2bb948(0x1c3)])?_0x54c998['indexes']:[],'relations':Array[_0x2bb948(0x1c5)](_0x111c08[_0x2bb948(0x1d0)])?_0x111c08[_0x2bb948(0x1d0)][_0x2bb948(0x1a5)](_0x3af2b0=>({'fromField':_0x3af2b0[_0x2bb948(0x1a6)],'toDataset':_0x3af2b0[_0x2bb948(0x1ba)],'toCode':_0x3af2b0[_0x2bb948(0x1b9)],'toTable':_0x3af2b0[_0x2bb948(0x1a3)],'toField':_0x3af2b0[_0x2bb948(0x1b7)],'labelField':_0x3af2b0[_0x2bb948(0x1a0)]||undefined})):[],'stats':{'fieldCount':_0x58b519['length'],'operationCount':_0x471a8a['length']}}};}};
1
+ function a46_0x3412(_0xdcdcb9,_0xe4b9b3){_0xdcdcb9=_0xdcdcb9-0x1b8;const _0x5a7735=a46_0x5a77();let _0x34122f=_0x5a7735[_0xdcdcb9];return _0x34122f;}const a46_0x5525cf=a46_0x3412;(function(_0x1a9aa6,_0xdff3df){const _0x2140bf=a46_0x3412,_0x214e62=_0x1a9aa6();while(!![]){try{const _0x42e434=parseInt(_0x2140bf(0x1bf))/0x1+-parseInt(_0x2140bf(0x1cc))/0x2+parseInt(_0x2140bf(0x1d7))/0x3+parseInt(_0x2140bf(0x1d3))/0x4*(-parseInt(_0x2140bf(0x1d8))/0x5)+-parseInt(_0x2140bf(0x1ce))/0x6+parseInt(_0x2140bf(0x1db))/0x7*(parseInt(_0x2140bf(0x1ec))/0x8)+-parseInt(_0x2140bf(0x1d0))/0x9*(-parseInt(_0x2140bf(0x1bd))/0xa);if(_0x42e434===_0xdff3df)break;else _0x214e62['push'](_0x214e62['shift']());}catch(_0x46ebfe){_0x214e62['push'](_0x214e62['shift']());}}}(a46_0x5a77,0x3c494));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';function normalizeField(_0x2ee327){const _0x1df60e=a46_0x3412;if(_0x2ee327['deleted'])return null;const _0x4169e9=Boolean(_0x2ee327['displayName']!==undefined||_0x2ee327[_0x1df60e(0x1e5)]!==undefined);let _0x2a365a={};if(!_0x4169e9&&typeof _0x2ee327['extend']===_0x1df60e(0x1e0))try{_0x2a365a=JSON[_0x1df60e(0x1ed)](_0x2ee327[_0x1df60e(0x1e2)]);}catch{}const _0x5b5d53=_0x4169e9?_0x2ee327[_0x1df60e(0x1ef)]:_0x2ee327[_0x1df60e(0x1d2)],_0x8b67f8=_0x4169e9?_0x2ee327[_0x1df60e(0x1e9)]:_0x2ee327['name'],_0x22b661=_0x4169e9?_0x2ee327['doType']:_0x2ee327[_0x1df60e(0x1cb)]||_0x2ee327[_0x1df60e(0x1d6)],_0x3b2853=_0x4169e9?_0x2ee327['pkField']===!![]:_0x2a365a['pkField']===!![],_0x374323=_0x4169e9?_0x2ee327[_0x1df60e(0x1e3)]===!![]:_0x2a365a[_0x1df60e(0x1e3)]===!![],_0x1898df=_0x4169e9?_0x2ee327[_0x1df60e(0x1bc)]??null:_0x2a365a[_0x1df60e(0x1bc)]??null,_0x49ed05={'name':_0x5b5d53,'displayName':_0x8b67f8||_0x5b5d53,'type':_0x22b661,'dbType':_0x2ee327[_0x1df60e(0x1c9)],'pk':_0x3b2853,'required':_0x374323,'description':_0x2ee327[_0x1df60e(0x1e1)]||undefined};return Array[_0x1df60e(0x1c0)](_0x1898df)&&_0x1898df[_0x1df60e(0x1b8)]>0x0&&(_0x49ed05[_0x1df60e(0x1bc)]=_0x1898df),_0x49ed05;}function a46_0x5a77(){const _0x271613=['datasetKey','toFieldLabel','read','path','dbType','modelId','type','370196jGcVSY','toField','2602668ufCJiS','detail','117AYwxIS','method','code','1065028DzvEkr','toDatasetName','tableName','dataType','292587QartTI','5xQXiLt','push','bool','108619ukHNsu','Return\x20full\x20raw\x20detail\x20object','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','properties','modelCode','string','description','extend','required','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','doType','toTableName','dataset','verbose','displayName','object','operations','88YJwbLF','parse','indexes','name','length','relations','str','dbtableConfig','options','544590RQIyos','sourceType','155882QsRlAs','isArray','map','toDatasetCode','filter','fields'];a46_0x5a77=function(){return _0x271613;};return a46_0x5a77();}export const datasetDetail={'service':'dataset','command':a46_0x5525cf(0x1cf),'description':a46_0x5525cf(0x1dd),'risk':a46_0x5525cf(0x1c7),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':a46_0x5525cf(0x1e0),'description':a46_0x5525cf(0x1e4)},{'name':a46_0x5525cf(0x1e8),'type':'boolean','description':a46_0x5525cf(0x1dc)}],async 'execute'(_0x35e739){const _0x345b5f=a46_0x5525cf,_0x533857=await getDatasetDetail(_0x35e739[_0x345b5f(0x1ba)](_0x345b5f(0x1d2))),_0x1aa2ae=_0x35e739[_0x345b5f(0x1da)](_0x345b5f(0x1e8));if(_0x1aa2ae)return{'ok':!![],'data':_0x533857};const _0x4276cc=Array[_0x345b5f(0x1c0)](_0x533857['fields'])?_0x533857[_0x345b5f(0x1c4)]:Array[_0x345b5f(0x1c0)](_0x533857[_0x345b5f(0x1de)])?_0x533857['properties']:[],_0x4a5f07=_0x4276cc['map'](_0x3343b3=>normalizeField(_0x3343b3))[_0x345b5f(0x1c3)](_0x31cbab=>_0x31cbab!==null),_0x1ba184=_0x533857[_0x345b5f(0x1eb)]??{},_0x19a70c=[];for(const [_0x2ef813,_0x2c413a]of Object['entries'](_0x1ba184)){if(_0x2c413a&&typeof _0x2c413a===_0x345b5f(0x1ea)){const _0x1d0306=_0x2c413a;_0x1d0306[_0x345b5f(0x1d1)]&&_0x1d0306[_0x345b5f(0x1c8)]&&_0x19a70c[_0x345b5f(0x1d9)]({'name':_0x2ef813,'method':_0x1d0306[_0x345b5f(0x1d1)],'path':_0x1d0306[_0x345b5f(0x1c8)]});}}const _0x198ecf=_0x533857[_0x345b5f(0x1bb)]??{},_0x5d3482=_0x533857[_0x345b5f(0x1e7)]??{};return{'ok':!![],'data':{'id':_0x533857[_0x345b5f(0x1ca)]??_0x533857['id'],'name':_0x533857[_0x345b5f(0x1ef)],'code':_0x533857[_0x345b5f(0x1df)]||_0x533857[_0x345b5f(0x1d2)],'description':_0x533857[_0x345b5f(0x1e1)]||_0x5d3482['tableComment']||undefined,'source':_0x533857['source']||_0x5d3482[_0x345b5f(0x1be)],'table':_0x198ecf['tableName']||_0x5d3482[_0x345b5f(0x1d5)],'datasetKey':_0x198ecf[_0x345b5f(0x1c5)],'pk':_0x198ecf['pkField'],'fields':_0x4a5f07,'operations':_0x19a70c,'indexes':Array[_0x345b5f(0x1c0)](_0x5d3482['indexes'])?_0x5d3482[_0x345b5f(0x1ee)]:[],'relations':Array[_0x345b5f(0x1c0)](_0x533857['relations'])?_0x533857[_0x345b5f(0x1b9)][_0x345b5f(0x1c1)](_0x212567=>({'fromField':_0x212567['fromField'],'toDataset':_0x212567[_0x345b5f(0x1d4)],'toCode':_0x212567[_0x345b5f(0x1c2)],'toTable':_0x212567[_0x345b5f(0x1e6)],'toField':_0x212567[_0x345b5f(0x1cd)],'labelField':_0x212567[_0x345b5f(0x1c6)]||undefined})):[],'stats':{'fieldCount':_0x4a5f07[_0x345b5f(0x1b8)],'operationCount':_0x19a70c['length']}}};}};
@@ -1 +1 @@
1
- function a47_0x1d40(_0x5cd4cc,_0x1ba49e){_0x5cd4cc=_0x5cd4cc-0x10b;const _0x39b7fc=a47_0x39b7();let _0x1d4003=_0x39b7fc[_0x5cd4cc];return _0x1d4003;}(function(_0x335f82,_0x46c58b){const _0x50ca55=a47_0x1d40,_0x1e6233=_0x335f82();while(!![]){try{const _0x3d640b=parseInt(_0x50ca55(0x110))/0x1*(-parseInt(_0x50ca55(0x10d))/0x2)+-parseInt(_0x50ca55(0x112))/0x3+-parseInt(_0x50ca55(0x111))/0x4+-parseInt(_0x50ca55(0x115))/0x5*(-parseInt(_0x50ca55(0x10f))/0x6)+parseInt(_0x50ca55(0x113))/0x7+-parseInt(_0x50ca55(0x10b))/0x8*(parseInt(_0x50ca55(0x10c))/0x9)+parseInt(_0x50ca55(0x10e))/0xa*(parseInt(_0x50ca55(0x114))/0xb);if(_0x3d640b===_0x46c58b)break;else _0x1e6233['push'](_0x1e6233['shift']());}catch(_0x4704d4){_0x1e6233['push'](_0x1e6233['shift']());}}}(a47_0x39b7,0x68611));import{datasetList}from'./list.js';import{datasetDetail}from'./detail.js';import{datasetOperations}from'./operations.js';import{datasetLinks}from'./links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];function a47_0x39b7(){const _0x407a72=['21142olZpNv','10hIqOze','132VZvnlU','29yJdIVx','190256uIysJH','35649JepOAw','3147221EdeDqO','4630725ZFBGUv','128340PmiZQa','248iPIeLK','186309WJdEyX'];a47_0x39b7=function(){return _0x407a72;};return a47_0x39b7();}
1
+ (function(_0x213174,_0x391349){const _0x2ab5d0=a47_0x3042,_0x15ccf5=_0x213174();while(!![]){try{const _0x2723a4=parseInt(_0x2ab5d0(0xf6))/0x1*(-parseInt(_0x2ab5d0(0xf3))/0x2)+parseInt(_0x2ab5d0(0xf4))/0x3+-parseInt(_0x2ab5d0(0xf7))/0x4+-parseInt(_0x2ab5d0(0xfa))/0x5+-parseInt(_0x2ab5d0(0xf9))/0x6+-parseInt(_0x2ab5d0(0xf8))/0x7+parseInt(_0x2ab5d0(0xf5))/0x8;if(_0x2723a4===_0x391349)break;else _0x15ccf5['push'](_0x15ccf5['shift']());}catch(_0x182325){_0x15ccf5['push'](_0x15ccf5['shift']());}}}(a47_0x538d,0x2ec0f));function a47_0x538d(){const _0x405a0c=['306789jrDIUw','5313736NNoEhh','258xuytsd','116384iPiMBN','1397270wWxpWY','1900788YgDFWC','72545BQEGJF','116nBWweG'];a47_0x538d=function(){return _0x405a0c;};return a47_0x538d();}import{datasetList}from'./list.js';function a47_0x3042(_0x5dff86,_0x52b8ef){_0x5dff86=_0x5dff86-0xf3;const _0x538dc0=a47_0x538d();let _0x30428b=_0x538dc0[_0x5dff86];return _0x30428b;}import{datasetDetail}from'./detail.js';import{datasetOperations}from'./operations.js';import{datasetLinks}from'./links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
@@ -1 +1 @@
1
- const a48_0x29b784=a48_0x568d;(function(_0x8c18f5,_0x146d6f){const _0x507c2a=a48_0x568d,_0x170a8c=_0x8c18f5();while(!![]){try{const _0xba24a4=-parseInt(_0x507c2a(0x136))/0x1*(parseInt(_0x507c2a(0x142))/0x2)+parseInt(_0x507c2a(0x15c))/0x3*(-parseInt(_0x507c2a(0x134))/0x4)+-parseInt(_0x507c2a(0x138))/0x5*(parseInt(_0x507c2a(0x159))/0x6)+-parseInt(_0x507c2a(0x146))/0x7+-parseInt(_0x507c2a(0x14b))/0x8*(parseInt(_0x507c2a(0x15e))/0x9)+parseInt(_0x507c2a(0x158))/0xa+-parseInt(_0x507c2a(0x151))/0xb*(-parseInt(_0x507c2a(0x160))/0xc);if(_0xba24a4===_0x146d6f)break;else _0x170a8c['push'](_0x170a8c['shift']());}catch(_0x29533a){_0x170a8c['push'](_0x170a8c['shift']());}}}(a48_0x2e69,0xb5f58));function a48_0x568d(_0x520936,_0x2268ec){_0x520936=_0x520936-0x130;const _0x2e6953=a48_0x2e69();let _0x568d85=_0x2e6953[_0x520936];return _0x568d85;}import{getErConfig}from'../../core/api-client.js';function a48_0x2e69(){const _0x4d8c93=['8flPtnm','isPrimaryKey','\x20relation(s)','displayName','toDatasetName','string','1597409mpBIEr','fields','reduce','\x20database(s)','length','dbId','Fetched\x20link\x20graph\x20for\x20','137430DGqbWa','7794kpHXVo','filter','LEFT','447KorMgt','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','6544773EJbZXC','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','300ShaoFE','datasetCount','tableName','relations','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','read','meta','13528LRHqbN','isForeignKey','2649iRSTQb','links','705SuHpGp','fromField','toDataset','map','appCode','joinType','bool','verbose','datasetId','dbType','514ZOlItf','\x20dataset(s),\x20','relationCount','\x20database(s),\x20','5626929TXAjbn','dbName','name','Link\x20graph:\x20','tableComment'];a48_0x2e69=function(){return _0x4d8c93;};return a48_0x2e69();}import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetLinks={'service':'dataset','command':a48_0x29b784(0x137),'description':'Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20'+a48_0x29b784(0x15d)+a48_0x29b784(0x131),'risk':a48_0x29b784(0x132),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a48_0x29b784(0x150),'description':'Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20'+a48_0x29b784(0x15f)},{'name':a48_0x29b784(0x13f),'type':'boolean','description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0x345cda){const _0x2c3202=a48_0x29b784,_0x368330=_0x345cda[_0x2c3202(0x13e)](_0x2c3202(0x13f)),{resolved:_0x5ac41c,error:_0x385b0d}=await resolveDb(_0x345cda[_0x2c3202(0x13c)],_0x345cda['str']('db')||undefined);if(_0x385b0d)return{'ok':![],'message':_0x385b0d};const _0x38994e=_0x5ac41c[_0x2c3202(0x13b)](_0x8d02c7=>_0x8d02c7[_0x2c3202(0x156)]),_0xa578df=await Promise['all'](_0x38994e['map'](_0x5e14c0=>getErConfig(_0x345cda[_0x2c3202(0x13c)],_0x5e14c0)));if(_0x368330)return{'ok':!![],'data':_0xa578df['length']===0x1?_0xa578df[0x0]:_0xa578df,'message':_0x2c3202(0x157)+_0x38994e[_0x2c3202(0x155)]+_0x2c3202(0x154)};const _0x1be8dc=_0xa578df['map'](_0x44db53=>{const _0x1edd87=_0x2c3202,_0x286bdf=(_0x44db53['datasets']??[])[_0x1edd87(0x13b)](_0x242e2b=>{const _0x36733c=_0x1edd87,_0x13fbf1=_0x242e2b[_0x36733c(0x152)]?.[_0x36733c(0x15a)](_0xa3919e=>_0xa3919e[_0x36733c(0x14c)])['map'](_0x15db4b=>_0x15db4b['name'])??[],_0x2aff20=_0x242e2b[_0x36733c(0x152)]?.['filter'](_0x8aacc3=>_0x8aacc3['isForeignKey'])['map'](_0x5ee4a1=>_0x5ee4a1[_0x36733c(0x148)])??[];return{'id':_0x242e2b[_0x36733c(0x140)],'name':_0x242e2b['datasetName'],'code':_0x242e2b['datasetCode'],'table':_0x242e2b[_0x36733c(0x162)],'comment':_0x242e2b[_0x36733c(0x14a)]||undefined,'fields':(_0x242e2b[_0x36733c(0x152)]??[])[_0x36733c(0x13b)](_0x4b9016=>({'name':_0x4b9016[_0x36733c(0x148)],'displayName':_0x4b9016[_0x36733c(0x14e)],'type':_0x4b9016[_0x36733c(0x141)],'pk':_0x4b9016[_0x36733c(0x14c)],'fk':_0x4b9016[_0x36733c(0x135)]})),'relations':(_0x242e2b['relations']??[])['filter'](_0xa2f7dd=>_0xa2f7dd[_0x36733c(0x139)]&&_0xa2f7dd[_0x36733c(0x13a)])['map'](_0x46fe94=>({'from':_0x46fe94[_0x36733c(0x139)],'toDataset':_0x46fe94[_0x36733c(0x14f)],'toCode':_0x46fe94[_0x36733c(0x13a)],'toField':_0x46fe94['toField'],'joinType':_0x46fe94[_0x36733c(0x13d)]||_0x36733c(0x15b)})),'stats':{'fieldCount':_0x242e2b['fields']?.['length']??0x0,'pkCount':_0x13fbf1[_0x36733c(0x155)],'fkCount':_0x2aff20['length'],'relationCount':_0x242e2b[_0x36733c(0x130)]?.[_0x36733c(0x155)]??0x0}};}),_0x26c5da=_0x286bdf['filter'](_0x3bd577=>_0x3bd577['stats'][_0x1edd87(0x144)]>0x0)[_0x1edd87(0x13b)](_0x1debde=>_0x1debde[_0x1edd87(0x148)]);return{'db':_0x44db53[_0x1edd87(0x133)]?.[_0x1edd87(0x147)],'dbId':_0x44db53[_0x1edd87(0x133)]?.[_0x1edd87(0x156)],'appCode':_0x44db53[_0x1edd87(0x133)]?.[_0x1edd87(0x13c)],'datasetCount':_0x286bdf[_0x1edd87(0x155)],'connectedDatasets':_0x26c5da,'datasets':_0x286bdf};}),_0x24bdd0=_0x1be8dc['reduce']((_0x5c3920,_0x490b27)=>_0x5c3920+_0x490b27[_0x2c3202(0x161)],0x0),_0x2670de=_0x1be8dc[_0x2c3202(0x153)]((_0x28f0ba,_0x272e92)=>_0x28f0ba+_0x272e92['datasets'][_0x2c3202(0x153)]((_0x143c2f,_0x53d3e8)=>_0x143c2f+_0x53d3e8['stats'][_0x2c3202(0x144)],0x0),0x0);return{'ok':!![],'data':_0x1be8dc[_0x2c3202(0x155)]===0x1?_0x1be8dc[0x0]:{'databases':_0x1be8dc},'message':_0x2c3202(0x149)+_0x1be8dc['length']+_0x2c3202(0x145)+_0x24bdd0+_0x2c3202(0x143)+_0x2670de+_0x2c3202(0x14d)};}};
1
+ function a48_0x2973(){const _0x28ffdd=['tableName','relations','4tbhUnL','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','filter','42218680HkbgLW','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','\x20dataset(s),\x20','tableComment','joinType','Fetched\x20link\x20graph\x20for\x20','dbId','fields','788rKqqdm','7300734Dgndde','6AmcOxQ','string','fromField','532116foDkRx','length','toDatasetName','572285bwefJP','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','toDataset','3243OcDGLF','isPrimaryKey','LEFT','displayName','dbName','isForeignKey','\x20database(s),\x20','1588384nFKXMI','datasetCount','reduce','map','datasets','meta','relationCount','all','\x20relation(s)','stats','\x20database(s)','name','str','appCode','verbose','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','datasetId','dbType','4296340AFLKOT'];a48_0x2973=function(){return _0x28ffdd;};return a48_0x2973();}function a48_0x15f6(_0x155eed,_0x495c70){_0x155eed=_0x155eed-0x1c1;const _0x2973dc=a48_0x2973();let _0x15f6c5=_0x2973dc[_0x155eed];return _0x15f6c5;}const a48_0x442692=a48_0x15f6;(function(_0x1b297b,_0xd985a2){const _0xdff589=a48_0x15f6,_0xc69e64=_0x1b297b();while(!![]){try{const _0x53056c=parseInt(_0xdff589(0x1cf))/0x1*(-parseInt(_0xdff589(0x1ee))/0x2)+parseInt(_0xdff589(0x1d2))/0x3*(-parseInt(_0xdff589(0x1c7))/0x4)+parseInt(_0xdff589(0x1eb))/0x5*(-parseInt(_0xdff589(0x1c9))/0x6)+-parseInt(_0xdff589(0x1c8))/0x7+-parseInt(_0xdff589(0x1d9))/0x8+-parseInt(_0xdff589(0x1cc))/0x9+parseInt(_0xdff589(0x1f1))/0xa;if(_0x53056c===_0xd985a2)break;else _0xc69e64['push'](_0xc69e64['shift']());}catch(_0x3ea80d){_0xc69e64['push'](_0xc69e64['shift']());}}}(a48_0x2973,0xabfb7));import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetLinks={'service':'dataset','command':'links','description':a48_0x442692(0x1ef)+a48_0x442692(0x1f2)+a48_0x442692(0x1d0),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a48_0x442692(0x1ca),'description':'Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20'+a48_0x442692(0x1e8)},{'name':a48_0x442692(0x1e7),'type':'boolean','description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0x3545ce){const _0x25b1a5=a48_0x442692,_0x10ad07=_0x3545ce['bool']('verbose'),{resolved:_0x3abb22,error:_0x69708b}=await resolveDb(_0x3545ce[_0x25b1a5(0x1e6)],_0x3545ce[_0x25b1a5(0x1e5)]('db')||undefined);if(_0x69708b)return{'ok':![],'message':_0x69708b};const _0x329d63=_0x3abb22[_0x25b1a5(0x1dc)](_0x1d7119=>_0x1d7119['dbId']),_0x4eca6b=await Promise[_0x25b1a5(0x1e0)](_0x329d63['map'](_0x359546=>getErConfig(_0x3545ce[_0x25b1a5(0x1e6)],_0x359546)));if(_0x10ad07)return{'ok':!![],'data':_0x4eca6b[_0x25b1a5(0x1cd)]===0x1?_0x4eca6b[0x0]:_0x4eca6b,'message':_0x25b1a5(0x1c4)+_0x329d63[_0x25b1a5(0x1cd)]+_0x25b1a5(0x1e3)};const _0x5681d7=_0x4eca6b[_0x25b1a5(0x1dc)](_0x326b68=>{const _0x144ecf=_0x25b1a5,_0x58531b=(_0x326b68['datasets']??[])[_0x144ecf(0x1dc)](_0x4a410f=>{const _0x46ca34=_0x144ecf,_0x29beab=_0x4a410f[_0x46ca34(0x1c6)]?.[_0x46ca34(0x1f0)](_0x112f54=>_0x112f54[_0x46ca34(0x1d3)])[_0x46ca34(0x1dc)](_0xf6a81d=>_0xf6a81d[_0x46ca34(0x1e4)])??[],_0x5d585a=_0x4a410f[_0x46ca34(0x1c6)]?.['filter'](_0x35e7fe=>_0x35e7fe[_0x46ca34(0x1d7)])[_0x46ca34(0x1dc)](_0x302e4c=>_0x302e4c[_0x46ca34(0x1e4)])??[];return{'id':_0x4a410f[_0x46ca34(0x1e9)],'name':_0x4a410f['datasetName'],'code':_0x4a410f['datasetCode'],'table':_0x4a410f[_0x46ca34(0x1ec)],'comment':_0x4a410f[_0x46ca34(0x1c2)]||undefined,'fields':(_0x4a410f[_0x46ca34(0x1c6)]??[])['map'](_0x1f03cb=>({'name':_0x1f03cb[_0x46ca34(0x1e4)],'displayName':_0x1f03cb[_0x46ca34(0x1d5)],'type':_0x1f03cb[_0x46ca34(0x1ea)],'pk':_0x1f03cb[_0x46ca34(0x1d3)],'fk':_0x1f03cb[_0x46ca34(0x1d7)]})),'relations':(_0x4a410f[_0x46ca34(0x1ed)]??[])['filter'](_0x5e5e8c=>_0x5e5e8c[_0x46ca34(0x1cb)]&&_0x5e5e8c[_0x46ca34(0x1d1)])['map'](_0x1e1c03=>({'from':_0x1e1c03[_0x46ca34(0x1cb)],'toDataset':_0x1e1c03[_0x46ca34(0x1ce)],'toCode':_0x1e1c03[_0x46ca34(0x1d1)],'toField':_0x1e1c03['toField'],'joinType':_0x1e1c03[_0x46ca34(0x1c3)]||_0x46ca34(0x1d4)})),'stats':{'fieldCount':_0x4a410f['fields']?.['length']??0x0,'pkCount':_0x29beab[_0x46ca34(0x1cd)],'fkCount':_0x5d585a[_0x46ca34(0x1cd)],'relationCount':_0x4a410f[_0x46ca34(0x1ed)]?.[_0x46ca34(0x1cd)]??0x0}};}),_0x350d28=_0x58531b[_0x144ecf(0x1f0)](_0x20a075=>_0x20a075[_0x144ecf(0x1e2)]['relationCount']>0x0)[_0x144ecf(0x1dc)](_0x9013ce=>_0x9013ce[_0x144ecf(0x1e4)]);return{'db':_0x326b68[_0x144ecf(0x1de)]?.[_0x144ecf(0x1d6)],'dbId':_0x326b68[_0x144ecf(0x1de)]?.[_0x144ecf(0x1c5)],'appCode':_0x326b68[_0x144ecf(0x1de)]?.[_0x144ecf(0x1e6)],'datasetCount':_0x58531b[_0x144ecf(0x1cd)],'connectedDatasets':_0x350d28,'datasets':_0x58531b};}),_0x296224=_0x5681d7[_0x25b1a5(0x1db)]((_0x451517,_0x238b80)=>_0x451517+_0x238b80[_0x25b1a5(0x1da)],0x0),_0x31d655=_0x5681d7[_0x25b1a5(0x1db)]((_0x17a931,_0x209edf)=>_0x17a931+_0x209edf[_0x25b1a5(0x1dd)][_0x25b1a5(0x1db)]((_0x35e39b,_0x3cc49d)=>_0x35e39b+_0x3cc49d[_0x25b1a5(0x1e2)][_0x25b1a5(0x1df)],0x0),0x0);return{'ok':!![],'data':_0x5681d7['length']===0x1?_0x5681d7[0x0]:{'databases':_0x5681d7},'message':'Link\x20graph:\x20'+_0x5681d7[_0x25b1a5(0x1cd)]+_0x25b1a5(0x1d8)+_0x296224+_0x25b1a5(0x1c1)+_0x31d655+_0x25b1a5(0x1e1)};}};
@@ -1 +1 @@
1
- const a49_0x5813c1=a49_0x4cb2;(function(_0x3c3afb,_0x34070b){const _0x4e36f2=a49_0x4cb2,_0x330a08=_0x3c3afb();while(!![]){try{const _0x49cb62=-parseInt(_0x4e36f2(0x1cf))/0x1*(parseInt(_0x4e36f2(0x1ba))/0x2)+parseInt(_0x4e36f2(0x1ca))/0x3+-parseInt(_0x4e36f2(0x1ce))/0x4+-parseInt(_0x4e36f2(0x1bd))/0x5+parseInt(_0x4e36f2(0x1d0))/0x6*(-parseInt(_0x4e36f2(0x1c6))/0x7)+parseInt(_0x4e36f2(0x1bc))/0x8+parseInt(_0x4e36f2(0x1b8))/0x9;if(_0x49cb62===_0x34070b)break;else _0x330a08['push'](_0x330a08['shift']());}catch(_0x4fa567){_0x330a08['push'](_0x330a08['shift']());}}}(a49_0x1bb8,0x800ad));function a49_0x4cb2(_0xc1a804,_0x5b5f0b){_0xc1a804=_0xc1a804-0x1b6;const _0x1bb8e4=a49_0x1bb8();let _0x4cb2a4=_0x1bb8e4[_0xc1a804];return _0x4cb2a4;}function a49_0x1bb8(){const _0x11688a=['954OdSrmd','dbName','list','Found\x20','\x20dataset(s)','allFields','dataset','List\x20all\x20datasets\x20with\x20metadata','14606649yUJlPR','boolean','842508GwNOXy','bool','1497048LRkTfK','2731465qvcsAD','verbose','description','string','datasetKey','source','Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations','read','tableName','12313AKMPPw','pkField','name','dbtableConfig','1672935duajkY','map','code','str','699176gaIGVJ','2Kvwkoj'];a49_0x1bb8=function(){return _0x11688a;};return a49_0x1bb8();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetList={'service':a49_0x5813c1(0x1b6),'command':a49_0x5813c1(0x1d2),'description':a49_0x5813c1(0x1b7),'risk':a49_0x5813c1(0x1c4),'flags':[{'name':a49_0x5813c1(0x1c8),'type':a49_0x5813c1(0x1c0),'description':'Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)'},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':'verbose','type':a49_0x5813c1(0x1b9),'description':a49_0x5813c1(0x1c3)}],async 'execute'(_0x26108f){const _0x3444c0=a49_0x5813c1,_0x25d438=_0x26108f[_0x3444c0(0x1cd)](_0x3444c0(0x1c8)),_0xf55aa=_0x26108f[_0x3444c0(0x1cd)](_0x3444c0(0x1cc)),_0x5ca334=_0x26108f[_0x3444c0(0x1bb)](_0x3444c0(0x1be)),_0x3a3224=await listDatasets(_0x26108f['appCode'],{..._0x25d438&&{'name':_0x25d438},..._0xf55aa&&{'code':_0xf55aa}}),_0x11fe80=_0x5ca334?_0x3a3224:_0x3a3224[_0x3444c0(0x1cb)](_0x1f75e0=>{const _0x234a7f=_0x3444c0,_0x667cde=_0x1f75e0[_0x234a7f(0x1c9)]??{};return{'id':_0x1f75e0['id'],'name':_0x1f75e0['name'],'code':_0x1f75e0['code'],'description':_0x1f75e0[_0x234a7f(0x1bf)],'source':_0x1f75e0[_0x234a7f(0x1c2)],'db':_0x667cde[_0x234a7f(0x1d1)],'table':_0x667cde[_0x234a7f(0x1c5)],'datasetKey':_0x667cde[_0x234a7f(0x1c1)],'pk':_0x667cde[_0x234a7f(0x1c7)],'fields':_0x667cde['allFields']?_0x667cde[_0x234a7f(0x1d5)]['split'](',')['map'](_0x68cc59=>_0x68cc59['trim']()):[]};});return{'ok':!![],'data':{'total':_0x11fe80['length'],'datasets':_0x11fe80},'message':_0x3444c0(0x1d3)+_0x11fe80['length']+_0x3444c0(0x1d4)};}};
1
+ const a49_0x314906=a49_0x4c0a;(function(_0xd35072,_0x241161){const _0x4b43b2=a49_0x4c0a,_0x26ece0=_0xd35072();while(!![]){try{const _0x45faa7=parseInt(_0x4b43b2(0x195))/0x1*(-parseInt(_0x4b43b2(0x18b))/0x2)+parseInt(_0x4b43b2(0x191))/0x3+-parseInt(_0x4b43b2(0x18a))/0x4*(-parseInt(_0x4b43b2(0x18f))/0x5)+parseInt(_0x4b43b2(0x17d))/0x6+-parseInt(_0x4b43b2(0x188))/0x7*(-parseInt(_0x4b43b2(0x17c))/0x8)+parseInt(_0x4b43b2(0x189))/0x9*(parseInt(_0x4b43b2(0x194))/0xa)+-parseInt(_0x4b43b2(0x193))/0xb*(parseInt(_0x4b43b2(0x182))/0xc);if(_0x45faa7===_0x241161)break;else _0x26ece0['push'](_0x26ece0['shift']());}catch(_0x42a8ce){_0x26ece0['push'](_0x26ece0['shift']());}}}(a49_0x5433,0x20fdd));function a49_0x5433(){const _0x6b7e7e=['bool','name','description','map','698896VhCaGv','268200zDeGDW','pkField','tableName','read','string','82212xfEewq','dbName','split','verbose','code','source','7LDhNVx','225KNlsCD','1408kaYijy','75906wOBuQm','trim','allFields','boolean','2395YeLhaK','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','641256ZNgVBg','list','671rxWvpI','30630QUqHIk','1ykIGwI','Found\x20','appCode','str','Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations','List\x20all\x20datasets\x20with\x20metadata','length','\x20dataset(s)'];a49_0x5433=function(){return _0x6b7e7e;};return a49_0x5433();}import{listDatasets}from'../../core/api-client.js';function a49_0x4c0a(_0x19612f,_0x51de55){_0x19612f=_0x19612f-0x177;const _0x543362=a49_0x5433();let _0x4c0a3b=_0x543362[_0x19612f];return _0x4c0a3b;}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetList={'service':'dataset','command':a49_0x314906(0x192),'description':a49_0x314906(0x19a),'risk':a49_0x314906(0x180),'flags':[{'name':'name','type':a49_0x314906(0x181),'description':a49_0x314906(0x190)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a49_0x314906(0x185),'type':a49_0x314906(0x18e),'description':a49_0x314906(0x199)}],async 'execute'(_0x4ec002){const _0x38adea=a49_0x314906,_0x5f1fb5=_0x4ec002[_0x38adea(0x198)](_0x38adea(0x179)),_0x430462=_0x4ec002[_0x38adea(0x198)](_0x38adea(0x186)),_0x457949=_0x4ec002[_0x38adea(0x178)](_0x38adea(0x185)),_0x8c64bf=await listDatasets(_0x4ec002[_0x38adea(0x197)],{..._0x5f1fb5&&{'name':_0x5f1fb5},..._0x430462&&{'code':_0x430462}}),_0x883cfb=_0x457949?_0x8c64bf:_0x8c64bf[_0x38adea(0x17b)](_0x2d3b2d=>{const _0x1d68ce=_0x38adea,_0x2a8b73=_0x2d3b2d['dbtableConfig']??{};return{'id':_0x2d3b2d['id'],'name':_0x2d3b2d[_0x1d68ce(0x179)],'code':_0x2d3b2d['code'],'description':_0x2d3b2d[_0x1d68ce(0x17a)],'source':_0x2d3b2d[_0x1d68ce(0x187)],'db':_0x2a8b73[_0x1d68ce(0x183)],'table':_0x2a8b73[_0x1d68ce(0x17f)],'datasetKey':_0x2a8b73['datasetKey'],'pk':_0x2a8b73[_0x1d68ce(0x17e)],'fields':_0x2a8b73['allFields']?_0x2a8b73[_0x1d68ce(0x18d)][_0x1d68ce(0x184)](',')['map'](_0x949365=>_0x949365[_0x1d68ce(0x18c)]()):[]};});return{'ok':!![],'data':{'total':_0x883cfb[_0x38adea(0x19b)],'datasets':_0x883cfb},'message':_0x38adea(0x196)+_0x883cfb[_0x38adea(0x19b)]+_0x38adea(0x177)};}};
@@ -1 +1 @@
1
- const a50_0x12520a=a50_0x1063;(function(_0x3f3d7,_0x241f36){const _0x22fc85=a50_0x1063,_0x1fed98=_0x3f3d7();while(!![]){try{const _0x1314fb=parseInt(_0x22fc85(0x16a))/0x1*(parseInt(_0x22fc85(0x163))/0x2)+parseInt(_0x22fc85(0x166))/0x3+parseInt(_0x22fc85(0x176))/0x4*(-parseInt(_0x22fc85(0x174))/0x5)+parseInt(_0x22fc85(0x17b))/0x6*(parseInt(_0x22fc85(0x173))/0x7)+parseInt(_0x22fc85(0x167))/0x8+-parseInt(_0x22fc85(0x168))/0x9*(-parseInt(_0x22fc85(0x17c))/0xa)+-parseInt(_0x22fc85(0x170))/0xb;if(_0x1314fb===_0x241f36)break;else _0x1fed98['push'](_0x1fed98['shift']());}catch(_0x1fbeb6){_0x1fed98['push'](_0x1fed98['shift']());}}}(a50_0x1788,0xb41ce));function a50_0x1788(){const _0x821539=['method','bool','appCode','35442132kzdnOt','code','map','22519pqzfmf','25eufrpY','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','353572mNdIxW','str','type','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','verbose','1110aSXKji','230mZdBIp','dataset','displayName','boolean','string','operations','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','3316XsJvGy','operation','name','3807822RwxJOG','8159720hmTSLJ','503559lSkmjE','alias','139mrxRXC','enabled','length'];a50_0x1788=function(){return _0x821539;};return a50_0x1788();}import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';function a50_0x1063(_0x55130e,_0x2e7344){_0x55130e=_0x55130e-0x161;const _0x1788d4=a50_0x1788();let _0x1063ec=_0x1788d4[_0x55130e];return _0x1063ec;}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetOperations={'service':a50_0x12520a(0x17d),'command':a50_0x12520a(0x161),'description':a50_0x12520a(0x175),'risk':'read','flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a50_0x12520a(0x169),'type':a50_0x12520a(0x180),'description':a50_0x12520a(0x179)},{'name':a50_0x12520a(0x164),'type':a50_0x12520a(0x180),'description':'Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)'},{'name':'verbose','type':a50_0x12520a(0x17f),'description':a50_0x12520a(0x162)}],async 'execute'(_0x5a0a7d){const _0x17fecc=a50_0x12520a,_0x377b8d=_0x5a0a7d[_0x17fecc(0x177)](_0x17fecc(0x171)),_0x310d7c=_0x5a0a7d[_0x17fecc(0x177)](_0x17fecc(0x164)),_0x3e24a0=_0x5a0a7d[_0x17fecc(0x16e)](_0x17fecc(0x17a));if(_0x310d7c){const {dataset:_0x30af28,operation:_0x361a5e}=await getOperationDetail(_0x5a0a7d[_0x17fecc(0x16f)],_0x377b8d,_0x310d7c);return{'ok':!![],'data':{'dataset':_0x30af28,'operation':_0x361a5e}};}const {dataset:_0x308385,operations:_0x147f7b}=await getDatasetOperations(_0x377b8d);return{'ok':!![],'data':{'dataset':_0x308385,'total':_0x147f7b[_0x17fecc(0x16c)],'operations':_0x3e24a0?_0x147f7b:_0x147f7b[_0x17fecc(0x172)](_0x5de41f=>({'name':_0x5de41f[_0x17fecc(0x165)],'displayName':_0x5de41f[_0x17fecc(0x17e)],'type':_0x5de41f[_0x17fecc(0x178)],'method':_0x5de41f[_0x17fecc(0x16d)],'enabled':_0x5de41f[_0x17fecc(0x16b)]}))}};}};
1
+ function a50_0x1ce2(){const _0x29db61=['dataset','operation','131888eOWvBP','boolean','bool','verbose','appCode','map','35kbNyLw','1237660lsKogm','length','10foRwHq','string','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','1215981aDWlDA','operations','enabled','462792ZOmFZT','28530330jBZshR','9860121DKIodF','2ksLaKW','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','str','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','1263737YZJVYE','name','alias'];a50_0x1ce2=function(){return _0x29db61;};return a50_0x1ce2();}const a50_0x2d554d=a50_0x5705;(function(_0x4ea11,_0x1ec413){const _0xe436c2=a50_0x5705,_0x427c49=_0x4ea11();while(!![]){try{const _0x57a2e1=parseInt(_0xe436c2(0x1e2))/0x1*(-parseInt(_0xe436c2(0x1f9))/0x2)+-parseInt(_0xe436c2(0x1f3))/0x3+parseInt(_0xe436c2(0x1ee))/0x4+-parseInt(_0xe436c2(0x1f0))/0x5*(-parseInt(_0xe436c2(0x1f6))/0x6)+parseInt(_0xe436c2(0x1ed))/0x7*(parseInt(_0xe436c2(0x1e7))/0x8)+-parseInt(_0xe436c2(0x1f8))/0x9+parseInt(_0xe436c2(0x1f7))/0xa;if(_0x57a2e1===_0x1ec413)break;else _0x427c49['push'](_0x427c49['shift']());}catch(_0x3bdc69){_0x427c49['push'](_0x427c49['shift']());}}}(a50_0x1ce2,0x9ae8d));function a50_0x5705(_0x5dd55f,_0x5a14a4){_0x5dd55f=_0x5dd55f-0x1e2;const _0x1ce248=a50_0x1ce2();let _0x570546=_0x1ce248[_0x5dd55f];return _0x570546;}import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetOperations={'service':a50_0x2d554d(0x1e5),'command':a50_0x2d554d(0x1f4),'description':a50_0x2d554d(0x1fc),'risk':'read','flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a50_0x2d554d(0x1e4),'type':a50_0x2d554d(0x1f1),'description':a50_0x2d554d(0x1fa)},{'name':a50_0x2d554d(0x1e6),'type':a50_0x2d554d(0x1f1),'description':'Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)'},{'name':'verbose','type':a50_0x2d554d(0x1e8),'description':a50_0x2d554d(0x1f2)}],async 'execute'(_0x38b79d){const _0x3cc355=a50_0x2d554d,_0x462ec1=_0x38b79d['str']('code'),_0x565140=_0x38b79d[_0x3cc355(0x1fb)](_0x3cc355(0x1e6)),_0x508700=_0x38b79d[_0x3cc355(0x1e9)](_0x3cc355(0x1ea));if(_0x565140){const {dataset:_0x3f470c,operation:_0x471514}=await getOperationDetail(_0x38b79d[_0x3cc355(0x1eb)],_0x462ec1,_0x565140);return{'ok':!![],'data':{'dataset':_0x3f470c,'operation':_0x471514}};}const {dataset:_0x16047e,operations:_0x48c5c9}=await getDatasetOperations(_0x462ec1);return{'ok':!![],'data':{'dataset':_0x16047e,'total':_0x48c5c9[_0x3cc355(0x1ef)],'operations':_0x508700?_0x48c5c9:_0x48c5c9[_0x3cc355(0x1ec)](_0x224912=>({'name':_0x224912[_0x3cc355(0x1e3)],'displayName':_0x224912['displayName'],'type':_0x224912['type'],'method':_0x224912['method'],'enabled':_0x224912[_0x3cc355(0x1f5)]}))}};}};
@@ -1 +1 @@
1
- function a51_0x1224(){const _0x5375f5=['length','keys','10XXuVRq','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','1144102uhaEPO','(not\x20found)','\x20\x20Auth','appcode','116mQirDv','explicitAppName','\x20doctor','630492FnGENl','472tDjLaA','(default:\x20pretty)','\x20\x20runtimeDomain:\x20\x20\x20','(not\x20set)','\x20\x20\x20\x20apiDir:\x20\x20\x20','format','gray','check','repeat','slice','\x20\x20\x20\x20appcode:\x20\x20','apps','✗\x20Not\x20logged\x20in','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','locale','\x20(default)','(inherit)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','log','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','18982997zArVFY','apiDir','red','green','appCode','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','platform','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Config\x20Files','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','8076523DHHCfB','env','verbose','✗\x20Expired','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','\x20←\x20current','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','unknown','\x20\x20explicitAppName:\x20','bold','defaultApp','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','arch','(none)','currentApp','2155TKjbXo','read','8166RohLOU','riskLevel','188883suEJcb','24705uVhoAk','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20─','cookie','\x20\x20Merged\x20Config'];a51_0x1224=function(){return _0x5375f5;};return a51_0x1224();}const a51_0x5e4441=a51_0x1b42;(function(_0x53c475,_0x2de46b){const _0xa16abe=a51_0x1b42,_0x38c136=_0x53c475();while(!![]){try{const _0x4588bc=-parseInt(_0xa16abe(0x115))/0x1+parseInt(_0xa16abe(0x11c))/0x2+-parseInt(_0xa16abe(0x10c))/0x3*(-parseInt(_0xa16abe(0x119))/0x4)+parseInt(_0xa16abe(0x107))/0x5*(-parseInt(_0xa16abe(0x109))/0x6)+-parseInt(_0xa16abe(0xf7))/0x7+-parseInt(_0xa16abe(0x11d))/0x8*(-parseInt(_0xa16abe(0x10b))/0x9)+-parseInt(_0xa16abe(0x113))/0xa*(-parseInt(_0xa16abe(0x131))/0xb);if(_0x4588bc===_0x2de46b)break;else _0x38c136['push'](_0x38c136['shift']());}catch(_0x4c1b85){_0x38c136['push'](_0x38c136['shift']());}}}(a51_0x1224,0x9aac3));import a51_0x467d24 from'chalk';import{getCliVersion}from'../utils/version.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';function a51_0x1b42(_0x5bf905,_0x38fa24){_0x5bf905=_0x5bf905-0xec;const _0x12241d=a51_0x1224();let _0x1b42f5=_0x12241d[_0x5bf905];return _0x1b42f5;}import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';async function execute(_0x3e73e7){const _0x32d26f=a51_0x1b42,_0x4af091=getCliVersion(),_0x5b7912=GIT_COMMIT!==_0x32d26f(0xff)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x32d26f(0x126)](0x0,0xa)+')':VERSION,_0x3e9dda=buildConfigFromFlags({});console[_0x32d26f(0x12f)](),console[_0x32d26f(0x12f)](a51_0x467d24['bold'](CLI_BIN_NAME+_0x32d26f(0x11b))),console[_0x32d26f(0x12f)](a51_0x467d24[_0x32d26f(0x123)]('─'[_0x32d26f(0x125)](0x32))),console[_0x32d26f(0x12f)](_0x32d26f(0x114)+_0x5b7912),console[_0x32d26f(0x12f)](_0x32d26f(0x130)+process['version']),console[_0x32d26f(0x12f)](_0x32d26f(0xfc)+process[_0x32d26f(0xf1)]+'\x20'+process[_0x32d26f(0x104)]),console[_0x32d26f(0x12f)](),console[_0x32d26f(0x12f)](a51_0x467d24[_0x32d26f(0x101)](_0x32d26f(0xf3))),console[_0x32d26f(0x12f)](a51_0x467d24[_0x32d26f(0x123)]('\x20\x20─'[_0x32d26f(0x125)](0x1e)));const _0x5be850=getGlobalConfigPath(),_0x322b36=getProjectConfigPath();console['log']('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5be850||a51_0x467d24[_0x32d26f(0x123)](_0x32d26f(0x116)))),console[_0x32d26f(0x12f)](_0x32d26f(0xf4)+(_0x322b36||a51_0x467d24[_0x32d26f(0x123)](_0x32d26f(0x116)))),console[_0x32d26f(0x12f)](),console[_0x32d26f(0x12f)](a51_0x467d24[_0x32d26f(0x101)](_0x32d26f(0x110))),console[_0x32d26f(0x12f)](a51_0x467d24[_0x32d26f(0x123)]('\x20\x20─'[_0x32d26f(0x125)](0x1e))),console['log'](_0x32d26f(0xfe)+(_0x3e9dda[_0x32d26f(0xee)]||a51_0x467d24['red'](_0x32d26f(0x120)))),console[_0x32d26f(0x12f)]('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3e9dda['env']),console[_0x32d26f(0x12f)](_0x32d26f(0x10d)+_0x3e9dda[_0x32d26f(0x12b)]),console[_0x32d26f(0x12f)](_0x32d26f(0xf5)+_0x3e9dda[_0x32d26f(0x132)]),console[_0x32d26f(0x12f)](_0x32d26f(0x12a)+(_0x3e9dda[_0x32d26f(0x102)]||a51_0x467d24['gray'](_0x32d26f(0x105)))),console[_0x32d26f(0x12f)](_0x32d26f(0xf0)+(_0x3e9dda[_0x32d26f(0x106)]||a51_0x467d24[_0x32d26f(0x123)](_0x32d26f(0x105)))),console['log'](_0x32d26f(0x100)+(_0x3e9dda[_0x32d26f(0x11a)]||a51_0x467d24['gray'](_0x32d26f(0x105)))),console[_0x32d26f(0x12f)](_0x32d26f(0xf2)+(_0x3e9dda[_0x32d26f(0x122)]||a51_0x467d24[_0x32d26f(0x123)](_0x32d26f(0x11e)))),console['log']('\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3e9dda['pageSize']??a51_0x467d24[_0x32d26f(0x123)]('(default)'))),console[_0x32d26f(0x12f)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x3e9dda[_0x32d26f(0x10a)]),console['log']('\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3e9dda[_0x32d26f(0xf9)]),console[_0x32d26f(0x12f)](_0x32d26f(0xef)+(_0x3e9dda[_0x32d26f(0x10f)]?a51_0x467d24[_0x32d26f(0xed)]('(set,\x20length='+_0x3e9dda[_0x32d26f(0x10f)][_0x32d26f(0x111)]+')'):a51_0x467d24[_0x32d26f(0x123)]('(none)')));const _0x336902=Object[_0x32d26f(0x112)](_0x3e9dda[_0x32d26f(0x128)]);if(_0x336902[_0x32d26f(0x111)]>0x0){console[_0x32d26f(0x12f)](),console[_0x32d26f(0x12f)](a51_0x467d24[_0x32d26f(0x101)]('\x20\x20Apps')),console[_0x32d26f(0x12f)](a51_0x467d24['gray']('\x20\x20─'[_0x32d26f(0x125)](0x1e)));for(const _0xf326cb of _0x336902){const _0x18b9fc=_0x3e9dda[_0x32d26f(0x128)][_0xf326cb],_0x41e03b=_0xf326cb===_0x3e9dda['defaultApp'],_0x1cc18c=_0xf326cb===_0x3e9dda['currentApp'],_0x27552a=_0x1cc18c?a51_0x467d24[_0x32d26f(0xed)](_0x32d26f(0xfd)):'',_0x4bcd08=_0x41e03b?_0x32d26f(0x12c):'';console[_0x32d26f(0x12f)]('\x20\x20'+_0xf326cb+_0x4bcd08+_0x27552a),console['log'](_0x32d26f(0x127)+_0x18b9fc[_0x32d26f(0x118)]),console[_0x32d26f(0x12f)](_0x32d26f(0xfb)+(_0x18b9fc[_0x32d26f(0xf8)]||a51_0x467d24[_0x32d26f(0x123)](_0x32d26f(0x12d)))),console['log'](_0x32d26f(0x121)+(_0x18b9fc['apiDir']||a51_0x467d24[_0x32d26f(0x123)]('(inherit)'))),console[_0x32d26f(0x12f)]('\x20\x20\x20\x20cookie:\x20\x20\x20'+(_0x18b9fc[_0x32d26f(0x10f)]?a51_0x467d24[_0x32d26f(0xed)]('(set)'):a51_0x467d24[_0x32d26f(0x123)](_0x32d26f(0x12d))));}}console[_0x32d26f(0x12f)](),console['log'](a51_0x467d24[_0x32d26f(0x101)]('\x20\x20API\x20Endpoints')),console['log'](a51_0x467d24['gray'](_0x32d26f(0x10e)['repeat'](0x1e))),console[_0x32d26f(0x12f)](_0x32d26f(0x12e)+getApiDomain()),console[_0x32d26f(0x12f)]('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console['log'](_0x32d26f(0x11f)+getRuntimeDomain()),console[_0x32d26f(0x12f)](),console[_0x32d26f(0x12f)](a51_0x467d24[_0x32d26f(0x101)](_0x32d26f(0x117))),console[_0x32d26f(0x12f)](a51_0x467d24['gray'](_0x32d26f(0x10e)[_0x32d26f(0x125)](0x1e)));const _0x37a433=_0x3e9dda[_0x32d26f(0x10f)];if(_0x37a433){const _0x1a1aed=await getIsSessionValid();console[_0x32d26f(0x12f)](_0x32d26f(0x103)+(_0x1a1aed?a51_0x467d24[_0x32d26f(0xed)]('✓\x20Valid'):a51_0x467d24['red'](_0x32d26f(0xfa))));}else console[_0x32d26f(0x12f)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a51_0x467d24[_0x32d26f(0xec)](_0x32d26f(0x129)));return console[_0x32d26f(0x12f)](),{'ok':!![]};}export const doctorDefinition={'service':a51_0x5e4441(0xf6),'command':a51_0x5e4441(0x124),'description':'Diagnose\x20CLI\x20configuration\x20and\x20connectivity','risk':a51_0x5e4441(0x108),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ function a51_0x5bd9(){const _0x3d7b4a=['\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','(default:\x20pretty)','\x20doctor','appCode','\x20\x20Merged\x20Config','pageSize','(set)','(default)','11194048JMYfyy','defaultApp','explicitAppName','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','bold','cookie','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','✓\x20Valid','5210364ZqQfEq','arch','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','verbose','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','\x20\x20API\x20Endpoints','gray','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','red','version','\x20\x20\x20\x20appcode:\x20\x20','\x20\x20Auth','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','slice','length','\x20\x20explicitAppName:\x20','\x20\x20Config\x20Files','24jOiHlE','5513410bgzgyG','currentApp','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','apiDir','repeat','\x20(default)','43198aknikB','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','appcode','(not\x20set)','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20','format','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Apps','\x20\x20','2521720sOofFP','\x20\x20\x20\x20cookie:\x20\x20\x20','keys','1046498EsTRhe','✗\x20Expired','(not\x20found)','(set,\x20length=','env','(none)','(inherit)','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','apps','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1254384WnYlkN','\x20←\x20current','log','green'];a51_0x5bd9=function(){return _0x3d7b4a;};return a51_0x5bd9();}const a51_0x2ceeb1=a51_0xcebb;function a51_0xcebb(_0x2a930b,_0x977222){_0x2a930b=_0x2a930b-0xfa;const _0x5bd976=a51_0x5bd9();let _0xcebbdc=_0x5bd976[_0x2a930b];return _0xcebbdc;}(function(_0x23ecc1,_0x10fe93){const _0x14b5cf=a51_0xcebb,_0x2e74bb=_0x23ecc1();while(!![]){try{const _0x1c4527=parseInt(_0x14b5cf(0x100))/0x1+parseInt(_0x14b5cf(0x137))/0x2*(parseInt(_0x14b5cf(0x130))/0x3)+parseInt(_0x14b5cf(0x10b))/0x4+parseInt(_0x14b5cf(0xfd))/0x5+-parseInt(_0x14b5cf(0x11f))/0x6+parseInt(_0x14b5cf(0x131))/0x7+-parseInt(_0x14b5cf(0x117))/0x8;if(_0x1c4527===_0x10fe93)break;else _0x2e74bb['push'](_0x2e74bb['shift']());}catch(_0x38bdba){_0x2e74bb['push'](_0x2e74bb['shift']());}}}(a51_0x5bd9,0x8809a));import a51_0x5229f7 from'chalk';import{getCliVersion}from'../utils/version.js';import{CLI_BIN_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';async function execute(_0x47b07f){const _0x138711=a51_0xcebb,_0x57b5bf=getCliVersion(),_0x851eb7=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x138711(0x12c)](0x0,0xa)+')':VERSION,_0x118ef8=buildConfigFromFlags({});console[_0x138711(0x10d)](),console['log'](a51_0x5229f7[_0x138711(0x11b)](CLI_BIN_NAME+_0x138711(0x111))),console['log'](a51_0x5229f7[_0x138711(0x125)]('─'[_0x138711(0x135)](0x32))),console[_0x138711(0x10d)](_0x138711(0x11a)+_0x851eb7),console[_0x138711(0x10d)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process[_0x138711(0x128)]),console[_0x138711(0x10d)](_0x138711(0x126)+process['platform']+'\x20'+process[_0x138711(0x120)]),console[_0x138711(0x10d)](),console[_0x138711(0x10d)](a51_0x5229f7[_0x138711(0x11b)](_0x138711(0x12f))),console[_0x138711(0x10d)](a51_0x5229f7['gray']('\x20\x20─'[_0x138711(0x135)](0x1e)));const _0x45e014=getGlobalConfigPath(),_0x4ed641=getProjectConfigPath();console[_0x138711(0x10d)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x45e014||a51_0x5229f7[_0x138711(0x125)]('(not\x20found)'))),console[_0x138711(0x10d)](_0x138711(0x13b)+(_0x4ed641||a51_0x5229f7[_0x138711(0x125)](_0x138711(0x102)))),console[_0x138711(0x10d)](),console['log'](a51_0x5229f7[_0x138711(0x11b)](_0x138711(0x113))),console[_0x138711(0x10d)](a51_0x5229f7[_0x138711(0x125)](_0x138711(0xfc)['repeat'](0x1e))),console[_0x138711(0x10d)](_0x138711(0x11d)+(_0x118ef8[_0x138711(0x112)]||a51_0x5229f7['red'](_0x138711(0x13a)))),console[_0x138711(0x10d)](_0x138711(0x121)+_0x118ef8[_0x138711(0x104)]),console[_0x138711(0x10d)]('\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x118ef8['locale']),console['log'](_0x138711(0x138)+_0x118ef8[_0x138711(0x134)]),console[_0x138711(0x10d)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x118ef8[_0x138711(0x118)]||a51_0x5229f7[_0x138711(0x125)]('(none)'))),console[_0x138711(0x10d)](_0x138711(0x133)+(_0x118ef8[_0x138711(0x132)]||a51_0x5229f7[_0x138711(0x125)]('(none)'))),console['log'](_0x138711(0x12e)+(_0x118ef8[_0x138711(0x119)]||a51_0x5229f7[_0x138711(0x125)](_0x138711(0x105)))),console[_0x138711(0x10d)](_0x138711(0x10a)+(_0x118ef8[_0x138711(0x13d)]||a51_0x5229f7[_0x138711(0x125)](_0x138711(0x110)))),console[_0x138711(0x10d)](_0x138711(0x12b)+(_0x118ef8[_0x138711(0x114)]??a51_0x5229f7['gray'](_0x138711(0x116)))),console[_0x138711(0x10d)](_0x138711(0x13c)+_0x118ef8['riskLevel']),console['log'](_0x138711(0xfa)+_0x118ef8[_0x138711(0x122)]),console[_0x138711(0x10d)]('\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x118ef8[_0x138711(0x11c)]?a51_0x5229f7[_0x138711(0x10e)](_0x138711(0x103)+_0x118ef8[_0x138711(0x11c)][_0x138711(0x12d)]+')'):a51_0x5229f7[_0x138711(0x125)](_0x138711(0x105))));const _0x5c21bc=Object[_0x138711(0xff)](_0x118ef8['apps']);if(_0x5c21bc[_0x138711(0x12d)]>0x0){console[_0x138711(0x10d)](),console[_0x138711(0x10d)](a51_0x5229f7[_0x138711(0x11b)](_0x138711(0xfb))),console[_0x138711(0x10d)](a51_0x5229f7['gray'](_0x138711(0xfc)['repeat'](0x1e)));for(const _0x7d74e3 of _0x5c21bc){const _0x58f275=_0x118ef8[_0x138711(0x108)][_0x7d74e3],_0x452634=_0x7d74e3===_0x118ef8[_0x138711(0x118)],_0x2762bc=_0x7d74e3===_0x118ef8[_0x138711(0x132)],_0x455ad9=_0x2762bc?a51_0x5229f7['green'](_0x138711(0x10c)):'',_0x278e51=_0x452634?_0x138711(0x136):'';console[_0x138711(0x10d)]('\x20\x20'+_0x7d74e3+_0x278e51+_0x455ad9),console[_0x138711(0x10d)](_0x138711(0x129)+_0x58f275[_0x138711(0x139)]),console[_0x138711(0x10d)]('\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20'+(_0x58f275[_0x138711(0x104)]||a51_0x5229f7['gray'](_0x138711(0x106)))),console[_0x138711(0x10d)]('\x20\x20\x20\x20apiDir:\x20\x20\x20'+(_0x58f275['apiDir']||a51_0x5229f7[_0x138711(0x125)](_0x138711(0x106)))),console[_0x138711(0x10d)](_0x138711(0xfe)+(_0x58f275[_0x138711(0x11c)]?a51_0x5229f7[_0x138711(0x10e)](_0x138711(0x115)):a51_0x5229f7[_0x138711(0x125)](_0x138711(0x106))));}}console[_0x138711(0x10d)](),console[_0x138711(0x10d)](a51_0x5229f7['bold'](_0x138711(0x124))),console['log'](a51_0x5229f7[_0x138711(0x125)](_0x138711(0xfc)[_0x138711(0x135)](0x1e))),console[_0x138711(0x10d)](_0x138711(0x10f)+getApiDomain()),console[_0x138711(0x10d)](_0x138711(0x123)+getUserDomain()),console[_0x138711(0x10d)](_0x138711(0x109)+getRuntimeDomain()),console[_0x138711(0x10d)](),console[_0x138711(0x10d)](a51_0x5229f7[_0x138711(0x11b)](_0x138711(0x12a))),console['log'](a51_0x5229f7['gray'](_0x138711(0xfc)[_0x138711(0x135)](0x1e)));const _0x37feca=_0x118ef8[_0x138711(0x11c)];if(_0x37feca){const _0x3a6af3=await getIsSessionValid();console[_0x138711(0x10d)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3a6af3?a51_0x5229f7[_0x138711(0x10e)](_0x138711(0x11e)):a51_0x5229f7[_0x138711(0x127)](_0x138711(0x101))));}else console[_0x138711(0x10d)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a51_0x5229f7[_0x138711(0x127)]('✗\x20Not\x20logged\x20in'));return console[_0x138711(0x10d)](),{'ok':!![]};}export const doctorDefinition={'service':'doctor','command':'check','description':a51_0x2ceeb1(0x107),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- function a52_0x2a02(_0x351d31,_0x1b6c73){_0x351d31=_0x351d31-0xc3;const _0xed1f75=a52_0xed1f();let _0x2a0251=_0xed1f75[_0x351d31];return _0x2a0251;}const a52_0x20cbf7=a52_0x2a02;function a52_0xed1f(){const _0x14a94f=['logger','appcode','info','2798rfErwP','2363528oEKdzH','env','yes','Target\x20environment','init','6501096ljkENS','App\x20code\x20to\x20initialize','boolean','5168890tihtYa','1842470RRzZTD','1415792BKoNms','1087527fKdknk','44enVfyE','Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project','Auto-confirm\x20prompts'];a52_0xed1f=function(){return _0x14a94f;};return a52_0xed1f();}(function(_0x1dc02d,_0x5168a4){const _0x24d864=a52_0x2a02,_0x1f73b6=_0x1dc02d();while(!![]){try{const _0x58385f=parseInt(_0x24d864(0xcf))/0x1*(-parseInt(_0x24d864(0xd5))/0x2)+parseInt(_0x24d864(0xce))/0x3+parseInt(_0x24d864(0xcd))/0x4+parseInt(_0x24d864(0xcb))/0x5+-parseInt(_0x24d864(0xc8))/0x6+-parseInt(_0x24d864(0xcc))/0x7+parseInt(_0x24d864(0xc3))/0x8;if(_0x58385f===_0x5168a4)break;else _0x1f73b6['push'](_0x1f73b6['shift']());}catch(_0x394153){_0x1f73b6['push'](_0x1f73b6['shift']());}}}(a52_0xed1f,0x9b9d2));import{initConfig}from'../init/main.js';const flagDefs=[{'name':a52_0x20cbf7(0xd3),'type':'string','description':a52_0x20cbf7(0xc9)},{'name':'env','type':'string','description':a52_0x20cbf7(0xc6)},{'name':a52_0x20cbf7(0xc5),'type':a52_0x20cbf7(0xca),'description':a52_0x20cbf7(0xd1),'default':![]}];export const initCommand={'name':a52_0x20cbf7(0xc7),'description':a52_0x20cbf7(0xd0),'flags':flagDefs,async 'run'(_0x2b64ae,_0x44e2e8,_0x365bc5){const _0x1e6232=a52_0x20cbf7;_0x2b64ae[_0x1e6232(0xd2)][_0x1e6232(0xd4)](_0x1e6232(0xc7),'执行初始化配置命令'),await initConfig({'appcode':_0x365bc5['appcode'],'env':_0x365bc5[_0x1e6232(0xc4)],'autoYes':_0x365bc5[_0x1e6232(0xc5)]});}};
1
+ const a52_0x2eca8a=a52_0x51bf;(function(_0x310fb4,_0x66c3fc){const _0x25cb89=a52_0x51bf,_0x370265=_0x310fb4();while(!![]){try{const _0x4fdbe7=-parseInt(_0x25cb89(0x82))/0x1+-parseInt(_0x25cb89(0x8c))/0x2+-parseInt(_0x25cb89(0x83))/0x3+parseInt(_0x25cb89(0x76))/0x4*(-parseInt(_0x25cb89(0x84))/0x5)+parseInt(_0x25cb89(0x7e))/0x6*(-parseInt(_0x25cb89(0x81))/0x7)+parseInt(_0x25cb89(0x77))/0x8*(parseInt(_0x25cb89(0x86))/0x9)+parseInt(_0x25cb89(0x78))/0xa*(parseInt(_0x25cb89(0x85))/0xb);if(_0x4fdbe7===_0x66c3fc)break;else _0x370265['push'](_0x370265['shift']());}catch(_0x3d2908){_0x370265['push'](_0x370265['shift']());}}}(a52_0x2b8d,0xba4a0));import{initConfig}from'../init/main.js';function a52_0x2b8d(){const _0x3d9225=['Initialize\x20.rabetbase.json\x20config\x20in\x20existing\x20project','22752fKUdfW','Auto-confirm\x20prompts','info','2261OHDkPq','694902dTgkmP','1349160GSImCe','40140mdaSLG','1075547gffHTk','9ODKZIj','boolean','appcode','string','env','App\x20code\x20to\x20initialize','781038onxPbR','logger','92dgiomt','4630216skPMMp','320FEXWem','yes','执行初始化配置命令','Target\x20environment','init'];a52_0x2b8d=function(){return _0x3d9225;};return a52_0x2b8d();}function a52_0x51bf(_0x30ab09,_0x2ea7fe){_0x30ab09=_0x30ab09-0x75;const _0x2b8dd7=a52_0x2b8d();let _0x51bfb3=_0x2b8dd7[_0x30ab09];return _0x51bfb3;}const flagDefs=[{'name':a52_0x2eca8a(0x88),'type':a52_0x2eca8a(0x89),'description':a52_0x2eca8a(0x8b)},{'name':a52_0x2eca8a(0x8a),'type':a52_0x2eca8a(0x89),'description':a52_0x2eca8a(0x7b)},{'name':a52_0x2eca8a(0x79),'type':a52_0x2eca8a(0x87),'description':a52_0x2eca8a(0x7f),'default':![]}];export const initCommand={'name':a52_0x2eca8a(0x7c),'description':a52_0x2eca8a(0x7d),'flags':flagDefs,async 'run'(_0x4dd3e8,_0x5a3eb5,_0x2ef927){const _0x573047=a52_0x2eca8a;_0x4dd3e8[_0x573047(0x75)][_0x573047(0x80)](_0x573047(0x7c),_0x573047(0x7a)),await initConfig({'appcode':_0x2ef927[_0x573047(0x88)],'env':_0x2ef927[_0x573047(0x8a)],'autoYes':_0x2ef927[_0x573047(0x79)]});}};
@@ -1 +1 @@
1
- function a53_0x2f03(){const _0x3c4ec1=['589044wIstoj','1874604qzRcJJ','12471705wEIBaU','8435FUrNkZ','✓\x20Logged\x20out','7616364uNUuss','706249DBpmTi','1596032oFwUMR','6ecWUjX','!\x20Not\x20logged\x20in','3396ZfFyrE'];a53_0x2f03=function(){return _0x3c4ec1;};return a53_0x2f03();}(function(_0x371dfb,_0x20bb24){const _0x5fa8e9=a53_0x2b27,_0x37da87=_0x371dfb();while(!![]){try{const _0xa8dbcb=parseInt(_0x5fa8e9(0x89))/0x1+parseInt(_0x5fa8e9(0x8e))/0x2+parseInt(_0x5fa8e9(0x8b))/0x3*(parseInt(_0x5fa8e9(0x8f))/0x4)+-parseInt(_0x5fa8e9(0x91))/0x5*(-parseInt(_0x5fa8e9(0x8d))/0x6)+-parseInt(_0x5fa8e9(0x88))/0x7+parseInt(_0x5fa8e9(0x8a))/0x8+-parseInt(_0x5fa8e9(0x90))/0x9;if(_0xa8dbcb===_0x20bb24)break;else _0x37da87['push'](_0x37da87['shift']());}catch(_0x157aab){_0x37da87['push'](_0x37da87['shift']());}}}(a53_0x2f03,0x9707e));import{unlinkSync,existsSync}from'node:fs';function a53_0x2b27(_0x4aa052,_0x46e3d8){_0x4aa052=_0x4aa052-0x88;const _0x2f0305=a53_0x2f03();let _0x2b2759=_0x2f0305[_0x4aa052];return _0x2b2759;}import{cookieFile}from'../auth/constant.js';export const logoutCommand={'name':'logout','description':'Logout\x20from\x20rabetbase',async 'run'(_0x44ef5b,_0x11aacc,_0x129ed7){const _0xb4bdcc=a53_0x2b27;existsSync(cookieFile)?(unlinkSync(cookieFile),console['log'](_0xb4bdcc(0x92))):console['log'](_0xb4bdcc(0x8c));}};
1
+ const a53_0x493783=a53_0xe244;function a53_0xe244(_0x2f8578,_0x354b08){_0x2f8578=_0x2f8578-0x1e8;const _0x3276b7=a53_0x3276();let _0xe24484=_0x3276b7[_0x2f8578];return _0xe24484;}(function(_0x49f3c0,_0x3508f9){const _0x28cded=a53_0xe244,_0x357b8f=_0x49f3c0();while(!![]){try{const _0x1b139d=parseInt(_0x28cded(0x1ed))/0x1*(parseInt(_0x28cded(0x1eb))/0x2)+-parseInt(_0x28cded(0x1f3))/0x3*(-parseInt(_0x28cded(0x1ee))/0x4)+-parseInt(_0x28cded(0x1f6))/0x5+-parseInt(_0x28cded(0x1f1))/0x6+parseInt(_0x28cded(0x1ea))/0x7*(parseInt(_0x28cded(0x1ec))/0x8)+parseInt(_0x28cded(0x1f2))/0x9*(parseInt(_0x28cded(0x1f4))/0xa)+-parseInt(_0x28cded(0x1e9))/0xb;if(_0x1b139d===_0x3508f9)break;else _0x357b8f['push'](_0x357b8f['shift']());}catch(_0x5a485a){_0x357b8f['push'](_0x357b8f['shift']());}}}(a53_0x3276,0xedb97));import{unlinkSync,existsSync}from'node:fs';import{cookieFile}from'../auth/constant.js';export const logoutCommand={'name':a53_0x493783(0x1ef),'description':'Logout\x20from\x20rabetbase',async 'run'(_0x3a9539,_0x3574bd,_0x51b911){const _0x39c089=a53_0x493783;existsSync(cookieFile)?(unlinkSync(cookieFile),console[_0x39c089(0x1f0)](_0x39c089(0x1f5))):console['log'](_0x39c089(0x1e8));}};function a53_0x3276(){const _0x435422=['72340RxbNje','✓\x20Logged\x20out','5278255lgaARe','!\x20Not\x20logged\x20in','23599587kJUBbz','42YrenIB','1365638iiKQpt','2388576TebZeI','1NIHdPi','588184AfnFmA','logout','log','10945464nWpyAI','2007fNhYIX','39RCBPPO'];a53_0x3276=function(){return _0x435422;};return a53_0x3276();}
@@ -1 +1 @@
1
- const a54_0x34aa84=a54_0x2a92;function a54_0x5640(){const _0x3a2f2a=['forEach','5BVkKyZ','\x20\x20\x20Details:\x20','boolean','length','*\x20Logs\x20cleared','logger','warn','readLogs','3079951OtVEsg','1863159rnnoVT','error','6328648pTmYhs','*\x20Lovrabet\x20CLI\x20logs:\x0a','986162UQrOMQ','message','toLocaleString','duration','en-US','30108584pkVVWb','\x20\x20\x20Duration:\x20','log','9675462trhpuf','level','Clear\x20all\x20logs','2740532pjCcRL'];a54_0x5640=function(){return _0x3a2f2a;};return a54_0x5640();}(function(_0x7e2f6f,_0x4cb8e2){const _0x220bb5=a54_0x2a92,_0x355943=_0x7e2f6f();while(!![]){try{const _0x3f801f=-parseInt(_0x220bb5(0x126))/0x1+parseInt(_0x220bb5(0x131))/0x2+parseInt(_0x220bb5(0x122))/0x3+parseInt(_0x220bb5(0x124))/0x4*(parseInt(_0x220bb5(0x133))/0x5)+parseInt(_0x220bb5(0x12e))/0x6+parseInt(_0x220bb5(0x121))/0x7+-parseInt(_0x220bb5(0x12b))/0x8;if(_0x3f801f===_0x4cb8e2)break;else _0x355943['push'](_0x355943['shift']());}catch(_0x2616db){_0x355943['push'](_0x355943['shift']());}}}(a54_0x5640,0xd5f1c));function showLogs(_0x385707){const _0x47eb36=a54_0x2a92,_0x3d3a99=_0x385707['logger'][_0x47eb36(0x120)]();if(_0x3d3a99[_0x47eb36(0x136)]===0x0){console[_0x47eb36(0x12d)]('*\x20No\x20logs\x20found');return;}console[_0x47eb36(0x12d)](_0x47eb36(0x125)),_0x3d3a99[_0x47eb36(0x132)]((_0x5d2de2,_0x4dd471)=>{const _0xd4587b=_0x47eb36,_0x417224=new Date(_0x5d2de2['timestamp'])[_0xd4587b(0x128)](_0xd4587b(0x12a)),_0x17b0d4=_0x5d2de2[_0xd4587b(0x12f)]==='success'?'√':_0x5d2de2['level']===_0xd4587b(0x123)?'×':_0x5d2de2[_0xd4587b(0x12f)]===_0xd4587b(0x11f)?'!':'i';console[_0xd4587b(0x12d)](_0x4dd471+0x1+'.\x20'+_0x17b0d4+'\x20['+_0x5d2de2['command']+']\x20'+_0x5d2de2[_0xd4587b(0x127)]),console[_0xd4587b(0x12d)]('\x20\x20\x20Time:\x20'+_0x417224),_0x5d2de2[_0xd4587b(0x129)]&&console[_0xd4587b(0x12d)](_0xd4587b(0x12c)+_0x5d2de2[_0xd4587b(0x129)]+'ms'),_0x5d2de2['details']&&Object['keys'](_0x5d2de2['details'])[_0xd4587b(0x136)]>0x0&&console[_0xd4587b(0x12d)](_0xd4587b(0x134)+JSON['stringify'](_0x5d2de2['details'],null,0x2)),console['log']('');});}function clearLogs(_0x258abf){const _0x1d3e30=a54_0x2a92;_0x258abf[_0x1d3e30(0x138)]['clearLogs'](),console['log'](_0x1d3e30(0x137));}function a54_0x2a92(_0x26a449,_0x1809d7){_0x26a449=_0x26a449-0x11f;const _0x564064=a54_0x5640();let _0x2a9280=_0x564064[_0x26a449];return _0x2a9280;}const flagDefs=[{'name':'clear','type':a54_0x34aa84(0x135),'description':a54_0x34aa84(0x130),'default':![]}];export const logsCommand={'name':'logs','description':'View\x20or\x20clear\x20CLI\x20logs','flags':flagDefs,async 'run'(_0x29fb9d,_0x1418cb,_0x140279){_0x140279['clear']?clearLogs(_0x29fb9d):showLogs(_0x29fb9d);}};
1
+ function a54_0x383d(){const _0x4de112=['level','length','clear','command','526930tXixpX','log','\x20\x20\x20Details:\x20','16ajKoLl','Clear\x20all\x20logs','logger','en-US','stringify','2631760wVnZEP','601364VXkLcl','details','clearLogs','\x20\x20\x20Duration:\x20','*\x20Logs\x20cleared','712ppuPFt','27ZOVvxL','logs','12EZLjdw','success','13482161YcZAAB','26236mZamyP','toLocaleString','*\x20No\x20logs\x20found','58479rpXrHN','View\x20or\x20clear\x20CLI\x20logs','\x20\x20\x20Time:\x20','boolean','357808vbfYlX','*\x20Lovrabet\x20CLI\x20logs:\x0a'];a54_0x383d=function(){return _0x4de112;};return a54_0x383d();}const a54_0x1c41cb=a54_0x3a04;(function(_0x4f13d8,_0x482c6d){const _0xac15a9=a54_0x3a04,_0x4c91ba=_0x4f13d8();while(!![]){try{const _0x49e45d=-parseInt(_0xac15a9(0x1ef))/0x1+-parseInt(_0xac15a9(0x1e9))/0x2*(-parseInt(_0xac15a9(0x1fd))/0x3)+-parseInt(_0xac15a9(0x201))/0x4+-parseInt(_0xac15a9(0x1e6))/0x5*(-parseInt(_0xac15a9(0x1f7))/0x6)+parseInt(_0xac15a9(0x1fa))/0x7*(parseInt(_0xac15a9(0x1f4))/0x8)+parseInt(_0xac15a9(0x1f5))/0x9*(-parseInt(_0xac15a9(0x1ee))/0xa)+parseInt(_0xac15a9(0x1f9))/0xb;if(_0x49e45d===_0x482c6d)break;else _0x4c91ba['push'](_0x4c91ba['shift']());}catch(_0x154f29){_0x4c91ba['push'](_0x4c91ba['shift']());}}}(a54_0x383d,0x6cc9b));function showLogs(_0x322d51){const _0x11b52a=a54_0x3a04,_0x4736b0=_0x322d51[_0x11b52a(0x1eb)]['readLogs']();if(_0x4736b0[_0x11b52a(0x1e3)]===0x0){console[_0x11b52a(0x1e7)](_0x11b52a(0x1fc));return;}console['log'](_0x11b52a(0x1e1)),_0x4736b0['forEach']((_0x273f89,_0x21a89b)=>{const _0x31e7ab=_0x11b52a,_0x1bc5b9=new Date(_0x273f89['timestamp'])[_0x31e7ab(0x1fb)](_0x31e7ab(0x1ec)),_0xd1de7d=_0x273f89[_0x31e7ab(0x1e2)]===_0x31e7ab(0x1f8)?'√':_0x273f89[_0x31e7ab(0x1e2)]==='error'?'×':_0x273f89[_0x31e7ab(0x1e2)]==='warn'?'!':'i';console[_0x31e7ab(0x1e7)](_0x21a89b+0x1+'.\x20'+_0xd1de7d+'\x20['+_0x273f89[_0x31e7ab(0x1e5)]+']\x20'+_0x273f89['message']),console['log'](_0x31e7ab(0x1ff)+_0x1bc5b9),_0x273f89['duration']&&console['log'](_0x31e7ab(0x1f2)+_0x273f89['duration']+'ms'),_0x273f89[_0x31e7ab(0x1f0)]&&Object['keys'](_0x273f89['details'])[_0x31e7ab(0x1e3)]>0x0&&console[_0x31e7ab(0x1e7)](_0x31e7ab(0x1e8)+JSON[_0x31e7ab(0x1ed)](_0x273f89[_0x31e7ab(0x1f0)],null,0x2)),console[_0x31e7ab(0x1e7)]('');});}function clearLogs(_0x8a6959){const _0x4c825a=a54_0x3a04;_0x8a6959[_0x4c825a(0x1eb)][_0x4c825a(0x1f1)](),console[_0x4c825a(0x1e7)](_0x4c825a(0x1f3));}function a54_0x3a04(_0x277c79,_0x5b56ab){_0x277c79=_0x277c79-0x1e1;const _0x383d98=a54_0x383d();let _0x3a04a5=_0x383d98[_0x277c79];return _0x3a04a5;}const flagDefs=[{'name':'clear','type':a54_0x1c41cb(0x200),'description':a54_0x1c41cb(0x1ea),'default':![]}];export const logsCommand={'name':a54_0x1c41cb(0x1f6),'description':a54_0x1c41cb(0x1fe),'flags':flagDefs,async 'run'(_0x1b18a6,_0x12aa59,_0x2b515d){const _0x184874=a54_0x1c41cb;_0x2b515d[_0x184874(0x1e4)]?clearLogs(_0x1b18a6):showLogs(_0x1b18a6);}};
@@ -1 +1 @@
1
- (function(_0x400d85,_0x113f86){const _0x382072=a55_0x19fe,_0xa9d74b=_0x400d85();while(!![]){try{const _0x59d814=-parseInt(_0x382072(0x172))/0x1*(parseInt(_0x382072(0x16e))/0x2)+-parseInt(_0x382072(0x173))/0x3*(parseInt(_0x382072(0x170))/0x4)+-parseInt(_0x382072(0x16b))/0x5+-parseInt(_0x382072(0x175))/0x6*(-parseInt(_0x382072(0x174))/0x7)+-parseInt(_0x382072(0x16f))/0x8+-parseInt(_0x382072(0x16d))/0x9+parseInt(_0x382072(0x16c))/0xa*(parseInt(_0x382072(0x171))/0xb);if(_0x59d814===_0x113f86)break;else _0xa9d74b['push'](_0xa9d74b['shift']());}catch(_0x594899){_0xa9d74b['push'](_0xa9d74b['shift']());}}}(a55_0x5c51,0xf263a));import{menuSync}from'./sync.js';import{menuUpdate}from'./update.js';function a55_0x19fe(_0x34eb8c,_0x4e5480){_0x34eb8c=_0x34eb8c-0x16b;const _0x5c51d0=a55_0x5c51();let _0x19fe3d=_0x5c51d0[_0x34eb8c];return _0x19fe3d;}function a55_0x5c51(){const _0x39d52b=['8992220XkrGUG','2275659kIhGpt','103382wTjyMx','12622072KKAbgJ','109264lAqkXi','33NYFCIc','11TqFTwL','75SVAxbR','3759FctQaU','18702BDaCwo','1482790dDxNfE'];a55_0x5c51=function(){return _0x39d52b;};return a55_0x5c51();}export const menuDefinitions=[menuSync,menuUpdate];
1
+ (function(_0x5c4e02,_0x3bd341){const _0x21479e=a55_0x5ceb,_0x3e6036=_0x5c4e02();while(!![]){try{const _0x15e9bc=-parseInt(_0x21479e(0x104))/0x1+-parseInt(_0x21479e(0xff))/0x2+-parseInt(_0x21479e(0x101))/0x3*(parseInt(_0x21479e(0x105))/0x4)+parseInt(_0x21479e(0x102))/0x5+-parseInt(_0x21479e(0xfd))/0x6*(parseInt(_0x21479e(0x103))/0x7)+-parseInt(_0x21479e(0x100))/0x8+parseInt(_0x21479e(0xfe))/0x9;if(_0x15e9bc===_0x3bd341)break;else _0x3e6036['push'](_0x3e6036['shift']());}catch(_0x204ae7){_0x3e6036['push'](_0x3e6036['shift']());}}}(a55_0x1a2a,0x72a05));function a55_0x5ceb(_0x10af02,_0xd94322){_0x10af02=_0x10af02-0xfd;const _0x1a2a0f=a55_0x1a2a();let _0x5cebbd=_0x1a2a0f[_0x10af02];return _0x5cebbd;}import{menuSync}from'./sync.js';function a55_0x1a2a(){const _0x3d76a1=['4116296UvbjNw','60KrAgRb','3420290JRzjUE','1687FpFLPk','92184lBmvXe','14888PTdfQM','12630tldvLG','13846023spwBAC','1129060iVncMl'];a55_0x1a2a=function(){return _0x3d76a1;};return a55_0x1a2a();}import{menuUpdate}from'./update.js';export const menuDefinitions=[menuSync,menuUpdate];