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

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 (240) hide show
  1. package/README.md +1 -1
  2. package/lib/api/api-doc.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/auth/auth-server-ui.js +1 -1
  6. package/lib/auth/auth-server.js +1 -1
  7. package/lib/auth/constant.js +1 -1
  8. package/lib/auth/get-cookie.js +1 -1
  9. package/lib/auth/get-session-user.js +1 -1
  10. package/lib/auth/is-session-valid.js +1 -1
  11. package/lib/auth/login-success-html.js +1 -1
  12. package/lib/auth/logout.js +1 -1
  13. package/lib/cli-flags.js +1 -1
  14. package/lib/cli.js +1 -1
  15. package/lib/commands/api/generate.js +1 -1
  16. package/lib/commands/api/index.js +1 -1
  17. package/lib/commands/api/list.js +1 -1
  18. package/lib/commands/api/pull.js +1 -1
  19. package/lib/commands/api/shared.js +1 -1
  20. package/lib/commands/app/add.js +1 -1
  21. package/lib/commands/app/discover.js +1 -1
  22. package/lib/commands/app/index.js +1 -1
  23. package/lib/commands/app/list.js +1 -1
  24. package/lib/commands/app/remove.js +1 -1
  25. package/lib/commands/app/shared.js +1 -1
  26. package/lib/commands/app/use.js +1 -1
  27. package/lib/commands/app-config/delete.js +1 -0
  28. package/lib/commands/app-config/get.js +1 -0
  29. package/lib/commands/app-config/index.js +1 -0
  30. package/lib/commands/app-config/list.js +1 -0
  31. package/lib/commands/app-config/set.js +1 -0
  32. package/lib/commands/app-config/shared.js +1 -0
  33. package/lib/commands/auth/index.js +1 -1
  34. package/lib/commands/bff/create.js +1 -1
  35. package/lib/commands/bff/delete.js +1 -1
  36. package/lib/commands/bff/detail.js +1 -1
  37. package/lib/commands/bff/index.js +1 -1
  38. package/lib/commands/bff/list.js +1 -1
  39. package/lib/commands/bff/pull.js +1 -1
  40. package/lib/commands/bff/push.js +1 -1
  41. package/lib/commands/bff/status.js +1 -1
  42. package/lib/commands/cli-update.js +1 -1
  43. package/lib/commands/codegen/index.js +1 -1
  44. package/lib/commands/codegen/sdk.js +1 -1
  45. package/lib/commands/codegen/sql.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/flags.js +1 -1
  48. package/lib/commands/common/validate.js +1 -1
  49. package/lib/commands/config/get.js +1 -1
  50. package/lib/commands/config/index.js +1 -1
  51. package/lib/commands/config/list.js +1 -1
  52. package/lib/commands/config/set.js +1 -1
  53. package/lib/commands/config/shared.js +1 -1
  54. package/lib/commands/data/filter.js +1 -1
  55. package/lib/commands/data/getOne.js +1 -1
  56. package/lib/commands/data/index.js +1 -1
  57. package/lib/commands/data/shared.js +1 -1
  58. package/lib/commands/dataset/business-group-update.js +1 -0
  59. package/lib/commands/dataset/capability.js +1 -1
  60. package/lib/commands/dataset/delete.js +1 -1
  61. package/lib/commands/dataset/detail.js +1 -1
  62. package/lib/commands/dataset/extend-update.js +1 -1
  63. package/lib/commands/dataset/field-update.js +1 -1
  64. package/lib/commands/dataset/index.js +1 -1
  65. package/lib/commands/dataset/list.js +1 -1
  66. package/lib/commands/dataset/operations.js +1 -1
  67. package/lib/commands/dataset/relation-create.js +1 -1
  68. package/lib/commands/dataset/relation-delete.js +1 -1
  69. package/lib/commands/dataset/relation-shared.js +1 -1
  70. package/lib/commands/dataset/relation-update.js +1 -1
  71. package/lib/commands/dataset/relations.js +1 -1
  72. package/lib/commands/dataset/rename.js +1 -1
  73. package/lib/commands/dataset/restore.js +1 -0
  74. package/lib/commands/db/analyze-cancel.js +1 -1
  75. package/lib/commands/db/analyze-start.js +1 -1
  76. package/lib/commands/db/analyze-status.js +1 -1
  77. package/lib/commands/db/create.js +1 -1
  78. package/lib/commands/db/delete.js +1 -1
  79. package/lib/commands/db/detail.js +1 -1
  80. package/lib/commands/db/diff.js +1 -1
  81. package/lib/commands/db/index.js +1 -1
  82. package/lib/commands/db/list.js +1 -1
  83. package/lib/commands/db/shared.js +1 -1
  84. package/lib/commands/db/tables.js +1 -1
  85. package/lib/commands/db/test.js +1 -1
  86. package/lib/commands/db/update.js +1 -1
  87. package/lib/commands/doctor.js +1 -1
  88. package/lib/commands/init/index.js +1 -1
  89. package/lib/commands/issue/index.js +1 -1
  90. package/lib/commands/issue/nudge.js +1 -1
  91. package/lib/commands/issue/report.js +1 -1
  92. package/lib/commands/issue/shared.js +1 -1
  93. package/lib/commands/logs/index.js +1 -1
  94. package/lib/commands/menu/index.js +1 -1
  95. package/lib/commands/menu/list.js +1 -1
  96. package/lib/commands/menu/shared/compare-table.js +1 -1
  97. package/lib/commands/menu/shared/index.js +1 -1
  98. package/lib/commands/menu/shared/inquirer.js +1 -1
  99. package/lib/commands/menu/shared/local-pages.js +1 -1
  100. package/lib/commands/menu/shared/logic.js +1 -1
  101. package/lib/commands/menu/shared/service.js +1 -1
  102. package/lib/commands/menu/shared/sync-core.js +1 -1
  103. package/lib/commands/menu/shared/update-core.js +1 -1
  104. package/lib/commands/menu/shared/valid-url.js +1 -1
  105. package/lib/commands/menu/sync.js +1 -1
  106. package/lib/commands/menu/update.js +1 -1
  107. package/lib/commands/page/generate-start.js +1 -1
  108. package/lib/commands/page/generate-status.js +1 -1
  109. package/lib/commands/page/index.js +1 -1
  110. package/lib/commands/page/pull.js +1 -1
  111. package/lib/commands/page/push.js +1 -1
  112. package/lib/commands/page/relation-audit.js +1 -1
  113. package/lib/commands/page/shared.js +1 -1
  114. package/lib/commands/page/standard-page-status.js +1 -1
  115. package/lib/commands/page/sync.js +1 -1
  116. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  117. package/lib/commands/project/create/format-elapsed.js +1 -1
  118. package/lib/commands/project/create/main.js +1 -1
  119. package/lib/commands/project/create/non-interactive.js +1 -1
  120. package/lib/commands/project/create/project-template-path.js +1 -1
  121. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  122. package/lib/commands/project/create/use-format-code.js +1 -1
  123. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  124. package/lib/commands/project/index.js +1 -1
  125. package/lib/commands/project/init.js +1 -1
  126. package/lib/commands/project/upgrade.js +1 -1
  127. package/lib/commands/registry.js +1 -1
  128. package/lib/commands/run/index.js +1 -1
  129. package/lib/commands/schema.js +1 -1
  130. package/lib/commands/skill/index.js +1 -1
  131. package/lib/commands/sql/create.js +1 -1
  132. package/lib/commands/sql/delete.js +1 -1
  133. package/lib/commands/sql/detail.js +1 -1
  134. package/lib/commands/sql/exec.js +1 -1
  135. package/lib/commands/sql/index.js +1 -1
  136. package/lib/commands/sql/list.js +1 -1
  137. package/lib/commands/sql/pull.js +1 -1
  138. package/lib/commands/sql/push.js +1 -1
  139. package/lib/commands/sql/save.js +1 -1
  140. package/lib/commands/sql/shared.js +1 -1
  141. package/lib/commands/sql/status.js +1 -1
  142. package/lib/commands/sql/validate.js +1 -1
  143. package/lib/commands/workspace/index.js +1 -1
  144. package/lib/config/schema.js +1 -1
  145. package/lib/constant/cdn.js +1 -1
  146. package/lib/constant/cli.js +1 -1
  147. package/lib/constant/defaults.js +1 -1
  148. package/lib/constant/domain.js +1 -1
  149. package/lib/constant/env.js +1 -1
  150. package/lib/constant/output.js +1 -1
  151. package/lib/constant/paths.js +1 -1
  152. package/lib/constant/risk.js +1 -1
  153. package/lib/context/app-resolver.js +1 -1
  154. package/lib/context/auth-resolver.js +1 -1
  155. package/lib/context/config-loader.js +1 -1
  156. package/lib/context.js +1 -1
  157. package/lib/core/alias-resolver.js +1 -1
  158. package/lib/core/api-client.js +1 -1
  159. package/lib/core/bff/config.js +1 -1
  160. package/lib/core/bff/file-system.js +1 -1
  161. package/lib/core/bff/hash.js +1 -1
  162. package/lib/core/bff/lock.js +1 -1
  163. package/lib/core/bff/utils.js +1 -1
  164. package/lib/core/db-resolver.js +1 -1
  165. package/lib/core/page/file-system.js +1 -1
  166. package/lib/core/page/hash.js +1 -1
  167. package/lib/core/page/lock.js +1 -1
  168. package/lib/core/sql-sync/config.js +1 -1
  169. package/lib/core/sql-sync/file-system.js +1 -1
  170. package/lib/core/sql-sync/hash.js +1 -1
  171. package/lib/core/sql-sync/lock.js +1 -1
  172. package/lib/core/sql-sync/utils.js +1 -1
  173. package/lib/core/sql-validator.js +1 -1
  174. package/lib/errors.js +1 -1
  175. package/lib/framework/build-all-flags.js +1 -1
  176. package/lib/framework/flags.js +1 -1
  177. package/lib/framework/help.js +1 -1
  178. package/lib/framework/index.js +1 -1
  179. package/lib/framework/output.js +1 -1
  180. package/lib/framework/response.js +1 -1
  181. package/lib/framework/runner-alias.js +1 -1
  182. package/lib/framework/runner.js +1 -1
  183. package/lib/framework/schema-export.js +1 -1
  184. package/lib/framework/types.js +1 -1
  185. package/lib/generated/build-info.js +1 -1
  186. package/lib/help.js +1 -1
  187. package/lib/skills/main.js +1 -1
  188. package/lib/skills/npx-skills-add.js +1 -1
  189. package/lib/telemetry/cli-command-trace.js +1 -1
  190. package/lib/telemetry/cli-help-trace.js +1 -1
  191. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  192. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  193. package/lib/telemetry/send-cli-trace-log.js +1 -1
  194. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  195. package/lib/utils/ai_config.js +1 -1
  196. package/lib/utils/apply-jq-filter.js +1 -1
  197. package/lib/utils/cdn-config.js +1 -1
  198. package/lib/utils/check-sdk-version.js +1 -1
  199. package/lib/utils/cli-version-check.js +1 -1
  200. package/lib/utils/cli-version-policy.js +1 -1
  201. package/lib/utils/config.js +1 -1
  202. package/lib/utils/copy-directory.js +1 -1
  203. package/lib/utils/entity-with-id.js +1 -1
  204. package/lib/utils/file-utils.js +1 -1
  205. package/lib/utils/guides-cdn.js +1 -1
  206. package/lib/utils/http-client.js +1 -1
  207. package/lib/utils/is-non-interactive.js +1 -1
  208. package/lib/utils/logger.js +1 -1
  209. package/lib/utils/params.js +1 -1
  210. package/lib/utils/platform.js +1 -1
  211. package/lib/utils/rules-cdn.js +1 -1
  212. package/lib/utils/sleep.js +1 -1
  213. package/lib/utils/template-replacer.js +1 -1
  214. package/lib/utils/update-notice.js +1 -1
  215. package/lib/utils/version.js +1 -1
  216. package/lib/utils/with-active-cookie.js +1 -1
  217. package/lib/utils/write-cli-side-channel.js +1 -1
  218. package/package.json +1 -1
  219. package/templates/README.md +15 -25
  220. package/templates/generate-api/api.ts.tpl +2 -2
  221. package/templates/generate-api/client.ts.tpl +2 -2
  222. package/templates/projects/sub-app-react-demo/CHANGELOG.md +15 -1
  223. package/templates/projects/sub-app-react-demo/README.md +159 -231
  224. package/templates/projects/sub-app-react-demo/docs/quick-start.md +145 -426
  225. package/templates/projects/sub-app-react-demo/src/api/api.ts +8 -65
  226. package/templates/projects/sub-app-react-demo/src/api/client.ts +10 -42
  227. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.module.css +28 -0
  228. package/templates/projects/sub-app-react-demo/src/components/demo-page-container/DemoPageContainer.tsx +55 -0
  229. package/templates/projects/sub-app-react-demo/src/layouts/MainLayout.tsx +6 -9
  230. package/templates/projects/sub-app-react-demo/src/main.tsx +10 -6
  231. package/templates/projects/sub-app-react-demo/src/pages/dashboard/index.tsx +3 -5
  232. package/templates/projects/sub-app-react-demo/src/pages/data-screen/index.tsx +153 -148
  233. package/templates/projects/sub-app-react-demo/src/pages/index.module.css +500 -0
  234. package/templates/projects/sub-app-react-demo/src/pages/index.tsx +517 -343
  235. package/templates/projects/sub-app-react-demo/src/pages/sdk-demo/index.tsx +325 -242
  236. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.module.css +8 -6
  237. package/templates/projects/sub-app-react-demo/src/pages/workbench/index.tsx +174 -87
  238. package/templates/projects/sub-app-react-demo/src/style.css +19 -3
  239. package/templates/projects/sub-app-react-demo/src/vite-env.d.ts +1 -1
  240. package/templates/projects/sub-app-react-demo/docs/API_RULE_CHANGE.md +0 -212
@@ -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_0x4d5d7f=a37_0x54f3;function a37_0x54f3(_0x1589c7,_0x55d6b9){_0x1589c7=_0x1589c7-0x1ae;const _0x353243=a37_0x3532();let _0x54f34d=_0x353243[_0x1589c7];return _0x54f34d;}(function(_0x2368b5,_0x1622b0){const _0x1135f6=a37_0x54f3,_0x59ea7f=_0x2368b5();while(!![]){try{const _0x2cd354=parseInt(_0x1135f6(0x1dd))/0x1+parseInt(_0x1135f6(0x1d3))/0x2*(-parseInt(_0x1135f6(0x1cb))/0x3)+-parseInt(_0x1135f6(0x1be))/0x4*(parseInt(_0x1135f6(0x1cd))/0x5)+parseInt(_0x1135f6(0x1bd))/0x6*(parseInt(_0x1135f6(0x1d6))/0x7)+parseInt(_0x1135f6(0x1ee))/0x8*(-parseInt(_0x1135f6(0x1b7))/0x9)+-parseInt(_0x1135f6(0x1c6))/0xa*(-parseInt(_0x1135f6(0x1eb))/0xb)+parseInt(_0x1135f6(0x1b3))/0xc;if(_0x2cd354===_0x1622b0)break;else _0x59ea7f['push'](_0x59ea7f['shift']());}catch(_0x3bc4bd){_0x59ea7f['push'](_0x59ea7f['shift']());}}}(a37_0x3532,0xca537));import{createInterface}from'node:readline';import{writeFile}from'node:fs/promises';function a37_0x3532(){const _0x2628fc=['filePath','hookLocation','unresolvable\x20target\x20path','cancelled','Lock\x20scope\x20for\x20app\x20\x22','operationType','Force\x20overwrite\x20local\x20unsynced\x20changes','Force\x20pull\x20cancelled.','No\x20remote\x20BFF\x20scripts\x20found.','scriptContent','type','Pull\x20remote\x20BFF\x20scripts\x20to\x20local','lastSync','&type=','toISOString','validation','utf8','stdin','bff','Remote\x20script\x20missing\x20content.','boolean','13881564dJxiwt','\x20failed','pull','trim','132714HELcJM','datasetCode','alias','functionName','force','functionNode','3500916WHUNXe','4ugdxSj','hash','Force\x20pull\x20will\x20overwrite\x20local\x20unsynced\x20changes.\x20Continue?\x20[y/N]\x20','--type\x20must\x20be\x20COMMON,\x20ENDPOINT,\x20or\x20HOOK.','lockKey','close','Would\x20inspect\x20','\x20skipped,\x20','280EuUbFL','\x22\x20not\x20found\x20after\x20ensureLockScope.','appCode','push','nonInteractive','1542759pAPzmp','scriptType','2807240JIVcaj','conflict','yes','str','\x20remote\x20BFF\x20script(s)\x20for\x20pull','skipped','4btdSBL','apiDir','stringify','7chtnZd','functions','all','lockFilePath','COMMON','stderr','scriptsRoot','993608OJLzMA','parse','/api/management/library/scripts/list?appCode=','Pull\x20complete:\x20','Pull\x20only\x20this\x20script\x20type','string','map','toLowerCase','bool','HOOK','would_pull','message','ENDPOINT','version','322234BJRnBJ','length','includes','616fRRQnt'];a37_0x3532=function(){return _0x2628fc;};return a37_0x3532();}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';import{createEmptyBffLock,ensureLockScope,readBffLockFile,writeBffLockFile}from'../../core/bff/lock.js';import{CliErrors}from'../../errors.js';export const bffPull={'service':a37_0x4d5d7f(0x1b0),'command':a37_0x4d5d7f(0x1b5),'description':a37_0x4d5d7f(0x1fa),'risk':'write','flags':[{'name':a37_0x4d5d7f(0x1f9),'type':a37_0x4d5d7f(0x1e2),'description':a37_0x4d5d7f(0x1e1),'enum':[a37_0x4d5d7f(0x1da),a37_0x4d5d7f(0x1e9),'HOOK']},{'name':a37_0x4d5d7f(0x1bb),'type':a37_0x4d5d7f(0x1b2),'description':a37_0x4d5d7f(0x1f5)}],async 'dryRun'(_0x548517){const _0x5cacba=a37_0x4d5d7f,_0x3c622e=loadBffProjectConfig(_0x548517[_0x5cacba(0x1c8)]),_0x18d7b7=await readBffLockFile(_0x3c622e['lockFilePath']),{appLock:_0x45fc8a}=ensureLockScope(_0x18d7b7??createEmptyBffLock(),_0x548517['appCode'],_0x3c622e[_0x5cacba(0x1dc)],_0x5cacba(0x1b5)),_0x27a043=normalizeBffType(_0x548517[_0x5cacba(0x1d0)](_0x5cacba(0x1f9)))??undefined,_0x57a243=buildDatasetCodeToAliasMap(_0x548517[_0x5cacba(0x1d4)],_0x548517[_0x5cacba(0x1c8)]),[_0x2f2958,_0x5e4097]=await Promise[_0x5cacba(0x1d8)]([listBffScripts(_0x548517[_0x5cacba(0x1c8)],_0x27a043),getBffScriptStatistics(_0x548517[_0x5cacba(0x1c8)])]),_0x42402d=createHookLocationMap(_0x5e4097),_0x22808c=[];for(const _0x4077b7 of _0x2f2958){const _0x55eafc=resolveRemoteScriptTarget(_0x3c622e,_0x4077b7,_0x42402d,_0x45fc8a[_0x5cacba(0x1d7)],_0x57a243);if(!_0x55eafc){_0x22808c[_0x5cacba(0x1c9)]({'scriptType':_0x4077b7[_0x5cacba(0x1cc)],'functionName':_0x4077b7[_0x5cacba(0x1ba)]??'','status':_0x5cacba(0x1d2),'reason':'unresolvable\x20target\x20path'});continue;}const _0x6294d8=_0x45fc8a[_0x5cacba(0x1d7)][_0x55eafc[_0x5cacba(0x1c2)]],_0x401475=_0x4077b7[_0x5cacba(0x1f8)]!=null?computeContentHash(_0x4077b7['scriptContent']):undefined,_0x56bcc6=await hasUnsyncedLocalChanges(_0x55eafc[_0x5cacba(0x1ef)],_0x6294d8,_0x401475);_0x22808c['push']({'lockKey':_0x55eafc['lockKey'],'filePath':_0x55eafc[_0x5cacba(0x1ef)],'remoteId':_0x4077b7['id']??null,'status':_0x56bcc6?_0x5cacba(0x1ce):_0x5cacba(0x1e7)});}return{'method':'GET','url':_0x5cacba(0x1df)+_0x548517[_0x5cacba(0x1c8)]+(_0x27a043?_0x5cacba(0x1fc)+_0x27a043:''),'body':{'appCode':_0x548517['appCode'],'filterType':_0x27a043??null,'files':_0x22808c},'description':_0x5cacba(0x1c4)+_0x22808c[_0x5cacba(0x1ec)]+_0x5cacba(0x1d1)};},async 'execute'(_0x535574){const _0x587daa=a37_0x4d5d7f,_0x1aa117=loadBffProjectConfig(_0x535574[_0x587daa(0x1c8)]),_0x271007=await readBffLockFile(_0x1aa117[_0x587daa(0x1d9)]),{lockData:_0x469259,appLock:_0x58261c}=ensureLockScope(_0x271007??createEmptyBffLock(),_0x535574[_0x587daa(0x1c8)],_0x1aa117[_0x587daa(0x1dc)],_0x587daa(0x1b5)),_0x53c788=normalizeBffType(_0x535574[_0x587daa(0x1d0)](_0x587daa(0x1f9)))??undefined;if(_0x535574[_0x587daa(0x1d0)](_0x587daa(0x1f9))&&!_0x53c788)throw CliErrors[_0x587daa(0x1fe)](_0x587daa(0x1c1));const [_0x6d2b06,_0xb0139a]=await Promise[_0x587daa(0x1d8)]([listBffScripts(_0x535574['appCode'],_0x53c788),getBffScriptStatistics(_0x535574[_0x587daa(0x1c8)])]);if(_0x6d2b06[_0x587daa(0x1ec)]===0x0)return{'ok':!![],'data':{'pulled':[],'skipped':[],'failed':[]},'message':_0x587daa(0x1f7)};const _0x2342d3=_0x535574[_0x587daa(0x1e5)](_0x587daa(0x1bb));if(_0x2342d3&&!_0x535574[_0x587daa(0x1ca)]){const _0x120f54=await confirmForce();if(!_0x120f54)throw CliErrors[_0x587daa(0x1f2)](_0x587daa(0x1f6));}if(_0x2342d3&&_0x535574[_0x587daa(0x1ca)]){}const _0xd9617c=buildDatasetCodeToAliasMap(_0x535574[_0x587daa(0x1d4)],_0x535574[_0x587daa(0x1c8)]),_0x12b7f2=createHookLocationMap(_0xb0139a),_0x8eae99=JSON[_0x587daa(0x1de)](JSON[_0x587daa(0x1d5)](_0x469259)),_0x572e49=_0x535574[_0x587daa(0x1c8)],_0x89ba93=_0x8eae99['apps'][_0x572e49];if(!_0x89ba93)throw new Error(_0x587daa(0x1f3)+_0x572e49+_0x587daa(0x1c7));const _0x38bae7=[],_0x37aa91=[],_0x4b133c=[];for(const _0x1c12af of _0x6d2b06){const _0x39b52e=resolveRemoteScriptTarget(_0x1aa117,_0x1c12af,_0x12b7f2,_0x58261c[_0x587daa(0x1d7)],_0xd9617c);if(!_0x39b52e){_0x37aa91[_0x587daa(0x1c9)]({'lockKey':_0x1c12af[_0x587daa(0x1cc)]+'/'+_0x1c12af['functionName'],'reason':_0x587daa(0x1f1)});continue;}const _0xe5283a=_0x58261c[_0x587daa(0x1d7)][_0x39b52e[_0x587daa(0x1c2)]];try{if(!_0x1c12af['id'])throw new Error('Remote\x20script\x20missing\x20id.');if(_0x1c12af[_0x587daa(0x1f8)]==null)throw new Error(_0x587daa(0x1b1));const _0xd18304=_0x1c12af[_0x587daa(0x1f8)],_0x768d5c=computeContentHash(_0xd18304);if(!_0x2342d3){const _0xe8edf1=await hasUnsyncedLocalChanges(_0x39b52e[_0x587daa(0x1ef)],_0xe5283a,_0x768d5c);if(_0xe8edf1){_0x37aa91[_0x587daa(0x1c9)]({'lockKey':_0x39b52e[_0x587daa(0x1c2)],'reason':'local\x20unsynced\x20changes'});continue;}}await ensureParentDirectory(_0x39b52e['filePath']),await writeFile(_0x39b52e[_0x587daa(0x1ef)],_0xd18304,_0x587daa(0x1ae));const _0x527174={'hash':_0x768d5c,'remoteId':_0x1c12af['id'],'version':_0x1c12af[_0x587daa(0x1ea)]};_0x39b52e['type']===_0x587daa(0x1e6)&&_0x39b52e[_0x587daa(0x1f0)]&&(_0x527174[_0x587daa(0x1b9)]=_0x39b52e[_0x587daa(0x1f0)][_0x587daa(0x1b9)],_0x527174['datasetCode']=_0x39b52e[_0x587daa(0x1f0)][_0x587daa(0x1b8)],_0x527174['operationType']=_0x39b52e[_0x587daa(0x1f0)][_0x587daa(0x1f4)],_0x527174[_0x587daa(0x1bc)]=_0x39b52e[_0x587daa(0x1f0)]['functionNode']),_0x89ba93[_0x587daa(0x1d7)][_0x39b52e[_0x587daa(0x1c2)]]=_0x527174,_0x38bae7[_0x587daa(0x1c9)]({'lockKey':_0x39b52e['lockKey'],'remoteId':_0x1c12af['id']});}catch(_0x4f7291){_0x4b133c[_0x587daa(0x1c9)]({'lockKey':_0x39b52e[_0x587daa(0x1c2)],'error':_0x4f7291 instanceof Error?_0x4f7291[_0x587daa(0x1e8)]:String(_0x4f7291)});}}return _0x89ba93[_0x587daa(0x1fb)]=new Date()[_0x587daa(0x1fd)](),await writeBffLockFile(_0x1aa117['lockFilePath'],_0x8eae99),{'ok':_0x4b133c[_0x587daa(0x1ec)]===0x0,'data':{'pulled':_0x38bae7,'skipped':_0x37aa91,'failed':_0x4b133c},'message':_0x587daa(0x1e0)+_0x38bae7[_0x587daa(0x1ec)]+'\x20pulled,\x20'+_0x37aa91[_0x587daa(0x1ec)]+_0x587daa(0x1c5)+_0x4b133c[_0x587daa(0x1ec)]+_0x587daa(0x1b4)};}};async function hasUnsyncedLocalChanges(_0x15629e,_0x163ca8,_0x568196){const _0x20f15d=a37_0x4d5d7f;if(!await fileExists(_0x15629e))return![];const _0x3515a1=await computeFileHash(_0x15629e);if(!_0x163ca8)return _0x568196?_0x3515a1!==_0x568196:!![];return _0x3515a1!==_0x163ca8[_0x20f15d(0x1bf)];}function buildDatasetCodeToAliasMap(_0x2ccdf5,_0x4fc45b){const _0x5a023b=a37_0x4d5d7f,_0x5616ab=loadAliasMap(_0x2ccdf5,undefined,resolveApiFilePath(_0x2ccdf5,_0x4fc45b));return new Map(_0x5616ab[_0x5a023b(0x1e3)](_0x30e0cf=>[_0x30e0cf[_0x5a023b(0x1b8)],_0x30e0cf[_0x5a023b(0x1b9)]]));}async function confirmForce(){const _0x55ec39=a37_0x4d5d7f,_0x315c33=createInterface({'input':process[_0x55ec39(0x1af)],'output':process[_0x55ec39(0x1db)]}),_0x5e442a=await new Promise(_0x3789f2=>{const _0x55acd0=_0x55ec39;_0x315c33['question'](_0x55acd0(0x1c0),_0x3789f2);});return _0x315c33[_0x55ec39(0x1c3)](),['y',_0x55ec39(0x1cf)][_0x55ec39(0x1ed)](_0x5e442a[_0x55ec39(0x1b6)]()[_0x55ec39(0x1e4)]());}
@@ -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_0x2664fe=a38_0x5462;(function(_0x11c402,_0x1e0937){const _0x2441ff=a38_0x5462,_0x3ad508=_0x11c402();while(!![]){try{const _0x1f785c=-parseInt(_0x2441ff(0x84))/0x1*(parseInt(_0x2441ff(0x9a))/0x2)+parseInt(_0x2441ff(0x9b))/0x3*(parseInt(_0x2441ff(0x7a))/0x4)+-parseInt(_0x2441ff(0x96))/0x5+-parseInt(_0x2441ff(0x9f))/0x6*(-parseInt(_0x2441ff(0xb4))/0x7)+parseInt(_0x2441ff(0x8a))/0x8+-parseInt(_0x2441ff(0x87))/0x9+parseInt(_0x2441ff(0x7c))/0xa*(parseInt(_0x2441ff(0x92))/0xb);if(_0x1f785c===_0x1e0937)break;else _0x3ad508['push'](_0x3ad508['shift']());}catch(_0x51083c){_0x3ad508['push'](_0x3ad508['shift']());}}}(a38_0x4a52,0xc6b9f));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';function a38_0x5462(_0x26c90a,_0x502564){_0x26c90a=_0x26c90a-0x74;const _0x4a5281=a38_0x4a52();let _0x5462b0=_0x4a5281[_0x26c90a];return _0x5462b0;}import{loadBffProjectConfig}from'../../core/bff/config.js';import{normalizeBffType,scanLocalBffFunctions}from'../../core/bff/file-system.js';function a38_0x4a52(){const _0x2f6e91=['lockKey','No\x20local\x20BFF\x20functions\x20found.','get','description','11KxggOU','hash','Lock\x20scope\x20for\x20app\x20\x22','filePath','4910855ppyhLQ','would_push','version','Incomplete\x20HOOK\x20path:\x20','1103458zhYUWm','3RVJoGY','lastSync','\x20failed,\x20','unchanged','17820MSLYaI','Push\x20complete:\x20','some','message','script','has','name','high-risk-write','\x22\x20not\x20found\x20after\x20ensureLockScope.','apps','functionNode','Cannot\x20resolve\x20dataset\x20for\x20\x22','POST','functions','string','\x22.\x20','aliasToDatasetCode','status','toISOString','create','attempted','938IPdatL','every','bool','utf8','cleared','values','Local\x20function\x20not\x20found:\x20','runtime\x20cache\x20not\x20needed','force','runtime\x20cache\x20clear\x20failed','alias','bff','validation','\x20api\x20pull`\x20to\x20refresh\x20api.ts,\x20or\x20verify\x20the\x20dataset\x20exists.','datasetId','scriptsRoot','Would\x20inspect\x20','type','appCode','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','\x20uploaded,\x20','apiDir','datasetCode','operationType','4477392hdHSwv','parse','11331830EHQBIM',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','length','Push\x20local\x20BFF\x20scripts\x20to\x20remote','boolean','str','Push\x20only\x20this\x20script\x20type','lockFilePath','1tUzCiu','remoteId','map','8404236eeKfeL','Runtime\x20script\x20cache\x20cleared.','ENDPOINT','5049408EpwzdB','push','update','HOOK'];a38_0x4a52=function(){return _0x2f6e91;};return a38_0x4a52();}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_0x2664fe(0xbf),'command':a38_0x2664fe(0x8b),'description':a38_0x2664fe(0x7f),'risk':a38_0x2664fe(0xa6),'flags':[{'name':a38_0x2664fe(0xc5),'type':a38_0x2664fe(0xad),'description':a38_0x2664fe(0x82),'enum':['COMMON',a38_0x2664fe(0x89),a38_0x2664fe(0x8d)]},{'name':'name','type':a38_0x2664fe(0xad),'description':a38_0x2664fe(0x75)},{'name':'force','type':a38_0x2664fe(0x80),'description':'Force\x20push\x20ignoring\x20hash\x20protection'}],async 'dryRun'(_0x8d7457){const _0x5a7a01=a38_0x2664fe,_0xabc29f=loadBffProjectConfig(_0x8d7457[_0x5a7a01(0x74)]),_0xbdf8b8=await readBffLockFile(_0xabc29f['lockFilePath']),{appLock:_0x3f3eb2}=ensureLockScope(_0xbdf8b8??createEmptyBffLock(),_0x8d7457['appCode'],_0xabc29f['scriptsRoot'],_0x5a7a01(0x8b)),_0x2522a6=await getTargetFunctions(_0xabc29f,_0x8d7457),_0x50d059=_0x8d7457[_0x5a7a01(0xb6)]('force'),_0x2f0294=[];for(const _0x295e81 of _0x2522a6){const _0x26d71c=await computeFileHash(_0x295e81[_0x5a7a01(0x95)]),_0x3e8b3b=_0x3f3eb2[_0x5a7a01(0xac)][_0x295e81['lockKey']],_0x1814fe=!!_0x3e8b3b&&_0x3e8b3b[_0x5a7a01(0x93)]===_0x26d71c;_0x2f0294[_0x5a7a01(0x8b)]({'lockKey':_0x295e81['lockKey'],'filePath':_0x295e81[_0x5a7a01(0x95)],'remoteId':_0x3e8b3b?.[_0x5a7a01(0x85)]??null,'mode':_0x3e8b3b?.[_0x5a7a01(0x85)]?_0x5a7a01(0x8c):_0x5a7a01(0xb2),'status':!_0x50d059&&_0x1814fe?_0x5a7a01(0x9e):_0x5a7a01(0x97)});}return{'method':_0x5a7a01(0xab),'url':'/api/management/library/scripts/save','body':{'appCode':_0x8d7457[_0x5a7a01(0x74)],'force':_0x50d059,'files':_0x2f0294,'cacheClearAtRuntime':_0x2f0294[_0x5a7a01(0xa1)](_0x3fc028=>_0x3fc028[_0x5a7a01(0xb0)]===_0x5a7a01(0x97)),'cacheClearAtRuntimeTimes':_0x2f0294[_0x5a7a01(0xa1)](_0x19c0e4=>_0x19c0e4['status']===_0x5a7a01(0x97))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x5a7a01(0xc4)+_0x2f0294['length']+'\x20local\x20BFF\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded'};},async 'execute'(_0x4c0fb){const _0x4b52e5=a38_0x2664fe,_0x1250cb=loadBffProjectConfig(_0x4c0fb['appCode']),_0x130e49=await readBffLockFile(_0x1250cb[_0x4b52e5(0x83)]),{lockData:_0x55d496,appLock:_0x4cf875}=ensureLockScope(_0x130e49??createEmptyBffLock(),_0x4c0fb[_0x4b52e5(0x74)],_0x1250cb[_0x4b52e5(0xc3)],_0x4b52e5(0x8b)),_0x2344fb=await getTargetFunctions(_0x1250cb,_0x4c0fb);if(_0x2344fb[_0x4b52e5(0x7e)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'failed':[]},'message':_0x4b52e5(0x8f)};const _0x2e63b0=_0x4c0fb[_0x4b52e5(0xb6)](_0x4b52e5(0xbc)),_0x4362b6=JSON[_0x4b52e5(0x7b)](JSON['stringify'](_0x55d496)),_0x7847b7=_0x4362b6['apps'][_0x4c0fb[_0x4b52e5(0x74)]];if(!_0x7847b7)throw new Error(_0x4b52e5(0x94)+_0x4c0fb[_0x4b52e5(0x74)]+_0x4b52e5(0xa7));const _0x548d14=await buildHookMaps(_0x4c0fb[_0x4b52e5(0x74)],_0x4c0fb[_0x4b52e5(0x77)],_0x2344fb,_0x7847b7),_0x59f268=[],_0x528060=[],_0x130939=[];for(const _0x227906 of _0x2344fb){const _0x4da732=await computeFileHash(_0x227906[_0x4b52e5(0x95)]),_0x2b5f84=_0x7847b7[_0x4b52e5(0xac)][_0x227906[_0x4b52e5(0x8e)]];if(!_0x2e63b0&&_0x2b5f84&&_0x2b5f84[_0x4b52e5(0x93)]===_0x4da732){_0x528060[_0x4b52e5(0x8b)]({'lockKey':_0x227906[_0x4b52e5(0x8e)],'reason':_0x4b52e5(0x9e)});continue;}try{await uploadSingleFunction(_0x4c0fb[_0x4b52e5(0x74)],_0x227906,_0x7847b7,_0x548d14);const _0x43a46c=_0x7847b7[_0x4b52e5(0xac)][_0x227906[_0x4b52e5(0x8e)]];_0x59f268[_0x4b52e5(0x8b)]({'lockKey':_0x227906[_0x4b52e5(0x8e)],'remoteId':_0x43a46c?.[_0x4b52e5(0x85)]??0x0});}catch(_0x54721f){_0x130939['push']({'lockKey':_0x227906[_0x4b52e5(0x8e)],'error':_0x54721f instanceof Error?_0x54721f[_0x4b52e5(0xa2)]:String(_0x54721f)});}}_0x7847b7[_0x4b52e5(0x9c)]=new Date()[_0x4b52e5(0xb1)](),await writeBffLockFile(_0x1250cb['lockFilePath'],_0x4362b6),await waitForUploadedLockEntries(_0x1250cb['lockFilePath'],_0x4c0fb['appCode'],_0x59f268[_0x4b52e5(0x86)](_0xb8a6ab=>_0xb8a6ab[_0x4b52e5(0x8e)]));let _0x4ce759={'attempted':![],'cleared':![]};if(_0x59f268[_0x4b52e5(0x7e)]>0x0)try{let _0x74e762='';for(let _0x51dca8=0x0;_0x51dca8<CACHE_CLEAR_ATTEMPTS;_0x51dca8+=0x1){_0x74e762=await clearBffScriptCache(),_0x51dca8<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x4ce759={'attempted':!![],'cleared':!![],'message':_0x74e762||_0x4b52e5(0x88)};}catch(_0x2aa9de){_0x4ce759={'attempted':!![],'cleared':![],'error':_0x2aa9de instanceof Error?_0x2aa9de[_0x4b52e5(0xa2)]:String(_0x2aa9de)};}const _0x5dff16=_0x130939[_0x4b52e5(0x7e)]===0x0&&(_0x4ce759['attempted']?_0x4ce759['cleared']:!![]),_0x1231b1=_0x4ce759[_0x4b52e5(0xb3)]?_0x4ce759[_0x4b52e5(0xb8)]?'runtime\x20cache\x20cleared':_0x4b52e5(0xbd):_0x4b52e5(0xbb);return{'ok':_0x5dff16,'data':{'uploaded':_0x59f268,'skipped':_0x528060,'failed':_0x130939,'cacheClear':_0x4ce759},'message':_0x4b52e5(0xa0)+_0x59f268[_0x4b52e5(0x7e)]+_0x4b52e5(0x76)+_0x528060[_0x4b52e5(0x7e)]+'\x20skipped,\x20'+_0x130939['length']+_0x4b52e5(0x9d)+_0x1231b1};}};async function getTargetFunctions(_0x1a5654,_0x2036a0){const _0x55232a=a38_0x2664fe,_0x4614fb=_0x2036a0['str']('type'),_0x520c55=_0x2036a0[_0x55232a(0x81)](_0x55232a(0xa5)),_0x35b1e0=normalizeBffType(_0x4614fb)??undefined;if(_0x520c55&&!_0x35b1e0)throw CliErrors[_0x55232a(0xc0)]('--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.');const _0x58a2f5=await scanLocalBffFunctions(_0x1a5654,_0x35b1e0);if(_0x520c55){const _0x3abb8f=_0x58a2f5['filter'](_0x1896ab=>_0x1896ab[_0x55232a(0xa5)]===_0x520c55);if(_0x3abb8f[_0x55232a(0x7e)]===0x0)throw CliErrors[_0x55232a(0xc0)](_0x55232a(0xba)+_0x35b1e0+'/'+_0x520c55);return _0x3abb8f;}return _0x58a2f5;}async function buildHookMaps(_0x94ca94,_0x395179,_0x7411c0,_0x421476){const _0x14a8c9=a38_0x2664fe,_0x30938f=_0x7411c0[_0x14a8c9(0xa1)](_0x184dc7=>_0x184dc7[_0x14a8c9(0xc5)]===_0x14a8c9(0x8d));if(!_0x30938f)return{'aliasToDatasetCode':new Map(),'datasetCodeToDataset':new Map()};const _0x5753d6=loadAliasMap(_0x395179,undefined,resolveApiFilePath(_0x395179,_0x94ca94)),_0x5c65f0=new Map(_0x5753d6[_0x14a8c9(0x86)](_0x2f7576=>[_0x2f7576[_0x14a8c9(0xbe)],_0x2f7576[_0x14a8c9(0x78)]]));for(const _0x4c07ae of Object[_0x14a8c9(0xb9)](_0x421476['functions'])){_0x4c07ae['alias']&&_0x4c07ae[_0x14a8c9(0x78)]&&!_0x5c65f0['has'](_0x4c07ae[_0x14a8c9(0xbe)])&&_0x5c65f0['set'](_0x4c07ae[_0x14a8c9(0xbe)],_0x4c07ae[_0x14a8c9(0x78)]);}const _0x2ff789=await listDatasets(_0x94ca94),_0xb4301d=new Map(_0x2ff789[_0x14a8c9(0x86)](_0x59d896=>[_0x59d896['code'],_0x59d896]));return{'aliasToDatasetCode':_0x5c65f0,'datasetCodeToDataset':_0xb4301d};}async function uploadSingleFunction(_0x34353d,_0x359029,_0x1e7ccc,_0x20ac3b){const _0x18b04f=a38_0x2664fe,_0x3ab1e7=await readFile(_0x359029[_0x18b04f(0x95)],_0x18b04f(0xb7)),_0x2d3066=await computeFileHash(_0x359029['filePath']),_0x4aef94=_0x1e7ccc[_0x18b04f(0xac)][_0x359029[_0x18b04f(0x8e)]];if(_0x4aef94?.['remoteId']&&_0x4aef94[_0x18b04f(0x98)]==null)throw CliErrors[_0x18b04f(0xc0)](_0x359029[_0x18b04f(0x8e)]+_0x18b04f(0x7d));let _0x3d3730=extractScriptDescription(_0x3ab1e7);if(!_0x3d3730&&_0x4aef94?.[_0x18b04f(0x85)]){const _0xed8b30=await getBffScriptInfo(_0x4aef94[_0x18b04f(0x85)]);_0x3d3730=_0xed8b30[_0x18b04f(0x91)]||undefined;}const _0x1ae780={'appCode':_0x34353d,'functionName':_0x359029[_0x18b04f(0xa5)],'scriptType':_0x359029[_0x18b04f(0xc5)],'scriptContent':_0x3ab1e7};if(_0x4aef94?.[_0x18b04f(0x85)])_0x1ae780['id']=_0x4aef94[_0x18b04f(0x85)];if(_0x4aef94?.['version']!=null)_0x1ae780[_0x18b04f(0x98)]=_0x4aef94[_0x18b04f(0x98)];if(_0x3d3730)_0x1ae780[_0x18b04f(0x91)]=_0x3d3730;if(_0x359029['type']==='HOOK'){const _0x4a40b6=_0x359029['alias'];if(!_0x4a40b6||!_0x359029['operationType']||!_0x359029[_0x18b04f(0xa9)])throw CliErrors[_0x18b04f(0xc0)](_0x18b04f(0x99)+_0x359029[_0x18b04f(0x8e)]);const _0x4191ec=_0x20ac3b[_0x18b04f(0xaf)][_0x18b04f(0x90)](_0x4a40b6)??_0x4aef94?.[_0x18b04f(0x78)]??_0x4a40b6,_0x39ba85=_0x20ac3b['datasetCodeToDataset']['get'](_0x4191ec);if(!_0x39ba85)throw CliErrors['validation'](_0x18b04f(0xaa)+_0x4a40b6+_0x18b04f(0xae)+('Run\x20`'+CLI_BIN_NAME+_0x18b04f(0xc1)));_0x1ae780[_0x18b04f(0xc2)]=_0x39ba85['id'],_0x1ae780[_0x18b04f(0x79)]=_0x359029[_0x18b04f(0x79)],_0x1ae780[_0x18b04f(0xa9)]=_0x359029[_0x18b04f(0xa9)];}const _0x6b539e=await saveBffScript(_0x1ae780),_0x203f4d=_0x6b539e['id'],_0x17f825=_0x6b539e[_0x18b04f(0xa3)]??await getBffScriptInfo(_0x203f4d),_0x2a9d27={'hash':_0x2d3066,'remoteId':_0x203f4d,'version':_0x17f825[_0x18b04f(0x98)]};if(_0x359029[_0x18b04f(0xc5)]==='HOOK'){const _0x1fff94=_0x359029['alias'],_0x597674=_0x20ac3b[_0x18b04f(0xaf)][_0x18b04f(0x90)](_0x1fff94)??_0x4aef94?.[_0x18b04f(0x78)]??_0x1fff94;_0x20ac3b[_0x18b04f(0xaf)][_0x18b04f(0xa4)](_0x1fff94)?_0x2a9d27[_0x18b04f(0xbe)]=_0x1fff94:_0x2a9d27[_0x18b04f(0xbe)]=_0x4aef94?.[_0x18b04f(0xbe)],_0x2a9d27[_0x18b04f(0x78)]=_0x597674,_0x2a9d27[_0x18b04f(0x79)]=_0x359029['operationType'],_0x2a9d27[_0x18b04f(0xa9)]=_0x359029['functionNode'];}_0x1e7ccc[_0x18b04f(0xac)][_0x359029['lockKey']]=_0x2a9d27;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x5547c5,_0x3a40f4,_0x270d37){const _0x2dcef1=a38_0x2664fe;if(_0x270d37[_0x2dcef1(0x7e)]===0x0)return;for(let _0x22d557=0x0;_0x22d557<LOCK_SETTLE_RETRY_COUNT;_0x22d557+=0x1){const _0x3a590f=await readBffLockFile(_0x5547c5),_0x4a65b1=_0x3a590f?.[_0x2dcef1(0xa8)]?.[_0x3a40f4]?.['functions']??{},_0x4bd0cf=_0x270d37[_0x2dcef1(0xb5)](_0x1ddfa1=>!!_0x4a65b1[_0x1ddfa1]?.[_0x2dcef1(0x85)]);if(_0x4bd0cf)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error('Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20'+_0x270d37['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_0x5d129c=a39_0x55ba;(function(_0x426613,_0x45afaa){const _0x433174=a39_0x55ba,_0x44772d=_0x426613();while(!![]){try{const _0x4b64b9=parseInt(_0x433174(0x1dc))/0x1+parseInt(_0x433174(0x1e4))/0x2+-parseInt(_0x433174(0x1ee))/0x3+-parseInt(_0x433174(0x1e7))/0x4*(parseInt(_0x433174(0x1d8))/0x5)+-parseInt(_0x433174(0x1d4))/0x6*(-parseInt(_0x433174(0x1d2))/0x7)+parseInt(_0x433174(0x1e2))/0x8+-parseInt(_0x433174(0x1e8))/0x9;if(_0x4b64b9===_0x45afaa)break;else _0x44772d['push'](_0x44772d['shift']());}catch(_0x210caa){_0x44772d['push'](_0x44772d['shift']());}}}(a39_0xc268,0x75778));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';function a39_0x55ba(_0x14daa2,_0xee6873){_0x14daa2=_0x14daa2-0x1cf;const _0xc268e=a39_0xc268();let _0x55bab9=_0xc268e[_0x14daa2];return _0x55bab9;}function a39_0xc268(){const _0x281bea=['appCode','hash','datasetCode','10vdVfsO','\x20added,\x20','remote','lockFilePath','861374jOoPox','\x20unchanged','read','lockKey','bff','scriptsRoot','826256MNUvun','apiDir','1185822cypiBw','alias','has','943316SHfepV','6753915kgnEbc','bool','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','length','\x20modified,\x20','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','400149TVMsdC','filePath','map','functions','2527hZwQLM','push','4638VnapeZ'];a39_0xc268=function(){return _0x281bea;};return a39_0xc268();}import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a39_0x5d129c(0x1e0),'command':'status','description':a39_0x5d129c(0x1ed),'risk':a39_0x5d129c(0x1de),'flags':[{'name':'remote','type':'boolean','description':a39_0x5d129c(0x1ea)}],async 'execute'(_0x36efee){const _0x1615fa=a39_0x5d129c,_0x457a33=loadBffProjectConfig(_0x36efee[_0x1615fa(0x1d5)]),_0x2af399=await readBffLockFile(_0x457a33[_0x1615fa(0x1db)]),{appLock:_0x2b4d51}=ensureLockScope(_0x2af399??createEmptyBffLock(),_0x36efee['appCode'],_0x457a33[_0x1615fa(0x1e1)],'status'),_0x56b032=await scanLocalBffFunctions(_0x457a33),_0xac6544=[],_0x1d1784=[],_0x4f3b8f=[];for(const _0x7bca08 of _0x56b032){const _0x590426=await computeFileHash(_0x7bca08[_0x1615fa(0x1cf)]),_0x51b8ea=_0x2b4d51['functions'][_0x7bca08[_0x1615fa(0x1df)]];if(!_0x51b8ea)_0xac6544[_0x1615fa(0x1d3)](_0x7bca08['lockKey']);else _0x51b8ea[_0x1615fa(0x1d6)]!==_0x590426?_0x1d1784[_0x1615fa(0x1d3)](_0x7bca08[_0x1615fa(0x1df)]):_0x4f3b8f[_0x1615fa(0x1d3)](_0x7bca08['lockKey']);}const _0x24e106=[];if(_0x36efee[_0x1615fa(0x1e9)](_0x1615fa(0x1da))){const _0x5bb426=loadAliasMap(_0x36efee[_0x1615fa(0x1e3)],undefined,resolveApiFilePath(_0x36efee[_0x1615fa(0x1e3)],_0x36efee[_0x1615fa(0x1d5)])),_0x211ba0=new Map(_0x5bb426['map'](_0x7d705e=>[_0x7d705e[_0x1615fa(0x1d7)],_0x7d705e[_0x1615fa(0x1e5)]])),[_0x38e15a,_0x3c2258]=await Promise['all']([listBffScripts(_0x36efee[_0x1615fa(0x1d5)]),getBffScriptStatistics(_0x36efee['appCode'])]),_0xcd320a=createHookLocationMap(_0x3c2258),_0x27871f=new Set(_0x56b032[_0x1615fa(0x1d0)](_0x504cc8=>_0x504cc8[_0x1615fa(0x1df)]));for(const _0x247910 of _0x38e15a){const _0x347f86=resolveRemoteScriptTarget(_0x457a33,_0x247910,_0xcd320a,_0x2b4d51[_0x1615fa(0x1d1)],_0x211ba0);_0x347f86&&!_0x27871f[_0x1615fa(0x1e6)](_0x347f86['lockKey'])&&_0x24e106[_0x1615fa(0x1d3)](_0x347f86[_0x1615fa(0x1df)]);}}const _0x350eae=_0xac6544['length']===0x0&&_0x1d1784['length']===0x0&&_0x24e106['length']===0x0;return{'ok':!![],'data':{'added':_0xac6544,'modified':_0x1d1784,'unchanged':_0x4f3b8f,'remoteOnly':_0x24e106},'message':_0x350eae?'All\x20BFF\x20scripts\x20are\x20in\x20sync.':_0xac6544[_0x1615fa(0x1eb)]+_0x1615fa(0x1d9)+_0x1d1784[_0x1615fa(0x1eb)]+_0x1615fa(0x1ec)+_0x4f3b8f[_0x1615fa(0x1eb)]+_0x1615fa(0x1dd)+(_0x24e106[_0x1615fa(0x1eb)]>0x0?',\x20'+_0x24e106[_0x1615fa(0x1eb)]+'\x20remote-only':'')};}};
@@ -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_0x8fd598=a40_0x4340;function a40_0x4340(_0x1abfdf,_0x1a0fcc){_0x1abfdf=_0x1abfdf-0x189;const _0x1dedbd=a40_0x1ded();let _0x434027=_0x1dedbd[_0x1abfdf];return _0x434027;}(function(_0x43d68e,_0x2d5f78){const _0x48e786=a40_0x4340,_0x37311c=_0x43d68e();while(!![]){try{const _0x302415=-parseInt(_0x48e786(0x1b7))/0x1*(parseInt(_0x48e786(0x1a4))/0x2)+-parseInt(_0x48e786(0x1ab))/0x3*(parseInt(_0x48e786(0x189))/0x4)+parseInt(_0x48e786(0x1be))/0x5*(parseInt(_0x48e786(0x1bf))/0x6)+-parseInt(_0x48e786(0x1b1))/0x7+parseInt(_0x48e786(0x1aa))/0x8*(parseInt(_0x48e786(0x1d1))/0x9)+parseInt(_0x48e786(0x1a0))/0xa+parseInt(_0x48e786(0x19d))/0xb;if(_0x302415===_0x2d5f78)break;else _0x37311c['push'](_0x37311c['shift']());}catch(_0x758625){_0x37311c['push'](_0x37311c['shift']());}}}(a40_0x1ded,0xefee1));import a40_0x66258d from'chalk';import a40_0x13385b from'ora';import a40_0x5f3711 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 _0x2a05a6=a40_0x4340;return GIT_COMMIT!==_0x2a05a6(0x19e)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x2a05a6(0x1b4)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x65ebef=a40_0x4340,_0x4e19bf=process[_0x65ebef(0x196)][_0x65ebef(0x1bd)]();if(_0x4e19bf[_0x65ebef(0x18b)](_0x65ebef(0x1ce)))return _0x65ebef(0x1ce);return'npm';}const updateFlags=[{'name':'beta','type':a40_0x8fd598(0x18e),'description':a40_0x8fd598(0x1b6),'default':![]},{'name':'version','type':a40_0x8fd598(0x1ae),'description':a40_0x8fd598(0x1a2)},{'name':a40_0x8fd598(0x1c2),'type':a40_0x8fd598(0x18e),'description':a40_0x8fd598(0x1ac),'default':![]},{'name':a40_0x8fd598(0x1a9),'type':a40_0x8fd598(0x18e),'description':'Refresh\x20official\x20skill\x20package\x20after\x20updating','default':!![],'hidden':!![]}];function getRequestedVersion(_0x2219c4){const _0x29fb05=a40_0x8fd598;return _0x2219c4[_0x29fb05(0x1b9)](_0x29fb05(0x194))[_0x29fb05(0x199)]();}function shouldSkipOfficialSkill(_0x30e70d){const _0x45533e=a40_0x8fd598;return _0x30e70d[_0x45533e(0x1c3)]('no-skills')||_0x30e70d[_0x45533e(0x1c4)]('skills')===![];}async function validateUpdateFlags(_0x4188b7){const _0x5de750=a40_0x8fd598,_0x359677=_0x4188b7[_0x5de750(0x1c3)](_0x5de750(0x1a5)),_0x223402=getRequestedVersion(_0x4188b7);if(_0x359677&&_0x223402)throw CliErrors[_0x5de750(0x19b)](_0x5de750(0x1bb),_0x5de750(0x1c7));if(_0x223402&&!a40_0x5f3711['valid'](_0x223402))throw CliErrors[_0x5de750(0x19b)]('Invalid\x20version:\x20'+_0x223402,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0xf8a506=a40_0x8fd598;try{const _0x43b4a9=await fetch(_0xf8a506(0x1cc)+encodeURIComponent(NPM_PACKAGE_NAME)+_0xf8a506(0x1bc),{'signal':AbortSignal[_0xf8a506(0x18f)](0x2710)});if(!_0x43b4a9['ok'])return null;const _0x234b02=await _0x43b4a9[_0xf8a506(0x1c1)]();if(!_0x234b02||typeof _0x234b02!==_0xf8a506(0x18c))return null;return Object['fromEntries'](Object['entries'](_0x234b02)['filter'](([,_0x4cfc88])=>typeof _0x4cfc88==='string'&&_0x4cfc88['trim']()['length']>0x0)[_0xf8a506(0x1d3)](([_0x337734,_0x18d055])=>[_0x337734,String(_0x18d055)['trim']()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x54f069){const _0x96ac2f=await fetchNpmDistTags();return _0x96ac2f?.[_0x54f069]??null;}function a40_0x1ded(){const _0x5a579f=['Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','boolean','timeout','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','install','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','inherit','version','pipe','execPath','\x20→\x20','Requested\x20version:\x20','trim','fail','validation','message','28248253MYkbdH','unknown','\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','6872510wiapkn','yellow','Install\x20a\x20specific\x20CLI\x20version','Update\x20available:\x20','50564puCFPX','beta','Checking\x20official\x20skill\x20package...','green','log','skills','10069432cTVLDD','244227KjmFEJ','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','warn','string','nonInteractive','gray','11924829VROMbx','succeed','error','slice','\x20\x20Try\x20manually:\x20','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','66uYAvsP','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','str','npm','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','/dist-tags','toLowerCase','1655ZJAolx','11874GtaRQU','write','json','no-skills','bool','flag','Skipping\x20official\x20skill\x20package\x20(--no-skills).','source','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','Version\x20comparison\x20failed','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','Updated\x20to\x20v','Checking\x20for\x20updates...','https://registry.npmjs.org/-/package/','run','bun','\x20\x20Official\x20skill\x20update\x20failed:\x20','info','9kvFbwS','latest','map','...','40IsnXNV','start','includes','object'];a40_0x1ded=function(){return _0x5a579f;};return a40_0x1ded();}async function fetchLatestVersion(){const _0x1094a0=a40_0x8fd598;return fetchNpmDistTagVersion(_0x1094a0(0x1d2));}async function resolveTargetVersion(_0x1af967){const _0x5bdd34=a40_0x8fd598,_0x52117e=getRequestedVersion(_0x1af967);if(_0x52117e)return{'version':_0x52117e,'source':_0x5bdd34(0x194)};if(_0x1af967[_0x5bdd34(0x1c3)](_0x5bdd34(0x1a5))){const _0x3f9886=await fetchNpmDistTagVersion(_0x5bdd34(0x1a5));if(!_0x3f9886)return null;return{'version':_0x3f9886,'source':_0x5bdd34(0x1a5)};}const _0x2dbf0d=await fetchLatestVersion();if(!_0x2dbf0d)return null;return{'version':_0x2dbf0d,'source':_0x5bdd34(0x1d2)};}function shouldInstallTarget(_0x5a3362,_0x43ff92){const _0x57d0df=a40_0x8fd598;if(_0x43ff92['source']==='version'||_0x43ff92['source']===_0x57d0df(0x1a5))return!a40_0x5f3711['eq'](_0x5a3362,_0x43ff92['version']);return a40_0x5f3711['lt'](_0x5a3362,_0x43ff92['version']);}function getInstallPlanLabel(_0x5b384e,_0x2a8601){const _0x5714f5=a40_0x8fd598;switch(_0x2a8601[_0x5714f5(0x1c6)]){case'beta':return'Beta\x20version:\x20'+a40_0x66258d['yellow'](_0x5b384e)+'\x20→\x20'+a40_0x66258d[_0x5714f5(0x1a7)](_0x2a8601[_0x5714f5(0x194)]);case _0x5714f5(0x194):return _0x5714f5(0x198)+a40_0x66258d[_0x5714f5(0x1a1)](_0x5b384e)+_0x5714f5(0x197)+a40_0x66258d[_0x5714f5(0x1a7)](_0x2a8601[_0x5714f5(0x194)]);case _0x5714f5(0x1d2):default:return _0x5714f5(0x1a3)+a40_0x66258d[_0x5714f5(0x1a1)](_0x5b384e)+_0x5714f5(0x197)+a40_0x66258d[_0x5714f5(0x1a7)](_0x2a8601[_0x5714f5(0x194)]);}}async function installOfficialSkill(_0x480904){const _0x56e0c8=a40_0x8fd598;console['log'](a40_0x66258d[_0x56e0c8(0x1b0)](_0x56e0c8(0x1a6)));const _0x571595=runNpxSkillsAddGlobal(process['cwd'](),RABETBASE_SKILL_SOURCE,{'stdio':_0x480904?_0x56e0c8(0x195):_0x56e0c8(0x193)});if(_0x571595['skipped']){console['log'](a40_0x66258d[_0x56e0c8(0x1b0)](_0x56e0c8(0x19f)));return;}if(_0x571595['ok']){console[_0x56e0c8(0x1a8)](a40_0x66258d[_0x56e0c8(0x1b0)](_0x56e0c8(0x1c9)));return;}console[_0x56e0c8(0x1ad)](a40_0x66258d[_0x56e0c8(0x1a1)](_0x56e0c8(0x1cf)+(_0x571595[_0x56e0c8(0x1b3)]||_0x56e0c8(0x19e)))),console[_0x56e0c8(0x1a8)](a40_0x66258d[_0x56e0c8(0x1b0)]('\x20\x20Run\x20manually:\x20'+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x468f01){const _0x332b6f=a40_0x8fd598;await validateUpdateFlags(_0x468f01);const _0x38be87=getCurrentVersion();console['log']('Current\x20version:\x20'+_0x38be87);const _0x3562e2=a40_0x13385b(_0x332b6f(0x1cb))['start'](),_0x910eeb=await resolveTargetVersion(_0x468f01);if(!_0x910eeb){const _0x478f8a=_0x468f01[_0x332b6f(0x1c3)]('beta')?_0x332b6f(0x1b8):_0x332b6f(0x192);return _0x3562e2[_0x332b6f(0x19a)](_0x478f8a),console[_0x332b6f(0x1a8)](a40_0x66258d[_0x332b6f(0x1b0)](_0x332b6f(0x190)+NPM_PACKAGE_NAME+'@latest')),{'ok':![],'message':_0x478f8a};}const _0x5b9661=a40_0x5f3711['valid'](VERSION),_0x529460=a40_0x5f3711['valid'](_0x910eeb['version']);if(!_0x5b9661||!_0x529460)return _0x3562e2[_0x332b6f(0x19a)](_0x332b6f(0x1c8)),{'ok':![],'message':_0x332b6f(0x1c8)};if(!shouldInstallTarget(_0x5b9661,_0x910eeb)){const _0x20eb3f=_0x910eeb[_0x332b6f(0x1c6)]==='version'?'Already\x20on\x20requested\x20version\x20(v'+_0x910eeb['version']+')':'Already\x20up\x20to\x20date\x20(v'+_0x910eeb[_0x332b6f(0x194)]+')';return _0x3562e2[_0x332b6f(0x1b2)](_0x20eb3f),shouldSkipOfficialSkill(_0x468f01)?console[_0x332b6f(0x1a8)](a40_0x66258d['gray'](_0x332b6f(0x1c5))):await installOfficialSkill(_0x468f01[_0x332b6f(0x1af)]),{'ok':!![]};}_0x3562e2[_0x332b6f(0x1d0)](getInstallPlanLabel(_0x38be87,_0x910eeb));const _0x966377=detectPackageManager(),_0x1c8c41=_0x966377===_0x332b6f(0x1ba)?resolveNpmBin(_0x332b6f(0x1ba)):_0x966377,_0x267ac3=a40_0x13385b('Updating\x20via\x20'+_0x966377+_0x332b6f(0x1d4))[_0x332b6f(0x18a)]();try{return await execa(_0x1c8c41,[_0x332b6f(0x191),'-g',NPM_PACKAGE_NAME+'@'+_0x910eeb['version']],{'stdio':_0x332b6f(0x195)}),_0x267ac3['succeed'](_0x332b6f(0x1ca)+_0x910eeb[_0x332b6f(0x194)]),console['log'](a40_0x66258d[_0x332b6f(0x1b0)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),shouldSkipOfficialSkill(_0x468f01)?console['log'](a40_0x66258d[_0x332b6f(0x1b0)](_0x332b6f(0x1c5))):await installOfficialSkill(_0x468f01[_0x332b6f(0x1af)]),{'ok':!![]};}catch(_0x98715e){return _0x267ac3[_0x332b6f(0x19a)]('Update\x20failed'),console['error'](a40_0x66258d['red']('\x20\x20'+_0x98715e['message'])),console['log'](a40_0x66258d[_0x332b6f(0x1b0)](_0x332b6f(0x1b5)+_0x966377+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x910eeb['version'])),{'ok':![],'message':_0x98715e[_0x332b6f(0x19c)]};}}export const updateDefinition={'service':'update','command':a40_0x8fd598(0x1cd),'description':a40_0x8fd598(0x18d),'risk':a40_0x8fd598(0x1c0),'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(_0x503e49,_0x133e9c){const _0x37e6b5=a41_0x2642,_0x43fb4d=_0x503e49();while(!![]){try{const _0x338132=parseInt(_0x37e6b5(0x155))/0x1+parseInt(_0x37e6b5(0x153))/0x2+-parseInt(_0x37e6b5(0x156))/0x3+-parseInt(_0x37e6b5(0x158))/0x4*(-parseInt(_0x37e6b5(0x159))/0x5)+-parseInt(_0x37e6b5(0x157))/0x6+-parseInt(_0x37e6b5(0x154))/0x7+parseInt(_0x37e6b5(0x15a))/0x8;if(_0x338132===_0x133e9c)break;else _0x43fb4d['push'](_0x43fb4d['shift']());}catch(_0x4020be){_0x43fb4d['push'](_0x43fb4d['shift']());}}}(a41_0x59fb,0xc34ea));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';function a41_0x2642(_0x1bd453,_0x3aeccc){_0x1bd453=_0x1bd453-0x153;const _0x59fbe0=a41_0x59fb();let _0x26423c=_0x59fbe0[_0x1bd453];return _0x26423c;}function a41_0x59fb(){const _0x4feb0f=['556394fOGVpf','3779739QgmKWZ','2193870tWdsol','65180JxHBwl','170kOFpBO','9449504SHLEFZ','2000578KDQQHe','6064555vXDqQa'];a41_0x59fb=function(){return _0x4feb0f;};return a41_0x59fb();}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_0xa6011d=a42_0x3f88;(function(_0x3a849a,_0x119e0d){const _0x5a7edb=a42_0x3f88,_0x1f01d8=_0x3a849a();while(!![]){try{const _0x411df6=-parseInt(_0x5a7edb(0xd0))/0x1*(parseInt(_0x5a7edb(0xc9))/0x2)+-parseInt(_0x5a7edb(0xcb))/0x3*(-parseInt(_0x5a7edb(0xc7))/0x4)+-parseInt(_0x5a7edb(0xd5))/0x5+parseInt(_0x5a7edb(0xd3))/0x6*(-parseInt(_0x5a7edb(0xcc))/0x7)+-parseInt(_0x5a7edb(0xbc))/0x8+-parseInt(_0x5a7edb(0xbb))/0x9*(-parseInt(_0x5a7edb(0xca))/0xa)+-parseInt(_0x5a7edb(0xc5))/0xb*(-parseInt(_0x5a7edb(0xcd))/0xc);if(_0x411df6===_0x119e0d)break;else _0x1f01d8['push'](_0x1f01d8['shift']());}catch(_0x1c7cd9){_0x1f01d8['push'](_0x1f01d8['shift']());}}}(a42_0x2fd7,0x4fa88));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';function a42_0x3f88(_0x2d9a4e,_0x778c87){_0x2d9a4e=_0x2d9a4e-0xba;const _0x2fd742=a42_0x2fd7();let _0x3f8898=_0x2fd742[_0x2d9a4e];return _0x3f8898;}import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a42_0x2fd7(){const _0x7f8cc5=['sdk','name','71kJhcOU','boolean','tableName','1491822QgTYZN','Omit\x20import\x20statements\x20from\x20generated\x20code','930615TsGHDx','bool','3997881nlGurB','3793640BvrUmy','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','code','string','read','alias','skip-imports','22kRyeLr','operation','11576djQFwa','str','844yDAiIV','10vozgLq','453wyxuuE','7wSYfpX','2304024qGrdcE'];a42_0x2fd7=function(){return _0x7f8cc5;};return a42_0x2fd7();}export const codegenSdk={'service':'codegen','command':a42_0xa6011d(0xce),'description':a42_0xa6011d(0xbf),'risk':a42_0xa6011d(0xc2),'flags':[CODE_FLAG_OPTIONAL,{'name':a42_0xa6011d(0xc3),'type':'string','description':a42_0xa6011d(0xbd)},{'name':a42_0xa6011d(0xc6),'type':a42_0xa6011d(0xc1),'required':!![],'description':a42_0xa6011d(0xbe)},{'name':a42_0xa6011d(0xc4),'type':a42_0xa6011d(0xd1),'description':a42_0xa6011d(0xd4)}],async 'execute'(_0x2b9276){const _0x198aaf=a42_0xa6011d,{dataset:_0x1090b3,operation:_0x29a233}=await getOperationDetail(_0x2b9276['appCode'],_0x2b9276[_0x198aaf(0xc8)](_0x198aaf(0xc0)),_0x2b9276[_0x198aaf(0xc8)](_0x198aaf(0xc6))),_0xb869da=generateSdkCode(_0x1090b3,_0x29a233,{'includeImports':!_0x2b9276[_0x198aaf(0xba)](_0x198aaf(0xc4))});return{'ok':!![],'data':{'dataset':{'name':_0x1090b3[_0x198aaf(0xcf)],'code':_0x1090b3[_0x198aaf(0xc0)],'tableName':_0x1090b3[_0x198aaf(0xd2)]},'operation':_0x2b9276[_0x198aaf(0xc8)]('operation'),'code':_0xb869da}};}};
@@ -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_0xa242e9=a43_0x13ee;function a43_0x13ee(_0x311f30,_0x27be8a){_0x311f30=_0x311f30-0x1c4;const _0x5a94d1=a43_0x5a94();let _0x13ee8a=_0x5a94d1[_0x311f30];return _0x13ee8a;}(function(_0x18d61d,_0x24bdad){const _0x2fedc5=a43_0x13ee,_0x1f3ceb=_0x18d61d();while(!![]){try{const _0x50bfbb=-parseInt(_0x2fedc5(0x1ca))/0x1*(-parseInt(_0x2fedc5(0x1d7))/0x2)+parseInt(_0x2fedc5(0x1c8))/0x3+parseInt(_0x2fedc5(0x1d5))/0x4+-parseInt(_0x2fedc5(0x1d0))/0x5+parseInt(_0x2fedc5(0x1d9))/0x6+parseInt(_0x2fedc5(0x1d4))/0x7*(-parseInt(_0x2fedc5(0x1c6))/0x8)+parseInt(_0x2fedc5(0x1d2))/0x9*(-parseInt(_0x2fedc5(0x1c7))/0xa);if(_0x50bfbb===_0x24bdad)break;else _0x1f3ceb['push'](_0x1f3ceb['shift']());}catch(_0x2cfc6e){_0x1f3ceb['push'](_0x1f3ceb['shift']());}}}(a43_0x5a94,0xb7082));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a43_0x5a94(){const _0x3dfc70=['7698624QEzjMk','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','bool','674904IXVAvw','110VbQQHg','4028301prOyar','appCode','42MmJqyj','sqlCode','sdk','string','str','codegen','5516540dZqamm','bff','2659671QNdoso','sql','21irYqeX','5986716KitYCG','no-imports','58774PqSJoo','target'];a43_0x5a94=function(){return _0x3dfc70;};return a43_0x5a94();}export const codegenSql={'service':a43_0xa242e9(0x1cf),'command':a43_0xa242e9(0x1d3),'description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':'read','flags':[SQLCODE_FLAG,{'name':a43_0xa242e9(0x1d8),'type':a43_0xa242e9(0x1cd),'description':a43_0xa242e9(0x1c4),'default':a43_0xa242e9(0x1cc),'enum':['sdk',a43_0xa242e9(0x1d1)]},{'name':a43_0xa242e9(0x1d6),'type':'boolean','description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x38ddbb){const _0x2d0820=a43_0xa242e9,_0x289afc=await getSqlQueryInfo(_0x38ddbb[_0x2d0820(0x1c9)],_0x38ddbb['str']('sqlcode')),_0x1e76c2=_0x38ddbb[_0x2d0820(0x1ce)]('target')||_0x2d0820(0x1cc),_0x57ae03=generateSqlCodeTemplate(_0x289afc,{'target':_0x1e76c2,'includeImports':!_0x38ddbb[_0x2d0820(0x1c5)](_0x2d0820(0x1d6))});return{'ok':!![],'data':{'sqlCode':_0x289afc[_0x2d0820(0x1cb)],'sqlName':_0x289afc['sqlName'],'target':_0x1e76c2,'code':_0x57ae03}};}};
@@ -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 a44_0x4168(_0x14f49d,_0x3afa9e){_0x14f49d=_0x14f49d-0x1f4;const _0x5937a8=a44_0x5937();let _0x4168f3=_0x5937a8[_0x14f49d];return _0x4168f3;}(function(_0x3b4685,_0x163a37){const _0x3fcb1f=a44_0x4168,_0x167c2b=_0x3b4685();while(!![]){try{const _0x396047=parseInt(_0x3fcb1f(0x209))/0x1+parseInt(_0x3fcb1f(0x20f))/0x2+parseInt(_0x3fcb1f(0x1f6))/0x3+parseInt(_0x3fcb1f(0x216))/0x4*(parseInt(_0x3fcb1f(0x1fd))/0x5)+-parseInt(_0x3fcb1f(0x211))/0x6*(parseInt(_0x3fcb1f(0x1fb))/0x7)+parseInt(_0x3fcb1f(0x1f5))/0x8+-parseInt(_0x3fcb1f(0x20d))/0x9;if(_0x396047===_0x163a37)break;else _0x167c2b['push'](_0x167c2b['shift']());}catch(_0x5a6c16){_0x167c2b['push'](_0x167c2b['shift']());}}}(a44_0x5937,0x1f89c));import{input,checkbox,select}from'@inquirer/prompts';import a44_0x5188dd from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function a44_0x5937(){const _0x25447e=['appCode','7TUgVGq','find','800Ytpgzr','map','cyan','appName','custom','\x20\x20(','\x0a未找到可用应用。','未找到可用应用。','无法获取远程应用列表,请手动输入。','请选择要绑定的应用:','(跳过,稍后配置)','yellow','257541SJeXcc','trim','\x0a无法获取远程应用列表,请手动输入。','skip','3370941cvAZpj','manual','410894ZKfEkF','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','1290858oulTwN','Invalid\x20App\x20Code','✎\x20自定义输入\x20appcode','✎\x20手动输入','message','3944feCveD','valid','gray','请输入\x20App\x20Code:','166808wJYmtB','231819DgPnWa','length','App\x20Code:','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)'];a44_0x5937=function(){return _0x25447e;};return a44_0x5937();}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x12eab5=a44_0x4168,_0x5f3f14=await input({'message':_0x12eab5(0x1f4),'validate':_0xa48c79=>{const _0x268738=_0x12eab5,_0x11ed90=validateAppcode(_0xa48c79['trim']());return _0x11ed90[_0x268738(0x217)]||_0x11ed90[_0x268738(0x215)]||_0x268738(0x212);}});return _0x5f3f14[_0x12eab5(0x20a)]();}export async function promptAppSelection(_0x4098f3){const _0x4a78de=a44_0x4168,_0x224c53=[{'name':a44_0x5188dd[_0x4a78de(0x208)](_0x4a78de(0x213)),'value':-0x1},..._0x4098f3[_0x4a78de(0x1fe)]((_0x2dc1aa,_0x2f5221)=>({'name':_0x2dc1aa[_0x4a78de(0x200)]+'\x20\x20'+a44_0x5188dd[_0x4a78de(0x218)]('('+_0x2dc1aa['appCode']+')'),'value':_0x2f5221}))],_0x59eec6=await checkbox({'message':'获取到\x20'+a44_0x5188dd[_0x4a78de(0x1ff)](_0x4098f3['length'])+_0x4a78de(0x210),'choices':_0x224c53,'loop':![]});if(_0x59eec6['includes'](-0x1))return'custom';if(_0x59eec6['length']===0x0)return _0x4a78de(0x201);return _0x59eec6[_0x4a78de(0x1fe)](_0x27575e=>_0x4098f3[_0x27575e]);}export async function promptSingleAppSelection(_0x326482){const _0x4d01f5=a44_0x4168,_0x548621=[{'name':a44_0x5188dd[_0x4d01f5(0x218)]('(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)'),'value':_0x4d01f5(0x20c)},{'name':a44_0x5188dd[_0x4d01f5(0x208)]('✎\x20自定义输入\x20appcode'),'value':'custom'},..._0x326482[_0x4d01f5(0x1fe)](_0x2dadc2=>({'name':_0x2dadc2[_0x4d01f5(0x200)]+'\x20\x20'+a44_0x5188dd['gray']('('+_0x2dadc2[_0x4d01f5(0x1fa)]+')'),'value':_0x2dadc2[_0x4d01f5(0x1fa)]}))],_0x59ae85=await select({'message':_0x4d01f5(0x206),'choices':_0x548621});if(_0x59ae85===_0x4d01f5(0x20c))return _0x4d01f5(0x20c);if(_0x59ae85===_0x4d01f5(0x201))return _0x4d01f5(0x201);return _0x326482[_0x4d01f5(0x1fc)](_0xc8c315=>_0xc8c315['appCode']===_0x59ae85);}export async function selectSingleAppcode(_0x3adf1b){const _0x1e5ba2=a44_0x4168;if(!_0x3adf1b)return writeCliSideChannelLine(a44_0x5188dd[_0x1e5ba2(0x218)](_0x1e5ba2(0x1f9))),_fallbackOrSkip();writeCliSideChannelLine('正在获取可用应用列表...');let _0x4b4768;try{_0x4b4768=await withActiveCookie(_0x3adf1b,()=>listRemoteApps());}catch(_0xf9f050){writeCliSideChannelLine(a44_0x5188dd[_0x1e5ba2(0x208)](_0x1e5ba2(0x205)));if(_0xf9f050 instanceof Error)writeCliSideChannelLine(a44_0x5188dd['gray']('\x20\x20('+_0xf9f050['message']+')'));return _fallbackOrSkip();}if(_0x4b4768[_0x1e5ba2(0x1f7)]===0x0)return writeCliSideChannelLine(a44_0x5188dd[_0x1e5ba2(0x208)](_0x1e5ba2(0x204))),_fallbackOrSkip();const _0x3e1311=await promptSingleAppSelection(_0x4b4768);if(_0x3e1311===_0x1e5ba2(0x20c))return'';if(_0x3e1311===_0x1e5ba2(0x201))return promptCustomAppcode();return _0x3e1311[_0x1e5ba2(0x1fa)];}export async function selectMultipleApps(_0x503c3d){const _0x59ad4b=a44_0x4168;writeCliSideChannelLine('正在获取可用应用列表...');let _0x1479cb;try{_0x1479cb=await withActiveCookie(_0x503c3d,()=>listRemoteApps());}catch(_0x55d995){writeCliSideChannelLine(_0x59ad4b(0x20b));if(_0x55d995 instanceof Error)writeCliSideChannelLine(_0x59ad4b(0x202)+_0x55d995[_0x59ad4b(0x215)]+')');return _0x59ad4b(0x201);}if(_0x1479cb[_0x59ad4b(0x1f7)]===0x0)return writeCliSideChannelLine(_0x59ad4b(0x203)),_0x59ad4b(0x201);return promptAppSelection(_0x1479cb);}async function _fallbackOrSkip(){const _0x5d5ecb=a44_0x4168,_0x2cbcc8=await select({'message':_0x5d5ecb(0x1f8),'choices':[{'name':a44_0x5188dd[_0x5d5ecb(0x218)](_0x5d5ecb(0x207)),'value':_0x5d5ecb(0x20c)},{'name':a44_0x5188dd[_0x5d5ecb(0x208)](_0x5d5ecb(0x214)),'value':_0x5d5ecb(0x20e)}]});if(_0x2cbcc8===_0x5d5ecb(0x20c))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_0x379aea=a45_0x4619;(function(_0x5230e9,_0x4103f0){const _0x1ba7f5=a45_0x4619,_0x388758=_0x5230e9();while(!![]){try{const _0x2d1f4a=parseInt(_0x1ba7f5(0xc1))/0x1+parseInt(_0x1ba7f5(0xcd))/0x2*(-parseInt(_0x1ba7f5(0xcf))/0x3)+-parseInt(_0x1ba7f5(0xbd))/0x4+-parseInt(_0x1ba7f5(0xbf))/0x5*(-parseInt(_0x1ba7f5(0xc2))/0x6)+-parseInt(_0x1ba7f5(0xc9))/0x7*(parseInt(_0x1ba7f5(0xce))/0x8)+parseInt(_0x1ba7f5(0xcc))/0x9+parseInt(_0x1ba7f5(0xc4))/0xa;if(_0x2d1f4a===_0x4103f0)break;else _0x388758['push'](_0x388758['shift']());}catch(_0xc76525){_0x388758['push'](_0x388758['shift']());}}}(a45_0x55c4,0x9568f));function a45_0x55c4(){const _0x119a23=['1692929ukcvsT','appcode','sqlcode','3917079uhUOlO','666286FeKzyy','16xspxAF','3ewNynV','code','string','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','2991808plYUEt','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','6485Laldne','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','628715sqLVrg','1212ZCdafY','Dataset\x20code\x20(32-char\x20hex\x20UUID)','8508320uopubH','number','datasetcode','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','POSTGRESQL'];a45_0x55c4=function(){return _0x119a23;};return a45_0x55c4();}export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a45_0x379aea(0xd2)};function a45_0x4619(_0x3d63b,_0x111957){_0x3d63b=_0x3d63b-0xbd;const _0x55c401=a45_0x55c4();let _0x4619a5=_0x55c401[_0x3d63b];return _0x4619a5;}export const CODE_FLAG={'name':a45_0x379aea(0xd0),'type':a45_0x379aea(0xd1),'required':!![],'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)','pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a45_0x379aea(0xc6),'description':a45_0x379aea(0xc3)};export const SQLCODE_FLAG={'name':a45_0x379aea(0xcb),'type':'string','required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a45_0x379aea(0xbe)}};export const APPCODE_FLAG_OPTIONAL={'name':a45_0x379aea(0xca),'type':a45_0x379aea(0xd1),'required':![],'description':a45_0x379aea(0xc0)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a45_0x379aea(0xc5),'required':!![],'description':a45_0x379aea(0xc7)};export const DB_TYPE_FLAG={'name':'dbtype','type':a45_0x379aea(0xd1),'required':!![],'description':'Database\x20product\x20type','enum':['MYSQL',a45_0x379aea(0xc8)]};
@@ -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(_0x1b3f60,_0xbeaf08){const _0x20db9a=a46_0x32d4,_0x34236d=_0x1b3f60();while(!![]){try{const _0x24ba41=parseInt(_0x20db9a(0x115))/0x1*(-parseInt(_0x20db9a(0x116))/0x2)+-parseInt(_0x20db9a(0x112))/0x3+parseInt(_0x20db9a(0x11c))/0x4+-parseInt(_0x20db9a(0x11e))/0x5+parseInt(_0x20db9a(0x11a))/0x6*(-parseInt(_0x20db9a(0x118))/0x7)+parseInt(_0x20db9a(0x11d))/0x8+parseInt(_0x20db9a(0x119))/0x9;if(_0x24ba41===_0xbeaf08)break;else _0x34236d['push'](_0x34236d['shift']());}catch(_0x14fbaa){_0x34236d['push'](_0x34236d['shift']());}}}(a46_0x35f3,0x95bc6));export function validateAppcode(_0x168b7a){const _0x31aa8c=a46_0x32d4,_0x1b672c=_0x168b7a[_0x31aa8c(0x117)]();if(!_0x1b672c)return{'valid':![],'message':_0x31aa8c(0x114)};if(_0x1b672c['length']>0x64)return{'valid':![],'message':_0x31aa8c(0x113)};if(!/^[A-Za-z0-9_-]+$/[_0x31aa8c(0x11b)](_0x1b672c))return{'valid':![],'message':_0x31aa8c(0x111)};return{'valid':!![]};}function a46_0x32d4(_0x2c2802,_0x4af73f){_0x2c2802=_0x2c2802-0x111;const _0x35f39b=a46_0x35f3();let _0x32d4fa=_0x35f39b[_0x2c2802];return _0x32d4fa;}function a46_0x35f3(){const _0x375cd3=['App\x20Code\x20cannot\x20be\x20empty','602913RvKSoq','2jpdBdc','trim','14OPYoTG','28982628KCwZNT','1923018tYwKfO','test','635912wOcAqC','5053568wAbiZl','5711790piQbfP','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','3034113DxvCzt','App\x20Code\x20cannot\x20exceed\x20100\x20characters'];a46_0x35f3=function(){return _0x375cd3;};return a46_0x35f3();}
@@ -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
+ const a47_0x360463=a47_0x35ed;(function(_0x1a64a4,_0x596693){const _0x271c07=a47_0x35ed,_0x45d414=_0x1a64a4();while(!![]){try{const _0x143372=parseInt(_0x271c07(0xb8))/0x1*(parseInt(_0x271c07(0xa3))/0x2)+-parseInt(_0x271c07(0xa5))/0x3+-parseInt(_0x271c07(0xac))/0x4*(-parseInt(_0x271c07(0xb4))/0x5)+-parseInt(_0x271c07(0xae))/0x6*(parseInt(_0x271c07(0xaf))/0x7)+parseInt(_0x271c07(0xa6))/0x8+parseInt(_0x271c07(0xb2))/0x9+parseInt(_0x271c07(0xa0))/0xa*(-parseInt(_0x271c07(0xa9))/0xb);if(_0x143372===_0x596693)break;else _0x45d414['push'](_0x45d414['shift']());}catch(_0x3294d3){_0x45d414['push'](_0x45d414['shift']());}}}(a47_0x370a,0x3354b));import{CliErrors}from'../../errors.js';function a47_0x35ed(_0x464d01,_0x30ecaf){_0x464d01=_0x464d01-0xa0;const _0x370abc=a47_0x370a();let _0x35ede6=_0x370abc[_0x464d01];return _0x35ede6;}import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x2d0fea){const _0x508ce9=a47_0x35ed,_0x2ba56=_0x2d0fea[_0x508ce9(0xa1)](_0x508ce9(0xad));if(!_0x2ba56)throw CliErrors[_0x508ce9(0xa4)](_0x508ce9(0xb7),_0x508ce9(0xa8)+CLI_BIN_NAME+_0x508ce9(0xa2));const _0x42e7dd=readConfig(),_0xb78a4b=_0x2ba56===_0x508ce9(0xb0)?_0x508ce9(0xb6):_0x2ba56,_0x342235=_0x42e7dd[_0xb78a4b];if(_0x342235===undefined)throw CliErrors[_0x508ce9(0xa4)]('Key\x20not\x20found:\x20'+_0x2ba56);return{'ok':!![],'data':typeof _0x342235===_0x508ce9(0xab)?_0x342235:{[_0xb78a4b]:_0x342235},'message':typeof _0x342235==='object'?undefined:String(_0x342235)};}export const configGetDefinition={'service':a47_0x360463(0xb3),'command':a47_0x360463(0xb1),'description':a47_0x360463(0xa7),'risk':a47_0x360463(0xb5),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a47_0x360463(0xad),'type':a47_0x360463(0xaa),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};function a47_0x370a(){const _0x16efce=['5131hBGcwc','app','get','718614gyqlsf','config','2535YtXXmU','read','appcode','Missing\x20key.','2trsNDA','4274570jHjzRx','str','\x20config\x20get\x20--key\x20<key>','164354iiyzbn','validation','903645WAnkjH','3091296sBcGrR','Get\x20a\x20config\x20value\x20by\x20key','Usage:\x20','11GcqIye','string','object','2444GOWTrS','key','12QCTyvv'];a47_0x370a=function(){return _0x16efce;};return a47_0x370a();}
@@ -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 a48_0x1a89(){const _0x243d1a=['3658344rQMqKO','462359sOusbf','28pwumzM','1228356zURpFL','7lfDEAm','4977396ClKLee','894396mSyHDy','1154718gBVHNP','420STkEAh'];a48_0x1a89=function(){return _0x243d1a;};return a48_0x1a89();}(function(_0x13810f,_0x299b5b){const _0x29172e=a48_0x3c84,_0x5a3f92=_0x13810f();while(!![]){try{const _0x34da35=parseInt(_0x29172e(0x16b))/0x1+-parseInt(_0x29172e(0x170))/0x2+parseInt(_0x29172e(0x171))/0x3+-parseInt(_0x29172e(0x16c))/0x4*(parseInt(_0x29172e(0x172))/0x5)+-parseInt(_0x29172e(0x16d))/0x6+parseInt(_0x29172e(0x16e))/0x7*(-parseInt(_0x29172e(0x16a))/0x8)+parseInt(_0x29172e(0x16f))/0x9;if(_0x34da35===_0x299b5b)break;else _0x5a3f92['push'](_0x5a3f92['shift']());}catch(_0x5e2c8d){_0x5a3f92['push'](_0x5a3f92['shift']());}}}(a48_0x1a89,0x46ec8));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a48_0x3c84(_0x341364,_0x5c5ef6){_0x341364=_0x341364-0x16a;const _0x1a89e6=a48_0x1a89();let _0x3c84db=_0x1a89e6[_0x341364];return _0x3c84db;}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
+ function a49_0x2c76(){const _0x1f0cbb=['List\x20all\x20config\x20values','311344GmGvKR','global','2023zRNiyC','boolean','config','1968756twIkXj','226341MEjfbl','128614fVXLAe','bool','2872sYSOSQ','list','15SFaSeD','227764iwtrXI','read','50spFZsH','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','939440pzxUOP'];a49_0x2c76=function(){return _0x1f0cbb;};return a49_0x2c76();}const a49_0xa24847=a49_0xce6d;(function(_0xf93602,_0x2e0f78){const _0xccfc5d=a49_0xce6d,_0x3caf78=_0xf93602();while(!![]){try{const _0x35bc08=parseInt(_0xccfc5d(0x74))/0x1+-parseInt(_0xccfc5d(0x6d))/0x2+-parseInt(_0xccfc5d(0x78))/0x3*(-parseInt(_0xccfc5d(0x79))/0x4)+-parseInt(_0xccfc5d(0x7d))/0x5+parseInt(_0xccfc5d(0x72))/0x6+parseInt(_0xccfc5d(0x6f))/0x7*(-parseInt(_0xccfc5d(0x76))/0x8)+parseInt(_0xccfc5d(0x73))/0x9*(-parseInt(_0xccfc5d(0x7b))/0xa);if(_0x35bc08===_0x2e0f78)break;else _0x3caf78['push'](_0x3caf78['shift']());}catch(_0xd1b921){_0x3caf78['push'](_0x3caf78['shift']());}}}(a49_0x2c76,0x291c5));function a49_0xce6d(_0x225197,_0x745585){_0x225197=_0x225197-0x6c;const _0x2c7647=a49_0x2c76();let _0xce6dad=_0x2c7647[_0x225197];return _0xce6dad;}import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x2dfccf){const _0x383f0f=a49_0xce6d,_0x487592=_0x2dfccf[_0x383f0f(0x75)](_0x383f0f(0x6e))?readScopedConfig(_0x383f0f(0x6e)):readConfig();return{'ok':!![],'data':_0x487592};}export const configListDefinition={'service':a49_0xa24847(0x71),'command':a49_0xa24847(0x77),'description':a49_0xa24847(0x6c),'risk':a49_0xa24847(0x7a),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a49_0xa24847(0x6e),'type':a49_0xa24847(0x70),'description':a49_0xa24847(0x7c),'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
+ const a50_0x4dc8a4=a50_0x5760;function a50_0x5b27(){const _0x59fdc9=['key','288zQcowB','Config\x20value','321074uMxqni','6117199lrbMzi','appcode','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','value','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','1217740QUQUjs','str','validation','write','\x20appcode\x20set\x20to:\x20','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','set','\x22\x20is\x20not\x20settable.','Missing\x20key.','env','apps','160460lVduLI','Settable\x20top-level\x20keys:\x20','Top-level\x20key\x20\x22','2zBwVWk','3672452HzeMub','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','join','Invalid\x20locale\x20value.','Missing\x20value.','riskLevel','Use\x20`','Project','Global','config','bool','object','string','Usage:\x20','77229mtLqvv','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','locale','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','app','617792vPemHe','boolean','\x20app\x20add\x20<name>\x20--appcode\x20','4uIFBDn','12XoxKQA','global','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','keys','includes'];a50_0x5b27=function(){return _0x59fdc9;};return a50_0x5b27();}(function(_0x54d6db,_0x5c1782){const _0x54693b=a50_0x5760,_0x4a03d7=_0x54d6db();while(!![]){try{const _0x75a4e1=parseInt(_0x54693b(0xdf))/0x1*(parseInt(_0x54693b(0xf3))/0x2)+parseInt(_0x54693b(0xcc))/0x3*(-parseInt(_0x54693b(0xd5))/0x4)+-parseInt(_0x54693b(0xe5))/0x5*(parseInt(_0x54693b(0xd6))/0x6)+-parseInt(_0x54693b(0xf4))/0x7+parseInt(_0x54693b(0xd2))/0x8+-parseInt(_0x54693b(0xdd))/0x9*(-parseInt(_0x54693b(0xf0))/0xa)+parseInt(_0x54693b(0xe0))/0xb;if(_0x75a4e1===_0x5c1782)break;else _0x4a03d7['push'](_0x4a03d7['shift']());}catch(_0x3bf5ad){_0x4a03d7['push'](_0x4a03d7['shift']());}}}(a50_0x5b27,0x69144));import{CliErrors}from'../../errors.js';function a50_0x5760(_0x10723e,_0x3c9f3b){_0x10723e=_0x10723e-0xc4;const _0x5b2798=a50_0x5b27();let _0x57601b=_0x5b2798[_0x10723e];return _0x57601b;}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(_0x45d83d){const _0x32eece=a50_0x5760,_0x4a9c21=_0x45d83d['str'](_0x32eece(0xdc)),_0x1a8fb1=_0x45d83d[_0x32eece(0xe6)](_0x32eece(0xe3));if(!_0x4a9c21)throw CliErrors[_0x32eece(0xe7)](_0x32eece(0xed),_0x32eece(0xcb)+CLI_BIN_NAME+_0x32eece(0xe4));if(_0x1a8fb1===undefined||_0x1a8fb1==='')throw CliErrors['validation'](_0x32eece(0xf8),_0x32eece(0xcb)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x1a8fb1['length']>0x1f4)throw CliErrors[_0x32eece(0xe7)](_0x32eece(0xd8));if(!isTopLevelConfigKey(_0x4a9c21))throw CliErrors[_0x32eece(0xe7)](_0x32eece(0xf2)+_0x4a9c21+_0x32eece(0xec),_0x32eece(0xf1)+getTopLevelConfigKeySummary());if(_0x4a9c21===_0x32eece(0xf9))throw CliErrors[_0x32eece(0xe7)](_0x32eece(0xd0));if(CONFIG_ENUM_VALUES[_0x4a9c21]&&!CONFIG_ENUM_VALUES[_0x4a9c21][_0x32eece(0xdb)](_0x1a8fb1))throw CliErrors[_0x32eece(0xe7)]('Invalid\x20value\x20for\x20\x22'+_0x4a9c21+'\x22.\x20Allowed:\x20'+CONFIG_ENUM_VALUES[_0x4a9c21][_0x32eece(0xf6)](',\x20'));if(_0x4a9c21===_0x32eece(0xcf)&&!normalizeLocale(_0x1a8fb1))throw CliErrors['validation'](_0x32eece(0xf7),_0x32eece(0xea));const _0x40ba01={'global':_0x45d83d[_0x32eece(0xc8)](_0x32eece(0xd7))},_0x1ebe83=resolveWriteScope(_0x40ba01),_0x78fba9=readScopedConfig(_0x1ebe83);let _0x242472=_0x4a9c21,_0x2ba5a2=_0x1a8fb1;_0x4a9c21==='app'&&(_0x242472=_0x32eece(0xe1),delete _0x78fba9[_0x32eece(0xd1)]);_0x4a9c21===_0x32eece(0xcf)&&(_0x2ba5a2=normalizeLocale(_0x1a8fb1));if(_0x4a9c21===_0x32eece(0xee)){_0x2ba5a2=normalizeEnv(_0x1a8fb1);if(!isProduction(_0x2ba5a2)&&!isDaily(_0x2ba5a2))throw CliErrors['validation'](_0x32eece(0xce),_0x32eece(0xe2));}if(_0x4a9c21===_0x32eece(0xe1)){const _0x212d94=_0x78fba9['apps']&&typeof _0x78fba9[_0x32eece(0xef)]===_0x32eece(0xc9)?Object[_0x32eece(0xda)](_0x78fba9[_0x32eece(0xef)]):[];if(_0x212d94['length']>0x0)throw CliErrors[_0x32eece(0xe7)](_0x32eece(0xcd),_0x32eece(0xc4)+CLI_BIN_NAME+_0x32eece(0xd4)+_0x2ba5a2+'`,\x20`'+CLI_BIN_NAME+'\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.');const _0x2e13f4=buildCanonicalProjectConfig({..._0x78fba9},{'appCodes':[_0x2ba5a2],'env':typeof _0x78fba9['env']===_0x32eece(0xca)?_0x78fba9[_0x32eece(0xee)]:undefined});writeScopedConfig(_0x2e13f4,_0x1ebe83);const _0x5e60ea=_0x1ebe83===_0x32eece(0xd7)?_0x32eece(0xc6):_0x32eece(0xc5);return{'ok':!![],'message':'✓\x20'+_0x5e60ea+_0x32eece(0xe9)+_0x2ba5a2+_0x32eece(0xf5)};}_0x78fba9[_0x242472]=_0x2ba5a2,writeScopedConfig(_0x78fba9,_0x1ebe83);const _0x152f17=_0x1ebe83===_0x32eece(0xd7)?_0x32eece(0xc6):_0x32eece(0xc5);return{'ok':!![],'message':'✓\x20'+_0x152f17+'\x20'+_0x242472+'\x20set\x20to:\x20'+_0x2ba5a2};}export const configSetDefinition={'service':a50_0x4dc8a4(0xc7),'command':a50_0x4dc8a4(0xeb),'description':'Set\x20a\x20config\x20value','risk':a50_0x4dc8a4(0xe8),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a50_0x4dc8a4(0xdc),'type':a50_0x4dc8a4(0xca),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a50_0x4dc8a4(0xe3),'type':a50_0x4dc8a4(0xca),'description':a50_0x4dc8a4(0xde),'required':!![]},{'name':a50_0x4dc8a4(0xd7),'type':a50_0x4dc8a4(0xd3),'description':a50_0x4dc8a4(0xd9),'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(_0x58e22b,_0xe37073){var _0x2c69ba=a51_0x51d7,_0x5519fd=_0x58e22b();while(!![]){try{var _0x3aceed=-parseInt(_0x2c69ba(0xbf))/0x1*(parseInt(_0x2c69ba(0xbd))/0x2)+parseInt(_0x2c69ba(0xb3))/0x3*(-parseInt(_0x2c69ba(0xb4))/0x4)+-parseInt(_0x2c69ba(0xc0))/0x5*(-parseInt(_0x2c69ba(0xbc))/0x6)+-parseInt(_0x2c69ba(0xb5))/0x7+parseInt(_0x2c69ba(0xb2))/0x8+-parseInt(_0x2c69ba(0xba))/0x9+parseInt(_0x2c69ba(0xbe))/0xa*(parseInt(_0x2c69ba(0xb9))/0xb);if(_0x3aceed===_0xe37073)break;else _0x5519fd['push'](_0x5519fd['shift']());}catch(_0x35f614){_0x5519fd['push'](_0x5519fd['shift']());}}}(a51_0x1093,0x906b5));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';function a51_0x1093(){var _0x400f67=['4609094Iwqdam','global','validation','project','1166341LXCmMb','4140810XFTrmp','\x20init`\x20first.','6hQAuQw','1599028sjtSvF','200RZSPtF','1mIJtia','783685SkjgMd','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','3243480bumFml','103923zryipu','20TuMtCL'];a51_0x1093=function(){return _0x400f67;};return a51_0x1093();}import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};function a51_0x51d7(_0x4d19c6,_0x4a7bb6){_0x4d19c6=_0x4d19c6-0xb2;var _0x1093f2=a51_0x1093();var _0x51d78e=_0x1093f2[_0x4d19c6];return _0x51d78e;}export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x4314b0){var _0x220dec=a51_0x51d7;if(_0x4314b0[_0x220dec(0xb6)])return _0x220dec(0xb6);if(!isInProject())throw CliErrors[_0x220dec(0xb7)](_0x220dec(0xc1),_0x220dec(0xc2)+CLI_BIN_NAME+_0x220dec(0xbb));return _0x220dec(0xb8);}export function readScopedConfig(_0x2da181){return readConfigFile(resolveWriteConfigPath(_0x2da181));}export function writeScopedConfig(_0xe57418,_0x1c4084){writeConfigFile(resolveWriteConfigPath(_0x1c4084),_0xe57418);}
@@ -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_0x1a70cc=a52_0x5baf;(function(_0x3a5f85,_0x35ceb9){const _0xcb3cd3=a52_0x5baf,_0x1f7792=_0x3a5f85();while(!![]){try{const _0x262b55=parseInt(_0xcb3cd3(0xc1))/0x1+-parseInt(_0xcb3cd3(0xc6))/0x2*(parseInt(_0xcb3cd3(0xc4))/0x3)+-parseInt(_0xcb3cd3(0xc7))/0x4+-parseInt(_0xcb3cd3(0xbf))/0x5*(-parseInt(_0xcb3cd3(0xce))/0x6)+parseInt(_0xcb3cd3(0xc2))/0x7*(parseInt(_0xcb3cd3(0xca))/0x8)+parseInt(_0xcb3cd3(0xcc))/0x9*(parseInt(_0xcb3cd3(0xcd))/0xa)+-parseInt(_0xcb3cd3(0xc0))/0xb*(parseInt(_0xcb3cd3(0xcb))/0xc);if(_0x262b55===_0x35ceb9)break;else _0x1f7792['push'](_0x1f7792['shift']());}catch(_0x496496){_0x1f7792['push'](_0x1f7792['shift']());}}}(a52_0x468f,0xe75e1));function a52_0x468f(){const _0x2b49c5=['187UDXymQ','1618975lnffvs','1132922fpwJut','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','573HEpsGt','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','16370EscrWa','5147088epGPSK','\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\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','88adPAct','2173572gHYnRH','1557tymmmF','106910iSYvep','6dcznhR','join','filter','8140955yVKDwV'];a52_0x468f=function(){return _0x2b49c5;};return a52_0x468f();}import{buildDataCommand}from'../../commands/data/shared.js';function a52_0x5baf(_0x447b12,_0x4f09fc){_0x447b12=_0x447b12-0xbd;const _0x468f28=a52_0x468f();let _0x5baf98=_0x468f28[_0x447b12];return _0x5baf98;}export const dataFilter=buildDataCommand({'command':a52_0x1a70cc(0xbe),'operation':a52_0x1a70cc(0xbe),'description':'Filter\x20dataset\x20records\x20with\x20query\x20conditions','paramsRequired':![],'paramsHint':'JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','helpExtra':[a52_0x1a70cc(0xc3),'\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions',a52_0x1a70cc(0xc9),a52_0x1a70cc(0xc8),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a52_0x1a70cc(0xc5)][a52_0x1a70cc(0xbd)]('\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
+ function a53_0x1983(_0x51d13e,_0xc1eefc){_0x51d13e=_0x51d13e-0x7d;const _0xeb63a6=a53_0xeb63();let _0x1983be=_0xeb63a6[_0x51d13e];return _0x1983be;}function a53_0xeb63(){const _0x5c5c1a=['3555HWLFCZ','42278621RDKUgX','1503iRYIWG','5537490xRgfdk','Get\x20a\x20single\x20record\x20by\x20ID','600444WzOIze','getOne','6zEEmKu','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','6884KNPuRk','424445axygHF','31210uehkfD','116743YMZCUN','184xjJXec'];a53_0xeb63=function(){return _0x5c5c1a;};return a53_0xeb63();}const a53_0x130387=a53_0x1983;(function(_0x99d210,_0xb298a1){const _0xa70e8c=a53_0x1983,_0x32ff9d=_0x99d210();while(!![]){try{const _0xc482b0=parseInt(_0xa70e8c(0x89))/0x1*(-parseInt(_0xa70e8c(0x84))/0x2)+parseInt(_0xa70e8c(0x7f))/0x3*(parseInt(_0xa70e8c(0x86))/0x4)+-parseInt(_0xa70e8c(0x80))/0x5+parseInt(_0xa70e8c(0x82))/0x6+parseInt(_0xa70e8c(0x87))/0x7*(-parseInt(_0xa70e8c(0x8a))/0x8)+parseInt(_0xa70e8c(0x7d))/0x9*(-parseInt(_0xa70e8c(0x88))/0xa)+parseInt(_0xa70e8c(0x7e))/0xb;if(_0xc482b0===_0xb298a1)break;else _0x32ff9d['push'](_0x32ff9d['shift']());}catch(_0x37cd90){_0x32ff9d['push'](_0x32ff9d['shift']());}}}(a53_0xeb63,0xaff27));import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a53_0x130387(0x83),'operation':a53_0x130387(0x83),'description':a53_0x130387(0x81),'paramsRequired':!![],'paramsHint':a53_0x130387(0x85)});
@@ -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 a54_0x39a5(){const _0x2ecc2d=['2556828zewjuQ','171888PVxFFG','2040080tBYKCk','3725lqfUhM','48MQtsDS','1327978cCHZzP','11861600oiFCBB','398246iJRekC'];a54_0x39a5=function(){return _0x2ecc2d;};return a54_0x39a5();}(function(_0x309740,_0x18c254){const _0x254131=a54_0xdcc3,_0x463376=_0x309740();while(!![]){try{const _0x4205be=-parseInt(_0x254131(0x1b5))/0x1+parseInt(_0x254131(0x1b3))/0x2+-parseInt(_0x254131(0x1b6))/0x3+-parseInt(_0x254131(0x1b7))/0x4+parseInt(_0x254131(0x1b1))/0x5*(-parseInt(_0x254131(0x1b2))/0x6)+-parseInt(_0x254131(0x1b8))/0x7+parseInt(_0x254131(0x1b4))/0x8;if(_0x4205be===_0x18c254)break;else _0x463376['push'](_0x463376['shift']());}catch(_0x230f9c){_0x463376['push'](_0x463376['shift']());}}}(a54_0x39a5,0x87b13));import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';function a54_0xdcc3(_0x2ff4ca,_0xf93c94){_0x2ff4ca=_0x2ff4ca-0x1b1;const _0x39a508=a54_0x39a5();let _0xdcc353=_0x39a508[_0x2ff4ca];return _0xdcc353;}export const dataDefinitions=[dataFilter,dataGetOne];