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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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_0xda0aee=a33_0x4bac;function a33_0x4bac(_0x131197,_0x317a49){_0x131197=_0x131197-0xa2;const _0xa82541=a33_0xa825();let _0x4bac45=_0xa82541[_0x131197];return _0x4bac45;}(function(_0x3b8c2e,_0x5c66dd){const _0x5c42a5=a33_0x4bac,_0xc1c85f=_0x3b8c2e();while(!![]){try{const _0x919c7a=-parseInt(_0x5c42a5(0xad))/0x1+-parseInt(_0x5c42a5(0xaf))/0x2+parseInt(_0x5c42a5(0xc1))/0x3+-parseInt(_0x5c42a5(0xb2))/0x4*(parseInt(_0x5c42a5(0xa9))/0x5)+parseInt(_0x5c42a5(0xa6))/0x6*(-parseInt(_0x5c42a5(0xb4))/0x7)+-parseInt(_0x5c42a5(0xb1))/0x8+parseInt(_0x5c42a5(0xb7))/0x9;if(_0x919c7a===_0x5c66dd)break;else _0xc1c85f['push'](_0xc1c85f['shift']());}catch(_0x3244d6){_0xc1c85f['push'](_0xc1c85f['shift']());}}}(a33_0xa825,0xe3690));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';function a33_0xa825(){const _0x71b8e5=['lockFilePath','filePath','All\x20BFF\x20scripts\x20are\x20in\x20sync.','appCode','2484846mkpDOP','functions','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','boolean','\x20added,\x20','30YRFnun','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','apiDir','130ZPawsQ','scriptsRoot','push','alias','726505RYQsFf','remote','997974rfTaYb','hash','13718272lreXzF','234148COqIvs','datasetCode','1778784pGeFdl','status','map','52523892IkBlxv','has','length','\x20modified,\x20','\x20remote-only','lockKey'];a33_0xa825=function(){return _0x71b8e5;};return a33_0xa825();}import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':'bff','command':'status','description':a33_0xda0aee(0xa3),'risk':'read','flags':[{'name':a33_0xda0aee(0xae),'type':a33_0xda0aee(0xa4),'description':a33_0xda0aee(0xa7)}],async 'execute'(_0x45266f){const _0x1e3a65=a33_0xda0aee,_0xb83f5b=loadBffProjectConfig(_0x45266f['appCode']),_0x2e643f=await readBffLockFile(_0xb83f5b[_0x1e3a65(0xbd)]),{appLock:_0x46a0cb}=ensureLockScope(_0x2e643f??createEmptyBffLock(),_0x45266f[_0x1e3a65(0xc0)],_0xb83f5b[_0x1e3a65(0xaa)],_0x1e3a65(0xb5)),_0x2de74f=await scanLocalBffFunctions(_0xb83f5b),_0x1e82bb=[],_0x36be28=[],_0x4b93d0=[];for(const _0x541f8c of _0x2de74f){const _0x3b3934=await computeFileHash(_0x541f8c[_0x1e3a65(0xbe)]),_0x324865=_0x46a0cb[_0x1e3a65(0xa2)][_0x541f8c[_0x1e3a65(0xbc)]];if(!_0x324865)_0x1e82bb['push'](_0x541f8c[_0x1e3a65(0xbc)]);else _0x324865[_0x1e3a65(0xb0)]!==_0x3b3934?_0x36be28[_0x1e3a65(0xab)](_0x541f8c[_0x1e3a65(0xbc)]):_0x4b93d0[_0x1e3a65(0xab)](_0x541f8c[_0x1e3a65(0xbc)]);}const _0x65c3a7=[];if(_0x45266f['bool']('remote')){const _0x533167=loadAliasMap(_0x45266f['apiDir'],undefined,resolveApiFilePath(_0x45266f[_0x1e3a65(0xa8)],_0x45266f['appCode'])),_0x1a16b5=new Map(_0x533167[_0x1e3a65(0xb6)](_0x4e1cd1=>[_0x4e1cd1[_0x1e3a65(0xb3)],_0x4e1cd1[_0x1e3a65(0xac)]])),[_0x3eafb0,_0x5b534f]=await Promise['all']([listBffScripts(_0x45266f[_0x1e3a65(0xc0)]),getBffScriptStatistics(_0x45266f[_0x1e3a65(0xc0)])]),_0x537e01=createHookLocationMap(_0x5b534f),_0x364fcd=new Set(_0x2de74f['map'](_0x520af6=>_0x520af6['lockKey']));for(const _0x5a6358 of _0x3eafb0){const _0x3fa36b=resolveRemoteScriptTarget(_0xb83f5b,_0x5a6358,_0x537e01,_0x46a0cb[_0x1e3a65(0xa2)],_0x1a16b5);_0x3fa36b&&!_0x364fcd[_0x1e3a65(0xb8)](_0x3fa36b[_0x1e3a65(0xbc)])&&_0x65c3a7['push'](_0x3fa36b[_0x1e3a65(0xbc)]);}}const _0x51bd83=_0x1e82bb['length']===0x0&&_0x36be28[_0x1e3a65(0xb9)]===0x0&&_0x65c3a7['length']===0x0;return{'ok':!![],'data':{'added':_0x1e82bb,'modified':_0x36be28,'unchanged':_0x4b93d0,'remoteOnly':_0x65c3a7},'message':_0x51bd83?_0x1e3a65(0xbf):_0x1e82bb[_0x1e3a65(0xb9)]+_0x1e3a65(0xa5)+_0x36be28[_0x1e3a65(0xb9)]+_0x1e3a65(0xba)+_0x4b93d0['length']+'\x20unchanged'+(_0x65c3a7[_0x1e3a65(0xb9)]>0x0?',\x20'+_0x65c3a7[_0x1e3a65(0xb9)]+_0x1e3a65(0xbb):'')};}};
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 +1 @@
1
- const a34_0x3e1fab=a34_0x4631;(function(_0x4a422a,_0x35c68a){const _0x16d9e9=a34_0x4631,_0x56eeff=_0x4a422a();while(!![]){try{const _0x328919=parseInt(_0x16d9e9(0x192))/0x1*(-parseInt(_0x16d9e9(0x191))/0x2)+-parseInt(_0x16d9e9(0x178))/0x3+parseInt(_0x16d9e9(0x184))/0x4+-parseInt(_0x16d9e9(0x188))/0x5*(-parseInt(_0x16d9e9(0x164))/0x6)+-parseInt(_0x16d9e9(0x16f))/0x7*(parseInt(_0x16d9e9(0x15b))/0x8)+parseInt(_0x16d9e9(0x149))/0x9+-parseInt(_0x16d9e9(0x190))/0xa*(parseInt(_0x16d9e9(0x173))/0xb);if(_0x328919===_0x35c68a)break;else _0x56eeff['push'](_0x56eeff['shift']());}catch(_0x108ff4){_0x56eeff['push'](_0x56eeff['shift']());}}}(a34_0x3c07,0xa7034));function a34_0x4631(_0x483416,_0x4de076){_0x483416=_0x483416-0x143;const _0x3c0726=a34_0x3c07();let _0x463124=_0x3c0726[_0x483416];return _0x463124;}import a34_0x1f1064 from'chalk';import a34_0x5532a4 from'ora';import a34_0xb703c4 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 _0x4d1373=a34_0x4631;return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4d1373(0x14c)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x2af527=a34_0x4631,_0x48fa04=process['execPath'][_0x2af527(0x165)]();if(_0x48fa04['includes'](_0x2af527(0x17a)))return'bun';return'npm';}const updateFlags=[{'name':a34_0x3e1fab(0x154),'type':a34_0x3e1fab(0x175),'description':a34_0x3e1fab(0x171),'default':![]},{'name':a34_0x3e1fab(0x14d),'type':a34_0x3e1fab(0x15e),'description':a34_0x3e1fab(0x15a)},{'name':'no-skills','type':a34_0x3e1fab(0x175),'description':a34_0x3e1fab(0x15d),'default':![]},{'name':'skills','type':'boolean','description':a34_0x3e1fab(0x155),'default':!![],'hidden':!![]}];function getRequestedVersion(_0x12ba80){const _0x202bc9=a34_0x3e1fab;return _0x12ba80[_0x202bc9(0x143)](_0x202bc9(0x14d))[_0x202bc9(0x187)]();}function shouldSkipOfficialSkill(_0x1646c1){const _0x5c5725=a34_0x3e1fab;return _0x1646c1[_0x5c5725(0x146)](_0x5c5725(0x18d))||_0x1646c1[_0x5c5725(0x18a)](_0x5c5725(0x17d))===![];}async function validateUpdateFlags(_0x148658){const _0x1e4f1d=a34_0x3e1fab,_0x112652=_0x148658[_0x1e4f1d(0x146)](_0x1e4f1d(0x154)),_0x23a586=getRequestedVersion(_0x148658);if(_0x112652&&_0x23a586)throw CliErrors[_0x1e4f1d(0x167)](_0x1e4f1d(0x16a),'Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.');if(_0x23a586&&!a34_0xb703c4[_0x1e4f1d(0x14f)](_0x23a586))throw CliErrors[_0x1e4f1d(0x167)](_0x1e4f1d(0x158)+_0x23a586,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0x560184=a34_0x3e1fab;try{const _0x17feed=await fetch('https://registry.npmjs.org/-/package/'+encodeURIComponent(NPM_PACKAGE_NAME)+_0x560184(0x147),{'signal':AbortSignal[_0x560184(0x17c)](0x2710)});if(!_0x17feed['ok'])return null;const _0x4dc1d4=await _0x17feed[_0x560184(0x145)]();if(!_0x4dc1d4||typeof _0x4dc1d4!==_0x560184(0x16e))return null;return Object[_0x560184(0x17f)](Object[_0x560184(0x162)](_0x4dc1d4)[_0x560184(0x160)](([,_0x81d297])=>typeof _0x81d297===_0x560184(0x15e)&&_0x81d297[_0x560184(0x187)]()['length']>0x0)[_0x560184(0x186)](([_0x515f88,_0x22d5d7])=>[_0x515f88,String(_0x22d5d7)[_0x560184(0x187)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x57de65){const _0x536b31=await fetchNpmDistTags();return _0x536b31?.[_0x57de65]??null;}function a34_0x3c07(){const _0x7ee4a1=['error','timeout','skills','start','fromEntries','Beta\x20version:\x20','red','npm','Already\x20up\x20to\x20date\x20(v','4797724CSgXgk','\x20\x20Try\x20manually:\x20','map','trim','90535orqfTU','nonInteractive','flag','Checking\x20official\x20skill\x20package...','gray','no-skills','run','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','1598390kJxaQg','779882JyyNnb','1qJDKKN','\x20\x20Run\x20manually:\x20','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','str','Skipping\x20official\x20skill\x20package\x20(--no-skills).','json','bool','/dist-tags','\x20\x20Official\x20skill\x20update\x20failed:\x20','4750218aBChfz','Version\x20comparison\x20failed','warn','slice','version','pipe','valid','Already\x20on\x20requested\x20version\x20(v','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','succeed','log','beta','Refresh\x20official\x20skill\x20package\x20after\x20updating','source','latest','Invalid\x20version:\x20','@latest','Install\x20a\x20specific\x20CLI\x20version','8HjTLpJ','update','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','string','Updated\x20to\x20v','filter','Update\x20available:\x20','entries','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','168HUSplA','toLowerCase','install','validation','yellow','write','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','green','Checking\x20for\x20updates...','message','object','857542GIjAwh','Current\x20version:\x20','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','...','55BZnKrW','fail','boolean','inherit','\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','715509fqDkpy','Updating\x20via\x20','bun'];a34_0x3c07=function(){return _0x7ee4a1;};return a34_0x3c07();}async function fetchLatestVersion(){const _0x3a1e2e=a34_0x3e1fab;return fetchNpmDistTagVersion(_0x3a1e2e(0x157));}async function resolveTargetVersion(_0x171f08){const _0x40c5e1=a34_0x3e1fab,_0x5a72e6=getRequestedVersion(_0x171f08);if(_0x5a72e6)return{'version':_0x5a72e6,'source':_0x40c5e1(0x14d)};if(_0x171f08[_0x40c5e1(0x146)](_0x40c5e1(0x154))){const _0x45c43b=await fetchNpmDistTagVersion(_0x40c5e1(0x154));if(!_0x45c43b)return null;return{'version':_0x45c43b,'source':_0x40c5e1(0x154)};}const _0x504018=await fetchLatestVersion();if(!_0x504018)return null;return{'version':_0x504018,'source':_0x40c5e1(0x157)};}function shouldInstallTarget(_0x1d8311,_0x4aa10c){const _0x14015d=a34_0x3e1fab;if(_0x4aa10c[_0x14015d(0x156)]===_0x14015d(0x14d)||_0x4aa10c['source']===_0x14015d(0x154))return!a34_0xb703c4['eq'](_0x1d8311,_0x4aa10c[_0x14015d(0x14d)]);return a34_0xb703c4['lt'](_0x1d8311,_0x4aa10c[_0x14015d(0x14d)]);}function getInstallPlanLabel(_0x53b01c,_0x513ffc){const _0x3091fb=a34_0x3e1fab;switch(_0x513ffc[_0x3091fb(0x156)]){case _0x3091fb(0x154):return _0x3091fb(0x180)+a34_0x1f1064[_0x3091fb(0x168)](_0x53b01c)+'\x20→\x20'+a34_0x1f1064[_0x3091fb(0x16b)](_0x513ffc[_0x3091fb(0x14d)]);case _0x3091fb(0x14d):return'Requested\x20version:\x20'+a34_0x1f1064[_0x3091fb(0x168)](_0x53b01c)+'\x20→\x20'+a34_0x1f1064['green'](_0x513ffc[_0x3091fb(0x14d)]);case _0x3091fb(0x157):default:return _0x3091fb(0x161)+a34_0x1f1064['yellow'](_0x53b01c)+'\x20→\x20'+a34_0x1f1064[_0x3091fb(0x16b)](_0x513ffc[_0x3091fb(0x14d)]);}}async function installOfficialSkill(_0x23f8f7){const _0x44a03d=a34_0x3e1fab;console[_0x44a03d(0x153)](a34_0x1f1064[_0x44a03d(0x18c)](_0x44a03d(0x18b)));const _0x24e05a=runNpxSkillsAddGlobal(process['cwd'](),RABETBASE_SKILL_SOURCE,{'stdio':_0x23f8f7?_0x44a03d(0x14e):_0x44a03d(0x176)});if(_0x24e05a['skipped']){console[_0x44a03d(0x153)](a34_0x1f1064[_0x44a03d(0x18c)](_0x44a03d(0x177)));return;}if(_0x24e05a['ok']){console[_0x44a03d(0x153)](a34_0x1f1064[_0x44a03d(0x18c)]('\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.'));return;}console[_0x44a03d(0x14b)](a34_0x1f1064[_0x44a03d(0x168)](_0x44a03d(0x148)+(_0x24e05a[_0x44a03d(0x17b)]||'unknown'))),console['log'](a34_0x1f1064['gray'](_0x44a03d(0x193)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x5da16f){const _0x963a82=a34_0x3e1fab;await validateUpdateFlags(_0x5da16f);const _0x229688=getCurrentVersion();console['log'](_0x963a82(0x170)+_0x229688);const _0x8e657e=a34_0x5532a4(_0x963a82(0x16c))[_0x963a82(0x17e)](),_0x120a6a=await resolveTargetVersion(_0x5da16f);if(!_0x120a6a){const _0x58cde0=_0x5da16f['bool']('beta')?_0x963a82(0x194):_0x963a82(0x18f);return _0x8e657e['fail'](_0x58cde0),console['log'](a34_0x1f1064[_0x963a82(0x18c)](_0x963a82(0x163)+NPM_PACKAGE_NAME+_0x963a82(0x159))),{'ok':![],'message':_0x58cde0};}const _0x18ce4e=a34_0xb703c4[_0x963a82(0x14f)](VERSION),_0xa7b23a=a34_0xb703c4[_0x963a82(0x14f)](_0x120a6a[_0x963a82(0x14d)]);if(!_0x18ce4e||!_0xa7b23a)return _0x8e657e[_0x963a82(0x174)](_0x963a82(0x14a)),{'ok':![],'message':_0x963a82(0x14a)};if(!shouldInstallTarget(_0x18ce4e,_0x120a6a)){const _0x4abc32=_0x120a6a[_0x963a82(0x156)]===_0x963a82(0x14d)?_0x963a82(0x150)+_0x120a6a[_0x963a82(0x14d)]+')':_0x963a82(0x183)+_0x120a6a[_0x963a82(0x14d)]+')';return _0x8e657e[_0x963a82(0x152)](_0x4abc32),shouldSkipOfficialSkill(_0x5da16f)?console[_0x963a82(0x153)](a34_0x1f1064[_0x963a82(0x18c)](_0x963a82(0x144))):await installOfficialSkill(_0x5da16f[_0x963a82(0x189)]),{'ok':!![]};}_0x8e657e['info'](getInstallPlanLabel(_0x229688,_0x120a6a));const _0x3ea4c3=detectPackageManager(),_0x3b75a3=_0x3ea4c3===_0x963a82(0x182)?resolveNpmBin('npm'):_0x3ea4c3,_0x58ff67=a34_0x5532a4(_0x963a82(0x179)+_0x3ea4c3+_0x963a82(0x172))[_0x963a82(0x17e)]();try{return await execa(_0x3b75a3,[_0x963a82(0x166),'-g',NPM_PACKAGE_NAME+'@'+_0x120a6a[_0x963a82(0x14d)]],{'stdio':'pipe'}),_0x58ff67[_0x963a82(0x152)](_0x963a82(0x15f)+_0x120a6a[_0x963a82(0x14d)]),console[_0x963a82(0x153)](a34_0x1f1064[_0x963a82(0x18c)](_0x963a82(0x151))),shouldSkipOfficialSkill(_0x5da16f)?console['log'](a34_0x1f1064[_0x963a82(0x18c)](_0x963a82(0x144))):await installOfficialSkill(_0x5da16f['nonInteractive']),{'ok':!![]};}catch(_0x50ba7a){return _0x58ff67['fail']('Update\x20failed'),console[_0x963a82(0x17b)](a34_0x1f1064[_0x963a82(0x181)]('\x20\x20'+_0x50ba7a[_0x963a82(0x16d)])),console['log'](a34_0x1f1064['gray'](_0x963a82(0x185)+_0x3ea4c3+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x120a6a['version'])),{'ok':![],'message':_0x50ba7a[_0x963a82(0x16d)]};}}export const updateDefinition={'service':a34_0x3e1fab(0x15c),'command':a34_0x3e1fab(0x18e),'description':'Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','risk':a34_0x3e1fab(0x169),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
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 +1 @@
1
- function a35_0x1e3f(_0x2ad62c,_0x4bb1d5){_0x2ad62c=_0x2ad62c-0x1c8;const _0x223ba=a35_0x223b();let _0x1e3f50=_0x223ba[_0x2ad62c];return _0x1e3f50;}(function(_0x1709d6,_0xa2ed6b){const _0x423651=a35_0x1e3f,_0x55fb4b=_0x1709d6();while(!![]){try{const _0x1fd99d=-parseInt(_0x423651(0x1cc))/0x1+-parseInt(_0x423651(0x1c9))/0x2+-parseInt(_0x423651(0x1cd))/0x3+parseInt(_0x423651(0x1ca))/0x4*(parseInt(_0x423651(0x1cb))/0x5)+parseInt(_0x423651(0x1c8))/0x6*(-parseInt(_0x423651(0x1d0))/0x7)+-parseInt(_0x423651(0x1ce))/0x8+parseInt(_0x423651(0x1cf))/0x9;if(_0x1fd99d===_0xa2ed6b)break;else _0x55fb4b['push'](_0x55fb4b['shift']());}catch(_0x3d7024){_0x55fb4b['push'](_0x55fb4b['shift']());}}}(a35_0x223b,0xd0c78));import{codegenSdk}from'../../commands/codegen/sdk.js';function a35_0x223b(){const _0x453f82=['8734216Eelkqb','42343623tueNoq','7hRdmDg','8390760kVoptT','350080oLlbTS','4EuOibl','5382595RZgKdQ','1592600jwMHUh','2004987TgPArY'];a35_0x223b=function(){return _0x453f82;};return a35_0x223b();}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
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 +1 @@
1
- const a36_0x2c4e6d=a36_0x3530;function a36_0x3530(_0x11785b,_0xa360c){_0x11785b=_0x11785b-0x140;const _0x5468ad=a36_0x5468();let _0x3530bf=_0x5468ad[_0x11785b];return _0x3530bf;}(function(_0x573577,_0x5c6c85){const _0x2835b3=a36_0x3530,_0x52ba3f=_0x573577();while(!![]){try{const _0x1e749f=parseInt(_0x2835b3(0x156))/0x1*(-parseInt(_0x2835b3(0x14f))/0x2)+parseInt(_0x2835b3(0x150))/0x3+-parseInt(_0x2835b3(0x14a))/0x4+parseInt(_0x2835b3(0x142))/0x5+-parseInt(_0x2835b3(0x14d))/0x6*(parseInt(_0x2835b3(0x14e))/0x7)+-parseInt(_0x2835b3(0x153))/0x8+-parseInt(_0x2835b3(0x146))/0x9*(-parseInt(_0x2835b3(0x154))/0xa);if(_0x1e749f===_0x5c6c85)break;else _0x52ba3f['push'](_0x52ba3f['shift']());}catch(_0x1802d4){_0x52ba3f['push'](_0x52ba3f['shift']());}}}(a36_0x5468,0x69035));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a36_0x5468(){const _0x4de6b3=['operation','read','567340DOaKcu','boolean','code','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','18133794adzbjd','codegen','alias','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','1296432TmqSOG','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','appCode','2838aZEEZh','21uNlqhP','1648730zyowaJ','304452LsrFhK','string','Omit\x20import\x20statements\x20from\x20generated\x20code','5198344ECxanK','10auyLjC','skip-imports','1MATdfT'];a36_0x5468=function(){return _0x4de6b3;};return a36_0x5468();}export const codegenSdk={'service':a36_0x2c4e6d(0x147),'command':'sdk','description':a36_0x2c4e6d(0x149),'risk':a36_0x2c4e6d(0x141),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x2c4e6d(0x148),'type':a36_0x2c4e6d(0x151),'description':a36_0x2c4e6d(0x145)},{'name':a36_0x2c4e6d(0x140),'type':a36_0x2c4e6d(0x151),'required':!![],'description':a36_0x2c4e6d(0x14b)},{'name':a36_0x2c4e6d(0x155),'type':a36_0x2c4e6d(0x143),'description':a36_0x2c4e6d(0x152)}],async 'execute'(_0x53ec5c){const _0x5a1914=a36_0x2c4e6d,{dataset:_0x50b633,operation:_0x50ea2c}=await getOperationDetail(_0x53ec5c[_0x5a1914(0x14c)],_0x53ec5c['str'](_0x5a1914(0x144)),_0x53ec5c['str']('operation')),_0x6d9519=generateSdkCode(_0x50b633,_0x50ea2c,{'includeImports':!_0x53ec5c['bool'](_0x5a1914(0x155))});return{'ok':!![],'data':{'dataset':{'name':_0x50b633['name'],'code':_0x50b633[_0x5a1914(0x144)],'tableName':_0x50b633['tableName']},'operation':_0x53ec5c['str'](_0x5a1914(0x140)),'code':_0x6d9519}};}};
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 +1 @@
1
- const a37_0x4ab4dd=a37_0x213c;function a37_0x213c(_0x160ac5,_0x247f94){_0x160ac5=_0x160ac5-0x186;const _0x19d7ea=a37_0x19d7();let _0x213c72=_0x19d7ea[_0x160ac5];return _0x213c72;}function a37_0x19d7(){const _0x993ee0=['no-imports','sqlcode','2Bmmhbn','str','sdk','24knvifW','1663194AloLJD','430664dNdiWC','codegen','5007815xayMau','target','bff','string','5469804sdoUFt','sqlCode','appCode','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','read','119PWALJp','10kVsuyB','4NkOPhm','7376501tWXSBM','431306FKYAXJ','boolean','7646283OgYHvi','Omit\x20import\x20statements\x20from\x20generated\x20code'];a37_0x19d7=function(){return _0x993ee0;};return a37_0x19d7();}(function(_0x3c0aab,_0x33d0a6){const _0x417fd4=a37_0x213c,_0xa7f947=_0x3c0aab();while(!![]){try{const _0x8516f5=parseInt(_0x417fd4(0x193))/0x1*(-parseInt(_0x417fd4(0x199))/0x2)+-parseInt(_0x417fd4(0x19d))/0x3+parseInt(_0x417fd4(0x191))/0x4*(parseInt(_0x417fd4(0x186))/0x5)+-parseInt(_0x417fd4(0x18a))/0x6+-parseInt(_0x417fd4(0x18f))/0x7*(-parseInt(_0x417fd4(0x19e))/0x8)+parseInt(_0x417fd4(0x195))/0x9*(-parseInt(_0x417fd4(0x190))/0xa)+parseInt(_0x417fd4(0x192))/0xb*(parseInt(_0x417fd4(0x19c))/0xc);if(_0x8516f5===_0x33d0a6)break;else _0xa7f947['push'](_0xa7f947['shift']());}catch(_0xac187c){_0xa7f947['push'](_0xa7f947['shift']());}}}(a37_0x19d7,0x7cc05));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x4ab4dd(0x19f),'command':'sql','description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':a37_0x4ab4dd(0x18e),'flags':[SQLCODE_FLAG,{'name':a37_0x4ab4dd(0x187),'type':a37_0x4ab4dd(0x189),'description':a37_0x4ab4dd(0x18d),'default':a37_0x4ab4dd(0x19b),'enum':[a37_0x4ab4dd(0x19b),a37_0x4ab4dd(0x188)]},{'name':a37_0x4ab4dd(0x197),'type':a37_0x4ab4dd(0x194),'description':a37_0x4ab4dd(0x196)}],async 'execute'(_0x158217){const _0x34b1c6=a37_0x4ab4dd,_0x4d2c22=await getSqlQueryInfo(_0x158217[_0x34b1c6(0x18c)],_0x158217['str'](_0x34b1c6(0x198))),_0x25583d=_0x158217[_0x34b1c6(0x19a)](_0x34b1c6(0x187))||_0x34b1c6(0x19b),_0x1c1317=generateSqlCodeTemplate(_0x4d2c22,{'target':_0x25583d,'includeImports':!_0x158217['bool'](_0x34b1c6(0x197))});return{'ok':!![],'data':{'sqlCode':_0x4d2c22[_0x34b1c6(0x18b)],'sqlName':_0x4d2c22['sqlName'],'target':_0x25583d,'code':_0x1c1317}};}};
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 +1 @@
1
- (function(_0x456503,_0x5cd8bf){const _0x46f4bb=a38_0x4d70,_0x49387e=_0x456503();while(!![]){try{const _0x104c43=-parseInt(_0x46f4bb(0x1e7))/0x1*(-parseInt(_0x46f4bb(0x208))/0x2)+parseInt(_0x46f4bb(0x1f8))/0x3+-parseInt(_0x46f4bb(0x201))/0x4+parseInt(_0x46f4bb(0x1f9))/0x5*(-parseInt(_0x46f4bb(0x1e3))/0x6)+-parseInt(_0x46f4bb(0x206))/0x7*(-parseInt(_0x46f4bb(0x1e9))/0x8)+-parseInt(_0x46f4bb(0x1ec))/0x9*(parseInt(_0x46f4bb(0x1fb))/0xa)+parseInt(_0x46f4bb(0x1e2))/0xb*(parseInt(_0x46f4bb(0x1e5))/0xc);if(_0x104c43===_0x5cd8bf)break;else _0x49387e['push'](_0x49387e['shift']());}catch(_0x1ad1c9){_0x49387e['push'](_0x49387e['shift']());}}}(a38_0xf36d,0xab002));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x1469e3 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a38_0xf36d(){const _0x3d4488=['cyan','yellow','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','gray','appCode','2227716QlIxQV','1595845DxiTzS','获取到\x20','10GHbxBr','✎\x20手动输入','find','includes','App\x20Code:','trim','3234160wflSAR','custom','valid','(跳过,稍后配置)','message','9121qrYody','length','39590eKuOvu','\x0a无法获取远程应用列表,请手动输入。','未找到可用应用。','请选择要绑定的应用:','✎\x20自定义输入\x20appcode','55KLXDQe','24IcNpoM','map','1744620fcWOcs','请输入\x20App\x20Code:','5BJsHmC','skip','7496CwVOLw','正在获取可用应用列表...','无法获取远程应用列表,请手动输入。','33741hMreZF','\x20\x20(','Invalid\x20App\x20Code','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','\x0a未找到可用应用。','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','appName'];a38_0xf36d=function(){return _0x3d4488;};return a38_0xf36d();}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 _0x5e0344=a38_0x4d70,_0x2f2fc0=await input({'message':_0x5e0344(0x1e6),'validate':_0x300f63=>{const _0x17b521=_0x5e0344,_0xbf24ba=validateAppcode(_0x300f63[_0x17b521(0x200)]());return _0xbf24ba[_0x17b521(0x203)]||_0xbf24ba[_0x17b521(0x205)]||_0x17b521(0x1ee);}});return _0x2f2fc0['trim']();}export async function promptAppSelection(_0x5923f0){const _0x174fd6=a38_0x4d70,_0x5d214c=[{'name':a38_0x1469e3[_0x174fd6(0x1f4)]('✎\x20自定义输入\x20appcode'),'value':-0x1},..._0x5923f0[_0x174fd6(0x1e4)]((_0x3a0635,_0x407b9f)=>({'name':_0x3a0635[_0x174fd6(0x1f2)]+'\x20\x20'+a38_0x1469e3[_0x174fd6(0x1f6)]('('+_0x3a0635[_0x174fd6(0x1f7)]+')'),'value':_0x407b9f}))],_0x58193a=await checkbox({'message':_0x174fd6(0x1fa)+a38_0x1469e3[_0x174fd6(0x1f3)](_0x5923f0[_0x174fd6(0x207)])+_0x174fd6(0x1f1),'choices':_0x5d214c,'loop':![]});if(_0x58193a[_0x174fd6(0x1fe)](-0x1))return _0x174fd6(0x202);if(_0x58193a[_0x174fd6(0x207)]===0x0)return _0x174fd6(0x202);return _0x58193a[_0x174fd6(0x1e4)](_0x432243=>_0x5923f0[_0x432243]);}function a38_0x4d70(_0x186889,_0x1c263c){_0x186889=_0x186889-0x1de;const _0xf36d85=a38_0xf36d();let _0x4d7088=_0xf36d85[_0x186889];return _0x4d7088;}export async function promptSingleAppSelection(_0x424be5){const _0x39352f=a38_0x4d70,_0x3ea291=[{'name':a38_0x1469e3[_0x39352f(0x1f6)](_0x39352f(0x1ef)),'value':_0x39352f(0x1e8)},{'name':a38_0x1469e3[_0x39352f(0x1f4)](_0x39352f(0x1e1)),'value':_0x39352f(0x202)},..._0x424be5['map'](_0x4169a3=>({'name':_0x4169a3[_0x39352f(0x1f2)]+'\x20\x20'+a38_0x1469e3[_0x39352f(0x1f6)]('('+_0x4169a3[_0x39352f(0x1f7)]+')'),'value':_0x4169a3[_0x39352f(0x1f7)]}))],_0x52c2a8=await select({'message':_0x39352f(0x1e0),'choices':_0x3ea291});if(_0x52c2a8==='skip')return'skip';if(_0x52c2a8===_0x39352f(0x202))return _0x39352f(0x202);return _0x424be5[_0x39352f(0x1fd)](_0xe298c=>_0xe298c[_0x39352f(0x1f7)]===_0x52c2a8);}export async function selectSingleAppcode(_0xe89ef2){const _0x491026=a38_0x4d70;if(!_0xe89ef2)return writeCliSideChannelLine(a38_0x1469e3[_0x491026(0x1f6)](_0x491026(0x1f5))),_fallbackOrSkip();writeCliSideChannelLine(_0x491026(0x1ea));let _0x591439;try{_0x591439=await withActiveCookie(_0xe89ef2,()=>listRemoteApps());}catch(_0x57f8b7){writeCliSideChannelLine(a38_0x1469e3[_0x491026(0x1f4)](_0x491026(0x1eb)));if(_0x57f8b7 instanceof Error)writeCliSideChannelLine(a38_0x1469e3[_0x491026(0x1f6)](_0x491026(0x1ed)+_0x57f8b7[_0x491026(0x205)]+')'));return _fallbackOrSkip();}if(_0x591439[_0x491026(0x207)]===0x0)return writeCliSideChannelLine(a38_0x1469e3[_0x491026(0x1f4)](_0x491026(0x1df))),_fallbackOrSkip();const _0x1f7fce=await promptSingleAppSelection(_0x591439);if(_0x1f7fce===_0x491026(0x1e8))return'';if(_0x1f7fce===_0x491026(0x202))return promptCustomAppcode();return _0x1f7fce['appCode'];}export async function selectMultipleApps(_0x192ba8){const _0x299d35=a38_0x4d70;writeCliSideChannelLine(_0x299d35(0x1ea));let _0x33b971;try{_0x33b971=await withActiveCookie(_0x192ba8,()=>listRemoteApps());}catch(_0x508f96){writeCliSideChannelLine(_0x299d35(0x1de));if(_0x508f96 instanceof Error)writeCliSideChannelLine(_0x299d35(0x1ed)+_0x508f96[_0x299d35(0x205)]+')');return'custom';}if(_0x33b971[_0x299d35(0x207)]===0x0)return writeCliSideChannelLine(_0x299d35(0x1f0)),_0x299d35(0x202);return promptAppSelection(_0x33b971);}async function _fallbackOrSkip(){const _0x12fc53=a38_0x4d70,_0x5b4f0b=await select({'message':_0x12fc53(0x1ff),'choices':[{'name':a38_0x1469e3[_0x12fc53(0x1f6)](_0x12fc53(0x204)),'value':_0x12fc53(0x1e8)},{'name':a38_0x1469e3[_0x12fc53(0x1f4)](_0x12fc53(0x1fc)),'value':'manual'}]});if(_0x5b4f0b===_0x12fc53(0x1e8))return'';return promptCustomAppcode();}
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 +1 @@
1
- const a39_0x4f9a44=a39_0x4350;(function(_0x191310,_0xf7c2cc){const _0x2f38da=a39_0x4350,_0x346fa9=_0x191310();while(!![]){try{const _0x4c30ad=-parseInt(_0x2f38da(0x10f))/0x1*(parseInt(_0x2f38da(0x106))/0x2)+-parseInt(_0x2f38da(0x107))/0x3*(parseInt(_0x2f38da(0x100))/0x4)+parseInt(_0x2f38da(0xfe))/0x5+parseInt(_0x2f38da(0x10e))/0x6+parseInt(_0x2f38da(0x101))/0x7+-parseInt(_0x2f38da(0x10b))/0x8+-parseInt(_0x2f38da(0x102))/0x9*(parseInt(_0x2f38da(0x109))/0xa);if(_0x4c30ad===_0xf7c2cc)break;else _0x346fa9['push'](_0x346fa9['shift']());}catch(_0x4bef73){_0x346fa9['push'](_0x346fa9['shift']());}}}(a39_0x5085,0x37f8f));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':'code','type':a39_0x4f9a44(0xfc),'required':!![],'description':a39_0x4f9a44(0xfd),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':'datasetcode','description':a39_0x4f9a44(0xfd)};function a39_0x4350(_0x54e074,_0x168e1c){_0x54e074=_0x54e074-0xfb;const _0x508524=a39_0x5085();let _0x435097=_0x508524[_0x54e074];return _0x435097;}function a39_0x5085(){const _0x168df1=['Dataset\x20code\x20(32-char\x20hex\x20UUID)','1408570kfxsQc','sqlcode','212uVbrWu','2456398WaibVE','9soYeXj','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','6632VUTpJD','8871VCZeqH','dbtype','3597770wvopNr','number','228600nAQzAi','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','appcode','1904736DHqbGI','53dfGfEa','POSTGRESQL','Database\x20product\x20type','string'];a39_0x5085=function(){return _0x168df1;};return a39_0x5085();}export const SQLCODE_FLAG={'name':a39_0x4f9a44(0xff),'type':a39_0x4f9a44(0xfc),'required':!![],'description':a39_0x4f9a44(0x10c),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x4f9a44(0x104)}};export const APPCODE_FLAG_OPTIONAL={'name':a39_0x4f9a44(0x10d),'type':a39_0x4f9a44(0xfc),'required':![],'description':a39_0x4f9a44(0x105)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a39_0x4f9a44(0x10a),'required':!![],'description':a39_0x4f9a44(0x103)};export const DB_TYPE_FLAG={'name':a39_0x4f9a44(0x108),'type':a39_0x4f9a44(0xfc),'required':!![],'description':a39_0x4f9a44(0xfb),'enum':['MYSQL',a39_0x4f9a44(0x110)]};
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 +1 @@
1
- (function(_0x195da2,_0x47a076){const _0x50802c=a40_0x42ce,_0x2d51dc=_0x195da2();while(!![]){try{const _0x358093=-parseInt(_0x50802c(0x1a4))/0x1*(parseInt(_0x50802c(0x19c))/0x2)+-parseInt(_0x50802c(0x1a2))/0x3+parseInt(_0x50802c(0x1a6))/0x4+-parseInt(_0x50802c(0x1a3))/0x5*(parseInt(_0x50802c(0x1a0))/0x6)+parseInt(_0x50802c(0x19b))/0x7*(parseInt(_0x50802c(0x198))/0x8)+parseInt(_0x50802c(0x1a5))/0x9*(parseInt(_0x50802c(0x199))/0xa)+-parseInt(_0x50802c(0x19a))/0xb;if(_0x358093===_0x47a076)break;else _0x2d51dc['push'](_0x2d51dc['shift']());}catch(_0x29493e){_0x2d51dc['push'](_0x2d51dc['shift']());}}}(a40_0x1799,0x41577));function a40_0x42ce(_0x25ffeb,_0x4f1fdc){_0x25ffeb=_0x25ffeb-0x198;const _0x1799bd=a40_0x1799();let _0x42ceae=_0x1799bd[_0x25ffeb];return _0x42ceae;}function a40_0x1799(){const _0x51e9d8=['10jLhNbC','495110nFmwWh','3101AQEVeM','2sGtjnw','App\x20Code\x20cannot\x20be\x20empty','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','App\x20Code\x20cannot\x20exceed\x20100\x20characters','54ngMNQv','length','163377ScbwBC','36085LulrVw','325506iglSkK','245907NDGrlD','2065100EgDqae','3864VslNpX'];a40_0x1799=function(){return _0x51e9d8;};return a40_0x1799();}export function validateAppcode(_0x32aac7){const _0x399c69=a40_0x42ce,_0x21ff59=_0x32aac7['trim']();if(!_0x21ff59)return{'valid':![],'message':_0x399c69(0x19d)};if(_0x21ff59[_0x399c69(0x1a1)]>0x64)return{'valid':![],'message':_0x399c69(0x19f)};if(!/^[A-Za-z0-9_-]+$/['test'](_0x21ff59))return{'valid':![],'message':_0x399c69(0x19e)};return{'valid':!![]};}
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 +1 @@
1
- const a41_0x29592e=a41_0x4238;(function(_0x1d06e1,_0x53c377){const _0x3e13b4=a41_0x4238,_0x219f6f=_0x1d06e1();while(!![]){try{const _0xe62ba3=parseInt(_0x3e13b4(0x7d))/0x1+parseInt(_0x3e13b4(0x7f))/0x2+-parseInt(_0x3e13b4(0x73))/0x3+-parseInt(_0x3e13b4(0x79))/0x4+parseInt(_0x3e13b4(0x82))/0x5+parseInt(_0x3e13b4(0x81))/0x6+parseInt(_0x3e13b4(0x7a))/0x7*(-parseInt(_0x3e13b4(0x80))/0x8);if(_0xe62ba3===_0x53c377)break;else _0x219f6f['push'](_0x219f6f['shift']());}catch(_0x9ae557){_0x219f6f['push'](_0x219f6f['shift']());}}}(a41_0x3a2c,0x6fa44));function a41_0x3a2c(){const _0x5204a5=['1409763QvgewH','appcode','config','Missing\x20key.','key','str','792832PKicCO','8484ZweXHG','\x20config\x20get\x20--key\x20<key>','read','313247oTjrXB','validation','167714aUfOPk','224dsfIUY','3823578oPYMtv','624910uyhxLC','get','app','Usage:\x20','object','Key\x20not\x20found:\x20'];a41_0x3a2c=function(){return _0x5204a5;};return a41_0x3a2c();}import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';function a41_0x4238(_0x32c1dd,_0x550227){_0x32c1dd=_0x32c1dd-0x71;const _0x3a2cc9=a41_0x3a2c();let _0x423860=_0x3a2cc9[_0x32c1dd];return _0x423860;}async function execute(_0x24f6e5){const _0x5422ae=a41_0x4238,_0x3b2b76=_0x24f6e5[_0x5422ae(0x78)](_0x5422ae(0x77));if(!_0x3b2b76)throw CliErrors['validation'](_0x5422ae(0x76),_0x5422ae(0x85)+CLI_BIN_NAME+_0x5422ae(0x7b));const _0x456846=readConfig(),_0x23825d=_0x3b2b76===_0x5422ae(0x84)?_0x5422ae(0x74):_0x3b2b76,_0x46ea4f=_0x456846[_0x23825d];if(_0x46ea4f===undefined)throw CliErrors[_0x5422ae(0x7e)](_0x5422ae(0x72)+_0x3b2b76);return{'ok':!![],'data':typeof _0x46ea4f===_0x5422ae(0x71)?_0x46ea4f:{[_0x23825d]:_0x46ea4f},'message':typeof _0x46ea4f==='object'?undefined:String(_0x46ea4f)};}export const configGetDefinition={'service':a41_0x29592e(0x75),'command':a41_0x29592e(0x83),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':a41_0x29592e(0x7c),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x29592e(0x77),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
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 +1 @@
1
- (function(_0x498404,_0x426d12){const _0x1791ec=a42_0x2bee,_0x7da3b2=_0x498404();while(!![]){try{const _0x44efc6=-parseInt(_0x1791ec(0x12d))/0x1*(-parseInt(_0x1791ec(0x130))/0x2)+parseInt(_0x1791ec(0x136))/0x3+parseInt(_0x1791ec(0x133))/0x4*(-parseInt(_0x1791ec(0x131))/0x5)+parseInt(_0x1791ec(0x12f))/0x6+-parseInt(_0x1791ec(0x132))/0x7*(parseInt(_0x1791ec(0x135))/0x8)+-parseInt(_0x1791ec(0x12e))/0x9+parseInt(_0x1791ec(0x134))/0xa;if(_0x44efc6===_0x426d12)break;else _0x7da3b2['push'](_0x7da3b2['shift']());}catch(_0x3f554f){_0x7da3b2['push'](_0x7da3b2['shift']());}}}(a42_0x1d2a,0x96cca));import{configListDefinition}from'../../commands/config/list.js';function a42_0x1d2a(){const _0x5c10cd=['8LdflRX','2770410FtdmwX','1eaBnlo','158175aLIKpg','3729780FQrIdA','187324zxRGIL','1170JMdPUp','1820343tzVJAA','19128phUIfJ','3755240TMiglT'];a42_0x1d2a=function(){return _0x5c10cd;};return a42_0x1d2a();}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a42_0x2bee(_0x43cc26,_0x3381c8){_0x43cc26=_0x43cc26-0x12d;const _0x1d2abd=a42_0x1d2a();let _0x2beef3=_0x1d2abd[_0x43cc26];return _0x2beef3;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
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 +1 @@
1
- const a43_0x5ca61e=a43_0x167e;function a43_0x167e(_0xe2a51e,_0x24b551){_0xe2a51e=_0xe2a51e-0x1e0;const _0x569a27=a43_0x569a();let _0x167e1d=_0x569a27[_0xe2a51e];return _0x167e1d;}(function(_0x3e1e84,_0x481642){const _0x1882e6=a43_0x167e,_0x4aa04f=_0x3e1e84();while(!![]){try{const _0x5c9d0c=-parseInt(_0x1882e6(0x1e1))/0x1*(-parseInt(_0x1882e6(0x1e6))/0x2)+-parseInt(_0x1882e6(0x1ec))/0x3*(parseInt(_0x1882e6(0x1e3))/0x4)+-parseInt(_0x1882e6(0x1ed))/0x5*(-parseInt(_0x1882e6(0x1e4))/0x6)+-parseInt(_0x1882e6(0x1eb))/0x7+-parseInt(_0x1882e6(0x1e5))/0x8+-parseInt(_0x1882e6(0x1ee))/0x9+parseInt(_0x1882e6(0x1e9))/0xa;if(_0x5c9d0c===_0x481642)break;else _0x4aa04f['push'](_0x4aa04f['shift']());}catch(_0x4f7afb){_0x4aa04f['push'](_0x4aa04f['shift']());}}}(a43_0x569a,0xe766b));import{readScopedConfig}from'../../commands/config/shared.js';function a43_0x569a(){const _0x3bd64d=['36438cOowaX','409360PkoHtz','2JpRvJz','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','list','22535160GmahER','List\x20all\x20config\x20values','8152158ZwIMDr','3GlXKIS','825EJqYxw','11927313lqLvip','global','1140877bjGwKu','config','3630392RfnxLd'];a43_0x569a=function(){return _0x3bd64d;};return a43_0x569a();}import{readConfig}from'../../utils/config.js';async function execute(_0x418558){const _0x4ad1e2=a43_0x167e,_0x2961a5=_0x418558['bool'](_0x4ad1e2(0x1e0))?readScopedConfig(_0x4ad1e2(0x1e0)):readConfig();return{'ok':!![],'data':_0x2961a5};}export const configListDefinition={'service':a43_0x5ca61e(0x1e2),'command':a43_0x5ca61e(0x1e8),'description':a43_0x5ca61e(0x1ea),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x5ca61e(0x1e0),'type':'boolean','description':a43_0x5ca61e(0x1e7),'default':![]}],'execute':execute};
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 +1 @@
1
- const a44_0x2bca37=a44_0x28b2;(function(_0x4faf4a,_0xde0073){const _0x351477=a44_0x28b2,_0x71eac9=_0x4faf4a();while(!![]){try{const _0x43b240=-parseInt(_0x351477(0x14c))/0x1+-parseInt(_0x351477(0x132))/0x2*(parseInt(_0x351477(0x13c))/0x3)+-parseInt(_0x351477(0x134))/0x4+-parseInt(_0x351477(0x12a))/0x5+-parseInt(_0x351477(0x139))/0x6*(-parseInt(_0x351477(0x153))/0x7)+-parseInt(_0x351477(0x12b))/0x8*(parseInt(_0x351477(0x125))/0x9)+parseInt(_0x351477(0x14e))/0xa;if(_0x43b240===_0xde0073)break;else _0x71eac9['push'](_0x71eac9['shift']());}catch(_0x4ba8f7){_0x71eac9['push'](_0x71eac9['shift']());}}}(a44_0x5b66,0xd7bd6));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a44_0x5b66(){const _0x212a93=['\x20set\x20to:\x20','2913744tboKwd','Settable\x20top-level\x20keys:\x20','key','\x20appcode\x20set\x20to:\x20','\x20app\x20add\x20<name>\x20--appcode\x20','18GEsExG','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Missing\x20value.','168LNsUjE','Top-level\x20key\x20\x22','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','app','str','length','env','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','value','locale','Set\x20a\x20config\x20value','Global','boolean','bool','object','Use\x20`','323305NsQKer','set','35943710ijDdib','\x22\x20is\x20not\x20settable.','Invalid\x20locale\x20value.','appcode','keys','3003602zuIRHM','apps','write','join','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','`,\x20`','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','54qQCfGp','validation','Project','Invalid\x20value\x20for\x20\x22','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','2197210EEMUyM','1377440fcrvFH','global','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','string','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','\x22.\x20Allowed:\x20','Usage:\x20','52632VmOmxi'];a44_0x5b66=function(){return _0x212a93;};return a44_0x5b66();}function a44_0x28b2(_0x4693a1,_0x173cdf){_0x4693a1=_0x4693a1-0x121;const _0x5b669c=a44_0x5b66();let _0x28b278=_0x5b669c[_0x4693a1];return _0x28b278;}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(_0x23485e){const _0x2aba9d=a44_0x28b2,_0x155b22=_0x23485e['str']('key'),_0x7a5eb9=_0x23485e[_0x2aba9d(0x140)](_0x2aba9d(0x144));if(!_0x155b22)throw CliErrors[_0x2aba9d(0x126)]('Missing\x20key.',_0x2aba9d(0x131)+CLI_BIN_NAME+_0x2aba9d(0x12f));if(_0x7a5eb9===undefined||_0x7a5eb9==='')throw CliErrors[_0x2aba9d(0x126)](_0x2aba9d(0x13b),_0x2aba9d(0x131)+CLI_BIN_NAME+_0x2aba9d(0x12f));if(_0x7a5eb9[_0x2aba9d(0x141)]>0x1f4)throw CliErrors[_0x2aba9d(0x126)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(!isTopLevelConfigKey(_0x155b22))throw CliErrors['validation'](_0x2aba9d(0x13d)+_0x155b22+_0x2aba9d(0x14f),_0x2aba9d(0x135)+getTopLevelConfigKeySummary());if(_0x155b22==='riskLevel')throw CliErrors['validation'](_0x2aba9d(0x12d));if(CONFIG_ENUM_VALUES[_0x155b22]&&!CONFIG_ENUM_VALUES[_0x155b22]['includes'](_0x7a5eb9))throw CliErrors['validation'](_0x2aba9d(0x128)+_0x155b22+_0x2aba9d(0x130)+CONFIG_ENUM_VALUES[_0x155b22][_0x2aba9d(0x121)](',\x20'));if(_0x155b22===_0x2aba9d(0x145)&&!normalizeLocale(_0x7a5eb9))throw CliErrors[_0x2aba9d(0x126)](_0x2aba9d(0x150),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x433724={'global':_0x23485e[_0x2aba9d(0x149)](_0x2aba9d(0x12c))},_0x30d626=resolveWriteScope(_0x433724),_0x3b43fa=readScopedConfig(_0x30d626);let _0x20727a=_0x155b22,_0x318664=_0x7a5eb9;_0x155b22===_0x2aba9d(0x13f)&&(_0x20727a=_0x2aba9d(0x151),delete _0x3b43fa[_0x2aba9d(0x13f)]);_0x155b22===_0x2aba9d(0x145)&&(_0x318664=normalizeLocale(_0x7a5eb9));if(_0x155b22===_0x2aba9d(0x142)){_0x318664=normalizeEnv(_0x7a5eb9);if(!isProduction(_0x318664)&&!isDaily(_0x318664))throw CliErrors[_0x2aba9d(0x126)](_0x2aba9d(0x13e),_0x2aba9d(0x122));}if(_0x155b22==='appcode'){const _0x246b20=_0x3b43fa[_0x2aba9d(0x154)]&&typeof _0x3b43fa[_0x2aba9d(0x154)]===_0x2aba9d(0x14a)?Object[_0x2aba9d(0x152)](_0x3b43fa[_0x2aba9d(0x154)]):[];if(_0x246b20[_0x2aba9d(0x141)]>0x0)throw CliErrors[_0x2aba9d(0x126)](_0x2aba9d(0x143),_0x2aba9d(0x14b)+CLI_BIN_NAME+_0x2aba9d(0x138)+_0x318664+_0x2aba9d(0x123)+CLI_BIN_NAME+_0x2aba9d(0x129));const _0x2ad8f6=buildCanonicalProjectConfig({..._0x3b43fa},{'appCodes':[_0x318664],'env':typeof _0x3b43fa[_0x2aba9d(0x142)]==='string'?_0x3b43fa[_0x2aba9d(0x142)]:undefined});writeScopedConfig(_0x2ad8f6,_0x30d626);const _0x457e9f=_0x30d626===_0x2aba9d(0x12c)?'Global':'Project';return{'ok':!![],'message':'✓\x20'+_0x457e9f+_0x2aba9d(0x137)+_0x318664+_0x2aba9d(0x124)};}_0x3b43fa[_0x20727a]=_0x318664,writeScopedConfig(_0x3b43fa,_0x30d626);const _0x5672f8=_0x30d626===_0x2aba9d(0x12c)?_0x2aba9d(0x147):_0x2aba9d(0x127);return{'ok':!![],'message':'✓\x20'+_0x5672f8+'\x20'+_0x20727a+_0x2aba9d(0x133)+_0x318664};}export const configSetDefinition={'service':'config','command':a44_0x2bca37(0x14d),'description':a44_0x2bca37(0x146),'risk':a44_0x2bca37(0x155),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a44_0x2bca37(0x136),'type':a44_0x2bca37(0x12e),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x2bca37(0x144),'type':a44_0x2bca37(0x12e),'description':'Config\x20value','required':!![]},{'name':'global','type':a44_0x2bca37(0x148),'description':a44_0x2bca37(0x13a),'default':![]}],'execute':execute};
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 +1 @@
1
- (function(_0xbb1248,_0x5e5564){var _0x3a255e=a45_0x2bb8,_0x4b61aa=_0xbb1248();while(!![]){try{var _0x404bc8=-parseInt(_0x3a255e(0x192))/0x1*(-parseInt(_0x3a255e(0x190))/0x2)+parseInt(_0x3a255e(0x197))/0x3*(parseInt(_0x3a255e(0x198))/0x4)+-parseInt(_0x3a255e(0x195))/0x5+parseInt(_0x3a255e(0x18c))/0x6+-parseInt(_0x3a255e(0x194))/0x7+-parseInt(_0x3a255e(0x196))/0x8+-parseInt(_0x3a255e(0x18f))/0x9;if(_0x404bc8===_0x5e5564)break;else _0x4b61aa['push'](_0x4b61aa['shift']());}catch(_0x47f289){_0x4b61aa['push'](_0x4b61aa['shift']());}}}(a45_0xcadf,0xc7787));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};function a45_0x2bb8(_0x23e626,_0x49d296){_0x23e626=_0x23e626-0x18c;var _0xcadfe3=a45_0xcadf();var _0x2bb8a5=_0xcadfe3[_0x23e626];return _0x2bb8a5;}export function resolveWriteScope(_0x1975c6){var _0x2aeeb9=a45_0x2bb8;if(_0x1975c6[_0x2aeeb9(0x18d)])return _0x2aeeb9(0x18d);if(!isInProject())throw CliErrors[_0x2aeeb9(0x191)]('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).',_0x2aeeb9(0x18e)+CLI_BIN_NAME+_0x2aeeb9(0x199));return _0x2aeeb9(0x193);}function a45_0xcadf(){var _0x195e12=['validation','1TRuPQS','project','5557776WNPflC','850135NInJjz','12824904Bccpnd','35157ekrnLI','132wzaxuS','\x20init`\x20first.','9410124enoXSG','global','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','1488105aTrUUa','3188806jvnGoR'];a45_0xcadf=function(){return _0x195e12;};return a45_0xcadf();}export function readScopedConfig(_0x9b9303){return readConfigFile(resolveWriteConfigPath(_0x9b9303));}export function writeScopedConfig(_0x393cdd,_0x5e29e8){writeConfigFile(resolveWriteConfigPath(_0x5e29e8),_0x393cdd);}
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 +1 @@
1
- function a46_0x4473(_0x1f0c0a,_0x2b1ac6){_0x1f0c0a=_0x1f0c0a-0x15a;const _0xe6ae78=a46_0xe6ae();let _0x447385=_0xe6ae78[_0x1f0c0a];return _0x447385;}const a46_0x413150=a46_0x4473;(function(_0x55d848,_0x17e633){const _0x2d19d6=a46_0x4473,_0x3b045a=_0x55d848();while(!![]){try{const _0x4e4270=-parseInt(_0x2d19d6(0x16a))/0x1*(-parseInt(_0x2d19d6(0x15e))/0x2)+-parseInt(_0x2d19d6(0x15b))/0x3*(-parseInt(_0x2d19d6(0x166))/0x4)+parseInt(_0x2d19d6(0x16f))/0x5+-parseInt(_0x2d19d6(0x16e))/0x6*(parseInt(_0x2d19d6(0x16b))/0x7)+parseInt(_0x2d19d6(0x15f))/0x8+-parseInt(_0x2d19d6(0x15d))/0x9*(parseInt(_0x2d19d6(0x165))/0xa)+-parseInt(_0x2d19d6(0x162))/0xb*(-parseInt(_0x2d19d6(0x16c))/0xc);if(_0x4e4270===_0x17e633)break;else _0x3b045a['push'](_0x3b045a['shift']());}catch(_0x30708f){_0x3b045a['push'](_0x3b045a['shift']());}}}(a46_0xe6ae,0x6b335));function a46_0xe6ae(){const _0x3ffd7c=['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','Filter\x20dataset\x20records\x20with\x20query\x20conditions','100741vnRraa','32459VawWRj','5892NOUblp','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','774owqgxw','2022405XexBiE','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','67893agPcbd','filter','10143ZSwimn','4oEvYTJ','5090304RRNHwF','\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\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','5731xiUOOU','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','join','6900tyAZMr','56AnbKDq'];a46_0xe6ae=function(){return _0x3ffd7c;};return a46_0xe6ae();}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a46_0x413150(0x15c),'operation':a46_0x413150(0x15c),'description':a46_0x413150(0x169),'paramsRequired':![],'paramsHint':a46_0x413150(0x15a),'helpExtra':[a46_0x413150(0x167),a46_0x413150(0x161),a46_0x413150(0x160),a46_0x413150(0x168),a46_0x413150(0x16d),a46_0x413150(0x163)][a46_0x413150(0x164)]('\x0a')});
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 +1 @@
1
- const a47_0x1c2a3c=a47_0x2d36;(function(_0x258033,_0x459a2a){const _0x215bb7=a47_0x2d36,_0x233c4c=_0x258033();while(!![]){try{const _0x4b39f8=-parseInt(_0x215bb7(0x101))/0x1*(parseInt(_0x215bb7(0x106))/0x2)+parseInt(_0x215bb7(0x10e))/0x3*(parseInt(_0x215bb7(0x103))/0x4)+parseInt(_0x215bb7(0x100))/0x5*(parseInt(_0x215bb7(0x10a))/0x6)+-parseInt(_0x215bb7(0x108))/0x7*(parseInt(_0x215bb7(0x10b))/0x8)+-parseInt(_0x215bb7(0x107))/0x9+-parseInt(_0x215bb7(0x104))/0xa+-parseInt(_0x215bb7(0x109))/0xb*(-parseInt(_0x215bb7(0x10c))/0xc);if(_0x4b39f8===_0x459a2a)break;else _0x233c4c['push'](_0x233c4c['shift']());}catch(_0x2583ce){_0x233c4c['push'](_0x233c4c['shift']());}}}(a47_0x82ac,0x59171));import{buildDataCommand}from'../../commands/data/shared.js';function a47_0x2d36(_0x25599c,_0x32488d){_0x25599c=_0x25599c-0x100;const _0x82ac13=a47_0x82ac();let _0x2d363b=_0x82ac13[_0x25599c];return _0x2d363b;}function a47_0x82ac(){const _0x14bf0b=['164sEIRzf','669650NfehjZ','Get\x20a\x20single\x20record\x20by\x20ID','2baEzlf','4980114VMecqQ','2208549KYFGDe','65978xgNHWh','6WBMDiz','8rIUSsQ','1428RLWAdO','getOne','32283YCqqhJ','1115835mWdMWS','77399EsLyva','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'];a47_0x82ac=function(){return _0x14bf0b;};return a47_0x82ac();}export const dataGetOne=buildDataCommand({'command':a47_0x1c2a3c(0x10d),'operation':a47_0x1c2a3c(0x10d),'description':a47_0x1c2a3c(0x105),'paramsRequired':!![],'paramsHint':a47_0x1c2a3c(0x102)});
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 +1 @@
1
- (function(_0x5cc301,_0x38fb15){const _0x2839c3=a48_0x4265,_0x3fedcb=_0x5cc301();while(!![]){try{const _0x26fc9a=parseInt(_0x2839c3(0x12e))/0x1+-parseInt(_0x2839c3(0x129))/0x2*(-parseInt(_0x2839c3(0x12c))/0x3)+-parseInt(_0x2839c3(0x125))/0x4*(parseInt(_0x2839c3(0x128))/0x5)+-parseInt(_0x2839c3(0x12a))/0x6*(parseInt(_0x2839c3(0x127))/0x7)+-parseInt(_0x2839c3(0x126))/0x8+-parseInt(_0x2839c3(0x12d))/0x9*(parseInt(_0x2839c3(0x124))/0xa)+parseInt(_0x2839c3(0x12b))/0xb;if(_0x26fc9a===_0x38fb15)break;else _0x3fedcb['push'](_0x3fedcb['shift']());}catch(_0xbc5dbd){_0x3fedcb['push'](_0x3fedcb['shift']());}}}(a48_0x51c4,0xcf643));import{dataFilter}from'../../commands/data/filter.js';function a48_0x51c4(){const _0x7cb74e=['9mVwXVz','639069TRRvcD','286270Btgfgq','5981432fiYWPr','2633656NXgiho','25879vuDXTJ','5FMIxmb','1514ISPPSA','1290lavXvj','13365066ACTkld','6513yANCwi'];a48_0x51c4=function(){return _0x7cb74e;};return a48_0x51c4();}function a48_0x4265(_0x2fd808,_0x418c23){_0x2fd808=_0x2fd808-0x124;const _0x51c425=a48_0x51c4();let _0x42653=_0x51c425[_0x2fd808];return _0x42653;}import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
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 +1 @@
1
- (function(_0x5a54db,_0x41e611){const _0x234b2a=a49_0x2289,_0x1c9f48=_0x5a54db();while(!![]){try{const _0x96582c=parseInt(_0x234b2a(0x18d))/0x1*(parseInt(_0x234b2a(0x199))/0x2)+-parseInt(_0x234b2a(0x196))/0x3+parseInt(_0x234b2a(0x185))/0x4*(-parseInt(_0x234b2a(0x182))/0x5)+parseInt(_0x234b2a(0x183))/0x6+-parseInt(_0x234b2a(0x188))/0x7+parseInt(_0x234b2a(0x190))/0x8+parseInt(_0x234b2a(0x197))/0x9;if(_0x96582c===_0x41e611)break;else _0x1c9f48['push'](_0x1c9f48['shift']());}catch(_0x73f4c0){_0x1c9f48['push'](_0x1c9f48['shift']());}}}(a49_0x39ec,0xde8c5));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a49_0x39ec(){const _0x127f3d=['1378464ZmJPrq','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','3601732WDpzUX','validation','operation','9412921mBYCdb','params','string','description','compress','151ldFyZz','flagMissing','appCode','13583208EjzFUA','now','alias','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','\x20completed\x20in\x20','paramsRequired','2472attIIg','7223058rrhIYL','paramsHint','17586TwdQBK','read','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','code','helpExtra','command','str','data','getOne','data\x20','10NFLwss'];a49_0x39ec=function(){return _0x127f3d;};return a49_0x39ec();}import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function a49_0x2289(_0x31b33d,_0x115589){_0x31b33d=_0x31b33d-0x17d;const _0x39ec23=a49_0x39ec();let _0x228915=_0x39ec23[_0x31b33d];return _0x228915;}function assertGetOneId(_0x5aea4a){const _0x4ad3a1=a49_0x2289;if(!_0x5aea4a)throw CliErrors[_0x4ad3a1(0x18e)]('params',_0x4ad3a1(0x184));const _0x34493f=_0x5aea4a['id'];if(_0x34493f===undefined||_0x34493f===null||_0x34493f==='')throw CliErrors[_0x4ad3a1(0x186)](_0x4ad3a1(0x193),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');}function parseCommandParams(_0x2c5848){return parseJsonParams(_0x2c5848)??{};}export function buildDataCommand(_0x241e6d){const _0x1b8ca6=a49_0x2289,_0x28d9d0=_0x1b8ca6(0x19b);return{'service':_0x1b8ca6(0x17f),'command':_0x241e6d[_0x1b8ca6(0x17d)],'description':_0x241e6d[_0x1b8ca6(0x18b)],'risk':_0x1b8ca6(0x19a),'defaultOutputFormat':_0x1b8ca6(0x18c),'helpExtra':_0x241e6d[_0x1b8ca6(0x19d)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x1b8ca6(0x192),'type':_0x1b8ca6(0x18a),'description':_0x28d9d0},{'name':_0x1b8ca6(0x189),'type':_0x1b8ca6(0x18a),'description':_0x241e6d['paramsHint']}],async 'validate'(_0x4dffe2){const _0x6bf742=_0x1b8ca6,_0x2fbd4d=_0x4dffe2[_0x6bf742(0x17e)](_0x6bf742(0x189));if(_0x241e6d[_0x6bf742(0x195)]&&!_0x2fbd4d)throw CliErrors[_0x6bf742(0x18e)](_0x6bf742(0x189),_0x241e6d[_0x6bf742(0x198)]);const _0x3cf962=parseJsonParams(_0x2fbd4d);_0x241e6d[_0x6bf742(0x187)]===_0x6bf742(0x180)&&assertGetOneId(_0x3cf962);},async 'execute'(_0x29e682){const _0x34ba74=_0x1b8ca6,_0x10b40c=parseCommandParams(_0x29e682[_0x34ba74(0x17e)](_0x34ba74(0x189))),_0x3b25ea=Date[_0x34ba74(0x191)](),_0x57e420=await executeDatasetDataOperation(_0x29e682[_0x34ba74(0x18f)],_0x29e682[_0x34ba74(0x17e)](_0x34ba74(0x19c)),_0x241e6d['operation'],_0x10b40c),_0x269336=Date['now']()-_0x3b25ea;return{'ok':!![],'data':{'result':_0x57e420,'elapsed':_0x269336},'message':_0x34ba74(0x181)+_0x241e6d[_0x34ba74(0x17d)]+_0x34ba74(0x194)+_0x269336+'ms'};}};}
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 +1 @@
1
- const a50_0x8852d2=a50_0x32dc;(function(_0x501331,_0x1bb9a8){const _0x5c824b=a50_0x32dc,_0x1a22ad=_0x501331();while(!![]){try{const _0x1152e2=parseInt(_0x5c824b(0x104))/0x1*(parseInt(_0x5c824b(0x103))/0x2)+parseInt(_0x5c824b(0xff))/0x3+parseInt(_0x5c824b(0xe9))/0x4*(parseInt(_0x5c824b(0x108))/0x5)+-parseInt(_0x5c824b(0xec))/0x6*(-parseInt(_0x5c824b(0x101))/0x7)+-parseInt(_0x5c824b(0xfd))/0x8+parseInt(_0x5c824b(0xf2))/0x9+-parseInt(_0x5c824b(0x10b))/0xa*(parseInt(_0x5c824b(0xee))/0xb);if(_0x1152e2===_0x1bb9a8)break;else _0x1a22ad['push'](_0x1a22ad['shift']());}catch(_0x3975ee){_0x1a22ad['push'](_0x1a22ad['shift']());}}}(a50_0x1497,0xce003));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':a50_0x8852d2(0x10a),'getOne':a50_0x8852d2(0x106)};export const RUNTIME_DATA_ACCESS_SUMMARY=a50_0x8852d2(0xfa);function valueToString(_0x1a9b7b){return _0x1a9b7b==null?'':String(_0x1a9b7b)['trim']();}function getDatasetCode(_0x443104){const _0x6126da=a50_0x8852d2;return valueToString(_0x443104[_0x6126da(0xf7)]??_0x443104[_0x6126da(0xfb)]??_0x443104[_0x6126da(0x107)]?.[_0x6126da(0x102)]);}function getDatasetName(_0x5bf46a){const _0x4ec1ee=a50_0x8852d2;return valueToString(_0x5bf46a[_0x4ec1ee(0xea)]??_0x5bf46a[_0x4ec1ee(0x107)]?.[_0x4ec1ee(0xfe)])||_0x4ec1ee(0xf8);}function getDatasetSource(_0x3ee16d){const _0x4d9507=a50_0x8852d2;return valueToString(_0x3ee16d[_0x4d9507(0xed)]??_0x3ee16d[_0x4d9507(0x107)]?.['sourceType'])[_0x4d9507(0x10f)]();}function getDbtableConfig(_0x1bdb89){const _0x224ad8=a50_0x8852d2,_0x4d80f7=_0x1bdb89[_0x224ad8(0xf4)]??_0x1bdb89['dbtable'];return _0x4d80f7&&typeof _0x4d80f7===_0x224ad8(0x105)?_0x4d80f7:{};}export function isDbTableBackedDataset(_0x4a62b8){const _0x24bf74=a50_0x8852d2,_0x5ec44d=getDatasetSource(_0x4a62b8);if(_0x5ec44d===_0x24bf74(0xf5))return![];const _0x55a11c=getDbtableConfig(_0x4a62b8),_0xd85871=_0x55a11c[_0x24bf74(0xef)]??_0x55a11c['id'],_0x27e5df=valueToString(_0x55a11c['tableName']??_0x4a62b8[_0x24bf74(0xf3)]??_0x4a62b8[_0x24bf74(0x107)]?.[_0x24bf74(0xf3)]);return _0xd85871!==undefined&&_0xd85871!==null&&_0x27e5df[_0x24bf74(0xf6)]>0x0;}function a50_0x1497(){const _0x3267ba=['\x20的\x20DB_TABLE\x20数据源上下文。','toUpperCase','1756DzuoCz','name','SQL\x20schema\x20validation','1566102VHyFmP','source','9173769RZnXpp','dbId','UNKNOWN','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','11733831KmubvQ','tableName','dbtableConfig','METADATA','length','code','unknown','validation','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','modelCode','filter','12089760MxOcYQ','datasetName','4373772ZRhORo','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','28LNQlJN','datasetCode','1522slHjjJ','651tErQiq','object','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','dataset','6330SeJkye','getOne','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','30VLDnVt','join','\x20是\x20'];a50_0x1497=function(){return _0x3267ba;};return a50_0x1497();}function a50_0x32dc(_0x132949,_0x351264){_0x132949=_0x132949-0xe9;const _0x1497ae=a50_0x1497();let _0x32dc4d=_0x1497ae[_0x132949];return _0x32dc4d;}export function filterDbTableBackedDatasets(_0x3e114e){const _0x3d0550=a50_0x8852d2;return _0x3e114e[_0x3d0550(0xfc)](_0x5209ad=>isDbTableBackedDataset(_0x5209ad));}export function buildDbTableBackedRequirementMessage(_0x3f9036,_0x6788a5=a50_0x8852d2(0xeb)){const _0x32a6fb=a50_0x8852d2,_0x278dd4=getDatasetSource(_0x3f9036)||_0x32a6fb(0xf0),_0x21a9fc=getDatasetName(_0x3f9036),_0x1892c6=getDatasetCode(_0x3f9036),_0xd36f99=_0x1892c6?'\x20('+_0x1892c6+')':'';return['当前数据集\x20\x22'+_0x21a9fc+'\x22'+_0xd36f99+_0x32a6fb(0x10d)+_0x278dd4+'\x20类型,没有可用于\x20'+_0x6788a5+_0x32a6fb(0x10e),'原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。',_0x32a6fb(0xf1),_0x32a6fb(0x100)+RUNTIME_DATA_ACCESS_COMMANDS[_0x32a6fb(0xfc)]+''+RUNTIME_DATA_ACCESS_COMMANDS[_0x32a6fb(0x109)]+'。'][_0x32a6fb(0x10c)]('\x20');}export function assertDatasetIsDbTableBacked(_0xbb277,_0x3d6273){const _0x4578d4=a50_0x8852d2;if(!isDbTableBackedDataset(_0xbb277))throw CliErrors[_0x4578d4(0xf9)](buildDbTableBackedRequirementMessage(_0xbb277,_0x3d6273));}
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 +1 @@
1
- const a51_0x2c6a5e=a51_0x1440;(function(_0x35e75d,_0x1ae005){const _0x59b468=a51_0x1440,_0x192e55=_0x35e75d();while(!![]){try{const _0x1b4294=parseInt(_0x59b468(0x76))/0x1*(parseInt(_0x59b468(0x83))/0x2)+parseInt(_0x59b468(0x93))/0x3+-parseInt(_0x59b468(0x87))/0x4*(-parseInt(_0x59b468(0x75))/0x5)+parseInt(_0x59b468(0x89))/0x6+-parseInt(_0x59b468(0x92))/0x7*(-parseInt(_0x59b468(0x78))/0x8)+parseInt(_0x59b468(0x6b))/0x9+-parseInt(_0x59b468(0x69))/0xa*(parseInt(_0x59b468(0x8b))/0xb);if(_0x1b4294===_0x1ae005)break;else _0x192e55['push'](_0x192e55['shift']());}catch(_0x4759f0){_0x192e55['push'](_0x192e55['shift']());}}}(a51_0x33fa,0xd5055));import{deleteDataset,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a51_0x33fa(){const _0x46dbbd=['push','11eYPOtE','tableName','appCode','str','validation','POST','dbid=','1267413lkmzyn','3068283ZXiSxR','id=','\x20dataset(s)','Would\x20delete\x20','38302670bZZKRz','code','10597527ioFBGr','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','boolean','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','Deleted\x20','\x20dataset(s);\x20','num','length','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','5vVbqtV','713945TUYwbj','\x20failed','8Vczytr','Required\x20to\x20execute\x20dataset\x20deletion','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','name','filter','dbtableConfig','dbId','Dataset\x20id','expected-count','relationPages','dbid','2GnXyuw','confirm','isArray','No\x20undeleted\x20dataset\x20found\x20for\x20','3680784okvRWZ','dataset','4124016ZCWSsG'];a51_0x33fa=function(){return _0x46dbbd;};return a51_0x33fa();}const DATASET_ID_FLAG={'name':'id','type':'number','description':a51_0x2c6a5e(0x7f)},DBID_FLAG={'name':a51_0x2c6a5e(0x82),'type':'number','description':a51_0x2c6a5e(0x7a)},CONFIRM_FLAG={'name':a51_0x2c6a5e(0x84),'type':a51_0x2c6a5e(0x6d),'description':a51_0x2c6a5e(0x79)},EXPECTED_COUNT_FLAG={'name':a51_0x2c6a5e(0x80),'type':'number','description':a51_0x2c6a5e(0x74)};function a51_0x1440(_0x138680,_0x34496f){_0x138680=_0x138680-0x67;const _0x33fa70=a51_0x33fa();let _0x144011=_0x33fa70[_0x138680];return _0x144011;}export const datasetDelete={'service':a51_0x2c6a5e(0x88),'command':'delete','description':'Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','risk':'high-risk-write','flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x294eb0){const _0x583b81=a51_0x2c6a5e,_0x42aa4a=_0x294eb0[_0x583b81(0x71)]('id'),_0x7ac6c7=_0x294eb0[_0x583b81(0x8e)]('code'),_0x3d7340=_0x294eb0['num'](_0x583b81(0x82)),_0x3169bd=[_0x42aa4a>0x0,Boolean(_0x7ac6c7),_0x3d7340>0x0][_0x583b81(0x7c)](Boolean);if(_0x3169bd['length']===0x0)throw CliErrors['validation'](_0x583b81(0x6e));if(_0x3169bd['length']>0x1)throw CliErrors[_0x583b81(0x8f)](_0x583b81(0x73));},async 'dryRun'(_0x2e94a){const _0x1e7ce1=a51_0x2c6a5e,_0x5cea76=await resolveTargets(_0x2e94a);return{'method':_0x1e7ce1(0x90),'url':'/smartapi/dataset/delete-dataset','body':{'appCode':_0x2e94a[_0x1e7ce1(0x8d)],'count':_0x5cea76[_0x1e7ce1(0x72)],'datasets':_0x5cea76},'description':_0x1e7ce1(0x68)+_0x5cea76[_0x1e7ce1(0x72)]+'\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.'};},async 'execute'(_0x576285){const _0x102884=a51_0x2c6a5e;if(!_0x576285['bool']('confirm'))throw CliErrors[_0x102884(0x8f)]('--confirm\x20is\x20required\x20to\x20delete\x20datasets.',_0x102884(0x6c));const _0xd3a25f=await resolveTargets(_0x576285),_0x5b217e=[],_0x58517a=[];for(const _0x192395 of _0xd3a25f){try{await deleteDataset(_0x576285[_0x102884(0x8d)],_0x192395['id']),_0x5b217e[_0x102884(0x8a)](_0x192395);}catch(_0x51fae5){_0x58517a['push']({..._0x192395,'error':_0x51fae5 instanceof Error?_0x51fae5['message']:String(_0x51fae5)});}}if(_0x58517a[_0x102884(0x72)]>0x0)return{'ok':![],'data':{'requested':_0xd3a25f[_0x102884(0x72)],'deletedCount':_0x5b217e['length'],'failedCount':_0x58517a['length'],'deleted':_0x5b217e,'failed':_0x58517a},'message':_0x102884(0x6f)+_0x5b217e[_0x102884(0x72)]+'/'+_0xd3a25f[_0x102884(0x72)]+_0x102884(0x70)+_0x58517a['length']+_0x102884(0x77)};return{'ok':!![],'data':{'requested':_0xd3a25f[_0x102884(0x72)],'deletedCount':_0x5b217e[_0x102884(0x72)],'deleted':_0x5b217e},'message':_0x102884(0x6f)+_0x5b217e[_0x102884(0x72)]+_0x102884(0x67)};}};async function resolveTargets(_0x544b1a){const _0x55d227=a51_0x2c6a5e,_0x590dcd=_0x544b1a['num']('id'),_0x53cd73=_0x544b1a[_0x55d227(0x8e)](_0x55d227(0x6a)),_0xa3da23=_0x544b1a[_0x55d227(0x71)](_0x55d227(0x82));let _0x2468ae;_0x53cd73?(_0x2468ae=await listDatasets(_0x544b1a['appCode'],{'code':_0x53cd73}),_0x2468ae=_0x2468ae[_0x55d227(0x7c)](_0x210a57=>_0x210a57[_0x55d227(0x6a)]===_0x53cd73)):(_0x2468ae=await listDatasets(_0x544b1a[_0x55d227(0x8d)]),_0x590dcd>0x0&&(_0x2468ae=_0x2468ae[_0x55d227(0x7c)](_0x1aac1e=>_0x1aac1e['id']===_0x590dcd)),_0xa3da23>0x0&&(_0x2468ae=_0x2468ae['filter'](_0xd7b381=>_0xd7b381[_0x55d227(0x7d)]?.[_0x55d227(0x7e)]===_0xa3da23)));const _0x24a031=_0x2468ae['map'](normalizeTarget);if(_0x24a031[_0x55d227(0x72)]===0x0){const _0x4038d4=_0x53cd73||(_0x590dcd>0x0?_0x55d227(0x94)+_0x590dcd:_0x55d227(0x91)+_0xa3da23);throw CliErrors[_0x55d227(0x8f)](_0x55d227(0x86)+_0x4038d4+'.');}const _0x1c3259=_0x544b1a['num'](_0x55d227(0x80));if(_0x1c3259>0x0&&_0x24a031['length']!==_0x1c3259)throw CliErrors[_0x55d227(0x8f)]('Matched\x20'+_0x24a031['length']+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0x1c3259+'.');return _0x24a031;}function normalizeTarget(_0x4612f8){const _0x2e9db7=a51_0x2c6a5e,_0x4da319=_0x4612f8[_0x2e9db7(0x7d)]??{};return{'id':_0x4612f8['id'],'code':_0x4612f8['code'],'name':_0x4612f8[_0x2e9db7(0x7b)],'description':_0x4612f8['description'],'source':_0x4612f8['source'],'dbId':_0x4da319[_0x2e9db7(0x7e)],'dbName':_0x4da319['dbName'],'tableName':_0x4da319[_0x2e9db7(0x8c)],'relatedPageCount':Array[_0x2e9db7(0x85)](_0x4612f8[_0x2e9db7(0x81)])?_0x4612f8[_0x2e9db7(0x81)][_0x2e9db7(0x72)]:undefined};}
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};}