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

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 (200) 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/nudge.js +1 -1
  80. package/lib/commands/issue/report.js +1 -1
  81. package/lib/commands/issue/shared.js +1 -1
  82. package/lib/commands/logs/index.js +1 -1
  83. package/lib/commands/menu/index.js +1 -1
  84. package/lib/commands/menu/shared/compare-table.js +1 -1
  85. package/lib/commands/menu/shared/index.js +1 -1
  86. package/lib/commands/menu/shared/inquirer.js +1 -1
  87. package/lib/commands/menu/shared/local-pages.js +1 -1
  88. package/lib/commands/menu/shared/logic.js +1 -1
  89. package/lib/commands/menu/shared/service.js +1 -1
  90. package/lib/commands/menu/shared/sync-core.js +1 -1
  91. package/lib/commands/menu/shared/update-core.js +1 -1
  92. package/lib/commands/menu/shared/valid-url.js +1 -1
  93. package/lib/commands/menu/sync.js +1 -1
  94. package/lib/commands/menu/update.js +1 -1
  95. package/lib/commands/page/generate-start.js +1 -1
  96. package/lib/commands/page/generate-status.js +1 -1
  97. package/lib/commands/page/index.js +1 -1
  98. package/lib/commands/page/pull.js +1 -1
  99. package/lib/commands/page/push.js +1 -1
  100. package/lib/commands/page/shared.js +1 -1
  101. package/lib/commands/page/standard-page-status.js +1 -1
  102. package/lib/commands/page/sync.js +1 -1
  103. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  104. package/lib/commands/project/create/format-elapsed.js +1 -1
  105. package/lib/commands/project/create/main.js +1 -1
  106. package/lib/commands/project/create/non-interactive.js +1 -1
  107. package/lib/commands/project/create/project-template-path.js +1 -1
  108. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  109. package/lib/commands/project/create/use-format-code.js +1 -1
  110. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  111. package/lib/commands/project/index.js +1 -1
  112. package/lib/commands/project/init.js +1 -1
  113. package/lib/commands/project/upgrade.js +1 -1
  114. package/lib/commands/registry.js +1 -1
  115. package/lib/commands/run/index.js +1 -1
  116. package/lib/commands/schema.js +1 -1
  117. package/lib/commands/skill/index.js +1 -1
  118. package/lib/commands/sql/create.js +1 -1
  119. package/lib/commands/sql/delete.js +1 -1
  120. package/lib/commands/sql/detail.js +1 -1
  121. package/lib/commands/sql/exec.js +1 -1
  122. package/lib/commands/sql/index.js +1 -1
  123. package/lib/commands/sql/list.js +1 -1
  124. package/lib/commands/sql/pull.js +1 -1
  125. package/lib/commands/sql/push.js +1 -1
  126. package/lib/commands/sql/save.js +1 -1
  127. package/lib/commands/sql/shared.js +1 -1
  128. package/lib/commands/sql/status.js +1 -1
  129. package/lib/commands/sql/validate.js +1 -1
  130. package/lib/config/schema.js +1 -1
  131. package/lib/constant/cdn.js +1 -1
  132. package/lib/constant/cli.js +1 -1
  133. package/lib/constant/defaults.js +1 -1
  134. package/lib/constant/domain.js +1 -1
  135. package/lib/constant/env.js +1 -1
  136. package/lib/constant/output.js +1 -1
  137. package/lib/constant/paths.js +1 -1
  138. package/lib/constant/risk.js +1 -1
  139. package/lib/context.js +1 -1
  140. package/lib/core/alias-resolver.js +1 -1
  141. package/lib/core/api-client.js +1 -1
  142. package/lib/core/bff/config.js +1 -1
  143. package/lib/core/bff/file-system.js +1 -1
  144. package/lib/core/bff/hash.js +1 -1
  145. package/lib/core/bff/lock.js +1 -1
  146. package/lib/core/bff/utils.js +1 -1
  147. package/lib/core/db-resolver.js +1 -1
  148. package/lib/core/page/file-system.js +1 -1
  149. package/lib/core/page/hash.js +1 -1
  150. package/lib/core/page/lock.js +1 -1
  151. package/lib/core/sql-sync/config.js +1 -1
  152. package/lib/core/sql-sync/file-system.js +1 -1
  153. package/lib/core/sql-sync/hash.js +1 -1
  154. package/lib/core/sql-sync/lock.js +1 -1
  155. package/lib/core/sql-sync/utils.js +1 -1
  156. package/lib/core/sql-validator.js +1 -1
  157. package/lib/errors.js +1 -1
  158. package/lib/framework/build-all-flags.js +1 -1
  159. package/lib/framework/flags.js +1 -1
  160. package/lib/framework/help.js +1 -1
  161. package/lib/framework/index.js +1 -1
  162. package/lib/framework/output.js +1 -1
  163. package/lib/framework/response.js +1 -1
  164. package/lib/framework/runner-alias.js +1 -1
  165. package/lib/framework/runner.js +1 -1
  166. package/lib/framework/schema-export.js +1 -1
  167. package/lib/framework/types.js +1 -1
  168. package/lib/generated/build-info.js +1 -1
  169. package/lib/help.js +1 -1
  170. package/lib/skills/main.js +1 -1
  171. package/lib/skills/npx-skills-add.js +1 -1
  172. package/lib/telemetry/cli-command-trace.js +1 -1
  173. package/lib/telemetry/cli-help-trace.js +1 -1
  174. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  175. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  176. package/lib/telemetry/send-cli-trace-log.js +1 -1
  177. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  178. package/lib/utils/ai_config.js +1 -1
  179. package/lib/utils/apply-jq-filter.js +1 -1
  180. package/lib/utils/cdn-config.js +1 -1
  181. package/lib/utils/check-sdk-version.js +1 -1
  182. package/lib/utils/cli-version-check.js +1 -1
  183. package/lib/utils/cli-version-policy.js +1 -1
  184. package/lib/utils/config.js +1 -1
  185. package/lib/utils/copy-directory.js +1 -1
  186. package/lib/utils/entity-with-id.js +1 -1
  187. package/lib/utils/file-utils.js +1 -1
  188. package/lib/utils/guides-cdn.js +1 -1
  189. package/lib/utils/http-client.js +1 -1
  190. package/lib/utils/is-non-interactive.js +1 -1
  191. package/lib/utils/logger.js +1 -1
  192. package/lib/utils/params.js +1 -1
  193. package/lib/utils/platform.js +1 -1
  194. package/lib/utils/rules-cdn.js +1 -1
  195. package/lib/utils/sleep.js +1 -1
  196. package/lib/utils/template-replacer.js +1 -1
  197. package/lib/utils/version.js +1 -1
  198. package/lib/utils/with-active-cookie.js +1 -1
  199. package/lib/utils/write-cli-side-channel.js +1 -1
  200. package/package.json +2 -2
@@ -1 +1 @@
1
- const a32_0x3e2145=a32_0x2e7a;(function(_0x44eb9d,_0x3b905b){const _0x2ed21a=a32_0x2e7a,_0x3d1b31=_0x44eb9d();while(!![]){try{const _0x52f598=-parseInt(_0x2ed21a(0x196))/0x1*(-parseInt(_0x2ed21a(0x1aa))/0x2)+-parseInt(_0x2ed21a(0x187))/0x3+parseInt(_0x2ed21a(0x184))/0x4*(parseInt(_0x2ed21a(0x19b))/0x5)+parseInt(_0x2ed21a(0x17a))/0x6+parseInt(_0x2ed21a(0x195))/0x7+-parseInt(_0x2ed21a(0x199))/0x8+-parseInt(_0x2ed21a(0x165))/0x9;if(_0x52f598===_0x3b905b)break;else _0x3d1b31['push'](_0x3d1b31['shift']());}catch(_0x4cb52c){_0x3d1b31['push'](_0x3d1b31['shift']());}}}(a32_0xb239,0xba544));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';function a32_0x2e7a(_0x9ae700,_0x38f129){_0x9ae700=_0x9ae700-0x15f;const _0xb239bd=a32_0xb239();let _0x2e7ac2=_0xb239bd[_0x9ae700];return _0x2e7ac2;}function a32_0xb239(){const _0x32bbb3=['datasetCode','unchanged','Local\x20function\x20not\x20found:\x20','2530300zqRAGb','script','stringify','851127BwZwqx','string','cleared','HOOK','Would\x20inspect\x20','Lock\x20scope\x20for\x20app\x20\x22','Force\x20push\x20ignoring\x20hash\x20protection','attempted','lockFilePath','\x20local\x20BFF\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','\x20failed,\x20','runtime\x20cache\x20cleared','Push\x20complete:\x20','lockKey','6564418omLtxw','22367eflJaO','join','bff','3320704JWksIT','name','10EoSjlM','hash','ENDPOINT','every','No\x20local\x20BFF\x20functions\x20found.','description','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','status','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','\x22.\x20','boolean','datasetCodeToDataset','alias','would_push','update','62MmfgXK','remoteId','validation','functions','map','parse','force','POST','\x22\x20not\x20found\x20after\x20ensureLockScope.','19533681TXvgnj','runtime\x20cache\x20not\x20needed','type','appCode','datasetId','Run\x20`','operationType','functionNode','str','apps','values','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','has','push','lastSync','create','runtime\x20cache\x20clear\x20failed','COMMON','bool','version',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','4416654pyuaNO','get','length','some','scriptsRoot','filter','filePath'];a32_0xb239=function(){return _0x32bbb3;};return a32_0xb239();}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_0x3e2145(0x198),'command':a32_0x3e2145(0x172),'description':'Push\x20local\x20BFF\x20scripts\x20to\x20remote','risk':'high-risk-write','flags':[{'name':a32_0x3e2145(0x167),'type':a32_0x3e2145(0x188),'description':'Push\x20only\x20this\x20script\x20type','enum':[a32_0x3e2145(0x176),a32_0x3e2145(0x19d),a32_0x3e2145(0x18a)]},{'name':a32_0x3e2145(0x19a),'type':a32_0x3e2145(0x188),'description':a32_0x3e2145(0x1a1)},{'name':a32_0x3e2145(0x162),'type':a32_0x3e2145(0x1a5),'description':a32_0x3e2145(0x18d)}],async 'dryRun'(_0x20547b){const _0x223400=a32_0x3e2145,_0x2b9b8a=loadBffProjectConfig(_0x20547b[_0x223400(0x168)]),_0x1f1276=await readBffLockFile(_0x2b9b8a['lockFilePath']),{appLock:_0xe60bf8}=ensureLockScope(_0x1f1276??createEmptyBffLock(),_0x20547b['appCode'],_0x2b9b8a[_0x223400(0x17e)],_0x223400(0x172)),_0x1f0bb8=await getTargetFunctions(_0x2b9b8a,_0x20547b),_0x5c42e5=_0x20547b[_0x223400(0x177)](_0x223400(0x162)),_0x48299a=[];for(const _0x18b6ec of _0x1f0bb8){const _0x514449=await computeFileHash(_0x18b6ec[_0x223400(0x180)]),_0x220c55=_0xe60bf8[_0x223400(0x15f)][_0x18b6ec['lockKey']],_0x4a4dc7=!!_0x220c55&&_0x220c55[_0x223400(0x19c)]===_0x514449;_0x48299a[_0x223400(0x172)]({'lockKey':_0x18b6ec[_0x223400(0x194)],'filePath':_0x18b6ec['filePath'],'remoteId':_0x220c55?.[_0x223400(0x1ab)]??null,'mode':_0x220c55?.[_0x223400(0x1ab)]?_0x223400(0x1a9):_0x223400(0x174),'status':!_0x5c42e5&&_0x4a4dc7?_0x223400(0x182):_0x223400(0x1a8)});}return{'method':_0x223400(0x163),'url':'/api/management/library/scripts/save','body':{'appCode':_0x20547b[_0x223400(0x168)],'force':_0x5c42e5,'files':_0x48299a,'cacheClearAtRuntime':_0x48299a[_0x223400(0x17d)](_0x45a381=>_0x45a381[_0x223400(0x1a2)]==='would_push'),'cacheClearAtRuntimeTimes':_0x48299a[_0x223400(0x17d)](_0x42534b=>_0x42534b[_0x223400(0x1a2)]===_0x223400(0x1a8))?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0x223400(0x18b)+_0x48299a[_0x223400(0x17c)]+_0x223400(0x190)};},async 'execute'(_0x5017f2){const _0x24e446=a32_0x3e2145,_0x265db3=loadBffProjectConfig(_0x5017f2[_0x24e446(0x168)]),_0x3cd87f=await readBffLockFile(_0x265db3[_0x24e446(0x18f)]),{lockData:_0x2ccddf,appLock:_0x419b39}=ensureLockScope(_0x3cd87f??createEmptyBffLock(),_0x5017f2[_0x24e446(0x168)],_0x265db3[_0x24e446(0x17e)],_0x24e446(0x172)),_0x3b3af8=await getTargetFunctions(_0x265db3,_0x5017f2);if(_0x3b3af8[_0x24e446(0x17c)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'failed':[]},'message':_0x24e446(0x19f)};const _0x129040=_0x5017f2[_0x24e446(0x177)](_0x24e446(0x162)),_0x204201=JSON[_0x24e446(0x161)](JSON[_0x24e446(0x186)](_0x2ccddf)),_0x2bc9cc=_0x204201['apps'][_0x5017f2[_0x24e446(0x168)]];if(!_0x2bc9cc)throw new Error(_0x24e446(0x18c)+_0x5017f2['appCode']+_0x24e446(0x164));const _0x30a71e=await buildHookMaps(_0x5017f2['appCode'],_0x5017f2['apiDir'],_0x3b3af8,_0x2bc9cc),_0xc125b9=[],_0x4c7d16=[],_0x59dc19=[];for(const _0x5a8655 of _0x3b3af8){const _0x4bca23=await computeFileHash(_0x5a8655[_0x24e446(0x180)]),_0x573336=_0x2bc9cc[_0x24e446(0x15f)][_0x5a8655[_0x24e446(0x194)]];if(!_0x129040&&_0x573336&&_0x573336[_0x24e446(0x19c)]===_0x4bca23){_0x4c7d16['push']({'lockKey':_0x5a8655[_0x24e446(0x194)],'reason':'unchanged'});continue;}try{await uploadSingleFunction(_0x5017f2[_0x24e446(0x168)],_0x5a8655,_0x2bc9cc,_0x30a71e);const _0x1d1659=_0x2bc9cc[_0x24e446(0x15f)][_0x5a8655[_0x24e446(0x194)]];_0xc125b9[_0x24e446(0x172)]({'lockKey':_0x5a8655[_0x24e446(0x194)],'remoteId':_0x1d1659?.[_0x24e446(0x1ab)]??0x0});}catch(_0xa70b6b){_0x59dc19[_0x24e446(0x172)]({'lockKey':_0x5a8655[_0x24e446(0x194)],'error':_0xa70b6b instanceof Error?_0xa70b6b['message']:String(_0xa70b6b)});}}_0x2bc9cc[_0x24e446(0x173)]=new Date()['toISOString'](),await writeBffLockFile(_0x265db3[_0x24e446(0x18f)],_0x204201),await waitForUploadedLockEntries(_0x265db3['lockFilePath'],_0x5017f2[_0x24e446(0x168)],_0xc125b9['map'](_0x2403af=>_0x2403af['lockKey']));let _0x11152d={'attempted':![],'cleared':![]};if(_0xc125b9['length']>0x0)try{let _0x2848c8='';for(let _0xa3a6cb=0x0;_0xa3a6cb<CACHE_CLEAR_ATTEMPTS;_0xa3a6cb+=0x1){_0x2848c8=await clearBffScriptCache(),_0xa3a6cb<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x11152d={'attempted':!![],'cleared':!![],'message':_0x2848c8||'Runtime\x20script\x20cache\x20cleared.'};}catch(_0x2594ec){_0x11152d={'attempted':!![],'cleared':![],'error':_0x2594ec instanceof Error?_0x2594ec['message']:String(_0x2594ec)};}const _0x5a11ac=_0x59dc19[_0x24e446(0x17c)]===0x0&&(_0x11152d['attempted']?_0x11152d['cleared']:!![]),_0x545fac=_0x11152d[_0x24e446(0x18e)]?_0x11152d[_0x24e446(0x189)]?_0x24e446(0x192):_0x24e446(0x175):_0x24e446(0x166);return{'ok':_0x5a11ac,'data':{'uploaded':_0xc125b9,'skipped':_0x4c7d16,'failed':_0x59dc19,'cacheClear':_0x11152d},'message':_0x24e446(0x193)+_0xc125b9[_0x24e446(0x17c)]+'\x20uploaded,\x20'+_0x4c7d16['length']+'\x20skipped,\x20'+_0x59dc19['length']+_0x24e446(0x191)+_0x545fac};}};async function getTargetFunctions(_0x43b080,_0x4bf13a){const _0x549d89=a32_0x3e2145,_0x7a1e81=_0x4bf13a[_0x549d89(0x16d)](_0x549d89(0x167)),_0x409cf0=_0x4bf13a['str'](_0x549d89(0x19a)),_0x2011f7=normalizeBffType(_0x7a1e81)??undefined;if(_0x409cf0&&!_0x2011f7)throw CliErrors[_0x549d89(0x1ac)](_0x549d89(0x170));const _0x2c20b3=await scanLocalBffFunctions(_0x43b080,_0x2011f7);if(_0x409cf0){const _0x2ca210=_0x2c20b3[_0x549d89(0x17f)](_0x2c564a=>_0x2c564a[_0x549d89(0x19a)]===_0x409cf0);if(_0x2ca210['length']===0x0)throw CliErrors[_0x549d89(0x1ac)](_0x549d89(0x183)+_0x2011f7+'/'+_0x409cf0);return _0x2ca210;}return _0x2c20b3;}async function buildHookMaps(_0x2e25df,_0x48820f,_0x4d8e01,_0x3d0f96){const _0x43e629=a32_0x3e2145,_0x21d1e1=_0x4d8e01[_0x43e629(0x17d)](_0x59037e=>_0x59037e[_0x43e629(0x167)]===_0x43e629(0x18a));if(!_0x21d1e1)return{'aliasToDatasetCode':new Map(),'datasetCodeToDataset':new Map()};const _0x4427df=loadAliasMap(_0x48820f,undefined,resolveApiFilePath(_0x48820f,_0x2e25df)),_0xe885d5=new Map(_0x4427df['map'](_0x2c2272=>[_0x2c2272[_0x43e629(0x1a7)],_0x2c2272['datasetCode']]));for(const _0xd92223 of Object[_0x43e629(0x16f)](_0x3d0f96[_0x43e629(0x15f)])){_0xd92223['alias']&&_0xd92223[_0x43e629(0x181)]&&!_0xe885d5[_0x43e629(0x171)](_0xd92223['alias'])&&_0xe885d5['set'](_0xd92223[_0x43e629(0x1a7)],_0xd92223[_0x43e629(0x181)]);}const _0x5cbfed=await listDatasets(_0x2e25df),_0x2529da=new Map(_0x5cbfed[_0x43e629(0x160)](_0x2157f3=>[_0x2157f3['code'],_0x2157f3]));return{'aliasToDatasetCode':_0xe885d5,'datasetCodeToDataset':_0x2529da};}async function uploadSingleFunction(_0x41e1d2,_0x528064,_0x223f47,_0x50bd75){const _0x56be72=a32_0x3e2145,_0x4a2291=await readFile(_0x528064[_0x56be72(0x180)],'utf8'),_0x18c170=await computeFileHash(_0x528064[_0x56be72(0x180)]),_0x2b815d=_0x223f47[_0x56be72(0x15f)][_0x528064[_0x56be72(0x194)]];if(_0x2b815d?.[_0x56be72(0x1ab)]&&_0x2b815d[_0x56be72(0x178)]==null)throw CliErrors[_0x56be72(0x1ac)](_0x528064['lockKey']+_0x56be72(0x179));let _0x228791=extractScriptDescription(_0x4a2291);if(!_0x228791&&_0x2b815d?.[_0x56be72(0x1ab)]){const _0x516516=await getBffScriptInfo(_0x2b815d[_0x56be72(0x1ab)]);_0x228791=_0x516516[_0x56be72(0x1a0)]||undefined;}const _0x2d0311={'appCode':_0x41e1d2,'functionName':_0x528064[_0x56be72(0x19a)],'scriptType':_0x528064[_0x56be72(0x167)],'scriptContent':_0x4a2291};if(_0x2b815d?.['remoteId'])_0x2d0311['id']=_0x2b815d['remoteId'];if(_0x2b815d?.[_0x56be72(0x178)]!=null)_0x2d0311[_0x56be72(0x178)]=_0x2b815d[_0x56be72(0x178)];if(_0x228791)_0x2d0311[_0x56be72(0x1a0)]=_0x228791;if(_0x528064[_0x56be72(0x167)]===_0x56be72(0x18a)){const _0x3afb29=_0x528064[_0x56be72(0x1a7)];if(!_0x3afb29||!_0x528064['operationType']||!_0x528064['functionNode'])throw CliErrors[_0x56be72(0x1ac)]('Incomplete\x20HOOK\x20path:\x20'+_0x528064['lockKey']);const _0xf17d97=_0x50bd75['aliasToDatasetCode'][_0x56be72(0x17b)](_0x3afb29)??_0x2b815d?.[_0x56be72(0x181)]??_0x3afb29,_0x46bc44=_0x50bd75[_0x56be72(0x1a6)][_0x56be72(0x17b)](_0xf17d97);if(!_0x46bc44)throw CliErrors[_0x56be72(0x1ac)]('Cannot\x20resolve\x20dataset\x20for\x20\x22'+_0x3afb29+_0x56be72(0x1a4)+(_0x56be72(0x16a)+CLI_BIN_NAME+'\x20api\x20pull`\x20to\x20refresh\x20api.ts,\x20or\x20verify\x20the\x20dataset\x20exists.'));assertDatasetSupportsLocalDevelopment(_0x46bc44,'BFF\x20HOOK\x20'+_0x528064[_0x56be72(0x194)]),_0x2d0311[_0x56be72(0x169)]=_0x46bc44['id'],_0x2d0311[_0x56be72(0x16b)]=_0x528064['operationType'],_0x2d0311['functionNode']=_0x528064[_0x56be72(0x16c)];}const _0x352b0f=await saveBffScript(_0x2d0311),_0x8c2c2c=_0x352b0f['id'],_0x553bf4=_0x352b0f[_0x56be72(0x185)]??await getBffScriptInfo(_0x8c2c2c),_0x2a2caa={'hash':_0x18c170,'remoteId':_0x8c2c2c,'version':_0x553bf4[_0x56be72(0x178)]};if(_0x528064[_0x56be72(0x167)]===_0x56be72(0x18a)){const _0x58661a=_0x528064[_0x56be72(0x1a7)],_0x165e68=_0x50bd75['aliasToDatasetCode'][_0x56be72(0x17b)](_0x58661a)??_0x2b815d?.[_0x56be72(0x181)]??_0x58661a;_0x50bd75['aliasToDatasetCode']['has'](_0x58661a)?_0x2a2caa['alias']=_0x58661a:_0x2a2caa[_0x56be72(0x1a7)]=_0x2b815d?.['alias'],_0x2a2caa[_0x56be72(0x181)]=_0x165e68,_0x2a2caa[_0x56be72(0x16b)]=_0x528064[_0x56be72(0x16b)],_0x2a2caa['functionNode']=_0x528064[_0x56be72(0x16c)];}_0x223f47[_0x56be72(0x15f)][_0x528064[_0x56be72(0x194)]]=_0x2a2caa;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x51c51f,_0x304fad,_0x52e73f){const _0x416b3c=a32_0x3e2145;if(_0x52e73f[_0x416b3c(0x17c)]===0x0)return;for(let _0x405cf9=0x0;_0x405cf9<LOCK_SETTLE_RETRY_COUNT;_0x405cf9+=0x1){const _0x2f5316=await readBffLockFile(_0x51c51f),_0x1f3308=_0x2f5316?.[_0x416b3c(0x16e)]?.[_0x304fad]?.[_0x416b3c(0x15f)]??{},_0x21990d=_0x52e73f[_0x416b3c(0x19e)](_0x3704e9=>!!_0x1f3308[_0x3704e9]?.[_0x416b3c(0x1ab)]);if(_0x21990d)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x416b3c(0x1a3)+_0x52e73f[_0x416b3c(0x197)](',\x20')+'.');}
1
+ const a32_0x30ee58=a32_0x2dce;(function(_0x184b78,_0x3de5c3){const _0x30228d=a32_0x2dce,_0xfa771b=_0x184b78();while(!![]){try{const _0x1c7966=parseInt(_0x30228d(0x1b8))/0x1*(parseInt(_0x30228d(0x1e5))/0x2)+parseInt(_0x30228d(0x1b3))/0x3+-parseInt(_0x30228d(0x1d1))/0x4+-parseInt(_0x30228d(0x1b0))/0x5*(parseInt(_0x30228d(0x1ac))/0x6)+-parseInt(_0x30228d(0x1bd))/0x7*(parseInt(_0x30228d(0x1a6))/0x8)+-parseInt(_0x30228d(0x1ae))/0x9*(parseInt(_0x30228d(0x1bf))/0xa)+parseInt(_0x30228d(0x1c3))/0xb;if(_0x1c7966===_0x3de5c3)break;else _0xfa771b['push'](_0xfa771b['shift']());}catch(_0x10391d){_0xfa771b['push'](_0xfa771b['shift']());}}}(a32_0x391f,0x940e5));function a32_0x2dce(_0x4cd2bb,_0x28d1ca){_0x4cd2bb=_0x4cd2bb-0x196;const _0x391fe7=a32_0x391f();let _0x2dce7f=_0x391fe7[_0x4cd2bb];return _0x2dce7f;}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';function a32_0x391f(){const _0xe744db=['version','type','get','validation','code','every','would_push','name','--name\x20requires\x20--type\x20to\x20identify\x20the\x20function.','HOOK','string','scriptsRoot','unchanged','\x20failed,\x20','cleared','length','set','908216gnVolO','Would\x20inspect\x20','Push\x20local\x20BFF\x20scripts\x20to\x20remote','apps','values','Lock\x20file\x20not\x20settled\x20after\x20push\x20for\x20','1129956LEomjA','update','114264Zabikg','description','15QHJvUd','Lock\x20scope\x20for\x20app\x20\x22','appCode','128010XLnSHq','lockKey','push','POST','datasetCode','1AQnCyJ','functionNode','message','\x20uploaded,\x20','alias','63ICnOAk','bool','670yUSQEk','/api/management/library/scripts/save','aliasToDatasetCode','filter','32449362sTiHnr','join','force','\x20api\x20pull`\x20to\x20refresh\x20api.ts,\x20or\x20verify\x20the\x20dataset\x20exists.','hash',':\x20missing\x20remote\x20version.\x20Run\x20`push`\x20after\x20`pull`\x20to\x20sync\x20version\x20info.','Incomplete\x20HOOK\x20path:\x20','bff','No\x20local\x20BFF\x20functions\x20found.','runtime\x20cache\x20not\x20needed','map','apiDir','ENDPOINT','Runtime\x20script\x20cache\x20cleared.','1562652JEcTpb','functions','\x22.\x20','script','Push\x20only\x20this\x20script\x20type','\x20local\x20BFF\x20script(s)\x20for\x20push\x20and\x20clear\x20runtime\x20cache\x20if\x20files\x20are\x20uploaded','datasetId','operationType','Push\x20complete:\x20','str','has','status','Push\x20only\x20the\x20named\x20function\x20(requires\x20--type)','parse','\x22\x20not\x20found\x20after\x20ensureLockScope.','toISOString','attempted','remoteId','lockFilePath','filePath','883682cFhTXn','some'];a32_0x391f=function(){return _0xe744db;};return a32_0x391f();}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_0x30ee58(0x1ca),'command':'push','description':a32_0x30ee58(0x1a8),'risk':'high-risk-write','flags':[{'name':a32_0x30ee58(0x196),'type':a32_0x30ee58(0x19f),'description':a32_0x30ee58(0x1d5),'enum':['COMMON',a32_0x30ee58(0x1cf),a32_0x30ee58(0x19e)]},{'name':a32_0x30ee58(0x19c),'type':a32_0x30ee58(0x19f),'description':a32_0x30ee58(0x1dd)},{'name':a32_0x30ee58(0x1c5),'type':'boolean','description':'Force\x20push\x20ignoring\x20hash\x20protection'}],async 'dryRun'(_0x550634){const _0xd4a6d6=a32_0x30ee58,_0x1b2bba=loadBffProjectConfig(_0x550634['appCode']),_0x39a614=await readBffLockFile(_0x1b2bba[_0xd4a6d6(0x1e3)]),{appLock:_0x184d1f}=ensureLockScope(_0x39a614??createEmptyBffLock(),_0x550634[_0xd4a6d6(0x1b2)],_0x1b2bba[_0xd4a6d6(0x1a0)],_0xd4a6d6(0x1b5)),_0x2fca73=await getTargetFunctions(_0x1b2bba,_0x550634),_0x2afc40=_0x550634[_0xd4a6d6(0x1be)](_0xd4a6d6(0x1c5)),_0x1470ab=[];for(const _0x49d285 of _0x2fca73){const _0x57c15b=await computeFileHash(_0x49d285['filePath']),_0x355ce7=_0x184d1f[_0xd4a6d6(0x1d2)][_0x49d285[_0xd4a6d6(0x1b4)]],_0x36b2b2=!!_0x355ce7&&_0x355ce7[_0xd4a6d6(0x1c7)]===_0x57c15b;_0x1470ab[_0xd4a6d6(0x1b5)]({'lockKey':_0x49d285[_0xd4a6d6(0x1b4)],'filePath':_0x49d285[_0xd4a6d6(0x1e4)],'remoteId':_0x355ce7?.[_0xd4a6d6(0x1e2)]??null,'mode':_0x355ce7?.[_0xd4a6d6(0x1e2)]?_0xd4a6d6(0x1ad):'create','status':!_0x2afc40&&_0x36b2b2?_0xd4a6d6(0x1a1):_0xd4a6d6(0x19b)});}return{'method':_0xd4a6d6(0x1b6),'url':_0xd4a6d6(0x1c0),'body':{'appCode':_0x550634['appCode'],'force':_0x2afc40,'files':_0x1470ab,'cacheClearAtRuntime':_0x1470ab[_0xd4a6d6(0x1e6)](_0xed864e=>_0xed864e['status']===_0xd4a6d6(0x19b)),'cacheClearAtRuntimeTimes':_0x1470ab['some'](_0x291289=>_0x291289[_0xd4a6d6(0x1dc)]==='would_push')?CACHE_CLEAR_ATTEMPTS:0x0},'description':_0xd4a6d6(0x1a7)+_0x1470ab['length']+_0xd4a6d6(0x1d6)};},async 'execute'(_0x3cbadc){const _0x36c47a=a32_0x30ee58,_0x20a464=loadBffProjectConfig(_0x3cbadc[_0x36c47a(0x1b2)]),_0x57a197=await readBffLockFile(_0x20a464['lockFilePath']),{lockData:_0x453ea2,appLock:_0x15b636}=ensureLockScope(_0x57a197??createEmptyBffLock(),_0x3cbadc[_0x36c47a(0x1b2)],_0x20a464[_0x36c47a(0x1a0)],_0x36c47a(0x1b5)),_0x3543a1=await getTargetFunctions(_0x20a464,_0x3cbadc);if(_0x3543a1[_0x36c47a(0x1a4)]===0x0)return{'ok':!![],'data':{'uploaded':[],'skipped':[],'failed':[]},'message':_0x36c47a(0x1cb)};const _0x412fa6=_0x3cbadc[_0x36c47a(0x1be)](_0x36c47a(0x1c5)),_0x2b6037=JSON[_0x36c47a(0x1de)](JSON['stringify'](_0x453ea2)),_0x1f54cf=_0x2b6037[_0x36c47a(0x1a9)][_0x3cbadc[_0x36c47a(0x1b2)]];if(!_0x1f54cf)throw new Error(_0x36c47a(0x1b1)+_0x3cbadc[_0x36c47a(0x1b2)]+_0x36c47a(0x1df));const _0x262d9c=await buildHookMaps(_0x3cbadc[_0x36c47a(0x1b2)],_0x3cbadc[_0x36c47a(0x1ce)],_0x3543a1,_0x1f54cf),_0x33effa=[],_0x43311b=[],_0x5eb446=[];for(const _0x3bdabb of _0x3543a1){const _0x453a8d=await computeFileHash(_0x3bdabb[_0x36c47a(0x1e4)]),_0x2445e7=_0x1f54cf[_0x36c47a(0x1d2)][_0x3bdabb[_0x36c47a(0x1b4)]];if(!_0x412fa6&&_0x2445e7&&_0x2445e7[_0x36c47a(0x1c7)]===_0x453a8d){_0x43311b[_0x36c47a(0x1b5)]({'lockKey':_0x3bdabb[_0x36c47a(0x1b4)],'reason':_0x36c47a(0x1a1)});continue;}try{await uploadSingleFunction(_0x3cbadc[_0x36c47a(0x1b2)],_0x3bdabb,_0x1f54cf,_0x262d9c);const _0x28f09e=_0x1f54cf[_0x36c47a(0x1d2)][_0x3bdabb[_0x36c47a(0x1b4)]];_0x33effa['push']({'lockKey':_0x3bdabb[_0x36c47a(0x1b4)],'remoteId':_0x28f09e?.[_0x36c47a(0x1e2)]??0x0});}catch(_0x380c37){_0x5eb446['push']({'lockKey':_0x3bdabb[_0x36c47a(0x1b4)],'error':_0x380c37 instanceof Error?_0x380c37[_0x36c47a(0x1ba)]:String(_0x380c37)});}}_0x1f54cf['lastSync']=new Date()[_0x36c47a(0x1e0)](),await writeBffLockFile(_0x20a464[_0x36c47a(0x1e3)],_0x2b6037),await waitForUploadedLockEntries(_0x20a464['lockFilePath'],_0x3cbadc[_0x36c47a(0x1b2)],_0x33effa[_0x36c47a(0x1cd)](_0x5eb32c=>_0x5eb32c[_0x36c47a(0x1b4)]));let _0x44639f={'attempted':![],'cleared':![]};if(_0x33effa[_0x36c47a(0x1a4)]>0x0)try{let _0x5735ff='';for(let _0x13942b=0x0;_0x13942b<CACHE_CLEAR_ATTEMPTS;_0x13942b+=0x1){_0x5735ff=await clearBffScriptCache(),_0x13942b<CACHE_CLEAR_ATTEMPTS-0x1&&await sleep(CACHE_CLEAR_INTERVAL_MS);}_0x44639f={'attempted':!![],'cleared':!![],'message':_0x5735ff||_0x36c47a(0x1d0)};}catch(_0x16c601){_0x44639f={'attempted':!![],'cleared':![],'error':_0x16c601 instanceof Error?_0x16c601[_0x36c47a(0x1ba)]:String(_0x16c601)};}const _0x226157=_0x5eb446[_0x36c47a(0x1a4)]===0x0&&(_0x44639f[_0x36c47a(0x1e1)]?_0x44639f[_0x36c47a(0x1a3)]:!![]),_0x5e8a0c=_0x44639f['attempted']?_0x44639f['cleared']?'runtime\x20cache\x20cleared':'runtime\x20cache\x20clear\x20failed':_0x36c47a(0x1cc);return{'ok':_0x226157,'data':{'uploaded':_0x33effa,'skipped':_0x43311b,'failed':_0x5eb446,'cacheClear':_0x44639f},'message':_0x36c47a(0x1d9)+_0x33effa[_0x36c47a(0x1a4)]+_0x36c47a(0x1bb)+_0x43311b['length']+'\x20skipped,\x20'+_0x5eb446['length']+_0x36c47a(0x1a2)+_0x5e8a0c};}};async function getTargetFunctions(_0x1e0e97,_0x165f13){const _0x3621da=a32_0x30ee58,_0x5713ea=_0x165f13[_0x3621da(0x1da)](_0x3621da(0x196)),_0x5b2cf4=_0x165f13[_0x3621da(0x1da)]('name'),_0x384f3d=normalizeBffType(_0x5713ea)??undefined;if(_0x5b2cf4&&!_0x384f3d)throw CliErrors[_0x3621da(0x198)](_0x3621da(0x19d));const _0x17f0f2=await scanLocalBffFunctions(_0x1e0e97,_0x384f3d);if(_0x5b2cf4){const _0x131e14=_0x17f0f2[_0x3621da(0x1c2)](_0x1adb86=>_0x1adb86[_0x3621da(0x19c)]===_0x5b2cf4);if(_0x131e14[_0x3621da(0x1a4)]===0x0)throw CliErrors[_0x3621da(0x198)]('Local\x20function\x20not\x20found:\x20'+_0x384f3d+'/'+_0x5b2cf4);return _0x131e14;}return _0x17f0f2;}async function buildHookMaps(_0x191d01,_0x392fe5,_0x5bb4b9,_0x49eed0){const _0x1cc64d=a32_0x30ee58,_0x482bf4=_0x5bb4b9['some'](_0x4743a6=>_0x4743a6['type']==='HOOK');if(!_0x482bf4)return{'aliasToDatasetCode':new Map(),'datasetCodeToDataset':new Map()};const _0x5c558f=loadAliasMap(_0x392fe5,undefined,resolveApiFilePath(_0x392fe5,_0x191d01)),_0x283e75=new Map(_0x5c558f[_0x1cc64d(0x1cd)](_0x40e9c4=>[_0x40e9c4[_0x1cc64d(0x1bc)],_0x40e9c4['datasetCode']]));for(const _0x33916e of Object[_0x1cc64d(0x1aa)](_0x49eed0['functions'])){_0x33916e['alias']&&_0x33916e[_0x1cc64d(0x1b7)]&&!_0x283e75[_0x1cc64d(0x1db)](_0x33916e[_0x1cc64d(0x1bc)])&&_0x283e75[_0x1cc64d(0x1a5)](_0x33916e['alias'],_0x33916e['datasetCode']);}const _0x4da14a=await listDatasets(_0x191d01),_0xea8a0f=new Map(_0x4da14a[_0x1cc64d(0x1cd)](_0x46de54=>[_0x46de54[_0x1cc64d(0x199)],_0x46de54]));return{'aliasToDatasetCode':_0x283e75,'datasetCodeToDataset':_0xea8a0f};}async function uploadSingleFunction(_0x4a519e,_0x55db7d,_0x15b3c6,_0x566dbd){const _0x20dfba=a32_0x30ee58,_0x39d4a9=await readFile(_0x55db7d[_0x20dfba(0x1e4)],'utf8'),_0x3b63cd=await computeFileHash(_0x55db7d['filePath']),_0x478be6=_0x15b3c6['functions'][_0x55db7d['lockKey']];if(_0x478be6?.[_0x20dfba(0x1e2)]&&_0x478be6['version']==null)throw CliErrors[_0x20dfba(0x198)](_0x55db7d['lockKey']+_0x20dfba(0x1c8));let _0x4ec194=extractScriptDescription(_0x39d4a9);if(!_0x4ec194&&_0x478be6?.[_0x20dfba(0x1e2)]){const _0xdd3c4e=await getBffScriptInfo(_0x478be6[_0x20dfba(0x1e2)]);_0x4ec194=_0xdd3c4e[_0x20dfba(0x1af)]||undefined;}const _0x3dd347={'appCode':_0x4a519e,'functionName':_0x55db7d[_0x20dfba(0x19c)],'scriptType':_0x55db7d['type'],'scriptContent':_0x39d4a9};if(_0x478be6?.[_0x20dfba(0x1e2)])_0x3dd347['id']=_0x478be6['remoteId'];if(_0x478be6?.[_0x20dfba(0x1e7)]!=null)_0x3dd347[_0x20dfba(0x1e7)]=_0x478be6[_0x20dfba(0x1e7)];if(_0x4ec194)_0x3dd347[_0x20dfba(0x1af)]=_0x4ec194;if(_0x55db7d['type']==='HOOK'){const _0x479b84=_0x55db7d['alias'];if(!_0x479b84||!_0x55db7d[_0x20dfba(0x1d8)]||!_0x55db7d[_0x20dfba(0x1b9)])throw CliErrors['validation'](_0x20dfba(0x1c9)+_0x55db7d[_0x20dfba(0x1b4)]);const _0x23dcd3=_0x566dbd[_0x20dfba(0x1c1)][_0x20dfba(0x197)](_0x479b84)??_0x478be6?.[_0x20dfba(0x1b7)]??_0x479b84,_0x2fde4b=_0x566dbd['datasetCodeToDataset']['get'](_0x23dcd3);if(!_0x2fde4b)throw CliErrors['validation']('Cannot\x20resolve\x20dataset\x20for\x20\x22'+_0x479b84+_0x20dfba(0x1d3)+('Run\x20`'+CLI_BIN_NAME+_0x20dfba(0x1c6)));assertDatasetSupportsLocalDevelopment(_0x2fde4b,'BFF\x20HOOK\x20'+_0x55db7d[_0x20dfba(0x1b4)]),_0x3dd347[_0x20dfba(0x1d7)]=_0x2fde4b['id'],_0x3dd347[_0x20dfba(0x1d8)]=_0x55db7d['operationType'],_0x3dd347[_0x20dfba(0x1b9)]=_0x55db7d[_0x20dfba(0x1b9)];}const _0x6cae65=await saveBffScript(_0x3dd347),_0x19de77=_0x6cae65['id'],_0x4484ce=_0x6cae65[_0x20dfba(0x1d4)]??await getBffScriptInfo(_0x19de77),_0x5f501d={'hash':_0x3b63cd,'remoteId':_0x19de77,'version':_0x4484ce['version']};if(_0x55db7d[_0x20dfba(0x196)]===_0x20dfba(0x19e)){const _0x51174e=_0x55db7d[_0x20dfba(0x1bc)],_0x132bf0=_0x566dbd[_0x20dfba(0x1c1)]['get'](_0x51174e)??_0x478be6?.[_0x20dfba(0x1b7)]??_0x51174e;_0x566dbd['aliasToDatasetCode'][_0x20dfba(0x1db)](_0x51174e)?_0x5f501d[_0x20dfba(0x1bc)]=_0x51174e:_0x5f501d['alias']=_0x478be6?.[_0x20dfba(0x1bc)],_0x5f501d[_0x20dfba(0x1b7)]=_0x132bf0,_0x5f501d[_0x20dfba(0x1d8)]=_0x55db7d['operationType'],_0x5f501d[_0x20dfba(0x1b9)]=_0x55db7d['functionNode'];}_0x15b3c6[_0x20dfba(0x1d2)][_0x55db7d[_0x20dfba(0x1b4)]]=_0x5f501d;}const LOCK_SETTLE_RETRY_COUNT=0x14,LOCK_SETTLE_DELAY_MS=0x64;async function waitForUploadedLockEntries(_0x3f7984,_0x1b57b3,_0x3603fa){const _0x22eba3=a32_0x30ee58;if(_0x3603fa[_0x22eba3(0x1a4)]===0x0)return;for(let _0xadf1c7=0x0;_0xadf1c7<LOCK_SETTLE_RETRY_COUNT;_0xadf1c7+=0x1){const _0x3d6943=await readBffLockFile(_0x3f7984),_0x439120=_0x3d6943?.['apps']?.[_0x1b57b3]?.[_0x22eba3(0x1d2)]??{},_0x23a0ef=_0x3603fa[_0x22eba3(0x19a)](_0x24e63f=>!!_0x439120[_0x24e63f]?.['remoteId']);if(_0x23a0ef)return;await sleep(LOCK_SETTLE_DELAY_MS);}throw new Error(_0x22eba3(0x1ab)+_0x3603fa[_0x22eba3(0x1c4)](',\x20')+'.');}
@@ -1 +1 @@
1
- const a33_0x188832=a33_0x21d8;(function(_0x2a3798,_0x896ad8){const _0x3dd035=a33_0x21d8,_0x42b999=_0x2a3798();while(!![]){try{const _0x21d13e=parseInt(_0x3dd035(0x1ac))/0x1+parseInt(_0x3dd035(0x18f))/0x2*(-parseInt(_0x3dd035(0x193))/0x3)+-parseInt(_0x3dd035(0x196))/0x4*(-parseInt(_0x3dd035(0x1aa))/0x5)+parseInt(_0x3dd035(0x1a6))/0x6+-parseInt(_0x3dd035(0x19c))/0x7+-parseInt(_0x3dd035(0x19e))/0x8+parseInt(_0x3dd035(0x1a9))/0x9*(parseInt(_0x3dd035(0x1a5))/0xa);if(_0x21d13e===_0x896ad8)break;else _0x42b999['push'](_0x42b999['shift']());}catch(_0x3b9bc9){_0x42b999['push'](_0x42b999['shift']());}}}(a33_0x39b6,0x8cb3c));import{listBffScripts,getBffScriptStatistics}from'../../core/api-client.js';import{loadAliasMap}from'../../core/alias-resolver.js';import{resolveApiFilePath}from'../../context.js';function a33_0x21d8(_0x59386c,_0x180ab4){_0x59386c=_0x59386c-0x18d;const _0x39b620=a33_0x39b6();let _0x21d8aa=_0x39b620[_0x59386c];return _0x21d8aa;}import{loadBffProjectConfig}from'../../core/bff/config.js';import{createHookLocationMap,resolveRemoteScriptTarget,scanLocalBffFunctions}from'../../core/bff/file-system.js';import{computeFileHash}from'../../core/bff/hash.js';import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';export const bffStatus={'service':a33_0x188832(0x192),'command':'status','description':a33_0x188832(0x19b),'risk':a33_0x188832(0x1a2),'flags':[{'name':a33_0x188832(0x199),'type':a33_0x188832(0x1ab),'description':a33_0x188832(0x1a8)}],async 'execute'(_0x2ffd73){const _0x47a0e0=a33_0x188832,_0x1e36cc=loadBffProjectConfig(_0x2ffd73[_0x47a0e0(0x198)]),_0x53660d=await readBffLockFile(_0x1e36cc[_0x47a0e0(0x19f)]),{appLock:_0x2c6b7a}=ensureLockScope(_0x53660d??createEmptyBffLock(),_0x2ffd73[_0x47a0e0(0x198)],_0x1e36cc[_0x47a0e0(0x19d)],_0x47a0e0(0x18e)),_0x152657=await scanLocalBffFunctions(_0x1e36cc),_0x53f083=[],_0x18b078=[],_0x80a5a9=[];for(const _0xd37be4 of _0x152657){const _0x4c5e47=await computeFileHash(_0xd37be4['filePath']),_0x3924cc=_0x2c6b7a[_0x47a0e0(0x191)][_0xd37be4['lockKey']];if(!_0x3924cc)_0x53f083['push'](_0xd37be4[_0x47a0e0(0x1a1)]);else _0x3924cc[_0x47a0e0(0x197)]!==_0x4c5e47?_0x18b078['push'](_0xd37be4[_0x47a0e0(0x1a1)]):_0x80a5a9[_0x47a0e0(0x1ad)](_0xd37be4[_0x47a0e0(0x1a1)]);}const _0x106c16=[];if(_0x2ffd73['bool'](_0x47a0e0(0x199))){const _0x653374=loadAliasMap(_0x2ffd73[_0x47a0e0(0x19a)],undefined,resolveApiFilePath(_0x2ffd73['apiDir'],_0x2ffd73[_0x47a0e0(0x198)])),_0x1186a5=new Map(_0x653374[_0x47a0e0(0x1a3)](_0x298676=>[_0x298676[_0x47a0e0(0x1a4)],_0x298676['alias']])),[_0x16886f,_0x5cd00]=await Promise['all']([listBffScripts(_0x2ffd73[_0x47a0e0(0x198)]),getBffScriptStatistics(_0x2ffd73[_0x47a0e0(0x198)])]),_0x131d93=createHookLocationMap(_0x5cd00),_0x3d559d=new Set(_0x152657[_0x47a0e0(0x1a3)](_0x5ea842=>_0x5ea842[_0x47a0e0(0x1a1)]));for(const _0x24bf83 of _0x16886f){const _0x15315d=resolveRemoteScriptTarget(_0x1e36cc,_0x24bf83,_0x131d93,_0x2c6b7a[_0x47a0e0(0x191)],_0x1186a5);_0x15315d&&!_0x3d559d[_0x47a0e0(0x190)](_0x15315d[_0x47a0e0(0x1a1)])&&_0x106c16['push'](_0x15315d['lockKey']);}}const _0x56c72=_0x53f083[_0x47a0e0(0x194)]===0x0&&_0x18b078[_0x47a0e0(0x194)]===0x0&&_0x106c16[_0x47a0e0(0x194)]===0x0;return{'ok':!![],'data':{'added':_0x53f083,'modified':_0x18b078,'unchanged':_0x80a5a9,'remoteOnly':_0x106c16},'message':_0x56c72?_0x47a0e0(0x18d):_0x53f083[_0x47a0e0(0x194)]+_0x47a0e0(0x195)+_0x18b078['length']+'\x20modified,\x20'+_0x80a5a9[_0x47a0e0(0x194)]+_0x47a0e0(0x1a7)+(_0x106c16[_0x47a0e0(0x194)]>0x0?',\x20'+_0x106c16['length']+_0x47a0e0(0x1a0):'')};}};function a33_0x39b6(){const _0x1a079d=['datasetCode','10fKDfdz','1719336AIzPOV','\x20unchanged','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally','4332636AEhzxs','355hLKXah','boolean','904609EDLvjs','push','All\x20BFF\x20scripts\x20are\x20in\x20sync.','status','110158cbBUvM','has','functions','bff','3dJCnKz','length','\x20added,\x20','22948mBWsiK','hash','appCode','remote','apiDir','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','5259681krwbDP','scriptsRoot','5576944cVgyXI','lockFilePath','\x20remote-only','lockKey','read','map'];a33_0x39b6=function(){return _0x1a079d;};return a33_0x39b6();}
1
+ const a33_0x20fca7=a33_0x27a6;(function(_0x21437b,_0x48e55a){const _0x2d1355=a33_0x27a6,_0x2b8239=_0x21437b();while(!![]){try{const _0x1f77d6=parseInt(_0x2d1355(0x95))/0x1+-parseInt(_0x2d1355(0x92))/0x2*(-parseInt(_0x2d1355(0x8a))/0x3)+-parseInt(_0x2d1355(0x7c))/0x4*(parseInt(_0x2d1355(0x81))/0x5)+parseInt(_0x2d1355(0x83))/0x6+parseInt(_0x2d1355(0x94))/0x7*(-parseInt(_0x2d1355(0x8c))/0x8)+-parseInt(_0x2d1355(0x85))/0x9*(parseInt(_0x2d1355(0x98))/0xa)+parseInt(_0x2d1355(0x8d))/0xb;if(_0x1f77d6===_0x48e55a)break;else _0x2b8239['push'](_0x2b8239['shift']());}catch(_0xde0619){_0x2b8239['push'](_0x2b8239['shift']());}}}(a33_0x4614,0xbf970));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';function a33_0x4614(){const _0x3f12e7=['\x20unchanged','1185095gFqUxt','alias','7368036eKxkjp','has','18ajtFiX','hash','\x20modified,\x20','lockKey','length','84mZRLVt','read','50440HLcqdV','2178550HrjsyO','map','remote','status','scriptsRoot','65398RiatrQ','appCode','721MjepAa','780412qcqBSY','\x20remote-only','Check\x20local\x20BFF\x20sync\x20status\x20against\x20lock\x20file','7254270CGXHjJ','bool','functions','apiDir','lockFilePath','push','filePath','4bLxZAZ','\x20added,\x20','all','Also\x20check\x20for\x20remote-only\x20scripts\x20not\x20present\x20locally'];a33_0x4614=function(){return _0x3f12e7;};return a33_0x4614();}import{createEmptyBffLock,ensureLockScope,readBffLockFile}from'../../core/bff/lock.js';function a33_0x27a6(_0x248721,_0x562625){_0x248721=_0x248721-0x7a;const _0x461469=a33_0x4614();let _0x27a609=_0x461469[_0x248721];return _0x27a609;}export const bffStatus={'service':'bff','command':'status','description':a33_0x20fca7(0x97),'risk':a33_0x20fca7(0x8b),'flags':[{'name':a33_0x20fca7(0x8f),'type':'boolean','description':a33_0x20fca7(0x7f)}],async 'execute'(_0xad98b4){const _0x2ab591=a33_0x20fca7,_0x1bd482=loadBffProjectConfig(_0xad98b4['appCode']),_0x105bf2=await readBffLockFile(_0x1bd482[_0x2ab591(0x9c)]),{appLock:_0xe2a108}=ensureLockScope(_0x105bf2??createEmptyBffLock(),_0xad98b4['appCode'],_0x1bd482[_0x2ab591(0x91)],_0x2ab591(0x90)),_0x273349=await scanLocalBffFunctions(_0x1bd482),_0x5c7ede=[],_0x5a839c=[],_0x41d1eb=[];for(const _0x2615fd of _0x273349){const _0x51137f=await computeFileHash(_0x2615fd[_0x2ab591(0x7b)]),_0x2bc0de=_0xe2a108['functions'][_0x2615fd[_0x2ab591(0x88)]];if(!_0x2bc0de)_0x5c7ede[_0x2ab591(0x7a)](_0x2615fd[_0x2ab591(0x88)]);else _0x2bc0de[_0x2ab591(0x86)]!==_0x51137f?_0x5a839c[_0x2ab591(0x7a)](_0x2615fd[_0x2ab591(0x88)]):_0x41d1eb[_0x2ab591(0x7a)](_0x2615fd['lockKey']);}const _0x3f427e=[];if(_0xad98b4[_0x2ab591(0x99)](_0x2ab591(0x8f))){const _0x587237=loadAliasMap(_0xad98b4[_0x2ab591(0x9b)],undefined,resolveApiFilePath(_0xad98b4[_0x2ab591(0x9b)],_0xad98b4[_0x2ab591(0x93)])),_0x125fb1=new Map(_0x587237[_0x2ab591(0x8e)](_0x283f14=>[_0x283f14['datasetCode'],_0x283f14[_0x2ab591(0x82)]])),[_0x4f3a83,_0xd9cc14]=await Promise[_0x2ab591(0x7e)]([listBffScripts(_0xad98b4[_0x2ab591(0x93)]),getBffScriptStatistics(_0xad98b4[_0x2ab591(0x93)])]),_0x39c348=createHookLocationMap(_0xd9cc14),_0x4f1781=new Set(_0x273349[_0x2ab591(0x8e)](_0x4758d9=>_0x4758d9[_0x2ab591(0x88)]));for(const _0x398a60 of _0x4f3a83){const _0x7f61c=resolveRemoteScriptTarget(_0x1bd482,_0x398a60,_0x39c348,_0xe2a108[_0x2ab591(0x9a)],_0x125fb1);_0x7f61c&&!_0x4f1781[_0x2ab591(0x84)](_0x7f61c['lockKey'])&&_0x3f427e[_0x2ab591(0x7a)](_0x7f61c[_0x2ab591(0x88)]);}}const _0x6feb79=_0x5c7ede[_0x2ab591(0x89)]===0x0&&_0x5a839c[_0x2ab591(0x89)]===0x0&&_0x3f427e[_0x2ab591(0x89)]===0x0;return{'ok':!![],'data':{'added':_0x5c7ede,'modified':_0x5a839c,'unchanged':_0x41d1eb,'remoteOnly':_0x3f427e},'message':_0x6feb79?'All\x20BFF\x20scripts\x20are\x20in\x20sync.':_0x5c7ede[_0x2ab591(0x89)]+_0x2ab591(0x7d)+_0x5a839c[_0x2ab591(0x89)]+_0x2ab591(0x87)+_0x41d1eb[_0x2ab591(0x89)]+_0x2ab591(0x80)+(_0x3f427e[_0x2ab591(0x89)]>0x0?',\x20'+_0x3f427e[_0x2ab591(0x89)]+_0x2ab591(0x96):'')};}};
@@ -1 +1 @@
1
- const a34_0x10617a=a34_0x72ed;(function(_0x57686b,_0x278c22){const _0x433857=a34_0x72ed,_0x20e037=_0x57686b();while(!![]){try{const _0x2d310d=-parseInt(_0x433857(0x138))/0x1+parseInt(_0x433857(0x13e))/0x2*(parseInt(_0x433857(0x141))/0x3)+-parseInt(_0x433857(0x160))/0x4*(-parseInt(_0x433857(0x15c))/0x5)+-parseInt(_0x433857(0x14d))/0x6*(-parseInt(_0x433857(0x151))/0x7)+parseInt(_0x433857(0x139))/0x8*(-parseInt(_0x433857(0x14a))/0x9)+parseInt(_0x433857(0x152))/0xa*(parseInt(_0x433857(0x17a))/0xb)+-parseInt(_0x433857(0x146))/0xc*(parseInt(_0x433857(0x158))/0xd);if(_0x2d310d===_0x278c22)break;else _0x20e037['push'](_0x20e037['shift']());}catch(_0x428424){_0x20e037['push'](_0x20e037['shift']());}}}(a34_0x2aa6,0x66a8f));import a34_0x3e9a0c from'chalk';import a34_0x4378b2 from'ora';import a34_0xac95b1 from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function a34_0x2aa6(){const _0x120418=['Requested\x20version:\x20','\x20→\x20','Invalid\x20version:\x20','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','bun','cwd','filter','Checking\x20official\x20skill\x20package...','write','Checking\x20for\x20updates...','execPath','flag','\x20\x20Try\x20manually:\x20','entries','4511793WqpvMG','skills','Updated\x20to\x20v','error','beta','run','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','json','Current\x20version:\x20','\x20\x20Official\x20skill\x20update\x20failed:\x20','green','Update\x20failed','start','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','Already\x20on\x20requested\x20version\x20(v','toLowerCase','trim','\x20\x20Run\x20manually:\x20','inherit','pipe','boolean','slice','no-skills','red','\x20install\x20-g\x20','\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','Install\x20a\x20specific\x20CLI\x20version','12089goLNbw','8PhmfGH','yellow','update','str','@latest','4vUcQeY','valid','...','631542SZYhVt','validation','Refresh\x20official\x20skill\x20package\x20after\x20updating','includes','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','60BvlmLd','source','stableVersion','gray','6730110pNzPKR','/dist-tags','map','246804BFnERJ','length','nonInteractive','warn','77nhsMur','10dUdulH','fail','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','https://registry.npmjs.org/-/package/','log','message','2150824zCrAiD','Already\x20up\x20to\x20date\x20(v','latest','Skipping\x20official\x20skill\x20package\x20(--no-skills).','5JIvmgq','Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','info','unknown','2895796ieHEsK','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','Updating\x20via\x20','npm','timeout','Version\x20comparison\x20failed','bool','Beta\x20version:\x20','string','version','object','Update\x20available:\x20'];a34_0x2aa6=function(){return _0x120418;};return a34_0x2aa6();}function getCurrentVersion(){const _0xe5af09=a34_0x72ed;return GIT_COMMIT!==_0xe5af09(0x15f)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME[_0xe5af09(0x132)](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x310439=a34_0x72ed,_0x4e5416=process[_0x310439(0x176)][_0x310439(0x12c)]();if(_0x4e5416[_0x310439(0x144)]('bun'))return _0x310439(0x170);return _0x310439(0x163);}const updateFlags=[{'name':a34_0x10617a(0x17e),'type':a34_0x10617a(0x131),'description':'Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','default':![]},{'name':a34_0x10617a(0x169),'type':a34_0x10617a(0x168),'description':a34_0x10617a(0x137)},{'name':a34_0x10617a(0x133),'type':a34_0x10617a(0x131),'description':a34_0x10617a(0x15d),'default':![]},{'name':a34_0x10617a(0x17b),'type':'boolean','description':a34_0x10617a(0x143),'default':!![],'hidden':!![]}];function getRequestedVersion(_0x1fa496){const _0x31dd44=a34_0x10617a;return _0x1fa496[_0x31dd44(0x13c)](_0x31dd44(0x169))[_0x31dd44(0x12d)]();}function shouldSkipOfficialSkill(_0x34a344){const _0x4a432a=a34_0x10617a;return _0x34a344[_0x4a432a(0x166)](_0x4a432a(0x133))||_0x34a344[_0x4a432a(0x177)](_0x4a432a(0x17b))===![];}async function validateUpdateFlags(_0x1348cc){const _0x350033=a34_0x10617a,_0xbcf317=_0x1348cc[_0x350033(0x166)](_0x350033(0x17e)),_0x172e34=getRequestedVersion(_0x1348cc);if(_0xbcf317&&_0x172e34)throw CliErrors[_0x350033(0x142)]('--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.',_0x350033(0x16f));if(_0x172e34&&!a34_0xac95b1[_0x350033(0x13f)](_0x172e34))throw CliErrors[_0x350033(0x142)](_0x350033(0x16e)+_0x172e34,'Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.');}async function fetchNpmDistTags(){const _0x2bbaee=a34_0x10617a;try{const _0x11462a=await fetch(_0x2bbaee(0x155)+encodeURIComponent(NPM_PACKAGE_NAME)+_0x2bbaee(0x14b),{'signal':AbortSignal[_0x2bbaee(0x164)](0x2710)});if(!_0x11462a['ok'])return null;const _0x50069e=await _0x11462a[_0x2bbaee(0x181)]();if(!_0x50069e||typeof _0x50069e!==_0x2bbaee(0x16a))return null;return Object['fromEntries'](Object[_0x2bbaee(0x179)](_0x50069e)[_0x2bbaee(0x172)](([,_0x4236b7])=>typeof _0x4236b7===_0x2bbaee(0x168)&&_0x4236b7[_0x2bbaee(0x12d)]()[_0x2bbaee(0x14e)]>0x0)[_0x2bbaee(0x14c)](([_0x531197,_0x8cdb97])=>[_0x531197,String(_0x8cdb97)[_0x2bbaee(0x12d)]()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x227090){const _0x3fd215=await fetchNpmDistTags();return _0x3fd215?.[_0x227090]??null;}async function fetchLatestVersion(){const _0x5d2b96=a34_0x10617a,_0x287232=await fetchNpmDistTagVersion('latest');if(_0x287232)return _0x287232;const _0x294401=await getCdnConfig();return _0x294401?.['cli']?.[_0x5d2b96(0x148)]??null;}async function resolveTargetVersion(_0x5a9a39){const _0x2dafb1=a34_0x10617a,_0x5561fc=getRequestedVersion(_0x5a9a39);if(_0x5561fc)return{'version':_0x5561fc,'source':_0x2dafb1(0x169)};if(_0x5a9a39[_0x2dafb1(0x166)](_0x2dafb1(0x17e))){const _0x208870=await fetchNpmDistTagVersion(_0x2dafb1(0x17e));if(!_0x208870)return null;return{'version':_0x208870,'source':'beta'};}const _0x48d76f=await fetchLatestVersion();if(!_0x48d76f)return null;return{'version':_0x48d76f,'source':_0x2dafb1(0x15a)};}function shouldInstallTarget(_0x12a04a,_0x597192){const _0x52c029=a34_0x10617a;if(_0x597192['source']===_0x52c029(0x169)||_0x597192[_0x52c029(0x147)]===_0x52c029(0x17e))return!a34_0xac95b1['eq'](_0x12a04a,_0x597192[_0x52c029(0x169)]);return a34_0xac95b1['lt'](_0x12a04a,_0x597192[_0x52c029(0x169)]);}function getInstallPlanLabel(_0x38c3ca,_0x4daaf1){const _0x5e18b2=a34_0x10617a;switch(_0x4daaf1[_0x5e18b2(0x147)]){case _0x5e18b2(0x17e):return _0x5e18b2(0x167)+a34_0x3e9a0c[_0x5e18b2(0x13a)](_0x38c3ca)+_0x5e18b2(0x16d)+a34_0x3e9a0c['green'](_0x4daaf1[_0x5e18b2(0x169)]);case _0x5e18b2(0x169):return _0x5e18b2(0x16c)+a34_0x3e9a0c['yellow'](_0x38c3ca)+_0x5e18b2(0x16d)+a34_0x3e9a0c[_0x5e18b2(0x184)](_0x4daaf1[_0x5e18b2(0x169)]);case'latest':default:return _0x5e18b2(0x16b)+a34_0x3e9a0c[_0x5e18b2(0x13a)](_0x38c3ca)+_0x5e18b2(0x16d)+a34_0x3e9a0c['green'](_0x4daaf1[_0x5e18b2(0x169)]);}}async function installOfficialSkill(_0x29718a){const _0x3b3f81=a34_0x10617a;console['log'](a34_0x3e9a0c['gray'](_0x3b3f81(0x173)));const _0x1b0dab=runNpxSkillsAddGlobal(process[_0x3b3f81(0x171)](),RABETBASE_SKILL_SOURCE,{'stdio':_0x29718a?'pipe':_0x3b3f81(0x12f)});if(_0x1b0dab['skipped']){console['log'](a34_0x3e9a0c[_0x3b3f81(0x149)](_0x3b3f81(0x136)));return;}if(_0x1b0dab['ok']){console[_0x3b3f81(0x156)](a34_0x3e9a0c[_0x3b3f81(0x149)](_0x3b3f81(0x161)));return;}console[_0x3b3f81(0x150)](a34_0x3e9a0c[_0x3b3f81(0x13a)](_0x3b3f81(0x183)+(_0x1b0dab[_0x3b3f81(0x17d)]||'unknown'))),console[_0x3b3f81(0x156)](a34_0x3e9a0c['gray'](_0x3b3f81(0x12e)+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}function a34_0x72ed(_0x41eae0,_0x4e1b94){_0x41eae0=_0x41eae0-0x129;const _0x2aa6f4=a34_0x2aa6();let _0x72ed73=_0x2aa6f4[_0x41eae0];return _0x72ed73;}async function execute(_0x6f6de){const _0xa0ba88=a34_0x10617a;await validateUpdateFlags(_0x6f6de);const _0x2a74e1=getCurrentVersion();console[_0xa0ba88(0x156)](_0xa0ba88(0x182)+_0x2a74e1);const _0x578e45=a34_0x4378b2(_0xa0ba88(0x175))['start'](),_0x528749=await resolveTargetVersion(_0x6f6de);if(!_0x528749){const _0x414a69=_0x6f6de['bool'](_0xa0ba88(0x17e))?_0xa0ba88(0x12a):_0xa0ba88(0x154);return _0x578e45['fail'](_0x414a69),console[_0xa0ba88(0x156)](a34_0x3e9a0c['gray']('\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20'+NPM_PACKAGE_NAME+_0xa0ba88(0x13d))),{'ok':![],'message':_0x414a69};}const _0x4b215e=a34_0xac95b1[_0xa0ba88(0x13f)](VERSION),_0x4002f2=a34_0xac95b1['valid'](_0x528749['version']);if(!_0x4b215e||!_0x4002f2)return _0x578e45['fail'](_0xa0ba88(0x165)),{'ok':![],'message':_0xa0ba88(0x165)};if(!shouldInstallTarget(_0x4b215e,_0x528749)){const _0x2585f9=_0x528749[_0xa0ba88(0x147)]==='version'?_0xa0ba88(0x12b)+_0x528749[_0xa0ba88(0x169)]+')':_0xa0ba88(0x159)+_0x528749[_0xa0ba88(0x169)]+')';return _0x578e45['succeed'](_0x2585f9),shouldSkipOfficialSkill(_0x6f6de)?console[_0xa0ba88(0x156)](a34_0x3e9a0c['gray']('Skipping\x20official\x20skill\x20package\x20(--no-skills).')):await installOfficialSkill(_0x6f6de[_0xa0ba88(0x14f)]),{'ok':!![]};}_0x578e45[_0xa0ba88(0x15e)](getInstallPlanLabel(_0x2a74e1,_0x528749));const _0x2b0d9d=detectPackageManager(),_0x161d83=_0x2b0d9d===_0xa0ba88(0x163)?resolveNpmBin(_0xa0ba88(0x163)):_0x2b0d9d,_0x4fb20e=a34_0x4378b2(_0xa0ba88(0x162)+_0x2b0d9d+_0xa0ba88(0x140))[_0xa0ba88(0x129)]();try{return await execa(_0x161d83,['install','-g',NPM_PACKAGE_NAME+'@'+_0x528749[_0xa0ba88(0x169)]],{'stdio':_0xa0ba88(0x130)}),_0x4fb20e['succeed'](_0xa0ba88(0x17c)+_0x528749['version']),console[_0xa0ba88(0x156)](a34_0x3e9a0c['gray'](_0xa0ba88(0x145))),shouldSkipOfficialSkill(_0x6f6de)?console[_0xa0ba88(0x156)](a34_0x3e9a0c['gray'](_0xa0ba88(0x15b))):await installOfficialSkill(_0x6f6de[_0xa0ba88(0x14f)]),{'ok':!![]};}catch(_0x185f41){return _0x4fb20e[_0xa0ba88(0x153)](_0xa0ba88(0x185)),console['error'](a34_0x3e9a0c[_0xa0ba88(0x134)]('\x20\x20'+_0x185f41[_0xa0ba88(0x157)])),console[_0xa0ba88(0x156)](a34_0x3e9a0c['gray'](_0xa0ba88(0x178)+_0x2b0d9d+_0xa0ba88(0x135)+NPM_PACKAGE_NAME+'@'+_0x528749['version'])),{'ok':![],'message':_0x185f41[_0xa0ba88(0x157)]};}}export const updateDefinition={'service':a34_0x10617a(0x13b),'command':a34_0x10617a(0x17f),'description':a34_0x10617a(0x180),'risk':a34_0x10617a(0x174),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
1
+ const a34_0x15376d=a34_0x8830;(function(_0x87dc64,_0x15361e){const _0x58f97f=a34_0x8830,_0x5e2163=_0x87dc64();while(!![]){try{const _0x178176=-parseInt(_0x58f97f(0x229))/0x1*(parseInt(_0x58f97f(0x214))/0x2)+-parseInt(_0x58f97f(0x23a))/0x3*(parseInt(_0x58f97f(0x212))/0x4)+parseInt(_0x58f97f(0x215))/0x5+parseInt(_0x58f97f(0x1e8))/0x6+parseInt(_0x58f97f(0x205))/0x7+parseInt(_0x58f97f(0x213))/0x8*(parseInt(_0x58f97f(0x22a))/0x9)+parseInt(_0x58f97f(0x211))/0xa*(-parseInt(_0x58f97f(0x21e))/0xb);if(_0x178176===_0x15361e)break;else _0x5e2163['push'](_0x5e2163['shift']());}catch(_0xe1f6ce){_0x5e2163['push'](_0x5e2163['shift']());}}}(a34_0x5cbd,0x6d58e));import a34_0xea9acc from'chalk';import a34_0x14bc1e from'ora';import a34_0x2bfddd from'semver';import{execa}from'execa';import{NPM_PACKAGE_NAME}from'../constant/cli.js';import{VERSION,GIT_COMMIT,BUILD_TIME}from'../generated/build-info.js';import{CliErrors}from'../errors.js';import{NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE,RABETBASE_SKILL_SOURCE,runNpxSkillsAddGlobal}from'../skills/npx-skills-add.js';import{getCdnConfig}from'../utils/cdn-config.js';import{resolveNpmBin}from'../utils/platform.js';function getCurrentVersion(){const _0x560cf5=a34_0x8830;return GIT_COMMIT!==_0x560cf5(0x200)?VERSION+'\x20('+GIT_COMMIT+',\x20'+BUILD_TIME['slice'](0x0,0xa)+')':VERSION;}function detectPackageManager(){const _0x13c0bb=a34_0x8830,_0x58f22d=process['execPath']['toLowerCase']();if(_0x58f22d[_0x13c0bb(0x1ec)](_0x13c0bb(0x21d)))return _0x13c0bb(0x21d);return'npm';}const updateFlags=[{'name':'beta','type':a34_0x15376d(0x1eb),'description':a34_0x15376d(0x1f0),'default':![]},{'name':a34_0x15376d(0x21a),'type':a34_0x15376d(0x206),'description':a34_0x15376d(0x1fb)},{'name':a34_0x15376d(0x1f8),'type':'boolean','description':'Skip\x20official\x20skill\x20package\x20refresh\x20after\x20updating','default':![]},{'name':a34_0x15376d(0x1fe),'type':a34_0x15376d(0x1eb),'description':a34_0x15376d(0x1ea),'default':!![],'hidden':!![]}];function getRequestedVersion(_0xe620d7){const _0x4f877e=a34_0x15376d;return _0xe620d7[_0x4f877e(0x22e)](_0x4f877e(0x21a))[_0x4f877e(0x22d)]();}function a34_0x5cbd(){const _0x210bc1=['nonInteractive','7zXCoIo','813762vfLxcl','error','cwd','trim','str','message','Current\x20version:\x20','source','\x20\x20Try\x20manually:\x20','run','Use\x20a\x20full\x20semver\x20such\x20as\x202.1.6\x20or\x202.1.6-beta.1.','--beta\x20and\x20--version\x20cannot\x20be\x20used\x20together.','\x20\x20Official\x20skill\x20update\x20failed:\x20','log','Update\x20failed','Choose\x20either\x20npm\x20beta\x20dist-tag\x20or\x20an\x20exact\x20version.','211479jzAGyz','validation','object','\x20\x20Official\x20skill\x20package\x20is\x20up\x20to\x20date.','205176dYezrx','\x20\x20Restart\x20your\x20terminal\x20to\x20use\x20the\x20new\x20version.','Refresh\x20official\x20skill\x20package\x20after\x20updating','boolean','includes','latest','update','info','Install\x20the\x20version\x20from\x20npm\x20beta\x20dist-tag','Checking\x20official\x20skill\x20package...','Updated\x20to\x20v','write','bool','beta','@latest','entries','no-skills','Update\x20available:\x20','length','Install\x20a\x20specific\x20CLI\x20version','gray','Update\x20rabetbase\x20CLI\x20to\x20the\x20latest\x20version','skills','Already\x20up\x20to\x20date\x20(v','unknown','npm','install','warn','pipe','4059062LzEiJi','string','timeout','fromEntries','Version\x20comparison\x20failed','\x20\x20Run\x20manually:\x20npm\x20install\x20-g\x20','Skipping\x20official\x20skill\x20package\x20(--no-skills).','...','Unable\x20to\x20check\x20for\x20updates\x20(network\x20error)','red','skipped','\x20→\x20','512720OTCGAs','44nYPbzf','32ImZWax','4574FRqffR','3368800QkXqsZ','cli','green','yellow','\x20\x20Skipped\x20skill\x20install\x20(RABETBASE_SKIP_NPX_SKILLS=1).','version','https://registry.npmjs.org/-/package/','valid','bun','88iEnCZQ','start','Updating\x20via\x20','succeed','fail','flag','Invalid\x20version:\x20','filter','Unable\x20to\x20resolve\x20beta\x20version\x20from\x20npm','Beta\x20version:\x20'];a34_0x5cbd=function(){return _0x210bc1;};return a34_0x5cbd();}function shouldSkipOfficialSkill(_0x589238){const _0x4c372e=a34_0x15376d;return _0x589238[_0x4c372e(0x1f4)](_0x4c372e(0x1f8))||_0x589238[_0x4c372e(0x223)]('skills')===![];}async function validateUpdateFlags(_0x424396){const _0x28a2a3=a34_0x15376d,_0x44314e=_0x424396[_0x28a2a3(0x1f4)](_0x28a2a3(0x1f5)),_0x360eef=getRequestedVersion(_0x424396);if(_0x44314e&&_0x360eef)throw CliErrors[_0x28a2a3(0x23b)](_0x28a2a3(0x235),_0x28a2a3(0x239));if(_0x360eef&&!a34_0x2bfddd['valid'](_0x360eef))throw CliErrors[_0x28a2a3(0x23b)](_0x28a2a3(0x224)+_0x360eef,_0x28a2a3(0x234));}async function fetchNpmDistTags(){const _0x4cb4aa=a34_0x15376d;try{const _0x2a434b=await fetch(_0x4cb4aa(0x21b)+encodeURIComponent(NPM_PACKAGE_NAME)+'/dist-tags',{'signal':AbortSignal[_0x4cb4aa(0x207)](0x2710)});if(!_0x2a434b['ok'])return null;const _0x76de8b=await _0x2a434b['json']();if(!_0x76de8b||typeof _0x76de8b!==_0x4cb4aa(0x23c))return null;return Object[_0x4cb4aa(0x208)](Object[_0x4cb4aa(0x1f7)](_0x76de8b)[_0x4cb4aa(0x225)](([,_0x518639])=>typeof _0x518639==='string'&&_0x518639['trim']()[_0x4cb4aa(0x1fa)]>0x0)['map'](([_0x3bda15,_0x19291c])=>[_0x3bda15,String(_0x19291c)['trim']()]));}catch{return null;}}async function fetchNpmDistTagVersion(_0x477c4f){const _0x5dca0e=await fetchNpmDistTags();return _0x5dca0e?.[_0x477c4f]??null;}async function fetchLatestVersion(){const _0x250543=a34_0x15376d,_0x110cd6=await fetchNpmDistTagVersion(_0x250543(0x1ed));if(_0x110cd6)return _0x110cd6;const _0x51ba79=await getCdnConfig();return _0x51ba79?.[_0x250543(0x216)]?.['stableVersion']??null;}async function resolveTargetVersion(_0x423ee7){const _0x37b768=a34_0x15376d,_0x2a7505=getRequestedVersion(_0x423ee7);if(_0x2a7505)return{'version':_0x2a7505,'source':_0x37b768(0x21a)};if(_0x423ee7['bool'](_0x37b768(0x1f5))){const _0x195dbf=await fetchNpmDistTagVersion('beta');if(!_0x195dbf)return null;return{'version':_0x195dbf,'source':'beta'};}const _0x17f839=await fetchLatestVersion();if(!_0x17f839)return null;return{'version':_0x17f839,'source':_0x37b768(0x1ed)};}function shouldInstallTarget(_0x276f6b,_0x50ed6f){const _0x37dca6=a34_0x15376d;if(_0x50ed6f[_0x37dca6(0x231)]==='version'||_0x50ed6f[_0x37dca6(0x231)]==='beta')return!a34_0x2bfddd['eq'](_0x276f6b,_0x50ed6f[_0x37dca6(0x21a)]);return a34_0x2bfddd['lt'](_0x276f6b,_0x50ed6f[_0x37dca6(0x21a)]);}function a34_0x8830(_0x2390cf,_0x416004){_0x2390cf=_0x2390cf-0x1e8;const _0x5cbd52=a34_0x5cbd();let _0x8830d0=_0x5cbd52[_0x2390cf];return _0x8830d0;}function getInstallPlanLabel(_0x3de30d,_0x1367f7){const _0x360a4f=a34_0x15376d;switch(_0x1367f7[_0x360a4f(0x231)]){case'beta':return _0x360a4f(0x227)+a34_0xea9acc[_0x360a4f(0x218)](_0x3de30d)+_0x360a4f(0x210)+a34_0xea9acc[_0x360a4f(0x217)](_0x1367f7[_0x360a4f(0x21a)]);case _0x360a4f(0x21a):return'Requested\x20version:\x20'+a34_0xea9acc[_0x360a4f(0x218)](_0x3de30d)+_0x360a4f(0x210)+a34_0xea9acc[_0x360a4f(0x217)](_0x1367f7[_0x360a4f(0x21a)]);case _0x360a4f(0x1ed):default:return _0x360a4f(0x1f9)+a34_0xea9acc[_0x360a4f(0x218)](_0x3de30d)+_0x360a4f(0x210)+a34_0xea9acc[_0x360a4f(0x217)](_0x1367f7['version']);}}async function installOfficialSkill(_0x58c21f){const _0x55b2b2=a34_0x15376d;console[_0x55b2b2(0x237)](a34_0xea9acc[_0x55b2b2(0x1fc)](_0x55b2b2(0x1f1)));const _0x434762=runNpxSkillsAddGlobal(process[_0x55b2b2(0x22c)](),RABETBASE_SKILL_SOURCE,{'stdio':_0x58c21f?_0x55b2b2(0x204):'inherit'});if(_0x434762[_0x55b2b2(0x20f)]){console[_0x55b2b2(0x237)](a34_0xea9acc[_0x55b2b2(0x1fc)](_0x55b2b2(0x219)));return;}if(_0x434762['ok']){console[_0x55b2b2(0x237)](a34_0xea9acc[_0x55b2b2(0x1fc)](_0x55b2b2(0x23d)));return;}console[_0x55b2b2(0x203)](a34_0xea9acc[_0x55b2b2(0x218)](_0x55b2b2(0x236)+(_0x434762[_0x55b2b2(0x22b)]||_0x55b2b2(0x200)))),console[_0x55b2b2(0x237)](a34_0xea9acc[_0x55b2b2(0x1fc)]('\x20\x20Run\x20manually:\x20'+NPX_SKILLS_ADD_GLOBAL_COMMAND_LINE));}async function execute(_0x8a11c1){const _0x5e6873=a34_0x15376d;await validateUpdateFlags(_0x8a11c1);const _0x2298dd=getCurrentVersion();console[_0x5e6873(0x237)](_0x5e6873(0x230)+_0x2298dd);const _0x5a40bf=a34_0x14bc1e('Checking\x20for\x20updates...')[_0x5e6873(0x21f)](),_0x3153ae=await resolveTargetVersion(_0x8a11c1);if(!_0x3153ae){const _0x4b14cc=_0x8a11c1[_0x5e6873(0x1f4)](_0x5e6873(0x1f5))?_0x5e6873(0x226):_0x5e6873(0x20d);return _0x5a40bf['fail'](_0x4b14cc),console[_0x5e6873(0x237)](a34_0xea9acc['gray'](_0x5e6873(0x20a)+NPM_PACKAGE_NAME+_0x5e6873(0x1f6))),{'ok':![],'message':_0x4b14cc};}const _0x403d05=a34_0x2bfddd['valid'](VERSION),_0x20cc88=a34_0x2bfddd[_0x5e6873(0x21c)](_0x3153ae['version']);if(!_0x403d05||!_0x20cc88)return _0x5a40bf[_0x5e6873(0x222)](_0x5e6873(0x209)),{'ok':![],'message':'Version\x20comparison\x20failed'};if(!shouldInstallTarget(_0x403d05,_0x3153ae)){const _0x1f6569=_0x3153ae[_0x5e6873(0x231)]==='version'?'Already\x20on\x20requested\x20version\x20(v'+_0x3153ae['version']+')':_0x5e6873(0x1ff)+_0x3153ae[_0x5e6873(0x21a)]+')';return _0x5a40bf[_0x5e6873(0x221)](_0x1f6569),shouldSkipOfficialSkill(_0x8a11c1)?console['log'](a34_0xea9acc[_0x5e6873(0x1fc)](_0x5e6873(0x20b))):await installOfficialSkill(_0x8a11c1['nonInteractive']),{'ok':!![]};}_0x5a40bf[_0x5e6873(0x1ef)](getInstallPlanLabel(_0x2298dd,_0x3153ae));const _0x1d3b19=detectPackageManager(),_0x3567dc=_0x1d3b19===_0x5e6873(0x201)?resolveNpmBin(_0x5e6873(0x201)):_0x1d3b19,_0x5419d1=a34_0x14bc1e(_0x5e6873(0x220)+_0x1d3b19+_0x5e6873(0x20c))['start']();try{return await execa(_0x3567dc,[_0x5e6873(0x202),'-g',NPM_PACKAGE_NAME+'@'+_0x3153ae[_0x5e6873(0x21a)]],{'stdio':_0x5e6873(0x204)}),_0x5419d1[_0x5e6873(0x221)](_0x5e6873(0x1f2)+_0x3153ae[_0x5e6873(0x21a)]),console[_0x5e6873(0x237)](a34_0xea9acc[_0x5e6873(0x1fc)](_0x5e6873(0x1e9))),shouldSkipOfficialSkill(_0x8a11c1)?console[_0x5e6873(0x237)](a34_0xea9acc['gray'](_0x5e6873(0x20b))):await installOfficialSkill(_0x8a11c1[_0x5e6873(0x228)]),{'ok':!![]};}catch(_0x17189c){return _0x5419d1[_0x5e6873(0x222)](_0x5e6873(0x238)),console[_0x5e6873(0x22b)](a34_0xea9acc[_0x5e6873(0x20e)]('\x20\x20'+_0x17189c['message'])),console['log'](a34_0xea9acc[_0x5e6873(0x1fc)](_0x5e6873(0x232)+_0x1d3b19+'\x20install\x20-g\x20'+NPM_PACKAGE_NAME+'@'+_0x3153ae[_0x5e6873(0x21a)])),{'ok':![],'message':_0x17189c[_0x5e6873(0x22f)]};}}export const updateDefinition={'service':a34_0x15376d(0x1ee),'command':a34_0x15376d(0x233),'description':a34_0x15376d(0x1fd),'risk':a34_0x15376d(0x1f3),'requiresAuth':![],'requiresAppCode':![],'hasFormat':![],'flags':updateFlags,'validate':validateUpdateFlags,'execute':execute};
@@ -1 +1 @@
1
- function a35_0x1ad0(_0x11d7bf,_0x56f6d4){_0x11d7bf=_0x11d7bf-0xab;const _0x409310=a35_0x4093();let _0x1ad0ca=_0x409310[_0x11d7bf];return _0x1ad0ca;}(function(_0x3d814b,_0x564f1e){const _0x23120e=a35_0x1ad0,_0x9a1b26=_0x3d814b();while(!![]){try{const _0x4016b3=-parseInt(_0x23120e(0xae))/0x1+-parseInt(_0x23120e(0xab))/0x2+parseInt(_0x23120e(0xaf))/0x3+parseInt(_0x23120e(0xad))/0x4+-parseInt(_0x23120e(0xb1))/0x5+-parseInt(_0x23120e(0xac))/0x6+parseInt(_0x23120e(0xb0))/0x7;if(_0x4016b3===_0x564f1e)break;else _0x9a1b26['push'](_0x9a1b26['shift']());}catch(_0x182f21){_0x9a1b26['push'](_0x9a1b26['shift']());}}}(a35_0x4093,0x24162));function a35_0x4093(){const _0x364412=['754992JKCbDO','51780HloSNs','231996SDjpBr','3608115MJkxEU','1410190TkaFbX','232788uroriT','1101018EEWMSh'];a35_0x4093=function(){return _0x364412;};return a35_0x4093();}import{codegenSdk}from'../../commands/codegen/sdk.js';import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
1
+ (function(_0x29185b,_0xfc6f3){const _0x25957f=a35_0x532b,_0x71e024=_0x29185b();while(!![]){try{const _0x48fee1=parseInt(_0x25957f(0xe5))/0x1+parseInt(_0x25957f(0xe7))/0x2+parseInt(_0x25957f(0xec))/0x3+-parseInt(_0x25957f(0xeb))/0x4*(-parseInt(_0x25957f(0xef))/0x5)+parseInt(_0x25957f(0xe8))/0x6*(parseInt(_0x25957f(0xed))/0x7)+-parseInt(_0x25957f(0xee))/0x8*(parseInt(_0x25957f(0xea))/0x9)+parseInt(_0x25957f(0xe6))/0xa*(-parseInt(_0x25957f(0xe9))/0xb);if(_0x48fee1===_0xfc6f3)break;else _0x71e024['push'](_0x71e024['shift']());}catch(_0x3677da){_0x71e024['push'](_0x71e024['shift']());}}}(a35_0x4e35,0x38a24));import{codegenSdk}from'../../commands/codegen/sdk.js';function a35_0x532b(_0x38cdc5,_0x5e33f2){_0x38cdc5=_0x38cdc5-0xe5;const _0x4e3503=a35_0x4e35();let _0x532b3d=_0x4e3503[_0x38cdc5];return _0x532b3d;}function a35_0x4e35(){const _0x5f90c=['913213Qpkppj','88DTZTtK','291895aHxIQU','238473YeMhpP','1108730ofCfgN','112580XnjUSK','6RHHfiA','55nuvupw','166194vuhSAM','20wOxCSV','817038SfMLFl'];a35_0x4e35=function(){return _0x5f90c;};return a35_0x4e35();}import{codegenSql}from'../../commands/codegen/sql.js';export const codegenDefinitions=[codegenSdk,codegenSql];
@@ -1 +1 @@
1
- const a36_0x2a26a7=a36_0x3ceb;(function(_0x4f27c5,_0x29720e){const _0x5cebd8=a36_0x3ceb,_0x8acd19=_0x4f27c5();while(!![]){try{const _0x34e19e=-parseInt(_0x5cebd8(0xb3))/0x1+parseInt(_0x5cebd8(0xb7))/0x2+parseInt(_0x5cebd8(0xb5))/0x3*(parseInt(_0x5cebd8(0xab))/0x4)+-parseInt(_0x5cebd8(0xb6))/0x5*(-parseInt(_0x5cebd8(0xb2))/0x6)+parseInt(_0x5cebd8(0xb8))/0x7+parseInt(_0x5cebd8(0xb9))/0x8+-parseInt(_0x5cebd8(0xba))/0x9;if(_0x34e19e===_0x29720e)break;else _0x8acd19['push'](_0x8acd19['shift']());}catch(_0x2dbb27){_0x8acd19['push'](_0x8acd19['shift']());}}}(a36_0x2312,0xd8086));function a36_0x3ceb(_0x3bda18,_0x54bdb2){_0x3bda18=_0x3bda18-0xa5;const _0x231276=a36_0x2312();let _0x3ceb7b=_0x231276[_0x3bda18];return _0x3ceb7b;}function a36_0x2312(){const _0x1d2d28=['operation','appCode','string','6FuJIou','1626436dEaDUv','Omit\x20import\x20statements\x20from\x20generated\x20code','27okKulY','5871415tiQnwj','2746190BLZvka','10707382URXOta','5783408kCFTDt','32778315ZdNNrT','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','tableName','alias','skip-imports','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','code','read','str','601516IENiMs','sdk','bool','name'];a36_0x2312=function(){return _0x1d2d28;};return a36_0x2312();}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':'codegen','command':a36_0x2a26a7(0xac),'description':'Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','risk':a36_0x2a26a7(0xa9),'flags':[CODE_FLAG_OPTIONAL,{'name':a36_0x2a26a7(0xa5),'type':'string','description':a36_0x2a26a7(0xa7)},{'name':'operation','type':a36_0x2a26a7(0xb1),'required':!![],'description':a36_0x2a26a7(0xbb)},{'name':a36_0x2a26a7(0xa6),'type':'boolean','description':a36_0x2a26a7(0xb4)}],async 'execute'(_0x58f243){const _0x6e7d5=a36_0x2a26a7,{dataset:_0xef9274,operation:_0x2cb26d}=await getOperationDetail(_0x58f243[_0x6e7d5(0xb0)],_0x58f243[_0x6e7d5(0xaa)](_0x6e7d5(0xa8)),_0x58f243[_0x6e7d5(0xaa)](_0x6e7d5(0xaf))),_0x378d19=generateSdkCode(_0xef9274,_0x2cb26d,{'includeImports':!_0x58f243[_0x6e7d5(0xad)](_0x6e7d5(0xa6))});return{'ok':!![],'data':{'dataset':{'name':_0xef9274[_0x6e7d5(0xae)],'code':_0xef9274[_0x6e7d5(0xa8)],'tableName':_0xef9274[_0x6e7d5(0xbc)]},'operation':_0x58f243[_0x6e7d5(0xaa)](_0x6e7d5(0xaf)),'code':_0x378d19}};}};
1
+ const a36_0xe7fc1c=a36_0x520a;function a36_0x520a(_0x5d722c,_0x43e479){_0x5d722c=_0x5d722c-0xfc;const _0x9519d7=a36_0x9519();let _0x520afa=_0x9519d7[_0x5d722c];return _0x520afa;}(function(_0x252dde,_0x415301){const _0x547714=a36_0x520a,_0x1412f3=_0x252dde();while(!![]){try{const _0x364abb=parseInt(_0x547714(0x103))/0x1+parseInt(_0x547714(0x10c))/0x2*(-parseInt(_0x547714(0xfe))/0x3)+parseInt(_0x547714(0x101))/0x4+parseInt(_0x547714(0x110))/0x5+-parseInt(_0x547714(0xfc))/0x6*(parseInt(_0x547714(0x100))/0x7)+parseInt(_0x547714(0x105))/0x8*(parseInt(_0x547714(0x10a))/0x9)+parseInt(_0x547714(0x10e))/0xa;if(_0x364abb===_0x415301)break;else _0x1412f3['push'](_0x1412f3['shift']());}catch(_0x2a6f60){_0x1412f3['push'](_0x1412f3['shift']());}}}(a36_0x9519,0x672c2));function a36_0x9519(){const _0x5ce1c7=['1104060IRxuZM','appCode','2462755EdgtFp','boolean','codegen','operation','skip-imports','28488UNsrtS','alias','12mMyXvz','sdk','1043OSFbpM','1441280GBYojS','Operation\x20name\x20(e.g.\x20filter,\x20getOne,\x20create,\x20update)','219462WNbkqc','code','72XOpPJe','Generate\x20TypeScript\x20SDK\x20code\x20for\x20a\x20dataset\x20operation','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon)','bool','tableName','675387jZLrrO','string','364040ROWaZA','str'];a36_0x9519=function(){return _0x5ce1c7;};return a36_0x9519();}import{getOperationDetail,generateSdkCode}from'../../core/api-client.js';import{CODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';export const codegenSdk={'service':a36_0xe7fc1c(0x112),'command':a36_0xe7fc1c(0xff),'description':a36_0xe7fc1c(0x106),'risk':'read','flags':[CODE_FLAG_OPTIONAL,{'name':a36_0xe7fc1c(0xfd),'type':a36_0xe7fc1c(0x10b),'description':a36_0xe7fc1c(0x107)},{'name':'operation','type':a36_0xe7fc1c(0x10b),'required':!![],'description':a36_0xe7fc1c(0x102)},{'name':'skip-imports','type':a36_0xe7fc1c(0x111),'description':'Omit\x20import\x20statements\x20from\x20generated\x20code'}],async 'execute'(_0x2a6081){const _0x4967cf=a36_0xe7fc1c,{dataset:_0x36b345,operation:_0x2aaf8e}=await getOperationDetail(_0x2a6081[_0x4967cf(0x10f)],_0x2a6081[_0x4967cf(0x10d)]('code'),_0x2a6081[_0x4967cf(0x10d)](_0x4967cf(0x113))),_0x303794=generateSdkCode(_0x36b345,_0x2aaf8e,{'includeImports':!_0x2a6081[_0x4967cf(0x108)](_0x4967cf(0x114))});return{'ok':!![],'data':{'dataset':{'name':_0x36b345['name'],'code':_0x36b345[_0x4967cf(0x104)],'tableName':_0x36b345[_0x4967cf(0x109)]},'operation':_0x2a6081[_0x4967cf(0x10d)](_0x4967cf(0x113)),'code':_0x303794}};}};
@@ -1 +1 @@
1
- const a37_0x5d59e0=a37_0x2a3f;(function(_0x4a6dfd,_0x4695e7){const _0x5dc1cc=a37_0x2a3f,_0x566fd7=_0x4a6dfd();while(!![]){try{const _0x25532d=-parseInt(_0x5dc1cc(0x104))/0x1*(-parseInt(_0x5dc1cc(0xfc))/0x2)+-parseInt(_0x5dc1cc(0x108))/0x3*(parseInt(_0x5dc1cc(0xf8))/0x4)+parseInt(_0x5dc1cc(0x10f))/0x5+-parseInt(_0x5dc1cc(0x105))/0x6+-parseInt(_0x5dc1cc(0x107))/0x7+parseInt(_0x5dc1cc(0x106))/0x8*(parseInt(_0x5dc1cc(0x109))/0x9)+parseInt(_0x5dc1cc(0x10c))/0xa*(parseInt(_0x5dc1cc(0x10b))/0xb);if(_0x25532d===_0x4695e7)break;else _0x566fd7['push'](_0x566fd7['shift']());}catch(_0x4eeaa0){_0x566fd7['push'](_0x566fd7['shift']());}}}(a37_0x1212,0x2fdea));function a37_0x2a3f(_0x4ab34f,_0x5e4b48){_0x4ab34f=_0x4ab34f-0xf6;const _0x1212f7=a37_0x1212();let _0x2a3fe4=_0x1212f7[_0x4ab34f];return _0x2a3fe4;}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';function a37_0x1212(){const _0x1e6a41=['sdk','767876HiArXd','boolean','bff','appCode','713962sRmQCk','sqlcode','str','sqlCode','Omit\x20import\x20statements\x20from\x20generated\x20code','codegen','bool','string','1kVzUEB','1619190GeZxiV','24HQaeiD','1399209trFtpk','3RxDuaN','153198pGhsXG','target','66nQszuw','132870dVQQDG','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','sql','1850130EizPus','no-imports','read'];a37_0x1212=function(){return _0x1e6a41;};return a37_0x1212();}import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x5d59e0(0x101),'command':a37_0x5d59e0(0x10e),'description':a37_0x5d59e0(0x10d),'risk':a37_0x5d59e0(0xf6),'flags':[SQLCODE_FLAG,{'name':a37_0x5d59e0(0x10a),'type':a37_0x5d59e0(0x103),'description':'Code\x20target:\x20sdk\x20(default)\x20or\x20bff','default':'sdk','enum':[a37_0x5d59e0(0xf7),a37_0x5d59e0(0xfa)]},{'name':'no-imports','type':a37_0x5d59e0(0xf9),'description':a37_0x5d59e0(0x100)}],async 'execute'(_0x4e25a3){const _0x54e1c3=a37_0x5d59e0,_0x30ffdf=await getSqlQueryInfo(_0x4e25a3[_0x54e1c3(0xfb)],_0x4e25a3['str'](_0x54e1c3(0xfd))),_0x26e87d=_0x4e25a3[_0x54e1c3(0xfe)](_0x54e1c3(0x10a))||'sdk',_0x441f7b=generateSqlCodeTemplate(_0x30ffdf,{'target':_0x26e87d,'includeImports':!_0x4e25a3[_0x54e1c3(0x102)](_0x54e1c3(0x110))});return{'ok':!![],'data':{'sqlCode':_0x30ffdf[_0x54e1c3(0xff)],'sqlName':_0x30ffdf['sqlName'],'target':_0x26e87d,'code':_0x441f7b}};}};
1
+ const a37_0x5d4160=a37_0x4d9a;(function(_0x2b2a8b,_0x525b72){const _0x4501e1=a37_0x4d9a,_0x3b0423=_0x2b2a8b();while(!![]){try{const _0x44850d=parseInt(_0x4501e1(0x1de))/0x1*(-parseInt(_0x4501e1(0x1d9))/0x2)+parseInt(_0x4501e1(0x1e1))/0x3*(parseInt(_0x4501e1(0x1e6))/0x4)+-parseInt(_0x4501e1(0x1e3))/0x5+-parseInt(_0x4501e1(0x1e4))/0x6*(-parseInt(_0x4501e1(0x1da))/0x7)+parseInt(_0x4501e1(0x1d2))/0x8+parseInt(_0x4501e1(0x1d4))/0x9+-parseInt(_0x4501e1(0x1d6))/0xa;if(_0x44850d===_0x525b72)break;else _0x3b0423['push'](_0x3b0423['shift']());}catch(_0x240c31){_0x3b0423['push'](_0x3b0423['shift']());}}}(a37_0x4c84,0xd0385));function a37_0x4c84(){const _0x4a9bb4=['7xCewPc','target','appCode','read','142RXThqv','str','boolean','118149jfgpXE','sdk','1473150XbXBMU','1843692PjrtiD','sqlCode','56ygFDoy','Omit\x20import\x20statements\x20from\x20generated\x20code','string','bool','bff','sqlcode','10114576eMMNip','Code\x20target:\x20sdk\x20(default)\x20or\x20bff','7425324IjJFlm','Generate\x20TypeScript\x20code\x20for\x20a\x20custom\x20SQL\x20query','14615490pPWoJN','codegen','no-imports','4774VBDgCe'];a37_0x4c84=function(){return _0x4a9bb4;};return a37_0x4c84();}function a37_0x4d9a(_0x3172a7,_0x17f77a){_0x3172a7=_0x3172a7-0x1ce;const _0x4c845c=a37_0x4c84();let _0x4d9afe=_0x4c845c[_0x3172a7];return _0x4d9afe;}import{getSqlQueryInfo,generateSqlCodeTemplate}from'../../core/api-client.js';import{SQLCODE_FLAG}from'../../commands/common/flags.js';export const codegenSql={'service':a37_0x5d4160(0x1d7),'command':'sql','description':a37_0x5d4160(0x1d5),'risk':a37_0x5d4160(0x1dd),'flags':[SQLCODE_FLAG,{'name':a37_0x5d4160(0x1db),'type':a37_0x5d4160(0x1ce),'description':a37_0x5d4160(0x1d3),'default':a37_0x5d4160(0x1e2),'enum':[a37_0x5d4160(0x1e2),a37_0x5d4160(0x1d0)]},{'name':a37_0x5d4160(0x1d8),'type':a37_0x5d4160(0x1e0),'description':a37_0x5d4160(0x1e7)}],async 'execute'(_0x16faaa){const _0x29bfef=a37_0x5d4160,_0x32332a=await getSqlQueryInfo(_0x16faaa[_0x29bfef(0x1dc)],_0x16faaa[_0x29bfef(0x1df)](_0x29bfef(0x1d1))),_0x8476a0=_0x16faaa[_0x29bfef(0x1df)](_0x29bfef(0x1db))||'sdk',_0x1ad0a8=generateSqlCodeTemplate(_0x32332a,{'target':_0x8476a0,'includeImports':!_0x16faaa[_0x29bfef(0x1cf)](_0x29bfef(0x1d8))});return{'ok':!![],'data':{'sqlCode':_0x32332a[_0x29bfef(0x1e5)],'sqlName':_0x32332a['sqlName'],'target':_0x8476a0,'code':_0x1ad0a8}};}};
@@ -1 +1 @@
1
- (function(_0x5ab967,_0x13bb43){const _0x55117d=a38_0x1056,_0xe6ae93=_0x5ab967();while(!![]){try{const _0x4eb7e7=parseInt(_0x55117d(0x173))/0x1+parseInt(_0x55117d(0x176))/0x2+parseInt(_0x55117d(0x185))/0x3*(-parseInt(_0x55117d(0x164))/0x4)+-parseInt(_0x55117d(0x17a))/0x5+-parseInt(_0x55117d(0x171))/0x6+parseInt(_0x55117d(0x16e))/0x7*(-parseInt(_0x55117d(0x184))/0x8)+parseInt(_0x55117d(0x166))/0x9;if(_0x4eb7e7===_0x13bb43)break;else _0xe6ae93['push'](_0xe6ae93['shift']());}catch(_0x324400){_0xe6ae93['push'](_0xe6ae93['shift']());}}}(a38_0x297b,0xcb1ea));import{input,checkbox,select}from'@inquirer/prompts';import a38_0x4c244c from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function a38_0x297b(){const _0x42344f=['请选择要绑定的应用:','126208ZtSBlk','trim','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','yellow','1232930gbpSvU','gray','map','获取到\x20','Invalid\x20App\x20Code','cyan','valid','manual','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','includes','8QdxQiN','20529tYGYKB','message','\x0a未找到可用应用。','✎\x20自定义输入\x20appcode','custom','316wdfEMz','find','30312927bCFkmy','App\x20Code:','请输入\x20App\x20Code:','\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','appName','\x0a无法获取远程应用列表,请手动输入。','length','\x20\x20(','6985573BVZMGt','skip','✎\x20手动输入','8302386OJagMW','appCode','569624MyVLeV','正在获取可用应用列表...'];a38_0x297b=function(){return _0x42344f;};return a38_0x297b();}function a38_0x1056(_0x32e1e5,_0x42e631){_0x32e1e5=_0x32e1e5-0x163;const _0x297b90=a38_0x297b();let _0x105631=_0x297b90[_0x32e1e5];return _0x105631;}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0xc260fa=a38_0x1056,_0x843444=await input({'message':_0xc260fa(0x168),'validate':_0x22fdda=>{const _0x4b3996=_0xc260fa,_0x559661=validateAppcode(_0x22fdda['trim']());return _0x559661[_0x4b3996(0x180)]||_0x559661[_0x4b3996(0x186)]||_0x4b3996(0x17e);}});return _0x843444[_0xc260fa(0x177)]();}export async function promptAppSelection(_0x457a78){const _0x546e74=a38_0x1056,_0x1ac057=[{'name':a38_0x4c244c[_0x546e74(0x179)](_0x546e74(0x188)),'value':-0x1},..._0x457a78['map']((_0xd36361,_0x41f766)=>({'name':_0xd36361[_0x546e74(0x16a)]+'\x20\x20'+a38_0x4c244c[_0x546e74(0x17b)]('('+_0xd36361[_0x546e74(0x172)]+')'),'value':_0x41f766}))],_0x639ebd=await checkbox({'message':_0x546e74(0x17d)+a38_0x4c244c[_0x546e74(0x17f)](_0x457a78[_0x546e74(0x16c)])+_0x546e74(0x169),'choices':_0x1ac057,'loop':![]});if(_0x639ebd[_0x546e74(0x183)](-0x1))return _0x546e74(0x163);if(_0x639ebd[_0x546e74(0x16c)]===0x0)return'custom';return _0x639ebd[_0x546e74(0x17c)](_0x54220f=>_0x457a78[_0x54220f]);}export async function promptSingleAppSelection(_0x5b9759){const _0x554dbd=a38_0x1056,_0x2725ea=[{'name':a38_0x4c244c[_0x554dbd(0x17b)](_0x554dbd(0x182)),'value':_0x554dbd(0x16f)},{'name':a38_0x4c244c[_0x554dbd(0x179)]('✎\x20自定义输入\x20appcode'),'value':'custom'},..._0x5b9759['map'](_0x4b7fef=>({'name':_0x4b7fef[_0x554dbd(0x16a)]+'\x20\x20'+a38_0x4c244c['gray']('('+_0x4b7fef[_0x554dbd(0x172)]+')'),'value':_0x4b7fef['appCode']}))],_0x479b90=await select({'message':_0x554dbd(0x175),'choices':_0x2725ea});if(_0x479b90===_0x554dbd(0x16f))return'skip';if(_0x479b90===_0x554dbd(0x163))return _0x554dbd(0x163);return _0x5b9759[_0x554dbd(0x165)](_0x6decfa=>_0x6decfa[_0x554dbd(0x172)]===_0x479b90);}export async function selectSingleAppcode(_0x3e575f){const _0x24fc7b=a38_0x1056;if(!_0x3e575f)return writeCliSideChannelLine(a38_0x4c244c['gray'](_0x24fc7b(0x178))),_fallbackOrSkip();writeCliSideChannelLine(_0x24fc7b(0x174));let _0x3e753a;try{_0x3e753a=await withActiveCookie(_0x3e575f,()=>listRemoteApps());}catch(_0x3d1ebe){writeCliSideChannelLine(a38_0x4c244c[_0x24fc7b(0x179)]('无法获取远程应用列表,请手动输入。'));if(_0x3d1ebe instanceof Error)writeCliSideChannelLine(a38_0x4c244c[_0x24fc7b(0x17b)](_0x24fc7b(0x16d)+_0x3d1ebe[_0x24fc7b(0x186)]+')'));return _fallbackOrSkip();}if(_0x3e753a['length']===0x0)return writeCliSideChannelLine(a38_0x4c244c[_0x24fc7b(0x179)]('未找到可用应用。')),_fallbackOrSkip();const _0x18f02e=await promptSingleAppSelection(_0x3e753a);if(_0x18f02e==='skip')return'';if(_0x18f02e===_0x24fc7b(0x163))return promptCustomAppcode();return _0x18f02e[_0x24fc7b(0x172)];}export async function selectMultipleApps(_0x4a702d){const _0x5adfbe=a38_0x1056;writeCliSideChannelLine(_0x5adfbe(0x174));let _0xf501d8;try{_0xf501d8=await withActiveCookie(_0x4a702d,()=>listRemoteApps());}catch(_0x40669b){writeCliSideChannelLine(_0x5adfbe(0x16b));if(_0x40669b instanceof Error)writeCliSideChannelLine('\x20\x20('+_0x40669b[_0x5adfbe(0x186)]+')');return _0x5adfbe(0x163);}if(_0xf501d8['length']===0x0)return writeCliSideChannelLine(_0x5adfbe(0x187)),'custom';return promptAppSelection(_0xf501d8);}async function _fallbackOrSkip(){const _0x5c219d=a38_0x1056,_0x49db84=await select({'message':_0x5c219d(0x167),'choices':[{'name':a38_0x4c244c['gray']('(跳过,稍后配置)'),'value':_0x5c219d(0x16f)},{'name':a38_0x4c244c[_0x5c219d(0x179)](_0x5c219d(0x170)),'value':_0x5c219d(0x181)}]});if(_0x49db84===_0x5c219d(0x16f))return'';return promptCustomAppcode();}
1
+ (function(_0x18c7b0,_0x5e5c0e){const _0x6faeab=a38_0x2c4c,_0x5a1902=_0x18c7b0();while(!![]){try{const _0x1d5233=parseInt(_0x6faeab(0x117))/0x1+parseInt(_0x6faeab(0x11e))/0x2*(parseInt(_0x6faeab(0x11f))/0x3)+-parseInt(_0x6faeab(0x100))/0x4*(parseInt(_0x6faeab(0x109))/0x5)+parseInt(_0x6faeab(0x119))/0x6*(-parseInt(_0x6faeab(0x122))/0x7)+parseInt(_0x6faeab(0x113))/0x8+parseInt(_0x6faeab(0x115))/0x9*(parseInt(_0x6faeab(0x123))/0xa)+-parseInt(_0x6faeab(0x103))/0xb*(parseInt(_0x6faeab(0x10e))/0xc);if(_0x1d5233===_0x5e5c0e)break;else _0x5a1902['push'](_0x5a1902['shift']());}catch(_0x1b198a){_0x5a1902['push'](_0x5a1902['shift']());}}}(a38_0x3e68,0x3f82c));function a38_0x2c4c(_0x51c411,_0x200750){_0x51c411=_0x51c411-0xff;const _0x3e6882=a38_0x3e68();let _0x2c4ce0=_0x3e6882[_0x51c411];return _0x2c4ce0;}import{input,checkbox,select}from'@inquirer/prompts';import a38_0x430f94 from'chalk';import{validateAppcode}from'../../commands/common/validate.js';import{listRemoteApps}from'../../core/api-client.js';import{withActiveCookie}from'../../utils/with-active-cookie.js';function a38_0x3e68(){const _0xb6cb74=['(跳过,稍后配置)','正在获取可用应用列表...','Invalid\x20App\x20Code','length','528BHYxXC','find','appName','App\x20Code:','message','4039376NUlZsq','gray','2111661Vtdbiv','(跳过,稍后通过\x20config\x20set\x20appcode\x20配置)','292604eQcUYT','✎\x20自定义输入\x20appcode','2592PzECph','appCode','trim','valid','\x0a未找到可用应用。','110NoWvxO','23745EJmmwQ','skip','未找到可用应用。','2506xtXclN','10lOdbjN','yellow','获取到\x20','13040TmFUZy','custom','map','140921csGOFt','无法获取远程应用列表,请手动输入。','(未检测到登录态,请手动输入\x20App\x20Code\x20或直接跳过)','\x20\x20(','manual','cyan','750AkBMSa'];a38_0x3e68=function(){return _0xb6cb74;};return a38_0x3e68();}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';export async function promptCustomAppcode(){const _0x1d078c=await input({'message':'请输入\x20App\x20Code:','validate':_0x5ee643=>{const _0x32c671=a38_0x2c4c,_0x33229b=validateAppcode(_0x5ee643[_0x32c671(0x11b)]());return _0x33229b[_0x32c671(0x11c)]||_0x33229b[_0x32c671(0x112)]||_0x32c671(0x10c);}});return _0x1d078c['trim']();}export async function promptAppSelection(_0x86ea54){const _0x1de2a9=a38_0x2c4c,_0x8a5439=[{'name':a38_0x430f94[_0x1de2a9(0x124)](_0x1de2a9(0x118)),'value':-0x1},..._0x86ea54['map']((_0x43857e,_0x49097a)=>({'name':_0x43857e[_0x1de2a9(0x110)]+'\x20\x20'+a38_0x430f94[_0x1de2a9(0x114)]('('+_0x43857e[_0x1de2a9(0x11a)]+')'),'value':_0x49097a}))],_0x4543dc=await checkbox({'message':_0x1de2a9(0xff)+a38_0x430f94[_0x1de2a9(0x108)](_0x86ea54['length'])+'\x20个应用,请选择\x20(空格勾选,\x20a=全选,\x20i=反选):','choices':_0x8a5439,'loop':![]});if(_0x4543dc['includes'](-0x1))return _0x1de2a9(0x101);if(_0x4543dc['length']===0x0)return'custom';return _0x4543dc[_0x1de2a9(0x102)](_0x3cdf6c=>_0x86ea54[_0x3cdf6c]);}export async function promptSingleAppSelection(_0xc20630){const _0x23447e=a38_0x2c4c,_0x1888eb=[{'name':a38_0x430f94[_0x23447e(0x114)](_0x23447e(0x116)),'value':'skip'},{'name':a38_0x430f94[_0x23447e(0x124)](_0x23447e(0x118)),'value':_0x23447e(0x101)},..._0xc20630[_0x23447e(0x102)](_0x5bbbf5=>({'name':_0x5bbbf5[_0x23447e(0x110)]+'\x20\x20'+a38_0x430f94['gray']('('+_0x5bbbf5[_0x23447e(0x11a)]+')'),'value':_0x5bbbf5[_0x23447e(0x11a)]}))],_0x571a95=await select({'message':'请选择要绑定的应用:','choices':_0x1888eb});if(_0x571a95===_0x23447e(0x120))return _0x23447e(0x120);if(_0x571a95==='custom')return _0x23447e(0x101);return _0xc20630[_0x23447e(0x10f)](_0x6489b1=>_0x6489b1[_0x23447e(0x11a)]===_0x571a95);}export async function selectSingleAppcode(_0x4cc148){const _0xaa6dc1=a38_0x2c4c;if(!_0x4cc148)return writeCliSideChannelLine(a38_0x430f94[_0xaa6dc1(0x114)](_0xaa6dc1(0x105))),_fallbackOrSkip();writeCliSideChannelLine(_0xaa6dc1(0x10b));let _0x24ab9d;try{_0x24ab9d=await withActiveCookie(_0x4cc148,()=>listRemoteApps());}catch(_0x188c86){writeCliSideChannelLine(a38_0x430f94[_0xaa6dc1(0x124)](_0xaa6dc1(0x104)));if(_0x188c86 instanceof Error)writeCliSideChannelLine(a38_0x430f94[_0xaa6dc1(0x114)]('\x20\x20('+_0x188c86['message']+')'));return _fallbackOrSkip();}if(_0x24ab9d[_0xaa6dc1(0x10d)]===0x0)return writeCliSideChannelLine(a38_0x430f94[_0xaa6dc1(0x124)](_0xaa6dc1(0x121))),_fallbackOrSkip();const _0x5a9023=await promptSingleAppSelection(_0x24ab9d);if(_0x5a9023==='skip')return'';if(_0x5a9023===_0xaa6dc1(0x101))return promptCustomAppcode();return _0x5a9023[_0xaa6dc1(0x11a)];}export async function selectMultipleApps(_0x33aa09){const _0x2bac9e=a38_0x2c4c;writeCliSideChannelLine(_0x2bac9e(0x10b));let _0x598a16;try{_0x598a16=await withActiveCookie(_0x33aa09,()=>listRemoteApps());}catch(_0x4a4996){writeCliSideChannelLine('\x0a无法获取远程应用列表,请手动输入。');if(_0x4a4996 instanceof Error)writeCliSideChannelLine(_0x2bac9e(0x106)+_0x4a4996[_0x2bac9e(0x112)]+')');return'custom';}if(_0x598a16[_0x2bac9e(0x10d)]===0x0)return writeCliSideChannelLine(_0x2bac9e(0x11d)),'custom';return promptAppSelection(_0x598a16);}async function _fallbackOrSkip(){const _0x48a74f=a38_0x2c4c,_0x1e3fb9=await select({'message':_0x48a74f(0x111),'choices':[{'name':a38_0x430f94['gray'](_0x48a74f(0x10a)),'value':'skip'},{'name':a38_0x430f94[_0x48a74f(0x124)]('✎\x20手动输入'),'value':_0x48a74f(0x107)}]});if(_0x1e3fb9==='skip')return'';return promptCustomAppcode();}
@@ -1 +1 @@
1
- function a39_0x54e9(_0x3f2937,_0x352089){_0x3f2937=_0x3f2937-0x75;const _0xa67bce=a39_0xa67b();let _0x54e961=_0xa67bce[_0x3f2937];return _0x54e961;}const a39_0x3b9a8f=a39_0x54e9;(function(_0x49635c,_0x53e47f){const _0x2ad26a=a39_0x54e9,_0x5a14b3=_0x49635c();while(!![]){try{const _0x388698=-parseInt(_0x2ad26a(0x7a))/0x1*(-parseInt(_0x2ad26a(0x77))/0x2)+-parseInt(_0x2ad26a(0x7c))/0x3+-parseInt(_0x2ad26a(0x75))/0x4+-parseInt(_0x2ad26a(0x7d))/0x5+parseInt(_0x2ad26a(0x82))/0x6*(parseInt(_0x2ad26a(0x7f))/0x7)+-parseInt(_0x2ad26a(0x88))/0x8+parseInt(_0x2ad26a(0x7e))/0x9;if(_0x388698===_0x53e47f)break;else _0x5a14b3['push'](_0x5a14b3['shift']());}catch(_0x3c5a9b){_0x5a14b3['push'](_0x5a14b3['shift']());}}}(a39_0xa67b,0x5acfd));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x3b9a8f(0x8a)};function a39_0xa67b(){const _0x48ad05=['SQL\x20code\x20in\x20format\x20xxxxxxxx-xxxxxxxx\x20(e.g.\x202305f915-dd48cd4c)','sqlcode','string','5927328vrWWwW','dbtype','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','539108RtEylv','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','46ksZnoS','datasetcode','MYSQL','19963rJUkib','code','769041OPmBdC','1455125xLpgpU','5916366NxSdac','4749549nqSPJH','number','appcode','6wpgncb','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','Dataset\x20code\x20(32-char\x20hex\x20UUID)'];a39_0xa67b=function(){return _0x48ad05;};return a39_0xa67b();}export const CODE_FLAG={'name':a39_0x3b9a8f(0x7b),'type':'string','required':!![],'description':a39_0x3b9a8f(0x84),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x3b9a8f(0x78),'description':a39_0x3b9a8f(0x84)};export const SQLCODE_FLAG={'name':a39_0x3b9a8f(0x86),'type':a39_0x3b9a8f(0x87),'required':!![],'description':'SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','pattern':{'regex':/^[a-f0-9]{8}-[a-f0-9]{8}$/i,'description':a39_0x3b9a8f(0x85)}};export const APPCODE_FLAG_OPTIONAL={'name':a39_0x3b9a8f(0x81),'type':a39_0x3b9a8f(0x87),'required':![],'description':a39_0x3b9a8f(0x76)};export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a39_0x3b9a8f(0x80),'required':!![],'description':a39_0x3b9a8f(0x83)};export const DB_TYPE_FLAG={'name':a39_0x3b9a8f(0x89),'type':a39_0x3b9a8f(0x87),'required':!![],'description':'Database\x20product\x20type','enum':[a39_0x3b9a8f(0x79),'POSTGRESQL']};
1
+ const a39_0x4e0701=a39_0x2aa0;function a39_0x2aa0(_0x4e8013,_0x491923){_0x4e8013=_0x4e8013-0x75;const _0x49aa31=a39_0x49aa();let _0x2aa07f=_0x49aa31[_0x4e8013];return _0x2aa07f;}(function(_0x34eb79,_0x20ed13){const _0x270d9f=a39_0x2aa0,_0x1c376e=_0x34eb79();while(!![]){try{const _0x24f051=-parseInt(_0x270d9f(0x7e))/0x1+-parseInt(_0x270d9f(0x7b))/0x2*(parseInt(_0x270d9f(0x7f))/0x3)+-parseInt(_0x270d9f(0x82))/0x4+-parseInt(_0x270d9f(0x85))/0x5+-parseInt(_0x270d9f(0x83))/0x6+parseInt(_0x270d9f(0x89))/0x7+parseInt(_0x270d9f(0x7c))/0x8;if(_0x24f051===_0x20ed13)break;else _0x1c376e['push'](_0x1c376e['shift']());}catch(_0x2fa667){_0x1c376e['push'](_0x1c376e['shift']());}}}(a39_0x49aa,0xdbbb9));export const DATASET_CODE_PATTERN={'regex':/^[a-f0-9]{32}$/i,'description':a39_0x4e0701(0x7d)};export const CODE_FLAG={'name':'code','type':a39_0x4e0701(0x81),'required':!![],'description':a39_0x4e0701(0x77),'pattern':DATASET_CODE_PATTERN};export const CODE_FLAG_OPTIONAL={...CODE_FLAG,'required':![]};export const DATASETCODE_FLAG_OPTIONAL={...CODE_FLAG_OPTIONAL,'name':a39_0x4e0701(0x78),'description':'Dataset\x20code\x20(32-char\x20hex\x20UUID)'};export const SQLCODE_FLAG={'name':a39_0x4e0701(0x80),'type':'string','required':!![],'description':a39_0x4e0701(0x79),'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':a39_0x4e0701(0x88),'type':a39_0x4e0701(0x81),'required':![],'description':a39_0x4e0701(0x75)};function a39_0x49aa(){const _0x4462d5=['datasetcode','SQL\x20code\x20identifier\x20(format:\x20xxxxxxxx-xxxxxxxx,\x20e.g.\x202305f915-dd48cd4c)','Database\x20product\x20type','16MNJlLN','31761448FYhUOL','a\x2032-character\x20hex\x20string\x20(e.g.\x2099a909313f1fa7153186431e1c551588)','1421273hYKKlC','150099oFlpot','sqlcode','string','3781480OoJjkx','1816908CJDzgP','dbtype','8284555kdWKTr','Database\x20connection\x20ID\x20(dblink\x20id\x20from\x20db\x20list)','number','appcode','11595360exaigi','App\x20code\x20(overrides\x20config\x20file,\x20e.g.\x20app-xxxxx)','POSTGRESQL','Dataset\x20code\x20(32-char\x20hex\x20UUID)'];a39_0x49aa=function(){return _0x4462d5;};return a39_0x49aa();}export const SQLCODE_FLAG_OPTIONAL={...SQLCODE_FLAG,'required':![]};export const DBLINK_ID_FLAG={'name':'id','type':a39_0x4e0701(0x87),'required':!![],'description':a39_0x4e0701(0x86)};export const DB_TYPE_FLAG={'name':a39_0x4e0701(0x84),'type':'string','required':!![],'description':a39_0x4e0701(0x7a),'enum':['MYSQL',a39_0x4e0701(0x76)]};
@@ -1 +1 @@
1
- (function(_0x444198,_0x10d1ec){const _0x15d6e2=a40_0x41d9,_0x25bfc1=_0x444198();while(!![]){try{const _0x2234e9=parseInt(_0x15d6e2(0x1a8))/0x1*(-parseInt(_0x15d6e2(0x19f))/0x2)+parseInt(_0x15d6e2(0x19c))/0x3*(-parseInt(_0x15d6e2(0x1ab))/0x4)+-parseInt(_0x15d6e2(0x1a9))/0x5*(parseInt(_0x15d6e2(0x1aa))/0x6)+parseInt(_0x15d6e2(0x1a7))/0x7+parseInt(_0x15d6e2(0x19d))/0x8*(-parseInt(_0x15d6e2(0x1a3))/0x9)+parseInt(_0x15d6e2(0x19e))/0xa*(parseInt(_0x15d6e2(0x199))/0xb)+-parseInt(_0x15d6e2(0x1a1))/0xc*(-parseInt(_0x15d6e2(0x19b))/0xd);if(_0x2234e9===_0x10d1ec)break;else _0x25bfc1['push'](_0x25bfc1['shift']());}catch(_0x391fd4){_0x25bfc1['push'](_0x25bfc1['shift']());}}}(a40_0x59a7,0xc05aa));function a40_0x59a7(){const _0x380b7a=['563717JMOFnB','test','195iWLWRg','235539qfBNQe','189288iMjgLW','10YMiLVH','7802DuONYy','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','1468812kjeoaq','App\x20Code\x20cannot\x20be\x20empty','189YtzSnq','App\x20Code\x20cannot\x20exceed\x20100\x20characters','trim','length','7432271XLGCzs','127fLvCiJ','640tXUVSt','21666LDCahp','36wecRlr'];a40_0x59a7=function(){return _0x380b7a;};return a40_0x59a7();}function a40_0x41d9(_0x4721b6,_0x48725c){_0x4721b6=_0x4721b6-0x199;const _0x59a76e=a40_0x59a7();let _0x41d970=_0x59a76e[_0x4721b6];return _0x41d970;}export function validateAppcode(_0x171a4e){const _0x212d27=a40_0x41d9,_0x475621=_0x171a4e[_0x212d27(0x1a5)]();if(!_0x475621)return{'valid':![],'message':_0x212d27(0x1a2)};if(_0x475621[_0x212d27(0x1a6)]>0x64)return{'valid':![],'message':_0x212d27(0x1a4)};if(!/^[A-Za-z0-9_-]+$/[_0x212d27(0x19a)](_0x475621))return{'valid':![],'message':_0x212d27(0x1a0)};return{'valid':!![]};}
1
+ (function(_0x943928,_0x307655){const _0xa8a4b=a40_0x5b0f,_0x18ad5f=_0x943928();while(!![]){try{const _0xe91440=-parseInt(_0xa8a4b(0xda))/0x1*(-parseInt(_0xa8a4b(0xd5))/0x2)+-parseInt(_0xa8a4b(0xce))/0x3*(-parseInt(_0xa8a4b(0xdc))/0x4)+parseInt(_0xa8a4b(0xd8))/0x5*(-parseInt(_0xa8a4b(0xd1))/0x6)+parseInt(_0xa8a4b(0xdb))/0x7*(-parseInt(_0xa8a4b(0xcf))/0x8)+parseInt(_0xa8a4b(0xd7))/0x9*(-parseInt(_0xa8a4b(0xd0))/0xa)+-parseInt(_0xa8a4b(0xd4))/0xb+parseInt(_0xa8a4b(0xcd))/0xc;if(_0xe91440===_0x307655)break;else _0x18ad5f['push'](_0x18ad5f['shift']());}catch(_0x510d51){_0x18ad5f['push'](_0x18ad5f['shift']());}}}(a40_0x5880,0x2ecea));export function validateAppcode(_0x3cfbb8){const _0x944e5f=a40_0x5b0f,_0x53ccb2=_0x3cfbb8[_0x944e5f(0xcc)]();if(!_0x53ccb2)return{'valid':![],'message':_0x944e5f(0xd6)};if(_0x53ccb2['length']>0x64)return{'valid':![],'message':_0x944e5f(0xd2)};if(!/^[A-Za-z0-9_-]+$/[_0x944e5f(0xd3)](_0x53ccb2))return{'valid':![],'message':_0x944e5f(0xd9)};return{'valid':!![]};}function a40_0x5b0f(_0x202933,_0x7e8f98){_0x202933=_0x202933-0xcc;const _0x5880a2=a40_0x5880();let _0x5b0f40=_0x5880a2[_0x202933];return _0x5b0f40;}function a40_0x5880(){const _0x5d9d9e=['320GzPnFP','Only\x20letters,\x20numbers,\x20-\x20and\x20_\x20are\x20allowed','6018wAyzFi','1148VqUxKl','56LnuuNA','trim','5739720DrqoiG','285LJAzfc','1864QLPEvF','10MXolpx','29352RJdNAF','App\x20Code\x20cannot\x20exceed\x20100\x20characters','test','1988393ARaOzy','94RRXDHP','App\x20Code\x20cannot\x20be\x20empty','348309tgTvEe'];a40_0x5880=function(){return _0x5d9d9e;};return a40_0x5880();}
@@ -1 +1 @@
1
- const a41_0x1616cd=a41_0x12e0;function a41_0x3631(){const _0x4479aa=['1064970xFZFxU','Get\x20a\x20config\x20value\x20by\x20key','Key\x20not\x20found:\x20','key','object','65346IHofHc','409294bOtGgH','3536055LPxLqg','string','223592iBYHdy','appcode','13995938yPfOyE','45UwxigM','Missing\x20key.','read','\x20config\x20get\x20--key\x20<key>','1sHdCkj','config','4BOILNa','357bqzBVJ','validation','1892868jcPVyS','get'];a41_0x3631=function(){return _0x4479aa;};return a41_0x3631();}(function(_0x33f138,_0x3ca396){const _0x433aae=a41_0x12e0,_0x13f2e0=_0x33f138();while(!![]){try{const _0x2dc46f=parseInt(_0x433aae(0x1ab))/0x1*(parseInt(_0x433aae(0x1b8))/0x2)+parseInt(_0x433aae(0x1b0))/0x3*(-parseInt(_0x433aae(0x1ad))/0x4)+-parseInt(_0x433aae(0x1a2))/0x5+parseInt(_0x433aae(0x1b7))/0x6*(parseInt(_0x433aae(0x1ae))/0x7)+-parseInt(_0x433aae(0x1a4))/0x8*(parseInt(_0x433aae(0x1a7))/0x9)+-parseInt(_0x433aae(0x1b2))/0xa+parseInt(_0x433aae(0x1a6))/0xb;if(_0x2dc46f===_0x3ca396)break;else _0x13f2e0['push'](_0x13f2e0['shift']());}catch(_0x182c4d){_0x13f2e0['push'](_0x13f2e0['shift']());}}}(a41_0x3631,0x6d625));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a41_0x12e0(_0x1db730,_0x3d71ca){_0x1db730=_0x1db730-0x1a2;const _0x3631e3=a41_0x3631();let _0x12e0ed=_0x3631e3[_0x1db730];return _0x12e0ed;}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x2c7698){const _0x5210b7=a41_0x12e0,_0x3bd2a6=_0x2c7698['str'](_0x5210b7(0x1b5));if(!_0x3bd2a6)throw CliErrors[_0x5210b7(0x1af)](_0x5210b7(0x1a8),'Usage:\x20'+CLI_BIN_NAME+_0x5210b7(0x1aa));const _0x295b4e=readConfig(),_0x3df51a=_0x3bd2a6==='app'?_0x5210b7(0x1a5):_0x3bd2a6,_0x5be059=_0x295b4e[_0x3df51a];if(_0x5be059===undefined)throw CliErrors['validation'](_0x5210b7(0x1b4)+_0x3bd2a6);return{'ok':!![],'data':typeof _0x5be059===_0x5210b7(0x1b6)?_0x5be059:{[_0x3df51a]:_0x5be059},'message':typeof _0x5be059===_0x5210b7(0x1b6)?undefined:String(_0x5be059)};}export const configGetDefinition={'service':a41_0x1616cd(0x1ac),'command':a41_0x1616cd(0x1b1),'description':a41_0x1616cd(0x1b3),'risk':a41_0x1616cd(0x1a9),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':a41_0x1616cd(0x1a3),'description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
1
+ const a41_0x59a936=a41_0x2061;function a41_0x5a25(){const _0x8ac08a=['\x20config\x20get\x20--key\x20<key>','Missing\x20key.','80awgNhA','Get\x20a\x20config\x20value\x20by\x20key','21342130OLkXhg','Usage:\x20','1397309CYcJIa','appcode','key','309928PvSCHv','861174JMadqG','app','read','1021321XgXdms','get','config','4838709hrrbGj','3232233kGCOZn','Key\x20not\x20found:\x20','5TUZkBe','4cUDqJu','object'];a41_0x5a25=function(){return _0x8ac08a;};return a41_0x5a25();}(function(_0x4fa073,_0x217752){const _0x1df18a=a41_0x2061,_0x3352c1=_0x4fa073();while(!![]){try{const _0x56f13b=-parseInt(_0x1df18a(0x19b))/0x1+parseInt(_0x1df18a(0x19e))/0x2+-parseInt(_0x1df18a(0x18f))/0x3*(-parseInt(_0x1df18a(0x193))/0x4)+-parseInt(_0x1df18a(0x192))/0x5*(-parseInt(_0x1df18a(0x19f))/0x6)+parseInt(_0x1df18a(0x18c))/0x7*(-parseInt(_0x1df18a(0x197))/0x8)+-parseInt(_0x1df18a(0x190))/0x9+parseInt(_0x1df18a(0x199))/0xa;if(_0x56f13b===_0x217752)break;else _0x3352c1['push'](_0x3352c1['shift']());}catch(_0x3bc68a){_0x3352c1['push'](_0x3352c1['shift']());}}}(a41_0x5a25,0xcaab5));import{CliErrors}from'../../errors.js';import{readConfig}from'../../utils/config.js';import{CLI_BIN_NAME}from'../../constant/cli.js';function a41_0x2061(_0x257153,_0x9e4bb2){_0x257153=_0x257153-0x18b;const _0x5a256e=a41_0x5a25();let _0x20619c=_0x5a256e[_0x257153];return _0x20619c;}import{getConfigCommandKeyDescription}from'../../commands/config/shared.js';async function execute(_0x279700){const _0x1bc664=a41_0x2061,_0x329758=_0x279700['str'](_0x1bc664(0x19d));if(!_0x329758)throw CliErrors['validation'](_0x1bc664(0x196),_0x1bc664(0x19a)+CLI_BIN_NAME+_0x1bc664(0x195));const _0xad8256=readConfig(),_0x1bc031=_0x329758===_0x1bc664(0x1a0)?_0x1bc664(0x19c):_0x329758,_0x1229bf=_0xad8256[_0x1bc031];if(_0x1229bf===undefined)throw CliErrors['validation'](_0x1bc664(0x191)+_0x329758);return{'ok':!![],'data':typeof _0x1229bf==='object'?_0x1229bf:{[_0x1bc031]:_0x1229bf},'message':typeof _0x1229bf===_0x1bc664(0x194)?undefined:String(_0x1229bf)};}export const configGetDefinition={'service':a41_0x59a936(0x18e),'command':a41_0x59a936(0x18d),'description':a41_0x59a936(0x198),'risk':a41_0x59a936(0x18b),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':'string','description':getConfigCommandKeyDescription(),'required':!![]}],'execute':execute};
@@ -1 +1 @@
1
- (function(_0x17b9a1,_0x26eae0){const _0x1ebcd1=a42_0x348b,_0x7086f5=_0x17b9a1();while(!![]){try{const _0x599bb1=parseInt(_0x1ebcd1(0x90))/0x1*(-parseInt(_0x1ebcd1(0x99))/0x2)+parseInt(_0x1ebcd1(0x97))/0x3+-parseInt(_0x1ebcd1(0x96))/0x4*(parseInt(_0x1ebcd1(0x92))/0x5)+parseInt(_0x1ebcd1(0x95))/0x6*(parseInt(_0x1ebcd1(0x93))/0x7)+parseInt(_0x1ebcd1(0x91))/0x8+parseInt(_0x1ebcd1(0x94))/0x9*(-parseInt(_0x1ebcd1(0x8f))/0xa)+parseInt(_0x1ebcd1(0x98))/0xb;if(_0x599bb1===_0x26eae0)break;else _0x7086f5['push'](_0x7086f5['shift']());}catch(_0x41691e){_0x7086f5['push'](_0x7086f5['shift']());}}}(a42_0x3312,0xb93bd));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';function a42_0x348b(_0x45cd3e,_0x193198){_0x45cd3e=_0x45cd3e-0x8f;const _0x33123e=a42_0x3312();let _0x348b1f=_0x33123e[_0x45cd3e];return _0x348b1f;}function a42_0x3312(){const _0x565a57=['552710CKCCHq','45837apKPnC','2331256UhIKOh','5RjwKwG','1113kdHery','36ROlMWx','26484XbVaCf','4599676NfOdov','2522763JjWIuj','4259640mKIPop','4GZryDM'];a42_0x3312=function(){return _0x565a57;};return a42_0x3312();}import{configSetDefinition}from'../../commands/config/set.js';export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
1
+ (function(_0x1efaeb,_0x46bdc6){const _0x3e8796=a42_0x45bf,_0xa4bae5=_0x1efaeb();while(!![]){try{const _0x5e20d6=parseInt(_0x3e8796(0x17e))/0x1*(-parseInt(_0x3e8796(0x17a))/0x2)+parseInt(_0x3e8796(0x178))/0x3*(-parseInt(_0x3e8796(0x176))/0x4)+parseInt(_0x3e8796(0x17c))/0x5*(parseInt(_0x3e8796(0x177))/0x6)+parseInt(_0x3e8796(0x17f))/0x7*(parseInt(_0x3e8796(0x174))/0x8)+-parseInt(_0x3e8796(0x175))/0x9+-parseInt(_0x3e8796(0x17b))/0xa+parseInt(_0x3e8796(0x17d))/0xb*(parseInt(_0x3e8796(0x179))/0xc);if(_0x5e20d6===_0x46bdc6)break;else _0xa4bae5['push'](_0xa4bae5['shift']());}catch(_0x1cb2ce){_0xa4bae5['push'](_0xa4bae5['shift']());}}}(a42_0x38a4,0x62420));import{configListDefinition}from'../../commands/config/list.js';import{configGetDefinition}from'../../commands/config/get.js';import{configSetDefinition}from'../../commands/config/set.js';function a42_0x45bf(_0x93514c,_0x2817bc){_0x93514c=_0x93514c-0x174;const _0x38a49e=a42_0x38a4();let _0x45bf04=_0x38a49e[_0x93514c];return _0x45bf04;}function a42_0x38a4(){const _0x59ee07=['63OyAuvK','399368TYSdZy','1007001YCTXqr','52ptCvql','1878AXOQJu','36066WnbWwM','299064PRyKEr','385766dkXHZL','910930CWxbBZ','110trcmol','220WUKhgp','1YpcXHc'];a42_0x38a4=function(){return _0x59ee07;};return a42_0x38a4();}export const configDefinitions=[configListDefinition,configGetDefinition,configSetDefinition];
@@ -1 +1 @@
1
- const a43_0x27b097=a43_0x3765;(function(_0x5677eb,_0x406a3b){const _0x325452=a43_0x3765,_0x270cd9=_0x5677eb();while(!![]){try{const _0x2e58af=-parseInt(_0x325452(0x10a))/0x1+parseInt(_0x325452(0x110))/0x2*(parseInt(_0x325452(0x10c))/0x3)+-parseInt(_0x325452(0x107))/0x4+parseInt(_0x325452(0x106))/0x5*(-parseInt(_0x325452(0x10f))/0x6)+-parseInt(_0x325452(0x105))/0x7+parseInt(_0x325452(0x111))/0x8*(parseInt(_0x325452(0x104))/0x9)+parseInt(_0x325452(0x103))/0xa;if(_0x2e58af===_0x406a3b)break;else _0x270cd9['push'](_0x270cd9['shift']());}catch(_0x1e734f){_0x270cd9['push'](_0x270cd9['shift']());}}}(a43_0x3c60,0x7575d));function a43_0x3c60(){const _0x92a490=['9VnukIO','4292841JrQloj','15MCObkn','1572416FvgAZm','list','global','670271YiVHpz','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','2726007XGBSJs','List\x20all\x20config\x20values','read','1102086qzRSsM','2eNibzc','4196816jwnXRw','12755270nZmJnc'];a43_0x3c60=function(){return _0x92a490;};return a43_0x3c60();}import{readScopedConfig}from'../../commands/config/shared.js';function a43_0x3765(_0x39a73d,_0x2a86a4){_0x39a73d=_0x39a73d-0x103;const _0x3c60bb=a43_0x3c60();let _0x376577=_0x3c60bb[_0x39a73d];return _0x376577;}import{readConfig}from'../../utils/config.js';async function execute(_0x93c8b7){const _0x364c40=a43_0x3765,_0x3dcf64=_0x93c8b7['bool'](_0x364c40(0x109))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x3dcf64};}export const configListDefinition={'service':'config','command':a43_0x27b097(0x108),'description':a43_0x27b097(0x10d),'risk':a43_0x27b097(0x10e),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x27b097(0x109),'type':'boolean','description':a43_0x27b097(0x10b),'default':![]}],'execute':execute};
1
+ const a43_0x4b443a=a43_0x43fe;(function(_0x532264,_0x177351){const _0x47e6f7=a43_0x43fe,_0x3283e4=_0x532264();while(!![]){try{const _0x4e9c63=-parseInt(_0x47e6f7(0x129))/0x1+parseInt(_0x47e6f7(0x126))/0x2+parseInt(_0x47e6f7(0x12b))/0x3+parseInt(_0x47e6f7(0x124))/0x4*(parseInt(_0x47e6f7(0x12a))/0x5)+-parseInt(_0x47e6f7(0x125))/0x6*(-parseInt(_0x47e6f7(0x128))/0x7)+parseInt(_0x47e6f7(0x12f))/0x8*(-parseInt(_0x47e6f7(0x132))/0x9)+-parseInt(_0x47e6f7(0x131))/0xa;if(_0x4e9c63===_0x177351)break;else _0x3283e4['push'](_0x3283e4['shift']());}catch(_0x3b3f94){_0x3283e4['push'](_0x3283e4['shift']());}}}(a43_0x348a,0xc553e));import{readScopedConfig}from'../../commands/config/shared.js';import{readConfig}from'../../utils/config.js';async function execute(_0x4410f7){const _0x474603=a43_0x43fe,_0x327889=_0x4410f7['bool'](_0x474603(0x12c))?readScopedConfig('global'):readConfig();return{'ok':!![],'data':_0x327889};}export const configListDefinition={'service':'config','command':a43_0x4b443a(0x12d),'description':a43_0x4b443a(0x130),'risk':a43_0x4b443a(0x12e),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a43_0x4b443a(0x12c),'type':a43_0x4b443a(0x127),'description':a43_0x4b443a(0x133),'default':![]}],'execute':execute};function a43_0x43fe(_0xe9d544,_0x525303){_0xe9d544=_0xe9d544-0x124;const _0x348aa3=a43_0x348a();let _0x43fe3e=_0x348aa3[_0xe9d544];return _0x43fe3e;}function a43_0x348a(){const _0x5b26a0=['list','read','240880lmhiLz','List\x20all\x20config\x20values','15261590YDHRIo','369EiCQSt','Show\x20global\x20config\x20only\x20(~/.rabetbase.json)','10308flCFkR','250134aSZfyA','1648174IVtYFZ','boolean','175xttRwd','407683mnUZTJ','2785yPdVDx','2024715mxvFAR','global'];a43_0x348a=function(){return _0x5b26a0;};return a43_0x348a();}
@@ -1 +1 @@
1
- const a44_0xb5e21a=a44_0x2822;function a44_0xf53d(){const _0x2f0ce4=['str','boolean','Missing\x20key.','appcode','5hpCodS','92906PgZizp','config','global','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','Missing\x20value.','key','value','join','\x22\x20is\x20not\x20settable.','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','Invalid\x20value\x20for\x20\x22','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','Use\x20`','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','2697472twVQoH','includes','locale','validation','9681512nnfeGs','Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','Usage:\x20','length','bool','Invalid\x20locale\x20value.','\x20set\x20to:\x20','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','1278063jICyqj','\x22.\x20Allowed:\x20','37CSUtvG','Config\x20value','set','Global','env','app','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','write','Settable\x20top-level\x20keys:\x20','Set\x20a\x20config\x20value','4737084uvdStv','`,\x20`','1506001AuwfgL','Project','apps','Top-level\x20key\x20\x22','keys','672378XqFFZS','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.','\x20appcode\x20set\x20to:\x20','string'];a44_0xf53d=function(){return _0x2f0ce4;};return a44_0xf53d();}(function(_0xb8de7e,_0x5381ee){const _0x1b3823=a44_0x2822,_0x2222c2=_0xb8de7e();while(!![]){try{const _0xf083f5=parseInt(_0x1b3823(0x130))/0x1*(parseInt(_0x1b3823(0x14a))/0x2)+-parseInt(_0x1b3823(0x13a))/0x3+-parseInt(_0x1b3823(0x122))/0x4+-parseInt(_0x1b3823(0x149))/0x5*(-parseInt(_0x1b3823(0x141))/0x6)+parseInt(_0x1b3823(0x13c))/0x7+parseInt(_0x1b3823(0x126))/0x8+-parseInt(_0x1b3823(0x12e))/0x9;if(_0xf083f5===_0x5381ee)break;else _0x2222c2['push'](_0x2222c2['shift']());}catch(_0x391620){_0x2222c2['push'](_0x2222c2['shift']());}}}(a44_0xf53d,0xd2251));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';function a44_0x2822(_0x283274,_0x17333c){_0x283274=_0x283274-0x118;const _0xf53d6a=a44_0xf53d();let _0x2822ef=_0xf53d6a[_0x283274];return _0x2822ef;}import{normalizeEnv,isProduction,isDaily}from'../../constant/env.js';async function execute(_0x3802cb){const _0x5bad62=a44_0x2822,_0x25b379=_0x3802cb['str'](_0x5bad62(0x119)),_0x608b71=_0x3802cb[_0x5bad62(0x145)](_0x5bad62(0x11a));if(!_0x25b379)throw CliErrors[_0x5bad62(0x125)](_0x5bad62(0x147),_0x5bad62(0x128)+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x608b71===undefined||_0x608b71==='')throw CliErrors[_0x5bad62(0x125)](_0x5bad62(0x118),'Usage:\x20'+CLI_BIN_NAME+'\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>');if(_0x608b71[_0x5bad62(0x129)]>0x1f4)throw CliErrors['validation'](_0x5bad62(0x12d));if(!isTopLevelConfigKey(_0x25b379))throw CliErrors['validation'](_0x5bad62(0x13f)+_0x25b379+_0x5bad62(0x11c),_0x5bad62(0x138)+getTopLevelConfigKeySummary());if(_0x25b379==='riskLevel')throw CliErrors[_0x5bad62(0x125)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(CONFIG_ENUM_VALUES[_0x25b379]&&!CONFIG_ENUM_VALUES[_0x25b379][_0x5bad62(0x123)](_0x608b71))throw CliErrors[_0x5bad62(0x125)](_0x5bad62(0x11e)+_0x25b379+_0x5bad62(0x12f)+CONFIG_ENUM_VALUES[_0x25b379][_0x5bad62(0x11b)](',\x20'));if(_0x25b379===_0x5bad62(0x124)&&!normalizeLocale(_0x608b71))throw CliErrors[_0x5bad62(0x125)](_0x5bad62(0x12b),_0x5bad62(0x136));const _0x330b54={'global':_0x3802cb[_0x5bad62(0x12a)]('global')},_0x448e1c=resolveWriteScope(_0x330b54),_0x59a8f4=readScopedConfig(_0x448e1c);let _0x5bfe0f=_0x25b379,_0x5dd67d=_0x608b71;_0x25b379==='app'&&(_0x5bfe0f=_0x5bad62(0x148),delete _0x59a8f4[_0x5bad62(0x135)]);_0x25b379===_0x5bad62(0x124)&&(_0x5dd67d=normalizeLocale(_0x608b71));if(_0x25b379===_0x5bad62(0x134)){_0x5dd67d=normalizeEnv(_0x608b71);if(!isProduction(_0x5dd67d)&&!isDaily(_0x5dd67d))throw CliErrors[_0x5bad62(0x125)](_0x5bad62(0x142),_0x5bad62(0x121));}if(_0x25b379===_0x5bad62(0x148)){const _0x4dd835=_0x59a8f4[_0x5bad62(0x13e)]&&typeof _0x59a8f4['apps']==='object'?Object[_0x5bad62(0x140)](_0x59a8f4[_0x5bad62(0x13e)]):[];if(_0x4dd835[_0x5bad62(0x129)]>0x0)throw CliErrors[_0x5bad62(0x125)](_0x5bad62(0x14d),_0x5bad62(0x120)+CLI_BIN_NAME+'\x20app\x20add\x20<name>\x20--appcode\x20'+_0x5dd67d+_0x5bad62(0x13b)+CLI_BIN_NAME+_0x5bad62(0x11f));const _0x3aeb01=buildCanonicalProjectConfig({..._0x59a8f4},{'appCodes':[_0x5dd67d],'env':typeof _0x59a8f4['env']===_0x5bad62(0x144)?_0x59a8f4[_0x5bad62(0x134)]:undefined});writeScopedConfig(_0x3aeb01,_0x448e1c);const _0x1493ff=_0x448e1c===_0x5bad62(0x14c)?_0x5bad62(0x133):_0x5bad62(0x13d);return{'ok':!![],'message':'✓\x20'+_0x1493ff+_0x5bad62(0x143)+_0x5dd67d+_0x5bad62(0x11d)};}_0x59a8f4[_0x5bfe0f]=_0x5dd67d,writeScopedConfig(_0x59a8f4,_0x448e1c);const _0x8bd1bc=_0x448e1c===_0x5bad62(0x14c)?'Global':_0x5bad62(0x13d);return{'ok':!![],'message':'✓\x20'+_0x8bd1bc+'\x20'+_0x5bfe0f+_0x5bad62(0x12c)+_0x5dd67d};}export const configSetDefinition={'service':a44_0xb5e21a(0x14b),'command':a44_0xb5e21a(0x132),'description':a44_0xb5e21a(0x139),'risk':a44_0xb5e21a(0x137),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':'key','type':'string','description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0xb5e21a(0x11a),'type':'string','description':a44_0xb5e21a(0x131),'required':!![]},{'name':a44_0xb5e21a(0x14c),'type':a44_0xb5e21a(0x146),'description':a44_0xb5e21a(0x127),'default':![]}],'execute':execute};
1
+ const a44_0x16e67b=a44_0x1bce;(function(_0x544107,_0x25d95e){const _0x104286=a44_0x1bce,_0x68f55=_0x544107();while(!![]){try{const _0x430388=-parseInt(_0x104286(0xa8))/0x1+parseInt(_0x104286(0xab))/0x2+parseInt(_0x104286(0xa9))/0x3*(-parseInt(_0x104286(0xa5))/0x4)+-parseInt(_0x104286(0xcf))/0x5+parseInt(_0x104286(0xd0))/0x6*(parseInt(_0x104286(0xb6))/0x7)+-parseInt(_0x104286(0xad))/0x8*(parseInt(_0x104286(0xb8))/0x9)+parseInt(_0x104286(0xac))/0xa;if(_0x430388===_0x25d95e)break;else _0x68f55['push'](_0x68f55['shift']());}catch(_0x3c9ede){_0x68f55['push'](_0x68f55['shift']());}}}(a44_0x3087,0xbd76a));function a44_0x3087(){const _0x17a7f5=['boolean','Legacy\x20alias\x20\x22online\x22\x20is\x20accepted\x20and\x20stored\x20as\x20production.','riskLevel','Cannot\x20set\x20top-level\x20\x22appcode\x22\x20when\x20multi-app\x20config\x20already\x20exists.','string','Config\x20value','169040WiNsBY','global','`,\x20`','526605xEbVnE','18cyrfKR','Set\x20a\x20config\x20value','698896zJcPCF','6574990GRqzEl','11768suaKqG','locale','\x20appcode\x20set\x20to:\x20','key','includes','\x20app\x20use\x20<name>`,\x20or\x20pass\x20`--appcode`\x20on\x20the\x20command.','validation','env','\x22.\x20Allowed:\x20','3359377lhxRvv','Invalid\x20value\x20for\x20\x22','207XQGmHn','apps','Usage:\x20','\x20app\x20add\x20<name>\x20--appcode\x20','value','\x20(stored\x20as\x20apps\x20+\x20defaultApp)','keys','app','appcode','Missing\x20key.','Missing\x20value.','Invalid\x20locale\x20value.','write','Config\x20value\x20is\x20invalid\x20or\x20too\x20long.','\x20config\x20set\x20--key\x20<key>\x20--value\x20<value>','length','str','Supported:\x20zh,\x20en,\x20zh-CN,\x20en-US','join','bool','object','Global','Project','1883645OqOtkV','12WErVTE','Invalid\x20value\x20for\x20env.\x20Allowed:\x20production,\x20daily.'];a44_0x3087=function(){return _0x17a7f5;};return a44_0x3087();}import{CliErrors}from'../../errors.js';function a44_0x1bce(_0x2b5c20,_0x5bf74d){_0x2b5c20=_0x2b5c20-0xa1;const _0x3087e6=a44_0x3087();let _0x1bce3f=_0x3087e6[_0x2b5c20];return _0x1bce3f;}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(_0x3882cf){const _0x54ca12=a44_0x1bce,_0x51b759=_0x3882cf[_0x54ca12(0xc8)](_0x54ca12(0xb0)),_0x50ffcf=_0x3882cf[_0x54ca12(0xc8)](_0x54ca12(0xbc));if(!_0x51b759)throw CliErrors['validation'](_0x54ca12(0xc1),'Usage:\x20'+CLI_BIN_NAME+_0x54ca12(0xc6));if(_0x50ffcf===undefined||_0x50ffcf==='')throw CliErrors[_0x54ca12(0xb3)](_0x54ca12(0xc2),_0x54ca12(0xba)+CLI_BIN_NAME+_0x54ca12(0xc6));if(_0x50ffcf[_0x54ca12(0xc7)]>0x1f4)throw CliErrors[_0x54ca12(0xb3)](_0x54ca12(0xc5));if(!isTopLevelConfigKey(_0x51b759))throw CliErrors['validation']('Top-level\x20key\x20\x22'+_0x51b759+'\x22\x20is\x20not\x20settable.','Settable\x20top-level\x20keys:\x20'+getTopLevelConfigKeySummary());if(_0x51b759===_0x54ca12(0xa1))throw CliErrors[_0x54ca12(0xb3)]('\x22riskLevel\x22\x20cannot\x20be\x20changed\x20via\x20the\x20CLI.');if(CONFIG_ENUM_VALUES[_0x51b759]&&!CONFIG_ENUM_VALUES[_0x51b759][_0x54ca12(0xb1)](_0x50ffcf))throw CliErrors['validation'](_0x54ca12(0xb7)+_0x51b759+_0x54ca12(0xb5)+CONFIG_ENUM_VALUES[_0x51b759][_0x54ca12(0xca)](',\x20'));if(_0x51b759===_0x54ca12(0xae)&&!normalizeLocale(_0x50ffcf))throw CliErrors[_0x54ca12(0xb3)](_0x54ca12(0xc3),_0x54ca12(0xc9));const _0x19cb2c={'global':_0x3882cf[_0x54ca12(0xcb)](_0x54ca12(0xa6))},_0x22abfe=resolveWriteScope(_0x19cb2c),_0x2ba5b7=readScopedConfig(_0x22abfe);let _0x249172=_0x51b759,_0x460550=_0x50ffcf;_0x51b759===_0x54ca12(0xbf)&&(_0x249172=_0x54ca12(0xc0),delete _0x2ba5b7[_0x54ca12(0xbf)]);_0x51b759===_0x54ca12(0xae)&&(_0x460550=normalizeLocale(_0x50ffcf));if(_0x51b759==='env'){_0x460550=normalizeEnv(_0x50ffcf);if(!isProduction(_0x460550)&&!isDaily(_0x460550))throw CliErrors[_0x54ca12(0xb3)](_0x54ca12(0xd1),_0x54ca12(0xd3));}if(_0x51b759===_0x54ca12(0xc0)){const _0x424c8f=_0x2ba5b7[_0x54ca12(0xb9)]&&typeof _0x2ba5b7[_0x54ca12(0xb9)]===_0x54ca12(0xcc)?Object[_0x54ca12(0xbe)](_0x2ba5b7[_0x54ca12(0xb9)]):[];if(_0x424c8f[_0x54ca12(0xc7)]>0x0)throw CliErrors[_0x54ca12(0xb3)](_0x54ca12(0xa2),'Use\x20`'+CLI_BIN_NAME+_0x54ca12(0xbb)+_0x460550+_0x54ca12(0xa7)+CLI_BIN_NAME+_0x54ca12(0xb2));const _0xbae161=buildCanonicalProjectConfig({..._0x2ba5b7},{'appCodes':[_0x460550],'env':typeof _0x2ba5b7['env']===_0x54ca12(0xa3)?_0x2ba5b7[_0x54ca12(0xb4)]:undefined});writeScopedConfig(_0xbae161,_0x22abfe);const _0x123690=_0x22abfe===_0x54ca12(0xa6)?_0x54ca12(0xcd):_0x54ca12(0xce);return{'ok':!![],'message':'✓\x20'+_0x123690+_0x54ca12(0xaf)+_0x460550+_0x54ca12(0xbd)};}_0x2ba5b7[_0x249172]=_0x460550,writeScopedConfig(_0x2ba5b7,_0x22abfe);const _0x2c2ba7=_0x22abfe===_0x54ca12(0xa6)?'Global':_0x54ca12(0xce);return{'ok':!![],'message':'✓\x20'+_0x2c2ba7+'\x20'+_0x249172+'\x20set\x20to:\x20'+_0x460550};}export const configSetDefinition={'service':'config','command':'set','description':a44_0x16e67b(0xaa),'risk':a44_0x16e67b(0xc4),'requiresAuth':![],'requiresAppCode':![],'flags':[{'name':a44_0x16e67b(0xb0),'type':a44_0x16e67b(0xa3),'description':getConfigCommandKeyDescription(),'required':!![]},{'name':a44_0x16e67b(0xbc),'type':'string','description':a44_0x16e67b(0xa4),'required':!![]},{'name':a44_0x16e67b(0xa6),'type':a44_0x16e67b(0xd2),'description':'Write\x20to\x20global\x20config\x20(~/.rabetbase.json)','default':![]}],'execute':execute};
@@ -1 +1 @@
1
- function a45_0x1d6b(_0x4adf63,_0x1be6c5){_0x4adf63=_0x4adf63-0x159;var _0x482459=a45_0x4824();var _0x1d6bce=_0x482459[_0x4adf63];return _0x1d6bce;}(function(_0x4ce8bd,_0x361628){var _0x5612d0=a45_0x1d6b,_0x1eb157=_0x4ce8bd();while(!![]){try{var _0xd3c65d=-parseInt(_0x5612d0(0x166))/0x1*(parseInt(_0x5612d0(0x15c))/0x2)+-parseInt(_0x5612d0(0x159))/0x3*(-parseInt(_0x5612d0(0x15f))/0x4)+parseInt(_0x5612d0(0x163))/0x5+parseInt(_0x5612d0(0x15e))/0x6+parseInt(_0x5612d0(0x161))/0x7*(-parseInt(_0x5612d0(0x160))/0x8)+-parseInt(_0x5612d0(0x15d))/0x9+-parseInt(_0x5612d0(0x167))/0xa*(-parseInt(_0x5612d0(0x15a))/0xb);if(_0xd3c65d===_0x361628)break;else _0x1eb157['push'](_0x1eb157['shift']());}catch(_0x15f8e2){_0x1eb157['push'](_0x1eb157['shift']());}}}(a45_0x4824,0x53346));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};export function resolveWriteScope(_0x49a596){var _0x3e6a1f=a45_0x1d6b;if(_0x49a596[_0x3e6a1f(0x15b)])return'global';if(!isInProject())throw CliErrors[_0x3e6a1f(0x165)]('Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).',_0x3e6a1f(0x164)+CLI_BIN_NAME+_0x3e6a1f(0x162));return'project';}function a45_0x4824(){var _0x1bd188=['104GRHNUO','1329976xLHdbx','7UpKjYD','\x20init`\x20first.','1864635hBkiRO','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','validation','35HKdaAD','1669580PNcfHH','11265BqRoKE','44irroSm','global','4484nGkFAE','5013585duzrHe','25194yghZXt'];a45_0x4824=function(){return _0x1bd188;};return a45_0x4824();}export function readScopedConfig(_0x2f987c){return readConfigFile(resolveWriteConfigPath(_0x2f987c));}export function writeScopedConfig(_0x38b10b,_0x3d2830){writeConfigFile(resolveWriteConfigPath(_0x3d2830),_0x38b10b);}
1
+ function a45_0x5321(_0x1def61,_0x113190){_0x1def61=_0x1def61-0xf0;var _0x171f83=a45_0x171f();var _0x5321ab=_0x171f83[_0x1def61];return _0x5321ab;}(function(_0x5848ea,_0x374270){var _0x50a919=a45_0x5321,_0x1dbcb8=_0x5848ea();while(!![]){try{var _0x421147=parseInt(_0x50a919(0xfb))/0x1+parseInt(_0x50a919(0xf7))/0x2*(parseInt(_0x50a919(0xfe))/0x3)+-parseInt(_0x50a919(0xff))/0x4+parseInt(_0x50a919(0xf0))/0x5*(-parseInt(_0x50a919(0xfd))/0x6)+-parseInt(_0x50a919(0xf5))/0x7*(-parseInt(_0x50a919(0xf9))/0x8)+parseInt(_0x50a919(0xf8))/0x9+-parseInt(_0x50a919(0xf2))/0xa;if(_0x421147===_0x374270)break;else _0x1dbcb8['push'](_0x1dbcb8['shift']());}catch(_0x52de9f){_0x1dbcb8['push'](_0x1dbcb8['shift']());}}}(a45_0x171f,0xd3895));function a45_0x171f(){var _0x324cde=['\x20init`\x20first.','1149735bAzgdm','Not\x20inside\x20a\x20project\x20(no\x20.rabetbase.json\x20found).','127734vdDNdd','4533hrLNlg','5108444DYZHah','80actnEq','Add\x20--global\x20to\x20write\x20to\x20~/.rabetbase.json,\x20or\x20run\x20`','4479420WNDucG','project','validation','19103qNRBlU','global','952hkDIpZ','3329937reJaVq','2032QmOGAV'];a45_0x171f=function(){return _0x324cde;};return a45_0x171f();}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};export function resolveWriteScope(_0x3b2c31){var _0x5550a4=a45_0x5321;if(_0x3b2c31['global'])return _0x5550a4(0xf6);if(!isInProject())throw CliErrors[_0x5550a4(0xf4)](_0x5550a4(0xfc),_0x5550a4(0xf1)+CLI_BIN_NAME+_0x5550a4(0xfa));return _0x5550a4(0xf3);}export function readScopedConfig(_0x1e26d5){return readConfigFile(resolveWriteConfigPath(_0x1e26d5));}export function writeScopedConfig(_0x4ca639,_0x41ee57){writeConfigFile(resolveWriteConfigPath(_0x41ee57),_0x4ca639);}
@@ -1 +1 @@
1
- const a46_0x3f0812=a46_0x113b;function a46_0x273d(){const _0x5a364f=['\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','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','join','3176YnmaSx','5988dmatfZ','\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}]','222141BmocvT','Filter\x20dataset\x20records\x20with\x20query\x20conditions','784wRSpdo','7040646OTiYtE','496JydUeG','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','741225kqojQm','3136278tvSTKe','filter','\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page','24786SxMhYb'];a46_0x273d=function(){return _0x5a364f;};return a46_0x273d();}(function(_0x3b8f2a,_0x4f8390){const _0x487710=a46_0x113b,_0x5d695c=_0x3b8f2a();while(!![]){try{const _0x3be4a6=parseInt(_0x487710(0x10f))/0x1+-parseInt(_0x487710(0x108))/0x2+parseInt(_0x487710(0x10d))/0x3*(-parseInt(_0x487710(0x102))/0x4)+parseInt(_0x487710(0x104))/0x5+-parseInt(_0x487710(0x105))/0x6+parseInt(_0x487710(0x100))/0x7*(-parseInt(_0x487710(0x10c))/0x8)+parseInt(_0x487710(0x101))/0x9;if(_0x3be4a6===_0x4f8390)break;else _0x5d695c['push'](_0x5d695c['shift']());}catch(_0x3b3642){_0x5d695c['push'](_0x5d695c['shift']());}}}(a46_0x273d,0x4f7e6));function a46_0x113b(_0x4eb904,_0x5ba4c2){_0x4eb904=_0x4eb904-0xff;const _0x273dd8=a46_0x273d();let _0x113bb0=_0x273dd8[_0x4eb904];return _0x113bb0;}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a46_0x3f0812(0x106),'operation':a46_0x3f0812(0x106),'description':a46_0x3f0812(0xff),'paramsRequired':![],'paramsHint':a46_0x3f0812(0x10a),'helpExtra':[a46_0x3f0812(0x109),a46_0x3f0812(0x103),'\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_0x3f0812(0x10e),'\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)',a46_0x3f0812(0x107)][a46_0x3f0812(0x10b)]('\x0a')});
1
+ const a46_0x405124=a46_0x1fdb;(function(_0x5aa24d,_0x1926db){const _0x465dcc=a46_0x1fdb,_0x2f0ef9=_0x5aa24d();while(!![]){try{const _0xa2dd49=parseInt(_0x465dcc(0xa0))/0x1+-parseInt(_0x465dcc(0x9b))/0x2+parseInt(_0x465dcc(0x96))/0x3*(parseInt(_0x465dcc(0x99))/0x4)+parseInt(_0x465dcc(0xa8))/0x5*(parseInt(_0x465dcc(0xa4))/0x6)+-parseInt(_0x465dcc(0x9c))/0x7+parseInt(_0x465dcc(0x97))/0x8+-parseInt(_0x465dcc(0x98))/0x9*(parseInt(_0x465dcc(0xa7))/0xa);if(_0xa2dd49===_0x1926db)break;else _0x2f0ef9['push'](_0x2f0ef9['shift']());}catch(_0x307de1){_0x2f0ef9['push'](_0x2f0ef9['shift']());}}}(a46_0x5cc1,0xb3a15));function a46_0x1fdb(_0x19de48,_0x593a33){_0x19de48=_0x19de48-0x96;const _0x5cc131=a46_0x5cc1();let _0x1fdb2b=_0x5cc131[_0x19de48];return _0x1fdb2b;}function a46_0x5cc1(){const _0xb6cb51=['36dZxHZP','4xHkdZg','join','349404EjuXbf','7119987ctuqEH','\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}]','Filter\x20dataset\x20records\x20with\x20query\x20conditions','\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]','542825KPpAzx','\x20\x20\x20\x20where\x20\x20\x20\x20\x20\x20\x20\x20\x20Object\x20\x20\x20Query\x20conditions','filter','\x20\x20JSON\x20BODY\x20FIELDS\x20(pass\x20inside\x20--params)','7964226CjYnRf','JSON\x20body\x20for\x20filter\x20API.\x20Fields:\x20where,\x20select,\x20orderBy,\x20currentPage,\x20pageSize.\x20Example:\x20\x27{\x22where\x22:{\x22status\x22:{\x22$eq\x22:\x22active\x22}},\x22currentPage\x22:1,\x22pageSize\x22:20}\x27','\x20\x20\x20\x20currentPage\x20\x20\x20Number\x20\x20\x20Page\x20number\x20(starts\x20from\x201)','4542530iaZDfm','5FFqyQD','3739107nupNMC','5024440KjLebg'];a46_0x5cc1=function(){return _0xb6cb51;};return a46_0x5cc1();}import{buildDataCommand}from'../../commands/data/shared.js';export const dataFilter=buildDataCommand({'command':a46_0x405124(0xa2),'operation':a46_0x405124(0xa2),'description':a46_0x405124(0x9e),'paramsRequired':![],'paramsHint':a46_0x405124(0xa5),'helpExtra':[a46_0x405124(0xa3),a46_0x405124(0xa1),a46_0x405124(0x9f),a46_0x405124(0x9d),a46_0x405124(0xa6),'\x20\x20\x20\x20pageSize\x20\x20\x20\x20\x20\x20Number\x20\x20\x20Records\x20per\x20page'][a46_0x405124(0x9a)]('\x0a')});
@@ -1 +1 @@
1
- const a47_0x589bbc=a47_0x2ca0;(function(_0x12284d,_0x5950ef){const _0x1502aa=a47_0x2ca0,_0x3e0e8a=_0x12284d();while(!![]){try{const _0x1ccafd=parseInt(_0x1502aa(0x161))/0x1+parseInt(_0x1502aa(0x160))/0x2*(-parseInt(_0x1502aa(0x158))/0x3)+parseInt(_0x1502aa(0x15b))/0x4*(parseInt(_0x1502aa(0x156))/0x5)+parseInt(_0x1502aa(0x155))/0x6+-parseInt(_0x1502aa(0x15c))/0x7*(parseInt(_0x1502aa(0x159))/0x8)+-parseInt(_0x1502aa(0x15f))/0x9*(parseInt(_0x1502aa(0x15d))/0xa)+parseInt(_0x1502aa(0x15a))/0xb;if(_0x1ccafd===_0x5950ef)break;else _0x3e0e8a['push'](_0x3e0e8a['shift']());}catch(_0x1ab165){_0x3e0e8a['push'](_0x3e0e8a['shift']());}}}(a47_0x3949,0x92270));import{buildDataCommand}from'../../commands/data/shared.js';function a47_0x2ca0(_0x42bbe2,_0x1d21d6){_0x42bbe2=_0x42bbe2-0x155;const _0x3949d3=a47_0x3949();let _0x2ca0d6=_0x3949d3[_0x42bbe2];return _0x2ca0d6;}function a47_0x3949(){const _0x45631a=['33vkhReI','242136QiCNEl','18207783OdzxiN','524QBlKDV','203tIVCkl','10tGjrSH','getOne','8774622tElizl','51088xrFctl','588730WTUtTB','1815504lOgJmt','7090oXwPKW','Get\x20a\x20single\x20record\x20by\x20ID'];a47_0x3949=function(){return _0x45631a;};return a47_0x3949();}export const dataGetOne=buildDataCommand({'command':a47_0x589bbc(0x15e),'operation':a47_0x589bbc(0x15e),'description':a47_0x589bbc(0x157),'paramsRequired':!![],'paramsHint':'JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27'});
1
+ const a47_0x1f0308=a47_0x4936;function a47_0x4936(_0xec54a,_0xcdae78){_0xec54a=_0xec54a-0xa3;const _0x3a931e=a47_0x3a93();let _0x4936fa=_0x3a931e[_0xec54a];return _0x4936fa;}(function(_0x43ce24,_0x861694){const _0x1cc0ad=a47_0x4936,_0x16048f=_0x43ce24();while(!![]){try{const _0xdaeb92=parseInt(_0x1cc0ad(0xad))/0x1*(parseInt(_0x1cc0ad(0xa8))/0x2)+parseInt(_0x1cc0ad(0xa6))/0x3*(-parseInt(_0x1cc0ad(0xa9))/0x4)+-parseInt(_0x1cc0ad(0xaf))/0x5*(parseInt(_0x1cc0ad(0xb0))/0x6)+parseInt(_0x1cc0ad(0xab))/0x7*(parseInt(_0x1cc0ad(0xac))/0x8)+-parseInt(_0x1cc0ad(0xa4))/0x9+parseInt(_0x1cc0ad(0xb1))/0xa*(-parseInt(_0x1cc0ad(0xa7))/0xb)+parseInt(_0x1cc0ad(0xaa))/0xc;if(_0xdaeb92===_0x861694)break;else _0x16048f['push'](_0x16048f['shift']());}catch(_0x318cfb){_0x16048f['push'](_0x16048f['shift']());}}}(a47_0x3a93,0xd33a3));import{buildDataCommand}from'../../commands/data/shared.js';export const dataGetOne=buildDataCommand({'command':'getOne','operation':a47_0x1f0308(0xae),'description':a47_0x1f0308(0xa5),'paramsRequired':!![],'paramsHint':a47_0x1f0308(0xa3)});function a47_0x3a93(){const _0x1a9a12=['968QlImPm','1yZtrDo','getOne','5cmkXLq','7838076rNcnfZ','110pXtqGU','JSON\x20with\x20record\x20id.\x20Example:\x20\x27{\x22id\x22:123}\x27','1486386vkpBYS','Get\x20a\x20single\x20record\x20by\x20ID','1140168sQqdYF','1602128lhTncN','2704606cVlqCZ','8GIwkvP','33731484ysVNBZ','30989qPrViE'];a47_0x3a93=function(){return _0x1a9a12;};return a47_0x3a93();}
@@ -1 +1 @@
1
- function a48_0xd0f9(_0x59bb28,_0x86cde5){_0x59bb28=_0x59bb28-0x1d1;const _0x5b53c2=a48_0x5b53();let _0xd0f9e6=_0x5b53c2[_0x59bb28];return _0xd0f9e6;}(function(_0x1883c8,_0x243a0f){const _0x1ab19c=a48_0xd0f9,_0x1c3bff=_0x1883c8();while(!![]){try{const _0x438c19=parseInt(_0x1ab19c(0x1d5))/0x1*(parseInt(_0x1ab19c(0x1d3))/0x2)+-parseInt(_0x1ab19c(0x1da))/0x3*(-parseInt(_0x1ab19c(0x1d8))/0x4)+parseInt(_0x1ab19c(0x1d4))/0x5+-parseInt(_0x1ab19c(0x1d7))/0x6+parseInt(_0x1ab19c(0x1d1))/0x7+-parseInt(_0x1ab19c(0x1d6))/0x8*(parseInt(_0x1ab19c(0x1d9))/0x9)+parseInt(_0x1ab19c(0x1d2))/0xa;if(_0x438c19===_0x243a0f)break;else _0x1c3bff['push'](_0x1c3bff['shift']());}catch(_0x5eefb4){_0x1c3bff['push'](_0x1c3bff['shift']());}}}(a48_0x5b53,0x575c0));function a48_0x5b53(){const _0x516941=['87NZWuHm','303905gUzlsn','4354100tkKDxF','2WjCZbL','1559345vCLOSo','237095iNqsWZ','477928NRZDwX','3362016jLixND','59040WTnzke','81pWvieq'];a48_0x5b53=function(){return _0x516941;};return a48_0x5b53();}import{dataFilter}from'../../commands/data/filter.js';import{dataGetOne}from'../../commands/data/getOne.js';export const dataDefinitions=[dataFilter,dataGetOne];
1
+ (function(_0x4e4255,_0x1ca120){const _0x3ace1b=a48_0x2a15,_0x45d5a5=_0x4e4255();while(!![]){try{const _0xb5e4d6=parseInt(_0x3ace1b(0x170))/0x1+-parseInt(_0x3ace1b(0x16d))/0x2*(parseInt(_0x3ace1b(0x167))/0x3)+-parseInt(_0x3ace1b(0x16e))/0x4*(-parseInt(_0x3ace1b(0x168))/0x5)+parseInt(_0x3ace1b(0x16b))/0x6+parseInt(_0x3ace1b(0x16f))/0x7+parseInt(_0x3ace1b(0x16a))/0x8+parseInt(_0x3ace1b(0x16c))/0x9*(-parseInt(_0x3ace1b(0x169))/0xa);if(_0xb5e4d6===_0x1ca120)break;else _0x45d5a5['push'](_0x45d5a5['shift']());}catch(_0x2e2786){_0x45d5a5['push'](_0x45d5a5['shift']());}}}(a48_0x2bc4,0x56cc2));import{dataFilter}from'../../commands/data/filter.js';function a48_0x2bc4(){const _0x1e0095=['2516TWDawS','1455118ZfhyxZ','241828dgEQrL','1821pOZPbD','815XJgTUH','804670ebMccU','4030664GnTzHb','3340128SJwKmC','99uddFhc','1226XVTpOv'];a48_0x2bc4=function(){return _0x1e0095;};return a48_0x2bc4();}import{dataGetOne}from'../../commands/data/getOne.js';function a48_0x2a15(_0x20b8f6,_0x5d1cd6){_0x20b8f6=_0x20b8f6-0x167;const _0x2bc49b=a48_0x2bc4();let _0x2a1553=_0x2bc49b[_0x20b8f6];return _0x2a1553;}export const dataDefinitions=[dataFilter,dataGetOne];
@@ -1 +1 @@
1
- (function(_0x2ccbdb,_0x55e13b){const _0x22e736=a49_0x21c3,_0x39fb0d=_0x2ccbdb();while(!![]){try{const _0xad4421=parseInt(_0x22e736(0x70))/0x1*(-parseInt(_0x22e736(0x85))/0x2)+-parseInt(_0x22e736(0x6b))/0x3*(-parseInt(_0x22e736(0x72))/0x4)+-parseInt(_0x22e736(0x7f))/0x5*(parseInt(_0x22e736(0x75))/0x6)+-parseInt(_0x22e736(0x83))/0x7+-parseInt(_0x22e736(0x6f))/0x8*(-parseInt(_0x22e736(0x68))/0x9)+parseInt(_0x22e736(0x76))/0xa*(-parseInt(_0x22e736(0x7e))/0xb)+-parseInt(_0x22e736(0x71))/0xc*(-parseInt(_0x22e736(0x81))/0xd);if(_0xad4421===_0x55e13b)break;else _0x39fb0d['push'](_0x39fb0d['shift']());}catch(_0x1244b0){_0x39fb0d['push'](_0x39fb0d['shift']());}}}(a49_0x27a0,0xf3d60));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_0x27a0(){const _0x4a88f3=['10sbkSbL','compress','data\x20','params','data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','code','\x20completed\x20in\x20','now','14803250BecVpC','42330tZgnJv','read','15223gCOClD','validation','6752767kfAFhG','Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically','962018xiNKxi','alias','description','642609xcLHAr','string','flagMissing','60xgpLWM','command','Example:\x20--params\x20\x27{\x22id\x22:123}\x27','operation','80qvDqbd','4skKCJk','57108SgInXD','94060YmBCmr','paramsRequired','str','1080PoBKSV'];a49_0x27a0=function(){return _0x4a88f3;};return a49_0x27a0();}import{parseJsonParams}from'../../utils/params.js';function a49_0x21c3(_0x43f59f,_0x3d6623){_0x43f59f=_0x43f59f-0x66;const _0x27a081=a49_0x27a0();let _0x21c3d3=_0x27a081[_0x43f59f];return _0x21c3d3;}function assertGetOneId(_0x2a9662){const _0x655888=a49_0x21c3;if(!_0x2a9662)throw CliErrors[_0x655888(0x6a)](_0x655888(0x79),'Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.');const _0x5e69cd=_0x2a9662['id'];if(_0x5e69cd===undefined||_0x5e69cd===null||_0x5e69cd==='')throw CliErrors[_0x655888(0x82)](_0x655888(0x7a),_0x655888(0x6d));}function parseCommandParams(_0x83b7df){return parseJsonParams(_0x83b7df)??{};}export function buildDataCommand(_0xc569ec){const _0x8d2ec3=a49_0x21c3,_0x40c616=_0x8d2ec3(0x84);return{'service':'data','command':_0xc569ec[_0x8d2ec3(0x6c)],'description':_0xc569ec[_0x8d2ec3(0x67)],'risk':_0x8d2ec3(0x80),'defaultOutputFormat':_0x8d2ec3(0x77),'helpExtra':_0xc569ec['helpExtra'],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':_0x8d2ec3(0x66),'type':_0x8d2ec3(0x69),'description':_0x40c616},{'name':_0x8d2ec3(0x79),'type':_0x8d2ec3(0x69),'description':_0xc569ec['paramsHint']}],async 'validate'(_0xd0dbfb){const _0x23a933=_0x8d2ec3,_0x245446=_0xd0dbfb[_0x23a933(0x74)](_0x23a933(0x79));if(_0xc569ec[_0x23a933(0x73)]&&!_0x245446)throw CliErrors['flagMissing']('params',_0xc569ec['paramsHint']);const _0x5d9922=parseJsonParams(_0x245446);_0xc569ec[_0x23a933(0x6e)]==='getOne'&&assertGetOneId(_0x5d9922);},async 'execute'(_0x5d883d){const _0x5863dd=_0x8d2ec3,_0x4d63c4=parseCommandParams(_0x5d883d[_0x5863dd(0x74)](_0x5863dd(0x79))),_0x12ebd7=Date[_0x5863dd(0x7d)](),_0x43a5d9=await executeDatasetDataOperation(_0x5d883d['appCode'],_0x5d883d[_0x5863dd(0x74)](_0x5863dd(0x7b)),_0xc569ec['operation'],_0x4d63c4),_0x25c0db=Date[_0x5863dd(0x7d)]()-_0x12ebd7;return{'ok':!![],'data':{'result':_0x43a5d9,'elapsed':_0x25c0db},'message':_0x5863dd(0x78)+_0xc569ec[_0x5863dd(0x6c)]+_0x5863dd(0x7c)+_0x25c0db+'ms'};}};}
1
+ (function(_0x4ccb98,_0x225cd5){const _0x2a5fc0=a49_0x699f,_0x1dbf78=_0x4ccb98();while(!![]){try{const _0x59fb16=-parseInt(_0x2a5fc0(0x115))/0x1+parseInt(_0x2a5fc0(0x120))/0x2*(-parseInt(_0x2a5fc0(0x127))/0x3)+parseInt(_0x2a5fc0(0x129))/0x4*(parseInt(_0x2a5fc0(0x12a))/0x5)+parseInt(_0x2a5fc0(0x121))/0x6*(parseInt(_0x2a5fc0(0x125))/0x7)+-parseInt(_0x2a5fc0(0x130))/0x8*(-parseInt(_0x2a5fc0(0x11c))/0x9)+-parseInt(_0x2a5fc0(0x117))/0xa+parseInt(_0x2a5fc0(0x12e))/0xb*(parseInt(_0x2a5fc0(0x11d))/0xc);if(_0x59fb16===_0x225cd5)break;else _0x1dbf78['push'](_0x1dbf78['shift']());}catch(_0x49da06){_0x1dbf78['push'](_0x1dbf78['shift']());}}}(a49_0x2fe6,0xecf73));function a49_0x2fe6(){const _0xf496d2=['20088BhBpty','operation','388ZxtFvQ','70495MoZFbC','compress','str','description','2629363BjTCRb','paramsRequired','104cJBxqo','string','\x20completed\x20in\x20','1760238Dhbvqj','now','8142220kghRcW','Provide\x20--params\x20\x27{\x22id\x22:123}\x27\x20for\x20data\x20getOne.','read','appCode','command','490761vtfEjV','132ssUssD','validation','paramsHint','410HXhLgc','423816wUeSXl','params','flagMissing','helpExtra','21rOgaEQ','data'];a49_0x2fe6=function(){return _0xf496d2;};return a49_0x2fe6();}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 a49_0x699f(_0x95149,_0x42cb3a){_0x95149=_0x95149-0x114;const _0x2fe6f1=a49_0x2fe6();let _0x699f47=_0x2fe6f1[_0x95149];return _0x699f47;}function assertGetOneId(_0x22405f){const _0x5f07c4=a49_0x699f;if(!_0x22405f)throw CliErrors[_0x5f07c4(0x123)](_0x5f07c4(0x122),_0x5f07c4(0x118));const _0xf69119=_0x22405f['id'];if(_0xf69119===undefined||_0xf69119===null||_0xf69119==='')throw CliErrors[_0x5f07c4(0x11e)]('data\x20getOne\x20requires\x20\x22id\x22\x20in\x20--params','Example:\x20--params\x20\x27{\x22id\x22:123}\x27');}function parseCommandParams(_0x227b63){return parseJsonParams(_0x227b63)??{};}export function buildDataCommand(_0x353d67){const _0x19e36d=a49_0x699f,_0x437403='Dataset\x20alias\x20defined\x20in\x20api.ts\x20(e.g.\x20order,\x20coupon).\x20Resolves\x20to\x20dataset\x20code\x20automatically';return{'service':_0x19e36d(0x126),'command':_0x353d67[_0x19e36d(0x11b)],'description':_0x353d67[_0x19e36d(0x12d)],'risk':_0x19e36d(0x119),'defaultOutputFormat':_0x19e36d(0x12b),'helpExtra':_0x353d67[_0x19e36d(0x124)],'flags':[CODE_FLAG,APPCODE_FLAG_OPTIONAL,{'name':'alias','type':_0x19e36d(0x131),'description':_0x437403},{'name':_0x19e36d(0x122),'type':_0x19e36d(0x131),'description':_0x353d67[_0x19e36d(0x11f)]}],async 'validate'(_0x714d44){const _0x522729=_0x19e36d,_0x155c0f=_0x714d44['str']('params');if(_0x353d67[_0x522729(0x12f)]&&!_0x155c0f)throw CliErrors[_0x522729(0x123)](_0x522729(0x122),_0x353d67[_0x522729(0x11f)]);const _0x18b0b7=parseJsonParams(_0x155c0f);_0x353d67[_0x522729(0x128)]==='getOne'&&assertGetOneId(_0x18b0b7);},async 'execute'(_0xd96a44){const _0x54e62a=_0x19e36d,_0x48b7ff=parseCommandParams(_0xd96a44[_0x54e62a(0x12c)](_0x54e62a(0x122))),_0x4da31d=Date[_0x54e62a(0x116)](),_0x1b5fba=await executeDatasetDataOperation(_0xd96a44[_0x54e62a(0x11a)],_0xd96a44[_0x54e62a(0x12c)]('code'),_0x353d67[_0x54e62a(0x128)],_0x48b7ff),_0x4d2fdd=Date['now']()-_0x4da31d;return{'ok':!![],'data':{'result':_0x1b5fba,'elapsed':_0x4d2fdd},'message':'data\x20'+_0x353d67[_0x54e62a(0x11b)]+_0x54e62a(0x114)+_0x4d2fdd+'ms'};}};}
@@ -1 +1 @@
1
- const a50_0x24eec1=a50_0x3433;(function(_0x8537b2,_0x22f876){const _0x2bd68a=a50_0x3433,_0xadbbb7=_0x8537b2();while(!![]){try{const _0x28f02b=parseInt(_0x2bd68a(0x1dd))/0x1*(parseInt(_0x2bd68a(0x1e7))/0x2)+-parseInt(_0x2bd68a(0x1d8))/0x3+-parseInt(_0x2bd68a(0x1dc))/0x4+parseInt(_0x2bd68a(0x1ef))/0x5+-parseInt(_0x2bd68a(0x1e2))/0x6*(-parseInt(_0x2bd68a(0x1e8))/0x7)+parseInt(_0x2bd68a(0x1f3))/0x8+-parseInt(_0x2bd68a(0x1d5))/0x9;if(_0x28f02b===_0x22f876)break;else _0xadbbb7['push'](_0xadbbb7['shift']());}catch(_0x2c86b1){_0xadbbb7['push'](_0xadbbb7['shift']());}}}(a50_0x4c04,0xc3ae9));function a50_0x4c04(){const _0x27f828=['BFF\x20/\x20SQL\x20等研发态资产','dbtableConfig','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','原因:该类研发态资产需要\x20DB\x20table、dbId、tableName\x20与数据库连接上下文,并深度依赖\x20SQL\x20执行链路。','如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:','6169590umhmiV','\x20是\x20','validation','当前数据集\x20\x22','8591144mNRVlM','tableName','trim','dataset','lovrabet\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20\x27<json>\x27\x20--format\x20compress','\x20的数据源。','15564618TFFfrY','source','join','3746679eyERfd','code','getOne','dbtable','545532DckTZm','1209979qWEfsA','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','object','dbId','datasetName','2390406wPkrvk','lovrabet','\x20类型,不适合作为\x20','datasetCode','请先将该数据集升级/迁移为\x20DB\x20table\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','2EcZsUl','7tVNoLE','filter'];a50_0x4c04=function(){return _0x27f828;};return a50_0x4c04();}import{CliErrors}from'../../errors.js';export const RUNTIME_DATA_ACCESS_COMMANDS={'cli':a50_0x24eec1(0x1e3),'filter':a50_0x24eec1(0x1d3),'getOne':a50_0x24eec1(0x1de)};export const RUNTIME_DATA_ACCESS_SUMMARY=a50_0x24eec1(0x1ec);function valueToString(_0x22b078){const _0x351159=a50_0x24eec1;return _0x22b078==null?'':String(_0x22b078)[_0x351159(0x1f5)]();}function getDatasetCode(_0x43758e){const _0x2a5962=a50_0x24eec1;return valueToString(_0x43758e[_0x2a5962(0x1d9)]??_0x43758e['modelCode']??_0x43758e['dataset']?.[_0x2a5962(0x1e5)]);}function getDatasetName(_0x240671){const _0x293323=a50_0x24eec1;return valueToString(_0x240671['name']??_0x240671['dataset']?.[_0x293323(0x1e1)])||'unknown';}function a50_0x3433(_0x4ba8ea,_0xf5c8fa){_0x4ba8ea=_0x4ba8ea-0x1d2;const _0x4c0483=a50_0x4c04();let _0x343385=_0x4c0483[_0x4ba8ea];return _0x343385;}function getDatasetSource(_0x5c5c9c){const _0x365ff8=a50_0x24eec1;return valueToString(_0x5c5c9c[_0x365ff8(0x1d6)]??_0x5c5c9c[_0x365ff8(0x1d2)]?.['sourceType'])['toUpperCase']();}function getDbtableConfig(_0x121355){const _0x16f5b7=a50_0x24eec1,_0x2ee001=_0x121355[_0x16f5b7(0x1eb)]??_0x121355[_0x16f5b7(0x1db)];return _0x2ee001&&typeof _0x2ee001===_0x16f5b7(0x1df)?_0x2ee001:{};}export function isDbBackedDataset(_0x5b27b8){const _0x2df0e4=a50_0x24eec1,_0x92205d=getDatasetSource(_0x5b27b8);if(_0x92205d==='METADATA')return![];const _0x3a0eea=getDbtableConfig(_0x5b27b8),_0x57daa0=_0x3a0eea[_0x2df0e4(0x1e0)]??_0x3a0eea['id'],_0x1b9140=valueToString(_0x3a0eea[_0x2df0e4(0x1f4)]??_0x5b27b8[_0x2df0e4(0x1f4)]??_0x5b27b8['dataset']?.['tableName']);return _0x57daa0!==undefined&&_0x57daa0!==null&&_0x1b9140['length']>0x0;}export function filterDbBackedDatasets(_0x4defb6){const _0x2c0613=a50_0x24eec1;return _0x4defb6[_0x2c0613(0x1e9)](_0x186cf1=>isDbBackedDataset(_0x186cf1));}export function buildDbTableUpgradeMessage(_0x1d20f1,_0x183faf=a50_0x24eec1(0x1ea)){const _0x1683a6=a50_0x24eec1,_0x445ed2=getDatasetSource(_0x1d20f1)||'UNKNOWN',_0x3f0958=getDatasetName(_0x1d20f1),_0x158841=getDatasetCode(_0x1d20f1),_0x3617c8=_0x158841?'\x20('+_0x158841+')':'';return[_0x1683a6(0x1f2)+_0x3f0958+'\x22'+_0x3617c8+_0x1683a6(0x1f0)+_0x445ed2+_0x1683a6(0x1e4)+_0x183faf+_0x1683a6(0x1d4),_0x1683a6(0x1ed),_0x1683a6(0x1e6),_0x1683a6(0x1ee)+RUNTIME_DATA_ACCESS_COMMANDS[_0x1683a6(0x1e9)]+';'+RUNTIME_DATA_ACCESS_COMMANDS[_0x1683a6(0x1da)]+'。'][_0x1683a6(0x1d7)]('\x20');}export function assertDatasetSupportsLocalDevelopment(_0x41cdee,_0x1fc12c){const _0x2cf86a=a50_0x24eec1;if(!isDbBackedDataset(_0x41cdee))throw CliErrors[_0x2cf86a(0x1f1)](buildDbTableUpgradeMessage(_0x41cdee,_0x1fc12c));}
1
+ const a50_0x5ba929=a50_0x122a;(function(_0x21a789,_0x5a431f){const _0x3a00ed=a50_0x122a,_0x29c273=_0x21a789();while(!![]){try{const _0xa76983=parseInt(_0x3a00ed(0x1e3))/0x1*(parseInt(_0x3a00ed(0x1c9))/0x2)+parseInt(_0x3a00ed(0x1c2))/0x3+parseInt(_0x3a00ed(0x1d7))/0x4+-parseInt(_0x3a00ed(0x1c4))/0x5*(-parseInt(_0x3a00ed(0x1cf))/0x6)+-parseInt(_0x3a00ed(0x1e5))/0x7+-parseInt(_0x3a00ed(0x1db))/0x8*(-parseInt(_0x3a00ed(0x1be))/0x9)+-parseInt(_0x3a00ed(0x1e4))/0xa;if(_0xa76983===_0x5a431f)break;else _0x29c273['push'](_0x29c273['shift']());}catch(_0x13c2e3){_0x29c273['push'](_0x29c273['shift']());}}}(a50_0x2973,0x94ad0));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_0x5ba929(0x1da)};export const RUNTIME_DATA_ACCESS_SUMMARY=a50_0x5ba929(0x1e1);function valueToString(_0x16a5c6){const _0x44c2d7=a50_0x5ba929;return _0x16a5c6==null?'':String(_0x16a5c6)[_0x44c2d7(0x1ca)]();}function a50_0x122a(_0x503809,_0x5b46c2){_0x503809=_0x503809-0x1be;const _0x29731e=a50_0x2973();let _0x122a84=_0x29731e[_0x503809];return _0x122a84;}function getDatasetCode(_0x3bd209){const _0x3b1514=a50_0x5ba929;return valueToString(_0x3bd209[_0x3b1514(0x1c1)]??_0x3bd209[_0x3b1514(0x1df)]??_0x3bd209[_0x3b1514(0x1ce)]?.[_0x3b1514(0x1d0)]);}function getDatasetName(_0x5c43f6){const _0xcb332a=a50_0x5ba929;return valueToString(_0x5c43f6[_0xcb332a(0x1dd)]??_0x5c43f6[_0xcb332a(0x1ce)]?.[_0xcb332a(0x1dc)])||_0xcb332a(0x1cc);}function getDatasetSource(_0x2d81db){const _0x5cc563=a50_0x5ba929;return valueToString(_0x2d81db[_0x5cc563(0x1c0)]??_0x2d81db['dataset']?.[_0x5cc563(0x1d1)])[_0x5cc563(0x1de)]();}function getDbtableConfig(_0x52408c){const _0x165d58=a50_0x5ba929,_0x59a40c=_0x52408c[_0x165d58(0x1c6)]??_0x52408c[_0x165d58(0x1cd)];return _0x59a40c&&typeof _0x59a40c===_0x165d58(0x1d8)?_0x59a40c:{};}export function isDbBackedDataset(_0x2e8931){const _0x2ef8e3=a50_0x5ba929,_0x47c95f=getDatasetSource(_0x2e8931);if(_0x47c95f===_0x2ef8e3(0x1e0))return![];const _0x63cfa5=getDbtableConfig(_0x2e8931),_0x1b7636=_0x63cfa5[_0x2ef8e3(0x1d9)]??_0x63cfa5['id'],_0x49cc18=valueToString(_0x63cfa5[_0x2ef8e3(0x1c7)]??_0x2e8931[_0x2ef8e3(0x1c7)]??_0x2e8931[_0x2ef8e3(0x1ce)]?.['tableName']);return _0x1b7636!==undefined&&_0x1b7636!==null&&_0x49cc18['length']>0x0;}export function filterDbBackedDatasets(_0x344bdf){return _0x344bdf['filter'](_0x16e647=>isDbBackedDataset(_0x16e647));}export function buildDbTableUpgradeMessage(_0x4d4a50,_0x5acf90=a50_0x5ba929(0x1d5)){const _0x58e630=a50_0x5ba929,_0x238701=getDatasetSource(_0x4d4a50)||_0x58e630(0x1c3),_0x7bc597=getDatasetName(_0x4d4a50),_0x7e1d2d=getDatasetCode(_0x4d4a50),_0xaae805=_0x7e1d2d?'\x20('+_0x7e1d2d+')':'';return[_0x58e630(0x1cb)+_0x7bc597+'\x22'+_0xaae805+_0x58e630(0x1d4)+_0x238701+_0x58e630(0x1c8)+_0x5acf90+_0x58e630(0x1bf),_0x58e630(0x1d2),_0x58e630(0x1d6),'如果只是查看运行态真实行数据,请切换到\x20lovrabet\x20CLI:'+RUNTIME_DATA_ACCESS_COMMANDS[_0x58e630(0x1e6)]+';'+RUNTIME_DATA_ACCESS_COMMANDS[_0x58e630(0x1c5)]+'。'][_0x58e630(0x1e2)]('\x20');}export function assertDatasetSupportsLocalDevelopment(_0x54e62e,_0x55f76a){const _0x2b35d2=a50_0x5ba929;if(!isDbBackedDataset(_0x54e62e))throw CliErrors[_0x2b35d2(0x1d3)](buildDbTableUpgradeMessage(_0x54e62e,_0x55f76a));}function a50_0x2973(){const _0x494826=['object','dbId','lovrabet\x20data\x20getOne\x20--code\x20<datasetCode>\x20--params\x20\x27{\x22id\x22:123}\x27\x20--format\x20compress','8PatCnc','datasetName','name','toUpperCase','modelCode','METADATA','Use\x20lovrabet\x20data\x20filter/getOne\x20for\x20real\x20runtime\x20records.','join','15116NWHUZT','28563370Pwrbkc','5682852IXkpmf','filter','10148868inuore','\x20的数据源。','source','code','3568299gqFwyq','UNKNOWN','1855bQNxJT','getOne','dbtableConfig','tableName','\x20类型,不适合作为\x20','134AzaQWo','trim','当前数据集\x20\x22','unknown','dbtable','dataset','10110waTaQq','datasetCode','sourceType','原因:该类研发态资产需要\x20DB\x20table、dbId、tableName\x20与数据库连接上下文,并深度依赖\x20SQL\x20执行链路。','validation','\x20是\x20','BFF\x20/\x20SQL\x20等研发态资产','请先将该数据集升级/迁移为\x20DB\x20table\x20数据集,再基于新的\x20dataset\x20code\x20继续开发。','1288628UUXuCH'];a50_0x2973=function(){return _0x494826;};return a50_0x2973();}