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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/delete.js +1 -1
  52. package/lib/commands/dataset/detail.js +1 -1
  53. package/lib/commands/dataset/index.js +1 -1
  54. package/lib/commands/dataset/link-create.js +1 -1
  55. package/lib/commands/dataset/link-delete.js +1 -1
  56. package/lib/commands/dataset/link-shared.js +1 -1
  57. package/lib/commands/dataset/link-update.js +1 -1
  58. package/lib/commands/dataset/links.js +1 -1
  59. package/lib/commands/dataset/list.js +1 -1
  60. package/lib/commands/dataset/operations.js +1 -1
  61. package/lib/commands/db/analyze-cancel.js +1 -1
  62. package/lib/commands/db/analyze-start.js +1 -1
  63. package/lib/commands/db/analyze-status.js +1 -1
  64. package/lib/commands/db/create.js +1 -1
  65. package/lib/commands/db/delete.js +1 -1
  66. package/lib/commands/db/detail.js +1 -1
  67. package/lib/commands/db/diff.js +1 -1
  68. package/lib/commands/db/index.js +1 -1
  69. package/lib/commands/db/list.js +1 -1
  70. package/lib/commands/db/shared.js +1 -1
  71. package/lib/commands/db/tables.js +1 -1
  72. package/lib/commands/db/test.js +1 -1
  73. package/lib/commands/db/update.js +1 -1
  74. package/lib/commands/doctor.js +1 -1
  75. package/lib/commands/init/index.js +1 -1
  76. package/lib/commands/issue/index.js +1 -1
  77. package/lib/commands/issue/report.js +1 -1
  78. package/lib/commands/logs/index.js +1 -1
  79. package/lib/commands/menu/index.js +1 -1
  80. package/lib/commands/menu/shared/compare-table.js +1 -1
  81. package/lib/commands/menu/shared/index.js +1 -1
  82. package/lib/commands/menu/shared/inquirer.js +1 -1
  83. package/lib/commands/menu/shared/local-pages.js +1 -1
  84. package/lib/commands/menu/shared/logic.js +1 -1
  85. package/lib/commands/menu/shared/service.js +1 -1
  86. package/lib/commands/menu/shared/sync-core.js +1 -1
  87. package/lib/commands/menu/shared/update-core.js +1 -1
  88. package/lib/commands/menu/shared/valid-url.js +1 -1
  89. package/lib/commands/menu/sync.js +1 -1
  90. package/lib/commands/menu/update.js +1 -1
  91. package/lib/commands/page/generate-start.js +1 -1
  92. package/lib/commands/page/generate-status.js +1 -1
  93. package/lib/commands/page/index.js +1 -1
  94. package/lib/commands/page/pull.js +1 -1
  95. package/lib/commands/page/push.js +1 -1
  96. package/lib/commands/page/shared.js +1 -1
  97. package/lib/commands/page/standard-page-status.js +1 -1
  98. package/lib/commands/page/sync.js +1 -1
  99. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  100. package/lib/commands/project/create/format-elapsed.js +1 -1
  101. package/lib/commands/project/create/main.js +1 -1
  102. package/lib/commands/project/create/non-interactive.js +1 -1
  103. package/lib/commands/project/create/project-template-path.js +1 -1
  104. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  105. package/lib/commands/project/create/use-format-code.js +1 -1
  106. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  107. package/lib/commands/project/index.js +1 -1
  108. package/lib/commands/project/init.js +1 -1
  109. package/lib/commands/project/upgrade.js +1 -1
  110. package/lib/commands/registry.js +1 -1
  111. package/lib/commands/run/index.js +1 -1
  112. package/lib/commands/schema.js +1 -1
  113. package/lib/commands/skill/index.js +1 -1
  114. package/lib/commands/sql/create.js +1 -1
  115. package/lib/commands/sql/delete.js +1 -1
  116. package/lib/commands/sql/detail.js +1 -1
  117. package/lib/commands/sql/exec.js +1 -1
  118. package/lib/commands/sql/index.js +1 -1
  119. package/lib/commands/sql/list.js +1 -1
  120. package/lib/commands/sql/pull.js +1 -1
  121. package/lib/commands/sql/push.js +1 -1
  122. package/lib/commands/sql/save.js +1 -1
  123. package/lib/commands/sql/shared.js +1 -1
  124. package/lib/commands/sql/status.js +1 -1
  125. package/lib/commands/sql/validate.js +1 -1
  126. package/lib/config/schema.js +1 -1
  127. package/lib/constant/cdn.js +1 -1
  128. package/lib/constant/cli.js +1 -1
  129. package/lib/constant/defaults.js +1 -1
  130. package/lib/constant/domain.js +1 -1
  131. package/lib/constant/env.js +1 -1
  132. package/lib/constant/output.js +1 -1
  133. package/lib/constant/paths.js +1 -1
  134. package/lib/constant/risk.js +1 -1
  135. package/lib/context.js +1 -1
  136. package/lib/core/alias-resolver.js +1 -1
  137. package/lib/core/api-client.js +1 -1
  138. package/lib/core/bff/config.js +1 -1
  139. package/lib/core/bff/file-system.js +1 -1
  140. package/lib/core/bff/hash.js +1 -1
  141. package/lib/core/bff/lock.js +1 -1
  142. package/lib/core/bff/utils.js +1 -1
  143. package/lib/core/db-resolver.js +1 -1
  144. package/lib/core/page/file-system.js +1 -1
  145. package/lib/core/page/hash.js +1 -1
  146. package/lib/core/page/lock.js +1 -1
  147. package/lib/core/sql-sync/config.js +1 -1
  148. package/lib/core/sql-sync/file-system.js +1 -1
  149. package/lib/core/sql-sync/hash.js +1 -1
  150. package/lib/core/sql-sync/lock.js +1 -1
  151. package/lib/core/sql-sync/utils.js +1 -1
  152. package/lib/core/sql-validator.js +1 -1
  153. package/lib/errors.js +1 -1
  154. package/lib/framework/build-all-flags.js +1 -1
  155. package/lib/framework/flags.js +1 -1
  156. package/lib/framework/help.js +1 -1
  157. package/lib/framework/index.js +1 -1
  158. package/lib/framework/output.js +1 -1
  159. package/lib/framework/response.js +1 -1
  160. package/lib/framework/runner-alias.js +1 -1
  161. package/lib/framework/runner.js +1 -1
  162. package/lib/framework/schema-export.js +1 -1
  163. package/lib/framework/types.js +1 -1
  164. package/lib/generated/build-info.js +1 -1
  165. package/lib/help.js +1 -1
  166. package/lib/skills/main.js +1 -1
  167. package/lib/skills/npx-skills-add.js +1 -1
  168. package/lib/telemetry/cli-command-trace.js +1 -1
  169. package/lib/telemetry/cli-help-trace.js +1 -1
  170. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  171. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  172. package/lib/telemetry/send-cli-trace-log.js +1 -1
  173. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  174. package/lib/utils/ai_config.js +1 -1
  175. package/lib/utils/apply-jq-filter.js +1 -1
  176. package/lib/utils/cdn-config.js +1 -1
  177. package/lib/utils/check-sdk-version.js +1 -1
  178. package/lib/utils/cli-version-check.js +1 -1
  179. package/lib/utils/cli-version-policy.js +1 -1
  180. package/lib/utils/config.js +1 -1
  181. package/lib/utils/copy-directory.js +1 -1
  182. package/lib/utils/entity-with-id.js +1 -1
  183. package/lib/utils/file-utils.js +1 -1
  184. package/lib/utils/guides-cdn.js +1 -1
  185. package/lib/utils/http-client.js +1 -1
  186. package/lib/utils/is-non-interactive.js +1 -1
  187. package/lib/utils/logger.js +1 -1
  188. package/lib/utils/params.js +1 -1
  189. package/lib/utils/platform.js +1 -1
  190. package/lib/utils/rules-cdn.js +1 -1
  191. package/lib/utils/sleep.js +1 -1
  192. package/lib/utils/template-replacer.js +1 -1
  193. package/lib/utils/version.js +1 -1
  194. package/lib/utils/with-active-cookie.js +1 -1
  195. package/lib/utils/write-cli-side-channel.js +1 -1
  196. package/package.json +1 -1
@@ -1 +1 @@
1
- const a32_0xad8df9=a32_0x101e;(function(_0x1fc359,_0x172e91){const _0x49885a=a32_0x101e,_0x44603d=_0x1fc359();while(!![]){try{const _0x3a8229=-parseInt(_0x49885a(0x155))/0x1*(parseInt(_0x49885a(0x152))/0x2)+parseInt(_0x49885a(0x125))/0x3+parseInt(_0x49885a(0x130))/0x4*(-parseInt(_0x49885a(0x168))/0x5)+parseInt(_0x49885a(0x13f))/0x6*(parseInt(_0x49885a(0x14e))/0x7)+parseInt(_0x49885a(0x16e))/0x8*(parseInt(_0x49885a(0x148))/0x9)+parseInt(_0x49885a(0x16f))/0xa+-parseInt(_0x49885a(0x12d))/0xb;if(_0x3a8229===_0x172e91)break;else _0x44603d['push'](_0x44603d['shift']());}catch(_0x342cfd){_0x44603d['push'](_0x44603d['shift']());}}}(a32_0x154e,0xdabc9));import{readFile}from'node:fs/promises';import{saveBffScript,getBffScriptInfo,listDatasets,clearBffScriptCache}from'../../core/api-client.js';function a32_0x154e(){const _0x1f37c=['functions','some','Lock\x20scope\x20for\x20app\x20\x22','appCode','4371786rVxGFu','has','COMMON','No\x20local\x20BFF\x20functions\x20found.','values','push','length','status','14368761Iguxyi','get','alias','16xGEvwQ','bool','runtime\x20cache\x20cleared','string','Cannot\x20resolve\x20dataset\x20for\x20\x22','\x20uploaded,\x20','code','scriptsRoot','toISOString','\x20api\x20pull`\x20to\x20refresh\x20api.ts,\x20or\x20verify\x20the\x20dataset\x20exists.','Push\x20only\x20this\x20script\x20type','str','force','unchanged','script','30eftgdb','aliasToDatasetCode','Incomplete\x20HOOK\x20path:\x20','cleared','parse','\x22.\x20','HOOK','datasetCode','lastSync','9oTVKzL','\x22\x20not\x20found\x20after\x20ensureLockScope.','\x20failed,\x20','name','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','functionNode','1806707SjPxsg','filePath','join','Push\x20complete:\x20','12weIkHl','runtime\x20cache\x20clear\x20failed','utf8','199413HCsQXW','remoteId','bff','version','\x20skipped,\x20','every','datasetId','attempted','filter','update','hash','lockFilePath','description','lockKey','apiDir','Run\x20`','map','validation','operationType','935570DIDsqu','would_push','message','apps','create','type','9284456TOLQnv','2388060fTLyHy','set',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.'];a32_0x154e=function(){return _0x1f37c;};return a32_0x154e();}import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{normalizeBffType,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{extractScriptDescription}from'../../core/bff/utils.js';import{sleep}from'../../utils/sleep.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';export const bffPush={'service':a32_0xad8df9(0x157),'command':'push','description':'Push\x20local\x20BFF\x20scripts\x20to\x20remote','risk':'high-risk-write','flags':[{'name':'type','type':a32_0xad8df9(0x133),'description':a32_0xad8df9(0x13a),'enum':[a32_0xad8df9(0x127),'ENDPOINT',a32_0xad8df9(0x145)]},{'name':a32_0xad8df9(0x14b),'type':a32_0xad8df9(0x133),'description':'Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)'},{'name':a32_0xad8df9(0x13c),'type':'boolean','description':'Force\x20push\x20ignoring\x20hash\x20protection'}],async 'dryRun'(_0x3bdb28){const _0xd15226=a32_0xad8df9,_0x20c1c4=loadBffProjectConfig(_0x3bdb28['appCode']),_0x4aee2b=await readBffLockFile(_0x20c1c4['lockFilePath']),{appLock:_0xe2e8c0}=ensureLockScope(_0x4aee2b??createEmptyBffLock(),_0x3bdb28['appCode'],_0x20c1c4[_0xd15226(0x137)],_0xd15226(0x12a)),_0x31b5b7=await getTargetFunctions(_0x20c1c4,_0x3bdb28),_0x936c42=_0x3bdb28[_0xd15226(0x131)]('force'),_0x538692=[];for(const _0x5a8361 of _0x31b5b7){const _0xa88509=await computeFileHash(_0x5a8361['filePath']),_0x17f7e2=_0xe2e8c0[_0xd15226(0x121)][_0x5a8361[_0xd15226(0x162)]],_0x1f3fdc=!!_0x17f7e2&&_0x17f7e2[_0xd15226(0x15f)]===_0xa88509;_0x538692[_0xd15226(0x12a)]({'lockKey':_0x5a8361['lockKey'],'filePath':_0x5a8361[_0xd15226(0x14f)],'remoteId':_0x17f7e2?.[_0xd15226(0x156)]??null,'mode':_0x17f7e2?.[_0xd15226(0x156)]?_0xd15226(0x15e):_0xd15226(0x16c),'status':!_0x936c42&&_0x1f3fdc?_0xd15226(0x13d):_0xd15226(0x169)});}return{'method':'POST','url':'/api/management/library/scripts/save','body':{'appCode':_0x3bdb28[_0xd15226(0x124)],'force':_0x936c42,'files':_0x538692,'cacheClearAtRuntime':_0x538692['some'](_0x5e1f58=>_0x5e1f58[_0xd15226(0x12c)]===_0xd15226(0x169))},'description':'Would\x20inspect\x20'+_0x538692[_0xd15226(0x12b)]+'\x20local\x20BFF\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded'};},async 'execute'(_0x7df2c7){const _0x1f364b=a32_0xad8df9,_0x523a4e=loadBffProjectConfig(_0x7df2c7['appCode']),_0x198045=await readBffLockFile(_0x523a4e['lockFilePath']),{lockData:_0x178c41,appLock:_0x307370}=ensureLockScope(_0x198045??createEmptyBffLock(),_0x7df2c7[_0x1f364b(0x124)],_0x523a4e['scriptsRoot'],_0x1f364b(0x12a)),_0x2312f0=await getTargetFunctions(_0x523a4e,_0x7df2c7);if(_0x2312f0[_0x1f364b(0x12b)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'failed':[]},'message':_0x1f364b(0x128)};const _0x4d0fe3=_0x7df2c7[_0x1f364b(0x131)](_0x1f364b(0x13c)),_0x114f44=JSON[_0x1f364b(0x143)](JSON['stringify'](_0x178c41)),_0x5cc9cd=_0x114f44[_0x1f364b(0x16b)][_0x7df2c7[_0x1f364b(0x124)]];if(!_0x5cc9cd)throw new Error(_0x1f364b(0x123)+_0x7df2c7[_0x1f364b(0x124)]+_0x1f364b(0x149));const _0x5969c7=await buildHookMaps(_0x7df2c7[_0x1f364b(0x124)],_0x7df2c7[_0x1f364b(0x163)],_0x2312f0,_0x5cc9cd),_0x5a61c0=[],_0x4924aa=[],_0x18e646=[];for(const _0x52c204 of _0x2312f0){const _0x5c44c7=await computeFileHash(_0x52c204['filePath']),_0x5092b7=_0x5cc9cd[_0x1f364b(0x121)][_0x52c204[_0x1f364b(0x162)]];if(!_0x4d0fe3&&_0x5092b7&&_0x5092b7[_0x1f364b(0x15f)]===_0x5c44c7){_0x4924aa[_0x1f364b(0x12a)]({'lockKey':_0x52c204['lockKey'],'reason':_0x1f364b(0x13d)});continue;}try{await uploadSingleFunction(_0x7df2c7[_0x1f364b(0x124)],_0x52c204,_0x5cc9cd,_0x5969c7);const _0x4e992f=_0x5cc9cd[_0x1f364b(0x121)][_0x52c204[_0x1f364b(0x162)]];_0x5a61c0[_0x1f364b(0x12a)]({'lockKey':_0x52c204['lockKey'],'remoteId':_0x4e992f?.[_0x1f364b(0x156)]??0x0});}catch(_0x5fea56){_0x18e646[_0x1f364b(0x12a)]({'lockKey':_0x52c204[_0x1f364b(0x162)],'error':_0x5fea56 instanceof Error?_0x5fea56['message']:String(_0x5fea56)});}}_0x5cc9cd[_0x1f364b(0x147)]=new Date()[_0x1f364b(0x138)](),await writeBffLockFile(_0x523a4e[_0x1f364b(0x160)],_0x114f44),await waitForUploadedLockEntries(_0x523a4e[_0x1f364b(0x160)],_0x7df2c7[_0x1f364b(0x124)],_0x5a61c0[_0x1f364b(0x165)](_0x440ba5=>_0x440ba5[_0x1f364b(0x162)]));let _0xf75e2e={'attempted':![],'cleared':![]};if(_0x5a61c0[_0x1f364b(0x12b)]>0x0)try{const _0x491271=await clearBffScriptCache();_0xf75e2e={'attempted':!![],'cleared':!![],'message':_0x491271||'Runtime\x20script\x20cache\x20cleared.'};}catch(_0x6a3f5e){_0xf75e2e={'attempted':!![],'cleared':![],'error':_0x6a3f5e instanceof Error?_0x6a3f5e[_0x1f364b(0x16a)]:String(_0x6a3f5e)};}const _0x15b9e4=_0x18e646[_0x1f364b(0x12b)]===0x0&&(_0xf75e2e['attempted']?_0xf75e2e[_0x1f364b(0x142)]:!![]),_0x2ed34a=_0xf75e2e[_0x1f364b(0x15c)]?_0xf75e2e[_0x1f364b(0x142)]?_0x1f364b(0x132):_0x1f364b(0x153):'runtime\x20cache\x20not\x20needed';return{'ok':_0x15b9e4,'data':{'uploaded':_0x5a61c0,'skipped':_0x4924aa,'failed':_0x18e646,'cacheClear':_0xf75e2e},'message':_0x1f364b(0x151)+_0x5a61c0['length']+_0x1f364b(0x135)+_0x4924aa['length']+_0x1f364b(0x159)+_0x18e646['length']+_0x1f364b(0x14a)+_0x2ed34a};}};async function getTargetFunctions(_0x4e21da,_0x5a2fca){const _0x2c27f1=a32_0xad8df9,_0x575e5c=_0x5a2fca[_0x2c27f1(0x13b)](_0x2c27f1(0x16d)),_0x1eb632=_0x5a2fca[_0x2c27f1(0x13b)]('name'),_0x170ad8=normalizeBffType(_0x575e5c)??undefined;if(_0x1eb632&&!_0x170ad8)throw CliErrors[_0x2c27f1(0x166)]('--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.');const _0x32a523=await scanLocalBffFunctions(_0x4e21da,_0x170ad8);if(_0x1eb632){const _0x474aae=_0x32a523[_0x2c27f1(0x15d)](_0x407ed2=>_0x407ed2[_0x2c27f1(0x14b)]===_0x1eb632);if(_0x474aae['length']===0x0)throw CliErrors[_0x2c27f1(0x166)]('Local\x20function\x20not\x20found:\x20'+_0x170ad8+'/'+_0x1eb632);return _0x474aae;}return _0x32a523;}function a32_0x101e(_0x294747,_0x20efa6){_0x294747=_0x294747-0x121;const _0x154e34=a32_0x154e();let _0x101e52=_0x154e34[_0x294747];return _0x101e52;}async function buildHookMaps(_0x59a53d,_0x1a3fd7,_0x99492f,_0x1889eb){const _0xc720f3=a32_0xad8df9,_0x352386=_0x99492f[_0xc720f3(0x122)](_0xf82ee7=>_0xf82ee7[_0xc720f3(0x16d)]===_0xc720f3(0x145));if(!_0x352386)return{'aliasToDatasetCode':new Map(),'datasetCodeToId':new Map()};const _0x29750=loadAliasMap(_0x1a3fd7,undefined,resolveApiFilePath(_0x1a3fd7,_0x59a53d)),_0x1e731a=new Map(_0x29750['map'](_0x3c2883=>[_0x3c2883[_0xc720f3(0x12f)],_0x3c2883[_0xc720f3(0x146)]]));for(const _0xf06a2c of Object[_0xc720f3(0x129)](_0x1889eb[_0xc720f3(0x121)])){_0xf06a2c[_0xc720f3(0x12f)]&&_0xf06a2c[_0xc720f3(0x146)]&&!_0x1e731a[_0xc720f3(0x126)](_0xf06a2c[_0xc720f3(0x12f)])&&_0x1e731a[_0xc720f3(0x170)](_0xf06a2c[_0xc720f3(0x12f)],_0xf06a2c[_0xc720f3(0x146)]);}const _0x5a4084=await listDatasets(_0x59a53d),_0x2dd5b4=new Map(_0x5a4084['map'](_0x14f2fb=>[_0x14f2fb[_0xc720f3(0x136)],_0x14f2fb['id']]));return{'aliasToDatasetCode':_0x1e731a,'datasetCodeToId':_0x2dd5b4};}async function uploadSingleFunction(_0x3f94c9,_0x45249b,_0x2417ed,_0x2976da){const _0x35f707=a32_0xad8df9,_0x5badc5=await readFile(_0x45249b[_0x35f707(0x14f)],_0x35f707(0x154)),_0x32b2a7=await computeFileHash(_0x45249b[_0x35f707(0x14f)]),_0x3b4dfc=_0x2417ed['functions'][_0x45249b['lockKey']];if(_0x3b4dfc?.[_0x35f707(0x156)]&&_0x3b4dfc['version']==null)throw CliErrors['validation'](_0x45249b[_0x35f707(0x162)]+_0x35f707(0x171));let _0x1db1f4=extractScriptDescription(_0x5badc5);if(!_0x1db1f4&&_0x3b4dfc?.['remoteId']){const _0x526b93=await getBffScriptInfo(_0x3b4dfc[_0x35f707(0x156)]);_0x1db1f4=_0x526b93[_0x35f707(0x161)]||undefined;}const _0x21c1af={'appCode':_0x3f94c9,'functionName':_0x45249b[_0x35f707(0x14b)],'scriptType':_0x45249b[_0x35f707(0x16d)],'scriptContent':_0x5badc5};if(_0x3b4dfc?.[_0x35f707(0x156)])_0x21c1af['id']=_0x3b4dfc['remoteId'];if(_0x3b4dfc?.['version']!=null)_0x21c1af[_0x35f707(0x158)]=_0x3b4dfc['version'];if(_0x1db1f4)_0x21c1af[_0x35f707(0x161)]=_0x1db1f4;if(_0x45249b[_0x35f707(0x16d)]===_0x35f707(0x145)){const _0xc01efb=_0x45249b[_0x35f707(0x12f)];if(!_0xc01efb||!_0x45249b[_0x35f707(0x167)]||!_0x45249b[_0x35f707(0x14d)])throw CliErrors['validation'](_0x35f707(0x141)+_0x45249b[_0x35f707(0x162)]);const _0x58e1dc=_0x2976da['aliasToDatasetCode'][_0x35f707(0x12e)](_0xc01efb)??_0x3b4dfc?.[_0x35f707(0x146)]??_0xc01efb,_0x5fd10d=_0x2976da['datasetCodeToId'][_0x35f707(0x12e)](_0x58e1dc);if(!_0x5fd10d)throw CliErrors[_0x35f707(0x166)](_0x35f707(0x134)+_0xc01efb+_0x35f707(0x144)+(_0x35f707(0x164)+CLI_BIN_NAME+_0x35f707(0x139)));_0x21c1af[_0x35f707(0x15b)]=_0x5fd10d,_0x21c1af['operationType']=_0x45249b[_0x35f707(0x167)],_0x21c1af[_0x35f707(0x14d)]=_0x45249b[_0x35f707(0x14d)];}const _0x2ed9c0=await saveBffScript(_0x21c1af),_0x5788d0=_0x2ed9c0['id'],_0x5a0756=_0x2ed9c0[_0x35f707(0x13e)]??await getBffScriptInfo(_0x5788d0),_0x48adfd={'hash':_0x32b2a7,'remoteId':_0x5788d0,'version':_0x5a0756[_0x35f707(0x158)]};if(_0x45249b['type']===_0x35f707(0x145)){const _0x46c041=_0x45249b[_0x35f707(0x12f)],_0x148649=_0x2976da[_0x35f707(0x140)][_0x35f707(0x12e)](_0x46c041)??_0x3b4dfc?.[_0x35f707(0x146)]??_0x46c041;_0x2976da['aliasToDatasetCode']['has'](_0x46c041)?_0x48adfd[_0x35f707(0x12f)]=_0x46c041:_0x48adfd[_0x35f707(0x12f)]=_0x3b4dfc?.[_0x35f707(0x12f)],_0x48adfd[_0x35f707(0x146)]=_0x148649,_0x48adfd[_0x35f707(0x167)]=_0x45249b[_0x35f707(0x167)],_0x48adfd[_0x35f707(0x14d)]=_0x45249b['functionNode'];}_0x2417ed[_0x35f707(0x121)][_0x45249b['lockKey']]=_0x48adfd;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x39394a,_0x158125,_0x1b8768){const _0xc725af=a32_0xad8df9;if(_0x1b8768['length']===0x0)return;for(let _0x517b39=0x0;_0x517b39<LOCK_SETTLE_RETRY_COUNT;_0x517b39+=0x1){const _0x157b76=await readBffLockFile(_0x39394a),_0x45b712=_0x157b76?.[_0xc725af(0x16b)]?.[_0x158125]?.['functions']??{},_0x34b893=_0x1b8768[_0xc725af(0x15a)](_0x5d011e=>!!_0x45b712[_0x5d011e]?.[_0xc725af(0x156)]);if(_0x34b893)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0xc725af(0x14c)+_0x1b8768[_0xc725af(0x150)](',\x20')+'.');}
1
+ const a32_0x2fadf1=a32_0x1140;(function(_0x113017,_0x13ccbe){const _0x254637=a32_0x1140,_0x57b044=_0x113017();while(!![]){try{const _0x4a8d7d=parseInt(_0x254637(0xb4))/0x1+-parseInt(_0x254637(0x86))/0x2*(-parseInt(_0x254637(0x95))/0x3)+-parseInt(_0x254637(0xc3))/0x4+-parseInt(_0x254637(0xa4))/0x5*(parseInt(_0x254637(0xbe))/0x6)+-parseInt(_0x254637(0x77))/0x7+-parseInt(_0x254637(0x99))/0x8*(parseInt(_0x254637(0x84))/0x9)+parseInt(_0x254637(0x9a))/0xa*(parseInt(_0x254637(0xa0))/0xb);if(_0x4a8d7d===_0x13ccbe)break;else _0x57b044['push'](_0x57b044['shift']());}catch(_0x1a65ee){_0x57b044['push'](_0x57b044['shift']());}}}(a32_0x53f3,0x87b3f));import{readFile}from'node:fs/promises';import{saveBffScript,getBffScriptInfo,listDatasets,clearBffScriptCache}from'../../core/api-client.js';function a32_0x53f3(){const _0x5c6bd7=['9MBYHCl','bool','780418MKXbCV','type','every','datasetCode','has','str','runtime\x20cache\x20clear\x20failed','stringify','Push\x20only\x20this\x20script\x20type','join','Cannot\x20resolve\x20dataset\x20for\x20\x22','name','aliasToDatasetCode','utf8','Push\x20complete:\x20','3BaaXjk','\x20uploaded,\x20','lockFilePath','Runtime\x20script\x20cache\x20cleared.','2002168RaXJgz','3514850TjXVOw','\x22.\x20','filter','boolean','COMMON','Lock\x20scope\x20for\x20app\x20\x22','22uEFFoY','script','\x20skipped,\x20','create','96665EfQZFy','attempted','POST','version','lastSync','high-risk-write','map','set','Would\x20inspect\x20','hash','remoteId','appCode','No\x20local\x20BFF\x20functions\x20found.','functions','force','unchanged','555747NqKimr','apps','datasetId','alias','some','functionNode','bff','\x20failed,\x20','datasetCodeToId','get','174NvPcHw','lockKey','status','Incomplete\x20HOOK\x20path:\x20','\x20local\x20BFF\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','208oOxrFK','operationType','apiDir','code',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','runtime\x20cache\x20not\x20needed','Push\x20local\x20BFF\x20scripts\x20to\x20remote','filePath','1974749twfMCw','string','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','validation','/api/management/library/scripts/save','toISOString','scriptsRoot','ENDPOINT','push','cleared','HOOK','parse','length'];a32_0x53f3=function(){return _0x5c6bd7;};return a32_0x53f3();}import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{normalizeBffType,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{extractScriptDescription}from'../../core/bff/utils.js';import{sleep}from'../../utils/sleep.js';import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';const CACHE_CLEAR_ATTEMPTS=0x2,CACHE_CLEAR_INTERVAL_MS=0x12c;export const bffPush={'service':a32_0x2fadf1(0xba),'command':a32_0x2fadf1(0x7f),'description':a32_0x2fadf1(0x75),'risk':a32_0x2fadf1(0xa9),'flags':[{'name':a32_0x2fadf1(0x87),'type':a32_0x2fadf1(0x78),'description':a32_0x2fadf1(0x8e),'enum':[a32_0x2fadf1(0x9e),a32_0x2fadf1(0x7e),'HOOK']},{'name':a32_0x2fadf1(0x91),'type':a32_0x2fadf1(0x78),'description':a32_0x2fadf1(0x79)},{'name':a32_0x2fadf1(0xb2),'type':a32_0x2fadf1(0x9d),'description':'Force\x20push\x20ignoring\x20hash\x20protection'}],async 'dryRun'(_0x6a32a1){const _0x461776=a32_0x2fadf1,_0x45d37b=loadBffProjectConfig(_0x6a32a1['appCode']),_0x300ba9=await readBffLockFile(_0x45d37b[_0x461776(0x97)]),{appLock:_0x12b369}=ensureLockScope(_0x300ba9??createEmptyBffLock(),_0x6a32a1[_0x461776(0xaf)],_0x45d37b['scriptsRoot'],_0x461776(0x7f)),_0x14fbdc=await getTargetFunctions(_0x45d37b,_0x6a32a1),_0x3a160a=_0x6a32a1[_0x461776(0x85)](_0x461776(0xb2)),_0x12d73e=[];for(const _0x41b420 of _0x14fbdc){const _0x3e7fa5=await computeFileHash(_0x41b420[_0x461776(0x76)]),_0xa4d382=_0x12b369[_0x461776(0xb1)][_0x41b420[_0x461776(0xbf)]],_0x5e53e7=!!_0xa4d382&&_0xa4d382[_0x461776(0xad)]===_0x3e7fa5;_0x12d73e[_0x461776(0x7f)]({'lockKey':_0x41b420[_0x461776(0xbf)],'filePath':_0x41b420['filePath'],'remoteId':_0xa4d382?.[_0x461776(0xae)]??null,'mode':_0xa4d382?.['remoteId']?'update':_0x461776(0xa3),'status':!_0x3a160a&&_0x5e53e7?_0x461776(0xb3):'would_push'});}return{'method':_0x461776(0xa6),'url':_0x461776(0x7b),'body':{'appCode':_0x6a32a1[_0x461776(0xaf)],'force':_0x3a160a,'files':_0x12d73e,'cacheClearAtRuntime':_0x12d73e[_0x461776(0xb8)](_0x7d283c=>_0x7d283c[_0x461776(0xc0)]==='would_push'),'cacheClearAtRuntimeTimes':_0x12d73e[_0x461776(0xb8)](_0x1f2af1=>_0x1f2af1[_0x461776(0xc0)]==='would_push')?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x461776(0xac)+_0x12d73e[_0x461776(0x83)]+_0x461776(0xc2)};},async 'execute'(_0x2b7d2e){const _0x251cea=a32_0x2fadf1,_0x396e2b=loadBffProjectConfig(_0x2b7d2e[_0x251cea(0xaf)]),_0x5dbb02=await readBffLockFile(_0x396e2b[_0x251cea(0x97)]),{lockData:_0x5656a6,appLock:_0x5de104}=ensureLockScope(_0x5dbb02??createEmptyBffLock(),_0x2b7d2e['appCode'],_0x396e2b[_0x251cea(0x7d)],_0x251cea(0x7f)),_0x56373b=await getTargetFunctions(_0x396e2b,_0x2b7d2e);if(_0x56373b[_0x251cea(0x83)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'failed':[]},'message':_0x251cea(0xb0)};const _0x355e1d=_0x2b7d2e[_0x251cea(0x85)](_0x251cea(0xb2)),_0x31fc8e=JSON[_0x251cea(0x82)](JSON[_0x251cea(0x8d)](_0x5656a6)),_0x1b6b55=_0x31fc8e[_0x251cea(0xb5)][_0x2b7d2e[_0x251cea(0xaf)]];if(!_0x1b6b55)throw new Error(_0x251cea(0x9f)+_0x2b7d2e[_0x251cea(0xaf)]+'\x22\x20not\x20found\x20after\x20ensureLockScope.');const _0x21edbe=await buildHookMaps(_0x2b7d2e[_0x251cea(0xaf)],_0x2b7d2e[_0x251cea(0xc5)],_0x56373b,_0x1b6b55),_0x5391be=[],_0x29ab92=[],_0x1272b6=[];for(const _0x3ce658 of _0x56373b){const _0x444fc4=await computeFileHash(_0x3ce658['filePath']),_0x543acc=_0x1b6b55[_0x251cea(0xb1)][_0x3ce658['lockKey']];if(!_0x355e1d&&_0x543acc&&_0x543acc[_0x251cea(0xad)]===_0x444fc4){_0x29ab92[_0x251cea(0x7f)]({'lockKey':_0x3ce658[_0x251cea(0xbf)],'reason':_0x251cea(0xb3)});continue;}try{await uploadSingleFunction(_0x2b7d2e[_0x251cea(0xaf)],_0x3ce658,_0x1b6b55,_0x21edbe);const _0x80955f=_0x1b6b55[_0x251cea(0xb1)][_0x3ce658['lockKey']];_0x5391be[_0x251cea(0x7f)]({'lockKey':_0x3ce658[_0x251cea(0xbf)],'remoteId':_0x80955f?.['remoteId']??0x0});}catch(_0x279229){_0x1272b6[_0x251cea(0x7f)]({'lockKey':_0x3ce658['lockKey'],'error':_0x279229 instanceof Error?_0x279229['message']:String(_0x279229)});}}_0x1b6b55[_0x251cea(0xa8)]=new Date()[_0x251cea(0x7c)](),await writeBffLockFile(_0x396e2b[_0x251cea(0x97)],_0x31fc8e),await waitForUploadedLockEntries(_0x396e2b['lockFilePath'],_0x2b7d2e['appCode'],_0x5391be[_0x251cea(0xaa)](_0x4d811b=>_0x4d811b[_0x251cea(0xbf)]));let _0x4114f1={'attempted':![],'cleared':![]};if(_0x5391be[_0x251cea(0x83)]>0x0)try{let _0x42236b='';for(let _0xb08ae2=0x0;_0xb08ae2<CACHE_CLEAR_ATTEMPTS;_0xb08ae2+=0x1){_0x42236b=await clearBffScriptCache(),_0xb08ae2<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x4114f1={'attempted':!![],'cleared':!![],'message':_0x42236b||_0x251cea(0x98)};}catch(_0x449b39){_0x4114f1={'attempted':!![],'cleared':![],'error':_0x449b39 instanceof Error?_0x449b39['message']:String(_0x449b39)};}const _0x201dfe=_0x1272b6['length']===0x0&&(_0x4114f1[_0x251cea(0xa5)]?_0x4114f1['cleared']:!![]),_0x136859=_0x4114f1[_0x251cea(0xa5)]?_0x4114f1[_0x251cea(0x80)]?'runtime\x20cache\x20cleared':_0x251cea(0x8c):_0x251cea(0x74);return{'ok':_0x201dfe,'data':{'uploaded':_0x5391be,'skipped':_0x29ab92,'failed':_0x1272b6,'cacheClear':_0x4114f1},'message':_0x251cea(0x94)+_0x5391be[_0x251cea(0x83)]+_0x251cea(0x96)+_0x29ab92[_0x251cea(0x83)]+_0x251cea(0xa2)+_0x1272b6[_0x251cea(0x83)]+_0x251cea(0xbb)+_0x136859};}};async function getTargetFunctions(_0x51a62b,_0x43566a){const _0x1bb59b=a32_0x2fadf1,_0x19bfe0=_0x43566a['str'](_0x1bb59b(0x87)),_0x519beb=_0x43566a[_0x1bb59b(0x8b)](_0x1bb59b(0x91)),_0x562698=normalizeBffType(_0x19bfe0)??undefined;if(_0x519beb&&!_0x562698)throw CliErrors[_0x1bb59b(0x7a)]('--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.');const _0x4557bd=await scanLocalBffFunctions(_0x51a62b,_0x562698);if(_0x519beb){const _0x3c7e15=_0x4557bd[_0x1bb59b(0x9c)](_0x475e07=>_0x475e07['name']===_0x519beb);if(_0x3c7e15[_0x1bb59b(0x83)]===0x0)throw CliErrors['validation']('Local\x20function\x20not\x20found:\x20'+_0x562698+'/'+_0x519beb);return _0x3c7e15;}return _0x4557bd;}async function buildHookMaps(_0x2e3da0,_0x238c06,_0xd59c50,_0x12bd0a){const _0x22ac7d=a32_0x2fadf1,_0xe6cd3b=_0xd59c50[_0x22ac7d(0xb8)](_0x4a15b9=>_0x4a15b9[_0x22ac7d(0x87)]===_0x22ac7d(0x81));if(!_0xe6cd3b)return{'aliasToDatasetCode':new Map(),'datasetCodeToId':new Map()};const _0x49892c=loadAliasMap(_0x238c06,undefined,resolveApiFilePath(_0x238c06,_0x2e3da0)),_0xf5d7e1=new Map(_0x49892c[_0x22ac7d(0xaa)](_0x2fe0bb=>[_0x2fe0bb[_0x22ac7d(0xb7)],_0x2fe0bb['datasetCode']]));for(const _0x2b3ceb of Object['values'](_0x12bd0a[_0x22ac7d(0xb1)])){_0x2b3ceb[_0x22ac7d(0xb7)]&&_0x2b3ceb[_0x22ac7d(0x89)]&&!_0xf5d7e1[_0x22ac7d(0x8a)](_0x2b3ceb[_0x22ac7d(0xb7)])&&_0xf5d7e1[_0x22ac7d(0xab)](_0x2b3ceb[_0x22ac7d(0xb7)],_0x2b3ceb[_0x22ac7d(0x89)]);}const _0x5e9d4f=await listDatasets(_0x2e3da0),_0x993de6=new Map(_0x5e9d4f[_0x22ac7d(0xaa)](_0x1996b1=>[_0x1996b1[_0x22ac7d(0xc6)],_0x1996b1['id']]));return{'aliasToDatasetCode':_0xf5d7e1,'datasetCodeToId':_0x993de6};}async function uploadSingleFunction(_0x18b9f9,_0xc87d54,_0x203649,_0x8c463d){const _0x3997c6=a32_0x2fadf1,_0x457100=await readFile(_0xc87d54[_0x3997c6(0x76)],_0x3997c6(0x93)),_0x465bb8=await computeFileHash(_0xc87d54[_0x3997c6(0x76)]),_0x1c4aaa=_0x203649[_0x3997c6(0xb1)][_0xc87d54['lockKey']];if(_0x1c4aaa?.[_0x3997c6(0xae)]&&_0x1c4aaa[_0x3997c6(0xa7)]==null)throw CliErrors[_0x3997c6(0x7a)](_0xc87d54[_0x3997c6(0xbf)]+_0x3997c6(0xc7));let _0x20606d=extractScriptDescription(_0x457100);if(!_0x20606d&&_0x1c4aaa?.[_0x3997c6(0xae)]){const _0x270151=await getBffScriptInfo(_0x1c4aaa[_0x3997c6(0xae)]);_0x20606d=_0x270151['description']||undefined;}const _0x42ab52={'appCode':_0x18b9f9,'functionName':_0xc87d54['name'],'scriptType':_0xc87d54[_0x3997c6(0x87)],'scriptContent':_0x457100};if(_0x1c4aaa?.['remoteId'])_0x42ab52['id']=_0x1c4aaa['remoteId'];if(_0x1c4aaa?.[_0x3997c6(0xa7)]!=null)_0x42ab52['version']=_0x1c4aaa[_0x3997c6(0xa7)];if(_0x20606d)_0x42ab52['description']=_0x20606d;if(_0xc87d54['type']===_0x3997c6(0x81)){const _0x41de49=_0xc87d54[_0x3997c6(0xb7)];if(!_0x41de49||!_0xc87d54['operationType']||!_0xc87d54[_0x3997c6(0xb9)])throw CliErrors[_0x3997c6(0x7a)](_0x3997c6(0xc1)+_0xc87d54[_0x3997c6(0xbf)]);const _0x19631d=_0x8c463d[_0x3997c6(0x92)][_0x3997c6(0xbd)](_0x41de49)??_0x1c4aaa?.[_0x3997c6(0x89)]??_0x41de49,_0x58657e=_0x8c463d[_0x3997c6(0xbc)][_0x3997c6(0xbd)](_0x19631d);if(!_0x58657e)throw CliErrors['validation'](_0x3997c6(0x90)+_0x41de49+_0x3997c6(0x9b)+('Run\x20`'+CLI_BIN_NAME+'\x20api\x20pull`\x20to\x20refresh\x20api.ts,\x20or\x20verify\x20the\x20dataset\x20exists.'));_0x42ab52[_0x3997c6(0xb6)]=_0x58657e,_0x42ab52[_0x3997c6(0xc4)]=_0xc87d54[_0x3997c6(0xc4)],_0x42ab52[_0x3997c6(0xb9)]=_0xc87d54[_0x3997c6(0xb9)];}const _0x6716cd=await saveBffScript(_0x42ab52),_0x5d9af7=_0x6716cd['id'],_0x180dd3=_0x6716cd[_0x3997c6(0xa1)]??await getBffScriptInfo(_0x5d9af7),_0x56b792={'hash':_0x465bb8,'remoteId':_0x5d9af7,'version':_0x180dd3[_0x3997c6(0xa7)]};if(_0xc87d54['type']==='HOOK'){const _0x26ae61=_0xc87d54[_0x3997c6(0xb7)],_0x285b9c=_0x8c463d[_0x3997c6(0x92)][_0x3997c6(0xbd)](_0x26ae61)??_0x1c4aaa?.[_0x3997c6(0x89)]??_0x26ae61;_0x8c463d[_0x3997c6(0x92)][_0x3997c6(0x8a)](_0x26ae61)?_0x56b792[_0x3997c6(0xb7)]=_0x26ae61:_0x56b792[_0x3997c6(0xb7)]=_0x1c4aaa?.[_0x3997c6(0xb7)],_0x56b792[_0x3997c6(0x89)]=_0x285b9c,_0x56b792[_0x3997c6(0xc4)]=_0xc87d54[_0x3997c6(0xc4)],_0x56b792['functionNode']=_0xc87d54[_0x3997c6(0xb9)];}_0x203649[_0x3997c6(0xb1)][_0xc87d54['lockKey']]=_0x56b792;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;function a32_0x1140(_0x5f37f5,_0x59109a){_0x5f37f5=_0x5f37f5-0x74;const _0x53f32f=a32_0x53f3();let _0x11404f=_0x53f32f[_0x5f37f5];return _0x11404f;}async function waitForUploadedLockEntries(_0x578cc5,_0x25db30,_0x1d1008){const _0x4d7ea8=a32_0x2fadf1;if(_0x1d1008[_0x4d7ea8(0x83)]===0x0)return;for(let _0x4617ac=0x0;_0x4617ac<LOCK_SETTLE_RETRY_COUNT;_0x4617ac+=0x1){const _0x437423=await readBffLockFile(_0x578cc5),_0x60aa19=_0x437423?.[_0x4d7ea8(0xb5)]?.[_0x25db30]?.[_0x4d7ea8(0xb1)]??{},_0x5313b9=_0x1d1008[_0x4d7ea8(0x88)](_0xa55dbc=>!!_0x60aa19[_0xa55dbc]?.[_0x4d7ea8(0xae)]);if(_0x5313b9)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error('Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20'+_0x1d1008[_0x4d7ea8(0x8f)](',\x20')+'.');}
@@ -1 +1 @@
1
- function a33_0xd98b(_0x15ea2d,_0x466dcf){_0x15ea2d=_0x15ea2d-0x7b;const _0x5a56d1=a33_0x5a56();let _0xd98b46=_0x5a56d1[_0x15ea2d];return _0xd98b46;}const a33_0x242540=a33_0xd98b;(function(_0x2e1dd2,_0x352be5){const _0x1c690e=a33_0xd98b,_0x2c6100=_0x2e1dd2();while(!![]){try{const _0x1894cc=parseInt(_0x1c690e(0x83))/0x1*(parseInt(_0x1c690e(0x96))/0x2)+-parseInt(_0x1c690e(0x8e))/0x3+parseInt(_0x1c690e(0x84))/0x4+parseInt(_0x1c690e(0x93))/0x5+parseInt(_0x1c690e(0x90))/0x6+-parseInt(_0x1c690e(0x97))/0x7*(parseInt(_0x1c690e(0x9a))/0x8)+parseInt(_0x1c690e(0x8f))/0x9*(-parseInt(_0x1c690e(0x80))/0xa);if(_0x1894cc===_0x352be5)break;else _0x2c6100['push'](_0x2c6100['shift']());}catch(_0x390210){_0x2c6100['push'](_0x2c6100['shift']());}}}(a33_0x5a56,0x2ae7a));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';function a33_0x5a56(){const _0x50dcb8=['lockFilePath','All\x20BFF\x20scripts\x20are\x20in\x20sync.','\x20modified,\x20','alias','functions','map','458259pEOWtW','90Dnexhw','1472208UDBOSN','length','all','931095CxwTMK','bff','has','4VYczzg','74648aqsjXn','remote','\x20remote-only','8mqMGpB','bool','boolean','read','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','\x20unchanged','lockKey','datasetCode','appCode','593950xMQLAG','apiDir','status','152687JGLqQz','784576XiWuBT','\x20added,\x20','scriptsRoot','push'];a33_0x5a56=function(){return _0x50dcb8;};return a33_0x5a56();}import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a33_0x242540(0x94),'command':a33_0x242540(0x82),'description':'Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','risk':a33_0x242540(0x9d),'flags':[{'name':a33_0x242540(0x98),'type':a33_0x242540(0x9c),'description':a33_0x242540(0x7b)}],async 'execute'(_0x3e1e4b){const _0x3f0a35=a33_0x242540,_0x37d801=loadBffProjectConfig(_0x3e1e4b[_0x3f0a35(0x7f)]),_0x711d10=await readBffLockFile(_0x37d801[_0x3f0a35(0x88)]),{appLock:_0x2f86b4}=ensureLockScope(_0x711d10??createEmptyBffLock(),_0x3e1e4b[_0x3f0a35(0x7f)],_0x37d801[_0x3f0a35(0x86)],_0x3f0a35(0x82)),_0x18e322=await scanLocalBffFunctions(_0x37d801),_0x29e7a1=[],_0x73ae16=[],_0x360806=[];for(const _0x24afcf of _0x18e322){const _0x1eea6a=await computeFileHash(_0x24afcf['filePath']),_0x505389=_0x2f86b4[_0x3f0a35(0x8c)][_0x24afcf[_0x3f0a35(0x7d)]];if(!_0x505389)_0x29e7a1['push'](_0x24afcf[_0x3f0a35(0x7d)]);else _0x505389['hash']!==_0x1eea6a?_0x73ae16['push'](_0x24afcf[_0x3f0a35(0x7d)]):_0x360806[_0x3f0a35(0x87)](_0x24afcf[_0x3f0a35(0x7d)]);}const _0x22b828=[];if(_0x3e1e4b[_0x3f0a35(0x9b)](_0x3f0a35(0x98))){const _0x4c8485=loadAliasMap(_0x3e1e4b['apiDir'],undefined,resolveApiFilePath(_0x3e1e4b[_0x3f0a35(0x81)],_0x3e1e4b[_0x3f0a35(0x7f)])),_0x5e5fd5=new Map(_0x4c8485['map'](_0x52191f=>[_0x52191f[_0x3f0a35(0x7e)],_0x52191f[_0x3f0a35(0x8b)]])),[_0x4abe77,_0x64cf30]=await Promise[_0x3f0a35(0x92)]([listBffScripts(_0x3e1e4b[_0x3f0a35(0x7f)]),getBffScriptStatistics(_0x3e1e4b[_0x3f0a35(0x7f)])]),_0xa4f6bd=createHookLocationMap(_0x64cf30),_0x8e3d62=new Set(_0x18e322[_0x3f0a35(0x8d)](_0x13612c=>_0x13612c[_0x3f0a35(0x7d)]));for(const _0x4d4b11 of _0x4abe77){const _0x431837=resolveRemoteScriptTarget(_0x37d801,_0x4d4b11,_0xa4f6bd,_0x2f86b4[_0x3f0a35(0x8c)],_0x5e5fd5);_0x431837&&!_0x8e3d62[_0x3f0a35(0x95)](_0x431837['lockKey'])&&_0x22b828[_0x3f0a35(0x87)](_0x431837[_0x3f0a35(0x7d)]);}}const _0x16384c=_0x29e7a1[_0x3f0a35(0x91)]===0x0&&_0x73ae16[_0x3f0a35(0x91)]===0x0&&_0x22b828[_0x3f0a35(0x91)]===0x0;return{'ok':!![],'data':{'added':_0x29e7a1,'modified':_0x73ae16,'unchanged':_0x360806,'remoteOnly':_0x22b828},'message':_0x16384c?_0x3f0a35(0x89):_0x29e7a1['length']+_0x3f0a35(0x85)+_0x73ae16[_0x3f0a35(0x91)]+_0x3f0a35(0x8a)+_0x360806[_0x3f0a35(0x91)]+_0x3f0a35(0x7c)+(_0x22b828[_0x3f0a35(0x91)]>0x0?',\x20'+_0x22b828[_0x3f0a35(0x91)]+_0x3f0a35(0x99):'')};}};
1
+ const a33_0x3057c4=a33_0x25bf;(function(_0x292a38,_0x1a9d85){const _0x1d0c23=a33_0x25bf,_0x250edd=_0x292a38();while(!![]){try{const _0xc4b55=-parseInt(_0x1d0c23(0xb7))/0x1+-parseInt(_0x1d0c23(0xa1))/0x2+parseInt(_0x1d0c23(0xbd))/0x3*(-parseInt(_0x1d0c23(0xb4))/0x4)+-parseInt(_0x1d0c23(0xbe))/0x5*(parseInt(_0x1d0c23(0xb2))/0x6)+-parseInt(_0x1d0c23(0xa2))/0x7*(-parseInt(_0x1d0c23(0xb5))/0x8)+-parseInt(_0x1d0c23(0xac))/0x9*(-parseInt(_0x1d0c23(0xa3))/0xa)+-parseInt(_0x1d0c23(0xa0))/0xb*(-parseInt(_0x1d0c23(0xb0))/0xc);if(_0xc4b55===_0x1a9d85)break;else _0x250edd['push'](_0x250edd['shift']());}catch(_0x5e159e){_0x250edd['push'](_0x250edd['shift']());}}}(a33_0x3644,0x478ce));function a33_0x25bf(_0x2c0462,_0x37d469){_0x2c0462=_0x2c0462-0x9e;const _0x364407=a33_0x3644();let _0x25bfc2=_0x364407[_0x2c0462];return _0x25bfc2;}import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';function a33_0x3644(){const _0x379afa=['has','length','functions','9enMcTu','All\x20BFF\x20scripts\x20are\x20in\x20sync.','remote','read','240cvMQyy','filePath','12JhDkpm','bool','244zWUgvW','32216IaTlyK','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','545706rpVUny','\x20unchanged','status','lockKey','map','apiDir','11829aOpGUV','1406605ITKhGK','datasetCode','lockFilePath','730554SpCoKx','467442GrFlnL','49iWIrSa','5191930UjqjGx','\x20modified,\x20','bff','appCode','push','boolean'];a33_0x3644=function(){return _0x379afa;};return a33_0x3644();}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_0x3057c4(0xa5),'command':a33_0x3057c4(0xb9),'description':'Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','risk':a33_0x3057c4(0xaf),'flags':[{'name':a33_0x3057c4(0xae),'type':a33_0x3057c4(0xa8),'description':a33_0x3057c4(0xb6)}],async 'execute'(_0x4e25c7){const _0x20e30e=a33_0x3057c4,_0x1afed5=loadBffProjectConfig(_0x4e25c7[_0x20e30e(0xa6)]),_0x3fdf58=await readBffLockFile(_0x1afed5[_0x20e30e(0x9f)]),{appLock:_0x583153}=ensureLockScope(_0x3fdf58??createEmptyBffLock(),_0x4e25c7[_0x20e30e(0xa6)],_0x1afed5['scriptsRoot'],_0x20e30e(0xb9)),_0x1046a7=await scanLocalBffFunctions(_0x1afed5),_0x5e6c79=[],_0xe7cafc=[],_0x4ac949=[];for(const _0x129de0 of _0x1046a7){const _0x14ddfe=await computeFileHash(_0x129de0[_0x20e30e(0xb1)]),_0x6bbd17=_0x583153[_0x20e30e(0xab)][_0x129de0[_0x20e30e(0xba)]];if(!_0x6bbd17)_0x5e6c79[_0x20e30e(0xa7)](_0x129de0['lockKey']);else _0x6bbd17['hash']!==_0x14ddfe?_0xe7cafc['push'](_0x129de0[_0x20e30e(0xba)]):_0x4ac949[_0x20e30e(0xa7)](_0x129de0[_0x20e30e(0xba)]);}const _0x5a8fdd=[];if(_0x4e25c7[_0x20e30e(0xb3)](_0x20e30e(0xae))){const _0x4d2d4c=loadAliasMap(_0x4e25c7[_0x20e30e(0xbc)],undefined,resolveApiFilePath(_0x4e25c7['apiDir'],_0x4e25c7['appCode'])),_0x3cb832=new Map(_0x4d2d4c['map'](_0x391f14=>[_0x391f14[_0x20e30e(0x9e)],_0x391f14['alias']])),[_0xe98d5e,_0xefd977]=await Promise['all']([listBffScripts(_0x4e25c7[_0x20e30e(0xa6)]),getBffScriptStatistics(_0x4e25c7[_0x20e30e(0xa6)])]),_0x59cfc9=createHookLocationMap(_0xefd977),_0x1dbf52=new Set(_0x1046a7[_0x20e30e(0xbb)](_0x3afceb=>_0x3afceb['lockKey']));for(const _0x34b7e5 of _0xe98d5e){const _0x177423=resolveRemoteScriptTarget(_0x1afed5,_0x34b7e5,_0x59cfc9,_0x583153[_0x20e30e(0xab)],_0x3cb832);_0x177423&&!_0x1dbf52[_0x20e30e(0xa9)](_0x177423[_0x20e30e(0xba)])&&_0x5a8fdd[_0x20e30e(0xa7)](_0x177423[_0x20e30e(0xba)]);}}const _0x1c669e=_0x5e6c79[_0x20e30e(0xaa)]===0x0&&_0xe7cafc[_0x20e30e(0xaa)]===0x0&&_0x5a8fdd[_0x20e30e(0xaa)]===0x0;return{'ok':!![],'data':{'added':_0x5e6c79,'modified':_0xe7cafc,'unchanged':_0x4ac949,'remoteOnly':_0x5a8fdd},'message':_0x1c669e?_0x20e30e(0xad):_0x5e6c79[_0x20e30e(0xaa)]+'\x20added,\x20'+_0xe7cafc[_0x20e30e(0xaa)]+_0x20e30e(0xa4)+_0x4ac949['length']+_0x20e30e(0xb8)+(_0x5a8fdd['length']>0x0?',\x20'+_0x5a8fdd['length']+'\x20remote-only':'')};}};
@@ -1 +1 @@
1
- function a34_0x5a80(){const _0x46737b=['Update\x20available:\x20','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','latest','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','npm','\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','4762puZmvZ','source','validation','1299886obCIvG','beta','red','Already\x20up\x20to\x20date\x20(v','Skipping\x20official\x20skill\x20package\x20(--no-skills).','\x20\x20Official\x20skill\x20update\x20failed:\x20','Update\x20failed','pipe','cli','bool','fail','/dist-tags','Version\x20comparison\x20failed','includes','info','stableVersion','Checking\x20official\x20skill\x20package...','\x20\x20Run\x20manually:\x20','message','bun','...','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','map','gray','152379QIBYRs','object','flag','succeed','trim','Refresh\x20official\x20skill\x20package\x20after\x20updating','104RAWIQN','4zRtfVP','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','valid','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','12LaDorK','version','timeout','string','Install\x20a\x20specific\x20CLI\x20version','json','fromEntries','Requested\x20version:\x20','toLowerCase','boolean','warn','run','entries','execPath','837285CEaSnA','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','green','7647588JgrqHK','69003bxmjOR','unknown','2295Kfabyv','log','124lfTPlS','no-skills','yellow','Updated\x20to\x20v','error','length','inherit','Invalid\x20version:\x20','210gXHOoh','nonInteractive','\x20→\x20','https://registry.npmjs.org/-/package/'];a34_0x5a80=function(){return _0x46737b;};return a34_0x5a80();}const a34_0x9aa26a=a34_0x5226;(function(_0x34bef6,_0x308a3a){const _0xca7991=a34_0x5226,_0x1e1928=_0x34bef6();while(!![]){try{const _0x53029a=parseInt(_0xca7991(0x1e6))/0x1*(-parseInt(_0xca7991(0x1f8))/0x2)+parseInt(_0xca7991(0x1de))/0x3*(-parseInt(_0xca7991(0x21a))/0x4)+-parseInt(_0xca7991(0x1e4))/0x5*(parseInt(_0xca7991(0x21e))/0x6)+parseInt(_0xca7991(0x1fb))/0x7+-parseInt(_0xca7991(0x219))/0x8*(parseInt(_0xca7991(0x213))/0x9)+parseInt(_0xca7991(0x1ee))/0xa*(parseInt(_0xca7991(0x1e2))/0xb)+parseInt(_0xca7991(0x1e1))/0xc;if(_0x53029a===_0x308a3a)break;else _0x1e1928['push'](_0x1e1928['shift']());}catch(_0x45f251){_0x1e1928['push'](_0x1e1928['shift']());}}}(a34_0x5a80,0x26e8a));import a34_0x31bbb4 from'chalk';import a34_0x319c19 from'ora';import a34_0x1a8ef6 from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x893716=a34_0x5226,_0x312015=process[_0x893716(0x1dd)][_0x893716(0x1d8)]();if(_0x312015[_0x893716(0x208)](_0x893716(0x20e)))return _0x893716(0x20e);return _0x893716(0x1f6);}const updateFlags=[{'name':a34_0x9aa26a(0x1fc),'type':a34_0x9aa26a(0x1d9),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':'version','type':a34_0x9aa26a(0x221),'description':a34_0x9aa26a(0x1d4)},{'name':'no-skills','type':a34_0x9aa26a(0x1d9),'description':'Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','default':![]},{'name':'skills','type':a34_0x9aa26a(0x1d9),'description':a34_0x9aa26a(0x218),'default':!![],'hidden':!![]}];function getRequestedVersion(_0x377efc){const _0x470b95=a34_0x9aa26a;return _0x377efc['str'](_0x470b95(0x21f))[_0x470b95(0x217)]();}function shouldSkipOfficialSkill(_0x41f74e){const _0x253ff5=a34_0x9aa26a;return _0x41f74e[_0x253ff5(0x204)](_0x253ff5(0x1e7))||_0x41f74e[_0x253ff5(0x215)]('skills')===![];}async function validateUpdateFlags(_0xc27728){const _0xbf634f=a34_0x9aa26a,_0x256c71=_0xc27728[_0xbf634f(0x204)]('beta'),_0x2da0a2=getRequestedVersion(_0xc27728);if(_0x256c71&&_0x2da0a2)throw CliErrors[_0xbf634f(0x1fa)](_0xbf634f(0x1f3),_0xbf634f(0x1f5));if(_0x2da0a2&&!a34_0x1a8ef6[_0xbf634f(0x21c)](_0x2da0a2))throw CliErrors[_0xbf634f(0x1fa)](_0xbf634f(0x1ed)+_0x2da0a2,_0xbf634f(0x210));}function a34_0x5226(_0x14ddd9,_0x58fcae){_0x14ddd9=_0x14ddd9-0x1d4;const _0x5a800d=a34_0x5a80();let _0x522657=_0x5a800d[_0x14ddd9];return _0x522657;}async function fetchNpmDistTags(){const _0x486606=a34_0x9aa26a;try{const _0x53b376=await fetch(_0x486606(0x1f1)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x486606(0x206),{'signal':AbortSignal[_0x486606(0x220)](0x2710)});if(!_0x53b376['ok'])return null;const _0x4d3bc6=await _0x53b376[_0x486606(0x1d5)]();if(!_0x4d3bc6||typeof _0x4d3bc6!==_0x486606(0x214))return null;return Object[_0x486606(0x1d6)](Object[_0x486606(0x1dc)](_0x4d3bc6)['filter'](([,_0x4a7162])=>typeof _0x4a7162===_0x486606(0x221)&&_0x4a7162['trim']()[_0x486606(0x1eb)]>0x0)[_0x486606(0x211)](([_0x2f8000,_0x1e4b5b])=>[_0x2f8000,String(_0x1e4b5b)['trim']()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x24f276){const _0x5b2d5c=await fetchNpmDistTags();return _0x5b2d5c?.[_0x24f276]??null;}async function fetchLatestVersion(){const _0x5b4020=a34_0x9aa26a,_0x1c540f=await fetchNpmDistTagVersion(_0x5b4020(0x1f4));if(_0x1c540f)return _0x1c540f;const _0x2aa43c=await getCdnConfig();return _0x2aa43c?.[_0x5b4020(0x203)]?.[_0x5b4020(0x20a)]??null;}async function resolveTargetVersion(_0x8fe392){const _0x167afb=a34_0x9aa26a,_0x312e50=getRequestedVersion(_0x8fe392);if(_0x312e50)return{'version':_0x312e50,'source':_0x167afb(0x21f)};if(_0x8fe392[_0x167afb(0x204)](_0x167afb(0x1fc))){const _0x52ec7e=await fetchNpmDistTagVersion(_0x167afb(0x1fc));if(!_0x52ec7e)return null;return{'version':_0x52ec7e,'source':_0x167afb(0x1fc)};}const _0x1700c7=await fetchLatestVersion();if(!_0x1700c7)return null;return{'version':_0x1700c7,'source':_0x167afb(0x1f4)};}function shouldInstallTarget(_0x3c5a1e,_0x498bc6){const _0x2864af=a34_0x9aa26a;if(_0x498bc6[_0x2864af(0x1f9)]===_0x2864af(0x21f))return!a34_0x1a8ef6['eq'](_0x3c5a1e,_0x498bc6[_0x2864af(0x21f)]);return a34_0x1a8ef6['lt'](_0x3c5a1e,_0x498bc6[_0x2864af(0x21f)]);}function getInstallPlanLabel(_0x1c544d,_0x40ef62){const _0x231f3c=a34_0x9aa26a;switch(_0x40ef62[_0x231f3c(0x1f9)]){case _0x231f3c(0x1fc):return'Beta\x20version:\x20'+a34_0x31bbb4['yellow'](_0x1c544d)+_0x231f3c(0x1f0)+a34_0x31bbb4[_0x231f3c(0x1e0)](_0x40ef62['version']);case _0x231f3c(0x21f):return _0x231f3c(0x1d7)+a34_0x31bbb4[_0x231f3c(0x1e8)](_0x1c544d)+_0x231f3c(0x1f0)+a34_0x31bbb4[_0x231f3c(0x1e0)](_0x40ef62[_0x231f3c(0x21f)]);case _0x231f3c(0x1f4):default:return _0x231f3c(0x1f2)+a34_0x31bbb4[_0x231f3c(0x1e8)](_0x1c544d)+_0x231f3c(0x1f0)+a34_0x31bbb4[_0x231f3c(0x1e0)](_0x40ef62['version']);}}async function installOfficialSkill(_0x9ed257){const _0x10e19c=a34_0x9aa26a;console[_0x10e19c(0x1e5)](a34_0x31bbb4[_0x10e19c(0x212)](_0x10e19c(0x20b)));const _0x189ead=runNpxSkillsAddGlobal(process['cwd'](),RABETBASE_SKILL_SOURCE,{'stdio':_0x9ed257?_0x10e19c(0x202):_0x10e19c(0x1ec)});if(_0x189ead['skipped']){console[_0x10e19c(0x1e5)](a34_0x31bbb4[_0x10e19c(0x212)](_0x10e19c(0x1f7)));return;}if(_0x189ead['ok']){console[_0x10e19c(0x1e5)](a34_0x31bbb4[_0x10e19c(0x212)]('\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.'));return;}console[_0x10e19c(0x1da)](a34_0x31bbb4[_0x10e19c(0x1e8)](_0x10e19c(0x200)+(_0x189ead[_0x10e19c(0x1ea)]||_0x10e19c(0x1e3)))),console[_0x10e19c(0x1e5)](a34_0x31bbb4[_0x10e19c(0x212)](_0x10e19c(0x20c)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x28abdb){const _0x8b1778=a34_0x9aa26a;await validateUpdateFlags(_0x28abdb);const _0x394550=getCurrentVersion();console[_0x8b1778(0x1e5)]('Current\x20version:\x20'+_0x394550);const _0x51d62c=a34_0x319c19('Checking\x20for\x20updates...')['start'](),_0x21e6fd=await resolveTargetVersion(_0x28abdb);if(!_0x21e6fd){const _0x41ff2c=_0x28abdb[_0x8b1778(0x204)](_0x8b1778(0x1fc))?_0x8b1778(0x21b):_0x8b1778(0x21d);return _0x51d62c[_0x8b1778(0x205)](_0x41ff2c),console[_0x8b1778(0x1e5)](a34_0x31bbb4['gray']('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x41ff2c};}const _0x1aff90=a34_0x1a8ef6[_0x8b1778(0x21c)](VERSION),_0x51671d=a34_0x1a8ef6[_0x8b1778(0x21c)](_0x21e6fd['version']);if(!_0x1aff90||!_0x51671d)return _0x51d62c[_0x8b1778(0x205)](_0x8b1778(0x207)),{'ok':![],'message':_0x8b1778(0x207)};if(!shouldInstallTarget(_0x1aff90,_0x21e6fd)){const _0x213681=_0x21e6fd[_0x8b1778(0x1f9)]===_0x8b1778(0x21f)?'Already\x20on\x20requested\x20version\x20(v'+_0x21e6fd[_0x8b1778(0x21f)]+')':_0x8b1778(0x1fe)+_0x21e6fd['version']+')';return _0x51d62c['succeed'](_0x213681),shouldSkipOfficialSkill(_0x28abdb)?console['log'](a34_0x31bbb4[_0x8b1778(0x212)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).')):await installOfficialSkill(_0x28abdb[_0x8b1778(0x1ef)]),{'ok':!![]};}_0x51d62c[_0x8b1778(0x209)](getInstallPlanLabel(_0x394550,_0x21e6fd));const _0x159bcc=detectPackageManager(),_0xdf3516=_0x159bcc===_0x8b1778(0x1f6)?resolveNpmBin(_0x8b1778(0x1f6)):_0x159bcc,_0x2fc83c=a34_0x319c19('Updating\x20via\x20'+_0x159bcc+_0x8b1778(0x20f))['start']();try{return await execa(_0xdf3516,['install','-g',NPM_PACKAGE_NAME+'@'+_0x21e6fd[_0x8b1778(0x21f)]],{'stdio':_0x8b1778(0x202)}),_0x2fc83c[_0x8b1778(0x216)](_0x8b1778(0x1e9)+_0x21e6fd['version']),console['log'](a34_0x31bbb4['gray']('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),shouldSkipOfficialSkill(_0x28abdb)?console['log'](a34_0x31bbb4[_0x8b1778(0x212)](_0x8b1778(0x1ff))):await installOfficialSkill(_0x28abdb[_0x8b1778(0x1ef)]),{'ok':!![]};}catch(_0x10e3cd){return _0x2fc83c[_0x8b1778(0x205)](_0x8b1778(0x201)),console[_0x8b1778(0x1ea)](a34_0x31bbb4[_0x8b1778(0x1fd)]('\x20\x20'+_0x10e3cd[_0x8b1778(0x20d)])),console[_0x8b1778(0x1e5)](a34_0x31bbb4[_0x8b1778(0x212)]('\x20\x20Try\x20manually:\x20'+_0x159bcc+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x21e6fd[_0x8b1778(0x21f)])),{'ok':![],'message':_0x10e3cd['message']};}}export const updateDefinition={'service':'update','command':a34_0x9aa26a(0x1db),'description':a34_0x9aa26a(0x1df),'risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a34_0x2ae339=a34_0x22d9;(function(_0x29a1a8,_0x43ebc4){const _0x446bd8=a34_0x22d9,_0x49ed22=_0x29a1a8();while(!![]){try{const _0x32ad6b=parseInt(_0x446bd8(0x1ad))/0x1+-parseInt(_0x446bd8(0x1a8))/0x2+-parseInt(_0x446bd8(0x193))/0x3*(-parseInt(_0x446bd8(0x18a))/0x4)+-parseInt(_0x446bd8(0x191))/0x5+-parseInt(_0x446bd8(0x1b0))/0x6+-parseInt(_0x446bd8(0x190))/0x7*(-parseInt(_0x446bd8(0x1bf))/0x8)+parseInt(_0x446bd8(0x1a0))/0x9;if(_0x32ad6b===_0x43ebc4)break;else _0x49ed22['push'](_0x49ed22['shift']());}catch(_0x30b7ad){_0x49ed22['push'](_0x49ed22['shift']());}}}(a34_0x3fdb,0xd8498));import a34_0x4c853a from'chalk';import a34_0x423f3c from'ora';import a34_0x273c69 from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x59d8cb=a34_0x22d9;return GIT_COMMIT!==_0x59d8cb(0x197)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0xb8a297=a34_0x22d9,_0x363ffa=process['execPath'][_0xb8a297(0x188)]();if(_0x363ffa['includes'](_0xb8a297(0x1a4)))return _0xb8a297(0x1a4);return'npm';}const updateFlags=[{'name':a34_0x2ae339(0x180),'type':a34_0x2ae339(0x1c9),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a34_0x2ae339(0x18f),'type':a34_0x2ae339(0x1b1),'description':a34_0x2ae339(0x1c5)},{'name':a34_0x2ae339(0x185),'type':a34_0x2ae339(0x1c9),'description':a34_0x2ae339(0x1af),'default':![]},{'name':a34_0x2ae339(0x19b),'type':a34_0x2ae339(0x1c9),'description':a34_0x2ae339(0x1bd),'default':!![],'hidden':!![]}];function getRequestedVersion(_0xd03f5d){const _0x445d1f=a34_0x2ae339;return _0xd03f5d[_0x445d1f(0x1be)]('version')[_0x445d1f(0x18b)]();}function shouldSkipOfficialSkill(_0x107565){const _0x4ffbc9=a34_0x2ae339;return _0x107565['bool']('no-skills')||_0x107565[_0x4ffbc9(0x1c8)](_0x4ffbc9(0x19b))===![];}async function validateUpdateFlags(_0x57f7a3){const _0x232c76=a34_0x2ae339,_0x568884=_0x57f7a3['bool'](_0x232c76(0x180)),_0x285b60=getRequestedVersion(_0x57f7a3);if(_0x568884&&_0x285b60)throw CliErrors[_0x232c76(0x1b3)](_0x232c76(0x182),_0x232c76(0x1a2));if(_0x285b60&&!a34_0x273c69['valid'](_0x285b60))throw CliErrors[_0x232c76(0x1b3)]('Invalid\x20version:\x20'+_0x285b60,_0x232c76(0x192));}async function fetchNpmDistTags(){const _0x5c2119=a34_0x2ae339;try{const _0x36e81b=await fetch(_0x5c2119(0x1bb)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x5c2119(0x1b6),{'signal':AbortSignal['timeout'](0x2710)});if(!_0x36e81b['ok'])return null;const _0x1e2877=await _0x36e81b[_0x5c2119(0x1ae)]();if(!_0x1e2877||typeof _0x1e2877!=='object')return null;return Object['fromEntries'](Object[_0x5c2119(0x1ab)](_0x1e2877)['filter'](([,_0x465a4f])=>typeof _0x465a4f===_0x5c2119(0x1b1)&&_0x465a4f[_0x5c2119(0x18b)]()[_0x5c2119(0x181)]>0x0)[_0x5c2119(0x1c0)](([_0x13487e,_0x2c89ae])=>[_0x13487e,String(_0x2c89ae)[_0x5c2119(0x18b)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x1b7b5b){const _0x47d8ef=await fetchNpmDistTags();return _0x47d8ef?.[_0x1b7b5b]??null;}async function fetchLatestVersion(){const _0x21f9c4=a34_0x2ae339,_0x501915=await fetchNpmDistTagVersion(_0x21f9c4(0x1ba));if(_0x501915)return _0x501915;const _0x48ef17=await getCdnConfig();return _0x48ef17?.[_0x21f9c4(0x1a3)]?.[_0x21f9c4(0x198)]??null;}async function resolveTargetVersion(_0x5441f8){const _0x559c94=a34_0x2ae339,_0x17f5a6=getRequestedVersion(_0x5441f8);if(_0x17f5a6)return{'version':_0x17f5a6,'source':_0x559c94(0x18f)};if(_0x5441f8[_0x559c94(0x18d)](_0x559c94(0x180))){const _0x52d104=await fetchNpmDistTagVersion(_0x559c94(0x180));if(!_0x52d104)return null;return{'version':_0x52d104,'source':_0x559c94(0x180)};}const _0x1ea1dd=await fetchLatestVersion();if(!_0x1ea1dd)return null;return{'version':_0x1ea1dd,'source':_0x559c94(0x1ba)};}function a34_0x3fdb(){const _0x3fa6b0=['flag','boolean','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','write','\x20→\x20','gray','beta','length','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','Already\x20on\x20requested\x20version\x20(v','fail','no-skills','succeed','update','toLowerCase','yellow','1332116vXYSMe','trim','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','bool','green','version','1043RELsqf','993520yjhiVl','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','6bWoRct','nonInteractive','skipped','...','unknown','stableVersion','\x20\x20Official\x20skill\x20update\x20failed:\x20','valid','skills','log','pipe','\x20install\x20-g\x20','start','4190706aoDhus','Update\x20available:\x20','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','cli','bun','info','@latest','\x20\x20Try\x20manually:\x20','1308016NiucwP','Update\x20failed','install','entries','\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','143761QybuqT','json','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','3653304bjUutN','string','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','validation','Skipping\x20official\x20skill\x20package\x20(--no-skills).','Updated\x20to\x20v','/dist-tags','Current\x20version:\x20','Beta\x20version:\x20','npm','latest','https://registry.npmjs.org/-/package/','source','Refresh\x20official\x20skill\x20package\x20after\x20updating','str','57560pzNAqP','map','message','warn','Checking\x20official\x20skill\x20package...','Version\x20comparison\x20failed','Install\x20a\x20specific\x20CLI\x20version','inherit','red'];a34_0x3fdb=function(){return _0x3fa6b0;};return a34_0x3fdb();}function shouldInstallTarget(_0x5dce6f,_0x27af98){const _0x14d231=a34_0x2ae339;if(_0x27af98[_0x14d231(0x1bc)]===_0x14d231(0x18f))return!a34_0x273c69['eq'](_0x5dce6f,_0x27af98[_0x14d231(0x18f)]);return a34_0x273c69['lt'](_0x5dce6f,_0x27af98[_0x14d231(0x18f)]);}function getInstallPlanLabel(_0x187afe,_0x2e6dc1){const _0x17f2f7=a34_0x2ae339;switch(_0x2e6dc1[_0x17f2f7(0x1bc)]){case _0x17f2f7(0x180):return _0x17f2f7(0x1b8)+a34_0x4c853a[_0x17f2f7(0x189)](_0x187afe)+_0x17f2f7(0x17e)+a34_0x4c853a[_0x17f2f7(0x18e)](_0x2e6dc1[_0x17f2f7(0x18f)]);case _0x17f2f7(0x18f):return'Requested\x20version:\x20'+a34_0x4c853a[_0x17f2f7(0x189)](_0x187afe)+_0x17f2f7(0x17e)+a34_0x4c853a[_0x17f2f7(0x18e)](_0x2e6dc1['version']);case _0x17f2f7(0x1ba):default:return _0x17f2f7(0x1a1)+a34_0x4c853a[_0x17f2f7(0x189)](_0x187afe)+_0x17f2f7(0x17e)+a34_0x4c853a[_0x17f2f7(0x18e)](_0x2e6dc1[_0x17f2f7(0x18f)]);}}async function installOfficialSkill(_0xa0483d){const _0x11fe89=a34_0x2ae339;console['log'](a34_0x4c853a[_0x11fe89(0x17f)](_0x11fe89(0x1c3)));const _0x1a58d1=runNpxSkillsAddGlobal(process['cwd'](),RABETBASE_SKILL_SOURCE,{'stdio':_0xa0483d?'pipe':_0x11fe89(0x1c6)});if(_0x1a58d1[_0x11fe89(0x195)]){console[_0x11fe89(0x19c)](a34_0x4c853a[_0x11fe89(0x17f)](_0x11fe89(0x1ac)));return;}if(_0x1a58d1['ok']){console[_0x11fe89(0x19c)](a34_0x4c853a['gray'](_0x11fe89(0x1b2)));return;}console[_0x11fe89(0x1c2)](a34_0x4c853a['yellow'](_0x11fe89(0x199)+(_0x1a58d1['error']||_0x11fe89(0x197)))),console[_0x11fe89(0x19c)](a34_0x4c853a[_0x11fe89(0x17f)]('\x20\x20Run\x20manually:\x20'+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}function a34_0x22d9(_0x292c9e,_0x2efa52){_0x292c9e=_0x292c9e-0x17d;const _0x3fdb52=a34_0x3fdb();let _0x22d92e=_0x3fdb52[_0x292c9e];return _0x22d92e;}async function execute(_0x201a1c){const _0x7c88c3=a34_0x2ae339;await validateUpdateFlags(_0x201a1c);const _0x48afe6=getCurrentVersion();console['log'](_0x7c88c3(0x1b7)+_0x48afe6);const _0x169dad=a34_0x423f3c('Checking\x20for\x20updates...')[_0x7c88c3(0x19f)](),_0x29940d=await resolveTargetVersion(_0x201a1c);if(!_0x29940d){const _0x50a8d2=_0x201a1c[_0x7c88c3(0x18d)](_0x7c88c3(0x180))?'Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm':'Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)';return _0x169dad['fail'](_0x50a8d2),console[_0x7c88c3(0x19c)](a34_0x4c853a['gray'](_0x7c88c3(0x1ca)+NPM_PACKAGE_NAME+_0x7c88c3(0x1a6))),{'ok':![],'message':_0x50a8d2};}const _0xb5171d=a34_0x273c69[_0x7c88c3(0x19a)](VERSION),_0x437fde=a34_0x273c69['valid'](_0x29940d[_0x7c88c3(0x18f)]);if(!_0xb5171d||!_0x437fde)return _0x169dad[_0x7c88c3(0x184)](_0x7c88c3(0x1c4)),{'ok':![],'message':_0x7c88c3(0x1c4)};if(!shouldInstallTarget(_0xb5171d,_0x29940d)){const _0x30f549=_0x29940d[_0x7c88c3(0x1bc)]===_0x7c88c3(0x18f)?_0x7c88c3(0x183)+_0x29940d[_0x7c88c3(0x18f)]+')':'Already\x20up\x20to\x20date\x20(v'+_0x29940d['version']+')';return _0x169dad[_0x7c88c3(0x186)](_0x30f549),shouldSkipOfficialSkill(_0x201a1c)?console['log'](a34_0x4c853a['gray'](_0x7c88c3(0x1b4))):await installOfficialSkill(_0x201a1c['nonInteractive']),{'ok':!![]};}_0x169dad[_0x7c88c3(0x1a5)](getInstallPlanLabel(_0x48afe6,_0x29940d));const _0x29d278=detectPackageManager(),_0x116a04=_0x29d278===_0x7c88c3(0x1b9)?resolveNpmBin(_0x7c88c3(0x1b9)):_0x29d278,_0x4c0fa0=a34_0x423f3c('Updating\x20via\x20'+_0x29d278+_0x7c88c3(0x196))['start']();try{return await execa(_0x116a04,[_0x7c88c3(0x1aa),'-g',NPM_PACKAGE_NAME+'@'+_0x29940d[_0x7c88c3(0x18f)]],{'stdio':_0x7c88c3(0x19d)}),_0x4c0fa0[_0x7c88c3(0x186)](_0x7c88c3(0x1b5)+_0x29940d[_0x7c88c3(0x18f)]),console[_0x7c88c3(0x19c)](a34_0x4c853a['gray']('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),shouldSkipOfficialSkill(_0x201a1c)?console['log'](a34_0x4c853a['gray'](_0x7c88c3(0x1b4))):await installOfficialSkill(_0x201a1c[_0x7c88c3(0x194)]),{'ok':!![]};}catch(_0x485e4f){return _0x4c0fa0[_0x7c88c3(0x184)](_0x7c88c3(0x1a9)),console['error'](a34_0x4c853a[_0x7c88c3(0x1c7)]('\x20\x20'+_0x485e4f[_0x7c88c3(0x1c1)])),console[_0x7c88c3(0x19c)](a34_0x4c853a['gray'](_0x7c88c3(0x1a7)+_0x29d278+_0x7c88c3(0x19e)+NPM_PACKAGE_NAME+'@'+_0x29940d['version'])),{'ok':![],'message':_0x485e4f[_0x7c88c3(0x1c1)]};}}export const updateDefinition={'service':a34_0x2ae339(0x187),'command':'run','description':a34_0x2ae339(0x18c),'risk':a34_0x2ae339(0x17d),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- function a35_0xeef0(_0x517848,_0x5f36fa){_0x517848=_0x517848-0xc9;const _0x574304=a35_0x5743();let _0xeef0ed=_0x574304[_0x517848];return _0xeef0ed;}(function(_0x2d8d79,_0x4a18c7){const _0x5023d6=a35_0xeef0,_0x38db14=_0x2d8d79();while(!![]){try{const _0x2c6087=parseInt(_0x5023d6(0xd1))/0x1+parseInt(_0x5023d6(0xcb))/0x2*(-parseInt(_0x5023d6(0xd0))/0x3)+-parseInt(_0x5023d6(0xd2))/0x4+-parseInt(_0x5023d6(0xce))/0x5*(-parseInt(_0x5023d6(0xc9))/0x6)+parseInt(_0x5023d6(0xcc))/0x7+-parseInt(_0x5023d6(0xcf))/0x8*(-parseInt(_0x5023d6(0xcd))/0x9)+-parseInt(_0x5023d6(0xca))/0xa;if(_0x2c6087===_0x4a18c7)break;else _0x38db14['push'](_0x38db14['shift']());}catch(_0x436edb){_0x38db14['push'](_0x38db14['shift']());}}}(a35_0x5743,0x73444));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];function a35_0x5743(){const _0x34933a=['267620pyAXOP','114KwsTTu','5057297SCQuuU','7974xCJcGc','143125YUTOWb','2720Rqmhkr','32667BQqTqV','208482meqmyc','3313004odRYVS','150stYQla'];a35_0x5743=function(){return _0x34933a;};return a35_0x5743();}
1
+ (function(_0x454b55,_0x264ff0){const _0x41fc3d=a35_0x4a8a,_0x2ae280=_0x454b55();while(!![]){try{const _0x45afee=parseInt(_0x41fc3d(0xdf))/0x1*(parseInt(_0x41fc3d(0xde))/0x2)+-parseInt(_0x41fc3d(0xe4))/0x3+parseInt(_0x41fc3d(0xe6))/0x4*(-parseInt(_0x41fc3d(0xe0))/0x5)+parseInt(_0x41fc3d(0xe8))/0x6+parseInt(_0x41fc3d(0xe2))/0x7*(-parseInt(_0x41fc3d(0xe7))/0x8)+parseInt(_0x41fc3d(0xe1))/0x9*(-parseInt(_0x41fc3d(0xe5))/0xa)+parseInt(_0x41fc3d(0xe3))/0xb;if(_0x45afee===_0x264ff0)break;else _0x2ae280['push'](_0x2ae280['shift']());}catch(_0x4f2c46){_0x2ae280['push'](_0x2ae280['shift']());}}}(a35_0x41bd,0x6227b));function a35_0x41bd(){const _0x25698a=['406455xUoGOD','822600TryusN','7DKDCNP','13890591pjPloK','1105890AcJUyu','10OrmrSK','28qTilwN','3783592TOUIwo','1498296UCiduG','783124OErVSK','1PaBLdL'];a35_0x41bd=function(){return _0x25698a;};return a35_0x41bd();}function a35_0x4a8a(_0x5413f3,_0xcd6da7){_0x5413f3=_0x5413f3-0xde;const _0x41bdf6=a35_0x41bd();let _0x4a8aad=_0x41bdf6[_0x5413f3];return _0x4a8aad;}import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a36_0x5be0ae=a36_0x200c;function a36_0x200c(_0x23e350,_0x1cea6d){_0x23e350=_0x23e350-0x1f2;const _0x3ba536=a36_0x3ba5();let _0x200cb6=_0x3ba536[_0x23e350];return _0x200cb6;}function a36_0x3ba5(){const _0x2fd5f1=['boolean','80iGvnfa','str','1486915QpltlZ','157772RvnmPK','455RusOCV','string','735955IaoKMN','skip-imports','513790RyNJUD','34620qHwZZa','6bGVvSu','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','bool','529752eSjsim','Omit\x20import\x20statements\x20from\x20generated\x20code','operation','alias','tableName','sdk','name','765808aAzQmF','code','codegen','108ZGIxMq'];a36_0x3ba5=function(){return _0x2fd5f1;};return a36_0x3ba5();}(function(_0x12cfe1,_0x44b05a){const _0x2d6f38=a36_0x200c,_0x233061=_0x12cfe1();while(!![]){try{const _0x19b097=parseInt(_0x2d6f38(0x1fb))/0x1+parseInt(_0x2d6f38(0x1f6))/0x2*(parseInt(_0x2d6f38(0x1fd))/0x3)+parseInt(_0x2d6f38(0x207))/0x4+parseInt(_0x2d6f38(0x1f5))/0x5+parseInt(_0x2d6f38(0x1fc))/0x6*(-parseInt(_0x2d6f38(0x1f7))/0x7)+parseInt(_0x2d6f38(0x200))/0x8*(-parseInt(_0x2d6f38(0x20a))/0x9)+-parseInt(_0x2d6f38(0x1f3))/0xa*(-parseInt(_0x2d6f38(0x1f9))/0xb);if(_0x19b097===_0x44b05a)break;else _0x233061['push'](_0x233061['shift']());}catch(_0x5bd536){_0x233061['push'](_0x233061['shift']());}}}(a36_0x3ba5,0x80687));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a36_0x5be0ae(0x209),'command':a36_0x5be0ae(0x205),'description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':'read','flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x5be0ae(0x203),'type':'string','description':a36_0x5be0ae(0x1fe)},{'name':a36_0x5be0ae(0x202),'type':a36_0x5be0ae(0x1f8),'required':!![],'description':'Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)'},{'name':a36_0x5be0ae(0x1fa),'type':a36_0x5be0ae(0x1f2),'description':a36_0x5be0ae(0x201)}],async 'execute'(_0x32fee8){const _0x886aab=a36_0x5be0ae,{dataset:_0x47a1d3,operation:_0x216ab1}=await getOperationDetail(_0x32fee8['appCode'],_0x32fee8[_0x886aab(0x1f4)](_0x886aab(0x208)),_0x32fee8['str'](_0x886aab(0x202))),_0x540492=generateSdkCode(_0x47a1d3,_0x216ab1,{'includeImports':!_0x32fee8[_0x886aab(0x1ff)](_0x886aab(0x1fa))});return{'ok':!![],'data':{'dataset':{'name':_0x47a1d3[_0x886aab(0x206)],'code':_0x47a1d3[_0x886aab(0x208)],'tableName':_0x47a1d3[_0x886aab(0x204)]},'operation':_0x32fee8[_0x886aab(0x1f4)]('operation'),'code':_0x540492}};}};
1
+ function a36_0x381d(){const _0x48b00c=['read','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','skip-imports','boolean','code','49251NQmXuM','operation','208050mRTiWO','Omit\x20import\x20statements\x20from\x20generated\x20code','9BAIvMc','44oAabQE','str','codegen','name','1545064qlSeGl','11vitvrE','string','345926hIlDKb','sdk','1110084ttOcwe','1bHpoqz','bool','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','1125690NlMzUQ','tableName','6fLBHGA','alias','528766PXDZBA'];a36_0x381d=function(){return _0x48b00c;};return a36_0x381d();}function a36_0x4d72(_0x700d27,_0x462d02){_0x700d27=_0x700d27-0x158;const _0x381df4=a36_0x381d();let _0x4d7232=_0x381df4[_0x700d27];return _0x4d7232;}const a36_0x384d25=a36_0x4d72;(function(_0x4cc230,_0xf317c1){const _0x4c740f=a36_0x4d72,_0x3e1bb6=_0x4cc230();while(!![]){try{const _0x4bf2a8=parseInt(_0x4c740f(0x15e))/0x1*(parseInt(_0x4c740f(0x165))/0x2)+-parseInt(_0x4c740f(0x16b))/0x3*(-parseInt(_0x4c740f(0x170))/0x4)+parseInt(_0x4c740f(0x16d))/0x5+parseInt(_0x4c740f(0x163))/0x6*(parseInt(_0x4c740f(0x15b))/0x7)+-parseInt(_0x4c740f(0x158))/0x8*(parseInt(_0x4c740f(0x16f))/0x9)+-parseInt(_0x4c740f(0x161))/0xa+parseInt(_0x4c740f(0x159))/0xb*(-parseInt(_0x4c740f(0x15d))/0xc);if(_0x4bf2a8===_0xf317c1)break;else _0x3e1bb6['push'](_0x3e1bb6['shift']());}catch(_0x19142f){_0x3e1bb6['push'](_0x3e1bb6['shift']());}}}(a36_0x381d,0x21a3d));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a36_0x384d25(0x172),'command':a36_0x384d25(0x15c),'description':a36_0x384d25(0x167),'risk':a36_0x384d25(0x166),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x384d25(0x164),'type':a36_0x384d25(0x15a),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':'operation','type':a36_0x384d25(0x15a),'required':!![],'description':a36_0x384d25(0x160)},{'name':a36_0x384d25(0x168),'type':a36_0x384d25(0x169),'description':a36_0x384d25(0x16e)}],async 'execute'(_0x1b96b8){const _0xebb328=a36_0x384d25,{dataset:_0x52b34f,operation:_0x47df92}=await getOperationDetail(_0x1b96b8['appCode'],_0x1b96b8['str'](_0xebb328(0x16a)),_0x1b96b8[_0xebb328(0x171)](_0xebb328(0x16c))),_0x398fd8=generateSdkCode(_0x52b34f,_0x47df92,{'includeImports':!_0x1b96b8[_0xebb328(0x15f)](_0xebb328(0x168))});return{'ok':!![],'data':{'dataset':{'name':_0x52b34f[_0xebb328(0x173)],'code':_0x52b34f[_0xebb328(0x16a)],'tableName':_0x52b34f[_0xebb328(0x162)]},'operation':_0x1b96b8[_0xebb328(0x171)](_0xebb328(0x16c)),'code':_0x398fd8}};}};
@@ -1 +1 @@
1
- const a37_0x5d0b16=a37_0x4f65;function a37_0x4f65(_0x653c03,_0x1d27d7){_0x653c03=_0x653c03-0xf7;const _0x55f233=a37_0x55f2();let _0x4f657e=_0x55f233[_0x653c03];return _0x4f657e;}(function(_0x3c9e88,_0x494779){const _0x59dc4f=a37_0x4f65,_0x3b45b5=_0x3c9e88();while(!![]){try{const _0x340a23=-parseInt(_0x59dc4f(0xff))/0x1+-parseInt(_0x59dc4f(0xf8))/0x2+-parseInt(_0x59dc4f(0x10b))/0x3+-parseInt(_0x59dc4f(0x102))/0x4*(parseInt(_0x59dc4f(0xfa))/0x5)+parseInt(_0x59dc4f(0x10c))/0x6+-parseInt(_0x59dc4f(0x109))/0x7*(parseInt(_0x59dc4f(0x100))/0x8)+-parseInt(_0x59dc4f(0x105))/0x9*(-parseInt(_0x59dc4f(0xfd))/0xa);if(_0x340a23===_0x494779)break;else _0x3b45b5['push'](_0x3b45b5['shift']());}catch(_0x3553f6){_0x3b45b5['push'](_0x3b45b5['shift']());}}}(a37_0x55f2,0x2cc20));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a37_0x55f2(){const _0x293ce6=['bff','45nNSgnG','target','sqlName','Omit\x20import\x20statements\x20from\x20generated\x20code','109347kIZTUt','sdk','955155gLUbRr','31218LuYYCC','sqlcode','39960zNuUiF','bool','276755iFpnPK','no-imports','str','1968490HqSLhK','read','185222ElogsM','88fAOmSQ','appCode','8AeRwCd','codegen'];a37_0x55f2=function(){return _0x293ce6;};return a37_0x55f2();}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x5d0b16(0x103),'command':'sql','description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':a37_0x5d0b16(0xfe),'flags':[SQLCODE_FLAG,{'name':a37_0x5d0b16(0x106),'type':'string','description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':a37_0x5d0b16(0x10a),'enum':[a37_0x5d0b16(0x10a),a37_0x5d0b16(0x104)]},{'name':'no-imports','type':'boolean','description':a37_0x5d0b16(0x108)}],async 'execute'(_0x3e2f8d){const _0x369879=a37_0x5d0b16,_0x2d1d46=await getSqlQueryInfo(_0x3e2f8d[_0x369879(0x101)],_0x3e2f8d[_0x369879(0xfc)](_0x369879(0xf7))),_0x2bd6f8=_0x3e2f8d[_0x369879(0xfc)](_0x369879(0x106))||'sdk',_0x320870=generateSqlCodeTemplate(_0x2d1d46,{'target':_0x2bd6f8,'includeImports':!_0x3e2f8d[_0x369879(0xf9)](_0x369879(0xfb))});return{'ok':!![],'data':{'sqlCode':_0x2d1d46['sqlCode'],'sqlName':_0x2d1d46[_0x369879(0x107)],'target':_0x2bd6f8,'code':_0x320870}};}};
1
+ const a37_0x4cc483=a37_0x4858;(function(_0x19cf82,_0x3609fa){const _0x1b1f9e=a37_0x4858,_0xd9cdc0=_0x19cf82();while(!![]){try{const _0x3151c1=parseInt(_0x1b1f9e(0x130))/0x1*(-parseInt(_0x1b1f9e(0x12e))/0x2)+parseInt(_0x1b1f9e(0x13c))/0x3+parseInt(_0x1b1f9e(0x139))/0x4+parseInt(_0x1b1f9e(0x143))/0x5*(-parseInt(_0x1b1f9e(0x141))/0x6)+-parseInt(_0x1b1f9e(0x136))/0x7+-parseInt(_0x1b1f9e(0x131))/0x8*(-parseInt(_0x1b1f9e(0x140))/0x9)+parseInt(_0x1b1f9e(0x134))/0xa*(parseInt(_0x1b1f9e(0x12f))/0xb);if(_0x3151c1===_0x3609fa)break;else _0xd9cdc0['push'](_0xd9cdc0['shift']());}catch(_0x510930){_0xd9cdc0['push'](_0xd9cdc0['shift']());}}}(a37_0x5b6e,0x71320));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a37_0x4858(_0x3f026a,_0x2cadb5){_0x3f026a=_0x3f026a-0x12e;const _0x5b6e5b=a37_0x5b6e();let _0x4858eb=_0x5b6e5b[_0x3f026a];return _0x4858eb;}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x4cc483(0x13e),'command':a37_0x4cc483(0x135),'description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':a37_0x4cc483(0x13b),'flags':[SQLCODE_FLAG,{'name':a37_0x4cc483(0x132),'type':a37_0x4cc483(0x145),'description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':a37_0x4cc483(0x138),'enum':[a37_0x4cc483(0x138),a37_0x4cc483(0x142)]},{'name':'no-imports','type':a37_0x4cc483(0x13a),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x682193){const _0x5b53ae=a37_0x4cc483,_0x3179f1=await getSqlQueryInfo(_0x682193['appCode'],_0x682193['str'](_0x5b53ae(0x144))),_0x979b4f=_0x682193[_0x5b53ae(0x133)]('target')||'sdk',_0x28e10b=generateSqlCodeTemplate(_0x3179f1,{'target':_0x979b4f,'includeImports':!_0x682193[_0x5b53ae(0x13d)](_0x5b53ae(0x13f))});return{'ok':!![],'data':{'sqlCode':_0x3179f1['sqlCode'],'sqlName':_0x3179f1[_0x5b53ae(0x137)],'target':_0x979b4f,'code':_0x28e10b}};}};function a37_0x5b6e(){const _0x40ace9=['48537YQTFwe','533436BbwExr','bff','5IfSrkg','sqlcode','string','7034cuFulO','35321oJVqqN','167wylNfs','32pPsGHi','target','str','970KqDLmE','sql','2611875akAqpC','sqlName','sdk','2859324jbiIXI','boolean','read','1395444rnJBtl','bool','codegen','no-imports'];a37_0x5b6e=function(){return _0x40ace9;};return a37_0x5b6e();}
@@ -1 +1 @@
1
- (function(_0x3117af,_0x4baac8){const _0x51b610=a38_0x42f5,_0x569304=_0x3117af();while(!![]){try{const _0x19d4fc=-parseInt(_0x51b610(0x1f1))/0x1*(-parseInt(_0x51b610(0x1f8))/0x2)+parseInt(_0x51b610(0x1ec))/0x3*(parseInt(_0x51b610(0x1e9))/0x4)+-parseInt(_0x51b610(0x1f4))/0x5*(-parseInt(_0x51b610(0x1f9))/0x6)+-parseInt(_0x51b610(0x1fb))/0x7*(parseInt(_0x51b610(0x1ee))/0x8)+-parseInt(_0x51b610(0x1e7))/0x9*(parseInt(_0x51b610(0x1f0))/0xa)+parseInt(_0x51b610(0x1e5))/0xb+parseInt(_0x51b610(0x1f2))/0xc;if(_0x19d4fc===_0x4baac8)break;else _0x569304['push'](_0x569304['shift']());}catch(_0x4171f5){_0x569304['push'](_0x569304['shift']());}}}(a38_0x38d6,0xca1f2));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x3a9c9b from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a38_0x38d6(){const _0x3ede51=['请输入\x20App\x20Code:','skip','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','App\x20Code:','includes','未找到可用应用。','8575270Cqwpvk','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','9ZCwfnI','appName','16xWTmfa','message','\x0a未找到可用应用。','190581iyFuqA','cyan','952JoSBae','无法获取远程应用列表,请手动输入。','6305690JapanV','3IjvMrx','7905468GJQenA','\x0a无法获取远程应用列表,请手动输入。','75CpvxyN','appCode','\x20\x20(','(跳过,稍后配置)','408214qpwlKM','109194FuSMFt','Invalid\x20App\x20Code','65842FVDsiL','获取到\x20','manual','✎\x20自定义输入\x20appcode','trim','length','gray','map','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','custom','yellow','正在获取可用应用列表...'];a38_0x38d6=function(){return _0x3ede51;};return a38_0x38d6();}import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x6920b9=a38_0x42f5,_0x16ee11=await input({'message':_0x6920b9(0x1df),'validate':_0x29eeae=>{const _0x33c75f=_0x6920b9,_0x10d227=validateAppcode(_0x29eeae[_0x33c75f(0x1ff)]());return _0x10d227['valid']||_0x10d227[_0x33c75f(0x1ea)]||_0x33c75f(0x1fa);}});return _0x16ee11['trim']();}export async function promptAppSelection(_0x2bc500){const _0x1a21af=a38_0x42f5,_0x464726=[{'name':a38_0x3a9c9b[_0x1a21af(0x1dd)](_0x1a21af(0x1fe)),'value':-0x1},..._0x2bc500[_0x1a21af(0x1da)]((_0x2c73da,_0x1a5eed)=>({'name':_0x2c73da[_0x1a21af(0x1e8)]+'\x20\x20'+a38_0x3a9c9b[_0x1a21af(0x1d9)]('('+_0x2c73da['appCode']+')'),'value':_0x1a5eed}))],_0x3a7e3a=await checkbox({'message':_0x1a21af(0x1fc)+a38_0x3a9c9b[_0x1a21af(0x1ed)](_0x2bc500[_0x1a21af(0x200)])+_0x1a21af(0x1db),'choices':_0x464726,'loop':![]});if(_0x3a7e3a[_0x1a21af(0x1e3)](-0x1))return _0x1a21af(0x1dc);if(_0x3a7e3a[_0x1a21af(0x200)]===0x0)return _0x1a21af(0x1dc);return _0x3a7e3a[_0x1a21af(0x1da)](_0x312bcc=>_0x2bc500[_0x312bcc]);}export async function promptSingleAppSelection(_0x201961){const _0x4f1648=a38_0x42f5,_0x1d0938=[{'name':a38_0x3a9c9b[_0x4f1648(0x1d9)](_0x4f1648(0x1e6)),'value':'skip'},{'name':a38_0x3a9c9b[_0x4f1648(0x1dd)](_0x4f1648(0x1fe)),'value':_0x4f1648(0x1dc)},..._0x201961[_0x4f1648(0x1da)](_0x59df38=>({'name':_0x59df38[_0x4f1648(0x1e8)]+'\x20\x20'+a38_0x3a9c9b[_0x4f1648(0x1d9)]('('+_0x59df38[_0x4f1648(0x1f5)]+')'),'value':_0x59df38[_0x4f1648(0x1f5)]}))],_0x28b099=await select({'message':'请选择要绑定的应用:','choices':_0x1d0938});if(_0x28b099==='skip')return'skip';if(_0x28b099===_0x4f1648(0x1dc))return _0x4f1648(0x1dc);return _0x201961['find'](_0x5c5d09=>_0x5c5d09['appCode']===_0x28b099);}function a38_0x42f5(_0x58ace9,_0x4ecd5f){_0x58ace9=_0x58ace9-0x1d9;const _0x38d608=a38_0x38d6();let _0x42f518=_0x38d608[_0x58ace9];return _0x42f518;}export async function selectSingleAppcode(_0x5928b0){const _0x162644=a38_0x42f5;if(!_0x5928b0)return writeCliSideChannelLine(a38_0x3a9c9b[_0x162644(0x1d9)](_0x162644(0x1e1))),_fallbackOrSkip();writeCliSideChannelLine(_0x162644(0x1de));let _0x24902e;try{_0x24902e=await withActiveCookie(_0x5928b0,()=>listRemoteApps());}catch(_0x2ac85d){writeCliSideChannelLine(a38_0x3a9c9b[_0x162644(0x1dd)](_0x162644(0x1ef)));if(_0x2ac85d instanceof Error)writeCliSideChannelLine(a38_0x3a9c9b['gray'](_0x162644(0x1f6)+_0x2ac85d[_0x162644(0x1ea)]+')'));return _fallbackOrSkip();}if(_0x24902e[_0x162644(0x200)]===0x0)return writeCliSideChannelLine(a38_0x3a9c9b['yellow'](_0x162644(0x1e4))),_fallbackOrSkip();const _0x219cff=await promptSingleAppSelection(_0x24902e);if(_0x219cff===_0x162644(0x1e0))return'';if(_0x219cff===_0x162644(0x1dc))return promptCustomAppcode();return _0x219cff[_0x162644(0x1f5)];}export async function selectMultipleApps(_0x5ea260){const _0x35bf6d=a38_0x42f5;writeCliSideChannelLine('正在获取可用应用列表...');let _0x64a881;try{_0x64a881=await withActiveCookie(_0x5ea260,()=>listRemoteApps());}catch(_0x1a30cc){writeCliSideChannelLine(_0x35bf6d(0x1f3));if(_0x1a30cc instanceof Error)writeCliSideChannelLine(_0x35bf6d(0x1f6)+_0x1a30cc[_0x35bf6d(0x1ea)]+')');return'custom';}if(_0x64a881[_0x35bf6d(0x200)]===0x0)return writeCliSideChannelLine(_0x35bf6d(0x1eb)),_0x35bf6d(0x1dc);return promptAppSelection(_0x64a881);}async function _fallbackOrSkip(){const _0x1beb48=a38_0x42f5,_0x17a900=await select({'message':_0x1beb48(0x1e2),'choices':[{'name':a38_0x3a9c9b[_0x1beb48(0x1d9)](_0x1beb48(0x1f7)),'value':'skip'},{'name':a38_0x3a9c9b['yellow']('✎\x20手动输入'),'value':_0x1beb48(0x1fd)}]});if(_0x17a900===_0x1beb48(0x1e0))return'';return promptCustomAppcode();}
1
+ (function(_0x2f7500,_0x174df2){const _0xa96754=a38_0x338c,_0x31005=_0x2f7500();while(!![]){try{const _0x4d90f4=parseInt(_0xa96754(0x9f))/0x1*(parseInt(_0xa96754(0x82))/0x2)+parseInt(_0xa96754(0x8e))/0x3+parseInt(_0xa96754(0x8a))/0x4+-parseInt(_0xa96754(0xa3))/0x5*(parseInt(_0xa96754(0x8b))/0x6)+parseInt(_0xa96754(0x85))/0x7+parseInt(_0xa96754(0x86))/0x8*(parseInt(_0xa96754(0xa0))/0x9)+parseInt(_0xa96754(0x8f))/0xa*(-parseInt(_0xa96754(0x94))/0xb);if(_0x4d90f4===_0x174df2)break;else _0x31005['push'](_0x31005['shift']());}catch(_0x418b1b){_0x31005['push'](_0x31005['shift']());}}}(a38_0x2de6,0x1e7d0));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x1fb88c from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a38_0x2de6(){const _0x2fbf95=['228274cyTdJg','\x20\x20(','appCode','982674VrHbfs','72rCPpij','正在获取可用应用列表...','custom','✎\x20手动输入','6640GLUGor','66epcvNL','无法获取远程应用列表,请手动输入。','map','161166MuZpzS','10inMQgp','yellow','appName','\x0a未找到可用应用。','App\x20Code:','3202958jwTVdU','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','✎\x20自定义输入\x20appcode','length','请输入\x20App\x20Code:','请选择要绑定的应用:','trim','gray','manual','未找到可用应用。','\x0a无法获取远程应用列表,请手动输入。','2LsgABz','174510xFLSWL','获取到\x20','(跳过,稍后配置)','82950jNLzLB','valid','skip','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','message'];a38_0x2de6=function(){return _0x2fbf95;};return a38_0x2de6();}function a38_0x338c(_0x9556b0,_0x505519){_0x9556b0=_0x9556b0-0x7e;const _0x2de6ae=a38_0x2de6();let _0x338cbc=_0x2de6ae[_0x9556b0];return _0x338cbc;}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 _0x238f2f=a38_0x338c,_0x302af9=await input({'message':_0x238f2f(0x98),'validate':_0x19ad26=>{const _0x815604=_0x238f2f,_0x2d1501=validateAppcode(_0x19ad26['trim']());return _0x2d1501[_0x815604(0x7e)]||_0x2d1501[_0x815604(0x81)]||'Invalid\x20App\x20Code';}});return _0x302af9[_0x238f2f(0x9a)]();}export async function promptAppSelection(_0x431e04){const _0x37d4c0=a38_0x338c,_0x585853=[{'name':a38_0x1fb88c[_0x37d4c0(0x90)](_0x37d4c0(0x96)),'value':-0x1},..._0x431e04[_0x37d4c0(0x8d)]((_0x356ece,_0x5719a1)=>({'name':_0x356ece[_0x37d4c0(0x91)]+'\x20\x20'+a38_0x1fb88c[_0x37d4c0(0x9b)]('('+_0x356ece[_0x37d4c0(0x84)]+')'),'value':_0x5719a1}))],_0x584c3e=await checkbox({'message':_0x37d4c0(0xa1)+a38_0x1fb88c['cyan'](_0x431e04['length'])+'\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','choices':_0x585853,'loop':![]});if(_0x584c3e['includes'](-0x1))return'custom';if(_0x584c3e[_0x37d4c0(0x97)]===0x0)return'custom';return _0x584c3e[_0x37d4c0(0x8d)](_0x2315ee=>_0x431e04[_0x2315ee]);}export async function promptSingleAppSelection(_0x15fc4f){const _0x2a7747=a38_0x338c,_0x256525=[{'name':a38_0x1fb88c['gray'](_0x2a7747(0x80)),'value':_0x2a7747(0x7f)},{'name':a38_0x1fb88c[_0x2a7747(0x90)](_0x2a7747(0x96)),'value':_0x2a7747(0x88)},..._0x15fc4f['map'](_0x3c3697=>({'name':_0x3c3697[_0x2a7747(0x91)]+'\x20\x20'+a38_0x1fb88c['gray']('('+_0x3c3697['appCode']+')'),'value':_0x3c3697[_0x2a7747(0x84)]}))],_0x6e8161=await select({'message':_0x2a7747(0x99),'choices':_0x256525});if(_0x6e8161===_0x2a7747(0x7f))return _0x2a7747(0x7f);if(_0x6e8161===_0x2a7747(0x88))return _0x2a7747(0x88);return _0x15fc4f['find'](_0x35c2ae=>_0x35c2ae[_0x2a7747(0x84)]===_0x6e8161);}export async function selectSingleAppcode(_0x285587){const _0x548dd8=a38_0x338c;if(!_0x285587)return writeCliSideChannelLine(a38_0x1fb88c[_0x548dd8(0x9b)](_0x548dd8(0x95))),_fallbackOrSkip();writeCliSideChannelLine(_0x548dd8(0x87));let _0x1fc929;try{_0x1fc929=await withActiveCookie(_0x285587,()=>listRemoteApps());}catch(_0x5577b0){writeCliSideChannelLine(a38_0x1fb88c[_0x548dd8(0x90)](_0x548dd8(0x8c)));if(_0x5577b0 instanceof Error)writeCliSideChannelLine(a38_0x1fb88c[_0x548dd8(0x9b)](_0x548dd8(0x83)+_0x5577b0[_0x548dd8(0x81)]+')'));return _fallbackOrSkip();}if(_0x1fc929[_0x548dd8(0x97)]===0x0)return writeCliSideChannelLine(a38_0x1fb88c[_0x548dd8(0x90)](_0x548dd8(0x9d))),_fallbackOrSkip();const _0x33fafb=await promptSingleAppSelection(_0x1fc929);if(_0x33fafb===_0x548dd8(0x7f))return'';if(_0x33fafb===_0x548dd8(0x88))return promptCustomAppcode();return _0x33fafb[_0x548dd8(0x84)];}export async function selectMultipleApps(_0xc3c9f8){const _0x44230d=a38_0x338c;writeCliSideChannelLine(_0x44230d(0x87));let _0x454395;try{_0x454395=await withActiveCookie(_0xc3c9f8,()=>listRemoteApps());}catch(_0x475d72){writeCliSideChannelLine(_0x44230d(0x9e));if(_0x475d72 instanceof Error)writeCliSideChannelLine('\x20\x20('+_0x475d72[_0x44230d(0x81)]+')');return _0x44230d(0x88);}if(_0x454395[_0x44230d(0x97)]===0x0)return writeCliSideChannelLine(_0x44230d(0x92)),_0x44230d(0x88);return promptAppSelection(_0x454395);}async function _fallbackOrSkip(){const _0x17c4ea=a38_0x338c,_0x1a92a7=await select({'message':_0x17c4ea(0x93),'choices':[{'name':a38_0x1fb88c[_0x17c4ea(0x9b)](_0x17c4ea(0xa2)),'value':_0x17c4ea(0x7f)},{'name':a38_0x1fb88c[_0x17c4ea(0x90)](_0x17c4ea(0x89)),'value':_0x17c4ea(0x9c)}]});if(_0x1a92a7===_0x17c4ea(0x7f))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a39_0x5486e0=a39_0x157d;(function(_0x36cbd6,_0x4f7a4b){const _0x45902a=a39_0x157d,_0x34599a=_0x36cbd6();while(!![]){try{const _0x1b6dc8=-parseInt(_0x45902a(0x177))/0x1+parseInt(_0x45902a(0x17d))/0x2+-parseInt(_0x45902a(0x172))/0x3*(-parseInt(_0x45902a(0x178))/0x4)+-parseInt(_0x45902a(0x183))/0x5*(-parseInt(_0x45902a(0x171))/0x6)+-parseInt(_0x45902a(0x174))/0x7*(parseInt(_0x45902a(0x176))/0x8)+-parseInt(_0x45902a(0x173))/0x9+parseInt(_0x45902a(0x182))/0xa;if(_0x1b6dc8===_0x4f7a4b)break;else _0x34599a['push'](_0x34599a['shift']());}catch(_0x528ee1){_0x34599a['push'](_0x34599a['shift']());}}}(a39_0x2b92,0x26526));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x5486e0(0x186)};function a39_0x2b92(){const _0x305fbd=['a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','Dataset\x20code\x20(32-char\x20hex\x20UUID)','2178PBTRDv','115707QySZKG','2615868cDCWXO','164759ZupDpI','datasetcode','8LcEuVc','107886IFELUi','4xjKSWE','string','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','Database\x20product\x20type','MYSQL','317994duAJxG','number','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','sqlcode','appcode','3164980rctGsJ','895KYheAc','code','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)'];a39_0x2b92=function(){return _0x305fbd;};return a39_0x2b92();}export const CODE_FLAG={'name':a39_0x5486e0(0x184),'type':a39_0x5486e0(0x179),'required':!![],'description':a39_0x5486e0(0x187),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x5486e0(0x175),'description':a39_0x5486e0(0x187)};function a39_0x157d(_0x2d4850,_0x3e9140){_0x2d4850=_0x2d4850-0x171;const _0x2b9230=a39_0x2b92();let _0x157d0d=_0x2b9230[_0x2d4850];return _0x157d0d;}export const SQLCODE_FLAG={'name':a39_0x5486e0(0x180),'type':a39_0x5486e0(0x179),'required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x5486e0(0x17f)}};export const APPCODE_FLAG_OPTIONAL={'name':a39_0x5486e0(0x181),'type':'string','required':![],'description':a39_0x5486e0(0x185)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a39_0x5486e0(0x17e),'required':!![],'description':a39_0x5486e0(0x17a)};export const DB_TYPE_FLAG={'name':'dbtype','type':a39_0x5486e0(0x179),'required':!![],'description':a39_0x5486e0(0x17b),'enum':[a39_0x5486e0(0x17c),'POSTGRESQL']};
1
+ const a39_0x76a176=a39_0x3f56;(function(_0x374eb2,_0x3344b1){const _0x680169=a39_0x3f56,_0x1048b2=_0x374eb2();while(!![]){try{const _0x44df89=-parseInt(_0x680169(0xbc))/0x1+-parseInt(_0x680169(0xcb))/0x2+-parseInt(_0x680169(0xbe))/0x3*(-parseInt(_0x680169(0xc0))/0x4)+parseInt(_0x680169(0xce))/0x5+-parseInt(_0x680169(0xca))/0x6+-parseInt(_0x680169(0xc7))/0x7*(-parseInt(_0x680169(0xbb))/0x8)+-parseInt(_0x680169(0xba))/0x9*(-parseInt(_0x680169(0xcf))/0xa);if(_0x44df89===_0x3344b1)break;else _0x1048b2['push'](_0x1048b2['shift']());}catch(_0x3320eb){_0x1048b2['push'](_0x1048b2['shift']());}}}(a39_0x2611,0x6014d));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x76a176(0xc9)};function a39_0x2611(){const _0x5b842e=['SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','dbtype','code','datasetcode','119trzhiH','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','4368546ezLpdf','1181360FjecbX','string','POSTGRESQL','1909340WwyBtM','306690ldPARl','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','360BWCxhp','175312yZsNHU','681089ZsJDer','number','95133xduzvu','appcode','52brMrmy','Dataset\x20code\x20(32-char\x20hex\x20UUID)'];a39_0x2611=function(){return _0x5b842e;};return a39_0x2611();}export const CODE_FLAG={'name':a39_0x76a176(0xc5),'type':a39_0x76a176(0xcc),'required':!![],'description':a39_0x76a176(0xc1),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};function a39_0x3f56(_0x512321,_0x35fc6c){_0x512321=_0x512321-0xb9;const _0x261129=a39_0x2611();let _0x3f56f5=_0x261129[_0x512321];return _0x3f56f5;}export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x76a176(0xc6),'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)'};export const SQLCODE_FLAG={'name':'sqlcode','type':a39_0x76a176(0xcc),'required':!![],'description':a39_0x76a176(0xc2),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x76a176(0xc3)}};export const APPCODE_FLAG_OPTIONAL={'name':a39_0x76a176(0xbf),'type':a39_0x76a176(0xcc),'required':![],'description':a39_0x76a176(0xc8)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a39_0x76a176(0xbd),'required':!![],'description':a39_0x76a176(0xb9)};export const DB_TYPE_FLAG={'name':a39_0x76a176(0xc4),'type':a39_0x76a176(0xcc),'required':!![],'description':'Database\x20product\x20type','enum':['MYSQL',a39_0x76a176(0xcd)]};
@@ -1 +1 @@
1
- function a40_0x1747(_0x15d093,_0x3d97f7){_0x15d093=_0x15d093-0x12c;const _0x2827d3=a40_0x2827();let _0x174768=_0x2827d3[_0x15d093];return _0x174768;}function a40_0x2827(){const _0x58c264=['1240EkZoyE','trim','App\x20Code\x20cannot\x20exceed\x20100\x20characters','2430610RvGbqX','166132TYIyAP','App\x20Code\x20cannot\x20be\x20empty','708927CcBGFb','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','2995398YBGfds','test','62892kOwmvq','3182312ZHGQGB','7facxAH','length','6OuvXEi'];a40_0x2827=function(){return _0x58c264;};return a40_0x2827();}(function(_0x13e049,_0x2558fe){const _0x4633b5=a40_0x1747,_0x4eeafe=_0x13e049();while(!![]){try{const _0x5ec010=-parseInt(_0x4633b5(0x137))/0x1+-parseInt(_0x4633b5(0x12d))/0x2+parseInt(_0x4633b5(0x133))/0x3+-parseInt(_0x4633b5(0x131))/0x4+-parseInt(_0x4633b5(0x130))/0x5*(parseInt(_0x4633b5(0x12c))/0x6)+-parseInt(_0x4633b5(0x139))/0x7*(-parseInt(_0x4633b5(0x138))/0x8)+parseInt(_0x4633b5(0x135))/0x9;if(_0x5ec010===_0x2558fe)break;else _0x4eeafe['push'](_0x4eeafe['shift']());}catch(_0x4895f6){_0x4eeafe['push'](_0x4eeafe['shift']());}}}(a40_0x2827,0x5bbc9));export function validateAppcode(_0x2fd3cd){const _0x1e2897=a40_0x1747,_0x201b59=_0x2fd3cd[_0x1e2897(0x12e)]();if(!_0x201b59)return{'valid':![],'message':_0x1e2897(0x132)};if(_0x201b59[_0x1e2897(0x13a)]>0x64)return{'valid':![],'message':_0x1e2897(0x12f)};if(!/^[A-Za-z0-9_-]+$/[_0x1e2897(0x136)](_0x201b59))return{'valid':![],'message':_0x1e2897(0x134)};return{'valid':!![]};}
1
+ function a40_0x4ca7(){const _0x4e74ac=['852hkEFHF','203MBQgJX','90200vgWSAE','test','2mKsvsh','725256UJPgOL','3110nclDvG','2193RPhMIM','81661Kjeksy','6094404fJLQhO','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','8541qeMVEQ','1090845NBhoWN','trim','33yadKPh'];a40_0x4ca7=function(){return _0x4e74ac;};return a40_0x4ca7();}(function(_0x167dc5,_0x4c90d9){const _0x36102e=a40_0x377e,_0x46ff66=_0x167dc5();while(!![]){try{const _0x386c2e=parseInt(_0x36102e(0x15c))/0x1*(-parseInt(_0x36102e(0x167))/0x2)+-parseInt(_0x36102e(0x15b))/0x3*(parseInt(_0x36102e(0x163))/0x4)+parseInt(_0x36102e(0x160))/0x5+parseInt(_0x36102e(0x15d))/0x6+-parseInt(_0x36102e(0x164))/0x7*(parseInt(_0x36102e(0x165))/0x8)+parseInt(_0x36102e(0x15f))/0x9*(-parseInt(_0x36102e(0x169))/0xa)+-parseInt(_0x36102e(0x162))/0xb*(-parseInt(_0x36102e(0x168))/0xc);if(_0x386c2e===_0x4c90d9)break;else _0x46ff66['push'](_0x46ff66['shift']());}catch(_0x4805f3){_0x46ff66['push'](_0x46ff66['shift']());}}}(a40_0x4ca7,0x87adb));function a40_0x377e(_0x285c59,_0x437e57){_0x285c59=_0x285c59-0x15b;const _0x4ca710=a40_0x4ca7();let _0x377eb7=_0x4ca710[_0x285c59];return _0x377eb7;}export function validateAppcode(_0x5c2064){const _0x1c8c5a=a40_0x377e,_0x1dc06e=_0x5c2064[_0x1c8c5a(0x161)]();if(!_0x1dc06e)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0x1dc06e['length']>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/[_0x1c8c5a(0x166)](_0x1dc06e))return{'valid':![],'message':_0x1c8c5a(0x15e)};return{'valid':!![]};}
@@ -1 +1 @@
1
- function a41_0x5e0a(_0x5a8953,_0x68e7e7){_0x5a8953=_0x5a8953-0x1e4;const _0x1dc30a=a41_0x1dc3();let _0x5e0a19=_0x1dc30a[_0x5a8953];return _0x5e0a19;}const a41_0x13ec76=a41_0x5e0a;(function(_0x45c5e6,_0x48efda){const _0x1d0f2f=a41_0x5e0a,_0x1b23ed=_0x45c5e6();while(!![]){try{const _0x50e9c8=-parseInt(_0x1d0f2f(0x1e5))/0x1+parseInt(_0x1d0f2f(0x1e9))/0x2+-parseInt(_0x1d0f2f(0x1f7))/0x3+parseInt(_0x1d0f2f(0x1f6))/0x4*(parseInt(_0x1d0f2f(0x1f5))/0x5)+-parseInt(_0x1d0f2f(0x1ee))/0x6+-parseInt(_0x1d0f2f(0x1f1))/0x7*(parseInt(_0x1d0f2f(0x1ea))/0x8)+-parseInt(_0x1d0f2f(0x1ef))/0x9*(-parseInt(_0x1d0f2f(0x1f0))/0xa);if(_0x50e9c8===_0x48efda)break;else _0x1b23ed['push'](_0x1b23ed['shift']());}catch(_0xbb92d8){_0x1b23ed['push'](_0x1b23ed['shift']());}}}(a41_0x1dc3,0x6a6d8));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a41_0x1dc3(){const _0x1ca41d=['object','Missing\x20key.','49851iWadIm','Usage:\x20','str','Key\x20not\x20found:\x20','1183074ZRGckg','22672EUsGaj','key','\x20config\x20get\x20--key\x20<key>','app','2095758HSfWhd','36vpGHPo','1748070XSiZFR','1799KYsjFB','validation','Get\x20a\x20config\x20value\x20by\x20key','string','3144965gqmlgD','4WesGbL','1069044NDMqaf','read'];a41_0x1dc3=function(){return _0x1ca41d;};return a41_0x1dc3();}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x2e0607){const _0x5e1f80=a41_0x5e0a,_0x4b6721=_0x2e0607[_0x5e1f80(0x1e7)]('key');if(!_0x4b6721)throw CliErrors[_0x5e1f80(0x1f2)](_0x5e1f80(0x1e4),_0x5e1f80(0x1e6)+CLI_BIN_NAME+_0x5e1f80(0x1ec));const _0x5682af=readConfig(),_0x1d0e04=_0x4b6721===_0x5e1f80(0x1ed)?'appcode':_0x4b6721,_0x1318e1=_0x5682af[_0x1d0e04];if(_0x1318e1===undefined)throw CliErrors[_0x5e1f80(0x1f2)](_0x5e1f80(0x1e8)+_0x4b6721);return{'ok':!![],'data':typeof _0x1318e1==='object'?_0x1318e1:{[_0x1d0e04]:_0x1318e1},'message':typeof _0x1318e1===_0x5e1f80(0x1f9)?undefined:String(_0x1318e1)};}export const configGetDefinition={'service':'config','command':'get','description':a41_0x13ec76(0x1f3),'risk':a41_0x13ec76(0x1f8),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x13ec76(0x1eb),'type':a41_0x13ec76(0x1f4),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a41_0x58a8e0=a41_0x4a5a;function a41_0x4a5a(_0x12e87e,_0x4c3ed3){_0x12e87e=_0x12e87e-0x16d;const _0x321aaf=a41_0x321a();let _0x4a5aa9=_0x321aaf[_0x12e87e];return _0x4a5aa9;}(function(_0x3a200e,_0x158846){const _0x197ef1=a41_0x4a5a,_0x178cb6=_0x3a200e();while(!![]){try{const _0x294fa8=parseInt(_0x197ef1(0x17f))/0x1+-parseInt(_0x197ef1(0x174))/0x2+parseInt(_0x197ef1(0x17b))/0x3*(-parseInt(_0x197ef1(0x172))/0x4)+-parseInt(_0x197ef1(0x175))/0x5*(-parseInt(_0x197ef1(0x177))/0x6)+-parseInt(_0x197ef1(0x179))/0x7+parseInt(_0x197ef1(0x171))/0x8*(parseInt(_0x197ef1(0x17e))/0x9)+-parseInt(_0x197ef1(0x178))/0xa*(-parseInt(_0x197ef1(0x17a))/0xb);if(_0x294fa8===_0x158846)break;else _0x178cb6['push'](_0x178cb6['shift']());}catch(_0x3d20e5){_0x178cb6['push'](_0x178cb6['shift']());}}}(a41_0x321a,0x5cb81));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';function a41_0x321a(){const _0x45feff=['3FbejMe','key','app','9McCoQl','453461UsxhcZ','config','\x20config\x20get\x20--key\x20<key>','validation','str','5064312GuKJXZ','2428508ypsVyC','string','560336MaqEPU','3266295oryRTh','get','6zxHGPo','8210yFXFdA','5096126mXJNPS','3421xNThtu'];a41_0x321a=function(){return _0x45feff;};return a41_0x321a();}async function execute(_0x1b1a8c){const _0xb47de8=a41_0x4a5a,_0x457b75=_0x1b1a8c[_0xb47de8(0x170)](_0xb47de8(0x17c));if(!_0x457b75)throw CliErrors[_0xb47de8(0x16f)]('Missing\x20key.','Usage:\x20'+CLI_BIN_NAME+_0xb47de8(0x16e));const _0x5536e0=readConfig(),_0x549392=_0x457b75===_0xb47de8(0x17d)?'appcode':_0x457b75,_0x3804a4=_0x5536e0[_0x549392];if(_0x3804a4===undefined)throw CliErrors[_0xb47de8(0x16f)]('Key\x20not\x20found:\x20'+_0x457b75);return{'ok':!![],'data':typeof _0x3804a4==='object'?_0x3804a4:{[_0x549392]:_0x3804a4},'message':typeof _0x3804a4==='object'?undefined:String(_0x3804a4)};}export const configGetDefinition={'service':a41_0x58a8e0(0x16d),'command':a41_0x58a8e0(0x176),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x58a8e0(0x17c),'type':a41_0x58a8e0(0x173),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- function a42_0x5b0b(){const _0x42166e=['6RCROCE','2568146BYJJpt','6aNRNaQ','357690tEUOzf','20IVBGEe','160777ODObZc','515588eBKhxI','2PPVRSG','1846188RbcuVc','10706663cjvSmD','4757640IVwNOw'];a42_0x5b0b=function(){return _0x42166e;};return a42_0x5b0b();}(function(_0x40f187,_0x498418){const _0x1324d1=a42_0x248f,_0x13c3ce=_0x40f187();while(!![]){try{const _0xdc9249=-parseInt(_0x1324d1(0xb0))/0x1*(-parseInt(_0x1324d1(0xb2))/0x2)+parseInt(_0x1324d1(0xb8))/0x3*(-parseInt(_0x1324d1(0xb1))/0x4)+parseInt(_0x1324d1(0xae))/0x5+-parseInt(_0x1324d1(0xb6))/0x6*(-parseInt(_0x1324d1(0xb7))/0x7)+parseInt(_0x1324d1(0xb5))/0x8+parseInt(_0x1324d1(0xb3))/0x9*(parseInt(_0x1324d1(0xaf))/0xa)+-parseInt(_0x1324d1(0xb4))/0xb;if(_0xdc9249===_0x498418)break;else _0x13c3ce['push'](_0x13c3ce['shift']());}catch(_0x39ee79){_0x13c3ce['push'](_0x13c3ce['shift']());}}}(a42_0x5b0b,0x5b12b));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a42_0x248f(_0x45f057,_0x57da8f){_0x45f057=_0x45f057-0xae;const _0x5b0bf2=a42_0x5b0b();let _0x248f52=_0x5b0bf2[_0x45f057];return _0x248f52;}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ function a42_0x376e(){const _0x2621f2=['121jggPxA','784LGOTpo','29635fLVhKO','732aYcGLb','97938rnhqsy','580563cTTAql','6pNkpKa','74690GfkhkS','1136727QDiozj','16854876UkcLLD','3227wlVADP','10722yZfDds'];a42_0x376e=function(){return _0x2621f2;};return a42_0x376e();}(function(_0x5ed331,_0x1fed41){const _0xf8aa8e=a42_0x1cfe,_0x383925=_0x5ed331();while(!![]){try{const _0x4cf165=parseInt(_0xf8aa8e(0x189))/0x1+parseInt(_0xf8aa8e(0x187))/0x2*(-parseInt(_0xf8aa8e(0x186))/0x3)+parseInt(_0xf8aa8e(0x190))/0x4*(-parseInt(_0xf8aa8e(0x18f))/0x5)+-parseInt(_0xf8aa8e(0x18c))/0x6*(-parseInt(_0xf8aa8e(0x18b))/0x7)+parseInt(_0xf8aa8e(0x18e))/0x8*(-parseInt(_0xf8aa8e(0x191))/0x9)+parseInt(_0xf8aa8e(0x188))/0xa*(parseInt(_0xf8aa8e(0x18d))/0xb)+parseInt(_0xf8aa8e(0x18a))/0xc;if(_0x4cf165===_0x1fed41)break;else _0x383925['push'](_0x383925['shift']());}catch(_0x44a122){_0x383925['push'](_0x383925['shift']());}}}(a42_0x376e,0xaeb6a));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a42_0x1cfe(_0x3ff676,_0x1f2dfe){_0x3ff676=_0x3ff676-0x186;const _0x376e5f=a42_0x376e();let _0x1cfe79=_0x376e5f[_0x3ff676];return _0x1cfe79;}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- function a43_0x1b7b(_0x357e4f,_0x17d691){_0x357e4f=_0x357e4f-0x13e;const _0x54266f=a43_0x5426();let _0x1b7b16=_0x54266f[_0x357e4f];return _0x1b7b16;}const a43_0x3f90ce=a43_0x1b7b;(function(_0xef9b2f,_0x376538){const _0x4999f3=a43_0x1b7b,_0x5dc90b=_0xef9b2f();while(!![]){try{const _0x331472=-parseInt(_0x4999f3(0x13e))/0x1+parseInt(_0x4999f3(0x14d))/0x2+parseInt(_0x4999f3(0x14e))/0x3+parseInt(_0x4999f3(0x146))/0x4*(-parseInt(_0x4999f3(0x14c))/0x5)+parseInt(_0x4999f3(0x143))/0x6+parseInt(_0x4999f3(0x144))/0x7*(parseInt(_0x4999f3(0x14a))/0x8)+-parseInt(_0x4999f3(0x149))/0x9;if(_0x331472===_0x376538)break;else _0x5dc90b['push'](_0x5dc90b['shift']());}catch(_0x1e7a49){_0x5dc90b['push'](_0x5dc90b['shift']());}}}(a43_0x5426,0x32c61));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x35cb53){const _0x5eba82=a43_0x1b7b,_0x58da46=_0x35cb53[_0x5eba82(0x13f)](_0x5eba82(0x148))?readScopedConfig(_0x5eba82(0x148)):readConfig();return{'ok':!![],'data':_0x58da46};}export const configListDefinition={'service':a43_0x3f90ce(0x140),'command':a43_0x3f90ce(0x147),'description':a43_0x3f90ce(0x142),'risk':a43_0x3f90ce(0x145),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x3f90ce(0x148),'type':a43_0x3f90ce(0x14b),'description':a43_0x3f90ce(0x141),'default':![]}],'execute':execute};function a43_0x5426(){const _0x1fe037=['777665VtvZxE','486842oIJRcg','207858LcfhUi','260339zljWnz','bool','config','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','List\x20all\x20config\x20values','1245846RGNIef','338499dfoygo','read','4rLAZjx','list','global','374202cgyCWe','24zNxbYv','boolean'];a43_0x5426=function(){return _0x1fe037;};return a43_0x5426();}
1
+ const a43_0x1e6b28=a43_0x3355;function a43_0x2981(){const _0xf206f0=['13138920TVsNtj','boolean','595261UXumYw','6975315KdKEoo','84JmqkuK','28nFtCpg','list','294246YTPbmS','5907960BSxPNu','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','bool','2BLwEkN','638141BvmhMr','config','List\x20all\x20config\x20values','3143640ZAmhjV','global'];a43_0x2981=function(){return _0xf206f0;};return a43_0x2981();}(function(_0x575360,_0x10c222){const _0x1fc7d2=a43_0x3355,_0x47880c=_0x575360();while(!![]){try{const _0x14c498=parseInt(_0x1fc7d2(0xd3))/0x1*(parseInt(_0x1fc7d2(0xdc))/0x2)+-parseInt(_0x1fc7d2(0xd8))/0x3*(parseInt(_0x1fc7d2(0xd6))/0x4)+-parseInt(_0x1fc7d2(0xe0))/0x5+-parseInt(_0x1fc7d2(0xd5))/0x6*(-parseInt(_0x1fc7d2(0xdd))/0x7)+parseInt(_0x1fc7d2(0xd1))/0x8+-parseInt(_0x1fc7d2(0xd4))/0x9+-parseInt(_0x1fc7d2(0xd9))/0xa;if(_0x14c498===_0x10c222)break;else _0x47880c['push'](_0x47880c['shift']());}catch(_0x144830){_0x47880c['push'](_0x47880c['shift']());}}}(a43_0x2981,0xcb507));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x24072b){const _0x38c1d5=a43_0x3355,_0x46f4b9=_0x24072b[_0x38c1d5(0xdb)](_0x38c1d5(0xe1))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x46f4b9};}function a43_0x3355(_0x30f83e,_0x404833){_0x30f83e=_0x30f83e-0xd1;const _0x298111=a43_0x2981();let _0x33554f=_0x298111[_0x30f83e];return _0x33554f;}export const configListDefinition={'service':a43_0x1e6b28(0xde),'command':a43_0x1e6b28(0xd7),'description':a43_0x1e6b28(0xdf),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x1e6b28(0xe1),'type':a43_0x1e6b28(0xd2),'description':a43_0x1e6b28(0xda),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a44_0x33a9d3=a44_0x3b40;function a44_0x3b40(_0x49e476,_0xaaaad5){_0x49e476=_0x49e476-0xaa;const _0x3eed69=a44_0x3eed();let _0x3b4087=_0x3eed69[_0x49e476];return _0x3b4087;}(function(_0x3639eb,_0x1374a7){const _0x212de5=a44_0x3b40,_0x1709ba=_0x3639eb();while(!![]){try{const _0x27af1f=parseInt(_0x212de5(0xd2))/0x1+-parseInt(_0x212de5(0xd0))/0x2*(-parseInt(_0x212de5(0xc2))/0x3)+parseInt(_0x212de5(0xc6))/0x4+-parseInt(_0x212de5(0xc1))/0x5*(-parseInt(_0x212de5(0xca))/0x6)+parseInt(_0x212de5(0xd1))/0x7*(parseInt(_0x212de5(0xda))/0x8)+parseInt(_0x212de5(0xbe))/0x9*(-parseInt(_0x212de5(0xd4))/0xa)+parseInt(_0x212de5(0xb9))/0xb*(-parseInt(_0x212de5(0xb6))/0xc);if(_0x27af1f===_0x1374a7)break;else _0x1709ba['push'](_0x1709ba['shift']());}catch(_0x5369e8){_0x1709ba['push'](_0x1709ba['shift']());}}}(a44_0x3eed,0xe301a));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';function a44_0x3eed(){const _0x1f83c0=['apps','Global','key','global','Invalid\x20locale\x20value.','Usage:\x20','\x22\x20is\x20not\x20settable.','write','Top-level\x20key\x20\x22','join','Missing\x20value.','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','31533612WkXjRk','str','validation','11AbhtvL','includes','Set\x20a\x20config\x20value','Missing\x20key.','`,\x20`','666ngqmzP','string','\x20set\x20to:\x20','526835LeJFuM','1110387BdPhna','value','appcode','locale','3208012MnSiaa','Settable\x20top-level\x20keys:\x20','config','\x20appcode\x20set\x20to:\x20','6kWZEkB','app','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','env','length','Project','4SOxrla','1639519qHJizP','1464934fVBauZ','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','34810ibdXjP','riskLevel','\x20app\x20add\x20<name>\x20--appcode\x20','keys','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','object','24MquSPa','\x22.\x20Allowed:\x20'];a44_0x3eed=function(){return _0x1f83c0;};return a44_0x3eed();}import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x21e835){const _0x54f95d=a44_0x3b40,_0x104779=_0x21e835['str'](_0x54f95d(0xab)),_0x5a72ee=_0x21e835[_0x54f95d(0xb7)](_0x54f95d(0xc3));if(!_0x104779)throw CliErrors['validation'](_0x54f95d(0xbc),_0x54f95d(0xae)+CLI_BIN_NAME+_0x54f95d(0xb4));if(_0x5a72ee===undefined||_0x5a72ee==='')throw CliErrors[_0x54f95d(0xb8)](_0x54f95d(0xb3),_0x54f95d(0xae)+CLI_BIN_NAME+_0x54f95d(0xb4));if(_0x5a72ee[_0x54f95d(0xce)]>0x1f4)throw CliErrors[_0x54f95d(0xb8)](_0x54f95d(0xd8));if(!isTopLevelConfigKey(_0x104779))throw CliErrors[_0x54f95d(0xb8)](_0x54f95d(0xb1)+_0x104779+_0x54f95d(0xaf),_0x54f95d(0xc7)+getTopLevelConfigKeySummary());if(_0x104779===_0x54f95d(0xd5))throw CliErrors['validation']('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(CONFIG_ENUM_VALUES[_0x104779]&&!CONFIG_ENUM_VALUES[_0x104779][_0x54f95d(0xba)](_0x5a72ee))throw CliErrors['validation']('Invalid\x20value\x20for\x20\x22'+_0x104779+_0x54f95d(0xdb)+CONFIG_ENUM_VALUES[_0x104779][_0x54f95d(0xb2)](',\x20'));if(_0x104779===_0x54f95d(0xc5)&&!normalizeLocale(_0x5a72ee))throw CliErrors['validation'](_0x54f95d(0xad),_0x54f95d(0xcc));const _0x51797c={'global':_0x21e835['bool'](_0x54f95d(0xac))},_0x8498ff=resolveWriteScope(_0x51797c),_0x4285eb=readScopedConfig(_0x8498ff);let _0xffe4a1=_0x104779,_0x5a5462=_0x5a72ee;_0x104779===_0x54f95d(0xcb)&&(_0xffe4a1=_0x54f95d(0xc4),delete _0x4285eb[_0x54f95d(0xcb)]);_0x104779==='locale'&&(_0x5a5462=normalizeLocale(_0x5a72ee));if(_0x104779===_0x54f95d(0xcd)){_0x5a5462=normalizeEnv(_0x5a72ee);if(!isProduction(_0x5a5462)&&!isDaily(_0x5a5462))throw CliErrors[_0x54f95d(0xb8)]('Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.',_0x54f95d(0xb5));}if(_0x104779==='appcode'){const _0xc33865=_0x4285eb['apps']&&typeof _0x4285eb['apps']===_0x54f95d(0xd9)?Object[_0x54f95d(0xd7)](_0x4285eb[_0x54f95d(0xdc)]):[];if(_0xc33865['length']>0x0)throw CliErrors[_0x54f95d(0xb8)]('Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Use\x20`'+CLI_BIN_NAME+_0x54f95d(0xd6)+_0x5a5462+_0x54f95d(0xbd)+CLI_BIN_NAME+'\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0xb8be7f=buildCanonicalProjectConfig({..._0x4285eb},{'appCodes':[_0x5a5462],'env':typeof _0x4285eb[_0x54f95d(0xcd)]===_0x54f95d(0xbf)?_0x4285eb[_0x54f95d(0xcd)]:undefined});writeScopedConfig(_0xb8be7f,_0x8498ff);const _0x30c2bd=_0x8498ff===_0x54f95d(0xac)?_0x54f95d(0xaa):_0x54f95d(0xcf);return{'ok':!![],'message':'✓\x20'+_0x30c2bd+_0x54f95d(0xc9)+_0x5a5462+_0x54f95d(0xd3)};}_0x4285eb[_0xffe4a1]=_0x5a5462,writeScopedConfig(_0x4285eb,_0x8498ff);const _0x48167d=_0x8498ff==='global'?_0x54f95d(0xaa):_0x54f95d(0xcf);return{'ok':!![],'message':'✓\x20'+_0x48167d+'\x20'+_0xffe4a1+_0x54f95d(0xc0)+_0x5a5462};}export const configSetDefinition={'service':a44_0x33a9d3(0xc8),'command':'set','description':a44_0x33a9d3(0xbb),'risk':a44_0x33a9d3(0xb0),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a44_0x33a9d3(0xab),'type':a44_0x33a9d3(0xbf),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x33a9d3(0xc3),'type':a44_0x33a9d3(0xbf),'description':'Config\x20value','required':!![]},{'name':'global','type':'boolean','description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
1
+ const a44_0x5c4ab4=a44_0xea0c;function a44_0xd516(){const _0x1c48a6=['str','includes','Project','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','app','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','525255jLQQYs','Use\x20`','Settable\x20top-level\x20keys:\x20','Usage:\x20','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','41658mmfUFk','appcode','45jFXbsx','length','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Missing\x20key.','1117298EOkfET','config','value','132ylVdpo','write','3298632gMTCoM','set','\x22\x20is\x20not\x20settable.','\x20appcode\x20set\x20to:\x20','object','bool','738104Nmzoos','Global','Top-level\x20key\x20\x22','\x20set\x20to:\x20','locale','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','key','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','join','\x22.\x20Allowed:\x20','env','validation','18MzIYOJ','global','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','riskLevel','apps','Invalid\x20value\x20for\x20\x22','\x20app\x20add\x20<name>\x20--appcode\x20','string','2853580kApIio','67745utHwRO'];a44_0xd516=function(){return _0x1c48a6;};return a44_0xd516();}(function(_0x13528e,_0xb3693b){const _0x4c8ab5=a44_0xea0c,_0x1e7b06=_0x13528e();while(!![]){try{const _0x5635d3=parseInt(_0x4c8ab5(0xb4))/0x1+parseInt(_0x4c8ab5(0xa4))/0x2*(-parseInt(_0x4c8ab5(0xba))/0x3)+-parseInt(_0x4c8ab5(0xc3))/0x4*(parseInt(_0x4c8ab5(0xad))/0x5)+-parseInt(_0x4c8ab5(0xc5))/0x6+parseInt(_0x4c8ab5(0xc0))/0x7+-parseInt(_0x4c8ab5(0x98))/0x8*(-parseInt(_0x4c8ab5(0xbc))/0x9)+parseInt(_0x4c8ab5(0xac))/0xa;if(_0x5635d3===_0xb3693b)break;else _0x1e7b06['push'](_0x1e7b06['shift']());}catch(_0x30fb51){_0x1e7b06['push'](_0x1e7b06['shift']());}}}(a44_0xd516,0x4b9af));import{CliErrors}from'../../errors.js';function a44_0xea0c(_0x309c92,_0x523559){_0x309c92=_0x309c92-0x94;const _0xd51605=a44_0xd516();let _0xea0c55=_0xd51605[_0x309c92];return _0xea0c55;}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(_0x387bcb){const _0x3ae84c=a44_0xea0c,_0x3ac911=_0x387bcb[_0x3ae84c(0xae)](_0x3ae84c(0x9e)),_0x173143=_0x387bcb['str'](_0x3ae84c(0xc2));if(!_0x3ac911)throw CliErrors[_0x3ae84c(0xa3)](_0x3ae84c(0xbf),'Usage:\x20'+CLI_BIN_NAME+_0x3ae84c(0xb1));if(_0x173143===undefined||_0x173143==='')throw CliErrors[_0x3ae84c(0xa3)]('Missing\x20value.',_0x3ae84c(0xb7)+CLI_BIN_NAME+_0x3ae84c(0xb1));if(_0x173143[_0x3ae84c(0xbd)]>0x1f4)throw CliErrors['validation'](_0x3ae84c(0xb3));if(!isTopLevelConfigKey(_0x3ac911))throw CliErrors[_0x3ae84c(0xa3)](_0x3ae84c(0x9a)+_0x3ac911+_0x3ae84c(0x94),_0x3ae84c(0xb6)+getTopLevelConfigKeySummary());if(_0x3ac911===_0x3ae84c(0xa7))throw CliErrors['validation'](_0x3ae84c(0xbe));if(CONFIG_ENUM_VALUES[_0x3ac911]&&!CONFIG_ENUM_VALUES[_0x3ac911][_0x3ae84c(0xaf)](_0x173143))throw CliErrors[_0x3ae84c(0xa3)](_0x3ae84c(0xa9)+_0x3ac911+_0x3ae84c(0xa1)+CONFIG_ENUM_VALUES[_0x3ac911][_0x3ae84c(0xa0)](',\x20'));if(_0x3ac911===_0x3ae84c(0x9c)&&!normalizeLocale(_0x173143))throw CliErrors[_0x3ae84c(0xa3)]('Invalid\x20locale\x20value.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0xe9b9be={'global':_0x387bcb[_0x3ae84c(0x97)](_0x3ae84c(0xa5))},_0x53beaa=resolveWriteScope(_0xe9b9be),_0x3ffc06=readScopedConfig(_0x53beaa);let _0x163532=_0x3ac911,_0x5ad7ab=_0x173143;_0x3ac911===_0x3ae84c(0xb2)&&(_0x163532='appcode',delete _0x3ffc06[_0x3ae84c(0xb2)]);_0x3ac911===_0x3ae84c(0x9c)&&(_0x5ad7ab=normalizeLocale(_0x173143));if(_0x3ac911===_0x3ae84c(0xa2)){_0x5ad7ab=normalizeEnv(_0x173143);if(!isProduction(_0x5ad7ab)&&!isDaily(_0x5ad7ab))throw CliErrors[_0x3ae84c(0xa3)](_0x3ae84c(0xa6),_0x3ae84c(0xb9));}if(_0x3ac911===_0x3ae84c(0xbb)){const _0x27f3f4=_0x3ffc06[_0x3ae84c(0xa8)]&&typeof _0x3ffc06[_0x3ae84c(0xa8)]===_0x3ae84c(0x96)?Object['keys'](_0x3ffc06[_0x3ae84c(0xa8)]):[];if(_0x27f3f4[_0x3ae84c(0xbd)]>0x0)throw CliErrors[_0x3ae84c(0xa3)](_0x3ae84c(0x9f),_0x3ae84c(0xb5)+CLI_BIN_NAME+_0x3ae84c(0xaa)+_0x5ad7ab+'`,\x20`'+CLI_BIN_NAME+'\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x4ba5c7=buildCanonicalProjectConfig({..._0x3ffc06},{'appCodes':[_0x5ad7ab],'env':typeof _0x3ffc06[_0x3ae84c(0xa2)]===_0x3ae84c(0xab)?_0x3ffc06[_0x3ae84c(0xa2)]:undefined});writeScopedConfig(_0x4ba5c7,_0x53beaa);const _0x4e7d52=_0x53beaa===_0x3ae84c(0xa5)?'Global':_0x3ae84c(0xb0);return{'ok':!![],'message':'✓\x20'+_0x4e7d52+_0x3ae84c(0x95)+_0x5ad7ab+_0x3ae84c(0xb8)};}_0x3ffc06[_0x163532]=_0x5ad7ab,writeScopedConfig(_0x3ffc06,_0x53beaa);const _0x2da2b6=_0x53beaa===_0x3ae84c(0xa5)?_0x3ae84c(0x99):'Project';return{'ok':!![],'message':'✓\x20'+_0x2da2b6+'\x20'+_0x163532+_0x3ae84c(0x9b)+_0x5ad7ab};}export const configSetDefinition={'service':a44_0x5c4ab4(0xc1),'command':a44_0x5c4ab4(0xc6),'description':'Set\x20a\x20config\x20value','risk':a44_0x5c4ab4(0xc4),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a44_0x5c4ab4(0x9e),'type':a44_0x5c4ab4(0xab),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x5c4ab4(0xc2),'type':a44_0x5c4ab4(0xab),'description':'Config\x20value','required':!![]},{'name':'global','type':'boolean','description':a44_0x5c4ab4(0x9d),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x296c5c,_0x2f8f60){var _0x5776eb=a45_0x1d74,_0x25e90a=_0x296c5c();while(!![]){try{var _0x397e1b=-parseInt(_0x5776eb(0xdc))/0x1+parseInt(_0x5776eb(0xdf))/0x2+parseInt(_0x5776eb(0xda))/0x3+-parseInt(_0x5776eb(0xe0))/0x4*(-parseInt(_0x5776eb(0xdb))/0x5)+-parseInt(_0x5776eb(0xd6))/0x6*(parseInt(_0x5776eb(0xd7))/0x7)+-parseInt(_0x5776eb(0xde))/0x8+parseInt(_0x5776eb(0xd9))/0x9;if(_0x397e1b===_0x2f8f60)break;else _0x25e90a['push'](_0x25e90a['shift']());}catch(_0x1439be){_0x25e90a['push'](_0x25e90a['shift']());}}}(a45_0x5195,0x5a460));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';function a45_0x5195(){var _0xe68f0e=['7344huOnwU','18196PBXAAE','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','global','660hGOuHc','34034trYmqD','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','8105058NQPqAO','1671903NxFhpa','230iPOvAn','320209HqmyKR','\x20init`\x20first.','3568000HCmxSs'];a45_0x5195=function(){return _0xe68f0e;};return a45_0x5195();}import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};function a45_0x1d74(_0x29e8c0,_0x584af7){_0x29e8c0=_0x29e8c0-0xd4;var _0x519547=a45_0x5195();var _0x1d74e2=_0x519547[_0x29e8c0];return _0x1d74e2;}export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x443648){var _0x5d03c0=a45_0x1d74;if(_0x443648[_0x5d03c0(0xd5)])return _0x5d03c0(0xd5);if(!isInProject())throw CliErrors['validation'](_0x5d03c0(0xd4),_0x5d03c0(0xd8)+CLI_BIN_NAME+_0x5d03c0(0xdd));return'project';}export function readScopedConfig(_0x268147){return readConfigFile(resolveWriteConfigPath(_0x268147));}export function writeScopedConfig(_0x4ca6a1,_0x4eb3ff){writeConfigFile(resolveWriteConfigPath(_0x4eb3ff),_0x4ca6a1);}
1
+ (function(_0x5a8bd1,_0x287036){var _0x5e74e6=a45_0x1bb2,_0x19a619=_0x5a8bd1();while(!![]){try{var _0x362440=parseInt(_0x5e74e6(0xb1))/0x1+parseInt(_0x5e74e6(0xb2))/0x2+parseInt(_0x5e74e6(0xaa))/0x3+-parseInt(_0x5e74e6(0xad))/0x4+-parseInt(_0x5e74e6(0xa9))/0x5+parseInt(_0x5e74e6(0xaf))/0x6+-parseInt(_0x5e74e6(0xab))/0x7;if(_0x362440===_0x287036)break;else _0x19a619['push'](_0x19a619['shift']());}catch(_0x4a866e){_0x19a619['push'](_0x19a619['shift']());}}}(a45_0x5f04,0x2ba27));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};function a45_0x1bb2(_0x3a13b2,_0x4d67d3){_0x3a13b2=_0x3a13b2-0xa8;var _0x5f044b=a45_0x5f04();var _0x1bb29c=_0x5f044b[_0x3a13b2];return _0x1bb29c;}function a45_0x5f04(){var _0xe1af3f=['project','235086ApOuyS','validation','259085OZWAFr','249562CXIHrT','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','963015HFnhiW','1019127HwmAAu','2417926yaLOfj','\x20init`\x20first.','184032Vowvee'];a45_0x5f04=function(){return _0xe1af3f;};return a45_0x5f04();}export function resolveWriteScope(_0x3d361e){var _0x5b9e99=a45_0x1bb2;if(_0x3d361e['global'])return'global';if(!isInProject())throw CliErrors[_0x5b9e99(0xb0)](_0x5b9e99(0xa8),'Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`'+CLI_BIN_NAME+_0x5b9e99(0xac));return _0x5b9e99(0xae);}export function readScopedConfig(_0xf63ead){return readConfigFile(resolveWriteConfigPath(_0xf63ead));}export function writeScopedConfig(_0x22bd59,_0x5b52f0){writeConfigFile(resolveWriteConfigPath(_0x5b52f0),_0x22bd59);}
@@ -1 +1 @@
1
- const a46_0x1245e9=a46_0x537d;(function(_0x115599,_0x416dc2){const _0x3478c8=a46_0x537d,_0x2be365=_0x115599();while(!![]){try{const _0x3f8830=parseInt(_0x3478c8(0x145))/0x1*(parseInt(_0x3478c8(0x142))/0x2)+-parseInt(_0x3478c8(0x149))/0x3+-parseInt(_0x3478c8(0x147))/0x4*(parseInt(_0x3478c8(0x13d))/0x5)+parseInt(_0x3478c8(0x13b))/0x6+parseInt(_0x3478c8(0x14a))/0x7*(parseInt(_0x3478c8(0x146))/0x8)+-parseInt(_0x3478c8(0x13f))/0x9+-parseInt(_0x3478c8(0x148))/0xa*(-parseInt(_0x3478c8(0x13e))/0xb);if(_0x3f8830===_0x416dc2)break;else _0x2be365['push'](_0x2be365['shift']());}catch(_0x5e3a44){_0x2be365['push'](_0x2be365['shift']());}}}(a46_0x261e,0xc1ab5));function a46_0x537d(_0x3a13a4,_0x2c481e){_0x3a13a4=_0x3a13a4-0x13b;const _0x261e6b=a46_0x261e();let _0x537dbb=_0x261e6b[_0x3a13a4];return _0x537dbb;}function a46_0x261e(){const _0x2199c3=['13792530jEkkmW','3328269FnXZoQ','644wMDRkW','6136434GsCDZJ','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','5sqEEZE','11ovhwQV','2770749TdQpQW','filter','Filter\x20dataset\x20records\x20with\x20query\x20conditions','320338edemxr','join','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','2oWeDou','42608abQSdZ','4007076RVCAmT'];a46_0x261e=function(){return _0x2199c3;};return a46_0x261e();}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a46_0x1245e9(0x140),'operation':a46_0x1245e9(0x140),'description':a46_0x1245e9(0x141),'paramsRequired':![],'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)',a46_0x1245e9(0x144),a46_0x1245e9(0x13c),'\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page'][a46_0x1245e9(0x143)]('\x0a')});
1
+ const a46_0x101e9c=a46_0x35db;function a46_0xf5fb(){const _0x35c8e1=['\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','Filter\x20dataset\x20records\x20with\x20query\x20conditions','4418379XzOTez','688681ltOxVm','24pMkjYZ','203709DJWxme','\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]','54hQcmDM','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','795981yShFFQ','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','730630zSYMeg','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','8mwbtwQ','\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}]','2962720qCBuIg','22YTIhBT','1199316fJNsyr','filter'];a46_0xf5fb=function(){return _0x35c8e1;};return a46_0xf5fb();}(function(_0x680782,_0x32fbc0){const _0x2a92b4=a46_0x35db,_0x43eb21=_0x680782();while(!![]){try{const _0x2fbc34=parseInt(_0x2a92b4(0xf4))/0x1+parseInt(_0x2a92b4(0xe9))/0x2+parseInt(_0x2a92b4(0xf0))/0x3*(-parseInt(_0x2a92b4(0xef))/0x4)+-parseInt(_0x2a92b4(0xf6))/0x5*(parseInt(_0x2a92b4(0xf2))/0x6)+-parseInt(_0x2a92b4(0xee))/0x7+-parseInt(_0x2a92b4(0xf9))/0x8*(-parseInt(_0x2a92b4(0xed))/0x9)+-parseInt(_0x2a92b4(0xe7))/0xa*(-parseInt(_0x2a92b4(0xe8))/0xb);if(_0x2fbc34===_0x32fbc0)break;else _0x43eb21['push'](_0x43eb21['shift']());}catch(_0x1227b9){_0x43eb21['push'](_0x43eb21['shift']());}}}(a46_0xf5fb,0xa0b03));import{buildDataCommand}from'../../commands/data/shared.js';function a46_0x35db(_0x37b566,_0x508ffe){_0x37b566=_0x37b566-0xe6;const _0xf5fb5b=a46_0xf5fb();let _0x35db69=_0xf5fb5b[_0x37b566];return _0x35db69;}export const dataFilter=buildDataCommand({'command':a46_0x101e9c(0xea),'operation':a46_0x101e9c(0xea),'description':a46_0x101e9c(0xec),'paramsRequired':![],'paramsHint':a46_0x101e9c(0xf7),'helpExtra':[a46_0x101e9c(0xf3),a46_0x101e9c(0xeb),a46_0x101e9c(0xf1),a46_0x101e9c(0xe6),a46_0x101e9c(0xf8),a46_0x101e9c(0xf5)]['join']('\x0a')});
@@ -1 +1 @@
1
- const a47_0x456095=a47_0x3431;function a47_0x3431(_0x21acc4,_0x5dc959){_0x21acc4=_0x21acc4-0xc3;const _0x4f04b2=a47_0x4f04();let _0x3431a4=_0x4f04b2[_0x21acc4];return _0x3431a4;}(function(_0x317307,_0x1bcd6e){const _0x3e1846=a47_0x3431,_0xa1dffb=_0x317307();while(!![]){try{const _0x564827=-parseInt(_0x3e1846(0xcf))/0x1*(-parseInt(_0x3e1846(0xc8))/0x2)+parseInt(_0x3e1846(0xc7))/0x3+parseInt(_0x3e1846(0xc9))/0x4*(-parseInt(_0x3e1846(0xcc))/0x5)+parseInt(_0x3e1846(0xc3))/0x6+parseInt(_0x3e1846(0xc5))/0x7*(parseInt(_0x3e1846(0xce))/0x8)+-parseInt(_0x3e1846(0xca))/0x9*(-parseInt(_0x3e1846(0xc4))/0xa)+-parseInt(_0x3e1846(0xc6))/0xb;if(_0x564827===_0x1bcd6e)break;else _0xa1dffb['push'](_0xa1dffb['shift']());}catch(_0x5ae5eb){_0xa1dffb['push'](_0xa1dffb['shift']());}}}(a47_0x4f04,0x4dbc7));import{buildDataCommand}from'../../commands/data/shared.js';function a47_0x4f04(){const _0x510e60=['56WlSAVo','4084762ssPnIe','1383843IJleLc','203274iLeVKu','26848bvWnhb','1077309xrTRjv','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','440MivhhF','getOne','59112CFUYuY','2rowZNz','467604PjUbYl','40fBvWYA'];a47_0x4f04=function(){return _0x510e60;};return a47_0x4f04();}export const dataGetOne=buildDataCommand({'command':a47_0x456095(0xcd),'operation':'getOne','description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsRequired':!![],'paramsHint':a47_0x456095(0xcb)});
1
+ const a47_0x595f4a=a47_0x1feb;(function(_0x40eda7,_0x67cb7){const _0x2f5d4f=a47_0x1feb,_0x2d5416=_0x40eda7();while(!![]){try{const _0x1b6f1f=-parseInt(_0x2f5d4f(0xb8))/0x1*(parseInt(_0x2f5d4f(0xb7))/0x2)+-parseInt(_0x2f5d4f(0xb5))/0x3*(-parseInt(_0x2f5d4f(0xb9))/0x4)+parseInt(_0x2f5d4f(0xb0))/0x5+parseInt(_0x2f5d4f(0xb4))/0x6+parseInt(_0x2f5d4f(0xb6))/0x7*(-parseInt(_0x2f5d4f(0xb2))/0x8)+parseInt(_0x2f5d4f(0xad))/0x9*(-parseInt(_0x2f5d4f(0xae))/0xa)+-parseInt(_0x2f5d4f(0xb3))/0xb*(-parseInt(_0x2f5d4f(0xb1))/0xc);if(_0x1b6f1f===_0x67cb7)break;else _0x2d5416['push'](_0x2d5416['shift']());}catch(_0x3af8d2){_0x2d5416['push'](_0x2d5416['shift']());}}}(a47_0x4d8b,0x38087));import{buildDataCommand}from'../../commands/data/shared.js';function a47_0x4d8b(){const _0x2e1295=['549009vPLYYn','20KxmqlI','Get\x20a\x20single\x20record\x20by\x20ID','185900KZEIAW','12RVxCje','16rendxw','4393741baGjmB','2420076nDEyIx','5118VizZLk','1277843kxvrJo','83368eAHFXj','3nYQISh','4qOVYqz','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'];a47_0x4d8b=function(){return _0x2e1295;};return a47_0x4d8b();}function a47_0x1feb(_0x2e5640,_0x5b658b){_0x2e5640=_0x2e5640-0xad;const _0x4d8bc1=a47_0x4d8b();let _0x1feb4d=_0x4d8bc1[_0x2e5640];return _0x1feb4d;}export const dataGetOne=buildDataCommand({'command':'getOne','operation':'getOne','description':a47_0x595f4a(0xaf),'paramsRequired':!![],'paramsHint':a47_0x595f4a(0xba)});
@@ -1 +1 @@
1
- (function(_0x2aa145,_0x1d32d8){const _0x223487=a48_0x2c47,_0x1f2980=_0x2aa145();while(!![]){try{const _0xccb5de=-parseInt(_0x223487(0x1fb))/0x1+-parseInt(_0x223487(0x1f3))/0x2*(-parseInt(_0x223487(0x1f0))/0x3)+-parseInt(_0x223487(0x1f2))/0x4*(parseInt(_0x223487(0x1f4))/0x5)+parseInt(_0x223487(0x1f7))/0x6*(-parseInt(_0x223487(0x1f5))/0x7)+-parseInt(_0x223487(0x1f1))/0x8*(-parseInt(_0x223487(0x1fa))/0x9)+parseInt(_0x223487(0x1f9))/0xa*(parseInt(_0x223487(0x1ef))/0xb)+parseInt(_0x223487(0x1f6))/0xc*(-parseInt(_0x223487(0x1f8))/0xd);if(_0xccb5de===_0x1d32d8)break;else _0x1f2980['push'](_0x1f2980['shift']());}catch(_0x5d82ec){_0x1f2980['push'](_0x1f2980['shift']());}}}(a48_0x1199,0xd5e8c));function a48_0x2c47(_0x5d3c6d,_0x252a4e){_0x5d3c6d=_0x5d3c6d-0x1ef;const _0x119933=a48_0x1199();let _0x2c4736=_0x119933[_0x5d3c6d];return _0x2c4736;}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];function a48_0x1199(){const _0x58c314=['2017072zAyNWE','12GwBaZe','3430988TwKseP','2251325LpKJrL','1173151GxGQtx','372bygOoZ','12gQtlpH','64129qmZkip','1271540NfiYjE','45abjmRx','642550CfWFJH','33qbtMnQ','3EmJoro'];a48_0x1199=function(){return _0x58c314;};return a48_0x1199();}
1
+ (function(_0x3723ab,_0xf70c3c){const _0x4a8595=a48_0x9f0c,_0x40d40c=_0x3723ab();while(!![]){try{const _0x1021f0=parseInt(_0x4a8595(0x11b))/0x1+parseInt(_0x4a8595(0x11e))/0x2+parseInt(_0x4a8595(0x120))/0x3*(-parseInt(_0x4a8595(0x121))/0x4)+-parseInt(_0x4a8595(0x11a))/0x5+-parseInt(_0x4a8595(0x122))/0x6+-parseInt(_0x4a8595(0x11d))/0x7*(parseInt(_0x4a8595(0x11f))/0x8)+parseInt(_0x4a8595(0x11c))/0x9;if(_0x1021f0===_0xf70c3c)break;else _0x40d40c['push'](_0x40d40c['shift']());}catch(_0x5a58a9){_0x40d40c['push'](_0x40d40c['shift']());}}}(a48_0x28a2,0xe0936));import{dataFilter}from'../../commands/data/filter.js';function a48_0x28a2(){const _0x335cc6=['657236WPcrKl','97152UtYuCR','162dKnVul','33832enEQMk','7411272gdYBcT','4647520BeoHfJ','937370wcFpKY','20587194hxPRjA','7NozeHY'];a48_0x28a2=function(){return _0x335cc6;};return a48_0x28a2();}import{dataGetOne}from'../../commands/data/getOne.js';function a48_0x9f0c(_0x5ba676,_0x1259ee){_0x5ba676=_0x5ba676-0x11a;const _0x28a229=a48_0x28a2();let _0x9f0c42=_0x28a229[_0x5ba676];return _0x9f0c42;}export const dataDefinitions=[dataFilter,dataGetOne];
@@ -1 +1 @@
1
- (function(_0x2b4b0b,_0x39b167){const _0x9f16d2=a49_0x4628,_0xad914d=_0x2b4b0b();while(!![]){try{const _0x271971=-parseInt(_0x9f16d2(0x1ae))/0x1*(-parseInt(_0x9f16d2(0x1a7))/0x2)+-parseInt(_0x9f16d2(0x1a8))/0x3*(parseInt(_0x9f16d2(0x1af))/0x4)+parseInt(_0x9f16d2(0x1a0))/0x5+parseInt(_0x9f16d2(0x19a))/0x6+-parseInt(_0x9f16d2(0x1ab))/0x7*(-parseInt(_0x9f16d2(0x197))/0x8)+-parseInt(_0x9f16d2(0x1aa))/0x9*(parseInt(_0x9f16d2(0x19f))/0xa)+parseInt(_0x9f16d2(0x1b3))/0xb*(-parseInt(_0x9f16d2(0x19e))/0xc);if(_0x271971===_0x39b167)break;else _0xad914d['push'](_0xad914d['shift']());}catch(_0x5fff9d){_0xad914d['push'](_0xad914d['shift']());}}}(a49_0x1a63,0x68dc1));import{executeDatasetDataOperation}from'../../core/api-client.js';function a49_0x4628(_0x46a1c7,_0x967a28){_0x46a1c7=_0x46a1c7-0x197;const _0x1a6391=a49_0x1a63();let _0x4628dc=_0x1a6391[_0x46a1c7];return _0x4628dc;}import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a49_0x1a63(){const _0x217374=['string','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','data\x20','143QGfUNi','5334104UrSkJx','str','description','4724400lJgWlz','params','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','now','585444bACtbc','670ALMCAy','3424325LgDdQy','operation','compress','paramsRequired','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','command','paramsHint','19192MkBpVm','12AOlUDx','data','85716yoJLCL','7CoaGoH','read','code','37rpnsxq','792236qYSgIn'];a49_0x1a63=function(){return _0x217374;};return a49_0x1a63();}import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x123b8b){const _0x2390f5=a49_0x4628;if(!_0x123b8b)throw CliErrors['flagMissing'](_0x2390f5(0x19b),_0x2390f5(0x1b1));const _0x5d959c=_0x123b8b['id'];if(_0x5d959c===undefined||_0x5d959c===null||_0x5d959c==='')throw CliErrors['validation']('data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params',_0x2390f5(0x1a4));}function parseCommandParams(_0x48d35c){return parseJsonParams(_0x48d35c)??{};}export function buildDataCommand(_0x48a476){const _0x4ea80c=a49_0x4628,_0x191043=_0x4ea80c(0x19c);return{'service':_0x4ea80c(0x1a9),'command':_0x48a476['command'],'description':_0x48a476[_0x4ea80c(0x199)],'risk':_0x4ea80c(0x1ac),'defaultOutputFormat':_0x4ea80c(0x1a2),'helpExtra':_0x48a476['helpExtra'],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':_0x4ea80c(0x1b0),'description':_0x191043},{'name':_0x4ea80c(0x19b),'type':_0x4ea80c(0x1b0),'description':_0x48a476['paramsHint']}],async 'validate'(_0x274709){const _0x3678a1=_0x4ea80c,_0x261950=_0x274709['str'](_0x3678a1(0x19b));if(_0x48a476[_0x3678a1(0x1a3)]&&!_0x261950)throw CliErrors['flagMissing']('params',_0x48a476[_0x3678a1(0x1a6)]);const _0x2b0e53=parseJsonParams(_0x261950);_0x48a476['operation']==='getOne'&&assertGetOneId(_0x2b0e53);},async 'execute'(_0x200a88){const _0x113e90=_0x4ea80c,_0x342d5c=parseCommandParams(_0x200a88[_0x113e90(0x198)](_0x113e90(0x19b))),_0x2a9359=Date[_0x113e90(0x19d)](),_0x268533=await executeDatasetDataOperation(_0x200a88['appCode'],_0x200a88['str'](_0x113e90(0x1ad)),_0x48a476[_0x113e90(0x1a1)],_0x342d5c),_0x1cb363=Date['now']()-_0x2a9359;return{'ok':!![],'data':{'result':_0x268533,'elapsed':_0x1cb363},'message':_0x113e90(0x1b2)+_0x48a476[_0x113e90(0x1a5)]+'\x20completed\x20in\x20'+_0x1cb363+'ms'};}};}
1
+ (function(_0x191a77,_0x190c75){const _0x1d86c0=a49_0xc135,_0x18eb0e=_0x191a77();while(!![]){try{const _0x45d237=parseInt(_0x1d86c0(0x121))/0x1+parseInt(_0x1d86c0(0x119))/0x2+parseInt(_0x1d86c0(0x123))/0x3*(-parseInt(_0x1d86c0(0x122))/0x4)+parseInt(_0x1d86c0(0x115))/0x5+-parseInt(_0x1d86c0(0x125))/0x6*(parseInt(_0x1d86c0(0x120))/0x7)+-parseInt(_0x1d86c0(0x112))/0x8+-parseInt(_0x1d86c0(0x124))/0x9*(-parseInt(_0x1d86c0(0x110))/0xa);if(_0x45d237===_0x190c75)break;else _0x18eb0e['push'](_0x18eb0e['shift']());}catch(_0x1c2393){_0x18eb0e['push'](_0x18eb0e['shift']());}}}(a49_0x22e7,0xbe5c0));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x14f340){const _0x56de06=a49_0xc135;if(!_0x14f340)throw CliErrors[_0x56de06(0x117)](_0x56de06(0x11c),_0x56de06(0x10a));const _0x2a18ab=_0x14f340['id'];if(_0x2a18ab===undefined||_0x2a18ab===null||_0x2a18ab==='')throw CliErrors[_0x56de06(0x11d)]('data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params',_0x56de06(0x114));}function parseCommandParams(_0x43eb39){return parseJsonParams(_0x43eb39)??{};}export function buildDataCommand(_0x38d291){const _0x464bdb=a49_0xc135,_0x293afe=_0x464bdb(0x116);return{'service':_0x464bdb(0x109),'command':_0x38d291[_0x464bdb(0x11a)],'description':_0x38d291['description'],'risk':_0x464bdb(0x11f),'defaultOutputFormat':_0x464bdb(0x11b),'helpExtra':_0x38d291[_0x464bdb(0x10c)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x464bdb(0x11e),'type':_0x464bdb(0x10b),'description':_0x293afe},{'name':_0x464bdb(0x11c),'type':_0x464bdb(0x10b),'description':_0x38d291[_0x464bdb(0x10e)]}],async 'validate'(_0x117d3e){const _0x562347=_0x464bdb,_0x1d0eed=_0x117d3e[_0x562347(0x108)]('params');if(_0x38d291['paramsRequired']&&!_0x1d0eed)throw CliErrors[_0x562347(0x117)](_0x562347(0x11c),_0x38d291[_0x562347(0x10e)]);const _0x38d70a=parseJsonParams(_0x1d0eed);_0x38d291[_0x562347(0x118)]==='getOne'&&assertGetOneId(_0x38d70a);},async 'execute'(_0x6f470){const _0x368ad5=_0x464bdb,_0x354beb=parseCommandParams(_0x6f470[_0x368ad5(0x108)](_0x368ad5(0x11c))),_0x17ddf2=Date[_0x368ad5(0x111)](),_0x35e113=await executeDatasetDataOperation(_0x6f470[_0x368ad5(0x10d)],_0x6f470['str'](_0x368ad5(0x113)),_0x38d291[_0x368ad5(0x118)],_0x354beb),_0x1b14f8=Date[_0x368ad5(0x111)]()-_0x17ddf2;return{'ok':!![],'data':{'result':_0x35e113,'elapsed':_0x1b14f8},'message':_0x368ad5(0x10f)+_0x38d291[_0x368ad5(0x11a)]+'\x20completed\x20in\x20'+_0x1b14f8+'ms'};}};}function a49_0xc135(_0x3a5615,_0x810f03){_0x3a5615=_0x3a5615-0x108;const _0x22e75c=a49_0x22e7();let _0xc13591=_0x22e75c[_0x3a5615];return _0xc13591;}function a49_0x22e7(){const _0x3b2ef0=['paramsHint','data\x20','9053380bCcTXl','now','11233048vMFmKc','code','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','549445rHyVyk','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','flagMissing','operation','3009550PtUjSQ','command','compress','params','validation','alias','read','1661142SZxceD','252632bCJMPu','410132xauqvu','9LxolNd','18TSaodY','30sjNGsC','str','data','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','string','helpExtra','appCode'];a49_0x22e7=function(){return _0x3b2ef0;};return a49_0x22e7();}