@lovrabet/rabetbase-cli 2.0.7 → 2.0.9

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 (137) 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/api/shared.js +1 -1
  18. package/lib/commands/app/add.js +1 -1
  19. package/lib/commands/app/index.js +1 -1
  20. package/lib/commands/app/list.js +1 -1
  21. package/lib/commands/app/remote.js +1 -1
  22. package/lib/commands/app/remove.js +1 -1
  23. package/lib/commands/app/shared.js +1 -1
  24. package/lib/commands/app/use.js +1 -1
  25. package/lib/commands/auth/index.js +1 -1
  26. package/lib/commands/bff/delete.js +1 -1
  27. package/lib/commands/bff/detail.js +1 -1
  28. package/lib/commands/bff/index.js +1 -1
  29. package/lib/commands/bff/list.js +1 -1
  30. package/lib/commands/bff/new.js +1 -1
  31. package/lib/commands/bff/pull.js +1 -1
  32. package/lib/commands/bff/push.js +1 -1
  33. package/lib/commands/bff/status.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/dataset/detail.js +1 -1
  47. package/lib/commands/dataset/index.js +1 -1
  48. package/lib/commands/dataset/links.js +1 -1
  49. package/lib/commands/dataset/list.js +1 -1
  50. package/lib/commands/dataset/operations.js +1 -1
  51. package/lib/commands/doctor.js +1 -1
  52. package/lib/commands/init/index.js +1 -1
  53. package/lib/commands/logs/index.js +1 -1
  54. package/lib/commands/menu/index.js +1 -1
  55. package/lib/commands/menu/shared/compare-table.js +1 -1
  56. package/lib/commands/menu/shared/index.js +1 -1
  57. package/lib/commands/menu/shared/inquirer.js +1 -1
  58. package/lib/commands/menu/shared/local-pages.js +1 -1
  59. package/lib/commands/menu/shared/logic.js +1 -1
  60. package/lib/commands/menu/shared/service.js +1 -1
  61. package/lib/commands/menu/shared/sync-core.js +1 -1
  62. package/lib/commands/menu/shared/update-core.js +1 -1
  63. package/lib/commands/menu/shared/valid-url.js +1 -1
  64. package/lib/commands/menu/sync.js +1 -1
  65. package/lib/commands/menu/update.js +1 -1
  66. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  67. package/lib/commands/project/create/format-elapsed.js +1 -1
  68. package/lib/commands/project/create/main.js +1 -1
  69. package/lib/commands/project/create/non-interactive.js +1 -1
  70. package/lib/commands/project/create/project-template-path.js +1 -1
  71. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  72. package/lib/commands/project/create/use-format-code.js +1 -1
  73. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  74. package/lib/commands/project/index.js +1 -1
  75. package/lib/commands/project/init.js +1 -1
  76. package/lib/commands/project/upgrade.js +1 -1
  77. package/lib/commands/registry.js +1 -1
  78. package/lib/commands/run/index.js +1 -1
  79. package/lib/commands/schema.js +1 -0
  80. package/lib/commands/skill/index.js +1 -1
  81. package/lib/commands/sql/detail.js +1 -1
  82. package/lib/commands/sql/exec.js +1 -1
  83. package/lib/commands/sql/index.js +1 -1
  84. package/lib/commands/sql/list.js +1 -1
  85. package/lib/commands/sql/save.js +1 -1
  86. package/lib/commands/sql/validate.js +1 -1
  87. package/lib/constant/cli.js +1 -1
  88. package/lib/constant/domain.js +1 -1
  89. package/lib/constant/env.js +1 -1
  90. package/lib/context.js +1 -1
  91. package/lib/core/alias-resolver.js +1 -1
  92. package/lib/core/api-client.js +1 -1
  93. package/lib/core/bff/config.js +1 -1
  94. package/lib/core/bff/file-system.js +1 -1
  95. package/lib/core/bff/hash.js +1 -1
  96. package/lib/core/bff/lock.js +1 -1
  97. package/lib/core/bff/utils.js +1 -1
  98. package/lib/core/db-resolver.js +1 -1
  99. package/lib/core/sql-validator.js +1 -1
  100. package/lib/errors.js +1 -1
  101. package/lib/framework/build-all-flags.js +1 -0
  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/schema-export.js +1 -0
  109. package/lib/framework/types.js +1 -1
  110. package/lib/generated/build-info.js +1 -1
  111. package/lib/help.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-command-trace.js +1 -1
  115. package/lib/telemetry/cli-help-trace.js +1 -1
  116. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  117. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  118. package/lib/telemetry/send-cli-trace-log.js +1 -1
  119. package/lib/utils/ai_config.js +1 -1
  120. package/lib/utils/apply-jq-filter.js +1 -0
  121. package/lib/utils/cdn-config.js +1 -1
  122. package/lib/utils/check-sdk-version.js +1 -1
  123. package/lib/utils/cli-version-check.js +1 -1
  124. package/lib/utils/config.js +1 -1
  125. package/lib/utils/copy-directory.js +1 -1
  126. package/lib/utils/file-utils.js +1 -1
  127. package/lib/utils/guides-cdn.js +1 -1
  128. package/lib/utils/http-client.js +1 -1
  129. package/lib/utils/is-non-interactive.js +1 -1
  130. package/lib/utils/logger.js +1 -1
  131. package/lib/utils/platform.js +1 -1
  132. package/lib/utils/rules-cdn.js +1 -1
  133. package/lib/utils/sleep.js +1 -1
  134. package/lib/utils/template-replacer.js +1 -1
  135. package/lib/utils/version.js +1 -1
  136. package/lib/utils/with-active-cookie.js +1 -1
  137. package/package.json +7 -4
@@ -1 +1 @@
1
- (function(_0x191e20,_0x6c51f4){const _0x1f0af6=a34_0xac80,_0x53a80d=_0x191e20();while(!![]){try{const _0x4c9216=-parseInt(_0x1f0af6(0xfe))/0x1+-parseInt(_0x1f0af6(0xfb))/0x2+parseInt(_0x1f0af6(0x103))/0x3+parseInt(_0x1f0af6(0xfd))/0x4*(-parseInt(_0x1f0af6(0x101))/0x5)+parseInt(_0x1f0af6(0x100))/0x6+parseInt(_0x1f0af6(0x102))/0x7*(parseInt(_0x1f0af6(0xff))/0x8)+parseInt(_0x1f0af6(0xfc))/0x9;if(_0x4c9216===_0x6c51f4)break;else _0x53a80d['push'](_0x53a80d['shift']());}catch(_0x2588ff){_0x53a80d['push'](_0x53a80d['shift']());}}}(a34_0x4ca0,0x77cf7));function a34_0xac80(_0x2502ca,_0x4e94c0){_0x2502ca=_0x2502ca-0xfb;const _0x4ca061=a34_0x4ca0();let _0xac80f1=_0x4ca061[_0x2502ca];return _0xac80f1;}import{codegenSdk}from'./sdk.js';function a34_0x4ca0(){const _0x49ff8a=['305yzcDoj','199115oQdLLV','506142jErbDp','441566rtLCCS','7321653asjQEq','50936qtjQOG','105710UDXkmf','128VqDVhl','939954xORXpS'];a34_0x4ca0=function(){return _0x49ff8a;};return a34_0x4ca0();}import{codegenSql}from'./sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x1a4e3b,_0x32d4ad){const _0x1f6bba=a34_0x33d6,_0x46fbf4=_0x1a4e3b();while(!![]){try{const _0x84580=parseInt(_0x1f6bba(0x1ea))/0x1+-parseInt(_0x1f6bba(0x1e4))/0x2*(parseInt(_0x1f6bba(0x1e6))/0x3)+parseInt(_0x1f6bba(0x1e7))/0x4+-parseInt(_0x1f6bba(0x1ec))/0x5*(parseInt(_0x1f6bba(0x1e3))/0x6)+-parseInt(_0x1f6bba(0x1eb))/0x7+parseInt(_0x1f6bba(0x1e9))/0x8*(parseInt(_0x1f6bba(0x1e5))/0x9)+parseInt(_0x1f6bba(0x1e8))/0xa;if(_0x84580===_0x32d4ad)break;else _0x46fbf4['push'](_0x46fbf4['shift']());}catch(_0x270601){_0x46fbf4['push'](_0x46fbf4['shift']());}}}(a34_0x15a6,0xc7ea1));import{codegenSdk}from'../../commands/codegen/sdk.js';function a34_0x15a6(){const _0x24b390=['9726710mSnrdQ','827345NiNHlf','6Vnvyde','2wpnVyF','222003poyUKu','3661734SGrIWf','4284572ovHVYf','8581090fofdfL','16CoEIRm','1615840hDSIxR'];a34_0x15a6=function(){return _0x24b390;};return a34_0x15a6();}function a34_0x33d6(_0x47ca20,_0x1aa465){_0x47ca20=_0x47ca20-0x1e3;const _0x15a67f=a34_0x15a6();let _0x33d6e8=_0x15a67f[_0x47ca20];return _0x33d6e8;}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a35_0x70c099=a35_0x5eaa;(function(_0x382dbc,_0x442050){const _0x1d9f80=a35_0x5eaa,_0x14a401=_0x382dbc();while(!![]){try{const _0x59cd68=parseInt(_0x1d9f80(0xa5))/0x1+-parseInt(_0x1d9f80(0xad))/0x2+parseInt(_0x1d9f80(0xa8))/0x3*(-parseInt(_0x1d9f80(0xae))/0x4)+-parseInt(_0x1d9f80(0x9b))/0x5+parseInt(_0x1d9f80(0x9a))/0x6*(parseInt(_0x1d9f80(0xac))/0x7)+parseInt(_0x1d9f80(0xa1))/0x8+parseInt(_0x1d9f80(0xa9))/0x9;if(_0x59cd68===_0x442050)break;else _0x14a401['push'](_0x14a401['shift']());}catch(_0x4c0d2e){_0x14a401['push'](_0x14a401['shift']());}}}(a35_0x1aee,0x73841));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a35_0x5eaa(_0x5b76b6,_0x1056b1){_0x5b76b6=_0x5b76b6-0x99;const _0x1aee8a=a35_0x1aee();let _0x5eaab4=_0x1aee8a[_0x5b76b6];return _0x5eaab4;}import{CODE_FLAG_OPTIONAL}from'../common/flags.js';export const codegenSdk={'service':a35_0x70c099(0xab),'command':a35_0x70c099(0xa2),'description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':'read','flags':[CODE_FLAG_OPTIONAL,{'name':a35_0x70c099(0x9c),'type':'string','description':a35_0x70c099(0xaa)},{'name':a35_0x70c099(0xa0),'type':'string','required':!![],'description':a35_0x70c099(0xa4)},{'name':a35_0x70c099(0xa7),'type':a35_0x70c099(0xa6),'description':a35_0x70c099(0x9d)}],async 'execute'(_0x408537){const _0x4f30f1=a35_0x70c099,{dataset:_0x3c4e7d,operation:_0x4cb615}=await getOperationDetail(_0x408537['appCode'],_0x408537[_0x4f30f1(0x99)](_0x4f30f1(0xa3)),_0x408537['str'](_0x4f30f1(0xa0))),_0x1472f2=generateSdkCode(_0x3c4e7d,_0x4cb615,{'includeImports':!_0x408537['bool'](_0x4f30f1(0xa7))});return{'ok':!![],'data':{'dataset':{'name':_0x3c4e7d[_0x4f30f1(0x9e)],'code':_0x3c4e7d[_0x4f30f1(0xa3)],'tableName':_0x3c4e7d[_0x4f30f1(0x9f)]},'operation':_0x408537[_0x4f30f1(0x99)](_0x4f30f1(0xa0)),'code':_0x1472f2}};}};function a35_0x1aee(){const _0x64ca7a=['alias','Omit\x20import\x20statements\x20from\x20generated\x20code','name','tableName','operation','3697960yiHAts','sdk','code','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','770907VXszsw','boolean','skip-imports','6dmWIBb','6048387XnNvaA','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','codegen','2583063JpMnrU','110020ovjuVD','1868996UdhTUT','str','6sqgcnq','4057715UdFFeK'];a35_0x1aee=function(){return _0x64ca7a;};return a35_0x1aee();}
1
+ const a35_0x2336ea=a35_0x405d;(function(_0x34cb3c,_0x3ead88){const _0x34d201=a35_0x405d,_0x17ccf1=_0x34cb3c();while(!![]){try{const _0x39969d=parseInt(_0x34d201(0x18e))/0x1+parseInt(_0x34d201(0x18b))/0x2+parseInt(_0x34d201(0x181))/0x3+parseInt(_0x34d201(0x18c))/0x4+-parseInt(_0x34d201(0x189))/0x5+-parseInt(_0x34d201(0x188))/0x6*(parseInt(_0x34d201(0x191))/0x7)+-parseInt(_0x34d201(0x18d))/0x8;if(_0x39969d===_0x3ead88)break;else _0x17ccf1['push'](_0x17ccf1['shift']());}catch(_0xf229cc){_0x17ccf1['push'](_0x17ccf1['shift']());}}}(a35_0xf29a,0xcb860));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a35_0x405d(_0x4487e6,_0x4c325b){_0x4487e6=_0x4487e6-0x17a;const _0xf29aa2=a35_0xf29a();let _0x405dc4=_0xf29aa2[_0x4487e6];return _0x405dc4;}import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a35_0x2336ea(0x186),'command':a35_0x2336ea(0x190),'description':a35_0x2336ea(0x180),'risk':a35_0x2336ea(0x182),'flags':[CODE_FLAG_OPTIONAL,{'name':a35_0x2336ea(0x184),'type':'string','description':a35_0x2336ea(0x183)},{'name':a35_0x2336ea(0x17a),'type':a35_0x2336ea(0x17f),'required':!![],'description':a35_0x2336ea(0x17e)},{'name':a35_0x2336ea(0x17d),'type':a35_0x2336ea(0x192),'description':a35_0x2336ea(0x18a)}],async 'execute'(_0x4df7ea){const _0x363a7a=a35_0x2336ea,{dataset:_0x1949e5,operation:_0x257437}=await getOperationDetail(_0x4df7ea[_0x363a7a(0x17b)],_0x4df7ea[_0x363a7a(0x18f)](_0x363a7a(0x185)),_0x4df7ea[_0x363a7a(0x18f)](_0x363a7a(0x17a))),_0x42ae0a=generateSdkCode(_0x1949e5,_0x257437,{'includeImports':!_0x4df7ea['bool'](_0x363a7a(0x17d))});return{'ok':!![],'data':{'dataset':{'name':_0x1949e5[_0x363a7a(0x187)],'code':_0x1949e5[_0x363a7a(0x185)],'tableName':_0x1949e5[_0x363a7a(0x17c)]},'operation':_0x4df7ea[_0x363a7a(0x18f)](_0x363a7a(0x17a)),'code':_0x42ae0a}};}};function a35_0xf29a(){const _0xec6ab0=['skip-imports','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','string','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','2849064pkZXyf','read','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','alias','code','codegen','name','6ulhfTG','4480055CSspxU','Omit\x20import\x20statements\x20from\x20generated\x20code','1947624qTPFGe','116300ruHubL','4694488TdsMnm','649733WVMoGU','str','sdk','2000978EPaDwI','boolean','operation','appCode','tableName'];a35_0xf29a=function(){return _0xec6ab0;};return a35_0xf29a();}
@@ -1 +1 @@
1
- const a36_0x1d368f=a36_0x4ec3;(function(_0x59160d,_0x5efd94){const _0x336d29=a36_0x4ec3,_0x2703c4=_0x59160d();while(!![]){try{const _0x2e797b=parseInt(_0x336d29(0xa5))/0x1*(-parseInt(_0x336d29(0xa9))/0x2)+parseInt(_0x336d29(0xa1))/0x3+-parseInt(_0x336d29(0x9e))/0x4+parseInt(_0x336d29(0xac))/0x5*(-parseInt(_0x336d29(0xaa))/0x6)+-parseInt(_0x336d29(0x9d))/0x7*(parseInt(_0x336d29(0xa2))/0x8)+-parseInt(_0x336d29(0x9a))/0x9+parseInt(_0x336d29(0x9b))/0xa;if(_0x2e797b===_0x5efd94)break;else _0x2703c4['push'](_0x2703c4['shift']());}catch(_0x1e74c2){_0x2703c4['push'](_0x2703c4['shift']());}}}(a36_0x66eb,0x582c2));function a36_0x4ec3(_0x45e2cc,_0x403f9b){_0x45e2cc=_0x45e2cc-0x9a;const _0x66ebb0=a36_0x66eb();let _0x4ec3e3=_0x66ebb0[_0x45e2cc];return _0x4ec3e3;}function a36_0x66eb(){const _0x37e97a=['1511706QhSMhr','8WuJDLu','Omit\x20import\x20statements\x20from\x20generated\x20code','sqlcode','3889oYrzDZ','string','bff','target','282pFwAVu','1122618TrfPIG','boolean','5KykUXT','appCode','sql','sdk','sqlName','sqlCode','6237828UUHVIU','19559850MWLswH','no-imports','2129939BaczZj','1463648DQmzAc','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','str'];a36_0x66eb=function(){return _0x37e97a;};return a36_0x66eb();}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../common/flags.js';export const codegenSql={'service':'codegen','command':a36_0x1d368f(0xae),'description':a36_0x1d368f(0x9f),'risk':'read','flags':[SQLCODE_FLAG,{'name':a36_0x1d368f(0xa8),'type':a36_0x1d368f(0xa6),'description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':a36_0x1d368f(0xaf),'enum':['sdk',a36_0x1d368f(0xa7)]},{'name':a36_0x1d368f(0x9c),'type':a36_0x1d368f(0xab),'description':a36_0x1d368f(0xa3)}],async 'execute'(_0x4fd245){const _0x273e17=a36_0x1d368f,_0xfddb14=await getSqlQueryInfo(_0x4fd245[_0x273e17(0xad)],_0x4fd245[_0x273e17(0xa0)](_0x273e17(0xa4))),_0x14aba7=_0x4fd245[_0x273e17(0xa0)](_0x273e17(0xa8))||_0x273e17(0xaf),_0x29876d=generateSqlCodeTemplate(_0xfddb14,{'target':_0x14aba7,'includeImports':!_0x4fd245['bool'](_0x273e17(0x9c))});return{'ok':!![],'data':{'sqlCode':_0xfddb14[_0x273e17(0xb1)],'sqlName':_0xfddb14[_0x273e17(0xb0)],'target':_0x14aba7,'code':_0x29876d}};}};
1
+ const a36_0x5a0756=a36_0x39ee;(function(_0x25756e,_0xef0ec1){const _0x2a8e0d=a36_0x39ee,_0xdf9e80=_0x25756e();while(!![]){try{const _0x478f00=-parseInt(_0x2a8e0d(0x1a7))/0x1+parseInt(_0x2a8e0d(0x197))/0x2*(-parseInt(_0x2a8e0d(0x196))/0x3)+parseInt(_0x2a8e0d(0x19f))/0x4+-parseInt(_0x2a8e0d(0x19c))/0x5+parseInt(_0x2a8e0d(0x1a6))/0x6*(parseInt(_0x2a8e0d(0x195))/0x7)+-parseInt(_0x2a8e0d(0x1aa))/0x8*(parseInt(_0x2a8e0d(0x1a8))/0x9)+-parseInt(_0x2a8e0d(0x1a0))/0xa*(-parseInt(_0x2a8e0d(0x19a))/0xb);if(_0x478f00===_0xef0ec1)break;else _0xdf9e80['push'](_0xdf9e80['shift']());}catch(_0x151faf){_0xdf9e80['push'](_0xdf9e80['shift']());}}}(a36_0x503f,0x57dbb));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a36_0x39ee(_0x26b884,_0x33b011){_0x26b884=_0x26b884-0x194;const _0x503fcf=a36_0x503f();let _0x39ee81=_0x503fcf[_0x26b884];return _0x39ee81;}function a36_0x503f(){const _0x5e83c2=['target','sqlName','709620UBvxVx','210qOMuEK','sqlCode','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','sdk','no-imports','bool','66ThDEKv','351514YeevOc','2814759Aiypuf','sql','16uKUubS','sqlcode','104811CRYJaU','6MmkOKA','326498jXtqwA','str','appCode','813582PDBJPO','boolean','1159645lrPCdB'];a36_0x503f=function(){return _0x5e83c2;};return a36_0x503f();}export const codegenSql={'service':'codegen','command':a36_0x5a0756(0x1a9),'description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':'read','flags':[SQLCODE_FLAG,{'name':a36_0x5a0756(0x19d),'type':'string','description':a36_0x5a0756(0x1a2),'default':a36_0x5a0756(0x1a3),'enum':[a36_0x5a0756(0x1a3),'bff']},{'name':a36_0x5a0756(0x1a4),'type':a36_0x5a0756(0x19b),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0xd85d78){const _0x2e331f=a36_0x5a0756,_0x374b55=await getSqlQueryInfo(_0xd85d78[_0x2e331f(0x199)],_0xd85d78[_0x2e331f(0x198)](_0x2e331f(0x194))),_0x243a77=_0xd85d78[_0x2e331f(0x198)]('target')||'sdk',_0x1a18dd=generateSqlCodeTemplate(_0x374b55,{'target':_0x243a77,'includeImports':!_0xd85d78[_0x2e331f(0x1a5)](_0x2e331f(0x1a4))});return{'ok':!![],'data':{'sqlCode':_0x374b55[_0x2e331f(0x1a1)],'sqlName':_0x374b55[_0x2e331f(0x19e)],'target':_0x243a77,'code':_0x1a18dd}};}};
@@ -1 +1 @@
1
- (function(_0x333365,_0x3341fa){const _0x58d697=a37_0x3fa0,_0x2437ec=_0x333365();while(!![]){try{const _0x2edf79=parseInt(_0x58d697(0x12d))/0x1*(parseInt(_0x58d697(0x13c))/0x2)+parseInt(_0x58d697(0x12f))/0x3*(parseInt(_0x58d697(0x12c))/0x4)+-parseInt(_0x58d697(0x149))/0x5*(-parseInt(_0x58d697(0x12b))/0x6)+-parseInt(_0x58d697(0x13e))/0x7*(parseInt(_0x58d697(0x14c))/0x8)+parseInt(_0x58d697(0x128))/0x9*(parseInt(_0x58d697(0x139))/0xa)+-parseInt(_0x58d697(0x129))/0xb*(-parseInt(_0x58d697(0x145))/0xc)+-parseInt(_0x58d697(0x142))/0xd;if(_0x2edf79===_0x3341fa)break;else _0x2437ec['push'](_0x2437ec['shift']());}catch(_0x559199){_0x2437ec['push'](_0x2437ec['shift']());}}}(a37_0x5419,0x840a0));import{input,checkbox,select}from'@inquirer/prompts';import a37_0x50461c 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 _0x831f8c=a37_0x3fa0,_0xdba8a8=await input({'message':'请输入\x20App\x20Code:','validate':_0x4b8718=>{const _0x5bffcb=a37_0x3fa0,_0x152268=validateAppcode(_0x4b8718[_0x5bffcb(0x126)]());return _0x152268[_0x5bffcb(0x14e)]||_0x152268[_0x5bffcb(0x13f)]||_0x5bffcb(0x14d);}});return _0xdba8a8[_0x831f8c(0x126)]();}function a37_0x5419(){const _0x230b6b=['includes','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','60kBUtlH','custom','cyan','2DkzXoL','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','287609nYiJNh','message','appName','gray','44621824VpmmDB','yellow','appCode','7769868fBaGpf','无法获取远程应用列表,请手动输入。','manual','✎\x20自定义输入\x20appcode','452805KLSqRK','未找到可用应用。','find','40TzcqRw','Invalid\x20App\x20Code','valid','skip','trim','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','1115451MCSllM','11yrxQec','length','60GnnYJE','4288532AVECIx','809849BfIOPY','\x0a无法获取远程应用列表,请手动输入。','3iNMhuu','\x20\x20(','正在获取可用应用列表...','map','log','✎\x20手动输入','\x0a未找到可用应用。','获取到\x20'];a37_0x5419=function(){return _0x230b6b;};return a37_0x5419();}export async function promptAppSelection(_0x1c25fe){const _0x397f6a=a37_0x3fa0,_0x3fb6fb=[{'name':a37_0x50461c['yellow'](_0x397f6a(0x148)),'value':-0x1},..._0x1c25fe[_0x397f6a(0x132)]((_0x320bf8,_0x555633)=>({'name':_0x320bf8[_0x397f6a(0x140)]+'\x20\x20'+a37_0x50461c[_0x397f6a(0x141)]('('+_0x320bf8[_0x397f6a(0x144)]+')'),'value':_0x555633}))],_0x18f79e=await checkbox({'message':_0x397f6a(0x136)+a37_0x50461c[_0x397f6a(0x13b)](_0x1c25fe[_0x397f6a(0x12a)])+_0x397f6a(0x127),'choices':_0x3fb6fb,'loop':![]});if(_0x18f79e[_0x397f6a(0x137)](-0x1))return _0x397f6a(0x13a);if(_0x18f79e[_0x397f6a(0x12a)]===0x0)return _0x397f6a(0x13a);return _0x18f79e[_0x397f6a(0x132)](_0x424176=>_0x1c25fe[_0x424176]);}function a37_0x3fa0(_0x4041fd,_0x51f37f){_0x4041fd=_0x4041fd-0x126;const _0x5419db=a37_0x5419();let _0x3fa0e4=_0x5419db[_0x4041fd];return _0x3fa0e4;}export async function promptSingleAppSelection(_0x492ff4){const _0x1733f5=a37_0x3fa0,_0x5590f6=[{'name':a37_0x50461c[_0x1733f5(0x141)](_0x1733f5(0x138)),'value':_0x1733f5(0x14f)},{'name':a37_0x50461c['yellow'](_0x1733f5(0x148)),'value':_0x1733f5(0x13a)},..._0x492ff4['map'](_0x3272e2=>({'name':_0x3272e2['appName']+'\x20\x20'+a37_0x50461c[_0x1733f5(0x141)]('('+_0x3272e2[_0x1733f5(0x144)]+')'),'value':_0x3272e2[_0x1733f5(0x144)]}))],_0x4100a2=await select({'message':'请选择要绑定的应用:','choices':_0x5590f6});if(_0x4100a2===_0x1733f5(0x14f))return'skip';if(_0x4100a2===_0x1733f5(0x13a))return _0x1733f5(0x13a);return _0x492ff4[_0x1733f5(0x14b)](_0x173b13=>_0x173b13['appCode']===_0x4100a2);}export async function selectSingleAppcode(_0x2bc2dd){const _0x1011bb=a37_0x3fa0;if(!_0x2bc2dd)return console[_0x1011bb(0x133)](a37_0x50461c[_0x1011bb(0x141)](_0x1011bb(0x13d))),_fallbackOrSkip();console[_0x1011bb(0x133)]('正在获取可用应用列表...');let _0x4a8a01;try{_0x4a8a01=await withActiveCookie(_0x2bc2dd,()=>listRemoteApps());}catch(_0x52d7a9){console[_0x1011bb(0x133)](a37_0x50461c[_0x1011bb(0x143)](_0x1011bb(0x146)));if(_0x52d7a9 instanceof Error)console[_0x1011bb(0x133)](a37_0x50461c[_0x1011bb(0x141)](_0x1011bb(0x130)+_0x52d7a9['message']+')'));return _fallbackOrSkip();}if(_0x4a8a01[_0x1011bb(0x12a)]===0x0)return console['log'](a37_0x50461c['yellow'](_0x1011bb(0x14a))),_fallbackOrSkip();const _0x1d3429=await promptSingleAppSelection(_0x4a8a01);if(_0x1d3429===_0x1011bb(0x14f))return'';if(_0x1d3429===_0x1011bb(0x13a))return promptCustomAppcode();return _0x1d3429[_0x1011bb(0x144)];}export async function selectMultipleApps(_0xbdcde5){const _0x1881ac=a37_0x3fa0;console['log'](_0x1881ac(0x131));let _0x2723c8;try{_0x2723c8=await withActiveCookie(_0xbdcde5,()=>listRemoteApps());}catch(_0x15b5c7){console[_0x1881ac(0x133)](_0x1881ac(0x12e));if(_0x15b5c7 instanceof Error)console['log'](_0x1881ac(0x130)+_0x15b5c7['message']+')');return _0x1881ac(0x13a);}if(_0x2723c8['length']===0x0)return console[_0x1881ac(0x133)](_0x1881ac(0x135)),_0x1881ac(0x13a);return promptAppSelection(_0x2723c8);}async function _fallbackOrSkip(){const _0x2cbfdc=a37_0x3fa0,_0x48762f=await select({'message':'App\x20Code:','choices':[{'name':a37_0x50461c[_0x2cbfdc(0x141)]('(跳过,稍后配置)'),'value':_0x2cbfdc(0x14f)},{'name':a37_0x50461c[_0x2cbfdc(0x143)](_0x2cbfdc(0x134)),'value':_0x2cbfdc(0x147)}]});if(_0x48762f===_0x2cbfdc(0x14f))return'';return promptCustomAppcode();}
1
+ (function(_0x44f29c,_0x314b40){const _0x127a40=a37_0x3d47,_0x1d1738=_0x44f29c();while(!![]){try{const _0x1b653a=parseInt(_0x127a40(0x14c))/0x1*(parseInt(_0x127a40(0x133))/0x2)+-parseInt(_0x127a40(0x13a))/0x3+parseInt(_0x127a40(0x14e))/0x4+parseInt(_0x127a40(0x136))/0x5+parseInt(_0x127a40(0x143))/0x6*(parseInt(_0x127a40(0x131))/0x7)+parseInt(_0x127a40(0x139))/0x8*(parseInt(_0x127a40(0x132))/0x9)+-parseInt(_0x127a40(0x145))/0xa*(parseInt(_0x127a40(0x130))/0xb);if(_0x1b653a===_0x314b40)break;else _0x1d1738['push'](_0x1d1738['shift']());}catch(_0x533eb7){_0x1d1738['push'](_0x1d1738['shift']());}}}(a37_0x2034,0x4fddb));import{input,checkbox,select}from'@inquirer/prompts';import a37_0x245264 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';function a37_0x3d47(_0x148eff,_0x5ec422){_0x148eff=_0x148eff-0x12b;const _0x203480=a37_0x2034();let _0x3d4788=_0x203480[_0x148eff];return _0x3d4788;}import{withActiveCookie}from'../../utils/with-active-cookie.js';export async function promptCustomAppcode(){const _0x16eee9=a37_0x3d47,_0x4898ee=await input({'message':_0x16eee9(0x135),'validate':_0x4a4eb9=>{const _0x46bad4=_0x16eee9,_0x19086b=validateAppcode(_0x4a4eb9[_0x46bad4(0x138)]());return _0x19086b[_0x46bad4(0x14a)]||_0x19086b['message']||_0x46bad4(0x141);}});return _0x4898ee[_0x16eee9(0x138)]();}export async function promptAppSelection(_0x27399d){const _0x4516d9=a37_0x3d47,_0x1ab8d7=[{'name':a37_0x245264['yellow'](_0x4516d9(0x13e)),'value':-0x1},..._0x27399d[_0x4516d9(0x12c)]((_0x32486d,_0x51afcd)=>({'name':_0x32486d[_0x4516d9(0x14d)]+'\x20\x20'+a37_0x245264[_0x4516d9(0x12e)]('('+_0x32486d[_0x4516d9(0x12d)]+')'),'value':_0x51afcd}))],_0x5bf5b1=await checkbox({'message':'获取到\x20'+a37_0x245264[_0x4516d9(0x12f)](_0x27399d[_0x4516d9(0x134)])+_0x4516d9(0x12b),'choices':_0x1ab8d7,'loop':![]});if(_0x5bf5b1['includes'](-0x1))return _0x4516d9(0x140);if(_0x5bf5b1[_0x4516d9(0x134)]===0x0)return'custom';return _0x5bf5b1[_0x4516d9(0x12c)](_0x524ddd=>_0x27399d[_0x524ddd]);}export async function promptSingleAppSelection(_0x47afcc){const _0x5dbaf7=a37_0x3d47,_0x47581b=[{'name':a37_0x245264['gray'](_0x5dbaf7(0x149)),'value':_0x5dbaf7(0x142)},{'name':a37_0x245264[_0x5dbaf7(0x137)](_0x5dbaf7(0x13e)),'value':'custom'},..._0x47afcc['map'](_0x190a49=>({'name':_0x190a49[_0x5dbaf7(0x14d)]+'\x20\x20'+a37_0x245264[_0x5dbaf7(0x12e)]('('+_0x190a49[_0x5dbaf7(0x12d)]+')'),'value':_0x190a49[_0x5dbaf7(0x12d)]}))],_0x5d11b8=await select({'message':'请选择要绑定的应用:','choices':_0x47581b});if(_0x5d11b8===_0x5dbaf7(0x142))return'skip';if(_0x5d11b8===_0x5dbaf7(0x140))return _0x5dbaf7(0x140);return _0x47afcc[_0x5dbaf7(0x148)](_0x50fa37=>_0x50fa37['appCode']===_0x5d11b8);}export async function selectSingleAppcode(_0x388877){const _0x141b37=a37_0x3d47;if(!_0x388877)return console[_0x141b37(0x13d)](a37_0x245264[_0x141b37(0x12e)]('(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)')),_fallbackOrSkip();console[_0x141b37(0x13d)]('正在获取可用应用列表...');let _0x378869;try{_0x378869=await withActiveCookie(_0x388877,()=>listRemoteApps());}catch(_0x2530e0){console[_0x141b37(0x13d)](a37_0x245264[_0x141b37(0x137)](_0x141b37(0x14b)));if(_0x2530e0 instanceof Error)console[_0x141b37(0x13d)](a37_0x245264[_0x141b37(0x12e)](_0x141b37(0x147)+_0x2530e0['message']+')'));return _fallbackOrSkip();}if(_0x378869[_0x141b37(0x134)]===0x0)return console[_0x141b37(0x13d)](a37_0x245264[_0x141b37(0x137)]('未找到可用应用。')),_fallbackOrSkip();const _0x13e6ed=await promptSingleAppSelection(_0x378869);if(_0x13e6ed===_0x141b37(0x142))return'';if(_0x13e6ed===_0x141b37(0x140))return promptCustomAppcode();return _0x13e6ed[_0x141b37(0x12d)];}function a37_0x2034(){const _0x1a803e=['skip','1542LtYoBw','\x0a无法获取远程应用列表,请手动输入。','20qCiRdM','manual','\x20\x20(','find','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','valid','无法获取远程应用列表,请手动输入。','345923HzQKFU','appName','2249940wuAdOc','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','map','appCode','gray','cyan','2400343HDkSRs','1351PenqUF','2259sGahQI','2xeRAZX','length','请输入\x20App\x20Code:','386995eqrZZD','yellow','trim','12112ThvgVr','1955595tmNlet','\x0a未找到可用应用。','正在获取可用应用列表...','log','✎\x20自定义输入\x20appcode','App\x20Code:','custom','Invalid\x20App\x20Code'];a37_0x2034=function(){return _0x1a803e;};return a37_0x2034();}export async function selectMultipleApps(_0x30934d){const _0x15f1a2=a37_0x3d47;console[_0x15f1a2(0x13d)](_0x15f1a2(0x13c));let _0x31d824;try{_0x31d824=await withActiveCookie(_0x30934d,()=>listRemoteApps());}catch(_0xd62775){console[_0x15f1a2(0x13d)](_0x15f1a2(0x144));if(_0xd62775 instanceof Error)console[_0x15f1a2(0x13d)](_0x15f1a2(0x147)+_0xd62775['message']+')');return _0x15f1a2(0x140);}if(_0x31d824[_0x15f1a2(0x134)]===0x0)return console[_0x15f1a2(0x13d)](_0x15f1a2(0x13b)),_0x15f1a2(0x140);return promptAppSelection(_0x31d824);}async function _fallbackOrSkip(){const _0x3d7553=a37_0x3d47,_0x3e5fd1=await select({'message':_0x3d7553(0x13f),'choices':[{'name':a37_0x245264[_0x3d7553(0x12e)]('(跳过,稍后配置)'),'value':_0x3d7553(0x142)},{'name':a37_0x245264[_0x3d7553(0x137)]('✎\x20手动输入'),'value':_0x3d7553(0x146)}]});if(_0x3e5fd1===_0x3d7553(0x142))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a38_0x3bd1a1=a38_0x16cc;(function(_0x4e4159,_0x53dbf7){const _0x29e094=a38_0x16cc,_0x556c9f=_0x4e4159();while(!![]){try{const _0x170490=-parseInt(_0x29e094(0xf2))/0x1*(-parseInt(_0x29e094(0xf5))/0x2)+-parseInt(_0x29e094(0xfb))/0x3*(-parseInt(_0x29e094(0xfc))/0x4)+-parseInt(_0x29e094(0x101))/0x5*(-parseInt(_0x29e094(0xff))/0x6)+-parseInt(_0x29e094(0xf4))/0x7*(parseInt(_0x29e094(0xfa))/0x8)+-parseInt(_0x29e094(0xfd))/0x9+parseInt(_0x29e094(0xf6))/0xa*(parseInt(_0x29e094(0x100))/0xb)+parseInt(_0x29e094(0xf7))/0xc*(-parseInt(_0x29e094(0xfe))/0xd);if(_0x170490===_0x53dbf7)break;else _0x556c9f['push'](_0x556c9f['shift']());}catch(_0xfd0a32){_0x556c9f['push'](_0x556c9f['shift']());}}}(a38_0xcef8,0xe6392));export const CODE_FLAG={'name':a38_0x3bd1a1(0xf0),'type':a38_0x3bd1a1(0x102),'required':!![],'description':a38_0x3bd1a1(0xf3),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x3bd1a1(0xf8)}};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const SQLCODE_FLAG={'name':a38_0x3bd1a1(0x103),'type':a38_0x3bd1a1(0x102),'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_0x3bd1a1(0xf9)}};function a38_0xcef8(){const _0x42673e=['26pKZPCp','18MyMlUw','34232fkBVuw','203570okQhpT','string','sqlcode','code','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','80429jhobzv','Dataset\x20code\x20(32-char\x20hex\x20UUID)','12693261anCxVr','46JmVWQE','3790VnLdah','2760372obTWQo','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','8NBdeEA','4339719EpmsTb','4UvODRB','12434859yPMYIp'];a38_0xcef8=function(){return _0x42673e;};return a38_0xcef8();}export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':a38_0x3bd1a1(0x102),'required':![],'description':a38_0x3bd1a1(0xf1)};function a38_0x16cc(_0x449b3a,_0x1e86be){_0x449b3a=_0x449b3a-0xf0;const _0xcef8dc=a38_0xcef8();let _0x16cc71=_0xcef8dc[_0x449b3a];return _0x16cc71;}export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};
1
+ const a38_0x485b79=a38_0x582b;(function(_0x4be162,_0x36fb60){const _0x365b6a=a38_0x582b,_0x1e2365=_0x4be162();while(!![]){try{const _0x1deb40=-parseInt(_0x365b6a(0x18e))/0x1+-parseInt(_0x365b6a(0x195))/0x2*(-parseInt(_0x365b6a(0x19d))/0x3)+parseInt(_0x365b6a(0x191))/0x4*(parseInt(_0x365b6a(0x193))/0x5)+parseInt(_0x365b6a(0x194))/0x6+parseInt(_0x365b6a(0x19f))/0x7+-parseInt(_0x365b6a(0x190))/0x8+parseInt(_0x365b6a(0x197))/0x9;if(_0x1deb40===_0x36fb60)break;else _0x1e2365['push'](_0x1e2365['shift']());}catch(_0x55941a){_0x1e2365['push'](_0x1e2365['shift']());}}}(a38_0xbdc2,0xc8619));export const CODE_FLAG={'name':a38_0x485b79(0x18f),'type':a38_0x485b79(0x199),'required':!![],'description':a38_0x485b79(0x19e),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':a38_0x485b79(0x192)}};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};function a38_0xbdc2(){const _0x5b3b48=['appcode','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','10872uDwtuQ','Dataset\x20code\x20(32-char\x20hex\x20UUID)','2102569pMvumu','425219XLAYom','code','6709936jSsEwY','3948NrIeYI','a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)','665xpLbPg','1623558WEZOZY','524HRxfBg','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','3897027UuZDnf','sqlcode','string'];a38_0xbdc2=function(){return _0x5b3b48;};return a38_0xbdc2();}function a38_0x582b(_0x379464,_0x2aee61){_0x379464=_0x379464-0x18e;const _0xbdc2c5=a38_0xbdc2();let _0x582b53=_0xbdc2c5[_0x379464];return _0x582b53;}export const SQLCODE_FLAG={'name':a38_0x485b79(0x198),'type':a38_0x485b79(0x199),'required':!![],'description':a38_0x485b79(0x19c),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a38_0x485b79(0x196)}};export const APPCODE_FLAG_OPTIONAL={'name':a38_0x485b79(0x19a),'type':'string','required':![],'description':a38_0x485b79(0x19b)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};
@@ -1 +1 @@
1
- (function(_0x4350ee,_0x3f1be3){const _0x394a78=a39_0x41ae,_0x4a736f=_0x4350ee();while(!![]){try{const _0x3a8b17=parseInt(_0x394a78(0xa8))/0x1+-parseInt(_0x394a78(0xb4))/0x2+parseInt(_0x394a78(0xb3))/0x3*(parseInt(_0x394a78(0xaf))/0x4)+-parseInt(_0x394a78(0xae))/0x5*(-parseInt(_0x394a78(0xb0))/0x6)+-parseInt(_0x394a78(0xa6))/0x7*(parseInt(_0x394a78(0xb1))/0x8)+-parseInt(_0x394a78(0xab))/0x9*(parseInt(_0x394a78(0xac))/0xa)+-parseInt(_0x394a78(0xb2))/0xb*(-parseInt(_0x394a78(0xa9))/0xc);if(_0x3a8b17===_0x3f1be3)break;else _0x4a736f['push'](_0x4a736f['shift']());}catch(_0x28297b){_0x4a736f['push'](_0x4a736f['shift']());}}}(a39_0x579f,0x27108));function a39_0x579f(){const _0x31bed2=['21TwpFVH','test','172836nbYYkN','312oVJrET','length','711SIuotA','28260KWbpPb','App\x20Code\x20cannot\x20be\x20empty','9985louamE','870456laTYyR','462sSBMLe','819312LSzOor','180356rtFOJF','3toZftM','560022awrMOl'];a39_0x579f=function(){return _0x31bed2;};return a39_0x579f();}function a39_0x41ae(_0x36f2ce,_0x1d8df4){_0x36f2ce=_0x36f2ce-0xa6;const _0x579fff=a39_0x579f();let _0x41ae7c=_0x579fff[_0x36f2ce];return _0x41ae7c;}export function validateAppcode(_0x26dc84){const _0xedd4c0=a39_0x41ae,_0x274d9e=_0x26dc84['trim']();if(!_0x274d9e)return{'valid':![],'message':_0xedd4c0(0xad)};if(_0x274d9e[_0xedd4c0(0xaa)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/[_0xedd4c0(0xa7)](_0x274d9e))return{'valid':![],'message':'Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'};return{'valid':!![]};}
1
+ (function(_0x35214a,_0x11590a){const _0x2f813e=a39_0x4b01,_0x2eea01=_0x35214a();while(!![]){try{const _0x4906fc=-parseInt(_0x2f813e(0xc0))/0x1+-parseInt(_0x2f813e(0xc1))/0x2+parseInt(_0x2f813e(0xc2))/0x3+parseInt(_0x2f813e(0xc4))/0x4*(-parseInt(_0x2f813e(0xb7))/0x5)+parseInt(_0x2f813e(0xbf))/0x6*(-parseInt(_0x2f813e(0xbb))/0x7)+parseInt(_0x2f813e(0xc3))/0x8*(parseInt(_0x2f813e(0xc5))/0x9)+-parseInt(_0x2f813e(0xb9))/0xa*(-parseInt(_0x2f813e(0xbd))/0xb);if(_0x4906fc===_0x11590a)break;else _0x2eea01['push'](_0x2eea01['shift']());}catch(_0x13e9b1){_0x2eea01['push'](_0x2eea01['shift']());}}}(a39_0x37f8,0xba568));function a39_0x37f8(){const _0x2aec7d=['21agKwwg','trim','3521353KyuLeT','length','1398642qMNtlk','674535xdwJrb','1119090drvBAe','936999STjlIW','9080ZFdkIw','88TnDApd','8001ugpJWi','196720lWtSam','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','70fFebRq','App\x20Code\x20cannot\x20be\x20empty'];a39_0x37f8=function(){return _0x2aec7d;};return a39_0x37f8();}function a39_0x4b01(_0x175927,_0x5372fd){_0x175927=_0x175927-0xb7;const _0x37f86f=a39_0x37f8();let _0x4b018e=_0x37f86f[_0x175927];return _0x4b018e;}export function validateAppcode(_0x2361ba){const _0x3f2f3c=a39_0x4b01,_0x1e6b4c=_0x2361ba[_0x3f2f3c(0xbc)]();if(!_0x1e6b4c)return{'valid':![],'message':_0x3f2f3c(0xba)};if(_0x1e6b4c[_0x3f2f3c(0xbe)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/['test'](_0x1e6b4c))return{'valid':![],'message':_0x3f2f3c(0xb8)};return{'valid':!![]};}
@@ -1 +1 @@
1
- const a40_0x40816a=a40_0x49e0;(function(_0x133a21,_0x762b56){const _0x55047e=a40_0x49e0,_0x46f7f0=_0x133a21();while(!![]){try{const _0x54d60c=parseInt(_0x55047e(0x10c))/0x1*(parseInt(_0x55047e(0x109))/0x2)+parseInt(_0x55047e(0x100))/0x3*(-parseInt(_0x55047e(0xfd))/0x4)+-parseInt(_0x55047e(0xfc))/0x5+-parseInt(_0x55047e(0x106))/0x6*(-parseInt(_0x55047e(0x102))/0x7)+-parseInt(_0x55047e(0xfa))/0x8+-parseInt(_0x55047e(0x110))/0x9*(parseInt(_0x55047e(0x10d))/0xa)+parseInt(_0x55047e(0x10e))/0xb;if(_0x54d60c===_0x762b56)break;else _0x46f7f0['push'](_0x46f7f0['shift']());}catch(_0x5baae2){_0x46f7f0['push'](_0x46f7f0['shift']());}}}(a40_0x423d,0xb0456));function a40_0x49e0(_0x3d54f9,_0x4f6cab){_0x3d54f9=_0x3d54f9-0xfa;const _0x423d92=a40_0x423d();let _0x49e03e=_0x423d92[_0x3d54f9];return _0x49e03e;}import{CliErrors}from'../../errors.js';function a40_0x423d(){const _0x4d6ef8=['7xGReLe','config','appcode','string','4709634RdKENf','key','object','394jwpXzs','Missing\x20key.','str','3407emqsDc','505490uoLvSv','22673530qSvLMs','\x20config\x20get\x20--key\x20<key>','234yjdDcV','Get\x20a\x20config\x20value\x20by\x20key','116872ZCJLdh','Key\x20not\x20found:\x20','613350jkkmxf','5375156EAmztt','Config\x20key\x20to\x20read','validation','3XqcwtB','app'];a40_0x423d=function(){return _0x4d6ef8;};return a40_0x423d();}import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';async function execute(_0x2f4cf0){const _0x6f234e=a40_0x49e0,_0x174fef=_0x2f4cf0[_0x6f234e(0x10b)](_0x6f234e(0x107));if(!_0x174fef)throw CliErrors[_0x6f234e(0xff)](_0x6f234e(0x10a),'Usage:\x20'+CLI_BIN_NAME+_0x6f234e(0x10f));const _0x20644e=readConfig(),_0x5b28cc=_0x174fef===_0x6f234e(0x101)?_0x6f234e(0x104):_0x174fef,_0x2a6647=_0x20644e[_0x5b28cc];if(_0x2a6647===undefined)throw CliErrors[_0x6f234e(0xff)](_0x6f234e(0xfb)+_0x174fef);return{'ok':!![],'data':typeof _0x2a6647===_0x6f234e(0x108)?_0x2a6647:{[_0x5b28cc]:_0x2a6647},'message':typeof _0x2a6647===_0x6f234e(0x108)?undefined:String(_0x2a6647)};}export const configGetDefinition={'service':a40_0x40816a(0x103),'command':'get','description':a40_0x40816a(0x111),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a40_0x40816a(0x105),'description':a40_0x40816a(0xfe),'required':!![]}],'execute':execute};
1
+ const a40_0x11011f=a40_0x3ecd;function a40_0x191d(){const _0xc185ca=['validation','205803SShZBR','Usage:\x20','Missing\x20key.','Get\x20a\x20config\x20value\x20by\x20key','2083083kwxnRy','str','3GkIlex','719434dNfcvX','get','14459335uXxUqU','20nhsUZa','7KbFjNv','8502738hRLvah','string','4iQvQNN','Config\x20key\x20to\x20read','app','config','read','4217270AjMgHt','2519040sdXRkA'];a40_0x191d=function(){return _0xc185ca;};return a40_0x191d();}(function(_0x3084eb,_0x357144){const _0x221ca1=a40_0x3ecd,_0x2f0728=_0x3084eb();while(!![]){try{const _0x43091f=-parseInt(_0x221ca1(0x1d0))/0x1*(-parseInt(_0x221ca1(0x1d1))/0x2)+parseInt(_0x221ca1(0x1ce))/0x3*(-parseInt(_0x221ca1(0x1d8))/0x4)+parseInt(_0x221ca1(0x1dd))/0x5+parseInt(_0x221ca1(0x1d6))/0x6*(-parseInt(_0x221ca1(0x1d5))/0x7)+-parseInt(_0x221ca1(0x1de))/0x8+parseInt(_0x221ca1(0x1e0))/0x9*(parseInt(_0x221ca1(0x1d4))/0xa)+parseInt(_0x221ca1(0x1d3))/0xb;if(_0x43091f===_0x357144)break;else _0x2f0728['push'](_0x2f0728['shift']());}catch(_0x2ca3e4){_0x2f0728['push'](_0x2f0728['shift']());}}}(a40_0x191d,0xd118c));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';function a40_0x3ecd(_0x53e65c,_0x5293a5){_0x53e65c=_0x53e65c-0x1cd;const _0x191deb=a40_0x191d();let _0x3ecdfd=_0x191deb[_0x53e65c];return _0x3ecdfd;}import{CLI_BIN_NAME}from'../../constant/cli.js';async function execute(_0x44109b){const _0x4a3d28=a40_0x3ecd,_0x39dbf8=_0x44109b[_0x4a3d28(0x1cf)]('key');if(!_0x39dbf8)throw CliErrors['validation'](_0x4a3d28(0x1e2),_0x4a3d28(0x1e1)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x394455=readConfig(),_0x5305c2=_0x39dbf8===_0x4a3d28(0x1da)?'appcode':_0x39dbf8,_0x3d1f3e=_0x394455[_0x5305c2];if(_0x3d1f3e===undefined)throw CliErrors[_0x4a3d28(0x1df)]('Key\x20not\x20found:\x20'+_0x39dbf8);return{'ok':!![],'data':typeof _0x3d1f3e==='object'?_0x3d1f3e:{[_0x5305c2]:_0x3d1f3e},'message':typeof _0x3d1f3e==='object'?undefined:String(_0x3d1f3e)};}export const configGetDefinition={'service':a40_0x11011f(0x1db),'command':a40_0x11011f(0x1d2),'description':a40_0x11011f(0x1cd),'risk':a40_0x11011f(0x1dc),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a40_0x11011f(0x1d7),'description':a40_0x11011f(0x1d9),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- function a41_0x293b(){const _0x40395c=['1080KCnHbV','1473768ETmslM','39421239YyMbax','20njoYXv','171951cNZgRo','8961897uxJTMq','1315564Dsjbje','3wArvFN','3376360NVLoyz','109881jKnMbn','8TAVlDk'];a41_0x293b=function(){return _0x40395c;};return a41_0x293b();}(function(_0xa59f9b,_0x32c535){const _0x44d9b2=a41_0x3925,_0x4e82cf=_0xa59f9b();while(!![]){try{const _0x292ff1=parseInt(_0x44d9b2(0x19d))/0x1+-parseInt(_0x44d9b2(0x1a1))/0x2*(parseInt(_0x44d9b2(0x1a0))/0x3)+-parseInt(_0x44d9b2(0x19f))/0x4*(parseInt(_0x44d9b2(0x19c))/0x5)+parseInt(_0x44d9b2(0x19a))/0x6+-parseInt(_0x44d9b2(0x19e))/0x7*(-parseInt(_0x44d9b2(0x198))/0x8)+-parseInt(_0x44d9b2(0x197))/0x9*(parseInt(_0x44d9b2(0x199))/0xa)+parseInt(_0x44d9b2(0x19b))/0xb;if(_0x292ff1===_0x32c535)break;else _0x4e82cf['push'](_0x4e82cf['shift']());}catch(_0x590f47){_0x4e82cf['push'](_0x4e82cf['shift']());}}}(a41_0x293b,0xea333));function a41_0x3925(_0x3f59a7,_0x40cacb){_0x3f59a7=_0x3f59a7-0x197;const _0x293b4f=a41_0x293b();let _0x392593=_0x293b4f[_0x3f59a7];return _0x392593;}import{configListDefinition}from'./list.js';import{configGetDefinition}from'./get.js';import{configSetDefinition}from'./set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x55b9aa,_0x46c899){const _0x5c87a4=a41_0x608b,_0x104a39=_0x55b9aa();while(!![]){try{const _0x425df4=-parseInt(_0x5c87a4(0xb2))/0x1+parseInt(_0x5c87a4(0xb7))/0x2+parseInt(_0x5c87a4(0xb9))/0x3*(parseInt(_0x5c87a4(0xb3))/0x4)+parseInt(_0x5c87a4(0xb6))/0x5+-parseInt(_0x5c87a4(0xb5))/0x6*(-parseInt(_0x5c87a4(0xb1))/0x7)+-parseInt(_0x5c87a4(0xb4))/0x8*(-parseInt(_0x5c87a4(0xb0))/0x9)+-parseInt(_0x5c87a4(0xb8))/0xa;if(_0x425df4===_0x46c899)break;else _0x104a39['push'](_0x104a39['shift']());}catch(_0x1aed1d){_0x104a39['push'](_0x104a39['shift']());}}}(a41_0x5391,0xe26c6));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a41_0x5391(){const _0x9d1202=['1392RwLXhg','4007008aNQqIa','10155108MybFtf','2080915pjsTwd','3197264wAeJvZ','42875670WtWlxC','7368syFdxS','18hZltQh','7gqUCsn','348776xjEyGA'];a41_0x5391=function(){return _0x9d1202;};return a41_0x5391();}import{configSetDefinition}from'../../commands/config/set.js';function a41_0x608b(_0xf7b171,_0xae9d85){_0xf7b171=_0xf7b171-0xb0;const _0x53916b=a41_0x5391();let _0x608b17=_0x53916b[_0xf7b171];return _0x608b17;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- const a42_0x10097f=a42_0x3f0b;(function(_0x309328,_0x36e72e){const _0x38a2aa=a42_0x3f0b,_0xdf266=_0x309328();while(!![]){try{const _0x995b7a=-parseInt(_0x38a2aa(0x120))/0x1+-parseInt(_0x38a2aa(0x125))/0x2*(-parseInt(_0x38a2aa(0x129))/0x3)+parseInt(_0x38a2aa(0x122))/0x4*(-parseInt(_0x38a2aa(0x11c))/0x5)+-parseInt(_0x38a2aa(0x12f))/0x6+parseInt(_0x38a2aa(0x11d))/0x7*(-parseInt(_0x38a2aa(0x12e))/0x8)+parseInt(_0x38a2aa(0x12b))/0x9*(-parseInt(_0x38a2aa(0x121))/0xa)+parseInt(_0x38a2aa(0x12c))/0xb*(parseInt(_0x38a2aa(0x11e))/0xc);if(_0x995b7a===_0x36e72e)break;else _0xdf266['push'](_0xdf266['shift']());}catch(_0x3ef057){_0xdf266['push'](_0xdf266['shift']());}}}(a42_0x4e6e,0x4244e));import{readScopedConfig}from'./shared.js';function a42_0x3f0b(_0x2187b8,_0x1336e2){_0x2187b8=_0x2187b8-0x11c;const _0x4e6e1b=a42_0x4e6e();let _0x3f0b38=_0x4e6e1b[_0x2187b8];return _0x3f0b38;}import{readConfig}from'../../utils/config.js';function a42_0x4e6e(){const _0x5a8402=['157018KDmPVj','read','List\x20all\x20config\x20values','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','9AtzogH','bool','57051TKoAsZ','17031234brHLjo','global','8wLWzNH','3086808eclmiX','806195JDXlcC','679553oEBqsT','12yNStGD','boolean','404441LBzWoM','20jiWYqd','12PGckXa','config','list'];a42_0x4e6e=function(){return _0x5a8402;};return a42_0x4e6e();}async function execute(_0x234a8a){const _0xd196cd=a42_0x3f0b,_0x4e2abd=_0x234a8a[_0xd196cd(0x12a)]('global')?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x4e2abd};}export const configListDefinition={'service':a42_0x10097f(0x123),'command':a42_0x10097f(0x124),'description':a42_0x10097f(0x127),'risk':a42_0x10097f(0x126),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a42_0x10097f(0x12d),'type':a42_0x10097f(0x11f),'description':a42_0x10097f(0x128),'default':![]}],'execute':execute};
1
+ const a42_0x30fd09=a42_0xdbaf;(function(_0x1840ec,_0x5836d0){const _0x4708d6=a42_0xdbaf,_0x536083=_0x1840ec();while(!![]){try{const _0x15fb38=parseInt(_0x4708d6(0x189))/0x1*(parseInt(_0x4708d6(0x180))/0x2)+-parseInt(_0x4708d6(0x17b))/0x3+parseInt(_0x4708d6(0x188))/0x4+parseInt(_0x4708d6(0x183))/0x5*(parseInt(_0x4708d6(0x17d))/0x6)+parseInt(_0x4708d6(0x17e))/0x7+parseInt(_0x4708d6(0x185))/0x8*(-parseInt(_0x4708d6(0x181))/0x9)+-parseInt(_0x4708d6(0x187))/0xa;if(_0x15fb38===_0x5836d0)break;else _0x536083['push'](_0x536083['shift']());}catch(_0x326bfe){_0x536083['push'](_0x536083['shift']());}}}(a42_0x1356,0x9ba7c));import{readScopedConfig}from'../../commands/config/shared.js';function a42_0x1356(){const _0x4a3b08=['List\x20all\x20config\x20values','262DLoKFY','18kBNsws','global','4644830mdhooD','boolean','1913776VIIpfY','bool','7453590OcRhZA','2410064luOMJU','3099ISrHmP','1505328Iodwbn','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','6BfrQrJ','2979844cveycC'];a42_0x1356=function(){return _0x4a3b08;};return a42_0x1356();}import{readConfig}from'../../utils/config.js';async function execute(_0x198fbf){const _0x4b14a0=a42_0xdbaf,_0x9888c2=_0x198fbf[_0x4b14a0(0x186)](_0x4b14a0(0x182))?readScopedConfig(_0x4b14a0(0x182)):readConfig();return{'ok':!![],'data':_0x9888c2};}function a42_0xdbaf(_0x12685f,_0x10f619){_0x12685f=_0x12685f-0x17b;const _0x13567c=a42_0x1356();let _0xdbafff=_0x13567c[_0x12685f];return _0xdbafff;}export const configListDefinition={'service':'config','command':'list','description':a42_0x30fd09(0x17f),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a42_0x30fd09(0x182),'type':a42_0x30fd09(0x184),'description':a42_0x30fd09(0x17c),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a43_0x26a18f=a43_0x131a;(function(_0x4ae895,_0x4015c4){const _0x9ff473=a43_0x131a,_0x8e6975=_0x4ae895();while(!![]){try{const _0x5085e5=parseInt(_0x9ff473(0x87))/0x1*(-parseInt(_0x9ff473(0x9a))/0x2)+parseInt(_0x9ff473(0x95))/0x3*(parseInt(_0x9ff473(0x97))/0x4)+parseInt(_0x9ff473(0x89))/0x5+parseInt(_0x9ff473(0x9d))/0x6+parseInt(_0x9ff473(0x85))/0x7*(parseInt(_0x9ff473(0x94))/0x8)+-parseInt(_0x9ff473(0x99))/0x9*(parseInt(_0x9ff473(0x80))/0xa)+-parseInt(_0x9ff473(0xa2))/0xb;if(_0x5085e5===_0x4015c4)break;else _0x8e6975['push'](_0x8e6975['shift']());}catch(_0x31c3cf){_0x8e6975['push'](_0x8e6975['shift']());}}}(a43_0x3611,0x1c4fd));import{CliErrors}from'../../errors.js';function a43_0x131a(_0x414cbe,_0x92c1af){_0x414cbe=_0x414cbe-0x78;const _0x361165=a43_0x3611();let _0x131a32=_0x361165[_0x414cbe];return _0x131a32;}import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'./shared.js';function a43_0x3611(){const _0x2779ce=['daily','Project','global','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','appcode','Invalid\x20locale\x20value.','set','268080NRvaVq','2229uzYMXw','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily,\x20online','916rxLHjg','Missing\x20key.','4149tMylcj','2OTtXnF','bool','write','686244QxpnuS','locale','env','Config\x20key','length','330880VFUOVq','includes','value','Set\x20a\x20config\x20value','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','online','config','key','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','production','Usage:\x20','4670mVbRAg','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','riskLevel','Missing\x20value.','app','7RYiOYm','validation','133943ILBkST','string','886220qQdEoH','\x20set\x20to:\x20','str'];a43_0x3611=function(){return _0x2779ce;};return a43_0x3611();}async function execute(_0x36d59f){const _0x461c85=a43_0x131a,_0x1de1be=_0x36d59f[_0x461c85(0x8b)]('key'),_0x22df4a=_0x36d59f['str']('value');if(!_0x1de1be)throw CliErrors[_0x461c85(0x86)](_0x461c85(0x98),_0x461c85(0x7f)+CLI_BIN_NAME+_0x461c85(0x79));if(_0x22df4a===undefined||_0x22df4a==='')throw CliErrors[_0x461c85(0x86)](_0x461c85(0x83),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x22df4a[_0x461c85(0xa1)]>0x1f4)throw CliErrors[_0x461c85(0x86)](_0x461c85(0x81));if(_0x1de1be===_0x461c85(0x9f)&&![_0x461c85(0x7a),_0x461c85(0x7e),_0x461c85(0x8c)][_0x461c85(0xa3)](_0x22df4a))throw CliErrors['validation'](_0x461c85(0x96));if(_0x1de1be===_0x461c85(0x82))throw CliErrors[_0x461c85(0x86)](_0x461c85(0x7d));if(_0x1de1be===_0x461c85(0x9e)&&!normalizeLocale(_0x22df4a))throw CliErrors[_0x461c85(0x86)](_0x461c85(0x92),_0x461c85(0x90));const _0x15be94={'global':_0x36d59f[_0x461c85(0x9b)](_0x461c85(0x8e))},_0x31f1d6=resolveWriteScope(_0x15be94),_0x448769=readScopedConfig(_0x31f1d6);let _0x2fb079=_0x1de1be,_0x5c2a8f=_0x22df4a;_0x1de1be===_0x461c85(0x84)&&(_0x2fb079='appcode',delete _0x448769[_0x461c85(0x84)]);_0x1de1be===_0x461c85(0x91)&&delete _0x448769['app'];_0x1de1be===_0x461c85(0x9e)&&(_0x5c2a8f=normalizeLocale(_0x22df4a));_0x448769[_0x2fb079]=_0x5c2a8f,writeScopedConfig(_0x448769,_0x31f1d6);const _0x2abc97=_0x31f1d6===_0x461c85(0x8e)?'Global':_0x461c85(0x8d);return{'ok':!![],'message':'✓\x20'+_0x2abc97+'\x20'+_0x2fb079+_0x461c85(0x8a)+_0x5c2a8f};}export const configSetDefinition={'service':a43_0x26a18f(0x7b),'command':a43_0x26a18f(0x93),'description':a43_0x26a18f(0x78),'risk':a43_0x26a18f(0x9c),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x26a18f(0x7c),'type':'string','description':a43_0x26a18f(0xa0),'required':!![]},{'name':a43_0x26a18f(0xa4),'type':a43_0x26a18f(0x88),'description':'Config\x20value','required':!![]},{'name':a43_0x26a18f(0x8e),'type':'boolean','description':a43_0x26a18f(0x8f),'default':![]}],'execute':execute};
1
+ const a43_0x2b3799=a43_0x5e5b;function a43_0x5e5b(_0x550f74,_0xda0767){_0x550f74=_0x550f74-0x141;const _0x244135=a43_0x2441();let _0x5e5b0f=_0x244135[_0x550f74];return _0x5e5b0f;}(function(_0x35679e,_0x1fb6a9){const _0x331611=a43_0x5e5b,_0x4c23fb=_0x35679e();while(!![]){try{const _0x112d81=parseInt(_0x331611(0x153))/0x1+parseInt(_0x331611(0x165))/0x2*(-parseInt(_0x331611(0x14f))/0x3)+parseInt(_0x331611(0x14e))/0x4*(-parseInt(_0x331611(0x15b))/0x5)+-parseInt(_0x331611(0x142))/0x6+-parseInt(_0x331611(0x156))/0x7+-parseInt(_0x331611(0x143))/0x8+parseInt(_0x331611(0x158))/0x9;if(_0x112d81===_0x1fb6a9)break;else _0x4c23fb['push'](_0x4c23fb['shift']());}catch(_0x54ee4a){_0x4c23fb['push'](_0x4c23fb['shift']());}}}(a43_0x2441,0xd8e01));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';async function execute(_0x39ba1b){const _0x49147f=a43_0x5e5b,_0x566454=_0x39ba1b[_0x49147f(0x15a)]('key'),_0x1adfa3=_0x39ba1b['str'](_0x49147f(0x163));if(!_0x566454)throw CliErrors[_0x49147f(0x161)](_0x49147f(0x155),_0x49147f(0x154)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x1adfa3===undefined||_0x1adfa3==='')throw CliErrors['validation'](_0x49147f(0x14c),_0x49147f(0x154)+CLI_BIN_NAME+_0x49147f(0x14b));if(_0x1adfa3[_0x49147f(0x166)]>0x1f4)throw CliErrors[_0x49147f(0x161)](_0x49147f(0x151));if(_0x566454==='env'&&!['online',_0x49147f(0x146),_0x49147f(0x15e)][_0x49147f(0x148)](_0x1adfa3))throw CliErrors[_0x49147f(0x161)](_0x49147f(0x144));if(_0x566454===_0x49147f(0x14d))throw CliErrors[_0x49147f(0x161)](_0x49147f(0x149));if(_0x566454===_0x49147f(0x159)&&!normalizeLocale(_0x1adfa3))throw CliErrors[_0x49147f(0x161)]('Invalid\x20locale\x20value.',_0x49147f(0x168));const _0x8caa80={'global':_0x39ba1b[_0x49147f(0x141)](_0x49147f(0x15c))},_0x411ba7=resolveWriteScope(_0x8caa80),_0x19f384=readScopedConfig(_0x411ba7);let _0xffa54=_0x566454,_0x5572d4=_0x1adfa3;_0x566454===_0x49147f(0x147)&&(_0xffa54=_0x49147f(0x15f),delete _0x19f384[_0x49147f(0x147)]);_0x566454===_0x49147f(0x15f)&&delete _0x19f384[_0x49147f(0x147)];_0x566454==='locale'&&(_0x5572d4=normalizeLocale(_0x1adfa3));_0x19f384[_0xffa54]=_0x5572d4,writeScopedConfig(_0x19f384,_0x411ba7);const _0x4c929c=_0x411ba7===_0x49147f(0x15c)?_0x49147f(0x162):_0x49147f(0x145);return{'ok':!![],'message':'✓\x20'+_0x4c929c+'\x20'+_0xffa54+_0x49147f(0x167)+_0x5572d4};}function a43_0x2441(){const _0x5d59aa=['value','key','480838sMwdfY','length','\x20set\x20to:\x20','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','bool','7187424bKDhRO','13374264HlKsWE','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily,\x20online','Project','production','app','includes','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Config\x20key','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Missing\x20value.','riskLevel','56920lSHTrG','3cqihnC','write','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Config\x20value','318945rPFvKA','Usage:\x20','Missing\x20key.','249228MHksge','string','34076124yNuloR','locale','str','25zUNEho','global','set','daily','appcode','boolean','validation','Global'];a43_0x2441=function(){return _0x5d59aa;};return a43_0x2441();}export const configSetDefinition={'service':'config','command':a43_0x2b3799(0x15d),'description':'Set\x20a\x20config\x20value','risk':a43_0x2b3799(0x150),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x2b3799(0x164),'type':a43_0x2b3799(0x157),'description':a43_0x2b3799(0x14a),'required':!![]},{'name':a43_0x2b3799(0x163),'type':a43_0x2b3799(0x157),'description':a43_0x2b3799(0x152),'required':!![]},{'name':a43_0x2b3799(0x15c),'type':a43_0x2b3799(0x160),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a44_0x545e46=a44_0x3be1;(function(_0x13d4f0,_0x436b34){const _0x262670=a44_0x3be1,_0x2864c3=_0x13d4f0();while(!![]){try{const _0x23804c=-parseInt(_0x262670(0x1d0))/0x1+parseInt(_0x262670(0x1c9))/0x2+-parseInt(_0x262670(0x1c7))/0x3+-parseInt(_0x262670(0x1d3))/0x4*(parseInt(_0x262670(0x1d5))/0x5)+parseInt(_0x262670(0x1d1))/0x6*(parseInt(_0x262670(0x1d2))/0x7)+parseInt(_0x262670(0x1ce))/0x8*(parseInt(_0x262670(0x1cb))/0x9)+-parseInt(_0x262670(0x1c8))/0xa*(-parseInt(_0x262670(0x1ca))/0xb);if(_0x23804c===_0x436b34)break;else _0x2864c3['push'](_0x2864c3['shift']());}catch(_0x2ac659){_0x2864c3['push'](_0x2864c3['shift']());}}}(a44_0x4023,0x4d674));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';export{CLI_BIN_NAME};function a44_0x3be1(_0x2161ae,_0x58c332){_0x2161ae=_0x2161ae-0x1c7;const _0x40236b=a44_0x4023();let _0x3be178=_0x40236b[_0x2161ae];return _0x3be178;}const LOCALE_MAP={'zh':'zh-CN','zh-cn':a44_0x545e46(0x1cd),'zh_cn':a44_0x545e46(0x1cd),'en':a44_0x545e46(0x1cf),'en-us':a44_0x545e46(0x1cf),'en_us':a44_0x545e46(0x1cf)};export function normalizeLocale(_0x1a36bf){const _0x5539a5=a44_0x545e46;if(!_0x1a36bf)return null;return LOCALE_MAP[_0x1a36bf[_0x5539a5(0x1cc)]()]??null;}export function resolveWriteScope(_0x31e17d){const _0x1330f1=a44_0x545e46;if(_0x31e17d[_0x1330f1(0x1d4)])return _0x1330f1(0x1d4);return isInProject()?'project':_0x1330f1(0x1d4);}export function readScopedConfig(_0x11b10c){return readConfigFile(resolveWriteConfigPath(_0x11b10c));}function a44_0x4023(){const _0x57cbf1=['849714QxIxpS','7iwEKxj','1488296PDUVcm','global','5mzuqpT','1587243HiynpN','460XdFOMS','860048qxVBRP','145156QDQhoj','6246NlfKfO','toLowerCase','zh-CN','4400lgpLbF','en-US','342160DqGNXR'];a44_0x4023=function(){return _0x57cbf1;};return a44_0x4023();}export function writeScopedConfig(_0x3a6622,_0x1c60c1){writeConfigFile(resolveWriteConfigPath(_0x1c60c1),_0x3a6622);}
1
+ const a44_0x1862ea=a44_0x5a1c;function a44_0x3149(){const _0x5fc8f4=['en-US','4222194MtADgR','44107010Vidrwq','4fdwKYR','zh-CN','2763918AeaofA','766080DHmspH','12sEJKHr','2612235rdmVmH','12289088DXHViE','project','2629032jcXavk','global','9icUcWd'];a44_0x3149=function(){return _0x5fc8f4;};return a44_0x3149();}(function(_0x132f08,_0x400335){const _0x7a2721=a44_0x5a1c,_0x18f76f=_0x132f08();while(!![]){try{const _0x1ceecb=parseInt(_0x7a2721(0x17f))/0x1+parseInt(_0x7a2721(0x17e))/0x2+-parseInt(_0x7a2721(0x17a))/0x3*(-parseInt(_0x7a2721(0x17c))/0x4)+-parseInt(_0x7a2721(0x181))/0x5+parseInt(_0x7a2721(0x180))/0x6*(parseInt(_0x7a2721(0x176))/0x7)+parseInt(_0x7a2721(0x174))/0x8+parseInt(_0x7a2721(0x178))/0x9*(-parseInt(_0x7a2721(0x17b))/0xa);if(_0x1ceecb===_0x400335)break;else _0x18f76f['push'](_0x18f76f['shift']());}catch(_0x27ffe6){_0x18f76f['push'](_0x18f76f['shift']());}}}(a44_0x3149,0xde109));import{CLI_BIN_NAME}from'../../constant/cli.js';function a44_0x5a1c(_0x69f2c3,_0x1b9ab6){_0x69f2c3=_0x69f2c3-0x174;const _0x314956=a44_0x3149();let _0x5a1cc3=_0x314956[_0x69f2c3];return _0x5a1cc3;}import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';export{CLI_BIN_NAME};const LOCALE_MAP={'zh':a44_0x1862ea(0x17d),'zh-cn':a44_0x1862ea(0x17d),'zh_cn':a44_0x1862ea(0x17d),'en':a44_0x1862ea(0x179),'en-us':a44_0x1862ea(0x179),'en_us':a44_0x1862ea(0x179)};export function normalizeLocale(_0x5a4264){if(!_0x5a4264)return null;return LOCALE_MAP[_0x5a4264['toLowerCase']()]??null;}export function resolveWriteScope(_0x5a86d1){const _0x26e71b=a44_0x1862ea;if(_0x5a86d1[_0x26e71b(0x177)])return'global';return isInProject()?_0x26e71b(0x175):_0x26e71b(0x177);}export function readScopedConfig(_0x466046){return readConfigFile(resolveWriteConfigPath(_0x466046));}export function writeScopedConfig(_0x23dea1,_0x3ea940){writeConfigFile(resolveWriteConfigPath(_0x3ea940),_0x23dea1);}
@@ -1 +1 @@
1
- function a45_0x9dc6(_0x5d683d,_0x4667e0){_0x5d683d=_0x5d683d-0xfb;const _0x1f8150=a45_0x1f81();let _0x9dc6e1=_0x1f8150[_0x5d683d];return _0x9dc6e1;}function a45_0x1f81(){const _0x2b3ab4=['relations','description','toFieldLabel','dbId','indexes','required','doType','detail','bool','isArray','dbtableConfig','push','displayName','filter','length','object','fields','603866dRYrIN','name','tableName','string','dataset','dbName','code','5372731VjuHVO','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','toDatasetName','str','verbose','path','pkField','operations','toDatasetCode','read','modelId','boolean','1390236ABpgpU','Return\x20full\x20raw\x20detail\x20object','12222LZIgnh','66243PkyOxI','deleted','1566145dWcwmp','alias','method','datasetKey','348716XjQisB','extend','options','dbType','fromField'];a45_0x1f81=function(){return _0x2b3ab4;};return a45_0x1f81();}const a45_0x4a5afd=a45_0x9dc6;(function(_0x4cac5f,_0x255b6d){const _0x181d55=a45_0x9dc6,_0x30148f=_0x4cac5f();while(!![]){try{const _0x16c4b1=-parseInt(_0x181d55(0x11a))/0x1+-parseInt(_0x181d55(0x104))/0x2+parseInt(_0x181d55(0x119))/0x3+-parseInt(_0x181d55(0x120))/0x4+-parseInt(_0x181d55(0x11c))/0x5+parseInt(_0x181d55(0x117))/0x6+parseInt(_0x181d55(0x10b))/0x7;if(_0x16c4b1===_0x255b6d)break;else _0x30148f['push'](_0x30148f['shift']());}catch(_0x1fe6ad){_0x30148f['push'](_0x30148f['shift']());}}}(a45_0x1f81,0x394e9));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';function normalizeField(_0x18dbac){const _0x539daf=a45_0x9dc6;if(_0x18dbac[_0x539daf(0x11b)])return null;const _0x308860=Boolean(_0x18dbac['displayName']!==undefined||_0x18dbac['doType']!==undefined);let _0x676a09={};if(!_0x308860&&typeof _0x18dbac[_0x539daf(0x121)]===_0x539daf(0x107))try{_0x676a09=JSON['parse'](_0x18dbac[_0x539daf(0x121)]);}catch{}const _0x17886e=_0x308860?_0x18dbac[_0x539daf(0x105)]:_0x18dbac[_0x539daf(0x10a)],_0x4bf290=_0x308860?_0x18dbac[_0x539daf(0xff)]:_0x18dbac['name'],_0x4dc035=_0x308860?_0x18dbac[_0x539daf(0x12b)]:_0x18dbac['type']||_0x18dbac['dataType'],_0x5b54fc=_0x308860?_0x18dbac['pkField']===!![]:_0x676a09[_0x539daf(0x111)]===!![],_0xdb18cb=_0x308860?_0x18dbac[_0x539daf(0x12a)]===!![]:_0x676a09[_0x539daf(0x12a)]===!![],_0x5e6c12=_0x308860?_0x18dbac[_0x539daf(0x122)]??null:_0x676a09['options']??null,_0x4b209e={'name':_0x17886e,'displayName':_0x4bf290||_0x17886e,'type':_0x4dc035,'dbType':_0x18dbac[_0x539daf(0x123)],'pk':_0x5b54fc,'required':_0xdb18cb,'description':_0x18dbac[_0x539daf(0x126)]||undefined};return Array[_0x539daf(0xfc)](_0x5e6c12)&&_0x5e6c12['length']>0x0&&(_0x4b209e[_0x539daf(0x122)]=_0x5e6c12),_0x4b209e;}export const datasetDetail={'service':a45_0x4a5afd(0x108),'command':a45_0x4a5afd(0x12c),'description':a45_0x4a5afd(0x10c),'risk':a45_0x4a5afd(0x114),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a45_0x4a5afd(0x11d),'type':a45_0x4a5afd(0x107),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'},{'name':a45_0x4a5afd(0x10f),'type':a45_0x4a5afd(0x116),'description':a45_0x4a5afd(0x118)}],async 'execute'(_0x5a975e){const _0x1ad99d=a45_0x4a5afd,_0x595d86=await getDatasetDetail(_0x5a975e[_0x1ad99d(0x10e)]('code')),_0x30026e=_0x5a975e[_0x1ad99d(0xfb)](_0x1ad99d(0x10f));if(_0x30026e)return{'ok':!![],'data':_0x595d86};const _0x50f764=Array[_0x1ad99d(0xfc)](_0x595d86['fields'])?_0x595d86[_0x1ad99d(0x103)]:Array[_0x1ad99d(0xfc)](_0x595d86['properties'])?_0x595d86['properties']:[],_0x23490a=_0x50f764['map'](_0x388eb1=>normalizeField(_0x388eb1))[_0x1ad99d(0x100)](_0x4bf46b=>_0x4bf46b!==null),_0x5d747a=_0x595d86[_0x1ad99d(0x112)]??{},_0x4ce98c=[];for(const [_0x5a3830,_0x3d7017]of Object['entries'](_0x5d747a)){if(_0x3d7017&&typeof _0x3d7017===_0x1ad99d(0x102)){const _0x53612d=_0x3d7017;_0x53612d[_0x1ad99d(0x11e)]&&_0x53612d[_0x1ad99d(0x110)]&&_0x4ce98c[_0x1ad99d(0xfe)]({'name':_0x5a3830,'method':_0x53612d[_0x1ad99d(0x11e)],'path':_0x53612d[_0x1ad99d(0x110)]});}}const _0x58d309=_0x595d86[_0x1ad99d(0xfd)]??{},_0xa51c9a=_0x595d86[_0x1ad99d(0x108)]??{},_0x25b829=_0x58d309['dbId']!=null?{'id':_0x58d309[_0x1ad99d(0x128)],'name':_0x58d309[_0x1ad99d(0x109)]??null}:undefined;return{'ok':!![],'data':{'id':_0x595d86[_0x1ad99d(0x115)]??_0x595d86['id'],'name':_0x595d86['name'],'code':_0x595d86['modelCode']||_0x595d86[_0x1ad99d(0x10a)],'description':_0x595d86['description']||_0xa51c9a['tableComment']||undefined,'source':_0x595d86['source']||_0xa51c9a['sourceType'],'table':_0x58d309[_0x1ad99d(0x106)]||_0xa51c9a[_0x1ad99d(0x106)],'datasetKey':_0x58d309[_0x1ad99d(0x11f)],'pk':_0x58d309[_0x1ad99d(0x111)],'db':_0x25b829,'fields':_0x23490a,'operations':_0x4ce98c,'indexes':Array['isArray'](_0xa51c9a['indexes'])?_0xa51c9a[_0x1ad99d(0x129)]:[],'relations':Array[_0x1ad99d(0xfc)](_0x595d86['relations'])?_0x595d86[_0x1ad99d(0x125)]['map'](_0x4ecccb=>({'fromField':_0x4ecccb[_0x1ad99d(0x124)],'toDataset':_0x4ecccb[_0x1ad99d(0x10d)],'toCode':_0x4ecccb[_0x1ad99d(0x113)],'toTable':_0x4ecccb['toTableName'],'toField':_0x4ecccb['toField'],'labelField':_0x4ecccb[_0x1ad99d(0x127)]||undefined})):[],'stats':{'fieldCount':_0x23490a[_0x1ad99d(0x101)],'operationCount':_0x4ce98c[_0x1ad99d(0x101)]}}};}};
1
+ const a45_0x2763f5=a45_0x34f4;(function(_0x3132fb,_0x2bf60d){const _0x108bda=a45_0x34f4,_0x102c72=_0x3132fb();while(!![]){try{const _0x112683=parseInt(_0x108bda(0xdb))/0x1+parseInt(_0x108bda(0x105))/0x2*(parseInt(_0x108bda(0xf1))/0x3)+-parseInt(_0x108bda(0xe2))/0x4*(parseInt(_0x108bda(0xd6))/0x5)+parseInt(_0x108bda(0x106))/0x6*(parseInt(_0x108bda(0x102))/0x7)+parseInt(_0x108bda(0xeb))/0x8*(-parseInt(_0x108bda(0xee))/0x9)+parseInt(_0x108bda(0xf8))/0xa+parseInt(_0x108bda(0xec))/0xb*(-parseInt(_0x108bda(0xd7))/0xc);if(_0x112683===_0x2bf60d)break;else _0x102c72['push'](_0x102c72['shift']());}catch(_0x15ea1c){_0x102c72['push'](_0x102c72['shift']());}}}(a45_0x1c9f,0x8e8be));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a45_0x34f4(_0x200912,_0x758e83){_0x200912=_0x200912-0xd0;const _0x1c9f19=a45_0x1c9f();let _0x34f486=_0x1c9f19[_0x200912];return _0x34f486;}function normalizeField(_0xff96a3){const _0x18d395=a45_0x34f4;if(_0xff96a3[_0x18d395(0xed)])return null;const _0x539aae=Boolean(_0xff96a3[_0x18d395(0xe5)]!==undefined||_0xff96a3[_0x18d395(0xfc)]!==undefined);let _0x114e52={};if(!_0x539aae&&typeof _0xff96a3[_0x18d395(0xd2)]==='string')try{_0x114e52=JSON[_0x18d395(0xdc)](_0xff96a3[_0x18d395(0xd2)]);}catch{}const _0x2716e6=_0x539aae?_0xff96a3[_0x18d395(0x11d)]:_0xff96a3[_0x18d395(0x101)],_0x5f57d7=_0x539aae?_0xff96a3[_0x18d395(0xe5)]:_0xff96a3[_0x18d395(0x11d)],_0x42d9c2=_0x539aae?_0xff96a3[_0x18d395(0xfc)]:_0xff96a3[_0x18d395(0xd0)]||_0xff96a3[_0x18d395(0x108)],_0x16ffb7=_0x539aae?_0xff96a3[_0x18d395(0x11c)]===!![]:_0x114e52[_0x18d395(0x11c)]===!![],_0x496d5e=_0x539aae?_0xff96a3[_0x18d395(0xf6)]===!![]:_0x114e52['required']===!![],_0x4a12a2=_0x539aae?_0xff96a3[_0x18d395(0xf9)]??null:_0x114e52[_0x18d395(0xf9)]??null,_0x3acc57={'name':_0x2716e6,'displayName':_0x5f57d7||_0x2716e6,'type':_0x42d9c2,'dbType':_0xff96a3['dbType'],'pk':_0x16ffb7,'required':_0x496d5e,'description':_0xff96a3[_0x18d395(0x10c)]||undefined};return Array['isArray'](_0x4a12a2)&&_0x4a12a2[_0x18d395(0x10a)]>0x0&&(_0x3acc57[_0x18d395(0xf9)]=_0x4a12a2),_0x3acc57;}function parseJsonMaybe(_0x127f30){const _0xa75fe=a45_0x34f4;if(typeof _0x127f30!==_0xa75fe(0xe4))return _0x127f30;try{return JSON['parse'](_0x127f30);}catch{return _0x127f30;}}function normalizeOperationEntry(_0x1fee69,_0xfd9b4e){const _0x5e3c00=a45_0x34f4;if(!_0xfd9b4e||typeof _0xfd9b4e!==_0x5e3c00(0x10e))return null;if(!_0xfd9b4e[_0x5e3c00(0x11f)]||!_0xfd9b4e[_0x5e3c00(0x103)])return null;const _0x2b0348={'name':_0x1fee69,'method':_0xfd9b4e[_0x5e3c00(0x11f)],'path':_0xfd9b4e['path']};if(_0xfd9b4e[_0x5e3c00(0xea)])_0x2b0348['host']=_0xfd9b4e['host'];if(_0xfd9b4e[_0x5e3c00(0xf5)]!=null){const _0x42e71f=parseJsonMaybe(_0xfd9b4e[_0x5e3c00(0xf5)]);_0x2b0348[_0x5e3c00(0xf5)]=_0x42e71f;}if(_0xfd9b4e[_0x5e3c00(0x113)]!=null){const _0x5b9c30=parseJsonMaybe(_0xfd9b4e['responseBody']);_0x2b0348[_0x5e3c00(0x113)]=_0x5b9c30;}if(_0xfd9b4e['beforeScriptId']!=null)_0x2b0348[_0x5e3c00(0xfa)]=_0xfd9b4e[_0x5e3c00(0xfa)];if(_0xfd9b4e[_0x5e3c00(0xf0)]!=null)_0x2b0348['afterScriptId']=_0xfd9b4e['afterScriptId'];if(Array['isArray'](_0xfd9b4e[_0x5e3c00(0xe1)]))_0x2b0348['requestFields']=_0xfd9b4e['requestFields'];if(Array['isArray'](_0xfd9b4e[_0x5e3c00(0x109)]))_0x2b0348[_0x5e3c00(0x109)]=_0xfd9b4e['responseFields'];return _0x2b0348;}function summarizeDbtable(_0xff1840){const _0x4779fa=a45_0x34f4,_0x14b00b={},_0x11cb84=['dbId','dbName',_0x4779fa(0xfd),'datasetKey',_0x4779fa(0x11c),_0x4779fa(0x11b),_0x4779fa(0x110),_0x4779fa(0xf3),_0x4779fa(0x112),_0x4779fa(0x111),_0x4779fa(0xde),_0x4779fa(0x114),'modifierNameField',_0x4779fa(0x10d),_0x4779fa(0x116)];for(const _0x3c75ba of _0x11cb84){if(_0xff1840[_0x3c75ba]!==undefined)_0x14b00b[_0x3c75ba]=_0xff1840[_0x3c75ba];}return typeof _0x14b00b[_0x4779fa(0x11b)]===_0x4779fa(0xe4)&&_0x14b00b[_0x4779fa(0x11b)][_0x4779fa(0x10a)]>0x0&&(_0x14b00b[_0x4779fa(0x100)]=_0x14b00b[_0x4779fa(0x11b)][_0x4779fa(0x11a)](',')[_0x4779fa(0xd5)](_0x3df39a=>_0x3df39a['trim']())[_0x4779fa(0xff)](Boolean)),_0x14b00b;}function a45_0x1c9f(){const _0x85f78f=['fields','createTimeField','relations','requestBody','required','toDatasetName','2845940bcaGeX','options','beforeScriptId','dbtableConfig','doType','tableName','push','filter','allFieldNames','code','189lrmrjp','path','alias','1058ngyAIq','138114qvDDRL','modelCode','dataType','responseFields','length','sourceType','description','labelField','object','entries','logicField','creatorIdField','updateTimeField','responseBody','modifierIdField','read','dblinkInfoDTO','modelId','validateRules','toField','split','allFields','pkField','name','columnCodeListWithDeleted','method','type','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','extend','toDatasetCode','fromField','map','2835GSXRRh','69576QFeylx','detail','dataset','formatRules','691609AEKFZb','parse','operations','creatorNameField','tableComment','source','requestFields','3476fthlWK','dbId','string','displayName','isArray','datasetKey','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','properties','host','8ovkwPu','2431EWDHtH','deleted','2760822fYJPYO','indexes','afterScriptId','6051KJeifQ'];a45_0x1c9f=function(){return _0x85f78f;};return a45_0x1c9f();}function normalizeRelatedPages(_0xe80e68){const _0x439a89=a45_0x34f4;if(!Array[_0x439a89(0xe6)](_0xe80e68))return[];return _0xe80e68['filter'](_0x584108=>_0x584108&&typeof _0x584108==='object')[_0x439a89(0xd5)](_0x2a28a9=>({'id':_0x2a28a9['id'],'type':_0x2a28a9[_0x439a89(0xd0)],'code':_0x2a28a9['code'],'title':_0x2a28a9['title'],'deleted':_0x2a28a9[_0x439a89(0xed)]===!![]}));}export const datasetDetail={'service':a45_0x2763f5(0xd9),'command':a45_0x2763f5(0xd8),'description':a45_0x2763f5(0xd1),'risk':a45_0x2763f5(0x115),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a45_0x2763f5(0x104),'type':a45_0x2763f5(0xe4),'description':a45_0x2763f5(0xe8)}],async 'execute'(_0x5effce){const _0x515d3a=a45_0x2763f5,_0x29ff94=await getDatasetDetail(_0x5effce['str']('code')),_0x265300=Array[_0x515d3a(0xe6)](_0x29ff94[_0x515d3a(0xf2)])?_0x29ff94[_0x515d3a(0xf2)]:Array['isArray'](_0x29ff94['properties'])?_0x29ff94[_0x515d3a(0xe9)]:[],_0x31b4a3=_0x265300[_0x515d3a(0xd5)](_0x20275e=>normalizeField(_0x20275e))[_0x515d3a(0xff)](_0x16c1d7=>_0x16c1d7!==null),_0x2840c2=_0x29ff94[_0x515d3a(0xdd)]??{},_0x36cfb8=[];for(const [_0x43fa2b,_0x2fa43b]of Object[_0x515d3a(0x10f)](_0x2840c2)){const _0x3e1b6c=normalizeOperationEntry(_0x43fa2b,_0x2fa43b);if(_0x3e1b6c)_0x36cfb8[_0x515d3a(0xfe)](_0x3e1b6c);}const _0x286ef1=_0x29ff94[_0x515d3a(0xfb)]??{},_0xc8a304=_0x29ff94[_0x515d3a(0xd9)]??{},_0x186547=_0x286ef1[_0x515d3a(0xe3)]!=null?{'id':_0x286ef1[_0x515d3a(0xe3)],'name':_0x286ef1['dbName']??null}:undefined;let _0x5c4e15;return typeof _0x29ff94[_0x515d3a(0xd2)]===_0x515d3a(0xe4)&&(_0x5c4e15=parseJsonMaybe(_0x29ff94[_0x515d3a(0xd2)])),{'ok':!![],'data':{'id':_0x29ff94[_0x515d3a(0x117)]??_0x29ff94['id'],'name':_0x29ff94[_0x515d3a(0x11d)],'code':_0x29ff94[_0x515d3a(0x107)]||_0x29ff94['code'],'doVersion':_0x29ff94['doVersion'],'description':_0x29ff94[_0x515d3a(0x10c)]||_0xc8a304[_0x515d3a(0xdf)]||undefined,'source':_0x29ff94[_0x515d3a(0xe0)]||_0xc8a304[_0x515d3a(0x10b)],'table':_0x286ef1[_0x515d3a(0xfd)]||_0xc8a304[_0x515d3a(0xfd)],'datasetKey':_0x286ef1[_0x515d3a(0xe7)],'pk':_0x286ef1[_0x515d3a(0x11c)],'db':_0x186547,'dbtable':summarizeDbtable(_0x286ef1),'fields':_0x31b4a3,'operations':_0x36cfb8,'indexes':Array['isArray'](_0xc8a304[_0x515d3a(0xef)])?_0xc8a304['indexes']:[],'relations':Array[_0x515d3a(0xe6)](_0x29ff94[_0x515d3a(0xf4)])?_0x29ff94[_0x515d3a(0xf4)][_0x515d3a(0xd5)](_0x5b82d0=>({'fromField':_0x5b82d0[_0x515d3a(0xd4)],'toDataset':_0x5b82d0[_0x515d3a(0xf7)],'toCode':_0x5b82d0[_0x515d3a(0xd3)],'toTable':_0x5b82d0['toTableName'],'toField':_0x5b82d0[_0x515d3a(0x119)],'labelField':_0x5b82d0['toFieldLabel']||undefined})):[],'relatedPages':normalizeRelatedPages(_0x29ff94['relatedPageInfoList']),...Array['isArray'](_0x29ff94[_0x515d3a(0x11e)])?{'columnCodeListWithDeleted':_0x29ff94[_0x515d3a(0x11e)]}:{},'formatRules':Array['isArray'](_0x29ff94['formatRules'])?_0x29ff94[_0x515d3a(0xda)]:[],'validateRules':Array[_0x515d3a(0xe6)](_0x29ff94[_0x515d3a(0x118)])?_0x29ff94[_0x515d3a(0x118)]:[],..._0x5c4e15!==undefined?{'extend':_0x5c4e15}:{},'stats':{'fieldCount':_0x31b4a3[_0x515d3a(0x10a)],'operationCount':_0x36cfb8[_0x515d3a(0x10a)]}}};}};
@@ -1 +1 @@
1
- (function(_0x27c5e3,_0x4e3b77){const _0x562001=a46_0x22f5,_0x517578=_0x27c5e3();while(!![]){try{const _0x401d14=parseInt(_0x562001(0x16e))/0x1*(-parseInt(_0x562001(0x172))/0x2)+parseInt(_0x562001(0x173))/0x3+parseInt(_0x562001(0x170))/0x4+-parseInt(_0x562001(0x175))/0x5*(-parseInt(_0x562001(0x176))/0x6)+-parseInt(_0x562001(0x177))/0x7*(-parseInt(_0x562001(0x16f))/0x8)+-parseInt(_0x562001(0x16d))/0x9*(parseInt(_0x562001(0x171))/0xa)+parseInt(_0x562001(0x174))/0xb;if(_0x401d14===_0x4e3b77)break;else _0x517578['push'](_0x517578['shift']());}catch(_0x48834c){_0x517578['push'](_0x517578['shift']());}}}(a46_0x3dc9,0x3cc2d));import{datasetList}from'./list.js';import{datasetDetail}from'./detail.js';import{datasetOperations}from'./operations.js';function a46_0x3dc9(){const _0x1c932d=['1116844oiEJhT','1130YRJQzi','522bURNGt','208992WKWOTn','3907442rtUvvw','10pxSqac','60888uaIFKf','21YZPAxc','8658QRAYDk','1409FDAESt','2504fgfEmo'];a46_0x3dc9=function(){return _0x1c932d;};return a46_0x3dc9();}import{datasetLinks}from'./links.js';function a46_0x22f5(_0x1d8787,_0x3bd276){_0x1d8787=_0x1d8787-0x16d;const _0x3dc975=a46_0x3dc9();let _0x22f5ec=_0x3dc975[_0x1d8787];return _0x22f5ec;}export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
1
+ function a46_0x1523(){const _0xae3c0c=['356774rRWlLU','942864AcJFCn','6055951lTCvDI','24uLWGyv','20436HFFATf','1051028noIPzR','10scQEGO','575163nsURrP','432xPSpZn','1757uSufjW','10oMNebU','156FBSceb','6dwkWBr'];a46_0x1523=function(){return _0xae3c0c;};return a46_0x1523();}function a46_0x1cbd(_0x11d0f8,_0x206542){_0x11d0f8=_0x11d0f8-0xd4;const _0x1523bb=a46_0x1523();let _0x1cbd53=_0x1523bb[_0x11d0f8];return _0x1cbd53;}(function(_0x4c5c2d,_0x51fba1){const _0x168545=a46_0x1cbd,_0x3a9960=_0x4c5c2d();while(!![]){try{const _0x5b73cc=-parseInt(_0x168545(0xd5))/0x1*(-parseInt(_0x168545(0xd6))/0x2)+-parseInt(_0x168545(0xd7))/0x3+-parseInt(_0x168545(0xdb))/0x4*(parseInt(_0x168545(0xdc))/0x5)+parseInt(_0x168545(0xde))/0x6*(parseInt(_0x168545(0xdf))/0x7)+-parseInt(_0x168545(0xd9))/0x8*(parseInt(_0x168545(0xdd))/0x9)+-parseInt(_0x168545(0xe0))/0xa*(-parseInt(_0x168545(0xd8))/0xb)+parseInt(_0x168545(0xd4))/0xc*(-parseInt(_0x168545(0xda))/0xd);if(_0x5b73cc===_0x51fba1)break;else _0x3a9960['push'](_0x3a9960['shift']());}catch(_0x58a214){_0x3a9960['push'](_0x3a9960['shift']());}}}(a46_0x1523,0x8f4e0));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
@@ -1 +1 @@
1
- const a47_0x55f5a6=a47_0x12e5;function a47_0x823c(){const _0x56bd0e=['Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','datasetCode','129573xdPSQL','datasetId','isPrimaryKey','datasets','read','7803410cZwikK','bool','boolean','toDatasetName','relationCount','isForeignKey','\x20dataset(s),\x20','169000nAowuD','filter','Fetched\x20link\x20graph\x20for\x20','datasetName','meta','relations','18118441CCookK','str','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','tableComment','tableName','LEFT','fields','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','links','stats','reduce','displayName','21eUfPar','map','dbId','toDataset','dbType','verbose','Link\x20graph:\x20','name','306XFWyuy','toField','appCode','33366QZJcGL','2436400MtVOpp','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','fromField','8MshQpr','\x20relation(s)','41LSaCHl','82578DKZWGT','datasetCount','\x20database(s)','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','dataset','length','dbName'];a47_0x823c=function(){return _0x56bd0e;};return a47_0x823c();}(function(_0x282fb3,_0x542956){const _0xeccf67=a47_0x12e5,_0x275ae9=_0x282fb3();while(!![]){try{const _0x304720=-parseInt(_0xeccf67(0xcc))/0x1*(-parseInt(_0xeccf67(0xff))/0x2)+parseInt(_0xeccf67(0xd6))/0x3*(parseInt(_0xeccf67(0x103))/0x4)+-parseInt(_0xeccf67(0x100))/0x5+parseInt(_0xeccf67(0xcd))/0x6*(-parseInt(_0xeccf67(0xf4))/0x7)+parseInt(_0xeccf67(0xe2))/0x8*(-parseInt(_0xeccf67(0xfc))/0x9)+-parseInt(_0xeccf67(0xdb))/0xa+parseInt(_0xeccf67(0xe8))/0xb;if(_0x304720===_0x542956)break;else _0x275ae9['push'](_0x275ae9['shift']());}catch(_0x38c411){_0x275ae9['push'](_0x275ae9['shift']());}}}(a47_0x823c,0x5f4d4));function a47_0x12e5(_0x49cab4,_0x1e6ceb){_0x49cab4=_0x49cab4-0xcb;const _0x823c77=a47_0x823c();let _0x12e567=_0x823c77[_0x49cab4];return _0x12e567;}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':a47_0x55f5a6(0xd1),'command':a47_0x55f5a6(0xf0),'description':a47_0x55f5a6(0xea)+a47_0x55f5a6(0x101)+a47_0x55f5a6(0xd4),'risk':a47_0x55f5a6(0xda),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':'string','description':a47_0x55f5a6(0xef)+'Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.'},{'name':'verbose','type':a47_0x55f5a6(0xdd),'description':a47_0x55f5a6(0xd0)}],async 'execute'(_0x1cdfb1){const _0x3e231b=a47_0x55f5a6,_0x325119=_0x1cdfb1[_0x3e231b(0xdc)](_0x3e231b(0xf9)),{resolved:_0x14a7bc,error:_0x2a5952}=await resolveDb(_0x1cdfb1[_0x3e231b(0xfe)],_0x1cdfb1[_0x3e231b(0xe9)]('db')||undefined);if(_0x2a5952)return{'ok':![],'message':_0x2a5952};const _0x33474b=_0x14a7bc['map'](_0x243c17=>_0x243c17[_0x3e231b(0xf6)]),_0x1237b4=await Promise['all'](_0x33474b[_0x3e231b(0xf5)](_0x2bd78d=>getErConfig(_0x1cdfb1[_0x3e231b(0xfe)],_0x2bd78d)));if(_0x325119)return{'ok':!![],'data':_0x1237b4[_0x3e231b(0xd2)]===0x1?_0x1237b4[0x0]:_0x1237b4,'message':_0x3e231b(0xe4)+_0x33474b[_0x3e231b(0xd2)]+_0x3e231b(0xcf)};const _0x12e966=_0x1237b4[_0x3e231b(0xf5)](_0x201c32=>{const _0x2d0bd6=_0x3e231b,_0x39524e=(_0x201c32['datasets']??[])[_0x2d0bd6(0xf5)](_0x3ff941=>{const _0x2fff6f=_0x2d0bd6,_0x16fb94=_0x3ff941[_0x2fff6f(0xee)]?.[_0x2fff6f(0xe3)](_0x5e6d27=>_0x5e6d27[_0x2fff6f(0xd8)])[_0x2fff6f(0xf5)](_0x41a6aa=>_0x41a6aa[_0x2fff6f(0xfb)])??[],_0x58dadd=_0x3ff941[_0x2fff6f(0xee)]?.[_0x2fff6f(0xe3)](_0x86ed2=>_0x86ed2['isForeignKey'])['map'](_0x50d9fd=>_0x50d9fd[_0x2fff6f(0xfb)])??[];return{'id':_0x3ff941[_0x2fff6f(0xd7)],'name':_0x3ff941[_0x2fff6f(0xe5)],'code':_0x3ff941[_0x2fff6f(0xd5)],'table':_0x3ff941[_0x2fff6f(0xec)],'comment':_0x3ff941[_0x2fff6f(0xeb)]||undefined,'fields':(_0x3ff941[_0x2fff6f(0xee)]??[])[_0x2fff6f(0xf5)](_0x28a30b=>({'name':_0x28a30b[_0x2fff6f(0xfb)],'displayName':_0x28a30b[_0x2fff6f(0xf3)],'type':_0x28a30b[_0x2fff6f(0xf8)],'pk':_0x28a30b[_0x2fff6f(0xd8)],'fk':_0x28a30b[_0x2fff6f(0xe0)]})),'relations':(_0x3ff941[_0x2fff6f(0xe7)]??[])[_0x2fff6f(0xe3)](_0x2d3176=>_0x2d3176['fromField']&&_0x2d3176[_0x2fff6f(0xf7)])[_0x2fff6f(0xf5)](_0x495cc4=>({'from':_0x495cc4[_0x2fff6f(0x102)],'toDataset':_0x495cc4[_0x2fff6f(0xde)],'toCode':_0x495cc4[_0x2fff6f(0xf7)],'toField':_0x495cc4[_0x2fff6f(0xfd)],'joinType':_0x495cc4['joinType']||_0x2fff6f(0xed)})),'stats':{'fieldCount':_0x3ff941[_0x2fff6f(0xee)]?.[_0x2fff6f(0xd2)]??0x0,'pkCount':_0x16fb94[_0x2fff6f(0xd2)],'fkCount':_0x58dadd['length'],'relationCount':_0x3ff941['relations']?.[_0x2fff6f(0xd2)]??0x0}};}),_0x316082=_0x39524e[_0x2d0bd6(0xe3)](_0x38db49=>_0x38db49['stats'][_0x2d0bd6(0xdf)]>0x0)[_0x2d0bd6(0xf5)](_0x7a9781=>_0x7a9781['name']);return{'db':_0x201c32[_0x2d0bd6(0xe6)]?.[_0x2d0bd6(0xd3)],'dbId':_0x201c32[_0x2d0bd6(0xe6)]?.[_0x2d0bd6(0xf6)],'appCode':_0x201c32[_0x2d0bd6(0xe6)]?.[_0x2d0bd6(0xfe)],'datasetCount':_0x39524e['length'],'connectedDatasets':_0x316082,'datasets':_0x39524e};}),_0x4787d4=_0x12e966[_0x3e231b(0xf2)]((_0xcf6e18,_0xead7bd)=>_0xcf6e18+_0xead7bd[_0x3e231b(0xce)],0x0),_0x1da047=_0x12e966[_0x3e231b(0xf2)]((_0x420412,_0x41fbbd)=>_0x420412+_0x41fbbd[_0x3e231b(0xd9)][_0x3e231b(0xf2)]((_0x31a777,_0x296ad9)=>_0x31a777+_0x296ad9[_0x3e231b(0xf1)][_0x3e231b(0xdf)],0x0),0x0);return{'ok':!![],'data':_0x12e966[_0x3e231b(0xd2)]===0x1?_0x12e966[0x0]:{'databases':_0x12e966},'message':_0x3e231b(0xfa)+_0x12e966['length']+'\x20database(s),\x20'+_0x4787d4+_0x3e231b(0xe1)+_0x1da047+_0x3e231b(0xcb)};}};
1
+ const a47_0x2157de=a47_0x2559;(function(_0x5e5826,_0x41d372){const _0x3059d0=a47_0x2559,_0x2d254f=_0x5e5826();while(!![]){try{const _0x148bfc=-parseInt(_0x3059d0(0x1b6))/0x1*(-parseInt(_0x3059d0(0x1bf))/0x2)+parseInt(_0x3059d0(0x1ca))/0x3+parseInt(_0x3059d0(0x1d1))/0x4*(parseInt(_0x3059d0(0x1c1))/0x5)+-parseInt(_0x3059d0(0x1c2))/0x6*(-parseInt(_0x3059d0(0x1d8))/0x7)+-parseInt(_0x3059d0(0x1cd))/0x8+-parseInt(_0x3059d0(0x1e0))/0x9*(parseInt(_0x3059d0(0x1db))/0xa)+-parseInt(_0x3059d0(0x1c3))/0xb*(parseInt(_0x3059d0(0x1c8))/0xc);if(_0x148bfc===_0x41d372)break;else _0x2d254f['push'](_0x2d254f['shift']());}catch(_0x2fddbb){_0x2d254f['push'](_0x2d254f['shift']());}}}(a47_0x22fe,0x45fc8));function a47_0x2559(_0x3294ce,_0x19e4ac){_0x3294ce=_0x3294ce-0x1b4;const _0x22fedf=a47_0x22fe();let _0x255926=_0x22fedf[_0x3294ce];return _0x255926;}import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetLinks={'service':a47_0x2157de(0x1d2),'command':'links','description':'Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20'+a47_0x2157de(0x1b9)+'Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','risk':a47_0x2157de(0x1b8),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':'string','description':a47_0x2157de(0x1de)+a47_0x2157de(0x1c6)},{'name':'verbose','type':'boolean','description':'Return\x20full\x20raw\x20ER\x20response\x20from\x20API'}],async 'execute'(_0xd971a4){const _0x28a07b=a47_0x2157de,_0x2d7140=_0xd971a4['bool'](_0x28a07b(0x1d0)),{resolved:_0x285acf,error:_0x56f2e3}=await resolveDb(_0xd971a4[_0x28a07b(0x1b7)],_0xd971a4['str']('db')||undefined);if(_0x56f2e3)return{'ok':![],'message':_0x56f2e3};const _0xba92cc=_0x285acf[_0x28a07b(0x1c4)](_0x21ce18=>_0x21ce18[_0x28a07b(0x1bb)]),_0x2bb59d=await Promise[_0x28a07b(0x1df)](_0xba92cc[_0x28a07b(0x1c4)](_0x44b0f4=>getErConfig(_0xd971a4[_0x28a07b(0x1b7)],_0x44b0f4)));if(_0x2d7140)return{'ok':!![],'data':_0x2bb59d[_0x28a07b(0x1c9)]===0x1?_0x2bb59d[0x0]:_0x2bb59d,'message':_0x28a07b(0x1bc)+_0xba92cc[_0x28a07b(0x1c9)]+_0x28a07b(0x1c5)};const _0x2c5226=_0x2bb59d['map'](_0x58c293=>{const _0x2bbbbf=_0x28a07b,_0x49c488=(_0x58c293['datasets']??[])['map'](_0x5a6dbb=>{const _0x3dea98=a47_0x2559,_0x34f2e=_0x5a6dbb[_0x3dea98(0x1d4)]?.['filter'](_0x4b9498=>_0x4b9498[_0x3dea98(0x1cb)])[_0x3dea98(0x1c4)](_0x5c03dc=>_0x5c03dc[_0x3dea98(0x1b5)])??[],_0x368439=_0x5a6dbb[_0x3dea98(0x1d4)]?.[_0x3dea98(0x1d9)](_0x234b48=>_0x234b48[_0x3dea98(0x1cc)])[_0x3dea98(0x1c4)](_0x34151d=>_0x34151d[_0x3dea98(0x1b5)])??[];return{'id':_0x5a6dbb[_0x3dea98(0x1ba)],'name':_0x5a6dbb[_0x3dea98(0x1d6)],'code':_0x5a6dbb[_0x3dea98(0x1ce)],'table':_0x5a6dbb['tableName'],'comment':_0x5a6dbb['tableComment']||undefined,'fields':(_0x5a6dbb[_0x3dea98(0x1d4)]??[])['map'](_0x2b3905=>({'name':_0x2b3905['name'],'displayName':_0x2b3905[_0x3dea98(0x1da)],'type':_0x2b3905[_0x3dea98(0x1b4)],'pk':_0x2b3905[_0x3dea98(0x1cb)],'fk':_0x2b3905['isForeignKey']})),'relations':(_0x5a6dbb[_0x3dea98(0x1be)]??[])[_0x3dea98(0x1d9)](_0x1888b8=>_0x1888b8[_0x3dea98(0x1dd)]&&_0x1888b8['toDataset'])['map'](_0x2a64d2=>({'from':_0x2a64d2[_0x3dea98(0x1dd)],'toDataset':_0x2a64d2[_0x3dea98(0x1d5)],'toCode':_0x2a64d2['toDataset'],'toField':_0x2a64d2['toField'],'joinType':_0x2a64d2['joinType']||_0x3dea98(0x1c0)})),'stats':{'fieldCount':_0x5a6dbb[_0x3dea98(0x1d4)]?.['length']??0x0,'pkCount':_0x34f2e[_0x3dea98(0x1c9)],'fkCount':_0x368439[_0x3dea98(0x1c9)],'relationCount':_0x5a6dbb[_0x3dea98(0x1be)]?.[_0x3dea98(0x1c9)]??0x0}};}),_0x4c687d=_0x49c488[_0x2bbbbf(0x1d9)](_0x49b380=>_0x49b380['stats']['relationCount']>0x0)[_0x2bbbbf(0x1c4)](_0x16d772=>_0x16d772[_0x2bbbbf(0x1b5)]);return{'db':_0x58c293[_0x2bbbbf(0x1d7)]?.['dbName'],'dbId':_0x58c293['meta']?.[_0x2bbbbf(0x1bb)],'appCode':_0x58c293[_0x2bbbbf(0x1d7)]?.[_0x2bbbbf(0x1b7)],'datasetCount':_0x49c488[_0x2bbbbf(0x1c9)],'connectedDatasets':_0x4c687d,'datasets':_0x49c488};}),_0x5b1110=_0x2c5226[_0x28a07b(0x1bd)]((_0x174387,_0x7b2029)=>_0x174387+_0x7b2029[_0x28a07b(0x1dc)],0x0),_0x57fc49=_0x2c5226['reduce']((_0x32eb29,_0x59a0f1)=>_0x32eb29+_0x59a0f1[_0x28a07b(0x1c7)][_0x28a07b(0x1bd)]((_0x15ca0f,_0x312272)=>_0x15ca0f+_0x312272['stats'][_0x28a07b(0x1d3)],0x0),0x0);return{'ok':!![],'data':_0x2c5226[_0x28a07b(0x1c9)]===0x1?_0x2c5226[0x0]:{'databases':_0x2c5226},'message':'Link\x20graph:\x20'+_0x2c5226[_0x28a07b(0x1c9)]+_0x28a07b(0x1cf)+_0x5b1110+'\x20dataset(s),\x20'+_0x57fc49+'\x20relation(s)'};}};function a47_0x22fe(){const _0x3b0771=['isPrimaryKey','isForeignKey','983424NnXsZA','datasetCode','\x20database(s),\x20','verbose','1414632UhYbCx','dataset','relationCount','fields','toDatasetName','datasetName','meta','187019mBWzdX','filter','displayName','3050vSrzEG','datasetCount','fromField','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','all','8172IYNwhw','dbType','name','15luFIMb','appCode','read','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','datasetId','dbId','Fetched\x20link\x20graph\x20for\x20','reduce','relations','34586CRAPgB','LEFT','5GmfVRL','18lAuqzw','22ROqWll','map','\x20database(s)','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','datasets','2271804zDfBuv','length','1115886Fxpxdm'];a47_0x22fe=function(){return _0x3b0771;};return a47_0x22fe();}
@@ -1 +1 @@
1
- const a48_0x1d3fff=a48_0x4fbe;(function(_0x4f6fed,_0x16be92){const _0x229054=a48_0x4fbe,_0x316b72=_0x4f6fed();while(!![]){try{const _0x30ab96=-parseInt(_0x229054(0x117))/0x1+parseInt(_0x229054(0x10a))/0x2+parseInt(_0x229054(0x11c))/0x3*(-parseInt(_0x229054(0x118))/0x4)+-parseInt(_0x229054(0x107))/0x5*(parseInt(_0x229054(0x11e))/0x6)+-parseInt(_0x229054(0x101))/0x7*(parseInt(_0x229054(0x111))/0x8)+parseInt(_0x229054(0x10c))/0x9*(parseInt(_0x229054(0x121))/0xa)+parseInt(_0x229054(0x110))/0xb*(parseInt(_0x229054(0x105))/0xc);if(_0x30ab96===_0x16be92)break;else _0x316b72['push'](_0x316b72['shift']());}catch(_0x56e191){_0x316b72['push'](_0x316b72['shift']());}}}(a48_0x2677,0x2736b));function a48_0x2677(){const _0x844875=['Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','1268030psFPEK','string','2059001ZmFdSN','split','datasetKey','description','559956iQuZfY','verbose','1576935fNCioO','boolean','\x20dataset(s)','251244OYRfhH','Found\x20','18RgedWV','dataset','allFields','bool','132AnlJjV','8yxTbhi','Return\x20full\x20dataset\x20objects\x20including\x20columns,\x20operations\x20and\x20relations','read','tableName','List\x20all\x20datasets\x20with\x20metadata','trim','12509RHBNEY','244HhtyAN','name','list','str','7698kZjTtB','map','6JinEhM','appCode'];a48_0x2677=function(){return _0x844875;};return a48_0x2677();}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';function a48_0x4fbe(_0x373afe,_0x7cbb21){_0x373afe=_0x373afe-0x100;const _0x2677d1=a48_0x2677();let _0x4fbefa=_0x2677d1[_0x373afe];return _0x4fbefa;}export const datasetList={'service':a48_0x1d3fff(0x10d),'command':a48_0x1d3fff(0x11a),'description':a48_0x1d3fff(0x115),'risk':a48_0x1d3fff(0x113),'flags':[{'name':'name','type':a48_0x1d3fff(0x100),'description':a48_0x1d3fff(0x120)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':'verbose','type':a48_0x1d3fff(0x108),'description':a48_0x1d3fff(0x112)}],async 'execute'(_0x5ef2c4){const _0x175fdd=a48_0x1d3fff,_0x4980bf=_0x5ef2c4[_0x175fdd(0x11b)](_0x175fdd(0x119)),_0x22ab36=_0x5ef2c4[_0x175fdd(0x11b)]('code'),_0x1f750a=_0x5ef2c4[_0x175fdd(0x10f)](_0x175fdd(0x106)),_0x49f375=await listDatasets(_0x5ef2c4[_0x175fdd(0x11f)],{..._0x4980bf&&{'name':_0x4980bf},..._0x22ab36&&{'code':_0x22ab36}}),_0x47c70d=_0x1f750a?_0x49f375:_0x49f375[_0x175fdd(0x11d)](_0x53566d=>{const _0x1cb24c=_0x175fdd,_0x204314=_0x53566d['dbtableConfig']??{};return{'id':_0x53566d['id'],'name':_0x53566d[_0x1cb24c(0x119)],'code':_0x53566d['code'],'description':_0x53566d[_0x1cb24c(0x104)],'source':_0x53566d['source'],'db':_0x204314['dbName'],'table':_0x204314[_0x1cb24c(0x114)],'datasetKey':_0x204314[_0x1cb24c(0x103)],'pk':_0x204314['pkField'],'fields':_0x204314[_0x1cb24c(0x10e)]?_0x204314[_0x1cb24c(0x10e)][_0x1cb24c(0x102)](',')[_0x1cb24c(0x11d)](_0x46ecbd=>_0x46ecbd[_0x1cb24c(0x116)]()):[]};});return{'ok':!![],'data':{'total':_0x47c70d['length'],'datasets':_0x47c70d},'message':_0x175fdd(0x10b)+_0x47c70d['length']+_0x175fdd(0x109)};}};
1
+ const a48_0x122778=a48_0x17ed;function a48_0x4b83(){const _0x24320f=['name','3051084KSfLWg','List\x20all\x20datasets\x20with\x20metadata','27421983zwGvnH','2417934VOAQTN','split','3042280BcKxEK','str','string','\x20dataset(s)','list','read','Found\x20','length','dbtableConfig','dataset','map','2083180NqyqcR','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','dbName','code','21bJEQMM','trim','allFields','18077DbeJmY','appCode','4045176tjqYST','166dSYeEf','tableName','source'];a48_0x4b83=function(){return _0x24320f;};return a48_0x4b83();}function a48_0x17ed(_0x482b08,_0x4b7f5c){_0x482b08=_0x482b08-0xe1;const _0x4b83de=a48_0x4b83();let _0x17edff=_0x4b83de[_0x482b08];return _0x17edff;}(function(_0x1bddc4,_0x104f2f){const _0x1e423b=a48_0x17ed,_0x2a5eca=_0x1bddc4();while(!![]){try{const _0x3eaea8=parseInt(_0x1e423b(0xed))/0x1*(-parseInt(_0x1e423b(0xf0))/0x2)+-parseInt(_0x1e423b(0xf7))/0x3+parseInt(_0x1e423b(0xe6))/0x4+parseInt(_0x1e423b(0xf9))/0x5+-parseInt(_0x1e423b(0xf4))/0x6*(parseInt(_0x1e423b(0xea))/0x7)+parseInt(_0x1e423b(0xef))/0x8+parseInt(_0x1e423b(0xf6))/0x9;if(_0x3eaea8===_0x104f2f)break;else _0x2a5eca['push'](_0x2a5eca['shift']());}catch(_0x2b9142){_0x2a5eca['push'](_0x2a5eca['shift']());}}}(a48_0x4b83,0xcf7d2));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':a48_0x122778(0xe4),'command':a48_0x122778(0xfd),'description':a48_0x122778(0xf5),'risk':a48_0x122778(0xfe),'flags':[{'name':a48_0x122778(0xf3),'type':a48_0x122778(0xfb),'description':a48_0x122778(0xe7)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x1dd6ca){const _0x5be41c=a48_0x122778,_0x522059=_0x1dd6ca[_0x5be41c(0xfa)](_0x5be41c(0xf3)),_0x15aa0c=_0x1dd6ca[_0x5be41c(0xfa)](_0x5be41c(0xe9)),_0x2e321d=await listDatasets(_0x1dd6ca[_0x5be41c(0xee)],{..._0x522059&&{'name':_0x522059},..._0x15aa0c&&{'code':_0x15aa0c}}),_0x41799c=_0x2e321d[_0x5be41c(0xe5)](_0x13d64f=>{const _0x18b69d=_0x5be41c,_0x11a306=_0x13d64f[_0x18b69d(0xe3)]??{};return{'id':_0x13d64f['id'],'name':_0x13d64f[_0x18b69d(0xf3)],'code':_0x13d64f[_0x18b69d(0xe9)],'description':_0x13d64f['description'],'source':_0x13d64f[_0x18b69d(0xf2)],'db':_0x11a306[_0x18b69d(0xe8)],'table':_0x11a306[_0x18b69d(0xf1)],'datasetKey':_0x11a306['datasetKey'],'pk':_0x11a306['pkField'],'fields':_0x11a306[_0x18b69d(0xec)]?_0x11a306[_0x18b69d(0xec)][_0x18b69d(0xf8)](',')['map'](_0x1b91c2=>_0x1b91c2[_0x18b69d(0xeb)]()):[]};});return{'ok':!![],'data':{'total':_0x41799c[_0x5be41c(0xe2)],'datasets':_0x41799c},'message':_0x5be41c(0xe1)+_0x41799c[_0x5be41c(0xe2)]+_0x5be41c(0xfc)};}};
@@ -1 +1 @@
1
- const a49_0x598d3d=a49_0x56ee;(function(_0x3b68f1,_0xb4ffc2){const _0x5004fa=a49_0x56ee,_0x321621=_0x3b68f1();while(!![]){try{const _0x4f1087=-parseInt(_0x5004fa(0x164))/0x1*(-parseInt(_0x5004fa(0x16c))/0x2)+-parseInt(_0x5004fa(0x15f))/0x3+parseInt(_0x5004fa(0x15c))/0x4*(parseInt(_0x5004fa(0x171))/0x5)+-parseInt(_0x5004fa(0x170))/0x6*(parseInt(_0x5004fa(0x16a))/0x7)+parseInt(_0x5004fa(0x15d))/0x8*(-parseInt(_0x5004fa(0x173))/0x9)+-parseInt(_0x5004fa(0x161))/0xa+-parseInt(_0x5004fa(0x16f))/0xb*(-parseInt(_0x5004fa(0x15e))/0xc);if(_0x4f1087===_0xb4ffc2)break;else _0x321621['push'](_0x321621['shift']());}catch(_0x2f39d4){_0x321621['push'](_0x321621['shift']());}}}(a49_0x4f2f,0xc84a2));function a49_0x56ee(_0x323fad,_0x16963d){_0x323fad=_0x323fad-0x159;const _0x4f2f1f=a49_0x4f2f();let _0x56ee55=_0x4f2f1f[_0x323fad];return _0x56ee55;}function a49_0x4f2f(){const _0x29f503=['Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','code','84887viXTfx','enabled','type','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','displayName','string','4335352oLGqdT','name','26xiCpLO','alias','dataset','3806ZrkBeM','6zYBxRn','15WvtXlL','verbose','9QrWdti','read','str','bool','map','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','method','130712YkRxNQ','10733096ySMgoB','141612rUVqXs','4005237rKxKYs','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','11682730sNXppF'];a49_0x4f2f=function(){return _0x29f503;};return a49_0x4f2f();}import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../common/flags.js';export const datasetOperations={'service':a49_0x598d3d(0x16e),'command':'operations','description':a49_0x598d3d(0x160),'risk':a49_0x598d3d(0x174),'flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a49_0x598d3d(0x16d),'type':a49_0x598d3d(0x169),'description':a49_0x598d3d(0x15a)},{'name':'operation','type':'string','description':a49_0x598d3d(0x162)},{'name':a49_0x598d3d(0x172),'type':'boolean','description':a49_0x598d3d(0x167)}],async 'execute'(_0x430f00){const _0x59ea4b=a49_0x598d3d,_0x9f6a65=_0x430f00[_0x59ea4b(0x175)](_0x59ea4b(0x163)),_0x4cc770=_0x430f00['str']('operation'),_0x1e505f=_0x430f00[_0x59ea4b(0x176)]('verbose');if(_0x4cc770){const {dataset:_0x32a2a5,operation:_0x263090}=await getOperationDetail(_0x430f00['appCode'],_0x9f6a65,_0x4cc770);return{'ok':!![],'data':{'dataset':_0x32a2a5,'operation':_0x263090}};}const {dataset:_0x5596b8,operations:_0x43b209}=await getDatasetOperations(_0x9f6a65);return{'ok':!![],'data':{'dataset':_0x5596b8,'total':_0x43b209['length'],'operations':_0x1e505f?_0x43b209:_0x43b209[_0x59ea4b(0x159)](_0xfba90=>({'name':_0xfba90[_0x59ea4b(0x16b)],'displayName':_0xfba90[_0x59ea4b(0x168)],'type':_0xfba90[_0x59ea4b(0x166)],'method':_0xfba90[_0x59ea4b(0x15b)],'enabled':_0xfba90[_0x59ea4b(0x165)]}))}};}};
1
+ const a49_0x3e84fc=a49_0x2691;(function(_0x536c93,_0x468f22){const _0x26b902=a49_0x2691,_0xa2b29d=_0x536c93();while(!![]){try{const _0x49d433=-parseInt(_0x26b902(0x1f8))/0x1+-parseInt(_0x26b902(0x1f0))/0x2*(-parseInt(_0x26b902(0x1fa))/0x3)+parseInt(_0x26b902(0x1fc))/0x4+parseInt(_0x26b902(0x1e8))/0x5*(parseInt(_0x26b902(0x1e7))/0x6)+-parseInt(_0x26b902(0x1e6))/0x7*(parseInt(_0x26b902(0x1ec))/0x8)+parseInt(_0x26b902(0x1f7))/0x9*(parseInt(_0x26b902(0x1e5))/0xa)+parseInt(_0x26b902(0x1f6))/0xb*(parseInt(_0x26b902(0x1ea))/0xc);if(_0x49d433===_0x468f22)break;else _0xa2b29d['push'](_0xa2b29d['shift']());}catch(_0x403608){_0xa2b29d['push'](_0xa2b29d['shift']());}}}(a49_0x4e7e,0x320a3));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':'dataset','command':a49_0x3e84fc(0x1f2),'description':a49_0x3e84fc(0x1f1),'risk':a49_0x3e84fc(0x1e9),'flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':'string','description':a49_0x3e84fc(0x1f3)},{'name':'operation','type':'string','description':a49_0x3e84fc(0x1f9)},{'name':a49_0x3e84fc(0x1eb),'type':a49_0x3e84fc(0x1ed),'description':a49_0x3e84fc(0x1ee)}],async 'execute'(_0x47b5ff){const _0x56a402=a49_0x3e84fc,_0x3d2f87=_0x47b5ff[_0x56a402(0x1ef)]('code'),_0x4f46c4=_0x47b5ff['str'](_0x56a402(0x1f4)),_0x13cc74=_0x47b5ff[_0x56a402(0x1f5)]('verbose');if(_0x4f46c4){const {dataset:_0x39a88b,operation:_0x4db286}=await getOperationDetail(_0x47b5ff['appCode'],_0x3d2f87,_0x4f46c4);return{'ok':!![],'data':{'dataset':_0x39a88b,'operation':_0x4db286}};}const {dataset:_0x17eeae,operations:_0x5f13a7}=await getDatasetOperations(_0x3d2f87);return{'ok':!![],'data':{'dataset':_0x17eeae,'total':_0x5f13a7['length'],'operations':_0x13cc74?_0x5f13a7:_0x5f13a7['map'](_0x12c5b6=>({'name':_0x12c5b6['name'],'displayName':_0x12c5b6['displayName'],'type':_0x12c5b6['type'],'method':_0x12c5b6[_0x56a402(0x1fb)],'enabled':_0x12c5b6['enabled']}))}};}};function a49_0x2691(_0x9ef6c1,_0x1e24f8){_0x9ef6c1=_0x9ef6c1-0x1e5;const _0x4e7e74=a49_0x4e7e();let _0x2691e7=_0x4e7e74[_0x9ef6c1];return _0x2691e7;}function a49_0x4e7e(){const _0x59a7a9=['operation','bool','11UjAyif','9kikXjm','242611eeDKAj','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','111iipOTB','method','50596pZlvbQ','3073430duHSVR','1771cnCtsM','17016yQZSKe','610ixhalk','read','1368024puFpja','verbose','10552oVyhDI','boolean','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','str','70eECctB','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','operations','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'];a49_0x4e7e=function(){return _0x59a7a9;};return a49_0x4e7e();}
@@ -1 +1 @@
1
- const a50_0x5541c4=a50_0xf666;(function(_0x3a45a7,_0xfe9af7){const _0xd0e918=a50_0xf666,_0x3491b2=_0x3a45a7();while(!![]){try{const _0x38318f=parseInt(_0xd0e918(0xea))/0x1+-parseInt(_0xd0e918(0xb3))/0x2+parseInt(_0xd0e918(0xeb))/0x3*(-parseInt(_0xd0e918(0xdc))/0x4)+parseInt(_0xd0e918(0xd7))/0x5+parseInt(_0xd0e918(0xba))/0x6+parseInt(_0xd0e918(0xd5))/0x7*(-parseInt(_0xd0e918(0xf1))/0x8)+-parseInt(_0xd0e918(0xbd))/0x9;if(_0x38318f===_0xfe9af7)break;else _0x3491b2['push'](_0x3491b2['shift']());}catch(_0x37c2f4){_0x3491b2['push'](_0x3491b2['shift']());}}}(a50_0x2277,0x79a0b));import a50_0x5b6e6b from'chalk';function a50_0xf666(_0x3fbe3e,_0x1baf4c){_0x3fbe3e=_0x3fbe3e-0xaa;const _0x22770d=a50_0x2277();let _0xf6661f=_0x22770d[_0x3fbe3e];return _0xf6661f;}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';function a50_0x2277(){const _0x3f9166=['\x20\x20─','apiDir','\x20\x20userDomain:\x20\x20\x20\x20\x20\x20','4304424MvrFWk','\x20\x20Auth','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','5137488GKtnuB','\x20\x20\x20\x20appcode:\x20\x20','\x20←\x20current','explicitAppName','\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','(set\x20via\x20file,\x20length=','(none)','pageSize','currentApp','\x20doctor','\x20\x20Config\x20Files','\x20(default)','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','appcode','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apps','check','length','bold','(default:\x20pretty)','✗\x20Not\x20logged\x20in','env','(set,\x20length=','133yelzEg','locale','4664635XsyZUR','(not\x20found)','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','4lvBXog','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','keys','green','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','defaultApp','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','✓\x20Valid','✗\x20Expired','red','\x20\x20Merged\x20Config','\x20\x20Apps','verbose','285161qyhaWR','665370FNRfOI','slice','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','cookie','\x20\x20\x20\x20cookie:\x20\x20\x20','\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','246256IPDghz','\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','doctor','\x20\x20API\x20Endpoints','(not\x20set)','repeat','riskLevel','gray','(inherit)','\x20\x20\x20\x20apiDir:\x20\x20\x20','119650Sywukt','\x20\x20runtimeDomain:\x20\x20\x20','\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a50_0x2277=function(){return _0x3f9166;};return a50_0x2277();}import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';async function execute(_0x39266a){const _0x414028=a50_0xf666,_0x277e11=GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x414028(0xec)](0x0,0xa)+')':VERSION,_0x46ae74=buildConfigFromFlags({}),_0x1118a7=getCookie();console['log'](),console['log'](a50_0x5b6e6b[_0x414028(0xd0)](CLI_BIN_NAME+_0x414028(0xc7))),console[_0x414028(0xdb)](a50_0x5b6e6b['gray']('─'[_0x414028(0xae)](0x32))),console[_0x414028(0xdb)](_0x414028(0xca)+_0x277e11),console[_0x414028(0xdb)]('\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+process['version']),console[_0x414028(0xdb)]('\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20'+process['platform']+'\x20'+process['arch']),console[_0x414028(0xdb)](),console[_0x414028(0xdb)](a50_0x5b6e6b['bold'](_0x414028(0xc8))),console[_0x414028(0xdb)](a50_0x5b6e6b[_0x414028(0xb0)](_0x414028(0xb7)['repeat'](0x1e)));const _0x2c6d16=getGlobalConfigPath(),_0x418989=getProjectConfigPath();console[_0x414028(0xdb)](_0x414028(0xb5)+(_0x2c6d16||a50_0x5b6e6b[_0x414028(0xb0)]('(not\x20found)'))),console['log'](_0x414028(0xed)+(_0x418989||a50_0x5b6e6b[_0x414028(0xb0)](_0x414028(0xd8)))),console[_0x414028(0xdb)](),console['log'](a50_0x5b6e6b['bold'](_0x414028(0xe7))),console['log'](a50_0x5b6e6b['gray']('\x20\x20─'['repeat'](0x1e))),console['log'](_0x414028(0xb6)+(_0x46ae74['appCode']||a50_0x5b6e6b[_0x414028(0xe6)](_0x414028(0xad)))),console['log'](_0x414028(0xf0)+_0x46ae74[_0x414028(0xd3)]),console[_0x414028(0xdb)](_0x414028(0xde)+_0x46ae74[_0x414028(0xd6)]),console[_0x414028(0xdb)](_0x414028(0xaa)+_0x46ae74[_0x414028(0xb8)]),console[_0x414028(0xdb)]('\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20'+(_0x46ae74[_0x414028(0xe2)]||a50_0x5b6e6b[_0x414028(0xb0)](_0x414028(0xc4)))),console[_0x414028(0xdb)](_0x414028(0xe3)+(_0x46ae74[_0x414028(0xc6)]||a50_0x5b6e6b[_0x414028(0xb0)](_0x414028(0xc4)))),console[_0x414028(0xdb)]('\x20\x20explicitAppName:\x20'+(_0x46ae74[_0x414028(0xc0)]||a50_0x5b6e6b['gray']('(none)'))),console[_0x414028(0xdb)](_0x414028(0xe1)+(_0x46ae74['format']||a50_0x5b6e6b[_0x414028(0xb0)](_0x414028(0xd1)))),console[_0x414028(0xdb)](_0x414028(0xc2)+(_0x46ae74[_0x414028(0xc5)]??a50_0x5b6e6b[_0x414028(0xb0)]('(default)'))),console[_0x414028(0xdb)]('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x46ae74[_0x414028(0xaf)]),console[_0x414028(0xdb)](_0x414028(0xdd)+_0x46ae74[_0x414028(0xe9)]),console['log'](_0x414028(0xda)+(_0x46ae74[_0x414028(0xee)]?a50_0x5b6e6b['green'](_0x414028(0xd4)+_0x46ae74[_0x414028(0xee)][_0x414028(0xcf)]+')'):_0x1118a7?a50_0x5b6e6b[_0x414028(0xe0)](_0x414028(0xc3)+_0x1118a7[_0x414028(0xcf)]+')'):a50_0x5b6e6b[_0x414028(0xb0)](_0x414028(0xc4))));const _0x56fa99=Object[_0x414028(0xdf)](_0x46ae74[_0x414028(0xcd)]);if(_0x56fa99[_0x414028(0xcf)]>0x0){console[_0x414028(0xdb)](),console[_0x414028(0xdb)](a50_0x5b6e6b['bold'](_0x414028(0xe8))),console[_0x414028(0xdb)](a50_0x5b6e6b[_0x414028(0xb0)]('\x20\x20─'[_0x414028(0xae)](0x1e)));for(const _0x2318e9 of _0x56fa99){const _0x32fd17=_0x46ae74[_0x414028(0xcd)][_0x2318e9],_0x291e95=_0x2318e9===_0x46ae74['defaultApp'],_0x41f9d9=_0x2318e9===_0x46ae74[_0x414028(0xc6)],_0x3a6156=_0x41f9d9?a50_0x5b6e6b[_0x414028(0xe0)](_0x414028(0xbf)):'',_0x2ed48d=_0x291e95?_0x414028(0xc9):'';console[_0x414028(0xdb)]('\x20\x20'+_0x2318e9+_0x2ed48d+_0x3a6156),console['log'](_0x414028(0xbe)+_0x32fd17[_0x414028(0xcb)]),console[_0x414028(0xdb)](_0x414028(0xc1)+(_0x32fd17[_0x414028(0xd3)]||a50_0x5b6e6b[_0x414028(0xb0)](_0x414028(0xb1)))),console['log'](_0x414028(0xb2)+(_0x32fd17[_0x414028(0xb8)]||a50_0x5b6e6b[_0x414028(0xb0)](_0x414028(0xb1)))),console[_0x414028(0xdb)](_0x414028(0xef)+(_0x32fd17[_0x414028(0xee)]?a50_0x5b6e6b[_0x414028(0xe0)]('(set)'):a50_0x5b6e6b['gray'](_0x414028(0xb1))));}}console['log'](),console['log'](a50_0x5b6e6b[_0x414028(0xd0)](_0x414028(0xac))),console[_0x414028(0xdb)](a50_0x5b6e6b[_0x414028(0xb0)](_0x414028(0xb7)[_0x414028(0xae)](0x1e))),console[_0x414028(0xdb)](_0x414028(0xd9)+getApiDomain()),console['log'](_0x414028(0xb9)+getUserDomain()),console[_0x414028(0xdb)](_0x414028(0xb4)+getRuntimeDomain()),console[_0x414028(0xdb)](),console[_0x414028(0xdb)](a50_0x5b6e6b[_0x414028(0xd0)](_0x414028(0xbb))),console[_0x414028(0xdb)](a50_0x5b6e6b[_0x414028(0xb0)](_0x414028(0xb7)[_0x414028(0xae)](0x1e)));if(_0x1118a7){const _0x37f1c7=await getIsSessionValid();console[_0x414028(0xdb)](_0x414028(0xcc)+(_0x37f1c7?a50_0x5b6e6b['green'](_0x414028(0xe4)):a50_0x5b6e6b[_0x414028(0xe6)](_0x414028(0xe5))));}else console[_0x414028(0xdb)]('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a50_0x5b6e6b[_0x414028(0xe6)](_0x414028(0xd2)));return console[_0x414028(0xdb)](),{'ok':!![]};}export const doctorDefinition={'service':a50_0x5541c4(0xab),'command':a50_0x5541c4(0xce),'description':a50_0x5541c4(0xbc),'risk':'read','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ function a50_0x1c8c(_0x510855,_0x15be21){_0x510855=_0x510855-0x1bd;const _0x1d47c0=a50_0x1d47();let _0x1c8cdb=_0x1d47c0[_0x510855];return _0x1c8cdb;}const a50_0x235e2d=a50_0x1c8c;(function(_0x546b8e,_0x22bcf5){const _0x33a80d=a50_0x1c8c,_0x182631=_0x546b8e();while(!![]){try{const _0x4f4e48=parseInt(_0x33a80d(0x1d5))/0x1*(parseInt(_0x33a80d(0x214))/0x2)+parseInt(_0x33a80d(0x1ca))/0x3*(parseInt(_0x33a80d(0x1e1))/0x4)+-parseInt(_0x33a80d(0x1c6))/0x5*(-parseInt(_0x33a80d(0x1c8))/0x6)+-parseInt(_0x33a80d(0x1f5))/0x7*(-parseInt(_0x33a80d(0x207))/0x8)+parseInt(_0x33a80d(0x1cb))/0x9*(parseInt(_0x33a80d(0x1e4))/0xa)+-parseInt(_0x33a80d(0x1cf))/0xb+-parseInt(_0x33a80d(0x1c2))/0xc;if(_0x4f4e48===_0x22bcf5)break;else _0x182631['push'](_0x182631['shift']());}catch(_0x2788a9){_0x182631['push'](_0x182631['shift']());}}}(a50_0x1d47,0x73bd2));import a50_0x34d793 from'chalk';import{CLI_BIN_NAME}from'../constant/cli.js';function a50_0x1d47(){const _0x103216=['\x20\x20\x20\x20env:\x20\x20\x20\x20\x20\x20','18470112hvdzTO','\x20\x20apiDomain:\x20\x20\x20\x20\x20\x20\x20','gray','\x20\x20API\x20Endpoints','88755vHLgeC','⚠\x20Empty\x20(treated\x20as\x20{})','66yrKJJd','\x20\x20locale:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','3TkDYYZ','1558341hmjbXp','\x20\x20defaultApp:\x20\x20\x20\x20\x20\x20','\x20←\x20current','\x20\x20─','1421552mvYnkK','appcode','(default:\x20pretty)','\x20\x20format:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20Project:\x20\x20\x20\x20\x20\x20\x20\x20\x20','riskLevel','11JFjhwW','\x20\x20\x20\x20cookie:\x20\x20\x20','green','\x20\x20Platform:\x20\x20\x20\x20\x20\x20\x20\x20','appCode','✓\x20Valid\x20JSON','\x20\x20Merged\x20Config','\x20(default)','keys','Diagnose\x20CLI\x20configuration\x20and\x20connectivity','pageSize','bold','3509284PCdamc','(no\x20file)','(inherit)','10WYhYpa','(set,\x20length=','platform','arch','missing','cookie','(not\x20set)','\x20\x20Node:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','apps','✓\x20Valid','\x20\x20Config\x20JSON','slice','\x20\x20cookie:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','✗\x20Invalid\x20JSON','Project','\x20\x20explicitAppName:\x20','\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','324310YYtugS','\x20\x20Config\x20Files','\x20\x20Auth','Global','\x20\x20CLI\x20Version:\x20\x20\x20\x20\x20','env','red','verbose','(none)','(default)','status','currentApp','length','yellow','doctor','repeat','(not\x20found)','check','40hXoJma','\x20\x20appCode:\x20\x20\x20\x20\x20\x20\x20\x20\x20','version','(set\x20via\x20file,\x20length=','\x20\x20pageSize:\x20\x20\x20\x20\x20\x20\x20\x20','\x20doctor','(missing)','\x20\x20verbose:\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x20currentApp:\x20\x20\x20\x20\x20\x20','padEnd','✗\x20Not\x20logged\x20in','read','\x20\x20\x20\x20apiDir:\x20\x20\x20','120926SabtKL','format','empty','apiDir','log','unknown'];a50_0x1d47=function(){return _0x103216;};return a50_0x1d47();}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getApiDomain,getUserDomain,getRuntimeDomain}from'../constant/domain.js';import{getProjectConfigPath,getGlobalConfigPath,buildConfigFromFlags,inspectCliConfigJsonFile}from'../context.js';import{getIsSessionValid}from'../auth/is-session-valid.js';import{getCookie}from'../auth/get-cookie.js';async function execute(_0x34d622){const _0x104f2b=a50_0x1c8c,_0x205568=GIT_COMMIT!==_0x104f2b(0x1c0)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x104f2b(0x1ef)](0x0,0xa)+')':VERSION,_0x122a8d=buildConfigFromFlags({}),_0x2cd101=getCookie();console['log'](),console['log'](a50_0x34d793[_0x104f2b(0x1e0)](CLI_BIN_NAME+_0x104f2b(0x20c))),console[_0x104f2b(0x1bf)](a50_0x34d793[_0x104f2b(0x1c4)]('─'[_0x104f2b(0x204)](0x32))),console['log'](_0x104f2b(0x1f9)+_0x205568),console[_0x104f2b(0x1bf)](_0x104f2b(0x1eb)+process[_0x104f2b(0x209)]),console[_0x104f2b(0x1bf)](_0x104f2b(0x1d8)+process[_0x104f2b(0x1e6)]+'\x20'+process[_0x104f2b(0x1e7)]),console[_0x104f2b(0x1bf)](),console[_0x104f2b(0x1bf)](a50_0x34d793[_0x104f2b(0x1e0)](_0x104f2b(0x1f6))),console['log'](a50_0x34d793[_0x104f2b(0x1c4)](_0x104f2b(0x1ce)[_0x104f2b(0x204)](0x1e)));const _0x2240e7=getGlobalConfigPath(),_0xc3b877=getProjectConfigPath();console[_0x104f2b(0x1bf)]('\x20\x20Global:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2240e7||a50_0x34d793['gray']('(not\x20found)'))),console['log'](_0x104f2b(0x1d3)+(_0xc3b877||a50_0x34d793[_0x104f2b(0x1c4)](_0x104f2b(0x205)))),console[_0x104f2b(0x1bf)](),console['log'](a50_0x34d793[_0x104f2b(0x1e0)](_0x104f2b(0x1ee))),console[_0x104f2b(0x1bf)](a50_0x34d793[_0x104f2b(0x1c4)](_0x104f2b(0x1ce)[_0x104f2b(0x204)](0x1e)));const _0x2cd609=(_0x436f14,_0x47a89a)=>{const _0x24a625=_0x104f2b;if(!_0x47a89a){console[_0x24a625(0x1bf)]('\x20\x20'+_0x436f14[_0x24a625(0x210)](0x11)+'\x20'+a50_0x34d793['gray'](_0x24a625(0x1e2)));return;}const _0x5bd09d=inspectCliConfigJsonFile(_0x47a89a);if(_0x5bd09d[_0x24a625(0x1ff)]==='ok')console[_0x24a625(0x1bf)]('\x20\x20'+_0x436f14[_0x24a625(0x210)](0x11)+'\x20'+a50_0x34d793[_0x24a625(0x1d7)](_0x24a625(0x1da)));else{if(_0x5bd09d['status']===_0x24a625(0x1bd))console['log']('\x20\x20'+_0x436f14[_0x24a625(0x210)](0x11)+'\x20'+a50_0x34d793[_0x24a625(0x202)](_0x24a625(0x1c7)));else _0x5bd09d[_0x24a625(0x1ff)]===_0x24a625(0x1e8)?console[_0x24a625(0x1bf)]('\x20\x20'+_0x436f14['padEnd'](0x11)+'\x20'+a50_0x34d793[_0x24a625(0x1c4)](_0x24a625(0x20d))):(console[_0x24a625(0x1bf)]('\x20\x20'+_0x436f14[_0x24a625(0x210)](0x11)+'\x20'+a50_0x34d793[_0x24a625(0x1fb)](_0x24a625(0x1f1))),console['log']('\x20\x20'+''[_0x24a625(0x210)](0x11)+'\x20'+a50_0x34d793['red'](_0x5bd09d['message'])));}};_0x2cd609(_0x104f2b(0x1f8),_0x2240e7),_0x2cd609(_0x104f2b(0x1f2),_0xc3b877),console['log'](),console['log'](a50_0x34d793[_0x104f2b(0x1e0)](_0x104f2b(0x1db))),console[_0x104f2b(0x1bf)](a50_0x34d793[_0x104f2b(0x1c4)](_0x104f2b(0x1ce)[_0x104f2b(0x204)](0x1e))),console[_0x104f2b(0x1bf)](_0x104f2b(0x208)+(_0x122a8d[_0x104f2b(0x1d9)]||a50_0x34d793[_0x104f2b(0x1fb)](_0x104f2b(0x1ea)))),console['log']('\x20\x20env:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x122a8d['env']),console[_0x104f2b(0x1bf)](_0x104f2b(0x1c9)+_0x122a8d['locale']),console[_0x104f2b(0x1bf)]('\x20\x20apiDir:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x122a8d['apiDir']),console[_0x104f2b(0x1bf)](_0x104f2b(0x1cc)+(_0x122a8d['defaultApp']||a50_0x34d793[_0x104f2b(0x1c4)](_0x104f2b(0x1fd)))),console[_0x104f2b(0x1bf)](_0x104f2b(0x20f)+(_0x122a8d[_0x104f2b(0x200)]||a50_0x34d793[_0x104f2b(0x1c4)](_0x104f2b(0x1fd)))),console[_0x104f2b(0x1bf)](_0x104f2b(0x1f3)+(_0x122a8d['explicitAppName']||a50_0x34d793['gray'](_0x104f2b(0x1fd)))),console[_0x104f2b(0x1bf)](_0x104f2b(0x1d2)+(_0x122a8d[_0x104f2b(0x215)]||a50_0x34d793['gray'](_0x104f2b(0x1d1)))),console['log'](_0x104f2b(0x20b)+(_0x122a8d[_0x104f2b(0x1df)]??a50_0x34d793['gray'](_0x104f2b(0x1fe)))),console['log']('\x20\x20riskLevel:\x20\x20\x20\x20\x20\x20\x20'+_0x122a8d[_0x104f2b(0x1d4)]),console['log'](_0x104f2b(0x20e)+_0x122a8d[_0x104f2b(0x1fc)]),console['log'](_0x104f2b(0x1f0)+(_0x122a8d[_0x104f2b(0x1e9)]?a50_0x34d793[_0x104f2b(0x1d7)](_0x104f2b(0x1e5)+_0x122a8d[_0x104f2b(0x1e9)][_0x104f2b(0x201)]+')'):_0x2cd101?a50_0x34d793[_0x104f2b(0x1d7)](_0x104f2b(0x20a)+_0x2cd101[_0x104f2b(0x201)]+')'):a50_0x34d793[_0x104f2b(0x1c4)](_0x104f2b(0x1fd))));const _0xd7cc68=Object[_0x104f2b(0x1dd)](_0x122a8d[_0x104f2b(0x1ec)]);if(_0xd7cc68['length']>0x0){console[_0x104f2b(0x1bf)](),console['log'](a50_0x34d793[_0x104f2b(0x1e0)]('\x20\x20Apps')),console[_0x104f2b(0x1bf)](a50_0x34d793['gray'](_0x104f2b(0x1ce)[_0x104f2b(0x204)](0x1e)));for(const _0x32a1fd of _0xd7cc68){const _0x410512=_0x122a8d['apps'][_0x32a1fd],_0x50ca75=_0x32a1fd===_0x122a8d['defaultApp'],_0x15cd90=_0x32a1fd===_0x122a8d[_0x104f2b(0x200)],_0x3458e6=_0x15cd90?a50_0x34d793[_0x104f2b(0x1d7)](_0x104f2b(0x1cd)):'',_0x4215c1=_0x50ca75?_0x104f2b(0x1dc):'';console[_0x104f2b(0x1bf)]('\x20\x20'+_0x32a1fd+_0x4215c1+_0x3458e6),console[_0x104f2b(0x1bf)]('\x20\x20\x20\x20appcode:\x20\x20'+_0x410512[_0x104f2b(0x1d0)]),console[_0x104f2b(0x1bf)](_0x104f2b(0x1c1)+(_0x410512[_0x104f2b(0x1fa)]||a50_0x34d793[_0x104f2b(0x1c4)]('(inherit)'))),console[_0x104f2b(0x1bf)](_0x104f2b(0x213)+(_0x410512[_0x104f2b(0x1be)]||a50_0x34d793[_0x104f2b(0x1c4)](_0x104f2b(0x1e3)))),console[_0x104f2b(0x1bf)](_0x104f2b(0x1d6)+(_0x410512[_0x104f2b(0x1e9)]?a50_0x34d793[_0x104f2b(0x1d7)]('(set)'):a50_0x34d793[_0x104f2b(0x1c4)](_0x104f2b(0x1e3))));}}console[_0x104f2b(0x1bf)](),console[_0x104f2b(0x1bf)](a50_0x34d793[_0x104f2b(0x1e0)](_0x104f2b(0x1c5))),console[_0x104f2b(0x1bf)](a50_0x34d793[_0x104f2b(0x1c4)](_0x104f2b(0x1ce)[_0x104f2b(0x204)](0x1e))),console[_0x104f2b(0x1bf)](_0x104f2b(0x1c3)+getApiDomain()),console['log']('\x20\x20userDomain:\x20\x20\x20\x20\x20\x20'+getUserDomain()),console[_0x104f2b(0x1bf)]('\x20\x20runtimeDomain:\x20\x20\x20'+getRuntimeDomain()),console[_0x104f2b(0x1bf)](),console[_0x104f2b(0x1bf)](a50_0x34d793[_0x104f2b(0x1e0)](_0x104f2b(0x1f7))),console[_0x104f2b(0x1bf)](a50_0x34d793[_0x104f2b(0x1c4)]('\x20\x20─'[_0x104f2b(0x204)](0x1e)));if(_0x2cd101){const _0x50f97d=await getIsSessionValid();console['log'](_0x104f2b(0x1f4)+(_0x50f97d?a50_0x34d793[_0x104f2b(0x1d7)](_0x104f2b(0x1ed)):a50_0x34d793[_0x104f2b(0x1fb)]('✗\x20Expired')));}else console['log']('\x20\x20Status:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+a50_0x34d793[_0x104f2b(0x1fb)](_0x104f2b(0x211)));return console[_0x104f2b(0x1bf)](),{'ok':!![]};}export const doctorDefinition={'service':a50_0x235e2d(0x203),'command':a50_0x235e2d(0x206),'description':a50_0x235e2d(0x1de),'risk':a50_0x235e2d(0x212),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- const a51_0x1d4082=a51_0x1fe2;(function(_0x33818c,_0x1f512a){const _0x57c191=a51_0x1fe2,_0x184481=_0x33818c();while(!![]){try{const _0x10873f=-parseInt(_0x57c191(0x97))/0x1+-parseInt(_0x57c191(0xa7))/0x2+parseInt(_0x57c191(0xad))/0x3+-parseInt(_0x57c191(0x8b))/0x4*(-parseInt(_0x57c191(0x9e))/0x5)+parseInt(_0x57c191(0xa2))/0x6+parseInt(_0x57c191(0xb6))/0x7*(-parseInt(_0x57c191(0xb8))/0x8)+parseInt(_0x57c191(0x9d))/0x9*(-parseInt(_0x57c191(0x94))/0xa);if(_0x10873f===_0x1f512a)break;else _0x184481['push'](_0x184481['shift']());}catch(_0x1cf10e){_0x184481['push'](_0x184481['shift']());}}}(a51_0x3141,0xcc896));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{existsSync}from'node:fs';import{resolve}from'node:path';import{validateAppcode}from'../common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';function syntheticApp(_0x31df9c){return{'appCode':_0x31df9c,'appName':_0x31df9c};}function a51_0x1fe2(_0x5d4fd4,_0x326c99){_0x5d4fd4=_0x5d4fd4-0x88;const _0x31418e=a51_0x3141();let _0x1fe234=_0x31418e[_0x5d4fd4];return _0x1fe234;}function writeInitConfig(_0xa7140f,_0x42d8ca,_0x3dae99){const _0x115ee6=a51_0x1fe2,_0x1512ca=resolveWriteConfigPath(_0xa7140f),_0x12ca08={'version':getCliVersion(),'createdAt':new Date()[_0x115ee6(0xa6)](),'env':_0x3dae99};if(_0x42d8ca[_0x115ee6(0xa9)]===0x1)_0x12ca08[_0x115ee6(0xb9)]=_0x42d8ca[0x0][_0x115ee6(0x8d)];else{_0x12ca08[_0x115ee6(0xa3)]={};for(const _0x388861 of _0x42d8ca){_0x12ca08['apps'][_0x388861[_0x115ee6(0x8d)]]={'appcode':_0x388861[_0x115ee6(0x8d)],'env':_0x3dae99};}_0x12ca08[_0x115ee6(0xa0)]=_0x42d8ca[0x0][_0x115ee6(0x8d)];}writeConfigFile(_0x1512ca,_0x12ca08);const _0x3c9ffe=_0xa7140f===_0x115ee6(0xb3)?_0x115ee6(0xb3):_0x115ee6(0xb5);console['log'](_0x115ee6(0xb1)+_0x3c9ffe+_0x115ee6(0x91)),_0x42d8ca[_0x115ee6(0xa9)]===0x1?console[_0x115ee6(0xba)]('\x20\x20AppCode:\x20'+_0x42d8ca[0x0][_0x115ee6(0x8d)]):(console[_0x115ee6(0xba)](_0x115ee6(0x95)+_0x42d8ca[_0x115ee6(0xb0)](_0x584bb6=>_0x584bb6[_0x115ee6(0x8d)])[_0x115ee6(0x8a)](',\x20')),console[_0x115ee6(0xba)](_0x115ee6(0x93)+_0x12ca08['defaultApp'])),console[_0x115ee6(0xba)](_0x115ee6(0xbb)+_0x12ca08[_0x115ee6(0xae)]),console[_0x115ee6(0xba)](_0x115ee6(0xab)+_0x1512ca);}async function runSmartInit(_0x326539){const _0x220949=a51_0x1fe2,_0x27f53a=process[_0x220949(0xac)](),_0x20931e=_0x326539[_0x220949(0x8e)]('global')?_0x220949(0xb3):_0x220949(0xb5),_0x2cd8e8=_0x326539[_0x220949(0x8c)](_0x220949(0xae))||_0x220949(0x90),_0x2d1a50=_0x326539['str'](_0x220949(0xb9))||undefined,_0x253b17=_0x326539[_0x220949(0x8e)](_0x220949(0xb5));if(_0x253b17){const {initConfig:_0x553014}=await import(_0x220949(0x9a));return _0x553014({'appcode':_0x2d1a50,'env':_0x2cd8e8,'autoYes':_0x326539['bool'](_0x220949(0xaf))});}if(_0x20931e===_0x220949(0xb5)){const _0x37e08f=existsSync(resolve(_0x27f53a,NEW_CONFIG_NAME)),_0x8e8ab0=LEGACY_CONFIG_NAMES['some'](_0x300ffc=>existsSync(resolve(_0x27f53a,_0x300ffc)));if(_0x8e8ab0&&!_0x37e08f)return console[_0x220949(0xba)](_0x220949(0x99)),upgradeApp(_0x326539['nonInteractive'],{'yes':_0x326539[_0x220949(0x8e)](_0x220949(0xaf))});if(_0x37e08f)throw CliErrors[_0x220949(0x88)]('.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.',_0x220949(0x9c)+CLI_BIN_NAME+_0x220949(0xaa));}if(_0x2d1a50){const _0x5512e3=validateAppcode(_0x2d1a50);if(!_0x5512e3['valid'])throw CliErrors['validation'](_0x5512e3['message']);writeInitConfig(_0x20931e,[syntheticApp(_0x2d1a50)],_0x2cd8e8);return;}if(_0x326539[_0x220949(0xb4)])throw CliErrors[_0x220949(0xa1)](_0x220949(0xb9),'Usage:\x20'+CLI_BIN_NAME+_0x220949(0xa8));const _0x597912=getCookie(),_0x235820=await selectMultipleApps(_0x597912),_0x58d2f2=_0x235820===_0x220949(0x92)?[syntheticApp(await promptCustomAppcode())]:_0x235820;writeInitConfig(_0x20931e,_0x58d2f2,_0x2cd8e8);}const initFlags=[{'name':'global','type':a51_0x1d4082(0xb2),'description':a51_0x1d4082(0x9b),'default':![]},{'name':'env','type':a51_0x1d4082(0xb7),'description':'Target\x20environment','default':'production','enum':[a51_0x1d4082(0x90),a51_0x1d4082(0x98)]},{'name':'appcode','type':a51_0x1d4082(0xb7),'description':a51_0x1d4082(0x8f)},{'name':a51_0x1d4082(0xb5),'type':a51_0x1d4082(0xb2),'description':a51_0x1d4082(0x96),'default':![]},{'name':a51_0x1d4082(0xaf),'type':'boolean','description':a51_0x1d4082(0x89),'default':![]}];export const initDefinitions=[{'service':'init','command':a51_0x1d4082(0x9f),'description':a51_0x1d4082(0xa4),'risk':a51_0x1d4082(0xa5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x501f4d){return await runSmartInit(_0x501f4d),{'ok':!![]};}}];function a51_0x3141(){const _0x426e02=['defaultApp','flagMissing','6085866XkIXfm','apps','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','write','toLocaleString','747808MZMaZU','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','length','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','\x20\x20Config:\x20','cwd','3085971cdowYz','env','yes','map','\x0a✓\x20Successfully\x20initialized\x20','boolean','global','nonInteractive','project','7YruuDv','string','3881800vROwNA','appcode','log','\x20\x20Env:\x20','validation','Auto-confirm\x20prompts','join','56wVXSfi','str','appCode','bool','App\x20code\x20to\x20initialize\x20with','production','\x20config','custom','\x20\x20Default:\x20','29170FYjGdF','\x20\x20Apps:\x20','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','383724YRItMK','daily','检测到旧配置文件,正在自动升级...\x0a','../project/init.js','Write\x20to\x20global\x20config\x20instead\x20of\x20project','Use\x20`','3717yBGMug','443710gMmxZf','run'];a51_0x3141=function(){return _0x426e02;};return a51_0x3141();}
1
+ const a51_0x4b0477=a51_0x324f;(function(_0x179fd3,_0x4b9dfe){const _0x131a47=a51_0x324f,_0x3d3ac3=_0x179fd3();while(!![]){try{const _0x2288a5=parseInt(_0x131a47(0x1e7))/0x1*(-parseInt(_0x131a47(0x1e2))/0x2)+parseInt(_0x131a47(0x1e6))/0x3+-parseInt(_0x131a47(0x1ec))/0x4+parseInt(_0x131a47(0x1d7))/0x5+parseInt(_0x131a47(0x1ed))/0x6*(-parseInt(_0x131a47(0x1e9))/0x7)+-parseInt(_0x131a47(0x1f8))/0x8*(-parseInt(_0x131a47(0x1ff))/0x9)+parseInt(_0x131a47(0x1d5))/0xa;if(_0x2288a5===_0x4b9dfe)break;else _0x3d3ac3['push'](_0x3d3ac3['shift']());}catch(_0x220ea3){_0x3d3ac3['push'](_0x3d3ac3['shift']());}}}(a51_0x5b9a,0xd5fff));import{NEW_CONFIG_NAME,LEGACY_CONFIG_NAMES,writeConfigFile,resolveWriteConfigPath}from'../../context.js';import{upgradeApp}from'../../commands/project/upgrade.js';import{getCliVersion}from'../../utils/version.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{existsSync}from'node:fs';import{resolve}from'node:path';function a51_0x324f(_0x231822,_0x881913){_0x231822=_0x231822-0x1cf;const _0x5b9a58=a51_0x5b9a();let _0x324ff0=_0x5b9a58[_0x231822];return _0x324ff0;}import{validateAppcode}from'../../commands/common/validate.js';import{promptCustomAppcode,selectMultipleApps}from'../../commands/common/app-selector.js';import{getCookie}from'../../auth/get-cookie.js';function syntheticApp(_0x2e477d){return{'appCode':_0x2e477d,'appName':_0x2e477d};}function writeInitConfig(_0x1de4e3,_0x581206,_0x442ff4){const _0x3adbad=a51_0x324f,_0x119bf7=resolveWriteConfigPath(_0x1de4e3),_0x336b18={'version':getCliVersion(),'createdAt':new Date()[_0x3adbad(0x1f5)](),'env':_0x442ff4};if(_0x581206['length']===0x1)_0x336b18[_0x3adbad(0x1f1)]=_0x581206[0x0][_0x3adbad(0x1d9)];else{_0x336b18['apps']={};for(const _0x3c4cc1 of _0x581206){_0x336b18['apps'][_0x3c4cc1[_0x3adbad(0x1d9)]]={'appcode':_0x3c4cc1[_0x3adbad(0x1d9)],'env':_0x442ff4};}_0x336b18[_0x3adbad(0x1e4)]=_0x581206[0x0][_0x3adbad(0x1d9)];}writeConfigFile(_0x119bf7,_0x336b18);const _0x2611a2=_0x1de4e3===_0x3adbad(0x1f6)?'global':_0x3adbad(0x200);console[_0x3adbad(0x1eb)](_0x3adbad(0x1e5)+_0x2611a2+_0x3adbad(0x1d1)),_0x581206[_0x3adbad(0x1d3)]===0x1?console[_0x3adbad(0x1eb)](_0x3adbad(0x1f9)+_0x581206[0x0][_0x3adbad(0x1d9)]):(console[_0x3adbad(0x1eb)](_0x3adbad(0x1ef)+_0x581206[_0x3adbad(0x1d8)](_0x1c27c5=>_0x1c27c5[_0x3adbad(0x1d9)])[_0x3adbad(0x1ee)](',\x20')),console[_0x3adbad(0x1eb)]('\x20\x20Default:\x20'+_0x336b18[_0x3adbad(0x1e4)])),console[_0x3adbad(0x1eb)](_0x3adbad(0x1e0)+_0x336b18['env']),console['log']('\x20\x20Config:\x20'+_0x119bf7);}function a51_0x5b9a(){const _0x2df235=['map','appCode','flagMissing','env','string','../../commands/project/init.js','production','Auto-confirm\x20prompts','\x20\x20Env:\x20','Usage:\x20','2paUEoN','custom','defaultApp','\x0a✓\x20Successfully\x20initialized\x20','1569162tEOfiy','113335hUhvwy','Delegate\x20to\x20legacy\x20Ink\x20init\x20flow','4487SafGbq','daily','log','3184148gfklAY','9450fLtvnp','join','\x20\x20Apps:\x20','str','appcode','\x20init\x20--appcode\x20<code>\x20[--env\x20<env>]','validation','App\x20code\x20to\x20initialize\x20with','toLocaleString','global','Smart\x20init:\x20auto-detect,\x20upgrade,\x20or\x20select\x20app\x20from\x20platform','176AccYMD','\x20\x20AppCode:\x20','nonInteractive','bool','boolean','some','yes','17757rumHdb','project','Use\x20`','init','.rabetbase.json\x20already\x20exists\x20in\x20current\x20directory.','\x20config','\x20project\x20upgrade`\x20to\x20migrate\x20from\x20legacy\x20config.','length','检测到旧配置文件,正在自动升级...\x0a','20158970OEzEec','Write\x20to\x20global\x20config\x20instead\x20of\x20project','1065665IpOrSZ'];a51_0x5b9a=function(){return _0x2df235;};return a51_0x5b9a();}async function runSmartInit(_0x59c4c3){const _0x35ee19=a51_0x324f,_0x5e6597=process['cwd'](),_0x12ada2=_0x59c4c3[_0x35ee19(0x1fb)](_0x35ee19(0x1f6))?_0x35ee19(0x1f6):_0x35ee19(0x200),_0x3e49d2=_0x59c4c3[_0x35ee19(0x1f0)](_0x35ee19(0x1db))||_0x35ee19(0x1de),_0x53a7bb=_0x59c4c3[_0x35ee19(0x1f0)](_0x35ee19(0x1f1))||undefined,_0xb0261=_0x59c4c3[_0x35ee19(0x1fb)](_0x35ee19(0x200));if(_0xb0261){const {initConfig:_0x4d15bb}=await import(_0x35ee19(0x1dd));return _0x4d15bb({'appcode':_0x53a7bb,'env':_0x3e49d2,'autoYes':_0x59c4c3[_0x35ee19(0x1fb)](_0x35ee19(0x1fe))});}if(_0x12ada2===_0x35ee19(0x200)){const _0x2c6f83=existsSync(resolve(_0x5e6597,NEW_CONFIG_NAME)),_0x3c1a5a=LEGACY_CONFIG_NAMES[_0x35ee19(0x1fd)](_0x40dcae=>existsSync(resolve(_0x5e6597,_0x40dcae)));if(_0x3c1a5a&&!_0x2c6f83)return console[_0x35ee19(0x1eb)](_0x35ee19(0x1d4)),upgradeApp(_0x59c4c3[_0x35ee19(0x1fa)],{'yes':_0x59c4c3[_0x35ee19(0x1fb)](_0x35ee19(0x1fe))});if(_0x2c6f83)throw CliErrors[_0x35ee19(0x1f3)](_0x35ee19(0x1d0),_0x35ee19(0x201)+CLI_BIN_NAME+_0x35ee19(0x1d2));}if(_0x53a7bb){const _0x556ba2=validateAppcode(_0x53a7bb);if(!_0x556ba2['valid'])throw CliErrors[_0x35ee19(0x1f3)](_0x556ba2['message']);writeInitConfig(_0x12ada2,[syntheticApp(_0x53a7bb)],_0x3e49d2);return;}if(_0x59c4c3[_0x35ee19(0x1fa)])throw CliErrors[_0x35ee19(0x1da)](_0x35ee19(0x1f1),_0x35ee19(0x1e1)+CLI_BIN_NAME+_0x35ee19(0x1f2));const _0x7678d2=getCookie(),_0x5c9bbe=await selectMultipleApps(_0x7678d2),_0x19bd8e=_0x5c9bbe===_0x35ee19(0x1e3)?[syntheticApp(await promptCustomAppcode())]:_0x5c9bbe;writeInitConfig(_0x12ada2,_0x19bd8e,_0x3e49d2);}const initFlags=[{'name':a51_0x4b0477(0x1f6),'type':a51_0x4b0477(0x1fc),'description':a51_0x4b0477(0x1d6),'default':![]},{'name':a51_0x4b0477(0x1db),'type':a51_0x4b0477(0x1dc),'description':'Target\x20environment','default':a51_0x4b0477(0x1de),'enum':[a51_0x4b0477(0x1de),a51_0x4b0477(0x1ea)]},{'name':a51_0x4b0477(0x1f1),'type':a51_0x4b0477(0x1dc),'description':a51_0x4b0477(0x1f4)},{'name':a51_0x4b0477(0x200),'type':a51_0x4b0477(0x1fc),'description':a51_0x4b0477(0x1e8),'default':![]},{'name':a51_0x4b0477(0x1fe),'type':a51_0x4b0477(0x1fc),'description':a51_0x4b0477(0x1df),'default':![]}];export const initDefinitions=[{'service':a51_0x4b0477(0x1cf),'command':'run','description':a51_0x4b0477(0x1f7),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':initFlags,async 'execute'(_0x45750f){return await runSmartInit(_0x45750f),{'ok':!![]};}}];