@lovrabet/rabetbase-cli 2.2.4 → 2.2.5-beta.1

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 (216) 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/app-config/delete.js +1 -0
  27. package/lib/commands/app-config/get.js +1 -0
  28. package/lib/commands/app-config/index.js +1 -0
  29. package/lib/commands/app-config/list.js +1 -0
  30. package/lib/commands/app-config/set.js +1 -0
  31. package/lib/commands/app-config/shared.js +1 -0
  32. package/lib/commands/auth/index.js +1 -1
  33. package/lib/commands/bff/create.js +1 -1
  34. package/lib/commands/bff/delete.js +1 -1
  35. package/lib/commands/bff/detail.js +1 -1
  36. package/lib/commands/bff/index.js +1 -1
  37. package/lib/commands/bff/list.js +1 -1
  38. package/lib/commands/bff/pull.js +1 -1
  39. package/lib/commands/bff/push.js +1 -1
  40. package/lib/commands/bff/status.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-selector.js +1 -1
  46. package/lib/commands/common/flags.js +1 -1
  47. package/lib/commands/common/validate.js +1 -1
  48. package/lib/commands/config/get.js +1 -1
  49. package/lib/commands/config/index.js +1 -1
  50. package/lib/commands/config/list.js +1 -1
  51. package/lib/commands/config/set.js +1 -1
  52. package/lib/commands/config/shared.js +1 -1
  53. package/lib/commands/data/filter.js +1 -1
  54. package/lib/commands/data/getOne.js +1 -1
  55. package/lib/commands/data/index.js +1 -1
  56. package/lib/commands/data/shared.js +1 -1
  57. package/lib/commands/dataset/business-group-update.js +1 -0
  58. package/lib/commands/dataset/capability.js +1 -1
  59. package/lib/commands/dataset/delete.js +1 -1
  60. package/lib/commands/dataset/detail.js +1 -1
  61. package/lib/commands/dataset/extend-update.js +1 -1
  62. package/lib/commands/dataset/field-update.js +1 -1
  63. package/lib/commands/dataset/index.js +1 -1
  64. package/lib/commands/dataset/list.js +1 -1
  65. package/lib/commands/dataset/operations.js +1 -1
  66. package/lib/commands/dataset/relation-create.js +1 -1
  67. package/lib/commands/dataset/relation-delete.js +1 -1
  68. package/lib/commands/dataset/relation-shared.js +1 -1
  69. package/lib/commands/dataset/relation-update.js +1 -1
  70. package/lib/commands/dataset/relations.js +1 -1
  71. package/lib/commands/dataset/rename.js +1 -1
  72. package/lib/commands/db/analyze-cancel.js +1 -1
  73. package/lib/commands/db/analyze-start.js +1 -1
  74. package/lib/commands/db/analyze-status.js +1 -1
  75. package/lib/commands/db/create.js +1 -1
  76. package/lib/commands/db/delete.js +1 -1
  77. package/lib/commands/db/detail.js +1 -1
  78. package/lib/commands/db/diff.js +1 -1
  79. package/lib/commands/db/index.js +1 -1
  80. package/lib/commands/db/list.js +1 -1
  81. package/lib/commands/db/shared.js +1 -1
  82. package/lib/commands/db/tables.js +1 -1
  83. package/lib/commands/db/test.js +1 -1
  84. package/lib/commands/db/update.js +1 -1
  85. package/lib/commands/doctor.js +1 -1
  86. package/lib/commands/init/index.js +1 -1
  87. package/lib/commands/issue/index.js +1 -1
  88. package/lib/commands/issue/nudge.js +1 -1
  89. package/lib/commands/issue/report.js +1 -1
  90. package/lib/commands/issue/shared.js +1 -1
  91. package/lib/commands/logs/index.js +1 -1
  92. package/lib/commands/menu/index.js +1 -1
  93. package/lib/commands/menu/list.js +1 -1
  94. package/lib/commands/menu/shared/compare-table.js +1 -1
  95. package/lib/commands/menu/shared/index.js +1 -1
  96. package/lib/commands/menu/shared/inquirer.js +1 -1
  97. package/lib/commands/menu/shared/local-pages.js +1 -1
  98. package/lib/commands/menu/shared/logic.js +1 -1
  99. package/lib/commands/menu/shared/service.js +1 -1
  100. package/lib/commands/menu/shared/sync-core.js +1 -1
  101. package/lib/commands/menu/shared/update-core.js +1 -1
  102. package/lib/commands/menu/shared/valid-url.js +1 -1
  103. package/lib/commands/menu/sync.js +1 -1
  104. package/lib/commands/menu/update.js +1 -1
  105. package/lib/commands/page/generate-start.js +1 -1
  106. package/lib/commands/page/generate-status.js +1 -1
  107. package/lib/commands/page/index.js +1 -1
  108. package/lib/commands/page/pull.js +1 -1
  109. package/lib/commands/page/push.js +1 -1
  110. package/lib/commands/page/relation-audit.js +1 -1
  111. package/lib/commands/page/shared.js +1 -1
  112. package/lib/commands/page/standard-page-status.js +1 -1
  113. package/lib/commands/page/sync.js +1 -1
  114. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  115. package/lib/commands/project/create/format-elapsed.js +1 -1
  116. package/lib/commands/project/create/main.js +1 -1
  117. package/lib/commands/project/create/non-interactive.js +1 -1
  118. package/lib/commands/project/create/project-template-path.js +1 -1
  119. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  120. package/lib/commands/project/create/use-format-code.js +1 -1
  121. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  122. package/lib/commands/project/index.js +1 -1
  123. package/lib/commands/project/init.js +1 -1
  124. package/lib/commands/project/upgrade.js +1 -1
  125. package/lib/commands/registry.js +1 -1
  126. package/lib/commands/run/index.js +1 -1
  127. package/lib/commands/schema.js +1 -1
  128. package/lib/commands/skill/index.js +1 -1
  129. package/lib/commands/sql/create.js +1 -1
  130. package/lib/commands/sql/delete.js +1 -1
  131. package/lib/commands/sql/detail.js +1 -1
  132. package/lib/commands/sql/exec.js +1 -1
  133. package/lib/commands/sql/index.js +1 -1
  134. package/lib/commands/sql/list.js +1 -1
  135. package/lib/commands/sql/pull.js +1 -1
  136. package/lib/commands/sql/push.js +1 -1
  137. package/lib/commands/sql/save.js +1 -1
  138. package/lib/commands/sql/shared.js +1 -1
  139. package/lib/commands/sql/status.js +1 -1
  140. package/lib/commands/sql/validate.js +1 -1
  141. package/lib/commands/workspace/index.js +1 -1
  142. package/lib/config/schema.js +1 -1
  143. package/lib/constant/cdn.js +1 -1
  144. package/lib/constant/cli.js +1 -1
  145. package/lib/constant/defaults.js +1 -1
  146. package/lib/constant/domain.js +1 -1
  147. package/lib/constant/env.js +1 -1
  148. package/lib/constant/output.js +1 -1
  149. package/lib/constant/paths.js +1 -1
  150. package/lib/constant/risk.js +1 -1
  151. package/lib/context/app-resolver.js +1 -1
  152. package/lib/context/auth-resolver.js +1 -1
  153. package/lib/context/config-loader.js +1 -1
  154. package/lib/context.js +1 -1
  155. package/lib/core/alias-resolver.js +1 -1
  156. package/lib/core/api-client.js +1 -1
  157. package/lib/core/bff/config.js +1 -1
  158. package/lib/core/bff/file-system.js +1 -1
  159. package/lib/core/bff/hash.js +1 -1
  160. package/lib/core/bff/lock.js +1 -1
  161. package/lib/core/bff/utils.js +1 -1
  162. package/lib/core/db-resolver.js +1 -1
  163. package/lib/core/page/file-system.js +1 -1
  164. package/lib/core/page/hash.js +1 -1
  165. package/lib/core/page/lock.js +1 -1
  166. package/lib/core/sql-sync/config.js +1 -1
  167. package/lib/core/sql-sync/file-system.js +1 -1
  168. package/lib/core/sql-sync/hash.js +1 -1
  169. package/lib/core/sql-sync/lock.js +1 -1
  170. package/lib/core/sql-sync/utils.js +1 -1
  171. package/lib/core/sql-validator.js +1 -1
  172. package/lib/errors.js +1 -1
  173. package/lib/framework/build-all-flags.js +1 -1
  174. package/lib/framework/flags.js +1 -1
  175. package/lib/framework/help.js +1 -1
  176. package/lib/framework/index.js +1 -1
  177. package/lib/framework/output.js +1 -1
  178. package/lib/framework/response.js +1 -1
  179. package/lib/framework/runner-alias.js +1 -1
  180. package/lib/framework/runner.js +1 -1
  181. package/lib/framework/schema-export.js +1 -1
  182. package/lib/framework/types.js +1 -1
  183. package/lib/generated/build-info.js +1 -1
  184. package/lib/help.js +1 -1
  185. package/lib/skills/main.js +1 -1
  186. package/lib/skills/npx-skills-add.js +1 -1
  187. package/lib/telemetry/cli-command-trace.js +1 -1
  188. package/lib/telemetry/cli-help-trace.js +1 -1
  189. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  190. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  191. package/lib/telemetry/send-cli-trace-log.js +1 -1
  192. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  193. package/lib/utils/ai_config.js +1 -1
  194. package/lib/utils/apply-jq-filter.js +1 -1
  195. package/lib/utils/cdn-config.js +1 -1
  196. package/lib/utils/check-sdk-version.js +1 -1
  197. package/lib/utils/cli-version-check.js +1 -1
  198. package/lib/utils/cli-version-policy.js +1 -1
  199. package/lib/utils/config.js +1 -1
  200. package/lib/utils/copy-directory.js +1 -1
  201. package/lib/utils/entity-with-id.js +1 -1
  202. package/lib/utils/file-utils.js +1 -1
  203. package/lib/utils/guides-cdn.js +1 -1
  204. package/lib/utils/http-client.js +1 -1
  205. package/lib/utils/is-non-interactive.js +1 -1
  206. package/lib/utils/logger.js +1 -1
  207. package/lib/utils/params.js +1 -1
  208. package/lib/utils/platform.js +1 -1
  209. package/lib/utils/rules-cdn.js +1 -1
  210. package/lib/utils/sleep.js +1 -1
  211. package/lib/utils/template-replacer.js +1 -1
  212. package/lib/utils/update-notice.js +1 -1
  213. package/lib/utils/version.js +1 -1
  214. package/lib/utils/with-active-cookie.js +1 -1
  215. package/lib/utils/write-cli-side-channel.js +1 -1
  216. package/package.json +1 -1
@@ -1 +1 @@
1
- const a31_0x19a960=a31_0xe0ed;(function(_0x3bc545,_0x236185){const _0x424635=a31_0xe0ed,_0xea501f=_0x3bc545();while(!![]){try{const _0xf4e7a5=-parseInt(_0x424635(0x17f))/0x1*(parseInt(_0x424635(0x19b))/0x2)+parseInt(_0x424635(0x17e))/0x3+-parseInt(_0x424635(0x192))/0x4+-parseInt(_0x424635(0x189))/0x5*(-parseInt(_0x424635(0x184))/0x6)+-parseInt(_0x424635(0x177))/0x7*(-parseInt(_0x424635(0x1a0))/0x8)+parseInt(_0x424635(0x176))/0x9+-parseInt(_0x424635(0x199))/0xa*(parseInt(_0x424635(0x183))/0xb);if(_0xf4e7a5===_0x236185)break;else _0xea501f['push'](_0xea501f['shift']());}catch(_0xf368bf){_0xea501f['push'](_0xea501f['shift']());}}}(a31_0x2e56,0x69597));import{createInterface}from'node:readline';import{writeFile}from'node:fs/promises';import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';function a31_0x2e56(){const _0x274ca5=['ENDPOINT','push','operationType','includes','toISOString','appCode','Pull\x20only\x20this\x20script\x20type','--type\x20must\x20be\x20COMMON,\x20ENDPOINT,\x20or\x20HOOK.','bool','toLowerCase','Pull\x20complete:\x20','\x22\x20not\x20found\x20after\x20ensureLockScope.','Would\x20inspect\x20','close','alias','COMMON','conflict','Force\x20overwrite\x20local\x20unsynced\x20changes','GET','scriptType','nonInteractive','pull','Force\x20pull\x20cancelled.','5537673DxBDtS','21iSlbyc','boolean','stderr','scriptsRoot','Force\x20pull\x20will\x20overwrite\x20local\x20unsynced\x20changes.\x20Continue?\x20[y/N]\x20','Remote\x20script\x20missing\x20content.','No\x20remote\x20BFF\x20scripts\x20found.','1325841SeVLVe','1UXJBLH','length','hookLocation','datasetCode','33erqqMH','9066xYUmYr','lockKey','string','functionNode','map','1255truPSC','stdin','skipped','&type=','\x20failed','force','functions','local\x20unsynced\x20changes','bff','207644idOjhP','apiDir','type','apps','Lock\x20scope\x20for\x20app\x20\x22','scriptContent','functionName','911080xBiggl','str','1531484MfxNVI','HOOK','Remote\x20script\x20missing\x20id.','\x20skipped,\x20','parse','229288tuycJf','lastSync','filePath','lockFilePath'];a31_0x2e56=function(){return _0x274ca5;};return a31_0x2e56();}import{createHookLocationMap,ensureParentDirectory,fileExists,normalizeBffType,resolveRemoteScriptTarget}from'../../core/bff/file-system.js';import{computeContentHash,computeFileHash}from'../../core/bff/hash.js';function a31_0xe0ed(_0x4fa9dd,_0x4715d4){_0x4fa9dd=_0x4fa9dd-0x176;const _0x2e56fe=a31_0x2e56();let _0xe0ed40=_0x2e56fe[_0x4fa9dd];return _0xe0ed40;}import{createEmptyBffLock,ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{CliErrors}from'../../errors.js';export const bffPull={'service':a31_0x19a960(0x191),'command':a31_0x19a960(0x1b9),'description':'Pull\x20remote\x20BFF\x20scripts\x20to\x20local','risk':'write','flags':[{'name':'type','type':a31_0x19a960(0x186),'description':a31_0x19a960(0x1aa),'enum':[a31_0x19a960(0x1b3),a31_0x19a960(0x1a4),a31_0x19a960(0x19c)]},{'name':a31_0x19a960(0x18e),'type':a31_0x19a960(0x178),'description':a31_0x19a960(0x1b5)}],async 'dryRun'(_0x37487c){const _0x332443=a31_0x19a960,_0x37becc=loadBffProjectConfig(_0x37487c[_0x332443(0x1a9)]),_0x2b8c3a=await readBffLockFile(_0x37becc[_0x332443(0x1a3)]),{appLock:_0x57c9bc}=ensureLockScope(_0x2b8c3a??createEmptyBffLock(),_0x37487c[_0x332443(0x1a9)],_0x37becc[_0x332443(0x17a)],_0x332443(0x1b9)),_0x3cd05d=normalizeBffType(_0x37487c[_0x332443(0x19a)]('type'))??undefined,_0x5d9bdd=buildDatasetCodeToAliasMap(_0x37487c[_0x332443(0x193)],_0x37487c[_0x332443(0x1a9)]),[_0xf6d562,_0x20dfd6]=await Promise['all']([listBffScripts(_0x37487c[_0x332443(0x1a9)],_0x3cd05d),getBffScriptStatistics(_0x37487c[_0x332443(0x1a9)])]),_0x279c69=createHookLocationMap(_0x20dfd6),_0x50caab=[];for(const _0x1a09d1 of _0xf6d562){const _0x17dca8=resolveRemoteScriptTarget(_0x37becc,_0x1a09d1,_0x279c69,_0x57c9bc[_0x332443(0x18f)],_0x5d9bdd);if(!_0x17dca8){_0x50caab[_0x332443(0x1a5)]({'scriptType':_0x1a09d1[_0x332443(0x1b7)],'functionName':_0x1a09d1[_0x332443(0x198)]??'','status':_0x332443(0x18b),'reason':'unresolvable\x20target\x20path'});continue;}const _0x311b94=_0x57c9bc['functions'][_0x17dca8['lockKey']],_0x2930ad=_0x1a09d1[_0x332443(0x197)]!=null?computeContentHash(_0x1a09d1[_0x332443(0x197)]):undefined,_0x2de632=await hasUnsyncedLocalChanges(_0x17dca8[_0x332443(0x1a2)],_0x311b94,_0x2930ad);_0x50caab['push']({'lockKey':_0x17dca8['lockKey'],'filePath':_0x17dca8[_0x332443(0x1a2)],'remoteId':_0x1a09d1['id']??null,'status':_0x2de632?_0x332443(0x1b4):'would_pull'});}return{'method':_0x332443(0x1b6),'url':'/api/management/library/scripts/list?appCode='+_0x37487c[_0x332443(0x1a9)]+(_0x3cd05d?_0x332443(0x18c)+_0x3cd05d:''),'body':{'appCode':_0x37487c[_0x332443(0x1a9)],'filterType':_0x3cd05d??null,'files':_0x50caab},'description':_0x332443(0x1b0)+_0x50caab['length']+'\x20remote\x20BFF\x20script(s)\x20for\x20pull'};},async 'execute'(_0x3d8729){const _0x3631a2=a31_0x19a960,_0x464bfc=loadBffProjectConfig(_0x3d8729[_0x3631a2(0x1a9)]),_0x54fdbd=await readBffLockFile(_0x464bfc['lockFilePath']),{lockData:_0x1ef7c9,appLock:_0x512ac0}=ensureLockScope(_0x54fdbd??createEmptyBffLock(),_0x3d8729['appCode'],_0x464bfc[_0x3631a2(0x17a)],_0x3631a2(0x1b9)),_0xeb4214=normalizeBffType(_0x3d8729[_0x3631a2(0x19a)](_0x3631a2(0x194)))??undefined;if(_0x3d8729[_0x3631a2(0x19a)](_0x3631a2(0x194))&&!_0xeb4214)throw CliErrors['validation'](_0x3631a2(0x1ab));const [_0x2a2f75,_0x414bb2]=await Promise['all']([listBffScripts(_0x3d8729[_0x3631a2(0x1a9)],_0xeb4214),getBffScriptStatistics(_0x3d8729['appCode'])]);if(_0x2a2f75[_0x3631a2(0x180)]===0x0)return{'ok':!![],'data':{'pulled':[],'skipped':[],'failed':[]},'message':_0x3631a2(0x17d)};const _0x42d79c=_0x3d8729[_0x3631a2(0x1ac)](_0x3631a2(0x18e));if(_0x42d79c&&!_0x3d8729[_0x3631a2(0x1b8)]){const _0xe85ee7=await confirmForce();if(!_0xe85ee7)throw CliErrors['cancelled'](_0x3631a2(0x1ba));}if(_0x42d79c&&_0x3d8729[_0x3631a2(0x1b8)]){}const _0x590f3a=buildDatasetCodeToAliasMap(_0x3d8729[_0x3631a2(0x193)],_0x3d8729[_0x3631a2(0x1a9)]),_0x3064de=createHookLocationMap(_0x414bb2),_0x4f2022=JSON[_0x3631a2(0x19f)](JSON['stringify'](_0x1ef7c9)),_0x218be7=_0x3d8729[_0x3631a2(0x1a9)],_0x42c326=_0x4f2022[_0x3631a2(0x195)][_0x218be7];if(!_0x42c326)throw new Error(_0x3631a2(0x196)+_0x218be7+_0x3631a2(0x1af));const _0x2aacae=[],_0x939e11=[],_0x5a43dd=[];for(const _0x2d4389 of _0x2a2f75){const _0x8d188a=resolveRemoteScriptTarget(_0x464bfc,_0x2d4389,_0x3064de,_0x512ac0[_0x3631a2(0x18f)],_0x590f3a);if(!_0x8d188a){_0x939e11['push']({'lockKey':_0x2d4389[_0x3631a2(0x1b7)]+'/'+_0x2d4389['functionName'],'reason':'unresolvable\x20target\x20path'});continue;}const _0x200bcd=_0x512ac0[_0x3631a2(0x18f)][_0x8d188a[_0x3631a2(0x185)]];try{if(!_0x2d4389['id'])throw new Error(_0x3631a2(0x19d));if(_0x2d4389['scriptContent']==null)throw new Error(_0x3631a2(0x17c));const _0x1415a3=_0x2d4389['scriptContent'],_0x47c18a=computeContentHash(_0x1415a3);if(!_0x42d79c){const _0x11f7a2=await hasUnsyncedLocalChanges(_0x8d188a['filePath'],_0x200bcd,_0x47c18a);if(_0x11f7a2){_0x939e11[_0x3631a2(0x1a5)]({'lockKey':_0x8d188a[_0x3631a2(0x185)],'reason':_0x3631a2(0x190)});continue;}}await ensureParentDirectory(_0x8d188a[_0x3631a2(0x1a2)]),await writeFile(_0x8d188a['filePath'],_0x1415a3,'utf8');const _0x456e7f={'hash':_0x47c18a,'remoteId':_0x2d4389['id'],'version':_0x2d4389['version']};_0x8d188a[_0x3631a2(0x194)]==='HOOK'&&_0x8d188a['hookLocation']&&(_0x456e7f[_0x3631a2(0x1b2)]=_0x8d188a[_0x3631a2(0x181)][_0x3631a2(0x1b2)],_0x456e7f['datasetCode']=_0x8d188a[_0x3631a2(0x181)][_0x3631a2(0x182)],_0x456e7f['operationType']=_0x8d188a[_0x3631a2(0x181)][_0x3631a2(0x1a6)],_0x456e7f[_0x3631a2(0x187)]=_0x8d188a[_0x3631a2(0x181)][_0x3631a2(0x187)]),_0x42c326['functions'][_0x8d188a[_0x3631a2(0x185)]]=_0x456e7f,_0x2aacae[_0x3631a2(0x1a5)]({'lockKey':_0x8d188a[_0x3631a2(0x185)],'remoteId':_0x2d4389['id']});}catch(_0x5594e0){_0x5a43dd[_0x3631a2(0x1a5)]({'lockKey':_0x8d188a['lockKey'],'error':_0x5594e0 instanceof Error?_0x5594e0['message']:String(_0x5594e0)});}}return _0x42c326[_0x3631a2(0x1a1)]=new Date()[_0x3631a2(0x1a8)](),await writeBffLockFile(_0x464bfc[_0x3631a2(0x1a3)],_0x4f2022),{'ok':_0x5a43dd[_0x3631a2(0x180)]===0x0,'data':{'pulled':_0x2aacae,'skipped':_0x939e11,'failed':_0x5a43dd},'message':_0x3631a2(0x1ae)+_0x2aacae[_0x3631a2(0x180)]+'\x20pulled,\x20'+_0x939e11[_0x3631a2(0x180)]+_0x3631a2(0x19e)+_0x5a43dd[_0x3631a2(0x180)]+_0x3631a2(0x18d)};}};async function hasUnsyncedLocalChanges(_0x2f856b,_0x556e33,_0x268862){if(!await fileExists(_0x2f856b))return![];const _0x320fec=await computeFileHash(_0x2f856b);if(!_0x556e33)return _0x268862?_0x320fec!==_0x268862:!![];return _0x320fec!==_0x556e33['hash'];}function buildDatasetCodeToAliasMap(_0x130804,_0x8bac11){const _0x23efbe=a31_0x19a960,_0x37afca=loadAliasMap(_0x130804,undefined,resolveApiFilePath(_0x130804,_0x8bac11));return new Map(_0x37afca[_0x23efbe(0x188)](_0x1f70c2=>[_0x1f70c2[_0x23efbe(0x182)],_0x1f70c2[_0x23efbe(0x1b2)]]));}async function confirmForce(){const _0x14b177=a31_0x19a960,_0x5674da=createInterface({'input':process[_0x14b177(0x18a)],'output':process[_0x14b177(0x179)]}),_0x4beed1=await new Promise(_0x4bb957=>{const _0x2fbf7c=_0x14b177;_0x5674da['question'](_0x2fbf7c(0x17b),_0x4bb957);});return _0x5674da[_0x14b177(0x1b1)](),['y','yes'][_0x14b177(0x1a7)](_0x4beed1['trim']()[_0x14b177(0x1ad)]());}
1
+ const a37_0x790eaf=a37_0x3959;(function(_0x1c5883,_0x42cd8c){const _0x2e822e=a37_0x3959,_0x34f4f5=_0x1c5883();while(!![]){try{const _0x51a984=-parseInt(_0x2e822e(0x1a4))/0x1*(parseInt(_0x2e822e(0x1cb))/0x2)+parseInt(_0x2e822e(0x19c))/0x3+parseInt(_0x2e822e(0x1c2))/0x4*(parseInt(_0x2e822e(0x1b5))/0x5)+parseInt(_0x2e822e(0x1dc))/0x6+parseInt(_0x2e822e(0x1bc))/0x7*(-parseInt(_0x2e822e(0x1da))/0x8)+-parseInt(_0x2e822e(0x1b7))/0x9+-parseInt(_0x2e822e(0x1c9))/0xa*(-parseInt(_0x2e822e(0x1aa))/0xb);if(_0x51a984===_0x42cd8c)break;else _0x34f4f5['push'](_0x34f4f5['shift']());}catch(_0x407580){_0x34f4f5['push'](_0x34f4f5['shift']());}}}(a37_0x4c36,0x2ebdf));import{createInterface}from'node:readline';function a37_0x4c36(){const _0x5c22c1=['apps','bool','question','Pull\x20remote\x20BFF\x20scripts\x20to\x20local','Force\x20overwrite\x20local\x20unsynced\x20changes','functions','functionNode','HOOK','force','functionName','push','skipped','241104hMsBqE','filePath','1443222mewDOK','Pull\x20only\x20this\x20script\x20type','cancelled','type','Lock\x20scope\x20for\x20app\x20\x22','toLowerCase','192549FoVSyF','message','map','length','unresolvable\x20target\x20path','stringify','parse','Force\x20pull\x20will\x20overwrite\x20local\x20unsynced\x20changes.\x20Continue?\x20[y/N]\x20','2HRkZLF','\x20pulled,\x20','write','appCode','--type\x20must\x20be\x20COMMON,\x20ENDPOINT,\x20or\x20HOOK.','/api/management/library/scripts/list?appCode=','2929729cERkKZ','hookLocation','boolean','yes','&type=','alias','Would\x20inspect\x20','datasetCode','lastSync','lockKey','Pull\x20complete:\x20','5qAbtjx','No\x20remote\x20BFF\x20scripts\x20found.','2996172ixcEnR','toISOString','conflict','scriptType','scriptContent','35XPiAnt','bff','version','\x22\x20not\x20found\x20after\x20ensureLockScope.','nonInteractive','apiDir','95540LnRbGR','\x20skipped,\x20','operationType','trim','str','utf8','all','20nrGvaU','pull','186230cBmKig','\x20remote\x20BFF\x20script(s)\x20for\x20pull','string'];a37_0x4c36=function(){return _0x5c22c1;};return a37_0x4c36();}import{writeFile}from'node:fs/promises';import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,ensureParentDirectory,fileExists,normalizeBffType,resolveRemoteScriptTarget}from'../../core/bff/file-system.js';import{computeContentHash,computeFileHash}from'../../core/bff/hash.js';function a37_0x3959(_0x1e5226,_0x122b08){_0x1e5226=_0x1e5226-0x199;const _0x4c360d=a37_0x4c36();let _0x395924=_0x4c360d[_0x1e5226];return _0x395924;}import{createEmptyBffLock,ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{CliErrors}from'../../errors.js';export const bffPull={'service':a37_0x790eaf(0x1bd),'command':'pull','description':a37_0x790eaf(0x1d1),'risk':a37_0x790eaf(0x1a6),'flags':[{'name':a37_0x790eaf(0x199),'type':a37_0x790eaf(0x1cd),'description':a37_0x790eaf(0x1dd),'enum':['COMMON','ENDPOINT',a37_0x790eaf(0x1d5)]},{'name':a37_0x790eaf(0x1d6),'type':a37_0x790eaf(0x1ac),'description':a37_0x790eaf(0x1d2)}],async 'dryRun'(_0x5e1796){const _0x3b35de=a37_0x790eaf,_0x57465f=loadBffProjectConfig(_0x5e1796[_0x3b35de(0x1a7)]),_0x3690d5=await readBffLockFile(_0x57465f['lockFilePath']),{appLock:_0x54f22e}=ensureLockScope(_0x3690d5??createEmptyBffLock(),_0x5e1796[_0x3b35de(0x1a7)],_0x57465f['scriptsRoot'],_0x3b35de(0x1ca)),_0x53c20b=normalizeBffType(_0x5e1796[_0x3b35de(0x1c6)]('type'))??undefined,_0x12f662=buildDatasetCodeToAliasMap(_0x5e1796[_0x3b35de(0x1c1)],_0x5e1796[_0x3b35de(0x1a7)]),[_0x3a368d,_0x18cf80]=await Promise[_0x3b35de(0x1c8)]([listBffScripts(_0x5e1796[_0x3b35de(0x1a7)],_0x53c20b),getBffScriptStatistics(_0x5e1796[_0x3b35de(0x1a7)])]),_0xe074df=createHookLocationMap(_0x18cf80),_0x6233e3=[];for(const _0x48cc8b of _0x3a368d){const _0x2d330b=resolveRemoteScriptTarget(_0x57465f,_0x48cc8b,_0xe074df,_0x54f22e[_0x3b35de(0x1d3)],_0x12f662);if(!_0x2d330b){_0x6233e3['push']({'scriptType':_0x48cc8b[_0x3b35de(0x1ba)],'functionName':_0x48cc8b[_0x3b35de(0x1d7)]??'','status':_0x3b35de(0x1d9),'reason':_0x3b35de(0x1a0)});continue;}const _0x4b05ac=_0x54f22e['functions'][_0x2d330b[_0x3b35de(0x1b3)]],_0x374f19=_0x48cc8b[_0x3b35de(0x1bb)]!=null?computeContentHash(_0x48cc8b[_0x3b35de(0x1bb)]):undefined,_0x7c9246=await hasUnsyncedLocalChanges(_0x2d330b[_0x3b35de(0x1db)],_0x4b05ac,_0x374f19);_0x6233e3[_0x3b35de(0x1d8)]({'lockKey':_0x2d330b[_0x3b35de(0x1b3)],'filePath':_0x2d330b[_0x3b35de(0x1db)],'remoteId':_0x48cc8b['id']??null,'status':_0x7c9246?_0x3b35de(0x1b9):'would_pull'});}return{'method':'GET','url':_0x3b35de(0x1a9)+_0x5e1796[_0x3b35de(0x1a7)]+(_0x53c20b?_0x3b35de(0x1ae)+_0x53c20b:''),'body':{'appCode':_0x5e1796[_0x3b35de(0x1a7)],'filterType':_0x53c20b??null,'files':_0x6233e3},'description':_0x3b35de(0x1b0)+_0x6233e3[_0x3b35de(0x19f)]+_0x3b35de(0x1cc)};},async 'execute'(_0x5dc1ec){const _0x36e545=a37_0x790eaf,_0x2de614=loadBffProjectConfig(_0x5dc1ec['appCode']),_0x41f47e=await readBffLockFile(_0x2de614['lockFilePath']),{lockData:_0x1b8bc4,appLock:_0x2eeb3d}=ensureLockScope(_0x41f47e??createEmptyBffLock(),_0x5dc1ec[_0x36e545(0x1a7)],_0x2de614['scriptsRoot'],_0x36e545(0x1ca)),_0x3aa4a9=normalizeBffType(_0x5dc1ec[_0x36e545(0x1c6)](_0x36e545(0x199)))??undefined;if(_0x5dc1ec[_0x36e545(0x1c6)](_0x36e545(0x199))&&!_0x3aa4a9)throw CliErrors['validation'](_0x36e545(0x1a8));const [_0x13f551,_0x21f4f4]=await Promise['all']([listBffScripts(_0x5dc1ec[_0x36e545(0x1a7)],_0x3aa4a9),getBffScriptStatistics(_0x5dc1ec[_0x36e545(0x1a7)])]);if(_0x13f551['length']===0x0)return{'ok':!![],'data':{'pulled':[],'skipped':[],'failed':[]},'message':_0x36e545(0x1b6)};const _0x2e14af=_0x5dc1ec[_0x36e545(0x1cf)](_0x36e545(0x1d6));if(_0x2e14af&&!_0x5dc1ec[_0x36e545(0x1c0)]){const _0x3cfb8c=await confirmForce();if(!_0x3cfb8c)throw CliErrors[_0x36e545(0x1de)]('Force\x20pull\x20cancelled.');}if(_0x2e14af&&_0x5dc1ec[_0x36e545(0x1c0)]){}const _0x3665c6=buildDatasetCodeToAliasMap(_0x5dc1ec['apiDir'],_0x5dc1ec[_0x36e545(0x1a7)]),_0x2beef0=createHookLocationMap(_0x21f4f4),_0x11c4a8=JSON[_0x36e545(0x1a2)](JSON[_0x36e545(0x1a1)](_0x1b8bc4)),_0x21048e=_0x5dc1ec[_0x36e545(0x1a7)],_0x1d7420=_0x11c4a8[_0x36e545(0x1ce)][_0x21048e];if(!_0x1d7420)throw new Error(_0x36e545(0x19a)+_0x21048e+_0x36e545(0x1bf));const _0x134c17=[],_0x54d06b=[],_0x98c565=[];for(const _0x52c8e5 of _0x13f551){const _0x75cca3=resolveRemoteScriptTarget(_0x2de614,_0x52c8e5,_0x2beef0,_0x2eeb3d[_0x36e545(0x1d3)],_0x3665c6);if(!_0x75cca3){_0x54d06b[_0x36e545(0x1d8)]({'lockKey':_0x52c8e5[_0x36e545(0x1ba)]+'/'+_0x52c8e5['functionName'],'reason':_0x36e545(0x1a0)});continue;}const _0x5a51ad=_0x2eeb3d[_0x36e545(0x1d3)][_0x75cca3[_0x36e545(0x1b3)]];try{if(!_0x52c8e5['id'])throw new Error('Remote\x20script\x20missing\x20id.');if(_0x52c8e5[_0x36e545(0x1bb)]==null)throw new Error('Remote\x20script\x20missing\x20content.');const _0xeefc28=_0x52c8e5[_0x36e545(0x1bb)],_0x8c49e7=computeContentHash(_0xeefc28);if(!_0x2e14af){const _0x12bc8a=await hasUnsyncedLocalChanges(_0x75cca3['filePath'],_0x5a51ad,_0x8c49e7);if(_0x12bc8a){_0x54d06b[_0x36e545(0x1d8)]({'lockKey':_0x75cca3[_0x36e545(0x1b3)],'reason':'local\x20unsynced\x20changes'});continue;}}await ensureParentDirectory(_0x75cca3['filePath']),await writeFile(_0x75cca3[_0x36e545(0x1db)],_0xeefc28,_0x36e545(0x1c7));const _0xe13a25={'hash':_0x8c49e7,'remoteId':_0x52c8e5['id'],'version':_0x52c8e5[_0x36e545(0x1be)]};_0x75cca3[_0x36e545(0x199)]===_0x36e545(0x1d5)&&_0x75cca3[_0x36e545(0x1ab)]&&(_0xe13a25[_0x36e545(0x1af)]=_0x75cca3['hookLocation']['alias'],_0xe13a25['datasetCode']=_0x75cca3['hookLocation'][_0x36e545(0x1b1)],_0xe13a25[_0x36e545(0x1c4)]=_0x75cca3[_0x36e545(0x1ab)][_0x36e545(0x1c4)],_0xe13a25[_0x36e545(0x1d4)]=_0x75cca3[_0x36e545(0x1ab)][_0x36e545(0x1d4)]),_0x1d7420[_0x36e545(0x1d3)][_0x75cca3[_0x36e545(0x1b3)]]=_0xe13a25,_0x134c17[_0x36e545(0x1d8)]({'lockKey':_0x75cca3[_0x36e545(0x1b3)],'remoteId':_0x52c8e5['id']});}catch(_0x2ac1aa){_0x98c565[_0x36e545(0x1d8)]({'lockKey':_0x75cca3[_0x36e545(0x1b3)],'error':_0x2ac1aa instanceof Error?_0x2ac1aa[_0x36e545(0x19d)]:String(_0x2ac1aa)});}}return _0x1d7420[_0x36e545(0x1b2)]=new Date()[_0x36e545(0x1b8)](),await writeBffLockFile(_0x2de614['lockFilePath'],_0x11c4a8),{'ok':_0x98c565[_0x36e545(0x19f)]===0x0,'data':{'pulled':_0x134c17,'skipped':_0x54d06b,'failed':_0x98c565},'message':_0x36e545(0x1b4)+_0x134c17[_0x36e545(0x19f)]+_0x36e545(0x1a5)+_0x54d06b['length']+_0x36e545(0x1c3)+_0x98c565[_0x36e545(0x19f)]+'\x20failed'};}};async function hasUnsyncedLocalChanges(_0x54986a,_0x56d88b,_0x19e8c0){if(!await fileExists(_0x54986a))return![];const _0x5f3101=await computeFileHash(_0x54986a);if(!_0x56d88b)return _0x19e8c0?_0x5f3101!==_0x19e8c0:!![];return _0x5f3101!==_0x56d88b['hash'];}function buildDatasetCodeToAliasMap(_0x4f6de9,_0x1ff07e){const _0xa3a606=a37_0x790eaf,_0x1b26b4=loadAliasMap(_0x4f6de9,undefined,resolveApiFilePath(_0x4f6de9,_0x1ff07e));return new Map(_0x1b26b4[_0xa3a606(0x19e)](_0x2b0423=>[_0x2b0423['datasetCode'],_0x2b0423[_0xa3a606(0x1af)]]));}async function confirmForce(){const _0x45d766=a37_0x790eaf,_0x34a480=createInterface({'input':process['stdin'],'output':process['stderr']}),_0x2d1b3a=await new Promise(_0x4c5329=>{const _0x5f097f=a37_0x3959;_0x34a480[_0x5f097f(0x1d0)](_0x5f097f(0x1a3),_0x4c5329);});return _0x34a480['close'](),['y',_0x45d766(0x1ad)]['includes'](_0x2d1b3a[_0x45d766(0x1c5)]()[_0x45d766(0x19b)]());}
@@ -1 +1 @@
1
- const a32_0x1a6a71=a32_0x3311;function a32_0x3311(_0x2c2d62,_0x10fa5f){_0x2c2d62=_0x2c2d62-0x147;const _0x4b19fc=a32_0x4b19();let _0x331164=_0x4b19fc[_0x2c2d62];return _0x331164;}(function(_0x19dee8,_0x52d5c4){const _0x34e59f=a32_0x3311,_0x39009d=_0x19dee8();while(!![]){try{const _0x185a56=-parseInt(_0x34e59f(0x195))/0x1*(-parseInt(_0x34e59f(0x15d))/0x2)+-parseInt(_0x34e59f(0x147))/0x3*(parseInt(_0x34e59f(0x172))/0x4)+-parseInt(_0x34e59f(0x182))/0x5*(parseInt(_0x34e59f(0x18f))/0x6)+-parseInt(_0x34e59f(0x16b))/0x7*(-parseInt(_0x34e59f(0x17e))/0x8)+parseInt(_0x34e59f(0x19a))/0x9+parseInt(_0x34e59f(0x150))/0xa+-parseInt(_0x34e59f(0x190))/0xb;if(_0x185a56===_0x52d5c4)break;else _0x39009d['push'](_0x39009d['shift']());}catch(_0x4302c2){_0x39009d['push'](_0x39009d['shift']());}}}(a32_0x4b19,0xed149));import{readFile}from'node:fs/promises';import{saveBffScript,getBffScriptInfo,listDatasets,clearBffScriptCache}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';function a32_0x4b19(){const _0xd1c683=['Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','datasetCode','cleared','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','runtime\x20cache\x20clear\x20failed','would_push','functionNode','Force\x20push\x20ignoring\x20hash\x20protection','Cannot\x20resolve\x20dataset\x20for\x20\x22','71892YPfAbe','31289434TQlvzk','\x22\x20not\x20found\x20after\x20ensureLockScope.','string','version','update','17084lrIpzG','appCode','hash','Push\x20local\x20BFF\x20scripts\x20to\x20remote','set','11703753BUojht','bool','\x20local\x20BFF\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','message','12MyzAXM','datasetCodeToDataset','create','/api/management/library/scripts/save','script','runtime\x20cache\x20not\x20needed','lockFilePath','push','name','16172570iQHxEP','operationType','description','code','lockKey','\x20uploaded,\x20','stringify','parse','bff','alias','str','has','apps','84lWUMTv','toISOString','POST','aliasToDatasetCode','high-risk-write','attempted','runtime\x20cache\x20cleared','scriptsRoot','Push\x20complete:\x20','status','HOOK','type','Would\x20inspect\x20','datasetId','4155431SMCPnV','get','utf8','\x22.\x20','ENDPOINT','Runtime\x20script\x20cache\x20cleared.','some','245512ZSNVHf','length','every','apiDir','force','\x20skipped,\x20','filter','Incomplete\x20HOOK\x20path:\x20','filePath','remoteId','validation','functions','8vMWvxP','COMMON','Local\x20function\x20not\x20found:\x20','unchanged','70OeFMaI','\x20failed,\x20','map','Run\x20`'];a32_0x4b19=function(){return _0xd1c683;};return a32_0x4b19();}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_0x1a6a71(0x158),'command':a32_0x1a6a71(0x14e),'description':a32_0x1a6a71(0x198),'risk':a32_0x1a6a71(0x161),'flags':[{'name':'type','type':a32_0x1a6a71(0x192),'description':'Push\x20only\x20this\x20script\x20type','enum':[a32_0x1a6a71(0x17f),a32_0x1a6a71(0x16f),'HOOK']},{'name':a32_0x1a6a71(0x14f),'type':'string','description':a32_0x1a6a71(0x186)},{'name':a32_0x1a6a71(0x176),'type':'boolean','description':a32_0x1a6a71(0x18d)}],async 'dryRun'(_0x9ce6fb){const _0x7178e2=a32_0x1a6a71,_0x31b6f5=loadBffProjectConfig(_0x9ce6fb[_0x7178e2(0x196)]),_0xaddaf0=await readBffLockFile(_0x31b6f5['lockFilePath']),{appLock:_0x3e7793}=ensureLockScope(_0xaddaf0??createEmptyBffLock(),_0x9ce6fb['appCode'],_0x31b6f5[_0x7178e2(0x164)],_0x7178e2(0x14e)),_0x4d0ee1=await getTargetFunctions(_0x31b6f5,_0x9ce6fb),_0x284ee6=_0x9ce6fb[_0x7178e2(0x19b)]('force'),_0x2d2bce=[];for(const _0x3dbd8a of _0x4d0ee1){const _0x4ff295=await computeFileHash(_0x3dbd8a[_0x7178e2(0x17a)]),_0x23ba85=_0x3e7793[_0x7178e2(0x17d)][_0x3dbd8a['lockKey']],_0x17aa23=!!_0x23ba85&&_0x23ba85[_0x7178e2(0x197)]===_0x4ff295;_0x2d2bce[_0x7178e2(0x14e)]({'lockKey':_0x3dbd8a[_0x7178e2(0x154)],'filePath':_0x3dbd8a[_0x7178e2(0x17a)],'remoteId':_0x23ba85?.[_0x7178e2(0x17b)]??null,'mode':_0x23ba85?.[_0x7178e2(0x17b)]?_0x7178e2(0x194):_0x7178e2(0x149),'status':!_0x284ee6&&_0x17aa23?_0x7178e2(0x181):_0x7178e2(0x18b)});}return{'method':_0x7178e2(0x15f),'url':_0x7178e2(0x14a),'body':{'appCode':_0x9ce6fb['appCode'],'force':_0x284ee6,'files':_0x2d2bce,'cacheClearAtRuntime':_0x2d2bce[_0x7178e2(0x171)](_0x9bc026=>_0x9bc026[_0x7178e2(0x166)]===_0x7178e2(0x18b)),'cacheClearAtRuntimeTimes':_0x2d2bce[_0x7178e2(0x171)](_0x498572=>_0x498572[_0x7178e2(0x166)]===_0x7178e2(0x18b))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x7178e2(0x169)+_0x2d2bce['length']+_0x7178e2(0x19c)};},async 'execute'(_0x47e39e){const _0x5f1d28=a32_0x1a6a71,_0x41f2e4=loadBffProjectConfig(_0x47e39e['appCode']),_0x5a5dbc=await readBffLockFile(_0x41f2e4[_0x5f1d28(0x14d)]),{lockData:_0x4b6187,appLock:_0x1e7529}=ensureLockScope(_0x5a5dbc??createEmptyBffLock(),_0x47e39e['appCode'],_0x41f2e4[_0x5f1d28(0x164)],_0x5f1d28(0x14e)),_0x2a1717=await getTargetFunctions(_0x41f2e4,_0x47e39e);if(_0x2a1717[_0x5f1d28(0x173)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'failed':[]},'message':'No\x20local\x20BFF\x20functions\x20found.'};const _0x3ea003=_0x47e39e[_0x5f1d28(0x19b)](_0x5f1d28(0x176)),_0x38c2ed=JSON[_0x5f1d28(0x157)](JSON[_0x5f1d28(0x156)](_0x4b6187)),_0x43da0e=_0x38c2ed[_0x5f1d28(0x15c)][_0x47e39e[_0x5f1d28(0x196)]];if(!_0x43da0e)throw new Error('Lock\x20scope\x20for\x20app\x20\x22'+_0x47e39e[_0x5f1d28(0x196)]+_0x5f1d28(0x191));const _0x27bf69=await buildHookMaps(_0x47e39e[_0x5f1d28(0x196)],_0x47e39e[_0x5f1d28(0x175)],_0x2a1717,_0x43da0e),_0x2b52a5=[],_0x1960b2=[],_0xa8d902=[];for(const _0x2dba95 of _0x2a1717){const _0x5e2c64=await computeFileHash(_0x2dba95[_0x5f1d28(0x17a)]),_0x330209=_0x43da0e[_0x5f1d28(0x17d)][_0x2dba95[_0x5f1d28(0x154)]];if(!_0x3ea003&&_0x330209&&_0x330209[_0x5f1d28(0x197)]===_0x5e2c64){_0x1960b2[_0x5f1d28(0x14e)]({'lockKey':_0x2dba95[_0x5f1d28(0x154)],'reason':_0x5f1d28(0x181)});continue;}try{await uploadSingleFunction(_0x47e39e[_0x5f1d28(0x196)],_0x2dba95,_0x43da0e,_0x27bf69);const _0x44c2dc=_0x43da0e[_0x5f1d28(0x17d)][_0x2dba95[_0x5f1d28(0x154)]];_0x2b52a5[_0x5f1d28(0x14e)]({'lockKey':_0x2dba95[_0x5f1d28(0x154)],'remoteId':_0x44c2dc?.[_0x5f1d28(0x17b)]??0x0});}catch(_0x56f861){_0xa8d902[_0x5f1d28(0x14e)]({'lockKey':_0x2dba95[_0x5f1d28(0x154)],'error':_0x56f861 instanceof Error?_0x56f861[_0x5f1d28(0x19d)]:String(_0x56f861)});}}_0x43da0e['lastSync']=new Date()[_0x5f1d28(0x15e)](),await writeBffLockFile(_0x41f2e4[_0x5f1d28(0x14d)],_0x38c2ed),await waitForUploadedLockEntries(_0x41f2e4[_0x5f1d28(0x14d)],_0x47e39e[_0x5f1d28(0x196)],_0x2b52a5[_0x5f1d28(0x184)](_0xf2638d=>_0xf2638d[_0x5f1d28(0x154)]));let _0x18cb28={'attempted':![],'cleared':![]};if(_0x2b52a5[_0x5f1d28(0x173)]>0x0)try{let _0x18205e='';for(let _0x55c952=0x0;_0x55c952<CACHE_CLEAR_ATTEMPTS;_0x55c952+=0x1){_0x18205e=await clearBffScriptCache(),_0x55c952<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x18cb28={'attempted':!![],'cleared':!![],'message':_0x18205e||_0x5f1d28(0x170)};}catch(_0x1bb48e){_0x18cb28={'attempted':!![],'cleared':![],'error':_0x1bb48e instanceof Error?_0x1bb48e['message']:String(_0x1bb48e)};}const _0x4065e7=_0xa8d902[_0x5f1d28(0x173)]===0x0&&(_0x18cb28[_0x5f1d28(0x162)]?_0x18cb28[_0x5f1d28(0x188)]:!![]),_0x3ceb3f=_0x18cb28[_0x5f1d28(0x162)]?_0x18cb28['cleared']?_0x5f1d28(0x163):_0x5f1d28(0x18a):_0x5f1d28(0x14c);return{'ok':_0x4065e7,'data':{'uploaded':_0x2b52a5,'skipped':_0x1960b2,'failed':_0xa8d902,'cacheClear':_0x18cb28},'message':_0x5f1d28(0x165)+_0x2b52a5[_0x5f1d28(0x173)]+_0x5f1d28(0x155)+_0x1960b2[_0x5f1d28(0x173)]+_0x5f1d28(0x177)+_0xa8d902[_0x5f1d28(0x173)]+_0x5f1d28(0x183)+_0x3ceb3f};}};async function getTargetFunctions(_0x55bcdf,_0x14f148){const _0x3e4042=a32_0x1a6a71,_0x110f43=_0x14f148[_0x3e4042(0x15a)](_0x3e4042(0x168)),_0xd00b78=_0x14f148['str']('name'),_0x4bfeab=normalizeBffType(_0x110f43)??undefined;if(_0xd00b78&&!_0x4bfeab)throw CliErrors[_0x3e4042(0x17c)](_0x3e4042(0x189));const _0x37b223=await scanLocalBffFunctions(_0x55bcdf,_0x4bfeab);if(_0xd00b78){const _0x19278d=_0x37b223[_0x3e4042(0x178)](_0x4d4905=>_0x4d4905['name']===_0xd00b78);if(_0x19278d[_0x3e4042(0x173)]===0x0)throw CliErrors[_0x3e4042(0x17c)](_0x3e4042(0x180)+_0x4bfeab+'/'+_0xd00b78);return _0x19278d;}return _0x37b223;}async function buildHookMaps(_0x5c9210,_0x35bfa1,_0x463f63,_0x1c8378){const _0x468d58=a32_0x1a6a71,_0x44216c=_0x463f63[_0x468d58(0x171)](_0x2484f2=>_0x2484f2[_0x468d58(0x168)]===_0x468d58(0x167));if(!_0x44216c)return{'aliasToDatasetCode':new Map(),'datasetCodeToDataset':new Map()};const _0x1eeb9e=loadAliasMap(_0x35bfa1,undefined,resolveApiFilePath(_0x35bfa1,_0x5c9210)),_0x129276=new Map(_0x1eeb9e[_0x468d58(0x184)](_0x4c2f50=>[_0x4c2f50[_0x468d58(0x159)],_0x4c2f50[_0x468d58(0x187)]]));for(const _0x3d5b81 of Object['values'](_0x1c8378[_0x468d58(0x17d)])){_0x3d5b81[_0x468d58(0x159)]&&_0x3d5b81['datasetCode']&&!_0x129276['has'](_0x3d5b81['alias'])&&_0x129276[_0x468d58(0x199)](_0x3d5b81['alias'],_0x3d5b81[_0x468d58(0x187)]);}const _0x5609c9=await listDatasets(_0x5c9210),_0x161961=new Map(_0x5609c9[_0x468d58(0x184)](_0x161ab9=>[_0x161ab9[_0x468d58(0x153)],_0x161ab9]));return{'aliasToDatasetCode':_0x129276,'datasetCodeToDataset':_0x161961};}async function uploadSingleFunction(_0x4546e1,_0x48a483,_0x2b8a4c,_0x8e9036){const _0x23bd8a=a32_0x1a6a71,_0xaf1c81=await readFile(_0x48a483[_0x23bd8a(0x17a)],_0x23bd8a(0x16d)),_0x153f71=await computeFileHash(_0x48a483['filePath']),_0x3db324=_0x2b8a4c['functions'][_0x48a483[_0x23bd8a(0x154)]];if(_0x3db324?.[_0x23bd8a(0x17b)]&&_0x3db324[_0x23bd8a(0x193)]==null)throw CliErrors['validation'](_0x48a483[_0x23bd8a(0x154)]+':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.');let _0x5b52b0=extractScriptDescription(_0xaf1c81);if(!_0x5b52b0&&_0x3db324?.['remoteId']){const _0x251173=await getBffScriptInfo(_0x3db324[_0x23bd8a(0x17b)]);_0x5b52b0=_0x251173['description']||undefined;}const _0x3fc74a={'appCode':_0x4546e1,'functionName':_0x48a483[_0x23bd8a(0x14f)],'scriptType':_0x48a483[_0x23bd8a(0x168)],'scriptContent':_0xaf1c81};if(_0x3db324?.[_0x23bd8a(0x17b)])_0x3fc74a['id']=_0x3db324[_0x23bd8a(0x17b)];if(_0x3db324?.[_0x23bd8a(0x193)]!=null)_0x3fc74a[_0x23bd8a(0x193)]=_0x3db324[_0x23bd8a(0x193)];if(_0x5b52b0)_0x3fc74a[_0x23bd8a(0x152)]=_0x5b52b0;if(_0x48a483[_0x23bd8a(0x168)]==='HOOK'){const _0x5a6aa6=_0x48a483[_0x23bd8a(0x159)];if(!_0x5a6aa6||!_0x48a483[_0x23bd8a(0x151)]||!_0x48a483[_0x23bd8a(0x18c)])throw CliErrors[_0x23bd8a(0x17c)](_0x23bd8a(0x179)+_0x48a483['lockKey']);const _0x2ad16b=_0x8e9036[_0x23bd8a(0x160)]['get'](_0x5a6aa6)??_0x3db324?.['datasetCode']??_0x5a6aa6,_0x2c181a=_0x8e9036[_0x23bd8a(0x148)][_0x23bd8a(0x16c)](_0x2ad16b);if(!_0x2c181a)throw CliErrors[_0x23bd8a(0x17c)](_0x23bd8a(0x18e)+_0x5a6aa6+_0x23bd8a(0x16e)+(_0x23bd8a(0x185)+CLI_BIN_NAME+'\x20api\x20pull`\x20to\x20refresh\x20api.ts,\x20or\x20verify\x20the\x20dataset\x20exists.'));_0x3fc74a[_0x23bd8a(0x16a)]=_0x2c181a['id'],_0x3fc74a['operationType']=_0x48a483[_0x23bd8a(0x151)],_0x3fc74a[_0x23bd8a(0x18c)]=_0x48a483['functionNode'];}const _0x5ab9b9=await saveBffScript(_0x3fc74a),_0xe76ab2=_0x5ab9b9['id'],_0x585376=_0x5ab9b9[_0x23bd8a(0x14b)]??await getBffScriptInfo(_0xe76ab2),_0x2154ec={'hash':_0x153f71,'remoteId':_0xe76ab2,'version':_0x585376['version']};if(_0x48a483[_0x23bd8a(0x168)]==='HOOK'){const _0x122f65=_0x48a483['alias'],_0x1e6b32=_0x8e9036[_0x23bd8a(0x160)][_0x23bd8a(0x16c)](_0x122f65)??_0x3db324?.[_0x23bd8a(0x187)]??_0x122f65;_0x8e9036[_0x23bd8a(0x160)][_0x23bd8a(0x15b)](_0x122f65)?_0x2154ec[_0x23bd8a(0x159)]=_0x122f65:_0x2154ec['alias']=_0x3db324?.[_0x23bd8a(0x159)],_0x2154ec[_0x23bd8a(0x187)]=_0x1e6b32,_0x2154ec['operationType']=_0x48a483[_0x23bd8a(0x151)],_0x2154ec[_0x23bd8a(0x18c)]=_0x48a483[_0x23bd8a(0x18c)];}_0x2b8a4c[_0x23bd8a(0x17d)][_0x48a483[_0x23bd8a(0x154)]]=_0x2154ec;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x587714,_0x158703,_0x485c5a){const _0x54e77b=a32_0x1a6a71;if(_0x485c5a[_0x54e77b(0x173)]===0x0)return;for(let _0x4e8e7d=0x0;_0x4e8e7d<LOCK_SETTLE_RETRY_COUNT;_0x4e8e7d+=0x1){const _0x57fc41=await readBffLockFile(_0x587714),_0x3caeda=_0x57fc41?.[_0x54e77b(0x15c)]?.[_0x158703]?.[_0x54e77b(0x17d)]??{},_0x10ef38=_0x485c5a[_0x54e77b(0x174)](_0xfa4653=>!!_0x3caeda[_0xfa4653]?.['remoteId']);if(_0x10ef38)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error('Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20'+_0x485c5a['join'](',\x20')+'.');}
1
+ const a38_0x3e0e1c=a38_0x3431;(function(_0x16c3c5,_0x12440a){const _0x2b197a=a38_0x3431,_0xcb7815=_0x16c3c5();while(!![]){try{const _0x3279a2=parseInt(_0x2b197a(0x129))/0x1*(-parseInt(_0x2b197a(0x13a))/0x2)+parseInt(_0x2b197a(0x14c))/0x3*(-parseInt(_0x2b197a(0x13b))/0x4)+-parseInt(_0x2b197a(0x14f))/0x5+-parseInt(_0x2b197a(0x12d))/0x6+-parseInt(_0x2b197a(0x142))/0x7+parseInt(_0x2b197a(0x102))/0x8*(parseInt(_0x2b197a(0x127))/0x9)+-parseInt(_0x2b197a(0x122))/0xa*(-parseInt(_0x2b197a(0x10f))/0xb);if(_0x3279a2===_0x12440a)break;else _0xcb7815['push'](_0xcb7815['shift']());}catch(_0x56408e){_0xcb7815['push'](_0xcb7815['shift']());}}}(a38_0x49de,0xca3a7));function a38_0x49de(){const _0x487e82=['aliasToDatasetCode','115803dACeur','bff','85qhWqXi','attempted','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','stringify','5787486SGHCPt','unchanged','cleared','apiDir','toISOString','appCode','lockFilePath','lastSync','script','runtime\x20cache\x20not\x20needed','validation','\x20api\x20pull`\x20to\x20refresh\x20api.ts,\x20or\x20verify\x20the\x20dataset\x20exists.','message','24914lmuHtf','52VurkFY','scriptsRoot','map','length','\x22\x20not\x20found\x20after\x20ensureLockScope.','datasetId','code','5739629uwdmkM','description','force','name','\x20skipped,\x20','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','No\x20local\x20BFF\x20functions\x20found.','datasetCodeToDataset','Run\x20`','apps','262023iXcMiK','ENDPOINT','Local\x20function\x20not\x20found:\x20','5527460dfgqTc','string','filePath','992jZPPLZ','Push\x20only\x20this\x20script\x20type','COMMON','some','Lock\x20scope\x20for\x20app\x20\x22','runtime\x20cache\x20clear\x20failed','functions','alias','has','version','/api/management/library/scripts/save','operationType','datasetCode','15829429xaUflc','update','create','remoteId','high-risk-write','lockKey','type','hash','str','bool','would_push','status','boolean','Would\x20inspect\x20','set','HOOK','get','every','runtime\x20cache\x20cleared','30mZEqNd','values','push','functionNode'];a38_0x49de=function(){return _0x487e82;};return a38_0x49de();}import{readFile}from'node:fs/promises';import{saveBffScript,getBffScriptInfo,listDatasets,clearBffScriptCache}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';function a38_0x3431(_0x7e107b,_0x3ec621){_0x7e107b=_0x7e107b-0x101;const _0x49ded3=a38_0x49de();let _0x3431f6=_0x49ded3[_0x7e107b];return _0x3431f6;}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':a38_0x3e0e1c(0x128),'command':a38_0x3e0e1c(0x124),'description':'Push\x20local\x20BFF\x20scripts\x20to\x20remote','risk':a38_0x3e0e1c(0x113),'flags':[{'name':a38_0x3e0e1c(0x115),'type':a38_0x3e0e1c(0x150),'description':a38_0x3e0e1c(0x103),'enum':[a38_0x3e0e1c(0x104),a38_0x3e0e1c(0x14d),'HOOK']},{'name':a38_0x3e0e1c(0x145),'type':a38_0x3e0e1c(0x150),'description':'Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)'},{'name':'force','type':a38_0x3e0e1c(0x11b),'description':'Force\x20push\x20ignoring\x20hash\x20protection'}],async 'dryRun'(_0x13aa75){const _0x27be04=a38_0x3e0e1c,_0x43940f=loadBffProjectConfig(_0x13aa75[_0x27be04(0x132)]),_0x3df0e0=await readBffLockFile(_0x43940f[_0x27be04(0x133)]),{appLock:_0x5f5b8c}=ensureLockScope(_0x3df0e0??createEmptyBffLock(),_0x13aa75[_0x27be04(0x132)],_0x43940f[_0x27be04(0x13c)],_0x27be04(0x124)),_0x44f3a9=await getTargetFunctions(_0x43940f,_0x13aa75),_0x12581c=_0x13aa75[_0x27be04(0x118)](_0x27be04(0x144)),_0x2813da=[];for(const _0x423fd5 of _0x44f3a9){const _0x4c5782=await computeFileHash(_0x423fd5[_0x27be04(0x101)]),_0x441547=_0x5f5b8c[_0x27be04(0x108)][_0x423fd5[_0x27be04(0x114)]],_0x1cc61a=!!_0x441547&&_0x441547[_0x27be04(0x116)]===_0x4c5782;_0x2813da[_0x27be04(0x124)]({'lockKey':_0x423fd5[_0x27be04(0x114)],'filePath':_0x423fd5['filePath'],'remoteId':_0x441547?.['remoteId']??null,'mode':_0x441547?.[_0x27be04(0x112)]?_0x27be04(0x110):_0x27be04(0x111),'status':!_0x12581c&&_0x1cc61a?_0x27be04(0x12e):_0x27be04(0x119)});}return{'method':'POST','url':_0x27be04(0x10c),'body':{'appCode':_0x13aa75['appCode'],'force':_0x12581c,'files':_0x2813da,'cacheClearAtRuntime':_0x2813da[_0x27be04(0x105)](_0x2e673c=>_0x2e673c['status']===_0x27be04(0x119)),'cacheClearAtRuntimeTimes':_0x2813da['some'](_0x438402=>_0x438402[_0x27be04(0x11a)]===_0x27be04(0x119))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x27be04(0x11c)+_0x2813da[_0x27be04(0x13e)]+'\x20local\x20BFF\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded'};},async 'execute'(_0x3fa057){const _0x51dfa2=a38_0x3e0e1c,_0x315a56=loadBffProjectConfig(_0x3fa057[_0x51dfa2(0x132)]),_0x169de6=await readBffLockFile(_0x315a56[_0x51dfa2(0x133)]),{lockData:_0x11076b,appLock:_0x194e6f}=ensureLockScope(_0x169de6??createEmptyBffLock(),_0x3fa057[_0x51dfa2(0x132)],_0x315a56[_0x51dfa2(0x13c)],_0x51dfa2(0x124)),_0x1ea62b=await getTargetFunctions(_0x315a56,_0x3fa057);if(_0x1ea62b[_0x51dfa2(0x13e)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'failed':[]},'message':_0x51dfa2(0x148)};const _0x462f10=_0x3fa057[_0x51dfa2(0x118)]('force'),_0xe46670=JSON['parse'](JSON[_0x51dfa2(0x12c)](_0x11076b)),_0x54c724=_0xe46670[_0x51dfa2(0x14b)][_0x3fa057[_0x51dfa2(0x132)]];if(!_0x54c724)throw new Error(_0x51dfa2(0x106)+_0x3fa057[_0x51dfa2(0x132)]+_0x51dfa2(0x13f));const _0x628911=await buildHookMaps(_0x3fa057['appCode'],_0x3fa057[_0x51dfa2(0x130)],_0x1ea62b,_0x54c724),_0x463d4c=[],_0xed4ead=[],_0x48a0da=[];for(const _0x1e88cd of _0x1ea62b){const _0x3d99ae=await computeFileHash(_0x1e88cd[_0x51dfa2(0x101)]),_0x1db315=_0x54c724[_0x51dfa2(0x108)][_0x1e88cd[_0x51dfa2(0x114)]];if(!_0x462f10&&_0x1db315&&_0x1db315[_0x51dfa2(0x116)]===_0x3d99ae){_0xed4ead['push']({'lockKey':_0x1e88cd['lockKey'],'reason':_0x51dfa2(0x12e)});continue;}try{await uploadSingleFunction(_0x3fa057[_0x51dfa2(0x132)],_0x1e88cd,_0x54c724,_0x628911);const _0x27f190=_0x54c724[_0x51dfa2(0x108)][_0x1e88cd[_0x51dfa2(0x114)]];_0x463d4c[_0x51dfa2(0x124)]({'lockKey':_0x1e88cd[_0x51dfa2(0x114)],'remoteId':_0x27f190?.[_0x51dfa2(0x112)]??0x0});}catch(_0x2c4640){_0x48a0da['push']({'lockKey':_0x1e88cd[_0x51dfa2(0x114)],'error':_0x2c4640 instanceof Error?_0x2c4640[_0x51dfa2(0x139)]:String(_0x2c4640)});}}_0x54c724[_0x51dfa2(0x134)]=new Date()[_0x51dfa2(0x131)](),await writeBffLockFile(_0x315a56['lockFilePath'],_0xe46670),await waitForUploadedLockEntries(_0x315a56['lockFilePath'],_0x3fa057[_0x51dfa2(0x132)],_0x463d4c[_0x51dfa2(0x13d)](_0x3597b2=>_0x3597b2[_0x51dfa2(0x114)]));let _0x407915={'attempted':![],'cleared':![]};if(_0x463d4c[_0x51dfa2(0x13e)]>0x0)try{let _0x45b70e='';for(let _0x2c9c53=0x0;_0x2c9c53<CACHE_CLEAR_ATTEMPTS;_0x2c9c53+=0x1){_0x45b70e=await clearBffScriptCache(),_0x2c9c53<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x407915={'attempted':!![],'cleared':!![],'message':_0x45b70e||'Runtime\x20script\x20cache\x20cleared.'};}catch(_0x2d4830){_0x407915={'attempted':!![],'cleared':![],'error':_0x2d4830 instanceof Error?_0x2d4830[_0x51dfa2(0x139)]:String(_0x2d4830)};}const _0x2f4e48=_0x48a0da['length']===0x0&&(_0x407915[_0x51dfa2(0x12a)]?_0x407915['cleared']:!![]),_0x33eb82=_0x407915['attempted']?_0x407915[_0x51dfa2(0x12f)]?_0x51dfa2(0x121):_0x51dfa2(0x107):_0x51dfa2(0x136);return{'ok':_0x2f4e48,'data':{'uploaded':_0x463d4c,'skipped':_0xed4ead,'failed':_0x48a0da,'cacheClear':_0x407915},'message':'Push\x20complete:\x20'+_0x463d4c[_0x51dfa2(0x13e)]+'\x20uploaded,\x20'+_0xed4ead[_0x51dfa2(0x13e)]+_0x51dfa2(0x146)+_0x48a0da['length']+'\x20failed,\x20'+_0x33eb82};}};async function getTargetFunctions(_0x4516ec,_0x1a2809){const _0xe02be4=a38_0x3e0e1c,_0x1bc68b=_0x1a2809[_0xe02be4(0x117)](_0xe02be4(0x115)),_0x206278=_0x1a2809[_0xe02be4(0x117)](_0xe02be4(0x145)),_0x59cdb5=normalizeBffType(_0x1bc68b)??undefined;if(_0x206278&&!_0x59cdb5)throw CliErrors['validation'](_0xe02be4(0x147));const _0x5acd37=await scanLocalBffFunctions(_0x4516ec,_0x59cdb5);if(_0x206278){const _0xb5362a=_0x5acd37['filter'](_0x55399e=>_0x55399e[_0xe02be4(0x145)]===_0x206278);if(_0xb5362a[_0xe02be4(0x13e)]===0x0)throw CliErrors[_0xe02be4(0x137)](_0xe02be4(0x14e)+_0x59cdb5+'/'+_0x206278);return _0xb5362a;}return _0x5acd37;}async function buildHookMaps(_0x475320,_0x15ad55,_0x14d1c5,_0x4780c1){const _0x7e1d07=a38_0x3e0e1c,_0x41d750=_0x14d1c5[_0x7e1d07(0x105)](_0x30cca6=>_0x30cca6[_0x7e1d07(0x115)]===_0x7e1d07(0x11e));if(!_0x41d750)return{'aliasToDatasetCode':new Map(),'datasetCodeToDataset':new Map()};const _0x46746b=loadAliasMap(_0x15ad55,undefined,resolveApiFilePath(_0x15ad55,_0x475320)),_0x4ebb86=new Map(_0x46746b[_0x7e1d07(0x13d)](_0x4626d6=>[_0x4626d6['alias'],_0x4626d6[_0x7e1d07(0x10e)]]));for(const _0x533b2f of Object[_0x7e1d07(0x123)](_0x4780c1[_0x7e1d07(0x108)])){_0x533b2f[_0x7e1d07(0x109)]&&_0x533b2f['datasetCode']&&!_0x4ebb86[_0x7e1d07(0x10a)](_0x533b2f[_0x7e1d07(0x109)])&&_0x4ebb86[_0x7e1d07(0x11d)](_0x533b2f['alias'],_0x533b2f[_0x7e1d07(0x10e)]);}const _0x2cb642=await listDatasets(_0x475320),_0xc92836=new Map(_0x2cb642[_0x7e1d07(0x13d)](_0x3c8476=>[_0x3c8476[_0x7e1d07(0x141)],_0x3c8476]));return{'aliasToDatasetCode':_0x4ebb86,'datasetCodeToDataset':_0xc92836};}async function uploadSingleFunction(_0x49fec2,_0x2e9ea5,_0x4e9503,_0x337e82){const _0x279e3c=a38_0x3e0e1c,_0x904b28=await readFile(_0x2e9ea5[_0x279e3c(0x101)],'utf8'),_0x195d5a=await computeFileHash(_0x2e9ea5['filePath']),_0x3f3aab=_0x4e9503['functions'][_0x2e9ea5[_0x279e3c(0x114)]];if(_0x3f3aab?.[_0x279e3c(0x112)]&&_0x3f3aab[_0x279e3c(0x10b)]==null)throw CliErrors['validation'](_0x2e9ea5[_0x279e3c(0x114)]+':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.');let _0x3c11e8=extractScriptDescription(_0x904b28);if(!_0x3c11e8&&_0x3f3aab?.[_0x279e3c(0x112)]){const _0x4cab4a=await getBffScriptInfo(_0x3f3aab[_0x279e3c(0x112)]);_0x3c11e8=_0x4cab4a[_0x279e3c(0x143)]||undefined;}const _0x3b4bba={'appCode':_0x49fec2,'functionName':_0x2e9ea5['name'],'scriptType':_0x2e9ea5['type'],'scriptContent':_0x904b28};if(_0x3f3aab?.[_0x279e3c(0x112)])_0x3b4bba['id']=_0x3f3aab[_0x279e3c(0x112)];if(_0x3f3aab?.['version']!=null)_0x3b4bba['version']=_0x3f3aab[_0x279e3c(0x10b)];if(_0x3c11e8)_0x3b4bba['description']=_0x3c11e8;if(_0x2e9ea5[_0x279e3c(0x115)]==='HOOK'){const _0x4beca6=_0x2e9ea5['alias'];if(!_0x4beca6||!_0x2e9ea5[_0x279e3c(0x10d)]||!_0x2e9ea5[_0x279e3c(0x125)])throw CliErrors[_0x279e3c(0x137)]('Incomplete\x20HOOK\x20path:\x20'+_0x2e9ea5[_0x279e3c(0x114)]);const _0x53747d=_0x337e82[_0x279e3c(0x126)][_0x279e3c(0x11f)](_0x4beca6)??_0x3f3aab?.[_0x279e3c(0x10e)]??_0x4beca6,_0x255770=_0x337e82[_0x279e3c(0x149)][_0x279e3c(0x11f)](_0x53747d);if(!_0x255770)throw CliErrors[_0x279e3c(0x137)]('Cannot\x20resolve\x20dataset\x20for\x20\x22'+_0x4beca6+'\x22.\x20'+(_0x279e3c(0x14a)+CLI_BIN_NAME+_0x279e3c(0x138)));_0x3b4bba[_0x279e3c(0x140)]=_0x255770['id'],_0x3b4bba[_0x279e3c(0x10d)]=_0x2e9ea5[_0x279e3c(0x10d)],_0x3b4bba[_0x279e3c(0x125)]=_0x2e9ea5[_0x279e3c(0x125)];}const _0x12b2cd=await saveBffScript(_0x3b4bba),_0x32db42=_0x12b2cd['id'],_0x2fb49b=_0x12b2cd[_0x279e3c(0x135)]??await getBffScriptInfo(_0x32db42),_0x364376={'hash':_0x195d5a,'remoteId':_0x32db42,'version':_0x2fb49b['version']};if(_0x2e9ea5[_0x279e3c(0x115)]===_0x279e3c(0x11e)){const _0x219096=_0x2e9ea5['alias'],_0x3e76d0=_0x337e82[_0x279e3c(0x126)][_0x279e3c(0x11f)](_0x219096)??_0x3f3aab?.[_0x279e3c(0x10e)]??_0x219096;_0x337e82[_0x279e3c(0x126)][_0x279e3c(0x10a)](_0x219096)?_0x364376[_0x279e3c(0x109)]=_0x219096:_0x364376[_0x279e3c(0x109)]=_0x3f3aab?.[_0x279e3c(0x109)],_0x364376['datasetCode']=_0x3e76d0,_0x364376[_0x279e3c(0x10d)]=_0x2e9ea5[_0x279e3c(0x10d)],_0x364376['functionNode']=_0x2e9ea5[_0x279e3c(0x125)];}_0x4e9503[_0x279e3c(0x108)][_0x2e9ea5[_0x279e3c(0x114)]]=_0x364376;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0xb070bd,_0x182390,_0x93eea9){const _0x28ca79=a38_0x3e0e1c;if(_0x93eea9[_0x28ca79(0x13e)]===0x0)return;for(let _0x1958ec=0x0;_0x1958ec<LOCK_SETTLE_RETRY_COUNT;_0x1958ec+=0x1){const _0x29d456=await readBffLockFile(_0xb070bd),_0x378df3=_0x29d456?.[_0x28ca79(0x14b)]?.[_0x182390]?.[_0x28ca79(0x108)]??{},_0x17c15b=_0x93eea9[_0x28ca79(0x120)](_0x26b62c=>!!_0x378df3[_0x26b62c]?.[_0x28ca79(0x112)]);if(_0x17c15b)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x28ca79(0x12b)+_0x93eea9['join'](',\x20')+'.');}
@@ -1 +1 @@
1
- const a33_0x2ecd58=a33_0x4589;(function(_0x59cab1,_0x3796f7){const _0x518c26=a33_0x4589,_0x20c91f=_0x59cab1();while(!![]){try{const _0x3a731a=-parseInt(_0x518c26(0x166))/0x1+-parseInt(_0x518c26(0x177))/0x2+parseInt(_0x518c26(0x174))/0x3+parseInt(_0x518c26(0x17a))/0x4*(parseInt(_0x518c26(0x165))/0x5)+-parseInt(_0x518c26(0x163))/0x6*(-parseInt(_0x518c26(0x17c))/0x7)+parseInt(_0x518c26(0x173))/0x8+-parseInt(_0x518c26(0x171))/0x9*(parseInt(_0x518c26(0x168))/0xa);if(_0x3a731a===_0x3796f7)break;else _0x20c91f['push'](_0x20c91f['shift']());}catch(_0x54c2f3){_0x20c91f['push'](_0x20c91f['shift']());}}}(a33_0x4b8a,0x285e7));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';function a33_0x4589(_0x5093de,_0x1965f3){_0x5093de=_0x5093de-0x162;const _0x4b8a89=a33_0x4b8a();let _0x4589a5=_0x4b8a89[_0x5093de];return _0x4589a5;}import{loadBffProjectConfig}from'../../core/bff/config.js';function a33_0x4b8a(){const _0x1422b5=['appCode','101043vIKMDH','has','975752nnxiwK','644037QLtlyU','remote','lockKey','84668rUQnQP','length','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','244808izbLAe','lockFilePath','1313333mLDpju','All\x20BFF\x20scripts\x20are\x20in\x20sync.','apiDir','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','status','6BRlGpx','functions','15GGqCnX','174605bXhIQp','alias','290biLeGq','push','read','\x20remote-only','map','all','scriptsRoot','hash'];a33_0x4b8a=function(){return _0x1422b5;};return a33_0x4b8a();}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':'bff','command':'status','description':a33_0x2ecd58(0x179),'risk':a33_0x2ecd58(0x16a),'flags':[{'name':a33_0x2ecd58(0x175),'type':'boolean','description':a33_0x2ecd58(0x17f)}],async 'execute'(_0x56078c){const _0x53ac4f=a33_0x2ecd58,_0x520d71=loadBffProjectConfig(_0x56078c[_0x53ac4f(0x170)]),_0x3ff598=await readBffLockFile(_0x520d71[_0x53ac4f(0x17b)]),{appLock:_0x1571ec}=ensureLockScope(_0x3ff598??createEmptyBffLock(),_0x56078c[_0x53ac4f(0x170)],_0x520d71[_0x53ac4f(0x16e)],_0x53ac4f(0x162)),_0x1db569=await scanLocalBffFunctions(_0x520d71),_0x191c53=[],_0x3a503f=[],_0x299b2b=[];for(const _0x1df491 of _0x1db569){const _0x7bf9f5=await computeFileHash(_0x1df491['filePath']),_0x13cab4=_0x1571ec[_0x53ac4f(0x164)][_0x1df491[_0x53ac4f(0x176)]];if(!_0x13cab4)_0x191c53[_0x53ac4f(0x169)](_0x1df491['lockKey']);else _0x13cab4[_0x53ac4f(0x16f)]!==_0x7bf9f5?_0x3a503f[_0x53ac4f(0x169)](_0x1df491[_0x53ac4f(0x176)]):_0x299b2b[_0x53ac4f(0x169)](_0x1df491[_0x53ac4f(0x176)]);}const _0x15dbae=[];if(_0x56078c['bool']('remote')){const _0x2edf1a=loadAliasMap(_0x56078c[_0x53ac4f(0x17e)],undefined,resolveApiFilePath(_0x56078c[_0x53ac4f(0x17e)],_0x56078c[_0x53ac4f(0x170)])),_0x23711f=new Map(_0x2edf1a['map'](_0x7b78a0=>[_0x7b78a0['datasetCode'],_0x7b78a0[_0x53ac4f(0x167)]])),[_0x38fe73,_0x5d9619]=await Promise[_0x53ac4f(0x16d)]([listBffScripts(_0x56078c[_0x53ac4f(0x170)]),getBffScriptStatistics(_0x56078c[_0x53ac4f(0x170)])]),_0x1846dc=createHookLocationMap(_0x5d9619),_0x323f37=new Set(_0x1db569[_0x53ac4f(0x16c)](_0x215eae=>_0x215eae['lockKey']));for(const _0x5bd54b of _0x38fe73){const _0x7c786=resolveRemoteScriptTarget(_0x520d71,_0x5bd54b,_0x1846dc,_0x1571ec[_0x53ac4f(0x164)],_0x23711f);_0x7c786&&!_0x323f37[_0x53ac4f(0x172)](_0x7c786[_0x53ac4f(0x176)])&&_0x15dbae[_0x53ac4f(0x169)](_0x7c786['lockKey']);}}const _0x5e5875=_0x191c53[_0x53ac4f(0x178)]===0x0&&_0x3a503f[_0x53ac4f(0x178)]===0x0&&_0x15dbae['length']===0x0;return{'ok':!![],'data':{'added':_0x191c53,'modified':_0x3a503f,'unchanged':_0x299b2b,'remoteOnly':_0x15dbae},'message':_0x5e5875?_0x53ac4f(0x17d):_0x191c53['length']+'\x20added,\x20'+_0x3a503f[_0x53ac4f(0x178)]+'\x20modified,\x20'+_0x299b2b[_0x53ac4f(0x178)]+'\x20unchanged'+(_0x15dbae[_0x53ac4f(0x178)]>0x0?',\x20'+_0x15dbae[_0x53ac4f(0x178)]+_0x53ac4f(0x16b):'')};}};
1
+ const a39_0x286d05=a39_0x5e95;(function(_0x3dce9a,_0x224195){const _0x2902b7=a39_0x5e95,_0x343e5b=_0x3dce9a();while(!![]){try{const _0x28731d=-parseInt(_0x2902b7(0x81))/0x1*(-parseInt(_0x2902b7(0x89))/0x2)+-parseInt(_0x2902b7(0x79))/0x3+-parseInt(_0x2902b7(0x7d))/0x4*(parseInt(_0x2902b7(0x8a))/0x5)+-parseInt(_0x2902b7(0x80))/0x6+-parseInt(_0x2902b7(0x86))/0x7*(-parseInt(_0x2902b7(0x7a))/0x8)+-parseInt(_0x2902b7(0x83))/0x9*(-parseInt(_0x2902b7(0x6e))/0xa)+parseInt(_0x2902b7(0x74))/0xb;if(_0x28731d===_0x224195)break;else _0x343e5b['push'](_0x343e5b['shift']());}catch(_0xf2b243){_0x343e5b['push'](_0x343e5b['shift']());}}}(a39_0x3e88,0xca488));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';function a39_0x3e88(){const _0x52a0c2=['829431fYItje','16bjuNtN','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','hash','20244MokprP','lockKey','length','4314120uGdkRx','1uejPft','All\x20BFF\x20scripts\x20are\x20in\x20sync.','153720nSHywD','appCode','boolean','1486870zIvrsN','\x20remote-only','scriptsRoot','650376ZpEarE','880hqCzHr','status','\x20added,\x20','bff','410HXErSj','push','apiDir','bool','remote','all','13909467LOAcgR','has','read','functions','\x20modified,\x20'];a39_0x3e88=function(){return _0x52a0c2;};return a39_0x3e88();}import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';function a39_0x5e95(_0x19989d,_0x370720){_0x19989d=_0x19989d-0x6d;const _0x3e8841=a39_0x3e88();let _0x5e9507=_0x3e8841[_0x19989d];return _0x5e9507;}import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a39_0x286d05(0x6d),'command':a39_0x286d05(0x8b),'description':'Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','risk':a39_0x286d05(0x76),'flags':[{'name':a39_0x286d05(0x72),'type':a39_0x286d05(0x85),'description':a39_0x286d05(0x7b)}],async 'execute'(_0x296c1c){const _0x5982bc=a39_0x286d05,_0x2c1a05=loadBffProjectConfig(_0x296c1c['appCode']),_0x4da53a=await readBffLockFile(_0x2c1a05['lockFilePath']),{appLock:_0x41f732}=ensureLockScope(_0x4da53a??createEmptyBffLock(),_0x296c1c[_0x5982bc(0x84)],_0x2c1a05[_0x5982bc(0x88)],_0x5982bc(0x8b)),_0x280b59=await scanLocalBffFunctions(_0x2c1a05),_0x34e69b=[],_0x5c3410=[],_0xf8ce75=[];for(const _0x114aea of _0x280b59){const _0x14ef85=await computeFileHash(_0x114aea['filePath']),_0x35d917=_0x41f732[_0x5982bc(0x77)][_0x114aea[_0x5982bc(0x7e)]];if(!_0x35d917)_0x34e69b[_0x5982bc(0x6f)](_0x114aea[_0x5982bc(0x7e)]);else _0x35d917[_0x5982bc(0x7c)]!==_0x14ef85?_0x5c3410[_0x5982bc(0x6f)](_0x114aea[_0x5982bc(0x7e)]):_0xf8ce75[_0x5982bc(0x6f)](_0x114aea[_0x5982bc(0x7e)]);}const _0x5fe12a=[];if(_0x296c1c[_0x5982bc(0x71)](_0x5982bc(0x72))){const _0x12f9e3=loadAliasMap(_0x296c1c[_0x5982bc(0x70)],undefined,resolveApiFilePath(_0x296c1c['apiDir'],_0x296c1c[_0x5982bc(0x84)])),_0x3aa0fe=new Map(_0x12f9e3['map'](_0x153763=>[_0x153763['datasetCode'],_0x153763['alias']])),[_0xe57b14,_0xd61885]=await Promise[_0x5982bc(0x73)]([listBffScripts(_0x296c1c['appCode']),getBffScriptStatistics(_0x296c1c[_0x5982bc(0x84)])]),_0x18b5b9=createHookLocationMap(_0xd61885),_0x11e756=new Set(_0x280b59['map'](_0x49be32=>_0x49be32[_0x5982bc(0x7e)]));for(const _0x412a28 of _0xe57b14){const _0x29267a=resolveRemoteScriptTarget(_0x2c1a05,_0x412a28,_0x18b5b9,_0x41f732[_0x5982bc(0x77)],_0x3aa0fe);_0x29267a&&!_0x11e756[_0x5982bc(0x75)](_0x29267a['lockKey'])&&_0x5fe12a[_0x5982bc(0x6f)](_0x29267a['lockKey']);}}const _0x1e1a66=_0x34e69b[_0x5982bc(0x7f)]===0x0&&_0x5c3410[_0x5982bc(0x7f)]===0x0&&_0x5fe12a[_0x5982bc(0x7f)]===0x0;return{'ok':!![],'data':{'added':_0x34e69b,'modified':_0x5c3410,'unchanged':_0xf8ce75,'remoteOnly':_0x5fe12a},'message':_0x1e1a66?_0x5982bc(0x82):_0x34e69b[_0x5982bc(0x7f)]+_0x5982bc(0x8c)+_0x5c3410[_0x5982bc(0x7f)]+_0x5982bc(0x78)+_0xf8ce75['length']+'\x20unchanged'+(_0x5fe12a[_0x5982bc(0x7f)]>0x0?',\x20'+_0x5fe12a[_0x5982bc(0x7f)]+_0x5982bc(0x87):'')};}};
@@ -1 +1 @@
1
- const a34_0x22dff1=a34_0xa753;(function(_0x2746e5,_0x3c12ca){const _0x389568=a34_0xa753,_0x2898b2=_0x2746e5();while(!![]){try{const _0x28a58b=-parseInt(_0x389568(0xb4))/0x1+parseInt(_0x389568(0xa2))/0x2*(parseInt(_0x389568(0xa0))/0x3)+parseInt(_0x389568(0x8f))/0x4*(parseInt(_0x389568(0xa3))/0x5)+parseInt(_0x389568(0xa7))/0x6*(parseInt(_0x389568(0xa9))/0x7)+parseInt(_0x389568(0xca))/0x8+-parseInt(_0x389568(0x8d))/0x9+parseInt(_0x389568(0xa4))/0xa*(-parseInt(_0x389568(0x8b))/0xb);if(_0x28a58b===_0x3c12ca)break;else _0x2898b2['push'](_0x2898b2['shift']());}catch(_0x1f2281){_0x2898b2['push'](_0x2898b2['shift']());}}}(a34_0x1879,0x3d084));import a34_0x170e56 from'chalk';import a34_0x1121bd from'ora';import a34_0x114b20 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';function a34_0xa753(_0x48022a,_0x125619){_0x48022a=_0x48022a-0x7c;const _0x187968=a34_0x1879();let _0xa7531b=_0x187968[_0x48022a];return _0xa7531b;}import{CliErrors}from'../errors.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';function a34_0x1879(){const _0x41f560=['no-skills','valid','warn','\x20\x20Official\x20skill\x20update\x20failed:\x20','npm','execPath','https://registry.npmjs.org/-/package/','Updating\x20via\x20','object','Update\x20available:\x20','slice','90468NXalcW','entries','26dDkWiD','230LRZyDw','184150IAJwVe','Already\x20on\x20requested\x20version\x20(v','bool','234RAzBie','version','10234QakhnH','toLowerCase','succeed','includes','green','fail','\x20install\x20-g\x20','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','yellow','run','map','457629TtyARz','latest','beta','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','pipe','validation','error','str','Updated\x20to\x20v','Skipping\x20official\x20skill\x20package\x20(--no-skills).','Install\x20a\x20specific\x20CLI\x20version','start','Already\x20up\x20to\x20date\x20(v','unknown','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','filter','Requested\x20version:\x20','Beta\x20version:\x20','install','string','log','nonInteractive','3640232dwBoqG','boolean','@latest','info','skills','\x20\x20Run\x20manually:\x20','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','Checking\x20official\x20skill\x20package...','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','bun','\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','inherit','cwd','write','json','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','gray','Version\x20comparison\x20failed','Current\x20version:\x20','\x20→\x20','/dist-tags','33PdJYlj','source','1774755AWUlbH','message','4868VhUgRc','skipped','...','Checking\x20for\x20updates...','Invalid\x20version:\x20','trim'];a34_0x1879=function(){return _0x41f560;};return a34_0x1879();}import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x5780fd=a34_0xa753;return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x5780fd(0x9f)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x4d5a21=a34_0xa753,_0xe8a1ca=process[_0x4d5a21(0x9a)][_0x4d5a21(0xaa)]();if(_0xe8a1ca[_0x4d5a21(0xac)](_0x4d5a21(0x7e)))return _0x4d5a21(0x7e);return _0x4d5a21(0x99);}const updateFlags=[{'name':a34_0x22dff1(0xb6),'type':a34_0x22dff1(0xcb),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':'version','type':a34_0x22dff1(0xc7),'description':a34_0x22dff1(0xbe)},{'name':'no-skills','type':a34_0x22dff1(0xcb),'description':'Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','default':![]},{'name':'skills','type':'boolean','description':'Refresh\x20official\x20skill\x20package\x20after\x20updating','default':!![],'hidden':!![]}];function getRequestedVersion(_0x2befd4){const _0x2c1376=a34_0x22dff1;return _0x2befd4[_0x2c1376(0xbb)](_0x2c1376(0xa8))[_0x2c1376(0x94)]();}function shouldSkipOfficialSkill(_0x411fd1){const _0x401fcb=a34_0x22dff1;return _0x411fd1[_0x401fcb(0xa6)](_0x401fcb(0x95))||_0x411fd1['flag'](_0x401fcb(0xce))===![];}async function validateUpdateFlags(_0xdc9e26){const _0x5eba0a=a34_0x22dff1,_0x138518=_0xdc9e26['bool']('beta'),_0x16006c=getRequestedVersion(_0xdc9e26);if(_0x138518&&_0x16006c)throw CliErrors['validation'](_0x5eba0a(0xc2),_0x5eba0a(0xb0));if(_0x16006c&&!a34_0x114b20['valid'](_0x16006c))throw CliErrors[_0x5eba0a(0xb9)](_0x5eba0a(0x93)+_0x16006c,_0x5eba0a(0xd0));}async function fetchNpmDistTags(){const _0xa8096d=a34_0x22dff1;try{const _0x38c054=await fetch(_0xa8096d(0x9b)+encodeURIComponent(NPM_PACKAGE_NAME)+_0xa8096d(0x8a),{'signal':AbortSignal['timeout'](0x2710)});if(!_0x38c054['ok'])return null;const _0x4f3d26=await _0x38c054[_0xa8096d(0x83)]();if(!_0x4f3d26||typeof _0x4f3d26!==_0xa8096d(0x9d))return null;return Object['fromEntries'](Object[_0xa8096d(0xa1)](_0x4f3d26)[_0xa8096d(0xc3)](([,_0x4c1715])=>typeof _0x4c1715===_0xa8096d(0xc7)&&_0x4c1715['trim']()['length']>0x0)[_0xa8096d(0xb3)](([_0x3cfffa,_0xc894e4])=>[_0x3cfffa,String(_0xc894e4)[_0xa8096d(0x94)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x36a2d2){const _0x4b9ea3=await fetchNpmDistTags();return _0x4b9ea3?.[_0x36a2d2]??null;}async function fetchLatestVersion(){const _0x515f1d=a34_0x22dff1;return fetchNpmDistTagVersion(_0x515f1d(0xb5));}async function resolveTargetVersion(_0xc84a2d){const _0xaf0df6=a34_0x22dff1,_0x5454a7=getRequestedVersion(_0xc84a2d);if(_0x5454a7)return{'version':_0x5454a7,'source':'version'};if(_0xc84a2d[_0xaf0df6(0xa6)]('beta')){const _0x2373bb=await fetchNpmDistTagVersion(_0xaf0df6(0xb6));if(!_0x2373bb)return null;return{'version':_0x2373bb,'source':_0xaf0df6(0xb6)};}const _0x590a4b=await fetchLatestVersion();if(!_0x590a4b)return null;return{'version':_0x590a4b,'source':'latest'};}function shouldInstallTarget(_0x24204f,_0x1c92eb){const _0x30c7fd=a34_0x22dff1;if(_0x1c92eb[_0x30c7fd(0x8c)]==='version'||_0x1c92eb[_0x30c7fd(0x8c)]===_0x30c7fd(0xb6))return!a34_0x114b20['eq'](_0x24204f,_0x1c92eb['version']);return a34_0x114b20['lt'](_0x24204f,_0x1c92eb['version']);}function getInstallPlanLabel(_0x587810,_0x155a79){const _0x5d5bd5=a34_0x22dff1;switch(_0x155a79[_0x5d5bd5(0x8c)]){case _0x5d5bd5(0xb6):return _0x5d5bd5(0xc5)+a34_0x170e56[_0x5d5bd5(0xb1)](_0x587810)+'\x20→\x20'+a34_0x170e56['green'](_0x155a79['version']);case _0x5d5bd5(0xa8):return _0x5d5bd5(0xc4)+a34_0x170e56[_0x5d5bd5(0xb1)](_0x587810)+'\x20→\x20'+a34_0x170e56[_0x5d5bd5(0xad)](_0x155a79[_0x5d5bd5(0xa8)]);case _0x5d5bd5(0xb5):default:return _0x5d5bd5(0x9e)+a34_0x170e56[_0x5d5bd5(0xb1)](_0x587810)+_0x5d5bd5(0x89)+a34_0x170e56[_0x5d5bd5(0xad)](_0x155a79[_0x5d5bd5(0xa8)]);}}async function installOfficialSkill(_0x797538){const _0x4cb183=a34_0x22dff1;console[_0x4cb183(0xc8)](a34_0x170e56['gray'](_0x4cb183(0x7c)));const _0x59f595=runNpxSkillsAddGlobal(process[_0x4cb183(0x81)](),RABETBASE_SKILL_SOURCE,{'stdio':_0x797538?_0x4cb183(0xb8):_0x4cb183(0x80)});if(_0x59f595[_0x4cb183(0x90)]){console[_0x4cb183(0xc8)](a34_0x170e56[_0x4cb183(0x86)](_0x4cb183(0x7f)));return;}if(_0x59f595['ok']){console['log'](a34_0x170e56[_0x4cb183(0x86)](_0x4cb183(0xb7)));return;}console[_0x4cb183(0x97)](a34_0x170e56['yellow'](_0x4cb183(0x98)+(_0x59f595[_0x4cb183(0xba)]||_0x4cb183(0xc1)))),console[_0x4cb183(0xc8)](a34_0x170e56[_0x4cb183(0x86)](_0x4cb183(0xcf)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x188243){const _0x1b99cd=a34_0x22dff1;await validateUpdateFlags(_0x188243);const _0x454a2b=getCurrentVersion();console[_0x1b99cd(0xc8)](_0x1b99cd(0x88)+_0x454a2b);const _0x2cb21b=a34_0x1121bd(_0x1b99cd(0x92))[_0x1b99cd(0xbf)](),_0x132f7a=await resolveTargetVersion(_0x188243);if(!_0x132f7a){const _0x29444f=_0x188243[_0x1b99cd(0xa6)]('beta')?_0x1b99cd(0x7d):'Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)';return _0x2cb21b[_0x1b99cd(0xae)](_0x29444f),console['log'](a34_0x170e56[_0x1b99cd(0x86)]('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x1b99cd(0xcc))),{'ok':![],'message':_0x29444f};}const _0x3d25a6=a34_0x114b20[_0x1b99cd(0x96)](VERSION),_0x591e21=a34_0x114b20['valid'](_0x132f7a['version']);if(!_0x3d25a6||!_0x591e21)return _0x2cb21b['fail'](_0x1b99cd(0x87)),{'ok':![],'message':_0x1b99cd(0x87)};if(!shouldInstallTarget(_0x3d25a6,_0x132f7a)){const _0x2725c8=_0x132f7a[_0x1b99cd(0x8c)]==='version'?_0x1b99cd(0xa5)+_0x132f7a[_0x1b99cd(0xa8)]+')':_0x1b99cd(0xc0)+_0x132f7a['version']+')';return _0x2cb21b['succeed'](_0x2725c8),shouldSkipOfficialSkill(_0x188243)?console[_0x1b99cd(0xc8)](a34_0x170e56[_0x1b99cd(0x86)](_0x1b99cd(0xbd))):await installOfficialSkill(_0x188243[_0x1b99cd(0xc9)]),{'ok':!![]};}_0x2cb21b[_0x1b99cd(0xcd)](getInstallPlanLabel(_0x454a2b,_0x132f7a));const _0x1f459d=detectPackageManager(),_0x438bf9=_0x1f459d===_0x1b99cd(0x99)?resolveNpmBin(_0x1b99cd(0x99)):_0x1f459d,_0x2b71fe=a34_0x1121bd(_0x1b99cd(0x9c)+_0x1f459d+_0x1b99cd(0x91))[_0x1b99cd(0xbf)]();try{return await execa(_0x438bf9,[_0x1b99cd(0xc6),'-g',NPM_PACKAGE_NAME+'@'+_0x132f7a[_0x1b99cd(0xa8)]],{'stdio':'pipe'}),_0x2b71fe[_0x1b99cd(0xab)](_0x1b99cd(0xbc)+_0x132f7a[_0x1b99cd(0xa8)]),console[_0x1b99cd(0xc8)](a34_0x170e56['gray'](_0x1b99cd(0x85))),shouldSkipOfficialSkill(_0x188243)?console[_0x1b99cd(0xc8)](a34_0x170e56['gray']('Skipping\x20official\x20skill\x20package\x20(--no-skills).')):await installOfficialSkill(_0x188243[_0x1b99cd(0xc9)]),{'ok':!![]};}catch(_0x423097){return _0x2b71fe[_0x1b99cd(0xae)]('Update\x20failed'),console[_0x1b99cd(0xba)](a34_0x170e56['red']('\x20\x20'+_0x423097[_0x1b99cd(0x8e)])),console[_0x1b99cd(0xc8)](a34_0x170e56[_0x1b99cd(0x86)]('\x20\x20Try\x20manually:\x20'+_0x1f459d+_0x1b99cd(0xaf)+NPM_PACKAGE_NAME+'@'+_0x132f7a['version'])),{'ok':![],'message':_0x423097[_0x1b99cd(0x8e)]};}}export const updateDefinition={'service':'update','command':a34_0x22dff1(0xb2),'description':a34_0x22dff1(0x84),'risk':a34_0x22dff1(0x82),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a40_0xbf42dd=a40_0x228b;(function(_0x206ae2,_0x18cae8){const _0x4c5efe=a40_0x228b,_0xbf8003=_0x206ae2();while(!![]){try{const _0x3cb834=-parseInt(_0x4c5efe(0x1b7))/0x1*(-parseInt(_0x4c5efe(0x1a3))/0x2)+parseInt(_0x4c5efe(0x194))/0x3+-parseInt(_0x4c5efe(0x184))/0x4*(parseInt(_0x4c5efe(0x1c2))/0x5)+-parseInt(_0x4c5efe(0x190))/0x6*(-parseInt(_0x4c5efe(0x192))/0x7)+parseInt(_0x4c5efe(0x1ca))/0x8*(parseInt(_0x4c5efe(0x17d))/0x9)+parseInt(_0x4c5efe(0x1b4))/0xa+-parseInt(_0x4c5efe(0x195))/0xb;if(_0x3cb834===_0x18cae8)break;else _0xbf8003['push'](_0xbf8003['shift']());}catch(_0x4b391a){_0xbf8003['push'](_0xbf8003['shift']());}}}(a40_0x23f2,0x312b8));import a40_0x4af74f from'chalk';import a40_0x8120f2 from'ora';function a40_0x23f2(){const _0x356d38=['message','pipe','Already\x20up\x20to\x20date\x20(v','936189CzaTAL','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','fail','Install\x20a\x20specific\x20CLI\x20version','validation','slice','gray','1336628qxYdFQ','Invalid\x20version:\x20','info','skills','version','source','fromEntries','latest','log','start','Updating\x20via\x20','warn','1719486lVBVcn','https://registry.npmjs.org/-/package/','7mYaBqL','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','538947hpHSBD','7984119yowNCh','Refresh\x20official\x20skill\x20package\x20after\x20updating','unknown','beta','Already\x20on\x20requested\x20version\x20(v','execPath','Update\x20available:\x20','red','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','\x20\x20Official\x20skill\x20update\x20failed:\x20','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','cwd','Checking\x20for\x20updates...','@latest','19308sDrvxh','green','yellow','Requested\x20version:\x20','Skipping\x20official\x20skill\x20package\x20(--no-skills).','error','flag','toLowerCase','bun','Version\x20comparison\x20failed','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','\x20\x20Try\x20manually:\x20','inherit','str','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','no-skills','includes','3575910sSbDlB','map','string','13fztnBp','trim','Beta\x20version:\x20','...','bool','update','succeed','filter','\x20→\x20','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','\x20install\x20-g\x20','5aKSteA','install','nonInteractive','npm','write','skipped','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','valid','24gXtGMq','/dist-tags','length','boolean'];a40_0x23f2=function(){return _0x356d38;};return a40_0x23f2();}import a40_0x21e5bc 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{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x4b71a6=a40_0x228b;return GIT_COMMIT!=='unknown'?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4b71a6(0x182)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x222c3b=a40_0x228b,_0x4598b0=process[_0x222c3b(0x19a)][_0x222c3b(0x1aa)]();if(_0x4598b0[_0x222c3b(0x1b3)](_0x222c3b(0x1ab)))return _0x222c3b(0x1ab);return _0x222c3b(0x1c5);}const updateFlags=[{'name':a40_0xbf42dd(0x198),'type':a40_0xbf42dd(0x1cd),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':'version','type':'string','description':a40_0xbf42dd(0x180)},{'name':a40_0xbf42dd(0x1b2),'type':a40_0xbf42dd(0x1cd),'description':a40_0xbf42dd(0x17e),'default':![]},{'name':a40_0xbf42dd(0x187),'type':a40_0xbf42dd(0x1cd),'description':a40_0xbf42dd(0x196),'default':!![],'hidden':!![]}];function getRequestedVersion(_0x116b0f){const _0x86e78c=a40_0xbf42dd;return _0x116b0f[_0x86e78c(0x1b0)](_0x86e78c(0x188))[_0x86e78c(0x1b8)]();}function shouldSkipOfficialSkill(_0x63a750){const _0x523f32=a40_0xbf42dd;return _0x63a750[_0x523f32(0x1bb)](_0x523f32(0x1b2))||_0x63a750[_0x523f32(0x1a9)]('skills')===![];}async function validateUpdateFlags(_0x51933c){const _0x5338e3=a40_0xbf42dd,_0x4445da=_0x51933c[_0x5338e3(0x1bb)](_0x5338e3(0x198)),_0x167f80=getRequestedVersion(_0x51933c);if(_0x4445da&&_0x167f80)throw CliErrors[_0x5338e3(0x181)]('--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.',_0x5338e3(0x193));if(_0x167f80&&!a40_0x21e5bc['valid'](_0x167f80))throw CliErrors[_0x5338e3(0x181)](_0x5338e3(0x185)+_0x167f80,_0x5338e3(0x19f));}async function fetchNpmDistTags(){const _0x504f66=a40_0xbf42dd;try{const _0xa79d27=await fetch(_0x504f66(0x191)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x504f66(0x1cb),{'signal':AbortSignal['timeout'](0x2710)});if(!_0xa79d27['ok'])return null;const _0x1eb580=await _0xa79d27['json']();if(!_0x1eb580||typeof _0x1eb580!=='object')return null;return Object[_0x504f66(0x18a)](Object['entries'](_0x1eb580)[_0x504f66(0x1be)](([,_0x17069d])=>typeof _0x17069d===_0x504f66(0x1b6)&&_0x17069d['trim']()[_0x504f66(0x1cc)]>0x0)[_0x504f66(0x1b5)](([_0x3d38a8,_0xd75584])=>[_0x3d38a8,String(_0xd75584)[_0x504f66(0x1b8)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x4b447){const _0x50c0a3=await fetchNpmDistTags();return _0x50c0a3?.[_0x4b447]??null;}async function fetchLatestVersion(){const _0x3f2b42=a40_0xbf42dd;return fetchNpmDistTagVersion(_0x3f2b42(0x18b));}async function resolveTargetVersion(_0x40fb96){const _0x5bdcac=a40_0xbf42dd,_0x3a87eb=getRequestedVersion(_0x40fb96);if(_0x3a87eb)return{'version':_0x3a87eb,'source':_0x5bdcac(0x188)};if(_0x40fb96['bool'](_0x5bdcac(0x198))){const _0x1d3aa7=await fetchNpmDistTagVersion(_0x5bdcac(0x198));if(!_0x1d3aa7)return null;return{'version':_0x1d3aa7,'source':_0x5bdcac(0x198)};}const _0x116c77=await fetchLatestVersion();if(!_0x116c77)return null;return{'version':_0x116c77,'source':_0x5bdcac(0x18b)};}function shouldInstallTarget(_0x45399f,_0x49ef65){const _0x28f23a=a40_0xbf42dd;if(_0x49ef65['source']===_0x28f23a(0x188)||_0x49ef65[_0x28f23a(0x189)]==='beta')return!a40_0x21e5bc['eq'](_0x45399f,_0x49ef65[_0x28f23a(0x188)]);return a40_0x21e5bc['lt'](_0x45399f,_0x49ef65[_0x28f23a(0x188)]);}function getInstallPlanLabel(_0x4c9c89,_0x890a95){const _0x5c23c3=a40_0xbf42dd;switch(_0x890a95[_0x5c23c3(0x189)]){case _0x5c23c3(0x198):return _0x5c23c3(0x1b9)+a40_0x4af74f[_0x5c23c3(0x1a5)](_0x4c9c89)+_0x5c23c3(0x1bf)+a40_0x4af74f['green'](_0x890a95[_0x5c23c3(0x188)]);case _0x5c23c3(0x188):return _0x5c23c3(0x1a6)+a40_0x4af74f['yellow'](_0x4c9c89)+_0x5c23c3(0x1bf)+a40_0x4af74f[_0x5c23c3(0x1a4)](_0x890a95[_0x5c23c3(0x188)]);case _0x5c23c3(0x18b):default:return _0x5c23c3(0x19b)+a40_0x4af74f['yellow'](_0x4c9c89)+'\x20→\x20'+a40_0x4af74f[_0x5c23c3(0x1a4)](_0x890a95[_0x5c23c3(0x188)]);}}async function installOfficialSkill(_0xb1f9fe){const _0x2110c5=a40_0xbf42dd;console[_0x2110c5(0x18c)](a40_0x4af74f[_0x2110c5(0x183)]('Checking\x20official\x20skill\x20package...'));const _0x5e4cc0=runNpxSkillsAddGlobal(process[_0x2110c5(0x1a0)](),RABETBASE_SKILL_SOURCE,{'stdio':_0xb1f9fe?_0x2110c5(0x17b):_0x2110c5(0x1af)});if(_0x5e4cc0[_0x2110c5(0x1c7)]){console['log'](a40_0x4af74f[_0x2110c5(0x183)]('\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).'));return;}if(_0x5e4cc0['ok']){console[_0x2110c5(0x18c)](a40_0x4af74f[_0x2110c5(0x183)](_0x2110c5(0x1b1)));return;}console[_0x2110c5(0x18f)](a40_0x4af74f[_0x2110c5(0x1a5)](_0x2110c5(0x19e)+(_0x5e4cc0[_0x2110c5(0x1a8)]||_0x2110c5(0x197)))),console[_0x2110c5(0x18c)](a40_0x4af74f[_0x2110c5(0x183)]('\x20\x20Run\x20manually:\x20'+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x3dbee5){const _0x3cb930=a40_0xbf42dd;await validateUpdateFlags(_0x3dbee5);const _0x31adfd=getCurrentVersion();console['log']('Current\x20version:\x20'+_0x31adfd);const _0x58a9b2=a40_0x8120f2(_0x3cb930(0x1a1))['start'](),_0xd98fe0=await resolveTargetVersion(_0x3dbee5);if(!_0xd98fe0){const _0x62dea5=_0x3dbee5[_0x3cb930(0x1bb)](_0x3cb930(0x198))?_0x3cb930(0x1c8):_0x3cb930(0x1c0);return _0x58a9b2[_0x3cb930(0x17f)](_0x62dea5),console[_0x3cb930(0x18c)](a40_0x4af74f['gray']('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0x3cb930(0x1a2))),{'ok':![],'message':_0x62dea5};}const _0x618a9c=a40_0x21e5bc['valid'](VERSION),_0x53fa4b=a40_0x21e5bc[_0x3cb930(0x1c9)](_0xd98fe0['version']);if(!_0x618a9c||!_0x53fa4b)return _0x58a9b2[_0x3cb930(0x17f)]('Version\x20comparison\x20failed'),{'ok':![],'message':_0x3cb930(0x1ac)};if(!shouldInstallTarget(_0x618a9c,_0xd98fe0)){const _0x4a8071=_0xd98fe0['source']===_0x3cb930(0x188)?_0x3cb930(0x199)+_0xd98fe0[_0x3cb930(0x188)]+')':_0x3cb930(0x17c)+_0xd98fe0[_0x3cb930(0x188)]+')';return _0x58a9b2['succeed'](_0x4a8071),shouldSkipOfficialSkill(_0x3dbee5)?console[_0x3cb930(0x18c)](a40_0x4af74f[_0x3cb930(0x183)](_0x3cb930(0x1a7))):await installOfficialSkill(_0x3dbee5[_0x3cb930(0x1c4)]),{'ok':!![]};}_0x58a9b2[_0x3cb930(0x186)](getInstallPlanLabel(_0x31adfd,_0xd98fe0));const _0x2c5655=detectPackageManager(),_0x56649e=_0x2c5655===_0x3cb930(0x1c5)?resolveNpmBin('npm'):_0x2c5655,_0x5ccc8f=a40_0x8120f2(_0x3cb930(0x18e)+_0x2c5655+_0x3cb930(0x1ba))[_0x3cb930(0x18d)]();try{return await execa(_0x56649e,[_0x3cb930(0x1c3),'-g',NPM_PACKAGE_NAME+'@'+_0xd98fe0[_0x3cb930(0x188)]],{'stdio':_0x3cb930(0x17b)}),_0x5ccc8f[_0x3cb930(0x1bd)]('Updated\x20to\x20v'+_0xd98fe0['version']),console[_0x3cb930(0x18c)](a40_0x4af74f['gray'](_0x3cb930(0x1ad))),shouldSkipOfficialSkill(_0x3dbee5)?console[_0x3cb930(0x18c)](a40_0x4af74f[_0x3cb930(0x183)]('Skipping\x20official\x20skill\x20package\x20(--no-skills).')):await installOfficialSkill(_0x3dbee5['nonInteractive']),{'ok':!![]};}catch(_0x20a7b4){return _0x5ccc8f[_0x3cb930(0x17f)]('Update\x20failed'),console[_0x3cb930(0x1a8)](a40_0x4af74f[_0x3cb930(0x19c)]('\x20\x20'+_0x20a7b4[_0x3cb930(0x17a)])),console[_0x3cb930(0x18c)](a40_0x4af74f[_0x3cb930(0x183)](_0x3cb930(0x1ae)+_0x2c5655+_0x3cb930(0x1c1)+NPM_PACKAGE_NAME+'@'+_0xd98fe0[_0x3cb930(0x188)])),{'ok':![],'message':_0x20a7b4[_0x3cb930(0x17a)]};}}function a40_0x228b(_0x78285e,_0x2c47c6){_0x78285e=_0x78285e-0x17a;const _0x23f291=a40_0x23f2();let _0x228b40=_0x23f291[_0x78285e];return _0x228b40;}export const updateDefinition={'service':a40_0xbf42dd(0x1bc),'command':'run','description':a40_0xbf42dd(0x19d),'risk':a40_0xbf42dd(0x1c6),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- (function(_0x155b17,_0x331ea9){const _0xd563f2=a35_0xbcd7,_0x580c8b=_0x155b17();while(!![]){try{const _0xb1e682=parseInt(_0xd563f2(0xfc))/0x1+-parseInt(_0xd563f2(0xfe))/0x2+parseInt(_0xd563f2(0xfa))/0x3*(-parseInt(_0xd563f2(0xfb))/0x4)+parseInt(_0xd563f2(0xf7))/0x5+parseInt(_0xd563f2(0xf8))/0x6+-parseInt(_0xd563f2(0xf6))/0x7*(-parseInt(_0xd563f2(0xf9))/0x8)+-parseInt(_0xd563f2(0xfd))/0x9;if(_0xb1e682===_0x331ea9)break;else _0x580c8b['push'](_0x580c8b['shift']());}catch(_0x3637a8){_0x580c8b['push'](_0x580c8b['shift']());}}}(a35_0x5739,0xaa833));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];function a35_0xbcd7(_0x59aff6,_0x597b8c){_0x59aff6=_0x59aff6-0xf6;const _0x573954=a35_0x5739();let _0xbcd798=_0x573954[_0x59aff6];return _0xbcd798;}function a35_0x5739(){const _0x2294f5=['393614PQCbzb','7560783WmvBzz','2302360DzSRFF','7454937FZmHVp','1946595ODZMYs','6269250sxBaki','8lmvkMT','69hMmjOn','35324IUJJRo'];a35_0x5739=function(){return _0x2294f5;};return a35_0x5739();}
1
+ function a41_0x2c05(_0xb1b977,_0x5131a3){_0xb1b977=_0xb1b977-0x101;const _0xba7a79=a41_0xba7a();let _0x2c05aa=_0xba7a79[_0xb1b977];return _0x2c05aa;}function a41_0xba7a(){const _0x89701b=['9149365MmNfcr','1itaNFa','6287184fBDxNX','2930938RgDgPc','47290LdjYJs','2466LLcBLc','5158581KzKocj','6kIXPEI','13396971WhhhpL','1616uDlYbR'];a41_0xba7a=function(){return _0x89701b;};return a41_0xba7a();}(function(_0x41195a,_0x145bad){const _0x5c4f3d=a41_0x2c05,_0x338efa=_0x41195a();while(!![]){try{const _0x21e352=parseInt(_0x5c4f3d(0x103))/0x1*(parseInt(_0x5c4f3d(0x105))/0x2)+parseInt(_0x5c4f3d(0x108))/0x3+parseInt(_0x5c4f3d(0x104))/0x4+-parseInt(_0x5c4f3d(0x102))/0x5+parseInt(_0x5c4f3d(0x109))/0x6*(-parseInt(_0x5c4f3d(0x10a))/0x7)+parseInt(_0x5c4f3d(0x101))/0x8*(-parseInt(_0x5c4f3d(0x107))/0x9)+parseInt(_0x5c4f3d(0x106))/0xa;if(_0x21e352===_0x145bad)break;else _0x338efa['push'](_0x338efa['shift']());}catch(_0xa4aa64){_0x338efa['push'](_0x338efa['shift']());}}}(a41_0xba7a,0xeaf8f));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a36_0x168a75=a36_0x5ef6;(function(_0x2501de,_0x45dbcb){const _0x108cc1=a36_0x5ef6,_0x1b6301=_0x2501de();while(!![]){try{const _0x52d2aa=-parseInt(_0x108cc1(0x16d))/0x1*(parseInt(_0x108cc1(0x16f))/0x2)+parseInt(_0x108cc1(0x171))/0x3*(parseInt(_0x108cc1(0x174))/0x4)+-parseInt(_0x108cc1(0x168))/0x5*(-parseInt(_0x108cc1(0x17c))/0x6)+parseInt(_0x108cc1(0x178))/0x7+parseInt(_0x108cc1(0x177))/0x8*(-parseInt(_0x108cc1(0x16a))/0x9)+parseInt(_0x108cc1(0x179))/0xa+-parseInt(_0x108cc1(0x181))/0xb;if(_0x52d2aa===_0x45dbcb)break;else _0x1b6301['push'](_0x1b6301['shift']());}catch(_0x483e0c){_0x1b6301['push'](_0x1b6301['shift']());}}}(a36_0xd744,0x20950));function a36_0x5ef6(_0x3d1bb1,_0x58d844){_0x3d1bb1=_0x3d1bb1-0x167;const _0xd744fb=a36_0xd744();let _0x5ef690=_0xd744fb[_0x3d1bb1];return _0x5ef690;}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a36_0xd744(){const _0x3c3cae=['name','220209tqNNpc','boolean','5ZZDfXG','skip-imports','851517FLgIcD','string','alias','2XJsTze','sdk','138218mwuqdl','operation','54IEbgFh','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','read','38904gUIBBD','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','Omit\x20import\x20statements\x20from\x20generated\x20code','8AyMTVl','42434OAAFxV','1057850lCbZLq','code','codegen','596346rhCjwo','tableName','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','str'];a36_0xd744=function(){return _0x3c3cae;};return a36_0xd744();}import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a36_0x168a75(0x17b),'command':a36_0x168a75(0x16e),'description':a36_0x168a75(0x175),'risk':a36_0x168a75(0x173),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x168a75(0x16c),'type':a36_0x168a75(0x16b),'description':a36_0x168a75(0x172)},{'name':a36_0x168a75(0x170),'type':'string','required':!![],'description':a36_0x168a75(0x17e)},{'name':a36_0x168a75(0x169),'type':a36_0x168a75(0x167),'description':a36_0x168a75(0x176)}],async 'execute'(_0x3f11ac){const _0x1f44f1=a36_0x168a75,{dataset:_0x1b269d,operation:_0x53f381}=await getOperationDetail(_0x3f11ac['appCode'],_0x3f11ac['str'](_0x1f44f1(0x17a)),_0x3f11ac[_0x1f44f1(0x17f)](_0x1f44f1(0x170))),_0x46f411=generateSdkCode(_0x1b269d,_0x53f381,{'includeImports':!_0x3f11ac['bool']('skip-imports')});return{'ok':!![],'data':{'dataset':{'name':_0x1b269d[_0x1f44f1(0x180)],'code':_0x1b269d['code'],'tableName':_0x1b269d[_0x1f44f1(0x17d)]},'operation':_0x3f11ac[_0x1f44f1(0x17f)](_0x1f44f1(0x170)),'code':_0x46f411}};}};
1
+ const a42_0x2a4d00=a42_0xeff9;function a42_0x1f6b(){const _0xd91ae7=['6GwPaYk','1598580meRpvI','1318864ZKnzta','1060780ikVqTS','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','sdk','alias','operation','17842AXAPUM','10cgSvAe','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','code','bool','read','codegen','564357GiBmto','boolean','4PQlBcn','str','4176689uckoJq','832050qnCuMv','skip-imports','6aRQwBC'];a42_0x1f6b=function(){return _0xd91ae7;};return a42_0x1f6b();}(function(_0x4f804d,_0x2715f8){const _0x337662=a42_0xeff9,_0x239691=_0x4f804d();while(!![]){try{const _0x545e60=-parseInt(_0x337662(0x81))/0x1*(parseInt(_0x337662(0x89))/0x2)+-parseInt(_0x337662(0x79))/0x3*(parseInt(_0x337662(0x7b))/0x4)+-parseInt(_0x337662(0x7e))/0x5+-parseInt(_0x337662(0x80))/0x6*(-parseInt(_0x337662(0x84))/0x7)+parseInt(_0x337662(0x83))/0x8+-parseInt(_0x337662(0x82))/0x9+parseInt(_0x337662(0x8a))/0xa*(parseInt(_0x337662(0x7d))/0xb);if(_0x545e60===_0x2715f8)break;else _0x239691['push'](_0x239691['shift']());}catch(_0x1a4b4b){_0x239691['push'](_0x239691['shift']());}}}(a42_0x1f6b,0x1af56));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a42_0xeff9(_0x635d54,_0x5ba15c){_0x635d54=_0x635d54-0x75;const _0x1f6bca=a42_0x1f6b();let _0xeff911=_0x1f6bca[_0x635d54];return _0xeff911;}export const codegenSdk={'service':a42_0x2a4d00(0x78),'command':a42_0x2a4d00(0x86),'description':a42_0x2a4d00(0x8b),'risk':a42_0x2a4d00(0x77),'flags':[CODE_FLAG_OPTIONAL,{'name':a42_0x2a4d00(0x87),'type':'string','description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':'operation','type':'string','required':!![],'description':a42_0x2a4d00(0x85)},{'name':'skip-imports','type':a42_0x2a4d00(0x7a),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x5cbfef){const _0x43920f=a42_0x2a4d00,{dataset:_0x595e71,operation:_0x50a74b}=await getOperationDetail(_0x5cbfef['appCode'],_0x5cbfef[_0x43920f(0x7c)](_0x43920f(0x75)),_0x5cbfef[_0x43920f(0x7c)](_0x43920f(0x88))),_0x5def05=generateSdkCode(_0x595e71,_0x50a74b,{'includeImports':!_0x5cbfef[_0x43920f(0x76)](_0x43920f(0x7f))});return{'ok':!![],'data':{'dataset':{'name':_0x595e71['name'],'code':_0x595e71['code'],'tableName':_0x595e71['tableName']},'operation':_0x5cbfef['str']('operation'),'code':_0x5def05}};}};
@@ -1 +1 @@
1
- function a37_0x59e2(_0x3f0b14,_0x1f1a2f){_0x3f0b14=_0x3f0b14-0x1b8;const _0x12a3c1=a37_0x12a3();let _0x59e233=_0x12a3c1[_0x3f0b14];return _0x59e233;}const a37_0x269aff=a37_0x59e2;(function(_0x407f4b,_0x77927d){const _0x364945=a37_0x59e2,_0x3d135a=_0x407f4b();while(!![]){try{const _0x86036=parseInt(_0x364945(0x1be))/0x1*(parseInt(_0x364945(0x1c3))/0x2)+parseInt(_0x364945(0x1d0))/0x3+parseInt(_0x364945(0x1c5))/0x4*(parseInt(_0x364945(0x1cc))/0x5)+-parseInt(_0x364945(0x1c7))/0x6+-parseInt(_0x364945(0x1bd))/0x7*(parseInt(_0x364945(0x1c6))/0x8)+parseInt(_0x364945(0x1b8))/0x9*(-parseInt(_0x364945(0x1c0))/0xa)+parseInt(_0x364945(0x1bc))/0xb*(parseInt(_0x364945(0x1ba))/0xc);if(_0x86036===_0x77927d)break;else _0x3d135a['push'](_0x3d135a['shift']());}catch(_0x9cc6b6){_0x3d135a['push'](_0x3d135a['shift']());}}}(a37_0x12a3,0xdd2fe));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a37_0x12a3(){const _0x4df904=['29mPnkUi','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','10wjrbSa','target','Omit\x20import\x20statements\x20from\x20generated\x20code','11164xhcdAD','boolean','848816rDcaWM','88rOpnln','485682YjMzfK','codegen','read','str','bff','5RwRKaY','bool','sdk','no-imports','2852076LyogHD','sqlName','1765431QGHaJh','sql','24SStxWX','appCode','8102974UHEBGg','1027698HjTENZ'];a37_0x12a3=function(){return _0x4df904;};return a37_0x12a3();}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x269aff(0x1c8),'command':a37_0x269aff(0x1b9),'description':a37_0x269aff(0x1bf),'risk':a37_0x269aff(0x1c9),'flags':[SQLCODE_FLAG,{'name':a37_0x269aff(0x1c1),'type':'string','description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':'sdk','enum':[a37_0x269aff(0x1ce),a37_0x269aff(0x1cb)]},{'name':a37_0x269aff(0x1cf),'type':a37_0x269aff(0x1c4),'description':a37_0x269aff(0x1c2)}],async 'execute'(_0x49885b){const _0x514780=a37_0x269aff,_0x51cfe7=await getSqlQueryInfo(_0x49885b[_0x514780(0x1bb)],_0x49885b[_0x514780(0x1ca)]('sqlcode')),_0x24d25a=_0x49885b[_0x514780(0x1ca)]('target')||_0x514780(0x1ce),_0x481b8c=generateSqlCodeTemplate(_0x51cfe7,{'target':_0x24d25a,'includeImports':!_0x49885b[_0x514780(0x1cd)](_0x514780(0x1cf))});return{'ok':!![],'data':{'sqlCode':_0x51cfe7['sqlCode'],'sqlName':_0x51cfe7[_0x514780(0x1d1)],'target':_0x24d25a,'code':_0x481b8c}};}};
1
+ const a43_0x5e8b60=a43_0x36ec;(function(_0x1ee56b,_0x540ee5){const _0x254588=a43_0x36ec,_0x286d0c=_0x1ee56b();while(!![]){try{const _0x3d270a=parseInt(_0x254588(0x14b))/0x1*(-parseInt(_0x254588(0x149))/0x2)+-parseInt(_0x254588(0x135))/0x3*(-parseInt(_0x254588(0x148))/0x4)+-parseInt(_0x254588(0x13a))/0x5*(-parseInt(_0x254588(0x138))/0x6)+parseInt(_0x254588(0x146))/0x7*(-parseInt(_0x254588(0x13e))/0x8)+-parseInt(_0x254588(0x136))/0x9+-parseInt(_0x254588(0x13c))/0xa*(parseInt(_0x254588(0x137))/0xb)+-parseInt(_0x254588(0x141))/0xc*(-parseInt(_0x254588(0x14e))/0xd);if(_0x3d270a===_0x540ee5)break;else _0x286d0c['push'](_0x286d0c['shift']());}catch(_0x3add16){_0x286d0c['push'](_0x286d0c['shift']());}}}(a43_0x1012,0x27240));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a43_0x36ec(_0x2faa98,_0x4bdfa6){_0x2faa98=_0x2faa98-0x135;const _0x1012c5=a43_0x1012();let _0x36ec80=_0x1012c5[_0x2faa98];return _0x36ec80;}import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a43_0x1012(){const _0x364508=['498854FUYgAO','no-imports','1XJTrri','appCode','sqlName','112138GbnsdB','3HprDSB','929709VFVpvn','208857uifxli','877146Vpuaxa','read','5yBXaUL','bool','40MuAllv','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','2536DhTbaf','codegen','string','780WizNhZ','Omit\x20import\x20statements\x20from\x20generated\x20code','sdk','sqlcode','str','3388jzNNjn','boolean','142172gdKHdN'];a43_0x1012=function(){return _0x364508;};return a43_0x1012();}export const codegenSql={'service':a43_0x5e8b60(0x13f),'command':'sql','description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':a43_0x5e8b60(0x139),'flags':[SQLCODE_FLAG,{'name':'target','type':a43_0x5e8b60(0x140),'description':a43_0x5e8b60(0x13d),'default':a43_0x5e8b60(0x143),'enum':[a43_0x5e8b60(0x143),'bff']},{'name':a43_0x5e8b60(0x14a),'type':a43_0x5e8b60(0x147),'description':a43_0x5e8b60(0x142)}],async 'execute'(_0x4b8c6b){const _0x3fd884=a43_0x5e8b60,_0x2aab5c=await getSqlQueryInfo(_0x4b8c6b[_0x3fd884(0x14c)],_0x4b8c6b[_0x3fd884(0x145)](_0x3fd884(0x144))),_0x1240e8=_0x4b8c6b[_0x3fd884(0x145)]('target')||_0x3fd884(0x143),_0x4050ce=generateSqlCodeTemplate(_0x2aab5c,{'target':_0x1240e8,'includeImports':!_0x4b8c6b[_0x3fd884(0x13b)](_0x3fd884(0x14a))});return{'ok':!![],'data':{'sqlCode':_0x2aab5c['sqlCode'],'sqlName':_0x2aab5c[_0x3fd884(0x14d)],'target':_0x1240e8,'code':_0x4050ce}};}};
@@ -1 +1 @@
1
- (function(_0xb0b6d8,_0x335f64){const _0x2b86df=a38_0x1392,_0x543f98=_0xb0b6d8();while(!![]){try{const _0x3e6f5c=parseInt(_0x2b86df(0x1c7))/0x1+-parseInt(_0x2b86df(0x1d5))/0x2*(-parseInt(_0x2b86df(0x1b5))/0x3)+-parseInt(_0x2b86df(0x1c0))/0x4*(parseInt(_0x2b86df(0x1c9))/0x5)+parseInt(_0x2b86df(0x1ce))/0x6+parseInt(_0x2b86df(0x1c8))/0x7+-parseInt(_0x2b86df(0x1c4))/0x8*(parseInt(_0x2b86df(0x1b7))/0x9)+parseInt(_0x2b86df(0x1bf))/0xa;if(_0x3e6f5c===_0x335f64)break;else _0x543f98['push'](_0x543f98['shift']());}catch(_0x372479){_0x543f98['push'](_0x543f98['shift']());}}}(a38_0x125f,0x9a3a1));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x19a6b2 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x4dfca3=a38_0x1392,_0x2039ac=await input({'message':'请输入\x20App\x20Code:','validate':_0x3b6a55=>{const _0xcb8b44=a38_0x1392,_0x1c3de7=validateAppcode(_0x3b6a55[_0xcb8b44(0x1be)]());return _0x1c3de7['valid']||_0x1c3de7[_0xcb8b44(0x1cb)]||_0xcb8b44(0x1bd);}});return _0x2039ac[_0x4dfca3(0x1be)]();}export async function promptAppSelection(_0x1100e9){const _0x3b601e=a38_0x1392,_0xa6a44=[{'name':a38_0x19a6b2['yellow'](_0x3b601e(0x1b6)),'value':-0x1},..._0x1100e9[_0x3b601e(0x1bc)]((_0x29b274,_0xe090d)=>({'name':_0x29b274[_0x3b601e(0x1ca)]+'\x20\x20'+a38_0x19a6b2['gray']('('+_0x29b274[_0x3b601e(0x1b9)]+')'),'value':_0xe090d}))],_0x4fecb7=await checkbox({'message':'获取到\x20'+a38_0x19a6b2[_0x3b601e(0x1d2)](_0x1100e9[_0x3b601e(0x1cc)])+'\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','choices':_0xa6a44,'loop':![]});if(_0x4fecb7['includes'](-0x1))return _0x3b601e(0x1cd);if(_0x4fecb7[_0x3b601e(0x1cc)]===0x0)return'custom';return _0x4fecb7['map'](_0x10cda3=>_0x1100e9[_0x10cda3]);}function a38_0x125f(){const _0x892822=['find','无法获取远程应用列表,请手动输入。','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','cyan','\x0a未找到可用应用。','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','32942oyeSBs','(跳过,稍后配置)','51RNnaKS','✎\x20自定义输入\x20appcode','580023uRCwZR','gray','appCode','App\x20Code:','请选择要绑定的应用:','map','Invalid\x20App\x20Code','trim','9336590MjZwdG','237284CoHaeE','正在获取可用应用列表...','skip','未找到可用应用。','152VYCQmB','\x20\x20(','yellow','3190bHALGB','2906470sLJIlp','25BlaLhN','appName','message','length','custom','3124470xknqBF'];a38_0x125f=function(){return _0x892822;};return a38_0x125f();}export async function promptSingleAppSelection(_0x4212d5){const _0x27c2a8=a38_0x1392,_0x21c3a1=[{'name':a38_0x19a6b2[_0x27c2a8(0x1b8)](_0x27c2a8(0x1d1)),'value':_0x27c2a8(0x1c2)},{'name':a38_0x19a6b2['yellow'](_0x27c2a8(0x1b6)),'value':_0x27c2a8(0x1cd)},..._0x4212d5[_0x27c2a8(0x1bc)](_0x3e9fa8=>({'name':_0x3e9fa8[_0x27c2a8(0x1ca)]+'\x20\x20'+a38_0x19a6b2[_0x27c2a8(0x1b8)]('('+_0x3e9fa8[_0x27c2a8(0x1b9)]+')'),'value':_0x3e9fa8[_0x27c2a8(0x1b9)]}))],_0x398e3c=await select({'message':_0x27c2a8(0x1bb),'choices':_0x21c3a1});if(_0x398e3c===_0x27c2a8(0x1c2))return'skip';if(_0x398e3c===_0x27c2a8(0x1cd))return _0x27c2a8(0x1cd);return _0x4212d5[_0x27c2a8(0x1cf)](_0x4496fe=>_0x4496fe[_0x27c2a8(0x1b9)]===_0x398e3c);}export async function selectSingleAppcode(_0x56ab22){const _0x78a672=a38_0x1392;if(!_0x56ab22)return writeCliSideChannelLine(a38_0x19a6b2[_0x78a672(0x1b8)](_0x78a672(0x1d4))),_fallbackOrSkip();writeCliSideChannelLine('正在获取可用应用列表...');let _0x13273c;try{_0x13273c=await withActiveCookie(_0x56ab22,()=>listRemoteApps());}catch(_0x38f988){writeCliSideChannelLine(a38_0x19a6b2[_0x78a672(0x1c6)](_0x78a672(0x1d0)));if(_0x38f988 instanceof Error)writeCliSideChannelLine(a38_0x19a6b2[_0x78a672(0x1b8)](_0x78a672(0x1c5)+_0x38f988['message']+')'));return _fallbackOrSkip();}if(_0x13273c[_0x78a672(0x1cc)]===0x0)return writeCliSideChannelLine(a38_0x19a6b2['yellow'](_0x78a672(0x1c3))),_fallbackOrSkip();const _0x531b24=await promptSingleAppSelection(_0x13273c);if(_0x531b24==='skip')return'';if(_0x531b24===_0x78a672(0x1cd))return promptCustomAppcode();return _0x531b24[_0x78a672(0x1b9)];}function a38_0x1392(_0x1de3b9,_0x3a7db8){_0x1de3b9=_0x1de3b9-0x1b5;const _0x125f53=a38_0x125f();let _0x1392f7=_0x125f53[_0x1de3b9];return _0x1392f7;}export async function selectMultipleApps(_0x2d25d7){const _0x3f6e83=a38_0x1392;writeCliSideChannelLine(_0x3f6e83(0x1c1));let _0x4b9522;try{_0x4b9522=await withActiveCookie(_0x2d25d7,()=>listRemoteApps());}catch(_0x311fab){writeCliSideChannelLine('\x0a无法获取远程应用列表,请手动输入。');if(_0x311fab instanceof Error)writeCliSideChannelLine(_0x3f6e83(0x1c5)+_0x311fab['message']+')');return _0x3f6e83(0x1cd);}if(_0x4b9522['length']===0x0)return writeCliSideChannelLine(_0x3f6e83(0x1d3)),_0x3f6e83(0x1cd);return promptAppSelection(_0x4b9522);}async function _fallbackOrSkip(){const _0x389876=a38_0x1392,_0x1095f0=await select({'message':_0x389876(0x1ba),'choices':[{'name':a38_0x19a6b2[_0x389876(0x1b8)](_0x389876(0x1d6)),'value':'skip'},{'name':a38_0x19a6b2[_0x389876(0x1c6)]('✎\x20手动输入'),'value':'manual'}]});if(_0x1095f0==='skip')return'';return promptCustomAppcode();}
1
+ (function(_0x2fcf70,_0x541ba4){const _0x5f2a0e=a44_0x3f5e,_0x3ba5a7=_0x2fcf70();while(!![]){try{const _0x46ed28=-parseInt(_0x5f2a0e(0xd8))/0x1*(-parseInt(_0x5f2a0e(0xbc))/0x2)+parseInt(_0x5f2a0e(0xc6))/0x3+-parseInt(_0x5f2a0e(0xdc))/0x4+parseInt(_0x5f2a0e(0xbf))/0x5*(-parseInt(_0x5f2a0e(0xc4))/0x6)+-parseInt(_0x5f2a0e(0xe1))/0x7*(-parseInt(_0x5f2a0e(0xde))/0x8)+-parseInt(_0x5f2a0e(0xd0))/0x9+-parseInt(_0x5f2a0e(0xc3))/0xa;if(_0x46ed28===_0x541ba4)break;else _0x3ba5a7['push'](_0x3ba5a7['shift']());}catch(_0x1fcb0c){_0x3ba5a7['push'](_0x3ba5a7['shift']());}}}(a44_0x2340,0xb18be));import{input,checkbox,select}from'@inquirer/prompts';import a44_0x139125 from'chalk';function a44_0x2340(){const _0x40da3d=['appName','3271170JokUot','210NZMqCp','gray','1350753VETdNV','map','✎\x20自定义输入\x20appcode','请输入\x20App\x20Code:','trim','yellow','length','获取到\x20','skip','includes','2418372aNwbWI','\x0a未找到可用应用。','Invalid\x20App\x20Code','✎\x20手动输入','未找到可用应用。','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','valid','cyan','70418lfNTyb','appCode','find','正在获取可用应用列表...','262684HIywji','无法获取远程应用列表,请手动输入。','8Yythiw','\x0a无法获取远程应用列表,请手动输入。','(跳过,稍后配置)','2191819fABuwj','22dyQHRL','App\x20Code:','custom','21320rIEAaK','\x20\x20(','message'];a44_0x2340=function(){return _0x40da3d;};return a44_0x2340();}import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a44_0x3f5e(_0x25921d,_0x1ea10d){_0x25921d=_0x25921d-0xbc;const _0x2340f1=a44_0x2340();let _0x3f5e4d=_0x2340f1[_0x25921d];return _0x3f5e4d;}export async function promptCustomAppcode(){const _0x22892b=a44_0x3f5e,_0x3ca290=await input({'message':_0x22892b(0xc9),'validate':_0x18a7a4=>{const _0x1b4c21=_0x22892b,_0x49f10d=validateAppcode(_0x18a7a4['trim']());return _0x49f10d[_0x1b4c21(0xd6)]||_0x49f10d[_0x1b4c21(0xc1)]||_0x1b4c21(0xd2);}});return _0x3ca290[_0x22892b(0xca)]();}export async function promptAppSelection(_0x4565e7){const _0x46cbc3=a44_0x3f5e,_0x25b074=[{'name':a44_0x139125[_0x46cbc3(0xcb)](_0x46cbc3(0xc8)),'value':-0x1},..._0x4565e7[_0x46cbc3(0xc7)]((_0x93749d,_0x12cb41)=>({'name':_0x93749d[_0x46cbc3(0xc2)]+'\x20\x20'+a44_0x139125['gray']('('+_0x93749d[_0x46cbc3(0xd9)]+')'),'value':_0x12cb41}))],_0x3ba3aa=await checkbox({'message':_0x46cbc3(0xcd)+a44_0x139125[_0x46cbc3(0xd7)](_0x4565e7[_0x46cbc3(0xcc)])+_0x46cbc3(0xd5),'choices':_0x25b074,'loop':![]});if(_0x3ba3aa[_0x46cbc3(0xcf)](-0x1))return _0x46cbc3(0xbe);if(_0x3ba3aa['length']===0x0)return _0x46cbc3(0xbe);return _0x3ba3aa[_0x46cbc3(0xc7)](_0x1bc4ec=>_0x4565e7[_0x1bc4ec]);}export async function promptSingleAppSelection(_0x394cd9){const _0x8dd958=a44_0x3f5e,_0x490f4f=[{'name':a44_0x139125[_0x8dd958(0xc5)]('(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)'),'value':_0x8dd958(0xce)},{'name':a44_0x139125[_0x8dd958(0xcb)](_0x8dd958(0xc8)),'value':'custom'},..._0x394cd9[_0x8dd958(0xc7)](_0x560579=>({'name':_0x560579[_0x8dd958(0xc2)]+'\x20\x20'+a44_0x139125[_0x8dd958(0xc5)]('('+_0x560579[_0x8dd958(0xd9)]+')'),'value':_0x560579['appCode']}))],_0x44137a=await select({'message':'请选择要绑定的应用:','choices':_0x490f4f});if(_0x44137a===_0x8dd958(0xce))return _0x8dd958(0xce);if(_0x44137a===_0x8dd958(0xbe))return'custom';return _0x394cd9[_0x8dd958(0xda)](_0x24f71a=>_0x24f71a['appCode']===_0x44137a);}export async function selectSingleAppcode(_0x460f41){const _0x4aded4=a44_0x3f5e;if(!_0x460f41)return writeCliSideChannelLine(a44_0x139125[_0x4aded4(0xc5)]('(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)')),_fallbackOrSkip();writeCliSideChannelLine(_0x4aded4(0xdb));let _0x53f799;try{_0x53f799=await withActiveCookie(_0x460f41,()=>listRemoteApps());}catch(_0x36bb71){writeCliSideChannelLine(a44_0x139125['yellow'](_0x4aded4(0xdd)));if(_0x36bb71 instanceof Error)writeCliSideChannelLine(a44_0x139125['gray'](_0x4aded4(0xc0)+_0x36bb71[_0x4aded4(0xc1)]+')'));return _fallbackOrSkip();}if(_0x53f799[_0x4aded4(0xcc)]===0x0)return writeCliSideChannelLine(a44_0x139125[_0x4aded4(0xcb)](_0x4aded4(0xd4))),_fallbackOrSkip();const _0x40b435=await promptSingleAppSelection(_0x53f799);if(_0x40b435==='skip')return'';if(_0x40b435==='custom')return promptCustomAppcode();return _0x40b435['appCode'];}export async function selectMultipleApps(_0x4810d4){const _0x567375=a44_0x3f5e;writeCliSideChannelLine(_0x567375(0xdb));let _0x2ef027;try{_0x2ef027=await withActiveCookie(_0x4810d4,()=>listRemoteApps());}catch(_0x5021df){writeCliSideChannelLine(_0x567375(0xdf));if(_0x5021df instanceof Error)writeCliSideChannelLine(_0x567375(0xc0)+_0x5021df[_0x567375(0xc1)]+')');return'custom';}if(_0x2ef027[_0x567375(0xcc)]===0x0)return writeCliSideChannelLine(_0x567375(0xd1)),_0x567375(0xbe);return promptAppSelection(_0x2ef027);}async function _fallbackOrSkip(){const _0x3aebe3=a44_0x3f5e,_0x1b851d=await select({'message':_0x3aebe3(0xbd),'choices':[{'name':a44_0x139125[_0x3aebe3(0xc5)](_0x3aebe3(0xe0)),'value':'skip'},{'name':a44_0x139125[_0x3aebe3(0xcb)](_0x3aebe3(0xd3)),'value':'manual'}]});if(_0x1b851d==='skip')return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- const a39_0x58a62d=a39_0x12bb;(function(_0x2fd2af,_0x143db5){const _0x5b39de=a39_0x12bb,_0x25120a=_0x2fd2af();while(!![]){try{const _0x55ebb3=-parseInt(_0x5b39de(0x16b))/0x1+-parseInt(_0x5b39de(0x164))/0x2+-parseInt(_0x5b39de(0x174))/0x3+parseInt(_0x5b39de(0x169))/0x4*(-parseInt(_0x5b39de(0x175))/0x5)+parseInt(_0x5b39de(0x162))/0x6+parseInt(_0x5b39de(0x173))/0x7*(-parseInt(_0x5b39de(0x167))/0x8)+parseInt(_0x5b39de(0x168))/0x9;if(_0x55ebb3===_0x143db5)break;else _0x25120a['push'](_0x25120a['shift']());}catch(_0x4d254f){_0x25120a['push'](_0x25120a['shift']());}}}(a39_0x3bb9,0xab45b));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x58a62d(0x166)};export const CODE_FLAG={'name':a39_0x58a62d(0x16f),'type':a39_0x58a62d(0x170),'required':!![],'description':a39_0x58a62d(0x16a),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':'datasetcode','description':a39_0x58a62d(0x16a)};export const SQLCODE_FLAG={'name':'sqlcode','type':a39_0x58a62d(0x170),'required':!![],'description':a39_0x58a62d(0x171),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x58a62d(0x165)}};export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':a39_0x58a62d(0x170),'required':![],'description':'App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)'};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};function a39_0x3bb9(){const _0x5de574=['475325RlWbAb','dbtype','MYSQL','Database\x20product\x20type','code','string','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','number','83797xWihHl','3410631RRwqMI','6973705WaRHEs','3142734LAxiCL','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','265094EiqISM','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','704qsPNpQ','39336120BwhBRQ','4ZTTqKL','Dataset\x20code\x20(32-char\x20hex\x20UUID)'];a39_0x3bb9=function(){return _0x5de574;};return a39_0x3bb9();}function a39_0x12bb(_0x48ae31,_0x1aac5d){_0x48ae31=_0x48ae31-0x162;const _0x3bb934=a39_0x3bb9();let _0x12bbcd=_0x3bb934[_0x48ae31];return _0x12bbcd;}export const DBLINK_ID_FLAG={'name':'id','type':a39_0x58a62d(0x172),'required':!![],'description':a39_0x58a62d(0x163)};export const DB_TYPE_FLAG={'name':a39_0x58a62d(0x16c),'type':a39_0x58a62d(0x170),'required':!![],'description':a39_0x58a62d(0x16e),'enum':[a39_0x58a62d(0x16d),'POSTGRESQL']};
1
+ const a45_0x1b5a17=a45_0x1e7a;(function(_0x4d3ee0,_0x2238f3){const _0x2e8c6b=a45_0x1e7a,_0x191401=_0x4d3ee0();while(!![]){try{const _0x89880a=-parseInt(_0x2e8c6b(0x136))/0x1+-parseInt(_0x2e8c6b(0x130))/0x2*(-parseInt(_0x2e8c6b(0x12d))/0x3)+parseInt(_0x2e8c6b(0x12b))/0x4*(parseInt(_0x2e8c6b(0x127))/0x5)+parseInt(_0x2e8c6b(0x135))/0x6*(parseInt(_0x2e8c6b(0x13d))/0x7)+-parseInt(_0x2e8c6b(0x12c))/0x8+-parseInt(_0x2e8c6b(0x134))/0x9+parseInt(_0x2e8c6b(0x139))/0xa;if(_0x89880a===_0x2238f3)break;else _0x191401['push'](_0x191401['shift']());}catch(_0x3822e5){_0x191401['push'](_0x191401['shift']());}}}(a45_0x3fa8,0xe5602));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a45_0x1b5a17(0x129)};export const CODE_FLAG={'name':a45_0x1b5a17(0x137),'type':a45_0x1b5a17(0x13e),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':DATASET_CODE_PATTERN};function a45_0x3fa8(){const _0x2fa573=['appcode','1947436sRuVHK','8613560emPLUy','1422333PKWMMi','Database\x20product\x20type','sqlcode','6oEyWDj','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','Dataset\x20code\x20(32-char\x20hex\x20UUID)','datasetcode','1458558NfyRZb','77862Gbdcwz','511977PddVAB','code','POSTGRESQL','803060UnjWKt','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','MYSQL','dbtype','378xCADSg','string','5yERidl','number','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)'];a45_0x3fa8=function(){return _0x2fa573;};return a45_0x3fa8();}export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a45_0x1b5a17(0x133),'description':a45_0x1b5a17(0x132)};function a45_0x1e7a(_0x307aa1,_0x19a9b4){_0x307aa1=_0x307aa1-0x127;const _0x3fa8e0=a45_0x3fa8();let _0x1e7a43=_0x3fa8e0[_0x307aa1];return _0x1e7a43;}export const SQLCODE_FLAG={'name':a45_0x1b5a17(0x12f),'type':a45_0x1b5a17(0x13e),'required':!![],'description':a45_0x1b5a17(0x131),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const APPCODE_FLAG_OPTIONAL={'name':a45_0x1b5a17(0x12a),'type':a45_0x1b5a17(0x13e),'required':![],'description':a45_0x1b5a17(0x13a)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a45_0x1b5a17(0x128),'required':!![],'description':'Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)'};export const DB_TYPE_FLAG={'name':a45_0x1b5a17(0x13c),'type':a45_0x1b5a17(0x13e),'required':!![],'description':a45_0x1b5a17(0x12e),'enum':[a45_0x1b5a17(0x13b),a45_0x1b5a17(0x138)]};
@@ -1 +1 @@
1
- (function(_0x5ba0c5,_0x53fd38){const _0xe620e4=a40_0x3a3a,_0x16afe4=_0x5ba0c5();while(!![]){try{const _0x4a0d74=-parseInt(_0xe620e4(0x93))/0x1*(-parseInt(_0xe620e4(0x8f))/0x2)+-parseInt(_0xe620e4(0x99))/0x3+parseInt(_0xe620e4(0x98))/0x4+-parseInt(_0xe620e4(0x91))/0x5*(parseInt(_0xe620e4(0x9b))/0x6)+parseInt(_0xe620e4(0x9a))/0x7*(parseInt(_0xe620e4(0x92))/0x8)+parseInt(_0xe620e4(0x95))/0x9+-parseInt(_0xe620e4(0x90))/0xa;if(_0x4a0d74===_0x53fd38)break;else _0x16afe4['push'](_0x16afe4['shift']());}catch(_0x352dfa){_0x16afe4['push'](_0x16afe4['shift']());}}}(a40_0x24cf,0x415b0));function a40_0x24cf(){const _0x3a46bb=['12OQEWuV','4607490wvRWEv','95krmSVX','211488NqeMZq','79918bxxjtv','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','1618074dLoqHy','trim','length','1693136hhlCVb','479100WFlOhI','70QPTGoh','144882uPDEpF'];a40_0x24cf=function(){return _0x3a46bb;};return a40_0x24cf();}function a40_0x3a3a(_0x3c3b39,_0x57e039){_0x3c3b39=_0x3c3b39-0x8f;const _0x24cf81=a40_0x24cf();let _0x3a3a11=_0x24cf81[_0x3c3b39];return _0x3a3a11;}export function validateAppcode(_0x1fa54f){const _0x17512d=a40_0x3a3a,_0x587abb=_0x1fa54f[_0x17512d(0x96)]();if(!_0x587abb)return{'valid':![],'message':'App\x20Code\x20cannot\x20be\x20empty'};if(_0x587abb[_0x17512d(0x97)]>0x64)return{'valid':![],'message':'App\x20Code\x20cannot\x20exceed\x20100\x20characters'};if(!/^[A-Za-z0-9_-]+$/['test'](_0x587abb))return{'valid':![],'message':_0x17512d(0x94)};return{'valid':!![]};}
1
+ function a46_0xb372(){const _0x4d68fe=['test','2230672DTKvak','335342PgNUsQ','18QUoGHn','App\x20Code\x20cannot\x20be\x20empty','App\x20Code\x20cannot\x20exceed\x20100\x20characters','15SVKzWr','length','trim','2766654RlvFna','42052elhxwF','707470Qqjjpf','392014enMKxP','122894ipLEwl','35KHuahh'];a46_0xb372=function(){return _0x4d68fe;};return a46_0xb372();}function a46_0x5208(_0x2914b0,_0x1a610a){_0x2914b0=_0x2914b0-0x7e;const _0xb3729d=a46_0xb372();let _0x52088a=_0xb3729d[_0x2914b0];return _0x52088a;}(function(_0x2a21a4,_0x7132dc){const _0xda2345=a46_0x5208,_0xc432f8=_0x2a21a4();while(!![]){try{const _0x1d6d5e=parseInt(_0xda2345(0x8a))/0x1+parseInt(_0xda2345(0x86))/0x2*(-parseInt(_0xda2345(0x7f))/0x3)+-parseInt(_0xda2345(0x83))/0x4*(-parseInt(_0xda2345(0x87))/0x5)+-parseInt(_0xda2345(0x8b))/0x6*(-parseInt(_0xda2345(0x85))/0x7)+parseInt(_0xda2345(0x89))/0x8+-parseInt(_0xda2345(0x82))/0x9+-parseInt(_0xda2345(0x84))/0xa;if(_0x1d6d5e===_0x7132dc)break;else _0xc432f8['push'](_0xc432f8['shift']());}catch(_0x2dafe0){_0xc432f8['push'](_0xc432f8['shift']());}}}(a46_0xb372,0x29991));export function validateAppcode(_0x126e5d){const _0x2b8eae=a46_0x5208,_0x4d61ae=_0x126e5d[_0x2b8eae(0x81)]();if(!_0x4d61ae)return{'valid':![],'message':_0x2b8eae(0x8c)};if(_0x4d61ae[_0x2b8eae(0x80)]>0x64)return{'valid':![],'message':_0x2b8eae(0x7e)};if(!/^[A-Za-z0-9_-]+$/[_0x2b8eae(0x88)](_0x4d61ae))return{'valid':![],'message':'Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'};return{'valid':!![]};}
@@ -1 +1 @@
1
- const a41_0x452742=a41_0x4bbb;function a41_0x4bbb(_0x2a4c16,_0x18e5b4){_0x2a4c16=_0x2a4c16-0x122;const _0x41397e=a41_0x4139();let _0x4bbbc7=_0x41397e[_0x2a4c16];return _0x4bbbc7;}(function(_0xaa2e19,_0x4ea813){const _0x3e97e0=a41_0x4bbb,_0x4df7bb=_0xaa2e19();while(!![]){try{const _0xffbc62=-parseInt(_0x3e97e0(0x12b))/0x1*(-parseInt(_0x3e97e0(0x135))/0x2)+parseInt(_0x3e97e0(0x126))/0x3*(parseInt(_0x3e97e0(0x123))/0x4)+parseInt(_0x3e97e0(0x127))/0x5+-parseInt(_0x3e97e0(0x139))/0x6*(parseInt(_0x3e97e0(0x125))/0x7)+-parseInt(_0x3e97e0(0x128))/0x8*(parseInt(_0x3e97e0(0x132))/0x9)+parseInt(_0x3e97e0(0x130))/0xa+-parseInt(_0x3e97e0(0x134))/0xb*(parseInt(_0x3e97e0(0x12d))/0xc);if(_0xffbc62===_0x4ea813)break;else _0x4df7bb['push'](_0x4df7bb['shift']());}catch(_0x40d71f){_0x4df7bb['push'](_0x4df7bb['shift']());}}}(a41_0x4139,0x3b337));function a41_0x4139(){const _0x402db7=['2131910JkxfRj','config','57420xiiOoA','get','4268bFPqUP','634gkxFcu','app','Missing\x20key.','appcode','1497546ILtpKb','Get\x20a\x20config\x20value\x20by\x20key','20836PesEcF','string','7WvWgQs','24EzFGaY','1353170nBdwhE','112geAsse','object','validation','557KKfhjB','str','3732DZcMaj','read','Key\x20not\x20found:\x20'];a41_0x4139=function(){return _0x402db7;};return a41_0x4139();}import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x5120e6){const _0x43a1da=a41_0x4bbb,_0x3e4a28=_0x5120e6[_0x43a1da(0x12c)]('key');if(!_0x3e4a28)throw CliErrors[_0x43a1da(0x12a)](_0x43a1da(0x137),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x4ba4e7=readConfig(),_0x61fb8b=_0x3e4a28===_0x43a1da(0x136)?_0x43a1da(0x138):_0x3e4a28,_0x399b4d=_0x4ba4e7[_0x61fb8b];if(_0x399b4d===undefined)throw CliErrors[_0x43a1da(0x12a)](_0x43a1da(0x12f)+_0x3e4a28);return{'ok':!![],'data':typeof _0x399b4d===_0x43a1da(0x129)?_0x399b4d:{[_0x61fb8b]:_0x399b4d},'message':typeof _0x399b4d===_0x43a1da(0x129)?undefined:String(_0x399b4d)};}export const configGetDefinition={'service':a41_0x452742(0x131),'command':a41_0x452742(0x133),'description':a41_0x452742(0x122),'risk':a41_0x452742(0x12e),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a41_0x452742(0x124),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ function a47_0x42b1(_0x4d601f,_0xf8c88f){_0x4d601f=_0x4d601f-0xf6;const _0x32af3c=a47_0x32af();let _0x42b138=_0x32af3c[_0x4d601f];return _0x42b138;}const a47_0x328c4f=a47_0x42b1;(function(_0x15d508,_0x821544){const _0x9c7b1a=a47_0x42b1,_0x15135b=_0x15d508();while(!![]){try{const _0x3dee30=-parseInt(_0x9c7b1a(0x10b))/0x1+parseInt(_0x9c7b1a(0xfc))/0x2+parseInt(_0x9c7b1a(0x10c))/0x3*(-parseInt(_0x9c7b1a(0xfe))/0x4)+-parseInt(_0x9c7b1a(0xfb))/0x5*(parseInt(_0x9c7b1a(0xf8))/0x6)+-parseInt(_0x9c7b1a(0x102))/0x7+-parseInt(_0x9c7b1a(0x106))/0x8*(-parseInt(_0x9c7b1a(0x100))/0x9)+parseInt(_0x9c7b1a(0x108))/0xa;if(_0x3dee30===_0x821544)break;else _0x15135b['push'](_0x15135b['shift']());}catch(_0x616b09){_0x15135b['push'](_0x15135b['shift']());}}}(a47_0x32af,0xd9caf));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0xb1be53){const _0x373b52=a47_0x42b1,_0x2976ff=_0xb1be53[_0x373b52(0xfd)](_0x373b52(0x107));if(!_0x2976ff)throw CliErrors[_0x373b52(0x10a)](_0x373b52(0xf7),_0x373b52(0x105)+CLI_BIN_NAME+_0x373b52(0xff));const _0x532ba0=readConfig(),_0x21a5e9=_0x2976ff===_0x373b52(0x103)?_0x373b52(0xfa):_0x2976ff,_0x2efc3e=_0x532ba0[_0x21a5e9];if(_0x2efc3e===undefined)throw CliErrors[_0x373b52(0x10a)](_0x373b52(0x109)+_0x2976ff);return{'ok':!![],'data':typeof _0x2efc3e===_0x373b52(0xf6)?_0x2efc3e:{[_0x21a5e9]:_0x2efc3e},'message':typeof _0x2efc3e==='object'?undefined:String(_0x2efc3e)};}export const configGetDefinition={'service':a47_0x328c4f(0x104),'command':'get','description':a47_0x328c4f(0x10d),'risk':a47_0x328c4f(0x101),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a47_0x328c4f(0x107),'type':a47_0x328c4f(0xf9),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};function a47_0x32af(){const _0x394ca7=['key','16316140EDcMeD','Key\x20not\x20found:\x20','validation','235361ftGEFd','3KFUcwu','Get\x20a\x20config\x20value\x20by\x20key','object','Missing\x20key.','6rqoULM','string','appcode','7457370pbvtXU','1888480LOnoKZ','str','338356Njwltd','\x20config\x20get\x20--key\x20<key>','9AlIdkw','read','2436798XgyLKH','app','config','Usage:\x20','3806104TYAatZ'];a47_0x32af=function(){return _0x394ca7;};return a47_0x32af();}
@@ -1 +1 @@
1
- (function(_0x1e97e3,_0x26f272){const _0xc66847=a42_0x2bf4,_0x14ddbc=_0x1e97e3();while(!![]){try{const _0x5f0a40=parseInt(_0xc66847(0x117))/0x1+parseInt(_0xc66847(0x11e))/0x2*(parseInt(_0xc66847(0x11b))/0x3)+parseInt(_0xc66847(0x11f))/0x4+-parseInt(_0xc66847(0x11c))/0x5*(parseInt(_0xc66847(0x120))/0x6)+parseInt(_0xc66847(0x122))/0x7*(-parseInt(_0xc66847(0x119))/0x8)+parseInt(_0xc66847(0x118))/0x9*(parseInt(_0xc66847(0x11a))/0xa)+-parseInt(_0xc66847(0x11d))/0xb*(parseInt(_0xc66847(0x121))/0xc);if(_0x5f0a40===_0x26f272)break;else _0x14ddbc['push'](_0x14ddbc['shift']());}catch(_0x4a1944){_0x14ddbc['push'](_0x14ddbc['shift']());}}}(a42_0x34ee,0xa0391));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a42_0x2bf4(_0xd7a581,_0x1d27ab){_0xd7a581=_0xd7a581-0x117;const _0x34ee92=a42_0x34ee();let _0x2bf449=_0x34ee92[_0xd7a581];return _0x2bf449;}function a42_0x34ee(){const _0x3e99dd=['71265aosibb','4566859FOoBAp','370342kLyAHT','1580984omRiIE','432MPVaLw','12tBaanc','41111dRtKPZ','352722VxvWew','8571645AqkOcU','720wluPft','10aKBCTy','15qLduLt'];a42_0x34ee=function(){return _0x3e99dd;};return a42_0x34ee();}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x5bfcde,_0x4b266b){const _0x426459=a48_0x200e,_0x1d34a9=_0x5bfcde();while(!![]){try{const _0x5bfe8d=parseInt(_0x426459(0xeb))/0x1+parseInt(_0x426459(0xe8))/0x2*(-parseInt(_0x426459(0xee))/0x3)+parseInt(_0x426459(0xe6))/0x4+parseInt(_0x426459(0xe9))/0x5+parseInt(_0x426459(0xe7))/0x6*(-parseInt(_0x426459(0xe5))/0x7)+-parseInt(_0x426459(0xed))/0x8+-parseInt(_0x426459(0xea))/0x9*(-parseInt(_0x426459(0xec))/0xa);if(_0x5bfe8d===_0x4b266b)break;else _0x1d34a9['push'](_0x1d34a9['shift']());}catch(_0x422644){_0x1d34a9['push'](_0x1d34a9['shift']());}}}(a48_0x41ed,0xdb289));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a48_0x41ed(){const _0x32895c=['14060ynHwDI','1541128QsgwdC','30mkCqox','21jNlCSB','1146800pNxceA','1500186OIjIXk','59210cmzewc','2086265nMlhec','8388nWCQyU','122112sPGCQY'];a48_0x41ed=function(){return _0x32895c;};return a48_0x41ed();}function a48_0x200e(_0x3197bf,_0x4375af){_0x3197bf=_0x3197bf-0xe5;const _0x41edfd=a48_0x41ed();let _0x200e17=_0x41edfd[_0x3197bf];return _0x200e17;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- const a43_0xde0a64=a43_0x3f1d;(function(_0x3a1376,_0x2494fc){const _0x483a3c=a43_0x3f1d,_0x5e00b4=_0x3a1376();while(!![]){try{const _0x5e2f5b=-parseInt(_0x483a3c(0x1b9))/0x1*(-parseInt(_0x483a3c(0x1bc))/0x2)+-parseInt(_0x483a3c(0x1b4))/0x3+-parseInt(_0x483a3c(0x1ad))/0x4+parseInt(_0x483a3c(0x1b0))/0x5+parseInt(_0x483a3c(0x1ba))/0x6+-parseInt(_0x483a3c(0x1b5))/0x7*(parseInt(_0x483a3c(0x1b8))/0x8)+-parseInt(_0x483a3c(0x1b2))/0x9*(-parseInt(_0x483a3c(0x1b3))/0xa);if(_0x5e2f5b===_0x2494fc)break;else _0x5e00b4['push'](_0x5e00b4['shift']());}catch(_0x36cf60){_0x5e00b4['push'](_0x5e00b4['shift']());}}}(a43_0x2242,0x80a24));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x3e247f){const _0x33ffa8=a43_0x3f1d,_0x3d4bef=_0x3e247f['bool'](_0x33ffa8(0x1b6))?readScopedConfig(_0x33ffa8(0x1b6)):readConfig();return{'ok':!![],'data':_0x3d4bef};}export const configListDefinition={'service':a43_0xde0a64(0x1b7),'command':a43_0xde0a64(0x1b1),'description':a43_0xde0a64(0x1ae),'risk':'read','requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0xde0a64(0x1b6),'type':a43_0xde0a64(0x1bb),'description':a43_0xde0a64(0x1af),'default':![]}],'execute':execute};function a43_0x3f1d(_0x5e1053,_0x393425){_0x5e1053=_0x5e1053-0x1ad;const _0x224210=a43_0x2242();let _0x3f1deb=_0x224210[_0x5e1053];return _0x3f1deb;}function a43_0x2242(){const _0x415055=['854264STmusd','List\x20all\x20config\x20values','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','2745585KTnIkC','list','5549652wPxOGh','10xiMzOo','803013iTvKIl','63llwArA','global','config','653024UlcEvz','1Nxkdqr','3169566SyFZNA','boolean','97534htOKTD'];a43_0x2242=function(){return _0x415055;};return a43_0x2242();}
1
+ const a49_0x5672c0=a49_0x4f88;(function(_0x130817,_0x2a7277){const _0x275c5d=a49_0x4f88,_0x170746=_0x130817();while(!![]){try{const _0x3c025e=parseInt(_0x275c5d(0x109))/0x1*(-parseInt(_0x275c5d(0x107))/0x2)+-parseInt(_0x275c5d(0x114))/0x3*(parseInt(_0x275c5d(0x10a))/0x4)+-parseInt(_0x275c5d(0x108))/0x5+-parseInt(_0x275c5d(0x10f))/0x6+parseInt(_0x275c5d(0x106))/0x7*(parseInt(_0x275c5d(0x111))/0x8)+-parseInt(_0x275c5d(0x110))/0x9*(-parseInt(_0x275c5d(0x10e))/0xa)+parseInt(_0x275c5d(0x10c))/0xb;if(_0x3c025e===_0x2a7277)break;else _0x170746['push'](_0x170746['shift']());}catch(_0x58803c){_0x170746['push'](_0x170746['shift']());}}}(a49_0x1a0d,0x2dafa));function a49_0x1a0d(){const _0x2d24df=['1521126fYkqVY','585Vqyfyi','744oYSJam','global','list','63915edwRTy','5649xdjCya','86qUBFWI','1584045sznCbU','2483ejnPel','52mFlzvu','config','10843118eGcQuT','read','12370cImLAs'];a49_0x1a0d=function(){return _0x2d24df;};return a49_0x1a0d();}function a49_0x4f88(_0x21231c,_0x13ad99){_0x21231c=_0x21231c-0x106;const _0x1a0dd8=a49_0x1a0d();let _0x4f881e=_0x1a0dd8[_0x21231c];return _0x4f881e;}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x3b7386){const _0x241f92=a49_0x4f88,_0x5562ab=_0x3b7386['bool'](_0x241f92(0x112))?readScopedConfig(_0x241f92(0x112)):readConfig();return{'ok':!![],'data':_0x5562ab};}export const configListDefinition={'service':a49_0x5672c0(0x10b),'command':a49_0x5672c0(0x113),'description':'List\x20all\x20config\x20values','risk':a49_0x5672c0(0x10d),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a49_0x5672c0(0x112),'type':'boolean','description':'Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a44_0x5f3fe0=a44_0x2784;(function(_0x1e4db4,_0x2c51a2){const _0x359bb6=a44_0x2784,_0x2beeb9=_0x1e4db4();while(!![]){try{const _0x54a6f9=-parseInt(_0x359bb6(0x141))/0x1*(parseInt(_0x359bb6(0x123))/0x2)+parseInt(_0x359bb6(0x140))/0x3+-parseInt(_0x359bb6(0x131))/0x4+parseInt(_0x359bb6(0x12a))/0x5+-parseInt(_0x359bb6(0x136))/0x6*(parseInt(_0x359bb6(0x130))/0x7)+-parseInt(_0x359bb6(0x12f))/0x8*(-parseInt(_0x359bb6(0x11c))/0x9)+-parseInt(_0x359bb6(0x118))/0xa*(-parseInt(_0x359bb6(0x13d))/0xb);if(_0x54a6f9===_0x2c51a2)break;else _0x2beeb9['push'](_0x2beeb9['shift']());}catch(_0x2ef27e){_0x2beeb9['push'](_0x2beeb9['shift']());}}}(a44_0x9ff7,0x4ba6e));import{CliErrors}from'../../errors.js';function a44_0x2784(_0x3a6e38,_0x1a9471){_0x3a6e38=_0x3a6e38-0x117;const _0x9ff7ea=a44_0x9ff7();let _0x278457=_0x9ff7ea[_0x3a6e38];return _0x278457;}import{buildCanonicalProjectConfig}from'../../config/schema.js';function a44_0x9ff7(){const _0x4bb073=['Missing\x20key.','1385760pcFrLc','60AAYkdI','Project','bool','Top-level\x20key\x20\x22','includes','env','Set\x20a\x20config\x20value','255220ewrgQr','value','validation','\x20appcode\x20set\x20to:\x20','9297YHnvoi','\x20set\x20to:\x20','\x20app\x20add\x20<name>\x20--appcode\x20','appcode','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','boolean','Missing\x20value.','15706yRMcld','string','Usage:\x20','config','length','\x22.\x20Allowed:\x20','write','2696615PxXNRk','apps','keys','key','\x22\x20is\x20not\x20settable.','2856tjwzIE','2704681xiCmxw','1320804stSNtV','app','Config\x20value','Global','join','6ojgHiM','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','Invalid\x20locale\x20value.','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','str','riskLevel','global','55gnGkIG','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.'];a44_0x9ff7=function(){return _0x4bb073;};return a44_0x9ff7();}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(_0x5cfd05){const _0x48da39=a44_0x2784,_0x4a07ce=_0x5cfd05['str'](_0x48da39(0x12d)),_0x30a8d1=_0x5cfd05[_0x48da39(0x13a)](_0x48da39(0x119));if(!_0x4a07ce)throw CliErrors[_0x48da39(0x11a)](_0x48da39(0x13f),_0x48da39(0x125)+CLI_BIN_NAME+_0x48da39(0x137));if(_0x30a8d1===undefined||_0x30a8d1==='')throw CliErrors[_0x48da39(0x11a)](_0x48da39(0x122),_0x48da39(0x125)+CLI_BIN_NAME+_0x48da39(0x137));if(_0x30a8d1['length']>0x1f4)throw CliErrors[_0x48da39(0x11a)]('Config\x20value\x20is\x20invalid\x20or\x20too\x20long.');if(!isTopLevelConfigKey(_0x4a07ce))throw CliErrors[_0x48da39(0x11a)](_0x48da39(0x144)+_0x4a07ce+_0x48da39(0x12e),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x4a07ce===_0x48da39(0x13b))throw CliErrors[_0x48da39(0x11a)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(CONFIG_ENUM_VALUES[_0x4a07ce]&&!CONFIG_ENUM_VALUES[_0x4a07ce][_0x48da39(0x145)](_0x30a8d1))throw CliErrors[_0x48da39(0x11a)]('Invalid\x20value\x20for\x20\x22'+_0x4a07ce+_0x48da39(0x128)+CONFIG_ENUM_VALUES[_0x4a07ce][_0x48da39(0x135)](',\x20'));if(_0x4a07ce==='locale'&&!normalizeLocale(_0x30a8d1))throw CliErrors[_0x48da39(0x11a)](_0x48da39(0x138),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x3bc340={'global':_0x5cfd05[_0x48da39(0x143)](_0x48da39(0x13c))},_0x586d92=resolveWriteScope(_0x3bc340),_0x56e152=readScopedConfig(_0x586d92);let _0x36df58=_0x4a07ce,_0x1cc4c9=_0x30a8d1;_0x4a07ce===_0x48da39(0x132)&&(_0x36df58=_0x48da39(0x11f),delete _0x56e152['app']);_0x4a07ce==='locale'&&(_0x1cc4c9=normalizeLocale(_0x30a8d1));if(_0x4a07ce===_0x48da39(0x146)){_0x1cc4c9=normalizeEnv(_0x30a8d1);if(!isProduction(_0x1cc4c9)&&!isDaily(_0x1cc4c9))throw CliErrors[_0x48da39(0x11a)](_0x48da39(0x139),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x4a07ce===_0x48da39(0x11f)){const _0x2ca4f7=_0x56e152[_0x48da39(0x12b)]&&typeof _0x56e152['apps']==='object'?Object[_0x48da39(0x12c)](_0x56e152['apps']):[];if(_0x2ca4f7[_0x48da39(0x127)]>0x0)throw CliErrors[_0x48da39(0x11a)](_0x48da39(0x13e),'Use\x20`'+CLI_BIN_NAME+_0x48da39(0x11e)+_0x1cc4c9+'`,\x20`'+CLI_BIN_NAME+_0x48da39(0x120));const _0x20b50d=buildCanonicalProjectConfig({..._0x56e152},{'appCodes':[_0x1cc4c9],'env':typeof _0x56e152[_0x48da39(0x146)]===_0x48da39(0x124)?_0x56e152[_0x48da39(0x146)]:undefined});writeScopedConfig(_0x20b50d,_0x586d92);const _0xa0f1fc=_0x586d92==='global'?_0x48da39(0x134):_0x48da39(0x142);return{'ok':!![],'message':'✓\x20'+_0xa0f1fc+_0x48da39(0x11b)+_0x1cc4c9+'\x20(stored\x20as\x20apps\x20+\x20defaultApp)'};}_0x56e152[_0x36df58]=_0x1cc4c9,writeScopedConfig(_0x56e152,_0x586d92);const _0x9773a4=_0x586d92===_0x48da39(0x13c)?_0x48da39(0x134):_0x48da39(0x142);return{'ok':!![],'message':'✓\x20'+_0x9773a4+'\x20'+_0x36df58+_0x48da39(0x11d)+_0x1cc4c9};}export const configSetDefinition={'service':a44_0x5f3fe0(0x126),'command':'set','description':a44_0x5f3fe0(0x117),'risk':a44_0x5f3fe0(0x129),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a44_0x5f3fe0(0x124),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x5f3fe0(0x119),'type':a44_0x5f3fe0(0x124),'description':a44_0x5f3fe0(0x133),'required':!![]},{'name':'global','type':a44_0x5f3fe0(0x121),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
1
+ function a50_0x387d(){const _0x1de237=['Settable\x20top-level\x20keys:\x20','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','3sZRuNV','44lMorMY','global','544110wxZfpH','Invalid\x20locale\x20value.','riskLevel','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','89712FcwlAe','set','Missing\x20key.','apps','str','object','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','appcode','includes','40sUOmSn','3748904BKzQrt','1669148oKKMRE','\x22.\x20Allowed:\x20','\x20app\x20add\x20<name>\x20--appcode\x20','length','7561272VHsUTL','config','Project','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','Config\x20value','env','bool','value','\x20appcode\x20set\x20to:\x20','app','Top-level\x20key\x20\x22','`,\x20`','1057190TLgZAR','string','locale','Missing\x20value.','Usage:\x20','join','Use\x20`','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','keys','Global','validation','2520679CrWUhr','write','9vLSQAO','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','key'];a50_0x387d=function(){return _0x1de237;};return a50_0x387d();}const a50_0x562f5e=a50_0x12ca;function a50_0x12ca(_0x47847e,_0x2f620f){_0x47847e=_0x47847e-0xee;const _0x387dd3=a50_0x387d();let _0x12ca2c=_0x387dd3[_0x47847e];return _0x12ca2c;}(function(_0x4605fe,_0x30b5b5){const _0x1e00b8=a50_0x12ca,_0x535c90=_0x4605fe();while(!![]){try{const _0x59a1ff=parseInt(_0x1e00b8(0x11b))/0x1+parseInt(_0x1e00b8(0xef))/0x2*(parseInt(_0x1e00b8(0x113))/0x3)+parseInt(_0x1e00b8(0x124))/0x4*(-parseInt(_0x1e00b8(0x116))/0x5)+parseInt(_0x1e00b8(0xf3))/0x6+-parseInt(_0x1e00b8(0x10a))/0x7+-parseInt(_0x1e00b8(0xee))/0x8*(-parseInt(_0x1e00b8(0x10c))/0x9)+parseInt(_0x1e00b8(0xff))/0xa*(-parseInt(_0x1e00b8(0x114))/0xb);if(_0x59a1ff===_0x30b5b5)break;else _0x535c90['push'](_0x535c90['shift']());}catch(_0x454002){_0x535c90['push'](_0x535c90['shift']());}}}(a50_0x387d,0xbee5e));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0xb9d384){const _0x18fed3=a50_0x12ca,_0x55e0d1=_0xb9d384['str'](_0x18fed3(0x10e)),_0x1b69ec=_0xb9d384[_0x18fed3(0x11f)](_0x18fed3(0xfa));if(!_0x55e0d1)throw CliErrors['validation'](_0x18fed3(0x11d),_0x18fed3(0x103)+CLI_BIN_NAME+_0x18fed3(0x10d));if(_0x1b69ec===undefined||_0x1b69ec==='')throw CliErrors[_0x18fed3(0x109)](_0x18fed3(0x102),_0x18fed3(0x103)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x1b69ec[_0x18fed3(0xf2)]>0x1f4)throw CliErrors[_0x18fed3(0x109)](_0x18fed3(0x111));if(!isTopLevelConfigKey(_0x55e0d1))throw CliErrors[_0x18fed3(0x109)](_0x18fed3(0xfd)+_0x55e0d1+'\x22\x20is\x20not\x20settable.',_0x18fed3(0x10f)+getTopLevelConfigKeySummary());if(_0x55e0d1===_0x18fed3(0x118))throw CliErrors[_0x18fed3(0x109)](_0x18fed3(0x11a));if(CONFIG_ENUM_VALUES[_0x55e0d1]&&!CONFIG_ENUM_VALUES[_0x55e0d1][_0x18fed3(0x123)](_0x1b69ec))throw CliErrors[_0x18fed3(0x109)]('Invalid\x20value\x20for\x20\x22'+_0x55e0d1+_0x18fed3(0xf0)+CONFIG_ENUM_VALUES[_0x55e0d1][_0x18fed3(0x104)](',\x20'));if(_0x55e0d1===_0x18fed3(0x101)&&!normalizeLocale(_0x1b69ec))throw CliErrors['validation'](_0x18fed3(0x117),_0x18fed3(0x112));const _0x11e325={'global':_0xb9d384[_0x18fed3(0xf9)]('global')},_0x5eb6af=resolveWriteScope(_0x11e325),_0xb2cc4a=readScopedConfig(_0x5eb6af);let _0x5e7e0d=_0x55e0d1,_0x9ab000=_0x1b69ec;_0x55e0d1===_0x18fed3(0xfc)&&(_0x5e7e0d=_0x18fed3(0x122),delete _0xb2cc4a[_0x18fed3(0xfc)]);_0x55e0d1==='locale'&&(_0x9ab000=normalizeLocale(_0x1b69ec));if(_0x55e0d1===_0x18fed3(0xf8)){_0x9ab000=normalizeEnv(_0x1b69ec);if(!isProduction(_0x9ab000)&&!isDaily(_0x9ab000))throw CliErrors['validation'](_0x18fed3(0x110),_0x18fed3(0xf6));}if(_0x55e0d1==='appcode'){const _0x1411c8=_0xb2cc4a['apps']&&typeof _0xb2cc4a['apps']===_0x18fed3(0x120)?Object[_0x18fed3(0x107)](_0xb2cc4a[_0x18fed3(0x11e)]):[];if(_0x1411c8['length']>0x0)throw CliErrors[_0x18fed3(0x109)](_0x18fed3(0x119),_0x18fed3(0x105)+CLI_BIN_NAME+_0x18fed3(0xf1)+_0x9ab000+_0x18fed3(0xfe)+CLI_BIN_NAME+_0x18fed3(0x106));const _0x6f8fb3=buildCanonicalProjectConfig({..._0xb2cc4a},{'appCodes':[_0x9ab000],'env':typeof _0xb2cc4a['env']===_0x18fed3(0x100)?_0xb2cc4a[_0x18fed3(0xf8)]:undefined});writeScopedConfig(_0x6f8fb3,_0x5eb6af);const _0x2030ff=_0x5eb6af===_0x18fed3(0x115)?'Global':_0x18fed3(0xf5);return{'ok':!![],'message':'✓\x20'+_0x2030ff+_0x18fed3(0xfb)+_0x9ab000+_0x18fed3(0x121)};}_0xb2cc4a[_0x5e7e0d]=_0x9ab000,writeScopedConfig(_0xb2cc4a,_0x5eb6af);const _0x2da731=_0x5eb6af===_0x18fed3(0x115)?_0x18fed3(0x108):'Project';return{'ok':!![],'message':'✓\x20'+_0x2da731+'\x20'+_0x5e7e0d+'\x20set\x20to:\x20'+_0x9ab000};}export const configSetDefinition={'service':a50_0x562f5e(0xf4),'command':a50_0x562f5e(0x11c),'description':'Set\x20a\x20config\x20value','risk':a50_0x562f5e(0x10b),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a50_0x562f5e(0x100),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a50_0x562f5e(0xfa),'type':a50_0x562f5e(0x100),'description':a50_0x562f5e(0xf7),'required':!![]},{'name':'global','type':'boolean','description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x107c13,_0x14b2bf){var _0x556d3e=a45_0x35ee,_0x3f6e28=_0x107c13();while(!![]){try{var _0x66e9e5=-parseInt(_0x556d3e(0x8d))/0x1*(-parseInt(_0x556d3e(0x85))/0x2)+parseInt(_0x556d3e(0x7d))/0x3*(parseInt(_0x556d3e(0x81))/0x4)+parseInt(_0x556d3e(0x84))/0x5*(parseInt(_0x556d3e(0x8a))/0x6)+parseInt(_0x556d3e(0x83))/0x7*(-parseInt(_0x556d3e(0x8c))/0x8)+parseInt(_0x556d3e(0x87))/0x9+-parseInt(_0x556d3e(0x86))/0xa*(parseInt(_0x556d3e(0x89))/0xb)+-parseInt(_0x556d3e(0x7e))/0xc*(-parseInt(_0x556d3e(0x8b))/0xd);if(_0x66e9e5===_0x14b2bf)break;else _0x3f6e28['push'](_0x3f6e28['shift']());}catch(_0x243290){_0x3f6e28['push'](_0x3f6e28['shift']());}}}(a45_0x5290,0x96f6d));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_0x35ee(_0x26210b,_0x44a76b){_0x26210b=_0x26210b-0x7d;var _0x529043=a45_0x5290();var _0x35ee23=_0x529043[_0x26210b];return _0x35ee23;}export function resolveWriteScope(_0x227407){var _0x5d7572=a45_0x35ee;if(_0x227407[_0x5d7572(0x82)])return _0x5d7572(0x82);if(!isInProject())throw CliErrors['validation'](_0x5d7572(0x88),_0x5d7572(0x7f)+CLI_BIN_NAME+'\x20init`\x20first.');return _0x5d7572(0x80);}export function readScopedConfig(_0x464250){return readConfigFile(resolveWriteConfigPath(_0x464250));}function a45_0x5290(){var _0x103915=['11460JWAFVU','2XrMDMY','50doHxKc','956088ToozYS','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','1238402KhzfsB','2820vrbLZg','7650409ViDPSJ','488WNyscs','419145jHGiab','108yzpeaA','12BOaPtz','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','project','14044rViDJV','global','130389TAePAj'];a45_0x5290=function(){return _0x103915;};return a45_0x5290();}export function writeScopedConfig(_0x3bc552,_0x474789){writeConfigFile(resolveWriteConfigPath(_0x474789),_0x3bc552);}
1
+ (function(_0x1bc372,_0x3d564a){var _0x471830=a51_0x2a11,_0x389930=_0x1bc372();while(!![]){try{var _0x43801e=parseInt(_0x471830(0x192))/0x1+parseInt(_0x471830(0x19e))/0x2*(parseInt(_0x471830(0x198))/0x3)+parseInt(_0x471830(0x19d))/0x4*(parseInt(_0x471830(0x195))/0x5)+parseInt(_0x471830(0x194))/0x6*(parseInt(_0x471830(0x197))/0x7)+parseInt(_0x471830(0x191))/0x8*(-parseInt(_0x471830(0x19f))/0x9)+-parseInt(_0x471830(0x19b))/0xa+parseInt(_0x471830(0x193))/0xb*(-parseInt(_0x471830(0x190))/0xc);if(_0x43801e===_0x3d564a)break;else _0x389930['push'](_0x389930['shift']());}catch(_0x62c0c7){_0x389930['push'](_0x389930['shift']());}}}(a51_0x53b7,0x5302f));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';function a51_0x2a11(_0x3cd315,_0x221cb6){_0x3cd315=_0x3cd315-0x190;var _0x53b7d4=a51_0x53b7();var _0x2a1119=_0x53b7d4[_0x3cd315];return _0x2a1119;}function a51_0x53b7(){var _0x2b86c8=['project','4571060ktrgJc','\x20init`\x20first.','28CysZxR','14AFHBll','243rByPzd','516984DkbWwX','40616yhYJnu','592403YRZABO','121TLNtQk','95694xCdpRs','29765KjcrYq','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','203FDXMBN','133503QDXbeN','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).'];a51_0x53b7=function(){return _0x2b86c8;};return a51_0x53b7();}import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x96e334){var _0x424246=a51_0x2a11;if(_0x96e334['global'])return'global';if(!isInProject())throw CliErrors['validation'](_0x424246(0x199),_0x424246(0x196)+CLI_BIN_NAME+_0x424246(0x19c));return _0x424246(0x19a);}export function readScopedConfig(_0x3b62a9){return readConfigFile(resolveWriteConfigPath(_0x3b62a9));}export function writeScopedConfig(_0x147573,_0x5b561b){writeConfigFile(resolveWriteConfigPath(_0x5b561b),_0x147573);}
@@ -1 +1 @@
1
- function a46_0x7ade(_0x37cd2e,_0x59e479){_0x37cd2e=_0x37cd2e-0xc3;const _0x2a2ab2=a46_0x2a2a();let _0x7ade1a=_0x2a2ab2[_0x37cd2e];return _0x7ade1a;}const a46_0x34871f=a46_0x7ade;(function(_0x184b06,_0x336a9c){const _0x449e85=a46_0x7ade,_0x58a1ff=_0x184b06();while(!![]){try{const _0x34c3cc=parseInt(_0x449e85(0xd0))/0x1+-parseInt(_0x449e85(0xcb))/0x2*(-parseInt(_0x449e85(0xcf))/0x3)+-parseInt(_0x449e85(0xc4))/0x4+-parseInt(_0x449e85(0xd2))/0x5+-parseInt(_0x449e85(0xc6))/0x6+-parseInt(_0x449e85(0xcd))/0x7*(-parseInt(_0x449e85(0xc5))/0x8)+parseInt(_0x449e85(0xca))/0x9*(parseInt(_0x449e85(0xc3))/0xa);if(_0x34c3cc===_0x336a9c)break;else _0x58a1ff['push'](_0x58a1ff['shift']());}catch(_0x3f1b07){_0x58a1ff['push'](_0x58a1ff['shift']());}}}(a46_0x2a2a,0x26482));function a46_0x2a2a(){const _0x5d0eb8=['160wxGnsY','1129176KQHxJl','2528gTquvK','1205268WGMNiT','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','71199HAWbGV','1618TaYzKP','Filter\x20dataset\x20records\x20with\x20query\x20conditions','4907TKbADr','filter','417Zptotb','229892dgfFCK','join','252305uHqltD','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\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]'];a46_0x2a2a=function(){return _0x5d0eb8;};return a46_0x2a2a();}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a46_0x34871f(0xce),'operation':a46_0x34871f(0xce),'description':a46_0x34871f(0xcc),'paramsRequired':![],'paramsHint':a46_0x34871f(0xd3),'helpExtra':[a46_0x34871f(0xc8),a46_0x34871f(0xc9),a46_0x34871f(0xd4),'\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)',a46_0x34871f(0xc7)][a46_0x34871f(0xd1)]('\x0a')});
1
+ const a52_0xd2d7f7=a52_0x145b;(function(_0x49a53f,_0x3048ff){const _0x262920=a52_0x145b,_0x3e3d75=_0x49a53f();while(!![]){try{const _0x32e33c=-parseInt(_0x262920(0x170))/0x1+parseInt(_0x262920(0x168))/0x2*(parseInt(_0x262920(0x171))/0x3)+-parseInt(_0x262920(0x166))/0x4+-parseInt(_0x262920(0x16b))/0x5+parseInt(_0x262920(0x172))/0x6+-parseInt(_0x262920(0x16c))/0x7*(parseInt(_0x262920(0x169))/0x8)+-parseInt(_0x262920(0x16e))/0x9*(-parseInt(_0x262920(0x16a))/0xa);if(_0x32e33c===_0x3048ff)break;else _0x3e3d75['push'](_0x3e3d75['shift']());}catch(_0x270ed9){_0x3e3d75['push'](_0x3e3d75['shift']());}}}(a52_0x1065,0xda07a));import{buildDataCommand}from'../../commands/data/shared.js';function a52_0x145b(_0x181a01,_0x26bed4){_0x181a01=_0x181a01-0x162;const _0x106566=a52_0x1065();let _0x145b35=_0x106566[_0x181a01];return _0x145b35;}function a52_0x1065(){const _0xf5eba6=['987263VjVdRh','3354951zzcyAe','3655404OfVEIl','join','filter','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','Filter\x20dataset\x20records\x20with\x20query\x20conditions','6595560SATLwz','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','2GXkUAI','8aFUcSo','290VtvZrk','7036500xXkivG','8298941poHhiq','\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]','1363815hVJFTN','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions'];a52_0x1065=function(){return _0xf5eba6;};return a52_0x1065();}export const dataFilter=buildDataCommand({'command':a52_0xd2d7f7(0x163),'operation':a52_0xd2d7f7(0x163),'description':a52_0xd2d7f7(0x165),'paramsRequired':![],'paramsHint':a52_0xd2d7f7(0x164),'helpExtra':[a52_0xd2d7f7(0x167),a52_0xd2d7f7(0x16f),a52_0xd2d7f7(0x16d),'\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'][a52_0xd2d7f7(0x162)]('\x0a')});
@@ -1 +1 @@
1
- const a47_0x55b39b=a47_0x319e;function a47_0x319e(_0x588c56,_0x36f66a){_0x588c56=_0x588c56-0x18a;const _0x9472f0=a47_0x9472();let _0x319e39=_0x9472f0[_0x588c56];return _0x319e39;}(function(_0x455779,_0x47bceb){const _0x28604b=a47_0x319e,_0x181e43=_0x455779();while(!![]){try{const _0x5bfea1=-parseInt(_0x28604b(0x18d))/0x1+parseInt(_0x28604b(0x18a))/0x2*(parseInt(_0x28604b(0x18e))/0x3)+-parseInt(_0x28604b(0x18c))/0x4*(parseInt(_0x28604b(0x193))/0x5)+-parseInt(_0x28604b(0x195))/0x6+parseInt(_0x28604b(0x18f))/0x7+parseInt(_0x28604b(0x192))/0x8+-parseInt(_0x28604b(0x191))/0x9*(-parseInt(_0x28604b(0x194))/0xa);if(_0x5bfea1===_0x47bceb)break;else _0x181e43['push'](_0x181e43['shift']());}catch(_0x1c939b){_0x181e43['push'](_0x181e43['shift']());}}}(a47_0x9472,0xeb257));import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a47_0x55b39b(0x18b),'operation':'getOne','description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsRequired':!![],'paramsHint':a47_0x55b39b(0x190)});function a47_0x9472(){const _0x45ce34=['985544qmwbVF','10930oQFcYD','16407650QUPitR','7822872wexowq','78038UFDthk','getOne','844XEyGZA','1076056wKJczM','63IPmPvk','8546412AlNrJg','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','9MvtVTH'];a47_0x9472=function(){return _0x45ce34;};return a47_0x9472();}
1
+ const a53_0x5d8343=a53_0x2923;(function(_0x3751cd,_0x20958d){const _0x5758cc=a53_0x2923,_0x17ab61=_0x3751cd();while(!![]){try{const _0x221b1b=parseInt(_0x5758cc(0x15d))/0x1+parseInt(_0x5758cc(0x159))/0x2*(parseInt(_0x5758cc(0x15e))/0x3)+parseInt(_0x5758cc(0x163))/0x4*(parseInt(_0x5758cc(0x162))/0x5)+parseInt(_0x5758cc(0x160))/0x6+-parseInt(_0x5758cc(0x15b))/0x7+-parseInt(_0x5758cc(0x161))/0x8*(-parseInt(_0x5758cc(0x15a))/0x9)+-parseInt(_0x5758cc(0x15c))/0xa;if(_0x221b1b===_0x20958d)break;else _0x17ab61['push'](_0x17ab61['shift']());}catch(_0x1fb23e){_0x17ab61['push'](_0x17ab61['shift']());}}}(a53_0x5dfc,0xc7dbb));function a53_0x2923(_0x40a7a1,_0xa4cdb5){_0x40a7a1=_0x40a7a1-0x159;const _0x5dfcf8=a53_0x5dfc();let _0x29231b=_0x5dfcf8[_0x40a7a1];return _0x29231b;}function a53_0x5dfc(){const _0x5853ee=['163345qZDVYR','16116IHTBMX','getOne','4311300QovxIQ','375688rZUUuT','30QuvbLn','919196yDUEGS','294wHmvwx','36JeIEhG','6523566xvonpU','14876600UppOEl'];a53_0x5dfc=function(){return _0x5853ee;};return a53_0x5dfc();}import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a53_0x5d8343(0x15f),'operation':'getOne','description':'Get\x20a\x20single\x20record\x20by\x20ID','paramsRequired':!![],'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'});
@@ -1 +1 @@
1
- (function(_0x23db31,_0x3e0670){const _0x29bf4c=a48_0x40f6,_0x1ef9d2=_0x23db31();while(!![]){try{const _0x4d97b1=-parseInt(_0x29bf4c(0x17a))/0x1+parseInt(_0x29bf4c(0x179))/0x2+-parseInt(_0x29bf4c(0x17b))/0x3*(parseInt(_0x29bf4c(0x17d))/0x4)+parseInt(_0x29bf4c(0x177))/0x5+-parseInt(_0x29bf4c(0x178))/0x6+parseInt(_0x29bf4c(0x176))/0x7*(-parseInt(_0x29bf4c(0x175))/0x8)+parseInt(_0x29bf4c(0x17c))/0x9;if(_0x4d97b1===_0x3e0670)break;else _0x1ef9d2['push'](_0x1ef9d2['shift']());}catch(_0x14d7fc){_0x1ef9d2['push'](_0x1ef9d2['shift']());}}}(a48_0x1eea,0xc9173));function a48_0x1eea(){const _0x457e2d=['956UGeBmD','12439064NnqMBK','7VzbXxZ','8071015MRcvgo','2396394hjPFfb','1325414hBqFkU','1200291wvlKZb','1431YbyTBa','16337997UnsbWC'];a48_0x1eea=function(){return _0x457e2d;};return a48_0x1eea();}function a48_0x40f6(_0x4a4c72,_0xd6dff0){_0x4a4c72=_0x4a4c72-0x175;const _0x1eea62=a48_0x1eea();let _0x40f699=_0x1eea62[_0x4a4c72];return _0x40f699;}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
1
+ (function(_0x1629d4,_0x58641e){const _0x1a784e=a54_0x4fc9,_0x5e6dc9=_0x1629d4();while(!![]){try{const _0x3b1c7d=parseInt(_0x1a784e(0xd1))/0x1*(-parseInt(_0x1a784e(0xd0))/0x2)+-parseInt(_0x1a784e(0xd6))/0x3*(-parseInt(_0x1a784e(0xd5))/0x4)+-parseInt(_0x1a784e(0xce))/0x5*(parseInt(_0x1a784e(0xd4))/0x6)+-parseInt(_0x1a784e(0xd3))/0x7*(-parseInt(_0x1a784e(0xd2))/0x8)+-parseInt(_0x1a784e(0xd7))/0x9+-parseInt(_0x1a784e(0xcd))/0xa*(-parseInt(_0x1a784e(0xcc))/0xb)+parseInt(_0x1a784e(0xcf))/0xc;if(_0x3b1c7d===_0x58641e)break;else _0x5e6dc9['push'](_0x5e6dc9['shift']());}catch(_0xab20b4){_0x5e6dc9['push'](_0x5e6dc9['shift']());}}}(a54_0x395d,0xeffdf));function a54_0x4fc9(_0x5281f6,_0x207da8){_0x5281f6=_0x5281f6-0xcc;const _0x395dd0=a54_0x395d();let _0x4fc9b4=_0x395dd0[_0x5281f6];return _0x4fc9b4;}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];function a54_0x395d(){const _0x370bd7=['321805gjtbPQ','590KwElOh','1126965EyAote','5845128jRGBDD','1530952UEWiDX','1saauKF','88UMvnEv','239995Tdozrc','42UUXAWh','5337188QUkcRS','3kKMXMG','5385033XJiMXH'];a54_0x395d=function(){return _0x370bd7;};return a54_0x395d();}