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

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_0x28c012=a33_0x3523;(function(_0x4b66ab,_0xb37e40){const _0x2be8a2=a33_0x3523,_0x25a6dd=_0x4b66ab();while(!![]){try{const _0x4b0abe=-parseInt(_0x2be8a2(0x1d2))/0x1+parseInt(_0x2be8a2(0x1db))/0x2*(-parseInt(_0x2be8a2(0x1d0))/0x3)+parseInt(_0x2be8a2(0x1d1))/0x4*(-parseInt(_0x2be8a2(0x1c1))/0x5)+-parseInt(_0x2be8a2(0x1d4))/0x6*(parseInt(_0x2be8a2(0x1c7))/0x7)+-parseInt(_0x2be8a2(0x1d3))/0x8+-parseInt(_0x2be8a2(0x1bf))/0x9+parseInt(_0x2be8a2(0x1c6))/0xa;if(_0x4b0abe===_0xb37e40)break;else _0x25a6dd['push'](_0x25a6dd['shift']());}catch(_0x457537){_0x25a6dd['push'](_0x25a6dd['shift']());}}}(a33_0x3db1,0xb2ca2));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_0x3523(_0x1c2efe,_0x1708cd){_0x1c2efe=_0x1c2efe-0x1be;const _0x3db1ca=a33_0x3db1();let _0x352316=_0x3db1ca[_0x1c2efe];return _0x352316;}function a33_0x3db1(){const _0x11af88=['5SiaPPS','lockKey','length','datasetCode','\x20remote-only','31781520EmHzMF','5089zHXsDt','all','alias','has','\x20added,\x20','appCode','bool','functions','bff','9jIjiwb','1539548qrWLnP','110681MsRPvl','7398864Gmepxi','3516rOpuEq','map','boolean','remote','read','status','\x20unchanged','28082MPsjbR','\x20modified,\x20','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','All\x20BFF\x20scripts\x20are\x20in\x20sync.','push','5015331gCaPJz','filePath'];a33_0x3db1=function(){return _0x11af88;};return a33_0x3db1();}import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a33_0x28c012(0x1cf),'command':a33_0x28c012(0x1d9),'description':'Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','risk':a33_0x28c012(0x1d8),'flags':[{'name':a33_0x28c012(0x1d7),'type':a33_0x28c012(0x1d6),'description':a33_0x28c012(0x1dd)}],async 'execute'(_0x245b08){const _0x44494f=a33_0x28c012,_0x128c29=loadBffProjectConfig(_0x245b08['appCode']),_0x45dcda=await readBffLockFile(_0x128c29['lockFilePath']),{appLock:_0x373b89}=ensureLockScope(_0x45dcda??createEmptyBffLock(),_0x245b08[_0x44494f(0x1cc)],_0x128c29['scriptsRoot'],_0x44494f(0x1d9)),_0x404c06=await scanLocalBffFunctions(_0x128c29),_0x3c65f0=[],_0xc39162=[],_0x1937a4=[];for(const _0x3723fa of _0x404c06){const _0x46faea=await computeFileHash(_0x3723fa[_0x44494f(0x1c0)]),_0x379760=_0x373b89[_0x44494f(0x1ce)][_0x3723fa[_0x44494f(0x1c2)]];if(!_0x379760)_0x3c65f0[_0x44494f(0x1be)](_0x3723fa[_0x44494f(0x1c2)]);else _0x379760['hash']!==_0x46faea?_0xc39162[_0x44494f(0x1be)](_0x3723fa[_0x44494f(0x1c2)]):_0x1937a4[_0x44494f(0x1be)](_0x3723fa['lockKey']);}const _0x19550d=[];if(_0x245b08[_0x44494f(0x1cd)]('remote')){const _0x3717c5=loadAliasMap(_0x245b08['apiDir'],undefined,resolveApiFilePath(_0x245b08['apiDir'],_0x245b08[_0x44494f(0x1cc)])),_0x1b225e=new Map(_0x3717c5[_0x44494f(0x1d5)](_0x59a23d=>[_0x59a23d[_0x44494f(0x1c4)],_0x59a23d[_0x44494f(0x1c9)]])),[_0x2718bf,_0x50fdce]=await Promise[_0x44494f(0x1c8)]([listBffScripts(_0x245b08[_0x44494f(0x1cc)]),getBffScriptStatistics(_0x245b08[_0x44494f(0x1cc)])]),_0x2a110b=createHookLocationMap(_0x50fdce),_0x555255=new Set(_0x404c06[_0x44494f(0x1d5)](_0x73939=>_0x73939[_0x44494f(0x1c2)]));for(const _0x3b8ee1 of _0x2718bf){const _0x551087=resolveRemoteScriptTarget(_0x128c29,_0x3b8ee1,_0x2a110b,_0x373b89['functions'],_0x1b225e);_0x551087&&!_0x555255[_0x44494f(0x1ca)](_0x551087[_0x44494f(0x1c2)])&&_0x19550d[_0x44494f(0x1be)](_0x551087[_0x44494f(0x1c2)]);}}const _0x4383df=_0x3c65f0[_0x44494f(0x1c3)]===0x0&&_0xc39162[_0x44494f(0x1c3)]===0x0&&_0x19550d[_0x44494f(0x1c3)]===0x0;return{'ok':!![],'data':{'added':_0x3c65f0,'modified':_0xc39162,'unchanged':_0x1937a4,'remoteOnly':_0x19550d},'message':_0x4383df?_0x44494f(0x1de):_0x3c65f0['length']+_0x44494f(0x1cb)+_0xc39162[_0x44494f(0x1c3)]+_0x44494f(0x1dc)+_0x1937a4[_0x44494f(0x1c3)]+_0x44494f(0x1da)+(_0x19550d[_0x44494f(0x1c3)]>0x0?',\x20'+_0x19550d[_0x44494f(0x1c3)]+_0x44494f(0x1c5):'')};}};
1
+ const a33_0x20a217=a33_0x4490;(function(_0x484cbb,_0x5656aa){const _0x4a59a7=a33_0x4490,_0x5c6019=_0x484cbb();while(!![]){try{const _0x5783b5=-parseInt(_0x4a59a7(0x1d9))/0x1+parseInt(_0x4a59a7(0x1ef))/0x2+parseInt(_0x4a59a7(0x1d8))/0x3+-parseInt(_0x4a59a7(0x1eb))/0x4*(parseInt(_0x4a59a7(0x1d4))/0x5)+-parseInt(_0x4a59a7(0x1e5))/0x6+-parseInt(_0x4a59a7(0x1e8))/0x7*(-parseInt(_0x4a59a7(0x1f2))/0x8)+parseInt(_0x4a59a7(0x1e9))/0x9;if(_0x5783b5===_0x5656aa)break;else _0x5c6019['push'](_0x5c6019['shift']());}catch(_0x3ebaec){_0x5c6019['push'](_0x5c6019['shift']());}}}(a33_0x311c,0x23077));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_0x311c(){const _0x247a15=['alias','1540890aOBVkK','map','All\x20BFF\x20scripts\x20are\x20in\x20sync.','1435EAwVuA','4971618oKbcnW','bff','3804EpwhCQ','push','read','bool','13152LhYubE','status','datasetCode','2744dnwjXA','\x20modified,\x20','565cndmxW','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','hash','\x20remote-only','99174JPMRrz','154594xQyNVl','lockKey','scriptsRoot','has','all','remote','appCode','apiDir','lockFilePath','length','filePath'];a33_0x311c=function(){return _0x247a15;};return a33_0x311c();}import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';function a33_0x4490(_0x473546,_0xe8afc0){_0x473546=_0x473546-0x1d4;const _0x311cb9=a33_0x311c();let _0x4490e2=_0x311cb9[_0x473546];return _0x4490e2;}export const bffStatus={'service':a33_0x20a217(0x1ea),'command':'status','description':'Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','risk':a33_0x20a217(0x1ed),'flags':[{'name':a33_0x20a217(0x1de),'type':'boolean','description':a33_0x20a217(0x1d5)}],async 'execute'(_0x5d4707){const _0x59e8b4=a33_0x20a217,_0x1abb6f=loadBffProjectConfig(_0x5d4707[_0x59e8b4(0x1df)]),_0x415e90=await readBffLockFile(_0x1abb6f[_0x59e8b4(0x1e1)]),{appLock:_0x4a30c4}=ensureLockScope(_0x415e90??createEmptyBffLock(),_0x5d4707[_0x59e8b4(0x1df)],_0x1abb6f[_0x59e8b4(0x1db)],_0x59e8b4(0x1f0)),_0x5d4bb6=await scanLocalBffFunctions(_0x1abb6f),_0x1b1c38=[],_0x59cbea=[],_0x2feeab=[];for(const _0x42e96a of _0x5d4bb6){const _0x5b14d8=await computeFileHash(_0x42e96a[_0x59e8b4(0x1e3)]),_0x171328=_0x4a30c4['functions'][_0x42e96a[_0x59e8b4(0x1da)]];if(!_0x171328)_0x1b1c38['push'](_0x42e96a[_0x59e8b4(0x1da)]);else _0x171328[_0x59e8b4(0x1d6)]!==_0x5b14d8?_0x59cbea[_0x59e8b4(0x1ec)](_0x42e96a[_0x59e8b4(0x1da)]):_0x2feeab[_0x59e8b4(0x1ec)](_0x42e96a[_0x59e8b4(0x1da)]);}const _0x60c606=[];if(_0x5d4707[_0x59e8b4(0x1ee)](_0x59e8b4(0x1de))){const _0x1d7181=loadAliasMap(_0x5d4707[_0x59e8b4(0x1e0)],undefined,resolveApiFilePath(_0x5d4707['apiDir'],_0x5d4707[_0x59e8b4(0x1df)])),_0x5cae44=new Map(_0x1d7181[_0x59e8b4(0x1e6)](_0x1092d4=>[_0x1092d4[_0x59e8b4(0x1f1)],_0x1092d4[_0x59e8b4(0x1e4)]])),[_0x4234b2,_0x4f189f]=await Promise[_0x59e8b4(0x1dd)]([listBffScripts(_0x5d4707[_0x59e8b4(0x1df)]),getBffScriptStatistics(_0x5d4707[_0x59e8b4(0x1df)])]),_0x52adce=createHookLocationMap(_0x4f189f),_0x5696ac=new Set(_0x5d4bb6[_0x59e8b4(0x1e6)](_0x7dae0b=>_0x7dae0b[_0x59e8b4(0x1da)]));for(const _0x316269 of _0x4234b2){const _0x3b9f03=resolveRemoteScriptTarget(_0x1abb6f,_0x316269,_0x52adce,_0x4a30c4['functions'],_0x5cae44);_0x3b9f03&&!_0x5696ac[_0x59e8b4(0x1dc)](_0x3b9f03[_0x59e8b4(0x1da)])&&_0x60c606[_0x59e8b4(0x1ec)](_0x3b9f03[_0x59e8b4(0x1da)]);}}const _0x3f10c9=_0x1b1c38[_0x59e8b4(0x1e2)]===0x0&&_0x59cbea['length']===0x0&&_0x60c606['length']===0x0;return{'ok':!![],'data':{'added':_0x1b1c38,'modified':_0x59cbea,'unchanged':_0x2feeab,'remoteOnly':_0x60c606},'message':_0x3f10c9?_0x59e8b4(0x1e7):_0x1b1c38['length']+'\x20added,\x20'+_0x59cbea['length']+_0x59e8b4(0x1f3)+_0x2feeab[_0x59e8b4(0x1e2)]+'\x20unchanged'+(_0x60c606['length']>0x0?',\x20'+_0x60c606[_0x59e8b4(0x1e2)]+_0x59e8b4(0x1d7):'')};}};
@@ -1 +1 @@
1
- const a34_0x20a5f5=a34_0x34f2;(function(_0x6ab0d4,_0x67b6a8){const _0x45d337=a34_0x34f2,_0x386d43=_0x6ab0d4();while(!![]){try{const _0x3a82e4=-parseInt(_0x45d337(0xd7))/0x1+-parseInt(_0x45d337(0xfe))/0x2*(-parseInt(_0x45d337(0x124))/0x3)+-parseInt(_0x45d337(0xd6))/0x4+parseInt(_0x45d337(0xfd))/0x5*(parseInt(_0x45d337(0xee))/0x6)+-parseInt(_0x45d337(0x108))/0x7*(parseInt(_0x45d337(0x118))/0x8)+-parseInt(_0x45d337(0x11f))/0x9*(parseInt(_0x45d337(0xdd))/0xa)+parseInt(_0x45d337(0x104))/0xb;if(_0x3a82e4===_0x67b6a8)break;else _0x386d43['push'](_0x386d43['shift']());}catch(_0x149def){_0x386d43['push'](_0x386d43['shift']());}}}(a34_0x4fe9,0xf3086));import a34_0x413f70 from'chalk';import a34_0x23baae from'ora';import a34_0x23caa8 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 _0x2da9c4=a34_0x34f2;return GIT_COMMIT!==_0x2da9c4(0x11a)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2da9c4(0x11b)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x487f=a34_0x34f2,_0x36d99d=process[_0x487f(0xec)][_0x487f(0xde)]();if(_0x36d99d[_0x487f(0x125)]('bun'))return'bun';return _0x487f(0xe8);}const updateFlags=[{'name':a34_0x20a5f5(0x128),'type':a34_0x20a5f5(0xe3),'description':a34_0x20a5f5(0xeb),'default':![]},{'name':a34_0x20a5f5(0x11e),'type':a34_0x20a5f5(0x101),'description':a34_0x20a5f5(0x10e)},{'name':a34_0x20a5f5(0xfc),'type':a34_0x20a5f5(0xe3),'description':a34_0x20a5f5(0xe6),'default':![]},{'name':a34_0x20a5f5(0x103),'type':a34_0x20a5f5(0xe3),'description':'Refresh\x20official\x20skill\x20package\x20after\x20updating','default':!![],'hidden':!![]}];function getRequestedVersion(_0x50a333){const _0x1f6b61=a34_0x20a5f5;return _0x50a333['str'](_0x1f6b61(0x11e))[_0x1f6b61(0xf9)]();}function shouldSkipOfficialSkill(_0x34c7a6){const _0x596424=a34_0x20a5f5;return _0x34c7a6[_0x596424(0x121)](_0x596424(0xfc))||_0x34c7a6['flag'](_0x596424(0x103))===![];}async function validateUpdateFlags(_0x213696){const _0x5026d9=a34_0x20a5f5,_0x2f1562=_0x213696[_0x5026d9(0x121)](_0x5026d9(0x128)),_0x5ed95b=getRequestedVersion(_0x213696);if(_0x2f1562&&_0x5ed95b)throw CliErrors[_0x5026d9(0x106)](_0x5026d9(0x113),_0x5026d9(0xfa));if(_0x5ed95b&&!a34_0x23caa8[_0x5026d9(0xf2)](_0x5ed95b))throw CliErrors['validation'](_0x5026d9(0x126)+_0x5ed95b,_0x5026d9(0x116));}async function fetchNpmDistTags(){const _0x55560d=a34_0x20a5f5;try{const _0x5b5966=await fetch(_0x55560d(0xe7)+encodeURIComponent(NPM_PACKAGE_NAME)+'/dist-tags',{'signal':AbortSignal[_0x55560d(0x110)](0x2710)});if(!_0x5b5966['ok'])return null;const _0x4d2575=await _0x5b5966['json']();if(!_0x4d2575||typeof _0x4d2575!==_0x55560d(0xf8))return null;return Object[_0x55560d(0x10d)](Object['entries'](_0x4d2575)[_0x55560d(0xf1)](([,_0x5063c0])=>typeof _0x5063c0===_0x55560d(0x101)&&_0x5063c0[_0x55560d(0xf9)]()[_0x55560d(0xdc)]>0x0)['map'](([_0x12c17f,_0x1d5bb1])=>[_0x12c17f,String(_0x1d5bb1)[_0x55560d(0xf9)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x5371e5){const _0x234c9b=await fetchNpmDistTags();return _0x234c9b?.[_0x5371e5]??null;}async function fetchLatestVersion(){return fetchNpmDistTagVersion('latest');}async function resolveTargetVersion(_0x5b818f){const _0x3edf9d=a34_0x20a5f5,_0x4f955b=getRequestedVersion(_0x5b818f);if(_0x4f955b)return{'version':_0x4f955b,'source':_0x3edf9d(0x11e)};if(_0x5b818f['bool']('beta')){const _0x393d9f=await fetchNpmDistTagVersion('beta');if(!_0x393d9f)return null;return{'version':_0x393d9f,'source':_0x3edf9d(0x128)};}const _0x3d71eb=await fetchLatestVersion();if(!_0x3d71eb)return null;return{'version':_0x3d71eb,'source':'latest'};}function shouldInstallTarget(_0x3ce626,_0x5208df){const _0x18116b=a34_0x20a5f5;if(_0x5208df[_0x18116b(0xf3)]==='version'||_0x5208df['source']==='beta')return!a34_0x23caa8['eq'](_0x3ce626,_0x5208df[_0x18116b(0x11e)]);return a34_0x23caa8['lt'](_0x3ce626,_0x5208df['version']);}function a34_0x4fe9(){const _0x46e307=['npm','Update\x20available:\x20','\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','execPath','succeed','42ZZoMYH','yellow','Updating\x20via\x20','filter','valid','source','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','Already\x20up\x20to\x20date\x20(v','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','\x20install\x20-g\x20','object','trim','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','no-skills','184645IHmOWM','4286biUvRz','latest','inherit','string','Checking\x20for\x20updates...','skills','34946208yBnafT','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','validation','...','231fyxbeA','gray','skipped','Checking\x20official\x20skill\x20package...','start','fromEntries','Install\x20a\x20specific\x20CLI\x20version','message','timeout','fail','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','run','\x20\x20Official\x20skill\x20update\x20failed:\x20','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','green','318424dolYFl','warn','unknown','slice','nonInteractive','Beta\x20version:\x20','version','81WjwNmx','info','bool','\x20→\x20','error','2670FGBKMk','includes','Invalid\x20version:\x20','red','beta','Update\x20failed','5583668FCZnCi','1430310FYMxtk','update','\x20\x20Run\x20manually:\x20','install','Updated\x20to\x20v','length','230570cwSTwK','toLowerCase','log','pipe','Skipping\x20official\x20skill\x20package\x20(--no-skills).','\x20\x20Try\x20manually:\x20','boolean','Already\x20on\x20requested\x20version\x20(v','write','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','https://registry.npmjs.org/-/package/'];a34_0x4fe9=function(){return _0x46e307;};return a34_0x4fe9();}function a34_0x34f2(_0x5cf732,_0x7c84d4){_0x5cf732=_0x5cf732-0xd5;const _0x4fe9d3=a34_0x4fe9();let _0x34f2d8=_0x4fe9d3[_0x5cf732];return _0x34f2d8;}function getInstallPlanLabel(_0x1bc66e,_0x253fc2){const _0x424d7c=a34_0x20a5f5;switch(_0x253fc2[_0x424d7c(0xf3)]){case _0x424d7c(0x128):return _0x424d7c(0x11d)+a34_0x413f70[_0x424d7c(0xef)](_0x1bc66e)+_0x424d7c(0x122)+a34_0x413f70['green'](_0x253fc2[_0x424d7c(0x11e)]);case'version':return'Requested\x20version:\x20'+a34_0x413f70[_0x424d7c(0xef)](_0x1bc66e)+'\x20→\x20'+a34_0x413f70[_0x424d7c(0x117)](_0x253fc2[_0x424d7c(0x11e)]);case _0x424d7c(0xff):default:return _0x424d7c(0xe9)+a34_0x413f70['yellow'](_0x1bc66e)+_0x424d7c(0x122)+a34_0x413f70[_0x424d7c(0x117)](_0x253fc2[_0x424d7c(0x11e)]);}}async function installOfficialSkill(_0x166187){const _0xbd2e2f=a34_0x20a5f5;console[_0xbd2e2f(0xdf)](a34_0x413f70['gray'](_0xbd2e2f(0x10b)));const _0x693000=runNpxSkillsAddGlobal(process['cwd'](),RABETBASE_SKILL_SOURCE,{'stdio':_0x166187?_0xbd2e2f(0xe0):_0xbd2e2f(0x100)});if(_0x693000[_0xbd2e2f(0x10a)]){console['log'](a34_0x413f70[_0xbd2e2f(0x109)](_0xbd2e2f(0xea)));return;}if(_0x693000['ok']){console[_0xbd2e2f(0xdf)](a34_0x413f70[_0xbd2e2f(0x109)](_0xbd2e2f(0xf4)));return;}console[_0xbd2e2f(0x119)](a34_0x413f70[_0xbd2e2f(0xef)](_0xbd2e2f(0x115)+(_0x693000[_0xbd2e2f(0x123)]||_0xbd2e2f(0x11a)))),console[_0xbd2e2f(0xdf)](a34_0x413f70[_0xbd2e2f(0x109)](_0xbd2e2f(0xd9)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x1ad02c){const _0x5d0e98=a34_0x20a5f5;await validateUpdateFlags(_0x1ad02c);const _0x387d5d=getCurrentVersion();console[_0x5d0e98(0xdf)]('Current\x20version:\x20'+_0x387d5d);const _0x2f3708=a34_0x23baae(_0x5d0e98(0x102))['start'](),_0x128597=await resolveTargetVersion(_0x1ad02c);if(!_0x128597){const _0x2bbce7=_0x1ad02c[_0x5d0e98(0x121)](_0x5d0e98(0x128))?_0x5d0e98(0xfb):'Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)';return _0x2f3708[_0x5d0e98(0x111)](_0x2bbce7),console['log'](a34_0x413f70[_0x5d0e98(0x109)](_0x5d0e98(0x105)+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x2bbce7};}const _0x1e1619=a34_0x23caa8['valid'](VERSION),_0x3d1e29=a34_0x23caa8['valid'](_0x128597[_0x5d0e98(0x11e)]);if(!_0x1e1619||!_0x3d1e29)return _0x2f3708[_0x5d0e98(0x111)]('Version\x20comparison\x20failed'),{'ok':![],'message':'Version\x20comparison\x20failed'};if(!shouldInstallTarget(_0x1e1619,_0x128597)){const _0xdeab80=_0x128597[_0x5d0e98(0xf3)]===_0x5d0e98(0x11e)?_0x5d0e98(0xe4)+_0x128597['version']+')':_0x5d0e98(0xf5)+_0x128597['version']+')';return _0x2f3708[_0x5d0e98(0xed)](_0xdeab80),shouldSkipOfficialSkill(_0x1ad02c)?console[_0x5d0e98(0xdf)](a34_0x413f70[_0x5d0e98(0x109)](_0x5d0e98(0xe1))):await installOfficialSkill(_0x1ad02c[_0x5d0e98(0x11c)]),{'ok':!![]};}_0x2f3708[_0x5d0e98(0x120)](getInstallPlanLabel(_0x387d5d,_0x128597));const _0x36f063=detectPackageManager(),_0x58df7a=_0x36f063===_0x5d0e98(0xe8)?resolveNpmBin(_0x5d0e98(0xe8)):_0x36f063,_0x2ecc66=a34_0x23baae(_0x5d0e98(0xf0)+_0x36f063+_0x5d0e98(0x107))[_0x5d0e98(0x10c)]();try{return await execa(_0x58df7a,[_0x5d0e98(0xda),'-g',NPM_PACKAGE_NAME+'@'+_0x128597[_0x5d0e98(0x11e)]],{'stdio':_0x5d0e98(0xe0)}),_0x2ecc66[_0x5d0e98(0xed)](_0x5d0e98(0xdb)+_0x128597[_0x5d0e98(0x11e)]),console['log'](a34_0x413f70[_0x5d0e98(0x109)](_0x5d0e98(0xf6))),shouldSkipOfficialSkill(_0x1ad02c)?console[_0x5d0e98(0xdf)](a34_0x413f70['gray'](_0x5d0e98(0xe1))):await installOfficialSkill(_0x1ad02c[_0x5d0e98(0x11c)]),{'ok':!![]};}catch(_0x5603b0){return _0x2ecc66[_0x5d0e98(0x111)](_0x5d0e98(0xd5)),console[_0x5d0e98(0x123)](a34_0x413f70[_0x5d0e98(0x127)]('\x20\x20'+_0x5603b0[_0x5d0e98(0x10f)])),console[_0x5d0e98(0xdf)](a34_0x413f70[_0x5d0e98(0x109)](_0x5d0e98(0xe2)+_0x36f063+_0x5d0e98(0xf7)+NPM_PACKAGE_NAME+'@'+_0x128597[_0x5d0e98(0x11e)])),{'ok':![],'message':_0x5603b0[_0x5d0e98(0x10f)]};}}export const updateDefinition={'service':a34_0x20a5f5(0xd8),'command':a34_0x20a5f5(0x114),'description':a34_0x20a5f5(0x112),'risk':a34_0x20a5f5(0xe5),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a34_0x10f2ac=a34_0x58f8;(function(_0x11f54c,_0x5d73a9){const _0x474d40=a34_0x58f8,_0x12c988=_0x11f54c();while(!![]){try{const _0x1b1dff=parseInt(_0x474d40(0x185))/0x1*(parseInt(_0x474d40(0x184))/0x2)+parseInt(_0x474d40(0x15b))/0x3*(-parseInt(_0x474d40(0x1a5))/0x4)+parseInt(_0x474d40(0x160))/0x5+parseInt(_0x474d40(0x18f))/0x6+parseInt(_0x474d40(0x17f))/0x7*(parseInt(_0x474d40(0x18b))/0x8)+-parseInt(_0x474d40(0x181))/0x9+-parseInt(_0x474d40(0x16e))/0xa;if(_0x1b1dff===_0x5d73a9)break;else _0x12c988['push'](_0x12c988['shift']());}catch(_0x411e6f){_0x12c988['push'](_0x12c988['shift']());}}}(a34_0x1f19,0x1de3f));import a34_0x51d615 from'chalk';import a34_0x36033f from'ora';import a34_0x14db80 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';function a34_0x58f8(_0x2fa842,_0x33babf){_0x2fa842=_0x2fa842-0x158;const _0x1f19a5=a34_0x1f19();let _0x58f89e=_0x1f19a5[_0x2fa842];return _0x58f89e;}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 _0x1c3660=a34_0x58f8;return GIT_COMMIT!==_0x1c3660(0x179)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x1c3660(0x199)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x1ed335=a34_0x58f8,_0x2e9fbf=process[_0x1ed335(0x183)]['toLowerCase']();if(_0x2e9fbf[_0x1ed335(0x177)]('bun'))return _0x1ed335(0x174);return _0x1ed335(0x19c);}function a34_0x1f19(){const _0x5b4d44=['56tHQfCG','latest','entries','source','834276uZSHBd','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','json','trim','cwd','Refresh\x20official\x20skill\x20package\x20after\x20updating','error','beta','inherit','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','slice','...','log','npm','object','nonInteractive','Version\x20comparison\x20failed','Update\x20available:\x20','filter','Install\x20a\x20specific\x20CLI\x20version','\x20→\x20','flag','90776qhIocx','validation','pipe','fail','timeout','6pIOgGD','string','warn','skills','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','420265tUtlEd','Checking\x20for\x20updates...','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','map','@latest','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','length','install','message','skipped','\x20install\x20-g\x20','valid','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','gray','3455470VAkmKh','\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','Already\x20on\x20requested\x20version\x20(v','no-skills','green','start','bun','\x20\x20Official\x20skill\x20update\x20failed:\x20','Already\x20up\x20to\x20date\x20(v','includes','yellow','unknown','https://registry.npmjs.org/-/package/','succeed','update','run','Skipping\x20official\x20skill\x20package\x20(--no-skills).','202139iQAkGN','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','419868wqIMvo','version','execPath','67390mlwiUh','4gMPBbz','bool','\x20\x20Run\x20manually:\x20','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','boolean','Beta\x20version:\x20'];a34_0x1f19=function(){return _0x5b4d44;};return a34_0x1f19();}const updateFlags=[{'name':a34_0x10f2ac(0x196),'type':a34_0x10f2ac(0x189),'description':a34_0x10f2ac(0x15f),'default':![]},{'name':a34_0x10f2ac(0x182),'type':'string','description':a34_0x10f2ac(0x1a2)},{'name':a34_0x10f2ac(0x171),'type':a34_0x10f2ac(0x189),'description':a34_0x10f2ac(0x180),'default':![]},{'name':'skills','type':'boolean','description':a34_0x10f2ac(0x194),'default':!![],'hidden':!![]}];function getRequestedVersion(_0x50e2c2){const _0x16330a=a34_0x10f2ac;return _0x50e2c2['str'](_0x16330a(0x182))[_0x16330a(0x192)]();}function shouldSkipOfficialSkill(_0x2d5c23){const _0x253694=a34_0x10f2ac;return _0x2d5c23[_0x253694(0x186)](_0x253694(0x171))||_0x2d5c23[_0x253694(0x1a4)](_0x253694(0x15e))===![];}async function validateUpdateFlags(_0x302d09){const _0xd26dc7=a34_0x10f2ac,_0x3be7ec=_0x302d09['bool'](_0xd26dc7(0x196)),_0xdd9889=getRequestedVersion(_0x302d09);if(_0x3be7ec&&_0xdd9889)throw CliErrors[_0xd26dc7(0x1a6)](_0xd26dc7(0x162),_0xd26dc7(0x16c));if(_0xdd9889&&!a34_0x14db80[_0xd26dc7(0x16b)](_0xdd9889))throw CliErrors[_0xd26dc7(0x1a6)]('Invalid\x20version:\x20'+_0xdd9889,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0x4be840=a34_0x10f2ac;try{const _0x4f101e=await fetch(_0x4be840(0x17a)+encodeURIComponent(NPM_PACKAGE_NAME)+'/dist-tags',{'signal':AbortSignal[_0x4be840(0x15a)](0x2710)});if(!_0x4f101e['ok'])return null;const _0x6706ba=await _0x4f101e[_0x4be840(0x191)]();if(!_0x6706ba||typeof _0x6706ba!==_0x4be840(0x19d))return null;return Object['fromEntries'](Object[_0x4be840(0x18d)](_0x6706ba)[_0x4be840(0x1a1)](([,_0xd346ab])=>typeof _0xd346ab===_0x4be840(0x15c)&&_0xd346ab[_0x4be840(0x192)]()[_0x4be840(0x166)]>0x0)[_0x4be840(0x163)](([_0x2ef5cb,_0x1cb4ef])=>[_0x2ef5cb,String(_0x1cb4ef)[_0x4be840(0x192)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x27c656){const _0x4a652d=await fetchNpmDistTags();return _0x4a652d?.[_0x27c656]??null;}async function fetchLatestVersion(){const _0x58047c=a34_0x10f2ac;return fetchNpmDistTagVersion(_0x58047c(0x18c));}async function resolveTargetVersion(_0x5c03c5){const _0x2eb942=a34_0x10f2ac,_0x5599c9=getRequestedVersion(_0x5c03c5);if(_0x5599c9)return{'version':_0x5599c9,'source':_0x2eb942(0x182)};if(_0x5c03c5[_0x2eb942(0x186)](_0x2eb942(0x196))){const _0x51b657=await fetchNpmDistTagVersion(_0x2eb942(0x196));if(!_0x51b657)return null;return{'version':_0x51b657,'source':_0x2eb942(0x196)};}const _0x5ecb48=await fetchLatestVersion();if(!_0x5ecb48)return null;return{'version':_0x5ecb48,'source':_0x2eb942(0x18c)};}function shouldInstallTarget(_0x366c0c,_0x2a1abc){const _0x2b71f2=a34_0x10f2ac;if(_0x2a1abc[_0x2b71f2(0x18e)]===_0x2b71f2(0x182)||_0x2a1abc[_0x2b71f2(0x18e)]===_0x2b71f2(0x196))return!a34_0x14db80['eq'](_0x366c0c,_0x2a1abc[_0x2b71f2(0x182)]);return a34_0x14db80['lt'](_0x366c0c,_0x2a1abc['version']);}function getInstallPlanLabel(_0x483060,_0x15e0a6){const _0x1c1970=a34_0x10f2ac;switch(_0x15e0a6['source']){case _0x1c1970(0x196):return _0x1c1970(0x18a)+a34_0x51d615[_0x1c1970(0x178)](_0x483060)+_0x1c1970(0x1a3)+a34_0x51d615[_0x1c1970(0x172)](_0x15e0a6[_0x1c1970(0x182)]);case'version':return'Requested\x20version:\x20'+a34_0x51d615[_0x1c1970(0x178)](_0x483060)+'\x20→\x20'+a34_0x51d615['green'](_0x15e0a6[_0x1c1970(0x182)]);case'latest':default:return _0x1c1970(0x1a0)+a34_0x51d615[_0x1c1970(0x178)](_0x483060)+_0x1c1970(0x1a3)+a34_0x51d615['green'](_0x15e0a6[_0x1c1970(0x182)]);}}async function installOfficialSkill(_0x4c3248){const _0x454385=a34_0x10f2ac;console[_0x454385(0x19b)](a34_0x51d615[_0x454385(0x16d)]('Checking\x20official\x20skill\x20package...'));const _0x5102d2=runNpxSkillsAddGlobal(process[_0x454385(0x193)](),RABETBASE_SKILL_SOURCE,{'stdio':_0x4c3248?_0x454385(0x158):_0x454385(0x197)});if(_0x5102d2[_0x454385(0x169)]){console['log'](a34_0x51d615['gray'](_0x454385(0x16f)));return;}if(_0x5102d2['ok']){console['log'](a34_0x51d615[_0x454385(0x16d)](_0x454385(0x188)));return;}console[_0x454385(0x15d)](a34_0x51d615['yellow'](_0x454385(0x175)+(_0x5102d2[_0x454385(0x195)]||'unknown'))),console['log'](a34_0x51d615[_0x454385(0x16d)](_0x454385(0x187)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x195ef4){const _0x14804f=a34_0x10f2ac;await validateUpdateFlags(_0x195ef4);const _0x75ea95=getCurrentVersion();console['log']('Current\x20version:\x20'+_0x75ea95);const _0x5488d6=a34_0x36033f(_0x14804f(0x161))[_0x14804f(0x173)](),_0x3669c1=await resolveTargetVersion(_0x195ef4);if(!_0x3669c1){const _0x104c98=_0x195ef4[_0x14804f(0x186)]('beta')?'Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm':_0x14804f(0x190);return _0x5488d6[_0x14804f(0x159)](_0x104c98),console[_0x14804f(0x19b)](a34_0x51d615[_0x14804f(0x16d)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x14804f(0x164))),{'ok':![],'message':_0x104c98};}const _0x1be122=a34_0x14db80[_0x14804f(0x16b)](VERSION),_0x42140d=a34_0x14db80[_0x14804f(0x16b)](_0x3669c1[_0x14804f(0x182)]);if(!_0x1be122||!_0x42140d)return _0x5488d6[_0x14804f(0x159)]('Version\x20comparison\x20failed'),{'ok':![],'message':_0x14804f(0x19f)};if(!shouldInstallTarget(_0x1be122,_0x3669c1)){const _0x56a594=_0x3669c1['source']===_0x14804f(0x182)?_0x14804f(0x170)+_0x3669c1[_0x14804f(0x182)]+')':_0x14804f(0x176)+_0x3669c1['version']+')';return _0x5488d6['succeed'](_0x56a594),shouldSkipOfficialSkill(_0x195ef4)?console[_0x14804f(0x19b)](a34_0x51d615[_0x14804f(0x16d)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).')):await installOfficialSkill(_0x195ef4[_0x14804f(0x19e)]),{'ok':!![]};}_0x5488d6['info'](getInstallPlanLabel(_0x75ea95,_0x3669c1));const _0x7bfea3=detectPackageManager(),_0x248635=_0x7bfea3==='npm'?resolveNpmBin(_0x14804f(0x19c)):_0x7bfea3,_0xb121eb=a34_0x36033f('Updating\x20via\x20'+_0x7bfea3+_0x14804f(0x19a))[_0x14804f(0x173)]();try{return await execa(_0x248635,[_0x14804f(0x167),'-g',NPM_PACKAGE_NAME+'@'+_0x3669c1['version']],{'stdio':'pipe'}),_0xb121eb[_0x14804f(0x17b)]('Updated\x20to\x20v'+_0x3669c1[_0x14804f(0x182)]),console[_0x14804f(0x19b)](a34_0x51d615[_0x14804f(0x16d)](_0x14804f(0x165))),shouldSkipOfficialSkill(_0x195ef4)?console[_0x14804f(0x19b)](a34_0x51d615['gray'](_0x14804f(0x17e))):await installOfficialSkill(_0x195ef4[_0x14804f(0x19e)]),{'ok':!![]};}catch(_0x1dfe8d){return _0xb121eb[_0x14804f(0x159)]('Update\x20failed'),console[_0x14804f(0x195)](a34_0x51d615['red']('\x20\x20'+_0x1dfe8d[_0x14804f(0x168)])),console[_0x14804f(0x19b)](a34_0x51d615[_0x14804f(0x16d)]('\x20\x20Try\x20manually:\x20'+_0x7bfea3+_0x14804f(0x16a)+NPM_PACKAGE_NAME+'@'+_0x3669c1[_0x14804f(0x182)])),{'ok':![],'message':_0x1dfe8d[_0x14804f(0x168)]};}}export const updateDefinition={'service':a34_0x10f2ac(0x17c),'command':a34_0x10f2ac(0x17d),'description':a34_0x10f2ac(0x198),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- (function(_0x5f057d,_0x213574){const _0x1a0d95=a35_0x4065,_0xad4b77=_0x5f057d();while(!![]){try{const _0x2b3678=-parseInt(_0x1a0d95(0x8e))/0x1*(parseInt(_0x1a0d95(0x88))/0x2)+-parseInt(_0x1a0d95(0x90))/0x3*(parseInt(_0x1a0d95(0x89))/0x4)+parseInt(_0x1a0d95(0x8a))/0x5+parseInt(_0x1a0d95(0x8d))/0x6+-parseInt(_0x1a0d95(0x8b))/0x7+-parseInt(_0x1a0d95(0x8c))/0x8+parseInt(_0x1a0d95(0x8f))/0x9;if(_0x2b3678===_0x213574)break;else _0xad4b77['push'](_0xad4b77['shift']());}catch(_0x40d700){_0xad4b77['push'](_0xad4b77['shift']());}}}(a35_0x24a2,0x586da));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';function a35_0x24a2(){const _0x184ad1=['3174297COwxwo','1627488lUbXxm','2119368dWpkFP','1lVjcOf','8489250nkILIk','27258fXEcRK','1308022fmkPJf','40vvbtYK','2337510sTxoME'];a35_0x24a2=function(){return _0x184ad1;};return a35_0x24a2();}function a35_0x4065(_0x10bd51,_0xc19455){_0x10bd51=_0x10bd51-0x88;const _0x24a2f9=a35_0x24a2();let _0x4065ab=_0x24a2f9[_0x10bd51];return _0x4065ab;}export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ function a35_0xccf1(){const _0x17e080=['2009384JmUBRh','9GeQKfn','4937512cponPg','85155UsUUMl','24ekqPBz','24811540vGqpzz','378prSsdk','464596ZihabR','97020kaiRrQ','142826VpYwMY'];a35_0xccf1=function(){return _0x17e080;};return a35_0xccf1();}(function(_0x141eef,_0x393402){const _0x391228=a35_0x5773,_0x87a0ab=_0x141eef();while(!![]){try{const _0x49c0b1=-parseInt(_0x391228(0x1c0))/0x1+-parseInt(_0x391228(0x1c1))/0x2+-parseInt(_0x391228(0x1c5))/0x3*(parseInt(_0x391228(0x1be))/0x4)+-parseInt(_0x391228(0x1bf))/0x5+-parseInt(_0x391228(0x1bd))/0x6*(-parseInt(_0x391228(0x1c4))/0x7)+-parseInt(_0x391228(0x1c3))/0x8*(parseInt(_0x391228(0x1c2))/0x9)+parseInt(_0x391228(0x1bc))/0xa;if(_0x49c0b1===_0x393402)break;else _0x87a0ab['push'](_0x87a0ab['shift']());}catch(_0x44c6d7){_0x87a0ab['push'](_0x87a0ab['shift']());}}}(a35_0xccf1,0x826e6));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';function a35_0x5773(_0xe9a5e0,_0x1b96e9){_0xe9a5e0=_0xe9a5e0-0x1bc;const _0xccf1a0=a35_0xccf1();let _0x5773c1=_0xccf1a0[_0xe9a5e0];return _0x5773c1;}export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a36_0xbbc35d=a36_0x3b98;(function(_0x3ef9ff,_0xc38ea7){const _0x287549=a36_0x3b98,_0x3befe4=_0x3ef9ff();while(!![]){try{const _0x3c1d03=parseInt(_0x287549(0x83))/0x1*(parseInt(_0x287549(0x89))/0x2)+-parseInt(_0x287549(0x81))/0x3*(parseInt(_0x287549(0x78))/0x4)+-parseInt(_0x287549(0x86))/0x5*(parseInt(_0x287549(0x7d))/0x6)+-parseInt(_0x287549(0x8b))/0x7*(-parseInt(_0x287549(0x92))/0x8)+parseInt(_0x287549(0x7f))/0x9*(-parseInt(_0x287549(0x91))/0xa)+parseInt(_0x287549(0x93))/0xb+-parseInt(_0x287549(0x88))/0xc*(-parseInt(_0x287549(0x80))/0xd);if(_0x3c1d03===_0xc38ea7)break;else _0x3befe4['push'](_0x3befe4['shift']());}catch(_0x24475d){_0x3befe4['push'](_0x3befe4['shift']());}}}(a36_0x4cab,0x80848));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a36_0x3b98(_0x1645ad,_0x428aa4){_0x1645ad=_0x1645ad-0x78;const _0x4cab1e=a36_0x4cab();let _0x3b989b=_0x4cab1e[_0x1645ad];return _0x3b989b;}export const codegenSdk={'service':a36_0xbbc35d(0x8f),'command':a36_0xbbc35d(0x84),'description':a36_0xbbc35d(0x7e),'risk':a36_0xbbc35d(0x8c),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0xbbc35d(0x90),'type':a36_0xbbc35d(0x7a),'description':a36_0xbbc35d(0x8e)},{'name':a36_0xbbc35d(0x87),'type':'string','required':!![],'description':a36_0xbbc35d(0x7b)},{'name':a36_0xbbc35d(0x85),'type':a36_0xbbc35d(0x79),'description':a36_0xbbc35d(0x82)}],async 'execute'(_0x36672f){const _0x354a57=a36_0xbbc35d,{dataset:_0x3dfa2d,operation:_0x30cc0e}=await getOperationDetail(_0x36672f['appCode'],_0x36672f[_0x354a57(0x7c)](_0x354a57(0x8a)),_0x36672f[_0x354a57(0x7c)]('operation')),_0xfb7e90=generateSdkCode(_0x3dfa2d,_0x30cc0e,{'includeImports':!_0x36672f[_0x354a57(0x8d)](_0x354a57(0x85))});return{'ok':!![],'data':{'dataset':{'name':_0x3dfa2d[_0x354a57(0x94)],'code':_0x3dfa2d[_0x354a57(0x8a)],'tableName':_0x3dfa2d['tableName']},'operation':_0x36672f['str'](_0x354a57(0x87)),'code':_0xfb7e90}};}};function a36_0x4cab(){const _0x2e5074=['Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','str','5270844tDjKlI','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','360BPJYlA','936tVopwp','16635tdLvwk','Omit\x20import\x20statements\x20from\x20generated\x20code','79979NWSNCX','sdk','skip-imports','5jjRSMX','operation','168252YgNPWg','18omTGhu','code','880439wgJPlx','read','bool','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','codegen','alias','131050ITFYDF','24hjzhZq','8476853oizjNG','name','684rxbzlt','boolean','string'];a36_0x4cab=function(){return _0x2e5074;};return a36_0x4cab();}
1
+ const a36_0x22fc9b=a36_0x437a;(function(_0x1adb69,_0x155b52){const _0x1f56cf=a36_0x437a,_0xddb126=_0x1adb69();while(!![]){try{const _0xba19e3=parseInt(_0x1f56cf(0xdf))/0x1*(-parseInt(_0x1f56cf(0xd9))/0x2)+parseInt(_0x1f56cf(0xd5))/0x3*(parseInt(_0x1f56cf(0xe3))/0x4)+parseInt(_0x1f56cf(0xe0))/0x5*(-parseInt(_0x1f56cf(0xdb))/0x6)+-parseInt(_0x1f56cf(0xdd))/0x7+-parseInt(_0x1f56cf(0xd3))/0x8+-parseInt(_0x1f56cf(0xd4))/0x9+-parseInt(_0x1f56cf(0xd0))/0xa*(-parseInt(_0x1f56cf(0xcf))/0xb);if(_0xba19e3===_0x155b52)break;else _0xddb126['push'](_0xddb126['shift']());}catch(_0x9e2e58){_0xddb126['push'](_0xddb126['shift']());}}}(a36_0x5e64,0xa6df6));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a36_0x5e64(){const _0x2f61a9=['35390TuFVdr','appCode','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','10086352docecz','281385OrnwNF','67503hMCHMj','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','read','skip-imports','1646SMXbpQ','str','6aUOjvF','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','237482ICcFEW','codegen','1224QXaZfG','6558490vUuice','bool','sdk','124FxkeQM','tableName','alias','operation','code','11286GnVplo'];a36_0x5e64=function(){return _0x2f61a9;};return a36_0x5e64();}function a36_0x437a(_0x3b8435,_0x229d1d){_0x3b8435=_0x3b8435-0xce;const _0x5e6430=a36_0x5e64();let _0x437a9f=_0x5e6430[_0x3b8435];return _0x437a9f;}export const codegenSdk={'service':a36_0x22fc9b(0xde),'command':a36_0x22fc9b(0xe2),'description':a36_0x22fc9b(0xdc),'risk':a36_0x22fc9b(0xd7),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x22fc9b(0xe5),'type':'string','description':a36_0x22fc9b(0xd6)},{'name':'operation','type':'string','required':!![],'description':a36_0x22fc9b(0xd2)},{'name':a36_0x22fc9b(0xd8),'type':'boolean','description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x336653){const _0x41c8f4=a36_0x22fc9b,{dataset:_0x19e75c,operation:_0xf25f49}=await getOperationDetail(_0x336653[_0x41c8f4(0xd1)],_0x336653[_0x41c8f4(0xda)](_0x41c8f4(0xce)),_0x336653[_0x41c8f4(0xda)](_0x41c8f4(0xe6))),_0x5a7293=generateSdkCode(_0x19e75c,_0xf25f49,{'includeImports':!_0x336653[_0x41c8f4(0xe1)](_0x41c8f4(0xd8))});return{'ok':!![],'data':{'dataset':{'name':_0x19e75c['name'],'code':_0x19e75c[_0x41c8f4(0xce)],'tableName':_0x19e75c[_0x41c8f4(0xe4)]},'operation':_0x336653[_0x41c8f4(0xda)](_0x41c8f4(0xe6)),'code':_0x5a7293}};}};
@@ -1 +1 @@
1
- const a37_0x12f06c=a37_0x2964;(function(_0x4db155,_0x5094e9){const _0x9dc49a=a37_0x2964,_0x438ca1=_0x4db155();while(!![]){try{const _0x4ba833=parseInt(_0x9dc49a(0xdd))/0x1+parseInt(_0x9dc49a(0xda))/0x2*(-parseInt(_0x9dc49a(0xe2))/0x3)+parseInt(_0x9dc49a(0xd8))/0x4+-parseInt(_0x9dc49a(0xd3))/0x5*(-parseInt(_0x9dc49a(0xe5))/0x6)+-parseInt(_0x9dc49a(0xd6))/0x7+parseInt(_0x9dc49a(0xe1))/0x8+-parseInt(_0x9dc49a(0xd7))/0x9;if(_0x4ba833===_0x5094e9)break;else _0x438ca1['push'](_0x438ca1['shift']());}catch(_0x1b448f){_0x438ca1['push'](_0x438ca1['shift']());}}}(a37_0x2a8c,0xb7ae4));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a37_0x2964(_0x2805a7,_0x40fbd1){_0x2805a7=_0x2805a7-0xd3;const _0x2a8cc2=a37_0x2a8c();let _0x29649f=_0x2a8cc2[_0x2805a7];return _0x29649f;}export const codegenSql={'service':'codegen','command':'sql','description':a37_0x12f06c(0xe0),'risk':a37_0x12f06c(0xe4),'flags':[SQLCODE_FLAG,{'name':'target','type':a37_0x12f06c(0xdb),'description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':a37_0x12f06c(0xd5),'enum':[a37_0x12f06c(0xd5),a37_0x12f06c(0xdf)]},{'name':a37_0x12f06c(0xd4),'type':a37_0x12f06c(0xe7),'description':a37_0x12f06c(0xde)}],async 'execute'(_0x2e309b){const _0x4d6e63=a37_0x12f06c,_0x3c8641=await getSqlQueryInfo(_0x2e309b['appCode'],_0x2e309b['str']('sqlcode')),_0x4005ef=_0x2e309b[_0x4d6e63(0xe6)]('target')||'sdk',_0xb9b1b6=generateSqlCodeTemplate(_0x3c8641,{'target':_0x4005ef,'includeImports':!_0x2e309b[_0x4d6e63(0xdc)](_0x4d6e63(0xd4))});return{'ok':!![],'data':{'sqlCode':_0x3c8641[_0x4d6e63(0xe3)],'sqlName':_0x3c8641[_0x4d6e63(0xd9)],'target':_0x4005ef,'code':_0xb9b1b6}};}};function a37_0x2a8c(){const _0x422b49=['string','bool','850375ypuwAL','Omit\x20import\x20statements\x20from\x20generated\x20code','bff','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','7435904EcTGxd','667947upTgMD','sqlCode','read','6qskiBm','str','boolean','3643825VHlTXD','no-imports','sdk','8636208TUMIwq','5743971vIAJtu','3134552VmgEIU','sqlName','6qUJRtX'];a37_0x2a8c=function(){return _0x422b49;};return a37_0x2a8c();}
1
+ const a37_0x314e8c=a37_0x26c1;(function(_0x34596d,_0xa2f0a0){const _0x1c6e70=a37_0x26c1,_0x2cb7af=_0x34596d();while(!![]){try{const _0x15c266=parseInt(_0x1c6e70(0x1a8))/0x1*(parseInt(_0x1c6e70(0x1be))/0x2)+parseInt(_0x1c6e70(0x1b1))/0x3+parseInt(_0x1c6e70(0x1b0))/0x4*(parseInt(_0x1c6e70(0x1bd))/0x5)+parseInt(_0x1c6e70(0x1b2))/0x6*(-parseInt(_0x1c6e70(0x1c1))/0x7)+parseInt(_0x1c6e70(0x1c0))/0x8*(-parseInt(_0x1c6e70(0x1b7))/0x9)+parseInt(_0x1c6e70(0x1af))/0xa*(parseInt(_0x1c6e70(0x1b4))/0xb)+-parseInt(_0x1c6e70(0x1aa))/0xc;if(_0x15c266===_0xa2f0a0)break;else _0x2cb7af['push'](_0x2cb7af['shift']());}catch(_0x2e2387){_0x2cb7af['push'](_0x2cb7af['shift']());}}}(a37_0x23ed,0xa6b0e));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a37_0x23ed(){const _0xf66c28=['1049FxxBps','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','25445448wMtTio','Omit\x20import\x20statements\x20from\x20generated\x20code','bff','no-imports','sqlcode','8890dzSkdy','49332FMzXRp','1373661scbSae','66qMHMyZ','appCode','13574SOMSNn','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','codegen','1854QCnPCa','target','str','boolean','sdk','sqlName','445NBrxOo','2082jIoeuF','sql','27624DpZDpX','146377dgxfbq','sqlCode','string'];a37_0x23ed=function(){return _0xf66c28;};return a37_0x23ed();}function a37_0x26c1(_0x354363,_0x33d990){_0x354363=_0x354363-0x1a6;const _0x23ed1d=a37_0x23ed();let _0x26c17c=_0x23ed1d[_0x354363];return _0x26c17c;}export const codegenSql={'service':a37_0x314e8c(0x1b6),'command':a37_0x314e8c(0x1bf),'description':a37_0x314e8c(0x1b5),'risk':'read','flags':[SQLCODE_FLAG,{'name':a37_0x314e8c(0x1b8),'type':a37_0x314e8c(0x1a7),'description':a37_0x314e8c(0x1a9),'default':'sdk','enum':[a37_0x314e8c(0x1bb),a37_0x314e8c(0x1ac)]},{'name':a37_0x314e8c(0x1ad),'type':a37_0x314e8c(0x1ba),'description':a37_0x314e8c(0x1ab)}],async 'execute'(_0x4deffc){const _0x378cd9=a37_0x314e8c,_0x542b61=await getSqlQueryInfo(_0x4deffc[_0x378cd9(0x1b3)],_0x4deffc[_0x378cd9(0x1b9)](_0x378cd9(0x1ae))),_0x5e2829=_0x4deffc['str'](_0x378cd9(0x1b8))||_0x378cd9(0x1bb),_0x535713=generateSqlCodeTemplate(_0x542b61,{'target':_0x5e2829,'includeImports':!_0x4deffc['bool']('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x542b61[_0x378cd9(0x1a6)],'sqlName':_0x542b61[_0x378cd9(0x1bc)],'target':_0x5e2829,'code':_0x535713}};}};
@@ -1 +1 @@
1
- (function(_0x4a6917,_0x11dcf9){const _0x194e84=a38_0x3c1d,_0x12bddb=_0x4a6917();while(!![]){try{const _0x2940e7=-parseInt(_0x194e84(0x146))/0x1+-parseInt(_0x194e84(0x147))/0x2*(parseInt(_0x194e84(0x13f))/0x3)+parseInt(_0x194e84(0x14d))/0x4*(-parseInt(_0x194e84(0x136))/0x5)+parseInt(_0x194e84(0x139))/0x6*(-parseInt(_0x194e84(0x14e))/0x7)+parseInt(_0x194e84(0x131))/0x8+parseInt(_0x194e84(0x14a))/0x9*(-parseInt(_0x194e84(0x140))/0xa)+parseInt(_0x194e84(0x133))/0xb*(parseInt(_0x194e84(0x153))/0xc);if(_0x2940e7===_0x11dcf9)break;else _0x12bddb['push'](_0x12bddb['shift']());}catch(_0x33b3b7){_0x12bddb['push'](_0x12bddb['shift']());}}}(a38_0x2dea,0x4a3c3));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x31fb4f 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 _0x342ebf=a38_0x3c1d,_0x2c36ac=await input({'message':'请输入\x20App\x20Code:','validate':_0x490e46=>{const _0x261ab5=a38_0x3c1d,_0x120d8b=validateAppcode(_0x490e46[_0x261ab5(0x142)]());return _0x120d8b[_0x261ab5(0x14b)]||_0x120d8b[_0x261ab5(0x132)]||_0x261ab5(0x137);}});return _0x2c36ac[_0x342ebf(0x142)]();}export async function promptAppSelection(_0x24e00c){const _0xb1f949=a38_0x3c1d,_0x30e49d=[{'name':a38_0x31fb4f[_0xb1f949(0x141)]('✎\x20自定义输入\x20appcode'),'value':-0x1},..._0x24e00c[_0xb1f949(0x12f)]((_0x1f13bd,_0x59dc1b)=>({'name':_0x1f13bd[_0xb1f949(0x150)]+'\x20\x20'+a38_0x31fb4f[_0xb1f949(0x14c)]('('+_0x1f13bd['appCode']+')'),'value':_0x59dc1b}))],_0xe37c0a=await checkbox({'message':_0xb1f949(0x143)+a38_0x31fb4f['cyan'](_0x24e00c[_0xb1f949(0x14f)])+_0xb1f949(0x138),'choices':_0x30e49d,'loop':![]});if(_0xe37c0a[_0xb1f949(0x152)](-0x1))return'custom';if(_0xe37c0a[_0xb1f949(0x14f)]===0x0)return _0xb1f949(0x155);return _0xe37c0a['map'](_0xa31287=>_0x24e00c[_0xa31287]);}export async function promptSingleAppSelection(_0x26e787){const _0x16cbc6=a38_0x3c1d,_0x1b0746=[{'name':a38_0x31fb4f[_0x16cbc6(0x14c)](_0x16cbc6(0x145)),'value':_0x16cbc6(0x149)},{'name':a38_0x31fb4f['yellow'](_0x16cbc6(0x13c)),'value':'custom'},..._0x26e787['map'](_0x57a846=>({'name':_0x57a846[_0x16cbc6(0x150)]+'\x20\x20'+a38_0x31fb4f['gray']('('+_0x57a846['appCode']+')'),'value':_0x57a846[_0x16cbc6(0x148)]}))],_0x575f2f=await select({'message':_0x16cbc6(0x13e),'choices':_0x1b0746});if(_0x575f2f==='skip')return'skip';if(_0x575f2f==='custom')return'custom';return _0x26e787[_0x16cbc6(0x135)](_0x274358=>_0x274358[_0x16cbc6(0x148)]===_0x575f2f);}export async function selectSingleAppcode(_0x281051){const _0x20bfab=a38_0x3c1d;if(!_0x281051)return writeCliSideChannelLine(a38_0x31fb4f[_0x20bfab(0x14c)](_0x20bfab(0x13b))),_fallbackOrSkip();writeCliSideChannelLine(_0x20bfab(0x151));let _0x806e93;try{_0x806e93=await withActiveCookie(_0x281051,()=>listRemoteApps());}catch(_0x33bf6a){writeCliSideChannelLine(a38_0x31fb4f[_0x20bfab(0x141)](_0x20bfab(0x13a)));if(_0x33bf6a instanceof Error)writeCliSideChannelLine(a38_0x31fb4f[_0x20bfab(0x14c)](_0x20bfab(0x144)+_0x33bf6a[_0x20bfab(0x132)]+')'));return _fallbackOrSkip();}if(_0x806e93[_0x20bfab(0x14f)]===0x0)return writeCliSideChannelLine(a38_0x31fb4f[_0x20bfab(0x141)]('未找到可用应用。')),_fallbackOrSkip();const _0x387fd0=await promptSingleAppSelection(_0x806e93);if(_0x387fd0===_0x20bfab(0x149))return'';if(_0x387fd0==='custom')return promptCustomAppcode();return _0x387fd0[_0x20bfab(0x148)];}export async function selectMultipleApps(_0x28058b){const _0x536a93=a38_0x3c1d;writeCliSideChannelLine(_0x536a93(0x151));let _0x42217b;try{_0x42217b=await withActiveCookie(_0x28058b,()=>listRemoteApps());}catch(_0x31d67d){writeCliSideChannelLine('\x0a无法获取远程应用列表,请手动输入。');if(_0x31d67d instanceof Error)writeCliSideChannelLine(_0x536a93(0x144)+_0x31d67d[_0x536a93(0x132)]+')');return _0x536a93(0x155);}if(_0x42217b[_0x536a93(0x14f)]===0x0)return writeCliSideChannelLine('\x0a未找到可用应用。'),_0x536a93(0x155);return promptAppSelection(_0x42217b);}async function _fallbackOrSkip(){const _0x38667c=a38_0x3c1d,_0x455fb1=await select({'message':_0x38667c(0x130),'choices':[{'name':a38_0x31fb4f[_0x38667c(0x14c)](_0x38667c(0x154)),'value':_0x38667c(0x149)},{'name':a38_0x31fb4f[_0x38667c(0x141)](_0x38667c(0x134)),'value':_0x38667c(0x13d)}]});if(_0x455fb1===_0x38667c(0x149))return'';return promptCustomAppcode();}function a38_0x3c1d(_0x278f37,_0xb7acc8){_0x278f37=_0x278f37-0x12f;const _0x2dea5f=a38_0x2dea();let _0x3c1df9=_0x2dea5f[_0x278f37];return _0x3c1df9;}function a38_0x2dea(){const _0x2a59f1=['gray','1452HsILlJ','1253naFJHO','length','appName','正在获取可用应用列表...','includes','41892ZLCOGm','(跳过,稍后配置)','custom','map','App\x20Code:','1896240HkgEkD','message','7414cvypMi','✎\x20手动输入','find','4945LWzkrh','Invalid\x20App\x20Code','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','14394ANIzgV','无法获取远程应用列表,请手动输入。','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','✎\x20自定义输入\x20appcode','manual','请选择要绑定的应用:','9ACTXpy','10mtujZG','yellow','trim','获取到\x20','\x20\x20(','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','567135biPpfk','332366EFKLjM','appCode','skip','3886065LbixCy','valid'];a38_0x2dea=function(){return _0x2a59f1;};return a38_0x2dea();}
1
+ (function(_0x297bb7,_0x39a3cb){const _0x2d2b2f=a38_0x5513,_0xbdec67=_0x297bb7();while(!![]){try{const _0x5312a5=-parseInt(_0x2d2b2f(0x1c2))/0x1+parseInt(_0x2d2b2f(0x1b2))/0x2*(-parseInt(_0x2d2b2f(0x1c7))/0x3)+parseInt(_0x2d2b2f(0x1b4))/0x4+-parseInt(_0x2d2b2f(0x1c3))/0x5*(parseInt(_0x2d2b2f(0x1d1))/0x6)+-parseInt(_0x2d2b2f(0x1ab))/0x7*(parseInt(_0x2d2b2f(0x1b3))/0x8)+-parseInt(_0x2d2b2f(0x1c9))/0x9*(-parseInt(_0x2d2b2f(0x1ac))/0xa)+parseInt(_0x2d2b2f(0x1b6))/0xb;if(_0x5312a5===_0x39a3cb)break;else _0xbdec67['push'](_0xbdec67['shift']());}catch(_0x1429e9){_0xbdec67['push'](_0xbdec67['shift']());}}}(a38_0x557e,0x9695f));import{input,checkbox,select}from'@inquirer/prompts';function a38_0x5513(_0x1f4274,_0x298364){_0x1f4274=_0x1f4274-0x1ab;const _0x557e8a=a38_0x557e();let _0x551320=_0x557e8a[_0x1f4274];return _0x551320;}import a38_0x31e2b6 from'chalk';function a38_0x557e(){const _0xbdc417=['278676XSdGPW','skip','appCode','✎\x20自定义输入\x20appcode','获取到\x20','请输入\x20App\x20Code:','Invalid\x20App\x20Code','valid','6CVWYtj','yellow','map','283577hSwWgP','70sppOxb','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','length','appName','无法获取远程应用列表,请手动输入。','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','218FNvJOl','64MJZxXf','3012932wmMPMf','custom','26679829vEWEkr','未找到可用应用。','App\x20Code:','cyan','manual','\x20\x20(','\x0a无法获取远程应用列表,请手动输入。','trim','message','find','gray','includes','680553IrnIxY','3639535tKCEjo','请选择要绑定的应用:','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','\x0a未找到可用应用。','28791vmoNgd','✎\x20手动输入'];a38_0x557e=function(){return _0xbdc417;};return a38_0x557e();}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 _0x1d24bb=a38_0x5513,_0x380f3c=await input({'message':_0x1d24bb(0x1ce),'validate':_0x1983e1=>{const _0x1f6703=_0x1d24bb,_0x5d367b=validateAppcode(_0x1983e1[_0x1f6703(0x1bd)]());return _0x5d367b[_0x1f6703(0x1d0)]||_0x5d367b[_0x1f6703(0x1be)]||_0x1f6703(0x1cf);}});return _0x380f3c[_0x1d24bb(0x1bd)]();}export async function promptAppSelection(_0x1f0272){const _0x5ba54c=a38_0x5513,_0x3e95d3=[{'name':a38_0x31e2b6[_0x5ba54c(0x1d2)](_0x5ba54c(0x1cc)),'value':-0x1},..._0x1f0272['map']((_0x2ebb5e,_0x17f800)=>({'name':_0x2ebb5e[_0x5ba54c(0x1af)]+'\x20\x20'+a38_0x31e2b6[_0x5ba54c(0x1c0)]('('+_0x2ebb5e['appCode']+')'),'value':_0x17f800}))],_0xd5dcc6=await checkbox({'message':_0x5ba54c(0x1cd)+a38_0x31e2b6[_0x5ba54c(0x1b9)](_0x1f0272[_0x5ba54c(0x1ae)])+_0x5ba54c(0x1b1),'choices':_0x3e95d3,'loop':![]});if(_0xd5dcc6[_0x5ba54c(0x1c1)](-0x1))return'custom';if(_0xd5dcc6[_0x5ba54c(0x1ae)]===0x0)return _0x5ba54c(0x1b5);return _0xd5dcc6[_0x5ba54c(0x1d3)](_0x1ffa96=>_0x1f0272[_0x1ffa96]);}export async function promptSingleAppSelection(_0x2eb0f6){const _0x3ae0a8=a38_0x5513,_0x47c685=[{'name':a38_0x31e2b6[_0x3ae0a8(0x1c0)](_0x3ae0a8(0x1ad)),'value':_0x3ae0a8(0x1ca)},{'name':a38_0x31e2b6[_0x3ae0a8(0x1d2)](_0x3ae0a8(0x1cc)),'value':'custom'},..._0x2eb0f6[_0x3ae0a8(0x1d3)](_0x3b1ddf=>({'name':_0x3b1ddf[_0x3ae0a8(0x1af)]+'\x20\x20'+a38_0x31e2b6[_0x3ae0a8(0x1c0)]('('+_0x3b1ddf[_0x3ae0a8(0x1cb)]+')'),'value':_0x3b1ddf[_0x3ae0a8(0x1cb)]}))],_0x59b674=await select({'message':_0x3ae0a8(0x1c4),'choices':_0x47c685});if(_0x59b674===_0x3ae0a8(0x1ca))return'skip';if(_0x59b674===_0x3ae0a8(0x1b5))return'custom';return _0x2eb0f6[_0x3ae0a8(0x1bf)](_0x3e0ddd=>_0x3e0ddd['appCode']===_0x59b674);}export async function selectSingleAppcode(_0x1eba38){const _0x5a23e5=a38_0x5513;if(!_0x1eba38)return writeCliSideChannelLine(a38_0x31e2b6[_0x5a23e5(0x1c0)](_0x5a23e5(0x1c5))),_fallbackOrSkip();writeCliSideChannelLine('正在获取可用应用列表...');let _0x52555d;try{_0x52555d=await withActiveCookie(_0x1eba38,()=>listRemoteApps());}catch(_0x34a11f){writeCliSideChannelLine(a38_0x31e2b6[_0x5a23e5(0x1d2)](_0x5a23e5(0x1b0)));if(_0x34a11f instanceof Error)writeCliSideChannelLine(a38_0x31e2b6[_0x5a23e5(0x1c0)](_0x5a23e5(0x1bb)+_0x34a11f[_0x5a23e5(0x1be)]+')'));return _fallbackOrSkip();}if(_0x52555d[_0x5a23e5(0x1ae)]===0x0)return writeCliSideChannelLine(a38_0x31e2b6[_0x5a23e5(0x1d2)](_0x5a23e5(0x1b7))),_fallbackOrSkip();const _0x322318=await promptSingleAppSelection(_0x52555d);if(_0x322318===_0x5a23e5(0x1ca))return'';if(_0x322318==='custom')return promptCustomAppcode();return _0x322318['appCode'];}export async function selectMultipleApps(_0x10eaad){const _0x347422=a38_0x5513;writeCliSideChannelLine('正在获取可用应用列表...');let _0x399c28;try{_0x399c28=await withActiveCookie(_0x10eaad,()=>listRemoteApps());}catch(_0x35e80d){writeCliSideChannelLine(_0x347422(0x1bc));if(_0x35e80d instanceof Error)writeCliSideChannelLine(_0x347422(0x1bb)+_0x35e80d[_0x347422(0x1be)]+')');return _0x347422(0x1b5);}if(_0x399c28[_0x347422(0x1ae)]===0x0)return writeCliSideChannelLine(_0x347422(0x1c6)),_0x347422(0x1b5);return promptAppSelection(_0x399c28);}async function _fallbackOrSkip(){const _0xdae039=a38_0x5513,_0x10cee1=await select({'message':_0xdae039(0x1b8),'choices':[{'name':a38_0x31e2b6[_0xdae039(0x1c0)]('(跳过,稍后配置)'),'value':_0xdae039(0x1ca)},{'name':a38_0x31e2b6[_0xdae039(0x1d2)](_0xdae039(0x1c8)),'value':_0xdae039(0x1ba)}]});if(_0x10cee1===_0xdae039(0x1ca))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a39_0x681bf=a39_0x2197;(function(_0x262b87,_0xc15b30){const _0x29a57c=a39_0x2197,_0x430e5f=_0x262b87();while(!![]){try{const _0x462057=-parseInt(_0x29a57c(0xeb))/0x1+-parseInt(_0x29a57c(0xec))/0x2+-parseInt(_0x29a57c(0xea))/0x3+-parseInt(_0x29a57c(0xe8))/0x4+-parseInt(_0x29a57c(0xe6))/0x5*(-parseInt(_0x29a57c(0xe3))/0x6)+parseInt(_0x29a57c(0xe0))/0x7*(-parseInt(_0x29a57c(0xdd))/0x8)+parseInt(_0x29a57c(0xe9))/0x9;if(_0x462057===_0xc15b30)break;else _0x430e5f['push'](_0x430e5f['shift']());}catch(_0x5a8373){_0x430e5f['push'](_0x430e5f['shift']());}}}(a39_0x477f,0x2f449));function a39_0x2197(_0x17e4bd,_0x49b23e){_0x17e4bd=_0x17e4bd-0xdb;const _0x477ffd=a39_0x477f();let _0x219746=_0x477ffd[_0x17e4bd];return _0x219746;}export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)'};export const CODE_FLAG={'name':a39_0x681bf(0xe7),'type':'string','required':!![],'description':a39_0x681bf(0xef),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':'datasetcode','description':a39_0x681bf(0xef)};export const SQLCODE_FLAG={'name':a39_0x681bf(0xdb),'type':'string','required':!![],'description':a39_0x681bf(0xe5),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x681bf(0xdf)}};export const APPCODE_FLAG_OPTIONAL={'name':a39_0x681bf(0xe1),'type':a39_0x681bf(0xe4),'required':![],'description':a39_0x681bf(0xe2)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};function a39_0x477f(){const _0xa882ac=['SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','15491ijSYWf','appcode','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','161604DOXmGu','string','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','25iGagxv','code','598104WVWRsl','11762469FwNrlp','780564gREewc','258439lAaOMo','571040gsSQjN','number','dbtype','Dataset\x20code\x20(32-char\x20hex\x20UUID)','sqlcode','POSTGRESQL','1064abfeuW','MYSQL'];a39_0x477f=function(){return _0xa882ac;};return a39_0x477f();}export const DBLINK_ID_FLAG={'name':'id','type':a39_0x681bf(0xed),'required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'};export const DB_TYPE_FLAG={'name':a39_0x681bf(0xee),'type':a39_0x681bf(0xe4),'required':!![],'description':'Database\x20product\x20type','enum':[a39_0x681bf(0xde),a39_0x681bf(0xdc)]};
1
+ const a39_0xd9cdf8=a39_0x153d;function a39_0x5ab3(){const _0x48e6c0=['246944vJWePE','1195896zwskVF','datasetcode','MYSQL','string','7PAiXgi','sqlcode','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','147206GbnKeL','4MZBCwT','54ScWoLY','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','8142800GugnUL','Dataset\x20code\x20(32-char\x20hex\x20UUID)','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','2260722WaEjtP','196048soLjSG','473345DKPYNk','code','appcode'];a39_0x5ab3=function(){return _0x48e6c0;};return a39_0x5ab3();}(function(_0x8f1479,_0x18277a){const _0x3c211f=a39_0x153d,_0x2e9cde=_0x8f1479();while(!![]){try{const _0x5f353f=parseInt(_0x3c211f(0xfa))/0x1+parseInt(_0x3c211f(0xee))/0x2+parseInt(_0x3c211f(0xfb))/0x3+parseInt(_0x3c211f(0xef))/0x4*(parseInt(_0x3c211f(0xf7))/0x5)+parseInt(_0x3c211f(0xf5))/0x6*(parseInt(_0x3c211f(0xff))/0x7)+parseInt(_0x3c211f(0xf6))/0x8*(-parseInt(_0x3c211f(0xf0))/0x9)+-parseInt(_0x3c211f(0xf2))/0xa;if(_0x5f353f===_0x18277a)break;else _0x2e9cde['push'](_0x2e9cde['shift']());}catch(_0x2ffddb){_0x2e9cde['push'](_0x2e9cde['shift']());}}}(a39_0x5ab3,0x37fc7));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0xd9cdf8(0xf4)};export const CODE_FLAG={'name':a39_0xd9cdf8(0xf8),'type':a39_0xd9cdf8(0xfe),'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_0xd9cdf8(0xfc),'description':a39_0xd9cdf8(0xf3)};function a39_0x153d(_0x51862b,_0x33858e){_0x51862b=_0x51862b-0xed;const _0x5ab30d=a39_0x5ab3();let _0x153d89=_0x5ab30d[_0x51862b];return _0x153d89;}export const SQLCODE_FLAG={'name':a39_0xd9cdf8(0x100),'type':a39_0xd9cdf8(0xfe),'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_0xd9cdf8(0xf9),'type':a39_0xd9cdf8(0xfe),'required':![],'description':a39_0xd9cdf8(0xed)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':a39_0xd9cdf8(0xf1)};export const DB_TYPE_FLAG={'name':'dbtype','type':a39_0xd9cdf8(0xfe),'required':!![],'description':'Database\x20product\x20type','enum':[a39_0xd9cdf8(0xfd),'POSTGRESQL']};
@@ -1 +1 @@
1
- function a40_0x4951(_0x2358fe,_0x1ea926){_0x2358fe=_0x2358fe-0x196;const _0x325a28=a40_0x325a();let _0x495178=_0x325a28[_0x2358fe];return _0x495178;}function a40_0x325a(){const _0x1edf71=['test','98tnocnj','60468nSXRnK','4866327LnTido','1100722uUrrih','65pNAatZ','App\x20Code\x20cannot\x20be\x20empty','95600UwZKsO','4896460BChFQx','trim','317346ecOBgn','10EqUtJn','1003774RvhIow'];a40_0x325a=function(){return _0x1edf71;};return a40_0x325a();}(function(_0x3e7411,_0x55d5dd){const _0x2bd5e4=a40_0x4951,_0x502f83=_0x3e7411();while(!![]){try{const _0x3f50db=parseInt(_0x2bd5e4(0x199))/0x1+-parseInt(_0x2bd5e4(0x19e))/0x2+-parseInt(_0x2bd5e4(0x197))/0x3+parseInt(_0x2bd5e4(0x1a2))/0x4+-parseInt(_0x2bd5e4(0x19f))/0x5*(parseInt(_0x2bd5e4(0x19c))/0x6)+-parseInt(_0x2bd5e4(0x19b))/0x7*(parseInt(_0x2bd5e4(0x1a1))/0x8)+-parseInt(_0x2bd5e4(0x19d))/0x9*(parseInt(_0x2bd5e4(0x198))/0xa);if(_0x3f50db===_0x55d5dd)break;else _0x502f83['push'](_0x502f83['shift']());}catch(_0x1fde23){_0x502f83['push'](_0x502f83['shift']());}}}(a40_0x325a,0xb2e39));export function validateAppcode(_0x344353){const _0xfdf663=a40_0x4951,_0x383955=_0x344353[_0xfdf663(0x196)]();if(!_0x383955)return{'valid':![],'message':_0xfdf663(0x1a0)};if(_0x383955['length']>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/[_0xfdf663(0x19a)](_0x383955))return{'valid':![],'message':'Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'};return{'valid':!![]};}
1
+ function a40_0x9589(_0x493d2d,_0x1593de){_0x493d2d=_0x493d2d-0x10a;const _0x47a6ea=a40_0x47a6();let _0x9589b9=_0x47a6ea[_0x493d2d];return _0x9589b9;}function a40_0x47a6(){const _0x38100f=['App\x20Code\x20cannot\x20exceed\x20100\x20characters','17621630KJFFTd','54gRnOwx','135465VidrtY','569204MAtYsZ','35pjPxRp','1648305cMnWvF','trim','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','336Rqditl','9qTDMbH','1581544pjAMOn','test','249168cxGHOa','App\x20Code\x20cannot\x20be\x20empty','34535853JszNXa'];a40_0x47a6=function(){return _0x38100f;};return a40_0x47a6();}(function(_0x5ad964,_0x5b600d){const _0x57f0e9=a40_0x9589,_0xa37c58=_0x5ad964();while(!![]){try{const _0x2dc29=-parseInt(_0x57f0e9(0x10f))/0x1+parseInt(_0x57f0e9(0x10d))/0x2+-parseInt(_0x57f0e9(0x10b))/0x3*(-parseInt(_0x57f0e9(0x116))/0x4)+-parseInt(_0x57f0e9(0x10c))/0x5*(-parseInt(_0x57f0e9(0x112))/0x6)+parseInt(_0x57f0e9(0x10e))/0x7*(parseInt(_0x57f0e9(0x114))/0x8)+-parseInt(_0x57f0e9(0x113))/0x9*(-parseInt(_0x57f0e9(0x10a))/0xa)+-parseInt(_0x57f0e9(0x118))/0xb;if(_0x2dc29===_0x5b600d)break;else _0xa37c58['push'](_0xa37c58['shift']());}catch(_0x225d5d){_0xa37c58['push'](_0xa37c58['shift']());}}}(a40_0x47a6,0xd8406));export function validateAppcode(_0x494a87){const _0x16f911=a40_0x9589,_0x3e1d18=_0x494a87[_0x16f911(0x110)]();if(!_0x3e1d18)return{'valid':![],'message':_0x16f911(0x117)};if(_0x3e1d18['length']>0x64)return{'valid':![],'message':_0x16f911(0x119)};if(!/^[A-Za-z0-9_-]+$/[_0x16f911(0x115)](_0x3e1d18))return{'valid':![],'message':_0x16f911(0x111)};return{'valid':!![]};}
@@ -1 +1 @@
1
- const a41_0x3bf009=a41_0x7d06;(function(_0xf1b7cb,_0x5be14a){const _0x1c3262=a41_0x7d06,_0xac68aa=_0xf1b7cb();while(!![]){try{const _0x1c91b5=parseInt(_0x1c3262(0x117))/0x1+-parseInt(_0x1c3262(0x120))/0x2+-parseInt(_0x1c3262(0x11c))/0x3+-parseInt(_0x1c3262(0x10e))/0x4+-parseInt(_0x1c3262(0x118))/0x5+-parseInt(_0x1c3262(0x114))/0x6+-parseInt(_0x1c3262(0x10f))/0x7*(-parseInt(_0x1c3262(0x113))/0x8);if(_0x1c91b5===_0x5be14a)break;else _0xac68aa['push'](_0xac68aa['shift']());}catch(_0x3e8934){_0xac68aa['push'](_0xac68aa['shift']());}}}(a41_0xcbf6,0xa16e5));import{CliErrors}from'../../errors.js';function a41_0xcbf6(){const _0xbe12dc=['config','key','24FGcJiQ','3047826OlTudy','Key\x20not\x20found:\x20','get','756952naMqjN','6036775PitfIl','app','Get\x20a\x20config\x20value\x20by\x20key','object','3921825fObpXV','validation','Missing\x20key.','\x20config\x20get\x20--key\x20<key>','1546342OGvVfV','appcode','string','2698572QwQErk','10207596qfDJyK','read'];a41_0xcbf6=function(){return _0xbe12dc;};return a41_0xcbf6();}import{readConfig}from'../../utils/config.js';function a41_0x7d06(_0x1307b5,_0x296281){_0x1307b5=_0x1307b5-0x10d;const _0xcbf635=a41_0xcbf6();let _0x7d06a0=_0xcbf635[_0x1307b5];return _0x7d06a0;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x57de17){const _0x4db856=a41_0x7d06,_0x4563b3=_0x57de17['str'](_0x4db856(0x112));if(!_0x4563b3)throw CliErrors['validation'](_0x4db856(0x11e),'Usage:\x20'+CLI_BIN_NAME+_0x4db856(0x11f));const _0x3a52f3=readConfig(),_0x30ccb6=_0x4563b3===_0x4db856(0x119)?_0x4db856(0x121):_0x4563b3,_0x8c47bf=_0x3a52f3[_0x30ccb6];if(_0x8c47bf===undefined)throw CliErrors[_0x4db856(0x11d)](_0x4db856(0x115)+_0x4563b3);return{'ok':!![],'data':typeof _0x8c47bf===_0x4db856(0x11b)?_0x8c47bf:{[_0x30ccb6]:_0x8c47bf},'message':typeof _0x8c47bf==='object'?undefined:String(_0x8c47bf)};}export const configGetDefinition={'service':a41_0x3bf009(0x111),'command':a41_0x3bf009(0x116),'description':a41_0x3bf009(0x11a),'risk':a41_0x3bf009(0x110),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x3bf009(0x112),'type':a41_0x3bf009(0x10d),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a41_0x485e05=a41_0x12ab;function a41_0x1988(){const _0x9602b0=['324122kWBvyX','validation','Missing\x20key.','375170xEDYPK','key','Key\x20not\x20found:\x20','430008yeeaRe','1499868wcJsmw','object','string','597dJUSML','str','7hFtKfB','12cBqjJT','2690856QqrPWs','get','config','1854FwmEhv','823865jJfxOP'];a41_0x1988=function(){return _0x9602b0;};return a41_0x1988();}(function(_0x27230b,_0x39d621){const _0x560cf0=a41_0x12ab,_0x447362=_0x27230b();while(!![]){try{const _0x56eec7=parseInt(_0x560cf0(0x78))/0x1+-parseInt(_0x560cf0(0x76))/0x2*(parseInt(_0x560cf0(0x6f))/0x3)+parseInt(_0x560cf0(0x72))/0x4*(-parseInt(_0x560cf0(0x77))/0x5)+parseInt(_0x560cf0(0x6c))/0x6*(parseInt(_0x560cf0(0x71))/0x7)+parseInt(_0x560cf0(0x6b))/0x8+parseInt(_0x560cf0(0x73))/0x9+parseInt(_0x560cf0(0x68))/0xa;if(_0x56eec7===_0x39d621)break;else _0x447362['push'](_0x447362['shift']());}catch(_0x468a51){_0x447362['push'](_0x447362['shift']());}}}(a41_0x1988,0x45b78));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';async function execute(_0x31e01f){const _0x9d793b=a41_0x12ab,_0x1b8c74=_0x31e01f[_0x9d793b(0x70)](_0x9d793b(0x69));if(!_0x1b8c74)throw CliErrors[_0x9d793b(0x66)](_0x9d793b(0x67),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x4fd071=readConfig(),_0x5dfdb2=_0x1b8c74==='app'?'appcode':_0x1b8c74,_0x339030=_0x4fd071[_0x5dfdb2];if(_0x339030===undefined)throw CliErrors[_0x9d793b(0x66)](_0x9d793b(0x6a)+_0x1b8c74);return{'ok':!![],'data':typeof _0x339030===_0x9d793b(0x6d)?_0x339030:{[_0x5dfdb2]:_0x339030},'message':typeof _0x339030===_0x9d793b(0x6d)?undefined:String(_0x339030)};}function a41_0x12ab(_0x2b0cd4,_0x4b228a){_0x2b0cd4=_0x2b0cd4-0x66;const _0x1988cf=a41_0x1988();let _0x12abf7=_0x1988cf[_0x2b0cd4];return _0x12abf7;}export const configGetDefinition={'service':a41_0x485e05(0x75),'command':a41_0x485e05(0x74),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x485e05(0x69),'type':a41_0x485e05(0x6e),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x14217d,_0x4568be){const _0x58381d=a42_0x24f2,_0x310874=_0x14217d();while(!![]){try{const _0x321ca8=-parseInt(_0x58381d(0x1e0))/0x1*(parseInt(_0x58381d(0x1db))/0x2)+-parseInt(_0x58381d(0x1e1))/0x3*(-parseInt(_0x58381d(0x1d7))/0x4)+-parseInt(_0x58381d(0x1dc))/0x5+parseInt(_0x58381d(0x1d8))/0x6*(-parseInt(_0x58381d(0x1d9))/0x7)+-parseInt(_0x58381d(0x1e2))/0x8*(-parseInt(_0x58381d(0x1de))/0x9)+-parseInt(_0x58381d(0x1da))/0xa*(-parseInt(_0x58381d(0x1df))/0xb)+parseInt(_0x58381d(0x1d6))/0xc*(parseInt(_0x58381d(0x1dd))/0xd);if(_0x321ca8===_0x4568be)break;else _0x310874['push'](_0x310874['shift']());}catch(_0x1e3724){_0x310874['push'](_0x310874['shift']());}}}(a42_0x54ff,0xa5267));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a42_0x24f2(_0x48bc60,_0x392e1f){_0x48bc60=_0x48bc60-0x1d6;const _0x54ff3d=a42_0x54ff();let _0x24f277=_0x54ff3d[_0x48bc60];return _0x24f277;}function a42_0x54ff(){const _0x4bf393=['31269Bfdhqi','7395230tmfXar','22JYobwR','6166775VjOunO','689Qqmuut','251946WHiDVh','11TeONkE','95047pDvRra','268419sWMQcO','40WWOBtZ','748104jxnZsB','4oGGYgN','1770QzYVsI'];a42_0x54ff=function(){return _0x4bf393;};return a42_0x54ff();}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x378d72,_0x3afe3b){const _0x42afdd=a42_0x5ca6,_0x179c1b=_0x378d72();while(!![]){try{const _0x4fd087=parseInt(_0x42afdd(0xae))/0x1+parseInt(_0x42afdd(0xac))/0x2+parseInt(_0x42afdd(0xaa))/0x3+-parseInt(_0x42afdd(0xab))/0x4+-parseInt(_0x42afdd(0xb0))/0x5+-parseInt(_0x42afdd(0xad))/0x6+parseInt(_0x42afdd(0xaf))/0x7;if(_0x4fd087===_0x3afe3b)break;else _0x179c1b['push'](_0x179c1b['shift']());}catch(_0x4d66b1){_0x179c1b['push'](_0x179c1b['shift']());}}}(a42_0x18ec,0x63d50));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a42_0x5ca6(_0x119db3,_0x30c40d){_0x119db3=_0x119db3-0xaa;const _0x18eceb=a42_0x18ec();let _0x5ca650=_0x18eceb[_0x119db3];return _0x5ca650;}import{configSetDefinition}from'../../commands/config/set.js';function a42_0x18ec(){const _0x17adda=['1933155HZpanp','1730871lEQUBR','2322008jhDHgz','105648SIwIDb','72780fVolJs','404244wYPTdh','2479050HmldCm'];a42_0x18ec=function(){return _0x17adda;};return a42_0x18ec();}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- const a43_0x373081=a43_0x53b7;(function(_0x4fdcfc,_0x203b70){const _0x25606b=a43_0x53b7,_0x461860=_0x4fdcfc();while(!![]){try{const _0x63ed64=-parseInt(_0x25606b(0x129))/0x1+parseInt(_0x25606b(0x128))/0x2*(-parseInt(_0x25606b(0x124))/0x3)+parseInt(_0x25606b(0x12d))/0x4*(-parseInt(_0x25606b(0x126))/0x5)+-parseInt(_0x25606b(0x125))/0x6*(parseInt(_0x25606b(0x122))/0x7)+-parseInt(_0x25606b(0x12b))/0x8+-parseInt(_0x25606b(0x123))/0x9+parseInt(_0x25606b(0x131))/0xa*(parseInt(_0x25606b(0x12e))/0xb);if(_0x63ed64===_0x203b70)break;else _0x461860['push'](_0x461860['shift']());}catch(_0x4b2abb){_0x461860['push'](_0x461860['shift']());}}}(a43_0x1139,0xed4df));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a43_0x1139(){const _0x1a33a7=['1572946Orpfkp','587846OmYADi','global','6940240GUapAH','read','4ttpkFm','33EnsrLb','list','config','18371330vfhMGZ','List\x20all\x20config\x20values','70cEcpGY','11328318wclnXx','3qyUoNr','317466lTmGin','2548695CvMTuf','boolean'];a43_0x1139=function(){return _0x1a33a7;};return a43_0x1139();}function a43_0x53b7(_0x19bab1,_0x5828eb){_0x19bab1=_0x19bab1-0x122;const _0x1139b8=a43_0x1139();let _0x53b7a4=_0x1139b8[_0x19bab1];return _0x53b7a4;}async function execute(_0x13ce7f){const _0x36ed05=a43_0x53b7,_0x6111da=_0x13ce7f['bool'](_0x36ed05(0x12a))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x6111da};}export const configListDefinition={'service':a43_0x373081(0x130),'command':a43_0x373081(0x12f),'description':a43_0x373081(0x132),'risk':a43_0x373081(0x12c),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x373081(0x12a),'type':a43_0x373081(0x127),'description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
1
+ const a43_0x412eb4=a43_0x3c38;(function(_0x4a9773,_0xed1682){const _0x37c0b4=a43_0x3c38,_0x297bc5=_0x4a9773();while(!![]){try{const _0x210848=parseInt(_0x37c0b4(0x1d5))/0x1*(-parseInt(_0x37c0b4(0x1d4))/0x2)+-parseInt(_0x37c0b4(0x1ca))/0x3+-parseInt(_0x37c0b4(0x1ce))/0x4+parseInt(_0x37c0b4(0x1d0))/0x5*(parseInt(_0x37c0b4(0x1cd))/0x6)+parseInt(_0x37c0b4(0x1c7))/0x7*(-parseInt(_0x37c0b4(0x1d3))/0x8)+parseInt(_0x37c0b4(0x1cb))/0x9*(-parseInt(_0x37c0b4(0x1c9))/0xa)+parseInt(_0x37c0b4(0x1d8))/0xb*(parseInt(_0x37c0b4(0x1d1))/0xc);if(_0x210848===_0xed1682)break;else _0x297bc5['push'](_0x297bc5['shift']());}catch(_0x4d1903){_0x297bc5['push'](_0x297bc5['shift']());}}}(a43_0x2a62,0xba21d));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a43_0x3c38(_0x55df42,_0x675a99){_0x55df42=_0x55df42-0x1c7;const _0x2a6252=a43_0x2a62();let _0x3c385e=_0x2a6252[_0x55df42];return _0x3c385e;}async function execute(_0x5487ba){const _0x48a8f2=a43_0x3c38,_0xc86105=_0x5487ba[_0x48a8f2(0x1d6)](_0x48a8f2(0x1cc))?readScopedConfig(_0x48a8f2(0x1cc)):readConfig();return{'ok':!![],'data':_0xc86105};}export const configListDefinition={'service':a43_0x412eb4(0x1d2),'command':a43_0x412eb4(0x1d7),'description':'List\x20all\x20config\x20values','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x412eb4(0x1cc),'type':a43_0x412eb4(0x1c8),'description':a43_0x412eb4(0x1cf),'default':![]}],'execute':execute};function a43_0x2a62(){const _0x497d43=['1247732xGeWjM','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','171335mVcdrm','24ofjfoS','config','8SWJGOo','694yHqODc','347BPGKPp','bool','list','14963883bBhRqO','4626111nZLqwV','boolean','2988330jGotyQ','2829594ecICdi','9NBrabB','global','66Wlpjzr'];a43_0x2a62=function(){return _0x497d43;};return a43_0x2a62();}
@@ -1 +1 @@
1
- const a44_0x2c1f91=a44_0xab6e;(function(_0x26e5e9,_0x42fec5){const _0x3a5daa=a44_0xab6e,_0x3b9fcb=_0x26e5e9();while(!![]){try{const _0x2f1b04=-parseInt(_0x3a5daa(0x1af))/0x1+parseInt(_0x3a5daa(0x1ba))/0x2+-parseInt(_0x3a5daa(0x1b2))/0x3*(parseInt(_0x3a5daa(0x193))/0x4)+-parseInt(_0x3a5daa(0x1a8))/0x5*(parseInt(_0x3a5daa(0x1a3))/0x6)+-parseInt(_0x3a5daa(0x1a2))/0x7*(parseInt(_0x3a5daa(0x1a7))/0x8)+parseInt(_0x3a5daa(0x1b3))/0x9*(parseInt(_0x3a5daa(0x1a5))/0xa)+parseInt(_0x3a5daa(0x1a1))/0xb*(parseInt(_0x3a5daa(0x1a6))/0xc);if(_0x2f1b04===_0x42fec5)break;else _0x3b9fcb['push'](_0x3b9fcb['shift']());}catch(_0x474ad7){_0x3b9fcb['push'](_0x3b9fcb['shift']());}}}(a44_0x5bab,0x6017a));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';function a44_0xab6e(_0x136faf,_0x2c4ae9){_0x136faf=_0x136faf-0x18c;const _0x5bab42=a44_0x5bab();let _0xab6eb8=_0x5bab42[_0x136faf];return _0xab6eb8;}async function execute(_0x21182e){const _0x1b294f=a44_0xab6e,_0x200e9c=_0x21182e[_0x1b294f(0x197)](_0x1b294f(0x1a9)),_0x26bd43=_0x21182e['str']('value');if(!_0x200e9c)throw CliErrors[_0x1b294f(0x1be)](_0x1b294f(0x1b8),_0x1b294f(0x1b7)+CLI_BIN_NAME+_0x1b294f(0x18f));if(_0x26bd43===undefined||_0x26bd43==='')throw CliErrors[_0x1b294f(0x1be)]('Missing\x20value.','Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x26bd43[_0x1b294f(0x192)]>0x1f4)throw CliErrors['validation'](_0x1b294f(0x191));if(!isTopLevelConfigKey(_0x200e9c))throw CliErrors[_0x1b294f(0x1be)]('Top-level\x20key\x20\x22'+_0x200e9c+_0x1b294f(0x19f),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x200e9c===_0x1b294f(0x1a4))throw CliErrors['validation'](_0x1b294f(0x1b5));if(CONFIG_ENUM_VALUES[_0x200e9c]&&!CONFIG_ENUM_VALUES[_0x200e9c][_0x1b294f(0x1ad)](_0x26bd43))throw CliErrors[_0x1b294f(0x1be)](_0x1b294f(0x1b6)+_0x200e9c+_0x1b294f(0x199)+CONFIG_ENUM_VALUES[_0x200e9c][_0x1b294f(0x18e)](',\x20'));if(_0x200e9c==='locale'&&!normalizeLocale(_0x26bd43))throw CliErrors[_0x1b294f(0x1be)](_0x1b294f(0x1b4),_0x1b294f(0x19d));const _0x1dcae5={'global':_0x21182e[_0x1b294f(0x1bc)](_0x1b294f(0x198))},_0x4740e4=resolveWriteScope(_0x1dcae5),_0x5f35e0=readScopedConfig(_0x4740e4);let _0x32d64e=_0x200e9c,_0x43cbde=_0x26bd43;_0x200e9c===_0x1b294f(0x1b1)&&(_0x32d64e='appcode',delete _0x5f35e0['app']);_0x200e9c===_0x1b294f(0x1ac)&&(_0x43cbde=normalizeLocale(_0x26bd43));if(_0x200e9c==='env'){_0x43cbde=normalizeEnv(_0x26bd43);if(!isProduction(_0x43cbde)&&!isDaily(_0x43cbde))throw CliErrors['validation'](_0x1b294f(0x190),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x200e9c===_0x1b294f(0x19b)){const _0x6738a7=_0x5f35e0[_0x1b294f(0x19e)]&&typeof _0x5f35e0[_0x1b294f(0x19e)]===_0x1b294f(0x1bd)?Object[_0x1b294f(0x1aa)](_0x5f35e0[_0x1b294f(0x19e)]):[];if(_0x6738a7[_0x1b294f(0x192)]>0x0)throw CliErrors['validation'](_0x1b294f(0x19c),'Use\x20`'+CLI_BIN_NAME+_0x1b294f(0x1bb)+_0x43cbde+'`,\x20`'+CLI_BIN_NAME+_0x1b294f(0x1a0));const _0x52bb1b=buildCanonicalProjectConfig({..._0x5f35e0},{'appCodes':[_0x43cbde],'env':typeof _0x5f35e0[_0x1b294f(0x1b0)]===_0x1b294f(0x18d)?_0x5f35e0[_0x1b294f(0x1b0)]:undefined});writeScopedConfig(_0x52bb1b,_0x4740e4);const _0x2cbaf4=_0x4740e4===_0x1b294f(0x198)?_0x1b294f(0x1c0):_0x1b294f(0x196);return{'ok':!![],'message':'✓\x20'+_0x2cbaf4+_0x1b294f(0x18c)+_0x43cbde+_0x1b294f(0x1ab)};}_0x5f35e0[_0x32d64e]=_0x43cbde,writeScopedConfig(_0x5f35e0,_0x4740e4);const _0xab91c4=_0x4740e4===_0x1b294f(0x198)?_0x1b294f(0x1c0):_0x1b294f(0x196);return{'ok':!![],'message':'✓\x20'+_0xab91c4+'\x20'+_0x32d64e+'\x20set\x20to:\x20'+_0x43cbde};}export const configSetDefinition={'service':a44_0x2c1f91(0x1ae),'command':a44_0x2c1f91(0x1bf),'description':a44_0x2c1f91(0x194),'risk':a44_0x2c1f91(0x1b9),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a44_0x2c1f91(0x18d),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':a44_0x2c1f91(0x18d),'description':a44_0x2c1f91(0x19a),'required':!![]},{'name':'global','type':'boolean','description':a44_0x2c1f91(0x195),'default':![]}],'execute':execute};function a44_0x5bab(){const _0x32a1ff=['4aPWtUj','Set\x20a\x20config\x20value','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Project','str','global','\x22.\x20Allowed:\x20','Config\x20value','appcode','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','apps','\x22\x20is\x20not\x20settable.','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','16357627srVLtG','35tUPYds','138zIXnAc','riskLevel','370SsBQjR','12QUqiVH','1180792yPdtfT','136855DmrGep','key','keys','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','locale','includes','config','238842lwADWV','env','app','796413tLPFXC','148401GmQCTl','Invalid\x20locale\x20value.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Invalid\x20value\x20for\x20\x22','Usage:\x20','Missing\x20key.','write','336570SlfFyy','\x20app\x20add\x20<name>\x20--appcode\x20','bool','object','validation','set','Global','\x20appcode\x20set\x20to:\x20','string','join','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','length'];a44_0x5bab=function(){return _0x32a1ff;};return a44_0x5bab();}
1
+ const a44_0x5ef216=a44_0x3af7;function a44_0x41de(){const _0x43cb7f=['validation','\x20set\x20to:\x20','Usage:\x20','join','\x20app\x20add\x20<name>\x20--appcode\x20','1458828SHsYAu','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','4395856lJLnqM','Settable\x20top-level\x20keys:\x20','str','Missing\x20value.','74570MjDozr','includes','Set\x20a\x20config\x20value','Missing\x20key.','Global','string','\x20appcode\x20set\x20to:\x20','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Config\x20value','key','\x22.\x20Allowed:\x20','value','\x22\x20is\x20not\x20settable.','251868FwdJKU','apps','set','14148HGhCsR','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','2490732GQrmQu','Invalid\x20locale\x20value.','keys','locale','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','Top-level\x20key\x20\x22','appcode','object','app','env','config','length','Invalid\x20value\x20for\x20\x22','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','180ihzSAX','write','`,\x20`','Project','1913720yyVnsy','global','boolean','3cLUZst','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)'];a44_0x41de=function(){return _0x43cb7f;};return a44_0x41de();}(function(_0x1e8b38,_0x44aa3e){const _0x20ba36=a44_0x3af7,_0x2a7758=_0x1e8b38();while(!![]){try{const _0x443084=-parseInt(_0x20ba36(0xc6))/0x1+-parseInt(_0x20ba36(0xb9))/0x2*(parseInt(_0x20ba36(0xe0))/0x3)+parseInt(_0x20ba36(0xb5))/0x4+parseInt(_0x20ba36(0xd9))/0x5*(parseInt(_0x20ba36(0xc9))/0x6)+parseInt(_0x20ba36(0xe7))/0x7+-parseInt(_0x20ba36(0xdd))/0x8+-parseInt(_0x20ba36(0xcb))/0x9;if(_0x443084===_0x44aa3e)break;else _0x2a7758['push'](_0x2a7758['shift']());}catch(_0x2d1ce1){_0x2a7758['push'](_0x2a7758['shift']());}}}(a44_0x41de,0x8f584));function a44_0x3af7(_0x41794b,_0x3a98a8){_0x41794b=_0x41794b-0xb4;const _0x41de83=a44_0x41de();let _0x3af79d=_0x41de83[_0x41794b];return _0x3af79d;}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(_0x49a6bc){const _0x57900a=a44_0x3af7,_0x355ea4=_0x49a6bc[_0x57900a(0xb7)](_0x57900a(0xc2)),_0x4f79b6=_0x49a6bc[_0x57900a(0xb7)](_0x57900a(0xc4));if(!_0x355ea4)throw CliErrors[_0x57900a(0xe2)](_0x57900a(0xbc),_0x57900a(0xe4)+CLI_BIN_NAME+_0x57900a(0xb4));if(_0x4f79b6===undefined||_0x4f79b6==='')throw CliErrors['validation'](_0x57900a(0xb8),'Usage:\x20'+CLI_BIN_NAME+_0x57900a(0xb4));if(_0x4f79b6[_0x57900a(0xd6)]>0x1f4)throw CliErrors[_0x57900a(0xe2)](_0x57900a(0xc0));if(!isTopLevelConfigKey(_0x355ea4))throw CliErrors[_0x57900a(0xe2)](_0x57900a(0xd0)+_0x355ea4+_0x57900a(0xc5),_0x57900a(0xb6)+getTopLevelConfigKeySummary());if(_0x355ea4==='riskLevel')throw CliErrors[_0x57900a(0xe2)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(CONFIG_ENUM_VALUES[_0x355ea4]&&!CONFIG_ENUM_VALUES[_0x355ea4][_0x57900a(0xba)](_0x4f79b6))throw CliErrors[_0x57900a(0xe2)](_0x57900a(0xd7)+_0x355ea4+_0x57900a(0xc3)+CONFIG_ENUM_VALUES[_0x355ea4][_0x57900a(0xe5)](',\x20'));if(_0x355ea4===_0x57900a(0xce)&&!normalizeLocale(_0x4f79b6))throw CliErrors['validation'](_0x57900a(0xcc),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x3e1e95={'global':_0x49a6bc['bool'](_0x57900a(0xde))},_0x2aaa6d=resolveWriteScope(_0x3e1e95),_0xac369c=readScopedConfig(_0x2aaa6d);let _0x471d04=_0x355ea4,_0x49835c=_0x4f79b6;_0x355ea4===_0x57900a(0xd3)&&(_0x471d04=_0x57900a(0xd1),delete _0xac369c[_0x57900a(0xd3)]);_0x355ea4===_0x57900a(0xce)&&(_0x49835c=normalizeLocale(_0x4f79b6));if(_0x355ea4===_0x57900a(0xd4)){_0x49835c=normalizeEnv(_0x4f79b6);if(!isProduction(_0x49835c)&&!isDaily(_0x49835c))throw CliErrors[_0x57900a(0xe2)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x355ea4===_0x57900a(0xd1)){const _0x32a7e5=_0xac369c['apps']&&typeof _0xac369c['apps']===_0x57900a(0xd2)?Object[_0x57900a(0xcd)](_0xac369c[_0x57900a(0xc7)]):[];if(_0x32a7e5[_0x57900a(0xd6)]>0x0)throw CliErrors[_0x57900a(0xe2)](_0x57900a(0xca),'Use\x20`'+CLI_BIN_NAME+_0x57900a(0xe6)+_0x49835c+_0x57900a(0xdb)+CLI_BIN_NAME+_0x57900a(0xcf));const _0x163ada=buildCanonicalProjectConfig({..._0xac369c},{'appCodes':[_0x49835c],'env':typeof _0xac369c[_0x57900a(0xd4)]===_0x57900a(0xbe)?_0xac369c['env']:undefined});writeScopedConfig(_0x163ada,_0x2aaa6d);const _0x458609=_0x2aaa6d===_0x57900a(0xde)?_0x57900a(0xbd):_0x57900a(0xdc);return{'ok':!![],'message':'✓\x20'+_0x458609+_0x57900a(0xbf)+_0x49835c+_0x57900a(0xd8)};}_0xac369c[_0x471d04]=_0x49835c,writeScopedConfig(_0xac369c,_0x2aaa6d);const _0x168623=_0x2aaa6d===_0x57900a(0xde)?'Global':_0x57900a(0xdc);return{'ok':!![],'message':'✓\x20'+_0x168623+'\x20'+_0x471d04+_0x57900a(0xe3)+_0x49835c};}export const configSetDefinition={'service':a44_0x5ef216(0xd5),'command':a44_0x5ef216(0xc8),'description':a44_0x5ef216(0xbb),'risk':a44_0x5ef216(0xda),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a44_0x5ef216(0xc2),'type':a44_0x5ef216(0xbe),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x5ef216(0xc4),'type':'string','description':a44_0x5ef216(0xc1),'required':!![]},{'name':a44_0x5ef216(0xde),'type':a44_0x5ef216(0xdf),'description':a44_0x5ef216(0xe1),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x3bc3ee,_0x3e8371){var _0x3222ab=a45_0x122d,_0x38d719=_0x3bc3ee();while(!![]){try{var _0x2c9312=parseInt(_0x3222ab(0x142))/0x1*(-parseInt(_0x3222ab(0x138))/0x2)+-parseInt(_0x3222ab(0x13d))/0x3*(-parseInt(_0x3222ab(0x13b))/0x4)+parseInt(_0x3222ab(0x137))/0x5+-parseInt(_0x3222ab(0x136))/0x6+-parseInt(_0x3222ab(0x13f))/0x7*(parseInt(_0x3222ab(0x13e))/0x8)+parseInt(_0x3222ab(0x13a))/0x9*(parseInt(_0x3222ab(0x135))/0xa)+parseInt(_0x3222ab(0x139))/0xb;if(_0x2c9312===_0x3e8371)break;else _0x38d719['push'](_0x38d719['shift']());}catch(_0x359e3a){_0x38d719['push'](_0x38d719['shift']());}}}(a45_0x5f49,0x1aef4));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};function a45_0x5f49(){var _0x1244b9=['29990djaEhW','1127796eVXETY','788690oCGKrY','676tFqFbc','1537756Viqulk','495AQXvvG','4408nimULI','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','60KWAHtH','784088YFvFfL','7ytFojn','project','global','261XxCKLz'];a45_0x5f49=function(){return _0x1244b9;};return a45_0x5f49();}export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};function a45_0x122d(_0x38a2b5,_0x4c565f){_0x38a2b5=_0x38a2b5-0x135;var _0x5f4945=a45_0x5f49();var _0x122dda=_0x5f4945[_0x38a2b5];return _0x122dda;}export function resolveWriteScope(_0x5aa580){var _0x3cbb25=a45_0x122d;if(_0x5aa580[_0x3cbb25(0x141)])return _0x3cbb25(0x141);if(!isInProject())throw CliErrors['validation']('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).',_0x3cbb25(0x13c)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x3cbb25(0x140);}export function readScopedConfig(_0x2a9124){return readConfigFile(resolveWriteConfigPath(_0x2a9124));}export function writeScopedConfig(_0x24a4e2,_0x111a07){writeConfigFile(resolveWriteConfigPath(_0x111a07),_0x24a4e2);}
1
+ (function(_0x474e1e,_0x39c70f){var _0x57a3d1=a45_0x4903,_0x20cdc=_0x474e1e();while(!![]){try{var _0x2ade79=-parseInt(_0x57a3d1(0xa5))/0x1+parseInt(_0x57a3d1(0xaa))/0x2*(-parseInt(_0x57a3d1(0xa0))/0x3)+-parseInt(_0x57a3d1(0xa2))/0x4+-parseInt(_0x57a3d1(0xa3))/0x5+parseInt(_0x57a3d1(0xa8))/0x6+parseInt(_0x57a3d1(0xa4))/0x7*(parseInt(_0x57a3d1(0xa7))/0x8)+parseInt(_0x57a3d1(0x9e))/0x9;if(_0x2ade79===_0x39c70f)break;else _0x20cdc['push'](_0x20cdc['shift']());}catch(_0x25ac89){_0x20cdc['push'](_0x20cdc['shift']());}}}(a45_0x2b14,0xaf66d));function a45_0x4903(_0xfb1c90,_0x5f15eb){_0xfb1c90=_0xfb1c90-0x9e;var _0x2b14de=a45_0x2b14();var _0x490305=_0x2b14de[_0xfb1c90];return _0x490305;}function a45_0x2b14(){var _0x40ca67=['466558HYyCch','\x20init`\x20first.','8DUAACa','3361332bRmdOM','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','222wHyhjo','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','validation','19910547dxHuBq','global','21843AnOjQm','project','3256004GUTWvO','4051505lUglID','5914937LufhEi'];a45_0x2b14=function(){return _0x40ca67;};return a45_0x2b14();}import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x1f6eef){var _0x2fb9bb=a45_0x4903;if(_0x1f6eef['global'])return _0x2fb9bb(0x9f);if(!isInProject())throw CliErrors[_0x2fb9bb(0xac)](_0x2fb9bb(0xab),_0x2fb9bb(0xa9)+CLI_BIN_NAME+_0x2fb9bb(0xa6));return _0x2fb9bb(0xa1);}export function readScopedConfig(_0x4dc1a9){return readConfigFile(resolveWriteConfigPath(_0x4dc1a9));}export function writeScopedConfig(_0x25a4ee,_0xc3e10c){writeConfigFile(resolveWriteConfigPath(_0xc3e10c),_0x25a4ee);}
@@ -1 +1 @@
1
- const a46_0x54be48=a46_0x41a9;(function(_0x104029,_0x5dda9b){const _0x44d4f0=a46_0x41a9,_0x36805c=_0x104029();while(!![]){try{const _0x3a5a48=parseInt(_0x44d4f0(0x141))/0x1+parseInt(_0x44d4f0(0x14a))/0x2*(-parseInt(_0x44d4f0(0x14c))/0x3)+-parseInt(_0x44d4f0(0x145))/0x4*(parseInt(_0x44d4f0(0x14b))/0x5)+-parseInt(_0x44d4f0(0x13e))/0x6*(parseInt(_0x44d4f0(0x13c))/0x7)+parseInt(_0x44d4f0(0x146))/0x8*(-parseInt(_0x44d4f0(0x150))/0x9)+-parseInt(_0x44d4f0(0x143))/0xa+parseInt(_0x44d4f0(0x142))/0xb*(parseInt(_0x44d4f0(0x14d))/0xc);if(_0x3a5a48===_0x5dda9b)break;else _0x36805c['push'](_0x36805c['shift']());}catch(_0x27fb8b){_0x36805c['push'](_0x36805c['shift']());}}}(a46_0x22a8,0xe538f));function a46_0x22a8(){const _0x4d7def=['join','5006979cvEcxF','4027905ezsfNF','Filter\x20dataset\x20records\x20with\x20query\x20conditions','6jdriek','\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\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','1343646GRUAgS','121cOxADb','18645120zaFVND','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','44OtGusy','8BfXKzI','filter','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','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','2218crNHZa','717245MIwUeD','1461QZwxMx','5137668qkDVaS','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page'];a46_0x22a8=function(){return _0x4d7def;};return a46_0x22a8();}function a46_0x41a9(_0x5d81e8,_0x27c2c7){_0x5d81e8=_0x5d81e8-0x13c;const _0x22a875=a46_0x22a8();let _0x41a96e=_0x22a875[_0x5d81e8];return _0x41a96e;}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a46_0x54be48(0x147),'operation':'filter','description':a46_0x54be48(0x13d),'paramsRequired':![],'paramsHint':a46_0x54be48(0x148),'helpExtra':['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a46_0x54be48(0x149),a46_0x54be48(0x13f),a46_0x54be48(0x140),a46_0x54be48(0x144),a46_0x54be48(0x14e)][a46_0x54be48(0x14f)]('\x0a')});
1
+ const a46_0x4db628=a46_0x3582;function a46_0x1bf3(){const _0x41ed48=['5746404AQqpkj','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','1123633jFlGEK','filter','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','803462Nbskap','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','9241925xaFVfd','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','9eNSXNR','11077384UwcJre','29649SBCJit','3623845SSXRFB','196vWPNJy','join','Filter\x20dataset\x20records\x20with\x20query\x20conditions','260KVgFFc','4dXFbjL'];a46_0x1bf3=function(){return _0x41ed48;};return a46_0x1bf3();}function a46_0x3582(_0x3bc490,_0x15bc09){_0x3bc490=_0x3bc490-0x158;const _0x1bf3d6=a46_0x1bf3();let _0x3582cb=_0x1bf3d6[_0x3bc490];return _0x3582cb;}(function(_0x597a5f,_0x132464){const _0x6fae78=a46_0x3582,_0x2afdb3=_0x597a5f();while(!![]){try{const _0x2ce326=parseInt(_0x6fae78(0x15c))/0x1+parseInt(_0x6fae78(0x167))/0x2*(-parseInt(_0x6fae78(0x165))/0x3)+-parseInt(_0x6fae78(0x159))/0x4*(-parseInt(_0x6fae78(0x166))/0x5)+-parseInt(_0x6fae78(0x15a))/0x6+parseInt(_0x6fae78(0x161))/0x7+-parseInt(_0x6fae78(0x164))/0x8*(-parseInt(_0x6fae78(0x163))/0x9)+-parseInt(_0x6fae78(0x158))/0xa*(parseInt(_0x6fae78(0x15f))/0xb);if(_0x2ce326===_0x132464)break;else _0x2afdb3['push'](_0x2afdb3['shift']());}catch(_0x20810f){_0x2afdb3['push'](_0x2afdb3['shift']());}}}(a46_0x1bf3,0xb1bb6));import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':'filter','operation':a46_0x4db628(0x15d),'description':a46_0x4db628(0x169),'paramsRequired':![],'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a46_0x4db628(0x162),a46_0x4db628(0x160),'\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\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]',a46_0x4db628(0x15e),a46_0x4db628(0x15b)][a46_0x4db628(0x168)]('\x0a')});
@@ -1 +1 @@
1
- function a47_0x13d4(_0x49ecad,_0x155ce9){_0x49ecad=_0x49ecad-0x196;const _0x13a37f=a47_0x13a3();let _0x13d438=_0x13a37f[_0x49ecad];return _0x13d438;}const a47_0x22e671=a47_0x13d4;(function(_0x89f671,_0x457bf4){const _0x32b3a4=a47_0x13d4,_0x4ef68b=_0x89f671();while(!![]){try{const _0x2d27ff=-parseInt(_0x32b3a4(0x19e))/0x1*(parseInt(_0x32b3a4(0x1a3))/0x2)+-parseInt(_0x32b3a4(0x198))/0x3*(parseInt(_0x32b3a4(0x1a1))/0x4)+parseInt(_0x32b3a4(0x19b))/0x5*(-parseInt(_0x32b3a4(0x1a0))/0x6)+-parseInt(_0x32b3a4(0x19d))/0x7+-parseInt(_0x32b3a4(0x19f))/0x8+-parseInt(_0x32b3a4(0x197))/0x9*(-parseInt(_0x32b3a4(0x1a4))/0xa)+parseInt(_0x32b3a4(0x19c))/0xb*(parseInt(_0x32b3a4(0x19a))/0xc);if(_0x2d27ff===_0x457bf4)break;else _0x4ef68b['push'](_0x4ef68b['shift']());}catch(_0x2c33a9){_0x4ef68b['push'](_0x4ef68b['shift']());}}}(a47_0x13a3,0x8756b));function a47_0x13a3(){const _0x3baaf0=['860609PRDWSL','6050752JRqwHI','66XNtlVR','472880iCqRUx','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','2klbnSB','10aOywpS','Get\x20a\x20single\x20record\x20by\x20ID','5411259jPGjKo','27NaFUcR','getOne','296892wuGmNv','237715WdpheO','1782zexrOt','5957280Sawlcw'];a47_0x13a3=function(){return _0x3baaf0;};return a47_0x13a3();}import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a47_0x22e671(0x199),'operation':a47_0x22e671(0x199),'description':a47_0x22e671(0x196),'paramsRequired':!![],'paramsHint':a47_0x22e671(0x1a2)});
1
+ const a47_0x3668a2=a47_0xf4a5;(function(_0x1968a7,_0x42abaf){const _0x1a2294=a47_0xf4a5,_0xbb830b=_0x1968a7();while(!![]){try{const _0x468bba=parseInt(_0x1a2294(0xd7))/0x1+-parseInt(_0x1a2294(0xcf))/0x2*(parseInt(_0x1a2294(0xd3))/0x3)+parseInt(_0x1a2294(0xd4))/0x4+-parseInt(_0x1a2294(0xce))/0x5*(parseInt(_0x1a2294(0xd6))/0x6)+-parseInt(_0x1a2294(0xd0))/0x7+parseInt(_0x1a2294(0xd5))/0x8+-parseInt(_0x1a2294(0xd1))/0x9;if(_0x468bba===_0x42abaf)break;else _0xbb830b['push'](_0xbb830b['shift']());}catch(_0x2b7ce6){_0xbb830b['push'](_0xbb830b['shift']());}}}(a47_0x3d26,0x5f908));function a47_0xf4a5(_0x5cdb1f,_0x3ba425){_0x5cdb1f=_0x5cdb1f-0xcd;const _0x3d2627=a47_0x3d26();let _0xf4a514=_0x3d2627[_0x5cdb1f];return _0xf4a514;}function a47_0x3d26(){const _0xa2bbf8=['38725zdkDhN','1586GkMwLG','2435923HlODlC','243324rToPSI','Get\x20a\x20single\x20record\x20by\x20ID','1050KrHpyl','1786764nBwUuz','3080224KzhzPe','438AqxkWq','777673xYuDaq','getOne'];a47_0x3d26=function(){return _0xa2bbf8;};return a47_0x3d26();}import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a47_0x3668a2(0xcd),'operation':a47_0x3668a2(0xcd),'description':a47_0x3668a2(0xd2),'paramsRequired':!![],'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'});
@@ -1 +1 @@
1
- function a48_0x52cf(){const _0x5a34ba=['2101834jAReiU','5tXQxMR','2919172icWgiF','13312EcVCQr','39358TbjhTo','63651Chatdu','2556672IoIguf','12640690ZuAJMB','5346wLIOOZ','49lgBclN'];a48_0x52cf=function(){return _0x5a34ba;};return a48_0x52cf();}(function(_0xd795c7,_0x415744){const _0x5c9f4b=a48_0x10af,_0x185695=_0xd795c7();while(!![]){try{const _0x14a21c=parseInt(_0x5c9f4b(0x7c))/0x1*(-parseInt(_0x5c9f4b(0x77))/0x2)+parseInt(_0x5c9f4b(0x78))/0x3+parseInt(_0x5c9f4b(0x7f))/0x4+-parseInt(_0x5c9f4b(0x7e))/0x5*(-parseInt(_0x5c9f4b(0x79))/0x6)+parseInt(_0x5c9f4b(0x7d))/0x7+parseInt(_0x5c9f4b(0x76))/0x8*(-parseInt(_0x5c9f4b(0x7b))/0x9)+parseInt(_0x5c9f4b(0x7a))/0xa;if(_0x14a21c===_0x415744)break;else _0x185695['push'](_0x185695['shift']());}catch(_0x23a2d8){_0x185695['push'](_0x185695['shift']());}}}(a48_0x52cf,0xc091e));import{dataFilter}from'../../commands/data/filter.js';function a48_0x10af(_0x3a2d07,_0x3209ef){_0x3a2d07=_0x3a2d07-0x76;const _0x52cfc5=a48_0x52cf();let _0x10afd6=_0x52cfc5[_0x3a2d07];return _0x10afd6;}import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
1
+ function a48_0x4e3b(){const _0x165497=['7280365nCxRuA','4131924qhITPo','2286900eaGEqo','8126816aKWnXx','195629qlgKdl','8040123wCUHbH','270FMibZQ','969944XOWobk','2WTFXMP'];a48_0x4e3b=function(){return _0x165497;};return a48_0x4e3b();}(function(_0x145c0b,_0x537492){const _0x456830=a48_0x3939,_0x3fccff=_0x145c0b();while(!![]){try{const _0x46b574=-parseInt(_0x456830(0x1ca))/0x1*(-parseInt(_0x456830(0x1c9))/0x2)+parseInt(_0x456830(0x1cd))/0x3+-parseInt(_0x456830(0x1cc))/0x4+parseInt(_0x456830(0x1cb))/0x5+-parseInt(_0x456830(0x1c8))/0x6*(parseInt(_0x456830(0x1c6))/0x7)+-parseInt(_0x456830(0x1ce))/0x8+parseInt(_0x456830(0x1c7))/0x9;if(_0x46b574===_0x537492)break;else _0x3fccff['push'](_0x3fccff['shift']());}catch(_0xe5411f){_0x3fccff['push'](_0x3fccff['shift']());}}}(a48_0x4e3b,0xbd430));function a48_0x3939(_0x4e9a90,_0x1f1d88){_0x4e9a90=_0x4e9a90-0x1c6;const _0x4e3b3c=a48_0x4e3b();let _0x3939f1=_0x4e3b3c[_0x4e9a90];return _0x3939f1;}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
@@ -1 +1 @@
1
- (function(_0xfb8b02,_0x3e44f7){const _0x182988=a49_0x3651,_0x35f369=_0xfb8b02();while(!![]){try{const _0x269923=parseInt(_0x182988(0xf9))/0x1+parseInt(_0x182988(0xfb))/0x2+parseInt(_0x182988(0xec))/0x3+parseInt(_0x182988(0x101))/0x4+-parseInt(_0x182988(0xf8))/0x5+parseInt(_0x182988(0xfd))/0x6+-parseInt(_0x182988(0xee))/0x7;if(_0x269923===_0x3e44f7)break;else _0x35f369['push'](_0x35f369['shift']());}catch(_0x3fa0d8){_0x35f369['push'](_0x35f369['shift']());}}}(a49_0x949a,0xa06a9));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function a49_0x949a(){const _0x197098=['1385528bDzepj','params','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','1741962wAmIey','validation','14727503xcxpCy','flagMissing','now','str','\x20completed\x20in\x20','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','getOne','paramsHint','data','data\x20','1585105QmOhBO','320819mdmDOo','code','1794272kOQOPB','string','5598144lfjajQ','command','operation','read'];a49_0x949a=function(){return _0x197098;};return a49_0x949a();}function a49_0x3651(_0x35c4e1,_0x32d0c5){_0x35c4e1=_0x35c4e1-0xea;const _0x949ac8=a49_0x949a();let _0x365197=_0x949ac8[_0x35c4e1];return _0x365197;}function assertGetOneId(_0xb6cd09){const _0x1c2109=a49_0x3651;if(!_0xb6cd09)throw CliErrors[_0x1c2109(0xef)](_0x1c2109(0xea),'Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.');const _0x571ade=_0xb6cd09['id'];if(_0x571ade===undefined||_0x571ade===null||_0x571ade==='')throw CliErrors[_0x1c2109(0xed)](_0x1c2109(0xf3),_0x1c2109(0xeb));}function parseCommandParams(_0x28df8f){return parseJsonParams(_0x28df8f)??{};}export function buildDataCommand(_0x26b23d){const _0x3b2bc5=a49_0x3651,_0x3dbca4='Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically';return{'service':_0x3b2bc5(0xf6),'command':_0x26b23d[_0x3b2bc5(0xfe)],'description':_0x26b23d['description'],'risk':_0x3b2bc5(0x100),'defaultOutputFormat':'compress','helpExtra':_0x26b23d['helpExtra'],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':_0x3b2bc5(0xfc),'description':_0x3dbca4},{'name':_0x3b2bc5(0xea),'type':'string','description':_0x26b23d[_0x3b2bc5(0xf5)]}],async 'validate'(_0x1fbbc8){const _0x141978=_0x3b2bc5,_0x5192da=_0x1fbbc8[_0x141978(0xf1)](_0x141978(0xea));if(_0x26b23d['paramsRequired']&&!_0x5192da)throw CliErrors['flagMissing']('params',_0x26b23d['paramsHint']);const _0x2346f3=parseJsonParams(_0x5192da);_0x26b23d[_0x141978(0xff)]===_0x141978(0xf4)&&assertGetOneId(_0x2346f3);},async 'execute'(_0x81d327){const _0x32cc3d=_0x3b2bc5,_0x33b4af=parseCommandParams(_0x81d327[_0x32cc3d(0xf1)](_0x32cc3d(0xea))),_0x21a316=Date[_0x32cc3d(0xf0)](),_0xba6c72=await executeDatasetDataOperation(_0x81d327['appCode'],_0x81d327['str'](_0x32cc3d(0xfa)),_0x26b23d['operation'],_0x33b4af),_0x4f2f72=Date[_0x32cc3d(0xf0)]()-_0x21a316;return{'ok':!![],'data':{'result':_0xba6c72,'elapsed':_0x4f2f72},'message':_0x32cc3d(0xf7)+_0x26b23d[_0x32cc3d(0xfe)]+_0x32cc3d(0xf2)+_0x4f2f72+'ms'};}};}
1
+ function a49_0x268e(){const _0x3cd606=['127945BZYdpm','params','8fNnEMl','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','423cBjoSx','code','now','command','284370xLkwtG','str','getOne','3002354yotNHw','data','flagMissing','paramsHint','65UOcPMK','description','12830xZPxit','paramsRequired','3OgfSLm','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','10561796LAdNFx','operation','helpExtra','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','string','13046275SDKAqC','1105688dkcaZd'];a49_0x268e=function(){return _0x3cd606;};return a49_0x268e();}(function(_0x2f852b,_0x3ae065){const _0x38ab09=a49_0x1e67,_0x36f30a=_0x2f852b();while(!![]){try{const _0x5c6421=-parseInt(_0x38ab09(0x137))/0x1+parseInt(_0x38ab09(0x142))/0x2*(-parseInt(_0x38ab09(0x12e))/0x3)+parseInt(_0x38ab09(0x136))/0x4+parseInt(_0x38ab09(0x12a))/0x5*(-parseInt(_0x38ab09(0x13f))/0x6)+-parseInt(_0x38ab09(0x130))/0x7*(-parseInt(_0x38ab09(0x139))/0x8)+parseInt(_0x38ab09(0x13b))/0x9*(parseInt(_0x38ab09(0x12c))/0xa)+parseInt(_0x38ab09(0x135))/0xb;if(_0x5c6421===_0x3ae065)break;else _0x36f30a['push'](_0x36f30a['shift']());}catch(_0x15fe52){_0x36f30a['push'](_0x36f30a['shift']());}}}(a49_0x268e,0xbff8f));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function a49_0x1e67(_0x5bd5b5,_0x2ef861){_0x5bd5b5=_0x5bd5b5-0x12a;const _0x268e56=a49_0x268e();let _0x1e67c9=_0x268e56[_0x5bd5b5];return _0x1e67c9;}function assertGetOneId(_0x3a3d7f){const _0x120060=a49_0x1e67;if(!_0x3a3d7f)throw CliErrors[_0x120060(0x144)](_0x120060(0x138),_0x120060(0x133));const _0x40358d=_0x3a3d7f['id'];if(_0x40358d===undefined||_0x40358d===null||_0x40358d==='')throw CliErrors['validation'](_0x120060(0x13a),_0x120060(0x12f));}function parseCommandParams(_0x4ddc44){return parseJsonParams(_0x4ddc44)??{};}export function buildDataCommand(_0x3408f9){const _0x1b7e53=a49_0x1e67,_0x44ada3='Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically';return{'service':_0x1b7e53(0x143),'command':_0x3408f9[_0x1b7e53(0x13e)],'description':_0x3408f9[_0x1b7e53(0x12b)],'risk':'read','defaultOutputFormat':'compress','helpExtra':_0x3408f9[_0x1b7e53(0x132)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':_0x1b7e53(0x134),'description':_0x44ada3},{'name':_0x1b7e53(0x138),'type':'string','description':_0x3408f9[_0x1b7e53(0x145)]}],async 'validate'(_0x2f698e){const _0x16b8cd=_0x1b7e53,_0x4f9fca=_0x2f698e['str'](_0x16b8cd(0x138));if(_0x3408f9[_0x16b8cd(0x12d)]&&!_0x4f9fca)throw CliErrors[_0x16b8cd(0x144)](_0x16b8cd(0x138),_0x3408f9[_0x16b8cd(0x145)]);const _0x49e671=parseJsonParams(_0x4f9fca);_0x3408f9[_0x16b8cd(0x131)]===_0x16b8cd(0x141)&&assertGetOneId(_0x49e671);},async 'execute'(_0x53d6d2){const _0x1d5e60=_0x1b7e53,_0x498806=parseCommandParams(_0x53d6d2[_0x1d5e60(0x140)](_0x1d5e60(0x138))),_0x4666b7=Date[_0x1d5e60(0x13d)](),_0x3f20e1=await executeDatasetDataOperation(_0x53d6d2['appCode'],_0x53d6d2[_0x1d5e60(0x140)](_0x1d5e60(0x13c)),_0x3408f9[_0x1d5e60(0x131)],_0x498806),_0x56b7aa=Date[_0x1d5e60(0x13d)]()-_0x4666b7;return{'ok':!![],'data':{'result':_0x3f20e1,'elapsed':_0x56b7aa},'message':'data\x20'+_0x3408f9['command']+'\x20completed\x20in\x20'+_0x56b7aa+'ms'};}};}
@@ -1 +1 @@
1
- function a50_0xe1b5(){const _0x434d89=['请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','3164098FphBKs','dataset','join','length','63202trBYkW','source','validation','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','modelCode','SQL\x20schema\x20validation','unknown','\x20的\x20DB_TABLE\x20数据源上下文。','4293gQxfTa','\x20是\x20','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','7024gYYbDr','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','getOne','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','object','6194970EbDKFC','datasetName','lovrabet','10nvmXNC','6GtgiMs','datasetCode','trim','1922455WlQTqS','dbtable','toUpperCase','12VLyEMc','dbId','\x20类型,没有可用于\x20','99253GFzXLb','40bdJGlB','16680TuKgXI','tableName'];a50_0xe1b5=function(){return _0x434d89;};return a50_0xe1b5();}const a50_0x140133=a50_0x3f48;(function(_0x534a11,_0x311983){const _0x1d9be0=a50_0x3f48,_0x1c56be=_0x534a11();while(!![]){try{const _0x4a9728=-parseInt(_0x1d9be0(0x162))/0x1*(parseInt(_0x1d9be0(0x14f))/0x2)+parseInt(_0x1d9be0(0x148))/0x3*(parseInt(_0x1d9be0(0x147))/0x4)+parseInt(_0x1d9be0(0x166))/0x5+-parseInt(_0x1d9be0(0x163))/0x6*(-parseInt(_0x1d9be0(0x14b))/0x7)+parseInt(_0x1d9be0(0x15a))/0x8*(parseInt(_0x1d9be0(0x157))/0x9)+-parseInt(_0x1d9be0(0x15f))/0xa+-parseInt(_0x1d9be0(0x146))/0xb*(parseInt(_0x1d9be0(0x169))/0xc);if(_0x4a9728===_0x311983)break;else _0x1c56be['push'](_0x1c56be['shift']());}catch(_0x4a0008){_0x1c56be['push'](_0x1c56be['shift']());}}}(a50_0xe1b5,0x5972d));function a50_0x3f48(_0x3ee084,_0x259472){_0x3ee084=_0x3ee084-0x144;const _0xe1b55b=a50_0xe1b5();let _0x3f48fb=_0xe1b55b[_0x3ee084];return _0x3f48fb;}import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a50_0x140133(0x161),'filter':a50_0x140133(0x15d),'getOne':'lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress'};export const RUNTIME_DATA_ACCESS_SUMMARY=a50_0x140133(0x159);function valueToString(_0x3c31e1){const _0x703b9b=a50_0x140133;return _0x3c31e1==null?'':String(_0x3c31e1)[_0x703b9b(0x165)]();}function getDatasetCode(_0x47b24c){const _0x4cd70c=a50_0x140133;return valueToString(_0x47b24c['code']??_0x47b24c[_0x4cd70c(0x153)]??_0x47b24c[_0x4cd70c(0x14c)]?.[_0x4cd70c(0x164)]);}function getDatasetName(_0x12ff90){const _0x303804=a50_0x140133;return valueToString(_0x12ff90['name']??_0x12ff90[_0x303804(0x14c)]?.[_0x303804(0x160)])||_0x303804(0x155);}function getDatasetSource(_0x556a71){const _0x1dcd60=a50_0x140133;return valueToString(_0x556a71[_0x1dcd60(0x150)]??_0x556a71[_0x1dcd60(0x14c)]?.['sourceType'])[_0x1dcd60(0x168)]();}function getDbtableConfig(_0x57a6d8){const _0x342446=a50_0x140133,_0x31e418=_0x57a6d8['dbtableConfig']??_0x57a6d8[_0x342446(0x167)];return _0x31e418&&typeof _0x31e418===_0x342446(0x15e)?_0x31e418:{};}export function isDbTableBackedDataset(_0x173161){const _0x3d90ad=a50_0x140133,_0x1a5282=getDatasetSource(_0x173161);if(_0x1a5282==='METADATA')return![];const _0x122f04=getDbtableConfig(_0x173161),_0x1879f3=_0x122f04[_0x3d90ad(0x144)]??_0x122f04['id'],_0x519548=valueToString(_0x122f04[_0x3d90ad(0x149)]??_0x173161['tableName']??_0x173161[_0x3d90ad(0x14c)]?.['tableName']);return _0x1879f3!==undefined&&_0x1879f3!==null&&_0x519548[_0x3d90ad(0x14e)]>0x0;}export function filterDbTableBackedDatasets(_0x5d9466){return _0x5d9466['filter'](_0x10f6c0=>isDbTableBackedDataset(_0x10f6c0));}export function buildDbTableBackedRequirementMessage(_0x3267e3,_0x275c5e=a50_0x140133(0x154)){const _0x3d53e5=a50_0x140133,_0x28e2c1=getDatasetSource(_0x3267e3)||'UNKNOWN',_0x7e0d93=getDatasetName(_0x3267e3),_0x113e59=getDatasetCode(_0x3267e3),_0x415435=_0x113e59?'\x20('+_0x113e59+')':'';return['当前数据集\x20\x22'+_0x7e0d93+'\x22'+_0x415435+_0x3d53e5(0x158)+_0x28e2c1+_0x3d53e5(0x145)+_0x275c5e+_0x3d53e5(0x156),_0x3d53e5(0x15b),_0x3d53e5(0x14a),_0x3d53e5(0x152)+RUNTIME_DATA_ACCESS_COMMANDS['filter']+';'+RUNTIME_DATA_ACCESS_COMMANDS[_0x3d53e5(0x15c)]+'。'][_0x3d53e5(0x14d)]('\x20');}export function assertDatasetIsDbTableBacked(_0x6094a2,_0x33ec38){const _0x46200f=a50_0x140133;if(!isDbTableBackedDataset(_0x6094a2))throw CliErrors[_0x46200f(0x151)](buildDbTableBackedRequirementMessage(_0x6094a2,_0x33ec38));}
1
+ const a50_0x31adcf=a50_0x123e;(function(_0x229da6,_0x226cdc){const _0x4a30a9=a50_0x123e,_0x5a675e=_0x229da6();while(!![]){try{const _0x3996ac=-parseInt(_0x4a30a9(0x152))/0x1+parseInt(_0x4a30a9(0x146))/0x2*(-parseInt(_0x4a30a9(0x13b))/0x3)+-parseInt(_0x4a30a9(0x14d))/0x4*(-parseInt(_0x4a30a9(0x12f))/0x5)+-parseInt(_0x4a30a9(0x141))/0x6+parseInt(_0x4a30a9(0x14f))/0x7*(-parseInt(_0x4a30a9(0x151))/0x8)+-parseInt(_0x4a30a9(0x139))/0x9*(parseInt(_0x4a30a9(0x12c))/0xa)+parseInt(_0x4a30a9(0x12e))/0xb;if(_0x3996ac===_0x226cdc)break;else _0x5a675e['push'](_0x5a675e['shift']());}catch(_0x402079){_0x5a675e['push'](_0x5a675e['shift']());}}}(a50_0x514a,0xd2776));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a50_0x31adcf(0x14a),'filter':a50_0x31adcf(0x13c),'getOne':a50_0x31adcf(0x13d)};export const RUNTIME_DATA_ACCESS_SUMMARY=a50_0x31adcf(0x147);function valueToString(_0x52cc6e){const _0x292788=a50_0x31adcf;return _0x52cc6e==null?'':String(_0x52cc6e)[_0x292788(0x138)]();}function getDatasetCode(_0x38ed45){const _0x380404=a50_0x31adcf;return valueToString(_0x38ed45[_0x380404(0x134)]??_0x38ed45[_0x380404(0x149)]??_0x38ed45['dataset']?.[_0x380404(0x133)]);}function getDatasetName(_0xead891){const _0x37107e=a50_0x31adcf;return valueToString(_0xead891[_0x37107e(0x135)]??_0xead891[_0x37107e(0x140)]?.[_0x37107e(0x13e)])||_0x37107e(0x143);}function getDatasetSource(_0x1ac97c){const _0x2f6eae=a50_0x31adcf;return valueToString(_0x1ac97c[_0x2f6eae(0x142)]??_0x1ac97c['dataset']?.['sourceType'])[_0x2f6eae(0x153)]();}function a50_0x514a(){const _0x438e12=['903qCVRhA','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','datasetName','\x20是\x20','dataset','8751828uaMBLA','source','unknown','filter','length','8252fFAxfB','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','object','modelCode','lovrabet','validation','METADATA','754748LSueur','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','13839amcFsd','\x20类型,没有可用于\x20','128mToaXv','1425693lewJlc','toUpperCase','\x20的\x20DB_TABLE\x20数据源上下文。','490PDqMPw','当前数据集\x20\x22','71344405BKpznf','5FwztYb','原因:schema\x20introspection\x20与\x20custom\x20SQL\x20需要\x20source=DB_TABLE、dbtableConfig.dbId、dbtableConfig.tableName\x20与数据库连接上下文。','请先将该数据集升级/迁移为\x20DB_TABLE\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','tableName','datasetCode','code','name','UNKNOWN','SQL\x20schema\x20validation','trim','303903lMjbgA','dbtable'];a50_0x514a=function(){return _0x438e12;};return a50_0x514a();}function getDbtableConfig(_0x49b932){const _0x4cc21c=a50_0x31adcf,_0x563c52=_0x49b932['dbtableConfig']??_0x49b932[_0x4cc21c(0x13a)];return _0x563c52&&typeof _0x563c52===_0x4cc21c(0x148)?_0x563c52:{};}function a50_0x123e(_0x501b8f,_0x4901d6){_0x501b8f=_0x501b8f-0x12c;const _0x514a2b=a50_0x514a();let _0x123ec6=_0x514a2b[_0x501b8f];return _0x123ec6;}export function isDbTableBackedDataset(_0x5a0376){const _0x3c8e78=a50_0x31adcf,_0xec32f7=getDatasetSource(_0x5a0376);if(_0xec32f7===_0x3c8e78(0x14c))return![];const _0x22d2fd=getDbtableConfig(_0x5a0376),_0x1976fb=_0x22d2fd['dbId']??_0x22d2fd['id'],_0x115ac7=valueToString(_0x22d2fd[_0x3c8e78(0x132)]??_0x5a0376[_0x3c8e78(0x132)]??_0x5a0376['dataset']?.[_0x3c8e78(0x132)]);return _0x1976fb!==undefined&&_0x1976fb!==null&&_0x115ac7[_0x3c8e78(0x145)]>0x0;}export function filterDbTableBackedDatasets(_0x5dc800){const _0x18b70d=a50_0x31adcf;return _0x5dc800[_0x18b70d(0x144)](_0x42b59e=>isDbTableBackedDataset(_0x42b59e));}export function buildDbTableBackedRequirementMessage(_0x490cc9,_0x3056df=a50_0x31adcf(0x137)){const _0x2d04b2=a50_0x31adcf,_0x216ee6=getDatasetSource(_0x490cc9)||_0x2d04b2(0x136),_0x4f9980=getDatasetName(_0x490cc9),_0x43f655=getDatasetCode(_0x490cc9),_0x3ff613=_0x43f655?'\x20('+_0x43f655+')':'';return[_0x2d04b2(0x12d)+_0x4f9980+'\x22'+_0x3ff613+_0x2d04b2(0x13f)+_0x216ee6+_0x2d04b2(0x150)+_0x3056df+_0x2d04b2(0x154),_0x2d04b2(0x130),_0x2d04b2(0x131),_0x2d04b2(0x14e)+RUNTIME_DATA_ACCESS_COMMANDS[_0x2d04b2(0x144)]+';'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'。']['join']('\x20');}export function assertDatasetIsDbTableBacked(_0x3acab4,_0x3bce50){const _0x33a48e=a50_0x31adcf;if(!isDbTableBackedDataset(_0x3acab4))throw CliErrors[_0x33a48e(0x14b)](buildDbTableBackedRequirementMessage(_0x3acab4,_0x3bce50));}
@@ -1 +1 @@
1
- const a51_0x3c8080=a51_0x4da7;(function(_0x400544,_0x5e91b0){const _0x1af68f=a51_0x4da7,_0x108607=_0x400544();while(!![]){try{const _0x47b35e=parseInt(_0x1af68f(0x11a))/0x1+parseInt(_0x1af68f(0x120))/0x2+-parseInt(_0x1af68f(0x124))/0x3*(-parseInt(_0x1af68f(0x115))/0x4)+parseInt(_0x1af68f(0x111))/0x5*(-parseInt(_0x1af68f(0x127))/0x6)+-parseInt(_0x1af68f(0x116))/0x7*(-parseInt(_0x1af68f(0x113))/0x8)+parseInt(_0x1af68f(0x122))/0x9*(-parseInt(_0x1af68f(0x132))/0xa)+parseInt(_0x1af68f(0x109))/0xb*(parseInt(_0x1af68f(0x10c))/0xc);if(_0x47b35e===_0x5e91b0)break;else _0x108607['push'](_0x108607['shift']());}catch(_0x363a96){_0x108607['push'](_0x108607['shift']());}}}(a51_0xf600,0xa6846));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_0x3c8080(0x118),'description':'Dataset\x20id'},DBID_FLAG={'name':'dbid','type':a51_0x3c8080(0x118),'description':a51_0x3c8080(0x108)},CONFIRM_FLAG={'name':a51_0x3c8080(0x129),'type':a51_0x3c8080(0x112),'description':'Required\x20to\x20execute\x20dataset\x20deletion'},EXPECTED_COUNT_FLAG={'name':'expected-count','type':a51_0x3c8080(0x118),'description':a51_0x3c8080(0x107)};export const datasetDelete={'service':a51_0x3c8080(0x130),'command':'delete','description':a51_0x3c8080(0x125),'risk':'high-risk-write','flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x76728a){const _0x5e014c=a51_0x3c8080,_0x6814ec=_0x76728a[_0x5e014c(0x11b)]('id'),_0x461711=_0x76728a[_0x5e014c(0x126)]('code'),_0x690fab=_0x76728a['num'](_0x5e014c(0x105)),_0x55503a=[_0x6814ec>0x0,Boolean(_0x461711),_0x690fab>0x0][_0x5e014c(0x133)](Boolean);if(_0x55503a['length']===0x0)throw CliErrors['validation']('One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.');if(_0x55503a[_0x5e014c(0x10d)]>0x1)throw CliErrors[_0x5e014c(0x10e)](_0x5e014c(0x137));},async 'dryRun'(_0x564eda){const _0x17436a=a51_0x3c8080,_0x4808ac=await resolveTargets(_0x564eda);return{'method':_0x17436a(0x117),'url':'/smartapi/dataset/delete-dataset','body':{'appCode':_0x564eda[_0x17436a(0x12a)],'count':_0x4808ac[_0x17436a(0x10d)],'datasets':_0x4808ac},'description':_0x17436a(0x136)+_0x4808ac['length']+_0x17436a(0x104)};},async 'execute'(_0x4095a2){const _0x185e8b=a51_0x3c8080;if(!_0x4095a2[_0x185e8b(0x121)]('confirm'))throw CliErrors[_0x185e8b(0x10e)]('--confirm\x20is\x20required\x20to\x20delete\x20datasets.',_0x185e8b(0x114));const _0x5eee21=await resolveTargets(_0x4095a2),_0x206acb=[],_0x4d92e2=[];for(const _0x599c94 of _0x5eee21){try{await deleteDataset(_0x4095a2[_0x185e8b(0x12a)],_0x599c94['id']),_0x206acb[_0x185e8b(0x106)](_0x599c94);}catch(_0x337b78){_0x4d92e2[_0x185e8b(0x106)]({..._0x599c94,'error':_0x337b78 instanceof Error?_0x337b78[_0x185e8b(0x10f)]:String(_0x337b78)});}}if(_0x4d92e2[_0x185e8b(0x10d)]>0x0)return{'ok':![],'data':{'requested':_0x5eee21[_0x185e8b(0x10d)],'deletedCount':_0x206acb['length'],'failedCount':_0x4d92e2[_0x185e8b(0x10d)],'deleted':_0x206acb,'failed':_0x4d92e2},'message':_0x185e8b(0x10a)+_0x206acb[_0x185e8b(0x10d)]+'/'+_0x5eee21['length']+_0x185e8b(0x134)+_0x4d92e2[_0x185e8b(0x10d)]+_0x185e8b(0x10b)};return{'ok':!![],'data':{'requested':_0x5eee21[_0x185e8b(0x10d)],'deletedCount':_0x206acb['length'],'deleted':_0x206acb},'message':_0x185e8b(0x10a)+_0x206acb[_0x185e8b(0x10d)]+'\x20dataset(s)'};}};function a51_0x4da7(_0x13e9ed,_0x124e71){_0x13e9ed=_0x13e9ed-0x104;const _0xf6004d=a51_0xf600();let _0x4da785=_0xf6004d[_0x13e9ed];return _0x4da785;}function a51_0xf600(){const _0x31d0e9=['push','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','11ZiRhvn','Deleted\x20','\x20failed','10324104AWzLbY','length','validation','message','id=','130SAVcCg','boolean','520JZasLs','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','12AgZsMz','8449tGNzih','POST','number','dbid=','248779vecQmx','num','source','dbName','Matched\x20','tableName','253596XPZDRF','bool','990YaibVV','dbtableConfig','408612vKDdvH','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','str','2082eryOel','description','confirm','appCode','code','dbId','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','name','No\x20undeleted\x20dataset\x20found\x20for\x20','dataset','relationPages','93810ZWptLs','filter','\x20dataset(s);\x20','expected-count','Would\x20delete\x20','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','isArray','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','dbid'];a51_0xf600=function(){return _0x31d0e9;};return a51_0xf600();}async function resolveTargets(_0x3b4a80){const _0x589885=a51_0x3c8080,_0x23e6d8=_0x3b4a80[_0x589885(0x11b)]('id'),_0x44563f=_0x3b4a80[_0x589885(0x126)](_0x589885(0x12b)),_0x201b29=_0x3b4a80[_0x589885(0x11b)](_0x589885(0x105));let _0x4ed6f1;_0x44563f?(_0x4ed6f1=await listDatasets(_0x3b4a80[_0x589885(0x12a)],{'code':_0x44563f}),_0x4ed6f1=_0x4ed6f1[_0x589885(0x133)](_0x2cab86=>_0x2cab86[_0x589885(0x12b)]===_0x44563f)):(_0x4ed6f1=await listDatasets(_0x3b4a80[_0x589885(0x12a)]),_0x23e6d8>0x0&&(_0x4ed6f1=_0x4ed6f1[_0x589885(0x133)](_0xbb134f=>_0xbb134f['id']===_0x23e6d8)),_0x201b29>0x0&&(_0x4ed6f1=_0x4ed6f1[_0x589885(0x133)](_0xff651c=>_0xff651c[_0x589885(0x123)]?.['dbId']===_0x201b29)));const _0x15655f=_0x4ed6f1['map'](normalizeTarget);if(_0x15655f[_0x589885(0x10d)]===0x0){const _0x1937d7=_0x44563f||(_0x23e6d8>0x0?_0x589885(0x110)+_0x23e6d8:_0x589885(0x119)+_0x201b29);throw CliErrors[_0x589885(0x10e)](_0x589885(0x12f)+_0x1937d7+'.');}const _0x2a8d59=_0x3b4a80[_0x589885(0x11b)](_0x589885(0x135));if(_0x2a8d59>0x0&&_0x15655f[_0x589885(0x10d)]!==_0x2a8d59)throw CliErrors[_0x589885(0x10e)](_0x589885(0x11e)+_0x15655f['length']+_0x589885(0x12d)+_0x2a8d59+'.');return _0x15655f;}function normalizeTarget(_0x3cf5b5){const _0x3436c9=a51_0x3c8080,_0x2a12b2=_0x3cf5b5['dbtableConfig']??{};return{'id':_0x3cf5b5['id'],'code':_0x3cf5b5[_0x3436c9(0x12b)],'name':_0x3cf5b5[_0x3436c9(0x12e)],'description':_0x3cf5b5[_0x3436c9(0x128)],'source':_0x3cf5b5[_0x3436c9(0x11c)],'dbId':_0x2a12b2[_0x3436c9(0x12c)],'dbName':_0x2a12b2[_0x3436c9(0x11d)],'tableName':_0x2a12b2[_0x3436c9(0x11f)],'relatedPageCount':Array[_0x3436c9(0x138)](_0x3cf5b5[_0x3436c9(0x131)])?_0x3cf5b5[_0x3436c9(0x131)][_0x3436c9(0x10d)]:undefined};}
1
+ function a51_0x209d(){const _0x196ff2=['8poAxiG','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','str','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','\x20dataset(s)','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','No\x20undeleted\x20dataset\x20found\x20for\x20','2965EiiRoX','3217711pssfeb','push','delete','Would\x20delete\x20','number','high-risk-write','dataset','dbName','\x20failed','dbid','name','Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','Required\x20to\x20execute\x20dataset\x20deletion','relationPages','dbtableConfig','map','code','message','length','filter','source','id=','Deleted\x20','validation','293394PtaXMx','Dataset\x20id','appCode','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','confirm','expected-count','2950McPRVA','boolean','18231ThLduX','276069chFDgH','1467hEDjRl','1492IqAWfL','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','2672970DxNuSP','num'];a51_0x209d=function(){return _0x196ff2;};return a51_0x209d();}const a51_0x4b2740=a51_0x2e28;(function(_0x50acf0,_0x2e5ae0){const _0x2aed35=a51_0x2e28,_0x256019=_0x50acf0();while(!![]){try{const _0x30640c=parseInt(_0x2aed35(0x16d))/0x1+parseInt(_0x2aed35(0x193))/0x2+parseInt(_0x2aed35(0x19c))/0x3+-parseInt(_0x2aed35(0x16f))/0x4*(parseInt(_0x2aed35(0x17a))/0x5)+parseInt(_0x2aed35(0x171))/0x6+parseInt(_0x2aed35(0x17b))/0x7*(-parseInt(_0x2aed35(0x173))/0x8)+parseInt(_0x2aed35(0x16e))/0x9*(parseInt(_0x2aed35(0x19a))/0xa);if(_0x30640c===_0x2e5ae0)break;else _0x256019['push'](_0x256019['shift']());}catch(_0x216497){_0x256019['push'](_0x256019['shift']());}}}(a51_0x209d,0x3af99));function a51_0x2e28(_0x38eb06,_0x1f0727){_0x38eb06=_0x38eb06-0x16d;const _0x209dd1=a51_0x209d();let _0x2e28f7=_0x209dd1[_0x38eb06];return _0x2e28f7;}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_0x4b2740(0x17f),'description':a51_0x4b2740(0x194)},DBID_FLAG={'name':a51_0x4b2740(0x184),'type':a51_0x4b2740(0x17f),'description':a51_0x4b2740(0x178)},CONFIRM_FLAG={'name':a51_0x4b2740(0x198),'type':a51_0x4b2740(0x19b),'description':a51_0x4b2740(0x187)},EXPECTED_COUNT_FLAG={'name':'expected-count','type':a51_0x4b2740(0x17f),'description':a51_0x4b2740(0x170)};export const datasetDelete={'service':a51_0x4b2740(0x181),'command':a51_0x4b2740(0x17d),'description':a51_0x4b2740(0x186),'risk':a51_0x4b2740(0x180),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2e0b07){const _0x3de8b9=a51_0x4b2740,_0x2e971b=_0x2e0b07[_0x3de8b9(0x172)]('id'),_0x199ff0=_0x2e0b07['str']('code'),_0x4c0610=_0x2e0b07[_0x3de8b9(0x172)](_0x3de8b9(0x184)),_0x55f3e9=[_0x2e971b>0x0,Boolean(_0x199ff0),_0x4c0610>0x0][_0x3de8b9(0x18e)](Boolean);if(_0x55f3e9[_0x3de8b9(0x18d)]===0x0)throw CliErrors[_0x3de8b9(0x192)](_0x3de8b9(0x196));if(_0x55f3e9['length']>0x1)throw CliErrors[_0x3de8b9(0x192)](_0x3de8b9(0x176));},async 'dryRun'(_0x588304){const _0x3e7b81=a51_0x4b2740,_0x413623=await resolveTargets(_0x588304);return{'method':'POST','url':'/smartapi/dataset/delete-dataset','body':{'appCode':_0x588304['appCode'],'count':_0x413623[_0x3e7b81(0x18d)],'datasets':_0x413623},'description':_0x3e7b81(0x17e)+_0x413623[_0x3e7b81(0x18d)]+_0x3e7b81(0x197)};},async 'execute'(_0x22badd){const _0x1c3e43=a51_0x4b2740;if(!_0x22badd['bool']('confirm'))throw CliErrors[_0x1c3e43(0x192)]('--confirm\x20is\x20required\x20to\x20delete\x20datasets.',_0x1c3e43(0x174));const _0xaeaddd=await resolveTargets(_0x22badd),_0x5a4d4b=[],_0x42a419=[];for(const _0x497edd of _0xaeaddd){try{await deleteDataset(_0x22badd[_0x1c3e43(0x195)],_0x497edd['id']),_0x5a4d4b['push'](_0x497edd);}catch(_0x3632e5){_0x42a419[_0x1c3e43(0x17c)]({..._0x497edd,'error':_0x3632e5 instanceof Error?_0x3632e5[_0x1c3e43(0x18c)]:String(_0x3632e5)});}}if(_0x42a419[_0x1c3e43(0x18d)]>0x0)return{'ok':![],'data':{'requested':_0xaeaddd[_0x1c3e43(0x18d)],'deletedCount':_0x5a4d4b['length'],'failedCount':_0x42a419[_0x1c3e43(0x18d)],'deleted':_0x5a4d4b,'failed':_0x42a419},'message':_0x1c3e43(0x191)+_0x5a4d4b['length']+'/'+_0xaeaddd[_0x1c3e43(0x18d)]+'\x20dataset(s);\x20'+_0x42a419['length']+_0x1c3e43(0x183)};return{'ok':!![],'data':{'requested':_0xaeaddd['length'],'deletedCount':_0x5a4d4b[_0x1c3e43(0x18d)],'deleted':_0x5a4d4b},'message':_0x1c3e43(0x191)+_0x5a4d4b['length']+_0x1c3e43(0x177)};}};async function resolveTargets(_0xa24198){const _0x1d25e5=a51_0x4b2740,_0x1c7c3a=_0xa24198['num']('id'),_0x14771b=_0xa24198[_0x1d25e5(0x175)](_0x1d25e5(0x18b)),_0x327f69=_0xa24198[_0x1d25e5(0x172)]('dbid');let _0x558f06;_0x14771b?(_0x558f06=await listDatasets(_0xa24198[_0x1d25e5(0x195)],{'code':_0x14771b}),_0x558f06=_0x558f06['filter'](_0x1e3a15=>_0x1e3a15[_0x1d25e5(0x18b)]===_0x14771b)):(_0x558f06=await listDatasets(_0xa24198[_0x1d25e5(0x195)]),_0x1c7c3a>0x0&&(_0x558f06=_0x558f06[_0x1d25e5(0x18e)](_0x2d09dd=>_0x2d09dd['id']===_0x1c7c3a)),_0x327f69>0x0&&(_0x558f06=_0x558f06[_0x1d25e5(0x18e)](_0x470c57=>_0x470c57[_0x1d25e5(0x189)]?.['dbId']===_0x327f69)));const _0x550be5=_0x558f06[_0x1d25e5(0x18a)](normalizeTarget);if(_0x550be5[_0x1d25e5(0x18d)]===0x0){const _0x504436=_0x14771b||(_0x1c7c3a>0x0?_0x1d25e5(0x190)+_0x1c7c3a:'dbid='+_0x327f69);throw CliErrors['validation'](_0x1d25e5(0x179)+_0x504436+'.');}const _0x316c2a=_0xa24198[_0x1d25e5(0x172)](_0x1d25e5(0x199));if(_0x316c2a>0x0&&_0x550be5[_0x1d25e5(0x18d)]!==_0x316c2a)throw CliErrors[_0x1d25e5(0x192)]('Matched\x20'+_0x550be5['length']+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0x316c2a+'.');return _0x550be5;}function normalizeTarget(_0x54d8a8){const _0x2bc7a8=a51_0x4b2740,_0x40cfd7=_0x54d8a8['dbtableConfig']??{};return{'id':_0x54d8a8['id'],'code':_0x54d8a8[_0x2bc7a8(0x18b)],'name':_0x54d8a8[_0x2bc7a8(0x185)],'description':_0x54d8a8['description'],'source':_0x54d8a8[_0x2bc7a8(0x18f)],'dbId':_0x40cfd7['dbId'],'dbName':_0x40cfd7[_0x2bc7a8(0x182)],'tableName':_0x40cfd7['tableName'],'relatedPageCount':Array['isArray'](_0x54d8a8[_0x2bc7a8(0x188)])?_0x54d8a8[_0x2bc7a8(0x188)][_0x2bc7a8(0x18d)]:undefined};}