@lovrabet/rabetbase-cli 2.3.7-beta.4 → 2.3.7

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 (245) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/index.js +1 -1
  21. package/lib/commands/app/list.js +1 -1
  22. package/lib/commands/app/remote-directory.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app-config/delete.js +1 -1
  26. package/lib/commands/app-config/get.js +1 -1
  27. package/lib/commands/app-config/index.js +1 -1
  28. package/lib/commands/app-config/list.js +1 -1
  29. package/lib/commands/app-config/set.js +1 -1
  30. package/lib/commands/app-config/shared.js +1 -1
  31. package/lib/commands/auth/index.js +1 -1
  32. package/lib/commands/bff/create.js +1 -1
  33. package/lib/commands/bff/delete.js +1 -1
  34. package/lib/commands/bff/detail.js +1 -1
  35. package/lib/commands/bff/index.js +1 -1
  36. package/lib/commands/bff/list.js +1 -1
  37. package/lib/commands/bff/pull.js +1 -1
  38. package/lib/commands/bff/push.js +1 -1
  39. package/lib/commands/bff/status.js +1 -1
  40. package/lib/commands/cli-skill/index.js +1 -1
  41. package/lib/commands/cli-update.js +1 -1
  42. package/lib/commands/codegen/index.js +1 -1
  43. package/lib/commands/codegen/sdk.js +1 -1
  44. package/lib/commands/codegen/sql.js +1 -1
  45. package/lib/commands/common/app-registry.js +1 -1
  46. package/lib/commands/common/app-selector.js +1 -1
  47. package/lib/commands/common/dry-run.js +1 -1
  48. package/lib/commands/common/flags.js +1 -1
  49. package/lib/commands/common/local-file.js +1 -1
  50. package/lib/commands/common/validate.js +1 -1
  51. package/lib/commands/config/get.js +1 -1
  52. package/lib/commands/config/index.js +1 -1
  53. package/lib/commands/config/list.js +1 -1
  54. package/lib/commands/config/set.js +1 -1
  55. package/lib/commands/config/shared.js +1 -1
  56. package/lib/commands/data/filter.js +1 -1
  57. package/lib/commands/data/getOne.js +1 -1
  58. package/lib/commands/data/index.js +1 -1
  59. package/lib/commands/data/shared.js +1 -1
  60. package/lib/commands/dataset/business-group-update.js +1 -1
  61. package/lib/commands/dataset/capability.js +1 -1
  62. package/lib/commands/dataset/delete.js +1 -1
  63. package/lib/commands/dataset/detail.js +1 -1
  64. package/lib/commands/dataset/extend-update.js +1 -1
  65. package/lib/commands/dataset/field-update.js +1 -1
  66. package/lib/commands/dataset/generate.js +1 -1
  67. package/lib/commands/dataset/index.js +1 -1
  68. package/lib/commands/dataset/list.js +1 -1
  69. package/lib/commands/dataset/operations.js +1 -1
  70. package/lib/commands/dataset/relation-audit.js +1 -1
  71. package/lib/commands/dataset/relation-create.js +1 -1
  72. package/lib/commands/dataset/relation-delete.js +1 -1
  73. package/lib/commands/dataset/relation-shared.js +1 -1
  74. package/lib/commands/dataset/relation-update.js +1 -1
  75. package/lib/commands/dataset/relations.js +1 -1
  76. package/lib/commands/dataset/rename.js +1 -1
  77. package/lib/commands/dataset/restore.js +1 -1
  78. package/lib/commands/db/analysis-batching.js +1 -1
  79. package/lib/commands/db/analyze-batch-plan.js +1 -1
  80. package/lib/commands/db/analyze-cancel.js +1 -1
  81. package/lib/commands/db/analyze-start.js +1 -1
  82. package/lib/commands/db/analyze-status.js +1 -1
  83. package/lib/commands/db/create.js +1 -1
  84. package/lib/commands/db/delete.js +1 -1
  85. package/lib/commands/db/detail.js +1 -1
  86. package/lib/commands/db/diff.js +1 -1
  87. package/lib/commands/db/index.js +1 -1
  88. package/lib/commands/db/list.js +1 -1
  89. package/lib/commands/db/shared.js +1 -1
  90. package/lib/commands/db/tables.js +1 -1
  91. package/lib/commands/db/test.js +1 -1
  92. package/lib/commands/db/update.js +1 -1
  93. package/lib/commands/doctor.js +1 -1
  94. package/lib/commands/file/index.js +1 -1
  95. package/lib/commands/init/index.js +1 -1
  96. package/lib/commands/issue/index.js +1 -1
  97. package/lib/commands/issue/nudge.js +1 -1
  98. package/lib/commands/issue/report.js +1 -1
  99. package/lib/commands/issue/shared.js +1 -1
  100. package/lib/commands/logs/index.js +1 -1
  101. package/lib/commands/menu/index.js +1 -1
  102. package/lib/commands/menu/list.js +1 -1
  103. package/lib/commands/menu/shared/compare-table.js +1 -1
  104. package/lib/commands/menu/shared/index.js +1 -1
  105. package/lib/commands/menu/shared/inquirer.js +1 -1
  106. package/lib/commands/menu/shared/local-pages.js +1 -1
  107. package/lib/commands/menu/shared/logic.js +1 -1
  108. package/lib/commands/menu/shared/service.js +1 -1
  109. package/lib/commands/menu/shared/sync-core.js +1 -1
  110. package/lib/commands/menu/shared/update-core.js +1 -1
  111. package/lib/commands/menu/shared/valid-url.js +1 -1
  112. package/lib/commands/menu/sync.js +1 -1
  113. package/lib/commands/menu/update.js +1 -1
  114. package/lib/commands/notification/config-list.js +1 -1
  115. package/lib/commands/notification/index.js +1 -1
  116. package/lib/commands/page/generate-start.js +1 -1
  117. package/lib/commands/page/generate-status.js +1 -1
  118. package/lib/commands/page/index.js +1 -1
  119. package/lib/commands/page/pull.js +1 -1
  120. package/lib/commands/page/push.js +1 -1
  121. package/lib/commands/page/relation-audit.js +1 -1
  122. package/lib/commands/page/shared.js +1 -1
  123. package/lib/commands/page/standard-page-status.js +1 -1
  124. package/lib/commands/page/sync.js +1 -1
  125. package/lib/commands/permit/index.js +1 -1
  126. package/lib/commands/permit/page-get.js +1 -1
  127. package/lib/commands/permit/page-set.js +1 -1
  128. package/lib/commands/permit/role-apis-set.js +1 -1
  129. package/lib/commands/permit/role-menus-set.js +1 -1
  130. package/lib/commands/permit/role-menus.js +1 -1
  131. package/lib/commands/permit/shared.js +1 -1
  132. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  133. package/lib/commands/project/create/format-elapsed.js +1 -1
  134. package/lib/commands/project/create/main.js +1 -1
  135. package/lib/commands/project/create/non-interactive.js +1 -1
  136. package/lib/commands/project/create/project-template-path.js +1 -1
  137. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  138. package/lib/commands/project/create/use-format-code.js +1 -1
  139. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  140. package/lib/commands/project/index.js +1 -1
  141. package/lib/commands/project/init.js +1 -1
  142. package/lib/commands/project/upgrade.js +1 -1
  143. package/lib/commands/registry.js +1 -1
  144. package/lib/commands/role/create.js +1 -1
  145. package/lib/commands/role/delete.js +1 -1
  146. package/lib/commands/role/detail.js +1 -1
  147. package/lib/commands/role/index.js +1 -1
  148. package/lib/commands/role/list.js +1 -1
  149. package/lib/commands/role/shared.js +1 -1
  150. package/lib/commands/role/update.js +1 -1
  151. package/lib/commands/role/user-add.js +1 -1
  152. package/lib/commands/role/user-remove.js +1 -1
  153. package/lib/commands/role/user-resolve.js +1 -1
  154. package/lib/commands/run/index.js +1 -1
  155. package/lib/commands/schema.js +1 -1
  156. package/lib/commands/sql/create.js +1 -1
  157. package/lib/commands/sql/delete.js +1 -1
  158. package/lib/commands/sql/detail.js +1 -1
  159. package/lib/commands/sql/exec.js +1 -1
  160. package/lib/commands/sql/index.js +1 -1
  161. package/lib/commands/sql/list.js +1 -1
  162. package/lib/commands/sql/pull.js +1 -1
  163. package/lib/commands/sql/push.js +1 -1
  164. package/lib/commands/sql/save.js +1 -1
  165. package/lib/commands/sql/shared.js +1 -1
  166. package/lib/commands/sql/status.js +1 -1
  167. package/lib/commands/sql/validate.js +1 -1
  168. package/lib/commands/workspace/add.js +1 -1
  169. package/lib/commands/workspace/index.js +1 -1
  170. package/lib/commands/workspace/remove.js +1 -1
  171. package/lib/config/schema.js +1 -1
  172. package/lib/constant/cdn.js +1 -1
  173. package/lib/constant/cli.js +1 -1
  174. package/lib/constant/defaults.js +1 -1
  175. package/lib/constant/domain.js +1 -1
  176. package/lib/constant/env.js +1 -1
  177. package/lib/constant/output.js +1 -1
  178. package/lib/constant/paths.js +1 -1
  179. package/lib/constant/risk.js +1 -1
  180. package/lib/context/app-resolver.js +1 -1
  181. package/lib/context/auth-resolver.js +1 -1
  182. package/lib/context/config-loader.js +1 -1
  183. package/lib/context.js +1 -1
  184. package/lib/core/alias-resolver.js +1 -1
  185. package/lib/core/api-client.js +1 -1
  186. package/lib/core/bff/config.js +1 -1
  187. package/lib/core/bff/file-system.js +1 -1
  188. package/lib/core/bff/hash.js +1 -1
  189. package/lib/core/bff/lock.js +1 -1
  190. package/lib/core/bff/utils.js +1 -1
  191. package/lib/core/db-resolver.js +1 -1
  192. package/lib/core/page/file-system.js +1 -1
  193. package/lib/core/page/hash.js +1 -1
  194. package/lib/core/page/lock.js +1 -1
  195. package/lib/core/sql-sync/config.js +1 -1
  196. package/lib/core/sql-sync/file-system.js +1 -1
  197. package/lib/core/sql-sync/hash.js +1 -1
  198. package/lib/core/sql-sync/lock.js +1 -1
  199. package/lib/core/sql-sync/utils.js +1 -1
  200. package/lib/core/sql-validator.js +1 -1
  201. package/lib/errors.js +1 -1
  202. package/lib/framework/build-all-flags.js +1 -1
  203. package/lib/framework/flags.js +1 -1
  204. package/lib/framework/help.js +1 -1
  205. package/lib/framework/index.js +1 -1
  206. package/lib/framework/output.js +1 -1
  207. package/lib/framework/response.js +1 -1
  208. package/lib/framework/runner-alias.js +1 -1
  209. package/lib/framework/runner.js +1 -1
  210. package/lib/framework/schema-export.js +1 -1
  211. package/lib/framework/types.js +1 -1
  212. package/lib/generated/build-info.js +1 -1
  213. package/lib/help.js +1 -1
  214. package/lib/skills/main.js +1 -1
  215. package/lib/skills/npx-skills-add.js +1 -1
  216. package/lib/telemetry/cli-command-trace.js +1 -1
  217. package/lib/telemetry/cli-help-trace.js +1 -1
  218. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  219. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  220. package/lib/telemetry/send-cli-trace-log.js +1 -1
  221. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  222. package/lib/utils/ai_config.js +1 -1
  223. package/lib/utils/apply-jq-filter.js +1 -1
  224. package/lib/utils/cdn-config.js +1 -1
  225. package/lib/utils/check-sdk-version.js +1 -1
  226. package/lib/utils/cli-version-check.js +1 -1
  227. package/lib/utils/cli-version-policy.js +1 -1
  228. package/lib/utils/config.js +1 -1
  229. package/lib/utils/copy-directory.js +1 -1
  230. package/lib/utils/entity-with-id.js +1 -1
  231. package/lib/utils/file-utils.js +1 -1
  232. package/lib/utils/guides-cdn.js +1 -1
  233. package/lib/utils/http-client.js +1 -1
  234. package/lib/utils/is-non-interactive.js +1 -1
  235. package/lib/utils/logger.js +1 -1
  236. package/lib/utils/params.js +1 -1
  237. package/lib/utils/platform.js +1 -1
  238. package/lib/utils/rules-cdn.js +1 -1
  239. package/lib/utils/sleep.js +1 -1
  240. package/lib/utils/template-replacer.js +1 -1
  241. package/lib/utils/update-notice.js +1 -1
  242. package/lib/utils/version.js +1 -1
  243. package/lib/utils/with-active-cookie.js +1 -1
  244. package/lib/utils/write-cli-side-channel.js +1 -1
  245. package/package.json +1 -1
@@ -1 +1 @@
1
- const a36_0x341545=a36_0x5377;(function(_0x2902af,_0x3ec167){const _0x1e93e2=a36_0x5377,_0x33da22=_0x2902af();while(!![]){try{const _0x4126b6=-parseInt(_0x1e93e2(0x20d))/0x1*(parseInt(_0x1e93e2(0x1d9))/0x2)+-parseInt(_0x1e93e2(0x20b))/0x3*(parseInt(_0x1e93e2(0x1d8))/0x4)+-parseInt(_0x1e93e2(0x1ff))/0x5+-parseInt(_0x1e93e2(0x1eb))/0x6+-parseInt(_0x1e93e2(0x204))/0x7*(-parseInt(_0x1e93e2(0x214))/0x8)+-parseInt(_0x1e93e2(0x1ef))/0x9+parseInt(_0x1e93e2(0x1e0))/0xa;if(_0x4126b6===_0x3ec167)break;else _0x33da22['push'](_0x33da22['shift']());}catch(_0x2abe6f){_0x33da22['push'](_0x33da22['shift']());}}}(a36_0x2c30,0x2033d));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';function a36_0x2c30(){const _0x5871fa=['appCode','2216YUnSJy','Force\x20overwrite\x20local\x20unsynced\x20changes','functionNode','local\x20unsynced\x20changes','write','scriptsRoot','validation','toISOString','version','filePath','Force\x20pull\x20will\x20overwrite\x20local\x20unsynced\x20changes.\x20Continue?\x20[y/N]\x20','push','HOOK','Pull\x20remote\x20BFF\x20scripts\x20to\x20local','all','functions','COMMON','lastSync','4ECVucg','2nrsqKg','unresolvable\x20target\x20path','operationType','\x20pulled,\x20','toLowerCase','str','conflict','6042230UTjUvo','message','\x22\x20not\x20found\x20after\x20ensureLockScope.','skipped','&type=','No\x20remote\x20BFF\x20scripts\x20found.','cancelled','pull','stdin','bff','utf8','1117896qHxxcd','nonInteractive','hookLocation','would_pull','866745bzBcex','Would\x20inspect\x20','ENDPOINT','stringify','string','stderr','\x20failed','question','Pull\x20only\x20this\x20script\x20type','lockFilePath','length','parse','force','\x20remote\x20BFF\x20script(s)\x20for\x20pull','apiDir','functionName','668390deinSJ','--type\x20must\x20be\x20COMMON,\x20ENDPOINT,\x20or\x20HOOK.','trim','GET','Lock\x20scope\x20for\x20app\x20\x22','1589OOGAxx','type','close','datasetCode','lockKey','Remote\x20script\x20missing\x20content.','\x20skipped,\x20','110814vEIHbt','bool','81964SBLOKq','apps','hash','scriptContent','Remote\x20script\x20missing\x20id.','alias'];a36_0x2c30=function(){return _0x5871fa;};return a36_0x2c30();}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';function a36_0x5377(_0x194b11,_0xb8dbd2){_0x194b11=_0x194b11-0x1c9;const _0x2c3091=a36_0x2c30();let _0x5377bd=_0x2c3091[_0x194b11];return _0x5377bd;}import{CliErrors}from'../../errors.js';export const bffPull={'service':a36_0x341545(0x1e9),'command':a36_0x341545(0x1e7),'description':a36_0x341545(0x1d3),'risk':a36_0x341545(0x1ca),'flags':[{'name':'type','type':a36_0x341545(0x1f3),'description':a36_0x341545(0x1f7),'enum':[a36_0x341545(0x1d6),a36_0x341545(0x1f1),'HOOK']},{'name':a36_0x341545(0x1fb),'type':'boolean','description':a36_0x341545(0x215)}],async 'dryRun'(_0x30586f){const _0x346f52=a36_0x341545,_0x16c5c4=loadBffProjectConfig(_0x30586f[_0x346f52(0x213)]),_0xe4e59=await readBffLockFile(_0x16c5c4[_0x346f52(0x1f8)]),{appLock:_0x4d8542}=ensureLockScope(_0xe4e59??createEmptyBffLock(),_0x30586f[_0x346f52(0x213)],_0x16c5c4[_0x346f52(0x1cb)],_0x346f52(0x1e7)),_0xa6d118=normalizeBffType(_0x30586f['str'](_0x346f52(0x205)))??undefined,_0x16a1c3=buildDatasetCodeToAliasMap(_0x30586f[_0x346f52(0x1fd)],_0x30586f[_0x346f52(0x213)]),[_0x4691d7,_0x306eb1]=await Promise['all']([listBffScripts(_0x30586f[_0x346f52(0x213)],_0xa6d118),getBffScriptStatistics(_0x30586f[_0x346f52(0x213)])]),_0x185dc1=createHookLocationMap(_0x306eb1),_0x183160=[];for(const _0x4f88a1 of _0x4691d7){const _0x5b106b=resolveRemoteScriptTarget(_0x16c5c4,_0x4f88a1,_0x185dc1,_0x4d8542[_0x346f52(0x1d5)],_0x16a1c3);if(!_0x5b106b){_0x183160[_0x346f52(0x1d1)]({'scriptType':_0x4f88a1['scriptType'],'functionName':_0x4f88a1[_0x346f52(0x1fe)]??'','status':_0x346f52(0x1e3),'reason':_0x346f52(0x1da)});continue;}const _0x50aa0c=_0x4d8542[_0x346f52(0x1d5)][_0x5b106b[_0x346f52(0x208)]],_0x500c25=_0x4f88a1['scriptContent']!=null?computeContentHash(_0x4f88a1[_0x346f52(0x210)]):undefined,_0x1b9465=await hasUnsyncedLocalChanges(_0x5b106b[_0x346f52(0x1cf)],_0x50aa0c,_0x500c25);_0x183160['push']({'lockKey':_0x5b106b[_0x346f52(0x208)],'filePath':_0x5b106b[_0x346f52(0x1cf)],'remoteId':_0x4f88a1['id']??null,'status':_0x1b9465?_0x346f52(0x1df):_0x346f52(0x1ee)});}return{'method':_0x346f52(0x202),'url':'/api/management/library/scripts/list?appCode='+_0x30586f[_0x346f52(0x213)]+(_0xa6d118?_0x346f52(0x1e4)+_0xa6d118:''),'body':{'appCode':_0x30586f[_0x346f52(0x213)],'filterType':_0xa6d118??null,'files':_0x183160},'description':_0x346f52(0x1f0)+_0x183160['length']+_0x346f52(0x1fc)};},async 'execute'(_0x57e266){const _0x366e36=a36_0x341545,_0x301b87=loadBffProjectConfig(_0x57e266['appCode']),_0x2c7fc3=await readBffLockFile(_0x301b87[_0x366e36(0x1f8)]),{lockData:_0x48a23a,appLock:_0xe6c384}=ensureLockScope(_0x2c7fc3??createEmptyBffLock(),_0x57e266[_0x366e36(0x213)],_0x301b87[_0x366e36(0x1cb)],'pull'),_0x2d6128=normalizeBffType(_0x57e266[_0x366e36(0x1de)](_0x366e36(0x205)))??undefined;if(_0x57e266[_0x366e36(0x1de)](_0x366e36(0x205))&&!_0x2d6128)throw CliErrors[_0x366e36(0x1cc)](_0x366e36(0x200));const [_0x297c6c,_0x149d2]=await Promise[_0x366e36(0x1d4)]([listBffScripts(_0x57e266[_0x366e36(0x213)],_0x2d6128),getBffScriptStatistics(_0x57e266[_0x366e36(0x213)])]);if(_0x297c6c[_0x366e36(0x1f9)]===0x0)return{'ok':!![],'data':{'pulled':[],'skipped':[],'failed':[]},'message':_0x366e36(0x1e5)};const _0x549bf9=_0x57e266[_0x366e36(0x20c)]('force');if(_0x549bf9&&!_0x57e266[_0x366e36(0x1ec)]){const _0x15a2fc=await confirmForce();if(!_0x15a2fc)throw CliErrors[_0x366e36(0x1e6)]('Force\x20pull\x20cancelled.');}if(_0x549bf9&&_0x57e266[_0x366e36(0x1ec)]){}const _0xf017=buildDatasetCodeToAliasMap(_0x57e266['apiDir'],_0x57e266[_0x366e36(0x213)]),_0x2a51b6=createHookLocationMap(_0x149d2),_0x222122=JSON[_0x366e36(0x1fa)](JSON[_0x366e36(0x1f2)](_0x48a23a)),_0x48723e=_0x57e266['appCode'],_0x390642=_0x222122[_0x366e36(0x20e)][_0x48723e];if(!_0x390642)throw new Error(_0x366e36(0x203)+_0x48723e+_0x366e36(0x1e2));const _0x539013=[],_0x5cf35b=[],_0x4a747b=[];for(const _0xf0c138 of _0x297c6c){const _0x3c0227=resolveRemoteScriptTarget(_0x301b87,_0xf0c138,_0x2a51b6,_0xe6c384[_0x366e36(0x1d5)],_0xf017);if(!_0x3c0227){_0x5cf35b[_0x366e36(0x1d1)]({'lockKey':_0xf0c138['scriptType']+'/'+_0xf0c138[_0x366e36(0x1fe)],'reason':'unresolvable\x20target\x20path'});continue;}const _0x3e43ec=_0xe6c384[_0x366e36(0x1d5)][_0x3c0227[_0x366e36(0x208)]];try{if(!_0xf0c138['id'])throw new Error(_0x366e36(0x211));if(_0xf0c138['scriptContent']==null)throw new Error(_0x366e36(0x209));const _0x3494e7=_0xf0c138[_0x366e36(0x210)],_0x1408c4=computeContentHash(_0x3494e7);if(!_0x549bf9){const _0x1f2c17=await hasUnsyncedLocalChanges(_0x3c0227[_0x366e36(0x1cf)],_0x3e43ec,_0x1408c4);if(_0x1f2c17){_0x5cf35b[_0x366e36(0x1d1)]({'lockKey':_0x3c0227[_0x366e36(0x208)],'reason':_0x366e36(0x1c9)});continue;}}await ensureParentDirectory(_0x3c0227[_0x366e36(0x1cf)]),await writeFile(_0x3c0227[_0x366e36(0x1cf)],_0x3494e7,_0x366e36(0x1ea));const _0x4c57bc={'hash':_0x1408c4,'remoteId':_0xf0c138['id'],'version':_0xf0c138[_0x366e36(0x1ce)]};_0x3c0227[_0x366e36(0x205)]===_0x366e36(0x1d2)&&_0x3c0227[_0x366e36(0x1ed)]&&(_0x4c57bc[_0x366e36(0x212)]=_0x3c0227['hookLocation'][_0x366e36(0x212)],_0x4c57bc[_0x366e36(0x207)]=_0x3c0227[_0x366e36(0x1ed)]['datasetCode'],_0x4c57bc[_0x366e36(0x1db)]=_0x3c0227[_0x366e36(0x1ed)][_0x366e36(0x1db)],_0x4c57bc[_0x366e36(0x216)]=_0x3c0227[_0x366e36(0x1ed)]['functionNode']),_0x390642[_0x366e36(0x1d5)][_0x3c0227[_0x366e36(0x208)]]=_0x4c57bc,_0x539013[_0x366e36(0x1d1)]({'lockKey':_0x3c0227[_0x366e36(0x208)],'remoteId':_0xf0c138['id']});}catch(_0x32bd6e){_0x4a747b['push']({'lockKey':_0x3c0227[_0x366e36(0x208)],'error':_0x32bd6e instanceof Error?_0x32bd6e[_0x366e36(0x1e1)]:String(_0x32bd6e)});}}return _0x390642[_0x366e36(0x1d7)]=new Date()[_0x366e36(0x1cd)](),await writeBffLockFile(_0x301b87['lockFilePath'],_0x222122),{'ok':_0x4a747b[_0x366e36(0x1f9)]===0x0,'data':{'pulled':_0x539013,'skipped':_0x5cf35b,'failed':_0x4a747b},'message':'Pull\x20complete:\x20'+_0x539013['length']+_0x366e36(0x1dc)+_0x5cf35b[_0x366e36(0x1f9)]+_0x366e36(0x20a)+_0x4a747b[_0x366e36(0x1f9)]+_0x366e36(0x1f5)};}};async function hasUnsyncedLocalChanges(_0x607f54,_0xd60e39,_0x488da8){const _0xc9852c=a36_0x341545;if(!await fileExists(_0x607f54))return![];const _0x18ab04=await computeFileHash(_0x607f54);if(!_0xd60e39)return _0x488da8?_0x18ab04!==_0x488da8:!![];return _0x18ab04!==_0xd60e39[_0xc9852c(0x20f)];}function buildDatasetCodeToAliasMap(_0x30d087,_0x12f69a){const _0x13824b=a36_0x341545,_0x3107a6=loadAliasMap(_0x30d087,undefined,resolveApiFilePath(_0x30d087,_0x12f69a));return new Map(_0x3107a6['map'](_0x3a7184=>[_0x3a7184[_0x13824b(0x207)],_0x3a7184['alias']]));}async function confirmForce(){const _0x21a0ce=a36_0x341545,_0x44186d=createInterface({'input':process[_0x21a0ce(0x1e8)],'output':process[_0x21a0ce(0x1f4)]}),_0x564432=await new Promise(_0x254ef1=>{const _0xfa157a=_0x21a0ce;_0x44186d[_0xfa157a(0x1f6)](_0xfa157a(0x1d0),_0x254ef1);});return _0x44186d[_0x21a0ce(0x206)](),['y','yes']['includes'](_0x564432[_0x21a0ce(0x201)]()[_0x21a0ce(0x1dd)]());}
1
+ const a36_0x35b13d=a36_0x50ea;(function(_0x9d83b,_0x1549d4){const _0x1e292c=a36_0x50ea,_0x1b24e1=_0x9d83b();while(!![]){try{const _0x35849f=-parseInt(_0x1e292c(0xc9))/0x1*(-parseInt(_0x1e292c(0x102))/0x2)+-parseInt(_0x1e292c(0xda))/0x3+-parseInt(_0x1e292c(0xcc))/0x4+parseInt(_0x1e292c(0xc3))/0x5*(-parseInt(_0x1e292c(0xf5))/0x6)+-parseInt(_0x1e292c(0xd7))/0x7*(parseInt(_0x1e292c(0xbd))/0x8)+-parseInt(_0x1e292c(0xba))/0x9*(-parseInt(_0x1e292c(0xe8))/0xa)+parseInt(_0x1e292c(0xd2))/0xb;if(_0x35849f===_0x1549d4)break;else _0x1b24e1['push'](_0x1b24e1['shift']());}catch(_0x308db1){_0x1b24e1['push'](_0x1b24e1['shift']());}}}(a36_0x1d46,0x6a561));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 a36_0x1d46(){const _0xbcff2e=['21807291nfEkSY','lastSync','Would\x20inspect\x20','\x20skipped,\x20','Remote\x20script\x20missing\x20content.','31269FMTqvW','write','Pull\x20only\x20this\x20script\x20type','527826qAiuaO','all','\x22\x20not\x20found\x20after\x20ensureLockScope.','Pull\x20remote\x20BFF\x20scripts\x20to\x20local','scriptContent','ENDPOINT','Remote\x20script\x20missing\x20id.','validation','conflict','nonInteractive','operationType','stderr','would_pull','Lock\x20scope\x20for\x20app\x20\x22','10YNIjCY','str','\x20failed','question','map','trim','appCode','alias','Pull\x20complete:\x20','Force\x20pull\x20will\x20overwrite\x20local\x20unsynced\x20changes.\x20Continue?\x20[y/N]\x20','functions','length','utf8','4169478ruKkyn','hookLocation','string','functionName','filePath','skipped','\x20pulled,\x20','--type\x20must\x20be\x20COMMON,\x20ENDPOINT,\x20or\x20HOOK.','includes','parse','&type=','scriptsRoot','push','5146veeyJa','force','HOOK','116973QxeUlS','\x20remote\x20BFF\x20script(s)\x20for\x20pull','No\x20remote\x20BFF\x20scripts\x20found.','1048wShemY','lockFilePath','pull','toLowerCase','unresolvable\x20target\x20path','stringify','5ejERlF','type','hash','functionNode','message','lockKey','205LnAfXP','bool','apiDir','2525432dSVbPZ','COMMON','datasetCode','local\x20unsynced\x20changes','yes','bff'];a36_0x1d46=function(){return _0xbcff2e;};return a36_0x1d46();}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';function a36_0x50ea(_0x2494bb,_0x1bf3b9){_0x2494bb=_0x2494bb-0xba;const _0x1d46be=a36_0x1d46();let _0x50ea5a=_0x1d46be[_0x2494bb];return _0x50ea5a;}import{CliErrors}from'../../errors.js';export const bffPull={'service':a36_0x35b13d(0xd1),'command':'pull','description':a36_0x35b13d(0xdd),'risk':a36_0x35b13d(0xd8),'flags':[{'name':'type','type':a36_0x35b13d(0xf7),'description':a36_0x35b13d(0xd9),'enum':[a36_0x35b13d(0xcd),a36_0x35b13d(0xdf),a36_0x35b13d(0x104)]},{'name':'force','type':'boolean','description':'Force\x20overwrite\x20local\x20unsynced\x20changes'}],async 'dryRun'(_0x3b2303){const _0x336433=a36_0x35b13d,_0x47d7fe=loadBffProjectConfig(_0x3b2303[_0x336433(0xee)]),_0x5c173d=await readBffLockFile(_0x47d7fe['lockFilePath']),{appLock:_0x147fab}=ensureLockScope(_0x5c173d??createEmptyBffLock(),_0x3b2303[_0x336433(0xee)],_0x47d7fe['scriptsRoot'],_0x336433(0xbf)),_0x51ba29=normalizeBffType(_0x3b2303['str']('type'))??undefined,_0xdfbcf6=buildDatasetCodeToAliasMap(_0x3b2303[_0x336433(0xcb)],_0x3b2303[_0x336433(0xee)]),[_0x32b5e2,_0x1bff50]=await Promise[_0x336433(0xdb)]([listBffScripts(_0x3b2303['appCode'],_0x51ba29),getBffScriptStatistics(_0x3b2303[_0x336433(0xee)])]),_0x689e1=createHookLocationMap(_0x1bff50),_0x2af847=[];for(const _0x2428eb of _0x32b5e2){const _0x136229=resolveRemoteScriptTarget(_0x47d7fe,_0x2428eb,_0x689e1,_0x147fab[_0x336433(0xf2)],_0xdfbcf6);if(!_0x136229){_0x2af847[_0x336433(0x101)]({'scriptType':_0x2428eb['scriptType'],'functionName':_0x2428eb[_0x336433(0xf8)]??'','status':_0x336433(0xfa),'reason':_0x336433(0xc1)});continue;}const _0x1b5c67=_0x147fab[_0x336433(0xf2)][_0x136229[_0x336433(0xc8)]],_0x26aaa1=_0x2428eb[_0x336433(0xde)]!=null?computeContentHash(_0x2428eb[_0x336433(0xde)]):undefined,_0x42a5cf=await hasUnsyncedLocalChanges(_0x136229[_0x336433(0xf9)],_0x1b5c67,_0x26aaa1);_0x2af847[_0x336433(0x101)]({'lockKey':_0x136229[_0x336433(0xc8)],'filePath':_0x136229['filePath'],'remoteId':_0x2428eb['id']??null,'status':_0x42a5cf?_0x336433(0xe2):_0x336433(0xe6)});}return{'method':'GET','url':'/api/management/library/scripts/list?appCode='+_0x3b2303[_0x336433(0xee)]+(_0x51ba29?_0x336433(0xff)+_0x51ba29:''),'body':{'appCode':_0x3b2303[_0x336433(0xee)],'filterType':_0x51ba29??null,'files':_0x2af847},'description':_0x336433(0xd4)+_0x2af847[_0x336433(0xf3)]+_0x336433(0xbb)};},async 'execute'(_0xb945c0){const _0x5afaf8=a36_0x35b13d,_0x53aeb4=loadBffProjectConfig(_0xb945c0[_0x5afaf8(0xee)]),_0x3bf683=await readBffLockFile(_0x53aeb4[_0x5afaf8(0xbe)]),{lockData:_0x303629,appLock:_0xee38b6}=ensureLockScope(_0x3bf683??createEmptyBffLock(),_0xb945c0['appCode'],_0x53aeb4[_0x5afaf8(0x100)],_0x5afaf8(0xbf)),_0x1b9d72=normalizeBffType(_0xb945c0['str'](_0x5afaf8(0xc4)))??undefined;if(_0xb945c0[_0x5afaf8(0xe9)](_0x5afaf8(0xc4))&&!_0x1b9d72)throw CliErrors[_0x5afaf8(0xe1)](_0x5afaf8(0xfc));const [_0xa6a72e,_0x4c5033]=await Promise[_0x5afaf8(0xdb)]([listBffScripts(_0xb945c0['appCode'],_0x1b9d72),getBffScriptStatistics(_0xb945c0[_0x5afaf8(0xee)])]);if(_0xa6a72e[_0x5afaf8(0xf3)]===0x0)return{'ok':!![],'data':{'pulled':[],'skipped':[],'failed':[]},'message':_0x5afaf8(0xbc)};const _0x1558dd=_0xb945c0[_0x5afaf8(0xca)](_0x5afaf8(0x103));if(_0x1558dd&&!_0xb945c0[_0x5afaf8(0xe3)]){const _0x425c51=await confirmForce();if(!_0x425c51)throw CliErrors['cancelled']('Force\x20pull\x20cancelled.');}if(_0x1558dd&&_0xb945c0[_0x5afaf8(0xe3)]){}const _0x3db945=buildDatasetCodeToAliasMap(_0xb945c0[_0x5afaf8(0xcb)],_0xb945c0[_0x5afaf8(0xee)]),_0x57f443=createHookLocationMap(_0x4c5033),_0x41fba1=JSON[_0x5afaf8(0xfe)](JSON[_0x5afaf8(0xc2)](_0x303629)),_0x9d760b=_0xb945c0['appCode'],_0x5b146a=_0x41fba1['apps'][_0x9d760b];if(!_0x5b146a)throw new Error(_0x5afaf8(0xe7)+_0x9d760b+_0x5afaf8(0xdc));const _0x1547ce=[],_0x3fa809=[],_0x7f7819=[];for(const _0x2111b8 of _0xa6a72e){const _0x4804b8=resolveRemoteScriptTarget(_0x53aeb4,_0x2111b8,_0x57f443,_0xee38b6[_0x5afaf8(0xf2)],_0x3db945);if(!_0x4804b8){_0x3fa809[_0x5afaf8(0x101)]({'lockKey':_0x2111b8['scriptType']+'/'+_0x2111b8[_0x5afaf8(0xf8)],'reason':_0x5afaf8(0xc1)});continue;}const _0x2353ca=_0xee38b6[_0x5afaf8(0xf2)][_0x4804b8[_0x5afaf8(0xc8)]];try{if(!_0x2111b8['id'])throw new Error(_0x5afaf8(0xe0));if(_0x2111b8['scriptContent']==null)throw new Error(_0x5afaf8(0xd6));const _0x48a96e=_0x2111b8[_0x5afaf8(0xde)],_0x2e91be=computeContentHash(_0x48a96e);if(!_0x1558dd){const _0xea59c5=await hasUnsyncedLocalChanges(_0x4804b8[_0x5afaf8(0xf9)],_0x2353ca,_0x2e91be);if(_0xea59c5){_0x3fa809[_0x5afaf8(0x101)]({'lockKey':_0x4804b8[_0x5afaf8(0xc8)],'reason':_0x5afaf8(0xcf)});continue;}}await ensureParentDirectory(_0x4804b8[_0x5afaf8(0xf9)]),await writeFile(_0x4804b8[_0x5afaf8(0xf9)],_0x48a96e,_0x5afaf8(0xf4));const _0x3e7348={'hash':_0x2e91be,'remoteId':_0x2111b8['id'],'version':_0x2111b8['version']};_0x4804b8[_0x5afaf8(0xc4)]==='HOOK'&&_0x4804b8[_0x5afaf8(0xf6)]&&(_0x3e7348[_0x5afaf8(0xef)]=_0x4804b8[_0x5afaf8(0xf6)][_0x5afaf8(0xef)],_0x3e7348[_0x5afaf8(0xce)]=_0x4804b8['hookLocation'][_0x5afaf8(0xce)],_0x3e7348[_0x5afaf8(0xe4)]=_0x4804b8[_0x5afaf8(0xf6)]['operationType'],_0x3e7348[_0x5afaf8(0xc6)]=_0x4804b8[_0x5afaf8(0xf6)][_0x5afaf8(0xc6)]),_0x5b146a[_0x5afaf8(0xf2)][_0x4804b8[_0x5afaf8(0xc8)]]=_0x3e7348,_0x1547ce[_0x5afaf8(0x101)]({'lockKey':_0x4804b8[_0x5afaf8(0xc8)],'remoteId':_0x2111b8['id']});}catch(_0x191b19){_0x7f7819[_0x5afaf8(0x101)]({'lockKey':_0x4804b8[_0x5afaf8(0xc8)],'error':_0x191b19 instanceof Error?_0x191b19[_0x5afaf8(0xc7)]:String(_0x191b19)});}}return _0x5b146a[_0x5afaf8(0xd3)]=new Date()['toISOString'](),await writeBffLockFile(_0x53aeb4[_0x5afaf8(0xbe)],_0x41fba1),{'ok':_0x7f7819[_0x5afaf8(0xf3)]===0x0,'data':{'pulled':_0x1547ce,'skipped':_0x3fa809,'failed':_0x7f7819},'message':_0x5afaf8(0xf0)+_0x1547ce['length']+_0x5afaf8(0xfb)+_0x3fa809[_0x5afaf8(0xf3)]+_0x5afaf8(0xd5)+_0x7f7819[_0x5afaf8(0xf3)]+_0x5afaf8(0xea)};}};async function hasUnsyncedLocalChanges(_0x5825ba,_0x4787c4,_0x4d8339){const _0x25e6c5=a36_0x35b13d;if(!await fileExists(_0x5825ba))return![];const _0x49076b=await computeFileHash(_0x5825ba);if(!_0x4787c4)return _0x4d8339?_0x49076b!==_0x4d8339:!![];return _0x49076b!==_0x4787c4[_0x25e6c5(0xc5)];}function buildDatasetCodeToAliasMap(_0x68508,_0xa26e79){const _0x3d25a1=a36_0x35b13d,_0x3f8acd=loadAliasMap(_0x68508,undefined,resolveApiFilePath(_0x68508,_0xa26e79));return new Map(_0x3f8acd[_0x3d25a1(0xec)](_0x17db03=>[_0x17db03[_0x3d25a1(0xce)],_0x17db03[_0x3d25a1(0xef)]]));}async function confirmForce(){const _0xd226df=a36_0x35b13d,_0x224e0a=createInterface({'input':process['stdin'],'output':process[_0xd226df(0xe5)]}),_0x38f1e6=await new Promise(_0x2593b1=>{const _0x30b7a2=_0xd226df;_0x224e0a[_0x30b7a2(0xeb)](_0x30b7a2(0xf1),_0x2593b1);});return _0x224e0a['close'](),['y',_0xd226df(0xd0)][_0xd226df(0xfd)](_0x38f1e6[_0xd226df(0xed)]()[_0xd226df(0xc0)]());}
@@ -1 +1 @@
1
- const a37_0x1853fa=a37_0xd1e0;(function(_0x373321,_0x43fc97){const _0x60fcd5=a37_0xd1e0,_0x2d5813=_0x373321();while(!![]){try{const _0x2843e3=parseInt(_0x60fcd5(0xf5))/0x1+-parseInt(_0x60fcd5(0xbc))/0x2*(parseInt(_0x60fcd5(0xf3))/0x3)+parseInt(_0x60fcd5(0xd2))/0x4*(parseInt(_0x60fcd5(0xb8))/0x5)+-parseInt(_0x60fcd5(0xb6))/0x6*(parseInt(_0x60fcd5(0xdf))/0x7)+parseInt(_0x60fcd5(0xc2))/0x8+parseInt(_0x60fcd5(0xa9))/0x9+parseInt(_0x60fcd5(0xb5))/0xa*(-parseInt(_0x60fcd5(0xe3))/0xb);if(_0x2843e3===_0x43fc97)break;else _0x2d5813['push'](_0x2d5813['shift']());}catch(_0x17bf54){_0x2d5813['push'](_0x2d5813['shift']());}}}(a37_0x2e62,0x54272));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';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';function a37_0x2e62(){const _0x222610=['lastSync','every','str','\x20skipped,\x20','update','4435974hsRwad','\x20local\x20BFF\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','create','Force\x20push\x20ignoring\x20hash\x20protection','Incomplete\x20HOOK\x20path:\x20','join','some','datasetCode','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','appCode','message','bool','3210030abHPGa','2597964CBMuVS','functionNode','15iqgXvp','get','datasetId','type','2xzaAKl','name','length','stringify','scriptsRoot','has','4030408RMTQKQ','\x22\x20not\x20found\x20after\x20ensureLockScope.','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','lockFilePath','unchanged','operationType','functions','bff','description','runtime\x20cache\x20cleared','Runtime\x20script\x20cache\x20cleared.','\x20uploaded,\x20','Cannot\x20resolve\x20dataset\x20for\x20\x22','filter','runtime\x20cache\x20clear\x20failed','set','251148XPatrj','push','apiDir',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','values','Local\x20function\x20not\x20found:\x20','string','alias','status','HOOK','remoteId','attempted','toISOString','7emwpcU','high-risk-write','\x22.\x20','version','22CKbHxg','validation','\x20api\x20pull`\x20to\x20refresh\x20api.ts,\x20or\x20verify\x20the\x20dataset\x20exists.','boolean','filePath','datasetCodeToDataset','would_push','Run\x20`','map','apps','aliasToDatasetCode','\x20failed,\x20','code','Would\x20inspect\x20','POST','ENDPOINT','70323jEdepO','/api/management/library/scripts/save','258083cObfeH','lockKey','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.'];a37_0x2e62=function(){return _0x222610;};return a37_0x2e62();}const CACHE_CLEAR_ATTEMPTS=0x2,CACHE_CLEAR_INTERVAL_MS=0x12c;function a37_0xd1e0(_0x4a6350,_0xdac2d7){_0x4a6350=_0x4a6350-0xa9;const _0x2e6209=a37_0x2e62();let _0xd1e0c7=_0x2e6209[_0x4a6350];return _0xd1e0c7;}export const bffPush={'service':a37_0x1853fa(0xc9),'command':a37_0x1853fa(0xd3),'description':'Push\x20local\x20BFF\x20scripts\x20to\x20remote','risk':a37_0x1853fa(0xe0),'flags':[{'name':a37_0x1853fa(0xbb),'type':'string','description':'Push\x20only\x20this\x20script\x20type','enum':['COMMON',a37_0x1853fa(0xf2),a37_0x1853fa(0xdb)]},{'name':a37_0x1853fa(0xbd),'type':a37_0x1853fa(0xd8),'description':a37_0x1853fa(0xc4)},{'name':'force','type':a37_0x1853fa(0xe6),'description':a37_0x1853fa(0xac)}],async 'dryRun'(_0x3eaeac){const _0x273496=a37_0x1853fa,_0x244606=loadBffProjectConfig(_0x3eaeac[_0x273496(0xb2)]),_0xd5dcb4=await readBffLockFile(_0x244606[_0x273496(0xc5)]),{appLock:_0x1fed3c}=ensureLockScope(_0xd5dcb4??createEmptyBffLock(),_0x3eaeac['appCode'],_0x244606[_0x273496(0xc0)],_0x273496(0xd3)),_0x4df6fe=await getTargetFunctions(_0x244606,_0x3eaeac),_0x2304d9=_0x3eaeac[_0x273496(0xb4)]('force'),_0x27e6f5=[];for(const _0x1dca77 of _0x4df6fe){const _0x5c1552=await computeFileHash(_0x1dca77[_0x273496(0xe7)]),_0x1cbcce=_0x1fed3c[_0x273496(0xc8)][_0x1dca77[_0x273496(0xf6)]],_0x23410e=!!_0x1cbcce&&_0x1cbcce['hash']===_0x5c1552;_0x27e6f5[_0x273496(0xd3)]({'lockKey':_0x1dca77[_0x273496(0xf6)],'filePath':_0x1dca77[_0x273496(0xe7)],'remoteId':_0x1cbcce?.['remoteId']??null,'mode':_0x1cbcce?.[_0x273496(0xdc)]?_0x273496(0xfc):_0x273496(0xab),'status':!_0x2304d9&&_0x23410e?_0x273496(0xc6):'would_push'});}return{'method':_0x273496(0xf1),'url':_0x273496(0xf4),'body':{'appCode':_0x3eaeac[_0x273496(0xb2)],'force':_0x2304d9,'files':_0x27e6f5,'cacheClearAtRuntime':_0x27e6f5[_0x273496(0xaf)](_0x43bbb1=>_0x43bbb1[_0x273496(0xda)]===_0x273496(0xe9)),'cacheClearAtRuntimeTimes':_0x27e6f5[_0x273496(0xaf)](_0xced55c=>_0xced55c[_0x273496(0xda)]===_0x273496(0xe9))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x273496(0xf0)+_0x27e6f5['length']+_0x273496(0xaa)};},async 'execute'(_0x2aa497){const _0x4594a0=a37_0x1853fa,_0x1fae09=loadBffProjectConfig(_0x2aa497[_0x4594a0(0xb2)]),_0x5b8be6=await readBffLockFile(_0x1fae09[_0x4594a0(0xc5)]),{lockData:_0x438669,appLock:_0x650087}=ensureLockScope(_0x5b8be6??createEmptyBffLock(),_0x2aa497['appCode'],_0x1fae09[_0x4594a0(0xc0)],_0x4594a0(0xd3)),_0x7101f6=await getTargetFunctions(_0x1fae09,_0x2aa497);if(_0x7101f6[_0x4594a0(0xbe)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'failed':[]},'message':'No\x20local\x20BFF\x20functions\x20found.'};const _0x33d020=_0x2aa497[_0x4594a0(0xb4)]('force'),_0x1e3300=JSON['parse'](JSON[_0x4594a0(0xbf)](_0x438669)),_0x588ea9=_0x1e3300[_0x4594a0(0xec)][_0x2aa497[_0x4594a0(0xb2)]];if(!_0x588ea9)throw new Error('Lock\x20scope\x20for\x20app\x20\x22'+_0x2aa497['appCode']+_0x4594a0(0xc3));const _0x216a72=await buildHookMaps(_0x2aa497[_0x4594a0(0xb2)],_0x2aa497[_0x4594a0(0xd4)],_0x7101f6,_0x588ea9),_0x5937ff=[],_0xba4091=[],_0x4eda71=[];for(const _0x175a1c of _0x7101f6){const _0x15ee5f=await computeFileHash(_0x175a1c[_0x4594a0(0xe7)]),_0x3002b1=_0x588ea9['functions'][_0x175a1c[_0x4594a0(0xf6)]];if(!_0x33d020&&_0x3002b1&&_0x3002b1['hash']===_0x15ee5f){_0xba4091['push']({'lockKey':_0x175a1c[_0x4594a0(0xf6)],'reason':_0x4594a0(0xc6)});continue;}try{await uploadSingleFunction(_0x2aa497[_0x4594a0(0xb2)],_0x175a1c,_0x588ea9,_0x216a72);const _0x5cadb1=_0x588ea9[_0x4594a0(0xc8)][_0x175a1c['lockKey']];_0x5937ff['push']({'lockKey':_0x175a1c['lockKey'],'remoteId':_0x5cadb1?.[_0x4594a0(0xdc)]??0x0});}catch(_0x22c1c6){_0x4eda71[_0x4594a0(0xd3)]({'lockKey':_0x175a1c[_0x4594a0(0xf6)],'error':_0x22c1c6 instanceof Error?_0x22c1c6[_0x4594a0(0xb3)]:String(_0x22c1c6)});}}_0x588ea9[_0x4594a0(0xf8)]=new Date()[_0x4594a0(0xde)](),await writeBffLockFile(_0x1fae09[_0x4594a0(0xc5)],_0x1e3300),await waitForUploadedLockEntries(_0x1fae09[_0x4594a0(0xc5)],_0x2aa497[_0x4594a0(0xb2)],_0x5937ff['map'](_0x133488=>_0x133488[_0x4594a0(0xf6)]));let _0x2a6d5e={'attempted':![],'cleared':![]};if(_0x5937ff[_0x4594a0(0xbe)]>0x0)try{let _0x53915a='';for(let _0x4e4e68=0x0;_0x4e4e68<CACHE_CLEAR_ATTEMPTS;_0x4e4e68+=0x1){_0x53915a=await clearBffScriptCache(),_0x4e4e68<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x2a6d5e={'attempted':!![],'cleared':!![],'message':_0x53915a||_0x4594a0(0xcc)};}catch(_0x38a2d9){_0x2a6d5e={'attempted':!![],'cleared':![],'error':_0x38a2d9 instanceof Error?_0x38a2d9['message']:String(_0x38a2d9)};}const _0x4c57bc=_0x4eda71['length']===0x0&&(_0x2a6d5e['attempted']?_0x2a6d5e['cleared']:!![]),_0x132e29=_0x2a6d5e[_0x4594a0(0xdd)]?_0x2a6d5e['cleared']?_0x4594a0(0xcb):_0x4594a0(0xd0):'runtime\x20cache\x20not\x20needed';return{'ok':_0x4c57bc,'data':{'uploaded':_0x5937ff,'skipped':_0xba4091,'failed':_0x4eda71,'cacheClear':_0x2a6d5e},'message':'Push\x20complete:\x20'+_0x5937ff['length']+_0x4594a0(0xcd)+_0xba4091['length']+_0x4594a0(0xfb)+_0x4eda71[_0x4594a0(0xbe)]+_0x4594a0(0xee)+_0x132e29};}};async function getTargetFunctions(_0x1175c8,_0xb7a2a0){const _0x13db12=a37_0x1853fa,_0x4696af=_0xb7a2a0[_0x13db12(0xfa)](_0x13db12(0xbb)),_0x351365=_0xb7a2a0[_0x13db12(0xfa)](_0x13db12(0xbd)),_0x1be51c=normalizeBffType(_0x4696af)??undefined;if(_0x351365&&!_0x1be51c)throw CliErrors[_0x13db12(0xe4)](_0x13db12(0xf7));const _0x37cc88=await scanLocalBffFunctions(_0x1175c8,_0x1be51c);if(_0x351365){const _0x16ddf1=_0x37cc88[_0x13db12(0xcf)](_0x2ea046=>_0x2ea046[_0x13db12(0xbd)]===_0x351365);if(_0x16ddf1[_0x13db12(0xbe)]===0x0)throw CliErrors['validation'](_0x13db12(0xd7)+_0x1be51c+'/'+_0x351365);return _0x16ddf1;}return _0x37cc88;}async function buildHookMaps(_0x5a6dc4,_0x21fd8c,_0x44cc35,_0x53b8c0){const _0x330de5=a37_0x1853fa,_0x467dba=_0x44cc35['some'](_0x337762=>_0x337762[_0x330de5(0xbb)]===_0x330de5(0xdb));if(!_0x467dba)return{'aliasToDatasetCode':new Map(),'datasetCodeToDataset':new Map()};const _0x5030f5=loadAliasMap(_0x21fd8c,undefined,resolveApiFilePath(_0x21fd8c,_0x5a6dc4)),_0x44aaf9=new Map(_0x5030f5[_0x330de5(0xeb)](_0x4d3c9a=>[_0x4d3c9a['alias'],_0x4d3c9a[_0x330de5(0xb0)]]));for(const _0x80d3ef of Object[_0x330de5(0xd6)](_0x53b8c0[_0x330de5(0xc8)])){_0x80d3ef[_0x330de5(0xd9)]&&_0x80d3ef['datasetCode']&&!_0x44aaf9[_0x330de5(0xc1)](_0x80d3ef[_0x330de5(0xd9)])&&_0x44aaf9[_0x330de5(0xd1)](_0x80d3ef[_0x330de5(0xd9)],_0x80d3ef[_0x330de5(0xb0)]);}const _0x4ee837=await listDatasets(_0x5a6dc4),_0x17c5de=new Map(_0x4ee837['map'](_0x923ba=>[_0x923ba[_0x330de5(0xef)],_0x923ba]));return{'aliasToDatasetCode':_0x44aaf9,'datasetCodeToDataset':_0x17c5de};}async function uploadSingleFunction(_0x10b50e,_0x2a5044,_0x45d562,_0x229d92){const _0x305f09=a37_0x1853fa,_0x149b2a=await readFile(_0x2a5044[_0x305f09(0xe7)],'utf8'),_0x41560f=await computeFileHash(_0x2a5044['filePath']),_0x445db0=_0x45d562['functions'][_0x2a5044[_0x305f09(0xf6)]];if(_0x445db0?.[_0x305f09(0xdc)]&&_0x445db0[_0x305f09(0xe2)]==null)throw CliErrors[_0x305f09(0xe4)](_0x2a5044[_0x305f09(0xf6)]+_0x305f09(0xd5));let _0x5a688e=extractScriptDescription(_0x149b2a);if(!_0x5a688e&&_0x445db0?.[_0x305f09(0xdc)]){const _0x1c63dd=await getBffScriptInfo(_0x445db0['remoteId']);_0x5a688e=_0x1c63dd['description']||undefined;}const _0x1a99fd={'appCode':_0x10b50e,'functionName':_0x2a5044[_0x305f09(0xbd)],'scriptType':_0x2a5044[_0x305f09(0xbb)],'scriptContent':_0x149b2a};if(_0x445db0?.[_0x305f09(0xdc)])_0x1a99fd['id']=_0x445db0[_0x305f09(0xdc)];if(_0x445db0?.['version']!=null)_0x1a99fd['version']=_0x445db0[_0x305f09(0xe2)];if(_0x5a688e)_0x1a99fd[_0x305f09(0xca)]=_0x5a688e;if(_0x2a5044[_0x305f09(0xbb)]===_0x305f09(0xdb)){const _0x466f67=_0x2a5044['alias'];if(!_0x466f67||!_0x2a5044[_0x305f09(0xc7)]||!_0x2a5044[_0x305f09(0xb7)])throw CliErrors['validation'](_0x305f09(0xad)+_0x2a5044[_0x305f09(0xf6)]);const _0x268d78=_0x229d92['aliasToDatasetCode'][_0x305f09(0xb9)](_0x466f67)??_0x445db0?.['datasetCode']??_0x466f67,_0x55c018=_0x229d92[_0x305f09(0xe8)][_0x305f09(0xb9)](_0x268d78);if(!_0x55c018)throw CliErrors[_0x305f09(0xe4)](_0x305f09(0xce)+_0x466f67+_0x305f09(0xe1)+(_0x305f09(0xea)+CLI_BIN_NAME+_0x305f09(0xe5)));_0x1a99fd[_0x305f09(0xba)]=_0x55c018['id'],_0x1a99fd[_0x305f09(0xc7)]=_0x2a5044[_0x305f09(0xc7)],_0x1a99fd[_0x305f09(0xb7)]=_0x2a5044[_0x305f09(0xb7)];}const _0x34a2b8=await saveBffScript(_0x1a99fd),_0x31cf65=_0x34a2b8['id'],_0x7f3f81=_0x34a2b8['script']??await getBffScriptInfo(_0x31cf65),_0x5066c7={'hash':_0x41560f,'remoteId':_0x31cf65,'version':_0x7f3f81[_0x305f09(0xe2)]};if(_0x2a5044[_0x305f09(0xbb)]===_0x305f09(0xdb)){const _0xf61b65=_0x2a5044[_0x305f09(0xd9)],_0x197377=_0x229d92[_0x305f09(0xed)][_0x305f09(0xb9)](_0xf61b65)??_0x445db0?.[_0x305f09(0xb0)]??_0xf61b65;_0x229d92[_0x305f09(0xed)][_0x305f09(0xc1)](_0xf61b65)?_0x5066c7[_0x305f09(0xd9)]=_0xf61b65:_0x5066c7[_0x305f09(0xd9)]=_0x445db0?.['alias'],_0x5066c7[_0x305f09(0xb0)]=_0x197377,_0x5066c7[_0x305f09(0xc7)]=_0x2a5044[_0x305f09(0xc7)],_0x5066c7[_0x305f09(0xb7)]=_0x2a5044[_0x305f09(0xb7)];}_0x45d562[_0x305f09(0xc8)][_0x2a5044[_0x305f09(0xf6)]]=_0x5066c7;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x22f740,_0x45f75a,_0x43ab8b){const _0x27232a=a37_0x1853fa;if(_0x43ab8b[_0x27232a(0xbe)]===0x0)return;for(let _0x24f191=0x0;_0x24f191<LOCK_SETTLE_RETRY_COUNT;_0x24f191+=0x1){const _0x4ccc64=await readBffLockFile(_0x22f740),_0x380006=_0x4ccc64?.[_0x27232a(0xec)]?.[_0x45f75a]?.['functions']??{},_0x172ddc=_0x43ab8b[_0x27232a(0xf9)](_0x5c2c29=>!!_0x380006[_0x5c2c29]?.['remoteId']);if(_0x172ddc)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x27232a(0xb1)+_0x43ab8b[_0x27232a(0xae)](',\x20')+'.');}
1
+ const a37_0x2a8a5c=a37_0x2526;(function(_0x3597e5,_0x3fd1a6){const _0x143a23=a37_0x2526,_0x222930=_0x3597e5();while(!![]){try{const _0x1eef2b=parseInt(_0x143a23(0x12c))/0x1*(-parseInt(_0x143a23(0x148))/0x2)+parseInt(_0x143a23(0x113))/0x3*(parseInt(_0x143a23(0x137))/0x4)+parseInt(_0x143a23(0x13e))/0x5*(-parseInt(_0x143a23(0x114))/0x6)+-parseInt(_0x143a23(0x151))/0x7*(parseInt(_0x143a23(0x11c))/0x8)+-parseInt(_0x143a23(0x115))/0x9*(-parseInt(_0x143a23(0x13f))/0xa)+-parseInt(_0x143a23(0x11d))/0xb*(parseInt(_0x143a23(0x14e))/0xc)+parseInt(_0x143a23(0x135))/0xd;if(_0x1eef2b===_0x3fd1a6)break;else _0x222930['push'](_0x222930['shift']());}catch(_0x3229ec){_0x222930['push'](_0x222930['shift']());}}}(a37_0x555b,0xae622));import{readFile}from'node:fs/promises';function a37_0x2526(_0x488074,_0x46fcb1){_0x488074=_0x488074-0xff;const _0x555be5=a37_0x555b();let _0x2526ea=_0x555be5[_0x488074];return _0x2526ea;}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';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':a37_0x2a8a5c(0x136),'command':a37_0x2a8a5c(0x111),'description':'Push\x20local\x20BFF\x20scripts\x20to\x20remote','risk':a37_0x2a8a5c(0x10b),'flags':[{'name':'type','type':a37_0x2a8a5c(0x14f),'description':'Push\x20only\x20this\x20script\x20type','enum':['COMMON',a37_0x2a8a5c(0x130),a37_0x2a8a5c(0x10a)]},{'name':a37_0x2a8a5c(0x110),'type':'string','description':a37_0x2a8a5c(0x12b)},{'name':a37_0x2a8a5c(0x13c),'type':a37_0x2a8a5c(0x147),'description':a37_0x2a8a5c(0x145)}],async 'dryRun'(_0x9787d){const _0x4b1637=a37_0x2a8a5c,_0x10251c=loadBffProjectConfig(_0x9787d[_0x4b1637(0x14d)]),_0x2c5fd1=await readBffLockFile(_0x10251c[_0x4b1637(0x102)]),{appLock:_0xddd215}=ensureLockScope(_0x2c5fd1??createEmptyBffLock(),_0x9787d[_0x4b1637(0x14d)],_0x10251c[_0x4b1637(0x122)],_0x4b1637(0x111)),_0x5f302f=await getTargetFunctions(_0x10251c,_0x9787d),_0x248d1d=_0x9787d[_0x4b1637(0x106)](_0x4b1637(0x13c)),_0x142083=[];for(const _0x546866 of _0x5f302f){const _0x54c1d1=await computeFileHash(_0x546866[_0x4b1637(0x119)]),_0x12f49e=_0xddd215[_0x4b1637(0x129)][_0x546866['lockKey']],_0x4a8f71=!!_0x12f49e&&_0x12f49e[_0x4b1637(0x107)]===_0x54c1d1;_0x142083[_0x4b1637(0x111)]({'lockKey':_0x546866[_0x4b1637(0x131)],'filePath':_0x546866[_0x4b1637(0x119)],'remoteId':_0x12f49e?.['remoteId']??null,'mode':_0x12f49e?.[_0x4b1637(0x152)]?'update':'create','status':!_0x248d1d&&_0x4a8f71?_0x4b1637(0x101):'would_push'});}return{'method':'POST','url':_0x4b1637(0x12e),'body':{'appCode':_0x9787d[_0x4b1637(0x14d)],'force':_0x248d1d,'files':_0x142083,'cacheClearAtRuntime':_0x142083[_0x4b1637(0x133)](_0x4da4da=>_0x4da4da['status']===_0x4b1637(0x153)),'cacheClearAtRuntimeTimes':_0x142083[_0x4b1637(0x133)](_0x1ccfa9=>_0x1ccfa9[_0x4b1637(0x10c)]===_0x4b1637(0x153))?CACHE_CLEAR_ATTEMPTS:0x0},'description':'Would\x20inspect\x20'+_0x142083[_0x4b1637(0x108)]+_0x4b1637(0x11e)};},async 'execute'(_0x5a51d5){const _0x45f8c9=a37_0x2a8a5c,_0x23369a=loadBffProjectConfig(_0x5a51d5[_0x45f8c9(0x14d)]),_0x2a71fb=await readBffLockFile(_0x23369a['lockFilePath']),{lockData:_0x611218,appLock:_0x3c7b01}=ensureLockScope(_0x2a71fb??createEmptyBffLock(),_0x5a51d5[_0x45f8c9(0x14d)],_0x23369a['scriptsRoot'],'push'),_0x428a1f=await getTargetFunctions(_0x23369a,_0x5a51d5);if(_0x428a1f[_0x45f8c9(0x108)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'failed':[]},'message':_0x45f8c9(0x13d)};const _0x2d0886=_0x5a51d5['bool']('force'),_0x1cc68c=JSON['parse'](JSON[_0x45f8c9(0x10d)](_0x611218)),_0x503a3f=_0x1cc68c[_0x45f8c9(0x150)][_0x5a51d5[_0x45f8c9(0x14d)]];if(!_0x503a3f)throw new Error(_0x45f8c9(0x134)+_0x5a51d5[_0x45f8c9(0x14d)]+'\x22\x20not\x20found\x20after\x20ensureLockScope.');const _0x2e35cb=await buildHookMaps(_0x5a51d5['appCode'],_0x5a51d5[_0x45f8c9(0x127)],_0x428a1f,_0x503a3f),_0x422cce=[],_0x4e00bd=[],_0x21c9bf=[];for(const _0x4b3cf0 of _0x428a1f){const _0x344024=await computeFileHash(_0x4b3cf0[_0x45f8c9(0x119)]),_0x255590=_0x503a3f['functions'][_0x4b3cf0[_0x45f8c9(0x131)]];if(!_0x2d0886&&_0x255590&&_0x255590[_0x45f8c9(0x107)]===_0x344024){_0x4e00bd[_0x45f8c9(0x111)]({'lockKey':_0x4b3cf0[_0x45f8c9(0x131)],'reason':_0x45f8c9(0x101)});continue;}try{await uploadSingleFunction(_0x5a51d5[_0x45f8c9(0x14d)],_0x4b3cf0,_0x503a3f,_0x2e35cb);const _0x53e1be=_0x503a3f[_0x45f8c9(0x129)][_0x4b3cf0[_0x45f8c9(0x131)]];_0x422cce[_0x45f8c9(0x111)]({'lockKey':_0x4b3cf0['lockKey'],'remoteId':_0x53e1be?.[_0x45f8c9(0x152)]??0x0});}catch(_0x5c46d7){_0x21c9bf[_0x45f8c9(0x111)]({'lockKey':_0x4b3cf0[_0x45f8c9(0x131)],'error':_0x5c46d7 instanceof Error?_0x5c46d7['message']:String(_0x5c46d7)});}}_0x503a3f[_0x45f8c9(0x100)]=new Date()['toISOString'](),await writeBffLockFile(_0x23369a[_0x45f8c9(0x102)],_0x1cc68c),await waitForUploadedLockEntries(_0x23369a['lockFilePath'],_0x5a51d5[_0x45f8c9(0x14d)],_0x422cce[_0x45f8c9(0x10e)](_0x8d108e=>_0x8d108e[_0x45f8c9(0x131)]));let _0x599fdd={'attempted':![],'cleared':![]};if(_0x422cce[_0x45f8c9(0x108)]>0x0)try{let _0x366296='';for(let _0x9b8620=0x0;_0x9b8620<CACHE_CLEAR_ATTEMPTS;_0x9b8620+=0x1){_0x366296=await clearBffScriptCache(),_0x9b8620<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x599fdd={'attempted':!![],'cleared':!![],'message':_0x366296||_0x45f8c9(0x14c)};}catch(_0x1febd6){_0x599fdd={'attempted':!![],'cleared':![],'error':_0x1febd6 instanceof Error?_0x1febd6[_0x45f8c9(0x103)]:String(_0x1febd6)};}const _0x576e14=_0x21c9bf['length']===0x0&&(_0x599fdd[_0x45f8c9(0x143)]?_0x599fdd['cleared']:!![]),_0x25d9af=_0x599fdd['attempted']?_0x599fdd[_0x45f8c9(0x104)]?_0x45f8c9(0x132):_0x45f8c9(0x124):_0x45f8c9(0x13a);return{'ok':_0x576e14,'data':{'uploaded':_0x422cce,'skipped':_0x4e00bd,'failed':_0x21c9bf,'cacheClear':_0x599fdd},'message':_0x45f8c9(0x11b)+_0x422cce['length']+_0x45f8c9(0x117)+_0x4e00bd[_0x45f8c9(0x108)]+_0x45f8c9(0x140)+_0x21c9bf[_0x45f8c9(0x108)]+_0x45f8c9(0x116)+_0x25d9af};}};async function getTargetFunctions(_0x58d607,_0x3b5265){const _0x2d1dca=a37_0x2a8a5c,_0x416b31=_0x3b5265['str'](_0x2d1dca(0x14b)),_0x514952=_0x3b5265[_0x2d1dca(0x125)]('name'),_0x49761a=normalizeBffType(_0x416b31)??undefined;if(_0x514952&&!_0x49761a)throw CliErrors[_0x2d1dca(0x121)](_0x2d1dca(0x142));const _0x18bf14=await scanLocalBffFunctions(_0x58d607,_0x49761a);if(_0x514952){const _0x27d05d=_0x18bf14[_0x2d1dca(0x139)](_0x14d1ff=>_0x14d1ff[_0x2d1dca(0x110)]===_0x514952);if(_0x27d05d[_0x2d1dca(0x108)]===0x0)throw CliErrors['validation'](_0x2d1dca(0x120)+_0x49761a+'/'+_0x514952);return _0x27d05d;}return _0x18bf14;}function a37_0x555b(){const _0x411ba5=['1hVJBHL','version','/api/management/library/scripts/save','set','ENDPOINT','lockKey','runtime\x20cache\x20cleared','some','Lock\x20scope\x20for\x20app\x20\x22','34504977nBmvdw','bff','8gjUDFE','alias','filter','runtime\x20cache\x20not\x20needed','datasetCode','force','No\x20local\x20BFF\x20functions\x20found.','85nIjvDS','330nHnIih','\x20skipped,\x20','operationType','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','attempted','get','Force\x20push\x20ignoring\x20hash\x20protection','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','boolean','2532340epSSUS','code','description','type','Runtime\x20script\x20cache\x20cleared.','appCode','9732GeYgCU','string','apps','42vtiNZh','remoteId','would_push',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','lastSync','unchanged','lockFilePath','message','cleared','functionNode','bool','hash','length','utf8','HOOK','high-risk-write','status','stringify','map','script','name','push','datasetCodeToDataset','836400gUcVxK','38658iYAgmW','217926YKsBhY','\x20failed,\x20','\x20uploaded,\x20','every','filePath','\x20api\x20pull`\x20to\x20refresh\x20api.ts,\x20or\x20verify\x20the\x20dataset\x20exists.','Push\x20complete:\x20','1706968DLGFZn','8690fmaIgC','\x20local\x20BFF\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','Cannot\x20resolve\x20dataset\x20for\x20\x22','Local\x20function\x20not\x20found:\x20','validation','scriptsRoot','Run\x20`','runtime\x20cache\x20clear\x20failed','str','\x22.\x20','apiDir','aliasToDatasetCode','functions','datasetId','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)'];a37_0x555b=function(){return _0x411ba5;};return a37_0x555b();}async function buildHookMaps(_0x85d01c,_0x1eb657,_0x3fd501,_0x3aefbe){const _0x43dfd8=a37_0x2a8a5c,_0x311be8=_0x3fd501[_0x43dfd8(0x133)](_0x3f6e3c=>_0x3f6e3c[_0x43dfd8(0x14b)]==='HOOK');if(!_0x311be8)return{'aliasToDatasetCode':new Map(),'datasetCodeToDataset':new Map()};const _0x342979=loadAliasMap(_0x1eb657,undefined,resolveApiFilePath(_0x1eb657,_0x85d01c)),_0x5e463d=new Map(_0x342979[_0x43dfd8(0x10e)](_0x509626=>[_0x509626[_0x43dfd8(0x138)],_0x509626[_0x43dfd8(0x13b)]]));for(const _0x11eb50 of Object['values'](_0x3aefbe['functions'])){_0x11eb50[_0x43dfd8(0x138)]&&_0x11eb50['datasetCode']&&!_0x5e463d['has'](_0x11eb50[_0x43dfd8(0x138)])&&_0x5e463d[_0x43dfd8(0x12f)](_0x11eb50[_0x43dfd8(0x138)],_0x11eb50[_0x43dfd8(0x13b)]);}const _0xbbc44c=await listDatasets(_0x85d01c),_0x52ebaa=new Map(_0xbbc44c[_0x43dfd8(0x10e)](_0x4b139f=>[_0x4b139f[_0x43dfd8(0x149)],_0x4b139f]));return{'aliasToDatasetCode':_0x5e463d,'datasetCodeToDataset':_0x52ebaa};}async function uploadSingleFunction(_0x44a216,_0x9a91ec,_0x292ddf,_0x2bb328){const _0x328862=a37_0x2a8a5c,_0x131dac=await readFile(_0x9a91ec[_0x328862(0x119)],_0x328862(0x109)),_0x4e280d=await computeFileHash(_0x9a91ec[_0x328862(0x119)]),_0x5af8a7=_0x292ddf[_0x328862(0x129)][_0x9a91ec[_0x328862(0x131)]];if(_0x5af8a7?.[_0x328862(0x152)]&&_0x5af8a7[_0x328862(0x12d)]==null)throw CliErrors[_0x328862(0x121)](_0x9a91ec['lockKey']+_0x328862(0xff));let _0x4f2b1e=extractScriptDescription(_0x131dac);if(!_0x4f2b1e&&_0x5af8a7?.[_0x328862(0x152)]){const _0x11d4d2=await getBffScriptInfo(_0x5af8a7[_0x328862(0x152)]);_0x4f2b1e=_0x11d4d2[_0x328862(0x14a)]||undefined;}const _0x531b33={'appCode':_0x44a216,'functionName':_0x9a91ec['name'],'scriptType':_0x9a91ec[_0x328862(0x14b)],'scriptContent':_0x131dac};if(_0x5af8a7?.[_0x328862(0x152)])_0x531b33['id']=_0x5af8a7[_0x328862(0x152)];if(_0x5af8a7?.['version']!=null)_0x531b33[_0x328862(0x12d)]=_0x5af8a7[_0x328862(0x12d)];if(_0x4f2b1e)_0x531b33[_0x328862(0x14a)]=_0x4f2b1e;if(_0x9a91ec['type']===_0x328862(0x10a)){const _0x2aaf65=_0x9a91ec[_0x328862(0x138)];if(!_0x2aaf65||!_0x9a91ec[_0x328862(0x141)]||!_0x9a91ec[_0x328862(0x105)])throw CliErrors[_0x328862(0x121)]('Incomplete\x20HOOK\x20path:\x20'+_0x9a91ec[_0x328862(0x131)]);const _0x3cadcf=_0x2bb328[_0x328862(0x128)]['get'](_0x2aaf65)??_0x5af8a7?.['datasetCode']??_0x2aaf65,_0x5a4a86=_0x2bb328[_0x328862(0x112)][_0x328862(0x144)](_0x3cadcf);if(!_0x5a4a86)throw CliErrors['validation'](_0x328862(0x11f)+_0x2aaf65+_0x328862(0x126)+(_0x328862(0x123)+CLI_BIN_NAME+_0x328862(0x11a)));_0x531b33[_0x328862(0x12a)]=_0x5a4a86['id'],_0x531b33[_0x328862(0x141)]=_0x9a91ec[_0x328862(0x141)],_0x531b33[_0x328862(0x105)]=_0x9a91ec[_0x328862(0x105)];}const _0x4f6477=await saveBffScript(_0x531b33),_0x30f82c=_0x4f6477['id'],_0x26f89f=_0x4f6477[_0x328862(0x10f)]??await getBffScriptInfo(_0x30f82c),_0x15f879={'hash':_0x4e280d,'remoteId':_0x30f82c,'version':_0x26f89f[_0x328862(0x12d)]};if(_0x9a91ec['type']===_0x328862(0x10a)){const _0x426421=_0x9a91ec['alias'],_0x40b524=_0x2bb328[_0x328862(0x128)]['get'](_0x426421)??_0x5af8a7?.['datasetCode']??_0x426421;_0x2bb328[_0x328862(0x128)]['has'](_0x426421)?_0x15f879['alias']=_0x426421:_0x15f879[_0x328862(0x138)]=_0x5af8a7?.[_0x328862(0x138)],_0x15f879[_0x328862(0x13b)]=_0x40b524,_0x15f879[_0x328862(0x141)]=_0x9a91ec['operationType'],_0x15f879[_0x328862(0x105)]=_0x9a91ec['functionNode'];}_0x292ddf[_0x328862(0x129)][_0x9a91ec[_0x328862(0x131)]]=_0x15f879;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x34ea29,_0x44152a,_0x277860){const _0x396773=a37_0x2a8a5c;if(_0x277860[_0x396773(0x108)]===0x0)return;for(let _0xb7a459=0x0;_0xb7a459<LOCK_SETTLE_RETRY_COUNT;_0xb7a459+=0x1){const _0x5ea041=await readBffLockFile(_0x34ea29),_0x4a1635=_0x5ea041?.[_0x396773(0x150)]?.[_0x44152a]?.[_0x396773(0x129)]??{},_0x428679=_0x277860[_0x396773(0x118)](_0x592b69=>!!_0x4a1635[_0x592b69]?.[_0x396773(0x152)]);if(_0x428679)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x396773(0x146)+_0x277860['join'](',\x20')+'.');}
@@ -1 +1 @@
1
- const a38_0x58071b=a38_0x36c7;(function(_0x2cb988,_0x499686){const _0x10b67d=a38_0x36c7,_0x274e4c=_0x2cb988();while(!![]){try{const _0x1f4cfc=-parseInt(_0x10b67d(0x15c))/0x1*(-parseInt(_0x10b67d(0x159))/0x2)+-parseInt(_0x10b67d(0x172))/0x3*(parseInt(_0x10b67d(0x14d))/0x4)+-parseInt(_0x10b67d(0x164))/0x5+parseInt(_0x10b67d(0x16a))/0x6*(-parseInt(_0x10b67d(0x157))/0x7)+-parseInt(_0x10b67d(0x16b))/0x8+-parseInt(_0x10b67d(0x14f))/0x9*(-parseInt(_0x10b67d(0x16e))/0xa)+-parseInt(_0x10b67d(0x163))/0xb*(-parseInt(_0x10b67d(0x161))/0xc);if(_0x1f4cfc===_0x499686)break;else _0x274e4c['push'](_0x274e4c['shift']());}catch(_0x161ea5){_0x274e4c['push'](_0x274e4c['shift']());}}}(a38_0x4ce8,0xa1769));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';function a38_0x4ce8(){const _0x5bb57d=['status','\x20unchanged','23363940irpkRz','lockFilePath','11qiPSHs','5670525ujWsdj','scriptsRoot','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','map','read','length','2874KJFZCV','1946416GYUGjJ','push','filePath','8327870chbgPQ','bff','functions','apiDir','1293sangNR','11864WzgNKC','appCode','9wxfZcA','bool','has','All\x20BFF\x20scripts\x20are\x20in\x20sync.','alias','hash','remote','datasetCode','5684lSsdhZ','\x20added,\x20','231568mWiZrZ','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','\x20remote-only','8OroKWO','\x20modified,\x20','lockKey'];a38_0x4ce8=function(){return _0x5bb57d;};return a38_0x4ce8();}import{loadAliasMap}from'../../core/alias-resolver.js';function a38_0x36c7(_0xffdf6c,_0x2fcb90){_0xffdf6c=_0xffdf6c-0x14d;const _0x4ce87a=a38_0x4ce8();let _0x36c74a=_0x4ce87a[_0xffdf6c];return _0x36c74a;}import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a38_0x58071b(0x16f),'command':a38_0x58071b(0x15f),'description':a38_0x58071b(0x15a),'risk':a38_0x58071b(0x168),'flags':[{'name':a38_0x58071b(0x155),'type':'boolean','description':a38_0x58071b(0x166)}],async 'execute'(_0x3d5845){const _0x2e0f62=a38_0x58071b,_0x1d5819=loadBffProjectConfig(_0x3d5845[_0x2e0f62(0x14e)]),_0x28a802=await readBffLockFile(_0x1d5819[_0x2e0f62(0x162)]),{appLock:_0x19dbab}=ensureLockScope(_0x28a802??createEmptyBffLock(),_0x3d5845[_0x2e0f62(0x14e)],_0x1d5819[_0x2e0f62(0x165)],_0x2e0f62(0x15f)),_0x4df62d=await scanLocalBffFunctions(_0x1d5819),_0x32410c=[],_0x241b8f=[],_0x4072b2=[];for(const _0x1440ed of _0x4df62d){const _0x18417c=await computeFileHash(_0x1440ed[_0x2e0f62(0x16d)]),_0x24dcec=_0x19dbab[_0x2e0f62(0x170)][_0x1440ed['lockKey']];if(!_0x24dcec)_0x32410c[_0x2e0f62(0x16c)](_0x1440ed[_0x2e0f62(0x15e)]);else _0x24dcec[_0x2e0f62(0x154)]!==_0x18417c?_0x241b8f['push'](_0x1440ed['lockKey']):_0x4072b2[_0x2e0f62(0x16c)](_0x1440ed['lockKey']);}const _0x5182b0=[];if(_0x3d5845[_0x2e0f62(0x150)](_0x2e0f62(0x155))){const _0x43077c=loadAliasMap(_0x3d5845[_0x2e0f62(0x171)],undefined,resolveApiFilePath(_0x3d5845[_0x2e0f62(0x171)],_0x3d5845[_0x2e0f62(0x14e)])),_0x132c46=new Map(_0x43077c[_0x2e0f62(0x167)](_0x1a9215=>[_0x1a9215[_0x2e0f62(0x156)],_0x1a9215[_0x2e0f62(0x153)]])),[_0x3eca90,_0x4edd4b]=await Promise['all']([listBffScripts(_0x3d5845[_0x2e0f62(0x14e)]),getBffScriptStatistics(_0x3d5845[_0x2e0f62(0x14e)])]),_0x1de9f5=createHookLocationMap(_0x4edd4b),_0x27fdee=new Set(_0x4df62d[_0x2e0f62(0x167)](_0x5aa840=>_0x5aa840['lockKey']));for(const _0x3889b6 of _0x3eca90){const _0x2b8856=resolveRemoteScriptTarget(_0x1d5819,_0x3889b6,_0x1de9f5,_0x19dbab[_0x2e0f62(0x170)],_0x132c46);_0x2b8856&&!_0x27fdee[_0x2e0f62(0x151)](_0x2b8856[_0x2e0f62(0x15e)])&&_0x5182b0[_0x2e0f62(0x16c)](_0x2b8856[_0x2e0f62(0x15e)]);}}const _0x4db845=_0x32410c[_0x2e0f62(0x169)]===0x0&&_0x241b8f['length']===0x0&&_0x5182b0[_0x2e0f62(0x169)]===0x0;return{'ok':!![],'data':{'added':_0x32410c,'modified':_0x241b8f,'unchanged':_0x4072b2,'remoteOnly':_0x5182b0},'message':_0x4db845?_0x2e0f62(0x152):_0x32410c[_0x2e0f62(0x169)]+_0x2e0f62(0x158)+_0x241b8f[_0x2e0f62(0x169)]+_0x2e0f62(0x15d)+_0x4072b2[_0x2e0f62(0x169)]+_0x2e0f62(0x160)+(_0x5182b0[_0x2e0f62(0x169)]>0x0?',\x20'+_0x5182b0[_0x2e0f62(0x169)]+_0x2e0f62(0x15b):'')};}};
1
+ const a38_0x4a3ce8=a38_0x5d00;(function(_0x308d62,_0xb71ca4){const _0x21ee7e=a38_0x5d00,_0xac8eab=_0x308d62();while(!![]){try{const _0x5a143f=-parseInt(_0x21ee7e(0x1aa))/0x1*(-parseInt(_0x21ee7e(0x19f))/0x2)+-parseInt(_0x21ee7e(0x195))/0x3*(parseInt(_0x21ee7e(0x18c))/0x4)+parseInt(_0x21ee7e(0x19e))/0x5*(parseInt(_0x21ee7e(0x1a1))/0x6)+parseInt(_0x21ee7e(0x197))/0x7*(-parseInt(_0x21ee7e(0x19c))/0x8)+-parseInt(_0x21ee7e(0x1a7))/0x9+-parseInt(_0x21ee7e(0x1a4))/0xa*(-parseInt(_0x21ee7e(0x18b))/0xb)+-parseInt(_0x21ee7e(0x198))/0xc*(-parseInt(_0x21ee7e(0x193))/0xd);if(_0x5a143f===_0xb71ca4)break;else _0xac8eab['push'](_0xac8eab['shift']());}catch(_0xcf5839){_0xac8eab['push'](_0xac8eab['shift']());}}}(a38_0x4a32,0x61777));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 a38_0x5d00(_0x13e223,_0x43d5ed){_0x13e223=_0x13e223-0x18b;const _0x4a32ef=a38_0x4a32();let _0x5d00f5=_0x4a32ef[_0x13e223];return _0x5d00f5;}import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';function a38_0x4a32(){const _0xd28170=['21544fRtJGx','All\x20BFF\x20scripts\x20are\x20in\x20sync.','16705szejoS','28446uVdeSS','boolean','288yONbCr','status','read','4490sZkagL','map','lockKey','1432908gWSXXu','lockFilePath','bff','12VPMTAm','\x20added,\x20','length','9141zxCUfz','10856eaDiYC','functions','hash','push','remote','scriptsRoot','appCode','7240025CPqdHY','\x20modified,\x20','738yqFhBO','has','91DwSFra','12MIWfWk','all','apiDir','alias'];a38_0x4a32=function(){return _0xd28170;};return a38_0x4a32();}export const bffStatus={'service':a38_0x4a3ce8(0x1a9),'command':a38_0x4a3ce8(0x1a2),'description':'Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','risk':a38_0x4a3ce8(0x1a3),'flags':[{'name':'remote','type':a38_0x4a3ce8(0x1a0),'description':'Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally'}],async 'execute'(_0x522efc){const _0x229d5f=a38_0x4a3ce8,_0x4277f5=loadBffProjectConfig(_0x522efc[_0x229d5f(0x192)]),_0x1a1190=await readBffLockFile(_0x4277f5[_0x229d5f(0x1a8)]),{appLock:_0x4ee643}=ensureLockScope(_0x1a1190??createEmptyBffLock(),_0x522efc[_0x229d5f(0x192)],_0x4277f5[_0x229d5f(0x191)],_0x229d5f(0x1a2)),_0x41103f=await scanLocalBffFunctions(_0x4277f5),_0x149bfd=[],_0xf9cb23=[],_0xbcbb51=[];for(const _0x65d4da of _0x41103f){const _0x2f77e5=await computeFileHash(_0x65d4da['filePath']),_0x29138a=_0x4ee643[_0x229d5f(0x18d)][_0x65d4da[_0x229d5f(0x1a6)]];if(!_0x29138a)_0x149bfd[_0x229d5f(0x18f)](_0x65d4da[_0x229d5f(0x1a6)]);else _0x29138a[_0x229d5f(0x18e)]!==_0x2f77e5?_0xf9cb23[_0x229d5f(0x18f)](_0x65d4da['lockKey']):_0xbcbb51[_0x229d5f(0x18f)](_0x65d4da[_0x229d5f(0x1a6)]);}const _0x268908=[];if(_0x522efc['bool'](_0x229d5f(0x190))){const _0x2e2c53=loadAliasMap(_0x522efc['apiDir'],undefined,resolveApiFilePath(_0x522efc[_0x229d5f(0x19a)],_0x522efc[_0x229d5f(0x192)])),_0x5b7e02=new Map(_0x2e2c53[_0x229d5f(0x1a5)](_0x589e5e=>[_0x589e5e['datasetCode'],_0x589e5e[_0x229d5f(0x19b)]])),[_0x38417d,_0x25272c]=await Promise[_0x229d5f(0x199)]([listBffScripts(_0x522efc[_0x229d5f(0x192)]),getBffScriptStatistics(_0x522efc['appCode'])]),_0x241421=createHookLocationMap(_0x25272c),_0x1c686f=new Set(_0x41103f['map'](_0x3631d6=>_0x3631d6[_0x229d5f(0x1a6)]));for(const _0x1cff63 of _0x38417d){const _0x30e38b=resolveRemoteScriptTarget(_0x4277f5,_0x1cff63,_0x241421,_0x4ee643[_0x229d5f(0x18d)],_0x5b7e02);_0x30e38b&&!_0x1c686f[_0x229d5f(0x196)](_0x30e38b[_0x229d5f(0x1a6)])&&_0x268908[_0x229d5f(0x18f)](_0x30e38b[_0x229d5f(0x1a6)]);}}const _0x564f1b=_0x149bfd[_0x229d5f(0x1ac)]===0x0&&_0xf9cb23[_0x229d5f(0x1ac)]===0x0&&_0x268908[_0x229d5f(0x1ac)]===0x0;return{'ok':!![],'data':{'added':_0x149bfd,'modified':_0xf9cb23,'unchanged':_0xbcbb51,'remoteOnly':_0x268908},'message':_0x564f1b?_0x229d5f(0x19d):_0x149bfd[_0x229d5f(0x1ac)]+_0x229d5f(0x1ab)+_0xf9cb23[_0x229d5f(0x1ac)]+_0x229d5f(0x194)+_0xbcbb51[_0x229d5f(0x1ac)]+'\x20unchanged'+(_0x268908['length']>0x0?',\x20'+_0x268908[_0x229d5f(0x1ac)]+'\x20remote-only':'')};}};
@@ -1 +1 @@
1
- function a39_0x2b8b(_0x4a2dc7,_0x333ec1){_0x4a2dc7=_0x4a2dc7-0x149;const _0xd4ef25=a39_0xd4ef();let _0x2b8be3=_0xd4ef25[_0x4a2dc7];return _0x2b8be3;}const a39_0x34f041=a39_0x2b8b;(function(_0x4c9b33,_0x1d808d){const _0x374d9c=a39_0x2b8b,_0x42674b=_0x4c9b33();while(!![]){try{const _0x1f8e6f=-parseInt(_0x374d9c(0x167))/0x1*(-parseInt(_0x374d9c(0x162))/0x2)+parseInt(_0x374d9c(0x168))/0x3*(-parseInt(_0x374d9c(0x157))/0x4)+-parseInt(_0x374d9c(0x151))/0x5+-parseInt(_0x374d9c(0x150))/0x6+parseInt(_0x374d9c(0x15e))/0x7+parseInt(_0x374d9c(0x15a))/0x8*(-parseInt(_0x374d9c(0x14a))/0x9)+parseInt(_0x374d9c(0x14f))/0xa;if(_0x1f8e6f===_0x1d808d)break;else _0x42674b['push'](_0x42674b['shift']());}catch(_0x4fc8d5){_0x42674b['push'](_0x42674b['shift']());}}}(a39_0xd4ef,0xd4c5c));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';function a39_0xd4ef(){const _0x66de42=['CLI\x20Built-in\x20Skill\x20installed','5gleSVI','6bxznoX','cwd','875061vfXkKG','install','nonInteractive','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(','25617210JkQqvP','4637634jdmAWz','6838205vzFiGR','skipped','error','unknown','log','../../skills/npx-skills-add.js','3022268jVYMiS','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.',')...','8nIYZzO','cli-skill','pipe','Skipped\x20npx\x20(RABETBASE_SKIP_NPX_SKILLS=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.','6609421Ughasa','setLogPath','cli-skill-install','Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','445814tGFqnD','npx\x20skills\x20add\x20failed:\x20','write','info'];a39_0xd4ef=function(){return _0x66de42;};return a39_0xd4ef();}export const cliSkillDefinitions=[{'service':a39_0x34f041(0x15b),'command':a39_0x34f041(0x14b),'description':a39_0x34f041(0x161),'risk':a39_0x34f041(0x164),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x31dc2f){const _0x46b9f0=a39_0x34f041;logger[_0x46b9f0(0x15f)](process[_0x46b9f0(0x149)]()),logger[_0x46b9f0(0x165)](_0x46b9f0(0x160),_0x46b9f0(0x158));const {NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE:_0x11f8be,RABETBASE_SKILL_SOURCE:_0x569250,runNpxSkillsAddGlobal:_0x3273df}=await import(_0x46b9f0(0x156)),_0x3b0543=_0x31dc2f[_0x46b9f0(0x14c)]?_0x46b9f0(0x15c):'inherit';console['log'](_0x46b9f0(0x14e)+_0x11f8be+_0x46b9f0(0x159));const _0x598706=_0x3273df(process[_0x46b9f0(0x149)](),_0x569250,{'stdio':_0x3b0543});if(_0x598706[_0x46b9f0(0x152)])console[_0x46b9f0(0x155)](_0x46b9f0(0x15d));else{if(_0x598706['ok'])console[_0x46b9f0(0x155)](_0x46b9f0(0x166));else throw CliErrors['apiError'](_0x46b9f0(0x163)+(_0x598706[_0x46b9f0(0x153)]||_0x46b9f0(0x154)),_0x46b9f0(0x14d)+_0x11f8be);}return{'ok':!![]};}}];
1
+ function a39_0x533c(_0x39dfbf,_0x4ca581){_0x39dfbf=_0x39dfbf-0x115;const _0x5e9858=a39_0x5e98();let _0x533ca9=_0x5e9858[_0x39dfbf];return _0x533ca9;}function a39_0x5e98(){const _0x3a958e=['26374mrOvqA','apiError','801162UwWtco','10sSfPOD','28NCCDgt','unknown','nonInteractive','Install\x20or\x20refresh\x20the\x20Rabetbase\x20CLI\x20Built-in\x20Skill','1715796lEPOFh','log','1217532jepwSE','npx\x20skills\x20add\x20failed:\x20','inherit','13hmHZwo',')...','pipe','CLI\x20Built-in\x20Skill\x20installed','Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx\x20(','3276bsyplt','skipped','info','error','Check\x20network\x20connectivity\x20and\x20try\x20again,\x20or\x20run:\x20','setLogPath','7pRRHCh','cwd','write','199560SGkmQV','23309TcCVMu','install','2615COBOIR','cli-skill-install'];a39_0x5e98=function(){return _0x3a958e;};return a39_0x5e98();}const a39_0x2ea746=a39_0x533c;(function(_0x5b8018,_0x5dce0c){const _0x1b8df8=a39_0x533c,_0x1c56e4=_0x5b8018();while(!![]){try{const _0x1b19e0=-parseInt(_0x1b8df8(0x124))/0x1*(parseInt(_0x1b8df8(0x117))/0x2)+-parseInt(_0x1b8df8(0x119))/0x3+parseInt(_0x1b8df8(0x11b))/0x4*(-parseInt(_0x1b8df8(0x115))/0x5)+parseInt(_0x1b8df8(0x121))/0x6+parseInt(_0x1b8df8(0x12f))/0x7*(parseInt(_0x1b8df8(0x132))/0x8)+parseInt(_0x1b8df8(0x11f))/0x9*(-parseInt(_0x1b8df8(0x11a))/0xa)+parseInt(_0x1b8df8(0x133))/0xb*(parseInt(_0x1b8df8(0x129))/0xc);if(_0x1b19e0===_0x5dce0c)break;else _0x1c56e4['push'](_0x1c56e4['shift']());}catch(_0x3efa4e){_0x1c56e4['push'](_0x1c56e4['shift']());}}}(a39_0x5e98,0x2a5fc));import{CliErrors}from'../../errors.js';import{logger}from'../../utils/logger.js';export const cliSkillDefinitions=[{'service':'cli-skill','command':a39_0x2ea746(0x134),'description':a39_0x2ea746(0x11e),'risk':a39_0x2ea746(0x131),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':[],async 'execute'(_0x14e5b3){const _0x3ba71b=a39_0x2ea746;logger[_0x3ba71b(0x12e)](process[_0x3ba71b(0x130)]()),logger[_0x3ba71b(0x12b)](_0x3ba71b(0x116),'Installing\x20CLI\x20Built-in\x20Skill\x20via\x20npx.');const {NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE:_0x5f1241,RABETBASE_SKILL_SOURCE:_0x29b0a5,runNpxSkillsAddGlobal:_0x1285a9}=await import('../../skills/npx-skills-add.js'),_0x3ec25a=_0x14e5b3[_0x3ba71b(0x11d)]?_0x3ba71b(0x126):_0x3ba71b(0x123);console['log'](_0x3ba71b(0x128)+_0x5f1241+_0x3ba71b(0x125));const _0x299a6c=_0x1285a9(process[_0x3ba71b(0x130)](),_0x29b0a5,{'stdio':_0x3ec25a});if(_0x299a6c[_0x3ba71b(0x12a)])console[_0x3ba71b(0x120)]('Skipped\x20npx\x20(RABETBASE_SKIP_NPX_SKILLS=1);\x20assuming\x20CLI\x20Built-in\x20Skill\x20is\x20already\x20present.');else{if(_0x299a6c['ok'])console[_0x3ba71b(0x120)](_0x3ba71b(0x127));else throw CliErrors[_0x3ba71b(0x118)](_0x3ba71b(0x122)+(_0x299a6c[_0x3ba71b(0x12c)]||_0x3ba71b(0x11c)),_0x3ba71b(0x12d)+_0x5f1241);}return{'ok':!![]};}}];
@@ -1 +1 @@
1
- const a40_0x29440b=a40_0x3a9b;(function(_0x49e596,_0x4acd4b){const _0x41db13=a40_0x3a9b,_0x2abe83=_0x49e596();while(!![]){try{const _0x223cb0=-parseInt(_0x41db13(0x22f))/0x1*(-parseInt(_0x41db13(0x223))/0x2)+parseInt(_0x41db13(0x206))/0x3+-parseInt(_0x41db13(0x1e7))/0x4+parseInt(_0x41db13(0x209))/0x5+parseInt(_0x41db13(0x1fc))/0x6+parseInt(_0x41db13(0x219))/0x7*(-parseInt(_0x41db13(0x1e8))/0x8)+-parseInt(_0x41db13(0x21d))/0x9;if(_0x223cb0===_0x4acd4b)break;else _0x2abe83['push'](_0x2abe83['shift']());}catch(_0x363a25){_0x2abe83['push'](_0x2abe83['shift']());}}}(a40_0x3754,0xb55f3));import a40_0x3bed68 from'chalk';import a40_0x5cd4a2 from'ora';import a40_0x3713b4 from'semver';import{execa}from'execa';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x4336d9=a40_0x3a9b;return GIT_COMMIT!==_0x4336d9(0x1ee)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x4336d9(0x20b)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x3654a7=a40_0x3a9b,_0x30bb93=process[_0x3654a7(0x1f3)][_0x3654a7(0x216)]();if(_0x30bb93['includes'](_0x3654a7(0x21a)))return _0x3654a7(0x21a);return _0x3654a7(0x1e6);}const updateFlags=[{'name':a40_0x29440b(0x21c),'type':'boolean','description':a40_0x29440b(0x224),'default':![]},{'name':a40_0x29440b(0x1f6),'type':'string','description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':a40_0x29440b(0x226),'type':a40_0x29440b(0x217),'description':a40_0x29440b(0x214),'default':![]},{'name':a40_0x29440b(0x207),'type':a40_0x29440b(0x217),'description':'Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','default':!![],'hidden':!![]}];function getRequestedVersion(_0x22e366){const _0x434568=a40_0x29440b;return _0x22e366[_0x434568(0x225)]('version')[_0x434568(0x228)]();}function shouldSkipCliSkill(_0x234da2){const _0x5f3430=a40_0x29440b;return _0x234da2[_0x5f3430(0x22d)](_0x5f3430(0x226))||_0x234da2[_0x5f3430(0x1ec)]('skills')===![];}async function validateUpdateFlags(_0x30b490){const _0x10f5a0=a40_0x29440b,_0x3db511=_0x30b490[_0x10f5a0(0x22d)]('beta'),_0x2d8652=getRequestedVersion(_0x30b490);if(_0x3db511&&_0x2d8652)throw CliErrors['validation']('--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.',_0x10f5a0(0x1fd));if(_0x2d8652&&!a40_0x3713b4[_0x10f5a0(0x221)](_0x2d8652))throw CliErrors[_0x10f5a0(0x227)](_0x10f5a0(0x208)+_0x2d8652,_0x10f5a0(0x231));}async function fetchNpmDistTags(){const _0xc14cce=a40_0x29440b;try{const _0xe1c982=await fetch(_0xc14cce(0x20f)+encodeURIComponent(NPM_PACKAGE_NAME)+'/dist-tags',{'signal':AbortSignal[_0xc14cce(0x1ef)](0x2710)});if(!_0xe1c982['ok'])return null;const _0x272a0f=await _0xe1c982['json']();if(!_0x272a0f||typeof _0x272a0f!=='object')return null;return Object[_0xc14cce(0x222)](Object[_0xc14cce(0x202)](_0x272a0f)[_0xc14cce(0x204)](([,_0x2fd800])=>typeof _0x2fd800===_0xc14cce(0x20c)&&_0x2fd800['trim']()[_0xc14cce(0x1e3)]>0x0)[_0xc14cce(0x22e)](([_0x2fd122,_0x4ba7a0])=>[_0x2fd122,String(_0x4ba7a0)[_0xc14cce(0x228)]()]));}catch{return null;}}function a40_0x3754(){const _0x4b5514=['144vTTBnV','fail','...','Already\x20on\x20requested\x20version\x20(v','flag','message','unknown','timeout','warn','Current\x20version:\x20','update','execPath','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','succeed','version','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','start','\x20→\x20','run','5774376tafbue','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','Updated\x20to\x20v','Version\x20comparison\x20failed','cwd','gray','entries','log','filter','\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','2498184MhUkiZ','skills','Invalid\x20version:\x20','2734675xyLpWK','@latest','slice','string','latest','Updating\x20via\x20','https://registry.npmjs.org/-/package/','yellow','skipped','Beta\x20version:\x20','source','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','\x20install\x20-g\x20','toLowerCase','boolean','error','113806CxKxSC','bun','red','beta','15156675ZXjnrQ','Checking\x20CLI\x20Built-in\x20Skill...','green','\x20\x20Try\x20manually:\x20','valid','fromEntries','2100244QaXdLW','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','str','no-skills','validation','trim','Requested\x20version:\x20','info','inherit','\x20\x20Run\x20manually:\x20','bool','map','1oxrOvt','Checking\x20for\x20updates...','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','write','Update\x20available:\x20','nonInteractive','install','length','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','npm','2690252BasUSj'];a40_0x3754=function(){return _0x4b5514;};return a40_0x3754();}async function fetchNpmDistTagVersion(_0x3e37f9){const _0x38a7e8=await fetchNpmDistTags();return _0x38a7e8?.[_0x3e37f9]??null;}async function fetchLatestVersion(){const _0x4610f6=a40_0x29440b;return fetchNpmDistTagVersion(_0x4610f6(0x20d));}function a40_0x3a9b(_0x5a25db,_0x11ca28){_0x5a25db=_0x5a25db-0x1e0;const _0x375435=a40_0x3754();let _0x3a9b09=_0x375435[_0x5a25db];return _0x3a9b09;}async function resolveTargetVersion(_0x597ac1){const _0x159f01=a40_0x29440b,_0x2b9801=getRequestedVersion(_0x597ac1);if(_0x2b9801)return{'version':_0x2b9801,'source':_0x159f01(0x1f6)};if(_0x597ac1[_0x159f01(0x22d)](_0x159f01(0x21c))){const _0xe50ece=await fetchNpmDistTagVersion(_0x159f01(0x21c));if(!_0xe50ece)return null;return{'version':_0xe50ece,'source':_0x159f01(0x21c)};}const _0x18936e=await fetchLatestVersion();if(!_0x18936e)return null;return{'version':_0x18936e,'source':_0x159f01(0x20d)};}function shouldInstallTarget(_0x4e5b0c,_0x4af8d4){const _0xf2ea14=a40_0x29440b;if(_0x4af8d4[_0xf2ea14(0x213)]===_0xf2ea14(0x1f6)||_0x4af8d4[_0xf2ea14(0x213)]===_0xf2ea14(0x21c))return!a40_0x3713b4['eq'](_0x4e5b0c,_0x4af8d4[_0xf2ea14(0x1f6)]);return a40_0x3713b4['lt'](_0x4e5b0c,_0x4af8d4['version']);}function getInstallPlanLabel(_0x4dcffe,_0x55bf3a){const _0x10e850=a40_0x29440b;switch(_0x55bf3a[_0x10e850(0x213)]){case _0x10e850(0x21c):return _0x10e850(0x212)+a40_0x3bed68[_0x10e850(0x210)](_0x4dcffe)+'\x20→\x20'+a40_0x3bed68[_0x10e850(0x21f)](_0x55bf3a[_0x10e850(0x1f6)]);case _0x10e850(0x1f6):return _0x10e850(0x229)+a40_0x3bed68[_0x10e850(0x210)](_0x4dcffe)+_0x10e850(0x1fa)+a40_0x3bed68['green'](_0x55bf3a[_0x10e850(0x1f6)]);case _0x10e850(0x20d):default:return _0x10e850(0x1e0)+a40_0x3bed68[_0x10e850(0x210)](_0x4dcffe)+_0x10e850(0x1fa)+a40_0x3bed68[_0x10e850(0x21f)](_0x55bf3a[_0x10e850(0x1f6)]);}}async function installCliSkill(_0xf5f0b8){const _0x276c27=a40_0x29440b;console[_0x276c27(0x203)](a40_0x3bed68['gray'](_0x276c27(0x21e)));const _0x33cffb=runNpxSkillsAddGlobal(process[_0x276c27(0x200)](),RABETBASE_SKILL_SOURCE,{'stdio':_0xf5f0b8?'pipe':_0x276c27(0x22b)});if(_0x33cffb[_0x276c27(0x211)]){console[_0x276c27(0x203)](a40_0x3bed68['gray'](_0x276c27(0x205)));return;}if(_0x33cffb['ok']){console[_0x276c27(0x203)](a40_0x3bed68[_0x276c27(0x201)]('\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.'));return;}console[_0x276c27(0x1f0)](a40_0x3bed68[_0x276c27(0x210)]('\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20'+(_0x33cffb[_0x276c27(0x218)]||_0x276c27(0x1ee)))),console[_0x276c27(0x203)](a40_0x3bed68[_0x276c27(0x201)](_0x276c27(0x22c)+CLI_BIN_NAME+'\x20cli-skill\x20install'));}async function execute(_0x3d1f2b){const _0x2cc212=a40_0x29440b;await validateUpdateFlags(_0x3d1f2b);const _0xb5b778=getCurrentVersion();console[_0x2cc212(0x203)](_0x2cc212(0x1f1)+_0xb5b778);const _0x5d24df=a40_0x5cd4a2(_0x2cc212(0x230))[_0x2cc212(0x1f9)](),_0x7daa07=await resolveTargetVersion(_0x3d1f2b);if(!_0x7daa07){const _0x799a71=_0x3d1f2b['bool'](_0x2cc212(0x21c))?_0x2cc212(0x1f8):_0x2cc212(0x1e4);return _0x5d24df[_0x2cc212(0x1e9)](_0x799a71),console[_0x2cc212(0x203)](a40_0x3bed68[_0x2cc212(0x201)](_0x2cc212(0x1f4)+NPM_PACKAGE_NAME+_0x2cc212(0x20a))),{'ok':![],'message':_0x799a71};}const _0x204d37=a40_0x3713b4[_0x2cc212(0x221)](VERSION),_0x2b6bd1=a40_0x3713b4[_0x2cc212(0x221)](_0x7daa07['version']);if(!_0x204d37||!_0x2b6bd1)return _0x5d24df['fail']('Version\x20comparison\x20failed'),{'ok':![],'message':_0x2cc212(0x1ff)};if(!shouldInstallTarget(_0x204d37,_0x7daa07)){const _0x1c623e=_0x7daa07[_0x2cc212(0x213)]===_0x2cc212(0x1f6)?_0x2cc212(0x1eb)+_0x7daa07['version']+')':'Already\x20up\x20to\x20date\x20(v'+_0x7daa07[_0x2cc212(0x1f6)]+')';return _0x5d24df[_0x2cc212(0x1f5)](_0x1c623e),shouldSkipCliSkill(_0x3d1f2b)?console[_0x2cc212(0x203)](a40_0x3bed68[_0x2cc212(0x201)](_0x2cc212(0x1f7))):await installCliSkill(_0x3d1f2b[_0x2cc212(0x1e1)]),{'ok':!![]};}_0x5d24df[_0x2cc212(0x22a)](getInstallPlanLabel(_0xb5b778,_0x7daa07));const _0x3f6a6a=detectPackageManager(),_0x1b8d3d=_0x3f6a6a===_0x2cc212(0x1e6)?resolveNpmBin(_0x2cc212(0x1e6)):_0x3f6a6a,_0x40778e=a40_0x5cd4a2(_0x2cc212(0x20e)+_0x3f6a6a+_0x2cc212(0x1ea))[_0x2cc212(0x1f9)]();try{return await execa(_0x1b8d3d,[_0x2cc212(0x1e2),'-g',NPM_PACKAGE_NAME+'@'+_0x7daa07[_0x2cc212(0x1f6)]],{'stdio':'pipe'}),_0x40778e[_0x2cc212(0x1f5)](_0x2cc212(0x1fe)+_0x7daa07[_0x2cc212(0x1f6)]),console['log'](a40_0x3bed68[_0x2cc212(0x201)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),shouldSkipCliSkill(_0x3d1f2b)?console[_0x2cc212(0x203)](a40_0x3bed68[_0x2cc212(0x201)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).')):await installCliSkill(_0x3d1f2b[_0x2cc212(0x1e1)]),{'ok':!![]};}catch(_0x324bea){return _0x40778e['fail']('Update\x20failed'),console[_0x2cc212(0x218)](a40_0x3bed68[_0x2cc212(0x21b)]('\x20\x20'+_0x324bea['message'])),console[_0x2cc212(0x203)](a40_0x3bed68['gray'](_0x2cc212(0x220)+_0x3f6a6a+_0x2cc212(0x215)+NPM_PACKAGE_NAME+'@'+_0x7daa07[_0x2cc212(0x1f6)])),{'ok':![],'message':_0x324bea[_0x2cc212(0x1ed)]};}}export const updateDefinition={'service':a40_0x29440b(0x1f2),'command':a40_0x29440b(0x1fb),'description':a40_0x29440b(0x1e5),'risk':a40_0x29440b(0x232),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ function a40_0x9ea3(_0x2a6a90,_0x52672d){_0x2a6a90=_0x2a6a90-0x15b;const _0x437009=a40_0x4370();let _0x9ea35e=_0x437009[_0x2a6a90];return _0x9ea35e;}const a40_0x4e6c1d=a40_0x9ea3;(function(_0x2b2390,_0x456aeb){const _0x1441c6=a40_0x9ea3,_0x498ff9=_0x2b2390();while(!![]){try{const _0x1ea96c=parseInt(_0x1441c6(0x16f))/0x1+-parseInt(_0x1441c6(0x176))/0x2*(parseInt(_0x1441c6(0x1a3))/0x3)+parseInt(_0x1441c6(0x162))/0x4*(-parseInt(_0x1441c6(0x15d))/0x5)+parseInt(_0x1441c6(0x1a8))/0x6*(parseInt(_0x1441c6(0x163))/0x7)+parseInt(_0x1441c6(0x160))/0x8+parseInt(_0x1441c6(0x1a9))/0x9+-parseInt(_0x1441c6(0x17d))/0xa;if(_0x1ea96c===_0x456aeb)break;else _0x498ff9['push'](_0x498ff9['shift']());}catch(_0x165dba){_0x498ff9['push'](_0x498ff9['shift']());}}}(a40_0x4370,0x57b55));import a40_0x4604e6 from'chalk';import a40_0x83667a from'ora';import a40_0x37e212 from'semver';import{execa}from'execa';import{CLI_BIN_NAME,NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x564e86=a40_0x9ea3;return GIT_COMMIT!==_0x564e86(0x166)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0x564e86(0x19c)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x3f73aa=a40_0x9ea3,_0x26a2bd=process[_0x3f73aa(0x179)]['toLowerCase']();if(_0x26a2bd[_0x3f73aa(0x17f)](_0x3f73aa(0x194)))return _0x3f73aa(0x194);return _0x3f73aa(0x184);}const updateFlags=[{'name':a40_0x4e6c1d(0x18d),'type':a40_0x4e6c1d(0x1a7),'description':a40_0x4e6c1d(0x197),'default':![]},{'name':a40_0x4e6c1d(0x190),'type':a40_0x4e6c1d(0x18a),'description':a40_0x4e6c1d(0x16c)},{'name':a40_0x4e6c1d(0x15c),'type':a40_0x4e6c1d(0x1a7),'description':a40_0x4e6c1d(0x178),'default':![]},{'name':a40_0x4e6c1d(0x182),'type':a40_0x4e6c1d(0x1a7),'description':a40_0x4e6c1d(0x15b),'default':!![],'hidden':!![]}];function getRequestedVersion(_0x4e5c03){const _0x46442a=a40_0x4e6c1d;return _0x4e5c03[_0x46442a(0x171)](_0x46442a(0x190))[_0x46442a(0x19f)]();}function shouldSkipCliSkill(_0x41f0b8){const _0x3083a4=a40_0x4e6c1d;return _0x41f0b8[_0x3083a4(0x17a)](_0x3083a4(0x15c))||_0x41f0b8['flag'](_0x3083a4(0x182))===![];}async function validateUpdateFlags(_0x3e9824){const _0x2fbb0e=a40_0x4e6c1d,_0x55aea1=_0x3e9824[_0x2fbb0e(0x17a)]('beta'),_0x3cc0f0=getRequestedVersion(_0x3e9824);if(_0x55aea1&&_0x3cc0f0)throw CliErrors[_0x2fbb0e(0x19b)]('--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.',_0x2fbb0e(0x173));if(_0x3cc0f0&&!a40_0x37e212[_0x2fbb0e(0x164)](_0x3cc0f0))throw CliErrors[_0x2fbb0e(0x19b)](_0x2fbb0e(0x177)+_0x3cc0f0,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0x366494=a40_0x4e6c1d;try{const _0x480584=await fetch('https://registry.npmjs.org/-/package/'+encodeURIComponent(NPM_PACKAGE_NAME)+'/dist-tags',{'signal':AbortSignal[_0x366494(0x181)](0x2710)});if(!_0x480584['ok'])return null;const _0x3814da=await _0x480584[_0x366494(0x17e)]();if(!_0x3814da||typeof _0x3814da!==_0x366494(0x15f))return null;return Object[_0x366494(0x18e)](Object[_0x366494(0x1a0)](_0x3814da)['filter'](([,_0x2d739b])=>typeof _0x2d739b==='string'&&_0x2d739b['trim']()[_0x366494(0x189)]>0x0)[_0x366494(0x19a)](([_0xf0f60e,_0x18649f])=>[_0xf0f60e,String(_0x18649f)['trim']()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0xe38dac){const _0x13ca0=await fetchNpmDistTags();return _0x13ca0?.[_0xe38dac]??null;}async function fetchLatestVersion(){return fetchNpmDistTagVersion('latest');}async function resolveTargetVersion(_0x288ca5){const _0x22f7f5=a40_0x4e6c1d,_0xb4b7d5=getRequestedVersion(_0x288ca5);if(_0xb4b7d5)return{'version':_0xb4b7d5,'source':_0x22f7f5(0x190)};if(_0x288ca5['bool'](_0x22f7f5(0x18d))){const _0x285a7b=await fetchNpmDistTagVersion('beta');if(!_0x285a7b)return null;return{'version':_0x285a7b,'source':_0x22f7f5(0x18d)};}const _0x8a7071=await fetchLatestVersion();if(!_0x8a7071)return null;return{'version':_0x8a7071,'source':_0x22f7f5(0x1ab)};}function shouldInstallTarget(_0x5b290f,_0x1a20fd){const _0x1a0499=a40_0x4e6c1d;if(_0x1a20fd[_0x1a0499(0x186)]==='version'||_0x1a20fd[_0x1a0499(0x186)]==='beta')return!a40_0x37e212['eq'](_0x5b290f,_0x1a20fd[_0x1a0499(0x190)]);return a40_0x37e212['lt'](_0x5b290f,_0x1a20fd[_0x1a0499(0x190)]);}function getInstallPlanLabel(_0x32c4a2,_0x879980){const _0x21c456=a40_0x4e6c1d;switch(_0x879980[_0x21c456(0x186)]){case _0x21c456(0x18d):return _0x21c456(0x185)+a40_0x4604e6[_0x21c456(0x1a5)](_0x32c4a2)+_0x21c456(0x17c)+a40_0x4604e6['green'](_0x879980['version']);case'version':return _0x21c456(0x170)+a40_0x4604e6[_0x21c456(0x1a5)](_0x32c4a2)+_0x21c456(0x17c)+a40_0x4604e6[_0x21c456(0x16d)](_0x879980[_0x21c456(0x190)]);case _0x21c456(0x1ab):default:return _0x21c456(0x1ac)+a40_0x4604e6[_0x21c456(0x1a5)](_0x32c4a2)+_0x21c456(0x17c)+a40_0x4604e6[_0x21c456(0x16d)](_0x879980[_0x21c456(0x190)]);}}async function installCliSkill(_0x4b1ea6){const _0x4cbe50=a40_0x4e6c1d;console[_0x4cbe50(0x180)](a40_0x4604e6[_0x4cbe50(0x183)]('Checking\x20CLI\x20Built-in\x20Skill...'));const _0x12f050=runNpxSkillsAddGlobal(process[_0x4cbe50(0x174)](),RABETBASE_SKILL_SOURCE,{'stdio':_0x4b1ea6?'pipe':_0x4cbe50(0x1a4)});if(_0x12f050[_0x4cbe50(0x195)]){console[_0x4cbe50(0x180)](a40_0x4604e6[_0x4cbe50(0x183)]('\x20\x20Skipped\x20CLI\x20Built-in\x20Skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).'));return;}if(_0x12f050['ok']){console[_0x4cbe50(0x180)](a40_0x4604e6['gray']('\x20\x20CLI\x20Built-in\x20Skill\x20is\x20up\x20to\x20date.'));return;}console['warn'](a40_0x4604e6[_0x4cbe50(0x1a5)](_0x4cbe50(0x18b)+(_0x12f050[_0x4cbe50(0x16e)]||'unknown'))),console[_0x4cbe50(0x180)](a40_0x4604e6[_0x4cbe50(0x183)](_0x4cbe50(0x16b)+CLI_BIN_NAME+_0x4cbe50(0x19e)));}function a40_0x4370(){const _0x3b8383=['Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','run','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','map','validation','slice','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','\x20cli-skill\x20install','trim','entries','red','fail','1937529ojSyEY','inherit','yellow','Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).','boolean','492naHevJ','4536432goCZwA','start','latest','Update\x20available:\x20','Current\x20version:\x20','Refresh\x20CLI\x20Built-in\x20Skill\x20after\x20updating','no-skills','5ERcwLq','install','object','1092272XkCrUD','\x20install\x20-g\x20','1093256skuLfo','41825Wiyrbn','valid','Already\x20on\x20requested\x20version\x20(v','unknown','pipe','Checking\x20for\x20updates...','...','info','\x20\x20Run\x20manually:\x20','Install\x20a\x20specific\x20CLI\x20version','green','error','151183dmjEVD','Requested\x20version:\x20','str','succeed','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','cwd','Already\x20up\x20to\x20date\x20(v','2mOytYr','Invalid\x20version:\x20','Skip\x20CLI\x20Built-in\x20Skill\x20refresh\x20after\x20updating','execPath','bool','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','\x20→\x20','33050gKoKgn','json','includes','log','timeout','skills','gray','npm','Beta\x20version:\x20','source','\x20\x20Try\x20manually:\x20','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','length','string','\x20\x20CLI\x20Built-in\x20Skill\x20update\x20failed:\x20','message','beta','fromEntries','nonInteractive','version','write','Updated\x20to\x20v','Version\x20comparison\x20failed','bun','skipped','@latest'];a40_0x4370=function(){return _0x3b8383;};return a40_0x4370();}async function execute(_0x26963d){const _0x35e1db=a40_0x4e6c1d;await validateUpdateFlags(_0x26963d);const _0x56a4c2=getCurrentVersion();console[_0x35e1db(0x180)](_0x35e1db(0x1ad)+_0x56a4c2);const _0x1152fc=a40_0x83667a(_0x35e1db(0x168))[_0x35e1db(0x1aa)](),_0x2d5a66=await resolveTargetVersion(_0x26963d);if(!_0x2d5a66){const _0x34116d=_0x26963d[_0x35e1db(0x17a)](_0x35e1db(0x18d))?_0x35e1db(0x19d):'Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)';return _0x1152fc[_0x35e1db(0x1a2)](_0x34116d),console[_0x35e1db(0x180)](a40_0x4604e6[_0x35e1db(0x183)](_0x35e1db(0x199)+NPM_PACKAGE_NAME+_0x35e1db(0x196))),{'ok':![],'message':_0x34116d};}const _0x4c6bde=a40_0x37e212[_0x35e1db(0x164)](VERSION),_0x34667b=a40_0x37e212[_0x35e1db(0x164)](_0x2d5a66[_0x35e1db(0x190)]);if(!_0x4c6bde||!_0x34667b)return _0x1152fc[_0x35e1db(0x1a2)](_0x35e1db(0x193)),{'ok':![],'message':_0x35e1db(0x193)};if(!shouldInstallTarget(_0x4c6bde,_0x2d5a66)){const _0x4f68eb=_0x2d5a66['source']===_0x35e1db(0x190)?_0x35e1db(0x165)+_0x2d5a66[_0x35e1db(0x190)]+')':_0x35e1db(0x175)+_0x2d5a66[_0x35e1db(0x190)]+')';return _0x1152fc[_0x35e1db(0x172)](_0x4f68eb),shouldSkipCliSkill(_0x26963d)?console[_0x35e1db(0x180)](a40_0x4604e6[_0x35e1db(0x183)](_0x35e1db(0x1a6))):await installCliSkill(_0x26963d[_0x35e1db(0x18f)]),{'ok':!![]};}_0x1152fc[_0x35e1db(0x16a)](getInstallPlanLabel(_0x56a4c2,_0x2d5a66));const _0x25ffe9=detectPackageManager(),_0xbd5358=_0x25ffe9===_0x35e1db(0x184)?resolveNpmBin(_0x35e1db(0x184)):_0x25ffe9,_0x306ac6=a40_0x83667a('Updating\x20via\x20'+_0x25ffe9+_0x35e1db(0x169))[_0x35e1db(0x1aa)]();try{return await execa(_0xbd5358,[_0x35e1db(0x15e),'-g',NPM_PACKAGE_NAME+'@'+_0x2d5a66[_0x35e1db(0x190)]],{'stdio':_0x35e1db(0x167)}),_0x306ac6[_0x35e1db(0x172)](_0x35e1db(0x192)+_0x2d5a66[_0x35e1db(0x190)]),console['log'](a40_0x4604e6[_0x35e1db(0x183)](_0x35e1db(0x17b))),shouldSkipCliSkill(_0x26963d)?console[_0x35e1db(0x180)](a40_0x4604e6[_0x35e1db(0x183)]('Skipping\x20CLI\x20Built-in\x20Skill\x20refresh\x20(--no-skills).')):await installCliSkill(_0x26963d[_0x35e1db(0x18f)]),{'ok':!![]};}catch(_0x3b6325){return _0x306ac6[_0x35e1db(0x1a2)]('Update\x20failed'),console['error'](a40_0x4604e6[_0x35e1db(0x1a1)]('\x20\x20'+_0x3b6325[_0x35e1db(0x18c)])),console[_0x35e1db(0x180)](a40_0x4604e6[_0x35e1db(0x183)](_0x35e1db(0x187)+_0x25ffe9+_0x35e1db(0x161)+NPM_PACKAGE_NAME+'@'+_0x2d5a66[_0x35e1db(0x190)])),{'ok':![],'message':_0x3b6325[_0x35e1db(0x18c)]};}}export const updateDefinition={'service':'update','command':a40_0x4e6c1d(0x198),'description':a40_0x4e6c1d(0x188),'risk':a40_0x4e6c1d(0x191),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- function a41_0xe21d(_0xbbb8a5,_0x464a25){_0xbbb8a5=_0xbbb8a5-0xb8;const _0x48d0f5=a41_0x48d0();let _0xe21d8a=_0x48d0f5[_0xbbb8a5];return _0xe21d8a;}(function(_0x244d86,_0x2aa00f){const _0x16d9c2=a41_0xe21d,_0x180a1f=_0x244d86();while(!![]){try{const _0x18e8f6=parseInt(_0x16d9c2(0xbf))/0x1+-parseInt(_0x16d9c2(0xbc))/0x2+parseInt(_0x16d9c2(0xc3))/0x3*(parseInt(_0x16d9c2(0xba))/0x4)+-parseInt(_0x16d9c2(0xb9))/0x5*(-parseInt(_0x16d9c2(0xbe))/0x6)+-parseInt(_0x16d9c2(0xc1))/0x7*(-parseInt(_0x16d9c2(0xb8))/0x8)+-parseInt(_0x16d9c2(0xbd))/0x9*(parseInt(_0x16d9c2(0xc0))/0xa)+parseInt(_0x16d9c2(0xbb))/0xb*(parseInt(_0x16d9c2(0xc2))/0xc);if(_0x18e8f6===_0x2aa00f)break;else _0x180a1f['push'](_0x180a1f['shift']());}catch(_0x3236b1){_0x180a1f['push'](_0x180a1f['shift']());}}}(a41_0x48d0,0x94f7e));import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];function a41_0x48d0(){const _0x5cb84d=['6255852Dfwgiq','13605bmBSza','8IKTIoE','27625BhArTx','140NMxolL','11hAfUgF','1879530OAwBrc','1827EJZxgz','486IkCrXN','672248gqOall','58730GjvZxy','6596373hSzMtB'];a41_0x48d0=function(){return _0x5cb84d;};return a41_0x48d0();}
1
+ (function(_0x391403,_0x22cfef){const _0x537f01=a41_0x3b1d,_0x4e9f28=_0x391403();while(!![]){try{const _0x2f6e75=-parseInt(_0x537f01(0xfe))/0x1+-parseInt(_0x537f01(0x101))/0x2+-parseInt(_0x537f01(0x100))/0x3*(parseInt(_0x537f01(0xff))/0x4)+parseInt(_0x537f01(0xfb))/0x5*(-parseInt(_0x537f01(0xfa))/0x6)+parseInt(_0x537f01(0xfd))/0x7*(parseInt(_0x537f01(0xf9))/0x8)+-parseInt(_0x537f01(0xf8))/0x9+parseInt(_0x537f01(0xfc))/0xa;if(_0x2f6e75===_0x22cfef)break;else _0x4e9f28['push'](_0x4e9f28['shift']());}catch(_0xd4b594){_0x4e9f28['push'](_0x4e9f28['shift']());}}}(a41_0x4c5e,0x712da));import{codegenSdk}from'../../commands/codegen/sdk.js';function a41_0x3b1d(_0x3ad55e,_0x3f1aa5){_0x3ad55e=_0x3ad55e-0xf8;const _0x4c5eb1=a41_0x4c5e();let _0x3b1d9c=_0x4c5eb1[_0x3ad55e];return _0x3b1d9c;}function a41_0x4c5e(){const _0x47ebf8=['26187990BdgVnN','1477wHRFKX','237572JFkECk','4rQYmpb','1606197kXmaij','1003228SKpvnI','7080156SdVkXg','26424kNXdOs','11010CkMzVc','2155iqGPTm'];a41_0x4c5e=function(){return _0x47ebf8;};return a41_0x4c5e();}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a42_0x452248=a42_0x57fd;function a42_0x2822(){const _0x51acd7=['2925348ftilil','str','32qwpOiI','bool','Omit\x20import\x20statements\x20from\x20generated\x20code','skip-imports','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','appCode','2525982aEEjUu','459CwPfLo','alias','353826dxKWmH','codegen','operation','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','4527475KSQkXS','28722vZUgDX','sdk','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','read','216680vVdyKI','code','2758553tAZKLG','name','boolean'];a42_0x2822=function(){return _0x51acd7;};return a42_0x2822();}(function(_0x18a960,_0xdba670){const _0x140b79=a42_0x57fd,_0x3a0ccf=_0x18a960();while(!![]){try{const _0x136825=parseInt(_0x140b79(0x111))/0x1*(parseInt(_0x140b79(0x11f))/0x2)+-parseInt(_0x140b79(0x117))/0x3+-parseInt(_0x140b79(0x10f))/0x4+parseInt(_0x140b79(0x11e))/0x5+-parseInt(_0x140b79(0x11a))/0x6+-parseInt(_0x140b79(0x125))/0x7+parseInt(_0x140b79(0x123))/0x8*(parseInt(_0x140b79(0x118))/0x9);if(_0x136825===_0xdba670)break;else _0x3a0ccf['push'](_0x3a0ccf['shift']());}catch(_0x595293){_0x3a0ccf['push'](_0x3a0ccf['shift']());}}}(a42_0x2822,0xafc81));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a42_0x57fd(_0x15c6a9,_0x3dc77e){_0x15c6a9=_0x15c6a9-0x10d;const _0x282222=a42_0x2822();let _0x57fd39=_0x282222[_0x15c6a9];return _0x57fd39;}export const codegenSdk={'service':a42_0x452248(0x11b),'command':a42_0x452248(0x120),'description':a42_0x452248(0x115),'risk':a42_0x452248(0x122),'flags':[CODE_FLAG_OPTIONAL,{'name':a42_0x452248(0x119),'type':'string','description':a42_0x452248(0x121)},{'name':a42_0x452248(0x11c),'type':'string','required':!![],'description':a42_0x452248(0x11d)},{'name':a42_0x452248(0x114),'type':a42_0x452248(0x10e),'description':a42_0x452248(0x113)}],async 'execute'(_0x31037a){const _0x6ff66f=a42_0x452248,{dataset:_0x30c660,operation:_0x564216}=await getOperationDetail(_0x31037a[_0x6ff66f(0x116)],_0x31037a[_0x6ff66f(0x110)](_0x6ff66f(0x124)),_0x31037a[_0x6ff66f(0x110)](_0x6ff66f(0x11c))),_0x346186=generateSdkCode(_0x30c660,_0x564216,{'includeImports':!_0x31037a[_0x6ff66f(0x112)](_0x6ff66f(0x114))});return{'ok':!![],'data':{'dataset':{'name':_0x30c660[_0x6ff66f(0x10d)],'code':_0x30c660[_0x6ff66f(0x124)],'tableName':_0x30c660['tableName']},'operation':_0x31037a['str']('operation'),'code':_0x346186}};}};
1
+ const a42_0x117e13=a42_0x8409;function a42_0x8409(_0x1fbfc8,_0x569d19){_0x1fbfc8=_0x1fbfc8-0x13b;const _0x557e35=a42_0x557e();let _0x840945=_0x557e35[_0x1fbfc8];return _0x840945;}function a42_0x557e(){const _0x509e63=['25955699ipbZWL','5rVrBza','7508817YrWjIb','13533560slKVxN','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','skip-imports','569pyphAw','14jdWjUc','5294244ejVZiK','operation','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','4990206FvHNJF','read','str','sdk','string','appCode','Omit\x20import\x20statements\x20from\x20generated\x20code','bool','16IdknNX','4237696XbPJuS','codegen','boolean','code','310aoTjdX','tableName'];a42_0x557e=function(){return _0x509e63;};return a42_0x557e();}(function(_0x450b52,_0x347fad){const _0x52c225=a42_0x8409,_0x489445=_0x450b52();while(!![]){try{const _0x1a2152=-parseInt(_0x52c225(0x14e))/0x1*(-parseInt(_0x52c225(0x146))/0x2)+-parseInt(_0x52c225(0x153))/0x3+parseInt(_0x52c225(0x142))/0x4*(-parseInt(_0x52c225(0x149))/0x5)+-parseInt(_0x52c225(0x150))/0x6*(parseInt(_0x52c225(0x14f))/0x7)+parseInt(_0x52c225(0x141))/0x8*(parseInt(_0x52c225(0x14a))/0x9)+parseInt(_0x52c225(0x14b))/0xa+parseInt(_0x52c225(0x148))/0xb;if(_0x1a2152===_0x347fad)break;else _0x489445['push'](_0x489445['shift']());}catch(_0x5b207b){_0x489445['push'](_0x489445['shift']());}}}(a42_0x557e,0xefcc4));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a42_0x117e13(0x143),'command':a42_0x117e13(0x13c),'description':a42_0x117e13(0x14c),'risk':a42_0x117e13(0x154),'flags':[CODE_FLAG_OPTIONAL,{'name':'alias','type':a42_0x117e13(0x13d),'description':a42_0x117e13(0x152)},{'name':a42_0x117e13(0x151),'type':a42_0x117e13(0x13d),'required':!![],'description':'Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)'},{'name':a42_0x117e13(0x14d),'type':a42_0x117e13(0x144),'description':a42_0x117e13(0x13f)}],async 'execute'(_0x1b70c1){const _0x4a382a=a42_0x117e13,{dataset:_0x49e136,operation:_0x76ae44}=await getOperationDetail(_0x1b70c1[_0x4a382a(0x13e)],_0x1b70c1[_0x4a382a(0x13b)](_0x4a382a(0x145)),_0x1b70c1[_0x4a382a(0x13b)](_0x4a382a(0x151))),_0x13e40a=generateSdkCode(_0x49e136,_0x76ae44,{'includeImports':!_0x1b70c1[_0x4a382a(0x140)](_0x4a382a(0x14d))});return{'ok':!![],'data':{'dataset':{'name':_0x49e136['name'],'code':_0x49e136[_0x4a382a(0x145)],'tableName':_0x49e136[_0x4a382a(0x147)]},'operation':_0x1b70c1[_0x4a382a(0x13b)](_0x4a382a(0x151)),'code':_0x13e40a}};}};
@@ -1 +1 @@
1
- function a43_0x54f0(){const _0x57b1b2=['5344578DmfLpj','18287fbVffD','168pWRCbY','sqlCode','sdk','target','Omit\x20import\x20statements\x20from\x20generated\x20code','sql','sqlcode','read','216KUeTit','sqlName','codegen','6840832pFalqe','1265627UIQbqU','3330804HfLtnQ','str','134MhqCLS','bool','5YqTSPT','244110ZVpVqu','2864340lUxzFf','7rLaeYl','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','bff'];a43_0x54f0=function(){return _0x57b1b2;};return a43_0x54f0();}const a43_0x2ec8c8=a43_0x393d;(function(_0x13f5ba,_0xa88228){const _0xc5c81a=a43_0x393d,_0x1ef60e=_0x13f5ba();while(!![]){try{const _0x2ab445=-parseInt(_0xc5c81a(0xe2))/0x1*(-parseInt(_0xc5c81a(0xd9))/0x2)+parseInt(_0xc5c81a(0xdd))/0x3+parseInt(_0xc5c81a(0xd7))/0x4*(parseInt(_0xc5c81a(0xdb))/0x5)+-parseInt(_0xc5c81a(0xe1))/0x6+parseInt(_0xc5c81a(0xde))/0x7*(parseInt(_0xc5c81a(0xd5))/0x8)+parseInt(_0xc5c81a(0xd2))/0x9*(-parseInt(_0xc5c81a(0xdc))/0xa)+parseInt(_0xc5c81a(0xd6))/0xb*(-parseInt(_0xc5c81a(0xe3))/0xc);if(_0x2ab445===_0xa88228)break;else _0x1ef60e['push'](_0x1ef60e['shift']());}catch(_0x5ac258){_0x1ef60e['push'](_0x1ef60e['shift']());}}}(a43_0x54f0,0xbe865));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a43_0x393d(_0x2af046,_0x54a83f){_0x2af046=_0x2af046-0xcf;const _0x54f0d8=a43_0x54f0();let _0x393dc8=_0x54f0d8[_0x2af046];return _0x393dc8;}export const codegenSql={'service':a43_0x2ec8c8(0xd4),'command':a43_0x2ec8c8(0xcf),'description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':a43_0x2ec8c8(0xd1),'flags':[SQLCODE_FLAG,{'name':a43_0x2ec8c8(0xe6),'type':'string','description':a43_0x2ec8c8(0xdf),'default':'sdk','enum':['sdk',a43_0x2ec8c8(0xe0)]},{'name':'no-imports','type':'boolean','description':a43_0x2ec8c8(0xe7)}],async 'execute'(_0x241e18){const _0x12f1b4=a43_0x2ec8c8,_0x35ac86=await getSqlQueryInfo(_0x241e18['appCode'],_0x241e18[_0x12f1b4(0xd8)](_0x12f1b4(0xd0))),_0x22b1a7=_0x241e18[_0x12f1b4(0xd8)](_0x12f1b4(0xe6))||_0x12f1b4(0xe5),_0x5927eb=generateSqlCodeTemplate(_0x35ac86,{'target':_0x22b1a7,'includeImports':!_0x241e18[_0x12f1b4(0xda)]('no-imports')});return{'ok':!![],'data':{'sqlCode':_0x35ac86[_0x12f1b4(0xe4)],'sqlName':_0x35ac86[_0x12f1b4(0xd3)],'target':_0x22b1a7,'code':_0x5927eb}};}};
1
+ const a43_0x415b81=a43_0x30f5;(function(_0x5a3e7f,_0x278236){const _0x2bd1e1=a43_0x30f5,_0x37043b=_0x5a3e7f();while(!![]){try{const _0x15d701=parseInt(_0x2bd1e1(0x10f))/0x1*(-parseInt(_0x2bd1e1(0xff))/0x2)+parseInt(_0x2bd1e1(0x111))/0x3+parseInt(_0x2bd1e1(0x106))/0x4+parseInt(_0x2bd1e1(0x10c))/0x5*(-parseInt(_0x2bd1e1(0x102))/0x6)+-parseInt(_0x2bd1e1(0x109))/0x7*(-parseInt(_0x2bd1e1(0x103))/0x8)+parseInt(_0x2bd1e1(0xfa))/0x9+-parseInt(_0x2bd1e1(0x10d))/0xa*(parseInt(_0x2bd1e1(0xfd))/0xb);if(_0x15d701===_0x278236)break;else _0x37043b['push'](_0x37043b['shift']());}catch(_0x481b6e){_0x37043b['push'](_0x37043b['shift']());}}}(a43_0x5ca8,0xa38ba));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a43_0x30f5(_0x178567,_0xba29d7){_0x178567=_0x178567-0xf9;const _0x5ca897=a43_0x5ca8();let _0x30f5fa=_0x5ca897[_0x178567];return _0x30f5fa;}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a43_0x415b81(0x10b),'command':'sql','description':'Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','risk':a43_0x415b81(0x110),'flags':[SQLCODE_FLAG,{'name':a43_0x415b81(0x105),'type':a43_0x415b81(0xfc),'description':a43_0x415b81(0x10e),'default':a43_0x415b81(0x107),'enum':[a43_0x415b81(0x107),a43_0x415b81(0x108)]},{'name':a43_0x415b81(0xf9),'type':'boolean','description':a43_0x415b81(0x101)}],async 'execute'(_0x12f6c1){const _0x49e3c2=a43_0x415b81,_0x1c2659=await getSqlQueryInfo(_0x12f6c1[_0x49e3c2(0xfb)],_0x12f6c1['str'](_0x49e3c2(0x104))),_0x52eb6a=_0x12f6c1[_0x49e3c2(0xfe)](_0x49e3c2(0x105))||'sdk',_0xe339d7=generateSqlCodeTemplate(_0x1c2659,{'target':_0x52eb6a,'includeImports':!_0x12f6c1['bool'](_0x49e3c2(0xf9))});return{'ok':!![],'data':{'sqlCode':_0x1c2659[_0x49e3c2(0x10a)],'sqlName':_0x1c2659[_0x49e3c2(0x100)],'target':_0x52eb6a,'code':_0xe339d7}};}};function a43_0x5ca8(){const _0x4f02ed=['3475417KtWeQK','str','14tmObjp','sqlName','Omit\x20import\x20statements\x20from\x20generated\x20code','12kpzFna','20912PeoMka','sqlcode','target','3569688eFfmuY','sdk','bff','1799SGoILe','sqlCode','codegen','976510flPmRG','50NZnFFy','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','154653lwngST','read','3624474cFllFy','no-imports','8553726SznLlj','appCode','string'];a43_0x5ca8=function(){return _0x4f02ed;};return a43_0x5ca8();}
@@ -1 +1 @@
1
- (function(_0x4e2dbd,_0x24e2a9){const _0x2b6f05=a44_0x223d,_0x5d6b25=_0x4e2dbd();while(!![]){try{const _0x173686=parseInt(_0x2b6f05(0x194))/0x1+parseInt(_0x2b6f05(0x17b))/0x2*(parseInt(_0x2b6f05(0x19a))/0x3)+parseInt(_0x2b6f05(0x184))/0x4+parseInt(_0x2b6f05(0x17c))/0x5+parseInt(_0x2b6f05(0x182))/0x6*(-parseInt(_0x2b6f05(0x180))/0x7)+-parseInt(_0x2b6f05(0x191))/0x8+-parseInt(_0x2b6f05(0x172))/0x9;if(_0x173686===_0x24e2a9)break;else _0x5d6b25['push'](_0x5d6b25['shift']());}catch(_0x1b6f9f){_0x5d6b25['push'](_0x5d6b25['shift']());}}}(a44_0x8af6,0x26f96));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';import{readRawConfigWithLayers}from'../../context.js';import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';export function buildAppAddFlags(){const _0x2d4e73=a44_0x223d;return[{'name':_0x2d4e73(0x175),'type':'string','description':_0x2d4e73(0x18e),'required':!![]},{'name':'global','type':_0x2d4e73(0x19c),'description':_0x2d4e73(0x195),'default':![]},...getAppProfileFlagDefs()];}function a44_0x223d(_0x13075d,_0x548edf){_0x13075d=_0x13075d-0x172;const _0x8af676=a44_0x8af6();let _0x223df6=_0x8af676[_0x13075d];return _0x223df6;}function a44_0x8af6(){const _0x5eba8f=['global','1347171LJJYeO','App\x20\x22','6FKgirl','apps','437092fZOOum','\x20<name>','\x22\x20(appcode:\x20','Usage:\x20','project','\x20<name>\x20[--global]','trim','args','length','Added','App\x20code','inherit','keys','2072648xLLXdl','\x22\x20not\x20found.','\x20config.','244042RoGrNC','Use\x20global\x20config\x20scope','both','Updated','globalConfig','projectConfig','573hWCXXD','flagMissing','boolean','1685106IWbIRL','\x22\x20still\x20defined\x20in\x20','\x20<name>\x20--appcode\x20<code>','appcode','Missing\x20app\x20name.','validation','object','bool','defaultApp','2428YNZbcG','1066085FYztcQ','\x20Default\x20app\x20changed\x20to\x20\x22','str'];a44_0x8af6=function(){return _0x5eba8f;};return a44_0x8af6();}export function buildAppRemoveFlags(){const _0x289be7=a44_0x223d;return[{'name':_0x289be7(0x17f),'type':_0x289be7(0x19c),'description':_0x289be7(0x195),'default':![]}];}export async function validateAppName(_0x4cbe27,_0x552953){const _0x1023fa=a44_0x223d,_0x563f3a=_0x4cbe27[_0x1023fa(0x18b)][0x0]?.['trim']();if(!_0x563f3a)throw CliErrors['validation'](_0x1023fa(0x176),_0x1023fa(0x187)+CLI_BIN_NAME+'\x20'+_0x552953+_0x1023fa(0x185));}export async function runAppAdd(_0x39f550,_0x135e53){const _0xcdcebf=a44_0x223d,_0x52ad07=_0x39f550[_0xcdcebf(0x18b)][0x0]?.[_0xcdcebf(0x18a)]();if(!_0x52ad07)throw CliErrors['validation'](_0xcdcebf(0x176),_0xcdcebf(0x187)+CLI_BIN_NAME+'\x20'+_0x135e53+_0xcdcebf(0x174));const _0x55ad68=_0x39f550[_0xcdcebf(0x17e)](_0xcdcebf(0x175));if(!_0x55ad68)throw CliErrors[_0xcdcebf(0x19b)](_0xcdcebf(0x175),_0xcdcebf(0x187)+CLI_BIN_NAME+'\x20'+_0x135e53+_0xcdcebf(0x174));const _0x2790d7={'global':_0x39f550[_0xcdcebf(0x179)]('global')},_0xcbe25a=readConfig(_0x2790d7);if(!_0xcbe25a[_0xcdcebf(0x183)])_0xcbe25a['apps']={};const _0x5740c8={'appcode':_0x55ad68,...collectAppProfileOverrides(_0x17cc1c=>_0x39f550[_0xcdcebf(0x17e)](_0x17cc1c))},_0x56a2f1=_0xcbe25a['apps'],_0x35fade=!!_0x56a2f1[_0x52ad07];_0x56a2f1[_0x52ad07]=_0x5740c8;if(!_0xcbe25a[_0xcdcebf(0x17a)])_0xcbe25a[_0xcdcebf(0x17a)]=_0x52ad07;writeConfig(_0xcbe25a,_0x2790d7);const _0x4dcff8=!_0x35fade&&_0xcbe25a[_0xcdcebf(0x17a)]===_0x52ad07?'\x20Set\x20as\x20default\x20app.':'',_0x42536a=(_0x35fade?_0xcdcebf(0x197):_0xcdcebf(0x18d))+'\x20app\x20\x22'+_0x52ad07+_0xcdcebf(0x186)+_0x55ad68+')'+scopeLabel(_0x2790d7)+'.'+_0x4dcff8;return{'ok':!![],'message':_0x42536a};}export async function runAppRemove(_0x2142b5,_0x2a3756){const _0x284275=a44_0x223d,_0x2f3e22=_0x2142b5[_0x284275(0x18b)][0x0]?.[_0x284275(0x18a)]();if(!_0x2f3e22)throw CliErrors[_0x284275(0x177)](_0x284275(0x176),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x2a3756+_0x284275(0x189));const _0x104c90=_0x2142b5['bool'](_0x284275(0x17f)),{config:_0x36e5e9,layers:_0x2dbb1c}=readRawConfigWithLayers(),_0x143d5e=_0x36e5e9['apps']??{};if(!_0x143d5e[_0x2f3e22])throw CliErrors[_0x284275(0x177)](_0x284275(0x181)+_0x2f3e22+_0x284275(0x192));const _0x2f5a61=_0x2dbb1c['globalConfig'][_0x284275(0x183)]&&typeof _0x2dbb1c[_0x284275(0x198)]['apps']===_0x284275(0x178)?_0x2dbb1c[_0x284275(0x198)][_0x284275(0x183)]:{},_0x3efa18=_0x2dbb1c[_0x284275(0x199)][_0x284275(0x183)]&&typeof _0x2dbb1c[_0x284275(0x199)][_0x284275(0x183)]===_0x284275(0x178)?_0x2dbb1c[_0x284275(0x199)]['apps']:{},_0x2ba222=appDefinedIn(_0x2f3e22,_0x2f5a61,_0x3efa18,_0x2dbb1c[_0x284275(0x199)][_0x284275(0x18f)]===![]),_0x35aad5=resolveAppScopeForWrite(_0x2f3e22,_0x104c90,_0x2dbb1c),_0x39d6f4={'global':_0x35aad5===_0x284275(0x17f)},_0x4c610e=readConfig(_0x39d6f4),_0x459cea=_0x4c610e[_0x284275(0x183)];if(!_0x459cea||!_0x459cea[_0x2f3e22])throw CliErrors['validation']('App\x20\x22'+_0x2f3e22+_0x284275(0x192));delete _0x459cea[_0x2f3e22];let _0x1b6e90='';if(_0x4c610e[_0x284275(0x17a)]===_0x2f3e22){const _0xe18027=Object[_0x284275(0x190)](_0x459cea);_0x4c610e[_0x284275(0x17a)]=_0xe18027[_0x284275(0x18c)]>0x0?_0xe18027[0x0]:undefined,_0x4c610e[_0x284275(0x17a)]?_0x1b6e90=_0x284275(0x17d)+_0x4c610e[_0x284275(0x17a)]+'\x22.':delete _0x4c610e[_0x284275(0x17a)];}Object[_0x284275(0x190)](_0x459cea)['length']===0x0&&(delete _0x4c610e[_0x284275(0x183)],delete _0x4c610e[_0x284275(0x17a)]);writeConfig(_0x4c610e,_0x39d6f4);const _0x3e5408=_0x2ba222===_0x284275(0x196)?'\x20Note:\x20app\x20\x22'+_0x2f3e22+_0x284275(0x173)+(_0x35aad5===_0x284275(0x188)?_0x284275(0x17f):_0x284275(0x188))+_0x284275(0x193):'';return{'ok':!![],'message':'Removed\x20app\x20\x22'+_0x2f3e22+'\x22'+scopeLabel(_0x39d6f4)+'.'+_0x1b6e90+_0x3e5408};}
1
+ function a44_0x1fa8(){const _0x2aa0cb=['global','projectConfig','8183gaKohJ','\x20<name>\x20[--global]','length','1462784Kntqtv','appcode','367091qIixTe','globalConfig','1236qdWrFR','apps','\x20<name>\x20--appcode\x20<code>','\x22\x20(appcode:\x20','inherit','App\x20\x22','validation','Added','trim','Use\x20global\x20config\x20scope','Updated','4432945DWpzHR','args','1847584KCuJrR','\x22\x20not\x20found.','\x20Note:\x20app\x20\x22','bool','3wPGeDp','496926iqbhyX','App\x20code','\x22\x20still\x20defined\x20in\x20','4584330nOdDrq','Missing\x20app\x20name.','Usage:\x20','project','defaultApp','8bKzCdV','keys','boolean','both'];a44_0x1fa8=function(){return _0x2aa0cb;};return a44_0x1fa8();}(function(_0x3dfb56,_0x57e789){const _0x412256=a44_0x575c,_0x303f83=_0x3dfb56();while(!![]){try{const _0x4233c9=parseInt(_0x412256(0x14a))/0x1+-parseInt(_0x412256(0x159))/0x2*(parseInt(_0x412256(0x15d))/0x3)+parseInt(_0x412256(0x148))/0x4+parseInt(_0x412256(0x157))/0x5+parseInt(_0x412256(0x14c))/0x6*(parseInt(_0x412256(0x145))/0x7)+-parseInt(_0x412256(0x166))/0x8*(-parseInt(_0x412256(0x15e))/0x9)+-parseInt(_0x412256(0x161))/0xa;if(_0x4233c9===_0x57e789)break;else _0x303f83['push'](_0x303f83['shift']());}catch(_0x2139c8){_0x303f83['push'](_0x303f83['shift']());}}}(a44_0x1fa8,0x822bb));import{CliErrors}from'../../errors.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{collectAppProfileOverrides,getAppProfileFlagDefs}from'../../config/schema.js';import{readRawConfigWithLayers}from'../../context.js';import{readConfig,writeConfig,scopeLabel,resolveAppScopeForWrite,appDefinedIn}from'../../commands/app/shared.js';export function buildAppAddFlags(){const _0xd2530c=a44_0x575c;return[{'name':_0xd2530c(0x149),'type':'string','description':_0xd2530c(0x15f),'required':!![]},{'name':'global','type':_0xd2530c(0x168),'description':_0xd2530c(0x155),'default':![]},...getAppProfileFlagDefs()];}function a44_0x575c(_0x57db89,_0x174f69){_0x57db89=_0x57db89-0x142;const _0x1fa82f=a44_0x1fa8();let _0x575c31=_0x1fa82f[_0x57db89];return _0x575c31;}export function buildAppRemoveFlags(){const _0x384be3=a44_0x575c;return[{'name':_0x384be3(0x143),'type':_0x384be3(0x168),'description':_0x384be3(0x155),'default':![]}];}export async function validateAppName(_0x41163d,_0x2b934a){const _0x1ae5a0=a44_0x575c,_0x487c29=_0x41163d[_0x1ae5a0(0x158)][0x0]?.[_0x1ae5a0(0x154)]();if(!_0x487c29)throw CliErrors[_0x1ae5a0(0x152)]('Missing\x20app\x20name.',_0x1ae5a0(0x163)+CLI_BIN_NAME+'\x20'+_0x2b934a+'\x20<name>');}export async function runAppAdd(_0x2d76e7,_0x202648){const _0x14696b=a44_0x575c,_0x43ce33=_0x2d76e7[_0x14696b(0x158)][0x0]?.['trim']();if(!_0x43ce33)throw CliErrors[_0x14696b(0x152)](_0x14696b(0x162),'Usage:\x20'+CLI_BIN_NAME+'\x20'+_0x202648+_0x14696b(0x14e));const _0x55543e=_0x2d76e7['str']('appcode');if(!_0x55543e)throw CliErrors['flagMissing'](_0x14696b(0x149),_0x14696b(0x163)+CLI_BIN_NAME+'\x20'+_0x202648+'\x20<name>\x20--appcode\x20<code>');const _0x206a49={'global':_0x2d76e7[_0x14696b(0x15c)]('global')},_0x50e646=readConfig(_0x206a49);if(!_0x50e646['apps'])_0x50e646[_0x14696b(0x14d)]={};const _0x479737={'appcode':_0x55543e,...collectAppProfileOverrides(_0xf382fb=>_0x2d76e7['str'](_0xf382fb))},_0xdef284=_0x50e646[_0x14696b(0x14d)],_0x4bc849=!!_0xdef284[_0x43ce33];_0xdef284[_0x43ce33]=_0x479737;if(!_0x50e646[_0x14696b(0x165)])_0x50e646['defaultApp']=_0x43ce33;writeConfig(_0x50e646,_0x206a49);const _0x47042a=!_0x4bc849&&_0x50e646['defaultApp']===_0x43ce33?'\x20Set\x20as\x20default\x20app.':'',_0x4fc90d=(_0x4bc849?_0x14696b(0x156):_0x14696b(0x153))+'\x20app\x20\x22'+_0x43ce33+_0x14696b(0x14f)+_0x55543e+')'+scopeLabel(_0x206a49)+'.'+_0x47042a;return{'ok':!![],'message':_0x4fc90d};}export async function runAppRemove(_0x4174f6,_0x3452aa){const _0x1bb238=a44_0x575c,_0x5b5fb1=_0x4174f6[_0x1bb238(0x158)][0x0]?.[_0x1bb238(0x154)]();if(!_0x5b5fb1)throw CliErrors[_0x1bb238(0x152)](_0x1bb238(0x162),_0x1bb238(0x163)+CLI_BIN_NAME+'\x20'+_0x3452aa+_0x1bb238(0x146));const _0xd88652=_0x4174f6['bool'](_0x1bb238(0x143)),{config:_0x5d9957,layers:_0x32989a}=readRawConfigWithLayers(),_0x224b7d=_0x5d9957[_0x1bb238(0x14d)]??{};if(!_0x224b7d[_0x5b5fb1])throw CliErrors[_0x1bb238(0x152)](_0x1bb238(0x151)+_0x5b5fb1+'\x22\x20not\x20found.');const _0x1e1e35=_0x32989a['globalConfig'][_0x1bb238(0x14d)]&&typeof _0x32989a[_0x1bb238(0x14b)]['apps']==='object'?_0x32989a[_0x1bb238(0x14b)][_0x1bb238(0x14d)]:{},_0x124422=_0x32989a[_0x1bb238(0x144)][_0x1bb238(0x14d)]&&typeof _0x32989a['projectConfig']['apps']==='object'?_0x32989a[_0x1bb238(0x144)]['apps']:{},_0x55c497=appDefinedIn(_0x5b5fb1,_0x1e1e35,_0x124422,_0x32989a[_0x1bb238(0x144)][_0x1bb238(0x150)]===![]),_0x19bc95=resolveAppScopeForWrite(_0x5b5fb1,_0xd88652,_0x32989a),_0x483b3b={'global':_0x19bc95==='global'},_0x1ad315=readConfig(_0x483b3b),_0x1b9ab2=_0x1ad315[_0x1bb238(0x14d)];if(!_0x1b9ab2||!_0x1b9ab2[_0x5b5fb1])throw CliErrors[_0x1bb238(0x152)](_0x1bb238(0x151)+_0x5b5fb1+_0x1bb238(0x15a));delete _0x1b9ab2[_0x5b5fb1];let _0x32011c='';if(_0x1ad315[_0x1bb238(0x165)]===_0x5b5fb1){const _0x2170a8=Object[_0x1bb238(0x167)](_0x1b9ab2);_0x1ad315[_0x1bb238(0x165)]=_0x2170a8['length']>0x0?_0x2170a8[0x0]:undefined,_0x1ad315[_0x1bb238(0x165)]?_0x32011c='\x20Default\x20app\x20changed\x20to\x20\x22'+_0x1ad315[_0x1bb238(0x165)]+'\x22.':delete _0x1ad315['defaultApp'];}Object[_0x1bb238(0x167)](_0x1b9ab2)[_0x1bb238(0x147)]===0x0&&(delete _0x1ad315[_0x1bb238(0x14d)],delete _0x1ad315[_0x1bb238(0x165)]);writeConfig(_0x1ad315,_0x483b3b);const _0x5daed1=_0x55c497===_0x1bb238(0x142)?_0x1bb238(0x15b)+_0x5b5fb1+_0x1bb238(0x160)+(_0x19bc95===_0x1bb238(0x164)?'global':_0x1bb238(0x164))+'\x20config.':'';return{'ok':!![],'message':'Removed\x20app\x20\x22'+_0x5b5fb1+'\x22'+scopeLabel(_0x483b3b)+'.'+_0x32011c+_0x5daed1};}
@@ -1 +1 @@
1
- (function(_0x21d408,_0xd2e72){const _0x5c631d=a45_0x4461,_0x1276a2=_0x21d408();while(!![]){try{const _0xce55e3=parseInt(_0x5c631d(0xc5))/0x1+parseInt(_0x5c631d(0xc4))/0x2*(-parseInt(_0x5c631d(0xb6))/0x3)+parseInt(_0x5c631d(0xac))/0x4+-parseInt(_0x5c631d(0xa1))/0x5+parseInt(_0x5c631d(0xb1))/0x6*(-parseInt(_0x5c631d(0xb5))/0x7)+parseInt(_0x5c631d(0xbf))/0x8*(-parseInt(_0x5c631d(0xa5))/0x9)+parseInt(_0x5c631d(0xb0))/0xa;if(_0xce55e3===_0xd2e72)break;else _0x1276a2['push'](_0x1276a2['shift']());}catch(_0x6e7576){_0x1276a2['push'](_0x1276a2['shift']());}}}(a45_0x1aaf,0x4c3c8));import{input,checkbox,select}from'@inquirer/prompts';import a45_0x4d16ca 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';function a45_0x1aaf(){const _0xbdaa51=['gray','762796XGfWiY','valid','skip','manual','9853300hFATqf','150CcOlKl','appName','\x0a未找到可用应用。','获取到\x20','21854tJKxeE','22731VLrffU','length','map','find','message','appCode','custom','请输入\x20App\x20Code:','\x0a无法获取远程应用列表,请手动输入。','67648OjYaaV','无法获取远程应用列表,请手动输入。','yellow','trim','正在获取可用应用列表...','12onYbNp','18174gFeXZq','请选择要绑定的应用:','✎\x20自定义输入\x20appcode','2481455LxnHkn','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','未找到可用应用。','✎\x20手动输入','279qlciSe','Invalid\x20App\x20Code','includes','App\x20Code:','\x20\x20(','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)'];a45_0x1aaf=function(){return _0xbdaa51;};return a45_0x1aaf();}export async function promptCustomAppcode(){const _0x130339=a45_0x4461,_0x16786b=await input({'message':_0x130339(0xbd),'validate':_0x2dac62=>{const _0x24e467=_0x130339,_0x17732e=validateAppcode(_0x2dac62[_0x24e467(0xc2)]());return _0x17732e[_0x24e467(0xad)]||_0x17732e[_0x24e467(0xba)]||_0x24e467(0xa6);}});return _0x16786b['trim']();}export async function promptAppSelection(_0x3ca46b){const _0x366310=a45_0x4461,_0x429b27=[{'name':a45_0x4d16ca['yellow'](_0x366310(0xa0)),'value':-0x1},..._0x3ca46b[_0x366310(0xb8)]((_0x563f93,_0x32ae82)=>({'name':_0x563f93['appName']+'\x20\x20'+a45_0x4d16ca['gray']('('+_0x563f93[_0x366310(0xbb)]+')'),'value':_0x32ae82}))],_0x53bbdc=await checkbox({'message':_0x366310(0xb4)+a45_0x4d16ca['cyan'](_0x3ca46b[_0x366310(0xb7)])+_0x366310(0xa2),'choices':_0x429b27,'loop':![]});if(_0x53bbdc[_0x366310(0xa7)](-0x1))return _0x366310(0xbc);if(_0x53bbdc[_0x366310(0xb7)]===0x0)return _0x366310(0xbc);return _0x53bbdc['map'](_0x4f1467=>_0x3ca46b[_0x4f1467]);}export async function promptSingleAppSelection(_0x42b60a){const _0x17648a=a45_0x4461,_0x43d9e4=[{'name':a45_0x4d16ca[_0x17648a(0xab)]('(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)'),'value':_0x17648a(0xae)},{'name':a45_0x4d16ca['yellow'](_0x17648a(0xa0)),'value':_0x17648a(0xbc)},..._0x42b60a['map'](_0x56a964=>({'name':_0x56a964[_0x17648a(0xb2)]+'\x20\x20'+a45_0x4d16ca[_0x17648a(0xab)]('('+_0x56a964[_0x17648a(0xbb)]+')'),'value':_0x56a964[_0x17648a(0xbb)]}))],_0x3c62e3=await select({'message':_0x17648a(0x9f),'choices':_0x43d9e4});if(_0x3c62e3===_0x17648a(0xae))return _0x17648a(0xae);if(_0x3c62e3===_0x17648a(0xbc))return _0x17648a(0xbc);return _0x42b60a[_0x17648a(0xb9)](_0x5ec598=>_0x5ec598[_0x17648a(0xbb)]===_0x3c62e3);}export async function selectSingleAppcode(_0x473838){const _0x3bc173=a45_0x4461;if(!_0x473838)return writeCliSideChannelLine(a45_0x4d16ca[_0x3bc173(0xab)](_0x3bc173(0xaa))),_fallbackOrSkip();writeCliSideChannelLine(_0x3bc173(0xc3));let _0x203443;try{_0x203443=await withActiveCookie(_0x473838,()=>listRemoteApps());}catch(_0x40605f){writeCliSideChannelLine(a45_0x4d16ca['yellow'](_0x3bc173(0xc0)));if(_0x40605f instanceof Error)writeCliSideChannelLine(a45_0x4d16ca[_0x3bc173(0xab)](_0x3bc173(0xa9)+_0x40605f[_0x3bc173(0xba)]+')'));return _fallbackOrSkip();}if(_0x203443[_0x3bc173(0xb7)]===0x0)return writeCliSideChannelLine(a45_0x4d16ca[_0x3bc173(0xc1)](_0x3bc173(0xa3))),_fallbackOrSkip();const _0x2bcc9c=await promptSingleAppSelection(_0x203443);if(_0x2bcc9c===_0x3bc173(0xae))return'';if(_0x2bcc9c==='custom')return promptCustomAppcode();return _0x2bcc9c['appCode'];}function a45_0x4461(_0x4bf4d5,_0x3b9204){_0x4bf4d5=_0x4bf4d5-0x9f;const _0x1aaf73=a45_0x1aaf();let _0x4461e6=_0x1aaf73[_0x4bf4d5];return _0x4461e6;}export async function selectMultipleApps(_0x4f1d10){const _0x2a3c1e=a45_0x4461;writeCliSideChannelLine('正在获取可用应用列表...');let _0x1d7c79;try{_0x1d7c79=await withActiveCookie(_0x4f1d10,()=>listRemoteApps());}catch(_0x486f12){writeCliSideChannelLine(_0x2a3c1e(0xbe));if(_0x486f12 instanceof Error)writeCliSideChannelLine(_0x2a3c1e(0xa9)+_0x486f12[_0x2a3c1e(0xba)]+')');return'custom';}if(_0x1d7c79[_0x2a3c1e(0xb7)]===0x0)return writeCliSideChannelLine(_0x2a3c1e(0xb3)),'custom';return promptAppSelection(_0x1d7c79);}async function _fallbackOrSkip(){const _0x2d368e=a45_0x4461,_0x1bef03=await select({'message':_0x2d368e(0xa8),'choices':[{'name':a45_0x4d16ca['gray']('(跳过,稍后配置)'),'value':_0x2d368e(0xae)},{'name':a45_0x4d16ca[_0x2d368e(0xc1)](_0x2d368e(0xa4)),'value':_0x2d368e(0xaf)}]});if(_0x1bef03===_0x2d368e(0xae))return'';return promptCustomAppcode();}
1
+ (function(_0x1975f0,_0x25dd58){const _0x1dc4c0=a45_0x3563,_0x16c6f6=_0x1975f0();while(!![]){try{const _0x421316=-parseInt(_0x1dc4c0(0x19a))/0x1+parseInt(_0x1dc4c0(0x1b4))/0x2*(parseInt(_0x1dc4c0(0x1ab))/0x3)+-parseInt(_0x1dc4c0(0x196))/0x4*(parseInt(_0x1dc4c0(0x193))/0x5)+-parseInt(_0x1dc4c0(0x1ae))/0x6*(-parseInt(_0x1dc4c0(0x18f))/0x7)+-parseInt(_0x1dc4c0(0x1a9))/0x8*(parseInt(_0x1dc4c0(0x1a6))/0x9)+-parseInt(_0x1dc4c0(0x1b7))/0xa*(parseInt(_0x1dc4c0(0x1a8))/0xb)+parseInt(_0x1dc4c0(0x19f))/0xc;if(_0x421316===_0x25dd58)break;else _0x16c6f6['push'](_0x16c6f6['shift']());}catch(_0x57b57d){_0x16c6f6['push'](_0x16c6f6['shift']());}}}(a45_0x1d29,0x8096d));import{input,checkbox,select}from'@inquirer/prompts';import a45_0x2a2424 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';function a45_0x3563(_0x352f08,_0x18954f){_0x352f08=_0x352f08-0x18f;const _0x1d29de=a45_0x1d29();let _0x356330=_0x1d29de[_0x352f08];return _0x356330;}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 _0x533ad7=await input({'message':'请输入\x20App\x20Code:','validate':_0x4457fc=>{const _0x4e2b95=a45_0x3563,_0x2579d6=validateAppcode(_0x4457fc[_0x4e2b95(0x1ad)]());return _0x2579d6[_0x4e2b95(0x19b)]||_0x2579d6[_0x4e2b95(0x1b2)]||_0x4e2b95(0x195);}});return _0x533ad7['trim']();}export async function promptAppSelection(_0x2dbc15){const _0x4e33a0=a45_0x3563,_0x221a2e=[{'name':a45_0x2a2424['yellow'](_0x4e33a0(0x190)),'value':-0x1},..._0x2dbc15[_0x4e33a0(0x1a5)]((_0x918160,_0x2b5cf2)=>({'name':_0x918160[_0x4e33a0(0x1b1)]+'\x20\x20'+a45_0x2a2424[_0x4e33a0(0x194)]('('+_0x918160['appCode']+')'),'value':_0x2b5cf2}))],_0x262558=await checkbox({'message':'获取到\x20'+a45_0x2a2424[_0x4e33a0(0x1a4)](_0x2dbc15[_0x4e33a0(0x1a0)])+_0x4e33a0(0x1b0),'choices':_0x221a2e,'loop':![]});if(_0x262558[_0x4e33a0(0x1a7)](-0x1))return _0x4e33a0(0x1b6);if(_0x262558[_0x4e33a0(0x1a0)]===0x0)return'custom';return _0x262558[_0x4e33a0(0x1a5)](_0x3bb0c8=>_0x2dbc15[_0x3bb0c8]);}export async function promptSingleAppSelection(_0x1c5d94){const _0x409e79=a45_0x3563,_0x526078=[{'name':a45_0x2a2424[_0x409e79(0x194)](_0x409e79(0x192)),'value':_0x409e79(0x19e)},{'name':a45_0x2a2424['yellow']('✎\x20自定义输入\x20appcode'),'value':_0x409e79(0x1b6)},..._0x1c5d94['map'](_0x291ee1=>({'name':_0x291ee1[_0x409e79(0x1b1)]+'\x20\x20'+a45_0x2a2424[_0x409e79(0x194)]('('+_0x291ee1['appCode']+')'),'value':_0x291ee1[_0x409e79(0x1af)]}))],_0x20f578=await select({'message':_0x409e79(0x1b3),'choices':_0x526078});if(_0x20f578==='skip')return _0x409e79(0x19e);if(_0x20f578==='custom')return _0x409e79(0x1b6);return _0x1c5d94[_0x409e79(0x19d)](_0x17073=>_0x17073[_0x409e79(0x1af)]===_0x20f578);}export async function selectSingleAppcode(_0xcab12f){const _0x5f318a=a45_0x3563;if(!_0xcab12f)return writeCliSideChannelLine(a45_0x2a2424['gray'](_0x5f318a(0x1a1))),_fallbackOrSkip();writeCliSideChannelLine(_0x5f318a(0x191));let _0xd35fe0;try{_0xd35fe0=await withActiveCookie(_0xcab12f,()=>listRemoteApps());}catch(_0x18def0){writeCliSideChannelLine(a45_0x2a2424[_0x5f318a(0x1a3)](_0x5f318a(0x1b5)));if(_0x18def0 instanceof Error)writeCliSideChannelLine(a45_0x2a2424[_0x5f318a(0x194)](_0x5f318a(0x19c)+_0x18def0[_0x5f318a(0x1b2)]+')'));return _fallbackOrSkip();}if(_0xd35fe0[_0x5f318a(0x1a0)]===0x0)return writeCliSideChannelLine(a45_0x2a2424['yellow'](_0x5f318a(0x199))),_fallbackOrSkip();const _0x175f03=await promptSingleAppSelection(_0xd35fe0);if(_0x175f03===_0x5f318a(0x19e))return'';if(_0x175f03===_0x5f318a(0x1b6))return promptCustomAppcode();return _0x175f03[_0x5f318a(0x1af)];}export async function selectMultipleApps(_0x54964d){const _0x3393ab=a45_0x3563;writeCliSideChannelLine(_0x3393ab(0x191));let _0x5377f7;try{_0x5377f7=await withActiveCookie(_0x54964d,()=>listRemoteApps());}catch(_0xd53409){writeCliSideChannelLine(_0x3393ab(0x1a2));if(_0xd53409 instanceof Error)writeCliSideChannelLine(_0x3393ab(0x19c)+_0xd53409[_0x3393ab(0x1b2)]+')');return'custom';}if(_0x5377f7[_0x3393ab(0x1a0)]===0x0)return writeCliSideChannelLine(_0x3393ab(0x198)),_0x3393ab(0x1b6);return promptAppSelection(_0x5377f7);}function a45_0x1d29(){const _0x1ee466=['\x0a未找到可用应用。','未找到可用应用。','812704qpmSXA','valid','\x20\x20(','find','skip','33835032BNHGbT','length','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','\x0a无法获取远程应用列表,请手动输入。','yellow','cyan','map','9nuobEC','includes','813989QraJFh','5829184inuLuE','App\x20Code:','9MFSIrp','✎\x20手动输入','trim','18QXNXLn','appCode','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','appName','message','请选择要绑定的应用:','340282Gzaiqv','无法获取远程应用列表,请手动输入。','custom','130rKQnuM','1731338Nitmak','✎\x20自定义输入\x20appcode','正在获取可用应用列表...','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','5209855nToQra','gray','Invalid\x20App\x20Code','4UkAKBZ','manual'];a45_0x1d29=function(){return _0x1ee466;};return a45_0x1d29();}async function _fallbackOrSkip(){const _0x3a5c15=a45_0x3563,_0x303c89=await select({'message':_0x3a5c15(0x1aa),'choices':[{'name':a45_0x2a2424[_0x3a5c15(0x194)]('(跳过,稍后配置)'),'value':'skip'},{'name':a45_0x2a2424[_0x3a5c15(0x1a3)](_0x3a5c15(0x1ac)),'value':_0x3a5c15(0x197)}]});if(_0x303c89==='skip')return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- function a46_0x33e5(){var _0x59a2a4=['defineProperties','108762ORwIIp','18eBHKBA','3491262uFYsYZ','2025272kNnyNR','668017WBkWLN','description','35wObbew','248456nRKCmt','140668QAFGzo','method','url','82448vrXUcB'];a46_0x33e5=function(){return _0x59a2a4;};return a46_0x33e5();}(function(_0x72b838,_0x19e942){var _0x2d6b02=a46_0x14cf,_0x19f693=_0x72b838();while(!![]){try{var _0x1e9898=-parseInt(_0x2d6b02(0x17c))/0x1+-parseInt(_0x2d6b02(0x17d))/0x2+parseInt(_0x2d6b02(0x183))/0x3*(parseInt(_0x2d6b02(0x180))/0x4)+parseInt(_0x2d6b02(0x17b))/0x5*(parseInt(_0x2d6b02(0x182))/0x6)+parseInt(_0x2d6b02(0x179))/0x7+-parseInt(_0x2d6b02(0x178))/0x8+parseInt(_0x2d6b02(0x177))/0x9;if(_0x1e9898===_0x19e942)break;else _0x19f693['push'](_0x19f693['shift']());}catch(_0x48e129){_0x19f693['push'](_0x19f693['shift']());}}}(a46_0x33e5,0x278a9));function a46_0x14cf(_0x46820c,_0x1d0bc8){_0x46820c=_0x46820c-0x177;var _0x33e5fe=a46_0x33e5();var _0x14cf4b=_0x33e5fe[_0x46820c];return _0x14cf4b;}export function asDryRunResult(_0x53e0cd,_0x17aea5){var _0x2a8330=a46_0x14cf;return Object[_0x2a8330(0x181)](_0x53e0cd,{'method':{'value':_0x17aea5[_0x2a8330(0x17e)],'enumerable':![]},'url':{'value':_0x17aea5[_0x2a8330(0x17f)],'enumerable':![]},..._0x17aea5['description']?{'description':{'value':_0x17aea5[_0x2a8330(0x17a)],'enumerable':![]}}:{}});}
1
+ (function(_0x2ad07b,_0xaa3c2f){var _0x4b37a0=a46_0xc5cf,_0x16c0bc=_0x2ad07b();while(!![]){try{var _0x55d7f1=parseInt(_0x4b37a0(0x1ab))/0x1*(-parseInt(_0x4b37a0(0x1b0))/0x2)+parseInt(_0x4b37a0(0x1a4))/0x3+parseInt(_0x4b37a0(0x1aa))/0x4+-parseInt(_0x4b37a0(0x1a9))/0x5*(parseInt(_0x4b37a0(0x1a5))/0x6)+parseInt(_0x4b37a0(0x1a2))/0x7*(-parseInt(_0x4b37a0(0x1af))/0x8)+parseInt(_0x4b37a0(0x1a3))/0x9+-parseInt(_0x4b37a0(0x1ae))/0xa*(-parseInt(_0x4b37a0(0x1a7))/0xb);if(_0x55d7f1===_0xaa3c2f)break;else _0x16c0bc['push'](_0x16c0bc['shift']());}catch(_0x32572f){_0x16c0bc['push'](_0x16c0bc['shift']());}}}(a46_0x3a08,0x450ba));function a46_0xc5cf(_0xda001,_0x2fdc15){_0xda001=_0xda001-0x1a2;var _0x3a0868=a46_0x3a08();var _0xc5cfb1=_0x3a0868[_0xda001];return _0xc5cfb1;}export function asDryRunResult(_0x297fbe,_0x487bc6){var _0x41474f=a46_0xc5cf;return Object[_0x41474f(0x1ad)](_0x297fbe,{'method':{'value':_0x487bc6[_0x41474f(0x1a6)],'enumerable':![]},'url':{'value':_0x487bc6[_0x41474f(0x1a8)],'enumerable':![]},..._0x487bc6[_0x41474f(0x1ac)]?{'description':{'value':_0x487bc6[_0x41474f(0x1ac)],'enumerable':![]}}:{}});}function a46_0x3a08(){var _0x4a4484=['902565lazoSm','875286ILIrVT','6aeQKjg','method','5343778cKvIsS','url','1080075ggoYVv','1067024vvtOfX','327iptnZP','description','defineProperties','10rjbwnY','56aDybFr','2270rIDbEG','274631mPGDSO'];a46_0x3a08=function(){return _0x4a4484;};return a46_0x3a08();}
@@ -1 +1 @@
1
- const a47_0x104e45=a47_0x25fb;function a47_0x25fb(_0x2d3eef,_0x7b7065){_0x2d3eef=_0x2d3eef-0x145;const _0xf61ff7=a47_0xf61f();let _0x25fb4b=_0xf61ff7[_0x2d3eef];return _0x25fb4b;}(function(_0x569099,_0x8bddb7){const _0x199a89=a47_0x25fb,_0x2e685e=_0x569099();while(!![]){try{const _0x595658=-parseInt(_0x199a89(0x15c))/0x1+parseInt(_0x199a89(0x15a))/0x2*(-parseInt(_0x199a89(0x15d))/0x3)+-parseInt(_0x199a89(0x156))/0x4*(-parseInt(_0x199a89(0x14b))/0x5)+-parseInt(_0x199a89(0x14c))/0x6+parseInt(_0x199a89(0x150))/0x7*(parseInt(_0x199a89(0x155))/0x8)+-parseInt(_0x199a89(0x153))/0x9*(-parseInt(_0x199a89(0x146))/0xa)+parseInt(_0x199a89(0x14a))/0xb*(-parseInt(_0x199a89(0x147))/0xc);if(_0x595658===_0x8bddb7)break;else _0x2e685e['push'](_0x2e685e['shift']());}catch(_0x2c2837){_0x2e685e['push'](_0x2e685e['shift']());}}}(a47_0xf61f,0x402bb));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a47_0x104e45(0x15b)};export const CODE_FLAG={'name':a47_0x104e45(0x157),'type':'string','required':!![],'description':a47_0x104e45(0x14d),'pattern':DATASET_CODE_PATTERN};function a47_0xf61f(){const _0x74b8ac=['a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','9074mkwgUd','2727yOEXIz','POSTGRESQL','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','App\x20code\x20(e.g.\x20app-xxxxx)','190tscqFq','80736qdvrzT','string','MYSQL','913TjSHbS','35pBTuVR','884694OFvRhm','Dataset\x20code\x20(32-char\x20hex\x20UUID)','number','datasetcode','110355tqHIUD','dbtype','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','240183cPBJSz','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','168suUlCo','123964HagUEo','code','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','Database\x20product\x20type','170oWxMfb'];a47_0xf61f=function(){return _0x74b8ac;};return a47_0xf61f();}export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a47_0x104e45(0x14f),'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)'};export const SQLCODE_FLAG={'name':'sqlcode','type':a47_0x104e45(0x148),'required':!![],'description':a47_0x104e45(0x152),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a47_0x104e45(0x15f)}};export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':'string','required':![],'description':a47_0x104e45(0x154)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':a47_0x104e45(0x145)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a47_0x104e45(0x14e),'required':!![],'description':a47_0x104e45(0x158)};export const DB_TYPE_FLAG={'name':a47_0x104e45(0x151),'type':a47_0x104e45(0x148),'required':!![],'description':a47_0x104e45(0x159),'enum':[a47_0x104e45(0x149),a47_0x104e45(0x15e)]};
1
+ const a47_0x3b9070=a47_0xfab0;(function(_0x38bea1,_0x1e57f1){const _0x23dcbd=a47_0xfab0,_0x5c05c4=_0x38bea1();while(!![]){try{const _0x15ec37=-parseInt(_0x23dcbd(0x1bf))/0x1*(parseInt(_0x23dcbd(0x1c4))/0x2)+parseInt(_0x23dcbd(0x1b4))/0x3+-parseInt(_0x23dcbd(0x1c1))/0x4*(parseInt(_0x23dcbd(0x1bb))/0x5)+parseInt(_0x23dcbd(0x1c2))/0x6+parseInt(_0x23dcbd(0x1b9))/0x7*(parseInt(_0x23dcbd(0x1b8))/0x8)+-parseInt(_0x23dcbd(0x1b3))/0x9+-parseInt(_0x23dcbd(0x1bc))/0xa;if(_0x15ec37===_0x1e57f1)break;else _0x5c05c4['push'](_0x5c05c4['shift']());}catch(_0x66c7d3){_0x5c05c4['push'](_0x5c05c4['shift']());}}}(a47_0x1319,0x9f433));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a47_0x3b9070(0x1bd)};export const CODE_FLAG={'name':a47_0x3b9070(0x1b2),'type':a47_0x3b9070(0x1c3),'required':!![],'description':a47_0x3b9070(0x1b1),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a47_0x3b9070(0x1c6),'description':a47_0x3b9070(0x1b1)};function a47_0x1319(){const _0xf4a291=['14DRslkb','sqlcode','762475OGdTqc','2256010wpcvgS','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','App\x20code\x20(e.g.\x20app-xxxxx)','170473nrkmgU','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','16iEgqil','4930914TeJLUG','string','10miOqzJ','POSTGRESQL','datasetcode','Dataset\x20code\x20(32-char\x20hex\x20UUID)','code','337851ZBoNCw','1575789oBcEui','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','appcode','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','4122968EomQvW'];a47_0x1319=function(){return _0xf4a291;};return a47_0x1319();}function a47_0xfab0(_0x131d69,_0x3ab6b9){_0x131d69=_0x131d69-0x1b1;const _0x131939=a47_0x1319();let _0xfab0f2=_0x131939[_0x131d69];return _0xfab0f2;}export const SQLCODE_FLAG={'name':a47_0x3b9070(0x1ba),'type':a47_0x3b9070(0x1c3),'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':a47_0x3b9070(0x1b7)}};export const APPCODE_FLAG_OPTIONAL={'name':a47_0x3b9070(0x1b6),'type':a47_0x3b9070(0x1c3),'required':![],'description':a47_0x3b9070(0x1c0)};export const APPCODE_FLAG={...APPCODE_FLAG_OPTIONAL,'required':!![],'description':a47_0x3b9070(0x1be)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':'number','required':!![],'description':a47_0x3b9070(0x1b5)};export const DB_TYPE_FLAG={'name':'dbtype','type':a47_0x3b9070(0x1c3),'required':!![],'description':'Database\x20product\x20type','enum':['MYSQL',a47_0x3b9070(0x1c5)]};
@@ -1 +1 @@
1
- (function(_0x22cae9,_0x3755a5){const _0x37b616=a48_0x3e7b,_0xe39647=_0x22cae9();while(!![]){try{const _0x5ef1a6=-parseInt(_0x37b616(0x1bd))/0x1+-parseInt(_0x37b616(0x1ba))/0x2+parseInt(_0x37b616(0x1b3))/0x3*(-parseInt(_0x37b616(0x1af))/0x4)+parseInt(_0x37b616(0x1b1))/0x5*(parseInt(_0x37b616(0x1ad))/0x6)+-parseInt(_0x37b616(0x1bc))/0x7*(parseInt(_0x37b616(0x1b4))/0x8)+-parseInt(_0x37b616(0x1c0))/0x9*(parseInt(_0x37b616(0x1b0))/0xa)+parseInt(_0x37b616(0x1b9))/0xb;if(_0x5ef1a6===_0x3755a5)break;else _0xe39647['push'](_0xe39647['shift']());}catch(_0x112479){_0xe39647['push'](_0xe39647['shift']());}}}(a48_0x1c9c,0x64681));import{existsSync,statSync}from'node:fs';function a48_0x3e7b(_0x12e3ff,_0x21f251){_0x12e3ff=_0x12e3ff-0x1ab;const _0x1c9c23=a48_0x1c9c();let _0x3e7b05=_0x1c9c23[_0x12e3ff];return _0x3e7b05;}import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;function a48_0x1c9c(){const _0x31fecc=['22435GRMiwD','17272tWMHAw','trim','\x20path\x20is\x20required.','9JjSuSA','ceil','\x20MB','6BTdTnh','File\x20is\x20not\x20a\x20regular\x20file:\x20','4lKHsKH','6469610FSlmtT','2792540fRwrvU','File\x20not\x20found:\x20','1912563ekcqfF','1840HdtJaw','size','File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20','validation','toFixed','27654638iuiADM','1244794eroyvu','isFile'];a48_0x1c9c=function(){return _0x31fecc;};return a48_0x1c9c();}export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function formatBytes(_0xe97065){const _0x166e39=a48_0x3e7b;if(_0xe97065>=BYTES_PER_MB){const _0x5c13d3=Math[_0x166e39(0x1ab)](_0xe97065/BYTES_PER_MB*0x64)/0x64;return _0x5c13d3[_0x166e39(0x1b8)](0x2)+_0x166e39(0x1ac);}return _0xe97065+'\x20B';}export function requireDevelopmentUploadFile(_0xe5f63f,_0x557595){const _0xa04967=a48_0x3e7b,_0x3a8795=_0xe5f63f[_0xa04967(0x1be)]();if(!_0x3a8795)throw CliErrors['validation'](_0x557595+_0xa04967(0x1bf));if(!existsSync(_0x3a8795))throw CliErrors['validation'](_0xa04967(0x1b2)+_0x3a8795);const _0x15cef5=statSync(_0x3a8795);if(!_0x15cef5[_0xa04967(0x1bb)]())throw CliErrors['validation'](_0xa04967(0x1ae)+_0x3a8795);if(_0x15cef5['size']>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0xa04967(0x1b7)](_0xa04967(0x1b6)+_0x3a8795+'\x20('+formatBytes(_0x15cef5[_0xa04967(0x1b5)])+')');return{'path':_0x3a8795,'size':_0x15cef5[_0xa04967(0x1b5)]};}
1
+ (function(_0x1a2523,_0x5ec8f8){const _0x5d376d=a48_0x1768,_0x327d68=_0x1a2523();while(!![]){try{const _0xbc098=parseInt(_0x5d376d(0x13b))/0x1*(-parseInt(_0x5d376d(0x133))/0x2)+parseInt(_0x5d376d(0x13e))/0x3*(-parseInt(_0x5d376d(0x140))/0x4)+-parseInt(_0x5d376d(0x137))/0x5+-parseInt(_0x5d376d(0x130))/0x6*(parseInt(_0x5d376d(0x138))/0x7)+parseInt(_0x5d376d(0x13f))/0x8+parseInt(_0x5d376d(0x132))/0x9*(parseInt(_0x5d376d(0x136))/0xa)+parseInt(_0x5d376d(0x134))/0xb*(parseInt(_0x5d376d(0x13c))/0xc);if(_0xbc098===_0x5ec8f8)break;else _0x327d68['push'](_0x327d68['shift']());}catch(_0x1fbf40){_0x327d68['push'](_0x327d68['shift']());}}}(a48_0x47b5,0x6aad6));function a48_0x47b5(){const _0x221bd6=['2184070xMCvdu','14KxNqjB','size','\x20path\x20is\x20required.','787615FPeIOt','25068EfmizV','validation','885fnZNnZ','5513456lTcmcO','3708jYTdTF','\x20MB','File\x20not\x20found:\x20','436788qspiCt','toFixed','14868LePohi','2cmmzWI','4290eujRFh','File\x20is\x20not\x20a\x20regular\x20file:\x20','3490GdwQpG'];a48_0x47b5=function(){return _0x221bd6;};return a48_0x47b5();}import{existsSync,statSync}from'node:fs';import{CliErrors}from'../../errors.js';const BYTES_PER_MB=0x400*0x400;export const DEVELOPMENT_UPLOAD_MAX_BYTES=0x32*BYTES_PER_MB;function a48_0x1768(_0x5642ab,_0x1e83c6){_0x5642ab=_0x5642ab-0x12e;const _0x47b56d=a48_0x47b5();let _0x1768da=_0x47b56d[_0x5642ab];return _0x1768da;}function formatBytes(_0x196352){const _0x1ee6fc=a48_0x1768;if(_0x196352>=BYTES_PER_MB){const _0x4e4dc6=Math['ceil'](_0x196352/BYTES_PER_MB*0x64)/0x64;return _0x4e4dc6[_0x1ee6fc(0x131)](0x2)+_0x1ee6fc(0x12e);}return _0x196352+'\x20B';}export function requireDevelopmentUploadFile(_0x6f393e,_0x3db3bd){const _0x598b93=a48_0x1768,_0x2f80a4=_0x6f393e['trim']();if(!_0x2f80a4)throw CliErrors[_0x598b93(0x13d)](_0x3db3bd+_0x598b93(0x13a));if(!existsSync(_0x2f80a4))throw CliErrors[_0x598b93(0x13d)](_0x598b93(0x12f)+_0x2f80a4);const _0x11f03a=statSync(_0x2f80a4);if(!_0x11f03a['isFile']())throw CliErrors[_0x598b93(0x13d)](_0x598b93(0x135)+_0x2f80a4);if(_0x11f03a['size']>DEVELOPMENT_UPLOAD_MAX_BYTES)throw CliErrors[_0x598b93(0x13d)]('File\x20exceeds\x20the\x20development\x20upload\x20limit\x20of\x2050\x20MB:\x20'+_0x2f80a4+'\x20('+formatBytes(_0x11f03a[_0x598b93(0x139)])+')');return{'path':_0x2f80a4,'size':_0x11f03a[_0x598b93(0x139)]};}
@@ -1 +1 @@
1
- function a49_0x47a4(){const _0x433fe0=['1135064ZaLoKL','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','trim','14845KgrPBO','2070120hECgFX','353471aUfdfG','test','2dJlFfA','4651440VzHgpF','App\x20Code\x20cannot\x20exceed\x20100\x20characters','6970103BLpXZw','App\x20Code\x20cannot\x20be\x20empty','50375556tnNOoc','3018zOhWYT'];a49_0x47a4=function(){return _0x433fe0;};return a49_0x47a4();}function a49_0x34bf(_0xba8758,_0x4f9bc0){_0xba8758=_0xba8758-0x1c6;const _0x47a470=a49_0x47a4();let _0x34bfe4=_0x47a470[_0xba8758];return _0x34bfe4;}(function(_0x48c1b6,_0x598c72){const _0xc82d68=a49_0x34bf,_0x55ad3a=_0x48c1b6();while(!![]){try{const _0x3e4189=-parseInt(_0xc82d68(0x1c9))/0x1*(parseInt(_0xc82d68(0x1cb))/0x2)+-parseInt(_0xc82d68(0x1cc))/0x3+-parseInt(_0xc82d68(0x1c8))/0x4+-parseInt(_0xc82d68(0x1c7))/0x5*(parseInt(_0xc82d68(0x1d1))/0x6)+-parseInt(_0xc82d68(0x1ce))/0x7+parseInt(_0xc82d68(0x1d2))/0x8+parseInt(_0xc82d68(0x1d0))/0x9;if(_0x3e4189===_0x598c72)break;else _0x55ad3a['push'](_0x55ad3a['shift']());}catch(_0x579d13){_0x55ad3a['push'](_0x55ad3a['shift']());}}}(a49_0x47a4,0xca486));export function validateAppcode(_0x18e9eb){const _0x3171ab=a49_0x34bf,_0x423899=_0x18e9eb[_0x3171ab(0x1c6)]();if(!_0x423899)return{'valid':![],'message':_0x3171ab(0x1cf)};if(_0x423899['length']>0x64)return{'valid':![],'message':_0x3171ab(0x1cd)};if(!/^[A-Za-z0-9_-]+$/[_0x3171ab(0x1ca)](_0x423899))return{'valid':![],'message':_0x3171ab(0x1d3)};return{'valid':!![]};}
1
+ (function(_0x322f3e,_0x19f17d){const _0x1cf3c9=a49_0x38b5,_0x1a0393=_0x322f3e();while(!![]){try{const _0x3d76f5=parseInt(_0x1cf3c9(0x148))/0x1*(parseInt(_0x1cf3c9(0x142))/0x2)+-parseInt(_0x1cf3c9(0x14c))/0x3+parseInt(_0x1cf3c9(0x14e))/0x4*(-parseInt(_0x1cf3c9(0x14d))/0x5)+parseInt(_0x1cf3c9(0x146))/0x6+-parseInt(_0x1cf3c9(0x144))/0x7*(parseInt(_0x1cf3c9(0x14f))/0x8)+parseInt(_0x1cf3c9(0x151))/0x9*(parseInt(_0x1cf3c9(0x14a))/0xa)+parseInt(_0x1cf3c9(0x147))/0xb;if(_0x3d76f5===_0x19f17d)break;else _0x1a0393['push'](_0x1a0393['shift']());}catch(_0x41680f){_0x1a0393['push'](_0x1a0393['shift']());}}}(a49_0x2d55,0xcb7dc));function a49_0x2d55(){const _0x4f6e72=['trim','2002977nHYYKq','10PRBHzi','3029360EOtLhN','8oZGRRh','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','527301bJWqOy','2oCRkfy','App\x20Code\x20cannot\x20exceed\x20100\x20characters','6154393sHrdYX','App\x20Code\x20cannot\x20be\x20empty','7863024mZVUat','17069899BcyJos','915547qXjaAi','test','20csGGIb'];a49_0x2d55=function(){return _0x4f6e72;};return a49_0x2d55();}function a49_0x38b5(_0x3c0503,_0xcbae0c){_0x3c0503=_0x3c0503-0x142;const _0x2d5589=a49_0x2d55();let _0x38b50f=_0x2d5589[_0x3c0503];return _0x38b50f;}export function validateAppcode(_0x21a9e9){const _0x231a91=a49_0x38b5,_0x5a9e4e=_0x21a9e9[_0x231a91(0x14b)]();if(!_0x5a9e4e)return{'valid':![],'message':_0x231a91(0x145)};if(_0x5a9e4e['length']>0x64)return{'valid':![],'message':_0x231a91(0x143)};if(!/^[A-Za-z0-9_-]+$/[_0x231a91(0x149)](_0x5a9e4e))return{'valid':![],'message':_0x231a91(0x150)};return{'valid':!![]};}
@@ -1 +1 @@
1
- function a50_0x3711(){const _0x598519=['42vnIsGr','1244583jqCEkT','107166sEdDRe','config','read','validation','7QUbaRD','appcode','Key\x20not\x20found:\x20','str','10135792UuCtYo','app','key','get','84405JtztZD','9135630WraUQI','454254zCOtMw','1309880tMYAsU','Usage:\x20','282IYLtNb','33qxKfCU','object','string'];a50_0x3711=function(){return _0x598519;};return a50_0x3711();}const a50_0x718ef6=a50_0x2bce;(function(_0x334fb0,_0x1cb823){const _0x3ddaba=a50_0x2bce,_0x41e116=_0x334fb0();while(!![]){try{const _0x5c29e6=parseInt(_0x3ddaba(0xb9))/0x1+parseInt(_0x3ddaba(0xab))/0x2*(parseInt(_0x3ddaba(0xa9))/0x3)+parseInt(_0x3ddaba(0xba))/0x4+parseInt(_0x3ddaba(0xb7))/0x5*(parseInt(_0x3ddaba(0xa5))/0x6)+-parseInt(_0x3ddaba(0xaf))/0x7*(-parseInt(_0x3ddaba(0xb3))/0x8)+-parseInt(_0x3ddaba(0xaa))/0x9+parseInt(_0x3ddaba(0xb8))/0xa*(-parseInt(_0x3ddaba(0xa6))/0xb);if(_0x5c29e6===_0x1cb823)break;else _0x41e116['push'](_0x41e116['shift']());}catch(_0x1c4e96){_0x41e116['push'](_0x41e116['shift']());}}}(a50_0x3711,0xae24b));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(_0x189a08){const _0x32a4b4=a50_0x2bce,_0x5f4304=_0x189a08[_0x32a4b4(0xb2)](_0x32a4b4(0xb5));if(!_0x5f4304)throw CliErrors['validation']('Missing\x20key.',_0x32a4b4(0xa4)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0x283a63=readConfig(),_0xd14baa=_0x5f4304===_0x32a4b4(0xb4)?_0x32a4b4(0xb0):_0x5f4304,_0x26f5ca=_0x283a63[_0xd14baa];if(_0x26f5ca===undefined)throw CliErrors[_0x32a4b4(0xae)](_0x32a4b4(0xb1)+_0x5f4304);return{'ok':!![],'data':typeof _0x26f5ca===_0x32a4b4(0xa7)?_0x26f5ca:{[_0xd14baa]:_0x26f5ca},'message':typeof _0x26f5ca==='object'?undefined:String(_0x26f5ca)};}function a50_0x2bce(_0xb23d03,_0x52afc1){_0xb23d03=_0xb23d03-0xa4;const _0x371142=a50_0x3711();let _0x2bcedb=_0x371142[_0xb23d03];return _0x2bcedb;}export const configGetDefinition={'service':a50_0x718ef6(0xac),'command':a50_0x718ef6(0xb6),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':a50_0x718ef6(0xad),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a50_0x718ef6(0xb5),'type':a50_0x718ef6(0xa8),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ function a50_0x3142(){const _0x31f92c=['33ovhmdf','appcode','get','Get\x20a\x20config\x20value\x20by\x20key','object','key','str','validation','1339024AMTtPQ','672471wVsOyr','2426815jwUvEH','config','string','read','app','746305WmHMXO','\x20config\x20get\x20--key\x20<key>','19572AbcEgt','18BVfZQB','Key\x20not\x20found:\x20','1321356IoAHZD','130DOJeZT','2180181GrbXMn'];a50_0x3142=function(){return _0x31f92c;};return a50_0x3142();}const a50_0x3d5745=a50_0x2b6a;(function(_0x87f0ef,_0x539cb0){const _0x35999c=a50_0x2b6a,_0x44f61a=_0x87f0ef();while(!![]){try{const _0x4acea9=parseInt(_0x35999c(0x1e0))/0x1*(-parseInt(_0x35999c(0x1da))/0x2)+parseInt(_0x35999c(0x1df))/0x3+-parseInt(_0x35999c(0x1dd))/0x4+-parseInt(_0x35999c(0x1d3))/0x5+parseInt(_0x35999c(0x1db))/0x6*(-parseInt(_0x35999c(0x1d8))/0x7)+parseInt(_0x35999c(0x1d1))/0x8+parseInt(_0x35999c(0x1d2))/0x9*(parseInt(_0x35999c(0x1de))/0xa);if(_0x4acea9===_0x539cb0)break;else _0x44f61a['push'](_0x44f61a['shift']());}catch(_0xbe13e8){_0x44f61a['push'](_0x44f61a['shift']());}}}(a50_0x3142,0x635b7));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';function a50_0x2b6a(_0x23f151,_0x3d800f){_0x23f151=_0x23f151-0x1cc;const _0x3142b2=a50_0x3142();let _0x2b6a5c=_0x3142b2[_0x23f151];return _0x2b6a5c;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x37e13d){const _0x58b570=a50_0x2b6a,_0x501bde=_0x37e13d[_0x58b570(0x1cf)]('key');if(!_0x501bde)throw CliErrors[_0x58b570(0x1d0)]('Missing\x20key.','Usage:\x20'+CLI_BIN_NAME+_0x58b570(0x1d9));const _0x3b8015=readConfig(),_0x5b3e3e=_0x501bde===_0x58b570(0x1d7)?_0x58b570(0x1e1):_0x501bde,_0x40c6bd=_0x3b8015[_0x5b3e3e];if(_0x40c6bd===undefined)throw CliErrors[_0x58b570(0x1d0)](_0x58b570(0x1dc)+_0x501bde);return{'ok':!![],'data':typeof _0x40c6bd===_0x58b570(0x1cd)?_0x40c6bd:{[_0x5b3e3e]:_0x40c6bd},'message':typeof _0x40c6bd===_0x58b570(0x1cd)?undefined:String(_0x40c6bd)};}export const configGetDefinition={'service':a50_0x3d5745(0x1d4),'command':a50_0x3d5745(0x1e2),'description':a50_0x3d5745(0x1cc),'risk':a50_0x3d5745(0x1d6),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a50_0x3d5745(0x1ce),'type':a50_0x3d5745(0x1d5),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x856aa8,_0x15b862){const _0x4be41e=a51_0x49ca,_0x1fb171=_0x856aa8();while(!![]){try{const _0x5b4004=parseInt(_0x4be41e(0x128))/0x1*(-parseInt(_0x4be41e(0x12d))/0x2)+parseInt(_0x4be41e(0x12c))/0x3*(-parseInt(_0x4be41e(0x123))/0x4)+-parseInt(_0x4be41e(0x127))/0x5+-parseInt(_0x4be41e(0x124))/0x6+-parseInt(_0x4be41e(0x129))/0x7+parseInt(_0x4be41e(0x125))/0x8*(-parseInt(_0x4be41e(0x12b))/0x9)+-parseInt(_0x4be41e(0x12a))/0xa*(-parseInt(_0x4be41e(0x126))/0xb);if(_0x5b4004===_0x15b862)break;else _0x1fb171['push'](_0x1fb171['shift']());}catch(_0x184d62){_0x1fb171['push'](_0x1fb171['shift']());}}}(a51_0x5902,0xbac9b));function a51_0x5902(){const _0x127abf=['50feyngN','68OtJJsG','7837620hRimfs','312vDiata','66vYFWbO','3174820OAdowd','5987aGMXiM','10324636BGWvsT','8006720KQdPyU','89289ABkvGG','15207pfUKcj'];a51_0x5902=function(){return _0x127abf;};return a51_0x5902();}import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a51_0x49ca(_0x149dc2,_0x216b37){_0x149dc2=_0x149dc2-0x123;const _0x5902c6=a51_0x5902();let _0x49ca9a=_0x5902c6[_0x149dc2];return _0x49ca9a;}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x2d8f9b,_0x2dbe57){const _0x103a6f=a51_0x500b,_0x3bc77c=_0x2d8f9b();while(!![]){try{const _0x3579f0=parseInt(_0x103a6f(0x9a))/0x1*(-parseInt(_0x103a6f(0xa0))/0x2)+-parseInt(_0x103a6f(0x9f))/0x3+-parseInt(_0x103a6f(0x9c))/0x4*(parseInt(_0x103a6f(0x9e))/0x5)+-parseInt(_0x103a6f(0x98))/0x6+parseInt(_0x103a6f(0x9b))/0x7+parseInt(_0x103a6f(0x97))/0x8*(parseInt(_0x103a6f(0x9d))/0x9)+parseInt(_0x103a6f(0x99))/0xa*(parseInt(_0x103a6f(0xa1))/0xb);if(_0x3579f0===_0x2dbe57)break;else _0x3bc77c['push'](_0x3bc77c['shift']());}catch(_0x417a75){_0x3bc77c['push'](_0x3bc77c['shift']());}}}(a51_0x4f9f,0xd8deb));import{configListDefinition}from'../../commands/config/list.js';function a51_0x500b(_0x4813aa,_0xf8b350){_0x4813aa=_0x4813aa-0x97;const _0x4f9fa2=a51_0x4f9f();let _0x500bef=_0x4f9fa2[_0x4813aa];return _0x500bef;}function a51_0x4f9f(){const _0x5e0697=['2315706DUiWMJ','16804310hLxwli','67hrSVDx','4748786PWMhff','1256rYhRYe','43560mVbXXp','1895ccORVT','3372009nLFEzM','6540xrvlKd','11hjRnag','624cLtHVx'];a51_0x4f9f=function(){return _0x5e0697;};return a51_0x4f9f();}import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- const a52_0x6b4822=a52_0x2314;(function(_0x4c312a,_0x4859cb){const _0x1d90d5=a52_0x2314,_0xd29e09=_0x4c312a();while(!![]){try{const _0x58a3be=parseInt(_0x1d90d5(0x147))/0x1*(-parseInt(_0x1d90d5(0x148))/0x2)+parseInt(_0x1d90d5(0x149))/0x3+-parseInt(_0x1d90d5(0x14a))/0x4*(parseInt(_0x1d90d5(0x152))/0x5)+-parseInt(_0x1d90d5(0x14c))/0x6*(-parseInt(_0x1d90d5(0x14d))/0x7)+-parseInt(_0x1d90d5(0x151))/0x8+-parseInt(_0x1d90d5(0x143))/0x9*(-parseInt(_0x1d90d5(0x146))/0xa)+-parseInt(_0x1d90d5(0x153))/0xb;if(_0x58a3be===_0x4859cb)break;else _0xd29e09['push'](_0xd29e09['shift']());}catch(_0x2dc8fb){_0xd29e09['push'](_0xd29e09['shift']());}}}(a52_0x2f35,0x3082c));function a52_0x2f35(){const _0x1c753d=['148076DZDuqG','config','6vbWezv','1494143YzvGrg','read','list','bool','1078432qNLdLY','15uKFFXW','3168506xvvOiV','global','9wPZpai','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','List\x20all\x20config\x20values','1849110vPwHTv','2aGtoUa','38914eBpRXJ','1119483arWTCU'];a52_0x2f35=function(){return _0x1c753d;};return a52_0x2f35();}import{readScopedConfig}from'../../commands/config/shared.js';function a52_0x2314(_0x2892cd,_0x59959b){_0x2892cd=_0x2892cd-0x142;const _0x2f3575=a52_0x2f35();let _0x23140d=_0x2f3575[_0x2892cd];return _0x23140d;}import{readConfig}from'../../utils/config.js';async function execute(_0x108fa7){const _0x3cd616=a52_0x2314,_0x403421=_0x108fa7[_0x3cd616(0x150)](_0x3cd616(0x142))?readScopedConfig(_0x3cd616(0x142)):readConfig();return{'ok':!![],'data':_0x403421};}export const configListDefinition={'service':a52_0x6b4822(0x14b),'command':a52_0x6b4822(0x14f),'description':a52_0x6b4822(0x145),'risk':a52_0x6b4822(0x14e),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a52_0x6b4822(0x142),'type':'boolean','description':a52_0x6b4822(0x144),'default':![]}],'execute':execute};
1
+ function a52_0x10d6(){const _0x2459e2=['957593aFjHXg','global','bool','List\x20all\x20config\x20values','488620TiRVHV','read','22504xJYgDn','66yyIour','5651tTFXyM','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','config','96IxGIFB','512810XHngNM','100pRejcM','1328466CIagnT','list','340749woioIx'];a52_0x10d6=function(){return _0x2459e2;};return a52_0x10d6();}const a52_0x56e26f=a52_0x42cd;(function(_0x242566,_0x25ad6b){const _0x199ca4=a52_0x42cd,_0x2ac87e=_0x242566();while(!![]){try{const _0x21c2f1=parseInt(_0x199ca4(0x7d))/0x1*(parseInt(_0x199ca4(0x82))/0x2)+-parseInt(_0x199ca4(0x7c))/0x3*(-parseInt(_0x199ca4(0x7b))/0x4)+-parseInt(_0x199ca4(0x79))/0x5+-parseInt(_0x199ca4(0x72))/0x6+-parseInt(_0x199ca4(0x75))/0x7+-parseInt(_0x199ca4(0x80))/0x8*(-parseInt(_0x199ca4(0x74))/0x9)+-parseInt(_0x199ca4(0x81))/0xa;if(_0x21c2f1===_0x25ad6b)break;else _0x2ac87e['push'](_0x2ac87e['shift']());}catch(_0x41a2a4){_0x2ac87e['push'](_0x2ac87e['shift']());}}}(a52_0x10d6,0x5649f));import{readScopedConfig}from'../../commands/config/shared.js';function a52_0x42cd(_0x4de546,_0x574a04){_0x4de546=_0x4de546-0x72;const _0x10d6ca=a52_0x10d6();let _0x42cda3=_0x10d6ca[_0x4de546];return _0x42cda3;}import{readConfig}from'../../utils/config.js';async function execute(_0x49bd4b){const _0x3ee57d=a52_0x42cd,_0x161255=_0x49bd4b[_0x3ee57d(0x77)](_0x3ee57d(0x76))?readScopedConfig(_0x3ee57d(0x76)):readConfig();return{'ok':!![],'data':_0x161255};}export const configListDefinition={'service':a52_0x56e26f(0x7f),'command':a52_0x56e26f(0x73),'description':a52_0x56e26f(0x78),'risk':a52_0x56e26f(0x7a),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a52_0x56e26f(0x76),'type':'boolean','description':a52_0x56e26f(0x7e),'default':![]}],'execute':execute};