@lovrabet/rabetbase-cli 2.2.4-beta.2 → 2.2.4-beta.3

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 (205) 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/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/extend-update.js +1 -1
  55. package/lib/commands/dataset/field-update.js +1 -1
  56. package/lib/commands/dataset/index.js +1 -1
  57. package/lib/commands/dataset/list.js +1 -1
  58. package/lib/commands/dataset/operations.js +1 -1
  59. package/lib/commands/dataset/relation-create.js +1 -1
  60. package/lib/commands/dataset/relation-delete.js +1 -1
  61. package/lib/commands/dataset/relation-shared.js +1 -1
  62. package/lib/commands/dataset/relation-update.js +1 -1
  63. package/lib/commands/dataset/relations.js +1 -1
  64. package/lib/commands/dataset/rename.js +1 -1
  65. package/lib/commands/db/analyze-cancel.js +1 -1
  66. package/lib/commands/db/analyze-start.js +1 -1
  67. package/lib/commands/db/analyze-status.js +1 -1
  68. package/lib/commands/db/create.js +1 -1
  69. package/lib/commands/db/delete.js +1 -1
  70. package/lib/commands/db/detail.js +1 -1
  71. package/lib/commands/db/diff.js +1 -1
  72. package/lib/commands/db/index.js +1 -1
  73. package/lib/commands/db/list.js +1 -1
  74. package/lib/commands/db/shared.js +1 -1
  75. package/lib/commands/db/tables.js +1 -1
  76. package/lib/commands/db/test.js +1 -1
  77. package/lib/commands/db/update.js +1 -1
  78. package/lib/commands/doctor.js +1 -1
  79. package/lib/commands/init/index.js +1 -1
  80. package/lib/commands/issue/index.js +1 -1
  81. package/lib/commands/issue/nudge.js +1 -1
  82. package/lib/commands/issue/report.js +1 -1
  83. package/lib/commands/issue/shared.js +1 -1
  84. package/lib/commands/logs/index.js +1 -1
  85. package/lib/commands/menu/index.js +1 -1
  86. package/lib/commands/menu/list.js +1 -1
  87. package/lib/commands/menu/shared/compare-table.js +1 -1
  88. package/lib/commands/menu/shared/index.js +1 -1
  89. package/lib/commands/menu/shared/inquirer.js +1 -1
  90. package/lib/commands/menu/shared/local-pages.js +1 -1
  91. package/lib/commands/menu/shared/logic.js +1 -1
  92. package/lib/commands/menu/shared/service.js +1 -1
  93. package/lib/commands/menu/shared/sync-core.js +1 -1
  94. package/lib/commands/menu/shared/update-core.js +1 -1
  95. package/lib/commands/menu/shared/valid-url.js +1 -1
  96. package/lib/commands/menu/sync.js +1 -1
  97. package/lib/commands/menu/update.js +1 -1
  98. package/lib/commands/page/generate-start.js +1 -1
  99. package/lib/commands/page/generate-status.js +1 -1
  100. package/lib/commands/page/index.js +1 -1
  101. package/lib/commands/page/pull.js +1 -1
  102. package/lib/commands/page/push.js +1 -1
  103. package/lib/commands/page/relation-audit.js +1 -1
  104. package/lib/commands/page/shared.js +1 -1
  105. package/lib/commands/page/standard-page-status.js +1 -1
  106. package/lib/commands/page/sync.js +1 -1
  107. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  108. package/lib/commands/project/create/format-elapsed.js +1 -1
  109. package/lib/commands/project/create/main.js +1 -1
  110. package/lib/commands/project/create/non-interactive.js +1 -1
  111. package/lib/commands/project/create/project-template-path.js +1 -1
  112. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  113. package/lib/commands/project/create/use-format-code.js +1 -1
  114. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  115. package/lib/commands/project/index.js +1 -1
  116. package/lib/commands/project/init.js +1 -1
  117. package/lib/commands/project/upgrade.js +1 -1
  118. package/lib/commands/registry.js +1 -1
  119. package/lib/commands/run/index.js +1 -1
  120. package/lib/commands/schema.js +1 -1
  121. package/lib/commands/skill/index.js +1 -1
  122. package/lib/commands/sql/create.js +1 -1
  123. package/lib/commands/sql/delete.js +1 -1
  124. package/lib/commands/sql/detail.js +1 -1
  125. package/lib/commands/sql/exec.js +1 -1
  126. package/lib/commands/sql/index.js +1 -1
  127. package/lib/commands/sql/list.js +1 -1
  128. package/lib/commands/sql/pull.js +1 -1
  129. package/lib/commands/sql/push.js +1 -1
  130. package/lib/commands/sql/save.js +1 -1
  131. package/lib/commands/sql/shared.js +1 -1
  132. package/lib/commands/sql/status.js +1 -1
  133. package/lib/commands/sql/validate.js +1 -1
  134. package/lib/config/schema.js +1 -1
  135. package/lib/constant/cdn.js +1 -1
  136. package/lib/constant/cli.js +1 -1
  137. package/lib/constant/defaults.js +1 -1
  138. package/lib/constant/domain.js +1 -1
  139. package/lib/constant/env.js +1 -1
  140. package/lib/constant/output.js +1 -1
  141. package/lib/constant/paths.js +1 -1
  142. package/lib/constant/risk.js +1 -1
  143. package/lib/context.js +1 -1
  144. package/lib/core/alias-resolver.js +1 -1
  145. package/lib/core/api-client.js +1 -1
  146. package/lib/core/bff/config.js +1 -1
  147. package/lib/core/bff/file-system.js +1 -1
  148. package/lib/core/bff/hash.js +1 -1
  149. package/lib/core/bff/lock.js +1 -1
  150. package/lib/core/bff/utils.js +1 -1
  151. package/lib/core/db-resolver.js +1 -1
  152. package/lib/core/page/file-system.js +1 -1
  153. package/lib/core/page/hash.js +1 -1
  154. package/lib/core/page/lock.js +1 -1
  155. package/lib/core/sql-sync/config.js +1 -1
  156. package/lib/core/sql-sync/file-system.js +1 -1
  157. package/lib/core/sql-sync/hash.js +1 -1
  158. package/lib/core/sql-sync/lock.js +1 -1
  159. package/lib/core/sql-sync/utils.js +1 -1
  160. package/lib/core/sql-validator.js +1 -1
  161. package/lib/errors.js +1 -1
  162. package/lib/framework/build-all-flags.js +1 -1
  163. package/lib/framework/flags.js +1 -1
  164. package/lib/framework/help.js +1 -1
  165. package/lib/framework/index.js +1 -1
  166. package/lib/framework/output.js +1 -1
  167. package/lib/framework/response.js +1 -1
  168. package/lib/framework/runner-alias.js +1 -1
  169. package/lib/framework/runner.js +1 -1
  170. package/lib/framework/schema-export.js +1 -1
  171. package/lib/framework/types.js +1 -1
  172. package/lib/generated/build-info.js +1 -1
  173. package/lib/help.js +1 -1
  174. package/lib/skills/main.js +1 -1
  175. package/lib/skills/npx-skills-add.js +1 -1
  176. package/lib/telemetry/cli-command-trace.js +1 -1
  177. package/lib/telemetry/cli-help-trace.js +1 -1
  178. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  179. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  180. package/lib/telemetry/send-cli-trace-log.js +1 -1
  181. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  182. package/lib/utils/ai_config.js +1 -1
  183. package/lib/utils/apply-jq-filter.js +1 -1
  184. package/lib/utils/cdn-config.js +1 -1
  185. package/lib/utils/check-sdk-version.js +1 -1
  186. package/lib/utils/cli-version-check.js +1 -1
  187. package/lib/utils/cli-version-policy.js +1 -1
  188. package/lib/utils/config.js +1 -1
  189. package/lib/utils/copy-directory.js +1 -1
  190. package/lib/utils/entity-with-id.js +1 -1
  191. package/lib/utils/file-utils.js +1 -1
  192. package/lib/utils/guides-cdn.js +1 -1
  193. package/lib/utils/http-client.js +1 -1
  194. package/lib/utils/is-non-interactive.js +1 -1
  195. package/lib/utils/logger.js +1 -1
  196. package/lib/utils/params.js +1 -1
  197. package/lib/utils/platform.js +1 -1
  198. package/lib/utils/rules-cdn.js +1 -1
  199. package/lib/utils/sleep.js +1 -1
  200. package/lib/utils/template-replacer.js +1 -1
  201. package/lib/utils/update-notice.js +1 -1
  202. package/lib/utils/version.js +1 -1
  203. package/lib/utils/with-active-cookie.js +1 -1
  204. package/lib/utils/write-cli-side-channel.js +1 -1
  205. package/package.json +1 -1
@@ -1 +1 @@
1
- const a33_0x5cc84f=a33_0xcb77;(function(_0x377c34,_0x74f5a7){const _0x2f51e0=a33_0xcb77,_0x281e76=_0x377c34();while(!![]){try{const _0x9bc292=parseInt(_0x2f51e0(0x1a0))/0x1*(parseInt(_0x2f51e0(0x19a))/0x2)+-parseInt(_0x2f51e0(0x19c))/0x3*(parseInt(_0x2f51e0(0x1a3))/0x4)+parseInt(_0x2f51e0(0x1a1))/0x5*(parseInt(_0x2f51e0(0x19b))/0x6)+-parseInt(_0x2f51e0(0x1a5))/0x7+parseInt(_0x2f51e0(0x19e))/0x8*(parseInt(_0x2f51e0(0x194))/0x9)+-parseInt(_0x2f51e0(0x1ad))/0xa*(-parseInt(_0x2f51e0(0x192))/0xb)+parseInt(_0x2f51e0(0x199))/0xc*(-parseInt(_0x2f51e0(0x1ab))/0xd);if(_0x9bc292===_0x74f5a7)break;else _0x281e76['push'](_0x281e76['shift']());}catch(_0x4d1af0){_0x281e76['push'](_0x281e76['shift']());}}}(a33_0x18db,0xda838));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';function a33_0xcb77(_0x4d9d0b,_0xe09e77){_0x4d9d0b=_0x4d9d0b-0x18f;const _0x18dbe7=a33_0x18db();let _0xcb7741=_0x18dbe7[_0x4d9d0b];return _0xcb7741;}function a33_0x18db(){const _0x3126f1=['lockKey','push','apiDir','functions','4187014PKEmun','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','1064060qvJkAX','\x20added,\x20','\x20remote-only','length','scriptsRoot','lockFilePath','alias','All\x20BFF\x20scripts\x20are\x20in\x20sync.','datasetCode','all','44XveNYr','bool','13941SZaUlh','appCode','read','has','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','12PkmEcD','629726pIpdAP','2604iuQPqj','3LTNtnN','bff','3592XTXvNM','\x20unchanged','2xJBkKr','1910tEVnlA','map','1133708IvgMSl','boolean','2912714NSpbGc','status'];a33_0x18db=function(){return _0x3126f1;};return a33_0x18db();}import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a33_0x5cc84f(0x19d),'command':a33_0x5cc84f(0x1a6),'description':a33_0x5cc84f(0x1ac),'risk':a33_0x5cc84f(0x196),'flags':[{'name':'remote','type':a33_0x5cc84f(0x1a4),'description':a33_0x5cc84f(0x198)}],async 'execute'(_0x7c5d02){const _0x84348f=a33_0x5cc84f,_0x3a61b5=loadBffProjectConfig(_0x7c5d02[_0x84348f(0x195)]),_0x33c213=await readBffLockFile(_0x3a61b5[_0x84348f(0x1b2)]),{appLock:_0x4b0bcf}=ensureLockScope(_0x33c213??createEmptyBffLock(),_0x7c5d02[_0x84348f(0x195)],_0x3a61b5[_0x84348f(0x1b1)],_0x84348f(0x1a6)),_0x1eeb59=await scanLocalBffFunctions(_0x3a61b5),_0x3e8286=[],_0x263a91=[],_0x121806=[];for(const _0x2269b6 of _0x1eeb59){const _0x144275=await computeFileHash(_0x2269b6['filePath']),_0x4158ba=_0x4b0bcf['functions'][_0x2269b6[_0x84348f(0x1a7)]];if(!_0x4158ba)_0x3e8286[_0x84348f(0x1a8)](_0x2269b6[_0x84348f(0x1a7)]);else _0x4158ba['hash']!==_0x144275?_0x263a91[_0x84348f(0x1a8)](_0x2269b6[_0x84348f(0x1a7)]):_0x121806[_0x84348f(0x1a8)](_0x2269b6[_0x84348f(0x1a7)]);}const _0x2df759=[];if(_0x7c5d02[_0x84348f(0x193)]('remote')){const _0x336255=loadAliasMap(_0x7c5d02['apiDir'],undefined,resolveApiFilePath(_0x7c5d02[_0x84348f(0x1a9)],_0x7c5d02['appCode'])),_0xe194b=new Map(_0x336255[_0x84348f(0x1a2)](_0x117cf4=>[_0x117cf4[_0x84348f(0x190)],_0x117cf4[_0x84348f(0x1b3)]])),[_0x5e2fff,_0x1774da]=await Promise[_0x84348f(0x191)]([listBffScripts(_0x7c5d02['appCode']),getBffScriptStatistics(_0x7c5d02[_0x84348f(0x195)])]),_0xfaa2b1=createHookLocationMap(_0x1774da),_0x24b29e=new Set(_0x1eeb59[_0x84348f(0x1a2)](_0x4336f6=>_0x4336f6[_0x84348f(0x1a7)]));for(const _0x8a5548 of _0x5e2fff){const _0x2f3b25=resolveRemoteScriptTarget(_0x3a61b5,_0x8a5548,_0xfaa2b1,_0x4b0bcf[_0x84348f(0x1aa)],_0xe194b);_0x2f3b25&&!_0x24b29e[_0x84348f(0x197)](_0x2f3b25[_0x84348f(0x1a7)])&&_0x2df759[_0x84348f(0x1a8)](_0x2f3b25[_0x84348f(0x1a7)]);}}const _0x176ff3=_0x3e8286[_0x84348f(0x1b0)]===0x0&&_0x263a91[_0x84348f(0x1b0)]===0x0&&_0x2df759[_0x84348f(0x1b0)]===0x0;return{'ok':!![],'data':{'added':_0x3e8286,'modified':_0x263a91,'unchanged':_0x121806,'remoteOnly':_0x2df759},'message':_0x176ff3?_0x84348f(0x18f):_0x3e8286[_0x84348f(0x1b0)]+_0x84348f(0x1ae)+_0x263a91['length']+'\x20modified,\x20'+_0x121806[_0x84348f(0x1b0)]+_0x84348f(0x19f)+(_0x2df759[_0x84348f(0x1b0)]>0x0?',\x20'+_0x2df759[_0x84348f(0x1b0)]+_0x84348f(0x1af):'')};}};
1
+ const a33_0x3e0b3b=a33_0x1006;(function(_0x10d96d,_0x5105a1){const _0x52af6c=a33_0x1006,_0x31c12a=_0x10d96d();while(!![]){try{const _0x125325=-parseInt(_0x52af6c(0x144))/0x1+parseInt(_0x52af6c(0x12f))/0x2+parseInt(_0x52af6c(0x123))/0x3+parseInt(_0x52af6c(0x13e))/0x4*(parseInt(_0x52af6c(0x121))/0x5)+parseInt(_0x52af6c(0x133))/0x6*(parseInt(_0x52af6c(0x129))/0x7)+-parseInt(_0x52af6c(0x127))/0x8*(-parseInt(_0x52af6c(0x12e))/0x9)+parseInt(_0x52af6c(0x128))/0xa*(-parseInt(_0x52af6c(0x131))/0xb);if(_0x125325===_0x5105a1)break;else _0x31c12a['push'](_0x31c12a['shift']());}catch(_0x1e8f16){_0x31c12a['push'](_0x31c12a['shift']());}}}(a33_0x4103,0xd9c99));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';function a33_0x4103(){const _0x396419=['\x20unchanged','815094iJwsmu','575818rYBKaA','apiDir','495xnHxnA','lockKey','12714fRhWFt','functions','length','hash','bff','read','boolean','alias','remote','\x20modified,\x20','lockFilePath','5199760LyWdxB','filePath','push','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','map','status','42061nfTmjd','5cXHWff','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','228924GKBknm','datasetCode','has','appCode','72KApkLZ','707360pJShFr','5411ySBabH','bool','all','\x20remote-only'];a33_0x4103=function(){return _0x396419;};return a33_0x4103();}import{loadBffProjectConfig}from'../../core/bff/config.js';function a33_0x1006(_0x1c32bd,_0x2f7e46){_0x1c32bd=_0x1c32bd-0x121;const _0x41038d=a33_0x4103();let _0x1006bc=_0x41038d[_0x1c32bd];return _0x1006bc;}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_0x3e0b3b(0x137),'command':a33_0x3e0b3b(0x143),'description':a33_0x3e0b3b(0x141),'risk':a33_0x3e0b3b(0x138),'flags':[{'name':a33_0x3e0b3b(0x13b),'type':a33_0x3e0b3b(0x139),'description':a33_0x3e0b3b(0x122)}],async 'execute'(_0x1dc99e){const _0x212f49=a33_0x3e0b3b,_0xda243f=loadBffProjectConfig(_0x1dc99e[_0x212f49(0x126)]),_0x114658=await readBffLockFile(_0xda243f[_0x212f49(0x13d)]),{appLock:_0x3fc065}=ensureLockScope(_0x114658??createEmptyBffLock(),_0x1dc99e['appCode'],_0xda243f['scriptsRoot'],_0x212f49(0x143)),_0x7f230d=await scanLocalBffFunctions(_0xda243f),_0x1a218b=[],_0x12948f=[],_0x1cbc41=[];for(const _0x2957c5 of _0x7f230d){const _0x494323=await computeFileHash(_0x2957c5[_0x212f49(0x13f)]),_0x5b9d01=_0x3fc065['functions'][_0x2957c5[_0x212f49(0x132)]];if(!_0x5b9d01)_0x1a218b[_0x212f49(0x140)](_0x2957c5[_0x212f49(0x132)]);else _0x5b9d01[_0x212f49(0x136)]!==_0x494323?_0x12948f[_0x212f49(0x140)](_0x2957c5[_0x212f49(0x132)]):_0x1cbc41[_0x212f49(0x140)](_0x2957c5[_0x212f49(0x132)]);}const _0xa2b4f9=[];if(_0x1dc99e[_0x212f49(0x12a)](_0x212f49(0x13b))){const _0x19e93a=loadAliasMap(_0x1dc99e['apiDir'],undefined,resolveApiFilePath(_0x1dc99e[_0x212f49(0x130)],_0x1dc99e['appCode'])),_0x144d66=new Map(_0x19e93a[_0x212f49(0x142)](_0x2529d6=>[_0x2529d6[_0x212f49(0x124)],_0x2529d6[_0x212f49(0x13a)]])),[_0x1591da,_0xa4f626]=await Promise[_0x212f49(0x12b)]([listBffScripts(_0x1dc99e[_0x212f49(0x126)]),getBffScriptStatistics(_0x1dc99e['appCode'])]),_0x17b592=createHookLocationMap(_0xa4f626),_0x1d7a6f=new Set(_0x7f230d['map'](_0x2a1c6a=>_0x2a1c6a[_0x212f49(0x132)]));for(const _0x39ffc3 of _0x1591da){const _0x5c54e7=resolveRemoteScriptTarget(_0xda243f,_0x39ffc3,_0x17b592,_0x3fc065[_0x212f49(0x134)],_0x144d66);_0x5c54e7&&!_0x1d7a6f[_0x212f49(0x125)](_0x5c54e7[_0x212f49(0x132)])&&_0xa2b4f9[_0x212f49(0x140)](_0x5c54e7[_0x212f49(0x132)]);}}const _0x120c13=_0x1a218b[_0x212f49(0x135)]===0x0&&_0x12948f[_0x212f49(0x135)]===0x0&&_0xa2b4f9[_0x212f49(0x135)]===0x0;return{'ok':!![],'data':{'added':_0x1a218b,'modified':_0x12948f,'unchanged':_0x1cbc41,'remoteOnly':_0xa2b4f9},'message':_0x120c13?'All\x20BFF\x20scripts\x20are\x20in\x20sync.':_0x1a218b[_0x212f49(0x135)]+'\x20added,\x20'+_0x12948f[_0x212f49(0x135)]+_0x212f49(0x13c)+_0x1cbc41[_0x212f49(0x135)]+_0x212f49(0x12d)+(_0xa2b4f9[_0x212f49(0x135)]>0x0?',\x20'+_0xa2b4f9[_0x212f49(0x135)]+_0x212f49(0x12c):'')};}};
@@ -1 +1 @@
1
- const a34_0x2757d2=a34_0x28a8;(function(_0x3d382,_0x1ad3fb){const _0xb7628d=a34_0x28a8,_0x2b04da=_0x3d382();while(!![]){try{const _0x1a807a=parseInt(_0xb7628d(0x1d7))/0x1+-parseInt(_0xb7628d(0x1e5))/0x2+-parseInt(_0xb7628d(0x1ad))/0x3*(parseInt(_0xb7628d(0x1ab))/0x4)+parseInt(_0xb7628d(0x1e2))/0x5+parseInt(_0xb7628d(0x1d1))/0x6+parseInt(_0xb7628d(0x1b7))/0x7*(parseInt(_0xb7628d(0x1b6))/0x8)+-parseInt(_0xb7628d(0x1e0))/0x9;if(_0x1a807a===_0x1ad3fb)break;else _0x2b04da['push'](_0x2b04da['shift']());}catch(_0x1c9369){_0x2b04da['push'](_0x2b04da['shift']());}}}(a34_0xb923,0xe1c4e));import a34_0x1a3141 from'chalk';import a34_0x59beef from'ora';import a34_0x1e6e68 from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x230f06=a34_0x28a8;return GIT_COMMIT!==_0x230f06(0x1ef)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x23e28d=a34_0x28a8,_0x437282=process[_0x23e28d(0x1d9)][_0x23e28d(0x1f2)]();if(_0x437282[_0x23e28d(0x1db)](_0x23e28d(0x1d6)))return _0x23e28d(0x1d6);return'npm';}const updateFlags=[{'name':a34_0x2757d2(0x1ce),'type':a34_0x2757d2(0x1f0),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a34_0x2757d2(0x1c7),'type':a34_0x2757d2(0x1b2),'description':a34_0x2757d2(0x1b8)},{'name':'no-skills','type':a34_0x2757d2(0x1f0),'description':a34_0x2757d2(0x1a6),'default':![]},{'name':a34_0x2757d2(0x1a3),'type':a34_0x2757d2(0x1f0),'description':a34_0x2757d2(0x1e3),'default':!![],'hidden':!![]}];function getRequestedVersion(_0x310ee7){const _0x1955ee=a34_0x2757d2;return _0x310ee7[_0x1955ee(0x1d5)](_0x1955ee(0x1c7))['trim']();}function shouldSkipOfficialSkill(_0x219236){const _0x4964a3=a34_0x2757d2;return _0x219236[_0x4964a3(0x1c6)](_0x4964a3(0x1cb))||_0x219236['flag']('skills')===![];}function a34_0x28a8(_0x398355,_0x2406c2){_0x398355=_0x398355-0x1a1;const _0xb9230e=a34_0xb923();let _0x28a87f=_0xb9230e[_0x398355];return _0x28a87f;}async function validateUpdateFlags(_0x4bc275){const _0x573cab=a34_0x2757d2,_0x29085c=_0x4bc275['bool'](_0x573cab(0x1ce)),_0x3b7be2=getRequestedVersion(_0x4bc275);if(_0x29085c&&_0x3b7be2)throw CliErrors['validation']('--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.',_0x573cab(0x1c0));if(_0x3b7be2&&!a34_0x1e6e68[_0x573cab(0x1d2)](_0x3b7be2))throw CliErrors[_0x573cab(0x1ac)](_0x573cab(0x1bd)+_0x3b7be2,_0x573cab(0x1df));}async function fetchNpmDistTags(){const _0x3276a5=a34_0x2757d2;try{const _0xc51662=await fetch('https://registry.npmjs.org/-/package/'+encodeURIComponent(NPM_PACKAGE_NAME)+_0x3276a5(0x1be),{'signal':AbortSignal['timeout'](0x2710)});if(!_0xc51662['ok'])return null;const _0xe3ade3=await _0xc51662['json']();if(!_0xe3ade3||typeof _0xe3ade3!=='object')return null;return Object[_0x3276a5(0x1cd)](Object[_0x3276a5(0x1bf)](_0xe3ade3)[_0x3276a5(0x1cc)](([,_0x27a174])=>typeof _0x27a174===_0x3276a5(0x1b2)&&_0x27a174['trim']()[_0x3276a5(0x1b5)]>0x0)[_0x3276a5(0x1e9)](([_0x3fc8e7,_0x3dbf0c])=>[_0x3fc8e7,String(_0x3dbf0c)[_0x3276a5(0x1eb)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x165e8f){const _0x138916=await fetchNpmDistTags();return _0x138916?.[_0x165e8f]??null;}async function fetchLatestVersion(){const _0x3f2866=a34_0x2757d2;return fetchNpmDistTagVersion(_0x3f2866(0x1a7));}function a34_0xb923(){const _0x351135=['source','trim','green','red','\x20\x20Run\x20manually:\x20','unknown','boolean','\x20\x20Try\x20manually:\x20','toLowerCase','fail','Checking\x20official\x20skill\x20package...','inherit','skills','Version\x20comparison\x20failed','pipe','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','latest','Skipping\x20official\x20skill\x20package\x20(--no-skills).','log','...','4dGcFAO','validation','1184187BCpFnY','info','Already\x20on\x20requested\x20version\x20(v','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Updated\x20to\x20v','string','start','install','length','4818696zSYWAJ','7gwxMIz','Install\x20a\x20specific\x20CLI\x20version','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','\x20→\x20','nonInteractive','\x20\x20Official\x20skill\x20update\x20failed:\x20','Invalid\x20version:\x20','/dist-tags','entries','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','skipped','Beta\x20version:\x20','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','Current\x20version:\x20','bool','version','Requested\x20version:\x20','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','write','no-skills','filter','fromEntries','beta','run','npm','1150722uJSmGo','valid','Updating\x20via\x20','Update\x20available:\x20','str','bun','1565681EbqLck','cwd','execPath','message','includes','yellow','Checking\x20for\x20updates...','succeed','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','12042918tmCbTO','error','6281975KbAQxg','Refresh\x20official\x20skill\x20package\x20after\x20updating','\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','1917238AOPkNJ','warn','gray','Already\x20up\x20to\x20date\x20(v','map'];a34_0xb923=function(){return _0x351135;};return a34_0xb923();}async function resolveTargetVersion(_0x10a3b4){const _0x3b1475=a34_0x2757d2,_0x29f8a1=getRequestedVersion(_0x10a3b4);if(_0x29f8a1)return{'version':_0x29f8a1,'source':_0x3b1475(0x1c7)};if(_0x10a3b4[_0x3b1475(0x1c6)](_0x3b1475(0x1ce))){const _0x2705e5=await fetchNpmDistTagVersion(_0x3b1475(0x1ce));if(!_0x2705e5)return null;return{'version':_0x2705e5,'source':_0x3b1475(0x1ce)};}const _0x202914=await fetchLatestVersion();if(!_0x202914)return null;return{'version':_0x202914,'source':_0x3b1475(0x1a7)};}function shouldInstallTarget(_0x4daafd,_0x3b3a33){const _0x99d0f2=a34_0x2757d2;if(_0x3b3a33[_0x99d0f2(0x1ea)]==='version'||_0x3b3a33[_0x99d0f2(0x1ea)]===_0x99d0f2(0x1ce))return!a34_0x1e6e68['eq'](_0x4daafd,_0x3b3a33[_0x99d0f2(0x1c7)]);return a34_0x1e6e68['lt'](_0x4daafd,_0x3b3a33[_0x99d0f2(0x1c7)]);}function getInstallPlanLabel(_0x181d39,_0x52b87a){const _0xd17b5d=a34_0x2757d2;switch(_0x52b87a[_0xd17b5d(0x1ea)]){case _0xd17b5d(0x1ce):return _0xd17b5d(0x1c2)+a34_0x1a3141[_0xd17b5d(0x1dc)](_0x181d39)+_0xd17b5d(0x1ba)+a34_0x1a3141[_0xd17b5d(0x1ec)](_0x52b87a[_0xd17b5d(0x1c7)]);case _0xd17b5d(0x1c7):return _0xd17b5d(0x1c8)+a34_0x1a3141[_0xd17b5d(0x1dc)](_0x181d39)+_0xd17b5d(0x1ba)+a34_0x1a3141[_0xd17b5d(0x1ec)](_0x52b87a[_0xd17b5d(0x1c7)]);case _0xd17b5d(0x1a7):default:return _0xd17b5d(0x1d4)+a34_0x1a3141[_0xd17b5d(0x1dc)](_0x181d39)+_0xd17b5d(0x1ba)+a34_0x1a3141[_0xd17b5d(0x1ec)](_0x52b87a[_0xd17b5d(0x1c7)]);}}async function installOfficialSkill(_0x5d4d29){const _0xfbaa53=a34_0x2757d2;console[_0xfbaa53(0x1a9)](a34_0x1a3141[_0xfbaa53(0x1e7)](_0xfbaa53(0x1a1)));const _0x336303=runNpxSkillsAddGlobal(process[_0xfbaa53(0x1d8)](),RABETBASE_SKILL_SOURCE,{'stdio':_0x5d4d29?_0xfbaa53(0x1a5):_0xfbaa53(0x1a2)});if(_0x336303[_0xfbaa53(0x1c1)]){console[_0xfbaa53(0x1a9)](a34_0x1a3141[_0xfbaa53(0x1e7)](_0xfbaa53(0x1e4)));return;}if(_0x336303['ok']){console[_0xfbaa53(0x1a9)](a34_0x1a3141['gray'](_0xfbaa53(0x1c4)));return;}console[_0xfbaa53(0x1e6)](a34_0x1a3141['yellow'](_0xfbaa53(0x1bc)+(_0x336303[_0xfbaa53(0x1e1)]||_0xfbaa53(0x1ef)))),console[_0xfbaa53(0x1a9)](a34_0x1a3141[_0xfbaa53(0x1e7)](_0xfbaa53(0x1ee)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x3dad97){const _0x42001f=a34_0x2757d2;await validateUpdateFlags(_0x3dad97);const _0x4294db=getCurrentVersion();console[_0x42001f(0x1a9)](_0x42001f(0x1c5)+_0x4294db);const _0x4cd9b4=a34_0x59beef(_0x42001f(0x1dd))[_0x42001f(0x1b3)](),_0x394b83=await resolveTargetVersion(_0x3dad97);if(!_0x394b83){const _0x13c97f=_0x3dad97[_0x42001f(0x1c6)](_0x42001f(0x1ce))?_0x42001f(0x1c9):'Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)';return _0x4cd9b4[_0x42001f(0x1f3)](_0x13c97f),console['log'](a34_0x1a3141['gray'](_0x42001f(0x1c3)+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x13c97f};}const _0x3f1009=a34_0x1e6e68['valid'](VERSION),_0x3ddcc9=a34_0x1e6e68[_0x42001f(0x1d2)](_0x394b83[_0x42001f(0x1c7)]);if(!_0x3f1009||!_0x3ddcc9)return _0x4cd9b4['fail'](_0x42001f(0x1a4)),{'ok':![],'message':_0x42001f(0x1a4)};if(!shouldInstallTarget(_0x3f1009,_0x394b83)){const _0x26d0c6=_0x394b83[_0x42001f(0x1ea)]===_0x42001f(0x1c7)?_0x42001f(0x1af)+_0x394b83[_0x42001f(0x1c7)]+')':_0x42001f(0x1e8)+_0x394b83[_0x42001f(0x1c7)]+')';return _0x4cd9b4[_0x42001f(0x1de)](_0x26d0c6),shouldSkipOfficialSkill(_0x3dad97)?console[_0x42001f(0x1a9)](a34_0x1a3141[_0x42001f(0x1e7)](_0x42001f(0x1a8))):await installOfficialSkill(_0x3dad97[_0x42001f(0x1bb)]),{'ok':!![]};}_0x4cd9b4[_0x42001f(0x1ae)](getInstallPlanLabel(_0x4294db,_0x394b83));const _0xae758b=detectPackageManager(),_0x31a1cc=_0xae758b===_0x42001f(0x1d0)?resolveNpmBin(_0x42001f(0x1d0)):_0xae758b,_0x15ea5f=a34_0x59beef(_0x42001f(0x1d3)+_0xae758b+_0x42001f(0x1aa))[_0x42001f(0x1b3)]();try{return await execa(_0x31a1cc,[_0x42001f(0x1b4),'-g',NPM_PACKAGE_NAME+'@'+_0x394b83[_0x42001f(0x1c7)]],{'stdio':_0x42001f(0x1a5)}),_0x15ea5f[_0x42001f(0x1de)](_0x42001f(0x1b1)+_0x394b83[_0x42001f(0x1c7)]),console[_0x42001f(0x1a9)](a34_0x1a3141[_0x42001f(0x1e7)](_0x42001f(0x1b0))),shouldSkipOfficialSkill(_0x3dad97)?console[_0x42001f(0x1a9)](a34_0x1a3141[_0x42001f(0x1e7)](_0x42001f(0x1a8))):await installOfficialSkill(_0x3dad97['nonInteractive']),{'ok':!![]};}catch(_0x49a013){return _0x15ea5f[_0x42001f(0x1f3)]('Update\x20failed'),console['error'](a34_0x1a3141[_0x42001f(0x1ed)]('\x20\x20'+_0x49a013[_0x42001f(0x1da)])),console[_0x42001f(0x1a9)](a34_0x1a3141[_0x42001f(0x1e7)](_0x42001f(0x1f1)+_0xae758b+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x394b83[_0x42001f(0x1c7)])),{'ok':![],'message':_0x49a013[_0x42001f(0x1da)]};}}export const updateDefinition={'service':'update','command':a34_0x2757d2(0x1cf),'description':a34_0x2757d2(0x1b9),'risk':a34_0x2757d2(0x1ca),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a34_0x53fc3a=a34_0x496d;(function(_0x5c1a38,_0x2380f5){const _0x7c517a=a34_0x496d,_0x18862c=_0x5c1a38();while(!![]){try{const _0x49a95f=-parseInt(_0x7c517a(0x1d9))/0x1*(parseInt(_0x7c517a(0x198))/0x2)+-parseInt(_0x7c517a(0x1e4))/0x3+-parseInt(_0x7c517a(0x1b0))/0x4*(-parseInt(_0x7c517a(0x1d1))/0x5)+parseInt(_0x7c517a(0x1a6))/0x6+parseInt(_0x7c517a(0x1a7))/0x7+parseInt(_0x7c517a(0x1d0))/0x8*(-parseInt(_0x7c517a(0x1c6))/0x9)+parseInt(_0x7c517a(0x1a2))/0xa*(-parseInt(_0x7c517a(0x1d5))/0xb);if(_0x49a95f===_0x2380f5)break;else _0x18862c['push'](_0x18862c['shift']());}catch(_0x3e6a35){_0x18862c['push'](_0x18862c['shift']());}}}(a34_0x33ea,0x423a9));import a34_0x2027d8 from'chalk';import a34_0xf651d3 from'ora';import a34_0x4a80b0 from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x2f45b4=a34_0x496d;return GIT_COMMIT!==_0x2f45b4(0x1c8)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2f45b4(0x193)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x42f17d=a34_0x496d,_0x32ed63=process[_0x42f17d(0x1d2)]['toLowerCase']();if(_0x32ed63['includes'](_0x42f17d(0x1b7)))return _0x42f17d(0x1b7);return _0x42f17d(0x1bc);}const updateFlags=[{'name':'beta','type':'boolean','description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':'version','type':a34_0x53fc3a(0x1c9),'description':a34_0x53fc3a(0x1bd)},{'name':a34_0x53fc3a(0x19f),'type':'boolean','description':a34_0x53fc3a(0x1a5),'default':![]},{'name':a34_0x53fc3a(0x1b3),'type':a34_0x53fc3a(0x1ca),'description':'Refresh\x20official\x20skill\x20package\x20after\x20updating','default':!![],'hidden':!![]}];function getRequestedVersion(_0x55b152){const _0xde9f5=a34_0x53fc3a;return _0x55b152[_0xde9f5(0x1d8)](_0xde9f5(0x1ae))[_0xde9f5(0x1ac)]();}function shouldSkipOfficialSkill(_0x50f2c1){const _0x52c99c=a34_0x53fc3a;return _0x50f2c1['bool'](_0x52c99c(0x19f))||_0x50f2c1[_0x52c99c(0x19c)](_0x52c99c(0x1b3))===![];}async function validateUpdateFlags(_0x10bd35){const _0x47994b=a34_0x53fc3a,_0x215d55=_0x10bd35['bool'](_0x47994b(0x1b8)),_0x2fc112=getRequestedVersion(_0x10bd35);if(_0x215d55&&_0x2fc112)throw CliErrors[_0x47994b(0x1e0)](_0x47994b(0x1e1),_0x47994b(0x1a9));if(_0x2fc112&&!a34_0x4a80b0['valid'](_0x2fc112))throw CliErrors[_0x47994b(0x1e0)](_0x47994b(0x1de)+_0x2fc112,_0x47994b(0x1db));}async function fetchNpmDistTags(){const _0x524695=a34_0x53fc3a;try{const _0x4053e8=await fetch(_0x524695(0x1aa)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x524695(0x19a),{'signal':AbortSignal[_0x524695(0x196)](0x2710)});if(!_0x4053e8['ok'])return null;const _0x5a53a5=await _0x4053e8[_0x524695(0x19b)]();if(!_0x5a53a5||typeof _0x5a53a5!==_0x524695(0x1dd))return null;return Object['fromEntries'](Object[_0x524695(0x199)](_0x5a53a5)[_0x524695(0x195)](([,_0x1bc03a])=>typeof _0x1bc03a===_0x524695(0x1c9)&&_0x1bc03a[_0x524695(0x1ac)]()[_0x524695(0x1a1)]>0x0)[_0x524695(0x1b6)](([_0x40bee8,_0x2c2490])=>[_0x40bee8,String(_0x2c2490)['trim']()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x484b37){const _0x2b072c=await fetchNpmDistTags();return _0x2b072c?.[_0x484b37]??null;}async function fetchLatestVersion(){const _0x4ce9ca=a34_0x53fc3a;return fetchNpmDistTagVersion(_0x4ce9ca(0x1b2));}function a34_0x496d(_0x23d1ec,_0x2da727){_0x23d1ec=_0x23d1ec-0x193;const _0x33eac2=a34_0x33ea();let _0x496dd7=_0x33eac2[_0x23d1ec];return _0x496dd7;}function a34_0x33ea(){const _0x361799=['map','bun','beta','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','start','Beta\x20version:\x20','npm','Install\x20a\x20specific\x20CLI\x20version','write','Updated\x20to\x20v','fail','run','\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','green','@latest','skipped','847521QIduRd','Requested\x20version:\x20','unknown','string','boolean','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','Update\x20available:\x20','source','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','valid','16xqpjPW','35935iIWfZm','execPath','Update\x20failed','yellow','2618alKSyE','Checking\x20for\x20updates...','Already\x20on\x20requested\x20version\x20(v','str','227uSUYku','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','bool','object','Invalid\x20version:\x20','message','validation','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','red','\x20\x20Official\x20skill\x20update\x20failed:\x20','686592YbyveH','error','gray','slice','pipe','filter','timeout','Skipping\x20official\x20skill\x20package\x20(--no-skills).','4006NBwFwB','entries','/dist-tags','json','flag','Version\x20comparison\x20failed','nonInteractive','no-skills','...','length','3920uIRJBt','\x20→\x20','log','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','2665116QtFtXh','1822996aJDGpB','\x20\x20Run\x20manually:\x20','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','https://registry.npmjs.org/-/package/','inherit','trim','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','version','Current\x20version:\x20','296Wntvnd','\x20\x20Try\x20manually:\x20','latest','skills','Updating\x20via\x20','succeed'];a34_0x33ea=function(){return _0x361799;};return a34_0x33ea();}async function resolveTargetVersion(_0x560133){const _0x42d6a1=a34_0x53fc3a,_0xfb7a4e=getRequestedVersion(_0x560133);if(_0xfb7a4e)return{'version':_0xfb7a4e,'source':_0x42d6a1(0x1ae)};if(_0x560133[_0x42d6a1(0x1dc)](_0x42d6a1(0x1b8))){const _0x879505=await fetchNpmDistTagVersion('beta');if(!_0x879505)return null;return{'version':_0x879505,'source':_0x42d6a1(0x1b8)};}const _0x270e6e=await fetchLatestVersion();if(!_0x270e6e)return null;return{'version':_0x270e6e,'source':_0x42d6a1(0x1b2)};}function shouldInstallTarget(_0x3686d4,_0x5a230d){const _0x3797ef=a34_0x53fc3a;if(_0x5a230d[_0x3797ef(0x1cd)]==='version'||_0x5a230d[_0x3797ef(0x1cd)]===_0x3797ef(0x1b8))return!a34_0x4a80b0['eq'](_0x3686d4,_0x5a230d[_0x3797ef(0x1ae)]);return a34_0x4a80b0['lt'](_0x3686d4,_0x5a230d[_0x3797ef(0x1ae)]);}function getInstallPlanLabel(_0xf56976,_0x3dd586){const _0x4ac684=a34_0x53fc3a;switch(_0x3dd586[_0x4ac684(0x1cd)]){case _0x4ac684(0x1b8):return _0x4ac684(0x1bb)+a34_0x2027d8[_0x4ac684(0x1d4)](_0xf56976)+_0x4ac684(0x1a3)+a34_0x2027d8['green'](_0x3dd586[_0x4ac684(0x1ae)]);case'version':return _0x4ac684(0x1c7)+a34_0x2027d8[_0x4ac684(0x1d4)](_0xf56976)+_0x4ac684(0x1a3)+a34_0x2027d8[_0x4ac684(0x1c3)](_0x3dd586['version']);case'latest':default:return _0x4ac684(0x1cc)+a34_0x2027d8[_0x4ac684(0x1d4)](_0xf56976)+_0x4ac684(0x1a3)+a34_0x2027d8[_0x4ac684(0x1c3)](_0x3dd586[_0x4ac684(0x1ae)]);}}async function installOfficialSkill(_0xc1f0be){const _0x5c4d2d=a34_0x53fc3a;console[_0x5c4d2d(0x1a4)](a34_0x2027d8['gray']('Checking\x20official\x20skill\x20package...'));const _0x3a8944=runNpxSkillsAddGlobal(process['cwd'](),RABETBASE_SKILL_SOURCE,{'stdio':_0xc1f0be?_0x5c4d2d(0x194):_0x5c4d2d(0x1ab)});if(_0x3a8944[_0x5c4d2d(0x1c5)]){console['log'](a34_0x2027d8[_0x5c4d2d(0x1e6)](_0x5c4d2d(0x1c2)));return;}if(_0x3a8944['ok']){console[_0x5c4d2d(0x1a4)](a34_0x2027d8[_0x5c4d2d(0x1e6)](_0x5c4d2d(0x1b9)));return;}console['warn'](a34_0x2027d8[_0x5c4d2d(0x1d4)](_0x5c4d2d(0x1e3)+(_0x3a8944[_0x5c4d2d(0x1e5)]||_0x5c4d2d(0x1c8)))),console[_0x5c4d2d(0x1a4)](a34_0x2027d8[_0x5c4d2d(0x1e6)](_0x5c4d2d(0x1a8)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x2e10dc){const _0x2c8bc0=a34_0x53fc3a;await validateUpdateFlags(_0x2e10dc);const _0x44db9e=getCurrentVersion();console[_0x2c8bc0(0x1a4)](_0x2c8bc0(0x1af)+_0x44db9e);const _0x1de1f5=a34_0xf651d3(_0x2c8bc0(0x1d6))['start'](),_0x137c48=await resolveTargetVersion(_0x2e10dc);if(!_0x137c48){const _0x2e36db=_0x2e10dc['bool'](_0x2c8bc0(0x1b8))?_0x2c8bc0(0x1ce):_0x2c8bc0(0x1cb);return _0x1de1f5[_0x2c8bc0(0x1c0)](_0x2e36db),console[_0x2c8bc0(0x1a4)](a34_0x2027d8[_0x2c8bc0(0x1e6)](_0x2c8bc0(0x1ad)+NPM_PACKAGE_NAME+_0x2c8bc0(0x1c4))),{'ok':![],'message':_0x2e36db};}const _0x39fbae=a34_0x4a80b0['valid'](VERSION),_0x16def4=a34_0x4a80b0[_0x2c8bc0(0x1cf)](_0x137c48[_0x2c8bc0(0x1ae)]);if(!_0x39fbae||!_0x16def4)return _0x1de1f5[_0x2c8bc0(0x1c0)](_0x2c8bc0(0x19d)),{'ok':![],'message':_0x2c8bc0(0x19d)};if(!shouldInstallTarget(_0x39fbae,_0x137c48)){const _0x3cdabe=_0x137c48['source']===_0x2c8bc0(0x1ae)?_0x2c8bc0(0x1d7)+_0x137c48['version']+')':'Already\x20up\x20to\x20date\x20(v'+_0x137c48[_0x2c8bc0(0x1ae)]+')';return _0x1de1f5[_0x2c8bc0(0x1b5)](_0x3cdabe),shouldSkipOfficialSkill(_0x2e10dc)?console[_0x2c8bc0(0x1a4)](a34_0x2027d8[_0x2c8bc0(0x1e6)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).')):await installOfficialSkill(_0x2e10dc[_0x2c8bc0(0x19e)]),{'ok':!![]};}_0x1de1f5['info'](getInstallPlanLabel(_0x44db9e,_0x137c48));const _0x3e60db=detectPackageManager(),_0x4b250f=_0x3e60db===_0x2c8bc0(0x1bc)?resolveNpmBin(_0x2c8bc0(0x1bc)):_0x3e60db,_0x577aff=a34_0xf651d3(_0x2c8bc0(0x1b4)+_0x3e60db+_0x2c8bc0(0x1a0))[_0x2c8bc0(0x1ba)]();try{return await execa(_0x4b250f,['install','-g',NPM_PACKAGE_NAME+'@'+_0x137c48[_0x2c8bc0(0x1ae)]],{'stdio':_0x2c8bc0(0x194)}),_0x577aff[_0x2c8bc0(0x1b5)](_0x2c8bc0(0x1bf)+_0x137c48[_0x2c8bc0(0x1ae)]),console[_0x2c8bc0(0x1a4)](a34_0x2027d8[_0x2c8bc0(0x1e6)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),shouldSkipOfficialSkill(_0x2e10dc)?console[_0x2c8bc0(0x1a4)](a34_0x2027d8['gray'](_0x2c8bc0(0x197))):await installOfficialSkill(_0x2e10dc['nonInteractive']),{'ok':!![]};}catch(_0x29aeef){return _0x577aff[_0x2c8bc0(0x1c0)](_0x2c8bc0(0x1d3)),console[_0x2c8bc0(0x1e5)](a34_0x2027d8[_0x2c8bc0(0x1e2)]('\x20\x20'+_0x29aeef[_0x2c8bc0(0x1df)])),console[_0x2c8bc0(0x1a4)](a34_0x2027d8[_0x2c8bc0(0x1e6)](_0x2c8bc0(0x1b1)+_0x3e60db+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x137c48[_0x2c8bc0(0x1ae)])),{'ok':![],'message':_0x29aeef[_0x2c8bc0(0x1df)]};}}export const updateDefinition={'service':'update','command':a34_0x53fc3a(0x1c1),'description':a34_0x53fc3a(0x1da),'risk':a34_0x53fc3a(0x1be),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- function a35_0x259c(_0x18e4e6,_0x50956f){_0x18e4e6=_0x18e4e6-0x12f;const _0x4ca539=a35_0x4ca5();let _0x259c2f=_0x4ca539[_0x18e4e6];return _0x259c2f;}function a35_0x4ca5(){const _0x30c236=['2814816MtWMpu','1626919RvMleb','18PzkXgy','516NPvaoN','14420400TdpRhA','2554880ksVTNO','32256954vFekks','1594327oVQhxN','53195xuAaiP'];a35_0x4ca5=function(){return _0x30c236;};return a35_0x4ca5();}(function(_0x16fbf8,_0x4a5d1d){const _0x22921b=a35_0x259c,_0x2ca505=_0x16fbf8();while(!![]){try{const _0x24d33d=-parseInt(_0x22921b(0x133))/0x1+-parseInt(_0x22921b(0x131))/0x2+-parseInt(_0x22921b(0x135))/0x3+parseInt(_0x22921b(0x12f))/0x4*(-parseInt(_0x22921b(0x134))/0x5)+-parseInt(_0x22921b(0x137))/0x6*(-parseInt(_0x22921b(0x136))/0x7)+parseInt(_0x22921b(0x130))/0x8+parseInt(_0x22921b(0x132))/0x9;if(_0x24d33d===_0x4a5d1d)break;else _0x2ca505['push'](_0x2ca505['shift']());}catch(_0x485c70){_0x2ca505['push'](_0x2ca505['shift']());}}}(a35_0x4ca5,0xdc13d));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x6a27ef,_0xa424e3){const _0x31090d=a35_0x178d,_0x197f49=_0x6a27ef();while(!![]){try{const _0x3caf90=-parseInt(_0x31090d(0x128))/0x1+-parseInt(_0x31090d(0x122))/0x2+-parseInt(_0x31090d(0x127))/0x3+-parseInt(_0x31090d(0x126))/0x4+-parseInt(_0x31090d(0x125))/0x5*(parseInt(_0x31090d(0x129))/0x6)+parseInt(_0x31090d(0x121))/0x7+-parseInt(_0x31090d(0x124))/0x8*(-parseInt(_0x31090d(0x123))/0x9);if(_0x3caf90===_0xa424e3)break;else _0x197f49['push'](_0x197f49['shift']());}catch(_0xf3adb8){_0x197f49['push'](_0x197f49['shift']());}}}(a35_0xdf75,0xc103d));import{codegenSdk}from'../../commands/codegen/sdk.js';function a35_0x178d(_0x55933a,_0x16d0ba){_0x55933a=_0x55933a-0x121;const _0xdf7581=a35_0xdf75();let _0x178d2d=_0xdf7581[_0x55933a];return _0x178d2d;}import{codegenSql}from'../../commands/codegen/sql.js';function a35_0xdf75(){const _0x8b41d3=['18jJMxdB','3209843OQUriW','201286JxbjzR','9DvxrVA','27715120rmgvRD','52505IdfOmh','1927808SqIHMz','3290214nlKzng','1421514jcYffz'];a35_0xdf75=function(){return _0x8b41d3;};return a35_0xdf75();}export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a36_0x24f52a=a36_0x22c1;(function(_0x1e867b,_0xc0695a){const _0x595387=a36_0x22c1,_0x2127f8=_0x1e867b();while(!![]){try{const _0x59ae2a=-parseInt(_0x595387(0x179))/0x1+parseInt(_0x595387(0x178))/0x2+-parseInt(_0x595387(0x16f))/0x3+parseInt(_0x595387(0x171))/0x4*(parseInt(_0x595387(0x17d))/0x5)+parseInt(_0x595387(0x173))/0x6+-parseInt(_0x595387(0x176))/0x7*(parseInt(_0x595387(0x174))/0x8)+-parseInt(_0x595387(0x17b))/0x9*(-parseInt(_0x595387(0x16a))/0xa);if(_0x59ae2a===_0xc0695a)break;else _0x2127f8['push'](_0x2127f8['shift']());}catch(_0x171bba){_0x2127f8['push'](_0x2127f8['shift']());}}}(a36_0x4125,0xe92e0));function a36_0x4125(){const _0x3d7d7a=['7024296ljjMZT','name','7EJKtds','skip-imports','467430lSylDR','1752755wSmgxF','alias','580158CstYCQ','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','21200JDVnmn','Omit\x20import\x20statements\x20from\x20generated\x20code','sdk','260xHMjOt','boolean','string','read','str','2021985PxYJWC','appCode','1748DOIlAh','operation','2983704UQmEYz'];a36_0x4125=function(){return _0x3d7d7a;};return a36_0x4125();}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a36_0x22c1(_0x11014c,_0x483901){_0x11014c=_0x11014c-0x169;const _0x4125ad=a36_0x4125();let _0x22c158=_0x4125ad[_0x11014c];return _0x22c158;}export const codegenSdk={'service':'codegen','command':a36_0x24f52a(0x169),'description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a36_0x24f52a(0x16d),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x24f52a(0x17a),'type':a36_0x24f52a(0x16c),'description':a36_0x24f52a(0x17c)},{'name':a36_0x24f52a(0x172),'type':a36_0x24f52a(0x16c),'required':!![],'description':'Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)'},{'name':a36_0x24f52a(0x177),'type':a36_0x24f52a(0x16b),'description':a36_0x24f52a(0x17e)}],async 'execute'(_0x4c7b2f){const _0xb084ed=a36_0x24f52a,{dataset:_0x185e0a,operation:_0x361642}=await getOperationDetail(_0x4c7b2f[_0xb084ed(0x170)],_0x4c7b2f[_0xb084ed(0x16e)]('code'),_0x4c7b2f[_0xb084ed(0x16e)](_0xb084ed(0x172))),_0x9258a1=generateSdkCode(_0x185e0a,_0x361642,{'includeImports':!_0x4c7b2f['bool'](_0xb084ed(0x177))});return{'ok':!![],'data':{'dataset':{'name':_0x185e0a[_0xb084ed(0x175)],'code':_0x185e0a['code'],'tableName':_0x185e0a['tableName']},'operation':_0x4c7b2f[_0xb084ed(0x16e)](_0xb084ed(0x172)),'code':_0x9258a1}};}};
1
+ function a36_0x34ea(_0x2a0ad4,_0x5bfa61){_0x2a0ad4=_0x2a0ad4-0x195;const _0x16435a=a36_0x1643();let _0x34ea86=_0x16435a[_0x2a0ad4];return _0x34ea86;}const a36_0x203ba6=a36_0x34ea;(function(_0x2082db,_0x29f828){const _0x4f5e02=a36_0x34ea,_0x1bacfe=_0x2082db();while(!![]){try{const _0x28e52b=parseInt(_0x4f5e02(0x19f))/0x1+parseInt(_0x4f5e02(0x19d))/0x2*(-parseInt(_0x4f5e02(0x19c))/0x3)+parseInt(_0x4f5e02(0x1a2))/0x4+-parseInt(_0x4f5e02(0x1a6))/0x5*(-parseInt(_0x4f5e02(0x1a1))/0x6)+-parseInt(_0x4f5e02(0x1a7))/0x7*(parseInt(_0x4f5e02(0x1ad))/0x8)+parseInt(_0x4f5e02(0x1ab))/0x9+-parseInt(_0x4f5e02(0x195))/0xa*(parseInt(_0x4f5e02(0x1a0))/0xb);if(_0x28e52b===_0x29f828)break;else _0x1bacfe['push'](_0x1bacfe['shift']());}catch(_0x26ce64){_0x1bacfe['push'](_0x1bacfe['shift']());}}}(a36_0x1643,0x940cb));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a36_0x1643(){const _0x13b984=['Omit\x20import\x20statements\x20from\x20generated\x20code','operation','9mPDPgQ','22582QRhtlA','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','787640qzluzK','11pFOykU','6HyzRRT','4029560SErTLf','alias','appCode','codegen','1822695tXTjHp','14Zpbufu','tableName','code','bool','1409382ahzfrz','string','2548456szCQka','10387690UDVyAu','read','name','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','str'];a36_0x1643=function(){return _0x13b984;};return a36_0x1643();}export const codegenSdk={'service':a36_0x203ba6(0x1a5),'command':'sdk','description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a36_0x203ba6(0x196),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x203ba6(0x1a3),'type':a36_0x203ba6(0x1ac),'description':a36_0x203ba6(0x19e)},{'name':'operation','type':a36_0x203ba6(0x1ac),'required':!![],'description':a36_0x203ba6(0x198)},{'name':'skip-imports','type':'boolean','description':a36_0x203ba6(0x19a)}],async 'execute'(_0x4c5e4b){const _0x49575b=a36_0x203ba6,{dataset:_0x5ce34a,operation:_0x350fb8}=await getOperationDetail(_0x4c5e4b[_0x49575b(0x1a4)],_0x4c5e4b[_0x49575b(0x199)]('code'),_0x4c5e4b[_0x49575b(0x199)](_0x49575b(0x19b))),_0x5bae6c=generateSdkCode(_0x5ce34a,_0x350fb8,{'includeImports':!_0x4c5e4b[_0x49575b(0x1aa)]('skip-imports')});return{'ok':!![],'data':{'dataset':{'name':_0x5ce34a[_0x49575b(0x197)],'code':_0x5ce34a[_0x49575b(0x1a9)],'tableName':_0x5ce34a[_0x49575b(0x1a8)]},'operation':_0x4c5e4b[_0x49575b(0x199)](_0x49575b(0x19b)),'code':_0x5bae6c}};}};
@@ -1 +1 @@
1
- function a37_0x225b(_0x319e21,_0x3db35c){_0x319e21=_0x319e21-0x11c;const _0x468e1a=a37_0x468e();let _0x225bf0=_0x468e1a[_0x319e21];return _0x225bf0;}const a37_0x12cbfd=a37_0x225b;(function(_0x2c7852,_0x56b8ca){const _0x3944b8=a37_0x225b,_0xe4d61e=_0x2c7852();while(!![]){try{const _0x3f49ec=-parseInt(_0x3944b8(0x11c))/0x1*(parseInt(_0x3944b8(0x11e))/0x2)+-parseInt(_0x3944b8(0x131))/0x3*(-parseInt(_0x3944b8(0x12e))/0x4)+parseInt(_0x3944b8(0x133))/0x5*(parseInt(_0x3944b8(0x122))/0x6)+parseInt(_0x3944b8(0x124))/0x7+parseInt(_0x3944b8(0x120))/0x8*(parseInt(_0x3944b8(0x130))/0x9)+-parseInt(_0x3944b8(0x12c))/0xa*(-parseInt(_0x3944b8(0x129))/0xb)+parseInt(_0x3944b8(0x121))/0xc*(-parseInt(_0x3944b8(0x12b))/0xd);if(_0x3f49ec===_0x56b8ca)break;else _0xe4d61e['push'](_0xe4d61e['shift']());}catch(_0x41c1ad){_0xe4d61e['push'](_0xe4d61e['shift']());}}}(a37_0x468e,0x81c6a));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x12cbfd(0x134),'command':a37_0x12cbfd(0x128),'description':a37_0x12cbfd(0x11d),'risk':'read','flags':[SQLCODE_FLAG,{'name':a37_0x12cbfd(0x123),'type':'string','description':a37_0x12cbfd(0x12f),'default':a37_0x12cbfd(0x12a),'enum':[a37_0x12cbfd(0x12a),a37_0x12cbfd(0x132)]},{'name':a37_0x12cbfd(0x126),'type':a37_0x12cbfd(0x12d),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x588d04){const _0xa5cfa7=a37_0x12cbfd,_0x148ab6=await getSqlQueryInfo(_0x588d04['appCode'],_0x588d04[_0xa5cfa7(0x127)](_0xa5cfa7(0x125))),_0x4e56fb=_0x588d04[_0xa5cfa7(0x127)](_0xa5cfa7(0x123))||_0xa5cfa7(0x12a),_0x4dba4b=generateSqlCodeTemplate(_0x148ab6,{'target':_0x4e56fb,'includeImports':!_0x588d04['bool'](_0xa5cfa7(0x126))});return{'ok':!![],'data':{'sqlCode':_0x148ab6['sqlCode'],'sqlName':_0x148ab6[_0xa5cfa7(0x11f)],'target':_0x4e56fb,'code':_0x4dba4b}};}};function a37_0x468e(){const _0x1d3bc8=['sqlName','6882664CRIxzW','84lyJHlQ','326736cxVIpD','target','1020257QKucDd','sqlcode','no-imports','str','sql','11XyzEEa','sdk','3193528mptHmk','4738570XxUjsH','boolean','12SOgMMI','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','9JthKVt','223449BNwQSm','bff','60zdGvAC','codegen','1ZfRoUq','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','211416LJjZzd'];a37_0x468e=function(){return _0x1d3bc8;};return a37_0x468e();}
1
+ const a37_0x49db2d=a37_0x1302;(function(_0x26f643,_0x45713e){const _0x2d4b32=a37_0x1302,_0x3e42b0=_0x26f643();while(!![]){try{const _0x3894e5=-parseInt(_0x2d4b32(0x161))/0x1*(-parseInt(_0x2d4b32(0x152))/0x2)+-parseInt(_0x2d4b32(0x167))/0x3*(-parseInt(_0x2d4b32(0x155))/0x4)+parseInt(_0x2d4b32(0x162))/0x5+-parseInt(_0x2d4b32(0x15e))/0x6+-parseInt(_0x2d4b32(0x157))/0x7+parseInt(_0x2d4b32(0x166))/0x8+-parseInt(_0x2d4b32(0x15b))/0x9*(parseInt(_0x2d4b32(0x163))/0xa);if(_0x3894e5===_0x45713e)break;else _0x3e42b0['push'](_0x3e42b0['shift']());}catch(_0x544747){_0x3e42b0['push'](_0x3e42b0['shift']());}}}(a37_0x2628,0x8b07e));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a37_0x2628(){const _0x2c94c4=['bff','read','sdk','35937dNtlox','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','no-imports','568392gfQSUx','sqlName','sql','18092CxURNC','2414975GPOvQn','4310IJpdIB','target','str','4082520ojocwV','2205426gkBkPL','sqlCode','Omit\x20import\x20statements\x20from\x20generated\x20code','98UvKqlt','bool','boolean','4RCtHki','appCode','1608425tguSXL'];a37_0x2628=function(){return _0x2c94c4;};return a37_0x2628();}function a37_0x1302(_0x47dcd0,_0x1703c3){_0x47dcd0=_0x47dcd0-0x152;const _0x2628d8=a37_0x2628();let _0x130228=_0x2628d8[_0x47dcd0];return _0x130228;}export const codegenSql={'service':'codegen','command':a37_0x49db2d(0x160),'description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':a37_0x49db2d(0x159),'flags':[SQLCODE_FLAG,{'name':a37_0x49db2d(0x164),'type':'string','description':a37_0x49db2d(0x15c),'default':'sdk','enum':[a37_0x49db2d(0x15a),a37_0x49db2d(0x158)]},{'name':a37_0x49db2d(0x15d),'type':a37_0x49db2d(0x154),'description':a37_0x49db2d(0x169)}],async 'execute'(_0x4c4ad3){const _0x1e6f4b=a37_0x49db2d,_0x2b6028=await getSqlQueryInfo(_0x4c4ad3[_0x1e6f4b(0x156)],_0x4c4ad3[_0x1e6f4b(0x165)]('sqlcode')),_0x171599=_0x4c4ad3[_0x1e6f4b(0x165)](_0x1e6f4b(0x164))||_0x1e6f4b(0x15a),_0x23ebad=generateSqlCodeTemplate(_0x2b6028,{'target':_0x171599,'includeImports':!_0x4c4ad3[_0x1e6f4b(0x153)]('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x2b6028[_0x1e6f4b(0x168)],'sqlName':_0x2b6028[_0x1e6f4b(0x15f)],'target':_0x171599,'code':_0x23ebad}};}};
@@ -1 +1 @@
1
- (function(_0x27ff41,_0x1c97e4){const _0xa3806f=a38_0x178e,_0xa2f767=_0x27ff41();while(!![]){try{const _0x3643c9=parseInt(_0xa3806f(0x1b1))/0x1+-parseInt(_0xa3806f(0x1b9))/0x2*(parseInt(_0xa3806f(0x1bc))/0x3)+parseInt(_0xa3806f(0x1b4))/0x4+-parseInt(_0xa3806f(0x1af))/0x5+-parseInt(_0xa3806f(0x1a9))/0x6+parseInt(_0xa3806f(0x1a8))/0x7+parseInt(_0xa3806f(0x1b5))/0x8;if(_0x3643c9===_0x1c97e4)break;else _0xa2f767['push'](_0xa2f767['shift']());}catch(_0x34138e){_0xa2f767['push'](_0xa2f767['shift']());}}}(a38_0x5ed1,0x49e92));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x532834 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 _0x1b0b14=a38_0x178e,_0x2a04c1=await input({'message':'请输入\x20App\x20Code:','validate':_0x4fa87e=>{const _0x51929c=a38_0x178e,_0x4f6613=validateAppcode(_0x4fa87e[_0x51929c(0x1ac)]());return _0x4f6613[_0x51929c(0x1b0)]||_0x4f6613['message']||_0x51929c(0x1bd);}});return _0x2a04c1[_0x1b0b14(0x1ac)]();}export async function promptAppSelection(_0x417afc){const _0xb72335=a38_0x178e,_0x4d4b97=[{'name':a38_0x532834[_0xb72335(0x1c1)]('✎\x20自定义输入\x20appcode'),'value':-0x1},..._0x417afc[_0xb72335(0x1aa)]((_0x54c2cf,_0x29100f)=>({'name':_0x54c2cf[_0xb72335(0x1c3)]+'\x20\x20'+a38_0x532834[_0xb72335(0x1ca)]('('+_0x54c2cf['appCode']+')'),'value':_0x29100f}))],_0x1de4f6=await checkbox({'message':_0xb72335(0x1b2)+a38_0x532834[_0xb72335(0x1c8)](_0x417afc[_0xb72335(0x1b3)])+'\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','choices':_0x4d4b97,'loop':![]});if(_0x1de4f6[_0xb72335(0x1ab)](-0x1))return _0xb72335(0x1be);if(_0x1de4f6[_0xb72335(0x1b3)]===0x0)return _0xb72335(0x1be);return _0x1de4f6[_0xb72335(0x1aa)](_0x1f1c8f=>_0x417afc[_0x1f1c8f]);}export async function promptSingleAppSelection(_0x31d5bf){const _0x5be3cc=a38_0x178e,_0x3df703=[{'name':a38_0x532834[_0x5be3cc(0x1ca)](_0x5be3cc(0x1b6)),'value':'skip'},{'name':a38_0x532834[_0x5be3cc(0x1c1)]('✎\x20自定义输入\x20appcode'),'value':_0x5be3cc(0x1be)},..._0x31d5bf[_0x5be3cc(0x1aa)](_0x140c09=>({'name':_0x140c09[_0x5be3cc(0x1c3)]+'\x20\x20'+a38_0x532834[_0x5be3cc(0x1ca)]('('+_0x140c09['appCode']+')'),'value':_0x140c09[_0x5be3cc(0x1c5)]}))],_0x393bee=await select({'message':_0x5be3cc(0x1ae),'choices':_0x3df703});if(_0x393bee===_0x5be3cc(0x1c0))return _0x5be3cc(0x1c0);if(_0x393bee===_0x5be3cc(0x1be))return _0x5be3cc(0x1be);return _0x31d5bf[_0x5be3cc(0x1cb)](_0x84ce49=>_0x84ce49[_0x5be3cc(0x1c5)]===_0x393bee);}export async function selectSingleAppcode(_0xe29ea){const _0x267b85=a38_0x178e;if(!_0xe29ea)return writeCliSideChannelLine(a38_0x532834['gray'](_0x267b85(0x1c7))),_fallbackOrSkip();writeCliSideChannelLine('正在获取可用应用列表...');let _0x464163;try{_0x464163=await withActiveCookie(_0xe29ea,()=>listRemoteApps());}catch(_0x3ebc93){writeCliSideChannelLine(a38_0x532834[_0x267b85(0x1c1)](_0x267b85(0x1ad)));if(_0x3ebc93 instanceof Error)writeCliSideChannelLine(a38_0x532834['gray'](_0x267b85(0x1c6)+_0x3ebc93[_0x267b85(0x1bb)]+')'));return _fallbackOrSkip();}if(_0x464163[_0x267b85(0x1b3)]===0x0)return writeCliSideChannelLine(a38_0x532834[_0x267b85(0x1c1)](_0x267b85(0x1c9))),_fallbackOrSkip();const _0x5ec407=await promptSingleAppSelection(_0x464163);if(_0x5ec407==='skip')return'';if(_0x5ec407===_0x267b85(0x1be))return promptCustomAppcode();return _0x5ec407[_0x267b85(0x1c5)];}export async function selectMultipleApps(_0xd851d7){const _0x5bae04=a38_0x178e;writeCliSideChannelLine('正在获取可用应用列表...');let _0x333ae7;try{_0x333ae7=await withActiveCookie(_0xd851d7,()=>listRemoteApps());}catch(_0x28c702){writeCliSideChannelLine(_0x5bae04(0x1c2));if(_0x28c702 instanceof Error)writeCliSideChannelLine('\x20\x20('+_0x28c702['message']+')');return _0x5bae04(0x1be);}if(_0x333ae7['length']===0x0)return writeCliSideChannelLine(_0x5bae04(0x1ba)),_0x5bae04(0x1be);return promptAppSelection(_0x333ae7);}function a38_0x178e(_0xbb9148,_0x384d81){_0xbb9148=_0xbb9148-0x1a8;const _0x5ed16d=a38_0x5ed1();let _0x178e3f=_0x5ed16d[_0xbb9148];return _0x178e3f;}async function _fallbackOrSkip(){const _0x1e97c2=a38_0x178e,_0xeb04b7=await select({'message':_0x1e97c2(0x1b7),'choices':[{'name':a38_0x532834[_0x1e97c2(0x1ca)](_0x1e97c2(0x1b8)),'value':'skip'},{'name':a38_0x532834['yellow'](_0x1e97c2(0x1bf)),'value':_0x1e97c2(0x1c4)}]});if(_0xeb04b7==='skip')return'';return promptCustomAppcode();}function a38_0x5ed1(){const _0x412719=['183CmlgLt','Invalid\x20App\x20Code','custom','✎\x20手动输入','skip','yellow','\x0a无法获取远程应用列表,请手动输入。','appName','manual','appCode','\x20\x20(','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','cyan','未找到可用应用。','gray','find','1553594zaxXWN','876576Hwkmku','map','includes','trim','无法获取远程应用列表,请手动输入。','请选择要绑定的应用:','1537465HktPpA','valid','192561qKYXbw','获取到\x20','length','403876mOEqbY','4997824TwxMZF','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','App\x20Code:','(跳过,稍后配置)','12586FpySqX','\x0a未找到可用应用。','message'];a38_0x5ed1=function(){return _0x412719;};return a38_0x5ed1();}
1
+ (function(_0x7b8466,_0x3bbe34){const _0x10aac1=a38_0x1c1f,_0x4e3f9c=_0x7b8466();while(!![]){try{const _0x2ee260=parseInt(_0x10aac1(0x10b))/0x1+parseInt(_0x10aac1(0x109))/0x2+parseInt(_0x10aac1(0x117))/0x3*(-parseInt(_0x10aac1(0x11f))/0x4)+parseInt(_0x10aac1(0x100))/0x5*(parseInt(_0x10aac1(0x10e))/0x6)+parseInt(_0x10aac1(0x114))/0x7+-parseInt(_0x10aac1(0x10a))/0x8*(parseInt(_0x10aac1(0x120))/0x9)+-parseInt(_0x10aac1(0x108))/0xa*(parseInt(_0x10aac1(0x106))/0xb);if(_0x2ee260===_0x3bbe34)break;else _0x4e3f9c['push'](_0x4e3f9c['shift']());}catch(_0x2d348d){_0x4e3f9c['push'](_0x4e3f9c['shift']());}}}(a38_0x5a71,0x953a8));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x2735e3 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 _0x341671=a38_0x1c1f,_0x1469e1=await input({'message':_0x341671(0x116),'validate':_0x2546f3=>{const _0x356a07=_0x341671,_0x3a9eed=validateAppcode(_0x2546f3['trim']());return _0x3a9eed[_0x356a07(0x101)]||_0x3a9eed[_0x356a07(0x11e)]||_0x356a07(0x10d);}});return _0x1469e1[_0x341671(0xfd)]();}function a38_0x5a71(){const _0x203a6b=['1791412ikInrr','无法获取远程应用列表,请手动输入。','请输入\x20App\x20Code:','6Qapuxa','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','未找到可用应用。','\x20\x20(','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','map','yellow','message','2347528dhPdRn','43911FTHbWI','正在获取可用应用列表...','\x0a无法获取远程应用列表,请手动输入。','includes','✎\x20自定义输入\x20appcode','trim','请选择要绑定的应用:','custom','303850cwHppN','valid','find','length','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','appName','2662UkIBmj','gray','31830KyeXeQ','389850RgENSE','376pSWucV','1118362FkbfKG','获取到\x20','Invalid\x20App\x20Code','120nDZnOE','appCode','(跳过,稍后配置)','\x0a未找到可用应用。','cyan','skip'];a38_0x5a71=function(){return _0x203a6b;};return a38_0x5a71();}export async function promptAppSelection(_0x9c77b1){const _0x1a8dbb=a38_0x1c1f,_0x2df4fd=[{'name':a38_0x2735e3[_0x1a8dbb(0x11d)](_0x1a8dbb(0x124)),'value':-0x1},..._0x9c77b1['map']((_0x35125c,_0x12805d)=>({'name':_0x35125c[_0x1a8dbb(0x105)]+'\x20\x20'+a38_0x2735e3[_0x1a8dbb(0x107)]('('+_0x35125c['appCode']+')'),'value':_0x12805d}))],_0x5c76f1=await checkbox({'message':_0x1a8dbb(0x10c)+a38_0x2735e3[_0x1a8dbb(0x112)](_0x9c77b1['length'])+_0x1a8dbb(0x118),'choices':_0x2df4fd,'loop':![]});if(_0x5c76f1[_0x1a8dbb(0x123)](-0x1))return _0x1a8dbb(0xff);if(_0x5c76f1['length']===0x0)return _0x1a8dbb(0xff);return _0x5c76f1[_0x1a8dbb(0x11c)](_0x27418d=>_0x9c77b1[_0x27418d]);}export async function promptSingleAppSelection(_0xf1ed0d){const _0x436ef=a38_0x1c1f,_0x2731cd=[{'name':a38_0x2735e3[_0x436ef(0x107)](_0x436ef(0x11b)),'value':_0x436ef(0x113)},{'name':a38_0x2735e3[_0x436ef(0x11d)]('✎\x20自定义输入\x20appcode'),'value':_0x436ef(0xff)},..._0xf1ed0d[_0x436ef(0x11c)](_0x37d7f0=>({'name':_0x37d7f0[_0x436ef(0x105)]+'\x20\x20'+a38_0x2735e3[_0x436ef(0x107)]('('+_0x37d7f0['appCode']+')'),'value':_0x37d7f0[_0x436ef(0x10f)]}))],_0x331c8e=await select({'message':_0x436ef(0xfe),'choices':_0x2731cd});if(_0x331c8e===_0x436ef(0x113))return _0x436ef(0x113);if(_0x331c8e==='custom')return _0x436ef(0xff);return _0xf1ed0d[_0x436ef(0x102)](_0x17b0d8=>_0x17b0d8[_0x436ef(0x10f)]===_0x331c8e);}export async function selectSingleAppcode(_0x36095d){const _0xb43652=a38_0x1c1f;if(!_0x36095d)return writeCliSideChannelLine(a38_0x2735e3[_0xb43652(0x107)](_0xb43652(0x104))),_fallbackOrSkip();writeCliSideChannelLine(_0xb43652(0x121));let _0x3e5f28;try{_0x3e5f28=await withActiveCookie(_0x36095d,()=>listRemoteApps());}catch(_0x526e5f){writeCliSideChannelLine(a38_0x2735e3[_0xb43652(0x11d)](_0xb43652(0x115)));if(_0x526e5f instanceof Error)writeCliSideChannelLine(a38_0x2735e3[_0xb43652(0x107)]('\x20\x20('+_0x526e5f['message']+')'));return _fallbackOrSkip();}if(_0x3e5f28[_0xb43652(0x103)]===0x0)return writeCliSideChannelLine(a38_0x2735e3['yellow'](_0xb43652(0x119))),_fallbackOrSkip();const _0x1090ca=await promptSingleAppSelection(_0x3e5f28);if(_0x1090ca===_0xb43652(0x113))return'';if(_0x1090ca===_0xb43652(0xff))return promptCustomAppcode();return _0x1090ca[_0xb43652(0x10f)];}export async function selectMultipleApps(_0x103e02){const _0x4e341b=a38_0x1c1f;writeCliSideChannelLine(_0x4e341b(0x121));let _0x467b31;try{_0x467b31=await withActiveCookie(_0x103e02,()=>listRemoteApps());}catch(_0xfb8c94){writeCliSideChannelLine(_0x4e341b(0x122));if(_0xfb8c94 instanceof Error)writeCliSideChannelLine(_0x4e341b(0x11a)+_0xfb8c94[_0x4e341b(0x11e)]+')');return _0x4e341b(0xff);}if(_0x467b31[_0x4e341b(0x103)]===0x0)return writeCliSideChannelLine(_0x4e341b(0x111)),_0x4e341b(0xff);return promptAppSelection(_0x467b31);}function a38_0x1c1f(_0x5afdcb,_0x3cdc22){_0x5afdcb=_0x5afdcb-0xfd;const _0x5a71fd=a38_0x5a71();let _0x1c1fab=_0x5a71fd[_0x5afdcb];return _0x1c1fab;}async function _fallbackOrSkip(){const _0x3a3432=a38_0x1c1f,_0x30acab=await select({'message':'App\x20Code:','choices':[{'name':a38_0x2735e3[_0x3a3432(0x107)](_0x3a3432(0x110)),'value':_0x3a3432(0x113)},{'name':a38_0x2735e3[_0x3a3432(0x11d)]('✎\x20手动输入'),'value':'manual'}]});if(_0x30acab==='skip')return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- function a39_0x150a(_0x3fcec5,_0x380a3c){_0x3fcec5=_0x3fcec5-0x14c;const _0x3ffba5=a39_0x3ffb();let _0x150aa0=_0x3ffba5[_0x3fcec5];return _0x150aa0;}const a39_0x14ce9b=a39_0x150a;(function(_0x38757f,_0x306177){const _0x3e5e2b=a39_0x150a,_0x1100bb=_0x38757f();while(!![]){try{const _0x13ecfe=parseInt(_0x3e5e2b(0x14d))/0x1*(-parseInt(_0x3e5e2b(0x15a))/0x2)+-parseInt(_0x3e5e2b(0x158))/0x3+-parseInt(_0x3e5e2b(0x160))/0x4+parseInt(_0x3e5e2b(0x15d))/0x5*(parseInt(_0x3e5e2b(0x155))/0x6)+-parseInt(_0x3e5e2b(0x151))/0x7+parseInt(_0x3e5e2b(0x152))/0x8*(parseInt(_0x3e5e2b(0x154))/0x9)+parseInt(_0x3e5e2b(0x153))/0xa;if(_0x13ecfe===_0x306177)break;else _0x1100bb['push'](_0x1100bb['shift']());}catch(_0x144fde){_0x1100bb['push'](_0x1100bb['shift']());}}}(a39_0x3ffb,0x84446));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x14ce9b(0x15c)};export const CODE_FLAG={'name':a39_0x14ce9b(0x15f),'type':'string','required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x14ce9b(0x159),'description':a39_0x14ce9b(0x14c)};export const SQLCODE_FLAG={'name':a39_0x14ce9b(0x157),'type':a39_0x14ce9b(0x15e),'required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const APPCODE_FLAG_OPTIONAL={'name':a39_0x14ce9b(0x14e),'type':'string','required':![],'description':a39_0x14ce9b(0x156)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':a39_0x14ce9b(0x15b)};export const DB_TYPE_FLAG={'name':a39_0x14ce9b(0x14f),'type':a39_0x14ce9b(0x15e),'required':!![],'description':'Database\x20product\x20type','enum':['MYSQL',a39_0x14ce9b(0x150)]};function a39_0x3ffb(){const _0x5673e0=['Dataset\x20code\x20(32-char\x20hex\x20UUID)','49802hRpesX','appcode','dbtype','POSTGRESQL','792204cJTVBW','8oDpxCC','13013470ChVXnI','161199EcOIen','36EPmUJo','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','sqlcode','2372880LAEVdI','datasetcode','14mtzCye','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','520445pGrVxs','string','code','597120BVbrMF'];a39_0x3ffb=function(){return _0x5673e0;};return a39_0x3ffb();}
1
+ function a39_0x38c6(){const _0x26a23d=['sqlcode','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','39126CPnsDS','POSTGRESQL','2118BmtLro','1861161EePqEG','string','Dataset\x20code\x20(32-char\x20hex\x20UUID)','number','4558250nDHHza','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','4718104HfGNJi','code','MYSQL','datasetcode','13251GyRPAQ','28tLHcwr','4302972lGZjGy','Database\x20product\x20type','322975pQHYsw','76EOsSXn'];a39_0x38c6=function(){return _0x26a23d;};return a39_0x38c6();}const a39_0x1bc487=a39_0xe6c4;(function(_0x2d8370,_0x22744e){const _0x521cea=a39_0xe6c4,_0x2c752d=_0x2d8370();while(!![]){try{const _0x55b30d=parseInt(_0x521cea(0x130))/0x1*(-parseInt(_0x521cea(0x12d))/0x2)+parseInt(_0x521cea(0x11e))/0x3+parseInt(_0x521cea(0x129))/0x4*(parseInt(_0x521cea(0x12c))/0x5)+parseInt(_0x521cea(0x11d))/0x6*(parseInt(_0x521cea(0x128))/0x7)+parseInt(_0x521cea(0x124))/0x8+-parseInt(_0x521cea(0x12a))/0x9+parseInt(_0x521cea(0x122))/0xa;if(_0x55b30d===_0x22744e)break;else _0x2c752d['push'](_0x2c752d['shift']());}catch(_0x1ff79c){_0x2c752d['push'](_0x2c752d['shift']());}}}(a39_0x38c6,0xc88e1));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)'};export const CODE_FLAG={'name':a39_0x1bc487(0x125),'type':'string','required':!![],'description':a39_0x1bc487(0x120),'pattern':DATASET_CODE_PATTERN};function a39_0xe6c4(_0x215dbd,_0x312624){_0x215dbd=_0x215dbd-0x11c;const _0x38c6e1=a39_0x38c6();let _0xe6c40a=_0x38c6e1[_0x215dbd];return _0xe6c40a;}export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x1bc487(0x127),'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)'};export const SQLCODE_FLAG={'name':a39_0x1bc487(0x12e),'type':a39_0x1bc487(0x11f),'required':!![],'description':a39_0x1bc487(0x12f),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':a39_0x1bc487(0x11f),'required':![],'description':a39_0x1bc487(0x123)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a39_0x1bc487(0x121),'required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'};export const DB_TYPE_FLAG={'name':'dbtype','type':a39_0x1bc487(0x11f),'required':!![],'description':a39_0x1bc487(0x12b),'enum':[a39_0x1bc487(0x126),a39_0x1bc487(0x11c)]};
@@ -1 +1 @@
1
- function a40_0x5a9a(_0x34a5ae,_0x4aacfb){_0x34a5ae=_0x34a5ae-0x1c5;const _0x5b414e=a40_0x5b41();let _0x5a9af8=_0x5b414e[_0x34a5ae];return _0x5a9af8;}function a40_0x5b41(){const _0x5f1a2e=['2127174fbSVxR','96676xCsBpQ','length','1zidLiI','2548926QVEkVS','1556845QWtIng','5339888AMWSMu','397145LSZMxr','6OSPgNt','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','trim','1045318PXGFYU'];a40_0x5b41=function(){return _0x5f1a2e;};return a40_0x5b41();}(function(_0x18e564,_0x4dc0b7){const _0x3cfd9f=a40_0x5a9a,_0x3210c8=_0x18e564();while(!![]){try{const _0x3027cd=parseInt(_0x3cfd9f(0x1cd))/0x1*(parseInt(_0x3cfd9f(0x1c9))/0x2)+parseInt(_0x3cfd9f(0x1c6))/0x3*(parseInt(_0x3cfd9f(0x1cb))/0x4)+-parseInt(_0x3cfd9f(0x1cf))/0x5+-parseInt(_0x3cfd9f(0x1ca))/0x6+parseInt(_0x3cfd9f(0x1c5))/0x7+parseInt(_0x3cfd9f(0x1d0))/0x8+-parseInt(_0x3cfd9f(0x1ce))/0x9;if(_0x3027cd===_0x4dc0b7)break;else _0x3210c8['push'](_0x3210c8['shift']());}catch(_0x1608ff){_0x3210c8['push'](_0x3210c8['shift']());}}}(a40_0x5b41,0x547fa));export function validateAppcode(_0x5dcbe9){const _0x48f357=a40_0x5a9a,_0x2835dc=_0x5dcbe9[_0x48f357(0x1c8)]();if(!_0x2835dc)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0x2835dc[_0x48f357(0x1cc)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/['test'](_0x2835dc))return{'valid':![],'message':_0x48f357(0x1c7)};return{'valid':!![]};}
1
+ (function(_0x16fe1e,_0x5f5d95){const _0xe711c7=a40_0x58bd,_0x543884=_0x16fe1e();while(!![]){try{const _0x31eabd=parseInt(_0xe711c7(0xad))/0x1*(parseInt(_0xe711c7(0xa3))/0x2)+-parseInt(_0xe711c7(0xa2))/0x3*(-parseInt(_0xe711c7(0xb3))/0x4)+parseInt(_0xe711c7(0xb1))/0x5+parseInt(_0xe711c7(0xb2))/0x6*(parseInt(_0xe711c7(0xab))/0x7)+parseInt(_0xe711c7(0xae))/0x8*(parseInt(_0xe711c7(0xa6))/0x9)+parseInt(_0xe711c7(0xaf))/0xa*(-parseInt(_0xe711c7(0xa8))/0xb)+-parseInt(_0xe711c7(0xaa))/0xc*(parseInt(_0xe711c7(0xa9))/0xd);if(_0x31eabd===_0x5f5d95)break;else _0x543884['push'](_0x543884['shift']());}catch(_0x42fc3c){_0x543884['push'](_0x543884['shift']());}}}(a40_0x13b4,0x7b306));function a40_0x58bd(_0x57d7b8,_0xac5fee){_0x57d7b8=_0x57d7b8-0xa2;const _0x13b4f3=a40_0x13b4();let _0x58bd73=_0x13b4f3[_0x57d7b8];return _0x58bd73;}function a40_0x13b4(){const _0x3d2e48=['Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','5984DFhjJy','3263HnLYaY','101580sXKDwg','28BAbAAa','App\x20Code\x20cannot\x20exceed\x20100\x20characters','1060logmep','1448144oPsota','4460jAVVur','App\x20Code\x20cannot\x20be\x20empty','4540845IpexuC','940542IAbbJS','4rAChvj','832350fggpbK','974iVcoKn','length','trim','27UkymNS'];a40_0x13b4=function(){return _0x3d2e48;};return a40_0x13b4();}export function validateAppcode(_0x584cbf){const _0x2ae9f7=a40_0x58bd,_0x1f4a7d=_0x584cbf[_0x2ae9f7(0xa5)]();if(!_0x1f4a7d)return{'valid':![],'message':_0x2ae9f7(0xb0)};if(_0x1f4a7d[_0x2ae9f7(0xa4)]>0x64)return{'valid':![],'message':_0x2ae9f7(0xac)};if(!/^[A-Za-z0-9_-]+$/['test'](_0x1f4a7d))return{'valid':![],'message':_0x2ae9f7(0xa7)};return{'valid':!![]};}
@@ -1 +1 @@
1
- const a41_0x4457ce=a41_0x37ab;function a41_0x37ab(_0x1b9646,_0xa445b6){_0x1b9646=_0x1b9646-0xf8;const _0x39d7e9=a41_0x39d7();let _0x37ab0d=_0x39d7e9[_0x1b9646];return _0x37ab0d;}(function(_0x3e3b09,_0x147be6){const _0x44b1ed=a41_0x37ab,_0x549b61=_0x3e3b09();while(!![]){try{const _0x2ded3a=-parseInt(_0x44b1ed(0x10b))/0x1+parseInt(_0x44b1ed(0xfd))/0x2*(parseInt(_0x44b1ed(0xfc))/0x3)+parseInt(_0x44b1ed(0xff))/0x4*(parseInt(_0x44b1ed(0x10c))/0x5)+parseInt(_0x44b1ed(0x108))/0x6*(parseInt(_0x44b1ed(0x10a))/0x7)+-parseInt(_0x44b1ed(0xf8))/0x8*(parseInt(_0x44b1ed(0x109))/0x9)+parseInt(_0x44b1ed(0xfb))/0xa+-parseInt(_0x44b1ed(0x103))/0xb*(parseInt(_0x44b1ed(0xfe))/0xc);if(_0x2ded3a===_0x147be6)break;else _0x549b61['push'](_0x549b61['shift']());}catch(_0x3b5200){_0x549b61['push'](_0x549b61['shift']());}}}(a41_0x39d7,0xe0991));import{CliErrors}from'../../errors.js';function a41_0x39d7(){const _0x2bbc56=['app','1611024VLebdG','2273787brCFBi','28Hqrllh','246207ApMNAS','68735eeaaRr','8kQwtRF','object','Usage:\x20','6632630CDIHZl','3vkGVtT','3260054xyijVB','24yvmzqM','188fuMRUm','key','string','Missing\x20key.','14270366BMRwTJ','get','config','Key\x20not\x20found:\x20'];a41_0x39d7=function(){return _0x2bbc56;};return a41_0x39d7();}import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x328d1a){const _0x6ac935=a41_0x37ab,_0x14e6b4=_0x328d1a['str'](_0x6ac935(0x100));if(!_0x14e6b4)throw CliErrors['validation'](_0x6ac935(0x102),_0x6ac935(0xfa)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x24fe6d=readConfig(),_0x575ec7=_0x14e6b4===_0x6ac935(0x107)?'appcode':_0x14e6b4,_0x1032e3=_0x24fe6d[_0x575ec7];if(_0x1032e3===undefined)throw CliErrors['validation'](_0x6ac935(0x106)+_0x14e6b4);return{'ok':!![],'data':typeof _0x1032e3==='object'?_0x1032e3:{[_0x575ec7]:_0x1032e3},'message':typeof _0x1032e3===_0x6ac935(0xf9)?undefined:String(_0x1032e3)};}export const configGetDefinition={'service':a41_0x4457ce(0x105),'command':a41_0x4457ce(0x104),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x4457ce(0x100),'type':a41_0x4457ce(0x101),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a41_0x4fa39f=a41_0x558e;(function(_0x51cc30,_0x55c8e1){const _0x391753=a41_0x558e,_0x1a1ee9=_0x51cc30();while(!![]){try{const _0x39d370=parseInt(_0x391753(0xde))/0x1+parseInt(_0x391753(0xe4))/0x2+parseInt(_0x391753(0xdc))/0x3+parseInt(_0x391753(0xdb))/0x4+parseInt(_0x391753(0xe2))/0x5*(parseInt(_0x391753(0xdd))/0x6)+-parseInt(_0x391753(0xe9))/0x7+parseInt(_0x391753(0xd8))/0x8*(-parseInt(_0x391753(0xe0))/0x9);if(_0x39d370===_0x55c8e1)break;else _0x1a1ee9['push'](_0x1a1ee9['shift']());}catch(_0xa8d0de){_0x1a1ee9['push'](_0x1a1ee9['shift']());}}}(a41_0x4308,0x4990b));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a41_0x4308(){const _0x13cdf7=['key','read','object','validation','255850ygSCsM','\x20config\x20get\x20--key\x20<key>','Missing\x20key.','2680oMnJtW','str','string','743596vdyvzp','87789ZFUCKp','6cvDSCl','266625QAjleT','appcode','22077mevYiI','Usage:\x20','616705glchjX','app','1109000VUOEkK'];a41_0x4308=function(){return _0x13cdf7;};return a41_0x4308();}function a41_0x558e(_0x103124,_0x3e6985){_0x103124=_0x103124-0xd6;const _0x430888=a41_0x4308();let _0x558e16=_0x430888[_0x103124];return _0x558e16;}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x10bab3){const _0x1025e9=a41_0x558e,_0x5eb52d=_0x10bab3[_0x1025e9(0xd9)]('key');if(!_0x5eb52d)throw CliErrors[_0x1025e9(0xe8)](_0x1025e9(0xd7),_0x1025e9(0xe1)+CLI_BIN_NAME+_0x1025e9(0xd6));const _0x29a6d4=readConfig(),_0x5d9d6e=_0x5eb52d===_0x1025e9(0xe3)?_0x1025e9(0xdf):_0x5eb52d,_0x4a54a5=_0x29a6d4[_0x5d9d6e];if(_0x4a54a5===undefined)throw CliErrors[_0x1025e9(0xe8)]('Key\x20not\x20found:\x20'+_0x5eb52d);return{'ok':!![],'data':typeof _0x4a54a5===_0x1025e9(0xe7)?_0x4a54a5:{[_0x5d9d6e]:_0x4a54a5},'message':typeof _0x4a54a5==='object'?undefined:String(_0x4a54a5)};}export const configGetDefinition={'service':'config','command':'get','description':'Get\x20a\x20config\x20value\x20by\x20key','risk':a41_0x4fa39f(0xe6),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x4fa39f(0xe5),'type':a41_0x4fa39f(0xda),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- function a42_0x31fc(_0x5aa302,_0x4ecf7e){_0x5aa302=_0x5aa302-0x10d;const _0x3d0131=a42_0x3d01();let _0x31fc36=_0x3d0131[_0x5aa302];return _0x31fc36;}(function(_0x55e22a,_0xc9d089){const _0x12f5e8=a42_0x31fc,_0x39e98d=_0x55e22a();while(!![]){try{const _0x1174cb=parseInt(_0x12f5e8(0x114))/0x1+-parseInt(_0x12f5e8(0x110))/0x2+parseInt(_0x12f5e8(0x113))/0x3+-parseInt(_0x12f5e8(0x10d))/0x4*(parseInt(_0x12f5e8(0x10e))/0x5)+-parseInt(_0x12f5e8(0x112))/0x6+-parseInt(_0x12f5e8(0x111))/0x7+parseInt(_0x12f5e8(0x10f))/0x8;if(_0x1174cb===_0xc9d089)break;else _0x39e98d['push'](_0x39e98d['shift']());}catch(_0x40b800){_0x39e98d['push'](_0x39e98d['shift']());}}}(a42_0x3d01,0x24c28));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a42_0x3d01(){const _0x134660=['152996ECBVYQ','20XPyYik','1449632EFcxfW','458364LJdfqb','641697BEugCf','81942fVkXmG','820851awpnoF','183253qCtjnA'];a42_0x3d01=function(){return _0x134660;};return a42_0x3d01();}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ function a42_0x3942(){const _0xaa4221=['85vhUShz','10cjeedl','409719iEhwuR','944lDdovh','14273fpZLJA','3185963mDbGfR','118446mzbEVZ','470367pkUVtu','230528DUHNTf','4uxeUUC','388076RGJrus'];a42_0x3942=function(){return _0xaa4221;};return a42_0x3942();}(function(_0x35e898,_0x248d13){const _0x717949=a42_0x339e,_0x1bf709=_0x35e898();while(!![]){try{const _0x115ff0=-parseInt(_0x717949(0xd1))/0x1+parseInt(_0x717949(0xcf))/0x2+parseInt(_0x717949(0xd4))/0x3*(parseInt(_0x717949(0xd0))/0x4)+-parseInt(_0x717949(0xd2))/0x5*(-parseInt(_0x717949(0xcd))/0x6)+-parseInt(_0x717949(0xcb))/0x7*(-parseInt(_0x717949(0xd5))/0x8)+parseInt(_0x717949(0xce))/0x9+-parseInt(_0x717949(0xd3))/0xa*(parseInt(_0x717949(0xcc))/0xb);if(_0x115ff0===_0x248d13)break;else _0x1bf709['push'](_0x1bf709['shift']());}catch(_0x56c9d3){_0x1bf709['push'](_0x1bf709['shift']());}}}(a42_0x3942,0x3175e));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a42_0x339e(_0x141396,_0x267667){_0x141396=_0x141396-0xcb;const _0x39424a=a42_0x3942();let _0x339ed2=_0x39424a[_0x141396];return _0x339ed2;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- const a43_0x20e453=a43_0xfaf6;function a43_0x1886(){const _0x1a7d07=['245029jlIQdL','386440JbYUin','6esRnUk','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','9KtdrZc','3040260NnSWYr','226332QpwfOJ','List\x20all\x20config\x20values','config','boolean','1074915yJMZdM','7UzLBYk','4531376ibmIJb','35778610xHgUqu','global'];a43_0x1886=function(){return _0x1a7d07;};return a43_0x1886();}(function(_0x9622ff,_0x2597cc){const _0x3dc139=a43_0xfaf6,_0xa121b1=_0x9622ff();while(!![]){try{const _0x47ebce=parseInt(_0x3dc139(0xf8))/0x1*(-parseInt(_0x3dc139(0xfa))/0x2)+-parseInt(_0x3dc139(0xfd))/0x3+-parseInt(_0x3dc139(0xf5))/0x4+-parseInt(_0x3dc139(0xf3))/0x5+parseInt(_0x3dc139(0xfe))/0x6+parseInt(_0x3dc139(0xf4))/0x7*(parseInt(_0x3dc139(0xf9))/0x8)+parseInt(_0x3dc139(0xfc))/0x9*(parseInt(_0x3dc139(0xf6))/0xa);if(_0x47ebce===_0x2597cc)break;else _0xa121b1['push'](_0xa121b1['shift']());}catch(_0x37088d){_0xa121b1['push'](_0xa121b1['shift']());}}}(a43_0x1886,0x8a902));import{readScopedConfig}from'../../commands/config/shared.js';function a43_0xfaf6(_0x48dc5f,_0x527027){_0x48dc5f=_0x48dc5f-0xf0;const _0x18867c=a43_0x1886();let _0xfaf671=_0x18867c[_0x48dc5f];return _0xfaf671;}import{readConfig}from'../../utils/config.js';async function execute(_0x1e32fe){const _0x2afd7e=a43_0xfaf6,_0x122d57=_0x1e32fe['bool'](_0x2afd7e(0xf7))?readScopedConfig(_0x2afd7e(0xf7)):readConfig();return{'ok':!![],'data':_0x122d57};}export const configListDefinition={'service':a43_0x20e453(0xf1),'command':'list','description':a43_0x20e453(0xf0),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x20e453(0xf7),'type':a43_0x20e453(0xf2),'description':a43_0x20e453(0xfb),'default':![]}],'execute':execute};
1
+ function a43_0x38cb(_0x360c98,_0x36c60b){_0x360c98=_0x360c98-0x13a;const _0x289cb9=a43_0x289c();let _0x38cbcc=_0x289cb9[_0x360c98];return _0x38cbcc;}const a43_0x518a6e=a43_0x38cb;(function(_0x175112,_0x225c3b){const _0x3f6a04=a43_0x38cb,_0x30690c=_0x175112();while(!![]){try{const _0x12998f=parseInt(_0x3f6a04(0x144))/0x1+-parseInt(_0x3f6a04(0x140))/0x2+parseInt(_0x3f6a04(0x13f))/0x3*(parseInt(_0x3f6a04(0x147))/0x4)+-parseInt(_0x3f6a04(0x141))/0x5*(-parseInt(_0x3f6a04(0x149))/0x6)+parseInt(_0x3f6a04(0x13c))/0x7*(-parseInt(_0x3f6a04(0x142))/0x8)+-parseInt(_0x3f6a04(0x13e))/0x9*(parseInt(_0x3f6a04(0x146))/0xa)+parseInt(_0x3f6a04(0x143))/0xb;if(_0x12998f===_0x225c3b)break;else _0x30690c['push'](_0x30690c['shift']());}catch(_0x2c72d3){_0x30690c['push'](_0x30690c['shift']());}}}(a43_0x289c,0xb6c5d));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x31238f){const _0x487c3a=a43_0x38cb,_0x1a45ec=_0x31238f[_0x487c3a(0x148)](_0x487c3a(0x13b))?readScopedConfig(_0x487c3a(0x13b)):readConfig();return{'ok':!![],'data':_0x1a45ec};}export const configListDefinition={'service':a43_0x518a6e(0x13a),'command':a43_0x518a6e(0x13d),'description':a43_0x518a6e(0x145),'risk':a43_0x518a6e(0x14a),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':'boolean','description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};function a43_0x289c(){const _0x59352e=['108669NiizPM','List\x20all\x20config\x20values','50FJOhvN','510900tMDhPO','bool','48cnSoqi','read','config','global','7sLCtmL','list','509121NAzIDF','3yDbHrq','326986uaFgZr','90635dviWcz','10587832cbTebX','23507484aEOcKm'];a43_0x289c=function(){return _0x59352e;};return a43_0x289c();}
@@ -1 +1 @@
1
- const a44_0x34f8d4=a44_0x2be1;(function(_0x4a1998,_0x5c47cd){const _0x17b820=a44_0x2be1,_0x3d95ad=_0x4a1998();while(!![]){try{const _0x2ffae5=parseInt(_0x17b820(0x1a6))/0x1*(-parseInt(_0x17b820(0x1ad))/0x2)+-parseInt(_0x17b820(0x188))/0x3+-parseInt(_0x17b820(0x190))/0x4+parseInt(_0x17b820(0x17f))/0x5*(-parseInt(_0x17b820(0x1a2))/0x6)+-parseInt(_0x17b820(0x196))/0x7*(-parseInt(_0x17b820(0x187))/0x8)+parseInt(_0x17b820(0x1a1))/0x9*(parseInt(_0x17b820(0x185))/0xa)+parseInt(_0x17b820(0x17b))/0xb;if(_0x2ffae5===_0x5c47cd)break;else _0x3d95ad['push'](_0x3d95ad['shift']());}catch(_0x255178){_0x3d95ad['push'](_0x3d95ad['shift']());}}}(a44_0x33e1,0xd6e28));function a44_0x2be1(_0x1f3e99,_0x12ea8f){_0x1f3e99=_0x1f3e99-0x17b;const _0x33e12f=a44_0x33e1();let _0x2be10d=_0x33e12f[_0x1f3e99];return _0x2be10d;}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(_0xce3e3e){const _0x27e151=a44_0x2be1,_0x351b07=_0xce3e3e[_0x27e151(0x1a7)]('key'),_0x34b39d=_0xce3e3e['str'](_0x27e151(0x180));if(!_0x351b07)throw CliErrors['validation'](_0x27e151(0x1a3),_0x27e151(0x19e)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x34b39d===undefined||_0x34b39d==='')throw CliErrors[_0x27e151(0x181)](_0x27e151(0x18b),_0x27e151(0x19e)+CLI_BIN_NAME+_0x27e151(0x18c));if(_0x34b39d[_0x27e151(0x199)]>0x1f4)throw CliErrors['validation']('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(!isTopLevelConfigKey(_0x351b07))throw CliErrors[_0x27e151(0x181)]('Top-level\x20key\x20\x22'+_0x351b07+_0x27e151(0x183),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x351b07==='riskLevel')throw CliErrors['validation']('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(CONFIG_ENUM_VALUES[_0x351b07]&&!CONFIG_ENUM_VALUES[_0x351b07][_0x27e151(0x192)](_0x34b39d))throw CliErrors['validation']('Invalid\x20value\x20for\x20\x22'+_0x351b07+_0x27e151(0x19b)+CONFIG_ENUM_VALUES[_0x351b07][_0x27e151(0x19f)](',\x20'));if(_0x351b07===_0x27e151(0x18d)&&!normalizeLocale(_0x34b39d))throw CliErrors[_0x27e151(0x181)](_0x27e151(0x1a0),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x3cc34c={'global':_0xce3e3e['bool'](_0x27e151(0x1a9))},_0x151bf1=resolveWriteScope(_0x3cc34c),_0x39b9f6=readScopedConfig(_0x151bf1);let _0x39bcdb=_0x351b07,_0x3bb6d5=_0x34b39d;_0x351b07===_0x27e151(0x186)&&(_0x39bcdb=_0x27e151(0x19d),delete _0x39b9f6[_0x27e151(0x186)]);_0x351b07===_0x27e151(0x18d)&&(_0x3bb6d5=normalizeLocale(_0x34b39d));if(_0x351b07===_0x27e151(0x1aa)){_0x3bb6d5=normalizeEnv(_0x34b39d);if(!isProduction(_0x3bb6d5)&&!isDaily(_0x3bb6d5))throw CliErrors[_0x27e151(0x181)](_0x27e151(0x191),_0x27e151(0x19c));}if(_0x351b07===_0x27e151(0x19d)){const _0x2ef6f1=_0x39b9f6['apps']&&typeof _0x39b9f6['apps']===_0x27e151(0x194)?Object[_0x27e151(0x1ab)](_0x39b9f6[_0x27e151(0x17d)]):[];if(_0x2ef6f1['length']>0x0)throw CliErrors[_0x27e151(0x181)](_0x27e151(0x198),_0x27e151(0x19a)+CLI_BIN_NAME+_0x27e151(0x17c)+_0x3bb6d5+'`,\x20`'+CLI_BIN_NAME+_0x27e151(0x18f));const _0x46559b=buildCanonicalProjectConfig({..._0x39b9f6},{'appCodes':[_0x3bb6d5],'env':typeof _0x39b9f6[_0x27e151(0x1aa)]===_0x27e151(0x1ac)?_0x39b9f6[_0x27e151(0x1aa)]:undefined});writeScopedConfig(_0x46559b,_0x151bf1);const _0x1d4228=_0x151bf1===_0x27e151(0x1a9)?_0x27e151(0x195):_0x27e151(0x182);return{'ok':!![],'message':'✓\x20'+_0x1d4228+_0x27e151(0x18e)+_0x3bb6d5+_0x27e151(0x1a8)};}_0x39b9f6[_0x39bcdb]=_0x3bb6d5,writeScopedConfig(_0x39b9f6,_0x151bf1);const _0xb41353=_0x151bf1===_0x27e151(0x1a9)?_0x27e151(0x195):_0x27e151(0x182);return{'ok':!![],'message':'✓\x20'+_0xb41353+'\x20'+_0x39bcdb+_0x27e151(0x17e)+_0x3bb6d5};}function a44_0x33e1(){const _0x2d00c6=['Use\x20`','\x22.\x20Allowed:\x20','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','appcode','Usage:\x20','join','Invalid\x20locale\x20value.','9FOcqLj','6cFhTis','Missing\x20key.','boolean','write','599xCoNSo','str','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','global','env','keys','string','1178YSyXsa','3380872bLxoMa','\x20app\x20add\x20<name>\x20--appcode\x20','apps','\x20set\x20to:\x20','2400925DQAkXD','value','validation','Project','\x22\x20is\x20not\x20settable.','set','2621090wYvTrx','app','388544gnHxyY','363417XrIcmE','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','config','Missing\x20value.','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','locale','\x20appcode\x20set\x20to:\x20','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','1351608jrwkWr','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','includes','key','object','Global','231EnNYhb','Config\x20value','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','length'];a44_0x33e1=function(){return _0x2d00c6;};return a44_0x33e1();}export const configSetDefinition={'service':a44_0x34f8d4(0x18a),'command':a44_0x34f8d4(0x184),'description':'Set\x20a\x20config\x20value','risk':a44_0x34f8d4(0x1a5),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a44_0x34f8d4(0x193),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':'string','description':a44_0x34f8d4(0x197),'required':!![]},{'name':'global','type':a44_0x34f8d4(0x1a4),'description':a44_0x34f8d4(0x189),'default':![]}],'execute':execute};
1
+ const a44_0x49d0f4=a44_0x2173;(function(_0x323772,_0x536498){const _0x402dd3=a44_0x2173,_0x1f12b0=_0x323772();while(!![]){try{const _0x2dddf7=-parseInt(_0x402dd3(0xe2))/0x1+-parseInt(_0x402dd3(0xee))/0x2*(-parseInt(_0x402dd3(0x102))/0x3)+parseInt(_0x402dd3(0x106))/0x4*(parseInt(_0x402dd3(0x103))/0x5)+parseInt(_0x402dd3(0xec))/0x6*(-parseInt(_0x402dd3(0x107))/0x7)+-parseInt(_0x402dd3(0xe7))/0x8*(parseInt(_0x402dd3(0xe1))/0x9)+parseInt(_0x402dd3(0xe9))/0xa*(-parseInt(_0x402dd3(0xf8))/0xb)+parseInt(_0x402dd3(0xeb))/0xc*(parseInt(_0x402dd3(0x109))/0xd);if(_0x2dddf7===_0x536498)break;else _0x1f12b0['push'](_0x1f12b0['shift']());}catch(_0x3af3d0){_0x1f12b0['push'](_0x1f12b0['shift']());}}}(a44_0x46d6,0xeb7e3));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(_0x3446bf){const _0xe59e47=a44_0x2173,_0x5f09cb=_0x3446bf['str'](_0xe59e47(0xf5)),_0x4e8c9f=_0x3446bf['str']('value');if(!_0x5f09cb)throw CliErrors[_0xe59e47(0x10b)](_0xe59e47(0xfc),_0xe59e47(0xe4)+CLI_BIN_NAME+_0xe59e47(0xef));if(_0x4e8c9f===undefined||_0x4e8c9f==='')throw CliErrors[_0xe59e47(0x10b)](_0xe59e47(0x108),_0xe59e47(0xe4)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x4e8c9f[_0xe59e47(0xff)]>0x1f4)throw CliErrors['validation']('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(!isTopLevelConfigKey(_0x5f09cb))throw CliErrors[_0xe59e47(0x10b)](_0xe59e47(0x111)+_0x5f09cb+_0xe59e47(0xde),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x5f09cb===_0xe59e47(0xe3))throw CliErrors['validation']('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(CONFIG_ENUM_VALUES[_0x5f09cb]&&!CONFIG_ENUM_VALUES[_0x5f09cb]['includes'](_0x4e8c9f))throw CliErrors[_0xe59e47(0x10b)](_0xe59e47(0xe8)+_0x5f09cb+_0xe59e47(0xfa)+CONFIG_ENUM_VALUES[_0x5f09cb][_0xe59e47(0xf1)](',\x20'));if(_0x5f09cb===_0xe59e47(0xf3)&&!normalizeLocale(_0x4e8c9f))throw CliErrors['validation'](_0xe59e47(0x10f),_0xe59e47(0x105));const _0x465081={'global':_0x3446bf[_0xe59e47(0xf2)](_0xe59e47(0x10c))},_0xb200ba=resolveWriteScope(_0x465081),_0x2fafd=readScopedConfig(_0xb200ba);let _0x16dd23=_0x5f09cb,_0x53b815=_0x4e8c9f;_0x5f09cb===_0xe59e47(0xf7)&&(_0x16dd23=_0xe59e47(0xfd),delete _0x2fafd['app']);_0x5f09cb===_0xe59e47(0xf3)&&(_0x53b815=normalizeLocale(_0x4e8c9f));if(_0x5f09cb===_0xe59e47(0xf9)){_0x53b815=normalizeEnv(_0x4e8c9f);if(!isProduction(_0x53b815)&&!isDaily(_0x53b815))throw CliErrors['validation'](_0xe59e47(0x10d),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x5f09cb===_0xe59e47(0xfd)){const _0x2d6e25=_0x2fafd[_0xe59e47(0x10e)]&&typeof _0x2fafd[_0xe59e47(0x10e)]==='object'?Object[_0xe59e47(0xfb)](_0x2fafd[_0xe59e47(0x10e)]):[];if(_0x2d6e25[_0xe59e47(0xff)]>0x0)throw CliErrors['validation'](_0xe59e47(0x101),_0xe59e47(0xea)+CLI_BIN_NAME+_0xe59e47(0x100)+_0x53b815+_0xe59e47(0xe6)+CLI_BIN_NAME+'\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x50064a=buildCanonicalProjectConfig({..._0x2fafd},{'appCodes':[_0x53b815],'env':typeof _0x2fafd[_0xe59e47(0xf9)]===_0xe59e47(0xdf)?_0x2fafd[_0xe59e47(0xf9)]:undefined});writeScopedConfig(_0x50064a,_0xb200ba);const _0x2a640f=_0xb200ba===_0xe59e47(0x10c)?_0xe59e47(0xf0):'Project';return{'ok':!![],'message':'✓\x20'+_0x2a640f+_0xe59e47(0xed)+_0x53b815+_0xe59e47(0x104)};}_0x2fafd[_0x16dd23]=_0x53b815,writeScopedConfig(_0x2fafd,_0xb200ba);const _0x57d212=_0xb200ba===_0xe59e47(0x10c)?_0xe59e47(0xf0):_0xe59e47(0x110);return{'ok':!![],'message':'✓\x20'+_0x57d212+'\x20'+_0x16dd23+'\x20set\x20to:\x20'+_0x53b815};}function a44_0x46d6(){const _0x5dd855=['Missing\x20value.','210041hvkAPb','write','validation','global','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','apps','Invalid\x20locale\x20value.','Project','Top-level\x20key\x20\x22','\x22\x20is\x20not\x20settable.','string','config','72UScyvu','1632322gqYeFs','riskLevel','Usage:\x20','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','`,\x20`','1792256mFzJuM','Invalid\x20value\x20for\x20\x22','445960hzFLdH','Use\x20`','2652eBkXHW','18MqiGTC','\x20appcode\x20set\x20to:\x20','2836ohShLG','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Global','join','bool','locale','set','key','Set\x20a\x20config\x20value','app','110dgpOCJ','env','\x22.\x20Allowed:\x20','keys','Missing\x20key.','appcode','value','length','\x20app\x20add\x20<name>\x20--appcode\x20','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','402nbflWV','485930sOmazd','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','48PBBAZc','214256wxVGCh'];a44_0x46d6=function(){return _0x5dd855;};return a44_0x46d6();}function a44_0x2173(_0x42909,_0x355f4a){_0x42909=_0x42909-0xde;const _0x46d62d=a44_0x46d6();let _0x21730c=_0x46d62d[_0x42909];return _0x21730c;}export const configSetDefinition={'service':a44_0x49d0f4(0xe0),'command':a44_0x49d0f4(0xf4),'description':a44_0x49d0f4(0xf6),'risk':a44_0x49d0f4(0x10a),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x49d0f4(0xfe),'type':'string','description':'Config\x20value','required':!![]},{'name':a44_0x49d0f4(0x10c),'type':'boolean','description':a44_0x49d0f4(0xe5),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x3a66de,_0x373229){var _0x36f7d3=a45_0x506c,_0x3b54ea=_0x3a66de();while(!![]){try{var _0x40b668=parseInt(_0x36f7d3(0x113))/0x1*(parseInt(_0x36f7d3(0x11d))/0x2)+-parseInt(_0x36f7d3(0x11f))/0x3*(parseInt(_0x36f7d3(0x116))/0x4)+parseInt(_0x36f7d3(0x114))/0x5+parseInt(_0x36f7d3(0x110))/0x6+parseInt(_0x36f7d3(0x112))/0x7*(parseInt(_0x36f7d3(0x11b))/0x8)+parseInt(_0x36f7d3(0x111))/0x9*(parseInt(_0x36f7d3(0x11a))/0xa)+-parseInt(_0x36f7d3(0x10f))/0xb;if(_0x40b668===_0x373229)break;else _0x3b54ea['push'](_0x3b54ea['shift']());}catch(_0x5812c6){_0x3b54ea['push'](_0x3b54ea['shift']());}}}(a45_0x5b57,0x7af74));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a45_0x5b57(){var _0x3bade7=['169897edwvMH','2OXGbmD','2285265RNDEzA','validation','3174052tHwWAO','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','project','\x20init`\x20first.','570LLMpux','72bCPPhn','global','314714VLFMdW','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','3xjcXxD','7261738pAWqGK','2995320HtUoer','73881aYTAgW'];a45_0x5b57=function(){return _0x3bade7;};return a45_0x5b57();}import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};function a45_0x506c(_0x516215,_0x1fafe1){_0x516215=_0x516215-0x10f;var _0x5b5797=a45_0x5b57();var _0x506c0e=_0x5b5797[_0x516215];return _0x506c0e;}export function resolveWriteScope(_0x119eb9){var _0x1c4a32=a45_0x506c;if(_0x119eb9[_0x1c4a32(0x11c)])return _0x1c4a32(0x11c);if(!isInProject())throw CliErrors[_0x1c4a32(0x115)](_0x1c4a32(0x117),_0x1c4a32(0x11e)+CLI_BIN_NAME+_0x1c4a32(0x119));return _0x1c4a32(0x118);}export function readScopedConfig(_0x5b8e6b){return readConfigFile(resolveWriteConfigPath(_0x5b8e6b));}export function writeScopedConfig(_0x4da1b0,_0x468f5a){writeConfigFile(resolveWriteConfigPath(_0x468f5a),_0x4da1b0);}
1
+ (function(_0x414bda,_0x140260){var _0x363583=a45_0x1fde,_0x2ba2c8=_0x414bda();while(!![]){try{var _0xd7f4d7=-parseInt(_0x363583(0xe2))/0x1+parseInt(_0x363583(0xe8))/0x2*(parseInt(_0x363583(0xeb))/0x3)+-parseInt(_0x363583(0xe6))/0x4+-parseInt(_0x363583(0xe3))/0x5+-parseInt(_0x363583(0xe1))/0x6*(-parseInt(_0x363583(0xe7))/0x7)+-parseInt(_0x363583(0xe4))/0x8+parseInt(_0x363583(0xe9))/0x9;if(_0xd7f4d7===_0x140260)break;else _0x2ba2c8['push'](_0x2ba2c8['shift']());}catch(_0x258169){_0x2ba2c8['push'](_0x2ba2c8['shift']());}}}(a45_0x5e3c,0x24fcb));function a45_0x5e3c(){var _0x29a005=['141648RfLKWM','1089020FwaxKX','1241688nMxpLg','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','291756WJjyXJ','615419JESsUI','30PBauZZ','2713383lEOgef','validation','52356IeyFQI','\x20init`\x20first.','global','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','12SJvBRh'];a45_0x5e3c=function(){return _0x29a005;};return a45_0x5e3c();}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};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x1ed9e1){var _0x4d13b9=a45_0x1fde;if(_0x1ed9e1[_0x4d13b9(0xed)])return _0x4d13b9(0xed);if(!isInProject())throw CliErrors[_0x4d13b9(0xea)](_0x4d13b9(0xe0),_0x4d13b9(0xe5)+CLI_BIN_NAME+_0x4d13b9(0xec));return'project';}function a45_0x1fde(_0x2cd19c,_0x2fcb84){_0x2cd19c=_0x2cd19c-0xe0;var _0x5e3cf7=a45_0x5e3c();var _0x1fde81=_0x5e3cf7[_0x2cd19c];return _0x1fde81;}export function readScopedConfig(_0x32a456){return readConfigFile(resolveWriteConfigPath(_0x32a456));}export function writeScopedConfig(_0x4bc95e,_0x4990d3){writeConfigFile(resolveWriteConfigPath(_0x4990d3),_0x4bc95e);}
@@ -1 +1 @@
1
- const a46_0x5e24b5=a46_0x1b5f;(function(_0x177550,_0x1ec991){const _0x16b7a1=a46_0x1b5f,_0x719a15=_0x177550();while(!![]){try{const _0x1ed7bf=parseInt(_0x16b7a1(0xd4))/0x1+parseInt(_0x16b7a1(0xd7))/0x2+-parseInt(_0x16b7a1(0xce))/0x3*(parseInt(_0x16b7a1(0xcd))/0x4)+parseInt(_0x16b7a1(0xd0))/0x5*(-parseInt(_0x16b7a1(0xc7))/0x6)+-parseInt(_0x16b7a1(0xd5))/0x7+parseInt(_0x16b7a1(0xd8))/0x8*(parseInt(_0x16b7a1(0xcc))/0x9)+parseInt(_0x16b7a1(0xd9))/0xa;if(_0x1ed7bf===_0x1ec991)break;else _0x719a15['push'](_0x719a15['shift']());}catch(_0x51f826){_0x719a15['push'](_0x719a15['shift']());}}}(a46_0x5550,0xbcd14));function a46_0x1b5f(_0x5008a2,_0x535775){_0x5008a2=_0x5008a2-0xc7;const _0x555020=a46_0x5550();let _0x1b5fd5=_0x555020[_0x5008a2];return _0x1b5fd5;}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a46_0x5e24b5(0xd2),'operation':a46_0x5e24b5(0xd2),'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsRequired':![],'paramsHint':a46_0x5e24b5(0xd1),'helpExtra':[a46_0x5e24b5(0xca),a46_0x5e24b5(0xd6),a46_0x5e24b5(0xc8),a46_0x5e24b5(0xd3),a46_0x5e24b5(0xc9),a46_0x5e24b5(0xcb)][a46_0x5e24b5(0xcf)]('\x0a')});function a46_0x5550(){const _0x46b0a0=['\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}]','653545RTWRaw','1090719IwKtGS','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','2616060hWNAqi','29600lrALBm','11927110VhgBAL','66cVoXUa','\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]','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','504zmdocQ','344SLGdZH','38730eEGdPm','join','600915byxWiY','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','filter'];a46_0x5550=function(){return _0x46b0a0;};return a46_0x5550();}
1
+ const a46_0x2eec68=a46_0x3480;(function(_0x159e32,_0x445f0a){const _0x2d98f7=a46_0x3480,_0x5530ca=_0x159e32();while(!![]){try{const _0x1aac3e=parseInt(_0x2d98f7(0x17b))/0x1*(-parseInt(_0x2d98f7(0x177))/0x2)+-parseInt(_0x2d98f7(0x17c))/0x3+parseInt(_0x2d98f7(0x185))/0x4+parseInt(_0x2d98f7(0x17e))/0x5+-parseInt(_0x2d98f7(0x186))/0x6*(-parseInt(_0x2d98f7(0x184))/0x7)+-parseInt(_0x2d98f7(0x178))/0x8+parseInt(_0x2d98f7(0x176))/0x9*(parseInt(_0x2d98f7(0x183))/0xa);if(_0x1aac3e===_0x445f0a)break;else _0x5530ca['push'](_0x5530ca['shift']());}catch(_0x31f933){_0x5530ca['push'](_0x5530ca['shift']());}}}(a46_0x5aeb,0x92492));import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a46_0x2eec68(0x17f),'operation':'filter','description':a46_0x2eec68(0x17d),'paramsRequired':![],'paramsHint':a46_0x2eec68(0x181),'helpExtra':['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions',a46_0x2eec68(0x175),a46_0x2eec68(0x179),a46_0x2eec68(0x17a),a46_0x2eec68(0x180)][a46_0x2eec68(0x182)]('\x0a')});function a46_0x3480(_0x41ff6f,_0x5b0f4a){_0x41ff6f=_0x41ff6f-0x175;const _0x5aeb91=a46_0x5aeb();let _0x348093=_0x5aeb91[_0x41ff6f];return _0x348093;}function a46_0x5aeb(){const _0x5c1bde=['45148Iyhhov','114fuFhQP','\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]','549BDUutx','1178420HxGjoQ','9086584wFGfKL','\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}]','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','1lychXb','1485651ryinMm','Filter\x20dataset\x20records\x20with\x20query\x20conditions','3128335TQZqLg','filter','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','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','join','267590tuOmWE','202699zzGQpX'];a46_0x5aeb=function(){return _0x5c1bde;};return a46_0x5aeb();}
@@ -1 +1 @@
1
- function a47_0x437c(){const _0x1ac03b=['1434808ZrXoKO','22vHzUnd','96806LeVgnM','140020fZSJCN','9vjJFje','1064315IQiGVy','2447440jwmHGb','1wgjABM','Get\x20a\x20single\x20record\x20by\x20ID','57spkBNX','3313910mWsjHg','5696412NEHtid','getOne','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','6DgsuLH'];a47_0x437c=function(){return _0x1ac03b;};return a47_0x437c();}const a47_0x55a770=a47_0x2b91;function a47_0x2b91(_0x47a7ad,_0x12fbb0){_0x47a7ad=_0x47a7ad-0x186;const _0x437c4d=a47_0x437c();let _0x2b918b=_0x437c4d[_0x47a7ad];return _0x2b918b;}(function(_0x3d8f27,_0x4b41f7){const _0x185448=a47_0x2b91,_0x287051=_0x3d8f27();while(!![]){try{const _0x5ccc1c=parseInt(_0x185448(0x190))/0x1*(parseInt(_0x185448(0x18b))/0x2)+parseInt(_0x185448(0x192))/0x3*(-parseInt(_0x185448(0x18c))/0x4)+parseInt(_0x185448(0x193))/0x5+-parseInt(_0x185448(0x188))/0x6*(-parseInt(_0x185448(0x18e))/0x7)+parseInt(_0x185448(0x189))/0x8*(parseInt(_0x185448(0x18d))/0x9)+-parseInt(_0x185448(0x18f))/0xa*(parseInt(_0x185448(0x18a))/0xb)+parseInt(_0x185448(0x194))/0xc;if(_0x5ccc1c===_0x4b41f7)break;else _0x287051['push'](_0x287051['shift']());}catch(_0x231a07){_0x287051['push'](_0x287051['shift']());}}}(a47_0x437c,0x588cb));import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a47_0x55a770(0x186),'operation':a47_0x55a770(0x186),'description':a47_0x55a770(0x191),'paramsRequired':!![],'paramsHint':a47_0x55a770(0x187)});
1
+ const a47_0x87698e=a47_0x2c9e;(function(_0x356c9f,_0x490251){const _0x9caf9b=a47_0x2c9e,_0x4b43c1=_0x356c9f();while(!![]){try{const _0x5bf04e=-parseInt(_0x9caf9b(0x1a7))/0x1+parseInt(_0x9caf9b(0x19f))/0x2+parseInt(_0x9caf9b(0x1a5))/0x3*(parseInt(_0x9caf9b(0x1a6))/0x4)+-parseInt(_0x9caf9b(0x1a8))/0x5*(parseInt(_0x9caf9b(0x1ab))/0x6)+parseInt(_0x9caf9b(0x1a0))/0x7+-parseInt(_0x9caf9b(0x1aa))/0x8*(parseInt(_0x9caf9b(0x1a4))/0x9)+parseInt(_0x9caf9b(0x19e))/0xa*(-parseInt(_0x9caf9b(0x1a1))/0xb);if(_0x5bf04e===_0x490251)break;else _0x4b43c1['push'](_0x4b43c1['shift']());}catch(_0xcd27e2){_0x4b43c1['push'](_0x4b43c1['shift']());}}}(a47_0x1a94,0x88558));function a47_0x2c9e(_0x4f4a08,_0x22e82b){_0x4f4a08=_0x4f4a08-0x19e;const _0x1a94b8=a47_0x1a94();let _0x2c9e7=_0x1a94b8[_0x4f4a08];return _0x2c9e7;}function a47_0x1a94(){const _0x59874f=['JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','5157vvDtol','794025KBkEGu','4vgXkgA','171703mPATTV','120605slPyJh','Get\x20a\x20single\x20record\x20by\x20ID','984hQPMtG','42QXDWBC','13290LRSmiX','1403296mdmIKO','2412781yEtzpg','2827AOyRMq','getOne'];a47_0x1a94=function(){return _0x59874f;};return a47_0x1a94();}import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a47_0x87698e(0x1a2),'operation':a47_0x87698e(0x1a2),'description':a47_0x87698e(0x1a9),'paramsRequired':!![],'paramsHint':a47_0x87698e(0x1a3)});
@@ -1 +1 @@
1
- (function(_0x41524b,_0x265528){const _0x2eb109=a48_0x2247,_0x16d1fe=_0x41524b();while(!![]){try{const _0x8604f2=parseInt(_0x2eb109(0xbd))/0x1*(-parseInt(_0x2eb109(0xc5))/0x2)+-parseInt(_0x2eb109(0xc1))/0x3*(parseInt(_0x2eb109(0xc2))/0x4)+parseInt(_0x2eb109(0xc6))/0x5*(parseInt(_0x2eb109(0xc0))/0x6)+parseInt(_0x2eb109(0xc3))/0x7+-parseInt(_0x2eb109(0xc4))/0x8*(-parseInt(_0x2eb109(0xbe))/0x9)+-parseInt(_0x2eb109(0xbf))/0xa+parseInt(_0x2eb109(0xbc))/0xb;if(_0x8604f2===_0x265528)break;else _0x16d1fe['push'](_0x16d1fe['shift']());}catch(_0x342e1d){_0x16d1fe['push'](_0x16d1fe['shift']());}}}(a48_0x43b3,0x719f6));import{dataFilter}from'../../commands/data/filter.js';function a48_0x2247(_0x2829bd,_0x592a3e){_0x2829bd=_0x2829bd-0xbc;const _0x43b3a0=a48_0x43b3();let _0x2247f1=_0x43b3a0[_0x2829bd];return _0x2247f1;}import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];function a48_0x43b3(){const _0x39b642=['3512sdWeQW','406413ThMoAu','64eUnmPr','208118zpJAeX','757830kQusZS','9052120zBKRxs','1WlDtYm','260784zyHqaP','8066240kjkjFJ','18AhyGzG','654jvVsIz'];a48_0x43b3=function(){return _0x39b642;};return a48_0x43b3();}
1
+ function a48_0x5641(_0x491659,_0x2ea9ea){_0x491659=_0x491659-0x10a;const _0x27b5b3=a48_0x27b5();let _0x5641e0=_0x27b5b3[_0x491659];return _0x5641e0;}(function(_0x1b6ead,_0x4ca10f){const _0xfa0011=a48_0x5641,_0x474b72=_0x1b6ead();while(!![]){try{const _0x1ad986=-parseInt(_0xfa0011(0x10b))/0x1+-parseInt(_0xfa0011(0x112))/0x2+-parseInt(_0xfa0011(0x10a))/0x3*(-parseInt(_0xfa0011(0x110))/0x4)+parseInt(_0xfa0011(0x111))/0x5*(-parseInt(_0xfa0011(0x10e))/0x6)+parseInt(_0xfa0011(0x113))/0x7+-parseInt(_0xfa0011(0x10f))/0x8*(parseInt(_0xfa0011(0x10d))/0x9)+parseInt(_0xfa0011(0x10c))/0xa;if(_0x1ad986===_0x4ca10f)break;else _0x474b72['push'](_0x474b72['shift']());}catch(_0x321459){_0x474b72['push'](_0x474b72['shift']());}}}(a48_0x27b5,0x6611b));import{dataFilter}from'../../commands/data/filter.js';function a48_0x27b5(){const _0x5c8322=['741511BZDPPt','22373610XgQvFm','567909XuqJze','2949312xzHwEC','88ODCzUT','960sqcvea','5emXfkJ','1418102pfUNES','4426653ReMTLs','2307yUfOqv'];a48_0x27b5=function(){return _0x5c8322;};return a48_0x27b5();}import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
@@ -1 +1 @@
1
- (function(_0xe01db,_0x45ce3c){const _0x4b9110=a49_0x4833,_0x4050f7=_0xe01db();while(!![]){try{const _0x391a1d=parseInt(_0x4b9110(0xfd))/0x1+-parseInt(_0x4b9110(0xe7))/0x2+parseInt(_0x4b9110(0xf1))/0x3+-parseInt(_0x4b9110(0xf3))/0x4*(-parseInt(_0x4b9110(0xe6))/0x5)+-parseInt(_0x4b9110(0xe8))/0x6*(parseInt(_0x4b9110(0xfa))/0x7)+parseInt(_0x4b9110(0xef))/0x8+parseInt(_0x4b9110(0xff))/0x9*(-parseInt(_0x4b9110(0xfb))/0xa);if(_0x391a1d===_0x45ce3c)break;else _0x4050f7['push'](_0x4050f7['shift']());}catch(_0x52ddbb){_0x4050f7['push'](_0x4050f7['shift']());}}}(a49_0x33c9,0xc5f38));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(_0x10a8b4){const _0xdd32b6=a49_0x4833;if(!_0x10a8b4)throw CliErrors[_0xdd32b6(0xfe)](_0xdd32b6(0xe4),'Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.');const _0xfd4794=_0x10a8b4['id'];if(_0xfd4794===undefined||_0xfd4794===null||_0xfd4794==='')throw CliErrors[_0xdd32b6(0x100)](_0xdd32b6(0xf0),_0xdd32b6(0xeb));}function parseCommandParams(_0x404432){return parseJsonParams(_0x404432)??{};}function a49_0x4833(_0x1b6ba5,_0x5961b4){_0x1b6ba5=_0x1b6ba5-0xe3;const _0x33c9ba=a49_0x33c9();let _0x483368=_0x33c9ba[_0x1b6ba5];return _0x483368;}export function buildDataCommand(_0x16ce10){const _0x3656d4=a49_0x4833,_0x415361=_0x3656d4(0xea);return{'service':_0x3656d4(0xf9),'command':_0x16ce10[_0x3656d4(0xe5)],'description':_0x16ce10[_0x3656d4(0xf8)],'risk':'read','defaultOutputFormat':_0x3656d4(0xe3),'helpExtra':_0x16ce10['helpExtra'],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x3656d4(0xe9),'type':_0x3656d4(0xed),'description':_0x415361},{'name':'params','type':'string','description':_0x16ce10[_0x3656d4(0xf5)]}],async 'validate'(_0xfa9fd7){const _0x4db5cf=_0x3656d4,_0x2fdbf4=_0xfa9fd7['str'](_0x4db5cf(0xe4));if(_0x16ce10[_0x4db5cf(0xf2)]&&!_0x2fdbf4)throw CliErrors[_0x4db5cf(0xfe)]('params',_0x16ce10[_0x4db5cf(0xf5)]);const _0x133d7d=parseJsonParams(_0x2fdbf4);_0x16ce10[_0x4db5cf(0xf7)]===_0x4db5cf(0xee)&&assertGetOneId(_0x133d7d);},async 'execute'(_0x339776){const _0x246239=_0x3656d4,_0x41f834=parseCommandParams(_0x339776[_0x246239(0xec)](_0x246239(0xe4))),_0xad8203=Date[_0x246239(0xfc)](),_0x3b1e8d=await executeDatasetDataOperation(_0x339776['appCode'],_0x339776['str'](_0x246239(0xf4)),_0x16ce10['operation'],_0x41f834),_0x1778d7=Date['now']()-_0xad8203;return{'ok':!![],'data':{'result':_0x3b1e8d,'elapsed':_0x1778d7},'message':_0x246239(0xf6)+_0x16ce10[_0x246239(0xe5)]+_0x246239(0x101)+_0x1778d7+'ms'};}};}function a49_0x33c9(){const _0x29498e=['operation','description','data','2611reiIyB','10yloFTe','now','1235772EpXLDR','flagMissing','27081198nXdHne','validation','\x20completed\x20in\x20','compress','params','command','5ZnHGLp','630878jSozzn','20418wExlzl','alias','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','str','string','getOne','10587728lzIABL','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','4527231jLhNGw','paramsRequired','5345092qXVYcu','code','paramsHint','data\x20'];a49_0x33c9=function(){return _0x29498e;};return a49_0x33c9();}
1
+ (function(_0x4ff06a,_0x44c017){const _0x3d0b14=a49_0x18ad,_0x490e6f=_0x4ff06a();while(!![]){try{const _0x23fc8e=parseInt(_0x3d0b14(0x9b))/0x1*(-parseInt(_0x3d0b14(0x94))/0x2)+parseInt(_0x3d0b14(0xa5))/0x3+-parseInt(_0x3d0b14(0x8d))/0x4*(-parseInt(_0x3d0b14(0x99))/0x5)+parseInt(_0x3d0b14(0x9a))/0x6+parseInt(_0x3d0b14(0xa0))/0x7+-parseInt(_0x3d0b14(0x97))/0x8+parseInt(_0x3d0b14(0x8e))/0x9;if(_0x23fc8e===_0x44c017)break;else _0x490e6f['push'](_0x490e6f['shift']());}catch(_0x4ca1d1){_0x490e6f['push'](_0x490e6f['shift']());}}}(a49_0x20f6,0xad0ed));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 a49_0x18ad(_0x45fad8,_0x35d594){_0x45fad8=_0x45fad8-0x8d;const _0x20f606=a49_0x20f6();let _0x18ad3d=_0x20f606[_0x45fad8];return _0x18ad3d;}function assertGetOneId(_0x357123){const _0x5e4c63=a49_0x18ad;if(!_0x357123)throw CliErrors['flagMissing'](_0x5e4c63(0xa3),_0x5e4c63(0x91));const _0x4d11a7=_0x357123['id'];if(_0x4d11a7===undefined||_0x4d11a7===null||_0x4d11a7==='')throw CliErrors[_0x5e4c63(0x90)](_0x5e4c63(0xa1),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');}function parseCommandParams(_0x12f2b8){return parseJsonParams(_0x12f2b8)??{};}export function buildDataCommand(_0xcb4bf8){const _0x386e48=a49_0x18ad,_0x3b7d6a=_0x386e48(0xa7);return{'service':'data','command':_0xcb4bf8['command'],'description':_0xcb4bf8[_0x386e48(0x9d)],'risk':_0x386e48(0x8f),'defaultOutputFormat':_0x386e48(0xa6),'helpExtra':_0xcb4bf8[_0x386e48(0x93)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x386e48(0x9c),'type':_0x386e48(0xa4),'description':_0x3b7d6a},{'name':_0x386e48(0xa3),'type':_0x386e48(0xa4),'description':_0xcb4bf8['paramsHint']}],async 'validate'(_0x47556e){const _0x24bed0=_0x386e48,_0x3ea6d9=_0x47556e['str'](_0x24bed0(0xa3));if(_0xcb4bf8[_0x24bed0(0xa2)]&&!_0x3ea6d9)throw CliErrors[_0x24bed0(0x95)](_0x24bed0(0xa3),_0xcb4bf8[_0x24bed0(0x98)]);const _0x274973=parseJsonParams(_0x3ea6d9);_0xcb4bf8[_0x24bed0(0x92)]==='getOne'&&assertGetOneId(_0x274973);},async 'execute'(_0x439972){const _0x256c7f=_0x386e48,_0xacf87d=parseCommandParams(_0x439972[_0x256c7f(0x96)](_0x256c7f(0xa3))),_0xae4d35=Date['now'](),_0x352d4d=await executeDatasetDataOperation(_0x439972['appCode'],_0x439972[_0x256c7f(0x96)]('code'),_0xcb4bf8[_0x256c7f(0x92)],_0xacf87d),_0x288805=Date['now']()-_0xae4d35;return{'ok':!![],'data':{'result':_0x352d4d,'elapsed':_0x288805},'message':_0x256c7f(0x9e)+_0xcb4bf8[_0x256c7f(0xa8)]+_0x256c7f(0x9f)+_0x288805+'ms'};}};}function a49_0x20f6(){const _0x59171f=['description','data\x20','\x20completed\x20in\x20','346878ogOfOL','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','paramsRequired','params','string','1116864VSYMyP','compress','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','command','28SWufSk','4049658xZtqsC','read','validation','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','operation','helpExtra','212438VuogKW','flagMissing','str','9231224yidmID','paramsHint','369485JBEIKn','3479304OENzME','1IhRyXx','alias'];a49_0x20f6=function(){return _0x59171f;};return a49_0x20f6();}
@@ -1 +1 @@
1
- const a50_0x261055=a50_0x42aa;(function(_0x21a3ea,_0x2a93d1){const _0x1ee519=a50_0x42aa,_0x1528a5=_0x21a3ea();while(!![]){try{const _0x107e3d=parseInt(_0x1ee519(0x114))/0x1+parseInt(_0x1ee519(0x128))/0x2*(parseInt(_0x1ee519(0x11f))/0x3)+-parseInt(_0x1ee519(0x12a))/0x4+parseInt(_0x1ee519(0x11d))/0x5+-parseInt(_0x1ee519(0x110))/0x6*(-parseInt(_0x1ee519(0x11a))/0x7)+parseInt(_0x1ee519(0x10c))/0x8*(-parseInt(_0x1ee519(0x116))/0x9)+parseInt(_0x1ee519(0x122))/0xa*(-parseInt(_0x1ee519(0x127))/0xb);if(_0x107e3d===_0x2a93d1)break;else _0x1528a5['push'](_0x1528a5['shift']());}catch(_0x57cfd3){_0x1528a5['push'](_0x1528a5['shift']());}}}(a50_0x48ba,0xbd92b));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a50_0x261055(0x118),'filter':'lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','getOne':a50_0x261055(0x113)};export const RUNTIME_DATA_ACCESS_SUMMARY='Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.';function valueToString(_0x30c844){const _0x490294=a50_0x261055;return _0x30c844==null?'':String(_0x30c844)[_0x490294(0x10e)]();}function getDatasetCode(_0x22236a){const _0x49af1c=a50_0x261055;return valueToString(_0x22236a[_0x49af1c(0x10f)]??_0x22236a['modelCode']??_0x22236a[_0x49af1c(0x11e)]?.['datasetCode']);}function getDatasetName(_0x337ae7){const _0x21a296=a50_0x261055;return valueToString(_0x337ae7[_0x21a296(0x10b)]??_0x337ae7['dataset']?.[_0x21a296(0x12d)])||'unknown';}function getDatasetSource(_0x296e5b){const _0x3aa62a=a50_0x261055;return valueToString(_0x296e5b[_0x3aa62a(0x10a)]??_0x296e5b['dataset']?.[_0x3aa62a(0x115)])[_0x3aa62a(0x121)]();}function a50_0x42aa(_0x31c327,_0xae9ed6){_0x31c327=_0x31c327-0x10a;const _0x48bae3=a50_0x48ba();let _0x42aaf6=_0x48bae3[_0x31c327];return _0x42aaf6;}function getDbtableConfig(_0x51b9a7){const _0x576fbd=a50_0x261055,_0x3ae0cf=_0x51b9a7[_0x576fbd(0x119)]??_0x51b9a7[_0x576fbd(0x12e)];return _0x3ae0cf&&typeof _0x3ae0cf===_0x576fbd(0x117)?_0x3ae0cf:{};}export function isDbTableBackedDataset(_0x1a9450){const _0x580d68=a50_0x261055,_0x9745e8=getDatasetSource(_0x1a9450);if(_0x9745e8==='METADATA')return![];const _0x10a65=getDbtableConfig(_0x1a9450),_0x186023=_0x10a65[_0x580d68(0x12c)]??_0x10a65['id'],_0x450960=valueToString(_0x10a65['tableName']??_0x1a9450['tableName']??_0x1a9450[_0x580d68(0x11e)]?.[_0x580d68(0x129)]);return _0x186023!==undefined&&_0x186023!==null&&_0x450960[_0x580d68(0x10d)]>0x0;}export function filterDbTableBackedDatasets(_0x4acc47){return _0x4acc47['filter'](_0x3c901c=>isDbTableBackedDataset(_0x3c901c));}export function buildDbTableBackedRequirementMessage(_0x2614b1,_0x4db2ec='SQL\x20schema\x20validation'){const _0x25ba49=a50_0x261055,_0x27e98a=getDatasetSource(_0x2614b1)||_0x25ba49(0x11c),_0x2934c6=getDatasetName(_0x2614b1),_0x3d38bb=getDatasetCode(_0x2614b1),_0x40de1f=_0x3d38bb?'\x20('+_0x3d38bb+')':'';return[_0x25ba49(0x112)+_0x2934c6+'\x22'+_0x40de1f+_0x25ba49(0x125)+_0x27e98a+_0x25ba49(0x123)+_0x4db2ec+_0x25ba49(0x12b),_0x25ba49(0x124),_0x25ba49(0x126),_0x25ba49(0x11b)+RUNTIME_DATA_ACCESS_COMMANDS[_0x25ba49(0x120)]+';'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+''][_0x25ba49(0x111)]('\x20');}export function assertDatasetIsDbTableBacked(_0x2d2276,_0xf77479){if(!isDbTableBackedDataset(_0x2d2276))throw CliErrors['validation'](buildDbTableBackedRequirementMessage(_0x2d2276,_0xf77479));}function a50_0x48ba(){const _0x58580f=['2860izkXgc','\x20类型,没有可用于\x20','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','\x20是\x20','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','47102JvTRkM','1948ZpgViv','tableName','3411784hXVqbY','\x20的\x20DB_TABLE\x20数据源上下文。','dbId','datasetName','dbtable','source','name','16euAjIS','length','trim','code','348TlszGa','join','当前数据集\x20\x22','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','993657FAJXHY','sourceType','1295469nnDRhl','object','lovrabet','dbtableConfig','117397gHGfTX','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','UNKNOWN','3067990ktHFjf','dataset','1731DRgjgT','filter','toUpperCase'];a50_0x48ba=function(){return _0x58580f;};return a50_0x48ba();}
1
+ const a50_0x37731a=a50_0x3c0c;(function(_0x36ba08,_0x5a78c0){const _0x4e8727=a50_0x3c0c,_0x3cd354=_0x36ba08();while(!![]){try{const _0x5f1449=parseInt(_0x4e8727(0x1ea))/0x1+-parseInt(_0x4e8727(0x1d0))/0x2+parseInt(_0x4e8727(0x1d7))/0x3+parseInt(_0x4e8727(0x1da))/0x4+parseInt(_0x4e8727(0x1cd))/0x5+parseInt(_0x4e8727(0x1e8))/0x6*(parseInt(_0x4e8727(0x1d8))/0x7)+-parseInt(_0x4e8727(0x1cb))/0x8;if(_0x5f1449===_0x5a78c0)break;else _0x3cd354['push'](_0x3cd354['shift']());}catch(_0x3544b6){_0x3cd354['push'](_0x3cd354['shift']());}}}(a50_0x2ae0,0xcc434));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a50_0x37731a(0x1cf),'filter':a50_0x37731a(0x1d4),'getOne':a50_0x37731a(0x1dd)};function a50_0x3c0c(_0x48720e,_0x48cccd){_0x48720e=_0x48720e-0x1c8;const _0x2ae052=a50_0x2ae0();let _0x3c0c1d=_0x2ae052[_0x48720e];return _0x3c0c1d;}export const RUNTIME_DATA_ACCESS_SUMMARY=a50_0x37731a(0x1d6);function valueToString(_0x15159a){const _0x5f1824=a50_0x37731a;return _0x15159a==null?'':String(_0x15159a)[_0x5f1824(0x1ee)]();}function getDatasetCode(_0x485677){const _0x5797d3=a50_0x37731a;return valueToString(_0x485677['code']??_0x485677[_0x5797d3(0x1ca)]??_0x485677['dataset']?.[_0x5797d3(0x1d9)]);}function getDatasetName(_0x2f0eaf){const _0x19a32d=a50_0x37731a;return valueToString(_0x2f0eaf[_0x19a32d(0x1c8)]??_0x2f0eaf[_0x19a32d(0x1df)]?.[_0x19a32d(0x1cc)])||_0x19a32d(0x1e4);}function getDatasetSource(_0x340af7){const _0x4f3859=a50_0x37731a;return valueToString(_0x340af7['source']??_0x340af7['dataset']?.[_0x4f3859(0x1ed)])[_0x4f3859(0x1e9)]();}function getDbtableConfig(_0x199967){const _0x47c164=a50_0x37731a,_0x1025fd=_0x199967[_0x47c164(0x1e1)]??_0x199967[_0x47c164(0x1dc)];return _0x1025fd&&typeof _0x1025fd==='object'?_0x1025fd:{};}export function isDbTableBackedDataset(_0x111feb){const _0x7abed0=a50_0x37731a,_0x81976d=getDatasetSource(_0x111feb);if(_0x81976d===_0x7abed0(0x1e3))return![];const _0x37563a=getDbtableConfig(_0x111feb),_0x474523=_0x37563a[_0x7abed0(0x1e2)]??_0x37563a['id'],_0x460544=valueToString(_0x37563a[_0x7abed0(0x1e6)]??_0x111feb['tableName']??_0x111feb[_0x7abed0(0x1df)]?.['tableName']);return _0x474523!==undefined&&_0x474523!==null&&_0x460544[_0x7abed0(0x1d1)]>0x0;}export function filterDbTableBackedDatasets(_0x291937){const _0x271bc8=a50_0x37731a;return _0x291937[_0x271bc8(0x1e5)](_0x189e0b=>isDbTableBackedDataset(_0x189e0b));}function a50_0x2ae0(){const _0x4bacc3=['19028192ptSJlo','datasetName','6003015WwYdmS','getOne','lovrabet','1706826GbShAt','length','\x20类型,没有可用于\x20','\x20是\x20','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','join','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','4810632wmWLrX','238966DbApPl','datasetCode','4152528josoCz','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','dbtable','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','\x20的\x20DB_TABLE\x20数据源上下文。','dataset','当前数据集\x20\x22','dbtableConfig','dbId','METADATA','unknown','filter','tableName','UNKNOWN','24oEyZGz','toUpperCase','89766rYMvzI','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','SQL\x20schema\x20validation','sourceType','trim','name','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','modelCode'];a50_0x2ae0=function(){return _0x4bacc3;};return a50_0x2ae0();}export function buildDbTableBackedRequirementMessage(_0x301e02,_0xab54bd=a50_0x37731a(0x1ec)){const _0x355eea=a50_0x37731a,_0x165114=getDatasetSource(_0x301e02)||_0x355eea(0x1e7),_0x17a6b6=getDatasetName(_0x301e02),_0x41aea4=getDatasetCode(_0x301e02),_0x51d8f7=_0x41aea4?'\x20('+_0x41aea4+')':'';return[_0x355eea(0x1e0)+_0x17a6b6+'\x22'+_0x51d8f7+_0x355eea(0x1d3)+_0x165114+_0x355eea(0x1d2)+_0xab54bd+_0x355eea(0x1de),_0x355eea(0x1db),_0x355eea(0x1c9),_0x355eea(0x1eb)+RUNTIME_DATA_ACCESS_COMMANDS[_0x355eea(0x1e5)]+';'+RUNTIME_DATA_ACCESS_COMMANDS[_0x355eea(0x1ce)]+'。'][_0x355eea(0x1d5)]('\x20');}export function assertDatasetIsDbTableBacked(_0x42cf9f,_0x3b5ada){if(!isDbTableBackedDataset(_0x42cf9f))throw CliErrors['validation'](buildDbTableBackedRequirementMessage(_0x42cf9f,_0x3b5ada));}
@@ -1 +1 @@
1
- const a51_0x2185ea=a51_0x3578;(function(_0x1ed355,_0x49f55b){const _0x1a535c=a51_0x3578,_0x3fa59e=_0x1ed355();while(!![]){try{const _0x485619=-parseInt(_0x1a535c(0xa4))/0x1+-parseInt(_0x1a535c(0x92))/0x2+-parseInt(_0x1a535c(0x8f))/0x3*(-parseInt(_0x1a535c(0x89))/0x4)+-parseInt(_0x1a535c(0xb1))/0x5*(-parseInt(_0x1a535c(0x96))/0x6)+-parseInt(_0x1a535c(0xb3))/0x7+-parseInt(_0x1a535c(0x8b))/0x8*(-parseInt(_0x1a535c(0x9e))/0x9)+parseInt(_0x1a535c(0x95))/0xa*(-parseInt(_0x1a535c(0x93))/0xb);if(_0x485619===_0x49f55b)break;else _0x3fa59e['push'](_0x3fa59e['shift']());}catch(_0x149aae){_0x3fa59e['push'](_0x3fa59e['shift']());}}}(a51_0x12cd,0x29604));function a51_0x3578(_0x4c6c47,_0x27aa78){_0x4c6c47=_0x4c6c47-0x81;const _0x12cd07=a51_0x12cd();let _0x357839=_0x12cd07[_0x4c6c47];return _0x357839;}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':a51_0x2185ea(0x8e),'description':'Dataset\x20id'},DBID_FLAG={'name':a51_0x2185ea(0xa6),'type':a51_0x2185ea(0x8e),'description':a51_0x2185ea(0xb5)},CONFIRM_FLAG={'name':a51_0x2185ea(0xa1),'type':a51_0x2185ea(0x90),'description':a51_0x2185ea(0x82)},EXPECTED_COUNT_FLAG={'name':a51_0x2185ea(0xa2),'type':a51_0x2185ea(0x8e),'description':'Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value'};export const datasetDelete={'service':a51_0x2185ea(0x94),'command':'delete','description':a51_0x2185ea(0xab),'risk':a51_0x2185ea(0xb6),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0xcb1ef7){const _0x3b8f5=a51_0x2185ea,_0x31710d=_0xcb1ef7[_0x3b8f5(0xae)]('id'),_0x5a5268=_0xcb1ef7['str'](_0x3b8f5(0x84)),_0x46202b=_0xcb1ef7[_0x3b8f5(0xae)](_0x3b8f5(0xa6)),_0x3ff3c3=[_0x31710d>0x0,Boolean(_0x5a5268),_0x46202b>0x0]['filter'](Boolean);if(_0x3ff3c3[_0x3b8f5(0x9c)]===0x0)throw CliErrors[_0x3b8f5(0x9d)](_0x3b8f5(0xa0));if(_0x3ff3c3['length']>0x1)throw CliErrors[_0x3b8f5(0x9d)](_0x3b8f5(0x8c));},async 'dryRun'(_0x8262a){const _0x343ad9=a51_0x2185ea,_0x5e20f9=await resolveTargets(_0x8262a);return{'method':_0x343ad9(0x9a),'url':_0x343ad9(0x91),'body':{'appCode':_0x8262a[_0x343ad9(0x87)],'count':_0x5e20f9[_0x343ad9(0x9c)],'datasets':_0x5e20f9},'description':'Would\x20delete\x20'+_0x5e20f9[_0x343ad9(0x9c)]+_0x343ad9(0x86)};},async 'execute'(_0x427cb5){const _0x161733=a51_0x2185ea;if(!_0x427cb5[_0x161733(0x8a)](_0x161733(0xa1)))throw CliErrors[_0x161733(0x9d)]('--confirm\x20is\x20required\x20to\x20delete\x20datasets.',_0x161733(0x99));const _0x1e3aa8=await resolveTargets(_0x427cb5),_0x5258e7=[],_0x10d8bc=[];for(const _0x1abdcc of _0x1e3aa8){try{await deleteDataset(_0x427cb5[_0x161733(0x87)],_0x1abdcc['id']),_0x5258e7['push'](_0x1abdcc);}catch(_0xf0b2ce){_0x10d8bc[_0x161733(0x85)]({..._0x1abdcc,'error':_0xf0b2ce instanceof Error?_0xf0b2ce[_0x161733(0xb4)]:String(_0xf0b2ce)});}}if(_0x10d8bc[_0x161733(0x9c)]>0x0)return{'ok':![],'data':{'requested':_0x1e3aa8[_0x161733(0x9c)],'deletedCount':_0x5258e7[_0x161733(0x9c)],'failedCount':_0x10d8bc[_0x161733(0x9c)],'deleted':_0x5258e7,'failed':_0x10d8bc},'message':'Deleted\x20'+_0x5258e7['length']+'/'+_0x1e3aa8['length']+_0x161733(0xa7)+_0x10d8bc['length']+_0x161733(0xa3)};return{'ok':!![],'data':{'requested':_0x1e3aa8[_0x161733(0x9c)],'deletedCount':_0x5258e7[_0x161733(0x9c)],'deleted':_0x5258e7},'message':_0x161733(0x9f)+_0x5258e7[_0x161733(0x9c)]+_0x161733(0x98)};}};function a51_0x12cd(){const _0x2c4af4=['dataset','10TBWnAn','6XrKGOK','source','\x20dataset(s)','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','POST','filter','length','validation','36153kOJMyt','Deleted\x20','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','confirm','expected-count','\x20failed','98799juYOmq','id=','dbid','\x20dataset(s);\x20','dbtableConfig','str','relationPages','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','description','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','num','name','map','952985bIXbRX','tableName','893928tIplZo','message','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','high-risk-write','dbId','dbid=','Required\x20to\x20execute\x20dataset\x20deletion','No\x20undeleted\x20dataset\x20found\x20for\x20','code','push','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','appCode','Matched\x20','15412muRyWJ','bool','304ZlybMo','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','isArray','number','183MeAola','boolean','/smartapi/dataset/delete-dataset','126612eJdBmu','1308901FdJFNg'];a51_0x12cd=function(){return _0x2c4af4;};return a51_0x12cd();}async function resolveTargets(_0x544af9){const _0x15e991=a51_0x2185ea,_0x40f1b1=_0x544af9['num']('id'),_0x35a233=_0x544af9[_0x15e991(0xa9)](_0x15e991(0x84)),_0x4a0eba=_0x544af9['num'](_0x15e991(0xa6));let _0x195c63;_0x35a233?(_0x195c63=await listDatasets(_0x544af9[_0x15e991(0x87)],{'code':_0x35a233}),_0x195c63=_0x195c63[_0x15e991(0x9b)](_0x1dc9fa=>_0x1dc9fa[_0x15e991(0x84)]===_0x35a233)):(_0x195c63=await listDatasets(_0x544af9[_0x15e991(0x87)]),_0x40f1b1>0x0&&(_0x195c63=_0x195c63[_0x15e991(0x9b)](_0x4a9677=>_0x4a9677['id']===_0x40f1b1)),_0x4a0eba>0x0&&(_0x195c63=_0x195c63[_0x15e991(0x9b)](_0x12f364=>_0x12f364[_0x15e991(0xa8)]?.['dbId']===_0x4a0eba)));const _0x25c6e2=_0x195c63[_0x15e991(0xb0)](normalizeTarget);if(_0x25c6e2[_0x15e991(0x9c)]===0x0){const _0x235631=_0x35a233||(_0x40f1b1>0x0?_0x15e991(0xa5)+_0x40f1b1:_0x15e991(0x81)+_0x4a0eba);throw CliErrors[_0x15e991(0x9d)](_0x15e991(0x83)+_0x235631+'.');}const _0x640ecb=_0x544af9[_0x15e991(0xae)](_0x15e991(0xa2));if(_0x640ecb>0x0&&_0x25c6e2[_0x15e991(0x9c)]!==_0x640ecb)throw CliErrors[_0x15e991(0x9d)](_0x15e991(0x88)+_0x25c6e2[_0x15e991(0x9c)]+_0x15e991(0xad)+_0x640ecb+'.');return _0x25c6e2;}function normalizeTarget(_0x17940c){const _0x23bba1=a51_0x2185ea,_0x50b191=_0x17940c['dbtableConfig']??{};return{'id':_0x17940c['id'],'code':_0x17940c[_0x23bba1(0x84)],'name':_0x17940c[_0x23bba1(0xaf)],'description':_0x17940c[_0x23bba1(0xac)],'source':_0x17940c[_0x23bba1(0x97)],'dbId':_0x50b191[_0x23bba1(0xb7)],'dbName':_0x50b191['dbName'],'tableName':_0x50b191[_0x23bba1(0xb2)],'relatedPageCount':Array[_0x23bba1(0x8d)](_0x17940c[_0x23bba1(0xaa)])?_0x17940c[_0x23bba1(0xaa)]['length']:undefined};}
1
+ const a51_0x5dd259=a51_0x5e7b;function a51_0x491f(){const _0x224eea=['1203264pGqtpT','str','num','delete','isArray','length','1043ThtTKl','4592972hlhHWZ','dbName','20191720XxcVTb','validation','POST','1083714ctDQgR','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','17898YpiQyf','\x20dataset(s);\x20','dbid=','dbid','code','relationPages','263950XcVAvI','number','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','tableName','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','high-risk-write','Dataset\x20id','confirm','Deleted\x20','bool','dbId','dataset','map','source','dbtableConfig','\x20failed','No\x20undeleted\x20dataset\x20found\x20for\x20','filter','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','3368828oHpRfX','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','expected-count','appCode','Matched\x20','Would\x20delete\x20','push','description'];a51_0x491f=function(){return _0x224eea;};return a51_0x491f();}(function(_0x5721fb,_0x4ddf2c){const _0x8453a=a51_0x5e7b,_0x3262ba=_0x5721fb();while(!![]){try{const _0x32e524=-parseInt(_0x8453a(0xcd))/0x1+-parseInt(_0x8453a(0xb8))/0x2+parseInt(_0x8453a(0xc1))/0x3+parseInt(_0x8453a(0xc8))/0x4+parseInt(_0x8453a(0xd5))/0x5+parseInt(_0x8453a(0xcf))/0x6*(-parseInt(_0x8453a(0xc7))/0x7)+parseInt(_0x8453a(0xca))/0x8;if(_0x32e524===_0x4ddf2c)break;else _0x3262ba['push'](_0x3262ba['shift']());}catch(_0x2b3fc8){_0x3262ba['push'](_0x3262ba['shift']());}}}(a51_0x491f,0xdf053));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':a51_0x5dd259(0xd6),'description':a51_0x5dd259(0xdb)},DBID_FLAG={'name':a51_0x5dd259(0xd2),'type':a51_0x5dd259(0xd6),'description':a51_0x5dd259(0xba)},CONFIRM_FLAG={'name':a51_0x5dd259(0xdc),'type':'boolean','description':'Required\x20to\x20execute\x20dataset\x20deletion'},EXPECTED_COUNT_FLAG={'name':'expected-count','type':a51_0x5dd259(0xd6),'description':a51_0x5dd259(0xb9)};export const datasetDelete={'service':a51_0x5dd259(0xb0),'command':a51_0x5dd259(0xc4),'description':a51_0x5dd259(0xce),'risk':a51_0x5dd259(0xda),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2f6e64){const _0x4e4c3c=a51_0x5dd259,_0x75a6ce=_0x2f6e64[_0x4e4c3c(0xc3)]('id'),_0x2f80fc=_0x2f6e64['str'](_0x4e4c3c(0xd3)),_0x20992a=_0x2f6e64[_0x4e4c3c(0xc3)](_0x4e4c3c(0xd2)),_0x37a2ba=[_0x75a6ce>0x0,Boolean(_0x2f80fc),_0x20992a>0x0][_0x4e4c3c(0xb6)](Boolean);if(_0x37a2ba['length']===0x0)throw CliErrors[_0x4e4c3c(0xcb)]('One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.');if(_0x37a2ba[_0x4e4c3c(0xc6)]>0x1)throw CliErrors[_0x4e4c3c(0xcb)]('Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.');},async 'dryRun'(_0x2d8fc1){const _0x3f4b51=a51_0x5dd259,_0x3038b4=await resolveTargets(_0x2d8fc1);return{'method':_0x3f4b51(0xcc),'url':'/smartapi/dataset/delete-dataset','body':{'appCode':_0x2d8fc1['appCode'],'count':_0x3038b4[_0x3f4b51(0xc6)],'datasets':_0x3038b4},'description':_0x3f4b51(0xbe)+_0x3038b4[_0x3f4b51(0xc6)]+_0x3f4b51(0xd7)};},async 'execute'(_0x2e92f6){const _0x56fcb7=a51_0x5dd259;if(!_0x2e92f6[_0x56fcb7(0xae)](_0x56fcb7(0xdc)))throw CliErrors[_0x56fcb7(0xcb)](_0x56fcb7(0xb7),_0x56fcb7(0xd9));const _0x53b6a3=await resolveTargets(_0x2e92f6),_0x5fe330=[],_0x4c03b9=[];for(const _0x271281 of _0x53b6a3){try{await deleteDataset(_0x2e92f6[_0x56fcb7(0xbc)],_0x271281['id']),_0x5fe330[_0x56fcb7(0xbf)](_0x271281);}catch(_0x3d94d7){_0x4c03b9['push']({..._0x271281,'error':_0x3d94d7 instanceof Error?_0x3d94d7['message']:String(_0x3d94d7)});}}if(_0x4c03b9[_0x56fcb7(0xc6)]>0x0)return{'ok':![],'data':{'requested':_0x53b6a3[_0x56fcb7(0xc6)],'deletedCount':_0x5fe330[_0x56fcb7(0xc6)],'failedCount':_0x4c03b9[_0x56fcb7(0xc6)],'deleted':_0x5fe330,'failed':_0x4c03b9},'message':'Deleted\x20'+_0x5fe330[_0x56fcb7(0xc6)]+'/'+_0x53b6a3['length']+_0x56fcb7(0xd0)+_0x4c03b9[_0x56fcb7(0xc6)]+_0x56fcb7(0xb4)};return{'ok':!![],'data':{'requested':_0x53b6a3[_0x56fcb7(0xc6)],'deletedCount':_0x5fe330[_0x56fcb7(0xc6)],'deleted':_0x5fe330},'message':_0x56fcb7(0xad)+_0x5fe330['length']+'\x20dataset(s)'};}};async function resolveTargets(_0x312289){const _0x1f55ae=a51_0x5dd259,_0x3d4c5e=_0x312289[_0x1f55ae(0xc3)]('id'),_0xa5634=_0x312289[_0x1f55ae(0xc2)](_0x1f55ae(0xd3)),_0x29d4fc=_0x312289[_0x1f55ae(0xc3)](_0x1f55ae(0xd2));let _0x4ea59c;_0xa5634?(_0x4ea59c=await listDatasets(_0x312289['appCode'],{'code':_0xa5634}),_0x4ea59c=_0x4ea59c['filter'](_0x41b967=>_0x41b967[_0x1f55ae(0xd3)]===_0xa5634)):(_0x4ea59c=await listDatasets(_0x312289[_0x1f55ae(0xbc)]),_0x3d4c5e>0x0&&(_0x4ea59c=_0x4ea59c[_0x1f55ae(0xb6)](_0x15552f=>_0x15552f['id']===_0x3d4c5e)),_0x29d4fc>0x0&&(_0x4ea59c=_0x4ea59c[_0x1f55ae(0xb6)](_0x279289=>_0x279289['dbtableConfig']?.['dbId']===_0x29d4fc)));const _0x54ddad=_0x4ea59c[_0x1f55ae(0xb1)](normalizeTarget);if(_0x54ddad[_0x1f55ae(0xc6)]===0x0){const _0xbdb0f5=_0xa5634||(_0x3d4c5e>0x0?'id='+_0x3d4c5e:_0x1f55ae(0xd1)+_0x29d4fc);throw CliErrors[_0x1f55ae(0xcb)](_0x1f55ae(0xb5)+_0xbdb0f5+'.');}const _0x5a5998=_0x312289[_0x1f55ae(0xc3)](_0x1f55ae(0xbb));if(_0x5a5998>0x0&&_0x54ddad[_0x1f55ae(0xc6)]!==_0x5a5998)throw CliErrors[_0x1f55ae(0xcb)](_0x1f55ae(0xbd)+_0x54ddad['length']+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0x5a5998+'.');return _0x54ddad;}function a51_0x5e7b(_0x4e9789,_0x5514ab){_0x4e9789=_0x4e9789-0xad;const _0x491fc9=a51_0x491f();let _0x5e7b8a=_0x491fc9[_0x4e9789];return _0x5e7b8a;}function normalizeTarget(_0xfb4cd8){const _0x3d8796=a51_0x5dd259,_0x19a6c6=_0xfb4cd8[_0x3d8796(0xb3)]??{};return{'id':_0xfb4cd8['id'],'code':_0xfb4cd8['code'],'name':_0xfb4cd8['name'],'description':_0xfb4cd8[_0x3d8796(0xc0)],'source':_0xfb4cd8[_0x3d8796(0xb2)],'dbId':_0x19a6c6[_0x3d8796(0xaf)],'dbName':_0x19a6c6[_0x3d8796(0xc9)],'tableName':_0x19a6c6[_0x3d8796(0xd8)],'relatedPageCount':Array[_0x3d8796(0xc5)](_0xfb4cd8[_0x3d8796(0xd4)])?_0xfb4cd8[_0x3d8796(0xd4)]['length']:undefined};}