@lovrabet/rabetbase-cli 2.1.9 → 2.1.10-beta.0

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 (197) 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/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.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/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -1
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/field-update.js +1 -0
  54. package/lib/commands/dataset/index.js +1 -1
  55. package/lib/commands/dataset/link-create.js +1 -1
  56. package/lib/commands/dataset/link-delete.js +1 -1
  57. package/lib/commands/dataset/link-shared.js +1 -1
  58. package/lib/commands/dataset/link-update.js +1 -1
  59. package/lib/commands/dataset/links.js +1 -1
  60. package/lib/commands/dataset/list.js +1 -1
  61. package/lib/commands/dataset/operations.js +1 -1
  62. package/lib/commands/db/analyze-cancel.js +1 -1
  63. package/lib/commands/db/analyze-start.js +1 -1
  64. package/lib/commands/db/analyze-status.js +1 -1
  65. package/lib/commands/db/create.js +1 -1
  66. package/lib/commands/db/delete.js +1 -1
  67. package/lib/commands/db/detail.js +1 -1
  68. package/lib/commands/db/diff.js +1 -1
  69. package/lib/commands/db/index.js +1 -1
  70. package/lib/commands/db/list.js +1 -1
  71. package/lib/commands/db/shared.js +1 -1
  72. package/lib/commands/db/tables.js +1 -1
  73. package/lib/commands/db/test.js +1 -1
  74. package/lib/commands/db/update.js +1 -1
  75. package/lib/commands/doctor.js +1 -1
  76. package/lib/commands/init/index.js +1 -1
  77. package/lib/commands/issue/index.js +1 -1
  78. package/lib/commands/issue/report.js +1 -1
  79. package/lib/commands/logs/index.js +1 -1
  80. package/lib/commands/menu/index.js +1 -1
  81. package/lib/commands/menu/shared/compare-table.js +1 -1
  82. package/lib/commands/menu/shared/index.js +1 -1
  83. package/lib/commands/menu/shared/inquirer.js +1 -1
  84. package/lib/commands/menu/shared/local-pages.js +1 -1
  85. package/lib/commands/menu/shared/logic.js +1 -1
  86. package/lib/commands/menu/shared/service.js +1 -1
  87. package/lib/commands/menu/shared/sync-core.js +1 -1
  88. package/lib/commands/menu/shared/update-core.js +1 -1
  89. package/lib/commands/menu/shared/valid-url.js +1 -1
  90. package/lib/commands/menu/sync.js +1 -1
  91. package/lib/commands/menu/update.js +1 -1
  92. package/lib/commands/page/generate-start.js +1 -1
  93. package/lib/commands/page/generate-status.js +1 -1
  94. package/lib/commands/page/index.js +1 -1
  95. package/lib/commands/page/pull.js +1 -1
  96. package/lib/commands/page/push.js +1 -1
  97. package/lib/commands/page/shared.js +1 -1
  98. package/lib/commands/page/standard-page-status.js +1 -1
  99. package/lib/commands/page/sync.js +1 -1
  100. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  101. package/lib/commands/project/create/format-elapsed.js +1 -1
  102. package/lib/commands/project/create/main.js +1 -1
  103. package/lib/commands/project/create/non-interactive.js +1 -1
  104. package/lib/commands/project/create/project-template-path.js +1 -1
  105. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  106. package/lib/commands/project/create/use-format-code.js +1 -1
  107. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  108. package/lib/commands/project/index.js +1 -1
  109. package/lib/commands/project/init.js +1 -1
  110. package/lib/commands/project/upgrade.js +1 -1
  111. package/lib/commands/registry.js +1 -1
  112. package/lib/commands/run/index.js +1 -1
  113. package/lib/commands/schema.js +1 -1
  114. package/lib/commands/skill/index.js +1 -1
  115. package/lib/commands/sql/create.js +1 -1
  116. package/lib/commands/sql/delete.js +1 -1
  117. package/lib/commands/sql/detail.js +1 -1
  118. package/lib/commands/sql/exec.js +1 -1
  119. package/lib/commands/sql/index.js +1 -1
  120. package/lib/commands/sql/list.js +1 -1
  121. package/lib/commands/sql/pull.js +1 -1
  122. package/lib/commands/sql/push.js +1 -1
  123. package/lib/commands/sql/save.js +1 -1
  124. package/lib/commands/sql/shared.js +1 -1
  125. package/lib/commands/sql/status.js +1 -1
  126. package/lib/commands/sql/validate.js +1 -1
  127. package/lib/config/schema.js +1 -1
  128. package/lib/constant/cdn.js +1 -1
  129. package/lib/constant/cli.js +1 -1
  130. package/lib/constant/defaults.js +1 -1
  131. package/lib/constant/domain.js +1 -1
  132. package/lib/constant/env.js +1 -1
  133. package/lib/constant/output.js +1 -1
  134. package/lib/constant/paths.js +1 -1
  135. package/lib/constant/risk.js +1 -1
  136. package/lib/context.js +1 -1
  137. package/lib/core/alias-resolver.js +1 -1
  138. package/lib/core/api-client.js +1 -1
  139. package/lib/core/bff/config.js +1 -1
  140. package/lib/core/bff/file-system.js +1 -1
  141. package/lib/core/bff/hash.js +1 -1
  142. package/lib/core/bff/lock.js +1 -1
  143. package/lib/core/bff/utils.js +1 -1
  144. package/lib/core/db-resolver.js +1 -1
  145. package/lib/core/page/file-system.js +1 -1
  146. package/lib/core/page/hash.js +1 -1
  147. package/lib/core/page/lock.js +1 -1
  148. package/lib/core/sql-sync/config.js +1 -1
  149. package/lib/core/sql-sync/file-system.js +1 -1
  150. package/lib/core/sql-sync/hash.js +1 -1
  151. package/lib/core/sql-sync/lock.js +1 -1
  152. package/lib/core/sql-sync/utils.js +1 -1
  153. package/lib/core/sql-validator.js +1 -1
  154. package/lib/errors.js +1 -1
  155. package/lib/framework/build-all-flags.js +1 -1
  156. package/lib/framework/flags.js +1 -1
  157. package/lib/framework/help.js +1 -1
  158. package/lib/framework/index.js +1 -1
  159. package/lib/framework/output.js +1 -1
  160. package/lib/framework/response.js +1 -1
  161. package/lib/framework/runner-alias.js +1 -1
  162. package/lib/framework/runner.js +1 -1
  163. package/lib/framework/schema-export.js +1 -1
  164. package/lib/framework/types.js +1 -1
  165. package/lib/generated/build-info.js +1 -1
  166. package/lib/help.js +1 -1
  167. package/lib/skills/main.js +1 -1
  168. package/lib/skills/npx-skills-add.js +1 -1
  169. package/lib/telemetry/cli-command-trace.js +1 -1
  170. package/lib/telemetry/cli-help-trace.js +1 -1
  171. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  172. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  173. package/lib/telemetry/send-cli-trace-log.js +1 -1
  174. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  175. package/lib/utils/ai_config.js +1 -1
  176. package/lib/utils/apply-jq-filter.js +1 -1
  177. package/lib/utils/cdn-config.js +1 -1
  178. package/lib/utils/check-sdk-version.js +1 -1
  179. package/lib/utils/cli-version-check.js +1 -1
  180. package/lib/utils/cli-version-policy.js +1 -1
  181. package/lib/utils/config.js +1 -1
  182. package/lib/utils/copy-directory.js +1 -1
  183. package/lib/utils/entity-with-id.js +1 -1
  184. package/lib/utils/file-utils.js +1 -1
  185. package/lib/utils/guides-cdn.js +1 -1
  186. package/lib/utils/http-client.js +1 -1
  187. package/lib/utils/is-non-interactive.js +1 -1
  188. package/lib/utils/logger.js +1 -1
  189. package/lib/utils/params.js +1 -1
  190. package/lib/utils/platform.js +1 -1
  191. package/lib/utils/rules-cdn.js +1 -1
  192. package/lib/utils/sleep.js +1 -1
  193. package/lib/utils/template-replacer.js +1 -1
  194. package/lib/utils/version.js +1 -1
  195. package/lib/utils/with-active-cookie.js +1 -1
  196. package/lib/utils/write-cli-side-channel.js +1 -1
  197. package/package.json +1 -1
@@ -1 +1 @@
1
- const a33_0x2281f1=a33_0x4080;(function(_0xc6ad4d,_0x5939d3){const _0x40aacb=a33_0x4080,_0x1d58c3=_0xc6ad4d();while(!![]){try{const _0x3018ed=parseInt(_0x40aacb(0x1b1))/0x1*(parseInt(_0x40aacb(0x1cf))/0x2)+-parseInt(_0x40aacb(0x1c5))/0x3+-parseInt(_0x40aacb(0x1cd))/0x4+parseInt(_0x40aacb(0x1c3))/0x5*(-parseInt(_0x40aacb(0x1b9))/0x6)+-parseInt(_0x40aacb(0x1d0))/0x7*(-parseInt(_0x40aacb(0x1c0))/0x8)+-parseInt(_0x40aacb(0x1b4))/0x9*(-parseInt(_0x40aacb(0x1c4))/0xa)+-parseInt(_0x40aacb(0x1c6))/0xb*(-parseInt(_0x40aacb(0x1d1))/0xc);if(_0x3018ed===_0x5939d3)break;else _0x1d58c3['push'](_0x1d58c3['shift']());}catch(_0x128e10){_0x1d58c3['push'](_0x1d58c3['shift']());}}}(a33_0x24a7,0xd82e7));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';function a33_0x24a7(){const _0x26b6c2=['30ILaEny','4059447dbzLSm','19552489SVlHIJ','lockFilePath','filePath','bool','hash','\x20remote-only','alias','5005352OYrUdX','all','4324llfgtt','21RBiXKW','12suwUxb','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','push','\x20modified,\x20','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','469FiHPRz','functions','\x20added,\x20','65169FlbibF','read','datasetCode','has','\x20unchanged','118506gEjCrz','bff','lockKey','appCode','length','status','apiDir','2700088TgjsHc','scriptsRoot','remote','85NoOOAY'];a33_0x24a7=function(){return _0x26b6c2;};return a33_0x24a7();}function a33_0x4080(_0x310e53,_0x7988e4){_0x310e53=_0x310e53-0x1af;const _0x24a799=a33_0x24a7();let _0x4080a2=_0x24a799[_0x310e53];return _0x4080a2;}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':a33_0x2281f1(0x1ba),'command':a33_0x2281f1(0x1be),'description':a33_0x2281f1(0x1b0),'risk':a33_0x2281f1(0x1b5),'flags':[{'name':a33_0x2281f1(0x1c2),'type':'boolean','description':a33_0x2281f1(0x1d2)}],async 'execute'(_0x1fa621){const _0x491cb4=a33_0x2281f1,_0x54ea05=loadBffProjectConfig(_0x1fa621[_0x491cb4(0x1bc)]),_0x484934=await readBffLockFile(_0x54ea05[_0x491cb4(0x1c7)]),{appLock:_0x530262}=ensureLockScope(_0x484934??createEmptyBffLock(),_0x1fa621[_0x491cb4(0x1bc)],_0x54ea05[_0x491cb4(0x1c1)],'status'),_0x159b71=await scanLocalBffFunctions(_0x54ea05),_0x5e5b44=[],_0x158d1c=[],_0x23de2b=[];for(const _0x4d5aac of _0x159b71){const _0x13655f=await computeFileHash(_0x4d5aac[_0x491cb4(0x1c8)]),_0x547bc8=_0x530262['functions'][_0x4d5aac['lockKey']];if(!_0x547bc8)_0x5e5b44[_0x491cb4(0x1d3)](_0x4d5aac[_0x491cb4(0x1bb)]);else _0x547bc8[_0x491cb4(0x1ca)]!==_0x13655f?_0x158d1c[_0x491cb4(0x1d3)](_0x4d5aac[_0x491cb4(0x1bb)]):_0x23de2b[_0x491cb4(0x1d3)](_0x4d5aac[_0x491cb4(0x1bb)]);}const _0x2ebd5b=[];if(_0x1fa621[_0x491cb4(0x1c9)](_0x491cb4(0x1c2))){const _0x3fff94=loadAliasMap(_0x1fa621[_0x491cb4(0x1bf)],undefined,resolveApiFilePath(_0x1fa621[_0x491cb4(0x1bf)],_0x1fa621[_0x491cb4(0x1bc)])),_0x30119e=new Map(_0x3fff94['map'](_0x415f25=>[_0x415f25[_0x491cb4(0x1b6)],_0x415f25[_0x491cb4(0x1cc)]])),[_0x399504,_0x10bc09]=await Promise[_0x491cb4(0x1ce)]([listBffScripts(_0x1fa621['appCode']),getBffScriptStatistics(_0x1fa621['appCode'])]),_0x391229=createHookLocationMap(_0x10bc09),_0x27b339=new Set(_0x159b71['map'](_0x38bd1c=>_0x38bd1c['lockKey']));for(const _0x4af3b3 of _0x399504){const _0x3c010f=resolveRemoteScriptTarget(_0x54ea05,_0x4af3b3,_0x391229,_0x530262[_0x491cb4(0x1b2)],_0x30119e);_0x3c010f&&!_0x27b339[_0x491cb4(0x1b7)](_0x3c010f[_0x491cb4(0x1bb)])&&_0x2ebd5b[_0x491cb4(0x1d3)](_0x3c010f[_0x491cb4(0x1bb)]);}}const _0x342516=_0x5e5b44[_0x491cb4(0x1bd)]===0x0&&_0x158d1c[_0x491cb4(0x1bd)]===0x0&&_0x2ebd5b['length']===0x0;return{'ok':!![],'data':{'added':_0x5e5b44,'modified':_0x158d1c,'unchanged':_0x23de2b,'remoteOnly':_0x2ebd5b},'message':_0x342516?'All\x20BFF\x20scripts\x20are\x20in\x20sync.':_0x5e5b44[_0x491cb4(0x1bd)]+_0x491cb4(0x1b3)+_0x158d1c[_0x491cb4(0x1bd)]+_0x491cb4(0x1af)+_0x23de2b['length']+_0x491cb4(0x1b8)+(_0x2ebd5b['length']>0x0?',\x20'+_0x2ebd5b[_0x491cb4(0x1bd)]+_0x491cb4(0x1cb):'')};}};
1
+ const a33_0x1dfdae=a33_0x23fd;(function(_0x236a83,_0x2812df){const _0x439d0e=a33_0x23fd,_0x1c8a62=_0x236a83();while(!![]){try{const _0x599f2a=parseInt(_0x439d0e(0x1de))/0x1+-parseInt(_0x439d0e(0x1eb))/0x2+-parseInt(_0x439d0e(0x1f4))/0x3+parseInt(_0x439d0e(0x1f0))/0x4+parseInt(_0x439d0e(0x1e4))/0x5+-parseInt(_0x439d0e(0x1f6))/0x6*(-parseInt(_0x439d0e(0x1e7))/0x7)+parseInt(_0x439d0e(0x1f2))/0x8*(-parseInt(_0x439d0e(0x1dc))/0x9);if(_0x599f2a===_0x2812df)break;else _0x1c8a62['push'](_0x1c8a62['shift']());}catch(_0x416111){_0x1c8a62['push'](_0x1c8a62['shift']());}}}(a33_0x4b41,0x9fb33));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';function a33_0x23fd(_0x55a439,_0x15b41f){_0x55a439=_0x55a439-0x1d7;const _0x4b4146=a33_0x4b41();let _0x23fd5b=_0x4b4146[_0x55a439];return _0x23fd5b;}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';export const bffStatus={'service':a33_0x1dfdae(0x1f1),'command':a33_0x1dfdae(0x1e2),'description':a33_0x1dfdae(0x1d7),'risk':a33_0x1dfdae(0x1e5),'flags':[{'name':'remote','type':'boolean','description':'Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally'}],async 'execute'(_0x193d60){const _0x2b3ed7=a33_0x1dfdae,_0x15b3b3=loadBffProjectConfig(_0x193d60[_0x2b3ed7(0x1ef)]),_0x56e11a=await readBffLockFile(_0x15b3b3['lockFilePath']),{appLock:_0x58dae5}=ensureLockScope(_0x56e11a??createEmptyBffLock(),_0x193d60['appCode'],_0x15b3b3[_0x2b3ed7(0x1f5)],_0x2b3ed7(0x1e2)),_0x225411=await scanLocalBffFunctions(_0x15b3b3),_0x5cfd96=[],_0x3c7327=[],_0x3807e2=[];for(const _0x4ec963 of _0x225411){const _0x48129d=await computeFileHash(_0x4ec963[_0x2b3ed7(0x1d8)]),_0x395d11=_0x58dae5['functions'][_0x4ec963['lockKey']];if(!_0x395d11)_0x5cfd96[_0x2b3ed7(0x1e0)](_0x4ec963['lockKey']);else _0x395d11[_0x2b3ed7(0x1e3)]!==_0x48129d?_0x3c7327['push'](_0x4ec963['lockKey']):_0x3807e2[_0x2b3ed7(0x1e0)](_0x4ec963[_0x2b3ed7(0x1dd)]);}const _0x333dbc=[];if(_0x193d60[_0x2b3ed7(0x1ed)](_0x2b3ed7(0x1f7))){const _0x499a2d=loadAliasMap(_0x193d60[_0x2b3ed7(0x1e1)],undefined,resolveApiFilePath(_0x193d60['apiDir'],_0x193d60[_0x2b3ed7(0x1ef)])),_0x221cc2=new Map(_0x499a2d[_0x2b3ed7(0x1df)](_0x4e4c17=>[_0x4e4c17[_0x2b3ed7(0x1e6)],_0x4e4c17[_0x2b3ed7(0x1ec)]])),[_0x1e6d1e,_0x167b1b]=await Promise[_0x2b3ed7(0x1db)]([listBffScripts(_0x193d60['appCode']),getBffScriptStatistics(_0x193d60['appCode'])]),_0x237cef=createHookLocationMap(_0x167b1b),_0x252d44=new Set(_0x225411[_0x2b3ed7(0x1df)](_0xe23ffe=>_0xe23ffe['lockKey']));for(const _0x1d2694 of _0x1e6d1e){const _0x3c024d=resolveRemoteScriptTarget(_0x15b3b3,_0x1d2694,_0x237cef,_0x58dae5[_0x2b3ed7(0x1da)],_0x221cc2);_0x3c024d&&!_0x252d44[_0x2b3ed7(0x1e9)](_0x3c024d['lockKey'])&&_0x333dbc[_0x2b3ed7(0x1e0)](_0x3c024d['lockKey']);}}const _0xc63fbc=_0x5cfd96[_0x2b3ed7(0x1e8)]===0x0&&_0x3c7327[_0x2b3ed7(0x1e8)]===0x0&&_0x333dbc[_0x2b3ed7(0x1e8)]===0x0;return{'ok':!![],'data':{'added':_0x5cfd96,'modified':_0x3c7327,'unchanged':_0x3807e2,'remoteOnly':_0x333dbc},'message':_0xc63fbc?_0x2b3ed7(0x1ee):_0x5cfd96[_0x2b3ed7(0x1e8)]+_0x2b3ed7(0x1ea)+_0x3c7327[_0x2b3ed7(0x1e8)]+_0x2b3ed7(0x1f3)+_0x3807e2[_0x2b3ed7(0x1e8)]+'\x20unchanged'+(_0x333dbc[_0x2b3ed7(0x1e8)]>0x0?',\x20'+_0x333dbc[_0x2b3ed7(0x1e8)]+_0x2b3ed7(0x1d9):'')};}};function a33_0x4b41(){const _0x536203=['\x20modified,\x20','3260466umdHSK','scriptsRoot','3162GnBRMg','remote','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','filePath','\x20remote-only','functions','all','9256320ZuGSot','lockKey','1060075JIhHJA','map','push','apiDir','status','hash','4321455uEXlLW','read','datasetCode','4319OJQRRa','length','has','\x20added,\x20','1444984qvuQMb','alias','bool','All\x20BFF\x20scripts\x20are\x20in\x20sync.','appCode','4969600QwuXGq','bff','8FxTxkv'];a33_0x4b41=function(){return _0x536203;};return a33_0x4b41();}
@@ -1 +1 @@
1
- const a34_0xf241af=a34_0x41a9;(function(_0x2f3f97,_0x149f9c){const _0x26aeeb=a34_0x41a9,_0x2790b9=_0x2f3f97();while(!![]){try{const _0x19620a=-parseInt(_0x26aeeb(0x15f))/0x1*(-parseInt(_0x26aeeb(0x147))/0x2)+parseInt(_0x26aeeb(0x150))/0x3+parseInt(_0x26aeeb(0x151))/0x4+parseInt(_0x26aeeb(0x132))/0x5+parseInt(_0x26aeeb(0x16f))/0x6*(-parseInt(_0x26aeeb(0x13c))/0x7)+-parseInt(_0x26aeeb(0x14a))/0x8+-parseInt(_0x26aeeb(0x146))/0x9;if(_0x19620a===_0x149f9c)break;else _0x2790b9['push'](_0x2790b9['shift']());}catch(_0x1ae1fe){_0x2790b9['push'](_0x2790b9['shift']());}}}(a34_0x5226,0xadc92));import a34_0x4259b9 from'chalk';import a34_0x2b80e1 from'ora';import a34_0x181d39 from'semver';function a34_0x41a9(_0x36f87e,_0x26ac8c){_0x36f87e=_0x36f87e-0x12d;const _0x52263c=a34_0x5226();let _0x41a952=_0x52263c[_0x36f87e];return _0x41a952;}import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x39a8d0=a34_0x41a9;return GIT_COMMIT!==_0x39a8d0(0x16d)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x39a8d0(0x170)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x4068b6=a34_0x41a9,_0x225fcc=process[_0x4068b6(0x15b)][_0x4068b6(0x15a)]();if(_0x225fcc['includes'](_0x4068b6(0x164)))return _0x4068b6(0x164);return _0x4068b6(0x152);}const updateFlags=[{'name':'beta','type':a34_0xf241af(0x135),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a34_0xf241af(0x138),'type':'string','description':a34_0xf241af(0x168)},{'name':a34_0xf241af(0x12e),'type':a34_0xf241af(0x135),'description':a34_0xf241af(0x16b),'default':![]},{'name':'skills','type':a34_0xf241af(0x135),'description':a34_0xf241af(0x174),'default':!![],'hidden':!![]}];function getRequestedVersion(_0x2530b4){const _0x2b99ff=a34_0xf241af;return _0x2530b4['str'](_0x2b99ff(0x138))['trim']();}function shouldSkipOfficialSkill(_0x153bc8){const _0x2f82b2=a34_0xf241af;return _0x153bc8['bool']('no-skills')||_0x153bc8[_0x2f82b2(0x16a)](_0x2f82b2(0x162))===![];}async function validateUpdateFlags(_0x5d2aea){const _0x229868=a34_0xf241af,_0x5f4b41=_0x5d2aea[_0x229868(0x158)](_0x229868(0x133)),_0x28e028=getRequestedVersion(_0x5d2aea);if(_0x5f4b41&&_0x28e028)throw CliErrors[_0x229868(0x163)](_0x229868(0x14b),'Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.');if(_0x28e028&&!a34_0x181d39[_0x229868(0x141)](_0x28e028))throw CliErrors[_0x229868(0x163)]('Invalid\x20version:\x20'+_0x28e028,_0x229868(0x140));}async function fetchNpmDistTags(){const _0x5f3895=a34_0xf241af;try{const _0x2f1321=await fetch(_0x5f3895(0x15d)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x5f3895(0x14e),{'signal':AbortSignal['timeout'](0x2710)});if(!_0x2f1321['ok'])return null;const _0xaa0f3e=await _0x2f1321[_0x5f3895(0x13f)]();if(!_0xaa0f3e||typeof _0xaa0f3e!==_0x5f3895(0x136))return null;return Object[_0x5f3895(0x16e)](Object['entries'](_0xaa0f3e)[_0x5f3895(0x161)](([,_0x200e76])=>typeof _0x200e76===_0x5f3895(0x172)&&_0x200e76[_0x5f3895(0x130)]()[_0x5f3895(0x144)]>0x0)[_0x5f3895(0x173)](([_0x4ecdde,_0x5b3c00])=>[_0x4ecdde,String(_0x5b3c00)[_0x5f3895(0x130)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x128257){const _0x5f5a00=await fetchNpmDistTags();return _0x5f5a00?.[_0x128257]??null;}function a34_0x5226(){const _0x1bebc0=['warn','Version\x20comparison\x20failed','2450651pyujPw','Already\x20on\x20requested\x20version\x20(v','Update\x20available:\x20','json','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','valid','Requested\x20version:\x20','...','length','info','18439821drTXqI','2XYAOSo','gray','log','2893640kIezmh','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','message','stableVersion','/dist-tags','Checking\x20for\x20updates...','3838707QGsyuV','2839296oSGQyw','npm','source','error','update','\x20\x20Official\x20skill\x20update\x20failed:\x20','red','bool','cwd','toLowerCase','execPath','write','https://registry.npmjs.org/-/package/','start','981478eDyjlj','fail','filter','skills','validation','bun','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','succeed','\x20→\x20','Install\x20a\x20specific\x20CLI\x20version','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','flag','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','green','unknown','fromEntries','12FLIFTR','slice','run','string','map','Refresh\x20official\x20skill\x20package\x20after\x20updating','@latest','\x20\x20Run\x20manually:\x20','no-skills','\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','trim','latest','4258575YhwxWh','beta','Checking\x20official\x20skill\x20package...','boolean','object','yellow','version','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'];a34_0x5226=function(){return _0x1bebc0;};return a34_0x5226();}async function fetchLatestVersion(){const _0x600aef=a34_0xf241af,_0x5e84a7=await fetchNpmDistTagVersion(_0x600aef(0x131));if(_0x5e84a7)return _0x5e84a7;const _0x143288=await getCdnConfig();return _0x143288?.['cli']?.[_0x600aef(0x14d)]??null;}async function resolveTargetVersion(_0x175c75){const _0xef77b6=a34_0xf241af,_0x7727cf=getRequestedVersion(_0x175c75);if(_0x7727cf)return{'version':_0x7727cf,'source':_0xef77b6(0x138)};if(_0x175c75[_0xef77b6(0x158)](_0xef77b6(0x133))){const _0x39a0f2=await fetchNpmDistTagVersion(_0xef77b6(0x133));if(!_0x39a0f2)return null;return{'version':_0x39a0f2,'source':_0xef77b6(0x133)};}const _0x21c7d6=await fetchLatestVersion();if(!_0x21c7d6)return null;return{'version':_0x21c7d6,'source':'latest'};}function shouldInstallTarget(_0x2deb05,_0x1c6ffb){const _0x521344=a34_0xf241af;if(_0x1c6ffb[_0x521344(0x153)]===_0x521344(0x138)||_0x1c6ffb[_0x521344(0x153)]===_0x521344(0x133))return!a34_0x181d39['eq'](_0x2deb05,_0x1c6ffb[_0x521344(0x138)]);return a34_0x181d39['lt'](_0x2deb05,_0x1c6ffb[_0x521344(0x138)]);}function getInstallPlanLabel(_0x4152ef,_0x286f5e){const _0x3c8328=a34_0xf241af;switch(_0x286f5e[_0x3c8328(0x153)]){case'beta':return'Beta\x20version:\x20'+a34_0x4259b9[_0x3c8328(0x137)](_0x4152ef)+'\x20→\x20'+a34_0x4259b9[_0x3c8328(0x16c)](_0x286f5e[_0x3c8328(0x138)]);case _0x3c8328(0x138):return _0x3c8328(0x142)+a34_0x4259b9[_0x3c8328(0x137)](_0x4152ef)+_0x3c8328(0x167)+a34_0x4259b9[_0x3c8328(0x16c)](_0x286f5e[_0x3c8328(0x138)]);case'latest':default:return _0x3c8328(0x13e)+a34_0x4259b9[_0x3c8328(0x137)](_0x4152ef)+_0x3c8328(0x167)+a34_0x4259b9[_0x3c8328(0x16c)](_0x286f5e[_0x3c8328(0x138)]);}}async function installOfficialSkill(_0x570c2d){const _0x42e21a=a34_0xf241af;console['log'](a34_0x4259b9[_0x42e21a(0x148)](_0x42e21a(0x134)));const _0x2c9d3c=runNpxSkillsAddGlobal(process[_0x42e21a(0x159)](),RABETBASE_SKILL_SOURCE,{'stdio':_0x570c2d?'pipe':'inherit'});if(_0x2c9d3c['skipped']){console[_0x42e21a(0x149)](a34_0x4259b9['gray'](_0x42e21a(0x12f)));return;}if(_0x2c9d3c['ok']){console['log'](a34_0x4259b9['gray']('\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.'));return;}console[_0x42e21a(0x13a)](a34_0x4259b9['yellow'](_0x42e21a(0x156)+(_0x2c9d3c[_0x42e21a(0x154)]||_0x42e21a(0x16d)))),console['log'](a34_0x4259b9[_0x42e21a(0x148)](_0x42e21a(0x12d)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x382db7){const _0x228578=a34_0xf241af;await validateUpdateFlags(_0x382db7);const _0x3c6bad=getCurrentVersion();console['log']('Current\x20version:\x20'+_0x3c6bad);const _0x5975e1=a34_0x2b80e1(_0x228578(0x14f))[_0x228578(0x15e)](),_0x35064d=await resolveTargetVersion(_0x382db7);if(!_0x35064d){const _0x53efcd=_0x382db7[_0x228578(0x158)](_0x228578(0x133))?'Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm':_0x228578(0x165);return _0x5975e1[_0x228578(0x160)](_0x53efcd),console[_0x228578(0x149)](a34_0x4259b9[_0x228578(0x148)](_0x228578(0x139)+NPM_PACKAGE_NAME+_0x228578(0x175))),{'ok':![],'message':_0x53efcd};}const _0xc07bd4=a34_0x181d39[_0x228578(0x141)](VERSION),_0x4d8118=a34_0x181d39[_0x228578(0x141)](_0x35064d[_0x228578(0x138)]);if(!_0xc07bd4||!_0x4d8118)return _0x5975e1['fail'](_0x228578(0x13b)),{'ok':![],'message':_0x228578(0x13b)};if(!shouldInstallTarget(_0xc07bd4,_0x35064d)){const _0x43897a=_0x35064d[_0x228578(0x153)]===_0x228578(0x138)?_0x228578(0x13d)+_0x35064d[_0x228578(0x138)]+')':'Already\x20up\x20to\x20date\x20(v'+_0x35064d[_0x228578(0x138)]+')';return _0x5975e1[_0x228578(0x166)](_0x43897a),shouldSkipOfficialSkill(_0x382db7)?console['log'](a34_0x4259b9[_0x228578(0x148)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).')):await installOfficialSkill(_0x382db7['nonInteractive']),{'ok':!![]};}_0x5975e1[_0x228578(0x145)](getInstallPlanLabel(_0x3c6bad,_0x35064d));const _0x42d58a=detectPackageManager(),_0x444bb9=_0x42d58a===_0x228578(0x152)?resolveNpmBin('npm'):_0x42d58a,_0x42c50f=a34_0x2b80e1('Updating\x20via\x20'+_0x42d58a+_0x228578(0x143))['start']();try{return await execa(_0x444bb9,['install','-g',NPM_PACKAGE_NAME+'@'+_0x35064d[_0x228578(0x138)]],{'stdio':'pipe'}),_0x42c50f[_0x228578(0x166)]('Updated\x20to\x20v'+_0x35064d['version']),console['log'](a34_0x4259b9['gray'](_0x228578(0x169))),shouldSkipOfficialSkill(_0x382db7)?console[_0x228578(0x149)](a34_0x4259b9[_0x228578(0x148)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).')):await installOfficialSkill(_0x382db7['nonInteractive']),{'ok':!![]};}catch(_0x53c5bd){return _0x42c50f[_0x228578(0x160)]('Update\x20failed'),console['error'](a34_0x4259b9[_0x228578(0x157)]('\x20\x20'+_0x53c5bd[_0x228578(0x14c)])),console[_0x228578(0x149)](a34_0x4259b9['gray']('\x20\x20Try\x20manually:\x20'+_0x42d58a+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x35064d[_0x228578(0x138)])),{'ok':![],'message':_0x53c5bd['message']};}}export const updateDefinition={'service':a34_0xf241af(0x155),'command':a34_0xf241af(0x171),'description':'Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','risk':a34_0xf241af(0x15c),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a34_0x3c86e9=a34_0x37ba;(function(_0x3f7a52,_0x584f16){const _0x22928c=a34_0x37ba,_0x23cad2=_0x3f7a52();while(!![]){try{const _0x1760d3=parseInt(_0x22928c(0x1a8))/0x1+-parseInt(_0x22928c(0x1b2))/0x2+parseInt(_0x22928c(0x1e7))/0x3+parseInt(_0x22928c(0x1b3))/0x4+-parseInt(_0x22928c(0x1b7))/0x5*(-parseInt(_0x22928c(0x1a7))/0x6)+-parseInt(_0x22928c(0x1bc))/0x7*(-parseInt(_0x22928c(0x1ad))/0x8)+-parseInt(_0x22928c(0x1ac))/0x9;if(_0x1760d3===_0x584f16)break;else _0x23cad2['push'](_0x23cad2['shift']());}catch(_0x1cb879){_0x23cad2['push'](_0x23cad2['shift']());}}}(a34_0x58a9,0xa361c));import a34_0x2aa2ed from'chalk';import a34_0x4d735b from'ora';import a34_0x1200ac from'semver';function a34_0x58a9(){const _0x5f1599=['str','update','validation','pipe','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','297390SRYcPV','error','red','\x20\x20Run\x20manually:\x20','length','Requested\x20version:\x20','object','run','green','\x20\x20Official\x20skill\x20update\x20failed:\x20','gray','/dist-tags','execPath','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','30uyWTEu','654389uxDmLT','unknown','trim','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','16577307JbVHRn','11096tzGxPY','json','valid','Update\x20available:\x20','string','321224XxqCtS','4534876OZoLWa','npm','fail','boolean','157585TRUFlD','Install\x20a\x20specific\x20CLI\x20version','stableVersion','bun','install','3164oSPwlu','version','cli','Checking\x20for\x20updates...','Updating\x20via\x20','yellow','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','no-skills','fromEntries','slice','Already\x20up\x20to\x20date\x20(v','source','latest','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','cwd','Already\x20on\x20requested\x20version\x20(v','succeed','toLowerCase','write','message','Refresh\x20official\x20skill\x20package\x20after\x20updating','skipped','bool','log','beta','Version\x20comparison\x20failed','includes','timeout','Checking\x20official\x20skill\x20package...','inherit','Skipping\x20official\x20skill\x20package\x20(--no-skills).','nonInteractive','Invalid\x20version:\x20','Updated\x20to\x20v','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','flag','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','\x20→\x20'];a34_0x58a9=function(){return _0x5f1599;};return a34_0x58a9();}import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x2cf20d=a34_0x37ba;return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2cf20d(0x1c5)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x22a90e=a34_0x37ba,_0x5a5ef7=process[_0x22a90e(0x1a4)][_0x22a90e(0x1cd)]();if(_0x5a5ef7[_0x22a90e(0x1d6)](_0x22a90e(0x1ba)))return _0x22a90e(0x1ba);return _0x22a90e(0x1b4);}const updateFlags=[{'name':a34_0x3c86e9(0x1d4),'type':a34_0x3c86e9(0x1b6),'description':a34_0x3c86e9(0x1e0),'default':![]},{'name':a34_0x3c86e9(0x1bd),'type':a34_0x3c86e9(0x1b1),'description':a34_0x3c86e9(0x1b8)},{'name':'no-skills','type':a34_0x3c86e9(0x1b6),'description':a34_0x3c86e9(0x1ab),'default':![]},{'name':'skills','type':'boolean','description':a34_0x3c86e9(0x1d0),'default':!![],'hidden':!![]}];function a34_0x37ba(_0x3254ff,_0x217599){_0x3254ff=_0x3254ff-0x19f;const _0x58a932=a34_0x58a9();let _0x37ba2f=_0x58a932[_0x3254ff];return _0x37ba2f;}function getRequestedVersion(_0x2f0a3f){const _0x47532f=a34_0x3c86e9;return _0x2f0a3f[_0x47532f(0x1e2)](_0x47532f(0x1bd))[_0x47532f(0x1aa)]();}function shouldSkipOfficialSkill(_0x58d294){const _0x1aa6e5=a34_0x3c86e9;return _0x58d294[_0x1aa6e5(0x1d2)](_0x1aa6e5(0x1c3))||_0x58d294[_0x1aa6e5(0x1df)]('skills')===![];}async function validateUpdateFlags(_0x14775a){const _0xbb503e=a34_0x3c86e9,_0x485a4d=_0x14775a['bool']('beta'),_0x1e969d=getRequestedVersion(_0x14775a);if(_0x485a4d&&_0x1e969d)throw CliErrors[_0xbb503e(0x1e4)]('--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.');if(_0x1e969d&&!a34_0x1200ac[_0xbb503e(0x1af)](_0x1e969d))throw CliErrors[_0xbb503e(0x1e4)](_0xbb503e(0x1dc)+_0x1e969d,_0xbb503e(0x1c2));}async function fetchNpmDistTags(){const _0x9ea223=a34_0x3c86e9;try{const _0x48ee84=await fetch('https://registry.npmjs.org/-/package/'+encodeURIComponent(NPM_PACKAGE_NAME)+_0x9ea223(0x1a3),{'signal':AbortSignal[_0x9ea223(0x1d7)](0x2710)});if(!_0x48ee84['ok'])return null;const _0x462326=await _0x48ee84[_0x9ea223(0x1ae)]();if(!_0x462326||typeof _0x462326!==_0x9ea223(0x1ed))return null;return Object[_0x9ea223(0x1c4)](Object['entries'](_0x462326)['filter'](([,_0x342e78])=>typeof _0x342e78==='string'&&_0x342e78[_0x9ea223(0x1aa)]()[_0x9ea223(0x1eb)]>0x0)['map'](([_0x5cf742,_0x42d663])=>[_0x5cf742,String(_0x42d663)['trim']()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x2e38ca){const _0x5b8a1f=await fetchNpmDistTags();return _0x5b8a1f?.[_0x2e38ca]??null;}async function fetchLatestVersion(){const _0xea6bb0=a34_0x3c86e9,_0x3eded6=await fetchNpmDistTagVersion(_0xea6bb0(0x1c8));if(_0x3eded6)return _0x3eded6;const _0x49137e=await getCdnConfig();return _0x49137e?.[_0xea6bb0(0x1be)]?.[_0xea6bb0(0x1b9)]??null;}async function resolveTargetVersion(_0x2afba6){const _0x5d997e=a34_0x3c86e9,_0x137e44=getRequestedVersion(_0x2afba6);if(_0x137e44)return{'version':_0x137e44,'source':'version'};if(_0x2afba6['bool'](_0x5d997e(0x1d4))){const _0x4013cb=await fetchNpmDistTagVersion(_0x5d997e(0x1d4));if(!_0x4013cb)return null;return{'version':_0x4013cb,'source':_0x5d997e(0x1d4)};}const _0x5881e9=await fetchLatestVersion();if(!_0x5881e9)return null;return{'version':_0x5881e9,'source':_0x5d997e(0x1c8)};}function shouldInstallTarget(_0x10bbe1,_0x57e3e3){const _0x4e9ca2=a34_0x3c86e9;if(_0x57e3e3[_0x4e9ca2(0x1c7)]===_0x4e9ca2(0x1bd)||_0x57e3e3[_0x4e9ca2(0x1c7)]===_0x4e9ca2(0x1d4))return!a34_0x1200ac['eq'](_0x10bbe1,_0x57e3e3[_0x4e9ca2(0x1bd)]);return a34_0x1200ac['lt'](_0x10bbe1,_0x57e3e3[_0x4e9ca2(0x1bd)]);}function getInstallPlanLabel(_0x159f1c,_0x198389){const _0x317b98=a34_0x3c86e9;switch(_0x198389[_0x317b98(0x1c7)]){case'beta':return'Beta\x20version:\x20'+a34_0x2aa2ed[_0x317b98(0x1c1)](_0x159f1c)+_0x317b98(0x1e1)+a34_0x2aa2ed['green'](_0x198389[_0x317b98(0x1bd)]);case _0x317b98(0x1bd):return _0x317b98(0x1ec)+a34_0x2aa2ed[_0x317b98(0x1c1)](_0x159f1c)+_0x317b98(0x1e1)+a34_0x2aa2ed[_0x317b98(0x1a0)](_0x198389[_0x317b98(0x1bd)]);case _0x317b98(0x1c8):default:return _0x317b98(0x1b0)+a34_0x2aa2ed['yellow'](_0x159f1c)+'\x20→\x20'+a34_0x2aa2ed[_0x317b98(0x1a0)](_0x198389[_0x317b98(0x1bd)]);}}async function installOfficialSkill(_0x12c545){const _0x14cd8e=a34_0x3c86e9;console['log'](a34_0x2aa2ed[_0x14cd8e(0x1a2)](_0x14cd8e(0x1d8)));const _0x59a839=runNpxSkillsAddGlobal(process[_0x14cd8e(0x1ca)](),RABETBASE_SKILL_SOURCE,{'stdio':_0x12c545?'pipe':_0x14cd8e(0x1d9)});if(_0x59a839[_0x14cd8e(0x1d1)]){console[_0x14cd8e(0x1d3)](a34_0x2aa2ed[_0x14cd8e(0x1a2)]('\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).'));return;}if(_0x59a839['ok']){console[_0x14cd8e(0x1d3)](a34_0x2aa2ed['gray'](_0x14cd8e(0x1a5)));return;}console['warn'](a34_0x2aa2ed[_0x14cd8e(0x1c1)](_0x14cd8e(0x1a1)+(_0x59a839[_0x14cd8e(0x1e8)]||_0x14cd8e(0x1a9)))),console['log'](a34_0x2aa2ed[_0x14cd8e(0x1a2)](_0x14cd8e(0x1ea)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x2c33ca){const _0x5f06b6=a34_0x3c86e9;await validateUpdateFlags(_0x2c33ca);const _0x4cd4fc=getCurrentVersion();console[_0x5f06b6(0x1d3)]('Current\x20version:\x20'+_0x4cd4fc);const _0x55ab67=a34_0x4d735b(_0x5f06b6(0x1bf))['start'](),_0x3edb77=await resolveTargetVersion(_0x2c33ca);if(!_0x3edb77){const _0x865992=_0x2c33ca[_0x5f06b6(0x1d2)](_0x5f06b6(0x1d4))?_0x5f06b6(0x1de):_0x5f06b6(0x1c9);return _0x55ab67['fail'](_0x865992),console[_0x5f06b6(0x1d3)](a34_0x2aa2ed[_0x5f06b6(0x1a2)](_0x5f06b6(0x1a6)+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x865992};}const _0x4fdd82=a34_0x1200ac[_0x5f06b6(0x1af)](VERSION),_0x5c026f=a34_0x1200ac[_0x5f06b6(0x1af)](_0x3edb77[_0x5f06b6(0x1bd)]);if(!_0x4fdd82||!_0x5c026f)return _0x55ab67[_0x5f06b6(0x1b5)](_0x5f06b6(0x1d5)),{'ok':![],'message':_0x5f06b6(0x1d5)};if(!shouldInstallTarget(_0x4fdd82,_0x3edb77)){const _0x52190c=_0x3edb77[_0x5f06b6(0x1c7)]==='version'?_0x5f06b6(0x1cb)+_0x3edb77[_0x5f06b6(0x1bd)]+')':_0x5f06b6(0x1c6)+_0x3edb77[_0x5f06b6(0x1bd)]+')';return _0x55ab67[_0x5f06b6(0x1cc)](_0x52190c),shouldSkipOfficialSkill(_0x2c33ca)?console[_0x5f06b6(0x1d3)](a34_0x2aa2ed[_0x5f06b6(0x1a2)](_0x5f06b6(0x1da))):await installOfficialSkill(_0x2c33ca[_0x5f06b6(0x1db)]),{'ok':!![]};}_0x55ab67['info'](getInstallPlanLabel(_0x4cd4fc,_0x3edb77));const _0x49770d=detectPackageManager(),_0x2d6a70=_0x49770d==='npm'?resolveNpmBin(_0x5f06b6(0x1b4)):_0x49770d,_0x24dd83=a34_0x4d735b(_0x5f06b6(0x1c0)+_0x49770d+'...')['start']();try{return await execa(_0x2d6a70,[_0x5f06b6(0x1bb),'-g',NPM_PACKAGE_NAME+'@'+_0x3edb77['version']],{'stdio':_0x5f06b6(0x1e5)}),_0x24dd83[_0x5f06b6(0x1cc)](_0x5f06b6(0x1dd)+_0x3edb77[_0x5f06b6(0x1bd)]),console[_0x5f06b6(0x1d3)](a34_0x2aa2ed['gray']('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),shouldSkipOfficialSkill(_0x2c33ca)?console[_0x5f06b6(0x1d3)](a34_0x2aa2ed['gray']('Skipping\x20official\x20skill\x20package\x20(--no-skills).')):await installOfficialSkill(_0x2c33ca[_0x5f06b6(0x1db)]),{'ok':!![]};}catch(_0x3b7973){return _0x24dd83[_0x5f06b6(0x1b5)]('Update\x20failed'),console[_0x5f06b6(0x1e8)](a34_0x2aa2ed[_0x5f06b6(0x1e9)]('\x20\x20'+_0x3b7973[_0x5f06b6(0x1cf)])),console[_0x5f06b6(0x1d3)](a34_0x2aa2ed[_0x5f06b6(0x1a2)]('\x20\x20Try\x20manually:\x20'+_0x49770d+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x3edb77[_0x5f06b6(0x1bd)])),{'ok':![],'message':_0x3b7973[_0x5f06b6(0x1cf)]};}}export const updateDefinition={'service':a34_0x3c86e9(0x1e3),'command':a34_0x3c86e9(0x19f),'description':a34_0x3c86e9(0x1e6),'risk':a34_0x3c86e9(0x1ce),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- function a35_0x2751(_0x1bcd74,_0x50f027){_0x1bcd74=_0x1bcd74-0x14d;const _0x1a6770=a35_0x1a67();let _0x2751b4=_0x1a6770[_0x1bcd74];return _0x2751b4;}(function(_0x496e8d,_0x596f6f){const _0x1c698f=a35_0x2751,_0x14e326=_0x496e8d();while(!![]){try{const _0x34633b=-parseInt(_0x1c698f(0x14d))/0x1+-parseInt(_0x1c698f(0x156))/0x2*(parseInt(_0x1c698f(0x155))/0x3)+-parseInt(_0x1c698f(0x153))/0x4*(parseInt(_0x1c698f(0x154))/0x5)+parseInt(_0x1c698f(0x152))/0x6+-parseInt(_0x1c698f(0x14e))/0x7+-parseInt(_0x1c698f(0x150))/0x8*(-parseInt(_0x1c698f(0x14f))/0x9)+parseInt(_0x1c698f(0x151))/0xa;if(_0x34633b===_0x596f6f)break;else _0x14e326['push'](_0x14e326['shift']());}catch(_0x1fa808){_0x14e326['push'](_0x14e326['shift']());}}}(a35_0x1a67,0x8f063));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';function a35_0x1a67(){const _0xa9ba72=['5036046XgaMNy','4rMbTjr','4697025nbdjdc','1167lwNXZS','4762iogOIR','58815ZMkSaF','5174246JSHyaS','745038gWBvqi','24qejFOK','21617470aWXkMZ'];a35_0x1a67=function(){return _0xa9ba72;};return a35_0x1a67();}export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x26029e,_0xb6ef46){const _0x1c0e29=a35_0x310c,_0x260749=_0x26029e();while(!![]){try{const _0x1a495a=parseInt(_0x1c0e29(0x182))/0x1+-parseInt(_0x1c0e29(0x187))/0x2*(-parseInt(_0x1c0e29(0x181))/0x3)+parseInt(_0x1c0e29(0x184))/0x4*(parseInt(_0x1c0e29(0x186))/0x5)+parseInt(_0x1c0e29(0x17f))/0x6+-parseInt(_0x1c0e29(0x180))/0x7*(-parseInt(_0x1c0e29(0x185))/0x8)+-parseInt(_0x1c0e29(0x183))/0x9+-parseInt(_0x1c0e29(0x188))/0xa;if(_0x1a495a===_0xb6ef46)break;else _0x260749['push'](_0x260749['shift']());}catch(_0x48faf9){_0x260749['push'](_0x260749['shift']());}}}(a35_0x207e,0xd3e5a));import{codegenSdk}from'../../commands/codegen/sdk.js';function a35_0x310c(_0x330c18,_0x3e0799){_0x330c18=_0x330c18-0x17f;const _0x207efa=a35_0x207e();let _0x310c1d=_0x207efa[_0x330c18];return _0x310c1d;}import{codegenSql}from'../../commands/codegen/sql.js';function a35_0x207e(){const _0xd23cd7=['57AfspYS','336193zeWKJS','3703230sBOdUm','4pQkxFk','176584cMuPfv','7773510BNcEMr','170726gXFXey','36635430PtNkBg','899502Ztoxik','406bcoiUX'];a35_0x207e=function(){return _0xd23cd7;};return a35_0x207e();}export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- function a36_0x3e1a(_0x1dcd33,_0x22110f){_0x1dcd33=_0x1dcd33-0xf4;const _0x183fce=a36_0x183f();let _0x3e1a0e=_0x183fce[_0x1dcd33];return _0x3e1a0e;}const a36_0x223def=a36_0x3e1a;function a36_0x183f(){const _0x1695fb=['name','2941743LOwUDg','127182BeUtSE','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','operation','24590MuzHtM','3327984MMUsNe','code','codegen','skip-imports','276451TBuMOb','sdk','str','130jUqmpC','88IbNyNo','20AFgYBc','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','read','1717ArENIf','appCode','752139bGCiew','string','342OavXZK','Omit\x20import\x20statements\x20from\x20generated\x20code','alias'];a36_0x183f=function(){return _0x1695fb;};return a36_0x183f();}(function(_0x349394,_0x2f89e0){const _0x187d09=a36_0x3e1a,_0x2f7ee4=_0x349394();while(!![]){try{const _0x128cbb=-parseInt(_0x187d09(0x104))/0x1*(parseInt(_0x187d09(0x101))/0x2)+parseInt(_0x187d09(0x10c))/0x3+parseInt(_0x187d09(0xf8))/0x4+parseInt(_0x187d09(0xf7))/0x5*(parseInt(_0x187d09(0x108))/0x6)+parseInt(_0x187d09(0xfc))/0x7*(-parseInt(_0x187d09(0x100))/0x8)+parseInt(_0x187d09(0x106))/0x9*(-parseInt(_0x187d09(0xff))/0xa)+-parseInt(_0x187d09(0xf4))/0xb;if(_0x128cbb===_0x2f89e0)break;else _0x2f7ee4['push'](_0x2f7ee4['shift']());}catch(_0x24b325){_0x2f7ee4['push'](_0x2f7ee4['shift']());}}}(a36_0x183f,0x84a5d));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a36_0x223def(0xfa),'command':a36_0x223def(0xfd),'description':a36_0x223def(0x102),'risk':a36_0x223def(0x103),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x223def(0x10a),'type':a36_0x223def(0x107),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a36_0x223def(0xf6),'type':a36_0x223def(0x107),'required':!![],'description':a36_0x223def(0xf5)},{'name':a36_0x223def(0xfb),'type':'boolean','description':a36_0x223def(0x109)}],async 'execute'(_0x376e85){const _0x5c4e46=a36_0x223def,{dataset:_0x1614bb,operation:_0x45a465}=await getOperationDetail(_0x376e85[_0x5c4e46(0x105)],_0x376e85[_0x5c4e46(0xfe)](_0x5c4e46(0xf9)),_0x376e85[_0x5c4e46(0xfe)]('operation')),_0x1498f7=generateSdkCode(_0x1614bb,_0x45a465,{'includeImports':!_0x376e85['bool'](_0x5c4e46(0xfb))});return{'ok':!![],'data':{'dataset':{'name':_0x1614bb[_0x5c4e46(0x10b)],'code':_0x1614bb[_0x5c4e46(0xf9)],'tableName':_0x1614bb['tableName']},'operation':_0x376e85[_0x5c4e46(0xfe)]('operation'),'code':_0x1498f7}};}};
1
+ const a36_0x237837=a36_0x42dc;(function(_0xe8cd64,_0x4871f4){const _0x1fae31=a36_0x42dc,_0x5f99b=_0xe8cd64();while(!![]){try{const _0x420b85=parseInt(_0x1fae31(0x1bb))/0x1*(-parseInt(_0x1fae31(0x1be))/0x2)+-parseInt(_0x1fae31(0x1c9))/0x3*(parseInt(_0x1fae31(0x1c8))/0x4)+-parseInt(_0x1fae31(0x1bd))/0x5+parseInt(_0x1fae31(0x1b1))/0x6+-parseInt(_0x1fae31(0x1bc))/0x7+parseInt(_0x1fae31(0x1b6))/0x8+parseInt(_0x1fae31(0x1b5))/0x9;if(_0x420b85===_0x4871f4)break;else _0x5f99b['push'](_0x5f99b['shift']());}catch(_0x9d7691){_0x5f99b['push'](_0x5f99b['shift']());}}}(a36_0x517f,0xbec23));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a36_0x42dc(_0xf1a7ff,_0x4a6f9c){_0xf1a7ff=_0xf1a7ff-0x1b1;const _0x517f74=a36_0x517f();let _0x42dcb5=_0x517f74[_0xf1a7ff];return _0x42dcb5;}function a36_0x517f(){const _0x50c280=['str','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','skip-imports','sdk','code','Omit\x20import\x20statements\x20from\x20generated\x20code','name','appCode','32048Gspunh','393xfhgqn','5623986EStQoe','read','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','alias','17541450RtlqqL','10826720rOzVlB','boolean','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','string','operation','2DkRMvf','5737179QYMUIj','7384485NOcRhk','112308jaXIYu','codegen'];a36_0x517f=function(){return _0x50c280;};return a36_0x517f();}export const codegenSdk={'service':a36_0x237837(0x1bf),'command':a36_0x237837(0x1c3),'description':a36_0x237837(0x1b3),'risk':a36_0x237837(0x1b2),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x237837(0x1b4),'type':a36_0x237837(0x1b9),'description':a36_0x237837(0x1c1)},{'name':a36_0x237837(0x1ba),'type':a36_0x237837(0x1b9),'required':!![],'description':a36_0x237837(0x1b8)},{'name':a36_0x237837(0x1c2),'type':a36_0x237837(0x1b7),'description':a36_0x237837(0x1c5)}],async 'execute'(_0x2efcb9){const _0xb410a4=a36_0x237837,{dataset:_0xaacac7,operation:_0x475737}=await getOperationDetail(_0x2efcb9[_0xb410a4(0x1c7)],_0x2efcb9['str'](_0xb410a4(0x1c4)),_0x2efcb9[_0xb410a4(0x1c0)](_0xb410a4(0x1ba))),_0xad1eb6=generateSdkCode(_0xaacac7,_0x475737,{'includeImports':!_0x2efcb9['bool'](_0xb410a4(0x1c2))});return{'ok':!![],'data':{'dataset':{'name':_0xaacac7[_0xb410a4(0x1c6)],'code':_0xaacac7['code'],'tableName':_0xaacac7['tableName']},'operation':_0x2efcb9['str'](_0xb410a4(0x1ba)),'code':_0xad1eb6}};}};
@@ -1 +1 @@
1
- const a37_0x30a29e=a37_0x255c;(function(_0x282c0f,_0x13c4ae){const _0x2a7611=a37_0x255c,_0x1c181c=_0x282c0f();while(!![]){try{const _0x528706=parseInt(_0x2a7611(0xbb))/0x1+parseInt(_0x2a7611(0xc5))/0x2+-parseInt(_0x2a7611(0xb6))/0x3*(-parseInt(_0x2a7611(0xba))/0x4)+parseInt(_0x2a7611(0xc0))/0x5*(-parseInt(_0x2a7611(0xc2))/0x6)+parseInt(_0x2a7611(0xc3))/0x7*(parseInt(_0x2a7611(0xc9))/0x8)+parseInt(_0x2a7611(0xb7))/0x9*(-parseInt(_0x2a7611(0xcc))/0xa)+-parseInt(_0x2a7611(0xb5))/0xb;if(_0x528706===_0x13c4ae)break;else _0x1c181c['push'](_0x1c181c['shift']());}catch(_0x54a1a0){_0x1c181c['push'](_0x1c181c['shift']());}}}(a37_0x3a11,0x8f1e4));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a37_0x3a11(){const _0x588968=['Omit\x20import\x20statements\x20from\x20generated\x20code','sdk','770NCORSA','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','bool','3263964TiJYZu','3aqNBQj','91431yDgoGi','read','codegen','3959276nTqYKq','391172NPROPb','no-imports','string','boolean','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','15tOWhkL','sqlCode','1710204oAXwjk','7457863zFdJJV','str','147762JlzoUr','bff','sqlName','target','8JnZBMB'];a37_0x3a11=function(){return _0x588968;};return a37_0x3a11();}function a37_0x255c(_0x582eb4,_0x4ac5f2){_0x582eb4=_0x582eb4-0xb3;const _0x3a1178=a37_0x3a11();let _0x255cfe=_0x3a1178[_0x582eb4];return _0x255cfe;}export const codegenSql={'service':a37_0x30a29e(0xb9),'command':'sql','description':a37_0x30a29e(0xbf),'risk':a37_0x30a29e(0xb8),'flags':[SQLCODE_FLAG,{'name':a37_0x30a29e(0xc8),'type':a37_0x30a29e(0xbd),'description':a37_0x30a29e(0xb3),'default':'sdk','enum':[a37_0x30a29e(0xcb),a37_0x30a29e(0xc6)]},{'name':a37_0x30a29e(0xbc),'type':a37_0x30a29e(0xbe),'description':a37_0x30a29e(0xca)}],async 'execute'(_0x524764){const _0x2030f7=a37_0x30a29e,_0x375667=await getSqlQueryInfo(_0x524764['appCode'],_0x524764[_0x2030f7(0xc4)]('sqlcode')),_0x54e932=_0x524764[_0x2030f7(0xc4)](_0x2030f7(0xc8))||_0x2030f7(0xcb),_0x5c6a54=generateSqlCodeTemplate(_0x375667,{'target':_0x54e932,'includeImports':!_0x524764[_0x2030f7(0xb4)]('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x375667[_0x2030f7(0xc1)],'sqlName':_0x375667[_0x2030f7(0xc7)],'target':_0x54e932,'code':_0x5c6a54}};}};
1
+ const a37_0x574616=a37_0x5415;(function(_0x13aee6,_0x186cee){const _0x82f6ed=a37_0x5415,_0x535370=_0x13aee6();while(!![]){try{const _0x2bff19=parseInt(_0x82f6ed(0x1f2))/0x1+parseInt(_0x82f6ed(0x1ed))/0x2+parseInt(_0x82f6ed(0x1e7))/0x3+parseInt(_0x82f6ed(0x1de))/0x4*(parseInt(_0x82f6ed(0x1ec))/0x5)+-parseInt(_0x82f6ed(0x1eb))/0x6+-parseInt(_0x82f6ed(0x1e3))/0x7+parseInt(_0x82f6ed(0x1ef))/0x8*(-parseInt(_0x82f6ed(0x1dd))/0x9);if(_0x2bff19===_0x186cee)break;else _0x535370['push'](_0x535370['shift']());}catch(_0x4e8d0f){_0x535370['push'](_0x535370['shift']());}}}(a37_0x1525,0x78a0a));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x574616(0x1e2),'command':'sql','description':a37_0x574616(0x1e9),'risk':'read','flags':[SQLCODE_FLAG,{'name':a37_0x574616(0x1e6),'type':a37_0x574616(0x1e1),'description':a37_0x574616(0x1e5),'default':a37_0x574616(0x1e4),'enum':['sdk','bff']},{'name':'no-imports','type':'boolean','description':a37_0x574616(0x1df)}],async 'execute'(_0x274664){const _0x3415f0=a37_0x574616,_0x1da7b1=await getSqlQueryInfo(_0x274664[_0x3415f0(0x1ea)],_0x274664[_0x3415f0(0x1f1)](_0x3415f0(0x1e8))),_0x18bece=_0x274664['str'](_0x3415f0(0x1e6))||_0x3415f0(0x1e4),_0x41aafa=generateSqlCodeTemplate(_0x1da7b1,{'target':_0x18bece,'includeImports':!_0x274664[_0x3415f0(0x1ee)](_0x3415f0(0x1e0))});return{'ok':!![],'data':{'sqlCode':_0x1da7b1[_0x3415f0(0x1dc)],'sqlName':_0x1da7b1[_0x3415f0(0x1f0)],'target':_0x18bece,'code':_0x41aafa}};}};function a37_0x5415(_0x525194,_0x212eb6){_0x525194=_0x525194-0x1dc;const _0x1525ed=a37_0x1525();let _0x5415c2=_0x1525ed[_0x525194];return _0x5415c2;}function a37_0x1525(){const _0x5f1587=['Code\x20target:\x20sdk\x20(default)\x20or\x20bff','target','208722EbhYRA','sqlcode','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','appCode','2514126aitBjw','2624465HwVdBm','712660AMGIug','bool','479984bIhPMd','sqlName','str','906942kcWnCe','sqlCode','36Ajldjb','4OZtkSU','Omit\x20import\x20statements\x20from\x20generated\x20code','no-imports','string','codegen','4932452eDFATs','sdk'];a37_0x1525=function(){return _0x5f1587;};return a37_0x1525();}
@@ -1 +1 @@
1
- (function(_0x22ed83,_0x47712b){const _0x610a13=a38_0x271c,_0x5cde46=_0x22ed83();while(!![]){try{const _0x5ea6d8=parseInt(_0x610a13(0x120))/0x1+parseInt(_0x610a13(0x126))/0x2*(parseInt(_0x610a13(0x13a))/0x3)+parseInt(_0x610a13(0x133))/0x4*(parseInt(_0x610a13(0x138))/0x5)+parseInt(_0x610a13(0x119))/0x6*(-parseInt(_0x610a13(0x11b))/0x7)+-parseInt(_0x610a13(0x12d))/0x8*(-parseInt(_0x610a13(0x129))/0x9)+-parseInt(_0x610a13(0x125))/0xa*(-parseInt(_0x610a13(0x13d))/0xb)+parseInt(_0x610a13(0x11e))/0xc*(-parseInt(_0x610a13(0x118))/0xd);if(_0x5ea6d8===_0x47712b)break;else _0x5cde46['push'](_0x5cde46['shift']());}catch(_0x46bdb3){_0x5cde46['push'](_0x5cde46['shift']());}}}(a38_0x5cb8,0x9547f));import{input,checkbox,select}from'@inquirer/prompts';function a38_0x271c(_0x121fb6,_0x39f149){_0x121fb6=_0x121fb6-0x118;const _0x5cb805=a38_0x5cb8();let _0x271ca0=_0x5cb805[_0x121fb6];return _0x271ca0;}import a38_0x55193d from'chalk';function a38_0x5cb8(){const _0x4476b9=['(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','456710IFrLAd','gray','11076mRCHzX','\x0a无法获取远程应用列表,请手动输入。','appName','22oLblkU','skip','\x20\x20(','689XXLphL','24nqSSre','✎\x20自定义输入\x20appcode','618877VLsarn','custom','length','353952ZbCXxk','yellow','195852cJVEkl','message','正在获取可用应用列表...','\x0a未找到可用应用。','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','1085410cuxGWP','512ysnsMH','获取到\x20','(跳过,稍后配置)','66681mmzLlc','cyan','请输入\x20App\x20Code:','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','376sxUUrk','appCode','map','Invalid\x20App\x20Code','✎\x20手动输入','find','36ambWPv','未找到可用应用。','请选择要绑定的应用:','valid'];a38_0x5cb8=function(){return _0x4476b9;};return a38_0x5cb8();}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 _0x5edbf2=a38_0x271c,_0x10b04a=await input({'message':_0x5edbf2(0x12b),'validate':_0x4d5cd2=>{const _0x5cda88=_0x5edbf2,_0x29ae80=validateAppcode(_0x4d5cd2['trim']());return _0x29ae80[_0x5cda88(0x136)]||_0x29ae80[_0x5cda88(0x121)]||_0x5cda88(0x130);}});return _0x10b04a['trim']();}export async function promptAppSelection(_0x3b10e7){const _0x1e1bc8=a38_0x271c,_0x216f14=[{'name':a38_0x55193d['yellow']('✎\x20自定义输入\x20appcode'),'value':-0x1},..._0x3b10e7[_0x1e1bc8(0x12f)]((_0x5935f7,_0x555bc3)=>({'name':_0x5935f7[_0x1e1bc8(0x13c)]+'\x20\x20'+a38_0x55193d[_0x1e1bc8(0x139)]('('+_0x5935f7[_0x1e1bc8(0x12e)]+')'),'value':_0x555bc3}))],_0x357b9f=await checkbox({'message':_0x1e1bc8(0x127)+a38_0x55193d[_0x1e1bc8(0x12a)](_0x3b10e7[_0x1e1bc8(0x11d)])+_0x1e1bc8(0x12c),'choices':_0x216f14,'loop':![]});if(_0x357b9f['includes'](-0x1))return'custom';if(_0x357b9f[_0x1e1bc8(0x11d)]===0x0)return _0x1e1bc8(0x11c);return _0x357b9f[_0x1e1bc8(0x12f)](_0x27a1e6=>_0x3b10e7[_0x27a1e6]);}export async function promptSingleAppSelection(_0x57bff5){const _0x28ee33=a38_0x271c,_0x22e90d=[{'name':a38_0x55193d['gray'](_0x28ee33(0x124)),'value':_0x28ee33(0x13e)},{'name':a38_0x55193d[_0x28ee33(0x11f)](_0x28ee33(0x11a)),'value':_0x28ee33(0x11c)},..._0x57bff5[_0x28ee33(0x12f)](_0x32569a=>({'name':_0x32569a[_0x28ee33(0x13c)]+'\x20\x20'+a38_0x55193d[_0x28ee33(0x139)]('('+_0x32569a[_0x28ee33(0x12e)]+')'),'value':_0x32569a[_0x28ee33(0x12e)]}))],_0x3f5260=await select({'message':_0x28ee33(0x135),'choices':_0x22e90d});if(_0x3f5260===_0x28ee33(0x13e))return _0x28ee33(0x13e);if(_0x3f5260===_0x28ee33(0x11c))return _0x28ee33(0x11c);return _0x57bff5[_0x28ee33(0x132)](_0x587313=>_0x587313[_0x28ee33(0x12e)]===_0x3f5260);}export async function selectSingleAppcode(_0x4e7ef2){const _0x1399f8=a38_0x271c;if(!_0x4e7ef2)return writeCliSideChannelLine(a38_0x55193d[_0x1399f8(0x139)](_0x1399f8(0x137))),_fallbackOrSkip();writeCliSideChannelLine(_0x1399f8(0x122));let _0x29628e;try{_0x29628e=await withActiveCookie(_0x4e7ef2,()=>listRemoteApps());}catch(_0x32e100){writeCliSideChannelLine(a38_0x55193d[_0x1399f8(0x11f)]('无法获取远程应用列表,请手动输入。'));if(_0x32e100 instanceof Error)writeCliSideChannelLine(a38_0x55193d[_0x1399f8(0x139)](_0x1399f8(0x13f)+_0x32e100['message']+')'));return _fallbackOrSkip();}if(_0x29628e[_0x1399f8(0x11d)]===0x0)return writeCliSideChannelLine(a38_0x55193d[_0x1399f8(0x11f)](_0x1399f8(0x134))),_fallbackOrSkip();const _0x36ed03=await promptSingleAppSelection(_0x29628e);if(_0x36ed03===_0x1399f8(0x13e))return'';if(_0x36ed03===_0x1399f8(0x11c))return promptCustomAppcode();return _0x36ed03[_0x1399f8(0x12e)];}export async function selectMultipleApps(_0x5461ab){const _0x3d4aa5=a38_0x271c;writeCliSideChannelLine(_0x3d4aa5(0x122));let _0x2001c8;try{_0x2001c8=await withActiveCookie(_0x5461ab,()=>listRemoteApps());}catch(_0x55af8e){writeCliSideChannelLine(_0x3d4aa5(0x13b));if(_0x55af8e instanceof Error)writeCliSideChannelLine('\x20\x20('+_0x55af8e[_0x3d4aa5(0x121)]+')');return'custom';}if(_0x2001c8[_0x3d4aa5(0x11d)]===0x0)return writeCliSideChannelLine(_0x3d4aa5(0x123)),_0x3d4aa5(0x11c);return promptAppSelection(_0x2001c8);}async function _fallbackOrSkip(){const _0x493a58=a38_0x271c,_0x358f7d=await select({'message':'App\x20Code:','choices':[{'name':a38_0x55193d[_0x493a58(0x139)](_0x493a58(0x128)),'value':_0x493a58(0x13e)},{'name':a38_0x55193d['yellow'](_0x493a58(0x131)),'value':'manual'}]});if(_0x358f7d===_0x493a58(0x13e))return'';return promptCustomAppcode();}
1
+ (function(_0x320d96,_0x3f43da){const _0x108943=a38_0x5baf,_0x49b18b=_0x320d96();while(!![]){try{const _0x5394ab=-parseInt(_0x108943(0x1a6))/0x1*(-parseInt(_0x108943(0x1a1))/0x2)+-parseInt(_0x108943(0x19c))/0x3*(parseInt(_0x108943(0x19b))/0x4)+parseInt(_0x108943(0x1b7))/0x5*(parseInt(_0x108943(0x1a5))/0x6)+-parseInt(_0x108943(0x1b0))/0x7+-parseInt(_0x108943(0x1ab))/0x8+parseInt(_0x108943(0x1a3))/0x9*(-parseInt(_0x108943(0x1b3))/0xa)+parseInt(_0x108943(0x192))/0xb*(parseInt(_0x108943(0x1b5))/0xc);if(_0x5394ab===_0x3f43da)break;else _0x49b18b['push'](_0x49b18b['shift']());}catch(_0x161d7f){_0x49b18b['push'](_0x49b18b['shift']());}}}(a38_0x25c2,0x2dd11));import{input,checkbox,select}from'@inquirer/prompts';function a38_0x25c2(){const _0x5dee2d=['正在获取可用应用列表...','✎\x20自定义输入\x20appcode','266370NHGxXh','skip','300lDDPwS','appCode','1283020PIPPim','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','获取到\x20','199397uhyZbU','App\x20Code:','请选择要绑定的应用:','message','map','\x0a未找到可用应用。','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','includes','Invalid\x20App\x20Code','1344824AuikGc','3swqyiR','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','trim','✎\x20手动输入','\x0a无法获取远程应用列表,请手动输入。','709906ILHENv','appName','99EfWBvT','custom','6LIEJoU','1JuwxyT','请输入\x20App\x20Code:','gray','find','(跳过,稍后配置)','496456uhLHgN','\x20\x20(','length','manual','yellow','1300579bPFXSV'];a38_0x25c2=function(){return _0x5dee2d;};return a38_0x25c2();}function a38_0x5baf(_0x4859eb,_0x4ee2ab){_0x4859eb=_0x4859eb-0x192;const _0x25c2b3=a38_0x25c2();let _0x5baf11=_0x25c2b3[_0x4859eb];return _0x5baf11;}import a38_0x8c87a2 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 _0x28d75f=a38_0x5baf,_0x39a95d=await input({'message':_0x28d75f(0x1a7),'validate':_0x92ae58=>{const _0x541ba6=_0x28d75f,_0x18fae8=validateAppcode(_0x92ae58['trim']());return _0x18fae8['valid']||_0x18fae8['message']||_0x541ba6(0x19a);}});return _0x39a95d[_0x28d75f(0x19e)]();}export async function promptAppSelection(_0x374b0f){const _0x4b4483=a38_0x5baf,_0x1711a1=[{'name':a38_0x8c87a2[_0x4b4483(0x1af)](_0x4b4483(0x1b2)),'value':-0x1},..._0x374b0f['map']((_0x310dbe,_0x30d00f)=>({'name':_0x310dbe[_0x4b4483(0x1a2)]+'\x20\x20'+a38_0x8c87a2['gray']('('+_0x310dbe['appCode']+')'),'value':_0x30d00f}))],_0xd45433=await checkbox({'message':_0x4b4483(0x1b9)+a38_0x8c87a2['cyan'](_0x374b0f['length'])+_0x4b4483(0x19d),'choices':_0x1711a1,'loop':![]});if(_0xd45433[_0x4b4483(0x199)](-0x1))return'custom';if(_0xd45433[_0x4b4483(0x1ad)]===0x0)return _0x4b4483(0x1a4);return _0xd45433[_0x4b4483(0x196)](_0x2e3a69=>_0x374b0f[_0x2e3a69]);}export async function promptSingleAppSelection(_0xa36520){const _0x33652a=a38_0x5baf,_0x591ee8=[{'name':a38_0x8c87a2['gray'](_0x33652a(0x1b8)),'value':_0x33652a(0x1b4)},{'name':a38_0x8c87a2['yellow'](_0x33652a(0x1b2)),'value':_0x33652a(0x1a4)},..._0xa36520[_0x33652a(0x196)](_0x21a00b=>({'name':_0x21a00b[_0x33652a(0x1a2)]+'\x20\x20'+a38_0x8c87a2['gray']('('+_0x21a00b[_0x33652a(0x1b6)]+')'),'value':_0x21a00b[_0x33652a(0x1b6)]}))],_0x1cee2c=await select({'message':_0x33652a(0x194),'choices':_0x591ee8});if(_0x1cee2c===_0x33652a(0x1b4))return _0x33652a(0x1b4);if(_0x1cee2c===_0x33652a(0x1a4))return _0x33652a(0x1a4);return _0xa36520[_0x33652a(0x1a9)](_0x52e73a=>_0x52e73a['appCode']===_0x1cee2c);}export async function selectSingleAppcode(_0x122776){const _0x16762b=a38_0x5baf;if(!_0x122776)return writeCliSideChannelLine(a38_0x8c87a2[_0x16762b(0x1a8)](_0x16762b(0x198))),_fallbackOrSkip();writeCliSideChannelLine(_0x16762b(0x1b1));let _0x367eb4;try{_0x367eb4=await withActiveCookie(_0x122776,()=>listRemoteApps());}catch(_0x232926){writeCliSideChannelLine(a38_0x8c87a2[_0x16762b(0x1af)]('无法获取远程应用列表,请手动输入。'));if(_0x232926 instanceof Error)writeCliSideChannelLine(a38_0x8c87a2[_0x16762b(0x1a8)](_0x16762b(0x1ac)+_0x232926[_0x16762b(0x195)]+')'));return _fallbackOrSkip();}if(_0x367eb4[_0x16762b(0x1ad)]===0x0)return writeCliSideChannelLine(a38_0x8c87a2['yellow']('未找到可用应用。')),_fallbackOrSkip();const _0x1f732c=await promptSingleAppSelection(_0x367eb4);if(_0x1f732c==='skip')return'';if(_0x1f732c===_0x16762b(0x1a4))return promptCustomAppcode();return _0x1f732c['appCode'];}export async function selectMultipleApps(_0x18695d){const _0x480669=a38_0x5baf;writeCliSideChannelLine(_0x480669(0x1b1));let _0x5d565c;try{_0x5d565c=await withActiveCookie(_0x18695d,()=>listRemoteApps());}catch(_0x3fce66){writeCliSideChannelLine(_0x480669(0x1a0));if(_0x3fce66 instanceof Error)writeCliSideChannelLine(_0x480669(0x1ac)+_0x3fce66[_0x480669(0x195)]+')');return'custom';}if(_0x5d565c[_0x480669(0x1ad)]===0x0)return writeCliSideChannelLine(_0x480669(0x197)),'custom';return promptAppSelection(_0x5d565c);}async function _fallbackOrSkip(){const _0x4c2a2=a38_0x5baf,_0x2e73a3=await select({'message':_0x4c2a2(0x193),'choices':[{'name':a38_0x8c87a2[_0x4c2a2(0x1a8)](_0x4c2a2(0x1aa)),'value':'skip'},{'name':a38_0x8c87a2[_0x4c2a2(0x1af)](_0x4c2a2(0x19f)),'value':_0x4c2a2(0x1ae)}]});if(_0x2e73a3===_0x4c2a2(0x1b4))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a39_0x337b14=a39_0x4753;(function(_0x4c46c1,_0x2e06b5){const _0x180f97=a39_0x4753,_0xd92b66=_0x4c46c1();while(!![]){try{const _0x159a05=parseInt(_0x180f97(0x1b4))/0x1+parseInt(_0x180f97(0x1ac))/0x2*(-parseInt(_0x180f97(0x1ab))/0x3)+-parseInt(_0x180f97(0x1b7))/0x4*(parseInt(_0x180f97(0x1a4))/0x5)+parseInt(_0x180f97(0x1a8))/0x6*(parseInt(_0x180f97(0x1b3))/0x7)+-parseInt(_0x180f97(0x1a3))/0x8*(parseInt(_0x180f97(0x1a0))/0x9)+-parseInt(_0x180f97(0x1af))/0xa*(-parseInt(_0x180f97(0x1aa))/0xb)+-parseInt(_0x180f97(0x1a7))/0xc*(parseInt(_0x180f97(0x1b8))/0xd);if(_0x159a05===_0x2e06b5)break;else _0xd92b66['push'](_0xd92b66['shift']());}catch(_0x19db9d){_0xd92b66['push'](_0xd92b66['shift']());}}}(a39_0x1a2c,0xed1b6));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x337b14(0x1a6)};export const CODE_FLAG={'name':a39_0x337b14(0x1a9),'type':a39_0x337b14(0x19f),'required':!![],'description':a39_0x337b14(0x1a5),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x337b14(0x1b6),'description':a39_0x337b14(0x1a5)};export const SQLCODE_FLAG={'name':a39_0x337b14(0x1ad),'type':a39_0x337b14(0x19f),'required':!![],'description':a39_0x337b14(0x1a1),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x337b14(0x1b5)}};function a39_0x4753(_0x20d677,_0x3cad8b){_0x20d677=_0x20d677-0x19f;const _0x1a2cd0=a39_0x1a2c();let _0x475377=_0x1a2cd0[_0x20d677];return _0x475377;}export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':a39_0x337b14(0x19f),'required':![],'description':a39_0x337b14(0x1b9)};function a39_0x1a2c(){const _0x1bf3ca=['dbtype','Database\x20product\x20type','25641gKUROa','19929iBVnGs','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','datasetcode','4KvGIlL','169rLbMQM','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','string','7072713KIvvmF','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','number','8jLwOQg','337265fXWTwh','Dataset\x20code\x20(32-char\x20hex\x20UUID)','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','116484phfTAk','1434YwkftB','code','11WFXYBW','381594UJfCEV','6Ypxbls','sqlcode','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','14368990zZSlQe','MYSQL'];a39_0x1a2c=function(){return _0x1bf3ca;};return a39_0x1a2c();}export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a39_0x337b14(0x1a2),'required':!![],'description':a39_0x337b14(0x1ae)};export const DB_TYPE_FLAG={'name':a39_0x337b14(0x1b1),'type':a39_0x337b14(0x19f),'required':!![],'description':a39_0x337b14(0x1b2),'enum':[a39_0x337b14(0x1b0),'POSTGRESQL']};
1
+ const a39_0x5974a6=a39_0x4eb5;(function(_0x479ad0,_0x4cdd8c){const _0x1b9fb9=a39_0x4eb5,_0x5813a8=_0x479ad0();while(!![]){try{const _0x2b288c=parseInt(_0x1b9fb9(0x19b))/0x1+-parseInt(_0x1b9fb9(0x19c))/0x2*(-parseInt(_0x1b9fb9(0x195))/0x3)+parseInt(_0x1b9fb9(0x192))/0x4+-parseInt(_0x1b9fb9(0x191))/0x5+-parseInt(_0x1b9fb9(0x18b))/0x6+parseInt(_0x1b9fb9(0x18e))/0x7+-parseInt(_0x1b9fb9(0x19a))/0x8;if(_0x2b288c===_0x4cdd8c)break;else _0x5813a8['push'](_0x5813a8['shift']());}catch(_0x56cd4e){_0x5813a8['push'](_0x5813a8['shift']());}}}(a39_0x5569,0x91adf));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x5974a6(0x196)};export const CODE_FLAG={'name':a39_0x5974a6(0x18f),'type':a39_0x5974a6(0x18d),'required':!![],'description':a39_0x5974a6(0x190),'pattern':DATASET_CODE_PATTERN};function a39_0x4eb5(_0x1e5318,_0x59702f){_0x1e5318=_0x1e5318-0x189;const _0x5569fa=a39_0x5569();let _0x4eb5a6=_0x5569fa[_0x1e5318];return _0x4eb5a6;}export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x5974a6(0x197),'description':a39_0x5974a6(0x190)};function a39_0x5569(){const _0x1261e7=['dbtype','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','3391506gWoDgY','number','string','5008815JNhKaF','code','Dataset\x20code\x20(32-char\x20hex\x20UUID)','3162040SgNVoN','2102448PhXEYA','appcode','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','1522284RAtEcC','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','datasetcode','MYSQL','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','7794952gZcqfl','512718QYzqxz','4xdzVEq'];a39_0x5569=function(){return _0x1261e7;};return a39_0x5569();}export const SQLCODE_FLAG={'name':'sqlcode','type':'string','required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x5974a6(0x194)}};export const APPCODE_FLAG_OPTIONAL={'name':a39_0x5974a6(0x193),'type':a39_0x5974a6(0x18d),'required':![],'description':a39_0x5974a6(0x18a)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a39_0x5974a6(0x18c),'required':!![],'description':a39_0x5974a6(0x199)};export const DB_TYPE_FLAG={'name':a39_0x5974a6(0x189),'type':a39_0x5974a6(0x18d),'required':!![],'description':'Database\x20product\x20type','enum':[a39_0x5974a6(0x198),'POSTGRESQL']};
@@ -1 +1 @@
1
- function a40_0x2f25(){const _0x356979=['test','1410438komQjr','2agrzzB','App\x20Code\x20cannot\x20exceed\x20100\x20characters','15119709eMxSEO','5804228TLIfQu','App\x20Code\x20cannot\x20be\x20empty','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','4067810LAuvlE','5pFTczy','27fzIqNE','trim','3474189EFkPbi','777272lMqBvb','98322wGlipK','14hBmKOz'];a40_0x2f25=function(){return _0x356979;};return a40_0x2f25();}function a40_0x5ded(_0x276811,_0x4b47d9){_0x276811=_0x276811-0xca;const _0x2f2516=a40_0x2f25();let _0x5ded79=_0x2f2516[_0x276811];return _0x5ded79;}(function(_0x3ae04d,_0x5157b9){const _0x2cb789=a40_0x5ded,_0x58d11d=_0x3ae04d();while(!![]){try{const _0x2a8139=parseInt(_0x2cb789(0xce))/0x1+-parseInt(_0x2cb789(0xd2))/0x2*(-parseInt(_0x2cb789(0xcc))/0x3)+parseInt(_0x2cb789(0xd5))/0x4*(parseInt(_0x2cb789(0xd9))/0x5)+-parseInt(_0x2cb789(0xd1))/0x6*(parseInt(_0x2cb789(0xcf))/0x7)+parseInt(_0x2cb789(0xcd))/0x8*(parseInt(_0x2cb789(0xca))/0x9)+-parseInt(_0x2cb789(0xd8))/0xa+-parseInt(_0x2cb789(0xd4))/0xb;if(_0x2a8139===_0x5157b9)break;else _0x58d11d['push'](_0x58d11d['shift']());}catch(_0x2c414e){_0x58d11d['push'](_0x58d11d['shift']());}}}(a40_0x2f25,0xb67d1));export function validateAppcode(_0x582f2e){const _0x5ee49c=a40_0x5ded,_0x192621=_0x582f2e[_0x5ee49c(0xcb)]();if(!_0x192621)return{'valid':![],'message':_0x5ee49c(0xd6)};if(_0x192621['length']>0x64)return{'valid':![],'message':_0x5ee49c(0xd3)};if(!/^[A-Za-z0-9_-]+$/[_0x5ee49c(0xd0)](_0x192621))return{'valid':![],'message':_0x5ee49c(0xd7)};return{'valid':!![]};}
1
+ function a40_0xef77(_0x1fdfb9,_0x3c89c0){_0x1fdfb9=_0x1fdfb9-0x137;const _0x79ceea=a40_0x79ce();let _0xef778=_0x79ceea[_0x1fdfb9];return _0xef778;}(function(_0x295e63,_0x34c055){const _0x55a00e=a40_0xef77,_0x4170d9=_0x295e63();while(!![]){try{const _0x4e3ebb=-parseInt(_0x55a00e(0x13f))/0x1+parseInt(_0x55a00e(0x142))/0x2*(-parseInt(_0x55a00e(0x13c))/0x3)+-parseInt(_0x55a00e(0x138))/0x4*(-parseInt(_0x55a00e(0x141))/0x5)+parseInt(_0x55a00e(0x13b))/0x6*(-parseInt(_0x55a00e(0x137))/0x7)+-parseInt(_0x55a00e(0x146))/0x8*(-parseInt(_0x55a00e(0x143))/0x9)+-parseInt(_0x55a00e(0x144))/0xa+parseInt(_0x55a00e(0x13e))/0xb*(parseInt(_0x55a00e(0x13d))/0xc);if(_0x4e3ebb===_0x34c055)break;else _0x4170d9['push'](_0x4170d9['shift']());}catch(_0x239a83){_0x4170d9['push'](_0x4170d9['shift']());}}}(a40_0x79ce,0x7aecd));export function validateAppcode(_0x4c4c65){const _0x2c9df3=a40_0xef77,_0xd04dc2=_0x4c4c65[_0x2c9df3(0x13a)]();if(!_0xd04dc2)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0xd04dc2['length']>0x64)return{'valid':![],'message':_0x2c9df3(0x145)};if(!/^[A-Za-z0-9_-]+$/[_0x2c9df3(0x139)](_0xd04dc2))return{'valid':![],'message':_0x2c9df3(0x140)};return{'valid':!![]};}function a40_0x79ce(){const _0x2a83f6=['Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','26745gqYEnF','20028Sfaedm','18AwCHrB','1206940zLDRzA','App\x20Code\x20cannot\x20exceed\x20100\x20characters','1148168SvuAuE','1071063jqWlCD','348AqYQBv','test','trim','12loDDRy','117ljYjpV','11803092hRoKtb','11DIRnix','415237QJUROn'];a40_0x79ce=function(){return _0x2a83f6;};return a40_0x79ce();}
@@ -1 +1 @@
1
- function a41_0x2ce9(_0x1f3c96,_0x46eb2a){_0x1f3c96=_0x1f3c96-0x1bf;const _0x4eb102=a41_0x4eb1();let _0x2ce97c=_0x4eb102[_0x1f3c96];return _0x2ce97c;}const a41_0x36813d=a41_0x2ce9;(function(_0x521cc1,_0x30b8d7){const _0x243ea9=a41_0x2ce9,_0x4a671c=_0x521cc1();while(!![]){try{const _0x2cc3a1=parseInt(_0x243ea9(0x1c7))/0x1*(parseInt(_0x243ea9(0x1d2))/0x2)+-parseInt(_0x243ea9(0x1c6))/0x3*(parseInt(_0x243ea9(0x1c4))/0x4)+parseInt(_0x243ea9(0x1c8))/0x5*(parseInt(_0x243ea9(0x1c2))/0x6)+-parseInt(_0x243ea9(0x1c3))/0x7*(parseInt(_0x243ea9(0x1c0))/0x8)+-parseInt(_0x243ea9(0x1c1))/0x9+-parseInt(_0x243ea9(0x1d0))/0xa*(-parseInt(_0x243ea9(0x1d1))/0xb)+parseInt(_0x243ea9(0x1d6))/0xc*(-parseInt(_0x243ea9(0x1cb))/0xd);if(_0x2cc3a1===_0x30b8d7)break;else _0x4a671c['push'](_0x4a671c['shift']());}catch(_0x3a7ce9){_0x4a671c['push'](_0x4a671c['shift']());}}}(a41_0x4eb1,0x8b114));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';function a41_0x4eb1(){const _0x53b023=['4176498nIoDsG','23618FeceNJ','4tQjtUN','Missing\x20key.','397041vILTja','31ngaXLQ','5VRNlVo','config','Key\x20not\x20found:\x20','4565210nOnivZ','Usage:\x20','key','string','read','1405710VWPRyZ','77XEEqWc','41270EHzDvZ','validation','Get\x20a\x20config\x20value\x20by\x20key','object','24beTaGE','appcode','2056ftXFPU','435060CReeQH'];a41_0x4eb1=function(){return _0x53b023;};return a41_0x4eb1();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x558243){const _0x22b1f1=a41_0x2ce9,_0x5ae8d1=_0x558243['str'](_0x22b1f1(0x1cd));if(!_0x5ae8d1)throw CliErrors[_0x22b1f1(0x1d3)](_0x22b1f1(0x1c5),_0x22b1f1(0x1cc)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x3f8b3d=readConfig(),_0x3a58fa=_0x5ae8d1==='app'?_0x22b1f1(0x1bf):_0x5ae8d1,_0x123777=_0x3f8b3d[_0x3a58fa];if(_0x123777===undefined)throw CliErrors[_0x22b1f1(0x1d3)](_0x22b1f1(0x1ca)+_0x5ae8d1);return{'ok':!![],'data':typeof _0x123777==='object'?_0x123777:{[_0x3a58fa]:_0x123777},'message':typeof _0x123777===_0x22b1f1(0x1d5)?undefined:String(_0x123777)};}export const configGetDefinition={'service':a41_0x36813d(0x1c9),'command':'get','description':a41_0x36813d(0x1d4),'risk':a41_0x36813d(0x1cf),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a41_0x36813d(0x1ce),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a41_0x3bc14f=a41_0x44e3;(function(_0xd3f570,_0x18bd55){const _0x5b7acc=a41_0x44e3,_0x5f42f0=_0xd3f570();while(!![]){try{const _0x1d5e67=-parseInt(_0x5b7acc(0x1ee))/0x1+parseInt(_0x5b7acc(0x1db))/0x2*(-parseInt(_0x5b7acc(0x1e2))/0x3)+-parseInt(_0x5b7acc(0x1f1))/0x4*(parseInt(_0x5b7acc(0x1e0))/0x5)+parseInt(_0x5b7acc(0x1ec))/0x6*(-parseInt(_0x5b7acc(0x1e3))/0x7)+-parseInt(_0x5b7acc(0x1f0))/0x8+-parseInt(_0x5b7acc(0x1e5))/0x9+parseInt(_0x5b7acc(0x1e8))/0xa*(parseInt(_0x5b7acc(0x1e9))/0xb);if(_0x1d5e67===_0x18bd55)break;else _0x5f42f0['push'](_0x5f42f0['shift']());}catch(_0x408dce){_0x5f42f0['push'](_0x5f42f0['shift']());}}}(a41_0x79ba,0xd24b9));import{CliErrors}from'../../errors.js';function a41_0x79ba(){const _0x1be0bd=['2138MnqPJC','Get\x20a\x20config\x20value\x20by\x20key','app','Key\x20not\x20found:\x20','key','5470yZWArA','str','1185TGUzvM','3976CaZAXE','validation','11720727bcrSar','object','appcode','10gZKTKb','68497473hkDEwd','get','config','1362hJEhRB','string','1699375DxAQDW','Missing\x20key.','788056fVGaJy','6268HUrUMb','Usage:\x20','read'];a41_0x79ba=function(){return _0x1be0bd;};return a41_0x79ba();}import{readConfig}from'../../utils/config.js';function a41_0x44e3(_0x3d3d9e,_0x1b8403){_0x3d3d9e=_0x3d3d9e-0x1db;const _0x79ba50=a41_0x79ba();let _0x44e39b=_0x79ba50[_0x3d3d9e];return _0x44e39b;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x2a3fda){const _0x864c78=a41_0x44e3,_0x43d063=_0x2a3fda[_0x864c78(0x1e1)](_0x864c78(0x1df));if(!_0x43d063)throw CliErrors[_0x864c78(0x1e4)](_0x864c78(0x1ef),_0x864c78(0x1f2)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x34f383=readConfig(),_0x5308b0=_0x43d063===_0x864c78(0x1dd)?_0x864c78(0x1e7):_0x43d063,_0x72ef6f=_0x34f383[_0x5308b0];if(_0x72ef6f===undefined)throw CliErrors[_0x864c78(0x1e4)](_0x864c78(0x1de)+_0x43d063);return{'ok':!![],'data':typeof _0x72ef6f==='object'?_0x72ef6f:{[_0x5308b0]:_0x72ef6f},'message':typeof _0x72ef6f===_0x864c78(0x1e6)?undefined:String(_0x72ef6f)};}export const configGetDefinition={'service':a41_0x3bc14f(0x1eb),'command':a41_0x3bc14f(0x1ea),'description':a41_0x3bc14f(0x1dc),'risk':a41_0x3bc14f(0x1f3),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x3bc14f(0x1df),'type':a41_0x3bc14f(0x1ed),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- function a42_0x332d(){const _0x49b4b5=['32488YxNzKB','9693260LMymbe','224399CMZpuS','3FNZYJX','473830GlhfIb','20327230QFlPkF','216jlXekZ','4NJvrKV','1837936oOXpuZ','24bMkzDW','7246695iXoTkQ'];a42_0x332d=function(){return _0x49b4b5;};return a42_0x332d();}(function(_0x48b3b8,_0xf34c1f){const _0x4621d3=a42_0x24a5,_0xff85c=_0x48b3b8();while(!![]){try{const _0x5956e1=-parseInt(_0x4621d3(0xc2))/0x1+parseInt(_0x4621d3(0xc6))/0x2*(parseInt(_0x4621d3(0xcc))/0x3)+parseInt(_0x4621d3(0xc5))/0x4*(parseInt(_0x4621d3(0xc8))/0x5)+parseInt(_0x4621d3(0xc7))/0x6*(-parseInt(_0x4621d3(0xcb))/0x7)+parseInt(_0x4621d3(0xc9))/0x8*(parseInt(_0x4621d3(0xc4))/0x9)+parseInt(_0x4621d3(0xca))/0xa+-parseInt(_0x4621d3(0xc3))/0xb;if(_0x5956e1===_0xf34c1f)break;else _0xff85c['push'](_0xff85c['shift']());}catch(_0x2845e1){_0xff85c['push'](_0xff85c['shift']());}}}(a42_0x332d,0xf0815));import{configListDefinition}from'../../commands/config/list.js';function a42_0x24a5(_0x4a9ccc,_0x495f04){_0x4a9ccc=_0x4a9ccc-0xc2;const _0x332d05=a42_0x332d();let _0x24a515=_0x332d05[_0x4a9ccc];return _0x24a515;}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x5e1f6b,_0x3c579f){const _0x244c4b=a42_0x2c72,_0x425410=_0x5e1f6b();while(!![]){try{const _0x2b1dbc=-parseInt(_0x244c4b(0x103))/0x1+parseInt(_0x244c4b(0x107))/0x2+parseInt(_0x244c4b(0x10a))/0x3+-parseInt(_0x244c4b(0x109))/0x4*(-parseInt(_0x244c4b(0x104))/0x5)+-parseInt(_0x244c4b(0x101))/0x6*(-parseInt(_0x244c4b(0x108))/0x7)+parseInt(_0x244c4b(0x106))/0x8*(parseInt(_0x244c4b(0x105))/0x9)+-parseInt(_0x244c4b(0x102))/0xa;if(_0x2b1dbc===_0x3c579f)break;else _0x425410['push'](_0x425410['shift']());}catch(_0x1623db){_0x425410['push'](_0x425410['shift']());}}}(a42_0xb5f1,0xd2e6b));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a42_0xb5f1(){const _0x73d4db=['3359391GjYyFl','15810CvSsFc','9328670wSGAdr','910739YDwuty','1145RzjMsD','81EiLDkM','392376IxGXOY','723708hXOtqX','805ekhPOS','8408ZazsWJ'];a42_0xb5f1=function(){return _0x73d4db;};return a42_0xb5f1();}function a42_0x2c72(_0x433f74,_0xbfabdd){_0x433f74=_0x433f74-0x101;const _0xb5f13=a42_0xb5f1();let _0x2c72b6=_0xb5f13[_0x433f74];return _0x2c72b6;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- const a43_0x475f7a=a43_0x2a04;function a43_0x2a04(_0x43b45f,_0x33d02c){_0x43b45f=_0x43b45f-0x7c;const _0x4c043e=a43_0x4c04();let _0x2a04ff=_0x4c043e[_0x43b45f];return _0x2a04ff;}function a43_0x4c04(){const _0x4c206e=['Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','1128397cwKpQm','read','8672154pmMyro','2OkHYSR','global','8GwNjvI','1885276OzVkOU','414015XDCUVp','1829425ybLLFg','config','33715512lrAwHW','6880559Jrrglp','bool'];a43_0x4c04=function(){return _0x4c206e;};return a43_0x4c04();}(function(_0x6206a1,_0x4c8df1){const _0xf87fe8=a43_0x2a04,_0x2c460f=_0x6206a1();while(!![]){try{const _0x44d535=-parseInt(_0xf87fe8(0x7e))/0x1*(parseInt(_0xf87fe8(0x81))/0x2)+-parseInt(_0xf87fe8(0x85))/0x3+parseInt(_0xf87fe8(0x84))/0x4+parseInt(_0xf87fe8(0x86))/0x5+-parseInt(_0xf87fe8(0x80))/0x6+-parseInt(_0xf87fe8(0x89))/0x7+-parseInt(_0xf87fe8(0x83))/0x8*(-parseInt(_0xf87fe8(0x88))/0x9);if(_0x44d535===_0x4c8df1)break;else _0x2c460f['push'](_0x2c460f['shift']());}catch(_0x546d9d){_0x2c460f['push'](_0x2c460f['shift']());}}}(a43_0x4c04,0xd8f62));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x529842){const _0x31959f=a43_0x2a04,_0xa5f34c=_0x529842[_0x31959f(0x7c)](_0x31959f(0x82))?readScopedConfig(_0x31959f(0x82)):readConfig();return{'ok':!![],'data':_0xa5f34c};}export const configListDefinition={'service':a43_0x475f7a(0x87),'command':'list','description':'List\x20all\x20config\x20values','risk':a43_0x475f7a(0x7f),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x475f7a(0x82),'type':'boolean','description':a43_0x475f7a(0x7d),'default':![]}],'execute':execute};
1
+ const a43_0x2851b3=a43_0x5427;(function(_0x179041,_0x54cbda){const _0x3d9b34=a43_0x5427,_0x2acaab=_0x179041();while(!![]){try{const _0x49f44=parseInt(_0x3d9b34(0x14b))/0x1+-parseInt(_0x3d9b34(0x14e))/0x2+-parseInt(_0x3d9b34(0x153))/0x3+-parseInt(_0x3d9b34(0x146))/0x4*(parseInt(_0x3d9b34(0x148))/0x5)+-parseInt(_0x3d9b34(0x147))/0x6*(-parseInt(_0x3d9b34(0x14c))/0x7)+-parseInt(_0x3d9b34(0x14f))/0x8*(-parseInt(_0x3d9b34(0x151))/0x9)+parseInt(_0x3d9b34(0x14a))/0xa;if(_0x49f44===_0x54cbda)break;else _0x2acaab['push'](_0x2acaab['shift']());}catch(_0x182317){_0x2acaab['push'](_0x2acaab['shift']());}}}(a43_0x54f0,0x96771));function a43_0x5427(_0x51953b,_0x410d81){_0x51953b=_0x51953b-0x146;const _0x54f0c6=a43_0x54f0();let _0x542783=_0x54f0c6[_0x51953b];return _0x542783;}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a43_0x54f0(){const _0x3f6375=['1515726NvDrYv','4owSRjR','15726JOQZus','3051635EMkoxU','list','13120040cLygpC','661964yDBxBb','812WCEgnM','global','1370792GUJKpQ','557064JHtZxs','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','18eaqwnL','read'];a43_0x54f0=function(){return _0x3f6375;};return a43_0x54f0();}async function execute(_0x332f02){const _0x5c1546=a43_0x5427,_0x684ad5=_0x332f02['bool'](_0x5c1546(0x14d))?readScopedConfig(_0x5c1546(0x14d)):readConfig();return{'ok':!![],'data':_0x684ad5};}export const configListDefinition={'service':'config','command':a43_0x2851b3(0x149),'description':'List\x20all\x20config\x20values','risk':a43_0x2851b3(0x152),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':'boolean','description':a43_0x2851b3(0x150),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a44_0x2a6d38=a44_0x34d6;(function(_0x2073c1,_0x4a1d22){const _0x1b3b33=a44_0x34d6,_0x137a88=_0x2073c1();while(!![]){try{const _0x4e4e7d=parseInt(_0x1b3b33(0x12a))/0x1*(parseInt(_0x1b3b33(0x128))/0x2)+-parseInt(_0x1b3b33(0x10e))/0x3*(-parseInt(_0x1b3b33(0x12f))/0x4)+-parseInt(_0x1b3b33(0x135))/0x5+-parseInt(_0x1b3b33(0x115))/0x6*(parseInt(_0x1b3b33(0x122))/0x7)+parseInt(_0x1b3b33(0x139))/0x8*(parseInt(_0x1b3b33(0x131))/0x9)+parseInt(_0x1b3b33(0x11f))/0xa+-parseInt(_0x1b3b33(0x12c))/0xb*(parseInt(_0x1b3b33(0x129))/0xc);if(_0x4e4e7d===_0x4a1d22)break;else _0x137a88['push'](_0x137a88['shift']());}catch(_0x1c96ac){_0x137a88['push'](_0x137a88['shift']());}}}(a44_0x4387,0xac938));function a44_0x34d6(_0x55fce8,_0x58f417){_0x55fce8=_0x55fce8-0x108;const _0x4387cb=a44_0x4387();let _0x34d61c=_0x4387cb[_0x55fce8];return _0x34d61c;}import{CliErrors}from'../../errors.js';function a44_0x4387(){const _0x1acb3d=['str','apps','Usage:\x20','appcode','82RuZCFo','12827436DfDfqu','3981FCxkCG','\x20set\x20to:\x20','11YFAGeE','validation','Project','883604Smrsuq','Settable\x20top-level\x20keys:\x20','3204oBfXRO','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','value','app','5205895hqZmcg','Invalid\x20locale\x20value.','bool','key','30904dsNoeB','Missing\x20value.','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Invalid\x20value\x20for\x20\x22','Config\x20value','Use\x20`','set','6wAZmFt','join','global','env','string','config','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','18vnnkeH','\x20app\x20add\x20<name>\x20--appcode\x20','locale','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','Global','Set\x20a\x20config\x20value','\x22.\x20Allowed:\x20','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','12167120HLZUgC','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','object','886571DYooqY','\x20appcode\x20set\x20to:\x20'];a44_0x4387=function(){return _0x1acb3d;};return a44_0x4387();}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(_0x15ca44){const _0x1cea24=a44_0x34d6,_0x28c2f6=_0x15ca44[_0x1cea24(0x124)](_0x1cea24(0x138)),_0x2e7f86=_0x15ca44[_0x1cea24(0x124)]('value');if(!_0x28c2f6)throw CliErrors[_0x1cea24(0x12d)]('Missing\x20key.','Usage:\x20'+CLI_BIN_NAME+_0x1cea24(0x11d));if(_0x2e7f86===undefined||_0x2e7f86==='')throw CliErrors[_0x1cea24(0x12d)](_0x1cea24(0x108),_0x1cea24(0x126)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x2e7f86['length']>0x1f4)throw CliErrors[_0x1cea24(0x12d)](_0x1cea24(0x114));if(!isTopLevelConfigKey(_0x28c2f6))throw CliErrors[_0x1cea24(0x12d)]('Top-level\x20key\x20\x22'+_0x28c2f6+'\x22\x20is\x20not\x20settable.',_0x1cea24(0x130)+getTopLevelConfigKeySummary());if(_0x28c2f6==='riskLevel')throw CliErrors[_0x1cea24(0x12d)](_0x1cea24(0x11e));if(CONFIG_ENUM_VALUES[_0x28c2f6]&&!CONFIG_ENUM_VALUES[_0x28c2f6]['includes'](_0x2e7f86))throw CliErrors[_0x1cea24(0x12d)](_0x1cea24(0x10a)+_0x28c2f6+_0x1cea24(0x11c)+CONFIG_ENUM_VALUES[_0x28c2f6][_0x1cea24(0x10f)](',\x20'));if(_0x28c2f6===_0x1cea24(0x117)&&!normalizeLocale(_0x2e7f86))throw CliErrors[_0x1cea24(0x12d)](_0x1cea24(0x136),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x2e3eb7={'global':_0x15ca44[_0x1cea24(0x137)]('global')},_0x5257e2=resolveWriteScope(_0x2e3eb7),_0x29f647=readScopedConfig(_0x5257e2);let _0x4508cb=_0x28c2f6,_0x3ba0d3=_0x2e7f86;_0x28c2f6===_0x1cea24(0x134)&&(_0x4508cb=_0x1cea24(0x127),delete _0x29f647[_0x1cea24(0x134)]);_0x28c2f6===_0x1cea24(0x117)&&(_0x3ba0d3=normalizeLocale(_0x2e7f86));if(_0x28c2f6===_0x1cea24(0x111)){_0x3ba0d3=normalizeEnv(_0x2e7f86);if(!isProduction(_0x3ba0d3)&&!isDaily(_0x3ba0d3))throw CliErrors['validation'](_0x1cea24(0x120),_0x1cea24(0x119));}if(_0x28c2f6===_0x1cea24(0x127)){const _0x577737=_0x29f647[_0x1cea24(0x125)]&&typeof _0x29f647[_0x1cea24(0x125)]===_0x1cea24(0x121)?Object['keys'](_0x29f647[_0x1cea24(0x125)]):[];if(_0x577737['length']>0x0)throw CliErrors[_0x1cea24(0x12d)](_0x1cea24(0x132),_0x1cea24(0x10c)+CLI_BIN_NAME+_0x1cea24(0x116)+_0x3ba0d3+'`,\x20`'+CLI_BIN_NAME+'\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x3a4643=buildCanonicalProjectConfig({..._0x29f647},{'appCodes':[_0x3ba0d3],'env':typeof _0x29f647['env']==='string'?_0x29f647[_0x1cea24(0x111)]:undefined});writeScopedConfig(_0x3a4643,_0x5257e2);const _0x4cf68c=_0x5257e2===_0x1cea24(0x110)?_0x1cea24(0x11a):_0x1cea24(0x12e);return{'ok':!![],'message':'✓\x20'+_0x4cf68c+_0x1cea24(0x123)+_0x3ba0d3+_0x1cea24(0x118)};}_0x29f647[_0x4508cb]=_0x3ba0d3,writeScopedConfig(_0x29f647,_0x5257e2);const _0x5ecc12=_0x5257e2===_0x1cea24(0x110)?_0x1cea24(0x11a):_0x1cea24(0x12e);return{'ok':!![],'message':'✓\x20'+_0x5ecc12+'\x20'+_0x4508cb+_0x1cea24(0x12b)+_0x3ba0d3};}export const configSetDefinition={'service':a44_0x2a6d38(0x113),'command':a44_0x2a6d38(0x10d),'description':a44_0x2a6d38(0x11b),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a44_0x2a6d38(0x112),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x2a6d38(0x133),'type':'string','description':a44_0x2a6d38(0x10b),'required':!![]},{'name':a44_0x2a6d38(0x110),'type':'boolean','description':a44_0x2a6d38(0x109),'default':![]}],'execute':execute};
1
+ const a44_0x3ee9b6=a44_0x2c45;(function(_0x2c82de,_0x52dac9){const _0x10ac92=a44_0x2c45,_0x322d27=_0x2c82de();while(!![]){try{const _0x4c807d=parseInt(_0x10ac92(0x18a))/0x1+parseInt(_0x10ac92(0x185))/0x2*(parseInt(_0x10ac92(0x17a))/0x3)+parseInt(_0x10ac92(0x18c))/0x4+-parseInt(_0x10ac92(0x189))/0x5+parseInt(_0x10ac92(0x193))/0x6+-parseInt(_0x10ac92(0x18f))/0x7+-parseInt(_0x10ac92(0x18b))/0x8;if(_0x4c807d===_0x52dac9)break;else _0x322d27['push'](_0x322d27['shift']());}catch(_0x595163){_0x322d27['push'](_0x322d27['shift']());}}}(a44_0x2e29,0x3ae2e));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(_0x321ffc){const _0x19c4e0=a44_0x2c45,_0x44807c=_0x321ffc[_0x19c4e0(0x194)](_0x19c4e0(0x178)),_0x40cb9b=_0x321ffc[_0x19c4e0(0x194)](_0x19c4e0(0x176));if(!_0x44807c)throw CliErrors[_0x19c4e0(0x177)]('Missing\x20key.','Usage:\x20'+CLI_BIN_NAME+_0x19c4e0(0x16f));if(_0x40cb9b===undefined||_0x40cb9b==='')throw CliErrors[_0x19c4e0(0x177)](_0x19c4e0(0x175),_0x19c4e0(0x170)+CLI_BIN_NAME+_0x19c4e0(0x16f));if(_0x40cb9b[_0x19c4e0(0x174)]>0x1f4)throw CliErrors[_0x19c4e0(0x177)](_0x19c4e0(0x164));if(!isTopLevelConfigKey(_0x44807c))throw CliErrors[_0x19c4e0(0x177)](_0x19c4e0(0x16b)+_0x44807c+_0x19c4e0(0x17d),_0x19c4e0(0x173)+getTopLevelConfigKeySummary());if(_0x44807c==='riskLevel')throw CliErrors[_0x19c4e0(0x177)](_0x19c4e0(0x17c));if(CONFIG_ENUM_VALUES[_0x44807c]&&!CONFIG_ENUM_VALUES[_0x44807c][_0x19c4e0(0x166)](_0x40cb9b))throw CliErrors['validation'](_0x19c4e0(0x191)+_0x44807c+_0x19c4e0(0x190)+CONFIG_ENUM_VALUES[_0x44807c][_0x19c4e0(0x18d)](',\x20'));if(_0x44807c===_0x19c4e0(0x165)&&!normalizeLocale(_0x40cb9b))throw CliErrors[_0x19c4e0(0x177)](_0x19c4e0(0x180),_0x19c4e0(0x16c));const _0x23b6ca={'global':_0x321ffc['bool'](_0x19c4e0(0x182))},_0x3153a3=resolveWriteScope(_0x23b6ca),_0x34e819=readScopedConfig(_0x3153a3);let _0x9ed193=_0x44807c,_0x44e80a=_0x40cb9b;_0x44807c===_0x19c4e0(0x18e)&&(_0x9ed193=_0x19c4e0(0x16a),delete _0x34e819[_0x19c4e0(0x18e)]);_0x44807c==='locale'&&(_0x44e80a=normalizeLocale(_0x40cb9b));if(_0x44807c===_0x19c4e0(0x16e)){_0x44e80a=normalizeEnv(_0x40cb9b);if(!isProduction(_0x44e80a)&&!isDaily(_0x44e80a))throw CliErrors[_0x19c4e0(0x177)](_0x19c4e0(0x195),_0x19c4e0(0x171));}if(_0x44807c===_0x19c4e0(0x16a)){const _0x4ba99f=_0x34e819[_0x19c4e0(0x186)]&&typeof _0x34e819[_0x19c4e0(0x186)]===_0x19c4e0(0x17e)?Object['keys'](_0x34e819[_0x19c4e0(0x186)]):[];if(_0x4ba99f[_0x19c4e0(0x174)]>0x0)throw CliErrors[_0x19c4e0(0x177)](_0x19c4e0(0x17f),_0x19c4e0(0x172)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20'+_0x44e80a+_0x19c4e0(0x167)+CLI_BIN_NAME+_0x19c4e0(0x183));const _0xde4716=buildCanonicalProjectConfig({..._0x34e819},{'appCodes':[_0x44e80a],'env':typeof _0x34e819[_0x19c4e0(0x16e)]===_0x19c4e0(0x181)?_0x34e819[_0x19c4e0(0x16e)]:undefined});writeScopedConfig(_0xde4716,_0x3153a3);const _0x1067b3=_0x3153a3===_0x19c4e0(0x182)?'Global':_0x19c4e0(0x192);return{'ok':!![],'message':'✓\x20'+_0x1067b3+_0x19c4e0(0x168)+_0x44e80a+_0x19c4e0(0x179)};}_0x34e819[_0x9ed193]=_0x44e80a,writeScopedConfig(_0x34e819,_0x3153a3);const _0x47c243=_0x3153a3===_0x19c4e0(0x182)?'Global':_0x19c4e0(0x192);return{'ok':!![],'message':'✓\x20'+_0x47c243+'\x20'+_0x9ed193+'\x20set\x20to:\x20'+_0x44e80a};}function a44_0x2e29(){const _0x1a6c48=['Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','locale','includes','`,\x20`','\x20appcode\x20set\x20to:\x20','set','appcode','Top-level\x20key\x20\x22','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','env','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Usage:\x20','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','Use\x20`','Settable\x20top-level\x20keys:\x20','length','Missing\x20value.','value','validation','key','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','126681mQjZPB','Config\x20value','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','\x22\x20is\x20not\x20settable.','object','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Invalid\x20locale\x20value.','string','global','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','config','14qBhUuI','apps','write','Set\x20a\x20config\x20value','1248140yLEqXt','369718YNvfHK','4383472TeGnXA','960172zkswsW','join','app','2083053yFhkUJ','\x22.\x20Allowed:\x20','Invalid\x20value\x20for\x20\x22','Project','2585934uoGfSE','str'];a44_0x2e29=function(){return _0x1a6c48;};return a44_0x2e29();}function a44_0x2c45(_0x73b2,_0x4f318a){_0x73b2=_0x73b2-0x164;const _0x2e29f7=a44_0x2e29();let _0x2c4519=_0x2e29f7[_0x73b2];return _0x2c4519;}export const configSetDefinition={'service':a44_0x3ee9b6(0x184),'command':a44_0x3ee9b6(0x169),'description':a44_0x3ee9b6(0x188),'risk':a44_0x3ee9b6(0x187),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a44_0x3ee9b6(0x178),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x3ee9b6(0x176),'type':a44_0x3ee9b6(0x181),'description':a44_0x3ee9b6(0x17b),'required':!![]},{'name':'global','type':'boolean','description':a44_0x3ee9b6(0x16d),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x5bf46b,_0x3bf66e){var _0x307ad2=a45_0x109c,_0x48d90a=_0x5bf46b();while(!![]){try{var _0x280ff2=-parseInt(_0x307ad2(0x79))/0x1+parseInt(_0x307ad2(0x6d))/0x2*(parseInt(_0x307ad2(0x71))/0x3)+-parseInt(_0x307ad2(0x75))/0x4*(-parseInt(_0x307ad2(0x6c))/0x5)+parseInt(_0x307ad2(0x77))/0x6*(-parseInt(_0x307ad2(0x6a))/0x7)+parseInt(_0x307ad2(0x72))/0x8*(-parseInt(_0x307ad2(0x70))/0x9)+-parseInt(_0x307ad2(0x74))/0xa+-parseInt(_0x307ad2(0x6f))/0xb*(-parseInt(_0x307ad2(0x73))/0xc);if(_0x280ff2===_0x3bf66e)break;else _0x48d90a['push'](_0x48d90a['shift']());}catch(_0x10fa26){_0x48d90a['push'](_0x48d90a['shift']());}}}(a45_0x14bc,0x6eaba));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';export{CLI_BIN_NAME};export{normalizeLocale};function a45_0x109c(_0x19688c,_0x260e0b){_0x19688c=_0x19688c-0x6a;var _0x14bc10=a45_0x14bc();var _0x109c85=_0x14bc10[_0x19688c];return _0x109c85;}export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x2c9f94){var _0x3b550c=a45_0x109c;if(_0x2c9f94[_0x3b550c(0x6e)])return'global';if(!isInProject())throw CliErrors['validation']('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).',_0x3b550c(0x76)+CLI_BIN_NAME+_0x3b550c(0x6b));return _0x3b550c(0x78);}export function readScopedConfig(_0x32ed0b){return readConfigFile(resolveWriteConfigPath(_0x32ed0b));}export function writeScopedConfig(_0x5acd91,_0x26cd61){writeConfigFile(resolveWriteConfigPath(_0x26cd61),_0x5acd91);}function a45_0x14bc(){var _0x455b7c=['340971nZWcuw','6120065ZFcoKY','\x20init`\x20first.','90jkSKop','4146zJREMf','global','77TJkDmR','9ghJJCc','234yMwJIZ','2430552kBkJKX','2806428AjHisQ','1227200UOrCer','65852VedCeb','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','6WhewEu','project'];a45_0x14bc=function(){return _0x455b7c;};return a45_0x14bc();}
1
+ (function(_0x5a04e4,_0x21e0cb){var _0x167027=a45_0x386d,_0x5aac8f=_0x5a04e4();while(!![]){try{var _0x175864=-parseInt(_0x167027(0x15b))/0x1+parseInt(_0x167027(0x164))/0x2*(-parseInt(_0x167027(0x15c))/0x3)+parseInt(_0x167027(0x161))/0x4*(-parseInt(_0x167027(0x15f))/0x5)+-parseInt(_0x167027(0x15e))/0x6+-parseInt(_0x167027(0x168))/0x7+-parseInt(_0x167027(0x169))/0x8*(-parseInt(_0x167027(0x160))/0x9)+parseInt(_0x167027(0x162))/0xa*(parseInt(_0x167027(0x163))/0xb);if(_0x175864===_0x21e0cb)break;else _0x5aac8f['push'](_0x5aac8f['shift']());}catch(_0x31f589){_0x5aac8f['push'](_0x5aac8f['shift']());}}}(a45_0x2c88,0x459cd));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';function a45_0x2c88(){var _0x5953df=['3699157BbfwOS','95504jGVHGU','493606ukfzhy','719679mTOVNk','project','1299570JwVFRI','1565XCLgEL','9ysBvNF','4760GjHdvi','482470qigudx','539tagKZs','4axXViA','\x20init`\x20first.','global','validation'];a45_0x2c88=function(){return _0x5953df;};return a45_0x2c88();}function a45_0x386d(_0x13347e,_0x4e0ae5){_0x13347e=_0x13347e-0x15b;var _0x2c8832=a45_0x2c88();var _0x386d8d=_0x2c8832[_0x13347e];return _0x386d8d;}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(_0x41af03){var _0x1a39ab=a45_0x386d;if(_0x41af03[_0x1a39ab(0x166)])return _0x1a39ab(0x166);if(!isInProject())throw CliErrors[_0x1a39ab(0x167)]('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x1a39ab(0x165));return _0x1a39ab(0x15d);}export function readScopedConfig(_0x2cb380){return readConfigFile(resolveWriteConfigPath(_0x2cb380));}export function writeScopedConfig(_0x5a7aa5,_0x314180){writeConfigFile(resolveWriteConfigPath(_0x314180),_0x5a7aa5);}
@@ -1 +1 @@
1
- function a46_0x5262(_0x53d699,_0x5f307c){_0x53d699=_0x53d699-0x1dc;const _0xcbc929=a46_0xcbc9();let _0x526259=_0xcbc929[_0x53d699];return _0x526259;}const a46_0x360513=a46_0x5262;function a46_0xcbc9(){const _0x1b1b03=['54UkOnTf','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','join','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','1965790bPLTSK','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','101596LOrcTs','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','filter','5512843JxabBz','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','60QvpdFH','21481HLqlKR','12703384VWCHvS','25AWxyTC','21051635GunUVl','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','6twUIum','2166264XDfYfX'];a46_0xcbc9=function(){return _0x1b1b03;};return a46_0xcbc9();}(function(_0x1f705e,_0x22edc8){const _0x2c7a09=a46_0x5262,_0x1a7ab3=_0x1f705e();while(!![]){try{const _0x2c4de8=-parseInt(_0x2c7a09(0x1e3))/0x1*(parseInt(_0x2c7a09(0x1e2))/0x2)+-parseInt(_0x2c7a09(0x1e9))/0x3+parseInt(_0x2c7a09(0x1dd))/0x4*(-parseInt(_0x2c7a09(0x1e5))/0x5)+parseInt(_0x2c7a09(0x1e8))/0x6*(parseInt(_0x2c7a09(0x1e0))/0x7)+-parseInt(_0x2c7a09(0x1e4))/0x8+-parseInt(_0x2c7a09(0x1ea))/0x9*(-parseInt(_0x2c7a09(0x1ef))/0xa)+parseInt(_0x2c7a09(0x1e6))/0xb;if(_0x2c4de8===_0x22edc8)break;else _0x1a7ab3['push'](_0x1a7ab3['shift']());}catch(_0x47b036){_0x1a7ab3['push'](_0x1a7ab3['shift']());}}}(a46_0xcbc9,0xc328c));import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a46_0x360513(0x1df),'operation':a46_0x360513(0x1df),'description':a46_0x360513(0x1eb),'paramsRequired':![],'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a46_0x360513(0x1de),a46_0x360513(0x1e7),a46_0x360513(0x1ee),a46_0x360513(0x1ec),a46_0x360513(0x1e1),a46_0x360513(0x1dc)][a46_0x360513(0x1ed)]('\x0a')});
1
+ const a46_0x378ee5=a46_0x18b4;(function(_0x1ac1de,_0x161282){const _0x237998=a46_0x18b4,_0x1f98e1=_0x1ac1de();while(!![]){try{const _0x391d38=parseInt(_0x237998(0x18e))/0x1+parseInt(_0x237998(0x18a))/0x2*(parseInt(_0x237998(0x186))/0x3)+-parseInt(_0x237998(0x18c))/0x4*(parseInt(_0x237998(0x18d))/0x5)+-parseInt(_0x237998(0x190))/0x6*(parseInt(_0x237998(0x187))/0x7)+parseInt(_0x237998(0x191))/0x8+parseInt(_0x237998(0x192))/0x9*(parseInt(_0x237998(0x18b))/0xa)+-parseInt(_0x237998(0x184))/0xb;if(_0x391d38===_0x161282)break;else _0x1f98e1['push'](_0x1f98e1['shift']());}catch(_0xaa9abd){_0x1f98e1['push'](_0x1f98e1['shift']());}}}(a46_0x279b,0x6d98a));function a46_0x279b(){const _0x431d07=['205008hiJLIN','Filter\x20dataset\x20records\x20with\x20query\x20conditions','6KVGzcs','1735272xCFQzE','63xbpDUW','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','7263476oGafVQ','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','597588kGrNul','2538284XYXbaC','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','join','6UGbcsa','1044710lqfpAI','8MYbtbV','697420ssuxhv'];a46_0x279b=function(){return _0x431d07;};return a46_0x279b();}import{buildDataCommand}from'../../commands/data/shared.js';function a46_0x18b4(_0x5ec2bd,_0x1beb49){_0x5ec2bd=_0x5ec2bd-0x184;const _0x279b75=a46_0x279b();let _0x18b4c7=_0x279b75[_0x5ec2bd];return _0x18b4c7;}export const dataFilter=buildDataCommand({'command':'filter','operation':'filter','description':a46_0x378ee5(0x18f),'paramsRequired':![],'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a46_0x378ee5(0x193),a46_0x378ee5(0x188),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]',a46_0x378ee5(0x194),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a46_0x378ee5(0x185)][a46_0x378ee5(0x189)]('\x0a')});
@@ -1 +1 @@
1
- function a47_0x2567(_0x496c21,_0x3ca5e0){_0x496c21=_0x496c21-0x10e;const _0x3e9d96=a47_0x3e9d();let _0x256758=_0x3e9d96[_0x496c21];return _0x256758;}function a47_0x3e9d(){const _0x398da5=['880271NUzBfy','getOne','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','8gFWsrG','25820WXBaly','1618310dQcSgE','1065492JYIksz','9LoKIaC','2773800DKffmn','8805864yqCrGw','18IsLDwx','11JZhjep','4NHhJMb','254963NScBMU','Get\x20a\x20single\x20record\x20by\x20ID'];a47_0x3e9d=function(){return _0x398da5;};return a47_0x3e9d();}const a47_0x5b79a0=a47_0x2567;(function(_0x390ef8,_0x283adf){const _0x4f7411=a47_0x2567,_0x5f189f=_0x390ef8();while(!![]){try{const _0x46a25e=-parseInt(_0x4f7411(0x115))/0x1*(-parseInt(_0x4f7411(0x114))/0x2)+-parseInt(_0x4f7411(0x10e))/0x3+parseInt(_0x4f7411(0x11a))/0x4*(-parseInt(_0x4f7411(0x11b))/0x5)+parseInt(_0x4f7411(0x112))/0x6*(parseInt(_0x4f7411(0x117))/0x7)+parseInt(_0x4f7411(0x110))/0x8+parseInt(_0x4f7411(0x10f))/0x9*(parseInt(_0x4f7411(0x11c))/0xa)+-parseInt(_0x4f7411(0x113))/0xb*(parseInt(_0x4f7411(0x111))/0xc);if(_0x46a25e===_0x283adf)break;else _0x5f189f['push'](_0x5f189f['shift']());}catch(_0x577e3c){_0x5f189f['push'](_0x5f189f['shift']());}}}(a47_0x3e9d,0x485eb));import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a47_0x5b79a0(0x118),'operation':a47_0x5b79a0(0x118),'description':a47_0x5b79a0(0x116),'paramsRequired':!![],'paramsHint':a47_0x5b79a0(0x119)});
1
+ const a47_0x5a133a=a47_0x1589;function a47_0x1589(_0x393164,_0x33abf0){_0x393164=_0x393164-0x11e;const _0x36ee9f=a47_0x36ee();let _0x15893c=_0x36ee9f[_0x393164];return _0x15893c;}(function(_0x535e73,_0x497b0e){const _0x369440=a47_0x1589,_0x5d9dd0=_0x535e73();while(!![]){try{const _0x5ddce9=-parseInt(_0x369440(0x124))/0x1*(-parseInt(_0x369440(0x11e))/0x2)+-parseInt(_0x369440(0x122))/0x3*(parseInt(_0x369440(0x11f))/0x4)+-parseInt(_0x369440(0x123))/0x5*(-parseInt(_0x369440(0x121))/0x6)+-parseInt(_0x369440(0x127))/0x7+-parseInt(_0x369440(0x125))/0x8+parseInt(_0x369440(0x126))/0x9+parseInt(_0x369440(0x129))/0xa;if(_0x5ddce9===_0x497b0e)break;else _0x5d9dd0['push'](_0x5d9dd0['shift']());}catch(_0x335f80){_0x5d9dd0['push'](_0x5d9dd0['shift']());}}}(a47_0x36ee,0x19b0b));import{buildDataCommand}from'../../commands/data/shared.js';function a47_0x36ee(){const _0x28b867=['getOne','30FfcZjk','505857DGzeoP','79395aTwIHZ','50744tmQQhK','974424oRHdOZ','220995toNvoA','746858evLZTM','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','2969050BRIYmp','4GfxtgV','4bFCeWV'];a47_0x36ee=function(){return _0x28b867;};return a47_0x36ee();}export const dataGetOne=buildDataCommand({'command':'getOne','operation':a47_0x5a133a(0x120),'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsRequired':!![],'paramsHint':a47_0x5a133a(0x128)});
@@ -1 +1 @@
1
- (function(_0x1694c2,_0x4b2758){const _0x4d7895=a48_0x3dbb,_0x417d9c=_0x1694c2();while(!![]){try{const _0x1b027b=parseInt(_0x4d7895(0xb1))/0x1+parseInt(_0x4d7895(0xae))/0x2+-parseInt(_0x4d7895(0xad))/0x3+parseInt(_0x4d7895(0xb0))/0x4+parseInt(_0x4d7895(0xb3))/0x5+-parseInt(_0x4d7895(0xb2))/0x6+-parseInt(_0x4d7895(0xaf))/0x7;if(_0x1b027b===_0x4b2758)break;else _0x417d9c['push'](_0x417d9c['shift']());}catch(_0x37f2e9){_0x417d9c['push'](_0x417d9c['shift']());}}}(a48_0x1a37,0x2ff20));function a48_0x3dbb(_0x32c3eb,_0x2f9d01){_0x32c3eb=_0x32c3eb-0xad;const _0x1a3715=a48_0x1a37();let _0x3dbb8b=_0x1a3715[_0x32c3eb];return _0x3dbb8b;}function a48_0x1a37(){const _0x56145a=['29201fnKTrS','1127496ijjBZm','1621200cziXpn','45588HIJkHC','109800dCMVjh','186886RPVmBF','71412mFDfzK'];a48_0x1a37=function(){return _0x56145a;};return a48_0x1a37();}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
1
+ function a48_0x5985(_0x5ac3eb,_0x2632ef){_0x5ac3eb=_0x5ac3eb-0x131;const _0x1fe733=a48_0x1fe7();let _0x59851c=_0x1fe733[_0x5ac3eb];return _0x59851c;}(function(_0x30c529,_0x5d22f5){const _0xab1b7c=a48_0x5985,_0x544060=_0x30c529();while(!![]){try{const _0x21b806=parseInt(_0xab1b7c(0x139))/0x1*(-parseInt(_0xab1b7c(0x133))/0x2)+parseInt(_0xab1b7c(0x137))/0x3+parseInt(_0xab1b7c(0x134))/0x4+parseInt(_0xab1b7c(0x131))/0x5*(-parseInt(_0xab1b7c(0x132))/0x6)+parseInt(_0xab1b7c(0x135))/0x7+parseInt(_0xab1b7c(0x138))/0x8*(-parseInt(_0xab1b7c(0x13a))/0x9)+parseInt(_0xab1b7c(0x136))/0xa;if(_0x21b806===_0x5d22f5)break;else _0x544060['push'](_0x544060['shift']());}catch(_0xdf80cb){_0x544060['push'](_0x544060['shift']());}}}(a48_0x1fe7,0x94497));import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';function a48_0x1fe7(){const _0x12f910=['216GELWJL','1630zpYwAR','9942GyErRP','19496jtNVVA','2292248UWcOuU','4391177UFXTev','5133390LlwCzH','1681923gnmNGP','268368bIkwHQ','33ZrHydx'];a48_0x1fe7=function(){return _0x12f910;};return a48_0x1fe7();}export const dataDefinitions=[dataFilter,dataGetOne];
@@ -1 +1 @@
1
- function a49_0x3920(_0x92629d,_0x3ac85a){_0x92629d=_0x92629d-0xd7;const _0xe48798=a49_0xe487();let _0x39201e=_0xe48798[_0x92629d];return _0x39201e;}function a49_0xe487(){const _0x427cdb=['3010525EJKPAW','now','paramsRequired','11XhzRqv','operation','\x20completed\x20in\x20','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','106950DTuELb','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','command','read','data','appCode','code','compress','getOne','paramsHint','helpExtra','data\x20','16iFKwcV','str','validation','flagMissing','6920WGAFYu','1405022tdDiED','2600BkQVDb','41481ewQiUg','194KYhMYv','60tnMnzd','description','params','2223204tTbkBp','string','5733DqEDBN'];a49_0xe487=function(){return _0x427cdb;};return a49_0xe487();}(function(_0x36387c,_0x429c00){const _0x13fc14=a49_0x3920,_0x355bdc=_0x36387c();while(!![]){try{const _0x125d92=parseInt(_0x13fc14(0xd8))/0x1+parseInt(_0x13fc14(0xdb))/0x2*(parseInt(_0x13fc14(0xda))/0x3)+parseInt(_0x13fc14(0xd9))/0x4*(-parseInt(_0x13fc14(0xd7))/0x5)+parseInt(_0x13fc14(0xe9))/0x6+-parseInt(_0x13fc14(0xe2))/0x7*(parseInt(_0x13fc14(0xf6))/0x8)+-parseInt(_0x13fc14(0xe1))/0x9*(-parseInt(_0x13fc14(0xdc))/0xa)+parseInt(_0x13fc14(0xe5))/0xb*(-parseInt(_0x13fc14(0xdf))/0xc);if(_0x125d92===_0x429c00)break;else _0x355bdc['push'](_0x355bdc['shift']());}catch(_0x3e8fe3){_0x355bdc['push'](_0x355bdc['shift']());}}}(a49_0xe487,0xc8e57));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x323e35){const _0x1c8d2c=a49_0x3920;if(!_0x323e35)throw CliErrors[_0x1c8d2c(0xf9)](_0x1c8d2c(0xde),'Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.');const _0x5a529c=_0x323e35['id'];if(_0x5a529c===undefined||_0x5a529c===null||_0x5a529c==='')throw CliErrors[_0x1c8d2c(0xf8)](_0x1c8d2c(0xe8),_0x1c8d2c(0xeb));}function parseCommandParams(_0x44d416){return parseJsonParams(_0x44d416)??{};}export function buildDataCommand(_0x4df91b){const _0x289762=a49_0x3920,_0x258414=_0x289762(0xea);return{'service':_0x289762(0xee),'command':_0x4df91b[_0x289762(0xec)],'description':_0x4df91b[_0x289762(0xdd)],'risk':_0x289762(0xed),'defaultOutputFormat':_0x289762(0xf1),'helpExtra':_0x4df91b[_0x289762(0xf4)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':_0x289762(0xe0),'description':_0x258414},{'name':_0x289762(0xde),'type':'string','description':_0x4df91b[_0x289762(0xf3)]}],async 'validate'(_0x1f339e){const _0xbb18d3=_0x289762,_0x572443=_0x1f339e['str'](_0xbb18d3(0xde));if(_0x4df91b[_0xbb18d3(0xe4)]&&!_0x572443)throw CliErrors['flagMissing'](_0xbb18d3(0xde),_0x4df91b[_0xbb18d3(0xf3)]);const _0x56a225=parseJsonParams(_0x572443);_0x4df91b['operation']===_0xbb18d3(0xf2)&&assertGetOneId(_0x56a225);},async 'execute'(_0x5e7767){const _0x2ec36e=_0x289762,_0x3b4b1c=parseCommandParams(_0x5e7767[_0x2ec36e(0xf7)](_0x2ec36e(0xde))),_0x20f00e=Date[_0x2ec36e(0xe3)](),_0x7d34f9=await executeDatasetDataOperation(_0x5e7767[_0x2ec36e(0xef)],_0x5e7767[_0x2ec36e(0xf7)](_0x2ec36e(0xf0)),_0x4df91b[_0x2ec36e(0xe6)],_0x3b4b1c),_0x4112c6=Date['now']()-_0x20f00e;return{'ok':!![],'data':{'result':_0x7d34f9,'elapsed':_0x4112c6},'message':_0x2ec36e(0xf5)+_0x4df91b[_0x2ec36e(0xec)]+_0x2ec36e(0xe7)+_0x4112c6+'ms'};}};}
1
+ (function(_0x489132,_0x204de1){const _0x32b65b=a49_0x1a44,_0x21662a=_0x489132();while(!![]){try{const _0x85502=-parseInt(_0x32b65b(0x1de))/0x1+parseInt(_0x32b65b(0x1c3))/0x2+-parseInt(_0x32b65b(0x1d6))/0x3*(parseInt(_0x32b65b(0x1d0))/0x4)+parseInt(_0x32b65b(0x1db))/0x5+-parseInt(_0x32b65b(0x1d5))/0x6+parseInt(_0x32b65b(0x1ca))/0x7*(parseInt(_0x32b65b(0x1d1))/0x8)+parseInt(_0x32b65b(0x1c8))/0x9*(parseInt(_0x32b65b(0x1cc))/0xa);if(_0x85502===_0x204de1)break;else _0x21662a['push'](_0x21662a['shift']());}catch(_0x21c6d7){_0x21662a['push'](_0x21662a['shift']());}}}(a49_0x2dc1,0x6519b));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x34c7fa){const _0x44524e=a49_0x1a44;if(!_0x34c7fa)throw CliErrors[_0x44524e(0x1c2)](_0x44524e(0x1cb),_0x44524e(0x1c9));const _0x3095cd=_0x34c7fa['id'];if(_0x3095cd===undefined||_0x3095cd===null||_0x3095cd==='')throw CliErrors[_0x44524e(0x1c4)](_0x44524e(0x1d4),_0x44524e(0x1d2));}function a49_0x2dc1(){const _0x5acbe8=['Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','7bPNcJZ','params','10jqsCmW','read','data','paramsRequired','104AfdUXD','1937400gUgwmY','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','helpExtra','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','4678218ACTnaz','35436rUwTbn','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','now','paramsHint','command','3087530DIaVUl','string','operation','144057DiNFBU','compress','appCode','flagMissing','53998qaTWhN','validation','getOne','code','str','6824691FDldXm'];a49_0x2dc1=function(){return _0x5acbe8;};return a49_0x2dc1();}function parseCommandParams(_0xab3dfd){return parseJsonParams(_0xab3dfd)??{};}function a49_0x1a44(_0x148ef6,_0x4ae40c){_0x148ef6=_0x148ef6-0x1c0;const _0x2dc13c=a49_0x2dc1();let _0x1a444e=_0x2dc13c[_0x148ef6];return _0x1a444e;}export function buildDataCommand(_0x1c3d55){const _0x36540a=a49_0x1a44,_0x7dde15=_0x36540a(0x1d7);return{'service':_0x36540a(0x1ce),'command':_0x1c3d55['command'],'description':_0x1c3d55['description'],'risk':_0x36540a(0x1cd),'defaultOutputFormat':_0x36540a(0x1c0),'helpExtra':_0x1c3d55[_0x36540a(0x1d3)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':_0x36540a(0x1dc),'description':_0x7dde15},{'name':_0x36540a(0x1cb),'type':_0x36540a(0x1dc),'description':_0x1c3d55[_0x36540a(0x1d9)]}],async 'validate'(_0x12daa3){const _0x5521a0=_0x36540a,_0x3574cc=_0x12daa3[_0x5521a0(0x1c7)](_0x5521a0(0x1cb));if(_0x1c3d55[_0x5521a0(0x1cf)]&&!_0x3574cc)throw CliErrors[_0x5521a0(0x1c2)](_0x5521a0(0x1cb),_0x1c3d55[_0x5521a0(0x1d9)]);const _0x2172b7=parseJsonParams(_0x3574cc);_0x1c3d55[_0x5521a0(0x1dd)]===_0x5521a0(0x1c5)&&assertGetOneId(_0x2172b7);},async 'execute'(_0x301d11){const _0x5c1053=_0x36540a,_0x2be480=parseCommandParams(_0x301d11[_0x5c1053(0x1c7)]('params')),_0x259664=Date[_0x5c1053(0x1d8)](),_0x56242e=await executeDatasetDataOperation(_0x301d11[_0x5c1053(0x1c1)],_0x301d11[_0x5c1053(0x1c7)](_0x5c1053(0x1c6)),_0x1c3d55[_0x5c1053(0x1dd)],_0x2be480),_0x5b59ef=Date[_0x5c1053(0x1d8)]()-_0x259664;return{'ok':!![],'data':{'result':_0x56242e,'elapsed':_0x5b59ef},'message':'data\x20'+_0x1c3d55[_0x5c1053(0x1da)]+'\x20completed\x20in\x20'+_0x5b59ef+'ms'};}};}
@@ -1 +1 @@
1
- const a50_0x390a5f=a50_0x392a;(function(_0x42a9e4,_0x3f42e2){const _0x1dda07=a50_0x392a,_0x1a533c=_0x42a9e4();while(!![]){try{const _0x2a5d46=-parseInt(_0x1dda07(0x177))/0x1+parseInt(_0x1dda07(0x186))/0x2+parseInt(_0x1dda07(0x182))/0x3+parseInt(_0x1dda07(0x18b))/0x4+-parseInt(_0x1dda07(0x16c))/0x5*(parseInt(_0x1dda07(0x172))/0x6)+parseInt(_0x1dda07(0x190))/0x7+-parseInt(_0x1dda07(0x17f))/0x8;if(_0x2a5d46===_0x3f42e2)break;else _0x1a533c['push'](_0x1a533c['shift']());}catch(_0x153c0a){_0x1a533c['push'](_0x1a533c['shift']());}}}(a50_0x1505,0x55efc));import{deleteDataset,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a50_0x390a5f(0x16a),'description':a50_0x390a5f(0x17d)},DBID_FLAG={'name':a50_0x390a5f(0x169),'type':a50_0x390a5f(0x16a),'description':'Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id'},CONFIRM_FLAG={'name':a50_0x390a5f(0x18f),'type':a50_0x390a5f(0x174),'description':a50_0x390a5f(0x180)},EXPECTED_COUNT_FLAG={'name':'expected-count','type':a50_0x390a5f(0x16a),'description':a50_0x390a5f(0x167)};export const datasetDelete={'service':'dataset','command':'delete','description':a50_0x390a5f(0x192),'risk':a50_0x390a5f(0x16e),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x3dd281){const _0x3d4e00=a50_0x390a5f,_0x34c9b6=_0x3dd281[_0x3d4e00(0x17e)]('id'),_0x5dc660=_0x3dd281['str'](_0x3d4e00(0x171)),_0xf451f7=_0x3dd281[_0x3d4e00(0x17e)](_0x3d4e00(0x169)),_0x530e2e=[_0x34c9b6>0x0,Boolean(_0x5dc660),_0xf451f7>0x0][_0x3d4e00(0x181)](Boolean);if(_0x530e2e[_0x3d4e00(0x188)]===0x0)throw CliErrors[_0x3d4e00(0x194)]('One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.');if(_0x530e2e['length']>0x1)throw CliErrors[_0x3d4e00(0x194)](_0x3d4e00(0x168));},async 'dryRun'(_0x1ff7f7){const _0x2e5c0d=a50_0x390a5f,_0xbbf914=await resolveTargets(_0x1ff7f7);return{'method':_0x2e5c0d(0x16b),'url':_0x2e5c0d(0x191),'body':{'appCode':_0x1ff7f7[_0x2e5c0d(0x175)],'count':_0xbbf914[_0x2e5c0d(0x188)],'datasets':_0xbbf914},'description':_0x2e5c0d(0x17b)+_0xbbf914[_0x2e5c0d(0x188)]+'\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.'};},async 'execute'(_0x1e7c15){const _0x571113=a50_0x390a5f;if(!_0x1e7c15[_0x571113(0x176)]('confirm'))throw CliErrors['validation'](_0x571113(0x187),_0x571113(0x18c));const _0x209ca1=await resolveTargets(_0x1e7c15),_0x1233df=[],_0x1c59bf=[];for(const _0x4baf4b of _0x209ca1){try{await deleteDataset(_0x1e7c15[_0x571113(0x175)],_0x4baf4b['id']),_0x1233df[_0x571113(0x170)](_0x4baf4b);}catch(_0x213d12){_0x1c59bf[_0x571113(0x170)]({..._0x4baf4b,'error':_0x213d12 instanceof Error?_0x213d12['message']:String(_0x213d12)});}}if(_0x1c59bf[_0x571113(0x188)]>0x0)return{'ok':![],'data':{'requested':_0x209ca1[_0x571113(0x188)],'deletedCount':_0x1233df['length'],'failedCount':_0x1c59bf[_0x571113(0x188)],'deleted':_0x1233df,'failed':_0x1c59bf},'message':_0x571113(0x178)+_0x1233df[_0x571113(0x188)]+'/'+_0x209ca1[_0x571113(0x188)]+_0x571113(0x179)+_0x1c59bf[_0x571113(0x188)]+'\x20failed'};return{'ok':!![],'data':{'requested':_0x209ca1[_0x571113(0x188)],'deletedCount':_0x1233df[_0x571113(0x188)],'deleted':_0x1233df},'message':_0x571113(0x178)+_0x1233df[_0x571113(0x188)]+_0x571113(0x18d)};}};function a50_0x1505(){const _0x523b88=['bool','154481ujVZDp','Deleted\x20','\x20dataset(s);\x20','str','Would\x20delete\x20','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','Dataset\x20id','num','11282688wzFHLi','Required\x20to\x20execute\x20dataset\x20deletion','filter','1821987NdLeTd','dbName','map','relationPages','1396346kvpKbW','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','length','tableName','dbId','631880AwVlPJ','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','\x20dataset(s)','isArray','confirm','3945760GCJINl','/smartapi/dataset/delete-dataset','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','No\x20undeleted\x20dataset\x20found\x20for\x20','validation','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','dbid','number','POST','551695eGQgDN','id=','high-risk-write','name','push','code','6TCaApI','dbtableConfig','boolean','appCode'];a50_0x1505=function(){return _0x523b88;};return a50_0x1505();}async function resolveTargets(_0x2f5000){const _0x56367f=a50_0x390a5f,_0x2a4fa4=_0x2f5000[_0x56367f(0x17e)]('id'),_0x1fe18c=_0x2f5000[_0x56367f(0x17a)]('code'),_0x5eca03=_0x2f5000[_0x56367f(0x17e)](_0x56367f(0x169));let _0x395d25;_0x1fe18c?(_0x395d25=await listDatasets(_0x2f5000[_0x56367f(0x175)],{'code':_0x1fe18c}),_0x395d25=_0x395d25[_0x56367f(0x181)](_0x2f3911=>_0x2f3911[_0x56367f(0x171)]===_0x1fe18c)):(_0x395d25=await listDatasets(_0x2f5000['appCode']),_0x2a4fa4>0x0&&(_0x395d25=_0x395d25['filter'](_0x27a2a2=>_0x27a2a2['id']===_0x2a4fa4)),_0x5eca03>0x0&&(_0x395d25=_0x395d25[_0x56367f(0x181)](_0x569efe=>_0x569efe['dbtableConfig']?.[_0x56367f(0x18a)]===_0x5eca03)));const _0x193b2c=_0x395d25[_0x56367f(0x184)](normalizeTarget);if(_0x193b2c['length']===0x0){const _0xb18dbc=_0x1fe18c||(_0x2a4fa4>0x0?_0x56367f(0x16d)+_0x2a4fa4:'dbid='+_0x5eca03);throw CliErrors[_0x56367f(0x194)](_0x56367f(0x193)+_0xb18dbc+'.');}const _0x2a2ec8=_0x2f5000[_0x56367f(0x17e)]('expected-count');if(_0x2a2ec8>0x0&&_0x193b2c['length']!==_0x2a2ec8)throw CliErrors[_0x56367f(0x194)]('Matched\x20'+_0x193b2c[_0x56367f(0x188)]+_0x56367f(0x17c)+_0x2a2ec8+'.');return _0x193b2c;}function a50_0x392a(_0x20454b,_0x2b5faa){_0x20454b=_0x20454b-0x167;const _0x150513=a50_0x1505();let _0x392a11=_0x150513[_0x20454b];return _0x392a11;}function normalizeTarget(_0x191375){const _0x50d804=a50_0x390a5f,_0x3b906b=_0x191375[_0x50d804(0x173)]??{};return{'id':_0x191375['id'],'code':_0x191375['code'],'name':_0x191375[_0x50d804(0x16f)],'description':_0x191375['description'],'source':_0x191375['source'],'dbId':_0x3b906b[_0x50d804(0x18a)],'dbName':_0x3b906b[_0x50d804(0x183)],'tableName':_0x3b906b[_0x50d804(0x189)],'relatedPageCount':Array[_0x50d804(0x18e)](_0x191375[_0x50d804(0x185)])?_0x191375[_0x50d804(0x185)]['length']:undefined};}
1
+ const a50_0x5f1a99=a50_0x3d09;(function(_0x3fc540,_0x1a663f){const _0x4b05fe=a50_0x3d09,_0x55050a=_0x3fc540();while(!![]){try{const _0x241765=parseInt(_0x4b05fe(0xc1))/0x1+-parseInt(_0x4b05fe(0xb8))/0x2+-parseInt(_0x4b05fe(0xa3))/0x3+parseInt(_0x4b05fe(0xce))/0x4*(-parseInt(_0x4b05fe(0x9e))/0x5)+parseInt(_0x4b05fe(0xac))/0x6+-parseInt(_0x4b05fe(0xb1))/0x7*(parseInt(_0x4b05fe(0xd1))/0x8)+parseInt(_0x4b05fe(0xb0))/0x9;if(_0x241765===_0x1a663f)break;else _0x55050a['push'](_0x55050a['shift']());}catch(_0x27113f){_0x55050a['push'](_0x55050a['shift']());}}}(a50_0x4ba4,0xe6f45));import{deleteDataset,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a50_0x3d09(_0x8712,_0xa8aa82){_0x8712=_0x8712-0x9e;const _0x4ba4f5=a50_0x4ba4();let _0x3d093=_0x4ba4f5[_0x8712];return _0x3d093;}const DATASET_ID_FLAG={'name':'id','type':a50_0x5f1a99(0xb9),'description':a50_0x5f1a99(0xbd)},DBID_FLAG={'name':a50_0x5f1a99(0xc9),'type':'number','description':'Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id'},CONFIRM_FLAG={'name':'confirm','type':'boolean','description':a50_0x5f1a99(0xb5)},EXPECTED_COUNT_FLAG={'name':a50_0x5f1a99(0xb6),'type':'number','description':'Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value'};function a50_0x4ba4(){const _0xbd0fe9=['367088sTXyOL','dbid=','130SGBKZU','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','filter','\x20dataset(s);\x20','725238jUbBGk','dbtableConfig','source','map','dbName','Matched\x20','name','length','Deleted\x20','8289918gxTxRT','str','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','id=','15889077hbfajN','56EvaMqZ','code','\x20dataset(s)','validation','Required\x20to\x20execute\x20dataset\x20deletion','expected-count','num','3246498vtJXDz','number','confirm','push','high-risk-write','Dataset\x20id','No\x20undeleted\x20dataset\x20found\x20for\x20','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','bool','770120xdjBBk','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','isArray','dbId','/smartapi/dataset/delete-dataset','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','message','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','dbid','description','tableName','dataset','relationPages','113716DwhzMZ','appCode','Would\x20delete\x20'];a50_0x4ba4=function(){return _0xbd0fe9;};return a50_0x4ba4();}export const datasetDelete={'service':a50_0x5f1a99(0xcc),'command':'delete','description':a50_0x5f1a99(0xc2),'risk':a50_0x5f1a99(0xbc),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x7ddd80){const _0x40bdc6=a50_0x5f1a99,_0x1a7908=_0x7ddd80[_0x40bdc6(0xb7)]('id'),_0x3e518f=_0x7ddd80[_0x40bdc6(0xad)](_0x40bdc6(0xb2)),_0xbf1c83=_0x7ddd80[_0x40bdc6(0xb7)]('dbid'),_0x5b4e8f=[_0x1a7908>0x0,Boolean(_0x3e518f),_0xbf1c83>0x0][_0x40bdc6(0xa1)](Boolean);if(_0x5b4e8f[_0x40bdc6(0xaa)]===0x0)throw CliErrors[_0x40bdc6(0xb4)](_0x40bdc6(0xae));if(_0x5b4e8f[_0x40bdc6(0xaa)]>0x1)throw CliErrors['validation'](_0x40bdc6(0xa0));},async 'dryRun'(_0x3d1136){const _0x17abb9=a50_0x5f1a99,_0x29cdfc=await resolveTargets(_0x3d1136);return{'method':'POST','url':_0x17abb9(0xc5),'body':{'appCode':_0x3d1136[_0x17abb9(0xcf)],'count':_0x29cdfc['length'],'datasets':_0x29cdfc},'description':_0x17abb9(0xd0)+_0x29cdfc[_0x17abb9(0xaa)]+_0x17abb9(0xc8)};},async 'execute'(_0x1739d5){const _0xa45dbc=a50_0x5f1a99;if(!_0x1739d5[_0xa45dbc(0xc0)](_0xa45dbc(0xba)))throw CliErrors[_0xa45dbc(0xb4)](_0xa45dbc(0x9f),_0xa45dbc(0xc6));const _0x5e5344=await resolveTargets(_0x1739d5),_0x288be6=[],_0x65560d=[];for(const _0x4a74e7 of _0x5e5344){try{await deleteDataset(_0x1739d5[_0xa45dbc(0xcf)],_0x4a74e7['id']),_0x288be6[_0xa45dbc(0xbb)](_0x4a74e7);}catch(_0x279996){_0x65560d[_0xa45dbc(0xbb)]({..._0x4a74e7,'error':_0x279996 instanceof Error?_0x279996[_0xa45dbc(0xc7)]:String(_0x279996)});}}if(_0x65560d[_0xa45dbc(0xaa)]>0x0)return{'ok':![],'data':{'requested':_0x5e5344['length'],'deletedCount':_0x288be6[_0xa45dbc(0xaa)],'failedCount':_0x65560d[_0xa45dbc(0xaa)],'deleted':_0x288be6,'failed':_0x65560d},'message':_0xa45dbc(0xab)+_0x288be6[_0xa45dbc(0xaa)]+'/'+_0x5e5344[_0xa45dbc(0xaa)]+_0xa45dbc(0xa2)+_0x65560d[_0xa45dbc(0xaa)]+'\x20failed'};return{'ok':!![],'data':{'requested':_0x5e5344[_0xa45dbc(0xaa)],'deletedCount':_0x288be6[_0xa45dbc(0xaa)],'deleted':_0x288be6},'message':'Deleted\x20'+_0x288be6['length']+_0xa45dbc(0xb3)};}};async function resolveTargets(_0x37e73c){const _0x54c79f=a50_0x5f1a99,_0xfa0fdd=_0x37e73c[_0x54c79f(0xb7)]('id'),_0x47c12e=_0x37e73c[_0x54c79f(0xad)](_0x54c79f(0xb2)),_0x5d0795=_0x37e73c[_0x54c79f(0xb7)](_0x54c79f(0xc9));let _0x3b8fdc;_0x47c12e?(_0x3b8fdc=await listDatasets(_0x37e73c['appCode'],{'code':_0x47c12e}),_0x3b8fdc=_0x3b8fdc[_0x54c79f(0xa1)](_0x558914=>_0x558914[_0x54c79f(0xb2)]===_0x47c12e)):(_0x3b8fdc=await listDatasets(_0x37e73c['appCode']),_0xfa0fdd>0x0&&(_0x3b8fdc=_0x3b8fdc[_0x54c79f(0xa1)](_0x2cb096=>_0x2cb096['id']===_0xfa0fdd)),_0x5d0795>0x0&&(_0x3b8fdc=_0x3b8fdc['filter'](_0x16f467=>_0x16f467[_0x54c79f(0xa4)]?.[_0x54c79f(0xc4)]===_0x5d0795)));const _0x37cdcc=_0x3b8fdc[_0x54c79f(0xa6)](normalizeTarget);if(_0x37cdcc[_0x54c79f(0xaa)]===0x0){const _0x48add3=_0x47c12e||(_0xfa0fdd>0x0?_0x54c79f(0xaf)+_0xfa0fdd:_0x54c79f(0xd2)+_0x5d0795);throw CliErrors[_0x54c79f(0xb4)](_0x54c79f(0xbe)+_0x48add3+'.');}const _0x38b4d7=_0x37e73c[_0x54c79f(0xb7)](_0x54c79f(0xb6));if(_0x38b4d7>0x0&&_0x37cdcc[_0x54c79f(0xaa)]!==_0x38b4d7)throw CliErrors['validation'](_0x54c79f(0xa8)+_0x37cdcc[_0x54c79f(0xaa)]+_0x54c79f(0xbf)+_0x38b4d7+'.');return _0x37cdcc;}function normalizeTarget(_0x1291e7){const _0x3f94dd=a50_0x5f1a99,_0x58d4f8=_0x1291e7[_0x3f94dd(0xa4)]??{};return{'id':_0x1291e7['id'],'code':_0x1291e7[_0x3f94dd(0xb2)],'name':_0x1291e7[_0x3f94dd(0xa9)],'description':_0x1291e7[_0x3f94dd(0xca)],'source':_0x1291e7[_0x3f94dd(0xa5)],'dbId':_0x58d4f8[_0x3f94dd(0xc4)],'dbName':_0x58d4f8[_0x3f94dd(0xa7)],'tableName':_0x58d4f8[_0x3f94dd(0xcb)],'relatedPageCount':Array[_0x3f94dd(0xc3)](_0x1291e7[_0x3f94dd(0xcd)])?_0x1291e7[_0x3f94dd(0xcd)][_0x3f94dd(0xaa)]:undefined};}
@@ -1 +1 @@
1
- function a51_0x4040(_0x1c9a94,_0x28bb67){_0x1c9a94=_0x1c9a94-0x12a;const _0x58f9cc=a51_0x58f9();let _0x4040ec=_0x58f9cc[_0x1c9a94];return _0x4040ec;}const a51_0x41295c=a51_0x4040;(function(_0x199dbe,_0x557c38){const _0x3c49b2=a51_0x4040,_0x3eb76f=_0x199dbe();while(!![]){try{const _0x3d667f=parseInt(_0x3c49b2(0x177))/0x1+-parseInt(_0x3c49b2(0x156))/0x2+parseInt(_0x3c49b2(0x138))/0x3*(parseInt(_0x3c49b2(0x140))/0x4)+-parseInt(_0x3c49b2(0x169))/0x5*(parseInt(_0x3c49b2(0x167))/0x6)+parseInt(_0x3c49b2(0x16a))/0x7*(-parseInt(_0x3c49b2(0x155))/0x8)+parseInt(_0x3c49b2(0x134))/0x9+parseInt(_0x3c49b2(0x14a))/0xa;if(_0x3d667f===_0x557c38)break;else _0x3eb76f['push'](_0x3eb76f['shift']());}catch(_0x180b11){_0x3eb76f['push'](_0x3eb76f['shift']());}}}(a51_0x58f9,0x8fb0b));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x49669f){const _0x3d2900=a51_0x4040;if(_0x49669f[_0x3d2900(0x12f)])return null;const _0x110ede=Boolean(_0x49669f[_0x3d2900(0x164)]!==undefined||_0x49669f['doType']!==undefined);let _0x4ffba3={};if(!_0x110ede&&typeof _0x49669f['extend']===_0x3d2900(0x171))try{_0x4ffba3=JSON[_0x3d2900(0x161)](_0x49669f[_0x3d2900(0x15a)]);}catch{}const _0x16efdb=_0x110ede?_0x49669f[_0x3d2900(0x160)]:_0x49669f[_0x3d2900(0x174)],_0x79008d=_0x110ede?_0x49669f[_0x3d2900(0x164)]:_0x49669f[_0x3d2900(0x160)],_0x8d3e73=_0x110ede?_0x49669f[_0x3d2900(0x137)]:_0x49669f[_0x3d2900(0x162)]||_0x49669f[_0x3d2900(0x141)],_0x329386=_0x110ede?_0x49669f[_0x3d2900(0x16d)]===!![]:_0x4ffba3[_0x3d2900(0x16d)]===!![],_0x532a19=_0x110ede?_0x49669f[_0x3d2900(0x151)]===!![]:_0x4ffba3[_0x3d2900(0x151)]===!![],_0x266054=_0x110ede?_0x49669f['options']??null:_0x4ffba3[_0x3d2900(0x14d)]??null,_0x3d8792={'name':_0x16efdb,'displayName':_0x79008d||_0x16efdb,'type':_0x8d3e73,'dbType':_0x49669f['dbType'],'pk':_0x329386,'required':_0x532a19,'description':_0x49669f[_0x3d2900(0x139)]||undefined};return Array['isArray'](_0x266054)&&_0x266054[_0x3d2900(0x148)]>0x0&&(_0x3d8792['options']=_0x266054),_0x3d8792;}function parseJsonMaybe(_0x30745e){const _0x3cd493=a51_0x4040;if(typeof _0x30745e!==_0x3cd493(0x171))return _0x30745e;try{return JSON[_0x3cd493(0x161)](_0x30745e);}catch{return _0x30745e;}}function normalizeOperationEntry(_0xd679ef,_0x37144f){const _0x1a9b1c=a51_0x4040;if(!_0x37144f||typeof _0x37144f!==_0x1a9b1c(0x13d))return null;if(!_0x37144f['method']||!_0x37144f[_0x1a9b1c(0x157)])return null;const _0x545ef6={'name':_0xd679ef,'method':_0x37144f[_0x1a9b1c(0x168)],'path':_0x37144f[_0x1a9b1c(0x157)]};if(_0x37144f['host'])_0x545ef6[_0x1a9b1c(0x12d)]=_0x37144f[_0x1a9b1c(0x12d)];if(_0x37144f[_0x1a9b1c(0x130)]!=null){const _0x3705d7=parseJsonMaybe(_0x37144f[_0x1a9b1c(0x130)]);_0x545ef6[_0x1a9b1c(0x130)]=_0x3705d7;}if(_0x37144f['responseBody']!=null){const _0x42d0ef=parseJsonMaybe(_0x37144f[_0x1a9b1c(0x150)]);_0x545ef6[_0x1a9b1c(0x150)]=_0x42d0ef;}if(_0x37144f[_0x1a9b1c(0x17b)]!=null)_0x545ef6[_0x1a9b1c(0x17b)]=_0x37144f[_0x1a9b1c(0x17b)];if(_0x37144f['afterScriptId']!=null)_0x545ef6[_0x1a9b1c(0x142)]=_0x37144f[_0x1a9b1c(0x142)];if(Array['isArray'](_0x37144f[_0x1a9b1c(0x172)]))_0x545ef6[_0x1a9b1c(0x172)]=_0x37144f['requestFields'];if(Array['isArray'](_0x37144f[_0x1a9b1c(0x170)]))_0x545ef6['responseFields']=_0x37144f[_0x1a9b1c(0x170)];return _0x545ef6;}function summarizeDbtable(_0x1f23d7){const _0x3ba7be=a51_0x4040,_0x42c62f={},_0x125b00=[_0x3ba7be(0x159),_0x3ba7be(0x12a),_0x3ba7be(0x16f),_0x3ba7be(0x158),_0x3ba7be(0x16d),_0x3ba7be(0x13a),_0x3ba7be(0x14e),_0x3ba7be(0x16c),_0x3ba7be(0x12c),_0x3ba7be(0x13c),_0x3ba7be(0x178),_0x3ba7be(0x147),_0x3ba7be(0x165),_0x3ba7be(0x15b),'dblinkInfoDTO'];for(const _0x1bacc7 of _0x125b00){if(_0x1f23d7[_0x1bacc7]!==undefined)_0x42c62f[_0x1bacc7]=_0x1f23d7[_0x1bacc7];}return typeof _0x42c62f[_0x3ba7be(0x13a)]===_0x3ba7be(0x171)&&_0x42c62f[_0x3ba7be(0x13a)][_0x3ba7be(0x148)]>0x0&&(_0x42c62f['allFieldNames']=_0x42c62f[_0x3ba7be(0x13a)][_0x3ba7be(0x145)](',')[_0x3ba7be(0x136)](_0x3e1618=>_0x3e1618['trim']())['filter'](Boolean)),_0x42c62f;}function a51_0x58f9(){const _0x183fcc=['filter','updateTimeField','host','isArray','deleted','requestBody','modelId','detail','entries','4699170ngpOwc','operations','map','doType','43053fmuAxx','description','allFields','tableComment','creatorIdField','object','title','toField','140jExOfA','dataType','afterScriptId','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','validateRules','split','toDatasetName','modifierIdField','length','relations','15752410LwmyMf','fromField','toTableName','options','logicField','dataset','responseBody','required','sourceType','source','relatedPageInfoList','40BQMUVE','2048532xYDNLo','path','datasetKey','dbId','extend','labelField','dbtableConfig','formatRules','doVersion','indexes','name','parse','type','toFieldLabel','displayName','modifierNameField','columnCodeListWithDeleted','54TCJAWO','method','269585WfZQcx','1370117zTjSMS','push','createTimeField','pkField','str','tableName','responseFields','string','requestFields','alias','code','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','properties','477073nbYFQF','creatorNameField','modelCode','read','beforeScriptId','fields','dbName'];a51_0x58f9=function(){return _0x183fcc;};return a51_0x58f9();}function normalizeRelatedPages(_0x43fbbc){const _0xe6ee69=a51_0x4040;if(!Array[_0xe6ee69(0x12e)](_0x43fbbc))return[];return _0x43fbbc['filter'](_0x125d8e=>_0x125d8e&&typeof _0x125d8e===_0xe6ee69(0x13d))[_0xe6ee69(0x136)](_0x20db08=>({'id':_0x20db08['id'],'type':_0x20db08['type'],'code':_0x20db08[_0xe6ee69(0x174)],'title':_0x20db08[_0xe6ee69(0x13e)],'deleted':_0x20db08['deleted']===!![]}));}export const datasetDetail={'service':a51_0x41295c(0x14f),'command':a51_0x41295c(0x132),'description':a51_0x41295c(0x143),'risk':a51_0x41295c(0x17a),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a51_0x41295c(0x173),'type':'string','description':a51_0x41295c(0x175)}],async 'execute'(_0xc0ff70){const _0x2f6ad1=a51_0x41295c,_0x248d2e=await getDatasetDetail(_0xc0ff70[_0x2f6ad1(0x16e)](_0x2f6ad1(0x174))),_0x2e527b=Array[_0x2f6ad1(0x12e)](_0x248d2e[_0x2f6ad1(0x17c)])?_0x248d2e[_0x2f6ad1(0x17c)]:Array[_0x2f6ad1(0x12e)](_0x248d2e[_0x2f6ad1(0x176)])?_0x248d2e[_0x2f6ad1(0x176)]:[],_0xb8ab1d=_0x2e527b['map'](_0x41510a=>normalizeField(_0x41510a))[_0x2f6ad1(0x12b)](_0x5bc33f=>_0x5bc33f!==null),_0x5f08b7=_0x248d2e[_0x2f6ad1(0x135)]??{},_0xea1524=[];for(const [_0x2fe54f,_0x37cfb8]of Object[_0x2f6ad1(0x133)](_0x5f08b7)){const _0x16267c=normalizeOperationEntry(_0x2fe54f,_0x37cfb8);if(_0x16267c)_0xea1524[_0x2f6ad1(0x16b)](_0x16267c);}const _0x5a1100=_0x248d2e[_0x2f6ad1(0x15c)]??{},_0x222058=_0x248d2e[_0x2f6ad1(0x14f)]??{},_0x10c068=_0x5a1100[_0x2f6ad1(0x159)]!=null?{'id':_0x5a1100['dbId'],'name':_0x5a1100[_0x2f6ad1(0x12a)]??null}:undefined;let _0x1bdfe6;return typeof _0x248d2e[_0x2f6ad1(0x15a)]===_0x2f6ad1(0x171)&&(_0x1bdfe6=parseJsonMaybe(_0x248d2e[_0x2f6ad1(0x15a)])),{'ok':!![],'data':{'id':_0x248d2e[_0x2f6ad1(0x131)]??_0x248d2e['id'],'name':_0x248d2e[_0x2f6ad1(0x160)],'code':_0x248d2e[_0x2f6ad1(0x179)]||_0x248d2e['code'],'doVersion':_0x248d2e[_0x2f6ad1(0x15e)],'description':_0x248d2e[_0x2f6ad1(0x139)]||_0x222058[_0x2f6ad1(0x13b)]||undefined,'source':_0x248d2e[_0x2f6ad1(0x153)]||_0x222058[_0x2f6ad1(0x152)],'table':_0x5a1100[_0x2f6ad1(0x16f)]||_0x222058[_0x2f6ad1(0x16f)],'datasetKey':_0x5a1100['datasetKey'],'pk':_0x5a1100[_0x2f6ad1(0x16d)],'db':_0x10c068,'dbtable':summarizeDbtable(_0x5a1100),'fields':_0xb8ab1d,'operations':_0xea1524,'indexes':Array[_0x2f6ad1(0x12e)](_0x222058[_0x2f6ad1(0x15f)])?_0x222058[_0x2f6ad1(0x15f)]:[],'relations':Array['isArray'](_0x248d2e['relations'])?_0x248d2e[_0x2f6ad1(0x149)][_0x2f6ad1(0x136)](_0x9699cf=>({'fromField':_0x9699cf[_0x2f6ad1(0x14b)],'toDataset':_0x9699cf[_0x2f6ad1(0x146)],'toCode':_0x9699cf['toDatasetCode'],'toTable':_0x9699cf[_0x2f6ad1(0x14c)],'toField':_0x9699cf[_0x2f6ad1(0x13f)],'labelField':_0x9699cf[_0x2f6ad1(0x163)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x248d2e[_0x2f6ad1(0x154)]),...Array[_0x2f6ad1(0x12e)](_0x248d2e['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x248d2e[_0x2f6ad1(0x166)]}:{},'formatRules':Array['isArray'](_0x248d2e['formatRules'])?_0x248d2e[_0x2f6ad1(0x15d)]:[],'validateRules':Array[_0x2f6ad1(0x12e)](_0x248d2e[_0x2f6ad1(0x144)])?_0x248d2e[_0x2f6ad1(0x144)]:[],..._0x1bdfe6!==undefined?{'extend':_0x1bdfe6}:{},'stats':{'fieldCount':_0xb8ab1d[_0x2f6ad1(0x148)],'operationCount':_0xea1524['length']}}};}};
1
+ const a51_0x2acf0d=a51_0x27d7;(function(_0x2497f2,_0x4a1c3e){const _0x46284c=a51_0x27d7,_0xd7fef=_0x2497f2();while(!![]){try{const _0x2dda00=parseInt(_0x46284c(0x140))/0x1+parseInt(_0x46284c(0x159))/0x2+-parseInt(_0x46284c(0x139))/0x3*(parseInt(_0x46284c(0x11a))/0x4)+-parseInt(_0x46284c(0x138))/0x5+parseInt(_0x46284c(0x13a))/0x6+-parseInt(_0x46284c(0x14f))/0x7+-parseInt(_0x46284c(0x144))/0x8*(parseInt(_0x46284c(0x148))/0x9);if(_0x2dda00===_0x4a1c3e)break;else _0xd7fef['push'](_0xd7fef['shift']());}catch(_0xf20263){_0xd7fef['push'](_0xd7fef['shift']());}}}(a51_0x1ec8,0x3c033));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x49109a){const _0x132d1a=a51_0x27d7;if(_0x49109a[_0x132d1a(0x12a)])return null;const _0x274f51=Boolean(_0x49109a[_0x132d1a(0x130)]!==undefined||_0x49109a[_0x132d1a(0x13f)]!==undefined);let _0x1c6e47={};if(!_0x274f51&&typeof _0x49109a[_0x132d1a(0x12e)]===_0x132d1a(0x160))try{_0x1c6e47=JSON[_0x132d1a(0x145)](_0x49109a[_0x132d1a(0x12e)]);}catch{}const _0x270f92=_0x274f51?_0x49109a['name']:_0x49109a['code'],_0x115332=_0x274f51?_0x49109a[_0x132d1a(0x130)]:_0x49109a['name'],_0x2ba396=_0x274f51?_0x49109a[_0x132d1a(0x13f)]:_0x49109a['type']||_0x49109a[_0x132d1a(0x14c)],_0x26df0=_0x274f51?_0x49109a[_0x132d1a(0x143)]===!![]:_0x1c6e47[_0x132d1a(0x143)]===!![],_0x1ff15a=_0x274f51?_0x49109a[_0x132d1a(0x14b)]===!![]:_0x1c6e47['required']===!![],_0x3a45f8=_0x274f51?_0x49109a[_0x132d1a(0x14e)]??null:_0x1c6e47[_0x132d1a(0x14e)]??null,_0xd5d568={'name':_0x270f92,'displayName':_0x115332||_0x270f92,'type':_0x2ba396,'dbType':_0x49109a[_0x132d1a(0x125)],'pk':_0x26df0,'required':_0x1ff15a,'description':_0x49109a[_0x132d1a(0x15b)]||undefined};return Array[_0x132d1a(0x128)](_0x3a45f8)&&_0x3a45f8[_0x132d1a(0x14a)]>0x0&&(_0xd5d568[_0x132d1a(0x14e)]=_0x3a45f8),_0xd5d568;}function parseJsonMaybe(_0x29f394){const _0x55978c=a51_0x27d7;if(typeof _0x29f394!=='string')return _0x29f394;try{return JSON[_0x55978c(0x145)](_0x29f394);}catch{return _0x29f394;}}function normalizeOperationEntry(_0x48c6bd,_0x21d7c2){const _0x38a708=a51_0x27d7;if(!_0x21d7c2||typeof _0x21d7c2!==_0x38a708(0x154))return null;if(!_0x21d7c2['method']||!_0x21d7c2[_0x38a708(0x11f)])return null;const _0x514077={'name':_0x48c6bd,'method':_0x21d7c2[_0x38a708(0x150)],'path':_0x21d7c2['path']};if(_0x21d7c2[_0x38a708(0x12f)])_0x514077[_0x38a708(0x12f)]=_0x21d7c2[_0x38a708(0x12f)];if(_0x21d7c2['requestBody']!=null){const _0x14e677=parseJsonMaybe(_0x21d7c2[_0x38a708(0x15c)]);_0x514077[_0x38a708(0x15c)]=_0x14e677;}if(_0x21d7c2[_0x38a708(0x133)]!=null){const _0x15999f=parseJsonMaybe(_0x21d7c2[_0x38a708(0x133)]);_0x514077[_0x38a708(0x133)]=_0x15999f;}if(_0x21d7c2[_0x38a708(0x129)]!=null)_0x514077['beforeScriptId']=_0x21d7c2[_0x38a708(0x129)];if(_0x21d7c2[_0x38a708(0x118)]!=null)_0x514077[_0x38a708(0x118)]=_0x21d7c2[_0x38a708(0x118)];if(Array[_0x38a708(0x128)](_0x21d7c2[_0x38a708(0x11b)]))_0x514077[_0x38a708(0x11b)]=_0x21d7c2['requestFields'];if(Array[_0x38a708(0x128)](_0x21d7c2['responseFields']))_0x514077['responseFields']=_0x21d7c2['responseFields'];return _0x514077;}function summarizeDbtable(_0x20acb7){const _0x10550e=a51_0x27d7,_0x36713c={},_0x29a6b5=[_0x10550e(0x13d),_0x10550e(0x13b),_0x10550e(0x124),_0x10550e(0x12d),_0x10550e(0x143),_0x10550e(0x134),_0x10550e(0x135),'createTimeField','updateTimeField',_0x10550e(0x119),_0x10550e(0x151),_0x10550e(0x127),_0x10550e(0x156),_0x10550e(0x142),_0x10550e(0x136)];for(const _0x21987f of _0x29a6b5){if(_0x20acb7[_0x21987f]!==undefined)_0x36713c[_0x21987f]=_0x20acb7[_0x21987f];}return typeof _0x36713c[_0x10550e(0x134)]===_0x10550e(0x160)&&_0x36713c[_0x10550e(0x134)][_0x10550e(0x14a)]>0x0&&(_0x36713c[_0x10550e(0x14d)]=_0x36713c[_0x10550e(0x134)][_0x10550e(0x158)](',')['map'](_0x85b138=>_0x85b138[_0x10550e(0x122)]())[_0x10550e(0x12c)](Boolean)),_0x36713c;}function normalizeRelatedPages(_0x1b3065){const _0x211328=a51_0x27d7;if(!Array['isArray'](_0x1b3065))return[];return _0x1b3065[_0x211328(0x12c)](_0x5f45c5=>_0x5f45c5&&typeof _0x5f45c5===_0x211328(0x154))[_0x211328(0x137)](_0x47f906=>({'id':_0x47f906['id'],'type':_0x47f906[_0x211328(0x11c)],'code':_0x47f906['code'],'title':_0x47f906['title'],'deleted':_0x47f906[_0x211328(0x12a)]===!![]}));}function a51_0x1ec8(){const _0xaeccf3=['map','1528590wOvBow','41466JiMVFS','1359060NvlyOd','dbName','formatRules','dbId','indexes','doType','388247xhsUhG','toDatasetName','labelField','pkField','8gFdWDA','parse','dataset','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','2415564ypeysD','properties','length','required','dataType','allFieldNames','options','742546bLeZku','method','creatorNameField','alias','detail','object','columnCodeListWithDeleted','modifierNameField','toFieldLabel','split','650136KoAoQI','str','description','requestBody','modelId','code','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','string','afterScriptId','creatorIdField','4KsYDly','requestFields','type','read','validateRules','path','fromField','push','trim','sourceType','tableName','dbType','name','modifierIdField','isArray','beforeScriptId','deleted','modelCode','filter','datasetKey','extend','host','displayName','source','fields','responseBody','allFields','logicField','dblinkInfoDTO'];a51_0x1ec8=function(){return _0xaeccf3;};return a51_0x1ec8();}function a51_0x27d7(_0x4341b8,_0x7a4ff5){_0x4341b8=_0x4341b8-0x118;const _0x1ec860=a51_0x1ec8();let _0x27d7b0=_0x1ec860[_0x4341b8];return _0x27d7b0;}export const datasetDetail={'service':'dataset','command':a51_0x2acf0d(0x153),'description':a51_0x2acf0d(0x147),'risk':a51_0x2acf0d(0x11d),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a51_0x2acf0d(0x152),'type':a51_0x2acf0d(0x160),'description':a51_0x2acf0d(0x15f)}],async 'execute'(_0xad79bb){const _0x19a670=a51_0x2acf0d,_0x1b396c=await getDatasetDetail(_0xad79bb[_0x19a670(0x15a)](_0x19a670(0x15e))),_0x18ca98=Array['isArray'](_0x1b396c[_0x19a670(0x132)])?_0x1b396c[_0x19a670(0x132)]:Array[_0x19a670(0x128)](_0x1b396c['properties'])?_0x1b396c[_0x19a670(0x149)]:[],_0x1cd756=_0x18ca98[_0x19a670(0x137)](_0x18f606=>normalizeField(_0x18f606))[_0x19a670(0x12c)](_0x3975f8=>_0x3975f8!==null),_0x20c5b4=_0x1b396c['operations']??{},_0x5557c1=[];for(const [_0x4311b5,_0x5f515e]of Object['entries'](_0x20c5b4)){const _0x195765=normalizeOperationEntry(_0x4311b5,_0x5f515e);if(_0x195765)_0x5557c1[_0x19a670(0x121)](_0x195765);}const _0x27765a=_0x1b396c['dbtableConfig']??{},_0x4b9b60=_0x1b396c[_0x19a670(0x146)]??{},_0x42116e=_0x27765a[_0x19a670(0x13d)]!=null?{'id':_0x27765a['dbId'],'name':_0x27765a[_0x19a670(0x13b)]??null}:undefined;let _0x30016a;return typeof _0x1b396c[_0x19a670(0x12e)]==='string'&&(_0x30016a=parseJsonMaybe(_0x1b396c[_0x19a670(0x12e)])),{'ok':!![],'data':{'id':_0x1b396c[_0x19a670(0x15d)]??_0x1b396c['id'],'name':_0x1b396c[_0x19a670(0x126)],'code':_0x1b396c[_0x19a670(0x12b)]||_0x1b396c[_0x19a670(0x15e)],'doVersion':_0x1b396c['doVersion'],'description':_0x1b396c[_0x19a670(0x15b)]||_0x4b9b60['tableComment']||undefined,'source':_0x1b396c[_0x19a670(0x131)]||_0x4b9b60[_0x19a670(0x123)],'table':_0x27765a[_0x19a670(0x124)]||_0x4b9b60['tableName'],'datasetKey':_0x27765a[_0x19a670(0x12d)],'pk':_0x27765a[_0x19a670(0x143)],'db':_0x42116e,'dbtable':summarizeDbtable(_0x27765a),'fields':_0x1cd756,'operations':_0x5557c1,'indexes':Array['isArray'](_0x4b9b60[_0x19a670(0x13e)])?_0x4b9b60['indexes']:[],'relations':Array[_0x19a670(0x128)](_0x1b396c['relations'])?_0x1b396c['relations']['map'](_0x3413f5=>({'fromField':_0x3413f5[_0x19a670(0x120)],'toDataset':_0x3413f5[_0x19a670(0x141)],'toCode':_0x3413f5['toDatasetCode'],'toTable':_0x3413f5['toTableName'],'toField':_0x3413f5['toField'],'labelField':_0x3413f5[_0x19a670(0x157)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x1b396c['relatedPageInfoList']),...Array[_0x19a670(0x128)](_0x1b396c['columnCodeListWithDeleted'])?{'columnCodeListWithDeleted':_0x1b396c[_0x19a670(0x155)]}:{},'formatRules':Array[_0x19a670(0x128)](_0x1b396c[_0x19a670(0x13c)])?_0x1b396c[_0x19a670(0x13c)]:[],'validateRules':Array[_0x19a670(0x128)](_0x1b396c[_0x19a670(0x11e)])?_0x1b396c[_0x19a670(0x11e)]:[],..._0x30016a!==undefined?{'extend':_0x30016a}:{},'stats':{'fieldCount':_0x1cd756[_0x19a670(0x14a)],'operationCount':_0x5557c1[_0x19a670(0x14a)]}}};}};