@lovrabet/rabetbase-cli 2.1.11 → 2.1.12-beta.0

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 (198) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/fetch-model-list.js +1 -1
  3. package/lib/api/generate-api-file.js +1 -1
  4. package/lib/auth/auth-server-ui.js +1 -1
  5. package/lib/auth/auth-server.js +1 -1
  6. package/lib/auth/constant.js +1 -1
  7. package/lib/auth/get-cookie.js +1 -1
  8. package/lib/auth/get-session-user.js +1 -1
  9. package/lib/auth/is-session-valid.js +1 -1
  10. package/lib/auth/login-success-html.js +1 -1
  11. package/lib/auth/logout.js +1 -1
  12. package/lib/cli-flags.js +1 -1
  13. package/lib/cli.js +1 -1
  14. package/lib/commands/api/generate.js +1 -1
  15. package/lib/commands/api/index.js +1 -1
  16. package/lib/commands/api/list.js +1 -1
  17. package/lib/commands/api/pull.js +1 -1
  18. package/lib/commands/api/shared.js +1 -1
  19. package/lib/commands/app/add.js +1 -1
  20. package/lib/commands/app/discover.js +1 -1
  21. package/lib/commands/app/index.js +1 -1
  22. package/lib/commands/app/list.js +1 -1
  23. package/lib/commands/app/remove.js +1 -1
  24. package/lib/commands/app/shared.js +1 -1
  25. package/lib/commands/app/use.js +1 -1
  26. package/lib/commands/auth/index.js +1 -1
  27. package/lib/commands/bff/create.js +1 -1
  28. package/lib/commands/bff/delete.js +1 -1
  29. package/lib/commands/bff/detail.js +1 -1
  30. package/lib/commands/bff/index.js +1 -1
  31. package/lib/commands/bff/list.js +1 -1
  32. package/lib/commands/bff/pull.js +1 -1
  33. package/lib/commands/bff/push.js +1 -1
  34. package/lib/commands/bff/status.js +1 -1
  35. package/lib/commands/cli-update.js +1 -1
  36. package/lib/commands/codegen/index.js +1 -1
  37. package/lib/commands/codegen/sdk.js +1 -1
  38. package/lib/commands/codegen/sql.js +1 -1
  39. package/lib/commands/common/app-selector.js +1 -1
  40. package/lib/commands/common/flags.js +1 -1
  41. package/lib/commands/common/validate.js +1 -1
  42. package/lib/commands/config/get.js +1 -1
  43. package/lib/commands/config/index.js +1 -1
  44. package/lib/commands/config/list.js +1 -1
  45. package/lib/commands/config/set.js +1 -1
  46. package/lib/commands/config/shared.js +1 -1
  47. package/lib/commands/data/filter.js +1 -1
  48. package/lib/commands/data/getOne.js +1 -1
  49. package/lib/commands/data/index.js +1 -1
  50. package/lib/commands/data/shared.js +1 -1
  51. package/lib/commands/dataset/capability.js +1 -1
  52. package/lib/commands/dataset/delete.js +1 -1
  53. package/lib/commands/dataset/detail.js +1 -1
  54. package/lib/commands/dataset/field-update.js +1 -1
  55. package/lib/commands/dataset/index.js +1 -1
  56. package/lib/commands/dataset/link-create.js +1 -1
  57. package/lib/commands/dataset/link-delete.js +1 -1
  58. package/lib/commands/dataset/link-shared.js +1 -1
  59. package/lib/commands/dataset/link-update.js +1 -1
  60. package/lib/commands/dataset/links.js +1 -1
  61. package/lib/commands/dataset/list.js +1 -1
  62. package/lib/commands/dataset/operations.js +1 -1
  63. package/lib/commands/db/analyze-cancel.js +1 -1
  64. package/lib/commands/db/analyze-start.js +1 -1
  65. package/lib/commands/db/analyze-status.js +1 -1
  66. package/lib/commands/db/create.js +1 -1
  67. package/lib/commands/db/delete.js +1 -1
  68. package/lib/commands/db/detail.js +1 -1
  69. package/lib/commands/db/diff.js +1 -1
  70. package/lib/commands/db/index.js +1 -1
  71. package/lib/commands/db/list.js +1 -1
  72. package/lib/commands/db/shared.js +1 -1
  73. package/lib/commands/db/tables.js +1 -1
  74. package/lib/commands/db/test.js +1 -1
  75. package/lib/commands/db/update.js +1 -1
  76. package/lib/commands/doctor.js +1 -1
  77. package/lib/commands/init/index.js +1 -1
  78. package/lib/commands/issue/index.js +1 -1
  79. package/lib/commands/issue/report.js +1 -1
  80. package/lib/commands/logs/index.js +1 -1
  81. package/lib/commands/menu/index.js +1 -1
  82. package/lib/commands/menu/shared/compare-table.js +1 -1
  83. package/lib/commands/menu/shared/index.js +1 -1
  84. package/lib/commands/menu/shared/inquirer.js +1 -1
  85. package/lib/commands/menu/shared/local-pages.js +1 -1
  86. package/lib/commands/menu/shared/logic.js +1 -1
  87. package/lib/commands/menu/shared/service.js +1 -1
  88. package/lib/commands/menu/shared/sync-core.js +1 -1
  89. package/lib/commands/menu/shared/update-core.js +1 -1
  90. package/lib/commands/menu/shared/valid-url.js +1 -1
  91. package/lib/commands/menu/sync.js +1 -1
  92. package/lib/commands/menu/update.js +1 -1
  93. package/lib/commands/page/generate-start.js +1 -1
  94. package/lib/commands/page/generate-status.js +1 -1
  95. package/lib/commands/page/index.js +1 -1
  96. package/lib/commands/page/pull.js +1 -1
  97. package/lib/commands/page/push.js +1 -1
  98. package/lib/commands/page/shared.js +1 -1
  99. package/lib/commands/page/standard-page-status.js +1 -1
  100. package/lib/commands/page/sync.js +1 -1
  101. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  102. package/lib/commands/project/create/format-elapsed.js +1 -1
  103. package/lib/commands/project/create/main.js +1 -1
  104. package/lib/commands/project/create/non-interactive.js +1 -1
  105. package/lib/commands/project/create/project-template-path.js +1 -1
  106. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  107. package/lib/commands/project/create/use-format-code.js +1 -1
  108. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  109. package/lib/commands/project/index.js +1 -1
  110. package/lib/commands/project/init.js +1 -1
  111. package/lib/commands/project/upgrade.js +1 -1
  112. package/lib/commands/registry.js +1 -1
  113. package/lib/commands/run/index.js +1 -1
  114. package/lib/commands/schema.js +1 -1
  115. package/lib/commands/skill/index.js +1 -1
  116. package/lib/commands/sql/create.js +1 -1
  117. package/lib/commands/sql/delete.js +1 -1
  118. package/lib/commands/sql/detail.js +1 -1
  119. package/lib/commands/sql/exec.js +1 -1
  120. package/lib/commands/sql/index.js +1 -1
  121. package/lib/commands/sql/list.js +1 -1
  122. package/lib/commands/sql/pull.js +1 -1
  123. package/lib/commands/sql/push.js +1 -1
  124. package/lib/commands/sql/save.js +1 -1
  125. package/lib/commands/sql/shared.js +1 -1
  126. package/lib/commands/sql/status.js +1 -1
  127. package/lib/commands/sql/validate.js +1 -1
  128. package/lib/config/schema.js +1 -1
  129. package/lib/constant/cdn.js +1 -1
  130. package/lib/constant/cli.js +1 -1
  131. package/lib/constant/defaults.js +1 -1
  132. package/lib/constant/domain.js +1 -1
  133. package/lib/constant/env.js +1 -1
  134. package/lib/constant/output.js +1 -1
  135. package/lib/constant/paths.js +1 -1
  136. package/lib/constant/risk.js +1 -1
  137. package/lib/context.js +1 -1
  138. package/lib/core/alias-resolver.js +1 -1
  139. package/lib/core/api-client.js +1 -1
  140. package/lib/core/bff/config.js +1 -1
  141. package/lib/core/bff/file-system.js +1 -1
  142. package/lib/core/bff/hash.js +1 -1
  143. package/lib/core/bff/lock.js +1 -1
  144. package/lib/core/bff/utils.js +1 -1
  145. package/lib/core/db-resolver.js +1 -1
  146. package/lib/core/page/file-system.js +1 -1
  147. package/lib/core/page/hash.js +1 -1
  148. package/lib/core/page/lock.js +1 -1
  149. package/lib/core/sql-sync/config.js +1 -1
  150. package/lib/core/sql-sync/file-system.js +1 -1
  151. package/lib/core/sql-sync/hash.js +1 -1
  152. package/lib/core/sql-sync/lock.js +1 -1
  153. package/lib/core/sql-sync/utils.js +1 -1
  154. package/lib/core/sql-validator.js +1 -1
  155. package/lib/errors.js +1 -1
  156. package/lib/framework/build-all-flags.js +1 -1
  157. package/lib/framework/flags.js +1 -1
  158. package/lib/framework/help.js +1 -1
  159. package/lib/framework/index.js +1 -1
  160. package/lib/framework/output.js +1 -1
  161. package/lib/framework/response.js +1 -1
  162. package/lib/framework/runner-alias.js +1 -1
  163. package/lib/framework/runner.js +1 -1
  164. package/lib/framework/schema-export.js +1 -1
  165. package/lib/framework/types.js +1 -1
  166. package/lib/generated/build-info.js +1 -1
  167. package/lib/help.js +1 -1
  168. package/lib/skills/main.js +1 -1
  169. package/lib/skills/npx-skills-add.js +1 -1
  170. package/lib/telemetry/cli-command-trace.js +1 -1
  171. package/lib/telemetry/cli-help-trace.js +1 -1
  172. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  173. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  174. package/lib/telemetry/send-cli-trace-log.js +1 -1
  175. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  176. package/lib/utils/ai_config.js +1 -1
  177. package/lib/utils/apply-jq-filter.js +1 -1
  178. package/lib/utils/cdn-config.js +1 -1
  179. package/lib/utils/check-sdk-version.js +1 -1
  180. package/lib/utils/cli-version-check.js +1 -1
  181. package/lib/utils/cli-version-policy.js +1 -1
  182. package/lib/utils/config.js +1 -1
  183. package/lib/utils/copy-directory.js +1 -1
  184. package/lib/utils/entity-with-id.js +1 -1
  185. package/lib/utils/file-utils.js +1 -1
  186. package/lib/utils/guides-cdn.js +1 -1
  187. package/lib/utils/http-client.js +1 -1
  188. package/lib/utils/is-non-interactive.js +1 -1
  189. package/lib/utils/logger.js +1 -1
  190. package/lib/utils/params.js +1 -1
  191. package/lib/utils/platform.js +1 -1
  192. package/lib/utils/rules-cdn.js +1 -1
  193. package/lib/utils/sleep.js +1 -1
  194. package/lib/utils/template-replacer.js +1 -1
  195. package/lib/utils/version.js +1 -1
  196. package/lib/utils/with-active-cookie.js +1 -1
  197. package/lib/utils/write-cli-side-channel.js +1 -1
  198. package/package.json +2 -2
@@ -1 +1 @@
1
- const a32_0x38bcb4=a32_0x12e4;(function(_0x4ff25a,_0x47cfb6){const _0x213113=a32_0x12e4,_0x2e9530=_0x4ff25a();while(!![]){try{const _0x203d8b=parseInt(_0x213113(0x1e7))/0x1*(-parseInt(_0x213113(0x1e3))/0x2)+-parseInt(_0x213113(0x1fa))/0x3*(-parseInt(_0x213113(0x1f8))/0x4)+parseInt(_0x213113(0x1f5))/0x5*(parseInt(_0x213113(0x1d9))/0x6)+-parseInt(_0x213113(0x1ef))/0x7*(-parseInt(_0x213113(0x205))/0x8)+-parseInt(_0x213113(0x20f))/0x9+-parseInt(_0x213113(0x1ed))/0xa*(-parseInt(_0x213113(0x1fd))/0xb)+parseInt(_0x213113(0x214))/0xc*(-parseInt(_0x213113(0x209))/0xd);if(_0x203d8b===_0x47cfb6)break;else _0x2e9530['push'](_0x2e9530['shift']());}catch(_0x280f99){_0x2e9530['push'](_0x2e9530['shift']());}}}(a32_0x2d2f,0xac1f3));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';import{assertDatasetSupportsLocalDevelopment}from'../../commands/dataset/capability.js';const CACHE_CLEAR_ATTEMPTS=0x2,CACHE_CLEAR_INTERVAL_MS=0x12c;export const bffPush={'service':a32_0x38bcb4(0x1df),'command':a32_0x38bcb4(0x201),'description':a32_0x38bcb4(0x1c4),'risk':a32_0x38bcb4(0x20e),'flags':[{'name':a32_0x38bcb4(0x208),'type':a32_0x38bcb4(0x1d2),'description':'Push\x20only\x20this\x20script\x20type','enum':[a32_0x38bcb4(0x1de),a32_0x38bcb4(0x20a),a32_0x38bcb4(0x202)]},{'name':a32_0x38bcb4(0x206),'type':a32_0x38bcb4(0x1d2),'description':a32_0x38bcb4(0x200)},{'name':'force','type':a32_0x38bcb4(0x1d7),'description':a32_0x38bcb4(0x1ee)}],async 'dryRun'(_0x4032a1){const _0x34c5b4=a32_0x38bcb4,_0x49e65d=loadBffProjectConfig(_0x4032a1['appCode']),_0x11570e=await readBffLockFile(_0x49e65d[_0x34c5b4(0x1ce)]),{appLock:_0x1b0977}=ensureLockScope(_0x11570e??createEmptyBffLock(),_0x4032a1[_0x34c5b4(0x1eb)],_0x49e65d[_0x34c5b4(0x1f3)],_0x34c5b4(0x201)),_0x2febb5=await getTargetFunctions(_0x49e65d,_0x4032a1),_0x3443dd=_0x4032a1['bool']('force'),_0x2f6215=[];for(const _0x6e6ce4 of _0x2febb5){const _0x5a6de8=await computeFileHash(_0x6e6ce4[_0x34c5b4(0x1cd)]),_0x347ee4=_0x1b0977[_0x34c5b4(0x1fb)][_0x6e6ce4[_0x34c5b4(0x1d8)]],_0x4864c0=!!_0x347ee4&&_0x347ee4[_0x34c5b4(0x1e8)]===_0x5a6de8;_0x2f6215[_0x34c5b4(0x201)]({'lockKey':_0x6e6ce4['lockKey'],'filePath':_0x6e6ce4[_0x34c5b4(0x1cd)],'remoteId':_0x347ee4?.[_0x34c5b4(0x1e1)]??null,'mode':_0x347ee4?.[_0x34c5b4(0x1e1)]?_0x34c5b4(0x1cf):_0x34c5b4(0x1d4),'status':!_0x3443dd&&_0x4864c0?_0x34c5b4(0x1f9):_0x34c5b4(0x1c8)});}return{'method':'POST','url':_0x34c5b4(0x20b),'body':{'appCode':_0x4032a1['appCode'],'force':_0x3443dd,'files':_0x2f6215,'cacheClearAtRuntime':_0x2f6215[_0x34c5b4(0x1d0)](_0x462219=>_0x462219[_0x34c5b4(0x1e4)]===_0x34c5b4(0x1c8)),'cacheClearAtRuntimeTimes':_0x2f6215[_0x34c5b4(0x1d0)](_0x151046=>_0x151046[_0x34c5b4(0x1e4)]==='would_push')?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x34c5b4(0x207)+_0x2f6215[_0x34c5b4(0x1fc)]+_0x34c5b4(0x1f2)};},async 'execute'(_0x552013){const _0x27eae0=a32_0x38bcb4,_0x2e06e4=loadBffProjectConfig(_0x552013[_0x27eae0(0x1eb)]),_0x5a0c57=await readBffLockFile(_0x2e06e4['lockFilePath']),{lockData:_0x17285d,appLock:_0x4bc73e}=ensureLockScope(_0x5a0c57??createEmptyBffLock(),_0x552013[_0x27eae0(0x1eb)],_0x2e06e4[_0x27eae0(0x1f3)],_0x27eae0(0x201)),_0x1405c3=await getTargetFunctions(_0x2e06e4,_0x552013);if(_0x1405c3['length']===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'failed':[]},'message':'No\x20local\x20BFF\x20functions\x20found.'};const _0x2d4ce0=_0x552013['bool'](_0x27eae0(0x1d5)),_0x2c437c=JSON[_0x27eae0(0x1e6)](JSON[_0x27eae0(0x210)](_0x17285d)),_0x4ad130=_0x2c437c[_0x27eae0(0x1f6)][_0x552013[_0x27eae0(0x1eb)]];if(!_0x4ad130)throw new Error('Lock\x20scope\x20for\x20app\x20\x22'+_0x552013[_0x27eae0(0x1eb)]+_0x27eae0(0x1dc));const _0x4630f1=await buildHookMaps(_0x552013[_0x27eae0(0x1eb)],_0x552013['apiDir'],_0x1405c3,_0x4ad130),_0x2015ac=[],_0x5c6939=[],_0x3b5e82=[];for(const _0x48a0b8 of _0x1405c3){const _0x59bdef=await computeFileHash(_0x48a0b8[_0x27eae0(0x1cd)]),_0xf48128=_0x4ad130[_0x27eae0(0x1fb)][_0x48a0b8[_0x27eae0(0x1d8)]];if(!_0x2d4ce0&&_0xf48128&&_0xf48128[_0x27eae0(0x1e8)]===_0x59bdef){_0x5c6939[_0x27eae0(0x201)]({'lockKey':_0x48a0b8[_0x27eae0(0x1d8)],'reason':_0x27eae0(0x1f9)});continue;}try{await uploadSingleFunction(_0x552013['appCode'],_0x48a0b8,_0x4ad130,_0x4630f1);const _0xd05ef1=_0x4ad130['functions'][_0x48a0b8[_0x27eae0(0x1d8)]];_0x2015ac[_0x27eae0(0x201)]({'lockKey':_0x48a0b8[_0x27eae0(0x1d8)],'remoteId':_0xd05ef1?.['remoteId']??0x0});}catch(_0x1035e6){_0x3b5e82[_0x27eae0(0x201)]({'lockKey':_0x48a0b8[_0x27eae0(0x1d8)],'error':_0x1035e6 instanceof Error?_0x1035e6['message']:String(_0x1035e6)});}}_0x4ad130[_0x27eae0(0x1dd)]=new Date()['toISOString'](),await writeBffLockFile(_0x2e06e4[_0x27eae0(0x1ce)],_0x2c437c),await waitForUploadedLockEntries(_0x2e06e4[_0x27eae0(0x1ce)],_0x552013[_0x27eae0(0x1eb)],_0x2015ac[_0x27eae0(0x213)](_0x10fffe=>_0x10fffe[_0x27eae0(0x1d8)]));let _0x443045={'attempted':![],'cleared':![]};if(_0x2015ac[_0x27eae0(0x1fc)]>0x0)try{let _0x4f8b3b='';for(let _0x21fa45=0x0;_0x21fa45<CACHE_CLEAR_ATTEMPTS;_0x21fa45+=0x1){_0x4f8b3b=await clearBffScriptCache(),_0x21fa45<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x443045={'attempted':!![],'cleared':!![],'message':_0x4f8b3b||_0x27eae0(0x1f7)};}catch(_0x57aef4){_0x443045={'attempted':!![],'cleared':![],'error':_0x57aef4 instanceof Error?_0x57aef4['message']:String(_0x57aef4)};}const _0xf1b2da=_0x3b5e82[_0x27eae0(0x1fc)]===0x0&&(_0x443045['attempted']?_0x443045[_0x27eae0(0x1f1)]:!![]),_0x17bed6=_0x443045[_0x27eae0(0x212)]?_0x443045['cleared']?_0x27eae0(0x204):_0x27eae0(0x1da):'runtime\x20cache\x20not\x20needed';return{'ok':_0xf1b2da,'data':{'uploaded':_0x2015ac,'skipped':_0x5c6939,'failed':_0x3b5e82,'cacheClear':_0x443045},'message':_0x27eae0(0x1e0)+_0x2015ac[_0x27eae0(0x1fc)]+_0x27eae0(0x1d6)+_0x5c6939['length']+'\x20skipped,\x20'+_0x3b5e82[_0x27eae0(0x1fc)]+'\x20failed,\x20'+_0x17bed6};}};async function getTargetFunctions(_0x1ca18f,_0x4320aa){const _0x212a68=a32_0x38bcb4,_0x229ca1=_0x4320aa[_0x212a68(0x1fe)](_0x212a68(0x208)),_0x16978c=_0x4320aa[_0x212a68(0x1fe)](_0x212a68(0x206)),_0x14d47e=normalizeBffType(_0x229ca1)??undefined;if(_0x16978c&&!_0x14d47e)throw CliErrors[_0x212a68(0x203)](_0x212a68(0x1c7));const _0x57682f=await scanLocalBffFunctions(_0x1ca18f,_0x14d47e);if(_0x16978c){const _0x9cc74e=_0x57682f[_0x212a68(0x1c5)](_0xfd770d=>_0xfd770d[_0x212a68(0x206)]===_0x16978c);if(_0x9cc74e[_0x212a68(0x1fc)]===0x0)throw CliErrors[_0x212a68(0x203)](_0x212a68(0x1d3)+_0x14d47e+'/'+_0x16978c);return _0x9cc74e;}return _0x57682f;}async function buildHookMaps(_0x9b1ddc,_0x2e2fb7,_0x39106c,_0x4aa071){const _0x4221ef=a32_0x38bcb4,_0x1c51c8=_0x39106c[_0x4221ef(0x1d0)](_0x3d71c7=>_0x3d71c7['type']===_0x4221ef(0x202));if(!_0x1c51c8)return{'aliasToDatasetCode':new Map(),'datasetCodeToDataset':new Map()};const _0x1e06ca=loadAliasMap(_0x2e2fb7,undefined,resolveApiFilePath(_0x2e2fb7,_0x9b1ddc)),_0x331937=new Map(_0x1e06ca[_0x4221ef(0x213)](_0x11070d=>[_0x11070d['alias'],_0x11070d[_0x4221ef(0x1cc)]]));for(const _0x430296 of Object['values'](_0x4aa071[_0x4221ef(0x1fb)])){_0x430296['alias']&&_0x430296['datasetCode']&&!_0x331937[_0x4221ef(0x1c6)](_0x430296[_0x4221ef(0x1db)])&&_0x331937[_0x4221ef(0x1ea)](_0x430296[_0x4221ef(0x1db)],_0x430296[_0x4221ef(0x1cc)]);}const _0x34106f=await listDatasets(_0x9b1ddc),_0x2c483a=new Map(_0x34106f[_0x4221ef(0x213)](_0x44c2e8=>[_0x44c2e8['code'],_0x44c2e8]));return{'aliasToDatasetCode':_0x331937,'datasetCodeToDataset':_0x2c483a};}async function uploadSingleFunction(_0x41a183,_0x223574,_0x1bf5e8,_0x20470e){const _0x3a0e27=a32_0x38bcb4,_0x3c02eb=await readFile(_0x223574[_0x3a0e27(0x1cd)],_0x3a0e27(0x1ca)),_0x5b0adb=await computeFileHash(_0x223574['filePath']),_0x4a9c95=_0x1bf5e8['functions'][_0x223574[_0x3a0e27(0x1d8)]];if(_0x4a9c95?.[_0x3a0e27(0x1e1)]&&_0x4a9c95[_0x3a0e27(0x1d1)]==null)throw CliErrors[_0x3a0e27(0x203)](_0x223574[_0x3a0e27(0x1d8)]+':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.');let _0x4e16ca=extractScriptDescription(_0x3c02eb);if(!_0x4e16ca&&_0x4a9c95?.['remoteId']){const _0x3903cf=await getBffScriptInfo(_0x4a9c95[_0x3a0e27(0x1e1)]);_0x4e16ca=_0x3903cf[_0x3a0e27(0x1ff)]||undefined;}const _0x344284={'appCode':_0x41a183,'functionName':_0x223574['name'],'scriptType':_0x223574['type'],'scriptContent':_0x3c02eb};if(_0x4a9c95?.['remoteId'])_0x344284['id']=_0x4a9c95[_0x3a0e27(0x1e1)];if(_0x4a9c95?.[_0x3a0e27(0x1d1)]!=null)_0x344284['version']=_0x4a9c95[_0x3a0e27(0x1d1)];if(_0x4e16ca)_0x344284[_0x3a0e27(0x1ff)]=_0x4e16ca;if(_0x223574[_0x3a0e27(0x208)]===_0x3a0e27(0x202)){const _0x1b4c25=_0x223574['alias'];if(!_0x1b4c25||!_0x223574[_0x3a0e27(0x1e5)]||!_0x223574['functionNode'])throw CliErrors[_0x3a0e27(0x203)]('Incomplete\x20HOOK\x20path:\x20'+_0x223574[_0x3a0e27(0x1d8)]);const _0x958ad7=_0x20470e[_0x3a0e27(0x1c9)][_0x3a0e27(0x20c)](_0x1b4c25)??_0x4a9c95?.[_0x3a0e27(0x1cc)]??_0x1b4c25,_0x3166d7=_0x20470e['datasetCodeToDataset'][_0x3a0e27(0x20c)](_0x958ad7);if(!_0x3166d7)throw CliErrors[_0x3a0e27(0x203)](_0x3a0e27(0x1f0)+_0x1b4c25+'\x22.\x20'+(_0x3a0e27(0x1ec)+CLI_BIN_NAME+_0x3a0e27(0x211)));assertDatasetSupportsLocalDevelopment(_0x3166d7,'BFF\x20HOOK\x20'+_0x223574[_0x3a0e27(0x1d8)]),_0x344284['datasetId']=_0x3166d7['id'],_0x344284['operationType']=_0x223574[_0x3a0e27(0x1e5)],_0x344284[_0x3a0e27(0x1e9)]=_0x223574[_0x3a0e27(0x1e9)];}const _0x304035=await saveBffScript(_0x344284),_0x207672=_0x304035['id'],_0xab20f1=_0x304035[_0x3a0e27(0x1cb)]??await getBffScriptInfo(_0x207672),_0x591e4f={'hash':_0x5b0adb,'remoteId':_0x207672,'version':_0xab20f1[_0x3a0e27(0x1d1)]};if(_0x223574[_0x3a0e27(0x208)]===_0x3a0e27(0x202)){const _0x129561=_0x223574[_0x3a0e27(0x1db)],_0x5b0b39=_0x20470e['aliasToDatasetCode']['get'](_0x129561)??_0x4a9c95?.[_0x3a0e27(0x1cc)]??_0x129561;_0x20470e[_0x3a0e27(0x1c9)][_0x3a0e27(0x1c6)](_0x129561)?_0x591e4f[_0x3a0e27(0x1db)]=_0x129561:_0x591e4f['alias']=_0x4a9c95?.[_0x3a0e27(0x1db)],_0x591e4f[_0x3a0e27(0x1cc)]=_0x5b0b39,_0x591e4f['operationType']=_0x223574[_0x3a0e27(0x1e5)],_0x591e4f[_0x3a0e27(0x1e9)]=_0x223574[_0x3a0e27(0x1e9)];}_0x1bf5e8['functions'][_0x223574[_0x3a0e27(0x1d8)]]=_0x591e4f;}function a32_0x2d2f(){const _0x543182=['description','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','push','HOOK','validation','runtime\x20cache\x20cleared','104uxpxJN','name','Would\x20inspect\x20','type','6058MXUnBk','ENDPOINT','/api/management/library/scripts/save','get','every','high-risk-write','1879425eAKoOt','stringify','\x20api\x20pull`\x20to\x20refresh\x20api.ts,\x20or\x20verify\x20the\x20dataset\x20exists.','attempted','map','29208wutzqh','Push\x20local\x20BFF\x20scripts\x20to\x20remote','filter','has','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','would_push','aliasToDatasetCode','utf8','script','datasetCode','filePath','lockFilePath','update','some','version','string','Local\x20function\x20not\x20found:\x20','create','force','\x20uploaded,\x20','boolean','lockKey','102NNeWTy','runtime\x20cache\x20clear\x20failed','alias','\x22\x20not\x20found\x20after\x20ensureLockScope.','lastSync','COMMON','bff','Push\x20complete:\x20','remoteId','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','8RhdZlK','status','operationType','parse','157199qbuHty','hash','functionNode','set','appCode','Run\x20`','20rLkgXz','Force\x20push\x20ignoring\x20hash\x20protection','375557nyQDLu','Cannot\x20resolve\x20dataset\x20for\x20\x22','cleared','\x20local\x20BFF\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','scriptsRoot','join','4000ofpHko','apps','Runtime\x20script\x20cache\x20cleared.','4xprICT','unchanged','1972365lcwfQt','functions','length','7195969kKizPq','str'];a32_0x2d2f=function(){return _0x543182;};return a32_0x2d2f();}function a32_0x12e4(_0x388935,_0x5bf860){_0x388935=_0x388935-0x1c4;const _0x2d2fa0=a32_0x2d2f();let _0x12e4a1=_0x2d2fa0[_0x388935];return _0x12e4a1;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x3265de,_0x1cd854,_0x20b623){const _0x43bdd7=a32_0x38bcb4;if(_0x20b623[_0x43bdd7(0x1fc)]===0x0)return;for(let _0x11c34f=0x0;_0x11c34f<LOCK_SETTLE_RETRY_COUNT;_0x11c34f+=0x1){const _0x15bc6f=await readBffLockFile(_0x3265de),_0x46a697=_0x15bc6f?.[_0x43bdd7(0x1f6)]?.[_0x1cd854]?.[_0x43bdd7(0x1fb)]??{},_0x6cc31d=_0x20b623[_0x43bdd7(0x20d)](_0x26796a=>!!_0x46a697[_0x26796a]?.[_0x43bdd7(0x1e1)]);if(_0x6cc31d)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x43bdd7(0x1e2)+_0x20b623[_0x43bdd7(0x1f4)](',\x20')+'.');}
1
+ const a32_0x1bd07c=a32_0x3739;function a32_0x11c1(){const _0x4df4be=['datasetId','bool','27swNibv','functions','would_push','HOOK','attempted','length','101600qxqZNu','Cannot\x20resolve\x20dataset\x20for\x20\x22','6985062PPuDyY','operationType','type','Run\x20`','create','parse','str','ENDPOINT','code','version','update','toISOString','372BKiXND','message','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','join','/api/management/library/scripts/save','force','Would\x20inspect\x20','get','push','filePath','BFF\x20HOOK\x20','string','lockFilePath','alias','scriptsRoot','18kPjKqq','functionNode','1298312SBVGdY','remoteId','some','script','23191420IJziio','high-risk-write','validation','3266776fYSFYf','utf8','cleared','apiDir','COMMON','unchanged','\x20local\x20BFF\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','823913AeXUBt','Push\x20local\x20BFF\x20scripts\x20to\x20remote','\x20failed,\x20','has','POST','appCode','6830JaJzbj','Push\x20only\x20this\x20script\x20type','\x22.\x20','aliasToDatasetCode','boolean','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','\x22\x20not\x20found\x20after\x20ensureLockScope.','datasetCode','Force\x20push\x20ignoring\x20hash\x20protection','status','map','\x20uploaded,\x20','name','lockKey','Runtime\x20script\x20cache\x20cleared.','\x20skipped,\x20','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','set'];a32_0x11c1=function(){return _0x4df4be;};return a32_0x11c1();}(function(_0x5c8762,_0xc4b996){const _0x1f4204=a32_0x3739,_0x32788b=_0x5c8762();while(!![]){try{const _0x5edf5c=-parseInt(_0x1f4204(0x1b0))/0x1+-parseInt(_0x1f4204(0x1b6))/0x2*(parseInt(_0x1f4204(0x191))/0x3)+-parseInt(_0x1f4204(0x1a9))/0x4+-parseInt(_0x1f4204(0x183))/0x5*(-parseInt(_0x1f4204(0x1a0))/0x6)+parseInt(_0x1f4204(0x185))/0x7+-parseInt(_0x1f4204(0x1a2))/0x8*(parseInt(_0x1f4204(0x1ca))/0x9)+parseInt(_0x1f4204(0x1a6))/0xa;if(_0x5edf5c===_0xc4b996)break;else _0x32788b['push'](_0x32788b['shift']());}catch(_0x3b3e52){_0x32788b['push'](_0x32788b['shift']());}}}(a32_0x11c1,0xc9e9a));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';function a32_0x3739(_0x5d7de2,_0x3c6295){_0x5d7de2=_0x5d7de2-0x182;const _0x11c1cc=a32_0x11c1();let _0x3739f5=_0x11c1cc[_0x5d7de2];return _0x3739f5;}import{CLI_BIN_NAME}from'../../constant/cli.js';import{assertDatasetSupportsLocalDevelopment}from'../../commands/dataset/capability.js';const CACHE_CLEAR_ATTEMPTS=0x2,CACHE_CLEAR_INTERVAL_MS=0x12c;export const bffPush={'service':'bff','command':'push','description':a32_0x1bd07c(0x1b1),'risk':a32_0x1bd07c(0x1a7),'flags':[{'name':a32_0x1bd07c(0x187),'type':a32_0x1bd07c(0x19c),'description':a32_0x1bd07c(0x1b7),'enum':[a32_0x1bd07c(0x1ad),a32_0x1bd07c(0x18c),a32_0x1bd07c(0x1cd)]},{'name':a32_0x1bd07c(0x1c2),'type':a32_0x1bd07c(0x19c),'description':a32_0x1bd07c(0x193)},{'name':a32_0x1bd07c(0x196),'type':a32_0x1bd07c(0x1ba),'description':a32_0x1bd07c(0x1be)}],async 'dryRun'(_0x44ad3a){const _0x119ad0=a32_0x1bd07c,_0x34ad2a=loadBffProjectConfig(_0x44ad3a['appCode']),_0x4b0388=await readBffLockFile(_0x34ad2a[_0x119ad0(0x19d)]),{appLock:_0x1b6f55}=ensureLockScope(_0x4b0388??createEmptyBffLock(),_0x44ad3a[_0x119ad0(0x1b5)],_0x34ad2a[_0x119ad0(0x19f)],_0x119ad0(0x199)),_0x49aeee=await getTargetFunctions(_0x34ad2a,_0x44ad3a),_0x27fdab=_0x44ad3a[_0x119ad0(0x1c9)]('force'),_0x46c4fd=[];for(const _0x52b9ba of _0x49aeee){const _0x5d5d64=await computeFileHash(_0x52b9ba[_0x119ad0(0x19a)]),_0x1658f1=_0x1b6f55['functions'][_0x52b9ba[_0x119ad0(0x1c3)]],_0x1607d5=!!_0x1658f1&&_0x1658f1['hash']===_0x5d5d64;_0x46c4fd[_0x119ad0(0x199)]({'lockKey':_0x52b9ba[_0x119ad0(0x1c3)],'filePath':_0x52b9ba[_0x119ad0(0x19a)],'remoteId':_0x1658f1?.[_0x119ad0(0x1a3)]??null,'mode':_0x1658f1?.['remoteId']?_0x119ad0(0x18f):_0x119ad0(0x189),'status':!_0x27fdab&&_0x1607d5?_0x119ad0(0x1ae):_0x119ad0(0x1cc)});}return{'method':_0x119ad0(0x1b4),'url':_0x119ad0(0x195),'body':{'appCode':_0x44ad3a[_0x119ad0(0x1b5)],'force':_0x27fdab,'files':_0x46c4fd,'cacheClearAtRuntime':_0x46c4fd['some'](_0x25781f=>_0x25781f[_0x119ad0(0x1bf)]===_0x119ad0(0x1cc)),'cacheClearAtRuntimeTimes':_0x46c4fd[_0x119ad0(0x1a4)](_0x28c69a=>_0x28c69a['status']===_0x119ad0(0x1cc))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x119ad0(0x197)+_0x46c4fd[_0x119ad0(0x182)]+_0x119ad0(0x1af)};},async 'execute'(_0x5cad47){const _0xd2a20f=a32_0x1bd07c,_0x69bd1c=loadBffProjectConfig(_0x5cad47[_0xd2a20f(0x1b5)]),_0x34a24c=await readBffLockFile(_0x69bd1c[_0xd2a20f(0x19d)]),{lockData:_0x3248c1,appLock:_0xc0206e}=ensureLockScope(_0x34a24c??createEmptyBffLock(),_0x5cad47[_0xd2a20f(0x1b5)],_0x69bd1c[_0xd2a20f(0x19f)],_0xd2a20f(0x199)),_0x31eb9b=await getTargetFunctions(_0x69bd1c,_0x5cad47);if(_0x31eb9b[_0xd2a20f(0x182)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'failed':[]},'message':'No\x20local\x20BFF\x20functions\x20found.'};const _0x9827e=_0x5cad47['bool'](_0xd2a20f(0x196)),_0x348f15=JSON[_0xd2a20f(0x18a)](JSON['stringify'](_0x3248c1)),_0x206dca=_0x348f15['apps'][_0x5cad47[_0xd2a20f(0x1b5)]];if(!_0x206dca)throw new Error('Lock\x20scope\x20for\x20app\x20\x22'+_0x5cad47[_0xd2a20f(0x1b5)]+_0xd2a20f(0x1bc));const _0x3facc1=await buildHookMaps(_0x5cad47[_0xd2a20f(0x1b5)],_0x5cad47[_0xd2a20f(0x1ac)],_0x31eb9b,_0x206dca),_0x214ffc=[],_0x30a8ba=[],_0x37268b=[];for(const _0x5160db of _0x31eb9b){const _0x1fd3c9=await computeFileHash(_0x5160db[_0xd2a20f(0x19a)]),_0x5ac3ac=_0x206dca[_0xd2a20f(0x1cb)][_0x5160db['lockKey']];if(!_0x9827e&&_0x5ac3ac&&_0x5ac3ac['hash']===_0x1fd3c9){_0x30a8ba[_0xd2a20f(0x199)]({'lockKey':_0x5160db[_0xd2a20f(0x1c3)],'reason':_0xd2a20f(0x1ae)});continue;}try{await uploadSingleFunction(_0x5cad47[_0xd2a20f(0x1b5)],_0x5160db,_0x206dca,_0x3facc1);const _0x49f44b=_0x206dca[_0xd2a20f(0x1cb)][_0x5160db[_0xd2a20f(0x1c3)]];_0x214ffc['push']({'lockKey':_0x5160db[_0xd2a20f(0x1c3)],'remoteId':_0x49f44b?.[_0xd2a20f(0x1a3)]??0x0});}catch(_0x5b9fd7){_0x37268b[_0xd2a20f(0x199)]({'lockKey':_0x5160db[_0xd2a20f(0x1c3)],'error':_0x5b9fd7 instanceof Error?_0x5b9fd7[_0xd2a20f(0x192)]:String(_0x5b9fd7)});}}_0x206dca['lastSync']=new Date()[_0xd2a20f(0x190)](),await writeBffLockFile(_0x69bd1c[_0xd2a20f(0x19d)],_0x348f15),await waitForUploadedLockEntries(_0x69bd1c[_0xd2a20f(0x19d)],_0x5cad47[_0xd2a20f(0x1b5)],_0x214ffc[_0xd2a20f(0x1c0)](_0x41fa3b=>_0x41fa3b[_0xd2a20f(0x1c3)]));let _0xe240ca={'attempted':![],'cleared':![]};if(_0x214ffc[_0xd2a20f(0x182)]>0x0)try{let _0x5d5d68='';for(let _0x2875b4=0x0;_0x2875b4<CACHE_CLEAR_ATTEMPTS;_0x2875b4+=0x1){_0x5d5d68=await clearBffScriptCache(),_0x2875b4<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0xe240ca={'attempted':!![],'cleared':!![],'message':_0x5d5d68||_0xd2a20f(0x1c4)};}catch(_0x29683b){_0xe240ca={'attempted':!![],'cleared':![],'error':_0x29683b instanceof Error?_0x29683b['message']:String(_0x29683b)};}const _0xaea9f8=_0x37268b[_0xd2a20f(0x182)]===0x0&&(_0xe240ca[_0xd2a20f(0x1ce)]?_0xe240ca['cleared']:!![]),_0x3f6701=_0xe240ca[_0xd2a20f(0x1ce)]?_0xe240ca[_0xd2a20f(0x1ab)]?'runtime\x20cache\x20cleared':'runtime\x20cache\x20clear\x20failed':'runtime\x20cache\x20not\x20needed';return{'ok':_0xaea9f8,'data':{'uploaded':_0x214ffc,'skipped':_0x30a8ba,'failed':_0x37268b,'cacheClear':_0xe240ca},'message':'Push\x20complete:\x20'+_0x214ffc['length']+_0xd2a20f(0x1c1)+_0x30a8ba[_0xd2a20f(0x182)]+_0xd2a20f(0x1c5)+_0x37268b['length']+_0xd2a20f(0x1b2)+_0x3f6701};}};async function getTargetFunctions(_0x2fd1d1,_0x5c55cd){const _0x19cadf=a32_0x1bd07c,_0x20ac62=_0x5c55cd[_0x19cadf(0x18b)](_0x19cadf(0x187)),_0x2cdf9f=_0x5c55cd[_0x19cadf(0x18b)]('name'),_0x9a52f5=normalizeBffType(_0x20ac62)??undefined;if(_0x2cdf9f&&!_0x9a52f5)throw CliErrors[_0x19cadf(0x1a8)](_0x19cadf(0x1c6));const _0x19b82e=await scanLocalBffFunctions(_0x2fd1d1,_0x9a52f5);if(_0x2cdf9f){const _0x30576b=_0x19b82e['filter'](_0x4d32af=>_0x4d32af[_0x19cadf(0x1c2)]===_0x2cdf9f);if(_0x30576b[_0x19cadf(0x182)]===0x0)throw CliErrors[_0x19cadf(0x1a8)]('Local\x20function\x20not\x20found:\x20'+_0x9a52f5+'/'+_0x2cdf9f);return _0x30576b;}return _0x19b82e;}async function buildHookMaps(_0x4709f9,_0x286227,_0x45c206,_0x597a1b){const _0x54edad=a32_0x1bd07c,_0x360813=_0x45c206[_0x54edad(0x1a4)](_0x33dacf=>_0x33dacf['type']===_0x54edad(0x1cd));if(!_0x360813)return{'aliasToDatasetCode':new Map(),'datasetCodeToDataset':new Map()};const _0x3aa924=loadAliasMap(_0x286227,undefined,resolveApiFilePath(_0x286227,_0x4709f9)),_0x200deb=new Map(_0x3aa924['map'](_0x127701=>[_0x127701['alias'],_0x127701[_0x54edad(0x1bd)]]));for(const _0x28ad8c of Object['values'](_0x597a1b[_0x54edad(0x1cb)])){_0x28ad8c['alias']&&_0x28ad8c[_0x54edad(0x1bd)]&&!_0x200deb[_0x54edad(0x1b3)](_0x28ad8c[_0x54edad(0x19e)])&&_0x200deb[_0x54edad(0x1c7)](_0x28ad8c[_0x54edad(0x19e)],_0x28ad8c['datasetCode']);}const _0x5cbd6c=await listDatasets(_0x4709f9),_0x58308b=new Map(_0x5cbd6c[_0x54edad(0x1c0)](_0x32c721=>[_0x32c721[_0x54edad(0x18d)],_0x32c721]));return{'aliasToDatasetCode':_0x200deb,'datasetCodeToDataset':_0x58308b};}async function uploadSingleFunction(_0x4b5026,_0x110184,_0x2f39a5,_0x56199d){const _0x848ddd=a32_0x1bd07c,_0x32b33b=await readFile(_0x110184['filePath'],_0x848ddd(0x1aa)),_0x1df2a3=await computeFileHash(_0x110184[_0x848ddd(0x19a)]),_0x24748a=_0x2f39a5['functions'][_0x110184[_0x848ddd(0x1c3)]];if(_0x24748a?.[_0x848ddd(0x1a3)]&&_0x24748a[_0x848ddd(0x18e)]==null)throw CliErrors['validation'](_0x110184[_0x848ddd(0x1c3)]+':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.');let _0x17ce9e=extractScriptDescription(_0x32b33b);if(!_0x17ce9e&&_0x24748a?.[_0x848ddd(0x1a3)]){const _0x48e12a=await getBffScriptInfo(_0x24748a[_0x848ddd(0x1a3)]);_0x17ce9e=_0x48e12a['description']||undefined;}const _0x3852dd={'appCode':_0x4b5026,'functionName':_0x110184[_0x848ddd(0x1c2)],'scriptType':_0x110184['type'],'scriptContent':_0x32b33b};if(_0x24748a?.[_0x848ddd(0x1a3)])_0x3852dd['id']=_0x24748a[_0x848ddd(0x1a3)];if(_0x24748a?.[_0x848ddd(0x18e)]!=null)_0x3852dd['version']=_0x24748a[_0x848ddd(0x18e)];if(_0x17ce9e)_0x3852dd['description']=_0x17ce9e;if(_0x110184[_0x848ddd(0x187)]==='HOOK'){const _0x3f8ba0=_0x110184[_0x848ddd(0x19e)];if(!_0x3f8ba0||!_0x110184[_0x848ddd(0x186)]||!_0x110184[_0x848ddd(0x1a1)])throw CliErrors[_0x848ddd(0x1a8)]('Incomplete\x20HOOK\x20path:\x20'+_0x110184[_0x848ddd(0x1c3)]);const _0x549aed=_0x56199d[_0x848ddd(0x1b9)][_0x848ddd(0x198)](_0x3f8ba0)??_0x24748a?.['datasetCode']??_0x3f8ba0,_0x4aacd6=_0x56199d['datasetCodeToDataset'][_0x848ddd(0x198)](_0x549aed);if(!_0x4aacd6)throw CliErrors[_0x848ddd(0x1a8)](_0x848ddd(0x184)+_0x3f8ba0+_0x848ddd(0x1b8)+(_0x848ddd(0x188)+CLI_BIN_NAME+'\x20api\x20pull`\x20to\x20refresh\x20api.ts,\x20or\x20verify\x20the\x20dataset\x20exists.'));assertDatasetSupportsLocalDevelopment(_0x4aacd6,_0x848ddd(0x19b)+_0x110184[_0x848ddd(0x1c3)]),_0x3852dd[_0x848ddd(0x1c8)]=_0x4aacd6['id'],_0x3852dd[_0x848ddd(0x186)]=_0x110184[_0x848ddd(0x186)],_0x3852dd[_0x848ddd(0x1a1)]=_0x110184[_0x848ddd(0x1a1)];}const _0x267cce=await saveBffScript(_0x3852dd),_0xfbb374=_0x267cce['id'],_0x1678ed=_0x267cce[_0x848ddd(0x1a5)]??await getBffScriptInfo(_0xfbb374),_0x176cf8={'hash':_0x1df2a3,'remoteId':_0xfbb374,'version':_0x1678ed[_0x848ddd(0x18e)]};if(_0x110184['type']===_0x848ddd(0x1cd)){const _0x231143=_0x110184[_0x848ddd(0x19e)],_0x58a033=_0x56199d['aliasToDatasetCode']['get'](_0x231143)??_0x24748a?.[_0x848ddd(0x1bd)]??_0x231143;_0x56199d[_0x848ddd(0x1b9)]['has'](_0x231143)?_0x176cf8[_0x848ddd(0x19e)]=_0x231143:_0x176cf8[_0x848ddd(0x19e)]=_0x24748a?.[_0x848ddd(0x19e)],_0x176cf8[_0x848ddd(0x1bd)]=_0x58a033,_0x176cf8[_0x848ddd(0x186)]=_0x110184['operationType'],_0x176cf8[_0x848ddd(0x1a1)]=_0x110184[_0x848ddd(0x1a1)];}_0x2f39a5[_0x848ddd(0x1cb)][_0x110184[_0x848ddd(0x1c3)]]=_0x176cf8;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x46e190,_0x4e7d3c,_0x3c4a08){const _0x48c72c=a32_0x1bd07c;if(_0x3c4a08[_0x48c72c(0x182)]===0x0)return;for(let _0x43b059=0x0;_0x43b059<LOCK_SETTLE_RETRY_COUNT;_0x43b059+=0x1){const _0x32a5f8=await readBffLockFile(_0x46e190),_0x57eec1=_0x32a5f8?.['apps']?.[_0x4e7d3c]?.[_0x48c72c(0x1cb)]??{},_0x62f979=_0x3c4a08['every'](_0x3ae559=>!!_0x57eec1[_0x3ae559]?.[_0x48c72c(0x1a3)]);if(_0x62f979)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x48c72c(0x1bb)+_0x3c4a08[_0x48c72c(0x194)](',\x20')+'.');}
@@ -1 +1 @@
1
- const a33_0x2b6c71=a33_0x43a9;(function(_0x1c51bf,_0x30378d){const _0x396544=a33_0x43a9,_0x407d91=_0x1c51bf();while(!![]){try{const _0x127d53=-parseInt(_0x396544(0x17a))/0x1*(parseInt(_0x396544(0x16c))/0x2)+-parseInt(_0x396544(0x178))/0x3+parseInt(_0x396544(0x176))/0x4*(-parseInt(_0x396544(0x16e))/0x5)+parseInt(_0x396544(0x168))/0x6+parseInt(_0x396544(0x177))/0x7*(parseInt(_0x396544(0x185))/0x8)+parseInt(_0x396544(0x16a))/0x9*(parseInt(_0x396544(0x17e))/0xa)+parseInt(_0x396544(0x183))/0xb*(parseInt(_0x396544(0x179))/0xc);if(_0x127d53===_0x30378d)break;else _0x407d91['push'](_0x407d91['shift']());}catch(_0x45c217){_0x407d91['push'](_0x407d91['shift']());}}}(a33_0x2467,0x3b3cf));function a33_0x2467(){const _0x374c5d=['All\x20BFF\x20scripts\x20are\x20in\x20sync.','bool','has','lockKey','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','datasetCode','status','3844aHQPQz','45311LIPJtk','1058064twwasC','12vUtlor','8141kHYpOA','appCode','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','functions','8390EBOcPt','alias','length','read','\x20modified,\x20','336138BoRydS','push','400gAIqLu','apiDir','bff','1991736YgFfxM','all','3123nKVvCJ','lockFilePath','2raFZBd','remote','1945PtwEtl'];a33_0x2467=function(){return _0x374c5d;};return a33_0x2467();}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 a33_0x43a9(_0x1e6de5,_0x493cd0){_0x1e6de5=_0x1e6de5-0x167;const _0x2467db=a33_0x2467();let _0x43a912=_0x2467db[_0x1e6de5];return _0x43a912;}import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a33_0x2b6c71(0x167),'command':a33_0x2b6c71(0x175),'description':a33_0x2b6c71(0x17c),'risk':a33_0x2b6c71(0x181),'flags':[{'name':a33_0x2b6c71(0x16d),'type':'boolean','description':a33_0x2b6c71(0x173)}],async 'execute'(_0x358329){const _0x16e999=a33_0x2b6c71,_0x27c946=loadBffProjectConfig(_0x358329['appCode']),_0x1a02a2=await readBffLockFile(_0x27c946[_0x16e999(0x16b)]),{appLock:_0x2b9b19}=ensureLockScope(_0x1a02a2??createEmptyBffLock(),_0x358329[_0x16e999(0x17b)],_0x27c946['scriptsRoot'],_0x16e999(0x175)),_0x11327f=await scanLocalBffFunctions(_0x27c946),_0x162b1e=[],_0x111413=[],_0x2d3c22=[];for(const _0x19a8c0 of _0x11327f){const _0xc3fc9e=await computeFileHash(_0x19a8c0['filePath']),_0xb54d9b=_0x2b9b19[_0x16e999(0x17d)][_0x19a8c0[_0x16e999(0x172)]];if(!_0xb54d9b)_0x162b1e[_0x16e999(0x184)](_0x19a8c0[_0x16e999(0x172)]);else _0xb54d9b['hash']!==_0xc3fc9e?_0x111413[_0x16e999(0x184)](_0x19a8c0[_0x16e999(0x172)]):_0x2d3c22['push'](_0x19a8c0[_0x16e999(0x172)]);}const _0x230f9e=[];if(_0x358329[_0x16e999(0x170)](_0x16e999(0x16d))){const _0x512ee6=loadAliasMap(_0x358329['apiDir'],undefined,resolveApiFilePath(_0x358329[_0x16e999(0x186)],_0x358329[_0x16e999(0x17b)])),_0x291714=new Map(_0x512ee6['map'](_0x12710e=>[_0x12710e[_0x16e999(0x174)],_0x12710e[_0x16e999(0x17f)]])),[_0x521e70,_0x44588d]=await Promise[_0x16e999(0x169)]([listBffScripts(_0x358329['appCode']),getBffScriptStatistics(_0x358329[_0x16e999(0x17b)])]),_0x28ca0b=createHookLocationMap(_0x44588d),_0x2d1dae=new Set(_0x11327f['map'](_0x3548e9=>_0x3548e9[_0x16e999(0x172)]));for(const _0x70d2b9 of _0x521e70){const _0x3eee30=resolveRemoteScriptTarget(_0x27c946,_0x70d2b9,_0x28ca0b,_0x2b9b19[_0x16e999(0x17d)],_0x291714);_0x3eee30&&!_0x2d1dae[_0x16e999(0x171)](_0x3eee30[_0x16e999(0x172)])&&_0x230f9e[_0x16e999(0x184)](_0x3eee30[_0x16e999(0x172)]);}}const _0x44f625=_0x162b1e[_0x16e999(0x180)]===0x0&&_0x111413[_0x16e999(0x180)]===0x0&&_0x230f9e[_0x16e999(0x180)]===0x0;return{'ok':!![],'data':{'added':_0x162b1e,'modified':_0x111413,'unchanged':_0x2d3c22,'remoteOnly':_0x230f9e},'message':_0x44f625?_0x16e999(0x16f):_0x162b1e[_0x16e999(0x180)]+'\x20added,\x20'+_0x111413[_0x16e999(0x180)]+_0x16e999(0x182)+_0x2d3c22[_0x16e999(0x180)]+'\x20unchanged'+(_0x230f9e[_0x16e999(0x180)]>0x0?',\x20'+_0x230f9e['length']+'\x20remote-only':'')};}};
1
+ const a33_0xd10583=a33_0x2561;(function(_0x3a8914,_0x4f33b4){const _0x32cdaf=a33_0x2561,_0x40251c=_0x3a8914();while(!![]){try{const _0x44cfab=-parseInt(_0x32cdaf(0x1be))/0x1*(parseInt(_0x32cdaf(0x1c7))/0x2)+parseInt(_0x32cdaf(0x1c5))/0x3+-parseInt(_0x32cdaf(0x1c9))/0x4*(-parseInt(_0x32cdaf(0x1c2))/0x5)+-parseInt(_0x32cdaf(0x1d3))/0x6+-parseInt(_0x32cdaf(0x1cc))/0x7*(-parseInt(_0x32cdaf(0x1c6))/0x8)+parseInt(_0x32cdaf(0x1c8))/0x9+-parseInt(_0x32cdaf(0x1d2))/0xa;if(_0x44cfab===_0x4f33b4)break;else _0x40251c['push'](_0x40251c['shift']());}catch(_0x48b75a){_0x40251c['push'](_0x40251c['shift']());}}}(a33_0x3e69,0x26f63));function a33_0x2561(_0x1876b4,_0x1e727d){_0x1876b4=_0x1876b4-0x1bb;const _0x3e69fc=a33_0x3e69();let _0x2561be=_0x3e69fc[_0x1876b4];return _0x2561be;}function a33_0x3e69(){const _0x247121=['\x20modified,\x20','remote','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','4228930qzmneN','827580apZVPR','All\x20BFF\x20scripts\x20are\x20in\x20sync.','all','status','apiDir','appCode','boolean','alias','5FPRpbK','length','read','lockKey','24265wQWMlI','hash','has','953799koRSCA','1096gyBJTp','119502NVNKhw','1654695ikVpSn','184EmcYyx','datasetCode','push','15029izYZsb','scriptsRoot','map'];a33_0x3e69=function(){return _0x247121;};return a33_0x3e69();}import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':'bff','command':'status','description':a33_0xd10583(0x1d1),'risk':a33_0xd10583(0x1c0),'flags':[{'name':a33_0xd10583(0x1d0),'type':a33_0xd10583(0x1bc),'description':'Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally'}],async 'execute'(_0x33aec2){const _0x556be4=a33_0xd10583,_0x48b9ad=loadBffProjectConfig(_0x33aec2[_0x556be4(0x1bb)]),_0x5dae3b=await readBffLockFile(_0x48b9ad['lockFilePath']),{appLock:_0x5c67d8}=ensureLockScope(_0x5dae3b??createEmptyBffLock(),_0x33aec2['appCode'],_0x48b9ad[_0x556be4(0x1cd)],_0x556be4(0x1d6)),_0x5b7af1=await scanLocalBffFunctions(_0x48b9ad),_0x2ec231=[],_0x1e273a=[],_0x3da0ec=[];for(const _0x456290 of _0x5b7af1){const _0x3e2ead=await computeFileHash(_0x456290['filePath']),_0x3379a9=_0x5c67d8['functions'][_0x456290[_0x556be4(0x1c1)]];if(!_0x3379a9)_0x2ec231['push'](_0x456290[_0x556be4(0x1c1)]);else _0x3379a9[_0x556be4(0x1c3)]!==_0x3e2ead?_0x1e273a[_0x556be4(0x1cb)](_0x456290['lockKey']):_0x3da0ec[_0x556be4(0x1cb)](_0x456290[_0x556be4(0x1c1)]);}const _0x3bfe18=[];if(_0x33aec2['bool'](_0x556be4(0x1d0))){const _0x419922=loadAliasMap(_0x33aec2[_0x556be4(0x1d7)],undefined,resolveApiFilePath(_0x33aec2['apiDir'],_0x33aec2['appCode'])),_0x56b553=new Map(_0x419922[_0x556be4(0x1ce)](_0x4f3810=>[_0x4f3810[_0x556be4(0x1ca)],_0x4f3810[_0x556be4(0x1bd)]])),[_0x3cadbd,_0x176d22]=await Promise[_0x556be4(0x1d5)]([listBffScripts(_0x33aec2[_0x556be4(0x1bb)]),getBffScriptStatistics(_0x33aec2[_0x556be4(0x1bb)])]),_0x72c8ae=createHookLocationMap(_0x176d22),_0x32c9ed=new Set(_0x5b7af1[_0x556be4(0x1ce)](_0x41537b=>_0x41537b['lockKey']));for(const _0x384b04 of _0x3cadbd){const _0x349817=resolveRemoteScriptTarget(_0x48b9ad,_0x384b04,_0x72c8ae,_0x5c67d8['functions'],_0x56b553);_0x349817&&!_0x32c9ed[_0x556be4(0x1c4)](_0x349817[_0x556be4(0x1c1)])&&_0x3bfe18['push'](_0x349817['lockKey']);}}const _0x29ad49=_0x2ec231[_0x556be4(0x1bf)]===0x0&&_0x1e273a[_0x556be4(0x1bf)]===0x0&&_0x3bfe18[_0x556be4(0x1bf)]===0x0;return{'ok':!![],'data':{'added':_0x2ec231,'modified':_0x1e273a,'unchanged':_0x3da0ec,'remoteOnly':_0x3bfe18},'message':_0x29ad49?_0x556be4(0x1d4):_0x2ec231[_0x556be4(0x1bf)]+'\x20added,\x20'+_0x1e273a['length']+_0x556be4(0x1cf)+_0x3da0ec[_0x556be4(0x1bf)]+'\x20unchanged'+(_0x3bfe18[_0x556be4(0x1bf)]>0x0?',\x20'+_0x3bfe18[_0x556be4(0x1bf)]+'\x20remote-only':'')};}};
@@ -1 +1 @@
1
- const a34_0x558167=a34_0x236e;(function(_0x4fcc79,_0x5ccc27){const _0x5c651b=a34_0x236e,_0x5e65f0=_0x4fcc79();while(!![]){try{const _0x4c82fb=-parseInt(_0x5c651b(0x183))/0x1+parseInt(_0x5c651b(0x186))/0x2*(parseInt(_0x5c651b(0x1a2))/0x3)+-parseInt(_0x5c651b(0x19a))/0x4*(parseInt(_0x5c651b(0x19d))/0x5)+-parseInt(_0x5c651b(0x18e))/0x6+parseInt(_0x5c651b(0x1a6))/0x7+-parseInt(_0x5c651b(0x1a8))/0x8*(parseInt(_0x5c651b(0x176))/0x9)+parseInt(_0x5c651b(0x196))/0xa;if(_0x4c82fb===_0x5ccc27)break;else _0x5e65f0['push'](_0x5e65f0['shift']());}catch(_0x3316c6){_0x5e65f0['push'](_0x5e65f0['shift']());}}}(a34_0xf1a4,0x757ee));import a34_0x5dea85 from'chalk';import a34_0x1a2bad from'ora';import a34_0x15fdd8 from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';function a34_0xf1a4(){const _0x57d1a1=['Already\x20on\x20requested\x20version\x20(v','beta','fail','Current\x20version:\x20','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','version','\x20→\x20','12877750rhunLh','https://registry.npmjs.org/-/package/','@latest','json','4TauFEh','nonInteractive','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','3339425vmpSsS','Requested\x20version:\x20','execPath','valid','source','6LfyJPx','gray','string','succeed','3560438DnkZmY','unknown','68336jVXWiz','pipe','fromEntries','\x20install\x20-g\x20','Checking\x20official\x20skill\x20package...','bun','warn','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','bool','/dist-tags','object','log','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','boolean','trim','\x20\x20Official\x20skill\x20update\x20failed:\x20','red','timeout','Update\x20available:\x20','latest','validation','Refresh\x20official\x20skill\x20package\x20after\x20updating','includes','Skipping\x20official\x20skill\x20package\x20(--no-skills).','yellow','length','\x20\x20Run\x20manually:\x20','stableVersion','run','Beta\x20version:\x20','Version\x20comparison\x20failed','error','9PSJDPo','toLowerCase','inherit','Invalid\x20version:\x20','skipped','cli','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','install','npm','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','message','\x20\x20Try\x20manually:\x20','entries','613872BJxPEL','Already\x20up\x20to\x20date\x20(v','filter','264266kAGPTQ','...','map','skills','green','no-skills','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','update','1734684gRUBVg'];a34_0xf1a4=function(){return _0x57d1a1;};return a34_0xf1a4();}import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x2c997a=a34_0x236e;return GIT_COMMIT!==_0x2c997a(0x1a7)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x4c14e9=a34_0x236e,_0x1095c6=process[_0x4c14e9(0x19f)][_0x4c14e9(0x177)]();if(_0x1095c6[_0x4c14e9(0x16c)](_0x4c14e9(0x1ad)))return _0x4c14e9(0x1ad);return _0x4c14e9(0x17e);}const updateFlags=[{'name':a34_0x558167(0x190),'type':a34_0x558167(0x1b5),'description':a34_0x558167(0x193),'default':![]},{'name':a34_0x558167(0x194),'type':a34_0x558167(0x1a4),'description':'Install\x20a\x20specific\x20CLI\x20version'},{'name':a34_0x558167(0x18b),'type':a34_0x558167(0x1b5),'description':a34_0x558167(0x17c),'default':![]},{'name':a34_0x558167(0x189),'type':'boolean','description':a34_0x558167(0x16b),'default':!![],'hidden':!![]}];function getRequestedVersion(_0x2ef10e){const _0x578099=a34_0x558167;return _0x2ef10e['str'](_0x578099(0x194))[_0x578099(0x164)]();}function a34_0x236e(_0x2c950c,_0x4bbb1b){_0x2c950c=_0x2c950c-0x164;const _0xf1a410=a34_0xf1a4();let _0x236e72=_0xf1a410[_0x2c950c];return _0x236e72;}function shouldSkipOfficialSkill(_0x3dea04){const _0x53054b=a34_0x558167;return _0x3dea04[_0x53054b(0x1b0)](_0x53054b(0x18b))||_0x3dea04['flag'](_0x53054b(0x189))===![];}async function validateUpdateFlags(_0x328d52){const _0x5e346b=a34_0x558167,_0x59cb21=_0x328d52['bool']('beta'),_0x2b2d5e=getRequestedVersion(_0x328d52);if(_0x59cb21&&_0x2b2d5e)throw CliErrors[_0x5e346b(0x16a)]('--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.');if(_0x2b2d5e&&!a34_0x15fdd8['valid'](_0x2b2d5e))throw CliErrors[_0x5e346b(0x16a)](_0x5e346b(0x179)+_0x2b2d5e,_0x5e346b(0x19c));}async function fetchNpmDistTags(){const _0xb22e5f=a34_0x558167;try{const _0x3d2483=await fetch(_0xb22e5f(0x197)+encodeURIComponent(NPM_PACKAGE_NAME)+_0xb22e5f(0x1b1),{'signal':AbortSignal[_0xb22e5f(0x167)](0x2710)});if(!_0x3d2483['ok'])return null;const _0x30503a=await _0x3d2483[_0xb22e5f(0x199)]();if(!_0x30503a||typeof _0x30503a!==_0xb22e5f(0x1b2))return null;return Object[_0xb22e5f(0x1aa)](Object[_0xb22e5f(0x182)](_0x30503a)[_0xb22e5f(0x185)](([,_0x1b9d8c])=>typeof _0x1b9d8c===_0xb22e5f(0x1a4)&&_0x1b9d8c[_0xb22e5f(0x164)]()[_0xb22e5f(0x16f)]>0x0)[_0xb22e5f(0x188)](([_0x42fe21,_0x16a6ec])=>[_0x42fe21,String(_0x16a6ec)['trim']()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x33431b){const _0xa55407=await fetchNpmDistTags();return _0xa55407?.[_0x33431b]??null;}async function fetchLatestVersion(){const _0x391062=a34_0x558167,_0x208646=await fetchNpmDistTagVersion('latest');if(_0x208646)return _0x208646;const _0x163d67=await getCdnConfig();return _0x163d67?.[_0x391062(0x17b)]?.[_0x391062(0x171)]??null;}async function resolveTargetVersion(_0x1249dd){const _0x5a85c1=a34_0x558167,_0x3b181c=getRequestedVersion(_0x1249dd);if(_0x3b181c)return{'version':_0x3b181c,'source':_0x5a85c1(0x194)};if(_0x1249dd[_0x5a85c1(0x1b0)](_0x5a85c1(0x190))){const _0x4a54fe=await fetchNpmDistTagVersion(_0x5a85c1(0x190));if(!_0x4a54fe)return null;return{'version':_0x4a54fe,'source':_0x5a85c1(0x190)};}const _0x125323=await fetchLatestVersion();if(!_0x125323)return null;return{'version':_0x125323,'source':_0x5a85c1(0x169)};}function shouldInstallTarget(_0x367831,_0x29acfe){const _0x4edb8f=a34_0x558167;if(_0x29acfe[_0x4edb8f(0x1a1)]==='version'||_0x29acfe[_0x4edb8f(0x1a1)]==='beta')return!a34_0x15fdd8['eq'](_0x367831,_0x29acfe[_0x4edb8f(0x194)]);return a34_0x15fdd8['lt'](_0x367831,_0x29acfe['version']);}function getInstallPlanLabel(_0xa073e9,_0x2268bd){const _0x24c62c=a34_0x558167;switch(_0x2268bd['source']){case'beta':return _0x24c62c(0x173)+a34_0x5dea85[_0x24c62c(0x16e)](_0xa073e9)+_0x24c62c(0x195)+a34_0x5dea85[_0x24c62c(0x18a)](_0x2268bd[_0x24c62c(0x194)]);case'version':return _0x24c62c(0x19e)+a34_0x5dea85[_0x24c62c(0x16e)](_0xa073e9)+'\x20→\x20'+a34_0x5dea85['green'](_0x2268bd['version']);case _0x24c62c(0x169):default:return _0x24c62c(0x168)+a34_0x5dea85[_0x24c62c(0x16e)](_0xa073e9)+_0x24c62c(0x195)+a34_0x5dea85[_0x24c62c(0x18a)](_0x2268bd[_0x24c62c(0x194)]);}}async function installOfficialSkill(_0x4bcbf0){const _0x464f3c=a34_0x558167;console[_0x464f3c(0x1b3)](a34_0x5dea85['gray'](_0x464f3c(0x1ac)));const _0x104a8f=runNpxSkillsAddGlobal(process['cwd'](),RABETBASE_SKILL_SOURCE,{'stdio':_0x4bcbf0?'pipe':_0x464f3c(0x178)});if(_0x104a8f[_0x464f3c(0x17a)]){console['log'](a34_0x5dea85[_0x464f3c(0x1a3)]('\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).'));return;}if(_0x104a8f['ok']){console[_0x464f3c(0x1b3)](a34_0x5dea85[_0x464f3c(0x1a3)](_0x464f3c(0x1b4)));return;}console[_0x464f3c(0x1ae)](a34_0x5dea85[_0x464f3c(0x16e)](_0x464f3c(0x165)+(_0x104a8f['error']||_0x464f3c(0x1a7)))),console[_0x464f3c(0x1b3)](a34_0x5dea85[_0x464f3c(0x1a3)](_0x464f3c(0x170)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x5b1118){const _0x4b52fc=a34_0x558167;await validateUpdateFlags(_0x5b1118);const _0xa5089c=getCurrentVersion();console[_0x4b52fc(0x1b3)](_0x4b52fc(0x192)+_0xa5089c);const _0x22dd32=a34_0x1a2bad('Checking\x20for\x20updates...')['start'](),_0x257935=await resolveTargetVersion(_0x5b1118);if(!_0x257935){const _0x52796b=_0x5b1118[_0x4b52fc(0x1b0)](_0x4b52fc(0x190))?'Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm':_0x4b52fc(0x1af);return _0x22dd32[_0x4b52fc(0x191)](_0x52796b),console[_0x4b52fc(0x1b3)](a34_0x5dea85[_0x4b52fc(0x1a3)](_0x4b52fc(0x17f)+NPM_PACKAGE_NAME+_0x4b52fc(0x198))),{'ok':![],'message':_0x52796b};}const _0x40c7e9=a34_0x15fdd8[_0x4b52fc(0x1a0)](VERSION),_0x31d053=a34_0x15fdd8[_0x4b52fc(0x1a0)](_0x257935[_0x4b52fc(0x194)]);if(!_0x40c7e9||!_0x31d053)return _0x22dd32[_0x4b52fc(0x191)](_0x4b52fc(0x174)),{'ok':![],'message':_0x4b52fc(0x174)};if(!shouldInstallTarget(_0x40c7e9,_0x257935)){const _0xf9d1f=_0x257935[_0x4b52fc(0x1a1)]===_0x4b52fc(0x194)?_0x4b52fc(0x18f)+_0x257935[_0x4b52fc(0x194)]+')':_0x4b52fc(0x184)+_0x257935[_0x4b52fc(0x194)]+')';return _0x22dd32[_0x4b52fc(0x1a5)](_0xf9d1f),shouldSkipOfficialSkill(_0x5b1118)?console[_0x4b52fc(0x1b3)](a34_0x5dea85[_0x4b52fc(0x1a3)](_0x4b52fc(0x16d))):await installOfficialSkill(_0x5b1118['nonInteractive']),{'ok':!![]};}_0x22dd32['info'](getInstallPlanLabel(_0xa5089c,_0x257935));const _0x5ee215=detectPackageManager(),_0x3474a4=_0x5ee215===_0x4b52fc(0x17e)?resolveNpmBin(_0x4b52fc(0x17e)):_0x5ee215,_0x4f3e6c=a34_0x1a2bad('Updating\x20via\x20'+_0x5ee215+_0x4b52fc(0x187))['start']();try{return await execa(_0x3474a4,[_0x4b52fc(0x17d),'-g',NPM_PACKAGE_NAME+'@'+_0x257935['version']],{'stdio':_0x4b52fc(0x1a9)}),_0x4f3e6c[_0x4b52fc(0x1a5)]('Updated\x20to\x20v'+_0x257935[_0x4b52fc(0x194)]),console[_0x4b52fc(0x1b3)](a34_0x5dea85['gray'](_0x4b52fc(0x18c))),shouldSkipOfficialSkill(_0x5b1118)?console[_0x4b52fc(0x1b3)](a34_0x5dea85[_0x4b52fc(0x1a3)](_0x4b52fc(0x16d))):await installOfficialSkill(_0x5b1118[_0x4b52fc(0x19b)]),{'ok':!![]};}catch(_0x16257b){return _0x4f3e6c[_0x4b52fc(0x191)]('Update\x20failed'),console[_0x4b52fc(0x175)](a34_0x5dea85[_0x4b52fc(0x166)]('\x20\x20'+_0x16257b[_0x4b52fc(0x180)])),console['log'](a34_0x5dea85['gray'](_0x4b52fc(0x181)+_0x5ee215+_0x4b52fc(0x1ab)+NPM_PACKAGE_NAME+'@'+_0x257935[_0x4b52fc(0x194)])),{'ok':![],'message':_0x16257b['message']};}}export const updateDefinition={'service':a34_0x558167(0x18d),'command':a34_0x558167(0x172),'description':'Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a34_0x4e7d0f=a34_0x4bd3;(function(_0x11c11d,_0x222549){const _0x185c9b=a34_0x4bd3,_0x1d84a2=_0x11c11d();while(!![]){try{const _0x3215b8=-parseInt(_0x185c9b(0x10a))/0x1+-parseInt(_0x185c9b(0x129))/0x2+-parseInt(_0x185c9b(0x144))/0x3+-parseInt(_0x185c9b(0x13f))/0x4+-parseInt(_0x185c9b(0x11d))/0x5+-parseInt(_0x185c9b(0x13e))/0x6*(parseInt(_0x185c9b(0x135))/0x7)+parseInt(_0x185c9b(0x14c))/0x8;if(_0x3215b8===_0x222549)break;else _0x1d84a2['push'](_0x1d84a2['shift']());}catch(_0x497d6f){_0x1d84a2['push'](_0x1d84a2['shift']());}}}(a34_0x5132,0xac687));import a34_0x51aacc from'chalk';import a34_0x5a031f from'ora';import a34_0x12f417 from'semver';import{execa}from'execa';function a34_0x4bd3(_0x4f0576,_0x19e667){_0x4f0576=_0x4f0576-0xfd;const _0x51320c=a34_0x5132();let _0x4bd3b0=_0x51320c[_0x4f0576];return _0x4bd3b0;}import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{getCdnConfig}from'../utils/cdn-config.js';function a34_0x5132(){const _0x1c539f=['Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','skipped','520232KqgAph','@latest','nonInteractive','Version\x20comparison\x20failed','unknown','\x20\x20Official\x20skill\x20update\x20failed:\x20','warn','map','Current\x20version:\x20','beta','gray','update','log','\x20\x20Run\x20manually:\x20','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','length','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','Refresh\x20official\x20skill\x20package\x20after\x20updating','4394655dWpjTr','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','fail','yellow','/dist-tags','stableVersion','https://registry.npmjs.org/-/package/','green','\x20\x20Try\x20manually:\x20','Checking\x20for\x20updates...','execPath','\x20→\x20','988892gsCQAJ','npm','object','inherit','\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','bool','str','Update\x20available:\x20','...','start','message','skills','231RusTax','cli','version','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','Already\x20on\x20requested\x20version\x20(v','succeed','\x20install\x20-g\x20','latest','boolean','15078sIbfUW','1283060NkwLUc','Beta\x20version:\x20','Already\x20up\x20to\x20date\x20(v','no-skills','entries','3725463VSHpxK','error','Install\x20a\x20specific\x20CLI\x20version','validation','run','valid','info','includes','33962456YNatjX','bun','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','filter','string','install','toLowerCase','trim','fromEntries','source','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','Skipping\x20official\x20skill\x20package\x20(--no-skills).','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','Update\x20failed'];a34_0x5132=function(){return _0x1c539f;};return a34_0x5132();}import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x4f4ef2=a34_0x4bd3;return GIT_COMMIT!==_0x4f4ef2(0x10e)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x3860b7=a34_0x4bd3,_0xda17d2=process[_0x3860b7(0x127)][_0x3860b7(0x100)]();if(_0xda17d2[_0x3860b7(0x14b)](_0x3860b7(0x14d)))return'bun';return _0x3860b7(0x12a);}const updateFlags=[{'name':a34_0x4e7d0f(0x113),'type':'boolean','description':a34_0x4e7d0f(0x14e),'default':![]},{'name':a34_0x4e7d0f(0x137),'type':'string','description':a34_0x4e7d0f(0x146)},{'name':a34_0x4e7d0f(0x142),'type':a34_0x4e7d0f(0x13d),'description':a34_0x4e7d0f(0x138),'default':![]},{'name':a34_0x4e7d0f(0x134),'type':a34_0x4e7d0f(0x13d),'description':a34_0x4e7d0f(0x11c),'default':!![],'hidden':!![]}];function getRequestedVersion(_0x2b6faf){const _0x1531c8=a34_0x4e7d0f;return _0x2b6faf[_0x1531c8(0x12f)](_0x1531c8(0x137))[_0x1531c8(0x101)]();}function shouldSkipOfficialSkill(_0x29600b){const _0x37a591=a34_0x4e7d0f;return _0x29600b[_0x37a591(0x12e)](_0x37a591(0x142))||_0x29600b['flag'](_0x37a591(0x134))===![];}async function validateUpdateFlags(_0x6f5de5){const _0x1a0c56=a34_0x4e7d0f,_0x2cf81a=_0x6f5de5['bool'](_0x1a0c56(0x113)),_0x194057=getRequestedVersion(_0x6f5de5);if(_0x2cf81a&&_0x194057)throw CliErrors[_0x1a0c56(0x147)](_0x1a0c56(0x11b),_0x1a0c56(0x119));if(_0x194057&&!a34_0x12f417['valid'](_0x194057))throw CliErrors['validation']('Invalid\x20version:\x20'+_0x194057,_0x1a0c56(0x104));}async function fetchNpmDistTags(){const _0x5267fd=a34_0x4e7d0f;try{const _0x402ec7=await fetch(_0x5267fd(0x123)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x5267fd(0x121),{'signal':AbortSignal['timeout'](0x2710)});if(!_0x402ec7['ok'])return null;const _0x451182=await _0x402ec7['json']();if(!_0x451182||typeof _0x451182!==_0x5267fd(0x12b))return null;return Object[_0x5267fd(0x102)](Object[_0x5267fd(0x143)](_0x451182)[_0x5267fd(0xfd)](([,_0x41c05f])=>typeof _0x41c05f===_0x5267fd(0xfe)&&_0x41c05f[_0x5267fd(0x101)]()[_0x5267fd(0x11a)]>0x0)[_0x5267fd(0x111)](([_0x297c71,_0x4b490a])=>[_0x297c71,String(_0x4b490a)['trim']()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x4ebdd5){const _0x1e35df=await fetchNpmDistTags();return _0x1e35df?.[_0x4ebdd5]??null;}async function fetchLatestVersion(){const _0xf77897=a34_0x4e7d0f,_0x4d9306=await fetchNpmDistTagVersion('latest');if(_0x4d9306)return _0x4d9306;const _0x4678a0=await getCdnConfig();return _0x4678a0?.[_0xf77897(0x136)]?.[_0xf77897(0x122)]??null;}async function resolveTargetVersion(_0x186a33){const _0x39ffa2=a34_0x4e7d0f,_0x2935f2=getRequestedVersion(_0x186a33);if(_0x2935f2)return{'version':_0x2935f2,'source':_0x39ffa2(0x137)};if(_0x186a33[_0x39ffa2(0x12e)]('beta')){const _0xdb4372=await fetchNpmDistTagVersion('beta');if(!_0xdb4372)return null;return{'version':_0xdb4372,'source':_0x39ffa2(0x113)};}const _0x445989=await fetchLatestVersion();if(!_0x445989)return null;return{'version':_0x445989,'source':'latest'};}function shouldInstallTarget(_0x2c4074,_0x4b71a4){const _0x8baaf8=a34_0x4e7d0f;if(_0x4b71a4['source']===_0x8baaf8(0x137)||_0x4b71a4[_0x8baaf8(0x103)]===_0x8baaf8(0x113))return!a34_0x12f417['eq'](_0x2c4074,_0x4b71a4[_0x8baaf8(0x137)]);return a34_0x12f417['lt'](_0x2c4074,_0x4b71a4[_0x8baaf8(0x137)]);}function getInstallPlanLabel(_0x2f916e,_0x3d04e2){const _0x24ebd1=a34_0x4e7d0f;switch(_0x3d04e2[_0x24ebd1(0x103)]){case _0x24ebd1(0x113):return _0x24ebd1(0x140)+a34_0x51aacc[_0x24ebd1(0x120)](_0x2f916e)+_0x24ebd1(0x128)+a34_0x51aacc['green'](_0x3d04e2[_0x24ebd1(0x137)]);case _0x24ebd1(0x137):return'Requested\x20version:\x20'+a34_0x51aacc['yellow'](_0x2f916e)+_0x24ebd1(0x128)+a34_0x51aacc[_0x24ebd1(0x124)](_0x3d04e2[_0x24ebd1(0x137)]);case _0x24ebd1(0x13c):default:return _0x24ebd1(0x130)+a34_0x51aacc[_0x24ebd1(0x120)](_0x2f916e)+_0x24ebd1(0x128)+a34_0x51aacc[_0x24ebd1(0x124)](_0x3d04e2[_0x24ebd1(0x137)]);}}async function installOfficialSkill(_0x3668e9){const _0x7ae593=a34_0x4e7d0f;console[_0x7ae593(0x116)](a34_0x51aacc['gray']('Checking\x20official\x20skill\x20package...'));const _0x25c6f8=runNpxSkillsAddGlobal(process['cwd'](),RABETBASE_SKILL_SOURCE,{'stdio':_0x3668e9?'pipe':_0x7ae593(0x12c)});if(_0x25c6f8[_0x7ae593(0x109)]){console[_0x7ae593(0x116)](a34_0x51aacc[_0x7ae593(0x114)](_0x7ae593(0x12d)));return;}if(_0x25c6f8['ok']){console[_0x7ae593(0x116)](a34_0x51aacc[_0x7ae593(0x114)](_0x7ae593(0x106)));return;}console[_0x7ae593(0x110)](a34_0x51aacc[_0x7ae593(0x120)](_0x7ae593(0x10f)+(_0x25c6f8[_0x7ae593(0x145)]||_0x7ae593(0x10e)))),console[_0x7ae593(0x116)](a34_0x51aacc[_0x7ae593(0x114)](_0x7ae593(0x117)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x564236){const _0x434291=a34_0x4e7d0f;await validateUpdateFlags(_0x564236);const _0x4aebd8=getCurrentVersion();console[_0x434291(0x116)](_0x434291(0x112)+_0x4aebd8);const _0x243490=a34_0x5a031f(_0x434291(0x126))[_0x434291(0x132)](),_0x2c5fd7=await resolveTargetVersion(_0x564236);if(!_0x2c5fd7){const _0xee84d4=_0x564236[_0x434291(0x12e)](_0x434291(0x113))?_0x434291(0x118):_0x434291(0x108);return _0x243490[_0x434291(0x11f)](_0xee84d4),console['log'](a34_0x51aacc['gray'](_0x434291(0x11e)+NPM_PACKAGE_NAME+_0x434291(0x10b))),{'ok':![],'message':_0xee84d4};}const _0x4cc1ca=a34_0x12f417[_0x434291(0x149)](VERSION),_0x131f02=a34_0x12f417[_0x434291(0x149)](_0x2c5fd7[_0x434291(0x137)]);if(!_0x4cc1ca||!_0x131f02)return _0x243490['fail'](_0x434291(0x10d)),{'ok':![],'message':_0x434291(0x10d)};if(!shouldInstallTarget(_0x4cc1ca,_0x2c5fd7)){const _0x5a704b=_0x2c5fd7[_0x434291(0x103)]===_0x434291(0x137)?_0x434291(0x139)+_0x2c5fd7[_0x434291(0x137)]+')':_0x434291(0x141)+_0x2c5fd7[_0x434291(0x137)]+')';return _0x243490[_0x434291(0x13a)](_0x5a704b),shouldSkipOfficialSkill(_0x564236)?console['log'](a34_0x51aacc['gray'](_0x434291(0x105))):await installOfficialSkill(_0x564236[_0x434291(0x10c)]),{'ok':!![]};}_0x243490[_0x434291(0x14a)](getInstallPlanLabel(_0x4aebd8,_0x2c5fd7));const _0x155db9=detectPackageManager(),_0x205836=_0x155db9===_0x434291(0x12a)?resolveNpmBin(_0x434291(0x12a)):_0x155db9,_0x3087bc=a34_0x5a031f('Updating\x20via\x20'+_0x155db9+_0x434291(0x131))[_0x434291(0x132)]();try{return await execa(_0x205836,[_0x434291(0xff),'-g',NPM_PACKAGE_NAME+'@'+_0x2c5fd7[_0x434291(0x137)]],{'stdio':'pipe'}),_0x3087bc['succeed']('Updated\x20to\x20v'+_0x2c5fd7[_0x434291(0x137)]),console['log'](a34_0x51aacc[_0x434291(0x114)]('\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.')),shouldSkipOfficialSkill(_0x564236)?console[_0x434291(0x116)](a34_0x51aacc[_0x434291(0x114)](_0x434291(0x105))):await installOfficialSkill(_0x564236[_0x434291(0x10c)]),{'ok':!![]};}catch(_0x110154){return _0x3087bc['fail'](_0x434291(0x107)),console[_0x434291(0x145)](a34_0x51aacc['red']('\x20\x20'+_0x110154['message'])),console[_0x434291(0x116)](a34_0x51aacc[_0x434291(0x114)](_0x434291(0x125)+_0x155db9+_0x434291(0x13b)+NPM_PACKAGE_NAME+'@'+_0x2c5fd7[_0x434291(0x137)])),{'ok':![],'message':_0x110154[_0x434291(0x133)]};}}export const updateDefinition={'service':a34_0x4e7d0f(0x115),'command':a34_0x4e7d0f(0x148),'description':'Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','risk':'write','requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- (function(_0x534eec,_0x906946){const _0x3d51ff=a35_0x5d5d,_0x1e156b=_0x534eec();while(!![]){try{const _0x2f8884=-parseInt(_0x3d51ff(0xe4))/0x1+-parseInt(_0x3d51ff(0xe2))/0x2+parseInt(_0x3d51ff(0xe6))/0x3*(parseInt(_0x3d51ff(0xdf))/0x4)+parseInt(_0x3d51ff(0xde))/0x5*(-parseInt(_0x3d51ff(0xe5))/0x6)+parseInt(_0x3d51ff(0xdd))/0x7*(-parseInt(_0x3d51ff(0xe0))/0x8)+parseInt(_0x3d51ff(0xe1))/0x9+parseInt(_0x3d51ff(0xe3))/0xa;if(_0x2f8884===_0x906946)break;else _0x1e156b['push'](_0x1e156b['shift']());}catch(_0x33193a){_0x1e156b['push'](_0x1e156b['shift']());}}}(a35_0x89eb,0x9f7ee));function a35_0x5d5d(_0x1571a6,_0x586f44){_0x1571a6=_0x1571a6-0xdd;const _0x89eba3=a35_0x89eb();let _0x5d5d0b=_0x89eba3[_0x1571a6];return _0x5d5d0b;}function a35_0x89eb(){const _0xf485e9=['420HwsQeG','1035108xEHrkU','8htuKxc','6981381YyRkqm','1939530ZtyqNZ','25491200CBZPJX','534834DfsSJq','50280FOWfvM','9YYkSQw','8675429CYbtXu'];a35_0x89eb=function(){return _0xf485e9;};return a35_0x89eb();}import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x38c703,_0x2cb44f){const _0x4c44b5=a35_0x5946,_0x334988=_0x38c703();while(!![]){try{const _0x115360=-parseInt(_0x4c44b5(0x15c))/0x1*(-parseInt(_0x4c44b5(0x159))/0x2)+-parseInt(_0x4c44b5(0x155))/0x3*(parseInt(_0x4c44b5(0x15d))/0x4)+parseInt(_0x4c44b5(0x15a))/0x5+-parseInt(_0x4c44b5(0x158))/0x6*(-parseInt(_0x4c44b5(0x152))/0x7)+parseInt(_0x4c44b5(0x153))/0x8*(parseInt(_0x4c44b5(0x15e))/0x9)+-parseInt(_0x4c44b5(0x157))/0xa*(-parseInt(_0x4c44b5(0x154))/0xb)+parseInt(_0x4c44b5(0x15b))/0xc*(-parseInt(_0x4c44b5(0x156))/0xd);if(_0x115360===_0x2cb44f)break;else _0x334988['push'](_0x334988['shift']());}catch(_0x19a402){_0x334988['push'](_0x334988['shift']());}}}(a35_0x29ba,0x5167c));import{codegenSdk}from'../../commands/codegen/sdk.js';function a35_0x5946(_0xa70b3f,_0xabccce){_0xa70b3f=_0xa70b3f-0x152;const _0x29bab0=a35_0x29ba();let _0x594626=_0x29bab0[_0xa70b3f];return _0x594626;}function a35_0x29ba(){const _0x47f979=['808615iwPAtz','492OkPhSZ','216GKRWsV','4VmiTcI','72wRJFsW','83069HonRCC','5984yjWBsu','3039421xypIBD','1695462lYoDKW','247754tSIOPb','20LbrEEX','222qaOZtT','4820gAgDAS'];a35_0x29ba=function(){return _0x47f979;};return a35_0x29ba();}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a36_0x299fd8=a36_0x345b;(function(_0x547e4b,_0x590de0){const _0x28e64b=a36_0x345b,_0x2f65d8=_0x547e4b();while(!![]){try{const _0x6277f9=parseInt(_0x28e64b(0x7b))/0x1*(parseInt(_0x28e64b(0x7f))/0x2)+parseInt(_0x28e64b(0x81))/0x3*(-parseInt(_0x28e64b(0x7c))/0x4)+-parseInt(_0x28e64b(0x80))/0x5*(-parseInt(_0x28e64b(0x73))/0x6)+-parseInt(_0x28e64b(0x79))/0x7*(parseInt(_0x28e64b(0x75))/0x8)+parseInt(_0x28e64b(0x72))/0x9*(parseInt(_0x28e64b(0x88))/0xa)+parseInt(_0x28e64b(0x83))/0xb+-parseInt(_0x28e64b(0x76))/0xc*(parseInt(_0x28e64b(0x7d))/0xd);if(_0x6277f9===_0x590de0)break;else _0x2f65d8['push'](_0x2f65d8['shift']());}catch(_0x1830a7){_0x2f65d8['push'](_0x2f65d8['shift']());}}}(a36_0x54dc,0x84581));function a36_0x345b(_0x3f9a4b,_0x25359f){_0x3f9a4b=_0x3f9a4b-0x72;const _0x54dc29=a36_0x54dc();let _0x345bf2=_0x54dc29[_0x3f9a4b];return _0x345bf2;}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':'codegen','command':'sdk','description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a36_0x299fd8(0x87),'flags':[CODE_FLAG_OPTIONAL,{'name':'alias','type':a36_0x299fd8(0x89),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':'operation','type':'string','required':!![],'description':a36_0x299fd8(0x82)},{'name':a36_0x299fd8(0x77),'type':a36_0x299fd8(0x74),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x3b6ac9){const _0x3adca3=a36_0x299fd8,{dataset:_0x13874e,operation:_0x1d5a2e}=await getOperationDetail(_0x3b6ac9[_0x3adca3(0x7a)],_0x3b6ac9[_0x3adca3(0x85)](_0x3adca3(0x7e)),_0x3b6ac9[_0x3adca3(0x85)](_0x3adca3(0x84))),_0x4f68cd=generateSdkCode(_0x13874e,_0x1d5a2e,{'includeImports':!_0x3b6ac9[_0x3adca3(0x78)]('skip-imports')});return{'ok':!![],'data':{'dataset':{'name':_0x13874e[_0x3adca3(0x86)],'code':_0x13874e[_0x3adca3(0x7e)],'tableName':_0x13874e['tableName']},'operation':_0x3b6ac9[_0x3adca3(0x85)](_0x3adca3(0x84)),'code':_0x4f68cd}};}};function a36_0x54dc(){const _0x558284=['name','read','210AgrHYX','string','169821CoUrrA','12ILUMjO','boolean','216lSNnhD','1860fLmTmZ','skip-imports','bool','88354FiaeNU','appCode','1QAVbyD','248InKLPk','80873XkvHFS','code','1037880onTHjR','2310310nNAFlg','45897VsGEms','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','10519905iirMop','operation','str'];a36_0x54dc=function(){return _0x558284;};return a36_0x54dc();}
1
+ const a36_0x572393=a36_0x1288;(function(_0x23d6d6,_0x31cf50){const _0x2951cd=a36_0x1288,_0x47126d=_0x23d6d6();while(!![]){try{const _0x129890=parseInt(_0x2951cd(0x15f))/0x1*(parseInt(_0x2951cd(0x160))/0x2)+parseInt(_0x2951cd(0x16c))/0x3+-parseInt(_0x2951cd(0x170))/0x4+parseInt(_0x2951cd(0x173))/0x5+parseInt(_0x2951cd(0x16b))/0x6*(-parseInt(_0x2951cd(0x16f))/0x7)+-parseInt(_0x2951cd(0x169))/0x8+-parseInt(_0x2951cd(0x16d))/0x9;if(_0x129890===_0x31cf50)break;else _0x47126d['push'](_0x47126d['shift']());}catch(_0x7089a9){_0x47126d['push'](_0x47126d['shift']());}}}(a36_0x2701,0x4e74d));import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a36_0x2701(){const _0x1d05e6=['codegen','Omit\x20import\x20statements\x20from\x20generated\x20code','4817312JvFqGG','alias','789024UgpGZr','1902321KDEZbs','1613772ZlkRmj','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','28jhaTrt','686984NtVHyj','string','skip-imports','2959205renndM','code','str','574643FfmiKz','2wNEqOw','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','boolean','bool','operation','read','sdk'];a36_0x2701=function(){return _0x1d05e6;};return a36_0x2701();}function a36_0x1288(_0x407f9e,_0x263d72){_0x407f9e=_0x407f9e-0x15d;const _0x270198=a36_0x2701();let _0x128888=_0x270198[_0x407f9e];return _0x128888;}export const codegenSdk={'service':a36_0x572393(0x167),'command':a36_0x572393(0x166),'description':a36_0x572393(0x16e),'risk':a36_0x572393(0x165),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x572393(0x16a),'type':a36_0x572393(0x171),'description':'Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)'},{'name':a36_0x572393(0x164),'type':a36_0x572393(0x171),'required':!![],'description':a36_0x572393(0x161)},{'name':a36_0x572393(0x172),'type':a36_0x572393(0x162),'description':a36_0x572393(0x168)}],async 'execute'(_0x5b8301){const _0x5f477f=a36_0x572393,{dataset:_0x327d91,operation:_0x570473}=await getOperationDetail(_0x5b8301['appCode'],_0x5b8301['str']('code'),_0x5b8301['str'](_0x5f477f(0x164))),_0x2f4e4d=generateSdkCode(_0x327d91,_0x570473,{'includeImports':!_0x5b8301[_0x5f477f(0x163)](_0x5f477f(0x172))});return{'ok':!![],'data':{'dataset':{'name':_0x327d91['name'],'code':_0x327d91[_0x5f477f(0x15d)],'tableName':_0x327d91['tableName']},'operation':_0x5b8301[_0x5f477f(0x15e)]('operation'),'code':_0x2f4e4d}};}};
@@ -1 +1 @@
1
- function a37_0x3324(_0x39b394,_0x3d65cf){_0x39b394=_0x39b394-0xdd;const _0x30f79d=a37_0x30f7();let _0x332477=_0x30f79d[_0x39b394];return _0x332477;}const a37_0x532a55=a37_0x3324;(function(_0x14ebe0,_0x58d53e){const _0x2c1f19=a37_0x3324,_0x4ab086=_0x14ebe0();while(!![]){try{const _0x11d9a6=-parseInt(_0x2c1f19(0xde))/0x1*(-parseInt(_0x2c1f19(0xeb))/0x2)+-parseInt(_0x2c1f19(0xf5))/0x3+parseInt(_0x2c1f19(0xe5))/0x4+-parseInt(_0x2c1f19(0xe7))/0x5*(parseInt(_0x2c1f19(0xf0))/0x6)+parseInt(_0x2c1f19(0xea))/0x7+parseInt(_0x2c1f19(0xe4))/0x8+-parseInt(_0x2c1f19(0xdf))/0x9;if(_0x11d9a6===_0x58d53e)break;else _0x4ab086['push'](_0x4ab086['shift']());}catch(_0x2ee70a){_0x4ab086['push'](_0x4ab086['shift']());}}}(a37_0x30f7,0xdc3b0));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';function a37_0x30f7(){const _0x4e9b56=['804zDAvyx','target','codegen','bool','sqlcode','2326812WaxNeV','Omit\x20import\x20statements\x20from\x20generated\x20code','28818iivScX','5740380tNEzYM','sqlName','read','sql','sqlCode','4190408mMRyPk','5411700xtPhGW','str','47455cuhGsk','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','no-imports','10561810lyokMS','14YbKmcW','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','appCode','bff','sdk'];a37_0x30f7=function(){return _0x4e9b56;};return a37_0x30f7();}export const codegenSql={'service':a37_0x532a55(0xf2),'command':a37_0x532a55(0xe2),'description':a37_0x532a55(0xe8),'risk':a37_0x532a55(0xe1),'flags':[SQLCODE_FLAG,{'name':a37_0x532a55(0xf1),'type':'string','description':a37_0x532a55(0xec),'default':a37_0x532a55(0xef),'enum':[a37_0x532a55(0xef),a37_0x532a55(0xee)]},{'name':a37_0x532a55(0xe9),'type':'boolean','description':a37_0x532a55(0xdd)}],async 'execute'(_0x3de0df){const _0x501178=a37_0x532a55,_0x5b1891=await getSqlQueryInfo(_0x3de0df[_0x501178(0xed)],_0x3de0df[_0x501178(0xe6)](_0x501178(0xf4))),_0x44e0a8=_0x3de0df[_0x501178(0xe6)](_0x501178(0xf1))||'sdk',_0x1f1bce=generateSqlCodeTemplate(_0x5b1891,{'target':_0x44e0a8,'includeImports':!_0x3de0df[_0x501178(0xf3)](_0x501178(0xe9))});return{'ok':!![],'data':{'sqlCode':_0x5b1891[_0x501178(0xe3)],'sqlName':_0x5b1891[_0x501178(0xe0)],'target':_0x44e0a8,'code':_0x1f1bce}};}};
1
+ const a37_0x55423b=a37_0x3c7a;(function(_0x3b3ec5,_0x3163eb){const _0x37dc59=a37_0x3c7a,_0x99549=_0x3b3ec5();while(!![]){try{const _0x3bca25=-parseInt(_0x37dc59(0xde))/0x1*(-parseInt(_0x37dc59(0xf0))/0x2)+-parseInt(_0x37dc59(0xe7))/0x3*(-parseInt(_0x37dc59(0xe5))/0x4)+-parseInt(_0x37dc59(0xe1))/0x5+parseInt(_0x37dc59(0xeb))/0x6*(parseInt(_0x37dc59(0xd5))/0x7)+parseInt(_0x37dc59(0xe8))/0x8+-parseInt(_0x37dc59(0xef))/0x9*(parseInt(_0x37dc59(0xd9))/0xa)+-parseInt(_0x37dc59(0xe0))/0xb;if(_0x3bca25===_0x3163eb)break;else _0x99549['push'](_0x99549['shift']());}catch(_0x3e847f){_0x99549['push'](_0x99549['shift']());}}}(a37_0x1307,0x5a959));import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a37_0x1307(){const _0x4063fc=['679539CdkVSy','codegen','sql','sqlCode','10AEtgqS','string','sqlcode','appCode','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','302074bfZFnd','str','11589182wWeYhm','2863790YDPYMR','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','boolean','no-imports','34124izaMtn','read','213FsyqEo','4339680XZzPiV','target','bool','18yIyQNH','sqlName','Omit\x20import\x20statements\x20from\x20generated\x20code','sdk','415683XqlCCE','4HwYziC'];a37_0x1307=function(){return _0x4063fc;};return a37_0x1307();}function a37_0x3c7a(_0x53627b,_0x16df0d){_0x53627b=_0x53627b-0xd5;const _0x130737=a37_0x1307();let _0x3c7a7a=_0x130737[_0x53627b];return _0x3c7a7a;}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x55423b(0xd6),'command':a37_0x55423b(0xd7),'description':a37_0x55423b(0xdd),'risk':a37_0x55423b(0xe6),'flags':[SQLCODE_FLAG,{'name':a37_0x55423b(0xe9),'type':a37_0x55423b(0xda),'description':a37_0x55423b(0xe2),'default':a37_0x55423b(0xee),'enum':['sdk','bff']},{'name':a37_0x55423b(0xe4),'type':a37_0x55423b(0xe3),'description':a37_0x55423b(0xed)}],async 'execute'(_0x43b7ba){const _0x2ffbc3=a37_0x55423b,_0x2d3db3=await getSqlQueryInfo(_0x43b7ba[_0x2ffbc3(0xdc)],_0x43b7ba['str'](_0x2ffbc3(0xdb))),_0x1d50d8=_0x43b7ba[_0x2ffbc3(0xdf)](_0x2ffbc3(0xe9))||_0x2ffbc3(0xee),_0x4bc366=generateSqlCodeTemplate(_0x2d3db3,{'target':_0x1d50d8,'includeImports':!_0x43b7ba[_0x2ffbc3(0xea)](_0x2ffbc3(0xe4))});return{'ok':!![],'data':{'sqlCode':_0x2d3db3[_0x2ffbc3(0xd8)],'sqlName':_0x2d3db3[_0x2ffbc3(0xec)],'target':_0x1d50d8,'code':_0x4bc366}};}};
@@ -1 +1 @@
1
- (function(_0x3d7ad8,_0x1f3ab2){const _0x145266=a38_0x13a8,_0x358422=_0x3d7ad8();while(!![]){try{const _0xcf5bff=-parseInt(_0x145266(0x7c))/0x1*(-parseInt(_0x145266(0x80))/0x2)+parseInt(_0x145266(0x8e))/0x3*(-parseInt(_0x145266(0x8b))/0x4)+-parseInt(_0x145266(0x68))/0x5+parseInt(_0x145266(0x7f))/0x6+parseInt(_0x145266(0x7b))/0x7+parseInt(_0x145266(0x6b))/0x8*(parseInt(_0x145266(0x70))/0x9)+-parseInt(_0x145266(0x86))/0xa;if(_0xcf5bff===_0x1f3ab2)break;else _0x358422['push'](_0x358422['shift']());}catch(_0x412ae9){_0x358422['push'](_0x358422['shift']());}}}(a38_0x59d9,0xc1e3b));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x1124d9 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x421544=a38_0x13a8,_0x540d60=await input({'message':_0x421544(0x84),'validate':_0x174cad=>{const _0x4ac3ea=_0x421544,_0x5a471e=validateAppcode(_0x174cad[_0x4ac3ea(0x7a)]());return _0x5a471e[_0x4ac3ea(0x6a)]||_0x5a471e[_0x4ac3ea(0x83)]||'Invalid\x20App\x20Code';}});return _0x540d60[_0x421544(0x7a)]();}export async function promptAppSelection(_0x5d8bc1){const _0x352242=a38_0x13a8,_0x47a0a2=[{'name':a38_0x1124d9[_0x352242(0x6f)](_0x352242(0x87)),'value':-0x1},..._0x5d8bc1[_0x352242(0x75)]((_0x39f979,_0x17c63d)=>({'name':_0x39f979['appName']+'\x20\x20'+a38_0x1124d9['gray']('('+_0x39f979[_0x352242(0x81)]+')'),'value':_0x17c63d}))],_0x451edf=await checkbox({'message':_0x352242(0x8d)+a38_0x1124d9[_0x352242(0x8a)](_0x5d8bc1[_0x352242(0x69)])+_0x352242(0x6c),'choices':_0x47a0a2,'loop':![]});if(_0x451edf[_0x352242(0x79)](-0x1))return'custom';if(_0x451edf[_0x352242(0x69)]===0x0)return'custom';return _0x451edf[_0x352242(0x75)](_0x3cb1f1=>_0x5d8bc1[_0x3cb1f1]);}function a38_0x59d9(){const _0x26720a=['custom','8100156PmZizV','404HemdQE','appCode','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','message','请输入\x20App\x20Code:','\x0a未找到可用应用。','26376080bvxOxE','✎\x20自定义输入\x20appcode','\x20\x20(','\x0a无法获取远程应用列表,请手动输入。','cyan','2176988WriSjn','appName','获取到\x20','3qnlPKs','App\x20Code:','2580210LIMYdx','length','valid','8gAqLTJ','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','未找到可用应用。','正在获取可用应用列表...','yellow','12780513qskaBL','gray','(跳过,稍后配置)','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','skip','map','find','请选择要绑定的应用:','无法获取远程应用列表,请手动输入。','includes','trim','7963193oaByEN','2893CTSmDv','manual'];a38_0x59d9=function(){return _0x26720a;};return a38_0x59d9();}export async function promptSingleAppSelection(_0x246acb){const _0x50f710=a38_0x13a8,_0x18c1dd=[{'name':a38_0x1124d9['gray'](_0x50f710(0x73)),'value':_0x50f710(0x74)},{'name':a38_0x1124d9[_0x50f710(0x6f)](_0x50f710(0x87)),'value':_0x50f710(0x7e)},..._0x246acb[_0x50f710(0x75)](_0x2ca69e=>({'name':_0x2ca69e[_0x50f710(0x8c)]+'\x20\x20'+a38_0x1124d9[_0x50f710(0x71)]('('+_0x2ca69e[_0x50f710(0x81)]+')'),'value':_0x2ca69e[_0x50f710(0x81)]}))],_0x2b066d=await select({'message':_0x50f710(0x77),'choices':_0x18c1dd});if(_0x2b066d===_0x50f710(0x74))return _0x50f710(0x74);if(_0x2b066d===_0x50f710(0x7e))return _0x50f710(0x7e);return _0x246acb[_0x50f710(0x76)](_0xf1e9fa=>_0xf1e9fa[_0x50f710(0x81)]===_0x2b066d);}export async function selectSingleAppcode(_0x856164){const _0x2afcdb=a38_0x13a8;if(!_0x856164)return writeCliSideChannelLine(a38_0x1124d9[_0x2afcdb(0x71)](_0x2afcdb(0x82))),_fallbackOrSkip();writeCliSideChannelLine(_0x2afcdb(0x6e));let _0x3879f1;try{_0x3879f1=await withActiveCookie(_0x856164,()=>listRemoteApps());}catch(_0x23da04){writeCliSideChannelLine(a38_0x1124d9[_0x2afcdb(0x6f)](_0x2afcdb(0x78)));if(_0x23da04 instanceof Error)writeCliSideChannelLine(a38_0x1124d9['gray'](_0x2afcdb(0x88)+_0x23da04[_0x2afcdb(0x83)]+')'));return _fallbackOrSkip();}if(_0x3879f1[_0x2afcdb(0x69)]===0x0)return writeCliSideChannelLine(a38_0x1124d9[_0x2afcdb(0x6f)](_0x2afcdb(0x6d))),_fallbackOrSkip();const _0x1496da=await promptSingleAppSelection(_0x3879f1);if(_0x1496da==='skip')return'';if(_0x1496da===_0x2afcdb(0x7e))return promptCustomAppcode();return _0x1496da[_0x2afcdb(0x81)];}function a38_0x13a8(_0x3e4afa,_0x2fb50f){_0x3e4afa=_0x3e4afa-0x68;const _0x59d9bb=a38_0x59d9();let _0x13a83e=_0x59d9bb[_0x3e4afa];return _0x13a83e;}export async function selectMultipleApps(_0xdf97bb){const _0x10060c=a38_0x13a8;writeCliSideChannelLine(_0x10060c(0x6e));let _0x2a96de;try{_0x2a96de=await withActiveCookie(_0xdf97bb,()=>listRemoteApps());}catch(_0x2cecfc){writeCliSideChannelLine(_0x10060c(0x89));if(_0x2cecfc instanceof Error)writeCliSideChannelLine(_0x10060c(0x88)+_0x2cecfc[_0x10060c(0x83)]+')');return _0x10060c(0x7e);}if(_0x2a96de[_0x10060c(0x69)]===0x0)return writeCliSideChannelLine(_0x10060c(0x85)),_0x10060c(0x7e);return promptAppSelection(_0x2a96de);}async function _fallbackOrSkip(){const _0xbaab58=a38_0x13a8,_0x42f96b=await select({'message':_0xbaab58(0x8f),'choices':[{'name':a38_0x1124d9['gray'](_0xbaab58(0x72)),'value':_0xbaab58(0x74)},{'name':a38_0x1124d9[_0xbaab58(0x6f)]('✎\x20手动输入'),'value':_0xbaab58(0x7d)}]});if(_0x42f96b===_0xbaab58(0x74))return'';return promptCustomAppcode();}
1
+ (function(_0x239bb0,_0x413492){const _0x1419b6=a38_0x18a9,_0x382560=_0x239bb0();while(!![]){try{const _0x52827c=-parseInt(_0x1419b6(0x15a))/0x1*(-parseInt(_0x1419b6(0x148))/0x2)+-parseInt(_0x1419b6(0x156))/0x3*(-parseInt(_0x1419b6(0x158))/0x4)+parseInt(_0x1419b6(0x145))/0x5+-parseInt(_0x1419b6(0x141))/0x6+-parseInt(_0x1419b6(0x140))/0x7+parseInt(_0x1419b6(0x149))/0x8*(-parseInt(_0x1419b6(0x14c))/0x9)+-parseInt(_0x1419b6(0x157))/0xa;if(_0x52827c===_0x413492)break;else _0x382560['push'](_0x382560['shift']());}catch(_0x3c015){_0x382560['push'](_0x382560['shift']());}}}(a38_0x36cf,0xbbded));function a38_0x18a9(_0x62fd2d,_0x18cf37){_0x62fd2d=_0x62fd2d-0x13a;const _0x36cf72=a38_0x36cf();let _0x18a9b2=_0x36cf72[_0x62fd2d];return _0x18a9b2;}import{input,checkbox,select}from'@inquirer/prompts';import a38_0x268f2e from'chalk';function a38_0x36cf(){const _0x45bf10=['yellow','manual','map','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','message','trim','length','请选择要绑定的应用:','11538fnwKco','6881010lmgOkf','976VRiQjr','正在获取可用应用列表...','3ibXTBu','\x20\x20(','includes','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','\x0a未找到可用应用。','cyan','gray','✎\x20自定义输入\x20appcode','Invalid\x20App\x20Code','App\x20Code:','\x0a无法获取远程应用列表,请手动输入。','未找到可用应用。','无法获取远程应用列表,请手动输入。','1626303DUEAQY','311244iRZlMM','(跳过,稍后配置)','skip','✎\x20手动输入','3697380RtWbHa','custom','appCode','113726GHDDbK','144ixCzqD','appName','valid','53334LNiWsO','请输入\x20App\x20Code:'];a38_0x36cf=function(){return _0x45bf10;};return a38_0x36cf();}import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x54febc=a38_0x18a9,_0x441e6d=await input({'message':_0x54febc(0x14d),'validate':_0x17ed75=>{const _0x521419=_0x54febc,_0x418960=validateAppcode(_0x17ed75[_0x521419(0x153)]());return _0x418960[_0x521419(0x14b)]||_0x418960[_0x521419(0x152)]||_0x521419(0x13b);}});return _0x441e6d[_0x54febc(0x153)]();}export async function promptAppSelection(_0x236fb5){const _0x38bb76=a38_0x18a9,_0x20f6f6=[{'name':a38_0x268f2e[_0x38bb76(0x14e)](_0x38bb76(0x13a)),'value':-0x1},..._0x236fb5[_0x38bb76(0x150)]((_0x677ad0,_0x3268a5)=>({'name':_0x677ad0[_0x38bb76(0x14a)]+'\x20\x20'+a38_0x268f2e[_0x38bb76(0x160)]('('+_0x677ad0[_0x38bb76(0x147)]+')'),'value':_0x3268a5}))],_0x2572b9=await checkbox({'message':'获取到\x20'+a38_0x268f2e[_0x38bb76(0x15f)](_0x236fb5[_0x38bb76(0x154)])+'\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','choices':_0x20f6f6,'loop':![]});if(_0x2572b9[_0x38bb76(0x15c)](-0x1))return'custom';if(_0x2572b9[_0x38bb76(0x154)]===0x0)return _0x38bb76(0x146);return _0x2572b9[_0x38bb76(0x150)](_0x54ab34=>_0x236fb5[_0x54ab34]);}export async function promptSingleAppSelection(_0x137506){const _0x574ec5=a38_0x18a9,_0x45781f=[{'name':a38_0x268f2e[_0x574ec5(0x160)](_0x574ec5(0x151)),'value':'skip'},{'name':a38_0x268f2e[_0x574ec5(0x14e)](_0x574ec5(0x13a)),'value':_0x574ec5(0x146)},..._0x137506[_0x574ec5(0x150)](_0x40dd7a=>({'name':_0x40dd7a[_0x574ec5(0x14a)]+'\x20\x20'+a38_0x268f2e[_0x574ec5(0x160)]('('+_0x40dd7a['appCode']+')'),'value':_0x40dd7a[_0x574ec5(0x147)]}))],_0x249b87=await select({'message':_0x574ec5(0x155),'choices':_0x45781f});if(_0x249b87==='skip')return _0x574ec5(0x143);if(_0x249b87===_0x574ec5(0x146))return _0x574ec5(0x146);return _0x137506['find'](_0x3be17f=>_0x3be17f[_0x574ec5(0x147)]===_0x249b87);}export async function selectSingleAppcode(_0x101030){const _0xe214cf=a38_0x18a9;if(!_0x101030)return writeCliSideChannelLine(a38_0x268f2e[_0xe214cf(0x160)](_0xe214cf(0x15d))),_fallbackOrSkip();writeCliSideChannelLine(_0xe214cf(0x159));let _0x2f38fd;try{_0x2f38fd=await withActiveCookie(_0x101030,()=>listRemoteApps());}catch(_0x24e222){writeCliSideChannelLine(a38_0x268f2e[_0xe214cf(0x14e)](_0xe214cf(0x13f)));if(_0x24e222 instanceof Error)writeCliSideChannelLine(a38_0x268f2e[_0xe214cf(0x160)]('\x20\x20('+_0x24e222[_0xe214cf(0x152)]+')'));return _fallbackOrSkip();}if(_0x2f38fd[_0xe214cf(0x154)]===0x0)return writeCliSideChannelLine(a38_0x268f2e[_0xe214cf(0x14e)](_0xe214cf(0x13e))),_fallbackOrSkip();const _0x300b69=await promptSingleAppSelection(_0x2f38fd);if(_0x300b69===_0xe214cf(0x143))return'';if(_0x300b69===_0xe214cf(0x146))return promptCustomAppcode();return _0x300b69[_0xe214cf(0x147)];}export async function selectMultipleApps(_0x46bc5d){const _0x1f1ec3=a38_0x18a9;writeCliSideChannelLine('正在获取可用应用列表...');let _0x44904d;try{_0x44904d=await withActiveCookie(_0x46bc5d,()=>listRemoteApps());}catch(_0x39d11a){writeCliSideChannelLine(_0x1f1ec3(0x13d));if(_0x39d11a instanceof Error)writeCliSideChannelLine(_0x1f1ec3(0x15b)+_0x39d11a[_0x1f1ec3(0x152)]+')');return _0x1f1ec3(0x146);}if(_0x44904d['length']===0x0)return writeCliSideChannelLine(_0x1f1ec3(0x15e)),_0x1f1ec3(0x146);return promptAppSelection(_0x44904d);}async function _fallbackOrSkip(){const _0x342dc2=a38_0x18a9,_0x1f9850=await select({'message':_0x342dc2(0x13c),'choices':[{'name':a38_0x268f2e[_0x342dc2(0x160)](_0x342dc2(0x142)),'value':'skip'},{'name':a38_0x268f2e['yellow'](_0x342dc2(0x144)),'value':_0x342dc2(0x14f)}]});if(_0x1f9850===_0x342dc2(0x143))return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- function a39_0x1ed2(){const _0x1048b4=['2jcygah','2005990enenMk','280197ZRvzBL','145YgTiEq','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','dbtype','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','1532184PNyXmR','1163696tBcULM','660312MCHhVe','string','71454mkKTFe','1194837fJtsFH','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','number','code','datasetcode','8eZgAFc','MYSQL','POSTGRESQL','Dataset\x20code\x20(32-char\x20hex\x20UUID)'];a39_0x1ed2=function(){return _0x1048b4;};return a39_0x1ed2();}const a39_0x2677d6=a39_0x117f;(function(_0x479b4f,_0x351a75){const _0x99fa50=a39_0x117f,_0x2bf320=_0x479b4f();while(!![]){try{const _0x5e1b34=parseInt(_0x99fa50(0x138))/0x1*(parseInt(_0x99fa50(0x136))/0x2)+parseInt(_0x99fa50(0x128))/0x3+-parseInt(_0x99fa50(0x129))/0x4+-parseInt(_0x99fa50(0x139))/0x5*(parseInt(_0x99fa50(0x12c))/0x6)+parseInt(_0x99fa50(0x12d))/0x7*(-parseInt(_0x99fa50(0x132))/0x8)+parseInt(_0x99fa50(0x12a))/0x9+parseInt(_0x99fa50(0x137))/0xa;if(_0x5e1b34===_0x351a75)break;else _0x2bf320['push'](_0x2bf320['shift']());}catch(_0x51b1d5){_0x2bf320['push'](_0x2bf320['shift']());}}}(a39_0x1ed2,0x3ef7c));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x2677d6(0x12e)};export const CODE_FLAG={'name':a39_0x2677d6(0x130),'type':'string','required':!![],'description':a39_0x2677d6(0x135),'pattern':DATASET_CODE_PATTERN};function a39_0x117f(_0x4cac31,_0x1c354b){_0x4cac31=_0x4cac31-0x127;const _0x1ed256=a39_0x1ed2();let _0x117f91=_0x1ed256[_0x4cac31];return _0x117f91;}export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x2677d6(0x131),'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)'};export const SQLCODE_FLAG={'name':'sqlcode','type':'string','required':!![],'description':a39_0x2677d6(0x13c),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':'SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)'}};export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':a39_0x2677d6(0x12b),'required':![],'description':a39_0x2677d6(0x13a)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a39_0x2677d6(0x12f),'required':!![],'description':a39_0x2677d6(0x127)};export const DB_TYPE_FLAG={'name':a39_0x2677d6(0x13b),'type':a39_0x2677d6(0x12b),'required':!![],'description':'Database\x20product\x20type','enum':[a39_0x2677d6(0x133),a39_0x2677d6(0x134)]};
1
+ const a39_0x532aad=a39_0x98c7;(function(_0x5f1773,_0xc03456){const _0x11e137=a39_0x98c7,_0x45530b=_0x5f1773();while(!![]){try{const _0x362840=-parseInt(_0x11e137(0x10b))/0x1*(-parseInt(_0x11e137(0x10c))/0x2)+-parseInt(_0x11e137(0x105))/0x3+parseInt(_0x11e137(0xf8))/0x4+parseInt(_0x11e137(0xfa))/0x5*(-parseInt(_0x11e137(0x106))/0x6)+parseInt(_0x11e137(0xff))/0x7*(-parseInt(_0x11e137(0xfd))/0x8)+parseInt(_0x11e137(0xfb))/0x9+parseInt(_0x11e137(0x108))/0xa;if(_0x362840===_0xc03456)break;else _0x45530b['push'](_0x45530b['shift']());}catch(_0x37751d){_0x45530b['push'](_0x45530b['shift']());}}}(a39_0x4b1b,0x855f0));function a39_0x4b1b(){const _0x4bb443=['198602LaAvFl','code','number','3507852lkIjTI','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','505lmOlVa','4254183RhdHUT','Dataset\x20code\x20(32-char\x20hex\x20UUID)','2780616tWwRpi','string','7euUGqV','datasetcode','dbtype','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','MYSQL','SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','2702943YgQPXL','8046BhZsRW','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','4813360AtsfZL','POSTGRESQL','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','1nRVanq'];a39_0x4b1b=function(){return _0x4bb443;};return a39_0x4b1b();}export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x532aad(0x10a)};export const CODE_FLAG={'name':a39_0x532aad(0x10d),'type':a39_0x532aad(0xfe),'required':!![],'description':a39_0x532aad(0xfc),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x532aad(0x100),'description':a39_0x532aad(0xfc)};export const SQLCODE_FLAG={'name':'sqlcode','type':a39_0x532aad(0xfe),'required':!![],'description':a39_0x532aad(0xf9),'pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x532aad(0x104)}};export const APPCODE_FLAG_OPTIONAL={'name':'appcode','type':a39_0x532aad(0xfe),'required':![],'description':a39_0x532aad(0x102)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};function a39_0x98c7(_0x5cd1e7,_0x1e7b54){_0x5cd1e7=_0x5cd1e7-0xf8;const _0x4b1b8d=a39_0x4b1b();let _0x98c7e7=_0x4b1b8d[_0x5cd1e7];return _0x98c7e7;}export const DBLINK_ID_FLAG={'name':'id','type':a39_0x532aad(0x10e),'required':!![],'description':a39_0x532aad(0x107)};export const DB_TYPE_FLAG={'name':a39_0x532aad(0x101),'type':'string','required':!![],'description':'Database\x20product\x20type','enum':[a39_0x532aad(0x103),a39_0x532aad(0x109)]};
@@ -1 +1 @@
1
- (function(_0x2b0be8,_0x51cc8e){const _0x52ed1f=a40_0x12b7,_0x37d58c=_0x2b0be8();while(!![]){try{const _0x3d8b00=-parseInt(_0x52ed1f(0xe2))/0x1*(parseInt(_0x52ed1f(0xdd))/0x2)+-parseInt(_0x52ed1f(0xde))/0x3+parseInt(_0x52ed1f(0xd4))/0x4*(-parseInt(_0x52ed1f(0xe1))/0x5)+-parseInt(_0x52ed1f(0xd8))/0x6*(-parseInt(_0x52ed1f(0xd3))/0x7)+parseInt(_0x52ed1f(0xd6))/0x8*(-parseInt(_0x52ed1f(0xdc))/0x9)+parseInt(_0x52ed1f(0xdf))/0xa*(-parseInt(_0x52ed1f(0xd7))/0xb)+parseInt(_0x52ed1f(0xd9))/0xc;if(_0x3d8b00===_0x51cc8e)break;else _0x37d58c['push'](_0x37d58c['shift']());}catch(_0x234302){_0x37d58c['push'](_0x37d58c['shift']());}}}(a40_0x288a,0x654b3));function a40_0x12b7(_0x4bb66f,_0x20d8db){_0x4bb66f=_0x4bb66f-0xd3;const _0x288a84=a40_0x288a();let _0x12b7fc=_0x288a84[_0x4bb66f];return _0x12b7fc;}export function validateAppcode(_0x4ddfde){const _0x5cb2ac=a40_0x12b7,_0x537e89=_0x4ddfde[_0x5cb2ac(0xda)]();if(!_0x537e89)return{'valid':![],'message':_0x5cb2ac(0xe3)};if(_0x537e89[_0x5cb2ac(0xe0)]>0x64)return{'valid':![],'message':_0x5cb2ac(0xdb)};if(!/^[A-Za-z0-9_-]+$/[_0x5cb2ac(0xd5)](_0x537e89))return{'valid':![],'message':'Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed'};return{'valid':!![]};}function a40_0x288a(){const _0x7c901=['15350kDsejh','length','180jPChbF','8971YEHuJq','App\x20Code\x20cannot\x20be\x20empty','7EYnjNn','62372kqWzEp','test','1104nthpPo','1771dDlXor','551016VHlSyU','19252212rGNVAe','trim','App\x20Code\x20cannot\x20exceed\x20100\x20characters','3141krGybU','80MYXOLa','197409LwqfVB'];a40_0x288a=function(){return _0x7c901;};return a40_0x288a();}
1
+ function a40_0x22ac(_0x19c86c,_0x28178a){_0x19c86c=_0x19c86c-0x1e4;const _0x2306b2=a40_0x2306();let _0x22ac6f=_0x2306b2[_0x19c86c];return _0x22ac6f;}(function(_0x1c5e89,_0x4b4fe0){const _0x2fd063=a40_0x22ac,_0x20f001=_0x1c5e89();while(!![]){try{const _0x24b35f=parseInt(_0x2fd063(0x1ec))/0x1+-parseInt(_0x2fd063(0x1e7))/0x2+-parseInt(_0x2fd063(0x1eb))/0x3*(parseInt(_0x2fd063(0x1e4))/0x4)+parseInt(_0x2fd063(0x1e9))/0x5+-parseInt(_0x2fd063(0x1ee))/0x6*(-parseInt(_0x2fd063(0x1e8))/0x7)+-parseInt(_0x2fd063(0x1e6))/0x8+parseInt(_0x2fd063(0x1f1))/0x9*(parseInt(_0x2fd063(0x1ed))/0xa);if(_0x24b35f===_0x4b4fe0)break;else _0x20f001['push'](_0x20f001['shift']());}catch(_0x25fbaa){_0x20f001['push'](_0x20f001['shift']());}}}(a40_0x2306,0xc6c65));export function validateAppcode(_0x66ab9c){const _0x72f62f=a40_0x22ac,_0x59c04c=_0x66ab9c[_0x72f62f(0x1e5)]();if(!_0x59c04c)return{'valid':![],'message':_0x72f62f(0x1f2)};if(_0x59c04c['length']>0x64)return{'valid':![],'message':_0x72f62f(0x1ea)};if(!/^[A-Za-z0-9_-]+$/[_0x72f62f(0x1f0)](_0x59c04c))return{'valid':![],'message':_0x72f62f(0x1ef)};return{'valid':!![]};}function a40_0x2306(){const _0x5b4e63=['7986624wKqzTh','32520KoQVmE','494844tlZEcr','2343365PYbYLk','App\x20Code\x20cannot\x20exceed\x20100\x20characters','6WWYJMI','535217JUMEuS','139970GInDVc','24eOVRoF','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','test','369NotSwa','App\x20Code\x20cannot\x20be\x20empty','63532KXNfKR','trim'];a40_0x2306=function(){return _0x5b4e63;};return a40_0x2306();}
@@ -1 +1 @@
1
- const a41_0x48aee3=a41_0x2739;function a41_0x2739(_0x3b4249,_0x3e972b){_0x3b4249=_0x3b4249-0x164;const _0x6bb993=a41_0x6bb9();let _0x2739c4=_0x6bb993[_0x3b4249];return _0x2739c4;}(function(_0x431db9,_0x1afd3b){const _0x583caa=a41_0x2739,_0x11e135=_0x431db9();while(!![]){try{const _0x3abd1f=parseInt(_0x583caa(0x173))/0x1+-parseInt(_0x583caa(0x16b))/0x2*(-parseInt(_0x583caa(0x169))/0x3)+-parseInt(_0x583caa(0x177))/0x4*(parseInt(_0x583caa(0x179))/0x5)+parseInt(_0x583caa(0x167))/0x6*(-parseInt(_0x583caa(0x168))/0x7)+-parseInt(_0x583caa(0x165))/0x8+-parseInt(_0x583caa(0x16d))/0x9*(-parseInt(_0x583caa(0x176))/0xa)+-parseInt(_0x583caa(0x16e))/0xb;if(_0x3abd1f===_0x1afd3b)break;else _0x11e135['push'](_0x11e135['shift']());}catch(_0x161138){_0x11e135['push'](_0x11e135['shift']());}}}(a41_0x6bb9,0x47552));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a41_0x6bb9(){const _0x3789ce=['533916xHHevU','string','key','12420AxZJhB','668fEjebZ','appcode','16335gnjpmo','get','validation','app','1524168orYMEz','config','2658QmtrTp','1918JUScdH','8571vmmjAn','Get\x20a\x20config\x20value\x20by\x20key','292uXocfF','Key\x20not\x20found:\x20','3537qTsxFp','3184214TCsEgr','Missing\x20key.','object','Usage:\x20','read'];a41_0x6bb9=function(){return _0x3789ce;};return a41_0x6bb9();}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x5ee316){const _0x4c9c6d=a41_0x2739,_0xa096f9=_0x5ee316['str']('key');if(!_0xa096f9)throw CliErrors[_0x4c9c6d(0x17b)](_0x4c9c6d(0x16f),_0x4c9c6d(0x171)+CLI_BIN_NAME+'\x20config\x20get\x20--key\x20<key>');const _0xd9b95f=readConfig(),_0x128019=_0xa096f9===_0x4c9c6d(0x164)?_0x4c9c6d(0x178):_0xa096f9,_0x1f0429=_0xd9b95f[_0x128019];if(_0x1f0429===undefined)throw CliErrors[_0x4c9c6d(0x17b)](_0x4c9c6d(0x16c)+_0xa096f9);return{'ok':!![],'data':typeof _0x1f0429===_0x4c9c6d(0x170)?_0x1f0429:{[_0x128019]:_0x1f0429},'message':typeof _0x1f0429==='object'?undefined:String(_0x1f0429)};}export const configGetDefinition={'service':a41_0x48aee3(0x166),'command':a41_0x48aee3(0x17a),'description':a41_0x48aee3(0x16a),'risk':a41_0x48aee3(0x172),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x48aee3(0x175),'type':a41_0x48aee3(0x174),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a41_0x4661dc=a41_0x1d8e;function a41_0x1d8e(_0x218983,_0x24903a){_0x218983=_0x218983-0x18e;const _0x3f1ed5=a41_0x3f1e();let _0x1d8e1a=_0x3f1ed5[_0x218983];return _0x1d8e1a;}(function(_0x2e615f,_0x3c34c5){const _0x2e3332=a41_0x1d8e,_0xf2666b=_0x2e615f();while(!![]){try{const _0x98e1f5=-parseInt(_0x2e3332(0x19b))/0x1*(-parseInt(_0x2e3332(0x198))/0x2)+-parseInt(_0x2e3332(0x196))/0x3+-parseInt(_0x2e3332(0x190))/0x4+-parseInt(_0x2e3332(0x199))/0x5+-parseInt(_0x2e3332(0x18f))/0x6+-parseInt(_0x2e3332(0x194))/0x7+parseInt(_0x2e3332(0x192))/0x8;if(_0x98e1f5===_0x3c34c5)break;else _0xf2666b['push'](_0xf2666b['shift']());}catch(_0x41d318){_0xf2666b['push'](_0xf2666b['shift']());}}}(a41_0x3f1e,0x7ec0b));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';function a41_0x3f1e(){const _0xf92b8d=['759632vajtSO','key','24386984rUNkQB','\x20config\x20get\x20--key\x20<key>','6882456iTlRvT','str','2892966rPCPqT','string','8zEPCwC','4911385uTICZB','config','246913qbLSre','validation','get','Usage:\x20','read','object','appcode','2382786nThWbl'];a41_0x3f1e=function(){return _0xf92b8d;};return a41_0x3f1e();}async function execute(_0x494f7e){const _0x26cab0=a41_0x1d8e,_0x5d83b3=_0x494f7e[_0x26cab0(0x195)](_0x26cab0(0x191));if(!_0x5d83b3)throw CliErrors[_0x26cab0(0x19c)]('Missing\x20key.',_0x26cab0(0x19e)+CLI_BIN_NAME+_0x26cab0(0x193));const _0x13c1b7=readConfig(),_0x343304=_0x5d83b3==='app'?_0x26cab0(0x18e):_0x5d83b3,_0x17d11e=_0x13c1b7[_0x343304];if(_0x17d11e===undefined)throw CliErrors[_0x26cab0(0x19c)]('Key\x20not\x20found:\x20'+_0x5d83b3);return{'ok':!![],'data':typeof _0x17d11e===_0x26cab0(0x1a0)?_0x17d11e:{[_0x343304]:_0x17d11e},'message':typeof _0x17d11e===_0x26cab0(0x1a0)?undefined:String(_0x17d11e)};}export const configGetDefinition={'service':a41_0x4661dc(0x19a),'command':a41_0x4661dc(0x19d),'description':'Get\x20a\x20config\x20value\x20by\x20key','risk':a41_0x4661dc(0x19f),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a41_0x4661dc(0x191),'type':a41_0x4661dc(0x197),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0xd95596,_0x1583fa){const _0x446fbf=a42_0x3705,_0x13d2a1=_0xd95596();while(!![]){try{const _0xd5f716=parseInt(_0x446fbf(0x85))/0x1*(parseInt(_0x446fbf(0x89))/0x2)+-parseInt(_0x446fbf(0x86))/0x3+parseInt(_0x446fbf(0x8b))/0x4+-parseInt(_0x446fbf(0x84))/0x5*(parseInt(_0x446fbf(0x8c))/0x6)+-parseInt(_0x446fbf(0x82))/0x7*(-parseInt(_0x446fbf(0x83))/0x8)+-parseInt(_0x446fbf(0x87))/0x9*(parseInt(_0x446fbf(0x88))/0xa)+parseInt(_0x446fbf(0x8a))/0xb;if(_0xd5f716===_0x1583fa)break;else _0x13d2a1['push'](_0x13d2a1['shift']());}catch(_0x262990){_0x13d2a1['push'](_0x13d2a1['shift']());}}}(a42_0x4b3f,0x5b46a));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a42_0x4b3f(){const _0x49c8e1=['873fYZYGX','41510GaLkkR','2idOZVi','5889576PrsnXB','499336BXuFgt','1662dTuRwW','21CfeAFp','799192CNdXbD','5975YnLJuC','594469CsEPBz','1340664kkKeJT'];a42_0x4b3f=function(){return _0x49c8e1;};return a42_0x4b3f();}import{configSetDefinition}from'../../commands/config/set.js';function a42_0x3705(_0x397ce7,_0x57247f){_0x397ce7=_0x397ce7-0x82;const _0x4b3f97=a42_0x4b3f();let _0x37050d=_0x4b3f97[_0x397ce7];return _0x37050d;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x11f1b5,_0x3ca6d1){const _0x3c5322=a42_0x3c7c,_0x3d33fa=_0x11f1b5();while(!![]){try{const _0x581e4e=parseInt(_0x3c5322(0xc0))/0x1*(-parseInt(_0x3c5322(0xc6))/0x2)+parseInt(_0x3c5322(0xc1))/0x3*(parseInt(_0x3c5322(0xc2))/0x4)+-parseInt(_0x3c5322(0xbe))/0x5+parseInt(_0x3c5322(0xc5))/0x6+-parseInt(_0x3c5322(0xc4))/0x7*(parseInt(_0x3c5322(0xc8))/0x8)+-parseInt(_0x3c5322(0xc3))/0x9*(parseInt(_0x3c5322(0xc7))/0xa)+parseInt(_0x3c5322(0xbf))/0xb;if(_0x581e4e===_0x3ca6d1)break;else _0x3d33fa['push'](_0x3d33fa['shift']());}catch(_0x423388){_0x3d33fa['push'](_0x3d33fa['shift']());}}}(a42_0x336a,0x33aef));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a42_0x336a(){const _0x2cb8e6=['20SRWjxr','2521089UArjgM','2100TmBViD','242946CUyHtR','447920WjALmi','10cPNCGn','536SsiEHP','1007680CKDGub','8118561gvXYeA','1nVpFpD','95322iaCnxT'];a42_0x336a=function(){return _0x2cb8e6;};return a42_0x336a();}import{configSetDefinition}from'../../commands/config/set.js';function a42_0x3c7c(_0x326f64,_0x19d9de){_0x326f64=_0x326f64-0xbe;const _0x336a29=a42_0x336a();let _0x3c7c2c=_0x336a29[_0x326f64];return _0x3c7c2c;}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- const a43_0x369a1c=a43_0x43de;(function(_0x99bd9e,_0x3e068e){const _0x40ff16=a43_0x43de,_0x27901a=_0x99bd9e();while(!![]){try{const _0xb784a4=-parseInt(_0x40ff16(0x136))/0x1+parseInt(_0x40ff16(0x13a))/0x2+parseInt(_0x40ff16(0x138))/0x3*(-parseInt(_0x40ff16(0x12c))/0x4)+-parseInt(_0x40ff16(0x131))/0x5*(parseInt(_0x40ff16(0x130))/0x6)+parseInt(_0x40ff16(0x12d))/0x7+parseInt(_0x40ff16(0x133))/0x8+-parseInt(_0x40ff16(0x12f))/0x9;if(_0xb784a4===_0x3e068e)break;else _0x27901a['push'](_0x27901a['shift']());}catch(_0x4a4027){_0x27901a['push'](_0x27901a['shift']());}}}(a43_0x2a35,0x40937));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x582883){const _0x3a1815=a43_0x43de,_0x49da36=_0x582883[_0x3a1815(0x135)](_0x3a1815(0x12e))?readScopedConfig(_0x3a1815(0x12e)):readConfig();return{'ok':!![],'data':_0x49da36};}function a43_0x2a35(){const _0x5c9cea=['78iTgFrl','149360krseCF','read','2123576bydZCo','boolean','bool','44732SvKJww','List\x20all\x20config\x20values','396456jJjuxI','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','958746VMGlFl','list','8vspMgH','3273291AkQqHu','global','2255022iAzTTv'];a43_0x2a35=function(){return _0x5c9cea;};return a43_0x2a35();}function a43_0x43de(_0x11725c,_0x3004e1){_0x11725c=_0x11725c-0x12c;const _0x2a353c=a43_0x2a35();let _0x43def4=_0x2a353c[_0x11725c];return _0x43def4;}export const configListDefinition={'service':'config','command':a43_0x369a1c(0x13b),'description':a43_0x369a1c(0x137),'risk':a43_0x369a1c(0x132),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x369a1c(0x12e),'type':a43_0x369a1c(0x134),'description':a43_0x369a1c(0x139),'default':![]}],'execute':execute};
1
+ const a43_0x1e6b6e=a43_0x5e53;(function(_0x28a266,_0x5426e6){const _0x4cdf03=a43_0x5e53,_0x584a07=_0x28a266();while(!![]){try{const _0x15d8d1=-parseInt(_0x4cdf03(0x158))/0x1+-parseInt(_0x4cdf03(0x153))/0x2+parseInt(_0x4cdf03(0x151))/0x3*(-parseInt(_0x4cdf03(0x15d))/0x4)+parseInt(_0x4cdf03(0x159))/0x5+parseInt(_0x4cdf03(0x15b))/0x6*(-parseInt(_0x4cdf03(0x15e))/0x7)+-parseInt(_0x4cdf03(0x15c))/0x8*(-parseInt(_0x4cdf03(0x157))/0x9)+parseInt(_0x4cdf03(0x156))/0xa;if(_0x15d8d1===_0x5426e6)break;else _0x584a07['push'](_0x584a07['shift']());}catch(_0x379726){_0x584a07['push'](_0x584a07['shift']());}}}(a43_0x4215,0x9684a));import{readScopedConfig}from'../../commands/config/shared.js';function a43_0x5e53(_0x5d6248,_0xb08f98){_0x5d6248=_0x5d6248-0x150;const _0x42157e=a43_0x4215();let _0x5e53c1=_0x42157e[_0x5d6248];return _0x5e53c1;}import{readConfig}from'../../utils/config.js';async function execute(_0x222f0d){const _0x214978=a43_0x5e53,_0x68d8a0=_0x222f0d[_0x214978(0x150)](_0x214978(0x155))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x68d8a0};}function a43_0x4215(){const _0x46f751=['9pcwSSx','1228345lWuFXa','5611065DBjNsT','read','25002mtBlkp','5792600XxmZJP','274280fhAvxo','623rJMTbE','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','bool','33YNTtZQ','List\x20all\x20config\x20values','1581928OnnVST','boolean','global','19146760SnOjFr'];a43_0x4215=function(){return _0x46f751;};return a43_0x4215();}export const configListDefinition={'service':'config','command':'list','description':a43_0x1e6b6e(0x152),'risk':a43_0x1e6b6e(0x15a),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x1e6b6e(0x155),'type':a43_0x1e6b6e(0x154),'description':a43_0x1e6b6e(0x15f),'default':![]}],'execute':execute};
@@ -1 +1 @@
1
- const a44_0x26cc86=a44_0x55ac;function a44_0x47f2(){const _0x113d1b=['Project','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','Config\x20value','string','`,\x20`','\x22.\x20Allowed:\x20','1398294KtGrGN','join','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','global','357693TEMvEd','\x20app\x20add\x20<name>\x20--appcode\x20','env','4196742OrHxnZ','Invalid\x20locale\x20value.','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','apps','locale','12tEYXvL','Top-level\x20key\x20\x22','3229lZQTaQ','app','5rlpbFa','value','1262694kpIPuC','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','length','Global','Use\x20`','\x20set\x20to:\x20','str','Settable\x20top-level\x20keys:\x20','409520MdWWqf','Usage:\x20','riskLevel','\x22\x20is\x20not\x20settable.','key','validation','object','153268Zmmsyp','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','keys','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','\x20appcode\x20set\x20to:\x20','write','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','includes','18qRffix','8emCPCt'];a44_0x47f2=function(){return _0x113d1b;};return a44_0x47f2();}(function(_0x43e83f,_0x491d54){const _0x3d77e5=a44_0x55ac,_0x13fef9=_0x43e83f();while(!![]){try{const _0x50122c=parseInt(_0x3d77e5(0xd3))/0x1*(parseInt(_0x3d77e5(0xbd))/0x2)+-parseInt(_0x3d77e5(0xd1))/0x3*(-parseInt(_0x3d77e5(0xb3))/0x4)+parseInt(_0x3d77e5(0xd5))/0x5*(parseInt(_0x3d77e5(0xd7))/0x6)+-parseInt(_0x3d77e5(0xc9))/0x7*(parseInt(_0x3d77e5(0xbe))/0x8)+parseInt(_0x3d77e5(0xc5))/0x9+parseInt(_0x3d77e5(0xac))/0xa+-parseInt(_0x3d77e5(0xcc))/0xb;if(_0x50122c===_0x491d54)break;else _0x13fef9['push'](_0x13fef9['shift']());}catch(_0xb6ad94){_0x13fef9['push'](_0x13fef9['shift']());}}}(a44_0x47f2,0x2633b));function a44_0x55ac(_0x4162c9,_0x4edf55){_0x4162c9=_0x4162c9-0xa8;const _0x47f2c4=a44_0x47f2();let _0x55aca7=_0x47f2c4[_0x4162c9];return _0x55aca7;}import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x48ddee){const _0x1807eb=a44_0x55ac,_0x478a3e=_0x48ddee[_0x1807eb(0xaa)](_0x1807eb(0xb0)),_0x341ebd=_0x48ddee['str'](_0x1807eb(0xd6));if(!_0x478a3e)throw CliErrors[_0x1807eb(0xb1)]('Missing\x20key.',_0x1807eb(0xad)+CLI_BIN_NAME+_0x1807eb(0xc7));if(_0x341ebd===undefined||_0x341ebd==='')throw CliErrors[_0x1807eb(0xb1)]('Missing\x20value.',_0x1807eb(0xad)+CLI_BIN_NAME+_0x1807eb(0xc7));if(_0x341ebd[_0x1807eb(0xd9)]>0x1f4)throw CliErrors[_0x1807eb(0xb1)](_0x1807eb(0xc0));if(!isTopLevelConfigKey(_0x478a3e))throw CliErrors[_0x1807eb(0xb1)](_0x1807eb(0xd2)+_0x478a3e+_0x1807eb(0xaf),_0x1807eb(0xab)+getTopLevelConfigKeySummary());if(_0x478a3e===_0x1807eb(0xae))throw CliErrors['validation'](_0x1807eb(0xba));if(CONFIG_ENUM_VALUES[_0x478a3e]&&!CONFIG_ENUM_VALUES[_0x478a3e][_0x1807eb(0xbc)](_0x341ebd))throw CliErrors[_0x1807eb(0xb1)]('Invalid\x20value\x20for\x20\x22'+_0x478a3e+_0x1807eb(0xc4)+CONFIG_ENUM_VALUES[_0x478a3e][_0x1807eb(0xc6)](',\x20'));if(_0x478a3e===_0x1807eb(0xd0)&&!normalizeLocale(_0x341ebd))throw CliErrors[_0x1807eb(0xb1)](_0x1807eb(0xcd),'Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US');const _0x530ad0={'global':_0x48ddee['bool'](_0x1807eb(0xc8))},_0x152a7f=resolveWriteScope(_0x530ad0),_0x3dcd5e=readScopedConfig(_0x152a7f);let _0x2beaae=_0x478a3e,_0x1b8c29=_0x341ebd;_0x478a3e===_0x1807eb(0xd4)&&(_0x2beaae='appcode',delete _0x3dcd5e[_0x1807eb(0xd4)]);_0x478a3e===_0x1807eb(0xd0)&&(_0x1b8c29=normalizeLocale(_0x341ebd));if(_0x478a3e===_0x1807eb(0xcb)){_0x1b8c29=normalizeEnv(_0x341ebd);if(!isProduction(_0x1b8c29)&&!isDaily(_0x1b8c29))throw CliErrors['validation'](_0x1807eb(0xbb),_0x1807eb(0xce));}if(_0x478a3e==='appcode'){const _0x2e85bb=_0x3dcd5e[_0x1807eb(0xcf)]&&typeof _0x3dcd5e[_0x1807eb(0xcf)]===_0x1807eb(0xb2)?Object[_0x1807eb(0xb5)](_0x3dcd5e[_0x1807eb(0xcf)]):[];if(_0x2e85bb['length']>0x0)throw CliErrors[_0x1807eb(0xb1)](_0x1807eb(0xb9),_0x1807eb(0xa8)+CLI_BIN_NAME+_0x1807eb(0xca)+_0x1b8c29+_0x1807eb(0xc3)+CLI_BIN_NAME+_0x1807eb(0xb6));const _0x14922d=buildCanonicalProjectConfig({..._0x3dcd5e},{'appCodes':[_0x1b8c29],'env':typeof _0x3dcd5e[_0x1807eb(0xcb)]==='string'?_0x3dcd5e[_0x1807eb(0xcb)]:undefined});writeScopedConfig(_0x14922d,_0x152a7f);const _0x9cf3b3=_0x152a7f===_0x1807eb(0xc8)?_0x1807eb(0xda):_0x1807eb(0xbf);return{'ok':!![],'message':'✓\x20'+_0x9cf3b3+_0x1807eb(0xb7)+_0x1b8c29+_0x1807eb(0xb4)};}_0x3dcd5e[_0x2beaae]=_0x1b8c29,writeScopedConfig(_0x3dcd5e,_0x152a7f);const _0x42049a=_0x152a7f===_0x1807eb(0xc8)?_0x1807eb(0xda):_0x1807eb(0xbf);return{'ok':!![],'message':'✓\x20'+_0x42049a+'\x20'+_0x2beaae+_0x1807eb(0xa9)+_0x1b8c29};}export const configSetDefinition={'service':'config','command':'set','description':'Set\x20a\x20config\x20value','risk':a44_0x26cc86(0xb8),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a44_0x26cc86(0xc2),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x26cc86(0xd6),'type':a44_0x26cc86(0xc2),'description':a44_0x26cc86(0xc1),'required':!![]},{'name':a44_0x26cc86(0xc8),'type':'boolean','description':a44_0x26cc86(0xd8),'default':![]}],'execute':execute};
1
+ const a44_0xd10609=a44_0x5071;(function(_0x2cbf10,_0x34472e){const _0x9c448b=a44_0x5071,_0x388b56=_0x2cbf10();while(!![]){try{const _0x2509dc=parseInt(_0x9c448b(0x13d))/0x1*(-parseInt(_0x9c448b(0x150))/0x2)+-parseInt(_0x9c448b(0x158))/0x3+-parseInt(_0x9c448b(0x162))/0x4*(parseInt(_0x9c448b(0x16c))/0x5)+parseInt(_0x9c448b(0x15e))/0x6+-parseInt(_0x9c448b(0x157))/0x7+parseInt(_0x9c448b(0x13e))/0x8*(-parseInt(_0x9c448b(0x166))/0x9)+parseInt(_0x9c448b(0x14c))/0xa;if(_0x2509dc===_0x34472e)break;else _0x388b56['push'](_0x388b56['shift']());}catch(_0x10d060){_0x388b56['push'](_0x388b56['shift']());}}}(a44_0x308c,0x886d7));import{CliErrors}from'../../errors.js';import{buildCanonicalProjectConfig}from'../../config/schema.js';import{CLI_BIN_NAME,CONFIG_ENUM_VALUES,getConfigCommandKeyDescription,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale,resolveWriteScope,readScopedConfig,writeScopedConfig}from'../../commands/config/shared.js';import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x55a756){const _0x3cfdfc=a44_0x5071,_0x3f5615=_0x55a756[_0x3cfdfc(0x142)](_0x3cfdfc(0x152)),_0x279797=_0x55a756['str'](_0x3cfdfc(0x15f));if(!_0x3f5615)throw CliErrors[_0x3cfdfc(0x165)](_0x3cfdfc(0x15c),_0x3cfdfc(0x156)+CLI_BIN_NAME+_0x3cfdfc(0x147));if(_0x279797===undefined||_0x279797==='')throw CliErrors[_0x3cfdfc(0x165)](_0x3cfdfc(0x159),_0x3cfdfc(0x156)+CLI_BIN_NAME+_0x3cfdfc(0x147));if(_0x279797[_0x3cfdfc(0x143)]>0x1f4)throw CliErrors['validation'](_0x3cfdfc(0x13f));if(!isTopLevelConfigKey(_0x3f5615))throw CliErrors[_0x3cfdfc(0x165)](_0x3cfdfc(0x14f)+_0x3f5615+_0x3cfdfc(0x140),'Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x3f5615===_0x3cfdfc(0x141))throw CliErrors[_0x3cfdfc(0x165)](_0x3cfdfc(0x154));if(CONFIG_ENUM_VALUES[_0x3f5615]&&!CONFIG_ENUM_VALUES[_0x3f5615][_0x3cfdfc(0x168)](_0x279797))throw CliErrors['validation'](_0x3cfdfc(0x169)+_0x3f5615+_0x3cfdfc(0x15d)+CONFIG_ENUM_VALUES[_0x3f5615][_0x3cfdfc(0x15b)](',\x20'));if(_0x3f5615===_0x3cfdfc(0x155)&&!normalizeLocale(_0x279797))throw CliErrors[_0x3cfdfc(0x165)](_0x3cfdfc(0x151),_0x3cfdfc(0x146));const _0x565dd9={'global':_0x55a756[_0x3cfdfc(0x16d)](_0x3cfdfc(0x160))},_0x4ed66e=resolveWriteScope(_0x565dd9),_0x517c08=readScopedConfig(_0x4ed66e);let _0x17df7e=_0x3f5615,_0x59a3d6=_0x279797;_0x3f5615===_0x3cfdfc(0x144)&&(_0x17df7e=_0x3cfdfc(0x16b),delete _0x517c08[_0x3cfdfc(0x144)]);_0x3f5615===_0x3cfdfc(0x155)&&(_0x59a3d6=normalizeLocale(_0x279797));if(_0x3f5615===_0x3cfdfc(0x161)){_0x59a3d6=normalizeEnv(_0x279797);if(!isProduction(_0x59a3d6)&&!isDaily(_0x59a3d6))throw CliErrors[_0x3cfdfc(0x165)](_0x3cfdfc(0x14a),'Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.');}if(_0x3f5615==='appcode'){const _0x37d8e1=_0x517c08['apps']&&typeof _0x517c08[_0x3cfdfc(0x149)]===_0x3cfdfc(0x14e)?Object[_0x3cfdfc(0x13c)](_0x517c08[_0x3cfdfc(0x149)]):[];if(_0x37d8e1[_0x3cfdfc(0x143)]>0x0)throw CliErrors['validation'](_0x3cfdfc(0x164),'Use\x20`'+CLI_BIN_NAME+_0x3cfdfc(0x14d)+_0x59a3d6+'`,\x20`'+CLI_BIN_NAME+_0x3cfdfc(0x163));const _0x3c7df2=buildCanonicalProjectConfig({..._0x517c08},{'appCodes':[_0x59a3d6],'env':typeof _0x517c08[_0x3cfdfc(0x161)]===_0x3cfdfc(0x16e)?_0x517c08[_0x3cfdfc(0x161)]:undefined});writeScopedConfig(_0x3c7df2,_0x4ed66e);const _0x5deb06=_0x4ed66e===_0x3cfdfc(0x160)?'Global':_0x3cfdfc(0x153);return{'ok':!![],'message':'✓\x20'+_0x5deb06+_0x3cfdfc(0x148)+_0x59a3d6+_0x3cfdfc(0x167)};}_0x517c08[_0x17df7e]=_0x59a3d6,writeScopedConfig(_0x517c08,_0x4ed66e);const _0x57d64d=_0x4ed66e===_0x3cfdfc(0x160)?_0x3cfdfc(0x145):'Project';return{'ok':!![],'message':'✓\x20'+_0x57d64d+'\x20'+_0x17df7e+_0x3cfdfc(0x15a)+_0x59a3d6};}export const configSetDefinition={'service':a44_0xd10609(0x170),'command':a44_0xd10609(0x14b),'description':'Set\x20a\x20config\x20value','risk':a44_0xd10609(0x172),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a44_0xd10609(0x16e),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0xd10609(0x15f),'type':'string','description':a44_0xd10609(0x16f),'required':!![]},{'name':a44_0xd10609(0x160),'type':a44_0xd10609(0x16a),'description':a44_0xd10609(0x171),'default':![]}],'execute':execute};function a44_0x5071(_0x5a4a63,_0x5d5079){_0x5a4a63=_0x5a4a63-0x13c;const _0x308c5e=a44_0x308c();let _0x507179=_0x308c5e[_0x5a4a63];return _0x507179;}function a44_0x308c(){const _0x46bb0f=['\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','\x20appcode\x20set\x20to:\x20','apps','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','set','36058240lKBixE','\x20app\x20add\x20<name>\x20--appcode\x20','object','Top-level\x20key\x20\x22','6uiLOcl','Invalid\x20locale\x20value.','key','Project','\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.','locale','Usage:\x20','7235011qOISaN','2897346NksGgz','Missing\x20value.','\x20set\x20to:\x20','join','Missing\x20key.','\x22.\x20Allowed:\x20','2040456FSIEca','value','global','env','12iCtnhc','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','validation','560484lOdXLi','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','includes','Invalid\x20value\x20for\x20\x22','boolean','appcode','1164925aHxhIs','bool','string','Config\x20value','config','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','write','keys','1249FqPJQr','88MfnGrQ','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','\x22\x20is\x20not\x20settable.','riskLevel','str','length','app','Global','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US'];a44_0x308c=function(){return _0x46bb0f;};return a44_0x308c();}
@@ -1 +1 @@
1
- (function(_0xbccfa4,_0x30aadc){var _0x24d8d6=a45_0x2dfb,_0x4da887=_0xbccfa4();while(!![]){try{var _0x438641=parseInt(_0x24d8d6(0x1f8))/0x1*(parseInt(_0x24d8d6(0x1ec))/0x2)+parseInt(_0x24d8d6(0x1ed))/0x3*(-parseInt(_0x24d8d6(0x1f6))/0x4)+parseInt(_0x24d8d6(0x1f4))/0x5*(-parseInt(_0x24d8d6(0x1ee))/0x6)+-parseInt(_0x24d8d6(0x1f9))/0x7*(-parseInt(_0x24d8d6(0x1f2))/0x8)+parseInt(_0x24d8d6(0x1fa))/0x9*(parseInt(_0x24d8d6(0x1fc))/0xa)+-parseInt(_0x24d8d6(0x1ef))/0xb+parseInt(_0x24d8d6(0x1f3))/0xc;if(_0x438641===_0x30aadc)break;else _0x4da887['push'](_0x4da887['shift']());}catch(_0x4c6549){_0x4da887['push'](_0x4da887['shift']());}}}(a45_0x5a71,0x72e72));import{CLI_BIN_NAME}from'../../constant/cli.js';import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};function a45_0x5a71(){var _0x37fe6f=['1266yxdxAA','571602qPugAL','1502743EgSGNd','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','24DebroT','6418812baNSsm','35OPaPyD','global','5636WNSsJQ','validation','2YfWjjM','680785gcDtiL','396gpJWwt','\x20init`\x20first.','206410XHooAm','133852alPNyF'];a45_0x5a71=function(){return _0x37fe6f;};return a45_0x5a71();}export function resolveWriteScope(_0xa4e3fc){var _0x338953=a45_0x2dfb;if(_0xa4e3fc[_0x338953(0x1f5)])return _0x338953(0x1f5);if(!isInProject())throw CliErrors[_0x338953(0x1f7)](_0x338953(0x1f1),_0x338953(0x1f0)+CLI_BIN_NAME+_0x338953(0x1fb));return'project';}function a45_0x2dfb(_0x168465,_0x42aa42){_0x168465=_0x168465-0x1ec;var _0x5a7153=a45_0x5a71();var _0x2dfbbc=_0x5a7153[_0x168465];return _0x2dfbbc;}export function readScopedConfig(_0x5ba369){return readConfigFile(resolveWriteConfigPath(_0x5ba369));}export function writeScopedConfig(_0x155322,_0x464977){writeConfigFile(resolveWriteConfigPath(_0x464977),_0x155322);}
1
+ (function(_0x9d30e4,_0x1fc967){var _0x527512=a45_0x4a96,_0x1df081=_0x9d30e4();while(!![]){try{var _0x2daabd=parseInt(_0x527512(0xaa))/0x1*(parseInt(_0x527512(0xae))/0x2)+-parseInt(_0x527512(0xb3))/0x3+parseInt(_0x527512(0xac))/0x4+-parseInt(_0x527512(0xab))/0x5+-parseInt(_0x527512(0xaf))/0x6+parseInt(_0x527512(0xb2))/0x7+parseInt(_0x527512(0xb1))/0x8;if(_0x2daabd===_0x1fc967)break;else _0x1df081['push'](_0x1df081['shift']());}catch(_0x11aa07){_0x1df081['push'](_0x1df081['shift']());}}}(a45_0x438d,0x86ac5));import{CLI_BIN_NAME}from'../../constant/cli.js';function a45_0x4a96(_0x518e65,_0x223494){_0x518e65=_0x518e65-0xa9;var _0x438d26=a45_0x438d();var _0x4a966e=_0x438d26[_0x518e65];return _0x4a966e;}import{isInProject,resolveWriteConfigPath,readConfigFile,writeConfigFile}from'../../context.js';import{CliErrors}from'../../errors.js';import{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey,normalizeLocale}from'../../config/schema.js';export{CLI_BIN_NAME};export{normalizeLocale};export{CONFIG_ENUM_VALUES,TOP_LEVEL_CONFIG_KEYS,getConfigCommandKeyDescription,getTopLevelConfigKeyList,getTopLevelConfigKeySummary,isTopLevelConfigKey};export function resolveWriteScope(_0x4ed3de){var _0x4264cd=a45_0x4a96;if(_0x4ed3de['global'])return _0x4264cd(0xa9);if(!isInProject())throw CliErrors[_0x4264cd(0xb0)]('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).',_0x4264cd(0xad)+CLI_BIN_NAME+'\x20init`\x20first.');return'project';}export function readScopedConfig(_0x475b4a){return readConfigFile(resolveWriteConfigPath(_0x475b4a));}export function writeScopedConfig(_0x3c7784,_0x169d0b){writeConfigFile(resolveWriteConfigPath(_0x169d0b),_0x3c7784);}function a45_0x438d(){var _0x1ece60=['Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','132wtdFNO','5943810KayChS','validation','10998168qcGLWv','2391368XnaEeH','2556348nDXRQg','global','6052luXkVI','316225LkOPCq','1367160WaNUoS'];a45_0x438d=function(){return _0x1ece60;};return a45_0x438d();}
@@ -1 +1 @@
1
- const a46_0x4bf078=a46_0xf221;function a46_0xf221(_0x56d79d,_0x3e2b26){_0x56d79d=_0x56d79d-0x9c;const _0x3e45e0=a46_0x3e45();let _0xf22194=_0x3e45e0[_0x56d79d];return _0xf22194;}(function(_0x28f8c6,_0x335b35){const _0xd270b7=a46_0xf221,_0x2e3c7d=_0x28f8c6();while(!![]){try{const _0x449701=parseInt(_0xd270b7(0x9e))/0x1*(-parseInt(_0xd270b7(0x9d))/0x2)+-parseInt(_0xd270b7(0x9f))/0x3+-parseInt(_0xd270b7(0xad))/0x4*(-parseInt(_0xd270b7(0xb1))/0x5)+-parseInt(_0xd270b7(0xaa))/0x6*(parseInt(_0xd270b7(0xaf))/0x7)+-parseInt(_0xd270b7(0xae))/0x8*(-parseInt(_0xd270b7(0xab))/0x9)+parseInt(_0xd270b7(0xa6))/0xa*(parseInt(_0xd270b7(0xa4))/0xb)+parseInt(_0xd270b7(0xa1))/0xc*(parseInt(_0xd270b7(0xac))/0xd);if(_0x449701===_0x335b35)break;else _0x2e3c7d['push'](_0x2e3c7d['shift']());}catch(_0x2dffce){_0x2e3c7d['push'](_0x2e3c7d['shift']());}}}(a46_0x3e45,0x99096));import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a46_0x4bf078(0xa2),'operation':a46_0x4bf078(0xa2),'description':a46_0x4bf078(0xa3),'paramsRequired':![],'paramsHint':a46_0x4bf078(0xb0),'helpExtra':[a46_0x4bf078(0x9c),a46_0x4bf078(0xa9),a46_0x4bf078(0xa0),a46_0x4bf078(0xa8),a46_0x4bf078(0xa7),a46_0x4bf078(0xa5)]['join']('\x0a')});function a46_0x3e45(){const _0x206341=['6WohqNP','747261bwqHkg','1670162vFrCJE','1457024WEaxzv','88IurLso','1163827oOsdBo','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','5haTbrT','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','178ClxGVC','10048woYcCs','3227742TuALzQ','\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]','24rRrWeu','filter','Filter\x20dataset\x20records\x20with\x20query\x20conditions','13516382dPUhUp','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','10AkojjF','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions'];a46_0x3e45=function(){return _0x206341;};return a46_0x3e45();}
1
+ function a46_0x187a(_0x152d85,_0x58645b){_0x152d85=_0x152d85-0x19f;const _0x40103f=a46_0x4010();let _0x187ac6=_0x40103f[_0x152d85];return _0x187ac6;}const a46_0x2e57f6=a46_0x187a;(function(_0x33f63b,_0x241077){const _0x377c38=a46_0x187a,_0x5e3af4=_0x33f63b();while(!![]){try{const _0x45d03c=parseInt(_0x377c38(0x1a4))/0x1*(-parseInt(_0x377c38(0x1ae))/0x2)+-parseInt(_0x377c38(0x1a7))/0x3*(-parseInt(_0x377c38(0x1b2))/0x4)+-parseInt(_0x377c38(0x1a9))/0x5*(parseInt(_0x377c38(0x1a0))/0x6)+-parseInt(_0x377c38(0x19f))/0x7*(-parseInt(_0x377c38(0x1b1))/0x8)+-parseInt(_0x377c38(0x1a6))/0x9*(-parseInt(_0x377c38(0x1a2))/0xa)+parseInt(_0x377c38(0x1af))/0xb*(parseInt(_0x377c38(0x1aa))/0xc)+parseInt(_0x377c38(0x1a5))/0xd*(-parseInt(_0x377c38(0x1ad))/0xe);if(_0x45d03c===_0x241077)break;else _0x5e3af4['push'](_0x5e3af4['shift']());}catch(_0x3e1acf){_0x5e3af4['push'](_0x5e3af4['shift']());}}}(a46_0x4010,0xa6672));import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':'filter','operation':'filter','description':a46_0x2e57f6(0x1b3),'paramsRequired':![],'paramsHint':a46_0x2e57f6(0x1b0),'helpExtra':[a46_0x2e57f6(0x1ac),a46_0x2e57f6(0x1a8),'\x20\x20\x20\x20select\x20\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Fields\x20to\x20return,\x20e.g.\x20[\x22id\x22,\x22name\x22,\x22status\x22]',a46_0x2e57f6(0x1a3),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a46_0x2e57f6(0x1a1)][a46_0x2e57f6(0x1ab)]('\x0a')});function a46_0x4010(){const _0x5bfcd4=['JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','8wVBhbs','4WHPZZj','Filter\x20dataset\x20records\x20with\x20query\x20conditions','8141791oTNYRs','426EFpscq','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','2045990REjdTZ','\x20\x20\x20\x20orderBy\x20\x20\x20\x20\x20\x20\x20Array\x20\x20\x20\x20Sort\x20order,\x20e.g.\x20[{\x22id\x22:\x22desc\x22},{\x22name\x22:\x22asc\x22}]','1eGWRfA','91507eJXuAI','27SebjHl','682323dyJjlV','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','24785EQyIvx','4584Qibycd','join','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','3962vrjuQy','538354TVwLxL','37158VIbxAj'];a46_0x4010=function(){return _0x5bfcd4;};return a46_0x4010();}
@@ -1 +1 @@
1
- const a47_0x122aeb=a47_0x15d0;(function(_0x3d2fb0,_0x3611ef){const _0x23afe5=a47_0x15d0,_0x46c8d3=_0x3d2fb0();while(!![]){try{const _0x52c6d3=-parseInt(_0x23afe5(0x1b0))/0x1*(parseInt(_0x23afe5(0x1ad))/0x2)+parseInt(_0x23afe5(0x1b9))/0x3*(-parseInt(_0x23afe5(0x1b3))/0x4)+-parseInt(_0x23afe5(0x1b6))/0x5*(-parseInt(_0x23afe5(0x1b8))/0x6)+parseInt(_0x23afe5(0x1b2))/0x7+parseInt(_0x23afe5(0x1af))/0x8*(parseInt(_0x23afe5(0x1b5))/0x9)+-parseInt(_0x23afe5(0x1b1))/0xa+parseInt(_0x23afe5(0x1b4))/0xb;if(_0x52c6d3===_0x3611ef)break;else _0x46c8d3['push'](_0x46c8d3['shift']());}catch(_0x28c598){_0x46c8d3['push'](_0x46c8d3['shift']());}}}(a47_0x42fa,0xaac38));function a47_0x15d0(_0x442eaa,_0x298fb4){_0x442eaa=_0x442eaa-0x1ad;const _0x42fa21=a47_0x42fa();let _0x15d09=_0x42fa21[_0x442eaa];return _0x15d09;}function a47_0x42fa(){const _0x3cddbd=['5302220eDScgA','8NJwmMg','23258961DFfELi','594648SwxGTI','5KcfjNz','Get\x20a\x20single\x20record\x20by\x20ID','3328548cOAoMm','1656024YskDep','838WmbGXn','getOne','32snUwKT','1762mDUWBV','11492150hJOpCm'];a47_0x42fa=function(){return _0x3cddbd;};return a47_0x42fa();}import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':'getOne','operation':a47_0x122aeb(0x1ae),'description':a47_0x122aeb(0x1b7),'paramsRequired':!![],'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'});
1
+ const a47_0x12f8db=a47_0x5130;(function(_0x422ff2,_0x381e8f){const _0x1f0a03=a47_0x5130,_0x11de91=_0x422ff2();while(!![]){try{const _0x30ab51=parseInt(_0x1f0a03(0x9b))/0x1*(parseInt(_0x1f0a03(0x9f))/0x2)+-parseInt(_0x1f0a03(0x9c))/0x3*(parseInt(_0x1f0a03(0xa2))/0x4)+parseInt(_0x1f0a03(0xa0))/0x5+-parseInt(_0x1f0a03(0x9a))/0x6*(parseInt(_0x1f0a03(0xa3))/0x7)+parseInt(_0x1f0a03(0xa5))/0x8+-parseInt(_0x1f0a03(0x9e))/0x9*(parseInt(_0x1f0a03(0xa4))/0xa)+parseInt(_0x1f0a03(0x99))/0xb;if(_0x30ab51===_0x381e8f)break;else _0x11de91['push'](_0x11de91['shift']());}catch(_0x532180){_0x11de91['push'](_0x11de91['shift']());}}}(a47_0x1ff4,0x29817));import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':a47_0x12f8db(0xa6),'operation':a47_0x12f8db(0xa6),'description':a47_0x12f8db(0xa1),'paramsRequired':!![],'paramsHint':a47_0x12f8db(0x9d)});function a47_0x5130(_0x2fc1b8,_0x1f2123){_0x2fc1b8=_0x2fc1b8-0x99;const _0x1ff4d7=a47_0x1ff4();let _0x513048=_0x1ff4d7[_0x2fc1b8];return _0x513048;}function a47_0x1ff4(){const _0x343769=['getOne','129063nUXZGR','5682YDWOiw','5okOLyJ','3OAtFkW','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','2500434KggOtB','51670seyTza','1506515eWbcQM','Get\x20a\x20single\x20record\x20by\x20ID','781796GUOQlZ','217VfzGZD','10SdFKbR','1843424FvDlVE'];a47_0x1ff4=function(){return _0x343769;};return a47_0x1ff4();}
@@ -1 +1 @@
1
- (function(_0x16123a,_0x1125c2){const _0xba90d=a48_0x5833,_0x1ddbee=_0x16123a();while(!![]){try{const _0xf0dcc4=-parseInt(_0xba90d(0x1f3))/0x1+-parseInt(_0xba90d(0x1f7))/0x2*(-parseInt(_0xba90d(0x1f8))/0x3)+parseInt(_0xba90d(0x1f4))/0x4*(-parseInt(_0xba90d(0x1ef))/0x5)+-parseInt(_0xba90d(0x1f2))/0x6*(-parseInt(_0xba90d(0x1f0))/0x7)+parseInt(_0xba90d(0x1f1))/0x8*(parseInt(_0xba90d(0x1f9))/0x9)+-parseInt(_0xba90d(0x1fa))/0xa*(parseInt(_0xba90d(0x1f6))/0xb)+-parseInt(_0xba90d(0x1f5))/0xc;if(_0xf0dcc4===_0x1125c2)break;else _0x1ddbee['push'](_0x1ddbee['shift']());}catch(_0xf6a602){_0x1ddbee['push'](_0x1ddbee['shift']());}}}(a48_0x29c4,0x1c737));import{dataFilter}from'../../commands/data/filter.js';function a48_0x5833(_0x533288,_0x3560d8){_0x533288=_0x533288-0x1ef;const _0x29c4c9=a48_0x29c4();let _0x583376=_0x29c4c9[_0x533288];return _0x583376;}import{dataGetOne}from'../../commands/data/getOne.js';function a48_0x29c4(){const _0x26dfae=['35rFRvIU','40WHCbtF','272004fywLQp','144030cqVQcC','8foCOhF','427164tdXfFd','2399892cJlJdj','31762SGhBJR','39wxvBJv','386649XFwSwR','10lgHsgO','333985cpOCgK'];a48_0x29c4=function(){return _0x26dfae;};return a48_0x29c4();}export const dataDefinitions=[dataFilter,dataGetOne];
1
+ function a48_0x5d84(_0x330d36,_0x3b9755){_0x330d36=_0x330d36-0x1d8;const _0x234025=a48_0x2340();let _0x5d8450=_0x234025[_0x330d36];return _0x5d8450;}(function(_0x1245b0,_0x25d49b){const _0x5721cc=a48_0x5d84,_0x1a254b=_0x1245b0();while(!![]){try{const _0x51aff3=-parseInt(_0x5721cc(0x1db))/0x1*(parseInt(_0x5721cc(0x1e2))/0x2)+-parseInt(_0x5721cc(0x1d8))/0x3*(-parseInt(_0x5721cc(0x1e3))/0x4)+parseInt(_0x5721cc(0x1e0))/0x5*(-parseInt(_0x5721cc(0x1da))/0x6)+-parseInt(_0x5721cc(0x1df))/0x7+-parseInt(_0x5721cc(0x1de))/0x8+-parseInt(_0x5721cc(0x1e1))/0x9*(-parseInt(_0x5721cc(0x1dc))/0xa)+-parseInt(_0x5721cc(0x1dd))/0xb*(-parseInt(_0x5721cc(0x1d9))/0xc);if(_0x51aff3===_0x25d49b)break;else _0x1a254b['push'](_0x1a254b['shift']());}catch(_0x5aec0d){_0x1a254b['push'](_0x1a254b['shift']());}}}(a48_0x2340,0x9d9e5));import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';function a48_0x2340(){const _0x890143=['5494071QStpfQ','975272JRxgmB','8375605veJCiP','5674675kaDCDn','1071dSpIOz','18BQmjoG','46912YxSUwN','24zgOCEC','84cTdZAK','6IPEBdw','56099VtRkhP','1160YBPpXl'];a48_0x2340=function(){return _0x890143;};return a48_0x2340();}export const dataDefinitions=[dataFilter,dataGetOne];
@@ -1 +1 @@
1
- (function(_0x3ca7e0,_0x4b9514){const _0x1ab1e5=a49_0x1498,_0x13d2bc=_0x3ca7e0();while(!![]){try{const _0xfc91e2=-parseInt(_0x1ab1e5(0x184))/0x1+parseInt(_0x1ab1e5(0x183))/0x2+parseInt(_0x1ab1e5(0x17a))/0x3*(parseInt(_0x1ab1e5(0x182))/0x4)+parseInt(_0x1ab1e5(0x177))/0x5+-parseInt(_0x1ab1e5(0x181))/0x6+-parseInt(_0x1ab1e5(0x178))/0x7*(-parseInt(_0x1ab1e5(0x189))/0x8)+-parseInt(_0x1ab1e5(0x180))/0x9*(-parseInt(_0x1ab1e5(0x192))/0xa);if(_0xfc91e2===_0x4b9514)break;else _0x13d2bc['push'](_0x13d2bc['shift']());}catch(_0x244cda){_0x13d2bc['push'](_0x13d2bc['shift']());}}}(a49_0x1932,0x96ce6));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x663873){const _0x30df45=a49_0x1498;if(!_0x663873)throw CliErrors[_0x30df45(0x17c)](_0x30df45(0x17b),_0x30df45(0x185));const _0x1e4d93=_0x663873['id'];if(_0x1e4d93===undefined||_0x1e4d93===null||_0x1e4d93==='')throw CliErrors[_0x30df45(0x175)](_0x30df45(0x18c),_0x30df45(0x176));}function a49_0x1932(){const _0x419323=['data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','getOne','paramsHint','code','operation','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','10FjmEPx','data','paramsRequired','helpExtra','validation','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','2461490jDcZpr','203doGqUk','compress','1679988rEsGTK','params','flagMissing','alias','description','str','3372363sMXuwQ','7005702hNbcQR','8BaDRdF','555830VCQoKl','655739zJtFEB','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','string','command','appCode','48592lSAizX','now','\x20completed\x20in\x20'];a49_0x1932=function(){return _0x419323;};return a49_0x1932();}function a49_0x1498(_0x155a2d,_0x5b2bb6){_0x155a2d=_0x155a2d-0x175;const _0x1932e4=a49_0x1932();let _0x1498c9=_0x1932e4[_0x155a2d];return _0x1498c9;}function parseCommandParams(_0x36a52b){return parseJsonParams(_0x36a52b)??{};}export function buildDataCommand(_0xaf1d10){const _0x4f3da5=a49_0x1498,_0x845445=_0x4f3da5(0x191);return{'service':_0x4f3da5(0x193),'command':_0xaf1d10[_0x4f3da5(0x187)],'description':_0xaf1d10[_0x4f3da5(0x17e)],'risk':'read','defaultOutputFormat':_0x4f3da5(0x179),'helpExtra':_0xaf1d10[_0x4f3da5(0x195)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x4f3da5(0x17d),'type':_0x4f3da5(0x186),'description':_0x845445},{'name':_0x4f3da5(0x17b),'type':'string','description':_0xaf1d10[_0x4f3da5(0x18e)]}],async 'validate'(_0x3772bf){const _0x358729=_0x4f3da5,_0x3c991c=_0x3772bf[_0x358729(0x17f)]('params');if(_0xaf1d10[_0x358729(0x194)]&&!_0x3c991c)throw CliErrors[_0x358729(0x17c)]('params',_0xaf1d10['paramsHint']);const _0x2c6faf=parseJsonParams(_0x3c991c);_0xaf1d10[_0x358729(0x190)]===_0x358729(0x18d)&&assertGetOneId(_0x2c6faf);},async 'execute'(_0xdc0a48){const _0x277ae5=_0x4f3da5,_0x1f94a0=parseCommandParams(_0xdc0a48[_0x277ae5(0x17f)](_0x277ae5(0x17b))),_0x599da9=Date[_0x277ae5(0x18a)](),_0x58c70e=await executeDatasetDataOperation(_0xdc0a48[_0x277ae5(0x188)],_0xdc0a48[_0x277ae5(0x17f)](_0x277ae5(0x18f)),_0xaf1d10[_0x277ae5(0x190)],_0x1f94a0),_0x3937a0=Date[_0x277ae5(0x18a)]()-_0x599da9;return{'ok':!![],'data':{'result':_0x58c70e,'elapsed':_0x3937a0},'message':'data\x20'+_0xaf1d10['command']+_0x277ae5(0x18b)+_0x3937a0+'ms'};}};}
1
+ (function(_0x58206a,_0x401637){const _0x39299d=a49_0x1268,_0x4d27c4=_0x58206a();while(!![]){try{const _0x5a4597=parseInt(_0x39299d(0x131))/0x1+-parseInt(_0x39299d(0x12b))/0x2+parseInt(_0x39299d(0x12d))/0x3+parseInt(_0x39299d(0x11b))/0x4+-parseInt(_0x39299d(0x123))/0x5*(parseInt(_0x39299d(0x11e))/0x6)+-parseInt(_0x39299d(0x121))/0x7+parseInt(_0x39299d(0x127))/0x8;if(_0x5a4597===_0x401637)break;else _0x4d27c4['push'](_0x4d27c4['shift']());}catch(_0xa186c7){_0x4d27c4['push'](_0x4d27c4['shift']());}}}(a49_0x2a0f,0xd5441));import{executeDatasetDataOperation}from'../../core/api-client.js';import{CODE_FLAG,APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CliErrors}from'../../errors.js';function a49_0x2a0f(){const _0x3517ec=['1186425kCNyOg','description','string','data\x20','21974064eRtSmO','str','data','alias','2158762boKBsM','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','108717bRBKms','operation','validation','\x20completed\x20in\x20','280061WcZEYA','now','paramsRequired','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','params','compress','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','4342876ycOtVH','command','appCode','30UZonHX','flagMissing','paramsHint','7066038ZBwSfi','code'];a49_0x2a0f=function(){return _0x3517ec;};return a49_0x2a0f();}function a49_0x1268(_0x3394d0,_0x823aff){_0x3394d0=_0x3394d0-0x115;const _0x2a0f89=a49_0x2a0f();let _0x1268fd=_0x2a0f89[_0x3394d0];return _0x1268fd;}import{parseJsonParams}from'../../utils/params.js';function assertGetOneId(_0x44e83c){const _0x26a898=a49_0x1268;if(!_0x44e83c)throw CliErrors['flagMissing'](_0x26a898(0x118),_0x26a898(0x117));const _0x307928=_0x44e83c['id'];if(_0x307928===undefined||_0x307928===null||_0x307928==='')throw CliErrors[_0x26a898(0x12f)]('data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params',_0x26a898(0x12c));}function parseCommandParams(_0x2df3ba){return parseJsonParams(_0x2df3ba)??{};}export function buildDataCommand(_0x225c71){const _0x4af1a9=a49_0x1268,_0x4deb40=_0x4af1a9(0x11a);return{'service':_0x4af1a9(0x129),'command':_0x225c71[_0x4af1a9(0x11c)],'description':_0x225c71[_0x4af1a9(0x124)],'risk':'read','defaultOutputFormat':_0x4af1a9(0x119),'helpExtra':_0x225c71['helpExtra'],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x4af1a9(0x12a),'type':_0x4af1a9(0x125),'description':_0x4deb40},{'name':'params','type':_0x4af1a9(0x125),'description':_0x225c71[_0x4af1a9(0x120)]}],async 'validate'(_0x1e2fb2){const _0x5644be=_0x4af1a9,_0x5a02a4=_0x1e2fb2[_0x5644be(0x128)](_0x5644be(0x118));if(_0x225c71[_0x5644be(0x116)]&&!_0x5a02a4)throw CliErrors[_0x5644be(0x11f)](_0x5644be(0x118),_0x225c71[_0x5644be(0x120)]);const _0x5eaa9e=parseJsonParams(_0x5a02a4);_0x225c71[_0x5644be(0x12e)]==='getOne'&&assertGetOneId(_0x5eaa9e);},async 'execute'(_0xfa935){const _0x49d473=_0x4af1a9,_0x4ef048=parseCommandParams(_0xfa935[_0x49d473(0x128)](_0x49d473(0x118))),_0x2c3aee=Date[_0x49d473(0x115)](),_0x2b6345=await executeDatasetDataOperation(_0xfa935[_0x49d473(0x11d)],_0xfa935['str'](_0x49d473(0x122)),_0x225c71[_0x49d473(0x12e)],_0x4ef048),_0x5adf31=Date[_0x49d473(0x115)]()-_0x2c3aee;return{'ok':!![],'data':{'result':_0x2b6345,'elapsed':_0x5adf31},'message':_0x49d473(0x126)+_0x225c71['command']+_0x49d473(0x130)+_0x5adf31+'ms'};}};}
@@ -1 +1 @@
1
- const a50_0x2c5d87=a50_0x1b78;(function(_0x1c40c2,_0x70bacb){const _0x5c5823=a50_0x1b78,_0x3ae1be=_0x1c40c2();while(!![]){try{const _0x15bd4d=parseInt(_0x5c5823(0xdb))/0x1*(-parseInt(_0x5c5823(0xdd))/0x2)+-parseInt(_0x5c5823(0xe0))/0x3+-parseInt(_0x5c5823(0xe2))/0x4+-parseInt(_0x5c5823(0xdc))/0x5+parseInt(_0x5c5823(0xda))/0x6+-parseInt(_0x5c5823(0xd9))/0x7+-parseInt(_0x5c5823(0xe4))/0x8*(-parseInt(_0x5c5823(0xed))/0x9);if(_0x15bd4d===_0x70bacb)break;else _0x3ae1be['push'](_0x3ae1be['shift']());}catch(_0x2fcc55){_0x3ae1be['push'](_0x3ae1be['shift']());}}}(a50_0x4818,0x76245));function a50_0x1b78(_0x501104,_0x4b81cb){_0x501104=_0x501104-0xcf;const _0x481872=a50_0x4818();let _0x1b78f2=_0x481872[_0x501104];return _0x1b78f2;}import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a50_0x2c5d87(0xeb),'filter':'lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','getOne':'lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress'};export const RUNTIME_DATA_ACCESS_SUMMARY=a50_0x2c5d87(0xe7);function valueToString(_0x9432e8){const _0x108b6e=a50_0x2c5d87;return _0x9432e8==null?'':String(_0x9432e8)[_0x108b6e(0xd4)]();}function a50_0x4818(){const _0x39633e=['请先将该数据集升级/迁移为\x20DB\x20table\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','dbtableConfig','1584972CAUbqL','\x20类型,不适合作为\x20','2429312XIMzuV','source','27953680ozGWqY','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','datasetName','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','validation','dbId','sourceType','lovrabet','BFF\x20/\x20SQL\x20等研发态资产','9lzMgZm','dbtable','join','filter','tableName','dataset','trim','UNKNOWN','toUpperCase','modelCode','\x20的数据源。','6639724EfRuFO','3487698qMionH','540889scNQKs','4832555YclkDJ','2FUagdN'];a50_0x4818=function(){return _0x39633e;};return a50_0x4818();}function getDatasetCode(_0x4fadf7){const _0x412ff8=a50_0x2c5d87;return valueToString(_0x4fadf7['code']??_0x4fadf7[_0x412ff8(0xd7)]??_0x4fadf7[_0x412ff8(0xd3)]?.['datasetCode']);}function getDatasetName(_0x387666){const _0x248729=a50_0x2c5d87;return valueToString(_0x387666['name']??_0x387666[_0x248729(0xd3)]?.[_0x248729(0xe6)])||'unknown';}function getDatasetSource(_0x5a3772){const _0x505fff=a50_0x2c5d87;return valueToString(_0x5a3772[_0x505fff(0xe3)]??_0x5a3772['dataset']?.[_0x505fff(0xea)])[_0x505fff(0xd6)]();}function getDbtableConfig(_0x30eaad){const _0x608831=a50_0x2c5d87,_0x3b97a8=_0x30eaad[_0x608831(0xdf)]??_0x30eaad[_0x608831(0xcf)];return _0x3b97a8&&typeof _0x3b97a8==='object'?_0x3b97a8:{};}export function isDbBackedDataset(_0x544b25){const _0xc61ca2=a50_0x2c5d87,_0xdcbf41=getDatasetSource(_0x544b25);if(_0xdcbf41==='METADATA')return![];const _0x25f11d=getDbtableConfig(_0x544b25),_0x4ac10a=_0x25f11d[_0xc61ca2(0xe9)]??_0x25f11d['id'],_0x5d64a6=valueToString(_0x25f11d[_0xc61ca2(0xd2)]??_0x544b25[_0xc61ca2(0xd2)]??_0x544b25['dataset']?.[_0xc61ca2(0xd2)]);return _0x4ac10a!==undefined&&_0x4ac10a!==null&&_0x5d64a6['length']>0x0;}export function filterDbBackedDatasets(_0xed0c1d){const _0x560c3a=a50_0x2c5d87;return _0xed0c1d[_0x560c3a(0xd1)](_0x57da40=>isDbBackedDataset(_0x57da40));}export function buildDbTableUpgradeMessage(_0x1114fb,_0x32bc42=a50_0x2c5d87(0xec)){const _0x49ddcd=a50_0x2c5d87,_0x3da34a=getDatasetSource(_0x1114fb)||_0x49ddcd(0xd5),_0x582baa=getDatasetName(_0x1114fb),_0x53268b=getDatasetCode(_0x1114fb),_0x3fcd9f=_0x53268b?'\x20('+_0x53268b+')':'';return['当前数据集\x20\x22'+_0x582baa+'\x22'+_0x3fcd9f+'\x20是\x20'+_0x3da34a+_0x49ddcd(0xe1)+_0x32bc42+_0x49ddcd(0xd8),'原因:该类研发态资产需要\x20DB\x20table、dbId、tableName\x20与数据库连接上下文,并深度依赖\x20SQL\x20执行链路。',_0x49ddcd(0xde),_0x49ddcd(0xe5)+RUNTIME_DATA_ACCESS_COMMANDS[_0x49ddcd(0xd1)]+';'+RUNTIME_DATA_ACCESS_COMMANDS['getOne']+'。'][_0x49ddcd(0xd0)]('\x20');}export function assertDatasetSupportsLocalDevelopment(_0x225305,_0x4349da){const _0x3f3e45=a50_0x2c5d87;if(!isDbBackedDataset(_0x225305))throw CliErrors[_0x3f3e45(0xe8)](buildDbTableUpgradeMessage(_0x225305,_0x4349da));}
1
+ const a50_0x26140f=a50_0x336f;function a50_0x369e(){const _0x95b329=['3356755ymdgoC','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','object','\x20是\x20','name','1325481nyBKgg','filter','modelCode','当前数据集\x20\x22','BFF\x20/\x20SQL\x20等研发态资产','dbtable','length','join','UNKNOWN','12LSLkGz','METADATA','5118848DcGvEF','dbtableConfig','769806vqtZyF','\x20类型,不适合作为\x20','getOne','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','224ALUZqA','95178eBrNfI','10844nljxXe','原因:该类研发态资产需要\x20DB\x20table、dbId、tableName\x20与数据库连接上下文,并深度依赖\x20SQL\x20执行链路。','validation','1538972HQNSUd','dataset','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','code','toUpperCase','tableName','datasetCode'];a50_0x369e=function(){return _0x95b329;};return a50_0x369e();}function a50_0x336f(_0x504815,_0x1130bf){_0x504815=_0x504815-0x12c;const _0x369e98=a50_0x369e();let _0x336ffa=_0x369e98[_0x504815];return _0x336ffa;}(function(_0xb1dc25,_0x23bd49){const _0x3f712f=a50_0x336f,_0x412a81=_0xb1dc25();while(!![]){try{const _0x1cfd89=-parseInt(_0x3f712f(0x13a))/0x1*(-parseInt(_0x3f712f(0x144))/0x2)+-parseInt(_0x3f712f(0x131))/0x3+parseInt(_0x3f712f(0x147))/0x4+-parseInt(_0x3f712f(0x12c))/0x5+parseInt(_0x3f712f(0x143))/0x6*(parseInt(_0x3f712f(0x142))/0x7)+parseInt(_0x3f712f(0x13c))/0x8+-parseInt(_0x3f712f(0x13e))/0x9;if(_0x1cfd89===_0x23bd49)break;else _0x412a81['push'](_0x412a81['shift']());}catch(_0x644a15){_0x412a81['push'](_0x412a81['shift']());}}}(a50_0x369e,0x614e7));import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':'lovrabet','filter':'lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','getOne':a50_0x26140f(0x12d)};export const RUNTIME_DATA_ACCESS_SUMMARY=a50_0x26140f(0x149);function valueToString(_0x4ff38f){return _0x4ff38f==null?'':String(_0x4ff38f)['trim']();}function getDatasetCode(_0x51ded7){const _0x57e9f8=a50_0x26140f;return valueToString(_0x51ded7[_0x57e9f8(0x14a)]??_0x51ded7[_0x57e9f8(0x133)]??_0x51ded7['dataset']?.[_0x57e9f8(0x14d)]);}function getDatasetName(_0x14dfca){const _0x505fb7=a50_0x26140f;return valueToString(_0x14dfca[_0x505fb7(0x130)]??_0x14dfca['dataset']?.['datasetName'])||'unknown';}function getDatasetSource(_0x7f9a26){const _0x199567=a50_0x26140f;return valueToString(_0x7f9a26['source']??_0x7f9a26[_0x199567(0x148)]?.['sourceType'])[_0x199567(0x14b)]();}function getDbtableConfig(_0x3ef0d1){const _0x390d83=a50_0x26140f,_0x4bccac=_0x3ef0d1[_0x390d83(0x13d)]??_0x3ef0d1[_0x390d83(0x136)];return _0x4bccac&&typeof _0x4bccac===_0x390d83(0x12e)?_0x4bccac:{};}export function isDbBackedDataset(_0x2bd559){const _0x74525=a50_0x26140f,_0x3d32d9=getDatasetSource(_0x2bd559);if(_0x3d32d9===_0x74525(0x13b))return![];const _0x361826=getDbtableConfig(_0x2bd559),_0x5deb20=_0x361826['dbId']??_0x361826['id'],_0x5b32bf=valueToString(_0x361826['tableName']??_0x2bd559['tableName']??_0x2bd559[_0x74525(0x148)]?.[_0x74525(0x14c)]);return _0x5deb20!==undefined&&_0x5deb20!==null&&_0x5b32bf[_0x74525(0x137)]>0x0;}export function filterDbBackedDatasets(_0x3a0da9){const _0x1719e9=a50_0x26140f;return _0x3a0da9[_0x1719e9(0x132)](_0x54cc24=>isDbBackedDataset(_0x54cc24));}export function buildDbTableUpgradeMessage(_0x35e47f,_0x3c732d=a50_0x26140f(0x135)){const _0x503eb2=a50_0x26140f,_0x5b1c92=getDatasetSource(_0x35e47f)||_0x503eb2(0x139),_0x5cad8c=getDatasetName(_0x35e47f),_0x4c47bc=getDatasetCode(_0x35e47f),_0x1bebca=_0x4c47bc?'\x20('+_0x4c47bc+')':'';return[_0x503eb2(0x134)+_0x5cad8c+'\x22'+_0x1bebca+_0x503eb2(0x12f)+_0x5b1c92+_0x503eb2(0x13f)+_0x3c732d+'\x20的数据源。',_0x503eb2(0x145),'请先将该数据集升级/迁移为\x20DB\x20table\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。',_0x503eb2(0x141)+RUNTIME_DATA_ACCESS_COMMANDS[_0x503eb2(0x132)]+';'+RUNTIME_DATA_ACCESS_COMMANDS[_0x503eb2(0x140)]+'。'][_0x503eb2(0x138)]('\x20');}export function assertDatasetSupportsLocalDevelopment(_0x5155ff,_0x52d410){const _0x2017b7=a50_0x26140f;if(!isDbBackedDataset(_0x5155ff))throw CliErrors[_0x2017b7(0x146)](buildDbTableUpgradeMessage(_0x5155ff,_0x52d410));}