@lovrabet/rabetbase-cli 2.1.2-beta.1 → 2.1.2-beta.2

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 (161) 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/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/delete.js +1 -1
  28. package/lib/commands/bff/detail.js +1 -1
  29. package/lib/commands/bff/index.js +1 -1
  30. package/lib/commands/bff/list.js +1 -1
  31. package/lib/commands/bff/new.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/db/analyze-cancel.js +1 -1
  53. package/lib/commands/db/analyze-start.js +1 -1
  54. package/lib/commands/db/analyze-status.js +1 -1
  55. package/lib/commands/db/create.js +1 -1
  56. package/lib/commands/db/delete.js +1 -1
  57. package/lib/commands/db/detail.js +1 -1
  58. package/lib/commands/db/diff.js +1 -1
  59. package/lib/commands/db/index.js +1 -1
  60. package/lib/commands/db/list.js +1 -1
  61. package/lib/commands/db/shared.js +1 -1
  62. package/lib/commands/db/tables.js +1 -1
  63. package/lib/commands/db/test.js +1 -1
  64. package/lib/commands/db/update.js +1 -1
  65. package/lib/commands/doctor.js +1 -1
  66. package/lib/commands/init/index.js +1 -1
  67. package/lib/commands/logs/index.js +1 -1
  68. package/lib/commands/menu/index.js +1 -1
  69. package/lib/commands/menu/shared/compare-table.js +1 -1
  70. package/lib/commands/menu/shared/index.js +1 -1
  71. package/lib/commands/menu/shared/inquirer.js +1 -1
  72. package/lib/commands/menu/shared/local-pages.js +1 -1
  73. package/lib/commands/menu/shared/logic.js +1 -1
  74. package/lib/commands/menu/shared/service.js +1 -1
  75. package/lib/commands/menu/shared/sync-core.js +1 -1
  76. package/lib/commands/menu/shared/update-core.js +1 -1
  77. package/lib/commands/menu/shared/valid-url.js +1 -1
  78. package/lib/commands/menu/sync.js +1 -1
  79. package/lib/commands/menu/update.js +1 -1
  80. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  81. package/lib/commands/project/create/format-elapsed.js +1 -1
  82. package/lib/commands/project/create/main.js +1 -1
  83. package/lib/commands/project/create/non-interactive.js +1 -1
  84. package/lib/commands/project/create/project-template-path.js +1 -1
  85. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  86. package/lib/commands/project/create/use-format-code.js +1 -1
  87. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  88. package/lib/commands/project/index.js +1 -1
  89. package/lib/commands/project/init.js +1 -1
  90. package/lib/commands/project/upgrade.js +1 -1
  91. package/lib/commands/registry.js +1 -1
  92. package/lib/commands/run/index.js +1 -1
  93. package/lib/commands/schema.js +1 -1
  94. package/lib/commands/skill/index.js +1 -1
  95. package/lib/commands/sql/detail.js +1 -1
  96. package/lib/commands/sql/exec.js +1 -1
  97. package/lib/commands/sql/index.js +1 -1
  98. package/lib/commands/sql/list.js +1 -1
  99. package/lib/commands/sql/pull.js +1 -1
  100. package/lib/commands/sql/save.js +1 -1
  101. package/lib/commands/sql/shared.js +1 -1
  102. package/lib/commands/sql/validate.js +1 -1
  103. package/lib/config/schema.js +1 -1
  104. package/lib/constant/cli.js +1 -1
  105. package/lib/constant/defaults.js +1 -1
  106. package/lib/constant/domain.js +1 -1
  107. package/lib/constant/env.js +1 -1
  108. package/lib/constant/output.js +1 -1
  109. package/lib/constant/paths.js +1 -1
  110. package/lib/constant/risk.js +1 -1
  111. package/lib/context.js +1 -1
  112. package/lib/core/alias-resolver.js +1 -1
  113. package/lib/core/api-client.js +1 -1
  114. package/lib/core/bff/config.js +1 -1
  115. package/lib/core/bff/file-system.js +1 -1
  116. package/lib/core/bff/hash.js +1 -1
  117. package/lib/core/bff/lock.js +1 -1
  118. package/lib/core/bff/utils.js +1 -1
  119. package/lib/core/db-resolver.js +1 -1
  120. package/lib/core/sql-validator.js +1 -1
  121. package/lib/errors.js +1 -1
  122. package/lib/framework/build-all-flags.js +1 -1
  123. package/lib/framework/flags.js +1 -1
  124. package/lib/framework/help.js +1 -1
  125. package/lib/framework/index.js +1 -1
  126. package/lib/framework/output.js +1 -1
  127. package/lib/framework/response.js +1 -1
  128. package/lib/framework/runner-alias.js +1 -1
  129. package/lib/framework/runner.js +1 -1
  130. package/lib/framework/schema-export.js +1 -1
  131. package/lib/framework/types.js +1 -1
  132. package/lib/generated/build-info.js +1 -1
  133. package/lib/help.js +1 -1
  134. package/lib/skills/main.js +1 -1
  135. package/lib/skills/npx-skills-add.js +1 -1
  136. package/lib/telemetry/cli-command-trace.js +1 -1
  137. package/lib/telemetry/cli-help-trace.js +1 -1
  138. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  139. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  140. package/lib/telemetry/send-cli-trace-log.js +1 -1
  141. package/lib/utils/ai_config.js +1 -1
  142. package/lib/utils/apply-jq-filter.js +1 -1
  143. package/lib/utils/cdn-config.js +1 -1
  144. package/lib/utils/check-sdk-version.js +1 -1
  145. package/lib/utils/cli-version-check.js +1 -1
  146. package/lib/utils/config.js +1 -1
  147. package/lib/utils/copy-directory.js +1 -1
  148. package/lib/utils/entity-with-id.js +1 -0
  149. package/lib/utils/file-utils.js +1 -1
  150. package/lib/utils/guides-cdn.js +1 -1
  151. package/lib/utils/http-client.js +1 -1
  152. package/lib/utils/is-non-interactive.js +1 -1
  153. package/lib/utils/logger.js +1 -1
  154. package/lib/utils/platform.js +1 -1
  155. package/lib/utils/rules-cdn.js +1 -1
  156. package/lib/utils/sleep.js +1 -1
  157. package/lib/utils/template-replacer.js +1 -1
  158. package/lib/utils/version.js +1 -1
  159. package/lib/utils/with-active-cookie.js +1 -1
  160. package/lib/utils/write-cli-side-channel.js +1 -1
  161. package/package.json +2 -2
@@ -1 +1 @@
1
- function a33_0x57e8(_0x33513a,_0xb5b0b9){_0x33513a=_0x33513a-0xe0;const _0x360c51=a33_0x360c();let _0x57e89b=_0x360c51[_0x33513a];return _0x57e89b;}const a33_0x5abc81=a33_0x57e8;(function(_0x4e8268,_0x4cec85){const _0x1ef7a6=a33_0x57e8,_0x3ee9f7=_0x4e8268();while(!![]){try{const _0x328391=parseInt(_0x1ef7a6(0xe1))/0x1+parseInt(_0x1ef7a6(0xe7))/0x2*(-parseInt(_0x1ef7a6(0xe3))/0x3)+-parseInt(_0x1ef7a6(0xed))/0x4+parseInt(_0x1ef7a6(0xff))/0x5+parseInt(_0x1ef7a6(0xe4))/0x6+parseInt(_0x1ef7a6(0xe0))/0x7+-parseInt(_0x1ef7a6(0xfd))/0x8;if(_0x328391===_0x4cec85)break;else _0x3ee9f7['push'](_0x3ee9f7['shift']());}catch(_0x5b5d00){_0x3ee9f7['push'](_0x3ee9f7['shift']());}}}(a33_0x360c,0x990ac));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';function a33_0x360c(){const _0x2ddf43=['all','boolean','lockKey','remote','appCode','alias','lockFilePath','status','\x20added,\x20','12176360jpLVkm','\x20remote-only','6021645EPukHr','8191295ocSUbP','698501odJivj','scriptsRoot','3ctZwLy','703044XOpyQv','datasetCode','apiDir','1002202ittcSe','length','functions','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','hash','push','2160732BiNvhu','map','bool','read','\x20modified,\x20','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','has'];a33_0x360c=function(){return _0x2ddf43;};return a33_0x360c();}import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':'bff','command':a33_0x5abc81(0xfb),'description':a33_0x5abc81(0xea),'risk':a33_0x5abc81(0xf0),'flags':[{'name':a33_0x5abc81(0xf7),'type':a33_0x5abc81(0xf5),'description':a33_0x5abc81(0xf2)}],async 'execute'(_0x130856){const _0x2fdba5=a33_0x5abc81,_0x51a4b8=loadBffProjectConfig(_0x130856[_0x2fdba5(0xf8)]),_0x4fa15a=await readBffLockFile(_0x51a4b8[_0x2fdba5(0xfa)]),{appLock:_0x65fa46}=ensureLockScope(_0x4fa15a??createEmptyBffLock(),_0x130856[_0x2fdba5(0xf8)],_0x51a4b8[_0x2fdba5(0xe2)],'status'),_0x23fc6a=await scanLocalBffFunctions(_0x51a4b8),_0x50bddd=[],_0x5a962c=[],_0x327d79=[];for(const _0x3b9626 of _0x23fc6a){const _0x5a66b6=await computeFileHash(_0x3b9626['filePath']),_0x2d6e08=_0x65fa46[_0x2fdba5(0xe9)][_0x3b9626[_0x2fdba5(0xf6)]];if(!_0x2d6e08)_0x50bddd[_0x2fdba5(0xec)](_0x3b9626[_0x2fdba5(0xf6)]);else _0x2d6e08[_0x2fdba5(0xeb)]!==_0x5a66b6?_0x5a962c[_0x2fdba5(0xec)](_0x3b9626[_0x2fdba5(0xf6)]):_0x327d79['push'](_0x3b9626[_0x2fdba5(0xf6)]);}const _0x51a606=[];if(_0x130856[_0x2fdba5(0xef)]('remote')){const _0x5d6511=loadAliasMap(_0x130856[_0x2fdba5(0xe6)],undefined,resolveApiFilePath(_0x130856[_0x2fdba5(0xe6)],_0x130856[_0x2fdba5(0xf8)])),_0x4fb87c=new Map(_0x5d6511['map'](_0x5819cd=>[_0x5819cd[_0x2fdba5(0xe5)],_0x5819cd[_0x2fdba5(0xf9)]])),[_0x3402c0,_0x46fa12]=await Promise[_0x2fdba5(0xf4)]([listBffScripts(_0x130856[_0x2fdba5(0xf8)]),getBffScriptStatistics(_0x130856[_0x2fdba5(0xf8)])]),_0x1786a2=createHookLocationMap(_0x46fa12),_0x30d8be=new Set(_0x23fc6a[_0x2fdba5(0xee)](_0x29cd67=>_0x29cd67['lockKey']));for(const _0x48e8ca of _0x3402c0){const _0x76442d=resolveRemoteScriptTarget(_0x51a4b8,_0x48e8ca,_0x1786a2,_0x65fa46[_0x2fdba5(0xe9)],_0x4fb87c);_0x76442d&&!_0x30d8be[_0x2fdba5(0xf3)](_0x76442d['lockKey'])&&_0x51a606[_0x2fdba5(0xec)](_0x76442d[_0x2fdba5(0xf6)]);}}const _0xd4537=_0x50bddd[_0x2fdba5(0xe8)]===0x0&&_0x5a962c[_0x2fdba5(0xe8)]===0x0&&_0x51a606[_0x2fdba5(0xe8)]===0x0;return{'ok':!![],'data':{'added':_0x50bddd,'modified':_0x5a962c,'unchanged':_0x327d79,'remoteOnly':_0x51a606},'message':_0xd4537?'All\x20BFF\x20scripts\x20are\x20in\x20sync.':_0x50bddd[_0x2fdba5(0xe8)]+_0x2fdba5(0xfc)+_0x5a962c[_0x2fdba5(0xe8)]+_0x2fdba5(0xf1)+_0x327d79['length']+'\x20unchanged'+(_0x51a606[_0x2fdba5(0xe8)]>0x0?',\x20'+_0x51a606[_0x2fdba5(0xe8)]+_0x2fdba5(0xfe):'')};}};
1
+ const a33_0x8db9d0=a33_0x5c0b;function a33_0x2608(){const _0x3af971=['bool','\x20unchanged','90270wXCzKU','read','571687mZyvpf','status','\x20remote-only','all','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','lockKey','2UTMWNS','10200339tRgRnF','7363620ZtpXbn','hash','\x20added,\x20','3KwZKSV','length','2190xxDZbQ','apiDir','push','2712UpyQAU','5874xiaEJp','map','boolean','functions','filePath','appCode','\x20modified,\x20','7847NBDKXp','remote','5310652eoGEAT','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file'];a33_0x2608=function(){return _0x3af971;};return a33_0x2608();}(function(_0x970e7e,_0x2a7524){const _0x5596db=a33_0x5c0b,_0x270b24=_0x970e7e();while(!![]){try{const _0x194fb3=-parseInt(_0x5596db(0x1d6))/0x1*(parseInt(_0x5596db(0x1dc))/0x2)+-parseInt(_0x5596db(0x1e1))/0x3*(parseInt(_0x5596db(0x1d0))/0x4)+parseInt(_0x5596db(0x1d4))/0x5+parseInt(_0x5596db(0x1de))/0x6+-parseInt(_0x5596db(0x1ce))/0x7*(-parseInt(_0x5596db(0x1e6))/0x8)+parseInt(_0x5596db(0x1dd))/0x9+parseInt(_0x5596db(0x1e3))/0xa*(-parseInt(_0x5596db(0x1e7))/0xb);if(_0x194fb3===_0x2a7524)break;else _0x270b24['push'](_0x270b24['shift']());}catch(_0x3b7763){_0x270b24['push'](_0x270b24['shift']());}}}(a33_0x2608,0xb5412));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';function a33_0x5c0b(_0x2b4872,_0x33cb9d){_0x2b4872=_0x2b4872-0x1c8;const _0x26085e=a33_0x2608();let _0x5c0b36=_0x26085e[_0x2b4872];return _0x5c0b36;}export const bffStatus={'service':'bff','command':a33_0x8db9d0(0x1d7),'description':a33_0x8db9d0(0x1d1),'risk':a33_0x8db9d0(0x1d5),'flags':[{'name':a33_0x8db9d0(0x1cf),'type':a33_0x8db9d0(0x1c9),'description':a33_0x8db9d0(0x1da)}],async 'execute'(_0xab0b66){const _0x5a804a=a33_0x8db9d0,_0x1b0094=loadBffProjectConfig(_0xab0b66['appCode']),_0x411952=await readBffLockFile(_0x1b0094['lockFilePath']),{appLock:_0x2c05f4}=ensureLockScope(_0x411952??createEmptyBffLock(),_0xab0b66[_0x5a804a(0x1cc)],_0x1b0094['scriptsRoot'],'status'),_0x1fb2b5=await scanLocalBffFunctions(_0x1b0094),_0x151a6b=[],_0x46aafa=[],_0x44aad2=[];for(const _0x30dd01 of _0x1fb2b5){const _0x5baefd=await computeFileHash(_0x30dd01[_0x5a804a(0x1cb)]),_0x554b03=_0x2c05f4[_0x5a804a(0x1ca)][_0x30dd01['lockKey']];if(!_0x554b03)_0x151a6b[_0x5a804a(0x1e5)](_0x30dd01[_0x5a804a(0x1db)]);else _0x554b03[_0x5a804a(0x1df)]!==_0x5baefd?_0x46aafa[_0x5a804a(0x1e5)](_0x30dd01['lockKey']):_0x44aad2[_0x5a804a(0x1e5)](_0x30dd01[_0x5a804a(0x1db)]);}const _0x5c07ff=[];if(_0xab0b66[_0x5a804a(0x1d2)](_0x5a804a(0x1cf))){const _0x474d20=loadAliasMap(_0xab0b66[_0x5a804a(0x1e4)],undefined,resolveApiFilePath(_0xab0b66['apiDir'],_0xab0b66[_0x5a804a(0x1cc)])),_0x425b05=new Map(_0x474d20['map'](_0x575819=>[_0x575819['datasetCode'],_0x575819['alias']])),[_0x1d4f92,_0x4ee545]=await Promise[_0x5a804a(0x1d9)]([listBffScripts(_0xab0b66['appCode']),getBffScriptStatistics(_0xab0b66[_0x5a804a(0x1cc)])]),_0x1539f8=createHookLocationMap(_0x4ee545),_0x4d3b7a=new Set(_0x1fb2b5[_0x5a804a(0x1c8)](_0x3b3caf=>_0x3b3caf[_0x5a804a(0x1db)]));for(const _0xd33104 of _0x1d4f92){const _0x2ff3c9=resolveRemoteScriptTarget(_0x1b0094,_0xd33104,_0x1539f8,_0x2c05f4['functions'],_0x425b05);_0x2ff3c9&&!_0x4d3b7a['has'](_0x2ff3c9[_0x5a804a(0x1db)])&&_0x5c07ff[_0x5a804a(0x1e5)](_0x2ff3c9[_0x5a804a(0x1db)]);}}const _0x4c106b=_0x151a6b['length']===0x0&&_0x46aafa[_0x5a804a(0x1e2)]===0x0&&_0x5c07ff[_0x5a804a(0x1e2)]===0x0;return{'ok':!![],'data':{'added':_0x151a6b,'modified':_0x46aafa,'unchanged':_0x44aad2,'remoteOnly':_0x5c07ff},'message':_0x4c106b?'All\x20BFF\x20scripts\x20are\x20in\x20sync.':_0x151a6b['length']+_0x5a804a(0x1e0)+_0x46aafa[_0x5a804a(0x1e2)]+_0x5a804a(0x1cd)+_0x44aad2[_0x5a804a(0x1e2)]+_0x5a804a(0x1d3)+(_0x5c07ff[_0x5a804a(0x1e2)]>0x0?',\x20'+_0x5c07ff[_0x5a804a(0x1e2)]+_0x5a804a(0x1d8):'')};}};
@@ -1 +1 @@
1
- function a34_0x48d9(_0x5b588b,_0x95a4a4){_0x5b588b=_0x5b588b-0xb6;const _0x1c803b=a34_0x1c80();let _0x48d9b8=_0x1c803b[_0x5b588b];return _0x48d9b8;}const a34_0x12655e=a34_0x48d9;(function(_0x49108e,_0x536e86){const _0x35d449=a34_0x48d9,_0x1353bf=_0x49108e();while(!![]){try{const _0x20b568=parseInt(_0x35d449(0xba))/0x1*(parseInt(_0x35d449(0xdd))/0x2)+-parseInt(_0x35d449(0xbf))/0x3*(parseInt(_0x35d449(0xd5))/0x4)+parseInt(_0x35d449(0xca))/0x5+parseInt(_0x35d449(0xbd))/0x6+-parseInt(_0x35d449(0xb6))/0x7+parseInt(_0x35d449(0xd2))/0x8*(-parseInt(_0x35d449(0xce))/0x9)+parseInt(_0x35d449(0xc7))/0xa;if(_0x20b568===_0x536e86)break;else _0x1353bf['push'](_0x1353bf['shift']());}catch(_0x17732f){_0x1353bf['push'](_0x1353bf['shift']());}}}(a34_0x1c80,0xe6caf));import a34_0x5a9d31 from'chalk';import a34_0x5206d4 from'ora';import a34_0x3417cd from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x337bd7=a34_0x48d9;return GIT_COMMIT!==_0x337bd7(0xcc)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x2dbb7f=a34_0x48d9,_0x540274=process[_0x2dbb7f(0xe5)]['toLowerCase']();if(_0x540274['includes'](_0x2dbb7f(0xda)))return _0x2dbb7f(0xda);return'npm';}async function fetchLatestNpmVersion(){const _0x3fcc27=a34_0x48d9;try{const _0xc26318=await fetch('https://registry.npmjs.org/'+NPM_PACKAGE_NAME+_0x3fcc27(0xd0),{'signal':AbortSignal[_0x3fcc27(0xde)](0x2710)});if(!_0xc26318['ok'])return null;const _0xcd36e6=await _0xc26318['json']();return _0xcd36e6['version']??null;}catch{return null;}}async function fetchLatestVersion(){const _0x5e3edd=a34_0x48d9,_0x256084=await fetchLatestNpmVersion();if(_0x256084)return _0x256084;const _0x1bc934=await getCdnConfig();return _0x1bc934?.[_0x5e3edd(0xe2)]?.[_0x5e3edd(0xc5)]??null;}async function execute(_0x4c2a89){const _0x3c2abd=a34_0x48d9,_0x1f5a29=getCurrentVersion();console[_0x3c2abd(0xc4)](_0x3c2abd(0xbb)+_0x1f5a29);const _0x4f0aa7=a34_0x5206d4(_0x3c2abd(0xb8))[_0x3c2abd(0xc8)](),_0x1dd0d2=await fetchLatestVersion();if(!_0x1dd0d2)return _0x4f0aa7[_0x3c2abd(0xd9)](_0x3c2abd(0xc1)),console[_0x3c2abd(0xc4)](a34_0x5a9d31[_0x3c2abd(0xe3)](_0x3c2abd(0xdc)+NPM_PACKAGE_NAME+_0x3c2abd(0xcf))),{'ok':![],'message':_0x3c2abd(0xc6)};const _0x285bd3=a34_0x3417cd[_0x3c2abd(0xd8)](_0x1f5a29),_0x7e00e4=a34_0x3417cd[_0x3c2abd(0xd8)](_0x1dd0d2);if(!_0x285bd3||!_0x7e00e4)return _0x4f0aa7['fail'](_0x3c2abd(0xc2)),{'ok':![],'message':_0x3c2abd(0xc2)};if(!a34_0x3417cd['lt'](_0x285bd3,_0x7e00e4))return _0x4f0aa7[_0x3c2abd(0xd1)]('Already\x20up\x20to\x20date\x20(v'+_0x1dd0d2+')'),{'ok':!![]};_0x4f0aa7[_0x3c2abd(0xe1)](_0x3c2abd(0xdb)+a34_0x5a9d31[_0x3c2abd(0xc9)](_0x1f5a29)+_0x3c2abd(0xc3)+a34_0x5a9d31[_0x3c2abd(0xd7)](_0x1dd0d2));const _0xc43211=detectPackageManager(),_0x51c791=_0xc43211===_0x3c2abd(0xe4)?resolveNpmBin('npm'):_0xc43211,_0x818fa9=a34_0x5206d4('Updating\x20via\x20'+_0xc43211+_0x3c2abd(0xd3))[_0x3c2abd(0xc8)]();try{return await execa(_0x51c791,[_0x3c2abd(0xe0),'-g',NPM_PACKAGE_NAME+_0x3c2abd(0xcf)],{'stdio':_0x3c2abd(0xcd)}),_0x818fa9[_0x3c2abd(0xd1)](_0x3c2abd(0xb9)+_0x1dd0d2),console[_0x3c2abd(0xc4)](a34_0x5a9d31['gray']('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),{'ok':!![]};}catch(_0x1db06f){return _0x818fa9[_0x3c2abd(0xd9)]('Update\x20failed'),console[_0x3c2abd(0xcb)](a34_0x5a9d31[_0x3c2abd(0xd4)]('\x20\x20'+_0x1db06f['message'])),console[_0x3c2abd(0xc4)](a34_0x5a9d31[_0x3c2abd(0xe3)](_0x3c2abd(0xb7)+_0xc43211+_0x3c2abd(0xc0)+NPM_PACKAGE_NAME+_0x3c2abd(0xcf))),{'ok':![],'message':_0x1db06f[_0x3c2abd(0xbe)]};}}export const updateDefinition={'service':a34_0x12655e(0xdf),'command':a34_0x12655e(0xbc),'description':'Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','risk':a34_0x12655e(0xd6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a34_0x1c80(){const _0x281d55=['write','green','coerce','fail','bun','Update\x20available:\x20','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','2yEscAP','timeout','update','install','info','cli','gray','npm','execPath','7655235dFTkzI','\x20\x20Try\x20manually:\x20','Checking\x20for\x20updates...','Updated\x20to\x20v','179791WSXPxG','Current\x20version:\x20','run','3691098hBmGzd','message','890850ucQyhl','\x20install\x20-g\x20','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','Version\x20comparison\x20failed','\x20→\x20','log','stableVersion','Unable\x20to\x20check\x20for\x20updates','17943680bGnwSJ','start','yellow','6931340mMYwZN','error','unknown','pipe','1394802YWHnog','@latest','/latest','succeed','8kVGhQK','...','red','24IdTEcB'];a34_0x1c80=function(){return _0x281d55;};return a34_0x1c80();}
1
+ const a34_0x1c6646=a34_0xf7ec;(function(_0x1049f5,_0x94d762){const _0x3aad2e=a34_0xf7ec,_0x2fd634=_0x1049f5();while(!![]){try{const _0x10c2d7=parseInt(_0x3aad2e(0x1b6))/0x1*(-parseInt(_0x3aad2e(0x1ac))/0x2)+-parseInt(_0x3aad2e(0x1c1))/0x3*(parseInt(_0x3aad2e(0x1c8))/0x4)+parseInt(_0x3aad2e(0x1a0))/0x5*(-parseInt(_0x3aad2e(0x1bf))/0x6)+parseInt(_0x3aad2e(0x1a7))/0x7*(parseInt(_0x3aad2e(0x1b8))/0x8)+-parseInt(_0x3aad2e(0x1c7))/0x9+parseInt(_0x3aad2e(0x1a5))/0xa+parseInt(_0x3aad2e(0x1c6))/0xb*(parseInt(_0x3aad2e(0x1b3))/0xc);if(_0x10c2d7===_0x94d762)break;else _0x2fd634['push'](_0x2fd634['shift']());}catch(_0x2bd0f3){_0x2fd634['push'](_0x2fd634['shift']());}}}(a34_0x3343,0x62b14));import a34_0x9c4fdd from'chalk';import a34_0x507e55 from'ora';import a34_0x47710b from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x3ad34c=a34_0xf7ec;return GIT_COMMIT!==_0x3ad34c(0x1c2)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x3ad34c(0x1c4)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x24f004=a34_0xf7ec,_0x22370f=process['execPath'][_0x24f004(0x1b5)]();if(_0x22370f[_0x24f004(0x1a4)](_0x24f004(0x1c3)))return _0x24f004(0x1c3);return _0x24f004(0x1c5);}async function fetchLatestNpmVersion(){const _0x14f039=a34_0xf7ec;try{const _0x581ff0=await fetch('https://registry.npmjs.org/'+NPM_PACKAGE_NAME+'/latest',{'signal':AbortSignal[_0x14f039(0x1aa)](0x2710)});if(!_0x581ff0['ok'])return null;const _0x22bd8e=await _0x581ff0[_0x14f039(0x1a9)]();return _0x22bd8e['version']??null;}catch{return null;}}function a34_0xf7ec(_0x13ebcd,_0x19061a){_0x13ebcd=_0x13ebcd-0x1a0;const _0x33435f=a34_0x3343();let _0xf7ec47=_0x33435f[_0x13ebcd];return _0xf7ec47;}async function fetchLatestVersion(){const _0x46a4e4=a34_0xf7ec,_0xa0eeb5=await fetchLatestNpmVersion();if(_0xa0eeb5)return _0xa0eeb5;const _0x3b2d5e=await getCdnConfig();return _0x3b2d5e?.['cli']?.[_0x46a4e4(0x1b4)]??null;}function a34_0x3343(){const _0xcf7194=['fail','start','run','yellow','37782MpZfLI','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','3mECzLL','unknown','bun','slice','npm','22zcQKpb','1799703UHesIo','22044FBZgmF','log','coerce','succeed','install','Updated\x20to\x20v','Unable\x20to\x20check\x20for\x20updates','Update\x20failed','165LJjYcB','Update\x20available:\x20','error','write','includes','4552300AhnqFI','green','140NuPQGC','info','json','timeout','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','85570nlanwL','@latest','pipe','red','Version\x20comparison\x20failed','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Updating\x20via\x20','684888ccLlOD','stableVersion','toLowerCase','7ubNgrI','...','219056fjNcKO','gray','Already\x20up\x20to\x20date\x20(v'];a34_0x3343=function(){return _0xcf7194;};return a34_0x3343();}async function execute(_0x3fa752){const _0x28a5b4=a34_0xf7ec,_0x29f757=getCurrentVersion();console[_0x28a5b4(0x1c9)]('Current\x20version:\x20'+_0x29f757);const _0x450c4e=a34_0x507e55('Checking\x20for\x20updates...')[_0x28a5b4(0x1bc)](),_0x12afa9=await fetchLatestVersion();if(!_0x12afa9)return _0x450c4e['fail']('Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)'),console[_0x28a5b4(0x1c9)](a34_0x9c4fdd[_0x28a5b4(0x1b9)](_0x28a5b4(0x1b1)+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x28a5b4(0x1ce)};const _0x3931fb=a34_0x47710b[_0x28a5b4(0x1ca)](_0x29f757),_0x5b9e29=a34_0x47710b[_0x28a5b4(0x1ca)](_0x12afa9);if(!_0x3931fb||!_0x5b9e29)return _0x450c4e[_0x28a5b4(0x1bb)](_0x28a5b4(0x1b0)),{'ok':![],'message':'Version\x20comparison\x20failed'};if(!a34_0x47710b['lt'](_0x3931fb,_0x5b9e29))return _0x450c4e[_0x28a5b4(0x1cb)](_0x28a5b4(0x1ba)+_0x12afa9+')'),{'ok':!![]};_0x450c4e[_0x28a5b4(0x1a8)](_0x28a5b4(0x1a1)+a34_0x9c4fdd[_0x28a5b4(0x1be)](_0x29f757)+'\x20→\x20'+a34_0x9c4fdd[_0x28a5b4(0x1a6)](_0x12afa9));const _0x3f45b0=detectPackageManager(),_0x329674=_0x3f45b0==='npm'?resolveNpmBin('npm'):_0x3f45b0,_0x21b796=a34_0x507e55(_0x28a5b4(0x1b2)+_0x3f45b0+_0x28a5b4(0x1b7))[_0x28a5b4(0x1bc)]();try{return await execa(_0x329674,[_0x28a5b4(0x1cc),'-g',NPM_PACKAGE_NAME+_0x28a5b4(0x1ad)],{'stdio':_0x28a5b4(0x1ae)}),_0x21b796[_0x28a5b4(0x1cb)](_0x28a5b4(0x1cd)+_0x12afa9),console['log'](a34_0x9c4fdd[_0x28a5b4(0x1b9)](_0x28a5b4(0x1c0))),{'ok':!![]};}catch(_0x1263f4){return _0x21b796[_0x28a5b4(0x1bb)](_0x28a5b4(0x1cf)),console[_0x28a5b4(0x1a2)](a34_0x9c4fdd[_0x28a5b4(0x1af)]('\x20\x20'+_0x1263f4['message'])),console[_0x28a5b4(0x1c9)](a34_0x9c4fdd['gray']('\x20\x20Try\x20manually:\x20'+_0x3f45b0+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x28a5b4(0x1ad))),{'ok':![],'message':_0x1263f4['message']};}}export const updateDefinition={'service':'update','command':a34_0x1c6646(0x1bd),'description':a34_0x1c6646(0x1ab),'risk':a34_0x1c6646(0x1a3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x45f73c,_0x93c80e){const _0xc06477=a35_0x1855,_0x2429c8=_0x45f73c();while(!![]){try{const _0x22681d=-parseInt(_0xc06477(0x1be))/0x1*(parseInt(_0xc06477(0x1c1))/0x2)+-parseInt(_0xc06477(0x1bf))/0x3+parseInt(_0xc06477(0x1c2))/0x4*(parseInt(_0xc06477(0x1c7))/0x5)+-parseInt(_0xc06477(0x1c6))/0x6+parseInt(_0xc06477(0x1c3))/0x7*(parseInt(_0xc06477(0x1c0))/0x8)+parseInt(_0xc06477(0x1bd))/0x9*(parseInt(_0xc06477(0x1c4))/0xa)+parseInt(_0xc06477(0x1c5))/0xb;if(_0x22681d===_0x93c80e)break;else _0x2429c8['push'](_0x2429c8['shift']());}catch(_0x5a6c7f){_0x2429c8['push'](_0x2429c8['shift']());}}}(a35_0x54a5,0x575c0));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';function a35_0x1855(_0x2e485e,_0x1cdf83){_0x2e485e=_0x2e485e-0x1bd;const _0x54a55e=a35_0x54a5();let _0x1855a2=_0x54a55e[_0x2e485e];return _0x1855a2;}export const codegenDefinitions=[codegenSdk,codegenSql];function a35_0x54a5(){const _0x271778=['1133757wTlyhl','2117112paxjxH','2pjlqMG','120lxaSch','7jQuoGb','10AoOmiI','8038140EdDmtI','2397078FVoNEZ','44105YXFHxx','1010934OgmjDg','237079pfZfVZ'];a35_0x54a5=function(){return _0x271778;};return a35_0x54a5();}
1
+ function a35_0xe1f4(){const _0x81ac47=['1226905qeHXeM','1830143GQhLlM','963681gzCZeN','235160euPwVg','16PgzNcc','117fiXlyV','13667676kaVHQm','6XBXwVa','753130jldUBF','12uKWChN','63299tERUnD'];a35_0xe1f4=function(){return _0x81ac47;};return a35_0xe1f4();}function a35_0x4987(_0x507909,_0xc55fa9){_0x507909=_0x507909-0x15b;const _0xe1f497=a35_0xe1f4();let _0x498728=_0xe1f497[_0x507909];return _0x498728;}(function(_0x5a487a,_0x686584){const _0x130a76=a35_0x4987,_0x2a709a=_0x5a487a();while(!![]){try{const _0x3da10a=parseInt(_0x130a76(0x161))/0x1+-parseInt(_0x130a76(0x15e))/0x2*(-parseInt(_0x130a76(0x164))/0x3)+parseInt(_0x130a76(0x15b))/0x4*(parseInt(_0x130a76(0x162))/0x5)+parseInt(_0x130a76(0x160))/0x6*(-parseInt(_0x130a76(0x163))/0x7)+-parseInt(_0x130a76(0x165))/0x8*(-parseInt(_0x130a76(0x15c))/0x9)+-parseInt(_0x130a76(0x15f))/0xa+-parseInt(_0x130a76(0x15d))/0xb;if(_0x3da10a===_0x686584)break;else _0x2a709a['push'](_0x2a709a['shift']());}catch(_0x32452c){_0x2a709a['push'](_0x2a709a['shift']());}}}(a35_0xe1f4,0x86418));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a36_0xa83d21=a36_0x25ae;(function(_0x2f4dec,_0x35f62e){const _0x228832=a36_0x25ae,_0x17bcb8=_0x2f4dec();while(!![]){try{const _0x29082f=parseInt(_0x228832(0x200))/0x1+-parseInt(_0x228832(0x1f3))/0x2+parseInt(_0x228832(0x1ea))/0x3+parseInt(_0x228832(0x1f6))/0x4+parseInt(_0x228832(0x1ff))/0x5+-parseInt(_0x228832(0x1fe))/0x6+-parseInt(_0x228832(0x1f1))/0x7*(parseInt(_0x228832(0x1f5))/0x8);if(_0x29082f===_0x35f62e)break;else _0x17bcb8['push'](_0x17bcb8['shift']());}catch(_0x111c21){_0x17bcb8['push'](_0x17bcb8['shift']());}}}(a36_0x12f9,0x60940));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a36_0x25ae(_0xf34c91,_0x402536){_0xf34c91=_0xf34c91-0x1ea;const _0x12f9ca=a36_0x12f9();let _0x25ae0a=_0x12f9ca[_0xf34c91];return _0x25ae0a;}import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a36_0xa83d21(0x1eb),'command':'sdk','description':a36_0xa83d21(0x1f8),'risk':a36_0xa83d21(0x1f0),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0xa83d21(0x1f2),'type':a36_0xa83d21(0x1fd),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a36_0xa83d21(0x1ef),'type':'string','required':!![],'description':a36_0xa83d21(0x1f9)},{'name':'skip-imports','type':a36_0xa83d21(0x1ec),'description':a36_0xa83d21(0x1fa)}],async 'execute'(_0x196f38){const _0x3c8338=a36_0xa83d21,{dataset:_0x37fb62,operation:_0x351486}=await getOperationDetail(_0x196f38[_0x3c8338(0x1fb)],_0x196f38[_0x3c8338(0x1ed)](_0x3c8338(0x1f4)),_0x196f38['str']('operation')),_0x2f78e4=generateSdkCode(_0x37fb62,_0x351486,{'includeImports':!_0x196f38['bool'](_0x3c8338(0x1fc))});return{'ok':!![],'data':{'dataset':{'name':_0x37fb62[_0x3c8338(0x1f7)],'code':_0x37fb62[_0x3c8338(0x1f4)],'tableName':_0x37fb62[_0x3c8338(0x1ee)]},'operation':_0x196f38[_0x3c8338(0x1ed)](_0x3c8338(0x1ef)),'code':_0x2f78e4}};}};function a36_0x12f9(){const _0x496b42=['768358PszbVh','382821PqnUmk','codegen','boolean','str','tableName','operation','read','28OxYtWV','alias','1171816yIMyeA','code','1322528QNhFdv','2258244czypMu','name','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','Omit\x20import\x20statements\x20from\x20generated\x20code','appCode','skip-imports','string','795510FFXDDA','1574075MdLWKh'];a36_0x12f9=function(){return _0x496b42;};return a36_0x12f9();}
1
+ const a36_0x5c02da=a36_0x6f31;(function(_0x3dc797,_0x4b6ac7){const _0x26019b=a36_0x6f31,_0x10488e=_0x3dc797();while(!![]){try{const _0xf5a71a=parseInt(_0x26019b(0x96))/0x1*(-parseInt(_0x26019b(0x91))/0x2)+parseInt(_0x26019b(0x9e))/0x3*(parseInt(_0x26019b(0x9a))/0x4)+-parseInt(_0x26019b(0x99))/0x5*(-parseInt(_0x26019b(0xa2))/0x6)+-parseInt(_0x26019b(0x94))/0x7+parseInt(_0x26019b(0x90))/0x8+parseInt(_0x26019b(0x97))/0x9+-parseInt(_0x26019b(0x8e))/0xa*(parseInt(_0x26019b(0x9f))/0xb);if(_0xf5a71a===_0x4b6ac7)break;else _0x10488e['push'](_0x10488e['shift']());}catch(_0x7813bb){_0x10488e['push'](_0x10488e['shift']());}}}(a36_0x2a58,0xf0b8c));function a36_0x6f31(_0x4a0d79,_0xc0def5){_0x4a0d79=_0x4a0d79-0x88;const _0x2a5848=a36_0x2a58();let _0x6f312=_0x2a5848[_0x4a0d79];return _0x6f312;}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a36_0x5c02da(0x8d),'command':a36_0x5c02da(0x88),'description':a36_0x5c02da(0x9c),'risk':a36_0x5c02da(0x8f),'flags':[CODE_FLAG_OPTIONAL,{'name':'alias','type':a36_0x5c02da(0x95),'description':a36_0x5c02da(0x98)},{'name':'operation','type':'string','required':!![],'description':a36_0x5c02da(0x8a)},{'name':a36_0x5c02da(0x92),'type':'boolean','description':a36_0x5c02da(0x89)}],async 'execute'(_0x76ecab){const _0x324075=a36_0x5c02da,{dataset:_0x3fd624,operation:_0x80ad64}=await getOperationDetail(_0x76ecab[_0x324075(0x9d)],_0x76ecab[_0x324075(0x9b)](_0x324075(0xa1)),_0x76ecab['str'](_0x324075(0x8c))),_0x34663f=generateSdkCode(_0x3fd624,_0x80ad64,{'includeImports':!_0x76ecab[_0x324075(0xa0)](_0x324075(0x92))});return{'ok':!![],'data':{'dataset':{'name':_0x3fd624[_0x324075(0x8b)],'code':_0x3fd624[_0x324075(0xa1)],'tableName':_0x3fd624[_0x324075(0x93)]},'operation':_0x76ecab[_0x324075(0x9b)](_0x324075(0x8c)),'code':_0x34663f}};}};function a36_0x2a58(){const _0x119bac=['Omit\x20import\x20statements\x20from\x20generated\x20code','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','name','operation','codegen','9910ReswiS','read','9099464pPBQeL','502MzOJNn','skip-imports','tableName','9634786psbVfl','string','1073DdRjEQ','9945774tPmpAN','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','51820XekDtW','1244nMIlZN','str','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','appCode','12477ubKDQL','12683eFzSiJ','bool','code','138QFWaib','sdk'];a36_0x2a58=function(){return _0x119bac;};return a36_0x2a58();}
@@ -1 +1 @@
1
- function a37_0x229e(_0x7a5c31,_0x189d14){_0x7a5c31=_0x7a5c31-0x1c5;const _0xff955e=a37_0xff95();let _0x229e40=_0xff955e[_0x7a5c31];return _0x229e40;}function a37_0xff95(){const _0x4bb0b5=['1343419coNjZR','sdk','appCode','sqlName','read','41647BIdqIq','str','8uQNpyE','bool','5PRssKq','sqlcode','1750990SKyVkc','1644096skoiqJ','sql','9ZMYtzH','107454eAyTte','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','338766HTIDqL','no-imports','codegen','bff','target','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','419426Gzcjdb'];a37_0xff95=function(){return _0x4bb0b5;};return a37_0xff95();}const a37_0x353d6c=a37_0x229e;(function(_0x4b29a5,_0x146bcf){const _0x44e81f=a37_0x229e,_0x39ea7b=_0x4b29a5();while(!![]){try{const _0x243fb7=-parseInt(_0x44e81f(0x1ce))/0x1+parseInt(_0x44e81f(0x1c8))/0x2+-parseInt(_0x44e81f(0x1da))/0x3*(parseInt(_0x44e81f(0x1d0))/0x4)+parseInt(_0x44e81f(0x1d2))/0x5*(parseInt(_0x44e81f(0x1d8))/0x6)+parseInt(_0x44e81f(0x1c9))/0x7+-parseInt(_0x44e81f(0x1d5))/0x8+parseInt(_0x44e81f(0x1d7))/0x9*(parseInt(_0x44e81f(0x1d4))/0xa);if(_0x243fb7===_0x146bcf)break;else _0x39ea7b['push'](_0x39ea7b['shift']());}catch(_0x5362d2){_0x39ea7b['push'](_0x39ea7b['shift']());}}}(a37_0xff95,0x1db23));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x353d6c(0x1dc),'command':a37_0x353d6c(0x1d6),'description':a37_0x353d6c(0x1d9),'risk':a37_0x353d6c(0x1cd),'flags':[SQLCODE_FLAG,{'name':a37_0x353d6c(0x1c6),'type':'string','description':a37_0x353d6c(0x1c7),'default':'sdk','enum':[a37_0x353d6c(0x1ca),a37_0x353d6c(0x1c5)]},{'name':a37_0x353d6c(0x1db),'type':'boolean','description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x845fd3){const _0x53f202=a37_0x353d6c,_0x2de81a=await getSqlQueryInfo(_0x845fd3[_0x53f202(0x1cb)],_0x845fd3['str'](_0x53f202(0x1d3))),_0x31fa94=_0x845fd3[_0x53f202(0x1cf)]('target')||'sdk',_0x21aec1=generateSqlCodeTemplate(_0x2de81a,{'target':_0x31fa94,'includeImports':!_0x845fd3[_0x53f202(0x1d1)]('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x2de81a['sqlCode'],'sqlName':_0x2de81a[_0x53f202(0x1cc)],'target':_0x31fa94,'code':_0x21aec1}};}};
1
+ function a37_0x2e7f(_0x495bd0,_0x24dd1a){_0x495bd0=_0x495bd0-0x15c;const _0x53a1c9=a37_0x53a1();let _0x2e7fd7=_0x53a1c9[_0x495bd0];return _0x2e7fd7;}const a37_0x23559a=a37_0x2e7f;(function(_0x1d45af,_0x5692dd){const _0x7b2c97=a37_0x2e7f,_0x24997b=_0x1d45af();while(!![]){try{const _0x413c22=-parseInt(_0x7b2c97(0x16d))/0x1*(parseInt(_0x7b2c97(0x15e))/0x2)+parseInt(_0x7b2c97(0x167))/0x3*(-parseInt(_0x7b2c97(0x173))/0x4)+parseInt(_0x7b2c97(0x174))/0x5+parseInt(_0x7b2c97(0x161))/0x6+parseInt(_0x7b2c97(0x16a))/0x7+parseInt(_0x7b2c97(0x170))/0x8*(-parseInt(_0x7b2c97(0x16e))/0x9)+parseInt(_0x7b2c97(0x168))/0xa;if(_0x413c22===_0x5692dd)break;else _0x24997b['push'](_0x24997b['shift']());}catch(_0xbb3bc2){_0x24997b['push'](_0x24997b['shift']());}}}(a37_0x53a1,0x96e29));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a37_0x53a1(){const _0x24cdb4=['codegen','5832NJLFNY','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','sqlcode','508DbMxGH','1204460ImDyXD','bool','sqlName','1435516vthDoz','target','string','715566xwXAGx','boolean','no-imports','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','read','sdk','22623glbYFc','23620540mKXLXw','bff','2040745sxpOOJ','sqlCode','str','1xxpmsT','8892uxaQLc'];a37_0x53a1=function(){return _0x24cdb4;};return a37_0x53a1();}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x23559a(0x16f),'command':'sql','description':a37_0x23559a(0x171),'risk':a37_0x23559a(0x165),'flags':[SQLCODE_FLAG,{'name':a37_0x23559a(0x15f),'type':a37_0x23559a(0x160),'description':a37_0x23559a(0x164),'default':'sdk','enum':[a37_0x23559a(0x166),a37_0x23559a(0x169)]},{'name':'no-imports','type':a37_0x23559a(0x162),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x541f15){const _0x747b5c=a37_0x23559a,_0x56c9a8=await getSqlQueryInfo(_0x541f15['appCode'],_0x541f15[_0x747b5c(0x16c)](_0x747b5c(0x172))),_0x1a58ee=_0x541f15[_0x747b5c(0x16c)]('target')||'sdk',_0x2e741b=generateSqlCodeTemplate(_0x56c9a8,{'target':_0x1a58ee,'includeImports':!_0x541f15[_0x747b5c(0x15c)](_0x747b5c(0x163))});return{'ok':!![],'data':{'sqlCode':_0x56c9a8[_0x747b5c(0x16b)],'sqlName':_0x56c9a8[_0x747b5c(0x15d)],'target':_0x1a58ee,'code':_0x2e741b}};}};
@@ -1 +1 @@
1
- (function(_0x283249,_0x4ba627){const _0xeea6aa=a38_0x571c,_0x45f6dc=_0x283249();while(!![]){try{const _0x2887d8=parseInt(_0xeea6aa(0x70))/0x1+parseInt(_0xeea6aa(0x75))/0x2+parseInt(_0xeea6aa(0x64))/0x3+-parseInt(_0xeea6aa(0x84))/0x4+parseInt(_0xeea6aa(0x72))/0x5*(parseInt(_0xeea6aa(0x6b))/0x6)+parseInt(_0xeea6aa(0x66))/0x7*(parseInt(_0xeea6aa(0x6f))/0x8)+parseInt(_0xeea6aa(0x65))/0x9*(-parseInt(_0xeea6aa(0x7d))/0xa);if(_0x2887d8===_0x4ba627)break;else _0x45f6dc['push'](_0x45f6dc['shift']());}catch(_0x1ccb9d){_0x45f6dc['push'](_0x45f6dc['shift']());}}}(a38_0x5e96,0x52647));import{input,checkbox,select}from'@inquirer/prompts';function a38_0x5e96(){const _0xf9e638=['10qobjrU','✎\x20手动输入','appName','gray','find','includes','请输入\x20App\x20Code:','1049996bNuuxo','valid','428076WtHUcr','6515406fXhztm','2350551riJYYj','\x0a未找到可用应用。','appCode','length','Invalid\x20App\x20Code','2618958DCxgxY','\x20\x20(','(跳过,稍后配置)','✎\x20自定义输入\x20appcode','8spwCuT','69203EbQXky','map','5rPdlOt','yellow','message','679462bmqvTt','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','trim','正在获取可用应用列表...','skip','\x0a无法获取远程应用列表,请手动输入。','custom','cyan'];a38_0x5e96=function(){return _0xf9e638;};return a38_0x5e96();}import a38_0x5424bc from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x50712b=a38_0x571c,_0x59846a=await input({'message':_0x50712b(0x83),'validate':_0x208373=>{const _0x458cd4=_0x50712b,_0x222da6=validateAppcode(_0x208373[_0x458cd4(0x77)]());return _0x222da6[_0x458cd4(0x85)]||_0x222da6[_0x458cd4(0x74)]||_0x458cd4(0x6a);}});return _0x59846a[_0x50712b(0x77)]();}export async function promptAppSelection(_0x311da6){const _0x59997e=a38_0x571c,_0x367ee8=[{'name':a38_0x5424bc['yellow'](_0x59997e(0x6e)),'value':-0x1},..._0x311da6[_0x59997e(0x71)]((_0x54b5bc,_0x2d9fbf)=>({'name':_0x54b5bc['appName']+'\x20\x20'+a38_0x5424bc[_0x59997e(0x80)]('('+_0x54b5bc[_0x59997e(0x68)]+')'),'value':_0x2d9fbf}))],_0x46f613=await checkbox({'message':'获取到\x20'+a38_0x5424bc[_0x59997e(0x7c)](_0x311da6[_0x59997e(0x69)])+'\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','choices':_0x367ee8,'loop':![]});if(_0x46f613[_0x59997e(0x82)](-0x1))return _0x59997e(0x7b);if(_0x46f613[_0x59997e(0x69)]===0x0)return _0x59997e(0x7b);return _0x46f613[_0x59997e(0x71)](_0x5f443c=>_0x311da6[_0x5f443c]);}export async function promptSingleAppSelection(_0x4c1ad9){const _0x2cfa9c=a38_0x571c,_0x5a6cc8=[{'name':a38_0x5424bc[_0x2cfa9c(0x80)]('(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)'),'value':'skip'},{'name':a38_0x5424bc['yellow'](_0x2cfa9c(0x6e)),'value':_0x2cfa9c(0x7b)},..._0x4c1ad9['map'](_0x456f43=>({'name':_0x456f43[_0x2cfa9c(0x7f)]+'\x20\x20'+a38_0x5424bc['gray']('('+_0x456f43[_0x2cfa9c(0x68)]+')'),'value':_0x456f43['appCode']}))],_0x3fbbbc=await select({'message':'请选择要绑定的应用:','choices':_0x5a6cc8});if(_0x3fbbbc===_0x2cfa9c(0x79))return _0x2cfa9c(0x79);if(_0x3fbbbc===_0x2cfa9c(0x7b))return'custom';return _0x4c1ad9[_0x2cfa9c(0x81)](_0x433adb=>_0x433adb['appCode']===_0x3fbbbc);}export async function selectSingleAppcode(_0x4b0f81){const _0xdece8b=a38_0x571c;if(!_0x4b0f81)return writeCliSideChannelLine(a38_0x5424bc['gray'](_0xdece8b(0x76))),_fallbackOrSkip();writeCliSideChannelLine(_0xdece8b(0x78));let _0x3cd2f0;try{_0x3cd2f0=await withActiveCookie(_0x4b0f81,()=>listRemoteApps());}catch(_0x5b44e3){writeCliSideChannelLine(a38_0x5424bc[_0xdece8b(0x73)]('无法获取远程应用列表,请手动输入。'));if(_0x5b44e3 instanceof Error)writeCliSideChannelLine(a38_0x5424bc['gray'](_0xdece8b(0x6c)+_0x5b44e3[_0xdece8b(0x74)]+')'));return _fallbackOrSkip();}if(_0x3cd2f0['length']===0x0)return writeCliSideChannelLine(a38_0x5424bc[_0xdece8b(0x73)]('未找到可用应用。')),_fallbackOrSkip();const _0x44753a=await promptSingleAppSelection(_0x3cd2f0);if(_0x44753a==='skip')return'';if(_0x44753a===_0xdece8b(0x7b))return promptCustomAppcode();return _0x44753a[_0xdece8b(0x68)];}function a38_0x571c(_0x252506,_0x562e41){_0x252506=_0x252506-0x64;const _0x5e96b1=a38_0x5e96();let _0x571c2d=_0x5e96b1[_0x252506];return _0x571c2d;}export async function selectMultipleApps(_0x347935){const _0x5cd1bb=a38_0x571c;writeCliSideChannelLine(_0x5cd1bb(0x78));let _0x2bd447;try{_0x2bd447=await withActiveCookie(_0x347935,()=>listRemoteApps());}catch(_0x24ef49){writeCliSideChannelLine(_0x5cd1bb(0x7a));if(_0x24ef49 instanceof Error)writeCliSideChannelLine(_0x5cd1bb(0x6c)+_0x24ef49[_0x5cd1bb(0x74)]+')');return'custom';}if(_0x2bd447[_0x5cd1bb(0x69)]===0x0)return writeCliSideChannelLine(_0x5cd1bb(0x67)),_0x5cd1bb(0x7b);return promptAppSelection(_0x2bd447);}async function _fallbackOrSkip(){const _0x5912e9=a38_0x571c,_0x424f3e=await select({'message':'App\x20Code:','choices':[{'name':a38_0x5424bc[_0x5912e9(0x80)](_0x5912e9(0x6d)),'value':_0x5912e9(0x79)},{'name':a38_0x5424bc[_0x5912e9(0x73)](_0x5912e9(0x7e)),'value':'manual'}]});if(_0x424f3e===_0x5912e9(0x79))return'';return promptCustomAppcode();}
1
+ function a38_0x2ad0(_0x22cf5f,_0x5ab545){_0x22cf5f=_0x22cf5f-0xe3;const _0x440937=a38_0x4409();let _0x2ad037=_0x440937[_0x22cf5f];return _0x2ad037;}(function(_0xbabfab,_0x3b6138){const _0xb5cc4e=a38_0x2ad0,_0x35265d=_0xbabfab();while(!![]){try{const _0x55a65e=-parseInt(_0xb5cc4e(0xe9))/0x1*(-parseInt(_0xb5cc4e(0xf7))/0x2)+-parseInt(_0xb5cc4e(0xeb))/0x3+-parseInt(_0xb5cc4e(0x104))/0x4+parseInt(_0xb5cc4e(0xef))/0x5+-parseInt(_0xb5cc4e(0xe7))/0x6*(parseInt(_0xb5cc4e(0xff))/0x7)+-parseInt(_0xb5cc4e(0xf4))/0x8*(parseInt(_0xb5cc4e(0xe4))/0x9)+-parseInt(_0xb5cc4e(0xe5))/0xa*(-parseInt(_0xb5cc4e(0x101))/0xb);if(_0x55a65e===_0x3b6138)break;else _0x35265d['push'](_0x35265d['shift']());}catch(_0x2ab0b2){_0x35265d['push'](_0x35265d['shift']());}}}(a38_0x4409,0x23dd4));import{input,checkbox,select}from'@inquirer/prompts';import a38_0xfbd7bb from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a38_0x4409(){const _0x34cf7e=['map','请选择要绑定的应用:','无法获取远程应用列表,请手动输入。','(跳过,稍后配置)','skip','837613YKFTca','appName','264WvJaOp','gray','\x0a未找到可用应用。','587400XKbDub','message','获取到\x20','\x20\x20(','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','262260qSeVui','87070LWIePC','\x0a无法获取远程应用列表,请手动输入。','6vzQomC','Invalid\x20App\x20Code','127TmYuoG','custom','131508NVSfgR','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','valid','length','1249510jrOePg','✎\x20手动输入','appCode','未找到可用应用。','yellow','32xaCmpi','请输入\x20App\x20Code:','✎\x20自定义输入\x20appcode','1810qTQTyw','trim','cyan'];a38_0x4409=function(){return _0x34cf7e;};return a38_0x4409();}import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x3d5fb9=a38_0x2ad0,_0x2a3003=await input({'message':_0x3d5fb9(0xf5),'validate':_0x3a8ad3=>{const _0x1b04cc=_0x3d5fb9,_0x9371a2=validateAppcode(_0x3a8ad3[_0x1b04cc(0xf8)]());return _0x9371a2[_0x1b04cc(0xed)]||_0x9371a2[_0x1b04cc(0x105)]||_0x1b04cc(0xe8);}});return _0x2a3003['trim']();}export async function promptAppSelection(_0x49b590){const _0xdb5b2d=a38_0x2ad0,_0x332ffa=[{'name':a38_0xfbd7bb[_0xdb5b2d(0xf3)](_0xdb5b2d(0xf6)),'value':-0x1},..._0x49b590[_0xdb5b2d(0xfa)]((_0x59638f,_0x3d68bc)=>({'name':_0x59638f[_0xdb5b2d(0x100)]+'\x20\x20'+a38_0xfbd7bb[_0xdb5b2d(0x102)]('('+_0x59638f[_0xdb5b2d(0xf1)]+')'),'value':_0x3d68bc}))],_0x5eaee7=await checkbox({'message':_0xdb5b2d(0x106)+a38_0xfbd7bb[_0xdb5b2d(0xf9)](_0x49b590['length'])+'\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','choices':_0x332ffa,'loop':![]});if(_0x5eaee7['includes'](-0x1))return _0xdb5b2d(0xea);if(_0x5eaee7[_0xdb5b2d(0xee)]===0x0)return _0xdb5b2d(0xea);return _0x5eaee7['map'](_0x388217=>_0x49b590[_0x388217]);}export async function promptSingleAppSelection(_0x47115a){const _0x87d609=a38_0x2ad0,_0x288a90=[{'name':a38_0xfbd7bb['gray'](_0x87d609(0xe3)),'value':_0x87d609(0xfe)},{'name':a38_0xfbd7bb[_0x87d609(0xf3)]('✎\x20自定义输入\x20appcode'),'value':_0x87d609(0xea)},..._0x47115a[_0x87d609(0xfa)](_0x12108a=>({'name':_0x12108a[_0x87d609(0x100)]+'\x20\x20'+a38_0xfbd7bb['gray']('('+_0x12108a[_0x87d609(0xf1)]+')'),'value':_0x12108a[_0x87d609(0xf1)]}))],_0x29040a=await select({'message':_0x87d609(0xfb),'choices':_0x288a90});if(_0x29040a===_0x87d609(0xfe))return'skip';if(_0x29040a==='custom')return _0x87d609(0xea);return _0x47115a['find'](_0x5abebf=>_0x5abebf[_0x87d609(0xf1)]===_0x29040a);}export async function selectSingleAppcode(_0x1afe29){const _0x39eda4=a38_0x2ad0;if(!_0x1afe29)return writeCliSideChannelLine(a38_0xfbd7bb[_0x39eda4(0x102)](_0x39eda4(0xec))),_fallbackOrSkip();writeCliSideChannelLine('正在获取可用应用列表...');let _0x455ce3;try{_0x455ce3=await withActiveCookie(_0x1afe29,()=>listRemoteApps());}catch(_0x5d379b){writeCliSideChannelLine(a38_0xfbd7bb[_0x39eda4(0xf3)](_0x39eda4(0xfc)));if(_0x5d379b instanceof Error)writeCliSideChannelLine(a38_0xfbd7bb[_0x39eda4(0x102)](_0x39eda4(0x107)+_0x5d379b[_0x39eda4(0x105)]+')'));return _fallbackOrSkip();}if(_0x455ce3[_0x39eda4(0xee)]===0x0)return writeCliSideChannelLine(a38_0xfbd7bb['yellow'](_0x39eda4(0xf2))),_fallbackOrSkip();const _0x1852a0=await promptSingleAppSelection(_0x455ce3);if(_0x1852a0===_0x39eda4(0xfe))return'';if(_0x1852a0==='custom')return promptCustomAppcode();return _0x1852a0[_0x39eda4(0xf1)];}export async function selectMultipleApps(_0x10680d){const _0x129d72=a38_0x2ad0;writeCliSideChannelLine('正在获取可用应用列表...');let _0x2f8eaa;try{_0x2f8eaa=await withActiveCookie(_0x10680d,()=>listRemoteApps());}catch(_0x3c7c9a){writeCliSideChannelLine(_0x129d72(0xe6));if(_0x3c7c9a instanceof Error)writeCliSideChannelLine(_0x129d72(0x107)+_0x3c7c9a[_0x129d72(0x105)]+')');return'custom';}if(_0x2f8eaa[_0x129d72(0xee)]===0x0)return writeCliSideChannelLine(_0x129d72(0x103)),'custom';return promptAppSelection(_0x2f8eaa);}async function _fallbackOrSkip(){const _0x471204=a38_0x2ad0,_0x4aa5f1=await select({'message':'App\x20Code:','choices':[{'name':a38_0xfbd7bb[_0x471204(0x102)](_0x471204(0xfd)),'value':_0x471204(0xfe)},{'name':a38_0xfbd7bb[_0x471204(0xf3)](_0x471204(0xf0)),'value':'manual'}]});if(_0x4aa5f1===_0x471204(0xfe))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a39_0x4877ce=a39_0x30ba;(function(_0x375deb,_0x4112e9){const _0x3582ba=a39_0x30ba,_0x138aa2=_0x375deb();while(!![]){try{const _0x46765b=parseInt(_0x3582ba(0x1c3))/0x1*(-parseInt(_0x3582ba(0x1bd))/0x2)+-parseInt(_0x3582ba(0x1bb))/0x3*(-parseInt(_0x3582ba(0x1c1))/0x4)+parseInt(_0x3582ba(0x1c6))/0x5*(parseInt(_0x3582ba(0x1c5))/0x6)+-parseInt(_0x3582ba(0x1b8))/0x7+parseInt(_0x3582ba(0x1b7))/0x8*(-parseInt(_0x3582ba(0x1ce))/0x9)+parseInt(_0x3582ba(0x1b6))/0xa*(parseInt(_0x3582ba(0x1cd))/0xb)+-parseInt(_0x3582ba(0x1c7))/0xc*(-parseInt(_0x3582ba(0x1cc))/0xd);if(_0x46765b===_0x4112e9)break;else _0x138aa2['push'](_0x138aa2['shift']());}catch(_0x2da6b5){_0x138aa2['push'](_0x138aa2['shift']());}}}(a39_0x25ba,0x870ec));export const CODE_FLAG={'name':a39_0x4877ce(0x1ca),'type':a39_0x4877ce(0x1c0),'required':!![],'description':a39_0x4877ce(0x1c2),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const SQLCODE_FLAG={'name':'sqlcode','type':a39_0x4877ce(0x1c0),'required':!![],'description':a39_0x4877ce(0x1cb),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x4877ce(0x1b9)}};function a39_0x30ba(_0x3ea9f2,_0x509f82){_0x3ea9f2=_0x3ea9f2-0x1b6;const _0x25ba12=a39_0x25ba();let _0x30bab5=_0x25ba12[_0x3ea9f2];return _0x30bab5;}export const APPCODE_FLAG_OPTIONAL={'name':a39_0x4877ce(0x1bf),'type':a39_0x4877ce(0x1c0),'required':![],'description':a39_0x4877ce(0x1be)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};function a39_0x25ba(){const _0x231041=['2dSuklk','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','appcode','string','4IEhmTI','Dataset\x20code\x20(32-char\x20hex\x20UUID)','249483QPCQgK','POSTGRESQL','262806SmlyHa','55leHbEh','12GTfWSO','MYSQL','Database\x20product\x20type','code','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','13527566JXWHXu','349976ZJjRUN','38538KTcYCd','10IVdJxj','760OKMzVs','7202258PsgXZx','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','number','2052462GRGfVK','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'];a39_0x25ba=function(){return _0x231041;};return a39_0x25ba();}export const DBLINK_ID_FLAG={'name':'id','type':a39_0x4877ce(0x1ba),'required':!![],'description':a39_0x4877ce(0x1bc)};export const DB_TYPE_FLAG={'name':'dbtype','type':a39_0x4877ce(0x1c0),'required':!![],'description':a39_0x4877ce(0x1c9),'enum':[a39_0x4877ce(0x1c8),a39_0x4877ce(0x1c4)]};
1
+ const a39_0x1db4df=a39_0x3b4f;(function(_0x215205,_0x453bd8){const _0x1eb6c0=a39_0x3b4f,_0x1f18c8=_0x215205();while(!![]){try{const _0x30ecf9=-parseInt(_0x1eb6c0(0x1fd))/0x1*(parseInt(_0x1eb6c0(0x1fa))/0x2)+-parseInt(_0x1eb6c0(0x1ee))/0x3+-parseInt(_0x1eb6c0(0x1ef))/0x4+parseInt(_0x1eb6c0(0x1fe))/0x5+parseInt(_0x1eb6c0(0x1f7))/0x6+-parseInt(_0x1eb6c0(0x1ed))/0x7*(parseInt(_0x1eb6c0(0x1fb))/0x8)+parseInt(_0x1eb6c0(0x1f8))/0x9;if(_0x30ecf9===_0x453bd8)break;else _0x1f18c8['push'](_0x1f18c8['shift']());}catch(_0x413537){_0x1f18c8['push'](_0x1f18c8['shift']());}}}(a39_0x1a5a,0xd6457));function a39_0x1a5a(){const _0x461e4b=['appcode','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','MYSQL','string','Database\x20product\x20type','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','6795546aXobYv','26583183oPedMu','dbtype','461966PuSWWw','88juuCWw','number','3wuRybB','6411765XwsnDR','Dataset\x20code\x20(32-char\x20hex\x20UUID)','430262FHqbmE','4374450lgApik','6655004GKHTxM'];a39_0x1a5a=function(){return _0x461e4b;};return a39_0x1a5a();}export const CODE_FLAG={'name':'code','type':a39_0x1db4df(0x1f3),'required':!![],'description':a39_0x1db4df(0x1ec),'pattern':{'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20lowercase\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588a3a79d4a3540bbb2def2ad0a228a9acd)'}};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};function a39_0x3b4f(_0x5d9533,_0x290932){_0x5d9533=_0x5d9533-0x1ec;const _0x1a5a39=a39_0x1a5a();let _0x3b4fbc=_0x1a5a39[_0x5d9533];return _0x3b4fbc;}export const SQLCODE_FLAG={'name':'sqlcode','type':'string','required':!![],'description':a39_0x1db4df(0x1f5),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x1db4df(0x1f6)}};export const APPCODE_FLAG_OPTIONAL={'name':a39_0x1db4df(0x1f0),'type':a39_0x1db4df(0x1f3),'required':![],'description':'App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)'};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a39_0x1db4df(0x1fc),'required':!![],'description':a39_0x1db4df(0x1f1)};export const DB_TYPE_FLAG={'name':a39_0x1db4df(0x1f9),'type':a39_0x1db4df(0x1f3),'required':!![],'description':a39_0x1db4df(0x1f4),'enum':[a39_0x1db4df(0x1f2),'POSTGRESQL']};
@@ -1 +1 @@
1
- (function(_0x398759,_0x349b0f){const _0x53b7bf=a40_0x4e37,_0x100efc=_0x398759();while(!![]){try{const _0x5e30d1=-parseInt(_0x53b7bf(0x1ea))/0x1*(-parseInt(_0x53b7bf(0x1f6))/0x2)+-parseInt(_0x53b7bf(0x1e8))/0x3+-parseInt(_0x53b7bf(0x1e7))/0x4*(-parseInt(_0x53b7bf(0x1ee))/0x5)+parseInt(_0x53b7bf(0x1f0))/0x6*(-parseInt(_0x53b7bf(0x1eb))/0x7)+parseInt(_0x53b7bf(0x1e9))/0x8+-parseInt(_0x53b7bf(0x1ed))/0x9*(parseInt(_0x53b7bf(0x1f4))/0xa)+-parseInt(_0x53b7bf(0x1f2))/0xb*(-parseInt(_0x53b7bf(0x1f5))/0xc);if(_0x5e30d1===_0x349b0f)break;else _0x100efc['push'](_0x100efc['shift']());}catch(_0x34787e){_0x100efc['push'](_0x100efc['shift']());}}}(a40_0x4352,0xc91fc));function a40_0x4352(){const _0x2cb4ac=['length','34536dOTPqZ','trim','220264OWeMhE','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','50qTAzhf','1776LMNlOp','5442ZxsuAa','124gCLbCS','1076964eQLMXL','1655944pNFSbg','11DWiGtQ','1078iJKcZv','App\x20Code\x20cannot\x20be\x20empty','2202831OcjCXh','14925Yzwzvo'];a40_0x4352=function(){return _0x2cb4ac;};return a40_0x4352();}function a40_0x4e37(_0x16ab68,_0x191647){_0x16ab68=_0x16ab68-0x1e7;const _0x435263=a40_0x4352();let _0x4e378d=_0x435263[_0x16ab68];return _0x4e378d;}export function validateAppcode(_0x513a10){const _0x55ace5=a40_0x4e37,_0x32276b=_0x513a10[_0x55ace5(0x1f1)]();if(!_0x32276b)return{'valid':![],'message':_0x55ace5(0x1ec)};if(_0x32276b[_0x55ace5(0x1ef)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/['test'](_0x32276b))return{'valid':![],'message':_0x55ace5(0x1f3)};return{'valid':!![]};}
1
+ (function(_0x1782e6,_0x65ad23){const _0x133033=a40_0x5e5b,_0x14117f=_0x1782e6();while(!![]){try{const _0x36e509=-parseInt(_0x133033(0xe9))/0x1*(parseInt(_0x133033(0xeb))/0x2)+parseInt(_0x133033(0xf1))/0x3*(parseInt(_0x133033(0xf3))/0x4)+-parseInt(_0x133033(0xec))/0x5*(parseInt(_0x133033(0xf7))/0x6)+parseInt(_0x133033(0xf4))/0x7*(parseInt(_0x133033(0xe8))/0x8)+-parseInt(_0x133033(0xed))/0x9+parseInt(_0x133033(0xee))/0xa+-parseInt(_0x133033(0xe7))/0xb*(parseInt(_0x133033(0xf0))/0xc);if(_0x36e509===_0x65ad23)break;else _0x14117f['push'](_0x14117f['shift']());}catch(_0x169f33){_0x14117f['push'](_0x14117f['shift']());}}}(a40_0x2b58,0x191bd));function a40_0x5e5b(_0x9ac0c9,_0x155f8b){_0x9ac0c9=_0x9ac0c9-0xe7;const _0x2b584b=a40_0x2b58();let _0x5e5b07=_0x2b584b[_0x9ac0c9];return _0x5e5b07;}function a40_0x2b58(){const _0x3dc85a=['24aAApTr','574941QZQVhz','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','4Rbrpvv','426797AMzykO','App\x20Code\x20cannot\x20exceed\x20100\x20characters','App\x20Code\x20cannot\x20be\x20empty','120678aWsLcH','310024OHAKqM','16ZYByWR','13702ckecLk','length','4okXYSG','25MyQDdk','1059057wWBYQF','912660anSjFB','test'];a40_0x2b58=function(){return _0x3dc85a;};return a40_0x2b58();}export function validateAppcode(_0x36b659){const _0x17e252=a40_0x5e5b,_0xed0250=_0x36b659['trim']();if(!_0xed0250)return{'valid':![],'message':_0x17e252(0xf6)};if(_0xed0250[_0x17e252(0xea)]>0x64)return{'valid':![],'message':_0x17e252(0xf5)};if(!/^[A-Za-z0-9_-]+$/[_0x17e252(0xef)](_0xed0250))return{'valid':![],'message':_0x17e252(0xf2)};return{'valid':!![]};}
@@ -1 +1 @@
1
- const a41_0x19984f=a41_0x1b81;(function(_0x426c87,_0x28d20d){const _0x2580bd=a41_0x1b81,_0xcdf058=_0x426c87();while(!![]){try{const _0x473a58=parseInt(_0x2580bd(0x1e0))/0x1*(-parseInt(_0x2580bd(0x1e5))/0x2)+-parseInt(_0x2580bd(0x1de))/0x3+parseInt(_0x2580bd(0x1ec))/0x4*(-parseInt(_0x2580bd(0x1ef))/0x5)+-parseInt(_0x2580bd(0x1ea))/0x6+-parseInt(_0x2580bd(0x1ed))/0x7*(-parseInt(_0x2580bd(0x1e7))/0x8)+parseInt(_0x2580bd(0x1f0))/0x9+parseInt(_0x2580bd(0x1e8))/0xa;if(_0x473a58===_0x28d20d)break;else _0xcdf058['push'](_0xcdf058['shift']());}catch(_0xd45787){_0xcdf058['push'](_0xcdf058['shift']());}}}(a41_0x28e1,0xe4f57));import{CliErrors}from'../../errors.js';function a41_0x1b81(_0x4056eb,_0x35abd4){_0x4056eb=_0x4056eb-0x1dd;const _0x28e169=a41_0x28e1();let _0x1b8170=_0x28e169[_0x4056eb];return _0x1b8170;}import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';function a41_0x28e1(){const _0x30872f=['Missing\x20key.','1QMUaVq','key','Key\x20not\x20found:\x20','get','config','729726LtUuTj','object','4471240hUEuUn','2427100oDpsIa','Usage:\x20','1006470jYCOPX','validation','32ZZVibH','21fIFJRG','str','302405oHRuxZ','1768446WLvFTm','string','484944iQnOSh'];a41_0x28e1=function(){return _0x30872f;};return a41_0x28e1();}async function execute(_0x428aa5){const _0x54353b=a41_0x1b81,_0x154ea=_0x428aa5[_0x54353b(0x1ee)](_0x54353b(0x1e1));if(!_0x154ea)throw CliErrors[_0x54353b(0x1eb)](_0x54353b(0x1df),_0x54353b(0x1e9)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x566e59=readConfig(),_0x4c2e05=_0x154ea==='app'?'appcode':_0x154ea,_0x3fdf2b=_0x566e59[_0x4c2e05];if(_0x3fdf2b===undefined)throw CliErrors[_0x54353b(0x1eb)](_0x54353b(0x1e2)+_0x154ea);return{'ok':!![],'data':typeof _0x3fdf2b===_0x54353b(0x1e6)?_0x3fdf2b:{[_0x4c2e05]:_0x3fdf2b},'message':typeof _0x3fdf2b==='object'?undefined:String(_0x3fdf2b)};}export const configGetDefinition={'service':a41_0x19984f(0x1e4),'command':a41_0x19984f(0x1e3),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x19984f(0x1e1),'type':a41_0x19984f(0x1dd),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ function a41_0x3367(){const _0x349db5=['Missing\x20key.','115240tUKaEm','object','1221170MEEVTQ','str','key','4LbwcGh','1108098UjGZcg','331952hzMpJx','validation','read','389360PHJeyi','30VpwunU','string','Usage:\x20','\x20config\x20get\x20--key\x20<key>','85662mwrSCU','get','7tUyhPm','Get\x20a\x20config\x20value\x20by\x20key','Key\x20not\x20found:\x20','721920uMeqQY','config'];a41_0x3367=function(){return _0x349db5;};return a41_0x3367();}const a41_0x1929a0=a41_0x6345;(function(_0x586926,_0x4373c6){const _0x160645=a41_0x6345,_0x22a0d8=_0x586926();while(!![]){try{const _0xa03067=-parseInt(_0x160645(0xec))/0x1*(parseInt(_0x160645(0xda))/0x2)+parseInt(_0x160645(0xe9))/0x3+parseInt(_0x160645(0xdf))/0x4+parseInt(_0x160645(0xe0))/0x5*(parseInt(_0x160645(0xe4))/0x6)+-parseInt(_0x160645(0xe6))/0x7*(parseInt(_0x160645(0xdc))/0x8)+-parseInt(_0x160645(0xdb))/0x9+parseInt(_0x160645(0xee))/0xa;if(_0xa03067===_0x4373c6)break;else _0x22a0d8['push'](_0x22a0d8['shift']());}catch(_0x580fb6){_0x22a0d8['push'](_0x22a0d8['shift']());}}}(a41_0x3367,0x24c87));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';function a41_0x6345(_0xc60d7e,_0x31805c){_0xc60d7e=_0xc60d7e-0xda;const _0x33677d=a41_0x3367();let _0x6345a0=_0x33677d[_0xc60d7e];return _0x6345a0;}async function execute(_0x504be1){const _0x387c1e=a41_0x6345,_0x714d2d=_0x504be1[_0x387c1e(0xef)](_0x387c1e(0xf0));if(!_0x714d2d)throw CliErrors['validation'](_0x387c1e(0xeb),_0x387c1e(0xe2)+CLI_BIN_NAME+_0x387c1e(0xe3));const _0xb49205=readConfig(),_0x58c08a=_0x714d2d==='app'?'appcode':_0x714d2d,_0x4fab50=_0xb49205[_0x58c08a];if(_0x4fab50===undefined)throw CliErrors[_0x387c1e(0xdd)](_0x387c1e(0xe8)+_0x714d2d);return{'ok':!![],'data':typeof _0x4fab50===_0x387c1e(0xed)?_0x4fab50:{[_0x58c08a]:_0x4fab50},'message':typeof _0x4fab50===_0x387c1e(0xed)?undefined:String(_0x4fab50)};}export const configGetDefinition={'service':a41_0x1929a0(0xea),'command':a41_0x1929a0(0xe5),'description':a41_0x1929a0(0xe7),'risk':a41_0x1929a0(0xde),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a41_0x1929a0(0xe1),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x397adc,_0x5bfe6a){const _0x365345=a42_0x4175,_0x13bf67=_0x397adc();while(!![]){try{const _0x342656=parseInt(_0x365345(0x1a4))/0x1*(parseInt(_0x365345(0x1a6))/0x2)+parseInt(_0x365345(0x1a2))/0x3*(parseInt(_0x365345(0x1a8))/0x4)+-parseInt(_0x365345(0x1a5))/0x5+parseInt(_0x365345(0x1a1))/0x6*(parseInt(_0x365345(0x1a3))/0x7)+parseInt(_0x365345(0x1a7))/0x8*(parseInt(_0x365345(0x1a9))/0x9)+parseInt(_0x365345(0x1aa))/0xa+-parseInt(_0x365345(0x1a0))/0xb;if(_0x342656===_0x5bfe6a)break;else _0x13bf67['push'](_0x13bf67['shift']());}catch(_0x11dab8){_0x13bf67['push'](_0x13bf67['shift']());}}}(a42_0x4a76,0x36b6c));function a42_0x4175(_0x3e40e7,_0x1fde87){_0x3e40e7=_0x3e40e7-0x1a0;const _0x4a7694=a42_0x4a76();let _0x417510=_0x4a7694[_0x3e40e7];return _0x417510;}function a42_0x4a76(){const _0x3bb67f=['240594PXHRzj','1656DYjTxJ','14VzIyMt','1zrQXJv','17240DCkwsG','739424NGpvWI','16pAHmSA','2332IMnksS','782235CzzDrI','2991050cJltrG','11188155ClDfOw'];a42_0x4a76=function(){return _0x3bb67f;};return a42_0x4a76();}import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x5e2699,_0x49123c){const _0x253aab=a42_0x476c,_0x22d8d7=_0x5e2699();while(!![]){try{const _0x4642a2=parseInt(_0x253aab(0xa6))/0x1+-parseInt(_0x253aab(0xa9))/0x2*(-parseInt(_0x253aab(0xa8))/0x3)+-parseInt(_0x253aab(0xa1))/0x4*(parseInt(_0x253aab(0xa2))/0x5)+-parseInt(_0x253aab(0xaa))/0x6*(parseInt(_0x253aab(0xa0))/0x7)+-parseInt(_0x253aab(0xa4))/0x8+-parseInt(_0x253aab(0xa3))/0x9+parseInt(_0x253aab(0xa5))/0xa*(parseInt(_0x253aab(0xa7))/0xb);if(_0x4642a2===_0x49123c)break;else _0x22d8d7['push'](_0x22d8d7['shift']());}catch(_0x4b887a){_0x22d8d7['push'](_0x22d8d7['shift']());}}}(a42_0x4f6e,0x1ae7d));import{configListDefinition}from'../../commands/config/list.js';function a42_0x476c(_0x25e887,_0xa4291d){_0x25e887=_0x25e887-0xa0;const _0x4f6e72=a42_0x4f6e();let _0x476c8e=_0x4f6e72[_0x25e887];return _0x476c8e;}function a42_0x4f6e(){const _0x5e4ce0=['672042BoCXjY','4gpijdl','35625mHNmVT','1539306tnjhzT','1320592gEXEPb','60YsWBLw','16860wvlXsB','902726UhMDsK','2364nEWvBg','102sYadjV','6OUztEW'];a42_0x4f6e=function(){return _0x5e4ce0;};return a42_0x4f6e();}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- function a43_0x453c(_0x590c3e,_0x16e853){_0x590c3e=_0x590c3e-0xcd;const _0x29526e=a43_0x2952();let _0x453c40=_0x29526e[_0x590c3e];return _0x453c40;}const a43_0x878095=a43_0x453c;(function(_0x2f8d5d,_0x5e6f9b){const _0x3529aa=a43_0x453c,_0x29d3ac=_0x2f8d5d();while(!![]){try{const _0xb26d8e=parseInt(_0x3529aa(0xcf))/0x1+-parseInt(_0x3529aa(0xd7))/0x2+-parseInt(_0x3529aa(0xd1))/0x3+-parseInt(_0x3529aa(0xd8))/0x4+-parseInt(_0x3529aa(0xda))/0x5+parseInt(_0x3529aa(0xd4))/0x6+parseInt(_0x3529aa(0xd0))/0x7*(parseInt(_0x3529aa(0xcd))/0x8);if(_0xb26d8e===_0x5e6f9b)break;else _0x29d3ac['push'](_0x29d3ac['shift']());}catch(_0x32e70f){_0x29d3ac['push'](_0x29d3ac['shift']());}}}(a43_0x2952,0xa8abf));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a43_0x2952(){const _0x5da6e1=['246552CMxnoz','read','521017VifrQr','462igtRgu','681858MevjEB','config','bool','2497098XkVXzP','global','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','469846nzSaYH','2810920ScMWLW','List\x20all\x20config\x20values','5577180AkvrVX'];a43_0x2952=function(){return _0x5da6e1;};return a43_0x2952();}async function execute(_0x1de70c){const _0x44f245=a43_0x453c,_0x448024=_0x1de70c[_0x44f245(0xd3)](_0x44f245(0xd5))?readScopedConfig(_0x44f245(0xd5)):readConfig();return{'ok':!![],'data':_0x448024};}export const configListDefinition={'service':a43_0x878095(0xd2),'command':'list','description':a43_0x878095(0xd9),'risk':a43_0x878095(0xce),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':'boolean','description':a43_0x878095(0xd6),'default':![]}],'execute':execute};
1
+ function a43_0x52ad(_0x22a0df,_0x511ae4){_0x22a0df=_0x22a0df-0xa8;const _0x4694d2=a43_0x4694();let _0x52ad97=_0x4694d2[_0x22a0df];return _0x52ad97;}const a43_0x5db009=a43_0x52ad;(function(_0x35c570,_0x16de75){const _0x3bfde9=a43_0x52ad,_0x4a1068=_0x35c570();while(!![]){try{const _0x494fd7=parseInt(_0x3bfde9(0xaf))/0x1*(-parseInt(_0x3bfde9(0xa8))/0x2)+parseInt(_0x3bfde9(0xaa))/0x3+parseInt(_0x3bfde9(0xb5))/0x4*(-parseInt(_0x3bfde9(0xb1))/0x5)+-parseInt(_0x3bfde9(0xb3))/0x6*(parseInt(_0x3bfde9(0xad))/0x7)+-parseInt(_0x3bfde9(0xac))/0x8+-parseInt(_0x3bfde9(0xae))/0x9*(parseInt(_0x3bfde9(0xb2))/0xa)+-parseInt(_0x3bfde9(0xb0))/0xb*(-parseInt(_0x3bfde9(0xb7))/0xc);if(_0x494fd7===_0x16de75)break;else _0x4a1068['push'](_0x4a1068['shift']());}catch(_0x3acc2e){_0x4a1068['push'](_0x4a1068['shift']());}}}(a43_0x4694,0x8e427));function a43_0x4694(){const _0x3e3dcd=['7bZhGSI','90uweYNL','3141IiwwUq','1853346uoGUzf','1108540albtDF','364130YCcdzP','3580662VdmkCl','read','8VLMjZD','boolean','180kmXveQ','486VvVEwP','global','3025578ZZcyCo','list','6284280qfdUBM'];a43_0x4694=function(){return _0x3e3dcd;};return a43_0x4694();}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x3d73e4){const _0x2ee6a6=a43_0x52ad,_0x354522=_0x3d73e4['bool'](_0x2ee6a6(0xa9))?readScopedConfig(_0x2ee6a6(0xa9)):readConfig();return{'ok':!![],'data':_0x354522};}export const configListDefinition={'service':'config','command':a43_0x5db009(0xab),'description':'List\x20all\x20config\x20values','risk':a43_0x5db009(0xb4),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x5db009(0xa9),'type':a43_0x5db009(0xb6),'description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- function a44_0x4204(){const _0x5de398=['bool','Missing\x20key.','\x20app\x20add\x20<name>\x20--appcode\x20','550000HflXck','apps','key','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','length','614759DCFBNn','locale','\x20appcode\x20set\x20to:\x20','env','9088933JsUZiy','string','keys','Top-level\x20key\x20\x22','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Settable\x20top-level\x20keys:\x20','`,\x20`','3227365ZGbluj','432858pcCvGd','join','Use\x20`','object','\x22.\x20Allowed:\x20','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','global','Project','validation','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','value','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Global','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','str','8078436uZBbuh','Usage:\x20','set','Missing\x20value.','3127935iHjruj','app','appcode'];a44_0x4204=function(){return _0x5de398;};return a44_0x4204();}function a44_0x402f(_0x165b7,_0x40b3d3){_0x165b7=_0x165b7-0x17e;const _0x4204cd=a44_0x4204();let _0x402f59=_0x4204cd[_0x165b7];return _0x402f59;}const a44_0x484336=a44_0x402f;(function(_0x173e34,_0x3102e9){const _0x2e77fa=a44_0x402f,_0x539148=_0x173e34();while(!![]){try{const _0x3ae157=parseInt(_0x2e77fa(0x19e))/0x1+-parseInt(_0x2e77fa(0x17e))/0x2+parseInt(_0x2e77fa(0x192))/0x3+-parseInt(_0x2e77fa(0x198))/0x4+-parseInt(_0x2e77fa(0x1ab))/0x5+parseInt(_0x2e77fa(0x18e))/0x6+-parseInt(_0x2e77fa(0x1a2))/0x7;if(_0x3ae157===_0x3102e9)break;else _0x539148['push'](_0x539148['shift']());}catch(_0x5e09cc){_0x539148['push'](_0x539148['shift']());}}}(a44_0x4204,0xac5c5));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x5d8386){const _0x207cf8=a44_0x402f,_0x1e03af=_0x5d8386['str']('key'),_0x250e22=_0x5d8386[_0x207cf8(0x18d)](_0x207cf8(0x189));if(!_0x1e03af)throw CliErrors[_0x207cf8(0x187)](_0x207cf8(0x196),_0x207cf8(0x18f)+CLI_BIN_NAME+_0x207cf8(0x183));if(_0x250e22===undefined||_0x250e22==='')throw CliErrors[_0x207cf8(0x187)](_0x207cf8(0x191),_0x207cf8(0x18f)+CLI_BIN_NAME+_0x207cf8(0x183));if(_0x250e22['length']>0x1f4)throw CliErrors[_0x207cf8(0x187)](_0x207cf8(0x1a8));if(!isTopLevelConfigKey(_0x1e03af))throw CliErrors[_0x207cf8(0x187)](_0x207cf8(0x1a5)+_0x1e03af+'\x22\x20is\x20not\x20settable.',_0x207cf8(0x1a9)+getTopLevelConfigKeySummary());if(_0x1e03af==='riskLevel')throw CliErrors[_0x207cf8(0x187)](_0x207cf8(0x18c));if(CONFIG_ENUM_VALUES[_0x1e03af]&&!CONFIG_ENUM_VALUES[_0x1e03af]['includes'](_0x250e22))throw CliErrors[_0x207cf8(0x187)]('Invalid\x20value\x20for\x20\x22'+_0x1e03af+_0x207cf8(0x182)+CONFIG_ENUM_VALUES[_0x1e03af][_0x207cf8(0x17f)](',\x20'));if(_0x1e03af===_0x207cf8(0x19f)&&!normalizeLocale(_0x250e22))throw CliErrors['validation']('Invalid\x20locale\x20value.',_0x207cf8(0x184));const _0x137b3f={'global':_0x5d8386[_0x207cf8(0x195)](_0x207cf8(0x185))},_0x562cf9=resolveWriteScope(_0x137b3f),_0xec1b8=readScopedConfig(_0x562cf9);let _0x53a8fb=_0x1e03af,_0x369ad5=_0x250e22;_0x1e03af===_0x207cf8(0x193)&&(_0x53a8fb=_0x207cf8(0x194),delete _0xec1b8[_0x207cf8(0x193)]);_0x1e03af===_0x207cf8(0x19f)&&(_0x369ad5=normalizeLocale(_0x250e22));if(_0x1e03af==='env'){_0x369ad5=normalizeEnv(_0x250e22);if(!isProduction(_0x369ad5)&&!isDaily(_0x369ad5))throw CliErrors[_0x207cf8(0x187)](_0x207cf8(0x18a),_0x207cf8(0x19c));}if(_0x1e03af==='appcode'){const _0x5421cf=_0xec1b8[_0x207cf8(0x199)]&&typeof _0xec1b8[_0x207cf8(0x199)]===_0x207cf8(0x181)?Object[_0x207cf8(0x1a4)](_0xec1b8[_0x207cf8(0x199)]):[];if(_0x5421cf[_0x207cf8(0x19d)]>0x0)throw CliErrors[_0x207cf8(0x187)](_0x207cf8(0x188),_0x207cf8(0x180)+CLI_BIN_NAME+_0x207cf8(0x197)+_0x369ad5+_0x207cf8(0x1aa)+CLI_BIN_NAME+_0x207cf8(0x1a7));const _0x25164a=buildCanonicalProjectConfig({..._0xec1b8},{'appCodes':[_0x369ad5],'env':typeof _0xec1b8['env']==='string'?_0xec1b8[_0x207cf8(0x1a1)]:undefined});writeScopedConfig(_0x25164a,_0x562cf9);const _0x2cf1cf=_0x562cf9===_0x207cf8(0x185)?_0x207cf8(0x18b):_0x207cf8(0x186);return{'ok':!![],'message':'✓\x20'+_0x2cf1cf+_0x207cf8(0x1a0)+_0x369ad5+_0x207cf8(0x1a6)};}_0xec1b8[_0x53a8fb]=_0x369ad5,writeScopedConfig(_0xec1b8,_0x562cf9);const _0x9d5bb6=_0x562cf9===_0x207cf8(0x185)?_0x207cf8(0x18b):_0x207cf8(0x186);return{'ok':!![],'message':'✓\x20'+_0x9d5bb6+'\x20'+_0x53a8fb+'\x20set\x20to:\x20'+_0x369ad5};}export const configSetDefinition={'service':'config','command':a44_0x484336(0x190),'description':'Set\x20a\x20config\x20value','risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a44_0x484336(0x19a),'type':a44_0x484336(0x1a3),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x484336(0x189),'type':a44_0x484336(0x1a3),'description':'Config\x20value','required':!![]},{'name':'global','type':'boolean','description':a44_0x484336(0x19b),'default':![]}],'execute':execute};
1
+ const a44_0x3fd521=a44_0x37bb;function a44_0x37bb(_0x4dae2c,_0x2b2c91){_0x4dae2c=_0x4dae2c-0xa4;const _0xa636e5=a44_0xa636();let _0x37bb13=_0xa636e5[_0x4dae2c];return _0x37bb13;}(function(_0x5bde66,_0x2aa5f6){const _0x4c7e2f=a44_0x37bb,_0xbbfa36=_0x5bde66();while(!![]){try{const _0x59b708=parseInt(_0x4c7e2f(0xba))/0x1*(-parseInt(_0x4c7e2f(0xac))/0x2)+parseInt(_0x4c7e2f(0xb9))/0x3+parseInt(_0x4c7e2f(0xbd))/0x4*(-parseInt(_0x4c7e2f(0xda))/0x5)+-parseInt(_0x4c7e2f(0xa9))/0x6+-parseInt(_0x4c7e2f(0xd9))/0x7*(-parseInt(_0x4c7e2f(0xc6))/0x8)+-parseInt(_0x4c7e2f(0xcf))/0x9+-parseInt(_0x4c7e2f(0xbe))/0xa*(-parseInt(_0x4c7e2f(0xc7))/0xb);if(_0x59b708===_0x2aa5f6)break;else _0xbbfa36['push'](_0xbbfa36['shift']());}catch(_0x392e6a){_0xbbfa36['push'](_0xbbfa36['shift']());}}}(a44_0xa636,0xd4281));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a44_0xa636(){const _0x451e79=['value','Global','\x20set\x20to:\x20','48TxCOSS','11jMWaZZ','Top-level\x20key\x20\x22','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','set','length','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','appcode','app','9102240fzhuTM','Project','bool','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','riskLevel','str','locale','keys','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','boolean','1226253XpLBao','162490kGywrg','apps','Use\x20`','key','validation','join','Settable\x20top-level\x20keys:\x20','string','2260608StZOTc','\x22\x20is\x20not\x20settable.','Invalid\x20value\x20for\x20\x22','2122SZKfjm','\x22.\x20Allowed:\x20','includes','global','`,\x20`','write','object','config','\x20app\x20add\x20<name>\x20--appcode\x20','Invalid\x20locale\x20value.','Missing\x20value.','env','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','714753nexTPu','859GNNheG','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','68eEbzXB','24316610YWGhcL','Config\x20value','Usage:\x20','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Set\x20a\x20config\x20value'];a44_0xa636=function(){return _0x451e79;};return a44_0xa636();}import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x468f6d){const _0x2c9267=a44_0x37bb,_0x21e5d2=_0x468f6d[_0x2c9267(0xd4)](_0x2c9267(0xa4)),_0x94fa9f=_0x468f6d[_0x2c9267(0xd4)](_0x2c9267(0xc3));if(!_0x21e5d2)throw CliErrors[_0x2c9267(0xa5)]('Missing\x20key.',_0x2c9267(0xc0)+CLI_BIN_NAME+_0x2c9267(0xc1));if(_0x94fa9f===undefined||_0x94fa9f==='')throw CliErrors[_0x2c9267(0xa5)](_0x2c9267(0xb6),_0x2c9267(0xc0)+CLI_BIN_NAME+_0x2c9267(0xc1));if(_0x94fa9f[_0x2c9267(0xcb)]>0x1f4)throw CliErrors[_0x2c9267(0xa5)](_0x2c9267(0xcc));if(!isTopLevelConfigKey(_0x21e5d2))throw CliErrors[_0x2c9267(0xa5)](_0x2c9267(0xc8)+_0x21e5d2+_0x2c9267(0xaa),_0x2c9267(0xa7)+getTopLevelConfigKeySummary());if(_0x21e5d2===_0x2c9267(0xd3))throw CliErrors[_0x2c9267(0xa5)](_0x2c9267(0xd2));if(CONFIG_ENUM_VALUES[_0x21e5d2]&&!CONFIG_ENUM_VALUES[_0x21e5d2][_0x2c9267(0xae)](_0x94fa9f))throw CliErrors[_0x2c9267(0xa5)](_0x2c9267(0xab)+_0x21e5d2+_0x2c9267(0xad)+CONFIG_ENUM_VALUES[_0x21e5d2][_0x2c9267(0xa6)](',\x20'));if(_0x21e5d2===_0x2c9267(0xd5)&&!normalizeLocale(_0x94fa9f))throw CliErrors['validation'](_0x2c9267(0xb5),_0x2c9267(0xb8));const _0x39e99b={'global':_0x468f6d[_0x2c9267(0xd1)]('global')},_0x148faf=resolveWriteScope(_0x39e99b),_0x1ed261=readScopedConfig(_0x148faf);let _0xac5ab8=_0x21e5d2,_0x443b54=_0x94fa9f;_0x21e5d2===_0x2c9267(0xce)&&(_0xac5ab8='appcode',delete _0x1ed261[_0x2c9267(0xce)]);_0x21e5d2===_0x2c9267(0xd5)&&(_0x443b54=normalizeLocale(_0x94fa9f));if(_0x21e5d2===_0x2c9267(0xb7)){_0x443b54=normalizeEnv(_0x94fa9f);if(!isProduction(_0x443b54)&&!isDaily(_0x443b54))throw CliErrors[_0x2c9267(0xa5)](_0x2c9267(0xbb),_0x2c9267(0xbc));}if(_0x21e5d2===_0x2c9267(0xcd)){const _0x15b433=_0x1ed261[_0x2c9267(0xdb)]&&typeof _0x1ed261[_0x2c9267(0xdb)]===_0x2c9267(0xb2)?Object[_0x2c9267(0xd6)](_0x1ed261[_0x2c9267(0xdb)]):[];if(_0x15b433[_0x2c9267(0xcb)]>0x0)throw CliErrors[_0x2c9267(0xa5)](_0x2c9267(0xd7),_0x2c9267(0xdc)+CLI_BIN_NAME+_0x2c9267(0xb4)+_0x443b54+_0x2c9267(0xb0)+CLI_BIN_NAME+'\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x7e3d1d=buildCanonicalProjectConfig({..._0x1ed261},{'appCodes':[_0x443b54],'env':typeof _0x1ed261['env']===_0x2c9267(0xa8)?_0x1ed261[_0x2c9267(0xb7)]:undefined});writeScopedConfig(_0x7e3d1d,_0x148faf);const _0x18d7a7=_0x148faf===_0x2c9267(0xaf)?_0x2c9267(0xc4):_0x2c9267(0xd0);return{'ok':!![],'message':'✓\x20'+_0x18d7a7+'\x20appcode\x20set\x20to:\x20'+_0x443b54+_0x2c9267(0xc9)};}_0x1ed261[_0xac5ab8]=_0x443b54,writeScopedConfig(_0x1ed261,_0x148faf);const _0x526863=_0x148faf==='global'?_0x2c9267(0xc4):_0x2c9267(0xd0);return{'ok':!![],'message':'✓\x20'+_0x526863+'\x20'+_0xac5ab8+_0x2c9267(0xc5)+_0x443b54};}export const configSetDefinition={'service':a44_0x3fd521(0xb3),'command':a44_0x3fd521(0xca),'description':a44_0x3fd521(0xc2),'risk':a44_0x3fd521(0xb1),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a44_0x3fd521(0xa8),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x3fd521(0xc3),'type':a44_0x3fd521(0xa8),'description':a44_0x3fd521(0xbf),'required':!![]},{'name':a44_0x3fd521(0xaf),'type':a44_0x3fd521(0xd8),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x2a4fd1,_0x470a77){var _0x3e79e8=a45_0x67d0,_0x5629a1=_0x2a4fd1();while(!![]){try{var _0x3028bd=parseInt(_0x3e79e8(0xd2))/0x1*(-parseInt(_0x3e79e8(0xcd))/0x2)+-parseInt(_0x3e79e8(0xd3))/0x3*(-parseInt(_0x3e79e8(0xd8))/0x4)+-parseInt(_0x3e79e8(0xd6))/0x5*(parseInt(_0x3e79e8(0xd7))/0x6)+-parseInt(_0x3e79e8(0xd4))/0x7+-parseInt(_0x3e79e8(0xd5))/0x8+parseInt(_0x3e79e8(0xd0))/0x9*(-parseInt(_0x3e79e8(0xd1))/0xa)+parseInt(_0x3e79e8(0xcc))/0xb;if(_0x3028bd===_0x470a77)break;else _0x5629a1['push'](_0x5629a1['shift']());}catch(_0x484912){_0x5629a1['push'](_0x5629a1['shift']());}}}(a45_0x5934,0x7fe09));import{CLI_BIN_NAME}from'../../constant/cli.js';function a45_0x67d0(_0xae338a,_0x3a8ebc){_0xae338a=_0xae338a-0xcb;var _0x59343c=a45_0x5934();var _0x67d0a=_0x59343c[_0xae338a];return _0x67d0a;}import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x31c20d){var _0x1c7ecb=a45_0x67d0;if(_0x31c20d['global'])return _0x1c7ecb(0xd9);if(!isInProject())throw CliErrors[_0x1c7ecb(0xce)](_0x1c7ecb(0xda),_0x1c7ecb(0xdb)+CLI_BIN_NAME+_0x1c7ecb(0xcb));return _0x1c7ecb(0xcf);}export function readScopedConfig(_0x5f6f39){return readConfigFile(resolveWriteConfigPath(_0x5f6f39));}function a45_0x5934(){var _0x3535fa=['Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','\x20init`\x20first.','27130554jIuvvY','148958kqjalZ','validation','project','72dXwwBr','339920MZQhLh','7kKqYpV','3mDycNu','4763801HYRiSk','3474080qnzpze','5QbCqQU','1840530kcaAtt','1088872bjbLHB','global','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).'];a45_0x5934=function(){return _0x3535fa;};return a45_0x5934();}export function writeScopedConfig(_0x57ef20,_0x1c63a4){writeConfigFile(resolveWriteConfigPath(_0x1c63a4),_0x57ef20);}
1
+ (function(_0x222019,_0x2a9fa7){var _0x1c1dce=a45_0x1285,_0x146c3e=_0x222019();while(!![]){try{var _0x7a3d73=parseInt(_0x1c1dce(0xd3))/0x1*(parseInt(_0x1c1dce(0xd1))/0x2)+-parseInt(_0x1c1dce(0xd2))/0x3+-parseInt(_0x1c1dce(0xdd))/0x4*(-parseInt(_0x1c1dce(0xd9))/0x5)+-parseInt(_0x1c1dce(0xda))/0x6+-parseInt(_0x1c1dce(0xd6))/0x7+parseInt(_0x1c1dce(0xd0))/0x8*(-parseInt(_0x1c1dce(0xcf))/0x9)+parseInt(_0x1c1dce(0xdb))/0xa*(parseInt(_0x1c1dce(0xdc))/0xb);if(_0x7a3d73===_0x2a9fa7)break;else _0x146c3e['push'](_0x146c3e['shift']());}catch(_0x3fc763){_0x146c3e['push'](_0x146c3e['shift']());}}}(a45_0x3954,0xd0336));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';function a45_0x3954(){var _0x398d18=['1070ZCIwfU','231517CmZDcD','751232zNGvfL','81441ZPSzdj','1504reJJhy','6VjdXYZ','2031123hUlJVM','453445ZnxtOx','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','project','5582647EpCBBZ','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','global','25zPHIoG','3137040wxlijQ'];a45_0x3954=function(){return _0x398d18;};return a45_0x3954();}export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x41bca1){var _0x1d4d52=a45_0x1285;if(_0x41bca1[_0x1d4d52(0xd8)])return _0x1d4d52(0xd8);if(!isInProject())throw CliErrors['validation'](_0x1d4d52(0xd7),_0x1d4d52(0xd4)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x1d4d52(0xd5);}export function readScopedConfig(_0x178741){return readConfigFile(resolveWriteConfigPath(_0x178741));}function a45_0x1285(_0x420613,_0x467f08){_0x420613=_0x420613-0xcf;var _0x39548e=a45_0x3954();var _0x128521=_0x39548e[_0x420613];return _0x128521;}export function writeScopedConfig(_0x45dacb,_0x2ea2cc){writeConfigFile(resolveWriteConfigPath(_0x2ea2cc),_0x45dacb);}
@@ -1 +1 @@
1
- function a46_0x4bc8(_0xd880dc,_0x35da58){_0xd880dc=_0xd880dc-0x1c7;const _0x4bba9f=a46_0x4bba();let _0x4bc805=_0x4bba9f[_0xd880dc];return _0x4bc805;}const a46_0x15e260=a46_0x4bc8;(function(_0x4ddd98,_0x213883){const _0x3cb08f=a46_0x4bc8,_0x280944=_0x4ddd98();while(!![]){try{const _0x1fcf03=parseInt(_0x3cb08f(0x1f8))/0x1+-parseInt(_0x3cb08f(0x1f6))/0x2+parseInt(_0x3cb08f(0x1cc))/0x3*(-parseInt(_0x3cb08f(0x1d3))/0x4)+-parseInt(_0x3cb08f(0x1fc))/0x5+-parseInt(_0x3cb08f(0x204))/0x6*(-parseInt(_0x3cb08f(0x1ec))/0x7)+-parseInt(_0x3cb08f(0x206))/0x8+parseInt(_0x3cb08f(0x1f9))/0x9;if(_0x1fcf03===_0x213883)break;else _0x280944['push'](_0x280944['shift']());}catch(_0x57cc78){_0x280944['push'](_0x280944['shift']());}}}(a46_0x4bba,0x8f0a9));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0xaf5f11){const _0x2a5ab7=a46_0x4bc8;if(_0xaf5f11[_0x2a5ab7(0x1e3)])return null;const _0x20b884=Boolean(_0xaf5f11[_0x2a5ab7(0x1d7)]!==undefined||_0xaf5f11[_0x2a5ab7(0x1dd)]!==undefined);let _0x3cbbc2={};if(!_0x20b884&&typeof _0xaf5f11['extend']===_0x2a5ab7(0x208))try{_0x3cbbc2=JSON['parse'](_0xaf5f11[_0x2a5ab7(0x1e1)]);}catch{}const _0x165a91=_0x20b884?_0xaf5f11[_0x2a5ab7(0x1e0)]:_0xaf5f11[_0x2a5ab7(0x1f4)],_0x87797=_0x20b884?_0xaf5f11[_0x2a5ab7(0x1d7)]:_0xaf5f11[_0x2a5ab7(0x1e0)],_0x156b9b=_0x20b884?_0xaf5f11['doType']:_0xaf5f11[_0x2a5ab7(0x1f1)]||_0xaf5f11['dataType'],_0x2e615c=_0x20b884?_0xaf5f11[_0x2a5ab7(0x1e4)]===!![]:_0x3cbbc2[_0x2a5ab7(0x1e4)]===!![],_0x504109=_0x20b884?_0xaf5f11[_0x2a5ab7(0x1cb)]===!![]:_0x3cbbc2[_0x2a5ab7(0x1cb)]===!![],_0x2c2ee9=_0x20b884?_0xaf5f11[_0x2a5ab7(0x1f5)]??null:_0x3cbbc2[_0x2a5ab7(0x1f5)]??null,_0x2b12f9={'name':_0x165a91,'displayName':_0x87797||_0x165a91,'type':_0x156b9b,'dbType':_0xaf5f11[_0x2a5ab7(0x1ea)],'pk':_0x2e615c,'required':_0x504109,'description':_0xaf5f11[_0x2a5ab7(0x1d1)]||undefined};return Array['isArray'](_0x2c2ee9)&&_0x2c2ee9['length']>0x0&&(_0x2b12f9[_0x2a5ab7(0x1f5)]=_0x2c2ee9),_0x2b12f9;}function parseJsonMaybe(_0x44b8b2){const _0x3e95ba=a46_0x4bc8;if(typeof _0x44b8b2!==_0x3e95ba(0x208))return _0x44b8b2;try{return JSON['parse'](_0x44b8b2);}catch{return _0x44b8b2;}}function a46_0x4bba(){const _0x24c731=['read','name','extend','beforeScriptId','deleted','pkField','dbId','tableName','properties','logicField','allFields','dbType','title','3124513ucCkqH','host','alias','source','modifierIdField','type','method','dbtableConfig','code','options','2130418gGXueL','relations','911300ONbhbl','17534214uUxSFj','detail','toFieldLabel','2697790vCorHA','filter','updateTimeField','map','modifierNameField','requestBody','relatedPageInfoList','trim','6MDaUTA','toTableName','888984JaGIlX','object','string','path','allFieldNames','operations','modelId','isArray','formatRules','fromField','push','responseBody','requestFields','toDatasetName','required','18RuhiRc','length','split','afterScriptId','indexes','description','validateRules','669412EUEbjQ','responseFields','datasetKey','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','displayName','doVersion','fields','entries','dbName','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','doType','toField'];a46_0x4bba=function(){return _0x24c731;};return a46_0x4bba();}function normalizeOperationEntry(_0x35486f,_0x68279b){const _0x5e7897=a46_0x4bc8;if(!_0x68279b||typeof _0x68279b!==_0x5e7897(0x207))return null;if(!_0x68279b[_0x5e7897(0x1f2)]||!_0x68279b[_0x5e7897(0x209)])return null;const _0x10d7b2={'name':_0x35486f,'method':_0x68279b[_0x5e7897(0x1f2)],'path':_0x68279b['path']};if(_0x68279b['host'])_0x10d7b2[_0x5e7897(0x1ed)]=_0x68279b[_0x5e7897(0x1ed)];if(_0x68279b[_0x5e7897(0x201)]!=null){const _0x2112aa=parseJsonMaybe(_0x68279b['requestBody']);_0x10d7b2[_0x5e7897(0x201)]=_0x2112aa;}if(_0x68279b[_0x5e7897(0x1c8)]!=null){const _0x1684d2=parseJsonMaybe(_0x68279b[_0x5e7897(0x1c8)]);_0x10d7b2[_0x5e7897(0x1c8)]=_0x1684d2;}if(_0x68279b[_0x5e7897(0x1e2)]!=null)_0x10d7b2[_0x5e7897(0x1e2)]=_0x68279b[_0x5e7897(0x1e2)];if(_0x68279b[_0x5e7897(0x1cf)]!=null)_0x10d7b2['afterScriptId']=_0x68279b['afterScriptId'];if(Array[_0x5e7897(0x20d)](_0x68279b[_0x5e7897(0x1c9)]))_0x10d7b2[_0x5e7897(0x1c9)]=_0x68279b[_0x5e7897(0x1c9)];if(Array[_0x5e7897(0x20d)](_0x68279b[_0x5e7897(0x1d4)]))_0x10d7b2['responseFields']=_0x68279b[_0x5e7897(0x1d4)];return _0x10d7b2;}function summarizeDbtable(_0x36cf7d){const _0x348119=a46_0x4bc8,_0x47529e={},_0x58c3ef=[_0x348119(0x1e5),_0x348119(0x1db),'tableName',_0x348119(0x1d5),_0x348119(0x1e4),_0x348119(0x1e9),_0x348119(0x1e8),'createTimeField',_0x348119(0x1fe),'creatorIdField','creatorNameField',_0x348119(0x1f0),_0x348119(0x200),'labelField','dblinkInfoDTO'];for(const _0x3f7f20 of _0x58c3ef){if(_0x36cf7d[_0x3f7f20]!==undefined)_0x47529e[_0x3f7f20]=_0x36cf7d[_0x3f7f20];}return typeof _0x47529e[_0x348119(0x1e9)]===_0x348119(0x208)&&_0x47529e[_0x348119(0x1e9)][_0x348119(0x1cd)]>0x0&&(_0x47529e[_0x348119(0x20a)]=_0x47529e[_0x348119(0x1e9)][_0x348119(0x1ce)](',')[_0x348119(0x1ff)](_0x438604=>_0x438604[_0x348119(0x203)]())[_0x348119(0x1fd)](Boolean)),_0x47529e;}function normalizeRelatedPages(_0x55c627){const _0x3a0058=a46_0x4bc8;if(!Array[_0x3a0058(0x20d)](_0x55c627))return[];return _0x55c627['filter'](_0x30772a=>_0x30772a&&typeof _0x30772a===_0x3a0058(0x207))[_0x3a0058(0x1ff)](_0x7b7e08=>({'id':_0x7b7e08['id'],'type':_0x7b7e08[_0x3a0058(0x1f1)],'code':_0x7b7e08[_0x3a0058(0x1f4)],'title':_0x7b7e08[_0x3a0058(0x1eb)],'deleted':_0x7b7e08['deleted']===!![]}));}export const datasetDetail={'service':'dataset','command':a46_0x15e260(0x1fa),'description':a46_0x15e260(0x1dc),'risk':a46_0x15e260(0x1df),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a46_0x15e260(0x1ee),'type':a46_0x15e260(0x208),'description':a46_0x15e260(0x1d6)}],async 'execute'(_0x393c8b){const _0x3144e1=a46_0x15e260,_0x52d11a=await getDatasetDetail(_0x393c8b['str'](_0x3144e1(0x1f4))),_0xe86301=Array[_0x3144e1(0x20d)](_0x52d11a[_0x3144e1(0x1d9)])?_0x52d11a[_0x3144e1(0x1d9)]:Array[_0x3144e1(0x20d)](_0x52d11a[_0x3144e1(0x1e7)])?_0x52d11a['properties']:[],_0x5a3d68=_0xe86301['map'](_0x93dec7=>normalizeField(_0x93dec7))[_0x3144e1(0x1fd)](_0x10cdb3=>_0x10cdb3!==null),_0x3b8d48=_0x52d11a[_0x3144e1(0x20b)]??{},_0x772adc=[];for(const [_0x1d4dcd,_0x28e563]of Object[_0x3144e1(0x1da)](_0x3b8d48)){const _0x5bafe8=normalizeOperationEntry(_0x1d4dcd,_0x28e563);if(_0x5bafe8)_0x772adc[_0x3144e1(0x1c7)](_0x5bafe8);}const _0x21e649=_0x52d11a[_0x3144e1(0x1f3)]??{},_0x2709bf=_0x52d11a['dataset']??{},_0x1d9680=_0x21e649[_0x3144e1(0x1e5)]!=null?{'id':_0x21e649[_0x3144e1(0x1e5)],'name':_0x21e649[_0x3144e1(0x1db)]??null}:undefined;let _0x21eb86;return typeof _0x52d11a['extend']===_0x3144e1(0x208)&&(_0x21eb86=parseJsonMaybe(_0x52d11a[_0x3144e1(0x1e1)])),{'ok':!![],'data':{'id':_0x52d11a[_0x3144e1(0x20c)]??_0x52d11a['id'],'name':_0x52d11a[_0x3144e1(0x1e0)],'code':_0x52d11a['modelCode']||_0x52d11a['code'],'doVersion':_0x52d11a[_0x3144e1(0x1d8)],'description':_0x52d11a[_0x3144e1(0x1d1)]||_0x2709bf['tableComment']||undefined,'source':_0x52d11a[_0x3144e1(0x1ef)]||_0x2709bf['sourceType'],'table':_0x21e649[_0x3144e1(0x1e6)]||_0x2709bf[_0x3144e1(0x1e6)],'datasetKey':_0x21e649['datasetKey'],'pk':_0x21e649[_0x3144e1(0x1e4)],'db':_0x1d9680,'dbtable':summarizeDbtable(_0x21e649),'fields':_0x5a3d68,'operations':_0x772adc,'indexes':Array[_0x3144e1(0x20d)](_0x2709bf[_0x3144e1(0x1d0)])?_0x2709bf['indexes']:[],'relations':Array['isArray'](_0x52d11a[_0x3144e1(0x1f7)])?_0x52d11a['relations'][_0x3144e1(0x1ff)](_0x60c1ef=>({'fromField':_0x60c1ef[_0x3144e1(0x20f)],'toDataset':_0x60c1ef[_0x3144e1(0x1ca)],'toCode':_0x60c1ef['toDatasetCode'],'toTable':_0x60c1ef[_0x3144e1(0x205)],'toField':_0x60c1ef[_0x3144e1(0x1de)],'labelField':_0x60c1ef[_0x3144e1(0x1fb)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x52d11a[_0x3144e1(0x202)]),...Array[_0x3144e1(0x20d)](_0x52d11a['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x52d11a['columnCodeListWithDeleted']}:{},'formatRules':Array[_0x3144e1(0x20d)](_0x52d11a[_0x3144e1(0x20e)])?_0x52d11a[_0x3144e1(0x20e)]:[],'validateRules':Array[_0x3144e1(0x20d)](_0x52d11a[_0x3144e1(0x1d2)])?_0x52d11a['validateRules']:[],..._0x21eb86!==undefined?{'extend':_0x21eb86}:{},'stats':{'fieldCount':_0x5a3d68[_0x3144e1(0x1cd)],'operationCount':_0x772adc['length']}}};}};
1
+ const a46_0x46e1f2=a46_0x1929;(function(_0x5dcb3b,_0x15da8c){const _0x22ea1d=a46_0x1929,_0x72f35d=_0x5dcb3b();while(!![]){try{const _0xa97897=parseInt(_0x22ea1d(0x118))/0x1+-parseInt(_0x22ea1d(0x148))/0x2+parseInt(_0x22ea1d(0x13b))/0x3+-parseInt(_0x22ea1d(0x131))/0x4+parseInt(_0x22ea1d(0x137))/0x5*(-parseInt(_0x22ea1d(0x12c))/0x6)+-parseInt(_0x22ea1d(0x142))/0x7+parseInt(_0x22ea1d(0x15d))/0x8*(parseInt(_0x22ea1d(0x13e))/0x9);if(_0xa97897===_0x15da8c)break;else _0x72f35d['push'](_0x72f35d['shift']());}catch(_0x1c530e){_0x72f35d['push'](_0x72f35d['shift']());}}}(a46_0x3dc4,0x4c8fb));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x515a99){const _0x589d17=a46_0x1929;if(_0x515a99[_0x589d17(0x12f)])return null;const _0x3587d4=Boolean(_0x515a99['displayName']!==undefined||_0x515a99[_0x589d17(0x15a)]!==undefined);let _0x899011={};if(!_0x3587d4&&typeof _0x515a99[_0x589d17(0x153)]===_0x589d17(0x140))try{_0x899011=JSON['parse'](_0x515a99[_0x589d17(0x153)]);}catch{}const _0x44dc56=_0x3587d4?_0x515a99[_0x589d17(0x125)]:_0x515a99[_0x589d17(0x12a)],_0x43891e=_0x3587d4?_0x515a99['displayName']:_0x515a99[_0x589d17(0x125)],_0x3db448=_0x3587d4?_0x515a99['doType']:_0x515a99[_0x589d17(0x152)]||_0x515a99['dataType'],_0x2c758f=_0x3587d4?_0x515a99[_0x589d17(0x159)]===!![]:_0x899011[_0x589d17(0x159)]===!![],_0x54817f=_0x3587d4?_0x515a99[_0x589d17(0x160)]===!![]:_0x899011[_0x589d17(0x160)]===!![],_0x5b7056=_0x3587d4?_0x515a99[_0x589d17(0x14a)]??null:_0x899011[_0x589d17(0x14a)]??null,_0x19694d={'name':_0x44dc56,'displayName':_0x43891e||_0x44dc56,'type':_0x3db448,'dbType':_0x515a99[_0x589d17(0x156)],'pk':_0x2c758f,'required':_0x54817f,'description':_0x515a99[_0x589d17(0x158)]||undefined};return Array[_0x589d17(0x138)](_0x5b7056)&&_0x5b7056[_0x589d17(0x14b)]>0x0&&(_0x19694d[_0x589d17(0x14a)]=_0x5b7056),_0x19694d;}function parseJsonMaybe(_0x4783ba){const _0x3e4e2c=a46_0x1929;if(typeof _0x4783ba!==_0x3e4e2c(0x140))return _0x4783ba;try{return JSON[_0x3e4e2c(0x149)](_0x4783ba);}catch{return _0x4783ba;}}function a46_0x3dc4(){const _0x4c327e=['createTimeField','push','map','formatRules','alias','name','columnCodeListWithDeleted','allFieldNames','labelField','properties','code','responseBody','6uvykCy','doVersion','toDatasetName','deleted','entries','621040ImdnsH','toField','indexes','path','logicField','dblinkInfoDTO','3132890joPfZh','isArray','tableName','sourceType','1850853anjxhV','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','dataset','9BuOOKN','relatedPageInfoList','string','toTableName','2001503WWYVWM','fromField','requestBody','responseFields','method','dbId','71410rHjbzX','parse','options','length','str','allFields','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','split','afterScriptId','object','type','extend','creatorNameField','validateRules','dbType','creatorIdField','description','pkField','doType','filter','toFieldLabel','3650936QILoOd','modelCode','fields','required','host','relations','detail','343749qPsgHe','modifierIdField','dbtableConfig','dbName','datasetKey','requestFields','beforeScriptId','updateTimeField'];a46_0x3dc4=function(){return _0x4c327e;};return a46_0x3dc4();}function normalizeOperationEntry(_0xb83bd7,_0x4b2551){const _0x3f8be3=a46_0x1929;if(!_0x4b2551||typeof _0x4b2551!==_0x3f8be3(0x151))return null;if(!_0x4b2551['method']||!_0x4b2551['path'])return null;const _0x363e86={'name':_0xb83bd7,'method':_0x4b2551[_0x3f8be3(0x146)],'path':_0x4b2551[_0x3f8be3(0x134)]};if(_0x4b2551['host'])_0x363e86[_0x3f8be3(0x161)]=_0x4b2551['host'];if(_0x4b2551['requestBody']!=null){const _0x26d4b5=parseJsonMaybe(_0x4b2551[_0x3f8be3(0x144)]);_0x363e86['requestBody']=_0x26d4b5;}if(_0x4b2551[_0x3f8be3(0x12b)]!=null){const _0x31afc7=parseJsonMaybe(_0x4b2551[_0x3f8be3(0x12b)]);_0x363e86[_0x3f8be3(0x12b)]=_0x31afc7;}if(_0x4b2551['beforeScriptId']!=null)_0x363e86[_0x3f8be3(0x11e)]=_0x4b2551[_0x3f8be3(0x11e)];if(_0x4b2551['afterScriptId']!=null)_0x363e86['afterScriptId']=_0x4b2551[_0x3f8be3(0x150)];if(Array[_0x3f8be3(0x138)](_0x4b2551[_0x3f8be3(0x11d)]))_0x363e86[_0x3f8be3(0x11d)]=_0x4b2551[_0x3f8be3(0x11d)];if(Array[_0x3f8be3(0x138)](_0x4b2551['responseFields']))_0x363e86[_0x3f8be3(0x145)]=_0x4b2551[_0x3f8be3(0x145)];return _0x363e86;}function a46_0x1929(_0x2218ec,_0x32eef4){_0x2218ec=_0x2218ec-0x117;const _0x3dc4e4=a46_0x3dc4();let _0x19298f=_0x3dc4e4[_0x2218ec];return _0x19298f;}function summarizeDbtable(_0x5f54e5){const _0x2b2faa=a46_0x1929,_0x548f6e={},_0x11311d=['dbId',_0x2b2faa(0x11b),'tableName','datasetKey',_0x2b2faa(0x159),_0x2b2faa(0x14d),_0x2b2faa(0x135),_0x2b2faa(0x120),_0x2b2faa(0x11f),_0x2b2faa(0x157),_0x2b2faa(0x154),_0x2b2faa(0x119),'modifierNameField',_0x2b2faa(0x128),_0x2b2faa(0x136)];for(const _0x592f16 of _0x11311d){if(_0x5f54e5[_0x592f16]!==undefined)_0x548f6e[_0x592f16]=_0x5f54e5[_0x592f16];}return typeof _0x548f6e['allFields']===_0x2b2faa(0x140)&&_0x548f6e[_0x2b2faa(0x14d)][_0x2b2faa(0x14b)]>0x0&&(_0x548f6e[_0x2b2faa(0x127)]=_0x548f6e['allFields'][_0x2b2faa(0x14f)](',')['map'](_0x3c1b0a=>_0x3c1b0a['trim']())[_0x2b2faa(0x15b)](Boolean)),_0x548f6e;}function normalizeRelatedPages(_0x4d81c6){const _0x1b00cb=a46_0x1929;if(!Array[_0x1b00cb(0x138)](_0x4d81c6))return[];return _0x4d81c6[_0x1b00cb(0x15b)](_0x1cfbdf=>_0x1cfbdf&&typeof _0x1cfbdf==='object')[_0x1b00cb(0x122)](_0x43d0e8=>({'id':_0x43d0e8['id'],'type':_0x43d0e8['type'],'code':_0x43d0e8[_0x1b00cb(0x12a)],'title':_0x43d0e8['title'],'deleted':_0x43d0e8[_0x1b00cb(0x12f)]===!![]}));}export const datasetDetail={'service':a46_0x46e1f2(0x13d),'command':a46_0x46e1f2(0x117),'description':a46_0x46e1f2(0x14e),'risk':'read','flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a46_0x46e1f2(0x124),'type':a46_0x46e1f2(0x140),'description':a46_0x46e1f2(0x13c)}],async 'execute'(_0x2535fe){const _0x119a5c=a46_0x46e1f2,_0x4af1fe=await getDatasetDetail(_0x2535fe[_0x119a5c(0x14c)]('code')),_0x47077c=Array[_0x119a5c(0x138)](_0x4af1fe['fields'])?_0x4af1fe[_0x119a5c(0x15f)]:Array[_0x119a5c(0x138)](_0x4af1fe[_0x119a5c(0x129)])?_0x4af1fe[_0x119a5c(0x129)]:[],_0x509bcf=_0x47077c[_0x119a5c(0x122)](_0x51b779=>normalizeField(_0x51b779))[_0x119a5c(0x15b)](_0x5c8480=>_0x5c8480!==null),_0x388d18=_0x4af1fe['operations']??{},_0x396d4f=[];for(const [_0x2b3a52,_0x24bb11]of Object[_0x119a5c(0x130)](_0x388d18)){const _0x1717ab=normalizeOperationEntry(_0x2b3a52,_0x24bb11);if(_0x1717ab)_0x396d4f[_0x119a5c(0x121)](_0x1717ab);}const _0x3312f5=_0x4af1fe[_0x119a5c(0x11a)]??{},_0xe6aa68=_0x4af1fe[_0x119a5c(0x13d)]??{},_0x4cb54a=_0x3312f5['dbId']!=null?{'id':_0x3312f5[_0x119a5c(0x147)],'name':_0x3312f5[_0x119a5c(0x11b)]??null}:undefined;let _0x50a861;return typeof _0x4af1fe[_0x119a5c(0x153)]===_0x119a5c(0x140)&&(_0x50a861=parseJsonMaybe(_0x4af1fe[_0x119a5c(0x153)])),{'ok':!![],'data':{'id':_0x4af1fe['modelId']??_0x4af1fe['id'],'name':_0x4af1fe[_0x119a5c(0x125)],'code':_0x4af1fe[_0x119a5c(0x15e)]||_0x4af1fe[_0x119a5c(0x12a)],'doVersion':_0x4af1fe[_0x119a5c(0x12d)],'description':_0x4af1fe[_0x119a5c(0x158)]||_0xe6aa68['tableComment']||undefined,'source':_0x4af1fe['source']||_0xe6aa68[_0x119a5c(0x13a)],'table':_0x3312f5[_0x119a5c(0x139)]||_0xe6aa68[_0x119a5c(0x139)],'datasetKey':_0x3312f5[_0x119a5c(0x11c)],'pk':_0x3312f5[_0x119a5c(0x159)],'db':_0x4cb54a,'dbtable':summarizeDbtable(_0x3312f5),'fields':_0x509bcf,'operations':_0x396d4f,'indexes':Array[_0x119a5c(0x138)](_0xe6aa68[_0x119a5c(0x133)])?_0xe6aa68['indexes']:[],'relations':Array[_0x119a5c(0x138)](_0x4af1fe[_0x119a5c(0x162)])?_0x4af1fe[_0x119a5c(0x162)][_0x119a5c(0x122)](_0xa7c57c=>({'fromField':_0xa7c57c[_0x119a5c(0x143)],'toDataset':_0xa7c57c[_0x119a5c(0x12e)],'toCode':_0xa7c57c['toDatasetCode'],'toTable':_0xa7c57c[_0x119a5c(0x141)],'toField':_0xa7c57c[_0x119a5c(0x132)],'labelField':_0xa7c57c[_0x119a5c(0x15c)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x4af1fe[_0x119a5c(0x13f)]),...Array[_0x119a5c(0x138)](_0x4af1fe[_0x119a5c(0x126)])?{'columnCodeListWithDeleted':_0x4af1fe[_0x119a5c(0x126)]}:{},'formatRules':Array['isArray'](_0x4af1fe['formatRules'])?_0x4af1fe[_0x119a5c(0x123)]:[],'validateRules':Array['isArray'](_0x4af1fe[_0x119a5c(0x155)])?_0x4af1fe[_0x119a5c(0x155)]:[],..._0x50a861!==undefined?{'extend':_0x50a861}:{},'stats':{'fieldCount':_0x509bcf[_0x119a5c(0x14b)],'operationCount':_0x396d4f[_0x119a5c(0x14b)]}}};}};
@@ -1 +1 @@
1
- (function(_0x7123fa,_0x2cca2e){const _0x599183=a47_0x2729,_0x51d9a8=_0x7123fa();while(!![]){try{const _0x4f8cd1=-parseInt(_0x599183(0x11f))/0x1+parseInt(_0x599183(0x11b))/0x2+-parseInt(_0x599183(0x11e))/0x3+-parseInt(_0x599183(0x11c))/0x4*(-parseInt(_0x599183(0x11d))/0x5)+parseInt(_0x599183(0x122))/0x6*(-parseInt(_0x599183(0x121))/0x7)+parseInt(_0x599183(0x120))/0x8+-parseInt(_0x599183(0x11a))/0x9*(-parseInt(_0x599183(0x123))/0xa);if(_0x4f8cd1===_0x2cca2e)break;else _0x51d9a8['push'](_0x51d9a8['shift']());}catch(_0x398a23){_0x51d9a8['push'](_0x51d9a8['shift']());}}}(a47_0x4a94,0xdc7a3));import{datasetList}from'../../commands/dataset/list.js';function a47_0x4a94(){const _0x36b027=['12947808RKLsef','56agMMHO','271686jzfnxO','1382470LOEJpR','9jjnYup','1201844DCnSKp','68xrDmIh','355435Louqgk','1996251OOJqJE','1635384ShwesS'];a47_0x4a94=function(){return _0x36b027;};return a47_0x4a94();}import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';function a47_0x2729(_0x1fa3e9,_0xc63bbe){_0x1fa3e9=_0x1fa3e9-0x11a;const _0x4a94a2=a47_0x4a94();let _0x2729fd=_0x4a94a2[_0x1fa3e9];return _0x2729fd;}export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
1
+ (function(_0x4e3aa3,_0x439fee){const _0x14dac3=a47_0x4b80,_0x5239bf=_0x4e3aa3();while(!![]){try{const _0x59d96d=-parseInt(_0x14dac3(0xc1))/0x1*(-parseInt(_0x14dac3(0xbe))/0x2)+-parseInt(_0x14dac3(0xb8))/0x3*(-parseInt(_0x14dac3(0xbb))/0x4)+parseInt(_0x14dac3(0xc2))/0x5*(parseInt(_0x14dac3(0xb9))/0x6)+-parseInt(_0x14dac3(0xbf))/0x7*(parseInt(_0x14dac3(0xc0))/0x8)+-parseInt(_0x14dac3(0xbc))/0x9*(parseInt(_0x14dac3(0xba))/0xa)+-parseInt(_0x14dac3(0xc3))/0xb+parseInt(_0x14dac3(0xbd))/0xc;if(_0x59d96d===_0x439fee)break;else _0x5239bf['push'](_0x5239bf['shift']());}catch(_0xcd673d){_0x5239bf['push'](_0x5239bf['shift']());}}}(a47_0x1677,0xb7c8b));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a47_0x1677(){const _0x2489b4=['1WPiTfW','10bdvydg','3405237CAqChS','519WdudGd','677940lgiLDS','2090kposii','21180YOePjI','43290jwHQZo','9395628izMMKD','1764450TPoYpJ','7HGvKra','5916584QBiAHI'];a47_0x1677=function(){return _0x2489b4;};return a47_0x1677();}import{datasetOperations}from'../../commands/dataset/operations.js';function a47_0x4b80(_0x573160,_0x2aa1b0){_0x573160=_0x573160-0xb8;const _0x1677c6=a47_0x1677();let _0x4b808e=_0x1677c6[_0x573160];return _0x4b808e;}import{datasetLinks}from'../../commands/dataset/links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
@@ -1 +1 @@
1
- const a48_0x3673a8=a48_0x2756;function a48_0x4260(){const _0x388361=['meta','datasetName','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','links','stats','2856393ofljcS','appCode','all','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','datasets','datasetId','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','tableName','110CGgeDJ','str','toDataset','8LHJmQS','relations','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','1712936ggFJKR','datasetCode','fromField','805569QzgpSa','verbose','datasetCount','LEFT','length','1216770RDFeem','Fetched\x20link\x20graph\x20for\x20','reduce','1434608SUgXqB','dbId','joinType','8533040roageg','displayName','boolean','3947605PhLpsQ','Link\x20graph:\x20','isForeignKey','toDatasetName','\x20database(s)','\x20relation(s)','\x20dataset(s),\x20','filter','dbName','bool','map','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','isPrimaryKey','tableComment','fields','relationCount','name','6YSGXrk'];a48_0x4260=function(){return _0x388361;};return a48_0x4260();}(function(_0x43608e,_0x4a00d2){const _0x132b13=a48_0x2756,_0x5b3c4b=_0x43608e();while(!![]){try{const _0x296276=-parseInt(_0x132b13(0x170))/0x1+-parseInt(_0x132b13(0x16d))/0x2+parseInt(_0x132b13(0x175))/0x3*(-parseInt(_0x132b13(0x16a))/0x4)+parseInt(_0x132b13(0x17e))/0x5*(parseInt(_0x132b13(0x18f))/0x6)+-parseInt(_0x132b13(0x178))/0x7+-parseInt(_0x132b13(0x17b))/0x8+parseInt(_0x132b13(0x195))/0x9*(parseInt(_0x132b13(0x19d))/0xa);if(_0x296276===_0x4a00d2)break;else _0x5b3c4b['push'](_0x5b3c4b['shift']());}catch(_0x72dffb){_0x5b3c4b['push'](_0x5b3c4b['shift']());}}}(a48_0x4260,0x82d45));import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a48_0x2756(_0x9cc735,_0x3801aa){_0x9cc735=_0x9cc735-0x169;const _0x426007=a48_0x4260();let _0x275686=_0x426007[_0x9cc735];return _0x275686;}export const datasetLinks={'service':'dataset','command':a48_0x3673a8(0x193),'description':a48_0x3673a8(0x192)+a48_0x3673a8(0x16c)+a48_0x3673a8(0x189),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':'string','description':a48_0x3673a8(0x198)+'Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.'},{'name':a48_0x3673a8(0x171),'type':a48_0x3673a8(0x17d),'description':a48_0x3673a8(0x19b)}],async 'execute'(_0x5b63f1){const _0x508745=a48_0x3673a8,_0x1c43c4=_0x5b63f1[_0x508745(0x187)](_0x508745(0x171)),{resolved:_0x31bdd1,error:_0x2ab408}=await resolveDb(_0x5b63f1[_0x508745(0x196)],_0x5b63f1[_0x508745(0x19e)]('db')||undefined);if(_0x2ab408)return{'ok':![],'message':_0x2ab408};const _0x41d12a=_0x31bdd1[_0x508745(0x188)](_0x1147f0=>_0x1147f0['dbId']),_0x207864=await Promise[_0x508745(0x197)](_0x41d12a[_0x508745(0x188)](_0x1443cc=>getErConfig(_0x5b63f1[_0x508745(0x196)],_0x1443cc)));if(_0x1c43c4)return{'ok':!![],'data':_0x207864[_0x508745(0x174)]===0x1?_0x207864[0x0]:_0x207864,'message':_0x508745(0x176)+_0x41d12a['length']+_0x508745(0x182)};const _0x3cd947=_0x207864[_0x508745(0x188)](_0x3fd263=>{const _0x4d961b=_0x508745,_0x32186f=(_0x3fd263[_0x4d961b(0x199)]??[])[_0x4d961b(0x188)](_0x4fcd80=>{const _0x9f50e9=_0x4d961b,_0x140c2f=_0x4fcd80[_0x9f50e9(0x18c)]?.[_0x9f50e9(0x185)](_0xc07f7a=>_0xc07f7a[_0x9f50e9(0x18a)])['map'](_0x124689=>_0x124689[_0x9f50e9(0x18e)])??[],_0xb516eb=_0x4fcd80[_0x9f50e9(0x18c)]?.[_0x9f50e9(0x185)](_0x2773eb=>_0x2773eb[_0x9f50e9(0x180)])['map'](_0xdf4499=>_0xdf4499[_0x9f50e9(0x18e)])??[];return{'id':_0x4fcd80[_0x9f50e9(0x19a)],'name':_0x4fcd80[_0x9f50e9(0x191)],'code':_0x4fcd80[_0x9f50e9(0x16e)],'table':_0x4fcd80[_0x9f50e9(0x19c)],'comment':_0x4fcd80[_0x9f50e9(0x18b)]||undefined,'fields':(_0x4fcd80[_0x9f50e9(0x18c)]??[])[_0x9f50e9(0x188)](_0x3ca481=>({'name':_0x3ca481[_0x9f50e9(0x18e)],'displayName':_0x3ca481[_0x9f50e9(0x17c)],'type':_0x3ca481['dbType'],'pk':_0x3ca481[_0x9f50e9(0x18a)],'fk':_0x3ca481['isForeignKey']})),'relations':(_0x4fcd80['relations']??[])[_0x9f50e9(0x185)](_0x5ef8be=>_0x5ef8be['fromField']&&_0x5ef8be[_0x9f50e9(0x169)])['map'](_0x968121=>({'from':_0x968121[_0x9f50e9(0x16f)],'toDataset':_0x968121[_0x9f50e9(0x181)],'toCode':_0x968121[_0x9f50e9(0x169)],'toField':_0x968121['toField'],'joinType':_0x968121[_0x9f50e9(0x17a)]||_0x9f50e9(0x173)})),'stats':{'fieldCount':_0x4fcd80[_0x9f50e9(0x18c)]?.[_0x9f50e9(0x174)]??0x0,'pkCount':_0x140c2f[_0x9f50e9(0x174)],'fkCount':_0xb516eb[_0x9f50e9(0x174)],'relationCount':_0x4fcd80[_0x9f50e9(0x16b)]?.['length']??0x0}};}),_0x30afdf=_0x32186f[_0x4d961b(0x185)](_0x2618f1=>_0x2618f1['stats']['relationCount']>0x0)['map'](_0x4c49c7=>_0x4c49c7[_0x4d961b(0x18e)]);return{'db':_0x3fd263['meta']?.[_0x4d961b(0x186)],'dbId':_0x3fd263[_0x4d961b(0x190)]?.[_0x4d961b(0x179)],'appCode':_0x3fd263[_0x4d961b(0x190)]?.[_0x4d961b(0x196)],'datasetCount':_0x32186f[_0x4d961b(0x174)],'connectedDatasets':_0x30afdf,'datasets':_0x32186f};}),_0x554d31=_0x3cd947[_0x508745(0x177)]((_0x3830bf,_0x34ff83)=>_0x3830bf+_0x34ff83[_0x508745(0x172)],0x0),_0x2096d8=_0x3cd947[_0x508745(0x177)]((_0xb53704,_0x4db3a3)=>_0xb53704+_0x4db3a3[_0x508745(0x199)][_0x508745(0x177)]((_0x2de9ef,_0x1d5bd8)=>_0x2de9ef+_0x1d5bd8[_0x508745(0x194)][_0x508745(0x18d)],0x0),0x0);return{'ok':!![],'data':_0x3cd947[_0x508745(0x174)]===0x1?_0x3cd947[0x0]:{'databases':_0x3cd947},'message':_0x508745(0x17f)+_0x3cd947[_0x508745(0x174)]+'\x20database(s),\x20'+_0x554d31+_0x508745(0x184)+_0x2096d8+_0x508745(0x183)};}};
1
+ const a48_0x4e98ec=a48_0x1869;(function(_0x1e3692,_0x2a092f){const _0x5eae5f=a48_0x1869,_0x1cbebf=_0x1e3692();while(!![]){try{const _0x58e6eb=-parseInt(_0x5eae5f(0xf5))/0x1*(parseInt(_0x5eae5f(0xce))/0x2)+-parseInt(_0x5eae5f(0xe8))/0x3+parseInt(_0x5eae5f(0xf6))/0x4+-parseInt(_0x5eae5f(0xd3))/0x5*(-parseInt(_0x5eae5f(0xc9))/0x6)+-parseInt(_0x5eae5f(0xf7))/0x7*(parseInt(_0x5eae5f(0xff))/0x8)+parseInt(_0x5eae5f(0xed))/0x9*(parseInt(_0x5eae5f(0xcd))/0xa)+parseInt(_0x5eae5f(0xe7))/0xb;if(_0x58e6eb===_0x2a092f)break;else _0x1cbebf['push'](_0x1cbebf['shift']());}catch(_0x3b84f9){_0x1cbebf['push'](_0x1cbebf['shift']());}}}(a48_0x47d0,0x4fb30));function a48_0x47d0(){const _0x155b5a=['toDatasetName','bool','datasetCode','fields','dbId','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','all','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','5960405txZJPn','1895070UmIIjP','tableName','stats','map','meta','5132817xySieL','datasetId','isForeignKey','toDataset','boolean','\x20database(s)','appCode','fromField','354726vlVIkc','2354252oLXGsd','6146ZKRrVU','verbose','datasetName','datasetCount','joinType','\x20relation(s)','LEFT','read','5272cGFEFi','relationCount','dbName','228882DZSkJG','length','links','toField','10sdyJjq','2BDkZWP','name','tableComment','Link\x20graph:\x20','datasets','25OSPPhP','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','\x20database(s),\x20','reduce','string','filter','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','str','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','relations','Fetched\x20link\x20graph\x20for\x20','isPrimaryKey'];a48_0x47d0=function(){return _0x155b5a;};return a48_0x47d0();}function a48_0x1869(_0x3865e3,_0x1a0b9b){_0x3865e3=_0x3865e3-0xc8;const _0x47d05e=a48_0x47d0();let _0x1869bc=_0x47d05e[_0x3865e3];return _0x1869bc;}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':'dataset','command':a48_0x4e98ec(0xcb),'description':a48_0x4e98ec(0xe4)+'Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20'+a48_0x4e98ec(0xe6),'risk':a48_0x4e98ec(0xfe),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a48_0x4e98ec(0xd7),'description':a48_0x4e98ec(0xdb)+a48_0x4e98ec(0xd9)},{'name':a48_0x4e98ec(0xf8),'type':a48_0x4e98ec(0xf1),'description':a48_0x4e98ec(0xd4)}],async 'execute'(_0x44505c){const _0x409a12=a48_0x4e98ec,_0x43525b=_0x44505c[_0x409a12(0xe0)](_0x409a12(0xf8)),{resolved:_0x52367a,error:_0x4c0a2e}=await resolveDb(_0x44505c[_0x409a12(0xf3)],_0x44505c[_0x409a12(0xda)]('db')||undefined);if(_0x4c0a2e)return{'ok':![],'message':_0x4c0a2e};const _0x587fb9=_0x52367a[_0x409a12(0xeb)](_0x5caa74=>_0x5caa74[_0x409a12(0xe3)]),_0x58ccb8=await Promise[_0x409a12(0xe5)](_0x587fb9[_0x409a12(0xeb)](_0x2a5eee=>getErConfig(_0x44505c[_0x409a12(0xf3)],_0x2a5eee)));if(_0x43525b)return{'ok':!![],'data':_0x58ccb8[_0x409a12(0xca)]===0x1?_0x58ccb8[0x0]:_0x58ccb8,'message':_0x409a12(0xdd)+_0x587fb9['length']+_0x409a12(0xf2)};const _0xf012b1=_0x58ccb8[_0x409a12(0xeb)](_0x41e951=>{const _0xd1e8b7=_0x409a12,_0x2cca0d=(_0x41e951[_0xd1e8b7(0xd2)]??[])[_0xd1e8b7(0xeb)](_0x55b1b1=>{const _0xd4d2dc=_0xd1e8b7,_0x5c5307=_0x55b1b1[_0xd4d2dc(0xe2)]?.[_0xd4d2dc(0xd8)](_0x3d60f6=>_0x3d60f6['isPrimaryKey'])['map'](_0x520ce6=>_0x520ce6['name'])??[],_0x120dba=_0x55b1b1[_0xd4d2dc(0xe2)]?.[_0xd4d2dc(0xd8)](_0x45d966=>_0x45d966[_0xd4d2dc(0xef)])[_0xd4d2dc(0xeb)](_0x5af9b8=>_0x5af9b8[_0xd4d2dc(0xcf)])??[];return{'id':_0x55b1b1[_0xd4d2dc(0xee)],'name':_0x55b1b1[_0xd4d2dc(0xf9)],'code':_0x55b1b1[_0xd4d2dc(0xe1)],'table':_0x55b1b1[_0xd4d2dc(0xe9)],'comment':_0x55b1b1[_0xd4d2dc(0xd0)]||undefined,'fields':(_0x55b1b1[_0xd4d2dc(0xe2)]??[])[_0xd4d2dc(0xeb)](_0x593aa6=>({'name':_0x593aa6[_0xd4d2dc(0xcf)],'displayName':_0x593aa6['displayName'],'type':_0x593aa6['dbType'],'pk':_0x593aa6[_0xd4d2dc(0xde)],'fk':_0x593aa6['isForeignKey']})),'relations':(_0x55b1b1['relations']??[])[_0xd4d2dc(0xd8)](_0x4e49df=>_0x4e49df[_0xd4d2dc(0xf4)]&&_0x4e49df[_0xd4d2dc(0xf0)])[_0xd4d2dc(0xeb)](_0x355b8b=>({'from':_0x355b8b['fromField'],'toDataset':_0x355b8b[_0xd4d2dc(0xdf)],'toCode':_0x355b8b['toDataset'],'toField':_0x355b8b[_0xd4d2dc(0xcc)],'joinType':_0x355b8b[_0xd4d2dc(0xfb)]||_0xd4d2dc(0xfd)})),'stats':{'fieldCount':_0x55b1b1[_0xd4d2dc(0xe2)]?.[_0xd4d2dc(0xca)]??0x0,'pkCount':_0x5c5307['length'],'fkCount':_0x120dba['length'],'relationCount':_0x55b1b1[_0xd4d2dc(0xdc)]?.['length']??0x0}};}),_0x3b77cf=_0x2cca0d[_0xd1e8b7(0xd8)](_0x37ae0c=>_0x37ae0c[_0xd1e8b7(0xea)]['relationCount']>0x0)[_0xd1e8b7(0xeb)](_0x5dc369=>_0x5dc369['name']);return{'db':_0x41e951[_0xd1e8b7(0xec)]?.[_0xd1e8b7(0xc8)],'dbId':_0x41e951[_0xd1e8b7(0xec)]?.[_0xd1e8b7(0xe3)],'appCode':_0x41e951['meta']?.[_0xd1e8b7(0xf3)],'datasetCount':_0x2cca0d['length'],'connectedDatasets':_0x3b77cf,'datasets':_0x2cca0d};}),_0x1b84a1=_0xf012b1[_0x409a12(0xd6)]((_0x115f77,_0x17a665)=>_0x115f77+_0x17a665[_0x409a12(0xfa)],0x0),_0x325b03=_0xf012b1['reduce']((_0x34e8f5,_0xacaf16)=>_0x34e8f5+_0xacaf16[_0x409a12(0xd2)][_0x409a12(0xd6)]((_0x256005,_0x4ef960)=>_0x256005+_0x4ef960[_0x409a12(0xea)][_0x409a12(0x100)],0x0),0x0);return{'ok':!![],'data':_0xf012b1[_0x409a12(0xca)]===0x1?_0xf012b1[0x0]:{'databases':_0xf012b1},'message':_0x409a12(0xd1)+_0xf012b1[_0x409a12(0xca)]+_0x409a12(0xd5)+_0x1b84a1+'\x20dataset(s),\x20'+_0x325b03+_0x409a12(0xfc)};}};
@@ -1 +1 @@
1
- const a49_0x15de32=a49_0x2c83;(function(_0x180733,_0x42be39){const _0x4e9984=a49_0x2c83,_0x500ad2=_0x180733();while(!![]){try{const _0x1066e4=parseInt(_0x4e9984(0x95))/0x1+parseInt(_0x4e9984(0x7e))/0x2+-parseInt(_0x4e9984(0x7d))/0x3+parseInt(_0x4e9984(0x7b))/0x4*(parseInt(_0x4e9984(0x8d))/0x5)+-parseInt(_0x4e9984(0x8f))/0x6+-parseInt(_0x4e9984(0x94))/0x7*(parseInt(_0x4e9984(0x7f))/0x8)+parseInt(_0x4e9984(0x8b))/0x9;if(_0x1066e4===_0x42be39)break;else _0x500ad2['push'](_0x500ad2['shift']());}catch(_0x32cebc){_0x500ad2['push'](_0x500ad2['shift']());}}}(a49_0x2d51,0xe5b62));function a49_0x2d51(){const _0x56b291=['287nJOwOc','1136286aGndjq','\x20dataset(s)','4ekUZFN','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','2156022MOSWRh','549470aHbNcN','26472oFINrY','code','dbtableConfig','source','length','str','dataset','description','split','read','map','string','10549899dUgJXZ','tableName','3610345YjYDsR','Found\x20','9060360RwOZIG','List\x20all\x20datasets\x20with\x20metadata','allFields','name','pkField'];a49_0x2d51=function(){return _0x56b291;};return a49_0x2d51();}import{listDatasets}from'../../core/api-client.js';function a49_0x2c83(_0x3f88cb,_0x5f3608){_0x3f88cb=_0x3f88cb-0x7a;const _0x2d514e=a49_0x2d51();let _0x2c834d=_0x2d514e[_0x3f88cb];return _0x2c834d;}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':a49_0x15de32(0x85),'command':'list','description':a49_0x15de32(0x90),'risk':a49_0x15de32(0x88),'flags':[{'name':'name','type':a49_0x15de32(0x8a),'description':a49_0x15de32(0x7c)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x532008){const _0xa769a2=a49_0x15de32,_0x3f8d34=_0x532008[_0xa769a2(0x84)](_0xa769a2(0x92)),_0x224eb6=_0x532008[_0xa769a2(0x84)](_0xa769a2(0x80)),_0x14b9c5=await listDatasets(_0x532008['appCode'],{..._0x3f8d34&&{'name':_0x3f8d34},..._0x224eb6&&{'code':_0x224eb6}}),_0x3df556=_0x14b9c5[_0xa769a2(0x89)](_0x3f95ba=>{const _0x5b842b=_0xa769a2,_0x17739b=_0x3f95ba[_0x5b842b(0x81)]??{};return{'id':_0x3f95ba['id'],'name':_0x3f95ba[_0x5b842b(0x92)],'code':_0x3f95ba[_0x5b842b(0x80)],'description':_0x3f95ba[_0x5b842b(0x86)],'source':_0x3f95ba[_0x5b842b(0x82)],'db':_0x17739b['dbName'],'table':_0x17739b[_0x5b842b(0x8c)],'datasetKey':_0x17739b['datasetKey'],'pk':_0x17739b[_0x5b842b(0x93)],'fields':_0x17739b[_0x5b842b(0x91)]?_0x17739b[_0x5b842b(0x91)][_0x5b842b(0x87)](',')[_0x5b842b(0x89)](_0x4ac934=>_0x4ac934['trim']()):[]};});return{'ok':!![],'data':{'total':_0x3df556[_0xa769a2(0x83)],'datasets':_0x3df556},'message':_0xa769a2(0x8e)+_0x3df556[_0xa769a2(0x83)]+_0xa769a2(0x7a)};}};
1
+ const a49_0x22c7cf=a49_0x1716;function a49_0x1716(_0x532f72,_0x1d7223){_0x532f72=_0x532f72-0x122;const _0x816814=a49_0x8168();let _0x171696=_0x816814[_0x532f72];return _0x171696;}(function(_0x56a519,_0x3a7ce1){const _0x23294d=a49_0x1716,_0x2cb016=_0x56a519();while(!![]){try{const _0x30a706=parseInt(_0x23294d(0x124))/0x1*(parseInt(_0x23294d(0x126))/0x2)+-parseInt(_0x23294d(0x12a))/0x3*(-parseInt(_0x23294d(0x134))/0x4)+parseInt(_0x23294d(0x13c))/0x5+-parseInt(_0x23294d(0x125))/0x6+-parseInt(_0x23294d(0x136))/0x7+parseInt(_0x23294d(0x139))/0x8+parseInt(_0x23294d(0x122))/0x9;if(_0x30a706===_0x3a7ce1)break;else _0x2cb016['push'](_0x2cb016['shift']());}catch(_0x32b267){_0x2cb016['push'](_0x2cb016['shift']());}}}(a49_0x8168,0x6088a));import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':a49_0x22c7cf(0x123),'command':a49_0x22c7cf(0x137),'description':a49_0x22c7cf(0x131),'risk':a49_0x22c7cf(0x128),'flags':[{'name':a49_0x22c7cf(0x13a),'type':a49_0x22c7cf(0x127),'description':a49_0x22c7cf(0x12f)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x446d24){const _0xacacb3=a49_0x22c7cf,_0x412df4=_0x446d24[_0xacacb3(0x12d)](_0xacacb3(0x13a)),_0x2dccf1=_0x446d24['str']('code'),_0x5c8242=await listDatasets(_0x446d24['appCode'],{..._0x412df4&&{'name':_0x412df4},..._0x2dccf1&&{'code':_0x2dccf1}}),_0x3658bb=_0x5c8242[_0xacacb3(0x132)](_0x461140=>{const _0x49e51a=_0xacacb3,_0x205eb1=_0x461140[_0x49e51a(0x13d)]??{};return{'id':_0x461140['id'],'name':_0x461140[_0x49e51a(0x13a)],'code':_0x461140[_0x49e51a(0x13b)],'description':_0x461140[_0x49e51a(0x130)],'source':_0x461140[_0x49e51a(0x133)],'db':_0x205eb1['dbName'],'table':_0x205eb1[_0x49e51a(0x138)],'datasetKey':_0x205eb1[_0x49e51a(0x135)],'pk':_0x205eb1['pkField'],'fields':_0x205eb1[_0x49e51a(0x12e)]?_0x205eb1[_0x49e51a(0x12e)][_0x49e51a(0x129)](',')['map'](_0x3fe71c=>_0x3fe71c['trim']()):[]};});return{'ok':!![],'data':{'total':_0x3658bb['length'],'datasets':_0x3658bb},'message':'Found\x20'+_0x3658bb[_0xacacb3(0x12c)]+_0xacacb3(0x12b)};}};function a49_0x8168(){const _0xb52025=['120pghHHW','datasetKey','588070bxZrHr','list','tableName','248144FtfTEK','name','code','1072060uiWYLf','dbtableConfig','3521970YMkrcw','dataset','1TGocDF','2134374OGCTfo','28542osCxNI','string','read','split','18411XEVYzx','\x20dataset(s)','length','str','allFields','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','description','List\x20all\x20datasets\x20with\x20metadata','map','source'];a49_0x8168=function(){return _0xb52025;};return a49_0x8168();}
@@ -1 +1 @@
1
- const a50_0x24db09=a50_0x18f4;function a50_0x44ad(){const _0x47080a=['enabled','160127wwHkvO','15okNJhN','1355780mTDVNb','operation','map','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','boolean','dataset','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','3260200UIucCJ','2332316hpwHuY','name','type','displayName','length','appCode','operations','195298BdSpWJ','string','verbose','str','257298QtatLQ','alias','code','862137BFzCks'];a50_0x44ad=function(){return _0x47080a;};return a50_0x44ad();}function a50_0x18f4(_0xdcaf2e,_0x28b318){_0xdcaf2e=_0xdcaf2e-0x6c;const _0x44ad63=a50_0x44ad();let _0x18f4d6=_0x44ad63[_0xdcaf2e];return _0x18f4d6;}(function(_0x3f2dd1,_0x46203c){const _0x40dded=a50_0x18f4,_0x128d84=_0x3f2dd1();while(!![]){try{const _0x38a378=parseInt(_0x40dded(0x79))/0x1+-parseInt(_0x40dded(0x70))/0x2+parseInt(_0x40dded(0x77))/0x3+-parseInt(_0x40dded(0x7b))/0x4+-parseInt(_0x40dded(0x7a))/0x5*(-parseInt(_0x40dded(0x74))/0x6)+-parseInt(_0x40dded(0x84))/0x7+parseInt(_0x40dded(0x83))/0x8;if(_0x38a378===_0x46203c)break;else _0x128d84['push'](_0x128d84['shift']());}catch(_0x788e42){_0x128d84['push'](_0x128d84['shift']());}}}(a50_0x44ad,0x3438a));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':a50_0x24db09(0x81),'command':a50_0x24db09(0x6f),'description':a50_0x24db09(0x7f),'risk':'read','flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a50_0x24db09(0x75),'type':a50_0x24db09(0x71),'description':a50_0x24db09(0x7e)},{'name':a50_0x24db09(0x7c),'type':a50_0x24db09(0x71),'description':a50_0x24db09(0x82)},{'name':a50_0x24db09(0x72),'type':a50_0x24db09(0x80),'description':'Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields'}],async 'execute'(_0x3ba921){const _0x59e629=a50_0x24db09,_0x4c9764=_0x3ba921[_0x59e629(0x73)](_0x59e629(0x76)),_0x20ed9f=_0x3ba921[_0x59e629(0x73)](_0x59e629(0x7c)),_0x477219=_0x3ba921['bool'](_0x59e629(0x72));if(_0x20ed9f){const {dataset:_0xaa073e,operation:_0x35f7b9}=await getOperationDetail(_0x3ba921[_0x59e629(0x6e)],_0x4c9764,_0x20ed9f);return{'ok':!![],'data':{'dataset':_0xaa073e,'operation':_0x35f7b9}};}const {dataset:_0x2ce52e,operations:_0x15c207}=await getDatasetOperations(_0x4c9764);return{'ok':!![],'data':{'dataset':_0x2ce52e,'total':_0x15c207[_0x59e629(0x6d)],'operations':_0x477219?_0x15c207:_0x15c207[_0x59e629(0x7d)](_0x3bbdb3=>({'name':_0x3bbdb3[_0x59e629(0x85)],'displayName':_0x3bbdb3[_0x59e629(0x6c)],'type':_0x3bbdb3[_0x59e629(0x86)],'method':_0x3bbdb3['method'],'enabled':_0x3bbdb3[_0x59e629(0x78)]}))}};}};
1
+ function a50_0x48af(){const _0x3f9ed8=['displayName','type','192437idSNvu','Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','28eAarYK','read','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','verbose','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','431030gvbxuU','alias','boolean','str','264MQOdhz','method','1262253eCKRKC','string','name','map','387396YAQFyY','operation','code','operations','533640ckEqKX','18510588flQQIX','367026UStvaj','dataset'];a50_0x48af=function(){return _0x3f9ed8;};return a50_0x48af();}const a50_0x47695c=a50_0x58e5;(function(_0x10976c,_0x2a6a2b){const _0x4f0356=a50_0x58e5,_0x171535=_0x10976c();while(!![]){try{const _0x13eb78=parseInt(_0x4f0356(0x82))/0x1+-parseInt(_0x4f0356(0x86))/0x2+-parseInt(_0x4f0356(0x70))/0x3+-parseInt(_0x4f0356(0x76))/0x4*(-parseInt(_0x4f0356(0x7c))/0x5)+parseInt(_0x4f0356(0x80))/0x6*(parseInt(_0x4f0356(0x74))/0x7)+parseInt(_0x4f0356(0x8a))/0x8+-parseInt(_0x4f0356(0x6f))/0x9;if(_0x13eb78===_0x2a6a2b)break;else _0x171535['push'](_0x171535['shift']());}catch(_0x38d1da){_0x171535['push'](_0x171535['shift']());}}}(a50_0x48af,0xbbcd0));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';function a50_0x58e5(_0x2a3a24,_0x6eff9){_0x2a3a24=_0x2a3a24-0x6f;const _0x48aff5=a50_0x48af();let _0x58e5f7=_0x48aff5[_0x2a3a24];return _0x58e5f7;}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':a50_0x47695c(0x71),'command':a50_0x47695c(0x89),'description':a50_0x47695c(0x75),'risk':a50_0x47695c(0x77),'flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a50_0x47695c(0x7d),'type':a50_0x47695c(0x83),'description':a50_0x47695c(0x79)},{'name':a50_0x47695c(0x87),'type':a50_0x47695c(0x83),'description':a50_0x47695c(0x7b)},{'name':a50_0x47695c(0x7a),'type':a50_0x47695c(0x7e),'description':a50_0x47695c(0x78)}],async 'execute'(_0x5133b1){const _0x7ee218=a50_0x47695c,_0x3ed736=_0x5133b1[_0x7ee218(0x7f)](_0x7ee218(0x88)),_0x4eae5b=_0x5133b1[_0x7ee218(0x7f)]('operation'),_0x3b5ea9=_0x5133b1['bool']('verbose');if(_0x4eae5b){const {dataset:_0x2e4151,operation:_0x3d91f2}=await getOperationDetail(_0x5133b1['appCode'],_0x3ed736,_0x4eae5b);return{'ok':!![],'data':{'dataset':_0x2e4151,'operation':_0x3d91f2}};}const {dataset:_0x20cb9e,operations:_0x1fbe06}=await getDatasetOperations(_0x3ed736);return{'ok':!![],'data':{'dataset':_0x20cb9e,'total':_0x1fbe06['length'],'operations':_0x3b5ea9?_0x1fbe06:_0x1fbe06[_0x7ee218(0x85)](_0x290232=>({'name':_0x290232[_0x7ee218(0x84)],'displayName':_0x290232[_0x7ee218(0x72)],'type':_0x290232[_0x7ee218(0x73)],'method':_0x290232[_0x7ee218(0x81)],'enabled':_0x290232['enabled']}))}};}};
@@ -1 +1 @@
1
- function a51_0x412c(){const _0x79edd9=['validation','write','204186YASEaF','6vQQgsU','495940csUrcS','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','8OGSOnM','12732660xwDfaq','30405OYrETa','6671301mLDLtW','1502838RAkMMk','analyze-cancel','str','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','plan','latestAnalysisTraceId','236yyBvsx','string','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','2028120TwwjxQ','Cancel\x20requested\x20for\x20plan\x20'];a51_0x412c=function(){return _0x79edd9;};return a51_0x412c();}const a51_0x4d1ed4=a51_0x3530;(function(_0x42cfe1,_0x114bf6){const _0x16fd2b=a51_0x3530,_0x3d0a8a=_0x42cfe1();while(!![]){try{const _0x1ebf5d=parseInt(_0x16fd2b(0xc0))/0x1*(-parseInt(_0x16fd2b(0xbf))/0x2)+-parseInt(_0x16fd2b(0xc5))/0x3*(-parseInt(_0x16fd2b(0xcd))/0x4)+parseInt(_0x16fd2b(0xc1))/0x5+parseInt(_0x16fd2b(0xd1))/0x6+parseInt(_0x16fd2b(0xc6))/0x7*(-parseInt(_0x16fd2b(0xc3))/0x8)+-parseInt(_0x16fd2b(0xc7))/0x9+parseInt(_0x16fd2b(0xc4))/0xa;if(_0x1ebf5d===_0x114bf6)break;else _0x3d0a8a['push'](_0x3d0a8a['shift']());}catch(_0x23007f){_0x3d0a8a['push'](_0x3d0a8a['shift']());}}}(a51_0x412c,0x8c970));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';function a51_0x3530(_0x5329cc,_0x1a8776){_0x5329cc=_0x5329cc-0xbe;const _0x412c84=a51_0x412c();let _0x353041=_0x412c84[_0x5329cc];return _0x353041;}export const dbAnalyzeCancel={'service':'db','command':a51_0x4d1ed4(0xc8),'description':a51_0x4d1ed4(0xcf),'risk':a51_0x4d1ed4(0xbe),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a51_0x4d1ed4(0xcb),'type':a51_0x4d1ed4(0xce),'description':a51_0x4d1ed4(0xc2)}],async 'execute'(_0x3ba09a){const _0x5b423a=a51_0x4d1ed4,_0x31e680=_0x3ba09a['num']('id');let _0xee92a=_0x3ba09a[_0x5b423a(0xc9)](_0x5b423a(0xcb))||undefined;if(!_0xee92a){const _0x10a2ff=await getDbLinkInfo(_0x31e680);_0xee92a=_0x10a2ff[_0x5b423a(0xcc)]??undefined;if(!_0xee92a)throw CliErrors[_0x5b423a(0xd3)](_0x5b423a(0xca),_0x5b423a(0xd0));}return await cancelDbAnalysis(_0xee92a),{'ok':!![],'data':{'dbLinkId':_0x31e680,'planId':_0xee92a},'message':_0x5b423a(0xd2)+_0xee92a};}};
1
+ const a51_0xa4c595=a51_0x4887;(function(_0x74c3bb,_0x5a1593){const _0x33b674=a51_0x4887,_0x2afcbe=_0x74c3bb();while(!![]){try{const _0x5567bc=-parseInt(_0x33b674(0x132))/0x1*(-parseInt(_0x33b674(0x126))/0x2)+parseInt(_0x33b674(0x12a))/0x3+-parseInt(_0x33b674(0x130))/0x4+parseInt(_0x33b674(0x136))/0x5+-parseInt(_0x33b674(0x12e))/0x6+parseInt(_0x33b674(0x128))/0x7+-parseInt(_0x33b674(0x127))/0x8;if(_0x5567bc===_0x5a1593)break;else _0x2afcbe['push'](_0x2afcbe['shift']());}catch(_0x27c7cc){_0x2afcbe['push'](_0x2afcbe['shift']());}}}(a51_0x1de8,0xbf908));function a51_0x4887(_0xb77f07,_0x34d6bb){_0xb77f07=_0xb77f07-0x123;const _0x1de83d=a51_0x1de8();let _0x48879d=_0x1de83d[_0xb77f07];return _0x48879d;}function a51_0x1de8(){const _0x1b06bf=['Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','2301052cEZCol','analyze-cancel','1207962gpSbTG','str','latestAnalysisTraceId','write','6073830GpcbWG','Cancel\x20requested\x20for\x20plan\x20','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','validation','num','2DyvIUA','15893472RYhmEm','2661841SocrSG','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','3975018FXDLCv','string','plan','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','4688412FZoBPg'];a51_0x1de8=function(){return _0x1b06bf;};return a51_0x1de8();}import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':a51_0xa4c595(0x131),'description':a51_0xa4c595(0x123),'risk':a51_0xa4c595(0x135),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a51_0xa4c595(0x12c),'type':a51_0xa4c595(0x12b),'description':a51_0xa4c595(0x129)}],async 'execute'(_0x43fdbf){const _0x46862b=a51_0xa4c595,_0x2a3a20=_0x43fdbf[_0x46862b(0x125)]('id');let _0x24b01b=_0x43fdbf[_0x46862b(0x133)](_0x46862b(0x12c))||undefined;if(!_0x24b01b){const _0x3104c6=await getDbLinkInfo(_0x2a3a20);_0x24b01b=_0x3104c6[_0x46862b(0x134)]??undefined;if(!_0x24b01b)throw CliErrors[_0x46862b(0x124)](_0x46862b(0x12d),_0x46862b(0x12f));}return await cancelDbAnalysis(_0x24b01b),{'ok':!![],'data':{'dbLinkId':_0x2a3a20,'planId':_0x24b01b},'message':_0x46862b(0x137)+_0x24b01b};}};