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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -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
@@ -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
+ const a33_0x131d19=a33_0x4fd0;(function(_0x492a19,_0x5ce12d){const _0x124264=a33_0x4fd0,_0x83feb=_0x492a19();while(!![]){try{const _0x4dc3f3=-parseInt(_0x124264(0x176))/0x1*(parseInt(_0x124264(0x15a))/0x2)+parseInt(_0x124264(0x15e))/0x3*(-parseInt(_0x124264(0x168))/0x4)+parseInt(_0x124264(0x155))/0x5+parseInt(_0x124264(0x16b))/0x6+parseInt(_0x124264(0x167))/0x7+parseInt(_0x124264(0x162))/0x8*(-parseInt(_0x124264(0x173))/0x9)+parseInt(_0x124264(0x15b))/0xa;if(_0x4dc3f3===_0x5ce12d)break;else _0x83feb['push'](_0x83feb['shift']());}catch(_0x5dc834){_0x83feb['push'](_0x83feb['shift']());}}}(a33_0x4908,0xa9801));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';function a33_0x4fd0(_0x4df34d,_0x507e64){_0x4df34d=_0x4df34d-0x155;const _0x49083f=a33_0x4908();let _0x4fd019=_0x49083f[_0x4df34d];return _0x4fd019;}import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';function a33_0x4908(){const _0x587edd=['filePath','35471GPtVHY','push','4492510XgQPRt','status','scriptsRoot','lockKey','bool','26VFZcvW','11548630ipiYFc','All\x20BFF\x20scripts\x20are\x20in\x20sync.','appCode','3736029RECZEH','length','functions','apiDir','7753048FkAXhx','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','\x20unchanged','remote','872354YfOBHW','4KaDQVc','datasetCode','has','7151298cXmsZl','boolean','hash','all','\x20modified,\x20','\x20remote-only','map','bff','9bzoxXu','alias'];a33_0x4908=function(){return _0x587edd;};return a33_0x4908();}import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a33_0x131d19(0x172),'command':a33_0x131d19(0x156),'description':a33_0x131d19(0x164),'risk':'read','flags':[{'name':a33_0x131d19(0x166),'type':a33_0x131d19(0x16c),'description':a33_0x131d19(0x163)}],async 'execute'(_0x16d593){const _0x2708c9=a33_0x131d19,_0x14a47b=loadBffProjectConfig(_0x16d593[_0x2708c9(0x15d)]),_0x48b5f8=await readBffLockFile(_0x14a47b['lockFilePath']),{appLock:_0x1f02c7}=ensureLockScope(_0x48b5f8??createEmptyBffLock(),_0x16d593[_0x2708c9(0x15d)],_0x14a47b[_0x2708c9(0x157)],_0x2708c9(0x156)),_0x5b8b16=await scanLocalBffFunctions(_0x14a47b),_0x1928a4=[],_0x1d92e8=[],_0x2b9b5e=[];for(const _0x3339f7 of _0x5b8b16){const _0x15ef89=await computeFileHash(_0x3339f7[_0x2708c9(0x175)]),_0x15dc1c=_0x1f02c7[_0x2708c9(0x160)][_0x3339f7['lockKey']];if(!_0x15dc1c)_0x1928a4['push'](_0x3339f7[_0x2708c9(0x158)]);else _0x15dc1c[_0x2708c9(0x16d)]!==_0x15ef89?_0x1d92e8[_0x2708c9(0x177)](_0x3339f7[_0x2708c9(0x158)]):_0x2b9b5e[_0x2708c9(0x177)](_0x3339f7[_0x2708c9(0x158)]);}const _0x59d5e2=[];if(_0x16d593[_0x2708c9(0x159)](_0x2708c9(0x166))){const _0x8af2=loadAliasMap(_0x16d593[_0x2708c9(0x161)],undefined,resolveApiFilePath(_0x16d593[_0x2708c9(0x161)],_0x16d593[_0x2708c9(0x15d)])),_0x52beb3=new Map(_0x8af2[_0x2708c9(0x171)](_0x3f7e4d=>[_0x3f7e4d[_0x2708c9(0x169)],_0x3f7e4d[_0x2708c9(0x174)]])),[_0x2ca44a,_0xd27791]=await Promise[_0x2708c9(0x16e)]([listBffScripts(_0x16d593[_0x2708c9(0x15d)]),getBffScriptStatistics(_0x16d593[_0x2708c9(0x15d)])]),_0x64919a=createHookLocationMap(_0xd27791),_0x5ce233=new Set(_0x5b8b16['map'](_0x5a63c2=>_0x5a63c2[_0x2708c9(0x158)]));for(const _0x72fb6f of _0x2ca44a){const _0x213eab=resolveRemoteScriptTarget(_0x14a47b,_0x72fb6f,_0x64919a,_0x1f02c7[_0x2708c9(0x160)],_0x52beb3);_0x213eab&&!_0x5ce233[_0x2708c9(0x16a)](_0x213eab[_0x2708c9(0x158)])&&_0x59d5e2[_0x2708c9(0x177)](_0x213eab['lockKey']);}}const _0x571bc9=_0x1928a4[_0x2708c9(0x15f)]===0x0&&_0x1d92e8[_0x2708c9(0x15f)]===0x0&&_0x59d5e2[_0x2708c9(0x15f)]===0x0;return{'ok':!![],'data':{'added':_0x1928a4,'modified':_0x1d92e8,'unchanged':_0x2b9b5e,'remoteOnly':_0x59d5e2},'message':_0x571bc9?_0x2708c9(0x15c):_0x1928a4[_0x2708c9(0x15f)]+'\x20added,\x20'+_0x1d92e8[_0x2708c9(0x15f)]+_0x2708c9(0x16f)+_0x2b9b5e['length']+_0x2708c9(0x165)+(_0x59d5e2[_0x2708c9(0x15f)]>0x0?',\x20'+_0x59d5e2[_0x2708c9(0x15f)]+_0x2708c9(0x170):'')};}};
@@ -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_0x1f4ead=a34_0x3115;(function(_0x2f0598,_0x3126fd){const _0x2e8b53=a34_0x3115,_0x569cd9=_0x2f0598();while(!![]){try{const _0x29459a=-parseInt(_0x2e8b53(0xfa))/0x1+-parseInt(_0x2e8b53(0xfc))/0x2*(parseInt(_0x2e8b53(0x118))/0x3)+parseInt(_0x2e8b53(0x10f))/0x4*(-parseInt(_0x2e8b53(0xfb))/0x5)+-parseInt(_0x2e8b53(0xd6))/0x6*(-parseInt(_0x2e8b53(0xf9))/0x7)+-parseInt(_0x2e8b53(0xf4))/0x8*(-parseInt(_0x2e8b53(0x11d))/0x9)+parseInt(_0x2e8b53(0x11e))/0xa+parseInt(_0x2e8b53(0xdf))/0xb*(parseInt(_0x2e8b53(0xfe))/0xc);if(_0x29459a===_0x3126fd)break;else _0x569cd9['push'](_0x569cd9['shift']());}catch(_0x37e371){_0x569cd9['push'](_0x569cd9['shift']());}}}(a34_0x4449,0x1f349));import a34_0xd41af8 from'chalk';import a34_0x3cb225 from'ora';function a34_0x3115(_0x5c619d,_0x1c050b){_0x5c619d=_0x5c619d-0xd6;const _0x4449ca=a34_0x4449();let _0x3115aa=_0x4449ca[_0x5c619d];return _0x3115aa;}import a34_0x567a2f 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 a34_0x4449(){const _0x5977e4=['\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','validation','Update\x20failed','\x20\x20Run\x20manually:\x20','object','43340HsGciM','info','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','https://registry.npmjs.org/-/package/','Update\x20available:\x20','message','source','timeout','latest','fail','bool','valid','filter','Already\x20on\x20requested\x20version\x20(v','inherit','Beta\x20version:\x20','\x20→\x20','str','error','\x20\x20Try\x20manually:\x20','npm','748472XqSfuE','Current\x20version:\x20','write','toLowerCase','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','70XGsMrO','11405OujDUZ','101635lfBJFj','76lIpDlD','start','240iZczwP','Already\x20up\x20to\x20date\x20(v','no-skills','warn','bun','green','Updating\x20via\x20','red','run','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','version','trim','nonInteractive','length','includes','log','20jicBNt','slice','Install\x20a\x20specific\x20CLI\x20version','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','stableVersion','cwd','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','Requested\x20version:\x20','yellow','5664JuGCCQ','json','skipped','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','Version\x20comparison\x20failed','9IMwHQw','902720XyQmRO','gray','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','boolean','Skipping\x20official\x20skill\x20package\x20(--no-skills).','fromEntries','Checking\x20official\x20skill\x20package...','succeed','unknown','29982pgrtFI','beta','...'];a34_0x4449=function(){return _0x5977e4;};return a34_0x4449();}function getCurrentVersion(){const _0x5a59e4=a34_0x3115;return GIT_COMMIT!==_0x5a59e4(0x127)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x5a59e4(0x110)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x428dc3=a34_0x3115,_0x2f5441=process['execPath'][_0x428dc3(0xf7)]();if(_0x2f5441[_0x428dc3(0x10d)]('bun'))return _0x428dc3(0x102);return _0x428dc3(0xf3);}const updateFlags=[{'name':a34_0x1f4ead(0xd7),'type':a34_0x1f4ead(0x122),'description':a34_0x1f4ead(0x120),'default':![]},{'name':'version','type':'string','description':a34_0x1f4ead(0x111)},{'name':a34_0x1f4ead(0x100),'type':a34_0x1f4ead(0x122),'description':a34_0x1f4ead(0xf8),'default':![]}];function getRequestedVersion(_0x3653d7){const _0x350037=a34_0x1f4ead;return _0x3653d7[_0x350037(0xf0)](_0x350037(0x109))[_0x350037(0x10a)]();}async function validateUpdateFlags(_0x26c304){const _0x228a3=a34_0x1f4ead,_0x1f1536=_0x26c304[_0x228a3(0xe9)](_0x228a3(0xd7)),_0x4ac1cc=getRequestedVersion(_0x26c304);if(_0x1f1536&&_0x4ac1cc)throw CliErrors[_0x228a3(0xdb)](_0x228a3(0x115),_0x228a3(0xda));if(_0x4ac1cc&&!a34_0x567a2f[_0x228a3(0xea)](_0x4ac1cc))throw CliErrors[_0x228a3(0xdb)]('Invalid\x20version:\x20'+_0x4ac1cc,_0x228a3(0x112));}async function fetchNpmDistTags(){const _0x4a8e45=a34_0x1f4ead;try{const _0x4172c3=await fetch(_0x4a8e45(0xe2)+encodeURIComponent(NPM_PACKAGE_NAME)+'/dist-tags',{'signal':AbortSignal[_0x4a8e45(0xe6)](0x2710)});if(!_0x4172c3['ok'])return null;const _0x18b399=await _0x4172c3[_0x4a8e45(0x119)]();if(!_0x18b399||typeof _0x18b399!==_0x4a8e45(0xde))return null;return Object[_0x4a8e45(0x124)](Object['entries'](_0x18b399)[_0x4a8e45(0xeb)](([,_0x4b0ce8])=>typeof _0x4b0ce8==='string'&&_0x4b0ce8[_0x4a8e45(0x10a)]()[_0x4a8e45(0x10c)]>0x0)['map'](([_0x271eb6,_0x4c1f0e])=>[_0x271eb6,String(_0x4c1f0e)['trim']()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x27fdc3){const _0x5835f9=await fetchNpmDistTags();return _0x5835f9?.[_0x27fdc3]??null;}async function fetchLatestVersion(){const _0x2310b3=a34_0x1f4ead,_0x1916b1=await fetchNpmDistTagVersion(_0x2310b3(0xe7));if(_0x1916b1)return _0x1916b1;const _0x3bd557=await getCdnConfig();return _0x3bd557?.['cli']?.[_0x2310b3(0x113)]??null;}async function resolveTargetVersion(_0x2e5e45){const _0x2e23d0=a34_0x1f4ead,_0x3ad436=getRequestedVersion(_0x2e5e45);if(_0x3ad436)return{'version':_0x3ad436,'source':_0x2e23d0(0x109)};if(_0x2e5e45[_0x2e23d0(0xe9)](_0x2e23d0(0xd7))){const _0xaf9fa2=await fetchNpmDistTagVersion('beta');if(!_0xaf9fa2)return null;return{'version':_0xaf9fa2,'source':_0x2e23d0(0xd7)};}const _0x5c21b4=await fetchLatestVersion();if(!_0x5c21b4)return null;return{'version':_0x5c21b4,'source':_0x2e23d0(0xe7)};}function shouldInstallTarget(_0x45be97,_0x107a16){const _0x4c27ee=a34_0x1f4ead;if(_0x107a16['source']===_0x4c27ee(0x109))return!a34_0x567a2f['eq'](_0x45be97,_0x107a16[_0x4c27ee(0x109)]);return a34_0x567a2f['lt'](_0x45be97,_0x107a16[_0x4c27ee(0x109)]);}function getInstallPlanLabel(_0x3cb25f,_0x5a6d89){const _0x59ce14=a34_0x1f4ead;switch(_0x5a6d89[_0x59ce14(0xe5)]){case'beta':return _0x59ce14(0xee)+a34_0xd41af8[_0x59ce14(0x117)](_0x3cb25f)+_0x59ce14(0xef)+a34_0xd41af8[_0x59ce14(0x103)](_0x5a6d89['version']);case'version':return _0x59ce14(0x116)+a34_0xd41af8[_0x59ce14(0x117)](_0x3cb25f)+_0x59ce14(0xef)+a34_0xd41af8[_0x59ce14(0x103)](_0x5a6d89[_0x59ce14(0x109)]);case _0x59ce14(0xe7):default:return _0x59ce14(0xe3)+a34_0xd41af8[_0x59ce14(0x117)](_0x3cb25f)+'\x20→\x20'+a34_0xd41af8['green'](_0x5a6d89[_0x59ce14(0x109)]);}}async function installOfficialSkill(_0x5e2c0b){const _0xcb2fc7=a34_0x1f4ead;console[_0xcb2fc7(0x10e)](a34_0xd41af8[_0xcb2fc7(0x11f)](_0xcb2fc7(0x125)));const _0x66c640=runNpxSkillsAddGlobal(process[_0xcb2fc7(0x114)](),RABETBASE_SKILL_SOURCE,{'stdio':_0x5e2c0b?'pipe':_0xcb2fc7(0xed)});if(_0x66c640[_0xcb2fc7(0x11a)]){console[_0xcb2fc7(0x10e)](a34_0xd41af8[_0xcb2fc7(0x11f)]('\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).'));return;}if(_0x66c640['ok']){console['log'](a34_0xd41af8[_0xcb2fc7(0x11f)](_0xcb2fc7(0xe1)));return;}console[_0xcb2fc7(0x101)](a34_0xd41af8[_0xcb2fc7(0x117)]('\x20\x20Official\x20skill\x20update\x20failed:\x20'+(_0x66c640[_0xcb2fc7(0xf1)]||'unknown'))),console[_0xcb2fc7(0x10e)](a34_0xd41af8[_0xcb2fc7(0x11f)](_0xcb2fc7(0xdd)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x3e7765){const _0x21e57e=a34_0x1f4ead;await validateUpdateFlags(_0x3e7765);const _0x408591=getCurrentVersion();console[_0x21e57e(0x10e)](_0x21e57e(0xf5)+_0x408591);const _0x30341f=a34_0x3cb225('Checking\x20for\x20updates...')[_0x21e57e(0xfd)](),_0x1a75f4=await resolveTargetVersion(_0x3e7765);if(!_0x1a75f4){const _0x52915a=_0x3e7765[_0x21e57e(0xe9)](_0x21e57e(0xd7))?_0x21e57e(0x121):_0x21e57e(0x11b);return _0x30341f['fail'](_0x52915a),console[_0x21e57e(0x10e)](a34_0xd41af8[_0x21e57e(0x11f)](_0x21e57e(0x108)+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x52915a};}const _0x21c4c6=a34_0x567a2f[_0x21e57e(0xea)](VERSION),_0x11752c=a34_0x567a2f[_0x21e57e(0xea)](_0x1a75f4[_0x21e57e(0x109)]);if(!_0x21c4c6||!_0x11752c)return _0x30341f[_0x21e57e(0xe8)](_0x21e57e(0x11c)),{'ok':![],'message':_0x21e57e(0x11c)};if(!shouldInstallTarget(_0x21c4c6,_0x1a75f4)){const _0x265083=_0x1a75f4[_0x21e57e(0xe5)]===_0x21e57e(0x109)?_0x21e57e(0xec)+_0x1a75f4['version']+')':_0x21e57e(0xff)+_0x1a75f4[_0x21e57e(0x109)]+')';return _0x30341f['succeed'](_0x265083),!_0x3e7765[_0x21e57e(0xe9)](_0x21e57e(0x100))?await installOfficialSkill(_0x3e7765[_0x21e57e(0x10b)]):console[_0x21e57e(0x10e)](a34_0xd41af8['gray']('Skipping\x20official\x20skill\x20package\x20(--no-skills).')),{'ok':!![]};}_0x30341f[_0x21e57e(0xe0)](getInstallPlanLabel(_0x408591,_0x1a75f4));const _0x3ba0ac=detectPackageManager(),_0x358c6c=_0x3ba0ac===_0x21e57e(0xf3)?resolveNpmBin('npm'):_0x3ba0ac,_0x3a5121=a34_0x3cb225(_0x21e57e(0x104)+_0x3ba0ac+_0x21e57e(0xd8))['start']();try{return await execa(_0x358c6c,['install','-g',NPM_PACKAGE_NAME+'@'+_0x1a75f4[_0x21e57e(0x109)]],{'stdio':'pipe'}),_0x3a5121[_0x21e57e(0x126)]('Updated\x20to\x20v'+_0x1a75f4[_0x21e57e(0x109)]),console[_0x21e57e(0x10e)](a34_0xd41af8[_0x21e57e(0x11f)](_0x21e57e(0xd9))),!_0x3e7765[_0x21e57e(0xe9)](_0x21e57e(0x100))?await installOfficialSkill(_0x3e7765[_0x21e57e(0x10b)]):console[_0x21e57e(0x10e)](a34_0xd41af8['gray'](_0x21e57e(0x123))),{'ok':!![]};}catch(_0x1493f9){return _0x3a5121['fail'](_0x21e57e(0xdc)),console[_0x21e57e(0xf1)](a34_0xd41af8[_0x21e57e(0x105)]('\x20\x20'+_0x1493f9['message'])),console[_0x21e57e(0x10e)](a34_0xd41af8[_0x21e57e(0x11f)](_0x21e57e(0xf2)+_0x3ba0ac+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x1a75f4[_0x21e57e(0x109)])),{'ok':![],'message':_0x1493f9[_0x21e57e(0xe4)]};}}export const updateDefinition={'service':'update','command':a34_0x1f4ead(0x106),'description':a34_0x1f4ead(0x107),'risk':a34_0x1f4ead(0xf6),'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_0x589c(){const _0x45bdb1=['48tTrzfU','205989vtuixS','75HpVvsl','102094yZcYFX','1fUCxsf','320148xcmHmq','1476SEwPxI','4728273UFAvhb','49520GyTeSV','32eWgoBm','1582061XlOtTZ','530243ZLkJlu','4uewQiZ'];a35_0x589c=function(){return _0x45bdb1;};return a35_0x589c();}(function(_0x44b920,_0x581f09){const _0x2e7136=a35_0x3daf,_0x1c5aab=_0x44b920();while(!![]){try{const _0x1fdecc=-parseInt(_0x2e7136(0x98))/0x1*(parseInt(_0x2e7136(0x97))/0x2)+-parseInt(_0x2e7136(0xa2))/0x3*(-parseInt(_0x2e7136(0xa0))/0x4)+parseInt(_0x2e7136(0x96))/0x5*(parseInt(_0x2e7136(0x99))/0x6)+parseInt(_0x2e7136(0x9f))/0x7*(-parseInt(_0x2e7136(0x9d))/0x8)+parseInt(_0x2e7136(0x9a))/0x9*(parseInt(_0x2e7136(0x9c))/0xa)+-parseInt(_0x2e7136(0x9b))/0xb+parseInt(_0x2e7136(0xa1))/0xc*(-parseInt(_0x2e7136(0x9e))/0xd);if(_0x1fdecc===_0x581f09)break;else _0x1c5aab['push'](_0x1c5aab['shift']());}catch(_0x3c19d9){_0x1c5aab['push'](_0x1c5aab['shift']());}}}(a35_0x589c,0x64377));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';function a35_0x3daf(_0x4a2af4,_0x2009db){_0x4a2af4=_0x4a2af4-0x96;const _0x589c93=a35_0x589c();let _0x3dafc9=_0x589c93[_0x4a2af4];return _0x3dafc9;}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_0x25d2bb=a36_0x571d;function a36_0x2875(){const _0x4684f6=['6wtrNhl','boolean','name','2334078MXtFsO','11olNAkj','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','appCode','operation','str','read','bool','2328idaoLX','177225cLtAfQ','tableName','8BrMjPg','1774339pLBgpN','1542CEYoTM','skip-imports','codegen','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','code','556462rtUzsi','string','3875210OxNBBI','sdk','2216920MhZygC'];a36_0x2875=function(){return _0x4684f6;};return a36_0x2875();}(function(_0x515b70,_0x12afdf){const _0x3e060d=a36_0x571d,_0x1eff28=_0x515b70();while(!![]){try{const _0x58a694=-parseInt(_0x3e060d(0x1e0))/0x1+parseInt(_0x3e060d(0x1e9))/0x2+parseInt(_0x3e060d(0x1e4))/0x3*(parseInt(_0x3e060d(0x1df))/0x4)+parseInt(_0x3e060d(0x1d3))/0x5*(-parseInt(_0x3e060d(0x1d4))/0x6)+parseInt(_0x3e060d(0x1e3))/0x7*(parseInt(_0x3e060d(0x1e2))/0x8)+-parseInt(_0x3e060d(0x1d7))/0x9+-parseInt(_0x3e060d(0x1d1))/0xa*(-parseInt(_0x3e060d(0x1d8))/0xb);if(_0x58a694===_0x12afdf)break;else _0x1eff28['push'](_0x1eff28['shift']());}catch(_0x11edad){_0x1eff28['push'](_0x1eff28['shift']());}}}(a36_0x2875,0x529fa));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a36_0x571d(_0x205112,_0xefd6c1){_0x205112=_0x205112-0x1d1;const _0x287579=a36_0x2875();let _0x571df5=_0x287579[_0x205112];return _0x571df5;}export const codegenSdk={'service':a36_0x25d2bb(0x1e6),'command':a36_0x25d2bb(0x1d2),'description':a36_0x25d2bb(0x1d9),'risk':a36_0x25d2bb(0x1dd),'flags':[CODE_FLAG_OPTIONAL,{'name':'alias','type':a36_0x25d2bb(0x1ea),'description':a36_0x25d2bb(0x1e7)},{'name':a36_0x25d2bb(0x1db),'type':'string','required':!![],'description':'Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)'},{'name':a36_0x25d2bb(0x1e5),'type':a36_0x25d2bb(0x1d5),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x1026f8){const _0x33a309=a36_0x25d2bb,{dataset:_0x27df20,operation:_0x57071b}=await getOperationDetail(_0x1026f8[_0x33a309(0x1da)],_0x1026f8[_0x33a309(0x1dc)](_0x33a309(0x1e8)),_0x1026f8[_0x33a309(0x1dc)](_0x33a309(0x1db))),_0x298f87=generateSdkCode(_0x27df20,_0x57071b,{'includeImports':!_0x1026f8[_0x33a309(0x1de)]('skip-imports')});return{'ok':!![],'data':{'dataset':{'name':_0x27df20[_0x33a309(0x1d6)],'code':_0x27df20['code'],'tableName':_0x27df20[_0x33a309(0x1e1)]},'operation':_0x1026f8[_0x33a309(0x1dc)](_0x33a309(0x1db)),'code':_0x298f87}};}};
@@ -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_0x2392f3=a37_0x4fd1;(function(_0x4b2e41,_0x2eefc0){const _0x204d9f=a37_0x4fd1,_0x51097b=_0x4b2e41();while(!![]){try{const _0x5724b1=-parseInt(_0x204d9f(0x113))/0x1*(parseInt(_0x204d9f(0x10a))/0x2)+parseInt(_0x204d9f(0x110))/0x3+parseInt(_0x204d9f(0x10c))/0x4*(-parseInt(_0x204d9f(0x100))/0x5)+parseInt(_0x204d9f(0xfb))/0x6+-parseInt(_0x204d9f(0x107))/0x7*(parseInt(_0x204d9f(0xfe))/0x8)+parseInt(_0x204d9f(0x101))/0x9*(-parseInt(_0x204d9f(0x103))/0xa)+-parseInt(_0x204d9f(0x104))/0xb*(-parseInt(_0x204d9f(0x111))/0xc);if(_0x5724b1===_0x2eefc0)break;else _0x51097b['push'](_0x51097b['shift']());}catch(_0x2a9c45){_0x51097b['push'](_0x51097b['shift']());}}}(a37_0x1e57,0x867d4));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a37_0x1e57(){const _0x54ad18=['bool','2525595YTJxuI','16017516xUATpX','Omit\x20import\x20statements\x20from\x20generated\x20code','1ibqJxG','codegen','2159070CNJOnp','target','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','8mfXrKd','boolean','48325SPPzxU','45STrVgB','sqlCode','704070aRBURC','11HKHmtx','sql','bff','7537278Wfqrut','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','sdk','785082cECDja','sqlcode','68CNokqO','appCode','no-imports'];a37_0x1e57=function(){return _0x54ad18;};return a37_0x1e57();}function a37_0x4fd1(_0x460b43,_0x4d5829){_0x460b43=_0x460b43-0xfa;const _0x1e579c=a37_0x1e57();let _0x4fd134=_0x1e579c[_0x460b43];return _0x4fd134;}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x2392f3(0xfa),'command':a37_0x2392f3(0x105),'description':a37_0x2392f3(0x108),'risk':'read','flags':[SQLCODE_FLAG,{'name':a37_0x2392f3(0xfc),'type':'string','description':a37_0x2392f3(0xfd),'default':a37_0x2392f3(0x109),'enum':[a37_0x2392f3(0x109),a37_0x2392f3(0x106)]},{'name':a37_0x2392f3(0x10e),'type':a37_0x2392f3(0xff),'description':a37_0x2392f3(0x112)}],async 'execute'(_0x5b0242){const _0xede4a8=a37_0x2392f3,_0x59352d=await getSqlQueryInfo(_0x5b0242[_0xede4a8(0x10d)],_0x5b0242['str'](_0xede4a8(0x10b))),_0x533640=_0x5b0242['str'](_0xede4a8(0xfc))||_0xede4a8(0x109),_0x5c9164=generateSqlCodeTemplate(_0x59352d,{'target':_0x533640,'includeImports':!_0x5b0242[_0xede4a8(0x10f)](_0xede4a8(0x10e))});return{'ok':!![],'data':{'sqlCode':_0x59352d[_0xede4a8(0x102)],'sqlName':_0x59352d['sqlName'],'target':_0x533640,'code':_0x5c9164}};}};
@@ -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(_0x4e92fe,_0x5898bc){const _0x374c74=a38_0x18bf,_0x1d9951=_0x4e92fe();while(!![]){try{const _0x3bf676=parseInt(_0x374c74(0xa4))/0x1*(-parseInt(_0x374c74(0x99))/0x2)+parseInt(_0x374c74(0x8d))/0x3+parseInt(_0x374c74(0xaa))/0x4+parseInt(_0x374c74(0xa9))/0x5*(parseInt(_0x374c74(0xa3))/0x6)+-parseInt(_0x374c74(0x90))/0x7*(parseInt(_0x374c74(0xae))/0x8)+parseInt(_0x374c74(0x88))/0x9*(-parseInt(_0x374c74(0x96))/0xa)+parseInt(_0x374c74(0x97))/0xb;if(_0x3bf676===_0x5898bc)break;else _0x1d9951['push'](_0x1d9951['shift']());}catch(_0x4fc895){_0x1d9951['push'](_0x1d9951['shift']());}}}(a38_0x45e5,0xb0646));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x18180a from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x41d8a9=a38_0x18bf,_0x3f7917=await input({'message':_0x41d8a9(0x93),'validate':_0x1f676f=>{const _0x26ede1=_0x41d8a9,_0xf11b34=validateAppcode(_0x1f676f[_0x26ede1(0x9c)]());return _0xf11b34['valid']||_0xf11b34[_0x26ede1(0xa5)]||_0x26ede1(0x8e);}});return _0x3f7917['trim']();}function a38_0x18bf(_0x634cec,_0x83e4a2){_0x634cec=_0x634cec-0x87;const _0x45e5c8=a38_0x45e5();let _0x18bf9b=_0x45e5c8[_0x634cec];return _0x18bf9b;}export async function promptAppSelection(_0x1bbf94){const _0x4f419d=a38_0x18bf,_0x2ab188=[{'name':a38_0x18180a[_0x4f419d(0x9b)]('✎\x20自定义输入\x20appcode'),'value':-0x1},..._0x1bbf94['map']((_0x35a983,_0x546d69)=>({'name':_0x35a983['appName']+'\x20\x20'+a38_0x18180a[_0x4f419d(0x9e)]('('+_0x35a983[_0x4f419d(0x94)]+')'),'value':_0x546d69}))],_0x425b58=await checkbox({'message':'获取到\x20'+a38_0x18180a[_0x4f419d(0x89)](_0x1bbf94[_0x4f419d(0x8f)])+_0x4f419d(0x98),'choices':_0x2ab188,'loop':![]});if(_0x425b58['includes'](-0x1))return _0x4f419d(0xa1);if(_0x425b58[_0x4f419d(0x8f)]===0x0)return _0x4f419d(0xa1);return _0x425b58[_0x4f419d(0x95)](_0x2e6182=>_0x1bbf94[_0x2e6182]);}export async function promptSingleAppSelection(_0x249774){const _0x4a8ae2=a38_0x18bf,_0x1d8ca5=[{'name':a38_0x18180a['gray'](_0x4a8ae2(0x92)),'value':_0x4a8ae2(0x8c)},{'name':a38_0x18180a[_0x4a8ae2(0x9b)](_0x4a8ae2(0xac)),'value':_0x4a8ae2(0xa1)},..._0x249774[_0x4a8ae2(0x95)](_0x1a9b8a=>({'name':_0x1a9b8a[_0x4a8ae2(0x8a)]+'\x20\x20'+a38_0x18180a[_0x4a8ae2(0x9e)]('('+_0x1a9b8a[_0x4a8ae2(0x94)]+')'),'value':_0x1a9b8a['appCode']}))],_0xb14366=await select({'message':_0x4a8ae2(0x87),'choices':_0x1d8ca5});if(_0xb14366==='skip')return _0x4a8ae2(0x8c);if(_0xb14366==='custom')return'custom';return _0x249774[_0x4a8ae2(0xa2)](_0x2b081d=>_0x2b081d[_0x4a8ae2(0x94)]===_0xb14366);}export async function selectSingleAppcode(_0x5dc9aa){const _0x47d895=a38_0x18bf;if(!_0x5dc9aa)return writeCliSideChannelLine(a38_0x18180a['gray'](_0x47d895(0x91))),_fallbackOrSkip();writeCliSideChannelLine(_0x47d895(0xab));let _0xb9c066;try{_0xb9c066=await withActiveCookie(_0x5dc9aa,()=>listRemoteApps());}catch(_0x457303){writeCliSideChannelLine(a38_0x18180a[_0x47d895(0x9b)](_0x47d895(0xa6)));if(_0x457303 instanceof Error)writeCliSideChannelLine(a38_0x18180a[_0x47d895(0x9e)]('\x20\x20('+_0x457303[_0x47d895(0xa5)]+')'));return _fallbackOrSkip();}if(_0xb9c066[_0x47d895(0x8f)]===0x0)return writeCliSideChannelLine(a38_0x18180a[_0x47d895(0x9b)](_0x47d895(0xa0))),_fallbackOrSkip();const _0x57194a=await promptSingleAppSelection(_0xb9c066);if(_0x57194a===_0x47d895(0x8c))return'';if(_0x57194a==='custom')return promptCustomAppcode();return _0x57194a[_0x47d895(0x94)];}export async function selectMultipleApps(_0x4d7037){const _0x7f2885=a38_0x18bf;writeCliSideChannelLine(_0x7f2885(0xab));let _0x4252d6;try{_0x4252d6=await withActiveCookie(_0x4d7037,()=>listRemoteApps());}catch(_0x3d0db4){writeCliSideChannelLine(_0x7f2885(0x9d));if(_0x3d0db4 instanceof Error)writeCliSideChannelLine(_0x7f2885(0x9f)+_0x3d0db4['message']+')');return _0x7f2885(0xa1);}if(_0x4252d6[_0x7f2885(0x8f)]===0x0)return writeCliSideChannelLine(_0x7f2885(0x9a)),_0x7f2885(0xa1);return promptAppSelection(_0x4252d6);}async function _fallbackOrSkip(){const _0x56d2db=a38_0x18bf,_0x4d5125=await select({'message':_0x56d2db(0xa8),'choices':[{'name':a38_0x18180a[_0x56d2db(0x9e)](_0x56d2db(0xad)),'value':_0x56d2db(0x8c)},{'name':a38_0x18180a[_0x56d2db(0x9b)](_0x56d2db(0xa7)),'value':_0x56d2db(0x8b)}]});if(_0x4d5125===_0x56d2db(0x8c))return'';return promptCustomAppcode();}function a38_0x45e5(){const _0x16a8c0=['(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','请输入\x20App\x20Code:','appCode','map','24560kZkhuL','1929730MTYnPY','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','390yyMnQe','\x0a未找到可用应用。','yellow','trim','\x0a无法获取远程应用列表,请手动输入。','gray','\x20\x20(','未找到可用应用。','custom','find','1542ylONzC','1059rTNnJs','message','无法获取远程应用列表,请手动输入。','✎\x20手动输入','App\x20Code:','445ZsMTxW','4071232LwKnAJ','正在获取可用应用列表...','✎\x20自定义输入\x20appcode','(跳过,稍后配置)','409312kUIcID','请选择要绑定的应用:','4716tJiVae','cyan','appName','manual','skip','4073964QqgbYQ','Invalid\x20App\x20Code','length','49OjDZyi','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)'];a38_0x45e5=function(){return _0x16a8c0;};return a38_0x45e5();}
@@ -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
+ function a39_0x9c58(){const _0x58887c=['47515nRYAeY','Dataset\x20code\x20(32-char\x20hex\x20UUID)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','8edwbcd','POSTGRESQL','216913zrNSXA','543426JNXdii','6824889xWwbIh','Database\x20product\x20type','dbtype','appcode','424722fryzaO','1674911XEAZAH','string','sqlcode','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','3azlpkn','907912iuHQDC'];a39_0x9c58=function(){return _0x58887c;};return a39_0x9c58();}const a39_0x5c742a=a39_0x5aca;(function(_0x1864b7,_0x52b183){const _0x2802f4=a39_0x5aca,_0x4f7b62=_0x1864b7();while(!![]){try{const _0x1b6a2d=-parseInt(_0x2802f4(0x115))/0x1+-parseInt(_0x2802f4(0x11b))/0x2*(-parseInt(_0x2802f4(0x10e))/0x3)+-parseInt(_0x2802f4(0x10f))/0x4+-parseInt(_0x2802f4(0x110))/0x5+-parseInt(_0x2802f4(0x116))/0x6+-parseInt(_0x2802f4(0x11c))/0x7+-parseInt(_0x2802f4(0x113))/0x8*(-parseInt(_0x2802f4(0x117))/0x9);if(_0x1b6a2d===_0x52b183)break;else _0x4f7b62['push'](_0x4f7b62['shift']());}catch(_0x26ec18){_0x4f7b62['push'](_0x4f7b62['shift']());}}}(a39_0x9c58,0x2dc34));function a39_0x5aca(_0x4c9309,_0x2bd08d){_0x4c9309=_0x4c9309-0x10b;const _0x9c5864=a39_0x9c58();let _0x5acadd=_0x9c5864[_0x4c9309];return _0x5acadd;}export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':'a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)'};export const CODE_FLAG={'name':'code','type':a39_0x5c742a(0x10b),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':'datasetcode','description':a39_0x5c742a(0x111)};export const SQLCODE_FLAG={'name':a39_0x5c742a(0x10c),'type':'string','required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x5c742a(0x112)}};export const APPCODE_FLAG_OPTIONAL={'name':a39_0x5c742a(0x11a),'type':a39_0x5c742a(0x10b),'required':![],'description':'App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)'};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':a39_0x5c742a(0x10d)};export const DB_TYPE_FLAG={'name':a39_0x5c742a(0x119),'type':'string','required':!![],'description':a39_0x5c742a(0x118),'enum':['MYSQL',a39_0x5c742a(0x114)]};
@@ -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(_0x1d2d95,_0x2fcd2b){const _0x5427b5=a40_0x44d6,_0x58a156=_0x1d2d95();while(!![]){try{const _0x223227=parseInt(_0x5427b5(0x130))/0x1*(-parseInt(_0x5427b5(0x12c))/0x2)+-parseInt(_0x5427b5(0x12d))/0x3*(parseInt(_0x5427b5(0x12b))/0x4)+parseInt(_0x5427b5(0x124))/0x5+parseInt(_0x5427b5(0x12a))/0x6+parseInt(_0x5427b5(0x12e))/0x7+parseInt(_0x5427b5(0x123))/0x8+-parseInt(_0x5427b5(0x131))/0x9*(-parseInt(_0x5427b5(0x127))/0xa);if(_0x223227===_0x2fcd2b)break;else _0x58a156['push'](_0x58a156['shift']());}catch(_0x31a575){_0x58a156['push'](_0x58a156['shift']());}}}(a40_0x542e,0x8a959));function a40_0x542e(){const _0x29bf98=['1097214UXZDWk','4240mlBcqk','2VXoQYk','2841dAKqec','5014478jEUewV','App\x20Code\x20cannot\x20be\x20empty','546451wJwNHf','5372685AnBswF','trim','4512232IPQoel','288475ebsZXF','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','App\x20Code\x20cannot\x20exceed\x20100\x20characters','10ngOXRu','test','length'];a40_0x542e=function(){return _0x29bf98;};return a40_0x542e();}function a40_0x44d6(_0xcb2d33,_0x40442a){_0xcb2d33=_0xcb2d33-0x122;const _0x542e40=a40_0x542e();let _0x44d6ff=_0x542e40[_0xcb2d33];return _0x44d6ff;}export function validateAppcode(_0x124bce){const _0x344ded=a40_0x44d6,_0x40053c=_0x124bce[_0x344ded(0x122)]();if(!_0x40053c)return{'valid':![],'message':_0x344ded(0x12f)};if(_0x40053c[_0x344ded(0x129)]>0x64)return{'valid':![],'message':_0x344ded(0x126)};if(!/^[A-Za-z0-9_-]+$/[_0x344ded(0x128)](_0x40053c))return{'valid':![],'message':_0x344ded(0x125)};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_0x43724c=a41_0x1119;(function(_0x1d521b,_0x1d0497){const _0x26e2f4=a41_0x1119,_0x19c9a2=_0x1d521b();while(!![]){try{const _0x1fd685=-parseInt(_0x26e2f4(0x17e))/0x1+-parseInt(_0x26e2f4(0x186))/0x2+parseInt(_0x26e2f4(0x178))/0x3*(parseInt(_0x26e2f4(0x187))/0x4)+parseInt(_0x26e2f4(0x175))/0x5*(-parseInt(_0x26e2f4(0x188))/0x6)+-parseInt(_0x26e2f4(0x184))/0x7*(-parseInt(_0x26e2f4(0x179))/0x8)+-parseInt(_0x26e2f4(0x182))/0x9+parseInt(_0x26e2f4(0x176))/0xa*(parseInt(_0x26e2f4(0x17a))/0xb);if(_0x1fd685===_0x1d0497)break;else _0x19c9a2['push'](_0x19c9a2['shift']());}catch(_0x6e6da1){_0x19c9a2['push'](_0x19c9a2['shift']());}}}(a41_0xb18a,0xe800c));function a41_0xb18a(){const _0x5030a3=['Key\x20not\x20found:\x20','15941025pTAczT','Usage:\x20','3974369bWRkub','string','1764862dyvTjv','44216WUFYeR','6vCquWU','app','\x20config\x20get\x20--key\x20<key>','key','4240965IyVEjc','27106060oCpkzB','validation','228hxciPQ','24hfnspe','11SpUlDa','Get\x20a\x20config\x20value\x20by\x20key','str','object','801878ViOyjQ','read','get'];a41_0xb18a=function(){return _0x5030a3;};return a41_0xb18a();}function a41_0x1119(_0x557ba5,_0x209fd0){_0x557ba5=_0x557ba5-0x175;const _0xb18a5a=a41_0xb18a();let _0x11195e=_0xb18a5a[_0x557ba5];return _0x11195e;}import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x1d9fce){const _0xb43afb=a41_0x1119,_0x2f188a=_0x1d9fce[_0xb43afb(0x17c)](_0xb43afb(0x18b));if(!_0x2f188a)throw CliErrors[_0xb43afb(0x177)]('Missing\x20key.',_0xb43afb(0x183)+CLI_BIN_NAME+_0xb43afb(0x18a));const _0x1d0978=readConfig(),_0x5ae0f4=_0x2f188a===_0xb43afb(0x189)?'appcode':_0x2f188a,_0x22b1f9=_0x1d0978[_0x5ae0f4];if(_0x22b1f9===undefined)throw CliErrors[_0xb43afb(0x177)](_0xb43afb(0x181)+_0x2f188a);return{'ok':!![],'data':typeof _0x22b1f9==='object'?_0x22b1f9:{[_0x5ae0f4]:_0x22b1f9},'message':typeof _0x22b1f9===_0xb43afb(0x17d)?undefined:String(_0x22b1f9)};}export const configGetDefinition={'service':'config','command':a41_0x43724c(0x180),'description':a41_0x43724c(0x17b),'risk':a41_0x43724c(0x17f),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x43724c(0x18b),'type':a41_0x43724c(0x185),'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(_0x1aad28,_0x13dd09){const _0x14111b=a42_0x572b,_0x162965=_0x1aad28();while(!![]){try{const _0x3d2491=-parseInt(_0x14111b(0x183))/0x1*(-parseInt(_0x14111b(0x189))/0x2)+-parseInt(_0x14111b(0x180))/0x3+parseInt(_0x14111b(0x184))/0x4+parseInt(_0x14111b(0x188))/0x5*(parseInt(_0x14111b(0x185))/0x6)+-parseInt(_0x14111b(0x186))/0x7*(parseInt(_0x14111b(0x187))/0x8)+parseInt(_0x14111b(0x182))/0x9+-parseInt(_0x14111b(0x181))/0xa;if(_0x3d2491===_0x13dd09)break;else _0x162965['push'](_0x162965['shift']());}catch(_0x43e0c5){_0x162965['push'](_0x162965['shift']());}}}(a42_0x4fa9,0xa0787));import{configListDefinition}from'../../commands/config/list.js';function a42_0x4fa9(){const _0x399e6d=['2BAYZXf','2738466jzUUSZ','14991200XSMfYu','10906848YcckEp','1207453xRbRnM','336744pNUOTI','1826238OubJbd','434LmGAOC','5552wZXvAy','10pTOKrp'];a42_0x4fa9=function(){return _0x399e6d;};return a42_0x4fa9();}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a42_0x572b(_0x103a16,_0xa1bc7c){_0x103a16=_0x103a16-0x180;const _0x4fa995=a42_0x4fa9();let _0x572bba=_0x4fa995[_0x103a16];return _0x572bba;}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_0x39de2d=a43_0x1841;(function(_0x58439e,_0x255ac2){const _0x48c584=a43_0x1841,_0x272e8d=_0x58439e();while(!![]){try{const _0x3692e1=-parseInt(_0x48c584(0x1e1))/0x1+-parseInt(_0x48c584(0x1e6))/0x2+parseInt(_0x48c584(0x1dd))/0x3+parseInt(_0x48c584(0x1d8))/0x4*(parseInt(_0x48c584(0x1dc))/0x5)+parseInt(_0x48c584(0x1d9))/0x6*(-parseInt(_0x48c584(0x1df))/0x7)+-parseInt(_0x48c584(0x1de))/0x8*(-parseInt(_0x48c584(0x1e2))/0x9)+-parseInt(_0x48c584(0x1e4))/0xa*(parseInt(_0x48c584(0x1da))/0xb);if(_0x3692e1===_0x255ac2)break;else _0x272e8d['push'](_0x272e8d['shift']());}catch(_0x4162bd){_0x272e8d['push'](_0x272e8d['shift']());}}}(a43_0xe46a,0x630a6));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';function a43_0x1841(_0x29eb6a,_0x64c914){_0x29eb6a=_0x29eb6a-0x1d8;const _0xe46abd=a43_0xe46a();let _0x184187=_0xe46abd[_0x29eb6a];return _0x184187;}async function execute(_0x2c9633){const _0x31ce2f=a43_0x1841,_0x56e1e1=_0x2c9633[_0x31ce2f(0x1db)](_0x31ce2f(0x1e0))?readScopedConfig(_0x31ce2f(0x1e0)):readConfig();return{'ok':!![],'data':_0x56e1e1};}function a43_0xe46a(){const _0x3a796b=['18008bNBshh','190122gADEdN','22CEgGjP','bool','790XcRtYK','457320PQPucJ','6380648sgHwFw','42CtlSlw','global','625343ZTWttS','9ubyIuq','List\x20all\x20config\x20values','1530560RpoqEn','read','268180neiDSy','boolean','list'];a43_0xe46a=function(){return _0x3a796b;};return a43_0xe46a();}export const configListDefinition={'service':'config','command':a43_0x39de2d(0x1e8),'description':a43_0x39de2d(0x1e3),'risk':a43_0x39de2d(0x1e5),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x39de2d(0x1e0),'type':a43_0x39de2d(0x1e7),'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
+ const a44_0x86e35a=a44_0x323b;function a44_0x2260(){const _0x2b064c=['set','Usage:\x20','3gehQWY','Invalid\x20value\x20for\x20\x22','Use\x20`','`,\x20`','Missing\x20value.','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','riskLevel','bool','Invalid\x20locale\x20value.','string','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Project','193169dhXlIW','includes','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','10qPEvTG','6WLroAF','450648HXHraw','\x20appcode\x20set\x20to:\x20','Top-level\x20key\x20\x22','2389035jUiFuy','appcode','1808784CPWdaX','82194MnpwVG','app','Global','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','write','apps','Config\x20value','\x22.\x20Allowed:\x20','validation','locale','\x20app\x20add\x20<name>\x20--appcode\x20','keys','227216cstIFz','env','config','key','value','join','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','120jcMlYP','object','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','1149659TXHqhT','global','Settable\x20top-level\x20keys:\x20','length'];a44_0x2260=function(){return _0x2b064c;};return a44_0x2260();}(function(_0x54eeda,_0x1e30e3){const _0x4fc453=a44_0x323b,_0x3b9dc8=_0x54eeda();while(!![]){try{const _0x44237c=parseInt(_0x4fc453(0x191))/0x1*(parseInt(_0x4fc453(0x196))/0x2)+parseInt(_0x4fc453(0x1b9))/0x3*(-parseInt(_0x4fc453(0x1a9))/0x4)+-parseInt(_0x4fc453(0x1b0))/0x5*(-parseInt(_0x4fc453(0x19d))/0x6)+-parseInt(_0x4fc453(0x1b3))/0x7+-parseInt(_0x4fc453(0x19c))/0x8+parseInt(_0x4fc453(0x197))/0x9+parseInt(_0x4fc453(0x195))/0xa*(-parseInt(_0x4fc453(0x19a))/0xb);if(_0x44237c===_0x1e30e3)break;else _0x3b9dc8['push'](_0x3b9dc8['shift']());}catch(_0x418829){_0x3b9dc8['push'](_0x3b9dc8['shift']());}}}(a44_0x2260,0x47c8f));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a44_0x323b(_0x4ffd01,_0x3faa97){_0x4ffd01=_0x4ffd01-0x18c;const _0x2260d7=a44_0x2260();let _0x323b3d=_0x2260d7[_0x4ffd01];return _0x323b3d;}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(_0x329270){const _0x5b9410=a44_0x323b,_0x1a3c00=_0x329270['str'](_0x5b9410(0x1ac)),_0x4dd2d2=_0x329270['str'](_0x5b9410(0x1ad));if(!_0x1a3c00)throw CliErrors['validation']('Missing\x20key.',_0x5b9410(0x1b8)+CLI_BIN_NAME+_0x5b9410(0x193));if(_0x4dd2d2===undefined||_0x4dd2d2==='')throw CliErrors['validation'](_0x5b9410(0x1bd),'Usage:\x20'+CLI_BIN_NAME+_0x5b9410(0x193));if(_0x4dd2d2[_0x5b9410(0x1b6)]>0x1f4)throw CliErrors[_0x5b9410(0x1a5)](_0x5b9410(0x18f));if(!isTopLevelConfigKey(_0x1a3c00))throw CliErrors['validation'](_0x5b9410(0x199)+_0x1a3c00+'\x22\x20is\x20not\x20settable.',_0x5b9410(0x1b5)+getTopLevelConfigKeySummary());if(_0x1a3c00===_0x5b9410(0x1bf))throw CliErrors[_0x5b9410(0x1a5)](_0x5b9410(0x1a0));if(CONFIG_ENUM_VALUES[_0x1a3c00]&&!CONFIG_ENUM_VALUES[_0x1a3c00][_0x5b9410(0x192)](_0x4dd2d2))throw CliErrors[_0x5b9410(0x1a5)](_0x5b9410(0x1ba)+_0x1a3c00+_0x5b9410(0x1a4)+CONFIG_ENUM_VALUES[_0x1a3c00][_0x5b9410(0x1ae)](',\x20'));if(_0x1a3c00===_0x5b9410(0x1a6)&&!normalizeLocale(_0x4dd2d2))throw CliErrors['validation'](_0x5b9410(0x18d),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0xa6be74={'global':_0x329270[_0x5b9410(0x18c)](_0x5b9410(0x1b4))},_0x26916c=resolveWriteScope(_0xa6be74),_0x412860=readScopedConfig(_0x26916c);let _0x287ac1=_0x1a3c00,_0x18371f=_0x4dd2d2;_0x1a3c00==='app'&&(_0x287ac1=_0x5b9410(0x19b),delete _0x412860[_0x5b9410(0x19e)]);_0x1a3c00===_0x5b9410(0x1a6)&&(_0x18371f=normalizeLocale(_0x4dd2d2));if(_0x1a3c00===_0x5b9410(0x1aa)){_0x18371f=normalizeEnv(_0x4dd2d2);if(!isProduction(_0x18371f)&&!isDaily(_0x18371f))throw CliErrors[_0x5b9410(0x1a5)](_0x5b9410(0x1be),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x1a3c00===_0x5b9410(0x19b)){const _0x1506bc=_0x412860['apps']&&typeof _0x412860[_0x5b9410(0x1a2)]===_0x5b9410(0x1b1)?Object[_0x5b9410(0x1a8)](_0x412860[_0x5b9410(0x1a2)]):[];if(_0x1506bc['length']>0x0)throw CliErrors[_0x5b9410(0x1a5)](_0x5b9410(0x1af),_0x5b9410(0x1bb)+CLI_BIN_NAME+_0x5b9410(0x1a7)+_0x18371f+_0x5b9410(0x1bc)+CLI_BIN_NAME+'\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x4488a4=buildCanonicalProjectConfig({..._0x412860},{'appCodes':[_0x18371f],'env':typeof _0x412860[_0x5b9410(0x1aa)]===_0x5b9410(0x18e)?_0x412860[_0x5b9410(0x1aa)]:undefined});writeScopedConfig(_0x4488a4,_0x26916c);const _0x34265f=_0x26916c===_0x5b9410(0x1b4)?_0x5b9410(0x19f):'Project';return{'ok':!![],'message':'✓\x20'+_0x34265f+_0x5b9410(0x198)+_0x18371f+_0x5b9410(0x194)};}_0x412860[_0x287ac1]=_0x18371f,writeScopedConfig(_0x412860,_0x26916c);const _0x457251=_0x26916c==='global'?_0x5b9410(0x19f):_0x5b9410(0x190);return{'ok':!![],'message':'✓\x20'+_0x457251+'\x20'+_0x287ac1+'\x20set\x20to:\x20'+_0x18371f};}export const configSetDefinition={'service':a44_0x86e35a(0x1ab),'command':a44_0x86e35a(0x1b7),'description':'Set\x20a\x20config\x20value','risk':a44_0x86e35a(0x1a1),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':'value','type':'string','description':a44_0x86e35a(0x1a3),'required':!![]},{'name':a44_0x86e35a(0x1b4),'type':'boolean','description':a44_0x86e35a(0x1b2),'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(_0xaac8e7,_0x5b82c0){var _0x1b23b1=a45_0x1c77,_0x689e7b=_0xaac8e7();while(!![]){try{var _0xc8510f=parseInt(_0x1b23b1(0xcd))/0x1*(-parseInt(_0x1b23b1(0xc2))/0x2)+-parseInt(_0x1b23b1(0xc5))/0x3*(parseInt(_0x1b23b1(0xc4))/0x4)+-parseInt(_0x1b23b1(0xcc))/0x5*(-parseInt(_0x1b23b1(0xcb))/0x6)+-parseInt(_0x1b23b1(0xc1))/0x7*(-parseInt(_0x1b23b1(0xc7))/0x8)+-parseInt(_0x1b23b1(0xca))/0x9+-parseInt(_0x1b23b1(0xc6))/0xa*(-parseInt(_0x1b23b1(0xce))/0xb)+parseInt(_0x1b23b1(0xc3))/0xc;if(_0xc8510f===_0x5b82c0)break;else _0x689e7b['push'](_0x689e7b['shift']());}catch(_0x1c4c3e){_0x689e7b['push'](_0x689e7b['shift']());}}}(a45_0x53fa,0xa6df3));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';function a45_0x1c77(_0x59337a,_0x3871f4){_0x59337a=_0x59337a-0xc0;var _0x53faa7=a45_0x53fa();var _0x1c7701=_0x53faa7[_0x59337a];return _0x1c7701;}function a45_0x53fa(){var _0x1896a1=['validation','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','4464855MWnKyE','459618GBwfQi','25Rkzwwv','174697UWELPF','1595qbYbCL','global','\x20init`\x20first.','140sbZzGI','12yjQsaj','10441668pOUztt','4aLhDcl','3866505zIWAVp','63890IIdkXg','534824nDBnNL'];a45_0x53fa=function(){return _0x1896a1;};return a45_0x53fa();}export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x7f27cf){var _0x10ee08=a45_0x1c77;if(_0x7f27cf['global'])return _0x10ee08(0xcf);if(!isInProject())throw CliErrors[_0x10ee08(0xc8)](_0x10ee08(0xc9),'Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x10ee08(0xc0));return'project';}export function readScopedConfig(_0x37314f){return readConfigFile(resolveWriteConfigPath(_0x37314f));}export function writeScopedConfig(_0xeae7ef,_0x2d8ffa){writeConfigFile(resolveWriteConfigPath(_0x2d8ffa),_0xeae7ef);}
@@ -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_0x2c66bb=a46_0x20df;(function(_0x5983e5,_0x1919f8){const _0x50f75c=a46_0x20df,_0x446da5=_0x5983e5();while(!![]){try{const _0x35a889=-parseInt(_0x50f75c(0x17a))/0x1*(-parseInt(_0x50f75c(0x17c))/0x2)+parseInt(_0x50f75c(0x17f))/0x3+-parseInt(_0x50f75c(0x173))/0x4*(parseInt(_0x50f75c(0x172))/0x5)+parseInt(_0x50f75c(0x181))/0x6+-parseInt(_0x50f75c(0x177))/0x7*(parseInt(_0x50f75c(0x17d))/0x8)+-parseInt(_0x50f75c(0x176))/0x9*(parseInt(_0x50f75c(0x179))/0xa)+parseInt(_0x50f75c(0x182))/0xb;if(_0x35a889===_0x1919f8)break;else _0x446da5['push'](_0x446da5['shift']());}catch(_0x420825){_0x446da5['push'](_0x446da5['shift']());}}}(a46_0x5d74,0x4a805));function a46_0x20df(_0xd0194f,_0x530fb1){_0xd0194f=_0xd0194f-0x172;const _0x5d742c=a46_0x5d74();let _0x20df73=_0x5d742c[_0xd0194f];return _0x20df73;}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a46_0x2c66bb(0x17b),'operation':a46_0x2c66bb(0x17b),'description':a46_0x2c66bb(0x180),'paramsRequired':![],'paramsHint':a46_0x2c66bb(0x178),'helpExtra':['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions',a46_0x2c66bb(0x174),a46_0x2c66bb(0x175),a46_0x2c66bb(0x17e),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page']['join']('\x0a')});function a46_0x5d74(){const _0x5b120c=['30lblMHl','10664nIRttr','filter','46lUubsE','8NRzBAu','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','1063116AWWlgw','Filter\x20dataset\x20records\x20with\x20query\x20conditions','3480342QKZmqF','972587IKiLlz','345uaztIo','31344rgYsZp','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','632844ZXdUbz','1479303RTOOfF','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'];a46_0x5d74=function(){return _0x5b120c;};return a46_0x5d74();}
@@ -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
+ const a47_0x436ea8=a47_0x160d;(function(_0x3dd617,_0x51b1c7){const _0x24f994=a47_0x160d,_0x55ba50=_0x3dd617();while(!![]){try{const _0x366579=parseInt(_0x24f994(0xd6))/0x1*(parseInt(_0x24f994(0xcf))/0x2)+-parseInt(_0x24f994(0xd8))/0x3*(parseInt(_0x24f994(0xda))/0x4)+parseInt(_0x24f994(0xd0))/0x5+-parseInt(_0x24f994(0xd1))/0x6*(parseInt(_0x24f994(0xd5))/0x7)+-parseInt(_0x24f994(0xd4))/0x8+parseInt(_0x24f994(0xd7))/0x9*(-parseInt(_0x24f994(0xce))/0xa)+parseInt(_0x24f994(0xd9))/0xb;if(_0x366579===_0x51b1c7)break;else _0x55ba50['push'](_0x55ba50['shift']());}catch(_0x16d099){_0x55ba50['push'](_0x55ba50['shift']());}}}(a47_0x4631,0xcf866));import{buildDataCommand}from'../../commands/data/shared.js';function a47_0x160d(_0x574aba,_0x36845b){_0x574aba=_0x574aba-0xce;const _0x463185=a47_0x4631();let _0x160dbd=_0x463185[_0x574aba];return _0x160dbd;}function a47_0x4631(){const _0xa6cef2=['514457pGdMak','15115509TqbjVL','285sZtPwG','17258362nAItbz','10308oWWgjl','10KSwQtg','6GPhBSE','2638945TwXwPo','6OLHZSV','getOne','Get\x20a\x20single\x20record\x20by\x20ID','4210168hcukLY','2376451gvHJlE'];a47_0x4631=function(){return _0xa6cef2;};return a47_0x4631();}export const dataGetOne=buildDataCommand({'command':a47_0x436ea8(0xd2),'operation':a47_0x436ea8(0xd2),'description':a47_0x436ea8(0xd3),'paramsRequired':!![],'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'});
@@ -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(_0x1ff62a,_0x3868c4){const _0x4dc6c0=a48_0x3f58,_0x394c82=_0x1ff62a();while(!![]){try{const _0x2559e8=parseInt(_0x4dc6c0(0xee))/0x1*(parseInt(_0x4dc6c0(0xf4))/0x2)+parseInt(_0x4dc6c0(0xf3))/0x3*(-parseInt(_0x4dc6c0(0xec))/0x4)+-parseInt(_0x4dc6c0(0xf2))/0x5+-parseInt(_0x4dc6c0(0xf0))/0x6+-parseInt(_0x4dc6c0(0xef))/0x7+-parseInt(_0x4dc6c0(0xed))/0x8*(parseInt(_0x4dc6c0(0xf1))/0x9)+parseInt(_0x4dc6c0(0xeb))/0xa;if(_0x2559e8===_0x3868c4)break;else _0x394c82['push'](_0x394c82['shift']());}catch(_0x5555bd){_0x394c82['push'](_0x394c82['shift']());}}}(a48_0x4c9d,0x4a862));function a48_0x4c9d(){const _0x5241c8=['1063671TwFbOV','946296tSIAHP','1017CaUNfJ','2100855zuxyZy','9TlSBLX','488snXNOV','17351930XuLLku','455292LFnvpq','27152wCbzCk','102DuTJLy'];a48_0x4c9d=function(){return _0x5241c8;};return a48_0x4c9d();}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';function a48_0x3f58(_0x33b7fc,_0x1502b0){_0x33b7fc=_0x33b7fc-0xeb;const _0x4c9d37=a48_0x4c9d();let _0x3f58af=_0x4c9d37[_0x33b7fc];return _0x3f58af;}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(_0x53dd6d,_0x3d0d23){const _0x37b332=a49_0x2cf6,_0x55a477=_0x53dd6d();while(!![]){try{const _0x1470ae=-parseInt(_0x37b332(0x1f6))/0x1+parseInt(_0x37b332(0x201))/0x2+-parseInt(_0x37b332(0x204))/0x3+-parseInt(_0x37b332(0x202))/0x4+-parseInt(_0x37b332(0x1f1))/0x5*(-parseInt(_0x37b332(0x20c))/0x6)+parseInt(_0x37b332(0x1ff))/0x7+parseInt(_0x37b332(0x1f3))/0x8;if(_0x1470ae===_0x3d0d23)break;else _0x55a477['push'](_0x55a477['shift']());}catch(_0x350161){_0x55a477['push'](_0x55a477['shift']());}}}(a49_0x1309,0x54138));import{executeDatasetDataOperation}from'../../core/api-client.js';function a49_0x2cf6(_0x518b1e,_0xd616b4){_0x518b1e=_0x518b1e-0x1f1;const _0x130916=a49_0x1309();let _0x2cf69b=_0x130916[_0x518b1e];return _0x2cf69b;}function a49_0x1309(){const _0x11fed4=['appCode','data','589541MtGMSy','str','data\x20','validation','paramsHint','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','getOne','string','helpExtra','20559okxhFd','description','1279024MxTsfI','660128IKwXVl','code','1644468kcWXQL','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','operation','alias','compress','\x20completed\x20in\x20','params','paramsRequired','281712QaHhwg','read','command','65FpuZuG','now','3154240btunFk'];a49_0x1309=function(){return _0x11fed4;};return a49_0x1309();}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x598b0c){const _0x4d3bb5=a49_0x2cf6;if(!_0x598b0c)throw CliErrors['flagMissing'](_0x4d3bb5(0x20a),'Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.');const _0x597e46=_0x598b0c['id'];if(_0x597e46===undefined||_0x597e46===null||_0x597e46==='')throw CliErrors[_0x4d3bb5(0x1f9)](_0x4d3bb5(0x205),'Example:\x20--params\x20\x27{\x22id\x22:123}\x27');}function parseCommandParams(_0x5ae59c){return parseJsonParams(_0x5ae59c)??{};}export function buildDataCommand(_0x5aa671){const _0x5b6955=a49_0x2cf6,_0x3236fd=_0x5b6955(0x1fb);return{'service':_0x5b6955(0x1f5),'command':_0x5aa671[_0x5b6955(0x20e)],'description':_0x5aa671[_0x5b6955(0x200)],'risk':_0x5b6955(0x20d),'defaultOutputFormat':_0x5b6955(0x208),'helpExtra':_0x5aa671[_0x5b6955(0x1fe)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x5b6955(0x207),'type':_0x5b6955(0x1fd),'description':_0x3236fd},{'name':_0x5b6955(0x20a),'type':_0x5b6955(0x1fd),'description':_0x5aa671[_0x5b6955(0x1fa)]}],async 'validate'(_0x364238){const _0x161f28=_0x5b6955,_0x538678=_0x364238[_0x161f28(0x1f7)](_0x161f28(0x20a));if(_0x5aa671[_0x161f28(0x20b)]&&!_0x538678)throw CliErrors['flagMissing'](_0x161f28(0x20a),_0x5aa671[_0x161f28(0x1fa)]);const _0x5d860f=parseJsonParams(_0x538678);_0x5aa671[_0x161f28(0x206)]===_0x161f28(0x1fc)&&assertGetOneId(_0x5d860f);},async 'execute'(_0x1a239f){const _0x2e6a4a=_0x5b6955,_0x508c20=parseCommandParams(_0x1a239f[_0x2e6a4a(0x1f7)](_0x2e6a4a(0x20a))),_0x21e491=Date[_0x2e6a4a(0x1f2)](),_0x14746c=await executeDatasetDataOperation(_0x1a239f[_0x2e6a4a(0x1f4)],_0x1a239f['str'](_0x2e6a4a(0x203)),_0x5aa671[_0x2e6a4a(0x206)],_0x508c20),_0x16a697=Date[_0x2e6a4a(0x1f2)]()-_0x21e491;return{'ok':!![],'data':{'result':_0x14746c,'elapsed':_0x16a697},'message':_0x2e6a4a(0x1f8)+_0x5aa671['command']+_0x2e6a4a(0x209)+_0x16a697+'ms'};}};}
@@ -0,0 +1 @@
1
+ const a50_0x201394=a50_0x3a25;(function(_0x3c13a4,_0xa8e14f){const _0x33c59d=a50_0x3a25,_0x16f12d=_0x3c13a4();while(!![]){try{const _0x3abd61=parseInt(_0x33c59d(0x158))/0x1+-parseInt(_0x33c59d(0x169))/0x2*(parseInt(_0x33c59d(0x168))/0x3)+-parseInt(_0x33c59d(0x161))/0x4*(parseInt(_0x33c59d(0x151))/0x5)+parseInt(_0x33c59d(0x164))/0x6+parseInt(_0x33c59d(0x14f))/0x7+parseInt(_0x33c59d(0x159))/0x8*(parseInt(_0x33c59d(0x154))/0x9)+parseInt(_0x33c59d(0x177))/0xa;if(_0x3abd61===_0xa8e14f)break;else _0x16f12d['push'](_0x16f12d['shift']());}catch(_0x41a9e7){_0x16f12d['push'](_0x16f12d['shift']());}}}(a50_0x41f0,0xe5a1d));function a50_0x3a25(_0x259f6c,_0x334f83){_0x259f6c=_0x259f6c-0x149;const _0x41f06a=a50_0x41f0();let _0x3a25fe=_0x41f06a[_0x259f6c];return _0x3a25fe;}import{deleteDataset,listDatasets}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{APPCODE_FLAG_OPTIONAL,CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a50_0x41f0(){const _0x37956b=['description','Deleted\x20','dbid=','length','13684250DzeRQT','\x20dataset(s).\x20This\x20only\x20deletes\x20platform\x20dataset\x20metadata\x20and\x20related\x20page/menu\x20records,\x20not\x20physical\x20databases\x20or\x20tables.','dbId','Would\x20delete\x20','POST','No\x20undeleted\x20dataset\x20found\x20for\x20','Matched\x20','tableName','\x20dataset(s)','dataset','filter','3931270rkhUdi','code','55okPHuF','dbid','One\x20of\x20--id,\x20--code,\x20or\x20--dbid\x20is\x20required.','7659SDXpEW','appCode','source','num','13970XKjlqj','10856owAHlE','confirm','isArray','validation','map','number','bool','/smartapi/dataset/delete-dataset','673172mIppgY','id=','name','965334ajZNbu','--confirm\x20is\x20required\x20to\x20delete\x20datasets.','Abort\x20unless\x20the\x20matched\x20dataset\x20count\x20equals\x20this\x20value','str','1403715QJRISb','2kveRyj','boolean','message','dbtableConfig','relationPages','expected-count','Delete\x20all\x20datasets\x20under\x20this\x20database\x20connection\x20id','Dataset\x20id','push','delete'];a50_0x41f0=function(){return _0x37956b;};return a50_0x41f0();}const DATASET_ID_FLAG={'name':'id','type':a50_0x201394(0x15e),'description':a50_0x201394(0x170)},DBID_FLAG={'name':a50_0x201394(0x152),'type':a50_0x201394(0x15e),'description':a50_0x201394(0x16f)},CONFIRM_FLAG={'name':a50_0x201394(0x15a),'type':a50_0x201394(0x16a),'description':'Required\x20to\x20execute\x20dataset\x20deletion'},EXPECTED_COUNT_FLAG={'name':a50_0x201394(0x16e),'type':a50_0x201394(0x15e),'description':a50_0x201394(0x166)};export const datasetDelete={'service':a50_0x201394(0x14d),'command':a50_0x201394(0x172),'description':'Delete\x20dataset\x20metadata\x20by\x20id/code\x20or\x20all\x20datasets\x20under\x20a\x20db\x20id','risk':'high-risk-write','flags':[DATASET_ID_FLAG,CODE_FLAG_OPTIONAL,DBID_FLAG,CONFIRM_FLAG,EXPECTED_COUNT_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x7eb9bc){const _0x2cdcbd=a50_0x201394,_0x59cce6=_0x7eb9bc[_0x2cdcbd(0x157)]('id'),_0x204a34=_0x7eb9bc[_0x2cdcbd(0x167)](_0x2cdcbd(0x150)),_0x21b91c=_0x7eb9bc[_0x2cdcbd(0x157)]('dbid'),_0x43e84e=[_0x59cce6>0x0,Boolean(_0x204a34),_0x21b91c>0x0][_0x2cdcbd(0x14e)](Boolean);if(_0x43e84e['length']===0x0)throw CliErrors[_0x2cdcbd(0x15c)](_0x2cdcbd(0x153));if(_0x43e84e[_0x2cdcbd(0x176)]>0x1)throw CliErrors[_0x2cdcbd(0x15c)]('Use\x20only\x20one\x20of\x20--id,\x20--code,\x20or\x20--dbid.');},async 'dryRun'(_0x38504e){const _0x43152b=a50_0x201394,_0x28caa0=await resolveTargets(_0x38504e);return{'method':_0x43152b(0x17b),'url':_0x43152b(0x160),'body':{'appCode':_0x38504e[_0x43152b(0x155)],'count':_0x28caa0[_0x43152b(0x176)],'datasets':_0x28caa0},'description':_0x43152b(0x17a)+_0x28caa0['length']+_0x43152b(0x178)};},async 'execute'(_0x26ab0f){const _0x520d2f=a50_0x201394;if(!_0x26ab0f[_0x520d2f(0x15f)](_0x520d2f(0x15a)))throw CliErrors[_0x520d2f(0x15c)](_0x520d2f(0x165),'Run\x20with\x20--dry-run\x20first,\x20then\x20add\x20--confirm\x20when\x20the\x20target\x20list\x20is\x20correct.');const _0x1f100d=await resolveTargets(_0x26ab0f),_0x2bfa72=[],_0x183ec3=[];for(const _0x318671 of _0x1f100d){try{await deleteDataset(_0x26ab0f[_0x520d2f(0x155)],_0x318671['id']),_0x2bfa72['push'](_0x318671);}catch(_0x92367a){_0x183ec3[_0x520d2f(0x171)]({..._0x318671,'error':_0x92367a instanceof Error?_0x92367a[_0x520d2f(0x16b)]:String(_0x92367a)});}}if(_0x183ec3[_0x520d2f(0x176)]>0x0)return{'ok':![],'data':{'requested':_0x1f100d[_0x520d2f(0x176)],'deletedCount':_0x2bfa72[_0x520d2f(0x176)],'failedCount':_0x183ec3[_0x520d2f(0x176)],'deleted':_0x2bfa72,'failed':_0x183ec3},'message':_0x520d2f(0x174)+_0x2bfa72['length']+'/'+_0x1f100d[_0x520d2f(0x176)]+'\x20dataset(s);\x20'+_0x183ec3[_0x520d2f(0x176)]+'\x20failed'};return{'ok':!![],'data':{'requested':_0x1f100d[_0x520d2f(0x176)],'deletedCount':_0x2bfa72[_0x520d2f(0x176)],'deleted':_0x2bfa72},'message':_0x520d2f(0x174)+_0x2bfa72[_0x520d2f(0x176)]+_0x520d2f(0x14c)};}};async function resolveTargets(_0x337527){const _0x28b859=a50_0x201394,_0x276e54=_0x337527[_0x28b859(0x157)]('id'),_0x136097=_0x337527[_0x28b859(0x167)]('code'),_0x34817b=_0x337527[_0x28b859(0x157)]('dbid');let _0x220972;_0x136097?(_0x220972=await listDatasets(_0x337527[_0x28b859(0x155)],{'code':_0x136097}),_0x220972=_0x220972['filter'](_0x4fffce=>_0x4fffce[_0x28b859(0x150)]===_0x136097)):(_0x220972=await listDatasets(_0x337527['appCode']),_0x276e54>0x0&&(_0x220972=_0x220972[_0x28b859(0x14e)](_0x239107=>_0x239107['id']===_0x276e54)),_0x34817b>0x0&&(_0x220972=_0x220972[_0x28b859(0x14e)](_0x553e1f=>_0x553e1f[_0x28b859(0x16c)]?.[_0x28b859(0x179)]===_0x34817b)));const _0x2de823=_0x220972[_0x28b859(0x15d)](normalizeTarget);if(_0x2de823[_0x28b859(0x176)]===0x0){const _0x25f4f5=_0x136097||(_0x276e54>0x0?_0x28b859(0x162)+_0x276e54:_0x28b859(0x175)+_0x34817b);throw CliErrors[_0x28b859(0x15c)](_0x28b859(0x149)+_0x25f4f5+'.');}const _0x24f14b=_0x337527[_0x28b859(0x157)](_0x28b859(0x16e));if(_0x24f14b>0x0&&_0x2de823[_0x28b859(0x176)]!==_0x24f14b)throw CliErrors[_0x28b859(0x15c)](_0x28b859(0x14a)+_0x2de823[_0x28b859(0x176)]+'\x20dataset(s),\x20but\x20--expected-count\x20is\x20'+_0x24f14b+'.');return _0x2de823;}function normalizeTarget(_0x3f5978){const _0x6b62ff=a50_0x201394,_0x7b0906=_0x3f5978[_0x6b62ff(0x16c)]??{};return{'id':_0x3f5978['id'],'code':_0x3f5978['code'],'name':_0x3f5978[_0x6b62ff(0x163)],'description':_0x3f5978[_0x6b62ff(0x173)],'source':_0x3f5978[_0x6b62ff(0x156)],'dbId':_0x7b0906['dbId'],'dbName':_0x7b0906['dbName'],'tableName':_0x7b0906[_0x6b62ff(0x14b)],'relatedPageCount':Array[_0x6b62ff(0x15b)](_0x3f5978[_0x6b62ff(0x16d)])?_0x3f5978[_0x6b62ff(0x16d)][_0x6b62ff(0x176)]: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
+ const a51_0x440e05=a51_0x2fe0;(function(_0x8c65ba,_0xcede7f){const _0x505f2d=a51_0x2fe0,_0x53789a=_0x8c65ba();while(!![]){try{const _0x28afec=parseInt(_0x505f2d(0x115))/0x1*(parseInt(_0x505f2d(0x133))/0x2)+-parseInt(_0x505f2d(0x11d))/0x3*(parseInt(_0x505f2d(0xfe))/0x4)+-parseInt(_0x505f2d(0x11a))/0x5*(parseInt(_0x505f2d(0x127))/0x6)+parseInt(_0x505f2d(0x142))/0x7+-parseInt(_0x505f2d(0x123))/0x8+parseInt(_0x505f2d(0x13c))/0x9+parseInt(_0x505f2d(0x106))/0xa;if(_0x28afec===_0xcede7f)break;else _0x53789a['push'](_0x53789a['shift']());}catch(_0x5f3f40){_0x53789a['push'](_0x53789a['shift']());}}}(a51_0x5889,0xcbe17));import{getDatasetDetail}from'../../core/api-client.js';function a51_0x5889(){const _0x3e18a3=['relations','datasetKey','displayName','path','6641384hfRFpY','relatedPageInfoList','map','isArray','4976346kwSlas','host','required','doVersion','requestBody','parse','dbName','allFields','dbtableConfig','toField','dbType','toTableName','2klmZEw','trim','string','deleted','creatorIdField','requestFields','length','createTimeField','labelField','6809220rYPpZp','entries','logicField','modelId','doType','modifierIdField','3138597UvgvXX','columnCodeListWithDeleted','push','name','code','toDatasetCode','split','4JOqujd','responseBody','str','dblinkInfoDTO','sourceType','description','dataType','object','19896200fHEBhT','tableName','fields','dbId','read','tableComment','updateTimeField','responseFields','dataset','method','Get\x20dataset\x20detail\x20including\x20fields\x20and\x20operations','toDatasetName','type','beforeScriptId','formatRules','916295gzcLbd','indexes','pkField','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','afterScriptId','5yTyBsY','detail','options','4848621uUfNAH','extend'];a51_0x5889=function(){return _0x3e18a3;};return a51_0x5889();}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function normalizeField(_0x43d378){const _0x5e4dbc=a51_0x2fe0;if(_0x43d378['deleted'])return null;const _0x28af5c=Boolean(_0x43d378[_0x5e4dbc(0x121)]!==undefined||_0x43d378[_0x5e4dbc(0x140)]!==undefined);let _0x42f9d6={};if(!_0x28af5c&&typeof _0x43d378[_0x5e4dbc(0x11e)]===_0x5e4dbc(0x135))try{_0x42f9d6=JSON[_0x5e4dbc(0x12c)](_0x43d378['extend']);}catch{}const _0x462511=_0x28af5c?_0x43d378[_0x5e4dbc(0x145)]:_0x43d378[_0x5e4dbc(0xfb)],_0x4af871=_0x28af5c?_0x43d378[_0x5e4dbc(0x121)]:_0x43d378[_0x5e4dbc(0x145)],_0x547b95=_0x28af5c?_0x43d378[_0x5e4dbc(0x140)]:_0x43d378[_0x5e4dbc(0x112)]||_0x43d378[_0x5e4dbc(0x104)],_0x2dab70=_0x28af5c?_0x43d378[_0x5e4dbc(0x117)]===!![]:_0x42f9d6[_0x5e4dbc(0x117)]===!![],_0x4f9775=_0x28af5c?_0x43d378['required']===!![]:_0x42f9d6[_0x5e4dbc(0x129)]===!![],_0x13450e=_0x28af5c?_0x43d378[_0x5e4dbc(0x11c)]??null:_0x42f9d6['options']??null,_0x4cd0ec={'name':_0x462511,'displayName':_0x4af871||_0x462511,'type':_0x547b95,'dbType':_0x43d378[_0x5e4dbc(0x131)],'pk':_0x2dab70,'required':_0x4f9775,'description':_0x43d378[_0x5e4dbc(0x103)]||undefined};return Array[_0x5e4dbc(0x126)](_0x13450e)&&_0x13450e[_0x5e4dbc(0x139)]>0x0&&(_0x4cd0ec['options']=_0x13450e),_0x4cd0ec;}function parseJsonMaybe(_0x5444a6){const _0xa1ced9=a51_0x2fe0;if(typeof _0x5444a6!==_0xa1ced9(0x135))return _0x5444a6;try{return JSON['parse'](_0x5444a6);}catch{return _0x5444a6;}}function normalizeOperationEntry(_0x1b43a4,_0x5355d8){const _0x3e106c=a51_0x2fe0;if(!_0x5355d8||typeof _0x5355d8!=='object')return null;if(!_0x5355d8['method']||!_0x5355d8[_0x3e106c(0x122)])return null;const _0x16193a={'name':_0x1b43a4,'method':_0x5355d8[_0x3e106c(0x10f)],'path':_0x5355d8[_0x3e106c(0x122)]};if(_0x5355d8[_0x3e106c(0x128)])_0x16193a[_0x3e106c(0x128)]=_0x5355d8['host'];if(_0x5355d8['requestBody']!=null){const _0x1cc5b9=parseJsonMaybe(_0x5355d8[_0x3e106c(0x12b)]);_0x16193a[_0x3e106c(0x12b)]=_0x1cc5b9;}if(_0x5355d8[_0x3e106c(0xff)]!=null){const _0x48752b=parseJsonMaybe(_0x5355d8['responseBody']);_0x16193a[_0x3e106c(0xff)]=_0x48752b;}if(_0x5355d8[_0x3e106c(0x113)]!=null)_0x16193a[_0x3e106c(0x113)]=_0x5355d8[_0x3e106c(0x113)];if(_0x5355d8[_0x3e106c(0x119)]!=null)_0x16193a['afterScriptId']=_0x5355d8[_0x3e106c(0x119)];if(Array['isArray'](_0x5355d8[_0x3e106c(0x138)]))_0x16193a[_0x3e106c(0x138)]=_0x5355d8[_0x3e106c(0x138)];if(Array[_0x3e106c(0x126)](_0x5355d8[_0x3e106c(0x10d)]))_0x16193a[_0x3e106c(0x10d)]=_0x5355d8[_0x3e106c(0x10d)];return _0x16193a;}function summarizeDbtable(_0x3e09c1){const _0x59b006=a51_0x2fe0,_0x34a2f2={},_0x390e58=[_0x59b006(0x109),_0x59b006(0x12d),_0x59b006(0x107),_0x59b006(0x120),_0x59b006(0x117),_0x59b006(0x12e),_0x59b006(0x13e),_0x59b006(0x13a),_0x59b006(0x10c),_0x59b006(0x137),'creatorNameField',_0x59b006(0x141),'modifierNameField',_0x59b006(0x13b),_0x59b006(0x101)];for(const _0x53134a of _0x390e58){if(_0x3e09c1[_0x53134a]!==undefined)_0x34a2f2[_0x53134a]=_0x3e09c1[_0x53134a];}return typeof _0x34a2f2[_0x59b006(0x12e)]===_0x59b006(0x135)&&_0x34a2f2[_0x59b006(0x12e)][_0x59b006(0x139)]>0x0&&(_0x34a2f2['allFieldNames']=_0x34a2f2[_0x59b006(0x12e)][_0x59b006(0xfd)](',')[_0x59b006(0x125)](_0x2935c7=>_0x2935c7[_0x59b006(0x134)]())['filter'](Boolean)),_0x34a2f2;}function normalizeRelatedPages(_0x286128){const _0x396bac=a51_0x2fe0;if(!Array[_0x396bac(0x126)](_0x286128))return[];return _0x286128['filter'](_0x4f38e2=>_0x4f38e2&&typeof _0x4f38e2===_0x396bac(0x105))['map'](_0x15cc96=>({'id':_0x15cc96['id'],'type':_0x15cc96[_0x396bac(0x112)],'code':_0x15cc96[_0x396bac(0xfb)],'title':_0x15cc96['title'],'deleted':_0x15cc96[_0x396bac(0x136)]===!![]}));}function a51_0x2fe0(_0xd87d6b,_0xadc209){_0xd87d6b=_0xd87d6b-0xfb;const _0x588915=a51_0x5889();let _0x2fe0c2=_0x588915[_0xd87d6b];return _0x2fe0c2;}export const datasetDetail={'service':a51_0x440e05(0x10e),'command':a51_0x440e05(0x11b),'description':a51_0x440e05(0x110),'risk':a51_0x440e05(0x10a),'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':a51_0x440e05(0x135),'description':a51_0x440e05(0x118)}],async 'execute'(_0x3b6908){const _0x405fe7=a51_0x440e05,_0x5de263=await getDatasetDetail(_0x3b6908[_0x405fe7(0x100)]('code')),_0xcd6cb2=Array[_0x405fe7(0x126)](_0x5de263[_0x405fe7(0x108)])?_0x5de263[_0x405fe7(0x108)]:Array[_0x405fe7(0x126)](_0x5de263['properties'])?_0x5de263['properties']:[],_0x440987=_0xcd6cb2[_0x405fe7(0x125)](_0x2746ac=>normalizeField(_0x2746ac))['filter'](_0x5aad1e=>_0x5aad1e!==null),_0x3aa4f8=_0x5de263['operations']??{},_0xbe50b9=[];for(const [_0x138c4d,_0x44ff8f]of Object[_0x405fe7(0x13d)](_0x3aa4f8)){const _0x3b50e8=normalizeOperationEntry(_0x138c4d,_0x44ff8f);if(_0x3b50e8)_0xbe50b9[_0x405fe7(0x144)](_0x3b50e8);}const _0x27c982=_0x5de263[_0x405fe7(0x12f)]??{},_0xa518f9=_0x5de263[_0x405fe7(0x10e)]??{},_0x46a3a6=_0x27c982['dbId']!=null?{'id':_0x27c982['dbId'],'name':_0x27c982[_0x405fe7(0x12d)]??null}:undefined;let _0x37f20a;return typeof _0x5de263[_0x405fe7(0x11e)]==='string'&&(_0x37f20a=parseJsonMaybe(_0x5de263[_0x405fe7(0x11e)])),{'ok':!![],'data':{'id':_0x5de263[_0x405fe7(0x13f)]??_0x5de263['id'],'name':_0x5de263[_0x405fe7(0x145)],'code':_0x5de263['modelCode']||_0x5de263[_0x405fe7(0xfb)],'doVersion':_0x5de263[_0x405fe7(0x12a)],'description':_0x5de263[_0x405fe7(0x103)]||_0xa518f9[_0x405fe7(0x10b)]||undefined,'source':_0x5de263['source']||_0xa518f9[_0x405fe7(0x102)],'table':_0x27c982[_0x405fe7(0x107)]||_0xa518f9['tableName'],'datasetKey':_0x27c982[_0x405fe7(0x120)],'pk':_0x27c982[_0x405fe7(0x117)],'db':_0x46a3a6,'dbtable':summarizeDbtable(_0x27c982),'fields':_0x440987,'operations':_0xbe50b9,'indexes':Array['isArray'](_0xa518f9[_0x405fe7(0x116)])?_0xa518f9[_0x405fe7(0x116)]:[],'relations':Array['isArray'](_0x5de263[_0x405fe7(0x11f)])?_0x5de263[_0x405fe7(0x11f)][_0x405fe7(0x125)](_0x11e65d=>({'fromField':_0x11e65d['fromField'],'toDataset':_0x11e65d[_0x405fe7(0x111)],'toCode':_0x11e65d[_0x405fe7(0xfc)],'toTable':_0x11e65d[_0x405fe7(0x132)],'toField':_0x11e65d[_0x405fe7(0x130)],'labelField':_0x11e65d['toFieldLabel']||undefined})):[],'relatedPages':normalizeRelatedPages(_0x5de263[_0x405fe7(0x124)]),...Array[_0x405fe7(0x126)](_0x5de263[_0x405fe7(0x143)])?{'columnCodeListWithDeleted':_0x5de263[_0x405fe7(0x143)]}:{},'formatRules':Array[_0x405fe7(0x126)](_0x5de263[_0x405fe7(0x114)])?_0x5de263[_0x405fe7(0x114)]:[],'validateRules':Array[_0x405fe7(0x126)](_0x5de263['validateRules'])?_0x5de263['validateRules']:[],..._0x37f20a!==undefined?{'extend':_0x37f20a}:{},'stats':{'fieldCount':_0x440987['length'],'operationCount':_0xbe50b9[_0x405fe7(0x139)]}}};}};
@@ -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(_0x2af359,_0x3ac330){const _0x2fd9cc=a52_0x5a0a,_0x23b279=_0x2af359();while(!![]){try{const _0x465a01=-parseInt(_0x2fd9cc(0x13e))/0x1+parseInt(_0x2fd9cc(0x13b))/0x2*(parseInt(_0x2fd9cc(0x13f))/0x3)+parseInt(_0x2fd9cc(0x13d))/0x4+-parseInt(_0x2fd9cc(0x140))/0x5+parseInt(_0x2fd9cc(0x139))/0x6+-parseInt(_0x2fd9cc(0x13c))/0x7*(-parseInt(_0x2fd9cc(0x141))/0x8)+-parseInt(_0x2fd9cc(0x13a))/0x9;if(_0x465a01===_0x3ac330)break;else _0x23b279['push'](_0x23b279['shift']());}catch(_0x4ec762){_0x23b279['push'](_0x23b279['shift']());}}}(a52_0x2c3c,0x4aa7b));function a52_0x2c3c(){const _0x1682cb=['3297252QAtvMz','2376135VYFoVC','1558ehuPtj','6923uoMlkq','606436LzxtZZ','331627DCZzDH','195BaseQi','1036930ObMHbF','2888PXKSgB'];a52_0x2c3c=function(){return _0x1682cb;};return a52_0x2c3c();}import{datasetList}from'../../commands/dataset/list.js';import{datasetDetail}from'../../commands/dataset/detail.js';import{datasetOperations}from'../../commands/dataset/operations.js';import{datasetLinks}from'../../commands/dataset/links.js';import{datasetLinkCreate}from'../../commands/dataset/link-create.js';import{datasetLinkUpdate}from'../../commands/dataset/link-update.js';import{datasetLinkDelete}from'../../commands/dataset/link-delete.js';function a52_0x5a0a(_0x429309,_0x172410){_0x429309=_0x429309-0x139;const _0x2c3cba=a52_0x2c3c();let _0x5a0ae2=_0x2c3cba[_0x429309];return _0x5a0ae2;}import{datasetDelete}from'../../commands/dataset/delete.js';export const datasetDefinitions=[datasetList,datasetDetail,datasetOperations,datasetLinks,datasetLinkCreate,datasetLinkUpdate,datasetLinkDelete,datasetDelete];
@@ -0,0 +1 @@
1
+ const a53_0x477874=a53_0x593d;(function(_0x78c47e,_0x57865f){const _0x5670ac=a53_0x593d,_0x554acc=_0x78c47e();while(!![]){try{const _0x338788=parseInt(_0x5670ac(0x157))/0x1*(parseInt(_0x5670ac(0x169))/0x2)+-parseInt(_0x5670ac(0x15d))/0x3+-parseInt(_0x5670ac(0x15b))/0x4*(-parseInt(_0x5670ac(0x165))/0x5)+-parseInt(_0x5670ac(0x162))/0x6*(parseInt(_0x5670ac(0x15f))/0x7)+parseInt(_0x5670ac(0x164))/0x8+-parseInt(_0x5670ac(0x161))/0x9+-parseInt(_0x5670ac(0x166))/0xa*(parseInt(_0x5670ac(0x15c))/0xb);if(_0x338788===_0x57865f)break;else _0x554acc['push'](_0x554acc['shift']());}catch(_0x23feb8){_0x554acc['push'](_0x554acc['shift']());}}}(a53_0x10c0,0xea2f7));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,readLinkInput,relationToBackend,resolveRequiredDb,TO_COLUMN_FLAG,TO_LABEL_COLUMN_FLAG,TO_TABLE_FLAG}from'../../commands/dataset/link-shared.js';function a53_0x10c0(){const _0x41206f=['4733550URhxRN','10446oJAUdy','column','14806904ZMRsXV','5HVUnAp','70gzXINM','POST','from','106dQghRS','\x20->\x20','appCode','write','table','dbId','relation_conflict:\x20relation\x20already\x20exists:\x20','relationKey','25265gFBmDn','dataset','validation','str','5913164tDhQCD','4582985edaUPK','726621clQBos','create','98eWPmBw','Would\x20create\x20dataset\x20link\x20'];a53_0x10c0=function(){return _0x41206f;};return a53_0x10c0();}function a53_0x593d(_0x51bcba,_0x30f51e){_0x51bcba=_0x51bcba-0x155;const _0x10c05a=a53_0x10c0();let _0x593d1f=_0x10c05a[_0x51bcba];return _0x593d1f;}const BACKEND_PATH='/smartapi/question/er-config/erCreate';export const datasetLinkCreate={'service':a53_0x477874(0x158),'command':'link-create','description':'Create\x20one\x20dataset\x20link\x20relation\x20in\x20the\x20ER\x20graph','risk':a53_0x477874(0x16c),'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'(_0x552127){readLinkInput(_0x552127,{'includeLabelAndCardinality':!![]});},async 'dryRun'(_0x2f5ffc){const _0x3c9547=a53_0x477874,_0xd40f28=await resolveRequiredDb(_0x2f5ffc[_0x3c9547(0x16b)],_0x2f5ffc[_0x3c9547(0x15a)]('db')),_0x2b090a=readLinkInput(_0x2f5ffc,{'includeLabelAndCardinality':!![]});return{'method':_0x3c9547(0x167),'url':BACKEND_PATH,'body':{'appCode':_0x2f5ffc[_0x3c9547(0x16b)],'dblinkId':_0xd40f28[_0x3c9547(0x16e)],'relation':relationToBackend(_0x2b090a)},'description':_0x3c9547(0x160)+_0x2b090a[_0x3c9547(0x168)]['table']+'.'+_0x2b090a[_0x3c9547(0x168)]['column']+_0x3c9547(0x16a)+_0x2b090a['to'][_0x3c9547(0x16d)]+'.'+_0x2b090a['to']['column']};},async 'execute'(_0xab2f65){const _0x50564e=a53_0x477874,_0x5d2a81=await resolveRequiredDb(_0xab2f65['appCode'],_0xab2f65[_0x50564e(0x15a)]('db')),_0x2ed385=readLinkInput(_0xab2f65,{'includeLabelAndCardinality':!![]}),_0x140d88=await findExistingLink(_0xab2f65[_0x50564e(0x16b)],_0x5d2a81['dbId'],_0x2ed385);if(_0x140d88)throw CliErrors[_0x50564e(0x159)](_0x50564e(0x155)+_0x140d88[_0x50564e(0x156)],'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.');return await createErRelation({'appCode':_0xab2f65[_0x50564e(0x16b)],'dblinkId':_0x5d2a81[_0x50564e(0x16e)],'relation':relationToBackend(_0x2ed385)}),{'ok':!![],'data':buildMutationData({'operation':_0x50564e(0x15e),'appCode':_0xab2f65['appCode'],'db':_0x5d2a81,'input':_0x2ed385,'before':null,'dryRun':![],'backendPath':BACKEND_PATH}),'message':'Created\x20dataset\x20link:\x20'+_0x2ed385[_0x50564e(0x168)][_0x50564e(0x16d)]+'.'+_0x2ed385[_0x50564e(0x168)][_0x50564e(0x163)]+_0x50564e(0x16a)+_0x2ed385['to'][_0x50564e(0x16d)]+'.'+_0x2ed385['to']['column']};}};
@@ -0,0 +1 @@
1
+ const a54_0x255645=a54_0x1fc2;(function(_0x3593c2,_0x146f3c){const _0x211672=a54_0x1fc2,_0x1fcc62=_0x3593c2();while(!![]){try{const _0x5964f9=parseInt(_0x211672(0x12a))/0x1*(parseInt(_0x211672(0x12b))/0x2)+parseInt(_0x211672(0x113))/0x3+parseInt(_0x211672(0x11f))/0x4*(-parseInt(_0x211672(0x11c))/0x5)+parseInt(_0x211672(0x117))/0x6+-parseInt(_0x211672(0x129))/0x7*(-parseInt(_0x211672(0x125))/0x8)+-parseInt(_0x211672(0x12c))/0x9*(parseInt(_0x211672(0x122))/0xa)+-parseInt(_0x211672(0x116))/0xb;if(_0x5964f9===_0x146f3c)break;else _0x1fcc62['push'](_0x1fcc62['shift']());}catch(_0x4b44fe){_0x1fcc62['push'](_0x1fcc62['shift']());}}}(a54_0x2e04,0xe83a8));import{deleteErRelation}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a54_0x2e04(){const _0x5c4f5a=['9152922mQrcCp','\x20->\x20','validation','delete','link-delete','55gKHTno','str','Would\x20delete\x20dataset\x20link\x20','426616uhogXf','table','high-risk-write','1692830jNrkKo','column','from','12262424yMBjOO','Deleted\x20dataset\x20link:\x20','Run\x20dataset\x20links\x20--db\x20first\x20to\x20inspect\x20the\x20current\x20relation\x20graph.','dbId','7ErOSto','2aANqeD','914474RQNAGx','18xyYLSR','2124078ftULdc','appCode','relation_not_found:\x20','24396042vBLUXU'];a54_0x2e04=function(){return _0x5c4f5a;};return a54_0x2e04();}function a54_0x1fc2(_0xb9f1b4,_0xfa7df3){_0xb9f1b4=_0xb9f1b4-0x113;const _0x2e044c=a54_0x2e04();let _0x1fc261=_0x2e044c[_0xb9f1b4];return _0x1fc261;}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='/smartapi/question/er-config/erDelete';export const datasetLinkDelete={'service':'dataset','command':a54_0x255645(0x11b),'description':'Delete\x20one\x20dataset\x20link\x20relation\x20from\x20the\x20ER\x20graph','risk':a54_0x255645(0x121),'flags':[DB_FLAG,FROM_TABLE_FLAG,FROM_COLUMN_FLAG,TO_TABLE_FLAG,TO_COLUMN_FLAG,APPCODE_FLAG_OPTIONAL],async 'validate'(_0x33b89c){readLinkInput(_0x33b89c);},async 'dryRun'(_0x46eed3){const _0x31f668=a54_0x255645,_0x3dbc4f=await resolveRequiredDb(_0x46eed3[_0x31f668(0x114)],_0x46eed3[_0x31f668(0x11d)]('db')),_0x166aea=readLinkInput(_0x46eed3);return{'method':'POST','url':BACKEND_PATH,'body':{'appCode':_0x46eed3['appCode'],'dblinkId':_0x3dbc4f['dbId'],'relation':relationToBackend(_0x166aea)},'description':_0x31f668(0x11e)+_0x166aea[_0x31f668(0x124)][_0x31f668(0x120)]+'.'+_0x166aea[_0x31f668(0x124)][_0x31f668(0x123)]+_0x31f668(0x118)+_0x166aea['to'][_0x31f668(0x120)]+'.'+_0x166aea['to'][_0x31f668(0x123)]};},async 'execute'(_0x59dd04){const _0x2c794a=a54_0x255645,_0x18fcf4=await resolveRequiredDb(_0x59dd04[_0x2c794a(0x114)],_0x59dd04[_0x2c794a(0x11d)]('db')),_0x4c73e3=readLinkInput(_0x59dd04),_0x4c2ccf=await findExistingLink(_0x59dd04['appCode'],_0x18fcf4['dbId'],_0x4c73e3);if(!_0x4c2ccf)throw CliErrors[_0x2c794a(0x119)](_0x2c794a(0x115)+_0x4c73e3[_0x2c794a(0x124)][_0x2c794a(0x120)]+'.'+_0x4c73e3[_0x2c794a(0x124)]['column']+'\x20->\x20'+_0x4c73e3['to'][_0x2c794a(0x120)]+'.'+_0x4c73e3['to'][_0x2c794a(0x123)],_0x2c794a(0x127));return await deleteErRelation({'appCode':_0x59dd04[_0x2c794a(0x114)],'dblinkId':_0x18fcf4[_0x2c794a(0x128)],'relation':relationToBackend(_0x4c73e3)}),{'ok':!![],'data':buildMutationData({'operation':_0x2c794a(0x11a),'appCode':_0x59dd04['appCode'],'db':_0x18fcf4,'input':_0x4c73e3,'before':_0x4c2ccf,'dryRun':![],'backendPath':BACKEND_PATH}),'message':_0x2c794a(0x126)+_0x4c73e3[_0x2c794a(0x124)][_0x2c794a(0x120)]+'.'+_0x4c73e3['from']['column']+'\x20->\x20'+_0x4c73e3['to'][_0x2c794a(0x120)]+'.'+_0x4c73e3['to'][_0x2c794a(0x123)]};}};