@lovrabet/rabetbase-cli 2.1.4 → 2.1.5

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 (184) 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/dataset/detail.js +1 -1
  48. package/lib/commands/dataset/index.js +1 -1
  49. package/lib/commands/dataset/links.js +1 -1
  50. package/lib/commands/dataset/list.js +1 -1
  51. package/lib/commands/dataset/operations.js +1 -1
  52. package/lib/commands/db/analyze-cancel.js +1 -1
  53. package/lib/commands/db/analyze-start.js +1 -1
  54. package/lib/commands/db/analyze-status.js +1 -1
  55. package/lib/commands/db/create.js +1 -1
  56. package/lib/commands/db/delete.js +1 -1
  57. package/lib/commands/db/detail.js +1 -1
  58. package/lib/commands/db/diff.js +1 -1
  59. package/lib/commands/db/index.js +1 -1
  60. package/lib/commands/db/list.js +1 -1
  61. package/lib/commands/db/shared.js +1 -1
  62. package/lib/commands/db/tables.js +1 -1
  63. package/lib/commands/db/test.js +1 -1
  64. package/lib/commands/db/update.js +1 -1
  65. package/lib/commands/doctor.js +1 -1
  66. package/lib/commands/init/index.js +1 -1
  67. package/lib/commands/logs/index.js +1 -1
  68. package/lib/commands/menu/index.js +1 -1
  69. package/lib/commands/menu/shared/compare-table.js +1 -1
  70. package/lib/commands/menu/shared/index.js +1 -1
  71. package/lib/commands/menu/shared/inquirer.js +1 -1
  72. package/lib/commands/menu/shared/local-pages.js +1 -1
  73. package/lib/commands/menu/shared/logic.js +1 -1
  74. package/lib/commands/menu/shared/service.js +1 -1
  75. package/lib/commands/menu/shared/sync-core.js +1 -1
  76. package/lib/commands/menu/shared/update-core.js +1 -1
  77. package/lib/commands/menu/shared/valid-url.js +1 -1
  78. package/lib/commands/menu/sync.js +1 -1
  79. package/lib/commands/menu/update.js +1 -1
  80. package/lib/commands/page/generate-start.js +1 -1
  81. package/lib/commands/page/generate-status.js +1 -1
  82. package/lib/commands/page/index.js +1 -1
  83. package/lib/commands/page/pull.js +1 -1
  84. package/lib/commands/page/push.js +1 -1
  85. package/lib/commands/page/shared.js +1 -1
  86. package/lib/commands/page/standard-page-status.js +1 -1
  87. package/lib/commands/page/sync.js +1 -1
  88. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  89. package/lib/commands/project/create/format-elapsed.js +1 -1
  90. package/lib/commands/project/create/main.js +1 -1
  91. package/lib/commands/project/create/non-interactive.js +1 -1
  92. package/lib/commands/project/create/project-template-path.js +1 -1
  93. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  94. package/lib/commands/project/create/use-format-code.js +1 -1
  95. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  96. package/lib/commands/project/index.js +1 -1
  97. package/lib/commands/project/init.js +1 -1
  98. package/lib/commands/project/upgrade.js +1 -1
  99. package/lib/commands/registry.js +1 -1
  100. package/lib/commands/run/index.js +1 -1
  101. package/lib/commands/schema.js +1 -1
  102. package/lib/commands/skill/index.js +1 -1
  103. package/lib/commands/sql/create.js +1 -1
  104. package/lib/commands/sql/delete.js +1 -1
  105. package/lib/commands/sql/detail.js +1 -1
  106. package/lib/commands/sql/exec.js +1 -1
  107. package/lib/commands/sql/index.js +1 -1
  108. package/lib/commands/sql/list.js +1 -1
  109. package/lib/commands/sql/pull.js +1 -1
  110. package/lib/commands/sql/push.js +1 -1
  111. package/lib/commands/sql/save.js +1 -1
  112. package/lib/commands/sql/shared.js +1 -1
  113. package/lib/commands/sql/status.js +1 -1
  114. package/lib/commands/sql/validate.js +1 -1
  115. package/lib/config/schema.js +1 -1
  116. package/lib/constant/cdn.js +1 -1
  117. package/lib/constant/cli.js +1 -1
  118. package/lib/constant/defaults.js +1 -1
  119. package/lib/constant/domain.js +1 -1
  120. package/lib/constant/env.js +1 -1
  121. package/lib/constant/output.js +1 -1
  122. package/lib/constant/paths.js +1 -1
  123. package/lib/constant/risk.js +1 -1
  124. package/lib/context.js +1 -1
  125. package/lib/core/alias-resolver.js +1 -1
  126. package/lib/core/api-client.js +1 -1
  127. package/lib/core/bff/config.js +1 -1
  128. package/lib/core/bff/file-system.js +1 -1
  129. package/lib/core/bff/hash.js +1 -1
  130. package/lib/core/bff/lock.js +1 -1
  131. package/lib/core/bff/utils.js +1 -1
  132. package/lib/core/db-resolver.js +1 -1
  133. package/lib/core/page/file-system.js +1 -1
  134. package/lib/core/page/hash.js +1 -1
  135. package/lib/core/page/lock.js +1 -1
  136. package/lib/core/sql-sync/config.js +1 -1
  137. package/lib/core/sql-sync/file-system.js +1 -1
  138. package/lib/core/sql-sync/hash.js +1 -1
  139. package/lib/core/sql-sync/lock.js +1 -1
  140. package/lib/core/sql-sync/utils.js +1 -1
  141. package/lib/core/sql-validator.js +1 -1
  142. package/lib/errors.js +1 -1
  143. package/lib/framework/build-all-flags.js +1 -1
  144. package/lib/framework/flags.js +1 -1
  145. package/lib/framework/help.js +1 -1
  146. package/lib/framework/index.js +1 -1
  147. package/lib/framework/output.js +1 -1
  148. package/lib/framework/response.js +1 -1
  149. package/lib/framework/runner-alias.js +1 -1
  150. package/lib/framework/runner.js +1 -1
  151. package/lib/framework/schema-export.js +1 -1
  152. package/lib/framework/types.js +1 -1
  153. package/lib/generated/build-info.js +1 -1
  154. package/lib/help.js +1 -1
  155. package/lib/skills/main.js +1 -1
  156. package/lib/skills/npx-skills-add.js +1 -1
  157. package/lib/telemetry/cli-command-trace.js +1 -1
  158. package/lib/telemetry/cli-help-trace.js +1 -1
  159. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  160. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  161. package/lib/telemetry/send-cli-trace-log.js +1 -1
  162. package/lib/utils/ai_config.js +1 -1
  163. package/lib/utils/apply-jq-filter.js +1 -1
  164. package/lib/utils/cdn-config.js +1 -1
  165. package/lib/utils/check-sdk-version.js +1 -1
  166. package/lib/utils/cli-version-check.js +1 -1
  167. package/lib/utils/cli-version-policy.js +1 -1
  168. package/lib/utils/config.js +1 -1
  169. package/lib/utils/copy-directory.js +1 -1
  170. package/lib/utils/entity-with-id.js +1 -1
  171. package/lib/utils/file-utils.js +1 -1
  172. package/lib/utils/guides-cdn.js +1 -1
  173. package/lib/utils/http-client.js +1 -1
  174. package/lib/utils/is-non-interactive.js +1 -1
  175. package/lib/utils/logger.js +1 -1
  176. package/lib/utils/platform.js +1 -1
  177. package/lib/utils/rules-cdn.js +1 -1
  178. package/lib/utils/sleep.js +1 -1
  179. package/lib/utils/template-replacer.js +1 -1
  180. package/lib/utils/version.js +1 -1
  181. package/lib/utils/with-active-cookie.js +1 -1
  182. package/lib/utils/write-cli-side-channel.js +1 -1
  183. package/package.json +1 -1
  184. package/templates/skill/SKILL.md.tpl +1 -1
@@ -1 +1 @@
1
- function a33_0x32f6(){const _0x3cad7f=['functions','boolean','4hdSBWp','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','scriptsRoot','\x20added,\x20','appCode','498OIqbDj','260fxIxAE','1884USBBqi','\x20unchanged','10987053iicGKk','512747wASKBj','alias','status','bff','remote','push','map','lockFilePath','lockKey','bool','all','\x20remote-only','datasetCode','3670688nMHxZF','apiDir','All\x20BFF\x20scripts\x20are\x20in\x20sync.','filePath','read','has','4147825WeVxjQ','length','hash','142236fXXiBt','1584XqwNRN','29295JrNOAB','\x20modified,\x20'];a33_0x32f6=function(){return _0x3cad7f;};return a33_0x32f6();}const a33_0x27fdb4=a33_0x30eb;(function(_0xb5df65,_0x4bac5a){const _0x177afb=a33_0x30eb,_0x1b2fba=_0xb5df65();while(!![]){try{const _0x313448=-parseInt(_0x177afb(0x89))/0x1+parseInt(_0x177afb(0x7a))/0x2*(parseInt(_0x177afb(0x86))/0x3)+-parseInt(_0x177afb(0x7f))/0x4*(-parseInt(_0x177afb(0x76))/0x5)+parseInt(_0x177afb(0x84))/0x6*(-parseInt(_0x177afb(0x7b))/0x7)+-parseInt(_0x177afb(0x70))/0x8+-parseInt(_0x177afb(0x79))/0x9*(parseInt(_0x177afb(0x85))/0xa)+parseInt(_0x177afb(0x88))/0xb;if(_0x313448===_0x4bac5a)break;else _0x1b2fba['push'](_0x1b2fba['shift']());}catch(_0x24f0fc){_0x1b2fba['push'](_0x1b2fba['shift']());}}}(a33_0x32f6,0x917d2));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_0x30eb(_0x170f48,_0x4d0be4){_0x170f48=_0x170f48-0x69;const _0x32f674=a33_0x32f6();let _0x30ebcb=_0x32f674[_0x170f48];return _0x30ebcb;}import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a33_0x27fdb4(0x8c),'command':a33_0x27fdb4(0x8b),'description':'Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','risk':a33_0x27fdb4(0x74),'flags':[{'name':'remote','type':a33_0x27fdb4(0x7e),'description':a33_0x27fdb4(0x80)}],async 'execute'(_0x39b1f7){const _0x32b179=a33_0x27fdb4,_0x5a801e=loadBffProjectConfig(_0x39b1f7['appCode']),_0x52e1d1=await readBffLockFile(_0x5a801e[_0x32b179(0x6a)]),{appLock:_0x35929c}=ensureLockScope(_0x52e1d1??createEmptyBffLock(),_0x39b1f7[_0x32b179(0x83)],_0x5a801e[_0x32b179(0x81)],_0x32b179(0x8b)),_0x126b6f=await scanLocalBffFunctions(_0x5a801e),_0x3a2fb9=[],_0x7af82c=[],_0x5afc95=[];for(const _0x53a7f3 of _0x126b6f){const _0xe5edb9=await computeFileHash(_0x53a7f3[_0x32b179(0x73)]),_0x1e9452=_0x35929c[_0x32b179(0x7d)][_0x53a7f3[_0x32b179(0x6b)]];if(!_0x1e9452)_0x3a2fb9[_0x32b179(0x8e)](_0x53a7f3[_0x32b179(0x6b)]);else _0x1e9452[_0x32b179(0x78)]!==_0xe5edb9?_0x7af82c['push'](_0x53a7f3[_0x32b179(0x6b)]):_0x5afc95[_0x32b179(0x8e)](_0x53a7f3['lockKey']);}const _0x2a888f=[];if(_0x39b1f7[_0x32b179(0x6c)](_0x32b179(0x8d))){const _0x4074c9=loadAliasMap(_0x39b1f7[_0x32b179(0x71)],undefined,resolveApiFilePath(_0x39b1f7['apiDir'],_0x39b1f7[_0x32b179(0x83)])),_0x50c48=new Map(_0x4074c9[_0x32b179(0x69)](_0x100ab7=>[_0x100ab7[_0x32b179(0x6f)],_0x100ab7[_0x32b179(0x8a)]])),[_0x35437d,_0x3b669f]=await Promise[_0x32b179(0x6d)]([listBffScripts(_0x39b1f7[_0x32b179(0x83)]),getBffScriptStatistics(_0x39b1f7[_0x32b179(0x83)])]),_0x571581=createHookLocationMap(_0x3b669f),_0xe90fc2=new Set(_0x126b6f[_0x32b179(0x69)](_0x2dd3c6=>_0x2dd3c6[_0x32b179(0x6b)]));for(const _0x16e7fe of _0x35437d){const _0x4f236e=resolveRemoteScriptTarget(_0x5a801e,_0x16e7fe,_0x571581,_0x35929c[_0x32b179(0x7d)],_0x50c48);_0x4f236e&&!_0xe90fc2[_0x32b179(0x75)](_0x4f236e[_0x32b179(0x6b)])&&_0x2a888f[_0x32b179(0x8e)](_0x4f236e[_0x32b179(0x6b)]);}}const _0x511db0=_0x3a2fb9['length']===0x0&&_0x7af82c[_0x32b179(0x77)]===0x0&&_0x2a888f['length']===0x0;return{'ok':!![],'data':{'added':_0x3a2fb9,'modified':_0x7af82c,'unchanged':_0x5afc95,'remoteOnly':_0x2a888f},'message':_0x511db0?_0x32b179(0x72):_0x3a2fb9[_0x32b179(0x77)]+_0x32b179(0x82)+_0x7af82c[_0x32b179(0x77)]+_0x32b179(0x7c)+_0x5afc95[_0x32b179(0x77)]+_0x32b179(0x87)+(_0x2a888f['length']>0x0?',\x20'+_0x2a888f[_0x32b179(0x77)]+_0x32b179(0x6e):'')};}};
1
+ const a33_0x2739f7=a33_0x462d;(function(_0x177882,_0x4d78ed){const _0x3ace94=a33_0x462d,_0x137278=_0x177882();while(!![]){try{const _0x144bf5=-parseInt(_0x3ace94(0xb0))/0x1*(parseInt(_0x3ace94(0xac))/0x2)+parseInt(_0x3ace94(0xb4))/0x3+-parseInt(_0x3ace94(0xaf))/0x4*(-parseInt(_0x3ace94(0xbf))/0x5)+parseInt(_0x3ace94(0xbc))/0x6+parseInt(_0x3ace94(0xb8))/0x7+parseInt(_0x3ace94(0xb1))/0x8*(parseInt(_0x3ace94(0xb6))/0x9)+-parseInt(_0x3ace94(0xa6))/0xa*(parseInt(_0x3ace94(0xc2))/0xb);if(_0x144bf5===_0x4d78ed)break;else _0x137278['push'](_0x137278['shift']());}catch(_0x4383bc){_0x137278['push'](_0x137278['shift']());}}}(a33_0x3a98,0xb54dc));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';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';function a33_0x3a98(){const _0x479063=['apiDir','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','4vWdVBi','63lZlacc','208dahziX','read','boolean','1056603CtcVjw','functions','170487QuaEUn','remote','9488962eDmSWu','bool','status','lockFilePath','2018280ohDRQE','hash','has','5486595Srbdzq','length','filePath','11KwLboW','\x20unchanged','push','datasetCode','map','\x20added,\x20','scriptsRoot','all','18655350otWTTb','All\x20BFF\x20scripts\x20are\x20in\x20sync.','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','appCode','\x20remote-only','lockKey','32566moyxVL'];a33_0x3a98=function(){return _0x479063;};return a33_0x3a98();}function a33_0x462d(_0x4ad558,_0x25be19){_0x4ad558=_0x4ad558-0xa4;const _0x3a98ff=a33_0x3a98();let _0x462d60=_0x3a98ff[_0x4ad558];return _0x462d60;}export const bffStatus={'service':'bff','command':'status','description':a33_0x2739f7(0xa8),'risk':a33_0x2739f7(0xb2),'flags':[{'name':a33_0x2739f7(0xb7),'type':a33_0x2739f7(0xb3),'description':a33_0x2739f7(0xae)}],async 'execute'(_0x585c85){const _0x955bd4=a33_0x2739f7,_0x532f77=loadBffProjectConfig(_0x585c85[_0x955bd4(0xa9)]),_0x2a068d=await readBffLockFile(_0x532f77[_0x955bd4(0xbb)]),{appLock:_0x17426c}=ensureLockScope(_0x2a068d??createEmptyBffLock(),_0x585c85[_0x955bd4(0xa9)],_0x532f77[_0x955bd4(0xa4)],_0x955bd4(0xba)),_0x98e211=await scanLocalBffFunctions(_0x532f77),_0x3d3cc6=[],_0x684e56=[],_0x46d5c3=[];for(const _0x379b98 of _0x98e211){const _0x588623=await computeFileHash(_0x379b98[_0x955bd4(0xc1)]),_0x2d9caf=_0x17426c[_0x955bd4(0xb5)][_0x379b98[_0x955bd4(0xab)]];if(!_0x2d9caf)_0x3d3cc6[_0x955bd4(0xc4)](_0x379b98[_0x955bd4(0xab)]);else _0x2d9caf[_0x955bd4(0xbd)]!==_0x588623?_0x684e56[_0x955bd4(0xc4)](_0x379b98[_0x955bd4(0xab)]):_0x46d5c3[_0x955bd4(0xc4)](_0x379b98[_0x955bd4(0xab)]);}const _0x58a18a=[];if(_0x585c85[_0x955bd4(0xb9)](_0x955bd4(0xb7))){const _0x3d71be=loadAliasMap(_0x585c85[_0x955bd4(0xad)],undefined,resolveApiFilePath(_0x585c85[_0x955bd4(0xad)],_0x585c85[_0x955bd4(0xa9)])),_0x2aea8a=new Map(_0x3d71be[_0x955bd4(0xc6)](_0x486aae=>[_0x486aae[_0x955bd4(0xc5)],_0x486aae['alias']])),[_0x18c808,_0x1528ed]=await Promise[_0x955bd4(0xa5)]([listBffScripts(_0x585c85[_0x955bd4(0xa9)]),getBffScriptStatistics(_0x585c85[_0x955bd4(0xa9)])]),_0x3f2bbc=createHookLocationMap(_0x1528ed),_0x828caa=new Set(_0x98e211[_0x955bd4(0xc6)](_0x5dfc88=>_0x5dfc88[_0x955bd4(0xab)]));for(const _0x520a44 of _0x18c808){const _0x4c8341=resolveRemoteScriptTarget(_0x532f77,_0x520a44,_0x3f2bbc,_0x17426c[_0x955bd4(0xb5)],_0x2aea8a);_0x4c8341&&!_0x828caa[_0x955bd4(0xbe)](_0x4c8341[_0x955bd4(0xab)])&&_0x58a18a[_0x955bd4(0xc4)](_0x4c8341['lockKey']);}}const _0x29644d=_0x3d3cc6[_0x955bd4(0xc0)]===0x0&&_0x684e56[_0x955bd4(0xc0)]===0x0&&_0x58a18a['length']===0x0;return{'ok':!![],'data':{'added':_0x3d3cc6,'modified':_0x684e56,'unchanged':_0x46d5c3,'remoteOnly':_0x58a18a},'message':_0x29644d?_0x955bd4(0xa7):_0x3d3cc6['length']+_0x955bd4(0xc7)+_0x684e56[_0x955bd4(0xc0)]+'\x20modified,\x20'+_0x46d5c3[_0x955bd4(0xc0)]+_0x955bd4(0xc3)+(_0x58a18a['length']>0x0?',\x20'+_0x58a18a['length']+_0x955bd4(0xaa):'')};}};
@@ -1 +1 @@
1
- const a34_0x2878cc=a34_0x6d75;(function(_0x1d6042,_0x5ba81a){const _0x40474b=a34_0x6d75,_0xcb115d=_0x1d6042();while(!![]){try{const _0x39c422=parseInt(_0x40474b(0x121))/0x1*(-parseInt(_0x40474b(0x11a))/0x2)+parseInt(_0x40474b(0x122))/0x3*(parseInt(_0x40474b(0x13a))/0x4)+-parseInt(_0x40474b(0x141))/0x5*(-parseInt(_0x40474b(0x145))/0x6)+-parseInt(_0x40474b(0x13d))/0x7*(-parseInt(_0x40474b(0x134))/0x8)+-parseInt(_0x40474b(0x12c))/0x9*(parseInt(_0x40474b(0x132))/0xa)+parseInt(_0x40474b(0x12d))/0xb*(parseInt(_0x40474b(0x146))/0xc)+parseInt(_0x40474b(0x133))/0xd*(-parseInt(_0x40474b(0x14a))/0xe);if(_0x39c422===_0x5ba81a)break;else _0xcb115d['push'](_0xcb115d['shift']());}catch(_0x124eae){_0xcb115d['push'](_0xcb115d['shift']());}}}(a34_0x1b09,0x365cd));import a34_0x18a36c from'chalk';import a34_0x424d9b from'ora';import a34_0x36cc90 from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a34_0x6d75(_0x32e7d2,_0x5bd2b4){_0x32e7d2=_0x32e7d2-0x119;const _0x1b09a2=a34_0x1b09();let _0x6d75f6=_0x1b09a2[_0x32e7d2];return _0x6d75f6;}function a34_0x1b09(){const _0x133477=['Current\x20version:\x20','126UIKLCe','Already\x20up\x20to\x20date\x20(v','pipe','yellow','stableVersion','log','493346UYBtVa','coerce','Update\x20available:\x20','install','info','cli','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','1rfFIrg','72372eQjics','succeed','gray','Checking\x20for\x20updates...','includes','Version\x20comparison\x20failed','run','error','\x20install\x20-g\x20','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','1685070MvbijO','759HwpGaH','bun','...','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','Update\x20failed','10KOvpGh','170417OdFLwJ','59528xTmtLh','fail','toLowerCase','version','message','timeout','44didboM','/latest','@latest','385NiwqMi','unknown','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','start','52945GYxpUh','red','https://registry.npmjs.org/','write','30LwWGAM','8172OMqVgy','execPath','npm'];a34_0x1b09=function(){return _0x133477;};return a34_0x1b09();}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x4f0d85=a34_0x6d75;return GIT_COMMIT!==_0x4f0d85(0x13e)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x2bb72a=a34_0x6d75,_0x31c0b4=process[_0x2bb72a(0x147)][_0x2bb72a(0x136)]();if(_0x31c0b4[_0x2bb72a(0x126)](_0x2bb72a(0x12e)))return _0x2bb72a(0x12e);return _0x2bb72a(0x148);}async function fetchLatestNpmVersion(){const _0x493029=a34_0x6d75;try{const _0x17cae6=await fetch(_0x493029(0x143)+NPM_PACKAGE_NAME+_0x493029(0x13b),{'signal':AbortSignal[_0x493029(0x139)](0x2710)});if(!_0x17cae6['ok'])return null;const _0x515a70=await _0x17cae6['json']();return _0x515a70[_0x493029(0x137)]??null;}catch{return null;}}async function fetchLatestVersion(){const _0x52c356=a34_0x6d75,_0x5288b0=await fetchLatestNpmVersion();if(_0x5288b0)return _0x5288b0;const _0x273352=await getCdnConfig();return _0x273352?.[_0x52c356(0x11f)]?.[_0x52c356(0x14e)]??null;}async function execute(_0x291fc7){const _0x4ea2aa=a34_0x6d75,_0x151863=getCurrentVersion();console[_0x4ea2aa(0x119)](_0x4ea2aa(0x149)+_0x151863);const _0xc91535=a34_0x424d9b(_0x4ea2aa(0x125))[_0x4ea2aa(0x140)](),_0x645d58=await fetchLatestVersion();if(!_0x645d58)return _0xc91535[_0x4ea2aa(0x135)](_0x4ea2aa(0x130)),console[_0x4ea2aa(0x119)](a34_0x18a36c[_0x4ea2aa(0x124)](_0x4ea2aa(0x12b)+NPM_PACKAGE_NAME+_0x4ea2aa(0x13c))),{'ok':![],'message':'Unable\x20to\x20check\x20for\x20updates'};const _0x379311=a34_0x36cc90['coerce'](_0x151863),_0x10ae30=a34_0x36cc90[_0x4ea2aa(0x11b)](_0x645d58);if(!_0x379311||!_0x10ae30)return _0xc91535[_0x4ea2aa(0x135)]('Version\x20comparison\x20failed'),{'ok':![],'message':_0x4ea2aa(0x127)};if(!a34_0x36cc90['lt'](_0x379311,_0x10ae30))return _0xc91535[_0x4ea2aa(0x123)](_0x4ea2aa(0x14b)+_0x645d58+')'),{'ok':!![]};_0xc91535[_0x4ea2aa(0x11e)](_0x4ea2aa(0x11c)+a34_0x18a36c[_0x4ea2aa(0x14d)](_0x151863)+'\x20→\x20'+a34_0x18a36c['green'](_0x645d58));const _0x561506=detectPackageManager(),_0x52515c=_0x561506===_0x4ea2aa(0x148)?resolveNpmBin('npm'):_0x561506,_0x3d3e13=a34_0x424d9b('Updating\x20via\x20'+_0x561506+_0x4ea2aa(0x12f))['start']();try{return await execa(_0x52515c,[_0x4ea2aa(0x11d),'-g',NPM_PACKAGE_NAME+'@'+_0x645d58],{'stdio':_0x4ea2aa(0x14c)}),_0x3d3e13[_0x4ea2aa(0x123)]('Updated\x20to\x20v'+_0x645d58),console[_0x4ea2aa(0x119)](a34_0x18a36c[_0x4ea2aa(0x124)](_0x4ea2aa(0x120))),{'ok':!![]};}catch(_0x5576c7){return _0x3d3e13[_0x4ea2aa(0x135)](_0x4ea2aa(0x131)),console[_0x4ea2aa(0x129)](a34_0x18a36c[_0x4ea2aa(0x142)]('\x20\x20'+_0x5576c7[_0x4ea2aa(0x138)])),console[_0x4ea2aa(0x119)](a34_0x18a36c[_0x4ea2aa(0x124)]('\x20\x20Try\x20manually:\x20'+_0x561506+_0x4ea2aa(0x12a)+NPM_PACKAGE_NAME+'@'+_0x645d58)),{'ok':![],'message':_0x5576c7[_0x4ea2aa(0x138)]};}}export const updateDefinition={'service':'update','command':a34_0x2878cc(0x128),'description':a34_0x2878cc(0x13f),'risk':a34_0x2878cc(0x144),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
1
+ const a34_0x2b0b64=a34_0x3ed5;(function(_0x232fc8,_0x27f34a){const _0x4e7499=a34_0x3ed5,_0x352dac=_0x232fc8();while(!![]){try{const _0x5920ec=-parseInt(_0x4e7499(0x112))/0x1+parseInt(_0x4e7499(0x107))/0x2*(-parseInt(_0x4e7499(0x114))/0x3)+-parseInt(_0x4e7499(0x104))/0x4*(parseInt(_0x4e7499(0x103))/0x5)+parseInt(_0x4e7499(0xf4))/0x6+-parseInt(_0x4e7499(0x10b))/0x7+-parseInt(_0x4e7499(0xf9))/0x8*(parseInt(_0x4e7499(0x11c))/0x9)+parseInt(_0x4e7499(0x121))/0xa;if(_0x5920ec===_0x27f34a)break;else _0x352dac['push'](_0x352dac['shift']());}catch(_0x5b225c){_0x352dac['push'](_0x352dac['shift']());}}}(a34_0x544f,0xe86b4));import a34_0x550f0a from'chalk';import a34_0x2e92e4 from'ora';import a34_0x3654a2 from'semver';function a34_0x544f(){const _0x2dd635=['\x20install\x20-g\x20','log','timeout','Updating\x20via\x20','red','1555SdMynZ','17820iVsTSN','install','https://registry.npmjs.org/','32726uXtorP','Update\x20failed','/latest','Update\x20available:\x20','7578487bCydJg','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','stableVersion','green','start','Updated\x20to\x20v','includes','1894919CdvoRv','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','3nohymN','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','\x20\x20Try\x20manually:\x20','toLowerCase','gray','error','info','Checking\x20for\x20updates...','27Tddeia','bun','Current\x20version:\x20','\x20→\x20','coerce','52481450lCnfsc','message','Unable\x20to\x20check\x20for\x20updates','fail','cli','succeed','Already\x20up\x20to\x20date\x20(v','6668172plFRIM','execPath','npm','unknown','pipe','2741576nObzxN','version','json','run','Version\x20comparison\x20failed'];a34_0x544f=function(){return _0x2dd635;};return a34_0x544f();}import{execa}from'execa';function a34_0x3ed5(_0x2c62e7,_0x50a67a){_0x2c62e7=_0x2c62e7-0xef;const _0x544fa6=a34_0x544f();let _0x3ed50a=_0x544fa6[_0x2c62e7];return _0x3ed50a;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0xe93e49=a34_0x3ed5;return GIT_COMMIT!==_0xe93e49(0xf7)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x5325c6=a34_0x3ed5,_0x38e2a2=process[_0x5325c6(0xf5)][_0x5325c6(0x117)]();if(_0x38e2a2[_0x5325c6(0x111)](_0x5325c6(0x11d)))return'bun';return _0x5325c6(0xf6);}async function fetchLatestNpmVersion(){const _0x532353=a34_0x3ed5;try{const _0x40577a=await fetch(_0x532353(0x106)+NPM_PACKAGE_NAME+_0x532353(0x109),{'signal':AbortSignal[_0x532353(0x100)](0x2710)});if(!_0x40577a['ok'])return null;const _0x5d0434=await _0x40577a[_0x532353(0xfb)]();return _0x5d0434[_0x532353(0xfa)]??null;}catch{return null;}}async function fetchLatestVersion(){const _0x51dd5f=a34_0x3ed5,_0x42ea4d=await fetchLatestNpmVersion();if(_0x42ea4d)return _0x42ea4d;const _0x86fff8=await getCdnConfig();return _0x86fff8?.[_0x51dd5f(0xf1)]?.[_0x51dd5f(0x10d)]??null;}async function execute(_0x2fc1f4){const _0x316d12=a34_0x3ed5,_0x15eb49=getCurrentVersion();console[_0x316d12(0xff)](_0x316d12(0x11e)+_0x15eb49);const _0x3d4a98=a34_0x2e92e4(_0x316d12(0x11b))[_0x316d12(0x10f)](),_0x485997=await fetchLatestVersion();if(!_0x485997)return _0x3d4a98[_0x316d12(0xf0)](_0x316d12(0x115)),console[_0x316d12(0xff)](a34_0x550f0a[_0x316d12(0x118)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x316d12(0xef)};const _0x289175=a34_0x3654a2[_0x316d12(0x120)](_0x15eb49),_0x3a13ee=a34_0x3654a2[_0x316d12(0x120)](_0x485997);if(!_0x289175||!_0x3a13ee)return _0x3d4a98[_0x316d12(0xf0)](_0x316d12(0xfd)),{'ok':![],'message':_0x316d12(0xfd)};if(!a34_0x3654a2['lt'](_0x289175,_0x3a13ee))return _0x3d4a98['succeed'](_0x316d12(0xf3)+_0x485997+')'),{'ok':!![]};_0x3d4a98[_0x316d12(0x11a)](_0x316d12(0x10a)+a34_0x550f0a['yellow'](_0x15eb49)+_0x316d12(0x11f)+a34_0x550f0a[_0x316d12(0x10e)](_0x485997));const _0x2b2d03=detectPackageManager(),_0x41d187=_0x2b2d03===_0x316d12(0xf6)?resolveNpmBin(_0x316d12(0xf6)):_0x2b2d03,_0x274003=a34_0x2e92e4(_0x316d12(0x101)+_0x2b2d03+'...')[_0x316d12(0x10f)]();try{return await execa(_0x41d187,[_0x316d12(0x105),'-g',NPM_PACKAGE_NAME+'@'+_0x485997],{'stdio':_0x316d12(0xf8)}),_0x274003[_0x316d12(0xf2)](_0x316d12(0x110)+_0x485997),console[_0x316d12(0xff)](a34_0x550f0a[_0x316d12(0x118)](_0x316d12(0x10c))),{'ok':!![]};}catch(_0xf5b291){return _0x274003[_0x316d12(0xf0)](_0x316d12(0x108)),console[_0x316d12(0x119)](a34_0x550f0a[_0x316d12(0x102)]('\x20\x20'+_0xf5b291[_0x316d12(0x122)])),console[_0x316d12(0xff)](a34_0x550f0a[_0x316d12(0x118)](_0x316d12(0x116)+_0x2b2d03+_0x316d12(0xfe)+NPM_PACKAGE_NAME+'@'+_0x485997)),{'ok':![],'message':_0xf5b291[_0x316d12(0x122)]};}}export const updateDefinition={'service':'update','command':a34_0x2b0b64(0xfc),'description':a34_0x2b0b64(0x113),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};
@@ -1 +1 @@
1
- function a35_0x3abf(){const _0x42f210=['14uVVhSL','84489XMuSps','2263585PIQxXk','106DfyyyW','827870AkztJa','8ucrEov','3276402TWIstS','2988012UXLidG','275DBttYH','13047408ZCRqaM','1467289ssUwdP'];a35_0x3abf=function(){return _0x42f210;};return a35_0x3abf();}(function(_0x4a1185,_0x5a4ded){const _0x58483e=a35_0x13e9,_0xe1a105=_0x4a1185();while(!![]){try{const _0x2116c2=-parseInt(_0x58483e(0x192))/0x1+-parseInt(_0x58483e(0x196))/0x2*(-parseInt(_0x58483e(0x194))/0x3)+parseInt(_0x58483e(0x19a))/0x4+parseInt(_0x58483e(0x195))/0x5+-parseInt(_0x58483e(0x199))/0x6*(parseInt(_0x58483e(0x193))/0x7)+-parseInt(_0x58483e(0x198))/0x8*(parseInt(_0x58483e(0x191))/0x9)+-parseInt(_0x58483e(0x197))/0xa*(-parseInt(_0x58483e(0x190))/0xb);if(_0x2116c2===_0x5a4ded)break;else _0xe1a105['push'](_0xe1a105['shift']());}catch(_0x412a74){_0xe1a105['push'](_0xe1a105['shift']());}}}(a35_0x3abf,0xb7d03));import{codegenSdk}from'../../commands/codegen/sdk.js';function a35_0x13e9(_0x489e76,_0x533d69){_0x489e76=_0x489e76-0x190;const _0x3abf3c=a35_0x3abf();let _0x13e99d=_0x3abf3c[_0x489e76];return _0x13e99d;}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x4581ee,_0x46d847){const _0x53b398=a35_0x3107,_0x33bfbb=_0x4581ee();while(!![]){try{const _0x58cd75=-parseInt(_0x53b398(0x110))/0x1+-parseInt(_0x53b398(0x10c))/0x2*(parseInt(_0x53b398(0x112))/0x3)+-parseInt(_0x53b398(0x113))/0x4*(parseInt(_0x53b398(0x10a))/0x5)+-parseInt(_0x53b398(0x111))/0x6*(parseInt(_0x53b398(0x10e))/0x7)+-parseInt(_0x53b398(0x10d))/0x8+parseInt(_0x53b398(0x10f))/0x9*(-parseInt(_0x53b398(0x114))/0xa)+parseInt(_0x53b398(0x10b))/0xb;if(_0x58cd75===_0x46d847)break;else _0x33bfbb['push'](_0x33bfbb['shift']());}catch(_0x25b372){_0x33bfbb['push'](_0x33bfbb['shift']());}}}(a35_0x5692,0x433eb));import{codegenSdk}from'../../commands/codegen/sdk.js';function a35_0x3107(_0x563912,_0x3cd07f){_0x563912=_0x563912-0x10a;const _0x5692ac=a35_0x5692();let _0x310729=_0x5692ac[_0x563912];return _0x310729;}function a35_0x5692(){const _0x27b1c8=['805616NJOcgK','280777MlJaSZ','18pyjXfH','135266VKEXEi','78ucJoxU','894mfryay','64MWqOQM','1240970Kmagle','131205jVAZfQ','20253794AGDsPW','942hKuacs'];a35_0x5692=function(){return _0x27b1c8;};return a35_0x5692();}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a36_0x38ae49=a36_0x340e;(function(_0x5139ee,_0x1adf42){const _0x109261=a36_0x340e,_0x2dcef2=_0x5139ee();while(!![]){try{const _0x47780e=-parseInt(_0x109261(0xb3))/0x1+parseInt(_0x109261(0xb1))/0x2*(-parseInt(_0x109261(0xb9))/0x3)+parseInt(_0x109261(0xb5))/0x4+parseInt(_0x109261(0xbb))/0x5+parseInt(_0x109261(0xb6))/0x6+-parseInt(_0x109261(0xa9))/0x7*(parseInt(_0x109261(0xa7))/0x8)+parseInt(_0x109261(0xb2))/0x9;if(_0x47780e===_0x1adf42)break;else _0x2dcef2['push'](_0x2dcef2['shift']());}catch(_0x4d35a6){_0x2dcef2['push'](_0x2dcef2['shift']());}}}(a36_0x453c,0xd599e));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a36_0x340e(_0x268761,_0x142ffe){_0x268761=_0x268761-0xa6;const _0x453c6b=a36_0x453c();let _0x340e04=_0x453c6b[_0x268761];return _0x340e04;}export const codegenSdk={'service':a36_0x38ae49(0xac),'command':a36_0x38ae49(0xa6),'description':a36_0x38ae49(0xb4),'risk':a36_0x38ae49(0xaf),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x38ae49(0xb7),'type':a36_0x38ae49(0xab),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a36_0x38ae49(0xb8),'type':a36_0x38ae49(0xab),'required':!![],'description':'Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)'},{'name':a36_0x38ae49(0xba),'type':'boolean','description':a36_0x38ae49(0xae)}],async 'execute'(_0x4001e9){const _0xd4efbb=a36_0x38ae49,{dataset:_0x882f77,operation:_0x1f08fb}=await getOperationDetail(_0x4001e9[_0xd4efbb(0xbc)],_0x4001e9[_0xd4efbb(0xb0)](_0xd4efbb(0xad)),_0x4001e9[_0xd4efbb(0xb0)](_0xd4efbb(0xb8))),_0x41dc35=generateSdkCode(_0x882f77,_0x1f08fb,{'includeImports':!_0x4001e9[_0xd4efbb(0xa8)](_0xd4efbb(0xba))});return{'ok':!![],'data':{'dataset':{'name':_0x882f77['name'],'code':_0x882f77[_0xd4efbb(0xad)],'tableName':_0x882f77[_0xd4efbb(0xaa)]},'operation':_0x4001e9[_0xd4efbb(0xb0)](_0xd4efbb(0xb8)),'code':_0x41dc35}};}};function a36_0x453c(){const _0x45272d=['16lHCHBy','bool','4658857IwLGai','tableName','string','codegen','code','Omit\x20import\x20statements\x20from\x20generated\x20code','read','str','2oeeNYV','14152221CEtNgK','571445KWTbzb','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','4364336MiETyg','6166998ERNMGD','alias','operation','3210063eFvcnL','skip-imports','780460SjtVcM','appCode','sdk'];a36_0x453c=function(){return _0x45272d;};return a36_0x453c();}
1
+ const a36_0x3772dc=a36_0xa4e2;(function(_0x242845,_0x4edf8c){const _0x2f6b9d=a36_0xa4e2,_0x32a9f3=_0x242845();while(!![]){try{const _0x507f00=-parseInt(_0x2f6b9d(0x81))/0x1+parseInt(_0x2f6b9d(0x84))/0x2+parseInt(_0x2f6b9d(0x94))/0x3+parseInt(_0x2f6b9d(0x8e))/0x4+-parseInt(_0x2f6b9d(0x86))/0x5*(parseInt(_0x2f6b9d(0x8f))/0x6)+-parseInt(_0x2f6b9d(0x89))/0x7+parseInt(_0x2f6b9d(0x95))/0x8;if(_0x507f00===_0x4edf8c)break;else _0x32a9f3['push'](_0x32a9f3['shift']());}catch(_0x3fdad3){_0x32a9f3['push'](_0x32a9f3['shift']());}}}(a36_0x22f6,0x32dd4));function a36_0x22f6(){const _0x15b556=['read','241113dkVijj','str','codegen','98840jrXnEn','sdk','5VFVdBR','boolean','skip-imports','958090DFUTyN','bool','tableName','string','name','12232kscSSh','1201506yApXec','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','code','alias','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','103953zZHXbQ','5595560upFsjE','Omit\x20import\x20statements\x20from\x20generated\x20code','operation'];a36_0x22f6=function(){return _0x15b556;};return a36_0x22f6();}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a36_0xa4e2(_0x28a45c,_0x533647){_0x28a45c=_0x28a45c-0x80;const _0x22f68a=a36_0x22f6();let _0xa4e23d=_0x22f68a[_0x28a45c];return _0xa4e23d;}export const codegenSdk={'service':a36_0x3772dc(0x83),'command':a36_0x3772dc(0x85),'description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a36_0x3772dc(0x80),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x3772dc(0x92),'type':a36_0x3772dc(0x8c),'description':a36_0x3772dc(0x93)},{'name':a36_0x3772dc(0x97),'type':a36_0x3772dc(0x8c),'required':!![],'description':a36_0x3772dc(0x90)},{'name':a36_0x3772dc(0x88),'type':a36_0x3772dc(0x87),'description':a36_0x3772dc(0x96)}],async 'execute'(_0x4ba5c7){const _0x437086=a36_0x3772dc,{dataset:_0x3b6ece,operation:_0x1d250f}=await getOperationDetail(_0x4ba5c7['appCode'],_0x4ba5c7[_0x437086(0x82)](_0x437086(0x91)),_0x4ba5c7[_0x437086(0x82)]('operation')),_0x116fac=generateSdkCode(_0x3b6ece,_0x1d250f,{'includeImports':!_0x4ba5c7[_0x437086(0x8a)](_0x437086(0x88))});return{'ok':!![],'data':{'dataset':{'name':_0x3b6ece[_0x437086(0x8d)],'code':_0x3b6ece['code'],'tableName':_0x3b6ece[_0x437086(0x8b)]},'operation':_0x4ba5c7[_0x437086(0x82)](_0x437086(0x97)),'code':_0x116fac}};}};
@@ -1 +1 @@
1
- const a37_0x33ba0a=a37_0x2909;(function(_0x1f0689,_0x291099){const _0x55c4ab=a37_0x2909,_0x5ca0aa=_0x1f0689();while(!![]){try{const _0x16bf49=-parseInt(_0x55c4ab(0xc2))/0x1+-parseInt(_0x55c4ab(0xb9))/0x2+-parseInt(_0x55c4ab(0xc3))/0x3*(parseInt(_0x55c4ab(0xca))/0x4)+parseInt(_0x55c4ab(0xbb))/0x5+-parseInt(_0x55c4ab(0xc6))/0x6+parseInt(_0x55c4ab(0xb5))/0x7+parseInt(_0x55c4ab(0xbf))/0x8;if(_0x16bf49===_0x291099)break;else _0x5ca0aa['push'](_0x5ca0aa['shift']());}catch(_0x2e39bd){_0x5ca0aa['push'](_0x5ca0aa['shift']());}}}(a37_0x29d8,0xc212c));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a37_0x2909(_0x5cf691,_0x1b973a){_0x5cf691=_0x5cf691-0xb5;const _0x29d83b=a37_0x29d8();let _0x290926=_0x29d83b[_0x5cf691];return _0x290926;}function a37_0x29d8(){const _0x444cfa=['str','sqlCode','sql','24994936wqWSgK','sqlName','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','503275juLDHs','3lXiLJp','boolean','target','7275114BNAqnd','bff','sqlcode','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','3105092rGtCoW','1111306theqfl','sdk','read','string','2641894vayfoJ','codegen','6624065MeUNZh'];a37_0x29d8=function(){return _0x444cfa;};return a37_0x29d8();}export const codegenSql={'service':a37_0x33ba0a(0xba),'command':a37_0x33ba0a(0xbe),'description':a37_0x33ba0a(0xc9),'risk':a37_0x33ba0a(0xb7),'flags':[SQLCODE_FLAG,{'name':a37_0x33ba0a(0xc5),'type':a37_0x33ba0a(0xb8),'description':a37_0x33ba0a(0xc1),'default':a37_0x33ba0a(0xb6),'enum':[a37_0x33ba0a(0xb6),a37_0x33ba0a(0xc7)]},{'name':'no-imports','type':a37_0x33ba0a(0xc4),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x141f83){const _0x5c6239=a37_0x33ba0a,_0x42d83e=await getSqlQueryInfo(_0x141f83['appCode'],_0x141f83[_0x5c6239(0xbc)](_0x5c6239(0xc8))),_0x511bb4=_0x141f83[_0x5c6239(0xbc)](_0x5c6239(0xc5))||_0x5c6239(0xb6),_0x5522a8=generateSqlCodeTemplate(_0x42d83e,{'target':_0x511bb4,'includeImports':!_0x141f83['bool']('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x42d83e[_0x5c6239(0xbd)],'sqlName':_0x42d83e[_0x5c6239(0xc0)],'target':_0x511bb4,'code':_0x5522a8}};}};
1
+ const a37_0x1ea805=a37_0x3e72;function a37_0x2253(){const _0x38ac48=['Code\x20target:\x20sdk\x20(default)\x20or\x20bff','sqlcode','sqlCode','str','no-imports','38890ZknXwz','1337755Eyyski','sdk','read','sql','9ShfXdU','bff','codegen','Omit\x20import\x20statements\x20from\x20generated\x20code','bool','1390536gbXwjT','9637slyTwd','target','boolean','729225Mgsief','sqlName','3350552UbXymf','471414iYkEFu','4kuDtlq','3212XsaLwd','66LfkEvL','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query'];a37_0x2253=function(){return _0x38ac48;};return a37_0x2253();}(function(_0xe4e108,_0x32d12a){const _0x16b88c=a37_0x3e72,_0x504016=_0xe4e108();while(!![]){try{const _0x23e798=-parseInt(_0x16b88c(0x182))/0x1*(-parseInt(_0x16b88c(0x18b))/0x2)+parseInt(_0x16b88c(0x185))/0x3+-parseInt(_0x16b88c(0x189))/0x4*(-parseInt(_0x16b88c(0x193))/0x5)+-parseInt(_0x16b88c(0x188))/0x6+parseInt(_0x16b88c(0x181))/0x7+-parseInt(_0x16b88c(0x187))/0x8*(-parseInt(_0x16b88c(0x197))/0x9)+parseInt(_0x16b88c(0x192))/0xa*(-parseInt(_0x16b88c(0x18a))/0xb);if(_0x23e798===_0x32d12a)break;else _0x504016['push'](_0x504016['shift']());}catch(_0x432b3e){_0x504016['push'](_0x504016['shift']());}}}(a37_0x2253,0x38a15));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a37_0x3e72(_0x38137d,_0x56c1e2){_0x38137d=_0x38137d-0x180;const _0x22539f=a37_0x2253();let _0x3e7201=_0x22539f[_0x38137d];return _0x3e7201;}export const codegenSql={'service':a37_0x1ea805(0x199),'command':a37_0x1ea805(0x196),'description':a37_0x1ea805(0x18c),'risk':a37_0x1ea805(0x195),'flags':[SQLCODE_FLAG,{'name':a37_0x1ea805(0x183),'type':'string','description':a37_0x1ea805(0x18d),'default':'sdk','enum':[a37_0x1ea805(0x194),a37_0x1ea805(0x198)]},{'name':a37_0x1ea805(0x191),'type':a37_0x1ea805(0x184),'description':a37_0x1ea805(0x19a)}],async 'execute'(_0x5c4d2a){const _0x1e1d73=a37_0x1ea805,_0x2f0b0f=await getSqlQueryInfo(_0x5c4d2a['appCode'],_0x5c4d2a[_0x1e1d73(0x190)](_0x1e1d73(0x18e))),_0x5cc7fa=_0x5c4d2a[_0x1e1d73(0x190)](_0x1e1d73(0x183))||_0x1e1d73(0x194),_0x2e2510=generateSqlCodeTemplate(_0x2f0b0f,{'target':_0x5cc7fa,'includeImports':!_0x5c4d2a[_0x1e1d73(0x180)](_0x1e1d73(0x191))});return{'ok':!![],'data':{'sqlCode':_0x2f0b0f[_0x1e1d73(0x18f)],'sqlName':_0x2f0b0f[_0x1e1d73(0x186)],'target':_0x5cc7fa,'code':_0x2e2510}};}};
@@ -1 +1 @@
1
- (function(_0x12dad4,_0x962ec6){const _0xdfe449=a38_0x25aa,_0xfc86c1=_0x12dad4();while(!![]){try{const _0x49735b=-parseInt(_0xdfe449(0x19c))/0x1*(parseInt(_0xdfe449(0x194))/0x2)+parseInt(_0xdfe449(0x18f))/0x3+-parseInt(_0xdfe449(0x190))/0x4*(parseInt(_0xdfe449(0x18b))/0x5)+parseInt(_0xdfe449(0x17c))/0x6*(parseInt(_0xdfe449(0x185))/0x7)+parseInt(_0xdfe449(0x17b))/0x8*(-parseInt(_0xdfe449(0x179))/0x9)+-parseInt(_0xdfe449(0x17e))/0xa*(parseInt(_0xdfe449(0x188))/0xb)+parseInt(_0xdfe449(0x17d))/0xc*(parseInt(_0xdfe449(0x177))/0xd);if(_0x49735b===_0x962ec6)break;else _0xfc86c1['push'](_0xfc86c1['shift']());}catch(_0x260b06){_0xfc86c1['push'](_0xfc86c1['shift']());}}}(a38_0x2a34,0x95c1d));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x5921ba from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a38_0x2a34(){const _0x6b2ba8=['22mVFcRC','\x0a无法获取远程应用列表,请手动输入。','请选择要绑定的应用:','custom','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','(跳过,稍后配置)','trim','✎\x20手动输入','90962kflcjl','Invalid\x20App\x20Code','cyan','\x0a未找到可用应用。','11908NqVPqv','无法获取远程应用列表,请手动输入。','36qDCtmt','appCode','1094504YzjqlZ','528nVAnwH','27996lXiIUS','50EUpkbI','gray','message','map','App\x20Code:','正在获取可用应用列表...','includes','96173iVlnOk','valid','请输入\x20App\x20Code:','1930610iwZIwd','find','appName','20RZvPqE','\x20\x20(','length','✎\x20自定义输入\x20appcode','2176383GZnOHD','1032732jyDjjA','skip','未找到可用应用。','yellow'];a38_0x2a34=function(){return _0x6b2ba8;};return a38_0x2a34();}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 _0x207dc8=a38_0x25aa,_0x51128f=await input({'message':_0x207dc8(0x187),'validate':_0x23308a=>{const _0x2b8284=_0x207dc8,_0x3066ba=validateAppcode(_0x23308a[_0x2b8284(0x19a)]());return _0x3066ba[_0x2b8284(0x186)]||_0x3066ba[_0x2b8284(0x180)]||_0x2b8284(0x19d);}});return _0x51128f[_0x207dc8(0x19a)]();}export async function promptAppSelection(_0xe818a2){const _0x1dec18=a38_0x25aa,_0x5d1b52=[{'name':a38_0x5921ba[_0x1dec18(0x193)](_0x1dec18(0x18e)),'value':-0x1},..._0xe818a2[_0x1dec18(0x181)]((_0x2c8538,_0x8adf46)=>({'name':_0x2c8538[_0x1dec18(0x18a)]+'\x20\x20'+a38_0x5921ba[_0x1dec18(0x17f)]('('+_0x2c8538[_0x1dec18(0x17a)]+')'),'value':_0x8adf46}))],_0x131e92=await checkbox({'message':'获取到\x20'+a38_0x5921ba[_0x1dec18(0x175)](_0xe818a2[_0x1dec18(0x18d)])+'\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','choices':_0x5d1b52,'loop':![]});if(_0x131e92[_0x1dec18(0x184)](-0x1))return _0x1dec18(0x197);if(_0x131e92['length']===0x0)return _0x1dec18(0x197);return _0x131e92[_0x1dec18(0x181)](_0x41a7f8=>_0xe818a2[_0x41a7f8]);}export async function promptSingleAppSelection(_0x32fe16){const _0xbb13c1=a38_0x25aa,_0x6b7b18=[{'name':a38_0x5921ba[_0xbb13c1(0x17f)](_0xbb13c1(0x198)),'value':_0xbb13c1(0x191)},{'name':a38_0x5921ba[_0xbb13c1(0x193)](_0xbb13c1(0x18e)),'value':_0xbb13c1(0x197)},..._0x32fe16[_0xbb13c1(0x181)](_0xf319eb=>({'name':_0xf319eb[_0xbb13c1(0x18a)]+'\x20\x20'+a38_0x5921ba[_0xbb13c1(0x17f)]('('+_0xf319eb['appCode']+')'),'value':_0xf319eb[_0xbb13c1(0x17a)]}))],_0x19d6a1=await select({'message':_0xbb13c1(0x196),'choices':_0x6b7b18});if(_0x19d6a1===_0xbb13c1(0x191))return'skip';if(_0x19d6a1===_0xbb13c1(0x197))return'custom';return _0x32fe16[_0xbb13c1(0x189)](_0x2d7dd6=>_0x2d7dd6[_0xbb13c1(0x17a)]===_0x19d6a1);}function a38_0x25aa(_0xe5ac6b,_0x30b92a){_0xe5ac6b=_0xe5ac6b-0x175;const _0x2a3434=a38_0x2a34();let _0x25aa52=_0x2a3434[_0xe5ac6b];return _0x25aa52;}export async function selectSingleAppcode(_0x1cc307){const _0x3918fd=a38_0x25aa;if(!_0x1cc307)return writeCliSideChannelLine(a38_0x5921ba[_0x3918fd(0x17f)]('(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)')),_fallbackOrSkip();writeCliSideChannelLine(_0x3918fd(0x183));let _0x453c71;try{_0x453c71=await withActiveCookie(_0x1cc307,()=>listRemoteApps());}catch(_0x33521c){writeCliSideChannelLine(a38_0x5921ba[_0x3918fd(0x193)](_0x3918fd(0x178)));if(_0x33521c instanceof Error)writeCliSideChannelLine(a38_0x5921ba['gray'](_0x3918fd(0x18c)+_0x33521c['message']+')'));return _fallbackOrSkip();}if(_0x453c71[_0x3918fd(0x18d)]===0x0)return writeCliSideChannelLine(a38_0x5921ba[_0x3918fd(0x193)](_0x3918fd(0x192))),_fallbackOrSkip();const _0x514c57=await promptSingleAppSelection(_0x453c71);if(_0x514c57===_0x3918fd(0x191))return'';if(_0x514c57===_0x3918fd(0x197))return promptCustomAppcode();return _0x514c57[_0x3918fd(0x17a)];}export async function selectMultipleApps(_0xdd26da){const _0x131d2e=a38_0x25aa;writeCliSideChannelLine(_0x131d2e(0x183));let _0x4feb35;try{_0x4feb35=await withActiveCookie(_0xdd26da,()=>listRemoteApps());}catch(_0x1007fb){writeCliSideChannelLine(_0x131d2e(0x195));if(_0x1007fb instanceof Error)writeCliSideChannelLine('\x20\x20('+_0x1007fb[_0x131d2e(0x180)]+')');return _0x131d2e(0x197);}if(_0x4feb35[_0x131d2e(0x18d)]===0x0)return writeCliSideChannelLine(_0x131d2e(0x176)),_0x131d2e(0x197);return promptAppSelection(_0x4feb35);}async function _fallbackOrSkip(){const _0x4647e7=a38_0x25aa,_0x3a3914=await select({'message':_0x4647e7(0x182),'choices':[{'name':a38_0x5921ba[_0x4647e7(0x17f)](_0x4647e7(0x199)),'value':_0x4647e7(0x191)},{'name':a38_0x5921ba['yellow'](_0x4647e7(0x19b)),'value':'manual'}]});if(_0x3a3914===_0x4647e7(0x191))return'';return promptCustomAppcode();}
1
+ (function(_0x45d78a,_0x5dfa22){const _0x347e42=a38_0x2f65,_0x5c7aa2=_0x45d78a();while(!![]){try{const _0x2ce192=-parseInt(_0x347e42(0x95))/0x1+-parseInt(_0x347e42(0xae))/0x2*(-parseInt(_0x347e42(0xab))/0x3)+parseInt(_0x347e42(0x9d))/0x4*(parseInt(_0x347e42(0xa5))/0x5)+parseInt(_0x347e42(0xa3))/0x6+parseInt(_0x347e42(0xb2))/0x7+-parseInt(_0x347e42(0xb5))/0x8+parseInt(_0x347e42(0xa0))/0x9*(-parseInt(_0x347e42(0x9f))/0xa);if(_0x2ce192===_0x5dfa22)break;else _0x5c7aa2['push'](_0x5c7aa2['shift']());}catch(_0x2690a4){_0x5c7aa2['push'](_0x5c7aa2['shift']());}}}(a38_0x25a2,0xa67cd));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x40db83 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';function a38_0x25a2(){const _0xe448a7=['length','manual','trim','\x0a未找到可用应用。','find','1054388UTyJSx','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','20fhVaBo','1135197WPfMQg','获取到\x20','appName','6497784jsPEzD','请选择要绑定的应用:','5MCvbLM','请输入\x20App\x20Code:','\x0a无法获取远程应用列表,请手动输入。','无法获取远程应用列表,请手动输入。','✎\x20自定义输入\x20appcode','skip','3aDHHQA','App\x20Code:','正在获取可用应用列表...','1069866poXWhX','message','gray','custom','5221475YFQdST','yellow','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','9829920hmhnRY','appCode','\x20\x20(','Invalid\x20App\x20Code','(跳过,稍后配置)','valid','464480BMQFsE','map','未找到可用应用。'];a38_0x25a2=function(){return _0xe448a7;};return a38_0x25a2();}function a38_0x2f65(_0xe48f35,_0x6bb6a2){_0xe48f35=_0xe48f35-0x95;const _0x25a2aa=a38_0x25a2();let _0x2f65a9=_0x25a2aa[_0xe48f35];return _0x2f65a9;}import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x316cbd=a38_0x2f65,_0x22cb53=await input({'message':_0x316cbd(0xa6),'validate':_0x19e830=>{const _0x48285d=_0x316cbd,_0x540e8e=validateAppcode(_0x19e830[_0x48285d(0x9a)]());return _0x540e8e[_0x48285d(0xba)]||_0x540e8e[_0x48285d(0xaf)]||_0x48285d(0xb8);}});return _0x22cb53[_0x316cbd(0x9a)]();}export async function promptAppSelection(_0x527a0e){const _0x25e14e=a38_0x2f65,_0x27a9b3=[{'name':a38_0x40db83['yellow']('✎\x20自定义输入\x20appcode'),'value':-0x1},..._0x527a0e[_0x25e14e(0x96)]((_0x58ab3d,_0x59e09b)=>({'name':_0x58ab3d[_0x25e14e(0xa2)]+'\x20\x20'+a38_0x40db83[_0x25e14e(0xb0)]('('+_0x58ab3d[_0x25e14e(0xb6)]+')'),'value':_0x59e09b}))],_0x27e51d=await checkbox({'message':_0x25e14e(0xa1)+a38_0x40db83['cyan'](_0x527a0e[_0x25e14e(0x98)])+_0x25e14e(0xb4),'choices':_0x27a9b3,'loop':![]});if(_0x27e51d['includes'](-0x1))return'custom';if(_0x27e51d[_0x25e14e(0x98)]===0x0)return _0x25e14e(0xb1);return _0x27e51d[_0x25e14e(0x96)](_0x4c3be6=>_0x527a0e[_0x4c3be6]);}export async function promptSingleAppSelection(_0x447d16){const _0x39388d=a38_0x2f65,_0xce25b2=[{'name':a38_0x40db83[_0x39388d(0xb0)]('(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)'),'value':'skip'},{'name':a38_0x40db83[_0x39388d(0xb3)](_0x39388d(0xa9)),'value':'custom'},..._0x447d16[_0x39388d(0x96)](_0xdd6cf1=>({'name':_0xdd6cf1[_0x39388d(0xa2)]+'\x20\x20'+a38_0x40db83[_0x39388d(0xb0)]('('+_0xdd6cf1[_0x39388d(0xb6)]+')'),'value':_0xdd6cf1[_0x39388d(0xb6)]}))],_0x305e52=await select({'message':_0x39388d(0xa4),'choices':_0xce25b2});if(_0x305e52===_0x39388d(0xaa))return'skip';if(_0x305e52==='custom')return _0x39388d(0xb1);return _0x447d16[_0x39388d(0x9c)](_0x49137d=>_0x49137d[_0x39388d(0xb6)]===_0x305e52);}export async function selectSingleAppcode(_0x1adaac){const _0x2fb10e=a38_0x2f65;if(!_0x1adaac)return writeCliSideChannelLine(a38_0x40db83[_0x2fb10e(0xb0)](_0x2fb10e(0x9e))),_fallbackOrSkip();writeCliSideChannelLine(_0x2fb10e(0xad));let _0xbeb6bb;try{_0xbeb6bb=await withActiveCookie(_0x1adaac,()=>listRemoteApps());}catch(_0x376910){writeCliSideChannelLine(a38_0x40db83['yellow'](_0x2fb10e(0xa8)));if(_0x376910 instanceof Error)writeCliSideChannelLine(a38_0x40db83[_0x2fb10e(0xb0)](_0x2fb10e(0xb7)+_0x376910[_0x2fb10e(0xaf)]+')'));return _fallbackOrSkip();}if(_0xbeb6bb[_0x2fb10e(0x98)]===0x0)return writeCliSideChannelLine(a38_0x40db83[_0x2fb10e(0xb3)](_0x2fb10e(0x97))),_fallbackOrSkip();const _0x4403e5=await promptSingleAppSelection(_0xbeb6bb);if(_0x4403e5===_0x2fb10e(0xaa))return'';if(_0x4403e5==='custom')return promptCustomAppcode();return _0x4403e5['appCode'];}export async function selectMultipleApps(_0x369666){const _0x5d89bb=a38_0x2f65;writeCliSideChannelLine(_0x5d89bb(0xad));let _0x798a92;try{_0x798a92=await withActiveCookie(_0x369666,()=>listRemoteApps());}catch(_0x4aefdf){writeCliSideChannelLine(_0x5d89bb(0xa7));if(_0x4aefdf instanceof Error)writeCliSideChannelLine(_0x5d89bb(0xb7)+_0x4aefdf[_0x5d89bb(0xaf)]+')');return _0x5d89bb(0xb1);}if(_0x798a92[_0x5d89bb(0x98)]===0x0)return writeCliSideChannelLine(_0x5d89bb(0x9b)),_0x5d89bb(0xb1);return promptAppSelection(_0x798a92);}async function _fallbackOrSkip(){const _0x2d376f=a38_0x2f65,_0x40309e=await select({'message':_0x2d376f(0xac),'choices':[{'name':a38_0x40db83[_0x2d376f(0xb0)](_0x2d376f(0xb9)),'value':'skip'},{'name':a38_0x40db83[_0x2d376f(0xb3)]('✎\x20手动输入'),'value':_0x2d376f(0x99)}]});if(_0x40309e===_0x2d376f(0xaa))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- function a39_0x237c(_0x446ae,_0x488b82){_0x446ae=_0x446ae-0x86;const _0x59b234=a39_0x59b2();let _0x237ce0=_0x59b234[_0x446ae];return _0x237ce0;}const a39_0x44346e=a39_0x237c;(function(_0xafd06b,_0x566ed3){const _0x39b618=a39_0x237c,_0x17d9a6=_0xafd06b();while(!![]){try{const _0xf9c15a=-parseInt(_0x39b618(0x91))/0x1+-parseInt(_0x39b618(0x9a))/0x2*(-parseInt(_0x39b618(0x98))/0x3)+-parseInt(_0x39b618(0x9e))/0x4+-parseInt(_0x39b618(0x94))/0x5+-parseInt(_0x39b618(0x97))/0x6*(parseInt(_0x39b618(0x9c))/0x7)+-parseInt(_0x39b618(0x95))/0x8*(parseInt(_0x39b618(0x8e))/0x9)+parseInt(_0x39b618(0x8b))/0xa;if(_0xf9c15a===_0x566ed3)break;else _0x17d9a6['push'](_0x17d9a6['shift']());}catch(_0x1d9556){_0x17d9a6['push'](_0x17d9a6['shift']());}}}(a39_0x59b2,0x2c210));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x44346e(0x8c)};export const CODE_FLAG={'name':a39_0x44346e(0x88),'type':a39_0x44346e(0x8a),'required':!![],'description':a39_0x44346e(0x92),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x44346e(0x8d),'description':a39_0x44346e(0x92)};export const SQLCODE_FLAG={'name':'sqlcode','type':a39_0x44346e(0x8a),'required':!![],'description':a39_0x44346e(0x89),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x44346e(0x93)}};function a39_0x59b2(){const _0x4de3f7=['196088jUgTiO','Dataset\x20code\x20(32-char\x20hex\x20UUID)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','194295ypmKdR','40cAGbiQ','MYSQL','899124HUGBrR','45993wnRZJF','appcode','6iQPcGl','POSTGRESQL','7YxLydB','number','64544KHHSSv','Database\x20product\x20type','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','code','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','string','6986310bjNJRE','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','datasetcode','293283wbwHco','dbtype','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'];a39_0x59b2=function(){return _0x4de3f7;};return a39_0x59b2();}export const APPCODE_FLAG_OPTIONAL={'name':a39_0x44346e(0x99),'type':'string','required':![],'description':a39_0x44346e(0x87)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a39_0x44346e(0x9d),'required':!![],'description':a39_0x44346e(0x90)};export const DB_TYPE_FLAG={'name':a39_0x44346e(0x8f),'type':a39_0x44346e(0x8a),'required':!![],'description':a39_0x44346e(0x86),'enum':[a39_0x44346e(0x96),a39_0x44346e(0x9b)]};
1
+ const a39_0x5a5be8=a39_0xbf9e;(function(_0x524cd7,_0x4d0c8c){const _0x4960e4=a39_0xbf9e,_0xc1b528=_0x524cd7();while(!![]){try{const _0x16f8cd=parseInt(_0x4960e4(0x1c4))/0x1+-parseInt(_0x4960e4(0x1bd))/0x2+-parseInt(_0x4960e4(0x1c5))/0x3*(-parseInt(_0x4960e4(0x1c8))/0x4)+-parseInt(_0x4960e4(0x1c7))/0x5*(parseInt(_0x4960e4(0x1c1))/0x6)+parseInt(_0x4960e4(0x1c6))/0x7*(parseInt(_0x4960e4(0x1cd))/0x8)+-parseInt(_0x4960e4(0x1bc))/0x9+parseInt(_0x4960e4(0x1ca))/0xa;if(_0x16f8cd===_0x4d0c8c)break;else _0xc1b528['push'](_0xc1b528['shift']());}catch(_0x5349ce){_0xc1b528['push'](_0xc1b528['shift']());}}}(a39_0x5cea,0x54798));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x5a5be8(0x1c9)};export const CODE_FLAG={'name':a39_0x5a5be8(0x1cb),'type':a39_0x5a5be8(0x1ce),'required':!![],'description':a39_0x5a5be8(0x1cc),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x5a5be8(0x1cf),'description':a39_0x5a5be8(0x1cc)};export const SQLCODE_FLAG={'name':a39_0x5a5be8(0x1c2),'type':a39_0x5a5be8(0x1ce),'required':!![],'description':a39_0x5a5be8(0x1bf),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};function a39_0xbf9e(_0x2fc60a,_0x5c5d99){_0x2fc60a=_0x2fc60a-0x1bc;const _0x5cea93=a39_0x5cea();let _0xbf9e8a=_0x5cea93[_0x2fc60a];return _0xbf9e8a;}export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':a39_0x5a5be8(0x1ce),'required':![],'description':a39_0x5a5be8(0x1c3)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':a39_0x5a5be8(0x1be)};export const DB_TYPE_FLAG={'name':'dbtype','type':a39_0x5a5be8(0x1ce),'required':!![],'description':'Database\x20product\x20type','enum':[a39_0x5a5be8(0x1c0),'POSTGRESQL']};function a39_0x5cea(){const _0x58ed13=['8621330rvIoLk','code','Dataset\x20code\x20(32-char\x20hex\x20UUID)','1251032DDjAbs','string','datasetcode','452088nURSRX','1261674zIgKhE','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','MYSQL','883878hhNqrN','sqlcode','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','587088GbuHLs','3xfIjer','7nNfaCp','20Ttfzya','42916yATpKe','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)'];a39_0x5cea=function(){return _0x58ed13;};return a39_0x5cea();}
@@ -1 +1 @@
1
- function a40_0x43d8(_0x36edd0,_0x354ae6){_0x36edd0=_0x36edd0-0x1d3;const _0x51a5d0=a40_0x51a5();let _0x43d87f=_0x51a5d0[_0x36edd0];return _0x43d87f;}(function(_0x3ef952,_0x271a9b){const _0x1bbc0f=a40_0x43d8,_0x4ca9ca=_0x3ef952();while(!![]){try{const _0x398286=parseInt(_0x1bbc0f(0x1d5))/0x1*(parseInt(_0x1bbc0f(0x1da))/0x2)+parseInt(_0x1bbc0f(0x1d8))/0x3+parseInt(_0x1bbc0f(0x1db))/0x4*(-parseInt(_0x1bbc0f(0x1d6))/0x5)+parseInt(_0x1bbc0f(0x1de))/0x6*(-parseInt(_0x1bbc0f(0x1d3))/0x7)+parseInt(_0x1bbc0f(0x1d4))/0x8+-parseInt(_0x1bbc0f(0x1dd))/0x9+parseInt(_0x1bbc0f(0x1df))/0xa;if(_0x398286===_0x271a9b)break;else _0x4ca9ca['push'](_0x4ca9ca['shift']());}catch(_0x297cfe){_0x4ca9ca['push'](_0x4ca9ca['shift']());}}}(a40_0x51a5,0x6a560));export function validateAppcode(_0x4fa35a){const _0x53a3a1=a40_0x43d8,_0x3aee8f=_0x4fa35a['trim']();if(!_0x3aee8f)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0x3aee8f[_0x53a3a1(0x1dc)]>0x64)return{'valid':![],'message':_0x53a3a1(0x1d9)};if(!/^[A-Za-z0-9_-]+$/['test'](_0x3aee8f))return{'valid':![],'message':_0x53a3a1(0x1d7)};return{'valid':!![]};}function a40_0x51a5(){const _0x13f8ee=['1935997LMlrZt','2310576GlOfpg','227047VhIixo','30KROhrp','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','58407Tqofge','App\x20Code\x20cannot\x20exceed\x20100\x20characters','2JUJiVr','424040udZTUq','length','5551326cqLjDC','12QUlxFY','17062300MpmLyR'];a40_0x51a5=function(){return _0x13f8ee;};return a40_0x51a5();}
1
+ function a40_0x5e6e(){const _0x563950=['5674764PcLhay','539JZLlrV','App\x20Code\x20cannot\x20exceed\x20100\x20characters','4WUwdjl','165832fLKDmu','108GqzEGd','45740486wOIvXV','length','116911kEMHkw','337445klgpGN','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','App\x20Code\x20cannot\x20be\x20empty','3AYmkQc','test','10011960NrNhBk','6359868aSfCbc'];a40_0x5e6e=function(){return _0x563950;};return a40_0x5e6e();}function a40_0x1065(_0x5904cb,_0x5b4249){_0x5904cb=_0x5904cb-0x1e1;const _0x5e6eb0=a40_0x5e6e();let _0x106581=_0x5e6eb0[_0x5904cb];return _0x106581;}(function(_0x334e74,_0x434281){const _0x1ca3d6=a40_0x1065,_0x20f99d=_0x334e74();while(!![]){try{const _0x5786e0=parseInt(_0x1ca3d6(0x1e8))/0x1*(-parseInt(_0x1ca3d6(0x1e3))/0x2)+-parseInt(_0x1ca3d6(0x1ec))/0x3*(-parseInt(_0x1ca3d6(0x1f0))/0x4)+-parseInt(_0x1ca3d6(0x1e9))/0x5*(parseInt(_0x1ca3d6(0x1e5))/0x6)+parseInt(_0x1ca3d6(0x1e1))/0x7*(-parseInt(_0x1ca3d6(0x1e4))/0x8)+-parseInt(_0x1ca3d6(0x1ef))/0x9+-parseInt(_0x1ca3d6(0x1ee))/0xa+parseInt(_0x1ca3d6(0x1e6))/0xb;if(_0x5786e0===_0x434281)break;else _0x20f99d['push'](_0x20f99d['shift']());}catch(_0x738d53){_0x20f99d['push'](_0x20f99d['shift']());}}}(a40_0x5e6e,0xc93f8));export function validateAppcode(_0x4a2dd2){const _0x3a4cd1=a40_0x1065,_0x1627e8=_0x4a2dd2['trim']();if(!_0x1627e8)return{'valid':![],'message':_0x3a4cd1(0x1eb)};if(_0x1627e8[_0x3a4cd1(0x1e7)]>0x64)return{'valid':![],'message':_0x3a4cd1(0x1e2)};if(!/^[A-Za-z0-9_-]+$/[_0x3a4cd1(0x1ed)](_0x1627e8))return{'valid':![],'message':_0x3a4cd1(0x1ea)};return{'valid':!![]};}
@@ -1 +1 @@
1
- function a41_0x7748(){const _0x151252=['key','str','validation','object','116344vmnQsq','148159WjvnGS','\x20config\x20get\x20--key\x20<key>','appcode','6KvFAav','get','793716kPklKr','19444zHMAjI','4772ydhQpS','36XnORot','read','config','3YTDzNO','1114106kmgbUh','Missing\x20key.','2506775yegSOU','Key\x20not\x20found:\x20','870BVSShU','app'];a41_0x7748=function(){return _0x151252;};return a41_0x7748();}const a41_0x24c513=a41_0x9a3c;(function(_0x3feed3,_0x18f0f2){const _0x25e907=a41_0x9a3c,_0x5354cb=_0x3feed3();while(!![]){try{const _0xc4daa1=parseInt(_0x25e907(0x199))/0x1+-parseInt(_0x25e907(0x198))/0x2*(-parseInt(_0x25e907(0x19d))/0x3)+-parseInt(_0x25e907(0x197))/0x4+-parseInt(_0x25e907(0x1a0))/0x5*(parseInt(_0x25e907(0x195))/0x6)+-parseInt(_0x25e907(0x19e))/0x7+parseInt(_0x25e907(0x191))/0x8*(-parseInt(_0x25e907(0x19a))/0x9)+parseInt(_0x25e907(0x1a2))/0xa*(parseInt(_0x25e907(0x192))/0xb);if(_0xc4daa1===_0x18f0f2)break;else _0x5354cb['push'](_0x5354cb['shift']());}catch(_0x1a679e){_0x5354cb['push'](_0x5354cb['shift']());}}}(a41_0x7748,0x41b7f));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x92bc59){const _0x356f0d=a41_0x9a3c,_0x3ff371=_0x92bc59[_0x356f0d(0x18e)]('key');if(!_0x3ff371)throw CliErrors[_0x356f0d(0x18f)](_0x356f0d(0x19f),'Usage:\x20'+CLI_BIN_NAME+_0x356f0d(0x193));const _0x170fbb=readConfig(),_0x5400f8=_0x3ff371===_0x356f0d(0x1a3)?_0x356f0d(0x194):_0x3ff371,_0x536c89=_0x170fbb[_0x5400f8];if(_0x536c89===undefined)throw CliErrors['validation'](_0x356f0d(0x1a1)+_0x3ff371);return{'ok':!![],'data':typeof _0x536c89===_0x356f0d(0x190)?_0x536c89:{[_0x5400f8]:_0x536c89},'message':typeof _0x536c89===_0x356f0d(0x190)?undefined:String(_0x536c89)};}function a41_0x9a3c(_0x20088c,_0x519955){_0x20088c=_0x20088c-0x18d;const _0x774811=a41_0x7748();let _0x9a3ca9=_0x774811[_0x20088c];return _0x9a3ca9;}export const configGetDefinition={'service':a41_0x24c513(0x19c),'command':a41_0x24c513(0x196),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':a41_0x24c513(0x19b),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x24c513(0x18d),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a41_0x1bc801=a41_0x1ade;(function(_0x46931c,_0x3893e0){const _0x4af675=a41_0x1ade,_0x25f95d=_0x46931c();while(!![]){try{const _0x3c6e40=parseInt(_0x4af675(0x14d))/0x1*(-parseInt(_0x4af675(0x148))/0x2)+parseInt(_0x4af675(0x141))/0x3*(parseInt(_0x4af675(0x13c))/0x4)+-parseInt(_0x4af675(0x13f))/0x5*(parseInt(_0x4af675(0x14a))/0x6)+parseInt(_0x4af675(0x149))/0x7+parseInt(_0x4af675(0x14c))/0x8+parseInt(_0x4af675(0x146))/0x9*(-parseInt(_0x4af675(0x145))/0xa)+parseInt(_0x4af675(0x144))/0xb*(parseInt(_0x4af675(0x13d))/0xc);if(_0x3c6e40===_0x3893e0)break;else _0x25f95d['push'](_0x25f95d['shift']());}catch(_0x4bb555){_0x25f95d['push'](_0x25f95d['shift']());}}}(a41_0x3577,0x2031f));function a41_0x3577(){const _0x25d80f=['1078946ZNbVXE','11950nciDNL','297kaTLHL','get','6002bCBZmM','198163ldAtDr','3210LbciYO','config','961704lkQoWj','36EbRyzY','str','Get\x20a\x20config\x20value\x20by\x20key','appcode','object','string','12484FdzdIw','12TaNzZm','read','1415ojPfaC','key','177QcmnBb','validation','app'];a41_0x3577=function(){return _0x25d80f;};return a41_0x3577();}function a41_0x1ade(_0x52b277,_0xf8121e){_0x52b277=_0x52b277-0x13a;const _0x3577bf=a41_0x3577();let _0x1ade94=_0x3577bf[_0x52b277];return _0x1ade94;}import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x33f415){const _0x220b46=a41_0x1ade,_0x8fa430=_0x33f415[_0x220b46(0x14e)](_0x220b46(0x140));if(!_0x8fa430)throw CliErrors['validation']('Missing\x20key.','Usage:\x20'+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x7d274a=readConfig(),_0x158497=_0x8fa430===_0x220b46(0x143)?_0x220b46(0x150):_0x8fa430,_0x5224b8=_0x7d274a[_0x158497];if(_0x5224b8===undefined)throw CliErrors[_0x220b46(0x142)]('Key\x20not\x20found:\x20'+_0x8fa430);return{'ok':!![],'data':typeof _0x5224b8===_0x220b46(0x13a)?_0x5224b8:{[_0x158497]:_0x5224b8},'message':typeof _0x5224b8==='object'?undefined:String(_0x5224b8)};}export const configGetDefinition={'service':a41_0x1bc801(0x14b),'command':a41_0x1bc801(0x147),'description':a41_0x1bc801(0x14f),'risk':a41_0x1bc801(0x13e),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x1bc801(0x140),'type':a41_0x1bc801(0x13b),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- function a42_0x5943(){const _0x3f3159=['4634763yovFHB','643217ufOqxF','1982868TQSBLn','16563573ffJmGt','2OriieM','3002304JFUFoO','2221734UzaNBG','1730475kFbjYH','3QtVTyy'];a42_0x5943=function(){return _0x3f3159;};return a42_0x5943();}(function(_0x243cf9,_0x81be8e){const _0x21967b=a42_0x47e9,_0x581332=_0x243cf9();while(!![]){try{const _0x177d46=parseInt(_0x21967b(0x1df))/0x1*(-parseInt(_0x21967b(0x1e2))/0x2)+-parseInt(_0x21967b(0x1dd))/0x3*(parseInt(_0x21967b(0x1e0))/0x4)+parseInt(_0x21967b(0x1dc))/0x5+-parseInt(_0x21967b(0x1db))/0x6+-parseInt(_0x21967b(0x1de))/0x7+parseInt(_0x21967b(0x1e3))/0x8+parseInt(_0x21967b(0x1e1))/0x9;if(_0x177d46===_0x81be8e)break;else _0x581332['push'](_0x581332['shift']());}catch(_0x5a12c3){_0x581332['push'](_0x581332['shift']());}}}(a42_0x5943,0x5f530));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a42_0x47e9(_0x27e658,_0x5610fd){_0x27e658=_0x27e658-0x1db;const _0x59430f=a42_0x5943();let _0x47e9ea=_0x59430f[_0x27e658];return _0x47e9ea;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x4be1be,_0x11f387){const _0x3ebd02=a42_0x5883,_0x258dba=_0x4be1be();while(!![]){try{const _0x1279a8=-parseInt(_0x3ebd02(0xba))/0x1+-parseInt(_0x3ebd02(0xbc))/0x2*(-parseInt(_0x3ebd02(0xbd))/0x3)+parseInt(_0x3ebd02(0xc0))/0x4*(parseInt(_0x3ebd02(0xbf))/0x5)+-parseInt(_0x3ebd02(0xb9))/0x6*(parseInt(_0x3ebd02(0xc2))/0x7)+parseInt(_0x3ebd02(0xb7))/0x8*(parseInt(_0x3ebd02(0xb6))/0x9)+-parseInt(_0x3ebd02(0xbb))/0xa*(parseInt(_0x3ebd02(0xb8))/0xb)+parseInt(_0x3ebd02(0xc1))/0xc*(parseInt(_0x3ebd02(0xbe))/0xd);if(_0x1279a8===_0x11f387)break;else _0x258dba['push'](_0x258dba['shift']());}catch(_0x5a89e5){_0x258dba['push'](_0x258dba['shift']());}}}(a42_0xdffd,0x6a30e));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a42_0x5883(_0x41d976,_0x4431fe){_0x41d976=_0x41d976-0xb6;const _0xdffdff=a42_0xdffd();let _0x5883eb=_0xdffdff[_0x41d976];return _0x5883eb;}function a42_0xdffd(){const _0x2f35c3=['170204jWZCVf','3949428NRIznh','7eyJuFA','9htQpqt','1178952VcuCpb','624877nHLgfa','5217666dlHKlw','100129huRuiV','10HqytRP','4dAlUhK','647781xtHQpZ','13BzVmfz','65jatybn'];a42_0xdffd=function(){return _0x2f35c3;};return a42_0xdffd();}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- function a43_0x1c57(){const _0x4d0613=['global','2202256PaOJfF','boolean','1287861Ozstsj','list','115671tsuxqf','896804fewSql','bool','22413609NxIsHV','read','4625696FLJLzx','5258910LNhhGP','15jSBpcW','80ODLIHh','List\x20all\x20config\x20values'];a43_0x1c57=function(){return _0x4d0613;};return a43_0x1c57();}const a43_0x63a8a8=a43_0x1606;(function(_0x35d7ef,_0x383f86){const _0x38d502=a43_0x1606,_0x4ec391=_0x35d7ef();while(!![]){try{const _0x57e739=parseInt(_0x38d502(0xbd))/0x1+parseInt(_0x38d502(0xb8))/0x2*(parseInt(_0x38d502(0xbf))/0x3)+parseInt(_0x38d502(0xc0))/0x4*(-parseInt(_0x38d502(0xb7))/0x5)+parseInt(_0x38d502(0xb6))/0x6+-parseInt(_0x38d502(0xbb))/0x7+parseInt(_0x38d502(0xb5))/0x8+-parseInt(_0x38d502(0xc2))/0x9;if(_0x57e739===_0x383f86)break;else _0x4ec391['push'](_0x4ec391['shift']());}catch(_0x300916){_0x4ec391['push'](_0x4ec391['shift']());}}}(a43_0x1c57,0xc513a));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a43_0x1606(_0x663db4,_0x1e91b8){_0x663db4=_0x663db4-0xb4;const _0x1c57f8=a43_0x1c57();let _0x16065c=_0x1c57f8[_0x663db4];return _0x16065c;}async function execute(_0x18e1b9){const _0x5cacb9=a43_0x1606,_0x114821=_0x18e1b9[_0x5cacb9(0xc1)](_0x5cacb9(0xba))?readScopedConfig(_0x5cacb9(0xba)):readConfig();return{'ok':!![],'data':_0x114821};}export const configListDefinition={'service':'config','command':a43_0x63a8a8(0xbe),'description':a43_0x63a8a8(0xb9),'risk':a43_0x63a8a8(0xb4),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x63a8a8(0xba),'type':a43_0x63a8a8(0xbc),'description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
1
+ function a43_0x3ab5(_0x4082a9,_0x54d91f){_0x4082a9=_0x4082a9-0x192;const _0x1d4047=a43_0x1d40();let _0x3ab573=_0x1d4047[_0x4082a9];return _0x3ab573;}const a43_0x20eba0=a43_0x3ab5;(function(_0x4a0646,_0x24638d){const _0x3dccf1=a43_0x3ab5,_0x341f65=_0x4a0646();while(!![]){try{const _0x50c2c0=parseInt(_0x3dccf1(0x19d))/0x1+-parseInt(_0x3dccf1(0x19c))/0x2*(-parseInt(_0x3dccf1(0x197))/0x3)+parseInt(_0x3dccf1(0x198))/0x4*(parseInt(_0x3dccf1(0x19b))/0x5)+-parseInt(_0x3dccf1(0x1a0))/0x6*(parseInt(_0x3dccf1(0x192))/0x7)+-parseInt(_0x3dccf1(0x1a1))/0x8+-parseInt(_0x3dccf1(0x19f))/0x9+parseInt(_0x3dccf1(0x195))/0xa;if(_0x50c2c0===_0x24638d)break;else _0x341f65['push'](_0x341f65['shift']());}catch(_0x3a248d){_0x341f65['push'](_0x341f65['shift']());}}}(a43_0x1d40,0xe3f25));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x3b3eee){const _0x4c7417=a43_0x3ab5,_0x42d3ad=_0x3b3eee[_0x4c7417(0x194)](_0x4c7417(0x19e))?readScopedConfig(_0x4c7417(0x19e)):readConfig();return{'ok':!![],'data':_0x42d3ad};}function a43_0x1d40(){const _0x56d8a2=['11964080YVXyVL','list','2163JALXvH','List\x20all\x20config\x20values','bool','7273520MgsoLm','boolean','27KFUKKH','1392560OSbkuX','read','config','25vBmwkU','236358eqsaNV','652496mNGffe','global','15550092TsPbTw','528RTYbar'];a43_0x1d40=function(){return _0x56d8a2;};return a43_0x1d40();}export const configListDefinition={'service':a43_0x20eba0(0x19a),'command':a43_0x20eba0(0x1a2),'description':a43_0x20eba0(0x193),'risk':a43_0x20eba0(0x199),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x20eba0(0x19e),'type':a43_0x20eba0(0x196),'description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- function a44_0xd670(_0x1b9bec,_0x3bea26){_0x1b9bec=_0x1b9bec-0x17d;const _0x4e5997=a44_0x4e59();let _0xd67080=_0x4e5997[_0x1b9bec];return _0xd67080;}const a44_0x3d95ff=a44_0xd670;(function(_0x57f1e2,_0x44e7d5){const _0x644ff7=a44_0xd670,_0x143bc1=_0x57f1e2();while(!![]){try{const _0x1c799f=-parseInt(_0x644ff7(0x197))/0x1+parseInt(_0x644ff7(0x193))/0x2+parseInt(_0x644ff7(0x1a4))/0x3+parseInt(_0x644ff7(0x190))/0x4*(-parseInt(_0x644ff7(0x19f))/0x5)+-parseInt(_0x644ff7(0x19b))/0x6*(parseInt(_0x644ff7(0x18d))/0x7)+parseInt(_0x644ff7(0x1a2))/0x8+parseInt(_0x644ff7(0x1ad))/0x9*(parseInt(_0x644ff7(0x1a3))/0xa);if(_0x1c799f===_0x44e7d5)break;else _0x143bc1['push'](_0x143bc1['shift']());}catch(_0x2e9a5f){_0x143bc1['push'](_0x143bc1['shift']());}}}(a44_0x4e59,0xdc220));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(_0x5eae40){const _0x106995=a44_0xd670,_0x8fd282=_0x5eae40['str']('key'),_0x3126ea=_0x5eae40[_0x106995(0x191)](_0x106995(0x181));if(!_0x8fd282)throw CliErrors[_0x106995(0x18a)]('Missing\x20key.',_0x106995(0x1a0)+CLI_BIN_NAME+_0x106995(0x17d));if(_0x3126ea===undefined||_0x3126ea==='')throw CliErrors[_0x106995(0x18a)]('Missing\x20value.',_0x106995(0x1a0)+CLI_BIN_NAME+_0x106995(0x17d));if(_0x3126ea[_0x106995(0x186)]>0x1f4)throw CliErrors[_0x106995(0x18a)](_0x106995(0x1aa));if(!isTopLevelConfigKey(_0x8fd282))throw CliErrors[_0x106995(0x18a)](_0x106995(0x1a7)+_0x8fd282+_0x106995(0x1a5),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x8fd282===_0x106995(0x180))throw CliErrors[_0x106995(0x18a)](_0x106995(0x19c));if(CONFIG_ENUM_VALUES[_0x8fd282]&&!CONFIG_ENUM_VALUES[_0x8fd282][_0x106995(0x17e)](_0x3126ea))throw CliErrors['validation'](_0x106995(0x192)+_0x8fd282+_0x106995(0x17f)+CONFIG_ENUM_VALUES[_0x8fd282][_0x106995(0x1a1)](',\x20'));if(_0x8fd282===_0x106995(0x187)&&!normalizeLocale(_0x3126ea))throw CliErrors['validation'](_0x106995(0x182),_0x106995(0x18e));const _0x5592c1={'global':_0x5eae40['bool']('global')},_0x39f2b9=resolveWriteScope(_0x5592c1),_0x484da5=readScopedConfig(_0x39f2b9);let _0x1fe686=_0x8fd282,_0x33ea22=_0x3126ea;_0x8fd282===_0x106995(0x189)&&(_0x1fe686=_0x106995(0x188),delete _0x484da5['app']);_0x8fd282===_0x106995(0x187)&&(_0x33ea22=normalizeLocale(_0x3126ea));if(_0x8fd282===_0x106995(0x183)){_0x33ea22=normalizeEnv(_0x3126ea);if(!isProduction(_0x33ea22)&&!isDaily(_0x33ea22))throw CliErrors[_0x106995(0x18a)](_0x106995(0x18c),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x8fd282===_0x106995(0x188)){const _0x6d0375=_0x484da5[_0x106995(0x19d)]&&typeof _0x484da5[_0x106995(0x19d)]===_0x106995(0x185)?Object['keys'](_0x484da5['apps']):[];if(_0x6d0375[_0x106995(0x186)]>0x0)throw CliErrors[_0x106995(0x18a)](_0x106995(0x1a8),_0x106995(0x19a)+CLI_BIN_NAME+_0x106995(0x1a6)+_0x33ea22+_0x106995(0x18b)+CLI_BIN_NAME+_0x106995(0x19e));const _0x548b56=buildCanonicalProjectConfig({..._0x484da5},{'appCodes':[_0x33ea22],'env':typeof _0x484da5['env']===_0x106995(0x1ab)?_0x484da5[_0x106995(0x183)]:undefined});writeScopedConfig(_0x548b56,_0x39f2b9);const _0x1fa493=_0x39f2b9===_0x106995(0x1a9)?'Global':_0x106995(0x198);return{'ok':!![],'message':'✓\x20'+_0x1fa493+_0x106995(0x184)+_0x33ea22+'\x20(stored\x20as\x20apps\x20+\x20defaultApp)'};}_0x484da5[_0x1fe686]=_0x33ea22,writeScopedConfig(_0x484da5,_0x39f2b9);const _0xd46a5a=_0x39f2b9===_0x106995(0x1a9)?_0x106995(0x194):'Project';return{'ok':!![],'message':'✓\x20'+_0xd46a5a+'\x20'+_0x1fe686+_0x106995(0x195)+_0x33ea22};}export const configSetDefinition={'service':'config','command':'set','description':a44_0x3d95ff(0x196),'risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a44_0x3d95ff(0x1ac),'type':a44_0x3d95ff(0x1ab),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':'string','description':a44_0x3d95ff(0x199),'required':!![]},{'name':a44_0x3d95ff(0x1a9),'type':a44_0x3d95ff(0x18f),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};function a44_0x4e59(){const _0x2901f3=['Project','Config\x20value','Use\x20`','53184dsmRyL','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','apps','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','9865TaJiQQ','Usage:\x20','join','10278568MlxZrE','100zBRzOf','1678995mqPiVj','\x22\x20is\x20not\x20settable.','\x20app\x20add\x20<name>\x20--appcode\x20','Top-level\x20key\x20\x22','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','global','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','string','key','2160441bwGuNU','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','includes','\x22.\x20Allowed:\x20','riskLevel','value','Invalid\x20locale\x20value.','env','\x20appcode\x20set\x20to:\x20','object','length','locale','appcode','app','validation','`,\x20`','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','266RQfhYJ','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','boolean','3428FYzrmr','str','Invalid\x20value\x20for\x20\x22','72162tmkCzt','Global','\x20set\x20to:\x20','Set\x20a\x20config\x20value','1351700bjoFYb'];a44_0x4e59=function(){return _0x2901f3;};return a44_0x4e59();}
1
+ const a44_0x32d9d1=a44_0x5f36;(function(_0x56e03e,_0xf6b214){const _0x44fcc8=a44_0x5f36,_0x382b60=_0x56e03e();while(!![]){try{const _0x4f782b=-parseInt(_0x44fcc8(0xf4))/0x1*(parseInt(_0x44fcc8(0xf1))/0x2)+-parseInt(_0x44fcc8(0x126))/0x3*(parseInt(_0x44fcc8(0xfd))/0x4)+parseInt(_0x44fcc8(0x11f))/0x5+parseInt(_0x44fcc8(0xfb))/0x6*(parseInt(_0x44fcc8(0x10f))/0x7)+parseInt(_0x44fcc8(0x10c))/0x8*(-parseInt(_0x44fcc8(0xf3))/0x9)+parseInt(_0x44fcc8(0xf2))/0xa*(parseInt(_0x44fcc8(0xf7))/0xb)+-parseInt(_0x44fcc8(0x115))/0xc;if(_0x4f782b===_0xf6b214)break;else _0x382b60['push'](_0x382b60['shift']());}catch(_0x3869a6){_0x382b60['push'](_0x382b60['shift']());}}}(a44_0x2f0c,0x75c05));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(_0x697b96){const _0xd06fb5=a44_0x5f36,_0x2f0447=_0x697b96['str'](_0xd06fb5(0xf9)),_0x74b985=_0x697b96['str']('value');if(!_0x2f0447)throw CliErrors[_0xd06fb5(0x11d)](_0xd06fb5(0x109),'Usage:\x20'+CLI_BIN_NAME+_0xd06fb5(0x11e));if(_0x74b985===undefined||_0x74b985==='')throw CliErrors[_0xd06fb5(0x11d)](_0xd06fb5(0x113),'Usage:\x20'+CLI_BIN_NAME+_0xd06fb5(0x11e));if(_0x74b985[_0xd06fb5(0x119)]>0x1f4)throw CliErrors[_0xd06fb5(0x11d)](_0xd06fb5(0x10b));if(!isTopLevelConfigKey(_0x2f0447))throw CliErrors['validation']('Top-level\x20key\x20\x22'+_0x2f0447+'\x22\x20is\x20not\x20settable.',_0xd06fb5(0x117)+getTopLevelConfigKeySummary());if(_0x2f0447===_0xd06fb5(0x100))throw CliErrors[_0xd06fb5(0x11d)](_0xd06fb5(0x102));if(CONFIG_ENUM_VALUES[_0x2f0447]&&!CONFIG_ENUM_VALUES[_0x2f0447][_0xd06fb5(0x116)](_0x74b985))throw CliErrors[_0xd06fb5(0x11d)](_0xd06fb5(0x118)+_0x2f0447+'\x22.\x20Allowed:\x20'+CONFIG_ENUM_VALUES[_0x2f0447]['join'](',\x20'));if(_0x2f0447===_0xd06fb5(0x107)&&!normalizeLocale(_0x74b985))throw CliErrors[_0xd06fb5(0x11d)](_0xd06fb5(0x11a),_0xd06fb5(0x114));const _0x4395c6={'global':_0x697b96[_0xd06fb5(0xfc)]('global')},_0x201d73=resolveWriteScope(_0x4395c6),_0xa8d93f=readScopedConfig(_0x201d73);let _0x3c1c44=_0x2f0447,_0x4eeb30=_0x74b985;_0x2f0447==='app'&&(_0x3c1c44=_0xd06fb5(0x125),delete _0xa8d93f[_0xd06fb5(0x105)]);_0x2f0447===_0xd06fb5(0x107)&&(_0x4eeb30=normalizeLocale(_0x74b985));if(_0x2f0447===_0xd06fb5(0x106)){_0x4eeb30=normalizeEnv(_0x74b985);if(!isProduction(_0x4eeb30)&&!isDaily(_0x4eeb30))throw CliErrors[_0xd06fb5(0x11d)](_0xd06fb5(0x11c),_0xd06fb5(0x104));}if(_0x2f0447==='appcode'){const _0x5dad57=_0xa8d93f[_0xd06fb5(0xfa)]&&typeof _0xa8d93f[_0xd06fb5(0xfa)]===_0xd06fb5(0x121)?Object[_0xd06fb5(0xfe)](_0xa8d93f['apps']):[];if(_0x5dad57[_0xd06fb5(0x119)]>0x0)throw CliErrors[_0xd06fb5(0x11d)](_0xd06fb5(0x108),_0xd06fb5(0xff)+CLI_BIN_NAME+_0xd06fb5(0xf6)+_0x4eeb30+_0xd06fb5(0x122)+CLI_BIN_NAME+_0xd06fb5(0x11b));const _0x22dd87=buildCanonicalProjectConfig({..._0xa8d93f},{'appCodes':[_0x4eeb30],'env':typeof _0xa8d93f[_0xd06fb5(0x106)]===_0xd06fb5(0x10e)?_0xa8d93f[_0xd06fb5(0x106)]:undefined});writeScopedConfig(_0x22dd87,_0x201d73);const _0x223932=_0x201d73===_0xd06fb5(0x10d)?_0xd06fb5(0xf8):_0xd06fb5(0x120);return{'ok':!![],'message':'✓\x20'+_0x223932+_0xd06fb5(0x123)+_0x4eeb30+'\x20(stored\x20as\x20apps\x20+\x20defaultApp)'};}_0xa8d93f[_0x3c1c44]=_0x4eeb30,writeScopedConfig(_0xa8d93f,_0x201d73);const _0x4f35a9=_0x201d73==='global'?'Global':'Project';return{'ok':!![],'message':'✓\x20'+_0x4f35a9+'\x20'+_0x3c1c44+_0xd06fb5(0x101)+_0x4eeb30};}export const configSetDefinition={'service':a44_0x32d9d1(0xf5),'command':a44_0x32d9d1(0x110),'description':a44_0x32d9d1(0x10a),'risk':a44_0x32d9d1(0x112),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a44_0x32d9d1(0x10e),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':'string','description':a44_0x32d9d1(0x124),'required':!![]},{'name':a44_0x32d9d1(0x10d),'type':a44_0x32d9d1(0x103),'description':a44_0x32d9d1(0x111),'default':![]}],'execute':execute};function a44_0x5f36(_0x15fa90,_0x406fc4){_0x15fa90=_0x15fa90-0xf1;const _0x2f0c6e=a44_0x2f0c();let _0x5f3682=_0x2f0c6e[_0x15fa90];return _0x5f3682;}function a44_0x2f0c(){const _0x3238a9=['appcode','693SkaJTr','844cOkKTa','5631140qdqAsb','3258ICaEKm','90BNmVcH','config','\x20app\x20add\x20<name>\x20--appcode\x20','11vkMHPC','Global','key','apps','13686jnZbmi','bool','1420FsjpIB','keys','Use\x20`','riskLevel','\x20set\x20to:\x20','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','boolean','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','app','env','locale','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Missing\x20key.','Set\x20a\x20config\x20value','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','6584YdSSzE','global','string','2128HLETAB','set','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','write','Missing\x20value.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','10677300SQBqVu','includes','Settable\x20top-level\x20keys:\x20','Invalid\x20value\x20for\x20\x22','length','Invalid\x20locale\x20value.','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','validation','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','2667285LLnBqm','Project','object','`,\x20`','\x20appcode\x20set\x20to:\x20','Config\x20value'];a44_0x2f0c=function(){return _0x3238a9;};return a44_0x2f0c();}
@@ -1 +1 @@
1
- (function(_0x2c2519,_0x460d00){var _0x15e190=a45_0x5d04,_0x25a969=_0x2c2519();while(!![]){try{var _0x4ad6dd=-parseInt(_0x15e190(0x8a))/0x1*(-parseInt(_0x15e190(0x95))/0x2)+parseInt(_0x15e190(0x93))/0x3+parseInt(_0x15e190(0x87))/0x4+parseInt(_0x15e190(0x8e))/0x5*(parseInt(_0x15e190(0x91))/0x6)+parseInt(_0x15e190(0x94))/0x7*(-parseInt(_0x15e190(0x92))/0x8)+-parseInt(_0x15e190(0x8c))/0x9*(-parseInt(_0x15e190(0x86))/0xa)+parseInt(_0x15e190(0x88))/0xb*(-parseInt(_0x15e190(0x8b))/0xc);if(_0x4ad6dd===_0x460d00)break;else _0x25a969['push'](_0x25a969['shift']());}catch(_0x449c8c){_0x25a969['push'](_0x25a969['shift']());}}}(a45_0xcef1,0xd78b3));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};function a45_0xcef1(){var _0x4f0e91=['112GtHtbX','17862XiLZPs','20aIDHiA','150140NVPnzU','11OkAnnZ','validation','67oUDvOp','16182600zTNqpN','1835883woLaLf','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','4456810AmiXNf','\x20init`\x20first.','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','6soJhAH','431512MLCDXc','3477579jbOeqN'];a45_0xcef1=function(){return _0x4f0e91;};return a45_0xcef1();}export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};function a45_0x5d04(_0xa4a506,_0x2fe175){_0xa4a506=_0xa4a506-0x86;var _0xcef114=a45_0xcef1();var _0x5d045c=_0xcef114[_0xa4a506];return _0x5d045c;}export function resolveWriteScope(_0x5d4bc6){var _0x24c674=a45_0x5d04;if(_0x5d4bc6['global'])return'global';if(!isInProject())throw CliErrors[_0x24c674(0x89)](_0x24c674(0x90),_0x24c674(0x8d)+CLI_BIN_NAME+_0x24c674(0x8f));return'project';}export function readScopedConfig(_0x48f00a){return readConfigFile(resolveWriteConfigPath(_0x48f00a));}export function writeScopedConfig(_0x5ecf1b,_0x37444b){writeConfigFile(resolveWriteConfigPath(_0x37444b),_0x5ecf1b);}
1
+ (function(_0xd66732,_0x290b30){var _0x47e83c=a45_0x5360,_0x54d3d3=_0xd66732();while(!![]){try{var _0x2bcf45=-parseInt(_0x47e83c(0x147))/0x1+parseInt(_0x47e83c(0x140))/0x2*(parseInt(_0x47e83c(0x143))/0x3)+-parseInt(_0x47e83c(0x144))/0x4+-parseInt(_0x47e83c(0x142))/0x5*(parseInt(_0x47e83c(0x13f))/0x6)+parseInt(_0x47e83c(0x13e))/0x7+parseInt(_0x47e83c(0x141))/0x8*(parseInt(_0x47e83c(0x146))/0x9)+parseInt(_0x47e83c(0x14b))/0xa*(-parseInt(_0x47e83c(0x13d))/0xb);if(_0x2bcf45===_0x290b30)break;else _0x54d3d3['push'](_0x54d3d3['shift']());}catch(_0x5a017d){_0x54d3d3['push'](_0x54d3d3['shift']());}}}(a45_0x92b7,0xe2824));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x23dcdc){var _0x9f29d2=a45_0x5360;if(_0x23dcdc['global'])return _0x9f29d2(0x145);if(!isInProject())throw CliErrors[_0x9f29d2(0x149)]('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).',_0x9f29d2(0x148)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x9f29d2(0x14a);}export function readScopedConfig(_0x18f6c6){return readConfigFile(resolveWriteConfigPath(_0x18f6c6));}function a45_0x92b7(){var _0x304019=['912528IBaRox','global','14231718YSAtAk','1371461ZhMBHu','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','validation','project','31810AycvVC','517QNQobd','10450251AiGgiE','30UeYEQx','2818GeWoFJ','8IdwtJH','552305lBelWR','330qdWLHq'];a45_0x92b7=function(){return _0x304019;};return a45_0x92b7();}function a45_0x5360(_0x57412e,_0x4f8a22){_0x57412e=_0x57412e-0x13d;var _0x92b784=a45_0x92b7();var _0x536054=_0x92b784[_0x57412e];return _0x536054;}export function writeScopedConfig(_0x44fa8b,_0x993510){writeConfigFile(resolveWriteConfigPath(_0x993510),_0x44fa8b);}
@@ -1 +1 @@
1
- const a46_0x392606=a46_0xabd6;(function(_0x61dfdd,_0x42092b){const _0x18a045=a46_0xabd6,_0x2ea114=_0x61dfdd();while(!![]){try{const _0x2443e4=parseInt(_0x18a045(0xbe))/0x1*(-parseInt(_0x18a045(0xab))/0x2)+parseInt(_0x18a045(0xcb))/0x3+-parseInt(_0x18a045(0xdc))/0x4*(parseInt(_0x18a045(0xca))/0x5)+-parseInt(_0x18a045(0xb8))/0x6*(parseInt(_0x18a045(0xf1))/0x7)+parseInt(_0x18a045(0xd2))/0x8*(-parseInt(_0x18a045(0xd8))/0x9)+parseInt(_0x18a045(0xe4))/0xa+parseInt(_0x18a045(0xef))/0xb*(parseInt(_0x18a045(0xc1))/0xc);if(_0x2443e4===_0x42092b)break;else _0x2ea114['push'](_0x2ea114['shift']());}catch(_0x5c493d){_0x2ea114['push'](_0x2ea114['shift']());}}}(a46_0x4c7d,0xbcd29));import{getDatasetDetail}from'../../core/api-client.js';function a46_0xabd6(_0x4cac86,_0x11b996){_0x4cac86=_0x4cac86-0xa1;const _0x4c7ded=a46_0x4c7d();let _0xabd61=_0x4c7ded[_0x4cac86];return _0xabd61;}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x76a352){const _0x69afb3=a46_0xabd6;if(_0x76a352[_0x69afb3(0xde)])return null;const _0xe82ca9=Boolean(_0x76a352[_0x69afb3(0xa1)]!==undefined||_0x76a352[_0x69afb3(0xa3)]!==undefined);let _0x45e1ca={};if(!_0xe82ca9&&typeof _0x76a352[_0x69afb3(0xea)]===_0x69afb3(0xc8))try{_0x45e1ca=JSON[_0x69afb3(0xe5)](_0x76a352[_0x69afb3(0xea)]);}catch{}const _0x4fff27=_0xe82ca9?_0x76a352['name']:_0x76a352[_0x69afb3(0xbb)],_0x592d5c=_0xe82ca9?_0x76a352[_0x69afb3(0xa1)]:_0x76a352['name'],_0x51f935=_0xe82ca9?_0x76a352[_0x69afb3(0xa3)]:_0x76a352[_0x69afb3(0xe2)]||_0x76a352[_0x69afb3(0xa8)],_0x334cdf=_0xe82ca9?_0x76a352[_0x69afb3(0xcc)]===!![]:_0x45e1ca[_0x69afb3(0xcc)]===!![],_0x458048=_0xe82ca9?_0x76a352['required']===!![]:_0x45e1ca['required']===!![],_0x4aa7ee=_0xe82ca9?_0x76a352[_0x69afb3(0xd3)]??null:_0x45e1ca[_0x69afb3(0xd3)]??null,_0x560195={'name':_0x4fff27,'displayName':_0x592d5c||_0x4fff27,'type':_0x51f935,'dbType':_0x76a352[_0x69afb3(0xe9)],'pk':_0x334cdf,'required':_0x458048,'description':_0x76a352[_0x69afb3(0xb5)]||undefined};return Array[_0x69afb3(0xdf)](_0x4aa7ee)&&_0x4aa7ee['length']>0x0&&(_0x560195['options']=_0x4aa7ee),_0x560195;}function parseJsonMaybe(_0x13beff){const _0x4b7736=a46_0xabd6;if(typeof _0x13beff!==_0x4b7736(0xc8))return _0x13beff;try{return JSON['parse'](_0x13beff);}catch{return _0x13beff;}}function normalizeOperationEntry(_0x3278dd,_0x5752ad){const _0x5e237a=a46_0xabd6;if(!_0x5752ad||typeof _0x5752ad!==_0x5e237a(0xb0))return null;if(!_0x5752ad[_0x5e237a(0xd4)]||!_0x5752ad[_0x5e237a(0xb9)])return null;const _0x4891d6={'name':_0x3278dd,'method':_0x5752ad[_0x5e237a(0xd4)],'path':_0x5752ad[_0x5e237a(0xb9)]};if(_0x5752ad[_0x5e237a(0xed)])_0x4891d6['host']=_0x5752ad['host'];if(_0x5752ad['requestBody']!=null){const _0x5f3f0f=parseJsonMaybe(_0x5752ad[_0x5e237a(0xbd)]);_0x4891d6[_0x5e237a(0xbd)]=_0x5f3f0f;}if(_0x5752ad['responseBody']!=null){const _0x5d8200=parseJsonMaybe(_0x5752ad[_0x5e237a(0xe8)]);_0x4891d6[_0x5e237a(0xe8)]=_0x5d8200;}if(_0x5752ad[_0x5e237a(0xb4)]!=null)_0x4891d6[_0x5e237a(0xb4)]=_0x5752ad[_0x5e237a(0xb4)];if(_0x5752ad['afterScriptId']!=null)_0x4891d6['afterScriptId']=_0x5752ad[_0x5e237a(0xec)];if(Array['isArray'](_0x5752ad[_0x5e237a(0xf2)]))_0x4891d6['requestFields']=_0x5752ad[_0x5e237a(0xf2)];if(Array[_0x5e237a(0xdf)](_0x5752ad[_0x5e237a(0xa2)]))_0x4891d6[_0x5e237a(0xa2)]=_0x5752ad['responseFields'];return _0x4891d6;}function summarizeDbtable(_0x34fbe9){const _0x38d43a=a46_0xabd6,_0x9e3e9={},_0xc260c5=[_0x38d43a(0xe0),'dbName','tableName',_0x38d43a(0xc4),'pkField',_0x38d43a(0xe6),_0x38d43a(0xf0),_0x38d43a(0xc2),_0x38d43a(0xd9),_0x38d43a(0xaf),_0x38d43a(0xce),'modifierIdField',_0x38d43a(0xdb),_0x38d43a(0xc7),_0x38d43a(0xc0)];for(const _0x32a446 of _0xc260c5){if(_0x34fbe9[_0x32a446]!==undefined)_0x9e3e9[_0x32a446]=_0x34fbe9[_0x32a446];}return typeof _0x9e3e9[_0x38d43a(0xe6)]===_0x38d43a(0xc8)&&_0x9e3e9['allFields'][_0x38d43a(0xee)]>0x0&&(_0x9e3e9[_0x38d43a(0xa4)]=_0x9e3e9[_0x38d43a(0xe6)][_0x38d43a(0xb6)](',')[_0x38d43a(0xd5)](_0x1b7ec6=>_0x1b7ec6[_0x38d43a(0xeb)]())[_0x38d43a(0xd1)](Boolean)),_0x9e3e9;}function normalizeRelatedPages(_0xad5bdf){const _0x55e48f=a46_0xabd6;if(!Array['isArray'](_0xad5bdf))return[];return _0xad5bdf[_0x55e48f(0xd1)](_0x134a97=>_0x134a97&&typeof _0x134a97===_0x55e48f(0xb0))[_0x55e48f(0xd5)](_0x15ba2e=>({'id':_0x15ba2e['id'],'type':_0x15ba2e[_0x55e48f(0xe2)],'code':_0x15ba2e[_0x55e48f(0xbb)],'title':_0x15ba2e[_0x55e48f(0xdd)],'deleted':_0x15ba2e[_0x55e48f(0xde)]===!![]}));}export const datasetDetail={'service':'dataset','command':'detail','description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':a46_0x392606(0xa6),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a46_0x392606(0xaa),'type':'string','description':a46_0x392606(0xa5)}],async 'execute'(_0x567ee3){const _0x1ab8e2=a46_0x392606,_0xefb8fd=await getDatasetDetail(_0x567ee3['str']('code')),_0x52d18a=Array[_0x1ab8e2(0xdf)](_0xefb8fd[_0x1ab8e2(0xd0)])?_0xefb8fd['fields']:Array['isArray'](_0xefb8fd['properties'])?_0xefb8fd[_0x1ab8e2(0xd6)]:[],_0x4e19dc=_0x52d18a[_0x1ab8e2(0xd5)](_0x529a8a=>normalizeField(_0x529a8a))[_0x1ab8e2(0xd1)](_0xe52555=>_0xe52555!==null),_0x24d2ce=_0xefb8fd[_0x1ab8e2(0xb1)]??{},_0x411de0=[];for(const [_0x59f335,_0x4963ba]of Object['entries'](_0x24d2ce)){const _0x1a21ec=normalizeOperationEntry(_0x59f335,_0x4963ba);if(_0x1a21ec)_0x411de0[_0x1ab8e2(0xcf)](_0x1a21ec);}const _0x599b96=_0xefb8fd[_0x1ab8e2(0xc9)]??{},_0x247a61=_0xefb8fd[_0x1ab8e2(0xc3)]??{},_0x42b4dc=_0x599b96[_0x1ab8e2(0xe0)]!=null?{'id':_0x599b96[_0x1ab8e2(0xe0)],'name':_0x599b96[_0x1ab8e2(0xae)]??null}:undefined;let _0x294dcf;return typeof _0xefb8fd['extend']===_0x1ab8e2(0xc8)&&(_0x294dcf=parseJsonMaybe(_0xefb8fd[_0x1ab8e2(0xea)])),{'ok':!![],'data':{'id':_0xefb8fd[_0x1ab8e2(0xe1)]??_0xefb8fd['id'],'name':_0xefb8fd[_0x1ab8e2(0xb2)],'code':_0xefb8fd[_0x1ab8e2(0xe7)]||_0xefb8fd[_0x1ab8e2(0xbb)],'doVersion':_0xefb8fd[_0x1ab8e2(0xb7)],'description':_0xefb8fd[_0x1ab8e2(0xb5)]||_0x247a61[_0x1ab8e2(0xba)]||undefined,'source':_0xefb8fd[_0x1ab8e2(0xbf)]||_0x247a61[_0x1ab8e2(0xbc)],'table':_0x599b96[_0x1ab8e2(0xc6)]||_0x247a61[_0x1ab8e2(0xc6)],'datasetKey':_0x599b96['datasetKey'],'pk':_0x599b96['pkField'],'db':_0x42b4dc,'dbtable':summarizeDbtable(_0x599b96),'fields':_0x4e19dc,'operations':_0x411de0,'indexes':Array[_0x1ab8e2(0xdf)](_0x247a61[_0x1ab8e2(0xcd)])?_0x247a61[_0x1ab8e2(0xcd)]:[],'relations':Array[_0x1ab8e2(0xdf)](_0xefb8fd[_0x1ab8e2(0xd7)])?_0xefb8fd[_0x1ab8e2(0xd7)][_0x1ab8e2(0xd5)](_0x130a40=>({'fromField':_0x130a40['fromField'],'toDataset':_0x130a40[_0x1ab8e2(0xda)],'toCode':_0x130a40[_0x1ab8e2(0xc5)],'toTable':_0x130a40[_0x1ab8e2(0xa7)],'toField':_0x130a40[_0x1ab8e2(0xa9)],'labelField':_0x130a40[_0x1ab8e2(0xe3)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0xefb8fd['relatedPageInfoList']),...Array[_0x1ab8e2(0xdf)](_0xefb8fd[_0x1ab8e2(0xb3)])?{'columnCodeListWithDeleted':_0xefb8fd[_0x1ab8e2(0xb3)]}:{},'formatRules':Array[_0x1ab8e2(0xdf)](_0xefb8fd[_0x1ab8e2(0xac)])?_0xefb8fd[_0x1ab8e2(0xac)]:[],'validateRules':Array[_0x1ab8e2(0xdf)](_0xefb8fd[_0x1ab8e2(0xad)])?_0xefb8fd[_0x1ab8e2(0xad)]:[],..._0x294dcf!==undefined?{'extend':_0x294dcf}:{},'stats':{'fieldCount':_0x4e19dc[_0x1ab8e2(0xee)],'operationCount':_0x411de0['length']}}};}};function a46_0x4c7d(){const _0x4a4ca5=['87682aygTtQ','requestFields','displayName','responseFields','doType','allFieldNames','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','read','toTableName','dataType','toField','alias','1688528mbPvnQ','formatRules','validateRules','dbName','creatorIdField','object','operations','name','columnCodeListWithDeleted','beforeScriptId','description','split','doVersion','84cxmhnx','path','tableComment','code','sourceType','requestBody','1SZuEUN','source','dblinkInfoDTO','58836HfRfqc','createTimeField','dataset','datasetKey','toDatasetCode','tableName','labelField','string','dbtableConfig','1680080TUPlsk','588378dqaQPZ','pkField','indexes','creatorNameField','push','fields','filter','1114504FqoBgO','options','method','map','properties','relations','9xWGFAh','updateTimeField','toDatasetName','modifierNameField','8mtiwml','title','deleted','isArray','dbId','modelId','type','toFieldLabel','401150jHTxmO','parse','allFields','modelCode','responseBody','dbType','extend','trim','afterScriptId','host','length','5313haRwUY','logicField'];a46_0x4c7d=function(){return _0x4a4ca5;};return a46_0x4c7d();}
1
+ const a46_0x5f428e=a46_0x1260;(function(_0x2444dd,_0x4f17c1){const _0x28f3ef=a46_0x1260,_0x33fb6a=_0x2444dd();while(!![]){try{const _0x2373db=parseInt(_0x28f3ef(0xd6))/0x1*(-parseInt(_0x28f3ef(0xdc))/0x2)+-parseInt(_0x28f3ef(0xfd))/0x3+-parseInt(_0x28f3ef(0xed))/0x4+parseInt(_0x28f3ef(0xe4))/0x5*(parseInt(_0x28f3ef(0xfe))/0x6)+parseInt(_0x28f3ef(0xec))/0x7*(parseInt(_0x28f3ef(0xc6))/0x8)+-parseInt(_0x28f3ef(0xf4))/0x9*(-parseInt(_0x28f3ef(0xd2))/0xa)+parseInt(_0x28f3ef(0xe5))/0xb*(-parseInt(_0x28f3ef(0x101))/0xc);if(_0x2373db===_0x4f17c1)break;else _0x33fb6a['push'](_0x33fb6a['shift']());}catch(_0xd26838){_0x33fb6a['push'](_0x33fb6a['shift']());}}}(a46_0x1723,0x4a18a));import{getDatasetDetail}from'../../core/api-client.js';function a46_0x1723(){const _0x41dc97=['split','path','tableName','2095331wGGzHf','929900RBwTfu','relations','str','push','dbtableConfig','method','operations','9jcUSuk','detail','read','options','logicField','doVersion','indexes','title','required','314409ofpMEV','6tDNcaK','isArray','validateRules','13668AbFGya','filter','allFields','modifierNameField','displayName','dataType','dbName','description','host','name','object','creatorNameField','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','updateTimeField','pkField','tableComment','columnCodeListWithDeleted','afterScriptId','dbType','length','datasetKey','dbId','string','alias','8kLUcMj','responseBody','toTableName','labelField','modelCode','toField','doType','type','relatedPageInfoList','map','formatRules','allFieldNames','5030530RKoIQL','dataset','deleted','toDatasetCode','187339tikLCN','source','requestBody','toDatasetName','fields','properties','2xIFqsy','code','creatorIdField','extend','responseFields','parse','modelId','createTimeField','1335985scfExO','2332FYRnwU','fromField','beforeScriptId','dblinkInfoDTO'];a46_0x1723=function(){return _0x41dc97;};return a46_0x1723();}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a46_0x1260(_0x29edb0,_0x2a5733){_0x29edb0=_0x29edb0-0xb0;const _0x17232d=a46_0x1723();let _0x1260b0=_0x17232d[_0x29edb0];return _0x1260b0;}function normalizeField(_0x24c70f){const _0x43e843=a46_0x1260;if(_0x24c70f[_0x43e843(0xd4)])return null;const _0x310611=Boolean(_0x24c70f[_0x43e843(0xb1)]!==undefined||_0x24c70f['doType']!==undefined);let _0x5dc4a9={};if(!_0x310611&&typeof _0x24c70f[_0x43e843(0xdf)]===_0x43e843(0xc4))try{_0x5dc4a9=JSON[_0x43e843(0xe1)](_0x24c70f[_0x43e843(0xdf)]);}catch{}const _0x31e6fc=_0x310611?_0x24c70f[_0x43e843(0xb6)]:_0x24c70f[_0x43e843(0xdd)],_0x5b1e57=_0x310611?_0x24c70f[_0x43e843(0xb1)]:_0x24c70f['name'],_0x529c6e=_0x310611?_0x24c70f[_0x43e843(0xcc)]:_0x24c70f['type']||_0x24c70f[_0x43e843(0xb2)],_0x12b25e=_0x310611?_0x24c70f[_0x43e843(0xbc)]===!![]:_0x5dc4a9[_0x43e843(0xbc)]===!![],_0x234303=_0x310611?_0x24c70f[_0x43e843(0xfc)]===!![]:_0x5dc4a9['required']===!![],_0x336868=_0x310611?_0x24c70f[_0x43e843(0xf7)]??null:_0x5dc4a9[_0x43e843(0xf7)]??null,_0x536e8c={'name':_0x31e6fc,'displayName':_0x5b1e57||_0x31e6fc,'type':_0x529c6e,'dbType':_0x24c70f[_0x43e843(0xc0)],'pk':_0x12b25e,'required':_0x234303,'description':_0x24c70f[_0x43e843(0xb4)]||undefined};return Array[_0x43e843(0xff)](_0x336868)&&_0x336868['length']>0x0&&(_0x536e8c['options']=_0x336868),_0x536e8c;}function parseJsonMaybe(_0x3d2403){const _0x38acc6=a46_0x1260;if(typeof _0x3d2403!=='string')return _0x3d2403;try{return JSON[_0x38acc6(0xe1)](_0x3d2403);}catch{return _0x3d2403;}}function normalizeOperationEntry(_0x18d853,_0x5ab15b){const _0x1c43bc=a46_0x1260;if(!_0x5ab15b||typeof _0x5ab15b!=='object')return null;if(!_0x5ab15b[_0x1c43bc(0xf2)]||!_0x5ab15b[_0x1c43bc(0xea)])return null;const _0x34fdfa={'name':_0x18d853,'method':_0x5ab15b[_0x1c43bc(0xf2)],'path':_0x5ab15b[_0x1c43bc(0xea)]};if(_0x5ab15b[_0x1c43bc(0xb5)])_0x34fdfa[_0x1c43bc(0xb5)]=_0x5ab15b[_0x1c43bc(0xb5)];if(_0x5ab15b[_0x1c43bc(0xd8)]!=null){const _0xbaf71d=parseJsonMaybe(_0x5ab15b[_0x1c43bc(0xd8)]);_0x34fdfa[_0x1c43bc(0xd8)]=_0xbaf71d;}if(_0x5ab15b[_0x1c43bc(0xc7)]!=null){const _0x1056db=parseJsonMaybe(_0x5ab15b[_0x1c43bc(0xc7)]);_0x34fdfa[_0x1c43bc(0xc7)]=_0x1056db;}if(_0x5ab15b[_0x1c43bc(0xe7)]!=null)_0x34fdfa[_0x1c43bc(0xe7)]=_0x5ab15b[_0x1c43bc(0xe7)];if(_0x5ab15b[_0x1c43bc(0xbf)]!=null)_0x34fdfa['afterScriptId']=_0x5ab15b[_0x1c43bc(0xbf)];if(Array[_0x1c43bc(0xff)](_0x5ab15b['requestFields']))_0x34fdfa['requestFields']=_0x5ab15b['requestFields'];if(Array[_0x1c43bc(0xff)](_0x5ab15b[_0x1c43bc(0xe0)]))_0x34fdfa[_0x1c43bc(0xe0)]=_0x5ab15b['responseFields'];return _0x34fdfa;}function summarizeDbtable(_0x222e34){const _0x2b917a=a46_0x1260,_0x448b86={},_0x4b52f3=[_0x2b917a(0xc3),_0x2b917a(0xb3),'tableName',_0x2b917a(0xc2),_0x2b917a(0xbc),_0x2b917a(0x103),_0x2b917a(0xf8),_0x2b917a(0xe3),_0x2b917a(0xbb),_0x2b917a(0xde),_0x2b917a(0xb8),'modifierIdField',_0x2b917a(0xb0),_0x2b917a(0xc9),_0x2b917a(0xe8)];for(const _0x512072 of _0x4b52f3){if(_0x222e34[_0x512072]!==undefined)_0x448b86[_0x512072]=_0x222e34[_0x512072];}return typeof _0x448b86[_0x2b917a(0x103)]==='string'&&_0x448b86[_0x2b917a(0x103)][_0x2b917a(0xc1)]>0x0&&(_0x448b86[_0x2b917a(0xd1)]=_0x448b86['allFields'][_0x2b917a(0xe9)](',')[_0x2b917a(0xcf)](_0x23667e=>_0x23667e['trim']())[_0x2b917a(0x102)](Boolean)),_0x448b86;}function normalizeRelatedPages(_0x5709ad){const _0x25af33=a46_0x1260;if(!Array[_0x25af33(0xff)](_0x5709ad))return[];return _0x5709ad[_0x25af33(0x102)](_0x2c544e=>_0x2c544e&&typeof _0x2c544e===_0x25af33(0xb7))['map'](_0x34c7e3=>({'id':_0x34c7e3['id'],'type':_0x34c7e3[_0x25af33(0xcd)],'code':_0x34c7e3[_0x25af33(0xdd)],'title':_0x34c7e3[_0x25af33(0xfb)],'deleted':_0x34c7e3[_0x25af33(0xd4)]===!![]}));}export const datasetDetail={'service':a46_0x5f428e(0xd3),'command':a46_0x5f428e(0xf5),'description':a46_0x5f428e(0xb9),'risk':a46_0x5f428e(0xf6),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a46_0x5f428e(0xc5),'type':a46_0x5f428e(0xc4),'description':a46_0x5f428e(0xba)}],async 'execute'(_0x2a0f6f){const _0x39cd86=a46_0x5f428e,_0x2dd708=await getDatasetDetail(_0x2a0f6f[_0x39cd86(0xef)](_0x39cd86(0xdd))),_0x4a0e49=Array['isArray'](_0x2dd708[_0x39cd86(0xda)])?_0x2dd708['fields']:Array['isArray'](_0x2dd708[_0x39cd86(0xdb)])?_0x2dd708[_0x39cd86(0xdb)]:[],_0x42f9f9=_0x4a0e49[_0x39cd86(0xcf)](_0x3bff32=>normalizeField(_0x3bff32))['filter'](_0x34ee6d=>_0x34ee6d!==null),_0x1b7f1e=_0x2dd708[_0x39cd86(0xf3)]??{},_0x5c6517=[];for(const [_0x4f7821,_0x43b041]of Object['entries'](_0x1b7f1e)){const _0x3f1465=normalizeOperationEntry(_0x4f7821,_0x43b041);if(_0x3f1465)_0x5c6517[_0x39cd86(0xf0)](_0x3f1465);}const _0x11de9e=_0x2dd708[_0x39cd86(0xf1)]??{},_0x185c29=_0x2dd708[_0x39cd86(0xd3)]??{},_0x408142=_0x11de9e['dbId']!=null?{'id':_0x11de9e[_0x39cd86(0xc3)],'name':_0x11de9e[_0x39cd86(0xb3)]??null}:undefined;let _0x7e8618;return typeof _0x2dd708[_0x39cd86(0xdf)]===_0x39cd86(0xc4)&&(_0x7e8618=parseJsonMaybe(_0x2dd708[_0x39cd86(0xdf)])),{'ok':!![],'data':{'id':_0x2dd708[_0x39cd86(0xe2)]??_0x2dd708['id'],'name':_0x2dd708[_0x39cd86(0xb6)],'code':_0x2dd708[_0x39cd86(0xca)]||_0x2dd708[_0x39cd86(0xdd)],'doVersion':_0x2dd708[_0x39cd86(0xf9)],'description':_0x2dd708[_0x39cd86(0xb4)]||_0x185c29[_0x39cd86(0xbd)]||undefined,'source':_0x2dd708[_0x39cd86(0xd7)]||_0x185c29['sourceType'],'table':_0x11de9e[_0x39cd86(0xeb)]||_0x185c29[_0x39cd86(0xeb)],'datasetKey':_0x11de9e['datasetKey'],'pk':_0x11de9e[_0x39cd86(0xbc)],'db':_0x408142,'dbtable':summarizeDbtable(_0x11de9e),'fields':_0x42f9f9,'operations':_0x5c6517,'indexes':Array[_0x39cd86(0xff)](_0x185c29['indexes'])?_0x185c29[_0x39cd86(0xfa)]:[],'relations':Array[_0x39cd86(0xff)](_0x2dd708[_0x39cd86(0xee)])?_0x2dd708['relations'][_0x39cd86(0xcf)](_0x19a4b6=>({'fromField':_0x19a4b6[_0x39cd86(0xe6)],'toDataset':_0x19a4b6[_0x39cd86(0xd9)],'toCode':_0x19a4b6[_0x39cd86(0xd5)],'toTable':_0x19a4b6[_0x39cd86(0xc8)],'toField':_0x19a4b6[_0x39cd86(0xcb)],'labelField':_0x19a4b6['toFieldLabel']||undefined})):[],'relatedPages':normalizeRelatedPages(_0x2dd708[_0x39cd86(0xce)]),...Array['isArray'](_0x2dd708[_0x39cd86(0xbe)])?{'columnCodeListWithDeleted':_0x2dd708[_0x39cd86(0xbe)]}:{},'formatRules':Array[_0x39cd86(0xff)](_0x2dd708[_0x39cd86(0xd0)])?_0x2dd708[_0x39cd86(0xd0)]:[],'validateRules':Array[_0x39cd86(0xff)](_0x2dd708[_0x39cd86(0x100)])?_0x2dd708[_0x39cd86(0x100)]:[],..._0x7e8618!==undefined?{'extend':_0x7e8618}:{},'stats':{'fieldCount':_0x42f9f9[_0x39cd86(0xc1)],'operationCount':_0x5c6517['length']}}};}};
@@ -1 +1 @@
1
- function a47_0x2127(){const _0x35fc66=['10688640GIkqoA','1131323EicGfJ','13115yZxCvC','2084ORsBhf','17027541MxwHfT','3375536GAIPMi','5236854UWsctK','2mAzXyy','10IkvVZk','1657197HbGZyA'];a47_0x2127=function(){return _0x35fc66;};return a47_0x2127();}(function(_0x1b8540,_0x2a5c07){const _0x31ae15=a47_0x37eb,_0x39a09f=_0x1b8540();while(!![]){try{const _0x2aff44=-parseInt(_0x31ae15(0x1b9))/0x1+-parseInt(_0x31ae15(0x1bf))/0x2*(parseInt(_0x31ae15(0x1b7))/0x3)+parseInt(_0x31ae15(0x1bb))/0x4*(-parseInt(_0x31ae15(0x1ba))/0x5)+parseInt(_0x31ae15(0x1b8))/0x6+parseInt(_0x31ae15(0x1be))/0x7+-parseInt(_0x31ae15(0x1bd))/0x8+-parseInt(_0x31ae15(0x1bc))/0x9*(-parseInt(_0x31ae15(0x1c0))/0xa);if(_0x2aff44===_0x2a5c07)break;else _0x39a09f['push'](_0x39a09f['shift']());}catch(_0x4e36dc){_0x39a09f['push'](_0x39a09f['shift']());}}}(a47_0x2127,0xe7c10));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';function a47_0x37eb(_0x558f6b,_0x11c719){_0x558f6b=_0x558f6b-0x1b7;const _0x2127fd=a47_0x2127();let _0x37eb53=_0x2127fd[_0x558f6b];return _0x37eb53;}export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
1
+ function a47_0x59ca(_0x2c46b5,_0x53c3c1){_0x2c46b5=_0x2c46b5-0x7d;const _0x511bc1=a47_0x511b();let _0x59ca27=_0x511bc1[_0x2c46b5];return _0x59ca27;}function a47_0x511b(){const _0x4fca76=['2KByrDh','760007TszzLA','299876fzYRpU','23943411DtrUIb','4122816pxLOtp','5258736mTzzsa','55VTNjZc','6871256ufWPAy','3193816tDKtuy'];a47_0x511b=function(){return _0x4fca76;};return a47_0x511b();}(function(_0x3ddd2f,_0x23a41a){const _0x50e400=a47_0x59ca,_0x3e5088=_0x3ddd2f();while(!![]){try{const _0x880f1a=-parseInt(_0x50e400(0x81))/0x1*(-parseInt(_0x50e400(0x80))/0x2)+parseInt(_0x50e400(0x84))/0x3+parseInt(_0x50e400(0x82))/0x4*(-parseInt(_0x50e400(0x7d))/0x5)+parseInt(_0x50e400(0x85))/0x6+parseInt(_0x50e400(0x7e))/0x7+parseInt(_0x50e400(0x7f))/0x8+-parseInt(_0x50e400(0x83))/0x9;if(_0x880f1a===_0x23a41a)break;else _0x3e5088['push'](_0x3e5088['shift']());}catch(_0x325630){_0x3e5088['push'](_0x3e5088['shift']());}}}(a47_0x511b,0xdd524));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
@@ -1 +1 @@
1
- const a48_0x4167f4=a48_0x1893;(function(_0x204e69,_0x56c78d){const _0x5445f3=a48_0x1893,_0x2c6517=_0x204e69();while(!![]){try{const _0x21d594=-parseInt(_0x5445f3(0x102))/0x1*(parseInt(_0x5445f3(0xe9))/0x2)+-parseInt(_0x5445f3(0xff))/0x3+parseInt(_0x5445f3(0x109))/0x4+parseInt(_0x5445f3(0x10b))/0x5+-parseInt(_0x5445f3(0xee))/0x6*(parseInt(_0x5445f3(0xed))/0x7)+-parseInt(_0x5445f3(0xf6))/0x8+parseInt(_0x5445f3(0xe8))/0x9;if(_0x21d594===_0x56c78d)break;else _0x2c6517['push'](_0x2c6517['shift']());}catch(_0x2df1bb){_0x2c6517['push'](_0x2c6517['shift']());}}}(a48_0x37cc,0x3710d));function a48_0x37cc(){const _0x3d456f=['datasets','stats','length','joinType','filter','toField','verbose','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','1045902XLaKWZ','tableComment','relations','1cjaeWG','toDataset','str','meta','isForeignKey','relationCount','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','1280648OCUDOf','all','2081250WEQyJG','\x20database(s),\x20','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','fields','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20','tableName','appCode','string','\x20database(s)','datasetCode','isPrimaryKey','datasetCount','name','reduce','4684617ibRTna','819442HkLutP','datasetName','toDatasetName','\x20dataset(s),\x20','14sNXJaq','415092ufLQeC','boolean','dbName','fromField','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','map','dbId','bool','1077256roHZbH'];a48_0x37cc=function(){return _0x3d456f;};return a48_0x37cc();}import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';function a48_0x1893(_0x2c4d72,_0x44f61c){_0x2c4d72=_0x2c4d72-0xdf;const _0x37cc17=a48_0x37cc();let _0x1893af=_0x37cc17[_0x2c4d72];return _0x1893af;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetLinks={'service':'dataset','command':'links','description':a48_0x4167f4(0x108)+a48_0x4167f4(0xfe)+a48_0x4167f4(0xf2),'risk':'read','flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a48_0x4167f4(0xe1),'description':a48_0x4167f4(0x110)+a48_0x4167f4(0x10d)},{'name':a48_0x4167f4(0xfd),'type':a48_0x4167f4(0xef),'description':a48_0x4167f4(0x10f)}],async 'execute'(_0x1eb34c){const _0x39cad9=a48_0x4167f4,_0x2408ea=_0x1eb34c[_0x39cad9(0xf5)](_0x39cad9(0xfd)),{resolved:_0xd73881,error:_0x4fca12}=await resolveDb(_0x1eb34c[_0x39cad9(0xe0)],_0x1eb34c[_0x39cad9(0x104)]('db')||undefined);if(_0x4fca12)return{'ok':![],'message':_0x4fca12};const _0x61abe9=_0xd73881['map'](_0x860b0b=>_0x860b0b['dbId']),_0x435b8a=await Promise[_0x39cad9(0x10a)](_0x61abe9[_0x39cad9(0xf3)](_0x46810f=>getErConfig(_0x1eb34c['appCode'],_0x46810f)));if(_0x2408ea)return{'ok':!![],'data':_0x435b8a[_0x39cad9(0xf9)]===0x1?_0x435b8a[0x0]:_0x435b8a,'message':'Fetched\x20link\x20graph\x20for\x20'+_0x61abe9[_0x39cad9(0xf9)]+_0x39cad9(0xe2)};const _0x5ed83b=_0x435b8a['map'](_0x1e6f72=>{const _0x451056=_0x39cad9,_0x42933a=(_0x1e6f72[_0x451056(0xf7)]??[])['map'](_0x5b8f36=>{const _0x25b9c8=_0x451056,_0x899721=_0x5b8f36[_0x25b9c8(0x10e)]?.[_0x25b9c8(0xfb)](_0x5ef058=>_0x5ef058[_0x25b9c8(0xe4)])[_0x25b9c8(0xf3)](_0x16c2de=>_0x16c2de[_0x25b9c8(0xe6)])??[],_0x4ae66e=_0x5b8f36[_0x25b9c8(0x10e)]?.[_0x25b9c8(0xfb)](_0x273ffd=>_0x273ffd[_0x25b9c8(0x106)])[_0x25b9c8(0xf3)](_0x5a046a=>_0x5a046a['name'])??[];return{'id':_0x5b8f36['datasetId'],'name':_0x5b8f36[_0x25b9c8(0xea)],'code':_0x5b8f36[_0x25b9c8(0xe3)],'table':_0x5b8f36[_0x25b9c8(0xdf)],'comment':_0x5b8f36[_0x25b9c8(0x100)]||undefined,'fields':(_0x5b8f36[_0x25b9c8(0x10e)]??[])['map'](_0x44ff41=>({'name':_0x44ff41['name'],'displayName':_0x44ff41['displayName'],'type':_0x44ff41['dbType'],'pk':_0x44ff41[_0x25b9c8(0xe4)],'fk':_0x44ff41[_0x25b9c8(0x106)]})),'relations':(_0x5b8f36[_0x25b9c8(0x101)]??[])['filter'](_0x44ece5=>_0x44ece5['fromField']&&_0x44ece5[_0x25b9c8(0x103)])[_0x25b9c8(0xf3)](_0x19bb57=>({'from':_0x19bb57[_0x25b9c8(0xf1)],'toDataset':_0x19bb57[_0x25b9c8(0xeb)],'toCode':_0x19bb57['toDataset'],'toField':_0x19bb57[_0x25b9c8(0xfc)],'joinType':_0x19bb57[_0x25b9c8(0xfa)]||'LEFT'})),'stats':{'fieldCount':_0x5b8f36[_0x25b9c8(0x10e)]?.[_0x25b9c8(0xf9)]??0x0,'pkCount':_0x899721['length'],'fkCount':_0x4ae66e[_0x25b9c8(0xf9)],'relationCount':_0x5b8f36['relations']?.[_0x25b9c8(0xf9)]??0x0}};}),_0x368e02=_0x42933a[_0x451056(0xfb)](_0x24f228=>_0x24f228['stats'][_0x451056(0x107)]>0x0)[_0x451056(0xf3)](_0xe20c87=>_0xe20c87['name']);return{'db':_0x1e6f72[_0x451056(0x105)]?.[_0x451056(0xf0)],'dbId':_0x1e6f72[_0x451056(0x105)]?.[_0x451056(0xf4)],'appCode':_0x1e6f72[_0x451056(0x105)]?.[_0x451056(0xe0)],'datasetCount':_0x42933a[_0x451056(0xf9)],'connectedDatasets':_0x368e02,'datasets':_0x42933a};}),_0x497126=_0x5ed83b[_0x39cad9(0xe7)]((_0x2b139f,_0x22e93c)=>_0x2b139f+_0x22e93c[_0x39cad9(0xe5)],0x0),_0x5513f3=_0x5ed83b[_0x39cad9(0xe7)]((_0x2d627c,_0x557cea)=>_0x2d627c+_0x557cea[_0x39cad9(0xf7)][_0x39cad9(0xe7)]((_0x75ad15,_0x2b9709)=>_0x75ad15+_0x2b9709[_0x39cad9(0xf8)][_0x39cad9(0x107)],0x0),0x0);return{'ok':!![],'data':_0x5ed83b[_0x39cad9(0xf9)]===0x1?_0x5ed83b[0x0]:{'databases':_0x5ed83b},'message':'Link\x20graph:\x20'+_0x5ed83b[_0x39cad9(0xf9)]+_0x39cad9(0x10c)+_0x497126+_0x39cad9(0xec)+_0x5513f3+'\x20relation(s)'};}};
1
+ function a48_0x5c29(_0x253f59,_0x302cd3){_0x253f59=_0x253f59-0xd5;const _0x14e88e=a48_0x14e8();let _0x5c29b3=_0x14e88e[_0x253f59];return _0x5c29b3;}const a48_0x482714=a48_0x5c29;(function(_0xac47b8,_0x506f4f){const _0x2950d4=a48_0x5c29,_0x2666e1=_0xac47b8();while(!![]){try{const _0x38271b=parseInt(_0x2950d4(0xdf))/0x1+parseInt(_0x2950d4(0x107))/0x2*(-parseInt(_0x2950d4(0xda))/0x3)+parseInt(_0x2950d4(0xf1))/0x4*(parseInt(_0x2950d4(0xfd))/0x5)+parseInt(_0x2950d4(0xd6))/0x6+parseInt(_0x2950d4(0xf4))/0x7*(-parseInt(_0x2950d4(0x102))/0x8)+-parseInt(_0x2950d4(0xfc))/0x9*(-parseInt(_0x2950d4(0xf8))/0xa)+parseInt(_0x2950d4(0xfa))/0xb*(-parseInt(_0x2950d4(0xe5))/0xc);if(_0x38271b===_0x506f4f)break;else _0x2666e1['push'](_0x2666e1['shift']());}catch(_0x513685){_0x2666e1['push'](_0x2666e1['shift']());}}}(a48_0x14e8,0x431db));import{getErConfig}from'../../core/api-client.js';import{resolveDb}from'../../core/db-resolver.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetLinks={'service':'dataset','command':a48_0x482714(0xea),'description':a48_0x482714(0xe3)+a48_0x482714(0xd5)+a48_0x482714(0x103),'risk':a48_0x482714(0xeb),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'db','type':a48_0x482714(0xe2),'description':'Filter\x20by\x20database\x20—\x20accepts\x20a\x20numeric\x20dblink\x20ID\x20or\x20a\x20database\x20name\x20(e.g.\x20ecommerce_db).\x20'+a48_0x482714(0xff)},{'name':'verbose','type':a48_0x482714(0xec),'description':a48_0x482714(0x106)}],async 'execute'(_0x20288e){const _0x2d20f2=a48_0x482714,_0x1b0cd1=_0x20288e['bool'](_0x2d20f2(0x10a)),{resolved:_0x59bf94,error:_0x4596d7}=await resolveDb(_0x20288e[_0x2d20f2(0xf3)],_0x20288e[_0x2d20f2(0xe8)]('db')||undefined);if(_0x4596d7)return{'ok':![],'message':_0x4596d7};const _0x4e8c3a=_0x59bf94[_0x2d20f2(0xe0)](_0x4e296d=>_0x4e296d[_0x2d20f2(0xed)]),_0x48308a=await Promise[_0x2d20f2(0x100)](_0x4e8c3a[_0x2d20f2(0xe0)](_0x264219=>getErConfig(_0x20288e[_0x2d20f2(0xf3)],_0x264219)));if(_0x1b0cd1)return{'ok':!![],'data':_0x48308a[_0x2d20f2(0x105)]===0x1?_0x48308a[0x0]:_0x48308a,'message':_0x2d20f2(0x101)+_0x4e8c3a['length']+_0x2d20f2(0xd9)};const _0x4816b8=_0x48308a[_0x2d20f2(0xe0)](_0x5cf951=>{const _0x1cdac6=_0x2d20f2,_0x5117d7=(_0x5cf951[_0x1cdac6(0xdc)]??[])[_0x1cdac6(0xe0)](_0x41756a=>{const _0x3696b3=_0x1cdac6,_0x1c9a12=_0x41756a['fields']?.[_0x3696b3(0xf6)](_0x570639=>_0x570639[_0x3696b3(0xe7)])[_0x3696b3(0xe0)](_0x3ec5ce=>_0x3ec5ce[_0x3696b3(0xf0)])??[],_0x587ac0=_0x41756a[_0x3696b3(0xe4)]?.[_0x3696b3(0xf6)](_0x5724ba=>_0x5724ba[_0x3696b3(0xf2)])[_0x3696b3(0xe0)](_0x1a198d=>_0x1a198d[_0x3696b3(0xf0)])??[];return{'id':_0x41756a[_0x3696b3(0xf7)],'name':_0x41756a[_0x3696b3(0xe6)],'code':_0x41756a[_0x3696b3(0xe9)],'table':_0x41756a[_0x3696b3(0xe1)],'comment':_0x41756a[_0x3696b3(0xdb)]||undefined,'fields':(_0x41756a[_0x3696b3(0xe4)]??[])['map'](_0x480090=>({'name':_0x480090[_0x3696b3(0xf0)],'displayName':_0x480090['displayName'],'type':_0x480090[_0x3696b3(0xfb)],'pk':_0x480090[_0x3696b3(0xe7)],'fk':_0x480090[_0x3696b3(0xf2)]})),'relations':(_0x41756a[_0x3696b3(0xf9)]??[])[_0x3696b3(0xf6)](_0x2582a1=>_0x2582a1[_0x3696b3(0xd8)]&&_0x2582a1[_0x3696b3(0xdd)])[_0x3696b3(0xe0)](_0xcea995=>({'from':_0xcea995[_0x3696b3(0xd8)],'toDataset':_0xcea995['toDatasetName'],'toCode':_0xcea995[_0x3696b3(0xdd)],'toField':_0xcea995['toField'],'joinType':_0xcea995[_0x3696b3(0xee)]||_0x3696b3(0x104)})),'stats':{'fieldCount':_0x41756a['fields']?.[_0x3696b3(0x105)]??0x0,'pkCount':_0x1c9a12[_0x3696b3(0x105)],'fkCount':_0x587ac0[_0x3696b3(0x105)],'relationCount':_0x41756a[_0x3696b3(0xf9)]?.[_0x3696b3(0x105)]??0x0}};}),_0x47b80d=_0x5117d7['filter'](_0x31d68b=>_0x31d68b[_0x1cdac6(0xfe)][_0x1cdac6(0x108)]>0x0)[_0x1cdac6(0xe0)](_0x116bc1=>_0x116bc1[_0x1cdac6(0xf0)]);return{'db':_0x5cf951['meta']?.[_0x1cdac6(0xef)],'dbId':_0x5cf951[_0x1cdac6(0xf5)]?.[_0x1cdac6(0xed)],'appCode':_0x5cf951[_0x1cdac6(0xf5)]?.[_0x1cdac6(0xf3)],'datasetCount':_0x5117d7['length'],'connectedDatasets':_0x47b80d,'datasets':_0x5117d7};}),_0x59613f=_0x4816b8[_0x2d20f2(0xd7)]((_0x12e1ba,_0x29437d)=>_0x12e1ba+_0x29437d[_0x2d20f2(0x109)],0x0),_0x1c9ed7=_0x4816b8[_0x2d20f2(0xd7)]((_0x92ec32,_0x2b396c)=>_0x92ec32+_0x2b396c[_0x2d20f2(0xdc)][_0x2d20f2(0xd7)]((_0xfd7b85,_0x494365)=>_0xfd7b85+_0x494365[_0x2d20f2(0xfe)][_0x2d20f2(0x108)],0x0),0x0);return{'ok':!![],'data':_0x4816b8[_0x2d20f2(0x105)]===0x1?_0x4816b8[0x0]:{'databases':_0x4816b8},'message':'Link\x20graph:\x20'+_0x4816b8[_0x2d20f2(0x105)]+'\x20database(s),\x20'+_0x59613f+'\x20dataset(s),\x20'+_0x1c9ed7+_0x2d20f2(0xde)};}};function a48_0x14e8(){const _0x52c8cd=['datasetCount','verbose','Returns\x20all\x20datasets\x20with\x20their\x20fields\x20(PK/FK\x20flags)\x20and\x20cross-dataset\x20JOIN\x20relationships.\x20','1717890wyNdXH','reduce','fromField','\x20database(s)','2598DLDbKN','tableComment','datasets','toDataset','\x20relation(s)','348340JarOhS','map','tableName','string','Get\x20the\x20link\x20graph\x20(entity-relationship)\x20for\x20the\x20app\x27s\x20datasets.\x20','fields','3900UKjVml','datasetName','isPrimaryKey','str','datasetCode','links','read','boolean','dbId','joinType','dbName','name','12AFcOYl','isForeignKey','appCode','479507GqNuyS','meta','filter','datasetId','620YVvLaI','relations','1529gKQsRQ','dbType','39519LjuikI','438755MleYCr','stats','Defaults\x20to\x20auto-detect\x20all\x20linked\x20databases.','all','Fetched\x20link\x20graph\x20for\x20','48JtsRgR','Ideal\x20for\x20AI\x20to\x20understand\x20the\x20full\x20data\x20model\x20in\x20a\x20single\x20call\x20before\x20writing\x20queries\x20or\x20BFF\x20scripts.','LEFT','length','Return\x20full\x20raw\x20ER\x20response\x20from\x20API','1014ObrpUm','relationCount'];a48_0x14e8=function(){return _0x52c8cd;};return a48_0x14e8();}
@@ -1 +1 @@
1
- const a49_0x610636=a49_0x36ae;(function(_0x10356a,_0x43ab5d){const _0xf77c42=a49_0x36ae,_0x2744ae=_0x10356a();while(!![]){try{const _0x84d423=-parseInt(_0xf77c42(0x1bd))/0x1*(parseInt(_0xf77c42(0x1c0))/0x2)+-parseInt(_0xf77c42(0x1ad))/0x3*(-parseInt(_0xf77c42(0x1bc))/0x4)+parseInt(_0xf77c42(0x1b1))/0x5+parseInt(_0xf77c42(0x1a6))/0x6+parseInt(_0xf77c42(0x1b2))/0x7*(parseInt(_0xf77c42(0x1b7))/0x8)+parseInt(_0xf77c42(0x1be))/0x9+-parseInt(_0xf77c42(0x1af))/0xa;if(_0x84d423===_0x43ab5d)break;else _0x2744ae['push'](_0x2744ae['shift']());}catch(_0x33d821){_0x2744ae['push'](_0x2744ae['shift']());}}}(a49_0x4854,0x4cbfa));import{listDatasets}from'../../core/api-client.js';function a49_0x4854(){const _0x4933f0=['string','3muCmGs','Found\x20','10036930RvGRhC','dbtableConfig','1774020tSrLYC','2250213PIsRmk','list','name','appCode','description','8kbNawu','\x20dataset(s)','map','length','source','1365552tCoUvD','1JvJYGa','4594068wOvzCX','allFields','1138568pafbrO','dbName','str','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','2155416fDYlKC','datasetKey','dataset','code','tableName','List\x20all\x20datasets\x20with\x20metadata'];a49_0x4854=function(){return _0x4933f0;};return a49_0x4854();}import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a49_0x36ae(_0x255fe3,_0x4ef519){_0x255fe3=_0x255fe3-0x1a4;const _0x4854d1=a49_0x4854();let _0x36ae1a=_0x4854d1[_0x255fe3];return _0x36ae1a;}export const datasetList={'service':a49_0x610636(0x1a8),'command':a49_0x610636(0x1b3),'description':a49_0x610636(0x1ab),'risk':'read','flags':[{'name':a49_0x610636(0x1b4),'type':a49_0x610636(0x1ac),'description':a49_0x610636(0x1a5)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x3bcbe9){const _0x321d52=a49_0x610636,_0x38a883=_0x3bcbe9[_0x321d52(0x1a4)](_0x321d52(0x1b4)),_0x17c231=_0x3bcbe9[_0x321d52(0x1a4)](_0x321d52(0x1a9)),_0x1306f3=await listDatasets(_0x3bcbe9[_0x321d52(0x1b5)],{..._0x38a883&&{'name':_0x38a883},..._0x17c231&&{'code':_0x17c231}}),_0x3fd1a4=_0x1306f3[_0x321d52(0x1b9)](_0x1a8d39=>{const _0xe6fdbf=_0x321d52,_0x20471c=_0x1a8d39[_0xe6fdbf(0x1b0)]??{};return{'id':_0x1a8d39['id'],'name':_0x1a8d39['name'],'code':_0x1a8d39[_0xe6fdbf(0x1a9)],'description':_0x1a8d39[_0xe6fdbf(0x1b6)],'source':_0x1a8d39[_0xe6fdbf(0x1bb)],'db':_0x20471c[_0xe6fdbf(0x1c1)],'table':_0x20471c[_0xe6fdbf(0x1aa)],'datasetKey':_0x20471c[_0xe6fdbf(0x1a7)],'pk':_0x20471c['pkField'],'fields':_0x20471c[_0xe6fdbf(0x1bf)]?_0x20471c[_0xe6fdbf(0x1bf)]['split'](',')[_0xe6fdbf(0x1b9)](_0x27f053=>_0x27f053['trim']()):[]};});return{'ok':!![],'data':{'total':_0x3fd1a4[_0x321d52(0x1ba)],'datasets':_0x3fd1a4},'message':_0x321d52(0x1ae)+_0x3fd1a4[_0x321d52(0x1ba)]+_0x321d52(0x1b8)};}};
1
+ const a49_0x497201=a49_0x57a3;(function(_0x372e9d,_0x186921){const _0x28e4a4=a49_0x57a3,_0x25dfff=_0x372e9d();while(!![]){try{const _0x4c249f=-parseInt(_0x28e4a4(0x168))/0x1*(-parseInt(_0x28e4a4(0x160))/0x2)+-parseInt(_0x28e4a4(0x16a))/0x3*(parseInt(_0x28e4a4(0x174))/0x4)+-parseInt(_0x28e4a4(0x164))/0x5+-parseInt(_0x28e4a4(0x175))/0x6+parseInt(_0x28e4a4(0x15d))/0x7+-parseInt(_0x28e4a4(0x171))/0x8*(parseInt(_0x28e4a4(0x173))/0x9)+-parseInt(_0x28e4a4(0x15b))/0xa*(-parseInt(_0x28e4a4(0x167))/0xb);if(_0x4c249f===_0x186921)break;else _0x25dfff['push'](_0x25dfff['shift']());}catch(_0x6100f4){_0x25dfff['push'](_0x25dfff['shift']());}}}(a49_0x6bab,0x7feae));function a49_0x6bab(){const _0x1794e9=['1235037hpQOuU','appCode','Filter\x20datasets\x20by\x20name\x20(server-side\x20fuzzy\x20match)','name','length','source','str','84536FVqmsy','map','396pOjVrK','4BruRks','101034oCDSNh','pkField','\x20dataset(s)','trim','6050390DilyKo','dbName','6182659WUIwHi','allFields','split','12VYZvKN','dataset','datasetKey','read','2939430uYNxIM','dbtableConfig','List\x20all\x20datasets\x20with\x20metadata','11fwEqXU','86171mFBbjI','string'];a49_0x6bab=function(){return _0x1794e9;};return a49_0x6bab();}function a49_0x57a3(_0x4dd4c1,_0x22618d){_0x4dd4c1=_0x4dd4c1-0x15b;const _0x6babf6=a49_0x6bab();let _0x57a399=_0x6babf6[_0x4dd4c1];return _0x57a399;}import{listDatasets}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetList={'service':a49_0x497201(0x161),'command':'list','description':a49_0x497201(0x166),'risk':a49_0x497201(0x163),'flags':[{'name':a49_0x497201(0x16d),'type':a49_0x497201(0x169),'description':a49_0x497201(0x16c)},CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL],async 'execute'(_0x40a34b){const _0x3dfb00=a49_0x497201,_0xe790fc=_0x40a34b[_0x3dfb00(0x170)]('name'),_0x230c2d=_0x40a34b[_0x3dfb00(0x170)]('code'),_0x1f06f5=await listDatasets(_0x40a34b[_0x3dfb00(0x16b)],{..._0xe790fc&&{'name':_0xe790fc},..._0x230c2d&&{'code':_0x230c2d}}),_0x27c85a=_0x1f06f5[_0x3dfb00(0x172)](_0x299a6e=>{const _0x3b299f=_0x3dfb00,_0xf98f3e=_0x299a6e[_0x3b299f(0x165)]??{};return{'id':_0x299a6e['id'],'name':_0x299a6e[_0x3b299f(0x16d)],'code':_0x299a6e['code'],'description':_0x299a6e['description'],'source':_0x299a6e[_0x3b299f(0x16f)],'db':_0xf98f3e[_0x3b299f(0x15c)],'table':_0xf98f3e['tableName'],'datasetKey':_0xf98f3e[_0x3b299f(0x162)],'pk':_0xf98f3e[_0x3b299f(0x176)],'fields':_0xf98f3e[_0x3b299f(0x15e)]?_0xf98f3e[_0x3b299f(0x15e)][_0x3b299f(0x15f)](',')[_0x3b299f(0x172)](_0x4d9700=>_0x4d9700[_0x3b299f(0x178)]()):[]};});return{'ok':!![],'data':{'total':_0x27c85a[_0x3dfb00(0x16e)],'datasets':_0x27c85a},'message':'Found\x20'+_0x27c85a[_0x3dfb00(0x16e)]+_0x3dfb00(0x177)};}};
@@ -1 +1 @@
1
- const a50_0x5b7a66=a50_0x1022;(function(_0x1118f0,_0x566230){const _0x4e1503=a50_0x1022,_0x2e779f=_0x1118f0();while(!![]){try{const _0x300c1b=-parseInt(_0x4e1503(0x1a8))/0x1*(parseInt(_0x4e1503(0x1a4))/0x2)+parseInt(_0x4e1503(0x1a6))/0x3*(parseInt(_0x4e1503(0x1a2))/0x4)+parseInt(_0x4e1503(0x1a9))/0x5*(-parseInt(_0x4e1503(0x19a))/0x6)+-parseInt(_0x4e1503(0x19d))/0x7*(-parseInt(_0x4e1503(0x197))/0x8)+parseInt(_0x4e1503(0x193))/0x9*(-parseInt(_0x4e1503(0x19f))/0xa)+parseInt(_0x4e1503(0x19e))/0xb*(parseInt(_0x4e1503(0x195))/0xc)+parseInt(_0x4e1503(0x194))/0xd;if(_0x300c1b===_0x566230)break;else _0x2e779f['push'](_0x2e779f['shift']());}catch(_0x432258){_0x2e779f['push'](_0x2e779f['shift']());}}}(a50_0x2a39,0xba06d));function a50_0x1022(_0x14d29a,_0x24567e){_0x14d29a=_0x14d29a-0x192;const _0x2a390a=a50_0x2a39();let _0x102244=_0x2a390a[_0x14d29a];return _0x102244;}import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':'dataset','command':a50_0x5b7a66(0x192),'description':'Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','risk':a50_0x5b7a66(0x1a7),'flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':'string','description':a50_0x5b7a66(0x19b)},{'name':'operation','type':a50_0x5b7a66(0x1a1),'description':a50_0x5b7a66(0x19c)},{'name':'verbose','type':'boolean','description':a50_0x5b7a66(0x1a3)}],async 'execute'(_0x54558f){const _0x4b3634=a50_0x5b7a66,_0x47cc1b=_0x54558f[_0x4b3634(0x199)]('code'),_0x4e5665=_0x54558f[_0x4b3634(0x199)](_0x4b3634(0x1a5)),_0x5bdb9f=_0x54558f[_0x4b3634(0x198)]('verbose');if(_0x4e5665){const {dataset:_0x6af585,operation:_0x4f45b2}=await getOperationDetail(_0x54558f['appCode'],_0x47cc1b,_0x4e5665);return{'ok':!![],'data':{'dataset':_0x6af585,'operation':_0x4f45b2}};}const {dataset:_0x10e5fa,operations:_0x28b940}=await getDatasetOperations(_0x47cc1b);return{'ok':!![],'data':{'dataset':_0x10e5fa,'total':_0x28b940['length'],'operations':_0x5bdb9f?_0x28b940:_0x28b940['map'](_0x12d332=>({'name':_0x12d332[_0x4b3634(0x196)],'displayName':_0x12d332[_0x4b3634(0x1a0)],'type':_0x12d332['type'],'method':_0x12d332['method'],'enabled':_0x12d332['enabled']}))}};}};function a50_0x2a39(){const _0x587b25=['16GAdpwd','bool','str','3064962EkfaCQ','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','1044946PExYar','693TcRQWR','6139890HkjesJ','displayName','string','20oenndJ','Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields','2695424gyilYk','operation','565239sBUglt','read','1qVtEOp','10hbnsqE','operations','18MxBtCQ','34679723MjZLjS','85908HDMmuF','name'];a50_0x2a39=function(){return _0x587b25;};return a50_0x2a39();}
1
+ function a50_0x33ed(){const _0xd9470d=['2700ukLUyu','enabled','code','verbose','6741055tYWOya','6Rwcbne','displayName','method','map','boolean','10532417cXwrII','str','type','operation','4cMPApD','read','5948739iKKoqS','string','alias','Operation\x20name\x20to\x20get\x20full\x20detail\x20(e.g.\x20filter,\x20getOne,\x20create)','3611270WXGiVC','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','length','appCode','13744afxWSi','20569010LPsKOG','568438FMvJBD'];a50_0x33ed=function(){return _0xd9470d;};return a50_0x33ed();}const a50_0x174760=a50_0x4ab2;function a50_0x4ab2(_0x5a683f,_0x8a96d8){_0x5a683f=_0x5a683f-0x10a;const _0x33ed92=a50_0x33ed();let _0x4ab21b=_0x33ed92[_0x5a683f];return _0x4ab21b;}(function(_0x1d2a2b,_0x1cb337){const _0x4185f6=a50_0x4ab2,_0x52d440=_0x1d2a2b();while(!![]){try{const _0x2e28b4=-parseInt(_0x4185f6(0x115))/0x1+-parseInt(_0x4185f6(0x10f))/0x2+-parseInt(_0x4185f6(0x10b))/0x3*(-parseInt(_0x4185f6(0x124))/0x4)+parseInt(_0x4185f6(0x11a))/0x5+-parseInt(_0x4185f6(0x11b))/0x6*(parseInt(_0x4185f6(0x120))/0x7)+-parseInt(_0x4185f6(0x113))/0x8*(parseInt(_0x4185f6(0x116))/0x9)+parseInt(_0x4185f6(0x114))/0xa;if(_0x2e28b4===_0x1cb337)break;else _0x52d440['push'](_0x52d440['shift']());}catch(_0x226835){_0x52d440['push'](_0x52d440['shift']());}}}(a50_0x33ed,0xf2a81));import{getDatasetOperations,getOperationDetail}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const datasetOperations={'service':'dataset','command':'operations','description':'Get\x20operations\x20for\x20a\x20dataset,\x20optionally\x20with\x20full\x20detail\x20for\x20one\x20operation','risk':a50_0x174760(0x10a),'flags':[CODE_FLAG_OPTIONAL,APPCODE_FLAG_OPTIONAL,{'name':a50_0x174760(0x10d),'type':a50_0x174760(0x10c),'description':a50_0x174760(0x110)},{'name':a50_0x174760(0x123),'type':a50_0x174760(0x10c),'description':a50_0x174760(0x10e)},{'name':a50_0x174760(0x119),'type':a50_0x174760(0x11f),'description':'Return\x20full\x20operation\x20objects\x20including\x20requestFields\x20and\x20responseFields'}],async 'execute'(_0x280512){const _0x111596=a50_0x174760,_0x20dc24=_0x280512[_0x111596(0x121)](_0x111596(0x118)),_0x3ca8d2=_0x280512[_0x111596(0x121)](_0x111596(0x123)),_0x1dee45=_0x280512['bool'](_0x111596(0x119));if(_0x3ca8d2){const {dataset:_0x477dba,operation:_0x54f1d5}=await getOperationDetail(_0x280512[_0x111596(0x112)],_0x20dc24,_0x3ca8d2);return{'ok':!![],'data':{'dataset':_0x477dba,'operation':_0x54f1d5}};}const {dataset:_0x419924,operations:_0x68246a}=await getDatasetOperations(_0x20dc24);return{'ok':!![],'data':{'dataset':_0x419924,'total':_0x68246a[_0x111596(0x111)],'operations':_0x1dee45?_0x68246a:_0x68246a[_0x111596(0x11e)](_0x56d5bf=>({'name':_0x56d5bf['name'],'displayName':_0x56d5bf[_0x111596(0x11c)],'type':_0x56d5bf[_0x111596(0x122)],'method':_0x56d5bf[_0x111596(0x11d)],'enabled':_0x56d5bf[_0x111596(0x117)]}))}};}};
@@ -1 +1 @@
1
- function a51_0x4497(){const _0x349817=['No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','validation','plan','3452815ObFgeM','28lreEHX','Cancel\x20requested\x20for\x20plan\x20','analyze-cancel','str','num','string','4480428VHKTMP','1253484vosHNV','1440ELleJx','3235152tWJewX','27LrBOsf','416998RsOcVF','236934rHuIas','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','11862288tAvHAp','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','latestAnalysisTraceId'];a51_0x4497=function(){return _0x349817;};return a51_0x4497();}function a51_0x2e4a(_0xfadb89,_0x1dd224){_0xfadb89=_0xfadb89-0xee;const _0x4497c6=a51_0x4497();let _0x2e4a0d=_0x4497c6[_0xfadb89];return _0x2e4a0d;}const a51_0x8c4050=a51_0x2e4a;(function(_0x244b60,_0x5c4715){const _0x172a56=a51_0x2e4a,_0x3957f6=_0x244b60();while(!![]){try{const _0x3ce978=parseInt(_0x172a56(0xf2))/0x1+parseInt(_0x172a56(0xf6))/0x2*(-parseInt(_0x172a56(0xf5))/0x3)+-parseInt(_0x172a56(0xf1))/0x4+-parseInt(_0x172a56(0xff))/0x5+-parseInt(_0x172a56(0xf9))/0x6+-parseInt(_0x172a56(0x100))/0x7*(-parseInt(_0x172a56(0xf4))/0x8)+-parseInt(_0x172a56(0xf7))/0x9*(-parseInt(_0x172a56(0xf3))/0xa);if(_0x3ce978===_0x5c4715)break;else _0x3957f6['push'](_0x3957f6['shift']());}catch(_0x179e52){_0x3957f6['push'](_0x3957f6['shift']());}}}(a51_0x4497,0xf39a3));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':a51_0x8c4050(0x102),'description':a51_0x8c4050(0xfa),'risk':'write','requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a51_0x8c4050(0xfe),'type':a51_0x8c4050(0xf0),'description':a51_0x8c4050(0xf8)}],async 'execute'(_0x1c2c1a){const _0x2c00fe=a51_0x8c4050,_0x9341e5=_0x1c2c1a[_0x2c00fe(0xef)]('id');let _0x25171f=_0x1c2c1a[_0x2c00fe(0xee)](_0x2c00fe(0xfe))||undefined;if(!_0x25171f){const _0x1788a4=await getDbLinkInfo(_0x9341e5);_0x25171f=_0x1788a4[_0x2c00fe(0xfb)]??undefined;if(!_0x25171f)throw CliErrors[_0x2c00fe(0xfd)](_0x2c00fe(0xfc),'Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.');}return await cancelDbAnalysis(_0x25171f),{'ok':!![],'data':{'dbLinkId':_0x9341e5,'planId':_0x25171f},'message':_0x2c00fe(0x101)+_0x25171f};}};
1
+ const a51_0x3ee953=a51_0x37e0;(function(_0x5040a4,_0x1dfdf0){const _0x42e9bc=a51_0x37e0,_0x5b18ec=_0x5040a4();while(!![]){try{const _0x4e4eec=-parseInt(_0x42e9bc(0x17e))/0x1*(-parseInt(_0x42e9bc(0x180))/0x2)+-parseInt(_0x42e9bc(0x179))/0x3+parseInt(_0x42e9bc(0x182))/0x4*(parseInt(_0x42e9bc(0x17b))/0x5)+-parseInt(_0x42e9bc(0x183))/0x6*(-parseInt(_0x42e9bc(0x171))/0x7)+parseInt(_0x42e9bc(0x170))/0x8+-parseInt(_0x42e9bc(0x177))/0x9*(parseInt(_0x42e9bc(0x186))/0xa)+parseInt(_0x42e9bc(0x17d))/0xb*(-parseInt(_0x42e9bc(0x17f))/0xc);if(_0x4e4eec===_0x1dfdf0)break;else _0x5b18ec['push'](_0x5b18ec['shift']());}catch(_0x4a4f29){_0x5b18ec['push'](_0x5b18ec['shift']());}}}(a51_0x3a91,0x60868));import{cancelDbAnalysis,getDbLinkInfo}from'../../core/api-client.js';function a51_0x37e0(_0xce0bb,_0x4a0189){_0xce0bb=_0xce0bb-0x170;const _0x3a9126=a51_0x3a91();let _0x37e0f9=_0x3a9126[_0xce0bb];return _0x37e0f9;}import{CliErrors}from'../../errors.js';import{DBLINK_ID_FLAG}from'../../commands/common/flags.js';export const dbAnalyzeCancel={'service':'db','command':a51_0x3ee953(0x172),'description':a51_0x3ee953(0x184),'risk':a51_0x3ee953(0x175),'requiresAppCode':![],'flags':[DBLINK_ID_FLAG,{'name':a51_0x3ee953(0x174),'type':'string','description':a51_0x3ee953(0x173)}],async 'execute'(_0x4b9096){const _0x52a208=a51_0x3ee953,_0x4154f6=_0x4b9096[_0x52a208(0x176)]('id');let _0x244a5a=_0x4b9096['str'](_0x52a208(0x174))||undefined;if(!_0x244a5a){const _0x34cd93=await getDbLinkInfo(_0x4154f6);_0x244a5a=_0x34cd93[_0x52a208(0x181)]??undefined;if(!_0x244a5a)throw CliErrors[_0x52a208(0x185)](_0x52a208(0x17a),_0x52a208(0x17c));}return await cancelDbAnalysis(_0x244a5a),{'ok':!![],'data':{'dbLinkId':_0x4154f6,'planId':_0x244a5a},'message':_0x52a208(0x178)+_0x244a5a};}};function a51_0x3a91(){const _0x2f5eb2=['analyze-cancel','Analysis\x20plan\x20/\x20trace\x20id\x20(optional\x20—\x20defaults\x20to\x20latest\x20trace\x20from\x20db\x20list/detail)','plan','write','num','108AoUNdR','Cancel\x20requested\x20for\x20plan\x20','393507GlozFV','No\x20latestAnalysisTraceId\x20on\x20this\x20link.\x20Pass\x20--plan\x20<traceId>\x20from\x20db\x20list/detail.','4275VEUFqO','Analysis\x20may\x20already\x20be\x20finished\x20or\x20never\x20started.','187wQdhLg','1ctPBJt','278412glKaad','463094SCvbZQ','latestAnalysisTraceId','1604cVPLJC','4279116DFZEVG','Cancel\x20a\x20running\x20schema\x20analysis.\x20Omit\x20--plan\x20to\x20use\x20latestAnalysisTraceId\x20from\x20the\x20link','validation','367240epzhRi','592432WvVnVY','7IuSCtq'];a51_0x3a91=function(){return _0x2f5eb2;};return a51_0x3a91();}