@lovrabet/rabetbase-cli 2.1.6 → 2.1.7-beta.10

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 (197) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -0
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/index.js +1 -1
  54. package/lib/commands/dataset/link-create.js +1 -0
  55. package/lib/commands/dataset/link-delete.js +1 -0
  56. package/lib/commands/dataset/link-shared.js +1 -0
  57. package/lib/commands/dataset/link-update.js +1 -0
  58. package/lib/commands/dataset/links.js +1 -1
  59. package/lib/commands/dataset/list.js +1 -1
  60. package/lib/commands/dataset/operations.js +1 -1
  61. package/lib/commands/db/analyze-cancel.js +1 -1
  62. package/lib/commands/db/analyze-start.js +1 -1
  63. package/lib/commands/db/analyze-status.js +1 -1
  64. package/lib/commands/db/create.js +1 -1
  65. package/lib/commands/db/delete.js +1 -1
  66. package/lib/commands/db/detail.js +1 -1
  67. package/lib/commands/db/diff.js +1 -1
  68. package/lib/commands/db/index.js +1 -1
  69. package/lib/commands/db/list.js +1 -1
  70. package/lib/commands/db/shared.js +1 -1
  71. package/lib/commands/db/tables.js +1 -1
  72. package/lib/commands/db/test.js +1 -1
  73. package/lib/commands/db/update.js +1 -1
  74. package/lib/commands/doctor.js +1 -1
  75. package/lib/commands/init/index.js +1 -1
  76. package/lib/commands/issue/index.js +1 -0
  77. package/lib/commands/issue/report.js +1 -0
  78. package/lib/commands/logs/index.js +1 -1
  79. package/lib/commands/menu/index.js +1 -1
  80. package/lib/commands/menu/shared/compare-table.js +1 -1
  81. package/lib/commands/menu/shared/index.js +1 -1
  82. package/lib/commands/menu/shared/inquirer.js +1 -1
  83. package/lib/commands/menu/shared/local-pages.js +1 -1
  84. package/lib/commands/menu/shared/logic.js +1 -1
  85. package/lib/commands/menu/shared/service.js +1 -1
  86. package/lib/commands/menu/shared/sync-core.js +1 -1
  87. package/lib/commands/menu/shared/update-core.js +1 -1
  88. package/lib/commands/menu/shared/valid-url.js +1 -1
  89. package/lib/commands/menu/sync.js +1 -1
  90. package/lib/commands/menu/update.js +1 -1
  91. package/lib/commands/page/generate-start.js +1 -1
  92. package/lib/commands/page/generate-status.js +1 -1
  93. package/lib/commands/page/index.js +1 -1
  94. package/lib/commands/page/pull.js +1 -1
  95. package/lib/commands/page/push.js +1 -1
  96. package/lib/commands/page/shared.js +1 -1
  97. package/lib/commands/page/standard-page-status.js +1 -1
  98. package/lib/commands/page/sync.js +1 -1
  99. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  100. package/lib/commands/project/create/format-elapsed.js +1 -1
  101. package/lib/commands/project/create/main.js +1 -1
  102. package/lib/commands/project/create/non-interactive.js +1 -1
  103. package/lib/commands/project/create/project-template-path.js +1 -1
  104. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  105. package/lib/commands/project/create/use-format-code.js +1 -1
  106. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  107. package/lib/commands/project/index.js +1 -1
  108. package/lib/commands/project/init.js +1 -1
  109. package/lib/commands/project/upgrade.js +1 -1
  110. package/lib/commands/registry.js +1 -1
  111. package/lib/commands/run/index.js +1 -1
  112. package/lib/commands/schema.js +1 -1
  113. package/lib/commands/skill/index.js +1 -1
  114. package/lib/commands/sql/create.js +1 -1
  115. package/lib/commands/sql/delete.js +1 -1
  116. package/lib/commands/sql/detail.js +1 -1
  117. package/lib/commands/sql/exec.js +1 -1
  118. package/lib/commands/sql/index.js +1 -1
  119. package/lib/commands/sql/list.js +1 -1
  120. package/lib/commands/sql/pull.js +1 -1
  121. package/lib/commands/sql/push.js +1 -1
  122. package/lib/commands/sql/save.js +1 -1
  123. package/lib/commands/sql/shared.js +1 -1
  124. package/lib/commands/sql/status.js +1 -1
  125. package/lib/commands/sql/validate.js +1 -1
  126. package/lib/config/schema.js +1 -1
  127. package/lib/constant/cdn.js +1 -1
  128. package/lib/constant/cli.js +1 -1
  129. package/lib/constant/defaults.js +1 -1
  130. package/lib/constant/domain.js +1 -1
  131. package/lib/constant/env.js +1 -1
  132. package/lib/constant/output.js +1 -1
  133. package/lib/constant/paths.js +1 -1
  134. package/lib/constant/risk.js +1 -1
  135. package/lib/context.js +1 -1
  136. package/lib/core/alias-resolver.js +1 -1
  137. package/lib/core/api-client.js +1 -1
  138. package/lib/core/bff/config.js +1 -1
  139. package/lib/core/bff/file-system.js +1 -1
  140. package/lib/core/bff/hash.js +1 -1
  141. package/lib/core/bff/lock.js +1 -1
  142. package/lib/core/bff/utils.js +1 -1
  143. package/lib/core/db-resolver.js +1 -1
  144. package/lib/core/page/file-system.js +1 -1
  145. package/lib/core/page/hash.js +1 -1
  146. package/lib/core/page/lock.js +1 -1
  147. package/lib/core/sql-sync/config.js +1 -1
  148. package/lib/core/sql-sync/file-system.js +1 -1
  149. package/lib/core/sql-sync/hash.js +1 -1
  150. package/lib/core/sql-sync/lock.js +1 -1
  151. package/lib/core/sql-sync/utils.js +1 -1
  152. package/lib/core/sql-validator.js +1 -1
  153. package/lib/errors.js +1 -1
  154. package/lib/framework/build-all-flags.js +1 -1
  155. package/lib/framework/flags.js +1 -1
  156. package/lib/framework/help.js +1 -1
  157. package/lib/framework/index.js +1 -1
  158. package/lib/framework/output.js +1 -1
  159. package/lib/framework/response.js +1 -1
  160. package/lib/framework/runner-alias.js +1 -1
  161. package/lib/framework/runner.js +1 -1
  162. package/lib/framework/schema-export.js +1 -1
  163. package/lib/framework/types.js +1 -1
  164. package/lib/generated/build-info.js +1 -1
  165. package/lib/help.js +1 -1
  166. package/lib/skills/main.js +1 -1
  167. package/lib/skills/npx-skills-add.js +1 -1
  168. package/lib/telemetry/cli-command-trace.js +1 -1
  169. package/lib/telemetry/cli-help-trace.js +1 -1
  170. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  171. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  172. package/lib/telemetry/send-cli-trace-log.js +1 -1
  173. package/lib/telemetry/send-platform-issue-collect-log.js +1 -0
  174. package/lib/utils/ai_config.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cdn-config.js +1 -1
  177. package/lib/utils/check-sdk-version.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/config.js +1 -1
  181. package/lib/utils/copy-directory.js +1 -1
  182. package/lib/utils/entity-with-id.js +1 -1
  183. package/lib/utils/file-utils.js +1 -1
  184. package/lib/utils/guides-cdn.js +1 -1
  185. package/lib/utils/http-client.js +1 -1
  186. package/lib/utils/is-non-interactive.js +1 -1
  187. package/lib/utils/logger.js +1 -1
  188. package/lib/utils/params.js +1 -1
  189. package/lib/utils/platform.js +1 -1
  190. package/lib/utils/rules-cdn.js +1 -1
  191. package/lib/utils/sleep.js +1 -1
  192. package/lib/utils/template-replacer.js +1 -1
  193. package/lib/utils/version.js +1 -1
  194. package/lib/utils/with-active-cookie.js +1 -1
  195. package/lib/utils/write-cli-side-channel.js +1 -1
  196. package/package.json +2 -1
  197. package/templates/projects/sub-app-react-demo/README.md +1 -1
@@ -1 +1 @@
1
- const a33_0x53afaa=a33_0x3777;(function(_0x1fcb86,_0x3c5c65){const _0x31cdae=a33_0x3777,_0x1077a1=_0x1fcb86();while(!![]){try{const _0x48756b=-parseInt(_0x31cdae(0x19a))/0x1*(-parseInt(_0x31cdae(0x1a1))/0x2)+parseInt(_0x31cdae(0x19c))/0x3+-parseInt(_0x31cdae(0x191))/0x4+parseInt(_0x31cdae(0x19b))/0x5+-parseInt(_0x31cdae(0x18c))/0x6+parseInt(_0x31cdae(0x18b))/0x7*(-parseInt(_0x31cdae(0x18d))/0x8)+-parseInt(_0x31cdae(0x188))/0x9*(-parseInt(_0x31cdae(0x192))/0xa);if(_0x48756b===_0x3c5c65)break;else _0x1077a1['push'](_0x1077a1['shift']());}catch(_0x16e511){_0x1077a1['push'](_0x1077a1['shift']());}}}(a33_0x3cd9,0x6ace3));function a33_0x3777(_0x544898,_0x452ce3){_0x544898=_0x544898-0x17e;const _0x3cd945=a33_0x3cd9();let _0x37772f=_0x3cd945[_0x544898];return _0x37772f;}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';export const bffStatus={'service':a33_0x53afaa(0x186),'command':a33_0x53afaa(0x193),'description':a33_0x53afaa(0x196),'risk':a33_0x53afaa(0x18e),'flags':[{'name':a33_0x53afaa(0x197),'type':a33_0x53afaa(0x19f),'description':a33_0x53afaa(0x18a)}],async 'execute'(_0x3a9d9d){const _0x4baa95=a33_0x53afaa,_0xe97b4a=loadBffProjectConfig(_0x3a9d9d[_0x4baa95(0x17f)]),_0x5a0dce=await readBffLockFile(_0xe97b4a[_0x4baa95(0x19e)]),{appLock:_0x16384a}=ensureLockScope(_0x5a0dce??createEmptyBffLock(),_0x3a9d9d[_0x4baa95(0x17f)],_0xe97b4a[_0x4baa95(0x189)],'status'),_0x18930e=await scanLocalBffFunctions(_0xe97b4a),_0xf06726=[],_0x150342=[],_0x3d4c73=[];for(const _0x8d533e of _0x18930e){const _0x9027a4=await computeFileHash(_0x8d533e[_0x4baa95(0x194)]),_0x4775a6=_0x16384a[_0x4baa95(0x190)][_0x8d533e[_0x4baa95(0x198)]];if(!_0x4775a6)_0xf06726[_0x4baa95(0x195)](_0x8d533e[_0x4baa95(0x198)]);else _0x4775a6[_0x4baa95(0x185)]!==_0x9027a4?_0x150342[_0x4baa95(0x195)](_0x8d533e['lockKey']):_0x3d4c73[_0x4baa95(0x195)](_0x8d533e['lockKey']);}const _0x402593=[];if(_0x3a9d9d[_0x4baa95(0x181)](_0x4baa95(0x197))){const _0x227fd6=loadAliasMap(_0x3a9d9d[_0x4baa95(0x184)],undefined,resolveApiFilePath(_0x3a9d9d[_0x4baa95(0x184)],_0x3a9d9d['appCode'])),_0xc75ca7=new Map(_0x227fd6[_0x4baa95(0x183)](_0x431fc1=>[_0x431fc1['datasetCode'],_0x431fc1[_0x4baa95(0x180)]])),[_0x12a410,_0x26fbb5]=await Promise[_0x4baa95(0x17e)]([listBffScripts(_0x3a9d9d[_0x4baa95(0x17f)]),getBffScriptStatistics(_0x3a9d9d[_0x4baa95(0x17f)])]),_0x5a8f05=createHookLocationMap(_0x26fbb5),_0x4128c7=new Set(_0x18930e['map'](_0x354b39=>_0x354b39['lockKey']));for(const _0x45fa4a of _0x12a410){const _0x4ad001=resolveRemoteScriptTarget(_0xe97b4a,_0x45fa4a,_0x5a8f05,_0x16384a[_0x4baa95(0x190)],_0xc75ca7);_0x4ad001&&!_0x4128c7[_0x4baa95(0x19d)](_0x4ad001[_0x4baa95(0x198)])&&_0x402593[_0x4baa95(0x195)](_0x4ad001[_0x4baa95(0x198)]);}}const _0x10443f=_0xf06726[_0x4baa95(0x1a0)]===0x0&&_0x150342[_0x4baa95(0x1a0)]===0x0&&_0x402593[_0x4baa95(0x1a0)]===0x0;return{'ok':!![],'data':{'added':_0xf06726,'modified':_0x150342,'unchanged':_0x3d4c73,'remoteOnly':_0x402593},'message':_0x10443f?_0x4baa95(0x182):_0xf06726[_0x4baa95(0x1a0)]+'\x20added,\x20'+_0x150342[_0x4baa95(0x1a0)]+_0x4baa95(0x18f)+_0x3d4c73[_0x4baa95(0x1a0)]+_0x4baa95(0x199)+(_0x402593[_0x4baa95(0x1a0)]>0x0?',\x20'+_0x402593['length']+_0x4baa95(0x187):'')};}};function a33_0x3cd9(){const _0x44f9cb=['length','4078cBpWIq','all','appCode','alias','bool','All\x20BFF\x20scripts\x20are\x20in\x20sync.','map','apiDir','hash','bff','\x20remote-only','559692tJzfeG','scriptsRoot','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','7rEQsvL','820008nbKbwQ','682888KekxIS','read','\x20modified,\x20','functions','2054548fWBGri','110LQtsKM','status','filePath','push','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','remote','lockKey','\x20unchanged','11UZkwvC','1786575UqwPGU','327987fJmWjn','has','lockFilePath','boolean'];a33_0x3cd9=function(){return _0x44f9cb;};return a33_0x3cd9();}
1
+ function a33_0x5c66(){const _0x3329eb=['1449jyedko','2066981FclIbR','2956008qVAcXP','datasetCode','has','74lnIHxy','appCode','\x20added,\x20','6yYMhyJ','55mwGgbk','scriptsRoot','boolean','lockKey','map','747522EMytZQ','bool','status','all','apiDir','72gubncv','bff','functions','filePath','\x20remote-only','alias','read','push','lockFilePath','remote','27519bImcVR','length','2209008mXIvJs','254444grjsXE','34190vaLklE'];a33_0x5c66=function(){return _0x3329eb;};return a33_0x5c66();}const a33_0x15c305=a33_0x49a1;(function(_0x54a990,_0x18276a){const _0x223642=a33_0x49a1,_0x3a363c=_0x54a990();while(!![]){try{const _0x1df5cd=-parseInt(_0x223642(0xf2))/0x1+parseInt(_0x223642(0xe9))/0x2*(-parseInt(_0x223642(0xdf))/0x3)+parseInt(_0x223642(0xe2))/0x4*(-parseInt(_0x223642(0xed))/0x5)+-parseInt(_0x223642(0xec))/0x6*(-parseInt(_0x223642(0xe5))/0x7)+-parseInt(_0x223642(0xe1))/0x8+parseInt(_0x223642(0xe4))/0x9*(parseInt(_0x223642(0xe3))/0xa)+parseInt(_0x223642(0xe6))/0xb*(parseInt(_0x223642(0xf7))/0xc);if(_0x1df5cd===_0x18276a)break;else _0x3a363c['push'](_0x3a363c['shift']());}catch(_0x205367){_0x3a363c['push'](_0x3a363c['shift']());}}}(a33_0x5c66,0x6084c));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';function a33_0x49a1(_0x2e6f1d,_0x248459){_0x2e6f1d=_0x2e6f1d-0xd7;const _0x5c6669=a33_0x5c66();let _0x49a136=_0x5c6669[_0x2e6f1d];return _0x49a136;}import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a33_0x15c305(0xf8),'command':a33_0x15c305(0xf4),'description':'Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','risk':a33_0x15c305(0xdb),'flags':[{'name':a33_0x15c305(0xde),'type':a33_0x15c305(0xef),'description':'Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally'}],async 'execute'(_0x232345){const _0xa0004=a33_0x15c305,_0x238cb5=loadBffProjectConfig(_0x232345[_0xa0004(0xea)]),_0x3bde49=await readBffLockFile(_0x238cb5[_0xa0004(0xdd)]),{appLock:_0x205675}=ensureLockScope(_0x3bde49??createEmptyBffLock(),_0x232345[_0xa0004(0xea)],_0x238cb5[_0xa0004(0xee)],'status'),_0x283898=await scanLocalBffFunctions(_0x238cb5),_0x57539f=[],_0x53a2ba=[],_0x172f52=[];for(const _0x596243 of _0x283898){const _0x5c79ca=await computeFileHash(_0x596243[_0xa0004(0xd8)]),_0x3b72b7=_0x205675[_0xa0004(0xd7)][_0x596243[_0xa0004(0xf0)]];if(!_0x3b72b7)_0x57539f[_0xa0004(0xdc)](_0x596243['lockKey']);else _0x3b72b7['hash']!==_0x5c79ca?_0x53a2ba[_0xa0004(0xdc)](_0x596243[_0xa0004(0xf0)]):_0x172f52[_0xa0004(0xdc)](_0x596243[_0xa0004(0xf0)]);}const _0x15e1b2=[];if(_0x232345[_0xa0004(0xf3)]('remote')){const _0x382ca2=loadAliasMap(_0x232345[_0xa0004(0xf6)],undefined,resolveApiFilePath(_0x232345[_0xa0004(0xf6)],_0x232345[_0xa0004(0xea)])),_0x340373=new Map(_0x382ca2[_0xa0004(0xf1)](_0x2cd520=>[_0x2cd520[_0xa0004(0xe7)],_0x2cd520[_0xa0004(0xda)]])),[_0x547f04,_0x5f1ef9]=await Promise[_0xa0004(0xf5)]([listBffScripts(_0x232345[_0xa0004(0xea)]),getBffScriptStatistics(_0x232345[_0xa0004(0xea)])]),_0x5d21c3=createHookLocationMap(_0x5f1ef9),_0x460cc9=new Set(_0x283898[_0xa0004(0xf1)](_0x490487=>_0x490487[_0xa0004(0xf0)]));for(const _0x1db69e of _0x547f04){const _0x511031=resolveRemoteScriptTarget(_0x238cb5,_0x1db69e,_0x5d21c3,_0x205675['functions'],_0x340373);_0x511031&&!_0x460cc9[_0xa0004(0xe8)](_0x511031[_0xa0004(0xf0)])&&_0x15e1b2[_0xa0004(0xdc)](_0x511031[_0xa0004(0xf0)]);}}const _0x3c33c5=_0x57539f[_0xa0004(0xe0)]===0x0&&_0x53a2ba['length']===0x0&&_0x15e1b2[_0xa0004(0xe0)]===0x0;return{'ok':!![],'data':{'added':_0x57539f,'modified':_0x53a2ba,'unchanged':_0x172f52,'remoteOnly':_0x15e1b2},'message':_0x3c33c5?'All\x20BFF\x20scripts\x20are\x20in\x20sync.':_0x57539f['length']+_0xa0004(0xeb)+_0x53a2ba[_0xa0004(0xe0)]+'\x20modified,\x20'+_0x172f52[_0xa0004(0xe0)]+'\x20unchanged'+(_0x15e1b2[_0xa0004(0xe0)]>0x0?',\x20'+_0x15e1b2[_0xa0004(0xe0)]+_0xa0004(0xd9):'')};}};
@@ -1 +1 @@
1
- const a34_0x5a5a80=a34_0x1c1d;(function(_0x1dfbe1,_0x568c99){const _0x239e29=a34_0x1c1d,_0x1f30fa=_0x1dfbe1();while(!![]){try{const _0x51e7fa=parseInt(_0x239e29(0x16d))/0x1*(parseInt(_0x239e29(0x143))/0x2)+parseInt(_0x239e29(0x14c))/0x3*(parseInt(_0x239e29(0x16e))/0x4)+parseInt(_0x239e29(0x151))/0x5*(-parseInt(_0x239e29(0x160))/0x6)+parseInt(_0x239e29(0x147))/0x7*(parseInt(_0x239e29(0x149))/0x8)+-parseInt(_0x239e29(0x14a))/0x9*(parseInt(_0x239e29(0x16f))/0xa)+parseInt(_0x239e29(0x141))/0xb*(parseInt(_0x239e29(0x13b))/0xc)+-parseInt(_0x239e29(0x164))/0xd*(parseInt(_0x239e29(0x150))/0xe);if(_0x51e7fa===_0x568c99)break;else _0x1f30fa['push'](_0x1f30fa['shift']());}catch(_0x3ca7fd){_0x1f30fa['push'](_0x1f30fa['shift']());}}}(a34_0x431f,0x5aa8b));import a34_0x370efb from'chalk';import a34_0x5c404e from'ora';import a34_0x25cdb5 from'semver';function a34_0x1c1d(_0x387e76,_0x4b11b7){_0x387e76=_0x387e76-0x13b;const _0x431f2e=a34_0x431f();let _0x1c1d5b=_0x431f2e[_0x387e76];return _0x1c1d5b;}import{execa}from'execa';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 _0x68e6f8=a34_0x1c1d;return GIT_COMMIT!==_0x68e6f8(0x16c)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x68e6f8(0x144)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x389e5e=a34_0x1c1d,_0x2440cb=process[_0x389e5e(0x156)][_0x389e5e(0x13d)]();if(_0x2440cb[_0x389e5e(0x142)](_0x389e5e(0x16a)))return'bun';return'npm';}async function fetchLatestNpmVersion(){const _0x24dec2=a34_0x1c1d;try{const _0x5a6af3=await fetch(_0x24dec2(0x13c)+NPM_PACKAGE_NAME+_0x24dec2(0x16b),{'signal':AbortSignal[_0x24dec2(0x14b)](0x2710)});if(!_0x5a6af3['ok'])return null;const _0x461bfa=await _0x5a6af3[_0x24dec2(0x168)]();return _0x461bfa[_0x24dec2(0x15f)]??null;}catch{return null;}}async function fetchLatestVersion(){const _0x5cc468=a34_0x1c1d,_0x1435fb=await fetchLatestNpmVersion();if(_0x1435fb)return _0x1435fb;const _0x1e2811=await getCdnConfig();return _0x1e2811?.[_0x5cc468(0x145)]?.[_0x5cc468(0x140)]??null;}async function execute(_0x19e7a2){const _0x4befbc=a34_0x1c1d,_0x1af424=getCurrentVersion();console[_0x4befbc(0x158)](_0x4befbc(0x152)+_0x1af424);const _0x389b92=a34_0x5c404e(_0x4befbc(0x167))['start'](),_0x5151ec=await fetchLatestVersion();if(!_0x5151ec)return _0x389b92[_0x4befbc(0x15d)]('Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)'),console[_0x4befbc(0x158)](a34_0x370efb['gray'](_0x4befbc(0x154)+NPM_PACKAGE_NAME+_0x4befbc(0x15e))),{'ok':![],'message':'Unable\x20to\x20check\x20for\x20updates'};const _0x263295=a34_0x25cdb5[_0x4befbc(0x153)](_0x1af424),_0x137caf=a34_0x25cdb5[_0x4befbc(0x153)](_0x5151ec);if(!_0x263295||!_0x137caf)return _0x389b92[_0x4befbc(0x15d)](_0x4befbc(0x169)),{'ok':![],'message':'Version\x20comparison\x20failed'};if(!a34_0x25cdb5['lt'](_0x263295,_0x137caf))return _0x389b92['succeed'](_0x4befbc(0x14e)+_0x5151ec+')'),{'ok':!![]};_0x389b92[_0x4befbc(0x15a)](_0x4befbc(0x161)+a34_0x370efb[_0x4befbc(0x148)](_0x1af424)+_0x4befbc(0x157)+a34_0x370efb[_0x4befbc(0x146)](_0x5151ec));const _0xea1ce5=detectPackageManager(),_0x2fa36b=_0xea1ce5===_0x4befbc(0x13f)?resolveNpmBin('npm'):_0xea1ce5,_0x451087=a34_0x5c404e('Updating\x20via\x20'+_0xea1ce5+'...')[_0x4befbc(0x166)]();try{return await execa(_0x2fa36b,['install','-g',NPM_PACKAGE_NAME+'@'+_0x5151ec],{'stdio':'pipe'}),_0x451087[_0x4befbc(0x155)](_0x4befbc(0x165)+_0x5151ec),console[_0x4befbc(0x158)](a34_0x370efb[_0x4befbc(0x14d)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),{'ok':!![]};}catch(_0xa12b19){return _0x451087['fail'](_0x4befbc(0x14f)),console['error'](a34_0x370efb[_0x4befbc(0x163)]('\x20\x20'+_0xa12b19[_0x4befbc(0x15c)])),console[_0x4befbc(0x158)](a34_0x370efb[_0x4befbc(0x14d)](_0x4befbc(0x13e)+_0xea1ce5+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x5151ec)),{'ok':![],'message':_0xa12b19[_0x4befbc(0x15c)]};}}export const updateDefinition={'service':a34_0x5a5a80(0x159),'command':a34_0x5a5a80(0x15b),'description':'Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','risk':a34_0x5a5a80(0x162),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],'execute':execute};function a34_0x431f(){const _0x1da13d=['\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','succeed','execPath','\x20→\x20','log','update','info','run','message','fail','@latest','version','1033716oFAgOG','Update\x20available:\x20','write','red','13LkVoPU','Updated\x20to\x20v','start','Checking\x20for\x20updates...','json','Version\x20comparison\x20failed','bun','/latest','unknown','61547lIgUdC','1778136IWkEPn','259290zmTARU','2285484jGVEoT','https://registry.npmjs.org/','toLowerCase','\x20\x20Try\x20manually:\x20','npm','stableVersion','11xxIFkT','includes','4lQqNBn','slice','cli','green','1157261oGCJzK','yellow','32uiEAqs','171HZtWPU','timeout','3FmBKMg','gray','Already\x20up\x20to\x20date\x20(v','Update\x20failed','5363414AVhwaf','5PgTecB','Current\x20version:\x20','coerce'];a34_0x431f=function(){return _0x1da13d;};return a34_0x431f();}
1
+ const a34_0x8c3bd8=a34_0x3a34;(function(_0xf9f6f7,_0x5535e9){const _0x408d34=a34_0x3a34,_0x2237bf=_0xf9f6f7();while(!![]){try{const _0x328675=parseInt(_0x408d34(0x1d9))/0x1+parseInt(_0x408d34(0x1ca))/0x2+parseInt(_0x408d34(0x1e8))/0x3*(-parseInt(_0x408d34(0x1c2))/0x4)+-parseInt(_0x408d34(0x1df))/0x5+-parseInt(_0x408d34(0x1c7))/0x6+-parseInt(_0x408d34(0x1f3))/0x7+parseInt(_0x408d34(0x1bb))/0x8;if(_0x328675===_0x5535e9)break;else _0x2237bf['push'](_0x2237bf['shift']());}catch(_0x57cac6){_0x2237bf['push'](_0x2237bf['shift']());}}}(a34_0x157e,0xd9ecd));import a34_0x344a32 from'chalk';import a34_0x13b605 from'ora';import a34_0x8106a3 from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x2bec4a=a34_0x3a34;return GIT_COMMIT!==_0x2bec4a(0x1ba)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2bec4a(0x1d0)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x58ba0b=a34_0x3a34,_0x1fc5ce=process[_0x58ba0b(0x1ef)][_0x58ba0b(0x1f6)]();if(_0x1fc5ce['includes'](_0x58ba0b(0x1d3)))return'bun';return _0x58ba0b(0x1d5);}const updateFlags=[{'name':'beta','type':a34_0x8c3bd8(0x1d2),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a34_0x8c3bd8(0x1e7),'type':'string','description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':a34_0x8c3bd8(0x1b4),'type':a34_0x8c3bd8(0x1d2),'description':a34_0x8c3bd8(0x1d4),'default':![]},{'name':'skills','type':a34_0x8c3bd8(0x1d2),'description':'Refresh\x20official\x20skill\x20package\x20after\x20updating','default':!![],'hidden':!![]}];function getRequestedVersion(_0xee22f){const _0x5dcdf3=a34_0x8c3bd8;return _0xee22f[_0x5dcdf3(0x1cd)](_0x5dcdf3(0x1e7))[_0x5dcdf3(0x1e0)]();}function shouldSkipOfficialSkill(_0x172037){const _0x233752=a34_0x8c3bd8;return _0x172037[_0x233752(0x1db)](_0x233752(0x1b4))||_0x172037[_0x233752(0x1fb)](_0x233752(0x1d6))===![];}async function validateUpdateFlags(_0x15029e){const _0x5cf13e=a34_0x8c3bd8,_0x593841=_0x15029e[_0x5cf13e(0x1db)]('beta'),_0x13eb51=getRequestedVersion(_0x15029e);if(_0x593841&&_0x13eb51)throw CliErrors[_0x5cf13e(0x1b8)](_0x5cf13e(0x1bc),_0x5cf13e(0x1c9));if(_0x13eb51&&!a34_0x8106a3['valid'](_0x13eb51))throw CliErrors[_0x5cf13e(0x1b8)](_0x5cf13e(0x1f4)+_0x13eb51,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0x2f797c=a34_0x8c3bd8;try{const _0x52f50=await fetch('https://registry.npmjs.org/-/package/'+encodeURIComponent(NPM_PACKAGE_NAME)+'/dist-tags',{'signal':AbortSignal[_0x2f797c(0x1da)](0x2710)});if(!_0x52f50['ok'])return null;const _0x29bfa1=await _0x52f50['json']();if(!_0x29bfa1||typeof _0x29bfa1!=='object')return null;return Object[_0x2f797c(0x1fe)](Object[_0x2f797c(0x1fd)](_0x29bfa1)[_0x2f797c(0x1c5)](([,_0x5395f3])=>typeof _0x5395f3===_0x2f797c(0x1e3)&&_0x5395f3[_0x2f797c(0x1e0)]()['length']>0x0)[_0x2f797c(0x1f7)](([_0xf46824,_0x602431])=>[_0xf46824,String(_0x602431)[_0x2f797c(0x1e0)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x2f56fa){const _0x41d19c=await fetchNpmDistTags();return _0x41d19c?.[_0x2f56fa]??null;}async function fetchLatestVersion(){const _0x2b5218=a34_0x8c3bd8,_0xc56ff3=await fetchNpmDistTagVersion('latest');if(_0xc56ff3)return _0xc56ff3;const _0x280521=await getCdnConfig();return _0x280521?.[_0x2b5218(0x1b6)]?.[_0x2b5218(0x1bf)]??null;}async function resolveTargetVersion(_0x4fe4c2){const _0x1bfde0=a34_0x8c3bd8,_0x3b81c4=getRequestedVersion(_0x4fe4c2);if(_0x3b81c4)return{'version':_0x3b81c4,'source':_0x1bfde0(0x1e7)};if(_0x4fe4c2[_0x1bfde0(0x1db)]('beta')){const _0x534d52=await fetchNpmDistTagVersion(_0x1bfde0(0x1cb));if(!_0x534d52)return null;return{'version':_0x534d52,'source':_0x1bfde0(0x1cb)};}const _0x45dccc=await fetchLatestVersion();if(!_0x45dccc)return null;return{'version':_0x45dccc,'source':'latest'};}function a34_0x157e(){const _0x2d06d0=['latest','inherit','2056PJkjFI','Version\x20comparison\x20failed','update','filter','pipe','8668092RLpzjy','succeed','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','3469200afzCIz','beta','Update\x20available:\x20','str','start','Already\x20up\x20to\x20date\x20(v','slice','warn','boolean','bun','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','npm','skills','\x20→\x20','fail','507262EUSbSD','timeout','bool','Already\x20on\x20requested\x20version\x20(v','Updated\x20to\x20v','Update\x20failed','5418590HSLkCb','trim','message','write','string','cwd','log','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','version','5421ncCZWV','\x20\x20Official\x20skill\x20update\x20failed:\x20','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','source','Updating\x20via\x20','yellow','valid','execPath','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','install','4960865iWVskM','Invalid\x20version:\x20','gray','toLowerCase','map','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','skipped','nonInteractive','flag','run','entries','fromEntries','error','no-skills','Beta\x20version:\x20','cli','\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','validation','Current\x20version:\x20','unknown','22533216XECszN','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','green','@latest','stableVersion'];a34_0x157e=function(){return _0x2d06d0;};return a34_0x157e();}function shouldInstallTarget(_0x4ed0b6,_0x2362a8){const _0x35fe32=a34_0x8c3bd8;if(_0x2362a8['source']===_0x35fe32(0x1e7))return!a34_0x8106a3['eq'](_0x4ed0b6,_0x2362a8['version']);return a34_0x8106a3['lt'](_0x4ed0b6,_0x2362a8['version']);}function a34_0x3a34(_0x3ffa69,_0x15feff){_0x3ffa69=_0x3ffa69-0x1b4;const _0x157ed9=a34_0x157e();let _0x3a349f=_0x157ed9[_0x3ffa69];return _0x3a349f;}function getInstallPlanLabel(_0x4ea9eb,_0x3094ed){const _0x1174d9=a34_0x8c3bd8;switch(_0x3094ed[_0x1174d9(0x1eb)]){case'beta':return _0x1174d9(0x1b5)+a34_0x344a32[_0x1174d9(0x1ed)](_0x4ea9eb)+'\x20→\x20'+a34_0x344a32[_0x1174d9(0x1bd)](_0x3094ed['version']);case _0x1174d9(0x1e7):return'Requested\x20version:\x20'+a34_0x344a32['yellow'](_0x4ea9eb)+_0x1174d9(0x1d7)+a34_0x344a32[_0x1174d9(0x1bd)](_0x3094ed['version']);case _0x1174d9(0x1c0):default:return _0x1174d9(0x1cc)+a34_0x344a32['yellow'](_0x4ea9eb)+'\x20→\x20'+a34_0x344a32[_0x1174d9(0x1bd)](_0x3094ed[_0x1174d9(0x1e7)]);}}async function installOfficialSkill(_0x371b44){const _0x2751a6=a34_0x8c3bd8;console[_0x2751a6(0x1e5)](a34_0x344a32[_0x2751a6(0x1f5)]('Checking\x20official\x20skill\x20package...'));const _0x35f2f8=runNpxSkillsAddGlobal(process[_0x2751a6(0x1e4)](),RABETBASE_SKILL_SOURCE,{'stdio':_0x371b44?_0x2751a6(0x1c6):_0x2751a6(0x1c1)});if(_0x35f2f8[_0x2751a6(0x1f9)]){console['log'](a34_0x344a32['gray'](_0x2751a6(0x1b7)));return;}if(_0x35f2f8['ok']){console[_0x2751a6(0x1e5)](a34_0x344a32[_0x2751a6(0x1f5)](_0x2751a6(0x1e6)));return;}console[_0x2751a6(0x1d1)](a34_0x344a32[_0x2751a6(0x1ed)](_0x2751a6(0x1e9)+(_0x35f2f8[_0x2751a6(0x1ff)]||_0x2751a6(0x1ba)))),console[_0x2751a6(0x1e5)](a34_0x344a32[_0x2751a6(0x1f5)]('\x20\x20Run\x20manually:\x20'+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x5d6587){const _0x5b5bac=a34_0x8c3bd8;await validateUpdateFlags(_0x5d6587);const _0x551350=getCurrentVersion();console[_0x5b5bac(0x1e5)](_0x5b5bac(0x1b9)+_0x551350);const _0x4043d2=a34_0x13b605('Checking\x20for\x20updates...')[_0x5b5bac(0x1ce)](),_0x262fce=await resolveTargetVersion(_0x5d6587);if(!_0x262fce){const _0x143a99=_0x5d6587[_0x5b5bac(0x1db)](_0x5b5bac(0x1cb))?_0x5b5bac(0x1f1):_0x5b5bac(0x1f8);return _0x4043d2[_0x5b5bac(0x1d8)](_0x143a99),console[_0x5b5bac(0x1e5)](a34_0x344a32['gray']('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x5b5bac(0x1be))),{'ok':![],'message':_0x143a99};}const _0x2d4a1c=a34_0x8106a3['valid'](VERSION),_0x18f1e8=a34_0x8106a3[_0x5b5bac(0x1ee)](_0x262fce['version']);if(!_0x2d4a1c||!_0x18f1e8)return _0x4043d2[_0x5b5bac(0x1d8)](_0x5b5bac(0x1c3)),{'ok':![],'message':'Version\x20comparison\x20failed'};if(!shouldInstallTarget(_0x2d4a1c,_0x262fce)){const _0x1b00de=_0x262fce[_0x5b5bac(0x1eb)]===_0x5b5bac(0x1e7)?_0x5b5bac(0x1dc)+_0x262fce['version']+')':_0x5b5bac(0x1cf)+_0x262fce[_0x5b5bac(0x1e7)]+')';return _0x4043d2['succeed'](_0x1b00de),shouldSkipOfficialSkill(_0x5d6587)?console['log'](a34_0x344a32[_0x5b5bac(0x1f5)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).')):await installOfficialSkill(_0x5d6587['nonInteractive']),{'ok':!![]};}_0x4043d2['info'](getInstallPlanLabel(_0x551350,_0x262fce));const _0x3cf4f5=detectPackageManager(),_0x3cecd4=_0x3cf4f5===_0x5b5bac(0x1d5)?resolveNpmBin(_0x5b5bac(0x1d5)):_0x3cf4f5,_0x5cd473=a34_0x13b605(_0x5b5bac(0x1ec)+_0x3cf4f5+'...')['start']();try{return await execa(_0x3cecd4,[_0x5b5bac(0x1f2),'-g',NPM_PACKAGE_NAME+'@'+_0x262fce[_0x5b5bac(0x1e7)]],{'stdio':'pipe'}),_0x5cd473[_0x5b5bac(0x1c8)](_0x5b5bac(0x1dd)+_0x262fce['version']),console[_0x5b5bac(0x1e5)](a34_0x344a32[_0x5b5bac(0x1f5)](_0x5b5bac(0x1f0))),shouldSkipOfficialSkill(_0x5d6587)?console[_0x5b5bac(0x1e5)](a34_0x344a32[_0x5b5bac(0x1f5)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).')):await installOfficialSkill(_0x5d6587[_0x5b5bac(0x1fa)]),{'ok':!![]};}catch(_0x4a7f48){return _0x5cd473[_0x5b5bac(0x1d8)](_0x5b5bac(0x1de)),console[_0x5b5bac(0x1ff)](a34_0x344a32['red']('\x20\x20'+_0x4a7f48['message'])),console['log'](a34_0x344a32[_0x5b5bac(0x1f5)]('\x20\x20Try\x20manually:\x20'+_0x3cf4f5+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x262fce[_0x5b5bac(0x1e7)])),{'ok':![],'message':_0x4a7f48[_0x5b5bac(0x1e1)]};}}export const updateDefinition={'service':a34_0x8c3bd8(0x1c4),'command':a34_0x8c3bd8(0x1fc),'description':a34_0x8c3bd8(0x1ea),'risk':a34_0x8c3bd8(0x1e2),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- function a35_0x2232(_0x16d7a0,_0x2a76f6){_0x16d7a0=_0x16d7a0-0x169;const _0x21a582=a35_0x21a5();let _0x22321e=_0x21a582[_0x16d7a0];return _0x22321e;}function a35_0x21a5(){const _0x1cc31e=['2629563tnaaVG','4679050ICSxzz','1527509sZSYbX','6641984LCIieC','8KqlPji','27295541iYsoDH','879176SiDISK','5229642AjXhIJ'];a35_0x21a5=function(){return _0x1cc31e;};return a35_0x21a5();}(function(_0x40a7d9,_0x33b57a){const _0x2aa8d9=a35_0x2232,_0x5a0ede=_0x40a7d9();while(!![]){try{const _0x2ea888=-parseInt(_0x2aa8d9(0x16c))/0x1+-parseInt(_0x2aa8d9(0x170))/0x2+-parseInt(_0x2aa8d9(0x16a))/0x3+parseInt(_0x2aa8d9(0x16d))/0x4+-parseInt(_0x2aa8d9(0x16b))/0x5+-parseInt(_0x2aa8d9(0x169))/0x6+-parseInt(_0x2aa8d9(0x16f))/0x7*(-parseInt(_0x2aa8d9(0x16e))/0x8);if(_0x2ea888===_0x33b57a)break;else _0x5a0ede['push'](_0x5a0ede['shift']());}catch(_0x146ad1){_0x5a0ede['push'](_0x5a0ede['shift']());}}}(a35_0x21a5,0xdde18));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ function a35_0x290c(){const _0x281924=['1118730XMwWSc','243300LlrrQp','7fVeUHh','833772SIjOUo','106688qzGlGW','2577256PTHPvt','3732CfbRpJ','4211595emEMXn','1146mNJEhp'];a35_0x290c=function(){return _0x281924;};return a35_0x290c();}function a35_0x4322(_0x566f69,_0x229b59){_0x566f69=_0x566f69-0x15b;const _0x290cc9=a35_0x290c();let _0x432219=_0x290cc9[_0x566f69];return _0x432219;}(function(_0x1a278b,_0x3dee80){const _0x23afd1=a35_0x4322,_0x20438a=_0x1a278b();while(!![]){try{const _0x1c4fec=parseInt(_0x23afd1(0x15c))/0x1+parseInt(_0x23afd1(0x162))/0x2+-parseInt(_0x23afd1(0x160))/0x3*(parseInt(_0x23afd1(0x15e))/0x4)+-parseInt(_0x23afd1(0x161))/0x5+parseInt(_0x23afd1(0x15b))/0x6*(-parseInt(_0x23afd1(0x163))/0x7)+parseInt(_0x23afd1(0x15d))/0x8+parseInt(_0x23afd1(0x15f))/0x9;if(_0x1c4fec===_0x3dee80)break;else _0x20438a['push'](_0x20438a['shift']());}catch(_0x51479e){_0x20438a['push'](_0x20438a['shift']());}}}(a35_0x290c,0x49148));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a36_0x5b43fc=a36_0xb8fd;(function(_0x50bf92,_0x30cec3){const _0x11bd3a=a36_0xb8fd,_0x1ff111=_0x50bf92();while(!![]){try{const _0x2f5be5=parseInt(_0x11bd3a(0x18f))/0x1+-parseInt(_0x11bd3a(0x185))/0x2+-parseInt(_0x11bd3a(0x186))/0x3*(parseInt(_0x11bd3a(0x18e))/0x4)+-parseInt(_0x11bd3a(0x182))/0x5*(parseInt(_0x11bd3a(0x18c))/0x6)+-parseInt(_0x11bd3a(0x187))/0x7+-parseInt(_0x11bd3a(0x18a))/0x8+parseInt(_0x11bd3a(0x184))/0x9*(parseInt(_0x11bd3a(0x191))/0xa);if(_0x2f5be5===_0x30cec3)break;else _0x1ff111['push'](_0x1ff111['shift']());}catch(_0x5cbe28){_0x1ff111['push'](_0x1ff111['shift']());}}}(a36_0x2369,0xd24da));function a36_0x2369(){const _0x58e0e9=['string','12FzThcF','1628223eOpKfg','codegen','2400ObeCmN','tableName','operation','skip-imports','alias','code','str','1146190jqkaKA','Omit\x20import\x20statements\x20from\x20generated\x20code','124182utClqC','1122512knStkx','236217yPNUKy','6503973bEbcTY','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','read','13312120TYJetT','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','18wmklsN'];a36_0x2369=function(){return _0x58e0e9;};return a36_0x2369();}function a36_0xb8fd(_0x4a069a,_0x5f67bb){_0x4a069a=_0x4a069a-0x17c;const _0x236906=a36_0x2369();let _0xb8fd04=_0x236906[_0x4a069a];return _0xb8fd04;}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a36_0x5b43fc(0x190),'command':'sdk','description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a36_0x5b43fc(0x189),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x5b43fc(0x17f),'type':'string','description':a36_0x5b43fc(0x18b)},{'name':a36_0x5b43fc(0x17d),'type':a36_0x5b43fc(0x18d),'required':!![],'description':a36_0x5b43fc(0x188)},{'name':'skip-imports','type':'boolean','description':a36_0x5b43fc(0x183)}],async 'execute'(_0x250b66){const _0x596a18=a36_0x5b43fc,{dataset:_0x53d61b,operation:_0xfd9557}=await getOperationDetail(_0x250b66['appCode'],_0x250b66['str'](_0x596a18(0x180)),_0x250b66[_0x596a18(0x181)](_0x596a18(0x17d))),_0x2fea54=generateSdkCode(_0x53d61b,_0xfd9557,{'includeImports':!_0x250b66['bool'](_0x596a18(0x17e))});return{'ok':!![],'data':{'dataset':{'name':_0x53d61b['name'],'code':_0x53d61b[_0x596a18(0x180)],'tableName':_0x53d61b[_0x596a18(0x17c)]},'operation':_0x250b66[_0x596a18(0x181)]('operation'),'code':_0x2fea54}};}};
1
+ const a36_0x31eb3e=a36_0x470c;function a36_0x470c(_0xa9ce0f,_0xce1d8d){_0xa9ce0f=_0xa9ce0f-0x1b6;const _0x4ffa83=a36_0x4ffa();let _0x470c4a=_0x4ffa83[_0xa9ce0f];return _0x470c4a;}(function(_0x53d43d,_0x1b8036){const _0x490610=a36_0x470c,_0x5d41c2=_0x53d43d();while(!![]){try{const _0x2e81ec=parseInt(_0x490610(0x1c5))/0x1*(-parseInt(_0x490610(0x1c0))/0x2)+parseInt(_0x490610(0x1be))/0x3*(-parseInt(_0x490610(0x1c3))/0x4)+-parseInt(_0x490610(0x1ca))/0x5*(-parseInt(_0x490610(0x1bd))/0x6)+parseInt(_0x490610(0x1cb))/0x7+-parseInt(_0x490610(0x1bc))/0x8+parseInt(_0x490610(0x1c8))/0x9*(parseInt(_0x490610(0x1bf))/0xa)+parseInt(_0x490610(0x1b7))/0xb*(parseInt(_0x490610(0x1cd))/0xc);if(_0x2e81ec===_0x1b8036)break;else _0x5d41c2['push'](_0x5d41c2['shift']());}catch(_0x56367b){_0x5d41c2['push'](_0x5d41c2['shift']());}}}(a36_0x4ffa,0xd48f4));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':'codegen','command':a36_0x31eb3e(0x1b8),'description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a36_0x31eb3e(0x1b9),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x31eb3e(0x1c2),'type':a36_0x31eb3e(0x1c4),'description':a36_0x31eb3e(0x1cf)},{'name':a36_0x31eb3e(0x1cc),'type':a36_0x31eb3e(0x1c4),'required':!![],'description':a36_0x31eb3e(0x1c7)},{'name':a36_0x31eb3e(0x1bb),'type':a36_0x31eb3e(0x1c9),'description':a36_0x31eb3e(0x1c1)}],async 'execute'(_0x152ee5){const _0x68adde=a36_0x31eb3e,{dataset:_0x537129,operation:_0x356340}=await getOperationDetail(_0x152ee5[_0x68adde(0x1ce)],_0x152ee5[_0x68adde(0x1b6)](_0x68adde(0x1d0)),_0x152ee5[_0x68adde(0x1b6)](_0x68adde(0x1cc))),_0x49cc81=generateSdkCode(_0x537129,_0x356340,{'includeImports':!_0x152ee5['bool'](_0x68adde(0x1bb))});return{'ok':!![],'data':{'dataset':{'name':_0x537129[_0x68adde(0x1c6)],'code':_0x537129[_0x68adde(0x1d0)],'tableName':_0x537129[_0x68adde(0x1ba)]},'operation':_0x152ee5[_0x68adde(0x1b6)](_0x68adde(0x1cc)),'code':_0x49cc81}};}};function a36_0x4ffa(){const _0x298319=['281706WdOzWa','Omit\x20import\x20statements\x20from\x20generated\x20code','alias','8dxtptp','string','11YHYqPp','name','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','8936253jkMbkP','boolean','12785AKNenO','6655831xsFZon','operation','141012uELRsz','appCode','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','code','str','990MHKQgZ','sdk','read','tableName','skip-imports','6857744bjwFHi','3498xHwNXO','1822239JbXAjn','10CJTewu'];a36_0x4ffa=function(){return _0x298319;};return a36_0x4ffa();}
@@ -1 +1 @@
1
- const a37_0x6ece07=a37_0x47b2;(function(_0x818c00,_0x6f513b){const _0x3faa4f=a37_0x47b2,_0x5548e2=_0x818c00();while(!![]){try{const _0x3ea432=-parseInt(_0x3faa4f(0x149))/0x1+-parseInt(_0x3faa4f(0x154))/0x2*(parseInt(_0x3faa4f(0x140))/0x3)+parseInt(_0x3faa4f(0x14d))/0x4+parseInt(_0x3faa4f(0x146))/0x5+parseInt(_0x3faa4f(0x148))/0x6*(-parseInt(_0x3faa4f(0x150))/0x7)+-parseInt(_0x3faa4f(0x13f))/0x8+parseInt(_0x3faa4f(0x14b))/0x9;if(_0x3ea432===_0x6f513b)break;else _0x5548e2['push'](_0x5548e2['shift']());}catch(_0x24deac){_0x5548e2['push'](_0x5548e2['shift']());}}}(a37_0x4ade,0xc7688));function a37_0x4ade(){const _0x36dc4f=['bool','10531848rwWHfr','111wTKObf','sql','no-imports','str','read','boolean','4611245DVmfrN','target','8880MohhzA','87672wQLXcO','sdk','19452618MtHcbx','sqlName','1520284kPwoPt','codegen','sqlcode','4137sBsMta','bff','string','Omit\x20import\x20statements\x20from\x20generated\x20code','19898xyMyjQ'];a37_0x4ade=function(){return _0x36dc4f;};return a37_0x4ade();}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a37_0x47b2(_0x21c7bf,_0x3610f1){_0x21c7bf=_0x21c7bf-0x13e;const _0x4ade35=a37_0x4ade();let _0x47b2f1=_0x4ade35[_0x21c7bf];return _0x47b2f1;}export const codegenSql={'service':a37_0x6ece07(0x14e),'command':a37_0x6ece07(0x141),'description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':a37_0x6ece07(0x144),'flags':[SQLCODE_FLAG,{'name':a37_0x6ece07(0x147),'type':a37_0x6ece07(0x152),'description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':a37_0x6ece07(0x14a),'enum':['sdk',a37_0x6ece07(0x151)]},{'name':'no-imports','type':a37_0x6ece07(0x145),'description':a37_0x6ece07(0x153)}],async 'execute'(_0xc7a979){const _0xb561da=a37_0x6ece07,_0x1df48a=await getSqlQueryInfo(_0xc7a979['appCode'],_0xc7a979[_0xb561da(0x143)](_0xb561da(0x14f))),_0x128e21=_0xc7a979['str'](_0xb561da(0x147))||_0xb561da(0x14a),_0x8d3aa5=generateSqlCodeTemplate(_0x1df48a,{'target':_0x128e21,'includeImports':!_0xc7a979[_0xb561da(0x13e)](_0xb561da(0x142))});return{'ok':!![],'data':{'sqlCode':_0x1df48a['sqlCode'],'sqlName':_0x1df48a[_0xb561da(0x14c)],'target':_0x128e21,'code':_0x8d3aa5}};}};
1
+ const a37_0x393f25=a37_0x2471;(function(_0x93fd0a,_0x14561c){const _0x1944c1=a37_0x2471,_0x44ee8a=_0x93fd0a();while(!![]){try{const _0xd73e2f=-parseInt(_0x1944c1(0x1a5))/0x1*(parseInt(_0x1944c1(0x190))/0x2)+-parseInt(_0x1944c1(0x19a))/0x3*(-parseInt(_0x1944c1(0x198))/0x4)+parseInt(_0x1944c1(0x19d))/0x5*(parseInt(_0x1944c1(0x1a0))/0x6)+parseInt(_0x1944c1(0x197))/0x7*(parseInt(_0x1944c1(0x192))/0x8)+-parseInt(_0x1944c1(0x195))/0x9+parseInt(_0x1944c1(0x199))/0xa*(-parseInt(_0x1944c1(0x19e))/0xb)+parseInt(_0x1944c1(0x1a1))/0xc;if(_0xd73e2f===_0x14561c)break;else _0x44ee8a['push'](_0x44ee8a['shift']());}catch(_0x12ff2a){_0x44ee8a['push'](_0x44ee8a['shift']());}}}(a37_0x4264,0xd39ca));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x393f25(0x1a4),'command':a37_0x393f25(0x19c),'description':a37_0x393f25(0x1a3),'risk':'read','flags':[SQLCODE_FLAG,{'name':a37_0x393f25(0x1a6),'type':'string','description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':a37_0x393f25(0x191),'enum':['sdk','bff']},{'name':a37_0x393f25(0x193),'type':a37_0x393f25(0x18e),'description':a37_0x393f25(0x194)}],async 'execute'(_0x3e61d0){const _0x599b59=a37_0x393f25,_0x4cd767=await getSqlQueryInfo(_0x3e61d0[_0x599b59(0x1a7)],_0x3e61d0[_0x599b59(0x1a2)](_0x599b59(0x19f))),_0x33deb0=_0x3e61d0['str'](_0x599b59(0x1a6))||_0x599b59(0x191),_0x5a16fb=generateSqlCodeTemplate(_0x4cd767,{'target':_0x33deb0,'includeImports':!_0x3e61d0[_0x599b59(0x18f)](_0x599b59(0x193))});return{'ok':!![],'data':{'sqlCode':_0x4cd767[_0x599b59(0x19b)],'sqlName':_0x4cd767[_0x599b59(0x196)],'target':_0x33deb0,'code':_0x5a16fb}};}};function a37_0x2471(_0x2ae8c1,_0x5f52be){_0x2ae8c1=_0x2ae8c1-0x18e;const _0x42649a=a37_0x4264();let _0x24713e=_0x42649a[_0x2ae8c1];return _0x24713e;}function a37_0x4264(){const _0x16eba0=['1525152OTCRmd','str','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','codegen','61PodQHM','target','appCode','boolean','bool','3342QbzAbJ','sdk','528eGkpaj','no-imports','Omit\x20import\x20statements\x20from\x20generated\x20code','6463602XKQdvg','sqlName','54810oEkkQe','1472528SzoOcq','8121670vfSIMA','3ToEdop','sqlCode','sql','5ZPXTRO','11IgYAio','sqlcode','8922180ArlmZJ'];a37_0x4264=function(){return _0x16eba0;};return a37_0x4264();}
@@ -1 +1 @@
1
- (function(_0x108d97,_0x5a977d){const _0x296899=a38_0x4361,_0x485d73=_0x108d97();while(!![]){try{const _0x1c8397=-parseInt(_0x296899(0x14a))/0x1*(-parseInt(_0x296899(0x155))/0x2)+parseInt(_0x296899(0x156))/0x3*(parseInt(_0x296899(0x136))/0x4)+parseInt(_0x296899(0x140))/0x5*(parseInt(_0x296899(0x147))/0x6)+-parseInt(_0x296899(0x14e))/0x7+-parseInt(_0x296899(0x15b))/0x8*(parseInt(_0x296899(0x159))/0x9)+parseInt(_0x296899(0x153))/0xa+parseInt(_0x296899(0x135))/0xb*(parseInt(_0x296899(0x152))/0xc);if(_0x1c8397===_0x5a977d)break;else _0x485d73['push'](_0x485d73['shift']());}catch(_0x16ef15){_0x485d73['push'](_0x485d73['shift']());}}}(a38_0x14fb,0x2c768));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x404c7d from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a38_0x14fb(){const _0x273e22=['yellow','854824SaDXBV','✎\x20自定义输入\x20appcode','请选择要绑定的应用:','88enwNoP','692blempi','trim','map','skip','length','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','正在获取可用应用列表...','App\x20Code:','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','appName','5jfZMUO','manual','\x0a无法获取远程应用列表,请手动输入。','valid','未找到可用应用。','custom','appCode','204726UPnJMZ','gray','获取到\x20','2PLQKnW','message','\x20\x20(','无法获取远程应用列表,请手动输入。','1948128ygicnC','Invalid\x20App\x20Code','includes','cyan','19956iANOTk','1332670NvdQGN','\x0a未找到可用应用。','307178nwVxpW','1377ZUpaaf','✎\x20手动输入','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','9OFnfFK'];a38_0x14fb=function(){return _0x273e22;};return a38_0x14fb();}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 _0x507f5b=a38_0x4361,_0x2f470f=await input({'message':'请输入\x20App\x20Code:','validate':_0x58e666=>{const _0x1b7052=a38_0x4361,_0x12a9d8=validateAppcode(_0x58e666['trim']());return _0x12a9d8[_0x1b7052(0x143)]||_0x12a9d8['message']||_0x1b7052(0x14f);}});return _0x2f470f[_0x507f5b(0x137)]();}export async function promptAppSelection(_0x11a6e2){const _0x191b87=a38_0x4361,_0x177fac=[{'name':a38_0x404c7d[_0x191b87(0x15a)](_0x191b87(0x15c)),'value':-0x1},..._0x11a6e2[_0x191b87(0x138)]((_0x5849eb,_0x101e21)=>({'name':_0x5849eb[_0x191b87(0x13f)]+'\x20\x20'+a38_0x404c7d[_0x191b87(0x148)]('('+_0x5849eb['appCode']+')'),'value':_0x101e21}))],_0x329173=await checkbox({'message':_0x191b87(0x149)+a38_0x404c7d[_0x191b87(0x151)](_0x11a6e2[_0x191b87(0x13a)])+_0x191b87(0x158),'choices':_0x177fac,'loop':![]});if(_0x329173[_0x191b87(0x150)](-0x1))return _0x191b87(0x145);if(_0x329173[_0x191b87(0x13a)]===0x0)return _0x191b87(0x145);return _0x329173[_0x191b87(0x138)](_0x214b88=>_0x11a6e2[_0x214b88]);}export async function promptSingleAppSelection(_0x4d092d){const _0x23fa96=a38_0x4361,_0x2b5071=[{'name':a38_0x404c7d[_0x23fa96(0x148)](_0x23fa96(0x13b)),'value':'skip'},{'name':a38_0x404c7d[_0x23fa96(0x15a)](_0x23fa96(0x15c)),'value':_0x23fa96(0x145)},..._0x4d092d[_0x23fa96(0x138)](_0x13147a=>({'name':_0x13147a[_0x23fa96(0x13f)]+'\x20\x20'+a38_0x404c7d['gray']('('+_0x13147a[_0x23fa96(0x146)]+')'),'value':_0x13147a[_0x23fa96(0x146)]}))],_0x4f22cf=await select({'message':_0x23fa96(0x15d),'choices':_0x2b5071});if(_0x4f22cf==='skip')return _0x23fa96(0x139);if(_0x4f22cf===_0x23fa96(0x145))return'custom';return _0x4d092d['find'](_0x119d93=>_0x119d93[_0x23fa96(0x146)]===_0x4f22cf);}export async function selectSingleAppcode(_0x1c4186){const _0x2cae35=a38_0x4361;if(!_0x1c4186)return writeCliSideChannelLine(a38_0x404c7d[_0x2cae35(0x148)](_0x2cae35(0x13e))),_fallbackOrSkip();writeCliSideChannelLine(_0x2cae35(0x13c));let _0x3cedc3;try{_0x3cedc3=await withActiveCookie(_0x1c4186,()=>listRemoteApps());}catch(_0x35a7a0){writeCliSideChannelLine(a38_0x404c7d['yellow'](_0x2cae35(0x14d)));if(_0x35a7a0 instanceof Error)writeCliSideChannelLine(a38_0x404c7d['gray']('\x20\x20('+_0x35a7a0[_0x2cae35(0x14b)]+')'));return _fallbackOrSkip();}if(_0x3cedc3[_0x2cae35(0x13a)]===0x0)return writeCliSideChannelLine(a38_0x404c7d['yellow'](_0x2cae35(0x144))),_fallbackOrSkip();const _0x33bea2=await promptSingleAppSelection(_0x3cedc3);if(_0x33bea2===_0x2cae35(0x139))return'';if(_0x33bea2===_0x2cae35(0x145))return promptCustomAppcode();return _0x33bea2[_0x2cae35(0x146)];}function a38_0x4361(_0x41f30a,_0x338bcd){_0x41f30a=_0x41f30a-0x135;const _0x14fbfc=a38_0x14fb();let _0x436197=_0x14fbfc[_0x41f30a];return _0x436197;}export async function selectMultipleApps(_0x20705c){const _0x39cac7=a38_0x4361;writeCliSideChannelLine(_0x39cac7(0x13c));let _0x21aa72;try{_0x21aa72=await withActiveCookie(_0x20705c,()=>listRemoteApps());}catch(_0x3549e2){writeCliSideChannelLine(_0x39cac7(0x142));if(_0x3549e2 instanceof Error)writeCliSideChannelLine(_0x39cac7(0x14c)+_0x3549e2[_0x39cac7(0x14b)]+')');return _0x39cac7(0x145);}if(_0x21aa72[_0x39cac7(0x13a)]===0x0)return writeCliSideChannelLine(_0x39cac7(0x154)),_0x39cac7(0x145);return promptAppSelection(_0x21aa72);}async function _fallbackOrSkip(){const _0x44a0e2=a38_0x4361,_0x48ff27=await select({'message':_0x44a0e2(0x13d),'choices':[{'name':a38_0x404c7d[_0x44a0e2(0x148)]('(跳过,稍后配置)'),'value':_0x44a0e2(0x139)},{'name':a38_0x404c7d[_0x44a0e2(0x15a)](_0x44a0e2(0x157)),'value':_0x44a0e2(0x141)}]});if(_0x48ff27==='skip')return'';return promptCustomAppcode();}
1
+ (function(_0x3e32e7,_0x5ab3fd){const _0x18553e=a38_0x2bac,_0x6bd714=_0x3e32e7();while(!![]){try{const _0x3a148a=-parseInt(_0x18553e(0x1c8))/0x1+-parseInt(_0x18553e(0x1d5))/0x2+parseInt(_0x18553e(0x1ec))/0x3+parseInt(_0x18553e(0x1e3))/0x4+-parseInt(_0x18553e(0x1cb))/0x5*(-parseInt(_0x18553e(0x1d3))/0x6)+parseInt(_0x18553e(0x1d9))/0x7+parseInt(_0x18553e(0x1e8))/0x8*(-parseInt(_0x18553e(0x1cf))/0x9);if(_0x3a148a===_0x5ab3fd)break;else _0x6bd714['push'](_0x6bd714['shift']());}catch(_0x246d32){_0x6bd714['push'](_0x6bd714['shift']());}}}(a38_0xae81,0x266d7));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x203d7a from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function a38_0x2bac(_0x65d44,_0x557547){_0x65d44=_0x65d44-0x1c8;const _0xae811a=a38_0xae81();let _0x2baca8=_0xae811a[_0x65d44];return _0x2baca8;}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x1577f4=a38_0x2bac,_0x53ab28=await input({'message':_0x1577f4(0x1e7),'validate':_0x4d59b9=>{const _0xc40ca9=_0x1577f4,_0x4c3b7c=validateAppcode(_0x4d59b9[_0xc40ca9(0x1cd)]());return _0x4c3b7c[_0xc40ca9(0x1d6)]||_0x4c3b7c[_0xc40ca9(0x1dc)]||_0xc40ca9(0x1e5);}});return _0x53ab28[_0x1577f4(0x1cd)]();}export async function promptAppSelection(_0x1d01e9){const _0x18cf11=a38_0x2bac,_0x584d26=[{'name':a38_0x203d7a[_0x18cf11(0x1d2)](_0x18cf11(0x1d0)),'value':-0x1},..._0x1d01e9[_0x18cf11(0x1ce)]((_0x41964a,_0x3506b0)=>({'name':_0x41964a[_0x18cf11(0x1dd)]+'\x20\x20'+a38_0x203d7a[_0x18cf11(0x1da)]('('+_0x41964a[_0x18cf11(0x1ca)]+')'),'value':_0x3506b0}))],_0x31a37=await checkbox({'message':_0x18cf11(0x1df)+a38_0x203d7a[_0x18cf11(0x1ea)](_0x1d01e9[_0x18cf11(0x1eb)])+_0x18cf11(0x1cc),'choices':_0x584d26,'loop':![]});if(_0x31a37[_0x18cf11(0x1d7)](-0x1))return _0x18cf11(0x1c9);if(_0x31a37[_0x18cf11(0x1eb)]===0x0)return _0x18cf11(0x1c9);return _0x31a37[_0x18cf11(0x1ce)](_0x2ad528=>_0x1d01e9[_0x2ad528]);}export async function promptSingleAppSelection(_0x58481a){const _0x5942fa=a38_0x2bac,_0x210f07=[{'name':a38_0x203d7a[_0x5942fa(0x1da)](_0x5942fa(0x1ee)),'value':_0x5942fa(0x1e2)},{'name':a38_0x203d7a[_0x5942fa(0x1d2)]('✎\x20自定义输入\x20appcode'),'value':'custom'},..._0x58481a[_0x5942fa(0x1ce)](_0x188ed6=>({'name':_0x188ed6[_0x5942fa(0x1dd)]+'\x20\x20'+a38_0x203d7a[_0x5942fa(0x1da)]('('+_0x188ed6[_0x5942fa(0x1ca)]+')'),'value':_0x188ed6[_0x5942fa(0x1ca)]}))],_0x27a061=await select({'message':_0x5942fa(0x1e0),'choices':_0x210f07});if(_0x27a061===_0x5942fa(0x1e2))return _0x5942fa(0x1e2);if(_0x27a061==='custom')return _0x5942fa(0x1c9);return _0x58481a[_0x5942fa(0x1e4)](_0x16aadb=>_0x16aadb[_0x5942fa(0x1ca)]===_0x27a061);}export async function selectSingleAppcode(_0x4923de){const _0x16cec6=a38_0x2bac;if(!_0x4923de)return writeCliSideChannelLine(a38_0x203d7a[_0x16cec6(0x1da)](_0x16cec6(0x1d1))),_fallbackOrSkip();writeCliSideChannelLine('正在获取可用应用列表...');let _0x1545d6;try{_0x1545d6=await withActiveCookie(_0x4923de,()=>listRemoteApps());}catch(_0x34c277){writeCliSideChannelLine(a38_0x203d7a['yellow'](_0x16cec6(0x1e9)));if(_0x34c277 instanceof Error)writeCliSideChannelLine(a38_0x203d7a[_0x16cec6(0x1da)]('\x20\x20('+_0x34c277['message']+')'));return _fallbackOrSkip();}if(_0x1545d6[_0x16cec6(0x1eb)]===0x0)return writeCliSideChannelLine(a38_0x203d7a[_0x16cec6(0x1d2)](_0x16cec6(0x1e1))),_fallbackOrSkip();const _0xb8185=await promptSingleAppSelection(_0x1545d6);if(_0xb8185==='skip')return'';if(_0xb8185===_0x16cec6(0x1c9))return promptCustomAppcode();return _0xb8185['appCode'];}function a38_0xae81(){const _0x478f50=['20695KWkjZa','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','trim','map','3206556LPtWaL','✎\x20自定义输入\x20appcode','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','yellow','336yZjeGf','✎\x20手动输入','251700kujAUn','valid','includes','\x0a未找到可用应用。','765562lbPjAK','gray','正在获取可用应用列表...','message','appName','(跳过,稍后配置)','获取到\x20','请选择要绑定的应用:','未找到可用应用。','skip','105836fPLKiN','find','Invalid\x20App\x20Code','manual','请输入\x20App\x20Code:','8pnaMDT','无法获取远程应用列表,请手动输入。','cyan','length','878580egWPpT','\x20\x20(','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','20936ShewLm','custom','appCode'];a38_0xae81=function(){return _0x478f50;};return a38_0xae81();}export async function selectMultipleApps(_0x57d8ac){const _0x4bd2a1=a38_0x2bac;writeCliSideChannelLine(_0x4bd2a1(0x1db));let _0x4147c1;try{_0x4147c1=await withActiveCookie(_0x57d8ac,()=>listRemoteApps());}catch(_0x319008){writeCliSideChannelLine('\x0a无法获取远程应用列表,请手动输入。');if(_0x319008 instanceof Error)writeCliSideChannelLine(_0x4bd2a1(0x1ed)+_0x319008[_0x4bd2a1(0x1dc)]+')');return'custom';}if(_0x4147c1[_0x4bd2a1(0x1eb)]===0x0)return writeCliSideChannelLine(_0x4bd2a1(0x1d8)),_0x4bd2a1(0x1c9);return promptAppSelection(_0x4147c1);}async function _fallbackOrSkip(){const _0x3b59de=a38_0x2bac,_0x5838cf=await select({'message':'App\x20Code:','choices':[{'name':a38_0x203d7a[_0x3b59de(0x1da)](_0x3b59de(0x1de)),'value':'skip'},{'name':a38_0x203d7a[_0x3b59de(0x1d2)](_0x3b59de(0x1d4)),'value':_0x3b59de(0x1e6)}]});if(_0x5838cf==='skip')return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a39_0x4954b3=a39_0x4952;(function(_0x39fb97,_0x50b41b){const _0x377ee1=a39_0x4952,_0x148cf8=_0x39fb97();while(!![]){try{const _0x28fee6=parseInt(_0x377ee1(0x1b4))/0x1*(-parseInt(_0x377ee1(0x1c4))/0x2)+parseInt(_0x377ee1(0x1b8))/0x3+-parseInt(_0x377ee1(0x1c5))/0x4+-parseInt(_0x377ee1(0x1c6))/0x5+parseInt(_0x377ee1(0x1b9))/0x6*(-parseInt(_0x377ee1(0x1c2))/0x7)+-parseInt(_0x377ee1(0x1c8))/0x8*(-parseInt(_0x377ee1(0x1b7))/0x9)+parseInt(_0x377ee1(0x1bc))/0xa;if(_0x28fee6===_0x50b41b)break;else _0x148cf8['push'](_0x148cf8['shift']());}catch(_0x30843f){_0x148cf8['push'](_0x148cf8['shift']());}}}(a39_0x40ee,0xe35ae));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x4954b3(0x1b6)};export const CODE_FLAG={'name':a39_0x4954b3(0x1c1),'type':'string','required':!![],'description':a39_0x4954b3(0x1c3),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x4954b3(0x1bb),'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)'};function a39_0x40ee(){const _0x4905c9=['3043725TjwnxL','2209674bxwRPb','dbtype','datasetcode','44747390xHqEVj','string','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','code','35uNnXsw','Dataset\x20code\x20(32-char\x20hex\x20UUID)','2059684xlwgLQ','3259640lPUClP','7200675KUJqnp','sqlcode','16ZOhwPI','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','1AoLbsT','MYSQL','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','2556963EMCYPl'];a39_0x40ee=function(){return _0x4905c9;};return a39_0x40ee();}export const SQLCODE_FLAG={'name':a39_0x4954b3(0x1c7),'type':'string','required':!![],'description':a39_0x4954b3(0x1bf),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x4954b3(0x1c9)}};export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':a39_0x4954b3(0x1bd),'required':![],'description':a39_0x4954b3(0x1c0)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};function a39_0x4952(_0x2530a1,_0x1cb955){_0x2530a1=_0x2530a1-0x1b4;const _0x40ee14=a39_0x40ee();let _0x49524f=_0x40ee14[_0x2530a1];return _0x49524f;}export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':a39_0x4954b3(0x1be)};export const DB_TYPE_FLAG={'name':a39_0x4954b3(0x1ba),'type':a39_0x4954b3(0x1bd),'required':!![],'description':'Database\x20product\x20type','enum':[a39_0x4954b3(0x1b5),'POSTGRESQL']};
1
+ const a39_0x393767=a39_0x2c3b;(function(_0xbd92b1,_0x4ca068){const _0x4e046d=a39_0x2c3b,_0x4f660b=_0xbd92b1();while(!![]){try{const _0x48666a=-parseInt(_0x4e046d(0x1a8))/0x1+parseInt(_0x4e046d(0x1a0))/0x2+-parseInt(_0x4e046d(0x1a5))/0x3*(-parseInt(_0x4e046d(0x1a6))/0x4)+parseInt(_0x4e046d(0x199))/0x5*(parseInt(_0x4e046d(0x1a3))/0x6)+-parseInt(_0x4e046d(0x1a2))/0x7+-parseInt(_0x4e046d(0x19f))/0x8+-parseInt(_0x4e046d(0x1a1))/0x9*(-parseInt(_0x4e046d(0x1a4))/0xa);if(_0x48666a===_0x4ca068)break;else _0x4f660b['push'](_0x4f660b['shift']());}catch(_0x4c00dd){_0x4f660b['push'](_0x4f660b['shift']());}}}(a39_0x5ac8,0xc0fec));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x393767(0x19e)};export const CODE_FLAG={'name':a39_0x393767(0x196),'type':'string','required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':DATASET_CODE_PATTERN};function a39_0x2c3b(_0x23cfc4,_0x26af3e){_0x23cfc4=_0x23cfc4-0x195;const _0x5ac86b=a39_0x5ac8();let _0x2c3b8a=_0x5ac86b[_0x23cfc4];return _0x2c3b8a;}export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x393767(0x1a7),'description':a39_0x393767(0x19b)};export const SQLCODE_FLAG={'name':'sqlcode','type':a39_0x393767(0x19a),'required':!![],'description':a39_0x393767(0x197),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':a39_0x393767(0x19a),'required':![],'description':a39_0x393767(0x19d)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};function a39_0x5ac8(){const _0xaa2c34=['Dataset\x20code\x20(32-char\x20hex\x20UUID)','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','3868992tnlZnG','1096234xvuPjV','27dtrEpX','10949190vslGjL','246xAskdb','7326440iFGRFS','6WlbESr','1224208amaApX','datasetcode','1075893zDTTZh','POSTGRESQL','code','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','dbtype','67810UFYNCH','string'];a39_0x5ac8=function(){return _0xaa2c34;};return a39_0x5ac8();}export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':a39_0x393767(0x19c)};export const DB_TYPE_FLAG={'name':a39_0x393767(0x198),'type':a39_0x393767(0x19a),'required':!![],'description':'Database\x20product\x20type','enum':['MYSQL',a39_0x393767(0x195)]};
@@ -1 +1 @@
1
- function a40_0x58ee(_0x2a3840,_0x43d5ce){_0x2a3840=_0x2a3840-0xea;const _0x4df66f=a40_0x4df6();let _0x58ee81=_0x4df66f[_0x2a3840];return _0x58ee81;}(function(_0x5746cf,_0x3d8317){const _0x1a8263=a40_0x58ee,_0x2066da=_0x5746cf();while(!![]){try{const _0x1cbf0d=-parseInt(_0x1a8263(0xf2))/0x1*(parseInt(_0x1a8263(0xf3))/0x2)+parseInt(_0x1a8263(0xf1))/0x3+parseInt(_0x1a8263(0xf4))/0x4*(-parseInt(_0x1a8263(0xf6))/0x5)+parseInt(_0x1a8263(0xf9))/0x6*(parseInt(_0x1a8263(0xee))/0x7)+parseInt(_0x1a8263(0xf8))/0x8*(parseInt(_0x1a8263(0xf0))/0x9)+-parseInt(_0x1a8263(0xf7))/0xa+parseInt(_0x1a8263(0xf5))/0xb*(-parseInt(_0x1a8263(0xeb))/0xc);if(_0x1cbf0d===_0x3d8317)break;else _0x2066da['push'](_0x2066da['shift']());}catch(_0x4ebadc){_0x2066da['push'](_0x2066da['shift']());}}}(a40_0x4df6,0xdee4e));function a40_0x4df6(){const _0x165526=['length','63egbCyJ','690048nGplzH','29005YoZOuZ','54IYOLtV','17588zLmvKB','2606505AgAVDZ','440BOqnhk','7356400WhBMeZ','1992096odlyNt','2712RzOzaN','App\x20Code\x20cannot\x20be\x20empty','test','12ouEFVB','trim','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','16765dyvgnp'];a40_0x4df6=function(){return _0x165526;};return a40_0x4df6();}export function validateAppcode(_0x4e5a40){const _0x1fde91=a40_0x58ee,_0x15163b=_0x4e5a40[_0x1fde91(0xec)]();if(!_0x15163b)return{'valid':![],'message':_0x1fde91(0xfa)};if(_0x15163b[_0x1fde91(0xef)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/[_0x1fde91(0xea)](_0x15163b))return{'valid':![],'message':_0x1fde91(0xed)};return{'valid':!![]};}
1
+ (function(_0x5e9e17,_0x241ac4){const _0x15f33f=a40_0x522e,_0x2d9b69=_0x5e9e17();while(!![]){try{const _0x28fb86=parseInt(_0x15f33f(0xb6))/0x1+parseInt(_0x15f33f(0xb5))/0x2*(-parseInt(_0x15f33f(0xae))/0x3)+parseInt(_0x15f33f(0xb4))/0x4*(-parseInt(_0x15f33f(0xb0))/0x5)+-parseInt(_0x15f33f(0xb9))/0x6+parseInt(_0x15f33f(0xbb))/0x7*(parseInt(_0x15f33f(0xb8))/0x8)+-parseInt(_0x15f33f(0xb2))/0x9*(parseInt(_0x15f33f(0xb7))/0xa)+parseInt(_0x15f33f(0xb3))/0xb*(parseInt(_0x15f33f(0xb1))/0xc);if(_0x28fb86===_0x241ac4)break;else _0x2d9b69['push'](_0x2d9b69['shift']());}catch(_0xd907c9){_0x2d9b69['push'](_0x2d9b69['shift']());}}}(a40_0x3137,0xf1ac8));function a40_0x522e(_0x271026,_0x31307e){_0x271026=_0x271026-0xaa;const _0x3137d6=a40_0x3137();let _0x522e79=_0x3137d6[_0x271026];return _0x522e79;}function a40_0x3137(){const _0x1af5c9=['8587596zGefBx','17667YUAwWH','33IaDwaL','4vPZyuj','144686zpAwNi','994295fBzpuv','300rwmbbf','8153128pzmvaA','10293720xCoNll','test','7SEyOsu','trim','length','App\x20Code\x20cannot\x20exceed\x20100\x20characters','App\x20Code\x20cannot\x20be\x20empty','12WHVbFc','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','5532785WKRLFW'];a40_0x3137=function(){return _0x1af5c9;};return a40_0x3137();}export function validateAppcode(_0x183fff){const _0x3f6ee9=a40_0x522e,_0x34a3f2=_0x183fff[_0x3f6ee9(0xaa)]();if(!_0x34a3f2)return{'valid':![],'message':_0x3f6ee9(0xad)};if(_0x34a3f2[_0x3f6ee9(0xab)]>0x64)return{'valid':![],'message':_0x3f6ee9(0xac)};if(!/^[A-Za-z0-9_-]+$/[_0x3f6ee9(0xba)](_0x34a3f2))return{'valid':![],'message':_0x3f6ee9(0xaf)};return{'valid':!![]};}
@@ -1 +1 @@
1
- const a41_0x257266=a41_0x3126;(function(_0x51ebb5,_0x457c36){const _0x3454b5=a41_0x3126,_0x40f48e=_0x51ebb5();while(!![]){try{const _0x31afac=-parseInt(_0x3454b5(0x104))/0x1+-parseInt(_0x3454b5(0x109))/0x2+-parseInt(_0x3454b5(0x100))/0x3+parseInt(_0x3454b5(0x101))/0x4*(-parseInt(_0x3454b5(0x103))/0x5)+-parseInt(_0x3454b5(0x102))/0x6+-parseInt(_0x3454b5(0xfd))/0x7*(-parseInt(_0x3454b5(0x105))/0x8)+parseInt(_0x3454b5(0xfa))/0x9;if(_0x31afac===_0x457c36)break;else _0x40f48e['push'](_0x40f48e['shift']());}catch(_0x322e6f){_0x40f48e['push'](_0x40f48e['shift']());}}}(a41_0x45a0,0xcb156));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a41_0x3126(_0xec14e4,_0x39d96c){_0xec14e4=_0xec14e4-0xfa;const _0x45a06c=a41_0x45a0();let _0x3126b5=_0x45a06c[_0xec14e4];return _0x3126b5;}function a41_0x45a0(){const _0x39cfef=['2341894GMCcao','object','Missing\x20key.','51241464YGDCkS','Key\x20not\x20found:\x20','app','35NYpSOF','config','Get\x20a\x20config\x20value\x20by\x20key','3905376bqzDaJ','456vXwdNc','8099622qGbclg','6595dsbEIi','1157259ACjBwi','429816ZxhViR','get','read','validation'];a41_0x45a0=function(){return _0x39cfef;};return a41_0x45a0();}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0xd07874){const _0xdc1bf4=a41_0x3126,_0x5f01e0=_0xd07874['str']('key');if(!_0x5f01e0)throw CliErrors[_0xdc1bf4(0x108)](_0xdc1bf4(0x10b),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x3fe787=readConfig(),_0x4d08d8=_0x5f01e0===_0xdc1bf4(0xfc)?'appcode':_0x5f01e0,_0x1fe034=_0x3fe787[_0x4d08d8];if(_0x1fe034===undefined)throw CliErrors[_0xdc1bf4(0x108)](_0xdc1bf4(0xfb)+_0x5f01e0);return{'ok':!![],'data':typeof _0x1fe034==='object'?_0x1fe034:{[_0x4d08d8]:_0x1fe034},'message':typeof _0x1fe034===_0xdc1bf4(0x10a)?undefined:String(_0x1fe034)};}export const configGetDefinition={'service':a41_0x257266(0xfe),'command':a41_0x257266(0x106),'description':a41_0x257266(0xff),'risk':a41_0x257266(0x107),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':'string','description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a41_0x16ba5e=a41_0x4296;(function(_0x3dbe25,_0x13e78e){const _0x2daba3=a41_0x4296,_0x576107=_0x3dbe25();while(!![]){try{const _0x2432c8=parseInt(_0x2daba3(0x204))/0x1*(parseInt(_0x2daba3(0x1ff))/0x2)+parseInt(_0x2daba3(0x1f8))/0x3*(-parseInt(_0x2daba3(0x206))/0x4)+-parseInt(_0x2daba3(0x1fa))/0x5+-parseInt(_0x2daba3(0x201))/0x6*(-parseInt(_0x2daba3(0x1fc))/0x7)+-parseInt(_0x2daba3(0x1fb))/0x8*(parseInt(_0x2daba3(0x1f4))/0x9)+-parseInt(_0x2daba3(0x1f3))/0xa+parseInt(_0x2daba3(0x203))/0xb*(parseInt(_0x2daba3(0x1f1))/0xc);if(_0x2432c8===_0x13e78e)break;else _0x576107['push'](_0x576107['shift']());}catch(_0x3f9da0){_0x576107['push'](_0x576107['shift']());}}}(a41_0x3e15,0xc3bf5));import{CliErrors}from'../../errors.js';function a41_0x3e15(){const _0x3816ce=['991574iyQPJY','config','172518xAJsaE','read','1782zGrAtY','2mZNsKL','app','4oKHuSq','get','109992iEorbS','str','1038980AzXoVJ','4581iLarWs','validation','Missing\x20key.','appcode','2259321ImJHTR','Key\x20not\x20found:\x20','3040170yddjBk','19112aCcimM','245PdiCZG','object','key'];a41_0x3e15=function(){return _0x3816ce;};return a41_0x3e15();}import{readConfig}from'../../utils/config.js';function a41_0x4296(_0xc32b06,_0x289acf){_0xc32b06=_0xc32b06-0x1f1;const _0x3e156c=a41_0x3e15();let _0x429674=_0x3e156c[_0xc32b06];return _0x429674;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x1b9705){const _0x349232=a41_0x4296,_0xbd11a=_0x1b9705[_0x349232(0x1f2)]('key');if(!_0xbd11a)throw CliErrors[_0x349232(0x1f5)](_0x349232(0x1f6),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x4810ec=readConfig(),_0x469f19=_0xbd11a===_0x349232(0x205)?_0x349232(0x1f7):_0xbd11a,_0x2c618d=_0x4810ec[_0x469f19];if(_0x2c618d===undefined)throw CliErrors['validation'](_0x349232(0x1f9)+_0xbd11a);return{'ok':!![],'data':typeof _0x2c618d===_0x349232(0x1fd)?_0x2c618d:{[_0x469f19]:_0x2c618d},'message':typeof _0x2c618d===_0x349232(0x1fd)?undefined:String(_0x2c618d)};}export const configGetDefinition={'service':a41_0x16ba5e(0x200),'command':a41_0x16ba5e(0x207),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':a41_0x16ba5e(0x202),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x16ba5e(0x1fe),'type':'string','description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0xd000b5,_0x160ed4){const _0x5b904c=a42_0x11b8,_0x4025e4=_0xd000b5();while(!![]){try{const _0x28e98b=parseInt(_0x5b904c(0x12a))/0x1*(parseInt(_0x5b904c(0x128))/0x2)+-parseInt(_0x5b904c(0x129))/0x3+parseInt(_0x5b904c(0x12f))/0x4*(-parseInt(_0x5b904c(0x127))/0x5)+-parseInt(_0x5b904c(0x12e))/0x6*(-parseInt(_0x5b904c(0x130))/0x7)+-parseInt(_0x5b904c(0x131))/0x8*(parseInt(_0x5b904c(0x12b))/0x9)+parseInt(_0x5b904c(0x12c))/0xa*(parseInt(_0x5b904c(0x12d))/0xb)+-parseInt(_0x5b904c(0x126))/0xc;if(_0x28e98b===_0x160ed4)break;else _0x4025e4['push'](_0x4025e4['shift']());}catch(_0x20955d){_0x4025e4['push'](_0x4025e4['shift']());}}}(a42_0x5dad,0x7562b));function a42_0x5dad(){const _0x52ece1=['3752blLjZZ','4248960dMPFpL','5VGhavm','226zjJZdc','1502367XHQcoY','4633fKMora','8046RiygSx','10FxqHUn','7735453KCaWxp','6uIrzEO','646188ODSKcT','4828327OdECnW'];a42_0x5dad=function(){return _0x52ece1;};return a42_0x5dad();}import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a42_0x11b8(_0x306bf4,_0x479937){_0x306bf4=_0x306bf4-0x126;const _0x5dad23=a42_0x5dad();let _0x11b88a=_0x5dad23[_0x306bf4];return _0x11b88a;}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ function a42_0x5770(){const _0x3850cc=['506830SeDKck','5872xZBaYQ','4193BdNzqU','4604TPTyfX','3429cpYqun','165dwLHUt','186495pxZpsy','13430WkRWTx','510155XSaCSu','4503654yIRKqo'];a42_0x5770=function(){return _0x3850cc;};return a42_0x5770();}(function(_0x3e9ce8,_0x3527a9){const _0x43ce69=a42_0x1c57,_0x3b1398=_0x3e9ce8();while(!![]){try{const _0x179a8c=-parseInt(_0x43ce69(0xa2))/0x1+parseInt(_0x43ce69(0xa4))/0x2+-parseInt(_0x43ce69(0xa0))/0x3+parseInt(_0x43ce69(0xa7))/0x4*(parseInt(_0x43ce69(0x9f))/0x5)+parseInt(_0x43ce69(0xa3))/0x6+parseInt(_0x43ce69(0xa6))/0x7*(parseInt(_0x43ce69(0xa5))/0x8)+-parseInt(_0x43ce69(0xa8))/0x9*(parseInt(_0x43ce69(0xa1))/0xa);if(_0x179a8c===_0x3527a9)break;else _0x3b1398['push'](_0x3b1398['shift']());}catch(_0x3c1117){_0x3b1398['push'](_0x3b1398['shift']());}}}(a42_0x5770,0x61166));import{configListDefinition}from'../../commands/config/list.js';function a42_0x1c57(_0x196eda,_0x116f36){_0x196eda=_0x196eda-0x9f;const _0x5770b8=a42_0x5770();let _0x1c5764=_0x5770b8[_0x196eda];return _0x1c5764;}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- const a43_0x142f4f=a43_0x5c85;(function(_0xac5e47,_0x2a133f){const _0xef494=a43_0x5c85,_0x4c3bc4=_0xac5e47();while(!![]){try{const _0x251e82=parseInt(_0xef494(0x1bf))/0x1*(-parseInt(_0xef494(0x1ba))/0x2)+-parseInt(_0xef494(0x1c7))/0x3+-parseInt(_0xef494(0x1bb))/0x4*(parseInt(_0xef494(0x1c6))/0x5)+-parseInt(_0xef494(0x1c4))/0x6*(-parseInt(_0xef494(0x1c8))/0x7)+parseInt(_0xef494(0x1b8))/0x8*(-parseInt(_0xef494(0x1c1))/0x9)+parseInt(_0xef494(0x1bd))/0xa+parseInt(_0xef494(0x1be))/0xb;if(_0x251e82===_0x2a133f)break;else _0x4c3bc4['push'](_0x4c3bc4['shift']());}catch(_0x561dbd){_0x4c3bc4['push'](_0x4c3bc4['shift']());}}}(a43_0x3d36,0x87bbf));import{readScopedConfig}from'../../commands/config/shared.js';function a43_0x3d36(){const _0x413e93=['1268jrzfAf','1723144eBDsnm','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','2986820prLiPS','16467638CSqhdp','266lqMGAb','list','288nKOwyQ','boolean','List\x20all\x20config\x20values','5114358ITlOKx','bool','5hGyCPT','3101760WsrMLG','7lbzoPz','114704eCmlPg','global'];a43_0x3d36=function(){return _0x413e93;};return a43_0x3d36();}import{readConfig}from'../../utils/config.js';function a43_0x5c85(_0x52efd0,_0x43d23b){_0x52efd0=_0x52efd0-0x1b8;const _0x3d36df=a43_0x3d36();let _0x5c8585=_0x3d36df[_0x52efd0];return _0x5c8585;}async function execute(_0x1fc79e){const _0x59d843=a43_0x5c85,_0x42b455=_0x1fc79e[_0x59d843(0x1c5)](_0x59d843(0x1b9))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x42b455};}export const configListDefinition={'service':'config','command':a43_0x142f4f(0x1c0),'description':a43_0x142f4f(0x1c3),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x142f4f(0x1b9),'type':a43_0x142f4f(0x1c2),'description':a43_0x142f4f(0x1bc),'default':![]}],'execute':execute};
1
+ const a43_0x31c52e=a43_0x3501;function a43_0x385f(){const _0x321685=['4hIFSuS','45636144VnvnHG','6478856buVpUa','2440bteHlH','2011518JTiAGV','List\x20all\x20config\x20values','list','global','11709OjiBMw','3dXWRPi','config','1484405tTBtKA','11NUbfXL','21fARuSy','bool','boolean','117683DDwNgL','1331458eknhZV'];a43_0x385f=function(){return _0x321685;};return a43_0x385f();}(function(_0xf7ad85,_0x5e9fb6){const _0xfdd15c=a43_0x3501,_0x43ce9b=_0xf7ad85();while(!![]){try{const _0x25ec37=-parseInt(_0xfdd15c(0x195))/0x1+parseInt(_0xfdd15c(0x196))/0x2*(-parseInt(_0xfdd15c(0x1a0))/0x3)+-parseInt(_0xfdd15c(0x197))/0x4*(parseInt(_0xfdd15c(0x1a2))/0x5)+-parseInt(_0xfdd15c(0x19b))/0x6*(parseInt(_0xfdd15c(0x1a4))/0x7)+-parseInt(_0xfdd15c(0x199))/0x8+parseInt(_0xfdd15c(0x19f))/0x9*(-parseInt(_0xfdd15c(0x19a))/0xa)+parseInt(_0xfdd15c(0x1a3))/0xb*(parseInt(_0xfdd15c(0x198))/0xc);if(_0x25ec37===_0x5e9fb6)break;else _0x43ce9b['push'](_0x43ce9b['shift']());}catch(_0x273d31){_0x43ce9b['push'](_0x43ce9b['shift']());}}}(a43_0x385f,0x8ff5b));function a43_0x3501(_0x341b7f,_0x49cffa){_0x341b7f=_0x341b7f-0x195;const _0x385f3d=a43_0x385f();let _0x350177=_0x385f3d[_0x341b7f];return _0x350177;}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0xdbf1f0){const _0x57fbc8=a43_0x3501,_0x2faaf3=_0xdbf1f0[_0x57fbc8(0x1a5)](_0x57fbc8(0x19e))?readScopedConfig(_0x57fbc8(0x19e)):readConfig();return{'ok':!![],'data':_0x2faaf3};}export const configListDefinition={'service':a43_0x31c52e(0x1a1),'command':a43_0x31c52e(0x19d),'description':a43_0x31c52e(0x19c),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x31c52e(0x19e),'type':a43_0x31c52e(0x1a6),'description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a44_0x349841=a44_0x3633;(function(_0x5aa9da,_0x2c7752){const _0x248773=a44_0x3633,_0x4d010d=_0x5aa9da();while(!![]){try{const _0x253b28=-parseInt(_0x248773(0xf1))/0x1+parseInt(_0x248773(0xff))/0x2*(-parseInt(_0x248773(0xeb))/0x3)+parseInt(_0x248773(0xed))/0x4+-parseInt(_0x248773(0x101))/0x5*(-parseInt(_0x248773(0xdd))/0x6)+-parseInt(_0x248773(0x10c))/0x7+parseInt(_0x248773(0x100))/0x8+parseInt(_0x248773(0x102))/0x9;if(_0x253b28===_0x2c7752)break;else _0x4d010d['push'](_0x4d010d['shift']());}catch(_0x2f7e31){_0x4d010d['push'](_0x4d010d['shift']());}}}(a44_0x1996,0x74e22));import{CliErrors}from'../../errors.js';function a44_0x3633(_0x3c3f5e,_0x1d909b){_0x3c3f5e=_0x3c3f5e-0xdb;const _0x19967c=a44_0x1996();let _0x363310=_0x19967c[_0x3c3f5e];return _0x363310;}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(_0x3863a6){const _0x4adfa5=a44_0x3633,_0x3241c4=_0x3863a6[_0x4adfa5(0xee)](_0x4adfa5(0xfb)),_0x56b876=_0x3863a6[_0x4adfa5(0xee)]('value');if(!_0x3241c4)throw CliErrors[_0x4adfa5(0xdf)](_0x4adfa5(0xef),_0x4adfa5(0xdc)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x56b876===undefined||_0x56b876==='')throw CliErrors[_0x4adfa5(0xdf)](_0x4adfa5(0x10b),_0x4adfa5(0xdc)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x56b876[_0x4adfa5(0xe7)]>0x1f4)throw CliErrors[_0x4adfa5(0xdf)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(!isTopLevelConfigKey(_0x3241c4))throw CliErrors[_0x4adfa5(0xdf)](_0x4adfa5(0x103)+_0x3241c4+_0x4adfa5(0xf0),_0x4adfa5(0xe2)+getTopLevelConfigKeySummary());if(_0x3241c4===_0x4adfa5(0x108))throw CliErrors[_0x4adfa5(0xdf)](_0x4adfa5(0x107));if(CONFIG_ENUM_VALUES[_0x3241c4]&&!CONFIG_ENUM_VALUES[_0x3241c4][_0x4adfa5(0xec)](_0x56b876))throw CliErrors[_0x4adfa5(0xdf)]('Invalid\x20value\x20for\x20\x22'+_0x3241c4+_0x4adfa5(0x106)+CONFIG_ENUM_VALUES[_0x3241c4][_0x4adfa5(0xf6)](',\x20'));if(_0x3241c4===_0x4adfa5(0xe6)&&!normalizeLocale(_0x56b876))throw CliErrors[_0x4adfa5(0xdf)]('Invalid\x20locale\x20value.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x401579={'global':_0x3863a6[_0x4adfa5(0x109)](_0x4adfa5(0xf5))},_0x28b462=resolveWriteScope(_0x401579),_0x25aa63=readScopedConfig(_0x28b462);let _0x342bdc=_0x3241c4,_0x511e47=_0x56b876;_0x3241c4===_0x4adfa5(0xde)&&(_0x342bdc='appcode',delete _0x25aa63[_0x4adfa5(0xde)]);_0x3241c4==='locale'&&(_0x511e47=normalizeLocale(_0x56b876));if(_0x3241c4===_0x4adfa5(0xfa)){_0x511e47=normalizeEnv(_0x56b876);if(!isProduction(_0x511e47)&&!isDaily(_0x511e47))throw CliErrors[_0x4adfa5(0xdf)](_0x4adfa5(0x105),_0x4adfa5(0xe1));}if(_0x3241c4===_0x4adfa5(0xea)){const _0x2d2207=_0x25aa63[_0x4adfa5(0xf3)]&&typeof _0x25aa63[_0x4adfa5(0xf3)]===_0x4adfa5(0xf9)?Object[_0x4adfa5(0xfc)](_0x25aa63['apps']):[];if(_0x2d2207['length']>0x0)throw CliErrors[_0x4adfa5(0xdf)]('Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.',_0x4adfa5(0xf2)+CLI_BIN_NAME+_0x4adfa5(0xe8)+_0x511e47+_0x4adfa5(0xe4)+CLI_BIN_NAME+_0x4adfa5(0xe0));const _0x476e17=buildCanonicalProjectConfig({..._0x25aa63},{'appCodes':[_0x511e47],'env':typeof _0x25aa63[_0x4adfa5(0xfa)]===_0x4adfa5(0xf4)?_0x25aa63['env']:undefined});writeScopedConfig(_0x476e17,_0x28b462);const _0x2303a6=_0x28b462==='global'?_0x4adfa5(0xfe):'Project';return{'ok':!![],'message':'✓\x20'+_0x2303a6+_0x4adfa5(0xdb)+_0x511e47+_0x4adfa5(0xe5)};}_0x25aa63[_0x342bdc]=_0x511e47,writeScopedConfig(_0x25aa63,_0x28b462);const _0x407266=_0x28b462==='global'?_0x4adfa5(0xfe):_0x4adfa5(0xe9);return{'ok':!![],'message':'✓\x20'+_0x407266+'\x20'+_0x342bdc+'\x20set\x20to:\x20'+_0x511e47};}function a44_0x1996(){const _0x5332cf=['write','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','\x22.\x20Allowed:\x20','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','riskLevel','bool','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Missing\x20value.','1549681jlUkEu','\x20appcode\x20set\x20to:\x20','Usage:\x20','5488206WJXSIn','app','validation','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','Settable\x20top-level\x20keys:\x20','Set\x20a\x20config\x20value','`,\x20`','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','locale','length','\x20app\x20add\x20<name>\x20--appcode\x20','Project','appcode','15tVkBGz','includes','131324WCVTVi','str','Missing\x20key.','\x22\x20is\x20not\x20settable.','743450jUigfg','Use\x20`','apps','string','global','join','boolean','Config\x20value','object','env','key','keys','config','Global','65570SoQTYL','2978040lMQbXm','5IXJAib','2589525YtIybp','Top-level\x20key\x20\x22'];a44_0x1996=function(){return _0x5332cf;};return a44_0x1996();}export const configSetDefinition={'service':a44_0x349841(0xfd),'command':'set','description':a44_0x349841(0xe3),'risk':a44_0x349841(0x104),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':a44_0x349841(0xf4),'description':a44_0x349841(0xf8),'required':!![]},{'name':a44_0x349841(0xf5),'type':a44_0x349841(0xf7),'description':a44_0x349841(0x10a),'default':![]}],'execute':execute};
1
+ function a44_0x20d8(){const _0x1c7767=['object','locale','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Project','global','Invalid\x20value\x20for\x20\x22','value','key','\x22.\x20Allowed:\x20','`,\x20`','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','1160onEtAO','Usage:\x20','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','env','apps','Top-level\x20key\x20\x22','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','\x20set\x20to:\x20','Global','\x20appcode\x20set\x20to:\x20','str','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','1604658XfWshT','20SSsEPK','includes','1428157gYEOaN','289562DrbNKU','477096NsspSl','1352750TMRfzx','string','riskLevel','2BFYRZX','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','length','66816QJJaPW','Missing\x20key.','appcode','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','bool','config','validation','app','1486400IQPEIr','\x20app\x20add\x20<name>\x20--appcode\x20'];a44_0x20d8=function(){return _0x1c7767;};return a44_0x20d8();}const a44_0x30af92=a44_0x2b44;(function(_0x3e67a3,_0x68f177){const _0x101ff0=a44_0x2b44,_0x4407b7=_0x3e67a3();while(!![]){try{const _0x138220=-parseInt(_0x101ff0(0x7c))/0x1*(parseInt(_0x101ff0(0x82))/0x2)+parseInt(_0x101ff0(0x7e))/0x3+parseInt(_0x101ff0(0x8d))/0x4*(parseInt(_0x101ff0(0x7a))/0x5)+-parseInt(_0x101ff0(0x79))/0x6+-parseInt(_0x101ff0(0x7d))/0x7+-parseInt(_0x101ff0(0x9a))/0x8*(-parseInt(_0x101ff0(0x85))/0x9)+-parseInt(_0x101ff0(0x7f))/0xa;if(_0x138220===_0x68f177)break;else _0x4407b7['push'](_0x4407b7['shift']());}catch(_0x54b731){_0x4407b7['push'](_0x4407b7['shift']());}}}(a44_0x20d8,0xcf707));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(_0x3fafd9){const _0x7f7905=a44_0x2b44,_0x1b6dfb=_0x3fafd9[_0x7f7905(0x77)](_0x7f7905(0x96)),_0x35b77c=_0x3fafd9[_0x7f7905(0x77)](_0x7f7905(0x95));if(!_0x1b6dfb)throw CliErrors[_0x7f7905(0x8b)](_0x7f7905(0x86),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x35b77c===undefined||_0x35b77c==='')throw CliErrors['validation']('Missing\x20value.',_0x7f7905(0x9b)+CLI_BIN_NAME+_0x7f7905(0x73));if(_0x35b77c[_0x7f7905(0x84)]>0x1f4)throw CliErrors[_0x7f7905(0x8b)](_0x7f7905(0x78));if(!isTopLevelConfigKey(_0x1b6dfb))throw CliErrors[_0x7f7905(0x8b)](_0x7f7905(0x9f)+_0x1b6dfb+'\x22\x20is\x20not\x20settable.','Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x1b6dfb===_0x7f7905(0x81))throw CliErrors[_0x7f7905(0x8b)](_0x7f7905(0x91));if(CONFIG_ENUM_VALUES[_0x1b6dfb]&&!CONFIG_ENUM_VALUES[_0x1b6dfb][_0x7f7905(0x7b)](_0x35b77c))throw CliErrors[_0x7f7905(0x8b)](_0x7f7905(0x94)+_0x1b6dfb+_0x7f7905(0x97)+CONFIG_ENUM_VALUES[_0x1b6dfb]['join'](',\x20'));if(_0x1b6dfb===_0x7f7905(0x90)&&!normalizeLocale(_0x35b77c))throw CliErrors['validation']('Invalid\x20locale\x20value.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x5a6869={'global':_0x3fafd9[_0x7f7905(0x89)](_0x7f7905(0x93))},_0x4f34e1=resolveWriteScope(_0x5a6869),_0x1f5974=readScopedConfig(_0x4f34e1);let _0x37ea09=_0x1b6dfb,_0x48b44b=_0x35b77c;_0x1b6dfb===_0x7f7905(0x8c)&&(_0x37ea09=_0x7f7905(0x87),delete _0x1f5974['app']);_0x1b6dfb===_0x7f7905(0x90)&&(_0x48b44b=normalizeLocale(_0x35b77c));if(_0x1b6dfb==='env'){_0x48b44b=normalizeEnv(_0x35b77c);if(!isProduction(_0x48b44b)&&!isDaily(_0x48b44b))throw CliErrors[_0x7f7905(0x8b)](_0x7f7905(0x83),_0x7f7905(0x99));}if(_0x1b6dfb==='appcode'){const _0x81994=_0x1f5974[_0x7f7905(0x9e)]&&typeof _0x1f5974[_0x7f7905(0x9e)]===_0x7f7905(0x8f)?Object['keys'](_0x1f5974[_0x7f7905(0x9e)]):[];if(_0x81994[_0x7f7905(0x84)]>0x0)throw CliErrors[_0x7f7905(0x8b)](_0x7f7905(0x9c),'Use\x20`'+CLI_BIN_NAME+_0x7f7905(0x8e)+_0x48b44b+_0x7f7905(0x98)+CLI_BIN_NAME+_0x7f7905(0xa0));const _0x10b0c4=buildCanonicalProjectConfig({..._0x1f5974},{'appCodes':[_0x48b44b],'env':typeof _0x1f5974[_0x7f7905(0x9d)]===_0x7f7905(0x80)?_0x1f5974[_0x7f7905(0x9d)]:undefined});writeScopedConfig(_0x10b0c4,_0x4f34e1);const _0x259a87=_0x4f34e1===_0x7f7905(0x93)?'Global':_0x7f7905(0x92);return{'ok':!![],'message':'✓\x20'+_0x259a87+_0x7f7905(0x76)+_0x48b44b+_0x7f7905(0x88)};}_0x1f5974[_0x37ea09]=_0x48b44b,writeScopedConfig(_0x1f5974,_0x4f34e1);const _0x32a4c6=_0x4f34e1===_0x7f7905(0x93)?_0x7f7905(0x75):'Project';return{'ok':!![],'message':'✓\x20'+_0x32a4c6+'\x20'+_0x37ea09+_0x7f7905(0x74)+_0x48b44b};}function a44_0x2b44(_0x2fc664,_0x35d649){_0x2fc664=_0x2fc664-0x73;const _0x20d843=a44_0x20d8();let _0x2b441d=_0x20d843[_0x2fc664];return _0x2b441d;}export const configSetDefinition={'service':a44_0x30af92(0x8a),'command':'set','description':'Set\x20a\x20config\x20value','risk':'write','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a44_0x30af92(0x80),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x30af92(0x95),'type':'string','description':'Config\x20value','required':!![]},{'name':a44_0x30af92(0x93),'type':'boolean','description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x11aced,_0x16febb){var _0xa7ac12=a45_0x4244,_0x1b52fd=_0x11aced();while(!![]){try{var _0x3d1d16=-parseInt(_0xa7ac12(0x1d3))/0x1*(parseInt(_0xa7ac12(0x1d5))/0x2)+parseInt(_0xa7ac12(0x1d1))/0x3*(-parseInt(_0xa7ac12(0x1d0))/0x4)+-parseInt(_0xa7ac12(0x1ce))/0x5+-parseInt(_0xa7ac12(0x1db))/0x6*(parseInt(_0xa7ac12(0x1d4))/0x7)+-parseInt(_0xa7ac12(0x1da))/0x8*(parseInt(_0xa7ac12(0x1d7))/0x9)+-parseInt(_0xa7ac12(0x1cd))/0xa+-parseInt(_0xa7ac12(0x1d9))/0xb*(-parseInt(_0xa7ac12(0x1d6))/0xc);if(_0x3d1d16===_0x16febb)break;else _0x1b52fd['push'](_0x1b52fd['shift']());}catch(_0x31a7d6){_0x1b52fd['push'](_0x1b52fd['shift']());}}}(a45_0x3d5a,0x8c685));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};function a45_0x4244(_0x44bdf1,_0x18ed76){_0x44bdf1=_0x44bdf1-0x1cc;var _0x3d5a6a=a45_0x3d5a();var _0x424419=_0x3d5a6a[_0x44bdf1];return _0x424419;}function a45_0x3d5a(){var _0x1abf45=['2cVKioa','732hFUrdW','98847nVikPF','\x20init`\x20first.','534710gIYjEP','232gGjLRg','12maJLaw','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','2719940yuMBTr','3300590ZOpMDc','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','3844IswpnW','2310LEgDsM','project','22166ckWSvv','1320711eZnCnL'];a45_0x3d5a=function(){return _0x1abf45;};return a45_0x3d5a();}export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x297f6f){var _0x547833=a45_0x4244;if(_0x297f6f['global'])return'global';if(!isInProject())throw CliErrors['validation'](_0x547833(0x1cc),_0x547833(0x1cf)+CLI_BIN_NAME+_0x547833(0x1d8));return _0x547833(0x1d2);}export function readScopedConfig(_0x394cb5){return readConfigFile(resolveWriteConfigPath(_0x394cb5));}export function writeScopedConfig(_0x315fa5,_0x8e5271){writeConfigFile(resolveWriteConfigPath(_0x8e5271),_0x315fa5);}
1
+ (function(_0x163924,_0x1caef6){var _0x1c087e=a45_0x27b1,_0x57a13e=_0x163924();while(!![]){try{var _0x27e66b=parseInt(_0x1c087e(0x103))/0x1+-parseInt(_0x1c087e(0x105))/0x2+parseInt(_0x1c087e(0x109))/0x3*(parseInt(_0x1c087e(0x10e))/0x4)+-parseInt(_0x1c087e(0x10c))/0x5+parseInt(_0x1c087e(0x106))/0x6+parseInt(_0x1c087e(0x10d))/0x7*(-parseInt(_0x1c087e(0x10a))/0x8)+parseInt(_0x1c087e(0x10f))/0x9;if(_0x27e66b===_0x1caef6)break;else _0x57a13e['push'](_0x57a13e['shift']());}catch(_0x369514){_0x57a13e['push'](_0x57a13e['shift']());}}}(a45_0x2aec,0x820f9));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(_0x23c536){var _0x4d5764=a45_0x27b1;if(_0x23c536['global'])return _0x4d5764(0x104);if(!isInProject())throw CliErrors[_0x4d5764(0x108)](_0x4d5764(0x10b),_0x4d5764(0x107)+CLI_BIN_NAME+_0x4d5764(0x110));return'project';}export function readScopedConfig(_0x1ed90b){return readConfigFile(resolveWriteConfigPath(_0x1ed90b));}function a45_0x2aec(){var _0x3c1a00=['10997271jUBkdu','\x20init`\x20first.','657PMYYFz','global','1342618GeCvuX','4807020rxMBdh','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','validation','9TvIZiA','440fIDWmW','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','2115860VfzPtK','53627AOLUdu','33092ecHeyE'];a45_0x2aec=function(){return _0x3c1a00;};return a45_0x2aec();}function a45_0x27b1(_0x375fa6,_0x1db925){_0x375fa6=_0x375fa6-0x103;var _0x2aec71=a45_0x2aec();var _0x27b197=_0x2aec71[_0x375fa6];return _0x27b197;}export function writeScopedConfig(_0x4e2387,_0xc2431){writeConfigFile(resolveWriteConfigPath(_0xc2431),_0x4e2387);}
@@ -1 +1 @@
1
- const a46_0xc47b82=a46_0x3145;function a46_0x3145(_0x59b820,_0x15b31c){_0x59b820=_0x59b820-0x17c;const _0x5e4abd=a46_0x5e4a();let _0x3145b9=_0x5e4abd[_0x59b820];return _0x3145b9;}(function(_0x1e3288,_0x4c26e4){const _0x23bf4e=a46_0x3145,_0x30ccbe=_0x1e3288();while(!![]){try{const _0x2f5c4d=parseInt(_0x23bf4e(0x182))/0x1*(parseInt(_0x23bf4e(0x187))/0x2)+parseInt(_0x23bf4e(0x180))/0x3*(parseInt(_0x23bf4e(0x18d))/0x4)+parseInt(_0x23bf4e(0x184))/0x5+-parseInt(_0x23bf4e(0x186))/0x6+-parseInt(_0x23bf4e(0x17e))/0x7*(parseInt(_0x23bf4e(0x185))/0x8)+-parseInt(_0x23bf4e(0x18b))/0x9*(parseInt(_0x23bf4e(0x18f))/0xa)+-parseInt(_0x23bf4e(0x18c))/0xb*(parseInt(_0x23bf4e(0x17f))/0xc);if(_0x2f5c4d===_0x4c26e4)break;else _0x30ccbe['push'](_0x30ccbe['shift']());}catch(_0x45ba18){_0x30ccbe['push'](_0x30ccbe['shift']());}}}(a46_0x5e4a,0xcd9c2));import{buildDataCommand}from'../../commands/data/shared.js';function a46_0x5e4a(){const _0x598acb=['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','8271rESdKh','66qSgSqB','132ZnGOLo','filter','16570YLSFqq','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','6230CWNdcg','462744smQilJ','65448zIGPIV','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','71qBmvFb','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','5387015BCzOJE','2728iyEzXP','1821552zPwSRN','39608tmxbNZ','join'];a46_0x5e4a=function(){return _0x598acb;};return a46_0x5e4a();}export const dataFilter=buildDataCommand({'command':'filter','operation':a46_0xc47b82(0x18e),'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsRequired':![],'paramsHint':a46_0xc47b82(0x183),'helpExtra':[a46_0xc47b82(0x189),a46_0xc47b82(0x181),a46_0xc47b82(0x17c),a46_0xc47b82(0x18a),a46_0xc47b82(0x17d),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page'][a46_0xc47b82(0x188)]('\x0a')});
1
+ const a46_0x1089f0=a46_0x35f5;(function(_0x5a68cd,_0x25b036){const _0xaf2aec=a46_0x35f5,_0x5e06b3=_0x5a68cd();while(!![]){try{const _0x1829c5=-parseInt(_0xaf2aec(0x16b))/0x1+-parseInt(_0xaf2aec(0x16c))/0x2*(parseInt(_0xaf2aec(0x168))/0x3)+-parseInt(_0xaf2aec(0x16d))/0x4*(parseInt(_0xaf2aec(0x167))/0x5)+parseInt(_0xaf2aec(0x15f))/0x6+-parseInt(_0xaf2aec(0x16e))/0x7+parseInt(_0xaf2aec(0x160))/0x8+parseInt(_0xaf2aec(0x164))/0x9*(parseInt(_0xaf2aec(0x16a))/0xa);if(_0x1829c5===_0x25b036)break;else _0x5e06b3['push'](_0x5e06b3['shift']());}catch(_0x3bb7a4){_0x5e06b3['push'](_0x5e06b3['shift']());}}}(a46_0x2454,0x4db8a));function a46_0x35f5(_0x2a6fa3,_0x57ec3f){_0x2a6fa3=_0x2a6fa3-0x15f;const _0x24546c=a46_0x2454();let _0x35f5f7=_0x24546c[_0x2a6fa3];return _0x35f5f7;}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':'filter','operation':a46_0x1089f0(0x166),'description':a46_0x1089f0(0x165),'paramsRequired':![],'paramsHint':a46_0x1089f0(0x161),'helpExtra':[a46_0x1089f0(0x163),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions',a46_0x1089f0(0x16f),a46_0x1089f0(0x170),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a46_0x1089f0(0x162)][a46_0x1089f0(0x169)]('\x0a')});function a46_0x2454(){const _0x58b58c=['\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','188574NsHOXC','3916920mqAkGg','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','1184418JktMdq','Filter\x20dataset\x20records\x20with\x20query\x20conditions','filter','1795075gWGTUx','6JTRBJG','join','120OadpCz','543398Owlmii','419308qkLHCh','4uDFhCi','3221407XTARfJ','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]'];a46_0x2454=function(){return _0x58b58c;};return a46_0x2454();}
@@ -1 +1 @@
1
- const a47_0x30f14c=a47_0x4987;(function(_0x428b3a,_0x1c835b){const _0x314c01=a47_0x4987,_0x4692fe=_0x428b3a();while(!![]){try{const _0x5ac9a0=parseInt(_0x314c01(0x196))/0x1*(-parseInt(_0x314c01(0x192))/0x2)+parseInt(_0x314c01(0x190))/0x3*(-parseInt(_0x314c01(0x193))/0x4)+parseInt(_0x314c01(0x18b))/0x5*(parseInt(_0x314c01(0x195))/0x6)+parseInt(_0x314c01(0x18e))/0x7*(-parseInt(_0x314c01(0x18d))/0x8)+-parseInt(_0x314c01(0x191))/0x9+parseInt(_0x314c01(0x197))/0xa+parseInt(_0x314c01(0x194))/0xb;if(_0x5ac9a0===_0x1c835b)break;else _0x4692fe['push'](_0x4692fe['shift']());}catch(_0xd554b3){_0x4692fe['push'](_0x4692fe['shift']());}}}(a47_0xe623,0xc9fd1));function a47_0x4987(_0x406ae0,_0x13041c){_0x406ae0=_0x406ae0-0x18a;const _0xe623a3=a47_0xe623();let _0x4987d3=_0xe623a3[_0x406ae0];return _0x4987d3;}import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a47_0x30f14c(0x18c),'operation':a47_0x30f14c(0x18c),'description':a47_0x30f14c(0x18f),'paramsRequired':!![],'paramsHint':a47_0x30f14c(0x18a)});function a47_0xe623(){const _0x3c4090=['6628TwRJab','28102294tMUULA','336wtaaCZ','1wAIliV','4162710gViouz','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','69295VFlUwv','getOne','32YXBCkx','1968358ChxWnJ','Get\x20a\x20single\x20record\x20by\x20ID','573sBRaVr','9113256LxfDxj','931874Txftzk'];a47_0xe623=function(){return _0x3c4090;};return a47_0xe623();}
1
+ function a47_0x1c34(_0x1b75bd,_0x415e83){_0x1b75bd=_0x1b75bd-0x1b3;const _0x17b590=a47_0x17b5();let _0x1c3482=_0x17b590[_0x1b75bd];return _0x1c3482;}const a47_0x2e05a1=a47_0x1c34;(function(_0x46864f,_0x1782e5){const _0x1337c1=a47_0x1c34,_0x23f2c4=_0x46864f();while(!![]){try{const _0x56176c=parseInt(_0x1337c1(0x1bc))/0x1*(parseInt(_0x1337c1(0x1b3))/0x2)+parseInt(_0x1337c1(0x1ba))/0x3*(parseInt(_0x1337c1(0x1b8))/0x4)+parseInt(_0x1337c1(0x1c1))/0x5*(-parseInt(_0x1337c1(0x1be))/0x6)+parseInt(_0x1337c1(0x1bb))/0x7*(parseInt(_0x1337c1(0x1b5))/0x8)+parseInt(_0x1337c1(0x1c0))/0x9+parseInt(_0x1337c1(0x1b4))/0xa*(parseInt(_0x1337c1(0x1bd))/0xb)+parseInt(_0x1337c1(0x1c2))/0xc*(-parseInt(_0x1337c1(0x1b7))/0xd);if(_0x56176c===_0x1782e5)break;else _0x23f2c4['push'](_0x23f2c4['shift']());}catch(_0xfd2e1a){_0x23f2c4['push'](_0x23f2c4['shift']());}}}(a47_0x17b5,0xdbc7b));function a47_0x17b5(){const _0x3d1a2d=['getOne','13qPMzYB','123208AuyrWF','Get\x20a\x20single\x20record\x20by\x20ID','21CnZzEU','3703soDGli','599615xJizZs','18953CGzdcL','2285934fVPLkP','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','8386353daQFFf','5zdkqDf','27583344GzlMHC','4lJaPoG','5450XEYHNh','4448DZxYBq'];a47_0x17b5=function(){return _0x3d1a2d;};return a47_0x17b5();}import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':'getOne','operation':a47_0x2e05a1(0x1b6),'description':a47_0x2e05a1(0x1b9),'paramsRequired':!![],'paramsHint':a47_0x2e05a1(0x1bf)});
@@ -1 +1 @@
1
- (function(_0x4c085b,_0x52ab63){const _0x4f435f=a48_0x2f85,_0x153a48=_0x4c085b();while(!![]){try{const _0x49b038=-parseInt(_0x4f435f(0xcd))/0x1*(parseInt(_0x4f435f(0xc5))/0x2)+parseInt(_0x4f435f(0xcc))/0x3*(-parseInt(_0x4f435f(0xc9))/0x4)+parseInt(_0x4f435f(0xc2))/0x5*(parseInt(_0x4f435f(0xc7))/0x6)+-parseInt(_0x4f435f(0xca))/0x7+-parseInt(_0x4f435f(0xc4))/0x8*(parseInt(_0x4f435f(0xc6))/0x9)+-parseInt(_0x4f435f(0xcb))/0xa*(-parseInt(_0x4f435f(0xc3))/0xb)+parseInt(_0x4f435f(0xc8))/0xc;if(_0x49b038===_0x52ab63)break;else _0x153a48['push'](_0x153a48['shift']());}catch(_0x42e540){_0x153a48['push'](_0x153a48['shift']());}}}(a48_0x14e5,0xe2d1a));function a48_0x14e5(){const _0xbc84d6=['16721496cvSpNz','570724cFOYbn','3320114PYeXRF','14041730RrBAqr','9HNligQ','63493WQwTjv','145LfcXww','11AKMkMB','7800ixWxiE','8tzfBNI','11061UdeHHV','100554iGmojN'];a48_0x14e5=function(){return _0xbc84d6;};return a48_0x14e5();}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';function a48_0x2f85(_0x5b92c7,_0x319eb1){_0x5b92c7=_0x5b92c7-0xc2;const _0x14e55e=a48_0x14e5();let _0x2f8523=_0x14e55e[_0x5b92c7];return _0x2f8523;}export const dataDefinitions=[dataFilter,dataGetOne];
1
+ (function(_0x241f05,_0x4a79a5){const _0x1b9325=a48_0x1b0b,_0x1f5150=_0x241f05();while(!![]){try{const _0x342c1a=parseInt(_0x1b9325(0xc6))/0x1+parseInt(_0x1b9325(0xc3))/0x2+parseInt(_0x1b9325(0xc9))/0x3+parseInt(_0x1b9325(0xc4))/0x4*(parseInt(_0x1b9325(0xc8))/0x5)+parseInt(_0x1b9325(0xc5))/0x6+-parseInt(_0x1b9325(0xca))/0x7+-parseInt(_0x1b9325(0xc7))/0x8;if(_0x342c1a===_0x4a79a5)break;else _0x1f5150['push'](_0x1f5150['shift']());}catch(_0x266e79){_0x1f5150['push'](_0x1f5150['shift']());}}}(a48_0x4e0f,0x4137d));function a48_0x1b0b(_0x2f8dac,_0x1c8595){_0x2f8dac=_0x2f8dac-0xc3;const _0x4e0f93=a48_0x4e0f();let _0x1b0b47=_0x4e0f93[_0x2f8dac];return _0x1b0b47;}import{dataFilter}from'../../commands/data/filter.js';function a48_0x4e0f(){const _0x131bda=['9393424vGehGP','935tAzuKT','365112XhgMlm','63532ouihNQ','582052xMaAVH','5988WPUQgp','1883562pNOTJO','443791ByYfGP'];a48_0x4e0f=function(){return _0x131bda;};return a48_0x4e0f();}import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
@@ -1 +1 @@
1
- (function(_0x329143,_0x213985){const _0x500ece=a49_0x23c7,_0x33f5ee=_0x329143();while(!![]){try{const _0x1233f5=parseInt(_0x500ece(0x13d))/0x1*(-parseInt(_0x500ece(0x14b))/0x2)+-parseInt(_0x500ece(0x14d))/0x3*(-parseInt(_0x500ece(0x14e))/0x4)+parseInt(_0x500ece(0x149))/0x5+-parseInt(_0x500ece(0x143))/0x6+-parseInt(_0x500ece(0x13f))/0x7*(parseInt(_0x500ece(0x148))/0x8)+parseInt(_0x500ece(0x158))/0x9+-parseInt(_0x500ece(0x14c))/0xa;if(_0x1233f5===_0x213985)break;else _0x33f5ee['push'](_0x33f5ee['shift']());}catch(_0x29d8fe){_0x33f5ee['push'](_0x33f5ee['shift']());}}}(a49_0x1c6e,0xe8dc7));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a49_0x23c7(_0x23814e,_0x3e10ce){_0x23814e=_0x23814e-0x13c;const _0x1c6ee3=a49_0x1c6e();let _0x23c7bf=_0x1c6ee3[_0x23814e];return _0x23c7bf;}import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function a49_0x1c6e(){const _0x476715=['361320SrauvR','5160870HLrgRj','helpExtra','74078iowQMn','1510870APHgjo','15CYIwdj','295388sevHDu','flagMissing','params','operation','string','paramsRequired','compress','now','command','data\x20','16908966kNZXNu','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','7ZYYJji','\x20completed\x20in\x20','252bXtpmp','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','str','1740504lEyYsx','read','description','code','paramsHint'];a49_0x1c6e=function(){return _0x476715;};return a49_0x1c6e();}function assertGetOneId(_0x53cf44){const _0x5d1c2e=a49_0x23c7;if(!_0x53cf44)throw CliErrors[_0x5d1c2e(0x14f)](_0x5d1c2e(0x150),_0x5d1c2e(0x140));const _0xc69d59=_0x53cf44['id'];if(_0xc69d59===undefined||_0xc69d59===null||_0xc69d59==='')throw CliErrors['validation'](_0x5d1c2e(0x141),_0x5d1c2e(0x159));}function parseCommandParams(_0x1322ca){return parseJsonParams(_0x1322ca)??{};}export function buildDataCommand(_0x1c4964){const _0x372b40=a49_0x23c7,_0x5c1b6f=_0x372b40(0x13c);return{'service':'data','command':_0x1c4964['command'],'description':_0x1c4964[_0x372b40(0x145)],'risk':_0x372b40(0x144),'defaultOutputFormat':_0x372b40(0x154),'helpExtra':_0x1c4964[_0x372b40(0x14a)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':_0x372b40(0x152),'description':_0x5c1b6f},{'name':_0x372b40(0x150),'type':_0x372b40(0x152),'description':_0x1c4964[_0x372b40(0x147)]}],async 'validate'(_0xbf38c2){const _0x5ed1ff=_0x372b40,_0x31df1d=_0xbf38c2['str'](_0x5ed1ff(0x150));if(_0x1c4964[_0x5ed1ff(0x153)]&&!_0x31df1d)throw CliErrors[_0x5ed1ff(0x14f)](_0x5ed1ff(0x150),_0x1c4964[_0x5ed1ff(0x147)]);const _0x3b0d96=parseJsonParams(_0x31df1d);_0x1c4964['operation']==='getOne'&&assertGetOneId(_0x3b0d96);},async 'execute'(_0x1a68cb){const _0x1a71f2=_0x372b40,_0x156415=parseCommandParams(_0x1a68cb[_0x1a71f2(0x142)](_0x1a71f2(0x150))),_0x3b7b85=Date[_0x1a71f2(0x155)](),_0x50b3a3=await executeDatasetDataOperation(_0x1a68cb['appCode'],_0x1a68cb[_0x1a71f2(0x142)](_0x1a71f2(0x146)),_0x1c4964[_0x1a71f2(0x151)],_0x156415),_0x5318f4=Date['now']()-_0x3b7b85;return{'ok':!![],'data':{'result':_0x50b3a3,'elapsed':_0x5318f4},'message':_0x1a71f2(0x157)+_0x1c4964[_0x1a71f2(0x156)]+_0x1a71f2(0x13e)+_0x5318f4+'ms'};}};}
1
+ (function(_0x471d05,_0x2d4084){const _0x4c7af4=a49_0x4a30,_0x1269f5=_0x471d05();while(!![]){try{const _0x4e76d5=parseInt(_0x4c7af4(0x75))/0x1*(-parseInt(_0x4c7af4(0x7c))/0x2)+-parseInt(_0x4c7af4(0x87))/0x3+parseInt(_0x4c7af4(0x7b))/0x4*(-parseInt(_0x4c7af4(0x89))/0x5)+-parseInt(_0x4c7af4(0x79))/0x6+parseInt(_0x4c7af4(0x7e))/0x7*(parseInt(_0x4c7af4(0x7d))/0x8)+-parseInt(_0x4c7af4(0x74))/0x9*(parseInt(_0x4c7af4(0x84))/0xa)+-parseInt(_0x4c7af4(0x70))/0xb*(-parseInt(_0x4c7af4(0x8a))/0xc);if(_0x4e76d5===_0x2d4084)break;else _0x1269f5['push'](_0x1269f5['shift']());}catch(_0x3412c7){_0x1269f5['push'](_0x1269f5['shift']());}}}(a49_0x6bda,0xe0934));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x9d37a){const _0x19ea59=a49_0x4a30;if(!_0x9d37a)throw CliErrors[_0x19ea59(0x73)](_0x19ea59(0x7f),_0x19ea59(0x8e));const _0x58d241=_0x9d37a['id'];if(_0x58d241===undefined||_0x58d241===null||_0x58d241==='')throw CliErrors[_0x19ea59(0x7a)](_0x19ea59(0x76),_0x19ea59(0x8d));}function a49_0x6bda(){const _0x236307=['Example:\x20--params\x20\x27{\x22id\x22:123}\x27','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','compress','19800187fXMjPz','data\x20','operation','flagMissing','252IoddNP','632238uagOfQ','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','appCode','paramsHint','1231872HDADGa','validation','7356kQeejQ','4jZrwAa','172808PAOkLy','91hxboaV','params','helpExtra','code','description','command','537580SeAxWS','paramsRequired','now','872655BMcTRS','string','4065iwjiXI','36oBsAma','getOne','str'];a49_0x6bda=function(){return _0x236307;};return a49_0x6bda();}function a49_0x4a30(_0xca05f2,_0x284949){_0xca05f2=_0xca05f2-0x70;const _0x6bda0a=a49_0x6bda();let _0x4a3037=_0x6bda0a[_0xca05f2];return _0x4a3037;}function parseCommandParams(_0x1b5906){return parseJsonParams(_0x1b5906)??{};}export function buildDataCommand(_0x591e69){const _0x5c92d0=a49_0x4a30,_0x128d9f='Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically';return{'service':'data','command':_0x591e69[_0x5c92d0(0x83)],'description':_0x591e69[_0x5c92d0(0x82)],'risk':'read','defaultOutputFormat':_0x5c92d0(0x8f),'helpExtra':_0x591e69[_0x5c92d0(0x80)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':_0x5c92d0(0x88),'description':_0x128d9f},{'name':_0x5c92d0(0x7f),'type':_0x5c92d0(0x88),'description':_0x591e69['paramsHint']}],async 'validate'(_0x27f6b4){const _0x18f816=_0x5c92d0,_0x2c01d5=_0x27f6b4[_0x18f816(0x8c)](_0x18f816(0x7f));if(_0x591e69[_0x18f816(0x85)]&&!_0x2c01d5)throw CliErrors['flagMissing'](_0x18f816(0x7f),_0x591e69[_0x18f816(0x78)]);const _0x2d436c=parseJsonParams(_0x2c01d5);_0x591e69[_0x18f816(0x72)]===_0x18f816(0x8b)&&assertGetOneId(_0x2d436c);},async 'execute'(_0xfcb3f8){const _0x4c1307=_0x5c92d0,_0x27866a=parseCommandParams(_0xfcb3f8[_0x4c1307(0x8c)](_0x4c1307(0x7f))),_0x17150e=Date[_0x4c1307(0x86)](),_0x1cc31a=await executeDatasetDataOperation(_0xfcb3f8[_0x4c1307(0x77)],_0xfcb3f8[_0x4c1307(0x8c)](_0x4c1307(0x81)),_0x591e69['operation'],_0x27866a),_0x368867=Date['now']()-_0x17150e;return{'ok':!![],'data':{'result':_0x1cc31a,'elapsed':_0x368867},'message':_0x4c1307(0x71)+_0x591e69[_0x4c1307(0x83)]+'\x20completed\x20in\x20'+_0x368867+'ms'};}};}
@@ -0,0 +1 @@
1
+ const a50_0xf28a99=a50_0x19fe;(function(_0x2f2804,_0x5f36d4){const _0x553716=a50_0x19fe,_0x51b0ba=_0x2f2804();while(!![]){try{const _0x5f225c=parseInt(_0x553716(0x1a8))/0x1*(-parseInt(_0x553716(0x1b7))/0x2)+-parseInt(_0x553716(0x1aa))/0x3+-parseInt(_0x553716(0x196))/0x4+-parseInt(_0x553716(0x19f))/0x5*(-parseInt(_0x553716(0x1b8))/0x6)+-parseInt(_0x553716(0x1af))/0x7+parseInt(_0x553716(0x18f))/0x8+parseInt(_0x553716(0x194))/0x9*(parseInt(_0x553716(0x199))/0xa);if(_0x5f225c===_0x5f36d4)break;else _0x51b0ba['push'](_0x51b0ba['shift']());}catch(_0x95d576){_0x51b0ba['push'](_0x51b0ba['shift']());}}}(a50_0x56ac,0x59ffd));import{deleteDataset,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a50_0x19fe(_0x421b19,_0x2376d3){_0x421b19=_0x421b19-0x18f;const _0x56acc9=a50_0x56ac();let _0x19fe21=_0x56acc9[_0x421b19];return _0x19fe21;}function a50_0x56ac(){const _0x3718b9=['Deleted\x20','Dataset\x20id','confirm','isArray','Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.','2694205DmHlmE','tableName','dbid','validation','relationPages','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','high-risk-write','dbName','\x20failed','47744QWojsv','length','1499502hQcqFs','Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.','\x20dataset(s)','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','POST','1381093PllwFs','dbId','bool','num','number','No\x20undeleted\x20dataset\x20found\x20for\x20','dbtableConfig','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','24edRGpF','6PlbbjD','expected-count','description','code','name','str','1390576PKbQeZ','/smartapi/dataset/delete-dataset','appCode','push','Would\x20delete\x20','39699bDwGAS','\x20dataset(s),\x20but\x20--expected-count\x20is\x20','848012FETsDr','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','source','2580LZPcwg'];a50_0x56ac=function(){return _0x3718b9;};return a50_0x56ac();}import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';const DATASET_ID_FLAG={'name':'id','type':'number','description':a50_0xf28a99(0x19b)},DBID_FLAG={'name':a50_0xf28a99(0x1a1),'type':'number','description':'Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id'},CONFIRM_FLAG={'name':a50_0xf28a99(0x19c),'type':'boolean','description':'Required\x20to\x20execute\x20dataset\x20deletion'},EXPECTED_COUNT_FLAG={'name':a50_0xf28a99(0x1b9),'type':a50_0xf28a99(0x1b3),'description':a50_0xf28a99(0x1b6)};export const datasetDelete={'service':'dataset','command':'delete','description':'Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','risk':a50_0xf28a99(0x1a5),'flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x45f0a2){const _0x55edda=a50_0xf28a99,_0x58d456=_0x45f0a2[_0x55edda(0x1b2)]('id'),_0x3b6e3b=_0x45f0a2[_0x55edda(0x1bd)](_0x55edda(0x1bb)),_0x4bc077=_0x45f0a2[_0x55edda(0x1b2)](_0x55edda(0x1a1)),_0x4298b6=[_0x58d456>0x0,Boolean(_0x3b6e3b),_0x4bc077>0x0]['filter'](Boolean);if(_0x4298b6[_0x55edda(0x1a9)]===0x0)throw CliErrors['validation'](_0x55edda(0x197));if(_0x4298b6[_0x55edda(0x1a9)]>0x1)throw CliErrors[_0x55edda(0x1a2)](_0x55edda(0x19e));},async 'dryRun'(_0x10b6eb){const _0x5b111e=a50_0xf28a99,_0x45957f=await resolveTargets(_0x10b6eb);return{'method':_0x5b111e(0x1ae),'url':_0x5b111e(0x190),'body':{'appCode':_0x10b6eb[_0x5b111e(0x191)],'count':_0x45957f[_0x5b111e(0x1a9)],'datasets':_0x45957f},'description':_0x5b111e(0x193)+_0x45957f[_0x5b111e(0x1a9)]+_0x5b111e(0x1ad)};},async 'execute'(_0x4433e3){const _0x5bb90b=a50_0xf28a99;if(!_0x4433e3[_0x5bb90b(0x1b1)](_0x5bb90b(0x19c)))throw CliErrors[_0x5bb90b(0x1a2)](_0x5bb90b(0x1a4),_0x5bb90b(0x1ab));const _0x13c4a0=await resolveTargets(_0x4433e3),_0x13f0d1=[],_0x482750=[];for(const _0x5c8084 of _0x13c4a0){try{await deleteDataset(_0x4433e3[_0x5bb90b(0x191)],_0x5c8084['id']),_0x13f0d1['push'](_0x5c8084);}catch(_0x3b9fc1){_0x482750[_0x5bb90b(0x192)]({..._0x5c8084,'error':_0x3b9fc1 instanceof Error?_0x3b9fc1['message']:String(_0x3b9fc1)});}}if(_0x482750[_0x5bb90b(0x1a9)]>0x0)return{'ok':![],'data':{'requested':_0x13c4a0[_0x5bb90b(0x1a9)],'deletedCount':_0x13f0d1[_0x5bb90b(0x1a9)],'failedCount':_0x482750[_0x5bb90b(0x1a9)],'deleted':_0x13f0d1,'failed':_0x482750},'message':_0x5bb90b(0x19a)+_0x13f0d1[_0x5bb90b(0x1a9)]+'/'+_0x13c4a0['length']+'\x20dataset(s);\x20'+_0x482750[_0x5bb90b(0x1a9)]+_0x5bb90b(0x1a7)};return{'ok':!![],'data':{'requested':_0x13c4a0[_0x5bb90b(0x1a9)],'deletedCount':_0x13f0d1['length'],'deleted':_0x13f0d1},'message':'Deleted\x20'+_0x13f0d1[_0x5bb90b(0x1a9)]+_0x5bb90b(0x1ac)};}};async function resolveTargets(_0x11a22b){const _0x40845a=a50_0xf28a99,_0x27c238=_0x11a22b[_0x40845a(0x1b2)]('id'),_0xd2c995=_0x11a22b[_0x40845a(0x1bd)](_0x40845a(0x1bb)),_0x1c3774=_0x11a22b[_0x40845a(0x1b2)](_0x40845a(0x1a1));let _0xeea1a;_0xd2c995?(_0xeea1a=await listDatasets(_0x11a22b['appCode'],{'code':_0xd2c995}),_0xeea1a=_0xeea1a['filter'](_0x11ef3f=>_0x11ef3f['code']===_0xd2c995)):(_0xeea1a=await listDatasets(_0x11a22b[_0x40845a(0x191)]),_0x27c238>0x0&&(_0xeea1a=_0xeea1a['filter'](_0x5b93d8=>_0x5b93d8['id']===_0x27c238)),_0x1c3774>0x0&&(_0xeea1a=_0xeea1a['filter'](_0x298188=>_0x298188[_0x40845a(0x1b5)]?.[_0x40845a(0x1b0)]===_0x1c3774)));const _0x1d7dd3=_0xeea1a['map'](normalizeTarget);if(_0x1d7dd3[_0x40845a(0x1a9)]===0x0){const _0x6ba072=_0xd2c995||(_0x27c238>0x0?'id='+_0x27c238:'dbid='+_0x1c3774);throw CliErrors[_0x40845a(0x1a2)](_0x40845a(0x1b4)+_0x6ba072+'.');}const _0x4ebd58=_0x11a22b[_0x40845a(0x1b2)](_0x40845a(0x1b9));if(_0x4ebd58>0x0&&_0x1d7dd3[_0x40845a(0x1a9)]!==_0x4ebd58)throw CliErrors[_0x40845a(0x1a2)]('Matched\x20'+_0x1d7dd3['length']+_0x40845a(0x195)+_0x4ebd58+'.');return _0x1d7dd3;}function normalizeTarget(_0x2e92cf){const _0x35d88a=a50_0xf28a99,_0x22cecc=_0x2e92cf[_0x35d88a(0x1b5)]??{};return{'id':_0x2e92cf['id'],'code':_0x2e92cf['code'],'name':_0x2e92cf[_0x35d88a(0x1bc)],'description':_0x2e92cf[_0x35d88a(0x1ba)],'source':_0x2e92cf[_0x35d88a(0x198)],'dbId':_0x22cecc[_0x35d88a(0x1b0)],'dbName':_0x22cecc[_0x35d88a(0x1a6)],'tableName':_0x22cecc[_0x35d88a(0x1a0)],'relatedPageCount':Array[_0x35d88a(0x19d)](_0x2e92cf[_0x35d88a(0x1a3)])?_0x2e92cf[_0x35d88a(0x1a3)][_0x35d88a(0x1a9)]:undefined};}
@@ -1 +1 @@
1
- const a50_0xf3fb81=a50_0x5208;function a50_0x5940(){const _0x36cd04=['extend','push','1374875yKmSjr','toDatasetCode','options','type','dataset','4FSuZIz','string','parse','requestFields','responseFields','map','allFields','object','2687109EFHPXZ','toDatasetName','trim','301HCbAlR','responseBody','modifierIdField','datasetKey','creatorNameField','deleted','path','afterScriptId','detail','requestBody','dbId','formatRules','creatorIdField','description','length','filter','modelCode','validateRules','dbtableConfig','1589580quDFPJ','title','displayName','sourceType','name','alias','tableName','isArray','143964DtKwTN','labelField','relatedPageInfoList','columnCodeListWithDeleted','host','2SzchhQ','27fUFViZ','operations','entries','indexes','str','toTableName','method','properties','toFieldLabel','modifierNameField','fields','beforeScriptId','doType','dbName','relations','dataType','pkField','code','1303496oTElGS','10554576SJLxmI','updateTimeField','allFieldNames','modelId','26889357KNsJoq','split','required'];a50_0x5940=function(){return _0x36cd04;};return a50_0x5940();}(function(_0x317d19,_0x2174ab){const _0x3cff8f=a50_0x5208,_0x1a6ccc=_0x317d19();while(!![]){try{const _0x4c133c=-parseInt(_0x3cff8f(0x1be))/0x1*(parseInt(_0x3cff8f(0x1d1))/0x2)+parseInt(_0x3cff8f(0x1e8))/0x3*(-parseInt(_0x3cff8f(0x1e0))/0x4)+-parseInt(_0x3cff8f(0x1db))/0x5+-parseInt(_0x3cff8f(0x1b9))/0x6*(parseInt(_0x3cff8f(0x1eb))/0x7)+parseInt(_0x3cff8f(0x1d2))/0x8+parseInt(_0x3cff8f(0x1bf))/0x9*(parseInt(_0x3cff8f(0x1b1))/0xa)+parseInt(_0x3cff8f(0x1d6))/0xb;if(_0x4c133c===_0x2174ab)break;else _0x1a6ccc['push'](_0x1a6ccc['shift']());}catch(_0x1fc528){_0x1a6ccc['push'](_0x1a6ccc['shift']());}}}(a50_0x5940,0xb362f));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x2d62d9){const _0x5fad1a=a50_0x5208;if(_0x2d62d9['deleted'])return null;const _0x4303de=Boolean(_0x2d62d9[_0x5fad1a(0x1b3)]!==undefined||_0x2d62d9[_0x5fad1a(0x1cb)]!==undefined);let _0x56fbb4={};if(!_0x4303de&&typeof _0x2d62d9[_0x5fad1a(0x1d9)]===_0x5fad1a(0x1e1))try{_0x56fbb4=JSON['parse'](_0x2d62d9[_0x5fad1a(0x1d9)]);}catch{}const _0x662aab=_0x4303de?_0x2d62d9['name']:_0x2d62d9[_0x5fad1a(0x1d0)],_0x131c96=_0x4303de?_0x2d62d9[_0x5fad1a(0x1b3)]:_0x2d62d9[_0x5fad1a(0x1b5)],_0x1ac3d1=_0x4303de?_0x2d62d9[_0x5fad1a(0x1cb)]:_0x2d62d9[_0x5fad1a(0x1de)]||_0x2d62d9[_0x5fad1a(0x1ce)],_0x28ae09=_0x4303de?_0x2d62d9[_0x5fad1a(0x1cf)]===!![]:_0x56fbb4[_0x5fad1a(0x1cf)]===!![],_0x113198=_0x4303de?_0x2d62d9[_0x5fad1a(0x1d8)]===!![]:_0x56fbb4[_0x5fad1a(0x1d8)]===!![],_0x1f8722=_0x4303de?_0x2d62d9[_0x5fad1a(0x1dd)]??null:_0x56fbb4[_0x5fad1a(0x1dd)]??null,_0xeb7a63={'name':_0x662aab,'displayName':_0x131c96||_0x662aab,'type':_0x1ac3d1,'dbType':_0x2d62d9['dbType'],'pk':_0x28ae09,'required':_0x113198,'description':_0x2d62d9[_0x5fad1a(0x1ab)]||undefined};return Array[_0x5fad1a(0x1b8)](_0x1f8722)&&_0x1f8722[_0x5fad1a(0x1ac)]>0x0&&(_0xeb7a63[_0x5fad1a(0x1dd)]=_0x1f8722),_0xeb7a63;}function parseJsonMaybe(_0x548238){const _0x3df905=a50_0x5208;if(typeof _0x548238!==_0x3df905(0x1e1))return _0x548238;try{return JSON[_0x3df905(0x1e2)](_0x548238);}catch{return _0x548238;}}function normalizeOperationEntry(_0x20df94,_0x59991f){const _0x45bc7b=a50_0x5208;if(!_0x59991f||typeof _0x59991f!==_0x45bc7b(0x1e7))return null;if(!_0x59991f[_0x45bc7b(0x1c5)]||!_0x59991f['path'])return null;const _0x404448={'name':_0x20df94,'method':_0x59991f[_0x45bc7b(0x1c5)],'path':_0x59991f[_0x45bc7b(0x1f1)]};if(_0x59991f[_0x45bc7b(0x1bd)])_0x404448[_0x45bc7b(0x1bd)]=_0x59991f['host'];if(_0x59991f[_0x45bc7b(0x1a7)]!=null){const _0x1e9b92=parseJsonMaybe(_0x59991f[_0x45bc7b(0x1a7)]);_0x404448[_0x45bc7b(0x1a7)]=_0x1e9b92;}if(_0x59991f[_0x45bc7b(0x1ec)]!=null){const _0x1f13b2=parseJsonMaybe(_0x59991f[_0x45bc7b(0x1ec)]);_0x404448[_0x45bc7b(0x1ec)]=_0x1f13b2;}if(_0x59991f[_0x45bc7b(0x1ca)]!=null)_0x404448['beforeScriptId']=_0x59991f[_0x45bc7b(0x1ca)];if(_0x59991f[_0x45bc7b(0x1f2)]!=null)_0x404448[_0x45bc7b(0x1f2)]=_0x59991f[_0x45bc7b(0x1f2)];if(Array['isArray'](_0x59991f[_0x45bc7b(0x1e3)]))_0x404448[_0x45bc7b(0x1e3)]=_0x59991f[_0x45bc7b(0x1e3)];if(Array[_0x45bc7b(0x1b8)](_0x59991f[_0x45bc7b(0x1e4)]))_0x404448[_0x45bc7b(0x1e4)]=_0x59991f['responseFields'];return _0x404448;}function summarizeDbtable(_0x28ee48){const _0x5b930f=a50_0x5208,_0x4aeb57={},_0x2aeaa6=[_0x5b930f(0x1a8),_0x5b930f(0x1cc),'tableName','datasetKey',_0x5b930f(0x1cf),_0x5b930f(0x1e6),'logicField','createTimeField',_0x5b930f(0x1d3),_0x5b930f(0x1aa),_0x5b930f(0x1ef),_0x5b930f(0x1ed),_0x5b930f(0x1c8),_0x5b930f(0x1ba),'dblinkInfoDTO'];for(const _0x2f8a96 of _0x2aeaa6){if(_0x28ee48[_0x2f8a96]!==undefined)_0x4aeb57[_0x2f8a96]=_0x28ee48[_0x2f8a96];}return typeof _0x4aeb57['allFields']===_0x5b930f(0x1e1)&&_0x4aeb57['allFields'][_0x5b930f(0x1ac)]>0x0&&(_0x4aeb57[_0x5b930f(0x1d4)]=_0x4aeb57['allFields'][_0x5b930f(0x1d7)](',')[_0x5b930f(0x1e5)](_0x14c4e6=>_0x14c4e6[_0x5b930f(0x1ea)]())[_0x5b930f(0x1ad)](Boolean)),_0x4aeb57;}function a50_0x5208(_0xde9bc5,_0x30cf90){_0xde9bc5=_0xde9bc5-0x1a7;const _0x594078=a50_0x5940();let _0x5208d2=_0x594078[_0xde9bc5];return _0x5208d2;}function normalizeRelatedPages(_0x5f034c){const _0x1cfbab=a50_0x5208;if(!Array['isArray'](_0x5f034c))return[];return _0x5f034c['filter'](_0x5dac1e=>_0x5dac1e&&typeof _0x5dac1e===_0x1cfbab(0x1e7))[_0x1cfbab(0x1e5)](_0x509a08=>({'id':_0x509a08['id'],'type':_0x509a08['type'],'code':_0x509a08['code'],'title':_0x509a08[_0x1cfbab(0x1b2)],'deleted':_0x509a08[_0x1cfbab(0x1f0)]===!![]}));}export const datasetDetail={'service':a50_0xf3fb81(0x1df),'command':a50_0xf3fb81(0x1f3),'description':'Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','risk':'read','flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a50_0xf3fb81(0x1b6),'type':'string','description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'}],async 'execute'(_0xda1e01){const _0x4dfa2e=a50_0xf3fb81,_0x1ab811=await getDatasetDetail(_0xda1e01[_0x4dfa2e(0x1c3)](_0x4dfa2e(0x1d0))),_0x30d803=Array[_0x4dfa2e(0x1b8)](_0x1ab811[_0x4dfa2e(0x1c9)])?_0x1ab811['fields']:Array[_0x4dfa2e(0x1b8)](_0x1ab811[_0x4dfa2e(0x1c6)])?_0x1ab811['properties']:[],_0xcd4b6c=_0x30d803['map'](_0x323251=>normalizeField(_0x323251))[_0x4dfa2e(0x1ad)](_0x5853f5=>_0x5853f5!==null),_0x21c5ae=_0x1ab811[_0x4dfa2e(0x1c0)]??{},_0x34add9=[];for(const [_0x155534,_0x181300]of Object[_0x4dfa2e(0x1c1)](_0x21c5ae)){const _0x2a087e=normalizeOperationEntry(_0x155534,_0x181300);if(_0x2a087e)_0x34add9[_0x4dfa2e(0x1da)](_0x2a087e);}const _0x13a3e8=_0x1ab811[_0x4dfa2e(0x1b0)]??{},_0x4c0381=_0x1ab811['dataset']??{},_0x5f3be9=_0x13a3e8[_0x4dfa2e(0x1a8)]!=null?{'id':_0x13a3e8['dbId'],'name':_0x13a3e8[_0x4dfa2e(0x1cc)]??null}:undefined;let _0x4f3610;return typeof _0x1ab811['extend']==='string'&&(_0x4f3610=parseJsonMaybe(_0x1ab811['extend'])),{'ok':!![],'data':{'id':_0x1ab811[_0x4dfa2e(0x1d5)]??_0x1ab811['id'],'name':_0x1ab811[_0x4dfa2e(0x1b5)],'code':_0x1ab811[_0x4dfa2e(0x1ae)]||_0x1ab811[_0x4dfa2e(0x1d0)],'doVersion':_0x1ab811['doVersion'],'description':_0x1ab811[_0x4dfa2e(0x1ab)]||_0x4c0381['tableComment']||undefined,'source':_0x1ab811['source']||_0x4c0381[_0x4dfa2e(0x1b4)],'table':_0x13a3e8[_0x4dfa2e(0x1b7)]||_0x4c0381[_0x4dfa2e(0x1b7)],'datasetKey':_0x13a3e8[_0x4dfa2e(0x1ee)],'pk':_0x13a3e8[_0x4dfa2e(0x1cf)],'db':_0x5f3be9,'dbtable':summarizeDbtable(_0x13a3e8),'fields':_0xcd4b6c,'operations':_0x34add9,'indexes':Array[_0x4dfa2e(0x1b8)](_0x4c0381[_0x4dfa2e(0x1c2)])?_0x4c0381['indexes']:[],'relations':Array[_0x4dfa2e(0x1b8)](_0x1ab811[_0x4dfa2e(0x1cd)])?_0x1ab811[_0x4dfa2e(0x1cd)][_0x4dfa2e(0x1e5)](_0xf7a9cf=>({'fromField':_0xf7a9cf['fromField'],'toDataset':_0xf7a9cf[_0x4dfa2e(0x1e9)],'toCode':_0xf7a9cf[_0x4dfa2e(0x1dc)],'toTable':_0xf7a9cf[_0x4dfa2e(0x1c4)],'toField':_0xf7a9cf['toField'],'labelField':_0xf7a9cf[_0x4dfa2e(0x1c7)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x1ab811[_0x4dfa2e(0x1bb)]),...Array[_0x4dfa2e(0x1b8)](_0x1ab811[_0x4dfa2e(0x1bc)])?{'columnCodeListWithDeleted':_0x1ab811[_0x4dfa2e(0x1bc)]}:{},'formatRules':Array[_0x4dfa2e(0x1b8)](_0x1ab811[_0x4dfa2e(0x1a9)])?_0x1ab811[_0x4dfa2e(0x1a9)]:[],'validateRules':Array[_0x4dfa2e(0x1b8)](_0x1ab811['validateRules'])?_0x1ab811[_0x4dfa2e(0x1af)]:[],..._0x4f3610!==undefined?{'extend':_0x4f3610}:{},'stats':{'fieldCount':_0xcd4b6c[_0x4dfa2e(0x1ac)],'operationCount':_0x34add9[_0x4dfa2e(0x1ac)]}}};}};
1
+ function a51_0x497c(_0x19e49e,_0x494cee){_0x19e49e=_0x19e49e-0x134;const _0x35d528=a51_0x35d5();let _0x497c27=_0x35d528[_0x19e49e];return _0x497c27;}const a51_0xb52f46=a51_0x497c;(function(_0x525e8b,_0x152627){const _0x392199=a51_0x497c,_0x1ef306=_0x525e8b();while(!![]){try{const _0x2e21a2=parseInt(_0x392199(0x145))/0x1+-parseInt(_0x392199(0x169))/0x2+parseInt(_0x392199(0x149))/0x3+-parseInt(_0x392199(0x14a))/0x4+parseInt(_0x392199(0x157))/0x5+parseInt(_0x392199(0x17c))/0x6+-parseInt(_0x392199(0x15c))/0x7;if(_0x2e21a2===_0x152627)break;else _0x1ef306['push'](_0x1ef306['shift']());}catch(_0x27d3ac){_0x1ef306['push'](_0x1ef306['shift']());}}}(a51_0x35d5,0x8427c));import{getDatasetDetail}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x233ab9){const _0x48a829=a51_0x497c;if(_0x233ab9[_0x48a829(0x154)])return null;const _0x2895f6=Boolean(_0x233ab9['displayName']!==undefined||_0x233ab9['doType']!==undefined);let _0x53d32f={};if(!_0x2895f6&&typeof _0x233ab9[_0x48a829(0x148)]===_0x48a829(0x141))try{_0x53d32f=JSON[_0x48a829(0x144)](_0x233ab9[_0x48a829(0x148)]);}catch{}const _0x499e20=_0x2895f6?_0x233ab9[_0x48a829(0x170)]:_0x233ab9[_0x48a829(0x138)],_0x51c39f=_0x2895f6?_0x233ab9['displayName']:_0x233ab9[_0x48a829(0x170)],_0x34d8e0=_0x2895f6?_0x233ab9[_0x48a829(0x179)]:_0x233ab9[_0x48a829(0x147)]||_0x233ab9['dataType'],_0x371526=_0x2895f6?_0x233ab9['pkField']===!![]:_0x53d32f[_0x48a829(0x163)]===!![],_0x56901b=_0x2895f6?_0x233ab9[_0x48a829(0x167)]===!![]:_0x53d32f[_0x48a829(0x167)]===!![],_0x3808dd=_0x2895f6?_0x233ab9[_0x48a829(0x16e)]??null:_0x53d32f['options']??null,_0x5e49dc={'name':_0x499e20,'displayName':_0x51c39f||_0x499e20,'type':_0x34d8e0,'dbType':_0x233ab9[_0x48a829(0x15d)],'pk':_0x371526,'required':_0x56901b,'description':_0x233ab9['description']||undefined};return Array['isArray'](_0x3808dd)&&_0x3808dd[_0x48a829(0x137)]>0x0&&(_0x5e49dc[_0x48a829(0x16e)]=_0x3808dd),_0x5e49dc;}function parseJsonMaybe(_0x3e1882){const _0x546909=a51_0x497c;if(typeof _0x3e1882!==_0x546909(0x141))return _0x3e1882;try{return JSON[_0x546909(0x144)](_0x3e1882);}catch{return _0x3e1882;}}function normalizeOperationEntry(_0x53772d,_0xd3c24f){const _0x40ace4=a51_0x497c;if(!_0xd3c24f||typeof _0xd3c24f!=='object')return null;if(!_0xd3c24f['method']||!_0xd3c24f[_0x40ace4(0x165)])return null;const _0x4b0591={'name':_0x53772d,'method':_0xd3c24f[_0x40ace4(0x13e)],'path':_0xd3c24f['path']};if(_0xd3c24f[_0x40ace4(0x14b)])_0x4b0591[_0x40ace4(0x14b)]=_0xd3c24f[_0x40ace4(0x14b)];if(_0xd3c24f[_0x40ace4(0x13d)]!=null){const _0x1ee21a=parseJsonMaybe(_0xd3c24f[_0x40ace4(0x13d)]);_0x4b0591['requestBody']=_0x1ee21a;}if(_0xd3c24f['responseBody']!=null){const _0x1def11=parseJsonMaybe(_0xd3c24f[_0x40ace4(0x166)]);_0x4b0591[_0x40ace4(0x166)]=_0x1def11;}if(_0xd3c24f['beforeScriptId']!=null)_0x4b0591['beforeScriptId']=_0xd3c24f[_0x40ace4(0x14f)];if(_0xd3c24f[_0x40ace4(0x164)]!=null)_0x4b0591['afterScriptId']=_0xd3c24f[_0x40ace4(0x164)];if(Array[_0x40ace4(0x15f)](_0xd3c24f[_0x40ace4(0x146)]))_0x4b0591['requestFields']=_0xd3c24f[_0x40ace4(0x146)];if(Array[_0x40ace4(0x15f)](_0xd3c24f['responseFields']))_0x4b0591[_0x40ace4(0x15e)]=_0xd3c24f[_0x40ace4(0x15e)];return _0x4b0591;}function a51_0x35d5(){const _0x3f71e4=['responseFields','isArray','dbtableConfig','operations','read','pkField','afterScriptId','path','responseBody','required','tableComment','1303224PSeokh','datasetKey','str','dbId','allFields','options','columnCodeListWithDeleted','name','description','allFieldNames','map','properties','toFieldLabel','dbName','modelId','modelCode','doType','trim','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','5097246NNaCKE','split','formatRules','fields','length','code','alias','filter','title','dataset','requestBody','method','toTableName','relations','string','object','tableName','parse','632810tOWdPM','requestFields','type','extend','3196545qwdQOi','546948kdsutd','host','modifierIdField','push','sourceType','beforeScriptId','entries','updateTimeField','fromField','modifierNameField','deleted','indexes','createTimeField','2017215tymOkR','creatorIdField','logicField','validateRules','creatorNameField','11351564pMNpwy','dbType'];a51_0x35d5=function(){return _0x3f71e4;};return a51_0x35d5();}function summarizeDbtable(_0x27bedd){const _0x450463=a51_0x497c,_0x187838={},_0x23c066=['dbId',_0x450463(0x176),'tableName',_0x450463(0x16a),_0x450463(0x163),_0x450463(0x16d),_0x450463(0x159),_0x450463(0x156),_0x450463(0x151),_0x450463(0x158),_0x450463(0x15b),_0x450463(0x14c),_0x450463(0x153),'labelField','dblinkInfoDTO'];for(const _0x4c1b3e of _0x23c066){if(_0x27bedd[_0x4c1b3e]!==undefined)_0x187838[_0x4c1b3e]=_0x27bedd[_0x4c1b3e];}return typeof _0x187838[_0x450463(0x16d)]===_0x450463(0x141)&&_0x187838[_0x450463(0x16d)][_0x450463(0x137)]>0x0&&(_0x187838[_0x450463(0x172)]=_0x187838[_0x450463(0x16d)][_0x450463(0x134)](',')[_0x450463(0x173)](_0x51a7bc=>_0x51a7bc[_0x450463(0x17a)]())[_0x450463(0x13a)](Boolean)),_0x187838;}function normalizeRelatedPages(_0x3e7885){const _0x183451=a51_0x497c;if(!Array[_0x183451(0x15f)](_0x3e7885))return[];return _0x3e7885[_0x183451(0x13a)](_0x91afd1=>_0x91afd1&&typeof _0x91afd1===_0x183451(0x142))[_0x183451(0x173)](_0x5940ee=>({'id':_0x5940ee['id'],'type':_0x5940ee[_0x183451(0x147)],'code':_0x5940ee[_0x183451(0x138)],'title':_0x5940ee[_0x183451(0x13b)],'deleted':_0x5940ee[_0x183451(0x154)]===!![]}));}export const datasetDetail={'service':'dataset','command':'detail','description':a51_0xb52f46(0x17b),'risk':a51_0xb52f46(0x162),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':a51_0xb52f46(0x139),'type':a51_0xb52f46(0x141),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically'}],async 'execute'(_0x41f67d){const _0x1f454d=a51_0xb52f46,_0x410b0a=await getDatasetDetail(_0x41f67d[_0x1f454d(0x16b)](_0x1f454d(0x138))),_0x208793=Array[_0x1f454d(0x15f)](_0x410b0a['fields'])?_0x410b0a[_0x1f454d(0x136)]:Array[_0x1f454d(0x15f)](_0x410b0a[_0x1f454d(0x174)])?_0x410b0a[_0x1f454d(0x174)]:[],_0xdef17d=_0x208793['map'](_0x5c71eb=>normalizeField(_0x5c71eb))['filter'](_0x4cad4d=>_0x4cad4d!==null),_0x1c31b8=_0x410b0a[_0x1f454d(0x161)]??{},_0x2857c4=[];for(const [_0xa9791c,_0x284d9a]of Object[_0x1f454d(0x150)](_0x1c31b8)){const _0x2defd9=normalizeOperationEntry(_0xa9791c,_0x284d9a);if(_0x2defd9)_0x2857c4[_0x1f454d(0x14d)](_0x2defd9);}const _0x466c01=_0x410b0a[_0x1f454d(0x160)]??{},_0x4a561a=_0x410b0a[_0x1f454d(0x13c)]??{},_0x2506df=_0x466c01[_0x1f454d(0x16c)]!=null?{'id':_0x466c01[_0x1f454d(0x16c)],'name':_0x466c01['dbName']??null}:undefined;let _0x3b415d;return typeof _0x410b0a[_0x1f454d(0x148)]==='string'&&(_0x3b415d=parseJsonMaybe(_0x410b0a[_0x1f454d(0x148)])),{'ok':!![],'data':{'id':_0x410b0a[_0x1f454d(0x177)]??_0x410b0a['id'],'name':_0x410b0a[_0x1f454d(0x170)],'code':_0x410b0a[_0x1f454d(0x178)]||_0x410b0a['code'],'doVersion':_0x410b0a['doVersion'],'description':_0x410b0a[_0x1f454d(0x171)]||_0x4a561a[_0x1f454d(0x168)]||undefined,'source':_0x410b0a['source']||_0x4a561a[_0x1f454d(0x14e)],'table':_0x466c01[_0x1f454d(0x143)]||_0x4a561a[_0x1f454d(0x143)],'datasetKey':_0x466c01[_0x1f454d(0x16a)],'pk':_0x466c01[_0x1f454d(0x163)],'db':_0x2506df,'dbtable':summarizeDbtable(_0x466c01),'fields':_0xdef17d,'operations':_0x2857c4,'indexes':Array[_0x1f454d(0x15f)](_0x4a561a[_0x1f454d(0x155)])?_0x4a561a[_0x1f454d(0x155)]:[],'relations':Array[_0x1f454d(0x15f)](_0x410b0a[_0x1f454d(0x140)])?_0x410b0a[_0x1f454d(0x140)]['map'](_0x253eb3=>({'fromField':_0x253eb3[_0x1f454d(0x152)],'toDataset':_0x253eb3['toDatasetName'],'toCode':_0x253eb3['toDatasetCode'],'toTable':_0x253eb3[_0x1f454d(0x13f)],'toField':_0x253eb3['toField'],'labelField':_0x253eb3[_0x1f454d(0x175)]||undefined})):[],'relatedPages':normalizeRelatedPages(_0x410b0a['relatedPageInfoList']),...Array[_0x1f454d(0x15f)](_0x410b0a[_0x1f454d(0x16f)])?{'columnCodeListWithDeleted':_0x410b0a[_0x1f454d(0x16f)]}:{},'formatRules':Array[_0x1f454d(0x15f)](_0x410b0a[_0x1f454d(0x135)])?_0x410b0a[_0x1f454d(0x135)]:[],'validateRules':Array[_0x1f454d(0x15f)](_0x410b0a['validateRules'])?_0x410b0a[_0x1f454d(0x15a)]:[],..._0x3b415d!==undefined?{'extend':_0x3b415d}:{},'stats':{'fieldCount':_0xdef17d[_0x1f454d(0x137)],'operationCount':_0x2857c4['length']}}};}};
@@ -1 +1 @@
1
- (function(_0x2d40c2,_0x310a35){const _0x3119ae=a51_0x11fe,_0x35aa5c=_0x2d40c2();while(!![]){try{const _0x1b4caa=parseInt(_0x3119ae(0x11c))/0x1*(parseInt(_0x3119ae(0x118))/0x2)+parseInt(_0x3119ae(0x117))/0x3*(parseInt(_0x3119ae(0x116))/0x4)+parseInt(_0x3119ae(0x11a))/0x5*(parseInt(_0x3119ae(0x114))/0x6)+-parseInt(_0x3119ae(0x115))/0x7+-parseInt(_0x3119ae(0x113))/0x8*(-parseInt(_0x3119ae(0x112))/0x9)+parseInt(_0x3119ae(0x119))/0xa+-parseInt(_0x3119ae(0x11b))/0xb;if(_0x1b4caa===_0x310a35)break;else _0x35aa5c['push'](_0x35aa5c['shift']());}catch(_0x24cd3){_0x35aa5c['push'](_0x35aa5c['shift']());}}}(a51_0x2375,0xdfffe));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a51_0x11fe(_0x34cbc8,_0x362d80){_0x34cbc8=_0x34cbc8-0x112;const _0x23751f=a51_0x2375();let _0x11fe31=_0x23751f[_0x34cbc8];return _0x11fe31;}function a51_0x2375(){const _0x548850=['9922590pvPIho','20TjamCc','28312911OaKmsu','1203NQciJD','797346VrTmBS','104WmjgXv','447858TagqXH','5807613jVrVyH','68gDfNbD','125364FMiUOV','1942XVrFNx'];a51_0x2375=function(){return _0x548850;};return a51_0x2375();}import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks];
1
+ (function(_0x3a9575,_0x2d4de5){const _0x34a02a=a52_0x5e41,_0x1d99aa=_0x3a9575();while(!![]){try{const _0x104af7=-parseInt(_0x34a02a(0x1d8))/0x1*(-parseInt(_0x34a02a(0x1dc))/0x2)+-parseInt(_0x34a02a(0x1e0))/0x3*(parseInt(_0x34a02a(0x1de))/0x4)+-parseInt(_0x34a02a(0x1d9))/0x5*(parseInt(_0x34a02a(0x1e3))/0x6)+-parseInt(_0x34a02a(0x1dd))/0x7+parseInt(_0x34a02a(0x1da))/0x8+parseInt(_0x34a02a(0x1db))/0x9*(-parseInt(_0x34a02a(0x1e1))/0xa)+-parseInt(_0x34a02a(0x1df))/0xb*(-parseInt(_0x34a02a(0x1e2))/0xc);if(_0x104af7===_0x2d4de5)break;else _0x1d99aa['push'](_0x1d99aa['shift']());}catch(_0x31f145){_0x1d99aa['push'](_0x1d99aa['shift']());}}}(a52_0x45b9,0x69c28));import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';function a52_0x45b9(){const _0x22adec=['24012QThlRk','64970vIZcUR','653737xGrWfP','412afIpCk','11GGyECb','12633rgsMjp','10XmFBri','3457704qGpWGM','18ycubdo','11mZnbGU','780295XZZRWA','6285472lYRhlh'];a52_0x45b9=function(){return _0x22adec;};return a52_0x45b9();}import{datasetOperations}from'../../commands/dataset/operations.js';function a52_0x5e41(_0xa48fbb,_0x4e1e9d){_0xa48fbb=_0xa48fbb-0x1d8;const _0x45b967=a52_0x45b9();let _0x5e412c=_0x45b967[_0xa48fbb];return _0x5e412c;}import{datasetLinks}from'../../commands/dataset/links.js';import{datasetLinkCreate}from'../../commands/dataset/link-create.js';import{datasetLinkUpdate}from'../../commands/dataset/link-update.js';import{datasetLinkDelete}from'../../commands/dataset/link-delete.js';import{datasetDelete}from'../../commands/dataset/delete.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks,datasetLinkCreate,datasetLinkUpdate,datasetLinkDelete,datasetDelete];
@@ -0,0 +1 @@
1
+ const a53_0x5949d8=a53_0x343c;(function(_0x585146,_0x3ba4f1){const _0x38cc08=a53_0x343c,_0x112668=_0x585146();while(!![]){try{const _0x38d4b2=parseInt(_0x38cc08(0x114))/0x1*(parseInt(_0x38cc08(0x119))/0x2)+-parseInt(_0x38cc08(0x11a))/0x3+-parseInt(_0x38cc08(0x122))/0x4*(parseInt(_0x38cc08(0x12c))/0x5)+parseInt(_0x38cc08(0x113))/0x6*(-parseInt(_0x38cc08(0x111))/0x7)+-parseInt(_0x38cc08(0x112))/0x8+-parseInt(_0x38cc08(0x121))/0x9*(parseInt(_0x38cc08(0x126))/0xa)+parseInt(_0x38cc08(0x127))/0xb*(parseInt(_0x38cc08(0x116))/0xc);if(_0x38d4b2===_0x3ba4f1)break;else _0x112668['push'](_0x112668['shift']());}catch(_0x431115){_0x112668['push'](_0x112668['shift']());}}}(a53_0x3e6e,0x57f12));function a53_0x343c(_0x595616,_0x33176a){_0x595616=_0x595616-0x110;const _0x3e6e51=a53_0x3e6e();let _0x343c3f=_0x3e6e51[_0x595616];return _0x343c3f;}import{createErRelation}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildMutationData,DB_FLAG,FROM_COLUMN_FLAG,FROM_TABLE_FLAG,CARDINALITY_FLAG,findExistingLink,formatRelationSelector,readLinkInput,relationToBackend,resolveRequiredDb,TO_COLUMN_FLAG,TO_LABEL_COLUMN_FLAG,TO_TABLE_FLAG}from'../../commands/dataset/link-shared.js';const BACKEND_PATH=a53_0x5949d8(0x118);function a53_0x3e6e(){const _0x3eaef3=['120tzmZxZ','11JyESLj','Would\x20create\x20dataset\x20link\x20','from','POST','validation','145MYBhHW','appCode','1924867WXvUkB','1951296nGsnBX','6qXiDAX','10613YOmQHq','dataset','15983676WDRQtt','Created\x20dataset\x20link:\x20','/smartapi/question/er-config/erCreate','100KXVdPz','252021qqirIf','str','create','Create\x20one\x20dataset\x20link\x20relation\x20in\x20the\x20ER\x20graph','link-create','dbId','column','370809RKOyAl','55876aeDCgE','Use\x20dataset\x20link-update\x20for\x20metadata\x20changes.\x20Do\x20not\x20automate\x20delete+create\x20as\x20an\x20atomic\x20edit;\x20confirm\x20both\x20dry-runs\x20with\x20the\x20user\x20before\x20changing\x20relation\x20identity.','table','\x20->\x20'];a53_0x3e6e=function(){return _0x3eaef3;};return a53_0x3e6e();}export const datasetLinkCreate={'service':a53_0x5949d8(0x115),'command':a53_0x5949d8(0x11e),'description':a53_0x5949d8(0x11d),'risk':'write','flags':[DB_FLAG,FROM_TABLE_FLAG,FROM_COLUMN_FLAG,TO_TABLE_FLAG,TO_COLUMN_FLAG,TO_LABEL_COLUMN_FLAG,CARDINALITY_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x371f2b){readLinkInput(_0x371f2b,{'includeLabelAndCardinality':!![]});},async 'dryRun'(_0x1a4b63){const _0x2508a8=a53_0x5949d8,_0x22de5e=await resolveRequiredDb(_0x1a4b63[_0x2508a8(0x110)],_0x1a4b63[_0x2508a8(0x11b)]('db')),_0x23f2b4=readLinkInput(_0x1a4b63,{'includeLabelAndCardinality':!![]});return{'method':_0x2508a8(0x12a),'url':BACKEND_PATH,'body':{'appCode':_0x1a4b63[_0x2508a8(0x110)],'dblinkId':_0x22de5e['dbId'],'relation':relationToBackend(_0x23f2b4)},'description':_0x2508a8(0x128)+_0x23f2b4[_0x2508a8(0x129)]['table']+'.'+_0x23f2b4[_0x2508a8(0x129)][_0x2508a8(0x120)]+'\x20->\x20'+_0x23f2b4['to'][_0x2508a8(0x124)]+'.'+_0x23f2b4['to'][_0x2508a8(0x120)]};},async 'execute'(_0x362efd){const _0x114f13=a53_0x5949d8,_0x404c67=await resolveRequiredDb(_0x362efd[_0x114f13(0x110)],_0x362efd['str']('db')),_0x1f39cb=readLinkInput(_0x362efd,{'includeLabelAndCardinality':!![]}),_0x3dfe2f=await findExistingLink(_0x362efd[_0x114f13(0x110)],_0x404c67['dbId'],_0x1f39cb);if(_0x3dfe2f)throw CliErrors[_0x114f13(0x12b)]('relation_conflict:\x20relation\x20already\x20exists:\x20'+formatRelationSelector(_0x1f39cb),_0x114f13(0x123));return await createErRelation({'appCode':_0x362efd[_0x114f13(0x110)],'dblinkId':_0x404c67[_0x114f13(0x11f)],'relation':relationToBackend(_0x1f39cb)}),{'ok':!![],'data':buildMutationData({'operation':_0x114f13(0x11c),'appCode':_0x362efd[_0x114f13(0x110)],'db':_0x404c67,'input':_0x1f39cb,'before':null,'dryRun':![],'backendPath':BACKEND_PATH}),'message':_0x114f13(0x117)+_0x1f39cb[_0x114f13(0x129)][_0x114f13(0x124)]+'.'+_0x1f39cb['from'][_0x114f13(0x120)]+_0x114f13(0x125)+_0x1f39cb['to'][_0x114f13(0x124)]+'.'+_0x1f39cb['to'][_0x114f13(0x120)]};}};
@@ -0,0 +1 @@
1
+ const a54_0x38cd30=a54_0x3c63;(function(_0x1a9442,_0x569ec4){const _0x2e05fd=a54_0x3c63,_0x43d513=_0x1a9442();while(!![]){try{const _0x1ac380=-parseInt(_0x2e05fd(0x1cf))/0x1*(-parseInt(_0x2e05fd(0x1ce))/0x2)+parseInt(_0x2e05fd(0x1d2))/0x3+parseInt(_0x2e05fd(0x1db))/0x4+-parseInt(_0x2e05fd(0x1c7))/0x5*(parseInt(_0x2e05fd(0x1d4))/0x6)+-parseInt(_0x2e05fd(0x1c5))/0x7*(-parseInt(_0x2e05fd(0x1d0))/0x8)+parseInt(_0x2e05fd(0x1da))/0x9+-parseInt(_0x2e05fd(0x1d9))/0xa;if(_0x1ac380===_0x569ec4)break;else _0x43d513['push'](_0x43d513['shift']());}catch(_0x93b662){_0x43d513['push'](_0x43d513['shift']());}}}(a54_0x36b2,0x4cf4d));import{deleteErRelation}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a54_0x3c63(_0x46f9b5,_0x220fb8){_0x46f9b5=_0x46f9b5-0x1c3;const _0x36b2df=a54_0x36b2();let _0x3c635c=_0x36b2df[_0x46f9b5];return _0x3c635c;}import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{buildMutationData,DB_FLAG,FROM_COLUMN_FLAG,FROM_TABLE_FLAG,findExistingLink,readLinkInput,relationToBackend,resolveRequiredDb,TO_COLUMN_FLAG,TO_TABLE_FLAG}from'../../commands/dataset/link-shared.js';const BACKEND_PATH=a54_0x38cd30(0x1d1);function a54_0x36b2(){const _0x559a7b=['\x20->\x20','table','Would\x20delete\x20dataset\x20link\x20','dbId','568120NwZzTM','2tzKVgc','8CVtETP','/smartapi/question/er-config/erDelete','1809534WCJpjA','POST','42UaBPrv','high-risk-write','appCode','Delete\x20one\x20dataset\x20link\x20relation\x20from\x20the\x20ER\x20graph','Deleted\x20dataset\x20link:\x20','16544780JOMWjO','2583495QcIJab','382600YaLpgX','relation_not_found:\x20','link-delete','str','from','3996097rUulQg','dataset','110845ZSBWtk','validation','column'];a54_0x36b2=function(){return _0x559a7b;};return a54_0x36b2();}export const datasetLinkDelete={'service':a54_0x38cd30(0x1c6),'command':a54_0x38cd30(0x1dd),'description':a54_0x38cd30(0x1d7),'risk':a54_0x38cd30(0x1d5),'flags':[DB_FLAG,FROM_TABLE_FLAG,FROM_COLUMN_FLAG,TO_TABLE_FLAG,TO_COLUMN_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x32d859){readLinkInput(_0x32d859);},async 'dryRun'(_0x412edc){const _0x25634c=a54_0x38cd30,_0x1f7be9=await resolveRequiredDb(_0x412edc['appCode'],_0x412edc[_0x25634c(0x1c3)]('db')),_0x316715=readLinkInput(_0x412edc);return{'method':_0x25634c(0x1d3),'url':BACKEND_PATH,'body':{'appCode':_0x412edc[_0x25634c(0x1d6)],'dblinkId':_0x1f7be9[_0x25634c(0x1cd)],'relation':relationToBackend(_0x316715)},'description':_0x25634c(0x1cc)+_0x316715['from']['table']+'.'+_0x316715['from']['column']+_0x25634c(0x1ca)+_0x316715['to'][_0x25634c(0x1cb)]+'.'+_0x316715['to'][_0x25634c(0x1c9)]};},async 'execute'(_0x30dc6f){const _0x4699e4=a54_0x38cd30,_0x4eebd7=await resolveRequiredDb(_0x30dc6f[_0x4699e4(0x1d6)],_0x30dc6f[_0x4699e4(0x1c3)]('db')),_0x5bde9d=readLinkInput(_0x30dc6f),_0x390be6=await findExistingLink(_0x30dc6f[_0x4699e4(0x1d6)],_0x4eebd7[_0x4699e4(0x1cd)],_0x5bde9d);if(!_0x390be6)throw CliErrors[_0x4699e4(0x1c8)](_0x4699e4(0x1dc)+_0x5bde9d[_0x4699e4(0x1c4)][_0x4699e4(0x1cb)]+'.'+_0x5bde9d[_0x4699e4(0x1c4)][_0x4699e4(0x1c9)]+_0x4699e4(0x1ca)+_0x5bde9d['to'][_0x4699e4(0x1cb)]+'.'+_0x5bde9d['to'][_0x4699e4(0x1c9)],'Run\x20dataset\x20links\x20--db\x20first\x20to\x20inspect\x20the\x20current\x20relation\x20graph.');return await deleteErRelation({'appCode':_0x30dc6f[_0x4699e4(0x1d6)],'dblinkId':_0x4eebd7[_0x4699e4(0x1cd)],'relation':relationToBackend(_0x5bde9d)}),{'ok':!![],'data':buildMutationData({'operation':'delete','appCode':_0x30dc6f[_0x4699e4(0x1d6)],'db':_0x4eebd7,'input':_0x5bde9d,'before':_0x390be6,'dryRun':![],'backendPath':BACKEND_PATH}),'message':_0x4699e4(0x1d8)+_0x5bde9d[_0x4699e4(0x1c4)][_0x4699e4(0x1cb)]+'.'+_0x5bde9d['from'][_0x4699e4(0x1c9)]+_0x4699e4(0x1ca)+_0x5bde9d['to'][_0x4699e4(0x1cb)]+'.'+_0x5bde9d['to'][_0x4699e4(0x1c9)]};}};