@lovrabet/rabetbase-cli 2.1.7-beta.7 → 2.1.7-beta.9

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 (196) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -1
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/index.js +1 -1
  54. package/lib/commands/dataset/link-create.js +1 -1
  55. package/lib/commands/dataset/link-delete.js +1 -1
  56. package/lib/commands/dataset/link-shared.js +1 -1
  57. package/lib/commands/dataset/link-update.js +1 -1
  58. package/lib/commands/dataset/links.js +1 -1
  59. package/lib/commands/dataset/list.js +1 -1
  60. package/lib/commands/dataset/operations.js +1 -1
  61. package/lib/commands/db/analyze-cancel.js +1 -1
  62. package/lib/commands/db/analyze-start.js +1 -1
  63. package/lib/commands/db/analyze-status.js +1 -1
  64. package/lib/commands/db/create.js +1 -1
  65. package/lib/commands/db/delete.js +1 -1
  66. package/lib/commands/db/detail.js +1 -1
  67. package/lib/commands/db/diff.js +1 -1
  68. package/lib/commands/db/index.js +1 -1
  69. package/lib/commands/db/list.js +1 -1
  70. package/lib/commands/db/shared.js +1 -1
  71. package/lib/commands/db/tables.js +1 -1
  72. package/lib/commands/db/test.js +1 -1
  73. package/lib/commands/db/update.js +1 -1
  74. package/lib/commands/doctor.js +1 -1
  75. package/lib/commands/init/index.js +1 -1
  76. package/lib/commands/issue/index.js +1 -1
  77. package/lib/commands/issue/report.js +1 -1
  78. package/lib/commands/logs/index.js +1 -1
  79. package/lib/commands/menu/index.js +1 -1
  80. package/lib/commands/menu/shared/compare-table.js +1 -1
  81. package/lib/commands/menu/shared/index.js +1 -1
  82. package/lib/commands/menu/shared/inquirer.js +1 -1
  83. package/lib/commands/menu/shared/local-pages.js +1 -1
  84. package/lib/commands/menu/shared/logic.js +1 -1
  85. package/lib/commands/menu/shared/service.js +1 -1
  86. package/lib/commands/menu/shared/sync-core.js +1 -1
  87. package/lib/commands/menu/shared/update-core.js +1 -1
  88. package/lib/commands/menu/shared/valid-url.js +1 -1
  89. package/lib/commands/menu/sync.js +1 -1
  90. package/lib/commands/menu/update.js +1 -1
  91. package/lib/commands/page/generate-start.js +1 -1
  92. package/lib/commands/page/generate-status.js +1 -1
  93. package/lib/commands/page/index.js +1 -1
  94. package/lib/commands/page/pull.js +1 -1
  95. package/lib/commands/page/push.js +1 -1
  96. package/lib/commands/page/shared.js +1 -1
  97. package/lib/commands/page/standard-page-status.js +1 -1
  98. package/lib/commands/page/sync.js +1 -1
  99. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  100. package/lib/commands/project/create/format-elapsed.js +1 -1
  101. package/lib/commands/project/create/main.js +1 -1
  102. package/lib/commands/project/create/non-interactive.js +1 -1
  103. package/lib/commands/project/create/project-template-path.js +1 -1
  104. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  105. package/lib/commands/project/create/use-format-code.js +1 -1
  106. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  107. package/lib/commands/project/index.js +1 -1
  108. package/lib/commands/project/init.js +1 -1
  109. package/lib/commands/project/upgrade.js +1 -1
  110. package/lib/commands/registry.js +1 -1
  111. package/lib/commands/run/index.js +1 -1
  112. package/lib/commands/schema.js +1 -1
  113. package/lib/commands/skill/index.js +1 -1
  114. package/lib/commands/sql/create.js +1 -1
  115. package/lib/commands/sql/delete.js +1 -1
  116. package/lib/commands/sql/detail.js +1 -1
  117. package/lib/commands/sql/exec.js +1 -1
  118. package/lib/commands/sql/index.js +1 -1
  119. package/lib/commands/sql/list.js +1 -1
  120. package/lib/commands/sql/pull.js +1 -1
  121. package/lib/commands/sql/push.js +1 -1
  122. package/lib/commands/sql/save.js +1 -1
  123. package/lib/commands/sql/shared.js +1 -1
  124. package/lib/commands/sql/status.js +1 -1
  125. package/lib/commands/sql/validate.js +1 -1
  126. package/lib/config/schema.js +1 -1
  127. package/lib/constant/cdn.js +1 -1
  128. package/lib/constant/cli.js +1 -1
  129. package/lib/constant/defaults.js +1 -1
  130. package/lib/constant/domain.js +1 -1
  131. package/lib/constant/env.js +1 -1
  132. package/lib/constant/output.js +1 -1
  133. package/lib/constant/paths.js +1 -1
  134. package/lib/constant/risk.js +1 -1
  135. package/lib/context.js +1 -1
  136. package/lib/core/alias-resolver.js +1 -1
  137. package/lib/core/api-client.js +1 -1
  138. package/lib/core/bff/config.js +1 -1
  139. package/lib/core/bff/file-system.js +1 -1
  140. package/lib/core/bff/hash.js +1 -1
  141. package/lib/core/bff/lock.js +1 -1
  142. package/lib/core/bff/utils.js +1 -1
  143. package/lib/core/db-resolver.js +1 -1
  144. package/lib/core/page/file-system.js +1 -1
  145. package/lib/core/page/hash.js +1 -1
  146. package/lib/core/page/lock.js +1 -1
  147. package/lib/core/sql-sync/config.js +1 -1
  148. package/lib/core/sql-sync/file-system.js +1 -1
  149. package/lib/core/sql-sync/hash.js +1 -1
  150. package/lib/core/sql-sync/lock.js +1 -1
  151. package/lib/core/sql-sync/utils.js +1 -1
  152. package/lib/core/sql-validator.js +1 -1
  153. package/lib/errors.js +1 -1
  154. package/lib/framework/build-all-flags.js +1 -1
  155. package/lib/framework/flags.js +1 -1
  156. package/lib/framework/help.js +1 -1
  157. package/lib/framework/index.js +1 -1
  158. package/lib/framework/output.js +1 -1
  159. package/lib/framework/response.js +1 -1
  160. package/lib/framework/runner-alias.js +1 -1
  161. package/lib/framework/runner.js +1 -1
  162. package/lib/framework/schema-export.js +1 -1
  163. package/lib/framework/types.js +1 -1
  164. package/lib/generated/build-info.js +1 -1
  165. package/lib/help.js +1 -1
  166. package/lib/skills/main.js +1 -1
  167. package/lib/skills/npx-skills-add.js +1 -1
  168. package/lib/telemetry/cli-command-trace.js +1 -1
  169. package/lib/telemetry/cli-help-trace.js +1 -1
  170. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  171. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  172. package/lib/telemetry/send-cli-trace-log.js +1 -1
  173. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  174. package/lib/utils/ai_config.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cdn-config.js +1 -1
  177. package/lib/utils/check-sdk-version.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/config.js +1 -1
  181. package/lib/utils/copy-directory.js +1 -1
  182. package/lib/utils/entity-with-id.js +1 -1
  183. package/lib/utils/file-utils.js +1 -1
  184. package/lib/utils/guides-cdn.js +1 -1
  185. package/lib/utils/http-client.js +1 -1
  186. package/lib/utils/is-non-interactive.js +1 -1
  187. package/lib/utils/logger.js +1 -1
  188. package/lib/utils/params.js +1 -1
  189. package/lib/utils/platform.js +1 -1
  190. package/lib/utils/rules-cdn.js +1 -1
  191. package/lib/utils/sleep.js +1 -1
  192. package/lib/utils/template-replacer.js +1 -1
  193. package/lib/utils/version.js +1 -1
  194. package/lib/utils/with-active-cookie.js +1 -1
  195. package/lib/utils/write-cli-side-channel.js +1 -1
  196. package/package.json +1 -1
@@ -1 +1 @@
1
- const a33_0x2d1e1e=a33_0x9859;function a33_0x43e0(){const _0x1cf858=['9yzIcVi','scriptsRoot','push','\x20remote-only','8790824YavzGl','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','bool','appCode','14787112ilSKLe','all','boolean','map','apiDir','remote','hash','functions','status','8210585ElYUGN','1193844bApTjm','4537612vAmKdo','2422618APwoCw','alias','87631uYUxVD','lockKey','length','All\x20BFF\x20scripts\x20are\x20in\x20sync.','lockFilePath','3bCKhoK','has','\x20modified,\x20','datasetCode'];a33_0x43e0=function(){return _0x1cf858;};return a33_0x43e0();}(function(_0x25e1ea,_0x2c7af0){const _0x54602b=a33_0x9859,_0x1d20ae=_0x25e1ea();while(!![]){try{const _0x151b21=parseInt(_0x54602b(0x189))/0x1+-parseInt(_0x54602b(0x187))/0x2+parseInt(_0x54602b(0x18e))/0x3*(parseInt(_0x54602b(0x186))/0x4)+parseInt(_0x54602b(0x184))/0x5+-parseInt(_0x54602b(0x185))/0x6+parseInt(_0x54602b(0x196))/0x7+parseInt(_0x54602b(0x17b))/0x8*(-parseInt(_0x54602b(0x192))/0x9);if(_0x151b21===_0x2c7af0)break;else _0x1d20ae['push'](_0x1d20ae['shift']());}catch(_0x5086b5){_0x1d20ae['push'](_0x1d20ae['shift']());}}}(a33_0x43e0,0xd247f));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';function a33_0x9859(_0x568ad9,_0x39d8ef){_0x568ad9=_0x568ad9-0x178;const _0x43e0f7=a33_0x43e0();let _0x985992=_0x43e0f7[_0x568ad9];return _0x985992;}import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':'bff','command':'status','description':'Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','risk':'read','flags':[{'name':a33_0x2d1e1e(0x180),'type':a33_0x2d1e1e(0x17d),'description':a33_0x2d1e1e(0x178)}],async 'execute'(_0x46fa6d){const _0x1ec044=a33_0x2d1e1e,_0xfa2de2=loadBffProjectConfig(_0x46fa6d[_0x1ec044(0x17a)]),_0x557195=await readBffLockFile(_0xfa2de2[_0x1ec044(0x18d)]),{appLock:_0x1920fa}=ensureLockScope(_0x557195??createEmptyBffLock(),_0x46fa6d[_0x1ec044(0x17a)],_0xfa2de2[_0x1ec044(0x193)],_0x1ec044(0x183)),_0x3084e6=await scanLocalBffFunctions(_0xfa2de2),_0x5c5e0f=[],_0x3ccb74=[],_0x2d16e5=[];for(const _0xd68822 of _0x3084e6){const _0x2fdb44=await computeFileHash(_0xd68822['filePath']),_0xd5e241=_0x1920fa[_0x1ec044(0x182)][_0xd68822[_0x1ec044(0x18a)]];if(!_0xd5e241)_0x5c5e0f[_0x1ec044(0x194)](_0xd68822[_0x1ec044(0x18a)]);else _0xd5e241[_0x1ec044(0x181)]!==_0x2fdb44?_0x3ccb74[_0x1ec044(0x194)](_0xd68822[_0x1ec044(0x18a)]):_0x2d16e5[_0x1ec044(0x194)](_0xd68822[_0x1ec044(0x18a)]);}const _0x7765a6=[];if(_0x46fa6d[_0x1ec044(0x179)](_0x1ec044(0x180))){const _0x9a28cb=loadAliasMap(_0x46fa6d[_0x1ec044(0x17f)],undefined,resolveApiFilePath(_0x46fa6d[_0x1ec044(0x17f)],_0x46fa6d['appCode'])),_0x599210=new Map(_0x9a28cb[_0x1ec044(0x17e)](_0x125e7b=>[_0x125e7b[_0x1ec044(0x191)],_0x125e7b[_0x1ec044(0x188)]])),[_0x392f9b,_0x3e920a]=await Promise[_0x1ec044(0x17c)]([listBffScripts(_0x46fa6d[_0x1ec044(0x17a)]),getBffScriptStatistics(_0x46fa6d[_0x1ec044(0x17a)])]),_0xbe7e6b=createHookLocationMap(_0x3e920a),_0x3df849=new Set(_0x3084e6['map'](_0x48e848=>_0x48e848['lockKey']));for(const _0x44803c of _0x392f9b){const _0x53b56c=resolveRemoteScriptTarget(_0xfa2de2,_0x44803c,_0xbe7e6b,_0x1920fa[_0x1ec044(0x182)],_0x599210);_0x53b56c&&!_0x3df849[_0x1ec044(0x18f)](_0x53b56c[_0x1ec044(0x18a)])&&_0x7765a6[_0x1ec044(0x194)](_0x53b56c['lockKey']);}}const _0x337ebc=_0x5c5e0f[_0x1ec044(0x18b)]===0x0&&_0x3ccb74['length']===0x0&&_0x7765a6[_0x1ec044(0x18b)]===0x0;return{'ok':!![],'data':{'added':_0x5c5e0f,'modified':_0x3ccb74,'unchanged':_0x2d16e5,'remoteOnly':_0x7765a6},'message':_0x337ebc?_0x1ec044(0x18c):_0x5c5e0f['length']+'\x20added,\x20'+_0x3ccb74[_0x1ec044(0x18b)]+_0x1ec044(0x190)+_0x2d16e5[_0x1ec044(0x18b)]+'\x20unchanged'+(_0x7765a6[_0x1ec044(0x18b)]>0x0?',\x20'+_0x7765a6[_0x1ec044(0x18b)]+_0x1ec044(0x195):'')};}};
1
+ function a33_0xd98b(_0x15ea2d,_0x466dcf){_0x15ea2d=_0x15ea2d-0x7b;const _0x5a56d1=a33_0x5a56();let _0xd98b46=_0x5a56d1[_0x15ea2d];return _0xd98b46;}const a33_0x242540=a33_0xd98b;(function(_0x2e1dd2,_0x352be5){const _0x1c690e=a33_0xd98b,_0x2c6100=_0x2e1dd2();while(!![]){try{const _0x1894cc=parseInt(_0x1c690e(0x83))/0x1*(parseInt(_0x1c690e(0x96))/0x2)+-parseInt(_0x1c690e(0x8e))/0x3+parseInt(_0x1c690e(0x84))/0x4+parseInt(_0x1c690e(0x93))/0x5+parseInt(_0x1c690e(0x90))/0x6+-parseInt(_0x1c690e(0x97))/0x7*(parseInt(_0x1c690e(0x9a))/0x8)+parseInt(_0x1c690e(0x8f))/0x9*(-parseInt(_0x1c690e(0x80))/0xa);if(_0x1894cc===_0x352be5)break;else _0x2c6100['push'](_0x2c6100['shift']());}catch(_0x390210){_0x2c6100['push'](_0x2c6100['shift']());}}}(a33_0x5a56,0x2ae7a));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';function a33_0x5a56(){const _0x50dcb8=['lockFilePath','All\x20BFF\x20scripts\x20are\x20in\x20sync.','\x20modified,\x20','alias','functions','map','458259pEOWtW','90Dnexhw','1472208UDBOSN','length','all','931095CxwTMK','bff','has','4VYczzg','74648aqsjXn','remote','\x20remote-only','8mqMGpB','bool','boolean','read','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','\x20unchanged','lockKey','datasetCode','appCode','593950xMQLAG','apiDir','status','152687JGLqQz','784576XiWuBT','\x20added,\x20','scriptsRoot','push'];a33_0x5a56=function(){return _0x50dcb8;};return a33_0x5a56();}import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a33_0x242540(0x94),'command':a33_0x242540(0x82),'description':'Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','risk':a33_0x242540(0x9d),'flags':[{'name':a33_0x242540(0x98),'type':a33_0x242540(0x9c),'description':a33_0x242540(0x7b)}],async 'execute'(_0x3e1e4b){const _0x3f0a35=a33_0x242540,_0x37d801=loadBffProjectConfig(_0x3e1e4b[_0x3f0a35(0x7f)]),_0x711d10=await readBffLockFile(_0x37d801[_0x3f0a35(0x88)]),{appLock:_0x2f86b4}=ensureLockScope(_0x711d10??createEmptyBffLock(),_0x3e1e4b[_0x3f0a35(0x7f)],_0x37d801[_0x3f0a35(0x86)],_0x3f0a35(0x82)),_0x18e322=await scanLocalBffFunctions(_0x37d801),_0x29e7a1=[],_0x73ae16=[],_0x360806=[];for(const _0x24afcf of _0x18e322){const _0x1eea6a=await computeFileHash(_0x24afcf['filePath']),_0x505389=_0x2f86b4[_0x3f0a35(0x8c)][_0x24afcf[_0x3f0a35(0x7d)]];if(!_0x505389)_0x29e7a1['push'](_0x24afcf[_0x3f0a35(0x7d)]);else _0x505389['hash']!==_0x1eea6a?_0x73ae16['push'](_0x24afcf[_0x3f0a35(0x7d)]):_0x360806[_0x3f0a35(0x87)](_0x24afcf[_0x3f0a35(0x7d)]);}const _0x22b828=[];if(_0x3e1e4b[_0x3f0a35(0x9b)](_0x3f0a35(0x98))){const _0x4c8485=loadAliasMap(_0x3e1e4b['apiDir'],undefined,resolveApiFilePath(_0x3e1e4b[_0x3f0a35(0x81)],_0x3e1e4b[_0x3f0a35(0x7f)])),_0x5e5fd5=new Map(_0x4c8485['map'](_0x52191f=>[_0x52191f[_0x3f0a35(0x7e)],_0x52191f[_0x3f0a35(0x8b)]])),[_0x4abe77,_0x64cf30]=await Promise[_0x3f0a35(0x92)]([listBffScripts(_0x3e1e4b[_0x3f0a35(0x7f)]),getBffScriptStatistics(_0x3e1e4b[_0x3f0a35(0x7f)])]),_0xa4f6bd=createHookLocationMap(_0x64cf30),_0x8e3d62=new Set(_0x18e322[_0x3f0a35(0x8d)](_0x13612c=>_0x13612c[_0x3f0a35(0x7d)]));for(const _0x4d4b11 of _0x4abe77){const _0x431837=resolveRemoteScriptTarget(_0x37d801,_0x4d4b11,_0xa4f6bd,_0x2f86b4[_0x3f0a35(0x8c)],_0x5e5fd5);_0x431837&&!_0x8e3d62[_0x3f0a35(0x95)](_0x431837['lockKey'])&&_0x22b828[_0x3f0a35(0x87)](_0x431837[_0x3f0a35(0x7d)]);}}const _0x16384c=_0x29e7a1[_0x3f0a35(0x91)]===0x0&&_0x73ae16[_0x3f0a35(0x91)]===0x0&&_0x22b828[_0x3f0a35(0x91)]===0x0;return{'ok':!![],'data':{'added':_0x29e7a1,'modified':_0x73ae16,'unchanged':_0x360806,'remoteOnly':_0x22b828},'message':_0x16384c?_0x3f0a35(0x89):_0x29e7a1['length']+_0x3f0a35(0x85)+_0x73ae16[_0x3f0a35(0x91)]+_0x3f0a35(0x8a)+_0x360806[_0x3f0a35(0x91)]+_0x3f0a35(0x7c)+(_0x22b828[_0x3f0a35(0x91)]>0x0?',\x20'+_0x22b828[_0x3f0a35(0x91)]+_0x3f0a35(0x99):'')};}};
@@ -1 +1 @@
1
- const a34_0x26788a=a34_0x1742;(function(_0x37a84f,_0xcf9422){const _0x1b6ffc=a34_0x1742,_0x5cbe39=_0x37a84f();while(!![]){try{const _0x37d575=-parseInt(_0x1b6ffc(0x17e))/0x1*(-parseInt(_0x1b6ffc(0x17a))/0x2)+parseInt(_0x1b6ffc(0x15f))/0x3*(-parseInt(_0x1b6ffc(0x132))/0x4)+-parseInt(_0x1b6ffc(0x131))/0x5*(-parseInt(_0x1b6ffc(0x13a))/0x6)+parseInt(_0x1b6ffc(0x143))/0x7+parseInt(_0x1b6ffc(0x160))/0x8*(-parseInt(_0x1b6ffc(0x13d))/0x9)+parseInt(_0x1b6ffc(0x12a))/0xa*(-parseInt(_0x1b6ffc(0x151))/0xb)+-parseInt(_0x1b6ffc(0x152))/0xc*(-parseInt(_0x1b6ffc(0x16a))/0xd);if(_0x37d575===_0xcf9422)break;else _0x5cbe39['push'](_0x5cbe39['shift']());}catch(_0x52adce){_0x5cbe39['push'](_0x5cbe39['shift']());}}}(a34_0x1360,0x77ff3));import a34_0x2d5531 from'chalk';import a34_0x402c91 from'ora';import a34_0x1f059b 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_0x1360(){const _0x3053f3=['\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','cli','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','slice','Updated\x20to\x20v','https://registry.npmjs.org/-/package/','\x20install\x20-g\x20','11Qwhdxv','241284VXqpQu','Requested\x20version:\x20','start','timeout','Install\x20a\x20specific\x20CLI\x20version','log','latest','message','\x20\x20Official\x20skill\x20update\x20failed:\x20','Update\x20failed','yellow','Checking\x20for\x20updates...','update','3bmnvsa','8hoQlYg','red','Beta\x20version:\x20','error','str','gray','no-skills','\x20→\x20','beta','Update\x20available:\x20','377CyQerb','fromEntries','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','info','string','includes','Skipping\x20official\x20skill\x20package\x20(--no-skills).','inherit','validation','skipped','install','succeed','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','pipe','npm','\x20\x20Run\x20manually:\x20','147958vJhVGt','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','@latest','9SddERJ','Updating\x20via\x20','Version\x20comparison\x20failed','version','bool','2889390OPIXsU','fail','\x20\x20Try\x20manually:\x20','nonInteractive','filter','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','valid','460745XLvMFQ','359272hVxesm','cwd','/dist-tags','Invalid\x20version:\x20','unknown','Current\x20version:\x20','source','trim','6nOnbiw','entries','run','7960374OExBSE','bun','toLowerCase','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','Checking\x20official\x20skill\x20package...','Already\x20on\x20requested\x20version\x20(v','2895809uZhPvI','map','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','green','boolean','write'];a34_0x1360=function(){return _0x3053f3;};return a34_0x1360();}import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x438155=a34_0x1742;return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x438155(0x14d)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x1f4d2c=a34_0x1742,_0x3b809c=process['execPath'][_0x1f4d2c(0x13f)]();if(_0x3b809c[_0x1f4d2c(0x16f)](_0x1f4d2c(0x13e)))return _0x1f4d2c(0x13e);return _0x1f4d2c(0x178);}const updateFlags=[{'name':a34_0x26788a(0x168),'type':'boolean','description':a34_0x26788a(0x16c),'default':![]},{'name':a34_0x26788a(0x128),'type':'string','description':a34_0x26788a(0x156)},{'name':'no-skills','type':a34_0x26788a(0x147),'description':'Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','default':![]}];function a34_0x1742(_0x30e21b,_0x167c79){_0x30e21b=_0x30e21b-0x126;const _0x136083=a34_0x1360();let _0x174214=_0x136083[_0x30e21b];return _0x174214;}function getRequestedVersion(_0x400152){const _0x817b12=a34_0x26788a;return _0x400152[_0x817b12(0x164)]('version')[_0x817b12(0x139)]();}async function validateUpdateFlags(_0x317887){const _0x2898a4=a34_0x26788a,_0x15c93e=_0x317887['bool'](_0x2898a4(0x168)),_0x349fb6=getRequestedVersion(_0x317887);if(_0x15c93e&&_0x349fb6)throw CliErrors[_0x2898a4(0x172)](_0x2898a4(0x140),_0x2898a4(0x17c));if(_0x349fb6&&!a34_0x1f059b[_0x2898a4(0x130)](_0x349fb6))throw CliErrors[_0x2898a4(0x172)](_0x2898a4(0x135)+_0x349fb6,_0x2898a4(0x145));}async function fetchNpmDistTags(){const _0x33c242=a34_0x26788a;try{const _0x5d0dd2=await fetch(_0x33c242(0x14f)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x33c242(0x134),{'signal':AbortSignal[_0x33c242(0x155)](0x2710)});if(!_0x5d0dd2['ok'])return null;const _0x400efe=await _0x5d0dd2['json']();if(!_0x400efe||typeof _0x400efe!=='object')return null;return Object[_0x33c242(0x16b)](Object[_0x33c242(0x13b)](_0x400efe)[_0x33c242(0x12e)](([,_0x301438])=>typeof _0x301438===_0x33c242(0x16e)&&_0x301438[_0x33c242(0x139)]()['length']>0x0)[_0x33c242(0x144)](([_0x20959e,_0x2e2f85])=>[_0x20959e,String(_0x2e2f85)[_0x33c242(0x139)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x46c8cc){const _0x5f3ecf=await fetchNpmDistTags();return _0x5f3ecf?.[_0x46c8cc]??null;}async function fetchLatestVersion(){const _0x8bc1f5=a34_0x26788a,_0x5167fa=await fetchNpmDistTagVersion(_0x8bc1f5(0x158));if(_0x5167fa)return _0x5167fa;const _0x4d2db3=await getCdnConfig();return _0x4d2db3?.[_0x8bc1f5(0x14a)]?.['stableVersion']??null;}async function resolveTargetVersion(_0x110492){const _0x5bd90d=a34_0x26788a,_0x4c48c2=getRequestedVersion(_0x110492);if(_0x4c48c2)return{'version':_0x4c48c2,'source':_0x5bd90d(0x128)};if(_0x110492['bool'](_0x5bd90d(0x168))){const _0x2a5f3b=await fetchNpmDistTagVersion(_0x5bd90d(0x168));if(!_0x2a5f3b)return null;return{'version':_0x2a5f3b,'source':_0x5bd90d(0x168)};}const _0x99856=await fetchLatestVersion();if(!_0x99856)return null;return{'version':_0x99856,'source':_0x5bd90d(0x158)};}function shouldInstallTarget(_0x3323d3,_0x2be2b7){const _0x2d377d=a34_0x26788a;if(_0x2be2b7[_0x2d377d(0x138)]==='version')return!a34_0x1f059b['eq'](_0x3323d3,_0x2be2b7[_0x2d377d(0x128)]);return a34_0x1f059b['lt'](_0x3323d3,_0x2be2b7[_0x2d377d(0x128)]);}function getInstallPlanLabel(_0xabcafc,_0x54aa21){const _0x2c8fad=a34_0x26788a;switch(_0x54aa21['source']){case _0x2c8fad(0x168):return _0x2c8fad(0x162)+a34_0x2d5531['yellow'](_0xabcafc)+_0x2c8fad(0x167)+a34_0x2d5531[_0x2c8fad(0x146)](_0x54aa21['version']);case _0x2c8fad(0x128):return _0x2c8fad(0x153)+a34_0x2d5531[_0x2c8fad(0x15c)](_0xabcafc)+_0x2c8fad(0x167)+a34_0x2d5531[_0x2c8fad(0x146)](_0x54aa21[_0x2c8fad(0x128)]);case _0x2c8fad(0x158):default:return _0x2c8fad(0x169)+a34_0x2d5531[_0x2c8fad(0x15c)](_0xabcafc)+'\x20→\x20'+a34_0x2d5531[_0x2c8fad(0x146)](_0x54aa21[_0x2c8fad(0x128)]);}}async function installOfficialSkill(_0x4339af){const _0x3d09ce=a34_0x26788a;console['log'](a34_0x2d5531['gray'](_0x3d09ce(0x141)));const _0x2fdf84=runNpxSkillsAddGlobal(process[_0x3d09ce(0x133)](),RABETBASE_SKILL_SOURCE,{'stdio':_0x4339af?_0x3d09ce(0x177):_0x3d09ce(0x171)});if(_0x2fdf84[_0x3d09ce(0x173)]){console['log'](a34_0x2d5531[_0x3d09ce(0x165)](_0x3d09ce(0x149)));return;}if(_0x2fdf84['ok']){console[_0x3d09ce(0x157)](a34_0x2d5531[_0x3d09ce(0x165)](_0x3d09ce(0x14c)));return;}console['warn'](a34_0x2d5531['yellow'](_0x3d09ce(0x15a)+(_0x2fdf84[_0x3d09ce(0x163)]||_0x3d09ce(0x136)))),console[_0x3d09ce(0x157)](a34_0x2d5531[_0x3d09ce(0x165)](_0x3d09ce(0x179)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x521bed){const _0x101262=a34_0x26788a;await validateUpdateFlags(_0x521bed);const _0x3f0153=getCurrentVersion();console[_0x101262(0x157)](_0x101262(0x137)+_0x3f0153);const _0x419cdf=a34_0x402c91(_0x101262(0x15d))[_0x101262(0x154)](),_0x3ca1fd=await resolveTargetVersion(_0x521bed);if(!_0x3ca1fd){const _0x29a224=_0x521bed[_0x101262(0x129)](_0x101262(0x168))?_0x101262(0x14b):_0x101262(0x12f);return _0x419cdf[_0x101262(0x12b)](_0x29a224),console[_0x101262(0x157)](a34_0x2d5531[_0x101262(0x165)](_0x101262(0x176)+NPM_PACKAGE_NAME+_0x101262(0x17d))),{'ok':![],'message':_0x29a224};}const _0x3f6383=a34_0x1f059b[_0x101262(0x130)](VERSION),_0x169f69=a34_0x1f059b[_0x101262(0x130)](_0x3ca1fd[_0x101262(0x128)]);if(!_0x3f6383||!_0x169f69)return _0x419cdf[_0x101262(0x12b)](_0x101262(0x127)),{'ok':![],'message':'Version\x20comparison\x20failed'};if(!shouldInstallTarget(_0x3f6383,_0x3ca1fd)){const _0x3f3b2e=_0x3ca1fd[_0x101262(0x138)]===_0x101262(0x128)?_0x101262(0x142)+_0x3ca1fd[_0x101262(0x128)]+')':'Already\x20up\x20to\x20date\x20(v'+_0x3ca1fd[_0x101262(0x128)]+')';return _0x419cdf[_0x101262(0x175)](_0x3f3b2e),!_0x521bed[_0x101262(0x129)](_0x101262(0x166))?await installOfficialSkill(_0x521bed[_0x101262(0x12d)]):console['log'](a34_0x2d5531[_0x101262(0x165)](_0x101262(0x170))),{'ok':!![]};}_0x419cdf[_0x101262(0x16d)](getInstallPlanLabel(_0x3f0153,_0x3ca1fd));const _0x58b95a=detectPackageManager(),_0x3ee471=_0x58b95a===_0x101262(0x178)?resolveNpmBin(_0x101262(0x178)):_0x58b95a,_0x12726a=a34_0x402c91(_0x101262(0x126)+_0x58b95a+'...')[_0x101262(0x154)]();try{return await execa(_0x3ee471,[_0x101262(0x174),'-g',NPM_PACKAGE_NAME+'@'+_0x3ca1fd[_0x101262(0x128)]],{'stdio':_0x101262(0x177)}),_0x12726a[_0x101262(0x175)](_0x101262(0x14e)+_0x3ca1fd[_0x101262(0x128)]),console[_0x101262(0x157)](a34_0x2d5531[_0x101262(0x165)](_0x101262(0x17b))),!_0x521bed[_0x101262(0x129)](_0x101262(0x166))?await installOfficialSkill(_0x521bed[_0x101262(0x12d)]):console[_0x101262(0x157)](a34_0x2d5531[_0x101262(0x165)](_0x101262(0x170))),{'ok':!![]};}catch(_0x5dbadf){return _0x12726a[_0x101262(0x12b)](_0x101262(0x15b)),console[_0x101262(0x163)](a34_0x2d5531[_0x101262(0x161)]('\x20\x20'+_0x5dbadf[_0x101262(0x159)])),console[_0x101262(0x157)](a34_0x2d5531[_0x101262(0x165)](_0x101262(0x12c)+_0x58b95a+_0x101262(0x150)+NPM_PACKAGE_NAME+'@'+_0x3ca1fd[_0x101262(0x128)])),{'ok':![],'message':_0x5dbadf[_0x101262(0x159)]};}}export const updateDefinition={'service':a34_0x26788a(0x15e),'command':a34_0x26788a(0x13c),'description':'Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','risk':a34_0x26788a(0x148),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ function a34_0x5a80(){const _0x46737b=['Update\x20available:\x20','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','latest','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','npm','\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','4762puZmvZ','source','validation','1299886obCIvG','beta','red','Already\x20up\x20to\x20date\x20(v','Skipping\x20official\x20skill\x20package\x20(--no-skills).','\x20\x20Official\x20skill\x20update\x20failed:\x20','Update\x20failed','pipe','cli','bool','fail','/dist-tags','Version\x20comparison\x20failed','includes','info','stableVersion','Checking\x20official\x20skill\x20package...','\x20\x20Run\x20manually:\x20','message','bun','...','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','map','gray','152379QIBYRs','object','flag','succeed','trim','Refresh\x20official\x20skill\x20package\x20after\x20updating','104RAWIQN','4zRtfVP','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','valid','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','12LaDorK','version','timeout','string','Install\x20a\x20specific\x20CLI\x20version','json','fromEntries','Requested\x20version:\x20','toLowerCase','boolean','warn','run','entries','execPath','837285CEaSnA','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','green','7647588JgrqHK','69003bxmjOR','unknown','2295Kfabyv','log','124lfTPlS','no-skills','yellow','Updated\x20to\x20v','error','length','inherit','Invalid\x20version:\x20','210gXHOoh','nonInteractive','\x20→\x20','https://registry.npmjs.org/-/package/'];a34_0x5a80=function(){return _0x46737b;};return a34_0x5a80();}const a34_0x9aa26a=a34_0x5226;(function(_0x34bef6,_0x308a3a){const _0xca7991=a34_0x5226,_0x1e1928=_0x34bef6();while(!![]){try{const _0x53029a=parseInt(_0xca7991(0x1e6))/0x1*(-parseInt(_0xca7991(0x1f8))/0x2)+parseInt(_0xca7991(0x1de))/0x3*(-parseInt(_0xca7991(0x21a))/0x4)+-parseInt(_0xca7991(0x1e4))/0x5*(parseInt(_0xca7991(0x21e))/0x6)+parseInt(_0xca7991(0x1fb))/0x7+-parseInt(_0xca7991(0x219))/0x8*(parseInt(_0xca7991(0x213))/0x9)+parseInt(_0xca7991(0x1ee))/0xa*(parseInt(_0xca7991(0x1e2))/0xb)+parseInt(_0xca7991(0x1e1))/0xc;if(_0x53029a===_0x308a3a)break;else _0x1e1928['push'](_0x1e1928['shift']());}catch(_0x45f251){_0x1e1928['push'](_0x1e1928['shift']());}}}(a34_0x5a80,0x26e8a));import a34_0x31bbb4 from'chalk';import a34_0x319c19 from'ora';import a34_0x1a8ef6 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{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x893716=a34_0x5226,_0x312015=process[_0x893716(0x1dd)][_0x893716(0x1d8)]();if(_0x312015[_0x893716(0x208)](_0x893716(0x20e)))return _0x893716(0x20e);return _0x893716(0x1f6);}const updateFlags=[{'name':a34_0x9aa26a(0x1fc),'type':a34_0x9aa26a(0x1d9),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':'version','type':a34_0x9aa26a(0x221),'description':a34_0x9aa26a(0x1d4)},{'name':'no-skills','type':a34_0x9aa26a(0x1d9),'description':'Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','default':![]},{'name':'skills','type':a34_0x9aa26a(0x1d9),'description':a34_0x9aa26a(0x218),'default':!![],'hidden':!![]}];function getRequestedVersion(_0x377efc){const _0x470b95=a34_0x9aa26a;return _0x377efc['str'](_0x470b95(0x21f))[_0x470b95(0x217)]();}function shouldSkipOfficialSkill(_0x41f74e){const _0x253ff5=a34_0x9aa26a;return _0x41f74e[_0x253ff5(0x204)](_0x253ff5(0x1e7))||_0x41f74e[_0x253ff5(0x215)]('skills')===![];}async function validateUpdateFlags(_0xc27728){const _0xbf634f=a34_0x9aa26a,_0x256c71=_0xc27728[_0xbf634f(0x204)]('beta'),_0x2da0a2=getRequestedVersion(_0xc27728);if(_0x256c71&&_0x2da0a2)throw CliErrors[_0xbf634f(0x1fa)](_0xbf634f(0x1f3),_0xbf634f(0x1f5));if(_0x2da0a2&&!a34_0x1a8ef6[_0xbf634f(0x21c)](_0x2da0a2))throw CliErrors[_0xbf634f(0x1fa)](_0xbf634f(0x1ed)+_0x2da0a2,_0xbf634f(0x210));}function a34_0x5226(_0x14ddd9,_0x58fcae){_0x14ddd9=_0x14ddd9-0x1d4;const _0x5a800d=a34_0x5a80();let _0x522657=_0x5a800d[_0x14ddd9];return _0x522657;}async function fetchNpmDistTags(){const _0x486606=a34_0x9aa26a;try{const _0x53b376=await fetch(_0x486606(0x1f1)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x486606(0x206),{'signal':AbortSignal[_0x486606(0x220)](0x2710)});if(!_0x53b376['ok'])return null;const _0x4d3bc6=await _0x53b376[_0x486606(0x1d5)]();if(!_0x4d3bc6||typeof _0x4d3bc6!==_0x486606(0x214))return null;return Object[_0x486606(0x1d6)](Object[_0x486606(0x1dc)](_0x4d3bc6)['filter'](([,_0x4a7162])=>typeof _0x4a7162===_0x486606(0x221)&&_0x4a7162['trim']()[_0x486606(0x1eb)]>0x0)[_0x486606(0x211)](([_0x2f8000,_0x1e4b5b])=>[_0x2f8000,String(_0x1e4b5b)['trim']()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x24f276){const _0x5b2d5c=await fetchNpmDistTags();return _0x5b2d5c?.[_0x24f276]??null;}async function fetchLatestVersion(){const _0x5b4020=a34_0x9aa26a,_0x1c540f=await fetchNpmDistTagVersion(_0x5b4020(0x1f4));if(_0x1c540f)return _0x1c540f;const _0x2aa43c=await getCdnConfig();return _0x2aa43c?.[_0x5b4020(0x203)]?.[_0x5b4020(0x20a)]??null;}async function resolveTargetVersion(_0x8fe392){const _0x167afb=a34_0x9aa26a,_0x312e50=getRequestedVersion(_0x8fe392);if(_0x312e50)return{'version':_0x312e50,'source':_0x167afb(0x21f)};if(_0x8fe392[_0x167afb(0x204)](_0x167afb(0x1fc))){const _0x52ec7e=await fetchNpmDistTagVersion(_0x167afb(0x1fc));if(!_0x52ec7e)return null;return{'version':_0x52ec7e,'source':_0x167afb(0x1fc)};}const _0x1700c7=await fetchLatestVersion();if(!_0x1700c7)return null;return{'version':_0x1700c7,'source':_0x167afb(0x1f4)};}function shouldInstallTarget(_0x3c5a1e,_0x498bc6){const _0x2864af=a34_0x9aa26a;if(_0x498bc6[_0x2864af(0x1f9)]===_0x2864af(0x21f))return!a34_0x1a8ef6['eq'](_0x3c5a1e,_0x498bc6[_0x2864af(0x21f)]);return a34_0x1a8ef6['lt'](_0x3c5a1e,_0x498bc6[_0x2864af(0x21f)]);}function getInstallPlanLabel(_0x1c544d,_0x40ef62){const _0x231f3c=a34_0x9aa26a;switch(_0x40ef62[_0x231f3c(0x1f9)]){case _0x231f3c(0x1fc):return'Beta\x20version:\x20'+a34_0x31bbb4['yellow'](_0x1c544d)+_0x231f3c(0x1f0)+a34_0x31bbb4[_0x231f3c(0x1e0)](_0x40ef62['version']);case _0x231f3c(0x21f):return _0x231f3c(0x1d7)+a34_0x31bbb4[_0x231f3c(0x1e8)](_0x1c544d)+_0x231f3c(0x1f0)+a34_0x31bbb4[_0x231f3c(0x1e0)](_0x40ef62[_0x231f3c(0x21f)]);case _0x231f3c(0x1f4):default:return _0x231f3c(0x1f2)+a34_0x31bbb4[_0x231f3c(0x1e8)](_0x1c544d)+_0x231f3c(0x1f0)+a34_0x31bbb4[_0x231f3c(0x1e0)](_0x40ef62['version']);}}async function installOfficialSkill(_0x9ed257){const _0x10e19c=a34_0x9aa26a;console[_0x10e19c(0x1e5)](a34_0x31bbb4[_0x10e19c(0x212)](_0x10e19c(0x20b)));const _0x189ead=runNpxSkillsAddGlobal(process['cwd'](),RABETBASE_SKILL_SOURCE,{'stdio':_0x9ed257?_0x10e19c(0x202):_0x10e19c(0x1ec)});if(_0x189ead['skipped']){console[_0x10e19c(0x1e5)](a34_0x31bbb4[_0x10e19c(0x212)](_0x10e19c(0x1f7)));return;}if(_0x189ead['ok']){console[_0x10e19c(0x1e5)](a34_0x31bbb4[_0x10e19c(0x212)]('\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.'));return;}console[_0x10e19c(0x1da)](a34_0x31bbb4[_0x10e19c(0x1e8)](_0x10e19c(0x200)+(_0x189ead[_0x10e19c(0x1ea)]||_0x10e19c(0x1e3)))),console[_0x10e19c(0x1e5)](a34_0x31bbb4[_0x10e19c(0x212)](_0x10e19c(0x20c)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x28abdb){const _0x8b1778=a34_0x9aa26a;await validateUpdateFlags(_0x28abdb);const _0x394550=getCurrentVersion();console[_0x8b1778(0x1e5)]('Current\x20version:\x20'+_0x394550);const _0x51d62c=a34_0x319c19('Checking\x20for\x20updates...')['start'](),_0x21e6fd=await resolveTargetVersion(_0x28abdb);if(!_0x21e6fd){const _0x41ff2c=_0x28abdb[_0x8b1778(0x204)](_0x8b1778(0x1fc))?_0x8b1778(0x21b):_0x8b1778(0x21d);return _0x51d62c[_0x8b1778(0x205)](_0x41ff2c),console[_0x8b1778(0x1e5)](a34_0x31bbb4['gray']('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x41ff2c};}const _0x1aff90=a34_0x1a8ef6[_0x8b1778(0x21c)](VERSION),_0x51671d=a34_0x1a8ef6[_0x8b1778(0x21c)](_0x21e6fd['version']);if(!_0x1aff90||!_0x51671d)return _0x51d62c[_0x8b1778(0x205)](_0x8b1778(0x207)),{'ok':![],'message':_0x8b1778(0x207)};if(!shouldInstallTarget(_0x1aff90,_0x21e6fd)){const _0x213681=_0x21e6fd[_0x8b1778(0x1f9)]===_0x8b1778(0x21f)?'Already\x20on\x20requested\x20version\x20(v'+_0x21e6fd[_0x8b1778(0x21f)]+')':_0x8b1778(0x1fe)+_0x21e6fd['version']+')';return _0x51d62c['succeed'](_0x213681),shouldSkipOfficialSkill(_0x28abdb)?console['log'](a34_0x31bbb4[_0x8b1778(0x212)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).')):await installOfficialSkill(_0x28abdb[_0x8b1778(0x1ef)]),{'ok':!![]};}_0x51d62c[_0x8b1778(0x209)](getInstallPlanLabel(_0x394550,_0x21e6fd));const _0x159bcc=detectPackageManager(),_0xdf3516=_0x159bcc===_0x8b1778(0x1f6)?resolveNpmBin(_0x8b1778(0x1f6)):_0x159bcc,_0x2fc83c=a34_0x319c19('Updating\x20via\x20'+_0x159bcc+_0x8b1778(0x20f))['start']();try{return await execa(_0xdf3516,['install','-g',NPM_PACKAGE_NAME+'@'+_0x21e6fd[_0x8b1778(0x21f)]],{'stdio':_0x8b1778(0x202)}),_0x2fc83c[_0x8b1778(0x216)](_0x8b1778(0x1e9)+_0x21e6fd['version']),console['log'](a34_0x31bbb4['gray']('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),shouldSkipOfficialSkill(_0x28abdb)?console['log'](a34_0x31bbb4[_0x8b1778(0x212)](_0x8b1778(0x1ff))):await installOfficialSkill(_0x28abdb[_0x8b1778(0x1ef)]),{'ok':!![]};}catch(_0x10e3cd){return _0x2fc83c[_0x8b1778(0x205)](_0x8b1778(0x201)),console[_0x8b1778(0x1ea)](a34_0x31bbb4[_0x8b1778(0x1fd)]('\x20\x20'+_0x10e3cd[_0x8b1778(0x20d)])),console[_0x8b1778(0x1e5)](a34_0x31bbb4[_0x8b1778(0x212)]('\x20\x20Try\x20manually:\x20'+_0x159bcc+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x21e6fd[_0x8b1778(0x21f)])),{'ok':![],'message':_0x10e3cd['message']};}}export const updateDefinition={'service':'update','command':a34_0x9aa26a(0x1db),'description':a34_0x9aa26a(0x1df),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- function a35_0x61b1(_0x724c76,_0x33cf6a){_0x724c76=_0x724c76-0xf2;const _0x1d25ad=a35_0x1d25();let _0x61b1a5=_0x1d25ad[_0x724c76];return _0x61b1a5;}(function(_0x671c34,_0x3e6c40){const _0x44e6c6=a35_0x61b1,_0x12b024=_0x671c34();while(!![]){try{const _0x42f40c=parseInt(_0x44e6c6(0xfb))/0x1*(parseInt(_0x44e6c6(0xfe))/0x2)+-parseInt(_0x44e6c6(0xf6))/0x3*(-parseInt(_0x44e6c6(0xfa))/0x4)+parseInt(_0x44e6c6(0xfd))/0x5*(-parseInt(_0x44e6c6(0xf4))/0x6)+-parseInt(_0x44e6c6(0xf3))/0x7*(-parseInt(_0x44e6c6(0xf7))/0x8)+-parseInt(_0x44e6c6(0xf9))/0x9*(parseInt(_0x44e6c6(0xf2))/0xa)+-parseInt(_0x44e6c6(0xfc))/0xb+-parseInt(_0x44e6c6(0xf5))/0xc*(parseInt(_0x44e6c6(0xf8))/0xd);if(_0x42f40c===_0x3e6c40)break;else _0x12b024['push'](_0x12b024['shift']());}catch(_0x5c50a9){_0x12b024['push'](_0x12b024['shift']());}}}(a35_0x1d25,0x8613f));function a35_0x1d25(){const _0x1b5a46=['48085mPmTcj','299262jXYQhz','550gKIdYC','2687447kwoypy','66FRBxkv','12DCTMzh','2645277xXMXyS','8NYchEe','2019329bNkiaM','49797XerCLE','4piJpUZ','6mtxtYo','11537328rwhqcq'];a35_0x1d25=function(){return _0x1b5a46;};return a35_0x1d25();}import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ function a35_0xeef0(_0x517848,_0x5f36fa){_0x517848=_0x517848-0xc9;const _0x574304=a35_0x5743();let _0xeef0ed=_0x574304[_0x517848];return _0xeef0ed;}(function(_0x2d8d79,_0x4a18c7){const _0x5023d6=a35_0xeef0,_0x38db14=_0x2d8d79();while(!![]){try{const _0x2c6087=parseInt(_0x5023d6(0xd1))/0x1+parseInt(_0x5023d6(0xcb))/0x2*(-parseInt(_0x5023d6(0xd0))/0x3)+-parseInt(_0x5023d6(0xd2))/0x4+-parseInt(_0x5023d6(0xce))/0x5*(-parseInt(_0x5023d6(0xc9))/0x6)+parseInt(_0x5023d6(0xcc))/0x7+-parseInt(_0x5023d6(0xcf))/0x8*(-parseInt(_0x5023d6(0xcd))/0x9)+-parseInt(_0x5023d6(0xca))/0xa;if(_0x2c6087===_0x4a18c7)break;else _0x38db14['push'](_0x38db14['shift']());}catch(_0x436edb){_0x38db14['push'](_0x38db14['shift']());}}}(a35_0x5743,0x73444));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];function a35_0x5743(){const _0x34933a=['267620pyAXOP','114KwsTTu','5057297SCQuuU','7974xCJcGc','143125YUTOWb','2720Rqmhkr','32667BQqTqV','208482meqmyc','3313004odRYVS','150stYQla'];a35_0x5743=function(){return _0x34933a;};return a35_0x5743();}
@@ -1 +1 @@
1
- const a36_0x1c1d5c=a36_0xdcd1;(function(_0x961cda,_0x410386){const _0x22cc74=a36_0xdcd1,_0x5cbe9a=_0x961cda();while(!![]){try{const _0x2d831=-parseInt(_0x22cc74(0x1c0))/0x1*(-parseInt(_0x22cc74(0x1c4))/0x2)+parseInt(_0x22cc74(0x1cb))/0x3*(-parseInt(_0x22cc74(0x1c1))/0x4)+-parseInt(_0x22cc74(0x1b6))/0x5+parseInt(_0x22cc74(0x1be))/0x6*(parseInt(_0x22cc74(0x1b8))/0x7)+-parseInt(_0x22cc74(0x1bd))/0x8*(parseInt(_0x22cc74(0x1c9))/0x9)+-parseInt(_0x22cc74(0x1cc))/0xa+-parseInt(_0x22cc74(0x1ca))/0xb*(-parseInt(_0x22cc74(0x1bb))/0xc);if(_0x2d831===_0x410386)break;else _0x5cbe9a['push'](_0x5cbe9a['shift']());}catch(_0x27ef92){_0x5cbe9a['push'](_0x5cbe9a['shift']());}}}(a36_0x5ae8,0x19d15));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a36_0x5ae8(){const _0xaa1dc7=['4qdrsvG','code','sdk','2lQPfDq','tableName','string','appCode','str','18ktitMR','66umZJbp','80073JVaSKe','1487730fcCXCP','874005UfMyDL','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','7GKNzqc','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','codegen','554916UHFpfQ','operation','317536bjnGHe','1038354CVquPU','boolean','84881UhPuAj'];a36_0x5ae8=function(){return _0xaa1dc7;};return a36_0x5ae8();}function a36_0xdcd1(_0x4f6908,_0x3ae3c8){_0x4f6908=_0x4f6908-0x1b6;const _0x5ae8ba=a36_0x5ae8();let _0xdcd1a3=_0x5ae8ba[_0x4f6908];return _0xdcd1a3;}export const codegenSdk={'service':a36_0x1c1d5c(0x1ba),'command':a36_0x1c1d5c(0x1c3),'description':a36_0x1c1d5c(0x1b9),'risk':'read','flags':[CODE_FLAG_OPTIONAL,{'name':'alias','type':a36_0x1c1d5c(0x1c6),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a36_0x1c1d5c(0x1bc),'type':a36_0x1c1d5c(0x1c6),'required':!![],'description':a36_0x1c1d5c(0x1b7)},{'name':'skip-imports','type':a36_0x1c1d5c(0x1bf),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x53c48e){const _0x2225d3=a36_0x1c1d5c,{dataset:_0x4b1f0d,operation:_0x28b630}=await getOperationDetail(_0x53c48e[_0x2225d3(0x1c7)],_0x53c48e[_0x2225d3(0x1c8)](_0x2225d3(0x1c2)),_0x53c48e[_0x2225d3(0x1c8)](_0x2225d3(0x1bc))),_0x5f03d3=generateSdkCode(_0x4b1f0d,_0x28b630,{'includeImports':!_0x53c48e['bool']('skip-imports')});return{'ok':!![],'data':{'dataset':{'name':_0x4b1f0d['name'],'code':_0x4b1f0d[_0x2225d3(0x1c2)],'tableName':_0x4b1f0d[_0x2225d3(0x1c5)]},'operation':_0x53c48e['str']('operation'),'code':_0x5f03d3}};}};
1
+ const a36_0x5be0ae=a36_0x200c;function a36_0x200c(_0x23e350,_0x1cea6d){_0x23e350=_0x23e350-0x1f2;const _0x3ba536=a36_0x3ba5();let _0x200cb6=_0x3ba536[_0x23e350];return _0x200cb6;}function a36_0x3ba5(){const _0x2fd5f1=['boolean','80iGvnfa','str','1486915QpltlZ','157772RvnmPK','455RusOCV','string','735955IaoKMN','skip-imports','513790RyNJUD','34620qHwZZa','6bGVvSu','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','bool','529752eSjsim','Omit\x20import\x20statements\x20from\x20generated\x20code','operation','alias','tableName','sdk','name','765808aAzQmF','code','codegen','108ZGIxMq'];a36_0x3ba5=function(){return _0x2fd5f1;};return a36_0x3ba5();}(function(_0x12cfe1,_0x44b05a){const _0x2d6f38=a36_0x200c,_0x233061=_0x12cfe1();while(!![]){try{const _0x19b097=parseInt(_0x2d6f38(0x1fb))/0x1+parseInt(_0x2d6f38(0x1f6))/0x2*(parseInt(_0x2d6f38(0x1fd))/0x3)+parseInt(_0x2d6f38(0x207))/0x4+parseInt(_0x2d6f38(0x1f5))/0x5+parseInt(_0x2d6f38(0x1fc))/0x6*(-parseInt(_0x2d6f38(0x1f7))/0x7)+parseInt(_0x2d6f38(0x200))/0x8*(-parseInt(_0x2d6f38(0x20a))/0x9)+-parseInt(_0x2d6f38(0x1f3))/0xa*(-parseInt(_0x2d6f38(0x1f9))/0xb);if(_0x19b097===_0x44b05a)break;else _0x233061['push'](_0x233061['shift']());}catch(_0x5bd536){_0x233061['push'](_0x233061['shift']());}}}(a36_0x3ba5,0x80687));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a36_0x5be0ae(0x209),'command':a36_0x5be0ae(0x205),'description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':'read','flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x5be0ae(0x203),'type':'string','description':a36_0x5be0ae(0x1fe)},{'name':a36_0x5be0ae(0x202),'type':a36_0x5be0ae(0x1f8),'required':!![],'description':'Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)'},{'name':a36_0x5be0ae(0x1fa),'type':a36_0x5be0ae(0x1f2),'description':a36_0x5be0ae(0x201)}],async 'execute'(_0x32fee8){const _0x886aab=a36_0x5be0ae,{dataset:_0x47a1d3,operation:_0x216ab1}=await getOperationDetail(_0x32fee8['appCode'],_0x32fee8[_0x886aab(0x1f4)](_0x886aab(0x208)),_0x32fee8['str'](_0x886aab(0x202))),_0x540492=generateSdkCode(_0x47a1d3,_0x216ab1,{'includeImports':!_0x32fee8[_0x886aab(0x1ff)](_0x886aab(0x1fa))});return{'ok':!![],'data':{'dataset':{'name':_0x47a1d3[_0x886aab(0x206)],'code':_0x47a1d3[_0x886aab(0x208)],'tableName':_0x47a1d3[_0x886aab(0x204)]},'operation':_0x32fee8[_0x886aab(0x1f4)]('operation'),'code':_0x540492}};}};
@@ -1 +1 @@
1
- function a37_0x5123(){const _0x35ff2d=['target','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','string','8KNaoRi','374950VYWqsF','342voIuey','boolean','203DjSkyl','157854BgAynN','sqlName','4407381qBVcdp','appCode','sdk','str','10094OkQQKJ','bool','2581775xpRtBL','998780WTbjIp','sqlcode','Omit\x20import\x20statements\x20from\x20generated\x20code','codegen','29800970YJdPFh','no-imports'];a37_0x5123=function(){return _0x35ff2d;};return a37_0x5123();}function a37_0x51e3(_0x52f552,_0x440540){_0x52f552=_0x52f552-0x1bc;const _0x51238c=a37_0x5123();let _0x51e36e=_0x51238c[_0x52f552];return _0x51e36e;}const a37_0x5bcecc=a37_0x51e3;(function(_0x16ad24,_0x32e842){const _0x153b9d=a37_0x51e3,_0x5eea10=_0x16ad24();while(!![]){try{const _0x3272b9=-parseInt(_0x153b9d(0x1c4))/0x1+-parseInt(_0x153b9d(0x1ce))/0x2*(parseInt(_0x153b9d(0x1c5))/0x3)+parseInt(_0x153b9d(0x1d1))/0x4+-parseInt(_0x153b9d(0x1d0))/0x5+-parseInt(_0x153b9d(0x1c8))/0x6*(parseInt(_0x153b9d(0x1c7))/0x7)+parseInt(_0x153b9d(0x1c3))/0x8*(-parseInt(_0x153b9d(0x1ca))/0x9)+parseInt(_0x153b9d(0x1be))/0xa;if(_0x3272b9===_0x32e842)break;else _0x5eea10['push'](_0x5eea10['shift']());}catch(_0xfff089){_0x5eea10['push'](_0x5eea10['shift']());}}}(a37_0x5123,0x7c9fb));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x5bcecc(0x1bd),'command':'sql','description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':'read','flags':[SQLCODE_FLAG,{'name':a37_0x5bcecc(0x1c0),'type':a37_0x5bcecc(0x1c2),'description':a37_0x5bcecc(0x1c1),'default':a37_0x5bcecc(0x1cc),'enum':[a37_0x5bcecc(0x1cc),'bff']},{'name':a37_0x5bcecc(0x1bf),'type':a37_0x5bcecc(0x1c6),'description':a37_0x5bcecc(0x1bc)}],async 'execute'(_0x578f46){const _0x40f8bc=a37_0x5bcecc,_0x2b106f=await getSqlQueryInfo(_0x578f46[_0x40f8bc(0x1cb)],_0x578f46['str'](_0x40f8bc(0x1d2))),_0x5b21ff=_0x578f46[_0x40f8bc(0x1cd)](_0x40f8bc(0x1c0))||_0x40f8bc(0x1cc),_0x3d22dd=generateSqlCodeTemplate(_0x2b106f,{'target':_0x5b21ff,'includeImports':!_0x578f46[_0x40f8bc(0x1cf)](_0x40f8bc(0x1bf))});return{'ok':!![],'data':{'sqlCode':_0x2b106f['sqlCode'],'sqlName':_0x2b106f[_0x40f8bc(0x1c9)],'target':_0x5b21ff,'code':_0x3d22dd}};}};
1
+ const a37_0x5d0b16=a37_0x4f65;function a37_0x4f65(_0x653c03,_0x1d27d7){_0x653c03=_0x653c03-0xf7;const _0x55f233=a37_0x55f2();let _0x4f657e=_0x55f233[_0x653c03];return _0x4f657e;}(function(_0x3c9e88,_0x494779){const _0x59dc4f=a37_0x4f65,_0x3b45b5=_0x3c9e88();while(!![]){try{const _0x340a23=-parseInt(_0x59dc4f(0xff))/0x1+-parseInt(_0x59dc4f(0xf8))/0x2+-parseInt(_0x59dc4f(0x10b))/0x3+-parseInt(_0x59dc4f(0x102))/0x4*(parseInt(_0x59dc4f(0xfa))/0x5)+parseInt(_0x59dc4f(0x10c))/0x6+-parseInt(_0x59dc4f(0x109))/0x7*(parseInt(_0x59dc4f(0x100))/0x8)+-parseInt(_0x59dc4f(0x105))/0x9*(-parseInt(_0x59dc4f(0xfd))/0xa);if(_0x340a23===_0x494779)break;else _0x3b45b5['push'](_0x3b45b5['shift']());}catch(_0x3553f6){_0x3b45b5['push'](_0x3b45b5['shift']());}}}(a37_0x55f2,0x2cc20));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a37_0x55f2(){const _0x293ce6=['bff','45nNSgnG','target','sqlName','Omit\x20import\x20statements\x20from\x20generated\x20code','109347kIZTUt','sdk','955155gLUbRr','31218LuYYCC','sqlcode','39960zNuUiF','bool','276755iFpnPK','no-imports','str','1968490HqSLhK','read','185222ElogsM','88fAOmSQ','appCode','8AeRwCd','codegen'];a37_0x55f2=function(){return _0x293ce6;};return a37_0x55f2();}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x5d0b16(0x103),'command':'sql','description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':a37_0x5d0b16(0xfe),'flags':[SQLCODE_FLAG,{'name':a37_0x5d0b16(0x106),'type':'string','description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':a37_0x5d0b16(0x10a),'enum':[a37_0x5d0b16(0x10a),a37_0x5d0b16(0x104)]},{'name':'no-imports','type':'boolean','description':a37_0x5d0b16(0x108)}],async 'execute'(_0x3e2f8d){const _0x369879=a37_0x5d0b16,_0x2d1d46=await getSqlQueryInfo(_0x3e2f8d[_0x369879(0x101)],_0x3e2f8d[_0x369879(0xfc)](_0x369879(0xf7))),_0x2bd6f8=_0x3e2f8d[_0x369879(0xfc)](_0x369879(0x106))||'sdk',_0x320870=generateSqlCodeTemplate(_0x2d1d46,{'target':_0x2bd6f8,'includeImports':!_0x3e2f8d[_0x369879(0xf9)](_0x369879(0xfb))});return{'ok':!![],'data':{'sqlCode':_0x2d1d46['sqlCode'],'sqlName':_0x2d1d46[_0x369879(0x107)],'target':_0x2bd6f8,'code':_0x320870}};}};
@@ -1 +1 @@
1
- (function(_0x4e5a32,_0x4ea639){const _0x462451=a38_0x5d5c,_0x2dd8df=_0x4e5a32();while(!![]){try{const _0xfd8f7e=parseInt(_0x462451(0x1a5))/0x1+parseInt(_0x462451(0x1bc))/0x2+parseInt(_0x462451(0x1bd))/0x3*(parseInt(_0x462451(0x1c1))/0x4)+parseInt(_0x462451(0x1c2))/0x5*(parseInt(_0x462451(0x1b0))/0x6)+parseInt(_0x462451(0x1b5))/0x7+-parseInt(_0x462451(0x1ba))/0x8*(-parseInt(_0x462451(0x1b8))/0x9)+-parseInt(_0x462451(0x1ac))/0xa;if(_0xfd8f7e===_0x4ea639)break;else _0x2dd8df['push'](_0x2dd8df['shift']());}catch(_0x11c049){_0x2dd8df['push'](_0x2dd8df['shift']());}}}(a38_0x2494,0xa9ecc));function a38_0x2494(){const _0x26374d=['24blTOdv','\x0a未找到可用应用。','1940152DFGXtB','25335hDQpAt','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','message','appCode','132hYuPow','365aeOVYv','custom','find','请选择要绑定的应用:','✎\x20自定义输入\x20appcode','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','appName','1219155cnfzbe','skip','valid','✎\x20手动输入','获取到\x20','未找到可用应用。','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','45084610ASHQJg','map','\x0a无法获取远程应用列表,请手动输入。','正在获取可用应用列表...','68226NhZElG','manual','\x20\x20(','includes','yellow','5450326WytyPf','trim','length','3383568JeGvxB','gray'];a38_0x2494=function(){return _0x26374d;};return a38_0x2494();}import{input,checkbox,select}from'@inquirer/prompts';import a38_0x18593b from'chalk';function a38_0x5d5c(_0x467e6e,_0x4f6f52){_0x467e6e=_0x467e6e-0x1a4;const _0x249498=a38_0x2494();let _0x5d5c00=_0x249498[_0x467e6e];return _0x5d5c00;}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 _0x28f82b=a38_0x5d5c,_0x24276e=await input({'message':'请输入\x20App\x20Code:','validate':_0x2efe68=>{const _0x5db214=a38_0x5d5c,_0x32fcf8=validateAppcode(_0x2efe68[_0x5db214(0x1b6)]());return _0x32fcf8[_0x5db214(0x1a7)]||_0x32fcf8[_0x5db214(0x1bf)]||'Invalid\x20App\x20Code';}});return _0x24276e[_0x28f82b(0x1b6)]();}export async function promptAppSelection(_0x50a63e){const _0xd94afe=a38_0x5d5c,_0x499e39=[{'name':a38_0x18593b['yellow'](_0xd94afe(0x1c6)),'value':-0x1},..._0x50a63e[_0xd94afe(0x1ad)]((_0x6710c5,_0x3f51e2)=>({'name':_0x6710c5[_0xd94afe(0x1a4)]+'\x20\x20'+a38_0x18593b[_0xd94afe(0x1b9)]('('+_0x6710c5[_0xd94afe(0x1c0)]+')'),'value':_0x3f51e2}))],_0x405a2b=await checkbox({'message':_0xd94afe(0x1a9)+a38_0x18593b['cyan'](_0x50a63e[_0xd94afe(0x1b7)])+_0xd94afe(0x1c7),'choices':_0x499e39,'loop':![]});if(_0x405a2b[_0xd94afe(0x1b3)](-0x1))return _0xd94afe(0x1c3);if(_0x405a2b['length']===0x0)return _0xd94afe(0x1c3);return _0x405a2b[_0xd94afe(0x1ad)](_0x1fc6ab=>_0x50a63e[_0x1fc6ab]);}export async function promptSingleAppSelection(_0x32448a){const _0x46026d=a38_0x5d5c,_0x1ed41e=[{'name':a38_0x18593b[_0x46026d(0x1b9)](_0x46026d(0x1ab)),'value':'skip'},{'name':a38_0x18593b[_0x46026d(0x1b4)](_0x46026d(0x1c6)),'value':_0x46026d(0x1c3)},..._0x32448a['map'](_0x42f19f=>({'name':_0x42f19f['appName']+'\x20\x20'+a38_0x18593b[_0x46026d(0x1b9)]('('+_0x42f19f['appCode']+')'),'value':_0x42f19f[_0x46026d(0x1c0)]}))],_0x53eae5=await select({'message':_0x46026d(0x1c5),'choices':_0x1ed41e});if(_0x53eae5===_0x46026d(0x1a6))return _0x46026d(0x1a6);if(_0x53eae5===_0x46026d(0x1c3))return _0x46026d(0x1c3);return _0x32448a[_0x46026d(0x1c4)](_0x267ed3=>_0x267ed3['appCode']===_0x53eae5);}export async function selectSingleAppcode(_0x4396a6){const _0x8b3848=a38_0x5d5c;if(!_0x4396a6)return writeCliSideChannelLine(a38_0x18593b[_0x8b3848(0x1b9)](_0x8b3848(0x1be))),_fallbackOrSkip();writeCliSideChannelLine(_0x8b3848(0x1af));let _0x5863f4;try{_0x5863f4=await withActiveCookie(_0x4396a6,()=>listRemoteApps());}catch(_0xd83cd8){writeCliSideChannelLine(a38_0x18593b[_0x8b3848(0x1b4)]('无法获取远程应用列表,请手动输入。'));if(_0xd83cd8 instanceof Error)writeCliSideChannelLine(a38_0x18593b['gray'](_0x8b3848(0x1b2)+_0xd83cd8[_0x8b3848(0x1bf)]+')'));return _fallbackOrSkip();}if(_0x5863f4[_0x8b3848(0x1b7)]===0x0)return writeCliSideChannelLine(a38_0x18593b[_0x8b3848(0x1b4)](_0x8b3848(0x1aa))),_fallbackOrSkip();const _0x3bf318=await promptSingleAppSelection(_0x5863f4);if(_0x3bf318===_0x8b3848(0x1a6))return'';if(_0x3bf318==='custom')return promptCustomAppcode();return _0x3bf318[_0x8b3848(0x1c0)];}export async function selectMultipleApps(_0x45f8e2){const _0x7311b4=a38_0x5d5c;writeCliSideChannelLine('正在获取可用应用列表...');let _0x136916;try{_0x136916=await withActiveCookie(_0x45f8e2,()=>listRemoteApps());}catch(_0x4cc8f9){writeCliSideChannelLine(_0x7311b4(0x1ae));if(_0x4cc8f9 instanceof Error)writeCliSideChannelLine(_0x7311b4(0x1b2)+_0x4cc8f9['message']+')');return'custom';}if(_0x136916[_0x7311b4(0x1b7)]===0x0)return writeCliSideChannelLine(_0x7311b4(0x1bb)),'custom';return promptAppSelection(_0x136916);}async function _fallbackOrSkip(){const _0x5f06d0=a38_0x5d5c,_0x161eba=await select({'message':'App\x20Code:','choices':[{'name':a38_0x18593b[_0x5f06d0(0x1b9)]('(跳过,稍后配置)'),'value':_0x5f06d0(0x1a6)},{'name':a38_0x18593b[_0x5f06d0(0x1b4)](_0x5f06d0(0x1a8)),'value':_0x5f06d0(0x1b1)}]});if(_0x161eba===_0x5f06d0(0x1a6))return'';return promptCustomAppcode();}
1
+ (function(_0x3117af,_0x4baac8){const _0x51b610=a38_0x42f5,_0x569304=_0x3117af();while(!![]){try{const _0x19d4fc=-parseInt(_0x51b610(0x1f1))/0x1*(-parseInt(_0x51b610(0x1f8))/0x2)+parseInt(_0x51b610(0x1ec))/0x3*(parseInt(_0x51b610(0x1e9))/0x4)+-parseInt(_0x51b610(0x1f4))/0x5*(-parseInt(_0x51b610(0x1f9))/0x6)+-parseInt(_0x51b610(0x1fb))/0x7*(parseInt(_0x51b610(0x1ee))/0x8)+-parseInt(_0x51b610(0x1e7))/0x9*(parseInt(_0x51b610(0x1f0))/0xa)+parseInt(_0x51b610(0x1e5))/0xb+parseInt(_0x51b610(0x1f2))/0xc;if(_0x19d4fc===_0x4baac8)break;else _0x569304['push'](_0x569304['shift']());}catch(_0x4171f5){_0x569304['push'](_0x569304['shift']());}}}(a38_0x38d6,0xca1f2));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x3a9c9b from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a38_0x38d6(){const _0x3ede51=['请输入\x20App\x20Code:','skip','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','App\x20Code:','includes','未找到可用应用。','8575270Cqwpvk','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','9ZCwfnI','appName','16xWTmfa','message','\x0a未找到可用应用。','190581iyFuqA','cyan','952JoSBae','无法获取远程应用列表,请手动输入。','6305690JapanV','3IjvMrx','7905468GJQenA','\x0a无法获取远程应用列表,请手动输入。','75CpvxyN','appCode','\x20\x20(','(跳过,稍后配置)','408214qpwlKM','109194FuSMFt','Invalid\x20App\x20Code','65842FVDsiL','获取到\x20','manual','✎\x20自定义输入\x20appcode','trim','length','gray','map','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','custom','yellow','正在获取可用应用列表...'];a38_0x38d6=function(){return _0x3ede51;};return a38_0x38d6();}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 _0x6920b9=a38_0x42f5,_0x16ee11=await input({'message':_0x6920b9(0x1df),'validate':_0x29eeae=>{const _0x33c75f=_0x6920b9,_0x10d227=validateAppcode(_0x29eeae[_0x33c75f(0x1ff)]());return _0x10d227['valid']||_0x10d227[_0x33c75f(0x1ea)]||_0x33c75f(0x1fa);}});return _0x16ee11['trim']();}export async function promptAppSelection(_0x2bc500){const _0x1a21af=a38_0x42f5,_0x464726=[{'name':a38_0x3a9c9b[_0x1a21af(0x1dd)](_0x1a21af(0x1fe)),'value':-0x1},..._0x2bc500[_0x1a21af(0x1da)]((_0x2c73da,_0x1a5eed)=>({'name':_0x2c73da[_0x1a21af(0x1e8)]+'\x20\x20'+a38_0x3a9c9b[_0x1a21af(0x1d9)]('('+_0x2c73da['appCode']+')'),'value':_0x1a5eed}))],_0x3a7e3a=await checkbox({'message':_0x1a21af(0x1fc)+a38_0x3a9c9b[_0x1a21af(0x1ed)](_0x2bc500[_0x1a21af(0x200)])+_0x1a21af(0x1db),'choices':_0x464726,'loop':![]});if(_0x3a7e3a[_0x1a21af(0x1e3)](-0x1))return _0x1a21af(0x1dc);if(_0x3a7e3a[_0x1a21af(0x200)]===0x0)return _0x1a21af(0x1dc);return _0x3a7e3a[_0x1a21af(0x1da)](_0x312bcc=>_0x2bc500[_0x312bcc]);}export async function promptSingleAppSelection(_0x201961){const _0x4f1648=a38_0x42f5,_0x1d0938=[{'name':a38_0x3a9c9b[_0x4f1648(0x1d9)](_0x4f1648(0x1e6)),'value':'skip'},{'name':a38_0x3a9c9b[_0x4f1648(0x1dd)](_0x4f1648(0x1fe)),'value':_0x4f1648(0x1dc)},..._0x201961[_0x4f1648(0x1da)](_0x59df38=>({'name':_0x59df38[_0x4f1648(0x1e8)]+'\x20\x20'+a38_0x3a9c9b[_0x4f1648(0x1d9)]('('+_0x59df38[_0x4f1648(0x1f5)]+')'),'value':_0x59df38[_0x4f1648(0x1f5)]}))],_0x28b099=await select({'message':'请选择要绑定的应用:','choices':_0x1d0938});if(_0x28b099==='skip')return'skip';if(_0x28b099===_0x4f1648(0x1dc))return _0x4f1648(0x1dc);return _0x201961['find'](_0x5c5d09=>_0x5c5d09['appCode']===_0x28b099);}function a38_0x42f5(_0x58ace9,_0x4ecd5f){_0x58ace9=_0x58ace9-0x1d9;const _0x38d608=a38_0x38d6();let _0x42f518=_0x38d608[_0x58ace9];return _0x42f518;}export async function selectSingleAppcode(_0x5928b0){const _0x162644=a38_0x42f5;if(!_0x5928b0)return writeCliSideChannelLine(a38_0x3a9c9b[_0x162644(0x1d9)](_0x162644(0x1e1))),_fallbackOrSkip();writeCliSideChannelLine(_0x162644(0x1de));let _0x24902e;try{_0x24902e=await withActiveCookie(_0x5928b0,()=>listRemoteApps());}catch(_0x2ac85d){writeCliSideChannelLine(a38_0x3a9c9b[_0x162644(0x1dd)](_0x162644(0x1ef)));if(_0x2ac85d instanceof Error)writeCliSideChannelLine(a38_0x3a9c9b['gray'](_0x162644(0x1f6)+_0x2ac85d[_0x162644(0x1ea)]+')'));return _fallbackOrSkip();}if(_0x24902e[_0x162644(0x200)]===0x0)return writeCliSideChannelLine(a38_0x3a9c9b['yellow'](_0x162644(0x1e4))),_fallbackOrSkip();const _0x219cff=await promptSingleAppSelection(_0x24902e);if(_0x219cff===_0x162644(0x1e0))return'';if(_0x219cff===_0x162644(0x1dc))return promptCustomAppcode();return _0x219cff[_0x162644(0x1f5)];}export async function selectMultipleApps(_0x5ea260){const _0x35bf6d=a38_0x42f5;writeCliSideChannelLine('正在获取可用应用列表...');let _0x64a881;try{_0x64a881=await withActiveCookie(_0x5ea260,()=>listRemoteApps());}catch(_0x1a30cc){writeCliSideChannelLine(_0x35bf6d(0x1f3));if(_0x1a30cc instanceof Error)writeCliSideChannelLine(_0x35bf6d(0x1f6)+_0x1a30cc[_0x35bf6d(0x1ea)]+')');return'custom';}if(_0x64a881[_0x35bf6d(0x200)]===0x0)return writeCliSideChannelLine(_0x35bf6d(0x1eb)),_0x35bf6d(0x1dc);return promptAppSelection(_0x64a881);}async function _fallbackOrSkip(){const _0x1beb48=a38_0x42f5,_0x17a900=await select({'message':_0x1beb48(0x1e2),'choices':[{'name':a38_0x3a9c9b[_0x1beb48(0x1d9)](_0x1beb48(0x1f7)),'value':'skip'},{'name':a38_0x3a9c9b['yellow']('✎\x20手动输入'),'value':_0x1beb48(0x1fd)}]});if(_0x17a900===_0x1beb48(0x1e0))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a39_0x3d7f7f=a39_0x1591;(function(_0x179651,_0x35a344){const _0xf64cbb=a39_0x1591,_0xb989d0=_0x179651();while(!![]){try{const _0xe79e23=parseInt(_0xf64cbb(0x15f))/0x1+parseInt(_0xf64cbb(0x157))/0x2*(-parseInt(_0xf64cbb(0x14d))/0x3)+-parseInt(_0xf64cbb(0x15d))/0x4*(-parseInt(_0xf64cbb(0x154))/0x5)+parseInt(_0xf64cbb(0x150))/0x6*(-parseInt(_0xf64cbb(0x160))/0x7)+-parseInt(_0xf64cbb(0x156))/0x8+parseInt(_0xf64cbb(0x14c))/0x9+parseInt(_0xf64cbb(0x14e))/0xa;if(_0xe79e23===_0x35a344)break;else _0xb989d0['push'](_0xb989d0['shift']());}catch(_0x9728c4){_0xb989d0['push'](_0xb989d0['shift']());}}}(a39_0xeaf2,0xa1499));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x3d7f7f(0x152)};export const CODE_FLAG={'name':'code','type':a39_0x3d7f7f(0x15c),'required':!![],'description':a39_0x3d7f7f(0x151),'pattern':DATASET_CODE_PATTERN};function a39_0xeaf2(){const _0x1b7e07=['8529752gwWpiJ','17426FgBFbK','Database\x20product\x20type','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','POSTGRESQL','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','string','4pDcGVY','dbtype','776443RTIwjG','77krClLO','MYSQL','sqlcode','2705247quRwRX','417tJlbDV','5994230BPuCwV','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','28362twpcup','Dataset\x20code\x20(32-char\x20hex\x20UUID)','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','6567535IjaKaa','appcode'];a39_0xeaf2=function(){return _0x1b7e07;};return a39_0xeaf2();}export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':'datasetcode','description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)'};export const SQLCODE_FLAG={'name':a39_0x3d7f7f(0x14b),'type':'string','required':!![],'description':a39_0x3d7f7f(0x159),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x3d7f7f(0x153)}};function a39_0x1591(_0x5a9dd7,_0xf0ef70){_0x5a9dd7=_0x5a9dd7-0x14b;const _0xeaf24d=a39_0xeaf2();let _0x15918c=_0xeaf24d[_0x5a9dd7];return _0x15918c;}export const APPCODE_FLAG_OPTIONAL={'name':a39_0x3d7f7f(0x155),'type':a39_0x3d7f7f(0x15c),'required':![],'description':a39_0x3d7f7f(0x14f)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':a39_0x3d7f7f(0x15b)};export const DB_TYPE_FLAG={'name':a39_0x3d7f7f(0x15e),'type':a39_0x3d7f7f(0x15c),'required':!![],'description':a39_0x3d7f7f(0x158),'enum':[a39_0x3d7f7f(0x161),a39_0x3d7f7f(0x15a)]};
1
+ const a39_0x5486e0=a39_0x157d;(function(_0x36cbd6,_0x4f7a4b){const _0x45902a=a39_0x157d,_0x34599a=_0x36cbd6();while(!![]){try{const _0x1b6dc8=-parseInt(_0x45902a(0x177))/0x1+parseInt(_0x45902a(0x17d))/0x2+-parseInt(_0x45902a(0x172))/0x3*(-parseInt(_0x45902a(0x178))/0x4)+-parseInt(_0x45902a(0x183))/0x5*(-parseInt(_0x45902a(0x171))/0x6)+-parseInt(_0x45902a(0x174))/0x7*(parseInt(_0x45902a(0x176))/0x8)+-parseInt(_0x45902a(0x173))/0x9+parseInt(_0x45902a(0x182))/0xa;if(_0x1b6dc8===_0x4f7a4b)break;else _0x34599a['push'](_0x34599a['shift']());}catch(_0x528ee1){_0x34599a['push'](_0x34599a['shift']());}}}(a39_0x2b92,0x26526));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x5486e0(0x186)};function a39_0x2b92(){const _0x305fbd=['a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','Dataset\x20code\x20(32-char\x20hex\x20UUID)','2178PBTRDv','115707QySZKG','2615868cDCWXO','164759ZupDpI','datasetcode','8LcEuVc','107886IFELUi','4xjKSWE','string','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','Database\x20product\x20type','MYSQL','317994duAJxG','number','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','sqlcode','appcode','3164980rctGsJ','895KYheAc','code','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)'];a39_0x2b92=function(){return _0x305fbd;};return a39_0x2b92();}export const CODE_FLAG={'name':a39_0x5486e0(0x184),'type':a39_0x5486e0(0x179),'required':!![],'description':a39_0x5486e0(0x187),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x5486e0(0x175),'description':a39_0x5486e0(0x187)};function a39_0x157d(_0x2d4850,_0x3e9140){_0x2d4850=_0x2d4850-0x171;const _0x2b9230=a39_0x2b92();let _0x157d0d=_0x2b9230[_0x2d4850];return _0x157d0d;}export const SQLCODE_FLAG={'name':a39_0x5486e0(0x180),'type':a39_0x5486e0(0x179),'required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x5486e0(0x17f)}};export const APPCODE_FLAG_OPTIONAL={'name':a39_0x5486e0(0x181),'type':'string','required':![],'description':a39_0x5486e0(0x185)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a39_0x5486e0(0x17e),'required':!![],'description':a39_0x5486e0(0x17a)};export const DB_TYPE_FLAG={'name':'dbtype','type':a39_0x5486e0(0x179),'required':!![],'description':a39_0x5486e0(0x17b),'enum':[a39_0x5486e0(0x17c),'POSTGRESQL']};
@@ -1 +1 @@
1
- (function(_0x1bcc50,_0x4d3856){const _0x23a650=a40_0x58eb,_0x15010e=_0x1bcc50();while(!![]){try{const _0xb6c41e=parseInt(_0x23a650(0x19b))/0x1*(-parseInt(_0x23a650(0x1a7))/0x2)+-parseInt(_0x23a650(0x19d))/0x3*(-parseInt(_0x23a650(0x19e))/0x4)+parseInt(_0x23a650(0x1a9))/0x5*(parseInt(_0x23a650(0x1a2))/0x6)+-parseInt(_0x23a650(0x19c))/0x7+-parseInt(_0x23a650(0x19f))/0x8+parseInt(_0x23a650(0x1a4))/0x9*(-parseInt(_0x23a650(0x1a1))/0xa)+parseInt(_0x23a650(0x1a3))/0xb*(parseInt(_0x23a650(0x1a0))/0xc);if(_0xb6c41e===_0x4d3856)break;else _0x15010e['push'](_0x15010e['shift']());}catch(_0x457aff){_0x15010e['push'](_0x15010e['shift']());}}}(a40_0x3d0e,0x82acd));function a40_0x58eb(_0x5e61c3,_0x3867ac){_0x5e61c3=_0x5e61c3-0x19a;const _0x3d0e33=a40_0x3d0e();let _0x58eb91=_0x3d0e33[_0x5e61c3];return _0x58eb91;}function a40_0x3d0e(){const _0x1d0383=['50420HfHXgj','test','length','App\x20Code\x20cannot\x20be\x20empty','4961wGiWNK','857262qgsqQT','12459ZYsllU','684ozVYYl','4205928UmUTdf','18977040Jurohj','3839870TNGTLn','6birmyV','11NPnKyT','9gibGND','trim','App\x20Code\x20cannot\x20exceed\x20100\x20characters','296GHMCuW','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'];a40_0x3d0e=function(){return _0x1d0383;};return a40_0x3d0e();}export function validateAppcode(_0x423d51){const _0x120d2c=a40_0x58eb,_0x49d011=_0x423d51[_0x120d2c(0x1a5)]();if(!_0x49d011)return{'valid':![],'message':_0x120d2c(0x19a)};if(_0x49d011[_0x120d2c(0x1ab)]>0x64)return{'valid':![],'message':_0x120d2c(0x1a6)};if(!/^[A-Za-z0-9_-]+$/[_0x120d2c(0x1aa)](_0x49d011))return{'valid':![],'message':_0x120d2c(0x1a8)};return{'valid':!![]};}
1
+ function a40_0x1747(_0x15d093,_0x3d97f7){_0x15d093=_0x15d093-0x12c;const _0x2827d3=a40_0x2827();let _0x174768=_0x2827d3[_0x15d093];return _0x174768;}function a40_0x2827(){const _0x58c264=['1240EkZoyE','trim','App\x20Code\x20cannot\x20exceed\x20100\x20characters','2430610RvGbqX','166132TYIyAP','App\x20Code\x20cannot\x20be\x20empty','708927CcBGFb','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','2995398YBGfds','test','62892kOwmvq','3182312ZHGQGB','7facxAH','length','6OuvXEi'];a40_0x2827=function(){return _0x58c264;};return a40_0x2827();}(function(_0x13e049,_0x2558fe){const _0x4633b5=a40_0x1747,_0x4eeafe=_0x13e049();while(!![]){try{const _0x5ec010=-parseInt(_0x4633b5(0x137))/0x1+-parseInt(_0x4633b5(0x12d))/0x2+parseInt(_0x4633b5(0x133))/0x3+-parseInt(_0x4633b5(0x131))/0x4+-parseInt(_0x4633b5(0x130))/0x5*(parseInt(_0x4633b5(0x12c))/0x6)+-parseInt(_0x4633b5(0x139))/0x7*(-parseInt(_0x4633b5(0x138))/0x8)+parseInt(_0x4633b5(0x135))/0x9;if(_0x5ec010===_0x2558fe)break;else _0x4eeafe['push'](_0x4eeafe['shift']());}catch(_0x4895f6){_0x4eeafe['push'](_0x4eeafe['shift']());}}}(a40_0x2827,0x5bbc9));export function validateAppcode(_0x2fd3cd){const _0x1e2897=a40_0x1747,_0x201b59=_0x2fd3cd[_0x1e2897(0x12e)]();if(!_0x201b59)return{'valid':![],'message':_0x1e2897(0x132)};if(_0x201b59[_0x1e2897(0x13a)]>0x64)return{'valid':![],'message':_0x1e2897(0x12f)};if(!/^[A-Za-z0-9_-]+$/[_0x1e2897(0x136)](_0x201b59))return{'valid':![],'message':_0x1e2897(0x134)};return{'valid':!![]};}
@@ -1 +1 @@
1
- const a41_0x3ae5f9=a41_0x11d7;(function(_0xecc45f,_0x41136f){const _0x19b022=a41_0x11d7,_0x18cde7=_0xecc45f();while(!![]){try{const _0x53d1d0=-parseInt(_0x19b022(0x1ce))/0x1+-parseInt(_0x19b022(0x1d3))/0x2+parseInt(_0x19b022(0x1c5))/0x3+-parseInt(_0x19b022(0x1d0))/0x4+parseInt(_0x19b022(0x1c8))/0x5*(parseInt(_0x19b022(0x1c9))/0x6)+-parseInt(_0x19b022(0x1c4))/0x7*(-parseInt(_0x19b022(0x1d6))/0x8)+-parseInt(_0x19b022(0x1ca))/0x9;if(_0x53d1d0===_0x41136f)break;else _0x18cde7['push'](_0x18cde7['shift']());}catch(_0x2891c4){_0x18cde7['push'](_0x18cde7['shift']());}}}(a41_0x2422,0xe74e2));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a41_0x11d7(_0x3e53ac,_0x184bce){_0x3e53ac=_0x3e53ac-0x1c3;const _0x2422e7=a41_0x2422();let _0x11d759=_0x2422e7[_0x3e53ac];return _0x11d759;}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x1cd04d){const _0x189b51=a41_0x11d7,_0x4bf97c=_0x1cd04d[_0x189b51(0x1cc)](_0x189b51(0x1d1));if(!_0x4bf97c)throw CliErrors[_0x189b51(0x1d4)](_0x189b51(0x1c7),_0x189b51(0x1cd)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x1b4d17=readConfig(),_0x293b39=_0x4bf97c===_0x189b51(0x1d7)?'appcode':_0x4bf97c,_0x1ab569=_0x1b4d17[_0x293b39];if(_0x1ab569===undefined)throw CliErrors[_0x189b51(0x1d4)](_0x189b51(0x1cf)+_0x4bf97c);return{'ok':!![],'data':typeof _0x1ab569==='object'?_0x1ab569:{[_0x293b39]:_0x1ab569},'message':typeof _0x1ab569===_0x189b51(0x1cb)?undefined:String(_0x1ab569)};}function a41_0x2422(){const _0x3a38c0=['1093960UaIsFF','Key\x20not\x20found:\x20','5227928vHexBY','key','get','349176RQHqRa','validation','config','1168myDBtU','app','read','86996pzCMfF','5000346gztPSE','string','Missing\x20key.','1392395UvkBUv','30MJyRLA','12156381kHPiwR','object','str','Usage:\x20'];a41_0x2422=function(){return _0x3a38c0;};return a41_0x2422();}export const configGetDefinition={'service':a41_0x3ae5f9(0x1d5),'command':a41_0x3ae5f9(0x1d2),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':a41_0x3ae5f9(0x1c3),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a41_0x3ae5f9(0x1c6),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ function a41_0x5e0a(_0x5a8953,_0x68e7e7){_0x5a8953=_0x5a8953-0x1e4;const _0x1dc30a=a41_0x1dc3();let _0x5e0a19=_0x1dc30a[_0x5a8953];return _0x5e0a19;}const a41_0x13ec76=a41_0x5e0a;(function(_0x45c5e6,_0x48efda){const _0x1d0f2f=a41_0x5e0a,_0x1b23ed=_0x45c5e6();while(!![]){try{const _0x50e9c8=-parseInt(_0x1d0f2f(0x1e5))/0x1+parseInt(_0x1d0f2f(0x1e9))/0x2+-parseInt(_0x1d0f2f(0x1f7))/0x3+parseInt(_0x1d0f2f(0x1f6))/0x4*(parseInt(_0x1d0f2f(0x1f5))/0x5)+-parseInt(_0x1d0f2f(0x1ee))/0x6+-parseInt(_0x1d0f2f(0x1f1))/0x7*(parseInt(_0x1d0f2f(0x1ea))/0x8)+-parseInt(_0x1d0f2f(0x1ef))/0x9*(-parseInt(_0x1d0f2f(0x1f0))/0xa);if(_0x50e9c8===_0x48efda)break;else _0x1b23ed['push'](_0x1b23ed['shift']());}catch(_0xbb92d8){_0x1b23ed['push'](_0x1b23ed['shift']());}}}(a41_0x1dc3,0x6a6d8));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a41_0x1dc3(){const _0x1ca41d=['object','Missing\x20key.','49851iWadIm','Usage:\x20','str','Key\x20not\x20found:\x20','1183074ZRGckg','22672EUsGaj','key','\x20config\x20get\x20--key\x20<key>','app','2095758HSfWhd','36vpGHPo','1748070XSiZFR','1799KYsjFB','validation','Get\x20a\x20config\x20value\x20by\x20key','string','3144965gqmlgD','4WesGbL','1069044NDMqaf','read'];a41_0x1dc3=function(){return _0x1ca41d;};return a41_0x1dc3();}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x2e0607){const _0x5e1f80=a41_0x5e0a,_0x4b6721=_0x2e0607[_0x5e1f80(0x1e7)]('key');if(!_0x4b6721)throw CliErrors[_0x5e1f80(0x1f2)](_0x5e1f80(0x1e4),_0x5e1f80(0x1e6)+CLI_BIN_NAME+_0x5e1f80(0x1ec));const _0x5682af=readConfig(),_0x1d0e04=_0x4b6721===_0x5e1f80(0x1ed)?'appcode':_0x4b6721,_0x1318e1=_0x5682af[_0x1d0e04];if(_0x1318e1===undefined)throw CliErrors[_0x5e1f80(0x1f2)](_0x5e1f80(0x1e8)+_0x4b6721);return{'ok':!![],'data':typeof _0x1318e1==='object'?_0x1318e1:{[_0x1d0e04]:_0x1318e1},'message':typeof _0x1318e1===_0x5e1f80(0x1f9)?undefined:String(_0x1318e1)};}export const configGetDefinition={'service':'config','command':'get','description':a41_0x13ec76(0x1f3),'risk':a41_0x13ec76(0x1f8),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x13ec76(0x1eb),'type':a41_0x13ec76(0x1f4),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x23c5c1,_0x3ba5e4){const _0x2e093d=a42_0x47af,_0x4448c8=_0x23c5c1();while(!![]){try{const _0x37e9dd=-parseInt(_0x2e093d(0x173))/0x1*(-parseInt(_0x2e093d(0x174))/0x2)+-parseInt(_0x2e093d(0x178))/0x3*(parseInt(_0x2e093d(0x17a))/0x4)+parseInt(_0x2e093d(0x17b))/0x5*(parseInt(_0x2e093d(0x177))/0x6)+-parseInt(_0x2e093d(0x176))/0x7*(parseInt(_0x2e093d(0x175))/0x8)+-parseInt(_0x2e093d(0x179))/0x9*(parseInt(_0x2e093d(0x171))/0xa)+-parseInt(_0x2e093d(0x172))/0xb+parseInt(_0x2e093d(0x170))/0xc;if(_0x37e9dd===_0x3ba5e4)break;else _0x4448c8['push'](_0x4448c8['shift']());}catch(_0x54a6f6){_0x4448c8['push'](_0x4448c8['shift']());}}}(a42_0x116d,0xdbb7f));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];function a42_0x47af(_0x559c84,_0x45c58c){_0x559c84=_0x559c84-0x170;const _0x116d96=a42_0x116d();let _0x47af80=_0x116d96[_0x559c84];return _0x47af80;}function a42_0x116d(){const _0x13c2e0=['424ySsqSd','5veqMcY','27965604YFXXWm','110bVaVUh','16503025STqtxm','3nZAnbG','535358nUbwOo','328LWXbJc','78393pgxDdC','7494978ReixOJ','17880kVphAB','729414JXWsKn'];a42_0x116d=function(){return _0x13c2e0;};return a42_0x116d();}
1
+ function a42_0x5b0b(){const _0x42166e=['6RCROCE','2568146BYJJpt','6aNRNaQ','357690tEUOzf','20IVBGEe','160777ODObZc','515588eBKhxI','2PPVRSG','1846188RbcuVc','10706663cjvSmD','4757640IVwNOw'];a42_0x5b0b=function(){return _0x42166e;};return a42_0x5b0b();}(function(_0x40f187,_0x498418){const _0x1324d1=a42_0x248f,_0x13c3ce=_0x40f187();while(!![]){try{const _0xdc9249=-parseInt(_0x1324d1(0xb0))/0x1*(-parseInt(_0x1324d1(0xb2))/0x2)+parseInt(_0x1324d1(0xb8))/0x3*(-parseInt(_0x1324d1(0xb1))/0x4)+parseInt(_0x1324d1(0xae))/0x5+-parseInt(_0x1324d1(0xb6))/0x6*(-parseInt(_0x1324d1(0xb7))/0x7)+parseInt(_0x1324d1(0xb5))/0x8+parseInt(_0x1324d1(0xb3))/0x9*(parseInt(_0x1324d1(0xaf))/0xa)+-parseInt(_0x1324d1(0xb4))/0xb;if(_0xdc9249===_0x498418)break;else _0x13c3ce['push'](_0x13c3ce['shift']());}catch(_0x39ee79){_0x13c3ce['push'](_0x13c3ce['shift']());}}}(a42_0x5b0b,0x5b12b));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a42_0x248f(_0x45f057,_0x57da8f){_0x45f057=_0x45f057-0xae;const _0x5b0bf2=a42_0x5b0b();let _0x248f52=_0x5b0bf2[_0x45f057];return _0x248f52;}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- const a43_0x21e7c0=a43_0x55e9;(function(_0x30f181,_0xaa3487){const _0x3f4685=a43_0x55e9,_0x9e5402=_0x30f181();while(!![]){try{const _0x47b73e=-parseInt(_0x3f4685(0xd5))/0x1+parseInt(_0x3f4685(0xd7))/0x2*(parseInt(_0x3f4685(0xd3))/0x3)+-parseInt(_0x3f4685(0xdf))/0x4*(parseInt(_0x3f4685(0xda))/0x5)+parseInt(_0x3f4685(0xdb))/0x6*(parseInt(_0x3f4685(0xd2))/0x7)+-parseInt(_0x3f4685(0xd0))/0x8+-parseInt(_0x3f4685(0xd6))/0x9*(parseInt(_0x3f4685(0xd4))/0xa)+-parseInt(_0x3f4685(0xd9))/0xb*(-parseInt(_0x3f4685(0xd1))/0xc);if(_0x47b73e===_0xaa3487)break;else _0x9e5402['push'](_0x9e5402['shift']());}catch(_0x3be417){_0x9e5402['push'](_0x9e5402['shift']());}}}(a43_0x5ab3,0x36aa6));import{readScopedConfig}from'../../commands/config/shared.js';function a43_0x55e9(_0x1f208d,_0x149c0e){_0x1f208d=_0x1f208d-0xd0;const _0x5ab346=a43_0x5ab3();let _0x55e969=_0x5ab346[_0x1f208d];return _0x55e969;}import{readConfig}from'../../utils/config.js';function a43_0x5ab3(){const _0x43a242=['4794036OknDRx','28lcdERN','6957LymclO','44390aIFSFE','248328rXdfBG','801hqNjlh','58HXpdTA','boolean','22HFzIdO','5BNSfic','630318RSybbK','global','read','list','370492RVyFyP','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','2612296tiJKRp'];a43_0x5ab3=function(){return _0x43a242;};return a43_0x5ab3();}async function execute(_0x568375){const _0x545adf=a43_0x55e9,_0x30aaf4=_0x568375['bool'](_0x545adf(0xdc))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x30aaf4};}export const configListDefinition={'service':'config','command':a43_0x21e7c0(0xde),'description':'List\x20all\x20config\x20values','risk':a43_0x21e7c0(0xdd),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'global','type':a43_0x21e7c0(0xd8),'description':a43_0x21e7c0(0xe0),'default':![]}],'execute':execute};
1
+ function a43_0x1b7b(_0x357e4f,_0x17d691){_0x357e4f=_0x357e4f-0x13e;const _0x54266f=a43_0x5426();let _0x1b7b16=_0x54266f[_0x357e4f];return _0x1b7b16;}const a43_0x3f90ce=a43_0x1b7b;(function(_0xef9b2f,_0x376538){const _0x4999f3=a43_0x1b7b,_0x5dc90b=_0xef9b2f();while(!![]){try{const _0x331472=-parseInt(_0x4999f3(0x13e))/0x1+parseInt(_0x4999f3(0x14d))/0x2+parseInt(_0x4999f3(0x14e))/0x3+parseInt(_0x4999f3(0x146))/0x4*(-parseInt(_0x4999f3(0x14c))/0x5)+parseInt(_0x4999f3(0x143))/0x6+parseInt(_0x4999f3(0x144))/0x7*(parseInt(_0x4999f3(0x14a))/0x8)+-parseInt(_0x4999f3(0x149))/0x9;if(_0x331472===_0x376538)break;else _0x5dc90b['push'](_0x5dc90b['shift']());}catch(_0x1e7a49){_0x5dc90b['push'](_0x5dc90b['shift']());}}}(a43_0x5426,0x32c61));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x35cb53){const _0x5eba82=a43_0x1b7b,_0x58da46=_0x35cb53[_0x5eba82(0x13f)](_0x5eba82(0x148))?readScopedConfig(_0x5eba82(0x148)):readConfig();return{'ok':!![],'data':_0x58da46};}export const configListDefinition={'service':a43_0x3f90ce(0x140),'command':a43_0x3f90ce(0x147),'description':a43_0x3f90ce(0x142),'risk':a43_0x3f90ce(0x145),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x3f90ce(0x148),'type':a43_0x3f90ce(0x14b),'description':a43_0x3f90ce(0x141),'default':![]}],'execute':execute};function a43_0x5426(){const _0x1fe037=['777665VtvZxE','486842oIJRcg','207858LcfhUi','260339zljWnz','bool','config','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','List\x20all\x20config\x20values','1245846RGNIef','338499dfoygo','read','4rLAZjx','list','global','374202cgyCWe','24zNxbYv','boolean'];a43_0x5426=function(){return _0x1fe037;};return a43_0x5426();}
@@ -1 +1 @@
1
- function a44_0x5261(){const _0x265d6e=['Top-level\x20key\x20\x22','join','keys','object','appcode','apps','911679ytrzas','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','bool','string','Config\x20value','Missing\x20value.','Settable\x20top-level\x20keys:\x20','includes','env','str','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','riskLevel','Invalid\x20locale\x20value.','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Missing\x20key.','value','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','\x22\x20is\x20not\x20settable.','\x20app\x20add\x20<name>\x20--appcode\x20','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','app','Project','\x20appcode\x20set\x20to:\x20','validation','Global','\x20set\x20to:\x20','key','\x22.\x20Allowed:\x20','Invalid\x20value\x20for\x20\x22','66swZJIm','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','length','Usage:\x20','10094FZDJlv','`,\x20`','4168AZANfc','locale','8199KqPxqt','192YtbQeT','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','491910lPeXYl','write','1946266TuSQrk','11zZbaJB','config','11450976kPOMRB','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','5655320RtHGoJ','global','4KACgNi'];a44_0x5261=function(){return _0x265d6e;};return a44_0x5261();}const a44_0x41e7d6=a44_0x2a20;(function(_0x52f2af,_0x9d8fa1){const _0x13e1a1=a44_0x2a20,_0x49b461=_0x52f2af();while(!![]){try{const _0x4ff724=parseInt(_0x13e1a1(0x127))/0x1*(parseInt(_0x13e1a1(0x122))/0x2)+-parseInt(_0x13e1a1(0x139))/0x3*(-parseInt(_0x13e1a1(0x132))/0x4)+parseInt(_0x13e1a1(0x129))/0x5*(parseInt(_0x13e1a1(0x11e))/0x6)+parseInt(_0x13e1a1(0x12b))/0x7+parseInt(_0x13e1a1(0x124))/0x8*(-parseInt(_0x13e1a1(0x126))/0x9)+parseInt(_0x13e1a1(0x130))/0xa*(-parseInt(_0x13e1a1(0x12c))/0xb)+-parseInt(_0x13e1a1(0x12e))/0xc;if(_0x4ff724===_0x9d8fa1)break;else _0x49b461['push'](_0x49b461['shift']());}catch(_0x35febe){_0x49b461['push'](_0x49b461['shift']());}}}(a44_0x5261,0x9bf1a));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(_0xabe365){const _0x19cf0e=a44_0x2a20,_0x57df32=_0xabe365[_0x19cf0e(0x142)](_0x19cf0e(0x11b)),_0x510908=_0xabe365[_0x19cf0e(0x142)](_0x19cf0e(0x148));if(!_0x57df32)throw CliErrors['validation'](_0x19cf0e(0x147),_0x19cf0e(0x121)+CLI_BIN_NAME+_0x19cf0e(0x146));if(_0x510908===undefined||_0x510908==='')throw CliErrors['validation'](_0x19cf0e(0x13e),_0x19cf0e(0x121)+CLI_BIN_NAME+_0x19cf0e(0x146));if(_0x510908[_0x19cf0e(0x120)]>0x1f4)throw CliErrors[_0x19cf0e(0x118)](_0x19cf0e(0x128));if(!isTopLevelConfigKey(_0x57df32))throw CliErrors[_0x19cf0e(0x118)](_0x19cf0e(0x133)+_0x57df32+_0x19cf0e(0x14a),_0x19cf0e(0x13f)+getTopLevelConfigKeySummary());if(_0x57df32===_0x19cf0e(0x144))throw CliErrors['validation'](_0x19cf0e(0x11f));if(CONFIG_ENUM_VALUES[_0x57df32]&&!CONFIG_ENUM_VALUES[_0x57df32][_0x19cf0e(0x140)](_0x510908))throw CliErrors[_0x19cf0e(0x118)](_0x19cf0e(0x11d)+_0x57df32+_0x19cf0e(0x11c)+CONFIG_ENUM_VALUES[_0x57df32][_0x19cf0e(0x134)](',\x20'));if(_0x57df32===_0x19cf0e(0x125)&&!normalizeLocale(_0x510908))throw CliErrors[_0x19cf0e(0x118)](_0x19cf0e(0x145),_0x19cf0e(0x12f));const _0xd068ec={'global':_0xabe365[_0x19cf0e(0x13b)](_0x19cf0e(0x131))},_0x1411c1=resolveWriteScope(_0xd068ec),_0x266d20=readScopedConfig(_0x1411c1);let _0x7ea0d4=_0x57df32,_0x3b8213=_0x510908;_0x57df32===_0x19cf0e(0x115)&&(_0x7ea0d4=_0x19cf0e(0x137),delete _0x266d20[_0x19cf0e(0x115)]);_0x57df32===_0x19cf0e(0x125)&&(_0x3b8213=normalizeLocale(_0x510908));if(_0x57df32==='env'){_0x3b8213=normalizeEnv(_0x510908);if(!isProduction(_0x3b8213)&&!isDaily(_0x3b8213))throw CliErrors[_0x19cf0e(0x118)](_0x19cf0e(0x149),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x57df32===_0x19cf0e(0x137)){const _0x50a8f4=_0x266d20[_0x19cf0e(0x138)]&&typeof _0x266d20[_0x19cf0e(0x138)]===_0x19cf0e(0x136)?Object[_0x19cf0e(0x135)](_0x266d20[_0x19cf0e(0x138)]):[];if(_0x50a8f4[_0x19cf0e(0x120)]>0x0)throw CliErrors['validation'](_0x19cf0e(0x14c),'Use\x20`'+CLI_BIN_NAME+_0x19cf0e(0x14b)+_0x3b8213+_0x19cf0e(0x123)+CLI_BIN_NAME+_0x19cf0e(0x143));const _0x530007=buildCanonicalProjectConfig({..._0x266d20},{'appCodes':[_0x3b8213],'env':typeof _0x266d20['env']===_0x19cf0e(0x13c)?_0x266d20[_0x19cf0e(0x141)]:undefined});writeScopedConfig(_0x530007,_0x1411c1);const _0x2fa0bc=_0x1411c1===_0x19cf0e(0x131)?_0x19cf0e(0x119):_0x19cf0e(0x116);return{'ok':!![],'message':'✓\x20'+_0x2fa0bc+_0x19cf0e(0x117)+_0x3b8213+'\x20(stored\x20as\x20apps\x20+\x20defaultApp)'};}_0x266d20[_0x7ea0d4]=_0x3b8213,writeScopedConfig(_0x266d20,_0x1411c1);const _0x5c2d49=_0x1411c1===_0x19cf0e(0x131)?_0x19cf0e(0x119):_0x19cf0e(0x116);return{'ok':!![],'message':'✓\x20'+_0x5c2d49+'\x20'+_0x7ea0d4+_0x19cf0e(0x11a)+_0x3b8213};}function a44_0x2a20(_0x4d6aef,_0x138daa){_0x4d6aef=_0x4d6aef-0x115;const _0x52610b=a44_0x5261();let _0x2a20ab=_0x52610b[_0x4d6aef];return _0x2a20ab;}export const configSetDefinition={'service':a44_0x41e7d6(0x12d),'command':'set','description':'Set\x20a\x20config\x20value','risk':a44_0x41e7d6(0x12a),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a44_0x41e7d6(0x11b),'type':a44_0x41e7d6(0x13c),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x41e7d6(0x148),'type':'string','description':a44_0x41e7d6(0x13d),'required':!![]},{'name':'global','type':'boolean','description':a44_0x41e7d6(0x13a),'default':![]}],'execute':execute};
1
+ const a44_0x33a9d3=a44_0x3b40;function a44_0x3b40(_0x49e476,_0xaaaad5){_0x49e476=_0x49e476-0xaa;const _0x3eed69=a44_0x3eed();let _0x3b4087=_0x3eed69[_0x49e476];return _0x3b4087;}(function(_0x3639eb,_0x1374a7){const _0x212de5=a44_0x3b40,_0x1709ba=_0x3639eb();while(!![]){try{const _0x27af1f=parseInt(_0x212de5(0xd2))/0x1+-parseInt(_0x212de5(0xd0))/0x2*(-parseInt(_0x212de5(0xc2))/0x3)+parseInt(_0x212de5(0xc6))/0x4+-parseInt(_0x212de5(0xc1))/0x5*(-parseInt(_0x212de5(0xca))/0x6)+parseInt(_0x212de5(0xd1))/0x7*(parseInt(_0x212de5(0xda))/0x8)+parseInt(_0x212de5(0xbe))/0x9*(-parseInt(_0x212de5(0xd4))/0xa)+parseInt(_0x212de5(0xb9))/0xb*(-parseInt(_0x212de5(0xb6))/0xc);if(_0x27af1f===_0x1374a7)break;else _0x1709ba['push'](_0x1709ba['shift']());}catch(_0x5369e8){_0x1709ba['push'](_0x1709ba['shift']());}}}(a44_0x3eed,0xe301a));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a44_0x3eed(){const _0x1f83c0=['apps','Global','key','global','Invalid\x20locale\x20value.','Usage:\x20','\x22\x20is\x20not\x20settable.','write','Top-level\x20key\x20\x22','join','Missing\x20value.','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','31533612WkXjRk','str','validation','11AbhtvL','includes','Set\x20a\x20config\x20value','Missing\x20key.','`,\x20`','666ngqmzP','string','\x20set\x20to:\x20','526835LeJFuM','1110387BdPhna','value','appcode','locale','3208012MnSiaa','Settable\x20top-level\x20keys:\x20','config','\x20appcode\x20set\x20to:\x20','6kWZEkB','app','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','env','length','Project','4SOxrla','1639519qHJizP','1464934fVBauZ','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','34810ibdXjP','riskLevel','\x20app\x20add\x20<name>\x20--appcode\x20','keys','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','object','24MquSPa','\x22.\x20Allowed:\x20'];a44_0x3eed=function(){return _0x1f83c0;};return a44_0x3eed();}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(_0x21e835){const _0x54f95d=a44_0x3b40,_0x104779=_0x21e835['str'](_0x54f95d(0xab)),_0x5a72ee=_0x21e835[_0x54f95d(0xb7)](_0x54f95d(0xc3));if(!_0x104779)throw CliErrors['validation'](_0x54f95d(0xbc),_0x54f95d(0xae)+CLI_BIN_NAME+_0x54f95d(0xb4));if(_0x5a72ee===undefined||_0x5a72ee==='')throw CliErrors[_0x54f95d(0xb8)](_0x54f95d(0xb3),_0x54f95d(0xae)+CLI_BIN_NAME+_0x54f95d(0xb4));if(_0x5a72ee[_0x54f95d(0xce)]>0x1f4)throw CliErrors[_0x54f95d(0xb8)](_0x54f95d(0xd8));if(!isTopLevelConfigKey(_0x104779))throw CliErrors[_0x54f95d(0xb8)](_0x54f95d(0xb1)+_0x104779+_0x54f95d(0xaf),_0x54f95d(0xc7)+getTopLevelConfigKeySummary());if(_0x104779===_0x54f95d(0xd5))throw CliErrors['validation']('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(CONFIG_ENUM_VALUES[_0x104779]&&!CONFIG_ENUM_VALUES[_0x104779][_0x54f95d(0xba)](_0x5a72ee))throw CliErrors['validation']('Invalid\x20value\x20for\x20\x22'+_0x104779+_0x54f95d(0xdb)+CONFIG_ENUM_VALUES[_0x104779][_0x54f95d(0xb2)](',\x20'));if(_0x104779===_0x54f95d(0xc5)&&!normalizeLocale(_0x5a72ee))throw CliErrors['validation'](_0x54f95d(0xad),_0x54f95d(0xcc));const _0x51797c={'global':_0x21e835['bool'](_0x54f95d(0xac))},_0x8498ff=resolveWriteScope(_0x51797c),_0x4285eb=readScopedConfig(_0x8498ff);let _0xffe4a1=_0x104779,_0x5a5462=_0x5a72ee;_0x104779===_0x54f95d(0xcb)&&(_0xffe4a1=_0x54f95d(0xc4),delete _0x4285eb[_0x54f95d(0xcb)]);_0x104779==='locale'&&(_0x5a5462=normalizeLocale(_0x5a72ee));if(_0x104779===_0x54f95d(0xcd)){_0x5a5462=normalizeEnv(_0x5a72ee);if(!isProduction(_0x5a5462)&&!isDaily(_0x5a5462))throw CliErrors[_0x54f95d(0xb8)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.',_0x54f95d(0xb5));}if(_0x104779==='appcode'){const _0xc33865=_0x4285eb['apps']&&typeof _0x4285eb['apps']===_0x54f95d(0xd9)?Object[_0x54f95d(0xd7)](_0x4285eb[_0x54f95d(0xdc)]):[];if(_0xc33865['length']>0x0)throw CliErrors[_0x54f95d(0xb8)]('Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Use\x20`'+CLI_BIN_NAME+_0x54f95d(0xd6)+_0x5a5462+_0x54f95d(0xbd)+CLI_BIN_NAME+'\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0xb8be7f=buildCanonicalProjectConfig({..._0x4285eb},{'appCodes':[_0x5a5462],'env':typeof _0x4285eb[_0x54f95d(0xcd)]===_0x54f95d(0xbf)?_0x4285eb[_0x54f95d(0xcd)]:undefined});writeScopedConfig(_0xb8be7f,_0x8498ff);const _0x30c2bd=_0x8498ff===_0x54f95d(0xac)?_0x54f95d(0xaa):_0x54f95d(0xcf);return{'ok':!![],'message':'✓\x20'+_0x30c2bd+_0x54f95d(0xc9)+_0x5a5462+_0x54f95d(0xd3)};}_0x4285eb[_0xffe4a1]=_0x5a5462,writeScopedConfig(_0x4285eb,_0x8498ff);const _0x48167d=_0x8498ff==='global'?_0x54f95d(0xaa):_0x54f95d(0xcf);return{'ok':!![],'message':'✓\x20'+_0x48167d+'\x20'+_0xffe4a1+_0x54f95d(0xc0)+_0x5a5462};}export const configSetDefinition={'service':a44_0x33a9d3(0xc8),'command':'set','description':a44_0x33a9d3(0xbb),'risk':a44_0x33a9d3(0xb0),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a44_0x33a9d3(0xab),'type':a44_0x33a9d3(0xbf),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x33a9d3(0xc3),'type':a44_0x33a9d3(0xbf),'description':'Config\x20value','required':!![]},{'name':'global','type':'boolean','description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- function a45_0x11f2(){var _0x4f8c7b=['validation','750185ecfCnP','project','712uosNhk','308272OQzLAE','6108QdXaPX','10seAFEZ','153666tMgUIf','23oReuWQ','global','736392MEPHJW','\x20init`\x20first.','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','18676CPeDYf','374280ffCvHb'];a45_0x11f2=function(){return _0x4f8c7b;};return a45_0x11f2();}(function(_0x3ba888,_0x16e45d){var _0x20524d=a45_0x1914,_0xb63541=_0x3ba888();while(!![]){try{var _0x38ec4a=-parseInt(_0x20524d(0xe5))/0x1*(parseInt(_0x20524d(0xf1))/0x2)+parseInt(_0x20524d(0xeb))/0x3+parseInt(_0x20524d(0xf0))/0x4+parseInt(_0x20524d(0xed))/0x5+parseInt(_0x20524d(0xe7))/0x6+-parseInt(_0x20524d(0xea))/0x7*(parseInt(_0x20524d(0xef))/0x8)+parseInt(_0x20524d(0xe4))/0x9*(-parseInt(_0x20524d(0xe3))/0xa);if(_0x38ec4a===_0x16e45d)break;else _0xb63541['push'](_0xb63541['shift']());}catch(_0x25d46e){_0xb63541['push'](_0xb63541['shift']());}}}(a45_0x11f2,0x24945));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a45_0x1914(_0x5526a2,_0x5cf8b5){_0x5526a2=_0x5526a2-0xe3;var _0x11f23b=a45_0x11f2();var _0x1914b4=_0x11f23b[_0x5526a2];return _0x1914b4;}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(_0x5cfa77){var _0x315b8=a45_0x1914;if(_0x5cfa77[_0x315b8(0xe6)])return _0x315b8(0xe6);if(!isInProject())throw CliErrors[_0x315b8(0xec)](_0x315b8(0xe9),'Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x315b8(0xe8));return _0x315b8(0xee);}export function readScopedConfig(_0x36c60a){return readConfigFile(resolveWriteConfigPath(_0x36c60a));}export function writeScopedConfig(_0x50c15f,_0x39bffc){writeConfigFile(resolveWriteConfigPath(_0x39bffc),_0x50c15f);}
1
+ (function(_0x296c5c,_0x2f8f60){var _0x5776eb=a45_0x1d74,_0x25e90a=_0x296c5c();while(!![]){try{var _0x397e1b=-parseInt(_0x5776eb(0xdc))/0x1+parseInt(_0x5776eb(0xdf))/0x2+parseInt(_0x5776eb(0xda))/0x3+-parseInt(_0x5776eb(0xe0))/0x4*(-parseInt(_0x5776eb(0xdb))/0x5)+-parseInt(_0x5776eb(0xd6))/0x6*(parseInt(_0x5776eb(0xd7))/0x7)+-parseInt(_0x5776eb(0xde))/0x8+parseInt(_0x5776eb(0xd9))/0x9;if(_0x397e1b===_0x2f8f60)break;else _0x25e90a['push'](_0x25e90a['shift']());}catch(_0x1439be){_0x25e90a['push'](_0x25e90a['shift']());}}}(a45_0x5195,0x5a460));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a45_0x5195(){var _0xe68f0e=['7344huOnwU','18196PBXAAE','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','global','660hGOuHc','34034trYmqD','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','8105058NQPqAO','1671903NxFhpa','230iPOvAn','320209HqmyKR','\x20init`\x20first.','3568000HCmxSs'];a45_0x5195=function(){return _0xe68f0e;};return a45_0x5195();}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};function a45_0x1d74(_0x29e8c0,_0x584af7){_0x29e8c0=_0x29e8c0-0xd4;var _0x519547=a45_0x5195();var _0x1d74e2=_0x519547[_0x29e8c0];return _0x1d74e2;}export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x443648){var _0x5d03c0=a45_0x1d74;if(_0x443648[_0x5d03c0(0xd5)])return _0x5d03c0(0xd5);if(!isInProject())throw CliErrors['validation'](_0x5d03c0(0xd4),_0x5d03c0(0xd8)+CLI_BIN_NAME+_0x5d03c0(0xdd));return'project';}export function readScopedConfig(_0x268147){return readConfigFile(resolveWriteConfigPath(_0x268147));}export function writeScopedConfig(_0x4ca6a1,_0x4eb3ff){writeConfigFile(resolveWriteConfigPath(_0x4eb3ff),_0x4ca6a1);}
@@ -1 +1 @@
1
- const a46_0x39b048=a46_0x261e;function a46_0x117a(){const _0x29ebfb=['6WrjwNM','\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]','34676chrwMZ','\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}]','6511797NHoMmE','719635ffmHaO','11725960UOpjwJ','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','52AYaplY','786232koHKqY','32CLrbDT','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','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','517218aCuVJa','4270005FkzsNO','filter','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)'];a46_0x117a=function(){return _0x29ebfb;};return a46_0x117a();}(function(_0x52ef34,_0x2fb3c3){const _0x5c57ea=a46_0x261e,_0x5e7042=_0x52ef34();while(!![]){try{const _0xdd2c4a=parseInt(_0x5c57ea(0xdb))/0x1*(-parseInt(_0x5c57ea(0xd5))/0x2)+parseInt(_0x5c57ea(0xe0))/0x3+-parseInt(_0x5c57ea(0xdc))/0x4+-parseInt(_0x5c57ea(0xe1))/0x5*(parseInt(_0x5c57ea(0xd3))/0x6)+parseInt(_0x5c57ea(0xd8))/0x7*(parseInt(_0x5c57ea(0xdd))/0x8)+parseInt(_0x5c57ea(0xd7))/0x9+parseInt(_0x5c57ea(0xd9))/0xa;if(_0xdd2c4a===_0x2fb3c3)break;else _0x5e7042['push'](_0x5e7042['shift']());}catch(_0x5f191b){_0x5e7042['push'](_0x5e7042['shift']());}}}(a46_0x117a,0x80d04));function a46_0x261e(_0x21accc,_0x35a08b){_0x21accc=_0x21accc-0xd2;const _0x117a3a=a46_0x117a();let _0x261e30=_0x117a3a[_0x21accc];return _0x261e30;}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':'filter','operation':a46_0x39b048(0xe2),'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsRequired':![],'paramsHint':a46_0x39b048(0xdf),'helpExtra':[a46_0x39b048(0xd2),a46_0x39b048(0xde),a46_0x39b048(0xd4),a46_0x39b048(0xd6),a46_0x39b048(0xda),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page']['join']('\x0a')});
1
+ const a46_0x1245e9=a46_0x537d;(function(_0x115599,_0x416dc2){const _0x3478c8=a46_0x537d,_0x2be365=_0x115599();while(!![]){try{const _0x3f8830=parseInt(_0x3478c8(0x145))/0x1*(parseInt(_0x3478c8(0x142))/0x2)+-parseInt(_0x3478c8(0x149))/0x3+-parseInt(_0x3478c8(0x147))/0x4*(parseInt(_0x3478c8(0x13d))/0x5)+parseInt(_0x3478c8(0x13b))/0x6+parseInt(_0x3478c8(0x14a))/0x7*(parseInt(_0x3478c8(0x146))/0x8)+-parseInt(_0x3478c8(0x13f))/0x9+-parseInt(_0x3478c8(0x148))/0xa*(-parseInt(_0x3478c8(0x13e))/0xb);if(_0x3f8830===_0x416dc2)break;else _0x2be365['push'](_0x2be365['shift']());}catch(_0x5e3a44){_0x2be365['push'](_0x2be365['shift']());}}}(a46_0x261e,0xc1ab5));function a46_0x537d(_0x3a13a4,_0x2c481e){_0x3a13a4=_0x3a13a4-0x13b;const _0x261e6b=a46_0x261e();let _0x537dbb=_0x261e6b[_0x3a13a4];return _0x537dbb;}function a46_0x261e(){const _0x2199c3=['13792530jEkkmW','3328269FnXZoQ','644wMDRkW','6136434GsCDZJ','\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]','5sqEEZE','11ovhwQV','2770749TdQpQW','filter','Filter\x20dataset\x20records\x20with\x20query\x20conditions','320338edemxr','join','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','2oWeDou','42608abQSdZ','4007076RVCAmT'];a46_0x261e=function(){return _0x2199c3;};return a46_0x261e();}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a46_0x1245e9(0x140),'operation':a46_0x1245e9(0x140),'description':a46_0x1245e9(0x141),'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':['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a46_0x1245e9(0x144),a46_0x1245e9(0x13c),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page'][a46_0x1245e9(0x143)]('\x0a')});
@@ -1 +1 @@
1
- const a47_0x583bef=a47_0x2fe2;function a47_0x2fe2(_0x3f03c7,_0x309644){_0x3f03c7=_0x3f03c7-0x1da;const _0x5a4dd2=a47_0x5a4d();let _0x2fe240=_0x5a4dd2[_0x3f03c7];return _0x2fe240;}function a47_0x5a4d(){const _0x23f9b5=['52VfqFRp','7gTXARB','18tIyLZx','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','11JCiCjP','170OdUgif','1301000XbZRPt','2CjDvTp','10140672ECRnCi','808227BksBzY','215492IKvJlc','getOne','11778jGkLKj','5281234jVWrJm','11132460VaVnoX','1005ffHYQz'];a47_0x5a4d=function(){return _0x23f9b5;};return a47_0x5a4d();}(function(_0x412735,_0x1094fd){const _0x567c91=a47_0x2fe2,_0x55592b=_0x412735();while(!![]){try{const _0x396ae5=-parseInt(_0x567c91(0x1dc))/0x1*(parseInt(_0x567c91(0x1dd))/0x2)+parseInt(_0x567c91(0x1e8))/0x3*(-parseInt(_0x567c91(0x1e0))/0x4)+parseInt(_0x567c91(0x1e5))/0x5*(parseInt(_0x567c91(0x1e2))/0x6)+-parseInt(_0x567c91(0x1e7))/0x7*(-parseInt(_0x567c91(0x1de))/0x8)+parseInt(_0x567c91(0x1df))/0x9*(parseInt(_0x567c91(0x1db))/0xa)+-parseInt(_0x567c91(0x1da))/0xb*(-parseInt(_0x567c91(0x1e4))/0xc)+parseInt(_0x567c91(0x1e6))/0xd*(-parseInt(_0x567c91(0x1e3))/0xe);if(_0x396ae5===_0x1094fd)break;else _0x55592b['push'](_0x55592b['shift']());}catch(_0x45ecc8){_0x55592b['push'](_0x55592b['shift']());}}}(a47_0x5a4d,0xf012d));import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':'getOne','operation':a47_0x583bef(0x1e1),'description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsRequired':!![],'paramsHint':a47_0x583bef(0x1e9)});
1
+ const a47_0x456095=a47_0x3431;function a47_0x3431(_0x21acc4,_0x5dc959){_0x21acc4=_0x21acc4-0xc3;const _0x4f04b2=a47_0x4f04();let _0x3431a4=_0x4f04b2[_0x21acc4];return _0x3431a4;}(function(_0x317307,_0x1bcd6e){const _0x3e1846=a47_0x3431,_0xa1dffb=_0x317307();while(!![]){try{const _0x564827=-parseInt(_0x3e1846(0xcf))/0x1*(-parseInt(_0x3e1846(0xc8))/0x2)+parseInt(_0x3e1846(0xc7))/0x3+parseInt(_0x3e1846(0xc9))/0x4*(-parseInt(_0x3e1846(0xcc))/0x5)+parseInt(_0x3e1846(0xc3))/0x6+parseInt(_0x3e1846(0xc5))/0x7*(parseInt(_0x3e1846(0xce))/0x8)+-parseInt(_0x3e1846(0xca))/0x9*(-parseInt(_0x3e1846(0xc4))/0xa)+-parseInt(_0x3e1846(0xc6))/0xb;if(_0x564827===_0x1bcd6e)break;else _0xa1dffb['push'](_0xa1dffb['shift']());}catch(_0x5ae5eb){_0xa1dffb['push'](_0xa1dffb['shift']());}}}(a47_0x4f04,0x4dbc7));import{buildDataCommand}from'../../commands/data/shared.js';function a47_0x4f04(){const _0x510e60=['56WlSAVo','4084762ssPnIe','1383843IJleLc','203274iLeVKu','26848bvWnhb','1077309xrTRjv','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','440MivhhF','getOne','59112CFUYuY','2rowZNz','467604PjUbYl','40fBvWYA'];a47_0x4f04=function(){return _0x510e60;};return a47_0x4f04();}export const dataGetOne=buildDataCommand({'command':a47_0x456095(0xcd),'operation':'getOne','description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsRequired':!![],'paramsHint':a47_0x456095(0xcb)});
@@ -1 +1 @@
1
- (function(_0x56c04c,_0x2e9a92){const _0x149a37=a48_0x3cf8,_0x67affa=_0x56c04c();while(!![]){try{const _0x4926af=parseInt(_0x149a37(0x1a7))/0x1+parseInt(_0x149a37(0x1a2))/0x2+-parseInt(_0x149a37(0x1a1))/0x3+parseInt(_0x149a37(0x1a4))/0x4*(parseInt(_0x149a37(0x1a9))/0x5)+-parseInt(_0x149a37(0x1a5))/0x6*(-parseInt(_0x149a37(0x1a8))/0x7)+parseInt(_0x149a37(0x1aa))/0x8*(parseInt(_0x149a37(0x1a3))/0x9)+-parseInt(_0x149a37(0x1a6))/0xa;if(_0x4926af===_0x2e9a92)break;else _0x67affa['push'](_0x67affa['shift']());}catch(_0x44a034){_0x67affa['push'](_0x67affa['shift']());}}}(a48_0x121d,0xe04b6));import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';function a48_0x121d(){const _0x21df86=['3685viMVrJ','2142472jOsjOC','4728705ImJrkK','3128108TlpMQK','9eLkFIA','2764pcLehg','5174280kHibQF','15985630uLUxRa','889998isvqwM','7cdsCVL'];a48_0x121d=function(){return _0x21df86;};return a48_0x121d();}function a48_0x3cf8(_0x1bc64b,_0x23927f){_0x1bc64b=_0x1bc64b-0x1a1;const _0x121d93=a48_0x121d();let _0x3cf805=_0x121d93[_0x1bc64b];return _0x3cf805;}export const dataDefinitions=[dataFilter,dataGetOne];
1
+ (function(_0x2aa145,_0x1d32d8){const _0x223487=a48_0x2c47,_0x1f2980=_0x2aa145();while(!![]){try{const _0xccb5de=-parseInt(_0x223487(0x1fb))/0x1+-parseInt(_0x223487(0x1f3))/0x2*(-parseInt(_0x223487(0x1f0))/0x3)+-parseInt(_0x223487(0x1f2))/0x4*(parseInt(_0x223487(0x1f4))/0x5)+parseInt(_0x223487(0x1f7))/0x6*(-parseInt(_0x223487(0x1f5))/0x7)+-parseInt(_0x223487(0x1f1))/0x8*(-parseInt(_0x223487(0x1fa))/0x9)+parseInt(_0x223487(0x1f9))/0xa*(parseInt(_0x223487(0x1ef))/0xb)+parseInt(_0x223487(0x1f6))/0xc*(-parseInt(_0x223487(0x1f8))/0xd);if(_0xccb5de===_0x1d32d8)break;else _0x1f2980['push'](_0x1f2980['shift']());}catch(_0x5d82ec){_0x1f2980['push'](_0x1f2980['shift']());}}}(a48_0x1199,0xd5e8c));function a48_0x2c47(_0x5d3c6d,_0x252a4e){_0x5d3c6d=_0x5d3c6d-0x1ef;const _0x119933=a48_0x1199();let _0x2c4736=_0x119933[_0x5d3c6d];return _0x2c4736;}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];function a48_0x1199(){const _0x58c314=['2017072zAyNWE','12GwBaZe','3430988TwKseP','2251325LpKJrL','1173151GxGQtx','372bygOoZ','12gQtlpH','64129qmZkip','1271540NfiYjE','45abjmRx','642550CfWFJH','33qbtMnQ','3EmJoro'];a48_0x1199=function(){return _0x58c314;};return a48_0x1199();}
@@ -1 +1 @@
1
- (function(_0x174434,_0x5368aa){const _0x4e5911=a49_0x1fb8,_0x13ce80=_0x174434();while(!![]){try{const _0x8eae1f=parseInt(_0x4e5911(0x19c))/0x1*(-parseInt(_0x4e5911(0x1ab))/0x2)+-parseInt(_0x4e5911(0x196))/0x3*(parseInt(_0x4e5911(0x1a2))/0x4)+-parseInt(_0x4e5911(0x1a5))/0x5+parseInt(_0x4e5911(0x1ad))/0x6+-parseInt(_0x4e5911(0x194))/0x7+parseInt(_0x4e5911(0x19d))/0x8*(parseInt(_0x4e5911(0x1a6))/0x9)+parseInt(_0x4e5911(0x1a7))/0xa;if(_0x8eae1f===_0x5368aa)break;else _0x13ce80['push'](_0x13ce80['shift']());}catch(_0x44d188){_0x13ce80['push'](_0x13ce80['shift']());}}}(a49_0x2483,0xb8ef6));import{executeDatasetDataOperation}from'../../core/api-client.js';function a49_0x2483(){const _0x5874ff=['37800860jgOjFh','string','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','getOne','4658IPxNNQ','alias','2135082YBFUJG','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','description','compress','data','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','code','7072583hdAljc','now','140703yxMvhH','read','appCode','params','str','validation','544MmbtYy','16HvRqYI','paramsHint','operation','flagMissing','helpExtra','12EijheG','command','paramsRequired','6187525ZfMomP','1247013UcNTQW'];a49_0x2483=function(){return _0x5874ff;};return a49_0x2483();}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function a49_0x1fb8(_0x35ffdc,_0x7d0da1){_0x35ffdc=_0x35ffdc-0x18f;const _0x248389=a49_0x2483();let _0x1fb820=_0x248389[_0x35ffdc];return _0x1fb820;}function assertGetOneId(_0x585942){const _0x555430=a49_0x1fb8;if(!_0x585942)throw CliErrors['flagMissing'](_0x555430(0x199),_0x555430(0x1a9));const _0x435d1d=_0x585942['id'];if(_0x435d1d===undefined||_0x435d1d===null||_0x435d1d==='')throw CliErrors[_0x555430(0x19b)](_0x555430(0x192),_0x555430(0x1ae));}function parseCommandParams(_0x4f74c6){return parseJsonParams(_0x4f74c6)??{};}export function buildDataCommand(_0x4bcdeb){const _0x40ee7b=a49_0x1fb8,_0x40dfa5=_0x40ee7b(0x191);return{'service':_0x40ee7b(0x190),'command':_0x4bcdeb[_0x40ee7b(0x1a3)],'description':_0x4bcdeb[_0x40ee7b(0x1af)],'risk':_0x40ee7b(0x197),'defaultOutputFormat':_0x40ee7b(0x18f),'helpExtra':_0x4bcdeb[_0x40ee7b(0x1a1)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x40ee7b(0x1ac),'type':_0x40ee7b(0x1a8),'description':_0x40dfa5},{'name':'params','type':'string','description':_0x4bcdeb[_0x40ee7b(0x19e)]}],async 'validate'(_0x3db8b4){const _0x5da977=_0x40ee7b,_0x4f6139=_0x3db8b4['str'](_0x5da977(0x199));if(_0x4bcdeb[_0x5da977(0x1a4)]&&!_0x4f6139)throw CliErrors[_0x5da977(0x1a0)](_0x5da977(0x199),_0x4bcdeb[_0x5da977(0x19e)]);const _0x49faf5=parseJsonParams(_0x4f6139);_0x4bcdeb['operation']===_0x5da977(0x1aa)&&assertGetOneId(_0x49faf5);},async 'execute'(_0x292f41){const _0x10d418=_0x40ee7b,_0xa3c2dc=parseCommandParams(_0x292f41[_0x10d418(0x19a)]('params')),_0x598960=Date[_0x10d418(0x195)](),_0xb16065=await executeDatasetDataOperation(_0x292f41[_0x10d418(0x198)],_0x292f41[_0x10d418(0x19a)](_0x10d418(0x193)),_0x4bcdeb[_0x10d418(0x19f)],_0xa3c2dc),_0x5950fc=Date['now']()-_0x598960;return{'ok':!![],'data':{'result':_0xb16065,'elapsed':_0x5950fc},'message':'data\x20'+_0x4bcdeb[_0x10d418(0x1a3)]+'\x20completed\x20in\x20'+_0x5950fc+'ms'};}};}
1
+ (function(_0x2b4b0b,_0x39b167){const _0x9f16d2=a49_0x4628,_0xad914d=_0x2b4b0b();while(!![]){try{const _0x271971=-parseInt(_0x9f16d2(0x1ae))/0x1*(-parseInt(_0x9f16d2(0x1a7))/0x2)+-parseInt(_0x9f16d2(0x1a8))/0x3*(parseInt(_0x9f16d2(0x1af))/0x4)+parseInt(_0x9f16d2(0x1a0))/0x5+parseInt(_0x9f16d2(0x19a))/0x6+-parseInt(_0x9f16d2(0x1ab))/0x7*(-parseInt(_0x9f16d2(0x197))/0x8)+-parseInt(_0x9f16d2(0x1aa))/0x9*(parseInt(_0x9f16d2(0x19f))/0xa)+parseInt(_0x9f16d2(0x1b3))/0xb*(-parseInt(_0x9f16d2(0x19e))/0xc);if(_0x271971===_0x39b167)break;else _0xad914d['push'](_0xad914d['shift']());}catch(_0x5fff9d){_0xad914d['push'](_0xad914d['shift']());}}}(a49_0x1a63,0x68dc1));import{executeDatasetDataOperation}from'../../core/api-client.js';function a49_0x4628(_0x46a1c7,_0x967a28){_0x46a1c7=_0x46a1c7-0x197;const _0x1a6391=a49_0x1a63();let _0x4628dc=_0x1a6391[_0x46a1c7];return _0x4628dc;}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a49_0x1a63(){const _0x217374=['string','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','data\x20','143QGfUNi','5334104UrSkJx','str','description','4724400lJgWlz','params','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','now','585444bACtbc','670ALMCAy','3424325LgDdQy','operation','compress','paramsRequired','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','command','paramsHint','19192MkBpVm','12AOlUDx','data','85716yoJLCL','7CoaGoH','read','code','37rpnsxq','792236qYSgIn'];a49_0x1a63=function(){return _0x217374;};return a49_0x1a63();}import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x123b8b){const _0x2390f5=a49_0x4628;if(!_0x123b8b)throw CliErrors['flagMissing'](_0x2390f5(0x19b),_0x2390f5(0x1b1));const _0x5d959c=_0x123b8b['id'];if(_0x5d959c===undefined||_0x5d959c===null||_0x5d959c==='')throw CliErrors['validation']('data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params',_0x2390f5(0x1a4));}function parseCommandParams(_0x48d35c){return parseJsonParams(_0x48d35c)??{};}export function buildDataCommand(_0x48a476){const _0x4ea80c=a49_0x4628,_0x191043=_0x4ea80c(0x19c);return{'service':_0x4ea80c(0x1a9),'command':_0x48a476['command'],'description':_0x48a476[_0x4ea80c(0x199)],'risk':_0x4ea80c(0x1ac),'defaultOutputFormat':_0x4ea80c(0x1a2),'helpExtra':_0x48a476['helpExtra'],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':_0x4ea80c(0x1b0),'description':_0x191043},{'name':_0x4ea80c(0x19b),'type':_0x4ea80c(0x1b0),'description':_0x48a476['paramsHint']}],async 'validate'(_0x274709){const _0x3678a1=_0x4ea80c,_0x261950=_0x274709['str'](_0x3678a1(0x19b));if(_0x48a476[_0x3678a1(0x1a3)]&&!_0x261950)throw CliErrors['flagMissing']('params',_0x48a476[_0x3678a1(0x1a6)]);const _0x2b0e53=parseJsonParams(_0x261950);_0x48a476['operation']==='getOne'&&assertGetOneId(_0x2b0e53);},async 'execute'(_0x200a88){const _0x113e90=_0x4ea80c,_0x342d5c=parseCommandParams(_0x200a88[_0x113e90(0x198)](_0x113e90(0x19b))),_0x2a9359=Date[_0x113e90(0x19d)](),_0x268533=await executeDatasetDataOperation(_0x200a88['appCode'],_0x200a88['str'](_0x113e90(0x1ad)),_0x48a476[_0x113e90(0x1a1)],_0x342d5c),_0x1cb363=Date['now']()-_0x2a9359;return{'ok':!![],'data':{'result':_0x268533,'elapsed':_0x1cb363},'message':_0x113e90(0x1b2)+_0x48a476[_0x113e90(0x1a5)]+'\x20completed\x20in\x20'+_0x1cb363+'ms'};}};}
@@ -1 +1 @@
1
- const a50_0xf32090=a50_0x5253;(function(_0x3243ae,_0x3e4835){const _0x39cb66=a50_0x5253,_0x3f114b=_0x3243ae();while(!![]){try{const _0x2aed32=-parseInt(_0x39cb66(0x163))/0x1+parseInt(_0x39cb66(0x155))/0x2+parseInt(_0x39cb66(0x146))/0x3*(parseInt(_0x39cb66(0x13c))/0x4)+parseInt(_0x39cb66(0x153))/0x5+parseInt(_0x39cb66(0x13d))/0x6+-parseInt(_0x39cb66(0x139))/0x7*(parseInt(_0x39cb66(0x140))/0x8)+-parseInt(_0x39cb66(0x160))/0x9*(-parseInt(_0x39cb66(0x154))/0xa);if(_0x2aed32===_0x3e4835)break;else _0x3f114b['push'](_0x3f114b['shift']());}catch(_0x40f5ae){_0x3f114b['push'](_0x3f114b['shift']());}}}(a50_0xdd88,0xad82b));import{deleteDataset,listDatasets}from'../../core/api-client.js';function a50_0xdd88(){const _0x400cde=['str','3429440qGEfeM','10FUMJMq','175938Pplbtc','id=','message','description','code','length','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','delete','high-risk-write','confirm','9942381dGmYIP','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','expected-count','1263532aFQqmj','num','tableName','dbid','relationPages','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','Would\x20delete\x20','Dataset\x20id','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','5158552ZGUnlU','No\x20undeleted\x20dataset\x20found\x20for\x20','\x20dataset(s)','4naKMsi','951402zqyycG','push','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','8GKaSaE','source','filter','/smartapi/dataset/delete-dataset','validation','Matched\x20','2022102hKqRCw','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','appCode','map','isArray','Deleted\x20','Required\x20to\x20execute\x20dataset\x20deletion','number','boolean','dataset','dbtableConfig','dbId'];a50_0xdd88=function(){return _0x400cde;};return a50_0xdd88();}function a50_0x5253(_0x3efdd5,_0x3c78f9){_0x3efdd5=_0x3efdd5-0x136;const _0xdd88b1=a50_0xdd88();let _0x5253dd=_0xdd88b1[_0x3efdd5];return _0x5253dd;}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a50_0xf32090(0x14d),'description':a50_0xf32090(0x136)},DBID_FLAG={'name':'dbid','type':'number','description':a50_0xf32090(0x147)},CONFIRM_FLAG={'name':a50_0xf32090(0x15f),'type':a50_0xf32090(0x14e),'description':a50_0xf32090(0x14c)},EXPECTED_COUNT_FLAG={'name':a50_0xf32090(0x162),'type':'number','description':a50_0xf32090(0x168)};export const datasetDelete={'service':a50_0xf32090(0x14f),'command':a50_0xf32090(0x15d),'description':'Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','risk':a50_0xf32090(0x15e),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x47105f){const _0x36cb93=a50_0xf32090,_0x3c4bab=_0x47105f[_0x36cb93(0x164)]('id'),_0x3d794f=_0x47105f[_0x36cb93(0x152)]('code'),_0x5601f3=_0x47105f[_0x36cb93(0x164)](_0x36cb93(0x166)),_0x41cbc4=[_0x3c4bab>0x0,Boolean(_0x3d794f),_0x5601f3>0x0][_0x36cb93(0x142)](Boolean);if(_0x41cbc4['length']===0x0)throw CliErrors[_0x36cb93(0x144)](_0x36cb93(0x13f));if(_0x41cbc4[_0x36cb93(0x15a)]>0x1)throw CliErrors['validation'](_0x36cb93(0x138));},async 'dryRun'(_0x3ed3fa){const _0xa91375=a50_0xf32090,_0x4a65f8=await resolveTargets(_0x3ed3fa);return{'method':'POST','url':_0xa91375(0x143),'body':{'appCode':_0x3ed3fa[_0xa91375(0x148)],'count':_0x4a65f8[_0xa91375(0x15a)],'datasets':_0x4a65f8},'description':_0xa91375(0x169)+_0x4a65f8[_0xa91375(0x15a)]+_0xa91375(0x15b)};},async 'execute'(_0x5d2568){const _0x143d7c=a50_0xf32090;if(!_0x5d2568['bool']('confirm'))throw CliErrors[_0x143d7c(0x144)](_0x143d7c(0x15c),_0x143d7c(0x161));const _0x2f97c9=await resolveTargets(_0x5d2568),_0x42be84=[],_0x451e71=[];for(const _0x3cc1aa of _0x2f97c9){try{await deleteDataset(_0x5d2568[_0x143d7c(0x148)],_0x3cc1aa['id']),_0x42be84[_0x143d7c(0x13e)](_0x3cc1aa);}catch(_0x421d3d){_0x451e71[_0x143d7c(0x13e)]({..._0x3cc1aa,'error':_0x421d3d instanceof Error?_0x421d3d[_0x143d7c(0x157)]:String(_0x421d3d)});}}if(_0x451e71[_0x143d7c(0x15a)]>0x0)return{'ok':![],'data':{'requested':_0x2f97c9['length'],'deletedCount':_0x42be84['length'],'failedCount':_0x451e71['length'],'deleted':_0x42be84,'failed':_0x451e71},'message':_0x143d7c(0x14b)+_0x42be84[_0x143d7c(0x15a)]+'/'+_0x2f97c9['length']+'\x20dataset(s);\x20'+_0x451e71[_0x143d7c(0x15a)]+'\x20failed'};return{'ok':!![],'data':{'requested':_0x2f97c9[_0x143d7c(0x15a)],'deletedCount':_0x42be84[_0x143d7c(0x15a)],'deleted':_0x42be84},'message':_0x143d7c(0x14b)+_0x42be84['length']+_0x143d7c(0x13b)};}};async function resolveTargets(_0x44bc00){const _0x1cd10b=a50_0xf32090,_0x1cba13=_0x44bc00['num']('id'),_0x19b219=_0x44bc00[_0x1cd10b(0x152)](_0x1cd10b(0x159)),_0x4382fb=_0x44bc00[_0x1cd10b(0x164)]('dbid');let _0x2b728a;_0x19b219?(_0x2b728a=await listDatasets(_0x44bc00[_0x1cd10b(0x148)],{'code':_0x19b219}),_0x2b728a=_0x2b728a[_0x1cd10b(0x142)](_0x2c71eb=>_0x2c71eb['code']===_0x19b219)):(_0x2b728a=await listDatasets(_0x44bc00['appCode']),_0x1cba13>0x0&&(_0x2b728a=_0x2b728a[_0x1cd10b(0x142)](_0x2836da=>_0x2836da['id']===_0x1cba13)),_0x4382fb>0x0&&(_0x2b728a=_0x2b728a['filter'](_0x385384=>_0x385384['dbtableConfig']?.['dbId']===_0x4382fb)));const _0x575aef=_0x2b728a[_0x1cd10b(0x149)](normalizeTarget);if(_0x575aef['length']===0x0){const _0x2bed87=_0x19b219||(_0x1cba13>0x0?_0x1cd10b(0x156)+_0x1cba13:'dbid='+_0x4382fb);throw CliErrors[_0x1cd10b(0x144)](_0x1cd10b(0x13a)+_0x2bed87+'.');}const _0xfd3bab=_0x44bc00[_0x1cd10b(0x164)](_0x1cd10b(0x162));if(_0xfd3bab>0x0&&_0x575aef['length']!==_0xfd3bab)throw CliErrors[_0x1cd10b(0x144)](_0x1cd10b(0x145)+_0x575aef[_0x1cd10b(0x15a)]+_0x1cd10b(0x137)+_0xfd3bab+'.');return _0x575aef;}function normalizeTarget(_0x410cec){const _0x5403b7=a50_0xf32090,_0x19edb7=_0x410cec[_0x5403b7(0x150)]??{};return{'id':_0x410cec['id'],'code':_0x410cec[_0x5403b7(0x159)],'name':_0x410cec['name'],'description':_0x410cec[_0x5403b7(0x158)],'source':_0x410cec[_0x5403b7(0x141)],'dbId':_0x19edb7[_0x5403b7(0x151)],'dbName':_0x19edb7['dbName'],'tableName':_0x19edb7[_0x5403b7(0x165)],'relatedPageCount':Array[_0x5403b7(0x14a)](_0x410cec[_0x5403b7(0x167)])?_0x410cec[_0x5403b7(0x167)][_0x5403b7(0x15a)]:undefined};}
1
+ const a50_0x5d8cf5=a50_0x4c21;(function(_0x52a6b6,_0xf21748){const _0x1ca06f=a50_0x4c21,_0x413b72=_0x52a6b6();while(!![]){try{const _0x5115aa=parseInt(_0x1ca06f(0x169))/0x1*(-parseInt(_0x1ca06f(0x189))/0x2)+parseInt(_0x1ca06f(0x17c))/0x3*(-parseInt(_0x1ca06f(0x168))/0x4)+parseInt(_0x1ca06f(0x17b))/0x5*(parseInt(_0x1ca06f(0x180))/0x6)+parseInt(_0x1ca06f(0x197))/0x7+parseInt(_0x1ca06f(0x193))/0x8*(parseInt(_0x1ca06f(0x184))/0x9)+parseInt(_0x1ca06f(0x17a))/0xa*(-parseInt(_0x1ca06f(0x18a))/0xb)+parseInt(_0x1ca06f(0x18f))/0xc;if(_0x5115aa===_0xf21748)break;else _0x413b72['push'](_0x413b72['shift']());}catch(_0x5ae305){_0x413b72['push'](_0x413b72['shift']());}}}(a50_0x4427,0x61f8c));function a50_0x4c21(_0x4a1041,_0x53b65e){_0x4a1041=_0x4a1041-0x162;const _0x442751=a50_0x4427();let _0x4c21c5=_0x442751[_0x4a1041];return _0x4c21c5;}import{deleteDataset,listDatasets}from'../../core/api-client.js';function a50_0x4427(){const _0x547568=['dbtableConfig','3111816SnQWQG','appCode','isArray','name','8DOTLQh','dataset','Would\x20delete\x20','validation','2295937dtXgAt','high-risk-write','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','tableName','dbid','\x20failed','Matched\x20','dbId','11116IbaxGZ','110849pFOQQD','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','dbName','No\x20undeleted\x20dataset\x20found\x20for\x20','id=','confirm','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','description','num','relationPages','number','\x20dataset(s)','code','filter','message','dbid=','str','462060PlJEju','3065RfxPUz','519AiNGfc','Dataset\x20id','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','4170pRAvzW','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','boolean','delete','6633630sLrLKy','length','expected-count','\x20dataset(s);\x20','POST','14DyyAJj','22ddlKYp','push','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','bool'];a50_0x4427=function(){return _0x547568;};return a50_0x4427();}import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':a50_0x5d8cf5(0x173),'description':a50_0x5d8cf5(0x17d)},DBID_FLAG={'name':a50_0x5d8cf5(0x164),'type':a50_0x5d8cf5(0x173),'description':a50_0x5d8cf5(0x162)},CONFIRM_FLAG={'name':a50_0x5d8cf5(0x16e),'type':a50_0x5d8cf5(0x182),'description':'Required\x20to\x20execute\x20dataset\x20deletion'},EXPECTED_COUNT_FLAG={'name':a50_0x5d8cf5(0x186),'type':'number','description':a50_0x5d8cf5(0x17f)};export const datasetDelete={'service':a50_0x5d8cf5(0x194),'command':a50_0x5d8cf5(0x183),'description':'Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','risk':a50_0x5d8cf5(0x198),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x18a9d2){const _0x3e7fe7=a50_0x5d8cf5,_0x2c1813=_0x18a9d2['num']('id'),_0x122dc7=_0x18a9d2['str'](_0x3e7fe7(0x175)),_0xf53b3c=_0x18a9d2[_0x3e7fe7(0x171)](_0x3e7fe7(0x164)),_0x55082f=[_0x2c1813>0x0,Boolean(_0x122dc7),_0xf53b3c>0x0][_0x3e7fe7(0x176)](Boolean);if(_0x55082f[_0x3e7fe7(0x185)]===0x0)throw CliErrors[_0x3e7fe7(0x196)](_0x3e7fe7(0x18c));if(_0x55082f[_0x3e7fe7(0x185)]>0x1)throw CliErrors[_0x3e7fe7(0x196)]('Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.');},async 'dryRun'(_0x276201){const _0x458866=a50_0x5d8cf5,_0x323cf9=await resolveTargets(_0x276201);return{'method':_0x458866(0x188),'url':'/smartapi/dataset/delete-dataset','body':{'appCode':_0x276201[_0x458866(0x190)],'count':_0x323cf9[_0x458866(0x185)],'datasets':_0x323cf9},'description':_0x458866(0x195)+_0x323cf9[_0x458866(0x185)]+_0x458866(0x17e)};},async 'execute'(_0x5585e6){const _0x13517f=a50_0x5d8cf5;if(!_0x5585e6[_0x13517f(0x18d)](_0x13517f(0x16e)))throw CliErrors[_0x13517f(0x196)](_0x13517f(0x16a),_0x13517f(0x181));const _0x351cd8=await resolveTargets(_0x5585e6),_0x39470a=[],_0x797c6c=[];for(const _0x17338b of _0x351cd8){try{await deleteDataset(_0x5585e6['appCode'],_0x17338b['id']),_0x39470a['push'](_0x17338b);}catch(_0x526937){_0x797c6c[_0x13517f(0x18b)]({..._0x17338b,'error':_0x526937 instanceof Error?_0x526937[_0x13517f(0x177)]:String(_0x526937)});}}if(_0x797c6c[_0x13517f(0x185)]>0x0)return{'ok':![],'data':{'requested':_0x351cd8[_0x13517f(0x185)],'deletedCount':_0x39470a['length'],'failedCount':_0x797c6c[_0x13517f(0x185)],'deleted':_0x39470a,'failed':_0x797c6c},'message':'Deleted\x20'+_0x39470a[_0x13517f(0x185)]+'/'+_0x351cd8[_0x13517f(0x185)]+_0x13517f(0x187)+_0x797c6c[_0x13517f(0x185)]+_0x13517f(0x165)};return{'ok':!![],'data':{'requested':_0x351cd8[_0x13517f(0x185)],'deletedCount':_0x39470a[_0x13517f(0x185)],'deleted':_0x39470a},'message':'Deleted\x20'+_0x39470a[_0x13517f(0x185)]+_0x13517f(0x174)};}};async function resolveTargets(_0xd90c35){const _0x58210f=a50_0x5d8cf5,_0x56ed9c=_0xd90c35[_0x58210f(0x171)]('id'),_0x1d81a1=_0xd90c35[_0x58210f(0x179)](_0x58210f(0x175)),_0x48ff3c=_0xd90c35[_0x58210f(0x171)]('dbid');let _0x173a59;_0x1d81a1?(_0x173a59=await listDatasets(_0xd90c35[_0x58210f(0x190)],{'code':_0x1d81a1}),_0x173a59=_0x173a59[_0x58210f(0x176)](_0x24eafb=>_0x24eafb[_0x58210f(0x175)]===_0x1d81a1)):(_0x173a59=await listDatasets(_0xd90c35['appCode']),_0x56ed9c>0x0&&(_0x173a59=_0x173a59[_0x58210f(0x176)](_0x5f1972=>_0x5f1972['id']===_0x56ed9c)),_0x48ff3c>0x0&&(_0x173a59=_0x173a59[_0x58210f(0x176)](_0x3c217d=>_0x3c217d[_0x58210f(0x18e)]?.[_0x58210f(0x167)]===_0x48ff3c)));const _0x455b62=_0x173a59['map'](normalizeTarget);if(_0x455b62[_0x58210f(0x185)]===0x0){const _0x1c8695=_0x1d81a1||(_0x56ed9c>0x0?_0x58210f(0x16d)+_0x56ed9c:_0x58210f(0x178)+_0x48ff3c);throw CliErrors[_0x58210f(0x196)](_0x58210f(0x16c)+_0x1c8695+'.');}const _0x3fda60=_0xd90c35['num'](_0x58210f(0x186));if(_0x3fda60>0x0&&_0x455b62[_0x58210f(0x185)]!==_0x3fda60)throw CliErrors['validation'](_0x58210f(0x166)+_0x455b62[_0x58210f(0x185)]+_0x58210f(0x16f)+_0x3fda60+'.');return _0x455b62;}function normalizeTarget(_0x5c7243){const _0x427e8a=a50_0x5d8cf5,_0x11e6e4=_0x5c7243[_0x427e8a(0x18e)]??{};return{'id':_0x5c7243['id'],'code':_0x5c7243[_0x427e8a(0x175)],'name':_0x5c7243[_0x427e8a(0x192)],'description':_0x5c7243[_0x427e8a(0x170)],'source':_0x5c7243['source'],'dbId':_0x11e6e4[_0x427e8a(0x167)],'dbName':_0x11e6e4[_0x427e8a(0x16b)],'tableName':_0x11e6e4[_0x427e8a(0x163)],'relatedPageCount':Array[_0x427e8a(0x191)](_0x5c7243['relationPages'])?_0x5c7243[_0x427e8a(0x172)][_0x427e8a(0x185)]:undefined};}